Home
last modified time | relevance | path

Searched refs:truesize (Results 1 – 25 of 120) sorted by relevance

12345

/linux-2.6.39/sound/pci/emu10k1/
Demu10k1_patch.c43 int truesize, size, loopsize, blocksize; in snd_emu10k1_sample_new() local
79 truesize = sp->v.size + BLANK_HEAD_SIZE; in snd_emu10k1_sample_new()
84 truesize += loopsize; in snd_emu10k1_sample_new()
87 truesize += BLANK_LOOP_SIZE; in snd_emu10k1_sample_new()
90 blocksize = truesize; in snd_emu10k1_sample_new()
100 sp->v.truesize = blocksize; in snd_emu10k1_sample_new()
189 for (i = 0; i < truesize; i++) in snd_emu10k1_sample_new()
192 for (i = 0; i < truesize; i++) in snd_emu10k1_sample_new()
/linux-2.6.39/net/atm/
Datm_misc.c14 int atm_charge(struct atm_vcc *vcc, int truesize) in atm_charge() argument
16 atm_force_charge(vcc, truesize); in atm_charge()
19 atm_return(vcc, truesize); in atm_charge()
36 atomic_add(skb->truesize-guess, in atm_alloc_charge()
Dpppoatm.c145 atm_return(atmvcc, skb->truesize); in pppoatm_push()
209 !atm_may_send(pvcc->atmvcc, n->truesize)) { in pppoatm_send()
217 } else if (!atm_may_send(pvcc->atmvcc, skb->truesize)) in pppoatm_send()
222 if (!atm_may_send(pvcc->atmvcc, skb->truesize)) in pppoatm_send()
231 atomic_add(skb->truesize, &sk_atm(ATM_SKB(skb)->vcc)->sk_wmem_alloc); in pppoatm_send()
Draw.c37 vcc->vci, sk_wmem_alloc_get(sk), skb->truesize); in atm_pop_raw()
38 atomic_sub(skb->truesize, &sk->sk_wmem_alloc); in atm_pop_raw()
/linux-2.6.39/sound/isa/sb/
Demu8000_patch.c154 int truesize; in snd_emu8000_sample_new() local
173 truesize = sp->v.size; in snd_emu8000_sample_new()
175 truesize += sp->v.loopend - sp->v.loopstart; in snd_emu8000_sample_new()
177 truesize += BLANK_LOOP_SIZE; in snd_emu8000_sample_new()
179 sp->block = snd_util_mem_alloc(hdr, truesize * 2); in snd_emu8000_sample_new()
205 sp->v.truesize = truesize * 2; /* in bytes */ in snd_emu8000_sample_new()
/linux-2.6.39/drivers/net/irda/
Dw83977af_ir.c212 self->rx_buff.truesize = 14384; in w83977af_open()
213 self->tx_buff.truesize = 4000; in w83977af_open()
217 dma_alloc_coherent(NULL, self->rx_buff.truesize, in w83977af_open()
224 memset(self->rx_buff.head, 0, self->rx_buff.truesize); in w83977af_open()
227 dma_alloc_coherent(NULL, self->tx_buff.truesize, in w83977af_open()
233 memset(self->tx_buff.head, 0, self->tx_buff.truesize); in w83977af_open()
255 dma_free_coherent(NULL, self->tx_buff.truesize, in w83977af_open()
258 dma_free_coherent(NULL, self->rx_buff.truesize, in w83977af_open()
302 dma_free_coherent(NULL, self->tx_buff.truesize, in w83977af_close()
306 dma_free_coherent(NULL, self->rx_buff.truesize, in w83977af_close()
[all …]
Dvia-ircc.c361 self->rx_buff.truesize = 14384 + 2048; in via_ircc_open()
362 self->tx_buff.truesize = 14384 + 2048; in via_ircc_open()
366 dma_alloc_coherent(&pdev->dev, self->rx_buff.truesize, in via_ircc_open()
372 memset(self->rx_buff.head, 0, self->rx_buff.truesize); in via_ircc_open()
375 dma_alloc_coherent(&pdev->dev, self->tx_buff.truesize, in via_ircc_open()
381 memset(self->tx_buff.head, 0, self->tx_buff.truesize); in via_ircc_open()
407 dma_free_coherent(&pdev->dev, self->tx_buff.truesize, in via_ircc_open()
410 dma_free_coherent(&pdev->dev, self->rx_buff.truesize, in via_ircc_open()
444 dma_free_coherent(&pdev->dev, self->tx_buff.truesize, in via_remove_one()
447 dma_free_coherent(&pdev->dev, self->rx_buff.truesize, in via_remove_one()
[all …]
Dsir_dev.c365 if (unlikely(len > dev->tx_buff.truesize)) in sirdev_raw_write()
573 if (unlikely(dev->rx_buff.len == dev->rx_buff.truesize)) in sirdev_receive()
643 dev->tx_buff.len = async_wrap_skb(skb, dev->tx_buff.data, dev->tx_buff.truesize); in sirdev_hard_xmit()
753 dev->tx_buff.truesize = SIRBUF_ALLOCSIZE; in sirdev_alloc_buffers()
754 dev->rx_buff.truesize = IRDA_SKB_MAX_MTU; in sirdev_alloc_buffers()
757 dev->rx_buff.skb = __netdev_alloc_skb(dev->netdev, dev->rx_buff.truesize, in sirdev_alloc_buffers()
764 dev->tx_buff.head = kmalloc(dev->tx_buff.truesize, GFP_KERNEL); in sirdev_alloc_buffers()
Dsh_irda.c605 self->rx_buff.truesize = rxsize; in sh_irda_init_iobuf()
612 self->tx_buff.truesize = IRDARAM_LEN; in sh_irda_init_iobuf()
647 self->tx_buff.truesize); in sh_irda_hard_xmit()
650 if (self->tx_buff.len > self->tx_buff.truesize) in sh_irda_hard_xmit()
651 self->tx_buff.len = self->tx_buff.truesize; in sh_irda_hard_xmit()
Dali-ircc.c348 self->rx_buff.truesize = 14384; in ali_ircc_open()
349 self->tx_buff.truesize = 14384; in ali_ircc_open()
353 dma_alloc_coherent(NULL, self->rx_buff.truesize, in ali_ircc_open()
359 memset(self->rx_buff.head, 0, self->rx_buff.truesize); in ali_ircc_open()
362 dma_alloc_coherent(NULL, self->tx_buff.truesize, in ali_ircc_open()
368 memset(self->tx_buff.head, 0, self->tx_buff.truesize); in ali_ircc_open()
401 dma_free_coherent(NULL, self->tx_buff.truesize, in ali_ircc_open()
404 dma_free_coherent(NULL, self->rx_buff.truesize, in ali_ircc_open()
439 dma_free_coherent(NULL, self->tx_buff.truesize, in ali_ircc_close()
443 dma_free_coherent(NULL, self->rx_buff.truesize, in ali_ircc_close()
[all …]
Dnsc-ircc.c427 self->rx_buff.truesize = 14384; in nsc_ircc_open()
428 self->tx_buff.truesize = 14384; in nsc_ircc_open()
432 dma_alloc_coherent(NULL, self->rx_buff.truesize, in nsc_ircc_open()
439 memset(self->rx_buff.head, 0, self->rx_buff.truesize); in nsc_ircc_open()
442 dma_alloc_coherent(NULL, self->tx_buff.truesize, in nsc_ircc_open()
448 memset(self->tx_buff.head, 0, self->tx_buff.truesize); in nsc_ircc_open()
497 dma_free_coherent(NULL, self->tx_buff.truesize, in nsc_ircc_open()
500 dma_free_coherent(NULL, self->rx_buff.truesize, in nsc_ircc_open()
537 dma_free_coherent(NULL, self->tx_buff.truesize, in nsc_ircc_close()
541 dma_free_coherent(NULL, self->rx_buff.truesize, in nsc_ircc_close()
[all …]
Dsmsc-ircc2.c561 self->rx_buff.truesize = SMSC_IRCC2_RX_BUFF_TRUESIZE; in smsc_ircc_open()
562 self->tx_buff.truesize = SMSC_IRCC2_TX_BUFF_TRUESIZE; in smsc_ircc_open()
565 dma_alloc_coherent(NULL, self->rx_buff.truesize, in smsc_ircc_open()
574 dma_alloc_coherent(NULL, self->tx_buff.truesize, in smsc_ircc_open()
582 memset(self->rx_buff.head, 0, self->rx_buff.truesize); in smsc_ircc_open()
583 memset(self->tx_buff.head, 0, self->tx_buff.truesize); in smsc_ircc_open()
624 dma_free_coherent(NULL, self->tx_buff.truesize, in smsc_ircc_open()
627 dma_free_coherent(NULL, self->rx_buff.truesize, in smsc_ircc_open()
931 self->tx_buff.truesize); in smsc_ircc_hard_xmit_sir()
1387 irda_setup_dma(self->io.dma, self->rx_buff_dma, self->rx_buff.truesize, in smsc_ircc_dma_receive()
[all …]
/linux-2.6.39/include/linux/
Datmdev.h459 static inline void atm_force_charge(struct atm_vcc *vcc,int truesize) in atm_force_charge() argument
461 atomic_add(truesize, &sk_atm(vcc)->sk_rmem_alloc); in atm_force_charge()
465 static inline void atm_return(struct atm_vcc *vcc,int truesize) in atm_return() argument
467 atomic_sub(truesize, &sk_atm(vcc)->sk_rmem_alloc); in atm_return()
495 int atm_charge(struct atm_vcc *vcc,int truesize);
/linux-2.6.39/net/ipv4/
Dinet_lro.c227 parent->truesize += skb->truesize; in lro_add_packet()
238 int len, int hlen, int truesize, in lro_add_frags() argument
247 skb->truesize += truesize; in lro_add_frags()
410 skb->truesize += true_size; in lro_gen_skb()
Dip_fragment.c147 atomic_sub(skb->truesize, &nf->mem); in frag_kfree_skb()
497 atomic_add(skb->truesize, &qp->q.net->mem); in ip_frag_queue()
584 atomic_add(clone->truesize, &qp->q.net->mem); in ip_frag_reasm()
597 head->truesize += fp->truesize; in ip_frag_reasm()
599 atomic_sub(head->truesize, &qp->q.net->mem); in ip_frag_reasm()
Dtcp_output.c924 sk->sk_wmem_queued += skb->truesize; in tcp_queue_skb()
925 sk_mem_charge(sk, skb->truesize); in tcp_queue_skb()
1023 sk->sk_wmem_queued += buff->truesize; in tcp_fragment()
1024 sk_mem_charge(sk, buff->truesize); in tcp_fragment()
1026 buff->truesize += nlen; in tcp_fragment()
1027 skb->truesize -= nlen; in tcp_fragment()
1132 skb->truesize -= len; in tcp_trim_head()
1489 sk->sk_wmem_queued += buff->truesize; in tso_fragment()
1490 sk_mem_charge(sk, buff->truesize); in tso_fragment()
1491 buff->truesize += nlen; in tso_fragment()
[all …]
Dip_output.c509 skb->truesize -= frag->truesize; in ip_fragment()
577 skb->truesize += frag2->truesize; in ip_fragment()
1017 skb->truesize += copy; in __ip_append_data()
1238 skb->truesize += len; in ip_append_page()
1291 skb->truesize += tmp_skb->truesize; in __ip_make_skb()
/linux-2.6.39/net/irda/
Dwrapper.c226 newskb = dev_alloc_skb(docopy ? rx_buff->len + 1 : rx_buff->truesize); in async_bump()
417 if (rx_buff->len < rx_buff->truesize) { in async_unwrap_other()
435 if (rx_buff->len < rx_buff->truesize) { in async_unwrap_other()
/linux-2.6.39/net/sctp/
Dulpevent.c81 sctp_ulpevent_init(event, msg_flags, skb->truesize); in sctp_ulpevent_new()
157 sctp_ulpevent_init(event, MSG_NOTIFICATION, skb->truesize); in sctp_ulpevent_make_assoc_change()
407 sctp_ulpevent_init(event, MSG_NOTIFICATION, skb->truesize); in sctp_ulpevent_make_remote_error()
499 sctp_ulpevent_init(event, MSG_NOTIFICATION, skb->truesize); in sctp_ulpevent_make_send_failed()
705 (!sk_rmem_schedule(asoc->base.sk, chunk->skb->truesize))) in sctp_ulpevent_make_rcvmsg()
/linux-2.6.39/net/ipv6/netfilter/
Dnf_conntrack_reasm.c311 atomic_add(skb->truesize, &nf_init_frags.mem); in nf_ct_frag6_queue()
390 atomic_add(clone->truesize, &nf_init_frags.mem); in nf_ct_frag6_reasm()
412 head->truesize += fp->truesize; in nf_ct_frag6_reasm()
414 atomic_sub(head->truesize, &nf_init_frags.mem); in nf_ct_frag6_reasm()
/linux-2.6.39/include/net/
Dsock.h644 return qsize + skb->truesize > sk->sk_rcvbuf; in sk_rcvqueues_full()
654 sk->sk_backlog.len += skb->truesize; in sk_add_backlog()
1003 sk->sk_wmem_queued -= skb->truesize; in sk_wmem_free_skb()
1004 sk_mem_uncharge(sk, skb->truesize); in sk_wmem_free_skb()
1409 skb->truesize += copy; in skb_copy_to_page()
1535 atomic_add(skb->truesize, &sk->sk_wmem_alloc); in skb_set_owner_w()
1543 atomic_add(skb->truesize, &sk->sk_rmem_alloc); in skb_set_owner_r()
1544 sk_mem_charge(sk, skb->truesize); in skb_set_owner_r()
/linux-2.6.39/net/core/
Dskbuff.c199 skb->truesize = size + sizeof(struct sk_buff); in __alloc_skb()
268 skb->truesize += size; in skb_add_rx_frag()
571 C(truesize); in __skb_clone()
726 n->truesize += skb->data_len; in pskb_copy()
2224 skb->truesize -= shiftlen; in skb_shift()
2227 tgt->truesize += shiftlen; in skb_shift()
2437 skb->truesize += PAGE_SIZE; in skb_append_datato_frags()
2549 nskb->truesize += skb_end_pointer(nskb) - nskb->head - in skb_segment()
2644 nskb->truesize += nskb->data_len; in skb_segment()
2697 skb->truesize -= skb->data_len; in skb_gro_receive()
[all …]
/linux-2.6.39/net/ipv6/
Dreassembly.c373 atomic_add(skb->truesize, &fq->q.net->mem); in ip6_frag_queue()
474 atomic_add(clone->truesize, &fq->q.net->mem); in ip6_frag_reasm()
497 head->truesize += fp->truesize; in ip6_frag_reasm()
499 atomic_sub(head->truesize, &fq->q.net->mem); in ip6_frag_reasm()
/linux-2.6.39/net/phonet/
Dpep-gprs.c115 rskb->truesize += rskb->len; in gprs_recv()
124 skb->truesize -= flen; in gprs_recv()
/linux-2.6.39/drivers/net/wireless/prism54/
Dislpci_eth.c62 skb, skb->data, skb->len, skb->truesize); in islpci_eth_cleanup_transmit()
337 skb->len, offset, skb->truesize); in islpci_eth_receive()
444 skb, skb->data, skb->len, index, skb->truesize); in islpci_eth_receive()

12345