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); 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()
482 struct attribute **tab_attr; in alloc_group_attrs() local
486 tab_attr = kcalloc(1 + len, sizeof(struct attribute *), GFP_KERNEL); in alloc_group_attrs()
487 if (!tab_attr) in alloc_group_attrs()
508 tab_attr[i] = &element->attr.attr; in alloc_group_attrs()
511 return tab_attr; in alloc_group_attrs()
515 kfree(tab_attr[i]); in alloc_group_attrs()
516 kfree(tab_attr); in alloc_group_attrs()