Lines Matching refs:tv
90 static targetv_t tv; /* target vector of targetinfo_t structs */
341 if (sgblockop(tv.v[t].target, tv.v[t].lun, offset / tv.v[t].blocksize, (length / tv.v[t].blocksize), tv.v[t].blocksize, (uint8_t *) iov, ioc, writing) != 0) {
348 req_len = length / tv.v[t].blocksize;
349 if ((req_len * tv.v[t].blocksize) < length)
351 if (blockop(tv.v[t].target, tv.v[t].lun, offset / tv.v[t].blocksize,
352 req_len, tv.v[t].blocksize, (uint8_t *) buf, writing) != 0) {
694 ALLOC(targetinfo_t, tv.v, tv.size, tv.c, 10, 10, "iscsifs",
730 tv.v[tv.c].host = strdup(tinfo.name);
731 tv.v[tv.c].ip = strdup(tinfo.ip);
732 tv.v[tv.c].targetname = strdup(tinfo.TargetName);
733 tv.v[tv.c].stargetname = strdup(colon);
734 tv.v[tv.c].target = u;
735 tv.v[tv.c].lun = 0;
736 tv.v[tv.c].lbac = lbac;
737 tv.v[tv.c].blocksize = blocksize;
742 tv.v[tv.c].devicetype = (data[0] & 0x1f);
743 (void) memcpy(tv.v[tv.c].vendor, &data[8], VendorLen);
744 (void) memcpy(tv.v[tv.c].product, &data[8 + VendorLen],
746 (void) memcpy(tv.v[tv.c].version,
751 tv.v[tv.c].serial = strdup((char *)&data[4]);
768 virtdir_add(&iscsi, name, cc, 'l', tv.v[tv.c].vendor,
769 strlen(tv.v[tv.c].vendor));
771 virtdir_add(&iscsi, name, cc, 'l', tv.v[tv.c].product,
772 strlen(tv.v[tv.c].product));
774 virtdir_add(&iscsi, name, cc, 'l', tv.v[tv.c].version,
775 strlen(tv.v[tv.c].version));
776 if (tv.v[tv.c].serial[0] && tv.v[tv.c].serial[0] != ' ') {
779 virtdir_add(&iscsi, name, cc, 'l', tv.v[tv.c].serial,
780 strlen(tv.v[tv.c].serial));
782 tv.c += 1;