Home
last modified time | relevance | path

Searched refs:bos (Results 1 – 25 of 58) sorted by relevance

123

/linux-6.1.9/drivers/gpu/drm/etnaviv/
Detnaviv_gem_submit.c35 size_t sz = size_vstruct(nr_bos, sizeof(submit->bos[0]), sizeof(*submit)); in submit_create()
74 submit->bos[i].flags = bo->flags; in submit_lookup_objects()
81 submit->bos[i].va = bo->presumed; in submit_lookup_objects()
101 submit->bos[i].obj = to_etnaviv_bo(obj); in submit_lookup_objects()
113 if (submit->bos[i].flags & BO_LOCKED) { in submit_unlock_object()
114 struct drm_gem_object *obj = &submit->bos[i].obj->base; in submit_unlock_object()
117 submit->bos[i].flags &= ~BO_LOCKED; in submit_unlock_object()
128 struct drm_gem_object *obj = &submit->bos[i].obj->base; in submit_lock_objects()
135 if (!(submit->bos[i].flags & BO_LOCKED)) { in submit_lock_objects()
142 submit->bos[i].flags |= BO_LOCKED; in submit_lock_objects()
[all …]
Detnaviv_dump.c141 obj = submit->bos[i].obj; in etnaviv_core_dump()
201 obj = submit->bos[i].obj; in etnaviv_core_dump()
202 vram = submit->bos[i].mapping; in etnaviv_core_dump()
/linux-6.1.9/drivers/gpu/drm/msm/
Dmsm_gem_submit.c34 sz = struct_size(submit, bos, nr_bos) + in submit_create()
54 submit->cmd = (void *)&submit->bos[nr_bos]; in submit_create()
101 u64_to_user_ptr(args->bos + (i * sizeof(submit_bo))); in submit_lookup_objects()
106 submit->bos[i].flags = 0; in submit_lookup_objects()
125 submit->bos[i].handle = submit_bo.handle; in submit_lookup_objects()
126 submit->bos[i].flags = submit_bo.flags; in submit_lookup_objects()
128 submit->bos[i].iova = submit_bo.presumed; in submit_lookup_objects()
139 obj = idr_find(&file->object_idr, submit->bos[i].handle); in submit_lookup_objects()
141 DRM_ERROR("invalid handle %u at index %u\n", submit->bos[i].handle, i); in submit_lookup_objects()
148 submit->bos[i].obj = to_msm_bo(obj); in submit_lookup_objects()
[all …]
Dmsm_fb.c33 const struct drm_mode_fb_cmd2 *mode_cmd, struct drm_gem_object **bos);
141 struct drm_gem_object *bos[4] = {0}; in msm_framebuffer_create() local
146 bos[i] = drm_gem_object_lookup(file, mode_cmd->handles[i]); in msm_framebuffer_create()
147 if (!bos[i]) { in msm_framebuffer_create()
153 fb = msm_framebuffer_init(dev, mode_cmd, bos); in msm_framebuffer_create()
163 drm_gem_object_put(bos[i]); in msm_framebuffer_create()
168 const struct drm_mode_fb_cmd2 *mode_cmd, struct drm_gem_object **bos) in msm_framebuffer_init() argument
217 if (bos[i]->size < min_size) { in msm_framebuffer_init()
222 msm_fb->base.obj[i] = bos[i]; in msm_framebuffer_init()
Dmsm_ringbuffer.c24 struct drm_gem_object *obj = &submit->bos[i].obj->base; in msm_job_run()
27 msm_gem_unpin_vma_fenced(submit->bos[i].vma, fctx); in msm_job_run()
29 submit->bos[i].flags &= ~(BO_VMA_PINNED | BO_OBJ_PINNED); in msm_job_run()
Dmsm_rd.c316 struct msm_gem_object *obj = submit->bos[idx].obj; in snapshot_buf()
321 offset = iova - submit->bos[idx].iova; in snapshot_buf()
323 iova = submit->bos[idx].iova; in snapshot_buf()
338 if (!(submit->bos[idx].flags & MSM_SUBMIT_BO_READ)) in snapshot_buf()
/linux-6.1.9/drivers/gpu/drm/qxl/
Dqxl_release.c100 INIT_LIST_HEAD(&release->bos); in qxl_release_alloc()
122 while (!list_empty(&release->bos)) { in qxl_release_free_list()
126 entry = container_of(release->bos.next, in qxl_release_free_list()
150 WARN_ON(list_empty(&release->bos)); in qxl_release_free()
175 list_for_each_entry(entry, &release->bos, tv.head) { in qxl_release_list_add()
187 list_add_tail(&entry->tv.head, &release->bos); in qxl_release_list_add()
221 if (list_is_singular(&release->bos)) in qxl_release_reserve_list()
224 ret = ttm_eu_reserve_buffers(&release->ticket, &release->bos, in qxl_release_reserve_list()
229 list_for_each_entry(entry, &release->bos, tv.head) { in qxl_release_reserve_list()
234 ttm_eu_backoff_reservation(&release->ticket, &release->bos); in qxl_release_reserve_list()
[all …]
/linux-6.1.9/drivers/gpu/drm/lima/
Dlima_gem.c308 struct lima_bo **bos = submit->lbos; in lima_gem_submit() local
320 obj = drm_gem_object_lookup(file, submit->bos[i].handle); in lima_gem_submit()
337 bos[i] = bo; in lima_gem_submit()
340 err = drm_gem_lock_reservations((struct drm_gem_object **)bos, in lima_gem_submit()
347 bos, submit->nr_bos, vm); in lima_gem_submit()
357 submit->task, bos[i], in lima_gem_submit()
358 submit->bos[i].flags & LIMA_SUBMIT_BO_WRITE, in lima_gem_submit()
367 dma_resv_add_fence(lima_bo_resv(bos[i]), fence, in lima_gem_submit()
368 submit->bos[i].flags & LIMA_SUBMIT_BO_WRITE ? in lima_gem_submit()
372 drm_gem_unlock_reservations((struct drm_gem_object **)bos, in lima_gem_submit()
[all …]
Dlima_sched.c114 struct lima_bo **bos, int num_bos, in lima_sched_task_init() argument
119 task->bos = kmemdup(bos, sizeof(*bos) * num_bos, GFP_KERNEL); in lima_sched_task_init()
120 if (!task->bos) in lima_sched_task_init()
124 drm_gem_object_get(&bos[i]->base.base); in lima_sched_task_init()
128 kfree(task->bos); in lima_sched_task_init()
146 if (task->bos) { in lima_sched_task_fini()
148 drm_gem_object_put(&task->bos[i]->base.base); in lima_sched_task_fini()
149 kfree(task->bos); in lima_sched_task_fini()
306 struct lima_bo *bo = task->bos[i]; in lima_sched_build_error_task_list()
351 struct lima_bo *bo = task->bos[i]; in lima_sched_build_error_task_list()
[all …]
Dlima_drv.c106 struct drm_lima_gem_submit_bo *bos; in lima_ioctl_gem_submit() local
124 bos = kvcalloc(args->nr_bos, sizeof(*submit.bos) + sizeof(*submit.lbos), GFP_KERNEL); in lima_ioctl_gem_submit()
125 if (!bos) in lima_ioctl_gem_submit()
128 size = args->nr_bos * sizeof(*submit.bos); in lima_ioctl_gem_submit()
129 if (copy_from_user(bos, u64_to_user_ptr(args->bos), size)) { in lima_ioctl_gem_submit()
157 submit.bos = bos; in lima_ioctl_gem_submit()
158 submit.lbos = (void *)bos + size; in lima_ioctl_gem_submit()
174 kvfree(bos); in lima_ioctl_gem_submit()
Dlima_sched.h26 struct lima_bo **bos; member
89 struct lima_bo **bos, int num_bos,
Dlima_drv.h32 struct drm_lima_gem_submit_bo *bos; member
/linux-6.1.9/drivers/usb/core/
Dconfig.c961 if (dev->bos) { in usb_release_bos_descriptor()
962 kfree(dev->bos->desc); in usb_release_bos_descriptor()
963 kfree(dev->bos); in usb_release_bos_descriptor()
964 dev->bos = NULL; in usb_release_bos_descriptor()
981 struct usb_bos_descriptor *bos; in usb_get_bos_descriptor() local
989 bos = kzalloc(sizeof(*bos), GFP_KERNEL); in usb_get_bos_descriptor()
990 if (!bos) in usb_get_bos_descriptor()
994 ret = usb_get_descriptor(dev, USB_DT_BOS, 0, bos, USB_DT_BOS_SIZE); in usb_get_bos_descriptor()
995 if (ret < USB_DT_BOS_SIZE || bos->bLength < USB_DT_BOS_SIZE) { in usb_get_bos_descriptor()
999 kfree(bos); in usb_get_bos_descriptor()
[all …]
Dhub.c158 if (udev->bos->ext_cap && in usb_device_supports_lpm()
160 le32_to_cpu(udev->bos->ext_cap->bmAttributes))) in usb_device_supports_lpm()
170 if (!udev->bos->ss_cap) { in usb_device_supports_lpm()
175 if (udev->bos->ss_cap->bU1devExitLat == 0 && in usb_device_supports_lpm()
176 udev->bos->ss_cap->bU2DevExitLat == 0) { in usb_device_supports_lpm()
337 udev_u1_del = udev->bos->ss_cap->bU1devExitLat; in usb_set_lpm_parameters()
338 udev_u2_del = le16_to_cpu(udev->bos->ss_cap->bU2DevExitLat); in usb_set_lpm_parameters()
339 hub_u1_del = udev->parent->bos->ss_cap->bU1devExitLat; in usb_set_lpm_parameters()
340 hub_u2_del = le16_to_cpu(udev->parent->bos->ss_cap->bU2DevExitLat); in usb_set_lpm_parameters()
2704 struct usb_ssp_cap_descriptor *ssp_cap = hdev->bos->ssp_cap; in get_port_ssp_rate()
[all …]
/linux-6.1.9/drivers/gpu/drm/omapdrm/
Domap_fb.c342 struct drm_gem_object *bos[4]; in omap_framebuffer_create() local
347 bos[i] = drm_gem_object_lookup(file, mode_cmd->handles[i]); in omap_framebuffer_create()
348 if (!bos[i]) { in omap_framebuffer_create()
354 fb = omap_framebuffer_init(dev, mode_cmd, bos); in omap_framebuffer_create()
362 drm_gem_object_put(bos[i]); in omap_framebuffer_create()
368 const struct drm_mode_fb_cmd2 *mode_cmd, struct drm_gem_object **bos) in omap_framebuffer_init() argument
430 if (size > omap_gem_mmap_size(bos[i]) - mode_cmd->offsets[i]) { in omap_framebuffer_init()
433 bos[i]->size - mode_cmd->offsets[i], size); in omap_framebuffer_init()
438 fb->obj[i] = bos[i]; in omap_framebuffer_init()
Domap_fb.h25 const struct drm_mode_fb_cmd2 *mode_cmd, struct drm_gem_object **bos);
/linux-6.1.9/include/net/
Dmpls.h33 bool bos) in mpls_entry_encode() argument
40 (bos ? (1 << MPLS_LS_S_SHIFT) : 0) | in mpls_entry_encode()
/linux-6.1.9/drivers/gpu/drm/panfrost/
Dpanfrost_job.c244 static int panfrost_acquire_object_fences(struct drm_gem_object **bos, in panfrost_acquire_object_fences() argument
251 ret = dma_resv_reserve_fences(bos[i]->resv, 1); in panfrost_acquire_object_fences()
256 ret = drm_sched_job_add_implicit_dependencies(job, bos[i], in panfrost_acquire_object_fences()
265 static void panfrost_attach_object_fences(struct drm_gem_object **bos, in panfrost_attach_object_fences() argument
272 dma_resv_add_fence(bos[i]->resv, fence, DMA_RESV_USAGE_WRITE); in panfrost_attach_object_fences()
281 ret = drm_gem_lock_reservations(job->bos, job->bo_count, in panfrost_job_push()
291 ret = panfrost_acquire_object_fences(job->bos, job->bo_count, in panfrost_job_push()
304 panfrost_attach_object_fences(job->bos, job->bo_count, in panfrost_job_push()
308 drm_gem_unlock_reservations(job->bos, job->bo_count, &acquire_ctx); in panfrost_job_push()
333 if (job->bos) { in panfrost_job_cleanup()
[all …]
/linux-6.1.9/net/mpls/
Dmpls_iptunnel.c50 bool bos; in mpls_xmit() local
126 bos = true; in mpls_xmit()
129 ttl, 0, bos); in mpls_xmit()
130 bos = false; in mpls_xmit()
Daf_mpls.c193 if (!dec.bos) in mpls_multipath_hash()
434 if (unlikely(!new_header_size && dec.bos)) { in mpls_forward()
439 bool bos; in mpls_forward() local
445 bos = dec.bos; in mpls_forward()
448 dec.ttl, 0, bos); in mpls_forward()
449 bos = false; in mpls_forward()
1703 bool bos; in nla_put_labels() local
1710 bos = true; in nla_put_labels()
1712 nla_label[i] = mpls_entry_encode(label[i], 0, 0, bos); in nla_put_labels()
1713 bos = false; in nla_put_labels()
[all …]
Dinternal.h15 u8 bos; member
182 result.bos = (entry & MPLS_LS_S_MASK) >> MPLS_LS_S_SHIFT; in mpls_entry_decode()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/
Dmpls.c32 mpls_info->bos = act->mpls_push.bos; in copy_mpls_info()
/linux-6.1.9/drivers/gpu/drm/msm/adreno/
Dadreno_gpu.c678 for (i = 0; state->bos && i < state->nr_bos; i++) in adreno_gpu_state_destroy()
679 kvfree(state->bos[i].data); in adreno_gpu_state_destroy()
681 kfree(state->bos); in adreno_gpu_state_destroy()
829 if (state->bos) { in adreno_show()
834 state->bos[i].iova); in adreno_show()
835 drm_printf(p, " size: %zd\n", state->bos[i].size); in adreno_show()
836 drm_printf(p, " name: %-32s\n", state->bos[i].name); in adreno_show()
838 adreno_show_object(p, &state->bos[i].data, in adreno_show()
839 state->bos[i].size, &state->bos[i].encoded); in adreno_show()
/linux-6.1.9/drivers/usb/gadget/
Dcomposite.c680 struct usb_bos_descriptor *bos = cdev->req->buf; in bos_desc() local
683 bos->bLength = USB_DT_BOS_SIZE; in bos_desc()
684 bos->bDescriptorType = USB_DT_BOS; in bos_desc()
686 bos->wTotalLength = cpu_to_le16(USB_DT_BOS_SIZE); in bos_desc()
687 bos->bNumDeviceCaps = 0; in bos_desc()
716 usb_ext = cdev->req->buf + le16_to_cpu(bos->wTotalLength); in bos_desc()
717 bos->bNumDeviceCaps++; in bos_desc()
718 le16_add_cpu(&bos->wTotalLength, USB_DT_USB_EXT_CAP_SIZE); in bos_desc()
732 ss_cap = cdev->req->buf + le16_to_cpu(bos->wTotalLength); in bos_desc()
733 bos->bNumDeviceCaps++; in bos_desc()
[all …]
/linux-6.1.9/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_formats.h71 struct drm_gem_object **bos);

123