Home
last modified time | relevance | path

Searched refs:seg_len (Results 1 – 23 of 23) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt7601u/
Ddma.c29 void *data, u32 seg_len, u32 truesize, struct page *p) in mt7601u_rx_skb_from_seg() argument
34 skb = alloc_skb(p ? 128 : seg_len, GFP_ATOMIC); in mt7601u_rx_skb_from_seg()
39 if (!true_len || true_len > seg_len) in mt7601u_rx_skb_from_seg()
77 u32 seg_len, struct page *p) in mt7601u_rx_process_seg() argument
81 u32 fce_info, truesize = seg_len; in mt7601u_rx_process_seg()
86 fce_info = get_unaligned_le32(data + seg_len - MT_FCE_INFO_LEN); in mt7601u_rx_process_seg()
87 seg_len -= MT_FCE_INFO_LEN; in mt7601u_rx_process_seg()
90 seg_len -= MT_DMA_HDR_LEN; in mt7601u_rx_process_seg()
94 seg_len -= sizeof(struct mt7601u_rxwi); in mt7601u_rx_process_seg()
103 skb = mt7601u_rx_skb_from_seg(dev, rxwi, data, seg_len, truesize, p); in mt7601u_rx_process_seg()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/huawei/hinic/
Dhinic_hw_mbox.c378 u8 seq_id, u8 seg_len) in check_mbox_seq_id_and_seg_len() argument
380 if (seq_id > SEQ_ID_MAX_VAL || seg_len > MBOX_SEG_LEN) in check_mbox_seq_id_and_seg_len()
438 u8 seq_id, seg_len; in recv_mbox_handler() local
443 seg_len = HINIC_MBOX_HEADER_GET(mbox_header, SEG_LEN); in recv_mbox_handler()
446 if (!check_mbox_seq_id_and_seg_len(recv_mbox, seq_id, seg_len)) { in recv_mbox_handler()
449 src_func_idx, recv_mbox->seq_id, seq_id, seg_len); in recv_mbox_handler()
683 u16 seg_len) in mbox_copy_send_data() argument
691 if (seg_len % chk_sz) { in mbox_copy_send_data()
692 memcpy(mbox_max_buf, seg, seg_len); in mbox_copy_send_data()
696 data_len = seg_len; in mbox_copy_send_data()
[all …]
Dhinic_hw_mgmt.c496 int seq_id, seg_len; in recv_mgmt_msg_handler() local
500 seg_len = HINIC_MSG_HEADER_GET(*header, SEG_LEN); in recv_mgmt_msg_handler()
508 memcpy(recv_msg->msg + seq_id * SEGMENT_LEN, msg_body, seg_len); in recv_mgmt_msg_handler()
/kernel/linux/linux-5.10/lib/
Dscatterlist.c434 unsigned int chunks, cur_page, seg_len, i, prv_len = 0; in __sg_alloc_table_from_pages() local
473 seg_len = 0; in __sg_alloc_table_from_pages()
475 seg_len += PAGE_SIZE; in __sg_alloc_table_from_pages()
476 if (seg_len >= max_segment || in __sg_alloc_table_from_pages()
479 seg_len = 0; in __sg_alloc_table_from_pages()
489 seg_len = 0; in __sg_alloc_table_from_pages()
491 seg_len += PAGE_SIZE; in __sg_alloc_table_from_pages()
492 if (seg_len >= max_segment || in __sg_alloc_table_from_pages()
/kernel/linux/linux-5.10/drivers/net/ethernet/google/gve/
Dgve_desc.h30 __be16 seg_len; /* Length of this descriptor's segment */ member
39 __be16 seg_len; member
Dgve_tx.c378 pkt_desc->pkt.seg_len = cpu_to_be16(hlen); in gve_tx_fill_pkt_desc()
393 seg_desc->seg.seg_len = cpu_to_be16(len); in gve_tx_fill_seg_desc()
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_txrx.c708 int hdr_len, tcp_data, seg_len, pkt_len, offset; in otx2_sq_append_tso() local
730 seg_len = min_t(int, skb_shinfo(skb)->gso_size, tcp_data); in otx2_sq_append_tso()
731 tcp_data -= seg_len; in otx2_sq_append_tso()
741 tso_build_hdr(skb, hdr, &tso, seg_len, tcp_data == 0); in otx2_sq_append_tso()
749 while (seg_len > 0) { in otx2_sq_append_tso()
752 size = min_t(int, tso.size, seg_len); in otx2_sq_append_tso()
762 seg_len -= size; in otx2_sq_append_tso()
/kernel/linux/linux-5.10/net/sunrpc/xprtrdma/
Dsvc_rdma_rw.c636 unsigned int sge_no, seg_len; in svc_rdma_build_read_segment() local
648 seg_len = min_t(unsigned int, len, in svc_rdma_build_read_segment()
657 seg_len, info->ri_pageoff); in svc_rdma_build_read_segment()
660 info->ri_pageoff += seg_len; in svc_rdma_build_read_segment()
665 len -= seg_len; in svc_rdma_build_read_segment()
/kernel/linux/linux-5.10/drivers/net/ethernet/pensando/ionic/
Dionic_txrx.c334 unsigned int seg_len; in ionic_rx_fill() local
364 seg_len = min_t(unsigned int, PAGE_SIZE, len); in ionic_rx_fill()
365 desc->len = cpu_to_le16(seg_len); in ionic_rx_fill()
366 remain_len -= seg_len; in ionic_rx_fill()
381 seg_len = min_t(unsigned int, PAGE_SIZE, remain_len); in ionic_rx_fill()
382 sg_elem->len = cpu_to_le16(seg_len); in ionic_rx_fill()
383 remain_len -= seg_len; in ionic_rx_fill()
/kernel/linux/linux-5.10/drivers/bus/mhi/host/
Dboot.c311 size_t seg_size = mhi_cntrl->seg_len; in mhi_alloc_bhie_table()
425 !mhi_cntrl->seg_len))) { in mhi_fw_load_handler()
/kernel/linux/linux-5.10/include/linux/qed/
Deth_common.h267 __le16 seg_len; member
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/
Dtid_rdma.h113 u32 seg_len; member
Dtid_rdma.c1086 u32 length = flow->req->seg_len; in kern_find_pages()
1110 flow->length = flow->req->seg_len - length; in kern_find_pages()
1742 req->cur_seg * req->seg_len + flow->sent); in hfi1_build_tid_rdma_read_packet()
1968 req->seg_len = qpriv->tid_rdma.local.max_len; in tid_rdma_rcv_read_request()
3098 rvt_skip_sge(&qpriv->tid_ss, (req->cur_seg * req->seg_len) + in hfi1_tid_rdma_restart_req()
3318 priv->tid_req.seg_len = in setup_tid_rdma_wqe()
3321 DIV_ROUND_UP(wqe->length, priv->tid_req.seg_len); in setup_tid_rdma_wqe()
3530 npkts = rvt_div_round_up_mtu(qp, req->seg_len); in hfi1_tid_write_alloc_resources()
3752 req->seg_len = qpriv->tid_rdma.local.max_len; in hfi1_rc_rcv_tid_rdma_write_req()
4107 flow->length = min_t(u32, req->seg_len, in hfi1_rc_rcv_tid_rdma_write_resp()
[all …]
Drc.c853 len = min_t(u32, req->seg_len, in hfi1_make_rc_req()
854 wqe->length - req->seg_len * req->cur_seg); in hfi1_make_rc_req()
1111 len = min_t(u32, req->seg_len, in hfi1_make_rc_req()
1112 wqe->length - req->seg_len * req->cur_seg); in hfi1_make_rc_req()
1157 len = min_t(u32, req->seg_len, in hfi1_make_rc_req()
1158 wqe->length - req->seg_len * req->cur_seg); in hfi1_make_rc_req()
/kernel/linux/linux-5.10/include/linux/
Dmhi.h386 size_t seg_len; member
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath11k/
Dmhi.c244 mhi_ctrl->seg_len = SZ_512K; in ath11k_mhi_register()
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_ethtool.c3572 u16 segment_id, u32 *seg_len, in bnxt_hwrm_dbg_coredump_retrieve() argument
3596 *seg_len = info.dest_buf_size; in bnxt_hwrm_dbg_coredump_retrieve()
3604 struct coredump_segment_record *seg_rec, u32 seg_len, in bnxt_fill_coredump_seg_hdr() argument
3622 seg_hdr->length = cpu_to_le32(seg_len); in bnxt_fill_coredump_seg_hdr()
3722 u32 duration = 0, seg_len = 0; in bnxt_get_coredump() local
3743 &seg_len, buf, buf_len, in bnxt_get_coredump()
3755 bnxt_fill_coredump_seg_hdr(bp, &seg_hdr, seg_record, seg_len, in bnxt_get_coredump()
3761 offset += seg_hdr_len + seg_len; in bnxt_get_coredump()
3764 *dump_len += seg_len; in bnxt_get_coredump()
/kernel/linux/linux-5.10/drivers/s390/block/
Ddasd_eckd.c4067 unsigned int idaw_len, seg_len, part_len, len_to_track_end; in dasd_eckd_build_cp_cmd_track() local
4134 seg_len = bv.bv_len; in dasd_eckd_build_cp_cmd_track()
4135 while (seg_len) { in dasd_eckd_build_cp_cmd_track()
4172 part_len = min(seg_len, len_to_track_end); in dasd_eckd_build_cp_cmd_track()
4173 seg_len -= part_len; in dasd_eckd_build_cp_cmd_track()
4400 unsigned int seg_len, part_len, len_to_track_end; in dasd_eckd_build_cp_tpm_track() local
4477 seg_len = bv.bv_len; in dasd_eckd_build_cp_tpm_track()
4478 while (seg_len) { in dasd_eckd_build_cp_tpm_track()
4489 part_len = min(seg_len, len_to_track_end); in dasd_eckd_build_cp_tpm_track()
4490 seg_len -= part_len; in dasd_eckd_build_cp_tpm_track()
[all …]
/kernel/linux/linux-5.10/net/core/
Dskbuff.c739 int i, len, seg_len; in skb_dump() local
781 seg_len = min_t(int, skb_headlen(skb), len); in skb_dump()
782 if (seg_len) in skb_dump()
784 16, 1, skb->data, seg_len, false); in skb_dump()
785 len -= seg_len; in skb_dump()
800 seg_len = min_t(int, p_len, len); in skb_dump()
804 16, 1, vaddr + p_off, seg_len, false); in skb_dump()
806 len -= seg_len; in skb_dump()
5401 unsigned int seg_len, in skb_gso_size_check() argument
5407 return seg_len <= max_len; in skb_gso_size_check()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/cavium/thunder/
Dnicvf_queues.c1490 int seg_len, total_len, data_left; in nicvf_sq_append_tso() local
1515 seg_len = hdr_len; in nicvf_sq_append_tso()
1527 seg_len += size; in nicvf_sq_append_tso()
1533 seg_subdescs - 1, skb, seg_len); in nicvf_sq_append_tso()
/kernel/linux/linux-5.10/drivers/net/hippi/
Drrunner.h606 u32 seg_len; member
/kernel/linux/linux-5.10/net/ipv6/
Dip6_output.c273 int seg_len = skb->len; in ip6_xmit() local
296 seg_len += opt->opt_nflen + opt->opt_flen; in ip6_xmit()
321 hdr->payload_len = htons(seg_len); in ip6_xmit()
/kernel/linux/linux-5.10/fs/nfsd/
Dnfs4proc.c2594 u32 seg_len = 2 * (1 + 2 + 1); in nfsd4_read_plus_rsize() local
2596 return (op_encode_hdr_size + 2 + seg_len + XDR_QUADLEN(rlen)) * sizeof(__be32); in nfsd4_read_plus_rsize()