Lines Matching refs:command_packet

543 	TW_Command *command_packet;  in tw_aen_read_queue()  local
561 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id]; in tw_aen_read_queue()
562 memset(command_packet, 0, sizeof(TW_Sector)); in tw_aen_read_queue()
563 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_GET_PARAM); in tw_aen_read_queue()
564 command_packet->size = 4; in tw_aen_read_queue()
565 command_packet->request_id = request_id; in tw_aen_read_queue()
566 command_packet->status = 0; in tw_aen_read_queue()
567 command_packet->flags = 0; in tw_aen_read_queue()
568 command_packet->byte6.parameter_count = 1; in tw_aen_read_queue()
589 command_packet->byte8.param.sgl[0].address = param_value; in tw_aen_read_queue()
590 command_packet->byte8.param.sgl[0].length = sizeof(TW_Sector); in tw_aen_read_queue()
673 TW_Command *command_packet; in tw_aen_drain_queue() local
702 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id]; in tw_aen_drain_queue()
703 memset(command_packet, 0, sizeof(TW_Sector)); in tw_aen_drain_queue()
704 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_GET_PARAM); in tw_aen_drain_queue()
705 command_packet->size = 4; in tw_aen_drain_queue()
706 command_packet->request_id = request_id; in tw_aen_drain_queue()
707 command_packet->status = 0; in tw_aen_drain_queue()
708 command_packet->flags = 0; in tw_aen_drain_queue()
709 command_packet->byte6.parameter_count = 1; in tw_aen_drain_queue()
731 command_packet->byte8.param.sgl[0].address = param_value; in tw_aen_drain_queue()
732 command_packet->byte8.param.sgl[0].length = sizeof(TW_Sector); in tw_aen_drain_queue()
750 if (command_packet->status != 0) { in tw_aen_drain_queue()
751 if (command_packet->flags != TW_AEN_TABLE_UNDEFINED) { in tw_aen_drain_queue()
1075 TW_Command *command_packet; in tw_initconnection() local
1087 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id]; in tw_initconnection()
1088 memset(command_packet, 0, sizeof(TW_Sector)); in tw_initconnection()
1089 command_packet->opcode__sgloffset = TW_OPSGL_IN(0, TW_OP_INIT_CONNECTION); in tw_initconnection()
1090 command_packet->size = TW_INIT_COMMAND_PACKET_SIZE; in tw_initconnection()
1091 command_packet->request_id = request_id; in tw_initconnection()
1092 command_packet->status = 0x0; in tw_initconnection()
1093 command_packet->flags = 0x0; in tw_initconnection()
1094 command_packet->byte6.message_credits = message_credits; in tw_initconnection()
1095 command_packet->byte8.init_connection.response_queue_pointer = 0x0; in tw_initconnection()
1116 if (command_packet->status != 0) { in tw_initconnection()
1130 TW_Command *command_packet; in tw_setfeature() local
1141 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id]; in tw_setfeature()
1142 memset(command_packet, 0, sizeof(TW_Sector)); in tw_setfeature()
1145 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_SET_PARAM); in tw_setfeature()
1159 command_packet->byte8.param.sgl[0].address = param_value; in tw_setfeature()
1160 command_packet->byte8.param.sgl[0].length = sizeof(TW_Sector); in tw_setfeature()
1162 command_packet->size = 4; in tw_setfeature()
1163 command_packet->request_id = request_id; in tw_setfeature()
1164 command_packet->byte6.parameter_count = 1; in tw_setfeature()
1185 if (command_packet->status != 0) { in tw_setfeature()
1395 TW_Command *command_packet; in tw_scsiop_inquiry() local
1402 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id]; in tw_scsiop_inquiry()
1403 if (command_packet == NULL) { in tw_scsiop_inquiry()
1407 memset(command_packet, 0, sizeof(TW_Sector)); in tw_scsiop_inquiry()
1408 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_GET_PARAM); in tw_scsiop_inquiry()
1409 command_packet->size = 4; in tw_scsiop_inquiry()
1410 command_packet->request_id = request_id; in tw_scsiop_inquiry()
1411 command_packet->status = 0; in tw_scsiop_inquiry()
1412 command_packet->flags = 0; in tw_scsiop_inquiry()
1413 command_packet->byte6.parameter_count = 1; in tw_scsiop_inquiry()
1431 command_packet->byte8.param.sgl[0].address = param_value; in tw_scsiop_inquiry()
1432 command_packet->byte8.param.sgl[0].length = sizeof(TW_Sector); in tw_scsiop_inquiry()
1493 TW_Command *command_packet; in tw_scsiop_mode_sense() local
1509 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id]; in tw_scsiop_mode_sense()
1510 if (command_packet == NULL) { in tw_scsiop_mode_sense()
1516 memset(command_packet, 0, sizeof(TW_Sector)); in tw_scsiop_mode_sense()
1517 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_GET_PARAM); in tw_scsiop_mode_sense()
1518 command_packet->size = 4; in tw_scsiop_mode_sense()
1519 command_packet->request_id = request_id; in tw_scsiop_mode_sense()
1520 command_packet->status = 0; in tw_scsiop_mode_sense()
1521 command_packet->flags = 0; in tw_scsiop_mode_sense()
1522 command_packet->byte6.parameter_count = 1; in tw_scsiop_mode_sense()
1541 command_packet->byte8.param.sgl[0].address = param_value; in tw_scsiop_mode_sense()
1542 command_packet->byte8.param.sgl[0].length = sizeof(TW_Sector); in tw_scsiop_mode_sense()
1592 TW_Command *command_packet; in tw_scsiop_read_capacity() local
1599 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id]; in tw_scsiop_read_capacity()
1601 if (command_packet == NULL) { in tw_scsiop_read_capacity()
1605 memset(command_packet, 0, sizeof(TW_Sector)); in tw_scsiop_read_capacity()
1606 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_GET_PARAM); in tw_scsiop_read_capacity()
1607 command_packet->size = 4; in tw_scsiop_read_capacity()
1608 command_packet->request_id = request_id; in tw_scsiop_read_capacity()
1609 command_packet->unit__hostid = TW_UNITHOST_IN(0, tw_dev->srb[request_id]->device->id); in tw_scsiop_read_capacity()
1610 command_packet->status = 0; in tw_scsiop_read_capacity()
1611 command_packet->flags = 0; in tw_scsiop_read_capacity()
1612 command_packet->byte6.block_count = 1; in tw_scsiop_read_capacity()
1631 command_packet->byte8.param.sgl[0].address = param_value; in tw_scsiop_read_capacity()
1632 command_packet->byte8.param.sgl[0].length = sizeof(TW_Sector); in tw_scsiop_read_capacity()
1691 TW_Command *command_packet; in tw_scsiop_read_write() local
1709 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id]; in tw_scsiop_read_write()
1710 if (command_packet == NULL) { in tw_scsiop_read_write()
1716 command_packet->opcode__sgloffset = TW_OPSGL_IN(3, TW_OP_READ); in tw_scsiop_read_write()
1718 command_packet->opcode__sgloffset = TW_OPSGL_IN(3, TW_OP_WRITE); in tw_scsiop_read_write()
1721 command_packet->size = 3; in tw_scsiop_read_write()
1722 command_packet->request_id = request_id; in tw_scsiop_read_write()
1723 command_packet->unit__hostid = TW_UNITHOST_IN(0, srb->device->id); in tw_scsiop_read_write()
1724 command_packet->status = 0; in tw_scsiop_read_write()
1725 command_packet->flags = 0; in tw_scsiop_read_write()
1729 command_packet->flags = 1; in tw_scsiop_read_write()
1746 command_packet->byte8.io.lba = lba; in tw_scsiop_read_write()
1747 command_packet->byte6.block_count = num_sectors; in tw_scsiop_read_write()
1754 command_packet->byte8.io.sgl[i].address = sg_dma_address(sg); in tw_scsiop_read_write()
1755 command_packet->byte8.io.sgl[i].length = sg_dma_len(sg); in tw_scsiop_read_write()
1756 command_packet->size+=2; in tw_scsiop_read_write()
1803 TW_Command *command_packet; in tw_scsiop_synchronize_cache() local
1809 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id]; in tw_scsiop_synchronize_cache()
1810 if (command_packet == NULL) { in tw_scsiop_synchronize_cache()
1816 memset(command_packet, 0, sizeof(TW_Sector)); in tw_scsiop_synchronize_cache()
1817 command_packet->opcode__sgloffset = TW_OPSGL_IN(0, TW_OP_FLUSH_CACHE); in tw_scsiop_synchronize_cache()
1818 command_packet->size = 2; in tw_scsiop_synchronize_cache()
1819 command_packet->request_id = request_id; in tw_scsiop_synchronize_cache()
1820 command_packet->unit__hostid = TW_UNITHOST_IN(0, tw_dev->srb[request_id]->device->id); in tw_scsiop_synchronize_cache()
1821 command_packet->status = 0; in tw_scsiop_synchronize_cache()
1822 command_packet->flags = 0; in tw_scsiop_synchronize_cache()
1823 command_packet->byte6.parameter_count = 1; in tw_scsiop_synchronize_cache()
1840 TW_Command *command_packet; in tw_scsiop_test_unit_ready() local
1847 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id]; in tw_scsiop_test_unit_ready()
1848 if (command_packet == NULL) { in tw_scsiop_test_unit_ready()
1852 memset(command_packet, 0, sizeof(TW_Sector)); in tw_scsiop_test_unit_ready()
1853 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_GET_PARAM); in tw_scsiop_test_unit_ready()
1854 command_packet->size = 4; in tw_scsiop_test_unit_ready()
1855 command_packet->request_id = request_id; in tw_scsiop_test_unit_ready()
1856 command_packet->status = 0; in tw_scsiop_test_unit_ready()
1857 command_packet->flags = 0; in tw_scsiop_test_unit_ready()
1858 command_packet->byte6.parameter_count = 1; in tw_scsiop_test_unit_ready()
1876 command_packet->byte8.param.sgl[0].address = param_value; in tw_scsiop_test_unit_ready()
1877 command_packet->byte8.param.sgl[0].length = sizeof(TW_Sector); in tw_scsiop_test_unit_ready()
2001 TW_Command *command_packet; in DEF_SCSI_QCMD() local
2081 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id]; in DEF_SCSI_QCMD()
2085 if (command_packet->status != 0) { in DEF_SCSI_QCMD()