Lines Matching refs:pin

3  * MediaTek Pinctrl Paris Driver, which implement the vendor per-pin
58 * and standard PIN_CONFIG_DRIVE_STRENGTH_UA pin configs.
105 unsigned int pin)
110 desc = (const struct mtk_pin_desc *)&hw->soc->pins[pin];
118 unsigned int pin, bool input)
123 desc = (const struct mtk_pin_desc *)&hw->soc->pins[pin];
130 unsigned int pin, unsigned long *config)
137 if (pin >= hw->soc->npins)
140 desc = (const struct mtk_pin_desc *)&hw->soc->pins[pin];
258 static int mtk_pinconf_set(struct pinctrl_dev *pctldev, unsigned int pin,
266 if (pin >= hw->soc->npins)
269 desc = (const struct mtk_pin_desc *)&hw->soc->pins[pin];
354 mtk_pctrl_find_group_by_pin(struct mtk_pinctrl *hw, u32 pin)
361 if (grp->pin == pin)
371 const struct mtk_pin_desc *pin = hw->soc->pins + pin_num;
372 const struct mtk_func_desc *func = pin->funcs;
389 const struct mtk_pin_desc *pin = hw->soc->pins + i;
391 if (pin->number == pin_num) {
392 const struct mtk_func_desc *func = pin->funcs;
408 u32 pin, u32 fnum,
422 ret = mtk_pctrl_is_function_valid(pctl, pin, fnum);
424 dev_err(pctl->dev, "invalid function %d on pin %d .\n",
425 fnum, pin);
447 u32 pinfunc, pin, func;
491 pin = MTK_GET_PIN_NO(pinfunc);
494 if (pin >= hw->soc->npins ||
501 grp = mtk_pctrl_find_group_by_pin(hw, pin);
503 dev_err(hw->dev, "unable to match pin %d to group\n",
504 pin);
509 err = mtk_pctrl_dt_node_to_map_func(hw, pin, func, grp, map,
582 *pins = (unsigned *)&hw->groups[group].pin;
756 ret = mtk_pctrl_is_function_valid(hw, grp->pin, function);
763 desc_func = mtk_pctrl_find_function_by_pin(hw, grp->pin, function);
767 desc = (const struct mtk_pin_desc *)&hw->soc->pins[grp->pin];
786 /* One pin per group only */
787 return mtk_pinconf_get(pctldev, grp->pin, config);
800 ret = mtk_pinconf_set(pctldev, grp->pin,
819 hw->soc->adv_drive_set(hw, &hw->soc->pins[grp->pin], 0);
993 /* We assume that one pin is one group, use pin name as group name. */
1000 const struct mtk_pin_desc *pin = hw->soc->pins + i;
1003 group->name = pin->name;
1004 group->pin = pin->number;
1006 hw->grp_names[i] = pin->name;