Searched refs:num_pinmux (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/drivers/pinctrl/renesas/ |
H A D | pinctrl-rzv2m.c | 224 unsigned int num_pinmux = 0; in rzv2m_dt_subnode_to_map() local 237 num_pinmux = pinmux->length / sizeof(u32); in rzv2m_dt_subnode_to_map() 249 if (!num_pinmux && !num_pins) in rzv2m_dt_subnode_to_map() 252 if (num_pinmux && num_pins) { in rzv2m_dt_subnode_to_map() 268 if (num_pinmux) in rzv2m_dt_subnode_to_map() 296 pins = devm_kcalloc(pctrl->dev, num_pinmux, sizeof(*pins), GFP_KERNEL); in rzv2m_dt_subnode_to_map() 297 psel_val = devm_kcalloc(pctrl->dev, num_pinmux, sizeof(*psel_val), in rzv2m_dt_subnode_to_map() 306 for (i = 0; i < num_pinmux; ++i) { in rzv2m_dt_subnode_to_map() 330 gsel = pinctrl_generic_add_group(pctldev, name, pins, num_pinmux, NULL); in rzv2m_dt_subnode_to_map() 354 dev_dbg(pctrl->dev, "Parsed %pOF with %d pins\n", np, num_pinmux); in rzv2m_dt_subnode_to_map()
|
H A D | pinctrl-rzg2l.c | 264 unsigned int num_pinmux = 0; in rzg2l_dt_subnode_to_map() local 277 num_pinmux = pinmux->length / sizeof(u32); in rzg2l_dt_subnode_to_map() 289 if (!num_pinmux && !num_pins) in rzg2l_dt_subnode_to_map() 292 if (num_pinmux && num_pins) { in rzg2l_dt_subnode_to_map() 308 if (num_pinmux) in rzg2l_dt_subnode_to_map() 336 pins = devm_kcalloc(pctrl->dev, num_pinmux, sizeof(*pins), GFP_KERNEL); in rzg2l_dt_subnode_to_map() 337 psel_val = devm_kcalloc(pctrl->dev, num_pinmux, sizeof(*psel_val), in rzg2l_dt_subnode_to_map() 346 for (i = 0; i < num_pinmux; ++i) { in rzg2l_dt_subnode_to_map() 370 gsel = pinctrl_generic_add_group(pctldev, name, pins, num_pinmux, NULL); in rzg2l_dt_subnode_to_map() 394 dev_dbg(pctrl->dev, "Parsed %pOF with %d pins\n", np, num_pinmux); in rzg2l_dt_subnode_to_map()
|