Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/net/usb/
Dhuawei_cdc_ncm.c39 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()
[all …]