Lines Matching refs:readcmd
1255 struct aac_raw_io *readcmd; in aac_read_raw_io() local
1256 readcmd = (struct aac_raw_io *) fib_data(fib); in aac_read_raw_io()
1257 readcmd->block[0] = cpu_to_le32((u32)(lba&0xffffffff)); in aac_read_raw_io()
1258 readcmd->block[1] = cpu_to_le32((u32)((lba&0xffffffff00000000LL)>>32)); in aac_read_raw_io()
1259 readcmd->count = cpu_to_le32(count * in aac_read_raw_io()
1261 readcmd->cid = cpu_to_le16(scmd_id(cmd)); in aac_read_raw_io()
1262 readcmd->flags = cpu_to_le16(RIO_TYPE_READ); in aac_read_raw_io()
1263 readcmd->bpTotal = 0; in aac_read_raw_io()
1264 readcmd->bpComplete = 0; in aac_read_raw_io()
1265 ret = aac_build_sgraw(cmd, &readcmd->sg); in aac_read_raw_io()
1270 ((le32_to_cpu(readcmd->sg.count)-1) * sizeof(struct sgentryraw)); in aac_read_raw_io()
1289 struct aac_read64 *readcmd; in aac_read_block64() local
1293 readcmd = (struct aac_read64 *) fib_data(fib); in aac_read_block64()
1294 readcmd->command = cpu_to_le32(VM_CtHostRead64); in aac_read_block64()
1295 readcmd->cid = cpu_to_le16(scmd_id(cmd)); in aac_read_block64()
1296 readcmd->sector_count = cpu_to_le16(count); in aac_read_block64()
1297 readcmd->block = cpu_to_le32((u32)(lba&0xffffffff)); in aac_read_block64()
1298 readcmd->pad = 0; in aac_read_block64()
1299 readcmd->flags = 0; in aac_read_block64()
1301 ret = aac_build_sg64(cmd, &readcmd->sg); in aac_read_block64()
1305 ((le32_to_cpu(readcmd->sg.count) - 1) * in aac_read_block64()
1324 struct aac_read *readcmd; in aac_read_block() local
1329 readcmd = (struct aac_read *) fib_data(fib); in aac_read_block()
1330 readcmd->command = cpu_to_le32(VM_CtBlockRead); in aac_read_block()
1331 readcmd->cid = cpu_to_le32(scmd_id(cmd)); in aac_read_block()
1332 readcmd->block = cpu_to_le32((u32)(lba&0xffffffff)); in aac_read_block()
1333 readcmd->count = cpu_to_le32(count * in aac_read_block()
1336 ret = aac_build_sg(cmd, &readcmd->sg); in aac_read_block()
1340 ((le32_to_cpu(readcmd->sg.count) - 1) * in aac_read_block()