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