Lines Matching refs:UNSTUFF_BITS
58 #define UNSTUFF_BITS(resp,start,size) \ macro
97 card->cid.manfid = UNSTUFF_BITS(resp, 120, 8); in mmc_decode_cid()
98 card->cid.oemid = UNSTUFF_BITS(resp, 104, 16); in mmc_decode_cid()
99 card->cid.prod_name[0] = UNSTUFF_BITS(resp, 96, 8); in mmc_decode_cid()
100 card->cid.prod_name[1] = UNSTUFF_BITS(resp, 88, 8); in mmc_decode_cid()
101 card->cid.prod_name[2] = UNSTUFF_BITS(resp, 80, 8); in mmc_decode_cid()
102 card->cid.prod_name[3] = UNSTUFF_BITS(resp, 72, 8); in mmc_decode_cid()
103 card->cid.prod_name[4] = UNSTUFF_BITS(resp, 64, 8); in mmc_decode_cid()
104 card->cid.hwrev = UNSTUFF_BITS(resp, 60, 4); in mmc_decode_cid()
105 card->cid.fwrev = UNSTUFF_BITS(resp, 56, 4); in mmc_decode_cid()
106 card->cid.serial = UNSTUFF_BITS(resp, 24, 32); in mmc_decode_cid()
107 card->cid.year = UNSTUFF_BITS(resp, 12, 8); in mmc_decode_cid()
108 card->cid.month = UNSTUFF_BITS(resp, 8, 4); in mmc_decode_cid()
122 csd_struct = UNSTUFF_BITS(resp, 126, 2); in mmc_decode_csd()
126 m = UNSTUFF_BITS(resp, 115, 4); in mmc_decode_csd()
127 e = UNSTUFF_BITS(resp, 112, 3); in mmc_decode_csd()
129 csd->taac_clks = UNSTUFF_BITS(resp, 104, 8) * 100; in mmc_decode_csd()
131 m = UNSTUFF_BITS(resp, 99, 4); in mmc_decode_csd()
132 e = UNSTUFF_BITS(resp, 96, 3); in mmc_decode_csd()
134 csd->cmdclass = UNSTUFF_BITS(resp, 84, 12); in mmc_decode_csd()
136 e = UNSTUFF_BITS(resp, 47, 3); in mmc_decode_csd()
137 m = UNSTUFF_BITS(resp, 62, 12); in mmc_decode_csd()
140 csd->read_blkbits = UNSTUFF_BITS(resp, 80, 4); in mmc_decode_csd()
141 csd->read_partial = UNSTUFF_BITS(resp, 79, 1); in mmc_decode_csd()
142 csd->write_misalign = UNSTUFF_BITS(resp, 78, 1); in mmc_decode_csd()
143 csd->read_misalign = UNSTUFF_BITS(resp, 77, 1); in mmc_decode_csd()
144 csd->dsr_imp = UNSTUFF_BITS(resp, 76, 1); in mmc_decode_csd()
145 csd->r2w_factor = UNSTUFF_BITS(resp, 26, 3); in mmc_decode_csd()
146 csd->write_blkbits = UNSTUFF_BITS(resp, 22, 4); in mmc_decode_csd()
147 csd->write_partial = UNSTUFF_BITS(resp, 21, 1); in mmc_decode_csd()
149 if (UNSTUFF_BITS(resp, 46, 1)) { in mmc_decode_csd()
152 csd->erase_size = UNSTUFF_BITS(resp, 39, 7) + 1; in mmc_decode_csd()
156 if (UNSTUFF_BITS(resp, 13, 1)) in mmc_decode_csd()
171 m = UNSTUFF_BITS(resp, 99, 4); in mmc_decode_csd()
172 e = UNSTUFF_BITS(resp, 96, 3); in mmc_decode_csd()
174 csd->cmdclass = UNSTUFF_BITS(resp, 84, 12); in mmc_decode_csd()
175 csd->c_size = UNSTUFF_BITS(resp, 48, 22); in mmc_decode_csd()
181 m = UNSTUFF_BITS(resp, 48, 22); in mmc_decode_csd()
193 if (UNSTUFF_BITS(resp, 13, 1)) in mmc_decode_csd()
219 scr_struct = UNSTUFF_BITS(resp, 60, 4); in mmc_decode_scr()
226 scr->sda_vsn = UNSTUFF_BITS(resp, 56, 4); in mmc_decode_scr()
227 scr->bus_widths = UNSTUFF_BITS(resp, 48, 4); in mmc_decode_scr()
230 scr->sda_spec3 = UNSTUFF_BITS(resp, 47, 1); in mmc_decode_scr()
233 scr->sda_spec4 = UNSTUFF_BITS(resp, 42, 1); in mmc_decode_scr()
234 scr->sda_specx = UNSTUFF_BITS(resp, 38, 4); in mmc_decode_scr()
237 if (UNSTUFF_BITS(resp, 55, 1)) in mmc_decode_scr()
243 scr->cmds = UNSTUFF_BITS(resp, 32, 4); in mmc_decode_scr()
245 scr->cmds = UNSTUFF_BITS(resp, 32, 2); in mmc_decode_scr()
294 au = UNSTUFF_BITS(card->raw_ssr, 428 - 384, 4); in mmc_read_ssr()
298 es = UNSTUFF_BITS(card->raw_ssr, 408 - 384, 16); in mmc_read_ssr()
299 et = UNSTUFF_BITS(card->raw_ssr, 402 - 384, 6); in mmc_read_ssr()
301 eo = UNSTUFF_BITS(card->raw_ssr, 400 - 384, 2); in mmc_read_ssr()
315 discard_support = UNSTUFF_BITS(resp, 313 - 288, 1); in mmc_read_ssr()