Home
last modified time | relevance | path

Searched refs:role_sw (Results 1 – 13 of 13) sorted by relevance

/linux/drivers/usb/dwc2/
H A Ddrd.c176 struct usb_role_switch *role_sw; in dwc2_drd_init() local
188 role_sw = usb_role_switch_register(hsotg->dev, &role_sw_desc); in dwc2_drd_init()
189 if (IS_ERR(role_sw)) { in dwc2_drd_init()
190 ret = PTR_ERR(role_sw); in dwc2_drd_init()
196 hsotg->role_sw = role_sw; in dwc2_drd_init()
208 if (hsotg->role_sw && !hsotg->params.external_id_pin_ctl) { in dwc2_drd_suspend()
222 if (hsotg->role_sw) { in dwc2_drd_resume()
224 role = usb_role_switch_get_role(hsotg->role_sw); in dwc2_drd_resume()
246 if (hsotg->role_sw && !hsotg->params.external_id_pin_ctl) { in dwc2_drd_resume()
257 if (hsotg->role_sw) in dwc2_drd_exit()
[all …]
H A Dplatform.c782 if (!dwc2->role_sw) { in dwc2_resume()
H A Dcore.h1066 struct usb_role_switch *role_sw; member
/linux/drivers/extcon/
H A Dextcon-ptn5150.c62 struct usb_role_switch *role_sw; member
133 ret = usb_role_switch_set_role(info->role_sw, usb_role); in ptn5150_check_state()
173 ret = usb_role_switch_set_role(info->role_sw, in ptn5150_irq_work()
251 usb_role_switch_put(info->role_sw); in ptn5150_work_sync_and_put()
354 info->role_sw = usb_role_switch_get(info->dev); in ptn5150_i2c_probe()
355 if (!info->role_sw && connector) in ptn5150_i2c_probe()
356 info->role_sw = fwnode_usb_role_switch_get(connector); in ptn5150_i2c_probe()
357 if (IS_ERR(info->role_sw)) in ptn5150_i2c_probe()
358 return dev_err_probe(info->dev, PTR_ERR(info->role_sw), in ptn5150_i2c_probe()
H A Dextcon-usbc-tusb320.c85 struct usb_role_switch *role_sw; member
361 usb_role_switch_set_role(priv->role_sw, usb_role); in tusb320_typec_irq_handler()
485 priv->role_sw = fwnode_usb_role_switch_get(connector); in tusb320_typec_probe()
486 if (IS_ERR(priv->role_sw)) { in tusb320_typec_probe()
487 ret = PTR_ERR(priv->role_sw); in tusb320_typec_probe()
506 usb_role_switch_put(priv->role_sw); in tusb320_typec_remove()
H A Dextcon-intel-cht-wc.c107 struct usb_role_switch *role_sw; member
337 ret = usb_role_switch_set_role(ext->role_sw, role); in cht_wc_extcon_pwrsrc_event()
398 ext->role_sw = usb_role_switch_find_by_fwnode(fwnode); in cht_wc_extcon_find_role_sw()
401 return ext->role_sw ? 0 : -EPROBE_DEFER; in cht_wc_extcon_find_role_sw()
408 usb_role_switch_put(ext->role_sw); in cht_wc_extcon_put_role_sw()
/linux/drivers/usb/common/
H A Dusb-conn-gpio.c37 struct usb_role_switch *role_sw; member
105 ret = usb_role_switch_set_role(info->role_sw, role); in usb_conn_detect_cable()
234 info->role_sw = usb_role_switch_get(dev); in usb_conn_probe()
235 if (IS_ERR(info->role_sw)) in usb_conn_probe()
236 return dev_err_probe(dev, PTR_ERR(info->role_sw), in usb_conn_probe()
287 usb_role_switch_put(info->role_sw); in usb_conn_probe()
303 usb_role_switch_put(info->role_sw); in usb_conn_remove()
/linux/drivers/usb/dwc3/
H A Ddwc3-apple.c97 struct usb_role_switch *role_sw; member
428 appledwc->role_sw = usb_role_switch_register(appledwc->dev, &dwc3_role_switch); in dwc3_apple_setup_role_switch()
429 if (IS_ERR(appledwc->role_sw)) in dwc3_apple_setup_role_switch()
430 return PTR_ERR(appledwc->role_sw); in dwc3_apple_setup_role_switch()
492 usb_role_switch_unregister(appledwc->role_sw); in dwc3_apple_remove()
/linux/drivers/usb/typec/
H A Drt1719.c89 struct usb_role_switch *role_sw; member
204 usb_role_switch_set_role(data->role_sw, usb_role); in rt1719_set_data_role()
871 data->role_sw = fwnode_usb_role_switch_get(fwnode); in rt1719_probe()
872 if (IS_ERR(data->role_sw)) { in rt1719_probe()
873 ret = PTR_ERR(data->role_sw); in rt1719_probe()
921 usb_role_switch_put(data->role_sw); in rt1719_probe()
933 usb_role_switch_put(data->role_sw); in rt1719_remove()
H A Danx7411.c246 struct usb_role_switch *role_sw; member
480 if (!ctx->typec.role_sw) in anx7411_set_usb_role()
483 return usb_role_switch_set_role(ctx->typec.role_sw, role); in anx7411_set_usb_role()
1032 if (typecp->role_sw) in anx7411_port_unregister()
1033 usb_role_switch_put(typecp->role_sw); in anx7411_port_unregister()
1258 ctx->typec.role_sw = usb_role_switch_get(dev); in anx7411_typec_port_probe()
1259 if (IS_ERR(ctx->typec.role_sw)) { in anx7411_typec_port_probe()
1261 ctx->typec.role_sw = NULL; in anx7411_typec_port_probe()
1278 if (ctx->typec.role_sw) in anx7411_typec_port_probe()
1279 usb_role_switch_put(ctx->typec.role_sw); in anx7411_typec_port_probe()
/linux/drivers/usb/mtu3/
H A Dmtu3.h224 struct usb_role_switch *role_sw; member
/linux/drivers/net/wireless/realtek/rtw89/
H A Dcoex.c4679 u8 role_sw: 1; member
9116 bt->bcnt[BTC_BCNT_ROLESW] += !!(btinfo.hb1.role_sw && !b->role_sw); in _update_bt_info()
9117 b->role_sw = btinfo.hb1.role_sw; in _update_bt_info()
H A Dcore.h2233 u8 role_sw: 1; member