Searched refs:states (Results 1 - 25 of 81) sorted by relevance

1234

/freebsd-12-stable/contrib/libarchive/libarchive/
H A Darchive_check_magic.c104 write_all_states(char *buff, unsigned int states) argument
111 while ((lowbit = states & (1 + ~states)) != 0) {
112 states &= ~lowbit; /* Clear the low bit. */
114 if (states != 0)
/freebsd-12-stable/sys/dev/dpms/
H A Ddpms.c137 int error, states; local
139 error = dpms_get_supported_states(&states);
212 dpms_get_supported_states(int *states) argument
215 *states = 0;
216 return (dpms_call_bios(VBE_DPMS_GET_SUPPORTED_STATES, states));
/freebsd-12-stable/sys/dev/gpio/
H A Dgpioregulator.c64 struct gpioregulator_state *states; member in struct:gpioregulator_init_def
140 if (sc->def->states[n].val >= min_uvolt &&
141 sc->def->states[n].val <= max_uvolt) {
142 state = &sc->def->states[n];
180 if (sc->def->states[n].mask == mask) {
181 *uvolt = sc->def->states[n].val;
218 /* "states" property (required) */
219 len = OF_getencprop_alloc_multi(node, "states", sizeof(*pstates),
222 device_printf(sc->dev, "invalid 'states' property\n");
227 sc->init_def.states
[all...]
/freebsd-12-stable/usr.bin/top/
H A Ddisplay.h19 void i_cpustates(int *states);
33 void u_cpustates(int *states);
H A Ddisplay.c418 i_cpustates(int *states) argument
424 int *hstates = states;
446 value = *states++;
458 states = hstates;
459 memcpy(lcpustates, states, num_cpustates * sizeof(int) * num_cpus);
463 u_cpustates(int *states) argument
468 int *hstates = states;
487 if (*lp != *states)
494 value = *states;
507 states
[all...]
/freebsd-12-stable/sys/compat/linuxkpi/common/src/
H A Dlinux_work.c39 * Define all work struct states
133 static const uint8_t states[WORK_ST_MAX] __aligned(8) = {
144 switch (linux_update_state(&work->state, states)) {
216 static const uint8_t states[WORK_ST_MAX] __aligned(8) = {
227 switch (linux_update_state(&dwork->work.state, states)) {
261 static const uint8_t states[WORK_ST_MAX] __aligned(8) = {
286 switch (linux_update_state(&work->state, states)) {
339 static const uint8_t states[WORK_ST_MAX] __aligned(8) = {
348 switch (linux_update_state(&dwork->work.state, states)) {
366 static const uint8_t states[WORK_ST_MA
[all...]
/freebsd-12-stable/sys/powerpc/cpufreq/
H A Ddfs.c146 int states; local
149 states = sc->dfs4 ? 3 : 2;
152 if (*count < states)
156 memset(sets, CPUFREQ_VAL_UNKNOWN, sizeof(*sets) * states);
164 *count = states;
/freebsd-12-stable/gnu/usr.bin/grep/
H A Ddfa.h76 states of the DFA are those that would have
332 dfa_state *states; /* States of the dfa. */ member in struct:dfa
333 int sindex; /* Index for adding new states. */
334 int salloc; /* Number of states currently allocated. */
357 int **trans; /* Transition tables for states that can
376 #define ACCEPTING(s, r) ((r).states[s].constraint)
381 SUCCEEDS_IN_CONTEXT((dfa).states[state].constraint, \
387 #define FIRST_MATCHING_REGEXP(state, dfa) (-(dfa).states[state].first_end)
H A Ddfa.c1496 if (hash != d->states[i].hash || s->nelem != d->states[i].elems.nelem
1497 || newline != d->states[i].newline || letter != d->states[i].letter)
1501 != d->states[i].elems.elems[j].constraint
1502 || s->elems[j].index != d->states[i].elems.elems[j].index)
1509 REALLOC_IF_NECESSARY(d->states, dfa_state, d->salloc, d->sindex);
1510 d->states[i].hash = hash;
1511 MALLOC(d->states[i].elems.elems, position, s->nelem);
1512 copy(s, &d->states[
[all...]
/freebsd-12-stable/contrib/tcpdump/
H A Dprint-hsrp.c50 /* HSRP states and associated names. */
51 static const struct tok states[] = { variable in typeref:struct:tok
109 ND_PRINT((ndo, "state=%s ", tok2str(states, "Unknown (%d)", hp->hsrp_state)));
/freebsd-12-stable/usr.sbin/bsnmpd/modules/snmp_hostres/
H A Dhostres_processor_tbl.c67 long states[MAX_CPU_SAMPLES][CPUSTATES]; member in struct:processor_entry
113 /* Sum delta for all states. */
115 delta += e->states[e->cur_sample_idx][i];
116 delta -= e->states[oldest][i];
123 usage = (double)(e->states[e->cur_sample_idx][CPUSTATES-1] -
124 e->states[oldest][CPUSTATES-1]) / delta;
144 e->states[e->cur_sample_idx][i] = cp_times[i];
/freebsd-12-stable/tests/sys/netpfil/pf/
H A Dkillstate.sh35 atf_set descr 'Test killing states by IPv4 address'
107 atf_set descr 'Test killing states by label'
174 atf_set descr 'Test killing states with multiple labels by label'
252 atf_set descr 'Test killing states by route-to/reply-to address'
295 # Killing states with the relevant gateway does terminate our state
311 atf_set descr 'Test killing matching states'
356 # Expect two states
357 states=$(jexec alcatraz pfctl -s s | wc -l)
358 if [ $states -ne 2 ] ;
360 atf_fail "Expected two states, foun
[all...]
H A Dpfsync.sh87 if ! jexec two pfctl -s states | grep icmp | grep 198.51.100.1 | \
170 jexec two pfctl -s states
171 if ! jexec two pfctl -s states | grep icmp | grep 198.51.100.1 | \
/freebsd-12-stable/contrib/dialog/
H A Dchecklist.c48 const char *states; member in struct:__anon1097
59 const char *states,
82 states[item->state]);
111 data->states,
147 * to read the list item states back directly without putting them in the
148 * output buffer. It also provides for more than two states over which the
159 const char *states,
256 /* we need at least two states */
257 if (states == 0 || strlen(states) <
56 print_item(ALL_DATA * data, WINDOW *win, DIALOG_LISTITEM * item, const char *states, int choice, int selected) argument
152 dlg_checklist(const char *title, const char *cprompt, int height, int width, int list_height, int item_no, DIALOG_LISTITEM * items, const char *states, int flag, int *current_item) argument
[all...]
H A Dtreeview.c45 const char *states; member in struct:__anon1125
55 const char *states,
79 states[item->state]);
114 data->states,
151 * to read the list item states back directly without putting them in the
162 const char *states,
213 /* we need at least two states */
214 if (states == 0 || strlen(states) < 2)
215 states
53 print_item(ALL_DATA * data, DIALOG_LISTITEM * item, const char *states, int depths, int choice, int selected) argument
155 dlg_treeview(const char *title, const char *cprompt, int height, int width, int list_height, int item_no, DIALOG_LISTITEM * items, const char *states, int *depths, int flag, int *current_item) argument
[all...]
/freebsd-12-stable/usr.bin/iscsictl/
H A Discsictl.c398 struct iscsi_session_state *states = NULL; local
407 states = realloc(states,
409 if (states == NULL)
414 isl.isl_pstates = states;
427 state = &states[i];
480 struct iscsi_session_state *states = NULL; local
488 states = realloc(states,
490 if (states
641 struct iscsi_session_state *states = NULL; local
[all...]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Support/
H A Dregexec.c56 /* macros for manipulating states, small version */
57 /* FIXME: 'states' is assumed as 'long' on small version. */
59 #define states states1 macro
85 #undef states macro
105 /* macros for manipulating states, large version */
106 #define states char * macro
H A Dregengine.inc81 states st; /* current states */
82 states fresh; /* states for a fresh start */
83 states tmp; /* temporary */
84 states empty; /* empty set of states */
95 static states step(struct re_guts *, sopno, sopno, states, int, states);
[all...]
/freebsd-12-stable/contrib/nvi/regex/
H A Dregexec.c60 /* macros for manipulating states, small version */
61 #define states int macro
88 #undef states macro
108 /* macros for manipulating states, large version */
109 #define states char * macro
/freebsd-12-stable/contrib/googletest/googlemock/src/
H A Dgmock-spec-builders.cc644 StateMap& states() { return states_; } function in class:__anon1868::MockObjectRegistry
713 g_mock_object_registry.states()[mock_obj].leakable = true;
741 if (g_mock_object_registry.states().count(mock_obj) == 0) {
750 g_mock_object_registry.states()[mock_obj].function_mockers;
768 g_mock_object_registry.states()[mock_obj].function_mockers.insert(mocker);
778 MockObjectState& state = g_mock_object_registry.states()[mock_obj];
802 g_mock_object_registry.states().begin();
803 it != g_mock_object_registry.states().end(); ++it) {
808 g_mock_object_registry.states().erase(it);
820 if (g_mock_object_registry.states()
[all...]
/freebsd-12-stable/lib/libpfctl/
H A Dlibpfctl.c731 pfctl_get_states(int dev, struct pfctl_states *states) argument
739 bzero(states, sizeof(*states));
740 TAILQ_INIT(&states->states);
758 states->count = nvlist_get_number(nvl, "count");
760 /* Are there any states? */
761 if (states->count == 0)
764 if (nvlist_exists_nvlist_array(nvl, "states"))
765 slist = nvlist_get_nvlist_array(nvl, "states",
809 pfctl_free_states(struct pfctl_states *states) argument
[all...]
/freebsd-12-stable/lib/libc/regex/
H A Dregexec.c99 /* macros for manipulating states, small version */
100 #define states long macro
101 #define states1 states /* for later use in regexec() decision */
130 #undef states macro
152 /* macros for manipulating states, large version */
153 #define states char * macro
183 /* multibyte character & large states version */
/freebsd-12-stable/crypto/openssh/
H A Dxmss_fast.h97 int xmssmt_keypair(unsigned char *pk, unsigned char *sk, bds_state *states, unsigned char *wots_sigs, xmssmt_params *params);
H A Dxmss_fast.c750 int xmssmt_keypair(unsigned char *pk, unsigned char *sk, bds_state *states, unsigned char *wots_sigs, xmssmt_params *params) argument
770 treehash_setup(pk, params->xmss_par.h, 0, states + i, sk+params->index_len, &(params->xmss_par), pk+n, addr);
775 treehash_setup(pk, params->xmss_par.h, 0, states + i, sk+params->index_len, &(params->xmss_par), pk+n, addr);
787 int xmssmt_sign(unsigned char *sk, bds_state *states, unsigned char *wots_sigs, unsigned char *sig_msg, unsigned long long *sig_msg_len, const unsigned char *msg, unsigned long long msglen, const xmssmt_params *params) argument
889 memcpy(sig_msg, states[0].auth, tree_h*n);
902 memcpy(sig_msg, states[i].auth, tree_h*n);
912 bds_state_update(&states[params->d], sk_seed, &(params->xmss_par), pub_seed, addr);
923 bds_round(&states[i], idx_leaf, sk_seed, &(params->xmss_par), pub_seed, addr);
925 updates = bds_treehash_update(&states[i], updates, sk_seed, &(params->xmss_par), pub_seed, addr);
929 if (i > 0 && updates > 0 && states[param
[all...]
/freebsd-12-stable/contrib/ntp/sntp/libevent/test/
H A Dtest-ratelim.c106 struct client_state *states; variable in typeref:struct:client_state
342 states = calloc(cfg_n_connections, sizeof(struct client_state));
343 if (bevs == NULL || states == NULL) {
353 write_on_connectedcb, &states[i]);
428 double persec = states[i].received;
430 total_received += states[i].received;
471 free(states);

Completed in 257 milliseconds

1234