Lines Matching defs:reg
39 uint32_t reg, tries = MAX_TRIES;
42 reg = mmio_read_32(SUNXI_R_RSB_BASE + offset);
43 while ((reg & mask) && --tries); /* transaction in progress */
44 if (reg & mask) {
54 uint32_t reg;
60 reg = mmio_read_32(SUNXI_R_RSB_BASE + RSB_STAT);
61 if (reg == 0x01)
64 ERROR("%s: 0x%x\n", desc, reg);
65 return -reg;
113 uint32_t reg;
118 reg = source_freq / bus_freq;
119 if (reg < 2)
122 reg = reg / 2 - 1;
123 reg |= (1U << 8); /* one cycle of CD output delay */
125 mmio_write_32(SUNXI_R_RSB_BASE + RSB_CCR, reg);