Lines Matching refs:tmc
406 unsigned int tmc, br = 10, brv = 1024; in sca_set_port() local
415 tmc = CLOCK_BASE / brv / port->settings.clock_rate; in sca_set_port()
416 } while (br > 1 && tmc <= 128); in sca_set_port()
418 if (tmc < 1) { in sca_set_port()
419 tmc = 1; in sca_set_port()
422 } else if (tmc > 255) { in sca_set_port()
423 tmc = 256; /* tmc=0 means 256 - low baud rates */ in sca_set_port()
426 port->settings.clock_rate = CLOCK_BASE / brv / tmc; in sca_set_port()
429 tmc = 256; /* 8bit = 0 */ in sca_set_port()
435 port->tmc = tmc; in sca_set_port()
438 sca_out(port->tmc, msci + TMC, card); in sca_set_port()
524 sca_out(port->tmc, msci + TMC, card); /* Restore registers */ in sca_open()