/drivers/pci/ |
H A D | setup-irq.c | 26 u8 pin, slot; local 30 which interrupt pin it will come in on. We know which slot it 35 pci_read_config_byte(dev, PCI_INTERRUPT_PIN, &pin); 37 if (pin > 4) 38 pin = 1; 40 if (pin != 0) { 42 slot = (*swizzle)(dev, &pin); 44 irq = (*map_irq)(dev, slot, pin);
|
/drivers/input/mouse/ |
H A D | gpio_mouse.c | 54 int pin, i; local 70 pin = pdata->pins[i]; 72 if (pin < 0) { 86 error = gpio_request(pin, "gpio_mouse"); 88 dev_err(&pdev->dev, "fail %d pin (%d idx)\n", 89 pin, i); 93 gpio_direction_input(pin); 145 pin = pdata->pins[i]; 146 if (pin) 147 gpio_free(pin); 157 int pin, i; local [all...] |
/drivers/of/ |
H A D | of_pci_irq.c | 25 u8 pin; local 42 rc = pci_read_config_byte(pdev, PCI_INTERRUPT_PIN, &pin); 45 /* No pin, exit */ 46 if (pin == 0) 50 lspec = pin;
|
/drivers/pcmcia/ |
H A D | sa1100_jornada720.c | 105 unsigned int pin = GPIO_A0 | GPIO_A1 | GPIO_A2 | GPIO_A3; local 110 sa1111_set_io_dir(dev, pin, 0, 0); 111 sa1111_set_io(dev, pin, 0); 112 sa1111_set_sleep_io(dev, pin, 0);
|
/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_dmabuf.c | 39 * @pin: Pin buffer if true. 84 * Flushes and unpins the query bo if @pin == true to avoid failures. 88 * @pin: Pin buffer if true. 96 bool pin, bool interruptible) 107 if (pin) 121 if (pin) 136 if (pin) 159 * @pin: Pin buffer in vram if true. 167 bool pin, bool interruptible) 171 if (pin) 94 vmw_dmabuf_to_vram_or_gmr(struct vmw_private *dev_priv, struct vmw_dma_buffer *buf, bool pin, bool interruptible) argument 165 vmw_dmabuf_to_vram(struct vmw_private *dev_priv, struct vmw_dma_buffer *buf, bool pin, bool interruptible) argument 197 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
|
H A D | vmwgfx_overlay.c | 221 * Move a buffer to vram or gmr if @pin is set, else unpin the buffer. 228 bool pin, bool inter) 230 if (!pin) 226 vmw_overlay_move_buffer(struct vmw_private *dev_priv, struct vmw_dma_buffer *buf, bool pin, bool inter) argument
|
/drivers/input/misc/ |
H A D | ixp4xx-beeper.c | 32 static void ixp4xx_spkr_control(unsigned int pin, unsigned int count) argument 39 gpio_line_config(pin, IXP4XX_GPIO_OUT); 40 gpio_line_set(pin, IXP4XX_GPIO_LOW); 44 gpio_line_config(pin, IXP4XX_GPIO_IN); 45 gpio_line_set(pin, IXP4XX_GPIO_HIGH); 55 unsigned int pin = (unsigned int) input_get_drvdata(dev); local 74 ixp4xx_spkr_control(pin, count); 138 unsigned int pin = (unsigned int) input_get_drvdata(input_dev); local 145 ixp4xx_spkr_control(pin, 0); 155 unsigned int pin local [all...] |
/drivers/media/dvb/siano/ |
H A D | sms-cards.c | 177 static int sms_set_gpio(struct smscore_device_t *coredev, int pin, int enable) argument 189 if (pin == 0) 192 if (pin < 0) { 194 gpio = pin * -1; 197 gpio = pin;
|
/drivers/ssb/ |
H A D | embedded.c | 206 int ssb_pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) argument 213 res = ssb_pcicore_pcibios_map_irq(dev, slot, pin);
|
/drivers/xen/ |
H A D | platform-pci.c | 61 u8 pin; local 68 pin = pdev->pin; 75 ((uint64_t)(pin - 1) & 3);
|
/drivers/gpio/ |
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-generic.c | 107 static unsigned long bgpio_pin2mask(struct bgpio_chip *bgc, unsigned int pin) argument 109 return 1 << pin; 113 unsigned int pin) 115 return 1 << (bgc->bits - 1 - pin); 112 bgpio_pin2mask_be(struct bgpio_chip *bgc, unsigned int pin) argument
|
/drivers/media/video/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/ |
H A D | pinconf.c | 2 * Core driver for the pin config portions of the pin control subsystem 26 int pin_config_get_for_pin(struct pinctrl_dev *pctldev, unsigned pin, argument 32 dev_err(pctldev->dev, "cannot get pin configuration, missing " 37 return ops->pin_config_get(pctldev, pin, config); 41 * pin_config_get() - get the configuration of a single pin parameter 42 * @dev_name: name of the pin controller device for this pin 43 * @name: name of the pin to get the config for 45 * current pin stat 52 int pin; local 66 pin_config_set_for_pin(struct pinctrl_dev *pctldev, unsigned pin, unsigned long config) argument 100 int pin; local 223 pinconf_dump_pin(struct pinctrl_dev *pctldev, struct seq_file *s, int pin) argument 235 unsigned i, pin; local [all...] |
/drivers/acpi/ |
H A D | pci_irq.c | 51 u8 pin; member in struct:acpi_prt_entry 59 static inline char pin_name(int pin) argument 61 return 'A' + pin - 1; 69 int pin) 81 && (pin == entry->pin)) { 132 unsigned char pin; member in struct:prt_quirk 141 * interrupt at the listed segment/bus/device/pin is connected to the first 173 entry->pin == quirk->pin 68 acpi_pci_irq_find_prt_entry(struct pci_dev *dev, int pin) argument 361 acpi_pci_irq_lookup(struct pci_dev *dev, int pin) argument 419 u8 pin; local 507 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;
|
/drivers/gpu/drm/gma500/ |
H A D | intel_gmbus.c | 172 intel_gpio_create(struct drm_psb_private *dev_priv, u32 pin) argument 186 if (pin >= ARRAY_SIZE(map_pin_to_reg) || !map_pin_to_reg[pin]) 193 gpio->reg = map_pin_to_reg[pin]; 197 "gma500 GPIO%c", "?BACDE?F"[pin]); 347 DRM_INFO("GMBUS timed out, falling back to bit banging on pin %d [%s]\n",
|
/drivers/gpu/drm/i915/ |
H A D | intel_i2c.c | 151 intel_gpio_create(struct drm_i915_private *dev_priv, u32 pin) argument 165 if (pin >= ARRAY_SIZE(map_pin_to_reg) || !map_pin_to_reg[pin]) 172 gpio->reg = map_pin_to_reg[pin]; 178 "i915 GPIO%c", "?BACDE?F"[pin]); 327 DRM_INFO("GMBUS timed out, falling back to bit banging on pin %d [%s]\n",
|
H A D | intel_lvds.c | 429 * The LVDS pin pair will already have been turned on in the 866 u8 pin; local 872 pin = GMBUS_PORT_PANEL; 873 if (!lvds_is_present_in_vbt(dev, &pin)) { 951 &dev_priv->gmbus[pin].adapter);
|
/drivers/leds/ |
H A D | leds-netxbig.c | 41 int pin; local 43 for (pin = 0; pin < gpio_ext->num_addr; pin++) 44 gpio_set_value(gpio_ext->addr[pin], (addr >> pin) & 1); 49 int pin; local 51 for (pin = 0; pin < gpio_ext->num_data; pin [all...] |
/drivers/media/dvb/dvb-usb/ |
H A D | mxl111sf-gpio.c | 35 static int mxl111sf_set_gpo_state(struct mxl111sf_state *state, u8 pin, u8 val) argument 40 mxl_debug_adv("(%d, %d)", pin, val); 42 if ((pin > 0) && (pin < 8)) { 46 tmp &= ~(1 << (pin - 1)); 47 tmp |= (val << (pin - 1)); 51 } else if (pin <= 10) { 52 if (pin == 0) 53 pin += 7; 57 tmp &= ~(1 << (pin 68 mxl111sf_get_gpi_state(struct mxl111sf_state *state, u8 pin, u8 *val) argument 112 u8 pin; member in struct:mxl_gpio_cfg [all...] |
/drivers/spi/ |
H A D | spi-gpio.c | 174 * call when such pin is not present or defined in the controller. 259 static int __devinit spi_gpio_alloc(unsigned pin, const char *label, bool is_in) argument 263 value = gpio_request(pin, label); 266 value = gpio_direction_input(pin); 268 value = gpio_direction_output(pin, 0); 286 /* HW configuration without MOSI pin */ 295 /* HW configuration without MISO pin */
|
/drivers/input/keyboard/ |
H A D | adp5588-keys.c | 164 pin_used[kpad->gpimap[i].pin - GPI_PIN_BASE] = true; 269 if (key_val == kpad->gpimap[j].pin) { 342 unsigned short pin = pdata->gpimap[i].pin; local 344 if (pin <= GPI_PIN_ROW_END) { 345 evt_mode1 |= (1 << (pin - GPI_PIN_ROW_BASE)); 347 evt_mode2 |= ((1 << (pin - GPI_PIN_COL_BASE)) & 0xFF); 348 evt_mode3 |= ((1 << (pin - GPI_PIN_COL_BASE)) >> 8); 393 unsigned short pin = kpad->gpimap[i].pin; local 464 unsigned short pin = pdata->gpimap[i].pin; local [all...] |
/drivers/media/video/uvc/ |
H A D | uvc_v4l2.c | 678 int pin = 0; local 688 pin = iterm->id; 689 } else if (pin < selector->bNrInPins) { 690 pin = selector->baSourceID[index]; 694 if (iterm->id == pin) 699 if (iterm == NULL || iterm->id != pin)
|