Home
last modified time | relevance | path

Searched refs:pdev (Results 1 – 25 of 36) sorted by relevance

12

/third_party/ltp/testcases/kernel/device-drivers/usb/tusb/
Dtusb.c349 struct pci_dev *pdev = in test_find_hcd() local
352 ltp_usb.pdev = pdev; in test_find_hcd()
356 pdev = pci_find_class(PCI_CLASS_SERIAL_USB << 8, NULL); in test_find_hcd()
357 if (pdev) { in test_find_hcd()
359 printk("tusb: Slot number: %d\n", pdev->devfn); in test_find_hcd()
361 memcpy(ltp_usb.pdev, pdev, sizeof(struct pci_dev)); in test_find_hcd()
363 if (pdev->driver->id_table) in test_find_hcd()
388 struct pci_dev *pdev = ltp_usb.pdev; in test_hcd_probe() local
391 if (!pdev) { in test_hcd_probe()
396 id = (struct pci_device_id *)pdev->driver->id_table; in test_hcd_probe()
[all …]
Dst_tusb.h60 struct pci_dev *pdev; /* pci is typical */ member
102 struct pci_dev *pdev; member
/third_party/mesa3d/src/panfrost/vulkan/
Dpanvk_sync.c37 const struct panfrost_device *pdev = &device->physical_device->pdev; in sync_create() local
43 int ret = drmIoctl(pdev->fd, DRM_IOCTL_SYNCOBJ_CREATE, &create); in sync_create()
56 const struct panfrost_device *pdev = &device->physical_device->pdev; in sync_set_temporary() local
60 drmIoctl(pdev->fd, DRM_IOCTL_SYNCOBJ_DESTROY, &destroy); in sync_set_temporary()
69 const struct panfrost_device *pdev = &device->physical_device->pdev; in sync_destroy() local
76 drmIoctl(pdev->fd, DRM_IOCTL_SYNCOBJ_DESTROY, &destroy); in sync_destroy()
83 const struct panfrost_device *pdev = &device->physical_device->pdev; in sync_import() local
90 ret = drmIoctl(pdev->fd, DRM_IOCTL_SYNCOBJ_FD_TO_HANDLE, &handle); in sync_import()
96 drmIoctl(pdev->fd, DRM_IOCTL_SYNCOBJ_DESTROY, &destroy); in sync_import()
108 ret = drmIoctl(pdev->fd, DRM_IOCTL_SYNCOBJ_CREATE, &create); in sync_import()
[all …]
Dpanvk_vX_device.c45 const struct panfrost_device *pdev = &dev->physical_device->pdev; in panvk_queue_submit_batch() local
79 ret = drmIoctl(pdev->fd, DRM_IOCTL_PANFROST_SUBMIT, &submit); in panvk_queue_submit_batch()
83 ret = drmSyncobjWait(pdev->fd, &submit.out_sync, 1, INT64_MAX, 0, NULL); in panvk_queue_submit_batch()
88 GENX(pandecode_jc)(batch->scoreboard.first_job, pdev->gpu_id); in panvk_queue_submit_batch()
108 ret = drmIoctl(pdev->fd, DRM_IOCTL_PANFROST_SUBMIT, &submit); in panvk_queue_submit_batch()
111 ret = drmSyncobjWait(pdev->fd, &submit.out_sync, 1, INT64_MAX, 0, NULL); in panvk_queue_submit_batch()
116 GENX(pandecode_jc)(batch->fragment_job, pdev->gpu_id); in panvk_queue_submit_batch()
128 const struct panfrost_device *pdev = &queue->device->physical_device->pdev; in panvk_queue_transfer_sync() local
137 ret = drmIoctl(pdev->fd, DRM_IOCTL_SYNCOBJ_HANDLE_TO_FD, &handle); in panvk_queue_transfer_sync()
142 ret = drmIoctl(pdev->fd, DRM_IOCTL_SYNCOBJ_FD_TO_HANDLE, &handle); in panvk_queue_transfer_sync()
[all …]
Dpanvk_device.c210 panvk_arch_dispatch(device->pdev.arch, meta_cleanup, device); in panvk_physical_device_finish()
211 panfrost_close_device(&device->pdev); in panvk_physical_device_finish()
311 device->pdev.debug |= PAN_DBG_TRACE; in panvk_physical_device_init()
313 device->pdev.debug |= PAN_DBG_NO_CACHE; in panvk_physical_device_init()
314 panfrost_open_device(NULL, fd, &device->pdev); in panvk_physical_device_init()
317 if (device->pdev.quirks & MIDGARD_SFBD) { in panvk_physical_device_init()
320 panfrost_model_name(device->pdev.gpu_id)); in panvk_physical_device_init()
324 panvk_arch_dispatch(device->pdev.arch, meta_init, device); in panvk_physical_device_init()
327 sprintf(device->name, "%s", panfrost_model_name(device->pdev.gpu_id)); in panvk_physical_device_init()
329 if (panvk_device_get_cache_uuid(device->pdev.gpu_id, device->cache_uuid)) { in panvk_physical_device_init()
[all …]
Dpanvk_vX_meta_copy.c33 panvk_meta_copy_img_emit_texture(struct panfrost_device *pdev, in panvk_meta_copy_img_emit_texture() argument
46 GENX(panfrost_new_texture)(pdev, view, texture.cpu, &surfaces); in panvk_meta_copy_img_emit_texture()
59 GENX(panfrost_new_texture)(pdev, view, texture.cpu, &surfaces); in panvk_meta_copy_img_emit_texture()
68 panvk_meta_copy_img_emit_sampler(struct panfrost_device *pdev, in panvk_meta_copy_img_emit_sampler() argument
241 panvk_meta_copy_to_img_emit_rsd(struct panfrost_device *pdev, in panvk_meta_copy_to_img_emit_rsd() argument
311 panfrost_format_to_bifrost_blend(pdev, fmt, false); in panvk_meta_copy_to_img_emit_rsd()
333 panvk_meta_copy_emit_ubo(struct panfrost_device *pdev, in panvk_meta_copy_emit_ubo() argument
348 panvk_meta_copy_emit_push_constants(struct panfrost_device *pdev, in panvk_meta_copy_emit_push_constants() argument
369 panvk_meta_copy_to_buf_emit_rsd(struct panfrost_device *pdev, in panvk_meta_copy_to_buf_emit_rsd() argument
391 panvk_meta_copy_img2img_shader(struct panfrost_device *pdev, in panvk_meta_copy_img2img_shader() argument
[all …]
Dpanvk_image.c73 const struct panfrost_device *pdev = &device->physical_device->pdev; in panvk_image_create() local
96 pan_image_layout_init(pdev, &image->pimage.layout, modifier, in panvk_image_create()
127 const struct panfrost_device *pdev = &device->physical_device->pdev; in panvk_image_select_mod() local
186 if (!pdev->has_afbc) in panvk_image_select_mod()
190 if (!panfrost_format_supports_afbc(pdev, fmt)) in panvk_image_select_mod()
196 if (pCreateInfo->imageType == VK_IMAGE_TYPE_3D && pdev->arch < 7) in panvk_image_select_mod()
Dpanvk_vX_meta_blit.c34 struct panfrost_device *pdev = &cmdbuf->device->physical_device->pdev; in panvk_meta_blit() local
105 GENX(pan_blit_ctx_init)(pdev, blitinfo, &cmdbuf->desc_pool.base, &ctx); in panvk_meta_blit()
219 panvk_pool_init(&dev->meta.blitter.bin_pool, &dev->pdev, NULL, in panvk_per_arch()
222 panvk_pool_init(&dev->meta.blitter.desc_pool, &dev->pdev, NULL, in panvk_per_arch()
225 pan_blend_shaders_init(&dev->pdev); in panvk_per_arch()
226 GENX(pan_blitter_init)(&dev->pdev, &dev->meta.blitter.bin_pool.base, in panvk_per_arch()
233 GENX(pan_blitter_cleanup)(&dev->pdev); in panvk_per_arch()
234 pan_blend_shaders_cleanup(&dev->pdev); in panvk_per_arch()
Dpanvk_vX_meta_clear.c35 panvk_meta_clear_color_attachment_shader(struct panfrost_device *pdev, in panvk_meta_clear_color_attachment_shader() argument
63 .gpu_id = pdev->gpu_id, in panvk_meta_clear_color_attachment_shader()
87 panvk_meta_clear_zs_attachment_shader(struct panfrost_device *pdev, in panvk_meta_clear_zs_attachment_shader() argument
131 .gpu_id = pdev->gpu_id, in panvk_meta_clear_zs_attachment_shader()
155 panvk_meta_clear_attachments_emit_rsd(struct panfrost_device *pdev, in panvk_meta_clear_attachments_emit_rsd() argument
247 panfrost_format_to_bifrost_blend(pdev, format, false); in panvk_meta_clear_attachments_emit_rsd()
261 panvk_meta_clear_attachment_emit_push_constants(struct panfrost_device *pdev, in panvk_meta_clear_attachment_emit_push_constants() argument
282 panvk_meta_clear_attachment_emit_ubo(struct panfrost_device *pdev, in panvk_meta_clear_attachment_emit_ubo() argument
398 struct panfrost_device *pdev = &dev->pdev; in panvk_meta_clear_attachment() local
455 panvk_meta_clear_attachments_emit_rsd(pdev, in panvk_meta_clear_attachment()
[all …]
Dpanvk_vX_image.c135 struct panfrost_device *pdev = &device->physical_device->pdev; in panvk_per_arch() local
145 view->bo = panfrost_bo_create(pdev, bo_size, 0, "Texture descriptor"); in panvk_per_arch()
155 GENX(panfrost_new_texture)(pdev, &view->pview, tex_desc, &surf_descs); in panvk_per_arch()
Dpanvk_vX_cs.c106 const struct panfrost_device *pdev = &dev->physical_device->pdev; in panvk_varying_hw_format() local
129 return pdev->formats[varyings->varying[loc].format].hw; in panvk_varying_hw_format()
314 const struct panfrost_device *pdev = &dev->physical_device->pdev; in panvk_emit_attrib() local
320 cfg.format = pdev->formats[attribs->attrib[idx].format].hw; in panvk_emit_attrib()
619 const struct panfrost_device *pdev = &dev->physical_device->pdev; in panvk_per_arch() local
647 panfrost_format_to_bifrost_blend(pdev, rts->format, dithered); in panvk_per_arch()
830 const struct panfrost_device *pdev = &dev->physical_device->pdev; in panvk_per_arch()
833 cfg.size = pdev->tiler_heap->size; in panvk_per_arch()
834 cfg.base = pdev->tiler_heap->ptr.gpu; in panvk_per_arch()
835 cfg.bottom = pdev->tiler_heap->ptr.gpu; in panvk_per_arch()
[all …]
Dpanvk_vX_meta.c54 panvk_pool_init(&dev->meta.bin_pool, &dev->pdev, NULL, PAN_BO_EXECUTE, in panvk_per_arch()
56 panvk_pool_init(&dev->meta.desc_pool, &dev->pdev, NULL, 0, in panvk_per_arch()
Dpanvk_vX_shader.c312 panvk_lower_blend(struct panfrost_device *pdev, in panvk_lower_blend() argument
331 if (!panvk_per_arch(blend_needs_lowering)(pdev, blend_state, rt)) in panvk_lower_blend()
380 GENX(pan_blend_get_internal_desc)(pdev, fmt, rt, 32, false) >> 32; in panvk_lower_blend()
447 struct panfrost_device *pdev = &dev->physical_device->pdev; in panvk_per_arch() local
470 .gpu_id = pdev->gpu_id, in panvk_per_arch()
510 panvk_lower_blend(pdev, nir, &inputs, blend_state, static_blend_constants); in panvk_per_arch()
Dpanvk_vX_cmd_buffer.c62 struct panfrost_device *pdev = &cmdbuf->device->physical_device->pdev; in panvk_per_arch() local
69 panfrost_tiler_get_polygon_list_size(pdev, width, height, has_draws); in panvk_per_arch()
75 bool init_polygon_list = !has_draws && (pdev->quirks & MIDGARD_NO_HIER_TILING); in panvk_per_arch()
77 panfrost_bo_create(pdev, size, in panvk_per_arch()
152 struct panfrost_device *pdev = &cmdbuf->device->physical_device->pdev; in panvk_per_arch() local
206 GENX(pan_emit_fbd)(pdev, &cmdbuf->state.fb.info, &batch->tlsinfo, in panvk_per_arch()
1036 panvk_pool_init(&cmdbuf->desc_pool, &device->physical_device->pdev, in panvk_create_cmdbuf()
1039 panvk_pool_init(&cmdbuf->tls_pool, &device->physical_device->pdev, in panvk_create_cmdbuf()
1042 panvk_pool_init(&cmdbuf->varying_pool, &device->physical_device->pdev, in panvk_create_cmdbuf()
Dpanvk_formats.c43 struct panfrost_device *pdev = &physical_device->pdev; in get_format_properties() local
46 const struct panfrost_format fmt = pdev->formats[pfmt]; in get_format_properties()
Dpanvk_vX_pipeline.c157 panfrost_bo_create(&builder->device->physical_device->pdev, in panvk_pipeline_builder_upload_shaders()
194 struct panfrost_device *pdev = in panvk_pipeline_builder_alloc_static_state_bo() local
195 &builder->device->physical_device->pdev; in panvk_pipeline_builder_alloc_static_state_bo()
251 panfrost_bo_create(pdev, bo_size, 0, "Pipeline descriptors"); in panvk_pipeline_builder_alloc_static_state_bo()
575 struct panfrost_device *pdev = &builder->device->physical_device->pdev; in panvk_pipeline_builder_parse_color_blend() local
611 panvk_per_arch(blend_needs_lowering)(pdev, &pipeline->blend.state, i) ? in panvk_pipeline_builder_parse_color_blend()
/third_party/eudev/src/udev/
Dudev-builtin-input_id.c91 struct udev_device *pdev, const char* attr, in get_cap_mask() argument
100 v = udev_device_get_sysattr_value(pdev, attr); in get_cap_mask()
316 struct udev_device *pdev; in builtin_input_id() local
328 pdev = dev; in builtin_input_id()
329 while (pdev != NULL && udev_device_get_sysattr_value(pdev, "capabilities/ev") == NULL) in builtin_input_id()
330 pdev = udev_device_get_parent_with_subsystem_devtype(pdev, "input", NULL); in builtin_input_id()
332 if (pdev) { in builtin_input_id()
336 get_cap_mask(dev, pdev, "capabilities/ev", bitmask_ev, sizeof(bitmask_ev), test); in builtin_input_id()
337 get_cap_mask(dev, pdev, "capabilities/abs", bitmask_abs, sizeof(bitmask_abs), test); in builtin_input_id()
338 get_cap_mask(dev, pdev, "capabilities/rel", bitmask_rel, sizeof(bitmask_rel), test); in builtin_input_id()
[all …]
Dudev-builtin-keyboard.c154 struct udev_device *pdev; in set_trackpoint_sensitivity() local
159 pdev = udev_device_get_parent_with_subsystem_devtype(dev, "serio", NULL); in set_trackpoint_sensitivity()
160 if (!pdev) { in set_trackpoint_sensitivity()
173 r = udev_device_set_sysattr_value(pdev, "sensitivity", val_s); in set_trackpoint_sensitivity()
175 …or_errno(r, "Failed to write 'sensitivity' attribute for '%s': %m", udev_device_get_devnode(pdev)); in set_trackpoint_sensitivity()
/third_party/mesa3d/src/freedreno/vulkan/
Dtu_legacy.c17 tu_GetPhysicalDeviceQueueFamilyProperties(VkPhysicalDevice pdev, in tu_GetPhysicalDeviceQueueFamilyProperties() argument
22 return tu_GetPhysicalDeviceQueueFamilyProperties2(pdev, count, NULL); in tu_GetPhysicalDeviceQueueFamilyProperties()
29 tu_GetPhysicalDeviceQueueFamilyProperties2(pdev, count, props2); in tu_GetPhysicalDeviceQueueFamilyProperties()
35 tu_GetPhysicalDeviceSparseImageFormatProperties(VkPhysicalDevice pdev, in tu_GetPhysicalDeviceSparseImageFormatProperties() argument
54 return tu_GetPhysicalDeviceSparseImageFormatProperties2(pdev, &info, count, NULL); in tu_GetPhysicalDeviceSparseImageFormatProperties()
61 tu_GetPhysicalDeviceSparseImageFormatProperties2(pdev, &info, count, props2); in tu_GetPhysicalDeviceSparseImageFormatProperties()
/third_party/ltp/testcases/kernel/device-drivers/agp/kernel_space/
Dtagp.c579 struct pci_dev *pdev; // = (struct pci_dev *)kmalloc(sizeof(struct pci_dev), GFP_KERNEL); in test_pci_find_device() local
582 pdev = pci_find_device(PCI_VENDOR_ID_ATI, PCI_ANY_ID, NULL); in test_pci_find_device()
584 if (pdev) { in test_pci_find_device()
589 cap_ptr = pci_find_capability(pdev, PCI_CAP_ID_AGP); in test_pci_find_device()
603 bridge->dev = pdev; in test_pci_find_device()
607 pci_read_config_dword(pdev, in test_pci_find_device()
611 pci_set_drvdata(pdev, bridge); in test_pci_find_device()
619 static int __init agp_test_probe(struct pci_dev *pdev, in agp_test_probe() argument
628 static void __devexit agp_test_remove(struct pci_dev *pdev) in agp_test_remove() argument
631 struct agp_bridge_data *bridge = pci_get_drvdata(pdev); in agp_test_remove()
/third_party/flutter/skia/third_party/externals/sdl/src/core/linux/
DSDL_udev.c287 static void get_caps(struct udev_device *dev, struct udev_device *pdev, const char *attr, unsigned … in get_caps() argument
296 value = _this->udev_device_get_sysattr_value(pdev, attr); in get_caps()
321 struct udev_device *pdev; in guess_device_class() local
330 pdev = dev; in guess_device_class()
331 while (pdev && !_this->udev_device_get_sysattr_value(pdev, "capabilities/ev")) { in guess_device_class()
332 pdev = _this->udev_device_get_parent_with_subsystem_devtype(pdev, "input", NULL); in guess_device_class()
334 if (!pdev) { in guess_device_class()
338 get_caps(dev, pdev, "capabilities/ev", bitmask_ev, SDL_arraysize(bitmask_ev)); in guess_device_class()
339 get_caps(dev, pdev, "capabilities/abs", bitmask_abs, SDL_arraysize(bitmask_abs)); in guess_device_class()
340 get_caps(dev, pdev, "capabilities/rel", bitmask_rel, SDL_arraysize(bitmask_rel)); in guess_device_class()
[all …]
/third_party/libdrm/nouveau/
Dnouveau.c357 nouveau_device_open_existing(struct nouveau_device **pdev, int close, int fd, in nouveau_device_open_existing() argument
365 void *data, uint32_t size, struct nouveau_device **pdev) in nouveau_device_new() argument
385 dev = *pdev = &nvdev->base; in nouveau_device_new()
453 nouveau_device_del(pdev); in nouveau_device_new()
458 nouveau_device_wrap(int fd, int close, struct nouveau_device **pdev) in nouveau_device_wrap() argument
472 }, sizeof(struct nv_device_v0), pdev); in nouveau_device_wrap()
478 nvdev = nouveau_device(*pdev); in nouveau_device_wrap()
486 nouveau_device_open(const char *busid, struct nouveau_device **pdev) in nouveau_device_open() argument
490 ret = nouveau_device_wrap(fd, 1, pdev); in nouveau_device_open()
498 nouveau_device_del(struct nouveau_device **pdev) in nouveau_device_del() argument
[all …]
/third_party/mesa3d/src/gallium/drivers/zink/
Dzink_screen.c1166 screen->pdev = pdevs[i]; in choose_pdev()
1174 screen->pdev = pdevs[i]; in choose_pdev()
1197 vkGetPhysicalDeviceQueueFamilyProperties(screen->pdev, &num_queues, NULL); in update_queue_props()
1201 vkGetPhysicalDeviceQueueFamilyProperties(screen->pdev, &num_queues, props); in update_queue_props()
1263 VKSCR(GetPhysicalDeviceFormatProperties)(screen->pdev, format, &props); in zink_is_depth_format_supported()
1372 VKSCR(GetPhysicalDeviceCalibrateableTimeDomainsEXT)(screen->pdev, &num_domains, NULL); in check_have_device_time()
1376 VKSCR(GetPhysicalDeviceCalibrateableTimeDomainsEXT)(screen->pdev, &num_domains, domains); in check_have_device_time()
1534 VKSCR(GetPhysicalDeviceFormatProperties2)(screen->pdev, format, &props); in populate_format_props()
1545 VKSCR(GetPhysicalDeviceFormatProperties)(screen->pdev, format, &screen->format_props[i]); in populate_format_props()
1703 VKSCR(GetPhysicalDeviceMemoryProperties2)(screen->pdev, &mem); in zink_query_memory_info()
[all …]
Dzink_screen.h119 VkPhysicalDevice pdev; member
/third_party/cef/tests/cefclient/browser/
Dosr_d3d11_win.cc291 Device::Device(ID3D11Device* pdev, ID3D11DeviceContext* pctx) in Device() argument
292 : device_(to_com_ptr(pdev)), ctx_(std::make_shared<Context>(pctx)) { in Device()
310 ID3D11Device* pdev = nullptr; in create() local
316 num_feature_levels, D3D11_SDK_VERSION, &pdev, &selected_level, &pctx); in create()
323 D3D11_SDK_VERSION, &pdev, &selected_level, &pctx); in create()
327 const auto dev = std::make_shared<Device>(pdev, pctx); in create()

12