Home
last modified time | relevance | path

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

/drivers/pps/clients/
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()
/drivers/pinctrl/renesas/
Dgpio.c49 struct sh_pfc_gpio_pin *gpio_pin = &chip->pins[idx]; in gpio_get_data_reg() local
51 *reg = &chip->regs[gpio_pin->dreg]; in gpio_get_data_reg()
52 *bit = gpio_pin->dbit; in gpio_get_data_reg()
76 struct sh_pfc_gpio_pin *gpio_pin = &chip->pins[idx]; in gpio_setup_data_reg() local
85 gpio_pin->dreg = i; in gpio_setup_data_reg()
86 gpio_pin->dbit = bit; in gpio_setup_data_reg()
/drivers/net/ethernet/intel/ice/
Dice_ptp.c544 ice_ptp_cfg_extts(struct ice_pf *pf, bool ena, unsigned int chan, u32 gpio_pin, in ice_ptp_cfg_extts() argument
591 wr32(hw, GLGEN_GPIO_CTL(gpio_pin), gpio_reg); in ice_ptp_cfg_extts()
611 u32 func, val, gpio_pin; in ice_ptp_cfg_clkout() local
628 gpio_pin = pf->ptp.perout_channels[chan].gpio_pin; in ice_ptp_cfg_clkout()
629 wr32(hw, GLGEN_GPIO_CTL(gpio_pin), val); in ice_ptp_cfg_clkout()
641 gpio_pin = config->gpio_pin; in ice_ptp_cfg_clkout()
686 wr32(hw, GLGEN_GPIO_CTL(gpio_pin), val); in ice_ptp_cfg_clkout()
749 u32 gpio_pin; in ice_ptp_gpio_enable_e810() local
756 clk_cfg.gpio_pin = PPS_PIN_INDEX; in ice_ptp_gpio_enable_e810()
758 clk_cfg.gpio_pin = chan; in ice_ptp_gpio_enable_e810()
[all …]
Dice_ptp.h22 u32 gpio_pin; member
/drivers/net/ethernet/microchip/
Dlan743x_ptp.c460 if (perout->gpio_pin >= 0) { in lan743x_ptp_perout_off()
461 lan743x_gpio_release(adapter, perout->gpio_pin); in lan743x_ptp_perout_off()
462 perout->gpio_pin = -1; in lan743x_ptp_perout_off()
510 perout->gpio_pin >= 0) { in lan743x_ptp_perout()
524 perout->gpio_pin = lan743x_gpio_rsrv_ptp_out(adapter, in lan743x_ptp_perout()
528 if (perout->gpio_pin < 0) { in lan743x_ptp_perout()
960 ptp->perout[i].gpio_pin = -1; in lan743x_ptp_init()
Dlan743x_ptp.h60 int gpio_pin; /* GPIO pin where output appears */ member
/drivers/gpu/drm/amd/pm/powerplay/smumgr/
Dvegam_smumgr.c1928 struct pp_atomctrl_gpio_pin_assignment gpio_pin; in vegam_init_smc_table() local
2051 VDDC_VRHOT_GPIO_PINID, &gpio_pin)) { in vegam_init_smc_table()
2052 table->VRHotGpio = gpio_pin.uc_gpio_pin_bit_shift; in vegam_init_smc_table()
2063 PP_AC_DC_SWITCH_GPIO_PINID, &gpio_pin)) { in vegam_init_smc_table()
2064 table->AcDcGpio = gpio_pin.uc_gpio_pin_bit_shift; in vegam_init_smc_table()
2078 THERMAL_INT_OUTPUT_GPIO_PINID, &gpio_pin)) { in vegam_init_smc_table()
2079 table->ThermOutGpio = gpio_pin.uc_gpio_pin_bit_shift; in vegam_init_smc_table()
2088 (1 << gpio_pin.uc_gpio_pin_bit_shift))) ? 1:0; in vegam_init_smc_table()
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()
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()
Dci_smumgr.c1947 struct pp_atomctrl_gpio_pin_assignment gpio_pin; in ci_init_smc_table() local
2072 if (atomctrl_get_pp_assign_pin(hwmgr, VDDC_VRHOT_GPIO_PINID, &gpio_pin)) { in ci_init_smc_table()
2073 table->VRHotGpio = gpio_pin.uc_gpio_pin_bit_shift; in ci_init_smc_table()
/drivers/gpio/
Dgpio-amd-fch.c134 unsigned int gpio_pin) in amd_fch_gpio_request() argument
Dgpio-mmio.c564 static int bgpio_request(struct gpio_chip *chip, unsigned gpio_pin) in bgpio_request() argument
566 if (gpio_pin < chip->ngpio) in bgpio_request()
/drivers/gpu/drm/amd/display/dc/bios/
Dbios_parser2.c383 pin = (struct atom_gpio_pin_assignment *) header->gpio_pin; in get_gpio_i2c_info()
522 struct atom_gpio_pin_assignment gpio_pin[8] = { in bios_parser_get_gpio_pin_info() local
532 memmove(header->gpio_pin, gpio_pin, sizeof(gpio_pin)); in bios_parser_get_gpio_pin_info()
540 if (header->gpio_pin[i].gpio_id != gpio_id) in bios_parser_get_gpio_pin_info()
545 header->gpio_pin[i].data_a_reg_index); in bios_parser_get_gpio_pin_info()
551 header->gpio_pin[i].gpio_bitshift); in bios_parser_get_gpio_pin_info()
/drivers/net/ethernet/aquantia/atlantic/hw_atl/
Dhw_atl_utils.h173 enum gpio_pin_function gpio_pin[3]; member
/drivers/pinctrl/
Dpinctrl-lpc18xx.c751 unsigned int gpio_port, gpio_pin; in lpc18xx_gpio_to_pintsel_val() local
754 gpio_pin = gpio % LPC18XX_GPIO_PINS_PER_PORT; in lpc18xx_gpio_to_pintsel_val()
756 return gpio_pin | (gpio_port << LPC18XX_SCU_PINTSEL_PORT_SHIFT); in lpc18xx_gpio_to_pintsel_val()
/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
Dppatomfwctrl.c186 offsetof(struct atom_gpio_pin_lut_v2_1, gpio_pin[0]); in pp_atomfwctrl_lookup_gpio_pin()
/drivers/net/wireless/mediatek/mt76/
Dmt76_connac_mcu.h903 u8 gpio_pin; member
Dmt76_connac_mcu.c2149 .gpio_pin = 0xff, /* follow fw about GPIO pin */ in mt76_connac_mcu_set_wow_ctrl()
/drivers/net/ethernet/aquantia/atlantic/
Daq_ptp.c1111 if (hw_info->gpio_pin[i] == in aq_ptp_gpio_init()
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_link.c7821 u16 gpio_pin; in bnx2x_sfp_e1e2_set_transmitter() local
7828 gpio_pin = tx_en_mode - PORT_HW_CFG_TX_LASER_GPIO0; in bnx2x_sfp_e1e2_set_transmitter()
7830 bnx2x_set_gpio(bp, gpio_pin, gpio_mode, gpio_port); in bnx2x_sfp_e1e2_set_transmitter()
8546 u16 gpio_pin = fault_led_gpio - in bnx2x_set_e1e2_module_fault_led() local
8550 gpio_pin, gpio_port, gpio_mode); in bnx2x_set_e1e2_module_fault_led()
8551 bnx2x_set_gpio(bp, gpio_pin, gpio_mode, gpio_port); in bnx2x_set_e1e2_module_fault_led()
/drivers/gpu/drm/amd/include/
Datomfirmware.h704 struct atom_gpio_pin_assignment gpio_pin[8]; member