Home
last modified time | relevance | path

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

12345678910>>...45

/linux-6.12.1/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_xgmac.c91 static void hns_xgmac_tx_enable(struct mac_driver *drv, u32 value) in hns_xgmac_tx_enable() argument
93 dsaf_set_dev_bit(drv, XGMAC_MAC_ENABLE_REG, XGMAC_ENABLE_TX_B, !!value); in hns_xgmac_tx_enable()
101 static void hns_xgmac_rx_enable(struct mac_driver *drv, u32 value) in hns_xgmac_rx_enable() argument
103 dsaf_set_dev_bit(drv, XGMAC_MAC_ENABLE_REG, XGMAC_ENABLE_RX_B, !!value); in hns_xgmac_rx_enable()
138 struct mac_driver *drv = (struct mac_driver *)mac_drv; in hns_xgmac_enable() local
140 hns_xgmac_lf_rf_insert(drv, HNS_XGMAC_NO_LF_RF_INSERT); in hns_xgmac_enable()
144 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()
[all …]
Dhns_dsaf_gmac.c63 struct mac_driver *drv = (struct mac_driver *)mac_drv; in hns_gmac_enable() local
67 dsaf_set_dev_bit(drv, GMAC_PORT_EN_REG, GMAC_PORT_TX_EN_B, 1); in hns_gmac_enable()
71 dsaf_set_dev_bit(drv, GMAC_PCS_RX_EN_REG, 0, 0); in hns_gmac_enable()
72 dsaf_set_dev_bit(drv, GMAC_PORT_EN_REG, GMAC_PORT_RX_EN_B, 1); in hns_gmac_enable()
78 struct mac_driver *drv = (struct mac_driver *)mac_drv; in hns_gmac_disable() local
82 dsaf_set_dev_bit(drv, GMAC_PORT_EN_REG, GMAC_PORT_TX_EN_B, 0); in hns_gmac_disable()
86 dsaf_set_dev_bit(drv, GMAC_PCS_RX_EN_REG, 0, 1); in hns_gmac_disable()
87 dsaf_set_dev_bit(drv, GMAC_PORT_EN_REG, GMAC_PORT_RX_EN_B, 0); in hns_gmac_disable()
98 struct mac_driver *drv = (struct mac_driver *)mac_drv; in hns_gmac_get_en() local
101 porten = dsaf_read_dev(drv, GMAC_PORT_EN_REG); in hns_gmac_get_en()
[all …]
/linux-6.12.1/drivers/pmdomain/qcom/
Dcpr.c252 static bool cpr_is_allowed(struct cpr_drv *drv) in cpr_is_allowed() argument
254 return !drv->loop_disabled; in cpr_is_allowed()
257 static void cpr_write(struct cpr_drv *drv, u32 offset, u32 value) in cpr_write() argument
259 writel_relaxed(value, drv->base + offset); in cpr_write()
262 static u32 cpr_read(struct cpr_drv *drv, u32 offset) in cpr_read() argument
264 return readl_relaxed(drv->base + offset); in cpr_read()
268 cpr_masked_write(struct cpr_drv *drv, u32 offset, u32 mask, u32 value) in cpr_masked_write() argument
272 val = readl_relaxed(drv->base + offset); in cpr_masked_write()
275 writel_relaxed(val, drv->base + offset); in cpr_masked_write()
278 static void cpr_irq_clr(struct cpr_drv *drv) in cpr_irq_clr() argument
[all …]
/linux-6.12.1/drivers/soc/qcom/
Drpmh-rsc.c196 tcs_reg_addr(const struct rsc_drv *drv, int reg, int tcs_id) in tcs_reg_addr() argument
198 return drv->tcs_base + drv->regs[RSC_DRV_TCS_OFFSET] * tcs_id + reg; in tcs_reg_addr()
202 tcs_cmd_addr(const struct rsc_drv *drv, int reg, int tcs_id, int cmd_id) in tcs_cmd_addr() argument
204 return tcs_reg_addr(drv, reg, tcs_id) + drv->regs[RSC_DRV_CMD_OFFSET] * cmd_id; in tcs_cmd_addr()
207 static u32 read_tcs_cmd(const struct rsc_drv *drv, int reg, int tcs_id, in read_tcs_cmd() argument
210 return readl_relaxed(tcs_cmd_addr(drv, reg, tcs_id, cmd_id)); in read_tcs_cmd()
213 static u32 read_tcs_reg(const struct rsc_drv *drv, int reg, int tcs_id) in read_tcs_reg() argument
215 return readl_relaxed(tcs_reg_addr(drv, reg, tcs_id)); in read_tcs_reg()
218 static void write_tcs_cmd(const struct rsc_drv *drv, int reg, int tcs_id, in write_tcs_cmd() argument
221 writel_relaxed(data, tcs_cmd_addr(drv, reg, tcs_id, cmd_id)); in write_tcs_cmd()
[all …]
Dspm.c256 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-6.12.1/drivers/phy/samsung/
Dphy-samsung-usb2.c21 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 …]
Dphy-exynos4x12-usb2.c167 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 …]
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()
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-6.12.1/drivers/devfreq/
Dmtk-cci-devfreq.c39 static int mtk_ccifreq_set_voltage(struct mtk_ccifreq_drv *drv, int new_voltage) in mtk_ccifreq_set_voltage() argument
41 const struct mtk_ccifreq_platform_data *soc_data = drv->soc_data; in mtk_ccifreq_set_voltage()
42 struct device *dev = drv->dev; in mtk_ccifreq_set_voltage()
44 int retry_max = drv->vtrack_max; in mtk_ccifreq_set_voltage()
46 if (!drv->sram_reg) { in mtk_ccifreq_set_voltage()
47 ret = regulator_set_voltage(drv->proc_reg, new_voltage, in mtk_ccifreq_set_voltage()
48 drv->soc_data->proc_max_volt); in mtk_ccifreq_set_voltage()
52 pre_voltage = regulator_get_voltage(drv->proc_reg); in mtk_ccifreq_set_voltage()
58 pre_vsram = regulator_get_voltage(drv->sram_reg); in mtk_ccifreq_set_voltage()
71 ret = regulator_set_voltage(drv->sram_reg, vsram, in mtk_ccifreq_set_voltage()
[all …]
/linux-6.12.1/drivers/net/wireless/intel/iwlwifi/
Diwl-drv.c84 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() argument
109 static void iwl_free_fw_img(struct iwl_drv *drv, struct fw_img *img) in iwl_free_fw_img() argument
113 iwl_free_fw_desc(drv, &img->sec[i]); in iwl_free_fw_img()
117 static void iwl_dealloc_ucode(struct iwl_drv *drv) in iwl_dealloc_ucode() argument
121 kfree(drv->fw.dbg.dest_tlv); in iwl_dealloc_ucode()
122 for (i = 0; i < ARRAY_SIZE(drv->fw.dbg.conf_tlv); i++) in iwl_dealloc_ucode()
123 kfree(drv->fw.dbg.conf_tlv[i]); in iwl_dealloc_ucode()
124 for (i = 0; i < ARRAY_SIZE(drv->fw.dbg.trigger_tlv); i++) in iwl_dealloc_ucode()
125 kfree(drv->fw.dbg.trigger_tlv[i]); in iwl_dealloc_ucode()
[all …]
/linux-6.12.1/drivers/cpuidle/
Ddriver.c49 static inline void __cpuidle_unset_driver(struct cpuidle_driver *drv) in __cpuidle_unset_driver() argument
53 for_each_cpu(cpu, drv->cpumask) { in __cpuidle_unset_driver()
55 if (drv != __cpuidle_get_cpu_driver(cpu)) in __cpuidle_unset_driver()
69 static inline int __cpuidle_set_driver(struct cpuidle_driver *drv) in __cpuidle_set_driver() argument
73 for_each_cpu(cpu, drv->cpumask) { in __cpuidle_set_driver()
77 if (old_drv && old_drv != drv) in __cpuidle_set_driver()
81 for_each_cpu(cpu, drv->cpumask) in __cpuidle_set_driver()
82 per_cpu(cpuidle_drivers, cpu) = drv; in __cpuidle_set_driver()
109 static inline int __cpuidle_set_driver(struct cpuidle_driver *drv) in __cpuidle_set_driver() argument
114 cpuidle_curr_driver = drv; in __cpuidle_set_driver()
[all …]
Dcpuidle.c52 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()
73 for (i = drv->state_count - 1; i >= 0; i--) in cpuidle_play_dead()
74 if (drv->states[i].enter_dead) in cpuidle_play_dead()
75 return drv->states[i].enter_dead(dev, i); in cpuidle_play_dead()
80 static int find_deepest_state(struct cpuidle_driver *drv, in find_deepest_state() argument
89 for (i = 1; i < drv->state_count; i++) { in find_deepest_state()
90 struct cpuidle_state *s = &drv->states[i]; in find_deepest_state()
[all …]
Dcpuidle-psci.c54 struct cpuidle_driver *drv, int idx, in __psci_enter_domain_idle_state() argument
92 struct cpuidle_driver *drv, int idx) in psci_enter_domain_idle_state() argument
94 return __psci_enter_domain_idle_state(dev, drv, idx, false); in psci_enter_domain_idle_state()
98 struct cpuidle_driver *drv, in psci_enter_s2idle_domain_idle_state() argument
101 return __psci_enter_domain_idle_state(dev, drv, idx, true); in psci_enter_s2idle_domain_idle_state()
192 struct cpuidle_driver *drv, int idx) in psci_enter_idle_state() argument
222 static int psci_dt_cpu_init_topology(struct cpuidle_driver *drv, in psci_dt_cpu_init_topology() argument
242 drv->states[state_count - 1].enter_s2idle = psci_enter_s2idle_domain_idle_state; in psci_dt_cpu_init_topology()
244 drv->states[state_count - 1].enter = psci_enter_domain_idle_state; 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() argument
[all …]
/linux-6.12.1/drivers/base/
Ddriver.c117 int driver_for_each_device(struct device_driver *drv, struct device *start, in driver_for_each_device() argument
124 if (!drv) in driver_for_each_device()
127 klist_iter_init_node(&drv->p->klist_devices, &i, in driver_for_each_device()
151 struct device *driver_find_device(const struct device_driver *drv, in driver_find_device() argument
158 if (!drv || !drv->p) in driver_find_device()
161 klist_iter_init_node(&drv->p->klist_devices, &i, in driver_find_device()
176 int driver_create_file(const struct device_driver *drv, in driver_create_file() argument
181 if (drv) in driver_create_file()
182 error = sysfs_create_file(&drv->p->kobj, &attr->attr); in driver_create_file()
194 void driver_remove_file(const struct device_driver *drv, in driver_remove_file() argument
[all …]
Dmodule.c12 static char *make_driver_name(const struct device_driver *drv) in make_driver_name() argument
16 driver_name = kasprintf(GFP_KERNEL, "%s:%s", drv->bus->name, drv->name); in make_driver_name()
33 int module_add_driver(struct module *mod, const struct device_driver *drv) in module_add_driver() argument
39 if (!drv) in module_add_driver()
44 else if (drv->mod_name) { in module_add_driver()
48 mkobj = kset_find_obj(module_kset, drv->mod_name); in module_add_driver()
52 drv->p->mkobj = mk; in module_add_driver()
61 ret = sysfs_create_link(&drv->p->kobj, &mk->kobj, "module"); in module_add_driver()
65 driver_name = make_driver_name(drv); in module_add_driver()
77 ret = sysfs_create_link(mk->drivers_dir, &drv->p->kobj, driver_name); in module_add_driver()
[all …]
/linux-6.12.1/drivers/watchdog/
Dmenz69_wdt.c36 struct men_z069_drv *drv = watchdog_get_drvdata(wdt); in men_z069_wdt_start() local
39 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()
48 struct men_z069_drv *drv = watchdog_get_drvdata(wdt); in men_z069_wdt_stop() local
51 val = readw(drv->base + MEN_Z069_WTR); in men_z069_wdt_stop()
53 writew(val, drv->base + MEN_Z069_WTR); in men_z069_wdt_stop()
60 struct men_z069_drv *drv = watchdog_get_drvdata(wdt); in men_z069_wdt_ping() local
64 val = readw(drv->base + MEN_Z069_WVR); in men_z069_wdt_ping()
66 writew(val, drv->base + MEN_Z069_WVR); in men_z069_wdt_ping()
74 struct men_z069_drv *drv = watchdog_get_drvdata(wdt); in men_z069_wdt_set_timeout() local
[all …]
Dmena21_wdt.c42 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-6.12.1/drivers/soundwire/
Dbus_type.c22 sdw_get_device_id(struct sdw_slave *slave, const struct sdw_driver *drv) in sdw_get_device_id() argument
26 for (id = drv->id_table; id && id->mfg_id; id++) in sdw_get_device_id()
41 const struct sdw_driver *drv; in sdw_bus_match() local
46 drv = drv_to_sdw_driver(ddrv); in sdw_bus_match()
48 ret = !!sdw_get_device_id(slave, drv); in sdw_bus_match()
84 struct sdw_driver *drv = drv_to_sdw_driver(dev->driver); in sdw_drv_probe() local
97 id = sdw_get_device_id(slave, drv); in sdw_drv_probe()
108 ret = drv->probe(slave, id); in sdw_drv_probe()
117 if (drv->ops && drv->ops->read_prop) in sdw_drv_probe()
118 drv->ops->read_prop(slave); in sdw_drv_probe()
[all …]
/linux-6.12.1/drivers/phy/renesas/
Dphy-rcar-gen2.c56 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-6.12.1/drivers/cpufreq/
Dqcom-cpufreq-nvmem.c54 struct qcom_cpufreq_drv *drv);
74 struct qcom_cpufreq_drv *drv) in qcom_cpufreq_simple_get_version() argument
84 drv->versions = 1 << *speedbin; in qcom_cpufreq_simple_get_version()
170 struct qcom_cpufreq_drv *drv) in qcom_cpufreq_kryo_name_version() argument
200 drv->versions = 1 << (unsigned int)(*speedbin); in qcom_cpufreq_kryo_name_version()
204 drv->versions = 1 << ((unsigned int)(*speedbin) + 4); in qcom_cpufreq_kryo_name_version()
218 struct qcom_cpufreq_drv *drv) in qcom_cpufreq_krait_name_version() argument
247 drv->versions = (1 << speed); in qcom_cpufreq_krait_name_version()
257 struct qcom_cpufreq_drv *drv) in qcom_cpufreq_ipq8064_name_version() argument
282 drv->versions = BIT(IPQ8062_VERSION); in qcom_cpufreq_ipq8064_name_version()
[all …]
/linux-6.12.1/drivers/media/radio/
Dradio-isa.c37 strscpy(v->driver, isa->drv->driver.driver.name, sizeof(v->driver)); in radio_isa_querycap()
38 strscpy(v->card, isa->drv->card, sizeof(v->card)); in radio_isa_querycap()
47 const struct radio_isa_ops *ops = isa->drv->ops; in radio_isa_g_tuner()
57 if (isa->drv->has_stereo) in radio_isa_g_tuner()
77 const struct radio_isa_ops *ops = isa->drv->ops; in radio_isa_s_tuner()
98 res = isa->drv->ops->s_frequency(isa, freq); in radio_isa_s_frequency()
123 return isa->drv->ops->s_mute_volume(isa, ctrl->val, in radio_isa_s_ctrl()
163 struct radio_isa_driver *drv = pdev->platform_data; in radio_isa_match() local
165 return drv->probe || drv->io_params[dev] >= 0; in radio_isa_match()
169 static bool radio_isa_valid_io(const struct radio_isa_driver *drv, int io) in radio_isa_valid_io() argument
[all …]
/linux-6.12.1/arch/x86/kernel/apic/
Dprobe_64.c19 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-6.12.1/arch/arm64/boot/dts/rockchip/
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 {
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-6.12.1/drivers/vfio/mdev/
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()
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-6.12.1/include/linux/
Dcpuidle.h61 struct cpuidle_driver *drv,
75 struct cpuidle_driver *drv,
172 extern bool cpuidle_not_available(struct cpuidle_driver *drv,
175 extern int cpuidle_select(struct cpuidle_driver *drv,
178 extern int cpuidle_enter(struct cpuidle_driver *drv,
181 extern u64 cpuidle_poll_time(struct cpuidle_driver *drv,
184 extern int cpuidle_register_driver(struct cpuidle_driver *drv);
186 extern void cpuidle_driver_state_disabled(struct cpuidle_driver *drv, int idx,
188 extern void cpuidle_unregister_driver(struct cpuidle_driver *drv);
191 extern int cpuidle_register(struct cpuidle_driver *drv,
[all …]

12345678910>>...45