/drivers/cpuidle/ |
H A D | driver.c | 40 * @drv: a valid pointer to a struct cpuidle_driver 43 * variable. If @drv is different from the registered driver, the corresponding 46 static inline void __cpuidle_unset_driver(struct cpuidle_driver *drv) argument 50 for_each_cpu(cpu, drv->cpumask) { 52 if (drv != __cpuidle_get_cpu_driver(cpu)) 61 * @drv: a valid pointer to a struct cpuidle_driver 64 * to @drv. 68 static inline int __cpuidle_set_driver(struct cpuidle_driver *drv) argument 72 for_each_cpu(cpu, drv->cpumask) { 75 __cpuidle_unset_driver(drv); 107 __cpuidle_set_driver(struct cpuidle_driver *drv) argument 124 __cpuidle_unset_driver(struct cpuidle_driver *drv) argument 154 __cpuidle_driver_init(struct cpuidle_driver *drv) argument 182 poll_idle(struct cpuidle_device *dev, struct cpuidle_driver *drv, int index) argument 195 poll_idle_init(struct cpuidle_driver *drv) argument 209 poll_idle_init(struct cpuidle_driver *drv) argument 225 __cpuidle_register_driver(struct cpuidle_driver *drv) argument 259 __cpuidle_unregister_driver(struct cpuidle_driver *drv) argument 283 cpuidle_register_driver(struct cpuidle_driver *drv) argument 303 cpuidle_unregister_driver(struct cpuidle_driver *drv) argument 318 struct cpuidle_driver *drv; local 355 struct cpuidle_driver *drv; local 375 struct cpuidle_driver *drv; local [all...] |
H A D | dt_idle_states.h | 4 int dt_init_idle_driver(struct cpuidle_driver *drv,
|
/drivers/base/ |
H A D | driver.c | 36 * @drv: Driver we're iterating. 41 * Iterate over the @drv's list of devices calling @fn for each one. 43 int driver_for_each_device(struct device_driver *drv, struct device *start, argument 50 if (!drv) 53 klist_iter_init_node(&drv->p->klist_devices, &i, 64 * @drv: The device's driver 77 struct device *driver_find_device(struct device_driver *drv, argument 84 if (!drv || !drv->p) 87 klist_iter_init_node(&drv 102 driver_create_file(struct device_driver *drv, const struct driver_attribute *attr) argument 119 driver_remove_file(struct device_driver *drv, const struct driver_attribute *attr) argument 127 driver_add_groups(struct device_driver *drv, const struct attribute_group **groups) argument 133 driver_remove_groups(struct device_driver *drv, const struct attribute_group **groups) argument 147 driver_register(struct device_driver *drv) argument 187 driver_unregister(struct device_driver *drv) argument [all...] |
H A D | module.c | 14 static char *make_driver_name(struct device_driver *drv) argument 18 driver_name = kasprintf(GFP_KERNEL, "%s:%s", drv->bus->name, drv->name); 33 void module_add_driver(struct module *mod, struct device_driver *drv) argument 39 if (!drv) 44 else if (drv->mod_name) { 48 mkobj = kset_find_obj(module_kset, drv->mod_name); 52 drv->p->mkobj = mk; 62 no_warn = sysfs_create_link(&drv->p->kobj, &mk->kobj, "module"); 63 driver_name = make_driver_name(drv); 72 module_remove_driver(struct device_driver *drv) argument [all...] |
H A D | base.h | 108 extern int bus_add_driver(struct device_driver *drv); 109 extern void bus_remove_driver(struct device_driver *drv); 111 extern void driver_detach(struct device_driver *drv); 112 extern int driver_probe_device(struct device_driver *drv, struct device *dev); 114 static inline int driver_match_device(struct device_driver *drv, argument 117 return drv->bus->match ? drv->bus->match(dev, drv) : 1; 120 extern int driver_add_groups(struct device_driver *drv, 122 extern void driver_remove_groups(struct device_driver *drv, 141 module_add_driver(struct module *mod, struct device_driver *drv) argument 143 module_remove_driver(struct device_driver *drv) argument [all...] |
/drivers/net/irda/ |
H A D | sir_dongle.c | 35 struct dongle_driver *drv; local 42 drv = list_entry(entry, struct dongle_driver, dongle_list); 43 if (new->type == drv->type) { 54 int irda_unregister_dongle(struct dongle_driver *drv) argument 57 list_del(&drv->dongle_list); 66 const struct dongle_driver *drv = NULL; local 78 drv = list_entry(entry, struct dongle_driver, dongle_list); 79 if (drv->type == type) 82 drv = NULL; 85 if (!drv) { 122 const struct dongle_driver *drv = dev->dongle_drv; local [all...] |
/drivers/message/i2o/ |
H A D | driver.c | 39 * @drv: the driver to match against 46 static int i2o_bus_match(struct device *dev, struct device_driver *drv) argument 49 struct i2o_driver *i2o_drv = to_i2o_driver(drv); 70 * @drv: I2O driver which should be registered 72 * Registers the OSM drv in the I2O core and creates an event queues if 77 int i2o_driver_register(struct i2o_driver *drv) argument 84 osm_debug("Register driver %s\n", drv->name); 86 if (drv->event) { 87 drv->event_queue = alloc_workqueue("%s", WQ_MEM_RECLAIM, 1, 88 drv 148 i2o_driver_unregister(struct i2o_driver *drv) argument 191 struct i2o_driver *drv; local 265 struct i2o_driver *drv; local 285 struct i2o_driver *drv; local 304 struct i2o_driver *drv; local 323 struct i2o_driver *drv; local [all...] |
/drivers/phy/ |
H A D | phy-samsung-usb2.c | 25 struct samsung_usb2_phy_driver *drv = inst->drv; local 28 dev_dbg(drv->dev, "Request to power_on \"%s\" usb phy\n", 30 ret = clk_prepare_enable(drv->clk); 33 ret = clk_prepare_enable(drv->ref_clk); 37 spin_lock(&drv->lock); 39 spin_unlock(&drv->lock); 45 clk_disable_unprepare(drv->clk); 53 struct samsung_usb2_phy_driver *drv = inst->drv; local 77 struct samsung_usb2_phy_driver *drv; local 131 struct samsung_usb2_phy_driver *drv; local [all...] |
H A D | phy-exynos4x12-usb2.c | 170 struct samsung_usb2_phy_driver *drv = inst->drv; local 192 regmap_update_bits(drv->reg_pmu, offset, mask, on ? 0 : mask); 197 struct samsung_usb2_phy_driver *drv = inst->drv; local 200 clk = readl(drv->reg_phy + EXYNOS_4x12_UPHYCLK); 203 if (drv->cfg->has_refclk_sel) 206 clk |= drv->ref_reg_val << EXYNOS_4x12_UPHYCLK_PHYFSEL_OFFSET; 208 writel(clk, drv->reg_phy + EXYNOS_4x12_UPHYCLK); 213 struct samsung_usb2_phy_driver *drv local 275 struct samsung_usb2_phy_driver *drv = inst->drv; local 314 struct samsung_usb2_phy_driver *drv = inst->drv; local [all...] |
H A D | phy-rcar-gen2.c | 57 struct rcar_gen2_phy_driver *drv; member in struct:rcar_gen2_channel 75 struct rcar_gen2_phy_driver *drv = channel->drv; local 88 clk_prepare_enable(drv->clk); 90 spin_lock_irqsave(&drv->lock, flags); 91 ugctrl2 = readl(drv->base + USBHS_UGCTRL2); 94 writel(ugctrl2, drv->base + USBHS_UGCTRL2); 95 spin_unlock_irqrestore(&drv->lock, flags); 104 clk_disable_unprepare(channel->drv->clk); 114 struct rcar_gen2_phy_driver *drv local 158 struct rcar_gen2_phy_driver *drv = phy->channel->drv; local 205 struct rcar_gen2_phy_driver *drv; local 242 struct rcar_gen2_phy_driver *drv; local [all...] |
/drivers/nfc/ |
H A D | nfcwilink.c | 124 static void nfcwilink_fw_download_receive(struct nfcwilink *drv, argument 132 memcpy(&drv->nfcc_info, rsp, 138 complete(&drv->completed); 141 static int nfcwilink_get_bts_file_name(struct nfcwilink *drv, char *file_name) argument 151 nfc_err(&drv->pdev->dev, 162 drv->nfcc_info.plen = 0; 164 rc = nfcwilink_send(drv->ndev, skb); 168 comp_ret = wait_for_completion_timeout(&drv->completed, 170 dev_dbg(&drv->pdev->dev, "wait_for_completion_timeout returned %ld\n", 173 nfc_err(&drv 198 nfcwilink_send_bts_cmd(struct nfcwilink *drv, __u8 *data, int len) argument 245 nfcwilink_download_fw(struct nfcwilink *drv) argument 325 struct nfcwilink *drv = priv_data; local 337 struct nfcwilink *drv = priv_data; local 384 struct nfcwilink *drv = nci_get_drvdata(ndev); local 446 struct nfcwilink *drv = nci_get_drvdata(ndev); local 463 struct nfcwilink *drv = nci_get_drvdata(ndev); local 500 static struct nfcwilink *drv; local 550 struct nfcwilink *drv = dev_get_drvdata(&pdev->dev); local [all...] |
/drivers/video/fbdev/via/ |
H A D | via_aux_vt1621.c | 33 struct via_aux_drv drv = { local 39 if (!via_aux_read(&drv, 0x1B, &tmp, 1) || tmp != 0x02) 43 via_aux_add(&drv);
|
H A D | via_aux_edid.c | 33 static void query_edid(struct via_aux_drv *drv) argument 35 struct fb_monspecs *spec = drv->data; 48 if (via_aux_read(drv, 0x00, edid, EDID_LENGTH)) { 59 drv->data = spec; 62 static const struct fb_videomode *get_preferred_mode(struct via_aux_drv *drv) argument 64 struct fb_monspecs *spec = drv->data; 79 static void cleanup(struct via_aux_drv *drv) argument 81 struct fb_monspecs *spec = drv->data; 89 struct via_aux_drv drv = { local 96 query_edid(&drv); [all...] |
H A D | via_aux_ch7301.c | 33 struct via_aux_drv drv = { local 39 if (!via_aux_read(&drv, 0x4B, &tmp, 1) || tmp != 0x17) 43 via_aux_add(&drv);
|
H A D | via_aux_vt1622.c | 33 struct via_aux_drv drv = { local 39 if (!via_aux_read(&drv, 0x1B, &tmp, 1) || tmp != 0x03) 43 via_aux_add(&drv);
|
H A D | via_aux_vt1625.c | 33 struct via_aux_drv drv = { local 39 if (!via_aux_read(&drv, 0x1B, &tmp, 1) || tmp != 0x50) 43 via_aux_add(&drv);
|
H A D | via_aux_vt1631.c | 33 struct via_aux_drv drv = { local 41 if (!via_aux_read(&drv, 0x00, tmp, len) || memcmp(id, tmp, len)) 45 via_aux_add(&drv);
|
H A D | via_aux_vt1636.c | 33 struct via_aux_drv drv = { local 41 if (!via_aux_read(&drv, 0x00, tmp, len) || memcmp(id, tmp, len)) 45 via_aux_add(&drv);
|
H A D | via_aux.h | 47 void (*cleanup)(struct via_aux_drv *drv); 49 (struct via_aux_drv *drv); 58 static inline bool via_aux_add(struct via_aux_drv *drv) argument 65 *data = *drv; 70 static inline bool via_aux_read(struct via_aux_drv *drv, u8 start, u8 *buf, argument 74 {.addr = drv->addr, .flags = 0, .len = 1, .buf = &start}, 75 {.addr = drv->addr, .flags = I2C_M_RD, .len = len, .buf = buf} }; 77 return i2c_transfer(drv->bus->adap, msg, 2) == 2;
|
/drivers/dio/ |
H A D | dio-driver.c | 50 struct dio_driver *drv = to_dio_driver(dev->driver); local 53 if (!d->driver && drv->probe) { 56 id = dio_match_device(drv->id_table, d); 58 error = drv->probe(d, id); 60 d->driver = drv; 70 * @drv: the driver structure to register 76 int dio_register_driver(struct dio_driver *drv) argument 79 drv->driver.name = drv->name; 80 drv 97 dio_unregister_driver(struct dio_driver *drv) argument 113 dio_bus_match(struct device *dev, struct device_driver *drv) argument [all...] |
/drivers/zorro/ |
H A D | zorro-driver.c | 46 struct zorro_driver *drv = to_zorro_driver(dev->driver); local 49 if (!z->driver && drv->probe) { 52 id = zorro_match_device(drv->id_table, z); 54 error = drv->probe(z, id); 56 z->driver = drv; 67 struct zorro_driver *drv = to_zorro_driver(dev->driver); local 69 if (drv) { 70 if (drv->remove) 71 drv->remove(z); 80 * @drv 86 zorro_register_driver(struct zorro_driver *drv) argument 108 zorro_unregister_driver(struct zorro_driver *drv) argument 126 zorro_bus_match(struct device *dev, struct device_driver *drv) argument [all...] |
/drivers/watchdog/ |
H A D | mena21_wdt.c | 45 static unsigned int a21_wdt_get_bootstatus(struct a21_wdt_drv *drv) argument 49 reset |= gpio_get_value(drv->gpios[GPIO_WD_RST0]) ? (1 << 0) : 0; 50 reset |= gpio_get_value(drv->gpios[GPIO_WD_RST1]) ? (1 << 1) : 0; 51 reset |= gpio_get_value(drv->gpios[GPIO_WD_RST2]) ? (1 << 2) : 0; 58 struct a21_wdt_drv *drv = watchdog_get_drvdata(wdt); local 60 mutex_lock(&drv->lock); 62 gpio_set_value(drv->gpios[GPIO_WD_ENAB], 1); 64 mutex_unlock(&drv->lock); 71 struct a21_wdt_drv *drv = watchdog_get_drvdata(wdt); local 73 mutex_lock(&drv 84 struct a21_wdt_drv *drv = watchdog_get_drvdata(wdt); local 100 struct a21_wdt_drv *drv = watchdog_get_drvdata(wdt); local 150 struct a21_wdt_drv *drv; local 231 struct a21_wdt_drv *drv = dev_get_drvdata(&pdev->dev); local 245 struct a21_wdt_drv *drv = dev_get_drvdata(&pdev->dev); local [all...] |
/drivers/crypto/nx/ |
H A D | nx_debugfs.c | 45 int nx_debugfs_init(struct nx_crypto_driver *drv) argument 47 struct nx_debugfs *dfs = &drv->dfs; 54 dfs->dfs_root, (u32 *)&drv->stats.aes_ops); 59 (u32 *)&drv->stats.sha256_ops); 64 (u32 *)&drv->stats.sha512_ops); 69 (u64 *)&drv->stats.aes_bytes); 74 (u64 *)&drv->stats.sha256_bytes); 79 (u64 *)&drv->stats.sha512_bytes); 83 dfs->dfs_root, (u32 *)&drv->stats.errors); 88 (u32 *)&drv 98 nx_debugfs_fini(struct nx_crypto_driver *drv) argument [all...] |
/drivers/net/wireless/iwlwifi/ |
H A D | iwl-drv.c | 71 #include "iwl-drv.h" 113 * struct iwl_drv - drv common data 114 * @list: list of drv structures using this opmode 150 /* Protects the table contents, i.e. the ops pointer & drv list */ 155 struct list_head drv; /* list of devices using this op_mode */ member in struct:iwlwifi_opmode_table 173 static void iwl_free_fw_desc(struct iwl_drv *drv, struct fw_desc *desc) argument 180 static void iwl_free_fw_img(struct iwl_drv *drv, struct fw_img *img) argument 184 iwl_free_fw_desc(drv, &img->sec[i]); 187 static void iwl_dealloc_ucode(struct iwl_drv *drv) argument 191 iwl_free_fw_img(drv, dr 194 iwl_alloc_fw_desc(struct iwl_drv *drv, struct fw_desc *desc, struct fw_sec *sec) argument 222 iwl_request_firmware(struct iwl_drv *drv, bool first) argument 411 iwl_set_default_calib(struct iwl_drv *drv, const u8 *data) argument 429 iwl_set_ucode_api_flags(struct iwl_drv *drv, const u8 *data, struct iwl_ucode_capabilities *capa) argument 445 iwl_set_ucode_capabilities(struct iwl_drv *drv, const u8 *data, struct iwl_ucode_capabilities *capa) argument 461 iwl_parse_v1_v2_firmware(struct iwl_drv *drv, const struct firmware *ucode_raw, struct iwl_firmware_pieces *pieces) argument 562 iwl_parse_tlv_firmware(struct iwl_drv *drv, const struct firmware *ucode_raw, struct iwl_firmware_pieces *pieces, struct iwl_ucode_capabilities *capa) argument 874 iwl_alloc_ucode(struct iwl_drv *drv, struct iwl_firmware_pieces *pieces, enum iwl_ucode_type type) argument 888 validate_sec_sizes(struct iwl_drv *drv, struct iwl_firmware_pieces *pieces, const struct iwl_cfg *cfg) argument 939 _iwl_op_mode_start(struct iwl_drv *drv, struct iwlwifi_opmode_table *op) argument 968 _iwl_op_mode_stop(struct iwl_drv *drv) argument 990 struct iwl_drv *drv = context; local 1189 struct iwl_drv *drv; local 1245 iwl_drv_stop(struct iwl_drv *drv) argument 1287 struct iwl_drv *drv; local 1311 struct iwl_drv *drv; local [all...] |
/drivers/mtd/chips/ |
H A D | chipreg.c | 17 void register_mtd_chip_driver(struct mtd_chip_driver *drv) argument 20 list_add(&drv->list, &chip_drvs_list); 24 void unregister_mtd_chip_driver(struct mtd_chip_driver *drv) argument 27 list_del(&drv->list); 59 struct mtd_chip_driver *drv; local 62 drv = get_mtd_chip_driver(name); 64 if (!drv && !request_module("%s", name)) 65 drv = get_mtd_chip_driver(name); 67 if (!drv) 70 ret = drv [all...] |