Home
last modified time | relevance | path

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

123

/linux-6.3-rc2/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-6.3-rc2/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-6.3-rc2/drivers/firmware/arm_ffa/
A Ddriver.c320 u32 frag_len, u32 len, u64 *handle) in ffa_mem_first_frag() argument
325 .a0 = func_id, .a1 = len, .a2 = frag_len, in ffa_mem_first_frag()
348 return frag_len; in ffa_mem_first_frag()
351 static int ffa_mem_next_frag(u64 handle, u32 frag_len) in ffa_mem_next_frag() argument
358 .a3 = frag_len, in ffa_mem_next_frag()
383 return ffa_mem_next_frag(*handle, frag_len); in ffa_transmit_fragment()
432 if (frag_len > max_fragsize) in ffa_setup_and_transmit()
440 constituents = buffer + frag_len; in ffa_setup_and_transmit()
443 if (frag_len == max_fragsize) { in ffa_setup_and_transmit()
445 frag_len, length, in ffa_setup_and_transmit()
[all …]
/linux-6.3-rc2/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-6.3-rc2/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-6.3-rc2/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-6.3-rc2/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-6.3-rc2/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-6.3-rc2/drivers/net/ethernet/huawei/hinic/
A Dhinic_rx.c320 int pkt_offset, frag_len, i; in hinic_copy_lp_data() local
335 frag_len = (int)skb_headlen(skb); in hinic_copy_lp_data()
336 memcpy(lb_buf + pkt_offset, skb->data, frag_len); in hinic_copy_lp_data()
337 pkt_offset += frag_len; in hinic_copy_lp_data()
340 frag_len = (int)skb_frag_size(&skb_shinfo(skb)->frags[i]); in hinic_copy_lp_data()
341 memcpy((lb_buf + pkt_offset), frag_data, frag_len); in hinic_copy_lp_data()
342 pkt_offset += frag_len; in hinic_copy_lp_data()
/linux-6.3-rc2/drivers/net/ethernet/pensando/ionic/
A Dionic_txrx.c185 u16 frag_len; in ionic_rx_frags() local
210 frag_len = min_t(u16, len, IONIC_PAGE_SIZE - buf_info->page_offset); in ionic_rx_frags()
211 len -= frag_len; in ionic_rx_frags()
215 frag_len, DMA_FROM_DEVICE); in ionic_rx_frags()
218 buf_info->page, buf_info->page_offset, frag_len, in ionic_rx_frags()
221 if (!ionic_rx_buf_recycle(q, buf_info, frag_len)) { in ionic_rx_frags()
423 unsigned int frag_len; in ionic_rx_fill() local
456 desc->len = cpu_to_le16(frag_len); in ionic_rx_fill()
457 remain_len -= frag_len; in ionic_rx_fill()
475 sg_elem->len = cpu_to_le16(frag_len); in ionic_rx_fill()
[all …]
/linux-6.3-rc2/drivers/net/xen-netback/
A 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()
/linux-6.3-rc2/drivers/net/ethernet/broadcom/bnxt/
A Dbnxt_xdp.c64 int frag_len; in bnxt_xmit_bd() local
75 frag_len = skb_frag_size(frag); in bnxt_xmit_bd()
77 frag_len, DMA_TO_DEVICE); in bnxt_xmit_bd()
84 flags = frag_len << TX_BD_LEN_SHIFT; in bnxt_xmit_bd()
88 len = frag_len; in bnxt_xmit_bd()
/linux-6.3-rc2/drivers/net/wireless/mediatek/mt76/
A Dtestmode.c147 u16 frag_len; in mt76_testmode_alloc_skb() local
150 frag_len = len % MT_TXP_MAX_LEN; in mt76_testmode_alloc_skb()
152 frag_len = MT_TXP_MAX_LEN; in mt76_testmode_alloc_skb()
154 frag = alloc_skb(frag_len, GFP_KERNEL); in mt76_testmode_alloc_skb()
161 get_random_bytes(__skb_put(frag, frag_len), frag_len); in mt76_testmode_alloc_skb()
/linux-6.3-rc2/drivers/net/ethernet/cortina/
A Dgemini.c809 unsigned int frag_len; in geth_freeq_alloc_map_page() local
836 pn, frag_len, (1 << fpp_order), freeq_entry); in geth_freeq_alloc_map_page()
840 mapping += frag_len; in geth_freeq_alloc_map_page()
1398 unsigned int frame_len, frag_len; in gmac_rx() local
1429 frag_len = word0.bits.buffer_size; in gmac_rx()
1458 frag_len -= NET_IP_ALIGN; in gmac_rx()
1467 frag_len = frame_len - skb->len; in gmac_rx()
1473 if (frag_len == 0) in gmac_rx()
1477 skb->len += frag_len; in gmac_rx()
1478 skb->data_len += frag_len; in gmac_rx()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/fungible/funeth/
A Dfuneth_rx.c300 unsigned int frag_len; in fun_gather_pkt() local
317 frag_len = min_t(unsigned int, tot_len, in fun_gather_pkt()
321 frag_len, DMA_FROM_DEVICE); in fun_gather_pkt()
328 skb_frag_size_set(frags++, frag_len); in fun_gather_pkt()
330 tot_len -= frag_len; in fun_gather_pkt()
336 q->buf_offset = ALIGN(q->buf_offset + frag_len, FUN_EPRQ_PKT_ALIGN); in fun_gather_pkt()
/linux-6.3-rc2/drivers/net/ethernet/aquantia/atlantic/
A Daq_nic.c613 unsigned int frag_len = skb_frag_size(frag); in aq_nic_map_xdp() local
618 while (frag_len) { in aq_nic_map_xdp()
619 if (frag_len > AQ_CFG_TX_FRAME_MAX) in aq_nic_map_xdp()
622 buff_size = frag_len; in aq_nic_map_xdp()
639 frag_len -= buff_size; in aq_nic_map_xdp()
757 unsigned int frag_len = 0U; in aq_nic_map_skb() local
763 frag_len = skb_frag_size(frag); in aq_nic_map_skb()
765 while (frag_len) { in aq_nic_map_skb()
766 if (frag_len > AQ_CFG_TX_FRAME_MAX) in aq_nic_map_skb()
769 buff_size = frag_len; in aq_nic_map_skb()
[all …]
/linux-6.3-rc2/drivers/bluetooth/
A Dbtrtl.c451 int frag_len = RTL_FRAG_LEN; in rtl_download_firmware() local
473 frag_len = fw_len % RTL_FRAG_LEN; in rtl_download_firmware()
475 memcpy(dl_cmd->data, data, frag_len); in rtl_download_firmware()
478 skb = __hci_cmd_sync(hdev, 0xfc20, frag_len + 1, dl_cmd, in rtl_download_firmware()
A Dbtintel.c986 u32 frag_len; in btintel_download_firmware_payload() local
989 frag_len = 0; in btintel_download_firmware_payload()
993 struct hci_command_hdr *cmd = (void *)(fw_ptr + frag_len); in btintel_download_firmware_payload()
995 frag_len += sizeof(*cmd) + cmd->plen; in btintel_download_firmware_payload()
1005 if (!(frag_len % 4)) { in btintel_download_firmware_payload()
1006 err = btintel_secure_send(hdev, 0x01, frag_len, fw_ptr); in btintel_download_firmware_payload()
1014 fw_ptr += frag_len; in btintel_download_firmware_payload()
1015 frag_len = 0; in btintel_download_firmware_payload()
/linux-6.3-rc2/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-6.3-rc2/drivers/net/ethernet/qlogic/qed/
A Dqed_ll2.h57 u16 frag_len; member
/linux-6.3-rc2/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-6.3-rc2/drivers/staging/rtl8712/
A Drtl871x_security.c191 length = pxmitpriv->frag_len - in r8712_wep_encrypt()
201 pframe += pxmitpriv->frag_len; in r8712_wep_encrypt()
614 length = pxmitpriv->frag_len - in r8712_tkip_encrypt()
626 pframe += pxmitpriv->frag_len; in r8712_tkip_encrypt()
1169 length = pxmitpriv->frag_len - in r8712_aes_encrypt()
1175 pframe += pxmitpriv->frag_len; in r8712_aes_encrypt()
/linux-6.3-rc2/drivers/firewire/
A Dnet.c354 void *frag_buf, unsigned frag_off, unsigned frag_len) in fwnet_pd_new() argument
364 fi = fwnet_frag_new(new, frag_off, frag_len); in fwnet_pd_new()
376 memcpy(new->pbuf + frag_off, frag_buf, frag_len); in fwnet_pd_new()
416 unsigned frag_off, unsigned frag_len) in fwnet_pd_update() argument
418 if (fwnet_frag_new(pd, frag_off, frag_len) == NULL) in fwnet_pd_update()
421 memcpy(pd->pbuf + frag_off, frag_buf, frag_len); in fwnet_pd_update()
/linux-6.3-rc2/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-6.3-rc2/drivers/net/ethernet/emulex/benet/
A Dbe_hw.h215 __le32 frag_len; /* dword 3: bits 0 - 15 */ member

Completed in 96 milliseconds

123