Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/infiniband/core/
Dsysfs.c287 struct port_table_attribute *tab_attr = in show_port_gid() local
292 ret = ib_query_gid(p->ibdev, p->port_num, tab_attr->index, &gid, NULL); in show_port_gid()
302 struct port_table_attribute *tab_attr = in show_port_pkey() local
307 ret = ib_query_pkey(p->ibdev, p->port_num, tab_attr->index, &pkey); in show_port_pkey()
323 struct port_table_attribute *tab_attr = in show_pma_counter() local
325 int offset = tab_attr->index & 0xffff; in show_pma_counter()
326 int width = (tab_attr->index >> 16) & 0xff; in show_pma_counter()
465 struct attribute **tab_attr; in alloc_group_attrs() local
469 tab_attr = kcalloc(1 + len, sizeof(struct attribute *), GFP_KERNEL); in alloc_group_attrs()
470 if (!tab_attr) in alloc_group_attrs()
[all …]
/linux-4.4.14/drivers/infiniband/hw/mlx4/
Dsysfs.c445 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 …]