Lines Matching defs:bar

1278 	struct puc_bar *bar;
1287 bar = puc_get_bar(sc, cfg->rid);
1288 if (bar == NULL)
1291 bus_write_1(bar->b_res, 3, 0x80);
1293 bus_write_1(bar->b_res, 7, 0);
1295 v0 = bus_read_1(bar->b_res, 7);
1297 bus_write_1(bar->b_res, 7, 0x80 + -cfg->clock);
1299 v1 = bus_read_1(bar->b_res, 7);
1301 bus_write_1(bar->b_res, 3, 0);
1378 struct puc_bar *bar;
1384 bar = puc_get_bar(sc, cfg->rid);
1385 if (bar == NULL)
1389 bus_write_1(bar->b_res, 0x250, 0x89);
1390 bus_write_1(bar->b_res, 0x3f0, 0x87);
1391 bus_write_1(bar->b_res, 0x3f0, 0x87);
1395 bus_write_1(bar->b_res, efir, 0x09);
1396 v = bus_read_1(bar->b_res, efir + 1);
1399 bus_write_1(bar->b_res, efir, 0x16);
1400 v = bus_read_1(bar->b_res, efir + 1);
1401 bus_write_1(bar->b_res, efir, 0x16);
1402 bus_write_1(bar->b_res, efir + 1, v | 0x04);
1403 bus_write_1(bar->b_res, efir, 0x16);
1404 bus_write_1(bar->b_res, efir + 1, v & ~0x04);
1406 bus_write_1(bar->b_res, efir, 0x23);
1407 bus_write_1(bar->b_res, efir + 1, (ofs + 0x78) >> 2);
1408 bus_write_1(bar->b_res, efir, 0x24);
1409 bus_write_1(bar->b_res, efir + 1, (ofs + 0xf8) >> 2);
1410 bus_write_1(bar->b_res, efir, 0x25);
1411 bus_write_1(bar->b_res, efir + 1, (ofs + 0xe8) >> 2);
1412 bus_write_1(bar->b_res, efir, 0x17);
1413 bus_write_1(bar->b_res, efir + 1, 0x03);
1414 bus_write_1(bar->b_res, efir, 0x28);
1415 bus_write_1(bar->b_res, efir + 1, 0x43);
1418 bus_write_1(bar->b_res, 0x250, 0xaa);
1419 bus_write_1(bar->b_res, 0x3f0, 0xaa);
1583 struct puc_bar *bar;
1592 bar = puc_get_bar(sc, cfg->rid);
1593 if (bar == NULL)
1596 value = bus_read_1(bar->b_res, 0x1000 + (idx << 9) +
1598 bus_write_1(bar->b_res, 0x1000 + (idx << 9) + 0x92,
1627 bar = puc_get_bar(sc, cfg->rid);
1628 if (bar == NULL)
1631 value = bus_read_1(bar->b_res, 0x04);