Home
last modified time | relevance | path

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

1234

/linux/drivers/target/tcm_fc/
A Dtfc_io.c55 size_t tlen; in ft_queue_data_in() local
144 tlen = min(tlen, (size_t)(PAGE_SIZE - 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()
153 frame_len -= tlen; in ft_queue_data_in()
207 size_t tlen; in ft_recv_write_data() local
303 tlen = min(tlen, (size_t)(PAGE_SIZE - in ft_recv_write_data()
308 from += tlen; in ft_recv_write_data()
310 mem_off += tlen; in ft_recv_write_data()
[all …]
/linux/tools/testing/selftests/net/
A Dudpgso.c78 .tlen = 1,
83 .tlen = CONST_MSS_V4,
93 .tlen = CONST_MSS_V4,
140 .tlen = 1,
146 .tlen = 2,
152 .tlen = 5,
181 .tlen = 1,
186 .tlen = CONST_MSS_V6,
243 .tlen = 1,
249 .tlen = 2,
[all …]
/linux/drivers/spi/
A Dspi-sc18is602.c71 if (hw->tlen == 0) { in sc18is602_txrx()
74 hw->tlen = 1; in sc18is602_txrx()
84 hw->tlen += len; in sc18is602_txrx()
88 hw->rindex = hw->tlen - 1; in sc18is602_txrx()
96 hw->rindex = hw->tlen - 1; in sc18is602_txrx()
97 memset(&hw->buffer[hw->tlen], 0, len); in sc18is602_txrx()
98 hw->tlen += len; in sc18is602_txrx()
102 if (do_transfer && hw->tlen > 1) { in sc18is602_txrx()
109 if (ret != hw->tlen) in sc18is602_txrx()
125 hw->tlen = 0; in sc18is602_txrx()
[all …]
/linux/net/core/
A Dtso.c19 int hdr_len = skb_transport_offset(skb) + tso->tlen; in tso_build_hdr()
32 iph->payload_len = htons(size + tso->tlen); in tso_build_hdr()
35 if (tso->tlen != sizeof(struct udphdr)) { in tso_build_hdr()
74 int tlen = skb_is_gso_tcp(skb) ? tcp_hdrlen(skb) : sizeof(struct udphdr); in tso_start() local
75 int hdr_len = skb_transport_offset(skb) + tlen; in tso_start()
77 tso->tlen = tlen; in tso_start()
79 tso->tcp_seq = (tlen != sizeof(struct udphdr)) ? ntohl(tcp_hdr(skb)->seq) : 0; in tso_start()
/linux/drivers/infiniband/hw/hfi1/
A Duc.c263 u32 tlen = packet->tlen; in hfi1_uc_rcv() local
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()
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()
515 if (unlikely(tlen < (hdrsize + pad + 4))) in hfi1_uc_rcv()
518 tlen -= (hdrsize + extra_bytes); in hfi1_uc_rcv()
[all …]
A 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()
657 WARN_ON(len > tx->tlen); in _sdma_txadd_daddr()
658 tx->tlen -= len; in _sdma_txadd_daddr()
660 if (!tx->tlen) { in _sdma_txadd_daddr()
A Dtrace_misc.h77 __field(u32, tlen)
85 __entry->tlen = packet->tlen;
95 __entry->tlen,
A Dtrace_rx.h32 __field(u32, tlen)
41 __entry->tlen = packet->tlen;
52 __entry->tlen,
/linux/drivers/infiniband/hw/qib/
A Dqib_uc.c358 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()
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()
492 if (unlikely(tlen < (hdrsize + pad + 4))) in qib_uc_rcv()
495 tlen -= (hdrsize + pad + 4); in qib_uc_rcv()
[all …]
A 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()
A 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/drivers/net/wireless/ath/carl9170/
A 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()
921 ar->rx_failover_missing -= tlen; in carl9170_rx_stream()
944 if (wlen > tlen - 4) { in carl9170_rx_stream()
963 ar->rx_failover_missing = clen - tlen; in carl9170_rx_stream()
969 tlen -= wlen + 4; in carl9170_rx_stream()
972 if (tlen) { in carl9170_rx_stream()
[all …]
/linux/drivers/dma/
A Dstm32-mdma.c396 u32 buf_len, u32 tlen) in stm32_mdma_get_max_width() argument
408 tlen >= max_width) in stm32_mdma_get_max_width()
506 u32 ccr, ctcr, ctbr, tlen; in stm32_mdma_set_xfer_param() local
528 tlen = STM32_MDMA_CTCR_LEN2_GET(ctcr); in stm32_mdma_set_xfer_param()
920 u32 best_burst, tlen; in stm32_mdma_prep_dma_memcpy() local
986 tlen = STM32_MDMA_MAX_BUF_LEN; in stm32_mdma_prep_dma_memcpy()
993 max_burst = tlen / max_width; in stm32_mdma_prep_dma_memcpy()
1006 max_burst = tlen / max_width; in stm32_mdma_prep_dma_memcpy()
1036 tlen = STM32_MDMA_MAX_BUF_LEN; in stm32_mdma_prep_dma_memcpy()
1047 max_burst = tlen / max_width; in stm32_mdma_prep_dma_memcpy()
[all …]
A Dsa11x0-dma.c570 unsigned tlen = len; in sa11x0_dma_prep_slave_sg() local
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()
640 tlen = (tlen / mult) & ~DMA_ALIGN; in sa11x0_dma_prep_dma_cyclic()
644 txd->sg[k].len = tlen; in sa11x0_dma_prep_dma_cyclic()
645 addr += tlen; in sa11x0_dma_prep_dma_cyclic()
[all …]
/linux/drivers/staging/mt7621-dma/
A Dhsdma-mt7621.c316 size_t len, tlen; in mtk_hsdma_start_transfer() local
332 tlen = HSDMA_MAX_PLEN; in mtk_hsdma_start_transfer()
334 tlen = len; in mtk_hsdma_start_transfer()
341 tx_desc->flags = HSDMA_DESC_PLEN0(tlen); in mtk_hsdma_start_transfer()
347 src += tlen; in mtk_hsdma_start_transfer()
348 len -= tlen; in mtk_hsdma_start_transfer()
362 tlen = HSDMA_MAX_PLEN; in mtk_hsdma_start_transfer()
364 tlen = len; in mtk_hsdma_start_transfer()
367 rx_desc->flags = HSDMA_DESC_PLEN0(tlen); in mtk_hsdma_start_transfer()
369 dst += tlen; in mtk_hsdma_start_transfer()
[all …]
/linux/drivers/crypto/caam/
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
/linux/drivers/scsi/libfc/
A Dfc_disc.c385 size_t tlen; in fc_disc_gpn_ft_parse() local
399 tlen = disc->buf_len; in fc_disc_gpn_ft_parse()
401 if (tlen) { in fc_disc_gpn_ft_parse()
402 WARN_ON(tlen >= sizeof(*np)); in fc_disc_gpn_ft_parse()
403 plen = sizeof(*np) - tlen; in fc_disc_gpn_ft_parse()
409 memcpy((char *)np + tlen, bp, plen); in fc_disc_gpn_ft_parse()
415 bp -= tlen; in fc_disc_gpn_ft_parse()
416 len += tlen; in fc_disc_gpn_ft_parse()
417 plen += tlen; in fc_disc_gpn_ft_parse()
/linux/drivers/nvme/target/
A Dfcloop.c752 u32 data_len, io_len, tlen; in fcloop_fcp_copy_data() local
759 offset -= tlen; in fcloop_fcp_copy_data()
760 io_len -= tlen; in fcloop_fcp_copy_data()
766 io_p += tlen; in fcloop_fcp_copy_data()
774 tlen = min_t(u32, tlen, length); in fcloop_fcp_copy_data()
777 memcpy(data_p, io_p, tlen); in fcloop_fcp_copy_data()
781 length -= tlen; in fcloop_fcp_copy_data()
783 io_len -= tlen; in fcloop_fcp_copy_data()
789 io_p += tlen; in fcloop_fcp_copy_data()
791 data_len -= tlen; in fcloop_fcp_copy_data()
[all …]
/linux/fs/nfsd/
A Dxdr.h52 unsigned int tlen; member
59 unsigned int tlen; member
67 unsigned int tlen; member
A Dnfs3proc.c284 if (argp->tlen == 0) { in nfsd3_proc_symlink()
288 if (argp->tlen > NFS3_MAXPATHLEN) { in nfsd3_proc_symlink()
295 argp->tlen); in nfsd3_proc_symlink()
304 argp->tlen, argp->tname); in nfsd3_proc_symlink()
409 argp->tlen, in nfsd3_proc_rename()
415 &resp->tfh, argp->tname, argp->tlen); in nfsd3_proc_rename()
429 argp->tlen, in nfsd3_proc_link()
434 resp->status = nfsd_link(rqstp, &resp->tfh, argp->tname, argp->tlen, in nfsd3_proc_link()
/linux/arch/sparc/kernel/
A 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()
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/tools/testing/selftests/arm64/signal/
A Dtest_signals_utils.c41 size_t tlen = strlen(feats_names[i]); in feats_to_string() local
43 assert(flen > tlen); in feats_to_string()
44 flen -= tlen; in feats_to_string()
/linux/drivers/dma/mediatek/
A Dmtk-cqdma.c493 size_t i, tlen, nr_vd; in mtk_cqdma_prep_dma_memcpy() local
523 tlen = (len > MTK_CQDMA_MAX_LEN) ? MTK_CQDMA_MAX_LEN : len; in mtk_cqdma_prep_dma_memcpy()
524 cvd[i]->len = tlen; in mtk_cqdma_prep_dma_memcpy()
536 cvd[i]->residue = tlen; in mtk_cqdma_prep_dma_memcpy()
542 src += tlen; in mtk_cqdma_prep_dma_memcpy()
543 dest += tlen; in mtk_cqdma_prep_dma_memcpy()
544 len -= tlen; in mtk_cqdma_prep_dma_memcpy()
A 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()

Completed in 67 milliseconds

1234