Lines Matching refs:pinconfig
334 unsigned long *pinconfig; in sunxi_pctrl_build_pin_config() local
349 pinconfig = kcalloc(configlen, sizeof(*pinconfig), GFP_KERNEL); in sunxi_pctrl_build_pin_config()
350 if (!pinconfig) in sunxi_pctrl_build_pin_config()
360 pinconfig[idx++] = pinconf_to_config_packed(PIN_CONFIG_DRIVE_STRENGTH, in sunxi_pctrl_build_pin_config()
375 pinconfig[idx++] = pinconf_to_config_packed(pull, arg); in sunxi_pctrl_build_pin_config()
380 return pinconfig; in sunxi_pctrl_build_pin_config()
383 kfree(pinconfig); in sunxi_pctrl_build_pin_config()
393 unsigned long *pinconfig; in sunxi_pctrl_dt_node_to_map() local
428 pinconfig = sunxi_pctrl_build_pin_config(node, &configlen); in sunxi_pctrl_dt_node_to_map()
429 if (IS_ERR(pinconfig)) { in sunxi_pctrl_dt_node_to_map()
430 ret = PTR_ERR(pinconfig); in sunxi_pctrl_dt_node_to_map()
457 if (pinconfig) { in sunxi_pctrl_dt_node_to_map()
460 (*map)[i].data.configs.configs = pinconfig; in sunxi_pctrl_dt_node_to_map()