Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/infiniband/core/
Dsysfs.c61 struct attribute_group *pkey_group; member
685 if (p->pkey_group) { in ib_port_release()
686 if (p->pkey_group->attrs) { in ib_port_release()
687 for (i = 0; (a = p->pkey_group->attrs[i]); ++i) in ib_port_release()
690 kfree(p->pkey_group->attrs); in ib_port_release()
693 kfree(p->pkey_group); in ib_port_release()
694 p->pkey_group = NULL; in ib_port_release()
1128 p->pkey_group = kzalloc(sizeof(*p->pkey_group), GFP_KERNEL); in add_port()
1129 if (!p->pkey_group) { in add_port()
1134 p->pkey_group->name = "pkeys"; in add_port()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx4/
Dsysfs.c367 struct attribute_group pkey_group; member
382 for (i = 0; (a = p->pkey_group.attrs[i]); ++i) in mlx4_port_release()
384 kfree(p->pkey_group.attrs); in mlx4_port_release()
657 p->pkey_group.name = "pkey_idx"; in add_port()
658 p->pkey_group.attrs = in add_port()
662 if (!p->pkey_group.attrs) { in add_port()
667 ret = sysfs_create_group(&p->kobj, &p->pkey_group); in add_port()
695 kfree(p->pkey_group.attrs[i]); in add_port()
696 kfree(p->pkey_group.attrs); in add_port()
751 sysfs_remove_group(p, &mport->pkey_group); in register_one_pkey_tree()
[all …]