/linux-6.14.4/tools/testing/selftests/powerpc/dexcr/ |
D | dexcr_test.c | 19 unsigned long aspect = pr_which_to_aspect(which); in dexcr_prctl_onexec_test_child() local 24 "setting aspect across exec not applied"); in dexcr_prctl_onexec_test_child() 27 "setting aspect across exec not inherited"); in dexcr_prctl_onexec_test_child() 29 FAIL_IF_EXIT_MSG(!(aspect & dexcr), "setting aspect across exec did not take effect"); in dexcr_prctl_onexec_test_child() 32 "clearing aspect across exec not applied"); in dexcr_prctl_onexec_test_child() 35 "clearing aspect across exec not inherited"); in dexcr_prctl_onexec_test_child() 37 FAIL_IF_EXIT_MSG(aspect & dexcr, "clearing aspect across exec did not take effect"); in dexcr_prctl_onexec_test_child() 50 unsigned long aspect = pr_which_to_aspect(which); in dexcr_prctl_aspect_test() local 57 SKIP_IF_MSG(!pr_dexcr_aspect_supported(which), "DEXCR aspect not supported"); in dexcr_prctl_aspect_test() 58 SKIP_IF_MSG(!pr_dexcr_aspect_editable(which), "DEXCR aspect not editable with prctl"); in dexcr_prctl_aspect_test() [all …]
|
D | chdexcr.c | 25 "Each configurable DEXCR aspect is exposed as an option.\n" in help() 27 "The normal option sets the aspect in the DEXCR. The --no- variant\n" in help() 28 "clears that aspect. For example, --ibrtpd sets the IBRTPD aspect bit,\n" in help() 30 "Conversely, --no-ibrtpd clears the aspect bit, so indirect branch\n" in help() 36 const struct dexcr_aspect *aspect = &aspects[i]; in help() local 38 if (aspect->prctl == -1) in help() 41 printf(" --%-6s / --no-%-6s : %s\n", aspect->opt, aspect->opt, aspect->desc); in help() 56 const struct dexcr_aspect *aspect; in apply_option() local 80 aspect = opt_to_aspect(opt); in apply_option() 81 if (!aspect) in apply_option() [all …]
|
D | lsdexcr.c | 53 static void print_aspect(const struct dexcr_aspect *aspect) in print_aspect() argument 59 mask = DEXCR_PR_BIT(aspect->index); in print_aspect() 67 printf("%12s %c (%d): ", aspect->name, effective & mask ? '*' : ' ', aspect->index); in print_aspect() 69 printf(" \t(%s)\n", aspect->desc); in print_aspect() 72 static void print_aspect_config(const struct dexcr_aspect *aspect) in print_aspect_config() argument 77 bool actual = effective & DEXCR_PR_BIT(aspect->index); in print_aspect_config() 85 if (aspect->prctl != -1) { in print_aspect_config() 86 int ctrl = pr_get_dexcr(aspect->prctl); in print_aspect_config() 105 if (hdexcr & DEXCR_PR_BIT(aspect->index)) { in print_aspect_config() 114 aspect->name, in print_aspect_config() [all …]
|
D | dexcr.h | 17 #define DEXCR_PR_BIT(aspect) __MASK(63 - (32 + (aspect))) argument 33 const char *desc; /* Expanded aspect meaning */ 34 unsigned int index; /* Aspect bit index in DEXCR */
|
D | dexcr.c | 59 FAIL_IF_EXIT_MSG(true, "unknown PR aspect"); in pr_which_to_aspect() 88 * for support or if the NPHIE aspect is enabled.
|
/linux-6.14.4/arch/powerpc/kernel/ |
D | dexcr.c | 31 static int prctl_to_aspect(unsigned long which, unsigned int *aspect) in early_initcall() 35 *aspect = DEXCR_PR_SBHE; in early_initcall() 38 *aspect = DEXCR_PR_IBRTPD; in early_initcall() 41 *aspect = DEXCR_PR_SRAPD; in early_initcall() 44 *aspect = DEXCR_PR_NPHIE; in early_initcall() 55 unsigned int aspect; in get_dexcr_prctl() local 58 ret = prctl_to_aspect(which, &aspect); in get_dexcr_prctl() 62 if (aspect & DEXCR_PRCTL_EDITABLE) in get_dexcr_prctl() 65 if (aspect & mfspr(SPRN_DEXCR)) in get_dexcr_prctl() 70 if (aspect & task->thread.dexcr_onexec) in get_dexcr_prctl() [all …]
|
/linux-6.14.4/Documentation/arch/powerpc/ |
D | dexcr.rst | 17 the DEXCR. Each aspect controls a certain behaviour, and can be set or cleared 18 to enable/disable the aspect. There are several variants of the DEXCR for 50 between the 'which' value and the DEXCR aspect's index. 57 - Aspect name 58 - Aspect index 84 - This aspect can be configured with PR_PPC_SET_DEXCR (get only) 87 - This aspect is set / set this aspect 90 - This aspect is clear / clear this aspect 93 - This aspect will be set after exec / set this aspect after exec 96 - This aspect will be clear after exec / clear this aspect after exec [all …]
|
/linux-6.14.4/drivers/media/v4l2-core/ |
D | v4l2-dv-timings.c | 368 pr_info("%s: picture aspect (hor:vert): %u:%u\n", dev_prefix, in v4l2_print_dv_timings() 562 /* Aspect ratio based on vsync */ in v4l2_detect_cvt() 703 * @aspect - preferred aspect ratio. GTF has no method of determining the 704 * aspect ratio in order to derive the image width from the 706 * the native screen aspect ratio is used for this. If it 720 struct v4l2_fract aspect, in v4l2_detect_gtf() argument 755 if (aspect.numerator == 0 || aspect.denominator == 0) { in v4l2_detect_gtf() 756 aspect.numerator = 16; in v4l2_detect_gtf() 757 aspect.denominator = 9; in v4l2_detect_gtf() 759 image_width = ((image_height * aspect.numerator) / aspect.denominator); in v4l2_detect_gtf() [all …]
|
/linux-6.14.4/include/media/ |
D | v4l2-dv-timings.h | 172 * @aspect: preferred aspect ratio. GTF has no method of determining the 173 * aspect ratio in order to derive the image width from the 175 * the native screen aspect ratio is used for this. If it 186 struct v4l2_fract aspect, 191 * v4l2_calc_aspect_ratio - calculate the aspect ratio based on bytes 197 * Determines the aspect ratio from the EDID. 199 * "Horizontal and Vertical Screen Size or Aspect Ratio" 204 * v4l2_dv_timings_aspect_ratio - calculate the aspect ratio based on the
|
/linux-6.14.4/drivers/video/fbdev/core/ |
D | fbcvt.c | 192 u32 aspect = -1; in fb_cvt_aspect_ratio() local 195 aspect = 0; in fb_cvt_aspect_ratio() 197 aspect = 1; in fb_cvt_aspect_ratio() 199 aspect = 2; in fb_cvt_aspect_ratio() 201 aspect = 3; in fb_cvt_aspect_ratio() 203 aspect = 4; in fb_cvt_aspect_ratio() 205 printk(KERN_INFO "fbcvt: Aspect ratio not CVT " in fb_cvt_aspect_ratio() 207 aspect = 7; in fb_cvt_aspect_ratio() 211 return aspect; in fb_cvt_aspect_ratio()
|
/linux-6.14.4/Documentation/userspace-api/media/v4l/ |
D | crop.rst | 13 with the exception of pixel aspect ratio detection, which is 145 aspect ratio closer to the original request, so it asks for a cropping 260 Example: Current scaling factor and pixel aspect 271 double aspect; 308 aspect = cropcap.pixelaspect.numerator / 310 aspect = aspect * hscale / vscale; 316 dwidth = format.fmt.pix.width / aspect;
|
D | vidioc-cropcap.rst | 35 aspect of images and to calculate scale factors. They set the ``type`` 72 Assuming pixel aspect 1/1 this could be for example a 640 × 480 78 - This is the pixel aspect (y / x) when no scaling is applied, the
|
/linux-6.14.4/tools/include/uapi/linux/ |
D | prctl.h | 318 /* DEXCR aspect to act on */ 324 # define PR_PPC_DEXCR_CTRL_EDITABLE 0x1 /* Aspect can be modified with PR_PPC_SET_DEXCR */ 325 # define PR_PPC_DEXCR_CTRL_SET 0x2 /* Set the aspect for this process */ 326 # define PR_PPC_DEXCR_CTRL_CLEAR 0x4 /* Clear the aspect for this process */ 327 # define PR_PPC_DEXCR_CTRL_SET_ONEXEC 0x8 /* Set the aspect on exec */ 328 # define PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC 0x10 /* Clear the aspect on exec */
|
/linux-6.14.4/tools/perf/trace/beauty/include/uapi/linux/ |
D | prctl.h | 321 /* DEXCR aspect to act on */ 327 # define PR_PPC_DEXCR_CTRL_EDITABLE 0x1 /* Aspect can be modified with PR_PPC_SET_DEXCR */ 328 # define PR_PPC_DEXCR_CTRL_SET 0x2 /* Set the aspect for this process */ 329 # define PR_PPC_DEXCR_CTRL_CLEAR 0x4 /* Clear the aspect for this process */ 330 # define PR_PPC_DEXCR_CTRL_SET_ONEXEC 0x8 /* Set the aspect on exec */ 331 # define PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC 0x10 /* Clear the aspect on exec */
|
/linux-6.14.4/include/uapi/linux/ |
D | prctl.h | 321 /* DEXCR aspect to act on */ 327 # define PR_PPC_DEXCR_CTRL_EDITABLE 0x1 /* Aspect can be modified with PR_PPC_SET_DEXCR */ 328 # define PR_PPC_DEXCR_CTRL_SET 0x2 /* Set the aspect for this process */ 329 # define PR_PPC_DEXCR_CTRL_CLEAR 0x4 /* Clear the aspect for this process */ 330 # define PR_PPC_DEXCR_CTRL_SET_ONEXEC 0x8 /* Set the aspect on exec */ 331 # define PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC 0x10 /* Clear the aspect on exec */
|
/linux-6.14.4/Documentation/admin-guide/media/ |
D | vivid.rst | 29 - Support for various pixel aspect ratios and video aspect ratios 381 The pixel aspect ratio will depend on the TV standard. The video aspect ratio 382 can be selected through the 'Standard Aspect Ratio' Vivid control. 422 The pixel aspect ratio will depend on the HDMI timing: for 720x480 is it 424 standard, and for all others a 1:1 pixel aspect ratio is returned. 426 The video aspect ratio can be selected through the 'DV Timings Aspect Ratio' 478 The pixel aspect ratio will depend on the HDMI timing: for 720x480 is it 480 standard, and for all others a 1:1 pixel aspect ratio is returned. 499 Aspect Ratio control setting and teletext pages 100-159, one page per frame. 712 displayed with the correct pixel and image aspect ratio corrections, [all …]
|
/linux-6.14.4/drivers/media/platform/st/sti/hva/ |
D | hva.h | 73 * @aspect: video aspect 81 * @vui_sar: pixel aspect ratio enable 82 * @vui_sar_idc: pixel aspect ratio identifier 91 enum v4l2_mpeg_video_aspect aspect; member
|
D | hva-debugfs.c | 19 u32 bitrate_mode, aspect, entropy, vui_sar, sei_fp; in format_ctx() local 45 aspect = V4L2_CID_MPEG_VIDEO_ASPECT; in format_ctx() 50 " | |- video aspect=%s\n" in format_ctx() 55 v4l2_ctrl_get_menu(aspect)[ctrls->aspect], in format_ctx()
|
/linux-6.14.4/drivers/media/i2c/adv748x/ |
D | adv748x-afe.c | 165 struct v4l2_fract *aspect) in adv748x_afe_g_pixelaspect() argument 170 aspect->numerator = 11; in adv748x_afe_g_pixelaspect() 171 aspect->denominator = 10; in adv748x_afe_g_pixelaspect() 173 aspect->numerator = 54; in adv748x_afe_g_pixelaspect() 174 aspect->denominator = 59; in adv748x_afe_g_pixelaspect()
|
D | adv748x-hdmi.c | 386 struct v4l2_fract *aspect) in adv748x_hdmi_g_pixelaspect() argument 388 aspect->numerator = 1; in adv748x_hdmi_g_pixelaspect() 389 aspect->denominator = 1; in adv748x_hdmi_g_pixelaspect() 535 /* Fall back to a 16:9 aspect ratio */ in adv748x_hdmi_set_edid() 739 /* Initialise a default 16:9 aspect ratio */ in adv748x_hdmi_init()
|
/linux-6.14.4/drivers/staging/media/meson/vdec/ |
D | vdec_helpers.h | 64 * amvdec_set_par_from_dar() - Set Pixel Aspect Ratio from Display Aspect Ratio
|
/linux-6.14.4/Documentation/ABI/testing/ |
D | configfs-usb-gadget-uvc | 249 bAspectRatioY the X dimension of the picture aspect 251 bAspectRatioX the Y dimension of the picture aspect 305 bAspectRatioY the X dimension of the picture aspect 307 bAspectRatioX the Y dimension of the picture aspect 364 bAspectRatioY the X dimension of the picture aspect 366 bAspectRatioX the Y dimension of the picture aspect
|
/linux-6.14.4/Documentation/fb/ |
D | modedb.rst | 108 Also, GTF does not take into account the aspect ratio of the display. 129 a = aspect ratio (3 - 4:3; 4 - 5:4; 9 - 15:9, 16:9; A - 16:10) 136 - aspect ratio can only be one of the above values
|
/linux-6.14.4/drivers/ps3/ |
D | ps3av_cmd.c | 328 int aspect, u32 id) in ps3av_cmd_set_av_video_cs() argument 337 if (aspect == -1) in ps3av_cmd_set_av_video_cs() 338 aspect = 0; in ps3av_cmd_set_av_video_cs() 354 av_video_cs->aspect = aspect; in ps3av_cmd_set_av_video_cs()
|
/linux-6.14.4/include/uapi/linux/dvb/ |
D | video.h | 127 video_format_t video_format; /* current aspect ratio of stream*/ 142 /* 11-10 Aspect ratio (0=4:3, 3=16:9) */
|