Lines Matching refs:regdata
964 uint32 regdata[2];
969 8, regdata)) != SUCCESS) {
973 sd_trace(("pkt_size regdata[0] = 0x%x, regdata[1] = 0x%x\n",
974 regdata[0], regdata[1]));
976 sd->client_block_size[1] = (regdata[0] & F1_MAX_PKT_SIZE) >> 2;
980 sd->client_block_size[2] = ((regdata[0] >> 16) & F2_MAX_PKT_SIZE) >> 2;
984 sd->client_block_size[3] = (regdata[1] & F3_MAX_PKT_SIZE) >> 2;
1059 uint32 regdata;
1063 4, ®data)) != SUCCESS)
1066 sd_trace(("In %s spih-ctrl = 0x%x \n", __FUNCTION__, regdata));
1072 if (regdata & HIGH_SPEED_MODE) {
1076 regdata |= HIGH_SPEED_MODE;
1077 sd_trace(("Writing %08x to device at %08x\n", regdata, SPID_CONFIG));
1079 4, regdata)) != SUCCESS) {
1086 if (regdata & HIGH_SPEED_MODE) {
1087 regdata &= ~HIGH_SPEED_MODE;
1088 sd_trace(("Writing %08x to device at %08x\n", regdata, SPID_CONFIG));
1090 4, regdata)) != SUCCESS)
1106 status = bcmspi_card_regread_fixedaddr(sd, 0, SPID_TEST_READ, 4, ®data); \
1107 regdata &= 0xff; \
1108 if ((regdata == 0xad) || (regdata == 0x5b) || \
1109 (regdata == 0x5d) || (regdata == 0x5a)) \
1112 status = bcmspi_card_regread_fixedaddr(sd, 0, SPID_TEST_READ, 4, ®data); \
1113 regdata &= 0xff; \
1114 if ((regdata == 0xad) || (regdata == 0x5b) || \
1115 (regdata == 0x5d) || (regdata == 0x5a)) \
1117 sd_trace(("Silicon testability issue: regdata = 0x%x." \
1118 " Expected 0xad, 0x5a, 0x5b or 0x5d.\n", regdata)); \
1128 uint32 wrregdata, regdata = 0;
1160 bcmspi_card_regread(sd, 0, SPID_RESET_BP, 1, ®data);
1161 sd_trace(("reset reg read = 0x%x\n", regdata));
1170 if ((status = bcmspi_card_regread(sd, 0, SPID_TEST_READ, 4, ®data)) !=
1173 if (regdata == TEST_RO_DATA_32BIT_LE) {
1175 regdata));
1179 " Value read = 0x%x\n", regdata));
1199 if ((status = bcmspi_card_regread(sd, 0, SPID_TEST_READ, 4, ®data)) != SUCCESS)
1201 sd_trace(("(we are still in 16bit mode) 32bit READ LE regdata = 0x%x\n", regdata));
1210 if ((regdata == 0xfdda7d5b) || (regdata == 0xfdda7d5a)) {
1213 ®data)) != SUCCESS)
1231 if ((status = bcmspi_card_regread(sd, 0, SPID_TEST_READ, 4, ®data)) != SUCCESS)
1234 if (regdata == TEST_RO_DATA_32BIT_LE) {
1235 sd_trace(("Read spid passed. Value read = 0x%x\n", regdata));
1239 "0x%x\n", regdata));
1251 uint32 regdata;
1254 if ((status = bcmspi_card_regread(sd, 0, SPID_TEST_READ, 4, ®data)) != SUCCESS)
1257 if (regdata == (TEST_RO_DATA_32BIT_LE))
1258 sd_trace(("32bit LE regdata = 0x%x\n", regdata));
1260 sd_trace(("Incorrect 32bit LE regdata = 0x%x\n", regdata));
1268 regdata = RW_PATTERN1;
1269 if ((status = bcmspi_card_regwrite(sd, 0, SPID_TEST_RW, 4, regdata)) != SUCCESS)
1271 regdata = 0;
1272 if ((status = bcmspi_card_regread(sd, 0, SPID_TEST_RW, 4, ®data)) != SUCCESS)
1274 if (regdata != RW_PATTERN1) {
1276 RW_PATTERN1, regdata));
1279 sd_trace(("R/W spid passed. Value read = 0x%x\n", regdata));
1281 regdata = RW_PATTERN2;
1282 if ((status = bcmspi_card_regwrite(sd, 0, SPID_TEST_RW, 4, regdata)) != SUCCESS)
1284 regdata = 0;
1285 if ((status = bcmspi_card_regread(sd, 0, SPID_TEST_RW, 4, ®data)) != SUCCESS)
1287 if (regdata != RW_PATTERN2) {
1289 RW_PATTERN2, regdata));
1292 sd_trace(("R/W spid passed. Value read = 0x%x\n", regdata));