Lines Matching full:tmc
362 unsigned int tmc, br = 10, brv = 1024; in sca_set_port() local
370 /* Baud Rate = CLOCK_BASE / TMC / 2^BR */ in sca_set_port()
371 tmc = CLOCK_BASE / brv / port->settings.clock_rate; in sca_set_port()
372 } while (br > 1 && tmc <= 128); in sca_set_port()
374 if (tmc < 1) { in sca_set_port()
375 tmc = 1; in sca_set_port()
376 br = 0; /* For baud=CLOCK_BASE we use tmc=1 br=0 */ in sca_set_port()
378 } else if (tmc > 255) { in sca_set_port()
379 tmc = 256; /* tmc=0 means 256 - low baud rates */ in sca_set_port()
382 port->settings.clock_rate = CLOCK_BASE / brv / tmc; in sca_set_port()
385 tmc = 256; /* 8bit = 0 */ in sca_set_port()
391 port->tmc = tmc; in sca_set_port()
394 sca_out(port->tmc, msci + TMCR, card); in sca_set_port()
395 sca_out(port->tmc, msci + TMCT, card); in sca_set_port()
472 sca_out(port->tmc, msci + TMCR, card); in sca_open()
473 sca_out(port->tmc, msci + TMCT, card); in sca_open()