Lines Matching refs:blkno
324 wdc_exec_read(struct wd_softc *wd, uint8_t cmd, daddr_t blkno, void *data) in wdc_exec_read() argument
340 if ((wd->sc_flags & WDF_LBA48) != 0 && blkno > wd->sc_capacity28) in wdc_exec_read()
348 wd_c.r_blkno = blkno; in wdc_exec_read()
352 wd_c.r_sector = (blkno >> 0) & 0xff; in wdc_exec_read()
353 wd_c.r_cyl = (blkno >> 8) & 0xffff; in wdc_exec_read()
354 wd_c.r_head = (blkno >> 24) & 0x0f; in wdc_exec_read()
359 wd_c.r_sector = blkno % wd->sc_label.d_nsectors; in wdc_exec_read()
361 blkno /= wd->sc_label.d_nsectors; in wdc_exec_read()
362 wd_c.r_head = blkno % wd->sc_label.d_ntracks; in wdc_exec_read()
363 blkno /= wd->sc_label.d_ntracks; in wdc_exec_read()
364 wd_c.r_cyl = blkno; in wdc_exec_read()