Home
last modified time | relevance | path

Searched refs:mode (Results 1 – 25 of 2902) sorted by relevance

12345678910>>...117

/freebsd/tools/regression/security/open_to_operation/
H A Dopen_to_operation.c128 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 Devpkdf_tls13_kdf.txt22 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 …]
/freebsd/crypto/openssl/engines/asm/
H A De_padlock-x86_64.pl286 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 De_padlock-x86.pl187 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 Dcap_getmode.c45 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 Ddrm_modes.c47 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 Ddrm_edid.c535 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 Denet_ext.h159 #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 Dpopen_test.c52 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/tests/sys/fs/fusefs/
H A Dcreate.cc43 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 Dmkdir.cc57 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/etc/mtree/
H A DBSD.var.dist5 /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
[all...]
/freebsd/contrib/bsnmp/tests/
H A Dconstbuf.h56 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 Da1.conf15 <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 Da1a.conf15 <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 Da1d.conf15 <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 Da1b.conf15 <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 Da1c.conf15 <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 Dop_classes.c20 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 Dusbtest.c192 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 Dreboot-mode.txt1 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 …]
H A Dnvmem-reboot-mode.txt1 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/sys/contrib/zlib/
H A Dgzlib.c73 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 …]
/freebsd/sys/contrib/ck/include/
H A Dck_ec.h483 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/crypto/openssl/providers/implementations/ciphers/
H A Dcipher_aes_hw.c28 if ((dat->mode == EVP_CIPH_ECB_MODE || dat->mode == EVP_CIPH_CBC_MODE) in cipher_hw_aes_initkey()
36 if (dat->mode == EVP_CIPH_CBC_MODE) in cipher_hw_aes_initkey()
40 if (dat->mode == EVP_CIPH_ECB_MODE) in cipher_hw_aes_initkey()
46 if (BSAES_CAPABLE && dat->mode == EVP_CIPH_CBC_MODE) { in cipher_hw_aes_initkey()
56 dat->stream.cbc = (dat->mode == EVP_CIPH_CBC_MODE) in cipher_hw_aes_initkey()
63 dat->stream.cbc = (dat->mode == EVP_CIPH_CBC_MODE) in cipher_hw_aes_initkey()
73 if (dat->mode == EVP_CIPH_CBC_MODE) in cipher_hw_aes_initkey()
78 if (dat->mode == EVP_CIPH_ECB_MODE) in cipher_hw_aes_initkey()
83 if (dat->mode == EVP_CIPH_CTR_MODE) in cipher_hw_aes_initkey()
91 if (BSAES_CAPABLE && dat->mode == EVP_CIPH_CTR_MODE) { in cipher_hw_aes_initkey()
[all …]

12345678910>>...117