Lines Matching defs:fjp

358 	struct	fcu_obj *fjp;
403 fjp = fcp->c_unit[FDUNIT(unit)];
404 fjp->fj_unit = unit;
405 fjp->fj_dip = udip;
406 fjp->fj_ops = &fdc_iops;
407 fjp->fj_fdc = fcp;
408 fjp->fj_iblock = &fcp->c_iblock;
410 ddi_set_driver_private(udip, fjp);
420 fjp = ddi_get_driver_private(udip);
422 fjp->fj_dip = NULL;
493 struct fcu_obj *fjp;
524 for (unit = 0, fjp = (struct fcu_obj *)(fcp+1);
526 fcp->c_unit[unit] = fjp++;
917 fdc_abort(struct fcu_obj *fjp)
919 struct fdcntlr *fcp = fjp->fj_fdc;
920 int unit = fjp->fj_unit & 3;
947 fdc_dkinfo(struct fcu_obj *fjp, struct dk_cinfo *dcp)
949 struct fdcntlr *fcp = fjp->fj_fdc;
959 (void) strncpy((char *)&dcp->dki_dname, ddi_driver_name(fjp->fj_dip),
961 dcp->dki_slave = fjp->fj_unit & 3;
970 fdc_select(struct fcu_obj *fjp, int funit, int on)
972 struct fdcntlr *fcp = fjp->fj_fdc;
981 if (fcp->c_curunit != unit || !(fjp->fj_flags & FUNIT_CHAROK)) {
983 fjp->fj_flags |= FUNIT_CHAROK;
985 fjp->fj_chars->fdc_transfer_rate,
986 fjp->fj_drive->fdd_steprate, 40))
991 fjp->fj_chars->fdc_transfer_rate,
992 fjp->fj_drive->fdd_steprate);
1002 (void) fdc_motorsm(fjp, FMI_STARTCMD,
1003 fjp->fj_drive->fdd_motoron);
1007 if (fdcspdchange(fcp, fjp, fjp->fj_attr->fda_rotatespd)) {
1009 (void) fdc_motorsm(fjp, FMI_RSTARTCMD, 5);
1028 (void) fdc_motorsm(fjp, FMI_IDLECMD,
1029 fjp->fj_drive->fdd_motoroff);
1044 fdgetchng(struct fcu_obj *fjp, int funit)
1046 if (fdcsense_drv(fjp->fj_fdc, funit & 3))
1048 return (fdcsense_chng(fjp->fj_fdc, funit & 3));
1053 fdresetchng(struct fcu_obj *fjp, int funit)
1055 struct fdcntlr *fcp = fjp->fj_fdc;
1065 return (fdrecalseek(fjp, funit, newcyl, 0));
1073 fdrecalseek(struct fcu_obj *fjp, int funit, int arg, int execflg)
1075 struct fdcntlr *fcp = fjp->fj_fdc;
1126 fdrw(struct fcu_obj *fjp, int funit, int rw, int cyl, int head,
1129 struct fdcntlr *fcp = fjp->fj_fdc;
1154 encode(sector_size, fjp->fj_chars->fdc_sec_size,
1156 csb->csb_cmd[6] = (uchar_t)max(fjp->fj_chars->fdc_secptrack, sector);
1157 csb->csb_cmd[7] = fjp->fj_attr->fda_gapl;
1246 fdtrkformat(struct fcu_obj *fjp, int funit, int cyl, int head, int filldata)
1248 struct fdcntlr *fcp = fjp->fj_fdc;
1268 encode(sector_size, fjp->fj_chars->fdc_sec_size,
1270 csb->csb_cmd[3] = numsctr = fjp->fj_chars->fdc_secptrack;
1271 csb->csb_cmd[4] = fjp->fj_attr->fda_gapf;
1274 csb->csb_npcyl = (uchar_t)(cyl * fjp->fj_chars->fdc_steps);
1315 interleave = fjp->fj_attr->fda_intrlv;
1370 fdrawioctl(struct fcu_obj *fjp, int funit, caddr_t arg)
1372 struct fdcntlr *fcp = fjp->fj_fdc;
1413 fjp->fj_chars->fdc_steps;
1626 struct fcu_obj *fjp = fcp->c_unit[unit];
1627 if (fjp->fj_flags & FUNIT_DRVATCH) {
1823 fdcspdchange(struct fdcntlr *fcp, struct fcu_obj *fjp, int rpm)
1832 if (((fcp->c_flags & FCFLG_DSOUT) == 0 && rpm <= fjp->fj_rotspd) ||
1833 ((fcp->c_flags & FCFLG_DSOUT) && (fjp->fj_flags & FUNIT_3DMODE) &&
1834 rpm > fjp->fj_rotspd)) {
1852 if (rpm > fjp->fj_rotspd) {
1855 (fjp->fj_flags ^ FUNIT_3DMODE);
1857 fjp->fj_flags |= FUNIT_3DMODE;
1861 retcode = fjp->fj_flags & FUNIT_3DMODE;
1862 fjp->fj_flags &= ~FUNIT_3DMODE;
1884 if (rpm > fjp->fj_rotspd) {
1888 (fjp->fj_flags ^ FUNIT_3DMODE);
1890 fjp->fj_flags |= FUNIT_3DMODE;
1895 retcode = fjp->fj_flags & FUNIT_3DMODE;
1896 fjp->fj_flags &= ~FUNIT_3DMODE;
1929 fdc_motorsm(struct fcu_obj *fjp, int input, int timeval)
1931 struct fdcntlr *fcp = fjp->fj_fdc;
1932 int unit = fjp->fj_unit & 3;
1950 fcp->c_motort[unit] = timeout(fdmotort, (void *)fjp,
1958 fjp->fj_flags &= ~FUNIT_3DMODE;
1986 fcp->c_motort[unit] = timeout(fdmotort, (void *)fjp,
2005 fcp->c_motort[unit] = timeout(fdmotort, (void *)fjp,
2012 fcp->c_motort[unit] = timeout(fdmotort, (void *)fjp,
2027 fcp->c_motort[unit] = timeout(fdmotort, (void *)fjp,
2045 (int)fjp->fj_unit, input, old_mstate));
2049 (int)fjp->fj_unit, input, old_mstate);
2061 (int)fjp->fj_unit, input, old_mstate,
2073 struct fcu_obj *fjp = (struct fcu_obj *)arg;
2074 struct fdcntlr *fcp = fjp->fj_fdc;
2076 int unit = fjp->fj_unit & 3;
2081 mval = fdc_motorsm(fjp, FMI_TIMER, 0);
2097 (int)fjp->fj_unit));
2157 struct fcu_obj *fjp;
2168 fjp = fcp->c_unit[unit];
2175 csb->csb_cmd[2] * fjp->fj_chars->fdc_steps;
2197 if (fcp->c_curunit != unit || !(fjp->fj_flags & FUNIT_CHAROK)) {
2199 fjp->fj_flags |= FUNIT_CHAROK;
2200 if (fjp->fj_chars->fdc_transfer_rate == 417) {
2202 /* fjp->fj_chars->fdc_transfer_rate == 500; */
2203 fjp->fj_attr->fda_rotatespd = 360;
2205 if (fdcspecify(fcp, fjp->fj_chars->fdc_transfer_rate,
2206 fjp->fj_drive->fdd_steprate, 40))
2211 fjp->fj_chars->fdc_transfer_rate,
2212 fjp->fj_drive->fdd_steprate);
2215 if (fdcspdchange(fcp, fjp, fjp->fj_attr->fda_rotatespd)) {
2217 (void) fdc_motorsm(fjp, FMI_RSTARTCMD, 5);
2250 (void) fdc_motorsm(fjp, FMI_RSTARTCMD,
2251 fjp->fj_drive->fdd_motoron);
2443 struct fcu_obj *fjp;
2453 fjp = fcp->c_unit[unit];
2519 if ((fjp->fj_flags & (FUNIT_UNLABELED | FUNIT_LABELOK)) &&
2825 struct fcu_obj *fjp;
2834 fjp = fcp->c_unit[unit];
2940 (int)csb->csb_cmd[2] < (fjp->fj_chars->fdc_ncyl - 1))
3005 (void) fdc_motorsm(fjp, FMI_DELAYCMD,
3006 fjp->fj_drive->fdd_headsettle / 1000);