Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/ptp/
Dptp_chardev.c121 unsigned int i, pin_index; in ptp_ioctl() local
377 pin_index = pd.index; 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()
385 pd = ops->pin_config[pin_index]; in ptp_ioctl()
409 pin_index = pd.index; 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()
417 err = ptp_set_pinfunc(ptp, pin_index, pd.func, pd.chan); in ptp_ioctl()
/linux-6.1.9/drivers/pinctrl/ti/
Dpinctrl-ti-iodelay.c427 int *pins, int pin_index, void *data) in ti_iodelay_node_iterator() argument
449 cfg[pin_index].offset = pinctrl_spec->args[0]; in ti_iodelay_node_iterator()
450 cfg[pin_index].a_delay = pinctrl_spec->args[1] & 0xffff; in ti_iodelay_node_iterator()
451 cfg[pin_index].g_delay = pinctrl_spec->args[2] & 0xffff; in ti_iodelay_node_iterator()
453 pin = ti_iodelay_offset_to_pin(iod, cfg[pin_index].offset); in ti_iodelay_node_iterator()
456 np, cfg[pin_index].offset); in ti_iodelay_node_iterator()
459 pins[pin_index] = pin; in ti_iodelay_node_iterator()
462 pd->drv_data = &cfg[pin_index]; in ti_iodelay_node_iterator()
465 np, cfg[pin_index].offset, cfg[pin_index].a_delay, in ti_iodelay_node_iterator()
466 cfg[pin_index].g_delay); in ti_iodelay_node_iterator()
/linux-6.1.9/drivers/input/keyboard/
Dtca6416-keypad.c92 int error, i, pin_index; in tca6416_keys_scan() local
104 for (i = 0, pin_index = 0; i < 16; i++) { in tca6416_keys_scan()
106 struct tca6416_button *button = &chip->buttons[pin_index]; in tca6416_keys_scan()
116 pin_index++; in tca6416_keys_scan()
/linux-6.1.9/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 …]
/linux-6.1.9/drivers/gpio/
Dgpiolib-acpi.c719 u16 pin_index; member
736 u16 pin_index; in acpi_populate_gpio_lookup() local
744 pin_index = lookup->pin_index; in acpi_populate_gpio_lookup()
745 if (pin_index >= agpio->pin_table_length) in acpi_populate_gpio_lookup()
749 desc = gpio_to_desc(agpio->pin_table[pin_index]); in acpi_populate_gpio_lookup()
752 agpio->pin_table[pin_index]); in acpi_populate_gpio_lookup()
835 lookup->pin_index = args.args[1]; in acpi_gpio_property_lookup()
889 lookup.pin_index, lookup.active_low); in acpi_get_gpiod_by_index()
1103 u16 pin_index = address; in acpi_gpio_adr_space_handler() local
1126 length = min_t(u16, agpio->pin_table_length, pin_index + bits); in acpi_gpio_adr_space_handler()
[all …]
/linux-6.1.9/tools/testing/selftests/ptp/
Dtestptp.c178 int pin_index = -1, pin_func; in main() local
222 cnt = sscanf(optarg, "%d,%d", &pin_index, &pin_func); in main()
367 if (pin_index >= 0) { in main()
369 desc.index = pin_index; in main()
/linux-6.1.9/sound/soc/intel/avs/
Dtopology.h53 u32 pin_index; member
Dpath.c440 pin->pin_index = tpin->pin_index; in avs_modext_create()
Dmessages.h655 u32 pin_index; member
Dtopology.c794 .offset = offsetof(struct avs_tplg_pin_format, pin_index),
/linux-6.1.9/drivers/net/ethernet/intel/i40e/
Di40e_ptp.c551 int pin_index; in i40e_ptp_enable_pin() local
569 pin_index = ptp_find_pin(pf->ptp_clock, func, chan); in i40e_ptp_enable_pin()
570 if (pin_index < 0) in i40e_ptp_enable_pin()
573 switch (pin_index) { in i40e_ptp_enable_pin()
/linux-6.1.9/sound/soc/intel/skylake/
Dskl-messages.c515 pin_fmt->pin_idx = pin_res->pin_index; in skl_set_base_ext_module_format()
518 format = &fmt->inputs[pin_res->pin_index].fmt; in skl_set_base_ext_module_format()
526 pin_fmt->pin_idx = pin_res->pin_index; in skl_set_base_ext_module_format()
529 format = &fmt->outputs[pin_res->pin_index].fmt; in skl_set_base_ext_module_format()
Dskl-topology.c2124 int pin_index) in skl_tplg_fill_pin() argument
2130 m_pin[pin_index].id.module_id = tkn_elem->value; in skl_tplg_fill_pin()
2134 m_pin[pin_index].id.instance_id = tkn_elem->value; in skl_tplg_fill_pin()
2138 ret = skl_tplg_get_uuid(dev, &m_pin[pin_index].id.mod_uuid, in skl_tplg_fill_pin()
2299 m_pin->pin_index = tkn_elem->value; in skl_tplg_manifest_pin_res_tkn()
2382 static int pin_index, dir, conf_idx; in skl_tplg_get_token() local
2465 ret = skl_tplg_fill_res_tkn(dev, tkn_elem, res, pin_index, dir); in skl_tplg_get_token()
2548 pin_index = (tkn_elem->value & in skl_tplg_get_token()
2562 tkn_elem->value, dir, pin_index); in skl_tplg_get_token()
2574 pin_index); in skl_tplg_get_token()
Dskl-topology.h356 u8 pin_index; member
/linux-6.1.9/drivers/acpi/acpica/
Damlresrc.h561 u32 pin_index,
/linux-6.1.9/drivers/staging/media/atomisp/pci/
Dsh_css.c8427 int pin_index, in ia_css_pipe_override_frame_format() argument
8432 IA_CSS_ENTER_PRIVATE("pipe = %p, pin_index = %d, new_formats = %d", pipe, pin_index, new_format); in ia_css_pipe_override_frame_format()
8440 if (0 != pin_index && 1 != pin_index) { in ia_css_pipe_override_frame_format()
8454 if (pin_index == 0) in ia_css_pipe_override_frame_format()