Lines Matching refs:drvstate
39 struct huawei_cdc_ncm_state *drvstate = (void *)&usbnet_dev->data; in huawei_cdc_ncm_manage_power() local
42 if ((on && atomic_add_return(1, &drvstate->pmcount) == 1) || in huawei_cdc_ncm_manage_power()
43 (!on && atomic_dec_and_test(&drvstate->pmcount))) { in huawei_cdc_ncm_manage_power()
71 struct huawei_cdc_ncm_state *drvstate = (void *)&usbnet_dev->data; in huawei_cdc_ncm_bind() local
89 ctx = drvstate->ctx; in huawei_cdc_ncm_bind()
109 drvstate->subdriver = subdriver; in huawei_cdc_ncm_bind()
118 struct huawei_cdc_ncm_state *drvstate = (void *)&usbnet_dev->data; in huawei_cdc_ncm_unbind() local
119 struct cdc_ncm_ctx *ctx = drvstate->ctx; in huawei_cdc_ncm_unbind()
121 if (drvstate->subdriver && drvstate->subdriver->disconnect) in huawei_cdc_ncm_unbind()
122 drvstate->subdriver->disconnect(ctx->control); in huawei_cdc_ncm_unbind()
123 drvstate->subdriver = NULL; in huawei_cdc_ncm_unbind()
133 struct huawei_cdc_ncm_state *drvstate = (void *)&usbnet_dev->data; in huawei_cdc_ncm_suspend() local
134 struct cdc_ncm_ctx *ctx = drvstate->ctx; in huawei_cdc_ncm_suspend()
146 drvstate->subdriver && in huawei_cdc_ncm_suspend()
147 drvstate->subdriver->suspend) in huawei_cdc_ncm_suspend()
148 ret = drvstate->subdriver->suspend(intf, message); in huawei_cdc_ncm_suspend()
160 struct huawei_cdc_ncm_state *drvstate = (void *)&usbnet_dev->data; in huawei_cdc_ncm_resume() local
162 struct cdc_ncm_ctx *ctx = drvstate->ctx; in huawei_cdc_ncm_resume()
167 drvstate->subdriver && in huawei_cdc_ncm_resume()
168 drvstate->subdriver->resume); in huawei_cdc_ncm_resume()
171 ret = drvstate->subdriver->resume(intf); in huawei_cdc_ncm_resume()
176 drvstate->subdriver->suspend(intf, PMSG_SUSPEND); in huawei_cdc_ncm_resume()