• Home
  • Raw
  • Download

Lines Matching refs:soc

58 	desc = (const struct mtk_pin_desc *)&hw->soc->pins[pin];  in mtk_pinmux_gpio_request_enable()
61 hw->soc->gpio_m); in mtk_pinmux_gpio_request_enable()
71 desc = (const struct mtk_pin_desc *)&hw->soc->pins[pin]; in mtk_pinmux_gpio_set_direction()
85 if (pin >= hw->soc->npins) { in mtk_pinconf_get()
89 desc = (const struct mtk_pin_desc *)&hw->soc->pins[pin]; in mtk_pinconf_get()
95 if (hw->soc->bias_get_combo) { in mtk_pinconf_get()
96 err = hw->soc->bias_get_combo(hw, desc, &pullup, &ret); in mtk_pinconf_get()
150 if (hw->soc->drive_get) in mtk_pinconf_get()
151 err = hw->soc->drive_get(hw, desc, &ret); in mtk_pinconf_get()
163 if (hw->soc->adv_pull_get) { in mtk_pinconf_get()
165 err = hw->soc->adv_pull_get(hw, desc, pullup, &ret); in mtk_pinconf_get()
170 if (hw->soc->adv_drive_get) in mtk_pinconf_get()
171 err = hw->soc->adv_drive_get(hw, desc, &ret); in mtk_pinconf_get()
194 if (pin >= hw->soc->npins) { in mtk_pinconf_set()
198 desc = (const struct mtk_pin_desc *)&hw->soc->pins[pin]; in mtk_pinconf_set()
202 if (hw->soc->bias_set_combo) in mtk_pinconf_set()
203 err = hw->soc->bias_set_combo(hw, desc, 0, MTK_DISABLE); in mtk_pinconf_set()
208 if (hw->soc->bias_set_combo) in mtk_pinconf_set()
209 err = hw->soc->bias_set_combo(hw, desc, 1, arg); in mtk_pinconf_set()
214 if (hw->soc->bias_set_combo) in mtk_pinconf_set()
215 err = hw->soc->bias_set_combo(hw, desc, 0, arg); in mtk_pinconf_set()
265 if (hw->soc->drive_set) in mtk_pinconf_set()
266 err = hw->soc->drive_set(hw, desc, arg); in mtk_pinconf_set()
278 if (hw->soc->adv_pull_set) { in mtk_pinconf_set()
282 err = hw->soc->adv_pull_set(hw, desc, pullup, in mtk_pinconf_set()
288 if (hw->soc->adv_drive_set) in mtk_pinconf_set()
289 err = hw->soc->adv_drive_set(hw, desc, arg); in mtk_pinconf_set()
306 for (i = 0; i < hw->soc->ngrps; i++) { in mtk_pctrl_find_group_by_pin()
319 const struct mtk_pin_desc *pin = hw->soc->pins + pin_num; in mtk_pctrl_find_function_by_pin()
336 for (i = 0; i < hw->soc->npins; i++) { in mtk_pctrl_is_function_valid()
337 const struct mtk_pin_desc *pin = hw->soc->pins + i; in mtk_pctrl_is_function_valid()
442 if (pin >= hw->soc->npins || in mtk_pctrl_dt_subnode_to_map()
513 return hw->soc->ngrps; in mtk_pctrl_get_groups_count()
541 if (gpio >= hw->soc->npins) in mtk_hw_get_value_wrap()
544 desc = (const struct mtk_pin_desc *)&hw->soc->pins[gpio]; in mtk_hw_get_value_wrap()
580 if (gpio >= hw->soc->npins) in mtk_pctrl_show_one_pin()
586 desc = (const struct mtk_pin_desc *)&hw->soc->pins[gpio]; in mtk_pctrl_show_one_pin()
588 if (pinmux >= hw->soc->nfuncs) in mtk_pctrl_show_one_pin()
589 pinmux -= hw->soc->nfuncs; in mtk_pctrl_show_one_pin()
675 *num_groups = hw->soc->ngrps; in mtk_pmx_get_func_groups()
701 desc = (const struct mtk_pin_desc *)&hw->soc->pins[grp->pin]; in mtk_pmx_set_mux()
765 if (gpio >= hw->soc->npins) in mtk_gpio_get_direction()
775 desc = (const struct mtk_pin_desc *)&hw->soc->pins[gpio]; in mtk_gpio_get_direction()
793 if (gpio >= hw->soc->npins) in mtk_gpio_get()
796 desc = (const struct mtk_pin_desc *)&hw->soc->pins[gpio]; in mtk_gpio_get()
810 if (gpio >= hw->soc->npins) in mtk_gpio_set()
813 desc = (const struct mtk_pin_desc *)&hw->soc->pins[gpio]; in mtk_gpio_set()
822 if (gpio >= hw->soc->npins) in mtk_gpio_direction_input()
833 if (gpio >= hw->soc->npins) in mtk_gpio_direction_output()
849 desc = (const struct mtk_pin_desc *)&hw->soc->pins[offset]; in mtk_gpio_to_irq()
864 desc = (const struct mtk_pin_desc *)&hw->soc->pins[offset]; in mtk_gpio_set_config()
893 chip->ngpio = hw->soc->npins; in mtk_build_gpiochip()
910 hw->groups = devm_kmalloc_array(&pdev->dev, hw->soc->ngrps, in mtk_pctrl_build_state()
916 hw->grp_names = devm_kmalloc_array(&pdev->dev, hw->soc->ngrps, in mtk_pctrl_build_state()
921 for (i = 0; i < hw->soc->npins; i++) { in mtk_pctrl_build_state()
922 const struct mtk_pin_desc *pin = hw->soc->pins + i; in mtk_pctrl_build_state()
935 const struct mtk_pin_soc *soc) in mtk_paris_pinctrl_probe() argument
946 hw->soc = soc; in mtk_paris_pinctrl_probe()
949 if (!hw->soc->nbase_names) { in mtk_paris_pinctrl_probe()
955 hw->base = devm_kmalloc_array(&pdev->dev, hw->soc->nbase_names, in mtk_paris_pinctrl_probe()
960 for (i = 0; i < hw->soc->nbase_names; i++) { in mtk_paris_pinctrl_probe()
962 hw->soc->base_names[i]); in mtk_paris_pinctrl_probe()
967 hw->nbase = hw->soc->nbase_names; in mtk_paris_pinctrl_probe()
978 pins = devm_kmalloc_array(&pdev->dev, hw->soc->npins, sizeof(*pins), in mtk_paris_pinctrl_probe()
983 for (i = 0; i < hw->soc->npins; i++) { in mtk_paris_pinctrl_probe()
984 pins[i].number = hw->soc->pins[i].number; in mtk_paris_pinctrl_probe()
985 pins[i].name = hw->soc->pins[i].name; in mtk_paris_pinctrl_probe()
990 mtk_desc.npins = hw->soc->npins; in mtk_paris_pinctrl_probe()