Searched refs:rdrv (Results 1 – 3 of 3) sorted by relevance
41 struct cdns3_role_driver *rdrv; in cdns3_host_init() local43 rdrv = devm_kzalloc(cdns->dev, sizeof(*rdrv), GFP_KERNEL); in cdns3_host_init()44 if (!rdrv) in cdns3_host_init()47 rdrv->start = __cdns3_host_init; in cdns3_host_init()48 rdrv->stop = cdns3_host_exit; in cdns3_host_init()49 rdrv->state = CDNS3_ROLE_STATE_INACTIVE; in cdns3_host_init()50 rdrv->name = "host"; in cdns3_host_init()52 cdns->roles[USB_ROLE_HOST] = rdrv; in cdns3_host_init()
260 struct cdns3_role_driver *rdrv; in cdns3_idle_init() local262 rdrv = devm_kzalloc(cdns->dev, sizeof(*rdrv), GFP_KERNEL); in cdns3_idle_init()263 if (!rdrv) in cdns3_idle_init()266 rdrv->start = cdns3_idle_role_start; in cdns3_idle_init()267 rdrv->stop = cdns3_idle_role_stop; in cdns3_idle_init()268 rdrv->state = CDNS3_ROLE_STATE_INACTIVE; in cdns3_idle_init()269 rdrv->suspend = NULL; in cdns3_idle_init()270 rdrv->resume = NULL; in cdns3_idle_init()271 rdrv->name = "idle"; in cdns3_idle_init()273 cdns->roles[USB_ROLE_NONE] = rdrv; in cdns3_idle_init()
2722 struct cdns3_role_driver *rdrv; in cdns3_gadget_init() local2724 rdrv = devm_kzalloc(cdns->dev, sizeof(*rdrv), GFP_KERNEL); in cdns3_gadget_init()2725 if (!rdrv) in cdns3_gadget_init()2728 rdrv->start = __cdns3_gadget_init; in cdns3_gadget_init()2729 rdrv->stop = cdns3_gadget_exit; in cdns3_gadget_init()2730 rdrv->suspend = cdns3_gadget_suspend; in cdns3_gadget_init()2731 rdrv->resume = cdns3_gadget_resume; in cdns3_gadget_init()2732 rdrv->state = CDNS3_ROLE_STATE_INACTIVE; in cdns3_gadget_init()2733 rdrv->name = "gadget"; in cdns3_gadget_init()2734 cdns->roles[USB_ROLE_DEVICE] = rdrv; in cdns3_gadget_init()