Lines Matching defs:sectorsize
347 if (pp->sectorsize * 4 > maxphys) {
353 buf = g_read_data(cp, pp->mediasize - pp->sectorsize *
355 pp->sectorsize * 4, &error);
373 memcpy(meta, buf, MIN(sizeof(*meta), pp->sectorsize * 4));
443 buf = malloc(pp->sectorsize * 4, M_MD_PROMISE, M_WAITOK | M_ZERO);
448 cp->provider->mediasize / cp->provider->sectorsize,
473 memcpy(buf, meta, MIN(pp->sectorsize * 4, sizeof(*meta)));
475 error = g_write_data(cp, pp->mediasize - pp->sectorsize *
477 buf, pp->sectorsize * 4);
499 buf = malloc(4 * pp->sectorsize, M_MD_PROMISE, M_WAITOK | M_ZERO);
501 error = g_write_data(cp, pp->mediasize - pp->sectorsize *
503 buf, 4 * pp->sectorsize);
527 tmp = cp->provider->mediasize / cp->provider->sectorsize - 131072;
717 disk->d_consumer->provider->sectorsize,
1273 off_t esize, offs[PROMISE_MAX_DISKS], size, sectorsize, strip;
1315 sectorsize = 0;
1356 pp->mediasize / pp->sectorsize,
1358 size = MIN(size, (off_t)esize * pp->sectorsize);
1359 sectorsize = MAX(sectorsize, pp->sectorsize);
1384 size = MIN(size, pp->mediasize - 131072llu * pp->sectorsize);
1385 sectorsize = MAX(sectorsize, pp->sectorsize);
1396 if (sectorsize <= 0) {
1420 if (*striparg < sectorsize) {
1424 if (*striparg % sectorsize != 0) {
1435 size -= (size % sectorsize);
1470 vol->v_sectorsize = sectorsize;