Lines Matching refs:ibp
333 struct hfi1_ibport *ibp = &ppd->ibport_data; in hfi1_kdeth_eager_rcv() local
360 packet->qp = rvt_lookup_qpn(rdi, &ibp->rvp, qp_num); in hfi1_kdeth_eager_rcv()
378 ibp->rvp.n_pkt_drops++; in hfi1_kdeth_eager_rcv()
387 struct hfi1_ibport *ibp = &ppd->ibport_data; in hfi1_kdeth_expected_rcv() local
414 packet->qp = rvt_lookup_qpn(rdi, &ibp->rvp, qp_num); in hfi1_kdeth_expected_rcv()
432 ibp->rvp.n_pkt_drops++; in hfi1_kdeth_expected_rcv()
459 struct hfi1_ibport *ibp = rcd_to_iport(rcd); in hfi1_handle_packet() local
472 mcast = rvt_mcast_find(&ibp->rvp, in hfi1_handle_packet()
487 ibp->rvp.n_pkt_drops++; in hfi1_handle_packet()
506 packet->qp = rvt_lookup_qpn(rdi, &ibp->rvp, qp_num); in hfi1_handle_packet()
518 ibp->rvp.n_pkt_drops++; in hfi1_handle_packet()
526 ibp->rvp.n_pkt_drops++; in hfi1_handle_packet()
1423 struct hfi1_ibport *ibp = &dd->pport[i].ibport_data; in modify_device() local
1425 hfi1_node_desc_chg(ibp); in modify_device()
1433 struct hfi1_ibport *ibp = &dd->pport[i].ibport_data; in modify_device() local
1435 hfi1_sys_guid_chg(ibp); in modify_device()
1459 struct hfi1_ibport *ibp = container_of(rvp, struct hfi1_ibport, rvp); in hfi1_get_guid_be() local
1464 *guid = get_sguid(ibp, guid_index); in hfi1_get_guid_be()
1473 struct hfi1_ibport *ibp = to_iport(ibdev, rdma_ah_get_port_num(ah)); in ah_to_sc() local
1475 return ibp->sl_to_sc[rdma_ah_get_sl(ah)]; in ah_to_sc()
1480 struct hfi1_ibport *ibp; in hfi1_check_ah() local
1491 ibp = to_iport(ibdev, rdma_ah_get_port_num(ah_attr)); in hfi1_check_ah()
1492 ppd = ppd_from_ibp(ibp); in hfi1_check_ah()
1496 if (sl >= ARRAY_SIZE(ibp->sl_to_sc)) in hfi1_check_ah()
1498 sl = array_index_nospec(sl, ARRAY_SIZE(ibp->sl_to_sc)); in hfi1_check_ah()
1500 sc5 = ibp->sl_to_sc[sl]; in hfi1_check_ah()
1510 struct hfi1_ibport *ibp; in hfi1_notify_new_ah() local
1521 ibp = to_iport(ibdev, rdma_ah_get_port_num(ah_attr)); in hfi1_notify_new_ah()
1522 ppd = ppd_from_ibp(ibp); in hfi1_notify_new_ah()
1523 sc5 = ibp->sl_to_sc[rdma_ah_get_sl(&ah->attr)]; in hfi1_notify_new_ah()
1543 struct hfi1_ibport *ibp = &ppd->ibport_data; in init_ibport() local
1544 size_t sz = ARRAY_SIZE(ibp->sl_to_sc); in init_ibport()
1548 ibp->sl_to_sc[i] = i; in init_ibport()
1549 ibp->sc_to_sl[i] = i; in init_ibport()
1553 INIT_LIST_HEAD(&ibp->rvp.trap_lists[i].list); in init_ibport()
1554 timer_setup(&ibp->rvp.trap_timer, hfi1_handle_trap_timer, 0); in init_ibport()
1556 spin_lock_init(&ibp->rvp.lock); in init_ibport()
1558 ibp->rvp.gid_prefix = IB_DEFAULT_GID_PREFIX; in init_ibport()
1559 ibp->rvp.sm_lid = 0; in init_ibport()
1564 ibp->rvp.port_cap_flags = IB_PORT_AUTO_MIGR_SUP | in init_ibport()
1566 ibp->rvp.port_cap3_flags = OPA_CAP_MASK3_IsSharedSpaceSupported; in init_ibport()
1567 ibp->rvp.pma_counter_select[0] = IB_PMA_PORT_XMIT_DATA; in init_ibport()
1568 ibp->rvp.pma_counter_select[1] = IB_PMA_PORT_RCV_DATA; in init_ibport()
1569 ibp->rvp.pma_counter_select[2] = IB_PMA_PORT_XMIT_PKTS; in init_ibport()
1570 ibp->rvp.pma_counter_select[3] = IB_PMA_PORT_RCV_PKTS; in init_ibport()
1571 ibp->rvp.pma_counter_select[4] = IB_PMA_PORT_XMIT_WAIT; in init_ibport()
1573 RCU_INIT_POINTER(ibp->rvp.qp[0], NULL); in init_ibport()
1574 RCU_INIT_POINTER(ibp->rvp.qp[1], NULL); in init_ibport()
1716 struct hfi1_ibport *ibp = to_iport(ibdev, port); in get_hw_stats() local
1718 hfi1_read_portcntrs(ppd_from_ibp(ibp), NULL, &values); in get_hw_stats()
1753 struct hfi1_ibport *ibp = &ppd->ibport_data; in hfi1_register_ib_device() local
1774 ibdev->node_guid = get_sguid(ibp, HFI1_PORT_GUID_INDEX); in hfi1_register_ib_device()
1914 struct hfi1_ibport *ibp = rcd_to_iport(packet->rcd); in hfi1_cnp_rcv() local
1915 struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); in hfi1_cnp_rcv()
1939 ibp->rvp.n_pkt_drops++; in hfi1_cnp_rcv()
1944 sl = ibp->sc_to_sl[sc5]; in hfi1_cnp_rcv()