Home
last modified time | relevance | path

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

12

/drivers/gpu/host1x/
Djob.c38 struct host1x_job *job = NULL; in host1x_job_alloc() local
54 mem = job = kzalloc(total, GFP_KERNEL); in host1x_job_alloc()
55 if (!job) in host1x_job_alloc()
58 kref_init(&job->ref); in host1x_job_alloc()
59 job->channel = ch; in host1x_job_alloc()
63 job->relocarray = num_relocs ? mem : NULL; in host1x_job_alloc()
65 job->unpins = num_unpins ? mem : NULL; in host1x_job_alloc()
67 job->waitchk = num_waitchks ? mem : NULL; in host1x_job_alloc()
69 job->gathers = num_cmdbufs ? mem : NULL; in host1x_job_alloc()
71 job->addr_phys = num_unpins ? mem : NULL; in host1x_job_alloc()
[all …]
Dcdma.c176 struct host1x_job *job) in cdma_start_timer_locked() argument
185 cdma->timeout.client = job->client; in cdma_start_timer_locked()
186 cdma->timeout.syncpt = host1x_syncpt_get(host, job->syncpt_id); in cdma_start_timer_locked()
187 cdma->timeout.syncpt_val = job->syncpt_end; in cdma_start_timer_locked()
191 msecs_to_jiffies(job->timeout)); in cdma_start_timer_locked()
218 struct host1x_job *job, *n; in update_cdma_locked() local
228 list_for_each_entry_safe(job, n, &cdma->sync_queue, list) { in update_cdma_locked()
230 host1x_syncpt_get(host1x, job->syncpt_id); in update_cdma_locked()
233 if (!host1x_syncpt_is_expired(sp, job->syncpt_end)) { in update_cdma_locked()
235 if (job->timeout) in update_cdma_locked()
[all …]
Dchannel.c40 int host1x_job_submit(struct host1x_job *job) in host1x_job_submit() argument
42 struct host1x *host = dev_get_drvdata(job->channel->dev->parent); in host1x_job_submit()
44 return host1x_hw_channel_submit(host, job); in host1x_job_submit()
Dcdma.h90 int host1x_cdma_begin(struct host1x_cdma *cdma, struct host1x_job *job);
92 void host1x_cdma_end(struct host1x_cdma *cdma, struct host1x_job *job);
Ddev.h41 int (*submit)(struct host1x_job *job);
220 struct host1x_job *job) in host1x_hw_channel_submit() argument
222 return host->channel_op->submit(job); in host1x_hw_channel_submit()
DMakefile8 job.o \
Djob.h52 void host1x_job_dump(struct device *dev, struct host1x_job *job);
/drivers/md/
Ddm-kcopyd.c394 struct kcopyd_job *job = NULL; in pop() local
400 job = list_entry(jobs->next, struct kcopyd_job, list); in pop()
401 list_del(&job->list); in pop()
405 return job; in pop()
408 static void push(struct list_head *jobs, struct kcopyd_job *job) in push() argument
411 struct dm_kcopyd_client *kc = job->kc; in push()
414 list_add_tail(&job->list, jobs); in push()
419 static void push_head(struct list_head *jobs, struct kcopyd_job *job) in push_head() argument
422 struct dm_kcopyd_client *kc = job->kc; in push_head()
425 list_add(&job->list, jobs); in push_head()
[all …]
/drivers/gpu/drm/amd/amdgpu/
Damdgpu_sched.c33 struct amdgpu_job *job = to_amdgpu_job(sched_job); in amdgpu_sched_dependency() local
34 return amdgpu_sync_get_fence(&job->ibs->sync); in amdgpu_sched_dependency()
40 struct amdgpu_job *job; in amdgpu_sched_run_job() local
47 job = to_amdgpu_job(sched_job); in amdgpu_sched_run_job()
48 trace_amdgpu_sched_run_job(job); in amdgpu_sched_run_job()
49 r = amdgpu_ib_schedule(job->adev, job->num_ibs, job->ibs, job->owner); in amdgpu_sched_run_job()
55 fence = job->ibs[job->num_ibs - 1].fence; in amdgpu_sched_run_job()
59 if (job->free_job) in amdgpu_sched_run_job()
60 job->free_job(job); in amdgpu_sched_run_job()
62 kfree(job); in amdgpu_sched_run_job()
[all …]
Damdgpu_trace.h52 TP_PROTO(struct amdgpu_job *job),
53 TP_ARGS(job),
64 __entry->adev = job->adev;
65 __entry->sched_job = &job->base;
66 __entry->ib = job->ibs;
67 __entry->fence = &job->base.s_fence->base;
68 __entry->ring_name = job->ibs[0].ring->name;
69 __entry->num_ibs = job->num_ibs;
77 TP_PROTO(struct amdgpu_job *job),
78 TP_ARGS(job),
[all …]
Damdgpu_cs.c801 static int amdgpu_cs_free_job(struct amdgpu_job *job) in amdgpu_cs_free_job() argument
804 if (job->ibs) in amdgpu_cs_free_job()
805 for (i = 0; i < job->num_ibs; i++) in amdgpu_cs_free_job()
806 amdgpu_ib_free(job->adev, &job->ibs[i]); in amdgpu_cs_free_job()
807 kfree(job->ibs); in amdgpu_cs_free_job()
808 if (job->uf.bo) in amdgpu_cs_free_job()
809 amdgpu_bo_unref(&job->uf.bo); in amdgpu_cs_free_job()
863 struct amdgpu_job *job; in amdgpu_cs_ioctl() local
865 job = kzalloc(sizeof(struct amdgpu_job), GFP_KERNEL); in amdgpu_cs_ioctl()
866 if (!job) { in amdgpu_cs_ioctl()
[all …]
Damdgpu_vce.c360 struct amdgpu_job *job) in amdgpu_vce_free_job() argument
362 amdgpu_ib_free(job->adev, job->ibs); in amdgpu_vce_free_job()
363 kfree(job->ibs); in amdgpu_vce_free_job()
Damdgpu_uvd.c832 struct amdgpu_job *job) in amdgpu_uvd_free_job() argument
834 amdgpu_ib_free(job->adev, job->ibs); in amdgpu_uvd_free_job()
835 kfree(job->ibs); in amdgpu_uvd_free_job()
Damdgpu_vm.c321 int amdgpu_vm_free_job(struct amdgpu_job *job) in amdgpu_vm_free_job() argument
324 for (i = 0; i < job->num_ibs; i++) in amdgpu_vm_free_job()
325 amdgpu_ib_free(job->adev, &job->ibs[i]); in amdgpu_vm_free_job()
326 kfree(job->ibs); in amdgpu_vm_free_job()
/drivers/gpu/host1x/hw/
Dchannel_hw.c60 static void submit_gathers(struct host1x_job *job) in submit_gathers() argument
62 struct host1x_cdma *cdma = &job->channel->cdma; in submit_gathers()
65 for (i = 0; i < job->num_gathers; i++) { in submit_gathers()
66 struct host1x_job_gather *g = &job->gathers[i]; in submit_gathers()
74 static inline void synchronize_syncpt_base(struct host1x_job *job) in synchronize_syncpt_base() argument
76 struct host1x *host = dev_get_drvdata(job->channel->dev->parent); in synchronize_syncpt_base()
77 struct host1x_syncpt *sp = host->syncpt + job->syncpt_id; in synchronize_syncpt_base()
83 host1x_cdma_push(&job->channel->cdma, in synchronize_syncpt_base()
90 static int channel_submit(struct host1x_job *job) in channel_submit() argument
92 struct host1x_channel *ch = job->channel; in channel_submit()
[all …]
Ddebug_hw.c143 struct host1x_job *job; in show_channel_gathers() local
145 list_for_each_entry(job, &cdma->sync_queue, list) { in show_channel_gathers()
148 job, job->syncpt_id, job->syncpt_end, in show_channel_gathers()
149 job->first_get, job->timeout, in show_channel_gathers()
150 job->num_slots, job->num_unpins); in show_channel_gathers()
152 for (i = 0; i < job->num_gathers; i++) { in show_channel_gathers()
153 struct host1x_job_gather *g = &job->gathers[i]; in show_channel_gathers()
156 if (job->gather_copy_mapped) in show_channel_gathers()
157 mapped = (u32 *)job->gather_copy_mapped; in show_channel_gathers()
172 if (!job->gather_copy_mapped) in show_channel_gathers()
/drivers/scsi/lpfc/
Dlpfc_bsg.c300 struct fc_bsg_job *job; in lpfc_bsg_send_mgmt_cmd_cmp() local
313 job = dd_data->set_job; in lpfc_bsg_send_mgmt_cmd_cmp()
314 if (job) { in lpfc_bsg_send_mgmt_cmd_cmp()
316 job->dd_data = NULL; in lpfc_bsg_send_mgmt_cmd_cmp()
334 if (job) { in lpfc_bsg_send_mgmt_cmd_cmp()
353 job->reply->reply_payload_rcv_len = in lpfc_bsg_send_mgmt_cmd_cmp()
354 lpfc_bsg_copy_data(rmp, &job->reply_payload, in lpfc_bsg_send_mgmt_cmd_cmp()
369 if (job) { in lpfc_bsg_send_mgmt_cmd_cmp()
370 job->reply->result = rc; in lpfc_bsg_send_mgmt_cmd_cmp()
371 job->job_done(job); in lpfc_bsg_send_mgmt_cmd_cmp()
[all …]
/drivers/scsi/libfc/
Dfc_lport.c152 struct fc_bsg_job *job; member
1906 struct fc_bsg_job *job = info->job; in fc_lport_bsg_resp() local
1913 job->reply->result = (PTR_ERR(fp) == -FC_EX_CLOSED) ? in fc_lport_bsg_resp()
1915 job->reply_len = sizeof(uint32_t); in fc_lport_bsg_resp()
1916 job->state_flags |= FC_RQST_STATE_DONE; in fc_lport_bsg_resp()
1917 job->job_done(job); in fc_lport_bsg_resp()
1934 job->reply->reply_data.ctels_reply.status = in fc_lport_bsg_resp()
1939 job->reply->reply_payload_rcv_len += in fc_lport_bsg_resp()
1946 if (job->reply->reply_payload_rcv_len > in fc_lport_bsg_resp()
1947 job->reply_payload.payload_len) in fc_lport_bsg_resp()
[all …]
/drivers/s390/scsi/
Dzfcp_fc.c912 struct fc_bsg_job *job = data; in zfcp_fc_ct_els_job_handler() local
913 struct zfcp_fsf_ct_els *zfcp_ct_els = job->dd_data; in zfcp_fc_ct_els_job_handler()
914 struct fc_bsg_reply *jr = job->reply; in zfcp_fc_ct_els_job_handler()
916 jr->reply_payload_rcv_len = job->reply_payload.payload_len; in zfcp_fc_ct_els_job_handler()
919 job->job_done(job); in zfcp_fc_ct_els_job_handler()
922 static struct zfcp_fc_wka_port *zfcp_fc_job_wka_port(struct fc_bsg_job *job) in zfcp_fc_job_wka_port() argument
928 preamble_word1 = job->request->rqst_data.r_ct.preamble_word1; in zfcp_fc_job_wka_port()
931 adapter = (struct zfcp_adapter *) job->shost->hostdata[0]; in zfcp_fc_job_wka_port()
951 struct fc_bsg_job *job = data; in zfcp_fc_ct_job_handler() local
954 wka_port = zfcp_fc_job_wka_port(job); in zfcp_fc_ct_job_handler()
[all …]
/drivers/scsi/
Dscsi_transport_fc.c3562 fc_destroy_bsgjob(struct fc_bsg_job *job) in fc_destroy_bsgjob() argument
3566 spin_lock_irqsave(&job->job_lock, flags); in fc_destroy_bsgjob()
3567 if (job->ref_cnt) { in fc_destroy_bsgjob()
3568 spin_unlock_irqrestore(&job->job_lock, flags); in fc_destroy_bsgjob()
3571 spin_unlock_irqrestore(&job->job_lock, flags); in fc_destroy_bsgjob()
3573 put_device(job->dev); /* release reference for the request */ in fc_destroy_bsgjob()
3575 kfree(job->request_payload.sg_list); in fc_destroy_bsgjob()
3576 kfree(job->reply_payload.sg_list); in fc_destroy_bsgjob()
3577 kfree(job); in fc_destroy_bsgjob()
3586 fc_bsg_jobdone(struct fc_bsg_job *job) in fc_bsg_jobdone() argument
[all …]
/drivers/gpu/drm/tegra/
Ddrm.c341 struct host1x_job *job; in tegra_drm_submit() local
348 job = host1x_job_alloc(context->channel, args->num_cmdbufs, in tegra_drm_submit()
350 if (!job) in tegra_drm_submit()
353 job->num_relocs = args->num_relocs; in tegra_drm_submit()
354 job->num_waitchk = args->num_waitchks; in tegra_drm_submit()
355 job->client = (u32)args->context; in tegra_drm_submit()
356 job->class = context->client->base.class; in tegra_drm_submit()
357 job->serialize = true; in tegra_drm_submit()
374 host1x_job_add_gather(job, bo, cmdbuf.words, cmdbuf.offset); in tegra_drm_submit()
381 err = host1x_reloc_copy_from_user(&job->relocarray[num_relocs], in tegra_drm_submit()
[all …]
/drivers/scsi/bfa/
Dbfad_bsg.c3132 bfad_im_bsg_vendor_request(struct fc_bsg_job *job) in bfad_im_bsg_vendor_request() argument
3134 uint32_t vendor_cmd = job->request->rqst_data.h_vendor.vendor_cmd[0]; in bfad_im_bsg_vendor_request()
3136 (struct bfad_im_port_s *) job->shost->hostdata[0]; in bfad_im_bsg_vendor_request()
3138 struct request_queue *request_q = job->req->q; in bfad_im_bsg_vendor_request()
3149 payload_kbuf = kzalloc(job->request_payload.payload_len, GFP_KERNEL); in bfad_im_bsg_vendor_request()
3156 sg_copy_to_buffer(job->request_payload.sg_list, in bfad_im_bsg_vendor_request()
3157 job->request_payload.sg_cnt, payload_kbuf, in bfad_im_bsg_vendor_request()
3158 job->request_payload.payload_len); in bfad_im_bsg_vendor_request()
3162 job->request_payload.payload_len); in bfad_im_bsg_vendor_request()
3167 sg_copy_from_buffer(job->reply_payload.sg_list, in bfad_im_bsg_vendor_request()
[all …]
Dbfad_im.h168 int bfad_im_bsg_request(struct fc_bsg_job *job);
169 int bfad_im_bsg_timeout(struct fc_bsg_job *job);
/drivers/crypto/caam/
DKconfig7 This module creates job ring devices, and configures h/w
21 and Assurance Module (CAAM). This module adds a job ring operation
63 equal or greater than the job ring size will force timeouts.
85 stack) to the SEC4 via job ring.
97 scatterlist crypto API to the SEC4 via job ring.
/drivers/scsi/ibmvscsi/
Dibmvfc.c1702 static int ibmvfc_bsg_timeout(struct fc_bsg_job *job) in ibmvfc_bsg_timeout() argument
1704 struct ibmvfc_host *vhost = shost_priv(job->shost); in ibmvfc_bsg_timeout()
1705 unsigned long port_id = (unsigned long)job->dd_data; in ibmvfc_bsg_timeout()
1815 static int ibmvfc_bsg_request(struct fc_bsg_job *job) in ibmvfc_bsg_request() argument
1817 struct ibmvfc_host *vhost = shost_priv(job->shost); in ibmvfc_bsg_request()
1818 struct fc_rport *rport = job->rport; in ibmvfc_bsg_request()
1823 unsigned int code = job->request->msgcode; in ibmvfc_bsg_request()
1828 job->reply->reply_payload_rcv_len = 0; in ibmvfc_bsg_request()
1834 port_id = (job->request->rqst_data.h_els.port_id[0] << 16) | in ibmvfc_bsg_request()
1835 (job->request->rqst_data.h_els.port_id[1] << 8) | in ibmvfc_bsg_request()
[all …]

12