/kernel/linux/linux-6.6/drivers/remoteproc/ |
H A D | ti_k3_dsp_remoteproc.c | 43 * @dev_addr: device address for the memory entry 51 * struct k3_dsp_dev_data - device data structure for a DSP 66 * @dev: cached device pointer 67 * @rproc: remoteproc device handle 73 * @data: pointer to DSP-specific device data 76 * @ti_sci_id: TI-SCI device identifier 81 struct device *dev; 114 struct device *dev = kproc->rproc->dev.parent; in k3_dsp_rproc_mbox_callback() 154 struct device *dev = rproc->dev.parent; in k3_dsp_rproc_kick() 168 struct device *de in k3_dsp_rproc_reset() [all...] |
/kernel/linux/linux-6.6/drivers/usb/renesas_usbhs/ |
H A D | mod_gadget.c | 60 int (*device)(struct usbhs_priv *priv, struct usbhsg_uep *uep, member 124 struct device *dev = usbhsg_gpriv_to_dev(gpriv); in __usbhsg_queue_pop() 168 struct device *dev = usbhsg_gpriv_to_dev(gpriv); in usbhsg_queue_push() 187 static int usbhsg_dma_map_ctrl(struct device *dma_dev, struct usbhs_pkt *pkt, in usbhsg_dma_map_ctrl() 252 .device = usbhsg_recip_handler_std_control_done, 293 .device = usbhsg_recip_handler_std_set_device, 316 struct device *dev = usbhsg_gpriv_to_dev(gpriv); in __usbhsg_recip_send_status() 393 .device = usbhsg_recip_handler_std_get_device, 406 struct device *dev = usbhsg_gpriv_to_dev(gpriv); in usbhsg_recip_run_handle() 426 func = handler->device; in usbhsg_recip_run_handle() [all...] |
/kernel/linux/linux-6.6/drivers/clocksource/ |
H A D | timer-ti-dm.c | 26 #include <linux/device.h> 470 struct device *dev = &timer->pdev->dev; in omap_dm_timer_enable() 481 struct device *dev = &timer->pdev->dev; in omap_dm_timer_disable() 488 struct device *dev = &timer->pdev->dev; in omap_dm_timer_prepare() 613 /* Requesting timer by ID is not supported when device tree is used */ in omap_dm_timer_request_specific() 628 * omap_dm_timer_request_by_node - Request a timer by device-tree node 629 * @np: Pointer to device-tree timer node 631 * Request a timer based upon a device node pointer. Returns pointer to 651 struct device *dev; in omap_dm_timer_free() 746 struct device *de in omap_dm_timer_start() [all...] |
/kernel/linux/linux-6.6/drivers/infiniband/core/ |
H A D | rw.c | 41 * Check if the device will use memory registration for this RW operation. 95 u32 pages_per_mr = rdma_rw_fr_page_list_len(qp->pd->device, in rdma_rw_init_one_mr() 115 if (rdma_protocol_iwarp(qp->device, port_num)) in rdma_rw_init_one_mr() 129 u32 pages_per_mr = rdma_rw_fr_page_list_len(qp->pd->device, in rdma_rw_init_mr_wrs() 165 } else if (!rdma_cap_read_inv(qp->device, port_num)) { in rdma_rw_init_mr_wrs() 296 struct ib_device *dev = qp->pd->device; in rdma_rw_ctx_init() 326 if (rdma_rw_io_needs_mr(qp->device, port_num, dir, sg_cnt)) { in rdma_rw_ctx_init() 370 struct ib_device *dev = qp->pd->device; in rdma_rw_ctx_signature_init() 371 u32 pages_per_mr = rdma_rw_fr_page_list_len(qp->pd->device, in rdma_rw_ctx_signature_init() 431 if (rdma_protocol_iwarp(qp->device, port_nu in rdma_rw_ctx_signature_init() 641 rdma_rw_mr_factor(struct ib_device *device, u32 port_num, unsigned int maxpages) rdma_rw_mr_factor() argument [all...] |
/kernel/linux/linux-6.6/drivers/pci/hotplug/ |
H A D | acpiphp_glue.c | 55 * @adev: ACPI device object to create the context for. 76 * @adev: ACPI device object to get the context for. 185 * @adev: ACPI device object corresponding to a PCI device. 220 * acpiphp_add_context - Add ACPIPHP context to an ACPI device object. 236 int device, function; in acpiphp_add_context() local 252 device = (adr >> 16) & 0xffff; in acpiphp_add_context() 268 * If this is a dock device, its _EJ0 should be executed by the dock in acpiphp_add_context() 279 if (slot->device == device) in acpiphp_add_context() [all...] |
H A D | ibmphp_core.c | 106 /* This routine will put the correct slot->device information per slot. It's 135 (*cur_slot)->device = PCI_SLOT(rtable->slots[loop].devfn); in ibmphp_init_devno() 138 (int) (*cur_slot)->device, i); in ibmphp_init_devno() 539 static struct pci_func *ibm_slot_find(u8 busno, u8 device, u8 function) in ibm_slot_find() argument 548 (func_cur->device == device) && in ibm_slot_find() 593 debug("func->device = %x, func->function = %x\n", in ibm_unconfigure_device() 594 func->device, func->function); in ibm_unconfigure_device() 595 debug("func->device << 3 | 0x0 = %x\n", func->device << in ibm_unconfigure_device() [all...] |
/kernel/linux/linux-6.6/drivers/pci/ |
H A D | p2pdma.c | 41 static ssize_t size_show(struct device *dev, struct device_attribute *attr, in size_show() 58 static ssize_t available_show(struct device *dev, struct device_attribute *attr, in available_show() 75 static ssize_t published_show(struct device *dev, struct device_attribute *attr, in published_show() 277 * @pdev: the device to add the memory to 360 * Note this function returns the parent PCI device with a 364 static struct pci_dev *find_parent_pci_dev(struct device *dev) in find_parent_pci_dev() 366 struct device *parent; in find_parent_pci_dev() 427 unsigned short device; member 449 * If the first device on host's root bus is either devfn 00.0 or a PCIe 453 * (though there is no PCI/PCIe requirement for such a device) 489 unsigned short vendor, device; __host_bridge_whitelist() local [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/dispnv04/ |
H A D | dfp.c | 285 struct nvif_object *device = &nouveau_drm(dev)->client.device.object; in nv04_dfp_mode_set() local 340 if (nvif_rd32(device, NV_PEXTDEV_BOOT_0) & NV_PEXTDEV_BOOT_0_STRAP_FP_IFACE_12BIT) in nv04_dfp_mode_set() 421 if (drm->client.device.info.chipset == 0x11) in nv04_dfp_mode_set() 432 if (drm->client.device.info.chipset != 0x11) { in nv04_dfp_mode_set() 468 if (drm->client.device.info.chipset < 0x44) in nv04_dfp_commit() 490 struct nvif_object *device = &nouveau_drm(dev)->client.device.object; in nv04_dfp_update_backlight() local 496 if (pdev->device == 0x0174 || pdev->device in nv04_dfp_update_backlight() [all...] |
/kernel/linux/linux-6.6/drivers/hwmon/ |
H A D | ibmaem.c | 102 struct device *bmc_device; 107 ssize_t (*show)(struct device *dev, 115 ssize_t (*show)(struct device *dev, 118 ssize_t (*set)(struct device *dev, 127 struct device *hwmon_dev; 232 static void aem_register_bmc(int iface, struct device *dev); 258 struct device *bmc) in aem_init_ipmi_data() 541 /* Create sub-device for this fw instance */ in aem_init_aem1_inst() 567 "Unable to register hwmon device for IPMI interface %d\n", in aem_init_aem1_inst() 683 /* Create sub-device fo in aem_init_aem2_inst() [all...] |
H A D | lm95234.c | 205 static ssize_t temp_show(struct device *dev, struct device_attribute *attr, in temp_show() 219 static ssize_t alarm_show(struct device *dev, struct device_attribute *attr, in alarm_show() 232 static ssize_t type_show(struct device *dev, struct device_attribute *attr, in type_show() 245 static ssize_t type_store(struct device *dev, struct device_attribute *attr, in type_store() 276 static ssize_t tcrit2_show(struct device *dev, struct device_attribute *attr, in tcrit2_show() 289 static ssize_t tcrit2_store(struct device *dev, struct device_attribute *attr, in tcrit2_store() 314 static ssize_t tcrit2_hyst_show(struct device *dev, in tcrit2_hyst_show() 329 static ssize_t tcrit1_show(struct device *dev, struct device_attribute *attr, in tcrit1_show() 338 static ssize_t tcrit1_store(struct device *dev, struct device_attribute *attr, in tcrit1_store() 363 static ssize_t tcrit1_hyst_show(struct device *de [all...] |
H A D | smsc47m1.c | 34 MODULE_PARM_DESC(force_id, "Override the detected device ID"); 60 /* logical device for fans is 0x0A */ 85 /* Logical device registers */ 120 struct device *hwmon_dev; 134 u8 activate; /* Remember initial device state */ 148 static struct smsc47m1_data *smsc47m1_update_device(struct device *dev, in smsc47m1_update_device() 197 static ssize_t fan_show(struct device *dev, struct device_attribute *devattr, in fan_show() 216 static ssize_t fan_min_show(struct device *dev, in fan_min_show() 227 static ssize_t fan_div_show(struct device *dev, in fan_div_show() 235 static ssize_t fan_alarm_show(struct device *de [all...] |
H A D | w83l786ng.c | 149 static struct w83l786ng_data *w83l786ng_update_device(struct device *dev) in w83l786ng_update_device() 223 show_##reg(struct device *dev, struct device_attribute *attr, \ 237 store_in_##reg(struct device *dev, struct device_attribute *attr, \ 277 static ssize_t show_##reg(struct device *dev, struct device_attribute *attr, \ 290 store_fan_min(struct device *dev, struct device_attribute *attr, in store_fan_min() 313 show_fan_div(struct device *dev, struct device_attribute *attr, in show_fan_div() 328 store_fan_div(struct device *dev, struct device_attribute *attr, in store_fan_div() 405 show_temp(struct device *dev, struct device_attribute *attr, char *buf) in show_temp() 416 store_temp(struct device *dev, struct device_attribute *attr, in store_temp() 461 static ssize_t show_##reg(struct device *de [all...] |
/kernel/linux/linux-6.6/drivers/hid/ |
H A D | hid-ntrig.c | 12 #include <linux/device.h> 168 static ssize_t show_phys_width(struct device *dev, in show_phys_width() 180 static ssize_t show_phys_height(struct device *dev, in show_phys_height() 192 static ssize_t show_log_width(struct device *dev, in show_log_width() 204 static ssize_t show_log_height(struct device *dev, in show_log_height() 216 static ssize_t show_min_width(struct device *dev, in show_min_width() 228 static ssize_t set_min_width(struct device *dev, in set_min_width() 251 static ssize_t show_min_height(struct device *dev, in show_min_height() 263 static ssize_t set_min_height(struct device *dev, in set_min_height() 287 static ssize_t show_activate_slack(struct device *de [all...] |
/kernel/linux/linux-6.6/drivers/hwtracing/coresight/ |
H A D | coresight-stm.c | 456 static ssize_t hwevent_enable_show(struct device *dev, in hwevent_enable_show() 465 static ssize_t hwevent_enable_store(struct device *dev, in hwevent_enable_store() 485 static ssize_t hwevent_select_show(struct device *dev, in hwevent_select_show() 494 static ssize_t hwevent_select_store(struct device *dev, in hwevent_select_store() 512 static ssize_t port_select_show(struct device *dev, in port_select_show() 529 static ssize_t port_select_store(struct device *dev, in port_select_store() 559 static ssize_t port_enable_show(struct device *dev, in port_enable_show() 576 static ssize_t port_enable_store(struct device *dev, in port_enable_store() 602 static ssize_t traceid_show(struct device *dev, in traceid_show() 654 static int of_stm_get_stimulus_area(struct device *de [all...] |
/kernel/linux/linux-6.6/drivers/iommu/ |
H A D | mtk_iommu_v1.c | 13 #include <linux/device.h> 99 struct device *dev; 119 static int mtk_iommu_v1_bind(struct device *dev) in mtk_iommu_v1_bind() 126 static void mtk_iommu_v1_unbind(struct device *dev) in mtk_iommu_v1_unbind() 233 struct device *dev, bool enable) in mtk_iommu_v1_config() 297 static int mtk_iommu_v1_attach_device(struct iommu_domain *domain, struct device *dev) in mtk_iommu_v1_attach_device() 322 static void mtk_iommu_v1_set_platform_dma(struct device *dev) in mtk_iommu_v1_set_platform_dma() 393 static int mtk_iommu_v1_create_mapping(struct device *dev, struct of_phandle_args *args) in mtk_iommu_v1_create_mapping() 417 /* Get the m4u device */ in mtk_iommu_v1_create_mapping() 444 static int mtk_iommu_v1_def_domain_type(struct device *de [all...] |
/kernel/linux/linux-6.6/lib/ |
H A D | test_kmod.c | 27 #include <linux/device.h> 41 * For device allocation / registration 48 * device we will allow to create. 86 * @test_dev: test device test is being performed under 103 * struct kmod_test_device - test device to help test kmod 105 * @dev_idx: unique ID for test device 107 * @misc_dev: we use a misc device under the hood 108 * @dev: pointer to misc_dev's own struct device 122 struct device *dev; 148 static struct miscdevice *dev_to_misc_dev(struct device *de [all...] |
/test/testfwk/xdevice/plugins/ohos/src/ohos/drivers/ |
H A D | cpp_driver_lite.py | 63 CppTest is a test that runs a native test package on given lite device. 94 self.config.device = request.config.environment.devices[0] 108 kit.__setup__(request.config.device, request=request) 140 if self.config.device.get("device_kernel") == \ 147 self.config.device.execute_command_with_timeout( 190 if self.config.device.get("device_kernel") == \ 192 self.config.device.execute_command_with_timeout( 195 self.config.device.execute_command_with_timeout( 198 kit.__teardown__(request.config.device) 199 self.config.device [all...] |
/third_party/mesa3d/src/gallium/frontends/clover/core/ |
H A D | kernel.cpp | 58 w.resize(q.device().max_block_size().size(), x); in pad_vector() 67 const auto b = program().build(q.device()).bin; in launch() 148 q.device().max_threads_per_block(), q.device().max_block_size(), in optimal_block_size() 179 return program().build(q.device()).bin; in binary() 197 auto &b = kern.program().build(q->device()).bin; in bind() 256 cl_mem buf = kern._constant_buffers.at(&q->device()).get(); in bind() 264 q->device().max_printf_buffer_size()); in bind() 282 cs.ir_type = q->device().ir_format(); in bind() 452 byteswap(w, ctx.q->device() in bind() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/ |
H A D | vktDrawDepthClampTests.cpp | 302 const VkDevice device = m_context.getDevice(); in DepthClampTestInstance() local 350 m_vertexBuffer = Buffer::createAndAlloc(vk, device, BufferCreateInfo(dataSize, VK_BUFFER_USAGE_VERTEX_BUFFER_BIT), in DepthClampTestInstance() 358 flushMappedMemoryRange(vk, device, m_vertexBuffer->getBoundMemory().getMemory(), m_vertexBuffer->getBoundMemory().getOffset(), VK_WHOLE_SIZE); in DepthClampTestInstance() 363 m_depthTargetImage = Image::createAndAlloc(vk, device, targetImageCreateInfo, m_context.getDefaultAllocator(), queueFamilyIndex); in DepthClampTestInstance() 366 m_depthTargetView = createImageView(vk, device, &depthTargetViewInfo); in DepthClampTestInstance() 393 m_renderPass = createRenderPass(vk, device, &renderPassCreateInfo); in DepthClampTestInstance() 397 m_framebuffer = createFramebuffer(vk, device, &framebufferCreateInfo); in DepthClampTestInstance() 420 const Unique<VkShaderModule> vertexModule (createShaderModule(vk, device, m_context.getBinaryCollection().get("vert"), 0)); in DepthClampTestInstance() 422 const Unique<VkShaderModule> fragmentModule (createShaderModule(vk, device, m_context.getBinaryCollection().get("frag"), 0)); in DepthClampTestInstance() 425 geometryModule = createShaderModule(vk, device, m_contex in DepthClampTestInstance() 476 const VkDevice device = m_context.getDevice(); draw() local [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/api/ |
H A D | vktApiImageCompressionControlTests.cpp | 103 VkPhysicalDevice physicalDevice, VkDevice device, TestParams& testParams, VkImage image) in validate() 121 vkd.getImageSubresourceLayout2EXT(device, image, &subresource, &subresourceLayout); in validate() 326 VkDevice device = context.getDevice(); in ahbImageCreateTest() local 375 Move<VkImage> image = vk::createImage(vkd, device, &createInfo); in ahbImageCreateTest() 377 vkd, device, image.get(), VK_EXTERNAL_MEMORY_HANDLE_TYPE_ANDROID_HARDWARE_BUFFER_BIT_ANDROID); in ahbImageCreateTest() 380 vkd, device, requirements.size, exportedMemoryTypeIndex, in ahbImageCreateTest() 383 VK_CHECK(vkd.bindImageMemory(device, image.get(), memory.get(), 0u)); in ahbImageCreateTest() 394 const VkDevice device = context.getDevice(); in imageCreateTest() local 438 Move<VkImage> image = createImage(context.getDeviceInterface(), device, &imageCreateInfo); in imageCreateTest() 588 const Unique<VkDevice> device; member 102 validate(const InstanceInterface& vki, const DeviceInterface& vkd, tcu::ResultCollector& results, VkPhysicalDevice physicalDevice, VkDevice device, TestParams& testParams, VkImage image) validate() argument [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/draw/ |
H A D | vktDrawDepthClampTests.cpp | 302 const VkDevice device = m_context.getDevice(); in DepthClampTestInstance() local 350 m_vertexBuffer = Buffer::createAndAlloc(vk, device, BufferCreateInfo(dataSize, VK_BUFFER_USAGE_VERTEX_BUFFER_BIT), in DepthClampTestInstance() 358 flushMappedMemoryRange(vk, device, m_vertexBuffer->getBoundMemory().getMemory(), m_vertexBuffer->getBoundMemory().getOffset(), VK_WHOLE_SIZE); in DepthClampTestInstance() 363 m_depthTargetImage = Image::createAndAlloc(vk, device, targetImageCreateInfo, m_context.getDefaultAllocator(), queueFamilyIndex); in DepthClampTestInstance() 366 m_depthTargetView = createImageView(vk, device, &depthTargetViewInfo); in DepthClampTestInstance() 393 m_renderPass = createRenderPass(vk, device, &renderPassCreateInfo); in DepthClampTestInstance() 397 m_framebuffer = createFramebuffer(vk, device, &framebufferCreateInfo); in DepthClampTestInstance() 420 const Unique<VkShaderModule> vertexModule (createShaderModule(vk, device, m_context.getBinaryCollection().get("vert"), 0)); in DepthClampTestInstance() 422 const Unique<VkShaderModule> fragmentModule (createShaderModule(vk, device, m_context.getBinaryCollection().get("frag"), 0)); in DepthClampTestInstance() 425 geometryModule = createShaderModule(vk, device, m_contex in DepthClampTestInstance() 476 const VkDevice device = m_context.getDevice(); draw() local [all...] |
/third_party/skia/third_party/externals/dawn/src/tests/end2end/ |
H A D | D3D12ResourceWrappingTests.cpp | 43 // Create the D3D11 device/contexts that will be used in subsequent tests 44 ComPtr<ID3D12Device> d3d12Device = dawn_native::d3d12::GetD3D12Device(device.Get()); 117 dawn_native::d3d12::ExternalImageDXGI::Create(device.Get(), &externalImageDesc); in WrapSharedHandle() 134 externalImage->ProduceTexture(device.Get(), &externalAccessDesc)); in WrapSharedHandle() 314 wgpu::CommandEncoder encoder = device.CreateCommandEncoder(); in SimpleCopyTextureToTexture() 321 // Clear a texture on a given device 386 dawn_native::d3d12::ExternalImageDXGI::Create(device.Get(), &externalImageDesc); in WrapAndClearD3D11Texture() 395 externalImage->ProduceTexture(device.Get(), &externalAccessDesc)); in WrapAndClearD3D11Texture() 473 // Create a texture on the device and copy the source texture to it. in TEST_P() 474 wgpu::Texture dawnCopyDestTexture = device in TEST_P() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/ycbcr/ |
H A D | vktYCbCrStorageImageWriteTests.cpp | 146 const VkDevice device = context.getDevice(); 177 const Unique<VkImage> image (createImage(vkd, device, &imageCreateInfo)); 179 const std::vector<AllocationSp> allocations (allocateAndBindImageMemory(vkd, device, context.getDefaultAllocator(), *image, params.format, params.flags, MemoryRequirement::Any)); 184 .build(vkd, device)); 185 const Unique<VkPipelineLayout> pipelineLayout (makePipelineLayout(vkd, device, *descriptorSetLayout)); 190 .build(vkd, device, VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, vk::PlanarFormatDescription::MAX_PLANES)); 193 const Unique<VkCommandPool> commandPool (makeCommandPool(vkd, device, queueFamilyIndex)); 194 const Unique<VkCommandBuffer> commandBuffer (allocateCommandBuffer(vkd, device, *commandPool, VK_COMMAND_BUFFER_LEVEL_PRIMARY)); 222 auto shaderModule = makeVkSharedPtr(createShaderModule(vkd, device, context.getBinaryCollection().get(shaderName.str()), DE_NULL)); 224 auto computePipeline = makeVkSharedPtr(makeComputePipeline(vkd, device, *pipelineLayou [all...] |
/kernel/linux/linux-5.10/drivers/crypto/caam/ |
H A D | qi.c | 99 int caam_qi_enqueue(struct device *qidev, struct caam_drv_req *req) in caam_qi_enqueue() 140 struct device *qidev = &(raw_cpu_ptr(&pcpu_qipriv)->net_dev.dev); in caam_fq_ern_cb() 168 static struct qman_fq *create_caam_req_fq(struct device *qidev, in create_caam_req_fq() 218 static int empty_retired_fq(struct device *qidev, struct qman_fq *fq) in empty_retired_fq() 241 static int kill_fq(struct device *qidev, struct qman_fq *fq) in kill_fq() 324 struct device *qidev = drv_ctx->qidev; in caam_drv_ctx_update() 395 struct caam_drv_ctx *caam_drv_ctx_init(struct device *qidev, in caam_drv_ctx_init() 513 struct device *qidev = data; in caam_qi_shutdown() 572 struct device *qidev = &(raw_cpu_ptr(&pcpu_qipriv)->net_dev.dev); in caam_rsp_fq_dqrr_cb() 614 static int alloc_rsp_fq_cpu(struct device *qide [all...] |
/kernel/linux/linux-5.10/arch/x86/pci/ |
H A D | fixup.c | 82 * PIIX4 ACPI device: hardwired IRQ9 in pci_fixup_piix4_acpi() 114 if (d->device == PCI_DEVICE_ID_VIA_8367_0) { in pci_fixup_via_northbridge_bug() 122 } else if (d->device == PCI_DEVICE_ID_VIA_8363_0 && in pci_fixup_via_northbridge_bug() 132 d->device, d->revision, where, v, mask, v & mask); in pci_fixup_via_northbridge_bug() 157 if ((dev->device & 0xff00) == 0x2400) in pci_fixup_transparent_bridge() 220 offset = quirk_aspm_offset[GET_INDEX(bus->self->device, devfn)]; in quirk_pcie_aspm_write() 238 * for each PCI Express device that is in the device list of 256 if ((pdev->device < PCI_DEVICE_ID_INTEL_MCH_PA) || in pcie_rootport_aspm_quirk() 257 (pdev->device > PCI_DEVICE_ID_INTEL_MCH_PC in pcie_rootport_aspm_quirk() [all...] |