Lines Matching refs:tab_attr
444 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()
533 kfree(tab_attr[i]); in alloc_group_attrs()
534 kfree(tab_attr); in alloc_group_attrs()