/kernel/linux/linux-5.10/drivers/pinctrl/vt8500/ |
H A D | pinctrl-wmt.c | 303 int num_pins, num_funcs, num_pulls, maps_per_pin; in wmt_pctl_dt_node_to_map() local 341 maps_per_pin = 0; in wmt_pctl_dt_node_to_map() 343 maps_per_pin++; in wmt_pctl_dt_node_to_map() 345 maps_per_pin++; in wmt_pctl_dt_node_to_map() 347 cur_map = maps = kcalloc(num_pins * maps_per_pin, sizeof(*maps), in wmt_pctl_dt_node_to_map() 388 *num_maps = num_pins * maps_per_pin; in wmt_pctl_dt_node_to_map() 394 * pass 'num_pins * maps_per_pin' as the map count even though we probably in wmt_pctl_dt_node_to_map() 400 wmt_pctl_dt_free_map(pctldev, maps, num_pins * maps_per_pin); in wmt_pctl_dt_node_to_map()
|
/kernel/linux/linux-6.6/drivers/pinctrl/vt8500/ |
H A D | pinctrl-wmt.c | 303 int num_pins, num_funcs, num_pulls, maps_per_pin; in wmt_pctl_dt_node_to_map() local 341 maps_per_pin = 0; in wmt_pctl_dt_node_to_map() 343 maps_per_pin++; in wmt_pctl_dt_node_to_map() 345 maps_per_pin++; in wmt_pctl_dt_node_to_map() 347 cur_map = maps = kcalloc(num_pins * maps_per_pin, sizeof(*maps), in wmt_pctl_dt_node_to_map() 388 *num_maps = num_pins * maps_per_pin; in wmt_pctl_dt_node_to_map() 394 * pass 'num_pins * maps_per_pin' as the map count even though we probably in wmt_pctl_dt_node_to_map() 400 wmt_pctl_dt_free_map(pctldev, maps, num_pins * maps_per_pin); in wmt_pctl_dt_node_to_map()
|
/kernel/linux/linux-5.10/drivers/pinctrl/mediatek/ |
H A D | pinctrl-paris.c | 390 int num_pins, num_funcs, maps_per_pin, i, err; in mtk_pctrl_dt_subnode_to_map() local 416 maps_per_pin = 0; in mtk_pctrl_dt_subnode_to_map() 418 maps_per_pin++; in mtk_pctrl_dt_subnode_to_map() 420 maps_per_pin++; in mtk_pctrl_dt_subnode_to_map() 422 if (!num_pins || !maps_per_pin) { in mtk_pctrl_dt_subnode_to_map() 427 reserve = num_pins * maps_per_pin; in mtk_pctrl_dt_subnode_to_map()
|
H A D | pinctrl-mtk-common.c | 498 int num_pins, num_funcs, maps_per_pin; in mtk_pctrl_dt_subnode_to_map() local 524 maps_per_pin = 0; in mtk_pctrl_dt_subnode_to_map() 526 maps_per_pin++; in mtk_pctrl_dt_subnode_to_map() 528 maps_per_pin++; in mtk_pctrl_dt_subnode_to_map() 530 if (!num_pins || !maps_per_pin) { in mtk_pctrl_dt_subnode_to_map() 535 reserve = num_pins * maps_per_pin; in mtk_pctrl_dt_subnode_to_map()
|
/kernel/linux/linux-5.10/drivers/pinctrl/bcm/ |
H A D | pinctrl-bcm2835.c | 799 int num_pins, num_funcs, num_pulls, maps_per_pin; in bcm2835_pctl_dt_node_to_map() local 844 maps_per_pin = 0; in bcm2835_pctl_dt_node_to_map() 846 maps_per_pin++; in bcm2835_pctl_dt_node_to_map() 848 maps_per_pin++; in bcm2835_pctl_dt_node_to_map() 849 cur_map = maps = kcalloc(num_pins * maps_per_pin, sizeof(*maps), in bcm2835_pctl_dt_node_to_map() 888 *num_maps = num_pins * maps_per_pin; in bcm2835_pctl_dt_node_to_map() 893 bcm2835_pctl_dt_free_map(pctldev, maps, num_pins * maps_per_pin); in bcm2835_pctl_dt_node_to_map()
|
/kernel/linux/linux-6.6/drivers/pinctrl/bcm/ |
H A D | pinctrl-bcm2835.c | 818 int num_pins, num_funcs, num_pulls, maps_per_pin; in bcm2835_pctl_dt_node_to_map() local 863 maps_per_pin = 0; in bcm2835_pctl_dt_node_to_map() 865 maps_per_pin++; in bcm2835_pctl_dt_node_to_map() 867 maps_per_pin++; in bcm2835_pctl_dt_node_to_map() 868 cur_map = maps = kcalloc(num_pins * maps_per_pin, sizeof(*maps), in bcm2835_pctl_dt_node_to_map() 907 *num_maps = num_pins * maps_per_pin; in bcm2835_pctl_dt_node_to_map() 912 bcm2835_pctl_dt_free_map(pctldev, maps, num_pins * maps_per_pin); in bcm2835_pctl_dt_node_to_map()
|
/kernel/linux/linux-6.6/drivers/pinctrl/mediatek/ |
H A D | pinctrl-mtk-common.c | 530 int num_pins, num_funcs, maps_per_pin; in mtk_pctrl_dt_subnode_to_map() local 556 maps_per_pin = 0; in mtk_pctrl_dt_subnode_to_map() 558 maps_per_pin++; in mtk_pctrl_dt_subnode_to_map() 560 maps_per_pin++; in mtk_pctrl_dt_subnode_to_map() 562 if (!num_pins || !maps_per_pin) { in mtk_pctrl_dt_subnode_to_map() 567 reserve = num_pins * maps_per_pin; in mtk_pctrl_dt_subnode_to_map()
|
H A D | pinctrl-paris.c | 456 int num_pins, num_funcs, maps_per_pin, i, err; in mtk_pctrl_dt_subnode_to_map() local 482 maps_per_pin = 0; in mtk_pctrl_dt_subnode_to_map() 484 maps_per_pin++; in mtk_pctrl_dt_subnode_to_map() 486 maps_per_pin++; in mtk_pctrl_dt_subnode_to_map() 488 if (!num_pins || !maps_per_pin) { in mtk_pctrl_dt_subnode_to_map() 493 reserve = num_pins * maps_per_pin; in mtk_pctrl_dt_subnode_to_map()
|
/kernel/linux/linux-5.10/drivers/pinctrl/stm32/ |
H A D | pinctrl-stm32.c | 593 int num_pins, num_funcs, maps_per_pin, i, err = 0; in stm32_pctrl_dt_subnode_to_map() local 614 maps_per_pin = 0; in stm32_pctrl_dt_subnode_to_map() 616 maps_per_pin++; in stm32_pctrl_dt_subnode_to_map() 618 maps_per_pin++; in stm32_pctrl_dt_subnode_to_map() 620 if (!num_pins || !maps_per_pin) { in stm32_pctrl_dt_subnode_to_map() 625 reserve = num_pins * maps_per_pin; in stm32_pctrl_dt_subnode_to_map()
|
/kernel/linux/linux-6.6/drivers/pinctrl/stm32/ |
H A D | pinctrl-stm32.c | 599 int num_pins, num_funcs, maps_per_pin, i, err = 0; in stm32_pctrl_dt_subnode_to_map() local 620 maps_per_pin = 0; in stm32_pctrl_dt_subnode_to_map() 622 maps_per_pin++; in stm32_pctrl_dt_subnode_to_map() 624 maps_per_pin++; in stm32_pctrl_dt_subnode_to_map() 626 if (!num_pins || !maps_per_pin) { in stm32_pctrl_dt_subnode_to_map() 631 reserve = num_pins * maps_per_pin; in stm32_pctrl_dt_subnode_to_map()
|