Home
last modified time | relevance | path

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

/drivers/media/pci/netup_unidvb/
Dnetup_unidvb_spi.c120 u32 frag_size = (tr_size > sizeof(spi->regs->data)) ? in netup_spi_transfer() local
126 frag_offset + frag_size == t->len) { in netup_spi_transfer()
132 frag_size); in netup_spi_transfer()
135 0, frag_size); in netup_spi_transfer()
138 writew((frag_size & 0x3ff) | in netup_spi_transfer()
152 spi->regs->data, frag_size); in netup_spi_transfer()
167 tr_size -= frag_size; in netup_spi_transfer()
168 msg->actual_length += frag_size; in netup_spi_transfer()
/drivers/net/wireless/ipw2x00/
Dlibipw_tx.c203 txb->frag_size = txb_size; in libipw_alloc_txb()
260 int i, bytes_per_frag, nr_frags, bytes_last_frag, frag_size, in libipw_xmit() local
385 frag_size = MAX_FRAG_THRESHOLD; in libipw_xmit()
387 frag_size = ieee->fts; in libipw_xmit()
393 bytes_per_frag = frag_size - hdr_len; in libipw_xmit()
415 frag_size = bytes + hdr_len; in libipw_xmit()
418 rts_required = (frag_size > ieee->rts in libipw_xmit()
426 txb = libipw_alloc_txb(nr_frags, frag_size, in libipw_xmit()
435 txb->payload_size = frag_size * (nr_frags - 1) + in libipw_xmit()
Dlibipw.h495 u16 frag_size; member
Dipw2100.c3143 packet->info.d_struct.txb->frag_size - in ipw2100_tx_send_data()
/drivers/infiniband/hw/qib/
Dqib_user_sdma.c72 u16 frag_size; /* frag size used by PSM */ member
357 if ((pkt->payload_size + newlen) >= pkt->frag_size) { in qib_user_sdma_page_to_frags()
358 newlen = pkt->frag_size - pkt->payload_size; in qib_user_sdma_page_to_frags()
770 if (pkt->frag_size == pkt->bytes_togo && in qib_user_sdma_init_payload()
824 u16 frag_size; in qib_user_sdma_queue_pkts() local
908 frag_size = ((le32_to_cpu(*pbc))>>16) & 0xFFFF; in qib_user_sdma_queue_pkts()
909 if (((frag_size ? frag_size : bytes_togo) + len) > in qib_user_sdma_queue_pkts()
915 if (frag_size) { in qib_user_sdma_queue_pkts()
918 n = npages*((2*PAGE_SIZE/frag_size)+1); in qib_user_sdma_queue_pkts()
944 pkt->frag_size = frag_size; in qib_user_sdma_queue_pkts()
[all …]
/drivers/staging/rtl8192u/ieee80211/
Dieee80211_tx.c253 txb->frag_size = txb_size; in ieee80211_alloc_txb()
602 int i, bytes_per_frag, nr_frags, bytes_last_frag, frag_size; in ieee80211_xmit() local
703 frag_size = MAX_FRAG_THRESHOLD; in ieee80211_xmit()
707 frag_size = ieee->fts;//default:392 in ieee80211_xmit()
726 bytes_per_frag = frag_size - hdr_len; in ieee80211_xmit()
748 txb = ieee80211_alloc_txb(nr_frags, frag_size + ieee->tx_headroom, GFP_ATOMIC); in ieee80211_xmit()
Dieee80211.h1026 __le16 frag_size; member
/drivers/staging/rtl8192e/
Drtllib_tx.c231 txb->frag_size = cpu_to_le16(txb_size); in rtllib_alloc_txb()
570 int i, bytes_per_frag, nr_frags, bytes_last_frag, frag_size; in rtllib_xmit_inter() local
724 frag_size = MAX_FRAG_THRESHOLD; in rtllib_xmit_inter()
727 frag_size = ieee->fts; in rtllib_xmit_inter()
753 bytes_per_frag = frag_size - hdr_len; in rtllib_xmit_inter()
781 txb = rtllib_alloc_txb(nr_frags, frag_size + in rtllib_xmit_inter()
Drtllib.h916 __le16 frag_size; member
/drivers/net/ethernet/mellanox/mlx4/
Den_rx.c69 ((PAGE_SIZE << order) < frag_info->frag_size)) in mlx4_alloc_pages()
221 cpu_to_be32(priv->frag_info[i].frag_size); in mlx4_en_init_rx_desc()
567 dma_sync_single_for_cpu(priv->ddev, dma, frag_info->frag_size, in mlx4_en_complete_rx_desc()
572 skb_frag_size_set(&skb_frags_rx[nr], frag_info->frag_size); in mlx4_en_complete_rx_desc()
1121 priv->frag_info[i].frag_size = in mlx4_en_calc_rx_buf()
1126 ALIGN(priv->frag_info[i].frag_size, in mlx4_en_calc_rx_buf()
1128 buf_size += priv->frag_info[i].frag_size; in mlx4_en_calc_rx_buf()
1142 priv->frag_info[i].frag_size, in mlx4_en_calc_rx_buf()
Dmlx4_en.h456 u16 frag_size; member
/drivers/scsi/bnx2fc/
Dbnx2fc_io.c1560 int frag_size, sg_frags; in bnx2fc_split_bd() local
1565 frag_size = BNX2FC_BD_SPLIT_SZ; in bnx2fc_split_bd()
1567 frag_size = sg_len; in bnx2fc_split_bd()
1570 bd[bd_index + sg_frags].buf_len = (u16)frag_size; in bnx2fc_split_bd()
1573 addr += (u64) frag_size; in bnx2fc_split_bd()
1575 sg_len -= frag_size; in bnx2fc_split_bd()
/drivers/net/ethernet/marvell/
Dmvneta.c353 unsigned int frag_size; member
1423 if (likely(pp->frag_size <= PAGE_SIZE)) in mvneta_frag_alloc()
1424 return netdev_alloc_frag(pp->frag_size); in mvneta_frag_alloc()
1426 return kmalloc(pp->frag_size, GFP_ATOMIC); in mvneta_frag_alloc()
1431 if (likely(pp->frag_size <= PAGE_SIZE)) in mvneta_frag_free()
1588 skb = build_skb(data, pp->frag_size > PAGE_SIZE ? 0 : pp->frag_size); in mvneta_rx()
2556 pp->frag_size = SKB_DATA_ALIGN(MVNETA_RX_BUF_SIZE(pp->pkt_size)) + in mvneta_change_mtu()
2848 pp->frag_size = SKB_DATA_ALIGN(MVNETA_RX_BUF_SIZE(pp->pkt_size)) + in mvneta_open()
/drivers/nfc/
Dpn533.c2582 int frag_size; in pn533_fill_fragment_skbs() local
2587 frag_size = PN533_CMD_DATAFRAME_MAXLEN; in pn533_fill_fragment_skbs()
2589 frag_size = skb->len; in pn533_fill_fragment_skbs()
2592 frag = pn533_alloc_skb(dev, frag_size); in pn533_fill_fragment_skbs()
2603 if (frag_size == PN533_CMD_DATAFRAME_MAXLEN) in pn533_fill_fragment_skbs()
2610 memcpy(skb_put(frag, frag_size), skb->data, frag_size); in pn533_fill_fragment_skbs()
2613 skb_pull(skb, frag_size); in pn533_fill_fragment_skbs()
/drivers/net/ethernet/nvidia/
Dforcedeth.c2206 u32 frag_size = skb_frag_size(&skb_shinfo(skb)->frags[i]); in nv_start_xmit() local
2208 entries += (frag_size >> NV_TX2_TSO_MAX_SHIFT) + in nv_start_xmit()
2209 ((frag_size & (NV_TX2_TSO_MAX_SIZE-1)) ? 1 : 0); in nv_start_xmit()
2257 u32 frag_size = skb_frag_size(frag); in nv_start_xmit() local
2266 bcnt = (frag_size > NV_TX2_TSO_MAX_SIZE) ? NV_TX2_TSO_MAX_SIZE : frag_size; in nv_start_xmit()
2294 frag_size -= bcnt; in nv_start_xmit()
2299 } while (frag_size); in nv_start_xmit()
2354 u32 frag_size = skb_frag_size(&skb_shinfo(skb)->frags[i]); in nv_start_xmit_optimized() local
2356 entries += (frag_size >> NV_TX2_TSO_MAX_SHIFT) + in nv_start_xmit_optimized()
2357 ((frag_size & (NV_TX2_TSO_MAX_SIZE-1)) ? 1 : 0); in nv_start_xmit_optimized()
[all …]
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_cmn.c603 u32 i, frag_len, frag_size; in bnx2x_fill_frag_skb() local
608 frag_size = le16_to_cpu(cqe->pkt_len) - len_on_bd; in bnx2x_fill_frag_skb()
616 if (frag_size) in bnx2x_fill_frag_skb()
638 frag_len = min_t(u32, frag_size, (u32)full_page); in bnx2x_fill_frag_skb()
640 frag_len = min_t(u32, frag_size, (u32)SGE_PAGES); in bnx2x_fill_frag_skb()
679 frag_size -= frag_len; in bnx2x_fill_frag_skb()
970 u16 frag_size, pages; in bnx2x_rx_int() local
998 frag_size = le16_to_cpu(cqe->end_agg_cqe.pkt_len) - in bnx2x_rx_int()
1002 pages = (frag_size + tpa_info->full_page - 1) / in bnx2x_rx_int()
1005 pages = SGE_PAGE_ALIGN(frag_size) >> in bnx2x_rx_int()
/drivers/staging/rtl8712/
Dieee80211.h623 u16 frag_size; member
/drivers/net/
Dvirtio_net.c314 unsigned int frag_size = min((unsigned)PAGE_SIZE - offset, len); in page_to_skb() local
316 frag_size, truesize); in page_to_skb()
317 len -= frag_size; in page_to_skb()
/drivers/net/ethernet/synopsys/
Ddwc_eth_qos.c2085 size_t frag_size; in dwceqos_tx_frags() local
2098 frag_size = skb_frag_size(frag); in dwceqos_tx_frags()
2100 while (consumed_size < frag_size) { in dwceqos_tx_frags()
2102 frag_size - consumed_size); in dwceqos_tx_frags()
/drivers/staging/rtl8188eu/include/
Dieee80211.h777 u16 frag_size; member
/drivers/net/ethernet/cadence/
Dmacb.c1295 unsigned int count, nr_frags, frag_size, f; in macb_start_xmit() local
1313 frag_size = skb_frag_size(&skb_shinfo(skb)->frags[f]); in macb_start_xmit()
1314 count += DIV_ROUND_UP(frag_size, bp->max_tx_length); in macb_start_xmit()
/drivers/net/ethernet/emulex/benet/
Dbe_cmds.h565 u8 frag_size; member
2294 u16 cq_id, u16 frag_size, u32 if_id, u32 rss, u8 *rss_id);
Dbe_cmds.c1346 struct be_queue_info *rxq, u16 cq_id, u16 frag_size, in be_cmd_rxq_create() argument
1367 req->frag_size = fls(frag_size) - 1; in be_cmd_rxq_create()
/drivers/net/ethernet/broadcom/
Dtg3.c6654 unsigned int *frag_size) in tg3_alloc_rx_data() argument
6691 *frag_size = skb_size; in tg3_alloc_rx_data()
6694 *frag_size = 0; in tg3_alloc_rx_data()
6863 unsigned int frag_size; in tg3_rx() local
6866 *post_ptr, &frag_size); in tg3_rx()
6880 skb = build_skb(data, frag_size); in tg3_rx()
6882 tg3_frag_free(frag_size != 0, data); in tg3_rx()
8404 unsigned int frag_size; in tg3_rx_prodring_alloc() local
8407 &frag_size) < 0) { in tg3_rx_prodring_alloc()
8439 unsigned int frag_size; in tg3_rx_prodring_alloc() local
[all …]
Dbnx2.c3062 unsigned int i, frag_len, frag_size, pages; in bnx2_rx_skb() local
3067 frag_size = len + 4 - hdr_len; in bnx2_rx_skb()
3068 pages = PAGE_ALIGN(frag_size) >> PAGE_SHIFT; in bnx2_rx_skb()
3074 frag_len = min(frag_size, (unsigned int) PAGE_SIZE); in bnx2_rx_skb()
3119 frag_size -= frag_len; in bnx2_rx_skb()