Searched refs:drvstate (Results 1 – 1 of 1) sorted by relevance
39 struct huawei_cdc_ncm_state *drvstate = (void *)&usbnet_dev->data; in huawei_cdc_ncm_manage_power() local42 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() local89 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() local119 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()[all …]