Home
last modified time | relevance | path

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

12

/linux-6.1.9/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
82 u32 fce_info, truesize = seg_len; in mt7601u_rx_process_seg()
87 fce_info = get_unaligned_le32(data + seg_len - MT_FCE_INFO_LEN); in mt7601u_rx_process_seg()
88 seg_len -= MT_FCE_INFO_LEN; in mt7601u_rx_process_seg()
91 seg_len -= MT_DMA_HDR_LEN; in mt7601u_rx_process_seg()
95 seg_len -= sizeof(struct mt7601u_rxwi); in mt7601u_rx_process_seg()
104 skb = mt7601u_rx_skb_from_seg(dev, rxwi, data, seg_len, truesize, p); in mt7601u_rx_process_seg()
[all …]
/linux-6.1.9/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_coredump.c136 u16 segment_id, u32 *seg_len, in bnxt_hwrm_dbg_coredump_retrieve() argument
163 *seg_len = info.dest_buf_size; in bnxt_hwrm_dbg_coredump_retrieve()
171 struct coredump_segment_record *seg_rec, u32 seg_len, in bnxt_fill_coredump_seg_hdr() argument
190 seg_hdr->length = cpu_to_le32(seg_len); in bnxt_fill_coredump_seg_hdr()
315 u32 duration = 0, seg_len = 0; in __bnxt_get_coredump() local
336 &seg_len, buf, buf_len, in __bnxt_get_coredump()
348 bnxt_fill_coredump_seg_hdr(bp, &seg_hdr, seg_record, seg_len, in __bnxt_get_coredump()
354 offset += seg_hdr_len + seg_len; in __bnxt_get_coredump()
357 *dump_len += seg_len; in __bnxt_get_coredump()
/linux-6.1.9/drivers/net/ethernet/huawei/hinic/
Dhinic_hw_mbox.c373 u8 seq_id, u8 seg_len) in check_mbox_seq_id_and_seg_len() argument
375 if (seq_id > SEQ_ID_MAX_VAL || seg_len > MBOX_SEG_LEN) in check_mbox_seq_id_and_seg_len()
433 u8 seq_id, seg_len; in recv_mbox_handler() local
438 seg_len = HINIC_MBOX_HEADER_GET(mbox_header, SEG_LEN); in recv_mbox_handler()
441 if (!check_mbox_seq_id_and_seg_len(recv_mbox, seq_id, seg_len)) { in recv_mbox_handler()
444 src_func_idx, recv_mbox->seq_id, seq_id, seg_len); in recv_mbox_handler()
678 u16 seg_len) in mbox_copy_send_data() argument
686 if (seg_len % chk_sz) { in mbox_copy_send_data()
687 memcpy(mbox_max_buf, seg, seg_len); in mbox_copy_send_data()
691 data_len = seg_len; in mbox_copy_send_data()
[all …]
Dhinic_hw_mgmt.c492 int seq_id, seg_len; in recv_mgmt_msg_handler() local
496 seg_len = HINIC_MSG_HEADER_GET(*header, SEG_LEN); in recv_mgmt_msg_handler()
504 memcpy(recv_msg->msg + seq_id * SEGMENT_LEN, msg_body, seg_len); in recv_mgmt_msg_handler()
/linux-6.1.9/fs/btrfs/
Dlzo.c365 u32 seg_len; in lzo_decompress_bio() local
378 seg_len = read_compress_length(kaddr + offset_in_page(cur_in)); in lzo_decompress_bio()
382 if (seg_len > WORKSPACE_CBUF_LENGTH) { in lzo_decompress_bio()
388 seg_len); in lzo_decompress_bio()
394 copy_compressed_segment(cb, workspace->cbuf, seg_len, &cur_in); in lzo_decompress_bio()
397 ret = lzo1x_decompress_safe(workspace->cbuf, seg_len, in lzo_decompress_bio()
/linux-6.1.9/drivers/i3c/master/mipi-i3c-hci/
Dpio.c121 unsigned int seg_len, seg_cnt; member
764 p += (ibi->seg_len - ibi->seg_cnt) / 4; in hci_pio_get_ibi_segment()
831 ibi->seg_len = FIELD_GET(IBI_DATA_LENGTH, ibi_status); in hci_pio_prep_new_ibi()
832 ibi->seg_cnt = ibi->seg_len; in hci_pio_prep_new_ibi()
845 if (ibi->seg_len > ibi->max_len) { in hci_pio_prep_new_ibi()
847 ibi->seg_len, ibi->max_len); in hci_pio_prep_new_ibi()
888 ibi->slot->len += ibi->seg_len; in hci_pio_process_ibi()
889 ibi->data_ptr += ibi->seg_len; in hci_pio_process_ibi()
928 ibi->seg_len = FIELD_GET(IBI_DATA_LENGTH, ibi_status); in hci_pio_process_ibi()
929 ibi->seg_cnt = ibi->seg_len; in hci_pio_process_ibi()
[all …]
/linux-6.1.9/lib/
Dscatterlist.c447 unsigned int chunks, cur_page, seg_len, i, prv_len = 0; in sg_alloc_append_table_from_pages() local
487 seg_len = 0; in sg_alloc_append_table_from_pages()
489 seg_len += PAGE_SIZE; in sg_alloc_append_table_from_pages()
490 if (seg_len >= max_segment || in sg_alloc_append_table_from_pages()
493 seg_len = 0; in sg_alloc_append_table_from_pages()
503 seg_len = 0; in sg_alloc_append_table_from_pages()
505 seg_len += PAGE_SIZE; in sg_alloc_append_table_from_pages()
506 if (seg_len >= max_segment || in sg_alloc_append_table_from_pages()
/linux-6.1.9/drivers/net/ethernet/google/gve/
Dgve_desc.h32 __be16 seg_len; /* Length of this descriptor's segment */ member
49 __be16 seg_len; member
Dgve_tx.c397 pkt_desc->pkt.seg_len = cpu_to_be16(hlen); in gve_tx_fill_pkt_desc()
425 seg_desc->seg.seg_len = cpu_to_be16(len); in gve_tx_fill_seg_desc()
/linux-6.1.9/net/sunrpc/xprtrdma/
Dsvc_rdma_rw.c707 unsigned int sge_no, seg_len, len; in svc_rdma_build_read_segment() local
721 seg_len = min_t(unsigned int, len, in svc_rdma_build_read_segment()
728 seg_len, info->ri_pageoff); in svc_rdma_build_read_segment()
731 info->ri_pageoff += seg_len; in svc_rdma_build_read_segment()
736 len -= seg_len; in svc_rdma_build_read_segment()
/linux-6.1.9/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_txrx.c856 int hdr_len, tcp_data, seg_len, pkt_len, offset; in otx2_sq_append_tso() local
878 seg_len = min_t(int, skb_shinfo(skb)->gso_size, tcp_data); in otx2_sq_append_tso()
879 tcp_data -= seg_len; in otx2_sq_append_tso()
889 tso_build_hdr(skb, hdr, &tso, seg_len, tcp_data == 0); in otx2_sq_append_tso()
897 while (seg_len > 0) { in otx2_sq_append_tso()
900 size = min_t(int, tso.size, seg_len); in otx2_sq_append_tso()
910 seg_len -= size; in otx2_sq_append_tso()
/linux-6.1.9/drivers/bus/mhi/host/
Dboot.c319 size_t seg_size = mhi_cntrl->seg_len; in mhi_alloc_bhie_table()
430 !mhi_cntrl->seg_len))) { in mhi_fw_load_handler()
/linux-6.1.9/net/ipv6/
Dip6_output.c262 int seg_len = skb->len; in ip6_xmit() local
279 seg_len += opt->opt_nflen + opt->opt_flen; in ip6_xmit()
289 if (unlikely(seg_len > IPV6_MAXPLEN)) { in ip6_xmit()
296 hop_jumbo->jumbo_payload_len = htonl(seg_len + hoplen); in ip6_xmit()
299 seg_len = 0; in ip6_xmit()
318 hdr->payload_len = htons(seg_len); in ip6_xmit()
/linux-6.1.9/include/linux/qed/
Deth_common.h268 __le16 seg_len; member
/linux-6.1.9/drivers/infiniband/hw/hfi1/
Dtid_rdma.h113 u32 seg_len; member
Dtid_rdma.c1093 u32 length = flow->req->seg_len; in kern_find_pages()
1117 flow->length = flow->req->seg_len - length; in kern_find_pages()
1749 req->cur_seg * req->seg_len + flow->sent); in hfi1_build_tid_rdma_read_packet()
1975 req->seg_len = qpriv->tid_rdma.local.max_len; in tid_rdma_rcv_read_request()
3107 rvt_skip_sge(&qpriv->tid_ss, (req->cur_seg * req->seg_len) + in hfi1_tid_rdma_restart_req()
3330 priv->tid_req.seg_len = in setup_tid_rdma_wqe()
3333 DIV_ROUND_UP(wqe->length, priv->tid_req.seg_len); in setup_tid_rdma_wqe()
3542 npkts = rvt_div_round_up_mtu(qp, req->seg_len); in hfi1_tid_write_alloc_resources()
3764 req->seg_len = qpriv->tid_rdma.local.max_len; in hfi1_rc_rcv_tid_rdma_write_req()
4119 flow->length = min_t(u32, req->seg_len, in hfi1_rc_rcv_tid_rdma_write_resp()
[all …]
Drc.c812 len = min_t(u32, req->seg_len, in hfi1_make_rc_req()
813 wqe->length - req->seg_len * req->cur_seg); in hfi1_make_rc_req()
1070 len = min_t(u32, req->seg_len, in hfi1_make_rc_req()
1071 wqe->length - req->seg_len * req->cur_seg); in hfi1_make_rc_req()
1116 len = min_t(u32, req->seg_len, in hfi1_make_rc_req()
1117 wqe->length - req->seg_len * req->cur_seg); in hfi1_make_rc_req()
/linux-6.1.9/include/linux/
Dmhi.h390 size_t seg_len; member
/linux-6.1.9/drivers/s390/block/
Ddasd_eckd.c4152 unsigned int idaw_len, seg_len, part_len, len_to_track_end; in dasd_eckd_build_cp_cmd_track() local
4219 seg_len = bv.bv_len; in dasd_eckd_build_cp_cmd_track()
4220 while (seg_len) { in dasd_eckd_build_cp_cmd_track()
4257 part_len = min(seg_len, len_to_track_end); in dasd_eckd_build_cp_cmd_track()
4258 seg_len -= part_len; in dasd_eckd_build_cp_cmd_track()
4485 unsigned int seg_len, part_len, len_to_track_end; in dasd_eckd_build_cp_tpm_track() local
4562 seg_len = bv.bv_len; in dasd_eckd_build_cp_tpm_track()
4563 while (seg_len) { in dasd_eckd_build_cp_tpm_track()
4574 part_len = min(seg_len, len_to_track_end); in dasd_eckd_build_cp_tpm_track()
4575 seg_len -= part_len; in dasd_eckd_build_cp_tpm_track()
[all …]
/linux-6.1.9/net/core/
Dskbuff.c921 int i, len, seg_len; in skb_dump() local
963 seg_len = min_t(int, skb_headlen(skb), len); in skb_dump()
964 if (seg_len) in skb_dump()
966 16, 1, skb->data, seg_len, false); in skb_dump()
967 len -= seg_len; in skb_dump()
982 seg_len = min_t(int, p_len, len); in skb_dump()
986 16, 1, vaddr + p_off, seg_len, false); in skb_dump()
988 len -= seg_len; in skb_dump()
5621 unsigned int seg_len, in skb_gso_size_check() argument
5627 return seg_len <= max_len; in skb_gso_size_check()
[all …]
/linux-6.1.9/drivers/net/wireless/ath/ath11k/
Dmhi.c422 mhi_ctrl->seg_len = SZ_512K; in ath11k_mhi_register()
/linux-6.1.9/drivers/net/ethernet/cavium/thunder/
Dnicvf_queues.c1491 int seg_len, total_len, data_left; in nicvf_sq_append_tso() local
1516 seg_len = hdr_len; in nicvf_sq_append_tso()
1528 seg_len += size; in nicvf_sq_append_tso()
1534 seg_subdescs - 1, skb, seg_len); in nicvf_sq_append_tso()
/linux-6.1.9/drivers/net/hippi/
Drrunner.h606 u32 seg_len; member
/linux-6.1.9/fs/nfsd/
Dnfs4proc.c2913 u32 seg_len = 2 * (1 + 2 + 1); in nfsd4_read_plus_rsize() local
2915 return (op_encode_hdr_size + 2 + seg_len + XDR_QUADLEN(rlen)) * sizeof(__be32); in nfsd4_read_plus_rsize()
/linux-6.1.9/drivers/net/wireless/realtek/rtw89/
Dcoex.c5947 u8 len, u8 seg_len, u8 start_idx, u8 ring_len) in seq_print_segment() argument
5953 if ((i % seg_len) == 0) in seq_print_segment()
5965 if (i == (len - 1) || (i % seg_len) == (seg_len - 1)) in seq_print_segment()

12