Home
last modified time | relevance | path

Searched refs:uc (Results 1 – 25 of 151) sorted by relevance

1234567

/drivers/gpu/drm/xe/
A Dxe_uc.c24 uc_to_gt(struct xe_uc *uc) in uc_to_gt() argument
26 return container_of(uc, struct xe_gt, uc); in uc_to_gt()
30 uc_to_xe(struct xe_uc *uc) in uc_to_xe() argument
136 xe_huc_sanitize(&uc->huc); in xe_uc_sanitize()
137 xe_guc_sanitize(&uc->guc); in xe_uc_sanitize()
142 xe_uc_sanitize(uc); in xe_uc_sanitize_reset()
144 return uc_reset(uc); in xe_uc_sanitize_reset()
261 xe_guc_stop(&uc->guc); in xe_uc_stop()
297 uc_reset_wait(uc); in xe_uc_suspend()
299 xe_uc_stop(uc); in xe_uc_suspend()
[all …]
A Dxe_uc.h11 int xe_uc_init_noalloc(struct xe_uc *uc);
12 int xe_uc_init(struct xe_uc *uc);
13 int xe_uc_init_post_hwconfig(struct xe_uc *uc);
14 int xe_uc_load_hw(struct xe_uc *uc);
15 void xe_uc_gucrc_disable(struct xe_uc *uc);
16 int xe_uc_reset_prepare(struct xe_uc *uc);
17 void xe_uc_stop_prepare(struct xe_uc *uc);
18 void xe_uc_stop(struct xe_uc *uc);
19 int xe_uc_start(struct xe_uc *uc);
21 int xe_uc_suspend(struct xe_uc *uc);
[all …]
A Dxe_gt.c463 err = xe_uc_init(&gt->uc); in gt_init_with_gt_forcewake()
574 err = xe_uc_load_hw(&gt->uc); in gt_init_with_all_forcewake()
739 err = xe_uc_load_hw(&gt->uc); in vf_gt_restart()
743 err = xe_uc_start(&gt->uc); in vf_gt_restart()
777 err = xe_uc_load_hw(&gt->uc); in do_gt_restart()
788 err = xe_uc_start(&gt->uc); in do_gt_restart()
839 xe_uc_gucrc_disable(&gt->uc); in gt_reset()
840 xe_uc_stop_prepare(&gt->uc); in gt_reset()
843 xe_uc_stop(&gt->uc); in gt_reset()
916 err = xe_uc_suspend(&gt->uc); in xe_gt_suspend()
[all …]
A Dxe_uc_debugfs.c17 void xe_uc_debugfs_register(struct xe_uc *uc, struct dentry *parent) in xe_uc_debugfs_register() argument
27 xe_gsc_debugfs_register(&uc->gsc, root); in xe_uc_debugfs_register()
28 xe_guc_debugfs_register(&uc->guc, root); in xe_uc_debugfs_register()
29 xe_huc_debugfs_register(&uc->huc, root); in xe_uc_debugfs_register()
A Dxe_gt_tlb_invalidation.c35 long delay = xe_guc_ct_queue_proc_time_jiffies(&gt->uc.guc.ct); in tlb_timeout_jiffies()
83 LNL_FLUSH_WORK(&gt->uc.guc.ct.g2h_worker); in xe_gt_tlb_fence_timeout()
145 if (!xe_guc_ct_initialized(&gt->uc.guc.ct)) in xe_gt_tlb_invalidation_reset()
153 mutex_lock(&gt->uc.guc.ct.lock); in xe_gt_tlb_invalidation_reset()
173 mutex_unlock(&gt->uc.guc.ct.lock); in xe_gt_tlb_invalidation_reset()
274 ret = send_tlb_invalidation(&gt->uc.guc, fence, action, in xe_gt_tlb_invalidation_guc()
300 if (xe_guc_ct_enabled(&gt->uc.guc.ct) && in xe_gt_tlb_invalidation_ggtt()
301 gt->uc.guc.submission_state.enabled) { in xe_gt_tlb_invalidation_ggtt()
342 return send_tlb_invalidation(&gt->uc.guc, fence, action, ARRAY_SIZE(action)); in send_tlb_invalidation_all()
460 return send_tlb_invalidation(&gt->uc.guc, fence, action, len); in xe_gt_tlb_invalidation_range()
A Dxe_wopcm.c76 return container_of(wopcm, struct xe_gt, uc.wopcm); in wopcm_to_gt()
145 u32 huc_agent = xe_uc_fw_is_available(&gt->uc.huc.fw) ? HUC_LOADING_AGENT_GUC : 0; in __wopcm_init_regs()
203 u32 guc_fw_size = xe_uc_fw_get_upload_size(&gt->uc.guc.fw); in xe_wopcm_init()
204 u32 huc_fw_size = xe_uc_fw_get_upload_size(&gt->uc.huc.fw); in xe_wopcm_init()
/drivers/gpu/drm/i915/gt/uc/
A Dintel_uc.c123 __confirm_options(uc); in intel_uc_init_early()
126 uc->ops = &uc_ops_on; in intel_uc_init_early()
128 uc->ops = &uc_ops_off; in intel_uc_init_early()
172 intel_uc_fini_hw(uc); in intel_uc_driver_remove()
173 intel_uc_fini(uc); in intel_uc_driver_remove()
345 intel_huc_fini(&uc->huc); in __uc_fini()
346 intel_guc_fini(&uc->guc); in __uc_fini()
478 ret = uc_init_wopcm(uc); in __uc_init_hw()
570 __uc_sanitize(uc); in __uc_init_hw()
594 __uc_sanitize(uc); in __uc_fini_hw()
[all …]
A Dintel_uc.h20 int (*sanitize)(struct intel_uc *uc);
21 void (*init_fw)(struct intel_uc *uc);
22 void (*fini_fw)(struct intel_uc *uc);
23 int (*init)(struct intel_uc *uc);
24 void (*fini)(struct intel_uc *uc);
25 int (*init_hw)(struct intel_uc *uc);
26 void (*fini_hw)(struct intel_uc *uc);
52 void intel_uc_suspend(struct intel_uc *uc);
54 int intel_uc_resume(struct intel_uc *uc);
107 if (uc->ops->_OPS) \
[all …]
A Dintel_uc_debugfs.c20 struct intel_uc *uc = m->private; in uc_usage_show() local
24 str_yes_no(intel_uc_supports_guc(uc)), in uc_usage_show()
25 str_yes_no(intel_uc_wants_guc(uc)), in uc_usage_show()
26 str_yes_no(intel_uc_uses_guc(uc))); in uc_usage_show()
28 str_yes_no(intel_uc_supports_huc(uc)), in uc_usage_show()
29 str_yes_no(intel_uc_wants_huc(uc)), in uc_usage_show()
30 str_yes_no(intel_uc_uses_huc(uc))); in uc_usage_show()
51 if (!intel_uc_supports_guc(uc)) in intel_uc_debugfs_register()
58 uc->guc.dbgfs_node = root; in intel_uc_debugfs_register()
63 intel_guc_debugfs_register(&uc->guc, root); in intel_uc_debugfs_register()
[all …]
A Dselftest_guc.c354 gt->uc.guc.fast_response_selftest = 1; in intel_guc_fast_request()
356 ret = bad_h2g(&gt->uc.guc); in intel_guc_fast_request()
362 ret = wait_for(gt->uc.guc.fast_response_selftest != 1 || i915_request_completed(rq), in intel_guc_fast_request()
375 if (gt->uc.guc.fast_response_selftest != 2) { in intel_guc_fast_request()
377 gt->uc.guc.fast_response_selftest); in intel_guc_fast_request()
415 if (!intel_uc_uses_guc_submission(&gt->uc)) in intel_guc_live_selftests()
/drivers/dma/ti/
A Dk3-udma.c1382 uc->id, uc->bchan->id); in bcdma_get_bchan()
1402 uc->tchan = uc->bchan; in bcdma_get_bchan()
1414 uc->id, uc->tchan->id); in udma_get_tchan()
1463 uc->id, uc->rchan->id); in udma_get_rchan()
1488 if ((uc->tchan && uc->rchan) && uc->tchan->id == uc->rchan->id) { in udma_get_chan_pair()
1496 uc->id, uc->tchan->id); in udma_get_chan_pair()
1500 uc->id, uc->rchan->id); in udma_get_chan_pair()
2353 uc->name, uc); in udma_alloc_chan_resources()
2542 uc->name, uc); in bcdma_alloc_chan_resources()
2725 uc->id, uc->tchan->id, uc->tchan->tflow_id, in pktdma_alloc_chan_resources()
[all …]
/drivers/usb/typec/ucsi/
A Ducsi_ccg.c411 memset(uc->updated, 0, sizeof(uc->updated)); in ucsi_ccg_update_altmodes()
720 return request_threaded_irq(uc->irq, NULL, ccg_irq_handler, flags, dev_name(uc->dev), uc); in ccg_request_irq()
737 uc->fw_version = CCG_VERSION(uc->version[FW2].app.ver) | in get_fw_info()
760 uc->cmd_resp = uc->dev_resp.code; in ccg_process_response()
768 uc->cmd_resp = uc->dev_resp.code; in ccg_process_response()
1375 free_irq(uc->irq, uc); in ccg_update_firmware()
1432 uc = devm_kzalloc(dev, sizeof(*uc), GFP_KERNEL); in ucsi_ccg_probe()
1433 if (!uc) in ucsi_ccg_probe()
1476 ucsi_set_drvdata(uc->ucsi, uc); in ucsi_ccg_probe()
1501 free_irq(uc->irq, uc); in ucsi_ccg_probe()
[all …]
/drivers/md/
A Ddm-unstripe.c30 if (uc->dev) in cleanup_unstripe()
32 kfree(uc); in cleanup_unstripe()
51 uc = kzalloc(sizeof(*uc), GFP_KERNEL); in unstripe_ctr()
52 if (!uc) { in unstripe_ctr()
57 if (kstrtouint(argv[0], 10, &uc->stripes) || !uc->stripes) { in unstripe_ctr()
72 if (uc->unstripe > uc->stripes && uc->stripes > 1) { in unstripe_ctr()
88 uc->unstripe_offset = (sector_t)uc->unstripe * uc->chunk_size; in unstripe_ctr()
89 uc->unstripe_width = (sector_t)(uc->stripes - 1) * uc->chunk_size; in unstripe_ctr()
90 uc->chunk_shift = is_power_of_2(uc->chunk_size) ? fls(uc->chunk_size) - 1 : 0; in unstripe_ctr()
157 uc->stripes, (unsigned long long)uc->chunk_size, uc->unstripe, in unstripe_status()
[all …]
/drivers/gpu/drm/i915/
A DMakefile186 gt/uc/intel_gsc_fw.o \
188 gt/uc/intel_gsc_uc.o \
191 gt/uc/intel_guc.o \
192 gt/uc/intel_guc_ads.o \
194 gt/uc/intel_guc_ct.o \
196 gt/uc/intel_guc_fw.o \
200 gt/uc/intel_guc_rc.o \
203 gt/uc/intel_huc.o \
205 gt/uc/intel_huc_fw.o \
206 gt/uc/intel_uc.o \
[all …]
A Di915_gpu_error.c805 if (gt->uc && gt->uc->guc.is_guc_capture) { in err_print_gt_engines()
871 if (error->gt->uc && error->gt->uc->guc.is_guc_capture) in __err_print_to_sgl()
886 if (error->gt->uc) in __err_print_to_sgl()
1029 kfree(uc); in cleanup_uc()
1044 if (gt->uc) in cleanup_gt()
1045 cleanup_uc(gt->uc); in cleanup_gt()
1728 const struct intel_uc *uc = &gt->_gt->uc; in gt_record_uc() local
1735 memcpy(&error_uc->guc_fw, &uc->guc.fw, sizeof(uc->guc.fw)); in gt_record_uc()
1736 memcpy(&error_uc->huc_fw, &uc->huc.fw, sizeof(uc->huc.fw)); in gt_record_uc()
1755 uc->guc.ct.ctbs.send.desc, (struct intel_guc *)&uc->guc); in gt_record_uc()
[all …]
/drivers/scsi/sym53c8xx_2/
A Dsym_glue.c944 switch (uc->cmd) { in sym_exec_user_command()
968 switch (uc->cmd) { in sym_exec_user_command()
971 if (!uc->data || uc->data >= 255) { in sym_exec_user_command()
1074 memset(uc, 0, sizeof(*uc)); in sym_user_command()
1080 uc->cmd = UC_SETSYNC; in sym_user_command()
1082 uc->cmd = UC_SETTAGS; in sym_user_command()
1086 uc->cmd = UC_SETWIDE; in sym_user_command()
1092 uc->cmd = UC_SETFLAG; in sym_user_command()
1108 switch(uc->cmd) { in sym_user_command()
1118 uc->target = ~0; in sym_user_command()
[all …]
/drivers/infiniband/sw/rxe/
A Drxe.h43 #define rxe_dbg_uc(uc, fmt, ...) ibdev_dbg((uc)->ibuc.device, \ argument
44 "uc#%d %s: " fmt, (uc)->elem.index, __func__, ##__VA_ARGS__)
64 #define rxe_err_uc(uc, fmt, ...) ibdev_err_ratelimited((uc)->ibuc.device, \ argument
65 "uc#%d %s: " fmt, (uc)->elem.index, __func__, ##__VA_ARGS__)
85 #define rxe_info_uc(uc, fmt, ...) ibdev_info_ratelimited((uc)->ibuc.device, \ argument
86 "uc#%d %s: " fmt, (uc)->elem.index, __func__, ##__VA_ARGS__)
/drivers/gpu/drm/i915/gt/
A Dintel_gt.h97 static inline struct intel_gt *uc_to_gt(struct intel_uc *uc) in uc_to_gt() argument
99 return container_of(uc, struct intel_gt, uc); in uc_to_gt()
104 return container_of(guc, struct intel_gt, uc.guc); in guc_to_gt()
109 return container_of(huc, struct intel_gt, uc.huc); in huc_to_gt()
114 return container_of(gsc_uc, struct intel_gt, uc.gsc); in gsc_uc_to_gt()
129 return &gt->uc.guc; in gt_to_guc()
A Dintel_gt_pm.c193 intel_uc_reset_prepare(&gt->uc); in gt_sanitize()
208 intel_uc_reset(&gt->uc, false); in gt_sanitize()
277 intel_uc_reset_finish(&gt->uc); in intel_gt_resume()
298 intel_uc_resume(&gt->uc); in intel_gt_resume()
358 intel_uc_suspend(&gt->uc); in intel_gt_suspend_late()
387 intel_uc_runtime_suspend(&gt->uc); in intel_gt_runtime_suspend()
400 ret = intel_uc_runtime_resume(&gt->uc); in intel_gt_runtime_resume()
A Dintel_gt.c58 intel_uc_init_early(&gt->uc); in intel_gt_common_init_early()
135 intel_uc_init_mmio(&gt->uc); in intel_gt_init_mmio()
213 ret = intel_uc_init_hw(&gt->uc); in intel_gt_init_hw()
682 return intel_uc_wait_for_idle(&gt->uc, remaining_timeout); in intel_gt_wait_for_idle()
723 err = intel_uc_init(&gt->uc); in intel_gt_init()
747 intel_uc_init_late(&gt->uc); in intel_gt_init()
754 intel_uc_fini_hw(&gt->uc); in intel_gt_init()
756 intel_uc_fini(&gt->uc); in intel_gt_init()
775 intel_uc_driver_remove(&gt->uc); in intel_gt_driver_remove()
811 intel_gsc_uc_flush_work(&gt->uc.gsc); in intel_gt_driver_unregister()
[all …]
/drivers/pci/
A Dvgaarb.c1159 struct vga_arb_user_card *uc = NULL; in vga_arb_write() local
1242 uc = &priv->cards[i]; in vga_arb_write()
1245 if (!uc) { in vga_arb_write()
1263 uc->io_cnt--; in vga_arb_write()
1265 uc->mem_cnt--; in vga_arb_write()
1440 struct vga_arb_user_card *uc; in vga_arb_release() local
1449 uc = &priv->cards[i]; in vga_arb_release()
1450 if (uc->pdev == NULL) in vga_arb_release()
1453 uc->io_cnt, uc->mem_cnt); in vga_arb_release()
1454 while (uc->io_cnt--) in vga_arb_release()
[all …]
/drivers/ufs/core/
A Dufs_bsg.c137 struct uic_command uc = {}; in ufs_bsg_request() local
172 memcpy(&uc, &bsg_request->upiu_req.uc, UIC_CMD_SIZE); in ufs_bsg_request()
173 ret = ufshcd_send_bsg_uic_cmd(hba, &uc); in ufs_bsg_request()
177 memcpy(&bsg_reply->upiu_rsp.uc, &uc, UIC_CMD_SIZE); in ufs_bsg_request()
/drivers/gpu/drm/i915/pxp/
A Dintel_pxp.c165 intel_huc_is_loaded_by_gsc(&to_gt(i915)->uc.huc) && intel_uc_uses_huc(&to_gt(i915)->uc)) in find_gt_for_required_teelink()
183 intel_uc_fw_is_loadable(&i915->media_gt->uc.gsc.fw) && in find_gt_for_required_protected_content()
184 intel_uc_fw_is_loadable(&i915->media_gt->uc.huc.fw)) in find_gt_for_required_protected_content()
374 if (__intel_uc_fw_status(&pxp->ctrl_gt->uc.huc.fw) == INTEL_UC_FIRMWARE_LOAD_FAIL) in pxp_required_fw_failed()
377 __intel_uc_fw_status(&pxp->ctrl_gt->uc.gsc.fw) == INTEL_UC_FIRMWARE_LOAD_FAIL) in pxp_required_fw_failed()
/drivers/usb/gadget/
A Dcomposite.c1285 sp = get_containers_gs(uc); in get_string()
1314 sp = get_containers_gs(uc); in get_string()
1418 mem = sizeof(*uc); in copy_gadget_strings()
1423 if (!uc) in copy_gadget_strings()
1426 stash = uc->stash; in copy_gadget_strings()
1453 return uc; in copy_gadget_strings()
1489 if (IS_ERR(uc)) in usb_gstrings_attach()
1490 return ERR_CAST(uc); in usb_gstrings_attach()
1513 kfree(uc); in usb_gstrings_attach()
2487 list_del(&uc->list); in composite_dev_cleanup()
[all …]
/drivers/media/usb/pvrusb2/
A Dpvrusb2-ctrl.c298 unsigned int uc,cnt; in gen_bitmask_string() local
302 uc = 0; in gen_bitmask_string()
314 ptr += cnt; len -= cnt; uc += cnt; in gen_bitmask_string()
326 ptr += cnt; len -= cnt; uc += cnt; in gen_bitmask_string()
332 ptr += cnt; len -= cnt; uc += cnt; in gen_bitmask_string()
338 ptr += cnt; len -= cnt; uc += cnt; in gen_bitmask_string()
342 return uc; in gen_bitmask_string()

Completed in 77 milliseconds

1234567