Lines Matching defs:fjp

355 	struct	fcu_obj *fjp;
400 fjp = fcp->c_unit[FDUNIT(unit)];
401 fjp->fj_unit = unit;
402 fjp->fj_dip = udip;
403 fjp->fj_ops = &fdc_iops;
404 fjp->fj_fdc = fcp;
405 fjp->fj_iblock = &fcp->c_iblock;
407 ddi_set_driver_private(udip, fjp);
417 fjp = ddi_get_driver_private(udip);
419 fjp->fj_dip = NULL;
490 struct fcu_obj *fjp;
521 for (unit = 0, fjp = (struct fcu_obj *)(fcp+1);
523 fcp->c_unit[unit] = fjp++;
914 fdc_abort(struct fcu_obj *fjp)
916 struct fdcntlr *fcp = fjp->fj_fdc;
917 int unit = fjp->fj_unit & 3;
944 fdc_dkinfo(struct fcu_obj *fjp, struct dk_cinfo *dcp)
946 struct fdcntlr *fcp = fjp->fj_fdc;
956 (void) strncpy((char *)&dcp->dki_dname, ddi_driver_name(fjp->fj_dip),
958 dcp->dki_slave = fjp->fj_unit & 3;
967 fdc_select(struct fcu_obj *fjp, int funit, int on)
969 struct fdcntlr *fcp = fjp->fj_fdc;
978 if (fcp->c_curunit != unit || !(fjp->fj_flags & FUNIT_CHAROK)) {
980 fjp->fj_flags |= FUNIT_CHAROK;
982 fjp->fj_chars->fdc_transfer_rate,
983 fjp->fj_drive->fdd_steprate, 40))
988 fjp->fj_chars->fdc_transfer_rate,
989 fjp->fj_drive->fdd_steprate);
999 (void) fdc_motorsm(fjp, FMI_STARTCMD,
1000 fjp->fj_drive->fdd_motoron);
1004 if (fdcspdchange(fcp, fjp, fjp->fj_attr->fda_rotatespd)) {
1006 (void) fdc_motorsm(fjp, FMI_RSTARTCMD, 5);
1025 (void) fdc_motorsm(fjp, FMI_IDLECMD,
1026 fjp->fj_drive->fdd_motoroff);
1041 fdgetchng(struct fcu_obj *fjp, int funit)
1043 if (fdcsense_drv(fjp->fj_fdc, funit & 3))
1045 return (fdcsense_chng(fjp->fj_fdc, funit & 3));
1050 fdresetchng(struct fcu_obj *fjp, int funit)
1052 struct fdcntlr *fcp = fjp->fj_fdc;
1062 return (fdrecalseek(fjp, funit, newcyl, 0));
1070 fdrecalseek(struct fcu_obj *fjp, int funit, int arg, int execflg)
1072 struct fdcntlr *fcp = fjp->fj_fdc;
1123 fdrw(struct fcu_obj *fjp, int funit, int rw, int cyl, int head,
1126 struct fdcntlr *fcp = fjp->fj_fdc;
1151 encode(sector_size, fjp->fj_chars->fdc_sec_size,
1153 csb->csb_cmd[6] = (uchar_t)max(fjp->fj_chars->fdc_secptrack, sector);
1154 csb->csb_cmd[7] = fjp->fj_attr->fda_gapl;
1243 fdtrkformat(struct fcu_obj *fjp, int funit, int cyl, int head, int filldata)
1245 struct fdcntlr *fcp = fjp->fj_fdc;
1265 encode(sector_size, fjp->fj_chars->fdc_sec_size,
1267 csb->csb_cmd[3] = numsctr = fjp->fj_chars->fdc_secptrack;
1268 csb->csb_cmd[4] = fjp->fj_attr->fda_gapf;
1271 csb->csb_npcyl = (uchar_t)(cyl * fjp->fj_chars->fdc_steps);
1312 interleave = fjp->fj_attr->fda_intrlv;
1367 fdrawioctl(struct fcu_obj *fjp, int funit, caddr_t arg)
1369 struct fdcntlr *fcp = fjp->fj_fdc;
1410 fjp->fj_chars->fdc_steps;
1623 struct fcu_obj *fjp = fcp->c_unit[unit];
1624 if (fjp->fj_flags & FUNIT_DRVATCH) {
1820 fdcspdchange(struct fdcntlr *fcp, struct fcu_obj *fjp, int rpm)
1829 if (((fcp->c_flags & FCFLG_DSOUT) == 0 && rpm <= fjp->fj_rotspd) ||
1830 ((fcp->c_flags & FCFLG_DSOUT) && (fjp->fj_flags & FUNIT_3DMODE) &&
1831 rpm > fjp->fj_rotspd)) {
1849 if (rpm > fjp->fj_rotspd) {
1852 (fjp->fj_flags ^ FUNIT_3DMODE);
1854 fjp->fj_flags |= FUNIT_3DMODE;
1858 retcode = fjp->fj_flags & FUNIT_3DMODE;
1859 fjp->fj_flags &= ~FUNIT_3DMODE;
1881 if (rpm > fjp->fj_rotspd) {
1885 (fjp->fj_flags ^ FUNIT_3DMODE);
1887 fjp->fj_flags |= FUNIT_3DMODE;
1892 retcode = fjp->fj_flags & FUNIT_3DMODE;
1893 fjp->fj_flags &= ~FUNIT_3DMODE;
1926 fdc_motorsm(struct fcu_obj *fjp, int input, int timeval)
1928 struct fdcntlr *fcp = fjp->fj_fdc;
1929 int unit = fjp->fj_unit & 3;
1947 fcp->c_motort[unit] = timeout(fdmotort, (void *)fjp,
1955 fjp->fj_flags &= ~FUNIT_3DMODE;
1983 fcp->c_motort[unit] = timeout(fdmotort, (void *)fjp,
2002 fcp->c_motort[unit] = timeout(fdmotort, (void *)fjp,
2009 fcp->c_motort[unit] = timeout(fdmotort, (void *)fjp,
2024 fcp->c_motort[unit] = timeout(fdmotort, (void *)fjp,
2042 (int)fjp->fj_unit, input, old_mstate));
2046 (int)fjp->fj_unit, input, old_mstate);
2058 (int)fjp->fj_unit, input, old_mstate,
2070 struct fcu_obj *fjp = (struct fcu_obj *)arg;
2071 struct fdcntlr *fcp = fjp->fj_fdc;
2073 int unit = fjp->fj_unit & 3;
2078 mval = fdc_motorsm(fjp, FMI_TIMER, 0);
2094 (int)fjp->fj_unit));
2154 struct fcu_obj *fjp;
2165 fjp = fcp->c_unit[unit];
2172 csb->csb_cmd[2] * fjp->fj_chars->fdc_steps;
2194 if (fcp->c_curunit != unit || !(fjp->fj_flags & FUNIT_CHAROK)) {
2196 fjp->fj_flags |= FUNIT_CHAROK;
2197 if (fjp->fj_chars->fdc_transfer_rate == 417) {
2199 /* fjp->fj_chars->fdc_transfer_rate == 500; */
2200 fjp->fj_attr->fda_rotatespd = 360;
2202 if (fdcspecify(fcp, fjp->fj_chars->fdc_transfer_rate,
2203 fjp->fj_drive->fdd_steprate, 40))
2208 fjp->fj_chars->fdc_transfer_rate,
2209 fjp->fj_drive->fdd_steprate);
2212 if (fdcspdchange(fcp, fjp, fjp->fj_attr->fda_rotatespd)) {
2214 (void) fdc_motorsm(fjp, FMI_RSTARTCMD, 5);
2247 (void) fdc_motorsm(fjp, FMI_RSTARTCMD,
2248 fjp->fj_drive->fdd_motoron);
2440 struct fcu_obj *fjp;
2450 fjp = fcp->c_unit[unit];
2516 if ((fjp->fj_flags & (FUNIT_UNLABELED | FUNIT_LABELOK)) &&
2822 struct fcu_obj *fjp;
2831 fjp = fcp->c_unit[unit];
2937 (int)csb->csb_cmd[2] < (fjp->fj_chars->fdc_ncyl - 1))
3002 (void) fdc_motorsm(fjp, FMI_DELAYCMD,
3003 fjp->fj_drive->fdd_headsettle / 1000);