Lines Matching refs:writecmd
1386 struct aac_raw_io *writecmd; in aac_write_raw_io() local
1387 writecmd = (struct aac_raw_io *) fib_data(fib); in aac_write_raw_io()
1388 writecmd->block[0] = cpu_to_le32((u32)(lba&0xffffffff)); in aac_write_raw_io()
1389 writecmd->block[1] = cpu_to_le32((u32)((lba&0xffffffff00000000LL)>>32)); in aac_write_raw_io()
1390 writecmd->count = cpu_to_le32(count * in aac_write_raw_io()
1392 writecmd->cid = cpu_to_le16(scmd_id(cmd)); in aac_write_raw_io()
1393 writecmd->flags = (fua && ((aac_cache & 5) != 1) && in aac_write_raw_io()
1397 writecmd->bpTotal = 0; in aac_write_raw_io()
1398 writecmd->bpComplete = 0; in aac_write_raw_io()
1399 ret = aac_build_sgraw(cmd, &writecmd->sg); in aac_write_raw_io()
1404 ((le32_to_cpu(writecmd->sg.count)-1) * sizeof (struct sgentryraw)); in aac_write_raw_io()
1423 struct aac_write64 *writecmd; in aac_write_block64() local
1427 writecmd = (struct aac_write64 *) fib_data(fib); in aac_write_block64()
1428 writecmd->command = cpu_to_le32(VM_CtHostWrite64); in aac_write_block64()
1429 writecmd->cid = cpu_to_le16(scmd_id(cmd)); in aac_write_block64()
1430 writecmd->sector_count = cpu_to_le16(count); in aac_write_block64()
1431 writecmd->block = cpu_to_le32((u32)(lba&0xffffffff)); in aac_write_block64()
1432 writecmd->pad = 0; in aac_write_block64()
1433 writecmd->flags = 0; in aac_write_block64()
1435 ret = aac_build_sg64(cmd, &writecmd->sg); in aac_write_block64()
1439 ((le32_to_cpu(writecmd->sg.count) - 1) * in aac_write_block64()
1458 struct aac_write *writecmd; in aac_write_block() local
1463 writecmd = (struct aac_write *) fib_data(fib); in aac_write_block()
1464 writecmd->command = cpu_to_le32(VM_CtBlockWrite); in aac_write_block()
1465 writecmd->cid = cpu_to_le32(scmd_id(cmd)); in aac_write_block()
1466 writecmd->block = cpu_to_le32((u32)(lba&0xffffffff)); in aac_write_block()
1467 writecmd->count = cpu_to_le32(count * in aac_write_block()
1469 writecmd->sg.count = cpu_to_le32(1); in aac_write_block()
1472 ret = aac_build_sg(cmd, &writecmd->sg); in aac_write_block()
1476 ((le32_to_cpu(writecmd->sg.count) - 1) * in aac_write_block()