Home
last modified time | relevance | path

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

12

/linux-6.6.21/drivers/acpi/acpica/
Drsserial.c62 {ACPI_RSC_MOVE8, ACPI_RS_OFFSET(data.gpio.pin_config),
63 AML_OFFSET(gpio.pin_config),
184 {ACPI_RSC_MOVE8, ACPI_RS_OFFSET(data.pin_function.pin_config),
185 AML_OFFSET(pin_function.pin_config),
641 {ACPI_RSC_MOVE8, ACPI_RS_OFFSET(data.pin_config.revision_id),
642 AML_OFFSET(pin_config.revision_id),
645 {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET(data.pin_config.shareable),
646 AML_OFFSET(pin_config.flags),
649 {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET(data.pin_config.producer_consumer),
650 AML_OFFSET(pin_config.flags),
[all …]
Drscalc.c356 pin_config. in acpi_rs_get_aml_length()
358 resource->data.pin_config. in acpi_rs_get_aml_length()
361 resource->data.pin_config. in acpi_rs_get_aml_length()
631 if (aml_resource->pin_config.vendor_length) { in acpi_rs_get_list_length()
633 aml_resource->pin_config.vendor_offset - in acpi_rs_get_list_length()
634 aml_resource->pin_config.pin_table_offset + in acpi_rs_get_list_length()
635 aml_resource->pin_config.vendor_length; in acpi_rs_get_list_length()
640 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",
324 {ACPI_RSD_UINT8, ACPI_RSD_OFFSET(pin_config.revision_id), "RevisionId",
326 {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET(pin_config.producer_consumer),
328 {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET(pin_config.shareable), "Sharing",
330 {ACPI_RSD_UINT8, ACPI_RSD_OFFSET(pin_config.pin_config_type),
332 {ACPI_RSD_UINT32, ACPI_RSD_OFFSET(pin_config.pin_config_value),
334 {ACPI_RSD_SOURCE, ACPI_RSD_OFFSET(pin_config.resource_source),
336 {ACPI_RSD_UINT16, ACPI_RSD_OFFSET(pin_config.pin_table_length),
338 {ACPI_RSD_WORDLIST, ACPI_RSD_OFFSET(pin_config.pin_table), "PinTable",
[all …]
Damlresrc.h286 u8 pin_config; member
400 u8 pin_config; member
551 struct aml_resource_pin_config pin_config; member
/linux-6.6.21/drivers/pinctrl/renesas/
Dpinctrl-rzn1.c220 u32 pin_config, u8 use_locks) in rzn1_set_hw_pin_func() argument
228 if (pin_config >= RZN1_FUNC_MDIO0_HIGHZ && in rzn1_set_hw_pin_func()
229 pin_config <= RZN1_FUNC_MDIO1_E1_SWITCH) { in rzn1_set_hw_pin_func()
233 if (pin_config <= RZN1_FUNC_MDIO1_HIGHZ) in rzn1_set_hw_pin_func()
239 if (pin_config <= RZN1_FUNC_MDIO0_SWITCH) { in rzn1_set_hw_pin_func()
240 mdio_func = pin_config - RZN1_FUNC_MDIO0_HIGHZ; in rzn1_set_hw_pin_func()
241 pin_config = RZN1_FUNC_ETH_MDIO; in rzn1_set_hw_pin_func()
242 } else if (pin_config <= RZN1_FUNC_MDIO0_E1_SWITCH) { in rzn1_set_hw_pin_func()
243 mdio_func = pin_config - RZN1_FUNC_MDIO0_E1_HIGHZ; in rzn1_set_hw_pin_func()
244 pin_config = RZN1_FUNC_ETH_MDIO_E1; in rzn1_set_hw_pin_func()
[all …]
/linux-6.6.21/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.6.21/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_ptp.c364 !(ptp->ptp_info.pin_config)) in bnxt_ptp_reapply_pps()
813 ptp_info->pin_config = kcalloc(ptp_info->n_pins, in bnxt_ptp_pps_init()
814 sizeof(*ptp_info->pin_config), in bnxt_ptp_pps_init()
816 if (!ptp_info->pin_config) { in bnxt_ptp_pps_init()
824 snprintf(ptp_info->pin_config[i].name, in bnxt_ptp_pps_init()
825 sizeof(ptp_info->pin_config[i].name), "bnxt_pps%d", i); in bnxt_ptp_pps_init()
826 ptp_info->pin_config[i].index = i; in bnxt_ptp_pps_init()
827 ptp_info->pin_config[i].chan = i; in bnxt_ptp_pps_init()
829 ptp_info->pin_config[i].func = PTP_PF_EXTTS; in bnxt_ptp_pps_init()
831 ptp_info->pin_config[i].func = PTP_PF_PEROUT; in bnxt_ptp_pps_init()
[all …]
/linux-6.6.21/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.c110 int pin_config; member
308 switch (agpio->pin_config) { in acpi_gpio_to_gpiod_flags()
725 switch (info->pin_config) { in acpi_gpio_update_gpiod_lookup_flags()
783 lookup->info.pin_config = agpio->pin_config; in acpi_populate_gpio_lookup()
/linux-6.6.21/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 omap1xxx_pins[] = {
286 static int omap1_cfg_reg(const struct pin_config *cfg) in omap1_cfg_reg()
414 struct pin_config *reg; in omap_cfg_reg()
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/lib/
Dclock.c815 clock->ptp_info.pin_config = in mlx5_init_pin_config()
817 sizeof(*clock->ptp_info.pin_config), in mlx5_init_pin_config()
819 if (!clock->ptp_info.pin_config) in mlx5_init_pin_config()
826 snprintf(clock->ptp_info.pin_config[i].name, in mlx5_init_pin_config()
827 sizeof(clock->ptp_info.pin_config[i].name), in mlx5_init_pin_config()
829 clock->ptp_info.pin_config[i].index = i; in mlx5_init_pin_config()
830 clock->ptp_info.pin_config[i].func = mlx5_get_pps_pin_mode(clock, i); in mlx5_init_pin_config()
831 clock->ptp_info.pin_config[i].chan = 0; in mlx5_init_pin_config()
898 switch (clock->ptp_info.pin_config[pin].func) { in mlx5_pps_event()
925 clock->ptp_info.pin_config[pin].func); in mlx5_pps_event()
[all …]
/linux-6.6.21/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()
388 pd = ops->pin_config[pin_index]; in ptp_ioctl()
Dptp_sysfs.c384 if (!strcmp(ptp->info->pin_config[i].name, name)) in ptp_pin_name2index()
404 func = ptp->info->pin_config[index].func; in ptp_pin_show()
405 chan = ptp->info->pin_config[index].chan; in ptp_pin_show()
457 da->attr.name = info->pin_config[i].name; in ptp_populate_pin_groups()
Dptp_clock.c417 if (ptp->info->pin_config[i].func == func && in ptp_find_pin()
418 ptp->info->pin_config[i].chan == chan) { in ptp_find_pin()
419 pin = &ptp->info->pin_config[i]; in ptp_find_pin()
/linux-6.6.21/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.6.21/drivers/net/ethernet/intel/i40e/
Di40e_ptp.c943 kfree(pf->ptp_caps.pin_config); in i40e_ptp_free_pins()
1343 pf->ptp_caps.pin_config = kcalloc(pf->ptp_caps.n_pins, in i40e_init_pin_config()
1344 sizeof(*pf->ptp_caps.pin_config), in i40e_init_pin_config()
1346 if (!pf->ptp_caps.pin_config) in i40e_init_pin_config()
1350 snprintf(pf->ptp_caps.pin_config[i].name, in i40e_init_pin_config()
1351 sizeof(pf->ptp_caps.pin_config[i].name), in i40e_init_pin_config()
1353 pf->ptp_caps.pin_config[i].index = sdp_desc[i].index; in i40e_init_pin_config()
1354 pf->ptp_caps.pin_config[i].func = PTP_PF_NONE; in i40e_init_pin_config()
1355 pf->ptp_caps.pin_config[i].chan = sdp_desc[i].chan; in i40e_init_pin_config()
/linux-6.6.21/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()
1035 .pin_config = NULL,
1133 info->pin_config = kcalloc(info->n_pins, sizeof(struct ptp_pin_desc), in aq_ptp_gpio_init()
1136 if (!info->pin_config) in aq_ptp_gpio_init()
1139 memcpy(info->pin_config, &pin_desc, in aq_ptp_gpio_init()
1235 kfree(aq_ptp->ptp_info.pin_config); in aq_ptp_init()
1268 kfree(aq_ptp->ptp_info.pin_config); in aq_ptp_free()
/linux-6.6.21/include/acpi/
Dacrestyp.h359 u8 pin_config; member
525 u8 pin_config; member
665 struct acpi_resource_pin_config pin_config; member
/linux-6.6.21/drivers/net/dsa/microchip/
Dksz_ptp.h25 struct ptp_pin_desc pin_config[KSZ_PTP_N_GPIO]; member
/linux-6.6.21/drivers/net/ethernet/microchip/
Dlan743x_ptp.h79 struct ptp_pin_desc pin_config[LAN743X_PTP_N_GPIO]; member
/linux-6.6.21/drivers/net/dsa/mv88e6xxx/
Dptp.c506 struct ptp_pin_desc *ppd = &chip->pin_config[i]; in mv88e6xxx_ptp_setup()
512 chip->ptp_clock_info.pin_config = chip->pin_config; in mv88e6xxx_ptp_setup()
/linux-6.6.21/include/linux/
Dptp_clock_kernel.h175 struct ptp_pin_desc *pin_config; member
/linux-6.6.21/drivers/net/phy/
Ddp83640.c536 if (clock->caps.pin_config[pin].func == PTP_PF_PHYSYNC && in ptp_dp83640_verify()
983 kfree(clock->caps.pin_config); in dp83640_free_clocks()
1014 dp83640_gpio_defaults(clock->caps.pin_config); in dp83640_clock_init()
1065 clock->caps.pin_config = kcalloc(DP83640_N_PINS, in dp83640_clock_get_bus()
1068 if (!clock->caps.pin_config) { in dp83640_clock_get_bus()
/linux-6.6.21/drivers/net/ethernet/microchip/lan966x/
Dlan966x_ptp.c799 if (info->pin_config[pin].func == PTP_PF_PEROUT || in lan966x_ptp_verify()
800 info->pin_config[pin].func == PTP_PF_EXTTS) in lan966x_ptp_verify()
1000 phc->info.pin_config = &phc->pins[0]; in lan966x_ptp_phc_init()

12