Home
last modified time | relevance | path

Searched refs:job (Results 1 – 25 of 68) sorted by relevance

123

/linux-3.4.99/drivers/md/
Ddm-kcopyd.c278 struct kcopyd_job *job = NULL; in pop() local
284 job = list_entry(jobs->next, struct kcopyd_job, list); in pop()
285 list_del(&job->list); in pop()
289 return job; in pop()
292 static void push(struct list_head *jobs, struct kcopyd_job *job) in push() argument
295 struct dm_kcopyd_client *kc = job->kc; in push()
298 list_add_tail(&job->list, jobs); in push()
303 static void push_head(struct list_head *jobs, struct kcopyd_job *job) in push_head() argument
306 struct dm_kcopyd_client *kc = job->kc; in push_head()
309 list_add(&job->list, jobs); in push_head()
[all …]
/linux-3.4.99/block/
Dbsg-lib.c35 static void bsg_destroy_job(struct bsg_job *job) in bsg_destroy_job() argument
37 put_device(job->dev); /* release reference for the request */ in bsg_destroy_job()
39 kfree(job->request_payload.sg_list); in bsg_destroy_job()
40 kfree(job->reply_payload.sg_list); in bsg_destroy_job()
41 kfree(job); in bsg_destroy_job()
52 void bsg_job_done(struct bsg_job *job, int result, in bsg_job_done() argument
55 struct request *req = job->req; in bsg_job_done()
59 err = job->req->errors = result; in bsg_job_done()
62 job->req->sense_len = sizeof(u32); in bsg_job_done()
64 job->req->sense_len = job->reply_len; in bsg_job_done()
[all …]
/linux-3.4.99/drivers/scsi/lpfc/
Dlpfc_bsg.c167 struct fc_bsg_job *job; in lpfc_bsg_send_mgmt_cmd_cmp() local
184 job = iocb->set_job; in lpfc_bsg_send_mgmt_cmd_cmp()
185 job->dd_data = NULL; /* so timeout handler does not reply */ in lpfc_bsg_send_mgmt_cmd_cmp()
191 pci_unmap_sg(phba->pcidev, job->request_payload.sg_list, in lpfc_bsg_send_mgmt_cmd_cmp()
192 job->request_payload.sg_cnt, DMA_TO_DEVICE); in lpfc_bsg_send_mgmt_cmd_cmp()
193 pci_unmap_sg(phba->pcidev, job->reply_payload.sg_list, in lpfc_bsg_send_mgmt_cmd_cmp()
194 job->reply_payload.sg_cnt, DMA_FROM_DEVICE); in lpfc_bsg_send_mgmt_cmd_cmp()
212 job->reply->reply_payload_rcv_len = in lpfc_bsg_send_mgmt_cmd_cmp()
221 job->reply->result = rc; in lpfc_bsg_send_mgmt_cmd_cmp()
223 job->job_done(job); in lpfc_bsg_send_mgmt_cmd_cmp()
[all …]
/linux-3.4.99/drivers/s390/scsi/
Dzfcp_fc.c821 struct fc_bsg_job *job = data; in zfcp_fc_ct_els_job_handler() local
822 struct zfcp_fsf_ct_els *zfcp_ct_els = job->dd_data; in zfcp_fc_ct_els_job_handler()
823 struct fc_bsg_reply *jr = job->reply; in zfcp_fc_ct_els_job_handler()
825 jr->reply_payload_rcv_len = job->reply_payload.payload_len; in zfcp_fc_ct_els_job_handler()
828 job->job_done(job); in zfcp_fc_ct_els_job_handler()
831 static struct zfcp_fc_wka_port *zfcp_fc_job_wka_port(struct fc_bsg_job *job) in zfcp_fc_job_wka_port() argument
837 preamble_word1 = job->request->rqst_data.r_ct.preamble_word1; in zfcp_fc_job_wka_port()
840 adapter = (struct zfcp_adapter *) job->shost->hostdata[0]; in zfcp_fc_job_wka_port()
860 struct fc_bsg_job *job = data; in zfcp_fc_ct_job_handler() local
863 wka_port = zfcp_fc_job_wka_port(job); in zfcp_fc_ct_job_handler()
[all …]
/linux-3.4.99/drivers/scsi/libfc/
Dfc_lport.c152 struct fc_bsg_job *job; member
1897 struct fc_bsg_job *job = info->job; in fc_lport_bsg_resp() local
1904 job->reply->result = (PTR_ERR(fp) == -FC_EX_CLOSED) ? in fc_lport_bsg_resp()
1906 job->reply_len = sizeof(uint32_t); in fc_lport_bsg_resp()
1907 job->state_flags |= FC_RQST_STATE_DONE; in fc_lport_bsg_resp()
1908 job->job_done(job); in fc_lport_bsg_resp()
1925 job->reply->reply_data.ctels_reply.status = in fc_lport_bsg_resp()
1930 job->reply->reply_payload_rcv_len += in fc_lport_bsg_resp()
1937 if (job->reply->reply_payload_rcv_len > in fc_lport_bsg_resp()
1938 job->reply_payload.payload_len) in fc_lport_bsg_resp()
[all …]
/linux-3.4.99/arch/powerpc/boot/dts/fsl/
Dpq3-sec4.4-0.dtsi43 compatible = "fsl,sec-v4.4-job-ring", "fsl,sec-v4.0-job-ring";
49 compatible = "fsl,sec-v4.4-job-ring", "fsl,sec-v4.0-job-ring";
55 compatible = "fsl,sec-v4.4-job-ring", "fsl,sec-v4.0-job-ring";
61 compatible = "fsl,sec-v4.4-job-ring", "fsl,sec-v4.0-job-ring";
Dqoriq-sec4.1-0.dtsi44 compatible = "fsl,sec-v4.1-job-ring",
45 "fsl,sec-v4.0-job-ring";
51 compatible = "fsl,sec-v4.1-job-ring",
52 "fsl,sec-v4.0-job-ring";
58 compatible = "fsl,sec-v4.1-job-ring",
59 "fsl,sec-v4.0-job-ring";
65 compatible = "fsl,sec-v4.1-job-ring",
66 "fsl,sec-v4.0-job-ring";
Dqoriq-sec4.2-0.dtsi44 compatible = "fsl,sec-v4.2-job-ring",
45 "fsl,sec-v4.0-job-ring";
51 compatible = "fsl,sec-v4.2-job-ring",
52 "fsl,sec-v4.0-job-ring";
58 compatible = "fsl,sec-v4.2-job-ring",
59 "fsl,sec-v4.0-job-ring";
65 compatible = "fsl,sec-v4.2-job-ring",
66 "fsl,sec-v4.0-job-ring";
Dp1023si-post.dtsi158 compatible = "fsl,sec-v4.2-job-ring",
159 "fsl,sec-v4.0-job-ring";
165 compatible = "fsl,sec-v4.2-job-ring",
166 "fsl,sec-v4.0-job-ring";
172 compatible = "fsl,sec-v4.2-job-ring",
173 "fsl,sec-v4.0-job-ring";
179 compatible = "fsl,sec-v4.2-job-ring",
180 "fsl,sec-v4.0-job-ring";
Dqoriq-sec4.0-0.dtsi44 compatible = "fsl,sec-v4.0-job-ring";
50 compatible = "fsl,sec-v4.0-job-ring";
56 compatible = "fsl,sec-v4.0-job-ring";
62 compatible = "fsl,sec-v4.0-job-ring";
/linux-3.4.99/drivers/scsi/
Dscsi_transport_fc.c3552 fc_destroy_bsgjob(struct fc_bsg_job *job) in fc_destroy_bsgjob() argument
3556 spin_lock_irqsave(&job->job_lock, flags); in fc_destroy_bsgjob()
3557 if (job->ref_cnt) { in fc_destroy_bsgjob()
3558 spin_unlock_irqrestore(&job->job_lock, flags); in fc_destroy_bsgjob()
3561 spin_unlock_irqrestore(&job->job_lock, flags); in fc_destroy_bsgjob()
3563 put_device(job->dev); /* release reference for the request */ in fc_destroy_bsgjob()
3565 kfree(job->request_payload.sg_list); in fc_destroy_bsgjob()
3566 kfree(job->reply_payload.sg_list); in fc_destroy_bsgjob()
3567 kfree(job); in fc_destroy_bsgjob()
3576 fc_bsg_jobdone(struct fc_bsg_job *job) in fc_bsg_jobdone() argument
[all …]
Dscsi_transport_iscsi.c469 static int iscsi_bsg_host_dispatch(struct bsg_job *job) in iscsi_bsg_host_dispatch() argument
471 struct Scsi_Host *shost = iscsi_job_to_shost(job); in iscsi_bsg_host_dispatch()
472 struct iscsi_bsg_request *req = job->request; in iscsi_bsg_host_dispatch()
473 struct iscsi_bsg_reply *reply = job->reply; in iscsi_bsg_host_dispatch()
479 if (job->request_len < sizeof(uint32_t)) { in iscsi_bsg_host_dispatch()
501 if (job->request_len < cmdlen) { in iscsi_bsg_host_dispatch()
506 ret = i->iscsi_transport->bsg_request(job); in iscsi_bsg_host_dispatch()
512 BUG_ON(job->reply_len < sizeof(uint32_t)); in iscsi_bsg_host_dispatch()
515 job->reply_len = sizeof(uint32_t); in iscsi_bsg_host_dispatch()
516 bsg_job_done(job, ret, 0); in iscsi_bsg_host_dispatch()
/linux-3.4.99/drivers/scsi/bfa/
Dbfad_bsg.c2759 bfad_im_bsg_vendor_request(struct fc_bsg_job *job) in bfad_im_bsg_vendor_request() argument
2761 uint32_t vendor_cmd = job->request->rqst_data.h_vendor.vendor_cmd[0]; in bfad_im_bsg_vendor_request()
2763 (struct bfad_im_port_s *) job->shost->hostdata[0]; in bfad_im_bsg_vendor_request()
2765 struct request_queue *request_q = job->req->q; in bfad_im_bsg_vendor_request()
2776 payload_kbuf = kzalloc(job->request_payload.payload_len, GFP_KERNEL); in bfad_im_bsg_vendor_request()
2783 sg_copy_to_buffer(job->request_payload.sg_list, in bfad_im_bsg_vendor_request()
2784 job->request_payload.sg_cnt, payload_kbuf, in bfad_im_bsg_vendor_request()
2785 job->request_payload.payload_len); in bfad_im_bsg_vendor_request()
2789 job->request_payload.payload_len); in bfad_im_bsg_vendor_request()
2794 sg_copy_from_buffer(job->reply_payload.sg_list, in bfad_im_bsg_vendor_request()
[all …]
Dbfad_im.h167 int bfad_im_bsg_request(struct fc_bsg_job *job);
168 int bfad_im_bsg_timeout(struct fc_bsg_job *job);
/linux-3.4.99/drivers/crypto/caam/
DKconfig7 This module adds a job ring operation interface, and configures h/w
48 equal or greater than the job ring size will force timeouts.
69 stack) to the SEC4 via job ring.
/linux-3.4.99/drivers/scsi/ibmvscsi/
Dibmvfc.c1712 static int ibmvfc_bsg_timeout(struct fc_bsg_job *job) in ibmvfc_bsg_timeout() argument
1714 struct ibmvfc_host *vhost = shost_priv(job->shost); in ibmvfc_bsg_timeout()
1715 unsigned long port_id = (unsigned long)job->dd_data; in ibmvfc_bsg_timeout()
1825 static int ibmvfc_bsg_request(struct fc_bsg_job *job) in ibmvfc_bsg_request() argument
1827 struct ibmvfc_host *vhost = shost_priv(job->shost); in ibmvfc_bsg_request()
1828 struct fc_rport *rport = job->rport; in ibmvfc_bsg_request()
1833 unsigned int code = job->request->msgcode; in ibmvfc_bsg_request()
1838 job->reply->reply_payload_rcv_len = 0; in ibmvfc_bsg_request()
1844 port_id = (job->request->rqst_data.h_els.port_id[0] << 16) | in ibmvfc_bsg_request()
1845 (job->request->rqst_data.h_els.port_id[1] << 8) | in ibmvfc_bsg_request()
[all …]
/linux-3.4.99/include/linux/
Ddm-kcopyd.h58 void dm_kcopyd_do_callback(void *job, int read_err, unsigned long write_err);
Dbsg-lib.h65 void bsg_job_done(struct bsg_job *job, int result,
/linux-3.4.99/Documentation/devicetree/bindings/crypto/
Dfsl-sec4.txt130 Definition: Must include "fsl,sec-v4.0-job-ring"
166 compatible = "fsl,sec-v4.0-job-ring";
334 compatible = "fsl,sec-v4.0-job-ring";
341 compatible = "fsl,sec-v4.0-job-ring";
348 compatible = "fsl,sec-v4.0-job-ring";
355 compatible = "fsl,sec-v4.0-job-ring";
/linux-3.4.99/Documentation/cgroups/
Dfreezer-subsystem.txt1 The cgroup freezer is useful to batch job management system which start
6 be started/stopped by the batch job management system. It also provides
7 a means to start and stop the tasks composing the job.
/linux-3.4.99/arch/parisc/math-emu/
DREADME6 make their 'diff' job easier if our code is relatively unmodified.
/linux-3.4.99/Documentation/device-mapper/
Dkcopyd.txt15 To start a copy job, the user must set up io_region structures to describe
/linux-3.4.99/net/netfilter/ipvs/
DKconfig213 expected delay that the job will experience is (Ci + 1) / Ui if
225 When there is an idle server available, the job will be sent to
227 is no idle server available, the job will be sent to the server
/linux-3.4.99/Documentation/
Dpadata.txt138 outstanding, it should be prepared to be called again with a new job before
140 whatever function actually finishes the job) should inform padata of the
DManagementStyle46 Namely that you are in the wrong job, and that _they_ should be managing
186 Suck up to them, because they are the people who will make your job
236 do a good job.
276 It's a great job if you can hack it.

123