Lines Matching refs:offset
51 uint32_t offset, len; in elog_putchar() local
53 offset = mmio_read_32(elog->base + BCM_ELOG_OFF_OFFSET); in elog_putchar()
55 mmio_write_8(elog->base + offset, c); in elog_putchar()
56 offset++; in elog_putchar()
59 if (offset >= elog->max_size) in elog_putchar()
60 offset = BCM_ELOG_HEADER_LEN; in elog_putchar()
66 mmio_write_32(elog->base + BCM_ELOG_OFF_OFFSET, offset); in elog_putchar()
148 uint32_t offset, len; in bcm_elog_copy_log() local
161 offset = mmio_read_32(elog->base + BCM_ELOG_OFF_OFFSET); in bcm_elog_copy_log()
162 if (offset >= max_size) { in bcm_elog_copy_log()
163 offset = BCM_ELOG_HEADER_LEN; in bcm_elog_copy_log()
164 mmio_write_32(elog->base + BCM_ELOG_OFF_OFFSET, offset); in bcm_elog_copy_log()