Lines Matching refs:sector_size
180 uint_t sector_size; in scandisk() local
183 sector_size = mediainfo.dki_lbsize; in scandisk()
185 sector_size = NBPSCTR; in scandisk()
187 trksiz = sector_size * dkg.dkg_nsect; in scandisk()
199 if (mallopt(M_GRAIN, sector_size)) { in scandisk()
203 if ((verbuf = malloc(sector_size * dkg.dkg_nsect)) == in scandisk()
211 if ((verbuf = malloc(sector_size + sector_size * dkg.dkg_nsect)) in scandisk()
216 verbuf = (char *)((((unsigned long)verbuf + sector_size)) & in scandisk()
217 (-sector_size)); in scandisk()
252 if (llseek(devfd, cursec * sector_size, 0) == -1) { in scandisk()
275 if (llseek(devfd, tmpsec * sector_size, in scandisk()
285 if (write(devfd, verbuf, sector_size) in scandisk()
286 != sector_size) { in scandisk()
299 if (llseek(devfd, cursec * sector_size, 0) == -1) { in scandisk()
316 if (llseek(devfd, tmpsec * sector_size, in scandisk()
324 if (read(devfd, verbuf, sector_size) != in scandisk()
325 sector_size) { in scandisk()