Lines Matching refs:command_packet

545 	TW_Command *command_packet;  in tw_aen_read_queue()  local
563 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id]; in tw_aen_read_queue()
564 memset(command_packet, 0, sizeof(TW_Sector)); in tw_aen_read_queue()
565 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_GET_PARAM); in tw_aen_read_queue()
566 command_packet->size = 4; in tw_aen_read_queue()
567 command_packet->request_id = request_id; in tw_aen_read_queue()
568 command_packet->status = 0; in tw_aen_read_queue()
569 command_packet->flags = 0; in tw_aen_read_queue()
570 command_packet->byte6.parameter_count = 1; in tw_aen_read_queue()
591 command_packet->byte8.param.sgl[0].address = param_value; in tw_aen_read_queue()
592 command_packet->byte8.param.sgl[0].length = sizeof(TW_Sector); in tw_aen_read_queue()
675 TW_Command *command_packet; in tw_aen_drain_queue() local
704 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id]; in tw_aen_drain_queue()
705 memset(command_packet, 0, sizeof(TW_Sector)); in tw_aen_drain_queue()
706 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_GET_PARAM); in tw_aen_drain_queue()
707 command_packet->size = 4; in tw_aen_drain_queue()
708 command_packet->request_id = request_id; in tw_aen_drain_queue()
709 command_packet->status = 0; in tw_aen_drain_queue()
710 command_packet->flags = 0; in tw_aen_drain_queue()
711 command_packet->byte6.parameter_count = 1; in tw_aen_drain_queue()
733 command_packet->byte8.param.sgl[0].address = param_value; in tw_aen_drain_queue()
734 command_packet->byte8.param.sgl[0].length = sizeof(TW_Sector); in tw_aen_drain_queue()
752 if (command_packet->status != 0) { in tw_aen_drain_queue()
753 if (command_packet->flags != TW_AEN_TABLE_UNDEFINED) { in tw_aen_drain_queue()
1083 TW_Command *command_packet; in tw_initconnection() local
1095 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id]; in tw_initconnection()
1096 memset(command_packet, 0, sizeof(TW_Sector)); in tw_initconnection()
1097 command_packet->opcode__sgloffset = TW_OPSGL_IN(0, TW_OP_INIT_CONNECTION); in tw_initconnection()
1098 command_packet->size = TW_INIT_COMMAND_PACKET_SIZE; in tw_initconnection()
1099 command_packet->request_id = request_id; in tw_initconnection()
1100 command_packet->status = 0x0; in tw_initconnection()
1101 command_packet->flags = 0x0; in tw_initconnection()
1102 command_packet->byte6.message_credits = message_credits; in tw_initconnection()
1103 command_packet->byte8.init_connection.response_queue_pointer = 0x0; in tw_initconnection()
1124 if (command_packet->status != 0) { in tw_initconnection()
1138 TW_Command *command_packet; in tw_setfeature() local
1149 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id]; in tw_setfeature()
1150 memset(command_packet, 0, sizeof(TW_Sector)); in tw_setfeature()
1153 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_SET_PARAM); in tw_setfeature()
1167 command_packet->byte8.param.sgl[0].address = param_value; in tw_setfeature()
1168 command_packet->byte8.param.sgl[0].length = sizeof(TW_Sector); in tw_setfeature()
1170 command_packet->size = 4; in tw_setfeature()
1171 command_packet->request_id = request_id; in tw_setfeature()
1172 command_packet->byte6.parameter_count = 1; in tw_setfeature()
1193 if (command_packet->status != 0) { in tw_setfeature()
1401 TW_Command *command_packet; in tw_scsiop_inquiry() local
1408 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id]; in tw_scsiop_inquiry()
1409 if (command_packet == NULL) { in tw_scsiop_inquiry()
1413 memset(command_packet, 0, sizeof(TW_Sector)); in tw_scsiop_inquiry()
1414 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_GET_PARAM); in tw_scsiop_inquiry()
1415 command_packet->size = 4; in tw_scsiop_inquiry()
1416 command_packet->request_id = request_id; in tw_scsiop_inquiry()
1417 command_packet->status = 0; in tw_scsiop_inquiry()
1418 command_packet->flags = 0; in tw_scsiop_inquiry()
1419 command_packet->byte6.parameter_count = 1; in tw_scsiop_inquiry()
1437 command_packet->byte8.param.sgl[0].address = param_value; in tw_scsiop_inquiry()
1438 command_packet->byte8.param.sgl[0].length = sizeof(TW_Sector); in tw_scsiop_inquiry()
1499 TW_Command *command_packet; in tw_scsiop_mode_sense() local
1515 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id]; in tw_scsiop_mode_sense()
1516 if (command_packet == NULL) { in tw_scsiop_mode_sense()
1522 memset(command_packet, 0, sizeof(TW_Sector)); in tw_scsiop_mode_sense()
1523 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_GET_PARAM); in tw_scsiop_mode_sense()
1524 command_packet->size = 4; in tw_scsiop_mode_sense()
1525 command_packet->request_id = request_id; in tw_scsiop_mode_sense()
1526 command_packet->status = 0; in tw_scsiop_mode_sense()
1527 command_packet->flags = 0; in tw_scsiop_mode_sense()
1528 command_packet->byte6.parameter_count = 1; in tw_scsiop_mode_sense()
1547 command_packet->byte8.param.sgl[0].address = param_value; in tw_scsiop_mode_sense()
1548 command_packet->byte8.param.sgl[0].length = sizeof(TW_Sector); in tw_scsiop_mode_sense()
1598 TW_Command *command_packet; in tw_scsiop_read_capacity() local
1605 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id]; in tw_scsiop_read_capacity()
1607 if (command_packet == NULL) { in tw_scsiop_read_capacity()
1611 memset(command_packet, 0, sizeof(TW_Sector)); in tw_scsiop_read_capacity()
1612 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_GET_PARAM); in tw_scsiop_read_capacity()
1613 command_packet->size = 4; in tw_scsiop_read_capacity()
1614 command_packet->request_id = request_id; in tw_scsiop_read_capacity()
1615 command_packet->unit__hostid = TW_UNITHOST_IN(0, tw_dev->srb[request_id]->device->id); in tw_scsiop_read_capacity()
1616 command_packet->status = 0; in tw_scsiop_read_capacity()
1617 command_packet->flags = 0; in tw_scsiop_read_capacity()
1618 command_packet->byte6.block_count = 1; in tw_scsiop_read_capacity()
1637 command_packet->byte8.param.sgl[0].address = param_value; in tw_scsiop_read_capacity()
1638 command_packet->byte8.param.sgl[0].length = sizeof(TW_Sector); in tw_scsiop_read_capacity()
1697 TW_Command *command_packet; in tw_scsiop_read_write() local
1715 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id]; in tw_scsiop_read_write()
1716 if (command_packet == NULL) { in tw_scsiop_read_write()
1722 command_packet->opcode__sgloffset = TW_OPSGL_IN(3, TW_OP_READ); in tw_scsiop_read_write()
1724 command_packet->opcode__sgloffset = TW_OPSGL_IN(3, TW_OP_WRITE); in tw_scsiop_read_write()
1727 command_packet->size = 3; in tw_scsiop_read_write()
1728 command_packet->request_id = request_id; in tw_scsiop_read_write()
1729 command_packet->unit__hostid = TW_UNITHOST_IN(0, srb->device->id); in tw_scsiop_read_write()
1730 command_packet->status = 0; in tw_scsiop_read_write()
1731 command_packet->flags = 0; in tw_scsiop_read_write()
1735 command_packet->flags = 1; in tw_scsiop_read_write()
1752 command_packet->byte8.io.lba = lba; in tw_scsiop_read_write()
1753 command_packet->byte6.block_count = num_sectors; in tw_scsiop_read_write()
1760 command_packet->byte8.io.sgl[i].address = sg_dma_address(sg); in tw_scsiop_read_write()
1761 command_packet->byte8.io.sgl[i].length = sg_dma_len(sg); in tw_scsiop_read_write()
1762 command_packet->size+=2; in tw_scsiop_read_write()
1809 TW_Command *command_packet; in tw_scsiop_synchronize_cache() local
1815 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id]; in tw_scsiop_synchronize_cache()
1816 if (command_packet == NULL) { in tw_scsiop_synchronize_cache()
1822 memset(command_packet, 0, sizeof(TW_Sector)); in tw_scsiop_synchronize_cache()
1823 command_packet->opcode__sgloffset = TW_OPSGL_IN(0, TW_OP_FLUSH_CACHE); in tw_scsiop_synchronize_cache()
1824 command_packet->size = 2; in tw_scsiop_synchronize_cache()
1825 command_packet->request_id = request_id; in tw_scsiop_synchronize_cache()
1826 command_packet->unit__hostid = TW_UNITHOST_IN(0, tw_dev->srb[request_id]->device->id); in tw_scsiop_synchronize_cache()
1827 command_packet->status = 0; in tw_scsiop_synchronize_cache()
1828 command_packet->flags = 0; in tw_scsiop_synchronize_cache()
1829 command_packet->byte6.parameter_count = 1; in tw_scsiop_synchronize_cache()
1846 TW_Command *command_packet; in tw_scsiop_test_unit_ready() local
1853 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id]; in tw_scsiop_test_unit_ready()
1854 if (command_packet == NULL) { in tw_scsiop_test_unit_ready()
1858 memset(command_packet, 0, sizeof(TW_Sector)); in tw_scsiop_test_unit_ready()
1859 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_GET_PARAM); in tw_scsiop_test_unit_ready()
1860 command_packet->size = 4; in tw_scsiop_test_unit_ready()
1861 command_packet->request_id = request_id; in tw_scsiop_test_unit_ready()
1862 command_packet->status = 0; in tw_scsiop_test_unit_ready()
1863 command_packet->flags = 0; in tw_scsiop_test_unit_ready()
1864 command_packet->byte6.parameter_count = 1; in tw_scsiop_test_unit_ready()
1882 command_packet->byte8.param.sgl[0].address = param_value; in tw_scsiop_test_unit_ready()
1883 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()