Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/tools/testing/selftests/net/
Dip_defrag.c137 int frag_len; in send_fragment() local
161 frag_len = FRAG_HLEN + payload_len - payload_offset; in send_fragment()
164 frag_len = FRAG_HLEN + max_frag_len; in send_fragment()
167 ip6hdr->ip6_plen = htons(frag_len); in send_fragment()
170 frag_len - FRAG_HLEN - UDP_HLEN); in send_fragment()
173 frag_len - FRAG_HLEN); in send_fragment()
174 frag_len += IP6_HLEN; in send_fragment()
179 frag_len = IP4_HLEN + payload_len - payload_offset; in send_fragment()
182 frag_len = IP4_HLEN + max_frag_len; in send_fragment()
185 iphdr->ip_len = htons(frag_len); in send_fragment()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/intersil/prism54/
Dislpci_mgt.c165 int frag_len = length + PIMFOR_HEADER_SIZE; in islpci_mgt_transmit() local
171 if (frag_len > MGMT_FRAME_SIZE) { in islpci_mgt_transmit()
173 ndev->name, frag_len); in islpci_mgt_transmit()
178 p = buf.mem = kmalloc(frag_len, GFP_KERNEL); in islpci_mgt_transmit()
182 buf.size = frag_len; in islpci_mgt_transmit()
207 buf.pci_addr = dma_map_single(&priv->pdev->dev, buf.mem, frag_len, in islpci_mgt_transmit()
228 frag->size = cpu_to_le16(frag_len); in islpci_mgt_transmit()
278 u16 frag_len; in islpci_mgt_receive() local
292 frag_len = le16_to_cpu(cb->rx_data_mgmt[index].size); in islpci_mgt_receive()
298 if (frag_len > MGMT_FRAME_SIZE) { in islpci_mgt_receive()
[all …]
/kernel/linux/linux-5.10/net/nfc/nci/
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()
/kernel/linux/linux-5.10/net/nfc/
Dllcp_commands.c660 size_t frag_len = 0, remaining_len; in nfc_llcp_send_i_frame() local
703 frag_len = min_t(size_t, remote_miu, remaining_len); in nfc_llcp_send_i_frame()
706 frag_len, remaining_len); in nfc_llcp_send_i_frame()
709 frag_len + LLCP_SEQUENCE_SIZE); in nfc_llcp_send_i_frame()
717 if (likely(frag_len > 0)) in nfc_llcp_send_i_frame()
718 skb_put_data(pdu, msg_ptr, frag_len); in nfc_llcp_send_i_frame()
728 remaining_len -= frag_len; in nfc_llcp_send_i_frame()
729 msg_ptr += frag_len; in nfc_llcp_send_i_frame()
742 size_t frag_len = 0, remaining_len; in nfc_llcp_send_ui_frame() local
769 frag_len = min_t(size_t, remote_miu, remaining_len); in nfc_llcp_send_ui_frame()
[all …]
/kernel/linux/linux-5.10/net/ieee802154/6lowpan/
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()
/kernel/linux/linux-5.10/net/bluetooth/
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()
234 memcpy(assoc->data + assoc->offset, rp->frag, frag_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()
364 hcon, ctrl, frag_len, ctrl->assoc_len, ctrl->assoc_rem_len); in amp_write_rem_assoc_frag()
[all …]
/kernel/linux/linux-5.10/drivers/crypto/bcm/
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()
/kernel/linux/linux-5.10/drivers/staging/rtl8188eu/os_dep/
Dmon.c107 uint frag_len) in rtl88eu_mon_xmit_hook() argument
124 mon_recv_decrypted(dev, data, frag_len, attr->iv_len, 0); in rtl88eu_mon_xmit_hook()
125 data += frag_len; in rtl88eu_mon_xmit_hook()
/kernel/linux/linux-5.10/drivers/crypto/marvell/cesa/
Dhash.c469 struct mv_cesa_op_ctx *tmpl, unsigned int frag_len, in mv_cesa_dma_add_frag() argument
480 mv_cesa_set_mac_op_frag_len(op, frag_len); in mv_cesa_dma_add_frag()
524 unsigned int frag_len, gfp_t flags) in mv_cesa_ahash_dma_last_req() argument
535 if (creq->len <= CESA_SA_DESC_MAC_SRC_TOTAL_LEN_MAX && frag_len) { in mv_cesa_ahash_dma_last_req()
536 op = mv_cesa_dma_add_frag(chain, &creq->op_tmpl, frag_len, in mv_cesa_ahash_dma_last_req()
567 len = min(CESA_SA_SRAM_PAYLOAD_SIZE - frag_len, trailerlen); in mv_cesa_ahash_dma_last_req()
571 frag_len, in mv_cesa_ahash_dma_last_req()
578 op = mv_cesa_dma_add_frag(chain, &creq->op_tmpl, frag_len + len, in mv_cesa_ahash_dma_last_req()
611 unsigned int frag_len; in mv_cesa_ahash_dma_req_init() local
655 frag_len = iter.base.op_len; in mv_cesa_ahash_dma_req_init()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/huawei/hinic/
Dhinic_rx.c323 int pkt_offset, frag_len, i; in hinic_copy_lp_data() local
338 frag_len = (int)skb_headlen(skb); in hinic_copy_lp_data()
339 memcpy(lb_buf + pkt_offset, skb->data, frag_len); in hinic_copy_lp_data()
340 pkt_offset += frag_len; in hinic_copy_lp_data()
343 frag_len = (int)skb_frag_size(&skb_shinfo(skb)->frags[i]); in hinic_copy_lp_data()
344 memcpy((lb_buf + pkt_offset), frag_data, frag_len); in hinic_copy_lp_data()
345 pkt_offset += frag_len; in hinic_copy_lp_data()
/kernel/linux/linux-5.10/drivers/net/xen-netback/
Drx.c362 size_t frag_len, chunk_len; in xenvif_rx_next_chunk() local
368 frag_len = skb_headlen(frag_iter); in xenvif_rx_next_chunk()
373 frag_len = skb_frag_size(frag); in xenvif_rx_next_chunk()
377 frag_len -= pkt->frag_offset; in xenvif_rx_next_chunk()
379 chunk_len = min_t(size_t, frag_len, XEN_PAGE_SIZE - offset); in xenvif_rx_next_chunk()
386 if (frag_len == chunk_len) in xenvif_rx_next_chunk()
/kernel/linux/linux-5.10/drivers/bluetooth/
Dbtintel.c848 u32 frag_len; in btintel_download_firmware_payload() local
851 frag_len = 0; in btintel_download_firmware_payload()
855 struct hci_command_hdr *cmd = (void *)(fw_ptr + frag_len); in btintel_download_firmware_payload()
871 frag_len += sizeof(*cmd) + cmd->plen; in btintel_download_firmware_payload()
881 if (!(frag_len % 4)) { in btintel_download_firmware_payload()
882 err = btintel_secure_send(hdev, 0x01, frag_len, fw_ptr); in btintel_download_firmware_payload()
890 fw_ptr += frag_len; in btintel_download_firmware_payload()
891 frag_len = 0; in btintel_download_firmware_payload()
Dbtrtl.c409 int frag_len = RTL_FRAG_LEN; in rtl_download_firmware() local
431 frag_len = fw_len % RTL_FRAG_LEN; in rtl_download_firmware()
433 memcpy(dl_cmd->data, data, frag_len); in rtl_download_firmware()
436 skb = __hci_cmd_sync(hdev, 0xfc20, frag_len + 1, dl_cmd, in rtl_download_firmware()
/kernel/linux/linux-5.10/drivers/staging/rtl8188eu/include/
Dmon.h26 uint frag_len);
/kernel/linux/linux-5.10/drivers/net/ethernet/cortina/
Dgemini.c810 unsigned int frag_len; in geth_freeq_alloc_map_page() local
833 frag_len = 1 << geth->freeq_frag_order; /* Usually 2048 */ in geth_freeq_alloc_map_page()
837 pn, frag_len, (1 << fpp_order), freeq_entry); in geth_freeq_alloc_map_page()
841 mapping += frag_len; in geth_freeq_alloc_map_page()
848 dma_unmap_single(geth->dev, mapping, frag_len, DMA_FROM_DEVICE); in geth_freeq_alloc_map_page()
929 unsigned int frag_len = 1 << geth->freeq_frag_order; in geth_setup_freeq() local
981 dma_unmap_single(geth->dev, mapping, frag_len, DMA_FROM_DEVICE); in geth_setup_freeq()
1002 unsigned int frag_len = 1 << geth->freeq_frag_order; in geth_cleanup_freeq() local
1016 dma_unmap_single(geth->dev, mapping, frag_len, DMA_FROM_DEVICE); in geth_cleanup_freeq()
1399 unsigned int frame_len, frag_len; in gmac_rx() local
[all …]
/kernel/linux/linux-5.10/drivers/net/fddi/
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()
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qed/
Dqed_ll2.h58 u16 frag_len; member
/kernel/linux/linux-5.10/drivers/staging/rtl8188eu/core/
Drtw_security.c173 length = pxmitpriv->frag_len; in rtw_wep_encrypt()
635 length = pxmitpriv->frag_len - pattrib->hdrlen - pattrib->iv_len - pattrib->icv_len; in rtw_tkip_encrypt()
641 pframe += pxmitpriv->frag_len; in rtw_tkip_encrypt()
793 length = pxmitpriv->frag_len; in rtw_aes_encrypt()
/kernel/linux/linux-5.10/drivers/staging/rtl8712/
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()
/kernel/linux/linux-5.10/drivers/firewire/
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()
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/dpaa/
Ddpaa_eth.c1761 int frag_off, frag_len; in sg_fd_to_skb() local
1825 frag_len = qm_sg_entry_get_len(&sgt[i]); in sg_fd_to_skb()
1831 frag_len, dpaa_bp->size); in sg_fd_to_skb()
1939 size_t frag_len; in skb_to_sg_fd() local
1967 frag_len = skb_headlen(skb); in skb_to_sg_fd()
1968 qm_sg_entry_set_len(&sgt[0], frag_len); in skb_to_sg_fd()
1983 frag_len = skb_frag_size(frag); in skb_to_sg_fd()
1986 frag_len, dma_dir); in skb_to_sg_fd()
1993 qm_sg_entry_set_len(&sgt[i + 1], frag_len); in skb_to_sg_fd()
2002 qm_sg_entry_set_f(&sgt[nr_frags], frag_len); in skb_to_sg_fd()
/kernel/linux/linux-5.10/drivers/net/wireless/zydas/zd1211rw/
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()
/kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/
Daq_nic.c649 unsigned int frag_len = 0U; in aq_nic_map_skb() local
655 frag_len = skb_frag_size(frag); in aq_nic_map_skb()
657 while (frag_len) { in aq_nic_map_skb()
658 if (frag_len > AQ_CFG_TX_FRAME_MAX) in aq_nic_map_skb()
661 buff_size = frag_len; in aq_nic_map_skb()
682 frag_len -= buff_size; in aq_nic_map_skb()
/kernel/linux/linux-5.10/net/wireless/
Dutil.c672 int frag_len, frag_size; in __ieee80211_amsdu_copy_frag() local
689 frag_len = frag_size - offset; in __ieee80211_amsdu_copy_frag()
691 cur_len = min(len, frag_len); in __ieee80211_amsdu_copy_frag()
697 frag_len = skb_frag_size(frag); in __ieee80211_amsdu_copy_frag()
698 cur_len = min(len, frag_len); in __ieee80211_amsdu_copy_frag()
700 skb_frag_address(frag), cur_len, frag_len); in __ieee80211_amsdu_copy_frag()
/kernel/linux/linux-5.10/drivers/net/ethernet/emulex/benet/
Dbe_hw.h215 __le32 frag_len; /* dword 3: bits 0 - 15 */ member

123