Home
last modified time | relevance | path

Searched refs:gpio_pin (Results 1 – 24 of 24) sorted by relevance

/linux/drivers/pps/clients/
H A Dpps-gpio.c31 struct gpio_desc *gpio_pin; /* GPIO port descriptors */ member
55 rising_edge = gpiod_get_value(info->gpio_pin); in pps_gpio_irq_handler()
108 data->gpio_pin = devm_gpiod_get(dev, NULL, GPIOD_IN); in pps_gpio_setup()
109 if (IS_ERR(data->gpio_pin)) in pps_gpio_setup()
110 return dev_err_probe(dev, PTR_ERR(data->gpio_pin), in pps_gpio_setup()
175 ret = gpiod_to_irq(data->gpio_pin); in pps_gpio_probe()
/linux/drivers/pinctrl/nxp/
H A Dpinctrl-s32cc.c379 struct gpio_pin_config *gpio_pin; in s32_pmx_gpio_request_enable() local
389 gpio_pin = kmalloc(sizeof(*gpio_pin), GFP_KERNEL); in s32_pmx_gpio_request_enable()
390 if (!gpio_pin) in s32_pmx_gpio_request_enable()
393 gpio_pin->pin_id = offset; in s32_pmx_gpio_request_enable()
394 gpio_pin->config = config; in s32_pmx_gpio_request_enable()
397 list_add(&gpio_pin->list, &ipctl->gpio_configs); in s32_pmx_gpio_request_enable()
411 struct gpio_pin_config *gpio_pin, *tmp; in s32_pmx_gpio_disable_free() local
418 if (gpio_pin->pin_id == offset) { in s32_pmx_gpio_disable_free()
420 gpio_pin->config); in s32_pmx_gpio_disable_free()
424 list_del(&gpio_pin->list); in s32_pmx_gpio_disable_free()
[all …]
/linux/drivers/pinctrl/renesas/
H A Dgpio.c48 struct sh_pfc_gpio_pin *gpio_pin = &chip->pins[idx]; in gpio_get_data_reg() local
50 *reg = &chip->regs[gpio_pin->dreg]; in gpio_get_data_reg()
51 *bit = gpio_pin->dbit; in gpio_get_data_reg()
75 struct sh_pfc_gpio_pin *gpio_pin = &chip->pins[idx]; in gpio_setup_data_reg() local
84 gpio_pin->dreg = i; in gpio_setup_data_reg()
85 gpio_pin->dbit = bit; in gpio_setup_data_reg()
/linux/drivers/net/ethernet/intel/ice/
H A Dice_ptp.c1731 extts_cfg.gpio_pin = pf->ptp.extts_channels[i].gpio_pin; in ice_ptp_disable_all_extts()
1772 u32 func, val, gpio_pin; in ice_ptp_cfg_clkout() local
1792 gpio_pin = pf->ptp.perout_channels[chan].gpio_pin; in ice_ptp_cfg_clkout()
1805 gpio_pin = config->gpio_pin; in ice_ptp_cfg_clkout()
1915 u32 gpio_pin; in ice_ptp_gpio_enable_e810() local
1960 gpio_pin = GPIO_21; in ice_ptp_gpio_enable_e810()
1962 gpio_pin = GPIO_23; in ice_ptp_gpio_enable_e810()
1965 gpio_pin = GPIO_21; in ice_ptp_gpio_enable_e810()
1967 gpio_pin = GPIO_23; in ice_ptp_gpio_enable_e810()
1969 gpio_pin = chan; in ice_ptp_gpio_enable_e810()
[all …]
H A Dice_ptp.h31 u32 gpio_pin; member
39 u32 gpio_pin; member
/linux/drivers/net/ethernet/microchip/
H A Dlan743x_ptp.h64 int gpio_pin; /* GPIO pin where output appears */ member
H A Dlan743x_ptp.c430 if (perout->gpio_pin >= 0) { in lan743x_ptp_perout_off()
431 lan743x_gpio_release(adapter, perout->gpio_pin); in lan743x_ptp_perout_off()
432 perout->gpio_pin = -1; in lan743x_ptp_perout_off()
481 perout->gpio_pin >= 0) { in lan743x_ptp_perout()
496 perout->gpio_pin = lan743x_gpio_rsrv_ptp_out(adapter, in lan743x_ptp_perout()
500 if (perout->gpio_pin < 0) { in lan743x_ptp_perout()
1468 ptp->perout[i].gpio_pin = -1; in lan743x_ptp_init()
/linux/drivers/gpio/
H A Dgpio-amd-fch.c134 unsigned int gpio_pin) in amd_fch_gpio_request() argument
H A Dgpio-mmio.c563 static int bgpio_request(struct gpio_chip *chip, unsigned gpio_pin) in bgpio_request() argument
565 if (gpio_pin < chip->ngpio) in bgpio_request()
/linux/drivers/gpu/drm/amd/pm/powerplay/smumgr/
H A Dvegam_smumgr.c1927 struct pp_atomctrl_gpio_pin_assignment gpio_pin; in vegam_init_smc_table() local
2050 VDDC_VRHOT_GPIO_PINID, &gpio_pin)) { in vegam_init_smc_table()
2051 table->VRHotGpio = gpio_pin.uc_gpio_pin_bit_shift; in vegam_init_smc_table()
2062 PP_AC_DC_SWITCH_GPIO_PINID, &gpio_pin)) { in vegam_init_smc_table()
2063 table->AcDcGpio = gpio_pin.uc_gpio_pin_bit_shift; in vegam_init_smc_table()
2077 THERMAL_INT_OUTPUT_GPIO_PINID, &gpio_pin)) { in vegam_init_smc_table()
2078 table->ThermOutGpio = gpio_pin.uc_gpio_pin_bit_shift; in vegam_init_smc_table()
2087 (1 << gpio_pin.uc_gpio_pin_bit_shift))) ? 1:0; in vegam_init_smc_table()
H A Dfiji_smumgr.c1927 struct pp_atomctrl_gpio_pin_assignment gpio_pin; in fiji_init_smc_table() local
2038 if (atomctrl_get_pp_assign_pin(hwmgr, VDDC_VRHOT_GPIO_PINID, &gpio_pin)) { in fiji_init_smc_table()
2039 table->VRHotGpio = gpio_pin.uc_gpio_pin_bit_shift; in fiji_init_smc_table()
2049 &gpio_pin)) { in fiji_init_smc_table()
2050 table->AcDcGpio = gpio_pin.uc_gpio_pin_bit_shift; in fiji_init_smc_table()
2061 &gpio_pin)) { in fiji_init_smc_table()
2065 table->ThermOutGpio = gpio_pin.uc_gpio_pin_bit_shift; in fiji_init_smc_table()
2073 (1 << gpio_pin.uc_gpio_pin_bit_shift))) ? 1:0; in fiji_init_smc_table()
H A Dpolaris10_smumgr.c1923 struct pp_atomctrl_gpio_pin_assignment gpio_pin; in polaris10_init_smc_table() local
2041 if (atomctrl_get_pp_assign_pin(hwmgr, VDDC_VRHOT_GPIO_PINID, &gpio_pin)) { in polaris10_init_smc_table()
2042 table->VRHotGpio = gpio_pin.uc_gpio_pin_bit_shift; in polaris10_init_smc_table()
2052 &gpio_pin)) { in polaris10_init_smc_table()
2053 table->AcDcGpio = gpio_pin.uc_gpio_pin_bit_shift; in polaris10_init_smc_table()
2067 &gpio_pin)) { in polaris10_init_smc_table()
2071 table->ThermOutGpio = gpio_pin.uc_gpio_pin_bit_shift; in polaris10_init_smc_table()
2079 & (1 << gpio_pin.uc_gpio_pin_bit_shift))) ? 1:0; in polaris10_init_smc_table()
H A Dci_smumgr.c1948 struct pp_atomctrl_gpio_pin_assignment gpio_pin; in ci_init_smc_table() local
2073 if (atomctrl_get_pp_assign_pin(hwmgr, VDDC_VRHOT_GPIO_PINID, &gpio_pin)) { in ci_init_smc_table()
2074 table->VRHotGpio = gpio_pin.uc_gpio_pin_bit_shift; in ci_init_smc_table()
/linux/drivers/net/ethernet/aquantia/atlantic/hw_atl/
H A Dhw_atl_utils.h173 enum gpio_pin_function gpio_pin[3]; member
/linux/drivers/pinctrl/
H A Dpinctrl-lpc18xx.c753 unsigned int gpio_port, gpio_pin; in lpc18xx_gpio_to_pintsel_val() local
756 gpio_pin = gpio % LPC18XX_GPIO_PINS_PER_PORT; in lpc18xx_gpio_to_pintsel_val()
758 return gpio_pin | (gpio_port << LPC18XX_SCU_PINTSEL_PORT_SHIFT); in lpc18xx_gpio_to_pintsel_val()
/linux/drivers/gpu/drm/amd/display/dc/bios/
H A Dbios_parser2.c495 pin = (struct atom_gpio_pin_assignment *) header->gpio_pin; in get_gpio_i2c_info()
684 if (header->gpio_pin[i].gpio_id != gpio_id) in bios_parser_get_gpio_pin_info()
689 header->gpio_pin[i].data_a_reg_index); in bios_parser_get_gpio_pin_info()
695 header->gpio_pin[i].gpio_bitshift); in bios_parser_get_gpio_pin_info()
/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
H A Dppatomfwctrl.c186 offsetof(struct atom_gpio_pin_lut_v2_1, gpio_pin[0]); in pp_atomfwctrl_lookup_gpio_pin()
/linux/drivers/net/ethernet/aquantia/atlantic/
H A Daq_ptp.c1103 if (hw_info->gpio_pin[i] == in aq_ptp_gpio_init()
/linux/drivers/net/wireless/mediatek/mt76/
H A Dmt76_connac_mcu.h1716 u8 gpio_pin; member
H A Dmt76_connac_mcu.c2501 .gpio_pin = 0xff, /* follow fw about GPIO pin */ in mt76_connac_mcu_set_wow_ctrl()
/linux/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_link.c7823 u16 gpio_pin; in bnx2x_sfp_e1e2_set_transmitter() local
7830 gpio_pin = tx_en_mode - PORT_HW_CFG_TX_LASER_GPIO0; in bnx2x_sfp_e1e2_set_transmitter()
7832 bnx2x_set_gpio(bp, gpio_pin, gpio_mode, gpio_port); in bnx2x_sfp_e1e2_set_transmitter()
8548 u16 gpio_pin = fault_led_gpio - in bnx2x_set_e1e2_module_fault_led() local
8552 gpio_pin, gpio_port, gpio_mode); in bnx2x_set_e1e2_module_fault_led()
8553 bnx2x_set_gpio(bp, gpio_pin, gpio_mode, gpio_port); in bnx2x_set_e1e2_module_fault_led()
/linux/drivers/gpu/drm/amd/include/
H A Datomfirmware.h737 struct atom_gpio_pin_assignment gpio_pin[]; member
/linux/sound/pci/hda/
H A Dpatch_ca0132.c3643 static void ca0113_mmio_gpio_set(struct hda_codec *codec, unsigned int gpio_pin, in ca0113_mmio_gpio_set() argument
3649 gpio_data = gpio_pin & 0xF; in ca0113_mmio_gpio_set()
/linux/drivers/net/wireless/mediatek/mt76/mt7925/
H A Dmcu.c190 .gpio_pin = 0xff, /* follow fw about GPIO pin */ in mt7925_connac_mcu_set_wow_ctrl()