Home
last modified time | relevance | path

Searched refs:ms (Results 1 – 25 of 281) sorted by relevance

12345678910>>...12

/openbsd-src/sys/dev/hid/
H A Dhidms.c65 hidms_stylus_hid_parse(struct hidms *ms, struct hid_data *d, in hidms_stylus_hid_parse() argument
83 if (ms->sc_num_stylus_buttons >= MAX_BUTTONS) in hidms_stylus_hid_parse()
85 loc_stylus_btn[ms->sc_num_stylus_buttons++] = h.loc; in hidms_stylus_hid_parse()
86 ms->sc_flags |= HIDMS_TIP; in hidms_stylus_hid_parse()
90 if (ms->sc_num_stylus_buttons >= MAX_BUTTONS) in hidms_stylus_hid_parse()
92 loc_stylus_btn[ms->sc_num_stylus_buttons++] = h.loc; in hidms_stylus_hid_parse()
93 ms->sc_flags |= HIDMS_BARREL; in hidms_stylus_hid_parse()
98 if (ms->sc_num_stylus_buttons >= MAX_BUTTONS) in hidms_stylus_hid_parse()
100 loc_stylus_btn[ms->sc_num_stylus_buttons++] = h.loc; in hidms_stylus_hid_parse()
101 ms->sc_flags |= HIDMS_SEC_BARREL; in hidms_stylus_hid_parse()
[all …]
/openbsd-src/usr.sbin/httpd/
H A Dpatterns.c69 match_error(struct match_state *ms, const char *error) in match_error() argument
71 ms->error = ms->error == NULL ? error : ms->error; in match_error()
76 check_capture(struct match_state *ms, int l) in check_capture() argument
79 if (l < 0 || l >= ms->level || ms->capture[l].len == CAP_UNFINISHED) in check_capture()
80 return match_error(ms, "invalid capture index"); in check_capture()
85 capture_to_close(struct match_state *ms) in capture_to_close() argument
87 int level = ms->level; in capture_to_close()
89 if (ms->capture[level].len == CAP_UNFINISHED) in capture_to_close()
91 return match_error(ms, "invalid pattern capture"); in capture_to_close()
95 classend(struct match_state *ms, const char *p) in classend() argument
[all …]
/openbsd-src/usr.bin/file/
H A Dmagic-test.c49 magic_reverse_type(struct magic_state *ms, enum magic_type type) in magic_reverse_type() argument
51 if (!ms->reverse) in magic_reverse_type()
173 magic_copy_from(struct magic_state *ms, ssize_t offset, void *dst, size_t size) in magic_copy_from() argument
176 offset = ms->offset; in magic_copy_from()
177 if (offset + size > ms->size) in magic_copy_from()
179 memcpy(dst, ms->base + offset, size); in magic_copy_from()
184 magic_add_result(struct magic_state *ms, struct magic_line *ml, in magic_add_result() argument
218 if (separate && *ms->out != '\0') in magic_add_result()
219 strlcat(ms->out, " ", sizeof ms->out); in magic_add_result()
220 strlcat(ms->out, add, sizeof ms->out); in magic_add_result()
[all …]
/openbsd-src/sys/dev/usb/
H A Duwacom.c110 struct hidms *ms = &sc->sc_ms; in uwacom_attach() local
131 ms->sc_device = self; in uwacom_attach()
132 ms->sc_rawmode = 1; in uwacom_attach()
133 ms->sc_flags = HIDMS_ABSX | HIDMS_ABSY; in uwacom_attach()
134 ms->sc_num_buttons = 3; in uwacom_attach()
136 ms->sc_loc_x.pos = 8; in uwacom_attach()
137 ms->sc_loc_x.size = 16; in uwacom_attach()
138 ms->sc_loc_y.pos = 24; in uwacom_attach()
139 ms->sc_loc_y.size = 16; in uwacom_attach()
141 ms->sc_tsscale.minx = 0; in uwacom_attach()
[all …]
H A Dums.c122 struct hidms *ms = &sc->sc_ms; in ums_attach() local
158 if (hidms_setup(self, ms, qflags, uha->reportid, desc, size) != 0) in ums_attach()
170 ms->sc_flags = HIDMS_Z; in ums_attach()
171 ms->sc_num_buttons = 3; in ums_attach()
173 ms->sc_loc_x.pos = 8; in ums_attach()
174 ms->sc_loc_y.pos = 16; in ums_attach()
175 ms->sc_loc_z.pos = 24; in ums_attach()
176 ms->sc_loc_btn[0].pos = 0; in ums_attach()
177 ms->sc_loc_btn[1].pos = 1; in ums_attach()
178 ms->sc_loc_btn[2].pos = 2; in ums_attach()
[all …]
/openbsd-src/gnu/usr.bin/binutils/gdb/
H A Dmacrocmd.c51 struct macro_scope *ms = NULL; in macro_expand_command() local
53 struct cleanup *cleanup_chain = make_cleanup (free_current_contents, &ms); in macro_expand_command()
66 ms = default_macro_scope (); in macro_expand_command()
67 if (ms) in macro_expand_command()
69 expanded = macro_expand (exp, standard_macro_lookup, ms); in macro_expand_command()
87 struct macro_scope *ms = NULL; in macro_expand_once_command() local
89 struct cleanup *cleanup_chain = make_cleanup (free_current_contents, &ms); in macro_expand_once_command()
102 ms = default_macro_scope (); in macro_expand_once_command()
103 if (ms) in macro_expand_once_command()
105 expanded = macro_expand_once (exp, standard_macro_lookup, ms); in macro_expand_once_command()
[all …]
H A Dmacroscope.c37 struct macro_scope *ms; in sal_macro_scope() local
43 ms = (struct macro_scope *) xmalloc (sizeof (*ms)); in sal_macro_scope()
50 ms->file = inclusion; in sal_macro_scope()
51 ms->line = sal.line; in sal_macro_scope()
69 ms->file = main; in sal_macro_scope()
70 ms->line = -1; in sal_macro_scope()
78 return ms; in sal_macro_scope()
87 struct macro_scope *ms; in default_macro_scope() local
129 struct macro_scope *ms = (struct macro_scope *) baton; in standard_macro_lookup() local
131 return macro_lookup_definition (ms->file, ms->line, name); in standard_macro_lookup()
/openbsd-src/lib/libfido2/src/
H A Dconfig.c42 const char *pin, int *ms) in config_tx() argument
71 if ((r = fido_do_ecdh(dev, &pk, &ecdh, ms)) != FIDO_OK) { in config_tx()
76 NULL, &argv[3], &argv[2], ms)) != FIDO_OK) { in config_tx()
84 fido_tx(dev, CTAP_CMD_CBOR, f.ptr, f.len, ms) < 0) { in config_tx()
102 config_enable_entattest_wait(fido_dev_t *dev, const char *pin, int *ms) in config_enable_entattest_wait() argument
107 ms)) != FIDO_OK) in config_enable_entattest_wait()
110 return fido_rx_cbor_status(dev, ms); in config_enable_entattest_wait()
116 int ms = dev->timeout_ms; in fido_dev_enable_entattest() local
118 return (config_enable_entattest_wait(dev, pin, &ms)); in fido_dev_enable_entattest()
122 config_toggle_always_uv_wait(fido_dev_t *dev, const char *pin, int *ms) in config_toggle_always_uv_wait() argument
[all …]
H A Dio.c33 tx_pkt(fido_dev_t *d, const void *pkt, size_t len, int *ms)
43 if (fido_time_delta(&ts, ms) != 0)
50 tx_empty(fido_dev_t *d, uint8_t cmd, int *ms) in tx_empty() argument
62 if (len > sizeof(pkt) || (n = tx_pkt(d, pkt, len, ms)) < 0 || in tx_empty()
70 tx_preamble(fido_dev_t *d, uint8_t cmd, const void *buf, size_t count, int *ms) in tx_preamble() argument
89 if (len > sizeof(pkt) || (n = tx_pkt(d, pkt, len, ms)) < 0 || in tx_preamble()
97 tx_frame(fido_dev_t *d, uint8_t seq, const void *buf, size_t count, int *ms) in tx_frame() argument
114 if (len > sizeof(pkt) || (n = tx_pkt(d, pkt, len, ms)) < 0 || in tx_frame()
122 tx(fido_dev_t *d, uint8_t cmd, const unsigned char *buf, size_t count, int *ms) in tx() argument
126 if ((sent = tx_preamble(d, cmd, buf, count, ms)) == 0) { in tx()
[all …]
H A Dbio.c61 const char *pin, const fido_blob_t *token, int *ms) in bio_tx() argument
93 if ((r = fido_do_ecdh(dev, &pk, &ecdh, ms)) != FIDO_OK) { in bio_tx()
98 NULL, &argv[4], &argv[3], ms)) != FIDO_OK) { in bio_tx()
112 fido_tx(dev, CTAP_CMD_CBOR, f.ptr, f.len, ms) < 0) { in bio_tx()
234 bio_rx_template_array(fido_dev_t *dev, fido_bio_template_array_t *ta, int *ms) in bio_rx_template_array() argument
243 ms)) < 0) { in bio_rx_template_array()
259 const char *pin, int *ms) in bio_get_template_array_wait() argument
263 if ((r = bio_tx(dev, CMD_ENUM, NULL, 0, pin, NULL, ms)) != FIDO_OK || in bio_get_template_array_wait()
264 (r = bio_rx_template_array(dev, ta, ms)) != FIDO_OK) in bio_get_template_array_wait()
274 int ms = dev->timeout_ms; in fido_bio_dev_get_template_array() local
[all …]
H A Dcredman.c115 const char *rp_id, fido_opt_t uv, int *ms) in credman_tx() argument
147 if ((r = fido_do_ecdh(dev, &pk, &ecdh, ms)) != FIDO_OK) { in credman_tx()
152 rp_id, &argv[3], &argv[2], ms)) != FIDO_OK) { in credman_tx()
160 fido_tx(dev, CTAP_CMD_CBOR, f.ptr, f.len, ms) < 0) { in credman_tx()
201 credman_rx_metadata(fido_dev_t *dev, fido_credman_metadata_t *metadata, int *ms) in credman_rx_metadata() argument
210 ms)) < 0) { in credman_rx_metadata()
226 const char *pin, int *ms) in credman_get_metadata_wait() argument
231 FIDO_OPT_TRUE, ms)) != FIDO_OK || in credman_get_metadata_wait()
232 (r = credman_rx_metadata(dev, metadata, ms)) != FIDO_OK) in credman_get_metadata_wait()
242 int ms = dev->timeout_ms; in fido_credman_get_dev_metadata() local
[all …]
H A Dpin.c149 const es256_pk_t *pk, int *ms) in ctap20_uv_token_tx() argument
188 &f) < 0 || fido_tx(dev, CTAP_CMD_CBOR, f.ptr, f.len, ms) < 0) { in ctap20_uv_token_tx()
206 const es256_pk_t *pk, uint8_t cmd, const char *rpid, int *ms) in ctap21_uv_token_tx() argument
251 &f) < 0 || fido_tx(dev, CTAP_CMD_CBOR, f.ptr, f.len, ms) < 0) { in ctap21_uv_token_tx()
284 int *ms) in uv_token_rx() argument
297 ms)) < 0) { in uv_token_rx()
325 fido_blob_t *token, int *ms) in uv_token_wait() argument
332 r = ctap21_uv_token_tx(dev, pin, ecdh, pk, cmd, rpid, ms); in uv_token_wait()
334 r = ctap20_uv_token_tx(dev, pin, ecdh, pk, ms); in uv_token_wait()
338 return (uv_token_rx(dev, ecdh, token, ms)); in uv_token_wait()
[all …]
H A Dauthkey.c25 fido_dev_authkey_tx(fido_dev_t *dev, int *ms) in fido_dev_authkey_tx() argument
46 &f) < 0 || fido_tx(dev, CTAP_CMD_CBOR, f.ptr, f.len, ms) < 0) { in fido_dev_authkey_tx()
61 fido_dev_authkey_rx(fido_dev_t *dev, es256_pk_t *authkey, int *ms) in fido_dev_authkey_rx() argument
67 (void *)authkey, *ms); in fido_dev_authkey_rx()
72 ms)) < 0) { in fido_dev_authkey_rx()
82 fido_dev_authkey_wait(fido_dev_t *dev, es256_pk_t *authkey, int *ms) in fido_dev_authkey_wait() argument
86 if ((r = fido_dev_authkey_tx(dev, ms)) != FIDO_OK || in fido_dev_authkey_wait()
87 (r = fido_dev_authkey_rx(dev, authkey, ms)) != FIDO_OK) in fido_dev_authkey_wait()
94 fido_dev_authkey(fido_dev_t *dev, es256_pk_t *authkey, int *ms) in fido_dev_authkey() argument
96 return (fido_dev_authkey_wait(dev, authkey, ms)); in fido_dev_authkey()
H A Dreset.c10 fido_dev_reset_tx(fido_dev_t *dev, int *ms) in fido_dev_reset_tx() argument
14 if (fido_tx(dev, CTAP_CMD_CBOR, cbor, sizeof(cbor), ms) < 0) { in fido_dev_reset_tx()
23 fido_dev_reset_wait(fido_dev_t *dev, int *ms) in fido_dev_reset_wait() argument
27 if ((r = fido_dev_reset_tx(dev, ms)) != FIDO_OK || in fido_dev_reset_wait()
28 (r = fido_rx_cbor_status(dev, ms)) != FIDO_OK) in fido_dev_reset_wait()
42 int ms = dev->timeout_ms; in fido_dev_reset() local
44 return (fido_dev_reset_wait(dev, &ms)); in fido_dev_reset()
H A Du2f.c31 delay_ms(unsigned int ms, int *ms_remain) in delay_ms() argument
33 if (*ms_remain > -1 && (unsigned int)*ms_remain < ms) in delay_ms()
34 ms = (unsigned int)*ms_remain; in delay_ms()
36 if (ms > UINT_MAX / 1000) { in delay_ms()
37 fido_log_debug("%s: ms=%u", __func__, ms); in delay_ms()
41 if (usleep(ms * 1000) < 0) { in delay_ms()
47 *ms_remain -= (int)ms; in delay_ms()
143 send_dummy_register(fido_dev_t *dev, int *ms) in send_dummy_register() argument
166 iso7816_len(apdu), ms) < 0) { in send_dummy_register()
171 if (fido_rx(dev, CTAP_CMD_MSG, &reply, sizeof(reply), ms) < 2) { in send_dummy_register()
[all …]
H A Dnfc.c146 rx_init(fido_dev_t *d, unsigned char *buf, size_t count, int ms) in rx_init() argument
159 if ((n = d->io.read(d->io_handle, f, sizeof(f), ms)) < 2 || in rx_init()
203 rx_apdu(fido_dev_t *d, uint8_t sw[2], unsigned char **buf, size_t *count, int *ms) in rx_apdu() argument
212 if ((n = d->io.read(d->io_handle, f, sizeof(f), *ms)) < 2) { in rx_apdu()
217 if (fido_time_delta(&ts, ms) != 0) in rx_apdu()
235 rx_msg(fido_dev_t *d, unsigned char *buf, size_t count, int ms) in rx_msg() argument
240 if (rx_apdu(d, sw, &buf, &count, &ms) < 0) { in rx_msg()
247 rx_apdu(d, sw, &buf, &count, &ms) < 0) { in rx_msg()
266 rx_cbor(fido_dev_t *d, unsigned char *buf, size_t count, int ms) in rx_cbor() argument
270 if ((r = rx_msg(d, buf, count, ms)) < 2) in rx_cbor()
[all …]
H A Dlargeblob.c156 largeblob_get_tx(fido_dev_t *dev, size_t offset, size_t count, int *ms) in largeblob_get_tx() argument
172 fido_tx(dev, CTAP_CMD_CBOR, f.ptr, f.len, ms) < 0) { in largeblob_get_tx()
201 largeblob_get_rx(fido_dev_t *dev, fido_blob_t **chunk, int *ms) in largeblob_get_rx() argument
208 ms)) < 0) { in largeblob_get_rx()
422 largeblob_get_array(fido_dev_t *dev, cbor_item_t **item, int *ms) in largeblob_get_array() argument
435 if ((r = largeblob_get_tx(dev, array->len, n, ms)) != FIDO_OK || in largeblob_get_array()
436 (r = largeblob_get_rx(dev, &chunk, ms)) != FIDO_OK) { in largeblob_get_array()
494 size_t chunk_len, size_t offset, size_t totalsiz, int *ms) in largeblob_set_tx() argument
521 fido_tx(dev, CTAP_CMD_CBOR, f.ptr, f.len, ms) < 0) { in largeblob_set_tx()
538 int *ms) in largeblob_get_uv_token() argument
[all …]
/openbsd-src/gnu/usr.bin/perl/cpan/Math-BigInt/t/
H A Dsub_mbf.t22 my $ms = $CLASS -> new(23);
23 is($ms->{_custom}, 1, '$ms has custom attribute \$ms->{_custom}');
26 isa_ok($ms, 'Math::BigFloat');
27 ok(!$ms -> isa('Math::BigInt'),
28 "An object of class '" . ref($ms) . "' isn't a 'Math::BigInt'");
31 $ms += $bf;
32 is($ms, 46, '$ms i
[all...]
H A Dsub_mbi.t22 my $ms = $CLASS -> new(23);
23 is($ms->{_custom}, 1, '$ms has custom attribute \$ms->{_custom}');
26 isa_ok($ms, 'Math::BigInt');
29 $ms += $bi;
30 is($ms, 46, '$ms is 46');
31 is($ms->{_custom}, 1, '$ms ha
[all...]
/openbsd-src/games/sail/
H A Dpl_3.c86 closest = closestenemy(ms, (r ? 'r' : 'l'), 1); in acceptcombat()
91 target = range(ms, closest); in acceptcombat()
119 rakehim = gunsbear(ms, closest) && !gunsbear(closest, ms); in acceptcombat()
120 temp = portside(closest, ms, 1) - closest->file->dir + 1; in acceptcombat()
192 table(shootat, load, hit, closest, ms, roll); in acceptcombat()
220 if (sp == ms || sp->file->dir == 0) in grapungrap()
222 if (range(ms, sp) > 1 && !grappled2(ms, sp)) in grapungrap()
228 || ms->nationality == capship(sp)->nationality) { in grapungrap()
229 Write(W_GRAP, ms, sp->file->index, 0, 0, 0); in grapungrap()
232 makesignal(ms, "grappled with $$", sp); in grapungrap()
[all …]
H A Dpl_5.c55 if (!mc->crew3 || snagged(ms) || !windspeed) { in acceptmove()
60 ta = maxturns(ms, &af); in acceptmove()
61 ma = maxmove(ms, mf->dir, 0); in acceptmove()
83 vma = min(ma, maxmove(ms, dir, 0)); in acceptmove()
125 Write(W_FS, ms, 0, 0, 0, 0); in acceptmove()
133 Write(W_FS, ms, 0, 0, 0, 0); in acceptmove()
141 Writestr(W_MOVE, ms, movebuf); in acceptmove()
175 if (sp == ms || sp->file->dir == 0 || range(ms, sp) > 1) in acceptboard()
177 if (ms->nationality == capship(sp)->nationality) in acceptboard()
179 if (meleeing(ms, sp) && crew[2]) { in acceptboard()
[all …]
/openbsd-src/lib/libcurses/tinfo/
H A Dlib_napms.c60 NCURSES_SP_NAME(napms) (NCURSES_SP_DCLx int ms) in NCURSES_EXPORT()
62 T((T_CALLED("napms(%d)"), ms)); in NCURSES_EXPORT()
65 CallDriver_1(SP_PARM, td_nap, ms); in NCURSES_EXPORT()
73 request.tv_sec = ms / 1000; in NCURSES_EXPORT()
74 request.tv_nsec = (ms % 1000) * 1000000; in NCURSES_EXPORT()
81 Sleep((DWORD) ms); in NCURSES_EXPORT()
83 _nc_timed_wait(0, 0, ms, (int *) 0 EVENTLIST_2nd(0)); in NCURSES_EXPORT()
92 napms(int ms) in napms() argument
94 return NCURSES_SP_NAME(napms) (CURRENT_SCREEN, ms); in napms()
/openbsd-src/sbin/iked/
H A Deap.c193 struct eap_mschap_challenge *ms; in eap_challenge_request() local
211 sizeof(*ms) + strlen(name)); in eap_challenge_request()
213 if ((ms = ibuf_reserve(e, sizeof(*ms))) == NULL) in eap_challenge_request()
215 ms->msc_opcode = EAP_MSOPCODE_CHALLENGE; in eap_challenge_request()
216 ms->msc_id = eap->eap_id; in eap_challenge_request()
217 ms->msc_length = htobe16(sizeof(*ms) + strlen(name)); in eap_challenge_request()
218 ms->msc_valuesize = sizeof(ms in eap_challenge_request()
317 struct eap_mschap *ms; eap_mschap_success() local
345 struct eap_mschap *ms; eap_mschap() local
421 struct eap_mschap *ms; eap_parse() local
[all...]
/openbsd-src/gnu/llvm/lld/wasm/
H A DOutputSegment.cpp45 MergeInputChunk *ms = dyn_cast<MergeInputChunk>(s); in finalizeInputSegments() local
46 if (!ms) { in finalizeInputSegments()
52 assert(ms->live); in finalizeInputSegments()
55 return seg->flags == ms->flags && seg->alignment == ms->alignment; in finalizeInputSegments()
59 << " alignment=" << ms->alignment << "\n"); in finalizeInputSegments()
60 auto *syn = make<SyntheticMergedChunk>(name, ms->alignment, ms->flags); in finalizeInputSegments()
68 (*i)->addMergeChunk(ms); in finalizeInputSegments()
71 for (auto *ms : mergedSegments) in finalizeInputSegments() local
72 ms->finalizeContents(); in finalizeInputSegments()
/openbsd-src/sys/dev/i2c/
H A Dims.c101 struct hidms *ms = &sc->sc_ms; in ims_attach() local
116 if (hidms_setup(self, ms, 0, iha->reportid, desc, size) != 0) in ims_attach()
119 hidms_attach(ms, &ims_accessops); in ims_attach()
126 struct hidms *ms = &sc->sc_ms; in ims_detach() local
128 return hidms_detach(ms, flags); in ims_detach()
135 struct hidms *ms = &sc->sc_ms; in ims_intr() local
137 if (ms->sc_enabled != 0) in ims_intr()
138 hidms_input(ms, (uint8_t *)buf, len); in ims_intr()
145 struct hidms *ms = &sc->sc_ms; in ims_enable() local
148 if ((rv = hidms_enable(ms)) != 0) in ims_enable()
[all …]

12345678910>>...12