/linux-6.1.9/drivers/net/ipa/ |
D | ipa_reg.c | 13 static bool ipa_reg_valid(struct ipa *ipa, enum ipa_reg_id reg_id) in ipa_reg_valid() argument 19 if ((u32)reg_id >= ipa->regs->reg_count) in ipa_reg_valid() 22 switch (reg_id) { in ipa_reg_valid() 67 return valid && ipa->regs->reg[reg_id]; in ipa_reg_valid() 70 const struct ipa_reg *ipa_reg(struct ipa *ipa, enum ipa_reg_id reg_id) in ipa_reg() argument 72 if (WARN_ON(!ipa_reg_valid(ipa, reg_id))) in ipa_reg() 75 return ipa->regs->reg[reg_id]; in ipa_reg()
|
/linux-6.1.9/tools/testing/selftests/kvm/aarch64/ |
D | aarch32_id_regs.c | 96 uint64_t reg_id = raz_wi_reg_ids[i]; in test_user_raz_wi() local 99 vcpu_get_reg(vcpu, reg_id, &val); in test_user_raz_wi() 106 vcpu_set_reg(vcpu, reg_id, BAD_ID_REG_VAL); in test_user_raz_wi() 108 vcpu_get_reg(vcpu, reg_id, &val); in test_user_raz_wi() 125 uint64_t reg_id = raz_invariant_reg_ids[i]; in test_user_raz_invariant() local 128 vcpu_get_reg(vcpu, reg_id, &val); in test_user_raz_invariant() 131 r = __vcpu_set_reg(vcpu, reg_id, BAD_ID_REG_VAL); in test_user_raz_invariant() 135 vcpu_get_reg(vcpu, reg_id, &val); in test_user_raz_invariant()
|
/linux-6.1.9/drivers/net/wireless/silabs/wfx/ |
D | bus_sdio.c | 52 static int wfx_sdio_copy_from_io(void *priv, unsigned int reg_id, void *dst, size_t count) in wfx_sdio_copy_from_io() argument 55 unsigned int sdio_addr = reg_id << 2; in wfx_sdio_copy_from_io() 58 WARN(reg_id > 7, "chip only has 7 registers"); in wfx_sdio_copy_from_io() 63 if (reg_id == WFX_REG_IN_OUT_QUEUE) in wfx_sdio_copy_from_io() 66 if (!ret && reg_id == WFX_REG_IN_OUT_QUEUE) in wfx_sdio_copy_from_io() 72 static int wfx_sdio_copy_to_io(void *priv, unsigned int reg_id, const void *src, size_t count) in wfx_sdio_copy_to_io() argument 75 unsigned int sdio_addr = reg_id << 2; in wfx_sdio_copy_to_io() 78 WARN(reg_id > 7, "chip only has 7 registers"); in wfx_sdio_copy_to_io() 83 if (reg_id == WFX_REG_IN_OUT_QUEUE) in wfx_sdio_copy_to_io() 87 if (!ret && reg_id == WFX_REG_IN_OUT_QUEUE) in wfx_sdio_copy_to_io()
|
/linux-6.1.9/arch/powerpc/platforms/pseries/ |
D | rtas-fadump.c | 257 static void __init rtas_fadump_set_regval(struct pt_regs *regs, u64 reg_id, u64 reg_val) in rtas_fadump_set_regval() argument 261 i = rtas_fadump_gpr_index(reg_id); in rtas_fadump_set_regval() 264 else if (reg_id == fadump_str_to_u64("NIA")) in rtas_fadump_set_regval() 266 else if (reg_id == fadump_str_to_u64("MSR")) in rtas_fadump_set_regval() 268 else if (reg_id == fadump_str_to_u64("CTR")) in rtas_fadump_set_regval() 270 else if (reg_id == fadump_str_to_u64("LR")) in rtas_fadump_set_regval() 272 else if (reg_id == fadump_str_to_u64("XER")) in rtas_fadump_set_regval() 274 else if (reg_id == fadump_str_to_u64("CR")) in rtas_fadump_set_regval() 276 else if (reg_id == fadump_str_to_u64("DAR")) in rtas_fadump_set_regval() 278 else if (reg_id == fadump_str_to_u64("DSISR")) in rtas_fadump_set_regval() [all …]
|
D | rtas-fadump.h | 99 __be64 reg_id; member 106 while (be64_to_cpu(reg_entry->reg_id) != \
|
/linux-6.1.9/drivers/regulator/ |
D | s5m8767.c | 162 static int s5m8767_get_register(struct s5m8767_info *s5m8767, int reg_id, in s5m8767_get_register() argument 168 switch (reg_id) { in s5m8767_get_register() 170 *reg = S5M8767_REG_LDO1CTRL + (reg_id - S5M8767_LDO1); in s5m8767_get_register() 173 *reg = S5M8767_REG_LDO3CTRL + (reg_id - S5M8767_LDO3); in s5m8767_get_register() 179 *reg = S5M8767_REG_BUCK2CTRL + (reg_id - S5M8767_BUCK2) * 9; in s5m8767_get_register() 185 *reg = S5M8767_REG_BUCK6CTRL1 + (reg_id - S5M8767_BUCK6) * 2; in s5m8767_get_register() 192 if (s5m8767->opmode[i].id == reg_id) { in s5m8767_get_register() 201 *enable_ctrl = s5m8767_opmode_reg[reg_id][mode] << S5M8767_ENCTRL_SHIFT; in s5m8767_get_register() 206 static int s5m8767_get_vsel_reg(int reg_id, struct s5m8767_info *s5m8767) in s5m8767_get_vsel_reg() argument 210 switch (reg_id) { in s5m8767_get_vsel_reg() [all …]
|
D | virtual.c | 295 char *reg_id = dev_get_platdata(&pdev->dev); in regulator_virtual_probe() local 322 if (!reg_id && pdev->dev.of_node) in regulator_virtual_probe() 323 reg_id = "default"; in regulator_virtual_probe() 327 drvdata->regulator = devm_regulator_get(&pdev->dev, reg_id); in regulator_virtual_probe() 331 reg_id); in regulator_virtual_probe()
|
D | max14577-regulator.c | 165 int reg_id) in max14577_get_regmap() argument 169 switch (reg_id) { in max14577_get_regmap()
|
D | max77693-regulator.c | 106 int reg_id) in max77693_get_regmap() argument 112 switch (reg_id) { in max77693_get_regmap()
|
/linux-6.1.9/drivers/net/ethernet/marvell/octeontx2/af/ |
D | mcs.c | 374 int reg_id; in mcs_sa_plcy_write() local 378 for (reg_id = 0; reg_id < 8; reg_id++) { in mcs_sa_plcy_write() 379 reg = MCSX_CPM_RX_SLAVE_SA_PLCY_MEMX(reg_id, sa_id); in mcs_sa_plcy_write() 380 mcs_reg_write(mcs, reg, plcy[reg_id]); in mcs_sa_plcy_write() 383 for (reg_id = 0; reg_id < 9; reg_id++) { in mcs_sa_plcy_write() 384 reg = MCSX_CPM_TX_SLAVE_SA_PLCY_MEMX(reg_id, sa_id); in mcs_sa_plcy_write() 385 mcs_reg_write(mcs, reg, plcy[reg_id]); in mcs_sa_plcy_write() 469 int reg_id; in mcs_flowid_entry_write() local 473 for (reg_id = 0; reg_id < 4; reg_id++) { in mcs_flowid_entry_write() 474 reg = MCSX_CPM_RX_SLAVE_FLOWID_TCAM_DATAX(reg_id, flow_id); in mcs_flowid_entry_write() [all …]
|
/linux-6.1.9/sound/soc/sh/rcar/ |
D | gen.c | 137 phys_addr_t rsnd_gen_get_phy_addr(struct rsnd_priv *priv, int reg_id) in rsnd_gen_get_phy_addr() argument 141 return gen->res[reg_id]; in rsnd_gen_get_phy_addr() 145 void __iomem *rsnd_gen_get_base_addr(struct rsnd_priv *priv, int reg_id) in rsnd_gen_get_base_addr() argument 149 return gen->base[reg_id]; in rsnd_gen_get_base_addr() 153 #define rsnd_gen_regmap_init(priv, id_size, reg_id, name, conf) \ argument 154 _rsnd_gen_regmap_init(priv, id_size, reg_id, name, conf, ARRAY_SIZE(conf)) 157 int reg_id, in _rsnd_gen_regmap_init() argument 181 res = platform_get_resource(pdev, IORESOURCE_MEM, reg_id); in _rsnd_gen_regmap_init() 194 gen->base[reg_id] = base; in _rsnd_gen_regmap_init() 195 gen->regmap[reg_id] = regmap; in _rsnd_gen_regmap_init() [all …]
|
D | debugfs.c | 57 int reg_id, int offset, int size) in rsnd_debugfs_mod_reg_show() argument 62 rsnd_gen_get_phy_addr(priv, reg_id), in rsnd_debugfs_mod_reg_show() 63 rsnd_gen_get_base_addr(priv, reg_id), in rsnd_debugfs_mod_reg_show()
|
/linux-6.1.9/drivers/gpu/drm/exynos/ |
D | exynos_mixer.c | 185 static inline u32 vp_reg_read(struct mixer_context *ctx, u32 reg_id) in vp_reg_read() argument 187 return readl(ctx->vp_regs + reg_id); in vp_reg_read() 190 static inline void vp_reg_write(struct mixer_context *ctx, u32 reg_id, in vp_reg_write() argument 193 writel(val, ctx->vp_regs + reg_id); in vp_reg_write() 196 static inline void vp_reg_writemask(struct mixer_context *ctx, u32 reg_id, in vp_reg_writemask() argument 199 u32 old = vp_reg_read(ctx, reg_id); in vp_reg_writemask() 202 writel(val, ctx->vp_regs + reg_id); in vp_reg_writemask() 205 static inline u32 mixer_reg_read(struct mixer_context *ctx, u32 reg_id) in mixer_reg_read() argument 207 return readl(ctx->mixer_regs + reg_id); in mixer_reg_read() 210 static inline void mixer_reg_write(struct mixer_context *ctx, u32 reg_id, in mixer_reg_write() argument [all …]
|
D | exynos_hdmi.c | 677 static inline u32 hdmi_map_reg(struct hdmi_context *hdata, u32 reg_id) in hdmi_map_reg() argument 679 if ((reg_id & 0xffff0000) == HDMI_MAPPED_BASE) in hdmi_map_reg() 680 return hdmi_reg_map[reg_id & 0xffff][hdata->drv_data->type]; in hdmi_map_reg() 681 return reg_id; in hdmi_map_reg() 684 static inline u32 hdmi_reg_read(struct hdmi_context *hdata, u32 reg_id) in hdmi_reg_read() argument 686 return readl(hdata->regs + hdmi_map_reg(hdata, reg_id)); in hdmi_reg_read() 690 u32 reg_id, u8 value) in hdmi_reg_writeb() argument 692 writel(value, hdata->regs + hdmi_map_reg(hdata, reg_id)); in hdmi_reg_writeb() 695 static inline void hdmi_reg_writev(struct hdmi_context *hdata, u32 reg_id, in hdmi_reg_writev() argument 698 reg_id = hdmi_map_reg(hdata, reg_id); in hdmi_reg_writev() [all …]
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_tc.h | 249 #define MLX5_REG_MAPPING_MOFFSET(reg_id) (mlx5e_tc_attr_to_reg_mappings[reg_id].moffset) argument 250 #define MLX5_REG_MAPPING_MBITS(reg_id) (mlx5e_tc_attr_to_reg_mappings[reg_id].mlen) argument 251 #define MLX5_REG_MAPPING_MASK(reg_id) (GENMASK(mlx5e_tc_attr_to_reg_mappings[reg_id].mlen - 1, 0)) argument
|
/linux-6.1.9/drivers/infiniband/hw/mlx4/ |
D | main.c | 1324 struct mlx4_flow_reg_id reg_id; member 1520 u64 *reg_id) in __mlx4_ib_create_flow() argument 1583 ret = mlx4_cmd_imm(mdev->dev, mailbox->dma, reg_id, size >> 2, 0, in __mlx4_ib_create_flow() 1597 static int __mlx4_ib_destroy_flow(struct mlx4_dev *dev, u64 reg_id) in __mlx4_ib_destroy_flow() argument 1600 err = mlx4_cmd(dev, reg_id, 0, 0, in __mlx4_ib_destroy_flow() 1605 reg_id); in __mlx4_ib_destroy_flow() 1610 u64 *reg_id) in mlx4_ib_tunnel_steer_add() argument 1630 reg_id); in mlx4_ib_tunnel_steer_add() 1750 type[i], &mflow->reg_id[i].id); in mlx4_ib_create_flow() 1760 &mflow->reg_id[j].mirror); in mlx4_ib_create_flow() [all …]
|
/linux-6.1.9/drivers/gpu/drm/sti/ |
D | sti_mixer.c | 66 static inline u32 sti_mixer_reg_read(struct sti_mixer *mixer, u32 reg_id) in sti_mixer_reg_read() argument 68 return readl(mixer->regs + reg_id); in sti_mixer_reg_read() 72 u32 reg_id, u32 val) in sti_mixer_reg_write() argument 74 writel(val, mixer->regs + reg_id); in sti_mixer_reg_write()
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx4/ |
D | mcg.c | 56 u64 *reg_id) in mlx4_QP_FLOW_STEERING_ATTACH() argument 66 *reg_id = imm; in mlx4_QP_FLOW_STEERING_ATTACH() 978 struct mlx4_net_trans_rule *rule, u64 *reg_id) in mlx4_flow_attach() argument 1007 ret = mlx4_QP_FLOW_STEERING_ATTACH(dev, mailbox, size >> 2, reg_id); in mlx4_flow_attach() 1037 int mlx4_flow_detach(struct mlx4_dev *dev, u64 reg_id) in mlx4_flow_detach() argument 1041 err = mlx4_QP_FLOW_STEERING_DETACH(dev, reg_id); in mlx4_flow_detach() 1044 reg_id); in mlx4_flow_detach() 1050 int port, int qpn, u16 prio, u64 *reg_id) in mlx4_tunnel_steer_add() argument 1082 err = mlx4_flow_attach(dev, &rule, reg_id); in mlx4_tunnel_steer_add() 1370 enum mlx4_protocol prot, u64 *reg_id) in mlx4_trans_to_dmfs_attach() argument [all …]
|
D | en_netdev.c | 175 u64 reg_id; /* Flow steering API id */ member 257 if (filter->reg_id) { in mlx4_en_filter_work() 258 rc = mlx4_flow_detach(priv->mdev->dev, filter->reg_id); in mlx4_en_filter_work() 263 rc = mlx4_flow_attach(priv->mdev->dev, &rule, &filter->reg_id); in mlx4_en_filter_work() 329 rc = mlx4_flow_detach(priv->mdev->dev, filter->reg_id); in mlx4_en_filter_free() 542 int qpn, u64 *reg_id) in mlx4_en_tunnel_steer_add() argument 551 MLX4_DOMAIN_NIC, reg_id); in mlx4_en_tunnel_steer_add() 556 en_dbg(DRV, priv, "added vxlan steering rule, mac %pM reg_id %llx\n", addr, *reg_id); in mlx4_en_tunnel_steer_add() 562 const unsigned char *mac, int *qpn, u64 *reg_id) in mlx4_en_uc_steer_add() argument 601 err = mlx4_flow_attach(dev, &rule, reg_id); in mlx4_en_uc_steer_add() [all …]
|
D | resource_tracker.c | 92 u64 reg_id; member 4030 enum mlx4_steer_type steer, u64 reg_id) in add_mcg_res() argument 4047 res->reg_id = reg_id; in add_mcg_res() 4058 enum mlx4_steer_type steer, u64 *reg_id) in rem_mcg_res() argument 4068 *reg_id = res->reg_id; in rem_mcg_res() 4080 enum mlx4_steer_type type, u64 *reg_id) in qp_attach() argument 4089 reg_id); in qp_attach() 4107 enum mlx4_steer_type type, u64 reg_id) in qp_detach() argument 4111 return mlx4_flow_detach(dev, reg_id); in qp_detach() 4150 u64 reg_id = 0; in mlx4_QP_ATTACH_wrapper() local [all …]
|
/linux-6.1.9/drivers/iio/dummy/ |
D | iio_dummy_evgen.h | 6 u32 reg_id; member
|
/linux-6.1.9/drivers/iio/magnetometer/ |
D | mmc35240.c | 209 unsigned int reg_id; in mmc35240_init() local 212 ret = regmap_read(data->regmap, MMC35240_REG_ID, ®_id); in mmc35240_init() 218 dev_dbg(&data->client->dev, "MMC35240 chip id %x\n", reg_id); in mmc35240_init()
|
/linux-6.1.9/drivers/clk/rockchip/ |
D | clk-rk3288.c | 876 int i, reg_id; in rk3288_clk_suspend() local 879 reg_id = rk3288_saved_cru_reg_ids[i]; in rk3288_clk_suspend() 882 readl_relaxed(rk3288_cru_base + reg_id); in rk3288_clk_suspend() 911 int i, reg_id; in rk3288_clk_resume() local 914 reg_id = rk3288_saved_cru_reg_ids[i]; in rk3288_clk_resume() 917 rk3288_cru_base + reg_id); in rk3288_clk_resume()
|
/linux-6.1.9/arch/arm64/kvm/ |
D | hypercalls.c | 352 static int kvm_arm_set_fw_reg_bmap(struct kvm_vcpu *vcpu, u64 reg_id, u64 val) in kvm_arm_set_fw_reg_bmap() argument 359 switch (reg_id) { in kvm_arm_set_fw_reg_bmap()
|
/linux-6.1.9/drivers/net/wireless/microchip/wilc1000/ |
D | fw.h | 35 u8 reg_id; member
|