Home
last modified time | relevance | path

Searched refs:tab_attr (Results 1 - 4 of 4) sorted by relevance

/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx4/
H A Dsysfs.c442 struct port_table_attribute *tab_attr = in show_port_pkey() local
446 if (p->dev->pkeys.virt2phys_pkey[p->slave][p->port_num - 1][tab_attr->index] >= in show_port_pkey()
452 [p->port_num - 1][tab_attr->index]); in show_port_pkey()
459 struct port_table_attribute *tab_attr = in store_port_pkey() local
476 [tab_attr->index] = idx; in store_port_pkey()
478 tab_attr->index, idx); in store_port_pkey()
501 struct attribute **tab_attr; in alloc_group_attrs() local
505 tab_attr = kcalloc(1 + len, sizeof (struct attribute *), GFP_KERNEL); in alloc_group_attrs()
506 if (!tab_attr) in alloc_group_attrs()
529 tab_attr[ in alloc_group_attrs()
[all...]
/kernel/linux/linux-5.10/drivers/infiniband/core/
H A Dsysfs.c383 struct port_table_attribute *tab_attr = in _show_port_gid_attr() local
388 gid_attr = rdma_get_gid_attr(p->ibdev, p->port_num, tab_attr->index); in _show_port_gid_attr()
401 struct port_table_attribute *tab_attr = in show_port_gid() local
406 gid_attr = rdma_get_gid_attr(p->ibdev, p->port_num, tab_attr->index); in show_port_gid()
443 struct port_table_attribute *tab_attr = in show_port_pkey() local
448 ret = ib_query_pkey(p->ibdev, p->port_num, tab_attr->index, &pkey); in show_port_pkey()
520 struct port_table_attribute *tab_attr = in show_pma_counter() local
522 int offset = tab_attr->index & 0xffff; in show_pma_counter()
523 int width = (tab_attr->index >> 16) & 0xff; in show_pma_counter()
527 ret = get_perf_mad(p->ibdev, p->port_num, tab_attr in show_pma_counter()
740 struct attribute **tab_attr; alloc_group_attrs() local
[all...]
/kernel/linux/linux-6.6/drivers/infiniband/hw/mlx4/
H A 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...]
/kernel/linux/linux-6.6/drivers/infiniband/core/
H A 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 in show_pma_counter()
[all...]

Completed in 7 milliseconds