Lines Matching refs:tab_attr
287 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()
491 tab_attr[i] = &element->attr.attr; in alloc_group_attrs()
494 return tab_attr; in alloc_group_attrs()
498 kfree(tab_attr[i]); in alloc_group_attrs()
499 kfree(tab_attr); in alloc_group_attrs()