Lines Matching refs:pthru

1196 	struct megasas_pthru_frame *pthru;  in megasas_build_dcdb()  local
1200 pthru = (struct megasas_pthru_frame *)cmd->frame; in megasas_build_dcdb()
1216 pthru->cmd = (is_logical) ? MFI_CMD_LD_SCSI_IO : MFI_CMD_PD_SCSI_IO; in megasas_build_dcdb()
1217 pthru->cmd_status = 0x0; in megasas_build_dcdb()
1218 pthru->scsi_status = 0x0; in megasas_build_dcdb()
1219 pthru->target_id = device_id; in megasas_build_dcdb()
1220 pthru->lun = scp->device->lun; in megasas_build_dcdb()
1221 pthru->cdb_len = scp->cmd_len; in megasas_build_dcdb()
1222 pthru->timeout = 0; in megasas_build_dcdb()
1223 pthru->pad_0 = 0; in megasas_build_dcdb()
1224 pthru->flags = cpu_to_le16(flags); in megasas_build_dcdb()
1225 pthru->data_xfer_len = cpu_to_le32(scsi_bufflen(scp)); in megasas_build_dcdb()
1227 memcpy(pthru->cdb, scp->cmnd, scp->cmd_len); in megasas_build_dcdb()
1235 pthru->timeout = 0xFFFF; in megasas_build_dcdb()
1237 pthru->timeout = cpu_to_le16(scp->request->timeout / HZ); in megasas_build_dcdb()
1244 pthru->flags |= cpu_to_le16(MFI_FRAME_SGL64); in megasas_build_dcdb()
1245 pthru->sge_count = megasas_make_sgl_skinny(instance, scp, in megasas_build_dcdb()
1246 &pthru->sgl); in megasas_build_dcdb()
1248 pthru->flags |= cpu_to_le16(MFI_FRAME_SGL64); in megasas_build_dcdb()
1249 pthru->sge_count = megasas_make_sgl64(instance, scp, in megasas_build_dcdb()
1250 &pthru->sgl); in megasas_build_dcdb()
1252 pthru->sge_count = megasas_make_sgl32(instance, scp, in megasas_build_dcdb()
1253 &pthru->sgl); in megasas_build_dcdb()
1255 if (pthru->sge_count > instance->max_num_sge) { in megasas_build_dcdb()
1257 pthru->sge_count); in megasas_build_dcdb()
1264 pthru->sense_len = SCSI_SENSE_BUFFERSIZE; in megasas_build_dcdb()
1265 pthru->sense_buf_phys_addr_hi = in megasas_build_dcdb()
1267 pthru->sense_buf_phys_addr_lo = in megasas_build_dcdb()
1274 cmd->frame_count = megasas_get_frame_count(instance, pthru->sge_count, in megasas_build_dcdb()
1460 struct megasas_pthru_frame *pthru; in megasas_dump_pending_frames() local
1488 pthru = (struct megasas_pthru_frame *) cmd->frame; in megasas_dump_pending_frames()
1489 mfi_sgl = &pthru->sgl; in megasas_dump_pending_frames()
1490 sgcount = pthru->sge_count; in megasas_dump_pending_frames()
1493 instance->host->host_no, cmd->frame_count, pthru->cmd, pthru->target_id, in megasas_dump_pending_frames()
1494 pthru->lun, pthru->cdb_len, le32_to_cpu(pthru->data_xfer_len), in megasas_dump_pending_frames()
1495 le32_to_cpu(pthru->sense_buf_phys_addr_lo), sgcount); in megasas_dump_pending_frames()