/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/ |
H A D | nv04.c | 415 u32 htotal = nvkm_rdvgac(device, 0, 0x06); local 416 htotal |= (nvkm_rdvgac(device, 0, 0x07) & 0x01) << 8; 417 htotal |= (nvkm_rdvgac(device, 0, 0x07) & 0x20) << 4; 418 htotal |= (nvkm_rdvgac(device, 0, 0x25) & 0x01) << 10; 419 htotal |= (nvkm_rdvgac(device, 0, 0x41) & 0x01) << 11; 420 if (!htotal) {
|
/linux-master/drivers/gpu/drm/ |
H A D | drm_modes.c | 334 unsigned int htotal, vtotal; local 368 htotal = result; 370 drm_dbg_kms(dev, "Total Horizontal Number of Pixels: %u\n", htotal); 381 hblk = htotal - hactive; 451 if (htotal != (hactive + hfp + hslen + hbp)) 458 mode->htotal = mode->hsync_end + hbp; 757 drm_mode->htotal = drm_mode->hdisplay + hblank; 760 (drm_mode->htotal * CVT_HSYNC_PERCENTAGE) / 100; 791 drm_mode->htotal = drm_mode->hdisplay + CVT_RB_H_BLANK; 800 tmp = drm_mode->htotal; /* perfor [all...] |
/linux-master/drivers/gpu/drm/amd/display/dc/dml/calcs/ |
H A D | dcn_calc_auto.c | 176 v->read_bandwidth[k] = v->swath_width_ysingle_dpp[k] * (dcn_bw_ceil2(v->byte_per_pixel_in_dety[k], 1.0) * v->v_ratio[k] +dcn_bw_ceil2(v->byte_per_pixel_in_detc[k], 2.0) / 2.0 * v->v_ratio[k] / 2) / (v->htotal[k] / v->pixel_clock[k]); 194 v->write_bandwidth[k] = v->scaler_rec_out_width[k] / (v->htotal[k] / v->pixel_clock[k]) * 4.0; 197 v->write_bandwidth[k] = v->scaler_rec_out_width[k] / (v->htotal[k] / v->pixel_clock[k]) * 1.5; 242 if (v->output[k] == dcn_bw_writeback && v->output_format[k] == dcn_bw_444 && v->scaler_rec_out_width[k] / (v->htotal[k] / v->pixel_clock[k]) * 4.0 > (v->writeback_luma_buffer_size + v->writeback_chroma_buffer_size) * 1024.0 / v->write_back_latency) { 245 else if (v->output[k] == dcn_bw_writeback && v->scaler_rec_out_width[k] / (v->htotal[k] / v->pixel_clock[k]) >dcn_bw_min2(v->writeback_luma_buffer_size, 2.0 * v->writeback_chroma_buffer_size) * 1024.0 / v->write_back_latency) { 557 v->urgent_latency_support_us_per_state[i][j][k] = v->effective_detlb_lines_luma * (v->htotal[k] / v->pixel_clock[k]) / v->v_ratio[k] - v->effective_detlb_lines_luma * v->swath_width_yper_state[i][j][k] *dcn_bw_ceil2(v->byte_per_pixel_in_dety[k], 1.0) / (v->return_bw_per_state[i] / v->no_of_dpp[i][j][k]); 562 v->urgent_latency_support_us_per_state[i][j][k] = dcn_bw_min2(v->effective_detlb_lines_luma * (v->htotal[k] / v->pixel_clock[k]) / v->v_ratio[k] - v->effective_detlb_lines_luma * v->swath_width_yper_state[i][j][k] * dcn_bw_ceil2(v->byte_per_pixel_in_dety[k], 1.0) / (v->return_bw_per_state[i] / v->no_of_dpp[i][j][k]), v->effective_detlb_lines_chroma * (v->htotal[k] / v->pixel_clock[k]) / (v->v_ratio[k] / 2.0) - v->effective_detlb_lines_chroma * v->swath_width_yper_state[i][j][k] / 2.0 * dcn_bw_ceil2(v->byte_per_pixel_in_detc[k], 2.0) / (v->return_bw_per_state[i] / v->no_of_dpp[i][j][k])); 785 v->v_update_offset[k][j] = dcn_bw_ceil2(v->htotal[k] / 4.0, 1.0); 802 v->line_times_for_prefetch[k] = v->maximum_vstartup - v->urgent_latency / (v->htotal[ [all...] |
/linux-master/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
H A D | nv04.c | 61 state->htotal = nvkm_rd32(device, 0x680824 + hoff) & 0x0000ffff; 62 state->hblanke = state->htotal - 1;
|
/linux-master/drivers/gpu/drm/msm/hdmi/ |
H A D | hdmi_bridge.c | 191 hstart = mode->htotal - mode->hsync_start; 192 hend = mode->htotal - mode->hsync_start + mode->hdisplay; 197 DBG("htotal=%d, vtotal=%d, hstart=%d, hend=%d, vstart=%d, vend=%d", 198 mode->htotal, mode->vtotal, hstart, hend, vstart, vend); 201 HDMI_TOTAL_H_TOTAL(mode->htotal - 1) |
|
/linux-master/include/drm/ |
H A D | drm_modes.h | 137 .htotal = (ht), .hskew = (hsk), .vdisplay = (vd), \ 152 .htotal = (hd), .vdisplay = (vd), .vsync_start = (vd), \ 202 * @htotal: horizontal total size 262 u16 htotal; member in struct:drm_display_mode 433 (m)->hdisplay, (m)->hsync_start, (m)->hsync_end, (m)->htotal, \
|
/linux-master/drivers/video/fbdev/sis/ |
H A D | initextlfb.c | 27 int *htotal, int *vtotal, unsigned char rateindex); 164 sisfb_gettotalfrommode(struct SiS_Private *SiS_Pr, unsigned char modeno, int *htotal, argument 201 *htotal = (((cr_data & 0xff) | ((unsigned short) (sr_data & 0x03) << 8)) + 5) * 8;
|
/linux-master/drivers/video/fbdev/geode/ |
H A D | display_gx1.c | 81 int hactive, hblankstart, hsyncstart, hsyncend, hblankend, htotal; local 152 htotal = hblankend; 161 val = (hactive - 1) | ((htotal - 1) << 16);
|
/linux-master/drivers/gpu/drm/bridge/adv7511/ |
H A D | adv7533.c | 36 hbp = mode->htotal - mode->hsync_end; 46 regmap_write(adv->regmap_cec, 0x28, mode->htotal >> 4); 47 regmap_write(adv->regmap_cec, 0x29, (mode->htotal << 4) & 0xff);
|
/linux-master/drivers/gpu/drm/amd/display/dc/dml/dcn30/ |
H A D | display_rq_dlg_calc_30.c | 915 unsigned int htotal = dst->htotal; local 1045 disp_dlg_regs->refcyc_per_htotal = (unsigned int)(ref_freq_to_pix_freq * (double)htotal 1053 min_dst_y_ttu_vblank = min_ttu_vblank * pclk_freq_in_mhz / (double)htotal; 1102 line_time_in_us = (htotal / pclk_freq_in_mhz); 1137 - (double)(vready_offset + vupdate_width + vupdate_offset) / htotal 1144 - (double)(vready_offset + vupdate_width + vupdate_offset) / htotal 1225 dml_print("DML_DLG: %s: htotal = %d\n", __func__, htotal); 1267 if (htotal < [all...] |
/linux-master/drivers/gpu/drm/panel/ |
H A D | panel-ilitek-ili9322.c | 541 .htotal = 320 + 359 + 1 + 241, 554 .htotal = 360 + 35 + 1 + 241, 568 .htotal = 320 + 38 + 1 + 50, 582 .htotal = 640 + 252 + 1 + 28, 595 .htotal = 720 + 252 + 1 + 24, 609 .htotal = 640 + 3 + 1 + 272, 623 .htotal = 720 + 3 + 1 + 272,
|
H A D | panel-novatek-nt35560.c | 65 .htotal = 480 + 15 + 0 + 15, 84 .htotal = 480 + 154 + 16 + 32, 107 .htotal = 480 + 15 + 0 + 15, 126 .htotal = 480 + 154 + 16 + 32,
|
/linux-master/drivers/gpu/drm/tiny/ |
H A D | cirrus.c | 202 int hsyncstart, hsyncend, htotal, hdispend; local 206 htotal = mode->htotal / 8; 217 htotal -= 5; 223 wreg_crt(cirrus, VGA_CRTC_H_TOTAL, htotal); 255 if ((htotal + 5) & 0x40) 257 if ((htotal + 5) & 0x80)
|
/linux-master/drivers/gpu/drm/amd/display/dc/dml/dcn31/ |
H A D | display_rq_dlg_calc_31.c | 878 unsigned int htotal = dst->htotal; local 982 disp_dlg_regs->refcyc_per_htotal = (unsigned int) (ref_freq_to_pix_freq * (double) htotal * dml_pow(2, 8)); 1035 if (vstartup_start / 2.0 - (double) (vready_offset + vupdate_width + vupdate_offset) / htotal <= vblank_end / 2.0) 1040 if (vstartup_start - (double) (vready_offset + vupdate_width + vupdate_offset) / htotal <= vblank_end) 1098 dml_print("DML_DLG: %s: htotal = %d\n", __func__, htotal); 1112 if (htotal <= 75) { 1435 disp_dlg_regs->refcyc_per_pte_group_vblank_l = (unsigned int) (dst_y_per_row_vblank * (double) htotal * ref_freq_to_pix_freq / (double) dpte_groups_per_row_ub_l); 1439 disp_dlg_regs->refcyc_per_pte_group_vblank_c = (unsigned int) (dst_y_per_row_vblank * (double) htotal * ref_freq_to_pix_fre [all...] |
/linux-master/drivers/gpu/drm/amd/display/dc/dml/dcn314/ |
H A D | display_rq_dlg_calc_314.c | 963 unsigned int htotal = dst->htotal; local 1067 disp_dlg_regs->refcyc_per_htotal = (unsigned int) (ref_freq_to_pix_freq * (double) htotal * dml_pow(2, 8)); 1122 if (vstartup_start / 2.0 - (double) (vready_offset + vupdate_width + vupdate_offset) / htotal <= vblank_end / 2.0) 1127 if (vstartup_start - (double) (vready_offset + vupdate_width + vupdate_offset) / htotal <= vblank_end) 1186 dml_print("DML_DLG: %s: htotal = %d\n", __func__, htotal); 1200 if (htotal <= 75) { 1523 disp_dlg_regs->refcyc_per_pte_group_vblank_l = (unsigned int) (dst_y_per_row_vblank * (double) htotal * ref_freq_to_pix_freq / (double) dpte_groups_per_row_ub_l); 1527 disp_dlg_regs->refcyc_per_pte_group_vblank_c = (unsigned int) (dst_y_per_row_vblank * (double) htotal * ref_freq_to_pix_fre [all...] |
/linux-master/drivers/gpu/drm/amd/display/dc/dml/ |
H A D | dml1_display_rq_dlg_calc.c | 1010 unsigned int htotal = e2e_pipe_param->pipe.dest.htotal; local 1155 disp_dlg_regs->refcyc_per_htotal = (unsigned int) (ref_freq_to_pix_freq * (double) htotal 1172 min_dst_y_ttu_vblank = min_ttu_vblank * pclk_freq_in_mhz / (double) htotal; 1224 line_time_in_us = (htotal / pclk_freq_in_mhz); 1290 if (dst_x_after_scaler >= htotal) { 1291 dst_x_after_scaler = dst_x_after_scaler - htotal; 1295 DTRACE("DLG: %s: htotal = %d", __func__, htotal); 1313 line_o = (double) dst_y_after_scaler + dst_x_after_scaler / (double) htotal; [all...] |
/linux-master/drivers/video/fbdev/matrox/ |
H A D | matroxfb_maven.c | 226 unsigned int htotal, unsigned int vtotal, 239 scrlen = htotal * (vtotal - 1); 240 fwant = htotal * vtotal; 244 fwant, fxtal, htotal, vtotal, fmax); 277 if (ln > htotal) 299 unsigned int htotal, unsigned int vtotal, 305 fvco = matroxfb_PLL_mavenclock(&maven1000_pll, ctl, htotal, vtotal, in, feed, &p, htotal2); 748 m->htotal = h - 2; 800 /* htotal - 2 */ 801 m->regs[0xA0] = m->htotal; 224 matroxfb_PLL_mavenclock(const struct matrox_pll_features2* pll, const struct matrox_pll_ctl* ctl, unsigned int htotal, unsigned int vtotal, unsigned int* in, unsigned int* feed, unsigned int* post, unsigned int* h2) argument 298 matroxfb_mavenclock(const struct matrox_pll_ctl *ctl, unsigned int htotal, unsigned int vtotal, unsigned int* in, unsigned int* feed, unsigned int* post, unsigned int* htotal2) argument [all...] |
/linux-master/drivers/gpu/drm/sti/ |
H A D | sti_vtg.c | 193 clocksperline = mode->htotal; 246 writel(mode->htotal, vtg->regs + VTG_CLKLN); 337 return mode.htotal - mode.hsync_start + x;
|
/linux-master/drivers/gpu/drm/gma500/ |
H A D | intel_bios.c | 156 panel_fixed_mode->htotal = panel_fixed_mode->hdisplay + 181 if (panel_fixed_mode->hsync_end > panel_fixed_mode->htotal) 182 panel_fixed_mode->htotal = panel_fixed_mode->hsync_end + 1; 259 if (panel_fixed_mode->htotal > 0 && panel_fixed_mode->vtotal > 0) {
|
/linux-master/drivers/gpu/drm/amd/display/modules/inc/ |
H A D | mod_freesync.h | 159 unsigned int vtotal, unsigned int htotal, unsigned int pix_clk);
|
/linux-master/drivers/gpu/drm/msm/dp/ |
H A D | dp_panel.c | 362 drm_mode->hdisplay, drm_mode->htotal - drm_mode->hsync_end, 371 total_hor = drm_mode->htotal; 383 data |= (drm_mode->htotal - drm_mode->hsync_start); 429 drm_mode->htotal - drm_mode->hsync_end,
|
/linux-master/drivers/video/fbdev/ |
H A D | gbefb.c | 511 timing->htotal = var->left_margin + var->xres + 515 timing->fields_sec = 1000 * timing->cfreq / timing->htotal * 519 timing->hblank_end = timing->htotal; 546 SET_GBE_FIELD(VT_XYMAX, MAXX, val, timing->htotal); 594 timing->htotal - (20 - timing->hblank_end)); 604 timing->htotal - (GBE_CRS_MAGIC - 616 temp += timing->htotal; /* allow blank to wrap around */ 621 GBE_PIXEN_MAGIC_OFF) % timing->htotal)); 984 var->left_margin = timing.htotal - timing.hsync_end;
|
H A D | amifb.c | 154 - htotal: Last value on the line (i.e. line length = htotal + 1) 221 be 1 more than htotal. 761 u_short htotal; /* vmode */ member in struct:amifb_par 983 * htotal 8 2048 8 1023 /* hsstrt/hsstop/htotal/vsstrt/vsstop/vtotal/hcenter (sync timings) */ 1027 #define htotal2hw(htotal) (div8(htotal) - 1) 1031 #define hcenter2hw(htotal) (div8(htotal)) 1133 u_int htotal, vtotal; local [all...] |
/linux-master/arch/m68k/include/asm/ |
H A D | amigahw.h | 183 unsigned short htotal; member in struct:CUSTOM 268 amiga_custom.htotal = 113; /* 31 kHz */
|
/linux-master/drivers/gpu/drm/sun4i/ |
H A D | sun4i_rgb.c | 81 if ((mode->hdisplay < 1) || (mode->htotal < 1)) 84 if ((mode->hdisplay > 0x7ff) || (mode->htotal > 0xfff))
|