Lines Matching refs:bar

1290 	struct puc_bar *bar;
1345 bar = puc_get_bar(sc, cfg->rid + i * cfg->d_rid);
1346 if (bar == NULL) {
1362 bus_write_1(bar->b_res, REG_SPR, REG_ACR);
1363 bus_write_1(bar->b_res, REG_ICR, acr);
1463 struct puc_bar *bar;
1472 bar = puc_get_bar(sc, cfg->rid);
1473 if (bar == NULL)
1475 bus_write_1(bar->b_res, REG_LCR, LCR_DLAB);
1476 bus_write_1(bar->b_res, REG_SPR, 0);
1477 v0 = bus_read_1(bar->b_res, REG_SPR);
1478 bus_write_1(bar->b_res, REG_SPR, 0x80 + -cfg->clock);
1479 v1 = bus_read_1(bar->b_res, REG_SPR);
1480 bus_write_1(bar->b_res, REG_LCR, 0);
1556 struct puc_bar *bar;
1562 bar = puc_get_bar(sc, cfg->rid);
1563 if (bar == NULL)
1567 bus_write_1(bar->b_res, 0x250, 0x89);
1568 bus_write_1(bar->b_res, 0x3f0, 0x87);
1569 bus_write_1(bar->b_res, 0x3f0, 0x87);
1573 bus_write_1(bar->b_res, efir, 0x09);
1574 v = bus_read_1(bar->b_res, efir + 1);
1577 bus_write_1(bar->b_res, efir, 0x16);
1578 v = bus_read_1(bar->b_res, efir + 1);
1579 bus_write_1(bar->b_res, efir, 0x16);
1580 bus_write_1(bar->b_res, efir + 1, v | 0x04);
1581 bus_write_1(bar->b_res, efir, 0x16);
1582 bus_write_1(bar->b_res, efir + 1, v & ~0x04);
1584 bus_write_1(bar->b_res, efir, 0x23);
1585 bus_write_1(bar->b_res, efir + 1, (ofs + 0x78) >> 2);
1586 bus_write_1(bar->b_res, efir, 0x24);
1587 bus_write_1(bar->b_res, efir + 1, (ofs + 0xf8) >> 2);
1588 bus_write_1(bar->b_res, efir, 0x25);
1589 bus_write_1(bar->b_res, efir + 1, (ofs + 0xe8) >> 2);
1590 bus_write_1(bar->b_res, efir, 0x17);
1591 bus_write_1(bar->b_res, efir + 1, 0x03);
1592 bus_write_1(bar->b_res, efir, 0x28);
1593 bus_write_1(bar->b_res, efir + 1, 0x43);
1596 bus_write_1(bar->b_res, 0x250, 0xaa);
1597 bus_write_1(bar->b_res, 0x3f0, 0xaa);
1761 struct puc_bar *bar;
1770 bar = puc_get_bar(sc, cfg->rid);
1771 if (bar == NULL)
1774 value = bus_read_1(bar->b_res, 0x1000 + (idx << 9) +
1776 bus_write_1(bar->b_res, 0x1000 + (idx << 9) + 0x92,
1805 bar = puc_get_bar(sc, cfg->rid);
1806 if (bar == NULL)
1809 value = bus_read_1(bar->b_res, 0x04);