Home
last modified time | relevance | path

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

/linux-4.4.14/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-4.4.14/drivers/spi/
Dspi-sc18is602.c51 int tlen; /* Data queued for tx in buffer */ member
76 if (hw->tlen == 0) { in sc18is602_txrx()
79 hw->tlen = 1; in sc18is602_txrx()
88 memcpy(&hw->buffer[hw->tlen], t->tx_buf, len); in sc18is602_txrx()
89 hw->tlen += len; in sc18is602_txrx()
93 hw->rindex = hw->tlen - 1; in sc18is602_txrx()
101 hw->rindex = hw->tlen - 1; in sc18is602_txrx()
102 memset(&hw->buffer[hw->tlen], 0, len); in sc18is602_txrx()
103 hw->tlen += len; in sc18is602_txrx()
107 if (do_transfer && hw->tlen > 1) { in sc18is602_txrx()
[all …]
/linux-4.4.14/drivers/infiniband/hw/qib/
Dqib_uc.c243 int has_grh, void *data, u32 tlen, struct qib_qp *qp) in qib_uc_rcv() argument
371 if (unlikely(tlen != (hdrsize + pmtu + 4))) in qib_uc_rcv()
394 if (unlikely(tlen < (hdrsize + pad + 4))) in qib_uc_rcv()
397 tlen -= (hdrsize + pad + 4); in qib_uc_rcv()
398 wc.byte_len = tlen + qp->r_rcv_len; in qib_uc_rcv()
402 qib_copy_sge(&qp->r_sge, data, tlen, 0); in qib_uc_rcv()
462 if (unlikely(tlen != (hdrsize + pmtu + 4))) in qib_uc_rcv()
480 if (unlikely(tlen < (hdrsize + pad + 4))) in qib_uc_rcv()
483 tlen -= (hdrsize + pad + 4); in qib_uc_rcv()
484 if (unlikely(tlen + qp->r_rcv_len != qp->r_len)) in qib_uc_rcv()
[all …]
Dqib_driver.c310 u32 tlen = qib_hdrget_length_in_bytes(rhf_addr); in qib_rcv_hdrerr() local
319 if (tlen < 24) in qib_rcv_hdrerr()
456 u32 eflags, etype, tlen, i = 0, updegr = 0, crcs = 0; in qib_kreceive() local
481 tlen = qib_hdrget_length_in_bytes(rhf_addr); in qib_kreceive()
488 if (tlen > sizeof(*hdr) || in qib_kreceive()
491 prefetch_range(ebuf, tlen - sizeof(*hdr)); in qib_kreceive()
497 if (lrh_len != tlen) { in qib_kreceive()
504 tlen > (dd->rcvhdrentsize - 2 + 1 - in qib_kreceive()
517 qib_ib_rcv(rcd, hdr, ebuf, tlen); in qib_kreceive()
Dqib_ud.c429 int has_grh, void *data, u32 tlen, struct qib_qp *qp) in qib_ud_rcv() argument
456 if (unlikely(tlen < (hdrsize + pad + 4))) in qib_ud_rcv()
459 tlen -= hdrsize + pad + 4; in qib_ud_rcv()
493 (tlen != 256 || in qib_ud_rcv()
500 if (tlen != 256 || (be16_to_cpu(hdr->lrh[0]) >> 12) != 15) in qib_ud_rcv()
518 tlen -= sizeof(u32); in qib_ud_rcv()
529 wc.byte_len = tlen + sizeof(struct ib_grh); in qib_ud_rcv()
Dqib_rc.c1401 void *data, u32 tlen, in qib_rc_rcv_resp() argument
1509 if (unlikely(tlen != (hdrsize + pmtu + 4))) in qib_rc_rcv_resp()
1549 if (unlikely(tlen < (hdrsize + pad + 8))) in qib_rc_rcv_resp()
1574 if (unlikely(tlen <= (hdrsize + pad + 8))) in qib_rc_rcv_resp()
1577 tlen -= hdrsize + pad + 8; in qib_rc_rcv_resp()
1578 if (unlikely(tlen != qp->s_rdma_read_len)) in qib_rc_rcv_resp()
1581 qib_copy_sge(&qp->s_rdma_read_sge, data, tlen, 0); in qib_rc_rcv_resp()
1865 int has_grh, void *data, u32 tlen, struct qib_qp *qp) in qib_rc_rcv() argument
1904 qib_rc_rcv_resp(ibp, ohdr, data, tlen, qp, opcode, psn, in qib_rc_rcv()
1977 if (unlikely(tlen != (hdrsize + pmtu + 4))) in qib_rc_rcv()
[all …]
Dqib_verbs.c577 int has_grh, void *data, u32 tlen, struct qib_qp *qp) in qib_qp_rcv() argument
596 qib_ud_rcv(ibp, hdr, has_grh, data, tlen, qp); in qib_qp_rcv()
600 qib_rc_rcv(rcd, hdr, has_grh, data, tlen, qp); in qib_qp_rcv()
604 qib_uc_rcv(ibp, hdr, has_grh, data, tlen, qp); in qib_qp_rcv()
625 void qib_ib_rcv(struct qib_ctxtdata *rcd, void *rhdr, void *data, u32 tlen) in qib_ib_rcv() argument
638 if (unlikely(tlen < 24)) in qib_ib_rcv()
667 rcd->opstats->stats[opcode].n_bytes += tlen; in qib_ib_rcv()
684 qib_qp_rcv(rcd, hdr, 1, data, tlen, p->qp); in qib_ib_rcv()
710 qib_qp_rcv(rcd, hdr, lnh == QIB_LRH_GRH, data, tlen, qp); in qib_ib_rcv()
Dqib_user_sdma.c665 unsigned long addr, int tlen, int npages) in qib_user_sdma_pin_pages() argument
688 int flen = ((fofs + tlen) > PAGE_SIZE) ? in qib_user_sdma_pin_pages()
689 (PAGE_SIZE - fofs) : tlen; in qib_user_sdma_pin_pages()
702 tlen -= flen; in qib_user_sdma_pin_pages()
Dqib_verbs.h969 int has_grh, void *data, u32 tlen, struct qib_qp *qp);
972 int has_grh, void *data, u32 tlen, struct qib_qp *qp);
987 int has_grh, void *data, u32 tlen, struct qib_qp *qp);
/linux-4.4.14/drivers/staging/rdma/hfi1/
Duc.c268 u32 tlen = packet->tlen; in hfi1_uc_rcv() local
412 if (unlikely(tlen != (hdrsize + pmtu + 4))) in hfi1_uc_rcv()
434 if (unlikely(tlen < (hdrsize + pad + 4))) in hfi1_uc_rcv()
437 tlen -= (hdrsize + pad + 4); in hfi1_uc_rcv()
438 wc.byte_len = tlen + qp->r_rcv_len; in hfi1_uc_rcv()
442 hfi1_copy_sge(&qp->r_sge, data, tlen, 0); in hfi1_uc_rcv()
512 if (unlikely(tlen != (hdrsize + pmtu + 4))) in hfi1_uc_rcv()
529 if (unlikely(tlen < (hdrsize + pad + 4))) in hfi1_uc_rcv()
532 tlen -= (hdrsize + pad + 4); in hfi1_uc_rcv()
533 if (unlikely(tlen + qp->r_rcv_len != qp->r_len)) in hfi1_uc_rcv()
[all …]
Dsdma.h366 u16 tlen; member
624 u16 tlen, in sdma_txinit_ahg() argument
631 if (tlen == 0) in sdma_txinit_ahg()
633 if (tlen > MAX_SDMA_PKT_SIZE) in sdma_txinit_ahg()
643 tx->tlen = tx->packet_len = tlen; in sdma_txinit_ahg()
691 u16 tlen, in sdma_txinit() argument
694 return sdma_txinit_ahg(tx, flags, tlen, 0, 0, NULL, 0, cb); in sdma_txinit()
773 WARN_ON(len > tx->tlen); in _sdma_txadd_daddr()
774 tx->tlen -= len; in _sdma_txadd_daddr()
776 if (!tx->tlen) { in _sdma_txadd_daddr()
Dud.c656 u32 tlen = packet->tlen; in hfi1_ud_rcv() local
710 if (unlikely(tlen < (hdrsize + pad + 4))) in hfi1_ud_rcv()
713 tlen -= hdrsize + pad + 4; in hfi1_ud_rcv()
763 (tlen > 2048 || in hfi1_ud_rcv()
778 if (tlen > 2048) in hfi1_ud_rcv()
796 tlen -= sizeof(u32); in hfi1_ud_rcv()
807 wc.byte_len = tlen + sizeof(struct ib_grh); in hfi1_ud_rcv()
Ddiag.c1509 u32 tlen = packet->tlen; in snoop_recv_handler() local
1516 snoop_dbg("PACKET IN: hdr size %d tlen %d data %p", header_size, tlen, in snoop_recv_handler()
1519 trace_snoop_capture(ppd->dd, header_size, hdr, tlen - header_size, in snoop_recv_handler()
1547 tlen - header_size, in snoop_recv_handler()
1581 tlen - header_size); in snoop_recv_handler()
1583 s_packet->total_len = tlen + md_len; in snoop_recv_handler()
1654 u32 tlen = HFI1_GET_PKT_LEN(&ahdr->ibh); in snoop_send_pio_handler() local
1659 hdrwords, len, plen, dwords, tlen); in snoop_send_pio_handler()
1667 s_packet = allocate_snoop_packet(hdr_len, tlen - hdr_len, md_len); in snoop_send_pio_handler()
1674 s_packet->total_len = tlen + md_len; in snoop_send_pio_handler()
Drc.c1432 void *data, u32 tlen, struct hfi1_qp *qp, in rc_rcv_resp() argument
1513 if (unlikely(tlen != (hdrsize + pmtu + 4))) in rc_rcv_resp()
1552 if (unlikely(tlen < (hdrsize + pad + 4))) in rc_rcv_resp()
1576 if (unlikely(tlen <= (hdrsize + pad + 4))) in rc_rcv_resp()
1579 tlen -= hdrsize + pad + 4; in rc_rcv_resp()
1580 if (unlikely(tlen != qp->s_rdma_read_len)) in rc_rcv_resp()
1583 hfi1_copy_sge(&qp->s_rdma_read_sge, data, tlen, 0); in rc_rcv_resp()
1942 u32 tlen = packet->tlen; in hfi1_rc_rcv() local
1991 rc_rcv_resp(ibp, ohdr, data, tlen, qp, opcode, psn, in hfi1_rc_rcv()
2057 if (unlikely(tlen != (hdrsize + pmtu + 4))) in hfi1_rc_rcv()
[all …]
Ddriver.c276 u32 tlen = rhf_pkt_len(packet->rhf); /* in bytes */ in rcv_hdrerr() local
282 if (tlen < 24) in rcv_hdrerr()
630 packet->tlen = rhf_pkt_len(packet->rhf); /* in bytes */ in process_rcv_packet()
643 packet->tlen - ((packet->rcd->rcvhdrqentsize - in process_rcv_packet()
1193 packet->tlen, in process_receive_ib()
Dtrace.h84 u32 tlen,
87 TP_ARGS(dd, ctxt, eflags, etype, hlen, tlen, updegr, etail),
94 __field(u32, tlen)
104 __entry->tlen = tlen;
115 __entry->tlen,
Dsdma.c2075 if (unlikely(tx->tlen)) in sdma_send_txreq()
2160 if (unlikely(tx->tlen)) { in sdma_send_txlist()
2730 if (!tx->tlen) { in _extend_sdma_tx_descs()
2734 tx->coalesce_buf = kmalloc(tx->tlen + sizeof(u32), in _extend_sdma_tx_descs()
2812 if (tx->tlen - tx->coalesce_idx) in ext_coal_sdma_tx_descs()
2822 tx->tlen += pad_len; in ext_coal_sdma_tx_descs()
2828 tx->tlen, in ext_coal_sdma_tx_descs()
2839 addr, tx->tlen); in ext_coal_sdma_tx_descs()
Dverbs.h669 u32 tlen, in inc_opstats() argument
673 stats->n_bytes += tlen; in inc_opstats()
Dverbs.c612 u32 tlen = packet->tlen; in hfi1_ib_rcv() local
641 inc_opstats(tlen, &rcd->opstats->stats[opcode]); in hfi1_ib_rcv()
Dhfi.h338 u16 tlen; member
/linux-4.4.14/drivers/staging/rdma/ipath/
Dipath_uc.c241 int has_grh, void *data, u32 tlen, struct ipath_qp *qp) in ipath_uc_rcv() argument
365 if (unlikely(tlen != (hdrsize + pmtu + 4))) { in ipath_uc_rcv()
397 if (unlikely(tlen < (hdrsize + pad + 4))) { in ipath_uc_rcv()
403 tlen -= (hdrsize + pad + 4); in ipath_uc_rcv()
404 wc.byte_len = tlen + qp->r_rcv_len; in ipath_uc_rcv()
412 ipath_copy_sge(&qp->r_sge, data, tlen); in ipath_uc_rcv()
471 if (unlikely(tlen != (hdrsize + pmtu + 4))) { in ipath_uc_rcv()
499 if (unlikely(tlen < (hdrsize + pad + 4))) { in ipath_uc_rcv()
504 tlen -= (hdrsize + pad + 4); in ipath_uc_rcv()
505 if (unlikely(tlen + qp->r_rcv_len != qp->r_len)) { in ipath_uc_rcv()
[all …]
Dipath_ud.c409 int has_grh, void *data, u32 tlen, struct ipath_qp *qp) in ipath_ud_rcv() argument
498 if (unlikely(tlen < (hdrsize + pad + 4))) { in ipath_ud_rcv()
503 tlen -= hdrsize + pad + 4; in ipath_ud_rcv()
507 (tlen != 256 || in ipath_ud_rcv()
510 (tlen != 256 || in ipath_ud_rcv()
520 wc.byte_len = tlen + sizeof(struct ib_grh); in ipath_ud_rcv()
Dipath_rc.c1119 void *data, u32 tlen, in ipath_rc_rcv_resp() argument
1215 if (unlikely(tlen != (hdrsize + pmtu + 4))) in ipath_rc_rcv_resp()
1254 if (unlikely(tlen < (hdrsize + pad + 8))) in ipath_rc_rcv_resp()
1285 if (unlikely(tlen <= (hdrsize + pad + 8))) in ipath_rc_rcv_resp()
1288 tlen -= hdrsize + pad + 8; in ipath_rc_rcv_resp()
1289 if (unlikely(tlen != qp->s_rdma_read_len)) in ipath_rc_rcv_resp()
1297 ipath_copy_sge(&qp->s_rdma_read_sge, data, tlen); in ipath_rc_rcv_resp()
1571 int has_grh, void *data, u32 tlen, struct ipath_qp *qp) in ipath_rc_rcv() argument
1620 ipath_rc_rcv_resp(dev, ohdr, data, tlen, qp, opcode, psn, in ipath_rc_rcv()
1681 if (unlikely(tlen != (hdrsize + pmtu + 4))) in ipath_rc_rcv()
[all …]
Dipath_user_sdma.c276 unsigned long addr, int tlen, int npages) in ipath_user_sdma_pin_pages() argument
296 ipath_user_sdma_page_length(addr, tlen); in ipath_user_sdma_pin_pages()
313 tlen -= flen; in ipath_user_sdma_pin_pages()
Dipath_verbs.h774 int has_grh, void *data, u32 tlen, struct ipath_qp *qp);
777 int has_grh, void *data, u32 tlen, struct ipath_qp *qp);
786 int has_grh, void *data, u32 tlen, struct ipath_qp *qp);
Dipath_driver.c1161 u32 eflags, i, etype, tlen, pkttot = 0, updegr = 0, reloop = 0; in ipath_kreceive() local
1186 tlen = ipath_hdrget_length_in_bytes(rhf_addr); in ipath_kreceive()
1200 if (tlen > sizeof(*hdr) || in ipath_kreceive()
1220 ipath_ib_rcv(dd->verbs_dev, (u32 *)hdr, ebuf, tlen); in ipath_kreceive()
1228 etype, opcode, qp, tlen); in ipath_kreceive()
1242 etail, tlen, l, (unsigned long long) in ipath_kreceive()
1246 if (rsize > (tlen>>2)) in ipath_kreceive()
1247 dw = tlen>>2; in ipath_kreceive()
Dipath_verbs.c555 void *data, u32 tlen, struct ipath_qp *qp) in ipath_qp_rcv() argument
570 ipath_ud_rcv(dev, hdr, has_grh, data, tlen, qp); in ipath_qp_rcv()
574 ipath_rc_rcv(dev, hdr, has_grh, data, tlen, qp); in ipath_qp_rcv()
578 ipath_uc_rcv(dev, hdr, has_grh, data, tlen, qp); in ipath_qp_rcv()
597 u32 tlen) in ipath_ib_rcv() argument
610 if (unlikely(tlen < 24)) { /* LRH+BTH+CRC */ in ipath_ib_rcv()
637 dev->opstats[opcode].n_bytes += tlen; in ipath_ib_rcv()
657 ipath_qp_rcv(dev, hdr, 1, data, tlen, p->qp); in ipath_ib_rcv()
669 tlen, qp); in ipath_ib_rcv()
/linux-4.4.14/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 memcpy(skb_put(ar->rx_failover, tlen), 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 memcpy(skb_put(ar->rx_failover, tlen), tbuf, tlen); in carl9170_rx_stream()
962 ar->rx_failover_missing = clen - tlen; in carl9170_rx_stream()
[all …]
/linux-4.4.14/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-4.4.14/drivers/scsi/libfc/
Dfc_disc.c398 size_t tlen; in fc_disc_gpn_ft_parse() local
412 tlen = disc->buf_len; in fc_disc_gpn_ft_parse()
414 if (tlen) { in fc_disc_gpn_ft_parse()
415 WARN_ON(tlen >= sizeof(*np)); in fc_disc_gpn_ft_parse()
416 plen = sizeof(*np) - tlen; in fc_disc_gpn_ft_parse()
422 memcpy((char *)np + tlen, bp, plen); in fc_disc_gpn_ft_parse()
428 bp -= tlen; in fc_disc_gpn_ft_parse()
429 len += tlen; in fc_disc_gpn_ft_parse()
430 plen += tlen; in fc_disc_gpn_ft_parse()
Dfc_fcp.c570 size_t tlen; in fc_fcp_send_data() local
611 tlen = 0; in fc_fcp_send_data()
625 tlen = min(t_blen, remaining); in fc_fcp_send_data()
632 if (tlen % 4) in fc_fcp_send_data()
634 fp = fc_frame_alloc(lport, using_sg ? 0 : tlen); in fc_fcp_send_data()
644 sg_bytes = min(tlen, sg->length - offset); in fc_fcp_send_data()
669 tlen -= sg_bytes; in fc_fcp_send_data()
673 (tlen)) in fc_fcp_send_data()
/linux-4.4.14/drivers/dma/
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-4.4.14/fs/nfsd/
Dxdr.h52 unsigned int tlen; member
64 unsigned int tlen; member
72 unsigned int tlen; member
Dxdr3.h70 unsigned int tlen; member
82 unsigned int tlen; member
90 unsigned int tlen; member
Dnfsproc.c412 SVCFH_fmt(&argp->tfh), argp->tlen, argp->tname); in nfsd_proc_rename()
415 &argp->tfh, argp->tname, argp->tlen); in nfsd_proc_rename()
431 argp->tlen, in nfsd_proc_link()
434 nfserr = nfsd_link(rqstp, &argp->tfh, argp->tname, argp->tlen, in nfsd_proc_link()
450 argp->tlen, argp->tname); in nfsd_proc_symlink()
458 argp->tname[argp->tlen] = '\0'; in nfsd_proc_symlink()
Dnfs3proc.c275 argp->tlen, argp->tname); in nfsd3_proc_symlink()
374 argp->tlen, in nfsd3_proc_rename()
380 &resp->tfh, argp->tname, argp->tlen); in nfsd3_proc_rename()
394 argp->tlen, in nfsd3_proc_link()
399 nfserr = nfsd_link(rqstp, &resp->tfh, argp->tname, argp->tlen, in nfsd3_proc_link()
Dnfsxdr.c351 || !(p = decode_filename(p, &args->tname, &args->tlen))) in nfssvc_decode_renameargs()
374 || !(p = decode_filename(p, &args->tname, &args->tlen))) in nfssvc_decode_linkargs()
386 || !(p = decode_pathname(p, &args->tname, &args->tlen))) in nfssvc_decode_symlinkargs()
Dnfsctl.c548 ssize_t tlen = 0; in __write_versions() local
616 tlen += len; in __write_versions()
631 tlen += len; in __write_versions()
637 return tlen + len; in __write_versions()
Dnfs3xdr.c470 args->tlen = len; in nfs3svc_decode_symlinkargs()
526 || !(p = decode_filename(p, &args->tname, &args->tlen))) in nfs3svc_decode_renameargs()
550 || !(p = decode_filename(p, &args->tname, &args->tlen))) in nfs3svc_decode_linkargs()
Dvfs.c1601 struct svc_fh *tfhp, char *tname, int tlen) in nfsd_rename() argument
1622 if (!flen || isdotent(fname, flen) || !tlen || isdotent(tname, tlen)) in nfsd_rename()
1650 ndentry = lookup_one_len(tname, tdentry, tlen); in nfsd_rename()
/linux-4.4.14/arch/sparc/kernel/
Dvio.c209 int err, tlen, clen; in vio_create_one() local
213 type = mdesc_get_property(hp, mp, "device-type", &tlen); in vio_create_one()
215 type = mdesc_get_property(hp, mp, "name", &tlen); in vio_create_one()
218 tlen = strlen(type) + 1; in vio_create_one()
221 if (tlen > VIO_MAX_TYPE_LEN) { in vio_create_one()
271 memcpy(vdev->type, type, tlen); in vio_create_one()
Dioport.c184 int tlen; in _sparc_alloc_io() local
197 tlen = strlen(name); in _sparc_alloc_io()
198 tack = kmalloc(sizeof (struct resource) + tlen + 1, GFP_KERNEL); in _sparc_alloc_io()
Dldc.c2020 unsigned long tlen, new = pa + PAGE_SIZE; in fill_cookies() local
2025 tlen = PAGE_SIZE; in fill_cookies()
2027 tlen = PAGE_SIZE - off; in fill_cookies()
2028 if (tlen > len) in fill_cookies()
2029 tlen = len; in fill_cookies()
2037 sp->cookies[sp->nc - 1].cookie_size += tlen; in fill_cookies()
2040 sp->cookies[sp->nc].cookie_size = tlen; in fill_cookies()
2043 sp->prev_cookie = this_cookie + tlen; in fill_cookies()
2047 len -= tlen; in fill_cookies()
/linux-4.4.14/net/sunrpc/xprtrdma/
Drpc_rdma.c102 size_t tlen = buf->tail[0].iov_len; in rpcrdma_tail_pullup() local
103 size_t skip = tlen & 3; in rpcrdma_tail_pullup()
106 if (tlen < 4) in rpcrdma_tail_pullup()
123 tlen -= skip; in rpcrdma_tail_pullup()
126 __func__, skip, dst, src, tlen); in rpcrdma_tail_pullup()
128 for (count = tlen; count; count--) in rpcrdma_tail_pullup()
132 return tlen; in rpcrdma_tail_pullup()
/linux-4.4.14/net/hsr/
Dhsr_device.c269 int hlen, tlen; in send_hsr_supervision_frame() local
275 tlen = master->dev->needed_tailroom; in send_hsr_supervision_frame()
276 skb = alloc_skb(hsr_pad(sizeof(struct hsr_sup_payload)) + hlen + tlen, in send_hsr_supervision_frame()
/linux-4.4.14/drivers/scsi/fcoe/
Dfcoe_transport.c455 int fcoe_get_paged_crc_eof(struct sk_buff *skb, int tlen, in fcoe_get_paged_crc_eof() argument
472 fps->crc_eof_offset, tlen); in fcoe_get_paged_crc_eof()
473 skb->len += tlen; in fcoe_get_paged_crc_eof()
474 skb->data_len += tlen; in fcoe_get_paged_crc_eof()
475 skb->truesize += tlen; in fcoe_get_paged_crc_eof()
Dfcoe.c1566 static int fcoe_alloc_paged_crc_eof(struct sk_buff *skb, int tlen) in fcoe_alloc_paged_crc_eof() argument
1572 rc = fcoe_get_paged_crc_eof(skb, tlen, fps); in fcoe_alloc_paged_crc_eof()
1595 unsigned int tlen; /* trailer length */ in fcoe_xmit() local
1623 tlen = sizeof(struct fcoe_crc_eof); in fcoe_xmit()
1624 wlen = (skb->len - tlen + sizeof(crc)) / FCOE_WORD_TO_BYTE; in fcoe_xmit()
1640 if (fcoe_alloc_paged_crc_eof(skb, tlen)) { in fcoe_xmit()
1648 cp = (struct fcoe_crc_eof *)skb_put(skb, tlen); in fcoe_xmit()
/linux-4.4.14/net/ieee802154/
Dsocket.c255 int hlen, tlen; in raw_sendmsg() local
286 tlen = dev->needed_tailroom; in raw_sendmsg()
287 skb = sock_alloc_send_skb(sk, hlen + tlen + size, in raw_sendmsg()
617 int hlen, tlen; in dgram_sendmsg() local
650 tlen = dev->needed_tailroom; in dgram_sendmsg()
651 skb = sock_alloc_send_skb(sk, hlen + tlen + size, in dgram_sendmsg()
/linux-4.4.14/drivers/net/ethernet/brocade/bna/
Dbfa_ioc.c2247 int tlen, status = 0; in bfa_nw_ioc_debug_fwtrc() local
2249 tlen = *trclen; in bfa_nw_ioc_debug_fwtrc()
2250 if (tlen > BNA_DBG_FWTRC_LEN) in bfa_nw_ioc_debug_fwtrc()
2251 tlen = BNA_DBG_FWTRC_LEN; in bfa_nw_ioc_debug_fwtrc()
2253 status = bfa_nw_ioc_smem_read(ioc, trcdata, loff, tlen); in bfa_nw_ioc_debug_fwtrc()
2254 *trclen = tlen; in bfa_nw_ioc_debug_fwtrc()
2262 int tlen; in bfa_nw_ioc_debug_save_ftrc() local
2267 tlen = ioc->dbg_fwsave_len; in bfa_nw_ioc_debug_save_ftrc()
2268 bfa_nw_ioc_debug_fwtrc(ioc, ioc->dbg_fwsave, &tlen); in bfa_nw_ioc_debug_save_ftrc()
2277 int tlen; in bfa_nw_ioc_debug_fwsave() local
[all …]
/linux-4.4.14/drivers/net/wireless/mwifiex/
Dusb.c999 u32 fw_seqnum = 0, tlen = 0, dnld_cmd = 0; in mwifiex_prog_fw_w_helper() local
1030 memcpy(&fwdata->fw_hdr, &firmware[tlen], in mwifiex_prog_fw_w_helper()
1035 tlen += sizeof(struct fw_header); in mwifiex_prog_fw_w_helper()
1037 memcpy(fwdata->data, &firmware[tlen], dlen); in mwifiex_prog_fw_w_helper()
1040 tlen += dlen; in mwifiex_prog_fw_w_helper()
1112 "info: FW download over, size %d bytes\n", tlen); in mwifiex_prog_fw_w_helper()
/linux-4.4.14/scripts/kconfig/lxdialog/
Dutil.c368 int tlen = MIN(width - 2, strlen(title)); in print_title() local
370 mvwaddch(dialog, 0, (width - tlen) / 2 - 1, ' '); in print_title()
371 mvwaddnstr(dialog, 0, (width - tlen)/2, title, tlen); in print_title()
/linux-4.4.14/drivers/soc/qcom/
Dsmd.c719 int tlen = sizeof(hdr) + len; in qcom_smd_send() local
727 if (tlen >= channel->fifo_size) in qcom_smd_send()
734 while (qcom_smd_get_tx_avail(channel) < tlen) { in qcom_smd_send()
743 qcom_smd_get_tx_avail(channel) >= tlen || in qcom_smd_send()
/linux-4.4.14/drivers/scsi/bfa/
Dbfa_ioc.c2959 int tlen; in bfa_ioc_debug_fwsave() local
2964 tlen = *trclen; in bfa_ioc_debug_fwsave()
2965 if (tlen > ioc->dbg_fwsave_len) in bfa_ioc_debug_fwsave()
2966 tlen = ioc->dbg_fwsave_len; in bfa_ioc_debug_fwsave()
2968 memcpy(trcdata, ioc->dbg_fwsave, tlen); in bfa_ioc_debug_fwsave()
2969 *trclen = tlen; in bfa_ioc_debug_fwsave()
2981 int tlen; in bfa_ioc_debug_fwtrc() local
2986 tlen = *trclen; in bfa_ioc_debug_fwtrc()
2987 if (tlen > BFA_DBG_FWTRC_LEN) in bfa_ioc_debug_fwtrc()
2988 tlen = BFA_DBG_FWTRC_LEN; in bfa_ioc_debug_fwtrc()
[all …]
/linux-4.4.14/drivers/net/ethernet/amd/
Dsun3lance.c134 unsigned short tlen; member
399 MEM->init.tlen = (TX_LOG_RING_SIZE << 13) | in lance_probe()
497 MEM->init.tlen = (TX_LOG_RING_SIZE << 13) | in lance_init_ring()
/linux-4.4.14/drivers/macintosh/
Dsmu.c947 unsigned int addr, len, tlen; in smu_create_sdb_partition() local
970 tlen = sizeof(struct property) + len + 18; in smu_create_sdb_partition()
972 prop = kzalloc(tlen, GFP_KERNEL); in smu_create_sdb_partition()
976 prop->name = ((char *)prop) + tlen - 18; in smu_create_sdb_partition()
/linux-4.4.14/include/scsi/
Dlibfcoe.h379 int fcoe_get_paged_crc_eof(struct sk_buff *skb, int tlen,
/linux-4.4.14/drivers/scsi/bnx2fc/
Dbnx2fc_fcoe.c148 int bnx2fc_get_paged_crc_eof(struct sk_buff *skb, int tlen) in bnx2fc_get_paged_crc_eof() argument
152 rc = fcoe_get_paged_crc_eof(skb, tlen, &bnx2fc_global); in bnx2fc_get_paged_crc_eof()
258 unsigned int hlen, tlen, elen; in bnx2fc_xmit() local
316 tlen = sizeof(struct fcoe_crc_eof); in bnx2fc_xmit()
317 wlen = (skb->len - tlen + sizeof(crc)) / FCOE_WORD_TO_BYTE; in bnx2fc_xmit()
325 if (bnx2fc_get_paged_crc_eof(skb, tlen)) { in bnx2fc_xmit()
332 cp = (struct fcoe_crc_eof *)skb_put(skb, tlen); in bnx2fc_xmit()
Dbnx2fc.h515 int bnx2fc_get_paged_crc_eof(struct sk_buff *skb, int tlen);
/linux-4.4.14/net/ipv4/
Draw.c350 int hlen, tlen; in raw_send_hdrinc() local
361 tlen = rt->dst.dev->needed_tailroom; in raw_send_hdrinc()
363 length + hlen + tlen + 15, in raw_send_hdrinc()
Digmp.c334 int tlen = dev->needed_tailroom; in igmpv3_newpack() local
338 skb = alloc_skb(size + hlen + tlen, in igmpv3_newpack()
360 skb_tailroom_reserve(skb, mtu, tlen); in igmpv3_newpack()
684 int hlen, tlen; in igmp_send_report() local
704 tlen = dev->needed_tailroom; in igmp_send_report()
705 skb = alloc_skb(IGMP_SIZE + hlen + tlen, GFP_ATOMIC); in igmp_send_report()
Darp.c530 int tlen = dev->needed_tailroom; in arp_create() local
536 skb = alloc_skb(arp_hdr_len(dev) + hlen + tlen, GFP_ATOMIC); in arp_create()
Dipconfig.c814 int tlen = dev->needed_tailroom; in ic_bootp_send_if() local
817 skb = alloc_skb(sizeof(struct bootp_pkt) + hlen + tlen + 15, in ic_bootp_send_if()
/linux-4.4.14/net/packet/
Daf_packet.c1892 int tlen = dev->needed_tailroom; in packet_sendmsg_spkt() local
1896 skb = sock_wmalloc(sk, len + reserved + tlen, 0, GFP_KERNEL); in packet_sendmsg_spkt()
2477 int hlen, tlen; in tpacket_snd() local
2524 tlen = dev->needed_tailroom; in tpacket_snd()
2526 hlen + tlen + sizeof(struct sockaddr_ll), in tpacket_snd()
2641 int hlen, tlen; in packet_snd() local
2744 tlen = dev->needed_tailroom; in packet_snd()
2745 skb = packet_alloc_skb(sk, hlen + tlen, hlen, len, in packet_snd()
/linux-4.4.14/fs/xfs/
Dxfs_trace.h1442 xfs_agblock_t tbno, xfs_extlen_t tlen),
1443 TP_ARGS(mp, agno, agbno, len, tbno, tlen),
1450 __field(xfs_extlen_t, tlen)
1458 __entry->tlen = tlen;
1466 __entry->tlen)
/linux-4.4.14/net/ipv6/
Dmcast.c1561 int tlen = dev->needed_tailroom; in mld_newpack() local
1562 unsigned int size = mtu + hlen + tlen; in mld_newpack()
1578 skb_tailroom_reserve(skb, mtu, tlen); in mld_newpack()
1940 int tlen = dev->needed_tailroom; in igmp6_send() local
1962 skb = sock_alloc_send_skb(sk, hlen + tlen + full_len, 1, &err); in igmp6_send()
Draw.c623 int tlen = rt->dst.dev->needed_tailroom; in rawv6_send_hdrinc() local
633 length + hlen + tlen + 15, in rawv6_send_hdrinc()
Dndisc.c384 int tlen = dev->needed_tailroom; in ndisc_alloc_skb() local
388 skb = alloc_skb(hlen + sizeof(struct ipv6hdr) + len + tlen, GFP_ATOMIC); in ndisc_alloc_skb()
/linux-4.4.14/fs/xfs/libxfs/
Dxfs_alloc.c678 xfs_extlen_t tlen; /* length of trimmed extent */ in xfs_alloc_ag_vextent_exact() local
713 xfs_extent_busy_trim(args, fbno, flen, &tbno, &tlen); in xfs_alloc_ag_vextent_exact()
721 if (tlen < args->minlen) in xfs_alloc_ag_vextent_exact()
723 tend = tbno + tlen; in xfs_alloc_ag_vextent_exact()
/linux-4.4.14/fs/
Ddcache.c2105 int tlen = dentry->d_name.len; in slow_dentry_cmp() local
2112 if (parent->d_op->d_compare(parent, dentry, tlen, tname, name)) in slow_dentry_cmp()
2312 int tlen = dentry->d_name.len; in __d_lookup() local
2314 if (parent->d_op->d_compare(parent, dentry, tlen, tname, name)) in __d_lookup()
/linux-4.4.14/security/selinux/ss/
Dservices.c759 u32 olen, nlen, tlen; in security_validtrans_handle_fail() local
765 if (context_struct_to_string(tcontext, &t, &tlen)) in security_validtrans_handle_fail()
1520 u32 slen, tlen, nlen; in compute_sid_handle_invalid_context() local
1524 if (context_struct_to_string(tcontext, &t, &tlen)) in compute_sid_handle_invalid_context()
/linux-4.4.14/net/core/
Dskbuff.c1903 struct pipe_inode_info *pipe, unsigned int tlen, in skb_splice_bits() argument
1926 if (__skb_splice_bits(skb, pipe, &offset, &tlen, &spd, sk)) in skb_splice_bits()
1928 else if (!tlen) in skb_splice_bits()
1935 if (!tlen) in skb_splice_bits()
1937 if (__skb_splice_bits(frag_iter, pipe, &offset, &tlen, &spd, sk)) in skb_splice_bits()
/linux-4.4.14/drivers/block/mtip32xx/
Dmtip32xx.c1614 u64 tlba, tlen, sect_left; in mtip_send_trim() local
1641 tlen = (sect_left >= MTIP_MAX_TRIM_ENTRY_LEN ? in mtip_send_trim()
1645 buf[i].range = __force_bit2int cpu_to_le16(tlen); in mtip_send_trim()
1646 tlba += tlen; in mtip_send_trim()
1647 sect_left -= tlen; in mtip_send_trim()
/linux-4.4.14/drivers/net/ethernet/dec/tulip/
Dde4x5.c3624 short tlen = (lp->rxRingSize - lp->rx_old) * RX_BUFF_SZ; in de4x5_alloc_rx_buff() local
3625 memcpy(skb_put(p,tlen),lp->rx_bufs + lp->rx_old * RX_BUFF_SZ,tlen); in de4x5_alloc_rx_buff()
3626 memcpy(skb_put(p,len-tlen),lp->rx_bufs,len-tlen); in de4x5_alloc_rx_buff()
/linux-4.4.14/drivers/net/ethernet/sun/
Dniu.c6639 int prod, i, tlen; in niu_start_xmit() local
6694 tlen = len; in niu_start_xmit()
6696 while (tlen > 0) { in niu_start_xmit()
6697 tlen -= MAX_TX_DESC_LEN; in niu_start_xmit()