Home
last modified time | relevance | path

Searched refs:n_pins (Results 1 – 25 of 53) sorted by relevance

123

/linux-6.1.9/drivers/pinctrl/cirrus/
Dpinctrl-madera.h14 unsigned int n_pins; member
18 unsigned int n_pins; member
Dpinctrl-madera-core.c450 return priv->chip->n_pin_groups + priv->chip->n_pins; in madera_get_groups_count()
474 *num_pins = priv->chip->pin_groups[selector].n_pins; in madera_get_group_pins()
504 for (g_pin = 0; g_pin < chip->pin_groups[i].n_pins; ++g_pin) { in madera_pin_dbg_show_fn()
603 *num_groups = priv->chip->n_pins; in madera_mux_get_groups()
637 for (i = 0; i < pin_group->n_pins; ++i) { in madera_mux_set_mux()
968 for (i = 0; i < pin_group->n_pins; ++i) { in madera_pin_conf_group_set()
1050 madera_pin_desc.npins = priv->chip->n_pins; in madera_pin_probe()
Dpinctrl-cs47l15.c37 .n_pins = CS47L15_NUM_GPIOS,
Dpinctrl-cs47l92.c37 .n_pins = CS47L92_NUM_GPIOS,
Dpinctrl-cs47l35.c38 .n_pins = CS47L35_NUM_GPIOS,
Dpinctrl-cs47l90.c50 .n_pins = CS47L90_NUM_GPIOS,
Dpinctrl-cs47l85.c52 .n_pins = CS47L85_NUM_GPIOS,
/linux-6.1.9/drivers/ptp/
Dptp_sysfs.c34 PTP_SHOW_INT(n_programmable_pins, n_pins);
367 for (i = 0; i < ptp->info->n_pins; i++) { in ptp_pin_name2index()
424 int err = -ENOMEM, i, n_pins = info->n_pins; in ptp_populate_pin_groups() local
426 if (!n_pins) in ptp_populate_pin_groups()
429 ptp->pin_dev_attr = kcalloc(n_pins, sizeof(*ptp->pin_dev_attr), in ptp_populate_pin_groups()
434 ptp->pin_attr = kcalloc(1 + n_pins, sizeof(*ptp->pin_attr), GFP_KERNEL); in ptp_populate_pin_groups()
438 for (i = 0; i < n_pins; i++) { in ptp_populate_pin_groups()
Dptp_chardev.c56 for (i = 0; i < info->n_pins; i++) { in ptp_set_pinfunc()
137 caps.n_pins = ptp->info->n_pins; in ptp_ioctl()
378 if (pin_index >= ops->n_pins) { in ptp_ioctl()
382 pin_index = array_index_nospec(pin_index, ops->n_pins); in ptp_ioctl()
410 if (pin_index >= ops->n_pins) { in ptp_ioctl()
414 pin_index = array_index_nospec(pin_index, ops->n_pins); in ptp_ioctl()
Dptp_kvm_common.c116 .n_pins = 0,
Dptp_dte.c220 .n_pins = 0,
/linux-6.1.9/tools/testing/selftests/ptp/
Dtestptp.c296 caps.n_pins, in main()
411 int n_pins = 0; in main() local
415 n_pins = caps.n_pins; in main()
417 for (i = 0; i < n_pins; i++) { in main()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/lib/
Dclock.c172 for (i = 0; i < clock->ptp_info.n_pins; i++) { in mlx5_pps_out()
408 if (rq->extts.index >= clock->ptp_info.n_pins) in mlx5_extts_configure()
588 if (rq->perout.index >= clock->ptp_info.n_pins) in mlx5_perout_configure()
698 .n_pins = 0,
745 if (!clock->ptp_info.n_pins) in mlx5_init_pin_config()
749 kcalloc(clock->ptp_info.n_pins, in mlx5_init_pin_config()
758 for (i = 0; i < clock->ptp_info.n_pins; i++) { in mlx5_init_pin_config()
775 clock->ptp_info.n_pins = MLX5_GET(mtpps_reg, out, in mlx5_get_pps_caps()
/linux-6.1.9/drivers/net/ethernet/aquantia/atlantic/
Daq_ptp.c514 if (!ptp->pin_config || pin >= ptp->n_pins) in aq_ptp_verify()
1041 .n_pins = 0,
1135 info->n_pins = out_pin_cnt + extts_pin_cnt; in aq_ptp_gpio_init()
1138 if (!info->n_pins) in aq_ptp_gpio_init()
1141 info->pin_config = kcalloc(info->n_pins, sizeof(struct ptp_pin_desc), in aq_ptp_gpio_init()
1148 sizeof(struct ptp_pin_desc) * info->n_pins); in aq_ptp_gpio_init()
1365 ptp_event.index = aq_ptp->ptp_info.n_pins - 1; in aq_ptp_check_sync1588()
/linux-6.1.9/drivers/net/ethernet/microchip/
Dlan743x_ptp.c1530 int n_pins; in lan743x_ptp_open() local
1548 n_pins = LAN7430_N_GPIO; in lan743x_ptp_open()
1553 n_pins = LAN7431_N_GPIO; in lan743x_ptp_open()
1559 n_pins = 0; in lan743x_ptp_open()
1563 if (n_pins > LAN743X_PTP_N_GPIO) in lan743x_ptp_open()
1564 n_pins = LAN743X_PTP_N_GPIO; in lan743x_ptp_open()
1566 for (i = 0; i < n_pins; i++) { in lan743x_ptp_open()
1582 ptp->ptp_clock_info.n_pins = n_pins; in lan743x_ptp_open()
/linux-6.1.9/include/uapi/linux/
Dptp_clock.h93 int n_pins; /* Number of input/output pins. */ member
/linux-6.1.9/drivers/net/ethernet/freescale/enetc/
Denetc_ptp.c20 .n_pins = 0,
/linux-6.1.9/include/linux/
Dptp_clock_kernel.h171 int n_pins; member
/linux-6.1.9/drivers/net/dsa/mv88e6xxx/
Dptp.c473 chip->ptp_clock_info.n_pins = mv88e6xxx_num_gpio(chip); in mv88e6xxx_ptp_setup()
476 for (i = 0; i < chip->ptp_clock_info.n_pins; ++i) { in mv88e6xxx_ptp_setup()
/linux-6.1.9/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-ptp.c80 .n_pins = 0,
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx4/
Den_clock.c238 .n_pins = 0,
/linux-6.1.9/drivers/net/ethernet/intel/e1000e/
Dptp.c259 .n_pins = 0,
/linux-6.1.9/drivers/net/ethernet/cavium/common/
Dcavium_ptp.c266 .n_pins = 0, in cavium_ptp_probe()
/linux-6.1.9/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_ptp.c750 .n_pins = 0,
798 ptp_info->n_pins = pps_info->num_pins; in bnxt_ptp_pps_init()
799 ptp_info->pin_config = kcalloc(ptp_info->n_pins, in bnxt_ptp_pps_init()
/linux-6.1.9/drivers/net/ethernet/xscale/
Dptp_ixp46x.c231 .n_pins = 0,

123