Lines Matching refs:usage
118 int usage; /* Usage count; >0 for chrdev, -1 for netdev */ member
164 int usage; /* usage count */ member
540 cosa->usage = 0; in cosa_probe()
623 if (chan->usage != 0) { in cosa_sppp_open()
625 chan->name, chan->usage); in cosa_sppp_open()
632 chan->usage=-1; in cosa_sppp_open()
633 chan->cosa->usage++; in cosa_sppp_open()
640 chan->usage=0; in cosa_sppp_open()
641 chan->cosa->usage--; in cosa_sppp_open()
700 chan->usage=0; in cosa_sppp_close()
701 chan->cosa->usage--; in cosa_sppp_close()
951 if (chan->usage < 0) { /* in netdev mode */ in cosa_open()
955 cosa->usage++; in cosa_open()
956 chan->usage++; in cosa_open()
974 cosa->usage--; in cosa_release()
975 channel->usage--; in cosa_release()
1003 if (cosa->usage > 1) in cosa_reset()
1005 cosa->num, cosa->usage); in cosa_reset()
1024 if (cosa->usage > 1) in cosa_download()
1026 cosa->name, cosa->usage); in cosa_download()
1065 if (cosa->usage > 1) in cosa_readmem()
1068 cosa->num, cosa->usage); in cosa_readmem()
1100 if (cosa->usage > 1) in cosa_start()
1102 cosa->num, cosa->usage); in cosa_start()