Lines Matching refs:pctrldev

653 static int ns2_pin_set_enable(struct pinctrl_dev *pctrldev, unsigned int pin,  in ns2_pin_set_enable()  argument
656 struct ns2_pinctrl *pinctrl = pinctrl_dev_get_drvdata(pctrldev); in ns2_pin_set_enable()
657 struct ns2_pin *pin_data = pctrldev->desc->pins[pin].drv_data; in ns2_pin_set_enable()
673 dev_dbg(pctrldev->dev, "pin:%u set enable:%d\n", pin, enable); in ns2_pin_set_enable()
677 static int ns2_pin_get_enable(struct pinctrl_dev *pctrldev, unsigned int pin) in ns2_pin_get_enable() argument
679 struct ns2_pinctrl *pinctrl = pinctrl_dev_get_drvdata(pctrldev); in ns2_pin_get_enable()
680 struct ns2_pin *pin_data = pctrldev->desc->pins[pin].drv_data; in ns2_pin_get_enable()
695 dev_dbg(pctrldev->dev, "pin:%u get disable:%d\n", pin, enable); in ns2_pin_get_enable()
699 static int ns2_pin_set_slew(struct pinctrl_dev *pctrldev, unsigned int pin, in ns2_pin_set_slew() argument
702 struct ns2_pinctrl *pinctrl = pinctrl_dev_get_drvdata(pctrldev); in ns2_pin_set_slew()
703 struct ns2_pin *pin_data = pctrldev->desc->pins[pin].drv_data; in ns2_pin_set_slew()
719 dev_dbg(pctrldev->dev, "pin:%u set slew:%d\n", pin, slew); in ns2_pin_set_slew()
723 static int ns2_pin_get_slew(struct pinctrl_dev *pctrldev, unsigned int pin, in ns2_pin_get_slew() argument
726 struct ns2_pinctrl *pinctrl = pinctrl_dev_get_drvdata(pctrldev); in ns2_pin_get_slew()
727 struct ns2_pin *pin_data = pctrldev->desc->pins[pin].drv_data; in ns2_pin_get_slew()
736 dev_dbg(pctrldev->dev, "pin:%u get slew:%d\n", pin, *slew); in ns2_pin_get_slew()
740 static int ns2_pin_set_pull(struct pinctrl_dev *pctrldev, unsigned int pin, in ns2_pin_set_pull() argument
743 struct ns2_pinctrl *pinctrl = pinctrl_dev_get_drvdata(pctrldev); in ns2_pin_set_pull()
744 struct ns2_pin *pin_data = pctrldev->desc->pins[pin].drv_data; in ns2_pin_set_pull()
761 dev_dbg(pctrldev->dev, "pin:%u set pullup:%d pulldown: %d\n", in ns2_pin_set_pull()
766 static void ns2_pin_get_pull(struct pinctrl_dev *pctrldev, in ns2_pin_get_pull() argument
770 struct ns2_pinctrl *pinctrl = pinctrl_dev_get_drvdata(pctrldev); in ns2_pin_get_pull()
771 struct ns2_pin *pin_data = pctrldev->desc->pins[pin].drv_data; in ns2_pin_get_pull()
789 static int ns2_pin_set_strength(struct pinctrl_dev *pctrldev, unsigned int pin, in ns2_pin_set_strength() argument
792 struct ns2_pinctrl *pinctrl = pinctrl_dev_get_drvdata(pctrldev); in ns2_pin_set_strength()
793 struct ns2_pin *pin_data = pctrldev->desc->pins[pin].drv_data; in ns2_pin_set_strength()
810 dev_dbg(pctrldev->dev, "pin:%u set drive strength:%d mA\n", in ns2_pin_set_strength()
815 static int ns2_pin_get_strength(struct pinctrl_dev *pctrldev, unsigned int pin, in ns2_pin_get_strength() argument
818 struct ns2_pinctrl *pinctrl = pinctrl_dev_get_drvdata(pctrldev); in ns2_pin_get_strength()
819 struct ns2_pin *pin_data = pctrldev->desc->pins[pin].drv_data; in ns2_pin_get_strength()
830 dev_dbg(pctrldev->dev, "pin:%u get drive strength:%d mA\n", in ns2_pin_get_strength()
895 static int ns2_pin_config_set(struct pinctrl_dev *pctrldev, unsigned int pin, in ns2_pin_config_set() argument
898 struct ns2_pin *pin_data = pctrldev->desc->pins[pin].drv_data; in ns2_pin_config_set()
913 ret = ns2_pin_set_pull(pctrldev, pin, false, false); in ns2_pin_config_set()
919 ret = ns2_pin_set_pull(pctrldev, pin, true, false); in ns2_pin_config_set()
925 ret = ns2_pin_set_pull(pctrldev, pin, false, true); in ns2_pin_config_set()
931 ret = ns2_pin_set_strength(pctrldev, pin, arg); in ns2_pin_config_set()
937 ret = ns2_pin_set_slew(pctrldev, pin, arg); in ns2_pin_config_set()
943 ret = ns2_pin_set_enable(pctrldev, pin, arg); in ns2_pin_config_set()
949 dev_err(pctrldev->dev, "invalid configuration\n"); in ns2_pin_config_set()