/linux-6.1.9/include/linux/ |
D | auxiliary_bus.h | 181 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 …]
|
/linux-6.1.9/drivers/base/ |
D | auxiliary.c | 162 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.1.9/drivers/soundwire/ |
D | intel_init.c | 23 struct auxiliary_device *auxdev = to_auxiliary_dev(dev); in intel_link_dev_release() local 24 struct sdw_intel_link_dev *ldev = auxiliary_dev_to_sdw_intel_link_dev(auxdev); in intel_link_dev_release() 38 struct auxiliary_device *auxdev; in intel_link_dev_register() local 45 auxdev = &ldev->auxdev; in intel_link_dev_register() 46 auxdev->name = name; in intel_link_dev_register() 47 auxdev->dev.parent = res->parent; in intel_link_dev_register() 48 auxdev->dev.fwnode = fwnode; in intel_link_dev_register() 49 auxdev->dev.release = intel_link_dev_release; in intel_link_dev_register() 52 auxdev->id = link_id; in intel_link_dev_register() 78 ret = auxiliary_device_init(auxdev); in intel_link_dev_register() [all …]
|
D | intel.h | 50 int intel_link_startup(struct auxiliary_device *auxdev); 51 int intel_link_process_wakeen_event(struct auxiliary_device *auxdev); 54 struct auxiliary_device auxdev; member 59 container_of(auxiliary_dev, struct sdw_intel_link_dev, auxdev)
|
D | intel.c | 1489 static int intel_link_probe(struct auxiliary_device *auxdev, in intel_link_probe() argument 1493 struct device *dev = &auxdev->dev; in intel_link_probe() 1494 struct sdw_intel_link_dev *ldev = auxiliary_dev_to_sdw_intel_link_dev(auxdev); in intel_link_probe() 1507 sdw->instance = auxdev->id; in intel_link_probe() 1514 bus->link_id = auxdev->id; in intel_link_probe() 1524 auxiliary_set_drvdata(auxdev, cdns); in intel_link_probe() 1551 int intel_link_startup(struct auxiliary_device *auxdev) in intel_link_startup() argument 1553 struct device *dev = &auxdev->dev; in intel_link_startup() 1554 struct sdw_cdns *cdns = auxiliary_get_drvdata(auxdev); in intel_link_startup() 1655 static void intel_link_remove(struct auxiliary_device *auxdev) in intel_link_remove() argument [all …]
|
/linux-6.1.9/sound/soc/sof/ |
D | sof-client.c | 48 struct auxiliary_device *auxdev = to_auxiliary_dev(dev); in sof_client_auxdev_release() local 49 struct sof_client_dev *cdev = auxiliary_dev_to_sof_client_dev(auxdev); in sof_client_auxdev_release() 51 kfree(cdev->auxdev.dev.platform_data); in sof_client_auxdev_release() 66 cdev->auxdev.dev.platform_data = d; in sof_client_dev_add_data() 173 struct auxiliary_device *auxdev; in sof_client_dev_register() local 182 auxdev = &cdev->auxdev; in sof_client_dev_register() 183 auxdev->name = name; in sof_client_dev_register() 184 auxdev->dev.parent = sdev->dev; in sof_client_dev_register() 185 auxdev->dev.release = sof_client_auxdev_release; in sof_client_dev_register() 186 auxdev->id = id; in sof_client_dev_register() [all …]
|
D | sof-client-ipc-flood-test.c | 65 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()
|
D | sof-client-ipc-msg-injector.c | 125 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()
|
D | sof-client.h | 24 struct auxiliary_device auxdev; member 33 container_of(auxiliary_dev, struct sof_client_dev, auxdev) 36 container_of(to_auxiliary_dev(dev), struct sof_client_dev, auxdev)
|
D | sof-client-probes.c | 420 struct device *dev = &cdev->auxdev.dev; in sof_probes_dfs_points_read() 478 struct device *dev = &cdev->auxdev.dev; in sof_probes_dfs_points_write() 536 struct device *dev = &cdev->auxdev.dev; in sof_probes_dfs_points_remove_write() 601 static int sof_probes_client_probe(struct auxiliary_device *auxdev, in sof_probes_client_probe() argument 604 struct sof_client_dev *cdev = auxiliary_dev_to_sof_client_dev(auxdev); in sof_probes_client_probe() 606 struct device *dev = &auxdev->dev; in sof_probes_client_probe() 719 static void sof_probes_client_remove(struct auxiliary_device *auxdev) in sof_probes_client_remove() argument 721 struct sof_client_dev *cdev = auxiliary_dev_to_sof_client_dev(auxdev); in sof_probes_client_remove() 727 pm_runtime_disable(&auxdev->dev); in sof_probes_client_remove()
|
/linux-6.1.9/drivers/platform/x86/intel/ |
D | vsec.h | 35 struct auxiliary_device auxdev; member 45 return container_of(dev, struct intel_vsec_device, auxdev.dev); in dev_to_ivdev() 48 static inline struct intel_vsec_device *auxdev_to_ivdev(struct auxiliary_device *auxdev) in auxdev_to_ivdev() argument 50 return container_of(auxdev, struct intel_vsec_device, auxdev); in auxdev_to_ivdev()
|
D | vsec.c | 131 ida_free(intel_vsec_dev->ida, intel_vsec_dev->auxdev.id); in intel_vsec_dev_release() 139 struct auxiliary_device *auxdev = &intel_vsec_dev->auxdev; in intel_vsec_add_aux() local 148 auxdev->id = ret; in intel_vsec_add_aux() 149 auxdev->name = name; in intel_vsec_add_aux() 150 auxdev->dev.parent = &pdev->dev; in intel_vsec_add_aux() 151 auxdev->dev.release = intel_vsec_dev_release; in intel_vsec_add_aux() 153 ret = auxiliary_device_init(auxdev); in intel_vsec_add_aux() 155 ida_free(intel_vsec_dev->ida, auxdev->id); in intel_vsec_add_aux() 161 ret = auxiliary_device_add(auxdev); in intel_vsec_add_aux() 163 auxiliary_device_uninit(auxdev); in intel_vsec_add_aux() [all …]
|
D | sdsi.c | 537 static int sdsi_probe(struct auxiliary_device *auxdev, const struct auxiliary_device_id *id) in sdsi_probe() argument 539 struct intel_vsec_device *intel_cap_dev = auxdev_to_ivdev(auxdev); in sdsi_probe() 546 priv = devm_kzalloc(&auxdev->dev, sizeof(*priv), GFP_KERNEL); in sdsi_probe() 550 priv->dev = &auxdev->dev; in sdsi_probe() 552 auxiliary_set_drvdata(auxdev, priv); in sdsi_probe() 556 disc_addr = devm_ioremap_resource(&auxdev->dev, disc_res); in sdsi_probe()
|
/linux-6.1.9/drivers/platform/x86/intel/pmt/ |
D | telemetry.c | 94 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()
|
D | crashlog.c | 260 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()
|
D | class.c | 308 struct device *dev = &intel_vsec_dev->auxdev.dev; in intel_pmt_dev_create()
|