Lines Matching refs:cm_dev
158 struct cm_device *cm_dev;
344 ib_init_ah_from_wc(port->cm_dev->ib_device, port->port_num, wc,
350 struct cm_device *cm_dev;
357 list_for_each_entry(cm_dev, &cm.device_list, list) {
358 if (!ib_find_cached_gid(cm_dev->ib_device, &path->sgid,
360 port = cm_dev->port[p-1];
369 ret = ib_find_cached_pkey(cm_dev->ib_device, port->port_num,
375 ib_init_ah_from_path(cm_dev->ib_device, port->port_num, path,
1043 cm_ack_timeout(cm_id_priv->av.port->cm_dev->ack_delay,
1064 cm_ack_timeout(cm_id_priv->av.port->cm_dev->ack_delay,
1513 cm_id = ib_create_cm_id(work->port->cm_dev->ib_device, NULL, NULL);
1548 ib_get_cached_gid(work->port->cm_dev->ib_device,
1603 cm_id_priv->av.port->cm_dev->ack_delay);
2559 cm_ack_timeout(cm_id_priv->av.port->cm_dev->ack_delay,
2950 cm_id = ib_create_cm_id(work->port->cm_dev->ib_device, NULL, NULL);
3574 static void cm_get_ack_delay(struct cm_device *cm_dev)
3578 if (ib_query_device(cm_dev->ib_device, &attr))
3579 cm_dev->ack_delay = 0; /* acks will rely on packet life time */
3581 cm_dev->ack_delay = attr.local_ca_ack_delay;
3628 &port->cm_dev->device->kobj,
3666 struct cm_device *cm_dev;
3682 cm_dev = kzalloc(sizeof(*cm_dev) + sizeof(*port) *
3684 if (!cm_dev)
3687 cm_dev->ib_device = ib_device;
3688 cm_get_ack_delay(cm_dev);
3690 cm_dev->device = device_create(&cm_class, &ib_device->dev,
3693 if (IS_ERR(cm_dev->device)) {
3694 kfree(cm_dev);
3704 cm_dev->port[i-1] = port;
3705 port->cm_dev = cm_dev;
3726 ib_set_client_data(ib_device, &cm_client, cm_dev);
3729 list_add_tail(&cm_dev->list, &cm.device_list);
3741 port = cm_dev->port[i-1];
3746 device_unregister(cm_dev->device);
3747 kfree(cm_dev);
3752 struct cm_device *cm_dev;
3760 cm_dev = ib_get_client_data(ib_device, &cm_client);
3761 if (!cm_dev)
3765 list_del(&cm_dev->list);
3769 port = cm_dev->port[i-1];
3775 device_unregister(cm_dev->device);
3776 kfree(cm_dev);