Lines Matching refs:dev_desc
442 static void scsi_init_dev_desc_priv(struct blk_desc *dev_desc) in scsi_init_dev_desc_priv() argument
444 dev_desc->target = 0xff; in scsi_init_dev_desc_priv()
445 dev_desc->lun = 0xff; in scsi_init_dev_desc_priv()
446 dev_desc->log2blksz = in scsi_init_dev_desc_priv()
447 LOG2_INVALID(typeof(dev_desc->log2blksz)); in scsi_init_dev_desc_priv()
448 dev_desc->type = DEV_TYPE_UNKNOWN; in scsi_init_dev_desc_priv()
449 dev_desc->vendor[0] = 0; in scsi_init_dev_desc_priv()
450 dev_desc->product[0] = 0; in scsi_init_dev_desc_priv()
451 dev_desc->revision[0] = 0; in scsi_init_dev_desc_priv()
452 dev_desc->removable = false; in scsi_init_dev_desc_priv()
454 dev_desc->block_read = scsi_read; in scsi_init_dev_desc_priv()
455 dev_desc->block_write = scsi_write; in scsi_init_dev_desc_priv()
466 static void scsi_init_dev_desc(struct blk_desc *dev_desc, int devnum) in scsi_init_dev_desc() argument
468 dev_desc->lba = 0; in scsi_init_dev_desc()
469 dev_desc->blksz = 0; in scsi_init_dev_desc()
470 dev_desc->if_type = IF_TYPE_SCSI; in scsi_init_dev_desc()
471 dev_desc->devnum = devnum; in scsi_init_dev_desc()
472 dev_desc->part_type = PART_TYPE_UNKNOWN; in scsi_init_dev_desc()
474 scsi_init_dev_desc_priv(dev_desc); in scsi_init_dev_desc()
491 struct blk_desc *dev_desc) in scsi_detect_dev() argument
521 dev_desc->removable = true; in scsi_detect_dev()
523 scsi_ident_cpy((unsigned char *)dev_desc->vendor, in scsi_detect_dev()
525 scsi_ident_cpy((unsigned char *)dev_desc->product, in scsi_detect_dev()
527 scsi_ident_cpy((unsigned char *)dev_desc->revision, in scsi_detect_dev()
529 dev_desc->target = pccb->target; in scsi_detect_dev()
530 dev_desc->lun = pccb->lun; in scsi_detect_dev()
535 if (dev_desc->removable) { in scsi_detect_dev()
536 dev_desc->type = perq; in scsi_detect_dev()
546 dev_desc->lba = capacity; in scsi_detect_dev()
547 dev_desc->blksz = blksz; in scsi_detect_dev()
548 dev_desc->log2blksz = LOG2(dev_desc->blksz); in scsi_detect_dev()
549 dev_desc->type = perq; in scsi_detect_dev()