Home
last modified time | relevance | path

Searched refs:wmem_alloc (Results 1 – 25 of 39) sorted by relevance

12

/linux-2.4.37.9/net/atm/
Draw.c39 DPRINTK("APopR (%d) %d -= %d\n",vcc->vci,vcc->sk->wmem_alloc,skb->truesize); in atm_pop_raw()
40 atomic_sub(skb->truesize, &vcc->sk->wmem_alloc); in atm_pop_raw()
Dcommon.c217 if (atomic_read(&vcc->sk->wmem_alloc) && !atm_may_send(vcc,size)) { in alloc_tx()
219 atomic_read(&vcc->sk->wmem_alloc),size,vcc->sk->sndbuf); in alloc_tx()
223 DPRINTK("AlTx %d += %d\n",atomic_read(&vcc->sk->wmem_alloc),skb->truesize); in alloc_tx()
224 atomic_add(skb->truesize, &vcc->sk->wmem_alloc); in alloc_tx()
241 if (atomic_read(&vcc->sk->wmem_alloc)) in vcc_sock_destruct()
242 …KERN_DEBUG "vcc_sock_destruct: wmem leakage (%d bytes) detected.\n", atomic_read(&sk->wmem_alloc)); in vcc_sock_destruct()
276 atomic_set(&vcc->sk->wmem_alloc,0); in vcc_create()
648 vcc->qos.txtp.max_sdu+atomic_read(&vcc->sk->wmem_alloc) <= vcc->sk->sndbuf) in atm_poll()
673 atomic_read(&vcc->sk->wmem_alloc), in vcc_ioctl()
Dpppoatm.c236 atomic_add(skb->truesize, &ATM_SKB(skb)->vcc->sk->wmem_alloc); in pppoatm_send()
Dsignaling.c100 atomic_sub(skb->truesize, &vcc->sk->wmem_alloc); in sigd_send()
Dmpc.c525 atomic_add(skb->truesize, &entry->shortcut->sk->wmem_alloc); in send_via_shortcut()
870 atomic_sub(skb->truesize, &vcc->sk->wmem_alloc); in msg_from_mpoad()
/linux-2.4.37.9/net/core/
Dsock.c662 atomic_sub(skb->truesize, &sk->wmem_alloc); in sock_wfree()
683 if (force || atomic_read(&sk->wmem_alloc) < sk->sndbuf) { in sock_wmalloc()
753 if (atomic_read(&sk->wmem_alloc) < sk->sndbuf) in sock_wait_for_wmem()
788 if (atomic_read(&sk->wmem_alloc) < sk->sndbuf) { in sock_alloc_send_pskb()
960 if(atomic_read(&sk->wmem_alloc) == 0 && in sklist_destroy_socket()
1163 if((atomic_read(&sk->wmem_alloc) << 1) <= sk->sndbuf) { in sock_def_write_space()
/linux-2.4.37.9/net/bluetooth/rfcomm/
Dtty.c74 atomic_t wmem_alloc; member
259 atomic_sub(skb->truesize, &dev->wmem_alloc); in rfcomm_wfree()
268 atomic_add(skb->truesize, &dev->wmem_alloc); in rfcomm_set_owner_w()
275 if (force || atomic_read(&dev->wmem_alloc) < rfcomm_room(dev->dlc)) { in rfcomm_wmalloc()
697 room = rfcomm_room(dev->dlc) - atomic_read(&dev->wmem_alloc); in rfcomm_tty_write_room()
/linux-2.4.37.9/net/wanrouter/
Daf_wanpipe.c644 if (atomic_read(&sk->wmem_alloc) + skb->truesize > (unsigned int)sk->sndbuf){ in wanpipe_sendmsg()
849 if ((!atomic_read(&sk->wmem_alloc) && !atomic_read(&sk->rmem_alloc)) || in wanpipe_destroy_timer()
852 if (atomic_read(&sk->wmem_alloc) || atomic_read(&sk->rmem_alloc)) in wanpipe_destroy_timer()
1052 if (atomic_read(&sk->rmem_alloc) || atomic_read(&sk->wmem_alloc)) { in wanpipe_release()
1055 atomic_read(&sk->rmem_alloc),atomic_read(&sk->wmem_alloc)); in wanpipe_release()
1098 if (!atomic_read(&sk->wmem_alloc)) in check_write_queue()
1237 if (atomic_read(&sk->rmem_alloc) || atomic_read(&sk->wmem_alloc)) { in wanpipe_kill_sock_timer()
1887 return atomic_read(&sk->wmem_alloc); in wanpipe_ioctl()
2021 if ((err=put_user(atomic_read(&sk->wmem_alloc), &dbg_data->debug[cnt].wmem))) in wanpipe_debug()
2402 if (atomic_read(&sk->wmem_alloc) || check_driver_busy(sk)){ in wanpipe_exec_cmd()
[all …]
/linux-2.4.37.9/include/net/
Dsock.h588 atomic_t wmem_alloc; /* Transmit queue bytes committed */ member
1228 atomic_add(skb->truesize, &sk->wmem_alloc); in skb_set_owner_w()
1305 amt = sk->sndbuf - atomic_read(&sk->wmem_alloc); in sock_wspace()
1326 return atomic_read(&sk->wmem_alloc) < (sk->sndbuf / 2); in sock_writeable()
/linux-2.4.37.9/net/decnet/
Ddn_nsp_out.c129 space = sk->sndbuf - atomic_read(&sk->wmem_alloc); in dn_alloc_send_skb()
146 if ((sk->sndbuf - atomic_read(&sk->wmem_alloc)) < len) in dn_alloc_send_skb()
/linux-2.4.37.9/net/ipv4/
Draw.c604 int amount = atomic_read(&sk->wmem_alloc); in raw_ioctl()
638 atomic_read(&sp->wmem_alloc), atomic_read(&sp->rmem_alloc), in get_raw_sock()
Dudp.c599 int amount = atomic_read(&sk->wmem_alloc); in udp_ioctl()
1056 atomic_read(&sp->wmem_alloc), atomic_read(&sp->rmem_alloc), in get_udp_sock()
Dtcp_diag.c139 minfo->tcpdiag_tmem = atomic_read(&sk->wmem_alloc); in tcpdiag_fill()
/linux-2.4.37.9/include/linux/
Datmdev.h434 return (size + atomic_read(&vcc->sk->wmem_alloc)) < vcc->sk->sndbuf; in atm_may_send()
/linux-2.4.37.9/net/x25/
Daf_x25.c343 if (atomic_read(&sk->wmem_alloc) != 0 || atomic_read(&sk->rmem_alloc) != 0) { in x25_destroy_socket()
1109 amount = sk->sndbuf - atomic_read(&sk->wmem_alloc); in x25_ioctl()
1245 atomic_read(&s->wmem_alloc), in x25_get_info()
/linux-2.4.37.9/net/netrom/
Daf_netrom.c332 if (atomic_read(&sk->wmem_alloc) != 0 || atomic_read(&sk->rmem_alloc) != 0) { in nr_destroy_socket()
1149 amount = sk->sndbuf - atomic_read(&sk->wmem_alloc); in nr_ioctl()
1243 atomic_read(&s->wmem_alloc), in nr_get_info()
/linux-2.4.37.9/net/ax25/
Daf_ax25.c437 if (atomic_read(&ax25->sk->wmem_alloc) != 0 || in ax25_destroy_socket()
1585 amount = sk->sndbuf - atomic_read(&sk->wmem_alloc); in ax25_ioctl()
1657 ax25_info.snd_q = atomic_read(&sk->wmem_alloc); in ax25_ioctl()
1758 atomic_read(&ax25->sk->wmem_alloc), in ax25_get_info()
/linux-2.4.37.9/net/appletalk/
Dddp.c218 if (!atomic_read(&sk->wmem_alloc) && in atalk_destroy_timer()
233 if (!atomic_read(&sk->wmem_alloc) && in atalk_destroy_socket()
268 atomic_read(&s->wmem_alloc), in atalk_get_info()
1829 amount = sk->sndbuf - atomic_read(&sk->wmem_alloc); in atalk_ioctl()
/linux-2.4.37.9/net/ipv6/
Draw.c799 int amount = atomic_read(&sk->wmem_alloc); in rawv6_ioctl()
859 atomic_read(&sp->wmem_alloc), atomic_read(&sp->rmem_alloc), in get_raw6_sock()
/linux-2.4.37.9/net/econet/
Daf_econet.c472 if (!atomic_read(&sk->wmem_alloc) && !atomic_read(&sk->rmem_alloc)) { in econet_destroy_timer()
510 if (atomic_read(&sk->rmem_alloc) || atomic_read(&sk->wmem_alloc)) { in econet_release()
/linux-2.4.37.9/net/rose/
Daf_rose.c390 if (atomic_read(&sk->wmem_alloc) != 0 || atomic_read(&sk->rmem_alloc) != 0) { in rose_destroy_socket()
1247 amount = sk->sndbuf - atomic_read(&sk->wmem_alloc); in rose_ioctl()
1383 atomic_read(&s->wmem_alloc), in rose_get_info()
/linux-2.4.37.9/net/unix/
Daf_unix.c283 return ((atomic_read(&sk->wmem_alloc)<<2) <= sk->sndbuf); in unix_writable()
322 BUG_TRAP(atomic_read(&sk->wmem_alloc) == 0); in unix_sock_destructor()
1685 amount = atomic_read(&sk->wmem_alloc); in unix_ioctl()
/linux-2.4.37.9/drivers/atm/
Dfore200e.c1048 if (atomic_read(&vcc->sk->wmem_alloc) < 0) { in fore200e_tx_irq()
1049 atomic_set(&vcc->sk->wmem_alloc, 0); in fore200e_tx_irq()
1249 ASSERT(atomic_read(&vcc->sk->wmem_alloc) >= 0); in fore200e_push_rpd()
1254 ASSERT(atomic_read(&vcc->sk->wmem_alloc) >= 0); in fore200e_push_rpd()
1737 ASSERT(atomic_read(&vcc->sk->wmem_alloc) >= 0); in fore200e_send()
/linux-2.4.37.9/net/netlink/
Daf_netlink.c124 BUG_TRAP(atomic_read(&sk->wmem_alloc)==0); in netlink_sock_destruct()
1171 atomic_read(&s->wmem_alloc), in netlink_read_proc()
/linux-2.4.37.9/net/sched/
Dsch_atm.c514 atomic_add(skb->truesize,&flow->vcc->sk->wmem_alloc); in sch_atm_dequeue()

12