Home
last modified time | relevance | path

Searched refs:pdev (Results 1 - 25 of 53) sorted by relevance

123

/third_party/ltp/testcases/kernel/device-drivers/usb/tusb/
H A 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 in test_hcd_probe() local
434 struct pci_dev *pdev = NULL; test_hcd_remove() local
465 struct pci_dev *pdev = NULL; test_hcd_suspend() local
492 struct pci_dev *pdev = NULL; test_hcd_resume() local
[all...]
H A Dst_tusb.h60 struct pci_dev *pdev; /* pci is typical */ member
102 struct pci_dev *pdev; member
/third_party/mesa3d/src/microsoft/vulkan/
H A 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()
264 dzn_physical_device_init_uuids(struct dzn_physical_device *pdev) dzn_physical_device_init_uuids() argument
313 struct dzn_physical_device *pdev = dzn_physical_device_create() local
369 dzn_physical_device_cache_caps(struct dzn_physical_device *pdev) dzn_physical_device_cache_caps() argument
452 dzn_physical_device_init_memory(struct dzn_physical_device *pdev) dzn_physical_device_init_memory() argument
520 dzn_physical_device_get_heap_flags_for_mem_type(const struct dzn_physical_device *pdev, uint32_t mem_type) dzn_physical_device_get_heap_flags_for_mem_type() argument
527 dzn_physical_device_get_mem_type_mask_for_resource(const struct dzn_physical_device *pdev, const D3D12_RESOURCE_DESC *desc) dzn_physical_device_get_mem_type_mask_for_resource() argument
570 dzn_physical_device_get_d3d12_dev(struct dzn_physical_device *pdev) dzn_physical_device_get_d3d12_dev() argument
588 dzn_physical_device_get_format_support(struct dzn_physical_device *pdev, VkFormat format) dzn_physical_device_get_format_support() argument
656 dzn_physical_device_get_format_properties(struct dzn_physical_device *pdev, VkFormat format, VkFormatProperties2 *properties) dzn_physical_device_get_format_properties() argument
758 dzn_physical_device_get_image_format_properties(struct dzn_physical_device *pdev, const VkPhysicalDeviceImageFormatInfo2 *info, VkImageFormatProperties2 *properties) dzn_physical_device_get_image_format_properties() argument
1055 dzn_physical_device_supports_compressed_format(struct dzn_physical_device *pdev, const VkFormat *formats, uint32_t format_count) dzn_physical_device_supports_compressed_format() argument
1074 dzn_physical_device_supports_bc(struct dzn_physical_device *pdev) dzn_physical_device_supports_bc() argument
1099 dzn_physical_device_supports_depth_bounds(struct dzn_physical_device *pdev) dzn_physical_device_supports_depth_bounds() argument
1868 struct dzn_physical_device *pdev = container_of(device->vk.physical, struct dzn_physical_device, vk); dzn_queue_init() local
2016 dzn_device_create(struct dzn_physical_device *pdev, const VkDeviceCreateInfo *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkDevice *out) dzn_device_create() argument
2638 struct dzn_physical_device *pdev = dzn_GetBufferMemoryRequirements2() local
[all...]
/drivers/hdf_core/adapter/khdf/linux/platform/pwm/
H A Dpwm_hi35xx_linux.c118 static int PwmProbe(struct platform_device *pdev) in PwmProbe() argument
123 struct device_node *np = pdev->dev.of_node; in PwmProbe()
126 dev_err(&pdev->dev, "invalid devicetree node\n"); in PwmProbe()
130 chip = devm_kzalloc(&pdev->dev, sizeof(*chip), GFP_KERNEL); in PwmProbe()
134 chip->chip.dev = &pdev->dev; in PwmProbe()
140 r = platform_get_resource(pdev, IORESOURCE_MEM, 0); in PwmProbe()
141 chip->base = devm_ioremap_resource(&pdev->dev, r); in PwmProbe()
143 devm_kfree(&pdev->dev, chip); in PwmProbe()
147 chip->clk = devm_clk_get(&pdev->dev, NULL); in PwmProbe()
149 dev_err(&pdev in PwmProbe()
170 PwmRemove(struct platform_device *pdev) PwmRemove() argument
[all...]
/third_party/mesa3d/src/panfrost/vulkan/
H A 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
170 const struct panfrost_device *pdev = &queue->device->physical_device->pdev; panvk_signal_event_syncobjs() local
205 const struct panfrost_device *pdev = &queue->device->physical_device->pdev; queue_submit() local
[all...]
H A 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 in panvk_physical_device_init()
902 const struct panfrost_device *pdev = &device->physical_device->pdev; panvk_queue_init() local
1008 const struct panfrost_device *pdev = &physical_device->pdev; panvk_CreateDevice() local
1086 const struct panfrost_device *pdev = &queue->device->physical_device->pdev; panvk_QueueWaitIdle() local
1381 const struct panfrost_device *pdev = &device->physical_device->pdev; panvk_CreateEvent() local
1409 const struct panfrost_device *pdev = &device->physical_device->pdev; panvk_DestroyEvent() local
1425 const struct panfrost_device *pdev = &device->physical_device->pdev; panvk_GetEventStatus() local
1454 const struct panfrost_device *pdev = &device->physical_device->pdev; panvk_SetEvent() local
1478 const struct panfrost_device *pdev = &device->physical_device->pdev; panvk_ResetEvent() local
[all...]
H A 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 meta_blit_init()
206 panvk_pool_init(&dev->meta.blitter.desc_pool, &dev->pdev, NULL, in meta_blit_init()
209 pan_blend_shaders_init(&dev->pdev); in meta_blit_init()
210 GENX(pan_blitter_init)(&dev->pdev, &dev->meta.blitter.bin_pool.base, in meta_blit_init()
217 GENX(pan_blitter_cleanup)(&dev->pdev); in meta_blit_cleanup()
218 pan_blend_shaders_cleanup(&dev->pdev); in meta_blit_cleanup()
H A Dpanvk_vX_image.c119 struct panfrost_device *pdev = &device->physical_device->pdev; in CreateImageView() local
127 view->bo = panfrost_bo_create(pdev, bo_size, 0, "Texture descriptor"); in CreateImageView()
130 GENX(panfrost_new_texture)(pdev, &view->pview, &view->descs.tex, &view->bo->ptr); in CreateImageView()
190 struct panfrost_device *pdev = &device->physical_device->pdev; in CreateBufferView() local
201 view->bo = panfrost_bo_create(pdev, bo_size, 0, "Texture descriptor"); in CreateBufferView()
209 cfg.format = pdev->formats[view->fmt].hw; in CreateBufferView()
H A 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()
[all...]
H A 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
868 panvk_meta_copy_buf2img_shader(struct panfrost_device *pdev, struct pan_pool *bin_pool, struct panvk_meta_copy_format_info key, struct pan_shader_info *shader_info) panvk_meta_copy_buf2img_shader() argument
1241 panvk_meta_copy_img2buf_shader(struct panfrost_device *pdev, struct pan_pool *bin_pool, struct panvk_meta_copy_format_info key, unsigned texdim, unsigned texisarray, struct pan_shader_info *shader_info) panvk_meta_copy_img2buf_shader() argument
1467 struct panfrost_device *pdev = &cmdbuf->device->physical_device->pdev; panvk_meta_copy_img2buf() local
1627 panvk_meta_copy_buf2buf_shader(struct panfrost_device *pdev, struct pan_pool *bin_pool, unsigned blksz, struct pan_shader_info *shader_info) panvk_meta_copy_buf2buf_shader() argument
1763 panvk_meta_fill_buf_shader(struct panfrost_device *pdev, struct pan_pool *bin_pool, struct pan_shader_info *shader_info) panvk_meta_fill_buf_shader() argument
1808 panvk_meta_fill_buf_emit_rsd(struct panfrost_device *pdev, struct pan_pool *bin_pool, struct pan_pool *desc_pool) panvk_meta_fill_buf_emit_rsd() argument
[all...]
H A 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 emit_blend() local
658 panfrost_format_to_bifrost_blend(pdev, rts->format, dithered); in emit_blend()
814 const struct panfrost_device *pdev in emit_tiler_context() local
[all...]
H A 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 shader_create() local
269 .gpu_id = pdev->gpu_id, in shader_create()
357 panvk_lower_blend(pdev, nir, &inputs, blend_state, static_blend_constants); in shader_create()
H A 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()
H A Dpanvk_vX_meta.c54 panvk_pool_init(&dev->meta.bin_pool, &dev->pdev, NULL, PAN_BO_EXECUTE, in meta_init()
56 panvk_pool_init(&dev->meta.desc_pool, &dev->pdev, NULL, 0, in meta_init()
/third_party/eudev/src/udev/
H A Dudev-builtin-input_id.c91 struct udev_device *pdev, const char* attr, in get_cap_mask()
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, "capabilitie in builtin_input_id()
90 get_cap_mask(struct udev_device *dev, struct udev_device *pdev, const char* attr, unsigned long *bitmask, size_t bitmask_size, bool test) get_cap_mask() argument
[all...]
H A 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 log_error_errno(r, "Failed to write 'sensitivity' attribute for '%s': %m", udev_device_get_devnode(pdev)); in set_trackpoint_sensitivity()
/third_party/backends/backend/
H A Dsnapscan-options.c296 switch (ps->pdev->model) in init_options()
370 switch (ps->pdev->model) in init_options()
430 if (ps->pdev->model == PERFECTION1270) in init_options()
467 switch (ps->pdev->model) in init_options()
494 switch (ps->pdev->model) in init_options()
536 if (ps->pdev->model == SCANWIT2720S) in init_options()
540 ps->pdev->x_range.max = x_range_tpo.max; in init_options()
541 ps->pdev->y_range.max = y_range_tpo.max; in init_options()
564 po[OPT_TLX].constraint.range = &(ps->pdev->x_range); in init_options()
565 ps->tlx = ps->pdev in init_options()
1072 SnapScan_Device *pdev = pss->pdev; sane_control_option() local
[all...]
H A Dsnapscan-scsi.c220 if(pss->pdev->bus == SCSI) in open_scanner()
251 if(pss->pdev->bus == SCSI) in close_scanner()
255 else if(pss->pdev->bus == USB) in close_scanner()
444 switch (pss->pdev->model) in inquiry()
466 status = snapscan_cmd (pss->pdev->bus, in inquiry()
484 switch (pss->pdev->model) in inquiry()
536 if ((pss->pdev->model == PERFECTION2480) || (pss->pdev->model == PERFECTION3490)) in inquiry()
549 if ((pss->pdev->bus == USB) && !(pss->hwst & 0x02)) in inquiry()
554 switch (pss->pdev in inquiry()
[all...]
H A Dsm3600.c455 TDevice *pdev; in sane_open() local
460 for (pdev=pdevFirst; pdev; pdev=pdev->pNext) in sane_open()
462 DBG(DEBUG_VERBOSE,"%s<>%s\n",devicename, pdev->sane.name); in sane_open()
463 if (!strcmp(devicename,pdev->sane.name)) in sane_open()
469 pdev=pdevFirst; in sane_open()
470 if (!pdev) in sane_open()
480 this->model=pdev in sane_open()
[all...]
H A Dsnapscan.c171 switch (pss->pdev->model) in calibration_line_length()
830 SnapScan_Device *pdev; in sane_get_devices() local
831 for (i = 0, pdev = first_device; pdev; i++, pdev = pdev->pnext) in sane_get_devices()
832 (*device_list)[i] = &(pdev->dev); in sane_get_devices()
897 pss->pdev = psd; in sane_open()
902 if ((pss->pdev->model == PERFECTION2480) || (pss->pdev in sane_open()
[all...]
/third_party/ltp/testcases/kernel/device-drivers/agp/kernel_space/
H A 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()
[all...]
/drivers/hdf_core/framework/model/audio/hdmi/src/
H A Daudio_hdmi_codec_linux.c26 static int32_t HdmiCodecProbe(struct platform_device *pdev) in HdmiCodecProbe() argument
34 if (pdev == NULL) { in HdmiCodecProbe()
38 dev = &pdev->dev; in HdmiCodecProbe()
39 hdmiCodecData = pdev->dev.platform_data; in HdmiCodecProbe()
/drivers/hdf_core/framework/test/unittest/platform/virtual/
H A Dadc_linux_virtual_iio_driver.c145 static int VirtualAdcPlatformProbe(struct platform_device *pdev) in VirtualAdcPlatformProbe() argument
151 indioDev = devm_iio_device_alloc(&pdev->dev, sizeof(*adcInfo)); in VirtualAdcPlatformProbe()
167 platform_set_drvdata(pdev, indioDev); in VirtualAdcPlatformProbe()
178 static int VirtualAdcPlatformRemove(struct platform_device *pdev) in VirtualAdcPlatformRemove() argument
182 indioDev = platform_get_drvdata(pdev); in VirtualAdcPlatformRemove()
188 platform_set_drvdata(pdev, NULL); in VirtualAdcPlatformRemove()
/drivers/hdf_core/adapter/khdf/linux/platform/spi/
H A Dspi_adapter.c403 static struct platform_device pdev = {0}; in SpiAdapterRegisterDummyController() local
409 pdev.name = "spi_adapter_dummy"; in SpiAdapterRegisterDummyController()
410 pdev.id = -1; in SpiAdapterRegisterDummyController()
411 pdev.dev.release = SpiPlatformDeviceRelease; in SpiAdapterRegisterDummyController()
412 if (platform_device_register(&pdev) != 0) { in SpiAdapterRegisterDummyController()
418 dummyCntlr = spi_alloc_master(&pdev.dev, 0); in SpiAdapterRegisterDummyController()
420 dummyCntlr = devm_spi_alloc_master(&pdev.dev, 0); in SpiAdapterRegisterDummyController()
430 if (devm_spi_register_controller(&pdev.dev, dummyCntlr) != 0) { in SpiAdapterRegisterDummyController()
/third_party/libdrm/nouveau/
H A 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()
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
378 nouveau_device_new(struct nouveau_object *parent, int32_t oclass, void *data, uint32_t size, struct nouveau_device **pdev) nouveau_device_new() argument
[all...]

Completed in 22 milliseconds

123