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;
415 char devstr[IBV_SYSFS_PATH_MAX], ibdev[16], value[128], *cp;
424 if (ibv_read_sysfs_file(uverbs_sys_path, "ibdev",
425 ibdev, sizeof ibdev) < 0)
428 devnum = atoi(&ibdev[5]);
430 if (ibdev[0] == 't' && ibdev[1] >= '4' && ibdev[1] <= '6' &&
431 strstr(&ibdev[2], "nex") && devnum >= 0) {
432 snprintf(dev_str, sizeof(dev_str), "/dev/t%cnex/%d", ibdev[1],
434 } else if (strstr(&ibdev[0], "chnex") && devnum >= 0) {
485 if (ibv_read_sysfs_file(uverbs_sys_path, "ibdev",
486 ibdev, sizeof ibdev) < 0)
491 ibv_get_sysfs_path(), ibdev);