Searched refs:gpio_nr (Results 1 - 5 of 5) sorted by relevance
/linux-master/drivers/hid/ |
H A D | hid-mcp2200.c | 157 static void mcp_set(struct gpio_chip *gc, unsigned int gpio_nr, int value) argument 159 unsigned long mask = 1 << gpio_nr; 160 unsigned long bmap_value = value << gpio_nr; 181 static int mcp_get(struct gpio_chip *gc, unsigned int gpio_nr) argument 185 mask = (1 << gpio_nr); 190 static int mcp_get_direction(struct gpio_chip *gc, unsigned int gpio_nr) argument 194 return (mcp->gpio_dir & (MCP2200_DIR_IN << gpio_nr)) 198 static int mcp_set_direction(struct gpio_chip *gc, unsigned int gpio_nr, argument 221 conf->io_bmap = (mcp->gpio_dir & ~(1 << gpio_nr)) 222 | (io_direction << gpio_nr); 251 mcp_direction_input(struct gpio_chip *gc, unsigned int gpio_nr) argument 256 mcp_direction_output(struct gpio_chip *gc, unsigned int gpio_nr, int value) argument [all...] |
/linux-master/arch/arm/mach-s3c/ |
H A D | pm-gpio.c | 326 unsigned int gpio_nr; local 328 for (gpio_nr = 0; gpio_nr < S3C_GPIO_END;) { 329 ourchip = samsung_gpiolib_getchip(gpio_nr); 331 gpio_nr++; 344 gpio_nr += ourchip->chip.ngpio; 345 gpio_nr += CONFIG_S3C_GPIO_SPACE; 366 unsigned int gpio_nr; local 368 for (gpio_nr = 0; gpio_nr < S3C_GPIO_EN [all...] |
/linux-master/drivers/hwmon/pmbus/ |
H A D | adm1266.c | 192 unsigned int gpio_nr; local 202 for_each_set_bit(gpio_nr, mask, ADM1266_GPIO_NR) { 203 if (test_bit(adm1266_gpio_mapping[gpio_nr][1], &status)) 204 set_bit(gpio_nr, bits); 214 for_each_set_bit_from(gpio_nr, mask, ADM1266_GPIO_NR + ADM1266_PDIO_STATUS) { 215 if (test_bit(gpio_nr - ADM1266_GPIO_NR, &status)) 216 set_bit(gpio_nr, bits);
|
/linux-master/drivers/hwmon/ |
H A D | ltc2992.c | 239 unsigned int gpio_nr; local 251 for_each_set_bit(gpio_nr, mask, LTC2992_GPIO_NR) { 252 if (test_bit(LTC2992_GPIO_BIT(gpio_nr), &gpio_status)) 253 set_bit(gpio_nr, bits); 285 unsigned int gpio_nr; local 287 for_each_set_bit(gpio_nr, mask, LTC2992_GPIO_NR) { 288 if (gpio_nr < 3) 289 assign_bit(ltc2992_gpio_addr_map[gpio_nr].ctrl_bit, &gpio_ctrl_io, true); 291 if (gpio_nr == 3) 292 assign_bit(ltc2992_gpio_addr_map[gpio_nr] [all...] |
/linux-master/drivers/usb/host/ |
H A D | fhci-hub.c | 39 static void fhci_gpio_set_value(struct fhci_hcd *fhci, int gpio_nr, bool on) argument 41 struct gpio_desc *gpiod = fhci->gpiods[gpio_nr];
|
Completed in 101 milliseconds