Home
last modified time | relevance | path

Searched refs:pdev (Results 1 – 25 of 42) 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/microsoft/vulkan/
Ddzn_device.c92 dzn_physical_device_get_extensions(struct dzn_physical_device *pdev) in dzn_physical_device_get_extensions() argument
94 pdev->vk.supported_extensions = (struct vk_device_extension_table) { in dzn_physical_device_get_extensions()
137 dzn_physical_device_destroy(struct dzn_physical_device *pdev) in dzn_physical_device_destroy() argument
139 struct dzn_instance *instance = container_of(pdev->vk.instance, struct dzn_instance, vk); in dzn_physical_device_destroy()
141 list_del(&pdev->link); in dzn_physical_device_destroy()
143 if (pdev->dev) in dzn_physical_device_destroy()
144 ID3D12Device1_Release(pdev->dev); in dzn_physical_device_destroy()
146 if (pdev->adapter) in dzn_physical_device_destroy()
147 IUnknown_Release(pdev->adapter); in dzn_physical_device_destroy()
149 dzn_wsi_finish(pdev); in dzn_physical_device_destroy()
[all …]
Ddzn_image.c74 struct dzn_physical_device *pdev = in dzn_image_create() local
204 dzn_physical_device_get_format_support(pdev, pCreateInfo->format); in dzn_image_create()
599 const struct dzn_physical_device *pdev = in dzn_image_formats_are_compatible() local
613 if (pdev->options3.CastingFullyTypedFormatSupported) { in dzn_image_formats_are_compatible()
738 struct dzn_physical_device *pdev = in dzn_GetImageMemoryRequirements2() local
768 dzn_physical_device_get_mem_type_mask_for_resource(pdev, &image->desc), in dzn_GetImageMemoryRequirements2()
/third_party/mesa3d/src/panfrost/vulkan/
Dpanvk_vX_device.c47 const struct panfrost_device *pdev = &dev->physical_device->pdev; in panvk_queue_submit_batch() local
72 ret = drmIoctl(pdev->fd, DRM_IOCTL_PANFROST_SUBMIT, &submit); in panvk_queue_submit_batch()
76 ret = drmSyncobjWait(pdev->fd, &submit.out_sync, 1, INT64_MAX, 0, NULL); in panvk_queue_submit_batch()
81 GENX(pandecode_jc)(batch->scoreboard.first_job, pdev->gpu_id); in panvk_queue_submit_batch()
104 ret = drmIoctl(pdev->fd, DRM_IOCTL_PANFROST_SUBMIT, &submit); in panvk_queue_submit_batch()
107 ret = drmSyncobjWait(pdev->fd, &submit.out_sync, 1, INT64_MAX, 0, NULL); in panvk_queue_submit_batch()
112 GENX(pandecode_jc)(batch->fragment_job, pdev->gpu_id); in panvk_queue_submit_batch()
127 const struct panfrost_device *pdev = &queue->device->physical_device->pdev; in panvk_queue_transfer_sync() local
136 ret = drmIoctl(pdev->fd, DRM_IOCTL_SYNCOBJ_HANDLE_TO_FD, &handle); in panvk_queue_transfer_sync()
141 ret = drmIoctl(pdev->fd, DRM_IOCTL_SYNCOBJ_FD_TO_HANDLE, &handle); in panvk_queue_transfer_sync()
[all …]
Dpanvk_device.c223 panvk_arch_dispatch(device->pdev.arch, meta_cleanup, device); in panvk_physical_device_finish()
224 panfrost_close_device(&device->pdev); in panvk_physical_device_finish()
324 device->pdev.debug |= PAN_DBG_TRACE; in panvk_physical_device_init()
326 device->pdev.debug |= PAN_DBG_NO_CACHE; in panvk_physical_device_init()
327 panfrost_open_device(NULL, fd, &device->pdev); in panvk_physical_device_init()
330 if (device->pdev.arch <= 5) { in panvk_physical_device_init()
333 device->pdev.model->name); in panvk_physical_device_init()
337 panvk_arch_dispatch(device->pdev.arch, meta_init, device); in panvk_physical_device_init()
340 sprintf(device->name, "%s", device->pdev.model->name); in panvk_physical_device_init()
342 if (panvk_device_get_cache_uuid(device->pdev.gpu_id, device->cache_uuid)) { in panvk_physical_device_init()
[all …]
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()
203 panvk_pool_init(&dev->meta.blitter.bin_pool, &dev->pdev, NULL, in panvk_per_arch()
206 panvk_pool_init(&dev->meta.blitter.desc_pool, &dev->pdev, NULL, in panvk_per_arch()
209 pan_blend_shaders_init(&dev->pdev); in panvk_per_arch()
210 GENX(pan_blitter_init)(&dev->pdev, &dev->meta.blitter.bin_pool.base, in panvk_per_arch()
217 GENX(pan_blitter_cleanup)(&dev->pdev); in panvk_per_arch()
218 pan_blend_shaders_cleanup(&dev->pdev); in panvk_per_arch()
Dpanvk_vX_image.c119 struct panfrost_device *pdev = &device->physical_device->pdev; in panvk_per_arch() local
127 view->bo = panfrost_bo_create(pdev, bo_size, 0, "Texture descriptor"); in panvk_per_arch()
130 GENX(panfrost_new_texture)(pdev, &view->pview, &view->descs.tex, &view->bo->ptr); in panvk_per_arch()
190 struct panfrost_device *pdev = &device->physical_device->pdev; in panvk_per_arch() local
201 view->bo = panfrost_bo_create(pdev, bo_size, 0, "Texture descriptor"); in panvk_per_arch()
209 cfg.format = pdev->formats[view->fmt].hw; in panvk_per_arch()
Dpanvk_vX_meta_copy.c33 panvk_meta_copy_img_emit_texture(struct panfrost_device *pdev, in panvk_meta_copy_img_emit_texture() argument
45 GENX(panfrost_new_texture)(pdev, view, texture.cpu, &surfaces); in panvk_meta_copy_img_emit_texture()
51 panvk_meta_copy_img_emit_sampler(struct panfrost_device *pdev, in panvk_meta_copy_img_emit_sampler() argument
208 panvk_meta_copy_to_img_emit_rsd(struct panfrost_device *pdev, in panvk_meta_copy_to_img_emit_rsd() argument
270 panfrost_format_to_bifrost_blend(pdev, fmt, false); in panvk_meta_copy_to_img_emit_rsd()
289 panvk_meta_copy_to_buf_emit_rsd(struct panfrost_device *pdev, in panvk_meta_copy_to_buf_emit_rsd() argument
311 panvk_meta_copy_img2img_shader(struct panfrost_device *pdev, in panvk_meta_copy_img2img_shader() argument
447 .gpu_id = pdev->gpu_id, in panvk_meta_copy_img2img_shader()
579 struct panfrost_device *pdev = &cmdbuf->device->physical_device->pdev; in panvk_meta_copy_img2img() local
663 panvk_meta_copy_img_emit_texture(pdev, &cmdbuf->desc_pool.base, &srcview); in panvk_meta_copy_img2img()
[all …]
Dpanvk_vX_meta_clear.c35 panvk_meta_clear_color_attachment_shader(struct panfrost_device *pdev, in panvk_meta_clear_color_attachment_shader() argument
56 .gpu_id = pdev->gpu_id, in panvk_meta_clear_color_attachment_shader()
78 panvk_meta_clear_color_attachment_emit_rsd(struct panfrost_device *pdev, in panvk_meta_clear_color_attachment_emit_rsd() argument
118 panfrost_format_to_bifrost_blend(pdev, format, false); in panvk_meta_clear_color_attachment_emit_rsd()
127 panvk_meta_clear_zs_attachment_emit_rsd(struct panfrost_device *pdev, in panvk_meta_clear_zs_attachment_emit_rsd() argument
270 struct panfrost_device *pdev = &dev->pdev; in panvk_meta_clear_attachment() local
311 rsd = panvk_meta_clear_color_attachment_emit_rsd(pdev, in panvk_meta_clear_attachment()
317 rsd = panvk_meta_clear_zs_attachment_emit_rsd(pdev, in panvk_meta_clear_attachment()
513 &dev->pdev, in panvk_meta_clear_attachment_init()
520 &dev->pdev, in panvk_meta_clear_attachment_init()
[all …]
Dpanvk_vX_shader.c95 panvk_lower_blend(struct panfrost_device *pdev, in panvk_lower_blend() argument
111 if (!panvk_per_arch(blend_needs_lowering)(pdev, blend_state, rt)) in panvk_lower_blend()
159 GENX(pan_blend_get_internal_desc)(pdev, fmt, rt, 32, false) >> 32; in panvk_lower_blend()
229 struct panfrost_device *pdev = &dev->physical_device->pdev; in panvk_per_arch() local
269 .gpu_id = pdev->gpu_id, in panvk_per_arch()
357 panvk_lower_blend(pdev, nir, &inputs, blend_state, static_blend_constants); in panvk_per_arch()
Dpanvk_vX_cs.c71 const struct panfrost_device *pdev = &dev->physical_device->pdev; in panvk_varying_hw_format() local
90 return pdev->formats[varyings->varying[loc].format].hw; in panvk_varying_hw_format()
274 const struct panfrost_device *pdev = &dev->physical_device->pdev; in panvk_emit_attrib() local
286 cfg.format = pdev->formats[attribs->attrib[idx].format].hw; in panvk_emit_attrib()
624 const struct panfrost_device *pdev = &dev->physical_device->pdev; in panvk_per_arch() local
658 panfrost_format_to_bifrost_blend(pdev, rts->format, dithered); in panvk_per_arch()
814 const struct panfrost_device *pdev = &dev->physical_device->pdev; in panvk_per_arch() local
817 cfg.size = pdev->tiler_heap->size; in panvk_per_arch()
818 cfg.base = pdev->tiler_heap->ptr.gpu; in panvk_per_arch()
819 cfg.bottom = pdev->tiler_heap->ptr.gpu; in panvk_per_arch()
[all …]
Dpanvk_image.c103 const struct panfrost_device *pdev = &device->physical_device->pdev; in panvk_image_select_mod() local
162 if (!pdev->has_afbc) in panvk_image_select_mod()
166 if (!panfrost_format_supports_afbc(pdev, fmt)) in panvk_image_select_mod()
172 if (pCreateInfo->imageType == VK_IMAGE_TYPE_3D && pdev->arch < 7) in panvk_image_select_mod()
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_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_cmd_buffer.c104 struct panfrost_device *pdev = &cmdbuf->device->physical_device->pdev; in panvk_per_arch() local
120 pdev->thread_tls_alloc, in panvk_per_arch()
121 pdev->core_id_range); in panvk_per_arch()
137 GENX(pan_emit_fbd)(pdev, &cmdbuf->state.fb.info, &batch->tlsinfo, in panvk_per_arch()
1152 panvk_pool_init(&cmdbuf->desc_pool, &device->physical_device->pdev, in panvk_create_cmdbuf()
1155 panvk_pool_init(&cmdbuf->tls_pool, &device->physical_device->pdev, in panvk_create_cmdbuf()
1159 panvk_pool_init(&cmdbuf->varying_pool, &device->physical_device->pdev, in panvk_create_cmdbuf()
1331 const struct panfrost_device *pdev = in panvk_per_arch() local
1332 &cmdbuf->device->physical_device->pdev; in panvk_per_arch()
1381 pan_wls_mem_size(pdev, &dispatch.wg_count, batch->tlsinfo.wls.size); in panvk_per_arch()
Dpanvk_vX_descriptor_set.c308 set->desc_bo = panfrost_bo_create(&device->physical_device->pdev, in panvk_per_arch()
515 const struct panfrost_device *pdev = &dev->physical_device->pdev; in panvk_write_img_desc() local
522 set->img_fmts[img_idx] = pdev->formats[view->pview.format].hw; in panvk_write_img_desc()
554 const struct panfrost_device *pdev = &dev->physical_device->pdev; in panvk_write_img_buf_desc() local
561 set->img_fmts[img_idx] = pdev->formats[view->fmt].hw; in panvk_write_img_buf_desc()
Dpanvk_vX_pipeline.c167 panfrost_bo_create(&builder->device->physical_device->pdev, in panvk_pipeline_builder_upload_shaders()
204 struct panfrost_device *pdev = in panvk_pipeline_builder_alloc_static_state_bo() local
205 &builder->device->physical_device->pdev; in panvk_pipeline_builder_alloc_static_state_bo()
233 panfrost_bo_create(pdev, bo_size, 0, "Pipeline descriptors"); in panvk_pipeline_builder_alloc_static_state_bo()
539 struct panfrost_device *pdev = &builder->device->physical_device->pdev; in panvk_pipeline_builder_parse_color_blend() local
575 panvk_per_arch(blend_needs_lowering)(pdev, &pipeline->blend.state, i) ? in panvk_pipeline_builder_parse_color_blend()
/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/libdrm/nouveau/
Dnouveau.c371 nouveau_device_open_existing(struct nouveau_device **pdev, int close, int fd, in nouveau_device_open_existing() argument
379 void *data, uint32_t size, struct nouveau_device **pdev) in nouveau_device_new() argument
399 dev = *pdev = &nvdev->base; in nouveau_device_new()
467 nouveau_device_del(pdev); in nouveau_device_new()
472 nouveau_device_wrap(int fd, int close, struct nouveau_device **pdev) in nouveau_device_wrap() argument
486 }, sizeof(struct nv_device_v0), pdev); in nouveau_device_wrap()
492 nvdev = nouveau_device(*pdev); in nouveau_device_wrap()
500 nouveau_device_open(const char *busid, struct nouveau_device **pdev) in nouveau_device_open() argument
504 ret = nouveau_device_wrap(fd, 1, pdev); in nouveau_device_open()
512 nouveau_device_del(struct nouveau_device **pdev) in nouveau_device_del() argument
[all …]
/third_party/mesa3d/src/amd/vulkan/
Dradv_perfcounter.c213 CONSTANT(pdev->rad_info.num_simd_per_compute_unit * pdev->rad_info.num_cu)
214 #define CTR_NUM_CUS CONSTANT(pdev->rad_info.num_cu)
217 radv_query_perfcounter_descs(struct radv_physical_device *pdev, uint32_t *count, in radv_query_perfcounter_descs() argument
259 if (pdev->rad_info.gfx_level >= GFX10_3) { in radv_query_perfcounter_descs()
285 if (pdev->rad_info.gfx_level >= GFX10_3) { in radv_query_perfcounter_descs()
297 radv_init_perfcounter_descs(struct radv_physical_device *pdev) in radv_init_perfcounter_descs() argument
299 if (pdev->perfcounters) in radv_init_perfcounter_descs()
303 radv_query_perfcounter_descs(pdev, &count, NULL); in radv_init_perfcounter_descs()
309 radv_query_perfcounter_descs(pdev, &count, descs); in radv_init_perfcounter_descs()
310 pdev->num_perfcounters = count; in radv_init_perfcounter_descs()
[all …]
Dradv_image.c158 radv_are_formats_dcc_compatible(const struct radv_physical_device *pdev, const void *pNext, in radv_are_formats_dcc_compatible() argument
163 if (!radv_is_colorbuffer_format_supported(pdev, format, &blendable)) in radv_are_formats_dcc_compatible()
182 if (!radv_dcc_formats_compatible(pdev->rad_info.gfx_level, format, in radv_are_formats_dcc_compatible()
568 radv_image_get_plane_format(const struct radv_physical_device *pdev, const struct radv_image *image, in radv_image_get_plane_format() argument
571 if (pdev->emulate_etc2 && in radv_image_get_plane_format()
1594 radv_get_internal_plane_count(const struct radv_physical_device *pdev, VkFormat fmt) in radv_get_internal_plane_count() argument
1596 if (pdev->emulate_etc2 && vk_format_description(fmt)->layout == UTIL_FORMAT_LAYOUT_ETC) in radv_get_internal_plane_count()
1602 radv_image_reset_layout(const struct radv_physical_device *pdev, struct radv_image *image) in radv_image_reset_layout() argument
1611 unsigned plane_count = radv_get_internal_plane_count(pdev, image->vk.format); in radv_image_reset_layout()
1613 VkFormat format = radv_image_get_plane_format(pdev, image, i); in radv_image_reset_layout()
[all …]
/third_party/mesa3d/src/gallium/drivers/zink/
Dzink_screen.c1370 screen->pdev = pdevs[idx]; in choose_pdev()
1371 VKSCR(GetPhysicalDeviceProperties)(screen->pdev, &screen->info.props); in choose_pdev()
1393 VKSCR(GetPhysicalDeviceQueueFamilyProperties)(screen->pdev, &num_queues, NULL); in update_queue_props()
1397 VKSCR(GetPhysicalDeviceQueueFamilyProperties)(screen->pdev, &num_queues, props); in update_queue_props()
1473 VKSCR(GetPhysicalDeviceFormatProperties)(screen->pdev, format, &props); in zink_is_depth_format_supported()
1583 …VkResult result = VKSCR(GetPhysicalDeviceCalibrateableTimeDomainsEXT)(screen->pdev, &num_domains, … in check_have_device_time()
1590 … result = VKSCR(GetPhysicalDeviceCalibrateableTimeDomainsEXT)(screen->pdev, &num_domains, domains); in check_have_device_time()
1741 VKSCR(GetPhysicalDeviceFormatProperties2)(screen->pdev, format, &props); in populate_format_props()
1754 VKSCR(GetPhysicalDeviceFormatProperties)(screen->pdev, format, &screen->format_props[i]); in populate_format_props()
1757 VkResult ret = VKSCR(GetPhysicalDeviceImageFormatProperties)(screen->pdev, VK_FORMAT_D32_SFLOAT, in populate_format_props()
[all …]
/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()
/third_party/mesa3d/src/virtio/vulkan/
Dvn_buffer.c160 struct vn_physical_device *pdev = dev->physical_device; in vn_buffer_get_max_buffer_size() local
172 if (pdev->features.maintenance4.maintenance4) { in vn_buffer_get_max_buffer_size()
173 *out_max_buffer_size = pdev->properties.maintenance4.maxBufferSize; in vn_buffer_get_max_buffer_size()

12