Lines Matching refs:ibp
225 struct qib_ibport *ibp = &rcd->ppd->ibport_data; in qib_qp_rcv() local
231 ibp->rvp.n_pkt_drops++; in qib_qp_rcv()
242 qib_ud_rcv(ibp, hdr, has_grh, data, tlen, qp); in qib_qp_rcv()
250 qib_uc_rcv(ibp, hdr, has_grh, data, tlen, qp); in qib_qp_rcv()
274 struct qib_ibport *ibp = &ppd->ibport_data; in qib_ib_rcv() local
327 mcast = rvt_mcast_find(&ibp->rvp, &hdr->u.l.grh.dgid, lid); in qib_ib_rcv()
330 this_cpu_inc(ibp->pmastats->n_multicast_rcv); in qib_ib_rcv()
343 qp = rvt_lookup_qpn(rdi, &ibp->rvp, qp_num); in qib_ib_rcv()
348 this_cpu_inc(ibp->pmastats->n_unicast_rcv); in qib_ib_rcv()
355 ibp->rvp.n_pkt_drops++; in qib_ib_rcv()
777 struct qib_ibport *ibp = to_iport(qp->ibqp.device, qp->port_num); in qib_verbs_send_dma() local
778 struct qib_pportdata *ppd = ppd_from_ibp(ibp); in qib_verbs_send_dma()
862 ibp->rvp.n_unaligned++; in qib_verbs_send_dma()
1254 struct qib_ibport *ibp = &dd->pport[i].ibport_data; in qib_modify_device() local
1256 qib_node_desc_chg(ibp); in qib_modify_device()
1264 struct qib_ibport *ibp = &dd->pport[i].ibport_data; in qib_modify_device() local
1266 qib_sys_guid_chg(ibp); in qib_modify_device()
1290 struct qib_ibport *ibp = container_of(rvp, struct qib_ibport, rvp); in qib_get_guid_be() local
1291 struct qib_pportdata *ppd = ppd_from_ibp(ibp); in qib_get_guid_be()
1296 *guid = ibp->guids[guid_index - 1]; in qib_get_guid_be()
1324 struct qib_ibport *ibp; in qib_notify_new_ah() local
1332 ibp = to_iport(ibdev, rdma_ah_get_port_num(ah_attr)); in qib_notify_new_ah()
1333 ppd = ppd_from_ibp(ibp); in qib_notify_new_ah()
1334 ah->vl = ibp->sl_to_vl[rdma_ah_get_sl(&ah->attr)]; in qib_notify_new_ah()
1338 struct ib_ah *qib_create_qp0_ah(struct qib_ibport *ibp, u16 dlid) in qib_create_qp0_ah() argument
1343 struct qib_pportdata *ppd = ppd_from_ibp(ibp); in qib_create_qp0_ah()
1352 qp0 = rcu_dereference(ibp->rvp.qp[0]); in qib_create_qp0_ah()
1372 unsigned qib_get_pkey(struct qib_ibport *ibp, unsigned index) in qib_get_pkey() argument
1374 struct qib_pportdata *ppd = ppd_from_ibp(ibp); in qib_get_pkey()
1391 struct qib_ibport *ibp = &ppd->ibport_data; in init_ibport() local
1393 spin_lock_init(&ibp->rvp.lock); in init_ibport()
1395 ibp->rvp.gid_prefix = IB_DEFAULT_GID_PREFIX; in init_ibport()
1396 ibp->rvp.sm_lid = be16_to_cpu(IB_LID_PERMISSIVE); in init_ibport()
1397 ibp->rvp.port_cap_flags = IB_PORT_SYS_IMAGE_GUID_SUP | in init_ibport()
1403 ibp->rvp.port_cap_flags |= IB_PORT_LINK_LATENCY_SUP; in init_ibport()
1404 ibp->rvp.pma_counter_select[0] = IB_PMA_PORT_XMIT_DATA; in init_ibport()
1405 ibp->rvp.pma_counter_select[1] = IB_PMA_PORT_RCV_DATA; in init_ibport()
1406 ibp->rvp.pma_counter_select[2] = IB_PMA_PORT_XMIT_PKTS; in init_ibport()
1407 ibp->rvp.pma_counter_select[3] = IB_PMA_PORT_RCV_PKTS; in init_ibport()
1408 ibp->rvp.pma_counter_select[4] = IB_PMA_PORT_XMIT_WAIT; in init_ibport()
1412 ibp->z_symbol_error_counter = cntrs.symbol_error_counter; in init_ibport()
1413 ibp->z_link_error_recovery_counter = in init_ibport()
1415 ibp->z_link_downed_counter = cntrs.link_downed_counter; in init_ibport()
1416 ibp->z_port_rcv_errors = cntrs.port_rcv_errors; in init_ibport()
1417 ibp->z_port_rcv_remphys_errors = cntrs.port_rcv_remphys_errors; in init_ibport()
1418 ibp->z_port_xmit_discards = cntrs.port_xmit_discards; in init_ibport()
1419 ibp->z_port_xmit_data = cntrs.port_xmit_data; in init_ibport()
1420 ibp->z_port_rcv_data = cntrs.port_rcv_data; in init_ibport()
1421 ibp->z_port_xmit_packets = cntrs.port_xmit_packets; in init_ibport()
1422 ibp->z_port_rcv_packets = cntrs.port_rcv_packets; in init_ibport()
1423 ibp->z_local_link_integrity_errors = in init_ibport()
1425 ibp->z_excessive_buffer_overrun_errors = in init_ibport()
1427 ibp->z_vl15_dropped = cntrs.vl15_dropped; in init_ibport()
1428 RCU_INIT_POINTER(ibp->rvp.qp[0], NULL); in init_ibport()
1429 RCU_INIT_POINTER(ibp->rvp.qp[1], NULL); in init_ibport()
1685 struct qib_ibport *ibp = in _qib_schedule_send() local
1687 struct qib_pportdata *ppd = ppd_from_ibp(ibp); in _qib_schedule_send()