Lines Matching defs:device

43 #include <linux/device.h>
67 static void cm_add_one(struct ib_device *device);
68 static void cm_remove_one(struct ib_device *device, void *client_data);
181 struct device *device;
566 (cm_id_priv->id.device == cur_cm_id_priv->id.device))
569 if (cm_id_priv->id.device < cur_cm_id_priv->id.device)
571 else if (cm_id_priv->id.device > cur_cm_id_priv->id.device)
585 static struct cm_id_private * cm_find_listen(struct ib_device *device,
595 (cm_id_priv->id.device == device))
598 if (device < cm_id_priv->id.device)
600 else if (device > cm_id_priv->id.device)
739 struct ib_cm_id *ib_create_cm_id(struct ib_device *device,
751 cm_id_priv->id.device = device;
851 cm_dev = ib_get_client_data(cm_id_priv->id.device, &cm_client);
868 /* Check if the device started its remove_one */
933 &cm_id_priv->id.device->node_guid,
934 sizeof cm_id_priv->id.device->node_guid,
1068 * If there's an existing ID listening on that same device and service ID,
1071 * @device: Device associated with the cm_id. All related communication will
1072 * be associated with the specified device.
1081 struct ib_cm_id *ib_cm_insert_listen(struct ib_device *device,
1091 cm_id = ib_create_cm_id(device, cm_handler, NULL);
1101 cm_id_priv = cm_find_listen(device, service_id);
1166 req_msg->local_ca_guid = cm_id_priv->id.device->node_guid;
1638 listen_cm_id_priv = cm_find_listen(cm_id_priv->id.device,
1814 rep_msg->local_ca_guid = cm_id_priv->id.device->node_guid;
3227 cur_cm_id_priv = cm_find_listen(cm_id->device,
3518 cm_dev = ib_get_client_data(cm_id->device, &cm_client);
3560 /* Check if the device started its remove_one */
3690 /* Check if the device started its remove_one */
3906 static char *cm_devnode(struct device *dev, umode_t *mode)
3925 &port->cm_dev->device->kobj,
3985 cm_dev->device = device_create(&cm_class, &ib_device->dev,
3988 if (IS_ERR(cm_dev->device)) {
4058 device_unregister(cm_dev->device);
4112 device_unregister(cm_dev->device);