unstuff_bits
card->cid.manfid = unstuff_bits(resp, 120, 8);
card->cid.oemid = unstuff_bits(resp, 104, 16);
card->cid.prod_name[0] = unstuff_bits(resp, 96, 8);
card->cid.prod_name[1] = unstuff_bits(resp, 88, 8);
card->cid.prod_name[2] = unstuff_bits(resp, 80, 8);
card->cid.prod_name[3] = unstuff_bits(resp, 72, 8);
card->cid.prod_name[4] = unstuff_bits(resp, 64, 8);
card->cid.prod_name[5] = unstuff_bits(resp, 56, 8);
card->cid.prv = unstuff_bits(resp, 48, 8);
card->cid.serial = unstuff_bits(resp, 16, 32);
card->cid.month = unstuff_bits(resp, 12, 4);
card->cid.year = unstuff_bits(resp, 8, 4) + 1997;
csd->structure = unstuff_bits(resp, 126, 2);
csd->mmca_vsn = unstuff_bits(resp, 122, 4);
m = unstuff_bits(resp, 115, 4);
e = unstuff_bits(resp, 112, 3);
csd->taac_clks = unstuff_bits(resp, 104, 8) * 100;
m = unstuff_bits(resp, 99, 4);
e = unstuff_bits(resp, 96, 3);
csd->cmdclass = unstuff_bits(resp, 84, 12);
e = unstuff_bits(resp, 47, 3);
m = unstuff_bits(resp, 62, 12);
csd->read_blkbits = unstuff_bits(resp, 80, 4);
csd->read_partial = unstuff_bits(resp, 79, 1);
csd->write_misalign = unstuff_bits(resp, 78, 1);
csd->read_misalign = unstuff_bits(resp, 77, 1);
csd->dsr_imp = unstuff_bits(resp, 76, 1);
csd->r2w_factor = unstuff_bits(resp, 26, 3);
csd->write_blkbits = unstuff_bits(resp, 22, 4);
csd->write_partial = unstuff_bits(resp, 21, 1);
a = unstuff_bits(resp, 42, 5);
b = unstuff_bits(resp, 37, 5);
csd->wp_grp_size = unstuff_bits(resp, 32, 5);
card->cid.manfid = unstuff_bits(resp, 104, 24);
card->cid.prod_name[0] = unstuff_bits(resp, 96, 8);
card->cid.prod_name[1] = unstuff_bits(resp, 88, 8);
card->cid.prod_name[2] = unstuff_bits(resp, 80, 8);
card->cid.prod_name[3] = unstuff_bits(resp, 72, 8);
card->cid.prod_name[4] = unstuff_bits(resp, 64, 8);
card->cid.prod_name[5] = unstuff_bits(resp, 56, 8);
card->cid.prod_name[6] = unstuff_bits(resp, 48, 8);
card->cid.hwrev = unstuff_bits(resp, 44, 4);
card->cid.fwrev = unstuff_bits(resp, 40, 4);
card->cid.serial = unstuff_bits(resp, 16, 24);
card->cid.month = unstuff_bits(resp, 12, 4);
card->cid.year = unstuff_bits(resp, 8, 4) + 1997;
csd_struct = unstuff_bits(resp, 126, 2);
m = unstuff_bits(resp, 115, 4);
e = unstuff_bits(resp, 112, 3);
csd->taac_clks = unstuff_bits(resp, 104, 8) * 100;
m = unstuff_bits(resp, 99, 4);
e = unstuff_bits(resp, 96, 3);
csd->cmdclass = unstuff_bits(resp, 84, 12);
e = unstuff_bits(resp, 47, 3);
m = unstuff_bits(resp, 62, 12);
csd->read_blkbits = unstuff_bits(resp, 80, 4);
csd->read_partial = unstuff_bits(resp, 79, 1);
csd->write_misalign = unstuff_bits(resp, 78, 1);
csd->read_misalign = unstuff_bits(resp, 77, 1);
csd->dsr_imp = unstuff_bits(resp, 76, 1);
csd->r2w_factor = unstuff_bits(resp, 26, 3);
csd->write_blkbits = unstuff_bits(resp, 22, 4);
csd->write_partial = unstuff_bits(resp, 21, 1);
if (unstuff_bits(resp, 46, 1)) {
csd->erase_size = unstuff_bits(resp, 39, 7) + 1;
if (unstuff_bits(resp, 13, 1))
m = unstuff_bits(resp, 99, 4);
e = unstuff_bits(resp, 96, 3);
csd->cmdclass = unstuff_bits(resp, 84, 12);
m = unstuff_bits(resp, 48, 22);
m = unstuff_bits(resp, 48, 28);
if (unstuff_bits(resp, 13, 1))
scr_struct = unstuff_bits(resp, 60, 4);
scr->sda_vsn = unstuff_bits(resp, 56, 4);
scr->bus_widths = unstuff_bits(resp, 48, 4);
scr->sda_spec3 = unstuff_bits(resp, 47, 1);
scr->sda_spec4 = unstuff_bits(resp, 42, 1);
scr->sda_specx = unstuff_bits(resp, 38, 4);
if (unstuff_bits(resp, 55, 1))
scr->cmds = unstuff_bits(resp, 32, 4);
scr->cmds = unstuff_bits(resp, 32, 2);
au = unstuff_bits(card->raw_ssr, 428 - 384, 4);
es = unstuff_bits(card->raw_ssr, 408 - 384, 16);
et = unstuff_bits(card->raw_ssr, 402 - 384, 6);
eo = unstuff_bits(card->raw_ssr, 400 - 384, 2);
discard_support = unstuff_bits(resp, 313 - 288, 1);
card->cid.manfid = unstuff_bits(resp, 120, 8);
card->cid.oemid = unstuff_bits(resp, 104, 16);
card->cid.prod_name[0] = unstuff_bits(resp, 96, 8);
card->cid.prod_name[1] = unstuff_bits(resp, 88, 8);
card->cid.prod_name[2] = unstuff_bits(resp, 80, 8);
card->cid.prod_name[3] = unstuff_bits(resp, 72, 8);
card->cid.prod_name[4] = unstuff_bits(resp, 64, 8);
card->cid.hwrev = unstuff_bits(resp, 60, 4);
card->cid.fwrev = unstuff_bits(resp, 56, 4);
card->cid.serial = unstuff_bits(resp, 24, 32);
card->cid.year = unstuff_bits(resp, 12, 8);
card->cid.month = unstuff_bits(resp, 8, 4);