/kernel/linux/linux-6.6/sound/ac97/ |
H A D | bus.c | 9 #include <linux/device.h> 34 to_ac97_controller(struct device *ac97_adapter) in to_ac97_controller() 90 static void ac97_codec_release(struct device *dev) in ac97_codec_release() 212 * @adev: the ac97 codec device 215 * available, while ac97 device are auto-created upon probe, this retrieves the 239 static ssize_t cold_reset_store(struct device *dev, in cold_reset_store() 253 static ssize_t warm_reset_store(struct device *dev, in warm_reset_store() 296 static void ac97_adapter_release(struct device *dev) in ac97_adapter_release() 339 * @dev: the device providing the ac97 DC function 349 const struct ac97_controller_ops *ops, struct device *de in snd_ac97_controller_register() [all...] |
/test/testfwk/xdevice/plugins/ohos/src/ohos/drivers/ |
H A D | cpp_driver.py | 35 device. 62 self.config.device = request.config.environment.devices[0] 71 request.config.device.__get_serial__(), 79 request.config.device.__get_serial__(), 89 self.config.device.device_log_collector.add_log_address(self.device_log, self.hilog) 93 self.log_proc, self.hilog_proc = self.config.device.device_log_collector. \ 108 self.config.device.device_log_collector.remove_log_address(self.device_log, self.hilog) 109 self.config.device.device_log_collector.stop_catch_device_log(self.log_proc) 110 self.config.device.device_log_collector.stop_catch_device_log(self.hilog_proc) 126 listener.device_sn = self.config.device [all...] |
/third_party/mesa3d/src/amd/vulkan/ |
H A D | radv_pass.c | 306 radv_destroy_render_pass(struct radv_device *device, const VkAllocationCallbacks *pAllocator, in radv_destroy_render_pass() argument 310 vk_free2(&device->vk.alloc, pAllocator, pass->subpass_attachments); in radv_destroy_render_pass() 311 vk_free2(&device->vk.alloc, pAllocator, pass); in radv_destroy_render_pass() 333 RADV_FROM_HANDLE(radv_device, device, _device); in radv_CreateRenderPass2() 345 pass = vk_alloc2(&device->vk.alloc, pAllocator, size, 8, VK_SYSTEM_ALLOCATION_SCOPE_OBJECT); in radv_CreateRenderPass2() 347 return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY); in radv_CreateRenderPass2() 351 vk_object_base_init(&device->vk, &pass->base, VK_OBJECT_TYPE_RENDER_PASS); in radv_CreateRenderPass2() 379 vk_alloc2(&device->vk.alloc, pAllocator, in radv_CreateRenderPass2() 383 radv_destroy_render_pass(device, pAllocator, pass); in radv_CreateRenderPass2() 384 return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMOR in radv_CreateRenderPass2() 519 radv_GetRenderAreaGranularity(VkDevice device, VkRenderPass renderPass, VkExtent2D *pGranularity) radv_GetRenderAreaGranularity() argument [all...] |
/third_party/ltp/testcases/kernel/device-drivers/acpi/ |
H A D | ltp_acpi_cmds.c | 70 /* sysfs device path of the last found device */ 73 /* first found device with _CRS */ 127 struct acpi_device *device; in get_sysfs_path() local 132 status = acpi_bus_get_device(handle, &device); in get_sysfs_path() 134 sysfs_path = kobject_get_path(&device->dev.kobj, GFP_KERNEL); in get_sysfs_path() 137 /* acpi handle of the last visited device */ 233 /* first found device with _STR */ 265 /* get first device on SYS bus, it will be used in other tests */ in acpi_init() 287 * Callback for all 'system-level' device notification 395 struct acpi_device *device; acpi_test_bus() local [all...] |
/third_party/mesa3d/src/gallium/frontends/lavapipe/ |
H A D | lvp_private.h | 110 const struct vk_device_extension_table *device); 176 struct lvp_device * device; member 188 struct lvp_device * device; member 232 void lvp_pipe_sync_signal_with_fence(struct lvp_device *device, 387 lvp_descriptor_template_destroy(struct lvp_device *device, struct lvp_descriptor_update_template *templ); 390 lvp_descriptor_template_templ_unref(struct lvp_device *device, in lvp_descriptor_template_templ_unref() argument 397 lvp_descriptor_template_destroy(device, templ); in lvp_descriptor_template_templ_unref() 401 lvp_descriptor_set_create(struct lvp_device *device, 406 lvp_descriptor_set_destroy(struct lvp_device *device, 429 struct lvp_device * device; member 511 struct lvp_device * device; global() member [all...] |
/third_party/libinput/src/ |
H A D | evdev-mt-touchpad-thumb.c | 59 evdev_log_debug(tp->device, in tp_thumb_set_state() 321 mm = evdev_device_unit_delta_to_mm(tp->device, &distance); in tp_thumb_update_multifinger() 334 evdev_log_debug(tp->device, in tp_thumb_update_multifinger() 386 struct evdev_device *device = tp->device; in tp_init_thumb() local 402 evdev_device_get_size(device, &w, &h); in tp_init_thumb() 413 edges = evdev_device_mm_to_units(device, &mm); in tp_init_thumb() 417 edges = evdev_device_mm_to_units(device, &mm); in tp_init_thumb() 420 quirks = evdev_libinput_context(device)->quirks; in tp_init_thumb() 421 q = quirks_fetch_for_device(quirks, device in tp_init_thumb() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/synchronization/ |
H A D | vktGlobalPriorityQueueUtils.cpp | 249 const VkDevice device, in BufferWithMemory() 255 , m_buffer (createBuffer(vkd, device, &bufferCreateInfo)) in BufferWithMemory() 256 , m_requirements (getBufferMemoryRequirements(vkd, device, *m_buffer)) in BufferWithMemory() 267 Move<VkFence> fence = createFence(vkd, device); in BufferWithMemory() 311 VK_CHECK(vkd.waitForFences(device, 1u, &fence.get(), DE_TRUE, ~0ull)); in BufferWithMemory() 316 VK_CHECK(vkd.bindBufferMemory(device, *m_buffer, allocation->getMemory(), allocation->getOffset())); in BufferWithMemory() 332 void BufferWithMemory::invalidateAlloc (const DeviceInterface& vk, const VkDevice device) const in invalidateAlloc() 335 ::vk::invalidateAlloc(vk, device, *m_allocations[0]); in invalidateAlloc() 338 void BufferWithMemory::flushAlloc (const DeviceInterface& vk, const VkDevice device) const in flushAlloc() 341 ::vk::flushAlloc(vk, device, *m_allocation in flushAlloc() 246 BufferWithMemory(const vk::InstanceInterface& vki, const DeviceInterface& vkd, const vk::VkPhysicalDevice phys, const VkDevice device, Allocator& allocator, const VkBufferCreateInfo& bufferCreateInfo, const MemoryRequirement memoryRequirement, const VkQueue sparseQueue) BufferWithMemory() argument 344 ImageWithMemory(const InstanceInterface& vki, const DeviceInterface& vkd, const VkPhysicalDevice phys, const VkDevice device, Allocator& allocator, const VkImageCreateInfo& imageCreateInfo, const VkQueue sparseQueue, const MemoryRequirement memoryRequirement) ImageWithMemory() argument [all...] |
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/ |
H A D | vk_internal_shaders_autogen.cpp | 393 void ShaderLibrary::destroy(VkDevice device) 397 shader.get().destroy(device); 401 shader.get().destroy(device); 405 shader.get().destroy(device); 409 shader.get().destroy(device); 413 shader.get().destroy(device); 417 shader.get().destroy(device); 421 shader.get().destroy(device); 425 shader.get().destroy(device); 429 shader.get().destroy(device); [all...] |
/kernel/linux/linux-6.6/arch/arm/mm/ |
H A D | dma-mapping.c | 16 #include <linux/device.h> 42 struct device *dev; 52 struct device *dev; 97 * by it) or exclusively owned by the DMA device. These helper functions 141 static struct page *__dma_alloc_buffer(struct device *dev, size_t size, in __dma_alloc_buffer() 176 static void *__alloc_from_contiguous(struct device *dev, size_t size, 181 static void *__alloc_remap_buffer(struct device *dev, size_t size, gfp_t gfp, 328 static void *__alloc_remap_buffer(struct device *dev, size_t size, gfp_t gfp, in __alloc_remap_buffer() 335 * __alloc_remap_buffer is only called when the device is in __alloc_remap_buffer() 391 static void *__alloc_from_contiguous(struct device *de [all...] |
/kernel/linux/linux-5.10/drivers/hwmon/ |
H A D | w83627hf.c | 67 MODULE_PARM_DESC(force_id, "Override the detected device ID"); 70 #define DEV 0x07 /* Register: Logical device select */ 72 /* logical device numbers for superio_select (below) */ 353 struct device *hwmon_dev; 398 static struct w83627hf_data *w83627hf_update_device(struct device *dev); 402 static int w83627hf_suspend(struct device *dev) in w83627hf_suspend() 414 static int w83627hf_resume(struct device *dev) in w83627hf_resume() 477 in_input_show(struct device *dev, struct device_attribute *devattr, char *buf) in in_input_show() 484 in_min_show(struct device *dev, struct device_attribute *devattr, char *buf) in in_min_show() 491 in_max_show(struct device *de [all...] |
H A D | adm9240.c | 268 static struct adm9240_data *adm9240_update_device(struct device *dev) in adm9240_update_device() 306 static ssize_t temp1_input_show(struct device *dev, in temp1_input_show() 317 static ssize_t max_show(struct device *dev, struct device_attribute *devattr, in max_show() 329 static ssize_t max_store(struct device *dev, struct device_attribute *devattr, in max_store() 354 static ssize_t in_show(struct device *dev, struct device_attribute *devattr, in in_show() 367 static ssize_t in_min_show(struct device *dev, in in_min_show() 380 static ssize_t in_max_show(struct device *dev, in in_max_show() 393 static ssize_t in_min_store(struct device *dev, in in_min_store() 414 static ssize_t in_max_store(struct device *dev, in in_max_store() 455 static ssize_t fan_show(struct device *de [all...] |
H A D | via686a.c | 18 * Warning - only supports a single device. 39 * the device at the given address. 193 * that the transfer function of the device is monotonic and smooth, so a 305 struct device *hwmon_dev; 338 static struct via686a_data *via686a_update_device(struct device *dev); 344 static ssize_t in_show(struct device *dev, struct device_attribute *da, in in_show() 352 static ssize_t in_min_show(struct device *dev, struct device_attribute *da, in in_min_show() 360 static ssize_t in_max_show(struct device *dev, struct device_attribute *da, in in_max_show() 368 static ssize_t in_min_store(struct device *dev, struct device_attribute *da, in in_min_store() 387 static ssize_t in_max_store(struct device *de in in_min_store() [all...] |
H A D | amc6821.c | 164 static struct amc6821_data *amc6821_update_device(struct device *dev) in amc6821_update_device() 267 static ssize_t temp_show(struct device *dev, struct device_attribute *devattr, in temp_show() 276 static ssize_t temp_store(struct device *dev, struct device_attribute *attr, in temp_store() 299 static ssize_t temp_alarm_show(struct device *dev, in temp_alarm_show() 335 static ssize_t temp2_fault_show(struct device *dev, in temp2_fault_show() 345 static ssize_t pwm1_show(struct device *dev, struct device_attribute *devattr, in pwm1_show() 352 static ssize_t pwm1_store(struct device *dev, in pwm1_store() 370 static ssize_t pwm1_enable_show(struct device *dev, in pwm1_enable_show() 377 static ssize_t pwm1_enable_store(struct device *dev, in pwm1_enable_store() 424 static ssize_t pwm1_auto_channels_temp_show(struct device *de [all...] |
H A D | sis5595.c | 22 * Note: these chips contain a 0008 device which is incompatible with the 59 * the device at the given address. 171 struct device *hwmon_dev; 199 static struct sis5595_data *sis5595_update_device(struct device *dev); 211 static ssize_t in_show(struct device *dev, struct device_attribute *da, in in_show() 220 static ssize_t in_min_show(struct device *dev, struct device_attribute *da, in in_min_show() 229 static ssize_t in_max_show(struct device *dev, struct device_attribute *da, in in_max_show() 238 static ssize_t in_min_store(struct device *dev, struct device_attribute *da, in in_min_store() 258 static ssize_t in_max_store(struct device *dev, struct device_attribute *da, in in_max_store() 295 static ssize_t temp1_input_show(struct device *de [all...] |
/kernel/linux/linux-5.10/drivers/scsi/ |
H A D | scsi_error.c | 142 struct scsi_device *sdev = scmd->device; in scmd_eh_abort_handler() 196 struct scsi_device *sdev = scmd->device; in scsi_abort_command() 243 struct Scsi_Host *shost = scmd->device->host; in scsi_eh_inc_host_failed() 259 struct Scsi_Host *shost = scmd->device->host; in scsi_eh_scmd_add() 297 struct Scsi_Host *host = scmd->device->host; in scsi_times_out() 330 * see whether the host or the device is offline. 365 if (scmd->device == sdev) { in scsi_eh_prt_fail_stats() 445 "Power-on or device reset occurred\n"); in scsi_report_sense() 484 struct scsi_device *sdev = scmd->device; in scsi_check_sense() 557 if (scmd->device in scsi_check_sense() [all...] |
/kernel/linux/linux-6.6/net/core/ |
H A D | net-sysfs.c | 3 * net-sysfs.c - network device class and attributes 44 static ssize_t netdev_show(const struct device *dev, in netdev_show() 65 static ssize_t field##_show(struct device *dev, \ 80 static ssize_t netdev_store(struct device *dev, struct device_attribute *attr, in netdev_store() 117 static ssize_t iflink_show(struct device *dev, struct device_attribute *attr, in iflink_show() 131 static ssize_t name_assign_type_show(struct device *dev, in name_assign_type_show() 146 static ssize_t address_show(struct device *dev, struct device_attribute *attr, in address_show() 160 static ssize_t broadcast_show(struct device *dev, in broadcast_show() 178 static ssize_t carrier_store(struct device *dev, struct device_attribute *attr, in carrier_store() 192 static ssize_t carrier_show(struct device *de [all...] |
/third_party/libdrm/tests/modetest/ |
H A D | modetest.c | 115 struct device { struct 197 static void dump_encoders(struct device *dev) in dump_encoders() 242 static void dump_blob(struct device *dev, uint32_t blob_id) in dump_blob() 301 static void dump_in_formats(struct device *dev, uint32_t blob_id) in dump_in_formats() 330 static void dump_prop(struct device *dev, drmModePropertyPtr prop, in dump_prop() 412 static void dump_connectors(struct device *dev) in dump_connectors() 455 static void dump_crtcs(struct device *dev) in dump_crtcs() 488 static void dump_framebuffers(struct device *dev) in dump_framebuffers() 508 static void dump_planes(struct device *dev) in dump_planes() 596 static struct resources *get_resources(struct device *de 2035 char *device = NULL; main() local [all...] |
/foundation/distributedhardware/device_manager/services/implementation/src/dependency/softbus/ |
H A D | softbus_connector.cpp | 429 void SoftbusConnector::OnSoftbusDeviceFound(const DeviceInfo *device) in OnSoftbusDeviceFound() argument 431 if (device == nullptr) { in OnSoftbusDeviceFound() 432 LOGE("[SOFTBUS]device is null."); in OnSoftbusDeviceFound() 435 std::string deviceId = device->devId; in OnSoftbusDeviceFound() 436 LOGI("[SOFTBUS]notify found device: %{public}s found, range: %{public}d, isOnline: %{public}d.", in OnSoftbusDeviceFound() 437 GetAnonyString(deviceId).c_str(), device->range, device->isOnline); in OnSoftbusDeviceFound() 438 if (!device->isOnline) { in OnSoftbusDeviceFound() 441 int32_t ret = memcpy_s(srcInfo, sizeof(DeviceInfo), device, sizeof(DeviceInfo)); in OnSoftbusDeviceFound() 443 LOGE("save discovery device inf in OnSoftbusDeviceFound() 478 OnSoftbusDeviceDiscovery(const DeviceInfo *device) OnSoftbusDeviceDiscovery() argument [all...] |
/kernel/linux/linux-5.10/drivers/media/platform/qcom/venus/ |
H A D | pm_helpers.c | 27 struct device *dev = core->dev; in core_clks_get() 87 static int vcodec_clks_get(struct venus_core *core, struct device *dev, in vcodec_clks_get() 214 * Actual bandwidth drop will be done during device supend in load_scale_bw() 215 * so that device can power down without any warnings. in load_scale_bw() 233 struct device *dev = core->dev; in load_scale_v1() 317 static int vdec_get_v3(struct device *dev) in vdec_get_v3() 325 static int vdec_power_v3(struct device *dev, int on) in vdec_power_v3() 342 static int venc_get_v3(struct device *dev) in venc_get_v3() 350 static int venc_power_v3(struct device *dev, int on) in venc_power_v3() 661 static int vdec_get_v4(struct device *de [all...] |
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/ |
H A D | qp.c | 206 struct hfi1_ibdev *dev = to_idev(ibqp->device); in hfi1_check_modify_qp() 211 sc = ah_to_sc(ibqp->device, &attr->ah_attr); in hfi1_check_modify_qp() 224 sc = ah_to_sc(ibqp->device, &attr->alt_ah_attr); in hfi1_check_modify_qp() 251 hfi1_update_ah_attr(qp->ibqp.device, &qp->remote_ah_attr); in qp_set_16b() 259 ibp = to_iport(qp->ibqp.device, qp->port_num); in qp_set_16b() 271 priv->s_sc = ah_to_sc(ibqp->device, &qp->remote_ah_attr); in hfi1_modify_qp() 281 priv->s_sc = ah_to_sc(ibqp->device, &qp->remote_ah_attr); in hfi1_modify_qp() 307 struct hfi1_ibport *ibp = to_iport(qp->ibqp.device, qp->port_num); in hfi1_setup_wqe() 368 to_iport(qp->ibqp.device, qp->port_num); in _hfi1_schedule_send() 507 to_iport(qp->ibqp.device, q in iowait_sleep() [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/marvell/libertas/ |
H A D | mesh.c | 155 * @dev: the &struct device 156 * @attr: device attributes 159 static ssize_t lbs_anycast_get(struct device *dev, in lbs_anycast_get() 177 * @dev: the &struct device 178 * @attr: device attributes 182 static ssize_t lbs_anycast_set(struct device *dev, in lbs_anycast_set() 203 * @dev: the &struct device 204 * @attr: device attributes 207 static ssize_t lbs_prb_rsp_limit_get(struct device *dev, in lbs_prb_rsp_limit_get() 229 * @dev: the &struct device [all...] |
/kernel/linux/linux-5.10/drivers/scsi/fcoe/ |
H A D | fcoe_sysfs.c | 137 static ssize_t show_fcoe_ctlr_device_##field(struct device *dev, \ 149 static ssize_t show_fcoe_fcf_device_##field(struct device *dev, \ 162 static ssize_t show_fcoe_ctlr_device_##field(struct device *dev, \ 171 static ssize_t show_fcoe_fcf_device_##field(struct device *dev, \ 244 static ssize_t show_fcf_state(struct device *dev, in show_fcf_state() 258 static ssize_t show_ctlr_mode(struct device *dev, in show_ctlr_mode() 272 static ssize_t store_ctlr_mode(struct device *dev, in store_ctlr_mode() 321 static ssize_t store_ctlr_enabled(struct device *dev, in store_ctlr_enabled() 366 static ssize_t show_ctlr_enabled_state(struct device *dev, in show_ctlr_enabled_state() 384 static ssize_t store_ctlr_fip_resp(struct device *de [all...] |
/kernel/linux/linux-5.10/fs/btrfs/ |
H A D | reada.c | 35 * enumeration. It will also make use of multi-device layouts. Each disk 71 struct btrfs_device *device; member 272 zone->device = dev; /* our device always sits at index 0 */ in reada_find_zone() 357 /* cannot read ahead on missing device. */ in reada_find_extent() 380 /* Insert extent in reada tree + all per-device trees, all or nothing */ in reada_find_extent() 409 dev = re->zones[nzones]->device; in reada_find_extent() 414 * are on the same device, there's nothing to gain in reada_find_extent() 416 * Also, it wouldn't work, as the tree is per device in reada_find_extent() 430 * as this device i in reada_find_extent() 780 struct btrfs_device *device; reada_start_for_fsdevs() local 845 struct btrfs_device *device; dump_devs() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | core_hwmon.c | 6 #include <linux/device.h> 46 struct device *hwmon_dev; 56 static ssize_t mlxsw_hwmon_temp_show(struct device *dev, in mlxsw_hwmon_temp_show() 79 static ssize_t mlxsw_hwmon_temp_max_show(struct device *dev, in mlxsw_hwmon_temp_max_show() 102 static ssize_t mlxsw_hwmon_temp_rst_store(struct device *dev, in mlxsw_hwmon_temp_rst_store() 137 static ssize_t mlxsw_hwmon_fan_rpm_show(struct device *dev, in mlxsw_hwmon_fan_rpm_show() 156 static ssize_t mlxsw_hwmon_fan_fault_show(struct device *dev, in mlxsw_hwmon_fan_fault_show() 177 static ssize_t mlxsw_hwmon_pwm_show(struct device *dev, in mlxsw_hwmon_pwm_show() 197 static ssize_t mlxsw_hwmon_pwm_store(struct device *dev, in mlxsw_hwmon_pwm_store() 223 static int mlxsw_hwmon_module_temp_get(struct device *de [all...] |
/kernel/linux/linux-6.6/drivers/target/loopback/ |
H A D | tcm_loop.c | 83 static int tcm_loop_driver_probe(struct device *); 84 static void tcm_loop_driver_remove(struct device *); 99 static struct device *tcm_loop_primary; 111 tl_hba = *(struct tcm_loop_hba **)shost_priv(sc->device->host); in tcm_loop_target_queue_cmd() 112 tl_tpg = &tl_hba->tl_hba_tpgs[sc->device->id]; in tcm_loop_target_queue_cmd() 115 * Ensure that this tl_tpg reference from the incoming sc->device->id in tcm_loop_target_queue_cmd() 148 tl_cmd->sc->device->lun, transfer_length, in tcm_loop_target_queue_cmd() 173 __func__, sc->device->host->host_no, sc->device->id, in tcm_loop_queuecommand() 174 sc->device in tcm_loop_queuecommand() [all...] |