Home
last modified time | relevance | path

Searched refs:reg_id (Results 1 – 25 of 47) sorted by relevance

12

/Linux-v5.10/drivers/staging/wfx/
Dbus_sdio.c35 static int wfx_sdio_copy_from_io(void *priv, unsigned int reg_id, in wfx_sdio_copy_from_io() argument
39 unsigned int sdio_addr = reg_id << 2; in wfx_sdio_copy_from_io()
42 WARN(reg_id > 7, "chip only has 7 registers"); in wfx_sdio_copy_from_io()
47 if (reg_id == WFX_REG_IN_OUT_QUEUE) in wfx_sdio_copy_from_io()
50 if (!ret && reg_id == WFX_REG_IN_OUT_QUEUE) in wfx_sdio_copy_from_io()
56 static int wfx_sdio_copy_to_io(void *priv, unsigned int reg_id, in wfx_sdio_copy_to_io() argument
60 unsigned int sdio_addr = reg_id << 2; in wfx_sdio_copy_to_io()
63 WARN(reg_id > 7, "chip only has 7 registers"); in wfx_sdio_copy_to_io()
68 if (reg_id == WFX_REG_IN_OUT_QUEUE) in wfx_sdio_copy_to_io()
72 if (!ret && reg_id == WFX_REG_IN_OUT_QUEUE) in wfx_sdio_copy_to_io()
/Linux-v5.10/arch/powerpc/platforms/pseries/
Drtas-fadump.c250 void rtas_fadump_set_regval(struct pt_regs *regs, u64 reg_id, u64 reg_val) in rtas_fadump_set_regval() argument
254 i = rtas_fadump_gpr_index(reg_id); in rtas_fadump_set_regval()
257 else if (reg_id == fadump_str_to_u64("NIA")) in rtas_fadump_set_regval()
259 else if (reg_id == fadump_str_to_u64("MSR")) in rtas_fadump_set_regval()
261 else if (reg_id == fadump_str_to_u64("CTR")) in rtas_fadump_set_regval()
263 else if (reg_id == fadump_str_to_u64("LR")) in rtas_fadump_set_regval()
265 else if (reg_id == fadump_str_to_u64("XER")) in rtas_fadump_set_regval()
267 else if (reg_id == fadump_str_to_u64("CR")) in rtas_fadump_set_regval()
269 else if (reg_id == fadump_str_to_u64("DAR")) in rtas_fadump_set_regval()
271 else if (reg_id == fadump_str_to_u64("DSISR")) in rtas_fadump_set_regval()
[all …]
Drtas-fadump.h99 __be64 reg_id; member
106 while (be64_to_cpu(reg_entry->reg_id) != \
/Linux-v5.10/drivers/regulator/
Ds5m8767.c162 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 …]
Dvirtual.c286 char *reg_id = dev_get_platdata(&pdev->dev); in regulator_virtual_probe() local
297 drvdata->regulator = devm_regulator_get(&pdev->dev, reg_id); in regulator_virtual_probe()
301 reg_id, ret); in regulator_virtual_probe()
Dmax14577-regulator.c165 int reg_id) in max14577_get_regmap() argument
169 switch (reg_id) { in max14577_get_regmap()
Dmax77693-regulator.c106 int reg_id) in max77693_get_regmap() argument
112 switch (reg_id) { in max77693_get_regmap()
/Linux-v5.10/drivers/gpu/drm/exynos/
Dexynos_mixer.c182 static inline u32 vp_reg_read(struct mixer_context *ctx, u32 reg_id) in vp_reg_read() argument
184 return readl(ctx->vp_regs + reg_id); in vp_reg_read()
187 static inline void vp_reg_write(struct mixer_context *ctx, u32 reg_id, in vp_reg_write() argument
190 writel(val, ctx->vp_regs + reg_id); in vp_reg_write()
193 static inline void vp_reg_writemask(struct mixer_context *ctx, u32 reg_id, in vp_reg_writemask() argument
196 u32 old = vp_reg_read(ctx, reg_id); in vp_reg_writemask()
199 writel(val, ctx->vp_regs + reg_id); in vp_reg_writemask()
202 static inline u32 mixer_reg_read(struct mixer_context *ctx, u32 reg_id) in mixer_reg_read() argument
204 return readl(ctx->mixer_regs + reg_id); in mixer_reg_read()
207 static inline void mixer_reg_write(struct mixer_context *ctx, u32 reg_id, in mixer_reg_write() argument
[all …]
Dexynos_hdmi.c668 static inline u32 hdmi_map_reg(struct hdmi_context *hdata, u32 reg_id) in hdmi_map_reg() argument
670 if ((reg_id & 0xffff0000) == HDMI_MAPPED_BASE) in hdmi_map_reg()
671 return hdmi_reg_map[reg_id & 0xffff][hdata->drv_data->type]; in hdmi_map_reg()
672 return reg_id; in hdmi_map_reg()
675 static inline u32 hdmi_reg_read(struct hdmi_context *hdata, u32 reg_id) in hdmi_reg_read() argument
677 return readl(hdata->regs + hdmi_map_reg(hdata, reg_id)); in hdmi_reg_read()
681 u32 reg_id, u8 value) in hdmi_reg_writeb() argument
683 writel(value, hdata->regs + hdmi_map_reg(hdata, reg_id)); in hdmi_reg_writeb()
686 static inline void hdmi_reg_writev(struct hdmi_context *hdata, u32 reg_id, in hdmi_reg_writev() argument
689 reg_id = hdmi_map_reg(hdata, reg_id); in hdmi_reg_writev()
[all …]
/Linux-v5.10/sound/soc/sh/rcar/
Dgen.c137 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()
144 #define rsnd_gen_regmap_init(priv, id_size, reg_id, name, conf) \ argument
145 _rsnd_gen_regmap_init(priv, id_size, reg_id, name, conf, ARRAY_SIZE(conf))
148 int reg_id, in _rsnd_gen_regmap_init() argument
172 res = platform_get_resource(pdev, IORESOURCE_MEM, reg_id); in _rsnd_gen_regmap_init()
185 gen->base[reg_id] = base; in _rsnd_gen_regmap_init()
186 gen->regmap[reg_id] = regmap; in _rsnd_gen_regmap_init()
187 gen->res[reg_id] = res->start; in _rsnd_gen_regmap_init()
/Linux-v5.10/drivers/infiniband/hw/mlx4/
Dmain.c1332 struct mlx4_flow_reg_id reg_id; member
1528 u64 *reg_id) in __mlx4_ib_create_flow() argument
1591 ret = mlx4_cmd_imm(mdev->dev, mailbox->dma, reg_id, size >> 2, 0, in __mlx4_ib_create_flow()
1605 static int __mlx4_ib_destroy_flow(struct mlx4_dev *dev, u64 reg_id) in __mlx4_ib_destroy_flow() argument
1608 err = mlx4_cmd(dev, reg_id, 0, 0, in __mlx4_ib_destroy_flow()
1613 reg_id); in __mlx4_ib_destroy_flow()
1618 u64 *reg_id) in mlx4_ib_tunnel_steer_add() argument
1638 reg_id); in mlx4_ib_tunnel_steer_add()
1761 type[i], &mflow->reg_id[i].id); in mlx4_ib_create_flow()
1771 &mflow->reg_id[j].mirror); in mlx4_ib_create_flow()
[all …]
/Linux-v5.10/drivers/gpu/drm/sti/
Dsti_mixer.c66 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-v5.10/drivers/net/ethernet/mellanox/mlx4/
Dmcg.c56 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 …]
Den_netdev.c174 u64 reg_id; /* Flow steering API id */ member
256 if (filter->reg_id) { in mlx4_en_filter_work()
257 rc = mlx4_flow_detach(priv->mdev->dev, filter->reg_id); in mlx4_en_filter_work()
262 rc = mlx4_flow_attach(priv->mdev->dev, &rule, &filter->reg_id); in mlx4_en_filter_work()
328 rc = mlx4_flow_detach(priv->mdev->dev, filter->reg_id); in mlx4_en_filter_free()
539 int qpn, u64 *reg_id) in mlx4_en_tunnel_steer_add() argument
548 MLX4_DOMAIN_NIC, reg_id); in mlx4_en_tunnel_steer_add()
553 en_dbg(DRV, priv, "added vxlan steering rule, mac %pM reg_id %llx\n", addr, *reg_id); in mlx4_en_tunnel_steer_add()
559 unsigned char *mac, int *qpn, u64 *reg_id) in mlx4_en_uc_steer_add() argument
598 err = mlx4_flow_attach(dev, &rule, reg_id); in mlx4_en_uc_steer_add()
[all …]
Dresource_tracker.c92 u64 reg_id; member
4029 enum mlx4_steer_type steer, u64 reg_id) in add_mcg_res() argument
4046 res->reg_id = reg_id; in add_mcg_res()
4057 enum mlx4_steer_type steer, u64 *reg_id) in rem_mcg_res() argument
4067 *reg_id = res->reg_id; in rem_mcg_res()
4079 enum mlx4_steer_type type, u64 *reg_id) in qp_attach() argument
4088 reg_id); in qp_attach()
4106 enum mlx4_steer_type type, u64 reg_id) in qp_detach() argument
4110 return mlx4_flow_detach(dev, reg_id); in qp_detach()
4149 u64 reg_id = 0; in mlx4_QP_ATTACH_wrapper() local
[all …]
/Linux-v5.10/drivers/iio/dummy/
Diio_dummy_evgen.h6 u32 reg_id; member
Diio_simple_dummy_events.c181 st->regs->reg_id, st->regs->reg_data); in iio_simple_dummy_event_handler()
Diio_dummy_evgen.c148 iio_evgen->regs[this_attr->address].reg_id = this_attr->address; in iio_evgen_poke()
/Linux-v5.10/drivers/iio/magnetometer/
Dmmc35240.c209 unsigned int reg_id; in mmc35240_init() local
212 ret = regmap_read(data->regmap, MMC35240_REG_ID, &reg_id); in mmc35240_init()
218 dev_dbg(&data->client->dev, "MMC35240 chip id %x\n", reg_id); in mmc35240_init()
/Linux-v5.10/drivers/clk/rockchip/
Dclk-rk3288.c875 int i, reg_id; in rk3288_clk_suspend() local
878 reg_id = rk3288_saved_cru_reg_ids[i]; in rk3288_clk_suspend()
881 readl_relaxed(rk3288_cru_base + reg_id); in rk3288_clk_suspend()
910 int i, reg_id; in rk3288_clk_resume() local
913 reg_id = rk3288_saved_cru_reg_ids[i]; in rk3288_clk_resume()
916 rk3288_cru_base + reg_id); in rk3288_clk_resume()
/Linux-v5.10/drivers/net/wireless/microchip/wilc1000/
Dfw.h35 u8 reg_id; member
/Linux-v5.10/drivers/net/ethernet/qlogic/qed/
Dqed_debug.c3561 u8 reg_id; in qed_idle_chk_dump_failure() local
3582 for (reg_id = 0; reg_id < rule->num_cond_regs; reg_id++) { in qed_idle_chk_dump_failure()
3583 const struct dbg_idle_chk_cond_reg *reg = &cond_regs[reg_id]; in qed_idle_chk_dump_failure()
3604 DBG_IDLE_CHK_RESULT_REG_HDR_REG_ID, reg_id); in qed_idle_chk_dump_failure()
3612 for (reg_id = 0; reg_id < rule->num_info_regs; reg_id++) { in qed_idle_chk_dump_failure()
3613 const struct dbg_idle_chk_info_reg *reg = &info_regs[reg_id]; in qed_idle_chk_dump_failure()
3664 rule->num_cond_regs + reg_id); in qed_idle_chk_dump_failure()
3691 u8 reg_id; in qed_idle_chk_dump_rule_entries() local
3716 for (reg_id = 0; reg_id < rule->num_cond_regs && check_rule; in qed_idle_chk_dump_rule_entries()
3717 reg_id++) { in qed_idle_chk_dump_rule_entries()
[all …]
/Linux-v5.10/drivers/gpu/drm/amd/amdgpu/
Dpsp_gfx_if.h263 uint32_t reg_id; member
/Linux-v5.10/include/linux/mlx4/
Ddevice.h1153 enum mlx4_protocol protocol, u64 *reg_id);
1155 enum mlx4_protocol protocol, u64 reg_id);
1431 struct mlx4_net_trans_rule *rule, u64 *reg_id);
1432 int mlx4_flow_detach(struct mlx4_dev *dev, u64 reg_id);
1440 int port, int qpn, u16 prio, u64 *reg_id);
/Linux-v5.10/sound/soc/codecs/
Dcs35l36.c1711 u32 reg_id, reg_revid, l37_id_reg; in cs35l36_i2c_probe() local
1782 ret = regmap_read(cs35l36->regmap, CS35L36_SW_RESET, &reg_id); in cs35l36_i2c_probe()
1788 if (reg_id != CS35L36_CHIP_ID) { in cs35l36_i2c_probe()
1789 dev_err(dev, "Device ID (%X). Expected ID %X\n", reg_id, in cs35l36_i2c_probe()

12