/linux/tools/testing/selftests/net/ |
H A D | udpgso.c | 65 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 D | tfc_io.c | 55 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 D | tso.c | 11 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 D | uc.c | 263 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 D | sdma.h | 501 u16 tlen, in sdma_txinit_ahg() argument 508 if (tlen == 0) in sdma_txinit_ahg() 510 if (tlen > MAX_SDMA_PKT_SIZE) in sdma_txinit_ahg() 520 tx->packet_len = tlen; in sdma_txinit_ahg() 521 tx->tlen = tx->packet_len; in sdma_txinit_ahg() 569 u16 tlen, in sdma_txinit() argument 572 return sdma_txinit_ahg(tx, flags, tlen, 0, 0, NULL, 0, cb); in sdma_txinit() 668 WARN_ON(len > tx->tlen); in _sdma_txadd_daddr() 670 tx->tlen -= len; in _sdma_txadd_daddr() 672 if (!tx->tlen) { in _sdma_txadd_daddr()
|
H A D | trace_misc.h | 77 __field(u32, tlen) 85 __entry->tlen = packet->tlen; 95 __entry->tlen,
|
H A D | driver.c | 243 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() 1642 u32 tlen, qpnum; in hfi1_ipoib_ib_rcv() local 1679 tlen = packet->tlen; in hfi1_ipoib_ib_rcv() 1682 if (unlikely(tlen < extra_bytes)) in hfi1_ipoib_ib_rcv() 1685 tlen -= extra_bytes; in hfi1_ipoib_ib_rcv() [all …]
|
/linux/drivers/infiniband/hw/qib/ |
H A D | qib_uc.c | 239 int has_grh, void *data, u32 tlen, struct rvt_qp *qp) in qib_uc_rcv() argument 358 if (unlikely(tlen != (hdrsize + pmtu + 4))) in qib_uc_rcv() 381 if (unlikely(tlen < (hdrsize + pad + 4))) in qib_uc_rcv() 384 tlen -= (hdrsize + pad + 4); in qib_uc_rcv() 385 wc.byte_len = tlen + qp->r_rcv_len; in qib_uc_rcv() 389 rvt_copy_sge(qp, &qp->r_sge, data, tlen, false, false); in qib_uc_rcv() 447 if (unlikely(tlen != (hdrsize + pmtu + 4))) in qib_uc_rcv() 465 if (unlikely(tlen < (hdrsize + pad + 4))) in qib_uc_rcv() 468 tlen -= (hdrsize + pad + 4); in qib_uc_rcv() 469 if (unlikely(tlen + qp->r_rcv_len != qp->r_len)) in qib_uc_rcv() [all …]
|
H A D | qib_ud.c | 428 int has_grh, void *data, u32 tlen, struct rvt_qp *qp) in qib_ud_rcv() argument 455 if (unlikely(tlen < (hdrsize + pad + 4))) in qib_ud_rcv() 458 tlen -= hdrsize + pad + 4; in qib_ud_rcv() 488 (tlen != 256 || in qib_ud_rcv() 495 if (tlen != 256 || (be16_to_cpu(hdr->lrh[0]) >> 12) != 15) in qib_ud_rcv() 523 wc.byte_len = tlen + sizeof(struct ib_grh); in qib_ud_rcv()
|
H A D | qib_verbs.h | 294 int has_grh, void *data, u32 tlen, struct rvt_qp *qp); 297 int has_grh, void *data, u32 tlen, struct rvt_qp *qp); 311 int has_grh, void *data, u32 tlen, struct rvt_qp *qp);
|
H A D | qib_rc.c | 1271 void *data, u32 tlen, in qib_rc_rcv_resp() argument 1376 if (unlikely(tlen != (hdrsize + pmtu + 4))) in qib_rc_rcv_resp() 1416 if (unlikely(tlen < (hdrsize + pad + 8))) in qib_rc_rcv_resp() 1441 if (unlikely(tlen <= (hdrsize + pad + 8))) in qib_rc_rcv_resp() 1444 tlen -= hdrsize + pad + 8; in qib_rc_rcv_resp() 1445 if (unlikely(tlen != qp->s_rdma_read_len)) in qib_rc_rcv_resp() 1449 data, tlen, false, false); in qib_rc_rcv_resp() 1715 int has_grh, void *data, u32 tlen, struct rvt_qp *qp) in qib_rc_rcv() argument 1754 qib_rc_rcv_resp(ibp, ohdr, data, tlen, qp, opcode, psn, in qib_rc_rcv() 1818 if (unlikely(tlen != (hdrsize + pmtu + 4))) in qib_rc_rcv() [all …]
|
/linux/drivers/net/wireless/ath/carl9170/ |
H A D | rx.c | 877 unsigned int tlen, wlen = 0, clen = 0; in carl9170_rx_stream() local 882 tlen = len; in carl9170_rx_stream() 884 while (tlen >= 4) { in carl9170_rx_stream() 905 __carl9170_rx(ar, tbuf, tlen); in carl9170_rx_stream() 909 if (ar->rx_failover_missing > tlen) { in carl9170_rx_stream() 920 skb_put_data(ar->rx_failover, tbuf, tlen); in carl9170_rx_stream() 921 ar->rx_failover_missing -= tlen; in carl9170_rx_stream() 944 if (wlen > tlen - 4) { in carl9170_rx_stream() 962 skb_put_data(ar->rx_failover, tbuf, tlen); in carl9170_rx_stream() 963 ar->rx_failover_missing = clen - tlen; in carl9170_rx_stream() [all …]
|
/linux/drivers/crypto/caam/ |
H A D | error.c | 18 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
|
/linux/drivers/dma/stm32/ |
H A D | stm32-mdma.c | 374 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 D | fc_disc.c | 382 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 D | xattr.c | 106 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/drivers/nvme/target/ |
H A D | fcloop.c | 763 u32 data_len, io_len, tlen; in fcloop_fcp_copy_data() local 769 tlen = min_t(u32, offset, io_len); in fcloop_fcp_copy_data() 770 offset -= tlen; in fcloop_fcp_copy_data() 771 io_len -= tlen; in fcloop_fcp_copy_data() 777 io_p += tlen; in fcloop_fcp_copy_data() 784 tlen = min_t(u32, io_len, data_len); in fcloop_fcp_copy_data() 785 tlen = min_t(u32, tlen, length); in fcloop_fcp_copy_data() 788 memcpy(data_p, io_p, tlen); in fcloop_fcp_copy_data() 790 memcpy(io_p, data_p, tlen); in fcloop_fcp_copy_data() 792 length -= tlen; in fcloop_fcp_copy_data() [all …]
|
/linux/fs/nfsd/ |
H A D | xdr.h | 52 unsigned int tlen; member 59 unsigned int tlen; member 67 unsigned int tlen; member
|
H A D | nfsxdr.c | 363 &args->tname, &args->tlen); in nfssvc_decode_renameargs() 373 &args->tname, &args->tlen); in nfssvc_decode_linkargs() 384 if (xdr_stream_decode_u32(xdr, &args->tlen) < 0) in nfssvc_decode_symlinkargs() 386 if (args->tlen == 0) in nfssvc_decode_symlinkargs() 390 args->first.iov_base = xdr_inline_decode(xdr, args->tlen); in nfssvc_decode_symlinkargs()
|
H A D | xdr3.h | 70 unsigned int tlen; member 77 unsigned int tlen; member 85 unsigned int tlen; member
|
H A D | nfsproc.c | 468 SVCFH_fmt(&argp->tfh), argp->tlen, argp->tname); in nfsd_proc_rename() 471 &argp->tfh, argp->tname, argp->tlen); in nfsd_proc_rename() 488 argp->tlen, in nfsd_proc_link() 491 resp->status = nfsd_link(rqstp, &argp->tfh, argp->tname, argp->tlen, in nfsd_proc_link() 509 if (argp->tlen > NFS_MAXPATHLEN) { in nfsd_proc_symlink() 516 argp->tlen); in nfsd_proc_symlink() 524 argp->tlen, argp->tname); in nfsd_proc_symlink()
|
H A D | nfs3proc.c | 431 if (argp->tlen == 0) { in nfsd3_proc_symlink() 435 if (argp->tlen > NFS3_MAXPATHLEN) { in nfsd3_proc_symlink() 442 argp->tlen); in nfsd3_proc_symlink() 451 argp->tlen, argp->tname); in nfsd3_proc_symlink() 560 argp->tlen, in nfsd3_proc_rename() 566 &resp->tfh, argp->tname, argp->tlen); in nfsd3_proc_rename() 581 argp->tlen, in nfsd3_proc_link() 586 resp->status = nfsd_link(rqstp, &resp->tfh, argp->tname, argp->tlen, in nfsd3_proc_link()
|
/linux/arch/sparc/kernel/ |
H A D | vio.c | 297 int err, tlen, clen; in vio_create_one() local 300 type = mdesc_get_property(hp, mp, "device-type", &tlen); in vio_create_one() 302 type = mdesc_get_property(hp, mp, "name", &tlen); in vio_create_one() 305 tlen = strlen(type) + 1; in vio_create_one() 308 if (tlen > VIO_MAX_TYPE_LEN || strlen(type) >= VIO_MAX_TYPE_LEN) { in vio_create_one() 334 memcpy(vdev->type, type, tlen); in vio_create_one()
|
H A D | ioport.c | 173 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/tools/testing/selftests/net/lib/ |
H A D | csum.c | 299 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()
|