Lines Matching refs:ibp
64 static void qib_send_trap(struct qib_ibport *ibp, void *data, unsigned len) in qib_send_trap() argument
73 agent = ibp->rvp.send_agent; in qib_send_trap()
78 if (!(ppd_from_ibp(ibp)->lflags & QIBL_LINKACTIVE)) in qib_send_trap()
82 if (ibp->rvp.trap_timeout && in qib_send_trap()
83 time_before(jiffies, ibp->rvp.trap_timeout)) in qib_send_trap()
97 ibp->rvp.tid++; in qib_send_trap()
98 smp->tid = cpu_to_be64(ibp->rvp.tid); in qib_send_trap()
103 spin_lock_irqsave(&ibp->rvp.lock, flags); in qib_send_trap()
104 if (!ibp->rvp.sm_ah) { in qib_send_trap()
105 if (ibp->rvp.sm_lid != be16_to_cpu(IB_LID_PERMISSIVE)) { in qib_send_trap()
108 ah = qib_create_qp0_ah(ibp, (u16)ibp->rvp.sm_lid); in qib_send_trap()
113 ibp->rvp.sm_ah = ibah_to_rvtah(ah); in qib_send_trap()
119 send_buf->ah = &ibp->rvp.sm_ah->ibah; in qib_send_trap()
122 spin_unlock_irqrestore(&ibp->rvp.lock, flags); in qib_send_trap()
128 timeout = (4096 * (1UL << ibp->rvp.subnet_timeout)) / 1000; in qib_send_trap()
129 ibp->rvp.trap_timeout = jiffies + usecs_to_jiffies(timeout); in qib_send_trap()
132 ibp->rvp.trap_timeout = 0; in qib_send_trap()
139 void qib_bad_pkey(struct qib_ibport *ibp, u32 key, u32 sl, in qib_bad_pkey() argument
144 ibp->rvp.n_pkt_drops++; in qib_bad_pkey()
145 ibp->rvp.pkey_violations++; in qib_bad_pkey()
152 data.issuer_lid = cpu_to_be16(ppd_from_ibp(ibp)->lid); in qib_bad_pkey()
161 qib_send_trap(ibp, &data, sizeof(data)); in qib_bad_pkey()
167 static void qib_bad_mkey(struct qib_ibport *ibp, struct ib_smp *smp) in qib_bad_mkey() argument
176 data.issuer_lid = cpu_to_be16(ppd_from_ibp(ibp)->lid); in qib_bad_mkey()
200 qib_send_trap(ibp, &data, sizeof(data)); in qib_bad_mkey()
210 struct qib_ibport *ibp = &dd->pport[port_num - 1].ibport_data; in qib_cap_mask_chg() local
217 data.issuer_lid = cpu_to_be16(ppd_from_ibp(ibp)->lid); in qib_cap_mask_chg()
222 cpu_to_be32(ibp->rvp.port_cap_flags); in qib_cap_mask_chg()
223 qib_send_trap(ibp, &data, sizeof(data)); in qib_cap_mask_chg()
229 void qib_sys_guid_chg(struct qib_ibport *ibp) in qib_sys_guid_chg() argument
237 data.issuer_lid = cpu_to_be16(ppd_from_ibp(ibp)->lid); in qib_sys_guid_chg()
243 qib_send_trap(ibp, &data, sizeof(data)); in qib_sys_guid_chg()
249 void qib_node_desc_chg(struct qib_ibport *ibp) in qib_node_desc_chg() argument
257 data.issuer_lid = cpu_to_be16(ppd_from_ibp(ibp)->lid); in qib_node_desc_chg()
264 qib_send_trap(ibp, &data, sizeof(data)); in qib_node_desc_chg()
327 struct qib_ibport *ibp = &ppd->ibport_data; in subn_get_guidinfo() local
338 p[i] = ibp->guids[i - 1]; in subn_get_guidinfo()
406 static int check_mkey(struct qib_ibport *ibp, struct ib_smp *smp, int mad_flags) in check_mkey() argument
412 if (ibp->rvp.mkey_lease_timeout && in check_mkey()
413 time_after_eq(jiffies, ibp->rvp.mkey_lease_timeout)) { in check_mkey()
415 ibp->rvp.mkey_lease_timeout = 0; in check_mkey()
416 ibp->rvp.mkeyprot = 0; in check_mkey()
419 if ((mad_flags & IB_MAD_IGNORE_MKEY) || ibp->rvp.mkey == 0 || in check_mkey()
420 ibp->rvp.mkey == smp->mkey) in check_mkey()
424 if (valid_mkey && ibp->rvp.mkey_lease_timeout && in check_mkey()
428 ibp->rvp.mkey_lease_timeout = 0; in check_mkey()
434 if (ibp->rvp.mkeyprot < 2) in check_mkey()
439 if (ibp->rvp.mkey_violations != 0xFFFF) in check_mkey()
440 ++ibp->rvp.mkey_violations; in check_mkey()
441 if (!ibp->rvp.mkey_lease_timeout && in check_mkey()
442 ibp->rvp.mkey_lease_period) in check_mkey()
443 ibp->rvp.mkey_lease_timeout = jiffies + in check_mkey()
444 ibp->rvp.mkey_lease_period * HZ; in check_mkey()
446 qib_bad_mkey(ibp, smp); in check_mkey()
459 struct qib_ibport *ibp; in subn_get_portinfo() local
475 ibp = to_iport(ibdev, port_num); in subn_get_portinfo()
476 ret = check_mkey(ibp, smp, 0); in subn_get_portinfo()
487 ibp = &ppd->ibport_data; in subn_get_portinfo()
494 ibp->rvp.mkey != smp->mkey && in subn_get_portinfo()
495 ibp->rvp.mkeyprot == 1)) in subn_get_portinfo()
496 pip->mkey = ibp->rvp.mkey; in subn_get_portinfo()
497 pip->gid_prefix = ibp->rvp.gid_prefix; in subn_get_portinfo()
499 pip->sm_lid = cpu_to_be16((u16)ibp->rvp.sm_lid); in subn_get_portinfo()
500 pip->cap_mask = cpu_to_be32(ibp->rvp.port_cap_flags); in subn_get_portinfo()
502 pip->mkey_lease_period = cpu_to_be16(ibp->rvp.mkey_lease_period); in subn_get_portinfo()
513 pip->mkeyprot_resv_lmc = (ibp->rvp.mkeyprot << 6) | ppd->lmc; in subn_get_portinfo()
534 pip->neighbormtu_mastersmsl = (mtu << 4) | ibp->rvp.sm_sl; in subn_get_portinfo()
536 pip->vl_high_limit = ibp->rvp.vl_high_limit; in subn_get_portinfo()
547 pip->mkey_violations = cpu_to_be16(ibp->rvp.mkey_violations); in subn_get_portinfo()
549 pip->pkey_violations = cpu_to_be16(ibp->rvp.pkey_violations); in subn_get_portinfo()
550 pip->qkey_violations = cpu_to_be16(ibp->rvp.qkey_violations); in subn_get_portinfo()
553 pip->clientrereg_resv_subnetto = ibp->rvp.subnet_timeout; in subn_get_portinfo()
560 if (ibp->rvp.port_cap_flags & IB_PORT_LINK_LATENCY_SUP) { in subn_get_portinfo()
632 struct qib_ibport *ibp = &ppd->ibport_data; in subn_set_guidinfo() local
637 ibp->guids[i - 1] = p[i]; in subn_set_guidinfo()
660 struct qib_ibport *ibp; in subn_set_portinfo() local
686 ibp = &ppd->ibport_data; in subn_set_portinfo()
690 ibp->rvp.mkey = pip->mkey; in subn_set_portinfo()
691 ibp->rvp.gid_prefix = pip->gid_prefix; in subn_set_portinfo()
692 ibp->rvp.mkey_lease_period = be16_to_cpu(pip->mkey_lease_period); in subn_set_portinfo()
713 else if (smlid != ibp->rvp.sm_lid || msl != ibp->rvp.sm_sl) { in subn_set_portinfo()
714 spin_lock_irqsave(&ibp->rvp.lock, flags); in subn_set_portinfo()
715 if (ibp->rvp.sm_ah) { in subn_set_portinfo()
716 if (smlid != ibp->rvp.sm_lid) in subn_set_portinfo()
717 rdma_ah_set_dlid(&ibp->rvp.sm_ah->attr, in subn_set_portinfo()
719 if (msl != ibp->rvp.sm_sl) in subn_set_portinfo()
720 rdma_ah_set_sl(&ibp->rvp.sm_ah->attr, msl); in subn_set_portinfo()
722 spin_unlock_irqrestore(&ibp->rvp.lock, flags); in subn_set_portinfo()
723 if (smlid != ibp->rvp.sm_lid) in subn_set_portinfo()
724 ibp->rvp.sm_lid = smlid; in subn_set_portinfo()
725 if (msl != ibp->rvp.sm_sl) in subn_set_portinfo()
726 ibp->rvp.sm_sl = msl; in subn_set_portinfo()
774 ibp->rvp.mkeyprot = pip->mkeyprot_resv_lmc >> 6; in subn_set_portinfo()
775 ibp->rvp.vl_high_limit = pip->vl_high_limit; in subn_set_portinfo()
777 ibp->rvp.vl_high_limit); in subn_set_portinfo()
795 ibp->rvp.mkey_violations = 0; in subn_set_portinfo()
798 ibp->rvp.pkey_violations = 0; in subn_set_portinfo()
801 ibp->rvp.qkey_violations = 0; in subn_set_portinfo()
810 ibp->rvp.subnet_timeout = pip->clientrereg_resv_subnetto & 0x1F; in subn_set_portinfo()
1060 struct qib_ibport *ibp = to_iport(ibdev, port); in subn_get_sl_to_vl() local
1066 if (!(ibp->rvp.port_cap_flags & IB_PORT_SL_MAP_SUP)) in subn_get_sl_to_vl()
1069 for (i = 0; i < ARRAY_SIZE(ibp->sl_to_vl); i += 2) in subn_get_sl_to_vl()
1070 *p++ = (ibp->sl_to_vl[i] << 4) | ibp->sl_to_vl[i + 1]; in subn_get_sl_to_vl()
1078 struct qib_ibport *ibp = to_iport(ibdev, port); in subn_set_sl_to_vl() local
1082 if (!(ibp->rvp.port_cap_flags & IB_PORT_SL_MAP_SUP)) { in subn_set_sl_to_vl()
1087 for (i = 0; i < ARRAY_SIZE(ibp->sl_to_vl); i += 2, p++) { in subn_set_sl_to_vl()
1088 ibp->sl_to_vl[i] = *p >> 4; in subn_set_sl_to_vl()
1089 ibp->sl_to_vl[i + 1] = *p & 0xF; in subn_set_sl_to_vl()
1189 struct qib_ibport *ibp = to_iport(ibdev, port); in pma_get_portsamplescontrol() local
1190 struct qib_pportdata *ppd = ppd_from_ibp(ibp); in pma_get_portsamplescontrol()
1201 spin_lock_irqsave(&ibp->rvp.lock, flags); in pma_get_portsamplescontrol()
1206 p->sample_start = cpu_to_be32(ibp->rvp.pma_sample_start); in pma_get_portsamplescontrol()
1207 p->sample_interval = cpu_to_be32(ibp->rvp.pma_sample_interval); in pma_get_portsamplescontrol()
1208 p->tag = cpu_to_be16(ibp->rvp.pma_tag); in pma_get_portsamplescontrol()
1209 p->counter_select[0] = ibp->rvp.pma_counter_select[0]; in pma_get_portsamplescontrol()
1210 p->counter_select[1] = ibp->rvp.pma_counter_select[1]; in pma_get_portsamplescontrol()
1211 p->counter_select[2] = ibp->rvp.pma_counter_select[2]; in pma_get_portsamplescontrol()
1212 p->counter_select[3] = ibp->rvp.pma_counter_select[3]; in pma_get_portsamplescontrol()
1213 p->counter_select[4] = ibp->rvp.pma_counter_select[4]; in pma_get_portsamplescontrol()
1214 spin_unlock_irqrestore(&ibp->rvp.lock, flags); in pma_get_portsamplescontrol()
1227 struct qib_ibport *ibp = to_iport(ibdev, port); in pma_set_portsamplescontrol() local
1228 struct qib_pportdata *ppd = ppd_from_ibp(ibp); in pma_set_portsamplescontrol()
1239 spin_lock_irqsave(&ibp->rvp.lock, flags); in pma_set_portsamplescontrol()
1248 ibp->rvp.pma_sample_start = be32_to_cpu(p->sample_start); in pma_set_portsamplescontrol()
1249 ibp->rvp.pma_sample_interval = be32_to_cpu(p->sample_interval); in pma_set_portsamplescontrol()
1250 ibp->rvp.pma_tag = be16_to_cpu(p->tag); in pma_set_portsamplescontrol()
1251 ibp->rvp.pma_counter_select[0] = p->counter_select[0]; in pma_set_portsamplescontrol()
1252 ibp->rvp.pma_counter_select[1] = p->counter_select[1]; in pma_set_portsamplescontrol()
1253 ibp->rvp.pma_counter_select[2] = p->counter_select[2]; in pma_set_portsamplescontrol()
1254 ibp->rvp.pma_counter_select[3] = p->counter_select[3]; in pma_set_portsamplescontrol()
1255 ibp->rvp.pma_counter_select[4] = p->counter_select[4]; in pma_set_portsamplescontrol()
1256 dd->f_set_cntr_sample(ppd, ibp->rvp.pma_sample_interval, in pma_set_portsamplescontrol()
1257 ibp->rvp.pma_sample_start); in pma_set_portsamplescontrol()
1259 spin_unlock_irqrestore(&ibp->rvp.lock, flags); in pma_set_portsamplescontrol()
1267 static u64 get_counter(struct qib_ibport *ibp, struct qib_pportdata *ppd, in get_counter() argument
1307 struct qib_ibport *ibp = &ppd->ibport_data; in cache_hw_sample_counters() local
1310 get_counter(ibp, ppd, IB_PMA_PORT_XMIT_DATA); in cache_hw_sample_counters()
1312 get_counter(ibp, ppd, IB_PMA_PORT_RCV_DATA); in cache_hw_sample_counters()
1314 get_counter(ibp, ppd, IB_PMA_PORT_XMIT_PKTS); in cache_hw_sample_counters()
1316 get_counter(ibp, ppd, IB_PMA_PORT_RCV_PKTS); in cache_hw_sample_counters()
1318 get_counter(ibp, ppd, IB_PMA_PORT_XMIT_WAIT); in cache_hw_sample_counters()
1356 struct qib_ibport *ibp = to_iport(ibdev, port); in pma_get_portsamplesresult() local
1357 struct qib_pportdata *ppd = ppd_from_ibp(ibp); in pma_get_portsamplesresult()
1363 spin_lock_irqsave(&ibp->rvp.lock, flags); in pma_get_portsamplesresult()
1364 p->tag = cpu_to_be16(ibp->rvp.pma_tag); in pma_get_portsamplesresult()
1379 for (i = 0; i < ARRAY_SIZE(ibp->rvp.pma_counter_select); i++) in pma_get_portsamplesresult()
1382 ppd, ibp->rvp.pma_counter_select[i])); in pma_get_portsamplesresult()
1383 spin_unlock_irqrestore(&ibp->rvp.lock, flags); in pma_get_portsamplesresult()
1395 struct qib_ibport *ibp = to_iport(ibdev, port); in pma_get_portsamplesresult_ext() local
1396 struct qib_pportdata *ppd = ppd_from_ibp(ibp); in pma_get_portsamplesresult_ext()
1403 spin_lock_irqsave(&ibp->rvp.lock, flags); in pma_get_portsamplesresult_ext()
1404 p->tag = cpu_to_be16(ibp->rvp.pma_tag); in pma_get_portsamplesresult_ext()
1421 for (i = 0; i < ARRAY_SIZE(ibp->rvp.pma_counter_select); i++) in pma_get_portsamplesresult_ext()
1424 ppd, ibp->rvp.pma_counter_select[i])); in pma_get_portsamplesresult_ext()
1425 spin_unlock_irqrestore(&ibp->rvp.lock, flags); in pma_get_portsamplesresult_ext()
1435 struct qib_ibport *ibp = to_iport(ibdev, port); in pma_get_portcounters() local
1436 struct qib_pportdata *ppd = ppd_from_ibp(ibp); in pma_get_portcounters()
1443 cntrs.symbol_error_counter -= ibp->z_symbol_error_counter; in pma_get_portcounters()
1445 ibp->z_link_error_recovery_counter; in pma_get_portcounters()
1446 cntrs.link_downed_counter -= ibp->z_link_downed_counter; in pma_get_portcounters()
1447 cntrs.port_rcv_errors -= ibp->z_port_rcv_errors; in pma_get_portcounters()
1448 cntrs.port_rcv_remphys_errors -= ibp->z_port_rcv_remphys_errors; in pma_get_portcounters()
1449 cntrs.port_xmit_discards -= ibp->z_port_xmit_discards; in pma_get_portcounters()
1450 cntrs.port_xmit_data -= ibp->z_port_xmit_data; in pma_get_portcounters()
1451 cntrs.port_rcv_data -= ibp->z_port_rcv_data; in pma_get_portcounters()
1452 cntrs.port_xmit_packets -= ibp->z_port_xmit_packets; in pma_get_portcounters()
1453 cntrs.port_rcv_packets -= ibp->z_port_rcv_packets; in pma_get_portcounters()
1455 ibp->z_local_link_integrity_errors; in pma_get_portcounters()
1457 ibp->z_excessive_buffer_overrun_errors; in pma_get_portcounters()
1458 cntrs.vl15_dropped -= ibp->z_vl15_dropped; in pma_get_portcounters()
1459 cntrs.vl15_dropped += ibp->rvp.n_vl15_dropped; in pma_get_portcounters()
1535 struct qib_ibport *ibp = to_iport(ibdev, port); in pma_get_portcounters_cong() local
1536 struct qib_pportdata *ppd = ppd_from_ibp(ibp); in pma_get_portcounters_cong()
1557 cntrs.symbol_error_counter -= ibp->z_symbol_error_counter; in pma_get_portcounters_cong()
1559 ibp->z_link_error_recovery_counter; in pma_get_portcounters_cong()
1560 cntrs.link_downed_counter -= ibp->z_link_downed_counter; in pma_get_portcounters_cong()
1561 cntrs.port_rcv_errors -= ibp->z_port_rcv_errors; in pma_get_portcounters_cong()
1563 ibp->z_port_rcv_remphys_errors; in pma_get_portcounters_cong()
1564 cntrs.port_xmit_discards -= ibp->z_port_xmit_discards; in pma_get_portcounters_cong()
1566 ibp->z_local_link_integrity_errors; in pma_get_portcounters_cong()
1568 ibp->z_excessive_buffer_overrun_errors; in pma_get_portcounters_cong()
1569 cntrs.vl15_dropped -= ibp->z_vl15_dropped; in pma_get_portcounters_cong()
1570 cntrs.vl15_dropped += ibp->rvp.n_vl15_dropped; in pma_get_portcounters_cong()
1571 cntrs.port_xmit_data -= ibp->z_port_xmit_data; in pma_get_portcounters_cong()
1572 cntrs.port_rcv_data -= ibp->z_port_rcv_data; in pma_get_portcounters_cong()
1573 cntrs.port_xmit_packets -= ibp->z_port_xmit_packets; in pma_get_portcounters_cong()
1574 cntrs.port_rcv_packets -= ibp->z_port_rcv_packets; in pma_get_portcounters_cong()
1642 struct qib_ibport *ibp, in qib_snapshot_pmacounters() argument
1650 p = per_cpu_ptr(ibp->pmastats, cpu); in qib_snapshot_pmacounters()
1663 struct qib_ibport *ibp = to_iport(ibdev, port); in pma_get_portcounters_ext() local
1664 struct qib_pportdata *ppd = ppd_from_ibp(ibp); in pma_get_portcounters_ext()
1680 swords -= ibp->z_port_xmit_data; in pma_get_portcounters_ext()
1681 rwords -= ibp->z_port_rcv_data; in pma_get_portcounters_ext()
1682 spkts -= ibp->z_port_xmit_packets; in pma_get_portcounters_ext()
1683 rpkts -= ibp->z_port_rcv_packets; in pma_get_portcounters_ext()
1690 qib_snapshot_pmacounters(ibp, &pma); in pma_get_portcounters_ext()
1693 - ibp->z_unicast_xmit); in pma_get_portcounters_ext()
1695 - ibp->z_unicast_rcv); in pma_get_portcounters_ext()
1697 - ibp->z_multicast_xmit); in pma_get_portcounters_ext()
1699 - ibp->z_multicast_rcv); in pma_get_portcounters_ext()
1710 struct qib_ibport *ibp = to_iport(ibdev, port); in pma_set_portcounters() local
1711 struct qib_pportdata *ppd = ppd_from_ibp(ibp); in pma_set_portcounters()
1721 ibp->z_symbol_error_counter = cntrs.symbol_error_counter; in pma_set_portcounters()
1724 ibp->z_link_error_recovery_counter = in pma_set_portcounters()
1728 ibp->z_link_downed_counter = cntrs.link_downed_counter; in pma_set_portcounters()
1731 ibp->z_port_rcv_errors = cntrs.port_rcv_errors; in pma_set_portcounters()
1734 ibp->z_port_rcv_remphys_errors = in pma_set_portcounters()
1738 ibp->z_port_xmit_discards = cntrs.port_xmit_discards; in pma_set_portcounters()
1741 ibp->z_local_link_integrity_errors = in pma_set_portcounters()
1745 ibp->z_excessive_buffer_overrun_errors = in pma_set_portcounters()
1749 ibp->rvp.n_vl15_dropped = 0; in pma_set_portcounters()
1750 ibp->z_vl15_dropped = cntrs.vl15_dropped; in pma_set_portcounters()
1754 ibp->z_port_xmit_data = cntrs.port_xmit_data; in pma_set_portcounters()
1757 ibp->z_port_rcv_data = cntrs.port_rcv_data; in pma_set_portcounters()
1760 ibp->z_port_xmit_packets = cntrs.port_xmit_packets; in pma_set_portcounters()
1763 ibp->z_port_rcv_packets = cntrs.port_rcv_packets; in pma_set_portcounters()
1771 struct qib_ibport *ibp = to_iport(ibdev, port); in pma_set_portcounters_cong() local
1772 struct qib_pportdata *ppd = ppd_from_ibp(ibp); in pma_set_portcounters_cong()
1791 ibp->z_port_xmit_data = cntrs.port_xmit_data; in pma_set_portcounters_cong()
1792 ibp->z_port_rcv_data = cntrs.port_rcv_data; in pma_set_portcounters_cong()
1793 ibp->z_port_xmit_packets = cntrs.port_xmit_packets; in pma_set_portcounters_cong()
1794 ibp->z_port_rcv_packets = cntrs.port_rcv_packets; in pma_set_portcounters_cong()
1797 ibp->z_symbol_error_counter = in pma_set_portcounters_cong()
1799 ibp->z_link_error_recovery_counter = in pma_set_portcounters_cong()
1801 ibp->z_link_downed_counter = in pma_set_portcounters_cong()
1803 ibp->z_port_rcv_errors = cntrs.port_rcv_errors; in pma_set_portcounters_cong()
1804 ibp->z_port_rcv_remphys_errors = in pma_set_portcounters_cong()
1806 ibp->z_port_xmit_discards = in pma_set_portcounters_cong()
1808 ibp->z_local_link_integrity_errors = in pma_set_portcounters_cong()
1810 ibp->z_excessive_buffer_overrun_errors = in pma_set_portcounters_cong()
1812 ibp->rvp.n_vl15_dropped = 0; in pma_set_portcounters_cong()
1813 ibp->z_vl15_dropped = cntrs.vl15_dropped; in pma_set_portcounters_cong()
1824 struct qib_ibport *ibp = to_iport(ibdev, port); in pma_set_portcounters_ext() local
1825 struct qib_pportdata *ppd = ppd_from_ibp(ibp); in pma_set_portcounters_ext()
1832 ibp->z_port_xmit_data = swords; in pma_set_portcounters_ext()
1835 ibp->z_port_rcv_data = rwords; in pma_set_portcounters_ext()
1838 ibp->z_port_xmit_packets = spkts; in pma_set_portcounters_ext()
1841 ibp->z_port_rcv_packets = rpkts; in pma_set_portcounters_ext()
1843 qib_snapshot_pmacounters(ibp, &pma); in pma_set_portcounters_ext()
1846 ibp->z_unicast_xmit = pma.n_unicast_xmit; in pma_set_portcounters_ext()
1849 ibp->z_unicast_rcv = pma.n_unicast_rcv; in pma_set_portcounters_ext()
1852 ibp->z_multicast_xmit = pma.n_multicast_xmit; in pma_set_portcounters_ext()
1855 ibp->z_multicast_rcv = pma.n_multicast_rcv; in pma_set_portcounters_ext()
1865 struct qib_ibport *ibp = to_iport(ibdev, port); in process_subn() local
1866 struct qib_pportdata *ppd = ppd_from_ibp(ibp); in process_subn()
1876 ret = check_mkey(ibp, smp, mad_flags); in process_subn()
1922 if (ibp->rvp.port_cap_flags & IB_PORT_SM_DISABLED) { in process_subn()
1927 if (ibp->rvp.port_cap_flags & IB_PORT_SM) { in process_subn()
1956 if (ibp->rvp.port_cap_flags & IB_PORT_SM_DISABLED) { in process_subn()
1961 if (ibp->rvp.port_cap_flags & IB_PORT_SM) { in process_subn()
2118 struct qib_ibport *ibp = to_iport(ibdev, port); in cc_get_congestion_info() local
2119 struct qib_pportdata *ppd = ppd_from_ibp(ibp); in cc_get_congestion_info()
2133 struct qib_ibport *ibp = to_iport(ibdev, port); in cc_get_congestion_setting() local
2134 struct qib_pportdata *ppd = ppd_from_ibp(ibp); in cc_get_congestion_setting()
2161 struct qib_ibport *ibp = to_iport(ibdev, port); in cc_get_congestion_control_table() local
2162 struct qib_pportdata *ppd = ppd_from_ibp(ibp); in cc_get_congestion_control_table()
2212 struct qib_ibport *ibp = to_iport(ibdev, port); in cc_set_congestion_setting() local
2213 struct qib_pportdata *ppd = ppd_from_ibp(ibp); in cc_set_congestion_setting()
2240 struct qib_ibport *ibp = to_iport(ibdev, port); in cc_set_congestion_control_table() local
2241 struct qib_pportdata *ppd = ppd_from_ibp(ibp); in cc_set_congestion_control_table()
2369 struct qib_ibport *ibp = to_iport(ibdev, port); in qib_process_mad() local
2370 struct qib_pportdata *ppd = ppd_from_ibp(ibp); in qib_process_mad()