Home
last modified time | relevance | path

Searched refs:vsc (Results 1 – 25 of 48) sorted by relevance

12

/OK3568_Linux_fs/kernel/drivers/net/dsa/
H A Dvitesse-vsc73xx-core.c376 static int vsc73xx_read(struct vsc73xx *vsc, u8 block, u8 subblock, u8 reg, in vsc73xx_read() argument
379 return vsc->ops->read(vsc, block, subblock, reg, val); in vsc73xx_read()
382 static int vsc73xx_write(struct vsc73xx *vsc, u8 block, u8 subblock, u8 reg, in vsc73xx_write() argument
385 return vsc->ops->write(vsc, block, subblock, reg, val); in vsc73xx_write()
388 static int vsc73xx_update_bits(struct vsc73xx *vsc, u8 block, u8 subblock, in vsc73xx_update_bits() argument
395 ret = vsc73xx_read(vsc, block, subblock, reg, &orig); in vsc73xx_update_bits()
400 return vsc73xx_write(vsc, block, subblock, reg, tmp); in vsc73xx_update_bits()
403 static int vsc73xx_detect(struct vsc73xx *vsc) in vsc73xx_detect() argument
412 ret = vsc73xx_read(vsc, VSC73XX_BLOCK_SYSTEM, 0, in vsc73xx_detect()
415 dev_err(vsc->dev, "unable to read mailbox (%d)\n", ret); in vsc73xx_detect()
[all …]
H A Dvitesse-vsc73xx-platform.c37 struct vsc73xx vsc; member
55 static int vsc73xx_platform_read(struct vsc73xx *vsc, u8 block, u8 subblock, in vsc73xx_platform_read() argument
58 struct vsc73xx_platform *vsc_platform = vsc->priv; in vsc73xx_platform_read()
73 static int vsc73xx_platform_write(struct vsc73xx *vsc, u8 block, u8 subblock, in vsc73xx_platform_write() argument
76 struct vsc73xx_platform *vsc_platform = vsc->priv; in vsc73xx_platform_write()
100 vsc_platform->vsc.dev = dev; in vsc73xx_platform_probe()
101 vsc_platform->vsc.priv = vsc_platform; in vsc73xx_platform_probe()
102 vsc_platform->vsc.ops = &vsc73xx_platform_ops; in vsc73xx_platform_probe()
112 return vsc73xx_probe(&vsc_platform->vsc); in vsc73xx_platform_probe()
119 return vsc73xx_remove(&vsc_platform->vsc); in vsc73xx_platform_remove()
H A Dvitesse-vsc73xx-spi.c35 struct vsc73xx vsc; member
52 static int vsc73xx_spi_read(struct vsc73xx *vsc, u8 block, u8 subblock, u8 reg, in vsc73xx_spi_read() argument
55 struct vsc73xx_spi *vsc_spi = vsc->priv; in vsc73xx_spi_read()
94 static int vsc73xx_spi_write(struct vsc73xx *vsc, u8 block, u8 subblock, u8 reg, in vsc73xx_spi_write() argument
97 struct vsc73xx_spi *vsc_spi = vsc->priv; in vsc73xx_spi_write()
146 vsc_spi->vsc.dev = dev; in vsc73xx_spi_probe()
147 vsc_spi->vsc.priv = vsc_spi; in vsc73xx_spi_probe()
148 vsc_spi->vsc.ops = &vsc73xx_spi_ops; in vsc73xx_spi_probe()
159 return vsc73xx_probe(&vsc_spi->vsc); in vsc73xx_spi_probe()
166 return vsc73xx_remove(&vsc_spi->vsc); in vsc73xx_spi_remove()
H A Dvitesse-vsc73xx.h21 int (*read)(struct vsc73xx *vsc, u8 block, u8 subblock, u8 reg,
23 int (*write)(struct vsc73xx *vsc, u8 block, u8 subblock, u8 reg,
28 int vsc73xx_probe(struct vsc73xx *vsc);
29 int vsc73xx_remove(struct vsc73xx *vsc);
/OK3568_Linux_fs/u-boot/drivers/video/drm/
H A Ddw-dp.c1075 static void dw_dp_vsc_sdp_pack(const struct drm_dp_vsc_sdp *vsc, in dw_dp_vsc_sdp_pack() argument
1080 sdp->header.HB2 = vsc->revision; in dw_dp_vsc_sdp_pack()
1081 sdp->header.HB3 = vsc->length; in dw_dp_vsc_sdp_pack()
1083 sdp->db[16] = (vsc->pixelformat & 0xf) << 4; in dw_dp_vsc_sdp_pack()
1084 sdp->db[16] |= vsc->colorimetry & 0xf; in dw_dp_vsc_sdp_pack()
1086 switch (vsc->bpc) { in dw_dp_vsc_sdp_pack()
1104 if (vsc->dynamic_range == DP_DYNAMIC_RANGE_CTA) in dw_dp_vsc_sdp_pack()
1107 sdp->db[18] = vsc->content_type & 0x7; in dw_dp_vsc_sdp_pack()
1115 struct drm_dp_vsc_sdp vsc = {}; in dw_dp_send_vsc_sdp() local
1118 vsc.revision = 0x5; in dw_dp_send_vsc_sdp()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/display/
H A Dintel_dp.c2514 struct drm_dp_vsc_sdp *vsc) in intel_dp_compute_vsc_colorimetry() argument
2524 vsc->revision = 0x5; in intel_dp_compute_vsc_colorimetry()
2525 vsc->length = 0x13; in intel_dp_compute_vsc_colorimetry()
2530 vsc->pixelformat = DP_PIXELFORMAT_YUV444; in intel_dp_compute_vsc_colorimetry()
2533 vsc->pixelformat = DP_PIXELFORMAT_YUV420; in intel_dp_compute_vsc_colorimetry()
2537 vsc->pixelformat = DP_PIXELFORMAT_RGB; in intel_dp_compute_vsc_colorimetry()
2542 vsc->colorimetry = DP_COLORIMETRY_BT709_YCC; in intel_dp_compute_vsc_colorimetry()
2545 vsc->colorimetry = DP_COLORIMETRY_XVYCC_601; in intel_dp_compute_vsc_colorimetry()
2548 vsc->colorimetry = DP_COLORIMETRY_XVYCC_709; in intel_dp_compute_vsc_colorimetry()
2551 vsc->colorimetry = DP_COLORIMETRY_SYCC_601; in intel_dp_compute_vsc_colorimetry()
[all …]
H A Dintel_dp.h115 struct drm_dp_vsc_sdp *vsc);
118 struct drm_dp_vsc_sdp *vsc);
/OK3568_Linux_fs/kernel/drivers/gpu/drm/bridge/analogix/
H A Danalogix_dp_reg.c1029 struct dp_sdp *vsc, bool blocking) in analogix_dp_send_psr_spd() argument
1045 analogix_dp_write(dp, ANALOGIX_DP_SPD_HB0, vsc->sdp_header.HB0); in analogix_dp_send_psr_spd()
1046 analogix_dp_write(dp, ANALOGIX_DP_SPD_HB1, vsc->sdp_header.HB1); in analogix_dp_send_psr_spd()
1047 analogix_dp_write(dp, ANALOGIX_DP_SPD_HB2, vsc->sdp_header.HB2); in analogix_dp_send_psr_spd()
1048 analogix_dp_write(dp, ANALOGIX_DP_SPD_HB3, vsc->sdp_header.HB3); in analogix_dp_send_psr_spd()
1057 analogix_dp_write(dp, ANALOGIX_DP_VSC_SHADOW_DB0, vsc->db[0]); in analogix_dp_send_psr_spd()
1058 analogix_dp_write(dp, ANALOGIX_DP_VSC_SHADOW_DB1, vsc->db[1]); in analogix_dp_send_psr_spd()
1062 vsc->db[1] ? 0x8d : 0x00); in analogix_dp_send_psr_spd()
1092 ((vsc->db[1] && psr_status == DP_PSR_SINK_ACTIVE_RFB) || in analogix_dp_send_psr_spd()
1093 (!vsc->db[1] && (psr_status == DP_PSR_SINK_ACTIVE_RESYNC || in analogix_dp_send_psr_spd()
H A Danalogix_dp_core.h255 struct dp_sdp *vsc, bool blocking);
/OK3568_Linux_fs/kernel/drivers/gpu/drm/rockchip/
H A Ddw-dp.c2040 static void dw_dp_vsc_sdp_pack(const struct drm_dp_vsc_sdp *vsc, in dw_dp_vsc_sdp_pack() argument
2045 sdp->header.HB2 = vsc->revision; in dw_dp_vsc_sdp_pack()
2046 sdp->header.HB3 = vsc->length; in dw_dp_vsc_sdp_pack()
2048 sdp->db[16] = (vsc->pixelformat & 0xf) << 4; in dw_dp_vsc_sdp_pack()
2049 sdp->db[16] |= vsc->colorimetry & 0xf; in dw_dp_vsc_sdp_pack()
2051 switch (vsc->bpc) { in dw_dp_vsc_sdp_pack()
2069 if (vsc->dynamic_range == DP_DYNAMIC_RANGE_CTA) in dw_dp_vsc_sdp_pack()
2072 sdp->db[18] = vsc->content_type & 0x7; in dw_dp_vsc_sdp_pack()
2080 struct drm_dp_vsc_sdp vsc = {}; in dw_dp_send_vsc_sdp() local
2083 vsc.revision = 0x5; in dw_dp_send_vsc_sdp()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/
H A Ddrm_dp_helper.c2355 const struct drm_dp_vsc_sdp *vsc) in drm_dp_vsc_sdp_log() argument
2359 vsc->revision, vsc->length); in drm_dp_vsc_sdp_log()
2361 dp_pixelformat_get_name(vsc->pixelformat)); in drm_dp_vsc_sdp_log()
2363 dp_colorimetry_get_name(vsc->pixelformat, vsc->colorimetry)); in drm_dp_vsc_sdp_log()
2364 DP_SDP_LOG(" bpc: %u\n", vsc->bpc); in drm_dp_vsc_sdp_log()
2366 dp_dynamic_range_get_name(vsc->dynamic_range)); in drm_dp_vsc_sdp_log()
2368 dp_content_type_get_name(vsc->content_type)); in drm_dp_vsc_sdp_log()
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/net/dsa/
H A Dvitesse,vsc73xx.txt76 vsc: port@6 {
118 vsc: port@6 {
/OK3568_Linux_fs/kernel/drivers/lightnvm/
H A Dpblk-core.c182 le32_add_cpu(line->vsc, -1); in __pblk_map_invalidate()
412 int packed_meta = (le32_to_cpu(*line->vsc) / pblk->min_write_pgs_data) in pblk_line_gc_list()
414 int vsc = le32_to_cpu(*line->vsc) + packed_meta; in pblk_line_gc_list() local
424 } else if (!vsc) { in pblk_line_gc_list()
429 } else if (vsc < lm->high_thrs) { in pblk_line_gc_list()
434 } else if (vsc < lm->mid_thrs) { in pblk_line_gc_list()
439 } else if (vsc < line->sec_in_line) { in pblk_line_gc_list()
444 } else if (vsc == line->sec_in_line) { in pblk_line_gc_list()
457 line->id, vsc, in pblk_line_gc_list()
1114 *line->vsc = cpu_to_le32(line->sec_in_line); in pblk_line_init_bb()
[all …]
H A Dpblk-sysfs.c180 int msecs = 0, cur_sec = 0, vsc = 0, sec_in_line = 0; in pblk_sysfs_lines() local
262 vsc = le32_to_cpu(*l_mg->data_line->vsc); in pblk_sysfs_lines()
302 cur_data, cur_sec, msecs, vsc, sec_in_line, in pblk_sysfs_lines()
H A Dpblk-gc.c381 line_vsc = le32_to_cpu(*line->vsc); in pblk_gc_get_victim_line()
384 victim_vsc = le32_to_cpu(*victim->vsc); in pblk_gc_get_victim_line()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dcn30/
H A Ddcn30_dio_stream_encoder.c428 if (info_frame->vsc.valid) { in enc3_stream_encoder_update_dp_info_packets()
432 &info_frame->vsc); in enc3_stream_encoder_update_dp_info_packets()
453 REG_UPDATE(DP_SEC_CNTL, DP_SEC_GSP0_ENABLE, info_frame->vsc.valid); in enc3_stream_encoder_update_dp_info_packets()
/OK3568_Linux_fs/yocto/meta-clang/dynamic-layers/selinux/android-tools/android-tools/core-debian/
H A Dsimg_dump-python3.patch29 "vsc:",
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/inc/hw/
H A Dstream_encoder.h83 struct dc_info_packet vsc; member
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/amdgpu/
H A Ddce_v8_0.c639 fixed20_12 vsc; /* vertical scale ratio */ member
810 bandwidth.full = dfixed_mul(bandwidth, wm->vsc); in dce_v8_0_average_bandwidth()
845 if ((wm->vsc.full > a.full) || in dce_v8_0_latency_watermark()
846 ((wm->vsc.full > b.full) && (wm->vtaps >= 3)) || in dce_v8_0_latency_watermark()
848 ((wm->vsc.full >= a.full) && wm->interlaced)) in dce_v8_0_latency_watermark()
933 if (wm->vsc.full > a.full) in dce_v8_0_check_latency_hiding()
997 wm_high.vsc = amdgpu_crtc->vsc; in dce_v8_0_program_watermarks()
1036 wm_low.vsc = amdgpu_crtc->vsc; in dce_v8_0_program_watermarks()
H A Ddce_v6_0.c502 fixed20_12 vsc; /* vertical scale ratio */ member
673 bandwidth.full = dfixed_mul(bandwidth, wm->vsc); in dce_v6_0_average_bandwidth()
708 if ((wm->vsc.full > a.full) || in dce_v6_0_latency_watermark()
709 ((wm->vsc.full > b.full) && (wm->vtaps >= 3)) || in dce_v6_0_latency_watermark()
711 ((wm->vsc.full >= a.full) && wm->interlaced)) in dce_v6_0_latency_watermark()
796 if (wm->vsc.full > a.full) in dce_v6_0_check_latency_hiding()
869 wm_high.vsc = amdgpu_crtc->vsc; in dce_v6_0_program_watermarks()
896 wm_low.vsc = amdgpu_crtc->vsc; in dce_v6_0_program_watermarks()
H A Ddce_v10_0.c704 fixed20_12 vsc; /* vertical scale ratio */ member
875 bandwidth.full = dfixed_mul(bandwidth, wm->vsc); in dce_v10_0_average_bandwidth()
910 if ((wm->vsc.full > a.full) || in dce_v10_0_latency_watermark()
911 ((wm->vsc.full > b.full) && (wm->vtaps >= 3)) || in dce_v10_0_latency_watermark()
913 ((wm->vsc.full >= a.full) && wm->interlaced)) in dce_v10_0_latency_watermark()
998 if (wm->vsc.full > a.full) in dce_v10_0_check_latency_hiding()
1062 wm_high.vsc = amdgpu_crtc->vsc; in dce_v10_0_program_watermarks()
1101 wm_low.vsc = amdgpu_crtc->vsc; in dce_v10_0_program_watermarks()
H A Ddce_v11_0.c730 fixed20_12 vsc; /* vertical scale ratio */ member
901 bandwidth.full = dfixed_mul(bandwidth, wm->vsc); in dce_v11_0_average_bandwidth()
936 if ((wm->vsc.full > a.full) || in dce_v11_0_latency_watermark()
937 ((wm->vsc.full > b.full) && (wm->vtaps >= 3)) || in dce_v11_0_latency_watermark()
939 ((wm->vsc.full >= a.full) && wm->interlaced)) in dce_v11_0_latency_watermark()
1024 if (wm->vsc.full > a.full) in dce_v11_0_check_latency_hiding()
1088 wm_high.vsc = amdgpu_crtc->vsc; in dce_v11_0_program_watermarks()
1127 wm_low.vsc = amdgpu_crtc->vsc; in dce_v11_0_program_watermarks()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dcn10/
H A Ddcn10_stream_encoder.c712 if (info_frame->vsc.valid) in enc1_stream_encoder_update_dp_info_packets()
716 &info_frame->vsc); in enc1_stream_encoder_update_dp_info_packets()
737 REG_UPDATE(DP_SEC_CNTL, DP_SEC_GSP0_ENABLE, info_frame->vsc.valid); in enc1_stream_encoder_update_dp_info_packets()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/radeon/
H A Drs690.c305 if (crtc->vsc.full > dfixed_const(2)) in rs690_crtc_bandwidth_compute()
333 if (crtc->vsc.full > b.full) in rs690_crtc_bandwidth_compute()
334 b.full = crtc->vsc.full; in rs690_crtc_bandwidth_compute()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dce/
H A Ddce_stream_encoder.c858 if (info_frame->vsc.valid) in dce110_stream_encoder_update_dp_info_packets()
862 &info_frame->vsc); in dce110_stream_encoder_update_dp_info_packets()
879 REG_UPDATE(DP_SEC_CNTL, DP_SEC_GSP0_ENABLE, info_frame->vsc.valid); in dce110_stream_encoder_update_dp_info_packets()

12