Home
last modified time | relevance | path

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

/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.h377 int pin_number, int pin_logic_value);
/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()
/drivers/pinctrl/bcm/
Dpinctrl-ns.c227 int pin_number = ns_pinctrl->groups[grp_select].pins[i]; in ns_pinctrl_set_mux() local
229 unset |= BIT(pin_number); in ns_pinctrl_set_mux()
/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.h840 int cx231xx_set_gpio_value(struct cx231xx *dev, int pin_number, int pin_value);
841 int cx231xx_set_gpio_direction(struct cx231xx *dev, int pin_number,
/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()
/drivers/pinctrl/nuvoton/
Dpinctrl-npcm7xx.c1412 int pin_number, int mode) in npcm7xx_setfunc() argument
1417 for (i = 0 ; i < pin_number ; i++) { in npcm7xx_setfunc()