Home
last modified time | relevance | path

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

123

/linux-6.6.21/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.6.21/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.6.21/drivers/pinctrl/qcom/
Dpinctrl-lpass-lpi.c153 u32 ctl_reg; in lpi_config_get() local
155 ctl_reg = lpi_gpio_read(state, pin, LPI_GPIO_CFG_REG); in lpi_config_get()
156 is_out = ctl_reg & LPI_GPIO_OE_MASK; in lpi_config_get()
157 pull = FIELD_GET(LPI_GPIO_PULL_MASK, ctl_reg); in lpi_config_get()
341 u32 ctl_reg; in lpi_gpio_dbg_show_one() local
352 ctl_reg = lpi_gpio_read(state, offset, LPI_GPIO_CFG_REG); in lpi_gpio_dbg_show_one()
353 is_out = ctl_reg & LPI_GPIO_OE_MASK; in lpi_gpio_dbg_show_one()
355 func = FIELD_GET(LPI_GPIO_FUNCTION_MASK, ctl_reg); in lpi_gpio_dbg_show_one()
356 drive = FIELD_GET(LPI_GPIO_OUT_STRENGTH_MASK, ctl_reg); in lpi_gpio_dbg_show_one()
357 pull = FIELD_GET(LPI_GPIO_PULL_MASK, ctl_reg); in lpi_gpio_dbg_show_one()
Dpinctrl-msm.c672 u32 ctl_reg, io_reg; in msm_gpio_dbg_show_one() local
691 ctl_reg = msm_readl_ctl(pctrl, g); in msm_gpio_dbg_show_one()
694 is_out = !!(ctl_reg & BIT(g->oe_bit)); in msm_gpio_dbg_show_one()
695 func = (ctl_reg >> g->mux_bit) & 7; in msm_gpio_dbg_show_one()
696 drive = (ctl_reg >> g->drv_bit) & 7; in msm_gpio_dbg_show_one()
697 pull = (ctl_reg >> g->pull_bit) & 3; in msm_gpio_dbg_show_one()
699 if (pctrl->soc->egpio_func && ctl_reg & BIT(g->egpio_present)) in msm_gpio_dbg_show_one()
700 egpio_enable = !(ctl_reg & BIT(g->egpio_enable)); in msm_gpio_dbg_show_one()
Dpinctrl-msm.h78 u32 ctl_reg; member
Dpinctrl-qdf2xxx.c105 groups[gpio].ctl_reg = 0x10000 * gpio; in qdf2xxx_pinctrl_probe()
Dpinctrl-sdx65.c32 .ctl_reg = REG_BASE + REG_SIZE * id, \
58 .ctl_reg = ctl, \
83 .ctl_reg = offset, \
Dpinctrl-ipq8064.c182 .ctl_reg = 0x1000 + 0x10 * id, \
209 .ctl_reg = ctl, \
Dpinctrl-sdm670.c36 .ctl_reg = base + REG_SIZE * id, \
66 .ctl_reg = 0, \
91 .ctl_reg = ctl, \
116 .ctl_reg = offset, \
Dpinctrl-sm6115.c42 .ctl_reg = 0x1000 * id, \
69 .ctl_reg = ctl, \
95 .ctl_reg = offset, \
Dpinctrl-msm8x74.c343 .ctl_reg = 0x1000 + 0x10 * id, \
369 .ctl_reg = ctl, \
400 .ctl_reg = ctl, \
Dpinctrl-sc7180.c40 .ctl_reg = 0x1000 * id, \
67 .ctl_reg = ctl, \
93 .ctl_reg = offset, \
Dpinctrl-sm7150.c46 .ctl_reg = REG_SIZE * id, \
73 .ctl_reg = ctl, \
99 .ctl_reg = offset, \
Dpinctrl-qcm2290.c32 .ctl_reg = REG_SIZE * id, \
58 .ctl_reg = ctl, \
83 .ctl_reg = offset, \
Dpinctrl-apq8064.c230 .ctl_reg = 0x1000 + 0x10 * id, \
257 .ctl_reg = ctl, \
Dpinctrl-msm8226.c281 .ctl_reg = 0x1000 + 0x10 * id, \
307 .ctl_reg = ctl, \
Dpinctrl-qdu1000.c34 .ctl_reg = REG_BASE + REG_SIZE * id, \
60 .ctl_reg = REG_BASE + ctl, \
85 .ctl_reg = offset, \
Dpinctrl-sm6125.c39 .ctl_reg = 0x1000 * id, \
66 .ctl_reg = ctl, \
92 .ctl_reg = offset, \
Dpinctrl-mdm9607.c224 .ctl_reg = 0x1000 * id, \
250 .ctl_reg = ctl, \
/linux-6.6.21/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.6.21/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.6.21/drivers/gpu/drm/i915/display/
Dintel_dmc.c328 i915_reg_t ctl_reg, i915_reg_t htp_reg) in disable_event_handler() argument
330 intel_de_write(i915, ctl_reg, in disable_event_handler()
340 i915_reg_t ctl_reg, i915_reg_t htp_reg) in disable_flip_queue_event() argument
345 event_ctl = intel_de_read(i915, ctl_reg); in disable_flip_queue_event()
360 disable_event_handler(i915, ctl_reg, htp_reg); in disable_flip_queue_event()
365 i915_reg_t *ctl_reg, i915_reg_t *htp_reg) in get_flip_queue_event_regs() argument
369 *ctl_reg = DMC_EVT_CTL(i915, dmc_id, 3); in get_flip_queue_event_regs()
376 *ctl_reg = DMC_EVT_CTL(i915, dmc_id, 2); in get_flip_queue_event_regs()
396 i915_reg_t ctl_reg; in disable_all_flip_queue_events() local
402 if (!get_flip_queue_event_regs(i915, dmc_id, &ctl_reg, &htp_reg)) in disable_all_flip_queue_events()
[all …]
/linux-6.6.21/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.6.21/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.6.21/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()

123