Home
last modified time | relevance | path

Searched defs:pin (Results 1 – 25 of 333) sorted by relevance

12345678910>>...14

/drivers/media/cec/core/
Dcec-pin.c111 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/
Dgpio-lpc32xx.c179 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 …]
Dgpio-sama5d2-piobu.c58 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()
Dgpio-dln2.c66 __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 …]
Dgpio-zevio.c60 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()
Dgpio-wcd934x.c20 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()
Dgpio-vr41xx.c114 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/
Dpinctrl-keembay.c58 #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 …]
Dpinctrl-at91.c125 uint32_t pin; member
352 static inline int pin_to_bank(unsigned pin) in pin_to_bank()
357 static unsigned pin_to_mask(unsigned int pin) in pin_to_mask()
362 static unsigned two_bit_pin_value_shift_amount(unsigned int pin) in two_bit_pin_value_shift_amount()
370 static unsigned sama5d3_get_drive_register(unsigned int pin) in sama5d3_get_drive_register()
378 static unsigned at91sam9x5_get_drive_register(unsigned int pin) in at91sam9x5_get_drive_register()
391 static unsigned at91_mux_get_pullup(void __iomem *pio, unsigned pin) in at91_mux_get_pullup()
404 static bool at91_mux_get_output(void __iomem *pio, unsigned int pin, bool *val) in at91_mux_get_output()
417 static unsigned at91_mux_get_multidrive(void __iomem *pio, unsigned pin) in at91_mux_get_multidrive()
491 static bool at91_mux_get_deglitch(void __iomem *pio, unsigned pin) in at91_mux_get_deglitch()
[all …]
Dpinctrl-lpc18xx.c211 #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 …]
Dpinctrl-zynqmp.c130 unsigned int pin) in zynqmp_pinmux_request_pin()
200 unsigned int pin = pgrp->pins[i]; in zynqmp_pinmux_set_mux() local
214 unsigned int pin) in zynqmp_pinmux_release_pin()
249 unsigned int pin, in zynqmp_pinconf_cfg_get()
343 unsigned int pin, unsigned long *configs, in zynqmp_pinconf_cfg_set()
622 static int zynqmp_pinctrl_get_pin_groups(u32 pin, u32 index, u16 *groups) in zynqmp_pinctrl_get_pin_groups()
642 unsigned int pin) in zynqmp_pinctrl_group_add_pin()
664 unsigned int pin) in zynqmp_pinctrl_create_pin_groups()
703 unsigned int pin; in zynqmp_pinctrl_prepare_group_pins() local
811 struct pinctrl_pin_desc *pins, *pin; in zynqmp_pinctrl_prepare_pin_desc() local
/drivers/pinctrl/mediatek/
Dpinctrl-mtk-common.c53 unsigned long pin) in mtk_get_regmap()
60 static unsigned int mtk_get_port(struct mtk_pinctrl *pctl, unsigned long pin) in mtk_get_port()
108 static int mtk_pconf_set_ies_smt(struct mtk_pinctrl *pctl, unsigned pin, in mtk_pconf_set_ies_smt()
155 unsigned int pin, unsigned char align, int value) in mtk_pconf_spec_set_ies_smt_range()
180 struct mtk_pinctrl *pctl, unsigned long pin) { in mtk_find_pin_drv_grp_by_pin()
194 unsigned int pin, unsigned char driving) in mtk_pconf_set_driving()
226 unsigned int info_num, unsigned int pin, in mtk_pctrl_spec_pull_set_samereg()
285 unsigned int pin, bool enable, bool isup, unsigned int arg) in mtk_pconf_set_pull_select()
334 unsigned int pin, enum pin_config_param param, in mtk_pconf_parse_conf()
409 mtk_pctrl_find_group_by_pin(struct mtk_pinctrl *pctl, u32 pin) in mtk_pctrl_find_group_by_pin()
[all …]
Dpinctrl-mt2701.c26 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/
Dpinctrl-meson.c72 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/
Dpci_irq.c28 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
479 u8 pin; in acpi_pci_irq_disable() local
/drivers/pinctrl/aspeed/
Dpinmux-aspeed.h594 #define SIG_EXPR_LIST_ALIAS(pin, sig, group) \ argument
612 #define SIG_EXPR_LIST_DECL_SESG(pin, sig, func, ...) \ argument
628 #define SIG_EXPR_LIST_DECL_SEMG(pin, sig, group, func, ...) \ argument
644 #define SIG_EXPR_LIST_DECL_DESG(pin, sig, f0, f1) \ argument
652 #define PIN_EXPRS_SYM(pin) pin_exprs_ ## pin argument
653 #define PIN_EXPRS_PTR(pin) (&PIN_EXPRS_SYM(pin)[0]) argument
654 #define PIN_SYM(pin) pin_ ## pin argument
656 #define PIN_DECL_(pin, ...) \ argument
675 #define PIN_DECL_1(pin, other, sig) \ argument
692 #define SSSF_PIN_DECL(pin, other, sig, ...) \ argument
[all …]
/drivers/pinctrl/intel/
Dpinctrl-intel.c102 unsigned int pin) in intel_get_community()
120 unsigned int pin) in intel_community_get_padgroup()
135 unsigned int pin, unsigned int reg) in intel_get_padcfg()
154 static bool intel_pad_owned_by_host(struct intel_pinctrl *pctrl, unsigned int pin) in intel_pad_owned_by_host()
179 static bool intel_pad_acpi_mode(struct intel_pinctrl *pctrl, unsigned int pin) in intel_pad_acpi_mode()
222 static int intel_pad_locked(struct intel_pinctrl *pctrl, unsigned int pin) in intel_pad_locked()
260 static bool intel_pad_is_unlocked(struct intel_pinctrl *pctrl, unsigned int pin) in intel_pad_is_unlocked()
265 static bool intel_pad_usable(struct intel_pinctrl *pctrl, unsigned int pin) in intel_pad_usable()
296 unsigned int pin) in intel_pin_dbg_show()
472 unsigned int pin) in intel_gpio_request_enable()
[all …]
/drivers/gpu/drm/amd/display/dc/gpio/
Dhw_gpio.c64 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/pinctrl/renesas/
Dpinctrl.c119 const char *pin; in sh_pfc_dt_subnode_to_map() local
404 const struct sh_pfc_pin *pin = &pfc->info->pins[idx]; in sh_pfc_gpio_request_enable() local
448 const struct sh_pfc_pin *pin = &pfc->info->pins[idx]; in sh_pfc_gpio_set_direction() local
482 unsigned int pin, unsigned int *offset, unsigned int *size) in sh_pfc_pinconf_find_drive_strength_reg()
505 unsigned int pin) in sh_pfc_pinconf_get_drive_strength()
530 unsigned int pin, u16 strength) in sh_pfc_pinconf_set_drive_strength()
571 const struct sh_pfc_pin *pin = &pfc->info->pins[idx]; in sh_pfc_pinconf_validate() local
639 const struct sh_pfc_pin *pin = &pfc->info->pins[idx]; in sh_pfc_pinconf_get() local
713 const struct sh_pfc_pin *pin = &pfc->info->pins[idx]; in sh_pfc_pinconf_set() local
800 struct pinctrl_pin_desc *pin = &pmx->pins[i]; in sh_pfc_map_pins() local
[all …]
/drivers/gpu/drm/i915/display/
Dintel_hotplug.c140 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
231 enum hpd_pin pin; in intel_hpd_irq_storm_reenable_work() local
399 enum hpd_pin pin; in i915_hotplug_work_func() local
476 enum hpd_pin pin; in intel_hpd_irq_handler() local
631 enum hpd_pin pin; in i915_hpd_poll_init_work() local
748 bool intel_hpd_disable(struct drm_i915_private *dev_priv, enum hpd_pin pin) in intel_hpd_disable()
765 void intel_hpd_enable(struct drm_i915_private *dev_priv, enum hpd_pin pin) in intel_hpd_enable()
/drivers/pinctrl/qcom/
Dpinctrl-ssbi-gpio.c126 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 …]
Dpinctrl-ssbi-mpp.c165 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 …]
Dpinctrl-spmi-mpp.c211 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/
Dglobal2_scratch.c107 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/
Dpinctrl-sunxi.h32 #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 …]

12345678910>>...14