Home
last modified time | relevance | path

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

/net/9p/
Dtrans_virtio.c75 bool inuse; member
107 chan->inuse = false; in p9_virtio_close()
258 chan->inuse = false; in p9_virtio_probe()
300 if (chan->initialized && !chan->inuse) { in p9_virtio_create()
301 chan->inuse = true; in p9_virtio_create()
331 BUG_ON(chan->inuse); in p9_virtio_remove()
/net/bridge/
Dbr_if.c221 unsigned long *inuse; in find_portno() local
223 inuse = kcalloc(BITS_TO_LONGS(BR_MAX_PORTS), sizeof(unsigned long), in find_portno()
225 if (!inuse) in find_portno()
228 set_bit(0, inuse); /* zero is reserved */ in find_portno()
230 set_bit(p->port_no, inuse); in find_portno()
232 index = find_first_zero_bit(inuse, BR_MAX_PORTS); in find_portno()
233 kfree(inuse); in find_portno()
/net/atm/
Dresources.c78 struct atm_dev *dev, *inuse; in atm_dev_register() local
88 if ((inuse = __atm_dev_lookup(number))) { in atm_dev_register()
89 atm_dev_put(inuse); in atm_dev_register()
97 while ((inuse = __atm_dev_lookup(dev->number))) { in atm_dev_register()
98 atm_dev_put(inuse); in atm_dev_register()
/net/core/
Dsock.c1951 per_cpu_ptr(net->core.inuse, cpu)->val[prot->inuse_idx] += val; in sock_prot_inuse_add()
1961 res += per_cpu_ptr(net->core.inuse, cpu)->val[idx]; in sock_prot_inuse_get()
1969 net->core.inuse = alloc_percpu(struct prot_inuse); in sock_inuse_init_net()
1970 return net->core.inuse ? 0 : -ENOMEM; in sock_inuse_init_net()
1975 free_percpu(net->core.inuse); in sock_inuse_exit_net()
Ddev.c798 unsigned long *inuse; in __dev_alloc_name() local
812 inuse = (unsigned long *) get_zeroed_page(GFP_ATOMIC); in __dev_alloc_name()
813 if (!inuse) in __dev_alloc_name()
825 set_bit(i, inuse); in __dev_alloc_name()
828 i = find_first_zero_bit(inuse, max_netdevices); in __dev_alloc_name()
829 free_page((unsigned long) inuse); in __dev_alloc_name()
/net/sunrpc/
Dcache.c383 if (cd->entries || atomic_read(&cd->inuse)) { in cache_unregister()