/linux/drivers/gpu/drm/etnaviv/ |
A D | etnaviv_gem_submit.c | 74 submit->bos[i].flags = bo->flags; in submit_lookup_objects() 81 submit->bos[i].va = bo->presumed; in submit_lookup_objects() 117 submit->bos[i].flags &= ~BO_LOCKED; in submit_unlock_object() 142 submit->bos[i].flags |= BO_LOCKED; in submit_lock_objects() 234 submit->bos[i].va); in submit_pin_objects() 249 submit->bos[i].mapping = mapping; in submit_pin_objects() 264 *bo = &submit->bos[idx]; in submit_bo() 395 submit->bos[i].mapping = NULL; in submit_cleanup() 476 bos = kvmalloc_array(args->nr_bos, sizeof(*bos), GFP_KERNEL); in etnaviv_ioctl_gem_submit() 485 ret = copy_from_user(bos, u64_to_user_ptr(args->bos), in etnaviv_ioctl_gem_submit() [all …]
|
A D | etnaviv_dump.c | 141 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/drivers/gpu/drm/msm/ |
A D | msm_gem_submit.c | 39 sz = struct_size(submit, bos, nr_bos) + in submit_create() 107 submit->bos[i].flags = 0; in submit_lookup_objects() 251 submit->bos[i].iova = 0; in submit_unlock_unpin_bo() 284 submit->bos[i].handle, i); in submit_lock_objects() 363 submit->bos[i].flags |= BO_ACTIVE; in submit_pin_objects() 377 submit->bos[i].flags |= BO_PINNED; in submit_pin_objects() 379 if (iova == submit->bos[i].iova) { in submit_pin_objects() 380 submit->bos[i].flags |= BO_VALID; in submit_pin_objects() 382 submit->bos[i].iova = iova; in submit_pin_objects() 416 *obj = submit->bos[idx].obj; in submit_bo() [all …]
|
A D | msm_fb.c | 25 const struct drm_mode_fb_cmd2 *mode_cmd, struct drm_gem_object **bos); 105 struct drm_gem_object *bos[4] = {0}; in msm_framebuffer_create() local 110 bos[i] = drm_gem_object_lookup(file, mode_cmd->handles[i]); in msm_framebuffer_create() 111 if (!bos[i]) { in msm_framebuffer_create() 117 fb = msm_framebuffer_init(dev, mode_cmd, bos); in msm_framebuffer_create() 127 drm_gem_object_put(bos[i]); in msm_framebuffer_create() 132 const struct drm_mode_fb_cmd2 *mode_cmd, struct drm_gem_object **bos) in msm_framebuffer_init() argument 181 if (bos[i]->size < min_size) { in msm_framebuffer_init() 186 msm_fb->base.obj[i] = bos[i]; in msm_framebuffer_init()
|
A D | msm_gpu.c | 232 struct msm_gpu_state_bo *state_bo = &state->bos[state->nr_bos]; in msm_gpu_crashstate_get_bo() 296 state->bos = kcalloc(nr, in msm_gpu_crashstate_capture() 299 for (i = 0; state->bos && i < submit->nr_bos; i++) { in msm_gpu_crashstate_capture() 301 msm_gpu_crashstate_get_bo(state, submit->bos[i].obj, in msm_gpu_crashstate_capture() 302 submit->bos[i].iova, submit->bos[i].flags); in msm_gpu_crashstate_capture() 306 for (i = 0; state->bos && i < submit->nr_cmds; i++) { in msm_gpu_crashstate_capture() 310 msm_gpu_crashstate_get_bo(state, submit->bos[idx].obj, in msm_gpu_crashstate_capture() 311 submit->bos[idx].iova, submit->bos[idx].flags); in msm_gpu_crashstate_capture()
|
A D | msm_rd.c | 303 struct msm_gem_object *obj = submit->bos[idx].obj; in snapshot_buf() 308 offset = iova - submit->bos[idx].iova; in snapshot_buf() 310 iova = submit->bos[idx].iova; in snapshot_buf() 325 if (!(submit->bos[idx].flags & MSM_SUBMIT_BO_READ)) in snapshot_buf()
|
/linux/drivers/gpu/drm/qxl/ |
A D | qxl_release.c | 100 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() 229 list_for_each_entry(entry, &release->bos, tv.head) { in qxl_release_reserve_list() 245 if (list_is_singular(&release->bos)) in qxl_release_backoff_reserve_list() 414 if (list_is_singular(&release->bos) || list_empty(&release->bos)) in qxl_release_fence_buffer_objects() [all …]
|
/linux/drivers/gpu/drm/lima/ |
A D | lima_gem.c | 308 struct lima_bo **bos = submit->lbos; in lima_gem_submit() local 337 bos[i] = bo; 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 if (submit->bos[i].flags & LIMA_SUBMIT_BO_WRITE) in lima_gem_submit() 368 dma_resv_add_excl_fence(lima_bo_resv(bos[i]), fence); in lima_gem_submit() 377 drm_gem_object_put(&bos[i]->base.base); in lima_gem_submit() 395 if (!bos[i]) in lima_gem_submit() 397 lima_vm_bo_del(vm, bos[i]); in lima_gem_submit() [all …]
|
A D | lima_sched.c | 114 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() 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() 442 struct lima_bo **bos = task->bos; in lima_sched_free_job() local [all …]
|
A D | lima_drv.c | 106 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()
|
A D | lima_sched.h | 26 struct lima_bo **bos; member 89 struct lima_bo **bos, int num_bos,
|
A D | lima_drv.h | 32 struct drm_lima_gem_submit_bo *bos; member
|
/linux/drivers/usb/core/ |
A D | config.c | 961 if (dev->bos) { in usb_release_bos_descriptor() 963 kfree(dev->bos); in usb_release_bos_descriptor() 964 dev->bos = NULL; in usb_release_bos_descriptor() 989 bos = kzalloc(sizeof(*bos), GFP_KERNEL); in usb_get_bos_descriptor() 990 if (!bos) in usb_get_bos_descriptor() 999 kfree(bos); in usb_get_bos_descriptor() 1006 kfree(bos); in usb_get_bos_descriptor() 1010 dev->bos = kzalloc(sizeof(*dev->bos), GFP_KERNEL); in usb_get_bos_descriptor() 1011 if (!dev->bos) in usb_get_bos_descriptor() 1062 dev->bos->ss_cap = in usb_get_bos_descriptor() [all …]
|
A D | hub.c | 154 if (udev->bos->ext_cap && in usb_device_supports_lpm() 166 if (!udev->bos->ss_cap) { in usb_device_supports_lpm() 172 udev->bos->ss_cap->bU2DevExitLat == 0) { in usb_device_supports_lpm() 5112 if ((old_bos && !udev->bos) || (!old_bos && udev->bos)) in descriptors_changed() 5114 if (udev->bos) { in descriptors_changed() 5467 udev->bos)) { in hub_port_connect_change() 5893 struct usb_host_bos *bos; in usb_reset_and_verify_device() local 5924 bos = udev->bos; in usb_reset_and_verify_device() 5925 udev->bos = NULL; in usb_reset_and_verify_device() 6022 udev->bos = bos; in usb_reset_and_verify_device() [all …]
|
/linux/drivers/gpu/drm/omapdrm/ |
A D | omap_fb.c | 309 struct drm_gem_object *bos[4]; in omap_framebuffer_create() local 314 bos[i] = drm_gem_object_lookup(file, mode_cmd->handles[i]); in omap_framebuffer_create() 315 if (!bos[i]) { in omap_framebuffer_create() 321 fb = omap_framebuffer_init(dev, mode_cmd, bos); in omap_framebuffer_create() 329 drm_gem_object_put(bos[i]); in omap_framebuffer_create() 335 const struct drm_mode_fb_cmd2 *mode_cmd, struct drm_gem_object **bos) in omap_framebuffer_init() argument 397 if (size > omap_gem_mmap_size(bos[i]) - mode_cmd->offsets[i]) { in omap_framebuffer_init() 400 bos[i]->size - mode_cmd->offsets[i], size); in omap_framebuffer_init() 405 fb->obj[i] = bos[i]; in omap_framebuffer_init()
|
/linux/drivers/gpu/drm/panfrost/ |
A D | panfrost_job.c | 243 static int panfrost_acquire_object_fences(struct drm_gem_object **bos, in panfrost_acquire_object_fences() argument 251 ret = drm_sched_job_add_implicit_dependencies(job, bos[i], in panfrost_acquire_object_fences() 260 static void panfrost_attach_object_fences(struct drm_gem_object **bos, in panfrost_attach_object_fences() argument 267 dma_resv_add_excl_fence(bos[i]->resv, fence); in panfrost_attach_object_fences() 276 ret = drm_gem_lock_reservations(job->bos, job->bo_count, in panfrost_job_push() 286 ret = panfrost_acquire_object_fences(job->bos, job->bo_count, in panfrost_job_push() 299 panfrost_attach_object_fences(job->bos, job->bo_count, in panfrost_job_push() 303 drm_gem_unlock_reservations(job->bos, job->bo_count, &acquire_ctx); in panfrost_job_push() 328 if (job->bos) { in panfrost_job_cleanup() 330 drm_gem_object_put(job->bos[i]); in panfrost_job_cleanup() [all …]
|
/linux/include/net/ |
A D | mpls.h | 33 bool bos) in mpls_entry_encode() argument 40 (bos ? (1 << MPLS_LS_S_SHIFT) : 0) | in mpls_entry_encode()
|
/linux/net/mpls/ |
A D | mpls_iptunnel.c | 50 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()
|
A D | af_mpls.c | 193 if (!dec.bos) in mpls_multipath_hash() 439 bool bos; in mpls_forward() local 445 bos = dec.bos; in mpls_forward() 449 bos = false; in mpls_forward() 1704 bool bos; in nla_put_labels() local 1711 bos = true; in nla_put_labels() 1727 bool bos; in nla_get_labels() local 1751 bos = true; in nla_get_labels() 1771 if (dec.bos != bos) { in nla_get_labels() 1773 if (bos) { in nla_get_labels() [all …]
|
A D | internal.h | 15 u8 bos; member 183 result.bos = (entry & MPLS_LS_S_MASK) >> MPLS_LS_S_SHIFT; in mpls_entry_decode()
|
/linux/drivers/gpu/drm/msm/adreno/ |
A D | adreno_gpu.c | 574 for (i = 0; state->bos && i < state->nr_bos; i++) in adreno_gpu_state_destroy() 575 kvfree(state->bos[i].data); in adreno_gpu_state_destroy() 577 kfree(state->bos); in adreno_gpu_state_destroy() 720 if (state->bos) { in adreno_show() 725 state->bos[i].iova); in adreno_show() 726 drm_printf(p, " size: %zd\n", state->bos[i].size); in adreno_show() 728 adreno_show_object(p, &state->bos[i].data, in adreno_show() 729 state->bos[i].size, &state->bos[i].encoded); in adreno_show()
|
/linux/drivers/usb/gadget/ |
A D | composite.c | 667 struct usb_bos_descriptor *bos = cdev->req->buf; in bos_desc() local 670 bos->bLength = USB_DT_BOS_SIZE; in bos_desc() 671 bos->bDescriptorType = USB_DT_BOS; in bos_desc() 673 bos->wTotalLength = cpu_to_le16(USB_DT_BOS_SIZE); in bos_desc() 674 bos->bNumDeviceCaps = 0; in bos_desc() 703 usb_ext = cdev->req->buf + le16_to_cpu(bos->wTotalLength); in bos_desc() 704 bos->bNumDeviceCaps++; in bos_desc() 705 le16_add_cpu(&bos->wTotalLength, USB_DT_USB_EXT_CAP_SIZE); in bos_desc() 720 bos->bNumDeviceCaps++; in bos_desc() 752 bos->bNumDeviceCaps++; in bos_desc() [all …]
|
/linux/drivers/usb/host/ |
A D | xhci-hub.c | 38 struct usb_bos_descriptor *bos; in xhci_create_usb3x_bos_desc() local 52 bos = (struct usb_bos_descriptor *)buf; in xhci_create_usb3x_bos_desc() 53 bos->bLength = USB_DT_BOS_SIZE; in xhci_create_usb3x_bos_desc() 54 bos->bDescriptorType = USB_DT_BOS; in xhci_create_usb3x_bos_desc() 55 bos->wTotalLength = cpu_to_le16(USB_DT_BOS_SIZE + in xhci_create_usb3x_bos_desc() 57 bos->bNumDeviceCaps = 1; in xhci_create_usb3x_bos_desc() 91 bos->bNumDeviceCaps++; in xhci_create_usb3x_bos_desc() 92 bos->wTotalLength = cpu_to_le16(USB_DT_BOS_SIZE + in xhci_create_usb3x_bos_desc() 121 if (wLength < le16_to_cpu(bos->wTotalLength)) in xhci_create_usb3x_bos_desc() 125 return le16_to_cpu(bos->wTotalLength); in xhci_create_usb3x_bos_desc() [all …]
|
/linux/drivers/gpu/drm/msm/disp/dpu1/ |
A D | dpu_formats.h | 49 struct drm_gem_object **bos);
|
A D | dpu_formats.c | 941 struct drm_gem_object **bos) in dpu_format_check_modified_format() argument 949 if (!msm_fmt || !cmd || !bos) { in dpu_format_check_modified_format() 965 if (!bos[i]) { in dpu_format_check_modified_format() 969 if ((i == 0) || (bos[i] != bos[0])) in dpu_format_check_modified_format() 970 bos_total_size += bos[i]->size; in dpu_format_check_modified_format()
|