/drivers/leds/ |
D | leds-acer-a500.c | 21 struct regmap *rmap; member 62 return regmap_multi_reg_write(led->rmap, control_seq, num_regs); in a500_ec_led_brightness_set() 68 struct regmap *rmap; in a500_ec_leds_probe() local 71 rmap = dev_get_regmap(pdev->dev.parent, "KB930"); in a500_ec_leds_probe() 72 if (!rmap) in a500_ec_leds_probe() 76 regmap_multi_reg_write(rmap, a500_ec_leds_reset_seq, 2); in a500_ec_leds_probe() 87 white_led->rmap = rmap; in a500_ec_leds_probe() 98 orange_led->rmap = rmap; in a500_ec_leds_probe()
|
D | leds-max77693.c | 150 struct regmap *rmap = led->regmap; in max77693_set_mode_reg() local 172 ret = regmap_write(rmap, MAX77693_LED_REG_FLASH_EN, 0); in max77693_set_mode_reg() 177 return regmap_write(rmap, MAX77693_LED_REG_FLASH_EN, v); in max77693_set_mode_reg() 269 struct regmap *rmap = led->regmap; in max77693_set_torch_current() local 288 return regmap_write(rmap, MAX77693_LED_REG_ITORCH, in max77693_set_torch_current() 296 struct regmap *rmap = led->regmap; in max77693_set_flash_current() local 306 ret = regmap_write(rmap, MAX77693_LED_REG_IFLASH1, in max77693_set_flash_current() 313 ret = regmap_write(rmap, MAX77693_LED_REG_IFLASH2, in max77693_set_flash_current() 322 struct regmap *rmap = led->regmap; in max77693_set_timeout() local 328 ret = regmap_write(rmap, MAX77693_LED_REG_FLASH_TIMER, v); in max77693_set_timeout() [all …]
|
/drivers/watchdog/ |
D | max77620_wdt.c | 25 struct regmap *rmap; member 33 return regmap_update_bits(wdt->rmap, MAX77620_REG_CNFGGLBL2, in max77620_wdt_start() 41 return regmap_update_bits(wdt->rmap, MAX77620_REG_CNFGGLBL2, in max77620_wdt_stop() 49 return regmap_update_bits(wdt->rmap, MAX77620_REG_CNFGGLBL3, in max77620_wdt_ping() 83 ret = regmap_update_bits(wdt->rmap, MAX77620_REG_CNFGGLBL3, in max77620_wdt_set_timeout() 88 ret = regmap_update_bits(wdt->rmap, MAX77620_REG_CNFGGLBL2, in max77620_wdt_set_timeout() 123 wdt->rmap = dev_get_regmap(dev->parent, NULL); in max77620_wdt_probe() 124 if (!wdt->rmap) { in max77620_wdt_probe() 139 ret = regmap_update_bits(wdt->rmap, MAX77620_REG_ONOFFCNFG2, in max77620_wdt_probe() 148 ret = regmap_update_bits(wdt->rmap, MAX77620_REG_CNFGGLBL2, in max77620_wdt_probe() [all …]
|
/drivers/gpio/ |
D | gpio-max77620.c | 19 struct regmap *rmap; member 33 err = regmap_read(gpio->rmap, MAX77620_REG_IRQ_LVL2_GPIO, &value); in max77620_gpio_irqhandler() 113 err = regmap_update_bits(gpio->rmap, GPIO_REG_ADDR(offset), in max77620_gpio_bus_sync_unlock() 137 ret = regmap_update_bits(mgpio->rmap, GPIO_REG_ADDR(offset), in max77620_gpio_dir_input() 152 ret = regmap_read(mgpio->rmap, GPIO_REG_ADDR(offset), &val); in max77620_gpio_get() 174 ret = regmap_update_bits(mgpio->rmap, GPIO_REG_ADDR(offset), in max77620_gpio_dir_output() 181 ret = regmap_update_bits(mgpio->rmap, GPIO_REG_ADDR(offset), in max77620_gpio_dir_output() 215 ret = regmap_update_bits(mgpio->rmap, GPIO_REG_ADDR(offset), in max77620_gpio_set_debounce() 233 ret = regmap_update_bits(mgpio->rmap, GPIO_REG_ADDR(offset), in max77620_gpio_set() 246 return regmap_update_bits(mgpio->rmap, GPIO_REG_ADDR(offset), in max77620_gpio_set_config() [all …]
|
/drivers/mfd/ |
D | max77620.c | 236 ret = regmap_update_bits(chip->rmap, MAX77620_REG_INTENLBT, in max77620_irq_global_mask() 249 ret = regmap_update_bits(chip->rmap, MAX77620_REG_INTENLBT, in max77620_irq_global_unmask() 391 ret = regmap_update_bits(chip->rmap, MAX77620_REG_FPS_CFG0 + fps_id, in max77620_config_fps() 429 ret = regmap_update_bits(chip->rmap, MAX77620_REG_ONOFFCNFG2, in max77620_initialise_fps() 441 ret = regmap_update_bits(chip->rmap, MAX77620_REG_ONOFFCNFG2, in max77620_initialise_fps() 452 ret = regmap_update_bits(chip->rmap, MAX77620_REG_ONOFFCNFG1, in max77620_initialise_fps() 471 ret = regmap_read(chip->rmap, i, &val); in max77620_read_es_version() 492 regmap_update_bits(chip->rmap, MAX77620_REG_ONOFFCNFG1, in max77620_pm_power_off() 537 chip->rmap = devm_regmap_init_i2c(client, rmap_config); in max77620_probe() 538 if (IS_ERR(chip->rmap)) { in max77620_probe() [all …]
|
D | tps65090.c | 191 tps65090->rmap = devm_regmap_init_i2c(client, &tps65090_regmap_config); in tps65090_i2c_probe() 192 if (IS_ERR(tps65090->rmap)) { in tps65090_i2c_probe() 193 ret = PTR_ERR(tps65090->rmap); in tps65090_i2c_probe() 199 ret = regmap_add_irq_chip(tps65090->rmap, client->irq, in tps65090_i2c_probe()
|
/drivers/regulator/ |
D | vqmmc-ipq4019-regulator.c | 52 struct regmap *rmap; in ipq4019_regulator_probe() local 65 rmap = devm_regmap_init_mmio(dev, base, &ipq4019_vmmcq_regmap_config); in ipq4019_regulator_probe() 66 if (IS_ERR(rmap)) in ipq4019_regulator_probe() 67 return PTR_ERR(rmap); in ipq4019_regulator_probe() 72 cfg.regmap = rmap; in ipq4019_regulator_probe()
|
D | wm8400-regulator.c | 33 struct regmap *rmap = rdev_get_regmap(dev); in wm8400_dcdc_get_mode() local 38 ret = regmap_bulk_read(rmap, WM8400_DCDC1_CONTROL_1 + offset, data, 2); in wm8400_dcdc_get_mode() 59 struct regmap *rmap = rdev_get_regmap(dev); in wm8400_dcdc_set_mode() local 66 ret = regmap_update_bits(rmap, WM8400_DCDC1_CONTROL_2 + offset, in wm8400_dcdc_set_mode() 71 return regmap_update_bits(rmap, WM8400_DCDC1_CONTROL_1 + offset, in wm8400_dcdc_set_mode() 77 ret = regmap_update_bits(rmap, WM8400_DCDC1_CONTROL_2 + offset, in wm8400_dcdc_set_mode() 82 return regmap_update_bits(rmap, WM8400_DCDC1_CONTROL_1 + offset, in wm8400_dcdc_set_mode() 88 return regmap_update_bits(rmap, WM8400_DCDC1_CONTROL_1 + offset, in wm8400_dcdc_set_mode()
|
D | max77620-regulator.c | 86 struct regmap *rmap; member 106 ret = regmap_read(pmic->rmap, rinfo->fps_addr, &val); in max77620_regulator_get_fps_src() 134 ret = regmap_read(pmic->rmap, rinfo->fps_addr, &val); in max77620_regulator_set_fps_src() 150 ret = regmap_update_bits(pmic->rmap, rinfo->fps_addr, in max77620_regulator_set_fps_src() 195 ret = regmap_update_bits(pmic->rmap, rinfo->fps_addr, in max77620_regulator_set_fps_slots() 225 ret = regmap_update_bits(pmic->rmap, addr, mask, power_mode << shift); in max77620_regulator_set_power_mode() 254 ret = regmap_read(pmic->rmap, addr, &val); in max77620_regulator_get_power_mode() 271 ret = regmap_read(pmic->rmap, rinfo->cfg_addr, &rval); in max77620_read_slew_rate() 341 ret = regmap_update_bits(pmic->rmap, rinfo->cfg_addr, mask, val); in max77620_set_slew_rate() 369 ret = regmap_update_bits(pmic->rmap, rinfo->cfg_addr, in max77620_config_power_ok() [all …]
|
D | max14577-regulator.c | 18 struct regmap *rmap = rdev->regmap; in max14577_reg_is_enabled() local 23 max14577_read_reg(rmap, MAX14577_CHG_REG_CHG_CTRL2, ®_data); in max14577_reg_is_enabled() 26 max14577_read_reg(rmap, MAX14577_CHG_REG_STATUS3, ®_data); in max14577_reg_is_enabled() 39 struct regmap *rmap = rdev->regmap; in max14577_reg_get_current_limit() local 47 max14577_read_reg(rmap, MAX14577_CHG_REG_CHG_CTRL4, ®_data); in max14577_reg_get_current_limit()
|
D | tps65132-regulator.c | 228 struct regmap *rmap; in tps65132_probe() local 237 rmap = devm_regmap_init_i2c(client, &tps65132_regmap_config); in tps65132_probe() 238 if (IS_ERR(rmap)) { in tps65132_probe() 239 ret = PTR_ERR(rmap); in tps65132_probe() 248 config.regmap = rmap; in tps65132_probe()
|
D | mcp16502.c | 437 struct regmap *rmap; in mcp16502_probe() local 447 rmap = devm_regmap_init_i2c(client, &mcp16502_regmap_config); in mcp16502_probe() 448 if (IS_ERR(rmap)) { in mcp16502_probe() 449 ret = PTR_ERR(rmap); in mcp16502_probe() 455 config.regmap = rmap; in mcp16502_probe()
|
/drivers/power/supply/ |
D | max14577_charger.c | 49 struct regmap *rmap = chg->max14577->regmap; in max14577_get_charger_state() local 64 ret = max14577_read_reg(rmap, MAX14577_CHG_REG_CHG_CTRL2, ®_data); in max14577_get_charger_state() 73 ret = max14577_read_reg(rmap, MAX14577_CHG_REG_STATUS3, ®_data); in max14577_get_charger_state() 123 struct regmap *rmap = chg->max14577->regmap; in max14577_get_online() local 128 ret = max14577_read_reg(rmap, MAX14577_MUIC_REG_STATUS2, ®_data); in max14577_get_online() 162 struct regmap *rmap = chg->max14577->regmap; in max14577_get_battery_health() local 167 ret = max14577_read_reg(rmap, MAX14577_MUIC_REG_STATUS2, ®_data); in max14577_get_battery_health() 178 ret = max14577_read_reg(rmap, MAX14577_CHG_REG_STATUS3, ®_data); in max14577_get_battery_health() 328 struct regmap *rmap = chg->max14577->regmap; in max14577_charger_reg_init() local 338 max14577_update_reg(rmap, MAX14577_REG_CDETCTRL1, in max14577_charger_reg_init() [all …]
|
D | bd99954-charger.c | 107 struct regmap *rmap; member 503 ret = regmap_read(bd->rmap, INT0_STATUS, &status); in bd9995x_irq_handler_thread() 531 ret = regmap_write(bd->rmap, INT0_STATUS, status); in bd9995x_irq_handler_thread() 554 ret = regmap_read(bd->rmap, sub_status_reg[i], &sub_status); in bd9995x_irq_handler_thread() 569 ret = regmap_write(bd->rmap, sub_status_reg[i], sub_status); in bd9995x_irq_handler_thread() 610 ret = regmap_raw_write(bd->rmap, SYSTEM_CTRL_SET, &tmp, 2); in __bd9995x_chip_reset() 628 ret = regmap_raw_write(bd->rmap, SYSTEM_CTRL_SET, &tmp, 2); in __bd9995x_chip_reset() 1052 bd->rmap = devm_regmap_init_i2c(client, &bd9995x_regmap_config); in bd9995x_probe() 1053 if (IS_ERR(bd->rmap)) { in bd9995x_probe() 1055 return PTR_ERR(bd->rmap); in bd9995x_probe() [all …]
|
D | bq24257_charger.c | 89 struct regmap *rmap; member 986 bq->rmap = devm_regmap_init_i2c(client, &bq24257_regmap_config); in bq24257_probe() 987 if (IS_ERR(bq->rmap)) { in bq24257_probe() 989 return PTR_ERR(bq->rmap); in bq24257_probe() 995 bq->rmap_fields[i] = devm_regmap_field_alloc(dev, bq->rmap, in bq24257_probe() 1114 ret = regcache_drop_region(bq->rmap, BQ24257_REG_1, BQ24257_REG_7); in bq24257_resume()
|
D | bq25890_charger.c | 109 struct regmap *rmap; member 931 bq->rmap = devm_regmap_init_i2c(client, &bq25890_regmap_config); in bq25890_probe() 932 if (IS_ERR(bq->rmap)) { in bq25890_probe() 934 return PTR_ERR(bq->rmap); in bq25890_probe() 940 bq->rmap_fields[i] = devm_regmap_field_alloc(dev, bq->rmap, in bq25890_probe()
|
/drivers/pinctrl/ |
D | pinctrl-max77620.c | 104 struct regmap *rmap; member 254 ret = regmap_update_bits(mpci->rmap, MAX77620_REG_AME_GPIO, in max77620_pinctrl_enable() 291 ret = regmap_read(mpci->rmap, MAX77620_REG_PUE_GPIO, &val); in max77620_pinconf_get() 301 ret = regmap_read(mpci->rmap, MAX77620_REG_PDE_GPIO, &val); in max77620_pinconf_get() 326 ret = regmap_read(mpci->rmap, addr, &val); in max77620_get_default_fps() 385 ret = regmap_update_bits(mpci->rmap, addr, mask, param_val << shift); in max77620_set_fps_param() 414 ret = regmap_update_bits(mpci->rmap, in max77620_pinconf_set() 427 ret = regmap_update_bits(mpci->rmap, in max77620_pinconf_set() 504 ret = regmap_update_bits(mpci->rmap, in max77620_pinconf_set() 513 ret = regmap_update_bits(mpci->rmap, in max77620_pinconf_set() [all …]
|
/drivers/mtd/maps/ |
D | physmap-gemini.c | 124 struct regmap *rmap; in of_flash_probe_gemini() local 138 rmap = syscon_regmap_lookup_by_phandle(np, "syscon"); in of_flash_probe_gemini() 139 if (IS_ERR(rmap)) { in of_flash_probe_gemini() 141 return PTR_ERR(rmap); in of_flash_probe_gemini() 144 ret = regmap_read(rmap, GLOBAL_STATUS, &val); in of_flash_probe_gemini()
|
D | physmap-versatile.c | 193 struct regmap *rmap; in of_flash_probe_versatile() local 210 rmap = syscon_node_to_regmap(sysnp); in of_flash_probe_versatile() 212 if (IS_ERR(rmap)) in of_flash_probe_versatile() 213 return PTR_ERR(rmap); in of_flash_probe_versatile() 215 syscon_regmap = rmap; in of_flash_probe_versatile()
|
/drivers/thermal/ |
D | max77620_thermal.c | 27 struct regmap *rmap; member 53 ret = regmap_read(mtherm->rmap, MAX77620_REG_STATLBT, &val); in max77620_thermal_read_temp() 105 mtherm->rmap = dev_get_regmap(pdev->dev.parent, NULL); in max77620_thermal_probe() 106 if (!mtherm->rmap) { in max77620_thermal_probe()
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | pci_irq.c | 25 struct cpu_rmap *rmap; member 132 free_irq_cpu_rmap(irq_table->rmap); in irq_clear_rmap() 145 irq_table->rmap = alloc_irq_cpu_rmap(num_affinity_vec); in irq_set_rmap() 146 if (!irq_table->rmap) { in irq_set_rmap() 154 err = irq_cpu_rmap_add(irq_table->rmap, in irq_set_rmap() 247 return irq_table->rmap; in mlx5_irq_get_rmap()
|
/drivers/lightnvm/ |
D | core.c | 137 struct nvm_dev_map *dev_rmap = dev->rmap; in nvm_create_tgt_dev() 507 struct nvm_dev_map *rmap; in nvm_register_map() local 510 rmap = kmalloc(sizeof(struct nvm_dev_map), GFP_KERNEL); in nvm_register_map() 511 if (!rmap) in nvm_register_map() 514 rmap->chnls = kcalloc(dev->geo.num_ch, sizeof(struct nvm_ch_map), in nvm_register_map() 516 if (!rmap->chnls) in nvm_register_map() 524 ch_rmap = &rmap->chnls[i]; in nvm_register_map() 539 dev->rmap = rmap; in nvm_register_map() 544 kfree(rmap->chnls[i].lun_offs); in nvm_register_map() 546 kfree(rmap); in nvm_register_map() [all …]
|
/drivers/phy/broadcom/ |
D | phy-brcm-usb.c | 463 struct regmap *rmap; in brcm_usb_phy_probe() local 536 rmap = syscon_regmap_lookup_by_phandle(dev->of_node, in brcm_usb_phy_probe() 538 if (IS_ERR(rmap)) in brcm_usb_phy_probe() 539 rmap = syscon_regmap_lookup_by_phandle(dev->of_node, in brcm_usb_phy_probe() 541 if (!IS_ERR(rmap)) in brcm_usb_phy_probe() 542 priv->ini.syscon_piarbctl = rmap; in brcm_usb_phy_probe()
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | eq.c | 1236 if (!info->rmap) { in mlx4_init_eq_table() 1237 info->rmap = alloc_irq_cpu_rmap( in mlx4_init_eq_table() 1239 if (!info->rmap) { in mlx4_init_eq_table() 1247 info->rmap, eq->irq); in mlx4_init_eq_table() 1309 if (mlx4_priv(dev)->port[i].rmap) { in mlx4_init_eq_table() 1310 free_irq_cpu_rmap(mlx4_priv(dev)->port[i].rmap); in mlx4_init_eq_table() 1311 mlx4_priv(dev)->port[i].rmap = NULL; in mlx4_init_eq_table() 1341 if (mlx4_priv(dev)->port[i].rmap) { in mlx4_cleanup_eq_table() 1342 free_irq_cpu_rmap(mlx4_priv(dev)->port[i].rmap); in mlx4_cleanup_eq_table() 1343 mlx4_priv(dev)->port[i].rmap = NULL; in mlx4_cleanup_eq_table() [all …]
|
/drivers/rapidio/ |
D | rio.c | 781 u16 destid, u8 hopcount, u32 *rmap) in rio_mport_get_physefb() argument 806 *rmap = 1; in rio_mport_get_physefb() 813 *rmap = 2; in rio_mport_get_physefb() 905 u32 rmap; in rio_enable_rx_tx_port() local 914 hopcount, &rmap); in rio_enable_rx_tx_port() 918 ext_ftr_ptr + RIO_PORT_N_CTL_CSR(0, rmap), in rio_enable_rx_tx_port() 922 ext_ftr_ptr + RIO_PORT_N_CTL_CSR(port_num, rmap), in rio_enable_rx_tx_port() 931 ext_ftr_ptr + RIO_PORT_N_CTL_CSR(0, rmap), regval); in rio_enable_rx_tx_port() 934 ext_ftr_ptr + RIO_PORT_N_CTL_CSR(port_num, rmap), in rio_enable_rx_tx_port()
|