Home
last modified time | relevance | path

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

12

/drivers/regulator/
Ds5m8767.c169 static int s5m8767_get_register(struct s5m8767_info *s5m8767, int reg_id, in s5m8767_get_register() argument
175 switch (reg_id) { in s5m8767_get_register()
177 *reg = S5M8767_REG_LDO1CTRL + (reg_id - S5M8767_LDO1); in s5m8767_get_register()
180 *reg = S5M8767_REG_LDO3CTRL + (reg_id - S5M8767_LDO3); in s5m8767_get_register()
186 *reg = S5M8767_REG_BUCK2CTRL + (reg_id - S5M8767_BUCK2) * 9; in s5m8767_get_register()
192 *reg = S5M8767_REG_BUCK6CTRL1 + (reg_id - S5M8767_BUCK6) * 2; in s5m8767_get_register()
199 if (s5m8767->opmode[i].id == reg_id) { in s5m8767_get_register()
208 *enable_ctrl = s5m8767_opmode_reg[reg_id][mode] << S5M8767_ENCTRL_SHIFT; in s5m8767_get_register()
213 static int s5m8767_get_vsel_reg(int reg_id, struct s5m8767_info *s5m8767) in s5m8767_get_vsel_reg() argument
217 switch (reg_id) { in s5m8767_get_vsel_reg()
[all …]
Dvirtual.c290 char *reg_id = dev_get_platdata(&pdev->dev); in regulator_virtual_probe() local
301 drvdata->regulator = devm_regulator_get(&pdev->dev, reg_id); in regulator_virtual_probe()
305 reg_id, ret); in regulator_virtual_probe()
Dmax77693-regulator.c120 int reg_id) in max77693_get_regmap() argument
126 switch (reg_id) { in max77693_get_regmap()
Dmax14577-regulator.c227 int reg_id) in max14577_get_regmap() argument
231 switch (reg_id) { in max14577_get_regmap()
/drivers/gpu/drm/exynos/
Dexynos_mixer.c181 static inline u32 vp_reg_read(struct mixer_resources *res, u32 reg_id) in vp_reg_read() argument
183 return readl(res->vp_regs + reg_id); in vp_reg_read()
186 static inline void vp_reg_write(struct mixer_resources *res, u32 reg_id, in vp_reg_write() argument
189 writel(val, res->vp_regs + reg_id); in vp_reg_write()
192 static inline void vp_reg_writemask(struct mixer_resources *res, u32 reg_id, in vp_reg_writemask() argument
195 u32 old = vp_reg_read(res, reg_id); in vp_reg_writemask()
198 writel(val, res->vp_regs + reg_id); in vp_reg_writemask()
201 static inline u32 mixer_reg_read(struct mixer_resources *res, u32 reg_id) in mixer_reg_read() argument
203 return readl(res->mixer_regs + reg_id); in mixer_reg_read()
206 static inline void mixer_reg_write(struct mixer_resources *res, u32 reg_id, in mixer_reg_write() argument
[all …]
Dexynos_hdmi.c654 static inline u32 hdmi_map_reg(struct hdmi_context *hdata, u32 reg_id) in hdmi_map_reg() argument
656 if ((reg_id & 0xffff0000) == HDMI_MAPPED_BASE) in hdmi_map_reg()
657 return hdmi_reg_map[reg_id & 0xffff][hdata->drv_data->type]; in hdmi_map_reg()
658 return reg_id; in hdmi_map_reg()
661 static inline u32 hdmi_reg_read(struct hdmi_context *hdata, u32 reg_id) in hdmi_reg_read() argument
663 return readl(hdata->regs + hdmi_map_reg(hdata, reg_id)); in hdmi_reg_read()
667 u32 reg_id, u8 value) in hdmi_reg_writeb() argument
669 writel(value, hdata->regs + hdmi_map_reg(hdata, reg_id)); in hdmi_reg_writeb()
672 static inline void hdmi_reg_writev(struct hdmi_context *hdata, u32 reg_id, in hdmi_reg_writev() argument
675 reg_id = hdmi_map_reg(hdata, reg_id); in hdmi_reg_writev()
[all …]
/drivers/infiniband/hw/mlx4/
Dmain.c1424 struct mlx4_flow_reg_id reg_id; member
1619 u64 *reg_id) in __mlx4_ib_create_flow() argument
1695 ret = mlx4_cmd_imm(mdev->dev, mailbox->dma, reg_id, size >> 2, 0, in __mlx4_ib_create_flow()
1709 static int __mlx4_ib_destroy_flow(struct mlx4_dev *dev, u64 reg_id) in __mlx4_ib_destroy_flow() argument
1712 err = mlx4_cmd(dev, reg_id, 0, 0, in __mlx4_ib_destroy_flow()
1717 reg_id); in __mlx4_ib_destroy_flow()
1722 u64 *reg_id) in mlx4_ib_tunnel_steer_add() argument
1742 reg_id); in mlx4_ib_tunnel_steer_add()
1858 &mflow->reg_id[i].id); in mlx4_ib_create_flow()
1868 &mflow->reg_id[j].mirror); in mlx4_ib_create_flow()
[all …]
Dmlx4_ib.h165 struct mlx4_flow_reg_id reg_id[MAX_REGS_PER_FLOW]; member
327 u64 reg_id; member
/drivers/gpu/drm/sti/
Dsti_mixer.c62 static inline u32 sti_mixer_reg_read(struct sti_mixer *mixer, u32 reg_id) in sti_mixer_reg_read() argument
64 return readl(mixer->regs + reg_id); in sti_mixer_reg_read()
68 u32 reg_id, u32 val) in sti_mixer_reg_write() argument
70 writel(val, mixer->regs + reg_id); in sti_mixer_reg_write()
/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.c111 u64 reg_id; /* Flow steering API id */ member
193 if (filter->reg_id) { in mlx4_en_filter_work()
194 rc = mlx4_flow_detach(priv->mdev->dev, filter->reg_id); in mlx4_en_filter_work()
199 rc = mlx4_flow_attach(priv->mdev->dev, &rule, &filter->reg_id); in mlx4_en_filter_work()
265 rc = mlx4_flow_detach(priv->mdev->dev, filter->reg_id); in mlx4_en_filter_free()
476 int qpn, u64 *reg_id) in mlx4_en_tunnel_steer_add() argument
485 MLX4_DOMAIN_NIC, reg_id); in mlx4_en_tunnel_steer_add()
490 en_dbg(DRV, priv, "added vxlan steering rule, mac %pM reg_id %llx\n", addr, *reg_id); in mlx4_en_tunnel_steer_add()
496 unsigned char *mac, int *qpn, u64 *reg_id) in mlx4_en_uc_steer_add() argument
535 err = mlx4_flow_attach(dev, &rule, reg_id); in mlx4_en_uc_steer_add()
[all …]
Dresource_tracker.c91 u64 reg_id; member
3977 enum mlx4_steer_type steer, u64 reg_id) in add_mcg_res() argument
3994 res->reg_id = reg_id; in add_mcg_res()
4005 enum mlx4_steer_type steer, u64 *reg_id) in rem_mcg_res() argument
4015 *reg_id = res->reg_id; in rem_mcg_res()
4027 enum mlx4_steer_type type, u64 *reg_id) in qp_attach() argument
4036 reg_id); in qp_attach()
4054 enum mlx4_steer_type type, u64 reg_id) in qp_detach() argument
4058 return mlx4_flow_detach(dev, reg_id); in qp_detach()
4097 u64 reg_id = 0; in mlx4_QP_ATTACH_wrapper() local
[all …]
Dmlx4_en.h458 u64 reg_id; member
642 u64 reg_id; member
Dfw.c2843 __be16 reg_id; member
2865 static int mlx4_ACCESS_REG(struct mlx4_dev *dev, u16 reg_id, in mlx4_ACCESS_REG() argument
2888 inbuf->reg_id = cpu_to_be16(reg_id); in mlx4_ACCESS_REG()
2907 reg_id, err); in mlx4_ACCESS_REG()
2951 u16 reg_id = be16_to_cpu(inbuf->reg_id); in mlx4_ACCESS_REG_wrapper() local
2957 if (reg_id == MLX4_REG_ID_PTYS) { in mlx4_ACCESS_REG_wrapper()
/drivers/iio/dummy/
Diio_dummy_evgen.h5 u32 reg_id; member
Diio_simple_dummy_events.c182 st->regs->reg_id, st->regs->reg_data); in iio_simple_dummy_event_handler()
Diio_dummy_evgen.c192 iio_evgen->regs[this_attr->address].reg_id = this_attr->address; in iio_evgen_poke()
/drivers/clk/rockchip/
Dclk-rk3288.c835 int i, reg_id; in rk3288_clk_suspend() local
838 reg_id = rk3288_saved_cru_reg_ids[i]; in rk3288_clk_suspend()
841 readl_relaxed(rk3288_cru_base + reg_id); in rk3288_clk_suspend()
862 int i, reg_id; in rk3288_clk_resume() local
865 reg_id = rk3288_saved_cru_reg_ids[i]; in rk3288_clk_resume()
868 rk3288_cru_base + reg_id); in rk3288_clk_resume()
/drivers/iio/magnetometer/
Dmmc35240.c212 unsigned int reg_id; in mmc35240_init() local
215 ret = regmap_read(data->regmap, MMC35240_REG_ID, &reg_id); in mmc35240_init()
221 dev_dbg(&data->client->dev, "MMC35240 chip id %x\n", reg_id); in mmc35240_init()
/drivers/net/ethernet/qlogic/qed/
Dqed_debug.c3508 u8 reg_id; in qed_idle_chk_dump_failure() local
3522 for (reg_id = 0; reg_id < rule->num_cond_regs; reg_id++) { in qed_idle_chk_dump_failure()
3523 const struct dbg_idle_chk_cond_reg *reg = &cond_regs[reg_id]; in qed_idle_chk_dump_failure()
3540 DBG_IDLE_CHK_RESULT_REG_HDR_REG_ID, reg_id); in qed_idle_chk_dump_failure()
3554 for (reg_id = 0; reg_id < rule->num_info_regs; reg_id++) { in qed_idle_chk_dump_failure()
3555 const struct dbg_idle_chk_info_reg *reg = &info_regs[reg_id]; in qed_idle_chk_dump_failure()
3601 rule->num_cond_regs + reg_id); in qed_idle_chk_dump_failure()
3626 u8 reg_id; in qed_idle_chk_dump_rule_entries() local
3649 for (reg_id = 0; reg_id < rule->num_cond_regs && check_rule; in qed_idle_chk_dump_rule_entries()
3650 reg_id++) { in qed_idle_chk_dump_rule_entries()
[all …]
/drivers/net/can/
Dflexcan.c633 u32 reg_ctrl, reg_id; in flexcan_read_fifo() local
636 reg_id = flexcan_read(&mb->can_id); in flexcan_read_fifo()
638 cf->can_id = ((reg_id >> 0) & CAN_EFF_MASK) | CAN_EFF_FLAG; in flexcan_read_fifo()
640 cf->can_id = (reg_id >> 18) & CAN_SFF_MASK; in flexcan_read_fifo()
/drivers/net/ethernet/mellanox/mlx5/core/
Dport.c41 u16 reg_id, int arg, int write) in mlx5_core_access_reg() argument
61 MLX5_SET(access_register_in, in, register_id, reg_id); in mlx5_core_access_reg()
/drivers/staging/wilc1000/
Dhost_interface.h250 u8 reg_id; member
/drivers/net/wireless/ralink/rt2x00/
Drt2400pci.c928 u8 reg_id; in rt2400pci_init_bbp() local
953 reg_id = rt2x00_get_field16(eeprom, EEPROM_BBP_REG_ID); in rt2400pci_init_bbp()
955 rt2400pci_bbp_write(rt2x00dev, reg_id, value); in rt2400pci_init_bbp()
Drt2500usb.c926 u8 reg_id; in rt2500usb_init_bbp() local
967 reg_id = rt2x00_get_field16(eeprom, EEPROM_BBP_REG_ID); in rt2500usb_init_bbp()
969 rt2500usb_bbp_write(rt2x00dev, reg_id, value); in rt2500usb_init_bbp()

12