Lines Matching refs:pps
38 remount_form(register PSTATUS *pps, FSTATUS *pfs, short trayNum) in remount_form() argument
41 if (pps->forms && (pps->forms[trayNum].form == pfs)) { in remount_form()
42 pps->forms[trayNum].isAvailable = (pfs ? 1 : 0); in remount_form()
45 } else if ((!pps->forms) && (!pfs)) { in remount_form()
52 if (pps->forms && pps->forms[trayNum].form) { in remount_form()
53 register FSTATUS *Opfs = pps->forms[trayNum].form; in remount_form()
55 pps->forms[trayNum].form = 0; in remount_form()
56 pps->forms[trayNum].isAvailable = 1; in remount_form()
68 (void)queue_repel (pps, 0, qchk_form); in remount_form()
83 if (pps && !pps->forms) { in remount_form()
84 pps->forms = (PFSTATUS *)calloc((trayNum +1), in remount_form()
86 pps->numForms = trayNum + 1; in remount_form()
89 if (pps && pps->forms && (pps->numForms > trayNum)) { in remount_form()
90 pps->forms[trayNum].form = pfs; in remount_form()
91 pps->forms[trayNum].isAvailable = 1; in remount_form()
108 queue_attract (pps, qchk_form, 0); in remount_form()
123 queue_attract (pps, qchk_form, 1); in remount_form()
136 remount_pwheel(register PSTATUS *pps, char *pwheel_name) in remount_pwheel() argument
140 if (SAME(pps->pwheel_name, pwheel_name)) in remount_pwheel()
146 if (pps->pwheel_name) { in remount_pwheel()
147 register PWSTATUS *Oppws = pps->pwheel; in remount_pwheel()
149 pps->pwheel = 0; in remount_pwheel()
161 pwheel_in_question = pps->pwheel_name; in remount_pwheel()
162 (void)queue_repel (pps, 0, qchk_pwheel); in remount_pwheel()
164 unload_str (&pps->pwheel_name); in remount_pwheel()
177 load_str (&pps->pwheel_name, pwheel_name); in remount_pwheel()
179 pps->pwheel = ppws; in remount_pwheel()
192 queue_attract (pps, qchk_pwheel, 0); in remount_pwheel()
209 queue_attract (pps, qchk_pwheel, 1); in remount_pwheel()
220 queue_attract (pps, qchk_pwheel, 1); in remount_pwheel()
240 register PSTATUS *pps; in s_max_trays() local
248 if (!*printer || !(pps = search_pstatus(printer))) in s_max_trays()
256 else if (pps->request) in s_max_trays()
259 else if (pps->forms) { in s_max_trays()
260 if (!(ppfs = Realloc(pps->forms,numTrays * sizeof(PFSTATUS)))) in s_max_trays()
265 for (i = pps->numForms; i < numTrays; i++) { in s_max_trays()
269 pps->forms = ppfs; in s_max_trays()
270 pps->numForms = numTrays; in s_max_trays()
276 pps->forms = ppfs; in s_max_trays()
277 pps->numForms = numTrays; in s_max_trays()
293 register PSTATUS *pps; in s_mount() local
304 else if (!*printer || !(pps = search_pstatus(printer))) in s_mount()
312 else if (pps->request) in s_mount()
320 remount_form (pps, pfs,1); in s_mount()
322 remount_pwheel(pps, pwheel_name); in s_mount()
340 register PSTATUS *pps; in s_mount_tray() local
353 else if (!*printer || !(pps = search_pstatus(printer))) in s_mount_tray()
361 else if ((trayNum <=0) || (trayNum > pps->numForms)) in s_mount_tray()
365 else if (pps->request) in s_mount_tray()
373 remount_form(pps, pfs,trayNum); in s_mount_tray()
375 remount_pwheel(pps, pwheel_name); in s_mount_tray()
394 register PSTATUS *pps; in s_unmount() local
407 else if (!*printer || !(pps = search_pstatus(printer))) in s_unmount()
415 else if (pps->request) in s_unmount()
423 remount_form (pps, (FSTATUS *)0,1); in s_unmount()
425 remount_pwheel (pps, (char *)0); in s_unmount()
447 register PSTATUS *pps; in s_unmount_tray() local
459 else if (!*printer || !(pps = search_pstatus(printer))) in s_unmount_tray()
462 else if ((trayNum <=0) || (trayNum > pps->numForms)) in s_unmount_tray()
465 else if (pps->request) in s_unmount_tray()
471 remount_form (pps, (FSTATUS *)0,trayNum); in s_unmount_tray()
473 remount_pwheel (pps, (char *)0); in s_unmount_tray()
717 register PSTATUS *pps; in _unload_pwheel() local