Lines Matching defs:bd
674 ld_ataraid_biodisk(struct ld_ataraid_softc *sc, struct bioc_disk *bd)
684 if (bd->bd_diskid > aai->aai_ndisks)
687 adi = &aai->aai_disks[bd->bd_diskid];
694 bd->bd_status = BIOC_SDONLINE;
697 bd->bd_status = BIOC_SDHOTSPARE;
700 bd->bd_status = BIOC_SDOFFLINE;
704 bd->bd_channel = 0;
705 bd->bd_target = atabus->sc_chan->ch_channel;
706 bd->bd_lun = 0;
707 bd->bd_size = (wd->sc_capacity * ld->sc_secsize) - aai->aai_reserved;
709 strlcpy(bd->bd_procdev, device_xname(adi->adi_dev),
710 sizeof(bd->bd_procdev));
719 snprintf(bd->bd_vendor, sizeof(bd->bd_vendor), "%s %s", model, rev);
720 strlcpy(bd->bd_serial, serial, sizeof(bd->bd_serial));