• Home
  • Raw
  • Download

Lines Matching refs:dd

343 	struct ipath_devdata *dd = to_idev(qp->ibqp.device)->dd;  in ipath_post_one_send()  local
348 !(dd->ipath_flags & IPATH_LINKACTIVE)) { in ipath_post_one_send()
420 } else if (wqe->length > to_idev(qp->ibqp.device)->dd->ipath_ibmtu) in ipath_post_one_send()
603 lid &= ~((1 << dev->dd->ipath_lmc) - 1); in ipath_ib_rcv()
604 if (unlikely(lid != dev->dd->ipath_lid)) { in ipath_ib_rcv()
721 ipath_snapshot_counters(dev->dd, &dev->ipath_sword, in ipath_ib_timer()
732 ipath_snapshot_counters(dev->dd, &ta, &tb, in ipath_ib_timer()
1101 struct ipath_devdata *dd = dev->dd; in ipath_verbs_send_dma() local
1113 ret = ipath_sdma_verbs_send(dd, tx->ss, tx->len, tx); in ipath_verbs_send_dma()
1133 qp->s_pkt_delay = ipath_pkt_delay(plen, dd->delay_mult, qp->s_dmult); in ipath_verbs_send_dma()
1157 if (ndesc >= dd->ipath_sdma_descq_cnt) in ipath_verbs_send_dma()
1169 ret = ipath_sdma_verbs_send(dd, ss, dwords, tx); in ipath_verbs_send_dma()
1197 ret = ipath_sdma_verbs_send(dd, NULL, 0, tx); in ipath_verbs_send_dma()
1225 struct ipath_devdata *dd = to_idev(qp->ibqp.device)->dd; in ipath_verbs_send_pio() local
1233 piobuf = ipath_getpiobuf(dd, plen, NULL); in ipath_verbs_send_pio()
1245 qp->s_pkt_delay = ipath_pkt_delay(plen, dd->delay_mult, qp->s_dmult); in ipath_verbs_send_pio()
1259 flush_wc = dd->ipath_flags & IPATH_PIO_FLUSH_WC; in ipath_verbs_send_pio()
1323 struct ipath_devdata *dd = to_idev(qp->ibqp.device)->dd; in ipath_verbs_send() local
1340 !(dd->ipath_flags & IPATH_HAS_SEND_DMA)) in ipath_verbs_send()
1350 int ipath_snapshot_counters(struct ipath_devdata *dd, u64 *swords, in ipath_snapshot_counters() argument
1356 if (!(dd->ipath_flags & IPATH_INITTED)) { in ipath_snapshot_counters()
1361 *swords = ipath_snap_cntr(dd, dd->ipath_cregs->cr_wordsendcnt); in ipath_snapshot_counters()
1362 *rwords = ipath_snap_cntr(dd, dd->ipath_cregs->cr_wordrcvcnt); in ipath_snapshot_counters()
1363 *spkts = ipath_snap_cntr(dd, dd->ipath_cregs->cr_pktsendcnt); in ipath_snapshot_counters()
1364 *rpkts = ipath_snap_cntr(dd, dd->ipath_cregs->cr_pktrcvcnt); in ipath_snapshot_counters()
1365 *xmit_wait = ipath_snap_cntr(dd, dd->ipath_cregs->cr_sendstallcnt); in ipath_snapshot_counters()
1380 int ipath_get_counters(struct ipath_devdata *dd, in ipath_get_counters() argument
1383 struct ipath_cregs const *crp = dd->ipath_cregs; in ipath_get_counters()
1386 if (!(dd->ipath_flags & IPATH_INITTED)) { in ipath_get_counters()
1392 ipath_snap_cntr(dd, crp->cr_ibsymbolerrcnt); in ipath_get_counters()
1394 ipath_snap_cntr(dd, crp->cr_iblinkerrrecovcnt); in ipath_get_counters()
1401 ipath_snap_cntr(dd, crp->cr_iblinkdowncnt); in ipath_get_counters()
1403 ipath_snap_cntr(dd, crp->cr_rxdroppktcnt) + in ipath_get_counters()
1404 ipath_snap_cntr(dd, crp->cr_rcvovflcnt) + in ipath_get_counters()
1405 ipath_snap_cntr(dd, crp->cr_portovflcnt) + in ipath_get_counters()
1406 ipath_snap_cntr(dd, crp->cr_err_rlencnt) + in ipath_get_counters()
1407 ipath_snap_cntr(dd, crp->cr_invalidrlencnt) + in ipath_get_counters()
1408 ipath_snap_cntr(dd, crp->cr_errlinkcnt) + in ipath_get_counters()
1409 ipath_snap_cntr(dd, crp->cr_erricrccnt) + in ipath_get_counters()
1410 ipath_snap_cntr(dd, crp->cr_errvcrccnt) + in ipath_get_counters()
1411 ipath_snap_cntr(dd, crp->cr_errlpcrccnt) + in ipath_get_counters()
1412 ipath_snap_cntr(dd, crp->cr_badformatcnt) + in ipath_get_counters()
1413 dd->ipath_rxfc_unsupvl_errs; in ipath_get_counters()
1416 ipath_snap_cntr(dd, crp->cr_rxotherlocalphyerrcnt); in ipath_get_counters()
1419 ipath_snap_cntr(dd, crp->cr_rxvlerrcnt); in ipath_get_counters()
1421 ipath_snap_cntr(dd, crp->cr_rcvebpcnt); in ipath_get_counters()
1422 cntrs->port_xmit_discards = ipath_snap_cntr(dd, crp->cr_unsupvlcnt); in ipath_get_counters()
1423 cntrs->port_xmit_data = ipath_snap_cntr(dd, crp->cr_wordsendcnt); in ipath_get_counters()
1424 cntrs->port_rcv_data = ipath_snap_cntr(dd, crp->cr_wordrcvcnt); in ipath_get_counters()
1425 cntrs->port_xmit_packets = ipath_snap_cntr(dd, crp->cr_pktsendcnt); in ipath_get_counters()
1426 cntrs->port_rcv_packets = ipath_snap_cntr(dd, crp->cr_pktrcvcnt); in ipath_get_counters()
1429 ipath_snap_cntr(dd, crp->cr_locallinkintegrityerrcnt) : in ipath_get_counters()
1430 ((dd->ipath_flags & IPATH_GPIO_ERRINTRS) ? in ipath_get_counters()
1431 dd->ipath_lli_errs : dd->ipath_lli_errors); in ipath_get_counters()
1434 ipath_snap_cntr(dd, crp->cr_excessbufferovflcnt) : in ipath_get_counters()
1435 dd->ipath_overrun_thresh_errs; in ipath_get_counters()
1437 ipath_snap_cntr(dd, crp->cr_vl15droppedpktcnt) : 0; in ipath_get_counters()
1510 props->vendor_part_id = dev->dd->ipath_deviceid; in ipath_query_device()
1511 props->hw_ver = dev->dd->ipath_pcirev; in ipath_query_device()
1534 props->max_pkeys = ipath_get_npkeys(dev->dd); in ipath_query_device()
1573 u32 ipath_get_cr_errpkey(struct ipath_devdata *dd) in ipath_get_cr_errpkey() argument
1575 return ipath_read_creg32(dd, dd->ipath_cregs->cr_errpkey); in ipath_get_cr_errpkey()
1582 struct ipath_devdata *dd = dev->dd; in ipath_query_port() local
1584 u16 lid = dd->ipath_lid; in ipath_query_port()
1589 props->lmc = dd->ipath_lmc; in ipath_query_port()
1592 ibcstat = dd->ipath_lastibcstat; in ipath_query_port()
1594 props->state = ipath_ib_linkstate(dd, ibcstat) + 1; in ipath_query_port()
1598 ipath_cvt_physportstate[dd->ipath_lastibcstat & in ipath_query_port()
1599 dd->ibcs_lts_mask]; in ipath_query_port()
1603 props->pkey_tbl_len = ipath_get_npkeys(dd); in ipath_query_port()
1604 props->bad_pkey_cntr = ipath_get_cr_errpkey(dd) - in ipath_query_port()
1607 props->active_width = dd->ipath_link_width_active; in ipath_query_port()
1609 props->active_speed = dd->ipath_link_speed_active; in ipath_query_port()
1614 switch (dd->ipath_ibmtu) { in ipath_query_port()
1673 ipath_set_linkstate(dev->dd, IPATH_IB_LINKDOWN); in ipath_modify_port()
1690 gid->global.interface_id = dev->dd->ipath_guid; in ipath_query_gid()
1849 unsigned ipath_get_npkeys(struct ipath_devdata *dd) in ipath_get_npkeys() argument
1851 return ARRAY_SIZE(dd->ipath_pd[0]->port_pkeys); in ipath_get_npkeys()
1859 unsigned ipath_get_pkey(struct ipath_devdata *dd, unsigned index) in ipath_get_pkey() argument
1864 if (index >= ARRAY_SIZE(dd->ipath_pd[0]->port_pkeys)) in ipath_get_pkey()
1867 ret = dd->ipath_pd[0]->port_pkeys[index]; in ipath_get_pkey()
1878 if (index >= ipath_get_npkeys(dev->dd)) { in ipath_query_pkey()
1883 *pkey = ipath_get_pkey(dev->dd, index); in ipath_query_pkey()
1924 struct ipath_devdata *dd = (struct ipath_devdata *) arg; in __verbs_timer() local
1927 ipath_ib_timer(dd->verbs_dev); in __verbs_timer()
1929 mod_timer(&dd->verbs_timer, jiffies + 1); in __verbs_timer()
1932 static int enable_timer(struct ipath_devdata *dd) in enable_timer() argument
1944 if (dd->ipath_flags & IPATH_GPIO_INTR) { in enable_timer()
1945 ipath_write_kreg(dd, dd->ipath_kregs->kr_debugportselect, in enable_timer()
1948 dd->ipath_gpio_mask |= (u64) (1 << IPATH_GPIO_PORT0_BIT); in enable_timer()
1949 ipath_write_kreg(dd, dd->ipath_kregs->kr_gpio_mask, in enable_timer()
1950 dd->ipath_gpio_mask); in enable_timer()
1953 init_timer(&dd->verbs_timer); in enable_timer()
1954 dd->verbs_timer.function = __verbs_timer; in enable_timer()
1955 dd->verbs_timer.data = (unsigned long)dd; in enable_timer()
1956 dd->verbs_timer.expires = jiffies + 1; in enable_timer()
1957 add_timer(&dd->verbs_timer); in enable_timer()
1962 static int disable_timer(struct ipath_devdata *dd) in disable_timer() argument
1965 if (dd->ipath_flags & IPATH_GPIO_INTR) { in disable_timer()
1967 dd->ipath_gpio_mask &= ~((u64) (1 << IPATH_GPIO_PORT0_BIT)); in disable_timer()
1968 ipath_write_kreg(dd, dd->ipath_kregs->kr_gpio_mask, in disable_timer()
1969 dd->ipath_gpio_mask); in disable_timer()
1976 del_timer_sync(&dd->verbs_timer); in disable_timer()
1986 int ipath_register_ib_device(struct ipath_devdata *dd) in ipath_register_ib_device() argument
2003 if (dd->ipath_sdma_descq_cnt) { in ipath_register_ib_device()
2004 tx = kmalloc(dd->ipath_sdma_descq_cnt * sizeof *tx, in ipath_register_ib_device()
2058 if (dd->ipath_flags & IPATH_HAS_LINK_LATENCY) in ipath_register_ib_device()
2067 ipath_get_counters(dd, &cntrs); in ipath_register_ib_device()
2086 for (i = 0; i < dd->ipath_sdma_descq_cnt; i++, tx++) in ipath_register_ib_device()
2095 sys_image_guid = dd->ipath_guid; in ipath_register_ib_device()
2097 idev->ib_unit = dd->ipath_unit; in ipath_register_ib_device()
2098 idev->dd = dd; in ipath_register_ib_device()
2102 dev->node_guid = dd->ipath_guid; in ipath_register_ib_device()
2137 dev->dma_device = &dd->pcidev->dev; in ipath_register_ib_device()
2191 enable_timer(dd); in ipath_register_ib_device()
2205 ipath_dev_err(dd, "cannot register verbs: %d!\n", -ret); in ipath_register_ib_device()
2209 dd->verbs_dev = idev; in ipath_register_ib_device()
2220 disable_timer(dev->dd); in ipath_unregister_ib_device()
2225 ipath_dev_err(dev->dd, "pending list not empty!\n"); in ipath_unregister_ib_device()
2227 ipath_dev_err(dev->dd, "piowait list not empty!\n"); in ipath_unregister_ib_device()
2229 ipath_dev_err(dev->dd, "rnrwait list not empty!\n"); in ipath_unregister_ib_device()
2231 ipath_dev_err(dev->dd, "multicast table memory leak!\n"); in ipath_unregister_ib_device()
2238 ipath_dev_err(dev->dd, "QP memory leak! %u still in use\n", in ipath_unregister_ib_device()
2252 return sprintf(buf, "%x\n", dev->dd->ipath_pcirev); in show_rev()
2262 ret = dev->dd->ipath_f_get_boardname(dev->dd, buf, 128); in show_hca()