/drivers/media/platform/s5p-tv/ |
D | mixer_reg.c | 22 static inline u32 vp_read(struct mxr_device *mdev, u32 reg_id) in vp_read() argument 24 return readl(mdev->res.vp_regs + reg_id); in vp_read() 27 static inline void vp_write(struct mxr_device *mdev, u32 reg_id, u32 val) in vp_write() argument 29 writel(val, mdev->res.vp_regs + reg_id); in vp_write() 32 static inline void vp_write_mask(struct mxr_device *mdev, u32 reg_id, in vp_write_mask() argument 35 u32 old = vp_read(mdev, reg_id); in vp_write_mask() 38 writel(val, mdev->res.vp_regs + reg_id); in vp_write_mask() 41 static inline u32 mxr_read(struct mxr_device *mdev, u32 reg_id) in mxr_read() argument 43 return readl(mdev->res.mxr_regs + reg_id); in mxr_read() 46 static inline void mxr_write(struct mxr_device *mdev, u32 reg_id, u32 val) in mxr_write() argument [all …]
|
D | sdo_drv.c | 76 void sdo_write_mask(struct sdo_device *sdev, u32 reg_id, u32 value, u32 mask) in sdo_write_mask() argument 78 u32 old = readl(sdev->regs + reg_id); in sdo_write_mask() 80 writel(value, sdev->regs + reg_id); in sdo_write_mask() 84 void sdo_write(struct sdo_device *sdev, u32 reg_id, u32 value) in sdo_write() argument 86 writel(value, sdev->regs + reg_id); in sdo_write() 90 u32 sdo_read(struct sdo_device *sdev, u32 reg_id) in sdo_read() argument 92 return readl(sdev->regs + reg_id); in sdo_read() 106 #define DBGREG(reg_id) \ in sdo_reg_debug() argument 107 dev_info(sdev->dev, #reg_id " = %08x\n", \ in sdo_reg_debug() 108 sdo_read(sdev, reg_id)) in sdo_reg_debug()
|
D | hdmi_drv.c | 117 void hdmi_write(struct hdmi_device *hdev, u32 reg_id, u32 value) in hdmi_write() argument 119 writel(value, hdev->regs + reg_id); in hdmi_write() 123 void hdmi_write_mask(struct hdmi_device *hdev, u32 reg_id, u32 value, u32 mask) in hdmi_write_mask() argument 125 u32 old = readl(hdev->regs + reg_id); in hdmi_write_mask() 127 writel(value, hdev->regs + reg_id); in hdmi_write_mask() 131 void hdmi_writeb(struct hdmi_device *hdev, u32 reg_id, u8 value) in hdmi_writeb() argument 133 writeb(value, hdev->regs + reg_id); in hdmi_writeb() 137 void hdmi_writebn(struct hdmi_device *hdev, u32 reg_id, int n, u32 value) in hdmi_writebn() argument 141 writeb(value >> 24, hdev->regs + reg_id + 12); in hdmi_writebn() 143 writeb(value >> 16, hdev->regs + reg_id + 8); in hdmi_writebn() [all …]
|
/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 | max14577.c | 289 int reg_id) in max14577_get_regmap() argument 293 switch (reg_id) { in max14577_get_regmap()
|
/drivers/gpu/drm/exynos/ |
D | exynos_mixer.c | 142 static inline u32 vp_reg_read(struct mixer_resources *res, u32 reg_id) in vp_reg_read() argument 144 return readl(res->vp_regs + reg_id); in vp_reg_read() 147 static inline void vp_reg_write(struct mixer_resources *res, u32 reg_id, in vp_reg_write() argument 150 writel(val, res->vp_regs + reg_id); in vp_reg_write() 153 static inline void vp_reg_writemask(struct mixer_resources *res, u32 reg_id, in vp_reg_writemask() argument 156 u32 old = vp_reg_read(res, reg_id); in vp_reg_writemask() 159 writel(val, res->vp_regs + reg_id); in vp_reg_writemask() 162 static inline u32 mixer_reg_read(struct mixer_resources *res, u32 reg_id) in mixer_reg_read() argument 164 return readl(res->mixer_regs + reg_id); in mixer_reg_read() 167 static inline void mixer_reg_write(struct mixer_resources *res, u32 reg_id, in mixer_reg_write() argument [all …]
|
D | exynos_hdmi.c | 610 static inline u32 hdmi_reg_read(struct hdmi_context *hdata, u32 reg_id) in hdmi_reg_read() argument 612 return readl(hdata->regs + reg_id); in hdmi_reg_read() 616 u32 reg_id, u8 value) in hdmi_reg_writeb() argument 618 writeb(value, hdata->regs + reg_id); in hdmi_reg_writeb() 622 u32 reg_id, u32 value, u32 mask) in hdmi_reg_writemask() argument 624 u32 old = readl(hdata->regs + reg_id); in hdmi_reg_writemask() 626 writel(value, hdata->regs + reg_id); in hdmi_reg_writemask() 673 #define DUMPREG(reg_id) \ in hdmi_v13_regs_dump() argument 674 DRM_DEBUG_KMS("%s:" #reg_id " = %08x\n", prefix, \ in hdmi_v13_regs_dump() 675 readl(hdata->regs + reg_id)) in hdmi_v13_regs_dump() [all …]
|
/drivers/gpu/drm/sti/ |
D | sti_mixer.c | 61 static inline u32 sti_mixer_reg_read(struct sti_mixer *mixer, u32 reg_id) in sti_mixer_reg_read() argument 63 return readl(mixer->regs + reg_id); in sti_mixer_reg_read() 67 u32 reg_id, u32 val) in sti_mixer_reg_write() argument 69 writel(val, mixer->regs + reg_id); in sti_mixer_reg_write()
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | en_netdev.c | 116 u64 reg_id; /* Flow steering API id */ member 195 if (filter->reg_id) { in mlx4_en_filter_work() 196 rc = mlx4_flow_detach(priv->mdev->dev, filter->reg_id); in mlx4_en_filter_work() 201 rc = mlx4_flow_attach(priv->mdev->dev, &rule, &filter->reg_id); in mlx4_en_filter_work() 267 rc = mlx4_flow_detach(priv->mdev->dev, filter->reg_id); in mlx4_en_filter_free() 474 int qpn, u64 *reg_id) in mlx4_en_tunnel_steer_add() argument 482 MLX4_DOMAIN_NIC, reg_id); in mlx4_en_tunnel_steer_add() 487 en_dbg(DRV, priv, "added vxlan steering rule, mac %pM reg_id %llx\n", addr, *reg_id); in mlx4_en_tunnel_steer_add() 493 unsigned char *mac, int *qpn, u64 *reg_id) in mlx4_en_uc_steer_add() argument 532 err = mlx4_flow_attach(dev, &rule, reg_id); in mlx4_en_uc_steer_add() [all …]
|
D | mcg.c | 57 u64 *reg_id) in mlx4_QP_FLOW_STEERING_ATTACH() argument 67 *reg_id = imm; in mlx4_QP_FLOW_STEERING_ATTACH() 977 struct mlx4_net_trans_rule *rule, u64 *reg_id) in mlx4_flow_attach() argument 1001 ret = mlx4_QP_FLOW_STEERING_ATTACH(dev, mailbox, size >> 2, reg_id); in mlx4_flow_attach() 1015 int mlx4_flow_detach(struct mlx4_dev *dev, u64 reg_id) in mlx4_flow_detach() argument 1019 err = mlx4_QP_FLOW_STEERING_DETACH(dev, reg_id); in mlx4_flow_detach() 1022 reg_id); in mlx4_flow_detach() 1028 int port, int qpn, u16 prio, u64 *reg_id) in mlx4_tunnel_steer_add() argument 1060 err = mlx4_flow_attach(dev, &rule, reg_id); in mlx4_tunnel_steer_add() 1341 enum mlx4_protocol prot, u64 *reg_id) in mlx4_trans_to_dmfs_attach() argument [all …]
|
D | resource_tracker.c | 88 u64 reg_id; member 3735 enum mlx4_steer_type steer, u64 reg_id) in add_mcg_res() argument 3752 res->reg_id = reg_id; in add_mcg_res() 3763 enum mlx4_steer_type steer, u64 *reg_id) in rem_mcg_res() argument 3773 *reg_id = res->reg_id; in rem_mcg_res() 3785 enum mlx4_steer_type type, u64 *reg_id) in qp_attach() argument 3794 reg_id); in qp_attach() 3812 enum mlx4_steer_type type, u64 reg_id) in qp_detach() argument 3816 return mlx4_flow_detach(dev, reg_id); in qp_detach() 3855 u64 reg_id = 0; in mlx4_QP_ATTACH_wrapper() local [all …]
|
D | mlx4_en.h | 471 u64 reg_id; member 624 u64 reg_id; member
|
D | en_ethtool.c | 931 u64 reg_id; in mlx4_en_flow_replace() local 980 err = mlx4_flow_attach(priv->mdev->dev, &rule, ®_id); in mlx4_en_flow_replace() 986 loc_rule->id = reg_id; in mlx4_en_flow_replace()
|
D | mlx4.h | 1236 enum mlx4_protocol prot, u64 *reg_id);
|
/drivers/infiniband/hw/mlx4/ |
D | main.c | 847 u64 reg_id; member 1017 u64 *reg_id) in __mlx4_ib_create_flow() argument 1083 ret = mlx4_cmd_imm(mdev->dev, mailbox->dma, reg_id, size >> 2, 0, in __mlx4_ib_create_flow() 1097 static int __mlx4_ib_destroy_flow(struct mlx4_dev *dev, u64 reg_id) in __mlx4_ib_destroy_flow() argument 1100 err = mlx4_cmd(dev, reg_id, 0, 0, in __mlx4_ib_destroy_flow() 1105 reg_id); in __mlx4_ib_destroy_flow() 1110 u64 *reg_id) in mlx4_ib_tunnel_steer_add() argument 1129 reg_id); in mlx4_ib_tunnel_steer_add() 1174 &mflow->reg_id[i]); in mlx4_ib_create_flow() 1181 err = mlx4_ib_tunnel_steer_add(qp, flow_attr, &mflow->reg_id[i]); in mlx4_ib_create_flow() [all …]
|
D | mlx4_ib.h | 140 u64 reg_id[2]; member 295 u64 reg_id; member
|
/drivers/net/can/ |
D | flexcan.c | 697 u32 reg_ctrl, reg_id; in flexcan_read_fifo() local 700 reg_id = flexcan_read(&mb->can_id); in flexcan_read_fifo() 702 cf->can_id = ((reg_id >> 0) & CAN_EFF_MASK) | CAN_EFF_FLAG; in flexcan_read_fifo() 704 cf->can_id = (reg_id >> 18) & CAN_SFF_MASK; in flexcan_read_fifo()
|
/drivers/net/wireless/rt2x00/ |
D | rt2500usb.c | 925 u8 reg_id; in rt2500usb_init_bbp() local 966 reg_id = rt2x00_get_field16(eeprom, EEPROM_BBP_REG_ID); in rt2500usb_init_bbp() 968 rt2500usb_bbp_write(rt2x00dev, reg_id, value); in rt2500usb_init_bbp()
|
D | rt2400pci.c | 928 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()
|
D | rt2500pci.c | 1066 u8 reg_id; in rt2500pci_init_bbp() local 1107 reg_id = rt2x00_get_field16(eeprom, EEPROM_BBP_REG_ID); in rt2500pci_init_bbp() 1109 rt2500pci_bbp_write(rt2x00dev, reg_id, value); in rt2500pci_init_bbp()
|
D | rt73usb.c | 1313 u8 reg_id; in rt73usb_init_bbp() local 1349 reg_id = rt2x00_get_field16(eeprom, EEPROM_BBP_REG_ID); in rt73usb_init_bbp() 1351 rt73usb_bbp_write(rt2x00dev, reg_id, value); in rt73usb_init_bbp()
|
D | rt61pci.c | 1666 u8 reg_id; in rt61pci_init_bbp() local 1701 reg_id = rt2x00_get_field16(eeprom, EEPROM_BBP_REG_ID); in rt61pci_init_bbp() 1703 rt61pci_bbp_write(rt2x00dev, reg_id, value); in rt61pci_init_bbp()
|
/drivers/scsi/lpfc/ |
D | lpfc_bsg.c | 57 uint32_t reg_id; member 852 evt->reg_id = ev_reg_id; in lpfc_bsg_event_new() 1218 if (evt->reg_id == event_req->ev_reg_id) { in lpfc_bsg_hba_set_event() 1303 if (evt->reg_id == event_req->ev_reg_id) { in lpfc_bsg_hba_get_event()
|
/drivers/net/wireless/ath/ath5k/ |
D | phy.c | 194 u32 val, u8 reg_id, bool set) in ath5k_hw_rfb_op() argument 208 if (rf_regs[i].index == reg_id) { in ath5k_hw_rfb_op()
|