Lines Matching refs:dpnt
285 Scsi_Disk *dpnt; in sd_find_queue() local
289 dpnt = &rscsi_disks[target]; in sd_find_queue()
290 if (!dpnt->device) in sd_find_queue()
292 return &dpnt->device->request_queue; in sd_find_queue()
299 Scsi_Disk *dpnt; in sd_init_command() local
313 dpnt = &rscsi_disks[dev]; in sd_init_command()
315 !dpnt->device || in sd_init_command()
316 !dpnt->device->online || in sd_init_command()
323 if (dpnt->device->changed) { in sd_init_command()
346 if (dpnt->device->sector_size == 1024) { in sd_init_command()
355 if (dpnt->device->sector_size == 2048) { in sd_init_command()
364 if (dpnt->device->sector_size == 4096) { in sd_init_command()
375 if (!dpnt->device->writeable) { in sd_init_command()
425 SCpnt->transfersize = dpnt->device->sector_size; in sd_init_command()
1310 Scsi_Disk *dpnt; in sd_attach() local
1321 for (dpnt = rscsi_disks, i = 0; i < sd_template.dev_max; i++, dpnt++) in sd_attach()
1322 if (!dpnt->device) in sd_attach()
1415 Scsi_Disk *dpnt; in sd_detach() local
1424 for (dpnt = rscsi_disks, i = 0; i < sd_template.dev_max; i++, dpnt++) in sd_detach()
1425 if (dpnt->device == SDp) { in sd_detach()
1443 dpnt->has_part_table = 0; in sd_detach()
1444 dpnt->device = NULL; in sd_detach()
1445 dpnt->capacity = 0; in sd_detach()