Lines Matching full:pse

11 #include <linux/pse-pd/pse.h>
19 * struct pse_control - a PSE control
20 * @pcdev: a pointer to the PSE controller device
21 * this PSE control belongs to
22 * @ps: PSE PI supply of the PSE control
23 * @list: list entry for the pcdev's PSE controller list
24 * @id: ID of the PSE line in the PSE controller device
53 pr_err("pse: wrong pairset-names value %s (%pOF)\n", in of_load_single_pse_pi_pairset()
68 * of_load_pse_pi_pairsets - load PSE PI pairsets pinout and polarity
70 * @pi: a pointer of the PSE PI to fill
83 pr_err("pse: amount of pairsets and pairset-names is not equal %d != %d (%pOF)\n", in of_load_pse_pi_pairsets()
96 pr_err("pse: two PI pairsets can not have identical pinout (%pOF)", in of_load_pse_pi_pairsets()
126 * of_load_pse_pis - load all the PSE PIs
127 * @pcdev: a pointer to the PSE controller device
144 pis = of_get_child_by_name(np, "pse-pis"); in of_load_pse_pis()
146 /* no description of PSE PIs */ in of_load_pse_pis()
155 if (!of_node_name_eq(node, "pse-pi")) in of_load_pse_pis()
407 * PSE PI id for the well functioning of the PSE controls. in devm_pse_pi_regulator_register()
441 * pse_controller_register - register a PSE controller device
442 * @pcdev: a pointer to the initialized PSE controller device
491 snprintf(reg_name, reg_name_len, "pse-%s_pi%d", in pse_controller_register()
508 * pse_controller_unregister - unregister a PSE controller device
509 * @pcdev: a pointer to the PSE controller device
527 * @dev: device that is registering this PSE controller
528 * @pcdev: a pointer to the initialized PSE controller device
530 * Managed pse_controller_register(). For PSE controllers registered by
560 /* PSE control section */
587 * pse_control_put - free the PSE control
588 * @psec: PSE control pointer
656 * of_pse_match_pi - Find the PSE PI id matching the device node phandle
657 * @pcdev: a pointer to the PSE controller device
660 * Return: id of the PSE PI, -EINVAL if not found
676 * psec_id_xlate - translate pse_spec to the PSE line number according
677 * to the number of pse-cells in case of no pse_pi node
678 * @pcdev: a pointer to the PSE controller device
679 * @pse_spec: PSE line specifier as found in the device tree
681 * Return: 0 if #pse-cells = <0>. Return PSE line number otherwise.
707 ret = of_parse_phandle_with_args(node, "pses", "#pse-cells", 0, &args); in of_pse_control_get()
757 * pse_ethtool_get_status - get status of PSE control
758 * @psec: PSE control pointer
760 * @status: struct to store PSE status
904 * pse_ethtool_set_config - set PSE control configuration
905 * @psec: PSE control pointer
931 * pse_ethtool_set_pw_limit - set PSE control power limit
932 * @psec: PSE control pointer
951 "Can't calculate the current, PSE voltage read is 0"); in pse_ethtool_set_pw_limit()
956 "Error reading PSE voltage"); in pse_ethtool_set_pw_limit()