/drivers/infiniband/hw/ipath/ |
H A D | ipath_uc.c | 233 * @tlen: the length of the packet 241 int has_grh, void *data, u32 tlen, struct ipath_qp *qp) 365 if (unlikely(tlen != (hdrsize + pmtu + 4))) { 397 if (unlikely(tlen < (hdrsize + pad + 4))) { 403 tlen -= (hdrsize + pad + 4); 404 wc.byte_len = tlen + qp->r_rcv_len; 412 ipath_copy_sge(&qp->r_sge, data, tlen); 471 if (unlikely(tlen != (hdrsize + pmtu + 4))) { 499 if (unlikely(tlen < (hdrsize + pad + 4))) { 504 tlen 240 ipath_uc_rcv(struct ipath_ibdev *dev, struct ipath_ib_header *hdr, int has_grh, void *data, u32 tlen, struct ipath_qp *qp) argument [all...] |
H A D | ipath_ud.c | 402 * @tlen: the packet length 410 int has_grh, void *data, u32 tlen, struct ipath_qp *qp) 499 if (unlikely(tlen < (hdrsize + pad + 4))) { 504 tlen -= hdrsize + pad + 4; 508 (tlen != 256 || 511 (tlen != 256 || 521 wc.byte_len = tlen + sizeof(struct ib_grh); 409 ipath_ud_rcv(struct ipath_ibdev *dev, struct ipath_ib_header *hdr, int has_grh, void *data, u32 tlen, struct ipath_qp *qp) argument
|
H A D | ipath_rc.c | 1105 * @tlen: the packet length 1119 void *data, u32 tlen, 1215 if (unlikely(tlen != (hdrsize + pmtu + 4))) 1254 if (unlikely(tlen < (hdrsize + pad + 8))) 1285 if (unlikely(tlen <= (hdrsize + pad + 8))) 1288 tlen -= hdrsize + pad + 8; 1289 if (unlikely(tlen != qp->s_rdma_read_len)) 1297 ipath_copy_sge(&qp->s_rdma_read_sge, data, tlen); 1563 * @tlen: the packet length 1571 int has_grh, void *data, u32 tlen, struc 1117 ipath_rc_rcv_resp(struct ipath_ibdev *dev, struct ipath_other_headers *ohdr, void *data, u32 tlen, struct ipath_qp *qp, u32 opcode, u32 psn, u32 hdrsize, u32 pmtu, int header_in_data) argument 1570 ipath_rc_rcv(struct ipath_ibdev *dev, struct ipath_ib_header *hdr, int has_grh, void *data, u32 tlen, struct ipath_qp *qp) argument [all...] |
H A D | ipath_user_sdma.c | 277 unsigned long addr, int tlen, int npages) 299 ipath_user_sdma_page_length(addr, tlen); 316 tlen -= flen; 275 ipath_user_sdma_pin_pages(const struct ipath_devdata *dd, struct ipath_user_sdma_pkt *pkt, unsigned long addr, int tlen, int npages) argument
|
H A D | ipath_driver.c | 1124 "tlen=%x opcode=%x egridx=%x: %s\n", 1159 u32 eflags, i, etype, tlen, pkttot = 0, updegr = 0, reloop = 0; local 1184 tlen = ipath_hdrget_length_in_bytes(rhf_addr); 1198 if (tlen > sizeof(*hdr) || 1218 ipath_ib_rcv(dd->verbs_dev, (u32 *)hdr, ebuf, tlen); 1226 etype, opcode, qp, tlen); 1241 etail, tlen, l, (unsigned long long) 1245 if (rsize > (tlen>>2)) 1246 dw = tlen>>2;
|
H A D | ipath_verbs.c | 533 * @tlen: the packet length 542 void *data, u32 tlen, struct ipath_qp *qp) 557 ipath_ud_rcv(dev, hdr, has_grh, data, tlen, qp); 561 ipath_rc_rcv(dev, hdr, has_grh, data, tlen, qp); 565 ipath_uc_rcv(dev, hdr, has_grh, data, tlen, qp); 578 * @tlen: the packet length 584 u32 tlen) 597 if (unlikely(tlen < 24)) { /* LRH+BTH+CRC */ 624 dev->opstats[opcode].n_bytes += tlen; 644 ipath_qp_rcv(dev, hdr, 1, data, tlen, 540 ipath_qp_rcv(struct ipath_ibdev *dev, struct ipath_ib_header *hdr, int has_grh, void *data, u32 tlen, struct ipath_qp *qp) argument 583 ipath_ib_rcv(struct ipath_ibdev *dev, void *rhdr, void *data, u32 tlen) argument [all...] |
/drivers/infiniband/hw/qib/ |
H A D | qib_uc.c | 235 * @tlen: the length of the packet 243 int has_grh, void *data, u32 tlen, struct qib_qp *qp) 375 if (unlikely(tlen != (hdrsize + pmtu + 4))) 398 if (unlikely(tlen < (hdrsize + pad + 4))) 401 tlen -= (hdrsize + pad + 4); 402 wc.byte_len = tlen + qp->r_rcv_len; 407 qib_copy_sge(&qp->r_sge, data, tlen, 0); 471 if (unlikely(tlen != (hdrsize + pmtu + 4))) 489 if (unlikely(tlen < (hdrsize + pad + 4))) 492 tlen 242 qib_uc_rcv(struct qib_ibport *ibp, struct qib_ib_header *hdr, int has_grh, void *data, u32 tlen, struct qib_qp *qp) argument [all...] |
H A D | qib_ud.c | 418 * @tlen: the packet length 426 int has_grh, void *data, u32 tlen, struct qib_qp *qp) 453 if (unlikely(tlen < (hdrsize + pad + 4))) 456 tlen -= hdrsize + pad + 4; 490 (tlen != 256 || 497 if (tlen != 256 || (be16_to_cpu(hdr->lrh[0]) >> 12) != 15) 515 tlen -= sizeof(u32); 526 wc.byte_len = tlen + sizeof(struct ib_grh); 425 qib_ud_rcv(struct qib_ibport *ibp, struct qib_ib_header *hdr, int has_grh, void *data, u32 tlen, struct qib_qp *qp) argument
|
H A D | qib_rc.c | 1386 * @tlen: the packet length 1399 void *data, u32 tlen, 1507 if (unlikely(tlen != (hdrsize + pmtu + 4))) 1547 if (unlikely(tlen < (hdrsize + pad + 8))) 1572 if (unlikely(tlen <= (hdrsize + pad + 8))) 1575 tlen -= hdrsize + pad + 8; 1576 if (unlikely(tlen != qp->s_rdma_read_len)) 1579 qib_copy_sge(&qp->s_rdma_read_sge, data, tlen, 0); 1855 * @tlen: the packet length 1863 int has_grh, void *data, u32 tlen, struc 1397 qib_rc_rcv_resp(struct qib_ibport *ibp, struct qib_other_headers *ohdr, void *data, u32 tlen, struct qib_qp *qp, u32 opcode, u32 psn, u32 hdrsize, u32 pmtu, struct qib_ctxtdata *rcd) argument 1862 qib_rc_rcv(struct qib_ctxtdata *rcd, struct qib_ib_header *hdr, int has_grh, void *data, u32 tlen, struct qib_qp *qp) argument [all...] |
H A D | qib_driver.c | 307 u32 tlen = qib_hdrget_length_in_bytes(rhf_addr); local 316 if (tlen < 24) 452 u32 eflags, etype, tlen, i = 0, updegr = 0, crcs = 0; local 476 tlen = qib_hdrget_length_in_bytes(rhf_addr); 483 if (tlen > sizeof(*hdr) || 490 if (lrh_len != tlen) { 497 tlen > (dd->rcvhdrentsize - 2 + 1 - 510 qib_ib_rcv(rcd, hdr, ebuf, tlen);
|
H A D | qib_user_sdma.c | 281 unsigned long addr, int tlen, int npages) 302 const int flen = qib_user_sdma_page_length(addr, tlen); 318 tlen -= flen; 279 qib_user_sdma_pin_pages(const struct qib_devdata *dd, struct qib_user_sdma_pkt *pkt, unsigned long addr, int tlen, int npages) argument
|
H A D | qib_verbs.c | 543 * @tlen: the packet length 551 int has_grh, void *data, u32 tlen, struct qib_qp *qp) 570 qib_ud_rcv(ibp, hdr, has_grh, data, tlen, qp); 574 qib_rc_rcv(rcd, hdr, has_grh, data, tlen, qp); 578 qib_uc_rcv(ibp, hdr, has_grh, data, tlen, qp); 594 * @tlen: the packet length 599 void qib_ib_rcv(struct qib_ctxtdata *rcd, void *rhdr, void *data, u32 tlen) argument 612 if (unlikely(tlen < 24)) 640 ibp->opstats[opcode & 0x7f].n_bytes += tlen; 656 qib_qp_rcv(rcd, hdr, 1, data, tlen, 550 qib_qp_rcv(struct qib_ctxtdata *rcd, struct qib_ib_header *hdr, int has_grh, void *data, u32 tlen, struct qib_qp *qp) argument [all...] |
/drivers/target/tcm_fc/ |
H A D | tfc_io.c | 75 size_t tlen; local 136 tlen = min(mem_len, frame_len); 144 page, off_in_page, tlen); 145 fr_len(fp) += tlen; 146 fp_skb(fp)->data_len += tlen; 154 tlen = min(tlen, (size_t)(PAGE_SIZE - 156 memcpy(to, from, tlen); 158 to += tlen; 161 mem_off += tlen; 201 size_t tlen; local [all...] |
/drivers/net/wireless/ath/carl9170/ |
H A D | rx.c | 802 unsigned int tlen, wlen = 0, clen = 0; local 807 tlen = len; 809 while (tlen >= 4) { 830 __carl9170_rx(ar, tbuf, tlen); 834 if (ar->rx_failover_missing > tlen) { 845 memcpy(skb_put(ar->rx_failover, tlen), tbuf, tlen); 846 ar->rx_failover_missing -= tlen; 869 if (wlen > tlen - 4) { 887 memcpy(skb_put(ar->rx_failover, tlen), tbu [all...] |
/drivers/scsi/libfc/ |
H A D | fc_disc.c | 398 size_t tlen; local 412 tlen = disc->buf_len; 414 if (tlen) { 415 WARN_ON(tlen >= sizeof(*np)); 416 plen = sizeof(*np) - tlen; 422 memcpy((char *)np + tlen, bp, plen); 428 bp -= tlen; 429 len += tlen; 430 plen += tlen;
|
H A D | fc_fcp.c | 562 size_t tlen; local 603 tlen = 0; 617 tlen = min(t_blen, remaining); 624 if (tlen % 4) 626 fp = fc_frame_alloc(lport, using_sg ? 0 : tlen); 636 sg_bytes = min(tlen, sg->length - offset); 661 tlen -= sg_bytes; 665 (tlen))
|
/drivers/scsi/fcoe/ |
H A D | fcoe_transport.c | 342 * @tlen: The total length of the trailer 353 int fcoe_get_paged_crc_eof(struct sk_buff *skb, int tlen, argument 370 fps->crc_eof_offset, tlen); 371 skb->len += tlen; 372 skb->data_len += tlen; 373 skb->truesize += tlen;
|
H A D | fcoe.c | 1490 * @tlen: The total length of the trailer 1494 static int fcoe_alloc_paged_crc_eof(struct sk_buff *skb, int tlen) argument 1500 rc = fcoe_get_paged_crc_eof(skb, tlen, fps); 1523 unsigned int tlen; /* trailer length */ local 1550 tlen = sizeof(struct fcoe_crc_eof); 1551 wlen = (skb->len - tlen + sizeof(crc)) / FCOE_WORD_TO_BYTE; 1567 if (fcoe_alloc_paged_crc_eof(skb, tlen)) { 1575 cp = (struct fcoe_crc_eof *)skb_put(skb, tlen);
|
/drivers/dma/ |
H A D | sa11x0-dma.c | 634 unsigned tlen = len; local 642 if (tlen > DMA_MAX_SIZE) { 643 unsigned mult = DIV_ROUND_UP(tlen, 646 tlen = (tlen / mult) & ~DMA_ALIGN; 650 txd->sg[j].len = tlen; 652 addr += tlen; 653 len -= tlen;
|
/drivers/macintosh/ |
H A D | smu.c | 953 unsigned int addr, len, tlen; local 976 tlen = sizeof(struct property) + len + 18; 978 prop = kzalloc(tlen, GFP_KERNEL); 982 prop->name = ((char *)prop) + tlen - 18;
|
/drivers/net/ethernet/amd/ |
H A D | sun3lance.c | 134 unsigned short tlen; member in struct:lance_init_block 399 MEM->init.tlen = (TX_LOG_RING_SIZE << 13) | 497 MEM->init.tlen = (TX_LOG_RING_SIZE << 13) |
|
/drivers/staging/wlags49_h2/ |
H A D | hcf.c | 4574 * against out-of-range variables. As failsafe coding, the MB update is skipped by changing tlen to 0 if 4602 hcf_16 tlen; //free length/working length/offset in WMP frame local 4613 tlen = ifbp->IFB_MBRp - ifbp->IFB_MBWp; /* 2a*/ 4618 tlen = ifbp->IFB_MBSize - ifbp->IFB_MBWp; /* 2b*/ 4619 if ( ( tlen <= len + 2 ) && ( len + 2 < ifbp->IFB_MBRp ) ) { //if trailing space is too small but 4623 tlen = ifbp->IFB_MBRp; //get new available space size 4628 tlen = 0; //;? what is this good for 4630 if ( len + 2 >= tlen ){ /* 6 */
|
/drivers/scsi/bnx2fc/ |
H A D | bnx2fc_fcoe.c | 145 int bnx2fc_get_paged_crc_eof(struct sk_buff *skb, int tlen) argument 149 rc = fcoe_get_paged_crc_eof(skb, tlen, &bnx2fc_global); 254 unsigned int hlen, tlen, elen; local 311 tlen = sizeof(struct fcoe_crc_eof); 312 wlen = (skb->len - tlen + sizeof(crc)) / FCOE_WORD_TO_BYTE; 320 if (bnx2fc_get_paged_crc_eof(skb, tlen)) { 327 cp = (struct fcoe_crc_eof *)skb_put(skb, tlen);
|
/drivers/net/ethernet/brocade/bna/ |
H A D | bfa_ioc.c | 1808 int tlen, status = 0; local 1810 tlen = *trclen; 1811 if (tlen > BNA_DBG_FWTRC_LEN) 1812 tlen = BNA_DBG_FWTRC_LEN; 1814 status = bfa_nw_ioc_smem_read(ioc, trcdata, loff, tlen); 1815 *trclen = tlen; 1825 int tlen; local 1830 tlen = ioc->dbg_fwsave_len; 1831 bfa_nw_ioc_debug_fwtrc(ioc, ioc->dbg_fwsave, &tlen); 1842 int tlen; local [all...] |
/drivers/scsi/bfa/ |
H A D | bfa_ioc.c | 2694 int tlen; local 2699 tlen = *trclen; 2700 if (tlen > ioc->dbg_fwsave_len) 2701 tlen = ioc->dbg_fwsave_len; 2703 memcpy(trcdata, ioc->dbg_fwsave, tlen); 2704 *trclen = tlen; 2716 int tlen; local 2721 tlen = *trclen; 2722 if (tlen > BFA_DBG_FWTRC_LEN) 2723 tlen 2819 int tlen; local 2840 int tlen; local 2862 int tlen; local [all...] |