Lines Matching refs:hubp

45 void hubp2_set_vm_system_aperture_settings(struct hubp *hubp,  in hubp2_set_vm_system_aperture_settings()  argument
48 struct dcn20_hubp *hubp2 = TO_DCN20_HUBP(hubp); in hubp2_set_vm_system_aperture_settings()
80 struct hubp *hubp, in hubp2_program_deadline() argument
84 struct dcn20_hubp *hubp2 = TO_DCN20_HUBP(hubp); in hubp2_program_deadline()
170 void hubp2_vready_at_or_After_vsync(struct hubp *hubp, in hubp2_vready_at_or_After_vsync() argument
174 struct dcn20_hubp *hubp2 = TO_DCN20_HUBP(hubp); in hubp2_vready_at_or_After_vsync()
195 static void hubp2_program_requestor(struct hubp *hubp, in hubp2_program_requestor() argument
198 struct dcn20_hubp *hubp2 = TO_DCN20_HUBP(hubp); in hubp2_program_requestor()
228 struct hubp *hubp, in hubp2_setup() argument
238 hubp2_vready_at_or_After_vsync(hubp, pipe_dest); in hubp2_setup()
239 hubp2_program_requestor(hubp, rq_regs); in hubp2_setup()
240 hubp2_program_deadline(hubp, dlg_attr, ttu_attr); in hubp2_setup()
245 struct hubp *hubp, in hubp2_setup_interdependent() argument
249 struct dcn20_hubp *hubp2 = TO_DCN20_HUBP(hubp); in hubp2_setup_interdependent()
327 struct hubp *hubp, in hubp2_program_size() argument
332 struct dcn20_hubp *hubp2 = TO_DCN20_HUBP(hubp); in hubp2_program_size()
375 struct hubp *hubp, in hubp2_program_rotation() argument
379 struct dcn20_hubp *hubp2 = TO_DCN20_HUBP(hubp); in hubp2_program_rotation()
407 void hubp2_dcc_control(struct hubp *hubp, bool enable, in hubp2_dcc_control() argument
412 struct dcn20_hubp *hubp2 = TO_DCN20_HUBP(hubp); in hubp2_dcc_control()
422 struct hubp *hubp, in hubp2_program_pixel_format() argument
425 struct dcn20_hubp *hubp2 = TO_DCN20_HUBP(hubp); in hubp2_program_pixel_format()
535 struct hubp *hubp, in hubp2_program_surface_config() argument
544 struct dcn20_hubp *hubp2 = TO_DCN20_HUBP(hubp); in hubp2_program_surface_config()
546 hubp2_dcc_control(hubp, dcc->enable, dcc->independent_64b_blks); in hubp2_program_surface_config()
548 hubp2_program_size(hubp, format, plane_size, dcc); in hubp2_program_surface_config()
549 hubp2_program_rotation(hubp, rotation, horizontal_mirror); in hubp2_program_surface_config()
550 hubp2_program_pixel_format(hubp, format); in hubp2_program_surface_config()
590 struct hubp *hubp, in hubp2_cursor_set_attributes() argument
593 struct dcn20_hubp *hubp2 = TO_DCN20_HUBP(hubp); in hubp2_cursor_set_attributes()
598 hubp->curs_attr = *attr; in hubp2_cursor_set_attributes()
621 hubp->att.SURFACE_ADDR_HIGH = attr->address.high_part; in hubp2_cursor_set_attributes()
622 hubp->att.SURFACE_ADDR = attr->address.low_part; in hubp2_cursor_set_attributes()
623 hubp->att.size.bits.width = attr->width; in hubp2_cursor_set_attributes()
624 hubp->att.size.bits.height = attr->height; in hubp2_cursor_set_attributes()
625 hubp->att.cur_ctl.bits.mode = attr->color_format; in hubp2_cursor_set_attributes()
627 hubp->cur_rect.w = attr->width; in hubp2_cursor_set_attributes()
628 hubp->cur_rect.h = attr->height; in hubp2_cursor_set_attributes()
630 hubp->att.cur_ctl.bits.pitch = hw_pitch; in hubp2_cursor_set_attributes()
631 hubp->att.cur_ctl.bits.line_per_chunk = lpc; in hubp2_cursor_set_attributes()
632 hubp->att.cur_ctl.bits.cur_2x_magnify = attr->attribute_flags.bits.ENABLE_MAGNIFICATION; in hubp2_cursor_set_attributes()
633 hubp->att.settings.bits.dst_y_offset = 0; in hubp2_cursor_set_attributes()
634 hubp->att.settings.bits.chunk_hdl_adjust = 3; in hubp2_cursor_set_attributes()
638 struct hubp *hubp, in hubp2_dmdata_set_attributes() argument
641 struct dcn20_hubp *hubp2 = TO_DCN20_HUBP(hubp); in hubp2_dmdata_set_attributes()
678 hubp2_dmdata_load(hubp, attr->dmdata_size, attr->dmdata_sw_data); in hubp2_dmdata_set_attributes()
689 struct hubp *hubp, in hubp2_dmdata_load() argument
694 struct dcn20_hubp *hubp2 = TO_DCN20_HUBP(hubp); in hubp2_dmdata_load()
701 bool hubp2_dmdata_status_done(struct hubp *hubp) in hubp2_dmdata_status_done() argument
704 struct dcn20_hubp *hubp2 = TO_DCN20_HUBP(hubp); in hubp2_dmdata_status_done()
711 struct hubp *hubp, in hubp2_program_surface_flip_and_addr() argument
715 struct dcn20_hubp *hubp2 = TO_DCN20_HUBP(hubp); in hubp2_program_surface_flip_and_addr()
868 hubp->request_address = *address; in hubp2_program_surface_flip_and_addr()
874 struct hubp *hubp, in hubp2_enable_triplebuffer() argument
877 struct dcn20_hubp *hubp2 = TO_DCN20_HUBP(hubp); in hubp2_enable_triplebuffer()
890 struct hubp *hubp) in hubp2_is_triplebuffer_enabled() argument
892 struct dcn20_hubp *hubp2 = TO_DCN20_HUBP(hubp); in hubp2_is_triplebuffer_enabled()
900 void hubp2_set_flip_control_surface_gsl(struct hubp *hubp, bool enable) in hubp2_set_flip_control_surface_gsl() argument
902 struct dcn20_hubp *hubp2 = TO_DCN20_HUBP(hubp); in hubp2_set_flip_control_surface_gsl()
907 bool hubp2_is_flip_pending(struct hubp *hubp) in hubp2_is_flip_pending() argument
910 struct dcn20_hubp *hubp2 = TO_DCN20_HUBP(hubp); in hubp2_is_flip_pending()
913 if (hubp && hubp->power_gated) in hubp2_is_flip_pending()
928 if (earliest_inuse_address.grph.addr.quad_part != hubp->request_address.grph.addr.quad_part) in hubp2_is_flip_pending()
934 void hubp2_set_blank(struct hubp *hubp, bool blank) in hubp2_set_blank() argument
936 hubp2_set_blank_regs(hubp, blank); in hubp2_set_blank()
939 hubp->mpcc_id = 0xf; in hubp2_set_blank()
940 hubp->opp_id = OPP_ID_INVALID; in hubp2_set_blank()
944 void hubp2_set_blank_regs(struct hubp *hubp, bool blank) in hubp2_set_blank_regs() argument
946 struct dcn20_hubp *hubp2 = TO_DCN20_HUBP(hubp); in hubp2_set_blank_regs()
971 struct hubp *hubp, in hubp2_cursor_set_position() argument
975 struct dcn20_hubp *hubp2 = TO_DCN20_HUBP(hubp); in hubp2_cursor_set_position()
982 int cursor_height = (int)hubp->curs_attr.height; in hubp2_cursor_set_position()
983 int cursor_width = (int)hubp->curs_attr.width; in hubp2_cursor_set_position()
987 hubp->curs_pos = *pos; in hubp2_cursor_set_position()
996 if (hubp->curs_attr.address.quad_part == 0) in hubp2_cursor_set_position()
1045 hubp->funcs->set_cursor_attributes(hubp, &hubp->curs_attr); in hubp2_cursor_set_position()
1062 hubp->pos.cur_ctl.bits.cur_enable = cur_en; in hubp2_cursor_set_position()
1063 hubp->pos.position.bits.x_pos = pos->x; in hubp2_cursor_set_position()
1064 hubp->pos.position.bits.y_pos = pos->y; in hubp2_cursor_set_position()
1065 hubp->pos.hot_spot.bits.x_hot = pos->x_hotspot; in hubp2_cursor_set_position()
1066 hubp->pos.hot_spot.bits.y_hot = pos->y_hotspot; in hubp2_cursor_set_position()
1067 hubp->pos.dst_offset.bits.dst_x_offset = dst_x_offset; in hubp2_cursor_set_position()
1078 hubp->cur_rect.x = src_x_offset + param->viewport.x; in hubp2_cursor_set_position()
1079 hubp->cur_rect.y = src_y_offset + param->viewport.y; in hubp2_cursor_set_position()
1082 void hubp2_clk_cntl(struct hubp *hubp, bool enable) in hubp2_clk_cntl() argument
1084 struct dcn20_hubp *hubp2 = TO_DCN20_HUBP(hubp); in hubp2_clk_cntl()
1090 void hubp2_vtg_sel(struct hubp *hubp, uint32_t otg_inst) in hubp2_vtg_sel() argument
1092 struct dcn20_hubp *hubp2 = TO_DCN20_HUBP(hubp); in hubp2_vtg_sel()
1097 void hubp2_clear_underflow(struct hubp *hubp) in hubp2_clear_underflow() argument
1099 struct dcn20_hubp *hubp2 = TO_DCN20_HUBP(hubp); in hubp2_clear_underflow()
1104 void hubp2_read_state_common(struct hubp *hubp) in hubp2_read_state_common() argument
1106 struct dcn20_hubp *hubp2 = TO_DCN20_HUBP(hubp); in hubp2_read_state_common()
1296 void hubp2_read_state(struct hubp *hubp) in hubp2_read_state() argument
1298 struct dcn20_hubp *hubp2 = TO_DCN20_HUBP(hubp); in hubp2_read_state()
1302 hubp2_read_state_common(hubp); in hubp2_read_state()
1326 static void hubp2_validate_dml_output(struct hubp *hubp, in hubp2_validate_dml_output() argument
1332 struct dcn20_hubp *hubp2 = TO_DCN20_HUBP(hubp); in hubp2_validate_dml_output()