| /freebsd/tools/regression/security/open_to_operation/ |
| H A D | open_to_operation.c | 128 ok_mode(const char *testname, const char *comment, int mode) in ok_mode() argument 133 printf("ok %d - %s # mode 0x%x\n", testnum, testname, mode); in ok_mode() 136 mode, comment); in ok_mode() 140 notok_mode(const char *testname, const char *comment, int mode) in notok_mode() argument 146 mode); in notok_mode() 149 mode, comment); in notok_mode() 157 int mode, int expected_errno) in try_directory_open() argument 161 dfd = open(directory, mode); in try_directory_open() 164 notok_mode(testname, "opened", mode); in try_directory_open() 166 ok_mode(testname, NULL, mode); in try_directory_open() [all …]
|
| /freebsd/crypto/openssl/test/recipes/30-test_evp_data/ |
| H A D | evpkdf_tls13_kdf.txt | 22 Ctrl.mode = mode:EXTRACT_ONLY 28 Ctrl.mode = mode:EXPAND_ONLY 37 Ctrl.mode = mode:EXPAND_ONLY 46 Ctrl.mode = mode:EXTRACT_ONLY 55 Ctrl.mode = mode:EXPAND_ONLY 64 Ctrl.mode = mode:EXPAND_ONLY 73 Ctrl.mode = mode:EXTRACT_ONLY 81 Ctrl.mode = mode:EXPAND_ONLY 90 Ctrl.mode = mode:EXPAND_ONLY 99 Ctrl.mode = mode:EXPAND_ONLY [all …]
|
| H A D | evpkdf_kbkdf_counter.txt | 28 Ctrl.mode = mode:COUNTER 41 Ctrl.mode = mode:COUNTER 54 Ctrl.mode = mode:COUNTER 67 Ctrl.mode = mode:COUNTER 85 Ctrl.mode = mode:COUNTER 98 Ctrl.mode = mode:COUNTER 111 Ctrl.mode = mode:COUNTER 124 Ctrl.mode = mode:COUNTER 142 Ctrl.mode = mode:COUNTER 155 Ctrl.mode = mode:COUNTER [all …]
|
| /freebsd/crypto/openssl/engines/asm/ |
| H A D | e_padlock-x86_64.pl | 286 my ($mode,$opcode) = @_; 290 .globl padlock_${mode}_encrypt 291 .type padlock_${mode}_encrypt,\@function,4 293 padlock_${mode}_encrypt: 299 jnz .L${mode}_abort 301 jnz .L${mode}_abort 310 jnz .L${mode}_aligned 316 jnz .L${mode}_aligned 331 $code.=<<___ if ($mode eq "ctr32"); 332 .L${mode}_reenter: [all …]
|
| H A D | e_padlock-x86.pl | 187 my ($mode,$opcode) = @_; 190 &function_begin("padlock_${mode}_encrypt"); 196 &jnz (&label("${mode}_abort")); 198 &jnz (&label("${mode}_abort")); 200 &DWP(&label("padlock_saved_context")."-".&label("${mode}_pic_point"))); 204 &set_label("${mode}_pic_point"); 207 if ($mode eq "ctr32") { 212 &jnz (&label("${mode}_aligned")); 218 &jnz (&label("${mode}_aligned")); 237 if ($PADLOCK_PREFETCH{$mode}) { [all …]
|
| /freebsd/tools/regression/capsicum/syscalls/ |
| H A D | cap_getmode.c | 45 unsigned int mode; in main() 51 mode = 666; in main() 52 CHECK(cap_getmode(&mode) == 0); in main() 53 /* If cap_getmode() succeeded mode should be modified. */ in main() 54 CHECK(mode != 666); in main() 55 /* We are not in capability mode. */ in main() 56 CHECK(mode == 0); in main() 66 /* If parent is not in capability mode, child after fork() also won't be. */ in main() 72 mode = 666; in main() 73 CHECK(cap_getmode(&mode) in main() 46 unsigned int mode; main() local [all...] |
| /freebsd/sys/dev/drm2/ |
| H A D | 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() 498 void drm_mode_set_name(struct drm_display_mode *mode) in drm_mode_set_name() argument 500 bool interlaced = !!(mode->flags & DRM_MODE_FLAG_INTERLACE); in drm_mode_set_name() 502 snprintf(mode->name, DRM_DISPLAY_MODE_LEN, "%dx%d%s", in drm_mode_set_name() 503 mode->hdisplay, mode->vdisplay, in drm_mode_set_name() [all …]
|
| H A D | 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/sys/contrib/ncsw/inc/ |
| H A D | 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/lib/libc/tests/gen/ |
| H A D | popen_test.c | 52 check_cloexec(FILE *fp, const char *mode) in check_cloexec() argument 60 if (strchr(mode, 'e') != NULL) in check_cloexec() 73 const char *mode; in ATF_TC_BODY() local 77 mode = allmodes[i]; in ATF_TC_BODY() 78 fp = popen("exit 7", mode); in ATF_TC_BODY() 79 ATF_CHECK_MSG(fp != NULL, "popen(, \"%s\") failed", mode); in ATF_TC_BODY() 82 check_cloexec(fp, mode); in ATF_TC_BODY() 94 const char *mode; in ATF_TC_BODY() local 99 mode = rmodes[i]; in ATF_TC_BODY() 100 fp = popen("exit 9", mode); in ATF_TC_BODY() [all …]
|
| /freebsd/etc/mtree/ |
| H A D | 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/tests/sys/fs/fusefs/ |
| H A D | 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 …]
|
| H A D | 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/contrib/bsnmp/tests/ |
| H A D | 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/tools/regression/geom/ConfCmp/ |
| H A D | 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 …]
|
| H A D | 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 …]
|
| H A D | 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 …]
|
| H A D | 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 …]
|
| H A D | 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 …]
|
| /freebsd/contrib/wpa/wpa_supplicant/ |
| H A D | 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/tools/tools/usbtest/ |
| H A D | 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/sys/contrib/device-tree/Bindings/power/reset/ |
| H A D | 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 …]
|
| /freebsd/crypto/openssl/providers/implementations/ciphers/ |
| H A D | cipher_sm4_hw.c | 20 || (ctx->mode != EVP_CIPH_ECB_MODE in cipher_hw_sm4_initkey() 21 && ctx->mode != EVP_CIPH_CBC_MODE)) { in cipher_hw_sm4_initkey() 28 if (ctx->mode == EVP_CIPH_CBC_MODE) in cipher_hw_sm4_initkey() 33 if (ctx->mode == EVP_CIPH_ECB_MODE) in cipher_hw_sm4_initkey() 38 if (ctx->mode == EVP_CIPH_CTR_MODE) in cipher_hw_sm4_initkey() 50 if (ctx->mode == EVP_CIPH_CBC_MODE) in cipher_hw_sm4_initkey() 52 else if (ctx->mode == EVP_CIPH_ECB_MODE) in cipher_hw_sm4_initkey() 54 else if (ctx->mode == EVP_CIPH_CTR_MODE) in cipher_hw_sm4_initkey() 63 if (ctx->mode == EVP_CIPH_CBC_MODE) in cipher_hw_sm4_initkey() 65 else if (ctx->mode == EVP_CIPH_ECB_MODE) in cipher_hw_sm4_initkey() [all …]
|
| /freebsd/sys/contrib/ck/include/ |
| H A D | ck_ec.h | 483 static void ck_ec32_inc(struct ck_ec32 *ec, const struct ck_ec_mode *mode); 488 static void ck_ec64_inc(struct ck_ec64 *ec, const struct ck_ec_mode *mode); 503 const struct ck_ec_mode *mode, 510 const struct ck_ec_mode *mode, 527 const struct ck_ec_mode *mode, 538 const struct ck_ec_mode *mode, 546 const struct ck_ec_mode *mode, 571 const struct ck_ec_mode *mode, 582 const struct ck_ec_mode *mode, 625 const struct ck_ec_mode *mode) in ck_ec32_inc() argument [all …]
|
| /freebsd/sys/contrib/zlib/ |
| H A D | gzlib.c | 73 if (state->mode == GZ_READ) { /* for reading ... */ in gz_reset() 89 local gzFile gz_open(const void *path, int fd, const char *mode) { in gz_open() argument 98 if (path == NULL || mode == NULL) in gz_open() 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() [all …]
|