Searched refs:reg_id (Results 1 - 25 of 64) sorted by relevance

123

/linux-master/drivers/iio/dummy/
H A Diio_dummy_evgen.h6 u32 reg_id; member in struct:iio_dummy_regs
/linux-master/drivers/net/ipa/
H A Dgsi_reg.c13 static bool gsi_reg_id_valid(struct gsi *gsi, enum gsi_reg_id reg_id) argument
15 switch (reg_id) {
82 const struct reg *gsi_reg(struct gsi *gsi, enum gsi_reg_id reg_id) argument
84 if (WARN(!gsi_reg_id_valid(gsi, reg_id), "invalid reg %u\n", reg_id))
87 return reg(gsi->regs, reg_id);
H A Dipa_reg.c14 static bool ipa_reg_id_valid(struct ipa *ipa, enum ipa_reg_id reg_id) argument
18 switch (reg_id) {
102 const struct reg *ipa_reg(struct ipa *ipa, enum ipa_reg_id reg_id) argument
104 if (WARN(!ipa_reg_id_valid(ipa, reg_id), "invalid reg %u\n", reg_id))
107 return reg(ipa->regs, reg_id);
H A Dreg.h62 static inline const struct reg *reg(const struct regs *regs, u32 reg_id) argument
64 if (WARN(reg_id >= regs->reg_count,
65 "reg out of range (%u > %u)\n", reg_id, regs->reg_count - 1))
68 return regs->reg[reg_id];
/linux-master/arch/powerpc/platforms/pseries/
H A Drtas-fadump.h99 __be64 reg_id; member in struct:rtas_fadump_reg_entry
106 while (be64_to_cpu(reg_entry->reg_id) != \
H A Drtas-fadump.c257 static void __init rtas_fadump_set_regval(struct pt_regs *regs, u64 reg_id, u64 reg_val) argument
261 i = rtas_fadump_gpr_index(reg_id);
264 else if (reg_id == fadump_str_to_u64("NIA"))
266 else if (reg_id == fadump_str_to_u64("MSR"))
268 else if (reg_id == fadump_str_to_u64("CTR"))
270 else if (reg_id == fadump_str_to_u64("LR"))
272 else if (reg_id == fadump_str_to_u64("XER"))
274 else if (reg_id == fadump_str_to_u64("CR"))
276 else if (reg_id == fadump_str_to_u64("DAR"))
278 else if (reg_id
[all...]
/linux-master/tools/testing/selftests/kvm/aarch64/
H A Daarch32_id_regs.c97 uint64_t reg_id = raz_wi_reg_ids[i]; local
100 vcpu_get_reg(vcpu, reg_id, &val);
107 vcpu_set_reg(vcpu, reg_id, BAD_ID_REG_VAL);
109 vcpu_get_reg(vcpu, reg_id, &val);
126 uint64_t reg_id = raz_invariant_reg_ids[i]; local
129 vcpu_get_reg(vcpu, reg_id, &val);
132 r = __vcpu_set_reg(vcpu, reg_id, BAD_ID_REG_VAL);
136 vcpu_get_reg(vcpu, reg_id, &val);
H A Dset_id_regs.c396 uint32_t reg_id = test_regs[i].reg; local
397 uint64_t reg = KVM_ARM64_SYS_REG(reg_id);
401 idx = KVM_ARM_FEATURE_ID_RANGE_IDX(sys_reg_Op0(reg_id), sys_reg_Op1(reg_id),
402 sys_reg_CRn(reg_id), sys_reg_CRm(reg_id),
403 sys_reg_Op2(reg_id));
407 if (aarch64_only && sys_reg_CRm(reg_id) < 4) {
/linux-master/drivers/net/wireless/silabs/wfx/
H A Dbus_sdio.c52 static int wfx_sdio_copy_from_io(void *priv, unsigned int reg_id, void *dst, size_t count) argument
55 unsigned int sdio_addr = reg_id << 2;
58 WARN(reg_id > 7, "chip only has 7 registers");
63 if (reg_id == WFX_REG_IN_OUT_QUEUE)
66 if (!ret && reg_id == WFX_REG_IN_OUT_QUEUE)
72 static int wfx_sdio_copy_to_io(void *priv, unsigned int reg_id, const void *src, size_t count) argument
75 unsigned int sdio_addr = reg_id << 2;
78 WARN(reg_id > 7, "chip only has 7 registers");
83 if (reg_id == WFX_REG_IN_OUT_QUEUE)
87 if (!ret && reg_id
[all...]
/linux-master/sound/soc/sh/rcar/
H A Ddebugfs.c57 int reg_id, int offset, int size)
62 rsnd_gen_get_phy_addr(priv, reg_id),
63 rsnd_gen_get_base_addr(priv, reg_id),
56 rsnd_debugfs_mod_reg_show(struct seq_file *m, struct rsnd_mod *mod, int reg_id, int offset, int size) argument
H A Dgen.c137 phys_addr_t rsnd_gen_get_phy_addr(struct rsnd_priv *priv, int reg_id) argument
141 return gen->res[reg_id];
145 void __iomem *rsnd_gen_get_base_addr(struct rsnd_priv *priv, int reg_id) argument
149 return gen->base[reg_id];
153 #define rsnd_gen_regmap_init(priv, id_size, reg_id, name, conf) \
154 _rsnd_gen_regmap_init(priv, id_size, reg_id, name, conf, ARRAY_SIZE(conf))
157 int reg_id,
181 res = platform_get_resource(pdev, IORESOURCE_MEM, reg_id);
194 gen->base[reg_id] = base;
195 gen->regmap[reg_id]
155 _rsnd_gen_regmap_init(struct rsnd_priv *priv, int id_size, int reg_id, const char *name, const struct rsnd_regmap_field_conf *conf, int conf_size) argument
[all...]
/linux-master/drivers/powercap/
H A Dintel_rapl_tpmi.c146 enum rapl_domain_reg_id reg_id; local
209 reg_id = RAPL_DOMAIN_REG_UNIT;
212 reg_id = RAPL_DOMAIN_REG_LIMIT;
216 reg_id = RAPL_DOMAIN_REG_PL2;
220 reg_id = RAPL_DOMAIN_REG_PL4;
224 reg_id = RAPL_DOMAIN_REG_STATUS;
227 reg_id = RAPL_DOMAIN_REG_PERF;
230 reg_id = RAPL_DOMAIN_REG_INFO;
235 trp->priv.regs[domain_type][reg_id].mmio = trp->base + offset + reg_index * 8;
/linux-master/drivers/net/ethernet/marvell/octeontx2/af/
H A Dmcs.c374 int reg_id; local
378 for (reg_id = 0; reg_id < 8; reg_id++) {
379 reg = MCSX_CPM_RX_SLAVE_SA_PLCY_MEMX(reg_id, sa_id);
380 mcs_reg_write(mcs, reg, plcy[reg_id]);
383 for (reg_id = 0; reg_id < 9; reg_id++) {
384 reg = MCSX_CPM_TX_SLAVE_SA_PLCY_MEMX(reg_id, sa_i
469 int reg_id; local
495 int flow_id, secy_id, reg_id; local
[all...]
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_tc.h253 #define MLX5_REG_MAPPING_MOFFSET(reg_id) (mlx5e_tc_attr_to_reg_mappings[reg_id].moffset)
254 #define MLX5_REG_MAPPING_MBITS(reg_id) (mlx5e_tc_attr_to_reg_mappings[reg_id].mlen)
255 #define MLX5_REG_MAPPING_MASK(reg_id) (GENMASK(mlx5e_tc_attr_to_reg_mappings[reg_id].mlen - 1, 0))
/linux-master/drivers/regulator/
H A Ds5m8767.c162 static int s5m8767_get_register(struct s5m8767_info *s5m8767, int reg_id, argument
168 switch (reg_id) {
170 *reg = S5M8767_REG_LDO1CTRL + (reg_id - S5M8767_LDO1);
173 *reg = S5M8767_REG_LDO3CTRL + (reg_id - S5M8767_LDO3);
179 *reg = S5M8767_REG_BUCK2CTRL + (reg_id - S5M8767_BUCK2) * 9;
185 *reg = S5M8767_REG_BUCK6CTRL1 + (reg_id - S5M8767_BUCK6) * 2;
192 if (s5m8767->opmode[i].id == reg_id) {
201 *enable_ctrl = s5m8767_opmode_reg[reg_id][mode] << S5M8767_ENCTRL_SHIFT;
206 static int s5m8767_get_vsel_reg(int reg_id, struct s5m8767_info *s5m8767) argument
210 switch (reg_id) {
296 int reg_id = rdev_get_id(rdev); local
[all...]
H A Dvirtual.c295 char *reg_id = dev_get_platdata(&pdev->dev); local
322 if (!reg_id && pdev->dev.of_node)
323 reg_id = "default";
327 drvdata->regulator = devm_regulator_get(&pdev->dev, reg_id);
331 reg_id);
H A Dmax77693-regulator.c106 int reg_id)
112 switch (reg_id) {
104 max77693_get_regmap(enum max77693_types type, struct max77693_dev *max77693, int reg_id) argument
H A Dmax14577-regulator.c165 int reg_id)
169 switch (reg_id) {
164 max14577_get_regmap(struct max14577 *max14577, int reg_id) argument
/linux-master/drivers/gpu/drm/exynos/
H A Dexynos_mixer.c184 static inline u32 vp_reg_read(struct mixer_context *ctx, u32 reg_id) argument
186 return readl(ctx->vp_regs + reg_id);
189 static inline void vp_reg_write(struct mixer_context *ctx, u32 reg_id, argument
192 writel(val, ctx->vp_regs + reg_id);
195 static inline void vp_reg_writemask(struct mixer_context *ctx, u32 reg_id, argument
198 u32 old = vp_reg_read(ctx, reg_id);
201 writel(val, ctx->vp_regs + reg_id);
204 static inline u32 mixer_reg_read(struct mixer_context *ctx, u32 reg_id) argument
206 return readl(ctx->mixer_regs + reg_id);
209 static inline void mixer_reg_write(struct mixer_context *ctx, u32 reg_id, argument
215 mixer_reg_writemask(struct mixer_context *ctx, u32 reg_id, u32 val, u32 mask) argument
291 vp_filter_set(struct mixer_context *ctx, int reg_id, const u8 *data, unsigned int size) argument
[all...]
H A Dexynos_hdmi.c677 static inline u32 hdmi_map_reg(struct hdmi_context *hdata, u32 reg_id) argument
679 if ((reg_id & 0xffff0000) == HDMI_MAPPED_BASE)
680 return hdmi_reg_map[reg_id & 0xffff][hdata->drv_data->type];
681 return reg_id;
684 static inline u32 hdmi_reg_read(struct hdmi_context *hdata, u32 reg_id) argument
686 return readl(hdata->regs + hdmi_map_reg(hdata, reg_id));
690 u32 reg_id, u8 value)
692 writel(value, hdata->regs + hdmi_map_reg(hdata, reg_id));
695 static inline void hdmi_reg_writev(struct hdmi_context *hdata, u32 reg_id, argument
698 reg_id
689 hdmi_reg_writeb(struct hdmi_context *hdata, u32 reg_id, u8 value) argument
707 hdmi_reg_write_buf(struct hdmi_context *hdata, u32 reg_id, u8 *buf, int size) argument
714 hdmi_reg_writemask(struct hdmi_context *hdata, u32 reg_id, u32 value, u32 mask) argument
[all...]
/linux-master/drivers/gpu/drm/sti/
H A Dsti_mixer.c66 static inline u32 sti_mixer_reg_read(struct sti_mixer *mixer, u32 reg_id) argument
68 return readl(mixer->regs + reg_id);
72 u32 reg_id, u32 val)
74 writel(val, mixer->regs + reg_id);
71 sti_mixer_reg_write(struct sti_mixer *mixer, u32 reg_id, u32 val) argument
/linux-master/drivers/net/wireless/microchip/wilc1000/
H A Dfw.h35 u8 reg_id; member in struct:wilc_reg_frame
/linux-master/drivers/infiniband/hw/mlx4/
H A Dmain.c1328 struct mlx4_flow_reg_id reg_id; member in struct:mlx4_ib_steering
1524 u64 *reg_id)
1587 ret = mlx4_cmd_imm(mdev->dev, mailbox->dma, reg_id, size >> 2, 0,
1601 static int __mlx4_ib_destroy_flow(struct mlx4_dev *dev, u64 reg_id) argument
1604 err = mlx4_cmd(dev, reg_id, 0, 0,
1609 reg_id);
1614 u64 *reg_id)
1634 reg_id);
1754 type[i], &mflow->reg_id[i].id);
1764 &mflow->reg_id[
1521 __mlx4_ib_create_flow(struct ib_qp *qp, struct ib_flow_attr *flow_attr, int domain, enum mlx4_net_trans_promisc_mode flow_type, u64 *reg_id) argument
1613 mlx4_ib_tunnel_steer_add(struct ib_qp *qp, struct ib_flow_attr *flow_attr, u64 *reg_id) argument
1844 struct mlx4_flow_reg_id reg_id; local
1922 struct mlx4_flow_reg_id reg_id = {0, 0}; local
[all...]
/linux-master/drivers/net/ethernet/mellanox/mlx4/
H A Dmcg.c56 u64 *reg_id)
66 *reg_id = imm;
978 struct mlx4_net_trans_rule *rule, u64 *reg_id)
1007 ret = mlx4_QP_FLOW_STEERING_ATTACH(dev, mailbox, size >> 2, reg_id);
1037 int mlx4_flow_detach(struct mlx4_dev *dev, u64 reg_id) argument
1041 err = mlx4_QP_FLOW_STEERING_DETACH(dev, reg_id);
1044 reg_id);
1050 int port, int qpn, u16 prio, u64 *reg_id)
1082 err = mlx4_flow_attach(dev, &rule, reg_id);
1370 enum mlx4_protocol prot, u64 *reg_id)
53 mlx4_QP_FLOW_STEERING_ATTACH(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, u32 size, u64 *reg_id) argument
977 mlx4_flow_attach(struct mlx4_dev *dev, struct mlx4_net_trans_rule *rule, u64 *reg_id) argument
1049 mlx4_tunnel_steer_add(struct mlx4_dev *dev, const unsigned char *addr, int port, int qpn, u16 prio, u64 *reg_id) argument
1367 mlx4_trans_to_dmfs_attach(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16], u8 port, int block_mcast_loopback, enum mlx4_protocol prot, u64 *reg_id) argument
1407 mlx4_multicast_attach(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16], u8 port, int block_mcast_loopback, enum mlx4_protocol prot, u64 *reg_id) argument
1438 mlx4_multicast_detach(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16], enum mlx4_protocol prot, u64 reg_id) argument
[all...]
/linux-master/drivers/iio/magnetometer/
H A Dmmc35240.c209 unsigned int reg_id; local
212 ret = regmap_read(data->regmap, MMC35240_REG_ID, &reg_id);
218 dev_dbg(&data->client->dev, "MMC35240 chip id %x\n", reg_id);

Completed in 235 milliseconds

123