sgid_attr 527 drivers/infiniband/core/addr.c ndev = rdma_read_gid_attr_ndev_rcu(addr->sgid_attr); sgid_attr 568 drivers/infiniband/core/addr.c if (!addr->sgid_attr) { sgid_attr 743 drivers/infiniband/core/addr.c dev_addr.sgid_attr = attr; sgid_attr 811 drivers/infiniband/core/addr.c u8 *dmac, const struct ib_gid_attr *sgid_attr, sgid_attr 827 drivers/infiniband/core/addr.c dev_addr.sgid_attr = sgid_attr; sgid_attr 554 drivers/infiniband/core/cm.c const struct ib_gid_attr *sgid_attr, sgid_attr 563 drivers/infiniband/core/cm.c port = get_cm_port_from_path(path, sgid_attr); sgid_attr 585 drivers/infiniband/core/cm.c &new_ah_attr, sgid_attr); sgid_attr 1712 drivers/infiniband/core/cm.c param->ppath_sgid_attr = cm_id_priv->av.ah_attr.grh.sgid_attr; sgid_attr 1982 drivers/infiniband/core/cm.c gid_attr = grh->sgid_attr; sgid_attr 3493 drivers/infiniband/core/cm.c ret = cm_init_av_by_path(param->path, param->sgid_attr, sgid_attr 3546 drivers/infiniband/core/cm.c param->sgid_attr = rx_cm_id->av.ah_attr.grh.sgid_attr; sgid_attr 3695 drivers/infiniband/core/cm.c param->sgid_attr = cm_id_priv->av.ah_attr.grh.sgid_attr; sgid_attr 615 drivers/infiniband/core/cma.c const struct ib_gid_attr *sgid_attr; sgid_attr 636 drivers/infiniband/core/cma.c sgid_attr = rdma_find_gid_by_port(device, gid, gid_type, port, ndev); sgid_attr 639 drivers/infiniband/core/cma.c return sgid_attr; sgid_attr 643 drivers/infiniband/core/cma.c const struct ib_gid_attr *sgid_attr) sgid_attr 645 drivers/infiniband/core/cma.c WARN_ON(id_priv->id.route.addr.dev_addr.sgid_attr); sgid_attr 646 drivers/infiniband/core/cma.c id_priv->id.route.addr.dev_addr.sgid_attr = sgid_attr; sgid_attr 661 drivers/infiniband/core/cma.c const struct ib_gid_attr *sgid_attr; sgid_attr 684 drivers/infiniband/core/cma.c sgid_attr = cma_validate_port(cma_dev->device, port, sgid_attr 686 drivers/infiniband/core/cma.c if (!IS_ERR(sgid_attr)) { sgid_attr 688 drivers/infiniband/core/cma.c cma_bind_sgid_attr(id_priv, sgid_attr); sgid_attr 716 drivers/infiniband/core/cma.c const struct ib_gid_attr *sgid_attr; sgid_attr 732 drivers/infiniband/core/cma.c sgid_attr = cma_validate_port(req->device, req->port, sgid_attr 734 drivers/infiniband/core/cma.c if (IS_ERR(sgid_attr)) sgid_attr 735 drivers/infiniband/core/cma.c return PTR_ERR(sgid_attr); sgid_attr 738 drivers/infiniband/core/cma.c cma_bind_sgid_attr(id_priv, sgid_attr); sgid_attr 753 drivers/infiniband/core/cma.c const struct ib_gid_attr *sgid_attr; sgid_attr 772 drivers/infiniband/core/cma.c sgid_attr = cma_validate_port(cma_dev->device, port, sgid_attr 774 drivers/infiniband/core/cma.c if (!IS_ERR(sgid_attr)) { sgid_attr 776 drivers/infiniband/core/cma.c cma_bind_sgid_attr(id_priv, sgid_attr); sgid_attr 788 drivers/infiniband/core/cma.c sgid_attr = cma_validate_port(cma_dev->device, port, sgid_attr 790 drivers/infiniband/core/cma.c if (!IS_ERR(sgid_attr)) { sgid_attr 792 drivers/infiniband/core/cma.c cma_bind_sgid_attr(id_priv, sgid_attr); sgid_attr 1488 drivers/infiniband/core/cma.c const struct ib_gid_attr *sgid_attr = NULL; sgid_attr 1492 drivers/infiniband/core/cma.c sgid_attr = ib_event->param.req_rcvd.ppath_sgid_attr; sgid_attr 1494 drivers/infiniband/core/cma.c sgid_attr = ib_event->param.sidr_req_rcvd.sgid_attr; sgid_attr 1496 drivers/infiniband/core/cma.c if (!sgid_attr) sgid_attr 1500 drivers/infiniband/core/cma.c ndev = rdma_read_gid_attr_ndev_rcu(sgid_attr); sgid_attr 1873 drivers/infiniband/core/cma.c if (id_priv->id.route.addr.dev_addr.sgid_attr) sgid_attr 1874 drivers/infiniband/core/cma.c rdma_put_gid_attr(id_priv->id.route.addr.dev_addr.sgid_attr); sgid_attr 3710 drivers/infiniband/core/cma.c rep->sgid_attr); sgid_attr 3781 drivers/infiniband/core/cma.c req.sgid_attr = id_priv->id.route.addr.dev_addr.sgid_attr; sgid_attr 3843 drivers/infiniband/core/cma.c req.ppath_sgid_attr = id_priv->id.route.addr.dev_addr.sgid_attr; sgid_attr 381 drivers/infiniband/core/core_priv.h u8 *dmac, const struct ib_gid_attr *sgid_attr, sgid_attr 740 drivers/infiniband/core/multicast.c const struct ib_gid_attr *sgid_attr; sgid_attr 750 drivers/infiniband/core/multicast.c sgid_attr = rdma_find_gid_by_port(device, &rec->port_gid, sgid_attr 752 drivers/infiniband/core/multicast.c if (IS_ERR(sgid_attr)) sgid_attr 753 drivers/infiniband/core/multicast.c return PTR_ERR(sgid_attr); sgid_attr 765 drivers/infiniband/core/multicast.c sgid_attr); sgid_attr 360 drivers/infiniband/core/verbs.c if (dest->grh.sgid_attr) sgid_attr 361 drivers/infiniband/core/verbs.c rdma_hold_gid_attr(dest->grh.sgid_attr); sgid_attr 380 drivers/infiniband/core/verbs.c if (old->grh.sgid_attr) sgid_attr 381 drivers/infiniband/core/verbs.c rdma_hold_gid_attr(old->grh.sgid_attr); sgid_attr 400 drivers/infiniband/core/verbs.c src->grh.sgid_attr = NULL; sgid_attr 419 drivers/infiniband/core/verbs.c if (ah_attr->grh.sgid_attr) { sgid_attr 424 drivers/infiniband/core/verbs.c if (ah_attr->grh.sgid_attr->index != ah_attr->grh.sgid_index || sgid_attr 425 drivers/infiniband/core/verbs.c ah_attr->grh.sgid_attr->port_num != ah_attr->port_num) sgid_attr 439 drivers/infiniband/core/verbs.c const struct ib_gid_attr *sgid_attr; sgid_attr 443 drivers/infiniband/core/verbs.c *old_sgid_attr = ah_attr->grh.sgid_attr; sgid_attr 453 drivers/infiniband/core/verbs.c if (grh->sgid_attr) sgid_attr 456 drivers/infiniband/core/verbs.c sgid_attr = sgid_attr 458 drivers/infiniband/core/verbs.c if (IS_ERR(sgid_attr)) sgid_attr 459 drivers/infiniband/core/verbs.c return PTR_ERR(sgid_attr); sgid_attr 462 drivers/infiniband/core/verbs.c grh->sgid_attr = sgid_attr; sgid_attr 473 drivers/infiniband/core/verbs.c if (ah_attr->grh.sgid_attr == old_sgid_attr) sgid_attr 491 drivers/infiniband/core/verbs.c rdma_hold_gid_attr(ah_attr->grh.sgid_attr); sgid_attr 492 drivers/infiniband/core/verbs.c return ah_attr->grh.sgid_attr; sgid_attr 520 drivers/infiniband/core/verbs.c ah->sgid_attr = rdma_update_sgid_attr(ah_attr, NULL); sgid_attr 732 drivers/infiniband/core/verbs.c const struct ib_gid_attr *sgid_attr = grh->sgid_attr; sgid_attr 740 drivers/infiniband/core/verbs.c sgid_attr->gid_type == IB_GID_TYPE_ROCE) { sgid_attr 746 drivers/infiniband/core/verbs.c ret = rdma_addr_find_l2_eth_by_grh(&sgid_attr->gid, &grh->dgid, sgid_attr 748 drivers/infiniband/core/verbs.c sgid_attr, &hop_limit); sgid_attr 774 drivers/infiniband/core/verbs.c const struct ib_gid_attr *sgid_attr; sgid_attr 805 drivers/infiniband/core/verbs.c sgid_attr = get_sgid_attr_from_eth(device, port_num, sgid_attr 808 drivers/infiniband/core/verbs.c if (IS_ERR(sgid_attr)) sgid_attr 809 drivers/infiniband/core/verbs.c return PTR_ERR(sgid_attr); sgid_attr 817 drivers/infiniband/core/verbs.c sgid_attr); sgid_attr 833 drivers/infiniband/core/verbs.c sgid_attr = rdma_find_gid_by_port( sgid_attr 836 drivers/infiniband/core/verbs.c sgid_attr = rdma_get_gid_attr(device, port_num, 0); sgid_attr 838 drivers/infiniband/core/verbs.c if (IS_ERR(sgid_attr)) sgid_attr 839 drivers/infiniband/core/verbs.c return PTR_ERR(sgid_attr); sgid_attr 846 drivers/infiniband/core/verbs.c sgid_attr); sgid_attr 870 drivers/infiniband/core/verbs.c const struct ib_gid_attr *sgid_attr) sgid_attr 872 drivers/infiniband/core/verbs.c rdma_ah_set_grh(attr, dgid, flow_label, sgid_attr->index, hop_limit, sgid_attr 874 drivers/infiniband/core/verbs.c attr->grh.sgid_attr = sgid_attr; sgid_attr 889 drivers/infiniband/core/verbs.c if (ah_attr->grh.sgid_attr) { sgid_attr 890 drivers/infiniband/core/verbs.c rdma_put_gid_attr(ah_attr->grh.sgid_attr); sgid_attr 891 drivers/infiniband/core/verbs.c ah_attr->grh.sgid_attr = NULL; sgid_attr 930 drivers/infiniband/core/verbs.c ah->sgid_attr = rdma_update_sgid_attr(ah_attr, ah->sgid_attr); sgid_attr 938 drivers/infiniband/core/verbs.c ah_attr->grh.sgid_attr = NULL; sgid_attr 948 drivers/infiniband/core/verbs.c const struct ib_gid_attr *sgid_attr = ah->sgid_attr; sgid_attr 957 drivers/infiniband/core/verbs.c if (sgid_attr) sgid_attr 958 drivers/infiniband/core/verbs.c rdma_put_gid_attr(sgid_attr); sgid_attr 1797 drivers/infiniband/core/verbs.c qp_attr->ah_attr.grh.sgid_attr = NULL; sgid_attr 1798 drivers/infiniband/core/verbs.c qp_attr->alt_ah_attr.grh.sgid_attr = NULL; sgid_attr 659 drivers/infiniband/hw/bnxt_re/ib_verbs.c const struct ib_gid_attr *sgid_attr; sgid_attr 687 drivers/infiniband/hw/bnxt_re/ib_verbs.c sgid_attr = grh->sgid_attr; sgid_attr 689 drivers/infiniband/hw/bnxt_re/ib_verbs.c nw_type = rdma_gid_attr_network_type(sgid_attr); sgid_attr 1611 drivers/infiniband/hw/bnxt_re/ib_verbs.c const struct ib_gid_attr *sgid_attr; sgid_attr 1635 drivers/infiniband/hw/bnxt_re/ib_verbs.c sgid_attr = qp_attr->ah_attr.grh.sgid_attr; sgid_attr 1636 drivers/infiniband/hw/bnxt_re/ib_verbs.c rc = rdma_read_gid_l2_fields(sgid_attr, NULL, sgid_attr 1641 drivers/infiniband/hw/bnxt_re/ib_verbs.c nw_type = rdma_gid_attr_network_type(sgid_attr); sgid_attr 1843 drivers/infiniband/hw/bnxt_re/ib_verbs.c const struct ib_gid_attr *sgid_attr = ah->ib_ah.sgid_attr; sgid_attr 1859 drivers/infiniband/hw/bnxt_re/ib_verbs.c rc = rdma_read_gid_l2_fields(sgid_attr, &vlan_id, NULL); sgid_attr 1864 drivers/infiniband/hw/bnxt_re/ib_verbs.c nw_type = rdma_gid_attr_network_type(sgid_attr); sgid_attr 1877 drivers/infiniband/hw/bnxt_re/ib_verbs.c is_udp = sgid_attr->gid_type == IB_GID_TYPE_ROCE_UDP_ENCAP; sgid_attr 1879 drivers/infiniband/hw/bnxt_re/ib_verbs.c if (ipv6_addr_v4mapped((struct in6_addr *)&sgid_attr->gid)) { sgid_attr 1912 drivers/infiniband/hw/bnxt_re/ib_verbs.c memcpy(qp->qp1_hdr.grh.source_gid.raw, sgid_attr->gid.raw, sgid_attr 1913 drivers/infiniband/hw/bnxt_re/ib_verbs.c sizeof(sgid_attr->gid)); sgid_attr 1915 drivers/infiniband/hw/bnxt_re/ib_verbs.c sizeof(sgid_attr->gid)); sgid_attr 1925 drivers/infiniband/hw/bnxt_re/ib_verbs.c memcpy(&qp->qp1_hdr.ip4.saddr, sgid_attr->gid.raw + 12, 4); sgid_attr 54 drivers/infiniband/hw/hns/hns_roce_ah.c gid_attr = ah_attr->grh.sgid_attr; sgid_attr 4079 drivers/infiniband/hw/hns/hns_roce_hw_v2.c gid_attr = attr->ah_attr.grh.sgid_attr; sgid_attr 100 drivers/infiniband/hw/mlx4/ah.c gid_attr = ah_attr->grh.sgid_attr; sgid_attr 173 drivers/infiniband/hw/mlx4/ah.c slave_attr.grh.sgid_attr = NULL; sgid_attr 1818 drivers/infiniband/hw/mlx4/qp.c mlx4_ib_gid_index_to_real_index(dev, grh->sgid_attr); sgid_attr 2324 drivers/infiniband/hw/mlx4/qp.c gid_attr = attr->ah_attr.grh.sgid_attr; sgid_attr 3129 drivers/infiniband/hw/mlx4/qp.c ah->ibah.sgid_attr->gid; sgid_attr 54 drivers/infiniband/hw/mlx5/ah.c gid_type = ah_attr->grh.sgid_attr->gid_type; sgid_attr 59 drivers/infiniband/hw/mlx5/ah.c mlx5_get_roce_udp_sport(dev, ah_attr->grh.sgid_attr); sgid_attr 2943 drivers/infiniband/hw/mlx5/qp.c mlx5_get_roce_udp_sport(dev, ah->grh.sgid_attr); sgid_attr 2945 drivers/infiniband/hw/mlx5/qp.c gid_type = ah->grh.sgid_attr->gid_type; sgid_attr 284 drivers/infiniband/hw/mthca/mthca_av.c header->grh.source_gid = ah->ibah.sgid_attr->gid; sgid_attr 166 drivers/infiniband/hw/ocrdma/ocrdma_ah.c const struct ib_gid_attr *sgid_attr; sgid_attr 177 drivers/infiniband/hw/ocrdma/ocrdma_ah.c sgid_attr = attr->grh.sgid_attr; sgid_attr 178 drivers/infiniband/hw/ocrdma/ocrdma_ah.c status = rdma_read_gid_l2_fields(sgid_attr, &vlan_tag, NULL); sgid_attr 187 drivers/infiniband/hw/ocrdma/ocrdma_ah.c ah->hdr_type = rdma_gid_attr_network_type(sgid_attr); sgid_attr 189 drivers/infiniband/hw/ocrdma/ocrdma_ah.c status = set_av_attr(dev, ah, attr, &sgid_attr->gid, pd->id, sgid_attr 2494 drivers/infiniband/hw/ocrdma/ocrdma_hw.c const struct ib_gid_attr *sgid_attr; sgid_attr 2523 drivers/infiniband/hw/ocrdma/ocrdma_hw.c sgid_attr = ah_attr->grh.sgid_attr; sgid_attr 2524 drivers/infiniband/hw/ocrdma/ocrdma_hw.c status = rdma_read_gid_l2_fields(sgid_attr, &vlan_id, &mac_addr[0]); sgid_attr 2529 drivers/infiniband/hw/ocrdma/ocrdma_hw.c memcpy(&cmd->params.sgid[0], &sgid_attr->gid.raw[0], sgid_attr 2538 drivers/infiniband/hw/ocrdma/ocrdma_hw.c hdr_type = rdma_gid_attr_network_type(sgid_attr); sgid_attr 2540 drivers/infiniband/hw/ocrdma/ocrdma_hw.c rdma_gid2ip((struct sockaddr *)&sgid_addr, &sgid_attr->gid); sgid_attr 390 drivers/infiniband/hw/qedr/qedr_roce_cm.c const struct ib_gid_attr *sgid_attr = grh->sgid_attr; sgid_attr 400 drivers/infiniband/hw/qedr/qedr_roce_cm.c rc = rdma_read_gid_l2_fields(sgid_attr, &vlan_id, NULL); sgid_attr 411 drivers/infiniband/hw/qedr/qedr_roce_cm.c has_udp = (sgid_attr->gid_type == IB_GID_TYPE_ROCE_UDP_ENCAP); sgid_attr 416 drivers/infiniband/hw/qedr/qedr_roce_cm.c } else if (ipv6_addr_v4mapped((struct in6_addr *)&sgid_attr->gid)) { sgid_attr 464 drivers/infiniband/hw/qedr/qedr_roce_cm.c memcpy(&udh->grh.source_gid.raw, sgid_attr->gid.raw, sgid_attr 475 drivers/infiniband/hw/qedr/qedr_roce_cm.c ipv4_addr = qedr_get_ipv4_from_gid(sgid_attr->gid.raw); sgid_attr 1021 drivers/infiniband/hw/qedr/verbs.c gid_attr = grh->sgid_attr; sgid_attr 94 drivers/infiniband/sw/rxe/rxe_av.c const struct ib_gid_attr *sgid_attr = attr->grh.sgid_attr; sgid_attr 96 drivers/infiniband/sw/rxe/rxe_av.c rdma_gid2ip((struct sockaddr *)&av->sgid_addr, &sgid_attr->gid); sgid_attr 99 drivers/infiniband/sw/rxe/rxe_av.c av->network_type = rdma_gid_attr_network_type(sgid_attr); sgid_attr 70 include/rdma/ib_addr.h const struct ib_gid_attr *sgid_attr; sgid_attr 241 include/rdma/ib_cm.h const struct ib_gid_attr *sgid_attr; sgid_attr 262 include/rdma/ib_cm.h const struct ib_gid_attr *sgid_attr; sgid_attr 584 include/rdma/ib_cm.h const struct ib_gid_attr *sgid_attr; sgid_attr 552 include/rdma/ib_sa.h const struct ib_gid_attr *sgid_attr); sgid_attr 744 include/rdma/ib_verbs.h const struct ib_gid_attr *sgid_attr; sgid_attr 1529 include/rdma/ib_verbs.h const struct ib_gid_attr *sgid_attr; sgid_attr 4510 include/rdma/ib_verbs.h grh->sgid_attr = NULL; sgid_attr 4516 include/rdma/ib_verbs.h const struct ib_gid_attr *sgid_attr);