/openbmc/linux/drivers/media/cec/core/ |
H A D | cec-pin.c | 111 static void cec_pin_update(struct cec_pin *pin, bool v, bool force) in cec_pin_update() 136 static bool cec_pin_read(struct cec_pin *pin) in cec_pin_read() 144 static void cec_pin_low(struct cec_pin *pin) in cec_pin_low() 150 static bool cec_pin_high(struct cec_pin *pin) in cec_pin_high() 156 static bool rx_error_inj(struct cec_pin *pin, unsigned int mode_offset, in rx_error_inj() 190 static bool rx_nack(struct cec_pin *pin) in rx_nack() 195 static bool rx_low_drive(struct cec_pin *pin) in rx_low_drive() 201 static bool rx_add_byte(struct cec_pin *pin) in rx_add_byte() 206 static bool rx_remove_byte(struct cec_pin *pin) in rx_remove_byte() 211 static bool rx_arb_lost(struct cec_pin *pin, u8 *poll) in rx_arb_lost() [all …]
|
/openbmc/u-boot/arch/arm/mach-kirkwood/include/mach/ |
H A D | gpio.h | 18 #define GPIO_OFF(pin) (((pin) >> 5) ? 0x0040 : 0x0000) argument 19 #define GPIO_OUT(pin) (MVEBU_GPIO0_BASE + GPIO_OFF(pin) + 0x00) argument 20 #define GPIO_IO_CONF(pin) (MVEBU_GPIO0_BASE + GPIO_OFF(pin) + 0x04) argument 21 #define GPIO_BLINK_EN(pin) (MVEBU_GPIO0_BASE + GPIO_OFF(pin) + 0x08) argument 22 #define GPIO_IN_POL(pin) (MVEBU_GPIO0_BASE + GPIO_OFF(pin) + 0x0c) argument 23 #define GPIO_DATA_IN(pin) (MVEBU_GPIO0_BASE + GPIO_OFF(pin) + 0x10) argument 24 #define GPIO_EDGE_CAUSE(pin) (MVEBU_GPIO0_BASE + GPIO_OFF(pin) + 0x14) argument 25 #define GPIO_EDGE_MASK(pin) (MVEBU_GPIO0_BASE + GPIO_OFF(pin) + 0x18) argument 26 #define GPIO_LEVEL_MASK(pin) (MVEBU_GPIO0_BASE + GPIO_OFF(pin) + 0x1c) argument
|
/openbmc/u-boot/drivers/gpio/ |
H A D | kw_gpio.c | 24 void __set_direction(unsigned pin, int input) in __set_direction() 38 static void __set_level(unsigned pin, int high) in __set_level() 50 static void __set_blinking(unsigned pin, int blink) in __set_blinking() 62 int kw_gpio_is_valid(unsigned pin, int mode) in kw_gpio_is_valid() 78 void kw_gpio_set_valid(unsigned pin, int mode) in kw_gpio_set_valid() 94 int kw_gpio_direction_input(unsigned pin) in kw_gpio_direction_input() 105 int kw_gpio_direction_output(unsigned pin, int value) in kw_gpio_direction_output() 124 int kw_gpio_get_value(unsigned pin) in kw_gpio_get_value() 136 void kw_gpio_set_value(unsigned pin, int value) in kw_gpio_set_value() 142 void kw_gpio_set_blink(unsigned pin, int blink) in kw_gpio_set_blink()
|
H A D | at91_gpio.c | 58 int at91_set_pio_pullup(unsigned port, unsigned pin, int use_pullup) in at91_set_pio_pullup() 71 int at91_set_pio_periph(unsigned port, unsigned pin, int use_pullup) in at91_set_pio_periph() 89 int at91_set_a_periph(unsigned port, unsigned pin, int use_pullup) in at91_set_a_periph() 108 int at91_set_b_periph(unsigned port, unsigned pin, int use_pullup) in at91_set_b_periph() 127 int at91_pio3_set_a_periph(unsigned port, unsigned pin, int use_pullup) in at91_pio3_set_a_periph() 150 int at91_pio3_set_b_periph(unsigned port, unsigned pin, int use_pullup) in at91_pio3_set_b_periph() 172 int at91_pio3_set_c_periph(unsigned port, unsigned pin, int use_pullup) in at91_pio3_set_c_periph() 194 int at91_pio3_set_d_periph(unsigned port, unsigned pin, int use_pullup) in at91_pio3_set_d_periph() 240 int at91_set_pio_input(unsigned port, u32 pin, int use_pullup) in at91_set_pio_input() 270 int at91_set_pio_output(unsigned port, u32 pin, int value) in at91_set_pio_output() [all …]
|
H A D | atmel_pio4.c | 45 static int atmel_pio4_config_io_func(u32 port, u32 pin, in atmel_pio4_config_io_func() 68 int atmel_pio4_set_gpio(u32 port, u32 pin, u32 config) in atmel_pio4_set_gpio() 75 int atmel_pio4_set_a_periph(u32 port, u32 pin, u32 config) in atmel_pio4_set_a_periph() 82 int atmel_pio4_set_b_periph(u32 port, u32 pin, u32 config) in atmel_pio4_set_b_periph() 89 int atmel_pio4_set_c_periph(u32 port, u32 pin, u32 config) in atmel_pio4_set_c_periph() 96 int atmel_pio4_set_d_periph(u32 port, u32 pin, u32 config) in atmel_pio4_set_d_periph() 103 int atmel_pio4_set_e_periph(u32 port, u32 pin, u32 config) in atmel_pio4_set_e_periph() 110 int atmel_pio4_set_f_periph(u32 port, u32 pin, u32 config) in atmel_pio4_set_f_periph() 117 int atmel_pio4_set_g_periph(u32 port, u32 pin, u32 config) in atmel_pio4_set_g_periph() 124 int atmel_pio4_set_pio_output(u32 port, u32 pin, u32 value) in atmel_pio4_set_pio_output() [all …]
|
/openbmc/openbmc/meta-ingrasys/meta-zaius/recipes-phosphor/skeleton/obmc-libobmc-intf/ |
H A D | gpio_defs.json | 19 "pin": "R1", string 24 "pin": "D1", string 29 "pin": "D2", string 34 "pin": "D3", string 39 "pin": "D4", string 44 "pin": "A1", string 49 "pin": "A3", string 54 "pin": "B4", string 59 "pin": "I3", string 64 "pin": "AA0", string [all …]
|
/openbmc/openbmc/meta-ibm/meta-romulus/recipes-phosphor/skeleton/obmc-libobmc-intf/ |
H A D | gpio_defs.json | 18 "pin": "R1", string 23 "pin": "D1", string 28 "pin": "D2", string 33 "pin": "N5", string 38 "pin": "J2", string 43 "pin": "A1", string 48 "pin": "A3", string 53 "pin": "J3", string 58 "pin": "Q7", string 63 "pin": "I3", string [all …]
|
/openbmc/openbmc/meta-facebook/recipes-phosphor/phosphor-buttons/obmc-phosphor-buttons/yosemitev2/ |
H A D | gpio_defs.json | 5 "pin": "D0", string 10 "pin": "AB0", string 15 "pin": "O3", string 24 "pin": "AA4", string 31 "pin": "AA5", string 38 "pin": "AA6", string 45 "pin": "AA7", string 72 "pin": "E0", string 78 "pin": "E1", string 84 "pin": "E2", string [all …]
|
/openbmc/linux/drivers/gpio/ |
H A D | gpio-lpc32xx.c | 179 unsigned pin, int input) in __set_gpio_dir_p012() 190 unsigned pin, int input) in __set_gpio_dir_p3() 201 unsigned pin, int high) in __set_gpio_level_p012() 212 unsigned pin, int high) in __set_gpio_level_p3() 223 unsigned pin, int high) in __set_gpo_level_p3() 232 unsigned pin) in __get_gpio_state_p012() 239 unsigned pin) in __get_gpio_state_p3() 251 unsigned pin) in __get_gpi_state_p3() 257 unsigned pin) in __get_gpo_state_p3() 266 unsigned pin) in lpc32xx_gpio_dir_input_p012() [all …]
|
H A D | gpio-sama5d2-piobu.c | 58 static int sama5d2_piobu_setup_pin(struct gpio_chip *chip, unsigned int pin) in sama5d2_piobu_setup_pin() 79 static int sama5d2_piobu_write_value(struct gpio_chip *chip, unsigned int pin, in sama5d2_piobu_write_value() 95 static int sama5d2_piobu_read_value(struct gpio_chip *chip, unsigned int pin, in sama5d2_piobu_read_value() 115 unsigned int pin) in sama5d2_piobu_get_direction() 130 unsigned int pin) in sama5d2_piobu_direction_input() 139 unsigned int pin, int value) in sama5d2_piobu_direction_output() 153 static int sama5d2_piobu_get(struct gpio_chip *chip, unsigned int pin) in sama5d2_piobu_get() 172 static void sama5d2_piobu_set(struct gpio_chip *chip, unsigned int pin, in sama5d2_piobu_set()
|
/openbmc/openbmc/meta-ibm/recipes-phosphor/skeleton/obmc-libobmc-intf/swift/ |
H A D | gpio_defs.json | 19 "pin": "A0", string 24 "pin": "R1", string 29 "pin": "A2", string 34 "pin": "J2", string 39 "pin": "A1", string 44 "pin": "B7", string 49 "pin": "A3", string 54 "pin": "I3", string 59 "pin": "B5", string
|
/openbmc/openbmc/meta-ibm/recipes-phosphor/skeleton/obmc-libobmc-intf/witherspoon-tacoma/ |
H A D | gpio_defs.json | 19 "pin": "R1", string 24 "pin": "H5", string 29 "pin": "R2", string 34 "pin": "E3", string 39 "pin": "Q0", string 44 "pin": "R0", string 49 "pin": "Q1", string 54 "pin": "E0", string
|
/openbmc/openbmc/meta-ibm/recipes-phosphor/skeleton/obmc-libobmc-intf/witherspoon/ |
H A D | gpio_defs.json | 19 "pin": "D1", string 24 "pin": "R1", string 29 "pin": "D2", string 34 "pin": "J2", string 39 "pin": "A1", string 44 "pin": "B7", string 49 "pin": "A3", string 54 "pin": "I3", string
|
/openbmc/openbmc/meta-ibm/meta-palmetto/recipes-phosphor/skeleton/obmc-libobmc-intf/ |
H A D | gpio_defs.json | 21 "pin": "E1", string 26 "pin": "C7", string 31 "pin": "J3", string 36 "pin": "Q7", string 41 "pin": "E0", string 46 "pin": "B5", string 51 "pin": "B6", string 56 "pin": "P5", string
|
/openbmc/u-boot/arch/arm/mach-tegra/ |
H A D | pinmux-common.c | 12 #define pmux_pingrp_isvalid(pin) (((pin) >= 0) && ((pin) < PMUX_PINGRP_COUNT)) argument 95 #define REG(pin) _R(0x3000 + ((pin) * 4)) argument 97 #define MUX_REG(pin) REG(pin) argument 98 #define MUX_SHIFT(pin) 0 argument 100 #define PULL_REG(pin) REG(pin) argument 101 #define PULL_SHIFT(pin) 2 argument 103 #define TRI_REG(pin) REG(pin) argument 104 #define TRI_SHIFT(pin) 4 argument 157 void pinmux_set_func(enum pmux_pingrp pin, enum pmux_func func) in pinmux_set_func() 189 void pinmux_set_pullupdown(enum pmux_pingrp pin, enum pmux_pull pupd) in pinmux_set_pullupdown() [all …]
|
/openbmc/linux/drivers/pinctrl/ |
H A D | pinctrl-keembay.c | 58 #define KEEMBAY_GPIO_REG_OFFSET(pin) ((pin) * 4) argument 861 static inline u32 keembay_read_reg(void __iomem *base, unsigned int pin) in keembay_read_reg() 866 static inline u32 keembay_read_gpio_reg(void __iomem *base, unsigned int pin) in keembay_read_gpio_reg() 871 static inline u32 keembay_read_pin(void __iomem *base, unsigned int pin) in keembay_read_pin() 878 static inline void keembay_write_reg(u32 val, void __iomem *base, unsigned int pin) in keembay_write_reg() 883 static inline void keembay_write_gpio_reg(u32 val, void __iomem *base, unsigned int pin) in keembay_write_gpio_reg() 888 static void keembay_gpio_invert(struct keembay_pinctrl *kpc, unsigned int pin) in keembay_gpio_invert() 902 static void keembay_gpio_restore_default(struct keembay_pinctrl *kpc, unsigned int pin) in keembay_gpio_restore_default() 911 struct pinctrl_gpio_range *range, unsigned int pin) in keembay_request_gpio() 937 int pin; in keembay_set_mux() local [all …]
|
/openbmc/openbmc/meta-ampere/meta-jade/recipes-phosphor/skeleton/obmc-libobmc-intf/ |
H A D | gpio_defs.json | 20 "pin": "F4", string 25 "pin": "F2", string 30 "pin": "R4", string 35 "pin": "L3", string 40 "pin": "L4", string 45 "pin": "B4", string 50 "pin": "R5", string 55 "pin": "Q5", string
|
/openbmc/openbmc/meta-ampere/meta-mitchell/recipes-phosphor/skeleton/obmc-libobmc-intf/ |
H A D | mtmitchell_gpio_defs.json | 16 "pin": "H3", string 21 "pin": "F2", string 26 "pin": "I6", string 31 "pin": "Z0", string 36 "pin": "W1", string 41 "pin": "S2", string
|
/openbmc/openbmc/meta-ampere/meta-jefferson/recipes-phosphor/skeleton/obmc-libobmc-intf/ |
H A D | gpio_defs.json | 16 "pin": "H3", string 21 "pin": "F2", string 26 "pin": "I6", string 31 "pin": "L4", string 36 "pin": "W1", string 41 "pin": "S2", string
|
/openbmc/openbmc/meta-intel-openbmc/meta-s2600wf/recipes-phosphor/skeleton/obmc-libobmc-intf/ |
H A D | gpio_defs.json | 18 "pin": "AB3", string 23 "pin": "E2", string 28 "pin": "E3", string 33 "pin": "E0", string 38 "pin": "E1", string 43 "pin": "S6", string
|
/openbmc/openbmc/meta-yadro/meta-nicole/recipes-phosphor/skeleton/obmc-libobmc-intf/ |
H A D | gpio_defs.json | 18 "pin": "R1", string 23 "pin": "D1", string 28 "pin": "D2", string 33 "pin": "J2", string 38 "pin": "O2", string 43 "pin": "Q7", string
|
/openbmc/u-boot/board/micronas/vct/ |
H A D | gpio.c | 16 #define GPIO_MODULE(pin) ((pin) >> 5) argument 22 #define MASK(pin) (1 << ((pin) & 0x1F)) argument 39 int vct_gpio_dir(int pin, int dir) in vct_gpio_dir() 53 void vct_gpio_set(int pin, int val) in vct_gpio_set() 65 int vct_gpio_get(int pin) in vct_gpio_get()
|
/openbmc/linux/drivers/pinctrl/mediatek/ |
H A D | pinctrl-mtk-common.c | 51 unsigned long pin) in mtk_get_regmap() 58 static unsigned int mtk_get_port(struct mtk_pinctrl *pctl, unsigned long pin) in mtk_get_port() 106 static int mtk_pconf_set_ies_smt(struct mtk_pinctrl *pctl, unsigned pin, in mtk_pconf_set_ies_smt() 153 unsigned int pin, int value, enum pin_config_param arg) in mtk_pconf_spec_set_ies_smt_range() 195 struct mtk_pinctrl *pctl, unsigned long pin) { in mtk_find_pin_drv_grp_by_pin() 209 unsigned int pin, unsigned char driving) in mtk_pconf_set_driving() 241 unsigned int pin, bool isup, unsigned int r1r0) in mtk_pctrl_spec_pull_set_samereg() 302 unsigned int pin, bool enable, bool isup, unsigned int arg) in mtk_pconf_set_pull_select() 367 unsigned int pin, enum pin_config_param param, in mtk_pconf_parse_conf() 442 mtk_pctrl_find_group_by_pin(struct mtk_pinctrl *pctl, u32 pin) in mtk_pctrl_find_group_by_pin() [all …]
|
/openbmc/linux/arch/arm/plat-orion/ |
H A D | gpio.c | 97 __set_direction(struct orion_gpio_chip *ochip, unsigned pin, int input) in __set_direction() 109 static void __set_level(struct orion_gpio_chip *ochip, unsigned pin, int high) in __set_level() 122 __set_blinking(struct orion_gpio_chip *ochip, unsigned pin, int blink) in __set_blinking() 135 orion_gpio_is_valid(struct orion_gpio_chip *ochip, unsigned pin, int mode) in orion_gpio_is_valid() 156 static int orion_gpio_request(struct gpio_chip *chip, unsigned pin) in orion_gpio_request() 167 static int orion_gpio_direction_input(struct gpio_chip *chip, unsigned pin) in orion_gpio_direction_input() 182 static int orion_gpio_get(struct gpio_chip *chip, unsigned pin) in orion_gpio_get() 197 orion_gpio_direction_output(struct gpio_chip *chip, unsigned pin, int value) in orion_gpio_direction_output() 214 static void orion_gpio_set(struct gpio_chip *chip, unsigned pin, int value) in orion_gpio_set() 224 static int orion_gpio_to_irq(struct gpio_chip *chip, unsigned pin) in orion_gpio_to_irq() [all …]
|
/openbmc/linux/drivers/acpi/ |
H A D | pci_irq.c | 28 u8 pin; member 33 static inline char pin_name(int pin) in pin_name() 84 unsigned char pin; member 137 int pin, struct acpi_pci_routing_table *prt, in acpi_pci_irq_check_entry() 200 int pin, struct acpi_prt_entry **entry_ptr) in acpi_pci_irq_find_prt_entry() 291 static struct acpi_prt_entry *acpi_pci_irq_lookup(struct pci_dev *dev, int pin) in acpi_pci_irq_lookup() 366 static inline bool acpi_pci_irq_valid(struct pci_dev *dev, u8 pin) in acpi_pci_irq_valid() 387 u8 pin; in acpi_pci_irq_enable() local 481 u8 pin; in acpi_pci_irq_disable() local
|