Searched refs:inuse (Results 1 – 6 of 6) sorted by relevance
/net/9p/ |
D | trans_virtio.c | 75 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/ |
D | br_if.c | 221 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/ |
D | resources.c | 78 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/ |
D | sock.c | 1951 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()
|
D | dev.c | 798 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/ |
D | cache.c | 383 if (cd->entries || atomic_read(&cd->inuse)) { in cache_unregister()
|