Home
last modified time | relevance | path

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

1234

/Linux-v4.19/drivers/target/tcm_fc/
Dtfc_io.c68 size_t tlen; in ft_queue_data_in() local
140 tlen = min(mem_len, frame_len); in ft_queue_data_in()
148 page, off_in_page, tlen); in ft_queue_data_in()
149 fr_len(fp) += tlen; in ft_queue_data_in()
150 fp_skb(fp)->data_len += tlen; in ft_queue_data_in()
158 tlen = min(tlen, (size_t)(PAGE_SIZE - in ft_queue_data_in()
160 memcpy(to, from, tlen); in ft_queue_data_in()
162 to += tlen; in ft_queue_data_in()
165 mem_off += tlen; in ft_queue_data_in()
166 mem_len -= tlen; in ft_queue_data_in()
[all …]
/Linux-v4.19/tools/testing/selftests/net/
Dudpgso.c66 int tlen; /* send() buffer size, may exceed mss */ member
79 .tlen = 1,
84 .tlen = CONST_MSS_V4,
89 .tlen = CONST_MSS_V4 + 1,
96 .tlen = CONST_MSS_V4,
103 .tlen = CONST_MSS_V4 + 1,
110 .tlen = CONST_MSS_V4 * 2,
116 .tlen = (CONST_MSS_V4 * 2) + 1,
123 .tlen = (ETH_MAX_MTU / CONST_MSS_V4) * CONST_MSS_V4,
130 .tlen = ETH_MAX_MTU - CONST_HDRLEN_V4,
[all …]
/Linux-v4.19/drivers/spi/
Dspi-sc18is602.c53 int tlen; /* Data queued for tx in buffer */ member
80 if (hw->tlen == 0) { in sc18is602_txrx()
83 hw->tlen = 1; in sc18is602_txrx()
92 memcpy(&hw->buffer[hw->tlen], t->tx_buf, len); in sc18is602_txrx()
93 hw->tlen += len; in sc18is602_txrx()
97 hw->rindex = hw->tlen - 1; in sc18is602_txrx()
105 hw->rindex = hw->tlen - 1; in sc18is602_txrx()
106 memset(&hw->buffer[hw->tlen], 0, len); in sc18is602_txrx()
107 hw->tlen += len; in sc18is602_txrx()
111 if (do_transfer && hw->tlen > 1) { in sc18is602_txrx()
[all …]
/Linux-v4.19/drivers/infiniband/hw/hfi1/
Duc.c308 u32 tlen = packet->tlen; in hfi1_uc_rcv() local
424 if (unlikely(tlen != (hdrsize + pmtu + extra_bytes))) in hfi1_uc_rcv()
444 if (unlikely(tlen < (hdrsize + extra_bytes))) in hfi1_uc_rcv()
447 tlen -= (hdrsize + extra_bytes); in hfi1_uc_rcv()
448 wc.byte_len = tlen + qp->r_rcv_len; in hfi1_uc_rcv()
452 hfi1_copy_sge(&qp->r_sge, data, tlen, false, false); in hfi1_uc_rcv()
521 if (unlikely(tlen != (hdrsize + pmtu + 4))) in hfi1_uc_rcv()
536 if (unlikely(tlen < (hdrsize + pad + 4))) in hfi1_uc_rcv()
539 tlen -= (hdrsize + extra_bytes); in hfi1_uc_rcv()
540 if (unlikely(tlen + qp->r_rcv_len != qp->r_len)) in hfi1_uc_rcv()
[all …]
Dtrace_misc.h118 __field(u32, tlen)
126 __entry->tlen = packet->tlen;
136 __entry->tlen,
Dsdma.h550 u16 tlen, in sdma_txinit_ahg() argument
557 if (tlen == 0) in sdma_txinit_ahg()
559 if (tlen > MAX_SDMA_PKT_SIZE) in sdma_txinit_ahg()
569 tx->packet_len = tlen; in sdma_txinit_ahg()
570 tx->tlen = tx->packet_len; in sdma_txinit_ahg()
618 u16 tlen, in sdma_txinit() argument
621 return sdma_txinit_ahg(tx, flags, tlen, 0, 0, NULL, 0, cb); in sdma_txinit()
706 WARN_ON(len > tx->tlen); in _sdma_txadd_daddr()
707 tx->tlen -= len; in _sdma_txadd_daddr()
709 if (!tx->tlen) { in _sdma_txadd_daddr()
Dtrace_rx.h73 __field(u32, tlen)
82 __entry->tlen = packet->tlen;
93 __entry->tlen,
/Linux-v4.19/drivers/infiniband/hw/qib/
Dqib_uc.c238 int has_grh, void *data, u32 tlen, struct rvt_qp *qp) in qib_uc_rcv() argument
357 if (unlikely(tlen != (hdrsize + pmtu + 4))) in qib_uc_rcv()
380 if (unlikely(tlen < (hdrsize + pad + 4))) in qib_uc_rcv()
383 tlen -= (hdrsize + pad + 4); in qib_uc_rcv()
384 wc.byte_len = tlen + qp->r_rcv_len; in qib_uc_rcv()
388 qib_copy_sge(&qp->r_sge, data, tlen, 0); 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.c311 u32 tlen = qib_hdrget_length_in_bytes(rhf_addr); in qib_rcv_hdrerr() local
320 if (tlen < 24) in qib_rcv_hdrerr()
454 u32 eflags, etype, tlen, i = 0, updegr = 0, crcs = 0; in qib_kreceive() local
479 tlen = qib_hdrget_length_in_bytes(rhf_addr); in qib_kreceive()
486 if (tlen > sizeof(*hdr) || in qib_kreceive()
489 prefetch_range(ebuf, tlen - sizeof(*hdr)); in qib_kreceive()
495 if (lrh_len != tlen) { in qib_kreceive()
502 tlen > (dd->rcvhdrentsize - 2 + 1 - in qib_kreceive()
515 qib_ib_rcv(rcd, hdr, ebuf, tlen); in qib_kreceive()
Dqib_ud.c431 int has_grh, void *data, u32 tlen, struct rvt_qp *qp) in qib_ud_rcv() argument
458 if (unlikely(tlen < (hdrsize + pad + 4))) in qib_ud_rcv()
461 tlen -= hdrsize + pad + 4; in qib_ud_rcv()
491 (tlen != 256 || in qib_ud_rcv()
498 if (tlen != 256 || (be16_to_cpu(hdr->lrh[0]) >> 12) != 15) in qib_ud_rcv()
516 tlen -= sizeof(u32); in qib_ud_rcv()
527 wc.byte_len = tlen + sizeof(struct ib_grh); in qib_ud_rcv()
/Linux-v4.19/arch/x86/crypto/
Daes-i586-asm_32.S42 #define tlen 1024 // length of each of 4 'xor' arrays (256 32-bit words) macro
98 xor table+tlen(,%tmp,4),%a2; \
101 xor table+2*tlen(,%tmp,4),%a3; \
102 xor table+3*tlen(,%idx,4),%a4;
115 xor table+tlen(,%tmp,4),%a2; \
118 xor table+3*tlen(,%idx,4),%a4; \
121 xor table+2*tlen(,%tmp,4),%a3;
134 xor table+tlen(,%tmp,4),%a2; \
137 xor table+3*tlen(,%idx,4),%a4; \
140 xor table+2*tlen(,%tmp,4),%a3;
/Linux-v4.19/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(sg)) { 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
Derror.h15 size_t tlen, bool ascii);
/Linux-v4.19/drivers/net/wireless/ath/carl9170/
Drx.c876 unsigned int tlen, wlen = 0, clen = 0; in carl9170_rx_stream() local
881 tlen = len; in carl9170_rx_stream()
883 while (tlen >= 4) { in carl9170_rx_stream()
904 __carl9170_rx(ar, tbuf, tlen); in carl9170_rx_stream()
908 if (ar->rx_failover_missing > tlen) { in carl9170_rx_stream()
919 skb_put_data(ar->rx_failover, tbuf, tlen); in carl9170_rx_stream()
920 ar->rx_failover_missing -= tlen; in carl9170_rx_stream()
943 if (wlen > tlen - 4) { in carl9170_rx_stream()
961 skb_put_data(ar->rx_failover, tbuf, tlen); in carl9170_rx_stream()
962 ar->rx_failover_missing = clen - tlen; in carl9170_rx_stream()
[all …]
/Linux-v4.19/drivers/dma/
Dstm32-mdma.c407 u32 buf_len, u32 tlen) in stm32_mdma_get_max_width() argument
419 tlen >= max_width) in stm32_mdma_get_max_width()
426 static u32 stm32_mdma_get_best_burst(u32 buf_len, u32 tlen, u32 max_burst, in stm32_mdma_get_best_burst() argument
431 best_burst = min((u32)1 << __ffs(tlen | buf_len), in stm32_mdma_get_best_burst()
517 u32 ccr, ctcr, ctbr, tlen; in stm32_mdma_set_xfer_param() local
539 tlen = STM32_MDMA_CTCR_LEN2_GET(ctcr); in stm32_mdma_set_xfer_param()
541 ctcr |= STM32_MDMA_CTCR_TLEN((tlen - 1)); in stm32_mdma_set_xfer_param()
587 dst_best_burst = stm32_mdma_get_best_burst(buf_len, tlen, in stm32_mdma_set_xfer_param()
595 src_addr_width = stm32_mdma_get_max_width(addr, buf_len, tlen); in stm32_mdma_set_xfer_param()
607 src_best_burst = stm32_mdma_get_best_burst(buf_len, tlen, in stm32_mdma_set_xfer_param()
[all …]
Dsa11x0-dma.c574 unsigned tlen = len; in sa11x0_dma_prep_slave_sg() local
582 if (tlen > DMA_MAX_SIZE) { in sa11x0_dma_prep_slave_sg()
583 unsigned mult = DIV_ROUND_UP(tlen, in sa11x0_dma_prep_slave_sg()
586 tlen = (tlen / mult) & ~DMA_ALIGN; in sa11x0_dma_prep_slave_sg()
590 txd->sg[j].len = tlen; in sa11x0_dma_prep_slave_sg()
592 addr += tlen; in sa11x0_dma_prep_slave_sg()
593 len -= tlen; in sa11x0_dma_prep_slave_sg()
637 size_t tlen, len = period; in sa11x0_dma_prep_dma_cyclic() local
640 tlen = len; in sa11x0_dma_prep_dma_cyclic()
642 if (tlen > DMA_MAX_SIZE) { in sa11x0_dma_prep_dma_cyclic()
[all …]
/Linux-v4.19/drivers/staging/mt7621-dma/
Dmtk-hsdma.c325 size_t len, tlen; in mtk_hsdma_start_transfer() local
339 tlen = HSDMA_MAX_PLEN; in mtk_hsdma_start_transfer()
341 tlen = len; in mtk_hsdma_start_transfer()
345 tx_desc->flags |= HSDMA_DESC_PLEN1(tlen); in mtk_hsdma_start_transfer()
349 tx_desc->flags = HSDMA_DESC_PLEN0(tlen); in mtk_hsdma_start_transfer()
355 src += tlen; in mtk_hsdma_start_transfer()
356 len -= tlen; in mtk_hsdma_start_transfer()
370 tlen = HSDMA_MAX_PLEN; in mtk_hsdma_start_transfer()
372 tlen = len; in mtk_hsdma_start_transfer()
375 rx_desc->flags = HSDMA_DESC_PLEN0(tlen); in mtk_hsdma_start_transfer()
[all …]
/Linux-v4.19/drivers/scsi/libfc/
Dfc_disc.c397 size_t tlen; in fc_disc_gpn_ft_parse() local
411 tlen = disc->buf_len; in fc_disc_gpn_ft_parse()
413 if (tlen) { in fc_disc_gpn_ft_parse()
414 WARN_ON(tlen >= sizeof(*np)); in fc_disc_gpn_ft_parse()
415 plen = sizeof(*np) - tlen; in fc_disc_gpn_ft_parse()
421 memcpy((char *)np + tlen, bp, plen); in fc_disc_gpn_ft_parse()
427 bp -= tlen; in fc_disc_gpn_ft_parse()
428 len += tlen; in fc_disc_gpn_ft_parse()
429 plen += tlen; in fc_disc_gpn_ft_parse()
/Linux-v4.19/fs/nfsd/
Dxdr.h53 unsigned int tlen; member
65 unsigned int tlen; member
73 unsigned int tlen; member
Dnfsxdr.c335 || !(p = decode_filename(p, &args->tname, &args->tlen))) in nfssvc_decode_renameargs()
361 || !(p = decode_filename(p, &args->tname, &args->tlen))) in nfssvc_decode_linkargs()
378 args->tlen = ntohl(*p++); in nfssvc_decode_symlinkargs()
379 if (args->tlen == 0) in nfssvc_decode_symlinkargs()
392 if (args->tlen != rqstp->rq_arg.page_len) in nfssvc_decode_symlinkargs()
396 xdrlen = XDR_QUADLEN(args->tlen); in nfssvc_decode_symlinkargs()
Dnfsproc.c417 SVCFH_fmt(&argp->tfh), argp->tlen, argp->tname); in nfsd_proc_rename()
420 &argp->tfh, argp->tname, argp->tlen); in nfsd_proc_rename()
436 argp->tlen, in nfsd_proc_link()
439 nfserr = nfsd_link(rqstp, &argp->tfh, argp->tname, argp->tlen, in nfsd_proc_link()
453 if (argp->tlen > NFS_MAXPATHLEN) in nfsd_proc_symlink()
458 argp->tlen); in nfsd_proc_symlink()
464 argp->tlen, argp->tname); in nfsd_proc_symlink()
Dxdr3.h71 unsigned int tlen; member
83 unsigned int tlen; member
91 unsigned int tlen; member
/Linux-v4.19/drivers/nvme/target/
Dfcloop.c540 u32 data_len, io_len, tlen; in fcloop_fcp_copy_data() local
546 tlen = min_t(u32, offset, io_len); in fcloop_fcp_copy_data()
547 offset -= tlen; in fcloop_fcp_copy_data()
548 io_len -= tlen; in fcloop_fcp_copy_data()
554 io_p += tlen; in fcloop_fcp_copy_data()
561 tlen = min_t(u32, io_len, data_len); in fcloop_fcp_copy_data()
562 tlen = min_t(u32, tlen, length); in fcloop_fcp_copy_data()
565 memcpy(data_p, io_p, tlen); in fcloop_fcp_copy_data()
567 memcpy(io_p, data_p, tlen); in fcloop_fcp_copy_data()
569 length -= tlen; in fcloop_fcp_copy_data()
[all …]
/Linux-v4.19/arch/sparc/kernel/
Dvio.c299 int err, tlen, clen; in vio_create_one() local
302 type = mdesc_get_property(hp, mp, "device-type", &tlen); in vio_create_one()
304 type = mdesc_get_property(hp, mp, "name", &tlen); in vio_create_one()
307 tlen = strlen(type) + 1; in vio_create_one()
310 if (tlen > VIO_MAX_TYPE_LEN || strlen(type) >= VIO_MAX_TYPE_LEN) { in vio_create_one()
336 memcpy(vdev->type, type, tlen); in vio_create_one()
/Linux-v4.19/drivers/dma/mediatek/
Dmtk-hsdma.c418 u16 reserved, prev, tlen, num_sgs; in mtk_hsdma_issue_pending_vdesc() local
440 tlen = (hvd->len > MTK_HSDMA_MAX_LEN) ? in mtk_hsdma_issue_pending_vdesc()
453 hsdma->soc->ls0 | MTK_HSDMA_DESC_PLEN(tlen)); in mtk_hsdma_issue_pending_vdesc()
457 WRITE_ONCE(rxd->desc2, MTK_HSDMA_DESC_PLEN(tlen)); in mtk_hsdma_issue_pending_vdesc()
467 hvd->src += tlen; in mtk_hsdma_issue_pending_vdesc()
468 hvd->dest += tlen; in mtk_hsdma_issue_pending_vdesc()
469 hvd->len -= tlen; in mtk_hsdma_issue_pending_vdesc()

1234