Home
last modified time | relevance | path

Searched refs:device (Results 1 – 25 of 1684) sorted by relevance

12345678910>>...68

/device/board/isoftstone/zhiyuan/kernel/driver/drivers/net/wireless/xr829/include/linux/
Dpm_runtime.h33 extern int pm_generic_runtime_suspend(struct device *dev);
34 extern int pm_generic_runtime_resume(struct device *dev);
35 extern int pm_runtime_force_suspend(struct device *dev);
36 extern int pm_runtime_force_resume(struct device *dev);
38 extern int __pm_runtime_idle(struct device *dev, int rpmflags);
39 extern int __pm_runtime_suspend(struct device *dev, int rpmflags);
40 extern int __pm_runtime_resume(struct device *dev, int rpmflags);
41 extern int pm_runtime_get_if_in_use(struct device *dev);
42 extern int pm_schedule_suspend(struct device *dev, unsigned int delay);
43 extern int __pm_runtime_set_status(struct device *dev, unsigned int status);
[all …]
Dpm_qos.h118 struct device *dev;
163 enum pm_qos_flags_status __dev_pm_qos_flags(struct device *dev, s32 mask);
164 enum pm_qos_flags_status dev_pm_qos_flags(struct device *dev, s32 mask);
165 s32 __dev_pm_qos_resume_latency(struct device *dev);
166 s32 dev_pm_qos_read_value(struct device *dev, enum dev_pm_qos_req_type type);
167 int dev_pm_qos_add_request(struct device *dev, struct dev_pm_qos_request *req,
171 int dev_pm_qos_add_notifier(struct device *dev,
174 int dev_pm_qos_remove_notifier(struct device *dev,
177 void dev_pm_qos_constraints_init(struct device *dev);
178 void dev_pm_qos_constraints_destroy(struct device *dev);
[all …]
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/umplock/
Dumplock_driver.c57 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.items[i_index].secure_id = lock_item->secure_id; in do_umplock_create_locked()
156 device.items[i_index].id_ref_count = 0; in do_umplock_create_locked()
[all …]
/device/soc/rockchip/common/sdk_linux/include/linux/
Diommu.h58 struct device;
68 typedef int (*iommu_fault_handler_t)(struct iommu_domain *, struct device *, unsigned long, int, vo…
264 int (*attach_dev)(struct iommu_domain *domain, struct device *dev);
265 void (*detach_dev)(struct iommu_domain *domain, struct device *dev);
279 struct iommu_device *(*probe_device)(struct device *dev);
280 void (*release_device)(struct device *dev);
281 void (*probe_finalize)(struct device *dev);
282 struct iommu_group *(*device_group)(struct device *dev);
287 void (*get_resv_regions)(struct device *dev, struct list_head *list);
288 void (*put_resv_regions)(struct device *dev, struct list_head *list);
[all …]
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 *dev, dma_addr_t dma_handle, size_t size,
[all …]
Ddma-mapping.h96 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 *dev, struct page *page, size_t offset, size_t size,
120 void dma_unmap_page_attrs(struct device *dev, dma_addr_t addr, size_t size, enum dma_data_direction…
122 int dma_map_sg_attrs(struct device *dev, struct scatterlist *sg, int nents, enum dma_data_direction…
124 void dma_unmap_sg_attrs(struct device *dev, struct scatterlist *sg, int nents, enum dma_data_direct…
126 dma_addr_t dma_map_resource(struct device *dev, phys_addr_t phys_addr, size_t size, enum dma_data_d…
[all …]
/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/mali/platform/rk/
Drk.c59 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 ch… 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 *dev) in rk_platform_enable_clk_gpu()
362 static void rk_platform_disable_clk_gpu(struct device *dev) in rk_platform_disable_clk_gpu()
[all …]
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/mali/platform/rk/
Drk.c57 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 *dev) in rk_platform_enable_clk_gpu()
385 static void rk_platform_disable_clk_gpu(struct device *dev) in rk_platform_disable_clk_gpu()
[all …]
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/linuxkpi/include/linux/
Ddevice.h42 struct device { struct
48 struct device *parent; argument
56 VOID (*release)(struct device *dev); argument
68 INT32 (*probe)(struct device *dev); argument
69 INT32 (*remove)(struct device *dev);
70 VOID (*shutdown)(struct device *dev);
71 INT32 (*suspend)(struct device *dev, INT32 state);
72 INT32 (*resume)(struct device *dev);
81 INT32 (*suspend)(struct device *ptr);
82 INT32 (*resume)(struct device *ptr);
[all …]
/device/soc/winnermicro/wm800/board/src/bt/blehost/nimble/host/store/config/src/
Dwm_bt_storage.c560 bt_remote_device_t device; in btif_wm_config_find_by_key() local
563 tls_param_get(TLS_PARAM_ID_BT_REMOTE_DEVICE_1 + i, (void *)&device, 0); in btif_wm_config_find_by_key()
565 if ((device.valid_tag == 0xdeadbeaf) && device.in_use && in btif_wm_config_find_by_key()
566 (memcmp(device.bd_addr, bd_addr, 6) == 0)) { // 6:bytes in btif_wm_config_find_by_key()
577 tls_param_get(TLS_PARAM_ID_BT_REMOTE_DEVICE_1 + i, (void *)&device, 0); in btif_wm_config_find_by_key()
580 if ((device.valid_tag != 0xdeadbeaf) || (device.in_use == 0)) { in btif_wm_config_find_by_key()
583 memcpy_s(device.bd_addr, sizeof(device.bd_addr), bd_addr, 6); // 6:bytes in btif_wm_config_find_by_key()
584 device.in_use = 1; in btif_wm_config_find_by_key()
585 device.valid_tag = 0xdeadbeaf; in btif_wm_config_find_by_key()
586 tls_param_set(TLS_PARAM_ID_BT_REMOTE_DEVICE_1 + i, (void *)&device, 0); in btif_wm_config_find_by_key()
[all …]
/device/board/hihope/rk3568/audio_drivers/dsp/src/
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()
[all …]
/device/board/kaihong/khdvk_3566b/kernel/audio/dsp/src/
Drk3568_dsp_ops.c17 const struct DaiDevice *device) in DspDaiStartup() argument
20 (void)device; in DspDaiStartup()
33 int32_t DspDeviceInit(const struct DspDevice *device) in DspDeviceInit() argument
35 (void)device; in DspDeviceInit()
39 int32_t DspDeviceReadReg(const struct DspDevice *device, const void *msgs, in DspDeviceReadReg() argument
42 (void)device; in DspDeviceReadReg()
47 int32_t DspDeviceWriteReg(const struct DspDevice *device, const void *msgs, in DspDeviceWriteReg() argument
50 (void)device; in DspDeviceWriteReg()
55 int32_t DspDaiDeviceInit(struct AudioCard *card, const struct DaiDevice *device) in DspDaiDeviceInit() argument
58 (void)device; in DspDaiDeviceInit()
[all …]
/device/board/unionman/unionpi_tiger/kernel/hdf/audio/dsp/
Da311d_dsp_ops.c17 int32_t DspDaiStartup(const struct AudioCard *card, const struct DaiDevice *device) in DspDaiStartup() argument
20 (void)device; in DspDaiStartup()
31 int32_t DspDeviceInit(const struct DspDevice *device) in DspDeviceInit() argument
33 (void)device; in DspDeviceInit()
37 int32_t DspDeviceReadReg(const struct DspDevice *device, const void *msgs, const uint32_t len) in DspDeviceReadReg() argument
39 (void)device; in DspDeviceReadReg()
44 int32_t DspDeviceWriteReg(const struct DspDevice *device, const void *msgs, const uint32_t len) in DspDeviceWriteReg() argument
46 (void)device; in DspDeviceWriteReg()
51 int32_t DspDaiDeviceInit(struct AudioCard *card, const struct DaiDevice *device) in DspDaiDeviceInit() argument
54 (void)device; in DspDaiDeviceInit()
[all …]
/device/board/isoftstone/zhiyuan/kernel/hdf/driver/audio/dsp/src/
Ddsp_ops.c17 int32_t DspDaiStartup(const struct AudioCard *card, const struct DaiDevice *device) in DspDaiStartup() argument
20 (void)device; in DspDaiStartup()
31 int32_t DspDeviceInit(const struct DspDevice *device) in DspDeviceInit() argument
33 (void)device; in DspDeviceInit()
37 int32_t DspDeviceReadReg(const struct DspDevice *device, const void *msgs, const uint32_t len) in DspDeviceReadReg() argument
39 (void)device; in DspDeviceReadReg()
44 int32_t DspDeviceWriteReg(const struct DspDevice *device, const void *msgs, const uint32_t len) in DspDeviceWriteReg() argument
46 (void)device; in DspDeviceWriteReg()
51 int32_t DspDaiDeviceInit(struct AudioCard *card, const struct DaiDevice *device) in DspDaiDeviceInit() argument
54 (void)device; in DspDaiDeviceInit()
[all …]
/device/soc/rockchip/common/sdk_linux/include/soc/rockchip/
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 proces…
37 void rockchip_of_get_pvtm_sel(struct device *dev, struct device_node *np, char *reg_name, int proce…
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_vol…
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 p…
48 struct opp_table *rockchip_set_opp_prop_name(struct device *dev, int process, int volt_sel);
[all …]
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 *dev) in rockchip_pmu_pd_is_on()
[all …]
/device/soc/rockchip/rk3588/kernel/include/soc/rockchip/
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 *dev, int process,
[all …]
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 *dev) in rockchip_pmu_pd_is_on()
[all …]
/device/board/isoftstone/yangfan/kernel/src/incl/soc/
Drockchip_opp_select.h19 int (*get_soc_info)(struct device *dev, struct device_node *np,
21 int (*set_read_margin)(struct device *dev,
37 int rockchip_of_get_leakage(struct device *dev, char *lkg_name, int *leakage);
38 void rockchip_of_get_lkg_sel(struct device *dev, struct device_node *np,
41 void rockchip_of_get_pvtm_sel(struct device *dev, struct device_node *np,
44 void rockchip_of_get_bin_sel(struct device *dev, struct device_node *np,
46 void rockchip_of_get_bin_volt_sel(struct device *dev, struct device_node *np,
52 int rockchip_get_volt_rm_table(struct device *dev, struct device_node *np,
56 void rockchip_get_scale_volt_sel(struct device *dev, char *lkg_name,
59 struct opp_table *rockchip_set_opp_prop_name(struct device *dev, int process,
[all …]
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 *dev) in rockchip_pmu_pd_is_on()
[all …]
/device/board/kaihong/khdvk_3566b/kernel/touchscreen/
Dtouch_jdi_gt911.c19 static int32_t ChipInit(ChipDevice *device) in ChipInit() argument
24 static int32_t ChipResume(ChipDevice *device) in ChipResume() argument
29 static int32_t ChipSuspend(ChipDevice *device) in ChipSuspend() argument
34 static int32_t ChipDetect(ChipDevice *device) in ChipDetect() argument
40 InputI2cClient *i2cClient = &device->driver->i2cClient; in ChipDetect()
72 (void)ChipInit(device); in ChipDetect()
73 (void)ChipResume(device); in ChipDetect()
74 (void)ChipSuspend(device); in ChipDetect()
95 static void ParsePointData(ChipDevice *device, FrameData *frame, uint8_t *buf, in ParsePointData() argument
98 int32_t chipVer = device->chipCfg->chipVersion; in ParsePointData()
[all …]
/device/board/hisilicon/hispark_taurus/audio_drivers/soc/src/
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()
167device->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->devData->regConfig->audioRegParams[AUDIO_DAI_STARTUP_PATAM_GROUP]->itemNum; in Hi3516DaiStartup()
174 device->devData->regVirtualAddr = (uintptr_t)g_regDaiBase; in Hi3516DaiStartup()
176 int ret = AudioDaiRegUpdate(device, &regCfgItem[i]); in Hi3516DaiStartup()
[all …]
/device/board/isoftstone/zhiyuan/kernel/hdf/driver/audio/codec/t507/src/
Dt507_codec_adapter.c34 static int32_t CodecDriverBind(struct HdfDeviceObject *device) in CodecDriverBind() argument
40 if (device == NULL) { in CodecDriverBind()
50 codecHost->device = device; in CodecDriverBind()
51 device->service = &codecHost->service; in CodecDriverBind()
58 static int32_t CodecDriverInit(struct HdfDeviceObject *device) in CodecDriverInit() argument
60 if (device == NULL) { in CodecDriverInit()
65 if (CodecGetConfigInfo(device, &g_codecData) != HDF_SUCCESS) { in CodecDriverInit()
73 if (CodecGetServiceName(device, &g_codecData.drvCodecName) != HDF_SUCCESS) { in CodecDriverInit()
77 if (CodecGetDaiName(device, &g_codecDaiData.drvDaiName) != HDF_SUCCESS) { in CodecDriverInit()
81 if (AudioRegisterCodec(device, &g_codecData, &g_codecDaiData) != HDF_SUCCESS) { in CodecDriverInit()
[all …]
/device/board/unionman/unionpi_tiger/kernel/hdf/audio/codec/soc_codec/
Da311d_codec_adapter.c35 static int32_t CodecDriverBind(struct HdfDeviceObject *device) in CodecDriverBind() argument
41 if (device == NULL) { in CodecDriverBind()
51 codecHost->device = device; in CodecDriverBind()
52 device->service = &codecHost->service; in CodecDriverBind()
59 static int32_t CodecDriverInit(struct HdfDeviceObject *device) in CodecDriverInit() argument
61 if (device == NULL) { in CodecDriverInit()
66 if (CodecGetConfigInfo(device, &g_codecData) != HDF_SUCCESS) { in CodecDriverInit()
74 if (CodecGetServiceName(device, &g_codecData.drvCodecName) != HDF_SUCCESS) { in CodecDriverInit()
78 if (CodecGetDaiName(device, &g_codecDaiData.drvDaiName) != HDF_SUCCESS) { in CodecDriverInit()
82 if (AudioRegisterCodec(device, &g_codecData, &g_codecDaiData) != HDF_SUCCESS) { in CodecDriverInit()
[all …]
/device/soc/hisilicon/common/platform/hisi_sdk/
Dhisi_sdk.c23 static int32_t HisiSdkBind(struct HdfDeviceObject *device) in HisiSdkBind() argument
26 if (device == NULL) { 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 == NULL) { in HisiSdkBind2()
64 device->service = &service; in HisiSdkBind2()
[all …]

12345678910>>...68