Home
last modified time | relevance | path

Searched refs:pin_number (Results 1 – 12 of 12) sorted by relevance

/linux-5.19.10/drivers/media/pci/cx25821/
Dcx25821-gpio.c14 int pin_number, int pin_logic_value) in cx25821_set_gpiopin_direction() argument
16 int bit = pin_number; in cx25821_set_gpiopin_direction()
22 if (pin_number >= 47) in cx25821_set_gpiopin_direction()
25 if (pin_number > 31) { in cx25821_set_gpiopin_direction()
26 bit = pin_number - 31; in cx25821_set_gpiopin_direction()
43 int pin_number, int pin_logic_value) in cx25821_set_gpiopin_logicvalue() argument
45 int bit = pin_number; in cx25821_set_gpiopin_logicvalue()
50 if (pin_number >= 47) in cx25821_set_gpiopin_logicvalue()
54 cx25821_set_gpiopin_direction(dev, pin_number, 0); in cx25821_set_gpiopin_logicvalue()
56 if (pin_number > 31) { in cx25821_set_gpiopin_logicvalue()
[all …]
Dcx25821.h376 int pin_number, int pin_logic_value);
/linux-5.19.10/drivers/pinctrl/nomadik/
Dpinctrl-abx500.h60 .pin_number = pin, \
88 unsigned pin_number; member
Dpinctrl-abx500.c729 int i, pin_number; in abx500_find_pin_name() local
732 if (sscanf((char *)pin_name, "GPIO%d", &pin_number) == 1) in abx500_find_pin_name()
734 if (npct->soc->pins[i].number == pin_number) in abx500_find_pin_name()
Dpinctrl-nomadik.c1356 int i, pin_number; in nmk_find_pin_name() local
1359 if (sscanf((char *)pin_name, "GPIO%d", &pin_number) == 1) in nmk_find_pin_name()
1361 if (npct->soc->pins[i].number == pin_number) in nmk_find_pin_name()
/linux-5.19.10/drivers/media/usb/cx231xx/
Dcx231xx-avcore.c2714 int pin_number, int pin_value) in cx231xx_set_gpio_direction() argument
2720 if (pin_number >= 32) in cx231xx_set_gpio_direction()
2725 value = dev->gpio_dir & (~(1 << pin_number)); /* clear */ in cx231xx_set_gpio_direction()
2727 value = dev->gpio_dir | (1 << pin_number); in cx231xx_set_gpio_direction()
2748 int cx231xx_set_gpio_value(struct cx231xx *dev, int pin_number, int pin_value) in cx231xx_set_gpio_value() argument
2754 if (pin_number >= 32) in cx231xx_set_gpio_value()
2758 if ((dev->gpio_dir & (1 << pin_number)) == 0x00) { in cx231xx_set_gpio_value()
2760 value = dev->gpio_dir | (1 << pin_number); in cx231xx_set_gpio_value()
2768 value = dev->gpio_val & (~(1 << pin_number)); in cx231xx_set_gpio_value()
2770 value = dev->gpio_val | (1 << pin_number); in cx231xx_set_gpio_value()
Dcx231xx.h838 int cx231xx_set_gpio_value(struct cx231xx *dev, int pin_number, int pin_value);
839 int cx231xx_set_gpio_direction(struct cx231xx *dev, int pin_number,
/linux-5.19.10/drivers/usb/host/
Dmax3421-hcd.c1653 max3421_gpout_set_value(struct usb_hcd *hcd, u8 pin_number, u8 value) in max3421_gpout_set_value() argument
1658 --pin_number; in max3421_gpout_set_value()
1659 if (pin_number >= MAX3421_GPOUT_COUNT) in max3421_gpout_set_value()
1662 mask = 1u << (pin_number % 4); in max3421_gpout_set_value()
1663 idx = pin_number / 4; in max3421_gpout_set_value()
/linux-5.19.10/drivers/pinctrl/
Dpinctrl-thunderbay.c64 #define THUNDERBAY_PIN_DESC(pin_number, pin_name, ...) { \ argument
65 .number = pin_number, \
Dpinctrl-keembay.c70 #define KEEMBAY_PIN_DESC(pin_number, pin_name, ...) { \ argument
71 .number = pin_number, \
/linux-5.19.10/drivers/pinctrl/stm32/
Dpinctrl-stm32.c1179 unsigned int pin_number) in stm32_pconf_get_pin_desc_by_pin_number() argument
1185 if (pins->pin.number == pin_number) in stm32_pconf_get_pin_desc_by_pin_number()
/linux-5.19.10/drivers/pinctrl/nuvoton/
Dpinctrl-npcm7xx.c1413 int pin_number, int mode) in npcm7xx_setfunc() argument
1418 for (i = 0 ; i < pin_number ; i++) { in npcm7xx_setfunc()