Lines Matching refs:ports
55 struct cma_dev_port_group *ports; member
206 struct cma_dev_port_group *ports; in make_cma_ports() local
215 ports = kcalloc(ports_num, sizeof(*cma_dev_group->ports), in make_cma_ports()
218 if (!ports) { in make_cma_ports()
226 ports[i].port_num = i + 1; in make_cma_ports()
228 ports[i].cma_dev_group = cma_dev_group; in make_cma_ports()
229 config_group_init_type_name(&ports[i].group, in make_cma_ports()
232 configfs_add_default_group(&ports[i].group, in make_cma_ports()
236 cma_dev_group->ports = ports; in make_cma_ports()
240 kfree(ports); in make_cma_ports()
241 cma_dev_group->ports = NULL; in make_cma_ports()
264 kfree(cma_dev_group->ports); in release_cma_ports_group()
265 cma_dev_group->ports = NULL; in release_cma_ports_group()