Lines Matching defs:thisdev

71 static int cnx_identify(struct devicelist *thisdev);
399 fw_devinfo(struct devicelist *thisdev)
405 encap = (ib_cnx_encap_ident_t *)thisdev->ident->encap_ident;
408 "for device %s! \n"), thisdev->access_devname);
414 thisdev->index, thisdev->access_devname);
415 fprintf(stdout, gettext("Class [%s]\n"), thisdev->classname);
421 thisdev->addresses[3]);
423 thisdev->addresses[0]);
425 thisdev->addresses[1]);
427 thisdev->addresses[2]);
430 thisdev->ident->revid);
444 else if (strlen(thisdev->ident->pid))
445 fprintf(stdout, gettext("\t%s\n"), thisdev->ident->pid);
447 fprintf(stdout, gettext("\t%s\n"), thisdev->ident->pid);
451 return (cnx_close(thisdev));
744 * allocates and assigns thisdev->vpr
749 * determines the hardware vendor, so that thisdev->vpr->vid
753 cnx_identify(struct devicelist *thisdev)
763 /* hook thisdev->ident->encap_ident to ib_cnx_encap_ident_t */
768 if ((fd = open(thisdev->access_devname, O_RDONLY)) < 0) {
771 thisdev->access_devname, strerror(errno));
786 thisdev->ident->encap_ident = manuf;
859 if (((thisdev->ident->vid = calloc(1, MLX_VPR_VIDLEN + 1)) == NULL) ||
860 ((thisdev->ident->revid = calloc(1, MLX_VPR_REVLEN + 1)) == NULL)) {
865 (void) strlcpy(thisdev->ident->vid, "MELLANOX", MLX_VPR_VIDLEN);
872 snprintf(thisdev->ident->revid, MLX_VPR_REVLEN, "%d.%d.%03d",
879 "device %s!\n"), thisdev->access_devname);
986 thisdev->ident->pid = calloc(1, i + 2);
987 sprintf(thisdev->ident->pid, "No additional hardware info "
991 if ((thisdev->ident->pid = calloc(1,
993 (void) strlcpy(thisdev->ident->pid,
1006 if ((thisdev->addresses[i] = calloc(1,
1013 (void) sprintf(thisdev->addresses[i], "%016llx",
1028 cnx_close(thisdev);