/kernel/linux/linux-5.10/arch/powerpc/sysdev/ |
D | cpm_common.c | 122 u32 pin_mask; in cpm2_gpio32_get() local 124 pin_mask = 1 << (31 - gpio); in cpm2_gpio32_get() 126 return !!(in_be32(&iop->dat) & pin_mask); in cpm2_gpio32_get() 129 static void __cpm2_gpio32_set(struct of_mm_gpio_chip *mm_gc, u32 pin_mask, in __cpm2_gpio32_set() argument 136 cpm2_gc->cpdata |= pin_mask; in __cpm2_gpio32_set() 138 cpm2_gc->cpdata &= ~pin_mask; in __cpm2_gpio32_set() 148 u32 pin_mask = 1 << (31 - gpio); in cpm2_gpio32_set() local 152 __cpm2_gpio32_set(mm_gc, pin_mask, value); in cpm2_gpio32_set() 163 u32 pin_mask = 1 << (31 - gpio); in cpm2_gpio32_dir_out() local 167 setbits32(&iop->dir, pin_mask); in cpm2_gpio32_dir_out() [all …]
|
/kernel/linux/linux-5.10/arch/powerpc/platforms/8xx/ |
D | cpm1.c | 543 u16 pin_mask; in cpm1_gpio16_get() local 545 pin_mask = 1 << (15 - gpio); in cpm1_gpio16_get() 547 return !!(in_be16(&iop->dat) & pin_mask); in cpm1_gpio16_get() 550 static void __cpm1_gpio16_set(struct of_mm_gpio_chip *mm_gc, u16 pin_mask, in __cpm1_gpio16_set() argument 557 cpm1_gc->cpdata |= pin_mask; in __cpm1_gpio16_set() 559 cpm1_gc->cpdata &= ~pin_mask; in __cpm1_gpio16_set() 569 u16 pin_mask = 1 << (15 - gpio); in cpm1_gpio16_set() local 573 __cpm1_gpio16_set(mm_gc, pin_mask, value); in cpm1_gpio16_set() 592 u16 pin_mask = 1 << (15 - gpio); in cpm1_gpio16_dir_out() local 596 setbits16(&iop->dir, pin_mask); in cpm1_gpio16_dir_out() [all …]
|
/kernel/linux/linux-5.10/drivers/gpio/ |
D | gpio-mxs.c | 73 u32 pin_mask = 1 << d->hwirq; in mxs_gpio_set_irq_type() local 84 port->both_edges &= ~pin_mask; in mxs_gpio_set_irq_type() 87 val = readl(port->base + PINCTRL_DIN(port)) & pin_mask; in mxs_gpio_set_irq_type() 92 port->both_edges |= pin_mask; in mxs_gpio_set_irq_type() 113 writel(pin_mask, pin_addr + MXS_SET); in mxs_gpio_set_irq_type() 114 writel(pin_mask, port->base + PINCTRL_IRQEN(port) + MXS_SET); in mxs_gpio_set_irq_type() 116 writel(pin_mask, pin_addr + MXS_CLR); in mxs_gpio_set_irq_type() 117 writel(pin_mask, port->base + PINCTRL_PIN2IRQ(port) + MXS_SET); in mxs_gpio_set_irq_type() 123 writel(pin_mask, pin_addr + MXS_SET); in mxs_gpio_set_irq_type() 125 writel(pin_mask, pin_addr + MXS_CLR); in mxs_gpio_set_irq_type() [all …]
|
D | gpio-tegra.c | 209 u32 pin_mask = BIT(GPIO_BIT(offset)); in tegra_gpio_get_direction() local 213 if (!(cnf & pin_mask)) in tegra_gpio_get_direction() 218 if (oe & pin_mask) in tegra_gpio_get_direction()
|
/kernel/linux/linux-5.10/drivers/soc/fsl/qe/ |
D | qe_io.c | 120 u32 pin_mask, tmp_val; in par_io_data_set() local 127 pin_mask = (u32) (1 << (QE_PIO_PINS - 1 - pin)); in par_io_data_set() 132 qe_iowrite32be(~pin_mask & tmp_val, &par_io[port].cpdata); in par_io_data_set() 134 qe_iowrite32be(pin_mask | tmp_val, &par_io[port].cpdata); in par_io_data_set()
|
D | gpio.c | 57 u32 pin_mask = 1 << (QE_PIO_PINS - 1 - gpio); in qe_gpio_get() local 59 return !!(qe_ioread32be(®s->cpdata) & pin_mask); in qe_gpio_get() 68 u32 pin_mask = 1 << (QE_PIO_PINS - 1 - gpio); in qe_gpio_set() local 73 qe_gc->cpdata |= pin_mask; in qe_gpio_set() 75 qe_gc->cpdata &= ~pin_mask; in qe_gpio_set()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/ |
D | i915_irq.c | 1170 u32 *pin_mask, u32 *long_mask, in intel_get_hpd_pins() argument 1177 BUILD_BUG_ON(BITS_PER_TYPE(*pin_mask) < HPD_NUM_PINS); in intel_get_hpd_pins() 1183 *pin_mask |= BIT(pin); in intel_get_hpd_pins() 1191 hotplug_trigger, dig_hotplug_reg, *pin_mask, *long_mask); in intel_get_hpd_pins() 1498 u32 pin_mask = 0, long_mask = 0; in i9xx_hpd_irq_handler() local 1508 intel_get_hpd_pins(dev_priv, &pin_mask, &long_mask, in i9xx_hpd_irq_handler() 1513 intel_hpd_irq_handler(dev_priv, pin_mask, long_mask); in i9xx_hpd_irq_handler() 1687 u32 dig_hotplug_reg, pin_mask = 0, long_mask = 0; in ibx_hpd_irq_handler() local 1708 intel_get_hpd_pins(dev_priv, &pin_mask, &long_mask, in ibx_hpd_irq_handler() 1713 intel_hpd_irq_handler(dev_priv, pin_mask, long_mask); in ibx_hpd_irq_handler() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/dispnv04/ |
D | tvnv17.c | 130 get_tv_detect_quirks(struct drm_device *dev, uint32_t *pin_mask) in get_tv_detect_quirks() argument 136 *pin_mask = device->quirk->tv_pin_mask; in get_tv_detect_quirks() 151 bool reliable = get_tv_detect_quirks(dev, &tv_enc->pin_mask); in nv17_tv_detect() 159 tv_enc->pin_mask = in nv17_tv_detect() 162 tv_enc->pin_mask = in nv17_tv_detect() 166 switch (tv_enc->pin_mask) { in nv17_tv_detect() 804 tv_enc->pin_mask = 0; in nv17_tv_create()
|
D | tvnv17.h | 83 uint32_t pin_mask; member
|
D | tvmodesnv17.c | 487 if (tv_enc->pin_mask & 0x4) in nv17_tv_update_properties() 489 else if (tv_enc->pin_mask & 0x2) in nv17_tv_update_properties()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/ |
D | intel_hotplug.h | 21 u32 pin_mask, u32 long_mask);
|
D | intel_hotplug.c | 464 u32 pin_mask, u32 long_mask) in intel_hpd_irq_handler() argument 473 if (!pin_mask) in intel_hpd_irq_handler() 489 if (!(BIT(pin) & pin_mask)) in intel_hpd_irq_handler() 516 if (!(BIT(pin) & pin_mask)) in intel_hpd_irq_handler()
|
D | intel_tc.c | 102 u32 pin_mask; in intel_tc_port_get_pin_assignment_mask() local 104 pin_mask = intel_uncore_read(uncore, in intel_tc_port_get_pin_assignment_mask() 107 drm_WARN_ON(&i915->drm, pin_mask == 0xffffffff); in intel_tc_port_get_pin_assignment_mask() 110 return (pin_mask & DP_PIN_ASSIGNMENT_MASK(dig_port->tc_phy_fia_idx)) >> in intel_tc_port_get_pin_assignment_mask()
|
/kernel/linux/linux-5.10/drivers/pinctrl/ |
D | pinctrl-st.c | 1099 u32 pin_mask = pc->rt_pin_mask; in st_pctl_dt_setup_retime_dedicated() local 1102 if (BIT(j) & pin_mask) { in st_pctl_dt_setup_retime_dedicated()
|