/drivers/media/cec/core/ |
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 …]
|
/drivers/gpio/ |
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 …]
|
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()
|
D | gpio-dln2.c | 66 __le16 pin; member 89 static int dln2_gpio_pin_cmd(struct dln2_gpio *dln2, int cmd, unsigned pin) in dln2_gpio_pin_cmd() 98 static int dln2_gpio_pin_val(struct dln2_gpio *dln2, int cmd, unsigned int pin) in dln2_gpio_pin_val() 116 static int dln2_gpio_pin_get_in_val(struct dln2_gpio *dln2, unsigned int pin) in dln2_gpio_pin_get_in_val() 126 static int dln2_gpio_pin_get_out_val(struct dln2_gpio *dln2, unsigned int pin) in dln2_gpio_pin_get_out_val() 137 unsigned int pin, int value) in dln2_gpio_pin_set_out_val() 286 static int dln2_gpio_set_event_cfg(struct dln2_gpio *dln2, unsigned pin, in dln2_gpio_set_event_cfg() 290 __le16 pin; in dln2_gpio_set_event_cfg() member 307 int pin = irqd_to_hwirq(irqd); in dln2_irq_unmask() local 316 int pin = irqd_to_hwirq(irqd); in dln2_irq_mask() local [all …]
|
D | gpio-zevio.c | 60 static inline u32 zevio_gpio_port_get(struct zevio_gpio *c, unsigned pin, in zevio_gpio_port_get() 67 static inline void zevio_gpio_port_set(struct zevio_gpio *c, unsigned pin, in zevio_gpio_port_set() 75 static int zevio_gpio_get(struct gpio_chip *chip, unsigned pin) in zevio_gpio_get() 91 static void zevio_gpio_set(struct gpio_chip *chip, unsigned pin, int value) in zevio_gpio_set() 107 static int zevio_gpio_direction_input(struct gpio_chip *chip, unsigned pin) in zevio_gpio_direction_input() 124 unsigned pin, int value) in zevio_gpio_direction_output() 146 static int zevio_gpio_to_irq(struct gpio_chip *chip, unsigned pin) in zevio_gpio_to_irq()
|
D | gpio-wcd934x.c | 20 static int wcd_gpio_get_direction(struct gpio_chip *chip, unsigned int pin) in wcd_gpio_get_direction() 36 static int wcd_gpio_direction_input(struct gpio_chip *chip, unsigned int pin) in wcd_gpio_direction_input() 44 static int wcd_gpio_direction_output(struct gpio_chip *chip, unsigned int pin, in wcd_gpio_direction_output() 57 static int wcd_gpio_get(struct gpio_chip *chip, unsigned int pin) in wcd_gpio_get() 67 static void wcd_gpio_set(struct gpio_chip *chip, unsigned int pin, int val) in wcd_gpio_set()
|
D | gpio-vr41xx.c | 114 unsigned int pin; in mask_ack_giuint_low() local 172 unsigned int pin; in mask_ack_giuint_high() local 223 void vr41xx_set_irq_trigger(unsigned int pin, irq_trigger_t trigger, in vr41xx_set_irq_trigger() 302 void vr41xx_set_irq_level(unsigned int pin, irq_level_t level) in vr41xx_set_irq_level() 324 static int giu_set_direction(struct gpio_chip *chip, unsigned pin, int dir) in giu_set_direction() 372 static int vr41xx_gpio_get(struct gpio_chip *chip, unsigned pin) in vr41xx_gpio_get() 399 static void vr41xx_gpio_set(struct gpio_chip *chip, unsigned pin, in vr41xx_gpio_set() 468 unsigned int trigger, i, pin; in giu_probe() local
|
/drivers/pinctrl/mediatek/ |
D | pinctrl-mtk-common.c | 54 unsigned long pin) in mtk_get_regmap() 61 static unsigned int mtk_get_port(struct mtk_pinctrl *pctl, unsigned long pin) in mtk_get_port() 109 static int mtk_pconf_set_ies_smt(struct mtk_pinctrl *pctl, unsigned pin, in mtk_pconf_set_ies_smt() 156 unsigned int pin, unsigned char align, int value) in mtk_pconf_spec_set_ies_smt_range() 181 struct mtk_pinctrl *pctl, unsigned long pin) { in mtk_find_pin_drv_grp_by_pin() 195 unsigned int pin, unsigned char driving) in mtk_pconf_set_driving() 227 unsigned int info_num, unsigned int pin, in mtk_pctrl_spec_pull_set_samereg() 286 unsigned int pin, bool enable, bool isup, unsigned int arg) in mtk_pconf_set_pull_select() 335 unsigned int pin, enum pin_config_param param, in mtk_pconf_parse_conf() 410 mtk_pctrl_find_group_by_pin(struct mtk_pinctrl *pctl, u32 pin) in mtk_pctrl_find_group_by_pin() [all …]
|
D | pinctrl-mt2701.c | 26 unsigned short pin; member 273 static int mt2701_spec_pull_set(struct regmap *regmap, unsigned int pin, in mt2701_spec_pull_set() 439 static int mt2701_ies_smt_set(struct regmap *regmap, unsigned int pin, in mt2701_ies_smt_set() 474 static void mt2701_spec_pinmux_set(struct regmap *reg, unsigned int pin, in mt2701_spec_pinmux_set() 498 static void mt2701_spec_dir_set(unsigned int *reg_addr, unsigned int pin) in mt2701_spec_dir_set()
|
/drivers/pinctrl/meson/ |
D | pinctrl-meson.c | 72 static int meson_get_bank(struct meson_pinctrl *pc, unsigned int pin, in meson_get_bank() 97 static void meson_calc_reg_and_bit(struct meson_bank *bank, unsigned int pin, in meson_calc_reg_and_bit() 180 unsigned int pin, in meson_pinconf_set_gpio_bit() 198 unsigned int pin, in meson_pinconf_get_gpio_bit() 218 unsigned int pin, in meson_pinconf_set_output() 225 unsigned int pin) in meson_pinconf_get_output() 236 unsigned int pin, in meson_pinconf_set_drive() 243 unsigned int pin) in meson_pinconf_get_drive() 249 unsigned int pin, in meson_pinconf_set_output_drive() 262 unsigned int pin) in meson_pinconf_disable_bias() [all …]
|
/drivers/acpi/ |
D | pci_irq.c | 32 u8 pin; member 37 static inline char pin_name(int pin) in pin_name() 88 unsigned char pin; member 141 int pin, struct acpi_pci_routing_table *prt, in acpi_pci_irq_check_entry() 207 int pin, struct acpi_prt_entry **entry_ptr) in acpi_pci_irq_find_prt_entry() 298 static struct acpi_prt_entry *acpi_pci_irq_lookup(struct pci_dev *dev, int pin) in acpi_pci_irq_lookup() 378 static inline bool acpi_pci_irq_valid(struct pci_dev *dev, u8 pin) in acpi_pci_irq_valid() 399 u8 pin; in acpi_pci_irq_enable() local 493 u8 pin; in acpi_pci_irq_disable() local
|
/drivers/pinctrl/intel/ |
D | pinctrl-intel.c | 92 unsigned int pin) in intel_get_community() 110 unsigned int pin) in intel_community_get_padgroup() 125 unsigned int pin, unsigned int reg) in intel_get_padcfg() 144 static bool intel_pad_owned_by_host(struct intel_pinctrl *pctrl, unsigned int pin) in intel_pad_owned_by_host() 169 static bool intel_pad_acpi_mode(struct intel_pinctrl *pctrl, unsigned int pin) in intel_pad_acpi_mode() 212 static int intel_pad_locked(struct intel_pinctrl *pctrl, unsigned int pin) in intel_pad_locked() 250 static bool intel_pad_is_unlocked(struct intel_pinctrl *pctrl, unsigned int pin) in intel_pad_is_unlocked() 255 static bool intel_pad_usable(struct intel_pinctrl *pctrl, unsigned int pin) in intel_pad_usable() 286 unsigned int pin) in intel_pin_dbg_show() 462 unsigned int pin) in intel_gpio_request_enable() [all …]
|
/drivers/input/misc/ |
D | ixp4xx-beeper.c | 31 static void ixp4xx_spkr_control(unsigned int pin, unsigned int count) in ixp4xx_spkr_control() 51 unsigned int pin = (unsigned int) input_get_drvdata(dev); in ixp4xx_spkr_event() local 77 unsigned int pin = (unsigned int) dev_id; in ixp4xx_spkr_interrupt() local 150 unsigned int pin = (unsigned int) input_get_drvdata(input_dev); in ixp4xx_spkr_remove() local 167 unsigned int pin = (unsigned int) input_get_drvdata(input_dev); in ixp4xx_spkr_shutdown() local
|
/drivers/pinctrl/aspeed/ |
D | pinmux-aspeed.h | 595 #define SIG_EXPR_LIST_ALIAS(pin, sig, group) \ argument 613 #define SIG_EXPR_LIST_DECL_SESG(pin, sig, func, ...) \ argument 629 #define SIG_EXPR_LIST_DECL_SEMG(pin, sig, group, func, ...) \ argument 645 #define SIG_EXPR_LIST_DECL_DESG(pin, sig, f0, f1) \ argument 653 #define PIN_EXPRS_SYM(pin) pin_exprs_ ## pin argument 654 #define PIN_EXPRS_PTR(pin) (&PIN_EXPRS_SYM(pin)[0]) argument 655 #define PIN_SYM(pin) pin_ ## pin argument 657 #define PIN_DECL_(pin, ...) \ argument 676 #define PIN_DECL_1(pin, other, sig) \ argument 693 #define SSSF_PIN_DECL(pin, other, sig, ...) \ argument [all …]
|
/drivers/gpu/drm/amd/display/dc/gpio/ |
D | hw_gpio.c | 64 struct hw_gpio *pin = FROM_HW_GPIO_PIN(ptr); in dal_hw_gpio_open() local 125 struct hw_gpio *pin = FROM_HW_GPIO_PIN(ptr); in dal_hw_gpio_change_mode() local 133 struct hw_gpio *pin = FROM_HW_GPIO_PIN(ptr); in dal_hw_gpio_close() local 180 struct hw_gpio *pin, in dal_hw_gpio_construct() 200 struct hw_gpio *pin) in dal_hw_gpio_destruct()
|
/drivers/gpu/drm/i915/display/ |
D | intel_hotplug.c | 140 enum hpd_pin pin, bool long_hpd) in intel_hpd_irq_storm_detect() 186 enum hpd_pin pin; in intel_hpd_irq_storm_switch_to_polling() local 225 enum hpd_pin pin; in intel_hpd_irq_storm_reenable_work() local 394 enum hpd_pin pin; in i915_hotplug_work_func() local 471 enum hpd_pin pin; in intel_hpd_irq_handler() local 629 enum hpd_pin pin; in i915_hpd_poll_init_work() local 712 bool intel_hpd_disable(struct drm_i915_private *dev_priv, enum hpd_pin pin) in intel_hpd_disable() 729 void intel_hpd_enable(struct drm_i915_private *dev_priv, enum hpd_pin pin) in intel_hpd_enable()
|
/drivers/pinctrl/ |
D | pinctrl-at91.c | 123 uint32_t pin; member 350 static inline int pin_to_bank(unsigned pin) in pin_to_bank() 355 static unsigned pin_to_mask(unsigned int pin) in pin_to_mask() 360 static unsigned two_bit_pin_value_shift_amount(unsigned int pin) in two_bit_pin_value_shift_amount() 368 static unsigned sama5d3_get_drive_register(unsigned int pin) in sama5d3_get_drive_register() 376 static unsigned at91sam9x5_get_drive_register(unsigned int pin) in at91sam9x5_get_drive_register() 389 static unsigned at91_mux_get_pullup(void __iomem *pio, unsigned pin) in at91_mux_get_pullup() 402 static bool at91_mux_get_output(void __iomem *pio, unsigned int pin, bool *val) in at91_mux_get_output() 415 static unsigned at91_mux_get_multidrive(void __iomem *pio, unsigned pin) in at91_mux_get_multidrive() 489 static bool at91_mux_get_deglitch(void __iomem *pio, unsigned pin) in at91_mux_get_deglitch() [all …]
|
D | pinctrl-lpc18xx.c | 211 #define LPC_P(port, pin, f0, f1, f2, f3, f4, f5, f6, f7, a, t) \ argument 423 #define LPC18XX_PIN_P(port, pin) { \ argument 676 unsigned pin) in lpc18xx_pconf_get_i2c0() 721 static int lpc18xx_pin_to_gpio(struct pinctrl_dev *pctldev, unsigned pin) in lpc18xx_pin_to_gpio() 760 int *arg, unsigned pin) in lpc18xx_pconf_get_gpio_pin_int() 785 int *arg, u32 reg, unsigned pin, in lpc18xx_pconf_get_pin() 860 static struct lpc18xx_pin_caps *lpc18xx_get_pin_caps(unsigned pin) in lpc18xx_get_pin_caps() 872 static int lpc18xx_pconf_get(struct pinctrl_dev *pctldev, unsigned pin, in lpc18xx_pconf_get() 933 unsigned pin) in lpc18xx_pconf_set_i2c0() 982 u32 param_val, unsigned pin) in lpc18xx_pconf_set_gpio_pin_int() [all …]
|
/drivers/pinctrl/qcom/ |
D | pinctrl-ssbi-gpio.c | 126 struct pm8xxx_pin_data *pin, int bank) in pm8xxx_read_bank() 147 struct pm8xxx_pin_data *pin, in pm8xxx_write_bank() 226 struct pm8xxx_pin_data *pin = pctrl->desc.pins[group].drv_data; in pm8xxx_pinmux_set_mux() local 249 struct pm8xxx_pin_data *pin = pctrl->desc.pins[offset].drv_data; in pm8xxx_pin_config_get() local 319 struct pm8xxx_pin_data *pin = pctrl->desc.pins[offset].drv_data; in pm8xxx_pin_config_set() local 454 struct pm8xxx_pin_data *pin = pctrl->desc.pins[offset].drv_data; in pm8xxx_gpio_direction_input() local 470 struct pm8xxx_pin_data *pin = pctrl->desc.pins[offset].drv_data; in pm8xxx_gpio_direction_output() local 488 struct pm8xxx_pin_data *pin = pctrl->desc.pins[offset].drv_data; in pm8xxx_gpio_get() local 510 struct pm8xxx_pin_data *pin = pctrl->desc.pins[offset].drv_data; in pm8xxx_gpio_set() local 546 struct pm8xxx_pin_data *pin = pctrl->desc.pins[offset].drv_data; in pm8xxx_gpio_dbg_show_one() local [all …]
|
D | pinctrl-ssbi-mpp.c | 165 struct pm8xxx_pin_data *pin) in pm8xxx_mpp_update() 303 struct pm8xxx_pin_data *pin = pctrl->desc.pins[group].drv_data; in pm8xxx_pinmux_set_mux() local 323 struct pm8xxx_pin_data *pin = pctrl->desc.pins[offset].drv_data; in pm8xxx_pin_config_get() local 373 struct pm8xxx_pin_data *pin = pctrl->desc.pins[offset].drv_data; in pm8xxx_pin_config_set() local 445 struct pm8xxx_pin_data *pin = pctrl->desc.pins[offset].drv_data; in pm8xxx_mpp_direction_input() local 469 struct pm8xxx_pin_data *pin = pctrl->desc.pins[offset].drv_data; in pm8xxx_mpp_direction_output() local 493 struct pm8xxx_pin_data *pin = pctrl->desc.pins[offset].drv_data; in pm8xxx_mpp_get() local 510 struct pm8xxx_pin_data *pin = pctrl->desc.pins[offset].drv_data; in pm8xxx_mpp_set() local 534 struct pm8xxx_pin_data *pin = pctrl->desc.pins[offset].drv_data; in pm8xxx_mpp_to_irq() local 549 struct pm8xxx_pin_data *pin = pctrl->desc.pins[offset].drv_data; in pm8xxx_mpp_dbg_show_one() local [all …]
|
D | pinctrl-spmi-mpp.c | 211 unsigned pin) in pmic_mpp_get_group_name() 217 unsigned pin, in pmic_mpp_get_group_pins() 302 unsigned pin) in pmic_mpp_set_mux() 330 unsigned int pin, unsigned long *config) in pmic_mpp_config_get() 401 static int pmic_mpp_config_set(struct pinctrl_dev *pctldev, unsigned int pin, in pmic_mpp_config_set() 514 struct seq_file *s, unsigned pin) in pmic_mpp_config_dbg_show() 562 static int pmic_mpp_direction_input(struct gpio_chip *chip, unsigned pin) in pmic_mpp_direction_input() 573 unsigned pin, int val) in pmic_mpp_direction_output() 583 static int pmic_mpp_get(struct gpio_chip *chip, unsigned pin) in pmic_mpp_get() 602 static void pmic_mpp_set(struct gpio_chip *chip, unsigned pin, int value) in pmic_mpp_set() [all …]
|
/drivers/net/dsa/mv88e6xxx/ |
D | global2_scratch.c | 107 unsigned int pin) in mv88e6352_g2_scratch_gpio_get_data() 128 unsigned int pin, int value) in mv88e6352_g2_scratch_gpio_set_data() 152 unsigned int pin) in mv88e6352_g2_scratch_gpio_get_dir() 173 unsigned int pin, bool input) in mv88e6352_g2_scratch_gpio_set_dir() 192 unsigned int pin, int *func) in mv88e6352_g2_scratch_gpio_get_pctl() 216 unsigned int pin, int func) in mv88e6352_g2_scratch_gpio_set_pctl()
|
/drivers/pinctrl/sunxi/ |
D | pinctrl-sunxi.h | 32 #define SUNXI_PINCTRL_PIN(bank, pin) \ argument 125 struct pinctrl_pin_desc pin; member 149 unsigned pin; member 235 static inline u32 sunxi_mux_reg(u16 pin) in sunxi_mux_reg() 244 static inline u32 sunxi_mux_offset(u16 pin) in sunxi_mux_offset() 250 static inline u32 sunxi_data_reg(u16 pin) in sunxi_data_reg() 259 static inline u32 sunxi_data_offset(u16 pin) in sunxi_data_offset() 265 static inline u32 sunxi_dlevel_reg(u16 pin) in sunxi_dlevel_reg() 274 static inline u32 sunxi_dlevel_offset(u16 pin) in sunxi_dlevel_offset() 280 static inline u32 sunxi_pull_reg(u16 pin) in sunxi_pull_reg() [all …]
|
D | pinctrl-sunxi.c | 90 const struct sunxi_desc_pin *pin = pctl->desc->pins + i; in sunxi_pinctrl_desc_find_function_by_name() local 117 const struct sunxi_desc_pin *pin = pctl->desc->pins + i; in sunxi_pinctrl_desc_find_function_by_pin() local 454 static int sunxi_pconf_reg(unsigned pin, enum pin_config_param param, in sunxi_pconf_reg() 479 static int sunxi_pconf_get(struct pinctrl_dev *pctldev, unsigned pin, in sunxi_pconf_get() 541 static int sunxi_pconf_set(struct pinctrl_dev *pctldev, unsigned pin, in sunxi_pconf_set() 624 unsigned pin, in sunxi_pinctrl_set_io_bias_cfg() 710 unsigned pin, in sunxi_pmx_set() 858 u32 pin = offset + chip->base; in sunxi_pinctrl_gpio_get() local 906 int pin, base; in sunxi_pinctrl_gpio_of_xlate() local 1119 int pin, base; in sunxi_pinctrl_irq_of_xlate() local [all …]
|
/drivers/soc/fsl/qe/ |
D | qe_io.c | 47 void __par_io_config_pin(struct qe_pio_regs __iomem *par_io, u8 pin, int dir, in __par_io_config_pin() 108 int par_io_config_pin(u8 port, u8 pin, int dir, int open_drain, in par_io_config_pin() 120 int par_io_data_set(u8 port, u8 pin, u8 val) in par_io_data_set() 172 u8 pin = be32_to_cpu(pio_map[1]); in par_io_of_config() local
|