Lines Matching refs:dtp
1565 struct atari_disk_type *dtp; in fd_ioctl() local
1591 dtp = &disk_type[type]; in fd_ioctl()
1594 drive, dtp, dtp->name); in fd_ioctl()
1600 dtp = UDT; in fd_ioctl()
1603 return put_user(dtp->blocks, (unsigned long *)param); in fd_ioctl()
1606 getprm.size = dtp->blocks; in fd_ioctl()
1607 getprm.sect = dtp->spt; in fd_ioctl()
1609 getprm.track = dtp->blocks/dtp->spt/2; in fd_ioctl()
1610 getprm.stretch = dtp->stretch; in fd_ioctl()
1665 dtp = &disk_type[setidx]; in fd_ioctl()
1668 if ( dtp->blocks == setprm.size in fd_ioctl()
1669 && dtp->spt == setprm.sect in fd_ioctl()
1670 && dtp->stretch == setprm.stretch ) { in fd_ioctl()
1673 drive, dtp->name, dtp); in fd_ioctl()
1674 UDT = dtp; in fd_ioctl()
1679 default_params[drive].name = dtp->name; in fd_ioctl()
1680 default_params[drive].spt = dtp->spt; in fd_ioctl()
1681 default_params[drive].blocks = dtp->blocks; in fd_ioctl()
1682 default_params[drive].fdc_speed = dtp->fdc_speed; in fd_ioctl()
1683 default_params[drive].stretch = dtp->stretch; in fd_ioctl()
1695 dtp = &default_params[drive]; in fd_ioctl()
1698 dtp = &user_params[drive]; in fd_ioctl()
1700 dtp->name = "user format"; in fd_ioctl()
1701 dtp->blocks = setprm.size; in fd_ioctl()
1702 dtp->spt = setprm.sect; in fd_ioctl()
1704 dtp->fdc_speed = 3; in fd_ioctl()
1706 dtp->fdc_speed = 0; in fd_ioctl()
1707 dtp->stretch = setprm.stretch; in fd_ioctl()
1711 drive, dtp->blocks, dtp->spt, dtp->stretch); in fd_ioctl()
1714 if (!dtp || setprm.track != dtp->blocks/dtp->spt/2 || in fd_ioctl()
1720 UDT = dtp; in fd_ioctl()