Home
last modified time | relevance | path

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

12345678910>>...43

/linux-6.3-rc2/drivers/net/ethernet/hisilicon/hns/
A Dhns_dsaf_xgmac.c144 hns_xgmac_tx_enable(drv, 1); in hns_xgmac_enable()
146 hns_xgmac_rx_enable(drv, 1); in hns_xgmac_enable()
148 hns_xgmac_tx_enable(drv, 1); in hns_xgmac_enable()
149 hns_xgmac_rx_enable(drv, 1); in hns_xgmac_enable()
165 hns_xgmac_tx_enable(drv, 0); in hns_xgmac_disable()
167 hns_xgmac_rx_enable(drv, 0); in hns_xgmac_disable()
169 hns_xgmac_tx_enable(drv, 0); in hns_xgmac_disable()
170 hns_xgmac_rx_enable(drv, 0); in hns_xgmac_disable()
211 u32 port = drv->mac_id; in hns_xgmac_init()
219 hns_xgmac_exc_irq_en(drv, 0); in hns_xgmac_init()
[all …]
A Dhns_dsaf_gmac.c112 u32 mac_id = drv->mac_id; in hns_gmac_free()
267 drv, GMAC_PORT_MODE_REG, in hns_gmac_adjust_link()
272 drv, GMAC_PORT_MODE_REG, in hns_gmac_adjust_link()
277 drv, GMAC_PORT_MODE_REG, in hns_gmac_adjust_link()
281 dev_err(drv->dev, in hns_gmac_adjust_link()
283 speed, drv->mac_id); in hns_gmac_adjust_link()
292 struct mac_driver *drv = mac_drv; in hns_gmac_set_uc_match() local
302 struct mac_driver *drv = mac_drv; in hns_gmac_set_promisc() local
324 dev_err(drv->dev, in hns_gmac_wait_fifo_clean()
339 port = drv->mac_id; in hns_gmac_init()
[all …]
/linux-6.3-rc2/drivers/soc/qcom/
A Dcpr.c458 return drv->corner ? drv->corner - drv->corners + 1 : 0; in cpr_get_cur_perf_state()
637 cpr_corner_save(drv, drv->corner); in cpr_irq_handler()
655 if (cpr_is_allowed(drv) && drv->corner) { in cpr_enable()
657 cpr_corner_restore(drv, drv->corner); in cpr_enable()
658 cpr_ctl_enable(drv, drv->corner); in cpr_enable()
763 end = &drv->corners[drv->num_corners - 1]; in cpr_set_performance_state()
1099 cdata = devm_kcalloc(drv->dev, drv->num_corners, in cpr_corner_init()
1311 end = &drv->corners[drv->num_corners - 1]; in cpr_find_initial_corner()
1511 drv->corners = devm_kcalloc(drv->dev, drv->num_corners, in cpr_pd_attach_dev()
1629 if (!drv) in cpr_probe()
[all …]
A Drpmh-rsc.c271 write_tcs_reg_sync(drv, drv->regs[RSC_DRV_CMD_ENABLE], m, 0); in tcs_invalidate()
464 write_tcs_reg(drv, drv->regs[RSC_DRV_CMD_ENABLE], i, 0); in tcs_tx_done()
580 const struct rsc_drv *drv = tcs->drv; in find_free_tcs() local
975 drv->tcs_base = drv->base + offset; in rpmh_probe_tcs_config()
1008 if (tcs->drv) in rpmh_probe_tcs_config()
1010 tcs->drv = drv; in rpmh_probe_tcs_config()
1053 drv = devm_kzalloc(&pdev->dev, sizeof(*drv), GFP_KERNEL); in rpmh_rsc_probe()
1054 if (!drv) in rpmh_rsc_probe()
1076 if (drv->ver.major == 3 && drv->ver.minor == 0) in rpmh_rsc_probe()
1095 drv->name, drv); in rpmh_rsc_probe()
[all …]
A Dspm.c225 return readl_relaxed(drv->reg_base + drv->reg_data->reg_offset[reg]); in spm_register_read()
277 struct spm_driver_data *drv; in spm_dev_probe() local
281 drv = devm_kzalloc(&pdev->dev, sizeof(*drv), GFP_KERNEL); in spm_dev_probe()
282 if (!drv) in spm_dev_probe()
287 if (IS_ERR(drv->reg_base)) in spm_dev_probe()
298 addr = drv->reg_base + drv->reg_data->reg_offset[SPM_REG_SEQ_ENTRY]; in spm_dev_probe()
308 spm_register_write(drv, SPM_REG_AVS_CTL, drv->reg_data->avs_ctl); in spm_dev_probe()
309 spm_register_write(drv, SPM_REG_AVS_LIMIT, drv->reg_data->avs_limit); in spm_dev_probe()
310 spm_register_write(drv, SPM_REG_CFG, drv->reg_data->spm_cfg); in spm_dev_probe()
311 spm_register_write(drv, SPM_REG_DLY, drv->reg_data->spm_dly); in spm_dev_probe()
[all …]
/linux-6.3-rc2/drivers/phy/samsung/
A Dphy-samsung-usb2.c23 struct samsung_usb2_phy_driver *drv = inst->drv; in samsung_usb2_phy_power_on() local
29 if (drv->vbus) { in samsung_usb2_phy_power_on()
56 if (drv->vbus) in samsung_usb2_phy_power_on()
65 struct samsung_usb2_phy_driver *drv = inst->drv; in samsung_usb2_phy_power_off() local
79 if (drv->vbus) in samsung_usb2_phy_power_off()
97 if (!drv) in samsung_usb2_phy_xlate()
164 if (!drv) in samsung_usb2_phy_probe()
170 drv->cfg = cfg; in samsung_usb2_phy_probe()
207 drv->ref_rate = clk_get_rate(drv->ref_clk); in samsung_usb2_phy_probe()
209 ret = drv->cfg->rate_to_clk(drv->ref_rate, &drv->ref_reg_val); in samsung_usb2_phy_probe()
[all …]
A Dphy-exynos4x12-usb2.c167 struct samsung_usb2_phy_driver *drv = inst->drv; in exynos4x12_isol() local
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()
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()
244 rst = readl(drv->reg_phy + EXYNOS_4x12_UPHYRST); in exynos4x12_phy_pwr()
272 struct samsung_usb2_phy_driver *drv = inst->drv; in exynos4x12_power_on() local
[all …]
A Dphy-exynos5250-usb2.c176 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()
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()
228 writel(otg, drv->reg_phy + EXYNOS_5250_USBOTGSYS); in exynos5250_power_on()
234 writel(otg, drv->reg_phy + EXYNOS_5250_USBOTGSYS); in exynos5250_power_on()
245 ctrl0 |= drv->ref_reg_val << in exynos5250_power_on()
[all …]
/linux-6.3-rc2/drivers/devfreq/
A Dmtk-cci-devfreq.c47 if (!drv->sram_reg) { in mtk_ccifreq_set_voltage()
135 if (!drv) in mtk_ccifreq_target()
173 ret = clk_set_parent(drv->cci_clk, drv->inter_clk); in mtk_ccifreq_target()
207 drv->pre_freq = *freq; in mtk_ccifreq_target()
257 drv = devm_kzalloc(dev, sizeof(*drv), GFP_KERNEL); in mtk_ccifreq_probe()
258 if (!drv) in mtk_ccifreq_probe()
261 drv->dev = dev; in mtk_ccifreq_probe()
299 drv->sram_reg = NULL; in mtk_ccifreq_probe()
313 drv->vtrack_max = 3 * DIV_ROUND_UP(max(drv->soc_data->sram_max_volt, in mtk_ccifreq_probe()
388 if (drv->sram_reg && regulator_is_enabled(drv->sram_reg)) in mtk_ccifreq_probe()
[all …]
/linux-6.3-rc2/drivers/cpuidle/
A Ddriver.c113 cpuidle_curr_driver = drv; in __cpuidle_set_driver()
163 if (!drv->cpumask) in __cpuidle_driver_init()
175 drv->bctimer = 1; in __cpuidle_driver_init()
215 if (!drv || !drv->state_count) in __cpuidle_register_driver()
225 __cpuidle_driver_init(drv); in __cpuidle_register_driver()
231 if (drv->bctimer) in __cpuidle_register_driver()
249 if (drv->bctimer) { in __cpuidle_unregister_driver()
250 drv->bctimer = 0; in __cpuidle_unregister_driver()
328 struct cpuidle_driver *drv; in cpuidle_get_driver() local
335 return drv; in cpuidle_get_driver()
[all …]
A Dcpuidle.c69 if (!drv) in cpuidle_play_dead()
74 if (drv->states[i].enter_dead) in cpuidle_play_dead()
212 struct cpuidle_driver *drv, in cpuidle_enter_state() argument
537 struct cpuidle_driver *drv; in cpuidle_enable_device() local
550 if (!drv) in cpuidle_enable_device()
615 module_put(drv->owner); in __cpuidle_unregister_device()
639 if (!try_module_get(drv->owner)) in __cpuidle_register_device()
744 for_each_cpu(cpu, drv->cpumask) { in cpuidle_unregister()
749 cpuidle_unregister_driver(drv); in cpuidle_unregister()
776 for_each_cpu(cpu, drv->cpumask) { in cpuidle_register()
[all …]
A Dcpuidle-psci.c321 struct cpuidle_driver *drv; in psci_idle_init_cpu() local
342 drv = devm_kzalloc(dev, sizeof(*drv), GFP_KERNEL); in psci_idle_init_cpu()
343 if (!drv) in psci_idle_init_cpu()
346 drv->name = "psci_idle"; in psci_idle_init_cpu()
347 drv->owner = THIS_MODULE; in psci_idle_init_cpu()
355 drv->states[0].exit_latency = 1; in psci_idle_init_cpu()
358 strcpy(drv->states[0].name, "WFI"); in psci_idle_init_cpu()
381 ret = cpuidle_register(drv, NULL); in psci_idle_init_cpu()
385 cpuidle_cooling_register(drv); in psci_idle_init_cpu()
403 struct cpuidle_driver *drv; in psci_cpuidle_probe() local
[all …]
/linux-6.3-rc2/drivers/net/wireless/intel/iwlwifi/
A Diwl-drv.c132 iwl_free_fw_img(drv, drv->fw.img + i); in iwl_dealloc_ucode()
135 memset(&drv->fw, 0, sizeof(drv->fw)); in iwl_dealloc_ucode()
861 drv->fw.valid_tx_ant = (drv->fw.phy_config & in iwl_parse_tlv_firmware()
864 drv->fw.valid_rx_ant = (drv->fw.phy_config & in iwl_parse_tlv_firmware()
1350 op_mode = ops->start(drv->trans, drv->trans->cfg, in _iwl_op_mode_start()
1637 list_add_tail(&drv->list, &op->drv); in iwl_req_fw_callback()
1640 drv->op_mode = _iwl_op_mode_start(drv, op); in iwl_req_fw_callback()
1699 drv = kzalloc(sizeof(*drv), GFP_KERNEL); in iwl_drv_start()
1759 drv->trans->ops->debugfs_cleanup(drv->trans); in iwl_drv_stop()
1795 list_for_each_entry(drv, &op->drv, list) in iwl_opmode_register()
[all …]
/linux-6.3-rc2/drivers/base/
A Ddriver.c158 if (!drv || !drv->p) in driver_find_device()
181 if (drv) in driver_create_file()
197 if (drv) in driver_remove_file()
229 drv->name, drv->bus->name); in driver_register()
233 if ((drv->bus->probe && drv->probe) || in driver_register()
234 (drv->bus->remove && drv->remove) || in driver_register()
235 (drv->bus->shutdown && drv->shutdown)) in driver_register()
239 other = driver_find(drv->name, drv->bus); in driver_register()
249 ret = driver_add_groups(drv, drv->groups); in driver_register()
269 if (!drv || !drv->p) { in driver_unregister()
[all …]
A Dmodule.c16 driver_name = kasprintf(GFP_KERNEL, "%s:%s", drv->bus->name, drv->name); in make_driver_name()
39 if (!drv) in module_add_driver()
44 else if (drv->mod_name) { in module_add_driver()
52 drv->p->mkobj = mk; in module_add_driver()
63 driver_name = make_driver_name(drv); in module_add_driver()
77 if (!drv) in module_remove_driver()
82 if (drv->owner) in module_remove_driver()
83 mk = &drv->owner->mkobj; in module_remove_driver()
84 else if (drv->p->mkobj) in module_remove_driver()
85 mk = drv->p->mkobj; in module_remove_driver()
[all …]
A Ddd.c466 if (drv) { in driver_sysfs_remove()
467 if (drv->coredump) in driver_sysfs_remove()
551 else if (drv->probe) in call_driver_probe()
597 drv->bus->name, __func__, drv->name, dev_name(dev)); in really_probe()
605 dev->driver = drv; in really_probe()
681 drv->bus->name, __func__, dev_name(dev), drv->name); in really_probe()
758 drv->bus->name, __func__, dev_name(dev), drv->name); in __driver_probe_device()
1201 return bus_for_each_dev(drv->bus, NULL, drv, __driver_attach); in driver_attach()
1213 drv = dev->driver; in __device_release_driver()
1214 if (drv) { in __device_release_driver()
[all …]
/linux-6.3-rc2/drivers/soundwire/
A Dbus_type.c40 struct sdw_driver *drv; in sdw_bus_match() local
110 name = drv->name; in sdw_drv_probe()
112 name = drv->driver.name; in sdw_drv_probe()
122 if (drv->ops && drv->ops->read_prop) in sdw_drv_probe()
149 if (drv->ops && drv->ops->update_status) { in sdw_drv_probe()
172 if (drv->remove) in sdw_drv_remove()
173 ret = drv->remove(slave); in sdw_drv_remove()
185 if (drv->shutdown) in sdw_drv_shutdown()
186 drv->shutdown(slave); in sdw_drv_shutdown()
202 if (!drv->probe) { in __sdw_register_driver()
[all …]
/linux-6.3-rc2/drivers/watchdog/
A Dmenz69_wdt.c39 val = readw(drv->base + MEN_Z069_WTR); in men_z069_wdt_start()
41 writew(val, drv->base + MEN_Z069_WTR); in men_z069_wdt_start()
112 struct men_z069_drv *drv; in men_z069_probe() local
116 if (!drv) in men_z069_probe()
124 if (drv->base == NULL) in men_z069_probe()
127 drv->mem = mem; in men_z069_probe()
129 drv->wdt = men_z069_wdt; in men_z069_probe()
132 watchdog_set_drvdata(&drv->wdt, drv); in men_z069_probe()
133 drv->wdt.parent = &dev->dev; in men_z069_probe()
134 mcb_set_drvdata(dev, drv); in men_z069_probe()
[all …]
A Dmena21_wdt.c57 gpiod_set_value(drv->gpios[GPIO_WD_ENAB], 1); in a21_wdt_start()
66 gpiod_set_value(drv->gpios[GPIO_WD_ENAB], 0); in a21_wdt_stop()
131 struct a21_wdt_drv *drv; in a21_wdt_probe() local
138 if (!drv) in a21_wdt_probe()
157 if (IS_ERR(drv->gpios[i])) in a21_wdt_probe()
158 return PTR_ERR(drv->gpios[i]); in a21_wdt_probe()
169 val = gpiod_get_value(drv->gpios[i]); in a21_wdt_probe()
176 watchdog_set_drvdata(&a21_wdt, drv); in a21_wdt_probe()
179 reset = a21_wdt_get_bootstatus(drv); in a21_wdt_probe()
189 drv->wdt = a21_wdt; in a21_wdt_probe()
[all …]
/linux-6.3-rc2/drivers/phy/renesas/
A Dphy-rcar-gen2.c81 struct rcar_gen2_phy_driver *drv = channel->drv; in rcar_gen2_phy_init() local
120 struct rcar_gen2_phy_driver *drv = phy->channel->drv; in rcar_gen2_phy_power_on() local
164 struct rcar_gen2_phy_driver *drv = phy->channel->drv; in rcar_gen2_phy_power_off() local
196 struct rcar_gen2_phy_driver *drv = phy->channel->drv; in rz_g1c_phy_power_on() local
225 struct rcar_gen2_phy_driver *drv = phy->channel->drv; in rz_g1c_phy_power_off() local
317 if (!drv) in rcar_gen2_phy_xlate()
363 drv = devm_kzalloc(dev, sizeof(*drv), GFP_KERNEL); in rcar_gen2_phy_probe()
364 if (!drv) in rcar_gen2_phy_probe()
369 drv->clk = clk; in rcar_gen2_phy_probe()
377 drv->channels = devm_kcalloc(dev, drv->num_channels, in rcar_gen2_phy_probe()
[all …]
/linux-6.3-rc2/arch/x86/kernel/apic/
A Dprobe_64.c21 struct apic **drv; in default_setup_apic_routing() local
25 for (drv = __apicdrivers; drv < __apicdrivers_end; drv++) { in default_setup_apic_routing()
26 if ((*drv)->probe && (*drv)->probe()) { in default_setup_apic_routing()
27 if (apic != *drv) { in default_setup_apic_routing()
28 apic = *drv; in default_setup_apic_routing()
39 struct apic **drv; in default_acpi_madt_oem_check() local
41 for (drv = __apicdrivers; drv < __apicdrivers_end; drv++) { in default_acpi_madt_oem_check()
42 if ((*drv)->acpi_madt_oem_check(oem_id, oem_table_id)) { in default_acpi_madt_oem_check()
43 if (apic != *drv) { in default_acpi_madt_oem_check()
44 apic = *drv; in default_acpi_madt_oem_check()
A Dprobe_32.c119 struct apic **drv; in parse_apic() local
124 for (drv = __apicdrivers; drv < __apicdrivers_end; drv++) { in parse_apic()
126 apic = *drv; in parse_apic()
175 struct apic **drv; in generic_apic_probe() local
177 for (drv = __apicdrivers; drv < __apicdrivers_end; drv++) { in generic_apic_probe()
178 if ((*drv)->probe()) { in generic_apic_probe()
179 apic = *drv; in generic_apic_probe()
184 if (drv == __apicdrivers_end) in generic_apic_probe()
193 struct apic **drv; in default_acpi_madt_oem_check() local
195 for (drv = __apicdrivers; drv < __apicdrivers_end; drv++) { in default_acpi_madt_oem_check()
[all …]
/linux-6.3-rc2/drivers/media/radio/
A Dradio-isa.c57 if (isa->drv->has_stereo) in radio_isa_g_tuner()
165 return drv->probe || drv->io_params[dev] >= 0; in radio_isa_match()
174 if (drv->io_ports[i] == io) in radio_isa_valid_io()
188 isa->drv = drv; in radio_isa_alloc()
199 const struct radio_isa_driver *drv = isa->drv; in radio_isa_common_probe() local
219 if (drv->max_volume) in radio_isa_common_probe()
222 drv->max_volume); in radio_isa_common_probe()
229 if (drv->max_volume) in radio_isa_common_probe()
265 drv->card, isa->io); in radio_isa_common_probe()
327 drv->io_ports[0]); in radio_isa_probe()
[all …]
/linux-6.3-rc2/arch/arm64/boot/dts/rockchip/
A Drockchip-pinconf.dtsi23 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 {
119 pcfg_pull_up_drv_level_0: pcfg-pull-up-drv-level-0 {
125 pcfg_pull_up_drv_level_1: pcfg-pull-up-drv-level-1 {
131 pcfg_pull_up_drv_level_2: pcfg-pull-up-drv-level-2 {
137 pcfg_pull_up_drv_level_3: pcfg-pull-up-drv-level-3 {
143 pcfg_pull_up_drv_level_4: pcfg-pull-up-drv-level-4 {
149 pcfg_pull_up_drv_level_5: pcfg-pull-up-drv-level-5 {
[all …]
/linux-6.3-rc2/drivers/vfio/mdev/
A Dmdev_driver.c17 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()
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()
63 return driver_register(&drv->driver); in mdev_register_driver()
[all …]

Completed in 85 milliseconds

12345678910>>...43