Home
last modified time | relevance | path

Searched refs:FLD_MOD (Results 1 – 24 of 24) sorted by relevance

/linux-6.6.21/drivers/video/fbdev/omap2/omapfb/dss/
Dpll.c248 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 …]
Dhdmi_wp.c155 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 …]
Dhdmi4_core.c228 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 …]
Ddsi.c114 dsi_write_reg(dsidev, idx, FLD_MOD(dsi_read_reg(dsidev, idx), val, start, end))
1837 r = FLD_MOD(r, lane_number + 1, offset + 2, offset); in dsi_set_lane_config()
1838 r = FLD_MOD(r, polarity, offset + 3, offset + 3); in dsi_set_lane_config()
1845 r = FLD_MOD(r, 0, offset + 2, offset); in dsi_set_lane_config()
1846 r = FLD_MOD(r, 0, offset + 3, offset + 3); in dsi_set_lane_config()
1924 r = FLD_MOD(r, ths_prepare, 31, 24); in dsi_cio_timings()
1925 r = FLD_MOD(r, ths_prepare_ths_zero, 23, 16); in dsi_cio_timings()
1926 r = FLD_MOD(r, ths_trail, 15, 8); in dsi_cio_timings()
1927 r = FLD_MOD(r, ths_exit, 7, 0); in dsi_cio_timings()
1931 r = FLD_MOD(r, tlpx_half, 20, 16); in dsi_cio_timings()
[all …]
Ddss.c59 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()
Dhdmi5_core.c318 r = FLD_MOD(r, vsync_pol, 6, 6); in hdmi_core_video_config()
319 r = FLD_MOD(r, hsync_pol, 5, 5); in hdmi_core_video_config()
320 r = FLD_MOD(r, cfg->data_enable_pol, 4, 4); in hdmi_core_video_config()
321 r = FLD_MOD(r, cfg->vblank_osc, 1, 1); in hdmi_core_video_config()
322 r = FLD_MOD(r, cfg->v_fc_config.timings.interlace, 0, 0); in hdmi_core_video_config()
Dvideo-pll.c28 writel_relaxed(FLD_MOD(readl_relaxed(reg), val, start, end), reg)
Ddispc.c52 dispc_write_reg(idx, FLD_MOD(dispc_read_reg(idx), val, start, end))
954 val = FLD_MOD(val, chan, shift, shift); in dispc_ovl_set_channel_out()
955 val = FLD_MOD(val, chan2, 31, 30); in dispc_ovl_set_channel_out()
957 val = FLD_MOD(val, channel, shift, shift); in dispc_ovl_set_channel_out()
1081 val = FLD_MOD(val, enable, 9, 9); in dispc_ovl_set_vid_color_conv()
1145 v = FLD_MOD(v, 4, 2, 0); /* GFX BUF top to WB */ in dispc_init_fifos()
1146 v = FLD_MOD(v, 4, 5, 3); /* GFX BUF bottom to WB */ in dispc_init_fifos()
1147 v = FLD_MOD(v, 0, 26, 24); /* WB BUF top to GFX */ in dispc_init_fifos()
1148 v = FLD_MOD(v, 0, 29, 27); /* WB BUF bottom to GFX */ in dispc_init_fifos()
2939 l = FLD_MOD(l, gpout0, 15, 15); in dispc_mgr_set_io_pad_mode()
[all …]
Dhdmi5.c88 v = FLD_MOD(v, 1, 15, 15); /* FORCE_RXDET_HIGH */ in hdmi_irq_handler()
89 v = FLD_MOD(v, 0, 14, 7); /* RXDET_LINE */ in hdmi_irq_handler()
Dhdmi.h259 hdmi_write_reg(base, idx, FLD_MOD(hdmi_read_reg(base, idx),\
Ddss.h62 #define FLD_MOD(orig, val, start, end) \ macro
/linux-6.6.21/drivers/gpu/drm/omapdrm/dss/
Dpll.c406 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 …]
Dhdmi_wp.c154 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 …]
Dhdmi4_core.c186 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 …]
Ddsi.c54 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 …]
Ddss.c59 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()
Dhdmi5_core.c285 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()
Dhdmi4_cec.c223 temp = FLD_MOD(temp, 0, 4, 4); in hdmi_cec_adap_enable()
232 temp = FLD_MOD(0x0, 0x5, 2, 0); in hdmi_cec_adap_enable()
Ddispc.c55 FLD_MOD(dispc_read_reg(dispc, idx), val, start, end))
1199 val = FLD_MOD(val, chan, shift, shift); in dispc_ovl_set_channel_out()
1200 val = FLD_MOD(val, chan2, 31, 30); in dispc_ovl_set_channel_out()
1202 val = FLD_MOD(val, channel, shift, shift); in dispc_ovl_set_channel_out()
1339 val = FLD_MOD(val, enable, 9, 9); in dispc_ovl_set_vid_color_conv()
1406 v = FLD_MOD(v, 4, 2, 0); /* GFX BUF top to WB */ in dispc_init_fifos()
1407 v = FLD_MOD(v, 4, 5, 3); /* GFX BUF bottom to WB */ in dispc_init_fifos()
1408 v = FLD_MOD(v, 0, 26, 24); /* WB BUF top to GFX */ in dispc_init_fifos()
1409 v = FLD_MOD(v, 0, 29, 27); /* WB BUF bottom to GFX */ in dispc_init_fifos()
2868 l = FLD_MOD(l, truncation, 10, 10); /* TRUNCATIONENABLE */ in dispc_wb_setup()
[all …]
Dvideo-pll.c26 writel_relaxed(FLD_MOD(readl_relaxed(reg), val, start, end), reg)
Dhdmi.h278 hdmi_write_reg(base, idx, FLD_MOD(hdmi_read_reg(base, idx),\
Dhdmi5.c92 v = FLD_MOD(v, 1, 15, 15); /* FORCE_RXDET_HIGH */ in hdmi_irq_handler()
93 v = FLD_MOD(v, 0, 14, 7); /* RXDET_LINE */ in hdmi_irq_handler()
Ddss.h67 #define FLD_MOD(orig, val, start, end) \ macro
/linux-6.6.21/drivers/gpu/drm/tidss/
Dtidss_dispc.c435 static u32 FLD_MOD(u32 orig, u32 val, u32 start, u32 end) in FLD_MOD() function
448 dispc_write(dispc, idx, FLD_MOD(dispc_read(dispc, idx), val, in REG_FLD_MOD()
462 FLD_MOD(dispc_vid_read(dispc, hw_plane, idx), in VID_REG_FLD_MOD()
475 dispc_vp_write(dispc, vp, idx, FLD_MOD(dispc_vp_read(dispc, vp, idx), in VP_REG_FLD_MOD()
490 FLD_MOD(dispc_ovr_read(dispc, ovr, idx), in OVR_REG_FLD_MOD()
978 oldi_cfg = FLD_MOD(oldi_cfg, fmt->oldi_mode_reg_val, 3, 1); in dispc_enable_oldi()