/linux/drivers/net/wireless/mediatek/mt7601u/ |
A D | dma.c | 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() 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() 135 u32 seg_len, data_len = e->urb->actual_length; in mt7601u_rx_process_entry() local 149 mt7601u_rx_process_seg(dev, data, seg_len, in mt7601u_rx_process_entry() 152 data_len -= seg_len; in mt7601u_rx_process_entry() [all …]
|
/linux/drivers/net/ethernet/broadcom/bnxt/ |
A D | bnxt_coredump.c | 136 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/drivers/net/ethernet/huawei/hinic/ |
A D | hinic_hw_mbox.c | 378 u8 seq_id, u8 seg_len) in check_mbox_seq_id_and_seg_len() argument 438 u8 seq_id, seg_len; in recv_mbox_handler() local 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() 705 u16 dst_func, u16 dst_aeqn, u16 seg_len, in write_mbox_msg_attr() argument 852 u16 seg_len = MBOX_SEG_LEN; in send_mbox_to_func() local 863 HINIC_MBOX_HEADER_SET(seg_len, SEG_LEN) | in send_mbox_to_func() 881 seg_len = left; in send_mbox_to_func() [all …]
|
A D | hinic_hw_mgmt.c | 492 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/drivers/i3c/master/mipi-i3c-hci/ |
A D | pio.c | 121 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/lib/ |
A D | scatterlist.c | 447 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/drivers/net/ethernet/google/gve/ |
A D | gve_desc.h | 32 __be16 seg_len; /* Length of this descriptor's segment */ member 41 __be16 seg_len; member
|
A D | gve_tx.c | 394 pkt_desc->pkt.seg_len = cpu_to_be16(hlen); in gve_tx_fill_pkt_desc() 409 seg_desc->seg.seg_len = cpu_to_be16(len); in gve_tx_fill_seg_desc()
|
/linux/fs/btrfs/ |
A D | lzo.c | 366 u32 seg_len; in lzo_decompress_bio() local 379 seg_len = read_compress_length(kaddr + offset_in_page(cur_in)); in lzo_decompress_bio() 384 copy_compressed_segment(cb, workspace->cbuf, seg_len, &cur_in); in lzo_decompress_bio() 387 ret = lzo1x_decompress_safe(workspace->cbuf, seg_len, in lzo_decompress_bio()
|
/linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
A D | otx2_txrx.c | 811 int hdr_len, tcp_data, seg_len, pkt_len, offset; in otx2_sq_append_tso() local 833 seg_len = min_t(int, skb_shinfo(skb)->gso_size, tcp_data); in otx2_sq_append_tso() 834 tcp_data -= seg_len; in otx2_sq_append_tso() 844 tso_build_hdr(skb, hdr, &tso, seg_len, tcp_data == 0); in otx2_sq_append_tso() 852 while (seg_len > 0) { in otx2_sq_append_tso() 855 size = min_t(int, tso.size, seg_len); in otx2_sq_append_tso() 865 seg_len -= size; in otx2_sq_append_tso()
|
/linux/net/sunrpc/xprtrdma/ |
A D | svc_rdma_rw.c | 707 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/drivers/bus/mhi/core/ |
A D | boot.c | 316 size_t seg_size = mhi_cntrl->seg_len; in mhi_alloc_bhie_table() 427 !mhi_cntrl->seg_len))) { in mhi_fw_load_handler()
|
/linux/drivers/infiniband/hw/hfi1/ |
A D | tid_rdma.c | 1093 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() 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() 4254 rvt_div_round_up_mtu(qp, req->seg_len) > in hfi1_build_tid_rdma_packet() [all …]
|
A D | tid_rdma.h | 113 u32 seg_len; member
|
A D | rc.c | 812 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/include/linux/qed/ |
A D | eth_common.h | 268 __le16 seg_len; member
|
/linux/drivers/s390/block/ |
A D | dasd_eckd.c | 4167 seg_len = bv.bv_len; in dasd_eckd_build_cp_cmd_track() 4168 while (seg_len) { in dasd_eckd_build_cp_cmd_track() 4205 part_len = min(seg_len, len_to_track_end); in dasd_eckd_build_cp_cmd_track() 4206 seg_len -= part_len; in dasd_eckd_build_cp_cmd_track() 4510 seg_len = bv.bv_len; in dasd_eckd_build_cp_tpm_track() 4511 while (seg_len) { in dasd_eckd_build_cp_tpm_track() 4523 seg_len -= part_len; in dasd_eckd_build_cp_tpm_track() 4666 unsigned int seg_len, len_to_track_end; in dasd_eckd_build_cp_raw() local 4779 seg_len = bv.bv_len; in dasd_eckd_build_cp_raw() 4781 memset(dst, 0, seg_len); in dasd_eckd_build_cp_raw() [all …]
|
/linux/net/core/ |
A D | skbuff.c | 803 int i, len, seg_len; in skb_dump() local 845 seg_len = min_t(int, skb_headlen(skb), len); in skb_dump() 846 if (seg_len) in skb_dump() 848 16, 1, skb->data, seg_len, false); in skb_dump() 849 len -= seg_len; in skb_dump() 864 seg_len = min_t(int, p_len, len); in skb_dump() 870 len -= seg_len; in skb_dump() 5570 unsigned int seg_len, in skb_gso_size_check() argument 5576 return seg_len <= max_len; in skb_gso_size_check() 5579 seg_len -= GSO_BY_FRAGS; in skb_gso_size_check() [all …]
|
/linux/include/linux/ |
A D | mhi.h | 390 size_t seg_len; member
|
/linux/drivers/net/ethernet/cavium/thunder/ |
A D | nicvf_queues.c | 1490 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()
|
/linux/drivers/net/wireless/ath/ath11k/ |
A D | mhi.c | 345 mhi_ctrl->seg_len = SZ_512K; in ath11k_mhi_register()
|
/linux/drivers/net/hippi/ |
A D | rrunner.h | 606 u32 seg_len; member
|
/linux/net/ipv6/ |
A D | ip6_output.c | 257 int seg_len = skb->len; in ip6_xmit() local 274 seg_len += opt->opt_nflen + opt->opt_flen; in ip6_xmit() 299 hdr->payload_len = htons(seg_len); in ip6_xmit()
|
/linux/drivers/net/wireless/realtek/rtw89/ |
A D | coex.c | 4977 u8 len, u8 seg_len, u8 start_idx, u8 ring_len) in seq_print_segment() argument 4983 if ((i % seg_len) == 0) in seq_print_segment() 4995 if (i == (len - 1) || (i % seg_len) == (seg_len - 1)) in seq_print_segment()
|
/linux/fs/nfsd/ |
A D | nfs4proc.c | 2732 u32 seg_len = 2 * (1 + 2 + 1); in nfsd4_read_plus_rsize() local 2734 return (op_encode_hdr_size + 2 + seg_len + XDR_QUADLEN(rlen)) * sizeof(__be32); in nfsd4_read_plus_rsize()
|