Lines Matching defs:ibdev
106 static struct ibv_context *c4iw_alloc_context(struct ibv_device *ibdev,
112 struct c4iw_dev *rhp = to_c4iw_dev(ibdev);
143 context->ibv_ctx.device = ibdev;
413 char devstr[IBV_SYSFS_PATH_MAX], ibdev[16], value[128], *cp;
422 if (ibv_read_sysfs_file(uverbs_sys_path, "ibdev",
423 ibdev, sizeof ibdev) < 0)
426 devnum = atoi(&ibdev[5]);
428 if (ibdev[0] == 't' && ibdev[1] >= '4' && ibdev[1] <= '6' &&
429 strstr(&ibdev[2], "nex") && devnum >= 0) {
430 snprintf(dev_str, sizeof(dev_str), "/dev/t%cnex/%d", ibdev[1],
481 if (ibv_read_sysfs_file(uverbs_sys_path, "ibdev",
482 ibdev, sizeof ibdev) < 0)
487 ibv_get_sysfs_path(), ibdev);