Lines Matching full:pin_id
64 #define ATMEL_PIO_BANK(pin_id) (pin_id / ATMEL_PIO_NPINS_PER_BANK) argument
65 #define ATMEL_PIO_LINE(pin_id) (pin_id % ATMEL_PIO_NPINS_PER_BANK) argument
94 unsigned int pin_id; member
111 * @pins: pins table used for both pinctrl and gpio. pin_id, bank and line
445 unsigned int pin_id) in atmel_pin_config_read() argument
448 unsigned int bank = atmel_pioctrl->pins[pin_id]->bank; in atmel_pin_config_read()
449 unsigned int line = atmel_pioctrl->pins[pin_id]->line; in atmel_pin_config_read()
461 unsigned int pin_id, u32 conf) in atmel_pin_config_write() argument
464 unsigned int bank = atmel_pioctrl->pins[pin_id]->bank; in atmel_pin_config_write()
465 unsigned int line = atmel_pioctrl->pins[pin_id]->line; in atmel_pin_config_write()
525 unsigned int pin_id, func_id; in atmel_pctl_xlate_pinfunc() local
528 pin_id = ATMEL_GET_PIN_NO(pinfunc); in atmel_pctl_xlate_pinfunc()
536 grp = atmel_pctl_find_group_by_pin(pctldev, pin_id); in atmel_pctl_xlate_pinfunc()
541 atmel_pioctrl->pins[pin_id]->mux = func_id; in atmel_pctl_xlate_pinfunc()
542 atmel_pioctrl->pins[pin_id]->ioset = ATMEL_GET_PIN_IOSET(pinfunc); in atmel_pctl_xlate_pinfunc()
545 atmel_pioctrl->pins[pin_id]->device = np->name; in atmel_pctl_xlate_pinfunc()
547 atmel_pioctrl->pins[pin_id]->device = np->parent->name; in atmel_pctl_xlate_pinfunc()
733 unsigned int pin_id = grp->pin; in atmel_conf_pin_config_group_get() local
736 res = atmel_pin_config_read(pctldev, pin_id); in atmel_conf_pin_config_group_get()
793 unsigned int bank, pin, pin_id = grp->pin; in atmel_conf_pin_config_group_set() local
797 conf = atmel_pin_config_read(pctldev, pin_id); in atmel_conf_pin_config_group_set()
808 __func__, pin_id, configs[i]); in atmel_conf_pin_config_group_set()
853 bank = ATMEL_PIO_BANK(pin_id); in atmel_conf_pin_config_group_set()
854 pin = ATMEL_PIO_LINE(pin_id); in atmel_conf_pin_config_group_set()
895 atmel_pin_config_write(pctldev, pin_id, conf); in atmel_conf_pin_config_group_set()
902 unsigned int pin_id) in atmel_conf_pin_config_dbg_show() argument
907 if (!atmel_pioctrl->pins[pin_id]->device) in atmel_conf_pin_config_dbg_show()
910 if (atmel_pioctrl->pins[pin_id]) in atmel_conf_pin_config_dbg_show()
912 atmel_pioctrl->pins[pin_id]->device, in atmel_conf_pin_config_dbg_show()
913 atmel_pioctrl->pins[pin_id]->ioset); in atmel_conf_pin_config_dbg_show()
915 conf = atmel_pin_config_read(pctldev, pin_id); in atmel_conf_pin_config_dbg_show()
1117 atmel_pioctrl->pins[i]->pin_id = i; in atmel_pinctrl_probe()
1129 dev_dbg(dev, "pin_id=%u, bank=%u, line=%u", i, bank, line); in atmel_pinctrl_probe()