Lines Matching defs:ec_sc
74 uint16_t ec_sc; /* EC status/command */
120 sc = inb(ec.ec_sc);
132 outb(ec.ec_sc, EC_RD); /* output a read command */
133 if (ec_wait_ibf_clear(ec.ec_sc) < 0) {
141 if (ec_wait_ibf_clear(ec.ec_sc) < 0) {
147 if (ec_wait_obf_set(ec.ec_sc) < 0) {
169 sc = inb(ec.ec_sc);
181 outb(ec.ec_sc, EC_WR); /* output a write command */
182 if (ec_wait_ibf_clear(ec.ec_sc) < 0) {
190 if (ec_wait_ibf_clear(ec.ec_sc) < 0) {
198 if (ec_wait_ibf_clear(ec.ec_sc) < 0) {
219 outb(ec.ec_sc, EC_QR); /* output a query command */
220 if (ec_wait_ibf_clear(ec.ec_sc) < 0) {
227 if (ec_wait_obf_set(ec.ec_sc) < 0) {
286 if (!(inb(ec.ec_sc) & EC_SCI))
368 * Find ec_base and ec_sc addresses
388 * Assuming first port is ec_base and second is ec_sc
391 ec.ec_sc = (io_port->min_base_hi << 8) |
409 if (inb(ec.ec_sc) & EC_OBF) {