• Home
  • Raw
  • Download

Lines Matching refs:resp

57 #define UNSTUFF_BITS(resp,start,size)					\  argument
65 __res = resp[__off] >> __shft; \
67 __res |= resp[__off-1] << ((32 - __shft) % 32); \
84 u32 *resp = card->raw_cid; in mmc_decode_cid() local
90 card->cid.manfid = UNSTUFF_BITS(resp, 120, 8); in mmc_decode_cid()
91 card->cid.oemid = UNSTUFF_BITS(resp, 104, 16); in mmc_decode_cid()
92 card->cid.prod_name[0] = UNSTUFF_BITS(resp, 96, 8); in mmc_decode_cid()
93 card->cid.prod_name[1] = UNSTUFF_BITS(resp, 88, 8); in mmc_decode_cid()
94 card->cid.prod_name[2] = UNSTUFF_BITS(resp, 80, 8); in mmc_decode_cid()
95 card->cid.prod_name[3] = UNSTUFF_BITS(resp, 72, 8); in mmc_decode_cid()
96 card->cid.prod_name[4] = UNSTUFF_BITS(resp, 64, 8); in mmc_decode_cid()
97 card->cid.hwrev = UNSTUFF_BITS(resp, 60, 4); in mmc_decode_cid()
98 card->cid.fwrev = UNSTUFF_BITS(resp, 56, 4); in mmc_decode_cid()
99 card->cid.serial = UNSTUFF_BITS(resp, 24, 32); in mmc_decode_cid()
100 card->cid.year = UNSTUFF_BITS(resp, 12, 8); in mmc_decode_cid()
101 card->cid.month = UNSTUFF_BITS(resp, 8, 4); in mmc_decode_cid()
113 u32 *resp = card->raw_csd; in mmc_decode_csd() local
115 csd_struct = UNSTUFF_BITS(resp, 126, 2); in mmc_decode_csd()
119 m = UNSTUFF_BITS(resp, 115, 4); in mmc_decode_csd()
120 e = UNSTUFF_BITS(resp, 112, 3); in mmc_decode_csd()
122 csd->taac_clks = UNSTUFF_BITS(resp, 104, 8) * 100; in mmc_decode_csd()
124 m = UNSTUFF_BITS(resp, 99, 4); in mmc_decode_csd()
125 e = UNSTUFF_BITS(resp, 96, 3); in mmc_decode_csd()
127 csd->cmdclass = UNSTUFF_BITS(resp, 84, 12); in mmc_decode_csd()
129 e = UNSTUFF_BITS(resp, 47, 3); in mmc_decode_csd()
130 m = UNSTUFF_BITS(resp, 62, 12); in mmc_decode_csd()
133 csd->read_blkbits = UNSTUFF_BITS(resp, 80, 4); in mmc_decode_csd()
134 csd->read_partial = UNSTUFF_BITS(resp, 79, 1); in mmc_decode_csd()
135 csd->write_misalign = UNSTUFF_BITS(resp, 78, 1); in mmc_decode_csd()
136 csd->read_misalign = UNSTUFF_BITS(resp, 77, 1); in mmc_decode_csd()
137 csd->dsr_imp = UNSTUFF_BITS(resp, 76, 1); in mmc_decode_csd()
138 csd->r2w_factor = UNSTUFF_BITS(resp, 26, 3); in mmc_decode_csd()
139 csd->write_blkbits = UNSTUFF_BITS(resp, 22, 4); in mmc_decode_csd()
140 csd->write_partial = UNSTUFF_BITS(resp, 21, 1); in mmc_decode_csd()
142 if (UNSTUFF_BITS(resp, 46, 1)) { in mmc_decode_csd()
145 csd->erase_size = UNSTUFF_BITS(resp, 39, 7) + 1; in mmc_decode_csd()
149 if (UNSTUFF_BITS(resp, 13, 1)) in mmc_decode_csd()
164 m = UNSTUFF_BITS(resp, 99, 4); in mmc_decode_csd()
165 e = UNSTUFF_BITS(resp, 96, 3); in mmc_decode_csd()
167 csd->cmdclass = UNSTUFF_BITS(resp, 84, 12); in mmc_decode_csd()
168 csd->c_size = UNSTUFF_BITS(resp, 48, 22); in mmc_decode_csd()
174 m = UNSTUFF_BITS(resp, 48, 22); in mmc_decode_csd()
186 if (UNSTUFF_BITS(resp, 13, 1)) in mmc_decode_csd()
207 u32 resp[4]; in mmc_decode_scr() local
209 resp[3] = card->raw_scr[1]; in mmc_decode_scr()
210 resp[2] = card->raw_scr[0]; in mmc_decode_scr()
212 scr_struct = UNSTUFF_BITS(resp, 60, 4); in mmc_decode_scr()
219 scr->sda_vsn = UNSTUFF_BITS(resp, 56, 4); in mmc_decode_scr()
220 scr->bus_widths = UNSTUFF_BITS(resp, 48, 4); in mmc_decode_scr()
223 scr->sda_spec3 = UNSTUFF_BITS(resp, 47, 1); in mmc_decode_scr()
226 scr->sda_spec4 = UNSTUFF_BITS(resp, 42, 1); in mmc_decode_scr()
227 scr->sda_specx = UNSTUFF_BITS(resp, 38, 4); in mmc_decode_scr()
230 if (UNSTUFF_BITS(resp, 55, 1)) in mmc_decode_scr()
236 scr->cmds = UNSTUFF_BITS(resp, 32, 4); in mmc_decode_scr()
238 scr->cmds = UNSTUFF_BITS(resp, 32, 2); in mmc_decode_scr()
257 u32 resp[4] = {}; in mmc_read_ssr() local
307 resp[3] = card->raw_ssr[6]; in mmc_read_ssr()
308 discard_support = UNSTUFF_BITS(resp, 313 - 288, 1); in mmc_read_ssr()