Lines Matching refs:cmd_entry

148 				     struct command_t3_entry *cmd_entry,  in qla4xxx_build_scsi_iocbs()  argument
163 cmd_entry->ttlByteCnt = cpu_to_le32(0); in qla4xxx_build_scsi_iocbs()
168 cur_dsd = (struct data_seg_a64 *) & (cmd_entry->dataseg[0]); in qla4xxx_build_scsi_iocbs()
276 struct command_t3_entry *cmd_entry; in qla4xxx_send_command_to_isp() local
321 cmd_entry = (struct command_t3_entry *) ha->request_ptr; in qla4xxx_send_command_to_isp()
322 memset(cmd_entry, 0, sizeof(struct command_t3_entry)); in qla4xxx_send_command_to_isp()
323 cmd_entry->hdr.entryType = ET_COMMAND; in qla4xxx_send_command_to_isp()
324 cmd_entry->handle = cpu_to_le32(index); in qla4xxx_send_command_to_isp()
325 cmd_entry->target = cpu_to_le16(ddb_entry->fw_ddb_index); in qla4xxx_send_command_to_isp()
327 int_to_scsilun(cmd->device->lun, &cmd_entry->lun); in qla4xxx_send_command_to_isp()
328 cmd_entry->ttlByteCnt = cpu_to_le32(scsi_bufflen(cmd)); in qla4xxx_send_command_to_isp()
329 memcpy(cmd_entry->cdb, cmd->cmnd, cmd->cmd_len); in qla4xxx_send_command_to_isp()
330 cmd_entry->dataSegCnt = cpu_to_le16(tot_dsds); in qla4xxx_send_command_to_isp()
331 cmd_entry->hdr.entryCount = req_cnt; in qla4xxx_send_command_to_isp()
337 cmd_entry->control_flags = CF_NO_DATA; in qla4xxx_send_command_to_isp()
340 cmd_entry->control_flags = CF_WRITE; in qla4xxx_send_command_to_isp()
342 cmd_entry->control_flags = CF_READ; in qla4xxx_send_command_to_isp()
352 cmd_entry->control_flags |= CF_SIMPLE_TAG; in qla4xxx_send_command_to_isp()
355 qla4xxx_build_scsi_iocbs(srb, cmd_entry, tot_dsds); in qla4xxx_send_command_to_isp()