Home
last modified time | relevance | path

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

123

/linux/tools/testing/selftests/net/
A Dip_defrag.c137 int frag_len; in send_fragment() local
173 frag_len - FRAG_HLEN); in send_fragment()
174 frag_len += IP6_HLEN; in send_fragment()
185 iphdr->ip_len = htons(frag_len); in send_fragment()
191 frag_len - IP4_HLEN); in send_fragment()
197 if (res >= 0 && res != frag_len) in send_fragment()
210 int frag_len; in send_udp_frags() local
306 frag_len &= ~0x7; in send_udp_frags()
309 frag_len += IP6_HLEN; in send_udp_frags()
311 frag_len += IP4_HLEN; in send_udp_frags()
[all …]
/linux/drivers/firmware/arm_ffa/
A Ddriver.c383 u32 frag_len, u32 len, u64 *handle) in ffa_mem_first_frag() argument
388 .a0 = func_id, .a1 = len, .a2 = frag_len, in ffa_mem_first_frag()
407 return frag_len; in ffa_mem_first_frag()
410 static int ffa_mem_next_frag(u64 handle, u32 frag_len) in ffa_mem_next_frag() argument
417 .a3 = frag_len, in ffa_mem_next_frag()
440 return ffa_mem_next_frag(*handle, frag_len); in ffa_transmit_fragment()
489 if (frag_len > max_fragsize) in ffa_setup_and_transmit()
497 constituents = buffer + frag_len; in ffa_setup_and_transmit()
500 if (frag_len == max_fragsize) { in ffa_setup_and_transmit()
502 frag_len, length, in ffa_setup_and_transmit()
[all …]
/linux/net/nfc/nci/
A Ddata.c102 int frag_len; in nci_queue_tx_data_frags() local
116 frag_len = in nci_queue_tx_data_frags()
120 (NCI_DATA_HDR_SIZE + frag_len), in nci_queue_tx_data_frags()
129 skb_put_data(skb_frag, data, frag_len); in nci_queue_tx_data_frags()
133 ((total_len == frag_len) ? in nci_queue_tx_data_frags()
138 data += frag_len; in nci_queue_tx_data_frags()
139 total_len -= frag_len; in nci_queue_tx_data_frags()
142 frag_len, total_len); in nci_queue_tx_data_frags()
/linux/net/nfc/
A Dllcp_commands.c645 size_t frag_len = 0, remaining_len; in nfc_llcp_send_i_frame() local
691 frag_len, remaining_len); in nfc_llcp_send_i_frame()
694 frag_len + LLCP_SEQUENCE_SIZE); in nfc_llcp_send_i_frame()
702 if (likely(frag_len > 0)) in nfc_llcp_send_i_frame()
713 remaining_len -= frag_len; in nfc_llcp_send_i_frame()
714 msg_ptr += frag_len; in nfc_llcp_send_i_frame()
727 size_t frag_len = 0, remaining_len; in nfc_llcp_send_ui_frame() local
757 frag_len, remaining_len); in nfc_llcp_send_ui_frame()
771 if (likely(frag_len > 0)) in nfc_llcp_send_ui_frame()
777 remaining_len -= frag_len; in nfc_llcp_send_ui_frame()
[all …]
/linux/net/bluetooth/
A Damp.c221 size_t rem_len, frag_len; in read_local_amp_assoc_complete() local
228 frag_len = skb->len - sizeof(*rp); in read_local_amp_assoc_complete()
231 if (rem_len > frag_len) { in read_local_amp_assoc_complete()
232 BT_DBG("frag_len %zu rem_len %zu", frag_len, rem_len); in read_local_amp_assoc_complete()
235 assoc->offset += frag_len; in read_local_amp_assoc_complete()
339 u16 frag_len, len; in amp_write_rem_assoc_frag() local
354 frag_len = min_t(u16, 248, ctrl->assoc_rem_len); in amp_write_rem_assoc_frag()
355 len = frag_len + sizeof(*cp); in amp_write_rem_assoc_frag()
369 memcpy(cp->frag, ctrl->assoc, frag_len); in amp_write_rem_assoc_frag()
371 ctrl->assoc_len_so_far += frag_len; in amp_write_rem_assoc_frag()
[all …]
/linux/net/ieee802154/6lowpan/
A Dtx.c164 int frag_cap, frag_len, payload_cap, rc; in lowpan_xmit_fragmented() local
176 frag_len = round_down(payload_cap - LOWPAN_FRAG1_HEAD_SIZE - in lowpan_xmit_fragmented()
184 frag_len + skb_network_header_len(skb), in lowpan_xmit_fragmented()
197 dgram_offset += frag_len; in lowpan_xmit_fragmented()
198 skb_offset += frag_len; in lowpan_xmit_fragmented()
199 skb_unprocessed -= frag_len; in lowpan_xmit_fragmented()
200 frag_len = min(frag_cap, skb_unprocessed); in lowpan_xmit_fragmented()
206 frag_len, false); in lowpan_xmit_fragmented()
/linux/drivers/crypto/bcm/
A Dutil.c144 u32 frag_len = 0; /* length of entry added to to_sg */ in spu_msg_sg_add() local
153 frag_len = min(entry_len, length - copied); in spu_msg_sg_add()
155 if (frag_len) in spu_msg_sg_add()
156 sg_set_page(to++, sg_page(sg), frag_len, offset); in spu_msg_sg_add()
157 copied += frag_len; in spu_msg_sg_add()
167 if (frag_len < entry_len) in spu_msg_sg_add()
168 *from_skip = skip + frag_len; in spu_msg_sg_add()
/linux/drivers/crypto/marvell/cesa/
A Dhash.c493 struct mv_cesa_op_ctx *tmpl, unsigned int frag_len, in mv_cesa_dma_add_frag() argument
504 mv_cesa_set_mac_op_frag_len(op, frag_len); in mv_cesa_dma_add_frag()
548 unsigned int frag_len, gfp_t flags) in mv_cesa_ahash_dma_last_req() argument
595 frag_len, in mv_cesa_ahash_dma_last_req()
635 unsigned int frag_len; in mv_cesa_ahash_dma_req_init() local
679 frag_len = iter.base.op_len; in mv_cesa_ahash_dma_req_init()
686 frag_len, flags); in mv_cesa_ahash_dma_req_init()
694 frag_len = iter.base.op_len; in mv_cesa_ahash_dma_req_init()
704 frag_len, flags); in mv_cesa_ahash_dma_req_init()
705 else if (frag_len) in mv_cesa_ahash_dma_req_init()
[all …]
/linux/drivers/net/ethernet/huawei/hinic/
A Dhinic_rx.c322 int pkt_offset, frag_len, i; in hinic_copy_lp_data() local
337 frag_len = (int)skb_headlen(skb); in hinic_copy_lp_data()
338 memcpy(lb_buf + pkt_offset, skb->data, frag_len); in hinic_copy_lp_data()
339 pkt_offset += frag_len; in hinic_copy_lp_data()
342 frag_len = (int)skb_frag_size(&skb_shinfo(skb)->frags[i]); in hinic_copy_lp_data()
343 memcpy((lb_buf + pkt_offset), frag_data, frag_len); in hinic_copy_lp_data()
344 pkt_offset += frag_len; in hinic_copy_lp_data()
/linux/drivers/net/ethernet/pensando/ionic/
A Dionic_txrx.c125 u16 frag_len; in ionic_rx_frags() local
150 frag_len = min_t(u16, len, IONIC_PAGE_SIZE - buf_info->page_offset); in ionic_rx_frags()
151 len -= frag_len; in ionic_rx_frags()
155 frag_len, DMA_FROM_DEVICE); in ionic_rx_frags()
158 buf_info->page, buf_info->page_offset, frag_len, in ionic_rx_frags()
161 if (!ionic_rx_buf_recycle(q, buf_info, frag_len)) { in ionic_rx_frags()
354 unsigned int frag_len; in ionic_rx_fill() local
379 desc->len = cpu_to_le16(frag_len); in ionic_rx_fill()
380 remain_len -= frag_len; in ionic_rx_fill()
398 sg_elem->len = cpu_to_le16(frag_len); in ionic_rx_fill()
[all …]
/linux/drivers/net/xen-netback/
A Drx.c360 size_t frag_len, chunk_len; in xenvif_rx_next_chunk() local
366 frag_len = skb_headlen(frag_iter); in xenvif_rx_next_chunk()
371 frag_len = skb_frag_size(frag); in xenvif_rx_next_chunk()
375 frag_len -= pkt->frag_offset; in xenvif_rx_next_chunk()
377 chunk_len = min_t(size_t, frag_len, XEN_PAGE_SIZE - offset); in xenvif_rx_next_chunk()
384 if (frag_len == chunk_len) in xenvif_rx_next_chunk()
/linux/drivers/net/ethernet/cortina/
A Dgemini.c807 unsigned int frag_len; in geth_freeq_alloc_map_page() local
834 pn, frag_len, (1 << fpp_order), freeq_entry); in geth_freeq_alloc_map_page()
838 mapping += frag_len; in geth_freeq_alloc_map_page()
1396 unsigned int frame_len, frag_len; in gmac_rx() local
1427 frag_len = word0.bits.buffer_size; in gmac_rx()
1456 frag_len -= NET_IP_ALIGN; in gmac_rx()
1465 frag_len = frame_len - skb->len; in gmac_rx()
1471 if (frag_len == 0) in gmac_rx()
1475 skb->len += frag_len; in gmac_rx()
1476 skb->data_len += frag_len; in gmac_rx()
[all …]
/linux/drivers/net/wireless/mediatek/mt76/
A Dtestmode.c146 u16 frag_len; in mt76_testmode_alloc_skb() local
149 frag_len = len % MT_TXP_MAX_LEN; in mt76_testmode_alloc_skb()
151 frag_len = MT_TXP_MAX_LEN; in mt76_testmode_alloc_skb()
153 frag = alloc_skb(frag_len, GFP_KERNEL); in mt76_testmode_alloc_skb()
160 __skb_put_zero(frag, frag_len); in mt76_testmode_alloc_skb()
/linux/drivers/bluetooth/
A Dbtrtl.c423 int frag_len = RTL_FRAG_LEN; in rtl_download_firmware() local
445 frag_len = fw_len % RTL_FRAG_LEN; in rtl_download_firmware()
447 memcpy(dl_cmd->data, data, frag_len); in rtl_download_firmware()
450 skb = __hci_cmd_sync(hdev, 0xfc20, frag_len + 1, dl_cmd, in rtl_download_firmware()
A Dbtintel.c981 u32 frag_len; in btintel_download_firmware_payload() local
984 frag_len = 0; in btintel_download_firmware_payload()
988 struct hci_command_hdr *cmd = (void *)(fw_ptr + frag_len); in btintel_download_firmware_payload()
990 frag_len += sizeof(*cmd) + cmd->plen; in btintel_download_firmware_payload()
1000 if (!(frag_len % 4)) { in btintel_download_firmware_payload()
1001 err = btintel_secure_send(hdev, 0x01, frag_len, fw_ptr); in btintel_download_firmware_payload()
1009 fw_ptr += frag_len; in btintel_download_firmware_payload()
1010 frag_len = 0; in btintel_download_firmware_payload()
/linux/drivers/net/fddi/
A Ddefza.c448 int i, first, frag_len, left_len; in fza_do_xmit() local
459 frag_len = FZA_TX_BUFFER_SIZE; in fza_do_xmit()
469 frag_len = left_len; in fza_do_xmit()
470 left_len -= frag_len; in fza_do_xmit()
475 frag_len = (frag_len + 3) & ~3; in fza_do_xmit()
477 fza_moves(ub.mmio_ptr, rmc_tx_ptr, frag_len); in fza_do_xmit()
479 fza_writes(ub.data_ptr, rmc_tx_ptr, frag_len); in fza_do_xmit()
/linux/drivers/staging/r8188eu/core/
A Drtw_security.c59 length = pxmitpriv->frag_len - pattrib->hdrlen - pattrib->iv_len - pattrib->icv_len; in rtw_wep_encrypt()
65 pframe += pxmitpriv->frag_len; in rtw_wep_encrypt()
499 length = pxmitpriv->frag_len - pattrib->hdrlen - pattrib->iv_len - pattrib->icv_len; in rtw_tkip_encrypt()
506 pframe += pxmitpriv->frag_len; in rtw_tkip_encrypt()
1133 length = pxmitpriv->frag_len - pattrib->hdrlen - pattrib->iv_len - pattrib->icv_len; in rtw_aes_encrypt()
1136 pframe += pxmitpriv->frag_len; in rtw_aes_encrypt()
/linux/drivers/net/ethernet/qlogic/qed/
A Dqed_ll2.h57 u16 frag_len; member
/linux/drivers/staging/rtl8723bs/core/
A Drtw_security.c81 length = pxmitpriv->frag_len-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len; in rtw_wep_encrypt()
87 pframe += pxmitpriv->frag_len; in rtw_wep_encrypt()
516 length = pxmitpriv->frag_len-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len; in rtw_tkip_encrypt()
523 pframe += pxmitpriv->frag_len; in rtw_tkip_encrypt()
1065 length = pxmitpriv->frag_len-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len; in rtw_aes_encrypt()
1068 pframe += pxmitpriv->frag_len; in rtw_aes_encrypt()
/linux/drivers/firewire/
A Dnet.c363 void *frag_buf, unsigned frag_off, unsigned frag_len) in fwnet_pd_new() argument
373 fi = fwnet_frag_new(new, frag_off, frag_len); in fwnet_pd_new()
385 memcpy(new->pbuf + frag_off, frag_buf, frag_len); in fwnet_pd_new()
425 unsigned frag_off, unsigned frag_len) in fwnet_pd_update() argument
427 if (fwnet_frag_new(pd, frag_off, frag_len) == NULL) in fwnet_pd_update()
430 memcpy(pd->pbuf + frag_off, frag_buf, frag_len); in fwnet_pd_update()
/linux/drivers/staging/rtl8712/
A Drtl871x_security.c191 length = pxmitpriv->frag_len - in r8712_wep_encrypt()
201 pframe += pxmitpriv->frag_len; in r8712_wep_encrypt()
615 length = pxmitpriv->frag_len - in r8712_tkip_encrypt()
627 pframe += pxmitpriv->frag_len; in r8712_tkip_encrypt()
1170 length = pxmitpriv->frag_len - in r8712_aes_encrypt()
1176 pframe += pxmitpriv->frag_len; in r8712_aes_encrypt()
/linux/drivers/net/ethernet/aquantia/atlantic/
A Daq_nic.c657 unsigned int frag_len = 0U; in aq_nic_map_skb() local
663 frag_len = skb_frag_size(frag); in aq_nic_map_skb()
665 while (frag_len) { in aq_nic_map_skb()
666 if (frag_len > AQ_CFG_TX_FRAME_MAX) in aq_nic_map_skb()
669 buff_size = frag_len; in aq_nic_map_skb()
690 frag_len -= buff_size; in aq_nic_map_skb()
/linux/net/wireless/
A Dutil.c674 int frag_len, frag_size; in __ieee80211_amsdu_copy_frag() local
691 frag_len = frag_size - offset; in __ieee80211_amsdu_copy_frag()
693 cur_len = min(len, frag_len); in __ieee80211_amsdu_copy_frag()
699 frag_len = skb_frag_size(frag); in __ieee80211_amsdu_copy_frag()
700 cur_len = min(len, frag_len); in __ieee80211_amsdu_copy_frag()
702 skb_frag_address(frag), cur_len, frag_len); in __ieee80211_amsdu_copy_frag()
/linux/drivers/net/wireless/zydas/zd1211rw/
A Dzd_mac.c854 unsigned int frag_len = skb->len + FCS_LEN; in fill_ctrlset() local
860 ZD_ASSERT(frag_len <= 0xffff); in fill_ctrlset()
876 cs->tx_length = cpu_to_le16(frag_len); in fill_ctrlset()
880 packet_length = frag_len + sizeof(struct zd_ctrlset) + 10; in fill_ctrlset()
886 packet_length - frag_len : packet_length); in fill_ctrlset()
/linux/drivers/net/ethernet/freescale/dpaa/
A Ddpaa_eth.c1795 int frag_off, frag_len; in sg_fd_to_skb() local
1859 frag_len = qm_sg_entry_get_len(&sgt[i]); in sg_fd_to_skb()
1865 frag_len, dpaa_bp->size); in sg_fd_to_skb()
1973 size_t frag_len; in skb_to_sg_fd() local
2001 frag_len = skb_headlen(skb); in skb_to_sg_fd()
2002 qm_sg_entry_set_len(&sgt[0], frag_len); in skb_to_sg_fd()
2017 frag_len = skb_frag_size(frag); in skb_to_sg_fd()
2020 frag_len, dma_dir); in skb_to_sg_fd()
2027 qm_sg_entry_set_len(&sgt[i + 1], frag_len); in skb_to_sg_fd()
2036 qm_sg_entry_set_f(&sgt[nr_frags], frag_len); in skb_to_sg_fd()

Completed in 73 milliseconds

123