/drivers/regulator/ |
D | s5m8767.c | 169 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 …]
|
D | virtual.c | 290 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()
|
D | max77693-regulator.c | 120 int reg_id) in max77693_get_regmap() argument 126 switch (reg_id) { in max77693_get_regmap()
|
D | max14577-regulator.c | 227 int reg_id) in max14577_get_regmap() argument 231 switch (reg_id) { in max14577_get_regmap()
|
/drivers/gpu/drm/exynos/ |
D | exynos_mixer.c | 197 static inline u32 vp_reg_read(struct mixer_resources *res, u32 reg_id) in vp_reg_read() argument 199 return readl(res->vp_regs + reg_id); in vp_reg_read() 202 static inline void vp_reg_write(struct mixer_resources *res, u32 reg_id, in vp_reg_write() argument 205 writel(val, res->vp_regs + reg_id); in vp_reg_write() 208 static inline void vp_reg_writemask(struct mixer_resources *res, u32 reg_id, in vp_reg_writemask() argument 211 u32 old = vp_reg_read(res, reg_id); in vp_reg_writemask() 214 writel(val, res->vp_regs + reg_id); in vp_reg_writemask() 217 static inline u32 mixer_reg_read(struct mixer_resources *res, u32 reg_id) in mixer_reg_read() argument 219 return readl(res->mixer_regs + reg_id); in mixer_reg_read() 222 static inline void mixer_reg_write(struct mixer_resources *res, u32 reg_id, in mixer_reg_write() argument [all …]
|
D | exynos_hdmi.c | 653 static inline u32 hdmi_map_reg(struct hdmi_context *hdata, u32 reg_id) in hdmi_map_reg() argument 655 if ((reg_id & 0xffff0000) == HDMI_MAPPED_BASE) in hdmi_map_reg() 656 return hdmi_reg_map[reg_id & 0xffff][hdata->drv_data->type]; in hdmi_map_reg() 657 return reg_id; in hdmi_map_reg() 660 static inline u32 hdmi_reg_read(struct hdmi_context *hdata, u32 reg_id) in hdmi_reg_read() argument 662 return readl(hdata->regs + hdmi_map_reg(hdata, reg_id)); in hdmi_reg_read() 666 u32 reg_id, u8 value) in hdmi_reg_writeb() argument 668 writel(value, hdata->regs + hdmi_map_reg(hdata, reg_id)); in hdmi_reg_writeb() 671 static inline void hdmi_reg_writev(struct hdmi_context *hdata, u32 reg_id, in hdmi_reg_writev() argument 674 reg_id = hdmi_map_reg(hdata, reg_id); in hdmi_reg_writev() [all …]
|
/drivers/infiniband/hw/mlx4/ |
D | main.c | 1454 struct mlx4_flow_reg_id reg_id; member 1649 u64 *reg_id) in __mlx4_ib_create_flow() argument 1725 ret = mlx4_cmd_imm(mdev->dev, mailbox->dma, reg_id, size >> 2, 0, in __mlx4_ib_create_flow() 1739 static int __mlx4_ib_destroy_flow(struct mlx4_dev *dev, u64 reg_id) in __mlx4_ib_destroy_flow() argument 1742 err = mlx4_cmd(dev, reg_id, 0, 0, in __mlx4_ib_destroy_flow() 1747 reg_id); in __mlx4_ib_destroy_flow() 1752 u64 *reg_id) in mlx4_ib_tunnel_steer_add() argument 1772 reg_id); in mlx4_ib_tunnel_steer_add() 1888 &mflow->reg_id[i].id); in mlx4_ib_create_flow() 1898 &mflow->reg_id[j].mirror); in mlx4_ib_create_flow() [all …]
|
D | mlx4_ib.h | 168 struct mlx4_flow_reg_id reg_id[MAX_REGS_PER_FLOW]; member 347 u64 reg_id; member
|
/drivers/gpu/drm/sti/ |
D | sti_mixer.c | 62 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/ |
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 | 165 u64 reg_id; /* Flow steering API id */ member 247 if (filter->reg_id) { in mlx4_en_filter_work() 248 rc = mlx4_flow_detach(priv->mdev->dev, filter->reg_id); in mlx4_en_filter_work() 253 rc = mlx4_flow_attach(priv->mdev->dev, &rule, &filter->reg_id); in mlx4_en_filter_work() 319 rc = mlx4_flow_detach(priv->mdev->dev, filter->reg_id); in mlx4_en_filter_free() 530 int qpn, u64 *reg_id) in mlx4_en_tunnel_steer_add() argument 539 MLX4_DOMAIN_NIC, reg_id); in mlx4_en_tunnel_steer_add() 544 en_dbg(DRV, priv, "added vxlan steering rule, mac %pM reg_id %llx\n", addr, *reg_id); in mlx4_en_tunnel_steer_add() 550 unsigned char *mac, int *qpn, u64 *reg_id) in mlx4_en_uc_steer_add() argument 589 err = mlx4_flow_attach(dev, &rule, reg_id); in mlx4_en_uc_steer_add() [all …]
|
D | resource_tracker.c | 92 u64 reg_id; member 4027 enum mlx4_steer_type steer, u64 reg_id) in add_mcg_res() argument 4044 res->reg_id = reg_id; in add_mcg_res() 4055 enum mlx4_steer_type steer, u64 *reg_id) in rem_mcg_res() argument 4065 *reg_id = res->reg_id; in rem_mcg_res() 4077 enum mlx4_steer_type type, u64 *reg_id) in qp_attach() argument 4086 reg_id); in qp_attach() 4104 enum mlx4_steer_type type, u64 reg_id) in qp_detach() argument 4108 return mlx4_flow_detach(dev, reg_id); in qp_detach() 4147 u64 reg_id = 0; in mlx4_QP_ATTACH_wrapper() local [all …]
|
D | mlx4_en.h | 467 u64 reg_id; member 650 u64 reg_id; member
|
D | fw.c | 2871 __be16 reg_id; member 2893 static int mlx4_ACCESS_REG(struct mlx4_dev *dev, u16 reg_id, in mlx4_ACCESS_REG() argument 2916 inbuf->reg_id = cpu_to_be16(reg_id); in mlx4_ACCESS_REG() 2935 reg_id, err); in mlx4_ACCESS_REG() 2979 u16 reg_id = be16_to_cpu(inbuf->reg_id); in mlx4_ACCESS_REG_wrapper() local 2985 if (reg_id == MLX4_REG_ID_PTYS) { in mlx4_ACCESS_REG_wrapper()
|
/drivers/iio/dummy/ |
D | iio_dummy_evgen.h | 6 u32 reg_id; member
|
D | iio_simple_dummy_events.c | 182 st->regs->reg_id, st->regs->reg_data); in iio_simple_dummy_event_handler()
|
D | iio_dummy_evgen.c | 192 iio_evgen->regs[this_attr->address].reg_id = this_attr->address; in iio_evgen_poke()
|
/drivers/clk/rockchip/ |
D | clk-rk3288.c | 847 int i, reg_id; in rk3288_clk_suspend() local 850 reg_id = rk3288_saved_cru_reg_ids[i]; in rk3288_clk_suspend() 853 readl_relaxed(rk3288_cru_base + reg_id); in rk3288_clk_suspend() 882 int i, reg_id; in rk3288_clk_resume() local 885 reg_id = rk3288_saved_cru_reg_ids[i]; in rk3288_clk_resume() 888 rk3288_cru_base + reg_id); in rk3288_clk_resume()
|
/drivers/iio/magnetometer/ |
D | mmc35240.c | 212 unsigned int reg_id; in mmc35240_init() local 215 ret = regmap_read(data->regmap, MMC35240_REG_ID, ®_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/ |
D | qed_debug.c | 4083 u8 reg_id; in qed_idle_chk_dump_failure() local 4103 for (reg_id = 0; reg_id < rule->num_cond_regs; reg_id++) { in qed_idle_chk_dump_failure() 4104 const struct dbg_idle_chk_cond_reg *reg = &cond_regs[reg_id]; in qed_idle_chk_dump_failure() 4125 DBG_IDLE_CHK_RESULT_REG_HDR_REG_ID, reg_id); in qed_idle_chk_dump_failure() 4133 for (reg_id = 0; reg_id < rule->num_info_regs; reg_id++) { in qed_idle_chk_dump_failure() 4134 const struct dbg_idle_chk_info_reg *reg = &info_regs[reg_id]; in qed_idle_chk_dump_failure() 4185 rule->num_cond_regs + reg_id); in qed_idle_chk_dump_failure() 4211 u8 reg_id; in qed_idle_chk_dump_rule_entries() local 4235 for (reg_id = 0; reg_id < rule->num_cond_regs && check_rule; in qed_idle_chk_dump_rule_entries() 4236 reg_id++) { in qed_idle_chk_dump_rule_entries() [all …]
|
/drivers/net/can/ |
D | flexcan.c | 657 u32 reg_ctrl, reg_id, reg_iflag1; in flexcan_mailbox_read() local 688 reg_id = flexcan_read(&mb->can_id); in flexcan_mailbox_read() 690 cf->can_id = ((reg_id >> 0) & CAN_EFF_MASK) | CAN_EFF_FLAG; in flexcan_mailbox_read() 692 cf->can_id = (reg_id >> 18) & CAN_SFF_MASK; in flexcan_mailbox_read()
|
/drivers/power/supply/ |
D | bq27xxx_battery.c | 1022 enum bq27xxx_dm_reg_id reg_id, argument 1025 struct bq27xxx_dm_reg *reg = &di->dm_regs[reg_id]; 1026 const char *str = bq27xxx_dm_reg_name[reg_id];
|
/drivers/staging/wilc1000/ |
D | host_interface.h | 253 u8 reg_id; member
|
/drivers/net/wireless/ralink/rt2x00/ |
D | rt2400pci.c | 931 u8 reg_id; in rt2400pci_init_bbp() local 956 reg_id = rt2x00_get_field16(eeprom, EEPROM_BBP_REG_ID); in rt2400pci_init_bbp() 958 rt2400pci_bbp_write(rt2x00dev, reg_id, value); in rt2400pci_init_bbp()
|
D | rt2500usb.c | 914 u8 reg_id; in rt2500usb_init_bbp() local 955 reg_id = rt2x00_get_field16(eeprom, EEPROM_BBP_REG_ID); in rt2500usb_init_bbp() 957 rt2500usb_bbp_write(rt2x00dev, reg_id, value); in rt2500usb_init_bbp()
|