Home
last modified time | relevance | path

Searched refs:tab_attr (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/drivers/infiniband/hw/mlx4/
Dsysfs.c444 struct port_table_attribute *tab_attr = in show_port_pkey() local
447 u8 key = m->virt2phys_pkey[p->slave][p->port_num - 1][tab_attr->index]; in show_port_pkey()
457 struct port_table_attribute *tab_attr = in store_port_pkey() local
474 [tab_attr->index] = idx; in store_port_pkey()
476 tab_attr->index, idx); in store_port_pkey()
499 struct attribute **tab_attr; in alloc_group_attrs() local
503 tab_attr = kcalloc(1 + len, sizeof (struct attribute *), GFP_KERNEL); in alloc_group_attrs()
504 if (!tab_attr) in alloc_group_attrs()
527 tab_attr[i] = &element->attr.attr; in alloc_group_attrs()
529 return tab_attr; in alloc_group_attrs()
[all …]
/linux-6.12.1/drivers/infiniband/core/
Dsysfs.c466 struct port_table_attribute *tab_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()
484 struct port_table_attribute *tab_attr = in show_port_gid() local
489 gid_attr = rdma_get_gid_attr(ibdev, port_num, tab_attr->index); in show_port_gid()
528 struct port_table_attribute *tab_attr = in show_port_pkey() local
533 ret = ib_query_pkey(ibdev, port_num, tab_attr->index, &pkey); in show_port_pkey()
605 struct port_table_attribute *tab_attr = in show_pma_counter() local
607 int offset = tab_attr->index & 0xffff; in show_pma_counter()
608 int width = (tab_attr->index >> 16) & 0xff; in show_pma_counter()
613 ret = get_perf_mad(ibdev, port_num, tab_attr->attr_id, &data, in show_pma_counter()