Home | History | Annotate | Download | only in dev

Lines Matching defs:xcs

241 	struct xzs_chanstate *xcs;
259 xcs = &zsc->xzsc_xcs_store[channel];
260 cs = &xcs->xzs_cs;
291 xcs->cs_clocks[0].clk = PCLK;
292 xcs->cs_clocks[0].flags = ZSC_RTXBRG | ZSC_RTXDIV;
293 xcs->cs_clocks[1].flags =
295 xcs->cs_clocks[2].flags = ZSC_TRXDIV | ZSC_VARIABLE;
296 xcs->cs_clock_count = 3;
299 xcs->cs_clocks[1].clk = mac68k_machine.modem_dcd_clk;
300 xcs->cs_clocks[2].clk = mac68k_machine.modem_cts_clk;
303 xcs->cs_clocks[1].flags = ZSC_VARIABLE;
310 xcs->cs_clocks[1].clk = mac68k_machine.print_dcd_clk;
311 xcs->cs_clocks[2].clk = mac68k_machine.print_cts_clk;
313 if (xcs->cs_clocks[1].clk)
315 if (xcs->cs_clocks[2].clk)
320 xcs->cs_clocks[1].clk, xcs->cs_clocks[2].clk);
323 xcs->cs_csource = 0;
324 xcs->cs_psource = 0;
325 xcs->cs_cclk_flag = 0; /* Nothing fancy by default */
326 xcs->cs_pclk_flag = 0;
355 xcs->cs_chip = chip;
358 xcs->cs_hwflags = zsc_args.hwflags;
428 struct xzs_chanstate *xcs = (void *)cs;
437 via_set_modem((xcs->cs_pclk_flag & ZSC_EXTERN) ? 1 : 0);
503 struct xzs_chanstate *xcs = (void *) cs;
520 for (i=0; i < xcs->cs_clock_count; i++) {
521 if (xcs->cs_clocks[i].clk <= 0)
523 if (xcs->cs_clocks[i].flags & ZSC_BRG) {
525 tc1 = BPS_TO_TCONST(xcs->cs_clocks[i].clk >> 4, bps);
527 rate1 = TCONST_TO_BPS(xcs->cs_clocks[i].clk >> 4, tc1);
532 sf = xcs->cs_clocks[i].flags & ~ZSC_DIV;
538 if (xcs->cs_clocks[i].flags & ZSC_DIV) {
544 int b0 = xcs->cs_clocks[i].clk, e0 = abs(b0-bps);
571 sf = xcs->cs_clocks[i].flags & ~ZSC_BRG;
591 cs->cs_brg_clk = xcs->cs_clocks[i].clk >> 4;
599 xcs->cs_psource = src;
600 xcs->cs_pclk_flag = sf;
642 struct xzs_chanstate *xcs = (void*)cs;
660 if (xcs->cs_hwflags & ZS_HWFLAG_NO_DCD) {
673 if ((xcs->cs_hwflags & ZS_HWFLAG_NO_CTS) && (cflag & (CRTSCTS | CDTRCTS)))
816 struct xzs_chanstate xcs;
822 memset(&xcs, 0, sizeof(xcs));
823 cs = &xcs.xzs_cs;