/drivers/video/fbdev/omap2/omapfb/dss/ |
D | pll.c | 248 l = FLD_MOD(l, 1, 0, 0); /* PLL_STOPMODE */ in dss_pll_write_config_type_a() 249 l = FLD_MOD(l, cinfo->n - 1, hw->n_msb, hw->n_lsb); /* PLL_REGN */ in dss_pll_write_config_type_a() 250 l = FLD_MOD(l, cinfo->m, hw->m_msb, hw->m_lsb); /* PLL_REGM */ in dss_pll_write_config_type_a() 252 l = FLD_MOD(l, cinfo->mX[0] ? cinfo->mX[0] - 1 : 0, in dss_pll_write_config_type_a() 255 l = FLD_MOD(l, cinfo->mX[1] ? cinfo->mX[1] - 1 : 0, in dss_pll_write_config_type_a() 261 l = FLD_MOD(l, cinfo->mX[2] ? cinfo->mX[2] - 1 : 0, in dss_pll_write_config_type_a() 264 l = FLD_MOD(l, cinfo->mX[3] ? cinfo->mX[3] - 1 : 0, in dss_pll_write_config_type_a() 276 l = FLD_MOD(l, f, 4, 1); /* PLL_FREQSEL */ in dss_pll_write_config_type_a() 280 l = FLD_MOD(l, f, 3, 1); /* PLL_SELFREQDCO */ in dss_pll_write_config_type_a() 282 l = FLD_MOD(l, 1, 13, 13); /* PLL_REFEN */ in dss_pll_write_config_type_a() [all …]
|
D | hdmi_wp.c | 155 r = FLD_MOD(r, vsync_pol, 7, 7); in hdmi_wp_video_config_interface() 156 r = FLD_MOD(r, hsync_pol, 6, 6); in hdmi_wp_video_config_interface() 157 r = FLD_MOD(r, timings->interlace, 3, 3); in hdmi_wp_video_config_interface() 158 r = FLD_MOD(r, 1, 1, 0); /* HDMI_TIMING_MASTER_24BIT */ in hdmi_wp_video_config_interface() 214 r = FLD_MOD(r, aud_fmt->stereo_channels, 26, 24); in hdmi_wp_audio_config_format() 215 r = FLD_MOD(r, aud_fmt->active_chnnls_msk, 23, 16); in hdmi_wp_audio_config_format() 217 r = FLD_MOD(r, aud_fmt->en_sig_blk_strt_end, 5, 5); in hdmi_wp_audio_config_format() 218 r = FLD_MOD(r, aud_fmt->type, 4, 4); in hdmi_wp_audio_config_format() 219 r = FLD_MOD(r, aud_fmt->justification, 3, 3); in hdmi_wp_audio_config_format() 220 r = FLD_MOD(r, aud_fmt->sample_order, 2, 2); in hdmi_wp_audio_config_format() [all …]
|
D | hdmi4_core.c | 228 r = FLD_MOD(r, HDMI_CORE_SYS_SYS_CTRL1_VEN_FOLLOWVSYNC, 5, 5); in hdmi_core_video_config() 229 r = FLD_MOD(r, HDMI_CORE_SYS_SYS_CTRL1_HEN_FOLLOWHSYNC, 4, 4); in hdmi_core_video_config() 230 r = FLD_MOD(r, HDMI_CORE_SYS_SYS_CTRL1_BSEL_24BITBUS, 2, 2); in hdmi_core_video_config() 231 r = FLD_MOD(r, HDMI_CORE_SYS_SYS_CTRL1_EDGE_RISINGEDGE, 1, 1); in hdmi_core_video_config() 242 r = FLD_MOD(r, cfg->op_dither_truc - 3, 7, 6); in hdmi_core_video_config() 243 r = FLD_MOD(r, 1, 5, 5); in hdmi_core_video_config() 245 r = FLD_MOD(r, cfg->op_dither_truc, 7, 6); in hdmi_core_video_config() 246 r = FLD_MOD(r, 0, 5, 5); in hdmi_core_video_config() 252 r = FLD_MOD(r, cfg->deep_color_pkt, 6, 6); in hdmi_core_video_config() 253 r = FLD_MOD(r, cfg->pkt_mode, 5, 3); in hdmi_core_video_config() [all …]
|
D | dsi.c | 114 dsi_write_reg(dsidev, idx, FLD_MOD(dsi_read_reg(dsidev, idx), val, start, end)) 1839 r = FLD_MOD(r, lane_number + 1, offset + 2, offset); in dsi_set_lane_config() 1840 r = FLD_MOD(r, polarity, offset + 3, offset + 3); in dsi_set_lane_config() 1847 r = FLD_MOD(r, 0, offset + 2, offset); in dsi_set_lane_config() 1848 r = FLD_MOD(r, 0, offset + 3, offset + 3); in dsi_set_lane_config() 1926 r = FLD_MOD(r, ths_prepare, 31, 24); in dsi_cio_timings() 1927 r = FLD_MOD(r, ths_prepare_ths_zero, 23, 16); in dsi_cio_timings() 1928 r = FLD_MOD(r, ths_trail, 15, 8); in dsi_cio_timings() 1929 r = FLD_MOD(r, ths_exit, 7, 0); in dsi_cio_timings() 1933 r = FLD_MOD(r, tlpx_half, 20, 16); in dsi_cio_timings() [all …]
|
D | dss.c | 59 dss_write_reg(idx, FLD_MOD(dss_read_reg(idx), val, start, end)) 266 l = FLD_MOD(l, 0xf, 19, 15); /* SDI_PDIV */ in dss_sdi_init() 267 l = FLD_MOD(l, datapairs-1, 3, 2); /* SDI_PRSEL */ in dss_sdi_init() 268 l = FLD_MOD(l, 2, 1, 0); /* SDI_BWSEL */ in dss_sdi_init() 272 l = FLD_MOD(l, 0x7, 25, 22); /* SDI_PLL_FREQSEL */ in dss_sdi_init() 273 l = FLD_MOD(l, 0xb, 16, 11); /* SDI_PLL_REGN */ in dss_sdi_init() 274 l = FLD_MOD(l, 0xb4, 10, 1); /* SDI_PLL_REGM */ in dss_sdi_init()
|
D | hdmi5_core.c | 320 r = FLD_MOD(r, vsync_pol, 6, 6); in hdmi_core_video_config() 321 r = FLD_MOD(r, hsync_pol, 5, 5); in hdmi_core_video_config() 322 r = FLD_MOD(r, cfg->data_enable_pol, 4, 4); in hdmi_core_video_config() 323 r = FLD_MOD(r, cfg->vblank_osc, 1, 1); in hdmi_core_video_config() 324 r = FLD_MOD(r, cfg->v_fc_config.timings.interlace, 0, 0); in hdmi_core_video_config()
|
D | dispc.c | 52 dispc_write_reg(idx, FLD_MOD(dispc_read_reg(idx), val, start, end)) 956 val = FLD_MOD(val, chan, shift, shift); in dispc_ovl_set_channel_out() 957 val = FLD_MOD(val, chan2, 31, 30); in dispc_ovl_set_channel_out() 959 val = FLD_MOD(val, channel, shift, shift); in dispc_ovl_set_channel_out() 1083 val = FLD_MOD(val, enable, 9, 9); in dispc_ovl_set_vid_color_conv() 1147 v = FLD_MOD(v, 4, 2, 0); /* GFX BUF top to WB */ in dispc_init_fifos() 1148 v = FLD_MOD(v, 4, 5, 3); /* GFX BUF bottom to WB */ in dispc_init_fifos() 1149 v = FLD_MOD(v, 0, 26, 24); /* WB BUF top to GFX */ in dispc_init_fifos() 1150 v = FLD_MOD(v, 0, 29, 27); /* WB BUF bottom to GFX */ in dispc_init_fifos() 2941 l = FLD_MOD(l, gpout0, 15, 15); in dispc_mgr_set_io_pad_mode() [all …]
|
D | video-pll.c | 28 writel_relaxed(FLD_MOD(readl_relaxed(reg), val, start, end), reg)
|
D | hdmi5.c | 90 v = FLD_MOD(v, 1, 15, 15); /* FORCE_RXDET_HIGH */ in hdmi_irq_handler() 91 v = FLD_MOD(v, 0, 14, 7); /* RXDET_LINE */ in hdmi_irq_handler()
|
D | hdmi.h | 259 hdmi_write_reg(base, idx, FLD_MOD(hdmi_read_reg(base, idx),\
|
D | dss.h | 62 #define FLD_MOD(orig, val, start, end) \ macro
|
/drivers/gpu/drm/omapdrm/dss/ |
D | pll.c | 406 l = FLD_MOD(l, 1, 0, 0); /* PLL_STOPMODE */ in dss_pll_write_config_type_a() 407 l = FLD_MOD(l, cinfo->n - 1, hw->n_msb, hw->n_lsb); /* PLL_REGN */ in dss_pll_write_config_type_a() 408 l = FLD_MOD(l, cinfo->m, hw->m_msb, hw->m_lsb); /* PLL_REGM */ in dss_pll_write_config_type_a() 410 l = FLD_MOD(l, cinfo->mX[0] ? cinfo->mX[0] - 1 : 0, in dss_pll_write_config_type_a() 413 l = FLD_MOD(l, cinfo->mX[1] ? cinfo->mX[1] - 1 : 0, in dss_pll_write_config_type_a() 419 l = FLD_MOD(l, cinfo->mX[2] ? cinfo->mX[2] - 1 : 0, in dss_pll_write_config_type_a() 422 l = FLD_MOD(l, cinfo->mX[3] ? cinfo->mX[3] - 1 : 0, in dss_pll_write_config_type_a() 434 l = FLD_MOD(l, f, 4, 1); /* PLL_FREQSEL */ in dss_pll_write_config_type_a() 438 l = FLD_MOD(l, f, 3, 1); /* PLL_SELFREQDCO */ in dss_pll_write_config_type_a() 440 l = FLD_MOD(l, 1, 13, 13); /* PLL_REFEN */ in dss_pll_write_config_type_a() [all …]
|
D | hdmi_wp.c | 154 r = FLD_MOD(r, 1, 7, 7); /* VSYNC_POL to dispc active high */ in hdmi_wp_video_config_interface() 155 r = FLD_MOD(r, 1, 6, 6); /* HSYNC_POL to dispc active high */ in hdmi_wp_video_config_interface() 156 r = FLD_MOD(r, vsync_inv, 5, 5); /* CORE_VSYNC_INV */ in hdmi_wp_video_config_interface() 157 r = FLD_MOD(r, hsync_inv, 4, 4); /* CORE_HSYNC_INV */ in hdmi_wp_video_config_interface() 158 r = FLD_MOD(r, !!(vm->flags & DISPLAY_FLAGS_INTERLACED), 3, 3); in hdmi_wp_video_config_interface() 159 r = FLD_MOD(r, 1, 1, 0); /* HDMI_TIMING_MASTER_24BIT */ in hdmi_wp_video_config_interface() 234 r = FLD_MOD(r, aud_fmt->stereo_channels, 26, 24); in hdmi_wp_audio_config_format() 235 r = FLD_MOD(r, aud_fmt->active_chnnls_msk, 23, 16); in hdmi_wp_audio_config_format() 237 r = FLD_MOD(r, aud_fmt->en_sig_blk_strt_end, 5, 5); in hdmi_wp_audio_config_format() 238 r = FLD_MOD(r, aud_fmt->type, 4, 4); in hdmi_wp_audio_config_format() [all …]
|
D | hdmi4_core.c | 186 r = FLD_MOD(r, HDMI_CORE_SYS_SYS_CTRL1_VEN_FOLLOWVSYNC, 5, 5); in hdmi_core_video_config() 187 r = FLD_MOD(r, HDMI_CORE_SYS_SYS_CTRL1_HEN_FOLLOWHSYNC, 4, 4); in hdmi_core_video_config() 188 r = FLD_MOD(r, HDMI_CORE_SYS_SYS_CTRL1_BSEL_24BITBUS, 2, 2); in hdmi_core_video_config() 189 r = FLD_MOD(r, HDMI_CORE_SYS_SYS_CTRL1_EDGE_RISINGEDGE, 1, 1); in hdmi_core_video_config() 200 r = FLD_MOD(r, cfg->op_dither_truc - 3, 7, 6); in hdmi_core_video_config() 201 r = FLD_MOD(r, 1, 5, 5); in hdmi_core_video_config() 203 r = FLD_MOD(r, cfg->op_dither_truc, 7, 6); in hdmi_core_video_config() 204 r = FLD_MOD(r, 0, 5, 5); in hdmi_core_video_config() 210 r = FLD_MOD(r, cfg->deep_color_pkt, 6, 6); in hdmi_core_video_config() 211 r = FLD_MOD(r, cfg->pkt_mode, 5, 3); in hdmi_core_video_config() [all …]
|
D | dsi.c | 54 dsi_write_reg(dsi, idx, FLD_MOD(dsi_read_reg(dsi, idx), val, start, end)) 1312 r = FLD_MOD(r, lane_number + 1, offset + 2, offset); in dsi_set_lane_config() 1313 r = FLD_MOD(r, polarity, offset + 3, offset + 3); in dsi_set_lane_config() 1320 r = FLD_MOD(r, 0, offset + 2, offset); in dsi_set_lane_config() 1321 r = FLD_MOD(r, 0, offset + 3, offset + 3); in dsi_set_lane_config() 1397 r = FLD_MOD(r, ths_prepare, 31, 24); in dsi_cio_timings() 1398 r = FLD_MOD(r, ths_prepare_ths_zero, 23, 16); in dsi_cio_timings() 1399 r = FLD_MOD(r, ths_trail, 15, 8); in dsi_cio_timings() 1400 r = FLD_MOD(r, ths_exit, 7, 0); in dsi_cio_timings() 1404 r = FLD_MOD(r, tlpx_half, 20, 16); in dsi_cio_timings() [all …]
|
D | dss.c | 59 FLD_MOD(dss_read_reg(dss, idx), val, start, end)) 250 l = FLD_MOD(l, 0xf, 19, 15); /* SDI_PDIV */ in dss_sdi_init() 251 l = FLD_MOD(l, datapairs-1, 3, 2); /* SDI_PRSEL */ in dss_sdi_init() 252 l = FLD_MOD(l, 2, 1, 0); /* SDI_BWSEL */ in dss_sdi_init() 256 l = FLD_MOD(l, 0x7, 25, 22); /* SDI_PLL_FREQSEL */ in dss_sdi_init() 257 l = FLD_MOD(l, 0xb, 16, 11); /* SDI_PLL_REGN */ in dss_sdi_init() 258 l = FLD_MOD(l, 0xb4, 10, 1); /* SDI_PLL_REGM */ in dss_sdi_init()
|
D | hdmi5_core.c | 285 r = FLD_MOD(r, vsync_pol, 6, 6); in hdmi_core_video_config() 286 r = FLD_MOD(r, hsync_pol, 5, 5); in hdmi_core_video_config() 287 r = FLD_MOD(r, cfg->data_enable_pol, 4, 4); in hdmi_core_video_config() 288 r = FLD_MOD(r, cfg->vblank_osc, 1, 1); in hdmi_core_video_config() 289 r = FLD_MOD(r, !!(vm->flags & DISPLAY_FLAGS_INTERLACED), 0, 0); in hdmi_core_video_config()
|
D | hdmi4_cec.c | 235 temp = FLD_MOD(temp, 0, 4, 4); in hdmi_cec_adap_enable() 244 temp = FLD_MOD(0x0, 0x5, 2, 0); in hdmi_cec_adap_enable()
|
D | dispc.c | 55 FLD_MOD(dispc_read_reg(dispc, idx), val, start, end)) 1202 val = FLD_MOD(val, chan, shift, shift); in dispc_ovl_set_channel_out() 1203 val = FLD_MOD(val, chan2, 31, 30); in dispc_ovl_set_channel_out() 1205 val = FLD_MOD(val, channel, shift, shift); in dispc_ovl_set_channel_out() 1342 val = FLD_MOD(val, enable, 9, 9); in dispc_ovl_set_vid_color_conv() 1409 v = FLD_MOD(v, 4, 2, 0); /* GFX BUF top to WB */ in dispc_init_fifos() 1410 v = FLD_MOD(v, 4, 5, 3); /* GFX BUF bottom to WB */ in dispc_init_fifos() 1411 v = FLD_MOD(v, 0, 26, 24); /* WB BUF top to GFX */ in dispc_init_fifos() 1412 v = FLD_MOD(v, 0, 29, 27); /* WB BUF bottom to GFX */ in dispc_init_fifos() 2860 l = FLD_MOD(l, truncation, 10, 10); /* TRUNCATIONENABLE */ in dispc_wb_setup() [all …]
|
D | video-pll.c | 26 writel_relaxed(FLD_MOD(readl_relaxed(reg), val, start, end), reg)
|
D | hdmi5.c | 91 v = FLD_MOD(v, 1, 15, 15); /* FORCE_RXDET_HIGH */ in hdmi_irq_handler() 92 v = FLD_MOD(v, 0, 14, 7); /* RXDET_LINE */ in hdmi_irq_handler()
|
D | hdmi.h | 278 hdmi_write_reg(base, idx, FLD_MOD(hdmi_read_reg(base, idx),\
|
D | dss.h | 67 #define FLD_MOD(orig, val, start, end) \ macro
|
/drivers/gpu/drm/tidss/ |
D | tidss_dispc.c | 385 static u32 FLD_MOD(u32 orig, u32 val, u32 start, u32 end) in FLD_MOD() function 398 dispc_write(dispc, idx, FLD_MOD(dispc_read(dispc, idx), val, in REG_FLD_MOD() 412 FLD_MOD(dispc_vid_read(dispc, hw_plane, idx), in VID_REG_FLD_MOD() 425 dispc_vp_write(dispc, vp, idx, FLD_MOD(dispc_vp_read(dispc, vp, idx), in VP_REG_FLD_MOD() 440 FLD_MOD(dispc_ovr_read(dispc, ovr, idx), in OVR_REG_FLD_MOD() 926 oldi_cfg = FLD_MOD(oldi_cfg, fmt->oldi_mode_reg_val, 3, 1); in dispc_enable_oldi()
|