• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/scsi/

Lines Matching refs:command_packet

359 	TW_Command *command_packet;
377 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id];
378 memset(command_packet, 0, sizeof(TW_Sector));
379 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_GET_PARAM);
380 command_packet->size = 4;
381 command_packet->request_id = request_id;
382 command_packet->status = 0;
383 command_packet->flags = 0;
384 command_packet->byte6.parameter_count = 1;
405 command_packet->byte8.param.sgl[0].address = param_value;
406 command_packet->byte8.param.sgl[0].length = sizeof(TW_Sector);
489 TW_Command *command_packet;
518 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id];
519 memset(command_packet, 0, sizeof(TW_Sector));
520 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_GET_PARAM);
521 command_packet->size = 4;
522 command_packet->request_id = request_id;
523 command_packet->status = 0;
524 command_packet->flags = 0;
525 command_packet->byte6.parameter_count = 1;
547 command_packet->byte8.param.sgl[0].address = param_value;
548 command_packet->byte8.param.sgl[0].length = sizeof(TW_Sector);
566 if (command_packet->status != 0) {
567 if (command_packet->flags != TW_AEN_TABLE_UNDEFINED) {
885 TW_Command *command_packet;
897 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id];
898 memset(command_packet, 0, sizeof(TW_Sector));
899 command_packet->opcode__sgloffset = TW_OPSGL_IN(0, TW_OP_INIT_CONNECTION);
900 command_packet->size = TW_INIT_COMMAND_PACKET_SIZE;
901 command_packet->request_id = request_id;
902 command_packet->status = 0x0;
903 command_packet->flags = 0x0;
904 command_packet->byte6.message_credits = message_credits;
905 command_packet->byte8.init_connection.response_queue_pointer = 0x0;
926 if (command_packet->status != 0) {
940 TW_Command *command_packet;
951 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id];
952 memset(command_packet, 0, sizeof(TW_Sector));
955 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_SET_PARAM);
969 command_packet->byte8.param.sgl[0].address = param_value;
970 command_packet->byte8.param.sgl[0].length = sizeof(TW_Sector);
972 command_packet->size = 4;
973 command_packet->request_id = request_id;
974 command_packet->byte6.parameter_count = 1;
995 if (command_packet->status != 0) {
1231 TW_Command *command_packet;
1238 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id];
1239 if (command_packet == NULL) {
1243 memset(command_packet, 0, sizeof(TW_Sector));
1244 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_GET_PARAM);
1245 command_packet->size = 4;
1246 command_packet->request_id = request_id;
1247 command_packet->status = 0;
1248 command_packet->flags = 0;
1249 command_packet->byte6.parameter_count = 1;
1267 command_packet->byte8.param.sgl[0].address = param_value;
1268 command_packet->byte8.param.sgl[0].length = sizeof(TW_Sector);
1329 TW_Command *command_packet;
1345 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id];
1346 if (command_packet == NULL) {
1352 memset(command_packet, 0, sizeof(TW_Sector));
1353 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_GET_PARAM);
1354 command_packet->size = 4;
1355 command_packet->request_id = request_id;
1356 command_packet->status = 0;
1357 command_packet->flags = 0;
1358 command_packet->byte6.parameter_count = 1;
1377 command_packet->byte8.param.sgl[0].address = param_value;
1378 command_packet->byte8.param.sgl[0].length = sizeof(TW_Sector);
1428 TW_Command *command_packet;
1435 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id];
1437 if (command_packet == NULL) {
1441 memset(command_packet, 0, sizeof(TW_Sector));
1442 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_GET_PARAM);
1443 command_packet->size = 4;
1444 command_packet->request_id = request_id;
1445 command_packet->unit__hostid = TW_UNITHOST_IN(0, tw_dev->srb[request_id]->device->id);
1446 command_packet->status = 0;
1447 command_packet->flags = 0;
1448 command_packet->byte6.block_count = 1;
1467 command_packet->byte8.param.sgl[0].address = param_value;
1468 command_packet->byte8.param.sgl[0].length = sizeof(TW_Sector);
1527 TW_Command *command_packet;
1545 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id];
1546 if (command_packet == NULL) {
1552 command_packet->opcode__sgloffset = TW_OPSGL_IN(3, TW_OP_READ);
1554 command_packet->opcode__sgloffset = TW_OPSGL_IN(3, TW_OP_WRITE);
1557 command_packet->size = 3;
1558 command_packet->request_id = request_id;
1559 command_packet->unit__hostid = TW_UNITHOST_IN(0, srb->device->id);
1560 command_packet->status = 0;
1561 command_packet->flags = 0;
1565 command_packet->flags = 1;
1582 command_packet->byte8.io.lba = lba;
1583 command_packet->byte6.block_count = num_sectors;
1590 command_packet->byte8.io.sgl[i].address = sg_dma_address(sg);
1591 command_packet->byte8.io.sgl[i].length = sg_dma_len(sg);
1592 command_packet->size+=2;
1639 TW_Command *command_packet;
1645 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id];
1646 if (command_packet == NULL) {
1652 memset(command_packet, 0, sizeof(TW_Sector));
1653 command_packet->opcode__sgloffset = TW_OPSGL_IN(0, TW_OP_FLUSH_CACHE);
1654 command_packet->size = 2;
1655 command_packet->request_id = request_id;
1656 command_packet->unit__hostid = TW_UNITHOST_IN(0, tw_dev->srb[request_id]->device->id);
1657 command_packet->status = 0;
1658 command_packet->flags = 0;
1659 command_packet->byte6.parameter_count = 1;
1676 TW_Command *command_packet;
1683 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id];
1684 if (command_packet == NULL) {
1688 memset(command_packet, 0, sizeof(TW_Sector));
1689 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_GET_PARAM);
1690 command_packet->size = 4;
1691 command_packet->request_id = request_id;
1692 command_packet->status = 0;
1693 command_packet->flags = 0;
1694 command_packet->byte6.parameter_count = 1;
1712 command_packet->byte8.param.sgl[0].address = param_value;
1713 command_packet->byte8.param.sgl[0].length = sizeof(TW_Sector);
1837 TW_Command *command_packet;
1917 command_packet = (TW_Command *)tw_dev->command_packet_virtual_address[request_id];
1921 if (command_packet->status != 0) {