/linux-master/drivers/gpu/drm/amd/display/dc/gpio/dcn20/ |
H A D | hw_factory_dcn20.c | 182 struct hw_gpio_pin *pin, 185 struct hw_ddc *ddc = HW_DDC_FROM_BASE(pin); 187 switch (pin->id) { 206 static void define_hpd_registers(struct hw_gpio_pin *pin, uint32_t en) argument 208 struct hw_hpd *hpd = HW_HPD_FROM_BASE(pin); 216 static void define_generic_registers(struct hw_gpio_pin *pin, uint32_t en) argument 218 struct hw_generic *generic = HW_GENERIC_FROM_BASE(pin); 242 * Initialize HW factory function pointers and pin info 181 define_ddc_registers( struct hw_gpio_pin *pin, uint32_t en) argument
|
/linux-master/drivers/gpu/drm/amd/display/dc/gpio/dcn30/ |
H A D | hw_factory_dcn30.c | 188 static void define_generic_registers(struct hw_gpio_pin *pin, uint32_t en) argument 190 struct hw_generic *generic = HW_GENERIC_FROM_BASE(pin); 199 struct hw_gpio_pin *pin, 202 struct hw_ddc *ddc = HW_DDC_FROM_BASE(pin); 204 switch (pin->id) { 223 static void define_hpd_registers(struct hw_gpio_pin *pin, uint32_t en) argument 225 struct hw_hpd *hpd = HW_HPD_FROM_BASE(pin); 250 * Initialize HW factory function pointers and pin info 198 define_ddc_registers( struct hw_gpio_pin *pin, uint32_t en) argument
|
/linux-master/drivers/gpu/drm/amd/display/dc/gpio/dcn32/ |
H A D | hw_factory_dcn32.c | 192 static void define_generic_registers(struct hw_gpio_pin *pin, uint32_t en) argument 194 struct hw_generic *generic = HW_GENERIC_FROM_BASE(pin); 203 struct hw_gpio_pin *pin, 206 struct hw_ddc *ddc = HW_DDC_FROM_BASE(pin); 208 switch (pin->id) { 227 static void define_hpd_registers(struct hw_gpio_pin *pin, uint32_t en) argument 229 struct hw_hpd *hpd = HW_HPD_FROM_BASE(pin); 254 * Initialize HW factory function pointers and pin info 202 define_ddc_registers( struct hw_gpio_pin *pin, uint32_t en) argument
|
/linux-master/drivers/pinctrl/starfive/ |
H A D | pinctrl-starfive-jh7110-sys.c | 291 unsigned int pin, u32 func) 293 const struct jh7110_func_sel *fs = &jh7110_sys_func_sel[pin]; 315 unsigned int pin) 317 const struct jh7110_vin_group_sel *gs = &jh7110_sys_vin_group_sel[pin]; 337 unsigned int pin, 341 if (pin < sfp->gc.ngpio && func == 0) 342 jh7110_set_gpiomux(sfp, pin, din, dout, doen); 344 jh7110_set_function(sfp, pin, func); 346 if (pin < sfp->gc.ngpio && func == 2) 347 jh7110_set_vin_group(sfp, pin); 290 jh7110_set_function(struct jh7110_pinctrl *sfp, unsigned int pin, u32 func) argument 314 jh7110_set_vin_group(struct jh7110_pinctrl *sfp, unsigned int pin) argument 336 jh7110_sys_set_one_pin_mux(struct jh7110_pinctrl *sfp, unsigned int pin, unsigned int din, u32 dout, u32 doen, u32 func) argument 352 jh7110_sys_get_padcfg_base(struct jh7110_pinctrl *sfp, unsigned int pin) argument 368 unsigned int pin; local [all...] |
/linux-master/drivers/pinctrl/stm32/ |
H A D | pinctrl-stm32.c | 50 /* custom bitfield to backup pin status */ 84 unsigned pin; member in struct:stm32_pinctrl_group 212 int pin = offset + (bank->bank_nr * STM32_GPIO_PINS_PER_BANK); local 214 range = pinctrl_find_gpio_range_from_pin_nolock(pctl->pctl_dev, pin); 216 dev_err(pctl->dev, "pin %d not in range.\n", pin); 264 int pin = stm32_gpio_pin(offset); local 268 stm32_pmx_get_mode(bank, pin, &mode, &alt); 514 stm32_pctrl_find_group_by_pin(struct stm32_pinctrl *pctl, u32 pin) argument 521 if (grp->pin 534 const struct stm32_desc_pin *pin = pctl->pins + i; local 554 stm32_pctrl_dt_node_to_map_func(struct stm32_pinctrl *pctl, u32 pin, u32 fnum, struct stm32_pinctrl_group *grp, struct pinctrl_map **map, unsigned *reserved_maps, unsigned *num_maps) argument 583 u32 pinfunc, pin, func; local 757 stm32_pmx_set_mode(struct stm32_gpio_bank *bank, int pin, u32 mode, u32 alt) argument 799 stm32_pmx_get_mode(struct stm32_gpio_bank *bank, int pin, u32 *mode, u32 *alt) argument 830 int pin; local 856 int pin = stm32_gpio_pin(gpio); local 1065 stm32_pconf_parse_conf(struct pinctrl_dev *pctldev, unsigned int pin, enum pin_config_param param, enum pin_config_param arg) argument 1151 stm32_pconf_set(struct pinctrl_dev *pctldev, unsigned int pin, unsigned long *configs, unsigned int num_configs) argument 1182 stm32_pconf_dbg_show(struct pinctrl_dev *pctldev, struct seq_file *s, unsigned int pin) argument 1486 const struct stm32_desc_pin *pin = pctl->pins + i; local 1660 stm32_pinctrl_restore_gpio_regs( struct stm32_pinctrl *pctl, u32 pin) argument [all...] |
/linux-master/drivers/pinctrl/bcm/ |
H A D | pinctrl-ns2-mux.c | 6 * corresponding mfio pin group is selected as gpio. 87 * Northstar2 mux function and supported pin groups 152 * Description of a pin in Northstar2 154 * @pin: pin number 155 * @name: pin name 156 * @pin_conf: pin configuration structure 159 unsigned int pin; member in struct:ns2_pin 166 .pin = p, \ 381 * List of Northstar2 pin group 653 ns2_pin_set_enable(struct pinctrl_dev *pctrldev, unsigned int pin, u16 enable) argument 677 ns2_pin_get_enable(struct pinctrl_dev *pctrldev, unsigned int pin) argument 699 ns2_pin_set_slew(struct pinctrl_dev *pctrldev, unsigned int pin, u32 slew) argument 723 ns2_pin_get_slew(struct pinctrl_dev *pctrldev, unsigned int pin, u16 *slew) argument 740 ns2_pin_set_pull(struct pinctrl_dev *pctrldev, unsigned int pin, bool pull_up, bool pull_down) argument 766 ns2_pin_get_pull(struct pinctrl_dev *pctrldev, unsigned int pin, bool *pull_up, bool *pull_down) argument 789 ns2_pin_set_strength(struct pinctrl_dev *pctrldev, unsigned int pin, u32 strength) argument 815 ns2_pin_get_strength(struct pinctrl_dev *pctrldev, unsigned int pin, u16 *strength) argument 835 ns2_pin_config_get(struct pinctrl_dev *pctldev, unsigned int pin, unsigned long *config) argument 895 ns2_pin_config_set(struct pinctrl_dev *pctrldev, unsigned int pin, unsigned long *configs, unsigned int num_configs) argument [all...] |
H A D | pinctrl-bcm6368.c | 385 int i, pin; local 391 pin = pg->pins[i]; 392 if (pin < BCM63XX_BANK_GPIOS) 393 mask |= BIT(pin); 399 pin = pg->pins[0]; 401 if (bcm6368_pins[pin].drv_data) 405 regmap_update_bits(pc->regs, BCM6368_MODE_REG, BIT(pin), 406 BIT(pin)); 409 for (pin = 0; pin < p [all...] |
/linux-master/drivers/pinctrl/renesas/ |
H A D | pinctrl.c | 116 const char *pin; local 154 dev_err(dev, "Invalid pin groups list in DT\n"); 161 dev_err(dev, "No pin or group provided in DT node\n"); 205 of_property_for_each_string(np, "pins", prop, pin) { 206 ret = sh_pfc_map_add_config(&maps[idx], pin, 332 dev_dbg(pctldev->dev, "Configuring pin group %s\n", grp->name); 342 * pin is already enabled. So, this function fails. 381 /* If GPIOs are handled externally the pin mux type needs to be 384 const struct sh_pfc_pin *pin = &pfc->info->pins[idx]; local 386 ret = sh_pfc_config_mux(pfc, pin 428 const struct sh_pfc_pin *pin = &pfc->info->pins[idx]; local 461 sh_pfc_pinconf_find_drive_strength_reg(struct sh_pfc *pfc, unsigned int pin, unsigned int *offset, unsigned int *size) argument 484 sh_pfc_pinconf_get_drive_strength(struct sh_pfc *pfc, unsigned int pin) argument 504 sh_pfc_pinconf_set_drive_strength(struct sh_pfc *pfc, unsigned int pin, u16 strength) argument 546 const struct sh_pfc_pin *pin = &pfc->info->pins[idx]; local 614 const struct sh_pfc_pin *pin = &pfc->info->pins[idx]; local 687 const struct sh_pfc_pin *pin = &pfc->info->pins[idx]; local 775 struct pinctrl_pin_desc *pin = &pmx->pins[i]; local 820 rcar_pin_to_bias_reg(const struct sh_pfc_soc_info *info, unsigned int pin, unsigned int *bit) argument 839 rcar_pinmux_get_bias(struct sh_pfc *pfc, unsigned int pin) argument 863 rcar_pinmux_set_bias(struct sh_pfc *pfc, unsigned int pin, unsigned int bias) argument 902 rmobile_pinmux_get_bias(struct sh_pfc *pfc, unsigned int pin) argument 919 rmobile_pinmux_set_bias(struct sh_pfc *pfc, unsigned int pin, unsigned int bias) argument [all...] |
H A D | pinctrl-rza2.c | 3 * Combined GPIO and pin controller support for Renesas RZ/A2 (R7S9210) SoC 9 * This pin controller/gpio combined driver supports Renesas devices of RZ/A2 32 * Use 16 lower bits [15:0] for pin identifier 33 * Use 16 higher bits [31:16] for pin mux function 59 #define RZA2_PFS(port, pin) (0x0200 + ((port) * 8) + (pin)) /* Fnct 8-bit */ 75 static void rza2_set_pin_function(void __iomem *pfc_base, u8 port, u8 pin, argument 82 /* Set pin to 'Non-use (Hi-z input protection)' */ 84 mask16 = RZA2_PDR_MASK << (pin * 2); 90 reg8 &= ~BIT(pin); 114 u8 pin = RZA2_PIN_ID_TO_PIN(offset); local 134 u8 pin = RZA2_PIN_ID_TO_PIN(offset); local 169 u8 pin = RZA2_PIN_ID_TO_PIN(offset); local 179 u8 pin = RZA2_PIN_ID_TO_PIN(offset); local [all...] |
/linux-master/drivers/pinctrl/qcom/ |
H A D | pinctrl-lpass-lpi.c | 41 static int lpi_gpio_read(struct lpi_pinctrl *state, unsigned int pin, argument 44 return ioread32(state->tlmm_base + LPI_TLMM_REG_OFFSET * pin + addr); 47 static int lpi_gpio_write(struct lpi_pinctrl *state, unsigned int pin, argument 50 iowrite32(val, state->tlmm_base + LPI_TLMM_REG_OFFSET * pin + addr); 97 int i, pin = g->pin; local 108 val = lpi_gpio_read(pctrl, pin, LPI_GPIO_CFG_REG); 112 * output, make sure that we're not going to be glitching the pin 113 * by reading the current state of the pin and setting it as the 132 lpi_gpio_write(pctrl, pin, LPI_GPIO_CFG_RE 145 lpi_config_get(struct pinctrl_dev *pctldev, unsigned int pin, unsigned long *config) argument 301 lpi_gpio_direction_input(struct gpio_chip *chip, unsigned int pin) argument 311 lpi_gpio_direction_output(struct gpio_chip *chip, unsigned int pin, int val) argument 322 lpi_gpio_get(struct gpio_chip *chip, unsigned int pin) argument 330 lpi_gpio_set(struct gpio_chip *chip, unsigned int pin, int value) argument [all...] |
/linux-master/arch/arm/mach-orion5x/ |
H A D | terastation_pro2-setup.c | 78 int pin; local 83 pin = TSP2_PCI_SLOT0_IRQ_PIN; 84 if (gpio_request(pin, "PCI Int1") == 0) { 85 if (gpio_direction_input(pin) == 0) { 86 irq_set_irq_type(gpio_to_irq(pin), IRQ_TYPE_LEVEL_LOW); 89 "to set_irq_type pin %d\n", pin); 90 gpio_free(pin); 94 "gpio_request %d\n", pin); 98 static int __init tsp2_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) argument [all...] |
/linux-master/include/linux/soc/pxa/ |
H A D | mfp.h | 344 * pin drive strength 348 * pin drive strength and low power mode 405 #define MFP_CFG(pin, af) \ 407 (MFP_PIN(MFP_PIN_##pin) | MFP_##af)) 409 #define MFP_CFG_DRV(pin, af, drv) \ 411 (MFP_PIN(MFP_PIN_##pin) | MFP_##af | MFP_##drv)) 413 #define MFP_CFG_LPM(pin, af, lpm) \ 415 (MFP_PIN(MFP_PIN_##pin) | MFP_##af | MFP_LPM_##lpm)) 417 #define MFP_CFG_X(pin, af, drv, lpm) \ 419 (MFP_PIN(MFP_PIN_##pin) | MFP [all...] |
/linux-master/drivers/leds/blink/ |
H A D | leds-bcm63138.c | 56 u32 pin; member in struct:bcm63138_led 92 int reg_offset = (led->pin >> fls((BCM63138_LEDS_PER_REG - 1))) * 4; 93 int shift = (led->pin & (BCM63138_LEDS_PER_REG - 1)) * BCM63138_LED_BITS; 103 int reg_offset = (led->pin >> fls((BCM63138_LEDS_PER_REG - 1))) * 4; 104 int shift = (led->pin & (BCM63138_LEDS_PER_REG - 1)) * BCM63138_LED_BITS; 114 u32 bit = BIT(led->pin); 216 if (of_property_read_u32(np, "reg", &led->pin)) { 221 if (led->pin >= BCM63138_MAX_LEDS) { 222 dev_err(dev, "Invalid \"reg\" value %d\n", led->pin); 244 bit = BIT(led->pin); [all...] |
/linux-master/fs/bcachefs/ |
H A D | journal_reclaim.c | 59 bool low_on_pin = fifo_free(&j->pin) < j->pin.size / 4; 302 while (!fifo_empty(&j->pin) && 303 j->pin.front <= j->seq_ondisk && 304 !atomic_read(&fifo_peek_front(&j->pin).count)) { 305 j->pin.front++; 330 struct journal_entry_pin *pin) 334 if (!journal_pin_active(pin)) 337 if (j->flush_in_progress == pin) 340 pin_list = journal_seq_pin(j, pin 329 __journal_pin_drop(struct journal *j, struct journal_entry_pin *pin) argument 352 bch2_journal_pin_drop(struct journal *j, struct journal_entry_pin *pin) argument 372 bch2_journal_pin_set_locked(struct journal *j, u64 seq, struct journal_entry_pin *pin, journal_pin_flush_fn flush_fn, enum journal_pin_type type) argument 427 bch2_journal_pin_set(struct journal *j, u64 seq, struct journal_entry_pin *pin, journal_pin_flush_fn flush_fn) argument 456 bch2_journal_pin_flush(struct journal *j, struct journal_entry_pin *pin) argument 508 struct journal_entry_pin *pin; local [all...] |
/linux-master/drivers/pinctrl/ |
H A D | pinctrl-st.c | 78 * each register is dedicated per pin. 252 int pin; member in struct:st_pinconf 275 * of each gpio pin in a GPIO bank. 278 * 4-bits. Each 4-bit space is allocated for each pin in a gpio bank. 280 * bit allocation per pin is: 283 * | pin-0 | pin-2 | pin-3 | ... ... ... ... | pin -7 | 286 * A pin ca 366 st_get_pio_control( struct pinctrl_dev *pctldev, int pin) argument 387 st_pinconf_set_config(struct st_pio_control *pc, int pin, unsigned long config) argument 426 int pin = st_gpio_pin(pin_id); local 438 st_pctl_get_pin_function(struct st_pio_control *pc, int pin) argument 507 st_regmap_field_bit_set_clear_pin(struct regmap_field *field, int enable, int pin) argument 520 st_pinconf_set_retime_packed(struct st_pinctrl *info, struct st_pio_control *pc, unsigned long config, int pin) argument 550 st_pinconf_set_retime_dedicated(struct st_pinctrl *info, struct st_pio_control *pc, unsigned long config, int pin) argument 577 st_pinconf_get_direction(struct st_pio_control *pc, int pin, unsigned long *config) argument 601 st_pinconf_get_retime_packed(struct st_pinctrl *info, struct st_pio_control *pc, int pin, unsigned long *config) argument 634 st_pinconf_get_retime_dedicated(struct st_pinctrl *info, struct st_pio_control *pc, int pin, unsigned long *config) argument 939 st_pinconf_get_retime(struct st_pinctrl *info, struct st_pio_control *pc, int pin, unsigned long *config) argument 950 st_pinconf_set_retime(struct st_pinctrl *info, struct st_pio_control *pc, int pin, unsigned long config) argument 964 int pin = st_gpio_pin(pin_id); local 980 int pin = st_gpio_pin(pin_id); local 1342 int comp, pin = d->hwirq; local [all...] |
H A D | pinctrl-aw9523.c | 3 * Awinic AW9523B i2c pin controller driver 40 #define AW9523_PIN_TO_PORT(pin) (pin >> 3) 41 #define AW9523_REG_IN_STATE(pin) (0x00 + AW9523_PIN_TO_PORT(pin)) 42 #define AW9523_REG_OUT_STATE(pin) (0x02 + AW9523_PIN_TO_PORT(pin)) 43 #define AW9523_REG_CONF_STATE(pin) (0x04 + AW9523_PIN_TO_PORT(pin)) 44 #define AW9523_REG_INTR_DIS(pin) ( 197 int ret, pin = aw9523_pins[grp].number % AW9523_PINS_PER_PORT; local 220 aw9523_pcfg_param_to_reg(enum pin_config_param pcp, int pin, u8 *r) argument 249 aw9523_pconf_get(struct pinctrl_dev *pctldev, unsigned int pin, unsigned long *config) argument 303 aw9523_pconf_set(struct pinctrl_dev *pctldev, unsigned int pin, unsigned long *configs, unsigned int num_configs) argument 391 aw9523_get_pin_direction(struct regmap *regmap, u8 pin, u8 n) argument 411 aw9523_get_port_state(struct regmap *regmap, u8 pin, u8 regbit, unsigned int *state) argument [all...] |
/linux-master/drivers/pinctrl/mediatek/ |
H A D | pinctrl-paris.c | 3 * MediaTek Pinctrl Paris Driver, which implement the vendor per-pin 58 * and standard PIN_CONFIG_DRIVE_STRENGTH_UA pin configs. 105 unsigned int pin) 110 desc = (const struct mtk_pin_desc *)&hw->soc->pins[pin]; 118 unsigned int pin, bool input) 123 desc = (const struct mtk_pin_desc *)&hw->soc->pins[pin]; 130 unsigned int pin, unsigned long *config) 137 if (pin >= hw->soc->npins) 140 desc = (const struct mtk_pin_desc *)&hw->soc->pins[pin]; 258 static int mtk_pinconf_set(struct pinctrl_dev *pctldev, unsigned int pin, argument 103 mtk_pinmux_gpio_request_enable(struct pinctrl_dev *pctldev, struct pinctrl_gpio_range *range, unsigned int pin) argument 116 mtk_pinmux_gpio_set_direction(struct pinctrl_dev *pctldev, struct pinctrl_gpio_range *range, unsigned int pin, bool input) argument 129 mtk_pinconf_get(struct pinctrl_dev *pctldev, unsigned int pin, unsigned long *config) argument 354 mtk_pctrl_find_group_by_pin(struct mtk_pinctrl *hw, u32 pin) argument 371 const struct mtk_pin_desc *pin = hw->soc->pins + pin_num; local 389 const struct mtk_pin_desc *pin = hw->soc->pins + i; local 407 mtk_pctrl_dt_node_to_map_func(struct mtk_pinctrl *pctl, u32 pin, u32 fnum, struct mtk_pinctrl_group *grp, struct pinctrl_map **map, unsigned *reserved_maps, unsigned *num_maps) argument 447 u32 pinfunc, pin, func; local 1000 const struct mtk_pin_desc *pin = hw->soc->pins + i; local [all...] |
/linux-master/arch/mips/pci/ |
H A D | fixup-sni.c | 133 int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) argument 147 return irq_tab_pcit_cplus[slot][pin]; 149 return irq_tab_pcit[slot][pin]; 153 return irq_tab_rm300d[slot][pin]; 156 return irq_tab_rm200[slot][pin]; 159 return irq_tab_rm300e[slot][pin];
|
/linux-master/arch/alpha/kernel/ |
H A D | sys_takara.c | 159 takara_map_irq_srm(const struct pci_dev *dev, u8 slot, u8 pin) argument 190 takara_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) argument 217 int pin = *pinp; local 229 if (pin == 1) 230 pin += (20 - busslot); 233 "handle cards with INTA IRQ pin.\n"); 241 *pinp = pin;
|
/linux-master/arch/powerpc/platforms/52xx/ |
H A D | mpc52xx_pm.c | 39 int mpc52xx_set_wakeup_gpio(u8 pin, u8 level) argument 44 out_8(&gpiow->wkup_gpioe, in_8(&gpiow->wkup_gpioe) | (1 << pin)); 46 out_8(&gpiow->wkup_ddr, in_8(&gpiow->wkup_ddr) & ~(1 << pin)); 48 out_8(&gpiow->wkup_inten, in_8(&gpiow->wkup_inten) | (1 << pin)); 51 tmp &= ~(0x3 << (pin * 2)); 52 tmp |= (!level + 1) << (pin * 2);
|
/linux-master/arch/powerpc/platforms/82xx/ |
H A D | km82xx.c | 42 int port, pin, flags; member in struct:cpm_pin 137 const struct cpm_pin *pin = &km82xx_pins[i]; local 138 cpm2_set_pin(pin->port, pin->pin, pin->flags);
|
/linux-master/arch/powerpc/platforms/8xx/ |
H A D | mpc885ads_setup.c | 47 int port, pin, flags; member in struct:cpm_pin 114 struct cpm_pin *pin = &mpc885ads_pins[i]; local 115 cpm1_set_pin(pin->port, pin->pin, pin->flags);
|
/linux-master/arch/powerpc/platforms/85xx/ |
H A D | ksi8560.c | 72 int port, pin, flags; member in struct:cpm_pin 111 struct cpm_pin *pin = &ksi8560_pins[i]; local 112 cpm2_set_pin(pin->port, pin->pin, pin->flags);
|
/linux-master/drivers/gpio/ |
H A D | gpio-mt7621.c | 110 int pin = d->hwirq; local 121 mtk_gpio_w32(rg, GPIO_REG_REDGE, rise | (BIT(pin) & rg->rising)); 122 mtk_gpio_w32(rg, GPIO_REG_FEDGE, fall | (BIT(pin) & rg->falling)); 123 mtk_gpio_w32(rg, GPIO_REG_HLVL, high | (BIT(pin) & rg->hlevel)); 124 mtk_gpio_w32(rg, GPIO_REG_LLVL, low | (BIT(pin) & rg->llevel)); 133 int pin = d->hwirq; local 142 mtk_gpio_w32(rg, GPIO_REG_FEDGE, fall & ~BIT(pin)); 143 mtk_gpio_w32(rg, GPIO_REG_REDGE, rise & ~BIT(pin)); 144 mtk_gpio_w32(rg, GPIO_REG_HLVL, high & ~BIT(pin)); 145 mtk_gpio_w32(rg, GPIO_REG_LLVL, low & ~BIT(pin)); 156 int pin = d->hwirq; local [all...] |
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/fault/ |
H A D | gp10b.c | 41 .buffer.pin = gp10b_fault_buffer_pin,
|