/drivers/md/ |
H A D | dm-kcopyd.c | 212 * Error state of the job. 232 * Set this to ensure you are notified when the job has 239 * These fields are only used if the job has been split 272 * Functions to push and pop a job onto the head of a given job 278 struct kcopyd_job *job = NULL; local 284 job = list_entry(jobs->next, struct kcopyd_job, list); 285 list_del(&job->list); 289 return job; 292 static void push(struct list_head *jobs, struct kcopyd_job *job) argument 303 push_head(struct list_head *jobs, struct kcopyd_job *job) argument 322 run_complete_job(struct kcopyd_job *job) argument 348 struct kcopyd_job *job = (struct kcopyd_job *) context; local 379 run_io_job(struct kcopyd_job *job) argument 400 run_pages_job(struct kcopyd_job *job) argument 426 struct kcopyd_job *job; local 486 dispatch_job(struct kcopyd_job *job) argument 506 struct kcopyd_job *job = sub_job->master_job; local 587 struct kcopyd_job *job; local 644 struct kcopyd_job *job; local 662 struct kcopyd_job *job = j; local [all...] |
/drivers/s390/scsi/ |
H A D | zfcp_fc.c | 821 struct fc_bsg_job *job = data; local 822 struct zfcp_fsf_ct_els *zfcp_ct_els = job->dd_data; 823 struct fc_bsg_reply *jr = job->reply; 825 jr->reply_payload_rcv_len = job->reply_payload.payload_len; 828 job->job_done(job); 831 static struct zfcp_fc_wka_port *zfcp_fc_job_wka_port(struct fc_bsg_job *job) argument 837 preamble_word1 = job->request->rqst_data.r_ct.preamble_word1; 840 adapter = (struct zfcp_adapter *) job->shost->hostdata[0]; 860 struct fc_bsg_job *job local 869 zfcp_fc_exec_els_job(struct fc_bsg_job *job, struct zfcp_adapter *adapter) argument 891 zfcp_fc_exec_ct_job(struct fc_bsg_job *job, struct zfcp_adapter *adapter) argument 914 zfcp_fc_exec_bsg_job(struct fc_bsg_job *job) argument 942 zfcp_fc_timeout_bsg_job(struct fc_bsg_job *job) argument [all...] |
/drivers/scsi/libfc/ |
H A D | fc_lport.c | 144 * @job: The passthrough job 147 * @sg: job->reply_payload.sg_list 148 * @nents: job->reply_payload.sg_cnt 152 struct fc_bsg_job *job; member in struct:fc_bsg_info 1897 struct fc_bsg_job *job = info->job; local 1904 job->reply->result = (PTR_ERR(fp) == -FC_EX_CLOSED) ? 1906 job->reply_len = sizeof(uint32_t); 1907 job 1959 fc_lport_els_request(struct fc_bsg_job *job, struct fc_lport *lport, u32 did, u32 tov) argument 2020 fc_lport_ct_request(struct fc_bsg_job *job, struct fc_lport *lport, u32 did, u32 tov) argument 2076 fc_lport_bsg_request(struct fc_bsg_job *job) argument [all...] |
/drivers/scsi/bfa/ |
H A D | bfad_bsg.c | 2759 bfad_im_bsg_vendor_request(struct fc_bsg_job *job) argument 2761 uint32_t vendor_cmd = job->request->rqst_data.h_vendor.vendor_cmd[0]; 2763 (struct bfad_im_port_s *) job->shost->hostdata[0]; 2765 struct request_queue *request_q = job->req->q; 2776 payload_kbuf = kzalloc(job->request_payload.payload_len, GFP_KERNEL); 2783 sg_copy_to_buffer(job->request_payload.sg_list, 2784 job->request_payload.sg_cnt, payload_kbuf, 2785 job->request_payload.payload_len); 2789 job->request_payload.payload_len); 2793 /* Copy the response data to the job 2941 bfad_fcxp_bsg_send(struct fc_bsg_job *job, struct bfad_fcxp *drv_fcxp, bfa_bsg_fcpt_t *bsg_fcpt) argument 2981 bfad_im_bsg_els_ct_request(struct fc_bsg_job *job) argument 3183 bfad_im_bsg_request(struct fc_bsg_job *job) argument 3209 bfad_im_bsg_timeout(struct fc_bsg_job *job) argument [all...] |
/drivers/scsi/lpfc/ |
H A D | lpfc_bsg.c | 67 /* job waiting for this event to finish */ 77 /* job waiting for this iocb to finish */ 90 /* job waiting for this mbox command to finish */ 101 /* job waiting for this iocb to finish */ 167 struct fc_bsg_job *job; local 184 job = iocb->set_job; 185 job->dd_data = NULL; /* so timeout handler does not reply */ 191 pci_unmap_sg(phba->pcidev, job->request_payload.sg_list, 192 job->request_payload.sg_cnt, DMA_TO_DEVICE); 193 pci_unmap_sg(phba->pcidev, job 233 lpfc_bsg_send_mgmt_cmd(struct fc_bsg_job *job) argument 418 struct fc_bsg_job *job; local 490 lpfc_bsg_rport_els(struct fc_bsg_job *job) argument 791 struct fc_bsg_job *job = NULL; local 1019 lpfc_bsg_hba_set_event(struct fc_bsg_job *job) argument 1102 lpfc_bsg_hba_get_event(struct fc_bsg_job *job) argument 1211 struct fc_bsg_job *job; local 1276 lpfc_issue_ct_rsp(struct lpfc_hba *phba, struct fc_bsg_job *job, uint32_t tag, struct lpfc_dmabuf *bmp, int num_entry) argument 1408 lpfc_bsg_send_mgmt_rsp(struct fc_bsg_job *job) argument 1570 lpfc_sli3_bsg_diag_loopback_mode(struct lpfc_hba *phba, struct fc_bsg_job *job) argument 1823 lpfc_sli4_bsg_diag_loopback_mode(struct lpfc_hba *phba, struct fc_bsg_job *job) argument 1974 lpfc_bsg_diag_loopback_mode(struct fc_bsg_job *job) argument 2010 lpfc_sli4_bsg_diag_mode_end(struct fc_bsg_job *job) argument 2087 lpfc_sli4_bsg_link_diag_test(struct fc_bsg_job *job) argument 2790 lpfc_bsg_diag_loopback_run(struct fc_bsg_job *job) argument 3091 lpfc_bsg_get_dfc_rev(struct fc_bsg_job *job) argument 3147 struct fc_bsg_job *job; local 3327 struct fc_bsg_job *job; local 3418 struct fc_bsg_job *job; local 3455 struct fc_bsg_job *job; local 3583 lpfc_bsg_sli_cfg_read_cmd_ext(struct lpfc_hba *phba, struct fc_bsg_job *job, enum nemb_type nemb_tp, struct lpfc_dmabuf *dmabuf) argument 3770 lpfc_bsg_sli_cfg_write_cmd_ext(struct lpfc_hba *phba, struct fc_bsg_job *job, enum nemb_type nemb_tp, struct lpfc_dmabuf *dmabuf) argument 3933 lpfc_bsg_handle_sli_cfg_mbox(struct lpfc_hba *phba, struct fc_bsg_job *job, struct lpfc_dmabuf *dmabuf) argument 4077 lpfc_bsg_read_ebuf_get(struct lpfc_hba *phba, struct fc_bsg_job *job) argument 4145 lpfc_bsg_write_ebuf_set(struct lpfc_hba *phba, struct fc_bsg_job *job, struct lpfc_dmabuf *dmabuf) argument 4270 lpfc_bsg_handle_sli_cfg_ebuf(struct lpfc_hba *phba, struct fc_bsg_job *job, struct lpfc_dmabuf *dmabuf) argument 4315 lpfc_bsg_handle_sli_cfg_ext(struct lpfc_hba *phba, struct fc_bsg_job *job, struct lpfc_dmabuf *dmabuf) argument 4392 lpfc_bsg_issue_mbox(struct lpfc_hba *phba, struct fc_bsg_job *job, struct lpfc_vport *vport) argument 4687 lpfc_bsg_mbox_cmd(struct fc_bsg_job *job) argument 4753 struct fc_bsg_job *job; local 4837 lpfc_menlo_cmd(struct fc_bsg_job *job) argument 5027 lpfc_bsg_hst_vendor(struct fc_bsg_job *job) argument 5080 lpfc_bsg_request(struct fc_bsg_job *job) argument 5115 lpfc_bsg_timeout(struct fc_bsg_job *job) argument [all...] |
/drivers/scsi/ |
H A D | scsi_transport_iscsi.c | 467 * @job: bsg job to be processed 469 static int iscsi_bsg_host_dispatch(struct bsg_job *job) argument 471 struct Scsi_Host *shost = iscsi_job_to_shost(job); 472 struct iscsi_bsg_request *req = job->request; 473 struct iscsi_bsg_reply *reply = job->reply; 479 if (job->request_len < sizeof(uint32_t)) { 501 if (job->request_len < cmdlen) { 506 ret = i->iscsi_transport->bsg_request(job); 512 BUG_ON(job [all...] |
H A D | scsi_transport_fc.c | 3548 * fc_destroy_bsgjob - routine to teardown/delete a fc bsg job 3549 * @job: fc_bsg_job that is to be torn down 3552 fc_destroy_bsgjob(struct fc_bsg_job *job) argument 3556 spin_lock_irqsave(&job->job_lock, flags); 3557 if (job->ref_cnt) { 3558 spin_unlock_irqrestore(&job->job_lock, flags); 3561 spin_unlock_irqrestore(&job->job_lock, flags); 3563 put_device(job->dev); /* release reference for the request */ 3565 kfree(job->request_payload.sg_list); 3566 kfree(job 3576 fc_bsg_jobdone(struct fc_bsg_job *job) argument 3609 struct fc_bsg_job *job = rq->special; local 3628 struct fc_bsg_job *job = (void *) req->special; local 3692 struct fc_bsg_job *job; local 3767 fc_bsg_host_dispatch(struct request_queue *q, struct Scsi_Host *shost, struct fc_bsg_job *job) argument 3866 fc_bsg_rport_dispatch(struct request_queue *q, struct Scsi_Host *shost, struct fc_rport *rport, struct fc_bsg_job *job) argument 3927 struct fc_bsg_job *job; local [all...] |
/drivers/scsi/ibmvscsi/ |
H A D | ibmvfc.c | 1707 * @job: struct fc_bsg_job that timed out 1712 static int ibmvfc_bsg_timeout(struct fc_bsg_job *job) argument 1714 struct ibmvfc_host *vhost = shost_priv(job->shost); 1715 unsigned long port_id = (unsigned long)job->dd_data; 1820 * @job: struct fc_bsg_job to be executed 1825 static int ibmvfc_bsg_request(struct fc_bsg_job *job) argument 1827 struct ibmvfc_host *vhost = shost_priv(job->shost); 1828 struct fc_rport *rport = job->rport; 1833 unsigned int code = job->request->msgcode; 1838 job [all...] |