Searched refs:tab_attr (Results 1 – 2 of 2) sorted by relevance
/freebsd/sys/dev/mlx4/mlx4_ib/ |
H A D | mlx4_ib_sysfs.c | 445 struct port_table_attribute *tab_attr = in show_port_pkey() local 449 if (p->dev->pkeys.virt2phys_pkey[p->slave][p->port_num - 1][tab_attr->index] >= in show_port_pkey() 455 [p->port_num - 1][tab_attr->index]); in show_port_pkey() 462 struct port_table_attribute *tab_attr = in store_port_pkey() local 479 [tab_attr->index] = idx; in store_port_pkey() 481 tab_attr->index, idx); in store_port_pkey() 504 struct attribute **tab_attr; in alloc_group_attrs() local 508 tab_attr = kcalloc(1 + len, sizeof (struct attribute *), GFP_KERNEL); in alloc_group_attrs() 509 if (!tab_attr) in alloc_group_attrs() 532 tab_attr[i] = &element->attr.attr; in alloc_group_attrs() [all …]
|
/freebsd/sys/ofed/drivers/infiniband/core/ |
H A D | ib_sysfs.c | 386 struct port_table_attribute *tab_attr = in _show_port_gid_attr() local 392 ret = ib_query_gid(p->ibdev, p->port_num, tab_attr->index, &gid, in _show_port_gid_attr() 408 struct port_table_attribute *tab_attr = in show_port_gid() local 413 ret = ib_query_gid(p->ibdev, p->port_num, tab_attr->index, &gid, NULL); in show_port_gid() 436 struct port_table_attribute *tab_attr = in show_port_pkey() local 441 ret = ib_query_pkey(p->ibdev, p->port_num, tab_attr->index, &pkey); in show_port_pkey() 515 struct port_table_attribute *tab_attr = in show_pma_counter() local 517 int offset = tab_attr->index & 0xffff; in show_pma_counter() 518 int width = (tab_attr->index >> 16) & 0xff; in show_pma_counter() 522 ret = get_perf_mad(p->ibdev, p->port_num, tab_attr->attr_id, &data, in show_pma_counter() [all …]
|