Lines Matching refs:UNSTUFF_BITS

55 #define UNSTUFF_BITS(resp,start,size)					\  macro
80 card->cid.manfid = UNSTUFF_BITS(resp, 120, 8); in mmc_decode_cid()
81 card->cid.oemid = UNSTUFF_BITS(resp, 104, 16); in mmc_decode_cid()
82 card->cid.prod_name[0] = UNSTUFF_BITS(resp, 96, 8); in mmc_decode_cid()
83 card->cid.prod_name[1] = UNSTUFF_BITS(resp, 88, 8); in mmc_decode_cid()
84 card->cid.prod_name[2] = UNSTUFF_BITS(resp, 80, 8); in mmc_decode_cid()
85 card->cid.prod_name[3] = UNSTUFF_BITS(resp, 72, 8); in mmc_decode_cid()
86 card->cid.prod_name[4] = UNSTUFF_BITS(resp, 64, 8); in mmc_decode_cid()
87 card->cid.hwrev = UNSTUFF_BITS(resp, 60, 4); in mmc_decode_cid()
88 card->cid.fwrev = UNSTUFF_BITS(resp, 56, 4); in mmc_decode_cid()
89 card->cid.serial = UNSTUFF_BITS(resp, 24, 32); in mmc_decode_cid()
90 card->cid.year = UNSTUFF_BITS(resp, 12, 8); in mmc_decode_cid()
91 card->cid.month = UNSTUFF_BITS(resp, 8, 4); in mmc_decode_cid()
105 csd_struct = UNSTUFF_BITS(resp, 126, 2); in mmc_decode_csd()
109 m = UNSTUFF_BITS(resp, 115, 4); in mmc_decode_csd()
110 e = UNSTUFF_BITS(resp, 112, 3); in mmc_decode_csd()
112 csd->taac_clks = UNSTUFF_BITS(resp, 104, 8) * 100; in mmc_decode_csd()
114 m = UNSTUFF_BITS(resp, 99, 4); in mmc_decode_csd()
115 e = UNSTUFF_BITS(resp, 96, 3); in mmc_decode_csd()
117 csd->cmdclass = UNSTUFF_BITS(resp, 84, 12); in mmc_decode_csd()
119 e = UNSTUFF_BITS(resp, 47, 3); in mmc_decode_csd()
120 m = UNSTUFF_BITS(resp, 62, 12); in mmc_decode_csd()
123 csd->read_blkbits = UNSTUFF_BITS(resp, 80, 4); in mmc_decode_csd()
124 csd->read_partial = UNSTUFF_BITS(resp, 79, 1); in mmc_decode_csd()
125 csd->write_misalign = UNSTUFF_BITS(resp, 78, 1); in mmc_decode_csd()
126 csd->read_misalign = UNSTUFF_BITS(resp, 77, 1); in mmc_decode_csd()
127 csd->dsr_imp = UNSTUFF_BITS(resp, 76, 1); in mmc_decode_csd()
128 csd->r2w_factor = UNSTUFF_BITS(resp, 26, 3); in mmc_decode_csd()
129 csd->write_blkbits = UNSTUFF_BITS(resp, 22, 4); in mmc_decode_csd()
130 csd->write_partial = UNSTUFF_BITS(resp, 21, 1); in mmc_decode_csd()
132 if (UNSTUFF_BITS(resp, 46, 1)) { in mmc_decode_csd()
135 csd->erase_size = UNSTUFF_BITS(resp, 39, 7) + 1; in mmc_decode_csd()
151 m = UNSTUFF_BITS(resp, 99, 4); in mmc_decode_csd()
152 e = UNSTUFF_BITS(resp, 96, 3); in mmc_decode_csd()
154 csd->cmdclass = UNSTUFF_BITS(resp, 84, 12); in mmc_decode_csd()
155 csd->c_size = UNSTUFF_BITS(resp, 48, 22); in mmc_decode_csd()
161 m = UNSTUFF_BITS(resp, 48, 22); in mmc_decode_csd()
196 scr_struct = UNSTUFF_BITS(resp, 60, 4); in mmc_decode_scr()
203 scr->sda_vsn = UNSTUFF_BITS(resp, 56, 4); in mmc_decode_scr()
204 scr->bus_widths = UNSTUFF_BITS(resp, 48, 4); in mmc_decode_scr()
207 scr->sda_spec3 = UNSTUFF_BITS(resp, 47, 1); in mmc_decode_scr()
210 scr->sda_spec4 = UNSTUFF_BITS(resp, 42, 1); in mmc_decode_scr()
211 scr->sda_specx = UNSTUFF_BITS(resp, 38, 4); in mmc_decode_scr()
214 if (UNSTUFF_BITS(resp, 55, 1)) in mmc_decode_scr()
220 scr->cmds = UNSTUFF_BITS(resp, 32, 2); in mmc_decode_scr()
269 au = UNSTUFF_BITS(card->raw_ssr, 428 - 384, 4); in mmc_read_ssr()
273 es = UNSTUFF_BITS(card->raw_ssr, 408 - 384, 16); in mmc_read_ssr()
274 et = UNSTUFF_BITS(card->raw_ssr, 402 - 384, 6); in mmc_read_ssr()
276 eo = UNSTUFF_BITS(card->raw_ssr, 400 - 384, 2); in mmc_read_ssr()
290 discard_support = UNSTUFF_BITS(resp, 313 - 288, 1); in mmc_read_ssr()