| /linux/drivers/phy/samsung/ |
| H A D | phy-samsung-usb2.c | 21 struct samsung_usb2_phy_driver *drv = inst->drv; in samsung_usb2_phy_power_on() local 24 dev_dbg(drv->dev, "Request to power_on \"%s\" usb phy\n", in samsung_usb2_phy_power_on() 27 if (drv->vbus) { in samsung_usb2_phy_power_on() 28 ret = regulator_enable(drv->vbus); in samsung_usb2_phy_power_on() 33 ret = clk_prepare_enable(drv->clk); in samsung_usb2_phy_power_on() 36 ret = clk_prepare_enable(drv->ref_clk); in samsung_usb2_phy_power_on() 40 spin_lock(&drv->lock); in samsung_usb2_phy_power_on() 42 spin_unlock(&drv->lock); in samsung_usb2_phy_power_on() 50 clk_disable_unprepare(drv->ref_clk); in samsung_usb2_phy_power_on() 52 clk_disable_unprepare(drv->clk); in samsung_usb2_phy_power_on() [all …]
|
| H A D | phy-exynos4x12-usb2.c | 167 struct samsung_usb2_phy_driver *drv = inst->drv; in exynos4x12_isol() local 189 regmap_update_bits(drv->reg_pmu, offset, mask, on ? 0 : mask); in exynos4x12_isol() 194 struct samsung_usb2_phy_driver *drv = inst->drv; in exynos4x12_setup_clk() local 197 clk = readl(drv->reg_phy + EXYNOS_4x12_UPHYCLK); in exynos4x12_setup_clk() 200 if (drv->cfg->has_refclk_sel) in exynos4x12_setup_clk() 203 clk |= drv->ref_reg_val << EXYNOS_4x12_UPHYCLK_PHYFSEL_OFFSET; in exynos4x12_setup_clk() 205 writel(clk, drv->reg_phy + EXYNOS_4x12_UPHYCLK); in exynos4x12_setup_clk() 210 struct samsung_usb2_phy_driver *drv = inst->drv; in exynos4x12_phy_pwr() local 240 pwr = readl(drv->reg_phy + EXYNOS_4x12_UPHYPWR); in exynos4x12_phy_pwr() 242 writel(pwr, drv->reg_phy + EXYNOS_4x12_UPHYPWR); in exynos4x12_phy_pwr() [all …]
|
| H A D | phy-exynos5250-usb2.c | 176 struct samsung_usb2_phy_driver *drv = inst->drv; in exynos5250_isol() local 180 if (drv->cfg == &exynos5250_usb2_phy_config && in exynos5250_isol() 183 else if (drv->cfg == &exynos5250_usb2_phy_config && in exynos5250_isol() 186 else if (drv->cfg == &exynos5420_usb2_phy_config && in exynos5250_isol() 192 regmap_update_bits(drv->reg_pmu, offset, mask, on ? 0 : mask); in exynos5250_isol() 197 struct samsung_usb2_phy_driver *drv = inst->drv; in exynos5250_power_on() local 206 regmap_update_bits(drv->reg_sys, in exynos5250_power_on() 212 otg = readl(drv->reg_phy + EXYNOS_5250_USBOTGSYS); in exynos5250_power_on() 215 otg |= drv->ref_reg_val << EXYNOS_5250_USBOTGSYS_FSEL_SHIFT; in exynos5250_power_on() 228 writel(otg, drv->reg_phy + EXYNOS_5250_USBOTGSYS); in exynos5250_power_on() [all …]
|
| /linux/sound/soc/sdca/ |
| H A D | sdca_class_function.c | 58 struct class_function_drv *drv = auxiliary_get_drvdata(auxdev); in class_function_regmap_writeable() local 60 return sdca_regmap_writeable(drv->function, reg); in class_function_regmap_writeable() 66 struct class_function_drv *drv = auxiliary_get_drvdata(auxdev); in class_function_regmap_readable() local 68 return sdca_regmap_readable(drv->function, reg); in class_function_regmap_readable() 74 struct class_function_drv *drv = auxiliary_get_drvdata(auxdev); in class_function_regmap_volatile() local 76 return sdca_regmap_volatile(drv->function, reg); in class_function_regmap_volatile() 100 struct class_function_drv *drv = auxiliary_get_drvdata(auxdev); in class_function_regmap_mbq_size() local 102 return sdca_regmap_mbq_size(drv->function, reg); in class_function_regmap_mbq_size() 108 struct class_function_drv *drv = auxiliary_get_drvdata(auxdev); in class_function_regmap_deferrable() local 110 return sdca_regmap_deferrable(drv in class_function_regmap_deferrable() 123 struct class_function_drv *drv = snd_soc_component_get_drvdata(dai->component); class_function_startup() local 133 struct class_function_drv *drv = snd_soc_component_get_drvdata(dai->component); class_function_sdw_add_peripheral() local 168 struct class_function_drv *drv = snd_soc_component_get_drvdata(dai->component); class_function_sdw_remove_peripheral() local 196 struct class_function_drv *drv = snd_soc_component_get_drvdata(component); class_function_component_fixup_controls() local 204 struct class_function_drv *drv = snd_soc_component_get_drvdata(component); class_function_component_remove() local 213 struct class_function_drv *drv = snd_soc_component_get_drvdata(component); class_function_set_jack() local 225 class_function_init_device(struct class_function_drv * drv,unsigned int status) class_function_init_device() argument 250 class_function_boot(struct class_function_drv * drv) class_function_boot() argument 301 struct class_function_drv *drv; class_function_probe() local 409 struct class_function_drv *drv = auxiliary_get_drvdata(auxdev); class_function_remove() local 417 struct class_function_drv *drv = auxiliary_get_drvdata(auxdev); class_function_runtime_suspend() local 432 struct class_function_drv *drv = auxiliary_get_drvdata(auxdev); class_function_runtime_resume() local 490 struct class_function_drv *drv = auxiliary_get_drvdata(auxdev); class_function_suspend() local [all...] |
| H A D | sdca_class.c | 96 struct sdca_class_drv *drv = data; in class_remove_functions() local 98 sdca_dev_unregister_functions(drv->sdw); in class_remove_functions() 103 struct sdca_class_drv *drv = container_of(work, in class_boot_work() local 108 ret = sdw_slave_wait_for_init(drv->sdw, CLASS_SDW_ATTACH_TIMEOUT_MS); in class_boot_work() 112 regcache_cache_only(drv->dev_regmap, false); in class_boot_work() 114 drv->irq_info = devm_sdca_irq_allocate(drv->dev, drv->dev_regmap, in class_boot_work() 115 drv->sdw->irq); in class_boot_work() 116 if (IS_ERR(drv->irq_info)) in class_boot_work() 119 ret = sdca_dev_register_functions(drv->sdw); in class_boot_work() 124 ret = devm_add_action_or_reset(drv->dev, class_remove_functions, drv); in class_boot_work() [all …]
|
| /linux/drivers/net/wireless/intel/iwlwifi/ |
| H A D | iwl-drv.c | 88 struct list_head drv; /* list of devices using this op_mode */ member 109 static void iwl_free_fw_desc(struct iwl_drv *drv, struct fw_desc *desc) in iwl_free_fw_desc() argument 116 static void iwl_free_fw_img(struct iwl_drv *drv, struct fw_img *img) in iwl_free_fw_img() argument 120 iwl_free_fw_desc(drv, &img->sec[i]); in iwl_free_fw_img() 124 static void iwl_dealloc_ucode(struct iwl_drv *drv) in iwl_dealloc_ucode() argument 128 kfree(drv->fw.dbg.dest_tlv); in iwl_dealloc_ucode() 129 for (i = 0; i < ARRAY_SIZE(drv->fw.dbg.conf_tlv); i++) in iwl_dealloc_ucode() 130 kfree(drv->fw.dbg.conf_tlv[i]); in iwl_dealloc_ucode() 131 for (i = 0; i < ARRAY_SIZE(drv->fw.dbg.trigger_tlv); i++) in iwl_dealloc_ucode() 132 kfree(drv->fw.dbg.trigger_tlv[i]); in iwl_dealloc_ucode() [all …]
|
| /linux/drivers/cpuidle/ |
| H A D | driver.c | 51 static inline void __cpuidle_unset_driver(struct cpuidle_driver *drv) in __cpuidle_unset_driver() argument 55 for_each_cpu(cpu, drv->cpumask) { in __cpuidle_unset_driver() 57 if (drv != __cpuidle_get_cpu_driver(cpu)) in __cpuidle_unset_driver() 71 static inline int __cpuidle_set_driver(struct cpuidle_driver *drv) in __cpuidle_set_driver() argument 75 for_each_cpu(cpu, drv->cpumask) { in __cpuidle_set_driver() 79 if (old_drv && old_drv != drv) in __cpuidle_set_driver() 83 for_each_cpu(cpu, drv->cpumask) in __cpuidle_set_driver() 84 per_cpu(cpuidle_drivers, cpu) = drv; in __cpuidle_set_driver() 111 static inline int __cpuidle_set_driver(struct cpuidle_driver *drv) in __cpuidle_set_driver() argument 116 cpuidle_curr_driver = drv; in __cpuidle_set_driver() [all …]
|
| H A D | cpuidle.c | 52 bool cpuidle_not_available(struct cpuidle_driver *drv, in cpuidle_not_available() argument 55 return off || !initialized || !drv || !dev || !dev->enabled; in cpuidle_not_available() 66 struct cpuidle_driver *drv = cpuidle_get_cpu_driver(dev); in cpuidle_play_dead() local 69 if (!drv) in cpuidle_play_dead() 72 for (i = drv->state_count - 1; i >= 0; i--) { in cpuidle_play_dead() 73 if (drv->states[i].enter_dead) in cpuidle_play_dead() 74 drv->states[i].enter_dead(dev, i); in cpuidle_play_dead() 84 static int find_deepest_state(struct cpuidle_driver *drv, in find_deepest_state() argument 93 for (i = 1; i < drv->state_count; i++) { in find_deepest_state() 94 struct cpuidle_state *s = &drv->states[i]; in find_deepest_state() [all …]
|
| H A D | cpuidle-psci.c | 65 struct cpuidle_driver *drv, int idx, in __psci_enter_domain_idle_state() argument 110 struct cpuidle_driver *drv, int idx) in psci_enter_domain_idle_state() argument 112 return __psci_enter_domain_idle_state(dev, drv, idx, false); in psci_enter_domain_idle_state() 116 struct cpuidle_driver *drv, in psci_enter_s2idle_domain_idle_state() argument 119 return __psci_enter_domain_idle_state(dev, drv, idx, true); in psci_enter_s2idle_domain_idle_state() 219 struct cpuidle_driver *drv, int idx) in psci_enter_idle_state() argument 249 static int psci_dt_cpu_init_topology(struct cpuidle_driver *drv, in psci_dt_cpu_init_topology() argument 269 drv->states[state_count - 1].enter_s2idle = psci_enter_s2idle_domain_idle_state; in psci_dt_cpu_init_topology() 271 drv->states[state_count - 1].enter = psci_enter_domain_idle_state; in psci_dt_cpu_init_topology() 276 static int psci_dt_cpu_init_idle(struct device *dev, struct cpuidle_driver *drv, in psci_dt_cpu_init_idle() argument [all …]
|
| H A D | cpuidle-riscv-sbi.c | 79 struct cpuidle_driver *drv, int idx) in sbi_cpuidle_enter_state() argument 92 struct cpuidle_driver *drv, int idx, in __sbi_enter_domain_idle_state() argument 135 struct cpuidle_driver *drv, int idx) in sbi_enter_domain_idle_state() argument 137 return __sbi_enter_domain_idle_state(dev, drv, idx, false); in sbi_enter_domain_idle_state() 141 struct cpuidle_driver *drv, in sbi_enter_s2idle_domain_idle_state() argument 144 return __sbi_enter_domain_idle_state(dev, drv, idx, true); in sbi_enter_s2idle_domain_idle_state() 208 static int sbi_dt_cpu_init_topology(struct cpuidle_driver *drv, in sbi_dt_cpu_init_topology() argument 225 drv->states[state_count - 1].flags |= CPUIDLE_FLAG_RCU_IDLE; in sbi_dt_cpu_init_topology() 226 drv->states[state_count - 1].enter = sbi_enter_domain_idle_state; in sbi_dt_cpu_init_topology() 227 drv->states[state_count - 1].enter_s2idle = in sbi_dt_cpu_init_topology() [all …]
|
| /linux/drivers/soc/qcom/ |
| H A D | spm.c | 256 static inline void spm_register_write(struct spm_driver_data *drv, in spm_register_write() argument 259 if (drv->reg_data->reg_offset[reg]) in spm_register_write() 260 writel_relaxed(val, drv->reg_base + in spm_register_write() 261 drv->reg_data->reg_offset[reg]); in spm_register_write() 265 static inline void spm_register_write_sync(struct spm_driver_data *drv, in spm_register_write_sync() argument 270 if (!drv->reg_data->reg_offset[reg]) in spm_register_write_sync() 274 writel_relaxed(val, drv->reg_base + in spm_register_write_sync() 275 drv->reg_data->reg_offset[reg]); in spm_register_write_sync() 276 ret = readl_relaxed(drv->reg_base + in spm_register_write_sync() 277 drv->reg_data->reg_offset[reg]); in spm_register_write_sync() [all …]
|
| /linux/drivers/phy/renesas/ |
| H A D | phy-rcar-gen2.c | 56 struct rcar_gen2_phy_driver *drv; member 80 struct rcar_gen2_phy_driver *drv = channel->drv; in rcar_gen2_phy_init() local 93 clk_prepare_enable(drv->clk); in rcar_gen2_phy_init() 95 spin_lock_irqsave(&drv->lock, flags); in rcar_gen2_phy_init() 96 ugctrl2 = readl(drv->base + USBHS_UGCTRL2); in rcar_gen2_phy_init() 99 writel(ugctrl2, drv->base + USBHS_UGCTRL2); in rcar_gen2_phy_init() 100 spin_unlock_irqrestore(&drv->lock, flags); in rcar_gen2_phy_init() 109 clk_disable_unprepare(channel->drv->clk); in rcar_gen2_phy_exit() 119 struct rcar_gen2_phy_driver *drv = phy->channel->drv; in rcar_gen2_phy_power_on() local 120 void __iomem *base = drv->base; in rcar_gen2_phy_power_on() [all …]
|
| /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() argument 46 reset |= gpiod_get_value(drv->gpios[GPIO_WD_RST0]) ? (1 << 0) : 0; in a21_wdt_get_bootstatus() 47 reset |= gpiod_get_value(drv->gpios[GPIO_WD_RST1]) ? (1 << 1) : 0; in a21_wdt_get_bootstatus() 48 reset |= gpiod_get_value(drv->gpios[GPIO_WD_RST2]) ? (1 << 2) : 0; in a21_wdt_get_bootstatus() 55 struct a21_wdt_drv *drv = watchdog_get_drvdata(wdt); in a21_wdt_start() local 57 gpiod_set_value(drv->gpios[GPIO_WD_ENAB], 1); in a21_wdt_start() 64 struct a21_wdt_drv *drv = watchdog_get_drvdata(wdt); in a21_wdt_stop() local 66 gpiod_set_value(drv->gpios[GPIO_WD_ENAB], 0); in a21_wdt_stop() 73 struct a21_wdt_drv *drv = watchdog_get_drvdata(wdt); in a21_wdt_ping() local 75 gpiod_set_value(drv->gpios[GPIO_WD_TRIG], 0); in a21_wdt_ping() [all …]
|
| /linux/drivers/soundwire/ |
| H A D | bus_type.c | 21 sdw_get_device_id(struct sdw_slave *slave, const struct sdw_driver *drv) in sdw_get_device_id() argument 25 for (id = drv->id_table; id && id->mfg_id; id++) in sdw_get_device_id() 40 const struct sdw_driver *drv; in sdw_bus_match() local 45 drv = drv_to_sdw_driver(ddrv); in sdw_bus_match() 47 ret = !!sdw_get_device_id(slave, drv); in sdw_bus_match() 77 struct sdw_driver *drv = drv_to_sdw_driver(dev->driver); in sdw_bus_probe() local 90 id = sdw_get_device_id(slave, drv); in sdw_bus_probe() 111 ret = drv->probe(slave, id); in sdw_bus_probe() 120 if (drv->ops && drv->ops->read_prop) in sdw_bus_probe() 121 drv->ops->read_prop(slave); in sdw_bus_probe() [all …]
|
| /linux/arch/arm64/boot/dts/rockchip/ |
| H A D | rockchip-pinconf.dtsi | 23 pcfg_pull_none_drv_level_0: pcfg-pull-none-drv-level-0 { 29 pcfg_pull_none_drv_level_1: pcfg-pull-none-drv-level-1 { 35 pcfg_pull_none_drv_level_2: pcfg-pull-none-drv-level-2 { 41 pcfg_pull_none_drv_level_3: pcfg-pull-none-drv-level-3 { 47 pcfg_pull_none_drv_level_4: pcfg-pull-none-drv-level-4 { 53 pcfg_pull_none_drv_level_5: pcfg-pull-none-drv-level-5 { 59 pcfg_pull_none_drv_level_6: pcfg-pull-none-drv-level-6 { 65 pcfg_pull_none_drv_level_7: pcfg-pull-none-drv-level-7 { 71 pcfg_pull_none_drv_level_8: pcfg-pull-none-drv-level-8 { 77 pcfg_pull_none_drv_level_9: pcfg-pull-none-drv-level-9 { [all …]
|
| /linux/arch/x86/kernel/apic/ |
| H A D | probe_64.c | 19 struct apic **drv; in x86_64_probe_apic() local 23 for (drv = __apicdrivers; drv < __apicdrivers_end; drv++) { in x86_64_probe_apic() 24 if ((*drv)->probe && (*drv)->probe()) { in x86_64_probe_apic() 25 apic_install_driver(*drv); in x86_64_probe_apic() 33 struct apic **drv; in default_acpi_madt_oem_check() local 35 for (drv = __apicdrivers; drv < __apicdrivers_end; drv++) { in default_acpi_madt_oem_check() 36 if ((*drv)->acpi_madt_oem_check(oem_id, oem_table_id)) { in default_acpi_madt_oem_check() 37 apic_install_driver(*drv); in default_acpi_madt_oem_check()
|
| /linux/drivers/vfio/mdev/ |
| H A D | mdev_driver.c | 17 struct mdev_driver *drv = in mdev_probe() local 20 if (!drv->probe) in mdev_probe() 22 return drv->probe(to_mdev_device(dev)); in mdev_probe() 27 struct mdev_driver *drv = in mdev_remove() local 30 if (drv->remove) in mdev_remove() 31 drv->remove(to_mdev_device(dev)); in mdev_remove() 34 static int mdev_match(struct device *dev, const struct device_driver *drv) in mdev_match() argument 56 int mdev_register_driver(struct mdev_driver *drv) in mdev_register_driver() argument 58 if (!drv->device_api) in mdev_register_driver() 62 drv->driver.bus = &mdev_bus_type; in mdev_register_driver() [all …]
|
| /linux/drivers/zorro/ |
| H A D | zorro-driver.c | 47 struct zorro_driver *drv = to_zorro_driver(dev->driver); in zorro_device_probe() local 50 if (drv->probe) { in zorro_device_probe() 53 id = zorro_match_device(drv->id_table, z); in zorro_device_probe() 55 error = drv->probe(z, id); in zorro_device_probe() 66 struct zorro_driver *drv = to_zorro_driver(dev->driver); in zorro_device_remove() local 68 if (drv->remove) in zorro_device_remove() 69 drv->remove(z); in zorro_device_remove() 81 int zorro_register_driver(struct zorro_driver *drv) in zorro_register_driver() argument 84 drv->driver.name = drv->name; in zorro_register_driver() 85 drv->driver.bus = &zorro_bus_type; in zorro_register_driver() [all …]
|
| /linux/drivers/dio/ |
| H A D | dio-driver.c | 50 struct dio_driver *drv = to_dio_driver(dev->driver); in dio_device_probe() local 53 if (!d->driver && drv->probe) { in dio_device_probe() 56 id = dio_match_device(drv->id_table, d); in dio_device_probe() 58 error = drv->probe(d, id); in dio_device_probe() 60 d->driver = drv; in dio_device_probe() 76 int dio_register_driver(struct dio_driver *drv) in dio_register_driver() argument 79 drv->driver.name = drv->name; in dio_register_driver() 80 drv->driver.bus = &dio_bus_type; in dio_register_driver() 83 return driver_register(&drv->driver); in dio_register_driver() 97 void dio_unregister_driver(struct dio_driver *drv) in dio_unregister_driver() argument [all …]
|
| /linux/drivers/crypto/nx/ |
| H A D | nx_debugfs.c | 33 void nx_debugfs_init(struct nx_crypto_driver *drv) in nx_debugfs_init() argument 38 drv->dfs_root = root; in nx_debugfs_init() 41 root, &drv->stats.aes_ops.counter); in nx_debugfs_init() 43 root, &drv->stats.sha256_ops.counter); in nx_debugfs_init() 45 root, &drv->stats.sha512_ops.counter); in nx_debugfs_init() 47 root, &drv->stats.aes_bytes.counter); in nx_debugfs_init() 49 root, &drv->stats.sha256_bytes.counter); in nx_debugfs_init() 51 root, &drv->stats.sha512_bytes.counter); in nx_debugfs_init() 53 root, &drv->stats.errors.counter); in nx_debugfs_init() 55 root, &drv->stats.last_error.counter); in nx_debugfs_init() [all …]
|
| /linux/drivers/edac/ |
| H A D | qcom_edac.c | 89 static int qcom_llcc_core_setup(struct llcc_drv_data *drv, struct regmap *llcc_bcast_regmap) in qcom_llcc_core_setup() argument 98 ret = regmap_update_bits(llcc_bcast_regmap, drv->edac_reg_offset->cmn_interrupt_0_enable, in qcom_llcc_core_setup() 104 ret = regmap_update_bits(llcc_bcast_regmap, drv->edac_reg_offset->trp_interrupt_0_enable, in qcom_llcc_core_setup() 111 ret = regmap_write(llcc_bcast_regmap, drv->edac_reg_offset->drp_ecc_error_cfg, in qcom_llcc_core_setup() 116 ret = regmap_update_bits(llcc_bcast_regmap, drv->edac_reg_offset->cmn_interrupt_0_enable, in qcom_llcc_core_setup() 122 ret = regmap_write(llcc_bcast_regmap, drv->edac_reg_offset->drp_interrupt_enable, in qcom_llcc_core_setup() 129 qcom_llcc_clear_error_status(int err_type, struct llcc_drv_data *drv) in qcom_llcc_clear_error_status() argument 136 ret = regmap_write(drv->bcast_regmap, in qcom_llcc_clear_error_status() 137 drv->edac_reg_offset->drp_interrupt_clear, in qcom_llcc_clear_error_status() 142 ret = regmap_write(drv->bcast_regmap, in qcom_llcc_clear_error_status() [all …]
|
| /linux/drivers/mmc/core/ |
| H A D | sdio_bus.c | 29 #define to_sdio_driver(d) container_of_const(d, struct sdio_driver, drv) 111 static int sdio_bus_match(struct device *dev, const struct device_driver *drv) in sdio_bus_match() argument 114 const struct sdio_driver *sdrv = to_sdio_driver(drv); in sdio_bus_match() 155 struct sdio_driver *drv = to_sdio_driver(dev->driver); in sdio_bus_probe() local 160 id = sdio_match_device(func, drv); in sdio_bus_probe() 193 ret = drv->probe(func, id); in sdio_bus_probe() 208 struct sdio_driver *drv = to_sdio_driver(dev->driver); in sdio_bus_remove() local 215 drv->remove(func); in sdio_bus_remove() 220 drv->name); in sdio_bus_remove() 237 struct sdio_driver *drv = to_sdio_driver(dev->driver); in sdio_bus_shutdown() local [all …]
|
| /linux/drivers/input/serio/ |
| H A D | serio.c | 38 static void serio_attach_driver(struct serio_driver *drv); 40 static int serio_connect_driver(struct serio *serio, struct serio_driver *drv) in serio_connect_driver() argument 44 return drv->connect(serio, drv); in serio_connect_driver() 51 if (serio->drv && serio->drv->reconnect) in serio_reconnect_driver() 52 return serio->drv->reconnect(serio); in serio_reconnect_driver() 61 if (serio->drv) in serio_disconnect_driver() 62 serio->drv->disconnect(serio); in serio_disconnect_driver() 82 static int serio_bind_driver(struct serio *serio, struct serio_driver *drv) in serio_bind_driver() argument 86 if (serio_match_port(drv->id_table, serio)) { in serio_bind_driver() 88 serio->dev.driver = &drv->driver; in serio_bind_driver() [all …]
|
| /linux/drivers/virtio/ |
| H A D | virtio.c | 110 struct virtio_driver *drv = drv_to_virtio(vdev->dev.driver); in virtio_check_driver_offered_feature() local 112 for (i = 0; i < drv->feature_table_size; i++) in virtio_check_driver_offered_feature() 113 if (drv->feature_table[i] == fbit) in virtio_check_driver_offered_feature() 116 if (drv->feature_table_legacy) { in virtio_check_driver_offered_feature() 117 for (i = 0; i < drv->feature_table_size_legacy; i++) in virtio_check_driver_offered_feature() 118 if (drv->feature_table_legacy[i] == fbit) in virtio_check_driver_offered_feature() 128 struct virtio_driver *drv = drv_to_virtio(dev->dev.driver); in __virtio_config_changed() local 132 else if (drv && drv->config_changed) { in __virtio_config_changed() 133 drv->config_changed(dev); in __virtio_config_changed() 274 struct virtio_driver *drv = drv_to_virtio(dev->dev.driver); in virtio_dev_probe() local [all …]
|
| /linux/drivers/dma/idxd/ |
| H A D | bus.c | 13 struct device_driver *drv = &idxd_drv->drv; in __idxd_driver_register() local 20 drv->name = idxd_drv->name; in __idxd_driver_register() 21 drv->bus = &dsa_bus_type; in __idxd_driver_register() 22 drv->owner = owner; in __idxd_driver_register() 23 drv->mod_name = mod_name; in __idxd_driver_register() 25 return driver_register(drv); in __idxd_driver_register() 31 driver_unregister(&idxd_drv->drv); in idxd_driver_unregister() 36 const struct device_driver *drv) in idxd_config_bus_match() argument 39 container_of_const(drv, struct idxd_device_driver, drv); in idxd_config_bus_match() 55 container_of(dev->driver, struct idxd_device_driver, drv); in idxd_config_bus_probe() [all …]
|