/drivers/gpio/ |
D | gpio-lpc32xx.c | 174 unsigned pin, int input) in __set_gpio_dir_p012() 185 unsigned pin, int input) in __set_gpio_dir_p3() 196 unsigned pin, int high) in __set_gpio_level_p012() 207 unsigned pin, int high) in __set_gpio_level_p3() 218 unsigned pin, int high) in __set_gpo_level_p3() 227 unsigned pin) in __get_gpio_state_p012() 234 unsigned pin) in __get_gpio_state_p3() 246 unsigned pin) in __get_gpi_state_p3() 252 unsigned pin) in __get_gpo_state_p3() 261 unsigned pin) in lpc32xx_gpio_dir_input_p012() [all …]
|
D | gpio-ks8695.c | 40 static void ks8695_gpio_mode(unsigned int pin, short gpio) in ks8695_gpio_mode() 66 int ks8695_gpio_interrupt(unsigned int pin, unsigned int type) in ks8695_gpio_interrupt() 99 static int ks8695_gpio_direction_input(struct gpio_chip *gc, unsigned int pin) in ks8695_gpio_direction_input() 126 unsigned int pin, int state) in ks8695_gpio_direction_output() 161 unsigned int pin, int state) in ks8695_gpio_set_value() 185 static int ks8695_gpio_get_value(struct gpio_chip *gc, unsigned int pin) in ks8695_gpio_get_value() 200 static int ks8695_gpio_to_irq(struct gpio_chip *gc, unsigned int pin) in ks8695_gpio_to_irq()
|
D | gpio-vr41xx.c | 126 unsigned int pin; in mask_ack_giuint_low() local 159 unsigned int pin; in mask_ack_giuint_high() local 212 void vr41xx_set_irq_trigger(unsigned int pin, irq_trigger_t trigger, in vr41xx_set_irq_trigger() 291 void vr41xx_set_irq_level(unsigned int pin, irq_level_t level) in vr41xx_set_irq_level() 313 static int giu_set_direction(struct gpio_chip *chip, unsigned pin, int dir) in giu_set_direction() 361 int vr41xx_gpio_pullupdown(unsigned int pin, gpio_pull_t pull) in vr41xx_gpio_pullupdown() 399 static int vr41xx_gpio_get(struct gpio_chip *chip, unsigned pin) in vr41xx_gpio_get() 426 static void vr41xx_gpio_set(struct gpio_chip *chip, unsigned pin, in vr41xx_gpio_set() 496 unsigned int trigger, i, pin; in giu_probe() local
|
D | gpio-mvebu.c | 172 static int mvebu_gpio_request(struct gpio_chip *chip, unsigned pin) in mvebu_gpio_request() 177 static void mvebu_gpio_free(struct gpio_chip *chip, unsigned pin) in mvebu_gpio_free() 182 static void mvebu_gpio_set(struct gpio_chip *chip, unsigned pin, int value) in mvebu_gpio_set() 199 static int mvebu_gpio_get(struct gpio_chip *chip, unsigned pin) in mvebu_gpio_get() 215 static void mvebu_gpio_blink(struct gpio_chip *chip, unsigned pin, int value) in mvebu_gpio_blink() 232 static int mvebu_gpio_direction_input(struct gpio_chip *chip, unsigned pin) in mvebu_gpio_direction_input() 255 static int mvebu_gpio_direction_output(struct gpio_chip *chip, unsigned pin, in mvebu_gpio_direction_output() 282 static int mvebu_gpio_to_irq(struct gpio_chip *chip, unsigned pin) in mvebu_gpio_to_irq() 382 int pin; in mvebu_gpio_irq_set_type() local
|
D | gpiolib-acpi.c | 23 unsigned int pin; member 43 int acpi_get_gpio(char *path, int pin) in acpi_get_gpio() 111 unsigned int pin; in acpi_gpiochip_request_interrupts() local
|
D | gpio-samsung.c | 940 unsigned int pin; in s3c24xx_gpio_xlate() local 1140 static int s3c64xx_gpiolib_mbank_to_irq(struct gpio_chip *chip, unsigned pin) in s3c64xx_gpiolib_mbank_to_irq() 1145 static int s3c64xx_gpiolib_lbank_to_irq(struct gpio_chip *chip, unsigned pin) in s3c64xx_gpiolib_lbank_to_irq() 2733 unsigned int pin; in exynos_gpio_xlate() local 3115 int s3c_gpio_cfgpin(unsigned int pin, unsigned int config) in s3c_gpio_cfgpin() 3166 unsigned s3c_gpio_getcfg(unsigned int pin) in s3c_gpio_getcfg() 3185 int s3c_gpio_setpull(unsigned int pin, samsung_gpio_pull_t pull) in s3c_gpio_setpull() 3204 samsung_gpio_pull_t s3c_gpio_getpull(unsigned int pin) in s3c_gpio_getpull() 3224 s5p_gpio_drvstr_t s5p_gpio_get_drvstr(unsigned int pin) in s5p_gpio_get_drvstr() 3247 int s5p_gpio_set_drvstr(unsigned int pin, s5p_gpio_drvstr_t drvstr) in s5p_gpio_set_drvstr()
|
/drivers/acpi/ |
D | pci_irq.c | 51 u8 pin; member 56 static inline char pin_name(int pin) in pin_name() 107 unsigned char pin; member 163 int pin, struct acpi_pci_routing_table *prt, in acpi_pci_irq_check_entry() 229 int pin, struct acpi_prt_entry **entry_ptr) in acpi_pci_irq_find_prt_entry() 320 static struct acpi_prt_entry *acpi_pci_irq_lookup(struct pci_dev *dev, int pin) in acpi_pci_irq_lookup() 379 u8 pin; in acpi_pci_irq_enable() local 465 u8 pin; in acpi_pci_irq_disable() local
|
/drivers/input/misc/ |
D | ixp4xx-beeper.c | 32 static void ixp4xx_spkr_control(unsigned int pin, unsigned int count) in ixp4xx_spkr_control() 55 unsigned int pin = (unsigned int) input_get_drvdata(dev); in ixp4xx_spkr_event() local 138 unsigned int pin = (unsigned int) input_get_drvdata(input_dev); in ixp4xx_spkr_remove() local 155 unsigned int pin = (unsigned int) input_get_drvdata(input_dev); in ixp4xx_spkr_shutdown() local
|
/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_dmabuf.c | 96 bool pin, bool interruptible) in vmw_dmabuf_to_vram_or_gmr() 167 bool pin, bool interruptible) in vmw_dmabuf_to_vram() 199 bool pin, bool interruptible) in vmw_dmabuf_to_start_of_vram() 298 void vmw_bo_pin(struct ttm_buffer_object *bo, bool pin) in vmw_bo_pin()
|
/drivers/pinctrl/ |
D | pinctrl-sunxi.c | 1385 const struct sunxi_desc_pin *pin = pctl->desc->pins + i; in sunxi_pinctrl_desc_find_function_by_name() local 1644 unsigned pin, in sunxi_pmx_set() 1685 u8 bank, pin; in sunxi_pmx_gpio_set_direction() local 1777 int pin, base; in sunxi_pinctrl_gpio_of_xlate() local 1848 const struct sunxi_desc_pin *pin = pctl->desc->pins + i; in sunxi_pinctrl_build_state() local 1867 const struct sunxi_desc_pin *pin = pctl->desc->pins + i; in sunxi_pinctrl_build_state() local 1881 const struct sunxi_desc_pin *pin = pctl->desc->pins + i; in sunxi_pinctrl_build_state() local 1983 const struct sunxi_desc_pin *pin = pctl->desc->pins + i; in sunxi_pinctrl_probe() local
|
D | pinmux.c | 83 static int pin_request(struct pinctrl_dev *pctldev, in pin_request() 182 static const char *pin_free(struct pinctrl_dev *pctldev, int pin, in pin_free() 238 unsigned pin, unsigned gpio) in pinmux_request_gpio() 261 void pinmux_free_gpio(struct pinctrl_dev *pctldev, unsigned pin, in pinmux_free_gpio() 279 unsigned pin, bool input) in pinmux_gpio_direction() 543 unsigned i, pin; in pinmux_pins_show() local
|
D | pinconf.c | 64 int pin_config_get_for_pin(struct pinctrl_dev *pctldev, unsigned pin, in pin_config_get_for_pin() 90 int pin; in pin_config_get() local 112 static int pin_config_set_for_pin(struct pinctrl_dev *pctldev, unsigned pin, in pin_config_set_for_pin() 146 int pin, ret; in pin_config_set() local 294 int pin; in pinconf_map_to_setting() local 470 struct seq_file *s, int pin) in pinconf_dump_pin() 484 unsigned i, pin; in pinconf_pins_show() local
|
D | pinmux.h | 48 unsigned pin, unsigned gpio) in pinmux_request_gpio() 54 unsigned pin, in pinmux_free_gpio() 61 unsigned pin, bool input) in pinmux_gpio_direction()
|
D | pinctrl-lantiq.c | 78 const char *group, *pin; in ltq_pinctrl_dt_subnode_to_map() local 227 static int match_mfp(const struct ltq_pinmux_info *info, int pin) in match_mfp() 242 int i, pin, ret = 0; in match_group_mux() local 266 int i, pin, pin_func, ret; in ltq_pmx_enable() local 295 unsigned pin) in ltq_pmx_gpio_request_enable()
|
D | pinctrl-at91.c | 97 uint32_t pin; member 311 static inline int pin_to_bank(unsigned pin) in pin_to_bank() 316 static unsigned pin_to_mask(unsigned int pin) in pin_to_mask() 326 static unsigned at91_mux_get_pullup(void __iomem *pio, unsigned pin) in at91_mux_get_pullup() 336 static unsigned at91_mux_get_multidrive(void __iomem *pio, unsigned pin) in at91_mux_get_multidrive() 410 static bool at91_mux_get_deglitch(void __iomem *pio, unsigned pin) in at91_mux_get_deglitch() 427 static bool at91_mux_pio3_get_debounce(void __iomem *pio, unsigned pin, u32 *div) in at91_mux_pio3_get_debounce() 446 static bool at91_mux_pio3_get_pulldown(void __iomem *pio, unsigned pin) in at91_mux_pio3_get_pulldown() 461 static bool at91_mux_pio3_get_schmitt_trig(void __iomem *pio, unsigned pin) in at91_mux_pio3_get_schmitt_trig() 492 static void at91_pin_dbg(const struct device *dev, const struct at91_pmx_pin *pin) in at91_pin_dbg() [all …]
|
D | pinctrl-mxs.c | 205 u16 pin; in mxs_pinctrl_enable() local 230 unsigned pin, unsigned long *config) in mxs_pinconf_get() 236 unsigned pin, unsigned long config) in mxs_pinconf_set() 258 u16 pin; in mxs_pinconf_group_set() local 308 struct seq_file *s, unsigned pin) in mxs_pinconf_dbg_show()
|
D | core.c | 144 unsigned i, pin; in pin_get_from_name() local 167 const char *pin_get_name(struct pinctrl_dev *pctldev, const unsigned pin) in pin_get_name() 189 bool pin_is_valid(struct pinctrl_dev *pctldev, int pin) in pin_is_valid() 439 unsigned int pin) in pinctrl_find_gpio_range_from_pin() 518 int pin; in pinctrl_request_gpio() local 553 int pin; in pinctrl_free_gpio() local 579 int pin; in pinctrl_gpio_direction() local 1213 unsigned i, pin; in pinctrl_pins_show() local
|
D | pinctrl-sunxi.h | 353 struct pinctrl_pin_desc pin; member 373 unsigned pin; member 418 static inline u32 sunxi_mux_reg(u16 pin) in sunxi_mux_reg() 427 static inline u32 sunxi_mux_offset(u16 pin) in sunxi_mux_offset() 433 static inline u32 sunxi_data_reg(u16 pin) in sunxi_data_reg() 442 static inline u32 sunxi_data_offset(u16 pin) in sunxi_data_offset() 448 static inline u32 sunxi_dlevel_reg(u16 pin) in sunxi_dlevel_reg() 457 static inline u32 sunxi_dlevel_offset(u16 pin) in sunxi_dlevel_offset() 463 static inline u32 sunxi_pull_reg(u16 pin) in sunxi_pull_reg() 472 static inline u32 sunxi_pull_offset(u16 pin) in sunxi_pull_offset()
|
D | pinctrl-xway.c | 432 unsigned pin, in xway_pinconf_get() 483 unsigned pin, in xway_pinconf_set() 568 int pin, int mux) in xway_mux_apply() 604 static void xway_gpio_set(struct gpio_chip *chip, unsigned int pin, int val) in xway_gpio_set() 614 static int xway_gpio_get(struct gpio_chip *chip, unsigned int pin) in xway_gpio_get() 621 static int xway_gpio_dir_in(struct gpio_chip *chip, unsigned int pin) in xway_gpio_dir_in() 630 static int xway_gpio_dir_out(struct gpio_chip *chip, unsigned int pin, int val) in xway_gpio_dir_out()
|
D | pinctrl-single.c | 306 unsigned pin) in pcs_pin_dbg_show() 388 static int pcs_get_function(struct pinctrl_dev *pctldev, unsigned pin, in pcs_get_function() 494 struct pinctrl_gpio_range *range, unsigned pin) in pcs_request_gpio() 530 static void pcs_pinconf_clear_bias(struct pinctrl_dev *pctldev, unsigned pin) in pcs_pinconf_clear_bias() 544 static bool pcs_pinconf_bias_disable(struct pinctrl_dev *pctldev, unsigned pin) in pcs_pinconf_bias_disable() 560 unsigned pin, unsigned long *config) in pcs_pinconf_get() 622 unsigned pin, unsigned long config) in pcs_pinconf_set() 712 struct seq_file *s, unsigned pin) in pcs_pinconf_dbg_show() 746 struct pinctrl_pin_desc *pin; in pcs_add_pin() local 1134 int pin; in pcs_parse_one_pinctrl_entry() local
|
/drivers/pinctrl/vt8500/ |
D | pinctrl-wmt.c | 94 unsigned pin) in wmt_set_pinmux() 216 static int wmt_pctl_find_group_by_pin(struct wmt_pinctrl_data *data, u32 pin) in wmt_pctl_find_group_by_pin() 230 u32 pin, u32 fnum, in wmt_pctl_dt_node_to_map_func() 257 u32 pin, u32 pull, in wmt_pctl_dt_node_to_map_pull() 310 u32 pin, func, pull; in wmt_pctl_dt_node_to_map() local 420 static int wmt_pinconf_get(struct pinctrl_dev *pctldev, unsigned pin, in wmt_pinconf_get() 426 static int wmt_pinconf_set(struct pinctrl_dev *pctldev, unsigned pin, in wmt_pinconf_set()
|
/drivers/char/ |
D | tb0219.c | 100 static inline char get_gpio_input_pin(unsigned int pin) in get_gpio_input_pin() 111 static inline char get_gpio_output_pin(unsigned int pin) in get_gpio_output_pin() 122 static inline char get_dip_switch(unsigned int pin) in get_dip_switch() 140 static inline int set_gpio_output_pin(unsigned int pin, char command) in set_gpio_output_pin()
|
/drivers/pinctrl/spear/ |
D | pinctrl-plgpio.c | 26 #define PIN_OFFSET(pin) (pin % MAX_GPIO_PER_REG) argument 27 #define REG_OFFSET(base, reg, pin) (base + reg + (pin / MAX_GPIO_PER_REG) \ argument 84 static inline u32 is_plgpio_set(void __iomem *base, u32 pin, u32 reg) in is_plgpio_set() 93 static inline void plgpio_reg_set(void __iomem *base, u32 pin, u32 reg) in plgpio_reg_set() 102 static inline void plgpio_reg_reset(void __iomem *base, u32 pin, u32 reg) in plgpio_reg_reset() 374 int regs_count, count, pin, offset, i = 0; in plgpio_irq_handler() local 426 static int spear310_p2o(int pin) in spear310_p2o()
|
/drivers/input/mouse/ |
D | gpio_mouse.c | 54 int pin, i; in gpio_mouse_probe() local 157 int pin, i; in gpio_mouse_remove() local
|
/drivers/media/usb/dvb-usb-v2/ |
D | mxl111sf-gpio.c | 35 static int mxl111sf_set_gpo_state(struct mxl111sf_state *state, u8 pin, u8 val) in mxl111sf_set_gpo_state() 68 static int mxl111sf_get_gpi_state(struct mxl111sf_state *state, u8 pin, u8 *val) in mxl111sf_get_gpi_state() 112 u8 pin; member
|