/linux-6.1.9/drivers/gpio/ |
D | gpio-sch.c | 100 static int sch_gpio_direction_in(struct gpio_chip *gc, unsigned int gpio_num) in sch_gpio_direction_in() argument 106 sch_gpio_reg_set(sch, gpio_num, GIO, 1); in sch_gpio_direction_in() 111 static int sch_gpio_get(struct gpio_chip *gc, unsigned int gpio_num) in sch_gpio_get() argument 115 return sch_gpio_reg_get(sch, gpio_num, GLV); in sch_gpio_get() 118 static void sch_gpio_set(struct gpio_chip *gc, unsigned int gpio_num, int val) in sch_gpio_set() argument 124 sch_gpio_reg_set(sch, gpio_num, GLV, val); in sch_gpio_set() 128 static int sch_gpio_direction_out(struct gpio_chip *gc, unsigned int gpio_num, in sch_gpio_direction_out() argument 135 sch_gpio_reg_set(sch, gpio_num, GIO, 0); in sch_gpio_direction_out() 147 sch_gpio_set(gc, gpio_num, val); in sch_gpio_direction_out() 151 static int sch_gpio_get_direction(struct gpio_chip *gc, unsigned int gpio_num) in sch_gpio_get_direction() argument [all …]
|
D | gpio-it87.c | 146 static int it87_gpio_request(struct gpio_chip *chip, unsigned gpio_num) in it87_gpio_request() argument 152 mask = 1 << (gpio_num % 8); in it87_gpio_request() 153 group = (gpio_num / 8); in it87_gpio_request() 179 static int it87_gpio_get(struct gpio_chip *chip, unsigned gpio_num) in it87_gpio_get() argument 185 mask = 1 << (gpio_num % 8); in it87_gpio_get() 186 reg = (gpio_num / 8) + it87_gpio->io_base; in it87_gpio_get() 191 static int it87_gpio_direction_in(struct gpio_chip *chip, unsigned gpio_num) in it87_gpio_direction_in() argument 197 mask = 1 << (gpio_num % 8); in it87_gpio_direction_in() 198 group = (gpio_num / 8); in it87_gpio_direction_in() 217 unsigned gpio_num, int val) in it87_gpio_set() argument [all …]
|
D | gpio-winbond.c | 351 static bool winbond_gpio_get_info(unsigned int *gpio_num, in winbond_gpio_get_info() argument 358 if (*gpio_num < 8) in winbond_gpio_get_info() 361 *gpio_num -= 8; in winbond_gpio_get_info() 372 if (*gpio_num == 0 && !params.pledgpio) in winbond_gpio_get_info() 374 else if (*gpio_num == 1 && !params.beepgpio) in winbond_gpio_get_info() 376 else if ((*gpio_num == 5 || *gpio_num == 6) && !params.i2cgpio) in winbond_gpio_get_info()
|
D | gpio-amd-fch.c | 159 priv->gc.ngpio = priv->pdata->gpio_num; in amd_fch_gpio_probe()
|
/linux-6.1.9/drivers/spi/ |
D | spi-tle62x0.c | 137 int gpio_num = to_gpio_num(attr); in tle62x0_gpio_show() local 141 value = (st->gpio_state >> gpio_num) & 1; in tle62x0_gpio_show() 152 int gpio_num = to_gpio_num(attr); in tle62x0_gpio_store() local 160 dev_dbg(dev, "setting gpio %d to %ld\n", gpio_num, val); in tle62x0_gpio_store() 165 st->gpio_state |= 1 << gpio_num; in tle62x0_gpio_store() 167 st->gpio_state &= ~(1 << gpio_num); in tle62x0_gpio_store()
|
/linux-6.1.9/include/linux/platform_data/gpio/ |
D | gpio-amd-fch.h | 41 int gpio_num; member
|
/linux-6.1.9/arch/arm/mach-davinci/ |
D | common.h | 45 unsigned gpio_num; member
|
/linux-6.1.9/drivers/pinctrl/ |
D | core.c | 1631 int gpio_num; in pinctrl_pins_show() local 1651 gpio_num = -1; in pinctrl_pins_show() 1655 gpio_num = range->base + (pin - range->pin_base); in pinctrl_pins_show() 1659 if (gpio_num >= 0) in pinctrl_pins_show() 1660 chip = gpio_to_chip(gpio_num); in pinctrl_pins_show() 1664 seq_printf(s, "%u:%s ", gpio_num - chip->gpiodev->base, chip->label); in pinctrl_pins_show()
|
/linux-6.1.9/drivers/platform/x86/ |
D | pcengines-apuv2.c | 70 .gpio_num = ARRAY_SIZE(apu2_gpio_regs),
|
/linux-6.1.9/drivers/net/phy/ |
D | dp83640.c | 477 u16 evnt, event_num, gpio_num; in ptp_dp83640_enable() local 500 gpio_num = 1 + ptp_find_pin(clock->ptp_clock, in ptp_dp83640_enable() 502 if (gpio_num < 1) in ptp_dp83640_enable() 504 evnt |= (gpio_num & EVNT_GPIO_MASK) << EVNT_GPIO_SHIFT; in ptp_dp83640_enable()
|
/linux-6.1.9/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_link.c | 417 u8 gpio_num = (pin_cfg - PIN_CFG_GPIO0_P0) & 0x3; in bnx2x_set_cfg_pin() local 419 bnx2x_set_gpio(bp, gpio_num, (u8)val, gpio_port); in bnx2x_set_cfg_pin() 430 u8 gpio_num = (pin_cfg - PIN_CFG_GPIO0_P0) & 0x3; in bnx2x_get_cfg_pin() local 432 *val = bnx2x_get_gpio(bp, gpio_num, gpio_port); in bnx2x_get_cfg_pin() 4331 u8 *gpio_num, u8 *gpio_port) in bnx2x_get_mod_abs_int_cfg() argument 4334 *gpio_num = 0; in bnx2x_get_mod_abs_int_cfg() 4357 *gpio_num = (cfg_pin - PIN_CFG_GPIO0_P0) & 0x3; in bnx2x_get_mod_abs_int_cfg() 4360 *gpio_num = MISC_REGISTERS_GPIO_3; in bnx2x_get_mod_abs_int_cfg() 4371 u8 gpio_num, gpio_port; in bnx2x_is_sfp_module_plugged() local 4375 &gpio_num, &gpio_port) != 0) in bnx2x_is_sfp_module_plugged() [all …]
|
D | bnx2x.h | 2035 int bnx2x_get_gpio(struct bnx2x *bp, int gpio_num, u8 port); 2036 int bnx2x_set_gpio(struct bnx2x *bp, int gpio_num, u32 mode, u8 port); 2038 int bnx2x_set_gpio_int(struct bnx2x *bp, int gpio_num, u32 mode, u8 port);
|
D | bnx2x_main.c | 2080 int bnx2x_get_gpio(struct bnx2x *bp, int gpio_num, u8 port) in bnx2x_get_gpio() argument 2085 int gpio_shift = gpio_num + in bnx2x_get_gpio() 2091 if (gpio_num > MISC_REGISTERS_GPIO_3) { in bnx2x_get_gpio() 2092 BNX2X_ERR("Invalid GPIO %d\n", gpio_num); in bnx2x_get_gpio() 2108 int bnx2x_set_gpio(struct bnx2x *bp, int gpio_num, u32 mode, u8 port) in bnx2x_set_gpio() argument 2113 int gpio_shift = gpio_num + in bnx2x_set_gpio() 2118 if (gpio_num > MISC_REGISTERS_GPIO_3) { in bnx2x_set_gpio() 2119 BNX2X_ERR("Invalid GPIO %d\n", gpio_num); in bnx2x_set_gpio() 2131 gpio_num, gpio_shift); in bnx2x_set_gpio() 2140 gpio_num, gpio_shift); in bnx2x_set_gpio() [all …]
|
/linux-6.1.9/drivers/scsi/mpi3mr/mpi/ |
D | mpi30_ioc.h | 322 u8 gpio_num; member
|
/linux-6.1.9/drivers/net/wireless/ath/ath11k/ |
D | wmi.h | 2959 u32 gpio_num; member 2987 u32 gpio_num; member 2994 u32 gpio_num; member 3000 u32 gpio_num; member
|
/linux-6.1.9/drivers/net/ethernet/intel/ice/ |
D | ice_adminq_cmd.h | 1481 u8 gpio_num; member
|
D | ice_common.c | 5268 cmd->gpio_num = pin_idx; in ice_aq_set_gpio() 5296 cmd->gpio_num = pin_idx; in ice_aq_get_gpio()
|