| /freebsd-13-stable/tools/regression/security/open_to_operation/ |
| HD | open_to_operation.c | 129 ok_mode(const char *testname, const char *comment, int mode) in ok_mode() argument 134 printf("ok %d - %s # mode 0x%x\n", testnum, testname, mode); in ok_mode() 137 mode, comment); in ok_mode() 141 notok_mode(const char *testname, const char *comment, int mode) in notok_mode() argument 147 mode); in notok_mode() 150 mode, comment); in notok_mode() 158 int mode, int expected_errno) in try_directory_open() argument 162 dfd = open(directory, mode); in try_directory_open() 165 notok_mode(testname, "opened", mode); in try_directory_open() 167 ok_mode(testname, NULL, mode); in try_directory_open() [all …]
|
| /freebsd-13-stable/usr.bin/tset/ |
| HD | set.c | 55 tcgetattr(STDERR_FILENO, &mode); in reset_mode() 58 mode.c_cc[VDISCARD] = CHK(mode.c_cc[VDISCARD], CDISCARD); in reset_mode() 60 mode.c_cc[VEOF] = CHK(mode.c_cc[VEOF], CEOF); in reset_mode() 61 mode.c_cc[VERASE] = CHK(mode.c_cc[VERASE], CERASE); in reset_mode() 63 mode.c_cc[VFLUSH] = CHK(mode.c_cc[VFLUSH], CFLUSH); in reset_mode() 65 mode.c_cc[VINTR] = CHK(mode.c_cc[VINTR], CINTR); in reset_mode() 66 mode.c_cc[VKILL] = CHK(mode.c_cc[VKILL], CKILL); in reset_mode() 68 mode.c_cc[VLNEXT] = CHK(mode.c_cc[VLNEXT], CLNEXT); in reset_mode() 70 mode.c_cc[VQUIT] = CHK(mode.c_cc[VQUIT], CQUIT); in reset_mode() 72 mode.c_cc[VREPRINT] = CHK(mode.c_cc[VREPRINT], CRPRNT); in reset_mode() [all …]
|
| /freebsd-13-stable/crypto/openssl/engines/asm/ |
| HD | e_padlock-x86_64.pl | 284 my ($mode,$opcode) = @_; 288 .globl padlock_${mode}_encrypt 289 .type padlock_${mode}_encrypt,\@function,4 291 padlock_${mode}_encrypt: 297 jnz .L${mode}_abort 299 jnz .L${mode}_abort 308 jnz .L${mode}_aligned 314 jnz .L${mode}_aligned 329 $code.=<<___ if ($mode eq "ctr32"); 330 .L${mode}_reenter: [all …]
|
| HD | e_padlock-x86.pl | 188 my ($mode,$opcode) = @_; 191 &function_begin("padlock_${mode}_encrypt"); 197 &jnz (&label("${mode}_abort")); 199 &jnz (&label("${mode}_abort")); 201 &DWP(&label("padlock_saved_context")."-".&label("${mode}_pic_point"))); 205 &set_label("${mode}_pic_point"); 208 if ($mode eq "ctr32") { 213 &jnz (&label("${mode}_aligned")); 219 &jnz (&label("${mode}_aligned")); 238 if ($PADLOCK_PREFETCH{$mode}) { [all …]
|
| /freebsd-13-stable/tools/regression/capsicum/syscalls/ |
| HD | cap_getmode.c | 46 unsigned int mode; in main() local 52 mode = 666; in main() 53 CHECK(cap_getmode(&mode) == 0); in main() 55 CHECK(mode != 666); in main() 57 CHECK(mode == 0); in main() 73 mode = 666; in main() 74 CHECK(cap_getmode(&mode) == 0); in main() 76 CHECK(mode != 666); in main() 78 CHECK(mode == 0); in main() 91 mode = 666; in main() [all …]
|
| /freebsd-13-stable/contrib/apr/file_io/unix/ |
| HD | fileacc.c | 37 mode_t mode = 0; in apr_unix_perms2mode() local 40 mode |= S_ISUID; in apr_unix_perms2mode() 42 mode |= S_IRUSR; in apr_unix_perms2mode() 44 mode |= S_IWUSR; in apr_unix_perms2mode() 46 mode |= S_IXUSR; in apr_unix_perms2mode() 49 mode |= S_ISGID; in apr_unix_perms2mode() 51 mode |= S_IRGRP; in apr_unix_perms2mode() 53 mode |= S_IWGRP; in apr_unix_perms2mode() 55 mode |= S_IXGRP; in apr_unix_perms2mode() 59 mode |= S_ISVTX; in apr_unix_perms2mode() [all …]
|
| /freebsd-13-stable/sys/dev/drm2/ |
| HD | drm_modes.c | 47 void drm_mode_debug_printmodeline(const struct drm_display_mode *mode) in drm_mode_debug_printmodeline() argument 51 mode->base.id, mode->name, mode->vrefresh, mode->clock, in drm_mode_debug_printmodeline() 52 mode->hdisplay, mode->hsync_start, in drm_mode_debug_printmodeline() 53 mode->hsync_end, mode->htotal, in drm_mode_debug_printmodeline() 54 mode->vdisplay, mode->vsync_start, in drm_mode_debug_printmodeline() 55 mode->vsync_end, mode->vtotal, mode->type, mode->flags); in drm_mode_debug_printmodeline() 514 void drm_mode_set_name(struct drm_display_mode *mode) in drm_mode_set_name() argument 516 bool interlaced = !!(mode->flags & DRM_MODE_FLAG_INTERLACE); in drm_mode_set_name() 518 snprintf(mode->name, DRM_DISPLAY_MODE_LEN, "%dx%d%s", in drm_mode_set_name() 519 mode->hdisplay, mode->vdisplay, in drm_mode_set_name() [all …]
|
| HD | drm_edid.c | 535 mode_is_rb(const struct drm_display_mode *mode) in mode_is_rb() argument 537 return (mode->htotal - mode->hdisplay == 160) && in mode_is_rb() 538 (mode->hsync_end - mode->hdisplay == 80) && in mode_is_rb() 539 (mode->hsync_end - mode->hsync_start == 32) && in mode_is_rb() 540 (mode->vsync_start - mode->vdisplay == 3); in mode_is_rb() 744 struct drm_display_mode *m, *mode = NULL; in drm_mode_std() local 794 mode = drm_cvt_mode(dev, 1366, 768, vrefresh_rate, 0, 0, in drm_mode_std() 796 mode->hdisplay = 1366; in drm_mode_std() 797 mode->hsync_start = mode->hsync_start - 1; in drm_mode_std() 798 mode->hsync_end = mode->hsync_end - 1; in drm_mode_std() [all …]
|
| /freebsd-13-stable/sys/contrib/ncsw/inc/ |
| HD | enet_ext.h | 159 #define IS_ENET_MODE_VALID(mode) \ argument 160 (((mode) == e_ENET_MODE_MII_10 ) || \ 161 ((mode) == e_ENET_MODE_MII_100 ) || \ 162 ((mode) == e_ENET_MODE_RMII_10 ) || \ 163 ((mode) == e_ENET_MODE_RMII_100 ) || \ 164 ((mode) == e_ENET_MODE_SMII_10 ) || \ 165 ((mode) == e_ENET_MODE_SMII_100 ) || \ 166 ((mode) == e_ENET_MODE_GMII_1000 ) || \ 167 ((mode) == e_ENET_MODE_RGMII_10 ) || \ 168 ((mode) == e_ENET_MODE_RGMII_100 ) || \ [all …]
|
| /freebsd-13-stable/etc/mtree/ |
| HD | BSD.var.dist | 5 /set type=dir uname=root gname=wheel mode=0755 tags=package=runtime 7 account mode=0750 17 /set mode=0750 20 dist uname=auditdistd gname=audit mode=0770 22 remote uname=auditdistd gname=wheel mode=0700 25 authpf uname=root gname=authpf mode=0770 30 cache mode=0755 35 tabs mode=0700 38 /set mode=0755 40 entropy uname=operator gname=operator mode=0700 [all …]
|
| /freebsd-13-stable/lib/libc/tests/gen/ |
| HD | popen_test.c | 53 check_cloexec(FILE *fp, const char *mode) in check_cloexec() argument 61 if (strchr(mode, 'e') != NULL) in check_cloexec() 74 const char *mode; in ATF_TC_BODY() local 78 mode = allmodes[i]; in ATF_TC_BODY() 79 fp = popen("exit 7", mode); in ATF_TC_BODY() 80 ATF_CHECK_MSG(fp != NULL, "popen(, \"%s\") failed", mode); in ATF_TC_BODY() 83 check_cloexec(fp, mode); in ATF_TC_BODY() 95 const char *mode; in ATF_TC_BODY() local 100 mode = rmodes[i]; in ATF_TC_BODY() 101 fp = popen("exit 9", mode); in ATF_TC_BODY() [all …]
|
| /freebsd-13-stable/tests/sys/fs/fusefs/ |
| HD | create.cc | 43 void expect_create(const char *relpath, mode_t mode, ProcessMockerT r) in expect_create() argument 53 in.body.create.mode == mode && in expect_create() 71 void expect_create(const char *relpath, mode_t mode, ProcessMockerT r) in expect_create() argument 78 in.body.create.mode == mode && in expect_create() 95 void expect_create(const char *relpath, mode_t mode, ProcessMockerT r) in expect_create() argument 102 in.body.create.mode == mode && in expect_create() 120 mode_t mode = S_IFREG | 0755; in TEST_F() local 126 expect_create(RELPATH, mode, in TEST_F() 129 out.body.create.entry.attr.mode = mode; in TEST_F() 143 fd = open(FULLPATH, O_CREAT | O_EXCL, mode); in TEST_F() [all …]
|
| HD | mkdir.cc | 57 mode_t mode = 0755; in TEST_F() local 67 in.body.mkdir.mode == (S_IFDIR | mode) && in TEST_F() 73 ASSERT_NE(1, mkdir(FULLPATH, mode)); in TEST_F() 84 mode_t mode = 0755; in TEST_F() local 102 in.body.mkdir.mode == (S_IFDIR | mode) && in TEST_F() 108 out.body.create.entry.attr.mode = S_IFDIR | mode; in TEST_F() 114 ASSERT_EQ(0, mkdir(FULLPATH, mode)) << strerror(errno); in TEST_F() 124 mode_t mode = 0755; in TEST_F() local 140 in.body.mkdir.mode == (S_IFDIR | mode) && in TEST_F() 146 out.body.entry.attr.mode = S_IFDIR | mode; in TEST_F() [all …]
|
| /freebsd-13-stable/contrib/bsnmp/tests/ |
| HD | constbuf.h | 56 count_comment(A c, Constbuf_mode &mode) in count_comment() argument 59 mode = Constbuf_mode::BIN; in count_comment() 65 count_hex(A c, Constbuf_mode &mode, std::size_t &bits) in count_hex() argument 76 mode = Constbuf_mode::BIN; in count_hex() 82 handle_hex(A c, Constbuf_mode &mode, std::size_t &bit, U &n) in handle_hex() argument 101 mode = Constbuf_mode::BIN; in handle_hex() 107 count_check(A c, Constbuf_mode &mode, std::size_t &) in count_check() argument 111 mode = Constbuf_mode::BIN; in count_check() 117 handle_check(A c, Constbuf_mode &mode, std::size_t &bits, std::size_t &addr) in handle_check() argument 125 mode = Constbuf_mode::BIN; in handle_check() [all …]
|
| /freebsd-13-stable/tools/regression/geom/ConfCmp/ |
| HD | a1a.conf | 15 <mode>r0w0e0</mode> 27 <mode>r0w0e0</mode> 39 <mode>r0w0e0</mode> 51 <mode>r0w0e0</mode> 63 <mode>r0w0e0</mode> 75 <mode>r0w0e0</mode> 87 <mode>r0w0e0</mode> 99 <mode>r0w0e0</mode> 111 <mode>r0w0e0</mode> 123 <mode>r0w0e0</mode> [all …]
|
| HD | a1c.conf | 15 <mode>r0w0e0</mode> 27 <mode>r0w0e0</mode> 39 <mode>r0w0e0</mode> 51 <mode>r0w0e0</mode> 63 <mode>r0w0e0</mode> 75 <mode>r0w0e0</mode> 87 <mode>r0w0e0</mode> 99 <mode>r0w0e0</mode> 111 <mode>r0w0e0</mode> 123 <mode>r0w0e0</mode> [all …]
|
| HD | a1.conf | 15 <mode>r0w0e0</mode> 27 <mode>r0w0e0</mode> 39 <mode>r0w0e0</mode> 51 <mode>r0w0e0</mode> 63 <mode>r0w0e0</mode> 75 <mode>r0w0e0</mode> 87 <mode>r0w0e0</mode> 99 <mode>r0w0e0</mode> 111 <mode>r0w0e0</mode> 123 <mode>r0w0e0</mode> [all …]
|
| HD | a1b.conf | 15 <mode>r0w0e0</mode> 27 <mode>r0w0e0</mode> 39 <mode>r0w0e0</mode> 51 <mode>r0w0e0</mode> 63 <mode>r0w0e0</mode> 75 <mode>r0w0e0</mode> 87 <mode>r0w0e0</mode> 99 <mode>r0w0e0</mode> 111 <mode>r0w0e0</mode> 123 <mode>r0w0e0</mode> [all …]
|
| HD | a1d.conf | 15 <mode>r0w0e0</mode> 27 <mode>r0w0e0</mode> 39 <mode>r0w0e0</mode> 51 <mode>r0w0e0</mode> 63 <mode>r0w0e0</mode> 75 <mode>r0w0e0</mode> 87 <mode>r0w0e0</mode> 99 <mode>r0w0e0</mode> 111 <mode>r0w0e0</mode> 123 <mode>r0w0e0</mode> [all …]
|
| /freebsd-13-stable/contrib/wpa/wpa_supplicant/ |
| HD | op_classes.c | 20 static enum chan_allowed allow_channel(struct hostapd_hw_modes *mode, in allow_channel() argument 27 for (i = 0; i < mode->num_channels; i++) { in allow_channel() 30 chan_is_6ghz = is_6ghz_freq(mode->channels[i].freq); in allow_channel() 31 if (is_6ghz == chan_is_6ghz && mode->channels[i].chan == chan) in allow_channel() 35 if (i == mode->num_channels || in allow_channel() 36 (mode->channels[i].flag & HOSTAPD_CHAN_DISABLED)) in allow_channel() 40 *flags = mode->channels[i].flag; in allow_channel() 42 if (mode->channels[i].flag & HOSTAPD_CHAN_NO_IR) in allow_channel() 49 static int get_center_80mhz(struct hostapd_hw_modes *mode, u8 channel, in get_center_80mhz() argument 54 if (mode->mode != HOSTAPD_MODE_IEEE80211A) in get_center_80mhz() [all …]
|
| /freebsd-13-stable/tools/tools/usbtest/ |
| HD | usbtest.c | 192 int mode = 0; in show_default_audio_select() local 203 &mode, sizeof(mode)); in show_default_audio_select() 207 "to %d (error=%d)\n", mode, errno); in show_default_audio_select() 242 (mode == G_AUDIO_MODE_SILENT) ? "(selected)" : "", in show_default_audio_select() 243 (mode == G_AUDIO_MODE_DUMP) ? "(selected)" : "", in show_default_audio_select() 244 (mode == G_AUDIO_MODE_LOOP) ? "(selected)" : "", in show_default_audio_select() 245 (mode == G_AUDIO_MODE_PATTERN) ? "(selected)" : "", in show_default_audio_select() 252 mode = G_AUDIO_MODE_SILENT; in show_default_audio_select() 255 mode = G_AUDIO_MODE_DUMP; in show_default_audio_select() 258 mode = G_AUDIO_MODE_LOOP; in show_default_audio_select() [all …]
|
| /freebsd-13-stable/sys/contrib/device-tree/Bindings/power/reset/ |
| HD | reboot-mode.txt | 1 Generic reboot mode core map driver 3 This driver get reboot mode arguments and call the write 8 All mode properties are vendor specific, it is a indication to tell 10 as mode-xxx = <magic> (xxx is mode name, magic should be a none-zero value). 13 - mode-normal: Normal reboot mode, system reboot with command "reboot". 14 - mode-recovery: Android Recovery mode, it is a mode to format the device or update a new image. 15 - mode-bootloader: Android fastboot mode, it's a mode to re-flash partitions on the Android based d… 16 - mode-loader: A bootloader mode, it's a mode used to download image on Rockchip platform, 20 reboot-mode { 21 mode-normal = <BOOT_NORMAL>; [all …]
|
| HD | nvmem-reboot-mode.txt | 1 NVMEM reboot mode driver 3 This driver gets reboot mode magic value from reboot-mode driver 4 and stores it in a NVMEM cell named "reboot-mode". Then the bootloader 9 - compatible: should be "nvmem-reboot-mode". 10 - nvmem-cells: A phandle to the reboot mode provided by a nvmem device. 11 - nvmem-cell-names: Should be "reboot-mode". 13 The rest of the properties should follow the generic reboot-mode description 14 found in reboot-mode.txt 17 reboot-mode { 18 compatible = "nvmem-reboot-mode"; [all …]
|
| /freebsd-13-stable/sys/mips/ingenic/ |
| HD | jz4780_lcd.c | 164 jzlcd_setup_descriptor(struct jzlcd_softc *sc, const struct videomode *mode, in jzlcd_setup_descriptor() argument 171 line_sz = (mode->hdisplay * FB_BPP) >> 3; in jzlcd_setup_descriptor() 183 fdesc->cmd = LCDCMD_FRM_EN | (line_sz * mode->vdisplay); in jzlcd_setup_descriptor() 190 ((mode->vdisplay - 1) << LCDDESSIZE_HEIGHT_SHIFT) | in jzlcd_setup_descriptor() 191 ((mode->hdisplay - 1) << LCDDESSIZE_WIDTH_SHIFT); in jzlcd_setup_descriptor() 195 jzlcd_set_videomode(struct jzlcd_softc *sc, const struct videomode *mode) in jzlcd_set_videomode() argument 202 hbp = mode->htotal - mode->hsync_end; in jzlcd_set_videomode() 203 hfp = mode->hsync_start - mode->hdisplay; in jzlcd_set_videomode() 204 hsw = mode->hsync_end - mode->hsync_start; in jzlcd_set_videomode() 205 vbp = mode->vtotal - mode->vsync_end; in jzlcd_set_videomode() [all …]
|
| /freebsd-13-stable/sys/contrib/zlib/ |
| HD | gzlib.c | 73 if (state->mode == GZ_READ) { /* for reading ... */ in gz_reset() 87 local gzFile gz_open(const void *path, int fd, const char *mode) { in gz_open() argument 111 state->mode = GZ_NONE; in gz_open() 115 while (*mode) { in gz_open() 116 if (*mode >= '0' && *mode <= '9') in gz_open() 117 state->level = *mode - '0'; in gz_open() 119 switch (*mode) { in gz_open() 121 state->mode = GZ_READ; in gz_open() 125 state->mode = GZ_WRITE; in gz_open() 128 state->mode = GZ_APPEND; in gz_open() [all …]
|