| /OK3568_Linux_fs/u-boot/arch/m68k/include/asm/ |
| H A D | immap_5445x.h | 101 typedef struct gpio { struct 102 u8 podr_fec0h; /* FEC0 High Port Output Data Register */ 103 u8 podr_fec0l; /* FEC0 Low Port Output Data Register */ 104 u8 podr_ssi; /* SSI Port Output Data Register */ 105 u8 podr_fbctl; /* Flexbus Control Port Output Data Register */ 106 u8 podr_be; /* Flexbus Byte Enable Port Output Data Register */ 107 u8 podr_cs; /* Flexbus Chip-Select Port Output Data Register */ 108 u8 podr_dma; /* DMA Port Output Data Register */ 109 u8 podr_feci2c; /* FEC1 / I2C Port Output Data Register */ 110 u8 resv0[0x1]; [all …]
|
| H A D | immap_5227x.h | 92 typedef struct gpio { struct 94 u8 podr_be; /* 0x00 */ 95 u8 podr_cs; /* 0x01 */ 96 u8 podr_fbctl; /* 0x02 */ 97 u8 podr_i2c; /* 0x03 */ 98 u8 rsvd1; /* 0x04 */ 99 u8 podr_uart; /* 0x05 */ 100 u8 podr_dspi; /* 0x06 */ 101 u8 podr_timer; /* 0x07 */ 102 u8 podr_lcdctl; /* 0x08 */ [all …]
|
| H A D | immap_547x_8x.h | 119 typedef struct gpio { struct 121 u8 podr_fbctl; /*0x00 */ 122 u8 podr_fbcs; /*0x01 */ 123 u8 podr_dma; /*0x02 */ 124 u8 rsvd1; /*0x03 */ 125 u8 podr_fec0h; /*0x04 */ 126 u8 podr_fec0l; /*0x05 */ 127 u8 podr_fec1h; /*0x06 */ 128 u8 podr_fec1l; /*0x07 */ 129 u8 podr_feci2c; /*0x08 */ [all …]
|
| H A D | immap_5441x.h | 126 typedef struct gpio { struct 127 u8 podr_a; /* 0x00 */ 128 u8 podr_b; /* 0x01 */ 129 u8 podr_c; /* 0x02 */ 130 u8 podr_d; /* 0x03 */ 131 u8 podr_e; /* 0x04 */ 132 u8 podr_f; /* 0x05 */ 133 u8 podr_g; /* 0x06 */ 134 u8 podr_h; /* 0x07 */ 135 u8 podr_i; /* 0x08 */ [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/gpio/ |
| H A D | gpio_base.c | 55 struct gpio *gpio, in dal_gpio_open() 62 struct gpio *gpio, in dal_gpio_open_ex() 81 const struct gpio *gpio, in dal_gpio_get_value() 93 const struct gpio *gpio, in dal_gpio_set_value() 105 const struct gpio *gpio) in dal_gpio_get_mode() 111 struct gpio *gpio) in dal_gpio_lock_pin() 117 struct gpio *gpio) in dal_gpio_unlock_pin() 123 struct gpio *gpio, in dal_gpio_change_mode() 135 const struct gpio *gpio) in dal_gpio_get_id() 141 const struct gpio *gpio) in dal_gpio_get_enum() [all …]
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | gpio.h | 50 struct gpio { struct 51 unsigned gpio; member 59 #include <asm/gpio.h> argument 64 static inline int gpio_get_value(unsigned int gpio) in gpio_get_value() 69 static inline void gpio_set_value(unsigned int gpio, int value) in gpio_set_value() 74 static inline int gpio_cansleep(unsigned int gpio) in gpio_cansleep() 79 static inline int gpio_to_irq(unsigned int gpio) in gpio_to_irq() 114 static inline int gpio_request(unsigned gpio, const char *label) in gpio_request() 119 static inline int gpio_request_one(unsigned gpio, in gpio_request_one() 130 static inline void gpio_free(unsigned gpio) in gpio_free() [all …]
|
| /OK3568_Linux_fs/kernel/arch/mips/include/asm/mach-au1x00/ |
| H A D | gpio-au1000.h | 45 static inline int au1000_gpio1_to_irq(int gpio) in au1000_gpio1_to_irq() 50 static inline int au1000_gpio2_to_irq(int gpio) in au1000_gpio2_to_irq() 63 static inline int au1500_gpio1_to_irq(int gpio) in au1500_gpio1_to_irq() 76 static inline int au1500_gpio2_to_irq(int gpio) in au1500_gpio2_to_irq() 109 static inline int au1100_gpio1_to_irq(int gpio) in au1100_gpio1_to_irq() 114 static inline int au1100_gpio2_to_irq(int gpio) in au1100_gpio2_to_irq() 136 static inline int au1550_gpio1_to_irq(int gpio) in au1550_gpio1_to_irq() 149 static inline int au1550_gpio2_to_irq(int gpio) in au1550_gpio2_to_irq() 180 static inline int au1200_gpio1_to_irq(int gpio) in au1200_gpio1_to_irq() 185 static inline int au1200_gpio2_to_irq(int gpio) in au1200_gpio2_to_irq() [all …]
|
| H A D | gpio-au1300.h | 29 static inline int au1300_gpio_get_value(unsigned int gpio) in au1300_gpio_get_value() 40 static inline int au1300_gpio_direction_input(unsigned int gpio) in au1300_gpio_direction_input() 55 static inline int au1300_gpio_set_value(unsigned int gpio, int v) in au1300_gpio_set_value() 71 static inline int au1300_gpio_direction_output(unsigned int gpio, int v) in au1300_gpio_direction_output() 77 static inline int au1300_gpio_to_irq(unsigned int gpio) in au1300_gpio_to_irq() 87 static inline int au1300_gpio_is_valid(unsigned int gpio) in au1300_gpio_is_valid() 101 static inline int au1300_gpio_cansleep(unsigned int gpio) in au1300_gpio_cansleep() 107 static inline int au1300_gpio_getinitlvl(unsigned int gpio) in au1300_gpio_getinitlvl()
|
| /OK3568_Linux_fs/kernel/include/asm-generic/ |
| H A D | gpio.h | 57 static inline struct gpio_chip *gpio_to_chip(unsigned gpio) in gpio_to_chip() 68 static inline int gpio_direction_input(unsigned gpio) in gpio_direction_input() 72 static inline int gpio_direction_output(unsigned gpio, int value) in gpio_direction_output() 77 static inline int gpio_set_debounce(unsigned gpio, unsigned debounce) in gpio_set_debounce() 82 static inline int gpio_get_value_cansleep(unsigned gpio) in gpio_get_value_cansleep() 86 static inline void gpio_set_value_cansleep(unsigned gpio, int value) in gpio_set_value_cansleep() 96 static inline int __gpio_get_value(unsigned gpio) in __gpio_get_value() 100 static inline void __gpio_set_value(unsigned gpio, int value) in __gpio_set_value() 105 static inline int __gpio_cansleep(unsigned gpio) in __gpio_cansleep() 110 static inline int __gpio_to_irq(unsigned gpio) in __gpio_to_irq() [all …]
|
| /OK3568_Linux_fs/kernel/arch/m68k/include/asm/ |
| H A D | mcfgpio.h | 23 static inline int __gpio_get_value(unsigned gpio) in __gpio_get_value() 31 static inline void __gpio_set_value(unsigned gpio, int value) in __gpio_set_value() 37 static inline int __gpio_cansleep(unsigned gpio) in __gpio_cansleep() 45 static inline int __gpio_to_irq(unsigned gpio) in __gpio_to_irq() 50 static inline int gpio_direction_input(unsigned gpio) in gpio_direction_input() 58 static inline int gpio_direction_output(unsigned gpio, int value) in gpio_direction_output() 66 static inline int gpio_request(unsigned gpio, const char *label) in gpio_request() 74 static inline void gpio_free(unsigned gpio) in gpio_free() 129 #define mcfgpio_bit(gpio) (1 << ((gpio) % MCFGPIO_PORTSIZE)) argument 130 #define mcfgpio_port(gpio) ((gpio) / MCFGPIO_PORTSIZE) argument [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/gpio/ |
| H A D | s5p_gpio.c | 22 #define CON_SFR(gpio, cfg) ((cfg) << ((gpio) << 2)) argument 23 #define CON_SFR_UNSHIFT(val, gpio) ((val) >> ((gpio) << 2)) argument 25 #define DAT_MASK(gpio) (0x1 << (gpio)) argument 26 #define DAT_SET(gpio) (0x1 << (gpio)) argument 28 #define PULL_MASK(gpio) (0x3 << ((gpio) << 1)) argument 29 #define PULL_MODE(gpio, pull) ((pull) << ((gpio) << 1)) argument 31 #define DRV_MASK(gpio) (0x3 << ((gpio) << 1)) argument 32 #define DRV_SET(gpio, mode) ((mode) << ((gpio) << 1)) argument 33 #define RATE_MASK(gpio) (0x1 << (gpio + 16)) argument 34 #define RATE_SET(gpio) (0x1 << (gpio + 16)) argument [all …]
|
| H A D | spear_gpio.c | 17 static int gpio_direction(unsigned gpio, in gpio_direction() 35 int gpio_set_value(unsigned gpio, int value) in gpio_set_value() 47 int gpio_get_value(unsigned gpio) in gpio_get_value() 57 int gpio_request(unsigned gpio, const char *label) in gpio_request() 65 int gpio_free(unsigned gpio) in gpio_free() 70 void gpio_toggle_value(unsigned gpio) in gpio_toggle_value() 75 int gpio_direction_input(unsigned gpio) in gpio_direction_input() 80 int gpio_direction_output(unsigned gpio, int value) in gpio_direction_output()
|
| H A D | omap_gpio.c | 45 static inline int get_gpio_index(int gpio) in get_gpio_index() 50 int gpio_is_valid(int gpio) in gpio_is_valid() 55 static void _set_gpio_direction(const struct gpio_bank *bank, int gpio, in _set_gpio_direction() 75 static int _get_gpio_direction(const struct gpio_bank *bank, int gpio) in _get_gpio_direction() 90 static void _set_gpio_dataout(const struct gpio_bank *bank, int gpio, in _set_gpio_dataout() 105 static int _get_gpio_value(const struct gpio_bank *bank, int gpio) in _get_gpio_value() 127 static inline const struct gpio_bank *get_gpio_bank(int gpio) in get_gpio_bank() 132 static int check_gpio(int gpio) in check_gpio() 144 int gpio_set_value(unsigned gpio, int value) in gpio_set_value() 159 int gpio_get_value(unsigned gpio) in gpio_get_value() [all …]
|
| H A D | adi_gpio2.c | 20 static void gpio_error(unsigned gpio) in gpio_error() 59 inline int check_gpio(unsigned gpio) in check_gpio() 72 static void port_setup(unsigned gpio, unsigned short usage) in port_setup() 111 unsigned short get_gpio_dir(unsigned gpio) in get_gpio_dir() 246 int gpio_request(unsigned gpio, const char *label) in gpio_request() 279 int gpio_free(unsigned gpio) in gpio_free() 299 int special_gpio_request(unsigned gpio, const char *label) in special_gpio_request() 331 void special_gpio_free(unsigned gpio) in special_gpio_free() 344 static inline void __gpio_direction_input(unsigned gpio) in __gpio_direction_input() 354 int gpio_direction_input(unsigned gpio) in gpio_direction_input() [all …]
|
| H A D | xilinx_gpio.c | 48 static struct xilinx_gpio_priv *gpio_get_controller(unsigned gpio) in gpio_get_controller() 66 static char *get_name(unsigned gpio) in get_name() 84 static int gpio_get_output_value(unsigned gpio) in gpio_get_output_value() 101 static int gpio_get_input_value(unsigned gpio) in gpio_get_input_value() 121 static int gpio_set_direction(unsigned gpio, enum gpio_direction direction) in gpio_set_direction() 148 static int gpio_get_direction(unsigned gpio) in gpio_get_direction() 173 int gpio_get_value(unsigned gpio) in gpio_get_value() 186 static int gpio_set_output_value(unsigned gpio, int value) in gpio_set_output_value() 212 int gpio_set_value(unsigned gpio, int value) in gpio_set_value() 221 int gpio_direction_input(unsigned gpio) in gpio_direction_input() [all …]
|
| H A D | mvgpio.c | 22 int gpio_request(unsigned gpio, const char *label) in gpio_request() 31 int gpio_free(unsigned gpio) in gpio_free() 36 int gpio_direction_input(unsigned gpio) in gpio_direction_input() 50 int gpio_direction_output(unsigned gpio, int value) in gpio_direction_output() 65 int gpio_get_value(unsigned gpio) in gpio_get_value() 81 int gpio_set_value(unsigned gpio, int value) in gpio_set_value()
|
| /OK3568_Linux_fs/kernel/drivers/ssb/ |
| H A D | driver_gpio.c | 26 static int ssb_gpio_to_irq(struct gpio_chip *chip, unsigned int gpio) in ssb_gpio_to_irq() 41 static int ssb_gpio_chipco_get_value(struct gpio_chip *chip, unsigned int gpio) in ssb_gpio_chipco_get_value() 48 static void ssb_gpio_chipco_set_value(struct gpio_chip *chip, unsigned int gpio, in ssb_gpio_chipco_set_value() 57 unsigned int gpio) in ssb_gpio_chipco_direction_input() 66 unsigned int gpio, int value) in ssb_gpio_chipco_direction_output() 75 static int ssb_gpio_chipco_request(struct gpio_chip *chip, unsigned int gpio) in ssb_gpio_chipco_request() 88 static void ssb_gpio_chipco_free(struct gpio_chip *chip, unsigned int gpio) in ssb_gpio_chipco_free() 100 int gpio = irqd_to_hwirq(d); in ssb_gpio_irq_chipco_mask() local 108 int gpio = irqd_to_hwirq(d); in ssb_gpio_irq_chipco_unmask() local 129 int gpio; in ssb_gpio_irq_chipco_handler() local [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/inc/hw/ |
| H A D | gpio.h | 38 struct gpio { struct 39 struct gpio_service *service; argument 40 struct hw_gpio_pin *pin; argument 41 enum gpio_id id; argument 44 union gpio_hw_container hw_container; argument 45 enum gpio_mode mode; argument 48 enum gpio_pin_output_state output_state; argument
|
| /OK3568_Linux_fs/u-boot/arch/powerpc/include/asm/ |
| H A D | mpc85xx_gpio.h | 23 ccsr_gpio_t *gpio = (void *)(CONFIG_SYS_MPC85xx_GPIO_ADDR); in mpc85xx_gpio_set() local 59 ccsr_gpio_t *gpio = (void *)(CONFIG_SYS_MPC85xx_GPIO_ADDR); in mpc85xx_gpio_get() local 69 static inline int gpio_request(unsigned gpio, const char *label) in gpio_request() 75 static inline int gpio_free(unsigned gpio) in gpio_free() 81 static inline int gpio_direction_input(unsigned gpio) in gpio_direction_input() 87 static inline int gpio_direction_output(unsigned gpio, int value) in gpio_direction_output() 96 static inline int gpio_get_value(unsigned gpio) in gpio_get_value() 101 static inline int gpio_set_value(unsigned gpio, int value) in gpio_set_value() 110 static inline int gpio_is_valid(int gpio) in gpio_is_valid()
|
| /OK3568_Linux_fs/kernel/arch/mips/ar7/ |
| H A D | gpio.c | 22 static int ar7_gpio_get_value(struct gpio_chip *chip, unsigned gpio) in ar7_gpio_get_value() 30 static int titan_gpio_get_value(struct gpio_chip *chip, unsigned gpio) in titan_gpio_get_value() 40 unsigned gpio, int value) in ar7_gpio_set_value() 53 unsigned gpio, int value) in titan_gpio_set_value() 66 static int ar7_gpio_direction_input(struct gpio_chip *chip, unsigned gpio) in ar7_gpio_direction_input() 76 static int titan_gpio_direction_input(struct gpio_chip *chip, unsigned gpio) in titan_gpio_direction_input() 91 unsigned gpio, int value) in ar7_gpio_direction_output() 103 unsigned gpio, int value) in titan_gpio_direction_output() 143 static inline int ar7_gpio_enable_ar7(unsigned gpio) in ar7_gpio_enable_ar7() 152 static inline int ar7_gpio_enable_titan(unsigned gpio) in ar7_gpio_enable_titan() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/nouveau/nvkm/subdev/gpio/ |
| H A D | base.c | 30 nvkm_gpio_drive(struct nvkm_gpio *gpio, int idx, int line, int dir, int out) in nvkm_gpio_drive() 36 nvkm_gpio_sense(struct nvkm_gpio *gpio, int idx, int line) in nvkm_gpio_sense() 42 nvkm_gpio_reset(struct nvkm_gpio *gpio, u8 func) in nvkm_gpio_reset() 49 nvkm_gpio_find(struct nvkm_gpio *gpio, int idx, u8 tag, u8 line, in nvkm_gpio_find() 81 nvkm_gpio_set(struct nvkm_gpio *gpio, int idx, u8 tag, u8 line, int state) in nvkm_gpio_set() 97 nvkm_gpio_get(struct nvkm_gpio *gpio, int idx, u8 tag, u8 line) in nvkm_gpio_get() 115 struct nvkm_gpio *gpio = container_of(event, typeof(*gpio), event); in nvkm_gpio_intr_fini() local 122 struct nvkm_gpio *gpio = container_of(event, typeof(*gpio), event); in nvkm_gpio_intr_init() local 150 struct nvkm_gpio *gpio = nvkm_gpio(subdev); in nvkm_gpio_intr() local 167 struct nvkm_gpio *gpio = nvkm_gpio(subdev); in nvkm_gpio_fini() local [all …]
|
| /OK3568_Linux_fs/kernel/drivers/mfd/ |
| H A D | wm8350-gpio.c | 18 static int gpio_set_dir(struct wm8350 *wm8350, int gpio, int dir) in gpio_set_dir() 35 static int wm8350_gpio_set_debounce(struct wm8350 *wm8350, int gpio, int db) in wm8350_gpio_set_debounce() 45 static int gpio_set_func(struct wm8350 *wm8350, int gpio, int func) in gpio_set_func() 138 static int gpio_set_pull_up(struct wm8350 *wm8350, int gpio, int up) in gpio_set_pull_up() 150 static int gpio_set_pull_down(struct wm8350 *wm8350, int gpio, int down) in gpio_set_pull_down() 162 static int gpio_set_polarity(struct wm8350 *wm8350, int gpio, int pol) in gpio_set_polarity() 174 static int gpio_set_invert(struct wm8350 *wm8350, int gpio, int invert) in gpio_set_invert() 183 int wm8350_gpio_config(struct wm8350 *wm8350, int gpio, int dir, int func, in wm8350_gpio_config()
|
| /OK3568_Linux_fs/kernel/drivers/gpio/ |
| H A D | gpio-dwapb.c | 94 struct dwapb_gpio *gpio; member 131 static inline u32 gpio_reg_convert(struct dwapb_gpio *gpio, unsigned int offset) in gpio_reg_convert() 139 static inline u32 dwapb_read(struct dwapb_gpio *gpio, unsigned int offset) in dwapb_read() 147 static inline void dwapb_write(struct dwapb_gpio *gpio, unsigned int offset, in dwapb_write() 156 static struct dwapb_gpio_port *dwapb_offs_to_port(struct dwapb_gpio *gpio, unsigned int offs) in dwapb_offs_to_port() 170 static void dwapb_toggle_trigger(struct dwapb_gpio *gpio, unsigned int offs) in dwapb_toggle_trigger() 192 static u32 dwapb_do_irq(struct dwapb_gpio *gpio) in dwapb_do_irq() 214 struct dwapb_gpio *gpio = irq_desc_get_handler_data(desc); in dwapb_irq_handler() local 230 struct dwapb_gpio *gpio = to_dwapb_gpio(gc); in dwapb_irq_ack() local 242 struct dwapb_gpio *gpio = to_dwapb_gpio(gc); in dwapb_irq_mask() local [all …]
|
| H A D | gpio-pcf857x.c | 125 struct pcf857x *gpio = gpiochip_get_data(chip); in pcf857x_input() local 138 struct pcf857x *gpio = gpiochip_get_data(chip); in pcf857x_get() local 147 struct pcf857x *gpio = gpiochip_get_data(chip); in pcf857x_output() local 171 struct pcf857x *gpio = data; in pcf857x_irq() local 198 struct pcf857x *gpio = irq_data_get_irq_chip_data(data); in pcf857x_irq_set_wake() local 205 struct pcf857x *gpio = irq_data_get_irq_chip_data(data); in pcf857x_irq_enable() local 212 struct pcf857x *gpio = irq_data_get_irq_chip_data(data); in pcf857x_irq_disable() local 219 struct pcf857x *gpio = irq_data_get_irq_chip_data(data); in pcf857x_irq_bus_lock() local 226 struct pcf857x *gpio = irq_data_get_irq_chip_data(data); in pcf857x_irq_bus_sync_unlock() local 238 struct pcf857x *gpio; in pcf857x_probe() local [all …]
|
| H A D | gpio-lp87565.c | 31 struct lp87565_gpio *gpio = gpiochip_get_data(chip); in lp87565_gpio_get() local 44 struct lp87565_gpio *gpio = gpiochip_get_data(chip); in lp87565_gpio_set() local 53 struct lp87565_gpio *gpio = gpiochip_get_data(chip); in lp87565_gpio_get_direction() local 69 struct lp87565_gpio *gpio = gpiochip_get_data(chip); in lp87565_gpio_direction_input() local 79 struct lp87565_gpio *gpio = gpiochip_get_data(chip); in lp87565_gpio_direction_output() local 90 struct lp87565_gpio *gpio = gpiochip_get_data(gc); in lp87565_gpio_request() local 119 struct lp87565_gpio *gpio = gpiochip_get_data(gc); in lp87565_gpio_set_config() local 156 struct lp87565_gpio *gpio; in lp87565_gpio_probe() local
|