Searched refs:rdrv (Results 1 – 3 of 3) sorted by relevance
42 struct cdns3_role_driver *rdrv; in cdns3_host_init() local44 rdrv = devm_kzalloc(cdns->dev, sizeof(*rdrv), GFP_KERNEL); in cdns3_host_init()45 if (!rdrv) in cdns3_host_init()48 rdrv->start = __cdns3_host_init; in cdns3_host_init()49 rdrv->stop = cdns3_host_exit; in cdns3_host_init()50 rdrv->state = CDNS3_ROLE_STATE_INACTIVE; in cdns3_host_init()51 rdrv->name = "host"; in cdns3_host_init()53 cdns->roles[USB_ROLE_HOST] = rdrv; in cdns3_host_init()
264 struct cdns3_role_driver *rdrv; in cdns3_idle_init() local266 rdrv = devm_kzalloc(cdns->dev, sizeof(*rdrv), GFP_KERNEL); in cdns3_idle_init()267 if (!rdrv) in cdns3_idle_init()270 rdrv->start = cdns3_idle_role_start; in cdns3_idle_init()271 rdrv->stop = cdns3_idle_role_stop; in cdns3_idle_init()272 rdrv->state = CDNS3_ROLE_STATE_INACTIVE; in cdns3_idle_init()273 rdrv->suspend = NULL; in cdns3_idle_init()274 rdrv->resume = NULL; in cdns3_idle_init()275 rdrv->name = "idle"; in cdns3_idle_init()277 cdns->roles[USB_ROLE_NONE] = rdrv; in cdns3_idle_init()
2726 struct cdns3_role_driver *rdrv; in cdns3_gadget_init() local2728 rdrv = devm_kzalloc(cdns->dev, sizeof(*rdrv), GFP_KERNEL); in cdns3_gadget_init()2729 if (!rdrv) in cdns3_gadget_init()2732 rdrv->start = __cdns3_gadget_init; in cdns3_gadget_init()2733 rdrv->stop = cdns3_gadget_exit; in cdns3_gadget_init()2734 rdrv->suspend = cdns3_gadget_suspend; in cdns3_gadget_init()2735 rdrv->resume = cdns3_gadget_resume; in cdns3_gadget_init()2736 rdrv->state = CDNS3_ROLE_STATE_INACTIVE; in cdns3_gadget_init()2737 rdrv->name = "gadget"; in cdns3_gadget_init()2738 cdns->roles[USB_ROLE_DEVICE] = rdrv; in cdns3_gadget_init()
Completed in 8 milliseconds