ibp 631 arch/s390/kernel/ipl.c struct ipl_parameter_block *ibp) ibp 633 arch/s390/kernel/ipl.c memcpy(loadparm, ibp->common.loadparm, LOADPARM_LEN); ibp 256 drivers/infiniband/hw/hfi1/driver.c struct hfi1_ibport *ibp = rcd_to_iport(rcd); ibp 313 drivers/infiniband/hw/hfi1/driver.c qp = rvt_lookup_qpn(rdi, &ibp->rvp, qp_num); ibp 328 drivers/infiniband/hw/hfi1/driver.c ibp->rvp.n_pkt_drops++; ibp 370 drivers/infiniband/hw/hfi1/driver.c sl = ibp->sc_to_sl[sc5]; ibp 374 drivers/infiniband/hw/hfi1/driver.c qp = rvt_lookup_qpn(rdi, &ibp->rvp, lqpn); ibp 447 drivers/infiniband/hw/hfi1/driver.c struct hfi1_ibport *ibp = to_iport(qp->ibqp.device, qp->port_num); ibp 448 drivers/infiniband/hw/hfi1/driver.c struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); ibp 523 drivers/infiniband/hw/hfi1/driver.c hfi1_handle_cnp_tbl[hdr_type](ibp, qp, rqpn, pkey, ibp 528 drivers/infiniband/hw/hfi1/driver.c u8 sl = ibp->sc_to_sl[sc]; ibp 623 drivers/infiniband/hw/hfi1/driver.c struct hfi1_ibport *ibp = rcd_to_iport(rcd); ibp 662 drivers/infiniband/hw/hfi1/driver.c qp = rvt_lookup_qpn(rdi, &ibp->rvp, qpn); ibp 1449 drivers/infiniband/hw/hfi1/driver.c struct hfi1_ibport *ibp = rcd_to_iport(packet->rcd); ibp 1492 drivers/infiniband/hw/hfi1/driver.c ibp->rvp.n_pkt_drops++; ibp 1510 drivers/infiniband/hw/hfi1/driver.c struct hfi1_ibport *ibp = &ppd->ibport_data; ibp 1565 drivers/infiniband/hw/hfi1/driver.c packet->sl = ibp->sc_to_sl[packet->sc]; ibp 1575 drivers/infiniband/hw/hfi1/driver.c ibp->rvp.n_pkt_drops++; ibp 1617 drivers/infiniband/hw/hfi1/hfi.h void return_cnp(struct hfi1_ibport *ibp, struct rvt_qp *qp, u32 remote_qpn, ibp 1620 drivers/infiniband/hw/hfi1/hfi.h void return_cnp_16B(struct hfi1_ibport *ibp, struct rvt_qp *qp, ibp 1623 drivers/infiniband/hw/hfi1/hfi.h typedef void (*hfi1_handle_cnp)(struct hfi1_ibport *ibp, struct rvt_qp *qp, ibp 1837 drivers/infiniband/hw/hfi1/hfi.h static inline struct hfi1_pportdata *ppd_from_ibp(struct hfi1_ibport *ibp) ibp 1839 drivers/infiniband/hw/hfi1/hfi.h return container_of(ibp, struct hfi1_pportdata, ibport_data); ibp 1901 drivers/infiniband/hw/hfi1/hfi.h static inline u16 hfi1_get_pkey(struct hfi1_ibport *ibp, unsigned index) ibp 1903 drivers/infiniband/hw/hfi1/hfi.h struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); ibp 1917 drivers/infiniband/hw/hfi1/hfi.h static inline __be64 get_sguid(struct hfi1_ibport *ibp, unsigned int index) ibp 1919 drivers/infiniband/hw/hfi1/hfi.h struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); ibp 2315 drivers/infiniband/hw/hfi1/hfi.h struct hfi1_ibport *ibp; ibp 2322 drivers/infiniband/hw/hfi1/hfi.h ibp = to_iport(ibdev, rdma_ah_get_port_num(attr)); ibp 2323 drivers/infiniband/hw/hfi1/hfi.h ppd = ppd_from_ibp(ibp); ibp 2332 drivers/infiniband/hw/hfi1/hfi.h rdma_ah_set_subnet_prefix(attr, ibp->rvp.gid_prefix); ibp 2456 drivers/infiniband/hw/hfi1/hfi.h struct hfi1_ibport *ibp = &packet->rcd->ppd->ibport_data; ibp 2457 drivers/infiniband/hw/hfi1/hfi.h struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); ibp 2459 drivers/infiniband/hw/hfi1/hfi.h if (!ibp) ibp 2463 drivers/infiniband/hw/hfi1/hfi.h grh->sgid.global.subnet_prefix = ibp->rvp.gid_prefix; ibp 2477 drivers/infiniband/hw/hfi1/hfi.h grh->dgid.global.subnet_prefix = ibp->rvp.gid_prefix; ibp 101 drivers/infiniband/hw/hfi1/mad.c static u16 hfi1_lookup_pkey_value(struct hfi1_ibport *ibp, int pkey_idx) ibp 103 drivers/infiniband/hw/hfi1/mad.c struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); ibp 125 drivers/infiniband/hw/hfi1/mad.c static void cleanup_traps(struct hfi1_ibport *ibp, struct trap_node *trap) ibp 133 drivers/infiniband/hw/hfi1/mad.c spin_lock_irqsave(&ibp->rvp.lock, flags); ibp 134 drivers/infiniband/hw/hfi1/mad.c list_replace_init(&ibp->rvp.trap_lists[i].list, &trap_list); ibp 135 drivers/infiniband/hw/hfi1/mad.c ibp->rvp.trap_lists[i].list_len = 0; ibp 136 drivers/infiniband/hw/hfi1/mad.c spin_unlock_irqrestore(&ibp->rvp.lock, flags); ibp 156 drivers/infiniband/hw/hfi1/mad.c static struct trap_node *check_and_add_trap(struct hfi1_ibport *ibp, ibp 180 drivers/infiniband/hw/hfi1/mad.c spin_lock_irqsave(&ibp->rvp.lock, flags); ibp 181 drivers/infiniband/hw/hfi1/mad.c trap_list = &ibp->rvp.trap_lists[queue_id]; ibp 208 drivers/infiniband/hw/hfi1/mad.c if (!timer_pending(&ibp->rvp.trap_timer)) { ibp 216 drivers/infiniband/hw/hfi1/mad.c (1UL << ibp->rvp.subnet_timeout)) / 1000; ibp 217 drivers/infiniband/hw/hfi1/mad.c mod_timer(&ibp->rvp.trap_timer, ibp 223 drivers/infiniband/hw/hfi1/mad.c spin_unlock_irqrestore(&ibp->rvp.lock, flags); ibp 228 drivers/infiniband/hw/hfi1/mad.c static void subn_handle_opa_trap_repress(struct hfi1_ibport *ibp, ibp 239 drivers/infiniband/hw/hfi1/mad.c spin_lock_irqsave(&ibp->rvp.lock, flags); ibp 241 drivers/infiniband/hw/hfi1/mad.c trap_list = &ibp->rvp.trap_lists[i]; ibp 255 drivers/infiniband/hw/hfi1/mad.c spin_unlock_irqrestore(&ibp->rvp.lock, flags); ibp 258 drivers/infiniband/hw/hfi1/mad.c static void hfi1_update_sm_ah_attr(struct hfi1_ibport *ibp, ibp 262 drivers/infiniband/hw/hfi1/mad.c rdma_ah_set_port_num(attr, ppd_from_ibp(ibp)->port); ibp 270 drivers/infiniband/hw/hfi1/mad.c ibp->rvp.gid_prefix; ibp 275 drivers/infiniband/hw/hfi1/mad.c static int hfi1_modify_qp0_ah(struct hfi1_ibport *ibp, ibp 284 drivers/infiniband/hw/hfi1/mad.c hfi1_update_sm_ah_attr(ibp, &attr, dlid); ibp 286 drivers/infiniband/hw/hfi1/mad.c qp0 = rcu_dereference(ibp->rvp.qp[0]); ibp 293 drivers/infiniband/hw/hfi1/mad.c static struct ib_ah *hfi1_create_qp0_ah(struct hfi1_ibport *ibp, u32 dlid) ibp 298 drivers/infiniband/hw/hfi1/mad.c struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); ibp 304 drivers/infiniband/hw/hfi1/mad.c hfi1_update_sm_ah_attr(ibp, &attr, dlid); ibp 306 drivers/infiniband/hw/hfi1/mad.c qp0 = rcu_dereference(ibp->rvp.qp[0]); ibp 313 drivers/infiniband/hw/hfi1/mad.c static void send_trap(struct hfi1_ibport *ibp, struct trap_node *trap) ibp 320 drivers/infiniband/hw/hfi1/mad.c u32 qpn = ppd_from_ibp(ibp)->sm_trap_qp; ibp 322 drivers/infiniband/hw/hfi1/mad.c agent = ibp->rvp.send_agent; ibp 324 drivers/infiniband/hw/hfi1/mad.c cleanup_traps(ibp, trap); ibp 329 drivers/infiniband/hw/hfi1/mad.c if (driver_lstate(ppd_from_ibp(ibp)) != IB_PORT_ACTIVE) { ibp 330 drivers/infiniband/hw/hfi1/mad.c cleanup_traps(ibp, trap); ibp 335 drivers/infiniband/hw/hfi1/mad.c trap = check_and_add_trap(ibp, trap); ibp 339 drivers/infiniband/hw/hfi1/mad.c pkey_idx = hfi1_lookup_pkey_idx(ibp, LIM_MGMT_P_KEY); ibp 342 drivers/infiniband/hw/hfi1/mad.c __func__, hfi1_get_pkey(ibp, 1)); ibp 360 drivers/infiniband/hw/hfi1/mad.c ibp->rvp.tid++; ibp 362 drivers/infiniband/hw/hfi1/mad.c if (ibp->rvp.tid == 0) ibp 363 drivers/infiniband/hw/hfi1/mad.c ibp->rvp.tid++; ibp 364 drivers/infiniband/hw/hfi1/mad.c trap->tid = cpu_to_be64(ibp->rvp.tid); ibp 373 drivers/infiniband/hw/hfi1/mad.c spin_lock_irqsave(&ibp->rvp.lock, flags); ibp 374 drivers/infiniband/hw/hfi1/mad.c if (!ibp->rvp.sm_ah) { ibp 375 drivers/infiniband/hw/hfi1/mad.c if (ibp->rvp.sm_lid != be16_to_cpu(IB_LID_PERMISSIVE)) { ibp 378 drivers/infiniband/hw/hfi1/mad.c ah = hfi1_create_qp0_ah(ibp, ibp->rvp.sm_lid); ibp 380 drivers/infiniband/hw/hfi1/mad.c spin_unlock_irqrestore(&ibp->rvp.lock, flags); ibp 384 drivers/infiniband/hw/hfi1/mad.c ibp->rvp.sm_ah = ibah_to_rvtah(ah); ibp 386 drivers/infiniband/hw/hfi1/mad.c spin_unlock_irqrestore(&ibp->rvp.lock, flags); ibp 390 drivers/infiniband/hw/hfi1/mad.c send_buf->ah = &ibp->rvp.sm_ah->ibah; ibp 399 drivers/infiniband/hw/hfi1/mad.c spin_unlock_irqrestore(&ibp->rvp.lock, flags); ibp 406 drivers/infiniband/hw/hfi1/mad.c spin_unlock_irqrestore(&ibp->rvp.lock, flags); ibp 414 drivers/infiniband/hw/hfi1/mad.c struct hfi1_ibport *ibp = from_timer(ibp, t, rvp.trap_timer); ibp 420 drivers/infiniband/hw/hfi1/mad.c spin_lock_irqsave(&ibp->rvp.lock, flags); ibp 422 drivers/infiniband/hw/hfi1/mad.c trap = list_first_entry_or_null(&ibp->rvp.trap_lists[i].list, ibp 425 drivers/infiniband/hw/hfi1/mad.c spin_unlock_irqrestore(&ibp->rvp.lock, flags); ibp 428 drivers/infiniband/hw/hfi1/mad.c send_trap(ibp, trap); ibp 451 drivers/infiniband/hw/hfi1/mad.c void hfi1_bad_pkey(struct hfi1_ibport *ibp, u32 key, u32 sl, ibp 455 drivers/infiniband/hw/hfi1/mad.c u32 lid = ppd_from_ibp(ibp)->lid; ibp 457 drivers/infiniband/hw/hfi1/mad.c ibp->rvp.n_pkt_drops++; ibp 458 drivers/infiniband/hw/hfi1/mad.c ibp->rvp.pkey_violations++; ibp 474 drivers/infiniband/hw/hfi1/mad.c send_trap(ibp, trap); ibp 480 drivers/infiniband/hw/hfi1/mad.c static void bad_mkey(struct hfi1_ibport *ibp, struct ib_mad_hdr *mad, ibp 484 drivers/infiniband/hw/hfi1/mad.c u32 lid = ppd_from_ibp(ibp)->lid; ibp 512 drivers/infiniband/hw/hfi1/mad.c send_trap(ibp, trap); ibp 523 drivers/infiniband/hw/hfi1/mad.c struct hfi1_ibport *ibp = &dd->pport[port_num - 1].ibport_data; ibp 524 drivers/infiniband/hw/hfi1/mad.c u32 lid = ppd_from_ibp(ibp)->lid; ibp 533 drivers/infiniband/hw/hfi1/mad.c trap->data.ntc_144.new_cap_mask = cpu_to_be32(ibp->rvp.port_cap_flags); ibp 534 drivers/infiniband/hw/hfi1/mad.c trap->data.ntc_144.cap_mask3 = cpu_to_be16(ibp->rvp.port_cap3_flags); ibp 537 drivers/infiniband/hw/hfi1/mad.c send_trap(ibp, trap); ibp 543 drivers/infiniband/hw/hfi1/mad.c void hfi1_sys_guid_chg(struct hfi1_ibport *ibp) ibp 546 drivers/infiniband/hw/hfi1/mad.c u32 lid = ppd_from_ibp(ibp)->lid; ibp 557 drivers/infiniband/hw/hfi1/mad.c send_trap(ibp, trap); ibp 563 drivers/infiniband/hw/hfi1/mad.c void hfi1_node_desc_chg(struct hfi1_ibport *ibp) ibp 566 drivers/infiniband/hw/hfi1/mad.c u32 lid = ppd_from_ibp(ibp)->lid; ibp 579 drivers/infiniband/hw/hfi1/mad.c send_trap(ibp, trap); ibp 692 drivers/infiniband/hw/hfi1/mad.c static int check_mkey(struct hfi1_ibport *ibp, struct ib_mad_hdr *mad, ibp 700 drivers/infiniband/hw/hfi1/mad.c if (ibp->rvp.mkey_lease_timeout && ibp 701 drivers/infiniband/hw/hfi1/mad.c time_after_eq(jiffies, ibp->rvp.mkey_lease_timeout)) { ibp 703 drivers/infiniband/hw/hfi1/mad.c ibp->rvp.mkey_lease_timeout = 0; ibp 704 drivers/infiniband/hw/hfi1/mad.c ibp->rvp.mkeyprot = 0; ibp 707 drivers/infiniband/hw/hfi1/mad.c if ((mad_flags & IB_MAD_IGNORE_MKEY) || ibp->rvp.mkey == 0 || ibp 708 drivers/infiniband/hw/hfi1/mad.c ibp->rvp.mkey == mkey) ibp 712 drivers/infiniband/hw/hfi1/mad.c if (valid_mkey && ibp->rvp.mkey_lease_timeout && ibp 716 drivers/infiniband/hw/hfi1/mad.c ibp->rvp.mkey_lease_timeout = 0; ibp 722 drivers/infiniband/hw/hfi1/mad.c if (ibp->rvp.mkeyprot < 2) ibp 727 drivers/infiniband/hw/hfi1/mad.c if (ibp->rvp.mkey_violations != 0xFFFF) ibp 728 drivers/infiniband/hw/hfi1/mad.c ++ibp->rvp.mkey_violations; ibp 729 drivers/infiniband/hw/hfi1/mad.c if (!ibp->rvp.mkey_lease_timeout && ibp 730 drivers/infiniband/hw/hfi1/mad.c ibp->rvp.mkey_lease_period) ibp 731 drivers/infiniband/hw/hfi1/mad.c ibp->rvp.mkey_lease_timeout = jiffies + ibp 732 drivers/infiniband/hw/hfi1/mad.c ibp->rvp.mkey_lease_period * HZ; ibp 734 drivers/infiniband/hw/hfi1/mad.c bad_mkey(ibp, mad, mkey, dr_slid, return_path, ibp 803 drivers/infiniband/hw/hfi1/mad.c struct hfi1_ibport *ibp; ibp 822 drivers/infiniband/hw/hfi1/mad.c ibp = &ppd->ibport_data; ibp 834 drivers/infiniband/hw/hfi1/mad.c ibp->rvp.mkey != smp->mkey && ibp 835 drivers/infiniband/hw/hfi1/mad.c ibp->rvp.mkeyprot == 1)) ibp 836 drivers/infiniband/hw/hfi1/mad.c pi->mkey = ibp->rvp.mkey; ibp 838 drivers/infiniband/hw/hfi1/mad.c pi->subnet_prefix = ibp->rvp.gid_prefix; ibp 839 drivers/infiniband/hw/hfi1/mad.c pi->sm_lid = cpu_to_be32(ibp->rvp.sm_lid); ibp 840 drivers/infiniband/hw/hfi1/mad.c pi->ib_cap_mask = cpu_to_be32(ibp->rvp.port_cap_flags); ibp 841 drivers/infiniband/hw/hfi1/mad.c pi->mkey_lease_period = cpu_to_be16(ibp->rvp.mkey_lease_period); ibp 886 drivers/infiniband/hw/hfi1/mad.c pi->mkeyprotect_lmc = (ibp->rvp.mkeyprot << 6) | ppd->lmc; ibp 899 drivers/infiniband/hw/hfi1/mad.c pi->smsl = ibp->rvp.sm_sl & OPA_PI_MASK_SMSL; ibp 907 drivers/infiniband/hw/hfi1/mad.c pi->mkey_violations = cpu_to_be16(ibp->rvp.mkey_violations); ibp 909 drivers/infiniband/hw/hfi1/mad.c pi->pkey_violations = cpu_to_be16(ibp->rvp.pkey_violations); ibp 910 drivers/infiniband/hw/hfi1/mad.c pi->qkey_violations = cpu_to_be16(ibp->rvp.qkey_violations); ibp 913 drivers/infiniband/hw/hfi1/mad.c pi->vl.high_limit = cpu_to_be16(ibp->rvp.vl_high_limit); ibp 917 drivers/infiniband/hw/hfi1/mad.c pi->clientrereg_subnettimeout = ibp->rvp.subnet_timeout; ibp 983 drivers/infiniband/hw/hfi1/mad.c pi->opa_cap_mask = cpu_to_be16(ibp->rvp.port_cap3_flags); ibp 1359 drivers/infiniband/hw/hfi1/mad.c struct hfi1_ibport *ibp; ibp 1401 drivers/infiniband/hw/hfi1/mad.c ibp = &ppd->ibport_data; ibp 1407 drivers/infiniband/hw/hfi1/mad.c ibp->rvp.mkey = pi->mkey; ibp 1408 drivers/infiniband/hw/hfi1/mad.c if (ibp->rvp.gid_prefix != pi->subnet_prefix) { ibp 1409 drivers/infiniband/hw/hfi1/mad.c ibp->rvp.gid_prefix = pi->subnet_prefix; ibp 1413 drivers/infiniband/hw/hfi1/mad.c ibp->rvp.mkey_lease_period = be16_to_cpu(pi->mkey_lease_period); ibp 1453 drivers/infiniband/hw/hfi1/mad.c } else if (smlid != ibp->rvp.sm_lid || msl != ibp->rvp.sm_sl) { ibp 1455 drivers/infiniband/hw/hfi1/mad.c spin_lock_irqsave(&ibp->rvp.lock, flags); ibp 1456 drivers/infiniband/hw/hfi1/mad.c if (ibp->rvp.sm_ah) { ibp 1457 drivers/infiniband/hw/hfi1/mad.c if (smlid != ibp->rvp.sm_lid) ibp 1458 drivers/infiniband/hw/hfi1/mad.c hfi1_modify_qp0_ah(ibp, ibp->rvp.sm_ah, smlid); ibp 1459 drivers/infiniband/hw/hfi1/mad.c if (msl != ibp->rvp.sm_sl) ibp 1460 drivers/infiniband/hw/hfi1/mad.c rdma_ah_set_sl(&ibp->rvp.sm_ah->attr, msl); ibp 1462 drivers/infiniband/hw/hfi1/mad.c spin_unlock_irqrestore(&ibp->rvp.lock, flags); ibp 1463 drivers/infiniband/hw/hfi1/mad.c if (smlid != ibp->rvp.sm_lid) ibp 1464 drivers/infiniband/hw/hfi1/mad.c ibp->rvp.sm_lid = smlid; ibp 1465 drivers/infiniband/hw/hfi1/mad.c if (msl != ibp->rvp.sm_sl) ibp 1466 drivers/infiniband/hw/hfi1/mad.c ibp->rvp.sm_sl = msl; ibp 1520 drivers/infiniband/hw/hfi1/mad.c ibp->rvp.mkeyprot = ibp 1522 drivers/infiniband/hw/hfi1/mad.c ibp->rvp.vl_high_limit = be16_to_cpu(pi->vl.high_limit) & 0xFF; ibp 1524 drivers/infiniband/hw/hfi1/mad.c ibp->rvp.vl_high_limit); ibp 1584 drivers/infiniband/hw/hfi1/mad.c ibp->rvp.mkey_violations = 0; ibp 1587 drivers/infiniband/hw/hfi1/mad.c ibp->rvp.pkey_violations = 0; ibp 1590 drivers/infiniband/hw/hfi1/mad.c ibp->rvp.qkey_violations = 0; ibp 1592 drivers/infiniband/hw/hfi1/mad.c ibp->rvp.subnet_timeout = ibp 1831 drivers/infiniband/hw/hfi1/mad.c struct hfi1_ibport *ibp = to_iport(ibdev, port); ibp 1833 drivers/infiniband/hw/hfi1/mad.c size_t size = ARRAY_SIZE(ibp->sl_to_sc); /* == 32 */ ibp 1841 drivers/infiniband/hw/hfi1/mad.c for (i = 0; i < ARRAY_SIZE(ibp->sl_to_sc); i++) ibp 1842 drivers/infiniband/hw/hfi1/mad.c *p++ = ibp->sl_to_sc[i]; ibp 1854 drivers/infiniband/hw/hfi1/mad.c struct hfi1_ibport *ibp = to_iport(ibdev, port); ibp 1856 drivers/infiniband/hw/hfi1/mad.c size_t size = ARRAY_SIZE(ibp->sl_to_sc); ibp 1865 drivers/infiniband/hw/hfi1/mad.c for (i = 0; i < ARRAY_SIZE(ibp->sl_to_sc); i++) { ibp 1867 drivers/infiniband/hw/hfi1/mad.c if (ibp->sl_to_sc[i] != sc) { ibp 1868 drivers/infiniband/hw/hfi1/mad.c ibp->sl_to_sc[i] = sc; ibp 1871 drivers/infiniband/hw/hfi1/mad.c hfi1_error_port_qps(ibp, i); ibp 1883 drivers/infiniband/hw/hfi1/mad.c struct hfi1_ibport *ibp = to_iport(ibdev, port); ibp 1885 drivers/infiniband/hw/hfi1/mad.c size_t size = ARRAY_SIZE(ibp->sc_to_sl); /* == 32 */ ibp 1893 drivers/infiniband/hw/hfi1/mad.c for (i = 0; i < ARRAY_SIZE(ibp->sc_to_sl); i++) ibp 1894 drivers/infiniband/hw/hfi1/mad.c *p++ = ibp->sc_to_sl[i]; ibp 1906 drivers/infiniband/hw/hfi1/mad.c struct hfi1_ibport *ibp = to_iport(ibdev, port); ibp 1907 drivers/infiniband/hw/hfi1/mad.c size_t size = ARRAY_SIZE(ibp->sc_to_sl); ibp 1916 drivers/infiniband/hw/hfi1/mad.c for (i = 0; i < ARRAY_SIZE(ibp->sc_to_sl); i++) ibp 1917 drivers/infiniband/hw/hfi1/mad.c ibp->sc_to_sl[i] = *p++; ibp 2051 drivers/infiniband/hw/hfi1/mad.c struct hfi1_ibport *ibp; ibp 2060 drivers/infiniband/hw/hfi1/mad.c ibp = to_iport(ibdev, port); ibp 2061 drivers/infiniband/hw/hfi1/mad.c ppd = ppd_from_ibp(ibp); ibp 2094 drivers/infiniband/hw/hfi1/mad.c struct hfi1_ibport *ibp; ibp 2104 drivers/infiniband/hw/hfi1/mad.c ibp = to_iport(ibdev, port); ibp 2105 drivers/infiniband/hw/hfi1/mad.c ppd = ppd_from_ibp(ibp); ibp 2739 drivers/infiniband/hw/hfi1/mad.c struct hfi1_ibport *ibp = to_iport(ibdev, port); ibp 2740 drivers/infiniband/hw/hfi1/mad.c struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); ibp 2896 drivers/infiniband/hw/hfi1/mad.c struct hfi1_ibport *ibp = to_iport(ibdev, port); ibp 2897 drivers/infiniband/hw/hfi1/mad.c struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); ibp 2982 drivers/infiniband/hw/hfi1/mad.c struct hfi1_ibport *ibp = to_iport(ibdev, port); ibp 2983 drivers/infiniband/hw/hfi1/mad.c struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); ibp 3159 drivers/infiniband/hw/hfi1/mad.c struct hfi1_ibport *ibp = to_iport(ibdev, port); ibp 3160 drivers/infiniband/hw/hfi1/mad.c struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); ibp 3208 drivers/infiniband/hw/hfi1/mad.c struct hfi1_ibport *ibp; ibp 3249 drivers/infiniband/hw/hfi1/mad.c ibp = to_iport(ibdev, port_num); ibp 3250 drivers/infiniband/hw/hfi1/mad.c ppd = ppd_from_ibp(ibp); ibp 3477 drivers/infiniband/hw/hfi1/mad.c struct hfi1_ibport *ibp = to_iport(ibdev, port); ibp 3478 drivers/infiniband/hw/hfi1/mad.c struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); ibp 3711 drivers/infiniband/hw/hfi1/mad.c struct hfi1_ibport *ibp = to_iport(ibdev, port); ibp 3712 drivers/infiniband/hw/hfi1/mad.c struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); ibp 3736 drivers/infiniband/hw/hfi1/mad.c struct hfi1_ibport *ibp = to_iport(ibdev, port); ibp 3737 drivers/infiniband/hw/hfi1/mad.c struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); ibp 3828 drivers/infiniband/hw/hfi1/mad.c struct hfi1_ibport *ibp = to_iport(ibdev, port); ibp 3829 drivers/infiniband/hw/hfi1/mad.c struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); ibp 3866 drivers/infiniband/hw/hfi1/mad.c struct hfi1_ibport *ibp = to_iport(ibdev, port); ibp 3867 drivers/infiniband/hw/hfi1/mad.c struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); ibp 3934 drivers/infiniband/hw/hfi1/mad.c struct hfi1_ibport *ibp = to_iport(ibdev, port); ibp 3935 drivers/infiniband/hw/hfi1/mad.c struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); ibp 3985 drivers/infiniband/hw/hfi1/mad.c struct hfi1_ibport *ibp = to_iport(ibdev, port); ibp 3986 drivers/infiniband/hw/hfi1/mad.c struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); ibp 4097 drivers/infiniband/hw/hfi1/mad.c struct hfi1_ibport *ibp = to_iport(ibdev, port); ibp 4169 drivers/infiniband/hw/hfi1/mad.c if (ibp->rvp.port_cap_flags & IB_PORT_SM_DISABLED) ibp 4171 drivers/infiniband/hw/hfi1/mad.c if (ibp->rvp.port_cap_flags & IB_PORT_SM) ibp 4187 drivers/infiniband/hw/hfi1/mad.c struct hfi1_ibport *ibp = to_iport(ibdev, port); ibp 4239 drivers/infiniband/hw/hfi1/mad.c if (ibp->rvp.port_cap_flags & IB_PORT_SM_DISABLED) ibp 4241 drivers/infiniband/hw/hfi1/mad.c if (ibp->rvp.port_cap_flags & IB_PORT_SM) ibp 4380 drivers/infiniband/hw/hfi1/mad.c static int is_full_mgmt_pkey_in_table(struct hfi1_ibport *ibp) ibp 4383 drivers/infiniband/hw/hfi1/mad.c struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); ibp 4396 drivers/infiniband/hw/hfi1/mad.c static int is_local_mad(struct hfi1_ibport *ibp, const struct opa_mad *mad, ibp 4399 drivers/infiniband/hw/hfi1/mad.c struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); ibp 4421 drivers/infiniband/hw/hfi1/mad.c static int opa_local_smp_check(struct hfi1_ibport *ibp, ibp 4424 drivers/infiniband/hw/hfi1/mad.c struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); ibp 4492 drivers/infiniband/hw/hfi1/mad.c static int hfi1_pkey_validation_pma(struct hfi1_ibport *ibp, ibp 4496 drivers/infiniband/hw/hfi1/mad.c u16 pkey_value = hfi1_lookup_pkey_value(ibp, in_wc->pkey_index); ibp 4499 drivers/infiniband/hw/hfi1/mad.c if (!is_local_mad(ibp, in_mad, in_wc) && ibp 4506 drivers/infiniband/hw/hfi1/mad.c is_full_mgmt_pkey_in_table(ibp)) ibp 4518 drivers/infiniband/hw/hfi1/mad.c struct hfi1_ibport *ibp = to_iport(ibdev, port); ibp 4535 drivers/infiniband/hw/hfi1/mad.c ret = check_mkey(ibp, (struct ib_mad_hdr *)smp, mad_flags, smp->mkey, ibp 4604 drivers/infiniband/hw/hfi1/mad.c subn_handle_opa_trap_repress(ibp, smp); ibp 4622 drivers/infiniband/hw/hfi1/mad.c struct hfi1_ibport *ibp = to_iport(ibdev, port); ibp 4632 drivers/infiniband/hw/hfi1/mad.c ret = check_mkey(ibp, (struct ib_mad_hdr *)smp, mad_flags, ibp 4830 drivers/infiniband/hw/hfi1/mad.c struct hfi1_ibport *ibp = to_iport(ibdev, port); ibp 4832 drivers/infiniband/hw/hfi1/mad.c pkey_idx = hfi1_lookup_pkey_idx(ibp, LIM_MGMT_P_KEY); ibp 4835 drivers/infiniband/hw/hfi1/mad.c hfi1_get_pkey(ibp, 1)); ibp 4843 drivers/infiniband/hw/hfi1/mad.c local_mad = is_local_mad(ibp, in_mad, in_wc); ibp 4845 drivers/infiniband/hw/hfi1/mad.c ret = opa_local_smp_check(ibp, in_wc); ibp 4853 drivers/infiniband/hw/hfi1/mad.c ret = hfi1_pkey_validation_pma(ibp, in_mad, in_wc); ibp 261 drivers/infiniband/hw/hfi1/qp.c struct hfi1_ibport *ibp; ibp 273 drivers/infiniband/hw/hfi1/qp.c ibp = to_iport(qp->ibqp.device, qp->port_num); ibp 274 drivers/infiniband/hw/hfi1/qp.c ppd = ppd_from_ibp(ibp); ibp 321 drivers/infiniband/hw/hfi1/qp.c struct hfi1_ibport *ibp = to_iport(qp->ibqp.device, qp->port_num); ibp 344 drivers/infiniband/hw/hfi1/qp.c ppd = ppd_from_ibp(ibp); ibp 354 drivers/infiniband/hw/hfi1/qp.c if (ibp->sl_to_sc[rdma_ah_get_sl(&ah->attr)] == 0xf) ibp 381 drivers/infiniband/hw/hfi1/qp.c struct hfi1_ibport *ibp = ibp 383 drivers/infiniband/hw/hfi1/qp.c struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); ibp 517 drivers/infiniband/hw/hfi1/qp.c struct hfi1_ibport *ibp = ibp 520 drivers/infiniband/hw/hfi1/qp.c ibp->rvp.n_dmawait++; ibp 771 drivers/infiniband/hw/hfi1/qp.c struct hfi1_ibport *ibp = &dd->pport[n].ibport_data; ibp 774 drivers/infiniband/hw/hfi1/qp.c if (rcu_dereference(ibp->rvp.qp[0])) ibp 776 drivers/infiniband/hw/hfi1/qp.c if (rcu_dereference(ibp->rvp.qp[1])) ibp 860 drivers/infiniband/hw/hfi1/qp.c struct hfi1_ibport *ibp; ibp 863 drivers/infiniband/hw/hfi1/qp.c ibp = &dd->pport[qp->port_num - 1].ibport_data; ibp 864 drivers/infiniband/hw/hfi1/qp.c sc = ibp->sl_to_sc[rdma_ah_get_sl(&qp->remote_ah_attr)]; ibp 935 drivers/infiniband/hw/hfi1/qp.c struct hfi1_ibport *ibp = ibp 937 drivers/infiniband/hw/hfi1/qp.c struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); ibp 971 drivers/infiniband/hw/hfi1/qp.c void hfi1_error_port_qps(struct hfi1_ibport *ibp, u8 sl) ibp 973 drivers/infiniband/hw/hfi1/qp.c struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); ibp 161 drivers/infiniband/hw/hfi1/qp.h void hfi1_error_port_qps(struct hfi1_ibport *ibp, u8 sl); ibp 1241 drivers/infiniband/hw/hfi1/rc.c struct hfi1_ibport *ibp; ibp 1247 drivers/infiniband/hw/hfi1/rc.c ibp = rcd_to_iport(packet->rcd); ibp 1248 drivers/infiniband/hw/hfi1/rc.c this_cpu_inc(*ibp->rvp.rc_qacks); ibp 1268 drivers/infiniband/hw/hfi1/rc.c struct hfi1_ibport *ibp = rcd_to_iport(packet->rcd); ibp 1269 drivers/infiniband/hw/hfi1/rc.c struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); ibp 1282 drivers/infiniband/hw/hfi1/rc.c *hwords += hfi1_make_grh(ibp, &hdr->u.l.grh, ibp 1292 drivers/infiniband/hw/hfi1/rc.c pkey = hfi1_get_pkey(ibp, qp->s_pkey_index); ibp 1321 drivers/infiniband/hw/hfi1/rc.c struct hfi1_ibport *ibp = rcd_to_iport(packet->rcd); ibp 1322 drivers/infiniband/hw/hfi1/rc.c struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); ibp 1340 drivers/infiniband/hw/hfi1/rc.c *hwords += hfi1_make_grh(ibp, &hdr->u.l.grh, ibp 1349 drivers/infiniband/hw/hfi1/rc.c pkey = hfi1_get_pkey(ibp, qp->s_pkey_index); ibp 1391 drivers/infiniband/hw/hfi1/rc.c struct hfi1_ibport *ibp = rcd_to_iport(rcd); ibp 1393 drivers/infiniband/hw/hfi1/rc.c struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); ibp 1394 drivers/infiniband/hw/hfi1/rc.c u8 sc5 = ibp->sl_to_sc[rdma_ah_get_sl(&qp->remote_ah_attr)]; ibp 1611 drivers/infiniband/hw/hfi1/rc.c struct hfi1_ibport *ibp; ibp 1626 drivers/infiniband/hw/hfi1/rc.c struct hfi1_ibport *ibp = ibp 1634 drivers/infiniband/hw/hfi1/rc.c wqe = do_rc_completion(qp, wqe, ibp); ibp 1658 drivers/infiniband/hw/hfi1/rc.c ibp = to_iport(qp->ibqp.device, qp->port_num); ibp 1661 drivers/infiniband/hw/hfi1/rc.c ibp->rvp.n_rc_resends++; ibp 1663 drivers/infiniband/hw/hfi1/rc.c ibp->rvp.n_rc_resends += delta_psn(qp->s_psn, psn); ibp 1869 drivers/infiniband/hw/hfi1/rc.c struct hfi1_ibport *ibp) ibp 1889 drivers/infiniband/hw/hfi1/rc.c struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); ibp 1891 drivers/infiniband/hw/hfi1/rc.c this_cpu_inc(*ibp->rvp.rc_delayed_comp); ibp 1902 drivers/infiniband/hw/hfi1/rc.c sc5 = ibp->sl_to_sc[sl]; ibp 2010 drivers/infiniband/hw/hfi1/rc.c struct hfi1_ibport *ibp; ibp 2030 drivers/infiniband/hw/hfi1/rc.c ibp = rcd_to_iport(rcd); ibp 2107 drivers/infiniband/hw/hfi1/rc.c wqe = do_rc_completion(qp, wqe, ibp); ibp 2116 drivers/infiniband/hw/hfi1/rc.c this_cpu_inc(*ibp->rvp.rc_acks); ibp 2206 drivers/infiniband/hw/hfi1/rc.c ibp->rvp.n_rnr_naks++; ibp 2235 drivers/infiniband/hw/hfi1/rc.c ibp->rvp.n_rc_resends += delta_psn(qp->s_psn, psn); ibp 2249 drivers/infiniband/hw/hfi1/rc.c ibp->rvp.n_seq_naks++; ibp 2262 drivers/infiniband/hw/hfi1/rc.c ibp->rvp.n_other_naks++; ibp 2267 drivers/infiniband/hw/hfi1/rc.c ibp->rvp.n_other_naks++; ibp 2272 drivers/infiniband/hw/hfi1/rc.c ibp->rvp.n_other_naks++; ibp 2306 drivers/infiniband/hw/hfi1/rc.c static void rdma_seq_err(struct rvt_qp *qp, struct hfi1_ibport *ibp, u32 psn, ibp 2324 drivers/infiniband/hw/hfi1/rc.c wqe = do_rc_completion(qp, wqe, ibp); ibp 2327 drivers/infiniband/hw/hfi1/rc.c ibp->rvp.n_rdma_seq++; ibp 2351 drivers/infiniband/hw/hfi1/rc.c struct hfi1_ibport *ibp; ibp 2510 drivers/infiniband/hw/hfi1/rc.c ibp = rcd_to_iport(rcd); ibp 2511 drivers/infiniband/hw/hfi1/rc.c rdma_seq_err(qp, ibp, psn, rcd); ibp 2556 drivers/infiniband/hw/hfi1/rc.c struct hfi1_ibport *ibp = rcd_to_iport(rcd); ibp 2571 drivers/infiniband/hw/hfi1/rc.c ibp->rvp.n_rc_seqnak++; ibp 2603 drivers/infiniband/hw/hfi1/rc.c ibp->rvp.n_rc_dupreq++; ibp 2812 drivers/infiniband/hw/hfi1/rc.c struct hfi1_ibport *ibp = rcd_to_iport(rcd); ibp 2830 drivers/infiniband/hw/hfi1/rc.c if (hfi1_ruc_check_hdr(ibp, packet)) ibp 3256 drivers/infiniband/hw/hfi1/rc.c struct hfi1_ibport *ibp = rcd_to_iport(rcd); ibp 3261 drivers/infiniband/hw/hfi1/rc.c if (hfi1_ruc_check_hdr(ibp, packet)) ibp 3271 drivers/infiniband/hw/hfi1/rc.c ibp->rvp.n_rc_seqnak++; ibp 57 drivers/infiniband/hw/hfi1/rc.h struct hfi1_ibport *ibp); ibp 69 drivers/infiniband/hw/hfi1/ruc.c int hfi1_ruc_check_hdr(struct hfi1_ibport *ibp, struct hfi1_packet *packet) ibp 74 drivers/infiniband/hw/hfi1/ruc.c u8 sc5 = ibp->sl_to_sc[rdma_ah_get_sl(&qp->remote_ah_attr)]; ibp 94 drivers/infiniband/hw/hfi1/ruc.c guid = get_sguid(ibp, grh->sgid_index); ibp 95 drivers/infiniband/hw/hfi1/ruc.c if (!gid_ok(&packet->grh->dgid, ibp->rvp.gid_prefix, ibp 104 drivers/infiniband/hw/hfi1/ruc.c if (unlikely(rcv_pkey_check(ppd_from_ibp(ibp), pkey, ibp 106 drivers/infiniband/hw/hfi1/ruc.c hfi1_bad_pkey(ibp, pkey, sl, 0, qp->ibqp.qp_num, ibp 112 drivers/infiniband/hw/hfi1/ruc.c ppd_from_ibp(ibp)->port != ibp 131 drivers/infiniband/hw/hfi1/ruc.c guid = get_sguid(ibp, grh->sgid_index); ibp 132 drivers/infiniband/hw/hfi1/ruc.c if (!gid_ok(&packet->grh->dgid, ibp->rvp.gid_prefix, ibp 141 drivers/infiniband/hw/hfi1/ruc.c if (unlikely(rcv_pkey_check(ppd_from_ibp(ibp), pkey, ibp 143 drivers/infiniband/hw/hfi1/ruc.c hfi1_bad_pkey(ibp, pkey, sl, 0, qp->ibqp.qp_num, ibp 149 drivers/infiniband/hw/hfi1/ruc.c ppd_from_ibp(ibp)->port != qp->port_num) ibp 168 drivers/infiniband/hw/hfi1/ruc.c u32 hfi1_make_grh(struct hfi1_ibport *ibp, struct ib_grh *hdr, ibp 180 drivers/infiniband/hw/hfi1/ruc.c hdr->sgid.global.subnet_prefix = ibp->rvp.gid_prefix; ibp 183 drivers/infiniband/hw/hfi1/ruc.c get_sguid(ibp, grh->sgid_index) : ibp 184 drivers/infiniband/hw/hfi1/ruc.c get_sguid(ibp, HFI1_PORT_GUID_INDEX); ibp 279 drivers/infiniband/hw/hfi1/ruc.c struct hfi1_ibport *ibp = ps->ibp; ibp 280 drivers/infiniband/hw/hfi1/ruc.c struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); ibp 282 drivers/infiniband/hw/hfi1/ruc.c u16 pkey = hfi1_get_pkey(ibp, qp->s_pkey_index); ibp 305 drivers/infiniband/hw/hfi1/ruc.c hfi1_make_grh(ibp, grh, grd, ibp 367 drivers/infiniband/hw/hfi1/ruc.c struct hfi1_ibport *ibp = ps->ibp; ibp 368 drivers/infiniband/hw/hfi1/ruc.c u16 pkey = hfi1_get_pkey(ibp, qp->s_pkey_index); ibp 379 drivers/infiniband/hw/hfi1/ruc.c hfi1_make_grh(ibp, grh, ibp 411 drivers/infiniband/hw/hfi1/ruc.c ppd_from_ibp(ibp)->lid | ibp 541 drivers/infiniband/hw/hfi1/ruc.c ps.ibp = to_iport(qp->ibqp.device, qp->port_num); ibp 542 drivers/infiniband/hw/hfi1/ruc.c ps.ppd = ppd_from_ibp(ps.ibp); ibp 402 drivers/infiniband/hw/hfi1/sysfs.c struct hfi1_ibport *ibp = &ppd->ibport_data; ibp 404 drivers/infiniband/hw/hfi1/sysfs.c return sprintf(buf, "%u\n", ibp->sl_to_sc[sattr->sl]); ibp 609 drivers/infiniband/hw/hfi1/tid_rdma.c struct hfi1_ibport *ibp; ibp 618 drivers/infiniband/hw/hfi1/tid_rdma.c ibp = to_iport(qp->ibqp.device, qp->port_num); ibp 619 drivers/infiniband/hw/hfi1/tid_rdma.c ppd = ppd_from_ibp(ibp); ibp 1982 drivers/infiniband/hw/hfi1/tid_rdma.c struct hfi1_ibport *ibp = to_iport(qp->ibqp.device, qp->port_num); ibp 1997 drivers/infiniband/hw/hfi1/tid_rdma.c ibp->rvp.n_rc_seqnak++; ibp 2005 drivers/infiniband/hw/hfi1/tid_rdma.c ibp->rvp.n_rc_dupreq++; ibp 2225 drivers/infiniband/hw/hfi1/tid_rdma.c struct hfi1_ibport *ibp = to_iport(qp->ibqp.device, qp->port_num); ibp 2239 drivers/infiniband/hw/hfi1/tid_rdma.c if (hfi1_ruc_check_hdr(ibp, packet)) ibp 2655 drivers/infiniband/hw/hfi1/tid_rdma.c struct hfi1_ibport *ibp; ibp 2683 drivers/infiniband/hw/hfi1/tid_rdma.c ibp = to_iport(qp->ibqp.device, qp->port_num); ibp 2721 drivers/infiniband/hw/hfi1/tid_rdma.c wqe = do_rc_completion(qp, wqe, ibp); ibp 2841 drivers/infiniband/hw/hfi1/tid_rdma.c struct hfi1_ibport *ibp = &ppd->ibport_data; ibp 2880 drivers/infiniband/hw/hfi1/tid_rdma.c qp = rvt_lookup_qpn(rdi, &ibp->rvp, qp_num); ibp 2889 drivers/infiniband/hw/hfi1/tid_rdma.c ibp->rvp.n_pkt_drops++; ibp 3021 drivers/infiniband/hw/hfi1/tid_rdma.c ibp->rvp.n_rc_seqnak++; ibp 3648 drivers/infiniband/hw/hfi1/tid_rdma.c struct hfi1_ibport *ibp = to_iport(qp->ibqp.device, qp->port_num); ibp 3662 drivers/infiniband/hw/hfi1/tid_rdma.c if (hfi1_ruc_check_hdr(ibp, packet)) ibp 5342 drivers/infiniband/hw/hfi1/tid_rdma.c ps.ibp = to_iport(qp->ibqp.device, qp->port_num); ibp 5343 drivers/infiniband/hw/hfi1/tid_rdma.c ps.ppd = ppd_from_ibp(ps.ibp); ibp 5406 drivers/infiniband/hw/hfi1/tid_rdma.c struct hfi1_ibport *ibp = ibp 5408 drivers/infiniband/hw/hfi1/tid_rdma.c struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); ibp 307 drivers/infiniband/hw/hfi1/uc.c struct hfi1_ibport *ibp = rcd_to_iport(packet->rcd); ibp 322 drivers/infiniband/hw/hfi1/uc.c if (hfi1_ruc_check_hdr(ibp, packet)) ibp 583 drivers/infiniband/hw/hfi1/uc.c ibp->rvp.n_pkt_drops++; ibp 75 drivers/infiniband/hw/hfi1/ud.c struct hfi1_ibport *ibp = to_iport(sqp->ibqp.device, sqp->port_num); ibp 89 drivers/infiniband/hw/hfi1/ud.c qp = rvt_lookup_qpn(ib_to_rvt(sqp->ibqp.device), &ibp->rvp, ibp 92 drivers/infiniband/hw/hfi1/ud.c ibp->rvp.n_pkt_drops++; ibp 104 drivers/infiniband/hw/hfi1/ud.c ibp->rvp.n_pkt_drops++; ibp 109 drivers/infiniband/hw/hfi1/ud.c ppd = ppd_from_ibp(ibp); ibp 114 drivers/infiniband/hw/hfi1/ud.c u8 sc5 = ibp->sl_to_sc[rdma_ah_get_sl(ah_attr)]; ibp 116 drivers/infiniband/hw/hfi1/ud.c pkey = hfi1_get_pkey(ibp, sqp->s_pkey_index); ibp 122 drivers/infiniband/hw/hfi1/ud.c hfi1_bad_pkey(ibp, pkey, ibp 174 drivers/infiniband/hw/hfi1/ud.c ibp->rvp.n_vl15_dropped++; ibp 181 drivers/infiniband/hw/hfi1/ud.c ibp->rvp.n_pkt_drops++; ibp 213 drivers/infiniband/hw/hfi1/ud.c hfi1_make_grh(ibp, &grh, &grd, 0, 0); ibp 259 drivers/infiniband/hw/hfi1/ud.c ibp->rvp.n_loop_pkts++; ibp 271 drivers/infiniband/hw/hfi1/ud.c struct hfi1_ibport *ibp; ibp 273 drivers/infiniband/hw/hfi1/ud.c ibp = to_iport(qp->ibqp.device, qp->port_num); ibp 285 drivers/infiniband/hw/hfi1/ud.c *pkey = hfi1_get_pkey(ibp, rvt_get_swqe_pkey_index(wqe)); ibp 287 drivers/infiniband/hw/hfi1/ud.c *pkey = hfi1_get_pkey(ibp, qp->s_pkey_index); ibp 314 drivers/infiniband/hw/hfi1/ud.c struct hfi1_ibport *ibp; ibp 317 drivers/infiniband/hw/hfi1/ud.c ibp = to_iport(qp->ibqp.device, qp->port_num); ibp 318 drivers/infiniband/hw/hfi1/ud.c ppd = ppd_from_ibp(ibp); ibp 331 drivers/infiniband/hw/hfi1/ud.c hfi1_make_grh(ibp, grh, rdma_ah_read_grh(ah_attr), ibp 341 drivers/infiniband/hw/hfi1/ud.c sc5 = ibp->sl_to_sc[rdma_ah_get_sl(ah_attr)]; ibp 381 drivers/infiniband/hw/hfi1/ud.c struct hfi1_ibport *ibp; ibp 389 drivers/infiniband/hw/hfi1/ud.c ibp = to_iport(qp->ibqp.device, qp->port_num); ibp 390 drivers/infiniband/hw/hfi1/ud.c ppd = ppd_from_ibp(ibp); ibp 428 drivers/infiniband/hw/hfi1/ud.c ibp, grh, grd, ibp 438 drivers/infiniband/hw/hfi1/ud.c sc5 = ibp->sl_to_sc[rdma_ah_get_sl(ah_attr)]; ibp 453 drivers/infiniband/hw/hfi1/ud.c pkey = hfi1_get_pkey(ibp, rvt_get_swqe_pkey_index(wqe)); ibp 481 drivers/infiniband/hw/hfi1/ud.c struct hfi1_ibport *ibp; ibp 516 drivers/infiniband/hw/hfi1/ud.c ibp = to_iport(qp->ibqp.device, qp->port_num); ibp 517 drivers/infiniband/hw/hfi1/ud.c ppd = ppd_from_ibp(ibp); ibp 596 drivers/infiniband/hw/hfi1/ud.c int hfi1_lookup_pkey_idx(struct hfi1_ibport *ibp, u16 pkey) ibp 598 drivers/infiniband/hw/hfi1/ud.c struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); ibp 632 drivers/infiniband/hw/hfi1/ud.c void return_cnp_16B(struct hfi1_ibport *ibp, struct rvt_qp *qp, ibp 644 drivers/infiniband/hw/hfi1/ud.c struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); ibp 694 drivers/infiniband/hw/hfi1/ud.c void return_cnp(struct hfi1_ibport *ibp, struct rvt_qp *qp, u32 remote_qpn, ibp 701 drivers/infiniband/hw/hfi1/ud.c u8 sl = ibp->sc_to_sl[sc5]; ibp 706 drivers/infiniband/hw/hfi1/ud.c struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); ibp 767 drivers/infiniband/hw/hfi1/ud.c static int opa_smp_check(struct hfi1_ibport *ibp, u16 pkey, u8 sc5, ibp 770 drivers/infiniband/hw/hfi1/ud.c struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); ibp 827 drivers/infiniband/hw/hfi1/ud.c if (ibp->rvp.port_cap_flags & IB_PORT_SM) ibp 861 drivers/infiniband/hw/hfi1/ud.c struct hfi1_ibport *ibp = rcd_to_iport(packet->rcd); ibp 862 drivers/infiniband/hw/hfi1/ud.c struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); ibp 893 drivers/infiniband/hw/hfi1/ud.c sl_from_sc = ibp->sc_to_sl[sc5]; ibp 927 drivers/infiniband/hw/hfi1/ud.c hfi1_bad_pkey(ibp, ibp 935 drivers/infiniband/hw/hfi1/ud.c mgmt_pkey_idx = hfi1_lookup_pkey_idx(ibp, pkey); ibp 951 drivers/infiniband/hw/hfi1/ud.c if (opa_smp_check(ibp, pkey, sc5, qp, slid, smp)) ibp 961 drivers/infiniband/hw/hfi1/ud.c mgmt_pkey_idx = hfi1_lookup_pkey_idx(ibp, pkey); ibp 998 drivers/infiniband/hw/hfi1/ud.c ibp->rvp.n_vl15_dropped++; ibp 1061 drivers/infiniband/hw/hfi1/ud.c dlid & ((1 << ppd_from_ibp(ibp)->lmc) - 1); ibp 1068 drivers/infiniband/hw/hfi1/ud.c ibp->rvp.n_pkt_drops++; ibp 374 drivers/infiniband/hw/hfi1/verbs.c struct hfi1_ibport *ibp = &ppd->ibport_data; ibp 401 drivers/infiniband/hw/hfi1/verbs.c packet->qp = rvt_lookup_qpn(rdi, &ibp->rvp, qp_num); ibp 419 drivers/infiniband/hw/hfi1/verbs.c ibp->rvp.n_pkt_drops++; ibp 428 drivers/infiniband/hw/hfi1/verbs.c struct hfi1_ibport *ibp = &ppd->ibport_data; ibp 455 drivers/infiniband/hw/hfi1/verbs.c packet->qp = rvt_lookup_qpn(rdi, &ibp->rvp, qp_num); ibp 473 drivers/infiniband/hw/hfi1/verbs.c ibp->rvp.n_pkt_drops++; ibp 500 drivers/infiniband/hw/hfi1/verbs.c struct hfi1_ibport *ibp = rcd_to_iport(rcd); ibp 513 drivers/infiniband/hw/hfi1/verbs.c mcast = rvt_mcast_find(&ibp->rvp, ibp 528 drivers/infiniband/hw/hfi1/verbs.c ibp->rvp.n_pkt_drops++; ibp 547 drivers/infiniband/hw/hfi1/verbs.c packet->qp = rvt_lookup_qpn(rdi, &ibp->rvp, qp_num); ibp 559 drivers/infiniband/hw/hfi1/verbs.c ibp->rvp.n_pkt_drops++; ibp 567 drivers/infiniband/hw/hfi1/verbs.c ibp->rvp.n_pkt_drops++; ibp 1464 drivers/infiniband/hw/hfi1/verbs.c struct hfi1_ibport *ibp = &dd->pport[i].ibport_data; ibp 1466 drivers/infiniband/hw/hfi1/verbs.c hfi1_node_desc_chg(ibp); ibp 1474 drivers/infiniband/hw/hfi1/verbs.c struct hfi1_ibport *ibp = &dd->pport[i].ibport_data; ibp 1476 drivers/infiniband/hw/hfi1/verbs.c hfi1_sys_guid_chg(ibp); ibp 1502 drivers/infiniband/hw/hfi1/verbs.c struct hfi1_ibport *ibp = container_of(rvp, struct hfi1_ibport, rvp); ibp 1507 drivers/infiniband/hw/hfi1/verbs.c *guid = get_sguid(ibp, guid_index); ibp 1516 drivers/infiniband/hw/hfi1/verbs.c struct hfi1_ibport *ibp = to_iport(ibdev, rdma_ah_get_port_num(ah)); ibp 1518 drivers/infiniband/hw/hfi1/verbs.c return ibp->sl_to_sc[rdma_ah_get_sl(ah)]; ibp 1523 drivers/infiniband/hw/hfi1/verbs.c struct hfi1_ibport *ibp; ibp 1534 drivers/infiniband/hw/hfi1/verbs.c ibp = to_iport(ibdev, rdma_ah_get_port_num(ah_attr)); ibp 1535 drivers/infiniband/hw/hfi1/verbs.c ppd = ppd_from_ibp(ibp); ibp 1539 drivers/infiniband/hw/hfi1/verbs.c if (sl >= ARRAY_SIZE(ibp->sl_to_sc)) ibp 1541 drivers/infiniband/hw/hfi1/verbs.c sl = array_index_nospec(sl, ARRAY_SIZE(ibp->sl_to_sc)); ibp 1543 drivers/infiniband/hw/hfi1/verbs.c sc5 = ibp->sl_to_sc[sl]; ibp 1553 drivers/infiniband/hw/hfi1/verbs.c struct hfi1_ibport *ibp; ibp 1564 drivers/infiniband/hw/hfi1/verbs.c ibp = to_iport(ibdev, rdma_ah_get_port_num(ah_attr)); ibp 1565 drivers/infiniband/hw/hfi1/verbs.c ppd = ppd_from_ibp(ibp); ibp 1566 drivers/infiniband/hw/hfi1/verbs.c sc5 = ibp->sl_to_sc[rdma_ah_get_sl(&ah->attr)]; ibp 1586 drivers/infiniband/hw/hfi1/verbs.c struct hfi1_ibport *ibp = &ppd->ibport_data; ibp 1587 drivers/infiniband/hw/hfi1/verbs.c size_t sz = ARRAY_SIZE(ibp->sl_to_sc); ibp 1591 drivers/infiniband/hw/hfi1/verbs.c ibp->sl_to_sc[i] = i; ibp 1592 drivers/infiniband/hw/hfi1/verbs.c ibp->sc_to_sl[i] = i; ibp 1596 drivers/infiniband/hw/hfi1/verbs.c INIT_LIST_HEAD(&ibp->rvp.trap_lists[i].list); ibp 1597 drivers/infiniband/hw/hfi1/verbs.c timer_setup(&ibp->rvp.trap_timer, hfi1_handle_trap_timer, 0); ibp 1599 drivers/infiniband/hw/hfi1/verbs.c spin_lock_init(&ibp->rvp.lock); ibp 1601 drivers/infiniband/hw/hfi1/verbs.c ibp->rvp.gid_prefix = IB_DEFAULT_GID_PREFIX; ibp 1602 drivers/infiniband/hw/hfi1/verbs.c ibp->rvp.sm_lid = 0; ibp 1607 drivers/infiniband/hw/hfi1/verbs.c ibp->rvp.port_cap_flags = IB_PORT_AUTO_MIGR_SUP | ibp 1609 drivers/infiniband/hw/hfi1/verbs.c ibp->rvp.port_cap3_flags = OPA_CAP_MASK3_IsSharedSpaceSupported; ibp 1610 drivers/infiniband/hw/hfi1/verbs.c ibp->rvp.pma_counter_select[0] = IB_PMA_PORT_XMIT_DATA; ibp 1611 drivers/infiniband/hw/hfi1/verbs.c ibp->rvp.pma_counter_select[1] = IB_PMA_PORT_RCV_DATA; ibp 1612 drivers/infiniband/hw/hfi1/verbs.c ibp->rvp.pma_counter_select[2] = IB_PMA_PORT_XMIT_PKTS; ibp 1613 drivers/infiniband/hw/hfi1/verbs.c ibp->rvp.pma_counter_select[3] = IB_PMA_PORT_RCV_PKTS; ibp 1614 drivers/infiniband/hw/hfi1/verbs.c ibp->rvp.pma_counter_select[4] = IB_PMA_PORT_XMIT_WAIT; ibp 1616 drivers/infiniband/hw/hfi1/verbs.c RCU_INIT_POINTER(ibp->rvp.qp[0], NULL); ibp 1617 drivers/infiniband/hw/hfi1/verbs.c RCU_INIT_POINTER(ibp->rvp.qp[1], NULL); ibp 1774 drivers/infiniband/hw/hfi1/verbs.c struct hfi1_ibport *ibp = to_iport(ibdev, port); ibp 1776 drivers/infiniband/hw/hfi1/verbs.c hfi1_read_portcntrs(ppd_from_ibp(ibp), NULL, &values); ibp 1808 drivers/infiniband/hw/hfi1/verbs.c struct hfi1_ibport *ibp = &ppd->ibport_data; ibp 1829 drivers/infiniband/hw/hfi1/verbs.c ibdev->node_guid = get_sguid(ibp, HFI1_PORT_GUID_INDEX); ibp 1976 drivers/infiniband/hw/hfi1/verbs.c struct hfi1_ibport *ibp = rcd_to_iport(packet->rcd); ibp 1977 drivers/infiniband/hw/hfi1/verbs.c struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); ibp 2001 drivers/infiniband/hw/hfi1/verbs.c ibp->rvp.n_pkt_drops++; ibp 2006 drivers/infiniband/hw/hfi1/verbs.c sl = ibp->sc_to_sl[sc5]; ibp 234 drivers/infiniband/hw/hfi1/verbs.h struct hfi1_ibport *ibp; ibp 326 drivers/infiniband/hw/hfi1/verbs.h void hfi1_bad_pkey(struct hfi1_ibport *ibp, u32 key, u32 sl, ibp 329 drivers/infiniband/hw/hfi1/verbs.h void hfi1_sys_guid_chg(struct hfi1_ibport *ibp); ibp 330 drivers/infiniband/hw/hfi1/verbs.h void hfi1_node_desc_chg(struct hfi1_ibport *ibp); ibp 424 drivers/infiniband/hw/hfi1/verbs.h int hfi1_lookup_pkey_idx(struct hfi1_ibport *ibp, u16 pkey); ibp 440 drivers/infiniband/hw/hfi1/verbs.h int hfi1_ruc_check_hdr(struct hfi1_ibport *ibp, struct hfi1_packet *packet); ibp 442 drivers/infiniband/hw/hfi1/verbs.h u32 hfi1_make_grh(struct hfi1_ibport *ibp, struct ib_grh *hdr, ibp 1198 drivers/infiniband/hw/qib/qib.h static inline struct qib_pportdata *ppd_from_ibp(struct qib_ibport *ibp) ibp 1200 drivers/infiniband/hw/qib/qib.h return container_of(ibp, struct qib_pportdata, ibport_data); ibp 303 drivers/infiniband/hw/qib/qib_driver.c struct qib_ibport *ibp = &ppd->ibport_data; ibp 351 drivers/infiniband/hw/qib/qib_driver.c qp = rvt_lookup_qpn(rdi, &ibp->rvp, qp_num); ibp 366 drivers/infiniband/hw/qib/qib_driver.c ibp->rvp.n_pkt_drops++; ibp 374 drivers/infiniband/hw/qib/qib_driver.c ibp, hdr, ibp 386 drivers/infiniband/hw/qib/qib_driver.c ibp->rvp.n_rc_seqnak++; ibp 2914 drivers/infiniband/hw/qib/qib_iba6120.c struct qib_ibport *ibp = &ppd->ibport_data; ibp 2917 drivers/infiniband/hw/qib/qib_iba6120.c spin_lock_irqsave(&ibp->rvp.lock, flags); ibp 2923 drivers/infiniband/hw/qib/qib_iba6120.c jiffies + usecs_to_jiffies(ibp->rvp.pma_sample_interval)); ibp 2936 drivers/infiniband/hw/qib/qib_iba6120.c spin_unlock_irqrestore(&ibp->rvp.lock, flags); ibp 5433 drivers/infiniband/hw/qib/qib_iba7322.c struct qib_ibport *ibp = &ppd->ibport_data; ibp 5440 drivers/infiniband/hw/qib/qib_iba7322.c agent = ibp->rvp.send_agent; ibp 5450 drivers/infiniband/hw/qib/qib_iba7322.c if (!ibp->smi_ah) { ibp 5453 drivers/infiniband/hw/qib/qib_iba7322.c ah = qib_create_qp0_ah(ibp, be16_to_cpu(IB_LID_PERMISSIVE)); ibp 5458 drivers/infiniband/hw/qib/qib_iba7322.c ibp->smi_ah = ibah_to_rvtah(ah); ibp 5462 drivers/infiniband/hw/qib/qib_iba7322.c send_buf->ah = &ibp->smi_ah->ibah; ibp 64 drivers/infiniband/hw/qib/qib_mad.c static void qib_send_trap(struct qib_ibport *ibp, void *data, unsigned len) ibp 73 drivers/infiniband/hw/qib/qib_mad.c agent = ibp->rvp.send_agent; ibp 78 drivers/infiniband/hw/qib/qib_mad.c if (!(ppd_from_ibp(ibp)->lflags & QIBL_LINKACTIVE)) ibp 82 drivers/infiniband/hw/qib/qib_mad.c if (ibp->rvp.trap_timeout && ibp 83 drivers/infiniband/hw/qib/qib_mad.c time_before(jiffies, ibp->rvp.trap_timeout)) ibp 97 drivers/infiniband/hw/qib/qib_mad.c ibp->rvp.tid++; ibp 98 drivers/infiniband/hw/qib/qib_mad.c smp->tid = cpu_to_be64(ibp->rvp.tid); ibp 103 drivers/infiniband/hw/qib/qib_mad.c spin_lock_irqsave(&ibp->rvp.lock, flags); ibp 104 drivers/infiniband/hw/qib/qib_mad.c if (!ibp->rvp.sm_ah) { ibp 105 drivers/infiniband/hw/qib/qib_mad.c if (ibp->rvp.sm_lid != be16_to_cpu(IB_LID_PERMISSIVE)) { ibp 108 drivers/infiniband/hw/qib/qib_mad.c ah = qib_create_qp0_ah(ibp, (u16)ibp->rvp.sm_lid); ibp 113 drivers/infiniband/hw/qib/qib_mad.c ibp->rvp.sm_ah = ibah_to_rvtah(ah); ibp 119 drivers/infiniband/hw/qib/qib_mad.c send_buf->ah = &ibp->rvp.sm_ah->ibah; ibp 122 drivers/infiniband/hw/qib/qib_mad.c spin_unlock_irqrestore(&ibp->rvp.lock, flags); ibp 128 drivers/infiniband/hw/qib/qib_mad.c timeout = (4096 * (1UL << ibp->rvp.subnet_timeout)) / 1000; ibp 129 drivers/infiniband/hw/qib/qib_mad.c ibp->rvp.trap_timeout = jiffies + usecs_to_jiffies(timeout); ibp 132 drivers/infiniband/hw/qib/qib_mad.c ibp->rvp.trap_timeout = 0; ibp 139 drivers/infiniband/hw/qib/qib_mad.c void qib_bad_pkey(struct qib_ibport *ibp, u32 key, u32 sl, ibp 144 drivers/infiniband/hw/qib/qib_mad.c ibp->rvp.n_pkt_drops++; ibp 145 drivers/infiniband/hw/qib/qib_mad.c ibp->rvp.pkey_violations++; ibp 152 drivers/infiniband/hw/qib/qib_mad.c data.issuer_lid = cpu_to_be16(ppd_from_ibp(ibp)->lid); ibp 161 drivers/infiniband/hw/qib/qib_mad.c qib_send_trap(ibp, &data, sizeof(data)); ibp 167 drivers/infiniband/hw/qib/qib_mad.c static void qib_bad_mkey(struct qib_ibport *ibp, struct ib_smp *smp) ibp 176 drivers/infiniband/hw/qib/qib_mad.c data.issuer_lid = cpu_to_be16(ppd_from_ibp(ibp)->lid); ibp 200 drivers/infiniband/hw/qib/qib_mad.c qib_send_trap(ibp, &data, sizeof(data)); ibp 210 drivers/infiniband/hw/qib/qib_mad.c struct qib_ibport *ibp = &dd->pport[port_num - 1].ibport_data; ibp 217 drivers/infiniband/hw/qib/qib_mad.c data.issuer_lid = cpu_to_be16(ppd_from_ibp(ibp)->lid); ibp 222 drivers/infiniband/hw/qib/qib_mad.c cpu_to_be32(ibp->rvp.port_cap_flags); ibp 223 drivers/infiniband/hw/qib/qib_mad.c qib_send_trap(ibp, &data, sizeof(data)); ibp 229 drivers/infiniband/hw/qib/qib_mad.c void qib_sys_guid_chg(struct qib_ibport *ibp) ibp 237 drivers/infiniband/hw/qib/qib_mad.c data.issuer_lid = cpu_to_be16(ppd_from_ibp(ibp)->lid); ibp 243 drivers/infiniband/hw/qib/qib_mad.c qib_send_trap(ibp, &data, sizeof(data)); ibp 249 drivers/infiniband/hw/qib/qib_mad.c void qib_node_desc_chg(struct qib_ibport *ibp) ibp 257 drivers/infiniband/hw/qib/qib_mad.c data.issuer_lid = cpu_to_be16(ppd_from_ibp(ibp)->lid); ibp 264 drivers/infiniband/hw/qib/qib_mad.c qib_send_trap(ibp, &data, sizeof(data)); ibp 327 drivers/infiniband/hw/qib/qib_mad.c struct qib_ibport *ibp = &ppd->ibport_data; ibp 338 drivers/infiniband/hw/qib/qib_mad.c p[i] = ibp->guids[i - 1]; ibp 406 drivers/infiniband/hw/qib/qib_mad.c static int check_mkey(struct qib_ibport *ibp, struct ib_smp *smp, int mad_flags) ibp 412 drivers/infiniband/hw/qib/qib_mad.c if (ibp->rvp.mkey_lease_timeout && ibp 413 drivers/infiniband/hw/qib/qib_mad.c time_after_eq(jiffies, ibp->rvp.mkey_lease_timeout)) { ibp 415 drivers/infiniband/hw/qib/qib_mad.c ibp->rvp.mkey_lease_timeout = 0; ibp 416 drivers/infiniband/hw/qib/qib_mad.c ibp->rvp.mkeyprot = 0; ibp 419 drivers/infiniband/hw/qib/qib_mad.c if ((mad_flags & IB_MAD_IGNORE_MKEY) || ibp->rvp.mkey == 0 || ibp 420 drivers/infiniband/hw/qib/qib_mad.c ibp->rvp.mkey == smp->mkey) ibp 424 drivers/infiniband/hw/qib/qib_mad.c if (valid_mkey && ibp->rvp.mkey_lease_timeout && ibp 428 drivers/infiniband/hw/qib/qib_mad.c ibp->rvp.mkey_lease_timeout = 0; ibp 434 drivers/infiniband/hw/qib/qib_mad.c if (ibp->rvp.mkeyprot < 2) ibp 439 drivers/infiniband/hw/qib/qib_mad.c if (ibp->rvp.mkey_violations != 0xFFFF) ibp 440 drivers/infiniband/hw/qib/qib_mad.c ++ibp->rvp.mkey_violations; ibp 441 drivers/infiniband/hw/qib/qib_mad.c if (!ibp->rvp.mkey_lease_timeout && ibp 442 drivers/infiniband/hw/qib/qib_mad.c ibp->rvp.mkey_lease_period) ibp 443 drivers/infiniband/hw/qib/qib_mad.c ibp->rvp.mkey_lease_timeout = jiffies + ibp 444 drivers/infiniband/hw/qib/qib_mad.c ibp->rvp.mkey_lease_period * HZ; ibp 446 drivers/infiniband/hw/qib/qib_mad.c qib_bad_mkey(ibp, smp); ibp 459 drivers/infiniband/hw/qib/qib_mad.c struct qib_ibport *ibp; ibp 475 drivers/infiniband/hw/qib/qib_mad.c ibp = to_iport(ibdev, port_num); ibp 476 drivers/infiniband/hw/qib/qib_mad.c ret = check_mkey(ibp, smp, 0); ibp 487 drivers/infiniband/hw/qib/qib_mad.c ibp = &ppd->ibport_data; ibp 494 drivers/infiniband/hw/qib/qib_mad.c ibp->rvp.mkey != smp->mkey && ibp 495 drivers/infiniband/hw/qib/qib_mad.c ibp->rvp.mkeyprot == 1)) ibp 496 drivers/infiniband/hw/qib/qib_mad.c pip->mkey = ibp->rvp.mkey; ibp 497 drivers/infiniband/hw/qib/qib_mad.c pip->gid_prefix = ibp->rvp.gid_prefix; ibp 499 drivers/infiniband/hw/qib/qib_mad.c pip->sm_lid = cpu_to_be16((u16)ibp->rvp.sm_lid); ibp 500 drivers/infiniband/hw/qib/qib_mad.c pip->cap_mask = cpu_to_be32(ibp->rvp.port_cap_flags); ibp 502 drivers/infiniband/hw/qib/qib_mad.c pip->mkey_lease_period = cpu_to_be16(ibp->rvp.mkey_lease_period); ibp 513 drivers/infiniband/hw/qib/qib_mad.c pip->mkeyprot_resv_lmc = (ibp->rvp.mkeyprot << 6) | ppd->lmc; ibp 534 drivers/infiniband/hw/qib/qib_mad.c pip->neighbormtu_mastersmsl = (mtu << 4) | ibp->rvp.sm_sl; ibp 536 drivers/infiniband/hw/qib/qib_mad.c pip->vl_high_limit = ibp->rvp.vl_high_limit; ibp 547 drivers/infiniband/hw/qib/qib_mad.c pip->mkey_violations = cpu_to_be16(ibp->rvp.mkey_violations); ibp 549 drivers/infiniband/hw/qib/qib_mad.c pip->pkey_violations = cpu_to_be16(ibp->rvp.pkey_violations); ibp 550 drivers/infiniband/hw/qib/qib_mad.c pip->qkey_violations = cpu_to_be16(ibp->rvp.qkey_violations); ibp 553 drivers/infiniband/hw/qib/qib_mad.c pip->clientrereg_resv_subnetto = ibp->rvp.subnet_timeout; ibp 560 drivers/infiniband/hw/qib/qib_mad.c if (ibp->rvp.port_cap_flags & IB_PORT_LINK_LATENCY_SUP) { ibp 632 drivers/infiniband/hw/qib/qib_mad.c struct qib_ibport *ibp = &ppd->ibport_data; ibp 637 drivers/infiniband/hw/qib/qib_mad.c ibp->guids[i - 1] = p[i]; ibp 660 drivers/infiniband/hw/qib/qib_mad.c struct qib_ibport *ibp; ibp 686 drivers/infiniband/hw/qib/qib_mad.c ibp = &ppd->ibport_data; ibp 690 drivers/infiniband/hw/qib/qib_mad.c ibp->rvp.mkey = pip->mkey; ibp 691 drivers/infiniband/hw/qib/qib_mad.c ibp->rvp.gid_prefix = pip->gid_prefix; ibp 692 drivers/infiniband/hw/qib/qib_mad.c ibp->rvp.mkey_lease_period = be16_to_cpu(pip->mkey_lease_period); ibp 713 drivers/infiniband/hw/qib/qib_mad.c else if (smlid != ibp->rvp.sm_lid || msl != ibp->rvp.sm_sl) { ibp 714 drivers/infiniband/hw/qib/qib_mad.c spin_lock_irqsave(&ibp->rvp.lock, flags); ibp 715 drivers/infiniband/hw/qib/qib_mad.c if (ibp->rvp.sm_ah) { ibp 716 drivers/infiniband/hw/qib/qib_mad.c if (smlid != ibp->rvp.sm_lid) ibp 717 drivers/infiniband/hw/qib/qib_mad.c rdma_ah_set_dlid(&ibp->rvp.sm_ah->attr, ibp 719 drivers/infiniband/hw/qib/qib_mad.c if (msl != ibp->rvp.sm_sl) ibp 720 drivers/infiniband/hw/qib/qib_mad.c rdma_ah_set_sl(&ibp->rvp.sm_ah->attr, msl); ibp 722 drivers/infiniband/hw/qib/qib_mad.c spin_unlock_irqrestore(&ibp->rvp.lock, flags); ibp 723 drivers/infiniband/hw/qib/qib_mad.c if (smlid != ibp->rvp.sm_lid) ibp 724 drivers/infiniband/hw/qib/qib_mad.c ibp->rvp.sm_lid = smlid; ibp 725 drivers/infiniband/hw/qib/qib_mad.c if (msl != ibp->rvp.sm_sl) ibp 726 drivers/infiniband/hw/qib/qib_mad.c ibp->rvp.sm_sl = msl; ibp 774 drivers/infiniband/hw/qib/qib_mad.c ibp->rvp.mkeyprot = pip->mkeyprot_resv_lmc >> 6; ibp 775 drivers/infiniband/hw/qib/qib_mad.c ibp->rvp.vl_high_limit = pip->vl_high_limit; ibp 777 drivers/infiniband/hw/qib/qib_mad.c ibp->rvp.vl_high_limit); ibp 795 drivers/infiniband/hw/qib/qib_mad.c ibp->rvp.mkey_violations = 0; ibp 798 drivers/infiniband/hw/qib/qib_mad.c ibp->rvp.pkey_violations = 0; ibp 801 drivers/infiniband/hw/qib/qib_mad.c ibp->rvp.qkey_violations = 0; ibp 810 drivers/infiniband/hw/qib/qib_mad.c ibp->rvp.subnet_timeout = pip->clientrereg_resv_subnetto & 0x1F; ibp 1060 drivers/infiniband/hw/qib/qib_mad.c struct qib_ibport *ibp = to_iport(ibdev, port); ibp 1066 drivers/infiniband/hw/qib/qib_mad.c if (!(ibp->rvp.port_cap_flags & IB_PORT_SL_MAP_SUP)) ibp 1069 drivers/infiniband/hw/qib/qib_mad.c for (i = 0; i < ARRAY_SIZE(ibp->sl_to_vl); i += 2) ibp 1070 drivers/infiniband/hw/qib/qib_mad.c *p++ = (ibp->sl_to_vl[i] << 4) | ibp->sl_to_vl[i + 1]; ibp 1078 drivers/infiniband/hw/qib/qib_mad.c struct qib_ibport *ibp = to_iport(ibdev, port); ibp 1082 drivers/infiniband/hw/qib/qib_mad.c if (!(ibp->rvp.port_cap_flags & IB_PORT_SL_MAP_SUP)) { ibp 1087 drivers/infiniband/hw/qib/qib_mad.c for (i = 0; i < ARRAY_SIZE(ibp->sl_to_vl); i += 2, p++) { ibp 1088 drivers/infiniband/hw/qib/qib_mad.c ibp->sl_to_vl[i] = *p >> 4; ibp 1089 drivers/infiniband/hw/qib/qib_mad.c ibp->sl_to_vl[i + 1] = *p & 0xF; ibp 1189 drivers/infiniband/hw/qib/qib_mad.c struct qib_ibport *ibp = to_iport(ibdev, port); ibp 1190 drivers/infiniband/hw/qib/qib_mad.c struct qib_pportdata *ppd = ppd_from_ibp(ibp); ibp 1201 drivers/infiniband/hw/qib/qib_mad.c spin_lock_irqsave(&ibp->rvp.lock, flags); ibp 1206 drivers/infiniband/hw/qib/qib_mad.c p->sample_start = cpu_to_be32(ibp->rvp.pma_sample_start); ibp 1207 drivers/infiniband/hw/qib/qib_mad.c p->sample_interval = cpu_to_be32(ibp->rvp.pma_sample_interval); ibp 1208 drivers/infiniband/hw/qib/qib_mad.c p->tag = cpu_to_be16(ibp->rvp.pma_tag); ibp 1209 drivers/infiniband/hw/qib/qib_mad.c p->counter_select[0] = ibp->rvp.pma_counter_select[0]; ibp 1210 drivers/infiniband/hw/qib/qib_mad.c p->counter_select[1] = ibp->rvp.pma_counter_select[1]; ibp 1211 drivers/infiniband/hw/qib/qib_mad.c p->counter_select[2] = ibp->rvp.pma_counter_select[2]; ibp 1212 drivers/infiniband/hw/qib/qib_mad.c p->counter_select[3] = ibp->rvp.pma_counter_select[3]; ibp 1213 drivers/infiniband/hw/qib/qib_mad.c p->counter_select[4] = ibp->rvp.pma_counter_select[4]; ibp 1214 drivers/infiniband/hw/qib/qib_mad.c spin_unlock_irqrestore(&ibp->rvp.lock, flags); ibp 1227 drivers/infiniband/hw/qib/qib_mad.c struct qib_ibport *ibp = to_iport(ibdev, port); ibp 1228 drivers/infiniband/hw/qib/qib_mad.c struct qib_pportdata *ppd = ppd_from_ibp(ibp); ibp 1239 drivers/infiniband/hw/qib/qib_mad.c spin_lock_irqsave(&ibp->rvp.lock, flags); ibp 1248 drivers/infiniband/hw/qib/qib_mad.c ibp->rvp.pma_sample_start = be32_to_cpu(p->sample_start); ibp 1249 drivers/infiniband/hw/qib/qib_mad.c ibp->rvp.pma_sample_interval = be32_to_cpu(p->sample_interval); ibp 1250 drivers/infiniband/hw/qib/qib_mad.c ibp->rvp.pma_tag = be16_to_cpu(p->tag); ibp 1251 drivers/infiniband/hw/qib/qib_mad.c ibp->rvp.pma_counter_select[0] = p->counter_select[0]; ibp 1252 drivers/infiniband/hw/qib/qib_mad.c ibp->rvp.pma_counter_select[1] = p->counter_select[1]; ibp 1253 drivers/infiniband/hw/qib/qib_mad.c ibp->rvp.pma_counter_select[2] = p->counter_select[2]; ibp 1254 drivers/infiniband/hw/qib/qib_mad.c ibp->rvp.pma_counter_select[3] = p->counter_select[3]; ibp 1255 drivers/infiniband/hw/qib/qib_mad.c ibp->rvp.pma_counter_select[4] = p->counter_select[4]; ibp 1256 drivers/infiniband/hw/qib/qib_mad.c dd->f_set_cntr_sample(ppd, ibp->rvp.pma_sample_interval, ibp 1257 drivers/infiniband/hw/qib/qib_mad.c ibp->rvp.pma_sample_start); ibp 1259 drivers/infiniband/hw/qib/qib_mad.c spin_unlock_irqrestore(&ibp->rvp.lock, flags); ibp 1267 drivers/infiniband/hw/qib/qib_mad.c static u64 get_counter(struct qib_ibport *ibp, struct qib_pportdata *ppd, ibp 1307 drivers/infiniband/hw/qib/qib_mad.c struct qib_ibport *ibp = &ppd->ibport_data; ibp 1310 drivers/infiniband/hw/qib/qib_mad.c get_counter(ibp, ppd, IB_PMA_PORT_XMIT_DATA); ibp 1312 drivers/infiniband/hw/qib/qib_mad.c get_counter(ibp, ppd, IB_PMA_PORT_RCV_DATA); ibp 1314 drivers/infiniband/hw/qib/qib_mad.c get_counter(ibp, ppd, IB_PMA_PORT_XMIT_PKTS); ibp 1316 drivers/infiniband/hw/qib/qib_mad.c get_counter(ibp, ppd, IB_PMA_PORT_RCV_PKTS); ibp 1318 drivers/infiniband/hw/qib/qib_mad.c get_counter(ibp, ppd, IB_PMA_PORT_XMIT_WAIT); ibp 1356 drivers/infiniband/hw/qib/qib_mad.c struct qib_ibport *ibp = to_iport(ibdev, port); ibp 1357 drivers/infiniband/hw/qib/qib_mad.c struct qib_pportdata *ppd = ppd_from_ibp(ibp); ibp 1363 drivers/infiniband/hw/qib/qib_mad.c spin_lock_irqsave(&ibp->rvp.lock, flags); ibp 1364 drivers/infiniband/hw/qib/qib_mad.c p->tag = cpu_to_be16(ibp->rvp.pma_tag); ibp 1379 drivers/infiniband/hw/qib/qib_mad.c for (i = 0; i < ARRAY_SIZE(ibp->rvp.pma_counter_select); i++) ibp 1382 drivers/infiniband/hw/qib/qib_mad.c ppd, ibp->rvp.pma_counter_select[i])); ibp 1383 drivers/infiniband/hw/qib/qib_mad.c spin_unlock_irqrestore(&ibp->rvp.lock, flags); ibp 1395 drivers/infiniband/hw/qib/qib_mad.c struct qib_ibport *ibp = to_iport(ibdev, port); ibp 1396 drivers/infiniband/hw/qib/qib_mad.c struct qib_pportdata *ppd = ppd_from_ibp(ibp); ibp 1403 drivers/infiniband/hw/qib/qib_mad.c spin_lock_irqsave(&ibp->rvp.lock, flags); ibp 1404 drivers/infiniband/hw/qib/qib_mad.c p->tag = cpu_to_be16(ibp->rvp.pma_tag); ibp 1421 drivers/infiniband/hw/qib/qib_mad.c for (i = 0; i < ARRAY_SIZE(ibp->rvp.pma_counter_select); i++) ibp 1424 drivers/infiniband/hw/qib/qib_mad.c ppd, ibp->rvp.pma_counter_select[i])); ibp 1425 drivers/infiniband/hw/qib/qib_mad.c spin_unlock_irqrestore(&ibp->rvp.lock, flags); ibp 1435 drivers/infiniband/hw/qib/qib_mad.c struct qib_ibport *ibp = to_iport(ibdev, port); ibp 1436 drivers/infiniband/hw/qib/qib_mad.c struct qib_pportdata *ppd = ppd_from_ibp(ibp); ibp 1443 drivers/infiniband/hw/qib/qib_mad.c cntrs.symbol_error_counter -= ibp->z_symbol_error_counter; ibp 1445 drivers/infiniband/hw/qib/qib_mad.c ibp->z_link_error_recovery_counter; ibp 1446 drivers/infiniband/hw/qib/qib_mad.c cntrs.link_downed_counter -= ibp->z_link_downed_counter; ibp 1447 drivers/infiniband/hw/qib/qib_mad.c cntrs.port_rcv_errors -= ibp->z_port_rcv_errors; ibp 1448 drivers/infiniband/hw/qib/qib_mad.c cntrs.port_rcv_remphys_errors -= ibp->z_port_rcv_remphys_errors; ibp 1449 drivers/infiniband/hw/qib/qib_mad.c cntrs.port_xmit_discards -= ibp->z_port_xmit_discards; ibp 1450 drivers/infiniband/hw/qib/qib_mad.c cntrs.port_xmit_data -= ibp->z_port_xmit_data; ibp 1451 drivers/infiniband/hw/qib/qib_mad.c cntrs.port_rcv_data -= ibp->z_port_rcv_data; ibp 1452 drivers/infiniband/hw/qib/qib_mad.c cntrs.port_xmit_packets -= ibp->z_port_xmit_packets; ibp 1453 drivers/infiniband/hw/qib/qib_mad.c cntrs.port_rcv_packets -= ibp->z_port_rcv_packets; ibp 1455 drivers/infiniband/hw/qib/qib_mad.c ibp->z_local_link_integrity_errors; ibp 1457 drivers/infiniband/hw/qib/qib_mad.c ibp->z_excessive_buffer_overrun_errors; ibp 1458 drivers/infiniband/hw/qib/qib_mad.c cntrs.vl15_dropped -= ibp->z_vl15_dropped; ibp 1459 drivers/infiniband/hw/qib/qib_mad.c cntrs.vl15_dropped += ibp->rvp.n_vl15_dropped; ibp 1535 drivers/infiniband/hw/qib/qib_mad.c struct qib_ibport *ibp = to_iport(ibdev, port); ibp 1536 drivers/infiniband/hw/qib/qib_mad.c struct qib_pportdata *ppd = ppd_from_ibp(ibp); ibp 1557 drivers/infiniband/hw/qib/qib_mad.c cntrs.symbol_error_counter -= ibp->z_symbol_error_counter; ibp 1559 drivers/infiniband/hw/qib/qib_mad.c ibp->z_link_error_recovery_counter; ibp 1560 drivers/infiniband/hw/qib/qib_mad.c cntrs.link_downed_counter -= ibp->z_link_downed_counter; ibp 1561 drivers/infiniband/hw/qib/qib_mad.c cntrs.port_rcv_errors -= ibp->z_port_rcv_errors; ibp 1563 drivers/infiniband/hw/qib/qib_mad.c ibp->z_port_rcv_remphys_errors; ibp 1564 drivers/infiniband/hw/qib/qib_mad.c cntrs.port_xmit_discards -= ibp->z_port_xmit_discards; ibp 1566 drivers/infiniband/hw/qib/qib_mad.c ibp->z_local_link_integrity_errors; ibp 1568 drivers/infiniband/hw/qib/qib_mad.c ibp->z_excessive_buffer_overrun_errors; ibp 1569 drivers/infiniband/hw/qib/qib_mad.c cntrs.vl15_dropped -= ibp->z_vl15_dropped; ibp 1570 drivers/infiniband/hw/qib/qib_mad.c cntrs.vl15_dropped += ibp->rvp.n_vl15_dropped; ibp 1571 drivers/infiniband/hw/qib/qib_mad.c cntrs.port_xmit_data -= ibp->z_port_xmit_data; ibp 1572 drivers/infiniband/hw/qib/qib_mad.c cntrs.port_rcv_data -= ibp->z_port_rcv_data; ibp 1573 drivers/infiniband/hw/qib/qib_mad.c cntrs.port_xmit_packets -= ibp->z_port_xmit_packets; ibp 1574 drivers/infiniband/hw/qib/qib_mad.c cntrs.port_rcv_packets -= ibp->z_port_rcv_packets; ibp 1642 drivers/infiniband/hw/qib/qib_mad.c struct qib_ibport *ibp, ibp 1650 drivers/infiniband/hw/qib/qib_mad.c p = per_cpu_ptr(ibp->pmastats, cpu); ibp 1663 drivers/infiniband/hw/qib/qib_mad.c struct qib_ibport *ibp = to_iport(ibdev, port); ibp 1664 drivers/infiniband/hw/qib/qib_mad.c struct qib_pportdata *ppd = ppd_from_ibp(ibp); ibp 1680 drivers/infiniband/hw/qib/qib_mad.c swords -= ibp->z_port_xmit_data; ibp 1681 drivers/infiniband/hw/qib/qib_mad.c rwords -= ibp->z_port_rcv_data; ibp 1682 drivers/infiniband/hw/qib/qib_mad.c spkts -= ibp->z_port_xmit_packets; ibp 1683 drivers/infiniband/hw/qib/qib_mad.c rpkts -= ibp->z_port_rcv_packets; ibp 1690 drivers/infiniband/hw/qib/qib_mad.c qib_snapshot_pmacounters(ibp, &pma); ibp 1693 drivers/infiniband/hw/qib/qib_mad.c - ibp->z_unicast_xmit); ibp 1695 drivers/infiniband/hw/qib/qib_mad.c - ibp->z_unicast_rcv); ibp 1697 drivers/infiniband/hw/qib/qib_mad.c - ibp->z_multicast_xmit); ibp 1699 drivers/infiniband/hw/qib/qib_mad.c - ibp->z_multicast_rcv); ibp 1710 drivers/infiniband/hw/qib/qib_mad.c struct qib_ibport *ibp = to_iport(ibdev, port); ibp 1711 drivers/infiniband/hw/qib/qib_mad.c struct qib_pportdata *ppd = ppd_from_ibp(ibp); ibp 1721 drivers/infiniband/hw/qib/qib_mad.c ibp->z_symbol_error_counter = cntrs.symbol_error_counter; ibp 1724 drivers/infiniband/hw/qib/qib_mad.c ibp->z_link_error_recovery_counter = ibp 1728 drivers/infiniband/hw/qib/qib_mad.c ibp->z_link_downed_counter = cntrs.link_downed_counter; ibp 1731 drivers/infiniband/hw/qib/qib_mad.c ibp->z_port_rcv_errors = cntrs.port_rcv_errors; ibp 1734 drivers/infiniband/hw/qib/qib_mad.c ibp->z_port_rcv_remphys_errors = ibp 1738 drivers/infiniband/hw/qib/qib_mad.c ibp->z_port_xmit_discards = cntrs.port_xmit_discards; ibp 1741 drivers/infiniband/hw/qib/qib_mad.c ibp->z_local_link_integrity_errors = ibp 1745 drivers/infiniband/hw/qib/qib_mad.c ibp->z_excessive_buffer_overrun_errors = ibp 1749 drivers/infiniband/hw/qib/qib_mad.c ibp->rvp.n_vl15_dropped = 0; ibp 1750 drivers/infiniband/hw/qib/qib_mad.c ibp->z_vl15_dropped = cntrs.vl15_dropped; ibp 1754 drivers/infiniband/hw/qib/qib_mad.c ibp->z_port_xmit_data = cntrs.port_xmit_data; ibp 1757 drivers/infiniband/hw/qib/qib_mad.c ibp->z_port_rcv_data = cntrs.port_rcv_data; ibp 1760 drivers/infiniband/hw/qib/qib_mad.c ibp->z_port_xmit_packets = cntrs.port_xmit_packets; ibp 1763 drivers/infiniband/hw/qib/qib_mad.c ibp->z_port_rcv_packets = cntrs.port_rcv_packets; ibp 1771 drivers/infiniband/hw/qib/qib_mad.c struct qib_ibport *ibp = to_iport(ibdev, port); ibp 1772 drivers/infiniband/hw/qib/qib_mad.c struct qib_pportdata *ppd = ppd_from_ibp(ibp); ibp 1791 drivers/infiniband/hw/qib/qib_mad.c ibp->z_port_xmit_data = cntrs.port_xmit_data; ibp 1792 drivers/infiniband/hw/qib/qib_mad.c ibp->z_port_rcv_data = cntrs.port_rcv_data; ibp 1793 drivers/infiniband/hw/qib/qib_mad.c ibp->z_port_xmit_packets = cntrs.port_xmit_packets; ibp 1794 drivers/infiniband/hw/qib/qib_mad.c ibp->z_port_rcv_packets = cntrs.port_rcv_packets; ibp 1797 drivers/infiniband/hw/qib/qib_mad.c ibp->z_symbol_error_counter = ibp 1799 drivers/infiniband/hw/qib/qib_mad.c ibp->z_link_error_recovery_counter = ibp 1801 drivers/infiniband/hw/qib/qib_mad.c ibp->z_link_downed_counter = ibp 1803 drivers/infiniband/hw/qib/qib_mad.c ibp->z_port_rcv_errors = cntrs.port_rcv_errors; ibp 1804 drivers/infiniband/hw/qib/qib_mad.c ibp->z_port_rcv_remphys_errors = ibp 1806 drivers/infiniband/hw/qib/qib_mad.c ibp->z_port_xmit_discards = ibp 1808 drivers/infiniband/hw/qib/qib_mad.c ibp->z_local_link_integrity_errors = ibp 1810 drivers/infiniband/hw/qib/qib_mad.c ibp->z_excessive_buffer_overrun_errors = ibp 1812 drivers/infiniband/hw/qib/qib_mad.c ibp->rvp.n_vl15_dropped = 0; ibp 1813 drivers/infiniband/hw/qib/qib_mad.c ibp->z_vl15_dropped = cntrs.vl15_dropped; ibp 1824 drivers/infiniband/hw/qib/qib_mad.c struct qib_ibport *ibp = to_iport(ibdev, port); ibp 1825 drivers/infiniband/hw/qib/qib_mad.c struct qib_pportdata *ppd = ppd_from_ibp(ibp); ibp 1832 drivers/infiniband/hw/qib/qib_mad.c ibp->z_port_xmit_data = swords; ibp 1835 drivers/infiniband/hw/qib/qib_mad.c ibp->z_port_rcv_data = rwords; ibp 1838 drivers/infiniband/hw/qib/qib_mad.c ibp->z_port_xmit_packets = spkts; ibp 1841 drivers/infiniband/hw/qib/qib_mad.c ibp->z_port_rcv_packets = rpkts; ibp 1843 drivers/infiniband/hw/qib/qib_mad.c qib_snapshot_pmacounters(ibp, &pma); ibp 1846 drivers/infiniband/hw/qib/qib_mad.c ibp->z_unicast_xmit = pma.n_unicast_xmit; ibp 1849 drivers/infiniband/hw/qib/qib_mad.c ibp->z_unicast_rcv = pma.n_unicast_rcv; ibp 1852 drivers/infiniband/hw/qib/qib_mad.c ibp->z_multicast_xmit = pma.n_multicast_xmit; ibp 1855 drivers/infiniband/hw/qib/qib_mad.c ibp->z_multicast_rcv = pma.n_multicast_rcv; ibp 1865 drivers/infiniband/hw/qib/qib_mad.c struct qib_ibport *ibp = to_iport(ibdev, port); ibp 1866 drivers/infiniband/hw/qib/qib_mad.c struct qib_pportdata *ppd = ppd_from_ibp(ibp); ibp 1876 drivers/infiniband/hw/qib/qib_mad.c ret = check_mkey(ibp, smp, mad_flags); ibp 1922 drivers/infiniband/hw/qib/qib_mad.c if (ibp->rvp.port_cap_flags & IB_PORT_SM_DISABLED) { ibp 1927 drivers/infiniband/hw/qib/qib_mad.c if (ibp->rvp.port_cap_flags & IB_PORT_SM) { ibp 1956 drivers/infiniband/hw/qib/qib_mad.c if (ibp->rvp.port_cap_flags & IB_PORT_SM_DISABLED) { ibp 1961 drivers/infiniband/hw/qib/qib_mad.c if (ibp->rvp.port_cap_flags & IB_PORT_SM) { ibp 2120 drivers/infiniband/hw/qib/qib_mad.c struct qib_ibport *ibp = to_iport(ibdev, port); ibp 2121 drivers/infiniband/hw/qib/qib_mad.c struct qib_pportdata *ppd = ppd_from_ibp(ibp); ibp 2137 drivers/infiniband/hw/qib/qib_mad.c struct qib_ibport *ibp = to_iport(ibdev, port); ibp 2138 drivers/infiniband/hw/qib/qib_mad.c struct qib_pportdata *ppd = ppd_from_ibp(ibp); ibp 2167 drivers/infiniband/hw/qib/qib_mad.c struct qib_ibport *ibp = to_iport(ibdev, port); ibp 2168 drivers/infiniband/hw/qib/qib_mad.c struct qib_pportdata *ppd = ppd_from_ibp(ibp); ibp 2220 drivers/infiniband/hw/qib/qib_mad.c struct qib_ibport *ibp = to_iport(ibdev, port); ibp 2221 drivers/infiniband/hw/qib/qib_mad.c struct qib_pportdata *ppd = ppd_from_ibp(ibp); ibp 2248 drivers/infiniband/hw/qib/qib_mad.c struct qib_ibport *ibp = to_iport(ibdev, port); ibp 2249 drivers/infiniband/hw/qib/qib_mad.c struct qib_pportdata *ppd = ppd_from_ibp(ibp); ibp 2299 drivers/infiniband/hw/qib/qib_mad.c static int check_cc_key(struct qib_ibport *ibp, ibp 2310 drivers/infiniband/hw/qib/qib_mad.c struct qib_ibport *ibp = to_iport(ibdev, port); ibp 2321 drivers/infiniband/hw/qib/qib_mad.c ret = check_cc_key(ibp, ccp, mad_flags); ibp 2413 drivers/infiniband/hw/qib/qib_mad.c struct qib_ibport *ibp = to_iport(ibdev, port); ibp 2414 drivers/infiniband/hw/qib/qib_mad.c struct qib_pportdata *ppd = ppd_from_ibp(ibp); ibp 221 drivers/infiniband/hw/qib/qib_qp.c struct qib_ibport *ibp = &dd->pport[n].ibport_data; ibp 224 drivers/infiniband/hw/qib/qib_qp.c if (rcu_dereference(ibp->rvp.qp[0])) ibp 226 drivers/infiniband/hw/qib/qib_qp.c if (rcu_dereference(ibp->rvp.qp[1])) ibp 600 drivers/infiniband/hw/qib/qib_rc.c struct qib_ibport *ibp = to_iport(qp->ibqp.device, qp->port_num); ibp 601 drivers/infiniband/hw/qib/qib_rc.c struct qib_pportdata *ppd = ppd_from_ibp(ibp); ibp 629 drivers/infiniband/hw/qib/qib_rc.c hwords += qib_make_grh(ibp, &hdr.u.l.grh, ibp 636 drivers/infiniband/hw/qib/qib_rc.c bth0 = qib_get_pkey(ibp, qp->s_pkey_index) | (OP(ACKNOWLEDGE) << 24); ibp 645 drivers/infiniband/hw/qib/qib_rc.c lrh0 |= ibp->sl_to_vl[rdma_ah_get_sl(&qp->remote_ah_attr)] << 12 | ibp 707 drivers/infiniband/hw/qib/qib_rc.c this_cpu_inc(ibp->pmastats->n_unicast_xmit); ibp 712 drivers/infiniband/hw/qib/qib_rc.c this_cpu_inc(*ibp->rvp.rc_qacks); ibp 823 drivers/infiniband/hw/qib/qib_rc.c struct qib_ibport *ibp; ibp 838 drivers/infiniband/hw/qib/qib_rc.c ibp = to_iport(qp->ibqp.device, qp->port_num); ibp 840 drivers/infiniband/hw/qib/qib_rc.c ibp->rvp.n_rc_resends++; ibp 842 drivers/infiniband/hw/qib/qib_rc.c ibp->rvp.n_rc_resends += (qp->s_psn - psn) & QIB_PSN_MASK; ibp 952 drivers/infiniband/hw/qib/qib_rc.c struct qib_ibport *ibp) ibp 966 drivers/infiniband/hw/qib/qib_rc.c this_cpu_inc(*ibp->rvp.rc_delayed_comp); ibp 1009 drivers/infiniband/hw/qib/qib_rc.c struct qib_ibport *ibp; ibp 1026 drivers/infiniband/hw/qib/qib_rc.c ibp = to_iport(qp->ibqp.device, qp->port_num); ibp 1098 drivers/infiniband/hw/qib/qib_rc.c wqe = do_rc_completion(qp, wqe, ibp); ibp 1105 drivers/infiniband/hw/qib/qib_rc.c this_cpu_inc(*ibp->rvp.rc_acks); ibp 1137 drivers/infiniband/hw/qib/qib_rc.c ibp->rvp.n_rnr_naks++; ibp 1152 drivers/infiniband/hw/qib/qib_rc.c ibp->rvp.n_rc_resends += (qp->s_psn - psn) & QIB_PSN_MASK; ibp 1169 drivers/infiniband/hw/qib/qib_rc.c ibp->rvp.n_seq_naks++; ibp 1182 drivers/infiniband/hw/qib/qib_rc.c ibp->rvp.n_other_naks++; ibp 1187 drivers/infiniband/hw/qib/qib_rc.c ibp->rvp.n_other_naks++; ibp 1192 drivers/infiniband/hw/qib/qib_rc.c ibp->rvp.n_other_naks++; ibp 1223 drivers/infiniband/hw/qib/qib_rc.c static void rdma_seq_err(struct rvt_qp *qp, struct qib_ibport *ibp, u32 psn, ibp 1238 drivers/infiniband/hw/qib/qib_rc.c wqe = do_rc_completion(qp, wqe, ibp); ibp 1241 drivers/infiniband/hw/qib/qib_rc.c ibp->rvp.n_rdma_seq++; ibp 1267 drivers/infiniband/hw/qib/qib_rc.c static void qib_rc_rcv_resp(struct qib_ibport *ibp, ibp 1276 drivers/infiniband/hw/qib/qib_rc.c struct qib_pportdata *ppd = ppd_from_ibp(ibp); ibp 1459 drivers/infiniband/hw/qib/qib_rc.c rdma_seq_err(qp, ibp, psn, rcd); ibp 1498 drivers/infiniband/hw/qib/qib_rc.c struct qib_ibport *ibp = to_iport(qp->ibqp.device, qp->port_num); ibp 1511 drivers/infiniband/hw/qib/qib_rc.c ibp->rvp.n_rc_seqnak++; ibp 1547 drivers/infiniband/hw/qib/qib_rc.c ibp->rvp.n_rc_dupreq++; ibp 1714 drivers/infiniband/hw/qib/qib_rc.c struct qib_ibport *ibp = &rcd->ppd->ibport_data; ibp 1737 drivers/infiniband/hw/qib/qib_rc.c if (qib_ruc_check_hdr(ibp, hdr, has_grh, qp, opcode)) ibp 1751 drivers/infiniband/hw/qib/qib_rc.c qib_rc_rcv_resp(ibp, ohdr, data, tlen, qp, opcode, psn, ibp 59 drivers/infiniband/hw/qib/qib_ruc.c static __be64 get_sguid(struct qib_ibport *ibp, unsigned index) ibp 62 drivers/infiniband/hw/qib/qib_ruc.c struct qib_pportdata *ppd = ppd_from_ibp(ibp); ibp 66 drivers/infiniband/hw/qib/qib_ruc.c return ibp->guids[index - 1]; ibp 82 drivers/infiniband/hw/qib/qib_ruc.c int qib_ruc_check_hdr(struct qib_ibport *ibp, struct ib_header *hdr, ibp 100 drivers/infiniband/hw/qib/qib_ruc.c guid = get_sguid(ibp, grh->sgid_index); ibp 102 drivers/infiniband/hw/qib/qib_ruc.c ibp->rvp.gid_prefix, guid)) ibp 110 drivers/infiniband/hw/qib/qib_ruc.c qib_get_pkey(ibp, qp->s_alt_pkey_index))) { ibp 111 drivers/infiniband/hw/qib/qib_ruc.c qib_bad_pkey(ibp, ibp 121 drivers/infiniband/hw/qib/qib_ruc.c ppd_from_ibp(ibp)->port != ibp 139 drivers/infiniband/hw/qib/qib_ruc.c guid = get_sguid(ibp, grh->sgid_index); ibp 141 drivers/infiniband/hw/qib/qib_ruc.c ibp->rvp.gid_prefix, guid)) ibp 149 drivers/infiniband/hw/qib/qib_ruc.c qib_get_pkey(ibp, qp->s_pkey_index))) { ibp 150 drivers/infiniband/hw/qib/qib_ruc.c qib_bad_pkey(ibp, ibp 160 drivers/infiniband/hw/qib/qib_ruc.c ppd_from_ibp(ibp)->port != qp->port_num) ibp 183 drivers/infiniband/hw/qib/qib_ruc.c u32 qib_make_grh(struct qib_ibport *ibp, struct ib_grh *hdr, ibp 195 drivers/infiniband/hw/qib/qib_ruc.c hdr->sgid.global.subnet_prefix = ibp->rvp.gid_prefix; ibp 197 drivers/infiniband/hw/qib/qib_ruc.c hdr->sgid.global.interface_id = ppd_from_ibp(ibp)->guid; ibp 199 drivers/infiniband/hw/qib/qib_ruc.c hdr->sgid.global.interface_id = ibp->guids[grh->sgid_index - 1]; ibp 210 drivers/infiniband/hw/qib/qib_ruc.c struct qib_ibport *ibp = to_iport(qp->ibqp.device, qp->port_num); ibp 221 drivers/infiniband/hw/qib/qib_ruc.c qib_make_grh(ibp, &priv->s_hdr->u.l.grh, ibp 226 drivers/infiniband/hw/qib/qib_ruc.c lrh0 |= ibp->sl_to_vl[rdma_ah_get_sl(&qp->remote_ah_attr)] << 12 | ibp 234 drivers/infiniband/hw/qib/qib_ruc.c cpu_to_be16(ppd_from_ibp(ibp)->lid | ibp 236 drivers/infiniband/hw/qib/qib_ruc.c bth0 |= qib_get_pkey(ibp, qp->s_pkey_index); ibp 243 drivers/infiniband/hw/qib/qib_ruc.c this_cpu_inc(ibp->pmastats->n_unicast_xmit); ibp 266 drivers/infiniband/hw/qib/qib_ruc.c struct qib_ibport *ibp = to_iport(qp->ibqp.device, qp->port_num); ibp 267 drivers/infiniband/hw/qib/qib_ruc.c struct qib_pportdata *ppd = ppd_from_ibp(ibp); ibp 657 drivers/infiniband/hw/qib/qib_sdma.c struct qib_ibport *ibp; ibp 659 drivers/infiniband/hw/qib/qib_sdma.c ibp = &ppd->ibport_data; ibp 660 drivers/infiniband/hw/qib/qib_sdma.c ibp->rvp.n_dmawait++; ibp 237 drivers/infiniband/hw/qib/qib_uc.c void qib_uc_rcv(struct qib_ibport *ibp, struct ib_header *hdr, ibp 260 drivers/infiniband/hw/qib/qib_uc.c if (qib_ruc_check_hdr(ibp, hdr, has_grh, qp, opcode)) ibp 513 drivers/infiniband/hw/qib/qib_uc.c ibp->rvp.n_pkt_drops++; ibp 53 drivers/infiniband/hw/qib/qib_ud.c struct qib_ibport *ibp = to_iport(sqp->ibqp.device, sqp->port_num); ibp 54 drivers/infiniband/hw/qib/qib_ud.c struct qib_pportdata *ppd = ppd_from_ibp(ibp); ibp 67 drivers/infiniband/hw/qib/qib_ud.c qp = rvt_lookup_qpn(rdi, &ibp->rvp, rvt_get_swqe_remote_qpn(swqe)); ibp 69 drivers/infiniband/hw/qib/qib_ud.c ibp->rvp.n_pkt_drops++; ibp 80 drivers/infiniband/hw/qib/qib_ud.c ibp->rvp.n_pkt_drops++; ibp 85 drivers/infiniband/hw/qib/qib_ud.c ppd = ppd_from_ibp(ibp); ibp 92 drivers/infiniband/hw/qib/qib_ud.c pkey1 = qib_get_pkey(ibp, sqp->s_pkey_index); ibp 93 drivers/infiniband/hw/qib/qib_ud.c pkey2 = qib_get_pkey(ibp, qp->s_pkey_index); ibp 97 drivers/infiniband/hw/qib/qib_ud.c qib_bad_pkey(ibp, pkey1, ibp 150 drivers/infiniband/hw/qib/qib_ud.c ibp->rvp.n_vl15_dropped++; ibp 157 drivers/infiniband/hw/qib/qib_ud.c ibp->rvp.n_pkt_drops++; ibp 165 drivers/infiniband/hw/qib/qib_ud.c qib_make_grh(ibp, &grh, grd, 0, 0); ibp 215 drivers/infiniband/hw/qib/qib_ud.c ibp->rvp.n_loop_pkts++; ibp 236 drivers/infiniband/hw/qib/qib_ud.c struct qib_ibport *ibp; ibp 272 drivers/infiniband/hw/qib/qib_ud.c ibp = to_iport(qp->ibqp.device, qp->port_num); ibp 273 drivers/infiniband/hw/qib/qib_ud.c ppd = ppd_from_ibp(ibp); ibp 278 drivers/infiniband/hw/qib/qib_ud.c this_cpu_inc(ibp->pmastats->n_multicast_xmit); ibp 280 drivers/infiniband/hw/qib/qib_ud.c this_cpu_inc(ibp->pmastats->n_unicast_xmit); ibp 282 drivers/infiniband/hw/qib/qib_ud.c this_cpu_inc(ibp->pmastats->n_unicast_xmit); ibp 324 drivers/infiniband/hw/qib/qib_ud.c qp->s_hdrwords += qib_make_grh(ibp, &priv->s_hdr->u.l.grh, ibp 348 drivers/infiniband/hw/qib/qib_ud.c lrh0 |= ibp->sl_to_vl[rdma_ah_get_sl(ah_attr)] << 12; ibp 365 drivers/infiniband/hw/qib/qib_ud.c qib_get_pkey(ibp, qp->ibqp.qp_type == IB_QPT_GSI ? ibp 393 drivers/infiniband/hw/qib/qib_ud.c static unsigned qib_lookup_pkey(struct qib_ibport *ibp, u16 pkey) ibp 395 drivers/infiniband/hw/qib/qib_ud.c struct qib_pportdata *ppd = ppd_from_ibp(ibp); ibp 426 drivers/infiniband/hw/qib/qib_ud.c void qib_ud_rcv(struct qib_ibport *ibp, struct ib_header *hdr, ibp 471 drivers/infiniband/hw/qib/qib_ud.c pkey2 = qib_get_pkey(ibp, qp->s_pkey_index); ibp 473 drivers/infiniband/hw/qib/qib_ud.c qib_bad_pkey(ibp, ibp 539 drivers/infiniband/hw/qib/qib_ud.c ibp->rvp.n_vl15_dropped++; ibp 566 drivers/infiniband/hw/qib/qib_ud.c qib_lookup_pkey(ibp, be32_to_cpu(ohdr->bth[0])) : 0; ibp 574 drivers/infiniband/hw/qib/qib_ud.c dlid & ((1 << ppd_from_ibp(ibp)->lmc) - 1); ibp 581 drivers/infiniband/hw/qib/qib_ud.c ibp->rvp.n_pkt_drops++; ibp 226 drivers/infiniband/hw/qib/qib_verbs.c struct qib_ibport *ibp = &rcd->ppd->ibport_data; ibp 232 drivers/infiniband/hw/qib/qib_verbs.c ibp->rvp.n_pkt_drops++; ibp 243 drivers/infiniband/hw/qib/qib_verbs.c qib_ud_rcv(ibp, hdr, has_grh, data, tlen, qp); ibp 251 drivers/infiniband/hw/qib/qib_verbs.c qib_uc_rcv(ibp, hdr, has_grh, data, tlen, qp); ibp 275 drivers/infiniband/hw/qib/qib_verbs.c struct qib_ibport *ibp = &ppd->ibport_data; ibp 328 drivers/infiniband/hw/qib/qib_verbs.c mcast = rvt_mcast_find(&ibp->rvp, &hdr->u.l.grh.dgid, lid); ibp 331 drivers/infiniband/hw/qib/qib_verbs.c this_cpu_inc(ibp->pmastats->n_multicast_rcv); ibp 344 drivers/infiniband/hw/qib/qib_verbs.c qp = rvt_lookup_qpn(rdi, &ibp->rvp, qp_num); ibp 349 drivers/infiniband/hw/qib/qib_verbs.c this_cpu_inc(ibp->pmastats->n_unicast_rcv); ibp 356 drivers/infiniband/hw/qib/qib_verbs.c ibp->rvp.n_pkt_drops++; ibp 778 drivers/infiniband/hw/qib/qib_verbs.c struct qib_ibport *ibp = to_iport(qp->ibqp.device, qp->port_num); ibp 779 drivers/infiniband/hw/qib/qib_verbs.c struct qib_pportdata *ppd = ppd_from_ibp(ibp); ibp 863 drivers/infiniband/hw/qib/qib_verbs.c ibp->rvp.n_unaligned++; ibp 1255 drivers/infiniband/hw/qib/qib_verbs.c struct qib_ibport *ibp = &dd->pport[i].ibport_data; ibp 1257 drivers/infiniband/hw/qib/qib_verbs.c qib_node_desc_chg(ibp); ibp 1265 drivers/infiniband/hw/qib/qib_verbs.c struct qib_ibport *ibp = &dd->pport[i].ibport_data; ibp 1267 drivers/infiniband/hw/qib/qib_verbs.c qib_sys_guid_chg(ibp); ibp 1291 drivers/infiniband/hw/qib/qib_verbs.c struct qib_ibport *ibp = container_of(rvp, struct qib_ibport, rvp); ibp 1292 drivers/infiniband/hw/qib/qib_verbs.c struct qib_pportdata *ppd = ppd_from_ibp(ibp); ibp 1297 drivers/infiniband/hw/qib/qib_verbs.c *guid = ibp->guids[guid_index - 1]; ibp 1325 drivers/infiniband/hw/qib/qib_verbs.c struct qib_ibport *ibp; ibp 1333 drivers/infiniband/hw/qib/qib_verbs.c ibp = to_iport(ibdev, rdma_ah_get_port_num(ah_attr)); ibp 1334 drivers/infiniband/hw/qib/qib_verbs.c ppd = ppd_from_ibp(ibp); ibp 1335 drivers/infiniband/hw/qib/qib_verbs.c ah->vl = ibp->sl_to_vl[rdma_ah_get_sl(&ah->attr)]; ibp 1339 drivers/infiniband/hw/qib/qib_verbs.c struct ib_ah *qib_create_qp0_ah(struct qib_ibport *ibp, u16 dlid) ibp 1344 drivers/infiniband/hw/qib/qib_verbs.c struct qib_pportdata *ppd = ppd_from_ibp(ibp); ibp 1353 drivers/infiniband/hw/qib/qib_verbs.c qp0 = rcu_dereference(ibp->rvp.qp[0]); ibp 1373 drivers/infiniband/hw/qib/qib_verbs.c unsigned qib_get_pkey(struct qib_ibport *ibp, unsigned index) ibp 1375 drivers/infiniband/hw/qib/qib_verbs.c struct qib_pportdata *ppd = ppd_from_ibp(ibp); ibp 1392 drivers/infiniband/hw/qib/qib_verbs.c struct qib_ibport *ibp = &ppd->ibport_data; ibp 1394 drivers/infiniband/hw/qib/qib_verbs.c spin_lock_init(&ibp->rvp.lock); ibp 1396 drivers/infiniband/hw/qib/qib_verbs.c ibp->rvp.gid_prefix = IB_DEFAULT_GID_PREFIX; ibp 1397 drivers/infiniband/hw/qib/qib_verbs.c ibp->rvp.sm_lid = be16_to_cpu(IB_LID_PERMISSIVE); ibp 1398 drivers/infiniband/hw/qib/qib_verbs.c ibp->rvp.port_cap_flags = IB_PORT_SYS_IMAGE_GUID_SUP | ibp 1404 drivers/infiniband/hw/qib/qib_verbs.c ibp->rvp.port_cap_flags |= IB_PORT_LINK_LATENCY_SUP; ibp 1405 drivers/infiniband/hw/qib/qib_verbs.c ibp->rvp.pma_counter_select[0] = IB_PMA_PORT_XMIT_DATA; ibp 1406 drivers/infiniband/hw/qib/qib_verbs.c ibp->rvp.pma_counter_select[1] = IB_PMA_PORT_RCV_DATA; ibp 1407 drivers/infiniband/hw/qib/qib_verbs.c ibp->rvp.pma_counter_select[2] = IB_PMA_PORT_XMIT_PKTS; ibp 1408 drivers/infiniband/hw/qib/qib_verbs.c ibp->rvp.pma_counter_select[3] = IB_PMA_PORT_RCV_PKTS; ibp 1409 drivers/infiniband/hw/qib/qib_verbs.c ibp->rvp.pma_counter_select[4] = IB_PMA_PORT_XMIT_WAIT; ibp 1413 drivers/infiniband/hw/qib/qib_verbs.c ibp->z_symbol_error_counter = cntrs.symbol_error_counter; ibp 1414 drivers/infiniband/hw/qib/qib_verbs.c ibp->z_link_error_recovery_counter = ibp 1416 drivers/infiniband/hw/qib/qib_verbs.c ibp->z_link_downed_counter = cntrs.link_downed_counter; ibp 1417 drivers/infiniband/hw/qib/qib_verbs.c ibp->z_port_rcv_errors = cntrs.port_rcv_errors; ibp 1418 drivers/infiniband/hw/qib/qib_verbs.c ibp->z_port_rcv_remphys_errors = cntrs.port_rcv_remphys_errors; ibp 1419 drivers/infiniband/hw/qib/qib_verbs.c ibp->z_port_xmit_discards = cntrs.port_xmit_discards; ibp 1420 drivers/infiniband/hw/qib/qib_verbs.c ibp->z_port_xmit_data = cntrs.port_xmit_data; ibp 1421 drivers/infiniband/hw/qib/qib_verbs.c ibp->z_port_rcv_data = cntrs.port_rcv_data; ibp 1422 drivers/infiniband/hw/qib/qib_verbs.c ibp->z_port_xmit_packets = cntrs.port_xmit_packets; ibp 1423 drivers/infiniband/hw/qib/qib_verbs.c ibp->z_port_rcv_packets = cntrs.port_rcv_packets; ibp 1424 drivers/infiniband/hw/qib/qib_verbs.c ibp->z_local_link_integrity_errors = ibp 1426 drivers/infiniband/hw/qib/qib_verbs.c ibp->z_excessive_buffer_overrun_errors = ibp 1428 drivers/infiniband/hw/qib/qib_verbs.c ibp->z_vl15_dropped = cntrs.vl15_dropped; ibp 1429 drivers/infiniband/hw/qib/qib_verbs.c RCU_INIT_POINTER(ibp->rvp.qp[0], NULL); ibp 1430 drivers/infiniband/hw/qib/qib_verbs.c RCU_INIT_POINTER(ibp->rvp.qp[1], NULL); ibp 1690 drivers/infiniband/hw/qib/qib_verbs.c struct qib_ibport *ibp = ibp 1692 drivers/infiniband/hw/qib/qib_verbs.c struct qib_pportdata *ppd = ppd_from_ibp(ibp); ibp 241 drivers/infiniband/hw/qib/qib_verbs.h void qib_bad_pkey(struct qib_ibport *ibp, u32 key, u32 sl, ibp 244 drivers/infiniband/hw/qib/qib_verbs.h void qib_sys_guid_chg(struct qib_ibport *ibp); ibp 245 drivers/infiniband/hw/qib/qib_verbs.h void qib_node_desc_chg(struct qib_ibport *ibp); ibp 295 drivers/infiniband/hw/qib/qib_verbs.h void qib_uc_rcv(struct qib_ibport *ibp, struct ib_header *hdr, ibp 306 drivers/infiniband/hw/qib/qib_verbs.h struct ib_ah *qib_create_qp0_ah(struct qib_ibport *ibp, u16 dlid); ibp 314 drivers/infiniband/hw/qib/qib_verbs.h void qib_ud_rcv(struct qib_ibport *ibp, struct ib_header *hdr, ibp 321 drivers/infiniband/hw/qib/qib_verbs.h int qib_ruc_check_hdr(struct qib_ibport *ibp, struct ib_header *hdr, ibp 324 drivers/infiniband/hw/qib/qib_verbs.h u32 qib_make_grh(struct qib_ibport *ibp, struct ib_grh *hdr, ibp 148 drivers/infiniband/sw/rdmavt/mcast.c struct rvt_mcast *rvt_mcast_find(struct rvt_ibport *ibp, union ib_gid *mgid, ibp 155 drivers/infiniband/sw/rdmavt/mcast.c spin_lock_irqsave(&ibp->lock, flags); ibp 156 drivers/infiniband/sw/rdmavt/mcast.c n = ibp->mcast_tree.rb_node; ibp 178 drivers/infiniband/sw/rdmavt/mcast.c spin_unlock_irqrestore(&ibp->lock, flags); ibp 193 drivers/infiniband/sw/rdmavt/mcast.c static int rvt_mcast_add(struct rvt_dev_info *rdi, struct rvt_ibport *ibp, ibp 196 drivers/infiniband/sw/rdmavt/mcast.c struct rb_node **n = &ibp->mcast_tree.rb_node; ibp 200 drivers/infiniband/sw/rdmavt/mcast.c spin_lock_irq(&ibp->lock); ibp 262 drivers/infiniband/sw/rdmavt/mcast.c rb_insert_color(&mcast->rb_node, &ibp->mcast_tree); ibp 267 drivers/infiniband/sw/rdmavt/mcast.c spin_unlock_irq(&ibp->lock); ibp 284 drivers/infiniband/sw/rdmavt/mcast.c struct rvt_ibport *ibp = rdi->ports[qp->port_num - 1]; ibp 304 drivers/infiniband/sw/rdmavt/mcast.c switch (rvt_mcast_add(rdi, ibp, mcast, mqp)) { ibp 347 drivers/infiniband/sw/rdmavt/mcast.c struct rvt_ibport *ibp = rdi->ports[qp->port_num - 1]; ibp 357 drivers/infiniband/sw/rdmavt/mcast.c spin_lock_irq(&ibp->lock); ibp 360 drivers/infiniband/sw/rdmavt/mcast.c n = ibp->mcast_tree.rb_node; ibp 363 drivers/infiniband/sw/rdmavt/mcast.c spin_unlock_irq(&ibp->lock); ibp 377 drivers/infiniband/sw/rdmavt/mcast.c spin_unlock_irq(&ibp->lock); ibp 398 drivers/infiniband/sw/rdmavt/mcast.c rb_erase(&mcast->rb_node, &ibp->mcast_tree); ibp 404 drivers/infiniband/sw/rdmavt/mcast.c spin_unlock_irq(&ibp->lock); ibp 733 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c struct ib_device *ibp; ibp 744 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c ibp = cport->ibdev; ibp 763 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c ah_attr.type = rdma_ah_find_type(ibp, port->port_num); ibp 789 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c if (ib_find_pkey(ibp, data->opaportnum, IB_DEFAULT_PKEY_FULL, ibp 793 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c if (ib_find_pkey(ibp, data->opaportnum, IB_DEFAULT_PKEY_PARTIAL, ibp 2149 fs/xfs/xfs_inode.c struct xfs_buf *ibp, ibp 2168 fs/xfs/xfs_inode.c xfs_trans_inode_buf(tp, ibp); ibp 2169 fs/xfs/xfs_inode.c xfs_trans_log_buf(tp, ibp, offset, offset + sizeof(xfs_agino_t) - 1); ibp 2170 fs/xfs/xfs_inode.c xfs_inobp_check(mp, ibp); ibp 2184 fs/xfs/xfs_inode.c struct xfs_buf *ibp; ibp 2190 fs/xfs/xfs_inode.c error = xfs_imap_to_bp(mp, tp, &ip->i_imap, &dip, &ibp, 0, 0); ibp 2215 fs/xfs/xfs_inode.c ibp, dip, &ip->i_imap, next_agino); ibp 2218 fs/xfs/xfs_inode.c xfs_trans_brelse(tp, ibp); ibp 4976 fs/xfs/xfs_log_recover.c struct xfs_buf *ibp; ibp 4990 fs/xfs/xfs_log_recover.c error = xfs_imap_to_bp(mp, NULL, &ip->i_imap, &dip, &ibp, 0, 0); ibp 5000 fs/xfs/xfs_log_recover.c xfs_buf_relse(ibp); ibp 571 include/rdma/rdma_vt.h struct rvt_mcast *rvt_mcast_find(struct rvt_ibport *ibp, union ib_gid *mgid,