Searched refs:umad_dev (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/infiniband/core/
H A Duser_mad.c96 struct ib_umad_device *umad_dev; member in struct:ib_umad_port
958 kobject_get(&port->umad_dev->kobj); ib_umad_open()
968 struct ib_umad_device *dev = file->port->umad_dev; ib_umad_close()
1048 kobject_get(&port->umad_dev->kobj); ib_umad_sm_open()
1078 kobject_put(&port->umad_dev->kobj); ib_umad_sm_close()
1147 struct ib_umad_device *umad_dev, ib_umad_init_port()
1180 port->cdev.kobj.parent = &umad_dev->kobj; ib_umad_init_port()
1199 port->sm_cdev.kobj.parent = &umad_dev->kobj; ib_umad_init_port()
1274 struct ib_umad_device *umad_dev; ib_umad_add_one() local
1287 umad_dev = kzalloc(sizeof *umad_dev + ib_umad_add_one()
1290 if (!umad_dev) ib_umad_add_one()
1293 kobject_init(&umad_dev->kobj, &ib_umad_dev_ktype); ib_umad_add_one()
1295 umad_dev->start_port = s; ib_umad_add_one()
1296 umad_dev->end_port = e; ib_umad_add_one()
1299 umad_dev->port[i - s].umad_dev = umad_dev; ib_umad_add_one()
1301 if (ib_umad_init_port(device, i, umad_dev, ib_umad_add_one()
1302 &umad_dev->port[i - s])) ib_umad_add_one()
1306 ib_set_client_data(device, &umad_client, umad_dev); ib_umad_add_one()
1312 ib_umad_kill_port(&umad_dev->port[i - s]); ib_umad_add_one()
1314 kobject_put(&umad_dev->kobj); ib_umad_add_one()
1319 struct ib_umad_device *umad_dev = ib_get_client_data(device, &umad_client); ib_umad_remove_one() local
1322 if (!umad_dev) ib_umad_remove_one()
1325 for (i = 0; i <= umad_dev->end_port - umad_dev->start_port; ++i) ib_umad_remove_one()
1326 ib_umad_kill_port(&umad_dev->port[i]); ib_umad_remove_one()
1328 kobject_put(&umad_dev->kobj); ib_umad_remove_one()
1146 ib_umad_init_port(struct ib_device *device, int port_num, struct ib_umad_device *umad_dev, struct ib_umad_port *port) ib_umad_init_port() argument

Completed in 187 milliseconds