Lines Matching refs:dev_desc

440 static void scsi_init_dev_desc_priv(struct blk_desc *dev_desc)  in scsi_init_dev_desc_priv()  argument
442 dev_desc->target = 0xff; in scsi_init_dev_desc_priv()
443 dev_desc->lun = 0xff; in scsi_init_dev_desc_priv()
444 dev_desc->log2blksz = in scsi_init_dev_desc_priv()
445 LOG2_INVALID(typeof(dev_desc->log2blksz)); in scsi_init_dev_desc_priv()
446 dev_desc->type = DEV_TYPE_UNKNOWN; in scsi_init_dev_desc_priv()
447 dev_desc->vendor[0] = 0; in scsi_init_dev_desc_priv()
448 dev_desc->product[0] = 0; in scsi_init_dev_desc_priv()
449 dev_desc->revision[0] = 0; in scsi_init_dev_desc_priv()
450 dev_desc->removable = false; in scsi_init_dev_desc_priv()
460 static void scsi_init_dev_desc(struct blk_desc *dev_desc, int devnum) in scsi_init_dev_desc() argument
462 dev_desc->lba = 0; in scsi_init_dev_desc()
463 dev_desc->blksz = 0; in scsi_init_dev_desc()
464 dev_desc->if_type = IF_TYPE_SCSI; in scsi_init_dev_desc()
465 dev_desc->devnum = devnum; in scsi_init_dev_desc()
466 dev_desc->part_type = PART_TYPE_UNKNOWN; in scsi_init_dev_desc()
468 scsi_init_dev_desc_priv(dev_desc); in scsi_init_dev_desc()
485 struct blk_desc *dev_desc) in scsi_detect_dev() argument
517 dev_desc->removable = true; in scsi_detect_dev()
519 scsi_ident_cpy((unsigned char *)dev_desc->vendor, in scsi_detect_dev()
521 scsi_ident_cpy((unsigned char *)dev_desc->product, in scsi_detect_dev()
523 scsi_ident_cpy((unsigned char *)dev_desc->revision, in scsi_detect_dev()
525 dev_desc->target = pccb->target; in scsi_detect_dev()
526 dev_desc->lun = pccb->lun; in scsi_detect_dev()
536 if (dev_desc->removable) { in scsi_detect_dev()
537 dev_desc->type = perq; in scsi_detect_dev()
547 dev_desc->lba = capacity; in scsi_detect_dev()
548 dev_desc->blksz = blksz; in scsi_detect_dev()
549 dev_desc->log2blksz = LOG2(dev_desc->blksz); in scsi_detect_dev()
550 dev_desc->type = perq; in scsi_detect_dev()