Home
last modified time | relevance | path

Searched refs:nr_frags (Results 1 – 25 of 135) sorted by relevance

123456

/linux-2.6.39/drivers/net/wireless/ipw2x00/
Dlibipw_tx.c185 for (i = 0; i < txb->nr_frags; i++) in libipw_txb_free()
191 static struct libipw_txb *libipw_alloc_txb(int nr_frags, int txb_size, in libipw_alloc_txb() argument
196 txb = kmalloc(sizeof(struct libipw_txb) + (sizeof(u8 *) * nr_frags), in libipw_alloc_txb()
202 txb->nr_frags = nr_frags; in libipw_alloc_txb()
205 for (i = 0; i < nr_frags; i++) { in libipw_alloc_txb()
214 if (unlikely(i != nr_frags)) { in libipw_alloc_txb()
260 int i, bytes_per_frag, nr_frags, bytes_last_frag, frag_size, in libipw_xmit() local
406 nr_frags = bytes / bytes_per_frag; in libipw_xmit()
409 nr_frags++; in libipw_xmit()
413 nr_frags = 1; in libipw_xmit()
[all …]
/linux-2.6.39/drivers/staging/rtl8187se/ieee80211/
Dieee80211_tx.c236 for (i = 0; i < txb->nr_frags; i++) in ieee80211_txb_free()
242 struct ieee80211_txb *ieee80211_alloc_txb(int nr_frags, int txb_size, in ieee80211_alloc_txb() argument
248 sizeof(struct ieee80211_txb) + (sizeof(u8*) * nr_frags), in ieee80211_alloc_txb()
254 txb->nr_frags = nr_frags; in ieee80211_alloc_txb()
257 for (i = 0; i < nr_frags; i++) { in ieee80211_alloc_txb()
264 if (unlikely(i != nr_frags)) { in ieee80211_alloc_txb()
313 int i, bytes_per_frag, nr_frags, bytes_last_frag, frag_size; in ieee80211_rtl_xmit() local
455 nr_frags = bytes / bytes_per_frag; in ieee80211_rtl_xmit()
458 nr_frags++; in ieee80211_rtl_xmit()
465 txb = ieee80211_alloc_txb(nr_frags, frag_size, GFP_ATOMIC); in ieee80211_rtl_xmit()
[all …]
/linux-2.6.39/net/core/
Dskbuff.c325 if (skb_shinfo(skb)->nr_frags) { in skb_release_data()
327 for (i = 0; i < skb_shinfo(skb)->nr_frags; i++) in skb_release_data()
730 if (skb_shinfo(skb)->nr_frags) { in pskb_copy()
733 for (i = 0; i < skb_shinfo(skb)->nr_frags; i++) { in pskb_copy()
737 skb_shinfo(n)->nr_frags = i; in pskb_copy()
798 frags[skb_shinfo(skb)->nr_frags])); in pskb_expand_head()
816 offsetof(struct skb_shared_info, frags[skb_shinfo(skb)->nr_frags])); in pskb_expand_head()
821 for (i = 0; i < skb_shinfo(skb)->nr_frags; i++) in pskb_expand_head()
1074 int nfrags = skb_shinfo(skb)->nr_frags; in ___pskb_trim()
1097 skb_shinfo(skb)->nr_frags = i; in ___pskb_trim()
[all …]
Ddatagram.c325 for (i = 0; i < skb_shinfo(skb)->nr_frags; i++) { in skb_copy_datagram_iovec()
411 for (i = 0; i < skb_shinfo(skb)->nr_frags; i++) { in skb_copy_datagram_const_iovec()
501 for (i = 0; i < skb_shinfo(skb)->nr_frags; i++) { in skb_copy_datagram_from_iovec()
586 for (i = 0; i < skb_shinfo(skb)->nr_frags; i++) { in skb_copy_and_csum_datagram()
Duser_dma.c72 for (i = 0; i < skb_shinfo(skb)->nr_frags; i++) { in dma_skb_copy_datagram_iovec()
/linux-2.6.39/drivers/staging/rtl8192e/ieee80211/
Dieee80211_tx.c239 struct ieee80211_txb *ieee80211_alloc_txb(int nr_frags, int txb_size, in ieee80211_alloc_txb() argument
245 sizeof(struct ieee80211_txb) + (sizeof(u8*) * nr_frags), in ieee80211_alloc_txb()
251 txb->nr_frags = nr_frags; in ieee80211_alloc_txb()
254 for (i = 0; i < nr_frags; i++) { in ieee80211_alloc_txb()
262 if (unlikely(i != nr_frags)) { in ieee80211_alloc_txb()
607 int i, bytes_per_frag, nr_frags, bytes_last_frag, frag_size; in ieee80211_rtl_xmit() local
772 nr_frags = bytes / bytes_per_frag; in ieee80211_rtl_xmit()
775 nr_frags++; in ieee80211_rtl_xmit()
782 txb = ieee80211_alloc_txb(nr_frags, frag_size + ieee->tx_headroom, GFP_ATOMIC); in ieee80211_rtl_xmit()
800 for (i = 0; i < nr_frags; i++) { in ieee80211_rtl_xmit()
[all …]
/linux-2.6.39/drivers/staging/rtl8192u/ieee80211/
Dieee80211_tx.c240 struct ieee80211_txb *ieee80211_alloc_txb(int nr_frags, int txb_size, in ieee80211_alloc_txb() argument
246 sizeof(struct ieee80211_txb) + (sizeof(u8*) * nr_frags), in ieee80211_alloc_txb()
252 txb->nr_frags = nr_frags; in ieee80211_alloc_txb()
255 for (i = 0; i < nr_frags; i++) { in ieee80211_alloc_txb()
263 if (unlikely(i != nr_frags)) { in ieee80211_alloc_txb()
596 int i, bytes_per_frag, nr_frags, bytes_last_frag, frag_size; in ieee80211_xmit() local
733 nr_frags = bytes / bytes_per_frag; in ieee80211_xmit()
736 nr_frags++; in ieee80211_xmit()
743 txb = ieee80211_alloc_txb(nr_frags, frag_size + ieee->tx_headroom, GFP_ATOMIC); in ieee80211_xmit()
762 for (i = 0; i < nr_frags; i++) { in ieee80211_xmit()
[all …]
/linux-2.6.39/drivers/net/
Dgreth.c103 if (skb_shinfo(skb)->nr_frags == 0) in greth_print_tx_packet()
111 for (i = 0; i < skb_shinfo(skb)->nr_frags; i++) { in greth_print_tx_packet()
185 int nr_frags = skb_shinfo(skb)->nr_frags; in greth_clean_rings() local
194 for (i = 0; i < nr_frags; i++) { in greth_clean_rings()
205 greth->tx_free += nr_frags+1; in greth_clean_rings()
456 int curr_tx, nr_frags, i, err = NETDEV_TX_OK; in greth_start_xmit_gbit() local
459 nr_frags = skb_shinfo(skb)->nr_frags; in greth_start_xmit_gbit()
464 if (greth->tx_free < nr_frags + 1) { in greth_start_xmit_gbit()
488 if (nr_frags != 0) in greth_start_xmit_gbit()
509 for (i = 0; i < nr_frags; i++) { in greth_start_xmit_gbit()
[all …]
Dxen-netfront.c269 skb_shinfo(skb)->nr_frags = 1; in xennet_alloc_rx_buffers()
408 int frags = skb_shinfo(skb)->nr_frags; in xennet_make_frags()
478 int frags = skb_shinfo(skb)->nr_frags; in xennet_start_xmit()
750 int nr_frags = shinfo->nr_frags; in xennet_fill_frags() local
752 skb_frag_t *frag = shinfo->frags + nr_frags; in xennet_fill_frags()
765 skb_shinfo(nskb)->nr_frags = 0; in xennet_fill_frags()
769 nr_frags++; in xennet_fill_frags()
772 shinfo->nr_frags = nr_frags; in xennet_fill_frags()
955 skb_shinfo(skb)->nr_frags = 0; in xennet_poll()
1089 skb_shinfo(skb)->nr_frags = 0; in xennet_release_rx_bufs()
Dns83820.c1086 int nr_free, nr_frags; local
1097 nr_frags = skb_shinfo(skb)->nr_frags;
1110 if (nr_free <= nr_frags) {
1128 nr_free -= nr_frags;
1136 if (!nr_frags)
1159 if (nr_frags)
1176 cmdsts = ((nr_frags) ? CMDSTS_MORE : do_intr ? CMDSTS_INTR : 0);
1181 if (!nr_frags)
1192 nr_frags--;
Dpasemi_mac.c575 nfrags = skb_shinfo(info->skb)->nr_frags; in pasemi_mac_free_tx_resources()
875 int nr_frags; in pasemi_mac_clean_tx() local
913 nr_frags = TX_DESC_INFO(txring, i).dma; in pasemi_mac_clean_tx()
919 buf_count = 2 + nr_frags; in pasemi_mac_clean_tx()
926 for (j = 0; j <= nr_frags; j++) in pasemi_mac_clean_tx()
930 nf[descr_count] = nr_frags; in pasemi_mac_clean_tx()
1400 const int nfrags = skb_shinfo(skb)->nr_frags; in pasemi_mac_queue_csdesc()
1496 nfrags = skb_shinfo(skb)->nr_frags; in pasemi_mac_start_tx()
Dtehuti.c1503 int nr_frags = skb_shinfo(skb)->nr_frags; in bdx_tx_map_skb() local
1517 for (i = 0; i < nr_frags; i++) { in bdx_tx_map_skb()
1534 db->wptr->len = -txd_sizes[nr_frags].bytes; in bdx_tx_map_skb()
1624 int nr_frags = skb_shinfo(skb)->nr_frags; in bdx_tx_transmit() local
1661 (txd_sizes[nr_frags].qwords, txd_checksum, txd_vtag, in bdx_tx_transmit()
1672 f->m.wptr += txd_sizes[nr_frags].bytes; in bdx_tx_transmit()
1683 priv->tx_level -= txd_sizes[nr_frags].bytes; in bdx_tx_transmit()
/linux-2.6.39/drivers/net/xen-netback/
Dnetback.c323 for (i = 0; i < skb_shinfo(skb)->nr_frags; i++) { in xen_netbk_count_skb_slots()
468 int nr_frags = skb_shinfo(skb)->nr_frags; in netbk_gop_skb() local
513 for (i = 0; i < nr_frags; i++) { in netbk_gop_skb()
590 int nr_frags; in xen_netbk_rx_action() local
606 nr_frags = skb_shinfo(skb)->nr_frags; in xen_netbk_rx_action()
611 count += nr_frags + 1; in xen_netbk_rx_action()
918 for (i = start; i < shinfo->nr_frags; i++, txp++) { in xen_netbk_get_requests()
964 int nr_frags = shinfo->nr_frags; in xen_netbk_tx_check_gop() local
981 for (i = start; i < nr_frags; i++) { in xen_netbk_tx_check_gop()
1026 int nr_frags = shinfo->nr_frags; in xen_netbk_fill_frags() local
[all …]
/linux-2.6.39/net/ipv4/
Dinet_lro.c152 int nr_frags; in lro_init_desc() local
156 nr_frags = skb_shinfo(skb)->nr_frags; in lro_init_desc()
158 lro_desc->next_frag = &(skb_shinfo(skb)->frags[nr_frags]); in lro_init_desc()
257 skb_shinfo(skb)->nr_frags++; in lro_add_frags()
421 skb_shinfo(skb)->nr_frags++; in lro_gen_skb()
497 if ((skb_shinfo(lro_desc->parent)->nr_frags >= lro_mgr->max_aggr) || in __lro_proc_segment()
/linux-2.6.39/drivers/net/mlx4/
Den_tx.c209 int frags = skb_shinfo(skb)->nr_frags; in mlx4_en_free_tx_desc()
482 if (skb_shinfo(skb)->nr_frags == 1) { in is_inline()
491 } else if (unlikely(skb_shinfo(skb)->nr_frags)) in is_inline()
519 real_size = CTRL_SIZE + skb_shinfo(skb)->nr_frags * DS_SIZE + in get_real_size()
535 real_size = CTRL_SIZE + (skb_shinfo(skb)->nr_frags + 1) * DS_SIZE; in get_real_size()
552 if (skb_shinfo(skb)->nr_frags) in build_inline_wqe()
572 if (skb_shinfo(skb)->nr_frags) in build_inline_wqe()
754 data += skb_shinfo(skb)->nr_frags + tx_info->linear - 1; in mlx4_en_xmit()
758 for (i = skb_shinfo(skb)->nr_frags - 1; i >= 0; i--) { in mlx4_en_xmit()
/linux-2.6.39/drivers/staging/octeon/
Dethernet-tx.c208 if (unlikely(skb_shinfo(skb)->nr_frags > 5)) { in cvm_oct_xmit()
266 if (skb_shinfo(skb)->nr_frags == 0) { in cvm_oct_xmit()
275 for (i = 0; i < skb_shinfo(skb)->nr_frags; i++) { in cvm_oct_xmit()
282 hw_buffer.s.size = skb_shinfo(skb)->nr_frags + 1; in cvm_oct_xmit()
283 pko_command.s.segs = skb_shinfo(skb)->nr_frags + 1; in cvm_oct_xmit()
338 if (unlikely(skb_shinfo(skb)->nr_frags)) { in cvm_oct_xmit()
/linux-2.6.39/drivers/staging/et131x/
Det1310_tx.c418 u32 nr_frags = skb_shinfo(skb)->nr_frags + 1; in nic_send_packet() local
430 if (nr_frags > 23) in nic_send_packet()
433 memset(desc, 0, sizeof(struct tx_desc) * (nr_frags + 1)); in nic_send_packet()
435 for (i = 0; i < nr_frags; i++) { in nic_send_packet()
/linux-2.6.39/net/xfrm/
Dxfrm_ipcomp.c75 if (WARN_ON(skb_shinfo(skb)->nr_frags >= MAX_SKB_FRAGS)) in ipcomp_decompress()
78 frag = skb_shinfo(skb)->frags + skb_shinfo(skb)->nr_frags; in ipcomp_decompress()
97 skb_shinfo(skb)->nr_frags++; in ipcomp_decompress()
/linux-2.6.39/drivers/staging/hv/
Dnetvsc_drv.c120 unsigned int num_pages = skb_shinfo(skb)->nr_frags + 2; in netvsc_xmit_completion()
144 num_pages = skb_shinfo(skb)->nr_frags + 1 + 1; in netvsc_start_xmit()
181 for (i = 0; i < skb_shinfo(skb)->nr_frags; i++) { in netvsc_start_xmit()
/linux-2.6.39/drivers/infiniband/hw/nes/
Dnes_nic.c416 if ((skb_shinfo(skb)->nr_frags + 1) > 4) { in nes_nic_send()
418 netdev->name, skb_shinfo(skb)->nr_frags + 2, skb_headlen(skb)); in nes_nic_send()
442 for (skb_fragment_index = 0; skb_fragment_index < skb_shinfo(skb)->nr_frags; in nes_nic_send()
490 u32 nr_frags; in nes_netdev_start_xmit() local
529 nr_frags = skb_shinfo(skb)->nr_frags; in nes_netdev_start_xmit()
531 nr_frags++; in nes_netdev_start_xmit()
534 if (unlikely((nr_frags > 4))) { in nes_netdev_start_xmit()
539 wqes_needed = nr_frags >> 2; in nes_netdev_start_xmit()
540 wqes_needed += (nr_frags&3)?1:0; in nes_netdev_start_xmit()
562 for (tso_frag_count=0; tso_frag_count < skb_shinfo(skb)->nr_frags; in nes_netdev_start_xmit()
[all …]
/linux-2.6.39/drivers/infiniband/ulp/ipoib/
Dipoib_ib.c324 for (i = 0; i < skb_shinfo(skb)->nr_frags; ++i) { in ipoib_dma_map_tx()
360 for (i = 0; i < skb_shinfo(skb)->nr_frags; ++i) { in ipoib_dma_unmap_tx()
500 int nr_frags = skb_shinfo(skb)->nr_frags; in post_send() local
510 for (i = 0; i < nr_frags; ++i) { in post_send()
514 priv->tx_wr.num_sge = nr_frags + off; in post_send()
/linux-2.6.39/drivers/scsi/cxgbi/
Dlibcxgbi.c888 int frags = skb_shinfo(skb)->nr_frags + in cxgbi_sock_send_pdus()
900 csk, skb_shinfo(skb)->nr_frags, skb->len, in cxgbi_sock_send_pdus()
1940 tdata->nr_frags = err; in cxgbi_conn_init_pdu()
1942 if (tdata->nr_frags > MAX_SKB_FRAGS || in cxgbi_conn_init_pdu()
1943 (padlen && tdata->nr_frags == MAX_SKB_FRAGS)) { in cxgbi_conn_init_pdu()
1948 for (i = 0; i < tdata->nr_frags; i++, frag++) { in cxgbi_conn_init_pdu()
1963 for (i = 0; i < tdata->nr_frags; i++) in cxgbi_conn_init_pdu()
1967 sizeof(skb_frag_t) * tdata->nr_frags); in cxgbi_conn_init_pdu()
1968 skb_shinfo(skb)->nr_frags = tdata->nr_frags; in cxgbi_conn_init_pdu()
1986 i = skb_shinfo(skb)->nr_frags; in cxgbi_conn_init_pdu()
[all …]
/linux-2.6.39/drivers/net/cxgb4vf/
Dsge.c296 end = &si->frags[si->nr_frags]; in map_skb()
318 unsigned int nfrags = skb_shinfo(skb)->nr_frags; in unmap_sgl()
857 flits = sgl_len(skb_shinfo(skb)->nr_frags + 1); in calc_tx_flits()
892 unsigned int nfrags = si->nr_frags; in write_sgl()
916 for (i = (nfrags != si->nr_frags); nfrags >= 2; nfrags -= 2, to++) { in write_sgl()
1261 ndesc, credits, txq->q.pidx, skb->len, ssi->nr_frags); in t4vf_eth_xmit()
1405 ssi->nr_frags = gl->nfrags; in t4vf_pktgl_to_skb()
1454 si->nr_frags = gl->nfrags; in copy_frags()
/linux-2.6.39/drivers/net/cxgb3/
Dsge.c252 nfrags = skb_shinfo(skb)->nr_frags; in unmap_skb()
898 skb_fill_page_desc(newskb, skb_shinfo(newskb)->nr_frags, in get_packet_pg()
945 flits = sgl_len(skb_shinfo(skb)->nr_frags + 1) + 2; in calc_tx_descs()
977 nfrags = skb_shinfo(skb)->nr_frags; in make_sgl()
1545 for (i = 0; i < si->nr_frags; i++) in deferred_unmap_destructor()
1628 cnt = skb_shinfo(skb)->nr_frags; in calc_tx_descs_ofld()
2087 int nr_frags; in lro_add_page() local
2117 nr_frags = skb_shinfo(skb)->nr_frags; in lro_add_page()
2119 if (!nr_frags) { in lro_add_page()
2134 rx_frag += nr_frags; in lro_add_page()
[all …]
/linux-2.6.39/drivers/staging/rtl8712/
Drtl8712_xmit.c469 for (t = 0; t < pattrib->nr_frags; t++) { in dump_xframe()
470 if (t != (pattrib->nr_frags - 1)) { in dump_xframe()

123456