Home
last modified time | relevance | path

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

123

/drivers/firmware/arm_ffa/
Ddriver.c302 u32 frag_len, u32 len, u64 *handle) in ffa_mem_first_frag() argument
307 .a0 = func_id, .a1 = len, .a2 = frag_len, in ffa_mem_first_frag()
326 return frag_len; in ffa_mem_first_frag()
329 static int ffa_mem_next_frag(u64 handle, u32 frag_len) in ffa_mem_next_frag() argument
336 .a3 = frag_len, in ffa_mem_next_frag()
355 ffa_transmit_fragment(u32 func_id, phys_addr_t buf, u32 buf_sz, u32 frag_len, in ffa_transmit_fragment() argument
359 return ffa_mem_next_frag(*handle, frag_len); in ffa_transmit_fragment()
361 return ffa_mem_first_frag(func_id, buf, buf_sz, frag_len, len, handle); in ffa_transmit_fragment()
386 u32 idx, frag_len, length, buf_sz = 0, num_entries = sg_nents(args->sg); in ffa_setup_and_transmit() local
413 frag_len = COMPOSITE_CONSTITUENTS_OFFSET(args->nattrs, 0); in ffa_setup_and_transmit()
[all …]
/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()
/drivers/crypto/marvell/cesa/
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
559 if (creq->len <= CESA_SA_DESC_MAC_SRC_TOTAL_LEN_MAX && frag_len) { in mv_cesa_ahash_dma_last_req()
560 op = mv_cesa_dma_add_frag(chain, &creq->op_tmpl, frag_len, in mv_cesa_ahash_dma_last_req()
591 len = min(CESA_SA_SRAM_PAYLOAD_SIZE - frag_len, trailerlen); in mv_cesa_ahash_dma_last_req()
595 frag_len, in mv_cesa_ahash_dma_last_req()
602 op = mv_cesa_dma_add_frag(chain, &creq->op_tmpl, frag_len + 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()
[all …]
Dcesa.h188 #define CESA_SA_DESC_MAC_FRAG_LEN(frag_len) cpu_to_le32((frag_len) << 16) argument
/drivers/net/ethernet/huawei/hinic/
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()
/drivers/net/ethernet/pensando/ionic/
Dionic_txrx.c129 u16 frag_len; in ionic_rx_frags() local
154 frag_len = min_t(u16, len, min_t(u32, IONIC_MAX_BUF_LEN, in ionic_rx_frags()
156 len -= frag_len; in ionic_rx_frags()
160 frag_len, DMA_FROM_DEVICE); in ionic_rx_frags()
163 buf_info->page, buf_info->page_offset, frag_len, in ionic_rx_frags()
166 if (!ionic_rx_buf_recycle(q, buf_info, frag_len)) { in ionic_rx_frags()
360 unsigned int frag_len; in ionic_rx_fill() local
392 frag_len = min_t(u16, len, min_t(u32, IONIC_MAX_BUF_LEN, in ionic_rx_fill()
394 desc->len = cpu_to_le16(frag_len); in ionic_rx_fill()
395 remain_len -= frag_len; in ionic_rx_fill()
[all …]
/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()
/drivers/net/ethernet/cortina/
Dgemini.c809 unsigned int frag_len; in geth_freeq_alloc_map_page() local
832 frag_len = 1 << geth->freeq_frag_order; /* Usually 2048 */ in geth_freeq_alloc_map_page()
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()
847 dma_unmap_single(geth->dev, mapping, frag_len, DMA_FROM_DEVICE); in geth_freeq_alloc_map_page()
928 unsigned int frag_len = 1 << geth->freeq_frag_order; in geth_setup_freeq() local
980 dma_unmap_single(geth->dev, mapping, frag_len, DMA_FROM_DEVICE); in geth_setup_freeq()
1001 unsigned int frag_len = 1 << geth->freeq_frag_order; in geth_cleanup_freeq() local
1015 dma_unmap_single(geth->dev, mapping, frag_len, DMA_FROM_DEVICE); in geth_cleanup_freeq()
1420 unsigned int frame_len, frag_len; in gmac_rx() local
[all …]
/drivers/net/wireless/mediatek/mt76/
Dtestmode.c145 u16 frag_len; in mt76_testmode_alloc_skb() local
148 frag_len = len % MT_TXP_MAX_LEN; in mt76_testmode_alloc_skb()
150 frag_len = MT_TXP_MAX_LEN; in mt76_testmode_alloc_skb()
152 frag = alloc_skb(frag_len, GFP_KERNEL); in mt76_testmode_alloc_skb()
159 __skb_put_zero(frag, frag_len); in mt76_testmode_alloc_skb()
/drivers/bluetooth/
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()
Dbtrtl.c416 int frag_len = RTL_FRAG_LEN; in rtl_download_firmware() local
438 frag_len = fw_len % RTL_FRAG_LEN; in rtl_download_firmware()
440 memcpy(dl_cmd->data, data, frag_len); in rtl_download_firmware()
443 skb = __hci_cmd_sync(hdev, 0xfc20, frag_len + 1, dl_cmd, in rtl_download_firmware()
/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()
/drivers/net/ethernet/qlogic/qed/
Dqed_ll2.h58 u16 frag_len; member
/drivers/staging/r8188eu/core/
Drtw_security.c125 length = pxmitpriv->frag_len - pattrib->hdrlen - pattrib->iv_len - pattrib->icv_len; in rtw_wep_encrypt()
131 pframe += pxmitpriv->frag_len; in rtw_wep_encrypt()
565 length = pxmitpriv->frag_len - pattrib->hdrlen - pattrib->iv_len - pattrib->icv_len; in rtw_tkip_encrypt()
572 pframe += pxmitpriv->frag_len; in rtw_tkip_encrypt()
1201 length = pxmitpriv->frag_len - pattrib->hdrlen - pattrib->iv_len - pattrib->icv_len; in rtw_aes_encrypt()
1204 pframe += pxmitpriv->frag_len; in rtw_aes_encrypt()
/drivers/staging/rtl8723bs/core/
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()
/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()
/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()
Drtl871x_xmit.c110 pxmitpriv->frag_len = MAX_FRAG_THRESHOLD; in _r8712_init_xmit_priv()
448 length = pxmitpriv->frag_len - in xmitframe_addmic()
640 frg_len = pxmitpriv->frag_len - 4; in r8712_xmitframe_coalesce()
Drtl871x_xmit.h215 uint frag_len; member
/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()
/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()
/drivers/net/ethernet/freescale/dpaa/
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()
/drivers/net/ethernet/emulex/benet/
Dbe_hw.h215 __le32 frag_len; /* dword 3: bits 0 - 15 */ member
/drivers/net/ethernet/mellanox/mlxsw/
Dpci.c324 int index, char *frag_data, size_t frag_len, in mlxsw_pci_wqe_frag_map() argument
330 mapaddr = dma_map_single(&pdev->dev, frag_data, frag_len, direction); in mlxsw_pci_wqe_frag_map()
336 mlxsw_pci_wqe_byte_count_set(wqe, index, frag_len); in mlxsw_pci_wqe_frag_map()
344 size_t frag_len = mlxsw_pci_wqe_byte_count_get(wqe, index); in mlxsw_pci_wqe_frag_unmap() local
347 if (!frag_len) in mlxsw_pci_wqe_frag_unmap()
349 dma_unmap_single(&pdev->dev, mapaddr, frag_len, direction); in mlxsw_pci_wqe_frag_unmap()
/drivers/net/wireless/marvell/mwifiex/
Dpcie.h186 u16 frag_len; member

123