| /linux/drivers/gpu/drm/msm/ |
| H A D | msm_gem_submit.c | 42 sz = struct_size(submit, bos, nr_bos) + in submit_create() 71 submit->cmd = (void *)&submit->bos[nr_bos]; in submit_create() 139 u64_to_user_ptr(args->bos + (i * sizeof(submit_bo))); in submit_lookup_objects() 144 submit->bos[i].flags = 0; in submit_lookup_objects() 162 submit->bos[i].handle = submit_bo.handle; in submit_lookup_objects() 163 submit->bos[i].flags = submit_bo.flags; in submit_lookup_objects() 174 obj = idr_find(&file->object_idr, submit->bos[i].handle); in submit_lookup_objects() 176 ret = SUBMIT_ERROR(EINVAL, submit, "invalid handle %u at index %u\n", submit->bos[i].handle, i); in submit_lookup_objects() 182 submit->bos[i].obj = obj; in submit_lookup_objects() 315 struct drm_gem_object *obj = submit->bos[i].obj; in submit_lock_objects() [all …]
|
| H A D | msm_fb.c | 34 const struct drm_mode_fb_cmd2 *mode_cmd, struct drm_gem_object **bos); 146 struct drm_gem_object *bos[4] = {0}; in msm_framebuffer_create() local 151 bos[i] = drm_gem_object_lookup(file, mode_cmd->handles[i]); in msm_framebuffer_create() 152 if (!bos[i]) { in msm_framebuffer_create() 158 fb = msm_framebuffer_init(dev, info, mode_cmd, bos); in msm_framebuffer_create() 168 drm_gem_object_put(bos[i]); in msm_framebuffer_create() 174 const struct drm_mode_fb_cmd2 *mode_cmd, struct drm_gem_object **bos) in msm_framebuffer_init() argument 221 if (bos[i]->size < min_size) { in msm_framebuffer_init() 226 msm_fb->base.obj[i] = bos[i]; in msm_framebuffer_init()
|
| H A D | msm_gpu.c | 224 struct msm_gpu_state_bo *state_bo = &state->bos[state->nr_bos]; in msm_gpu_crashstate_get_bo() 287 state->bos = kcalloc(cnt, sizeof(struct msm_gpu_state_bo), GFP_KERNEL); in crashstate_get_bos() 289 if (state->bos) in crashstate_get_bos() 303 state->bos = kcalloc(submit->nr_bos, in crashstate_get_bos() 306 for (int i = 0; state->bos && i < submit->nr_bos; i++) { in crashstate_get_bos() 307 struct drm_gem_object *obj = submit->bos[i].obj; in crashstate_get_bos() 308 bool dump = rd_full || (submit->bos[i].flags & MSM_SUBMIT_BO_DUMP); in crashstate_get_bos() 311 msm_gpu_crashstate_get_bo(state, obj, submit->bos[i].iova, in crashstate_get_bos()
|
| /linux/drivers/gpu/drm/lima/ |
| H A D | lima_drv.c | 107 struct drm_lima_gem_submit_bo *bos; in lima_ioctl_gem_submit() local 125 bos = kvcalloc(args->nr_bos, sizeof(*submit.bos) + sizeof(*submit.lbos), GFP_KERNEL); in lima_ioctl_gem_submit() 126 if (!bos) in lima_ioctl_gem_submit() 129 size = args->nr_bos * sizeof(*submit.bos); in lima_ioctl_gem_submit() 130 if (copy_from_user(bos, u64_to_user_ptr(args->bos), size)) { in lima_ioctl_gem_submit() 158 submit.bos = bos; in lima_ioctl_gem_submit() 159 submit.lbos = (void *)bos + size; in lima_ioctl_gem_submit() 175 kvfree(bos); in lima_ioctl_gem_submit()
|
| H A D | lima_drv.h | 33 struct drm_lima_gem_submit_bo *bos; member
|
| /linux/include/net/ |
| H 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/ |
| H A D | mpls_iptunnel.c | 50 bool bos; in mpls_xmit() local 124 bos = true; in mpls_xmit() 127 ttl, 0, bos); in mpls_xmit() 128 bos = false; in mpls_xmit()
|
| H A D | af_mpls.c | 202 if (!dec.bos) in mpls_multipath_hash() 443 if (unlikely(!new_header_size && dec.bos)) { in mpls_forward() 448 bool bos; in mpls_forward() 454 bos = dec.bos; in mpls_forward() 457 dec.ttl, 0, bos); in mpls_forward() 458 bos = false; in mpls_forward() 1736 bool bos; in nla_get_labels() 1743 bos = true; in nla_get_labels() 1745 nla_label[i] = mpls_entry_encode(label[i], 0, 0, bos); in nla_get_labels() 440 bool bos; mpls_forward() local 1691 bool bos; nla_put_labels() local 1714 bool bos; nla_get_labels() local 2424 bool bos; mpls_getroute() local [all...] |
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/ |
| H A D | mpls.c | 32 mpls_info->bos = act->mpls_push.bos; in copy_mpls_info()
|
| /linux/drivers/gpu/drm/msm/adreno/ |
| H A D | adreno_gpu.c | 825 for (i = 0; state->bos && i < state->nr_bos; i++) in adreno_gpu_state_destroy() 826 kvfree(state->bos[i].data); in adreno_gpu_state_destroy() 829 kfree(state->bos); in adreno_gpu_state_destroy() 996 if (state->bos) { in adreno_show() 1001 state->bos[i].iova); in adreno_show() 1002 drm_printf(p, " size: %zd\n", state->bos[i].size); in adreno_show() 1003 drm_printf(p, " flags: 0x%x\n", state->bos[i].flags); in adreno_show() 1004 drm_printf(p, " name: %-32s\n", state->bos[i].name); in adreno_show() 1006 adreno_show_object(p, &state->bos[i].data, in adreno_show() 1007 state->bos[i].size, &state->bos[i].encoded); in adreno_show()
|
| /linux/drivers/gpu/drm/ttm/tests/ |
| H A D | ttm_bo_validate_test.c | 772 struct ttm_buffer_object *bos, *bo_val; in ttm_bo_validate_happy_evict() local 784 bos = kunit_kmalloc_array(test, bo_no, sizeof(*bos), GFP_KERNEL); in ttm_bo_validate_happy_evict() 785 KUNIT_ASSERT_NOT_NULL(test, bos); in ttm_bo_validate_happy_evict() 787 memset(bos, 0, sizeof(*bos) * bo_no); in ttm_bo_validate_happy_evict() 789 drm_gem_private_object_init(priv->drm, &bos[i].base, bo_sizes[i]); in ttm_bo_validate_happy_evict() 790 err = ttm_bo_init_reserved(priv->ttm_dev, &bos[i], bo_type, placement, in ttm_bo_validate_happy_evict() 793 dma_resv_unlock(bos[i].base.resv); in ttm_bo_validate_happy_evict() 804 KUNIT_EXPECT_EQ(test, bos[0].resource->mem_type, mem_type_evict); in ttm_bo_validate_happy_evict() 805 KUNIT_EXPECT_TRUE(test, bos[0].ttm->page_flags & TTM_TT_FLAG_ZERO_ALLOC); in ttm_bo_validate_happy_evict() 806 KUNIT_EXPECT_TRUE(test, bos[0].ttm->page_flags & TTM_TT_FLAG_PRIV_POPULATED); in ttm_bo_validate_happy_evict() [all …]
|
| /linux/drivers/gpu/drm/etnaviv/ |
| H A D | etnaviv_dump.c | 146 obj = submit->bos[i].obj; in etnaviv_core_dump() 205 obj = submit->bos[i].obj; in etnaviv_core_dump() 206 vram = submit->bos[i].mapping; in etnaviv_core_dump()
|
| H A D | etnaviv_gem.h | 108 struct etnaviv_gem_submit_bo bos[]; member
|
| /linux/drivers/usb/gadget/ |
| H A D | composite.c | 729 struct usb_bos_descriptor *bos = cdev->req->buf; in bos_desc() local 732 bos->bLength = USB_DT_BOS_SIZE; in bos_desc() 733 bos->bDescriptorType = USB_DT_BOS; in bos_desc() 735 bos->wTotalLength = cpu_to_le16(USB_DT_BOS_SIZE); in bos_desc() 736 bos->bNumDeviceCaps = 0; in bos_desc() 766 usb_ext = cdev->req->buf + le16_to_cpu(bos->wTotalLength); in bos_desc() 767 bos->bNumDeviceCaps++; in bos_desc() 768 le16_add_cpu(&bos->wTotalLength, USB_DT_USB_EXT_CAP_SIZE); in bos_desc() 783 ss_cap = cdev->req->buf + le16_to_cpu(bos->wTotalLength); in bos_desc() 784 bos->bNumDeviceCaps++; in bos_desc() [all …]
|
| /linux/drivers/usb/core/ |
| H A D | hub.h | 162 hdev->bos && hdev->bos->ssp_cap); in hub_is_superspeedplus()
|
| H A D | hub.c | 176 if (!udev->bos) in usb_device_supports_lpm() 183 if (udev->bos->ext_cap && in usb_device_supports_lpm() 185 le32_to_cpu(udev->bos->ext_cap->bmAttributes))) in usb_device_supports_lpm() 195 if (!udev->bos->ss_cap) { in usb_device_supports_lpm() 200 if (udev->bos->ss_cap->bU1devExitLat == 0 && in usb_device_supports_lpm() 201 udev->bos->ss_cap->bU2DevExitLat == 0) { in usb_device_supports_lpm() 350 if (!udev->bos) in usb_set_lpm_parameters() 360 udev_u1_del = udev->bos->ss_cap->bU1devExitLat; in usb_set_lpm_parameters() 361 udev_u2_del = le16_to_cpu(udev->bos->ss_cap->bU2DevExitLat); in usb_set_lpm_parameters() 362 hub_u1_del = udev->parent->bos->ss_cap->bU1devExitLat; in usb_set_lpm_parameters() [all …]
|
| H A D | sysfs.c | 902 struct usb_host_bos *bos = udev->bos; in bos_descriptors_read() local 906 if (bos) { in bos_descriptors_read() 907 desc = bos->desc; in bos_descriptors_read() 940 if (udev->bos == NULL) in dev_bin_attrs_are_visible()
|
| /linux/drivers/usb/host/ |
| H A D | xhci-hub.c | 39 struct usb_bos_descriptor *bos; in xhci_create_usb3x_bos_desc() local 53 bos = (struct usb_bos_descriptor *)buf; in xhci_create_usb3x_bos_desc() 54 bos->bLength = USB_DT_BOS_SIZE; in xhci_create_usb3x_bos_desc() 55 bos->bDescriptorType = USB_DT_BOS; in xhci_create_usb3x_bos_desc() 56 bos->wTotalLength = cpu_to_le16(USB_DT_BOS_SIZE + in xhci_create_usb3x_bos_desc() 58 bos->bNumDeviceCaps = 1; in xhci_create_usb3x_bos_desc() 92 bos->bNumDeviceCaps++; in xhci_create_usb3x_bos_desc() 93 bos->wTotalLength = cpu_to_le16(USB_DT_BOS_SIZE + in xhci_create_usb3x_bos_desc() 122 if (wLength < le16_to_cpu(bos->wTotalLength)) in xhci_create_usb3x_bos_desc() 126 return le16_to_cpu(bos->wTotalLength); in xhci_create_usb3x_bos_desc() [all …]
|
| /linux/drivers/gpu/drm/omapdrm/ |
| H A D | omap_fb.h | 28 const struct drm_mode_fb_cmd2 *mode_cmd, struct drm_gem_object **bos);
|
| /linux/drivers/gpu/drm/xe/tests/ |
| H A D | xe_bo.c | 449 LIST_HEAD(bos); in shrink_test_run_device() 543 list_add_tail(&link->link, &bos); in shrink_test_run_device() 560 list_for_each_entry_safe(link, next, &bos, link) { in shrink_test_run_device()
|
| /linux/include/uapi/drm/ |
| H A D | lima_drm.h | 121 __u64 bos; /* in, array of drm_lima_gem_submit_bo */ member
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
| H A D | tc_tun_mplsoudp.c | 41 *mpls = mpls_entry_encode(mpls_info->label, mpls_info->ttl, mpls_info->tc, mpls_info->bos); in generate_ip_tun_hdr()
|
| /linux/drivers/usb/misc/ |
| H A D | usbtest.c | 899 struct usb_bos_descriptor *bos = NULL; in ch9_postconfig() local 905 sizeof(*udev->bos->desc)); in ch9_postconfig() 906 if (retval != sizeof(*udev->bos->desc)) { in ch9_postconfig() 911 bos = (struct usb_bos_descriptor *)dev->buf; in ch9_postconfig() 912 total = le16_to_cpu(bos->wTotalLength); in ch9_postconfig() 913 num = bos->bNumDeviceCaps; in ch9_postconfig() 930 length = sizeof(*udev->bos->desc); in ch9_postconfig() 1356 if (udev->bos) in test_ctrl_queue() 1357 len = le16_to_cpu(udev->bos->desc->wTotalLength); in test_ctrl_queue()
|
| /linux/tools/testing/selftests/net/forwarding/ |
| H A D | tc_flower.sh | 382 local bos=$3 388 $((((label & 0xf) << 4) + (tc << 1) + bos)) \ 560 flower $tcflags mpls lse depth 1 bos 0 action continue 570 flower $tcflags mpls lse depth 2 bos 1 action continue
|
| /linux/net/sched/ |
| H A D | act_mpls.c | 395 entry->mpls_push.bos = tcf_mpls_bos(act); in tcf_mpls_offload_act_setup() 406 entry->mpls_mangle.bos = tcf_mpls_bos(act); in tcf_mpls_offload_act_setup()
|