ah_attr 232 drivers/infiniband/core/cm.c struct rdma_ah_attr ah_attr; ah_attr 347 drivers/infiniband/core/cm.c ah = rdma_create_ah(mad_agent->qp->pd, &av->ah_attr, 0); ah_attr 478 drivers/infiniband/core/cm.c rdma_move_ah_attr(&av->ah_attr, &new_ah_attr); ah_attr 489 drivers/infiniband/core/cm.c grh, &av->ah_attr); ah_attr 596 drivers/infiniband/core/cm.c rdma_move_ah_attr(&av->ah_attr, &new_ah_attr); ah_attr 1110 drivers/infiniband/core/cm.c rdma_destroy_ah_attr(&cm_id_priv->av.ah_attr); ah_attr 1111 drivers/infiniband/core/cm.c rdma_destroy_ah_attr(&cm_id_priv->alt_av.ah_attr); ah_attr 1712 drivers/infiniband/core/cm.c param->ppath_sgid_attr = cm_id_priv->av.ah_attr.grh.sgid_attr; ah_attr 1981 drivers/infiniband/core/cm.c grh = rdma_ah_read_grh(&cm_id_priv->av.ah_attr); ah_attr 1999 drivers/infiniband/core/cm.c if (cm_id_priv->av.ah_attr.type == RDMA_AH_ATTR_TYPE_ROCE) ah_attr 2001 drivers/infiniband/core/cm.c cm_id_priv->av.ah_attr.roce.dmac); ah_attr 3546 drivers/infiniband/core/cm.c param->sgid_attr = rx_cm_id->av.ah_attr.grh.sgid_attr; ah_attr 3695 drivers/infiniband/core/cm.c param->sgid_attr = cm_id_priv->av.ah_attr.grh.sgid_attr; ah_attr 4130 drivers/infiniband/core/cm.c qp_attr->ah_attr = cm_id_priv->av.ah_attr; ah_attr 4142 drivers/infiniband/core/cm.c if (rdma_ah_get_dlid(&cm_id_priv->alt_av.ah_attr)) { ah_attr 4147 drivers/infiniband/core/cm.c qp_attr->alt_ah_attr = cm_id_priv->alt_av.ah_attr; ah_attr 4199 drivers/infiniband/core/cm.c if (rdma_ah_get_dlid(&cm_id_priv->alt_av.ah_attr)) { ah_attr 4208 drivers/infiniband/core/cm.c qp_attr->alt_ah_attr = cm_id_priv->alt_av.ah_attr; ah_attr 3709 drivers/infiniband/core/cma.c &event.param.ud.ah_attr, ah_attr 3724 drivers/infiniband/core/cma.c rdma_destroy_ah_attr(&event.param.ud.ah_attr); ah_attr 4193 drivers/infiniband/core/cma.c &event.param.ud.ah_attr); ah_attr 4206 drivers/infiniband/core/cma.c rdma_destroy_ah_attr(&event.param.ud.ah_attr); ah_attr 856 drivers/infiniband/core/mad_rmpp.c struct rdma_ah_attr ah_attr; ah_attr 871 drivers/infiniband/core/mad_rmpp.c if (rdma_query_ah(mad_send_wr->send_buf.ah, &ah_attr)) ah_attr 874 drivers/infiniband/core/mad_rmpp.c if (rmpp_recv->slid == rdma_ah_get_dlid(&ah_attr)) { ah_attr 738 drivers/infiniband/core/multicast.c struct rdma_ah_attr *ah_attr) ah_attr 755 drivers/infiniband/core/multicast.c memset(ah_attr, 0, sizeof(*ah_attr)); ah_attr 756 drivers/infiniband/core/multicast.c ah_attr->type = rdma_ah_find_type(device, port_num); ah_attr 758 drivers/infiniband/core/multicast.c rdma_ah_set_dlid(ah_attr, be16_to_cpu(rec->mlid)); ah_attr 759 drivers/infiniband/core/multicast.c rdma_ah_set_sl(ah_attr, rec->sl); ah_attr 760 drivers/infiniband/core/multicast.c rdma_ah_set_port_num(ah_attr, port_num); ah_attr 761 drivers/infiniband/core/multicast.c rdma_ah_set_static_rate(ah_attr, rec->rate); ah_attr 762 drivers/infiniband/core/multicast.c rdma_move_grh_sgid_attr(ah_attr, &rec->mgid, ah_attr 1222 drivers/infiniband/core/sa_query.c struct rdma_ah_attr *ah_attr, ah_attr 1235 drivers/infiniband/core/sa_query.c rdma_move_grh_sgid_attr(ah_attr, &rec->dgid, ah_attr 1260 drivers/infiniband/core/sa_query.c struct rdma_ah_attr *ah_attr, ah_attr 1265 drivers/infiniband/core/sa_query.c memset(ah_attr, 0, sizeof(*ah_attr)); ah_attr 1266 drivers/infiniband/core/sa_query.c ah_attr->type = rdma_ah_find_type(device, port_num); ah_attr 1267 drivers/infiniband/core/sa_query.c rdma_ah_set_sl(ah_attr, rec->sl); ah_attr 1268 drivers/infiniband/core/sa_query.c rdma_ah_set_port_num(ah_attr, port_num); ah_attr 1269 drivers/infiniband/core/sa_query.c rdma_ah_set_static_rate(ah_attr, rec->rate); ah_attr 1276 drivers/infiniband/core/sa_query.c memcpy(ah_attr->roce.dmac, sa_path_get_dmac(rec), ETH_ALEN); ah_attr 1278 drivers/infiniband/core/sa_query.c rdma_ah_set_dlid(ah_attr, be32_to_cpu(sa_path_get_dlid(rec))); ah_attr 1280 drivers/infiniband/core/sa_query.c rdma_ah_get_dlid(ah_attr) == be16_to_cpu(IB_LID_PERMISSIVE)) ah_attr 1281 drivers/infiniband/core/sa_query.c rdma_ah_set_make_grd(ah_attr, true); ah_attr 1283 drivers/infiniband/core/sa_query.c rdma_ah_set_path_bits(ah_attr, ah_attr 1290 drivers/infiniband/core/sa_query.c rec, ah_attr, gid_attr); ah_attr 1297 drivers/infiniband/core/sa_query.c struct rdma_ah_attr ah_attr; ah_attr 1313 drivers/infiniband/core/sa_query.c if ((rdma_query_ah(query->sm_ah->ah, &ah_attr) < 0) || ah_attr 1314 drivers/infiniband/core/sa_query.c !rdma_is_valid_unicast_lid(&ah_attr)) { ah_attr 2222 drivers/infiniband/core/sa_query.c struct rdma_ah_attr ah_attr; ah_attr 2242 drivers/infiniband/core/sa_query.c memset(&ah_attr, 0, sizeof(ah_attr)); ah_attr 2243 drivers/infiniband/core/sa_query.c ah_attr.type = rdma_ah_find_type(port->agent->device, ah_attr 2245 drivers/infiniband/core/sa_query.c rdma_ah_set_dlid(&ah_attr, port_attr.sm_lid); ah_attr 2246 drivers/infiniband/core/sa_query.c rdma_ah_set_sl(&ah_attr, port_attr.sm_sl); ah_attr 2247 drivers/infiniband/core/sa_query.c rdma_ah_set_port_num(&ah_attr, port->port_num); ah_attr 2258 drivers/infiniband/core/sa_query.c if (ah_attr.type == RDMA_AH_ATTR_TYPE_OPA && ah_attr 2261 drivers/infiniband/core/sa_query.c rdma_ah_set_make_grd(&ah_attr, true); ah_attr 2263 drivers/infiniband/core/sa_query.c if (ah_attr.type == RDMA_AH_ATTR_TYPE_IB && grh_required) { ah_attr 2264 drivers/infiniband/core/sa_query.c rdma_ah_set_ah_flags(&ah_attr, IB_AH_GRH); ah_attr 2265 drivers/infiniband/core/sa_query.c rdma_ah_set_subnet_prefix(&ah_attr, ah_attr 2267 drivers/infiniband/core/sa_query.c rdma_ah_set_interface_id(&ah_attr, ah_attr 2271 drivers/infiniband/core/sa_query.c new_ah->ah = rdma_create_ah(port->agent->qp->pd, &ah_attr, ah_attr 277 drivers/infiniband/core/ucma.c ib_copy_ah_attr_to_user(device, &dst->ah_attr, &src->ah_attr); ah_attr 262 drivers/infiniband/core/user_mad.c struct rdma_ah_attr ah_attr; ah_attr 269 drivers/infiniband/core/user_mad.c &ah_attr); ah_attr 273 drivers/infiniband/core/user_mad.c grh = rdma_ah_read_grh(&ah_attr); ah_attr 279 drivers/infiniband/core/user_mad.c rdma_destroy_ah_attr(&ah_attr); ah_attr 489 drivers/infiniband/core/user_mad.c struct rdma_ah_attr ah_attr; ah_attr 531 drivers/infiniband/core/user_mad.c memset(&ah_attr, 0, sizeof ah_attr); ah_attr 532 drivers/infiniband/core/user_mad.c ah_attr.type = rdma_ah_find_type(agent->device, ah_attr 534 drivers/infiniband/core/user_mad.c rdma_ah_set_dlid(&ah_attr, be16_to_cpu(packet->mad.hdr.lid)); ah_attr 535 drivers/infiniband/core/user_mad.c rdma_ah_set_sl(&ah_attr, packet->mad.hdr.sl); ah_attr 536 drivers/infiniband/core/user_mad.c rdma_ah_set_path_bits(&ah_attr, packet->mad.hdr.path_bits); ah_attr 537 drivers/infiniband/core/user_mad.c rdma_ah_set_port_num(&ah_attr, file->port->port_num); ah_attr 539 drivers/infiniband/core/user_mad.c rdma_ah_set_grh(&ah_attr, NULL, ah_attr 544 drivers/infiniband/core/user_mad.c rdma_ah_set_dgid_raw(&ah_attr, packet->mad.hdr.gid); ah_attr 547 drivers/infiniband/core/user_mad.c ah = rdma_create_user_ah(agent->qp->pd, &ah_attr, NULL); ah_attr 1704 drivers/infiniband/core/uverbs_cmd.c copy_ah_attr_to_uverbs(&resp.dest, &attr->ah_attr); ah_attr 1899 drivers/infiniband/core/uverbs_cmd.c copy_ah_attr_from_uverbs(qp->device, &attr->ah_attr, ah_attr 64 drivers/infiniband/core/uverbs_marshall.c struct rdma_ah_attr *ah_attr) ah_attr 66 drivers/infiniband/core/uverbs_marshall.c struct rdma_ah_attr *src = ah_attr; ah_attr 71 drivers/infiniband/core/uverbs_marshall.c if ((ah_attr->type == RDMA_AH_ATTR_TYPE_OPA) && ah_attr 72 drivers/infiniband/core/uverbs_marshall.c (rdma_ah_get_dlid(ah_attr) > be16_to_cpu(IB_LID_PERMISSIVE)) && ah_attr 73 drivers/infiniband/core/uverbs_marshall.c (!rdma_ah_conv_opa_to_ib(device, &conv_ah, ah_attr))) ah_attr 116 drivers/infiniband/core/uverbs_marshall.c ib_copy_ah_attr_to_user(device, &dst->ah_attr, &src->ah_attr); ah_attr 57 drivers/infiniband/core/verbs.c struct rdma_ah_attr *ah_attr); ah_attr 409 drivers/infiniband/core/verbs.c struct rdma_ah_attr *ah_attr) ah_attr 411 drivers/infiniband/core/verbs.c if (!rdma_is_port_valid(device, ah_attr->port_num)) ah_attr 414 drivers/infiniband/core/verbs.c if ((rdma_is_grh_required(device, ah_attr->port_num) || ah_attr 415 drivers/infiniband/core/verbs.c ah_attr->type == RDMA_AH_ATTR_TYPE_ROCE) && ah_attr 416 drivers/infiniband/core/verbs.c !(ah_attr->ah_flags & IB_AH_GRH)) ah_attr 419 drivers/infiniband/core/verbs.c if (ah_attr->grh.sgid_attr) { ah_attr 424 drivers/infiniband/core/verbs.c if (ah_attr->grh.sgid_attr->index != ah_attr->grh.sgid_index || ah_attr 425 drivers/infiniband/core/verbs.c ah_attr->grh.sgid_attr->port_num != ah_attr->port_num) ah_attr 436 drivers/infiniband/core/verbs.c struct rdma_ah_attr *ah_attr, ah_attr 443 drivers/infiniband/core/verbs.c *old_sgid_attr = ah_attr->grh.sgid_attr; ah_attr 445 drivers/infiniband/core/verbs.c ret = rdma_check_ah_attr(device, ah_attr); ah_attr 449 drivers/infiniband/core/verbs.c if (!(ah_attr->ah_flags & IB_AH_GRH)) ah_attr 452 drivers/infiniband/core/verbs.c grh = rdma_ah_retrieve_grh(ah_attr); ah_attr 457 drivers/infiniband/core/verbs.c rdma_get_gid_attr(device, ah_attr->port_num, grh->sgid_index); ah_attr 466 drivers/infiniband/core/verbs.c static void rdma_unfill_sgid_attr(struct rdma_ah_attr *ah_attr, ah_attr 473 drivers/infiniband/core/verbs.c if (ah_attr->grh.sgid_attr == old_sgid_attr) ah_attr 481 drivers/infiniband/core/verbs.c rdma_destroy_ah_attr(ah_attr); ah_attr 485 drivers/infiniband/core/verbs.c rdma_update_sgid_attr(struct rdma_ah_attr *ah_attr, ah_attr 490 drivers/infiniband/core/verbs.c if (ah_attr->ah_flags & IB_AH_GRH) { ah_attr 491 drivers/infiniband/core/verbs.c rdma_hold_gid_attr(ah_attr->grh.sgid_attr); ah_attr 492 drivers/infiniband/core/verbs.c return ah_attr->grh.sgid_attr; ah_attr 498 drivers/infiniband/core/verbs.c struct rdma_ah_attr *ah_attr, ah_attr 519 drivers/infiniband/core/verbs.c ah->type = ah_attr->type; ah_attr 520 drivers/infiniband/core/verbs.c ah->sgid_attr = rdma_update_sgid_attr(ah_attr, NULL); ah_attr 522 drivers/infiniband/core/verbs.c ret = device->ops.create_ah(ah, ah_attr, flags, udata); ah_attr 543 drivers/infiniband/core/verbs.c struct ib_ah *rdma_create_ah(struct ib_pd *pd, struct rdma_ah_attr *ah_attr, ah_attr 550 drivers/infiniband/core/verbs.c ret = rdma_fill_sgid_attr(pd->device, ah_attr, &old_sgid_attr); ah_attr 554 drivers/infiniband/core/verbs.c ah = _rdma_create_ah(pd, ah_attr, flags, NULL); ah_attr 556 drivers/infiniband/core/verbs.c rdma_unfill_sgid_attr(ah_attr, old_sgid_attr); ah_attr 575 drivers/infiniband/core/verbs.c struct rdma_ah_attr *ah_attr, ah_attr 582 drivers/infiniband/core/verbs.c err = rdma_fill_sgid_attr(pd->device, ah_attr, &old_sgid_attr); ah_attr 586 drivers/infiniband/core/verbs.c if (ah_attr->type == RDMA_AH_ATTR_TYPE_ROCE) { ah_attr 587 drivers/infiniband/core/verbs.c err = ib_resolve_eth_dmac(pd->device, ah_attr); ah_attr 594 drivers/infiniband/core/verbs.c ah = _rdma_create_ah(pd, ah_attr, RDMA_CREATE_AH_SLEEPABLE, udata); ah_attr 597 drivers/infiniband/core/verbs.c rdma_unfill_sgid_attr(ah_attr, old_sgid_attr); ah_attr 729 drivers/infiniband/core/verbs.c struct rdma_ah_attr *ah_attr) ah_attr 731 drivers/infiniband/core/verbs.c struct ib_global_route *grh = rdma_ah_retrieve_grh(ah_attr); ah_attr 742 drivers/infiniband/core/verbs.c ah_attr->roce.dmac); ah_attr 747 drivers/infiniband/core/verbs.c ah_attr->roce.dmac, ah_attr 768 drivers/infiniband/core/verbs.c struct rdma_ah_attr *ah_attr) ah_attr 781 drivers/infiniband/core/verbs.c memset(ah_attr, 0, sizeof *ah_attr); ah_attr 782 drivers/infiniband/core/verbs.c ah_attr->type = rdma_ah_find_type(device, port_num); ah_attr 795 drivers/infiniband/core/verbs.c rdma_ah_set_sl(ah_attr, wc->sl); ah_attr 796 drivers/infiniband/core/verbs.c rdma_ah_set_port_num(ah_attr, port_num); ah_attr 812 drivers/infiniband/core/verbs.c rdma_move_grh_sgid_attr(ah_attr, ah_attr 819 drivers/infiniband/core/verbs.c ret = ib_resolve_unicast_gid_dmac(device, ah_attr); ah_attr 821 drivers/infiniband/core/verbs.c rdma_destroy_ah_attr(ah_attr); ah_attr 825 drivers/infiniband/core/verbs.c rdma_ah_set_dlid(ah_attr, wc->slid); ah_attr 826 drivers/infiniband/core/verbs.c rdma_ah_set_path_bits(ah_attr, wc->dlid_path_bits); ah_attr 841 drivers/infiniband/core/verbs.c rdma_move_grh_sgid_attr(ah_attr, ah_attr 887 drivers/infiniband/core/verbs.c void rdma_destroy_ah_attr(struct rdma_ah_attr *ah_attr) ah_attr 889 drivers/infiniband/core/verbs.c if (ah_attr->grh.sgid_attr) { ah_attr 890 drivers/infiniband/core/verbs.c rdma_put_gid_attr(ah_attr->grh.sgid_attr); ah_attr 891 drivers/infiniband/core/verbs.c ah_attr->grh.sgid_attr = NULL; ah_attr 899 drivers/infiniband/core/verbs.c struct rdma_ah_attr ah_attr; ah_attr 903 drivers/infiniband/core/verbs.c ret = ib_init_ah_attr_from_wc(pd->device, port_num, wc, grh, &ah_attr); ah_attr 907 drivers/infiniband/core/verbs.c ah = rdma_create_ah(pd, &ah_attr, RDMA_CREATE_AH_SLEEPABLE); ah_attr 909 drivers/infiniband/core/verbs.c rdma_destroy_ah_attr(&ah_attr); ah_attr 914 drivers/infiniband/core/verbs.c int rdma_modify_ah(struct ib_ah *ah, struct rdma_ah_attr *ah_attr) ah_attr 919 drivers/infiniband/core/verbs.c if (ah->type != ah_attr->type) ah_attr 922 drivers/infiniband/core/verbs.c ret = rdma_fill_sgid_attr(ah->device, ah_attr, &old_sgid_attr); ah_attr 927 drivers/infiniband/core/verbs.c ah->device->ops.modify_ah(ah, ah_attr) : ah_attr 930 drivers/infiniband/core/verbs.c ah->sgid_attr = rdma_update_sgid_attr(ah_attr, ah->sgid_attr); ah_attr 931 drivers/infiniband/core/verbs.c rdma_unfill_sgid_attr(ah_attr, old_sgid_attr); ah_attr 936 drivers/infiniband/core/verbs.c int rdma_query_ah(struct ib_ah *ah, struct rdma_ah_attr *ah_attr) ah_attr 938 drivers/infiniband/core/verbs.c ah_attr->grh.sgid_attr = NULL; ah_attr 941 drivers/infiniband/core/verbs.c ah->device->ops.query_ah(ah, ah_attr) : ah_attr 1586 drivers/infiniband/core/verbs.c struct rdma_ah_attr *ah_attr) ah_attr 1590 drivers/infiniband/core/verbs.c if (rdma_is_multicast_addr((struct in6_addr *)ah_attr->grh.dgid.raw)) { ah_attr 1591 drivers/infiniband/core/verbs.c if (ipv6_addr_v4mapped((struct in6_addr *)ah_attr->grh.dgid.raw)) { ah_attr 1594 drivers/infiniband/core/verbs.c memcpy(&addr, ah_attr->grh.dgid.raw + 12, 4); ah_attr 1595 drivers/infiniband/core/verbs.c ip_eth_mc_map(addr, (char *)ah_attr->roce.dmac); ah_attr 1597 drivers/infiniband/core/verbs.c ipv6_eth_mc_map((struct in6_addr *)ah_attr->grh.dgid.raw, ah_attr 1598 drivers/infiniband/core/verbs.c (char *)ah_attr->roce.dmac); ah_attr 1601 drivers/infiniband/core/verbs.c ret = ib_resolve_unicast_gid_dmac(device, ah_attr); ah_attr 1626 drivers/infiniband/core/verbs.c ret = rdma_fill_sgid_attr(qp->device, &attr->ah_attr, ah_attr 1661 drivers/infiniband/core/verbs.c attr->ah_attr.type == RDMA_AH_ATTR_TYPE_ROCE && ah_attr 1663 drivers/infiniband/core/verbs.c ret = ib_resolve_eth_dmac(qp->device, &attr->ah_attr); ah_attr 1700 drivers/infiniband/core/verbs.c rdma_update_sgid_attr(&attr->ah_attr, qp->av_sgid_attr); ah_attr 1710 drivers/infiniband/core/verbs.c rdma_unfill_sgid_attr(&attr->ah_attr, old_sgid_attr_av); ah_attr 1797 drivers/infiniband/core/verbs.c qp_attr->ah_attr.grh.sgid_attr = NULL; ah_attr 652 drivers/infiniband/hw/bnxt_re/ib_verbs.c int bnxt_re_create_ah(struct ib_ah *ib_ah, struct rdma_ah_attr *ah_attr, ah_attr 657 drivers/infiniband/hw/bnxt_re/ib_verbs.c const struct ib_global_route *grh = rdma_ah_read_grh(ah_attr); ah_attr 664 drivers/infiniband/hw/bnxt_re/ib_verbs.c if (!(rdma_ah_get_ah_flags(ah_attr) & IB_AH_GRH)) { ah_attr 685 drivers/infiniband/hw/bnxt_re/ib_verbs.c ah->qplib_ah.sl = rdma_ah_get_sl(ah_attr); ah_attr 692 drivers/infiniband/hw/bnxt_re/ib_verbs.c memcpy(ah->qplib_ah.dmac, ah_attr->roce.dmac, ETH_ALEN); ah_attr 717 drivers/infiniband/hw/bnxt_re/ib_verbs.c int bnxt_re_modify_ah(struct ib_ah *ib_ah, struct rdma_ah_attr *ah_attr) ah_attr 722 drivers/infiniband/hw/bnxt_re/ib_verbs.c int bnxt_re_query_ah(struct ib_ah *ib_ah, struct rdma_ah_attr *ah_attr) ah_attr 726 drivers/infiniband/hw/bnxt_re/ib_verbs.c ah_attr->type = ib_ah->type; ah_attr 727 drivers/infiniband/hw/bnxt_re/ib_verbs.c rdma_ah_set_sl(ah_attr, ah->qplib_ah.sl); ah_attr 728 drivers/infiniband/hw/bnxt_re/ib_verbs.c memcpy(ah_attr->roce.dmac, ah->qplib_ah.dmac, ETH_ALEN); ah_attr 729 drivers/infiniband/hw/bnxt_re/ib_verbs.c rdma_ah_set_grh(ah_attr, NULL, 0, ah_attr 732 drivers/infiniband/hw/bnxt_re/ib_verbs.c rdma_ah_set_dgid_raw(ah_attr, ah->qplib_ah.dgid.data); ah_attr 733 drivers/infiniband/hw/bnxt_re/ib_verbs.c rdma_ah_set_port_num(ah_attr, 1); ah_attr 734 drivers/infiniband/hw/bnxt_re/ib_verbs.c rdma_ah_set_static_rate(ah_attr, 0); ah_attr 1610 drivers/infiniband/hw/bnxt_re/ib_verbs.c rdma_ah_read_grh(&qp_attr->ah_attr); ah_attr 1631 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.ah.sl = rdma_ah_get_sl(&qp_attr->ah_attr); ah_attr 1633 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->ah_attr.roce.dmac); ah_attr 1635 drivers/infiniband/hw/bnxt_re/ib_verbs.c sgid_attr = qp_attr->ah_attr.grh.sgid_attr; ah_attr 1800 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->ah_attr.type = RDMA_AH_ATTR_TYPE_ROCE; ah_attr 1801 drivers/infiniband/hw/bnxt_re/ib_verbs.c rdma_ah_set_grh(&qp_attr->ah_attr, NULL, qplib_qp->ah.flow_label, ah_attr 1805 drivers/infiniband/hw/bnxt_re/ib_verbs.c rdma_ah_set_dgid_raw(&qp_attr->ah_attr, qplib_qp->ah.dgid.data); ah_attr 1806 drivers/infiniband/hw/bnxt_re/ib_verbs.c rdma_ah_set_sl(&qp_attr->ah_attr, qplib_qp->ah.sl); ah_attr 1807 drivers/infiniband/hw/bnxt_re/ib_verbs.c ether_addr_copy(qp_attr->ah_attr.roce.dmac, qplib_qp->ah.dmac); ah_attr 166 drivers/infiniband/hw/bnxt_re/ib_verbs.h int bnxt_re_create_ah(struct ib_ah *ah, struct rdma_ah_attr *ah_attr, u32 flags, ah_attr 168 drivers/infiniband/hw/bnxt_re/ib_verbs.h int bnxt_re_modify_ah(struct ib_ah *ah, struct rdma_ah_attr *ah_attr); ah_attr 169 drivers/infiniband/hw/bnxt_re/ib_verbs.h int bnxt_re_query_ah(struct ib_ah *ah, struct rdma_ah_attr *ah_attr); ah_attr 151 drivers/infiniband/hw/efa/efa.h struct rdma_ah_attr *ah_attr, ah_attr 1682 drivers/infiniband/hw/efa/efa_verbs.c struct rdma_ah_attr *ah_attr, ah_attr 1707 drivers/infiniband/hw/efa/efa_verbs.c memcpy(params.dest_addr, ah_attr->grh.dgid.raw, ah_attr 1714 drivers/infiniband/hw/efa/efa_verbs.c memcpy(ah->id, ah_attr->grh.dgid.raw, sizeof(ah->id)); ah_attr 225 drivers/infiniband/hw/hfi1/qp.c sc = ah_to_sc(ibqp->device, &attr->ah_attr); ah_attr 79 drivers/infiniband/hw/hfi1/ud.c struct rdma_ah_attr *ah_attr; ah_attr 108 drivers/infiniband/hw/hfi1/ud.c ah_attr = rvt_get_swqe_ah_attr(swqe); ah_attr 114 drivers/infiniband/hw/hfi1/ud.c u8 sc5 = ibp->sl_to_sc[rdma_ah_get_sl(ah_attr)]; ah_attr 117 drivers/infiniband/hw/hfi1/ud.c slid = ppd->lid | (rdma_ah_get_path_bits(ah_attr) & ah_attr 123 drivers/infiniband/hw/hfi1/ud.c rdma_ah_get_sl(ah_attr), ah_attr 125 drivers/infiniband/hw/hfi1/ud.c slid, rdma_ah_get_dlid(ah_attr)); ah_attr 185 drivers/infiniband/hw/hfi1/ud.c if (rdma_ah_get_ah_flags(ah_attr) & IB_AH_GRH) { ah_attr 187 drivers/infiniband/hw/hfi1/ud.c struct ib_global_route grd = *(rdma_ah_read_grh(ah_attr)); ah_attr 249 drivers/infiniband/hw/hfi1/ud.c wc.slid = (ppd->lid | (rdma_ah_get_path_bits(ah_attr) & ah_attr 254 drivers/infiniband/hw/hfi1/ud.c wc.sl = rdma_ah_get_sl(ah_attr); ah_attr 255 drivers/infiniband/hw/hfi1/ud.c wc.dlid_path_bits = rdma_ah_get_dlid(ah_attr) & ((1 << ppd->lmc) - 1); ah_attr 312 drivers/infiniband/hw/hfi1/ud.c struct rdma_ah_attr *ah_attr; ah_attr 319 drivers/infiniband/hw/hfi1/ud.c ah_attr = rvt_get_swqe_ah_attr(wqe); ah_attr 328 drivers/infiniband/hw/hfi1/ud.c if (rdma_ah_get_ah_flags(ah_attr) & IB_AH_GRH) { ah_attr 331 drivers/infiniband/hw/hfi1/ud.c hfi1_make_grh(ibp, grh, rdma_ah_read_grh(ah_attr), ah_attr 341 drivers/infiniband/hw/hfi1/ud.c sc5 = ibp->sl_to_sc[rdma_ah_get_sl(ah_attr)]; ah_attr 342 drivers/infiniband/hw/hfi1/ud.c lrh0 |= (rdma_ah_get_sl(ah_attr) & 0xf) << 4; ah_attr 351 drivers/infiniband/hw/hfi1/ud.c dlid = opa_get_lid(rdma_ah_get_dlid(ah_attr), 9B); ah_attr 358 drivers/infiniband/hw/hfi1/ud.c lid |= rdma_ah_get_path_bits(ah_attr) & ah_attr 379 drivers/infiniband/hw/hfi1/ud.c struct rdma_ah_attr *ah_attr; ah_attr 391 drivers/infiniband/hw/hfi1/ud.c ah_attr = rvt_get_swqe_ah_attr(wqe); ah_attr 413 drivers/infiniband/hw/hfi1/ud.c if ((rdma_ah_get_ah_flags(ah_attr) & IB_AH_GRH) && ah_attr 414 drivers/infiniband/hw/hfi1/ud.c hfi1_check_mcast(rdma_ah_get_dlid(ah_attr))) { ah_attr 416 drivers/infiniband/hw/hfi1/ud.c struct ib_global_route *grd = rdma_ah_retrieve_grh(ah_attr); ah_attr 438 drivers/infiniband/hw/hfi1/ud.c sc5 = ibp->sl_to_sc[rdma_ah_get_sl(ah_attr)]; ah_attr 444 drivers/infiniband/hw/hfi1/ud.c dlid = opa_get_lid(rdma_ah_get_dlid(ah_attr), 16B); ah_attr 448 drivers/infiniband/hw/hfi1/ud.c slid = ppd->lid | (rdma_ah_get_path_bits(ah_attr) & ah_attr 479 drivers/infiniband/hw/hfi1/ud.c struct rdma_ah_attr *ah_attr; ah_attr 518 drivers/infiniband/hw/hfi1/ud.c ah_attr = rvt_get_swqe_ah_attr(wqe); ah_attr 519 drivers/infiniband/hw/hfi1/ud.c priv->hdr_type = hfi1_get_hdr_type(ppd->lid, ah_attr); ah_attr 520 drivers/infiniband/hw/hfi1/ud.c if ((!hfi1_check_mcast(rdma_ah_get_dlid(ah_attr))) || ah_attr 521 drivers/infiniband/hw/hfi1/ud.c (rdma_ah_get_dlid(ah_attr) == be32_to_cpu(OPA_LID_PERMISSIVE))) { ah_attr 522 drivers/infiniband/hw/hfi1/ud.c lid = rdma_ah_get_dlid(ah_attr) & ~((1 << ppd->lmc) - 1); ah_attr 552 drivers/infiniband/hw/hfi1/ud.c qp->s_srate = rdma_ah_get_static_rate(ah_attr); ah_attr 1521 drivers/infiniband/hw/hfi1/verbs.c static int hfi1_check_ah(struct ib_device *ibdev, struct rdma_ah_attr *ah_attr) ah_attr 1529 drivers/infiniband/hw/hfi1/verbs.c if (hfi1_check_mcast(rdma_ah_get_dlid(ah_attr)) && ah_attr 1530 drivers/infiniband/hw/hfi1/verbs.c !(rdma_ah_get_ah_flags(ah_attr) & IB_AH_GRH)) ah_attr 1534 drivers/infiniband/hw/hfi1/verbs.c ibp = to_iport(ibdev, rdma_ah_get_port_num(ah_attr)); ah_attr 1538 drivers/infiniband/hw/hfi1/verbs.c sl = rdma_ah_get_sl(ah_attr); ah_attr 1550 drivers/infiniband/hw/hfi1/verbs.c struct rdma_ah_attr *ah_attr, ah_attr 1564 drivers/infiniband/hw/hfi1/verbs.c ibp = to_iport(ibdev, rdma_ah_get_port_num(ah_attr)); ah_attr 417 drivers/infiniband/hw/hfi1/verbs.h u8 ah_to_sc(struct ib_device *ibdev, struct rdma_ah_attr *ah_attr); ah_attr 42 drivers/infiniband/hw/hns/hns_roce_ah.c int hns_roce_create_ah(struct ib_ah *ibah, struct rdma_ah_attr *ah_attr, ah_attr 50 drivers/infiniband/hw/hns/hns_roce_ah.c const struct ib_global_route *grh = rdma_ah_read_grh(ah_attr); ah_attr 54 drivers/infiniband/hw/hns/hns_roce_ah.c gid_attr = ah_attr->grh.sgid_attr; ah_attr 60 drivers/infiniband/hw/hns/hns_roce_ah.c memcpy(ah->av.mac, ah_attr->roce.dmac, ETH_ALEN); ah_attr 64 drivers/infiniband/hw/hns/hns_roce_ah.c vlan_tag |= (rdma_ah_get_sl(ah_attr) & ah_attr 69 drivers/infiniband/hw/hns/hns_roce_ah.c ah->av.port = rdma_ah_get_port_num(ah_attr); ah_attr 76 drivers/infiniband/hw/hns/hns_roce_ah.c if (rdma_ah_get_static_rate(ah_attr)) ah_attr 80 drivers/infiniband/hw/hns/hns_roce_ah.c ah->av.sl = rdma_ah_get_sl(ah_attr); ah_attr 85 drivers/infiniband/hw/hns/hns_roce_ah.c int hns_roce_query_ah(struct ib_ah *ibah, struct rdma_ah_attr *ah_attr) ah_attr 89 drivers/infiniband/hw/hns/hns_roce_ah.c memset(ah_attr, 0, sizeof(*ah_attr)); ah_attr 91 drivers/infiniband/hw/hns/hns_roce_ah.c rdma_ah_set_sl(ah_attr, ah->av.sl); ah_attr 92 drivers/infiniband/hw/hns/hns_roce_ah.c rdma_ah_set_port_num(ah_attr, ah->av.port); ah_attr 93 drivers/infiniband/hw/hns/hns_roce_ah.c rdma_ah_set_static_rate(ah_attr, ah->av.stat_rate); ah_attr 94 drivers/infiniband/hw/hns/hns_roce_ah.c rdma_ah_set_grh(ah_attr, NULL, ah->av.flowlabel, ah_attr 96 drivers/infiniband/hw/hns/hns_roce_ah.c rdma_ah_set_dgid_raw(ah_attr, ah->av.dgid); ah_attr 1180 drivers/infiniband/hw/hns/hns_roce_device.h int hns_roce_create_ah(struct ib_ah *ah, struct rdma_ah_attr *ah_attr, ah_attr 1182 drivers/infiniband/hw/hns/hns_roce_device.h int hns_roce_query_ah(struct ib_ah *ibah, struct rdma_ah_attr *ah_attr); ah_attr 775 drivers/infiniband/hw/hns/hns_roce_hw_v1.c attr.ah_attr.type = RDMA_AH_ATTR_TYPE_ROCE; ah_attr 776 drivers/infiniband/hw/hns/hns_roce_hw_v1.c rdma_ah_set_grh(&attr.ah_attr, NULL, 0, 0, 1, 0); ah_attr 777 drivers/infiniband/hw/hns/hns_roce_hw_v1.c rdma_ah_set_static_rate(&attr.ah_attr, 3); ah_attr 814 drivers/infiniband/hw/hns/hns_roce_hw_v1.c rdma_ah_set_port_num(&attr.ah_attr, port + 1); ah_attr 815 drivers/infiniband/hw/hns/hns_roce_hw_v1.c rdma_ah_set_sl(&attr.ah_attr, sl); ah_attr 819 drivers/infiniband/hw/hns/hns_roce_hw_v1.c memcpy(rdma_ah_retrieve_dmac(&attr.ah_attr), ah_attr 829 drivers/infiniband/hw/hns/hns_roce_hw_v1.c rdma_ah_set_dgid_raw(&attr.ah_attr, dgid.raw); ah_attr 2720 drivers/infiniband/hw/hns/hns_roce_hw_v1.c const struct ib_global_route *grh = rdma_ah_read_grh(&attr->ah_attr); ah_attr 2896 drivers/infiniband/hw/hns/hns_roce_hw_v1.c dmac = (u8 *)attr->ah_attr.roce.dmac; ah_attr 2937 drivers/infiniband/hw/hns/hns_roce_hw_v1.c rdma_ah_get_ah_flags(&attr->ah_attr)); ah_attr 2950 drivers/infiniband/hw/hns/hns_roce_hw_v1.c port_num = rdma_ah_get_port_num(&attr->ah_attr); ah_attr 2967 drivers/infiniband/hw/hns/hns_roce_hw_v1.c rdma_ah_get_static_rate(&attr->ah_attr)); ah_attr 3068 drivers/infiniband/hw/hns/hns_roce_hw_v1.c rdma_ah_get_sl(&attr->ah_attr)); ah_attr 3069 drivers/infiniband/hw/hns/hns_roce_hw_v1.c hr_qp->sl = rdma_ah_get_sl(&attr->ah_attr); ah_attr 3181 drivers/infiniband/hw/hns/hns_roce_hw_v1.c rdma_ah_get_sl(&attr->ah_attr)); ah_attr 3182 drivers/infiniband/hw/hns/hns_roce_hw_v1.c hr_qp->sl = rdma_ah_get_sl(&attr->ah_attr); ah_attr 3415 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->ah_attr.type = RDMA_AH_ATTR_TYPE_ROCE; ah_attr 3497 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->ah_attr.type = RDMA_AH_ATTR_TYPE_ROCE; ah_attr 3520 drivers/infiniband/hw/hns/hns_roce_hw_v1.c rdma_ah_retrieve_grh(&qp_attr->ah_attr); ah_attr 3522 drivers/infiniband/hw/hns/hns_roce_hw_v1.c rdma_ah_set_sl(&qp_attr->ah_attr, ah_attr 3526 drivers/infiniband/hw/hns/hns_roce_hw_v1.c rdma_ah_set_ah_flags(&qp_attr->ah_attr, IB_AH_GRH); ah_attr 3671 drivers/infiniband/hw/hns/hns_roce_hw_v2.c const struct ib_global_route *grh = rdma_ah_read_grh(&attr->ah_attr); ah_attr 3718 drivers/infiniband/hw/hns/hns_roce_hw_v2.c dmac = (u8 *)attr->ah_attr.roce.dmac; ah_attr 3843 drivers/infiniband/hw/hns/hns_roce_hw_v2.c port_num = rdma_ah_get_port_num(&attr->ah_attr); ah_attr 4062 drivers/infiniband/hw/hns/hns_roce_hw_v2.c const struct ib_global_route *grh = rdma_ah_read_grh(&attr->ah_attr); ah_attr 4076 drivers/infiniband/hw/hns/hns_roce_hw_v2.c rdma_ah_get_ah_flags(&attr->ah_attr) & IB_AH_GRH; ah_attr 4079 drivers/infiniband/hw/hns/hns_roce_hw_v2.c gid_attr = attr->ah_attr.grh.sgid_attr; ah_attr 4111 drivers/infiniband/hw/hns/hns_roce_hw_v2.c if (attr->ah_attr.type != RDMA_AH_ATTR_TYPE_ROCE) { ah_attr 4150 drivers/infiniband/hw/hns/hns_roce_hw_v2.c V2_QPC_BYTE_28_SL_S, rdma_ah_get_sl(&attr->ah_attr)); ah_attr 4153 drivers/infiniband/hw/hns/hns_roce_hw_v2.c hr_qp->sl = rdma_ah_get_sl(&attr->ah_attr); ah_attr 4565 drivers/infiniband/hw/hns/hns_roce_hw_v2.c qp_attr->ah_attr.type = RDMA_AH_ATTR_TYPE_ROCE; ah_attr 4588 drivers/infiniband/hw/hns/hns_roce_hw_v2.c rdma_ah_retrieve_grh(&qp_attr->ah_attr); ah_attr 4590 drivers/infiniband/hw/hns/hns_roce_hw_v2.c rdma_ah_set_sl(&qp_attr->ah_attr, ah_attr 43 drivers/infiniband/hw/mlx4/ah.c static void create_ib_ah(struct ib_ah *ib_ah, struct rdma_ah_attr *ah_attr) ah_attr 49 drivers/infiniband/hw/mlx4/ah.c (rdma_ah_get_port_num(ah_attr) << 24)); ah_attr 50 drivers/infiniband/hw/mlx4/ah.c ah->av.ib.g_slid = rdma_ah_get_path_bits(ah_attr); ah_attr 52 drivers/infiniband/hw/mlx4/ah.c cpu_to_be32(rdma_ah_get_sl(ah_attr) << 28); ah_attr 53 drivers/infiniband/hw/mlx4/ah.c if (rdma_ah_get_ah_flags(ah_attr) & IB_AH_GRH) { ah_attr 54 drivers/infiniband/hw/mlx4/ah.c const struct ib_global_route *grh = rdma_ah_read_grh(ah_attr); ah_attr 65 drivers/infiniband/hw/mlx4/ah.c ah->av.ib.dlid = cpu_to_be16(rdma_ah_get_dlid(ah_attr)); ah_attr 66 drivers/infiniband/hw/mlx4/ah.c if (rdma_ah_get_static_rate(ah_attr)) { ah_attr 67 drivers/infiniband/hw/mlx4/ah.c u8 static_rate = rdma_ah_get_static_rate(ah_attr) + ah_attr 77 drivers/infiniband/hw/mlx4/ah.c static int create_iboe_ah(struct ib_ah *ib_ah, struct rdma_ah_attr *ah_attr) ah_attr 86 drivers/infiniband/hw/mlx4/ah.c const struct ib_global_route *grh = rdma_ah_read_grh(ah_attr); ah_attr 93 drivers/infiniband/hw/mlx4/ah.c memcpy(ah->av.eth.mac, ah_attr->roce.dmac, ETH_ALEN); ah_attr 100 drivers/infiniband/hw/mlx4/ah.c gid_attr = ah_attr->grh.sgid_attr; ah_attr 113 drivers/infiniband/hw/mlx4/ah.c ah->av.eth.gid_index = ah_attr->grh.sgid_index; ah_attr 117 drivers/infiniband/hw/mlx4/ah.c vlan_tag |= (rdma_ah_get_sl(ah_attr) & 7) << 13; ah_attr 119 drivers/infiniband/hw/mlx4/ah.c (rdma_ah_get_port_num(ah_attr) << 24)); ah_attr 122 drivers/infiniband/hw/mlx4/ah.c if (rdma_ah_get_static_rate(ah_attr)) { ah_attr 123 drivers/infiniband/hw/mlx4/ah.c ah->av.eth.stat_rate = rdma_ah_get_static_rate(ah_attr) + ah_attr 139 drivers/infiniband/hw/mlx4/ah.c ah->av.eth.sl_tclass_flowlabel |= cpu_to_be32(rdma_ah_get_sl(ah_attr) ah_attr 144 drivers/infiniband/hw/mlx4/ah.c int mlx4_ib_create_ah(struct ib_ah *ib_ah, struct rdma_ah_attr *ah_attr, ah_attr 148 drivers/infiniband/hw/mlx4/ah.c if (ah_attr->type == RDMA_AH_ATTR_TYPE_ROCE) { ah_attr 149 drivers/infiniband/hw/mlx4/ah.c if (!(rdma_ah_get_ah_flags(ah_attr) & IB_AH_GRH)) ah_attr 159 drivers/infiniband/hw/mlx4/ah.c return create_iboe_ah(ib_ah, ah_attr); ah_attr 162 drivers/infiniband/hw/mlx4/ah.c create_ib_ah(ib_ah, ah_attr); ah_attr 166 drivers/infiniband/hw/mlx4/ah.c int mlx4_ib_create_ah_slave(struct ib_ah *ah, struct rdma_ah_attr *ah_attr, ah_attr 169 drivers/infiniband/hw/mlx4/ah.c struct rdma_ah_attr slave_attr = *ah_attr; ah_attr 179 drivers/infiniband/hw/mlx4/ah.c ah->type = ah_attr->type; ah_attr 184 drivers/infiniband/hw/mlx4/ah.c if (ah_attr->type == RDMA_AH_ATTR_TYPE_ROCE) ah_attr 188 drivers/infiniband/hw/mlx4/ah.c vlan_tag |= (rdma_ah_get_sl(ah_attr) & 7) << 13; ah_attr 194 drivers/infiniband/hw/mlx4/ah.c int mlx4_ib_query_ah(struct ib_ah *ibah, struct rdma_ah_attr *ah_attr) ah_attr 199 drivers/infiniband/hw/mlx4/ah.c memset(ah_attr, 0, sizeof *ah_attr); ah_attr 200 drivers/infiniband/hw/mlx4/ah.c ah_attr->type = ibah->type; ah_attr 202 drivers/infiniband/hw/mlx4/ah.c if (ah_attr->type == RDMA_AH_ATTR_TYPE_ROCE) { ah_attr 203 drivers/infiniband/hw/mlx4/ah.c rdma_ah_set_dlid(ah_attr, 0); ah_attr 204 drivers/infiniband/hw/mlx4/ah.c rdma_ah_set_sl(ah_attr, ah_attr 208 drivers/infiniband/hw/mlx4/ah.c rdma_ah_set_dlid(ah_attr, be16_to_cpu(ah->av.ib.dlid)); ah_attr 209 drivers/infiniband/hw/mlx4/ah.c rdma_ah_set_sl(ah_attr, ah_attr 214 drivers/infiniband/hw/mlx4/ah.c rdma_ah_set_port_num(ah_attr, port_num); ah_attr 216 drivers/infiniband/hw/mlx4/ah.c rdma_ah_set_static_rate(ah_attr, ah_attr 219 drivers/infiniband/hw/mlx4/ah.c rdma_ah_set_path_bits(ah_attr, ah->av.ib.g_slid & 0x7F); ah_attr 223 drivers/infiniband/hw/mlx4/ah.c rdma_ah_set_grh(ah_attr, NULL, ah_attr 227 drivers/infiniband/hw/mlx4/ah.c rdma_ah_set_dgid_raw(ah_attr, ah->av.ib.dgid); ah_attr 192 drivers/infiniband/hw/mlx4/mad.c struct rdma_ah_attr ah_attr; ah_attr 198 drivers/infiniband/hw/mlx4/mad.c memset(&ah_attr, 0, sizeof ah_attr); ah_attr 199 drivers/infiniband/hw/mlx4/mad.c ah_attr.type = rdma_ah_find_type(&dev->ib_dev, port_num); ah_attr 200 drivers/infiniband/hw/mlx4/mad.c rdma_ah_set_dlid(&ah_attr, lid); ah_attr 201 drivers/infiniband/hw/mlx4/mad.c rdma_ah_set_sl(&ah_attr, sl); ah_attr 202 drivers/infiniband/hw/mlx4/mad.c rdma_ah_set_port_num(&ah_attr, port_num); ah_attr 205 drivers/infiniband/hw/mlx4/mad.c &ah_attr, 0); ah_attr 1472 drivers/infiniband/hw/mlx4/mad.c struct rdma_ah_attr *ah_attr) ah_attr 1474 drivers/infiniband/hw/mlx4/mad.c struct ib_global_route *grh = rdma_ah_retrieve_grh(ah_attr); ah_attr 1488 drivers/infiniband/hw/mlx4/mad.c struct rdma_ah_attr ah_attr; ah_attr 1579 drivers/infiniband/hw/mlx4/mad.c mlx4_ib_query_ah(&ah.ibah, &ah_attr); ah_attr 1580 drivers/infiniband/hw/mlx4/mad.c if (rdma_ah_get_ah_flags(&ah_attr) & IB_AH_GRH) ah_attr 1581 drivers/infiniband/hw/mlx4/mad.c fill_in_real_sgid_index(dev, slave, ctx->port, &ah_attr); ah_attr 1582 drivers/infiniband/hw/mlx4/mad.c dmac = rdma_ah_retrieve_dmac(&ah_attr); ah_attr 1589 drivers/infiniband/hw/mlx4/mad.c rdma_ah_set_sl(&ah_attr, qos); ah_attr 1597 drivers/infiniband/hw/mlx4/mad.c &ah_attr, wc->smac, vlan_id, &tunnel->mad); ah_attr 212 drivers/infiniband/hw/mlx4/mcg.c struct rdma_ah_attr ah_attr; ah_attr 221 drivers/infiniband/hw/mlx4/mcg.c mlx4_ib_query_ah(dev->sm_ah[ctx->port - 1], &ah_attr); ah_attr 225 drivers/infiniband/hw/mlx4/mcg.c &ah_attr, NULL, 0xffff, mad); ah_attr 234 drivers/infiniband/hw/mlx4/mcg.c struct rdma_ah_attr ah_attr; ah_attr 240 drivers/infiniband/hw/mlx4/mcg.c rdma_query_ah(dev->sm_ah[ctx->port - 1], &ah_attr); ah_attr 247 drivers/infiniband/hw/mlx4/mcg.c wc.slid = rdma_ah_get_dlid(&ah_attr); /* opensm lid */ ah_attr 754 drivers/infiniband/hw/mlx4/mlx4_ib.h int mlx4_ib_create_ah(struct ib_ah *ah, struct rdma_ah_attr *ah_attr, u32 flags, ah_attr 756 drivers/infiniband/hw/mlx4/mlx4_ib.h int mlx4_ib_create_ah_slave(struct ib_ah *ah, struct rdma_ah_attr *ah_attr, ah_attr 758 drivers/infiniband/hw/mlx4/mlx4_ib.h int mlx4_ib_query_ah(struct ib_ah *ibah, struct rdma_ah_attr *ah_attr); ah_attr 1919 drivers/infiniband/hw/mlx4/qp.c return _mlx4_set_path(dev, &qp->ah_attr, ah_attr 2321 drivers/infiniband/hw/mlx4/qp.c rdma_ah_get_ah_flags(&attr->ah_attr) & IB_AH_GRH; ah_attr 2324 drivers/infiniband/hw/mlx4/qp.c gid_attr = attr->ah_attr.grh.sgid_attr; ah_attr 3989 drivers/infiniband/hw/mlx4/qp.c struct rdma_ah_attr *ah_attr, ah_attr 3995 drivers/infiniband/hw/mlx4/qp.c memset(ah_attr, 0, sizeof(*ah_attr)); ah_attr 3998 drivers/infiniband/hw/mlx4/qp.c ah_attr->type = rdma_ah_find_type(&ibdev->ib_dev, port_num); ah_attr 4000 drivers/infiniband/hw/mlx4/qp.c if (ah_attr->type == RDMA_AH_ATTR_TYPE_ROCE) ah_attr 4001 drivers/infiniband/hw/mlx4/qp.c rdma_ah_set_sl(ah_attr, ((path->sched_queue >> 3) & 0x7) | ah_attr 4004 drivers/infiniband/hw/mlx4/qp.c rdma_ah_set_sl(ah_attr, (path->sched_queue >> 2) & 0xf); ah_attr 4005 drivers/infiniband/hw/mlx4/qp.c rdma_ah_set_port_num(ah_attr, port_num); ah_attr 4007 drivers/infiniband/hw/mlx4/qp.c rdma_ah_set_dlid(ah_attr, be16_to_cpu(path->rlid)); ah_attr 4008 drivers/infiniband/hw/mlx4/qp.c rdma_ah_set_path_bits(ah_attr, path->grh_mylmc & 0x7f); ah_attr 4009 drivers/infiniband/hw/mlx4/qp.c rdma_ah_set_static_rate(ah_attr, ah_attr 4012 drivers/infiniband/hw/mlx4/qp.c rdma_ah_set_grh(ah_attr, NULL, ah_attr 4018 drivers/infiniband/hw/mlx4/qp.c rdma_ah_set_dgid_raw(ah_attr, path->rgid); ah_attr 4062 drivers/infiniband/hw/mlx4/qp.c to_rdma_ah_attr(dev, &qp_attr->ah_attr, &context.pri_path); ah_attr 36 drivers/infiniband/hw/mlx5/ah.c struct rdma_ah_attr *ah_attr) ah_attr 40 drivers/infiniband/hw/mlx5/ah.c if (rdma_ah_get_ah_flags(ah_attr) & IB_AH_GRH) { ah_attr 41 drivers/infiniband/hw/mlx5/ah.c const struct ib_global_route *grh = rdma_ah_read_grh(ah_attr); ah_attr 51 drivers/infiniband/hw/mlx5/ah.c ah->av.stat_rate_sl = (rdma_ah_get_static_rate(ah_attr) << 4); ah_attr 53 drivers/infiniband/hw/mlx5/ah.c if (ah_attr->type == RDMA_AH_ATTR_TYPE_ROCE) { ah_attr 54 drivers/infiniband/hw/mlx5/ah.c gid_type = ah_attr->grh.sgid_attr->gid_type; ah_attr 56 drivers/infiniband/hw/mlx5/ah.c memcpy(ah->av.rmac, ah_attr->roce.dmac, ah_attr 57 drivers/infiniband/hw/mlx5/ah.c sizeof(ah_attr->roce.dmac)); ah_attr 59 drivers/infiniband/hw/mlx5/ah.c mlx5_get_roce_udp_sport(dev, ah_attr->grh.sgid_attr); ah_attr 60 drivers/infiniband/hw/mlx5/ah.c ah->av.stat_rate_sl |= (rdma_ah_get_sl(ah_attr) & 0x7) << 1; ah_attr 65 drivers/infiniband/hw/mlx5/ah.c ah->av.rlid = cpu_to_be16(rdma_ah_get_dlid(ah_attr)); ah_attr 66 drivers/infiniband/hw/mlx5/ah.c ah->av.fl_mlid = rdma_ah_get_path_bits(ah_attr) & 0x7f; ah_attr 67 drivers/infiniband/hw/mlx5/ah.c ah->av.stat_rate_sl |= (rdma_ah_get_sl(ah_attr) & 0xf); ah_attr 71 drivers/infiniband/hw/mlx5/ah.c int mlx5_ib_create_ah(struct ib_ah *ibah, struct rdma_ah_attr *ah_attr, ah_attr 77 drivers/infiniband/hw/mlx5/ah.c enum rdma_ah_attr_type ah_type = ah_attr->type; ah_attr 80 drivers/infiniband/hw/mlx5/ah.c !(rdma_ah_get_ah_flags(ah_attr) & IB_AH_GRH)) ah_attr 94 drivers/infiniband/hw/mlx5/ah.c memcpy(resp.dmac, ah_attr->roce.dmac, ETH_ALEN); ah_attr 100 drivers/infiniband/hw/mlx5/ah.c create_ib_ah(dev, ah, ah_attr); ah_attr 104 drivers/infiniband/hw/mlx5/ah.c int mlx5_ib_query_ah(struct ib_ah *ibah, struct rdma_ah_attr *ah_attr) ah_attr 109 drivers/infiniband/hw/mlx5/ah.c memset(ah_attr, 0, sizeof(*ah_attr)); ah_attr 110 drivers/infiniband/hw/mlx5/ah.c ah_attr->type = ibah->type; ah_attr 114 drivers/infiniband/hw/mlx5/ah.c rdma_ah_set_grh(ah_attr, NULL, ah_attr 119 drivers/infiniband/hw/mlx5/ah.c rdma_ah_set_dgid_raw(ah_attr, ah->av.rgid); ah_attr 121 drivers/infiniband/hw/mlx5/ah.c rdma_ah_set_dlid(ah_attr, be16_to_cpu(ah->av.rlid)); ah_attr 122 drivers/infiniband/hw/mlx5/ah.c rdma_ah_set_static_rate(ah_attr, ah->av.stat_rate_sl >> 4); ah_attr 123 drivers/infiniband/hw/mlx5/ah.c rdma_ah_set_sl(ah_attr, ah->av.stat_rate_sl & 0xf); ah_attr 1106 drivers/infiniband/hw/mlx5/mlx5_ib.h int mlx5_ib_create_ah(struct ib_ah *ah, struct rdma_ah_attr *ah_attr, u32 flags, ah_attr 1108 drivers/infiniband/hw/mlx5/mlx5_ib.h int mlx5_ib_query_ah(struct ib_ah *ibah, struct rdma_ah_attr *ah_attr); ah_attr 3543 drivers/infiniband/hw/mlx5/qp.c err = mlx5_set_path(dev, qp, &attr->ah_attr, &context->pri_path, ah_attr 3861 drivers/infiniband/hw/mlx5/qp.c MLX5_SET(dctc, dctc, tclass, attr->ah_attr.grh.traffic_class); ah_attr 3862 drivers/infiniband/hw/mlx5/qp.c MLX5_SET(dctc, dctc, flow_label, attr->ah_attr.grh.flow_label); ah_attr 3864 drivers/infiniband/hw/mlx5/qp.c MLX5_SET(dctc, dctc, my_addr_index, attr->ah_attr.grh.sgid_index); ah_attr 3865 drivers/infiniband/hw/mlx5/qp.c MLX5_SET(dctc, dctc, hop_limit, attr->ah_attr.grh.hop_limit); ah_attr 5481 drivers/infiniband/hw/mlx5/qp.c struct rdma_ah_attr *ah_attr, ah_attr 5485 drivers/infiniband/hw/mlx5/qp.c memset(ah_attr, 0, sizeof(*ah_attr)); ah_attr 5490 drivers/infiniband/hw/mlx5/qp.c ah_attr->type = rdma_ah_find_type(&ibdev->ib_dev, path->port); ah_attr 5492 drivers/infiniband/hw/mlx5/qp.c rdma_ah_set_port_num(ah_attr, path->port); ah_attr 5493 drivers/infiniband/hw/mlx5/qp.c rdma_ah_set_sl(ah_attr, path->dci_cfi_prio_sl & 0xf); ah_attr 5495 drivers/infiniband/hw/mlx5/qp.c rdma_ah_set_dlid(ah_attr, be16_to_cpu(path->rlid)); ah_attr 5496 drivers/infiniband/hw/mlx5/qp.c rdma_ah_set_path_bits(ah_attr, path->grh_mlid & 0x7f); ah_attr 5497 drivers/infiniband/hw/mlx5/qp.c rdma_ah_set_static_rate(ah_attr, ah_attr 5501 drivers/infiniband/hw/mlx5/qp.c ah_attr->type == RDMA_AH_ATTR_TYPE_ROCE) { ah_attr 5504 drivers/infiniband/hw/mlx5/qp.c rdma_ah_set_grh(ah_attr, NULL, ah_attr 5509 drivers/infiniband/hw/mlx5/qp.c rdma_ah_set_dgid_raw(ah_attr, path->rgid); ah_attr 5662 drivers/infiniband/hw/mlx5/qp.c to_rdma_ah_attr(dev, &qp_attr->ah_attr, &context->pri_path); ah_attr 5743 drivers/infiniband/hw/mlx5/qp.c qp_attr->ah_attr.grh.traffic_class = MLX5_GET(dctc, dctc, tclass); ah_attr 5744 drivers/infiniband/hw/mlx5/qp.c qp_attr->ah_attr.grh.flow_label = MLX5_GET(dctc, dctc, flow_label); ah_attr 5745 drivers/infiniband/hw/mlx5/qp.c qp_attr->ah_attr.grh.sgid_index = MLX5_GET(dctc, dctc, my_addr_index); ah_attr 5746 drivers/infiniband/hw/mlx5/qp.c qp_attr->ah_attr.grh.hop_limit = MLX5_GET(dctc, dctc, hop_limit); ah_attr 155 drivers/infiniband/hw/mthca/mthca_av.c struct rdma_ah_attr *ah_attr, ah_attr 200 drivers/infiniband/hw/mthca/mthca_av.c (rdma_ah_get_port_num(ah_attr) << 24)); ah_attr 201 drivers/infiniband/hw/mthca/mthca_av.c av->g_slid = rdma_ah_get_path_bits(ah_attr); ah_attr 202 drivers/infiniband/hw/mthca/mthca_av.c av->dlid = cpu_to_be16(rdma_ah_get_dlid(ah_attr)); ah_attr 204 drivers/infiniband/hw/mthca/mthca_av.c mthca_get_rate(dev, rdma_ah_get_static_rate(ah_attr), ah_attr 205 drivers/infiniband/hw/mthca/mthca_av.c rdma_ah_get_port_num(ah_attr)); ah_attr 206 drivers/infiniband/hw/mthca/mthca_av.c av->sl_tclass_flowlabel = cpu_to_be32(rdma_ah_get_sl(ah_attr) << 28); ah_attr 207 drivers/infiniband/hw/mthca/mthca_av.c if (rdma_ah_get_ah_flags(ah_attr) & IB_AH_GRH) { ah_attr 208 drivers/infiniband/hw/mthca/mthca_av.c const struct ib_global_route *grh = rdma_ah_read_grh(ah_attr); ah_attr 211 drivers/infiniband/hw/mthca/mthca_av.c av->gid_index = (rdma_ah_get_port_num(ah_attr) - 1) * ah_attr 566 drivers/infiniband/hw/mthca/mthca_dev.h struct rdma_ah_attr *ah_attr, ah_attr 79 drivers/infiniband/hw/mthca/mthca_mad.c struct rdma_ah_attr ah_attr; ah_attr 85 drivers/infiniband/hw/mthca/mthca_mad.c memset(&ah_attr, 0, sizeof ah_attr); ah_attr 86 drivers/infiniband/hw/mthca/mthca_mad.c ah_attr.type = rdma_ah_find_type(&dev->ib_dev, port_num); ah_attr 87 drivers/infiniband/hw/mthca/mthca_mad.c rdma_ah_set_dlid(&ah_attr, lid); ah_attr 88 drivers/infiniband/hw/mthca/mthca_mad.c rdma_ah_set_sl(&ah_attr, sl); ah_attr 89 drivers/infiniband/hw/mthca/mthca_mad.c rdma_ah_set_port_num(&ah_attr, port_num); ah_attr 92 drivers/infiniband/hw/mthca/mthca_mad.c &ah_attr, 0); ah_attr 391 drivers/infiniband/hw/mthca/mthca_provider.c static int mthca_ah_create(struct ib_ah *ibah, struct rdma_ah_attr *ah_attr, ah_attr 397 drivers/infiniband/hw/mthca/mthca_provider.c return mthca_create_ah(to_mdev(ibah->device), to_mpd(ibah->pd), ah_attr, ah_attr 398 drivers/infiniband/hw/mthca/mthca_qp.c struct rdma_ah_attr *ah_attr, ah_attr 403 drivers/infiniband/hw/mthca/mthca_qp.c memset(ah_attr, 0, sizeof(*ah_attr)); ah_attr 407 drivers/infiniband/hw/mthca/mthca_qp.c ah_attr->type = rdma_ah_find_type(&dev->ib_dev, port_num); ah_attr 408 drivers/infiniband/hw/mthca/mthca_qp.c rdma_ah_set_port_num(ah_attr, port_num); ah_attr 410 drivers/infiniband/hw/mthca/mthca_qp.c rdma_ah_set_dlid(ah_attr, be16_to_cpu(path->rlid)); ah_attr 411 drivers/infiniband/hw/mthca/mthca_qp.c rdma_ah_set_sl(ah_attr, be32_to_cpu(path->sl_tclass_flowlabel) >> 28); ah_attr 412 drivers/infiniband/hw/mthca/mthca_qp.c rdma_ah_set_path_bits(ah_attr, path->g_mylmc & 0x7f); ah_attr 413 drivers/infiniband/hw/mthca/mthca_qp.c rdma_ah_set_static_rate(ah_attr, ah_attr 420 drivers/infiniband/hw/mthca/mthca_qp.c rdma_ah_set_grh(ah_attr, NULL, ah_attr 426 drivers/infiniband/hw/mthca/mthca_qp.c rdma_ah_set_dgid_raw(ah_attr, path->rgid); ah_attr 477 drivers/infiniband/hw/mthca/mthca_qp.c to_rdma_ah_attr(dev, &qp_attr->ah_attr, &context->pri_path); ah_attr 660 drivers/infiniband/hw/mthca/mthca_qp.c if (mthca_path_set(dev, &attr->ah_attr, &qp_context->pri_path, ah_attr 530 drivers/infiniband/hw/ocrdma/ocrdma.h struct rdma_ah_attr *ah_attr, u8 *mac_addr) ah_attr 534 drivers/infiniband/hw/ocrdma/ocrdma.h memcpy(&in6, rdma_ah_read_grh(ah_attr)->dgid.raw, sizeof(in6)); ah_attr 540 drivers/infiniband/hw/ocrdma/ocrdma.h memcpy(mac_addr, ah_attr->roce.dmac, ETH_ALEN); ah_attr 54 drivers/infiniband/hw/ocrdma/ocrdma_ah.h int ocrdma_create_ah(struct ib_ah *ah, struct rdma_ah_attr *ah_attr, u32 flags, ah_attr 57 drivers/infiniband/hw/ocrdma/ocrdma_ah.h int ocrdma_query_ah(struct ib_ah *ah, struct rdma_ah_attr *ah_attr); ah_attr 2493 drivers/infiniband/hw/ocrdma/ocrdma_hw.c struct rdma_ah_attr *ah_attr = &attrs->ah_attr; ah_attr 2504 drivers/infiniband/hw/ocrdma/ocrdma_hw.c if ((rdma_ah_get_ah_flags(ah_attr) & IB_AH_GRH) == 0) ah_attr 2506 drivers/infiniband/hw/ocrdma/ocrdma_hw.c grh = rdma_ah_read_grh(ah_attr); ah_attr 2513 drivers/infiniband/hw/ocrdma/ocrdma_hw.c cmd->params.rnt_rc_sl_fl |= (rdma_ah_get_sl(ah_attr) << ah_attr 2523 drivers/infiniband/hw/ocrdma/ocrdma_hw.c sgid_attr = ah_attr->grh.sgid_attr; ah_attr 2531 drivers/infiniband/hw/ocrdma/ocrdma_hw.c status = ocrdma_resolve_dmac(dev, ah_attr, &mac_addr[0]); ah_attr 1503 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c qp_attr->ah_attr.type = RDMA_AH_ATTR_TYPE_ROCE; ah_attr 1505 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c rdma_ah_set_grh(&qp_attr->ah_attr, NULL, ah_attr 1515 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c rdma_ah_set_dgid_raw(&qp_attr->ah_attr, ¶ms.dgid[0]); ah_attr 1517 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c rdma_ah_set_port_num(&qp_attr->ah_attr, 1); ah_attr 1518 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c rdma_ah_set_sl(&qp_attr->ah_attr, (params.rnt_rc_sl_fl & ah_attr 1533 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c rdma_ah_set_path_bits(&qp_attr->ah_attr, 0); ah_attr 1534 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c rdma_ah_set_static_rate(&qp_attr->ah_attr, 0); ah_attr 515 drivers/infiniband/hw/qedr/qedr.h struct rdma_ah_attr *ah_attr, u8 *mac_addr) ah_attr 519 drivers/infiniband/hw/qedr/qedr.h const struct ib_global_route *grh = rdma_ah_read_grh(ah_attr); ah_attr 529 drivers/infiniband/hw/qedr/qedr.h dmac = rdma_ah_retrieve_dmac(ah_attr); ah_attr 388 drivers/infiniband/hw/qedr/qedr_roce_cm.c struct rdma_ah_attr *ah_attr = &get_qedr_ah(ud_wr(swr)->ah)->attr; ah_attr 389 drivers/infiniband/hw/qedr/qedr_roce_cm.c const struct ib_global_route *grh = rdma_ah_read_grh(ah_attr); ah_attr 437 drivers/infiniband/hw/qedr/qedr_roce_cm.c ether_addr_copy(udh->eth.dmac_h, ah_attr->roce.dmac); ah_attr 1016 drivers/infiniband/hw/qedr/verbs.c const struct ib_global_route *grh = rdma_ah_read_grh(&attr->ah_attr); ah_attr 2111 drivers/infiniband/hw/qedr/verbs.c const struct ib_global_route *grh = rdma_ah_read_grh(&attr->ah_attr); ah_attr 2213 drivers/infiniband/hw/qedr/verbs.c rc = qedr_get_dmac(dev, &attr->ah_attr, ah_attr 2411 drivers/infiniband/hw/qedr/verbs.c qp_attr->ah_attr.type = RDMA_AH_ATTR_TYPE_ROCE; ah_attr 2412 drivers/infiniband/hw/qedr/verbs.c rdma_ah_set_grh(&qp_attr->ah_attr, NULL, ah_attr 2415 drivers/infiniband/hw/qedr/verbs.c rdma_ah_set_dgid_raw(&qp_attr->ah_attr, ¶ms.dgid.bytes[0]); ah_attr 2416 drivers/infiniband/hw/qedr/verbs.c rdma_ah_set_port_num(&qp_attr->ah_attr, 1); ah_attr 2417 drivers/infiniband/hw/qedr/verbs.c rdma_ah_set_sl(&qp_attr->ah_attr, 0); ah_attr 2424 drivers/infiniband/hw/qedr/verbs.c rdma_ah_set_path_bits(&qp_attr->ah_attr, 0); ah_attr 2425 drivers/infiniband/hw/qedr/verbs.c rdma_ah_set_static_rate(&qp_attr->ah_attr, 0); ah_attr 58 drivers/infiniband/hw/qib/qib_ud.c struct rdma_ah_attr *ah_attr; ah_attr 84 drivers/infiniband/hw/qib/qib_ud.c ah_attr = rvt_get_swqe_ah_attr(swqe); ah_attr 95 drivers/infiniband/hw/qib/qib_ud.c lid = ppd->lid | (rdma_ah_get_path_bits(ah_attr) & ah_attr 98 drivers/infiniband/hw/qib/qib_ud.c rdma_ah_get_sl(ah_attr), ah_attr 101 drivers/infiniband/hw/qib/qib_ud.c cpu_to_be16(rdma_ah_get_dlid(ah_attr))); ah_attr 161 drivers/infiniband/hw/qib/qib_ud.c if (rdma_ah_get_ah_flags(ah_attr) & IB_AH_GRH) { ah_attr 163 drivers/infiniband/hw/qib/qib_ud.c const struct ib_global_route *grd = rdma_ah_read_grh(ah_attr); ah_attr 208 drivers/infiniband/hw/qib/qib_ud.c wc.slid = ppd->lid | (rdma_ah_get_path_bits(ah_attr) & ah_attr 210 drivers/infiniband/hw/qib/qib_ud.c wc.sl = rdma_ah_get_sl(ah_attr); ah_attr 211 drivers/infiniband/hw/qib/qib_ud.c wc.dlid_path_bits = rdma_ah_get_dlid(ah_attr) & ((1 << ppd->lmc) - 1); ah_attr 234 drivers/infiniband/hw/qib/qib_ud.c struct rdma_ah_attr *ah_attr; ah_attr 274 drivers/infiniband/hw/qib/qib_ud.c ah_attr = rvt_get_swqe_ah_attr(wqe); ah_attr 275 drivers/infiniband/hw/qib/qib_ud.c if (rdma_ah_get_dlid(ah_attr) >= be16_to_cpu(IB_MULTICAST_LID_BASE)) { ah_attr 276 drivers/infiniband/hw/qib/qib_ud.c if (rdma_ah_get_dlid(ah_attr) != ah_attr 283 drivers/infiniband/hw/qib/qib_ud.c lid = rdma_ah_get_dlid(ah_attr) & ~((1 << ppd->lmc) - 1); ah_attr 315 drivers/infiniband/hw/qib/qib_ud.c qp->s_srate = rdma_ah_get_static_rate(ah_attr); ah_attr 322 drivers/infiniband/hw/qib/qib_ud.c if (rdma_ah_get_ah_flags(ah_attr) & IB_AH_GRH) { ah_attr 325 drivers/infiniband/hw/qib/qib_ud.c rdma_ah_read_grh(ah_attr), ah_attr 344 drivers/infiniband/hw/qib/qib_ud.c lrh0 |= rdma_ah_get_sl(ah_attr) << 4; ah_attr 348 drivers/infiniband/hw/qib/qib_ud.c lrh0 |= ibp->sl_to_vl[rdma_ah_get_sl(ah_attr)] << 12; ah_attr 351 drivers/infiniband/hw/qib/qib_ud.c cpu_to_be16(rdma_ah_get_dlid(ah_attr)); /* DEST LID */ ah_attr 356 drivers/infiniband/hw/qib/qib_ud.c lid |= rdma_ah_get_path_bits(ah_attr) & ah_attr 371 drivers/infiniband/hw/qib/qib_ud.c ohdr->bth[1] = rdma_ah_get_dlid(ah_attr) >= ah_attr 373 drivers/infiniband/hw/qib/qib_ud.c rdma_ah_get_dlid(ah_attr) != be16_to_cpu(IB_LID_PERMISSIVE) ? ah_attr 1304 drivers/infiniband/hw/qib/qib_verbs.c int qib_check_ah(struct ib_device *ibdev, struct rdma_ah_attr *ah_attr) ah_attr 1306 drivers/infiniband/hw/qib/qib_verbs.c if (rdma_ah_get_sl(ah_attr) > 15) ah_attr 1309 drivers/infiniband/hw/qib/qib_verbs.c if (rdma_ah_get_dlid(ah_attr) == 0) ah_attr 1311 drivers/infiniband/hw/qib/qib_verbs.c if (rdma_ah_get_dlid(ah_attr) >= ah_attr 1313 drivers/infiniband/hw/qib/qib_verbs.c rdma_ah_get_dlid(ah_attr) != ah_attr 1315 drivers/infiniband/hw/qib/qib_verbs.c !(rdma_ah_get_ah_flags(ah_attr) & IB_AH_GRH)) ah_attr 1322 drivers/infiniband/hw/qib/qib_verbs.c struct rdma_ah_attr *ah_attr, ah_attr 1333 drivers/infiniband/hw/qib/qib_verbs.c ibp = to_iport(ibdev, rdma_ah_get_port_num(ah_attr)); ah_attr 301 drivers/infiniband/hw/qib/qib_verbs.h int qib_check_ah(struct ib_device *ibdev, struct rdma_ah_attr *ah_attr); ah_attr 559 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c rdma_ah_attr_to_pvrdma(&cmd->attrs.ah_attr, &attr->ah_attr); ah_attr 977 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c pvrdma_ah_attr_to_rdma(&attr->ah_attr, &resp->attrs.ah_attr); ah_attr 512 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c int pvrdma_create_ah(struct ib_ah *ibah, struct rdma_ah_attr *ah_attr, ah_attr 518 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c u8 port_num = rdma_ah_get_port_num(ah_attr); ah_attr 520 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c if (!(rdma_ah_get_ah_flags(ah_attr) & IB_AH_GRH)) ah_attr 523 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c grh = rdma_ah_read_grh(ah_attr); ah_attr 524 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c if ((ah_attr->type != RDMA_AH_ATTR_TYPE_ROCE) || ah_attr 532 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c ah->av.src_path_bits = rdma_ah_get_path_bits(ah_attr); ah_attr 539 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c memcpy(ah->av.dmac, ah_attr->roce.dmac, ETH_ALEN); ah_attr 359 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.h struct pvrdma_ah_attr ah_attr; ah_attr 417 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.h int pvrdma_create_ah(struct ib_ah *ah, struct rdma_ah_attr *ah_attr, u32 flags, ah_attr 63 drivers/infiniband/sw/rdmavt/ah.c struct rdma_ah_attr *ah_attr) ah_attr 66 drivers/infiniband/sw/rdmavt/ah.c int port_num = rdma_ah_get_port_num(ah_attr); ah_attr 69 drivers/infiniband/sw/rdmavt/ah.c u8 ah_flags = rdma_ah_get_ah_flags(ah_attr); ah_attr 70 drivers/infiniband/sw/rdmavt/ah.c u8 static_rate = rdma_ah_get_static_rate(ah_attr); ah_attr 82 drivers/infiniband/sw/rdmavt/ah.c rdma_ah_read_grh(ah_attr)->sgid_index >= port_attr.gid_tbl_len) ah_attr 85 drivers/infiniband/sw/rdmavt/ah.c return rdi->driver_f.check_ah(ibdev, ah_attr); ah_attr 101 drivers/infiniband/sw/rdmavt/ah.c int rvt_create_ah(struct ib_ah *ibah, struct rdma_ah_attr *ah_attr, ah_attr 108 drivers/infiniband/sw/rdmavt/ah.c if (rvt_check_ah(ibah->device, ah_attr)) ah_attr 120 drivers/infiniband/sw/rdmavt/ah.c rdma_copy_ah_attr(&ah->attr, ah_attr); ah_attr 123 drivers/infiniband/sw/rdmavt/ah.c dev->driver_f.notify_new_ah(ibah->device, ah_attr, ah); ah_attr 156 drivers/infiniband/sw/rdmavt/ah.c int rvt_modify_ah(struct ib_ah *ibah, struct rdma_ah_attr *ah_attr) ah_attr 160 drivers/infiniband/sw/rdmavt/ah.c if (rvt_check_ah(ibah->device, ah_attr)) ah_attr 163 drivers/infiniband/sw/rdmavt/ah.c ah->attr = *ah_attr; ah_attr 175 drivers/infiniband/sw/rdmavt/ah.c int rvt_query_ah(struct ib_ah *ibah, struct rdma_ah_attr *ah_attr) ah_attr 179 drivers/infiniband/sw/rdmavt/ah.c *ah_attr = ah->attr; ah_attr 53 drivers/infiniband/sw/rdmavt/ah.h int rvt_create_ah(struct ib_ah *ah, struct rdma_ah_attr *ah_attr, ah_attr 56 drivers/infiniband/sw/rdmavt/ah.h int rvt_modify_ah(struct ib_ah *ibah, struct rdma_ah_attr *ah_attr); ah_attr 57 drivers/infiniband/sw/rdmavt/ah.h int rvt_query_ah(struct ib_ah *ibah, struct rdma_ah_attr *ah_attr); ah_attr 1477 drivers/infiniband/sw/rdmavt/qp.c if (rdma_ah_get_dlid(&attr->ah_attr) >= ah_attr 1481 drivers/infiniband/sw/rdmavt/qp.c if (rdma_ah_get_dlid(&attr->ah_attr) >= ah_attr 1486 drivers/infiniband/sw/rdmavt/qp.c if (rvt_check_ah(qp->ibqp.device, &attr->ah_attr)) ah_attr 1626 drivers/infiniband/sw/rdmavt/qp.c rdma_replace_ah_attr(&qp->remote_ah_attr, &attr->ah_attr); ah_attr 1627 drivers/infiniband/sw/rdmavt/qp.c qp->s_srate = rdma_ah_get_static_rate(&attr->ah_attr); ah_attr 1779 drivers/infiniband/sw/rdmavt/qp.c attr->ah_attr = qp->remote_ah_attr; ah_attr 445 drivers/infiniband/sw/rxe/rxe_qp.c if (mask & IB_QP_AV && rxe_av_chk_attr(rxe, &attr->ah_attr)) ah_attr 633 drivers/infiniband/sw/rxe/rxe_qp.c rxe_init_av(&attr->ah_attr, &qp->pri_av); ah_attr 762 drivers/infiniband/sw/rxe/rxe_qp.c rxe_av_to_attr(&qp->pri_av, &attr->ah_attr); ah_attr 736 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c struct rdma_ah_attr ah_attr; ah_attr 762 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c memset(&ah_attr, 0, sizeof(ah_attr)); ah_attr 763 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c ah_attr.type = rdma_ah_find_type(ibp, port->port_num); ah_attr 764 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c rdma_ah_set_sl(&ah_attr, ah_attr 766 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c rdma_ah_set_port_num(&ah_attr, port->port_num); ah_attr 779 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c rdma_ah_set_dlid(&ah_attr, trap_lid); ah_attr 780 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c ah = rdma_create_ah(port->mad_agent->qp->pd, &ah_attr, 0); ah_attr 784 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c rdma_ah_get_dlid(&ah_attr), rdma_ah_get_sl(&ah_attr), ah_attr 785 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c rdma_ah_get_port_num(&ah_attr)); ah_attr 547 include/rdma/ib_sa.h struct rdma_ah_attr *ah_attr); ah_attr 551 include/rdma/ib_sa.h struct rdma_ah_attr *ah_attr, ah_attr 1247 include/rdma/ib_verbs.h struct rdma_ah_attr ah_attr; ah_attr 2368 include/rdma/ib_verbs.h int (*create_ah)(struct ib_ah *ah, struct rdma_ah_attr *ah_attr, ah_attr 2370 include/rdma/ib_verbs.h int (*modify_ah)(struct ib_ah *ah, struct rdma_ah_attr *ah_attr); ah_attr 2371 include/rdma/ib_verbs.h int (*query_ah)(struct ib_ah *ah, struct rdma_ah_attr *ah_attr); ah_attr 3380 include/rdma/ib_verbs.h struct ib_ah *rdma_create_ah(struct ib_pd *pd, struct rdma_ah_attr *ah_attr, ah_attr 3396 include/rdma/ib_verbs.h struct rdma_ah_attr *ah_attr, ah_attr 3436 include/rdma/ib_verbs.h struct rdma_ah_attr *ah_attr); ah_attr 3460 include/rdma/ib_verbs.h int rdma_modify_ah(struct ib_ah *ah, struct rdma_ah_attr *ah_attr); ah_attr 3469 include/rdma/ib_verbs.h int rdma_query_ah(struct ib_ah *ah, struct rdma_ah_attr *ah_attr); ah_attr 4513 include/rdma/ib_verbs.h void rdma_destroy_ah_attr(struct rdma_ah_attr *ah_attr); ah_attr 102 include/rdma/rdma_cm.h struct rdma_ah_attr ah_attr; ah_attr 560 include/rdma/rdma_vt.h int rvt_check_ah(struct ib_device *ibdev, struct rdma_ah_attr *ah_attr); ah_attr 535 include/uapi/rdma/ib_user_verbs.h struct ib_uverbs_ah_attr ah_attr; ah_attr 203 include/uapi/rdma/rdma_user_cm.h struct ib_uverbs_ah_attr ah_attr; ah_attr 70 net/smc/smc_ib.c qp_attr.ah_attr.type = RDMA_AH_ATTR_TYPE_ROCE; ah_attr 71 net/smc/smc_ib.c rdma_ah_set_port_num(&qp_attr.ah_attr, lnk->ibport); ah_attr 72 net/smc/smc_ib.c rdma_ah_set_grh(&qp_attr.ah_attr, NULL, 0, lnk->sgid_index, 1, 0); ah_attr 73 net/smc/smc_ib.c rdma_ah_set_dgid_raw(&qp_attr.ah_attr, lnk->peer_gid); ah_attr 74 net/smc/smc_ib.c memcpy(&qp_attr.ah_attr.roce.dmac, lnk->peer_mac,