Home
last modified time | relevance | path

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

/linux-6.6.21/include/linux/
Dauxiliary_bus.h181 int (*probe)(struct auxiliary_device *auxdev, const struct auxiliary_device_id *id);
182 void (*remove)(struct auxiliary_device *auxdev);
183 void (*shutdown)(struct auxiliary_device *auxdev);
184 int (*suspend)(struct auxiliary_device *auxdev, pm_message_t state);
185 int (*resume)(struct auxiliary_device *auxdev);
191 static inline void *auxiliary_get_drvdata(struct auxiliary_device *auxdev) in auxiliary_get_drvdata() argument
193 return dev_get_drvdata(&auxdev->dev); in auxiliary_get_drvdata()
196 static inline void auxiliary_set_drvdata(struct auxiliary_device *auxdev, void *data) in auxiliary_set_drvdata() argument
198 dev_set_drvdata(&auxdev->dev, data); in auxiliary_set_drvdata()
211 int auxiliary_device_init(struct auxiliary_device *auxdev);
[all …]
Dintel_tpmi.h26 struct intel_tpmi_plat_info *tpmi_get_platform_data(struct auxiliary_device *auxdev);
27 struct resource *tpmi_get_resource_at_index(struct auxiliary_device *auxdev, int index);
28 int tpmi_get_resource_count(struct auxiliary_device *auxdev);
30 int tpmi_get_feature_status(struct auxiliary_device *auxdev, int feature_id, int *locked,
/linux-6.6.21/drivers/base/
Dauxiliary.c162 const struct auxiliary_device *auxdev) in auxiliary_match_id() argument
165 const char *p = strrchr(dev_name(&auxdev->dev), '.'); in auxiliary_match_id()
170 match_size = p - dev_name(&auxdev->dev); in auxiliary_match_id()
174 !strncmp(dev_name(&auxdev->dev), id->name, match_size)) in auxiliary_match_id()
182 struct auxiliary_device *auxdev = to_auxiliary_dev(dev); in auxiliary_match() local
185 return !!auxiliary_match_id(auxdrv->id_table, auxdev); in auxiliary_match()
207 struct auxiliary_device *auxdev = to_auxiliary_dev(dev); in auxiliary_bus_probe() local
216 ret = auxdrv->probe(auxdev, auxiliary_match_id(auxdrv->id_table, auxdev)); in auxiliary_bus_probe()
226 struct auxiliary_device *auxdev = to_auxiliary_dev(dev); in auxiliary_bus_remove() local
229 auxdrv->remove(auxdev); in auxiliary_bus_remove()
[all …]
/linux-6.6.21/drivers/soundwire/
Dintel_init.c24 struct auxiliary_device *auxdev = to_auxiliary_dev(dev); in intel_link_dev_release() local
25 struct sdw_intel_link_dev *ldev = auxiliary_dev_to_sdw_intel_link_dev(auxdev); in intel_link_dev_release()
39 struct auxiliary_device *auxdev; in intel_link_dev_register() local
46 auxdev = &ldev->auxdev; in intel_link_dev_register()
47 auxdev->name = name; in intel_link_dev_register()
48 auxdev->dev.parent = res->parent; in intel_link_dev_register()
49 auxdev->dev.fwnode = fwnode; in intel_link_dev_register()
50 auxdev->dev.release = intel_link_dev_release; in intel_link_dev_register()
53 auxdev->id = link_id; in intel_link_dev_register()
91 ret = auxiliary_device_init(auxdev); in intel_link_dev_register()
[all …]
Dintel_auxdevice.h7 int intel_link_startup(struct auxiliary_device *auxdev);
8 int intel_link_process_wakeen_event(struct auxiliary_device *auxdev);
11 struct auxiliary_device auxdev; member
16 container_of(auxiliary_dev, struct sdw_intel_link_dev, auxdev)
Dintel_auxdevice.c211 static int intel_link_probe(struct auxiliary_device *auxdev, in intel_link_probe() argument
215 struct device *dev = &auxdev->dev; in intel_link_probe()
216 struct sdw_intel_link_dev *ldev = auxiliary_dev_to_sdw_intel_link_dev(auxdev); in intel_link_probe()
229 sdw->instance = auxdev->id; in intel_link_probe()
240 bus->link_id = auxdev->id; in intel_link_probe()
249 auxiliary_set_drvdata(auxdev, cdns); in intel_link_probe()
276 int intel_link_startup(struct auxiliary_device *auxdev) in intel_link_startup() argument
278 struct device *dev = &auxdev->dev; in intel_link_startup()
279 struct sdw_cdns *cdns = auxiliary_get_drvdata(auxdev); in intel_link_startup()
388 static void intel_link_remove(struct auxiliary_device *auxdev) in intel_link_remove() argument
[all …]
/linux-6.6.21/sound/soc/sof/
Dsof-client.c50 struct auxiliary_device *auxdev = to_auxiliary_dev(dev); in sof_client_auxdev_release() local
51 struct sof_client_dev *cdev = auxiliary_dev_to_sof_client_dev(auxdev); in sof_client_auxdev_release()
53 kfree(cdev->auxdev.dev.platform_data); in sof_client_auxdev_release()
68 cdev->auxdev.dev.platform_data = d; in sof_client_dev_add_data()
211 struct auxiliary_device *auxdev; in sof_client_dev_register() local
220 auxdev = &cdev->auxdev; in sof_client_dev_register()
221 auxdev->name = name; in sof_client_dev_register()
222 auxdev->dev.parent = sdev->dev; in sof_client_dev_register()
223 auxdev->dev.release = sof_client_auxdev_release; in sof_client_dev_register()
224 auxdev->id = id; in sof_client_dev_register()
[all …]
Dsof-client-ipc-kernel-injector.c46 struct device *dev = &cdev->auxdev.dev; in sof_kernel_msg_inject_dfs_write()
91 static int sof_msg_inject_probe(struct auxiliary_device *auxdev, in sof_msg_inject_probe() argument
94 struct sof_client_dev *cdev = auxiliary_dev_to_sof_client_dev(auxdev); in sof_msg_inject_probe()
96 struct device *dev = &auxdev->dev; in sof_msg_inject_probe()
101 priv = devm_kzalloc(&auxdev->dev, sizeof(*priv), GFP_KERNEL); in sof_msg_inject_probe()
129 static void sof_msg_inject_remove(struct auxiliary_device *auxdev) in sof_msg_inject_remove() argument
131 struct sof_client_dev *cdev = auxiliary_dev_to_sof_client_dev(auxdev); in sof_msg_inject_remove()
134 pm_runtime_disable(&auxdev->dev); in sof_msg_inject_remove()
Dsof-client-ipc-flood-test.c65 struct device *dev = &cdev->auxdev.dev; in sof_debug_ipc_flood_test()
157 struct device *dev = &cdev->auxdev.dev; in sof_ipc_flood_dfs_write()
295 static int sof_ipc_flood_probe(struct auxiliary_device *auxdev, in sof_ipc_flood_probe() argument
298 struct sof_client_dev *cdev = auxiliary_dev_to_sof_client_dev(auxdev); in sof_ipc_flood_probe()
300 struct device *dev = &auxdev->dev; in sof_ipc_flood_probe()
325 if (auxdev->id == 0) { in sof_ipc_flood_probe()
356 static void sof_ipc_flood_remove(struct auxiliary_device *auxdev) in sof_ipc_flood_remove() argument
358 struct sof_client_dev *cdev = auxiliary_dev_to_sof_client_dev(auxdev); in sof_ipc_flood_remove()
361 pm_runtime_disable(&auxdev->dev); in sof_ipc_flood_remove()
363 if (auxdev->id == 0) { in sof_ipc_flood_remove()
Dsof-client-ipc-msg-injector.c125 struct device *dev = &cdev->auxdev.dev; in sof_msg_inject_send_message()
251 static int sof_msg_inject_probe(struct auxiliary_device *auxdev, in sof_msg_inject_probe() argument
254 struct sof_client_dev *cdev = auxiliary_dev_to_sof_client_dev(auxdev); in sof_msg_inject_probe()
257 struct device *dev = &auxdev->dev; in sof_msg_inject_probe()
262 priv = devm_kzalloc(&auxdev->dev, sizeof(*priv), GFP_KERNEL); in sof_msg_inject_probe()
307 static void sof_msg_inject_remove(struct auxiliary_device *auxdev) in sof_msg_inject_remove() argument
309 struct sof_client_dev *cdev = auxiliary_dev_to_sof_client_dev(auxdev); in sof_msg_inject_remove()
312 pm_runtime_disable(&auxdev->dev); in sof_msg_inject_remove()
Dsof-client.h26 struct auxiliary_device auxdev; member
35 container_of(auxiliary_dev, struct sof_client_dev, auxdev)
38 container_of(to_auxiliary_dev(dev), struct sof_client_dev, auxdev)
Dsof-client-probes.c196 struct device *dev = &cdev->auxdev.dev; in sof_probes_dfs_points_read()
258 struct device *dev = &cdev->auxdev.dev; in sof_probes_dfs_points_write()
317 struct device *dev = &cdev->auxdev.dev; in sof_probes_dfs_points_remove_write()
386 static int sof_probes_client_probe(struct auxiliary_device *auxdev, in sof_probes_client_probe() argument
389 struct sof_client_dev *cdev = auxiliary_dev_to_sof_client_dev(auxdev); in sof_probes_client_probe()
391 struct device *dev = &auxdev->dev; in sof_probes_client_probe()
515 static void sof_probes_client_remove(struct auxiliary_device *auxdev) in sof_probes_client_remove() argument
517 struct sof_client_dev *cdev = auxiliary_dev_to_sof_client_dev(auxdev); in sof_probes_client_remove()
523 pm_runtime_disable(&auxdev->dev); in sof_probes_client_remove()
Dsof-client-probes-ipc4.c71 struct device *dev = &cdev->auxdev.dev; in sof_ipc4_probe_get_module_info()
/linux-6.6.21/drivers/platform/x86/intel/uncore-frequency/
Duncore-frequency-tpmi.c233 static int uncore_probe(struct auxiliary_device *auxdev, const struct auxiliary_device_id *id) in uncore_probe() argument
241 num_resources = tpmi_get_resource_count(auxdev); in uncore_probe()
252 tpmi_uncore = devm_kzalloc(&auxdev->dev, sizeof(*tpmi_uncore), GFP_KERNEL); in uncore_probe()
259 tpmi_uncore->pd_info = devm_kcalloc(&auxdev->dev, num_resources, in uncore_probe()
270 plat_info = tpmi_get_platform_data(auxdev); in uncore_probe()
274 dev_info(&auxdev->dev, "Platform information is NULL\n"); in uncore_probe()
284 res = tpmi_get_resource_at_index(auxdev, i); in uncore_probe()
290 pd_info->uncore_base = devm_ioremap_resource(&auxdev->dev, res); in uncore_probe()
306 dev_info(&auxdev->dev, "Uncore: Unsupported version:%d\n", in uncore_probe()
314 dev_info(&auxdev->dev, "Uncore: Invalid cluster mask:%x\n", cluster_mask); in uncore_probe()
[all …]
/linux-6.6.21/drivers/platform/x86/intel/
Dtpmi.c171 struct intel_tpmi_plat_info *tpmi_get_platform_data(struct auxiliary_device *auxdev) in tpmi_get_platform_data() argument
173 struct intel_vsec_device *vsec_dev = auxdev_to_ivdev(auxdev); in tpmi_get_platform_data()
179 int tpmi_get_resource_count(struct auxiliary_device *auxdev) in tpmi_get_resource_count() argument
181 struct intel_vsec_device *vsec_dev = auxdev_to_ivdev(auxdev); in tpmi_get_resource_count()
190 struct resource *tpmi_get_resource_at_index(struct auxiliary_device *auxdev, int index) in tpmi_get_resource_at_index() argument
192 struct intel_vsec_device *vsec_dev = auxdev_to_ivdev(auxdev); in tpmi_get_resource_at_index()
333 int tpmi_get_feature_status(struct auxiliary_device *auxdev, int feature_id, in tpmi_get_feature_status() argument
336 struct intel_vsec_device *intel_vsec_dev = dev_to_ivdev(auxdev->dev.parent); in tpmi_get_feature_status()
337 struct intel_tpmi_info *tpmi_info = auxiliary_get_drvdata(&intel_vsec_dev->auxdev); in tpmi_get_feature_status()
525 static void tpmi_set_control_base(struct auxiliary_device *auxdev, in tpmi_set_control_base() argument
[all …]
Dvsec.h42 struct auxiliary_device auxdev; member
59 return container_of(dev, struct intel_vsec_device, auxdev.dev); in dev_to_ivdev()
62 static inline struct intel_vsec_device *auxdev_to_ivdev(struct auxiliary_device *auxdev) in auxdev_to_ivdev() argument
64 return container_of(auxdev, struct intel_vsec_device, auxdev); in auxdev_to_ivdev()
Dvsec.c126 ida_free(intel_vsec_dev->ida, intel_vsec_dev->auxdev.id); in intel_vsec_dev_release()
137 struct auxiliary_device *auxdev = &intel_vsec_dev->auxdev; in intel_vsec_add_aux() local
161 auxdev->id = id; in intel_vsec_add_aux()
162 auxdev->name = name; in intel_vsec_add_aux()
163 auxdev->dev.parent = parent; in intel_vsec_add_aux()
164 auxdev->dev.release = intel_vsec_dev_release; in intel_vsec_add_aux()
166 ret = auxiliary_device_init(auxdev); in intel_vsec_add_aux()
168 intel_vsec_dev_release(&auxdev->dev); in intel_vsec_add_aux()
172 ret = auxiliary_device_add(auxdev); in intel_vsec_add_aux()
174 auxiliary_device_uninit(auxdev); in intel_vsec_add_aux()
[all …]
Dsdsi.c614 static int sdsi_probe(struct auxiliary_device *auxdev, const struct auxiliary_device_id *id) in sdsi_probe() argument
616 struct intel_vsec_device *intel_cap_dev = auxdev_to_ivdev(auxdev); in sdsi_probe()
623 priv = devm_kzalloc(&auxdev->dev, sizeof(*priv), GFP_KERNEL); in sdsi_probe()
627 priv->dev = &auxdev->dev; in sdsi_probe()
629 auxiliary_set_drvdata(auxdev, priv); in sdsi_probe()
633 disc_addr = devm_ioremap_resource(&auxdev->dev, disc_res); in sdsi_probe()
/linux-6.6.21/drivers/powercap/
Dintel_rapl_tpmi.c226 static int intel_rapl_tpmi_probe(struct auxiliary_device *auxdev, in intel_rapl_tpmi_probe() argument
235 info = tpmi_get_platform_data(auxdev); in intel_rapl_tpmi_probe()
243 if (tpmi_get_resource_count(auxdev) > 1) { in intel_rapl_tpmi_probe()
244 dev_err(&auxdev->dev, "does not support multiple resources\n"); in intel_rapl_tpmi_probe()
249 res = tpmi_get_resource_at_index(auxdev, 0); in intel_rapl_tpmi_probe()
251 dev_err(&auxdev->dev, "can't fetch device resource info\n"); in intel_rapl_tpmi_probe()
256 trp->base = devm_ioremap_resource(&auxdev->dev, res); in intel_rapl_tpmi_probe()
277 dev_err(&auxdev->dev, "Domain for Package%d already exists\n", info->package_id); in intel_rapl_tpmi_probe()
284 dev_err(&auxdev->dev, "Failed to add RAPL Domain for Package%d, %ld\n", in intel_rapl_tpmi_probe()
290 auxiliary_set_drvdata(auxdev, trp); in intel_rapl_tpmi_probe()
[all …]
/linux-6.6.21/drivers/platform/x86/intel/speed_select_if/
Disst_tpmi_core.h14 int tpmi_sst_dev_add(struct auxiliary_device *auxdev);
15 void tpmi_sst_dev_remove(struct auxiliary_device *auxdev);
16 void tpmi_sst_dev_suspend(struct auxiliary_device *auxdev);
17 void tpmi_sst_dev_resume(struct auxiliary_device *auxdev);
Disst_tpmi.c16 static int intel_sst_probe(struct auxiliary_device *auxdev, const struct auxiliary_device_id *id) in intel_sst_probe() argument
24 ret = tpmi_sst_dev_add(auxdev); in intel_sst_probe()
31 static void intel_sst_remove(struct auxiliary_device *auxdev) in intel_sst_remove() argument
33 tpmi_sst_dev_remove(auxdev); in intel_sst_remove()
Disst_tpmi_core.c256 struct auxiliary_device *auxdev; member
309 static int sst_add_perf_profiles(struct auxiliary_device *auxdev, in sst_add_perf_profiles() argument
316 pd_info->perf_levels = devm_kcalloc(&auxdev->dev, levels, in sst_add_perf_profiles()
347 static int sst_main(struct auxiliary_device *auxdev, struct tpmi_per_power_domain_info *pd_info) in sst_main() argument
356 dev_err(&auxdev->dev, "SST: Unsupported version:%x\n", in sst_main()
378 sst_add_perf_profiles(auxdev, pd_info, levels + 1); in sst_main()
1253 int tpmi_sst_dev_add(struct auxiliary_device *auxdev) in tpmi_sst_dev_add() argument
1260 plat_info = tpmi_get_platform_data(auxdev); in tpmi_sst_dev_add()
1262 dev_err(&auxdev->dev, "No platform info\n"); in tpmi_sst_dev_add()
1268 dev_err(&auxdev->dev, "Invalid package id :%x\n", pkg); in tpmi_sst_dev_add()
[all …]
/linux-6.6.21/drivers/platform/x86/intel/pmt/
Dtelemetry.c94 static void pmt_telem_remove(struct auxiliary_device *auxdev) in pmt_telem_remove() argument
96 struct pmt_telem_priv *priv = auxiliary_get_drvdata(auxdev); in pmt_telem_remove()
103 static int pmt_telem_probe(struct auxiliary_device *auxdev, const struct auxiliary_device_id *id) in pmt_telem_probe() argument
105 struct intel_vsec_device *intel_vsec_dev = auxdev_to_ivdev(auxdev); in pmt_telem_probe()
111 priv = devm_kzalloc(&auxdev->dev, size, GFP_KERNEL); in pmt_telem_probe()
115 auxiliary_set_drvdata(auxdev, priv); in pmt_telem_probe()
131 pmt_telem_remove(auxdev); in pmt_telem_probe()
Dcrashlog.c260 static void pmt_crashlog_remove(struct auxiliary_device *auxdev) in pmt_crashlog_remove() argument
262 struct pmt_crashlog_priv *priv = auxiliary_get_drvdata(auxdev); in pmt_crashlog_remove()
269 static int pmt_crashlog_probe(struct auxiliary_device *auxdev, in pmt_crashlog_probe() argument
272 struct intel_vsec_device *intel_vsec_dev = auxdev_to_ivdev(auxdev); in pmt_crashlog_probe()
278 priv = devm_kzalloc(&auxdev->dev, size, GFP_KERNEL); in pmt_crashlog_probe()
282 auxiliary_set_drvdata(auxdev, priv); in pmt_crashlog_probe()
298 pmt_crashlog_remove(auxdev); in pmt_crashlog_probe()
Dclass.c307 struct device *dev = &intel_vsec_dev->auxdev.dev; in intel_pmt_dev_create()