Home
last modified time | relevance | path

Searched refs:tlen (Results 1 – 25 of 61) sorted by relevance

123

/linux/tools/testing/selftests/net/
H A Dudpgso.c65 int tlen; /* send() buffer size, may exceed mss */ member
86 .tlen = 1,
91 .tlen = CONST_MSS_V4,
96 .tlen = CONST_MSS_V4 + 1,
101 .tlen = CONST_MSS_V4,
107 .tlen = CONST_MSS_V4,
114 .tlen = CONST_MSS_V4 + 1,
120 .tlen = CONST_MSS_V4 + 1,
127 .tlen = CONST_MSS_V4 * 2,
133 .tlen = (CONST_MSS_V4 * 2) + 1,
[all …]
/linux/drivers/target/tcm_fc/
H A Dtfc_io.c55 size_t tlen; in ft_queue_data_in() local
127 tlen = min(mem_len, frame_len); in ft_queue_data_in()
135 page, off_in_page, tlen); in ft_queue_data_in()
136 fr_len(fp) += tlen; in ft_queue_data_in()
137 fp_skb(fp)->data_len += tlen; in ft_queue_data_in()
144 tlen = min(tlen, (size_t)(PAGE_SIZE - in ft_queue_data_in()
146 memcpy(to, from, tlen); in ft_queue_data_in()
148 to += tlen; in ft_queue_data_in()
151 mem_off += tlen; in ft_queue_data_in()
152 mem_len -= tlen; in ft_queue_data_in()
[all …]
/linux/net/core/
H A Dtso.c11 int hdr_len = skb_transport_offset(skb) + tso->tlen; in tso_build_hdr()
24 iph->payload_len = htons(size + tso->tlen); in tso_build_hdr()
27 if (tso->tlen != sizeof(struct udphdr)) { in tso_build_hdr()
66 int tlen = skb_is_gso_tcp(skb) ? tcp_hdrlen(skb) : sizeof(struct udphdr); in tso_start() local
67 int hdr_len = skb_transport_offset(skb) + tlen; in tso_start()
69 tso->tlen = tlen; in tso_start()
71 tso->tcp_seq = (tlen != sizeof(struct udphdr)) ? ntohl(tcp_hdr(skb)->seq) : 0; in tso_start()
/linux/drivers/infiniband/hw/hfi1/
H A Duc.c263 u32 tlen = packet->tlen; in hfi1_uc_rcv() local
379 if (unlikely(tlen != (hdrsize + pmtu + extra_bytes))) in hfi1_uc_rcv()
399 if (unlikely(tlen < (hdrsize + extra_bytes))) in hfi1_uc_rcv()
402 tlen -= (hdrsize + extra_bytes); in hfi1_uc_rcv()
403 wc.byte_len = tlen + qp->r_rcv_len; in hfi1_uc_rcv()
407 rvt_copy_sge(qp, &qp->r_sge, data, tlen, false, false); in hfi1_uc_rcv()
475 if (unlikely(tlen != (hdrsize + pmtu + 4))) in hfi1_uc_rcv()
490 if (unlikely(tlen < (hdrsize + pad + 4))) in hfi1_uc_rcv()
493 tlen -= (hdrsize + extra_bytes); in hfi1_uc_rcv()
494 if (unlikely(tlen + qp->r_rcv_len != qp->r_len)) in hfi1_uc_rcv()
[all …]
H A Dsdma.h500 u16 tlen, in sdma_txinit_ahg() argument
507 if (tlen == 0) in sdma_txinit_ahg()
509 if (tlen > MAX_SDMA_PKT_SIZE) in sdma_txinit_ahg()
519 tx->packet_len = tlen; in sdma_txinit_ahg()
520 tx->tlen = tx->packet_len; in sdma_txinit_ahg()
568 u16 tlen, in sdma_txinit() argument
571 return sdma_txinit_ahg(tx, flags, tlen, 0, 0, NULL, 0, cb); in sdma_txinit()
667 WARN_ON(len > tx->tlen); in _sdma_txadd_daddr()
669 tx->tlen -= len; in _sdma_txadd_daddr()
671 if (!tx->tlen) { in _sdma_txadd_daddr()
H A Dtrace_misc.h77 __field(u32, tlen)
85 __entry->tlen = packet->tlen;
95 __entry->tlen,
H A Ddriver.c243 u32 tlen = rhf_pkt_len(packet->rhf); /* in bytes */ in rcv_hdrerr() local
248 if (tlen < 24) in rcv_hdrerr()
713 packet->tlen = rhf_pkt_len(packet->rhf); /* in bytes */ in process_rcv_packet_napi()
724 packet->tlen - ((packet->rcd->rcvhdrqentsize - in process_rcv_packet_napi()
748 packet->tlen = rhf_pkt_len(packet->rhf); /* in bytes */ in process_rcv_packet()
761 packet->tlen - ((get_hdrqentsize(packet->rcd) - in process_rcv_packet()
1643 u32 tlen, qpnum; in hfi1_ipoib_ib_rcv() local
1680 tlen = packet->tlen; in hfi1_ipoib_ib_rcv()
1683 if (unlikely(tlen < extra_bytes)) in hfi1_ipoib_ib_rcv()
1686 tlen -= extra_bytes; in hfi1_ipoib_ib_rcv()
[all …]
H A Dud.c818 u32 tlen = packet->tlen; in hfi1_ud_rcv() local
861 if (unlikely(tlen < (hdrsize + extra_bytes))) in hfi1_ud_rcv()
864 tlen -= hdrsize + extra_bytes; in hfi1_ud_rcv()
899 (tlen > 2048 || (sc5 == 0xF)))) in hfi1_ud_rcv()
908 if (tlen > 2048) in hfi1_ud_rcv()
935 wc.byte_len = tlen + sizeof(struct ib_grh); in hfi1_ud_rcv()
H A Dsdma_txreq.h77 u16 tlen; member
/linux/drivers/crypto/caam/
H A Derror.c18 size_t tlen, bool ascii) in caam_dump_sg() argument
25 for (it = sg; it && tlen > 0 ; it = sg_next(it)) { in caam_dump_sg()
37 len = min_t(size_t, tlen, it->length); in caam_dump_sg()
40 tlen -= len; in caam_dump_sg()
48 size_t tlen, bool ascii) in caam_dump_sg() argument
H A Derror.h22 size_t tlen, bool ascii);
/linux/drivers/dma/stm32/
H A Dstm32-mdma.c374 u32 buf_len, u32 tlen) in stm32_mdma_get_max_width() argument
386 tlen >= max_width) in stm32_mdma_get_max_width()
393 static u32 stm32_mdma_get_best_burst(u32 buf_len, u32 tlen, u32 max_burst, in stm32_mdma_get_best_burst() argument
398 best_burst = min((u32)1 << __ffs(tlen | buf_len), in stm32_mdma_get_best_burst()
484 u32 ccr, ctcr, ctbr, tlen; in stm32_mdma_set_xfer_param() local
506 tlen = STM32_MDMA_CTCR_LEN2_GET(ctcr); in stm32_mdma_set_xfer_param()
508 ctcr |= STM32_MDMA_CTCR_TLEN((tlen - 1)); in stm32_mdma_set_xfer_param()
564 dst_best_burst = stm32_mdma_get_best_burst(buf_len, tlen, in stm32_mdma_set_xfer_param()
572 src_addr_width = stm32_mdma_get_max_width(addr, buf_len, tlen); in stm32_mdma_set_xfer_param()
584 src_best_burst = stm32_mdma_get_best_burst(buf_len, tlen, in stm32_mdma_set_xfer_param()
[all …]
/linux/drivers/scsi/libfc/
H A Dfc_disc.c382 size_t tlen; in fc_disc_gpn_ft_parse() local
396 tlen = disc->buf_len; in fc_disc_gpn_ft_parse()
398 if (tlen) { in fc_disc_gpn_ft_parse()
399 WARN_ON(tlen >= sizeof(*np)); in fc_disc_gpn_ft_parse()
400 plen = sizeof(*np) - tlen; in fc_disc_gpn_ft_parse()
406 memcpy((char *)np + tlen, bp, plen); in fc_disc_gpn_ft_parse()
412 bp -= tlen; in fc_disc_gpn_ft_parse()
413 len += tlen; in fc_disc_gpn_ft_parse()
414 plen += tlen; in fc_disc_gpn_ft_parse()
/linux/fs/cachefiles/
H A Dxattr.c106 unsigned int len = object->cookie->aux_len, tlen; in cachefiles_check_auxdata() local
112 tlen = sizeof(struct cachefiles_xattr) + len; in cachefiles_check_auxdata()
113 buf = kmalloc(tlen, GFP_KERNEL); in cachefiles_check_auxdata()
119 xlen = vfs_getxattr(&nop_mnt_idmap, dentry, cachefiles_xattr_cache, buf, tlen); in cachefiles_check_auxdata()
120 if (xlen != tlen) { in cachefiles_check_auxdata()
/linux/fs/nfsd/
H A Dxdr.h52 unsigned int tlen; member
59 unsigned int tlen; member
67 unsigned int tlen; member
H A Dxdr3.h70 unsigned int tlen; member
77 unsigned int tlen; member
85 unsigned int tlen; member
/linux/drivers/nvme/target/
H A Dfcloop.c796 u32 data_len, io_len, tlen; in fcloop_fcp_copy_data() local
802 tlen = min_t(u32, offset, io_len); in fcloop_fcp_copy_data()
803 offset -= tlen; in fcloop_fcp_copy_data()
804 io_len -= tlen; in fcloop_fcp_copy_data()
810 io_p += tlen; in fcloop_fcp_copy_data()
817 tlen = min_t(u32, io_len, data_len); in fcloop_fcp_copy_data()
818 tlen = min_t(u32, tlen, length); in fcloop_fcp_copy_data()
821 memcpy(data_p, io_p, tlen); in fcloop_fcp_copy_data()
823 memcpy(io_p, data_p, tlen); in fcloop_fcp_copy_data()
825 length -= tlen; in fcloop_fcp_copy_data()
[all …]
/linux/arch/sparc/kernel/
H A Dioport.c173 int tlen; in _sparc_alloc_io() local
186 tlen = strlen(name); in _sparc_alloc_io()
187 tack = kmalloc(sizeof (struct resource) + tlen + 1, GFP_KERNEL); in _sparc_alloc_io()
/linux/drivers/dma/mediatek/
H A Dmtk-cqdma.c490 size_t i, tlen, nr_vd; in mtk_cqdma_prep_dma_memcpy() local
520 tlen = (len > MTK_CQDMA_MAX_LEN) ? MTK_CQDMA_MAX_LEN : len; in mtk_cqdma_prep_dma_memcpy()
521 cvd[i]->len = tlen; in mtk_cqdma_prep_dma_memcpy()
533 cvd[i]->residue = tlen; in mtk_cqdma_prep_dma_memcpy()
539 src += tlen; in mtk_cqdma_prep_dma_memcpy()
540 dest += tlen; in mtk_cqdma_prep_dma_memcpy()
541 len -= tlen; in mtk_cqdma_prep_dma_memcpy()
/linux/tools/testing/selftests/net/lib/
H A Dcsum.c299 int tlen; in build_packet() local
312 tlen = sizeof(struct udphdr) + cfg_payload_len; in build_packet()
314 tlen = sizeof(struct tcphdr) + cfg_payload_len; in build_packet()
318 tlen += ENC_HEADER_LEN; in build_packet()
324 off = build_packet_ipv4(buf, proto, tlen); in build_packet()
326 off = build_packet_ipv6(buf, proto, tlen); in build_packet()
/linux/include/net/
H A Dtso.h15 u8 tlen; /* transport header len */ member
/linux/drivers/rpmsg/
H A Dqcom_glink_rpm.c167 size_t tlen = hlen + dlen; in glink_rpm_tx_write() local
189 pad = ALIGN(tlen, 8) - ALIGN_DOWN(tlen, 4); in glink_rpm_tx_write()
/linux/drivers/scsi/fcoe/
H A Dfcoe_transport.c470 int fcoe_get_paged_crc_eof(struct sk_buff *skb, int tlen, in fcoe_get_paged_crc_eof() argument
487 fps->crc_eof_offset, tlen); in fcoe_get_paged_crc_eof()
488 skb->len += tlen; in fcoe_get_paged_crc_eof()
489 skb->data_len += tlen; in fcoe_get_paged_crc_eof()
490 skb->truesize += tlen; in fcoe_get_paged_crc_eof()
/linux/drivers/net/ethernet/brocade/bna/
H A Dbfa_ioc.c2239 int tlen, status = 0; in bfa_nw_ioc_debug_fwtrc() local
2241 tlen = *trclen; in bfa_nw_ioc_debug_fwtrc()
2242 if (tlen > BNA_DBG_FWTRC_LEN) in bfa_nw_ioc_debug_fwtrc()
2243 tlen = BNA_DBG_FWTRC_LEN; in bfa_nw_ioc_debug_fwtrc()
2245 status = bfa_nw_ioc_smem_read(ioc, trcdata, loff, tlen); in bfa_nw_ioc_debug_fwtrc()
2246 *trclen = tlen; in bfa_nw_ioc_debug_fwtrc()
2254 int tlen; in bfa_nw_ioc_debug_save_ftrc() local
2259 tlen = ioc->dbg_fwsave_len; in bfa_nw_ioc_debug_save_ftrc()
2260 bfa_nw_ioc_debug_fwtrc(ioc, ioc->dbg_fwsave, &tlen); in bfa_nw_ioc_debug_save_ftrc()
2269 int tlen; in bfa_nw_ioc_debug_fwsave() local
[all …]
/linux/tools/testing/selftests/
H A Dkselftest_harness.h1150 unsigned int flen = 0, vlen = 0, tlen = 0; in test_enabled() local
1173 if (!tlen) { in test_enabled()
1176 tlen = strlen(t->name); in test_enabled()
1178 if (strlen(optarg) == flen + 1 + vlen + !!vlen + tlen && in test_enabled()
1181 !strncmp(t->name, &optarg[flen + 1 + vlen + !!vlen], tlen)) in test_enabled()

123