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()
1081 TW_Command *command_packet; in tw_initconnection() local
1093 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id]; in tw_initconnection()
1094 memset(command_packet, 0, sizeof(TW_Sector)); in tw_initconnection()
1095 command_packet->opcode__sgloffset = TW_OPSGL_IN(0, TW_OP_INIT_CONNECTION); in tw_initconnection()
1096 command_packet->size = TW_INIT_COMMAND_PACKET_SIZE; in tw_initconnection()
1097 command_packet->request_id = request_id; in tw_initconnection()
1098 command_packet->status = 0x0; in tw_initconnection()
1099 command_packet->flags = 0x0; in tw_initconnection()
1100 command_packet->byte6.message_credits = message_credits; in tw_initconnection()
1101 command_packet->byte8.init_connection.response_queue_pointer = 0x0; in tw_initconnection()
1122 if (command_packet->status != 0) { in tw_initconnection()
1136 TW_Command *command_packet; in tw_setfeature() local
1147 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id]; in tw_setfeature()
1148 memset(command_packet, 0, sizeof(TW_Sector)); in tw_setfeature()
1151 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_SET_PARAM); in tw_setfeature()
1165 command_packet->byte8.param.sgl[0].address = param_value; in tw_setfeature()
1166 command_packet->byte8.param.sgl[0].length = sizeof(TW_Sector); in tw_setfeature()
1168 command_packet->size = 4; in tw_setfeature()
1169 command_packet->request_id = request_id; in tw_setfeature()
1170 command_packet->byte6.parameter_count = 1; in tw_setfeature()
1191 if (command_packet->status != 0) { in tw_setfeature()
1399 TW_Command *command_packet; in tw_scsiop_inquiry() local
1406 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id]; in tw_scsiop_inquiry()
1407 if (command_packet == NULL) { in tw_scsiop_inquiry()
1411 memset(command_packet, 0, sizeof(TW_Sector)); in tw_scsiop_inquiry()
1412 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_GET_PARAM); in tw_scsiop_inquiry()
1413 command_packet->size = 4; in tw_scsiop_inquiry()
1414 command_packet->request_id = request_id; in tw_scsiop_inquiry()
1415 command_packet->status = 0; in tw_scsiop_inquiry()
1416 command_packet->flags = 0; in tw_scsiop_inquiry()
1417 command_packet->byte6.parameter_count = 1; in tw_scsiop_inquiry()
1435 command_packet->byte8.param.sgl[0].address = param_value; in tw_scsiop_inquiry()
1436 command_packet->byte8.param.sgl[0].length = sizeof(TW_Sector); in tw_scsiop_inquiry()
1497 TW_Command *command_packet; in tw_scsiop_mode_sense() local
1513 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id]; in tw_scsiop_mode_sense()
1514 if (command_packet == NULL) { in tw_scsiop_mode_sense()
1520 memset(command_packet, 0, sizeof(TW_Sector)); in tw_scsiop_mode_sense()
1521 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_GET_PARAM); in tw_scsiop_mode_sense()
1522 command_packet->size = 4; in tw_scsiop_mode_sense()
1523 command_packet->request_id = request_id; in tw_scsiop_mode_sense()
1524 command_packet->status = 0; in tw_scsiop_mode_sense()
1525 command_packet->flags = 0; in tw_scsiop_mode_sense()
1526 command_packet->byte6.parameter_count = 1; in tw_scsiop_mode_sense()
1545 command_packet->byte8.param.sgl[0].address = param_value; in tw_scsiop_mode_sense()
1546 command_packet->byte8.param.sgl[0].length = sizeof(TW_Sector); in tw_scsiop_mode_sense()
1596 TW_Command *command_packet; in tw_scsiop_read_capacity() local
1603 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id]; in tw_scsiop_read_capacity()
1605 if (command_packet == NULL) { in tw_scsiop_read_capacity()
1609 memset(command_packet, 0, sizeof(TW_Sector)); in tw_scsiop_read_capacity()
1610 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_GET_PARAM); in tw_scsiop_read_capacity()
1611 command_packet->size = 4; in tw_scsiop_read_capacity()
1612 command_packet->request_id = request_id; in tw_scsiop_read_capacity()
1613 command_packet->unit__hostid = TW_UNITHOST_IN(0, tw_dev->srb[request_id]->device->id); in tw_scsiop_read_capacity()
1614 command_packet->status = 0; in tw_scsiop_read_capacity()
1615 command_packet->flags = 0; in tw_scsiop_read_capacity()
1616 command_packet->byte6.block_count = 1; in tw_scsiop_read_capacity()
1635 command_packet->byte8.param.sgl[0].address = param_value; in tw_scsiop_read_capacity()
1636 command_packet->byte8.param.sgl[0].length = sizeof(TW_Sector); in tw_scsiop_read_capacity()
1695 TW_Command *command_packet; in tw_scsiop_read_write() local
1713 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id]; in tw_scsiop_read_write()
1714 if (command_packet == NULL) { in tw_scsiop_read_write()
1720 command_packet->opcode__sgloffset = TW_OPSGL_IN(3, TW_OP_READ); in tw_scsiop_read_write()
1722 command_packet->opcode__sgloffset = TW_OPSGL_IN(3, TW_OP_WRITE); in tw_scsiop_read_write()
1725 command_packet->size = 3; in tw_scsiop_read_write()
1726 command_packet->request_id = request_id; in tw_scsiop_read_write()
1727 command_packet->unit__hostid = TW_UNITHOST_IN(0, srb->device->id); in tw_scsiop_read_write()
1728 command_packet->status = 0; in tw_scsiop_read_write()
1729 command_packet->flags = 0; in tw_scsiop_read_write()
1733 command_packet->flags = 1; in tw_scsiop_read_write()
1750 command_packet->byte8.io.lba = lba; in tw_scsiop_read_write()
1751 command_packet->byte6.block_count = num_sectors; in tw_scsiop_read_write()
1758 command_packet->byte8.io.sgl[i].address = sg_dma_address(sg); in tw_scsiop_read_write()
1759 command_packet->byte8.io.sgl[i].length = sg_dma_len(sg); in tw_scsiop_read_write()
1760 command_packet->size+=2; in tw_scsiop_read_write()
1807 TW_Command *command_packet; in tw_scsiop_synchronize_cache() local
1813 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id]; in tw_scsiop_synchronize_cache()
1814 if (command_packet == NULL) { in tw_scsiop_synchronize_cache()
1820 memset(command_packet, 0, sizeof(TW_Sector)); in tw_scsiop_synchronize_cache()
1821 command_packet->opcode__sgloffset = TW_OPSGL_IN(0, TW_OP_FLUSH_CACHE); in tw_scsiop_synchronize_cache()
1822 command_packet->size = 2; in tw_scsiop_synchronize_cache()
1823 command_packet->request_id = request_id; in tw_scsiop_synchronize_cache()
1824 command_packet->unit__hostid = TW_UNITHOST_IN(0, tw_dev->srb[request_id]->device->id); in tw_scsiop_synchronize_cache()
1825 command_packet->status = 0; in tw_scsiop_synchronize_cache()
1826 command_packet->flags = 0; in tw_scsiop_synchronize_cache()
1827 command_packet->byte6.parameter_count = 1; in tw_scsiop_synchronize_cache()
1844 TW_Command *command_packet; in tw_scsiop_test_unit_ready() local
1851 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id]; in tw_scsiop_test_unit_ready()
1852 if (command_packet == NULL) { in tw_scsiop_test_unit_ready()
1856 memset(command_packet, 0, sizeof(TW_Sector)); in tw_scsiop_test_unit_ready()
1857 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_GET_PARAM); in tw_scsiop_test_unit_ready()
1858 command_packet->size = 4; in tw_scsiop_test_unit_ready()
1859 command_packet->request_id = request_id; in tw_scsiop_test_unit_ready()
1860 command_packet->status = 0; in tw_scsiop_test_unit_ready()
1861 command_packet->flags = 0; in tw_scsiop_test_unit_ready()
1862 command_packet->byte6.parameter_count = 1; in tw_scsiop_test_unit_ready()
1880 command_packet->byte8.param.sgl[0].address = param_value; in tw_scsiop_test_unit_ready()
1881 command_packet->byte8.param.sgl[0].length = sizeof(TW_Sector); in tw_scsiop_test_unit_ready()
2004 TW_Command *command_packet; in DEF_SCSI_QCMD() local
2084 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id]; in DEF_SCSI_QCMD()
2088 if (command_packet->status != 0) { in DEF_SCSI_QCMD()