/linux/drivers/base/ |
H A D | driver.c | 117 int driver_for_each_device(struct device_driver *drv, struct device *start, in driver_for_each_device() 151 struct device *driver_find_device(const struct device_driver *drv, in driver_find_device() 176 int driver_create_file(const struct device_driver *drv, in driver_create_file() 194 void driver_remove_file(const struct device_driver *drv, in driver_remove_file() 202 int driver_add_groups(const struct device_driver *drv, in driver_add_groups() 208 void driver_remove_groups(const struct device_driver *drv, in driver_remove_groups() 222 int driver_register(struct device_driver *drv) in driver_register() 267 void driver_unregister(struct device_driver *drv) in driver_unregister()
|
H A D | dd.c | 229 const char *drv = dev_driver_string(dev); in device_set_deferred_probe_reason() local 470 struct device_driver *drv = dev->driver; in driver_sysfs_remove() local 572 static int call_driver_probe(struct device *dev, const struct device_driver *drv) in call_driver_probe() 603 static int really_probe(struct device *dev, const struct device_driver *drv) in really_probe() 732 static int really_probe_debug(struct device *dev, const struct device_driver *drv) in really_probe_debug() 779 static int __driver_probe_device(const struct device_driver *drv, struct device *dev) in __driver_probe_device() 824 static int driver_probe_device(const struct device_driver *drv, struct device *dev) in driver_probe_device() 868 static bool driver_allows_async_probing(const struct device_driver *drv) in driver_allows_async_probing() 921 static int __device_attach_driver(struct device_driver *drv, void *_data) in __device_attach_driver() 1122 int device_driver_attach(const struct device_driver *drv, struct device *dev) in device_driver_attach() [all …]
|
H A D | platform.c | 861 int __platform_driver_register(struct platform_driver *drv, in __platform_driver_register() 875 void platform_driver_unregister(struct platform_driver *drv) in platform_driver_unregister() 913 int __init_or_module __platform_driver_probe(struct platform_driver *drv, in __platform_driver_probe() 1125 const struct device_driver *drv = dev->driver; in platform_pm_suspend() local 1143 const struct device_driver *drv = dev->driver; in platform_pm_resume() local 1165 const struct device_driver *drv = dev->driver; in platform_pm_freeze() local 1183 const struct device_driver *drv = dev->driver; in platform_pm_thaw() local 1201 const struct device_driver *drv = dev->driver; in platform_pm_poweroff() local 1219 const struct device_driver *drv = dev->driver; in platform_pm_restore() local 1335 static int platform_match(struct device *dev, const struct device_driver *drv) in platform_match() [all …]
|
/linux/drivers/pmdomain/qcom/ |
H A D | cpr.c | 252 static bool cpr_is_allowed(struct cpr_drv *drv) in cpr_is_allowed() 257 static void cpr_write(struct cpr_drv *drv, u32 offset, u32 value) in cpr_write() 262 static u32 cpr_read(struct cpr_drv *drv, u32 offset) in cpr_read() 268 cpr_masked_write(struct cpr_drv *drv, u32 offset, u32 mask, u32 value) in cpr_masked_write() 278 static void cpr_irq_clr(struct cpr_drv *drv) in cpr_irq_clr() 283 static void cpr_irq_clr_nack(struct cpr_drv *drv) in cpr_irq_clr_nack() 289 static void cpr_irq_clr_ack(struct cpr_drv *drv) in cpr_irq_clr_ack() 295 static void cpr_irq_set(struct cpr_drv *drv, u32 int_bits) in cpr_irq_set() 300 static void cpr_ctl_modify(struct cpr_drv *drv, u32 mask, u32 value) in cpr_ctl_modify() 305 static void cpr_ctl_enable(struct cpr_drv *drv, struct corner *corner) in cpr_ctl_enable() [all …]
|
/linux/drivers/vfio/mdev/ |
H A D | mdev_driver.c | 17 struct mdev_driver *drv = in mdev_probe() local 27 struct mdev_driver *drv = in mdev_remove() local 34 static int mdev_match(struct device *dev, const struct device_driver *drv) in mdev_match() 56 int mdev_register_driver(struct mdev_driver *drv) in mdev_register_driver() 71 void mdev_unregister_driver(struct mdev_driver *drv) in mdev_unregister_driver()
|
/linux/drivers/soundwire/ |
H A D | bus_type.c | 22 sdw_get_device_id(struct sdw_slave *slave, const struct sdw_driver *drv) in sdw_get_device_id() 41 const struct sdw_driver *drv; in sdw_bus_match() local 84 struct sdw_driver *drv = drv_to_sdw_driver(dev->driver); in sdw_drv_probe() local 163 struct sdw_driver *drv = drv_to_sdw_driver(dev->driver); in sdw_drv_remove() local 186 struct sdw_driver *drv = drv_to_sdw_driver(dev->driver); in sdw_drv_shutdown() local 199 int __sdw_register_driver(struct sdw_driver *drv, struct module *owner) in __sdw_register_driver() 223 void sdw_unregister_driver(struct sdw_driver *drv) in sdw_unregister_driver()
|
/linux/drivers/watchdog/ |
H A D | mena21_wdt.c | 42 static unsigned int a21_wdt_get_bootstatus(struct a21_wdt_drv *drv) in a21_wdt_get_bootstatus() 55 struct a21_wdt_drv *drv = watchdog_get_drvdata(wdt); in a21_wdt_start() local 64 struct a21_wdt_drv *drv = watchdog_get_drvdata(wdt); in a21_wdt_stop() local 73 struct a21_wdt_drv *drv = watchdog_get_drvdata(wdt); in a21_wdt_ping() local 85 struct a21_wdt_drv *drv = watchdog_get_drvdata(wdt); in a21_wdt_set_timeout() local 131 struct a21_wdt_drv *drv; in a21_wdt_probe() local 203 struct a21_wdt_drv *drv = dev_get_drvdata(&pdev->dev); in a21_wdt_shutdown() local
|
H A D | menz69_wdt.c | 36 struct men_z069_drv *drv = watchdog_get_drvdata(wdt); in men_z069_wdt_start() local 48 struct men_z069_drv *drv = watchdog_get_drvdata(wdt); in men_z069_wdt_stop() local 60 struct men_z069_drv *drv = watchdog_get_drvdata(wdt); in men_z069_wdt_ping() local 74 struct men_z069_drv *drv = watchdog_get_drvdata(wdt); in men_z069_wdt_set_timeout() local 104 struct men_z069_drv *drv; in men_z069_probe() local 141 struct men_z069_drv *drv = mcb_get_drvdata(dev); in men_z069_remove() local
|
/linux/drivers/net/wireless/intel/iwlwifi/ |
H A D | iwl-drv.c | 84 struct list_head drv; /* list of devices using this op_mode */ member 102 static void iwl_free_fw_desc(struct iwl_drv *drv, struct fw_desc *desc) in iwl_free_fw_desc() 109 static void iwl_free_fw_img(struct iwl_drv *drv, struct fw_img *img) in iwl_free_fw_img() 117 static void iwl_dealloc_ucode(struct iwl_drv *drv) in iwl_dealloc_ucode() 140 static int iwl_alloc_fw_desc(struct iwl_drv *drv, struct fw_desc *desc, in iwl_alloc_fw_desc() 225 static int iwl_request_firmware(struct iwl_drv *drv, bool first) in iwl_request_firmware() 425 static int iwl_set_default_calib(struct iwl_drv *drv, const u8 *data) in iwl_set_default_calib() 443 static void iwl_set_ucode_api_flags(struct iwl_drv *drv, const u8 *data, in iwl_set_ucode_api_flags() 464 static void iwl_set_ucode_capabilities(struct iwl_drv *drv, const u8 *data, in iwl_set_ucode_capabilities() 485 static const char *iwl_reduced_fw_name(struct iwl_drv *drv) in iwl_reduced_fw_name() [all …]
|
/linux/sound/soc/intel/atom/ |
H A D | sst-atom-controls.c | 23 static int sst_fill_byte_control(struct sst_data *drv, in sst_fill_byte_control() 47 static int sst_fill_and_send_cmd_unlocked(struct sst_data *drv, in sst_fill_and_send_cmd_unlocked() 72 static int sst_fill_and_send_cmd(struct sst_data *drv, in sst_fill_and_send_cmd() 112 static int sst_send_slot_map(struct sst_data *drv) in sst_send_slot_map() 164 struct sst_data *drv = snd_soc_component_get_drvdata(c); in sst_slot_get() local 191 static int sst_check_and_send_slot_map(struct sst_data *drv, struct snd_kcontrol *kcontrol) in sst_check_and_send_slot_map() 222 struct sst_data *drv = snd_soc_component_get_drvdata(c); in sst_slot_put() local 265 static int sst_send_algo_cmd(struct sst_data *drv, in sst_send_algo_cmd() 297 static int sst_find_and_send_pipe_algo(struct sst_data *drv, in sst_find_and_send_pipe_algo() 353 struct sst_data *drv = snd_soc_component_get_drvdata(cmpnt); in sst_algo_control_set() local [all …]
|
/linux/drivers/net/phy/ |
H A D | mdio_device.c | 38 int mdio_device_bus_match(struct device *dev, const struct device_driver *drv) in mdio_device_bus_match() 157 struct device_driver *drv = mdiodev->dev.driver; in mdio_probe() local 178 struct device_driver *drv = mdiodev->dev.driver; in mdio_remove() local 193 struct device_driver *drv = mdiodev->dev.driver; in mdio_shutdown() local 204 int mdio_driver_register(struct mdio_driver *drv) in mdio_driver_register() 228 void mdio_driver_unregister(struct mdio_driver *drv) in mdio_driver_unregister()
|
/linux/drivers/nvmem/ |
H A D | layouts.c | 19 #define to_nvmem_layout_driver(drv) \ argument 24 static int nvmem_layout_bus_match(struct device *dev, const struct device_driver *drv) in nvmem_layout_bus_match() 31 struct nvmem_layout_driver *drv = to_nvmem_layout_driver(dev->driver); in nvmem_layout_bus_probe() local 42 struct nvmem_layout_driver *drv = to_nvmem_layout_driver(dev->driver); in nvmem_layout_bus_remove() local 55 int __nvmem_layout_driver_register(struct nvmem_layout_driver *drv, in __nvmem_layout_driver_register() 65 void nvmem_layout_driver_unregister(struct nvmem_layout_driver *drv) in nvmem_layout_driver_unregister()
|
/linux/drivers/zorro/ |
H A D | zorro-driver.c | 47 struct zorro_driver *drv = to_zorro_driver(dev->driver); in zorro_device_probe() local 66 struct zorro_driver *drv = to_zorro_driver(dev->driver); in zorro_device_remove() local 81 int zorro_register_driver(struct zorro_driver *drv) in zorro_register_driver() 103 void zorro_unregister_driver(struct zorro_driver *drv) in zorro_unregister_driver() 121 static int zorro_bus_match(struct device *dev, const struct device_driver *drv) in zorro_bus_match()
|
/linux/drivers/cpuidle/ |
H A D | cpuidle-psci.c | 54 struct cpuidle_driver *drv, int idx, in __psci_enter_domain_idle_state() 92 struct cpuidle_driver *drv, int idx) in psci_enter_domain_idle_state() 98 struct cpuidle_driver *drv, in psci_enter_s2idle_domain_idle_state() 192 struct cpuidle_driver *drv, int idx) in psci_enter_idle_state() 222 static int psci_dt_cpu_init_topology(struct cpuidle_driver *drv, in psci_dt_cpu_init_topology() 251 static int psci_dt_cpu_init_idle(struct device *dev, struct cpuidle_driver *drv, in psci_dt_cpu_init_idle() 293 static int psci_cpu_init_idle(struct device *dev, struct cpuidle_driver *drv, in psci_cpu_init_idle() 328 struct cpuidle_driver *drv; in psci_idle_init_cpu() local 410 struct cpuidle_driver *drv; in psci_cpuidle_probe() local
|
/linux/drivers/pnp/ |
H A D | card.c | 19 static const struct pnp_card_device_id *match_card(struct pnp_card_driver *drv, in match_card() 60 struct pnp_card_driver *drv = to_pnp_card_driver(dev->driver); in card_remove_first() local 71 static int card_probe(struct pnp_card *card, struct pnp_card_driver *drv) in card_probe() 264 struct pnp_card_driver *drv = in pnp_add_card() local 333 struct pnp_card_driver *drv; in pnp_request_card_device() local 380 struct pnp_card_driver *drv = dev->card_link->driver; in pnp_release_card_device() local 416 int pnp_register_card_driver(struct pnp_card_driver *drv) in pnp_register_card_driver() 450 void pnp_unregister_card_driver(struct pnp_card_driver *drv) in pnp_unregister_card_driver()
|
H A D | driver.c | 44 static const struct pnp_device_id *match_device(const struct pnp_driver *drv, in match_device() 129 struct pnp_driver *drv = pnp_dev->driver; in pnp_device_remove() local 147 struct pnp_driver *drv = pnp_dev->driver; in pnp_device_shutdown() local 153 static int pnp_bus_match(struct device *dev, const struct device_driver *drv) in pnp_bus_match() 275 int pnp_register_driver(struct pnp_driver *drv) in pnp_register_driver() 284 void pnp_unregister_driver(struct pnp_driver *drv) in pnp_unregister_driver()
|
/linux/drivers/net/dsa/realtek/ |
H A D | realtek-mdio.h | 8 static inline int realtek_mdio_driver_register(struct mdio_driver *drv) in realtek_mdio_driver_register() 13 static inline void realtek_mdio_driver_unregister(struct mdio_driver *drv) in realtek_mdio_driver_unregister() 24 static inline int realtek_mdio_driver_register(struct mdio_driver *drv) in realtek_mdio_driver_register() 29 static inline void realtek_mdio_driver_unregister(struct mdio_driver *drv) in realtek_mdio_driver_unregister()
|
H A D | realtek-smi.h | 8 static inline int realtek_smi_driver_register(struct platform_driver *drv) in realtek_smi_driver_register() 13 static inline void realtek_smi_driver_unregister(struct platform_driver *drv) in realtek_smi_driver_unregister() 24 static inline int realtek_smi_driver_register(struct platform_driver *drv) in realtek_smi_driver_register() 29 static inline void realtek_smi_driver_unregister(struct platform_driver *drv) in realtek_smi_driver_unregister()
|
/linux/drivers/cpufreq/ |
H A D | qcom-cpufreq-nvmem.c | 75 struct qcom_cpufreq_drv *drv) in qcom_cpufreq_simple_get_version() 171 struct qcom_cpufreq_drv *drv) in qcom_cpufreq_kryo_name_version() 219 struct qcom_cpufreq_drv *drv) in qcom_cpufreq_krait_name_version() 258 struct qcom_cpufreq_drv *drv) in qcom_cpufreq_ipq8064_name_version() 313 struct qcom_cpufreq_drv *drv) in qcom_cpufreq_ipq6018_name_version() 364 struct qcom_cpufreq_drv *drv) in qcom_cpufreq_ipq8074_name_version() 430 static void qcom_cpufreq_suspend_pd_devs(struct qcom_cpufreq_drv *drv, unsigned int cpu) in qcom_cpufreq_suspend_pd_devs() 444 struct qcom_cpufreq_drv *drv; in qcom_cpufreq_probe() local 555 struct qcom_cpufreq_drv *drv = platform_get_drvdata(pdev); in qcom_cpufreq_remove() local 568 struct qcom_cpufreq_drv *drv = dev_get_drvdata(dev); in qcom_cpufreq_suspend() local
|
/linux/drivers/video/fbdev/via/ |
H A D | via_aux_edid.c | 18 static void query_edid(struct via_aux_drv *drv) in query_edid() 47 static const struct fb_videomode *get_preferred_mode(struct via_aux_drv *drv) in get_preferred_mode() 64 static void cleanup(struct via_aux_drv *drv) in cleanup() 74 struct via_aux_drv drv = { in via_aux_edid_probe() local
|
/linux/sound/core/seq/ |
H A D | seq_midi_emul.c | 77 void *drv; in snd_midi_process_event() local 235 note_off(const struct snd_midi_op *ops, void *drv, in note_off() 258 do_control(const struct snd_midi_op *ops, void *drv, in do_control() 410 rpn(const struct snd_midi_op *ops, void *drv, struct snd_midi_channel *chan, in rpn() 450 nrpn(const struct snd_midi_op *ops, void *drv, struct snd_midi_channel *chan, in nrpn() 592 all_sounds_off(const struct snd_midi_op *ops, void *drv, in all_sounds_off() 611 all_notes_off(const struct snd_midi_op *ops, void *drv, in all_notes_off()
|
/linux/sound/aoa/soundbus/ |
H A D | core.c | 41 struct soundbus_driver *drv; in soundbus_probe() local 112 struct soundbus_driver * drv = to_soundbus_driver(dev->driver); in soundbus_device_remove() local 122 struct soundbus_driver * drv = to_soundbus_driver(dev->driver); in soundbus_device_shutdown() local 164 int soundbus_register_driver(struct soundbus_driver *drv) in soundbus_register_driver() 175 void soundbus_unregister_driver(struct soundbus_driver *drv) in soundbus_unregister_driver()
|
/linux/drivers/dio/ |
H A D | dio-driver.c | 50 struct dio_driver *drv = to_dio_driver(dev->driver); in dio_device_probe() local 76 int dio_register_driver(struct dio_driver *drv) in dio_register_driver() 97 void dio_unregister_driver(struct dio_driver *drv) in dio_unregister_driver() 113 static int dio_bus_match(struct device *dev, const struct device_driver *drv) in dio_bus_match()
|
/linux/include/linux/device/ |
H A D | driver.h | 168 static inline struct device *driver_find_device_by_name(const struct device_driver *drv, in driver_find_device_by_name() 181 driver_find_device_by_of_node(const struct device_driver *drv, in driver_find_device_by_of_node() 194 driver_find_device_by_fwnode(struct device_driver *drv, in driver_find_device_by_fwnode() 206 static inline struct device *driver_find_device_by_devt(const struct device_driver *drv, in driver_find_device_by_devt() 212 static inline struct device *driver_find_next_device(const struct device_driver *drv, in driver_find_next_device() 226 driver_find_device_by_acpi_dev(const struct device_driver *drv, in driver_find_device_by_acpi_dev() 233 driver_find_device_by_acpi_dev(const struct device_driver *drv, const void *adev) in driver_find_device_by_acpi_dev()
|
/linux/drivers/input/gameport/ |
H A D | gameport.c | 213 static int gameport_bind_driver(struct gameport *gameport, struct gameport_driver *drv) in gameport_bind_driver() 468 struct device_driver *drv; in drvctl_store() local 708 static ssize_t description_show(struct device_driver *drv, char *buf) in description_show() 724 struct gameport_driver *drv = to_gameport_driver(dev->driver); in gameport_driver_probe() local 733 struct gameport_driver *drv = to_gameport_driver(dev->driver); in gameport_driver_remove() local 738 static void gameport_attach_driver(struct gameport_driver *drv) in gameport_attach_driver() 748 int __gameport_register_driver(struct gameport_driver *drv, struct module *owner, in __gameport_register_driver() 784 void gameport_unregister_driver(struct gameport_driver *drv) in gameport_unregister_driver() 809 static int gameport_bus_match(struct device *dev, const struct device_driver *drv) in gameport_bus_match() 825 static void gameport_set_drv(struct gameport *gameport, struct gameport_driver *drv) in gameport_set_drv() [all …]
|