Lines Matching refs:blocks
50 u32 blocks; in sbc_emulate_readcapacity() local
68 blocks = 0xffffffff; in sbc_emulate_readcapacity()
70 blocks = (u32)blocks_long; in sbc_emulate_readcapacity()
72 buf[0] = (blocks >> 24) & 0xff; in sbc_emulate_readcapacity()
73 buf[1] = (blocks >> 16) & 0xff; in sbc_emulate_readcapacity()
74 buf[2] = (blocks >> 8) & 0xff; in sbc_emulate_readcapacity()
75 buf[3] = blocks & 0xff; in sbc_emulate_readcapacity()
100 unsigned long long blocks = dev->transport->get_blocks(dev); in sbc_emulate_readcapacity_16() local
103 buf[0] = (blocks >> 56) & 0xff; in sbc_emulate_readcapacity_16()
104 buf[1] = (blocks >> 48) & 0xff; in sbc_emulate_readcapacity_16()
105 buf[2] = (blocks >> 40) & 0xff; in sbc_emulate_readcapacity_16()
106 buf[3] = (blocks >> 32) & 0xff; in sbc_emulate_readcapacity_16()
107 buf[4] = (blocks >> 24) & 0xff; in sbc_emulate_readcapacity_16()
108 buf[5] = (blocks >> 16) & 0xff; in sbc_emulate_readcapacity_16()
109 buf[6] = (blocks >> 8) & 0xff; in sbc_emulate_readcapacity_16()
110 buf[7] = blocks & 0xff; in sbc_emulate_readcapacity_16()