Lines Matching full:extcon
3 * drivers/extcon/extcon.c - External Connector (extcon) framework.
27 #include "extcon.h"
193 * @edev: the extcon device
250 /* Find the the index of extcon cable in edev->supported_cable */ in find_cable_index_by_id()
296 /* Check whether a specific extcon id supports the property or not. */ in is_extcon_property_supported()
401 * @edev: the extcon device
484 * @edev: the extcon device
511 * @edev: the extcon device
547 * Initialize the value of extcon property before setting in extcon_set_state()
567 * @edev: the extcon device
603 * @edev: the extcon device
605 * @prop: the property id indicating an extcon property
606 * @prop_val: the pointer which store the value of extcon property
611 * included in the list of supported properties according to extcon type.
657 /* Get the property value according to extcon type */ in extcon_get_property()
684 * @edev: the extcon device
686 * @prop: the property id indicating an extcon property
687 * @prop_val: the pointer including the new value of extcon property
690 * properties according to the extcon type.
724 /* Set the property value according to extcon type */ in extcon_set_property()
751 * @prop_val: the pointer including the new value of extcon property
755 * be included in the list of supported properties according to extcon type.
776 * @edev: the extcon device
778 * @prop: the property id indicating an extcon property
806 * @edev: the extcon device
808 * @prop: the property id indicating an extcon property
862 * extcon_get_extcon_dev() - Get the extcon device instance from the name.
863 * @extcon_name: the extcon name provided with extcon_dev_register()
865 * Return the pointer of extcon device if success or ERR_PTR(err) if fail.
888 * any state changes from the extcon.
889 * @edev: the extcon device
895 * is the pointer of extcon device.
921 * extcon_unregister_notifier() - Unregister a notifier block from the extcon.
922 * @edev: the extcon device
951 * @edev: the extcon device
955 * the state change of all supported external connectors from extcon device.
957 * the current state and the third pameter is the pointer of extcon device.
979 * extcon_unregister_notifier_all() - Unregister a notifier block from extcon.
980 * @edev: the extcon device
1007 ATTRIBUTE_GROUPS(extcon);
1012 extcon_class = class_create(THIS_MODULE, "extcon"); in create_extcon_class()
1031 * extcon_dev_allocate() - Allocate the memory of extcon device.
1035 * Note that this function allocates the memory for extcon device
1036 * and initialize default setting for the extcon device.
1059 * extcon_dev_free() - Free the memory of extcon device.
1060 * @edev: the extcon device
1069 * extcon_dev_register() - Register an new extcon device
1070 * @edev: the extcon device to be registered
1077 * of an extcon device by using the extcon_dev_allocate(). And the extcon
1111 "extcon device name is null\n"); in extcon_dev_register()
1114 dev_set_name(&edev->dev, "extcon%lu", in extcon_dev_register()
1284 * extcon_dev_unregister() - Unregister the extcon device.
1285 * @edev: the extcon device to be unregistered.
1332 * extcon_find_edev_by_node - Find the extcon device from devicetree.
1335 * Return the pointer of extcon device if success or ERR_PTR(err) if fail.
1353 * extcon_get_edev_by_phandle - Get the extcon device from devicetree.
1357 * Return the pointer of extcon device if success or ERR_PTR(err) if fail.
1372 node = of_parse_phandle(dev->of_node, "extcon", index); in extcon_get_edev_by_phandle()
1403 * extcon_get_edev_name() - Get the name of the extcon device.
1404 * @edev: the extcon device
1426 MODULE_DESCRIPTION("External Connector (extcon) framework");