Home
last modified time | relevance | path

Searched refs:gpio_num (Results 1 – 25 of 26) sorted by relevance

12

/linux/drivers/gpio/
H A Dgpio-sch.c102 static int sch_gpio_direction_in(struct gpio_chip *gc, unsigned int gpio_num) in sch_gpio_direction_in() argument
108 sch_gpio_reg_set(sch, gpio_num, GIO, 1); in sch_gpio_direction_in()
113 static int sch_gpio_get(struct gpio_chip *gc, unsigned int gpio_num) in sch_gpio_get() argument
117 return sch_gpio_reg_get(sch, gpio_num, GLV); in sch_gpio_get()
120 static void sch_gpio_set(struct gpio_chip *gc, unsigned int gpio_num, int val) in sch_gpio_set() argument
126 sch_gpio_reg_set(sch, gpio_num, GLV, val); in sch_gpio_set()
130 static int sch_gpio_direction_out(struct gpio_chip *gc, unsigned int gpio_num, in sch_gpio_direction_out() argument
137 sch_gpio_reg_set(sch, gpio_num, GIO, 0); in sch_gpio_direction_out()
149 sch_gpio_set(gc, gpio_num, val); in sch_gpio_direction_out()
153 static int sch_gpio_get_direction(struct gpio_chip *gc, unsigned int gpio_num) in sch_gpio_get_direction() argument
[all …]
H A Dgpio-it87.c146 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 …]
H A Dgpio-vf610.c236 irq_hw_number_t gpio_num = irqd_to_hwirq(d); in vf610_gpio_irq_mask() local
237 void __iomem *pcr_base = port->base + PORT_PCR(gpio_num); in vf610_gpio_irq_mask()
240 gpiochip_disable_irq(gc, gpio_num); in vf610_gpio_irq_mask()
247 irq_hw_number_t gpio_num = irqd_to_hwirq(d); in vf610_gpio_irq_unmask() local
248 void __iomem *pcr_base = port->base + PORT_PCR(gpio_num); in vf610_gpio_irq_unmask()
250 gpiochip_enable_irq(gc, gpio_num); in vf610_gpio_irq_unmask()
251 vf610_gpio_writel(port->irqc[gpio_num] << PORT_PCR_IRQC_OFFSET, in vf610_gpio_irq_unmask()
H A Dgpio-winbond.c351 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()
H A Dgpio-amd-fch.c159 priv->gc.ngpio = priv->pdata->gpio_num; in amd_fch_gpio_probe()
/linux/drivers/spi/
H A Dspi-tle62x0.c137 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/drivers/soc/fsl/qe/
H A Dgpio.c162 int gpio_num; in qe_pin_request() local
183 gpio_num = desc_to_gpio(gpiod); in qe_pin_request()
198 qe_pin->num = gpio_num - gc->base; in qe_pin_request()
/linux/include/linux/platform_data/gpio/
H A Dgpio-amd-fch.h41 int gpio_num; member
/linux/drivers/usb/misc/
H A Dusb-ljca.c571 int ret, gpio_num; in ljca_enumerate_gpio() local
584 gpio_num = desc->pins_per_bank * desc->bank_num; in ljca_enumerate_gpio()
585 if (gpio_num > LJCA_MAX_GPIO_NUM) in ljca_enumerate_gpio()
592 gpio_info->num = gpio_num; in ljca_enumerate_gpio()
596 bitmap_from_arr32(gpio_info->valid_pin_map, valid_pin, gpio_num); in ljca_enumerate_gpio()
/linux/arch/arm/mach-davinci/
H A Dcommon.h45 unsigned gpio_num; member
/linux/drivers/pinctrl/
H A Dcore.c1656 int gpio_num; in pinctrl_pins_show() local
1677 gpio_num = -1; in pinctrl_pins_show()
1682 gpio_num = range->base + i; in pinctrl_pins_show()
1688 gpio_num = in pinctrl_pins_show()
1691 if (gpio_num != -1) in pinctrl_pins_show()
1694 if (gpio_num >= 0) in pinctrl_pins_show()
1700 gdev = gpiod_to_gpio_device(gpio_to_desc(gpio_num)); in pinctrl_pins_show()
1703 gpio_num - gpio_device_get_base(gdev), in pinctrl_pins_show()
/linux/sound/pci/hda/
H A Dcirrus_scodec_test.c148 int gpio_num) in cirrus_scodec_test_set_gpio_ref_arg() argument
151 SOFTWARE_NODE_REFERENCE(&cirrus_scodec_test_gpio_swnode, gpio_num, 0); in cirrus_scodec_test_set_gpio_ref_arg()
/linux/drivers/input/misc/
H A Dcs40l50-vibra.c195 u16 gpio_edge, gpio_num, button = work_data->effect->trigger.button; in cs40l50_effect_gpio_mapping_set() local
199 gpio_num = FIELD_GET(CS40L50_GPIO_NUM_MASK, button); in cs40l50_effect_gpio_mapping_set()
201 effect->gpio_reg = vib->dsp.gpio_base_reg + (gpio_num * 8) - gpio_edge; in cs40l50_effect_gpio_mapping_set()
/linux/drivers/platform/x86/
H A Dpcengines-apuv2.c70 .gpio_num = ARRAY_SIZE(apu2_gpio_regs),
/linux/drivers/net/wireless/ath/ath10k/
H A Dwmi-ops.h229 struct sk_buff *(*gen_gpio_config)(struct ath10k *ar, u32 gpio_num,
232 struct sk_buff *(*gen_gpio_output)(struct ath10k *ar, u32 gpio_num, u32 set);
1128 static inline int ath10k_wmi_gpio_config(struct ath10k *ar, u32 gpio_num, in ath10k_wmi_gpio_config() argument
1136 skb = ar->wmi.ops->gen_gpio_config(ar, gpio_num, input, pull_type, intr_mode); in ath10k_wmi_gpio_config()
1143 static inline int ath10k_wmi_gpio_output(struct ath10k *ar, u32 gpio_num, u32 set) in ath10k_wmi_gpio_output() argument
1150 skb = ar->wmi.ops->gen_gpio_output(ar, gpio_num, set); in ath10k_wmi_gpio_output()
H A Dwmi.c7498 u32 gpio_num, u32 input, in ath10k_wmi_op_gen_gpio_config() argument
7510 cmd->gpio_num = __cpu_to_le32(gpio_num); in ath10k_wmi_op_gen_gpio_config()
7515 gpio_num, input, pull_type, intr_mode); in ath10k_wmi_op_gen_gpio_config()
7521 u32 gpio_num, u32 set) in ath10k_wmi_op_gen_gpio_output() argument
7531 cmd->gpio_num = __cpu_to_le32(gpio_num); in ath10k_wmi_op_gen_gpio_output()
7535 gpio_num, set); in ath10k_wmi_op_gen_gpio_output()
H A Dwmi.h3055 __le32 gpio_num; /* GPIO number to be setup */ member
3063 __le32 gpio_num; /* GPIO number to be setup */ member
3069 __le32 gpio_num; /* GPIO number which changed state */ member
/linux/drivers/net/phy/
H A Ddp83640.c477 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/drivers/pinctrl/nuvoton/
H A Dpinctrl-ma35.c620 static void ma35_gpio_cla_port(unsigned int gpio_num, unsigned int *group, in ma35_gpio_cla_port() argument
623 *group = gpio_num / MA35_GPIO_PORT_MAX; in ma35_gpio_cla_port()
624 *num = gpio_num % MA35_GPIO_PORT_MAX; in ma35_gpio_cla_port()
/linux/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_link.c417 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 …]
H A Dbnx2x.h2036 int bnx2x_get_gpio(struct bnx2x *bp, int gpio_num, u8 port);
2037 int bnx2x_set_gpio(struct bnx2x *bp, int gpio_num, u32 mode, u8 port);
2039 int bnx2x_set_gpio_int(struct bnx2x *bp, int gpio_num, u32 mode, u8 port);
H A Dbnx2x_main.c2079 int bnx2x_get_gpio(struct bnx2x *bp, int gpio_num, u8 port) in bnx2x_get_gpio() argument
2084 int gpio_shift = gpio_num + in bnx2x_get_gpio()
2090 if (gpio_num > MISC_REGISTERS_GPIO_3) { in bnx2x_get_gpio()
2091 BNX2X_ERR("Invalid GPIO %d\n", gpio_num); in bnx2x_get_gpio()
2107 int bnx2x_set_gpio(struct bnx2x *bp, int gpio_num, u32 mode, u8 port) in bnx2x_set_gpio() argument
2112 int gpio_shift = gpio_num + in bnx2x_set_gpio()
2117 if (gpio_num > MISC_REGISTERS_GPIO_3) { in bnx2x_set_gpio()
2118 BNX2X_ERR("Invalid GPIO %d\n", gpio_num); in bnx2x_set_gpio()
2130 gpio_num, gpio_shift); in bnx2x_set_gpio()
2139 gpio_num, gpio_shift); in bnx2x_set_gpio()
[all …]
/linux/drivers/scsi/mpi3mr/mpi/
H A Dmpi30_ioc.h335 u8 gpio_num; member
/linux/drivers/net/wireless/ath/ath11k/
H A Dwmi.h3028 u32 gpio_num; member
3056 u32 gpio_num; member
3063 u32 gpio_num; member
3069 u32 gpio_num; member
/linux/drivers/net/ethernet/intel/ice/
H A Dice_adminq_cmd.h1687 u8 gpio_num; member

12