Home
last modified time | relevance | path

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

/linux-6.6.21/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.6.21/drivers/infiniband/core/
Dsysfs.c462 struct port_table_attribute *tab_attr = in _show_port_gid_attr() local
467 gid_attr = rdma_get_gid_attr(ibdev, port_num, tab_attr->index); in _show_port_gid_attr()
480 struct port_table_attribute *tab_attr = in show_port_gid() local
485 gid_attr = rdma_get_gid_attr(ibdev, port_num, tab_attr->index); in show_port_gid()
524 struct port_table_attribute *tab_attr = in show_port_pkey() local
529 ret = ib_query_pkey(ibdev, port_num, tab_attr->index, &pkey); in show_port_pkey()
601 struct port_table_attribute *tab_attr = in show_pma_counter() local
603 int offset = tab_attr->index & 0xffff; in show_pma_counter()
604 int width = (tab_attr->index >> 16) & 0xff; in show_pma_counter()
609 ret = get_perf_mad(ibdev, port_num, tab_attr->attr_id, &data, in show_pma_counter()