/linux-master/drivers/video/fbdev/via/ |
H A D | via_aux_vt1622.c | 18 struct via_aux_drv drv = { local 24 if (!via_aux_read(&drv, 0x1B, &tmp, 1) || tmp != 0x03) 28 via_aux_add(&drv);
|
H A D | via_aux_vt1625.c | 18 struct via_aux_drv drv = { local 24 if (!via_aux_read(&drv, 0x1B, &tmp, 1) || tmp != 0x50) 28 via_aux_add(&drv);
|
H A D | via_aux_ch7301.c | 18 struct via_aux_drv drv = { local 24 if (!via_aux_read(&drv, 0x4B, &tmp, 1) || tmp != 0x17) 28 via_aux_add(&drv);
|
H A D | via_aux.h | 32 void (*cleanup)(struct via_aux_drv *drv); 34 (struct via_aux_drv *drv); 43 static inline bool via_aux_add(struct via_aux_drv *drv) argument 50 *data = *drv; 55 static inline bool via_aux_read(struct via_aux_drv *drv, u8 start, u8 *buf, argument 59 {.addr = drv->addr, .flags = 0, .len = 1, .buf = &start}, 60 {.addr = drv->addr, .flags = I2C_M_RD, .len = len, .buf = buf} }; 62 return i2c_transfer(drv->bus->adap, msg, 2) == 2;
|
H A D | via_aux_vt1631.c | 18 struct via_aux_drv drv = { local 26 if (!via_aux_read(&drv, 0x00, tmp, len) || memcmp(id, tmp, len)) 30 via_aux_add(&drv);
|
H A D | via_aux_vt1636.c | 18 struct via_aux_drv drv = { local 26 if (!via_aux_read(&drv, 0x00, tmp, len) || memcmp(id, tmp, len)) 30 via_aux_add(&drv);
|
/linux-master/sound/hda/ext/ |
H A D | hdac_ext_bus.c | 114 * @drv: ext hda driver structure 116 int snd_hda_ext_driver_register(struct hdac_driver *drv) argument 118 drv->type = HDA_DEV_ASOC; 119 drv->driver.bus = &snd_hda_bus_type; 122 if (drv->probe) 123 drv->driver.probe = hda_ext_drv_probe; 124 if (drv->remove) 125 drv->driver.remove = hdac_ext_drv_remove; 126 if (drv->shutdown) 127 drv 138 snd_hda_ext_driver_unregister(struct hdac_driver *drv) argument [all...] |
/linux-master/include/soc/qcom/ |
H A D | spm.h | 19 void spm_set_low_power_mode(struct spm_driver_data *drv,
|
/linux-master/drivers/zorro/ |
H A D | zorro-driver.c | 47 struct zorro_driver *drv = to_zorro_driver(dev->driver); local 50 if (drv->probe) { 53 id = zorro_match_device(drv->id_table, z); 55 error = drv->probe(z, id); 66 struct zorro_driver *drv = to_zorro_driver(dev->driver); local 68 if (drv->remove) 69 drv->remove(z); 75 * @drv: the driver structure to register 81 int zorro_register_driver(struct zorro_driver *drv) argument 84 drv 103 zorro_unregister_driver(struct zorro_driver *drv) argument 121 zorro_bus_match(struct device *dev, struct device_driver *drv) argument [all...] |
/linux-master/include/linux/soundwire/ |
H A D | sdw_type.h | 18 #define sdw_register_driver(drv) \ 19 __sdw_register_driver(drv, THIS_MODULE) 21 int __sdw_register_driver(struct sdw_driver *drv, struct module *owner); 22 void sdw_unregister_driver(struct sdw_driver *drv);
|
/linux-master/drivers/soundwire/ |
H A D | bus_type.c | 16 * @drv: SoundWire Slave Driver 22 sdw_get_device_id(struct sdw_slave *slave, struct sdw_driver *drv) argument 26 for (id = drv->id_table; id && id->mfg_id; id++) 41 struct sdw_driver *drv; local 46 drv = drv_to_sdw_driver(ddrv); 48 ret = !!sdw_get_device_id(slave, drv); 84 struct sdw_driver *drv = drv_to_sdw_driver(dev->driver); local 98 id = sdw_get_device_id(slave, drv); 109 ret = drv->probe(slave, id); 111 name = drv 169 struct sdw_driver *drv = drv_to_sdw_driver(dev->driver); local 192 struct sdw_driver *drv = drv_to_sdw_driver(dev->driver); local 205 __sdw_register_driver(struct sdw_driver *drv, struct module *owner) argument 234 sdw_unregister_driver(struct sdw_driver *drv) argument [all...] |
/linux-master/drivers/mtd/chips/ |
H A D | chipreg.c | 18 void register_mtd_chip_driver(struct mtd_chip_driver *drv) argument 21 list_add(&drv->list, &chip_drvs_list); 25 void unregister_mtd_chip_driver(struct mtd_chip_driver *drv) argument 28 list_del(&drv->list); 57 struct mtd_chip_driver *drv; local 60 drv = get_mtd_chip_driver(name); 62 if (!drv && !request_module("%s", name)) 63 drv = get_mtd_chip_driver(name); 65 if (!drv) 68 ret = drv [all...] |
/linux-master/drivers/soc/qcom/ |
H A D | spm.c | 256 static inline void spm_register_write(struct spm_driver_data *drv, argument 259 if (drv->reg_data->reg_offset[reg]) 260 writel_relaxed(val, drv->reg_base + 261 drv->reg_data->reg_offset[reg]); 265 static inline void spm_register_write_sync(struct spm_driver_data *drv, argument 270 if (!drv->reg_data->reg_offset[reg]) 274 writel_relaxed(val, drv->reg_base + 275 drv->reg_data->reg_offset[reg]); 276 ret = readl_relaxed(drv->reg_base + 277 drv 284 spm_register_read(struct spm_driver_data *drv, enum spm_reg reg) argument 290 spm_set_low_power_mode(struct spm_driver_data *drv, enum pm_sleep_mode mode) argument 307 struct spm_driver_data *drv = rdev_get_drvdata(rdev); local 317 struct spm_driver_data *drv = rdev_get_drvdata(rdev); local 331 struct spm_driver_data *drv = data; local 414 spm_register_regulator(struct device *dev, struct spm_driver_data *drv) argument 511 struct spm_driver_data *drv; local [all...] |
/linux-master/drivers/phy/samsung/ |
H A D | phy-exynos4x12-usb2.c | 167 struct samsung_usb2_phy_driver *drv = inst->drv; local 189 regmap_update_bits(drv->reg_pmu, offset, mask, on ? 0 : mask); 194 struct samsung_usb2_phy_driver *drv = inst->drv; local 197 clk = readl(drv->reg_phy + EXYNOS_4x12_UPHYCLK); 200 if (drv->cfg->has_refclk_sel) 203 clk |= drv->ref_reg_val << EXYNOS_4x12_UPHYCLK_PHYFSEL_OFFSET; 205 writel(clk, drv->reg_phy + EXYNOS_4x12_UPHYCLK); 210 struct samsung_usb2_phy_driver *drv local 272 struct samsung_usb2_phy_driver *drv = inst->drv; local 311 struct samsung_usb2_phy_driver *drv = inst->drv; local [all...] |
H A D | phy-exynos5250-usb2.c | 176 struct samsung_usb2_phy_driver *drv = inst->drv; local 180 if (drv->cfg == &exynos5250_usb2_phy_config && 183 else if (drv->cfg == &exynos5250_usb2_phy_config && 186 else if (drv->cfg == &exynos5420_usb2_phy_config && 192 regmap_update_bits(drv->reg_pmu, offset, mask, on ? 0 : mask); 197 struct samsung_usb2_phy_driver *drv = inst->drv; local 206 regmap_update_bits(drv->reg_sys, 212 otg = readl(drv 323 struct samsung_usb2_phy_driver *drv = inst->drv; local [all...] |
/linux-master/drivers/cpuidle/ |
H A D | cpuidle.c | 52 bool cpuidle_not_available(struct cpuidle_driver *drv, argument 55 return off || !initialized || !drv || !dev || !dev->enabled; 66 struct cpuidle_driver *drv = cpuidle_get_cpu_driver(dev); local 69 if (!drv) 73 for (i = drv->state_count - 1; i >= 0; i--) 74 if (drv->states[i].enter_dead) 75 return drv->states[i].enter_dead(dev, i); 80 static int find_deepest_state(struct cpuidle_driver *drv, argument 89 for (i = 1; i < drv->state_count; i++) { 90 struct cpuidle_state *s = &drv 132 cpuidle_find_deepest_state(struct cpuidle_driver *drv, struct cpuidle_device *dev, u64 latency_limit_ns) argument 140 enter_s2idle_proper(struct cpuidle_driver *drv, struct cpuidle_device *dev, int index) argument 187 cpuidle_enter_s2idle(struct cpuidle_driver *drv, struct cpuidle_device *dev) argument 211 cpuidle_enter_state(struct cpuidle_device *dev, struct cpuidle_driver *drv, int index) argument 356 cpuidle_select(struct cpuidle_driver *drv, struct cpuidle_device *dev, bool *stop_tick) argument 372 cpuidle_enter(struct cpuidle_driver *drv, struct cpuidle_device *dev, int index) argument 429 cpuidle_poll_time(struct cpuidle_driver *drv, struct cpuidle_device *dev) argument 537 struct cpuidle_driver *drv; local 590 struct cpuidle_driver *drv = cpuidle_get_cpu_driver(dev); local 611 struct cpuidle_driver *drv = cpuidle_get_cpu_driver(dev); local 636 struct cpuidle_driver *drv = cpuidle_get_cpu_driver(dev); local 739 cpuidle_unregister(struct cpuidle_driver *drv) argument 764 cpuidle_register(struct cpuidle_driver *drv, const struct cpumask *const coupled_cpus) argument [all...] |
H A D | cpuidle.h | 19 struct cpuidle_driver *drv, int next_state); 41 bool cpuidle_state_is_coupled(struct cpuidle_driver *drv, int state); 42 int cpuidle_coupled_state_verify(struct cpuidle_driver *drv); 44 struct cpuidle_driver *drv, int next_state); 49 bool cpuidle_state_is_coupled(struct cpuidle_driver *drv, int state) argument 54 static inline int cpuidle_coupled_state_verify(struct cpuidle_driver *drv) argument 60 struct cpuidle_driver *drv, int next_state) 59 cpuidle_enter_state_coupled(struct cpuidle_device *dev, struct cpuidle_driver *drv, int next_state) argument
|
/linux-master/drivers/watchdog/ |
H A D | mena21_wdt.c | 42 static unsigned int a21_wdt_get_bootstatus(struct a21_wdt_drv *drv) argument 46 reset |= gpiod_get_value(drv->gpios[GPIO_WD_RST0]) ? (1 << 0) : 0; 47 reset |= gpiod_get_value(drv->gpios[GPIO_WD_RST1]) ? (1 << 1) : 0; 48 reset |= gpiod_get_value(drv->gpios[GPIO_WD_RST2]) ? (1 << 2) : 0; 55 struct a21_wdt_drv *drv = watchdog_get_drvdata(wdt); local 57 gpiod_set_value(drv->gpios[GPIO_WD_ENAB], 1); 64 struct a21_wdt_drv *drv = watchdog_get_drvdata(wdt); local 66 gpiod_set_value(drv->gpios[GPIO_WD_ENAB], 0); 73 struct a21_wdt_drv *drv = watchdog_get_drvdata(wdt); local 75 gpiod_set_value(drv 85 struct a21_wdt_drv *drv = watchdog_get_drvdata(wdt); local 131 struct a21_wdt_drv *drv; local 203 struct a21_wdt_drv *drv = dev_get_drvdata(&pdev->dev); local [all...] |
/linux-master/include/linux/ |
H A D | cpuidle.h | 61 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, 207 cpuidle_not_available(struct cpuidle_driver *drv, struct cpuidle_device *dev) argument 210 cpuidle_select(struct cpuidle_driver *drv, struct cpuidle_device *dev, bool *stop_tick) argument 213 cpuidle_enter(struct cpuidle_driver *drv, struct cpuidle_device *dev, int index) argument 217 cpuidle_poll_time(struct cpuidle_driver *drv, struct cpuidle_device *dev) argument 220 cpuidle_register_driver(struct cpuidle_driver *drv) argument 223 cpuidle_driver_state_disabled(struct cpuidle_driver *drv, int idx, bool disable) argument 225 cpuidle_unregister_driver(struct cpuidle_driver *drv) argument 229 cpuidle_register(struct cpuidle_driver *drv, const struct cpumask *const coupled_cpus) argument 232 cpuidle_unregister(struct cpuidle_driver *drv) argument 254 cpuidle_find_deepest_state(struct cpuidle_driver *drv, struct cpuidle_device *dev, u64 latency_limit_ns) argument 258 cpuidle_enter_s2idle(struct cpuidle_driver *drv, struct cpuidle_device *dev) argument 281 cpuidle_poll_state_init(struct cpuidle_driver *drv) argument [all...] |
/linux-master/drivers/phy/renesas/ |
H A D | phy-rcar-gen2.c | 56 struct rcar_gen2_phy_driver *drv; member in struct:rcar_gen2_channel 80 struct rcar_gen2_phy_driver *drv = channel->drv; local 93 clk_prepare_enable(drv->clk); 95 spin_lock_irqsave(&drv->lock, flags); 96 ugctrl2 = readl(drv->base + USBHS_UGCTRL2); 99 writel(ugctrl2, drv->base + USBHS_UGCTRL2); 100 spin_unlock_irqrestore(&drv->lock, flags); 109 clk_disable_unprepare(channel->drv->clk); 119 struct rcar_gen2_phy_driver *drv local 163 struct rcar_gen2_phy_driver *drv = phy->channel->drv; local 195 struct rcar_gen2_phy_driver *drv = phy->channel->drv; local 224 struct rcar_gen2_phy_driver *drv = phy->channel->drv; local 311 struct rcar_gen2_phy_driver *drv; local 338 struct rcar_gen2_phy_driver *drv; local [all...] |
/linux-master/sound/hda/ |
H A D | hda_bus_type.c | 18 * @drv: HD-audio codec driver 24 hdac_get_device_id(struct hdac_device *hdev, struct hdac_driver *drv) argument 26 if (drv->id_table) { 27 const struct hda_device_id *id = drv->id_table; 41 static int hdac_codec_match(struct hdac_device *dev, struct hdac_driver *drv) argument 43 if (hdac_get_device_id(dev, drv)) 49 static int hda_bus_match(struct device *dev, struct device_driver *drv) argument 52 struct hdac_driver *hdrv = drv_to_hdac_driver(drv);
|
/linux-master/drivers/phy/mediatek/ |
H A D | Makefile | 13 phy-mtk-hdmi-drv-y := phy-mtk-hdmi.o 14 phy-mtk-hdmi-drv-y += phy-mtk-hdmi-mt2701.o 15 phy-mtk-hdmi-drv-y += phy-mtk-hdmi-mt8173.o 16 phy-mtk-hdmi-drv-y += phy-mtk-hdmi-mt8195.o 17 obj-$(CONFIG_PHY_MTK_HDMI) += phy-mtk-hdmi-drv.o 21 phy-mtk-mipi-dsi-drv-y := phy-mtk-mipi-dsi.o 22 phy-mtk-mipi-dsi-drv-y += phy-mtk-mipi-dsi-mt8173.o 23 phy-mtk-mipi-dsi-drv-y += phy-mtk-mipi-dsi-mt8183.o 24 obj-$(CONFIG_PHY_MTK_MIPI_DSI) += phy-mtk-mipi-dsi-drv.o
|
/linux-master/drivers/cpuidle/governors/ |
H A D | teo.c | 225 * @drv: cpuidle driver containing state data. 228 static void teo_update(struct cpuidle_driver *drv, struct cpuidle_device *dev) argument 243 u64 lat_ns = drv->states[dev->last_state_idx].exit_latency_ns; 272 for (i = 0; i < drv->state_count; i++) { 280 target_residency_ns = drv->states[i].target_residency_ns; 308 idx_timer = drv->state_count; 335 static bool teo_state_ok(int i, struct cpuidle_driver *drv) argument 338 drv->states[i].target_residency_ns >= TICK_NSEC; 343 * @drv: cpuidle driver containing state data. 349 static int teo_find_shallower_state(struct cpuidle_driver *drv, argument 373 teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev, bool *stop_tick) argument 666 teo_enable_device(struct cpuidle_driver *drv, struct cpuidle_device *dev) argument [all...] |
/linux-master/include/linux/device/ |
H A D | driver.h | 125 int __must_check driver_register(struct device_driver *drv); 126 void driver_unregister(struct device_driver *drv); 156 int __must_check driver_for_each_device(struct device_driver *drv, struct device *start, 158 struct device *driver_find_device(struct device_driver *drv, 165 * @drv: the driver we're iterating 168 static inline struct device *driver_find_device_by_name(struct device_driver *drv, argument 171 return driver_find_device(drv, NULL, name, device_match_name); 177 * @drv: the driver we're iterating 181 driver_find_device_by_of_node(struct device_driver *drv, argument 184 return driver_find_device(drv, NUL 194 driver_find_device_by_fwnode(struct device_driver *drv, const struct fwnode_handle *fwnode) argument 206 driver_find_device_by_devt(struct device_driver *drv, dev_t devt) argument 212 driver_find_next_device(struct device_driver *drv, struct device *start) argument 226 driver_find_device_by_acpi_dev(struct device_driver *drv, const struct acpi_device *adev) argument 233 driver_find_device_by_acpi_dev(struct device_driver *drv, const void *adev) argument [all...] |
/linux-master/sound/aoa/soundbus/ |
H A D | core.c | 41 struct soundbus_driver *drv; local 44 drv = to_soundbus_driver(dev->driver); 47 if (!drv->probe) 52 error = drv->probe(soundbus_dev); 112 struct soundbus_driver * drv = to_soundbus_driver(dev->driver); local 114 if (dev->driver && drv->remove) 115 drv->remove(soundbus_dev); 122 struct soundbus_driver * drv = to_soundbus_driver(dev->driver); local 124 if (dev->driver && drv->shutdown) 125 drv 164 soundbus_register_driver(struct soundbus_driver *drv) argument 175 soundbus_unregister_driver(struct soundbus_driver *drv) argument [all...] |