Home
last modified time | relevance | path

Searched refs:tlen (Results 1 – 25 of 62) 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/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 Dsdma_txreq.h77 u16 tlen; member
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()
/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/dma/
H A Dsa11x0-dma.c569 unsigned tlen = len; in sa11x0_dma_prep_slave_sg() local
577 if (tlen > DMA_MAX_SIZE) { in sa11x0_dma_prep_slave_sg()
578 unsigned mult = DIV_ROUND_UP(tlen, in sa11x0_dma_prep_slave_sg()
581 tlen = (tlen / mult) & ~DMA_ALIGN; in sa11x0_dma_prep_slave_sg()
585 txd->sg[j].len = tlen; in sa11x0_dma_prep_slave_sg()
587 addr += tlen; in sa11x0_dma_prep_slave_sg()
588 len -= tlen; in sa11x0_dma_prep_slave_sg()
632 size_t tlen, len = period; in sa11x0_dma_prep_dma_cyclic() local
635 tlen = len; in sa11x0_dma_prep_dma_cyclic()
637 if (tlen > DMA_MAX_SIZE) { in sa11x0_dma_prep_dma_cyclic()
[all …]
H A Duniphier-xdmac.c287 size_t burst_size, tlen; in uniphier_xdmac_prep_dma_memcpy() local
306 tlen = rounddown(len, burst_size); in uniphier_xdmac_prep_dma_memcpy()
307 src += tlen; in uniphier_xdmac_prep_dma_memcpy()
308 dst += tlen; in uniphier_xdmac_prep_dma_memcpy()
309 len -= tlen; in uniphier_xdmac_prep_dma_memcpy()
/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/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/arch/sparc/kernel/
H A Dvio.c298 int err, tlen, clen; in vio_create_one() local
301 type = mdesc_get_property(hp, mp, "device-type", &tlen); in vio_create_one()
303 type = mdesc_get_property(hp, mp, "name", &tlen); in vio_create_one()
306 tlen = strlen(type) + 1; in vio_create_one()
309 if (tlen > VIO_MAX_TYPE_LEN || strlen(type) >= VIO_MAX_TYPE_LEN) { in vio_create_one()
335 memcpy(vdev->type, type, tlen); in vio_create_one()
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/nvme/target/
H A Dfcloop.c803 u32 data_len, io_len, tlen; in fcloop_fcp_copy_data() local
809 tlen = min_t(u32, offset, io_len); in fcloop_fcp_copy_data()
810 offset -= tlen; in fcloop_fcp_copy_data()
811 io_len -= tlen; in fcloop_fcp_copy_data()
817 io_p += tlen; in fcloop_fcp_copy_data()
824 tlen = min_t(u32, io_len, data_len); in fcloop_fcp_copy_data()
825 tlen = min_t(u32, tlen, length); in fcloop_fcp_copy_data()
828 memcpy(data_p, io_p, tlen); in fcloop_fcp_copy_data()
830 memcpy(io_p, data_p, tlen); in fcloop_fcp_copy_data()
832 length -= tlen; in fcloop_fcp_copy_data()
[all …]
/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()
H A 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()
/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/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.h1153 unsigned int flen = 0, vlen = 0, tlen = 0; in test_enabled() local
1176 if (!tlen) { in test_enabled()
1179 tlen = strlen(t->name); in test_enabled()
1181 if (strlen(optarg) == flen + 1 + vlen + !!vlen + tlen && in test_enabled()
1184 !strncmp(t->name, &optarg[flen + 1 + vlen + !!vlen], tlen)) in test_enabled()

123