Home
last modified time | relevance | path

Searched refs:ctl_reg (Results 1 – 25 of 53) sorted by relevance

123

/linux-6.1.9/drivers/i2c/busses/
Di2c-brcmstb.c73 u32 ctl_reg; /* control register */ member
196 dev->bsc_regmap->ctl_reg |= BSC_CTL_REG_INT_EN_MASK; in brcmstb_i2c_enable_disable_irq()
199 dev->bsc_regmap->ctl_reg &= ~BSC_CTL_REG_INT_EN_MASK; in brcmstb_i2c_enable_disable_irq()
202 bsc_writel(dev, dev->bsc_regmap->ctl_reg, ctl_reg); in brcmstb_i2c_enable_disable_irq()
208 u32 status_bsc_ctl = bsc_readl(dev, ctl_reg); in brcmstb_i2c_isr()
329 u32 ctl_reg; in brcmstb_i2c_xfer_bsc_data() local
346 ctl_reg = pi2creg->ctl_reg & ~BSC_CTL_REG_DTF_MASK; in brcmstb_i2c_xfer_bsc_data()
348 pi2creg->ctl_reg = ctl_reg | DTF_WR_MASK; in brcmstb_i2c_xfer_bsc_data()
350 pi2creg->ctl_reg = ctl_reg | DTF_RD_MASK; in brcmstb_i2c_xfer_bsc_data()
541 dev->bsc_regmap->ctl_reg &= ~(BSC_CTL_REG_SCL_SEL_MASK in brcmstb_i2c_set_bus_speed()
[all …]
/linux-6.1.9/drivers/clk/bcm/
Dclk-bcm2835.c491 u32 ctl_reg; member
514 u32 ctl_reg; member
933 return (cprman_read(cprman, data->ctl_reg) & CM_ENABLE) != 0; in bcm2835_clock_is_on()
1048 while (cprman_read(cprman, data->ctl_reg) & CM_BUSY) { in bcm2835_clock_wait_busy()
1065 cprman_write(cprman, data->ctl_reg, in bcm2835_clock_off()
1066 cprman_read(cprman, data->ctl_reg) & ~CM_ENABLE); in bcm2835_clock_off()
1080 cprman_write(cprman, data->ctl_reg, in bcm2835_clock_on()
1081 cprman_read(cprman, data->ctl_reg) | in bcm2835_clock_on()
1119 ctl = cprman_read(cprman, data->ctl_reg) & ~CM_FRAC; in bcm2835_clock_set_rate()
1121 cprman_write(cprman, data->ctl_reg, ctl); in bcm2835_clock_set_rate()
[all …]
/linux-6.1.9/drivers/pinctrl/qcom/
Dpinctrl-lpass-lpi.c119 u32 ctl_reg; in lpi_config_get() local
121 ctl_reg = lpi_gpio_read(state, pin, LPI_GPIO_CFG_REG); in lpi_config_get()
122 is_out = ctl_reg & LPI_GPIO_OE_MASK; in lpi_config_get()
123 pull = FIELD_GET(LPI_GPIO_PULL_MASK, ctl_reg); in lpi_config_get()
301 u32 ctl_reg; in lpi_gpio_dbg_show_one() local
312 ctl_reg = lpi_gpio_read(state, offset, LPI_GPIO_CFG_REG); in lpi_gpio_dbg_show_one()
313 is_out = ctl_reg & LPI_GPIO_OE_MASK; in lpi_gpio_dbg_show_one()
315 func = FIELD_GET(LPI_GPIO_FUNCTION_MASK, ctl_reg); in lpi_gpio_dbg_show_one()
316 drive = FIELD_GET(LPI_GPIO_OUT_STRENGTH_MASK, ctl_reg); in lpi_gpio_dbg_show_one()
317 pull = FIELD_GET(LPI_GPIO_PULL_MASK, ctl_reg); in lpi_gpio_dbg_show_one()
Dpinctrl-msm.h66 u32 ctl_reg; member
Dpinctrl-msm.c638 u32 ctl_reg, io_reg; in msm_gpio_dbg_show_one() local
657 ctl_reg = msm_readl_ctl(pctrl, g); in msm_gpio_dbg_show_one()
660 is_out = !!(ctl_reg & BIT(g->oe_bit)); in msm_gpio_dbg_show_one()
661 func = (ctl_reg >> g->mux_bit) & 7; in msm_gpio_dbg_show_one()
662 drive = (ctl_reg >> g->drv_bit) & 7; in msm_gpio_dbg_show_one()
663 pull = (ctl_reg >> g->pull_bit) & 3; in msm_gpio_dbg_show_one()
665 if (pctrl->soc->egpio_func && ctl_reg & BIT(g->egpio_present)) in msm_gpio_dbg_show_one()
666 egpio_enable = !(ctl_reg & BIT(g->egpio_enable)); in msm_gpio_dbg_show_one()
Dpinctrl-qdf2xxx.c105 groups[gpio].ctl_reg = 0x10000 * gpio; in qdf2xxx_pinctrl_probe()
Dpinctrl-sdx65.c40 .ctl_reg = REG_BASE + REG_SIZE * id, \
66 .ctl_reg = ctl, \
91 .ctl_reg = offset, \
Dpinctrl-ipq8064.c190 .ctl_reg = 0x1000 + 0x10 * id, \
217 .ctl_reg = ctl, \
Dpinctrl-sm6115.c50 .ctl_reg = 0x1000 * id, \
77 .ctl_reg = ctl, \
103 .ctl_reg = offset, \
Dpinctrl-msm8x74.c351 .ctl_reg = 0x1000 + 0x10 * id, \
377 .ctl_reg = ctl, \
408 .ctl_reg = ctl, \
Dpinctrl-qcm2290.c40 .ctl_reg = REG_SIZE * id, \
66 .ctl_reg = ctl, \
91 .ctl_reg = offset, \
Dpinctrl-sc7180.c48 .ctl_reg = 0x1000 * id, \
75 .ctl_reg = ctl, \
101 .ctl_reg = offset, \
Dpinctrl-apq8064.c238 .ctl_reg = 0x1000 + 0x10 * id, \
265 .ctl_reg = ctl, \
Dpinctrl-msm8226.c289 .ctl_reg = 0x1000 + 0x10 * id, \
315 .ctl_reg = ctl, \
Dpinctrl-sm6125.c47 .ctl_reg = 0x1000 * id, \
74 .ctl_reg = ctl, \
100 .ctl_reg = offset, \
Dpinctrl-sm6350.c40 .ctl_reg = REG_SIZE * id, \
66 .ctl_reg = ctl, \
91 .ctl_reg = offset, \
Dpinctrl-sm6375.c41 .ctl_reg = REG_SIZE * id, \
69 .ctl_reg = ctl, \
94 .ctl_reg = offset, \
Dpinctrl-mdm9607.c232 .ctl_reg = 0x1000 * id, \
258 .ctl_reg = ctl, \
/linux-6.1.9/drivers/net/ethernet/aquantia/atlantic/macsec/
Dmacsec_api.c1996 struct mss_egress_ctl_register ctl_reg; in clear_egress_counters() local
1999 memset(&ctl_reg, 0, sizeof(ctl_reg)); in clear_egress_counters()
2002 &ctl_reg.word_0); in clear_egress_counters()
2007 &ctl_reg.word_1); in clear_egress_counters()
2012 ctl_reg.bits_0.clear_counter = 0; in clear_egress_counters()
2014 MSS_EGRESS_CTL_REGISTER_ADDR, ctl_reg.word_0); in clear_egress_counters()
2019 ctl_reg.word_1); in clear_egress_counters()
2023 ctl_reg.bits_0.clear_counter = 1; in clear_egress_counters()
2025 MSS_EGRESS_CTL_REGISTER_ADDR, ctl_reg.word_0); in clear_egress_counters()
2030 ctl_reg.word_1); in clear_egress_counters()
[all …]
/linux-6.1.9/drivers/scsi/csiostor/
Dcsio_mb.c1162 uint32_t ctl_reg = PF_REG(hw->pfn, CIM_PF_MAILBOX_CTRL_A); in csio_mb_debug_cmd_handler() local
1174 MBOWNER_V(CSIO_MBOWNER_FW), ctl_reg); in csio_mb_debug_cmd_handler()
1176 csio_rd_reg32(hw, ctl_reg); in csio_mb_debug_cmd_handler()
1196 uint32_t ctl_reg = PF_REG(hw->pfn, CIM_PF_MAILBOX_CTRL_A); in csio_mb_issue() local
1233 owner = MBOWNER_G(csio_rd_reg32(hw, ctl_reg)); in csio_mb_issue()
1238 owner = MBOWNER_G(csio_rd_reg32(hw, ctl_reg)); in csio_mb_issue()
1281 MBOWNER_V(CSIO_MBOWNER_FW), ctl_reg); in csio_mb_issue()
1284 ctl_reg); in csio_mb_issue()
1287 csio_rd_reg32(hw, ctl_reg); in csio_mb_issue()
1302 ctl = csio_rd_reg32(hw, ctl_reg); in csio_mb_issue()
[all …]
/linux-6.1.9/drivers/gpu/drm/i915/display/
Dintel_dmc.c281 i915_reg_t ctl_reg, i915_reg_t htp_reg) in disable_event_handler() argument
283 intel_de_write(i915, ctl_reg, in disable_event_handler()
293 i915_reg_t ctl_reg, i915_reg_t htp_reg) in disable_flip_queue_event() argument
298 event_ctl = intel_de_read(i915, ctl_reg); in disable_flip_queue_event()
313 disable_event_handler(i915, ctl_reg, htp_reg); in disable_flip_queue_event()
318 i915_reg_t *ctl_reg, i915_reg_t *htp_reg) in get_flip_queue_event_regs() argument
323 *ctl_reg = DMC_EVT_CTL(i915, dmc_id, 3); in get_flip_queue_event_regs()
331 *ctl_reg = DMC_EVT_CTL(i915, dmc_id, 2); in get_flip_queue_event_regs()
352 i915_reg_t ctl_reg; in disable_all_flip_queue_events() local
358 if (!get_flip_queue_event_regs(i915, dmc_id, &ctl_reg, &htp_reg)) in disable_all_flip_queue_events()
[all …]
/linux-6.1.9/sound/pci/echoaudio/
Dechoaudio_3g.c76 __le32 ctl_reg, frq_reg; in write_control_reg() local
84 ctl_reg = cpu_to_le32(ctl); in write_control_reg()
87 if (ctl_reg != chip->comm_page->control_register || in write_control_reg()
90 chip->comm_page->control_register = ctl_reg; in write_control_reg()
/linux-6.1.9/drivers/misc/
Dphantom.c57 u32 ctl_reg; member
116 r.value |= dev->ctl_reg & PHN_CTL_AMP; in phantom_ioctl()
117 dev->ctl_reg = r.value; in phantom_ioctl()
306 dev->ctl_reg ^= PHN_CTL_AMP; in phantom_isr()
307 iowrite32(dev->ctl_reg, dev->iaddr + PHN_CONTROL); in phantom_isr()
/linux-6.1.9/drivers/net/ethernet/
Ddnet.c175 u32 mode_reg, ctl_reg; in dnet_handle_link_change() local
182 ctl_reg = dnet_readw_mac(bp, DNET_INTERNAL_RXTX_CONTROL_REG); in dnet_handle_link_change()
187 ctl_reg &= in dnet_handle_link_change()
190 ctl_reg |= in dnet_handle_link_change()
235 dnet_writew_mac(bp, DNET_INTERNAL_RXTX_CONTROL_REG, ctl_reg); in dnet_handle_link_change()
/linux-6.1.9/drivers/scsi/lpfc/
Dlpfc_debugfs.c4899 void __iomem *ctl_reg; in lpfc_idiag_ctlacc_write() local
4935 ctl_reg = phba->sli4_hba.conf_regs_memmap_p + in lpfc_idiag_ctlacc_write()
4939 ctl_reg = phba->sli4_hba.conf_regs_memmap_p + in lpfc_idiag_ctlacc_write()
4943 ctl_reg = phba->sli4_hba.conf_regs_memmap_p + in lpfc_idiag_ctlacc_write()
4947 ctl_reg = phba->sli4_hba.conf_regs_memmap_p + in lpfc_idiag_ctlacc_write()
4951 ctl_reg = phba->sli4_hba.conf_regs_memmap_p + in lpfc_idiag_ctlacc_write()
4955 ctl_reg = phba->sli4_hba.conf_regs_memmap_p + in lpfc_idiag_ctlacc_write()
4965 reg_val = readl(ctl_reg); in lpfc_idiag_ctlacc_write()
4969 reg_val = readl(ctl_reg); in lpfc_idiag_ctlacc_write()
4972 writel(reg_val, ctl_reg); in lpfc_idiag_ctlacc_write()
[all …]

123