/linux/drivers/infiniband/core/ |
H A D | uverbs_std_types_device.c | 372 const struct ib_gid_attr *gid_attr; in UVERBS_HANDLER() local 404 gid_attr = rdma_get_gid_attr(ib_dev, port_num, gid_index); in UVERBS_HANDLER() 405 if (IS_ERR(gid_attr)) in UVERBS_HANDLER() 406 return PTR_ERR(gid_attr); in UVERBS_HANDLER() 408 memcpy(&entry.gid, &gid_attr->gid, sizeof(gid_attr->gid)); in UVERBS_HANDLER() 409 entry.gid_index = gid_attr->index; in UVERBS_HANDLER() 410 entry.port_num = gid_attr->port_num; in UVERBS_HANDLER() 411 entry.gid_type = gid_attr->gid_type; in UVERBS_HANDLER() 414 ndev = rdma_read_gid_attr_ndev_rcu(gid_attr); in UVERBS_HANDLER() 430 rdma_put_gid_attr(gid_attr); in UVERBS_HANDLER()
|
H A D | cache.c | 839 struct ib_gid_attr gid_attr; in ib_cache_gid_set_default_gid() local 846 memset(&gid_attr, 0, sizeof(gid_attr)); in ib_cache_gid_set_default_gid() 847 gid_attr.ndev = ndev; in ib_cache_gid_set_default_gid() 853 gid_attr.gid_type = gid_type; in ib_cache_gid_set_default_gid() 858 &gid_attr, mask, true); in ib_cache_gid_set_default_gid() 861 &gid_attr, mask, true); in ib_cache_gid_set_default_gid() 1253 const struct ib_gid_attr *gid_attr; in rdma_query_gid_table() local 1271 gid_attr = &table->data_vec[i]->attr; in rdma_query_gid_table() 1273 memcpy(&entries->gid, &gid_attr->gid, in rdma_query_gid_table() 1274 sizeof(gid_attr->gid)); in rdma_query_gid_table() [all …]
|
H A D | sysfs.c | 442 static ssize_t print_ndev(const struct ib_gid_attr *gid_attr, char *buf) in print_ndev() argument 448 ndev = rcu_dereference(gid_attr->ndev); in print_ndev() 455 static ssize_t print_gid_type(const struct ib_gid_attr *gid_attr, char *buf) in print_gid_type() argument 458 ib_cache_gid_type_str(gid_attr->gid_type)); in print_gid_type() 464 ssize_t (*print)(const struct ib_gid_attr *gid_attr, char *buf)) in _show_port_gid_attr() argument 468 const struct ib_gid_attr *gid_attr; in _show_port_gid_attr() local 471 gid_attr = rdma_get_gid_attr(ibdev, port_num, tab_attr->index); in _show_port_gid_attr() 472 if (IS_ERR(gid_attr)) in _show_port_gid_attr() 476 ret = print(gid_attr, buf); in _show_port_gid_attr() 477 rdma_put_gid_attr(gid_attr); in _show_port_gid_attr() [all …]
|
H A D | sa_query.c | 1195 const struct ib_gid_attr *gid_attr) in init_ah_attr_grh_fields() argument 1199 if (!gid_attr) { in init_ah_attr_grh_fields() 1200 gid_attr = rdma_find_gid_by_port(device, &rec->sgid, type, in init_ah_attr_grh_fields() 1202 if (IS_ERR(gid_attr)) in init_ah_attr_grh_fields() 1203 return PTR_ERR(gid_attr); in init_ah_attr_grh_fields() 1205 rdma_hold_gid_attr(gid_attr); in init_ah_attr_grh_fields() 1210 gid_attr); in init_ah_attr_grh_fields() 1233 const struct ib_gid_attr *gid_attr) in ib_init_ah_attr_from_path() argument 1244 ret = roce_resolve_route_from_path(rec, gid_attr); in ib_init_ah_attr_from_path() 1262 rec, ah_attr, gid_attr); in ib_init_ah_attr_from_path()
|
H A D | verbs.c | 685 const struct ib_gid_attr *gid_attr, in find_gid_index() argument 692 if (ctx->gid_type != gid_attr->gid_type) in find_gid_index() 695 ret = rdma_read_gid_l2_fields(gid_attr, &vlan_id, NULL); in find_gid_index()
|
/linux/drivers/infiniband/hw/mlx4/ |
H A D | ah.c | 81 const struct ib_gid_attr *gid_attr; in create_iboe_ah() local 100 gid_attr = ah_attr->grh.sgid_attr; in create_iboe_ah() 101 if (gid_attr) { in create_iboe_ah() 102 ret = rdma_read_gid_l2_fields(gid_attr, &vlan_tag, in create_iboe_ah() 107 ret = mlx4_ib_gid_index_to_real_index(ibdev, gid_attr); in create_iboe_ah()
|
H A D | qp.c | 2115 const struct ib_gid_attr *gid_attr = NULL; in __mlx4_ib_modify_qp() local 2301 gid_attr = attr->ah_attr.grh.sgid_attr; in __mlx4_ib_modify_qp() 2302 err = rdma_read_gid_l2_fields(gid_attr, &vlan, in __mlx4_ib_modify_qp() 2317 u8 qpc_roce_mode = gid_type_to_qpc(gid_attr->gid_type); in __mlx4_ib_modify_qp()
|
/linux/drivers/infiniband/sw/rxe/ |
H A D | rxe_recv.c | 287 const struct ib_gid_attr *gid_attr; in rxe_chk_dgid() local 305 gid_attr = rdma_find_gid_by_port(&rxe->ib_dev, pdgid, in rxe_chk_dgid() 308 if (IS_ERR(gid_attr)) in rxe_chk_dgid() 309 return PTR_ERR(gid_attr); in rxe_chk_dgid() 311 rdma_put_gid_attr(gid_attr); in rxe_chk_dgid()
|
/linux/drivers/infiniband/hw/qedr/ |
H A D | verbs.c | 1132 const struct ib_gid_attr *gid_attr; in get_gid_info_from_table() local 1139 gid_attr = grh->sgid_attr; in get_gid_info_from_table() 1140 ret = rdma_read_gid_l2_fields(gid_attr, &qp_params->vlan_id, NULL); in get_gid_info_from_table() 1144 nw_type = rdma_gid_attr_network_type(gid_attr); in get_gid_info_from_table() 1147 memcpy(&qp_params->sgid.bytes[0], &gid_attr->gid.raw[0], in get_gid_info_from_table() 1157 memcpy(&qp_params->sgid.bytes[0], &gid_attr->gid.raw[0], in get_gid_info_from_table() 1167 ipv4_addr = qedr_get_ipv4_from_gid(gid_attr->gid.raw); in get_gid_info_from_table()
|