Lines Matching full:switch

3  * USB Role Switch Support
50 ret = sysfs_create_link(&connector->kobj, &dev->kobj, "usb-role-switch"); in connector_bind()
59 sysfs_remove_link(&connector->kobj, "usb-role-switch"); in connector_unbind()
69 * usb_role_switch_set_role - Set USB role for a switch
70 * @sw: USB role switch
100 * usb_role_switch_get_role - Get the USB role for a switch
101 * @sw: USB role switch
103 * Depending on the role-switch-driver this function returns either a cached
145 if (!fwnode_property_present(parent, "usb-role-switch")) { in usb_role_switch_is_parent()
156 * usb_role_switch_get - Find USB role switch linked with the caller
159 * Finds and returns role switch linked with @dev. The reference count for the
160 * found switch is incremented.
168 sw = device_connection_find_match(dev, "usb-role-switch", NULL, in usb_role_switch_get()
179 * fwnode_usb_role_switch_get - Find USB role switch linked with the caller
183 * the switch using fwnode instead of device entry.
191 sw = fwnode_connection_find_match(fwnode, "usb-role-switch", in fwnode_usb_role_switch_get()
201 * usb_role_switch_put - Release handle to a switch
202 * @sw: USB Role Switch
216 * usb_role_switch_find_by_fwnode - Find USB role switch with its fwnode
217 * @fwnode: fwnode of the USB Role Switch
219 * Finds and returns role switch with @fwnode. The reference count for the
220 * found switch is incremented.
287 /* Extra check if the user wants to disable the switch */ in role_store()
344 * usb_role_switch_register - Register USB Role Switch
345 * @parent: Parent device for the switch
346 * @desc: Description of the switch
348 * USB Role Switch is a device capable or choosing the role for USB connector.
350 * driver will need to register the switch. On platforms where the USB host and
352 * mux, and the driver for that mux will need to register the switch.
354 * Returns handle to a new role switch or ERR_PTR. The content of @desc is
387 dev_set_name(&sw->dev, "%s-role-switch", in usb_role_switch_register()
411 * usb_role_switch_unregister - Unregsiter USB Role Switch
412 * @sw: USB Role Switch
414 * Unregister switch that was registered with usb_role_switch_register().
428 * usb_role_switch_set_drvdata - Assign private data pointer to a switch
429 * @sw: USB Role Switch
439 * usb_role_switch_get_drvdata - Get the private data pointer of a switch
440 * @sw: USB Role Switch