Home
last modified time | relevance | path

Searched refs:device (Results 1 - 25 of 735) sorted by relevance

12345678910>>...30

/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/umplock/
H A Dumplock_driver.c16 #include <linux/device.h>
57 static umplock_device_private device; variable
72 if (device.items[i].secure_id == secure_id) { in umplock_find_item()
94 if (device.items[i].references[j].pid == lock_cmd->pid) { in umplock_find_item_by_pid()
112 if (device.pids[i] == pid) { in umplock_find_client_valid()
138 if (device.items[i_index].references[ref_index].pid == 0) { in do_umplock_create_locked()
143 device.items[i_index].references[ref_index].pid = lock_cmd->pid; in do_umplock_create_locked()
144 device.items[i_index].references[ref_index].ref_count = 0; in do_umplock_create_locked()
145 device.items[i_index].references[ref_index].down_count = 0; in do_umplock_create_locked()
155 device in do_umplock_create_locked()
[all...]
/device/soc/rockchip/common/sdk_linux/include/linux/
H A Diommu.h11 #include <linux/device.h>
58 struct device;
68 typedef int (*iommu_fault_handler_t)(struct iommu_domain *, struct device *, unsigned long, int, void *);
150 * for instance in device assignment use case (USB, Graphics)
153 /* Arbitrary "never map this or give it to a device" address ranges */
177 /* Per device IOMMU features */
209 * @attach_dev: attach device to an iommu domain
210 * @detach_dev: detach device from an iommu domain
223 * @probe_device: Add device to iommu driver handling
224 * @release_device: Remove device fro
[all...]
H A Ddma-mapping.h7 #include <linux/device.h>
37 * transferred to 'device' domain.
83 * be given to a device to use as a DMA source or target. It is specific to a
84 * given device and there may be a translation between the CPU physical address
96 void debug_dma_mapping_error(struct device *dev, dma_addr_t dma_addr);
97 void debug_dma_map_single(struct device *dev, const void *addr, unsigned long len);
99 static inline void debug_dma_mapping_error(struct device *dev, dma_addr_t dma_addr) in debug_dma_mapping_error()
102 static inline void debug_dma_map_single(struct device *dev, const void *addr, unsigned long len) in debug_dma_map_single()
108 static inline int dma_mapping_error(struct device *dev, dma_addr_t dma_addr) in dma_mapping_error()
118 dma_addr_t dma_map_page_attrs(struct device *de
[all...]
H A Ddma-map-ops.h16 void *(*alloc)(struct device *dev, size_t size, dma_addr_t *dma_handle,
18 void (*free)(struct device *dev, size_t size, void *vaddr,
20 struct page *(*alloc_pages)(struct device *dev, size_t size,
23 void (*free_pages)(struct device *dev, size_t size, struct page *vaddr,
25 void *(*alloc_noncoherent)(struct device *dev, size_t size,
28 void (*free_noncoherent)(struct device *dev, size_t size, void *vaddr,
31 int (*mmap)(struct device *, struct vm_area_struct *, void *, dma_addr_t,
34 int (*get_sgtable)(struct device *dev, struct sg_table *sgt, void *cpu_addr,
37 dma_addr_t (*map_page)(struct device *dev, struct page *page,
40 void (*unmap_page)(struct device *de
[all...]
/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/mali/platform/rk/
H A Drk.c58 /* mali device. */
59 struct device *dev;
71 static ssize_t utilisation_period_show(struct device *dev, struct device_attribute *attr, char *buf) in utilisation_period_show()
81 static ssize_t utilisation_period_store(struct device *dev, struct device_attribute *attr, const char *buf, in utilisation_period_store()
97 static ssize_t utilisation_show(struct device *dev, struct device_attribute *attr, char *buf) in utilisation_show()
128 static int rk_context_create_sysfs_files(struct device *dev) in rk_context_create_sysfs_files()
156 static void rk_context_remove_sysfs_files(struct device *dev) in rk_context_remove_sysfs_files()
172 struct device *dev = &pdev->dev; in rk_context_init()
204 struct device *dev = &pdev->dev; in rk_context_deinit()
349 static int rk_platform_enable_clk_gpu(struct device *de
444 mali_runtime_suspend(struct device *device) mali_runtime_suspend() argument
460 mali_runtime_resume(struct device *device) mali_runtime_resume() argument
474 mali_runtime_idle(struct device *device) mali_runtime_idle() argument
490 mali_os_suspend(struct device *device) mali_os_suspend() argument
506 mali_os_resume(struct device *device) mali_os_resume() argument
520 mali_os_freeze(struct device *device) mali_os_freeze() argument
532 mali_os_thaw(struct device *device) mali_os_thaw() argument
[all...]
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/mali/platform/rk/
H A Drk.c56 /* mali device. */
57 struct device *dev;
69 static ssize_t utilisation_period_show(struct device *dev, in utilisation_period_show()
81 static ssize_t utilisation_period_store(struct device *dev, in utilisation_period_store()
99 static ssize_t utilisation_show(struct device *dev, in utilisation_show()
132 static int rk_context_create_sysfs_files(struct device *dev) in rk_context_create_sysfs_files()
160 static void rk_context_remove_sysfs_files(struct device *dev) in rk_context_remove_sysfs_files()
176 struct device *dev = &pdev->dev; in rk_context_init()
208 struct device *dev = &pdev->dev; in rk_context_deinit()
373 static int rk_platform_enable_clk_gpu(struct device *de
464 mali_runtime_suspend(struct device *device) mali_runtime_suspend() argument
483 mali_runtime_resume(struct device *device) mali_runtime_resume() argument
501 mali_runtime_idle(struct device *device) mali_runtime_idle() argument
520 mali_os_suspend(struct device *device) mali_os_suspend() argument
539 mali_os_resume(struct device *device) mali_os_resume() argument
557 mali_os_freeze(struct device *device) mali_os_freeze() argument
573 mali_os_thaw(struct device *device) mali_os_thaw() argument
[all...]
/test/testfwk/xdevice/plugins/ohos/src/ohos/managers/
H A Dmanager_device.py52 @Plugin(type=Plugin.MANAGER, id=ManagerType.device)
55 Class representing device manager
78 self.support_types = ["device"]
92 devices = ohos_manager.get_devices("environment/device")
96 for device in devices:
98 device.get("ip"), device.get("port"), device.get("usb_type"))
101 ohos_manager.get_sn_list(device.get("sn")))
107 for device i
[all...]
H A Dmanager_lite.py47 Class representing device manager that
65 self.support_types = ["device"]
73 "environment/device")
76 for device in devices:
79 device_lite_instance.__init_device__(device)
94 Request a device for testing that meets certain criteria.
97 LOG.debug("Lite apply device: apply lock")
101 for device in self.devices_list:
102 if device_option.matches(device):
103 device
[all...]
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/linuxkpi/include/linux/
H A Ddevice.h37 /* device define */
40 * Define the structure of the parameters used for device creation.
42 struct device { struct
48 struct device *parent;
51 struct bus_type *bus; /**< type of bus device is on */
52 struct device_driver *driver; /**< which driver has allocated this device */
54 VOID *platform_data; /**< Platform specific data, device core doesn't touch it */
56 VOID (*release)(struct device *dev);
68 INT32 (*probe)(struct device *dev);
69 INT32 (*remove)(struct device *de
[all...]
/test/testfwk/xdevice/src/xdevice/_core/environment/
H A Dmanager_env.py60 for device in self.devices:
61 device_serials.append(convert_serial(device.__get_serial__()))
73 LOG.error(f"get device description error: {e}")
81 def add_device(self, device, index=None):
82 label = self.device_mapper.get(device.label, "DUT")
87 device.device_id = "%s%s" % (label, current) if not device.device_id else device.device_id
88 LOG.debug("add_device, sn: {}, id: {}".format(device.device_sn,
89 device
[all...]
/test/testfwk/xdevice/plugins/ohos/src/ohos/
H A Dexception.py111 def __init__(self, error_msg, error_no="", device=None):
113 if device:
114 self.print_info(device)
117 def print_info(device):
118 device.log.info("#############################################"
121 OHOSRpcNotRunningError.develop_mode(device)
122 OHOSRpcNotRunningError.memery_info(device)
123 device.log.info("#############################################"
128 def develop_mode(device):
129 if not device
[all...]
/test/testfwk/xdevice/plugins/ohos/src/ohos/testkit/
H A Dkit_lite.py78 def _reset(self, device):
79 cmd_com = device.device.com_dict.get(ComType.cmd_com)
86 device.device_allocation_state = DeviceAllocationState.unusable
96 def _send_file(self, device):
101 deploy_serial_port = device.device.com_dict.get(
103 deploy_baudrate = device.device.com_dict. \
120 device
[all...]
H A Dkit.py80 def __setup__(self, device, **kwargs):
82 LOG.debug("CommandKit setup, device:{}, params:{}".
83 format(device, self.get_plugin_config().__dict__))
88 self._run_command(command, device)
90 def __teardown__(self, device):
91 LOG.debug("CommandKit teardown: device:{}, params:{}".format
92 (device, self.get_plugin_config().__dict__))
97 self._run_command(command, device)
99 def _run_command(self, command, device):
105 device
[all...]
/device/board/hisilicon/hispark_taurus/audio_drivers/soc/src/
H A Dhi3516_dai_ops.c151 int32_t Hi3516DaiTrigger(const struct AudioCard *card, int cmd, const struct DaiDevice *device) in Hi3516DaiTrigger() argument
154 (void)device; in Hi3516DaiTrigger()
160 int32_t Hi3516DaiStartup(const struct AudioCard *card, const struct DaiDevice *device) in Hi3516DaiStartup() argument
165 if (device == NULL || device->devData == NULL || device->devData->regConfig == NULL || in Hi3516DaiStartup()
166 device->devData->regConfig->audioRegParams[AUDIO_DAI_STARTUP_PATAM_GROUP] == NULL || in Hi3516DaiStartup()
167 device->devData->regConfig->audioRegParams[AUDIO_DAI_STARTUP_PATAM_GROUP]->regCfgItem == NULL) { in Hi3516DaiStartup()
171 regCfgItem = device->devData->regConfig->audioRegParams[AUDIO_DAI_STARTUP_PATAM_GROUP]->regCfgItem; in Hi3516DaiStartup()
172 int itemNum = device in Hi3516DaiStartup()
191 SetIISRate(const struct DaiDevice *device, struct AudioMixerControl *regCfgItem, uint32_t itemNum) SetIISRate() argument
237 DaiParamsUpdate(const struct DaiDevice *device) DaiParamsUpdate() argument
300 struct DaiDevice *device = card->rtd->cpuDai; Hi3516DaiHwParams() local
[all...]
H A Dhi3516_dai_adapter.c41 static int32_t DaiDriverBind(struct HdfDeviceObject *device) in DaiDriverBind() argument
43 if (device == NULL) { in DaiDriverBind()
54 daiHost->device = device; in DaiDriverBind()
55 device->service = &daiHost->service; in DaiDriverBind()
62 static int32_t DaiGetServiceName(const struct HdfDeviceObject *device) in DaiGetServiceName() argument
64 if (device == NULL) { in DaiGetServiceName()
69 const struct DeviceResourceNode *node = device->property; in DaiGetServiceName()
89 static int32_t DaiDriverInit(struct HdfDeviceObject *device) in DaiDriverInit() argument
91 if (device in DaiDriverInit()
118 DaiDriverRelease(struct HdfDeviceObject *device) DaiDriverRelease() argument
[all...]
/test/testfwk/developer_test/src/core/command/
H A Ddistribute_utils.py46 for device in list(env_manager.managers.values())[0].devices_list:
47 get_device_info(device, file_handle)
49 for device in list(env_manager.managers.values())[1].devices_list:
50 get_device_info(device, file_handle)
53 def get_device_info(device, file_handle):
56 :param device:
60 if device.test_device_state.value == "ONLINE":
61 status = device.label if device.label else 'None'
62 LOG.info("%s,%s" % (device
[all...]
/device/soc/rockchip/common/sdk_linux/include/soc/rockchip/
H A Drockchip_opp_select.h19 int (*get_soc_info)(struct device *dev, struct device_node *np, int *bin, int *process);
20 int (*set_read_margin)(struct device *dev, struct rockchip_opp_info *opp_info, unsigned long volt);
34 int rockchip_of_get_leakage(struct device *dev, char *lkg_name, int *leakage);
35 void rockchip_of_get_lkg_sel(struct device *dev, struct device_node *np, char *lkg_name, int process, int *volt_sel,
37 void rockchip_of_get_pvtm_sel(struct device *dev, struct device_node *np, char *reg_name, int process, int *volt_sel,
39 void rockchip_of_get_bin_sel(struct device *dev, struct device_node *np, int bin, int *scale_sel);
40 void rockchip_of_get_bin_volt_sel(struct device *dev, struct device_node *np, int bin, int *bin_volt_sel);
43 int rockchip_get_volt_rm_table(struct device *dev, struct device_node *np, char *porp_name,
46 void rockchip_get_scale_volt_sel(struct device *dev, char *lkg_name, char *reg_name, int bin, int process, int *scale,
48 struct opp_table *rockchip_set_opp_prop_name(struct device *de
[all...]
H A Dpm_domains.h7 struct device;
10 int rockchip_pmu_pd_on(struct device *dev);
11 int rockchip_pmu_pd_off(struct device *dev);
12 bool rockchip_pmu_pd_is_on(struct device *dev);
13 int rockchip_pmu_idle_request(struct device *dev, bool idle);
14 int rockchip_save_qos(struct device *dev);
15 int rockchip_restore_qos(struct device *dev);
18 static inline int rockchip_pmu_pd_on(struct device *dev) in rockchip_pmu_pd_on()
23 static inline int rockchip_pmu_pd_off(struct device *dev) in rockchip_pmu_pd_off()
28 static inline bool rockchip_pmu_pd_is_on(struct device *de
[all...]
/device/soc/rockchip/rk3588/kernel/include/soc/rockchip/
H A Drockchip_opp_select.h19 int (*get_soc_info)(struct device *dev, struct device_node *np,
21 int (*set_read_margin)(struct device *dev,
38 int rockchip_of_get_leakage(struct device *dev, char *lkg_name, int *leakage);
39 void rockchip_of_get_lkg_sel(struct device *dev, struct device_node *np,
42 void rockchip_of_get_pvtm_sel(struct device *dev, struct device_node *np,
45 void rockchip_of_get_bin_sel(struct device *dev, struct device_node *np,
47 void rockchip_of_get_bin_volt_sel(struct device *dev, struct device_node *np,
53 int rockchip_get_volt_rm_table(struct device *dev, struct device_node *np,
57 void rockchip_get_scale_volt_sel(struct device *dev, char *lkg_name,
60 struct opp_table *rockchip_set_opp_prop_name(struct device *de
[all...]
H A Dpm_domains.h7 struct device;
10 int rockchip_pmu_pd_on(struct device *dev);
11 int rockchip_pmu_pd_off(struct device *dev);
12 bool rockchip_pmu_pd_is_on(struct device *dev);
13 int rockchip_pmu_idle_request(struct device *dev, bool idle);
14 int rockchip_save_qos(struct device *dev);
15 int rockchip_restore_qos(struct device *dev);
18 static inline int rockchip_pmu_pd_on(struct device *dev) in rockchip_pmu_pd_on()
23 static inline int rockchip_pmu_pd_off(struct device *dev) in rockchip_pmu_pd_off()
28 static inline bool rockchip_pmu_pd_is_on(struct device *de
[all...]
/device/board/hihope/rk3568/audio_drivers/dsp/src/
H A Drk3568_dsp_ops.c16 int32_t DspDaiStartup(const struct AudioCard *card, const struct DaiDevice *device) in DspDaiStartup() argument
19 (void)device; in DspDaiStartup()
32 int32_t DspDeviceInit(const struct DspDevice *device) in DspDeviceInit() argument
34 (void)device; in DspDeviceInit()
38 int32_t DspDeviceReadReg(const struct DspDevice *device, const void *msgs, const uint32_t len) in DspDeviceReadReg() argument
40 (void)device; in DspDeviceReadReg()
45 int32_t DspDeviceWriteReg(const struct DspDevice *device, const void *msgs, const uint32_t len) in DspDeviceWriteReg() argument
47 (void)device; in DspDeviceWriteReg()
52 int32_t DspDaiDeviceInit(struct AudioCard *card, const struct DaiDevice *device) in DspDaiDeviceInit() argument
55 (void)device; in DspDaiDeviceInit()
59 DspDecodeAudioStream(const struct AudioCard *card, const uint8_t *buf, const struct DspDevice *device) DspDecodeAudioStream() argument
68 DspEncodeAudioStream(const struct AudioCard *card, const uint8_t *buf, const struct DspDevice *device) DspEncodeAudioStream() argument
78 DspEqualizerActive(const struct AudioCard *card, const uint8_t *buf, const struct DspDevice *device) DspEqualizerActive() argument
[all...]
/device/board/hisilicon/hispark_taurus/audio_drivers/codec/hi3516/src/
H A Dhi3516_codec_adapter.c43 static int32_t CodecDriverBind(struct HdfDeviceObject *device) in CodecDriverBind() argument
45 if (device == NULL) { in CodecDriverBind()
55 codecHost->device = device; in CodecDriverBind()
56 device->service = &codecHost->service; in CodecDriverBind()
61 static int32_t CodecDriverInit(struct HdfDeviceObject *device) in CodecDriverInit() argument
63 if (device == NULL) { in CodecDriverInit()
64 AUDIO_DRIVER_LOG_ERR("device is NULL."); in CodecDriverInit()
68 if (CodecDaiGetPortConfigInfo(device, &g_codecDaiData) != HDF_SUCCESS) { in CodecDriverInit()
72 if (CodecGetConfigInfo(device, in CodecDriverInit()
97 CodecDriverRelease(struct HdfDeviceObject *device) CodecDriverRelease() argument
[all...]
/test/testfwk/xdevice/src/xdevice/_core/testkit/
H A Dkit.py47 def remount(device):
49 if device.usb_type == DeviceConnectorType.hdc else "remount"
50 device.connector_command(cmd)
51 device.execute_shell_command("remount")
52 device.execute_shell_command("mount -o rw,remount /")
53 device.execute_shell_command("mount -o rw,remount /sys_prod")
54 device.execute_shell_command("mount -o rw,remount /chip_prod")
55 device.execute_shell_command("mount -o rw,remount /preload")
56 device.execute_shell_command("mount -o rw,remount /patch_hw")
57 device
[all...]
/test/testfwk/developer_test/aw/python/distributed/distribute/
H A Ddistribute.py67 def get_current_driver(device, target_name, hdc_tools):
71 driver = CppTestDriver(device, hdc_tools)
73 driver = CppTestDriver(device, hdc_tools)
89 def pull_result(device, source_path, result_save_path):
91 device.pull_file(source_path, result_save_path)
96 def _check_thread(device, thread_name):
102 output = device.shell_with_output(check_command)
111 def _query_device_ip(device):
112 output = device.shell_with_output("getprop ro.hardware")
117 output = device
[all...]
/device/soc/hisilicon/common/platform/hisi_sdk/
H A Dhisi_sdk.c23 static int32_t HisiSdkBind(struct HdfDeviceObject *device) in HisiSdkBind() argument
26 if (device == NULL) { in HisiSdkBind()
27 HDF_LOGE("%s: device is null!", __func__); in HisiSdkBind()
30 device->service = &service; in HisiSdkBind()
37 static int32_t HisiSdkInit(struct HdfDeviceObject *device) in HisiSdkInit() argument
39 (void)device; in HisiSdkInit()
43 static void HisiSdkRelease(struct HdfDeviceObject *device) in HisiSdkRelease() argument
45 (void)device; in HisiSdkRelease()
57 static int32_t HisiSdkBind2(struct HdfDeviceObject *device) in HisiSdkBind2() argument
60 if (device in HisiSdkBind2()
71 HisiSdkInit2(struct HdfDeviceObject *device) HisiSdkInit2() argument
77 HisiSdkRelease2(struct HdfDeviceObject *device) HisiSdkRelease2() argument
[all...]

Completed in 12 milliseconds

12345678910>>...30