Home
last modified time | relevance | path

Searched refs:pin_index (Results 1 – 8 of 8) sorted by relevance

/drivers/ptp/
Dptp_chardev.c122 unsigned int i, pin_index; in ptp_ioctl() local
381 pin_index = pd.index; 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()
389 pd = ops->pin_config[pin_index]; in ptp_ioctl()
413 pin_index = pd.index; 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()
421 err = ptp_set_pinfunc(ptp, pin_index, pd.func, pd.chan); in ptp_ioctl()
/drivers/pinctrl/ti/
Dpinctrl-ti-iodelay.c429 int *pins, int pin_index, void *data) in ti_iodelay_node_iterator() argument
451 cfg[pin_index].offset = pinctrl_spec->args[0]; in ti_iodelay_node_iterator()
452 cfg[pin_index].a_delay = pinctrl_spec->args[1] & 0xffff; in ti_iodelay_node_iterator()
453 cfg[pin_index].g_delay = pinctrl_spec->args[2] & 0xffff; in ti_iodelay_node_iterator()
455 pin = ti_iodelay_offset_to_pin(iod, cfg[pin_index].offset); in ti_iodelay_node_iterator()
458 np, cfg[pin_index].offset); in ti_iodelay_node_iterator()
461 pins[pin_index] = pin; in ti_iodelay_node_iterator()
464 pd->drv_data = &cfg[pin_index]; in ti_iodelay_node_iterator()
467 np, cfg[pin_index].offset, cfg[pin_index].a_delay, in ti_iodelay_node_iterator()
468 cfg[pin_index].g_delay); in ti_iodelay_node_iterator()
/drivers/input/keyboard/
Dtca6416-keypad.c93 int error, i, pin_index; in tca6416_keys_scan() local
105 for (i = 0, pin_index = 0; i < 16; i++) { in tca6416_keys_scan()
107 struct tca6416_button *button = &chip->buttons[pin_index]; in tca6416_keys_scan()
117 pin_index++; in tca6416_keys_scan()
/drivers/net/ethernet/aquantia/atlantic/
Daq_ptp.c366 static int aq_ptp_hw_pin_conf(struct aq_nic_s *aq_nic, u32 pin_index, u64 start, in aq_ptp_hw_pin_conf() argument
372 pin_index, start, (u32)period); in aq_ptp_hw_pin_conf()
376 pin_index, start, (u32)period); in aq_ptp_hw_pin_conf()
382 aq_nic->aq_hw_ops->hw_gpio_pulse(aq_nic->aq_hw, pin_index, in aq_ptp_hw_pin_conf()
397 u32 pin_index = rq->perout.index; in aq_ptp_perout_pin_configure() local
400 if (pin_index >= ptp->n_per_out) in aq_ptp_perout_pin_configure()
421 aq_ptp_hw_pin_conf(aq_nic, pin_index, start, period); in aq_ptp_perout_pin_configure()
432 u32 pin_index = 0; in aq_ptp_pps_pin_configure() local
436 if (pin_index >= ptp->n_per_out) in aq_ptp_pps_pin_configure()
445 aq_ptp_hw_pin_conf(aq_nic, pin_index, start, period); in aq_ptp_pps_pin_configure()
[all …]
/drivers/gpio/
Dgpiolib-acpi.c765 u16 pin_index; member
782 u16 pin_index; in acpi_populate_gpio_lookup() local
790 pin_index = lookup->pin_index; in acpi_populate_gpio_lookup()
791 if (pin_index >= agpio->pin_table_length) in acpi_populate_gpio_lookup()
795 desc = gpio_to_desc(agpio->pin_table[pin_index]); in acpi_populate_gpio_lookup()
798 agpio->pin_table[pin_index]); in acpi_populate_gpio_lookup()
878 lookup->pin_index = args.args[1]; in acpi_gpio_property_lookup()
933 lookup.pin_index, lookup.active_low); in acpi_get_gpiod_by_index()
1148 u16 pin_index = address; in acpi_gpio_adr_space_handler() local
1171 length = min_t(u16, agpio->pin_table_length, pin_index + bits); in acpi_gpio_adr_space_handler()
[all …]
/drivers/net/ethernet/intel/i40e/
Di40e_ptp.c541 int pin_index; in i40e_ptp_enable_pin() local
559 pin_index = ptp_find_pin(pf->ptp_clock, func, chan); in i40e_ptp_enable_pin()
560 if (pin_index < 0) in i40e_ptp_enable_pin()
563 switch (pin_index) { in i40e_ptp_enable_pin()
/drivers/acpi/acpica/
Damlresrc.h581 u32 pin_index,
/drivers/staging/media/atomisp/pci/
Dsh_css.c7941 int pin_index, in ia_css_pipe_override_frame_format() argument
7946 IA_CSS_ENTER_PRIVATE("pipe = %p, pin_index = %d, new_formats = %d", pipe, pin_index, new_format); in ia_css_pipe_override_frame_format()
7954 if (0 != pin_index && 1 != pin_index) { in ia_css_pipe_override_frame_format()
7968 if (pin_index == 0) in ia_css_pipe_override_frame_format()