/openbmc/u-boot/arch/arm/mach-davinci/ |
H A D | pinmux.c | 36 const int n_pins) in davinci_configure_pin_mux() argument 41 for (i = 0; i < n_pins; i++) { in davinci_configure_pin_mux() 48 for (i = 0; i < n_pins; i++) { in davinci_configure_pin_mux() 84 item[i].n_pins) != 0) in davinci_configure_pin_mux_items()
|
/openbmc/u-boot/arch/arm/mach-davinci/include/mach/ |
H A D | davinci_misc.h | 26 const int n_pins; member 31 .n_pins = ARRAY_SIZE(item) \ 40 int davinci_configure_pin_mux(const struct pinmux_config *pins, int n_pins);
|
/openbmc/linux/drivers/pinctrl/cirrus/ |
H A D | pinctrl-madera.h | 14 unsigned int n_pins; member 18 unsigned int n_pins; member
|
H A D | pinctrl-madera-core.c | 451 return priv->chip->n_pin_groups + priv->chip->n_pins; in madera_get_groups_count() 475 *num_pins = priv->chip->pin_groups[selector].n_pins; in madera_get_group_pins() 505 for (g_pin = 0; g_pin < chip->pin_groups[i].n_pins; ++g_pin) { in madera_pin_dbg_show_fn() 604 *num_groups = priv->chip->n_pins; in madera_mux_get_groups() 638 for (i = 0; i < pin_group->n_pins; ++i) { in madera_mux_set_mux() 969 for (i = 0; i < pin_group->n_pins; ++i) { in madera_pin_conf_group_set() 1051 madera_pin_desc.npins = priv->chip->n_pins; in madera_pin_probe()
|
H A D | pinctrl-cs47l92.c | 37 .n_pins = CS47L92_NUM_GPIOS,
|
H A D | pinctrl-cs47l15.c | 37 .n_pins = CS47L15_NUM_GPIOS,
|
H A D | pinctrl-cs47l35.c | 38 .n_pins = CS47L35_NUM_GPIOS,
|
H A D | pinctrl-cs47l90.c | 50 .n_pins = CS47L90_NUM_GPIOS,
|
H A D | pinctrl-cs47l85.c | 52 .n_pins = CS47L85_NUM_GPIOS,
|
/openbmc/linux/drivers/ptp/ |
H A D | ptp_sysfs.c | 45 PTP_SHOW_INT(n_programmable_pins, n_pins); 382 for (i = 0; i < ptp->info->n_pins; i++) { in ptp_pin_name2index() 439 int err = -ENOMEM, i, n_pins = info->n_pins; in ptp_populate_pin_groups() local 441 if (!n_pins) in ptp_populate_pin_groups() 444 ptp->pin_dev_attr = kcalloc(n_pins, sizeof(*ptp->pin_dev_attr), in ptp_populate_pin_groups() 449 ptp->pin_attr = kcalloc(1 + n_pins, sizeof(*ptp->pin_attr), GFP_KERNEL); in ptp_populate_pin_groups() 453 for (i = 0; i < n_pins; i++) { in ptp_populate_pin_groups()
|
H A D | ptp_chardev.c | 56 for (i = 0; i < info->n_pins; i++) { in ptp_set_pinfunc() 138 caps.n_pins = ptp->info->n_pins; in ptp_ioctl() 382 if (pin_index >= ops->n_pins) { in ptp_ioctl() 386 pin_index = array_index_nospec(pin_index, ops->n_pins); in ptp_ioctl() 414 if (pin_index >= ops->n_pins) { in ptp_ioctl() 418 pin_index = array_index_nospec(pin_index, ops->n_pins); in ptp_ioctl()
|
H A D | ptp_kvm_common.c | 116 .n_pins = 0,
|
/openbmc/linux/tools/testing/selftests/ptp/ |
H A D | testptp.c | 320 caps.n_pins, in main() 448 int n_pins = 0; in main() local 452 n_pins = caps.n_pins; in main() 454 for (i = 0; i < n_pins; i++) { in main()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
H A D | clock.c | 223 for (i = 0; i < clock->ptp_info.n_pins; i++) { in mlx5_pps_out() 473 if (rq->extts.index >= clock->ptp_info.n_pins) in mlx5_extts_configure() 653 if (rq->perout.index >= clock->ptp_info.n_pins) in mlx5_perout_configure() 763 .n_pins = 0, 812 if (!clock->ptp_info.n_pins) in mlx5_init_pin_config() 816 kcalloc(clock->ptp_info.n_pins, in mlx5_init_pin_config() 825 for (i = 0; i < clock->ptp_info.n_pins; i++) { in mlx5_init_pin_config() 842 clock->ptp_info.n_pins = MLX5_GET(mtpps_reg, out, in mlx5_get_pps_caps()
|
/openbmc/linux/drivers/net/ethernet/aquantia/atlantic/ |
H A D | aq_ptp.c | 514 if (!ptp->pin_config || pin >= ptp->n_pins) in aq_ptp_verify() 1033 .n_pins = 0, 1127 info->n_pins = out_pin_cnt + extts_pin_cnt; in aq_ptp_gpio_init() 1130 if (!info->n_pins) in aq_ptp_gpio_init() 1133 info->pin_config = kcalloc(info->n_pins, sizeof(struct ptp_pin_desc), in aq_ptp_gpio_init() 1140 sizeof(struct ptp_pin_desc) * info->n_pins); in aq_ptp_gpio_init() 1357 ptp_event.index = aq_ptp->ptp_info.n_pins - 1; in aq_ptp_check_sync1588()
|
/openbmc/linux/drivers/net/ethernet/microchip/ |
H A D | lan743x_ptp.c | 1489 int n_pins; in lan743x_ptp_open() local 1507 n_pins = LAN7430_N_GPIO; in lan743x_ptp_open() 1512 n_pins = LAN7431_N_GPIO; in lan743x_ptp_open() 1518 n_pins = 0; in lan743x_ptp_open() 1522 if (n_pins > LAN743X_PTP_N_GPIO) in lan743x_ptp_open() 1523 n_pins = LAN743X_PTP_N_GPIO; in lan743x_ptp_open() 1525 for (i = 0; i < n_pins; i++) { in lan743x_ptp_open() 1541 ptp->ptp_clock_info.n_pins = n_pins; in lan743x_ptp_open()
|
/openbmc/linux/include/uapi/linux/ |
H A D | ptp_clock.h | 93 int n_pins; /* Number of input/output pins. */ member
|
/openbmc/linux/drivers/net/ethernet/freescale/enetc/ |
H A D | enetc_ptp.c | 20 .n_pins = 0,
|
/openbmc/linux/drivers/pinctrl/nxp/ |
H A D | pinctrl-s32cc.c | 224 int n_pins, ret; in s32_dt_group_node_to_map() local 226 n_pins = of_property_count_elems_of_size(np, "pinmux", sizeof(u32)); in s32_dt_group_node_to_map() 227 if (n_pins < 0) { in s32_dt_group_node_to_map() 229 } else if (!n_pins) { in s32_dt_group_node_to_map()
|
/openbmc/linux/include/linux/ |
H A D | ptp_clock_kernel.h | 173 int n_pins; member
|
/openbmc/linux/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpaa2-ptp.c | 79 .n_pins = 0,
|
/openbmc/linux/drivers/net/dsa/mv88e6xxx/ |
H A D | ptp.c | 544 chip->ptp_clock_info.n_pins = mv88e6xxx_num_gpio(chip); in mv88e6xxx_ptp_setup() 547 for (i = 0; i < chip->ptp_clock_info.n_pins; ++i) { in mv88e6xxx_ptp_setup()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/ |
H A D | en_clock.c | 236 .n_pins = 0,
|
/openbmc/linux/drivers/net/ethernet/intel/e1000e/ |
H A D | ptp.c | 249 .n_pins = 0,
|
/openbmc/linux/drivers/net/ethernet/cavium/common/ |
H A D | cavium_ptp.c | 266 .n_pins = 0, in cavium_ptp_probe()
|