Home | History | Annotate | Download | only in boot

Lines Matching refs:blkno

361 wdc_exec_read(struct wd_softc *wd, uint8_t cmd, daddr_t blkno, void *data)
377 if ((wd->sc_flags & WDF_LBA48) != 0 && blkno > wd->sc_capacity28)
385 wd_c.r_blkno = blkno;
389 wd_c.r_sector = (blkno >> 0) & 0xff;
390 wd_c.r_cyl = (blkno >> 8) & 0xffff;
391 wd_c.r_head = (blkno >> 24) & 0x0f;
396 wd_c.r_sector = blkno % wd->sc_label.d_nsectors;
398 blkno /= wd->sc_label.d_nsectors;
399 wd_c.r_head = blkno % wd->sc_label.d_ntracks;
400 blkno /= wd->sc_label.d_ntracks;
401 wd_c.r_cyl = blkno;