Home
last modified time | relevance | path

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

1234

/linux-6.6.21/drivers/target/tcm_fc/
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-6.6.21/tools/testing/selftests/net/
Dudpgso.c65 int tlen; /* send() buffer size, may exceed mss */ member
78 .tlen = 1,
83 .tlen = CONST_MSS_V4,
88 .tlen = CONST_MSS_V4 + 1,
93 .tlen = CONST_MSS_V4,
99 .tlen = CONST_MSS_V4 + 1,
106 .tlen = CONST_MSS_V4 * 2,
112 .tlen = (CONST_MSS_V4 * 2) + 1,
119 .tlen = (ETH_MAX_MTU / CONST_MSS_V4) * CONST_MSS_V4,
126 .tlen = ETH_MAX_MTU - CONST_HDRLEN_V4,
[all …]
/linux-6.6.21/drivers/spi/
Dspi-sc18is602.c43 int tlen; /* Data queued for tx in buffer */ member
70 if (hw->tlen == 0) { in sc18is602_txrx()
73 hw->tlen = 1; in sc18is602_txrx()
82 memcpy(&hw->buffer[hw->tlen], t->tx_buf, len); in sc18is602_txrx()
83 hw->tlen += len; in sc18is602_txrx()
87 hw->rindex = hw->tlen - 1; in sc18is602_txrx()
95 hw->rindex = hw->tlen - 1; in sc18is602_txrx()
96 memset(&hw->buffer[hw->tlen], 0, len); in sc18is602_txrx()
97 hw->tlen += len; in sc18is602_txrx()
101 if (do_transfer && hw->tlen > 1) { in sc18is602_txrx()
[all …]
/linux-6.6.21/net/core/
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-6.6.21/drivers/infiniband/hw/hfi1/
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 …]
Dtrace_misc.h77 __field(u32, tlen)
85 __entry->tlen = packet->tlen;
95 __entry->tlen,
Dtrace_rx.h32 __field(u32, tlen)
41 __entry->tlen = packet->tlen;
52 __entry->tlen,
Dsdma.h501 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()
/linux-6.6.21/drivers/infiniband/hw/qib/
Dqib_uc.c239 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 …]
Dqib_driver.c308 u32 tlen = qib_hdrget_length_in_bytes(rhf_addr); in qib_rcv_hdrerr() local
317 if (tlen < 24) in qib_rcv_hdrerr()
451 u32 eflags, etype, tlen, i = 0, updegr = 0, crcs = 0; in qib_kreceive() local
476 tlen = qib_hdrget_length_in_bytes(rhf_addr); in qib_kreceive()
483 if (tlen > sizeof(*hdr) || in qib_kreceive()
486 prefetch_range(ebuf, tlen - sizeof(*hdr)); in qib_kreceive()
492 if (lrh_len != tlen) { in qib_kreceive()
499 tlen > (dd->rcvhdrentsize - 2 + 1 - in qib_kreceive()
512 qib_ib_rcv(rcd, hdr, ebuf, tlen); in qib_kreceive()
Dqib_ud.c428 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()
/linux-6.6.21/drivers/net/wireless/ath/carl9170/
Drx.c877 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-6.6.21/drivers/crypto/caam/
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
/linux-6.6.21/drivers/dma/
Dstm32-mdma.c375 u32 buf_len, u32 tlen) in stm32_mdma_get_max_width() argument
387 tlen >= max_width) in stm32_mdma_get_max_width()
394 static u32 stm32_mdma_get_best_burst(u32 buf_len, u32 tlen, u32 max_burst, in stm32_mdma_get_best_burst() argument
399 best_burst = min((u32)1 << __ffs(tlen | buf_len), in stm32_mdma_get_best_burst()
485 u32 ccr, ctcr, ctbr, tlen; in stm32_mdma_set_xfer_param() local
507 tlen = STM32_MDMA_CTCR_LEN2_GET(ctcr); in stm32_mdma_set_xfer_param()
509 ctcr |= STM32_MDMA_CTCR_TLEN((tlen - 1)); in stm32_mdma_set_xfer_param()
565 dst_best_burst = stm32_mdma_get_best_burst(buf_len, tlen, in stm32_mdma_set_xfer_param()
573 src_addr_width = stm32_mdma_get_max_width(addr, buf_len, tlen); in stm32_mdma_set_xfer_param()
585 src_best_burst = stm32_mdma_get_best_burst(buf_len, tlen, in stm32_mdma_set_xfer_param()
[all …]
Dsa11x0-dma.c570 unsigned tlen = len; in sa11x0_dma_prep_slave_sg() local
578 if (tlen > DMA_MAX_SIZE) { in sa11x0_dma_prep_slave_sg()
579 unsigned mult = DIV_ROUND_UP(tlen, in sa11x0_dma_prep_slave_sg()
582 tlen = (tlen / mult) & ~DMA_ALIGN; in sa11x0_dma_prep_slave_sg()
586 txd->sg[j].len = tlen; in sa11x0_dma_prep_slave_sg()
588 addr += tlen; in sa11x0_dma_prep_slave_sg()
589 len -= tlen; in sa11x0_dma_prep_slave_sg()
633 size_t tlen, len = period; in sa11x0_dma_prep_dma_cyclic() local
636 tlen = len; in sa11x0_dma_prep_dma_cyclic()
638 if (tlen > DMA_MAX_SIZE) { in sa11x0_dma_prep_dma_cyclic()
[all …]
/linux-6.6.21/fs/cachefiles/
Dxattr.c98 unsigned int len = object->cookie->aux_len, tlen; in cachefiles_check_auxdata() local
104 tlen = sizeof(struct cachefiles_xattr) + len; in cachefiles_check_auxdata()
105 buf = kmalloc(tlen, GFP_KERNEL); in cachefiles_check_auxdata()
111 xlen = vfs_getxattr(&nop_mnt_idmap, dentry, cachefiles_xattr_cache, buf, tlen); in cachefiles_check_auxdata()
112 if (xlen != tlen) { in cachefiles_check_auxdata()
/linux-6.6.21/drivers/scsi/libfc/
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-6.6.21/fs/nfsd/
Dxdr.h52 unsigned int tlen; member
59 unsigned int tlen; member
67 unsigned int tlen; member
Dnfsproc.c434 SVCFH_fmt(&argp->tfh), argp->tlen, argp->tname); in nfsd_proc_rename()
437 &argp->tfh, argp->tname, argp->tlen); in nfsd_proc_rename()
453 argp->tlen, in nfsd_proc_link()
456 resp->status = nfsd_link(rqstp, &argp->tfh, argp->tname, argp->tlen, in nfsd_proc_link()
473 if (argp->tlen > NFS_MAXPATHLEN) { in nfsd_proc_symlink()
480 argp->tlen); in nfsd_proc_symlink()
488 argp->tlen, argp->tname); in nfsd_proc_symlink()
Dnfsxdr.c363 &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()
/linux-6.6.21/drivers/nvme/target/
Dfcloop.c753 u32 data_len, io_len, tlen; in fcloop_fcp_copy_data() local
759 tlen = min_t(u32, offset, io_len); in fcloop_fcp_copy_data()
760 offset -= tlen; in fcloop_fcp_copy_data()
761 io_len -= tlen; in fcloop_fcp_copy_data()
767 io_p += tlen; in fcloop_fcp_copy_data()
774 tlen = min_t(u32, io_len, data_len); in fcloop_fcp_copy_data()
775 tlen = min_t(u32, tlen, length); in fcloop_fcp_copy_data()
778 memcpy(data_p, io_p, tlen); in fcloop_fcp_copy_data()
780 memcpy(io_p, data_p, tlen); in fcloop_fcp_copy_data()
782 length -= tlen; in fcloop_fcp_copy_data()
[all …]
/linux-6.6.21/arch/sparc/kernel/
Dvio.c297 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()
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-6.6.21/drivers/dma/mediatek/
Dmtk-cqdma.c492 size_t i, tlen, nr_vd; in mtk_cqdma_prep_dma_memcpy() local
522 tlen = (len > MTK_CQDMA_MAX_LEN) ? MTK_CQDMA_MAX_LEN : len; in mtk_cqdma_prep_dma_memcpy()
523 cvd[i]->len = tlen; in mtk_cqdma_prep_dma_memcpy()
535 cvd[i]->residue = tlen; in mtk_cqdma_prep_dma_memcpy()
541 src += tlen; in mtk_cqdma_prep_dma_memcpy()
542 dest += tlen; in mtk_cqdma_prep_dma_memcpy()
543 len -= tlen; in mtk_cqdma_prep_dma_memcpy()
Dmtk-hsdma.c417 u16 reserved, prev, tlen, num_sgs; in mtk_hsdma_issue_pending_vdesc() local
439 tlen = (hvd->len > MTK_HSDMA_MAX_LEN) ? in mtk_hsdma_issue_pending_vdesc()
452 hsdma->soc->ls0 | MTK_HSDMA_DESC_PLEN(tlen)); in mtk_hsdma_issue_pending_vdesc()
456 WRITE_ONCE(rxd->desc2, MTK_HSDMA_DESC_PLEN(tlen)); in mtk_hsdma_issue_pending_vdesc()
466 hvd->src += tlen; in mtk_hsdma_issue_pending_vdesc()
467 hvd->dest += tlen; in mtk_hsdma_issue_pending_vdesc()
468 hvd->len -= tlen; in mtk_hsdma_issue_pending_vdesc()

1234