Lines Matching refs:emu
45 emu_get_draw_state_reg(struct emu *emu, unsigned n) in emu_get_draw_state_reg() argument
48 return emu->control_regs.val[n]; in emu_get_draw_state_reg()
52 emu_set_draw_state_reg(struct emu *emu, unsigned n, uint32_t val) in emu_set_draw_state_reg() argument
54 struct emu_draw_state *ds = &emu->draw_state; in emu_set_draw_state_reg()
55 unsigned cur_idx = emu_get_reg32(emu, &DRAW_STATE_SEL); in emu_set_draw_state_reg()
63 unsigned active_mask = emu_get_reg32(emu, &DRAW_STATE_ACTIVE_BITMASK); in emu_set_draw_state_reg()
66 emu_set_reg32(emu, &DRAW_STATE_ACTIVE_BITMASK, active_mask); in emu_set_draw_state_reg()
67 emu_set_reg32(emu, &DRAW_STATE_SEL, cur_idx); in emu_set_draw_state_reg()
74 emu_set_reg32(emu, &DRAW_STATE_HDR, ds->state[val].hdr); in emu_set_draw_state_reg()
75 emu_set_reg64(emu, &DRAW_STATE_BASE, ds->state[val].base); in emu_set_draw_state_reg()
83 ds->state[prev_idx].sds_base = emu_get_reg64(emu, &SDS_BASE); in emu_set_draw_state_reg()
84 ds->state[prev_idx].sds_dwords = emu_get_reg32(emu, &SDS_DWORDS); in emu_set_draw_state_reg()
86 emu_set_reg64(emu, &SDS_BASE, ds->state[val].sds_base); in emu_set_draw_state_reg()
87 emu_set_reg32(emu, &SDS_DWORDS, ds->state[val].sds_dwords); in emu_set_draw_state_reg()