/kernel/linux/linux-5.10/lib/ |
D | cpu_rmap.c | 27 struct cpu_rmap *rmap; in alloc_cpu_rmap() local 39 rmap = kzalloc(obj_offset + size * sizeof(rmap->obj[0]), flags); in alloc_cpu_rmap() 40 if (!rmap) in alloc_cpu_rmap() 43 kref_init(&rmap->refcount); in alloc_cpu_rmap() 44 rmap->obj = (void **)((char *)rmap + obj_offset); in alloc_cpu_rmap() 53 rmap->near[cpu].index = cpu % size; in alloc_cpu_rmap() 54 rmap->near[cpu].dist = CPU_RMAP_DIST_INF; in alloc_cpu_rmap() 57 rmap->size = size; in alloc_cpu_rmap() 58 return rmap; in alloc_cpu_rmap() 68 struct cpu_rmap *rmap = container_of(ref, struct cpu_rmap, refcount); in cpu_rmap_release() local [all …]
|
/kernel/linux/linux-5.10/fs/xfs/ |
D | xfs_rmap_item.c | 260 struct xfs_map_extent *rmap, in xfs_trans_set_rmap_flags() argument 265 rmap->me_flags = 0; in xfs_trans_set_rmap_flags() 267 rmap->me_flags |= XFS_RMAP_EXTENT_UNWRITTEN; in xfs_trans_set_rmap_flags() 269 rmap->me_flags |= XFS_RMAP_EXTENT_ATTR_FORK; in xfs_trans_set_rmap_flags() 272 rmap->me_flags |= XFS_RMAP_EXTENT_MAP; in xfs_trans_set_rmap_flags() 275 rmap->me_flags |= XFS_RMAP_EXTENT_MAP_SHARED; in xfs_trans_set_rmap_flags() 278 rmap->me_flags |= XFS_RMAP_EXTENT_UNMAP; in xfs_trans_set_rmap_flags() 281 rmap->me_flags |= XFS_RMAP_EXTENT_UNMAP_SHARED; in xfs_trans_set_rmap_flags() 284 rmap->me_flags |= XFS_RMAP_EXTENT_CONVERT; in xfs_trans_set_rmap_flags() 287 rmap->me_flags |= XFS_RMAP_EXTENT_CONVERT_SHARED; in xfs_trans_set_rmap_flags() [all …]
|
/kernel/linux/linux-5.10/include/linux/ |
D | cpu_rmap.h | 36 extern int cpu_rmap_put(struct cpu_rmap *rmap); 38 extern int cpu_rmap_add(struct cpu_rmap *rmap, void *obj); 39 extern int cpu_rmap_update(struct cpu_rmap *rmap, u16 index, 42 static inline u16 cpu_rmap_lookup_index(struct cpu_rmap *rmap, unsigned int cpu) in cpu_rmap_lookup_index() argument 44 return rmap->near[cpu].index; in cpu_rmap_lookup_index() 47 static inline void *cpu_rmap_lookup_obj(struct cpu_rmap *rmap, unsigned int cpu) in cpu_rmap_lookup_obj() argument 49 return rmap->obj[rmap->near[cpu].index]; in cpu_rmap_lookup_obj() 62 extern void free_irq_cpu_rmap(struct cpu_rmap *rmap); 64 extern int irq_cpu_rmap_add(struct cpu_rmap *rmap, int irq);
|
/kernel/linux/linux-5.10/fs/xfs/libxfs/ |
D | xfs_rmap_btree.c | 167 key->rmap.rm_startblock = rec->rmap.rm_startblock; in xfs_rmapbt_init_key_from_rec() 168 key->rmap.rm_owner = rec->rmap.rm_owner; in xfs_rmapbt_init_key_from_rec() 169 key->rmap.rm_offset = rec->rmap.rm_offset; in xfs_rmapbt_init_key_from_rec() 187 adj = be32_to_cpu(rec->rmap.rm_blockcount) - 1; in xfs_rmapbt_init_high_key_from_rec() 189 key->rmap.rm_startblock = rec->rmap.rm_startblock; in xfs_rmapbt_init_high_key_from_rec() 190 be32_add_cpu(&key->rmap.rm_startblock, adj); in xfs_rmapbt_init_high_key_from_rec() 191 key->rmap.rm_owner = rec->rmap.rm_owner; in xfs_rmapbt_init_high_key_from_rec() 192 key->rmap.rm_offset = rec->rmap.rm_offset; in xfs_rmapbt_init_high_key_from_rec() 193 if (XFS_RMAP_NON_INODE_OWNER(be64_to_cpu(rec->rmap.rm_owner)) || in xfs_rmapbt_init_high_key_from_rec() 194 XFS_RMAP_IS_BMBT_BLOCK(be64_to_cpu(rec->rmap.rm_offset))) in xfs_rmapbt_init_high_key_from_rec() [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/arch/powerpc/kvm/ |
D | book3s_hv_rm_mmu.c | 82 unsigned long *rmap, long pte_index, int realmode) in kvmppc_add_revmap_chain() argument 87 if (*rmap & KVMPPC_RMAP_PRESENT) { in kvmppc_add_revmap_chain() 88 i = *rmap & KVMPPC_RMAP_INDEX; in kvmppc_add_revmap_chain() 101 *rmap = (*rmap & ~KVMPPC_RMAP_INDEX) | in kvmppc_add_revmap_chain() 104 unlock_rmap(rmap); in kvmppc_add_revmap_chain() 143 unsigned long *rmap; in revmap_for_hpte() local 155 rmap = real_vmalloc_addr(&memslot->arch.rmap[gfn - memslot->base_gfn]); in revmap_for_hpte() 156 return rmap; in revmap_for_hpte() 166 unsigned long *rmap; in remove_revmap_chain() local 173 rmap = revmap_for_hpte(kvm, hpte_v, ptel, &memslot, &gfn); in remove_revmap_chain() [all …]
|
D | book3s_hv_nested.c | 809 u64 rmap, new_rmap = (*n_rmap)->rmap; in kvmhv_insert_nest_rmap() local 819 for_each_nest_rmap_safe(cursor, entry, &rmap) { in kvmhv_insert_nest_rmap() 820 if (kvmhv_n_rmap_is_equal(rmap, new_rmap)) in kvmhv_insert_nest_rmap() 825 rmap = *rmapp; in kvmhv_insert_nest_rmap() 826 if (rmap & RMAP_NESTED_IS_SINGLE_ENTRY) /* Not previously a list */ in kvmhv_insert_nest_rmap() 829 if (rmap & RMAP_NESTED_IS_SINGLE_ENTRY) /* Not previously a list */ in kvmhv_insert_nest_rmap() 830 (*n_rmap)->list.next = (struct llist_node *) rmap; in kvmhv_insert_nest_rmap() 871 unsigned long rmap, mask; in kvmhv_update_nest_rmap_rc_list() local 879 for_each_nest_rmap_safe(cursor, entry, &rmap) in kvmhv_update_nest_rmap_rc_list() 880 kvmhv_update_nest_rmap_rc(kvm, rmap, clr, set, hpa, mask); in kvmhv_update_nest_rmap_rc_list() [all …]
|
/kernel/linux/linux-5.10/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() 427 ret = regmap_update_bits(chip->rmap, MAX77620_REG_ONOFFCNFG2, in max77620_initialise_fps() 439 ret = regmap_update_bits(chip->rmap, MAX77620_REG_ONOFFCNFG2, in max77620_initialise_fps() 450 ret = regmap_update_bits(chip->rmap, MAX77620_REG_ONOFFCNFG1, in max77620_initialise_fps() 469 ret = regmap_read(chip->rmap, i, &val); in max77620_read_es_version() 490 regmap_update_bits(chip->rmap, MAX77620_REG_ONOFFCNFG1, in max77620_pm_power_off() 535 chip->rmap = devm_regmap_init_i2c(client, rmap_config); in max77620_probe() 536 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()
|
/kernel/linux/linux-5.10/include/linux/mfd/ |
D | tps65090.h | 76 struct regmap *rmap; member 118 return regmap_write(tps->rmap, reg, val); in tps65090_write() 127 ret = regmap_read(tps->rmap, reg, &temp_val); in tps65090_read() 138 return regmap_update_bits(tps->rmap, reg, BIT(bit_num), ~0u); in tps65090_set_bits() 146 return regmap_update_bits(tps->rmap, reg, BIT(bit_num), 0u); in tps65090_clr_bits()
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/drivers/mtd/maps/ |
D | physmap-versatile.c | 192 struct regmap *rmap; in of_flash_probe_versatile() local 209 rmap = syscon_node_to_regmap(sysnp); in of_flash_probe_versatile() 210 if (IS_ERR(rmap)) in of_flash_probe_versatile() 211 return PTR_ERR(rmap); in of_flash_probe_versatile() 213 syscon_regmap = rmap; in of_flash_probe_versatile()
|
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()
|
/kernel/linux/linux-5.10/fs/xfs/scrub/ |
D | bmap.c | 107 struct xfs_rmap_irec *rmap) in xchk_bmap_get_rmap() argument 135 owner, offset, rflags, rmap, &has_rmap); in xchk_bmap_get_rmap() 153 error = xfs_rmap_get_rec(info->sc->sa.rmap_cur, rmap, &has_rmap); in xchk_bmap_get_rmap() 172 struct xfs_rmap_irec rmap; in xchk_bmap_xref_rmap() local 185 if (!xchk_bmap_get_rmap(info, irec, agbno, owner, &rmap)) in xchk_bmap_xref_rmap() 189 rmap_end = (unsigned long long)rmap.rm_startblock + rmap.rm_blockcount; in xchk_bmap_xref_rmap() 190 if (rmap.rm_startblock > agbno || in xchk_bmap_xref_rmap() 201 rmap_end = (unsigned long long)rmap.rm_offset + in xchk_bmap_xref_rmap() 202 rmap.rm_blockcount; in xchk_bmap_xref_rmap() 203 if (rmap.rm_offset > irec->br_startoff || in xchk_bmap_xref_rmap() [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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()
|