Lines Matching defs:thisdev
97 static int tavor_identify(struct devicelist *thisdev);
751 fw_devinfo(struct devicelist *thisdev)
757 encap = (struct ib_encap_ident *)thisdev->ident->encap_ident;
760 thisdev->index, thisdev->access_devname, thisdev->classname);
767 thisdev->addresses[3]);
770 thisdev->addresses[0]);
773 thisdev->addresses[1]);
776 thisdev->addresses[2]);
783 thisdev->ident->revid,
791 "device\n"), thisdev->ident->revid);
795 return (tavor_close(thisdev));
807 * allocates and assigns thisdev->vpr
812 * determines the hardware vendor, so that thisdev->vpr->vid
816 tavor_identify(struct devicelist *thisdev)
833 /* hook thisdev->ident->encap_ident to ib_encap_ident */
838 if ((fd = open(thisdev->access_devname, O_RDONLY)) < 0) {
842 thisdev->access_devname, strerror(errno));
857 thisdev->ident->encap_ident = manuf;
945 if (((thisdev->ident->vid = calloc(1, MLX_VPR_VIDLEN + 1)) == NULL) ||
946 ((thisdev->ident->revid = calloc(1, MLX_VPR_REVLEN + 1)) == NULL)) {
951 free(thisdev->ident);
959 (void) strlcpy(thisdev->ident->vid, "MELLANOX", MLX_VPR_VIDLEN);
966 snprintf(thisdev->ident->revid, MLX_VPR_REVLEN, "%d.%d.%03d",
1066 thisdev->access_devname);
1134 thisdev->ident->pid = calloc(1, i + 2);
1135 sprintf(thisdev->ident->pid, "No hardware information "
1138 if ((thisdev->ident->pid = calloc(1,
1140 (void) strlcpy(thisdev->ident->pid,
1147 free(thisdev->ident);
1158 if ((thisdev->addresses[i] = calloc(1,
1165 (void) sprintf(thisdev->addresses[i], "%016llx",