Home
last modified time | relevance | path

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

/linux-6.3-rc2/include/linux/
A Dauxiliary_bus.h182 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()
198 dev_set_drvdata(&auxdev->dev, data); in auxiliary_set_drvdata()
211 int auxiliary_device_init(struct auxiliary_device *auxdev);
213 #define auxiliary_device_add(auxdev) __auxiliary_device_add(auxdev, KBUILD_MODNAME) argument
217 put_device(&auxdev->dev); in auxiliary_device_uninit()
[all …]
A 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);
/linux-6.3-rc2/drivers/base/
A Dauxiliary.c170 match_size = p - dev_name(&auxdev->dev); in auxiliary_match_id()
216 ret = auxdrv->probe(auxdev, auxiliary_match_id(auxdrv->id_table, auxdev)); in auxiliary_bus_probe()
229 auxdrv->remove(auxdev); in auxiliary_bus_remove()
236 struct auxiliary_device *auxdev; in auxiliary_bus_shutdown() local
240 auxdev = to_auxiliary_dev(dev); in auxiliary_bus_shutdown()
244 auxdrv->shutdown(auxdev); in auxiliary_bus_shutdown()
276 struct device *dev = &auxdev->dev; in auxiliary_device_init()
283 if (!auxdev->name) { in auxiliary_device_init()
289 device_initialize(&auxdev->dev); in auxiliary_device_init()
315 struct device *dev = &auxdev->dev; in __auxiliary_device_add()
[all …]
/linux-6.3-rc2/drivers/soundwire/
A Dintel_init.c39 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()
53 auxdev->id = link_id; in intel_link_dev_register()
80 ret = auxiliary_device_init(auxdev); in intel_link_dev_register()
91 ldev->auxdev.name, link_id); in intel_link_dev_register()
102 auxiliary_device_delete(&ldev->auxdev); in intel_link_dev_unregister()
103 auxiliary_device_uninit(&ldev->auxdev); in intel_link_dev_unregister()
[all …]
A 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)
A Dintel_auxdevice.c125 static int intel_link_probe(struct auxiliary_device *auxdev, in intel_link_probe() argument
129 struct device *dev = &auxdev->dev; in intel_link_probe()
143 sdw->instance = auxdev->id; in intel_link_probe()
150 bus->link_id = auxdev->id; in intel_link_probe()
160 auxiliary_set_drvdata(auxdev, cdns); in intel_link_probe()
187 int intel_link_startup(struct auxiliary_device *auxdev) in intel_link_startup() argument
189 struct device *dev = &auxdev->dev; in intel_link_startup()
190 struct sdw_cdns *cdns = auxiliary_get_drvdata(auxdev); in intel_link_startup()
293 struct sdw_cdns *cdns = auxiliary_get_drvdata(auxdev); in intel_link_remove()
311 struct device *dev = &auxdev->dev; in intel_link_process_wakeen_event()
[all …]
/linux-6.3-rc2/sound/soc/sof/
A Dsof-client.c52 kfree(cdev->auxdev.dev.platform_data); in sof_client_auxdev_release()
67 cdev->auxdev.dev.platform_data = d; in sof_client_dev_add_data()
174 struct auxiliary_device *auxdev; in sof_client_dev_register() local
183 auxdev = &cdev->auxdev; in sof_client_dev_register()
184 auxdev->name = name; in sof_client_dev_register()
185 auxdev->dev.parent = sdev->dev; in sof_client_dev_register()
187 auxdev->id = id; in sof_client_dev_register()
238 if (!strcmp(cdev->auxdev.name, name) && cdev->auxdev.id == id) { in sof_client_dev_unregister()
311 if (!cdev->auxdev.dev.driver) in sof_suspend_clients()
334 if (!cdev->auxdev.dev.driver) in sof_resume_clients()
[all …]
A Dsof-client-ipc-flood-test.c65 struct device *dev = &cdev->auxdev.dev; in sof_debug_ipc_flood_test()
158 struct device *dev = &cdev->auxdev.dev; in sof_ipc_flood_dfs_write()
296 static int sof_ipc_flood_probe(struct auxiliary_device *auxdev, in sof_ipc_flood_probe() argument
299 struct sof_client_dev *cdev = auxiliary_dev_to_sof_client_dev(auxdev); in sof_ipc_flood_probe()
301 struct device *dev = &auxdev->dev; in sof_ipc_flood_probe()
326 if (auxdev->id == 0) { in sof_ipc_flood_probe()
357 static void sof_ipc_flood_remove(struct auxiliary_device *auxdev) in sof_ipc_flood_remove() argument
359 struct sof_client_dev *cdev = auxiliary_dev_to_sof_client_dev(auxdev); in sof_ipc_flood_remove()
362 pm_runtime_disable(&auxdev->dev); in sof_ipc_flood_remove()
364 if (auxdev->id == 0) { in sof_ipc_flood_remove()
A 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()
A 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)
A Dsof-client-probes.c196 struct device *dev = &cdev->auxdev.dev; in sof_probes_dfs_points_read()
256 struct device *dev = &cdev->auxdev.dev; in sof_probes_dfs_points_write()
315 struct device *dev = &cdev->auxdev.dev; in sof_probes_dfs_points_remove_write()
380 static int sof_probes_client_probe(struct auxiliary_device *auxdev, in sof_probes_client_probe() argument
383 struct sof_client_dev *cdev = auxiliary_dev_to_sof_client_dev(auxdev); in sof_probes_client_probe()
385 struct device *dev = &auxdev->dev; in sof_probes_client_probe()
509 static void sof_probes_client_remove(struct auxiliary_device *auxdev) in sof_probes_client_remove() argument
511 struct sof_client_dev *cdev = auxiliary_dev_to_sof_client_dev(auxdev); in sof_probes_client_remove()
517 pm_runtime_disable(&auxdev->dev); in sof_probes_client_remove()
A Dsof-client-probes-ipc4.c71 struct device *dev = &cdev->auxdev.dev; in sof_ipc4_probe_get_module_info()
/linux-6.3-rc2/drivers/platform/x86/intel/
A Dtpmi.c150 struct intel_vsec_device *vsec_dev = auxdev_to_ivdev(auxdev); in tpmi_get_platform_data()
156 int tpmi_get_resource_count(struct auxiliary_device *auxdev) in tpmi_get_resource_count() argument
158 struct intel_vsec_device *vsec_dev = auxdev_to_ivdev(auxdev); in tpmi_get_resource_count()
169 struct intel_vsec_device *vsec_dev = auxdev_to_ivdev(auxdev); in tpmi_get_resource_at_index()
245 ret = intel_vsec_add_aux(vsec_dev->pcidev, &vsec_dev->auxdev.dev, in tpmi_create_device()
320 static int intel_vsec_tpmi_init(struct auxiliary_device *auxdev) in intel_vsec_tpmi_init() argument
322 struct intel_vsec_device *vsec_dev = auxdev_to_ivdev(auxdev); in intel_vsec_tpmi_init()
328 tpmi_info = devm_kzalloc(&auxdev->dev, sizeof(*tpmi_info), GFP_KERNEL); in intel_vsec_tpmi_init()
383 auxiliary_set_drvdata(auxdev, tpmi_info); in intel_vsec_tpmi_init()
388 static int tpmi_probe(struct auxiliary_device *auxdev, in tpmi_probe() argument
[all …]
A Dvsec.h35 struct auxiliary_device auxdev; member
51 return container_of(dev, struct intel_vsec_device, auxdev.dev); in dev_to_ivdev()
54 static inline struct intel_vsec_device *auxdev_to_ivdev(struct auxiliary_device *auxdev) in auxdev_to_ivdev() argument
56 return container_of(auxdev, struct intel_vsec_device, auxdev); in auxdev_to_ivdev()
A Dvsec.c150 struct auxiliary_device *auxdev = &intel_vsec_dev->auxdev; in intel_vsec_add_aux() local
164 auxdev->id = ret; in intel_vsec_add_aux()
165 auxdev->name = name; in intel_vsec_add_aux()
166 auxdev->dev.parent = parent; in intel_vsec_add_aux()
167 auxdev->dev.release = intel_vsec_dev_release; in intel_vsec_add_aux()
169 ret = auxiliary_device_init(auxdev); in intel_vsec_add_aux()
172 ida_free(intel_vsec_dev->ida, auxdev->id); in intel_vsec_add_aux()
179 ret = auxiliary_device_add(auxdev); in intel_vsec_add_aux()
181 auxiliary_device_uninit(auxdev); in intel_vsec_add_aux()
186 auxdev); in intel_vsec_add_aux()
[all …]
A 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.3-rc2/drivers/platform/x86/intel/pmt/
A 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()
A 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()
A Dclass.c308 struct device *dev = &intel_vsec_dev->auxdev.dev; in intel_pmt_dev_create()

Completed in 23 milliseconds