Lines Matching refs:gid_attr
437 static ssize_t print_ndev(const struct ib_gid_attr *gid_attr, char *buf) in print_ndev() argument
443 ndev = rcu_dereference(gid_attr->ndev); in print_ndev()
450 static ssize_t print_gid_type(const struct ib_gid_attr *gid_attr, char *buf) in print_gid_type() argument
453 ib_cache_gid_type_str(gid_attr->gid_type)); in print_gid_type()
459 ssize_t (*print)(const struct ib_gid_attr *gid_attr, char *buf)) in _show_port_gid_attr() argument
463 const struct ib_gid_attr *gid_attr; in _show_port_gid_attr() local
466 gid_attr = rdma_get_gid_attr(ibdev, port_num, tab_attr->index); in _show_port_gid_attr()
467 if (IS_ERR(gid_attr)) in _show_port_gid_attr()
471 ret = print(gid_attr, buf); in _show_port_gid_attr()
472 rdma_put_gid_attr(gid_attr); in _show_port_gid_attr()
481 const struct ib_gid_attr *gid_attr; in show_port_gid() local
484 gid_attr = rdma_get_gid_attr(ibdev, port_num, tab_attr->index); in show_port_gid()
485 if (IS_ERR(gid_attr)) { in show_port_gid()
500 len = sysfs_emit(buf, "%pI6\n", gid_attr->gid.raw); in show_port_gid()
501 rdma_put_gid_attr(gid_attr); in show_port_gid()