Lines Matching refs:UNSTUFF_BITS
54 #define UNSTUFF_BITS(resp,start,size) \ macro
88 card->cid.manfid = UNSTUFF_BITS(resp, 104, 24); in mmc_decode_cid()
89 card->cid.prod_name[0] = UNSTUFF_BITS(resp, 96, 8); in mmc_decode_cid()
90 card->cid.prod_name[1] = UNSTUFF_BITS(resp, 88, 8); in mmc_decode_cid()
91 card->cid.prod_name[2] = UNSTUFF_BITS(resp, 80, 8); in mmc_decode_cid()
92 card->cid.prod_name[3] = UNSTUFF_BITS(resp, 72, 8); in mmc_decode_cid()
93 card->cid.prod_name[4] = UNSTUFF_BITS(resp, 64, 8); in mmc_decode_cid()
94 card->cid.prod_name[5] = UNSTUFF_BITS(resp, 56, 8); in mmc_decode_cid()
95 card->cid.prod_name[6] = UNSTUFF_BITS(resp, 48, 8); in mmc_decode_cid()
96 card->cid.hwrev = UNSTUFF_BITS(resp, 44, 4); in mmc_decode_cid()
97 card->cid.fwrev = UNSTUFF_BITS(resp, 40, 4); in mmc_decode_cid()
98 card->cid.serial = UNSTUFF_BITS(resp, 16, 24); in mmc_decode_cid()
99 card->cid.month = UNSTUFF_BITS(resp, 12, 4); in mmc_decode_cid()
100 card->cid.year = UNSTUFF_BITS(resp, 8, 4) + 1997; in mmc_decode_cid()
106 card->cid.manfid = UNSTUFF_BITS(resp, 120, 8); in mmc_decode_cid()
107 card->cid.oemid = UNSTUFF_BITS(resp, 104, 16); in mmc_decode_cid()
108 card->cid.prod_name[0] = UNSTUFF_BITS(resp, 96, 8); in mmc_decode_cid()
109 card->cid.prod_name[1] = UNSTUFF_BITS(resp, 88, 8); in mmc_decode_cid()
110 card->cid.prod_name[2] = UNSTUFF_BITS(resp, 80, 8); in mmc_decode_cid()
111 card->cid.prod_name[3] = UNSTUFF_BITS(resp, 72, 8); in mmc_decode_cid()
112 card->cid.prod_name[4] = UNSTUFF_BITS(resp, 64, 8); in mmc_decode_cid()
113 card->cid.prod_name[5] = UNSTUFF_BITS(resp, 56, 8); in mmc_decode_cid()
114 card->cid.prv = UNSTUFF_BITS(resp, 48, 8); in mmc_decode_cid()
115 card->cid.serial = UNSTUFF_BITS(resp, 16, 32); in mmc_decode_cid()
116 card->cid.month = UNSTUFF_BITS(resp, 12, 4); in mmc_decode_cid()
117 card->cid.year = UNSTUFF_BITS(resp, 8, 4) + 1997; in mmc_decode_cid()
153 csd->structure = UNSTUFF_BITS(resp, 126, 2); in mmc_decode_csd()
160 csd->mmca_vsn = UNSTUFF_BITS(resp, 122, 4); in mmc_decode_csd()
161 m = UNSTUFF_BITS(resp, 115, 4); in mmc_decode_csd()
162 e = UNSTUFF_BITS(resp, 112, 3); in mmc_decode_csd()
164 csd->taac_clks = UNSTUFF_BITS(resp, 104, 8) * 100; in mmc_decode_csd()
166 m = UNSTUFF_BITS(resp, 99, 4); in mmc_decode_csd()
167 e = UNSTUFF_BITS(resp, 96, 3); in mmc_decode_csd()
169 csd->cmdclass = UNSTUFF_BITS(resp, 84, 12); in mmc_decode_csd()
171 e = UNSTUFF_BITS(resp, 47, 3); in mmc_decode_csd()
172 m = UNSTUFF_BITS(resp, 62, 12); in mmc_decode_csd()
175 csd->read_blkbits = UNSTUFF_BITS(resp, 80, 4); in mmc_decode_csd()
176 csd->read_partial = UNSTUFF_BITS(resp, 79, 1); in mmc_decode_csd()
177 csd->write_misalign = UNSTUFF_BITS(resp, 78, 1); in mmc_decode_csd()
178 csd->read_misalign = UNSTUFF_BITS(resp, 77, 1); in mmc_decode_csd()
179 csd->dsr_imp = UNSTUFF_BITS(resp, 76, 1); in mmc_decode_csd()
180 csd->r2w_factor = UNSTUFF_BITS(resp, 26, 3); in mmc_decode_csd()
181 csd->write_blkbits = UNSTUFF_BITS(resp, 22, 4); in mmc_decode_csd()
182 csd->write_partial = UNSTUFF_BITS(resp, 21, 1); in mmc_decode_csd()
185 a = UNSTUFF_BITS(resp, 42, 5); in mmc_decode_csd()
186 b = UNSTUFF_BITS(resp, 37, 5); in mmc_decode_csd()