gid_attr 845 drivers/infiniband/core/cache.c struct ib_gid_attr gid_attr; gid_attr 852 drivers/infiniband/core/cache.c memset(&gid_attr, 0, sizeof(gid_attr)); gid_attr 853 drivers/infiniband/core/cache.c gid_attr.ndev = ndev; gid_attr 859 drivers/infiniband/core/cache.c gid_attr.gid_type = gid_type; gid_attr 864 drivers/infiniband/core/cache.c &gid_attr, mask, true); gid_attr 867 drivers/infiniband/core/cache.c &gid_attr, mask, true); gid_attr 1361 drivers/infiniband/core/cache.c struct ib_gid_attr gid_attr = {}; gid_attr 1366 drivers/infiniband/core/cache.c gid_attr.device = device; gid_attr 1367 drivers/infiniband/core/cache.c gid_attr.port_num = port; gid_attr 1374 drivers/infiniband/core/cache.c ret = device->ops.query_gid(device, port, i, &gid_attr.gid); gid_attr 1381 drivers/infiniband/core/cache.c gid_attr.index = i; gid_attr 1382 drivers/infiniband/core/cache.c add_modify_gid(table, &gid_attr); gid_attr 1937 drivers/infiniband/core/cm.c const struct ib_gid_attr *gid_attr; gid_attr 1982 drivers/infiniband/core/cm.c gid_attr = grh->sgid_attr; gid_attr 1984 drivers/infiniband/core/cm.c if (gid_attr && gid_attr 1988 drivers/infiniband/core/cm.c sa_conv_gid_to_pathrec_type(gid_attr->gid_type); gid_attr 2003 drivers/infiniband/core/cm.c ret = cm_init_av_by_path(&work->path[0], gid_attr, &cm_id_priv->av, gid_attr 55 drivers/infiniband/core/roce_gid_mgmt.c struct ib_gid_attr gid_attr; gid_attr 100 drivers/infiniband/core/roce_gid_mgmt.c struct ib_gid_attr *gid_attr) gid_attr 107 drivers/infiniband/core/roce_gid_mgmt.c gid_attr->gid_type = i; gid_attr 111 drivers/infiniband/core/roce_gid_mgmt.c gid, gid_attr); gid_attr 115 drivers/infiniband/core/roce_gid_mgmt.c gid, gid_attr); gid_attr 287 drivers/infiniband/core/roce_gid_mgmt.c struct ib_gid_attr gid_attr; gid_attr 290 drivers/infiniband/core/roce_gid_mgmt.c memset(&gid_attr, 0, sizeof(gid_attr)); gid_attr 291 drivers/infiniband/core/roce_gid_mgmt.c gid_attr.ndev = ndev; gid_attr 293 drivers/infiniband/core/roce_gid_mgmt.c update_gid(gid_op, ib_dev, port, &gid, &gid_attr); gid_attr 385 drivers/infiniband/core/roce_gid_mgmt.c struct ib_gid_attr gid_attr = {.ndev = ndev}; gid_attr 414 drivers/infiniband/core/roce_gid_mgmt.c update_gid(GID_ADD, ib_dev, port, &gid, &gid_attr); gid_attr 526 drivers/infiniband/core/roce_gid_mgmt.c &parsed->gid_attr); gid_attr 807 drivers/infiniband/core/roce_gid_mgmt.c work->gid_attr.ndev, gid_attr 810 drivers/infiniband/core/roce_gid_mgmt.c dev_put(work->gid_attr.ndev); gid_attr 845 drivers/infiniband/core/roce_gid_mgmt.c memset(&work->gid_attr, 0, sizeof(work->gid_attr)); gid_attr 847 drivers/infiniband/core/roce_gid_mgmt.c work->gid_attr.ndev = ndev; gid_attr 1223 drivers/infiniband/core/sa_query.c const struct ib_gid_attr *gid_attr) gid_attr 1227 drivers/infiniband/core/sa_query.c if (!gid_attr) { gid_attr 1228 drivers/infiniband/core/sa_query.c gid_attr = rdma_find_gid_by_port(device, &rec->sgid, type, gid_attr 1230 drivers/infiniband/core/sa_query.c if (IS_ERR(gid_attr)) gid_attr 1231 drivers/infiniband/core/sa_query.c return PTR_ERR(gid_attr); gid_attr 1233 drivers/infiniband/core/sa_query.c rdma_hold_gid_attr(gid_attr); gid_attr 1238 drivers/infiniband/core/sa_query.c gid_attr); gid_attr 1261 drivers/infiniband/core/sa_query.c const struct ib_gid_attr *gid_attr) gid_attr 1272 drivers/infiniband/core/sa_query.c ret = roce_resolve_route_from_path(rec, gid_attr); gid_attr 1290 drivers/infiniband/core/sa_query.c rec, ah_attr, gid_attr); gid_attr 361 drivers/infiniband/core/sysfs.c static size_t print_ndev(const struct ib_gid_attr *gid_attr, char *buf) gid_attr 367 drivers/infiniband/core/sysfs.c ndev = rcu_dereference(gid_attr->ndev); gid_attr 374 drivers/infiniband/core/sysfs.c static size_t print_gid_type(const struct ib_gid_attr *gid_attr, char *buf) gid_attr 376 drivers/infiniband/core/sysfs.c return sprintf(buf, "%s\n", ib_cache_gid_type_str(gid_attr->gid_type)); gid_attr 381 drivers/infiniband/core/sysfs.c size_t (*print)(const struct ib_gid_attr *gid_attr, char *buf)) gid_attr 385 drivers/infiniband/core/sysfs.c const struct ib_gid_attr *gid_attr; gid_attr 388 drivers/infiniband/core/sysfs.c gid_attr = rdma_get_gid_attr(p->ibdev, p->port_num, tab_attr->index); gid_attr 389 drivers/infiniband/core/sysfs.c if (IS_ERR(gid_attr)) gid_attr 390 drivers/infiniband/core/sysfs.c return PTR_ERR(gid_attr); gid_attr 392 drivers/infiniband/core/sysfs.c ret = print(gid_attr, buf); gid_attr 393 drivers/infiniband/core/sysfs.c rdma_put_gid_attr(gid_attr); gid_attr 402 drivers/infiniband/core/sysfs.c const struct ib_gid_attr *gid_attr; gid_attr 405 drivers/infiniband/core/sysfs.c gid_attr = rdma_get_gid_attr(p->ibdev, p->port_num, tab_attr->index); gid_attr 406 drivers/infiniband/core/sysfs.c if (IS_ERR(gid_attr)) { gid_attr 421 drivers/infiniband/core/sysfs.c ret = sprintf(buf, "%pI6\n", gid_attr->gid.raw); gid_attr 422 drivers/infiniband/core/sysfs.c rdma_put_gid_attr(gid_attr); gid_attr 661 drivers/infiniband/core/verbs.c const struct ib_gid_attr *gid_attr, gid_attr 668 drivers/infiniband/core/verbs.c if (ctx->gid_type != gid_attr->gid_type) gid_attr 671 drivers/infiniband/core/verbs.c ret = rdma_read_gid_l2_fields(gid_attr, &vlan_id, NULL); gid_attr 46 drivers/infiniband/hw/hns/hns_roce_ah.c const struct ib_gid_attr *gid_attr; gid_attr 54 drivers/infiniband/hw/hns/hns_roce_ah.c gid_attr = ah_attr->grh.sgid_attr; gid_attr 55 drivers/infiniband/hw/hns/hns_roce_ah.c ret = rdma_read_gid_l2_fields(gid_attr, &vlan_tag, NULL); gid_attr 4065 drivers/infiniband/hw/hns/hns_roce_hw_v2.c const struct ib_gid_attr *gid_attr = NULL; gid_attr 4079 drivers/infiniband/hw/hns/hns_roce_hw_v2.c gid_attr = attr->ah_attr.grh.sgid_attr; gid_attr 4080 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ret = rdma_read_gid_l2_fields(gid_attr, &vlan, NULL); gid_attr 4084 drivers/infiniband/hw/hns/hns_roce_hw_v2.c if (gid_attr) gid_attr 4085 drivers/infiniband/hw/hns/hns_roce_hw_v2.c is_udp = (gid_attr->gid_type == gid_attr 81 drivers/infiniband/hw/mlx4/ah.c const struct ib_gid_attr *gid_attr; gid_attr 100 drivers/infiniband/hw/mlx4/ah.c gid_attr = ah_attr->grh.sgid_attr; gid_attr 101 drivers/infiniband/hw/mlx4/ah.c if (gid_attr) { gid_attr 102 drivers/infiniband/hw/mlx4/ah.c ret = rdma_read_gid_l2_fields(gid_attr, &vlan_tag, gid_attr 107 drivers/infiniband/hw/mlx4/ah.c ret = mlx4_ib_gid_index_to_real_index(ibdev, gid_attr); gid_attr 2138 drivers/infiniband/hw/mlx4/qp.c const struct ib_gid_attr *gid_attr = NULL; gid_attr 2324 drivers/infiniband/hw/mlx4/qp.c gid_attr = attr->ah_attr.grh.sgid_attr; gid_attr 2325 drivers/infiniband/hw/mlx4/qp.c err = rdma_read_gid_l2_fields(gid_attr, &vlan, gid_attr 2340 drivers/infiniband/hw/mlx4/qp.c u8 qpc_roce_mode = gid_type_to_qpc(gid_attr->gid_type); gid_attr 1014 drivers/infiniband/hw/qedr/verbs.c const struct ib_gid_attr *gid_attr; gid_attr 1021 drivers/infiniband/hw/qedr/verbs.c gid_attr = grh->sgid_attr; gid_attr 1022 drivers/infiniband/hw/qedr/verbs.c ret = rdma_read_gid_l2_fields(gid_attr, &qp_params->vlan_id, NULL); gid_attr 1026 drivers/infiniband/hw/qedr/verbs.c nw_type = rdma_gid_attr_network_type(gid_attr); gid_attr 1029 drivers/infiniband/hw/qedr/verbs.c memcpy(&qp_params->sgid.bytes[0], &gid_attr->gid.raw[0], gid_attr 1039 drivers/infiniband/hw/qedr/verbs.c memcpy(&qp_params->sgid.bytes[0], &gid_attr->gid.raw[0], gid_attr 1049 drivers/infiniband/hw/qedr/verbs.c ipv4_addr = qedr_get_ipv4_from_gid(gid_attr->gid.raw); gid_attr 333 drivers/infiniband/sw/rxe/rxe_recv.c const struct ib_gid_attr *gid_attr; gid_attr 345 drivers/infiniband/sw/rxe/rxe_recv.c gid_attr = rdma_find_gid_by_port(&rxe->ib_dev, pdgid, gid_attr 348 drivers/infiniband/sw/rxe/rxe_recv.c if (IS_ERR(gid_attr)) gid_attr 349 drivers/infiniband/sw/rxe/rxe_recv.c return PTR_ERR(gid_attr); gid_attr 351 drivers/infiniband/sw/rxe/rxe_recv.c rdma_put_gid_attr(gid_attr);