Home
last modified time | relevance | path

Searched refs:sectorcount (Results 1 – 6 of 6) sorted by relevance

/freebsd/usr.sbin/diskinfo/
H A Ddiskinfo.c419 off_t b0, b1, sectorcount, step; in speeddisk() local
425 sectorcount = mediasize / sectorsize; in speeddisk()
426 if (mediasize < 1024 * 1024 || sectorcount < 2048) in speeddisk()
430 step = 1ULL << (flsll(sectorcount / (4 * 200)) - 1); in speeddisk()
440 b1 = sectorcount - step; in speeddisk()
451 b0 = sectorcount / 4; in speeddisk()
452 b1 = b0 + sectorcount / 2; in speeddisk()
462 b0 = sectorcount / 4; in speeddisk()
463 b1 = b0 + sectorcount / 4; in speeddisk()
474 b0 = sectorcount / 2; in speeddisk()
[all …]
/freebsd/sys/dev/flash/
H A Dn25q.c89 unsigned int sectorcount; member
303 sc->sc_disk->d_mediasize = (ident->sectorsize * ident->sectorcount); in n25q_attach()
326 ident->name, ident->sectorsize, ident->sectorcount); in n25q_attach()
H A Dmx25l.c76 unsigned int sectorcount; member
521 sc->sc_disk->d_mediasize = ident->sectorsize * ident->sectorcount; in mx25l_attach()
537 ident->sectorcount * ident->sectorsize / 1024, in mx25l_attach()
538 ident->sectorcount, ident->sectorsize / 1024, in mx25l_attach()
/freebsd/sys/dev/flash/flexspi/
H A Dflex_spi.c74 uint32_t sectorcount; member
111 uint32_t sectorcount; member
477 sc->sectorcount = finfo->sectorcount; in flex_spi_identify()
799 sc->disk->d_mediasize = sc->sectorsize * sc->sectorcount; in flex_spi_attach()
/freebsd/sys/dev/pms/RefTisa/tisa/sassata/sata/host/
H A Dossasat.c6055 bit32 sectorcount = 0; in satWriteSame10CB() local
6306 sectorcount = (0x0FFFFFFF - 1) - lba; in satWriteSame10CB()
6310 sectorcount = tl; in satWriteSame10CB()
6313 if (sectorcount <= 0) in satWriteSame10CB()
6327 TI_DBG1(("satWriteSame10CB: incorrect sectorcount 0x%x\n", sectorcount)); in satWriteSame10CB()
6331 if (sectorcount == satDevData->satSectorDone) in satWriteSame10CB()
/freebsd/sys/dev/pms/RefTisa/sat/src/
H A Dsmsatcb.c3974 bit32 sectorcount = 0; in smsatWriteSame10CB() local
4226 sectorcount = (0x0FFFFFFF - 1) - lba; in smsatWriteSame10CB()
4230 sectorcount = tl; in smsatWriteSame10CB()
4233 if (sectorcount <= 0) in smsatWriteSame10CB()
4247 SM_DBG1(("smsatWriteSame10CB: incorrect sectorcount 0x%x!!!\n", sectorcount)); in smsatWriteSame10CB()
4251 if (sectorcount == oneDeviceData->satSectorDone) in smsatWriteSame10CB()