Lines Matching refs:blocks
44 u32 blocks; in sbc_emulate_readcapacity() local
47 blocks = 0xffffffff; in sbc_emulate_readcapacity()
49 blocks = (u32)blocks_long; in sbc_emulate_readcapacity()
51 buf[0] = (blocks >> 24) & 0xff; in sbc_emulate_readcapacity()
52 buf[1] = (blocks >> 16) & 0xff; in sbc_emulate_readcapacity()
53 buf[2] = (blocks >> 8) & 0xff; in sbc_emulate_readcapacity()
54 buf[3] = blocks & 0xff; in sbc_emulate_readcapacity()
76 unsigned long long blocks = dev->transport->get_blocks(dev); in sbc_emulate_readcapacity_16() local
79 buf[0] = (blocks >> 56) & 0xff; in sbc_emulate_readcapacity_16()
80 buf[1] = (blocks >> 48) & 0xff; in sbc_emulate_readcapacity_16()
81 buf[2] = (blocks >> 40) & 0xff; in sbc_emulate_readcapacity_16()
82 buf[3] = (blocks >> 32) & 0xff; in sbc_emulate_readcapacity_16()
83 buf[4] = (blocks >> 24) & 0xff; in sbc_emulate_readcapacity_16()
84 buf[5] = (blocks >> 16) & 0xff; in sbc_emulate_readcapacity_16()
85 buf[6] = (blocks >> 8) & 0xff; in sbc_emulate_readcapacity_16()
86 buf[7] = blocks & 0xff; in sbc_emulate_readcapacity_16()