/drivers/pci/ |
H A D | setup-irq.c | 29 u8 pin, slot; local 33 which interrupt pin it will come in on. We know which slot it 38 pci_read_config_byte(dev, PCI_INTERRUPT_PIN, &pin); 40 if (pin > 4) 41 pin = 1; 43 if (pin != 0) { 45 slot = (*swizzle)(dev, &pin); 47 irq = (*map_irq)(dev, slot, pin);
|
/drivers/input/mouse/ |
H A D | gpio_mouse.c | 53 int pin, i; local 69 pin = pdata->pins[i]; 71 if (pin < 0) { 85 error = gpio_request(pin, "gpio_mouse"); 87 dev_err(&pdev->dev, "fail %d pin (%d idx)\n", 88 pin, i); 92 gpio_direction_input(pin); 143 pin = pdata->pins[i]; 144 if (pin) 145 gpio_free(pin); 155 int pin, i; local [all...] |
/drivers/of/ |
H A D | of_pci_irq.c | 22 u8 pin; local 39 rc = pci_read_config_byte(pdev, PCI_INTERRUPT_PIN, &pin); 42 /* No pin, exit */ 43 if (pin == 0) 80 pin = pci_swizzle_interrupt_pin(pdev, pin); 86 out_irq->args[0] = pin; 97 * @pin: PCI irq pin number; passed when used as map_irq callback. Unused 99 * @slot and @pin ar 102 of_irq_parse_and_map_pci(const struct pci_dev *dev, u8 slot, u8 pin) argument [all...] |
/drivers/pcmcia/ |
H A D | sa1111_jornada720.c | 101 unsigned int pin = GPIO_A0 | GPIO_A1 | GPIO_A2 | GPIO_A3; local 106 sa1111_set_io_dir(sadev, pin, 0, 0); 107 sa1111_set_io(sadev, pin, 0); 108 sa1111_set_sleep_io(sadev, pin, 0);
|
/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_dmabuf.c | 39 * @pin: Pin buffer if true. 83 * Flushes and unpins the query bo if @pin == true to avoid failures. 87 * @pin: Pin buffer if true. 95 bool pin, bool interruptible) 105 if (pin) 119 if (pin) 134 if (pin) 157 * @pin: Pin buffer in vram if true. 165 bool pin, bool interruptible) 169 if (pin) 93 vmw_dmabuf_to_vram_or_gmr(struct vmw_private *dev_priv, struct vmw_dma_buffer *buf, bool pin, bool interruptible) argument 163 vmw_dmabuf_to_vram(struct vmw_private *dev_priv, struct vmw_dma_buffer *buf, bool pin, bool interruptible) argument 195 vmw_dmabuf_to_start_of_vram(struct vmw_private *dev_priv, struct vmw_dma_buffer *buf, bool pin, bool interruptible) argument 300 vmw_bo_pin(struct ttm_buffer_object *bo, bool pin) argument [all...] |
H A D | vmwgfx_kms.h | 44 * @pin is called the when ever a crtc uses this framebuffer 49 int (*pin)(struct vmw_framebuffer *fb); member in struct:vmw_framebuffer
|
/drivers/input/misc/ |
H A D | ixp4xx-beeper.c | 33 static void ixp4xx_spkr_control(unsigned int pin, unsigned int count) argument 40 gpio_direction_output(pin, 0); 43 gpio_direction_output(pin, 1); 44 gpio_direction_input(pin); 53 unsigned int pin = (unsigned int) input_get_drvdata(dev); local 72 ixp4xx_spkr_control(pin, count); 79 unsigned int pin = (unsigned int) dev_id; local 85 gpio_set_value(pin, !gpio_get_value(pin)); 144 unsigned int pin local 161 unsigned int pin = (unsigned int) input_get_drvdata(input_dev); local [all...] |
/drivers/pinctrl/ |
H A D | pinconf.h | 2 * Internal interface between the core pin control system and the 3 * pin config portions 27 int pin_config_get_for_pin(struct pinctrl_dev *pctldev, unsigned pin, 90 * pin config. 96 struct seq_file *s, unsigned pin); 107 unsigned pin) 105 pinconf_generic_dump_pin(struct pinctrl_dev *pctldev, struct seq_file *s, unsigned pin) argument
|
H A D | pinmux.h | 2 * Internal interface between the core pin control system and the 21 unsigned pin, unsigned gpio); 22 void pinmux_free_gpio(struct pinctrl_dev *pctldev, unsigned pin, 26 unsigned pin, bool input); 48 unsigned pin, unsigned gpio) 54 unsigned pin, 61 unsigned pin, bool input) 46 pinmux_request_gpio(struct pinctrl_dev *pctldev, struct pinctrl_gpio_range *range, unsigned pin, unsigned gpio) argument 53 pinmux_free_gpio(struct pinctrl_dev *pctldev, unsigned pin, struct pinctrl_gpio_range *range) argument 59 pinmux_gpio_direction(struct pinctrl_dev *pctldev, struct pinctrl_gpio_range *range, unsigned pin, bool input) argument
|
/drivers/gpio/ |
H A D | gpio-74x164.c | 73 u8 pin = offset % 8; local 77 ret = (chip->buffer[bank] >> pin) & 0x1; 88 u8 pin = offset % 8; local 92 chip->buffer[bank] |= (1 << pin); 94 chip->buffer[bank] &= ~(1 << pin);
|
H A D | gpio-ks8695.c | 40 static void ks8695_gpio_mode(unsigned int pin, short gpio) argument 45 if (pin > KS8695_GPIO_5) /* only GPIO 0..5 have internal functions */ 52 x &= ~enable[pin]; 54 x |= enable[pin]; 64 * Configure GPIO pin as external interrupt source. 66 int ks8695_gpio_interrupt(unsigned int pin, unsigned int type) argument 70 if (pin > KS8695_GPIO_3) /* only GPIO 0..3 can generate IRQ */ 75 /* set pin as input */ 77 x &= ~IOPM(pin); 83 irq_set_irq_type(gpio_irq[pin], typ 99 ks8695_gpio_direction_input(struct gpio_chip *gc, unsigned int pin) argument 125 ks8695_gpio_direction_output(struct gpio_chip *gc, unsigned int pin, int state) argument 160 ks8695_gpio_set_value(struct gpio_chip *gc, unsigned int pin, int state) argument 185 ks8695_gpio_get_value(struct gpio_chip *gc, unsigned int pin) argument 200 ks8695_gpio_to_irq(struct gpio_chip *gc, unsigned int pin) argument [all...] |
H A D | gpio-zevio.c | 66 static inline u32 zevio_gpio_port_get(struct zevio_gpio *c, unsigned pin, argument 69 unsigned section_offset = ((pin >> 3) & 3)*ZEVIO_GPIO_SECTION_SIZE; 73 static inline void zevio_gpio_port_set(struct zevio_gpio *c, unsigned pin, argument 76 unsigned section_offset = ((pin >> 3) & 3)*ZEVIO_GPIO_SECTION_SIZE; 81 static int zevio_gpio_get(struct gpio_chip *chip, unsigned pin) argument 87 dir = zevio_gpio_port_get(controller, pin, ZEVIO_GPIO_DIRECTION); 88 if (dir & BIT(ZEVIO_GPIO_BIT(pin))) 89 val = zevio_gpio_port_get(controller, pin, ZEVIO_GPIO_INPUT); 91 val = zevio_gpio_port_get(controller, pin, ZEVIO_GPIO_OUTPUT); 94 return (val >> ZEVIO_GPIO_BIT(pin)) 97 zevio_gpio_set(struct gpio_chip *chip, unsigned pin, int value) argument 113 zevio_gpio_direction_input(struct gpio_chip *chip, unsigned pin) argument 129 zevio_gpio_direction_output(struct gpio_chip *chip, unsigned pin, int value) argument 152 zevio_gpio_to_irq(struct gpio_chip *chip, unsigned pin) argument [all...] |
H A D | gpio-generic.c | 127 static unsigned long bgpio_pin2mask(struct bgpio_chip *bgc, unsigned int pin) argument 129 return 1 << pin; 133 unsigned int pin) 135 return 1 << (bgc->bits - 1 - pin); 132 bgpio_pin2mask_be(struct bgpio_chip *bgc, unsigned int pin) argument
|
H A D | gpio-msic.c | 32 /* the offset for the mapping of global gpio pin to irq */ 243 u8 pin; local 247 intel_msic_irq_read(msic, INTEL_MSIC_GPIO0LVIRQ + i, &pin); 248 pending = pin;
|
/drivers/media/common/siano/ |
H A D | sms-cards.c | 242 static int sms_set_gpio(struct smscore_device_t *coredev, int pin, int enable) argument 254 if (pin == 0) 257 if (pin < 0) { 259 gpio = pin * -1; 262 gpio = pin;
|
/drivers/pwm/ |
H A D | pwm-bfin.c | 22 unsigned short pin; member in struct:bfin_pwm 42 priv->pin = pwm_to_gptimer_per[pwm->hwpwm]; 44 ret = peripheral_request(priv->pin, NULL); 60 peripheral_free(priv->pin); 83 set_gptimer_config(priv->pin, TIMER_MODE_PWM | TIMER_PERIOD_CNT); 84 set_gptimer_pwidth(priv->pin, duty); 85 set_gptimer_period(priv->pin, period); 94 enable_gptimer(priv->pin); 103 disable_gptimer(priv->pin);
|
/drivers/ssb/ |
H A D | embedded.c | 240 int ssb_pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) argument 247 res = ssb_pcicore_pcibios_map_irq(dev, slot, pin);
|
/drivers/md/bcache/ |
H A D | journal.h | 84 atomic_t *pin; member in struct:journal_replay 114 DECLARE_FIFO(atomic_t, pin); 157 (fifo_idx(&(c)->journal.pin, (l)) > fifo_idx(&(c)->journal.pin, (r))) 162 (!(j)->blocks_free || fifo_free(&(j)->pin) <= 1)
|
/drivers/media/pci/ivtv/ |
H A D | ivtv-gpio.c | 349 u16 pin = 0; local 352 pin = 1 << itv->card->xceive_pin; 354 if ((itv->card->gpio_init.direction | pin) == 0) 361 write_reg(itv->card->gpio_init.initial_value | pin, IVTV_REG_GPIO_OUT); 362 write_reg(itv->card->gpio_init.direction | pin, IVTV_REG_GPIO_DIR);
|
/drivers/pinctrl/freescale/ |
H A D | pinctrl-imx.h | 21 * struct imx_pin_group - describes a single i.MX pin 22 * @pin: the pin_id of this pin 23 * @mux_mode: the mux mode for this pin. 24 * @input_reg: the select input register offset for this pin if any 26 * @input_val: the select input value for this pin. 27 * @configs: the config for this pin. 30 unsigned int pin; member in struct:imx_pin 38 * struct imx_pin_group - describes an IMX pin group 39 * @name: the name of this specific pin grou [all...] |
/drivers/ptp/ |
H A D | ptp_chardev.c | 58 int ptp_set_pinfunc(struct ptp_clock *ptp, unsigned int pin, argument 62 struct ptp_pin_desc *pin1 = NULL, *pin2 = &info->pin_config[pin]; 65 /* Check to see if any other pin previously had this function. */ 73 if (pin1 && i == pin) 95 if (info->verify(info, pin, func, chan)) { 96 pr_err("driver cannot use function %u on pin %u\n", func, chan);
|
/drivers/staging/iio/trigger/ |
H A D | iio-trig-bfin-timer.c | 28 int pin; member in struct:bfin_timer 228 ret = peripheral_request(st->t->pin, st->trig->name); 271 peripheral_free(st->t->pin);
|
/drivers/xen/ |
H A D | platform-pci.c | 61 u8 pin; local 68 pin = pdev->pin; 75 ((uint64_t)(pin - 1) & 3);
|
/drivers/acpi/ |
H A D | pci_irq.c | 49 u8 pin; member in struct:acpi_prt_entry 54 static inline char pin_name(int pin) argument 56 return 'A' + pin - 1; 105 unsigned char pin; member in struct:prt_quirk 114 * interrupt at the listed segment/bus/device/pin is connected to the first 146 entry->pin == quirk->pin && 153 entry->id.device, pin_name(entry->pin), 161 int pin, struct acpi_pci_routing_table *prt, 170 prt->pin 160 acpi_pci_irq_check_entry(acpi_handle handle, struct pci_dev *dev, int pin, struct acpi_pci_routing_table *prt, struct acpi_prt_entry **entry_ptr) argument 226 acpi_pci_irq_find_prt_entry(struct pci_dev *dev, int pin, struct acpi_prt_entry **entry_ptr) argument 318 acpi_pci_irq_lookup(struct pci_dev *dev, int pin) argument 401 u8 pin; local 478 u8 pin; local [all...] |
/drivers/char/ |
H A D | tb0219.c | 100 static inline char get_gpio_input_pin(unsigned int pin) argument 105 if (values & (1 << pin)) 111 static inline char get_gpio_output_pin(unsigned int pin) argument 116 if (values & (1 << pin)) 122 static inline char get_dip_switch(unsigned int pin) argument 127 if (values & (1 << pin)) 140 static inline int set_gpio_output_pin(unsigned int pin, char command) argument 151 value &= ~(1 << pin); 153 value |= 1 << pin;
|