Lines Matching refs:cmd

75 	struct tw_cl_command_9k			*cmd;
113 /* Build the cmd pkt. */
114 cmd = &(req->cmd_pkt->command.cmd_pkt_9k);
118 cmd->res__opcode = BUILD_RES__OPCODE(0, TWA_FW_CMD_EXECUTE_SCSI);
119 cmd->unit = (TW_UINT8)(scsi_req->unit);
120 cmd->lun_l4__req_id = TW_CL_SWAP16(
122 cmd->status = 0;
123 cmd->sgl_offset = 16; /* offset from end of hdr = max cdb len */
124 tw_osl_memcpy(cmd->cdb, scsi_req->cdb, scsi_req->cdb_len);
129 req_pkt->tw_osl_sgl_callback(req_handle, cmd->sg_list,
131 cmd->lun_h4__sgl_entries =
135 cmd->lun_h4__sgl_entries =
139 cmd->sg_list, scsi_req->sgl_entries);
160 * Description: Submits a cmd to firmware.
177 /* Serialize access to the controller cmd queue. */
297 /* Build the cmd pkt. */
304 "passthru: 9k cmd pkt");
319 "passthru: 7k cmd pkt");
361 * cmd -- ioctl cmd
371 tw_cl_ioctl(struct tw_cl_ctlr_handle *ctlr_handle, u_long cmd, TW_VOID *buf)
387 switch (cmd) {
692 "Unknown ioctl cmd 0x%x", cmd);
722 union tw_cl_command_7k *cmd;
748 /* Build the cmd pkt. */
749 cmd = &(req->cmd_pkt->command.cmd_pkt_7k);
753 cmd->param.sgl_off__opcode =
755 cmd->param.request_id = (TW_UINT8)(TW_CL_SWAP16(req->request_id));
756 cmd->param.host_id__unit = BUILD_HOST_ID__UNIT(0, 0);
757 cmd->param.param_count = TW_CL_SWAP16(1);
760 ((struct tw_cl_sg_desc64 *)(cmd->param.sgl))[0].address =
762 ((struct tw_cl_sg_desc64 *)(cmd->param.sgl))[0].length =
764 cmd->param.size = 2 + 3;
766 ((struct tw_cl_sg_desc32 *)(cmd->param.sgl))[0].address =
768 ((struct tw_cl_sg_desc32 *)(cmd->param.sgl))[0].length =
770 cmd->param.size = 2 + 2;
785 if ((error = cmd->param.status)) {
839 union tw_cl_command_7k *cmd;
865 /* Build the cmd pkt. */
866 cmd = &(req->cmd_pkt->command.cmd_pkt_7k);
870 cmd->param.sgl_off__opcode =
872 cmd->param.request_id = (TW_UINT8)(TW_CL_SWAP16(req->request_id));
873 cmd->param.host_id__unit = BUILD_HOST_ID__UNIT(0, 0);
874 cmd->param.param_count = TW_CL_SWAP16(1);
877 ((struct tw_cl_sg_desc64 *)(cmd->param.sgl))[0].address =
879 ((struct tw_cl_sg_desc64 *)(cmd->param.sgl))[0].length =
881 cmd->param.size = 2 + 3;
883 ((struct tw_cl_sg_desc32 *)(cmd->param.sgl))[0].address =
885 ((struct tw_cl_sg_desc32 *)(cmd->param.sgl))[0].length =
887 cmd->param.size = 2 + 2;
903 if ((error = cmd->param.status)) {
938 * Description: Sends down a firmware cmd, and waits for the completion
958 * If the cmd queue is full, tw_cli_submit_cmd will queue this
1282 * Description: Sends down a scsi cmd to fw.
1285 * cmd -- opcode of scsi cmd to send
1291 tw_cli_send_scsi_cmd(struct tw_cli_req_context *req, TW_INT32 cmd)
1310 /* Build the cmd pkt. */
1337 cmd9k->cdb[0] = (TW_UINT8)cmd;
1355 * Description: Sends down a Request Sense cmd to fw to fetch an AEN.