Lines Matching refs:pctrldev

659 static int ns2_pin_set_enable(struct pinctrl_dev *pctrldev, unsigned int pin,  in ns2_pin_set_enable()  argument
662 struct ns2_pinctrl *pinctrl = pinctrl_dev_get_drvdata(pctrldev); in ns2_pin_set_enable()
663 struct ns2_pin *pin_data = pctrldev->desc->pins[pin].drv_data; in ns2_pin_set_enable()
679 dev_dbg(pctrldev->dev, "pin:%u set enable:%d\n", pin, enable); in ns2_pin_set_enable()
683 static int ns2_pin_get_enable(struct pinctrl_dev *pctrldev, unsigned int pin) in ns2_pin_get_enable() argument
685 struct ns2_pinctrl *pinctrl = pinctrl_dev_get_drvdata(pctrldev); in ns2_pin_get_enable()
686 struct ns2_pin *pin_data = pctrldev->desc->pins[pin].drv_data; in ns2_pin_get_enable()
701 dev_dbg(pctrldev->dev, "pin:%u get disable:%d\n", pin, enable); in ns2_pin_get_enable()
705 static int ns2_pin_set_slew(struct pinctrl_dev *pctrldev, unsigned int pin, in ns2_pin_set_slew() argument
708 struct ns2_pinctrl *pinctrl = pinctrl_dev_get_drvdata(pctrldev); in ns2_pin_set_slew()
709 struct ns2_pin *pin_data = pctrldev->desc->pins[pin].drv_data; in ns2_pin_set_slew()
725 dev_dbg(pctrldev->dev, "pin:%u set slew:%d\n", pin, slew); in ns2_pin_set_slew()
729 static int ns2_pin_get_slew(struct pinctrl_dev *pctrldev, unsigned int pin, in ns2_pin_get_slew() argument
732 struct ns2_pinctrl *pinctrl = pinctrl_dev_get_drvdata(pctrldev); in ns2_pin_get_slew()
733 struct ns2_pin *pin_data = pctrldev->desc->pins[pin].drv_data; in ns2_pin_get_slew()
742 dev_dbg(pctrldev->dev, "pin:%u get slew:%d\n", pin, *slew); in ns2_pin_get_slew()
746 static int ns2_pin_set_pull(struct pinctrl_dev *pctrldev, unsigned int pin, in ns2_pin_set_pull() argument
749 struct ns2_pinctrl *pinctrl = pinctrl_dev_get_drvdata(pctrldev); in ns2_pin_set_pull()
750 struct ns2_pin *pin_data = pctrldev->desc->pins[pin].drv_data; in ns2_pin_set_pull()
767 dev_dbg(pctrldev->dev, "pin:%u set pullup:%d pulldown: %d\n", in ns2_pin_set_pull()
772 static void ns2_pin_get_pull(struct pinctrl_dev *pctrldev, in ns2_pin_get_pull() argument
776 struct ns2_pinctrl *pinctrl = pinctrl_dev_get_drvdata(pctrldev); in ns2_pin_get_pull()
777 struct ns2_pin *pin_data = pctrldev->desc->pins[pin].drv_data; in ns2_pin_get_pull()
795 static int ns2_pin_set_strength(struct pinctrl_dev *pctrldev, unsigned int pin, in ns2_pin_set_strength() argument
798 struct ns2_pinctrl *pinctrl = pinctrl_dev_get_drvdata(pctrldev); in ns2_pin_set_strength()
799 struct ns2_pin *pin_data = pctrldev->desc->pins[pin].drv_data; in ns2_pin_set_strength()
816 dev_dbg(pctrldev->dev, "pin:%u set drive strength:%d mA\n", in ns2_pin_set_strength()
821 static int ns2_pin_get_strength(struct pinctrl_dev *pctrldev, unsigned int pin, in ns2_pin_get_strength() argument
824 struct ns2_pinctrl *pinctrl = pinctrl_dev_get_drvdata(pctrldev); in ns2_pin_get_strength()
825 struct ns2_pin *pin_data = pctrldev->desc->pins[pin].drv_data; in ns2_pin_get_strength()
836 dev_dbg(pctrldev->dev, "pin:%u get drive strength:%d mA\n", in ns2_pin_get_strength()
901 static int ns2_pin_config_set(struct pinctrl_dev *pctrldev, unsigned int pin, in ns2_pin_config_set() argument
904 struct ns2_pin *pin_data = pctrldev->desc->pins[pin].drv_data; in ns2_pin_config_set()
919 ret = ns2_pin_set_pull(pctrldev, pin, false, false); in ns2_pin_config_set()
925 ret = ns2_pin_set_pull(pctrldev, pin, true, false); in ns2_pin_config_set()
931 ret = ns2_pin_set_pull(pctrldev, pin, false, true); in ns2_pin_config_set()
937 ret = ns2_pin_set_strength(pctrldev, pin, arg); in ns2_pin_config_set()
943 ret = ns2_pin_set_slew(pctrldev, pin, arg); in ns2_pin_config_set()
949 ret = ns2_pin_set_enable(pctrldev, pin, arg); in ns2_pin_config_set()
955 dev_err(pctrldev->dev, "invalid configuration\n"); in ns2_pin_config_set()