Home
last modified time | relevance | path

Searched refs:pin_config (Results 1 – 25 of 41) sorted by relevance

12

/linux-6.1.9/drivers/acpi/acpica/
Drsserial.c62 {ACPI_RSC_MOVE8, ACPI_RS_OFFSET(data.gpio.pin_config),
63 AML_OFFSET(gpio.pin_config),
135 {ACPI_RSC_MOVE8, ACPI_RS_OFFSET(data.pin_function.pin_config),
136 AML_OFFSET(pin_function.pin_config),
592 {ACPI_RSC_MOVE8, ACPI_RS_OFFSET(data.pin_config.revision_id),
593 AML_OFFSET(pin_config.revision_id),
596 {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET(data.pin_config.shareable),
597 AML_OFFSET(pin_config.flags),
600 {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET(data.pin_config.producer_consumer),
601 AML_OFFSET(pin_config.flags),
[all …]
Drscalc.c346 pin_config. in acpi_rs_get_aml_length()
348 resource->data.pin_config. in acpi_rs_get_aml_length()
351 resource->data.pin_config. in acpi_rs_get_aml_length()
613 if (aml_resource->pin_config.vendor_length) { in acpi_rs_get_list_length()
615 aml_resource->pin_config.vendor_offset - in acpi_rs_get_list_length()
616 aml_resource->pin_config.pin_table_offset + in acpi_rs_get_list_length()
617 aml_resource->pin_config.vendor_length; in acpi_rs_get_list_length()
622 aml_resource->pin_config.pin_table_offset; in acpi_rs_get_list_length()
Drsdumpinfo.c256 {ACPI_RSD_UINT8, ACPI_RSD_OFFSET(gpio.pin_config), "PinConfig",
286 {ACPI_RSD_UINT8, ACPI_RSD_OFFSET(pin_function.pin_config), "PinConfig",
307 {ACPI_RSD_UINT8, ACPI_RSD_OFFSET(pin_config.revision_id), "RevisionId",
309 {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET(pin_config.producer_consumer),
311 {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET(pin_config.shareable), "Sharing",
313 {ACPI_RSD_UINT8, ACPI_RSD_OFFSET(pin_config.pin_config_type),
315 {ACPI_RSD_UINT32, ACPI_RSD_OFFSET(pin_config.pin_config_value),
317 {ACPI_RSD_SOURCE, ACPI_RSD_OFFSET(pin_config.resource_source),
319 {ACPI_RSD_UINT16, ACPI_RSD_OFFSET(pin_config.pin_table_length),
321 {ACPI_RSD_WORDLIST, ACPI_RSD_OFFSET(pin_config.pin_table), "PinTable",
[all …]
Damlresrc.h281 u8 pin_config; member
395 u8 pin_config; member
532 struct aml_resource_pin_config pin_config; member
/linux-6.1.9/drivers/pinctrl/renesas/
Dpinctrl-rzn1.c216 u32 pin_config, u8 use_locks) in rzn1_set_hw_pin_func() argument
224 if (pin_config >= RZN1_FUNC_MDIO0_HIGHZ && in rzn1_set_hw_pin_func()
225 pin_config <= RZN1_FUNC_MDIO1_E1_SWITCH) { in rzn1_set_hw_pin_func()
229 if (pin_config <= RZN1_FUNC_MDIO1_HIGHZ) in rzn1_set_hw_pin_func()
235 if (pin_config <= RZN1_FUNC_MDIO0_SWITCH) { in rzn1_set_hw_pin_func()
236 mdio_func = pin_config - RZN1_FUNC_MDIO0_HIGHZ; in rzn1_set_hw_pin_func()
237 pin_config = RZN1_FUNC_ETH_MDIO; in rzn1_set_hw_pin_func()
238 } else if (pin_config <= RZN1_FUNC_MDIO0_E1_SWITCH) { in rzn1_set_hw_pin_func()
239 mdio_func = pin_config - RZN1_FUNC_MDIO0_E1_HIGHZ; in rzn1_set_hw_pin_func()
240 pin_config = RZN1_FUNC_ETH_MDIO_E1; in rzn1_set_hw_pin_func()
[all …]
/linux-6.1.9/drivers/pinctrl/
Dpinctrl-da9062.c42 unsigned int pin_config[DA9062_GPIO_NUM]; member
76 pctl->pin_config[offset] = mode_req; in da9062_pctl_set_pin_mode()
173 unsigned int pin_config = pctl->pin_config[offset]; in da9062_gpio_direction_output() local
176 ret = da9062_pctl_set_pin_mode(pctl, offset, pin_config); in da9062_gpio_direction_output()
273 for (i = 0; i < ARRAY_SIZE(pctl->pin_config); i++) in da9062_pctl_probe()
274 pctl->pin_config[i] = DA9062_PIN_GPO_PP; in da9062_pctl_probe()
/linux-6.1.9/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_ptp.c349 !(ptp->ptp_info.pin_config)) in bnxt_ptp_reapply_pps()
799 ptp_info->pin_config = kcalloc(ptp_info->n_pins, in bnxt_ptp_pps_init()
800 sizeof(*ptp_info->pin_config), in bnxt_ptp_pps_init()
802 if (!ptp_info->pin_config) { in bnxt_ptp_pps_init()
810 snprintf(ptp_info->pin_config[i].name, in bnxt_ptp_pps_init()
811 sizeof(ptp_info->pin_config[i].name), "bnxt_pps%d", i); in bnxt_ptp_pps_init()
812 ptp_info->pin_config[i].index = i; in bnxt_ptp_pps_init()
813 ptp_info->pin_config[i].chan = i; in bnxt_ptp_pps_init()
815 ptp_info->pin_config[i].func = PTP_PF_EXTTS; in bnxt_ptp_pps_init()
817 ptp_info->pin_config[i].func = PTP_PF_PEROUT; in bnxt_ptp_pps_init()
[all …]
/linux-6.1.9/drivers/gpio/
Dgpio-max730x.c52 u8 offset_bits, pin_config; in max7301_direction_input() local
62 pin_config = PIN_CONFIG_IN_PULLUP; in max7301_direction_input()
64 pin_config = PIN_CONFIG_IN_WO_PULLUP; in max7301_direction_input()
69 | (pin_config << offset_bits); in max7301_direction_input()
Dgpiolib-acpi.h29 int pin_config; member
Dgpiolib-acpi.c282 switch (agpio->pin_config) { in acpi_gpio_to_gpiod_flags()
696 switch (info->pin_config) { in acpi_gpio_update_gpiod_lookup_flags()
754 lookup->info.pin_config = agpio->pin_config; in acpi_populate_gpio_lookup()
/linux-6.1.9/arch/arm/mach-omap1/
Dmux.h104 struct pin_config { struct
128 struct pin_config *pins; argument
130 int (*cfg_reg)(const struct pin_config *cfg);
Dmux.c25 static struct pin_config omap7xx_pins[] = {
71 static struct pin_config omap1xxx_pins[] = {
332 static int omap1_cfg_reg(const struct pin_config *cfg) in omap1_cfg_reg()
460 struct pin_config *reg; in omap_cfg_reg()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/lib/
Dclock.c748 clock->ptp_info.pin_config = in mlx5_init_pin_config()
750 sizeof(*clock->ptp_info.pin_config), in mlx5_init_pin_config()
752 if (!clock->ptp_info.pin_config) in mlx5_init_pin_config()
759 snprintf(clock->ptp_info.pin_config[i].name, in mlx5_init_pin_config()
760 sizeof(clock->ptp_info.pin_config[i].name), in mlx5_init_pin_config()
762 clock->ptp_info.pin_config[i].index = i; in mlx5_init_pin_config()
763 clock->ptp_info.pin_config[i].func = mlx5_get_pps_pin_mode(clock, i); in mlx5_init_pin_config()
764 clock->ptp_info.pin_config[i].chan = 0; in mlx5_init_pin_config()
831 switch (clock->ptp_info.pin_config[pin].func) { in mlx5_pps_event()
858 clock->ptp_info.pin_config[pin].func); in mlx5_pps_event()
[all …]
/linux-6.1.9/drivers/ptp/
Dptp_chardev.c52 struct ptp_pin_desc *pin1 = NULL, *pin2 = &info->pin_config[pin]; in ptp_set_pinfunc()
57 if (info->pin_config[i].func == func && in ptp_set_pinfunc()
58 info->pin_config[i].chan == chan) { in ptp_set_pinfunc()
59 pin1 = &info->pin_config[i]; in ptp_set_pinfunc()
385 pd = ops->pin_config[pin_index]; in ptp_ioctl()
Dptp_sysfs.c368 if (!strcmp(ptp->info->pin_config[i].name, name)) in ptp_pin_name2index()
388 func = ptp->info->pin_config[index].func; in ptp_pin_show()
389 chan = ptp->info->pin_config[index].chan; in ptp_pin_show()
441 da->attr.name = info->pin_config[i].name; in ptp_populate_pin_groups()
Dptp_clock.c415 if (ptp->info->pin_config[i].func == func && in ptp_find_pin()
416 ptp->info->pin_config[i].chan == chan) { in ptp_find_pin()
417 pin = &ptp->info->pin_config[i]; in ptp_find_pin()
/linux-6.1.9/sound/soc/codecs/
Dadau1701.c116 u8 pin_config[12]; member
702 val |= adau1701->pin_config[i] << (i * 4); in adau1701_probe()
708 val |= adau1701->pin_config[i + 6] << (i * 4); in adau1701_probe()
828 adau1701->pin_config, in adau1701_i2c_probe()
829 ARRAY_SIZE(adau1701->pin_config)); in adau1701_i2c_probe()
/linux-6.1.9/drivers/net/ethernet/intel/i40e/
Di40e_ptp.c954 kfree(pf->ptp_caps.pin_config); in i40e_ptp_free_pins()
1354 pf->ptp_caps.pin_config = kcalloc(pf->ptp_caps.n_pins, in i40e_init_pin_config()
1355 sizeof(*pf->ptp_caps.pin_config), in i40e_init_pin_config()
1357 if (!pf->ptp_caps.pin_config) in i40e_init_pin_config()
1361 snprintf(pf->ptp_caps.pin_config[i].name, in i40e_init_pin_config()
1362 sizeof(pf->ptp_caps.pin_config[i].name), in i40e_init_pin_config()
1364 pf->ptp_caps.pin_config[i].index = sdp_desc[i].index; in i40e_init_pin_config()
1365 pf->ptp_caps.pin_config[i].func = PTP_PF_NONE; in i40e_init_pin_config()
1366 pf->ptp_caps.pin_config[i].chan = sdp_desc[i].chan; in i40e_init_pin_config()
/linux-6.1.9/drivers/net/ethernet/aquantia/atlantic/
Daq_ptp.c514 if (!ptp->pin_config || pin >= ptp->n_pins) in aq_ptp_verify()
518 if (chan != ptp->pin_config[pin].chan) in aq_ptp_verify()
522 if (func != ptp->pin_config[pin].func) in aq_ptp_verify()
1043 .pin_config = NULL,
1141 info->pin_config = kcalloc(info->n_pins, sizeof(struct ptp_pin_desc), in aq_ptp_gpio_init()
1144 if (!info->pin_config) in aq_ptp_gpio_init()
1147 memcpy(info->pin_config, &pin_desc, in aq_ptp_gpio_init()
1243 kfree(aq_ptp->ptp_info.pin_config); in aq_ptp_init()
1276 kfree(aq_ptp->ptp_info.pin_config); in aq_ptp_free()
/linux-6.1.9/include/acpi/
Dacrestyp.h350 u8 pin_config; member
516 u8 pin_config; member
646 struct acpi_resource_pin_config pin_config; member
/linux-6.1.9/drivers/net/ethernet/microchip/
Dlan743x_ptp.h79 struct ptp_pin_desc pin_config[LAN743X_PTP_N_GPIO]; member
/linux-6.1.9/drivers/net/dsa/mv88e6xxx/
Dptp.c477 struct ptp_pin_desc *ppd = &chip->pin_config[i]; in mv88e6xxx_ptp_setup()
483 chip->ptp_clock_info.pin_config = chip->pin_config; in mv88e6xxx_ptp_setup()
/linux-6.1.9/include/linux/
Dptp_clock_kernel.h173 struct ptp_pin_desc *pin_config; member
/linux-6.1.9/drivers/net/ethernet/microchip/lan966x/
Dlan966x_ptp.c584 if (info->pin_config[pin].func == PTP_PF_PEROUT || in lan966x_ptp_verify()
585 info->pin_config[pin].func == PTP_PF_EXTTS) in lan966x_ptp_verify()
785 phc->info.pin_config = &phc->pins[0]; in lan966x_ptp_phc_init()
/linux-6.1.9/drivers/net/phy/
Ddp83640.c536 if (clock->caps.pin_config[pin].func == PTP_PF_PHYSYNC && in ptp_dp83640_verify()
990 kfree(clock->caps.pin_config); in dp83640_free_clocks()
1021 dp83640_gpio_defaults(clock->caps.pin_config); in dp83640_clock_init()
1072 clock->caps.pin_config = kcalloc(DP83640_N_PINS, in dp83640_clock_get_bus()
1075 if (!clock->caps.pin_config) { in dp83640_clock_get_bus()

12