Symbol: h
bin/ed/ed.h
81
line_t *h; /* head of list */
bin/ed/undo.c
101
REQUE(ustack[n].h->q_back, ustack[n].t->q_forw);
bin/ed/undo.c
104
REQUE(ustack[n].h->q_back, ustack[n].h);
bin/ed/undo.c
109
REQUE(ustack[n - 1].h, ustack[n].h->q_forw);
bin/ed/undo.c
111
REQUE(ustack[n].h, ustack[n].t);
bin/ed/undo.c
141
for (lp = ustack[u_p].h; lp != ep; lp = tl) {
bin/ed/undo.c
59
ustack[u_p].h = get_addressed_line_node(from);
crypto/heimdal/appl/gssmask/gssmask.c
106
struct handle *h;
crypto/heimdal/appl/gssmask/gssmask.c
108
h = ecalloc(1, sizeof(*h));
crypto/heimdal/appl/gssmask/gssmask.c
110
h->idx = ++c->nHandle;
crypto/heimdal/appl/gssmask/gssmask.c
111
h->type = type;
crypto/heimdal/appl/gssmask/gssmask.c
112
h->ptr = data;
crypto/heimdal/appl/gssmask/gssmask.c
113
h->next = c->handles;
crypto/heimdal/appl/gssmask/gssmask.c
114
c->handles = h;
crypto/heimdal/appl/gssmask/gssmask.c
116
return h->idx;
crypto/heimdal/appl/gssmask/gssmask.c
120
del_handle(struct handle **h, int32_t idx)
crypto/heimdal/appl/gssmask/gssmask.c
127
while (*h) {
crypto/heimdal/appl/gssmask/gssmask.c
128
if ((*h)->idx == idx) {
crypto/heimdal/appl/gssmask/gssmask.c
129
struct handle *p = *h;
crypto/heimdal/appl/gssmask/gssmask.c
130
*h = (*h)->next;
crypto/heimdal/appl/gssmask/gssmask.c
144
h = &((*h)->next);
crypto/heimdal/appl/gssmask/gssmask.c
150
find_handle(struct handle *h, int32_t idx, enum handle_type type)
crypto/heimdal/appl/gssmask/gssmask.c
155
while (h) {
crypto/heimdal/appl/gssmask/gssmask.c
156
if (h->idx == idx) {
crypto/heimdal/appl/gssmask/gssmask.c
157
if (type == h->type)
crypto/heimdal/appl/gssmask/gssmask.c
158
return h->ptr;
crypto/heimdal/appl/gssmask/gssmask.c
161
h = h->next;
crypto/heimdal/appl/gssmask/gssmask.c
269
#define HandleOP(h) \
crypto/heimdal/appl/gssmask/gssmask.c
270
handle##h(enum gssMaggotOp op, struct client *c)
crypto/heimdal/appl/gssmask/gssmask.c
286
struct handle *h = c->handles;
crypto/heimdal/appl/gssmask/gssmask.c
289
while (h) {
crypto/heimdal/appl/gssmask/gssmask.c
290
h = h->next;
crypto/heimdal/appl/push/push.c
640
const char *h, *u;
crypto/heimdal/appl/push/push.c
668
h = p;
crypto/heimdal/appl/push/push.c
670
h = a0;
crypto/heimdal/appl/push/push.c
681
if(h == u) {
crypto/heimdal/appl/push/push.c
684
h = get_pobox (&u);
crypto/heimdal/appl/push/push.c
691
*host = h;
crypto/heimdal/appl/test/http_client.c
355
const char *h = http_find_header(&req, "WWW-Authenticate:");
crypto/heimdal/appl/test/http_client.c
356
if (h == NULL)
crypto/heimdal/appl/test/http_client.c
359
if (strncasecmp(h, "Negotiate", 9) == 0) {
crypto/heimdal/appl/test/http_client.c
384
while(h[i] && isspace((unsigned char)h[i]))
crypto/heimdal/appl/test/http_client.c
386
if (h[i] != '\0') {
crypto/heimdal/appl/test/http_client.c
387
int len = strlen(&h[i]);
crypto/heimdal/appl/test/http_client.c
391
len = base64_decode(&h[i], input_token.value);
crypto/heimdal/appl/test/http_client.c
393
errx(1, "invalid base64 Negotiate token %s", &h[i]);
crypto/heimdal/base/dict.c
194
struct hashentry **tabptr, *h;
crypto/heimdal/base/dict.c
196
h = _search(dict, key);
crypto/heimdal/base/dict.c
197
if (h) {
crypto/heimdal/base/dict.c
198
heim_release(h->value);
crypto/heimdal/base/dict.c
199
h->value = heim_retain(value);
crypto/heimdal/base/dict.c
203
h = malloc(sizeof(*h));
crypto/heimdal/base/dict.c
204
if (h == NULL)
crypto/heimdal/base/dict.c
207
h->key = heim_retain(key);
crypto/heimdal/base/dict.c
208
h->value = heim_retain(value);
crypto/heimdal/base/dict.c
213
h->next = *tabptr;
crypto/heimdal/base/dict.c
214
*tabptr = h;
crypto/heimdal/base/dict.c
215
h->prev = tabptr;
crypto/heimdal/base/dict.c
216
if (h->next)
crypto/heimdal/base/dict.c
217
h->next->prev = &h->next;
crypto/heimdal/base/dict.c
233
struct hashentry *h = _search(dict, key);
crypto/heimdal/base/dict.c
235
if (h == NULL)
crypto/heimdal/base/dict.c
238
heim_release(h->key);
crypto/heimdal/base/dict.c
239
heim_release(h->value);
crypto/heimdal/base/dict.c
241
if ((*(h->prev) = h->next) != NULL)
crypto/heimdal/base/dict.c
242
h->next->prev = h->prev;
crypto/heimdal/base/dict.c
244
free(h);
crypto/heimdal/base/dict.c
258
struct hashentry **h, *g;
crypto/heimdal/base/dict.c
260
for (h = dict->tab; h < &dict->tab[dict->size]; ++h)
crypto/heimdal/base/dict.c
261
for (g = *h; g; g = g->next)
crypto/heimdal/base/dict.c
276
struct hashentry **h, *g;
crypto/heimdal/base/dict.c
278
for (h = dict->tab; h < &dict->tab[dict->size]; ++h)
crypto/heimdal/base/dict.c
279
for (g = *h; g; g = g->next)
crypto/heimdal/base/dict.c
54
struct hashentry **h, *g, *i;
crypto/heimdal/base/dict.c
56
for (h = dict->tab; h < &dict->tab[dict->size]; ++h) {
crypto/heimdal/base/dict.c
57
for (g = h[0]; g; g = i) {
crypto/heimdal/kcm/protocol.c
1106
struct kcm_default_cache *h = *c;
crypto/heimdal/kcm/protocol.c
1108
free(h->name);
crypto/heimdal/kcm/protocol.c
1109
free(h);
crypto/heimdal/kcm/sessions.c
52
au_sdev_handle_t *h;
crypto/heimdal/kcm/sessions.c
55
h = au_sdev_open(AU_SDEVF_ALLSESSIONS);
crypto/heimdal/kcm/sessions.c
56
if (h == NULL)
crypto/heimdal/kcm/sessions.c
66
if (au_sdev_read_aia(h, &event, &aio) != 0)
crypto/heimdal/kdc/misc.c
107
*h = ent;
crypto/heimdal/kdc/misc.c
132
hdb_entry_ex *h,
crypto/heimdal/kdc/misc.c
146
ret = hdb_enctype2key(context, &h->entry, p[i], key);
crypto/heimdal/kdc/misc.c
156
for (i = 0; i < h->entry.keys.len; i++) {
crypto/heimdal/kdc/misc.c
157
if (krb5_enctype_valid(context, h->entry.keys.val[i].key.keytype)
crypto/heimdal/kdc/misc.c
160
ret = hdb_enctype2key(context, &h->entry,
crypto/heimdal/kdc/misc.c
161
h->entry.keys.val[i].key.keytype, key);
crypto/heimdal/kdc/misc.c
45
hdb_entry_ex **h)
crypto/heimdal/kuser/kdigest.c
232
char *h;
crypto/heimdal/kuser/kdigest.c
244
hex_encode(md, 16, &h);
crypto/heimdal/kuser/kdigest.c
246
printf("responseData=%s\n", h);
crypto/heimdal/kuser/kdigest.c
247
free(h);
crypto/heimdal/kuser/kdigest.c
280
char *h;
crypto/heimdal/kuser/kdigest.c
306
hex_encode(answer.data, answer.length, &h);
crypto/heimdal/kuser/kdigest.c
307
printf("responseData=%s\n", h);
crypto/heimdal/kuser/kdigest.c
308
free(h);
crypto/heimdal/kuser/kdigest.c
336
hex_encode(md, sizeof(md), &h);
crypto/heimdal/kuser/kdigest.c
337
printf("AuthenticatorResponse=%s\n", h);
crypto/heimdal/kuser/kdigest.c
338
free(h);
crypto/heimdal/kuser/kdigest.c
349
hex_encode(md, 16, &h);
crypto/heimdal/kuser/kdigest.c
350
printf("session-key=%s\n", h);
crypto/heimdal/kuser/kdigest.c
351
free(h);
crypto/heimdal/lib/asn1/gen.c
1020
h = headerfile;
crypto/heimdal/lib/asn1/gen.c
1023
h = privheaderfile;
crypto/heimdal/lib/asn1/gen.c
1027
fprintf (h,
crypto/heimdal/lib/asn1/gen.c
1032
fprintf (h,
crypto/heimdal/lib/asn1/gen.c
1037
fprintf (h,
crypto/heimdal/lib/asn1/gen.c
1041
fprintf (h,
crypto/heimdal/lib/asn1/gen.c
1045
fprintf (h,
crypto/heimdal/lib/asn1/gen.c
1050
fprintf(h, "\n\n");
crypto/heimdal/lib/asn1/gen.c
996
FILE *h;
crypto/heimdal/lib/asn1/hash.c
103
Hashentry *h = _search(htab, ptr);
crypto/heimdal/lib/asn1/hash.c
108
if (h)
crypto/heimdal/lib/asn1/hash.c
109
free((void *) h->ptr);
crypto/heimdal/lib/asn1/hash.c
111
h = (Hashentry *) malloc(sizeof(Hashentry));
crypto/heimdal/lib/asn1/hash.c
112
if (h == NULL) {
crypto/heimdal/lib/asn1/hash.c
116
h->next = *tabptr;
crypto/heimdal/lib/asn1/hash.c
117
*tabptr = h;
crypto/heimdal/lib/asn1/hash.c
118
h->prev = tabptr;
crypto/heimdal/lib/asn1/hash.c
119
if (h->next)
crypto/heimdal/lib/asn1/hash.c
120
h->next->prev = &h->next;
crypto/heimdal/lib/asn1/hash.c
122
h->ptr = ptr;
crypto/heimdal/lib/asn1/hash.c
123
return h;
crypto/heimdal/lib/asn1/hash.c
131
Hashentry *h;
crypto/heimdal/lib/asn1/hash.c
135
h = _search(htab, ptr);
crypto/heimdal/lib/asn1/hash.c
136
if (h) {
crypto/heimdal/lib/asn1/hash.c
138
free(h->ptr);
crypto/heimdal/lib/asn1/hash.c
139
if ((*(h->prev) = h->next))
crypto/heimdal/lib/asn1/hash.c
140
h->next->prev = h->prev;
crypto/heimdal/lib/asn1/hash.c
141
free(h);
crypto/heimdal/lib/asn1/hash.c
153
Hashentry **h, *g;
crypto/heimdal/lib/asn1/hash.c
157
for (h = htab->tab; h < &htab->tab[htab->sz]; ++h)
crypto/heimdal/lib/asn1/hash.c
158
for (g = *h; g; g = g->next)
crypto/heimdal/lib/asn1/hash.c
196
unsigned h = 0;
crypto/heimdal/lib/asn1/hash.c
201
h = (h << TWELVE) + *s;
crypto/heimdal/lib/asn1/hash.c
202
if ((g = h & HIGH_BITS))
crypto/heimdal/lib/asn1/hash.c
203
h = (h ^ (g >> SEVENTYFIVE)) & ~HIGH_BITS;
crypto/heimdal/lib/asn1/hash.c
205
return h;
crypto/heimdal/lib/gssapi/mech/gss_mo.c
193
u_char hdr[2], hash[20], *h = hash;
crypto/heimdal/lib/gssapi/mech/gss_mo.c
210
*p++ = basis_32[(h[0] >> 3)];
crypto/heimdal/lib/gssapi/mech/gss_mo.c
211
*p++ = basis_32[((h[0] & 7) << 2) | (h[1] >> 6)];
crypto/heimdal/lib/gssapi/mech/gss_mo.c
212
*p++ = basis_32[(h[1] & 0x3f) >> 1];
crypto/heimdal/lib/gssapi/mech/gss_mo.c
213
*p++ = basis_32[((h[1] & 1) << 4) | (h[2] >> 4)];
crypto/heimdal/lib/gssapi/mech/gss_mo.c
214
*p++ = basis_32[((h[2] & 0xf) << 1) | (h[3] >> 7)];
crypto/heimdal/lib/gssapi/mech/gss_mo.c
215
*p++ = basis_32[(h[3] & 0x7f) >> 2];
crypto/heimdal/lib/gssapi/mech/gss_mo.c
216
*p++ = basis_32[((h[3] & 3) << 3) | (h[4] >> 5)];
crypto/heimdal/lib/gssapi/mech/gss_mo.c
217
*p++ = basis_32[(h[4] & 0x1f)];
crypto/heimdal/lib/gssapi/mech/gss_mo.c
218
*p++ = basis_32[(h[5] >> 3)];
crypto/heimdal/lib/gssapi/mech/gss_mo.c
219
*p++ = basis_32[((h[5] & 7) << 2) | (h[6] >> 6)];
crypto/heimdal/lib/gssapi/mech/gss_mo.c
220
*p++ = basis_32[(h[6] & 0x3f) >> 1];
crypto/heimdal/lib/hdb/hdb-ldap.c
1807
struct hdbldapdb *h;
crypto/heimdal/lib/hdb/hdb-ldap.c
1840
h = calloc(1, sizeof(*h));
crypto/heimdal/lib/hdb/hdb-ldap.c
1841
if (h == NULL) {
crypto/heimdal/lib/hdb/hdb-ldap.c
1847
(*db)->hdb_db = h;
crypto/heimdal/lib/hdb/hdb-ldap.c
1857
h->h_url = strdup(url);
crypto/heimdal/lib/hdb/hdb-ldap.c
1858
h->h_base = strdup(search_base);
crypto/heimdal/lib/hdb/hdb-ldap.c
1859
if (h->h_url == NULL || h->h_base == NULL) {
crypto/heimdal/lib/hdb/hdb-ldap.c
1869
create_base = h->h_base;
crypto/heimdal/lib/hdb/hdb-ldap.c
1871
h->h_createbase = strdup(create_base);
crypto/heimdal/lib/hdb/hdb-ldap.c
1872
if (h->h_createbase == NULL) {
crypto/heimdal/lib/hdb/hdb.c
372
const struct hdb_method *h;
crypto/heimdal/lib/hdb/hdb.c
374
for (h = methods; h->prefix != NULL; ++h) {
crypto/heimdal/lib/hdb/hdb.c
375
if (strncmp (filename, h->prefix, strlen(h->prefix)) == 0) {
crypto/heimdal/lib/hdb/hdb.c
376
*rest = filename + strlen(h->prefix);
crypto/heimdal/lib/hdb/hdb.c
377
return h;
crypto/heimdal/lib/hdb/hdb.c
396
const struct hdb_method *h;
crypto/heimdal/lib/hdb/hdb.c
400
for (h = methods; h->prefix != NULL; ++h) {
crypto/heimdal/lib/hdb/hdb.c
401
if (h->prefix[0] == '\0')
crypto/heimdal/lib/hdb/hdb.c
403
len += strlen(h->prefix) + 2;
crypto/heimdal/lib/hdb/hdb.c
414
for (h = methods; h->prefix != NULL; ++h) {
crypto/heimdal/lib/hdb/hdb.c
415
if (h != methods)
crypto/heimdal/lib/hdb/hdb.c
417
strlcat(buf, h->prefix, len);
crypto/heimdal/lib/hdb/hdb.c
455
const struct hdb_method *h;
crypto/heimdal/lib/hdb/hdb.c
463
h = find_method (filename, &residual);
crypto/heimdal/lib/hdb/hdb.c
465
if (h == NULL) {
crypto/heimdal/lib/hdb/hdb.c
469
h = _krb5_plugin_get_symbol(e);
crypto/heimdal/lib/hdb/hdb.c
470
if (strncmp (filename, h->prefix, strlen(h->prefix)) == 0
crypto/heimdal/lib/hdb/hdb.c
471
&& h->interface_version == HDB_INTERFACE_VERSION) {
crypto/heimdal/lib/hdb/hdb.c
472
residual = filename + strlen(h->prefix);
crypto/heimdal/lib/hdb/hdb.c
477
h = NULL;
crypto/heimdal/lib/hdb/hdb.c
484
if (h == NULL)
crypto/heimdal/lib/hdb/hdb.c
485
h = find_dynamic_method (context, filename, &residual);
crypto/heimdal/lib/hdb/hdb.c
487
if (h == NULL)
crypto/heimdal/lib/hdb/hdb.c
489
return (*h->create)(context, db, residual);
crypto/heimdal/lib/hx509/file.c
126
hx509_pem_header *h;
crypto/heimdal/lib/hx509/file.c
128
h = calloc(1, sizeof(*h));
crypto/heimdal/lib/hx509/file.c
129
if (h == NULL)
crypto/heimdal/lib/hx509/file.c
131
h->header = strdup(header);
crypto/heimdal/lib/hx509/file.c
132
if (h->header == NULL) {
crypto/heimdal/lib/hx509/file.c
133
free(h);
crypto/heimdal/lib/hx509/file.c
136
h->value = strdup(value);
crypto/heimdal/lib/hx509/file.c
137
if (h->value == NULL) {
crypto/heimdal/lib/hx509/file.c
138
free(h->header);
crypto/heimdal/lib/hx509/file.c
139
free(h);
crypto/heimdal/lib/hx509/file.c
143
h->next = *headers;
crypto/heimdal/lib/hx509/file.c
144
*headers = h;
crypto/heimdal/lib/hx509/file.c
152
hx509_pem_header *h;
crypto/heimdal/lib/hx509/file.c
154
h = headers;
crypto/heimdal/lib/hx509/file.c
156
free(h->header);
crypto/heimdal/lib/hx509/file.c
157
free(h->value);
crypto/heimdal/lib/hx509/file.c
158
free(h);
crypto/heimdal/lib/hx509/file.c
167
hx509_pem_find_header(const hx509_pem_header *h, const char *header)
crypto/heimdal/lib/hx509/file.c
169
while(h) {
crypto/heimdal/lib/hx509/file.c
170
if (strcmp(header, h->header) == 0)
crypto/heimdal/lib/hx509/file.c
171
return h->value;
crypto/heimdal/lib/hx509/file.c
172
h = h->next;
crypto/heimdal/lib/hx509/hxtool.c
159
const char *h;
crypto/heimdal/lib/hx509/hxtool.c
167
h = hx509_pem_find_header(headers, "Content-disposition");
crypto/heimdal/lib/hx509/hxtool.c
168
if (h && strcasecmp(h, "detached") == 0)
crypto/heimdal/lib/hx509/softp11.c
40
#define HANDLE_OBJECT_ID(h) ((h) & OBJECT_ID_MASK)
crypto/heimdal/lib/krb5/addr_families.c
204
uint32_t l, h, m = 0xffffffff;
crypto/heimdal/lib/krb5/addr_families.c
216
h = l | ~m;
crypto/heimdal/lib/krb5/addr_families.c
228
_krb5_put_int(high->address.data, h, high->address.length);
crypto/heimdal/lib/krb5/krbhst.c
1006
krb5_krbhst_info *h, *next;
crypto/heimdal/lib/krb5/krbhst.c
1011
for (h = handle->hosts; h != NULL; h = next) {
crypto/heimdal/lib/krb5/krbhst.c
1012
next = h->next;
crypto/heimdal/lib/krb5/krbhst.c
1013
_krb5_free_krbhst_info(h);
crypto/heimdal/lib/krb5/krbhst.c
298
struct krb5_krbhst_info *h;
crypto/heimdal/lib/krb5/krbhst.c
300
for(h = kd->hosts; h; h = h->next)
crypto/heimdal/lib/krb5/krbhst.c
301
if(h->proto == host->proto &&
crypto/heimdal/lib/krb5/krbhst.c
302
h->port == host->port &&
crypto/heimdal/lib/krb5/krbhst.c
303
strcmp(h->hostname, host->hostname) == 0) {
crypto/heimdal/lib/krb5/test_hostname.c
45
char *h, **r;
crypto/heimdal/lib/krb5/test_hostname.c
47
ret = krb5_expand_hostname(context, host, &h);
crypto/heimdal/lib/krb5/test_hostname.c
51
free(h);
crypto/heimdal/lib/krb5/test_hostname.c
54
printf("hostname: %s -> %s\n", host, h);
crypto/heimdal/lib/krb5/test_hostname.c
56
ret = krb5_expand_hostname_realms(context, host, &h, &r);
crypto/heimdal/lib/krb5/test_hostname.c
63
printf("hostname: %s -> %s\n", host, h);
crypto/heimdal/lib/krb5/test_hostname.c
68
free(h);
crypto/heimdal/lib/roken/copyhostent.c
43
copyhostent (const struct hostent *h)
crypto/heimdal/lib/roken/copyhostent.c
54
res->h_addrtype = h->h_addrtype;
crypto/heimdal/lib/roken/copyhostent.c
55
res->h_length = h->h_length;
crypto/heimdal/lib/roken/copyhostent.c
57
res->h_name = strdup (h->h_name);
crypto/heimdal/lib/roken/copyhostent.c
62
for (n = 0, p = h->h_aliases; *p != NULL; ++p)
crypto/heimdal/lib/roken/copyhostent.c
72
res->h_aliases[i] = strdup (h->h_aliases[i]);
crypto/heimdal/lib/roken/copyhostent.c
79
for (n = 0, p = h->h_addr_list; *p != NULL; ++p)
crypto/heimdal/lib/roken/copyhostent.c
90
res->h_addr_list[i] = malloc (h->h_length);
crypto/heimdal/lib/roken/copyhostent.c
95
memcpy (res->h_addr_list[i], h->h_addr_list[i], h->h_length);
crypto/heimdal/lib/roken/freehostent.c
43
freehostent (struct hostent *h)
crypto/heimdal/lib/roken/freehostent.c
47
free (h->h_name);
crypto/heimdal/lib/roken/freehostent.c
48
if (h->h_aliases != NULL) {
crypto/heimdal/lib/roken/freehostent.c
49
for (p = h->h_aliases; *p != NULL; ++p)
crypto/heimdal/lib/roken/freehostent.c
51
free (h->h_aliases);
crypto/heimdal/lib/roken/freehostent.c
53
if (h->h_addr_list != NULL) {
crypto/heimdal/lib/roken/freehostent.c
54
for (p = h->h_addr_list; *p != NULL; ++p)
crypto/heimdal/lib/roken/freehostent.c
56
free (h->h_addr_list);
crypto/heimdal/lib/roken/freehostent.c
58
free (h);
crypto/heimdal/lib/roken/getaddrinfo.c
232
char **h;
crypto/heimdal/lib/roken/getaddrinfo.c
259
for (h = he->h_addr_list; *h != NULL; ++h) {
crypto/heimdal/lib/roken/getaddrinfo.c
261
current, func, *h, canonname);
crypto/heimdal/lib/roken/glob.c
348
char *h;
crypto/heimdal/lib/roken/glob.c
356
for (p = pattern + 1, h = (char *) patbuf; *p && *p != CHAR_SLASH;
crypto/heimdal/lib/roken/glob.c
357
*h++ = *p++)
crypto/heimdal/lib/roken/glob.c
360
*h = CHAR_EOS;
crypto/heimdal/lib/roken/glob.c
367
if ((h = getenv("HOME")) == NULL) {
crypto/heimdal/lib/roken/glob.c
371
h = pwd->pw_dir;
crypto/heimdal/lib/roken/glob.c
381
h = pwd->pw_dir;
crypto/heimdal/lib/roken/glob.c
385
for (b = patbuf; *h; *b++ = *h++)
crypto/heimdal/lib/roken/hostent_find_fqdn.c
46
const char **h;
crypto/heimdal/lib/roken/hostent_find_fqdn.c
49
for (h = (const char **)he->h_aliases; *h != NULL; ++h) {
crypto/heimdal/lib/roken/hostent_find_fqdn.c
50
if (strchr (*h, '.') != NULL) {
crypto/heimdal/lib/roken/hostent_find_fqdn.c
51
ret = *h;
crypto/heimdal/lib/roken/resolve.c
424
r->h.id = (p[0] << 8) | p[1];
crypto/heimdal/lib/roken/resolve.c
425
r->h.flags = 0;
crypto/heimdal/lib/roken/resolve.c
427
r->h.flags |= rk_DNS_HEADER_RESPONSE_FLAG;
crypto/heimdal/lib/roken/resolve.c
428
r->h.opcode = (p[2] >> 1) & 0xf;
crypto/heimdal/lib/roken/resolve.c
430
r->h.flags |= rk_DNS_HEADER_AUTHORITIVE_ANSWER;
crypto/heimdal/lib/roken/resolve.c
432
r->h.flags |= rk_DNS_HEADER_TRUNCATED_MESSAGE;
crypto/heimdal/lib/roken/resolve.c
434
r->h.flags |= rk_DNS_HEADER_RECURSION_DESIRED;
crypto/heimdal/lib/roken/resolve.c
436
r->h.flags |= rk_DNS_HEADER_RECURSION_AVAILABLE;
crypto/heimdal/lib/roken/resolve.c
438
r->h.flags |= rk_DNS_HEADER_AUTHORITIVE_ANSWER;
crypto/heimdal/lib/roken/resolve.c
440
r->h.flags |= rk_DNS_HEADER_CHECKING_DISABLED;
crypto/heimdal/lib/roken/resolve.c
441
r->h.response_code = (p[3] >> 4) & 0xf;
crypto/heimdal/lib/roken/resolve.c
442
r->h.qdcount = (p[4] << 8) | p[5];
crypto/heimdal/lib/roken/resolve.c
443
r->h.ancount = (p[6] << 8) | p[7];
crypto/heimdal/lib/roken/resolve.c
444
r->h.nscount = (p[8] << 8) | p[9];
crypto/heimdal/lib/roken/resolve.c
445
r->h.arcount = (p[10] << 8) | p[11];
crypto/heimdal/lib/roken/resolve.c
449
if(r->h.qdcount != 1) {
crypto/heimdal/lib/roken/resolve.c
474
for(i = 0; i < r->h.ancount; i++) {
crypto/heimdal/lib/roken/resolve.c
481
for(i = 0; i < r->h.nscount; i++) {
crypto/heimdal/lib/roken/resolve.c
488
for(i = 0; i < r->h.arcount; i++) {
crypto/heimdal/lib/roken/resolve.c
508
#define resolve_search(h,n,c,t,r,l) \
crypto/heimdal/lib/roken/resolve.c
509
((int)dns_search(h,n,c,t,r,l,(struct sockaddr *)&from,&fromsize))
crypto/heimdal/lib/roken/resolve.c
510
#define resolve_free_handle(h) dns_free(h)
crypto/heimdal/lib/roken/resolve.c
512
#define resolve_search(h,n,c,t,r,l) res_nsearch(h,n,c,t,r,l)
crypto/heimdal/lib/roken/resolve.c
513
#define resolve_free_handle(h) rk_res_free(h);
crypto/heimdal/lib/roken/resolve.c
515
#define resolve_search(h,n,c,t,r,l) res_search(n,c,t,r,l)
crypto/heimdal/lib/roken/resolve.c
517
#define resolve_free_handle(h)
crypto/heimdal/lib/roken/resolve.h
226
struct rk_dns_header h;
crypto/heimdal/lib/roken/socket_wrapper.c
722
static const struct swrap_file_hdr h;
crypto/heimdal/lib/roken/socket_wrapper.c
737
if (sizeof(h) != SWRAP_FILE_HDR_SIZE) {
crypto/heimdal/lib/roken/vis.c
95
#include <ctype.h>
crypto/heimdal/lib/roken/vis.c
96
#include <limits.h>
crypto/heimdal/lib/roken/vis.c
97
#include <stdio.h>
crypto/heimdal/lib/roken/vis.c
98
#include <string.h>
crypto/heimdal/lib/wind/punycode.c
103
++h;
crypto/heimdal/lib/wind/punycode.c
109
b = h;
crypto/heimdal/lib/wind/punycode.c
116
if (h < in_len) {
crypto/heimdal/lib/wind/punycode.c
124
while (h < in_len) {
crypto/heimdal/lib/wind/punycode.c
130
delta += (m - n) * (h + 1);
crypto/heimdal/lib/wind/punycode.c
157
bias = adapt(delta, h + 1, h == b);
crypto/heimdal/lib/wind/punycode.c
159
++h;
crypto/heimdal/lib/wind/punycode.c
95
unsigned h = 0;
crypto/krb5/src/ccapi/common/win/OldCC/util.cxx
404
HMODULE h = 0;
crypto/krb5/src/ccapi/common/win/OldCC/util.cxx
412
h = GetModuleHandle(module);
crypto/krb5/src/ccapi/common/win/OldCC/util.cxx
414
if (!h) return GetLastError();
crypto/krb5/src/ccapi/common/win/OldCC/util.cxx
430
got = GetModuleFileName(h, name, size);
crypto/krb5/src/ccapi/common/win/tls.c
40
void tspdata_setReplyEvent(struct tspdata* p, HANDLE h) {p->_replyEvent = h;}
crypto/krb5/src/ccapi/common/win/tls.h
55
void tspdata_setReplyEvent(struct tspdata* p, HANDLE h);
crypto/krb5/src/ccapi/server/win/ccs_os_server.cpp
324
UINT64 h = ccs_win_pipe_getHandle(in_pipe);
crypto/krb5/src/ccapi/server/win/ccs_os_server.cpp
335
(unsigned char*)&h, /* client's tspdata* */
crypto/krb5/src/ccapi/server/win/ccs_os_server.cpp
620
UINT64 h = ccs_win_pipe_getHandle(in_pipe);
crypto/krb5/src/ccapi/server/win/ccs_os_server.cpp
626
(unsigned char*)&h, /* client's tspdata* */
crypto/krb5/src/ccapi/server/win/ccs_win_pipe.c
42
struct ccs_win_pipe_t* ccs_win_pipe_new (const char* uuid, const UINT64 h) {
crypto/krb5/src/ccapi/server/win/ccs_win_pipe.c
62
out_pipe->clientHandle = h;
crypto/krb5/src/ccapi/server/win/ccs_win_pipe.h
52
struct ccs_win_pipe_t* ccs_win_pipe_new(const char* uuid, const UINT64 h);
crypto/krb5/src/include/k5-platform.h
398
void JOIN__2(NAME, auxfini)(shl_t h, int l) { if (!l) NAME(); } \
crypto/krb5/src/include/k5-thread.h
310
HANDLE h;
crypto/krb5/src/include/k5-thread.h
317
(assert((M)->h == INVALID_HANDLE_VALUE), \
crypto/krb5/src/include/k5-thread.h
318
((M)->h = CreateMutex(NULL, FALSE, NULL)) ? 0 : GetLastError())
crypto/krb5/src/include/k5-thread.h
321
((M)->h = CreateMutex(NULL, FALSE, NULL)) ? 0 : GetLastError())
crypto/krb5/src/include/k5-thread.h
323
(CloseHandle((M)->h) ? ((M)->h = 0, 0) : GetLastError())
crypto/krb5/src/include/k5-thread.h
329
res = WaitForSingleObject(m->h, INFINITE);
crypto/krb5/src/include/k5-thread.h
346
ReleaseMutex((M)->h) ? 0 : GetLastError())
crypto/krb5/src/kadmin/dbutil/t_tdumputil.c
102
if (startrec(h) < 0)
crypto/krb5/src/kadmin/dbutil/t_tdumputil.c
105
if (writefield(h, "%s", argv[i]) < 0)
crypto/krb5/src/kadmin/dbutil/t_tdumputil.c
111
if (endrec(h) < 0)
crypto/krb5/src/kadmin/dbutil/t_tdumputil.c
55
struct rechandle *h;
crypto/krb5/src/kadmin/dbutil/t_tdumputil.c
75
h = rechandle_csv(stdout, rectype);
crypto/krb5/src/kadmin/dbutil/t_tdumputil.c
77
h = rechandle_tabsep(stdout, rectype);
crypto/krb5/src/kadmin/dbutil/t_tdumputil.c
78
if (h == NULL)
crypto/krb5/src/kadmin/dbutil/t_tdumputil.c
97
if (rectype == NULL && writeheader(h, a) < 0)
crypto/krb5/src/kadmin/dbutil/tabdump.c
155
struct rechandle *h = args->rh;
crypto/krb5/src/kadmin/dbutil/tabdump.c
167
if (writefield(h, "%s", buf) < 0)
crypto/krb5/src/kadmin/dbutil/tabdump.c
177
struct rechandle *h = args->rh;
crypto/krb5/src/kadmin/dbutil/tabdump.c
180
return writefield(h, "%d", when);
crypto/krb5/src/kadmin/dbutil/tabdump.c
191
struct rechandle *h = args->rh;
crypto/krb5/src/kadmin/dbutil/tabdump.c
197
if (writefield(h, "%s", buf) < 0)
crypto/krb5/src/kadmin/dbutil/tabdump.c
203
if (writefield(h, "%d", etype) < 0)
crypto/krb5/src/kadmin/dbutil/tabdump.c
214
struct rechandle *h = args->rh;
crypto/krb5/src/kadmin/dbutil/tabdump.c
220
if (writefield(h, "%s", buf) < 0)
crypto/krb5/src/kadmin/dbutil/tabdump.c
226
if (writefield(h, "%d", salttype) < 0)
crypto/krb5/src/kadmin/dbutil/tabdump.c
240
struct rechandle *h = args->rh;
crypto/krb5/src/kadmin/dbutil/tabdump.c
244
if (writefield(h, "-1") < 0)
crypto/krb5/src/kadmin/dbutil/tabdump.c
255
ret = writefield(h, "%s", hex);
crypto/krb5/src/kadmin/dbutil/tabdump.c
264
struct rechandle *h = args->rh;
crypto/krb5/src/kadmin/dbutil/tabdump.c
278
if (startrec(h) < 0)
crypto/krb5/src/kadmin/dbutil/tabdump.c
280
if (!ret && writefield(h, "%s", name) < 0)
crypto/krb5/src/kadmin/dbutil/tabdump.c
282
if (!ret && writefield(h, "%s", tname) < 0)
crypto/krb5/src/kadmin/dbutil/tabdump.c
284
if (!ret && endrec(h) < 0)
crypto/krb5/src/kadmin/dbutil/tabdump.c
300
struct rechandle *h = args->rh;
crypto/krb5/src/kadmin/dbutil/tabdump.c
302
if (startrec(h) < 0)
crypto/krb5/src/kadmin/dbutil/tabdump.c
304
if (writefield(h, "%s", name) < 0)
crypto/krb5/src/kadmin/dbutil/tabdump.c
306
if (writefield(h, "%d", i) < 0)
crypto/krb5/src/kadmin/dbutil/tabdump.c
308
if (writefield(h, "%d", kd->key_data_kvno) < 0)
crypto/krb5/src/kadmin/dbutil/tabdump.c
325
if (endrec(h) < 0)
crypto/krb5/src/kadmin/dbutil/tabdump.c
371
princflag_rec(struct rechandle *h, const char *name, const char *flagname,
crypto/krb5/src/kadmin/dbutil/tabdump.c
374
if (startrec(h) < 0)
crypto/krb5/src/kadmin/dbutil/tabdump.c
376
if (writefield(h, "%s", name) < 0)
crypto/krb5/src/kadmin/dbutil/tabdump.c
378
if (writefield(h, "%s", flagname) < 0)
crypto/krb5/src/kadmin/dbutil/tabdump.c
380
if (writefield(h, "%d", set) < 0)
crypto/krb5/src/kadmin/dbutil/tabdump.c
382
if (endrec(h) < 0)
crypto/krb5/src/kadmin/dbutil/tabdump.c
396
struct rechandle *h = args->rh;
crypto/krb5/src/kadmin/dbutil/tabdump.c
413
ret = princflag_rec(h, name, s, ((flags & (1UL << i)) != 0));
crypto/krb5/src/kadmin/dbutil/tabdump.c
425
struct rechandle *h = args->rh;
crypto/krb5/src/kadmin/dbutil/tabdump.c
427
if (startrec(h) < 0)
crypto/krb5/src/kadmin/dbutil/tabdump.c
429
if (writefield(h, "%s", name) < 0)
crypto/krb5/src/kadmin/dbutil/tabdump.c
435
if (writefield(h, "%d", dbe->fail_auth_count) < 0)
crypto/krb5/src/kadmin/dbutil/tabdump.c
437
if (endrec(h) < 0)
crypto/krb5/src/kadmin/dbutil/tabdump.c
454
struct rechandle *h = args->rh;
crypto/krb5/src/kadmin/dbutil/tabdump.c
457
if (startrec(h) < 0)
crypto/krb5/src/kadmin/dbutil/tabdump.c
459
if (writefield(h, "%s", name) < 0)
crypto/krb5/src/kadmin/dbutil/tabdump.c
477
ret = writefield(h, "%s", modby);
crypto/krb5/src/kadmin/dbutil/tabdump.c
492
ret = writefield(h, "%s", policy);
crypto/krb5/src/kadmin/dbutil/tabdump.c
497
if (writefield(h, "%d", mkvno) < 0) {
crypto/krb5/src/kadmin/dbutil/tabdump.c
501
if (writefield(h, "%d", adb.admin_history_kvno) < 0) {
crypto/krb5/src/kadmin/dbutil/tabdump.c
505
if (endrec(h) < 0)
crypto/krb5/src/kadmin/dbutil/tabdump.c
522
struct rechandle *h = args->rh;
crypto/krb5/src/kadmin/dbutil/tabdump.c
528
if (startrec(h) < 0) {
crypto/krb5/src/kadmin/dbutil/tabdump.c
532
if (writefield(h, "%s", name) < 0) {
crypto/krb5/src/kadmin/dbutil/tabdump.c
536
if (writefield(h, "%s", attrs[i].key) < 0) {
crypto/krb5/src/kadmin/dbutil/tabdump.c
540
if (writefield(h, "%s", attrs[i].value) < 0) {
crypto/krb5/src/kadmin/dbutil/tabdump.c
544
if (endrec(h) < 0) {
crypto/krb5/src/kadmin/dbutil/tabdump.c
558
struct rechandle *h = args->rh;
crypto/krb5/src/kadmin/dbutil/tabdump.c
560
if (startrec(h) < 0)
crypto/krb5/src/kadmin/dbutil/tabdump.c
562
if (writefield(h, "%s", name) < 0)
crypto/krb5/src/kadmin/dbutil/tabdump.c
568
if (writefield(h, "%d", dbe->max_life) < 0)
crypto/krb5/src/kadmin/dbutil/tabdump.c
570
if (writefield(h, "%d", dbe->max_renewable_life) < 0)
crypto/krb5/src/kadmin/dbutil/tabdump.c
572
if (endrec(h) < 0)
crypto/krb5/src/kadmin/dbutil/tdumputil.c
102
writequoted(struct rechandle *h, const char *fmt, va_list ap)
crypto/krb5/src/kadmin/dbutil/tdumputil.c
106
struct flavor fl = h->flavor;
crypto/krb5/src/kadmin/dbutil/tdumputil.c
125
ret = fprintf(h->fh, "%c%s%c", fl.quotechar, qs, fl.quotechar);
crypto/krb5/src/kadmin/dbutil/tdumputil.c
127
ret = fprintf(h->fh, "%s", s);
crypto/krb5/src/kadmin/dbutil/tdumputil.c
144
struct rechandle *h = calloc(1, sizeof(*h));
crypto/krb5/src/kadmin/dbutil/tdumputil.c
146
if (h == NULL)
crypto/krb5/src/kadmin/dbutil/tdumputil.c
148
h->fh = fh;
crypto/krb5/src/kadmin/dbutil/tdumputil.c
149
h->rectype = rectype;
crypto/krb5/src/kadmin/dbutil/tdumputil.c
150
h->do_sep = 0;
crypto/krb5/src/kadmin/dbutil/tdumputil.c
151
return h;
crypto/krb5/src/kadmin/dbutil/tdumputil.c
160
struct rechandle *h = rechandle_common(fh, rectype);
crypto/krb5/src/kadmin/dbutil/tdumputil.c
162
if (h == NULL)
crypto/krb5/src/kadmin/dbutil/tdumputil.c
164
h->flavor = tabsep;
crypto/krb5/src/kadmin/dbutil/tdumputil.c
165
return h;
crypto/krb5/src/kadmin/dbutil/tdumputil.c
174
struct rechandle *h = rechandle_common(fh, rectype);
crypto/krb5/src/kadmin/dbutil/tdumputil.c
176
if (h == NULL)
crypto/krb5/src/kadmin/dbutil/tdumputil.c
178
h->flavor = csv;
crypto/krb5/src/kadmin/dbutil/tdumputil.c
179
return h;
crypto/krb5/src/kadmin/dbutil/tdumputil.c
186
rechandle_free(struct rechandle *h)
crypto/krb5/src/kadmin/dbutil/tdumputil.c
188
free(h);
crypto/krb5/src/kadmin/dbutil/tdumputil.c
196
startrec(struct rechandle *h)
crypto/krb5/src/kadmin/dbutil/tdumputil.c
198
if (h->rectype == NULL) {
crypto/krb5/src/kadmin/dbutil/tdumputil.c
199
h->do_sep = 0;
crypto/krb5/src/kadmin/dbutil/tdumputil.c
202
h->do_sep = 1;
crypto/krb5/src/kadmin/dbutil/tdumputil.c
203
return fputs(h->rectype, h->fh);
crypto/krb5/src/kadmin/dbutil/tdumputil.c
211
writefield(struct rechandle *h, const char *fmt, ...)
crypto/krb5/src/kadmin/dbutil/tdumputil.c
215
struct flavor fl = h->flavor;
crypto/krb5/src/kadmin/dbutil/tdumputil.c
217
if (h->do_sep) {
crypto/krb5/src/kadmin/dbutil/tdumputil.c
218
ret = fputc(fl.fieldsep, h->fh);
crypto/krb5/src/kadmin/dbutil/tdumputil.c
222
h->do_sep = 1;
crypto/krb5/src/kadmin/dbutil/tdumputil.c
225
ret = vfprintf(h->fh, fmt, ap);
crypto/krb5/src/kadmin/dbutil/tdumputil.c
227
ret = writequoted(h, fmt, ap);
crypto/krb5/src/kadmin/dbutil/tdumputil.c
236
endrec(struct rechandle *h)
crypto/krb5/src/kadmin/dbutil/tdumputil.c
239
struct flavor fl = h->flavor;
crypto/krb5/src/kadmin/dbutil/tdumputil.c
241
ret = fputc(fl.recordsep, h->fh);
crypto/krb5/src/kadmin/dbutil/tdumputil.c
242
h->do_sep = 0;
crypto/krb5/src/kadmin/dbutil/tdumputil.c
252
writeheader(struct rechandle *h, char * const *a)
crypto/krb5/src/kadmin/dbutil/tdumputil.c
257
if (h->rectype != NULL)
crypto/krb5/src/kadmin/dbutil/tdumputil.c
260
ret = writefield(h, "%s", *p);
crypto/krb5/src/kadmin/dbutil/tdumputil.c
264
ret = endrec(h);
crypto/krb5/src/kadmin/server/auth.c
101
h->data = NULL;
crypto/krb5/src/kadmin/server/auth.c
102
if (h->vt.init != NULL) {
crypto/krb5/src/kadmin/server/auth.c
103
ret = h->vt.init(context, acl_file, &h->data);
crypto/krb5/src/kadmin/server/auth.c
105
TRACE_KADM5_AUTH_INIT_SKIP(context, h->vt.name);
crypto/krb5/src/kadmin/server/auth.c
106
free(h);
crypto/krb5/src/kadmin/server/auth.c
107
h = NULL;
crypto/krb5/src/kadmin/server/auth.c
111
TRACE_KADM5_AUTH_INIT_FAIL(context, h->vt.name, ret);
crypto/krb5/src/kadmin/server/auth.c
115
handles[count++] = h;
crypto/krb5/src/kadmin/server/auth.c
117
h = NULL;
crypto/krb5/src/kadmin/server/auth.c
125
free(h);
crypto/krb5/src/kadmin/server/auth.c
133
call_module(krb5_context context, auth_handle h, int opcode,
crypto/krb5/src/kadmin/server/auth.c
141
if (opcode == OP_SETSTR && h->vt.setstr != NULL)
crypto/krb5/src/kadmin/server/auth.c
142
return h->vt.setstr(context, h->data, client, p1, s1, s2);
crypto/krb5/src/kadmin/server/auth.c
143
else if (opcode == OP_CPW && h->vt.cpw != NULL)
crypto/krb5/src/kadmin/server/auth.c
144
return h->vt.cpw(context, h->data, client, p1);
crypto/krb5/src/kadmin/server/auth.c
145
else if (opcode == OP_CHRAND && h->vt.chrand != NULL)
crypto/krb5/src/kadmin/server/auth.c
146
return h->vt.chrand(context, h->data, client, p1);
crypto/krb5/src/kadmin/server/auth.c
147
else if (opcode == OP_SETKEY && h->vt.setkey != NULL)
crypto/krb5/src/kadmin/server/auth.c
148
return h->vt.setkey(context, h->data, client, p1);
crypto/krb5/src/kadmin/server/auth.c
149
else if (opcode == OP_PURGEKEYS && h->vt.purgekeys != NULL)
crypto/krb5/src/kadmin/server/auth.c
150
return h->vt.purgekeys(context, h->data, client, p1);
crypto/krb5/src/kadmin/server/auth.c
151
else if (opcode == OP_DELPRINC && h->vt.delprinc != NULL)
crypto/krb5/src/kadmin/server/auth.c
152
return h->vt.delprinc(context, h->data, client, p1);
crypto/krb5/src/kadmin/server/auth.c
153
else if (opcode == OP_RENPRINC && h->vt.renprinc != NULL)
crypto/krb5/src/kadmin/server/auth.c
154
return h->vt.renprinc(context, h->data, client, p1, p2);
crypto/krb5/src/kadmin/server/auth.c
155
else if (opcode == OP_GETPRINC && h->vt.getprinc != NULL)
crypto/krb5/src/kadmin/server/auth.c
156
return h->vt.getprinc(context, h->data, client, p1);
crypto/krb5/src/kadmin/server/auth.c
157
else if (opcode == OP_GETSTRS && h->vt.getstrs != NULL)
crypto/krb5/src/kadmin/server/auth.c
158
return h->vt.getstrs(context, h->data, client, p1);
crypto/krb5/src/kadmin/server/auth.c
159
else if (opcode == OP_EXTRACT && h->vt.extract != NULL)
crypto/krb5/src/kadmin/server/auth.c
160
return h->vt.extract(context, h->data, client, p1);
crypto/krb5/src/kadmin/server/auth.c
161
else if (opcode == OP_LISTPRINCS && h->vt.listprincs != NULL)
crypto/krb5/src/kadmin/server/auth.c
162
return h->vt.listprincs(context, h->data, client);
crypto/krb5/src/kadmin/server/auth.c
163
else if (opcode == OP_ADDPOL && h->vt.addpol != NULL)
crypto/krb5/src/kadmin/server/auth.c
164
return h->vt.addpol(context, h->data, client, s1, polent, mask);
crypto/krb5/src/kadmin/server/auth.c
165
else if (opcode == OP_MODPOL && h->vt.modpol != NULL)
crypto/krb5/src/kadmin/server/auth.c
166
return h->vt.modpol(context, h->data, client, s1, polent, mask);
crypto/krb5/src/kadmin/server/auth.c
167
else if (opcode == OP_DELPOL && h->vt.delpol != NULL)
crypto/krb5/src/kadmin/server/auth.c
168
return h->vt.delpol(context, h->data, client, s1);
crypto/krb5/src/kadmin/server/auth.c
169
else if (opcode == OP_GETPOL && h->vt.getpol != NULL)
crypto/krb5/src/kadmin/server/auth.c
170
return h->vt.getpol(context, h->data, client, s1, s2);
crypto/krb5/src/kadmin/server/auth.c
171
else if (opcode == OP_LISTPOLS && h->vt.listpols != NULL)
crypto/krb5/src/kadmin/server/auth.c
172
return h->vt.listpols(context, h->data, client);
crypto/krb5/src/kadmin/server/auth.c
173
else if (opcode == OP_IPROP && h->vt.iprop != NULL)
crypto/krb5/src/kadmin/server/auth.c
174
return h->vt.iprop(context, h->data, client);
crypto/krb5/src/kadmin/server/auth.c
175
else if (opcode == OP_ADDALIAS && h->vt.addalias != NULL)
crypto/krb5/src/kadmin/server/auth.c
176
return h->vt.addalias(context, h->data, client, p1, p2);
crypto/krb5/src/kadmin/server/auth.c
188
auth_handle *hp, h;
crypto/krb5/src/kadmin/server/auth.c
191
h = *hp;
crypto/krb5/src/kadmin/server/auth.c
193
ret = call_module(context, h, opcode, client, p1, p2, s1, s2,
crypto/krb5/src/kadmin/server/auth.c
272
auth_handle *hp, h;
crypto/krb5/src/kadmin/server/auth.c
279
h = *hp;
crypto/krb5/src/kadmin/server/auth.c
283
if (opcode == OP_ADDPRINC && h->vt.addprinc != NULL) {
crypto/krb5/src/kadmin/server/auth.c
284
ret = h->vt.addprinc(context, h->data, client, target, ent, *mask,
crypto/krb5/src/kadmin/server/auth.c
286
} else if (opcode == OP_MODPRINC && h->vt.modprinc != NULL) {
crypto/krb5/src/kadmin/server/auth.c
287
ret = h->vt.modprinc(context, h->data, client, target, ent, *mask,
crypto/krb5/src/kadmin/server/auth.c
292
if (h->vt.free_restrictions != NULL)
crypto/krb5/src/kadmin/server/auth.c
293
h->vt.free_restrictions(context, h->data, rs);
crypto/krb5/src/kadmin/server/auth.c
309
auth_handle *hp, h;
crypto/krb5/src/kadmin/server/auth.c
312
h = *hp;
crypto/krb5/src/kadmin/server/auth.c
313
if (h->vt.end != NULL)
crypto/krb5/src/kadmin/server/auth.c
314
h->vt.end(context, h->data);
crypto/krb5/src/kadmin/server/auth.c
48
auth_handle *hp, h;
crypto/krb5/src/kadmin/server/auth.c
53
h = *hp;
crypto/krb5/src/kadmin/server/auth.c
54
if (h->vt.fini != NULL)
crypto/krb5/src/kadmin/server/auth.c
55
h->vt.fini(context, h->data);
crypto/krb5/src/kadmin/server/auth.c
56
free(h);
crypto/krb5/src/kadmin/server/auth.c
68
auth_handle h = NULL;
crypto/krb5/src/kadmin/server/auth.c
91
h = k5alloc(sizeof(*h), &ret);
crypto/krb5/src/kadmin/server/auth.c
92
if (h == NULL)
crypto/krb5/src/kadmin/server/auth.c
94
ret = (*mod)(context, 1, 2, (krb5_plugin_vtable)&h->vt);
crypto/krb5/src/kadmin/server/auth.c
97
free(h);
crypto/krb5/src/kadmin/server/auth.c
98
h = NULL;
crypto/krb5/src/kdc/kdc_authdata.c
100
if (h->vt.fini != NULL)
crypto/krb5/src/kdc/kdc_authdata.c
101
h->vt.fini(context, h->data);
crypto/krb5/src/kdc/kdc_authdata.c
52
kdcauthdata_handle *list, *h;
crypto/krb5/src/kdc/kdc_authdata.c
588
kdcauthdata_handle *h;
crypto/krb5/src/kdc/kdc_authdata.c
605
h = &authdata_modules[i];
crypto/krb5/src/kdc/kdc_authdata.c
606
ret = h->vt.handle(context, h->data, flags, client, server,
crypto/krb5/src/kdc/kdc_authdata.c
611
kdc_err(context, ret, "from authdata module %s", h->vt.name);
crypto/krb5/src/kdc/kdc_authdata.c
70
h = &list[count];
crypto/krb5/src/kdc/kdc_authdata.c
71
memset(h, 0, sizeof(*h));
crypto/krb5/src/kdc/kdc_authdata.c
72
ret = (*mod)(context, 1, 1, (krb5_plugin_vtable)&h->vt);
crypto/krb5/src/kdc/kdc_authdata.c
75
if (h->vt.init != NULL) {
crypto/krb5/src/kdc/kdc_authdata.c
76
ret = h->vt.init(context, &h->data);
crypto/krb5/src/kdc/kdc_authdata.c
79
h->vt.name);
crypto/krb5/src/kdc/kdc_authdata.c
95
kdcauthdata_handle *h;
crypto/krb5/src/kdc/kdc_authdata.c
99
h = &authdata_modules[i];
crypto/krb5/src/kdc/kdc_util.c
1887
struct server_handle *h = handle;
crypto/krb5/src/kdc/kdc_util.c
1889
retval = krb5_us_timeofday(h->kdc_err_context,
crypto/krb5/src/kdc/kdc_util.c
1894
errpkt.server = h->kdc_realmlist[0]->realm_tgsprinc;
crypto/krb5/src/kdc/kdc_util.c
1905
retval = krb5_mk_error(h->kdc_err_context, &errpkt, scratch);
crypto/krb5/src/kdc/kdc_util.c
1918
struct server_handle *h = ctx;
crypto/krb5/src/kdc/kdc_util.c
1920
for (k = 0; k < h->kdc_numrealms; k++)
crypto/krb5/src/kdc/kdc_util.c
1921
krb5_db_refresh_config(h->kdc_realmlist[k]->realm_context);
crypto/krb5/src/kdc/policy.c
111
kdcpolicy_handle *hp, h;
crypto/krb5/src/kdc/policy.c
121
h = *hp;
crypto/krb5/src/kdc/policy.c
122
if (h->vt.check_as == NULL)
crypto/krb5/src/kdc/policy.c
125
ret = h->vt.check_as(context, h->moddata, request, client, server,
crypto/krb5/src/kdc/policy.c
151
kdcpolicy_handle *hp, h;
crypto/krb5/src/kdc/policy.c
161
h = *hp;
crypto/krb5/src/kdc/policy.c
162
if (h->vt.check_tgs == NULL)
crypto/krb5/src/kdc/policy.c
165
ret = h->vt.check_tgs(context, h->moddata, request, server, ticket,
crypto/krb5/src/kdc/policy.c
181
kdcpolicy_handle *hp, h;
crypto/krb5/src/kdc/policy.c
184
h = *hp;
crypto/krb5/src/kdc/policy.c
185
if (h->vt.fini != NULL)
crypto/krb5/src/kdc/policy.c
186
h->vt.fini(context, h->moddata);
crypto/krb5/src/kdc/policy.c
187
free(h);
crypto/krb5/src/kdc/policy.c
198
kdcpolicy_handle h;
crypto/krb5/src/kdc/policy.c
212
h = k5calloc(1, sizeof(*h), &ret);
crypto/krb5/src/kdc/policy.c
213
if (h == NULL)
crypto/krb5/src/kdc/policy.c
216
ret = (*mod)(context, 1, 1, (krb5_plugin_vtable)&h->vt);
crypto/krb5/src/kdc/policy.c
219
free(h);
crypto/krb5/src/kdc/policy.c
222
if (h->vt.init != NULL) {
crypto/krb5/src/kdc/policy.c
223
ret = h->vt.init(context, &h->moddata);
crypto/krb5/src/kdc/policy.c
225
TRACE_KDCPOLICY_INIT_SKIP(context, h->vt.name);
crypto/krb5/src/kdc/policy.c
226
free(h);
crypto/krb5/src/kdc/policy.c
231
h->vt.name);
crypto/krb5/src/kdc/policy.c
232
free(h);
crypto/krb5/src/kdc/policy.c
236
handles[count++] = h;
crypto/krb5/src/lib/crypto/builtin/aes/aestab.h
104
#define d_4(t,n,b,e,f,g,h) EXTERN AES_ALIGN CONST XP_DIR t n[4][256] = { b(e), b(f), b(g), b(h) }
crypto/krb5/src/lib/crypto/builtin/aes/aestab.h
108
#define d_4(t,n,b,e,f,g,h) EXTERN AES_ALIGN CONST XP_DIR t n[4][256]
crypto/krb5/src/lib/crypto/builtin/aes/brg_types.h
106
# define li_64(h) 0x##h##ul
crypto/krb5/src/lib/crypto/builtin/aes/brg_types.h
113
# define li_64(h) 0x##h##ull
crypto/krb5/src/lib/crypto/builtin/aes/brg_types.h
120
# define li_64(h) 0x##h##ull
crypto/krb5/src/lib/crypto/builtin/aes/brg_types.h
58
# define li_32(h) 0x##h##u
crypto/krb5/src/lib/crypto/builtin/aes/brg_types.h
63
# define li_32(h) 0x##h##ul
crypto/krb5/src/lib/crypto/builtin/aes/brg_types.h
78
# define li_64(h) 0x##h##ui64
crypto/krb5/src/lib/crypto/builtin/aes/brg_types.h
83
# define li_64(h) 0x##h##ui64
crypto/krb5/src/lib/crypto/builtin/aes/brg_types.h
88
# define li_64(h) 0x##h##ull
crypto/krb5/src/lib/crypto/builtin/aes/brg_types.h
93
# define li_64(h) 0x##h##ull
crypto/krb5/src/lib/crypto/builtin/aes/brg_types.h
99
# define li_64(h) 0x##h##u
crypto/krb5/src/lib/crypto/crypto_tests/t_hmac.c
105
err = h->hash(&iov, 1, &d);
crypto/krb5/src/lib/crypto/crypto_tests/t_hmac.c
118
err = krb5int_hmac(h, k, &iov, 1, out);
crypto/krb5/src/lib/crypto/crypto_tests/t_hmac.c
85
static krb5_error_code hmac1(const struct krb5_hash_provider *h,
crypto/krb5/src/lib/crypto/crypto_tests/t_hmac.c
97
blocksize = h->blocksize;
crypto/krb5/src/lib/crypto/crypto_tests/t_hmac.c
98
hashsize = h->hashsize;
crypto/krb5/src/lib/gssapi/krb5/unwrap.c
196
uint8_t *h;
crypto/krb5/src/lib/gssapi/krb5/unwrap.c
200
h = (uint8_t *)plain->data + plain->length - V3_HEADER_LEN;
crypto/krb5/src/lib/gssapi/krb5/unwrap.c
201
return load_16_be(h) == KG2_TOK_WRAP_MSG && h[2] == flags &&
crypto/krb5/src/lib/gssapi/krb5/unwrap.c
202
h[3] == 0xFF && load_16_be(h + 4) == ec &&
crypto/krb5/src/lib/gssapi/krb5/unwrap.c
203
load_64_be(h + 8) == seqnum;
crypto/krb5/src/lib/kadm5/srv/kadm5_hook.c
127
kadm5_hook_handle h = *handles; \
crypto/krb5/src/lib/kadm5/srv/kadm5_hook.c
129
if (h->vt.operation) { \
crypto/krb5/src/lib/kadm5/srv/kadm5_hook.c
130
ret = h->vt.operation params; \
crypto/krb5/src/lib/kadm5/srv/kadm5_hook.c
136
log_failure(context, h->vt.name, #operation, ret); \
crypto/krb5/src/lib/kadm5/srv/kadm5_hook.c
147
ITERATE(chpass, (context, h->data,
crypto/krb5/src/lib/kadm5/srv/kadm5_hook.c
159
ITERATE(create, (context, h->data,
crypto/krb5/src/lib/kadm5/srv/kadm5_hook.c
168
ITERATE(modify, (context, h->data, stage, princ, mask));
crypto/krb5/src/lib/kadm5/srv/kadm5_hook.c
176
ITERATE(rename, (context, h->data, stage, oprinc, nprinc));
crypto/krb5/src/lib/kadm5/srv/kadm5_hook.c
184
ITERATE(remove, (context, h->data, stage, princ));
crypto/krb5/src/lib/kadm5/srv/kadm5_hook.c
192
ITERATE(alias, (context, h->data, stage, alias, target));
crypto/krb5/src/lib/kadm5/srv/server_misc.c
111
pwqual_handle *h;
crypto/krb5/src/lib/kadm5/srv/server_misc.c
119
for (h = handle->qual_handles; *h != NULL; h++) {
crypto/krb5/src/lib/kadm5/srv/server_misc.c
120
ret = k5_pwqual_check(handle->context, *h, password, polname, princ);
crypto/krb5/src/lib/kadm5/srv/server_misc.c
123
const char *modname = k5_pwqual_name(handle->context, *h);
crypto/krb5/src/lib/krb5/asn.1/asn1_k_encode.c
473
kdc_req_hack h;
crypto/krb5/src/lib/krb5/asn.1/asn1_k_encode.c
474
h.v = *val;
crypto/krb5/src/lib/krb5/asn.1/asn1_k_encode.c
477
h.server_realm = val->second_ticket[0]->server->realm;
crypto/krb5/src/lib/krb5/asn.1/asn1_k_encode.c
481
h.server_realm = val->server->realm;
crypto/krb5/src/lib/krb5/asn.1/asn1_k_encode.c
484
return k5_asn1_encode_atype(buf, &h, &k5_atype_kdc_req_body_hack, tag_out);
crypto/krb5/src/lib/krb5/asn.1/asn1_k_encode.c
502
kdc_req_hack h;
crypto/krb5/src/lib/krb5/asn.1/asn1_k_encode.c
504
memset(&h, 0, sizeof(h));
crypto/krb5/src/lib/krb5/asn.1/asn1_k_encode.c
505
ret = k5_asn1_decode_atype(t, asn1, len, &k5_atype_kdc_req_body_hack, &h);
crypto/krb5/src/lib/krb5/asn.1/asn1_k_encode.c
508
b->kdc_options = h.v.kdc_options;
crypto/krb5/src/lib/krb5/asn.1/asn1_k_encode.c
509
b->client = h.v.client;
crypto/krb5/src/lib/krb5/asn.1/asn1_k_encode.c
510
b->server = h.v.server;
crypto/krb5/src/lib/krb5/asn.1/asn1_k_encode.c
511
b->from = h.v.from;
crypto/krb5/src/lib/krb5/asn.1/asn1_k_encode.c
512
b->till = h.v.till;
crypto/krb5/src/lib/krb5/asn.1/asn1_k_encode.c
513
b->rtime = h.v.rtime;
crypto/krb5/src/lib/krb5/asn.1/asn1_k_encode.c
514
b->nonce = h.v.nonce;
crypto/krb5/src/lib/krb5/asn.1/asn1_k_encode.c
515
b->ktype = h.v.ktype;
crypto/krb5/src/lib/krb5/asn.1/asn1_k_encode.c
516
b->nktypes = h.v.nktypes;
crypto/krb5/src/lib/krb5/asn.1/asn1_k_encode.c
517
b->addresses = h.v.addresses;
crypto/krb5/src/lib/krb5/asn.1/asn1_k_encode.c
518
b->authorization_data = h.v.authorization_data;
crypto/krb5/src/lib/krb5/asn.1/asn1_k_encode.c
519
b->second_ticket = h.v.second_ticket;
crypto/krb5/src/lib/krb5/asn.1/asn1_k_encode.c
521
ret = krb5int_copy_data_contents(NULL, &h.server_realm,
crypto/krb5/src/lib/krb5/asn.1/asn1_k_encode.c
525
free(h.server_realm.data);
crypto/krb5/src/lib/krb5/asn.1/asn1_k_encode.c
528
b->server->realm = h.server_realm;
crypto/krb5/src/lib/krb5/asn.1/asn1_k_encode.c
530
b->client->realm = h.server_realm;
crypto/krb5/src/lib/krb5/asn.1/asn1_k_encode.c
532
b->server->realm = h.server_realm;
crypto/krb5/src/lib/krb5/asn.1/asn1_k_encode.c
534
free(h.server_realm.data);
crypto/krb5/src/lib/krb5/ccache/ccapi/winccld.c
43
HINSTANCE h;
crypto/krb5/src/lib/krb5/ccache/ccapi/winccld.c
53
if (!(h = LoadLibrary(dll_name))) {
crypto/krb5/src/lib/krb5/ccache/ccapi/winccld.c
62
void* p = (void*)GetProcAddress(h, fi[i].func_name);
crypto/krb5/src/lib/krb5/ccache/ccapi/winccld.c
77
FreeLibrary(h);
crypto/krb5/src/lib/krb5/ccache/ccapi/winccld.c
80
if (ph) *ph = h;
crypto/krb5/src/lib/krb5/ccache/ccselect.c
129
struct ccselect_module_handle **hp, *h;
crypto/krb5/src/lib/krb5/ccache/ccselect.c
169
h = *hp;
crypto/krb5/src/lib/krb5/ccache/ccselect.c
170
if (h->priority != priority)
crypto/krb5/src/lib/krb5/ccache/ccselect.c
172
ret = h->vt.choose(context, h->data, server, &cache, &princ);
crypto/krb5/src/lib/krb5/ccache/ccselect.c
174
TRACE_CCSELECT_MODCHOICE(context, h->vt.name, server, cache,
crypto/krb5/src/lib/krb5/ccache/ccselect.c
180
TRACE_CCSELECT_MODNOTFOUND(context, h->vt.name, server, princ);
crypto/krb5/src/lib/krb5/ccache/ccselect.c
184
TRACE_CCSELECT_MODFAIL(context, h->vt.name, ret, server);
crypto/krb5/src/lib/krb5/ccache/ccselect.c
41
struct ccselect_module_handle *h, **hp;
crypto/krb5/src/lib/krb5/ccache/ccselect.c
46
h = *hp;
crypto/krb5/src/lib/krb5/ccache/ccselect.c
47
if (h->vt.fini)
crypto/krb5/src/lib/krb5/ccache/ccselect.c
48
h->vt.fini(context, h->data);
crypto/krb5/src/lib/krb5/ccache/ccselect.c
49
free(h);
crypto/krb5/src/lib/krb5/krb/deltat.c
133
#define HOUR_NOT_OK(h) (h) > MAX_HOUR || (h) < MIN_HOUR
crypto/krb5/src/lib/krb5/krb/preauth2.c
1042
clpreauth_handle *hp, h;
crypto/krb5/src/lib/krb5/krb/preauth2.c
1060
h = *hp;
crypto/krb5/src/lib/krb5/krb/preauth2.c
1061
ret = clpreauth_gic_opts(context, h, opt, attr, value);
crypto/krb5/src/lib/krb5/krb/preauth2.c
1063
k5_prependmsg(context, ret, _("Preauth module %s"), h->vt.name);
crypto/krb5/src/lib/krb5/krb/preauth2.c
123
clpreauth_handle *list = NULL, h;
crypto/krb5/src/lib/krb5/krb/preauth2.c
161
h = calloc(1, sizeof(*h));
crypto/krb5/src/lib/krb5/krb/preauth2.c
162
if (h == NULL)
crypto/krb5/src/lib/krb5/krb/preauth2.c
166
if ((*mod)(context, 1, 1, (krb5_plugin_vtable)&h->vt) != 0) {
crypto/krb5/src/lib/krb5/krb/preauth2.c
167
free(h);
crypto/krb5/src/lib/krb5/krb/preauth2.c
172
for (tp = h->vt.pa_type_list; *tp != 0; tp++) {
crypto/krb5/src/lib/krb5/krb/preauth2.c
175
TRACE_PREAUTH_CONFLICT(context, h->vt.name, list[i]->vt.name,
crypto/krb5/src/lib/krb5/krb/preauth2.c
184
h->data = NULL;
crypto/krb5/src/lib/krb5/krb/preauth2.c
185
if (h->vt.init != NULL && h->vt.init(context, &h->data) != 0) {
crypto/krb5/src/lib/krb5/krb/preauth2.c
186
free(h);
crypto/krb5/src/lib/krb5/krb/preauth2.c
189
list[count++] = h;
crypto/krb5/src/lib/krb5/krb/preauth2.c
246
clpreauth_handle h;
crypto/krb5/src/lib/krb5/krb/preauth2.c
271
h = pctx->handles[i];
crypto/krb5/src/lib/krb5/krb/preauth2.c
272
if (h->vt.request_init != NULL)
crypto/krb5/src/lib/krb5/krb/preauth2.c
273
h->vt.request_init(context, h->data, &reqctx->modreqs[i]);
crypto/krb5/src/lib/krb5/krb/preauth2.c
287
clpreauth_handle h;
crypto/krb5/src/lib/krb5/krb/preauth2.c
293
h = pctx->handles[i];
crypto/krb5/src/lib/krb5/krb/preauth2.c
294
if (reqctx->modreqs[i] != NULL && h->vt.request_fini != NULL)
crypto/krb5/src/lib/krb5/krb/preauth2.c
295
h->vt.request_fini(context, h->data, reqctx->modreqs[i]);
crypto/krb5/src/lib/krb5/krb/preauth2.c
322
clpreauth_is_real(krb5_context context, clpreauth_handle h,
crypto/krb5/src/lib/krb5/krb/preauth2.c
325
if (h->vt.flags == NULL)
crypto/krb5/src/lib/krb5/krb/preauth2.c
327
return (h->vt.flags(context, pa_type) & PA_REAL) != 0;
crypto/krb5/src/lib/krb5/krb/preauth2.c
331
clpreauth_prep_questions(krb5_context context, clpreauth_handle h,
crypto/krb5/src/lib/krb5/krb/preauth2.c
338
if (h->vt.prep_questions == NULL)
crypto/krb5/src/lib/krb5/krb/preauth2.c
340
return h->vt.prep_questions(context, h->data, modreq, opt, cb, rock, req,
crypto/krb5/src/lib/krb5/krb/preauth2.c
345
clpreauth_process(krb5_context context, clpreauth_handle h,
crypto/krb5/src/lib/krb5/krb/preauth2.c
352
return h->vt.process(context, h->data, modreq, opt, cb, rock, req,
crypto/krb5/src/lib/krb5/krb/preauth2.c
358
clpreauth_tryagain(krb5_context context, clpreauth_handle h,
crypto/krb5/src/lib/krb5/krb/preauth2.c
366
if (h->vt.tryagain == NULL)
crypto/krb5/src/lib/krb5/krb/preauth2.c
368
return h->vt.tryagain(context, h->data, modreq, opt, cb, rock, req,
crypto/krb5/src/lib/krb5/krb/preauth2.c
374
clpreauth_gic_opts(krb5_context context, clpreauth_handle h,
crypto/krb5/src/lib/krb5/krb/preauth2.c
378
if (h->vt.gic_opts == NULL)
crypto/krb5/src/lib/krb5/krb/preauth2.c
380
return h->vt.gic_opts(context, h->data, opt, attr, value);
crypto/krb5/src/lib/krb5/krb/preauth2.c
581
clpreauth_handle *hp, h;
crypto/krb5/src/lib/krb5/krb/preauth2.c
590
h = *hp;
crypto/krb5/src/lib/krb5/krb/preauth2.c
591
if (h->vt.enctype_list == NULL)
crypto/krb5/src/lib/krb5/krb/preauth2.c
593
for (ep = h->vt.enctype_list; *ep != ENCTYPE_NULL; ep++)
crypto/krb5/src/lib/krb5/krb/preauth2.c
65
clpreauth_handle *hp, h;
crypto/krb5/src/lib/krb5/krb/preauth2.c
658
clpreauth_handle h;
crypto/krb5/src/lib/krb5/krb/preauth2.c
669
h = find_module(context, ctx, pa->pa_type, &modreq);
crypto/krb5/src/lib/krb5/krb/preauth2.c
670
if (h == NULL)
crypto/krb5/src/lib/krb5/krb/preauth2.c
673
if (clpreauth_is_real(context, h, pa->pa_type) != real)
crypto/krb5/src/lib/krb5/krb/preauth2.c
679
ret = clpreauth_process(context, h, modreq, ctx->opt, &callbacks,
crypto/krb5/src/lib/krb5/krb/preauth2.c
685
TRACE_PREAUTH_PROCESS(context, h->vt.name, pa->pa_type, real,
crypto/krb5/src/lib/krb5/krb/preauth2.c
70
h = *hp;
crypto/krb5/src/lib/krb5/krb/preauth2.c
71
if (h->vt.fini != NULL)
crypto/krb5/src/lib/krb5/krb/preauth2.c
72
h->vt.fini(context, h->data);
crypto/krb5/src/lib/krb5/krb/preauth2.c
73
free(h);
crypto/krb5/src/lib/krb5/krb/preauth2.c
83
clpreauth_handle h;
crypto/krb5/src/lib/krb5/krb/preauth2.c
87
h = handles[i];
crypto/krb5/src/lib/krb5/krb/preauth2.c
88
for (j = 0; h->vt.pa_type_list[j] != 0; j++) {
crypto/krb5/src/lib/krb5/krb/preauth2.c
89
if (h->vt.pa_type_list[j] == pa_type)
crypto/krb5/src/lib/krb5/krb/preauth2.c
900
clpreauth_handle h;
crypto/krb5/src/lib/krb5/krb/preauth2.c
907
h = find_module(context, ctx, pa_type, &modreq);
crypto/krb5/src/lib/krb5/krb/preauth2.c
908
if (h == NULL)
crypto/krb5/src/lib/krb5/krb/preauth2.c
911
ret = clpreauth_tryagain(context, h, modreq, ctx->opt, &callbacks,
crypto/krb5/src/lib/krb5/krb/preauth2.c
917
TRACE_PREAUTH_TRYAGAIN(context, h->vt.name, pa_type, ret);
crypto/krb5/src/lib/krb5/krb/preauth2.c
946
clpreauth_handle h;
crypto/krb5/src/lib/krb5/krb/preauth2.c
954
h = find_module(context, ctx, pa->pa_type, &modreq);
crypto/krb5/src/lib/krb5/krb/preauth2.c
955
if (h == NULL)
crypto/krb5/src/lib/krb5/krb/preauth2.c
957
ret = clpreauth_prep_questions(context, h, modreq, ctx->opt,
crypto/krb5/src/lib/krb5/krb/x-deltat.y
100
#define HOUR_NOT_OK(h) (h) > MAX_HOUR || (h) < MIN_HOUR
crypto/krb5/src/lib/krb5/os/dnsglue.c
104
#define DECLARE_HANDLE(h)
crypto/krb5/src/lib/krb5/os/dnsglue.c
105
#define INIT_HANDLE(h) (res_init() == 0)
crypto/krb5/src/lib/krb5/os/dnsglue.c
106
#define SEARCH(h, n, c, t, a, l) res_search(n, c, t, a, l)
crypto/krb5/src/lib/krb5/os/dnsglue.c
107
#define PRIMARY_DOMAIN(h) \
crypto/krb5/src/lib/krb5/os/dnsglue.c
109
#define DESTROY_HANDLE(h)
crypto/krb5/src/lib/krb5/os/dnsglue.c
128
DECLARE_HANDLE(h);
crypto/krb5/src/lib/krb5/os/dnsglue.c
147
if (!INIT_HANDLE(h))
crypto/krb5/src/lib/krb5/os/dnsglue.c
161
len = SEARCH(h, host, ds->nclass, ds->ntype, ds->ansp, ds->ansmax);
crypto/krb5/src/lib/krb5/os/dnsglue.c
186
DESTROY_HANDLE(h);
crypto/krb5/src/lib/krb5/os/dnsglue.c
503
DECLARE_HANDLE(h);
crypto/krb5/src/lib/krb5/os/dnsglue.c
505
if (!INIT_HANDLE(h))
crypto/krb5/src/lib/krb5/os/dnsglue.c
507
domain = PRIMARY_DOMAIN(h);
crypto/krb5/src/lib/krb5/os/dnsglue.c
508
DESTROY_HANDLE(h);
crypto/krb5/src/lib/krb5/os/dnsglue.c
82
#define DECLARE_HANDLE(h) dns_handle_t h
crypto/krb5/src/lib/krb5/os/dnsglue.c
83
#define INIT_HANDLE(h) ((h = dns_open(NULL)) != NULL)
crypto/krb5/src/lib/krb5/os/dnsglue.c
84
#define SEARCH(h, n, c, t, a, l) dns_search(h, n, c, t, a, l, NULL, NULL)
crypto/krb5/src/lib/krb5/os/dnsglue.c
85
#define PRIMARY_DOMAIN(h) dns_search_list_domain(h, 0)
crypto/krb5/src/lib/krb5/os/dnsglue.c
86
#define DESTROY_HANDLE(h) dns_free(h)
crypto/krb5/src/lib/krb5/os/dnsglue.c
91
#define DECLARE_HANDLE(h) struct __res_state h
crypto/krb5/src/lib/krb5/os/dnsglue.c
92
#define INIT_HANDLE(h) (memset(&h, 0, sizeof(h)), res_ninit(&h) == 0)
crypto/krb5/src/lib/krb5/os/dnsglue.c
93
#define SEARCH(h, n, c, t, a, l) res_nsearch(&h, n, c, t, a, l)
crypto/krb5/src/lib/krb5/os/dnsglue.c
94
#define PRIMARY_DOMAIN(h) ((h.dnsrch[0] == NULL) ? NULL : strdup(h.dnsrch[0]))
crypto/krb5/src/lib/krb5/os/dnsglue.c
96
#define DESTROY_HANDLE(h) res_ndestroy(&h)
crypto/krb5/src/lib/krb5/os/dnsglue.c
98
#define DESTROY_HANDLE(h) res_nclose(&h)
crypto/krb5/src/lib/krb5/os/hostrealm.c
154
host_realm(krb5_context context, struct hostrealm_module_handle *h,
crypto/krb5/src/lib/krb5/os/hostrealm.c
157
if (h->vt.host_realm == NULL)
crypto/krb5/src/lib/krb5/os/hostrealm.c
159
return h->vt.host_realm(context, h->data, host, realms_out);
crypto/krb5/src/lib/krb5/os/hostrealm.c
164
fallback_realm(krb5_context context, struct hostrealm_module_handle *h,
crypto/krb5/src/lib/krb5/os/hostrealm.c
167
if (h->vt.fallback_realm == NULL)
crypto/krb5/src/lib/krb5/os/hostrealm.c
169
return h->vt.fallback_realm(context, h->data, host, realms_out);
crypto/krb5/src/lib/krb5/os/hostrealm.c
174
default_realm(krb5_context context, struct hostrealm_module_handle *h,
crypto/krb5/src/lib/krb5/os/hostrealm.c
177
if (h->vt.default_realm == NULL)
crypto/krb5/src/lib/krb5/os/hostrealm.c
179
return h->vt.default_realm(context, h->data, realms_out);
crypto/krb5/src/lib/krb5/os/hostrealm.c
184
free_list(krb5_context context, struct hostrealm_module_handle *h,
crypto/krb5/src/lib/krb5/os/hostrealm.c
187
h->vt.free_list(context, h->data, list);
crypto/krb5/src/lib/krb5/os/hostrealm.c
54
struct hostrealm_module_handle *h, **hp;
crypto/krb5/src/lib/krb5/os/hostrealm.c
59
h = *hp;
crypto/krb5/src/lib/krb5/os/hostrealm.c
60
if (h->vt.fini != NULL)
crypto/krb5/src/lib/krb5/os/hostrealm.c
61
h->vt.fini(context, h->data);
crypto/krb5/src/lib/krb5/os/hostrealm.c
62
free(h);
crypto/krb5/src/lib/krb5/os/localauth.c
204
userok(krb5_context context, struct localauth_module_handle *h,
crypto/krb5/src/lib/krb5/os/localauth.c
207
if (h->vt.userok == NULL)
crypto/krb5/src/lib/krb5/os/localauth.c
209
return h->vt.userok(context, h->data, aname, lname);
crypto/krb5/src/lib/krb5/os/localauth.c
214
an2ln(krb5_context context, struct localauth_module_handle *h,
crypto/krb5/src/lib/krb5/os/localauth.c
218
if (h->vt.an2ln == NULL)
crypto/krb5/src/lib/krb5/os/localauth.c
220
return h->vt.an2ln(context, h->data, type, residual, aname, lname_out);
crypto/krb5/src/lib/krb5/os/localauth.c
225
free_lname(krb5_context context, struct localauth_module_handle *h, char *str)
crypto/krb5/src/lib/krb5/os/localauth.c
227
h->vt.free_string(context, h->data, str);
crypto/krb5/src/lib/krb5/os/localauth.c
305
struct localauth_module_handle *h;
crypto/krb5/src/lib/krb5/os/localauth.c
332
h = find_typed_module(context->localauth_handles, type);
crypto/krb5/src/lib/krb5/os/localauth.c
333
if (h != NULL) {
crypto/krb5/src/lib/krb5/os/localauth.c
334
ret = an2ln(context, h, type, residual, aname, &lname);
crypto/krb5/src/lib/krb5/os/localauth.c
339
free_lname(context, h, lname);
crypto/krb5/src/lib/krb5/os/localauth.c
53
struct localauth_module_handle *h, **hp;
crypto/krb5/src/lib/krb5/os/localauth.c
58
h = *hp;
crypto/krb5/src/lib/krb5/os/localauth.c
59
if (h->vt.fini != NULL)
crypto/krb5/src/lib/krb5/os/localauth.c
60
h->vt.fini(context, h->data);
crypto/krb5/src/lib/krb5/os/localauth.c
61
free(h);
crypto/krb5/src/lib/krb5/os/localauth.c
70
struct localauth_module_handle **hp, *h;
crypto/krb5/src/lib/krb5/os/localauth.c
74
h = *hp;
crypto/krb5/src/lib/krb5/os/localauth.c
75
for (tp = h->vt.an2ln_types; tp != NULL && *tp != NULL; tp++) {
crypto/krb5/src/lib/krb5/os/localauth.c
77
return h;
crypto/krb5/src/lib/rpc/clnt_generic.c
58
struct hostent *h;
crypto/krb5/src/lib/rpc/clnt_generic.c
65
h = gethostbyname(hostname);
crypto/krb5/src/lib/rpc/clnt_generic.c
66
if (h == NULL) {
crypto/krb5/src/lib/rpc/clnt_generic.c
70
if (h->h_addrtype != AF_INET) {
crypto/krb5/src/lib/rpc/clnt_generic.c
79
sockin.sin_family = h->h_addrtype;
crypto/krb5/src/lib/rpc/clnt_generic.c
81
memmove((char*)&sockin.sin_addr, h->h_addr, sizeof(sockin.sin_addr));
crypto/krb5/src/lib/rpc/clnt_raw.c
135
CLIENT *h,
crypto/krb5/src/lib/rpc/clnt_raw.c
161
(! AUTH_MARSHALL(h->cl_auth, xdrs)) ||
crypto/krb5/src/lib/rpc/clnt_raw.c
202
if (! AUTH_VALIDATE(h->cl_auth, &msg.acpted_rply.ar_verf)) {
crypto/krb5/src/lib/rpc/clnt_raw.c
207
if (AUTH_REFRESH(h->cl_auth, &msg))
crypto/krb5/src/lib/rpc/clnt_raw.c
212
if (! AUTH_VALIDATE(h->cl_auth, &msg.acpted_rply.ar_verf)) {
crypto/krb5/src/lib/rpc/clnt_tcp.c
132
CLIENT *h;
crypto/krb5/src/lib/rpc/clnt_tcp.c
137
h = (CLIENT *)mem_alloc(sizeof(*h));
crypto/krb5/src/lib/rpc/clnt_tcp.c
138
if (h == NULL) {
crypto/krb5/src/lib/rpc/clnt_tcp.c
159
mem_free((caddr_t)h, sizeof(CLIENT));
crypto/krb5/src/lib/rpc/clnt_tcp.c
231
h->cl_ops = &tcp_ops;
crypto/krb5/src/lib/rpc/clnt_tcp.c
232
h->cl_private = (caddr_t) ct;
crypto/krb5/src/lib/rpc/clnt_tcp.c
233
h->cl_auth = authnone_create();
crypto/krb5/src/lib/rpc/clnt_tcp.c
234
return (h);
crypto/krb5/src/lib/rpc/clnt_tcp.c
241
mem_free((caddr_t)h, sizeof(CLIENT));
crypto/krb5/src/lib/rpc/clnt_tcp.c
247
CLIENT *h,
crypto/krb5/src/lib/rpc/clnt_tcp.c
255
struct ct_data *ct = h->cl_private;
crypto/krb5/src/lib/rpc/clnt_tcp.c
278
(! AUTH_MARSHALL(h->cl_auth, xdrs)) ||
crypto/krb5/src/lib/rpc/clnt_tcp.c
279
(! AUTH_WRAP(h->cl_auth, xdrs, xdr_args, args_ptr))) {
crypto/krb5/src/lib/rpc/clnt_tcp.c
331
if (! AUTH_VALIDATE(h->cl_auth, &reply_msg.acpted_rply.ar_verf)) {
crypto/krb5/src/lib/rpc/clnt_tcp.c
334
} else if (! AUTH_UNWRAP(h->cl_auth, xdrs,
crypto/krb5/src/lib/rpc/clnt_tcp.c
342
if (refreshes-- && AUTH_REFRESH(h->cl_auth, &reply_msg))
crypto/krb5/src/lib/rpc/clnt_tcp.c
356
CLIENT *h,
crypto/krb5/src/lib/rpc/clnt_tcp.c
359
struct ct_data *ct = h->cl_private;
crypto/krb5/src/lib/rpc/clnt_tcp.c
417
clnttcp_destroy(CLIENT *h)
crypto/krb5/src/lib/rpc/clnt_tcp.c
419
struct ct_data *ct = h->cl_private;
crypto/krb5/src/lib/rpc/clnt_tcp.c
425
mem_free((caddr_t)h, sizeof(CLIENT));
crypto/krb5/src/lib/rpc/clnt_udp.c
441
clntudp_abort(CLIENT *h)
crypto/krb5/src/lib/rpc/unit-test/client.c
125
h = gethostbyname(host);
crypto/krb5/src/lib/rpc/unit-test/client.c
126
if (h == NULL) {
crypto/krb5/src/lib/rpc/unit-test/client.c
131
sin.sin_family = h->h_addrtype;
crypto/krb5/src/lib/rpc/unit-test/client.c
133
memmove(&sin.sin_addr, h->h_addr, sizeof(sin.sin_addr));
crypto/krb5/src/lib/rpc/unit-test/client.c
66
struct hostent *h;
crypto/krb5/src/lib/rpc/unit-test/server.c
155
char **rpc_test_echo_1_svc(char **arg, struct svc_req *h)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_conv.c
101
else if ((h->flags & P_TYPE) == P_BLEAF)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_conv.c
103
M_16_SWAP(h->linp[i]);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_conv.c
104
p = (char *)GETBLEAF(h, i);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_conv.c
130
PAGE *h;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_conv.c
143
h = pp;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_conv.c
144
top = NEXTINDEX(h);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_conv.c
145
if ((h->flags & P_TYPE) == P_BINTERNAL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_conv.c
147
p = (char *)GETBINTERNAL(h, i);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_conv.c
158
M_16_SWAP(h->linp[i]);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_conv.c
160
else if ((h->flags & P_TYPE) == P_BLEAF)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_conv.c
162
ksize = GETBLEAF(h, i)->ksize;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_conv.c
163
p = (char *)GETBLEAF(h, i);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_conv.c
182
M_16_SWAP(h->linp[i]);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_conv.c
185
M_32_SWAP(h->pgno);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_conv.c
186
M_32_SWAP(h->prevpg);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_conv.c
187
M_32_SWAP(h->nextpg);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_conv.c
188
M_32_SWAP(h->flags);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_conv.c
189
M_16_SWAP(h->lower);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_conv.c
190
M_16_SWAP(h->upper);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_conv.c
64
PAGE *h;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_conv.c
77
h = pp;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_conv.c
78
M_32_SWAP(h->pgno);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_conv.c
79
M_32_SWAP(h->prevpg);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_conv.c
80
M_32_SWAP(h->nextpg);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_conv.c
81
M_32_SWAP(h->flags);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_conv.c
82
M_16_SWAP(h->lower);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_conv.c
83
M_16_SWAP(h->upper);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_conv.c
85
top = NEXTINDEX(h);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_conv.c
86
if ((h->flags & P_TYPE) == P_BINTERNAL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_conv.c
88
M_16_SWAP(h->linp[i]);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_conv.c
89
p = (char *)GETBINTERNAL(h, i);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_debug.c
117
(h = mpool_get(t->bt_mp, i, MPOOL_IGNOREPIN)) != NULL; ++i)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_debug.c
118
__bt_dpage(dbp, h);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_debug.c
130
__bt_dmpage(h)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_debug.c
131
PAGE *h;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_debug.c
138
m = (BTMETA *)h;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_debug.c
174
PAGE *h;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_debug.c
179
if ((h = mpool_get(t->bt_mp, pgno, MPOOL_IGNOREPIN)) != NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_debug.c
180
__bt_dpage(dbp, h);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_debug.c
192
__bt_dpage(dbp, h)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_debug.c
194
PAGE *h;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_debug.c
208
(void)fprintf(tracefp, " page %d: (", h->pgno);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_debug.c
211
if (h->flags & flag) { \
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_debug.c
225
(void)fprintf(tracefp, "\tprev %2d next %2d", h->prevpg, h->nextpg);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_debug.c
226
if (h->flags & P_OVERFLOW) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_debug.c
233
top = NEXTINDEX(h);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_debug.c
236
h->lower, h->upper, top);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_debug.c
238
(void)fprintf(tracefp, "\t[%03d] %4d ", cur, h->linp[cur]);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_debug.c
239
switch (h->flags & P_TYPE) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_debug.c
241
bi = GETBINTERNAL(h, cur);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_debug.c
251
ri = GETRINTERNAL(h, cur);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_debug.c
256
bl = GETBLEAF(h, cur);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_debug.c
280
rl = GETRLEAF(h, cur);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_debug.c
305
__bt_dmpage(PAGE *h)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_debug.c
315
__bt_dpage(DB *dbp, PAGE *h)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_debug.c
336
PAGE *h;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_debug.c
347
(h = mpool_get(t->bt_mp, i, MPOOL_IGNOREPIN)) != NULL; ++i)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_debug.c
348
switch (h->flags & P_TYPE) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_debug.c
352
ifree += h->upper - h->lower;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_debug.c
357
lfree += h->upper - h->lower;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_debug.c
358
nkeys += NEXTINDEX(h);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_debug.c
367
h = mpool_get(t->bt_mp, i, MPOOL_IGNOREPIN);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_debug.c
368
if (h->flags & (P_BLEAF|P_RLEAF)) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_debug.c
374
GETRINTERNAL(h, 0)->pgno :
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_debug.c
375
GETBINTERNAL(h, 0)->pgno;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_debug.c
88
PAGE *h;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
103
if (NEXTINDEX(h) == 1)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
104
if (__bt_stkacq(t, &h, &t->bt_cursor))
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
107
status = __bt_dleaf(t, NULL, h, c->pg.index);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
109
if (NEXTINDEX(h) == 0 && status == RET_SUCCESS) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
110
if (__bt_pdelete(t, h))
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
114
h, status == RET_SUCCESS ? MPOOL_DIRTY : 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
145
PAGE *h;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
156
h = *hp;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
157
mpool_put(t->bt_mp, h, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
160
h = e->page;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
163
if (h->pgno == c->pg.pgno)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
172
while (h->pgno != c->pg.pgno) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
173
if ((nextpg = h->nextpg) == P_INVALID)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
175
mpool_put(t->bt_mp, h, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
180
if ((h = mpool_get(t->bt_mp, parent->pgno, 0)) == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
184
if (parent->index != NEXTINDEX(h) - 1) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
186
BT_PUSH(t, h->pgno, idx);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
189
mpool_put(t->bt_mp, h, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
195
bi = GETBINTERNAL(h, idx);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
200
mpool_put(t->bt_mp, h, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
203
if ((h = mpool_get(t->bt_mp, pgno, 0)) == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
207
mpool_put(t->bt_mp, h, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
208
if ((h = mpool_get(t->bt_mp, nextpg, 0)) == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
212
if (h->pgno == c->pg.pgno)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
216
mpool_put(t->bt_mp, h, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
219
h = e->page;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
227
while (h->pgno != c->pg.pgno) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
228
if ((prevpg = h->prevpg) == P_INVALID)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
230
mpool_put(t->bt_mp, h, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
235
if ((h = mpool_get(t->bt_mp, parent->pgno, 0)) == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
241
BT_PUSH(t, h->pgno, idx);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
244
mpool_put(t->bt_mp, h, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
250
bi = GETBINTERNAL(h, idx);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
254
mpool_put(t->bt_mp, h, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
257
if ((h = mpool_get(t->bt_mp, pgno, 0)) == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
260
idx = NEXTINDEX(h) - 1;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
263
mpool_put(t->bt_mp, h, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
264
if ((h = mpool_get(t->bt_mp, prevpg, 0)) == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
269
ret: mpool_put(t->bt_mp, h, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
288
PAGE *h;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
307
h = e->page;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
309
if (__bt_dleaf(t, key, h, e->index)) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
310
mpool_put(t->bt_mp, h, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
314
if (NEXTINDEX(h) == 0) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
315
if (__bt_pdelete(t, h))
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
318
mpool_put(t->bt_mp, h, MPOOL_DIRTY);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
322
} while (e->index < NEXTINDEX(h) && __bt_cmp(t, key, e) == 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
325
if (e->index == NEXTINDEX(h))
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
332
if (__bt_dleaf(t, key, h, e->index) == RET_ERROR) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
333
mpool_put(t->bt_mp, h, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
341
if (NEXTINDEX(h) == 0) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
342
if (__bt_pdelete(t, h))
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
348
mpool_put(t->bt_mp, h, MPOOL_DIRTY);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
370
__bt_pdelete(BTREE *t, PAGE *h)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
443
if (h->pgno == P_ROOT) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
444
mpool_put(t->bt_mp, h, MPOOL_DIRTY);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
447
return (__bt_relink(t, h) || __bt_free(t, h));
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
464
__bt_dleaf(BTREE *t, const DBT *key, PAGE *h, u_int idx)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
475
t->bt_cursor.pg.pgno == h->pgno && t->bt_cursor.pg.index == idx &&
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
476
__bt_curdel(t, key, h, idx))
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
480
to = bl = GETBLEAF(h, idx);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
489
from = (char *)h + h->upper;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
491
h->upper += nbytes;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
494
offset = h->linp[idx];
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
495
for (cnt = idx, ip = &h->linp[0]; cnt--; ++ip)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
498
for (cnt = NEXTINDEX(h) - idx; --cnt; ++ip)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
500
h->lower -= sizeof(indx_t);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
505
t->bt_cursor.pg.pgno == h->pgno && t->bt_cursor.pg.index > idx)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
525
__bt_curdel(BTREE *t, const DBT *key, PAGE *h, u_int idx)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
547
e.page = h;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
557
e.page = h;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
565
if (idx < NEXTINDEX(h) - 1) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
566
e.page = h;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
574
if (idx == 0 && h->prevpg != P_INVALID) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
575
if ((pg = mpool_get(t->bt_mp, h->prevpg, 0)) == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
586
if (idx == NEXTINDEX(h) - 1 && h->nextpg != P_INVALID) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
587
if ((pg = mpool_get(t->bt_mp, h->nextpg, 0)) == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
601
e.page = h;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
620
__bt_relink(BTREE *t, PAGE *h)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
624
if (h->nextpg != P_INVALID) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
625
if ((pg = mpool_get(t->bt_mp, h->nextpg, 0)) == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
627
pg->prevpg = h->prevpg;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
630
if (h->prevpg != P_INVALID) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
631
if ((pg = mpool_get(t->bt_mp, h->prevpg, 0)) == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
633
pg->nextpg = h->nextpg;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
66
PAGE *h;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_delete.c
96
if ((h = mpool_get(t->bt_mp, c->pg.pgno, 0)) == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_overflow.c
108
for (p = *buf;; p = (char *)p + nb, pg = h->nextpg) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_overflow.c
109
if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_overflow.c
113
memmove(p, (char *)h + BTDATAOFF, nb);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_overflow.c
114
mpool_put(t->bt_mp, h, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_overflow.c
136
PAGE *h, *last;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_overflow.c
148
p = (char *)p + plen, last = h) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_overflow.c
149
if ((h = __bt_new(t, &npg)) == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_overflow.c
152
h->pgno = npg;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_overflow.c
153
h->nextpg = h->prevpg = P_INVALID;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_overflow.c
154
h->flags = P_OVERFLOW;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_overflow.c
155
h->lower = h->upper = 0;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_overflow.c
158
memmove((char *)h + BTDATAOFF, p, nb);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_overflow.c
161
last->nextpg = h->pgno;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_overflow.c
164
*pg = h->pgno;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_overflow.c
167
mpool_put(t->bt_mp, h, MPOOL_DIRTY);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_overflow.c
187
PAGE *h;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_overflow.c
199
if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_overflow.c
203
if (h->flags & P_PRESERVE) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_overflow.c
204
mpool_put(t->bt_mp, h, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_overflow.c
210
pg = h->nextpg;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_overflow.c
211
__bt_free(t, h);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_overflow.c
214
if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_overflow.c
82
PAGE *h;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_page.c
60
__bt_free(BTREE *t, PAGE *h)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_page.c
63
h->prevpg = P_INVALID;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_page.c
64
h->nextpg = t->bt_free;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_page.c
65
t->bt_free = h->pgno;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_page.c
69
return (mpool_put(t->bt_mp, h, MPOOL_DIRTY));
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_page.c
86
PAGE *h;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_page.c
89
(h = mpool_get(t->bt_mp, t->bt_free, 0)) != NULL) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_page.c
91
t->bt_free = h->nextpg;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_page.c
93
return (h);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_put.c
157
if ((h = mpool_get(t->bt_mp, t->bt_cursor.pg.pgno, 0)) == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_put.c
170
h = e->page;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_put.c
183
mpool_put(t->bt_mp, h, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_put.c
193
delete: if (__bt_dleaf(t, key, h, idx) == RET_ERROR) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_put.c
194
mpool_put(t->bt_mp, h, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_put.c
207
if ((u_int32_t)h->upper - (u_int32_t)h->lower
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_put.c
209
if ((status = __bt_split(t, h, key,
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_put.c
215
if (idx < (nxtindex = NEXTINDEX(h)))
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_put.c
216
memmove(h->linp + idx + 1, h->linp + idx,
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_put.c
218
h->lower += sizeof(indx_t);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_put.c
220
h->linp[idx] = h->upper -= nbytes;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_put.c
221
dest = (char *)h + h->upper;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_put.c
227
t->bt_cursor.pg.pgno == h->pgno && t->bt_cursor.pg.index >= idx)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_put.c
231
if (h->nextpg == P_INVALID) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_put.c
232
if (idx == NEXTINDEX(h) - 1) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_put.c
235
t->bt_last.pgno = h->pgno;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_put.c
237
} else if (h->prevpg == P_INVALID) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_put.c
241
t->bt_last.pgno = h->pgno;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_put.c
246
mpool_put(t->bt_mp, h, MPOOL_DIRTY);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_put.c
273
PAGE *h;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_put.c
277
if ((h = mpool_get(t->bt_mp, t->bt_last.pgno, 0)) == NULL) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_put.c
281
t->bt_cur.page = h;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_put.c
289
if ((u_int32_t)h->upper - (u_int32_t)h->lower < nbytes + sizeof(indx_t))
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_put.c
295
if (t->bt_cur.index != NEXTINDEX(h) - 1)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_put.c
320
mpool_put(t->bt_mp, h, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_put.c
72
PAGE *h;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_search.c
103
if (h->flags & P_BLEAF) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_search.c
106
h->prevpg != P_INVALID &&
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_search.c
107
__bt_sprev(t, h, key, exactp))
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_search.c
109
if (base == NEXTINDEX(h) &&
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_search.c
110
h->nextpg != P_INVALID &&
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_search.c
111
__bt_snext(t, h, key, exactp))
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_search.c
128
next: BT_PUSH(t, h->pgno, idx);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_search.c
129
pg = GETBINTERNAL(h, idx)->pgno;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_search.c
130
mpool_put(t->bt_mp, h, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_search.c
148
__bt_snext(BTREE *t, PAGE *h, const DBT *key, int *exactp)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_search.c
161
if ((e.page = mpool_get(t->bt_mp, h->nextpg, 0)) == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_search.c
168
mpool_put(t->bt_mp, h, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_search.c
179
if ((h = mpool_get(t->bt_mp, parent->pgno, 0)) == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_search.c
183
if (parent->index != NEXTINDEX(h) - 1) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_search.c
185
BT_PUSH(t, h->pgno, idx);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_search.c
188
mpool_put(t->bt_mp, h, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_search.c
194
bi = GETBINTERNAL(h, idx);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_search.c
199
mpool_put(t->bt_mp, h, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_search.c
202
if ((h = mpool_get(t->bt_mp, pgno, 0)) == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_search.c
206
mpool_put(t->bt_mp, h, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_search.c
224
__bt_sprev(BTREE *t, PAGE *h, const DBT *key, int *exactp)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_search.c
237
if ((e.page = mpool_get(t->bt_mp, h->prevpg, 0)) == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_search.c
245
mpool_put(t->bt_mp, h, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_search.c
256
if ((h = mpool_get(t->bt_mp, parent->pgno, 0)) == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_search.c
262
BT_PUSH(t, h->pgno, idx);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_search.c
265
mpool_put(t->bt_mp, h, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_search.c
271
bi = GETBINTERNAL(h, idx);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_search.c
275
mpool_put(t->bt_mp, h, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_search.c
278
if ((h = mpool_get(t->bt_mp, pgno, 0)) == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_search.c
281
idx = NEXTINDEX(h) - 1;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_search.c
284
mpool_put(t->bt_mp, h, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_search.c
68
PAGE *h;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_search.c
75
if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_search.c
79
t->bt_cur.page = h;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_search.c
80
for (base = 0, lim = NEXTINDEX(h); lim; lim >>= 1) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_search.c
83
if (h->flags & P_BLEAF) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
181
PAGE *h;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
207
if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
211
if (NEXTINDEX(h) == 0) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
212
mpool_put(t->bt_mp, h, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
216
if (h->flags & (P_BLEAF | P_RLEAF))
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
218
pg = GETBINTERNAL(h, 0)->pgno;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
219
BT_PUSH(t, h->pgno, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
220
mpool_put(t->bt_mp, h, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
222
ep->page = h;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
231
if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
235
if (NEXTINDEX(h) == 0) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
236
mpool_put(t->bt_mp, h, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
240
if (h->flags & (P_BLEAF | P_RLEAF))
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
242
pg = GETBINTERNAL(h, NEXTINDEX(h) - 1)->pgno;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
243
BT_PUSH(t, h->pgno, NEXTINDEX(h) - 1);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
244
mpool_put(t->bt_mp, h, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
247
ep->page = h;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
248
ep->index = NEXTINDEX(h) - 1;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
272
PAGE *h;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
325
if ((h = mpool_get(t->bt_mp, c->pg.pgno, 0)) == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
343
if (++idx == NEXTINDEX(h)) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
345
ep->page = h;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
349
pg = h->nextpg;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
350
mpool_put(t->bt_mp, h, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
353
if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
367
ep->page = h;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
374
ep->page = h;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
378
pg = h->prevpg;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
379
mpool_put(t->bt_mp, h, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
382
if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
384
idx = NEXTINDEX(h) - 1;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
390
ep->page = h;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
401
PAGE *h;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
406
h = ep->page;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
411
mpool_put(t->bt_mp, h, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
415
if ((h = mpool_get(t->bt_mp, up->pgno, 0)) == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
418
} while (++idx == NEXTINDEX(h));
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
420
while (!(h->flags & (P_BLEAF | P_RLEAF))) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
422
BT_PUSH(t, h->pgno, idx);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
423
pg = GETBINTERNAL(h, idx)->pgno;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
424
mpool_put(t->bt_mp, h, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
425
if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
429
ep->page = h;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
440
PAGE *h;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
445
h = ep->page;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
450
mpool_put(t->bt_mp, h, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
454
if ((h = mpool_get(t->bt_mp, up->pgno, 0)) == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
459
while (!(h->flags & (P_BLEAF | P_RLEAF))) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
461
BT_PUSH(t, h->pgno, idx);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
462
pg = GETBINTERNAL(h, idx)->pgno;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
463
mpool_put(t->bt_mp, h, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
464
if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
466
idx = NEXTINDEX(h) - 1;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
468
ep->page = h;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
490
PAGE *h, *hprev;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
516
h = ep->page;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
530
if (h->prevpg == P_INVALID)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
532
if (h->pgno != save.page->pgno)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
533
mpool_put(t->bt_mp, h, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
535
h->prevpg, 0)) == NULL) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
536
if (h->pgno == save.page->pgno)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
541
ep->page = h = hprev;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
542
ep->index = NEXTINDEX(h);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
552
if (h->pgno != save.page->pgno)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
553
mpool_put(t->bt_mp, h, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
561
h = ep->page;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
562
pg = h->nextpg;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
563
mpool_put(t->bt_mp, h, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
566
if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c
569
ep->page = h;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
103
h = sp->pgno == P_ROOT ?
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
106
if (h == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
113
h->linp[skip] = h->upper -= ilen;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
114
dest = (char *)h + h->upper;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
154
if ((h = mpool_get(t->bt_mp, parent->pgno, 0)) == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
186
(h->prevpg != P_INVALID || skip > 1)) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
213
if ((u_int32_t)h->upper - (u_int32_t)h->lower
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
215
sp = h;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
216
h = h->pgno == P_ROOT ?
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
217
bt_root(t, h, &l, &r, &skip, nbytes) :
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
218
bt_page(t, h, &l, &r, &skip, nbytes);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
219
if (h == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
223
if (skip < (nxtindex = NEXTINDEX(h)))
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
224
memmove(h->linp + skip + 1, h->linp + skip,
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
226
h->lower += sizeof(indx_t);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
233
h->linp[skip] = h->upper -= nbytes;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
234
dest = (char *)h + h->linp[skip];
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
239
h->linp[skip] = h->upper -= nbytes;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
240
dest = (char *)h + h->linp[skip];
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
257
dest = (char *)h + h->linp[skip - 1];
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
264
h->linp[skip] = h->upper -= nbytes;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
265
dest = (char *)h + h->linp[skip];
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
275
dest = (char *)h + h->linp[skip - 1];
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
282
h->linp[skip] = h->upper -= nbytes;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
283
dest = (char *)h + h->linp[skip];
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
293
mpool_put(t->bt_mp, h, MPOOL_DIRTY);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
343
bt_page(BTREE *t, PAGE *h, PAGE **lp, PAGE **rp, indx_t *skip, size_t ilen)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
357
r->nextpg = h->nextpg;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
358
r->prevpg = h->pgno;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
359
r->flags = h->flags & P_TYPE;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
371
if (h->nextpg == P_INVALID && *skip == NEXTINDEX(h)) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
375
h->nextpg = r->pgno;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
378
*lp = h;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
391
l->pgno = h->pgno;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
393
l->prevpg = h->prevpg;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
396
l->flags = h->flags & P_TYPE;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
399
if (h->nextpg != P_INVALID) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
400
if ((tp = mpool_get(t->bt_mp, h->nextpg, 0)) == NULL) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
416
tp = bt_psplit(t, h, l, r, skip, ilen);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
419
memmove(h, l, t->bt_psize);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
421
tp = h;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
424
*lp = h;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
444
bt_root(BTREE *t, PAGE *h, PAGE **lp, PAGE **rp, indx_t *skip, size_t ilen)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
464
l->flags = r->flags = h->flags & P_TYPE;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
467
tp = bt_psplit(t, h, l, r, skip, ilen);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
487
bt_rroot(BTREE *t, PAGE *h, PAGE *l, PAGE *r)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
492
h->linp[0] = h->upper = t->bt_psize - NRINTERNAL;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
493
dest = (char *)h + h->upper;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
497
h->linp[1] = h->upper -= NRINTERNAL;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
498
dest = (char *)h + h->upper;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
502
h->lower = BTDATAOFF + 2 * sizeof(indx_t);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
505
h->flags &= ~P_TYPE;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
506
h->flags |= P_RINTERNAL;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
507
mpool_put(t->bt_mp, h, MPOOL_DIRTY);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
525
bt_broot(BTREE *t, PAGE *h, PAGE *l, PAGE *r)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
541
h->linp[0] = h->upper = t->bt_psize - nbytes;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
542
dest = (char *)h + h->upper;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
545
switch (h->flags & P_TYPE) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
549
h->linp[1] = h->upper -= nbytes;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
550
dest = (char *)h + h->upper;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
568
h->linp[1] = h->upper -= nbytes;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
569
dest = (char *)h + h->upper;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
578
h->lower = BTDATAOFF + 2 * sizeof(indx_t);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
581
h->flags &= ~P_TYPE;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
582
h->flags |= P_BINTERNAL;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
583
mpool_put(t->bt_mp, h, MPOOL_DIRTY);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
603
bt_psplit(BTREE *t, PAGE *h, PAGE *l, PAGE *r, indx_t *pskip, size_t ilen)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
627
for (nxt = off = 0, top = NEXTINDEX(h); nxt < top; ++off) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
632
switch (h->flags & P_TYPE) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
634
src = bi = GETBINTERNAL(h, nxt);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
639
src = bl = GETBLEAF(h, nxt);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
644
src = GETRINTERNAL(h, nxt);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
649
src = rl = GETRLEAF(h, nxt);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
700
if (F_ISSET(c, CURS_INIT) && c->pg.pgno == h->pgno) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
729
switch (h->flags & P_TYPE) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
731
src = bi = GETBINTERNAL(h, nxt);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
735
src = bl = GETBLEAF(h, nxt);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
739
src = GETRINTERNAL(h, nxt);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
743
src = rl = GETRLEAF(h, nxt);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
780
PAGE *h;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
782
if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
784
h->flags |= P_PRESERVE;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
785
mpool_put(t->bt_mp, h, MPOOL_DIRTY);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
804
rec_total(PAGE *h)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
809
for (recs = 0, nxt = 0, top = NEXTINDEX(h); nxt < top; ++nxt)
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
810
recs += GETRINTERNAL(h, nxt)->nrecs;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_split.c
89
PAGE *h, *l, *r, *lchild, *rchild;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_utils.c
155
PAGE *h;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_utils.c
165
h = e->page;
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_utils.c
166
if (e->index == 0 && h->prevpg == P_INVALID && !(h->flags & P_BLEAF))
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_utils.c
170
if (h->flags & P_BLEAF) {
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_utils.c
171
bl = GETBLEAF(h, e->index);
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_utils.c
179
bi = GETBINTERNAL(h, e->index);
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_func.c
100
dcharhash(h, c);
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_func.c
102
return (h);
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_func.c
158
u_int32_t h, loop;
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_func.c
161
#define HASH4a h = (h << 5) - h + *k++;
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_func.c
162
#define HASH4b h = (h << 5) + h + *k++;
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_func.c
165
h = 0;
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_func.c
192
return (h);
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_func.c
71
u_int32_t h;
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_func.c
74
h = 0;
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_func.c
78
h = h * PRIME1 ^ (*k++ - ' ');
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_func.c
79
h %= PRIME2;
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_func.c
80
return (h);
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_func.c
86
#define dcharhash(h, c) ((h) = 0x63c63cd9*(h) + 0x9c39c33d + (c))
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_func.c
91
u_int32_t h;
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_func.c
96
for (h = 0; k != e;) {
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_delete.c
120
PAGE *h;
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_delete.c
128
h = e->page;
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_delete.c
129
status = __rec_dleaf(t, h, e->index);
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_delete.c
131
mpool_put(t->bt_mp, h, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_delete.c
134
mpool_put(t->bt_mp, h, MPOOL_DIRTY);
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_delete.c
149
__rec_dleaf(BTREE *t, PAGE *h, u_int32_t idx)
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_delete.c
167
to = rl = GETRLEAF(h, idx);
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_delete.c
176
from = (char *)h + h->upper;
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_delete.c
178
h->upper += nbytes;
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_delete.c
180
offset = h->linp[idx];
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_delete.c
181
for (cnt = &h->linp[idx] - (ip = &h->linp[0]); cnt--; ++ip)
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_delete.c
184
for (cnt = &h->linp[NEXTINDEX(h)] - ip; --cnt; ++ip)
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_delete.c
186
h->lower -= sizeof(indx_t);
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_open.c
201
if ((h = mpool_get(t->bt_mp, P_ROOT, 0)) == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_open.c
203
if ((h->flags & P_TYPE) == P_BLEAF) {
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_open.c
204
F_CLR(h, P_TYPE);
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_open.c
205
F_SET(h, P_RLEAF);
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_open.c
206
mpool_put(t->bt_mp, h, MPOOL_DIRTY);
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_open.c
208
mpool_put(t->bt_mp, h, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_open.c
64
PAGE *h;
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_put.c
190
PAGE *h;
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_put.c
221
h = e->page;
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_put.c
238
__rec_dleaf(t, h, idx) == RET_ERROR) {
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_put.c
239
mpool_put(t->bt_mp, h, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_put.c
251
if ((u_int32_t)h->upper - (u_int32_t)h->lower
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_put.c
253
status = __bt_split(t, h, NULL, data, dflags, nbytes, idx);
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_put.c
259
if (idx < (nxtindex = NEXTINDEX(h)))
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_put.c
260
memmove(h->linp + idx + 1, h->linp + idx,
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_put.c
262
h->lower += sizeof(indx_t);
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_put.c
264
h->linp[idx] = h->upper -= nbytes;
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_put.c
265
dest = (char *)h + h->upper;
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_put.c
270
mpool_put(t->bt_mp, h, MPOOL_DIRTY);
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_search.c
100
++GETRINTERNAL(h, (idx - 1))->nrecs;
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_search.c
101
mpool_put(t->bt_mp, h, MPOOL_DIRTY);
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_search.c
104
mpool_put(t->bt_mp, h, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_search.c
113
if ((h = mpool_get(t->bt_mp, parent->pgno, 0)) == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_search.c
116
--GETRINTERNAL(h, parent->index)->nrecs;
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_search.c
118
++GETRINTERNAL(h, parent->index)->nrecs;
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_search.c
119
mpool_put(t->bt_mp, h, MPOOL_DIRTY);
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_search.c
67
PAGE *h;
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_search.c
77
if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_search.c
79
if (h->flags & P_RLEAF) {
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_search.c
80
t->bt_cur.page = h;
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_search.c
84
for (idx = 0, top = NEXTINDEX(h);;) {
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_search.c
85
r = GETRINTERNAL(h, idx);
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_search.c
96
--GETRINTERNAL(h, (idx - 1))->nrecs;
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_search.c
97
mpool_put(t->bt_mp, h, MPOOL_DIRTY);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
863
PAGE *h;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
868
if ((h = mpool_get(t->bt_mp, pg, MPOOL_IGNOREPIN)) == NULL) {
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
873
__bt_dmpage(h);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
875
__bt_dpage(db, h);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
923
PAGE *h = NULL;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
932
mpool_put(t->bt_mp, h, 0), pg++) {
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
933
if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
934
return h;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
937
if (h->prevpg == P_INVALID || h->nextpg == P_INVALID)
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
939
if ((h->flags & sflags) && NEXTINDEX(h) != 0)
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
943
h = NULL;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
944
return h;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
951
PAGE *h = NULL;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
956
h = candidatepg(t, argv[1]);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
958
h = mpool_get(t->bt_mp, pg, 0);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
960
if (h == NULL) {
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
964
printf("chain %d <- %d -> %d\n", h->prevpg, h->pgno, h->nextpg);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
965
if (__bt_relink(t, h) != 0) {
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
969
h->prevpg = P_INVALID;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
970
h->nextpg = P_INVALID;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
972
mpool_put(t->bt_mp, h, MPOOL_DIRTY);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/dbtest.c
577
PAGE *h = NULL;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/dbtest.c
581
mpool_put(t->bt_mp, h, 0), pg++) {
crypto/krb5/src/plugins/kdb/db2/libdb2/test/dbtest.c
582
if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/test/dbtest.c
586
if (h->prevpg == P_INVALID || h->nextpg == P_INVALID)
crypto/krb5/src/plugins/kdb/db2/libdb2/test/dbtest.c
588
if (NEXTINDEX(h) == 0)
crypto/krb5/src/plugins/kdb/db2/libdb2/test/dbtest.c
590
if ((h->flags & (P_BLEAF | P_RLEAF)))
crypto/krb5/src/plugins/kdb/db2/libdb2/test/dbtest.c
593
if (h == NULL || pg == t->bt_mp->npages) {
crypto/krb5/src/plugins/kdb/db2/libdb2/test/dbtest.c
597
if (__bt_relink(t, h) != 0) {
crypto/krb5/src/plugins/kdb/db2/libdb2/test/dbtest.c
601
h->prevpg = P_INVALID;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/dbtest.c
602
h->nextpg = P_INVALID;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/dbtest.c
604
mpool_put(t->bt_mp, h, MPOOL_DIRTY);
crypto/krb5/src/plugins/kdb/ldap/libkdb_ldap/ldap_misc.c
444
krb5_ldap_server_handle *h, *next;
crypto/krb5/src/plugins/kdb/ldap/libkdb_ldap/ldap_misc.c
452
for (h = list[i]->ldap_server_handles; h != NULL; h = next) {
crypto/krb5/src/plugins/kdb/ldap/libkdb_ldap/ldap_misc.c
453
next = h->next;
crypto/krb5/src/plugins/kdb/ldap/libkdb_ldap/ldap_misc.c
454
ldap_unbind_ext_s(h->ldap_handle, NULL, NULL);
crypto/krb5/src/plugins/kdb/ldap/libkdb_ldap/ldap_misc.c
455
free(h);
crypto/krb5/src/plugins/kdb/test/kdb_test.c
131
set_names(testhandle h, const char *s1, const char *s2, const char *s3)
crypto/krb5/src/plugins/kdb/test/kdb_test.c
133
h->names[0] = KDB_MODULE_SECTION;
crypto/krb5/src/plugins/kdb/test/kdb_test.c
134
h->names[1] = h->section;
crypto/krb5/src/plugins/kdb/test/kdb_test.c
135
h->names[2] = s1;
crypto/krb5/src/plugins/kdb/test/kdb_test.c
136
h->names[3] = s2;
crypto/krb5/src/plugins/kdb/test/kdb_test.c
137
h->names[4] = s3;
crypto/krb5/src/plugins/kdb/test/kdb_test.c
138
h->names[5] = NULL;
crypto/krb5/src/plugins/kdb/test/kdb_test.c
143
get_string(testhandle h, const char *s1, const char *s2, const char *s3)
crypto/krb5/src/plugins/kdb/test/kdb_test.c
148
set_names(h, s1, s2, s3);
crypto/krb5/src/plugins/kdb/test/kdb_test.c
149
ret = profile_get_values(h->profile, h->names, &values);
crypto/krb5/src/plugins/kdb/test/kdb_test.c
161
get_duration(testhandle h, const char *s1, const char *s2, const char *s3)
crypto/krb5/src/plugins/kdb/test/kdb_test.c
163
char *strval = get_string(h, s1, s2, s3);
crypto/krb5/src/plugins/kdb/test/kdb_test.c
176
get_time(testhandle h, const char *s1, const char *s2, const char *s3)
crypto/krb5/src/plugins/kdb/test/kdb_test.c
178
char *strval = get_string(h, s1, s2, s3);
crypto/krb5/src/plugins/kdb/test/kdb_test.c
329
testhandle h;
crypto/krb5/src/plugins/kdb/test/kdb_test.c
331
h = ealloc(sizeof(*h));
crypto/krb5/src/plugins/kdb/test/kdb_test.c
332
h->profile = context->profile;
crypto/krb5/src/plugins/kdb/test/kdb_test.c
333
h->section = estrdup(conf_section);
crypto/krb5/src/plugins/kdb/test/kdb_test.c
334
context->dal_handle->db_context = h;
crypto/krb5/src/plugins/kdb/test/kdb_test.c
341
testhandle h = context->dal_handle->db_context;
crypto/krb5/src/plugins/kdb/test/kdb_test.c
343
free(h->section);
crypto/krb5/src/plugins/kdb/test/kdb_test.c
344
free(h);
crypto/krb5/src/plugins/kdb/test/kdb_test.c
391
testhandle h = context->dal_handle->db_context;
crypto/krb5/src/plugins/kdb/test/kdb_test.c
405
canon = get_string(h, "alias", search_name, NULL);
crypto/krb5/src/plugins/kdb/test/kdb_test.c
444
set_names(h, "princs", ename, NULL);
crypto/krb5/src/plugins/kdb/test/kdb_test.c
445
ret = profile_get_relation_names(h->profile, h->names, &names);
crypto/krb5/src/plugins/kdb/test/kdb_test.c
458
flagstr = get_string(h, "princs", ename, "flags");
crypto/krb5/src/plugins/kdb/test/kdb_test.c
465
ent->max_life = get_duration(h, "princs", ename, "maxlife");
crypto/krb5/src/plugins/kdb/test/kdb_test.c
466
ent->max_renewable_life = get_duration(h, "princs", ename, "maxrenewlife");
crypto/krb5/src/plugins/kdb/test/kdb_test.c
467
ent->expiration = get_time(h, "princs", ename, "expiration");
crypto/krb5/src/plugins/kdb/test/kdb_test.c
468
ent->pw_expiration = get_time(h, "princs", ename, "pwexpiration");
crypto/krb5/src/plugins/kdb/test/kdb_test.c
473
set_names(h, "princs", ename, "keys");
crypto/krb5/src/plugins/kdb/test/kdb_test.c
474
ret = profile_get_values(h->profile, h->names, &key_strings);
crypto/krb5/src/plugins/kdb/test/kdb_test.c
480
set_names(h, "princs", ename, "strings");
crypto/krb5/src/plugins/kdb/test/kdb_test.c
481
ret = profile_get_values(h->profile, h->names, &stringattrs);
crypto/krb5/src/plugins/kdb/test/kdb_test.c
524
testhandle h = context->dal_handle->db_context;
crypto/krb5/src/plugins/kdb/test/kdb_test.c
546
canon = get_string(h, "alias", princ_name, NULL);
crypto/krb5/src/plugins/kdb/test/kdb_test.c
707
testhandle h = context->dal_handle->db_context;
crypto/krb5/src/plugins/kdb/test/kdb_test.c
712
set_names(h, table, sprinc, NULL);
crypto/krb5/src/plugins/kdb/test/kdb_test.c
713
ret = profile_get_values(h->profile, h->names, &values);
crypto/krb5/src/plugins/preauth/pkinit/pkinit_srv.c
1282
certauth_handle *list = NULL, h;
crypto/krb5/src/plugins/preauth/pkinit/pkinit_srv.c
1314
h = k5calloc(1, sizeof(*h), &ret);
crypto/krb5/src/plugins/preauth/pkinit/pkinit_srv.c
1315
if (h == NULL)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_srv.c
1318
ret = (*mod)(context, 1, 2, (krb5_plugin_vtable)&h->vt);
crypto/krb5/src/plugins/preauth/pkinit/pkinit_srv.c
1321
free(h);
crypto/krb5/src/plugins/preauth/pkinit/pkinit_srv.c
1324
h->moddata = NULL;
crypto/krb5/src/plugins/preauth/pkinit/pkinit_srv.c
1325
if (h->vt.init_ex != NULL)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_srv.c
1326
ret = h->vt.init_ex(context, realmnames, &h->moddata);
crypto/krb5/src/plugins/preauth/pkinit/pkinit_srv.c
1327
else if (h->vt.init != NULL)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_srv.c
1328
ret = h->vt.init(context, &h->moddata);
crypto/krb5/src/plugins/preauth/pkinit/pkinit_srv.c
1330
TRACE_CERTAUTH_INIT_FAIL(context, h->vt.name, ret);
crypto/krb5/src/plugins/preauth/pkinit/pkinit_srv.c
1331
free(h);
crypto/krb5/src/plugins/preauth/pkinit/pkinit_srv.c
1334
list[count++] = h;
crypto/krb5/src/plugins/preauth/pkinit/pkinit_srv.c
326
certauth_handle h;
crypto/krb5/src/plugins/preauth/pkinit/pkinit_srv.c
357
h = certauth_modules[i];
crypto/krb5/src/plugins/preauth/pkinit/pkinit_srv.c
358
TRACE_PKINIT_SERVER_CERT_AUTH(context, h->vt.name);
crypto/krb5/src/plugins/preauth/pkinit/pkinit_srv.c
359
ret = h->vt.authorize(context, h->moddata, cert, cert_len, client,
crypto/krb5/src/plugins/preauth/pkinit/pkinit_srv.c
377
h->vt.free_ind(context, h->moddata, ais);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
306
static void fe_frombytes_strict(fe *h, const uint8_t s[32]) {
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
309
fiat_25519_from_bytes(h->v, s);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
310
assert_fe(h->v);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
313
static void fe_frombytes(fe *h, const uint8_t s[32]) {
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
317
fe_frombytes_strict(h, s_copy);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
326
static void fe_0(fe *h) {
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
327
memset(h, 0, sizeof(fe));
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
330
static void fe_loose_0(fe_loose *h) {
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
331
memset(h, 0, sizeof(fe_loose));
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
335
static void fe_1(fe *h) {
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
336
memset(h, 0, sizeof(fe));
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
337
h->v[0] = 1;
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
340
static void fe_loose_1(fe_loose *h) {
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
341
memset(h, 0, sizeof(fe_loose));
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
342
h->v[0] = 1;
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
347
static void fe_add(fe_loose *h, const fe *f, const fe *g) {
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
350
fiat_25519_add(h->v, f->v, g->v);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
351
assert_fe_loose(h->v);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
356
static void fe_sub(fe_loose *h, const fe *f, const fe *g) {
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
359
fiat_25519_sub(h->v, f->v, g->v);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
360
assert_fe_loose(h->v);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
363
static void fe_carry(fe *h, const fe_loose* f) {
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
365
fiat_25519_carry(h->v, f->v);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
366
assert_fe(h->v);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
378
static void fe_mul_ltt(fe_loose *h, const fe *f, const fe *g) {
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
379
fe_mul_impl(h->v, f->v, g->v);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
382
static void fe_mul_llt(fe_loose *h, const fe_loose *f, const fe *g) {
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
383
fe_mul_impl(h->v, f->v, g->v);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
386
static void fe_mul_ttt(fe *h, const fe *f, const fe *g) {
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
387
fe_mul_impl(h->v, f->v, g->v);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
390
static void fe_mul_tlt(fe *h, const fe_loose *f, const fe *g) {
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
391
fe_mul_impl(h->v, f->v, g->v);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
394
static void fe_mul_ttl(fe *h, const fe *f, const fe_loose *g) {
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
395
fe_mul_impl(h->v, f->v, g->v);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
398
static void fe_mul_tll(fe *h, const fe_loose *f, const fe_loose *g) {
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
399
fe_mul_impl(h->v, f->v, g->v);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
402
static void fe_sq_tl(fe *h, const fe_loose *f) {
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
404
fiat_25519_carry_square(h->v, f->v);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
405
assert_fe(h->v);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
408
static void fe_sq_tt(fe *h, const fe *f) {
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
410
fiat_25519_carry_square(h->v, f->v);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
411
assert_fe(h->v);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
415
static void fe_neg(fe_loose *h, const fe *f) {
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
417
fiat_25519_opp(h->v, f->v);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
418
assert_fe_loose(h->v);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
436
static void fe_copy(fe *h, const fe *f) {
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
437
memmove(h, f, sizeof(fe));
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
440
static void fe_copy_lt(fe_loose *h, const fe *f) {
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
444
memmove(h, f, sizeof(fe));
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
447
static void fe_copy_ll(fe_loose *h, const fe_loose *f) {
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
448
memmove(h, f, sizeof(fe_loose));
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
536
static void fe_sq2_tt(fe *h, const fe *f) {
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
538
fe_sq_tt(h, f);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
542
fe_add(&tmp, h, h);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
543
fe_carry(h, &tmp);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
606
static void x25519_ge_tobytes(uint8_t s[32], const ge_p2 *h) {
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
611
fe_invert(&recip, &h->Z);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
612
fe_mul_ttt(&x, &h->X, &recip);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
613
fe_mul_ttt(&y, &h->Y, &recip);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
618
static int x25519_ge_frombytes_vartime(ge_p3 *h, const uint8_t s[32]) {
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
625
fe_frombytes(&h->Y, s);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
626
fe_1(&h->Z);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
627
fe_sq_tt(&v3, &h->Y);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
629
fe_sub(&v, &v3, &h->Z); // u = y^2-1
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
631
fe_add(&v, &vxx, &h->Z); // v = dy^2+1
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
635
fe_sq_tt(&h->X, &v3);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
636
fe_mul_ttl(&h->X, &h->X, &v);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
637
fe_mul_ttt(&h->X, &h->X, &u); // x = uv^7
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
639
fe_pow22523(&h->X, &h->X); // x = (uv^7)^((q-5)/8)
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
640
fe_mul_ttt(&h->X, &h->X, &v3);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
641
fe_mul_ttt(&h->X, &h->X, &u); // x = uv^3(uv^7)^((q-5)/8)
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
643
fe_sq_tt(&vxx, &h->X);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
651
fe_mul_ttt(&h->X, &h->X, &sqrtm1);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
654
if (fe_isnegative(&h->X) != (s[31] >> 7)) {
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
656
fe_neg(&t, &h->X);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
657
fe_carry(&h->X, &t);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
660
fe_mul_ttt(&h->T, &h->X, &h->Y);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
664
static void ge_p2_0(ge_p2 *h) {
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
665
fe_0(&h->X);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
666
fe_1(&h->Y);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
667
fe_1(&h->Z);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
670
static void ge_p3_0(ge_p3 *h) {
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
671
fe_0(&h->X);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
672
fe_1(&h->Y);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
673
fe_1(&h->Z);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
674
fe_0(&h->T);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
677
static void ge_cached_0(ge_cached *h) {
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
678
fe_loose_1(&h->YplusX);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
679
fe_loose_1(&h->YminusX);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
680
fe_loose_1(&h->Z);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
681
fe_loose_0(&h->T2d);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
684
static void ge_precomp_0(ge_precomp *h) {
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
685
fe_loose_1(&h->yplusx);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
686
fe_loose_1(&h->yminusx);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
687
fe_loose_0(&h->xy2d);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
825
ge_p3 *h, const uint8_t a[32], const uint8_t precomp_table[15 * 2 * 32]) {
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
849
ge_p3_0(h);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
869
x25519_ge_p3_to_cached(&cached, h);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
870
x25519_ge_add(&r, h, &cached);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
871
x25519_ge_p1p1_to_p3(h, &r);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
873
ge_madd(&r, h, &e);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
874
x25519_ge_p1p1_to_p3(h, &r);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
880
static void x25519_ge_scalarmult_base(ge_p3 *h, const uint8_t a[32]) {
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
881
x25519_ge_scalarmult_small_precomp(h, a, k25519SmallPrecomp);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
923
static void x25519_ge_scalarmult_base(ge_p3 *h, const uint8_t *a) {
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
948
ge_p3_0(h);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
951
ge_madd(&r, h, &t);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
952
x25519_ge_p1p1_to_p3(h, &r);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
955
ge_p3_dbl(&r, h);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
962
x25519_ge_p1p1_to_p3(h, &r);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
966
ge_madd(&r, h, &t);
crypto/krb5/src/plugins/preauth/spake/edwards25519.c
967
x25519_ge_p1p1_to_p3(h, &r);
crypto/krb5/src/util/support/fake-addrinfo.c
1029
static inline int translate_h_errno (int h)
crypto/krb5/src/util/support/fake-addrinfo.c
1031
switch (h) {
crypto/krb5/src/util/support/fake-addrinfo.c
126
/*@out@*/ /*@null@*/ char *h, socklen_t hsz,
crypto/krb5/src/util/support/fake-addrinfo.c
531
static inline int translate_h_errno (int h);
crypto/krb5/src/util/support/plugins.c
105
get_sym_dlfcn(struct plugin_file_handle *h, const char *csymname,
crypto/krb5/src/util/support/plugins.c
110
if (h->dlhandle == NULL)
crypto/krb5/src/util/support/plugins.c
112
*sym_out = dlsym(h->dlhandle, csymname);
crypto/krb5/src/util/support/plugins.c
126
close_plugin_dlfcn(struct plugin_file_handle *h)
crypto/krb5/src/util/support/plugins.c
128
if (h->dlhandle != NULL)
crypto/krb5/src/util/support/plugins.c
129
dlclose(h->dlhandle);
crypto/krb5/src/util/support/plugins.c
136
open_plugin_win32(struct plugin_file_handle *h, const char *filename,
crypto/krb5/src/util/support/plugins.c
139
h->module = LoadLibrary(filename);
crypto/krb5/src/util/support/plugins.c
140
if (h == NULL) {
crypto/krb5/src/util/support/plugins.c
150
get_sym_win32(struct plugin_file_handle *h, const char *csymname,
crypto/krb5/src/util/support/plugins.c
156
if (h->module == NULL)
crypto/krb5/src/util/support/plugins.c
158
*sym_out = GetProcAddress(h->module, csymname);
crypto/krb5/src/util/support/plugins.c
177
close_plugin_win32(struct plugin_file_handle *h)
crypto/krb5/src/util/support/plugins.c
179
if (h->module != NULL)
crypto/krb5/src/util/support/plugins.c
180
FreeLibrary(h->module);
crypto/krb5/src/util/support/plugins.c
187
open_plugin_dummy(struct plugin_file_handle *h, const char *filename,
crypto/krb5/src/util/support/plugins.c
196
get_sym_dummy(struct plugin_file_handle *h, const char *csymname,
crypto/krb5/src/util/support/plugins.c
204
close_plugin_dummy(struct plugin_file_handle *h)
crypto/krb5/src/util/support/plugins.c
216
struct plugin_file_handle *h;
crypto/krb5/src/util/support/plugins.c
220
h = calloc(1, sizeof(*h));
crypto/krb5/src/util/support/plugins.c
221
if (h == NULL)
crypto/krb5/src/util/support/plugins.c
224
ret = open_plugin(h, filename, ep);
crypto/krb5/src/util/support/plugins.c
226
free(h);
crypto/krb5/src/util/support/plugins.c
230
*handle_out = h;
crypto/krb5/src/util/support/plugins.c
235
krb5int_get_plugin_data(struct plugin_file_handle *h, const char *csymname,
crypto/krb5/src/util/support/plugins.c
238
return get_sym(h, csymname, sym_out, ep);
crypto/krb5/src/util/support/plugins.c
242
krb5int_get_plugin_func(struct plugin_file_handle *h, const char *csymname,
crypto/krb5/src/util/support/plugins.c
246
long ret = get_sym(h, csymname, &dptr, ep);
crypto/krb5/src/util/support/plugins.c
254
krb5int_close_plugin (struct plugin_file_handle *h)
crypto/krb5/src/util/support/plugins.c
256
close_plugin(h);
crypto/krb5/src/util/support/plugins.c
257
free(h);
crypto/krb5/src/util/support/plugins.c
384
struct plugin_file_handle **h = NULL;
crypto/krb5/src/util/support/plugins.c
390
err = krb5int_plugin_file_handle_array_init (&h);
crypto/krb5/src/util/support/plugins.c
410
err = krb5int_plugin_file_handle_array_add (&h, &count, handle);
crypto/krb5/src/util/support/plugins.c
434
err = krb5int_plugin_file_handle_array_add(&h, &count,
crypto/krb5/src/util/support/plugins.c
454
dirhandle->files = h;
crypto/krb5/src/util/support/plugins.c
455
h = NULL; /* dirhandle->files takes ownership */
crypto/krb5/src/util/support/plugins.c
459
if (h != NULL) { krb5int_plugin_file_handle_array_free (h); }
crypto/krb5/src/util/support/plugins.c
85
open_plugin_dlfcn(struct plugin_file_handle *h, const char *filename,
crypto/krb5/src/util/support/plugins.c
90
h->dlhandle = dlopen(filename, PLUGIN_DLOPEN_FLAGS);
crypto/krb5/src/util/support/plugins.c
91
if (h->dlhandle == NULL) {
crypto/krb5/src/util/verto/ev.c
450
# include <stdint.h>
crypto/krb5/src/windows/include/loadfuncs.h
23
HINSTANCE h
crypto/krb5/src/windows/installer/wix/custom/custom.cpp
33
$(OUTPATH)\custom.obj: custom.cpp custom.h
crypto/krb5/src/windows/kfwlogon/kfwcommon.c
319
HANDLE h; char *ptbuf[1];
crypto/krb5/src/windows/kfwlogon/kfwcommon.c
322
h = RegisterEventSource(NULL, KFW_LOGON_EVENT_NAME);
crypto/krb5/src/windows/kfwlogon/kfwcommon.c
323
if (h) {
crypto/krb5/src/windows/kfwlogon/kfwcommon.c
325
ReportEvent(h, EVENTLOG_INFORMATION_TYPE, 0, 0, NULL, 1, 0, (const char **)ptbuf, NULL);
crypto/krb5/src/windows/kfwlogon/kfwcommon.c
326
DeregisterEventSource(h);
crypto/krb5/src/windows/kfwlogon/kfwcommon.c
334
HANDLE h; char *ptbuf[1],buf[MAXBUF_+1];
crypto/krb5/src/windows/kfwlogon/kfwcommon.c
338
h = RegisterEventSource(NULL, KFW_LOGON_EVENT_NAME);
crypto/krb5/src/windows/kfwlogon/kfwcommon.c
339
if (h) {
crypto/krb5/src/windows/kfwlogon/kfwcommon.c
344
ReportEvent(h, EVENTLOG_INFORMATION_TYPE, 0, 0, NULL, 1, 0, (const char **)ptbuf, NULL);
crypto/krb5/src/windows/kfwlogon/kfwcommon.c
345
DeregisterEventSource(h);
crypto/krb5/src/windows/kfwlogon/kfwlogon.c
379
HANDLE h;
crypto/krb5/src/windows/kfwlogon/kfwlogon.c
384
h = RegisterEventSource(NULL, KFW_LOGON_EVENT_NAME);
crypto/krb5/src/windows/kfwlogon/kfwlogon.c
386
ReportEvent(h, EVENTLOG_WARNING_TYPE, 0, 1008, NULL, 1, 0, ptbuf, NULL);
crypto/krb5/src/windows/kfwlogon/kfwlogon.c
387
DeregisterEventSource(h);
crypto/krb5/src/windows/lib/loadfuncs.c
15
HINSTANCE h
crypto/krb5/src/windows/lib/loadfuncs.c
22
if (h) FreeLibrary(h);
crypto/krb5/src/windows/lib/loadfuncs.c
45
HINSTANCE h;
crypto/krb5/src/windows/lib/loadfuncs.c
58
h = LoadLibrary(dll_name);
crypto/krb5/src/windows/lib/loadfuncs.c
62
if (!h)
crypto/krb5/src/windows/lib/loadfuncs.c
68
void* p = (void*)GetProcAddress(h, fi[i].func_name);
crypto/krb5/src/windows/lib/loadfuncs.c
82
FreeLibrary(h);
crypto/krb5/src/windows/lib/loadfuncs.c
85
if (ph) *ph = h;
crypto/libecc/include/libecc/hash/hash_algs.h
552
ATTRIBUTE_WARN_UNUSED_RET int hash_mapping_callbacks_sanity_check(const hash_mapping *h);
crypto/libecc/include/libecc/hash/sha2.h
109
#define SHA2CORE(a, b, c, d, e, f, g, h, w, k, sha_word_type, sha_type) do {\
crypto/libecc/include/libecc/hash/sha2.h
111
t1 = (h) + SIGMA_MAJ1_##sha_type((e)) + CH((e), (f), (g)) + (k) + (w);\
crypto/libecc/include/libecc/hash/sha2.h
113
(h) = (g);\
crypto/libecc/include/libecc/hash/sha2.h
134
#define SHA2CORE_SHA256(a, b, c, d, e, f, g, h, w, k) \
crypto/libecc/include/libecc/hash/sha2.h
135
SHA2CORE(a, b, c, d, e, f, g, h, w, k, u32, SHA256)
crypto/libecc/include/libecc/hash/sha2.h
170
#define SHA2CORE_SHA512(a, b, c, d, e, f, g, h, w, k) \
crypto/libecc/include/libecc/hash/sha2.h
171
SHA2CORE(a, b, c, d, e, f, g, h, w, k, u64, SHA512)
crypto/libecc/include/libecc/hash/streebog.h
1243
static inline void gN(u64 h[STREEBOG_BLOCK_U64_SIZE],
crypto/libecc/include/libecc/hash/streebog.h
1251
streebog_transform(K, h, N);
crypto/libecc/include/libecc/hash/streebog.h
1260
h[j] ^= T[j] ^ K[j] ^ m[j];
crypto/libecc/include/libecc/hash/streebog.h
1273
gN(ctx->h, M, ctx->N);
crypto/libecc/include/libecc/hash/streebog.h
81
u64 h[STREEBOG_BLOCK_U64_SIZE];
crypto/libecc/include/libecc/sig/sig_algs_internal.h
159
const hash_mapping *h;
crypto/libecc/include/libecc/sig/sig_algs_internal.h
217
const hash_mapping *h;
crypto/libecc/include/libecc/words/words.h
30
#define _concat(file_prefix, x) __concat(file_prefix##x.h)
crypto/libecc/src/curves/prj_pt.c
641
fp XX, ZZ, w, s, ss, sss, R, RR, B, h;
crypto/libecc/src/curves/prj_pt.c
645
RR.magic = B.magic = h.magic = WORD(0);
crypto/libecc/src/curves/prj_pt.c
658
ret = fp_init(&h, out->crv->a.ctx); EG(ret, err);
crypto/libecc/src/curves/prj_pt.c
695
ret = fp_sqr_monty(&h, &w); EG(ret, err);
crypto/libecc/src/curves/prj_pt.c
696
ret = fp_sub_monty(&h, &h, &B); EG(ret, err);
crypto/libecc/src/curves/prj_pt.c
697
ret = fp_sub_monty(&h, &h, &B); EG(ret, err);
crypto/libecc/src/curves/prj_pt.c
700
ret = fp_mul_monty(&(out->X), &h, &s); EG(ret, err);
crypto/libecc/src/curves/prj_pt.c
703
ret = fp_sub_monty(&B, &B, &h); EG(ret, err);
crypto/libecc/src/curves/prj_pt.c
721
fp_uninit(&h);
crypto/libecc/src/examples/hash/gostr34_11_94.c
280
u64 h;
crypto/libecc/src/examples/hash/gostr34_11_94.c
282
GET_UINT64_LE(h, (const u8*)&H[GOSTR34_11_94_STATE_SIZE - i - 1], 0);
crypto/libecc/src/examples/hash/gostr34_11_94.c
285
GET_UINT64_BE(h, (const u8*)&H[GOSTR34_11_94_STATE_SIZE - i - 1], 0);
crypto/libecc/src/examples/hash/gostr34_11_94.c
287
H_[i] = (u64)(H_[i] ^ h);
crypto/libecc/src/examples/sig/rsa/rsa.c
1024
h = &em[dblen];
crypto/libecc/src/examples/sig/rsa/rsa.c
1026
ret = _mgf1(h, hlen, dbmask, dblen, mgf_hash_type); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
1066
ret = are_equal(h, h_, hlen, &cmp); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
299
nn m_i, h, R;
crypto/libecc/src/examples/sig/rsa/rsa.c
300
m_i.magic = h.magic = R.magic = WORD(0);
crypto/libecc/src/examples/sig/rsa/rsa.c
306
ret = nn_init(&h, 0); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
328
ret = _rsa_blind_exponent(d_i, r_i, &h, (bitcnt_t)RSA_EXPONENT_BLINDING_SIZE, 1); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
329
ret = nn_mod_pow(&m_i, c, &h, r_i); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
336
ret = nn_mod(&h, m, r_i); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
337
ret = nn_mod_sub(&h, &m_i, &h, r_i); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
338
ret = nn_mod_mul(&h, &h, t_i, r_i); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
340
ret = nn_mul(&h, &R, &h); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
341
ret = nn_add(m, m, &h); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
346
nn_uninit(&h);
crypto/libecc/src/examples/sig/rsa/rsa.c
361
nn m_1, m_2, h, msb_fixed;
crypto/libecc/src/examples/sig/rsa/rsa.c
363
m_1.magic = m_2.magic = h.magic = WORD(0);
crypto/libecc/src/examples/sig/rsa/rsa.c
367
ret = nn_init(&h, 0); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
387
ret = _rsa_blind_exponent(dP, p, &h, (bitcnt_t)RSA_EXPONENT_BLINDING_SIZE, 1); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
388
ret = nn_mod_pow(&m_1, c, &h, p); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
394
ret = _rsa_blind_exponent(dQ, q, &h, (bitcnt_t)RSA_EXPONENT_BLINDING_SIZE, 1); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
395
ret = nn_mod_pow(&m_2, c, &h, q); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
400
ret = nn_mod(&h, &m_2, p); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
401
ret = nn_mod_sub(&h, &m_1, &h, p); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
402
ret = nn_mod_mul(&h, &h, qInv, p); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
404
ret = nn_mul(m, &h, q); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
414
nn_uninit(&h);
crypto/libecc/src/examples/sig/rsa/rsa.c
841
u8 h[MAX_DIGEST_SIZE];
crypto/libecc/src/examples/sig/rsa/rsa.c
860
ret = local_memset(h, 0, sizeof(h)); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
908
ret = gen_hash_hfunc_scattered(input_, ilens_, h, gen_hash_type); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
915
ret = _mgf1(h, hlen, dbmask, dblen, mgf_hash_type); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
944
ret = local_memcpy(&em[dblen], h, hlen); EG(ret, err);
crypto/libecc/src/examples/sig/rsa/rsa.c
975
const u8 *h, *salt, *maskeddb = em;
crypto/libecc/src/hash/belt-hash.c
201
static void sigma1_xor(const u8 x[2 * BELT_BLOCK_LEN], const u8 h[2 * BELT_BLOCK_LEN], u8 s[BELT_BLOCK_LEN], u8 use_xor){
crypto/libecc/src/hash/belt-hash.c
206
tmp1[i] = (h[i] ^ h[i + BELT_BLOCK_LEN]);
crypto/libecc/src/hash/belt-hash.c
207
tmp1[i + (BELT_BLOCK_LEN / 2)] = (h[i + (BELT_BLOCK_LEN / 2)] ^ h[i + BELT_BLOCK_LEN + (BELT_BLOCK_LEN / 2)]);
crypto/libecc/src/hash/belt-hash.c
231
static void sigma2(const u8 x[2 * BELT_BLOCK_LEN], u8 const h[2 * BELT_BLOCK_LEN], u8 result[2 * BELT_BLOCK_LEN])
crypto/libecc/src/hash/belt-hash.c
238
IGNORE_RET_VAL(local_memcpy(&tmp[0], &h[0], BELT_BLOCK_LEN));
crypto/libecc/src/hash/belt-hash.c
240
sigma1_xor(x, h, teta, 0);
crypto/libecc/src/hash/belt-hash.c
241
IGNORE_RET_VAL(local_memcpy(&teta[BELT_BLOCK_LEN], &h[BELT_BLOCK_LEN], BELT_BLOCK_LEN));
crypto/libecc/src/hash/belt-hash.c
260
static void _belt_hash_process(const u8 x[2 * BELT_BLOCK_LEN], u8 h[2 * BELT_BLOCK_LEN], u8 s[BELT_BLOCK_LEN])
crypto/libecc/src/hash/belt-hash.c
262
sigma1_xor(x, h, s, 1);
crypto/libecc/src/hash/belt-hash.c
264
sigma2(x, h, h);
crypto/libecc/src/hash/belt-hash.c
276
ATTRIBUTE_WARN_UNUSED_RET static int belt_hash_finalize(const u8 s[2 * BELT_BLOCK_LEN], const u8 h[2 * BELT_BLOCK_LEN], u8 res[2 * BELT_BLOCK_LEN])
crypto/libecc/src/hash/belt-hash.c
278
sigma2(s, h, res);
crypto/libecc/src/hash/hash_algs.c
108
ATTRIBUTE_WARN_UNUSED_RET int hash_mapping_callbacks_sanity_check(const hash_mapping *h)
crypto/libecc/src/hash/hash_algs.c
114
MUST_HAVE((h != NULL), ret, err);
crypto/libecc/src/hash/hash_algs.c
121
if (m->type == h->type) {
crypto/libecc/src/hash/hash_algs.c
122
if ((!are_str_equal_nlen(m->name, h->name, MAX_HASH_ALG_NAME_LEN, &check)) && (!check)){
crypto/libecc/src/hash/hash_algs.c
124
} else if (m->digest_size != h->digest_size) {
crypto/libecc/src/hash/hash_algs.c
126
} else if(m->block_size != h->block_size) {
crypto/libecc/src/hash/hash_algs.c
128
} else if(m->hfunc_init != h->hfunc_init) {
crypto/libecc/src/hash/hash_algs.c
130
} else if(m->hfunc_update != h->hfunc_update) {
crypto/libecc/src/hash/hash_algs.c
132
} else if(m->hfunc_finalize != h->hfunc_finalize) {
crypto/libecc/src/hash/hash_algs.c
134
} else if(m->hfunc_scattered != h->hfunc_scattered) {
crypto/libecc/src/hash/hmac.c
106
const hash_mapping *h;
crypto/libecc/src/hash/hmac.c
112
h = ctx->hash;
crypto/libecc/src/hash/hmac.c
114
MUST_HAVE(((*outlen) >= h->digest_size), ret, err);
crypto/libecc/src/hash/hmac.c
117
ret = hash_mapping_callbacks_sanity_check(h); EG(ret, err);
crypto/libecc/src/hash/hmac.c
118
ret = h->hfunc_finalize(&(ctx->in_ctx), in_hash); EG(ret, err);
crypto/libecc/src/hash/hmac.c
119
ret = h->hfunc_update(&(ctx->out_ctx), in_hash, h->digest_size); EG(ret, err);
crypto/libecc/src/hash/hmac.c
120
ret = h->hfunc_finalize(&(ctx->out_ctx), output); EG(ret, err);
crypto/libecc/src/hash/hmac.c
121
(*outlen) = h->digest_size;
crypto/libecc/src/hash/hmac.c
24
const hash_mapping *h;
crypto/libecc/src/hash/hmac.c
38
h = ctx->hash;
crypto/libecc/src/hash/hmac.c
51
ret = hash_mapping_callbacks_sanity_check(h); EG(ret, err);
crypto/libecc/src/hash/hmac.c
52
ret = h->hfunc_init(&tmp_ctx); EG(ret, err);
crypto/libecc/src/hash/hmac.c
53
ret = h->hfunc_update(&tmp_ctx, hmackey, hmackey_len); EG(ret, err);
crypto/libecc/src/hash/hmac.c
54
ret = h->hfunc_finalize(&tmp_ctx, local_hmac_key); EG(ret, err);
crypto/libecc/src/hash/hmac.c
55
local_hmac_key_len = h->digest_size;
crypto/libecc/src/hash/hmac.c
60
ret = hash_mapping_callbacks_sanity_check(h); EG(ret, err);
crypto/libecc/src/hash/hmac.c
61
ret = h->hfunc_init(&(ctx->in_ctx)); EG(ret, err);
crypto/libecc/src/hash/hmac.c
63
ret = hash_mapping_callbacks_sanity_check(h); EG(ret, err);
crypto/libecc/src/hash/hmac.c
64
ret = h->hfunc_init(&(ctx->out_ctx)); EG(ret, err);
crypto/libecc/src/hash/hmac.c
70
ret = h->hfunc_update(&(ctx->in_ctx), ipad, h->block_size); EG(ret, err);
crypto/libecc/src/hash/hmac.c
75
ret = h->hfunc_update(&(ctx->out_ctx), opad, h->block_size); EG(ret, err);
crypto/libecc/src/hash/hmac.c
87
const hash_mapping *h;
crypto/libecc/src/hash/hmac.c
93
h = ctx->hash;
crypto/libecc/src/hash/hmac.c
95
ret = hash_mapping_callbacks_sanity_check(h); EG(ret, err);
crypto/libecc/src/hash/hmac.c
96
ret = h->hfunc_update(&(ctx->in_ctx), input, ilen); EG(ret, err);
crypto/libecc/src/hash/sha224.c
25
u32 a, b, c, d, e, f, g, h;
crypto/libecc/src/hash/sha224.c
41
h = ctx->sha224_state[7];
crypto/libecc/src/hash/sha224.c
45
SHA2CORE_SHA256(a, b, c, d, e, f, g, h, W[i], K_SHA256[i]);
crypto/libecc/src/hash/sha224.c
49
SHA2CORE_SHA256(a, b, c, d, e, f, g, h, UPDATEW_SHA256(W, i),
crypto/libecc/src/hash/sha224.c
61
ctx->sha224_state[7] += h;
crypto/libecc/src/hash/sha256.c
25
u32 a, b, c, d, e, f, g, h;
crypto/libecc/src/hash/sha256.c
41
h = ctx->sha256_state[7];
crypto/libecc/src/hash/sha256.c
45
SHA2CORE_SHA256(a, b, c, d, e, f, g, h, W[i], K_SHA256[i]);
crypto/libecc/src/hash/sha256.c
49
SHA2CORE_SHA256(a, b, c, d, e, f, g, h, UPDATEW_SHA256(W, i),
crypto/libecc/src/hash/sha256.c
61
ctx->sha256_state[7] += h;
crypto/libecc/src/hash/sha384.c
25
u64 a, b, c, d, e, f, g, h;
crypto/libecc/src/hash/sha384.c
41
h = ctx->sha384_state[7];
crypto/libecc/src/hash/sha384.c
45
SHA2CORE_SHA512(a, b, c, d, e, f, g, h, W[i], K_SHA512[i]);
crypto/libecc/src/hash/sha384.c
49
SHA2CORE_SHA512(a, b, c, d, e, f, g, h, UPDATEW_SHA512(W, i),
crypto/libecc/src/hash/sha384.c
61
ctx->sha384_state[7] += h;
crypto/libecc/src/hash/sha512_core.c
24
u64 a, b, c, d, e, f, g, h;
crypto/libecc/src/hash/sha512_core.c
39
h = ctx->sha512_state[7];
crypto/libecc/src/hash/sha512_core.c
43
SHA2CORE_SHA512(a, b, c, d, e, f, g, h, W[i], K_SHA512[i]);
crypto/libecc/src/hash/sha512_core.c
47
SHA2CORE_SHA512(a, b, c, d, e, f, g, h, UPDATEW_SHA512(W, i),
crypto/libecc/src/hash/sha512_core.c
59
ctx->sha512_state[7] += h;
crypto/libecc/src/hash/streebog.c
138
gN(ctx->h, ctx->N, Z);
crypto/libecc/src/hash/streebog.c
139
gN(ctx->h, ctx->Sigma, Z);
crypto/libecc/src/hash/streebog.c
142
ctx->h[j] = S64(ctx->h[j]);
crypto/libecc/src/hash/streebog.c
149
STREEBOG_PUT_UINT64(ctx->h[0], output, idx, ctx->streebog_endian); idx = (u8)(idx + 8);
crypto/libecc/src/hash/streebog.c
150
STREEBOG_PUT_UINT64(ctx->h[1], output, idx, ctx->streebog_endian); idx = (u8)(idx + 8);
crypto/libecc/src/hash/streebog.c
151
STREEBOG_PUT_UINT64(ctx->h[2], output, idx, ctx->streebog_endian); idx = (u8)(idx + 8);
crypto/libecc/src/hash/streebog.c
152
STREEBOG_PUT_UINT64(ctx->h[3], output, idx, ctx->streebog_endian); idx = (u8)(idx + 8);
crypto/libecc/src/hash/streebog.c
155
STREEBOG_PUT_UINT64(ctx->h[4], output, idx, ctx->streebog_endian); idx = (u8)(idx + 8);
crypto/libecc/src/hash/streebog.c
156
STREEBOG_PUT_UINT64(ctx->h[5], output, idx, ctx->streebog_endian); idx = (u8)(idx + 8);
crypto/libecc/src/hash/streebog.c
157
STREEBOG_PUT_UINT64(ctx->h[6], output, idx, ctx->streebog_endian); idx = (u8)(idx + 8);
crypto/libecc/src/hash/streebog.c
158
STREEBOG_PUT_UINT64(ctx->h[7], output, idx, ctx->streebog_endian);
crypto/libecc/src/hash/streebog.c
43
ret = local_memset(ctx->h, 1, sizeof(ctx->h)); EG(ret, err);
crypto/libecc/src/sig/bign_common.c
202
const u8 *h, u8 hlen)
crypto/libecc/src/sig/bign_common.c
219
MUST_HAVE((adata != NULL) && (h != NULL), ret, err);
crypto/libecc/src/sig/bign_common.c
257
ret = local_memcpy(r, h, hlen); EG(ret, err);
crypto/libecc/src/sig/bign_common.c
420
MUST_HAVE((ctx->h != NULL) && (ctx->h->digest_size <= MAX_DIGEST_SIZE) &&
crypto/libecc/src/sig/bign_common.c
421
(ctx->h->block_size <= MAX_BLOCK_SIZE), ret, err);
crypto/libecc/src/sig/bign_common.c
433
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/bign_common.c
434
ret = ctx->h->hfunc_init(&(ctx->sign_data.bign.h_ctx)); EG(ret, err);
crypto/libecc/src/sig/bign_common.c
461
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/bign_common.c
462
ret = ctx->h->hfunc_update(&(ctx->sign_data.bign.h_ctx), chunk, chunklen);
crypto/libecc/src/sig/bign_common.c
481
nn k, h, tmp, s1;
crypto/libecc/src/sig/bign_common.c
491
k.magic = h.magic = WORD(0);
crypto/libecc/src/sig/bign_common.c
518
hsize = ctx->h->digest_size;
crypto/libecc/src/sig/bign_common.c
549
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/bign_common.c
550
ret = ctx->h->hfunc_finalize(&(ctx->sign_data.bign.h_ctx), hash); EG(ret, err);
crypto/libecc/src/sig/bign_common.c
651
ret = nn_init_from_buf(&h, hash, hsize); EG(ret, err);
crypto/libecc/src/sig/bign_common.c
652
ret = nn_mod(&h, &h, q); EG(ret, err);
crypto/libecc/src/sig/bign_common.c
669
ret = nn_mod_mul(&h, &h, &b, q); EG(ret, err);
crypto/libecc/src/sig/bign_common.c
677
ret = nn_mod_sub(&s1, &s1, &h, q); EG(ret, err);
crypto/libecc/src/sig/bign_common.c
694
nn_uninit(&h);
crypto/libecc/src/sig/bign_common.c
760
MUST_HAVE((ctx->h != NULL) && (ctx->h->digest_size <= MAX_DIGEST_SIZE) &&
crypto/libecc/src/sig/bign_common.c
761
(ctx->h->block_size <= MAX_BLOCK_SIZE), ret, err);
crypto/libecc/src/sig/bign_common.c
802
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/bign_common.c
803
ret = ctx->h->hfunc_init(&(ctx->verify_data.bign.h_ctx)); EG(ret, err);
crypto/libecc/src/sig/bign_common.c
835
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/bign_common.c
836
ret = ctx->h->hfunc_update(&(ctx->verify_data.bign.h_ctx), chunk, chunklen);
crypto/libecc/src/sig/bign_common.c
854
nn h, tmp;
crypto/libecc/src/sig/bign_common.c
863
h.magic = tmp.magic = WORD(0);
crypto/libecc/src/sig/bign_common.c
895
hsize = ctx->h->digest_size;
crypto/libecc/src/sig/bign_common.c
908
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/bign_common.c
909
ret = ctx->h->hfunc_finalize(&(ctx->verify_data.bign.h_ctx), hash); EG(ret, err);
crypto/libecc/src/sig/bign_common.c
914
ret = nn_init_from_buf(&h, hash, hsize); EG(ret, err);
crypto/libecc/src/sig/bign_common.c
915
ret = nn_mod(&h, &h, q); EG(ret, err);
crypto/libecc/src/sig/bign_common.c
922
ret = nn_mod_add(&h, &h, s1, q); EG(ret, err);
crypto/libecc/src/sig/bign_common.c
931
ret = prj_pt_mul(&uG, &h, G); EG(ret, err);
crypto/libecc/src/sig/bign_common.c
966
nn_uninit(&h);
crypto/libecc/src/sig/bip0340.c
400
MUST_HAVE((ctx->h != NULL) && (ctx->h->digest_size <= MAX_DIGEST_SIZE) &&
crypto/libecc/src/sig/bip0340.c
401
(ctx->h->block_size <= MAX_BLOCK_SIZE), ret, err);
crypto/libecc/src/sig/bip0340.c
405
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/bip0340.c
438
&sig[0], p_len, ctx->h,
crypto/libecc/src/sig/bip0340.c
441
ret = ctx->h->hfunc_update(&(ctx->verify_data.bip0340.h_ctx), &Pubx[0], p_len); EG(ret, err);
crypto/libecc/src/sig/bip0340.c
485
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/bip0340.c
486
ret = ctx->h->hfunc_update(&(ctx->verify_data.bip0340.h_ctx), chunk,
crypto/libecc/src/sig/bip0340.c
512
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/bip0340.c
520
hsize = ctx->h->digest_size;
crypto/libecc/src/sig/bip0340.c
532
ret = ctx->h->hfunc_finalize(&(ctx->verify_data.bip0340.h_ctx),
crypto/libecc/src/sig/ecdsa_common.c
275
MUST_HAVE((ctx->h != NULL) && (ctx->h->digest_size <= MAX_DIGEST_SIZE) &&
crypto/libecc/src/sig/ecdsa_common.c
276
(ctx->h->block_size <= MAX_BLOCK_SIZE), ret, err);
crypto/libecc/src/sig/ecdsa_common.c
283
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/ecdsa_common.c
284
ret = ctx->h->hfunc_init(&(ctx->sign_data.ecdsa.h_ctx)); EG(ret, err);
crypto/libecc/src/sig/ecdsa_common.c
311
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/ecdsa_common.c
312
ret = ctx->h->hfunc_update(&(ctx->sign_data.ecdsa.h_ctx), chunk, chunklen);
crypto/libecc/src/sig/ecdsa_common.c
362
hsize = ctx->h->digest_size;
crypto/libecc/src/sig/ecdsa_common.c
385
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/ecdsa_common.c
386
ret = ctx->h->hfunc_finalize(&(ctx->sign_data.ecdsa.h_ctx), hash); EG(ret, err);
crypto/libecc/src/sig/ecdsa_common.c
451
hash, hsize, ctx->h->type);
crypto/libecc/src/sig/ecdsa_common.c
633
MUST_HAVE((ctx->h != NULL) && (ctx->h->digest_size <= MAX_DIGEST_SIZE) &&
crypto/libecc/src/sig/ecdsa_common.c
634
(ctx->h->block_size <= MAX_BLOCK_SIZE), ret, err);
crypto/libecc/src/sig/ecdsa_common.c
662
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/ecdsa_common.c
663
ret = ctx->h->hfunc_init(&(ctx->verify_data.ecdsa.h_ctx)); EG(ret, err);
crypto/libecc/src/sig/ecdsa_common.c
695
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/ecdsa_common.c
696
ret = ctx->h->hfunc_update(&(ctx->verify_data.ecdsa.h_ctx), chunk, chunklen);
crypto/libecc/src/sig/ecdsa_common.c
741
hsize = ctx->h->digest_size;
crypto/libecc/src/sig/ecdsa_common.c
747
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/ecdsa_common.c
748
ret = ctx->h->hfunc_finalize(&(ctx->verify_data.ecdsa.h_ctx), hash); EG(ret, err);
crypto/libecc/src/sig/ecfsdsa.c
141
MUST_HAVE((ctx->h != NULL) && (ctx->h->digest_size <= MAX_DIGEST_SIZE) &&
crypto/libecc/src/sig/ecfsdsa.c
142
(ctx->h->block_size <= MAX_BLOCK_SIZE), ret, err);
crypto/libecc/src/sig/ecfsdsa.c
208
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/ecfsdsa.c
209
ret = ctx->h->hfunc_init(&(ctx->sign_data.ecfsdsa.h_ctx)); EG(ret, err);
crypto/libecc/src/sig/ecfsdsa.c
211
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/ecfsdsa.c
212
ret = ctx->h->hfunc_update(&(ctx->sign_data.ecfsdsa.h_ctx), r, r_len); EG(ret, err);
crypto/libecc/src/sig/ecfsdsa.c
247
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/ecfsdsa.c
248
ret = ctx->h->hfunc_update(&(ctx->sign_data.ecfsdsa.h_ctx), chunk, chunklen); EG(ret, err);
crypto/libecc/src/sig/ecfsdsa.c
291
hsize = ctx->h->digest_size;
crypto/libecc/src/sig/ecfsdsa.c
309
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/ecfsdsa.c
312
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/ecfsdsa.c
313
ret = ctx->h->hfunc_finalize(&(ctx->sign_data.ecfsdsa.h_ctx), e_buf); EG(ret, err);
crypto/libecc/src/sig/ecfsdsa.c
434
MUST_HAVE((ctx->h != NULL) && (ctx->h->digest_size <= MAX_DIGEST_SIZE) &&
crypto/libecc/src/sig/ecfsdsa.c
435
(ctx->h->block_size <= MAX_BLOCK_SIZE), ret, err);
crypto/libecc/src/sig/ecfsdsa.c
477
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/ecfsdsa.c
478
ret = ctx->h->hfunc_init(&(ctx->verify_data.ecfsdsa.h_ctx)); EG(ret, err);
crypto/libecc/src/sig/ecfsdsa.c
481
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/ecfsdsa.c
482
ret = ctx->h->hfunc_update(&(ctx->verify_data.ecfsdsa.h_ctx), r, r_len); EG(ret, err);
crypto/libecc/src/sig/ecfsdsa.c
528
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/ecfsdsa.c
529
ret = ctx->h->hfunc_update(&(ctx->verify_data.ecfsdsa.h_ctx), chunk,
crypto/libecc/src/sig/ecfsdsa.c
572
hsize = ctx->h->digest_size;
crypto/libecc/src/sig/ecfsdsa.c
581
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/ecfsdsa.c
582
ret = ctx->h->hfunc_finalize(&(ctx->verify_data.ecfsdsa.h_ctx), e_buf); EG(ret, err);
crypto/libecc/src/sig/ecgdsa.c
141
MUST_HAVE((ctx->h != NULL) && (ctx->h->digest_size <= MAX_DIGEST_SIZE) &&
crypto/libecc/src/sig/ecgdsa.c
142
(ctx->h->block_size <= MAX_BLOCK_SIZE), ret, err);
crypto/libecc/src/sig/ecgdsa.c
149
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/ecgdsa.c
150
ret = ctx->h->hfunc_init(&(ctx->sign_data.ecgdsa.h_ctx)); EG(ret, err);
crypto/libecc/src/sig/ecgdsa.c
174
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/ecgdsa.c
175
ret = ctx->h->hfunc_update(&(ctx->sign_data.ecgdsa.h_ctx), chunk, chunklen);
crypto/libecc/src/sig/ecgdsa.c
224
hsize = ctx->h->digest_size;
crypto/libecc/src/sig/ecgdsa.c
244
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/ecgdsa.c
245
ret = ctx->h->hfunc_finalize(&(ctx->sign_data.ecgdsa.h_ctx), e_buf); EG(ret, err);
crypto/libecc/src/sig/ecgdsa.c
427
MUST_HAVE((ctx->h != NULL) && (ctx->h->digest_size <= MAX_DIGEST_SIZE) &&
crypto/libecc/src/sig/ecgdsa.c
428
(ctx->h->block_size <= MAX_BLOCK_SIZE), ret, err);
crypto/libecc/src/sig/ecgdsa.c
460
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/ecgdsa.c
461
ret = ctx->h->hfunc_init(&(ctx->verify_data.ecgdsa.h_ctx)); EG(ret, err);
crypto/libecc/src/sig/ecgdsa.c
492
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/ecgdsa.c
493
ret = ctx->h->hfunc_update(&(ctx->verify_data.ecgdsa.h_ctx), chunk,
crypto/libecc/src/sig/ecgdsa.c
538
hsize = ctx->h->digest_size;
crypto/libecc/src/sig/ecgdsa.c
542
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/ecgdsa.c
543
ret = ctx->h->hfunc_finalize(&(ctx->verify_data.ecgdsa.h_ctx), e_buf); EG(ret, err);
crypto/libecc/src/sig/eckcdsa.c
217
MUST_HAVE((ctx->h != NULL) && (ctx->h->digest_size <= MAX_DIGEST_SIZE) &&
crypto/libecc/src/sig/eckcdsa.c
218
(ctx->h->block_size <= MAX_BLOCK_SIZE), ret, err);
crypto/libecc/src/sig/eckcdsa.c
223
z_len = ctx->h->block_size;
crypto/libecc/src/sig/eckcdsa.c
249
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/eckcdsa.c
250
ret = ctx->h->hfunc_init(&(ctx->sign_data.eckcdsa.h_ctx)); EG(ret, err);
crypto/libecc/src/sig/eckcdsa.c
251
ret = ctx->h->hfunc_update(&(ctx->sign_data.eckcdsa.h_ctx), tmp_buf, z_len); EG(ret, err);
crypto/libecc/src/sig/eckcdsa.c
284
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/eckcdsa.c
285
ret = ctx->h->hfunc_update(&(ctx->sign_data.eckcdsa.h_ctx), chunk, chunklen);
crypto/libecc/src/sig/eckcdsa.c
335
hsize = ctx->h->digest_size;
crypto/libecc/src/sig/eckcdsa.c
358
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/eckcdsa.c
359
ret = ctx->h->hfunc_finalize(&(ctx->sign_data.eckcdsa.h_ctx), hzm); EG(ret, err);
crypto/libecc/src/sig/eckcdsa.c
409
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/eckcdsa.c
410
ret = ctx->h->hfunc_init(&r_ctx); EG(ret, err);
crypto/libecc/src/sig/eckcdsa.c
411
ret = ctx->h->hfunc_update(&r_ctx, tmp_buf, p_len); EG(ret, err);
crypto/libecc/src/sig/eckcdsa.c
412
ret = ctx->h->hfunc_finalize(&r_ctx, r); EG(ret, err);
crypto/libecc/src/sig/eckcdsa.c
566
MUST_HAVE((ctx->h != NULL) && (ctx->h->digest_size <= MAX_DIGEST_SIZE) &&
crypto/libecc/src/sig/eckcdsa.c
567
(ctx->h->block_size <= MAX_BLOCK_SIZE), ret, err);
crypto/libecc/src/sig/eckcdsa.c
575
hsize = ctx->h->digest_size;
crypto/libecc/src/sig/eckcdsa.c
578
z_len = ctx->h->block_size;
crypto/libecc/src/sig/eckcdsa.c
622
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/eckcdsa.c
623
ret = ctx->h->hfunc_init(&(ctx->verify_data.eckcdsa.h_ctx)); EG(ret, err);
crypto/libecc/src/sig/eckcdsa.c
624
ret = ctx->h->hfunc_update(&(ctx->verify_data.eckcdsa.h_ctx), tmp_buf,
crypto/libecc/src/sig/eckcdsa.c
681
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/eckcdsa.c
682
ret = ctx->h->hfunc_update(&(ctx->verify_data.eckcdsa.h_ctx),
crypto/libecc/src/sig/eckcdsa.c
738
hsize = ctx->h->digest_size;
crypto/libecc/src/sig/eckcdsa.c
745
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/eckcdsa.c
746
ret = ctx->h->hfunc_finalize(&(ctx->verify_data.eckcdsa.h_ctx), hzm); EG(ret, err);
crypto/libecc/src/sig/eckcdsa.c
781
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/eckcdsa.c
782
ret = ctx->h->hfunc_init(&r_prime_ctx); EG(ret, err);
crypto/libecc/src/sig/eckcdsa.c
783
ret = ctx->h->hfunc_update(&r_prime_ctx, tmp_buf, p_len); EG(ret, err);
crypto/libecc/src/sig/eckcdsa.c
784
ret = ctx->h->hfunc_finalize(&r_prime_ctx, r_prime); EG(ret, err);
crypto/libecc/src/sig/ecrdsa.c
158
MUST_HAVE((ctx->h != NULL) && (ctx->h->digest_size <= MAX_DIGEST_SIZE) &&
crypto/libecc/src/sig/ecrdsa.c
159
(ctx->h->block_size <= MAX_BLOCK_SIZE), ret, err);
crypto/libecc/src/sig/ecrdsa.c
166
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/ecrdsa.c
167
ret = ctx->h->hfunc_init(&(ctx->sign_data.ecrdsa.h_ctx)); EG(ret, err);
crypto/libecc/src/sig/ecrdsa.c
189
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/ecrdsa.c
190
ret = ctx->h->hfunc_update(&(ctx->sign_data.ecrdsa.h_ctx), chunk, chunklen);
crypto/libecc/src/sig/ecrdsa.c
237
hsize = ctx->h->digest_size;
crypto/libecc/src/sig/ecrdsa.c
300
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/ecrdsa.c
301
ret = ctx->h->hfunc_finalize(&(ctx->sign_data.ecrdsa.h_ctx), h_buf); EG(ret, err);
crypto/libecc/src/sig/ecrdsa.c
432
MUST_HAVE((ctx->h != NULL) && (ctx->h->digest_size <= MAX_DIGEST_SIZE) &&
crypto/libecc/src/sig/ecrdsa.c
433
(ctx->h->block_size <= MAX_BLOCK_SIZE), ret, err);
crypto/libecc/src/sig/ecrdsa.c
456
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/ecrdsa.c
457
ret = ctx->h->hfunc_init(&(ctx->verify_data.ecrdsa.h_ctx)); EG(ret, err);
crypto/libecc/src/sig/ecrdsa.c
490
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/ecrdsa.c
491
ret = ctx->h->hfunc_update(&(ctx->verify_data.ecrdsa.h_ctx), chunk,
crypto/libecc/src/sig/ecrdsa.c
502
nn h, r_prime, e, v, u;
crypto/libecc/src/sig/ecrdsa.c
510
h.magic = r_prime.magic = e.magic = v.magic = u.magic = WORD(0);
crypto/libecc/src/sig/ecrdsa.c
534
hsize = ctx->h->digest_size;
crypto/libecc/src/sig/ecrdsa.c
539
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/ecrdsa.c
540
ret = ctx->h->hfunc_finalize(&(ctx->verify_data.ecrdsa.h_ctx), h_buf); EG(ret, err);
crypto/libecc/src/sig/ecrdsa.c
550
ret = nn_init_from_buf(&h, h_buf, hsize); EG(ret, err);
crypto/libecc/src/sig/ecrdsa.c
552
ret = nn_mod(&h, &h, q); EG(ret, err); /* h = OS2I(h) mod q */
crypto/libecc/src/sig/ecrdsa.c
553
ret = nn_iszero(&h, &iszero); EG(ret, err);
crypto/libecc/src/sig/ecrdsa.c
555
ret = nn_inc(&h, &h); EG(ret, err);
crypto/libecc/src/sig/ecrdsa.c
557
ret = nn_modinv(&e, &h, q); EG(ret, err); /* e = h^-1 mod q */
crypto/libecc/src/sig/ecrdsa.c
588
nn_uninit(&h);
crypto/libecc/src/sig/ecsdsa_common.c
164
MUST_HAVE((ctx->h != NULL) && (ctx->h->digest_size <= MAX_DIGEST_SIZE) &&
crypto/libecc/src/sig/ecsdsa_common.c
165
(ctx->h->block_size <= MAX_BLOCK_SIZE), ret, err);
crypto/libecc/src/sig/ecsdsa_common.c
210
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/ecsdsa_common.c
211
ret = ctx->h->hfunc_init(&(ctx->sign_data.ecsdsa.h_ctx)); EG(ret, err);
crypto/libecc/src/sig/ecsdsa_common.c
213
ret = ctx->h->hfunc_update(&(ctx->sign_data.ecsdsa.h_ctx), Wx, p_len); EG(ret, err);
crypto/libecc/src/sig/ecsdsa_common.c
216
ret = ctx->h->hfunc_update(&(ctx->sign_data.ecsdsa.h_ctx), Wy,
crypto/libecc/src/sig/ecsdsa_common.c
259
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/ecsdsa_common.c
260
ret = ctx->h->hfunc_update(&(ctx->sign_data.ecsdsa.h_ctx), chunk, chunklen); EG(ret, err);
crypto/libecc/src/sig/ecsdsa_common.c
303
hsize = ctx->h->digest_size;
crypto/libecc/src/sig/ecsdsa_common.c
317
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/ecsdsa_common.c
318
ret = ctx->h->hfunc_finalize(&(ctx->sign_data.ecsdsa.h_ctx), r); EG(ret, err);
crypto/libecc/src/sig/ecsdsa_common.c
457
MUST_HAVE((ctx->h != NULL) && (ctx->h->digest_size <= MAX_DIGEST_SIZE) &&
crypto/libecc/src/sig/ecsdsa_common.c
458
(ctx->h->block_size <= MAX_BLOCK_SIZE), ret, err);
crypto/libecc/src/sig/ecsdsa_common.c
468
hsize = ctx->h->digest_size;
crypto/libecc/src/sig/ecsdsa_common.c
507
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/ecsdsa_common.c
508
ret = ctx->h->hfunc_init(&(ctx->verify_data.ecsdsa.h_ctx)); EG(ret, err);
crypto/libecc/src/sig/ecsdsa_common.c
511
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/ecsdsa_common.c
512
ret = ctx->h->hfunc_update(&(ctx->verify_data.ecsdsa.h_ctx), Wprimex, p_len); EG(ret, err);
crypto/libecc/src/sig/ecsdsa_common.c
516
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/ecsdsa_common.c
517
ret = ctx->h->hfunc_update(&(ctx->verify_data.ecsdsa.h_ctx),
crypto/libecc/src/sig/ecsdsa_common.c
572
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/ecsdsa_common.c
573
ret = ctx->h->hfunc_update(&(ctx->verify_data.ecsdsa.h_ctx), chunk,
crypto/libecc/src/sig/ecsdsa_common.c
598
r_len = ECSDSA_R_LEN(ctx->h->digest_size);
crypto/libecc/src/sig/ecsdsa_common.c
602
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/ecsdsa_common.c
603
ret = ctx->h->hfunc_finalize(&(ctx->verify_data.ecsdsa.h_ctx), r_prime); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
102
ATTRIBUTE_WARN_UNUSED_RET static inline int dom2(u16 x, const u8 *y, u16 olen_y, const hash_mapping *h,
crypto/libecc/src/sig/eddsa.c
104
return dom(x, y, olen_y, h, h_ctx, 2);
crypto/libecc/src/sig/eddsa.c
1120
const hash_mapping *h;
crypto/libecc/src/sig/eddsa.c
1127
h = ctx->h;
crypto/libecc/src/sig/eddsa.c
1146
MUST_HAVE((h != NULL) && (h->digest_size <= MAX_DIGEST_SIZE) && (h->block_size <= MAX_BLOCK_SIZE), ret, err);
crypto/libecc/src/sig/eddsa.c
1149
MUST_HAVE((key_type == key_pair->pub_key.key_type) && (h->type == get_eddsa_hash_type(key_type)), ret, err);
crypto/libecc/src/sig/eddsa.c
1155
MUST_HAVE(blen <= (8 * h->digest_size), ret, err);
crypto/libecc/src/sig/eddsa.c
1162
ret = hash_mapping_callbacks_sanity_check(h); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
1163
ret = h->hfunc_init(&(ctx->sign_data.eddsa.h_ctx)); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
1170
PTR_NULLIFY(h);
crypto/libecc/src/sig/eddsa.c
118
ATTRIBUTE_WARN_UNUSED_RET static inline int dom4(u16 x, const u8 *y, u16 olen_y, const hash_mapping *h,
crypto/libecc/src/sig/eddsa.c
120
return dom(x, y, olen_y, h, h_ctx, 4);
crypto/libecc/src/sig/eddsa.c
1209
MUST_HAVE((ctx->h->type == get_eddsa_hash_type(key_type)), ret, err);
crypto/libecc/src/sig/eddsa.c
1213
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
1215
ret = ctx->h->hfunc_update(&(ctx->sign_data.eddsa.h_ctx), chunk, chunklen);
crypto/libecc/src/sig/eddsa.c
1246
const hash_mapping *h;
crypto/libecc/src/sig/eddsa.c
1277
MUST_HAVE((key_type == ctx->key_pair->pub_key.key_type) && (ctx->h->type == get_eddsa_hash_type(key_type)), ret, err);
crypto/libecc/src/sig/eddsa.c
1284
h = ctx->h;
crypto/libecc/src/sig/eddsa.c
1285
hsize = h->digest_size;
crypto/libecc/src/sig/eddsa.c
1325
ret = hash_mapping_callbacks_sanity_check(h); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
1327
ret = h->hfunc_finalize(&(ctx->sign_data.eddsa.h_ctx), ph_hash); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
1338
ret = h->hfunc_init(&(ctx->sign_data.eddsa.h_ctx)); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
1343
ret = dom2(1, ctx->adata, ctx->adata_len, h,
crypto/libecc/src/sig/eddsa.c
1349
ret = dom4(1, ctx->adata, ctx->adata_len, h,
crypto/libecc/src/sig/eddsa.c
1353
ret = h->hfunc_update(&(ctx->sign_data.eddsa.h_ctx), &hash[hsize / 2], hsize / 2); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
1358
ret = h->hfunc_update(&(ctx->sign_data.eddsa.h_ctx), ph_hash,
crypto/libecc/src/sig/eddsa.c
1362
ret = h->hfunc_finalize(&(ctx->sign_data.eddsa.h_ctx), hash); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
1436
ret = h->hfunc_init(&(ctx->sign_data.eddsa.h_ctx)); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
1451
ret = dom2(1, ctx->adata, ctx->adata_len, h,
crypto/libecc/src/sig/eddsa.c
1457
ret = dom4(1, ctx->adata, ctx->adata_len, h,
crypto/libecc/src/sig/eddsa.c
1462
ret = h->hfunc_update(&(ctx->sign_data.eddsa.h_ctx), &sig[0], r_len); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
1475
ret = h->hfunc_update(&(ctx->sign_data.eddsa.h_ctx), hash, r_len); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
1477
ret = h->hfunc_update(&(ctx->sign_data.eddsa.h_ctx), ph_hash,
crypto/libecc/src/sig/eddsa.c
1480
ret = h->hfunc_finalize(&(ctx->sign_data.eddsa.h_ctx), hash); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
1512
PTR_NULLIFY(h);
crypto/libecc/src/sig/eddsa.c
1584
const hash_mapping *h;
crypto/libecc/src/sig/eddsa.c
1613
ret = get_hash_by_type(hash_type, &h); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
1617
MUST_HAVE((h != NULL), ret, err);
crypto/libecc/src/sig/eddsa.c
1621
MUST_HAVE((h != NULL) && (h->digest_size <= MAX_DIGEST_SIZE) && (h->block_size <= MAX_BLOCK_SIZE), ret, err);
crypto/libecc/src/sig/eddsa.c
1626
MUST_HAVE((blen <= (8 * h->digest_size)), ret, err);
crypto/libecc/src/sig/eddsa.c
1633
hsize = h->digest_size;
crypto/libecc/src/sig/eddsa.c
1681
ret = hash_mapping_callbacks_sanity_check(h); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
1682
ret = h->hfunc_init(&h_ctx); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
1687
ret = dom2(0, adata, adata_len, h, &h_ctx); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
1690
ret = dom2(1, adata, adata_len, h, &h_ctx); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
1695
ret = dom4(0, adata, adata_len, h, &h_ctx); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
1698
ret = dom4(1, adata, adata_len, h, &h_ctx); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
1701
ret = h->hfunc_update(&h_ctx, &hash[hsize / 2], hsize / 2); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
1705
ret = h->hfunc_update(&h_ctx, ph_hash, use_message_pre_hash_hsize); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
1708
ret = h->hfunc_update(&h_ctx, m, mlen); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
1710
ret = h->hfunc_finalize(&h_ctx, hash); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
1784
ret = hash_mapping_callbacks_sanity_check(h); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
1785
ret = h->hfunc_init(&h_ctx); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
1803
ret = dom2(0, adata, adata_len, h, &h_ctx); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
1806
ret = dom2(1, adata, adata_len, h, &h_ctx); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
1811
ret = dom4(0, adata, adata_len, h, &h_ctx); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
1814
ret = dom4(1, adata, adata_len, h, &h_ctx); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
1818
ret = h->hfunc_update(&h_ctx, &sig[0], r_len); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
1829
ret = h->hfunc_update(&h_ctx, hash, r_len); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
1832
ret = h->hfunc_update(&h_ctx, ph_hash, use_message_pre_hash_hsize); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
1835
ret = h->hfunc_update(&h_ctx, m, mlen); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
1838
ret = h->hfunc_finalize(&h_ctx, hash); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
1878
PTR_NULLIFY(h);
crypto/libecc/src/sig/eddsa.c
1953
MUST_HAVE((ctx->h != NULL) && (ctx->h->digest_size <= MAX_DIGEST_SIZE) && (ctx->h->block_size <= MAX_BLOCK_SIZE), ret, err);
crypto/libecc/src/sig/eddsa.c
1959
hsize = ctx->h->digest_size;
crypto/libecc/src/sig/eddsa.c
1973
MUST_HAVE((ctx->h->type == get_eddsa_hash_type(key_type)), ret, err);
crypto/libecc/src/sig/eddsa.c
1981
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
1982
ret = ctx->h->hfunc_init(h_ctx); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
1983
ret = ctx->h->hfunc_init(h_ctx_pre_hash); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
1988
ret = dom2(0, ctx->adata, ctx->adata_len, ctx->h, h_ctx); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
1991
ret = dom2(1, ctx->adata, ctx->adata_len, ctx->h, h_ctx); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
1996
ret = dom4(0, ctx->adata, ctx->adata_len, ctx->h, h_ctx); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
1999
ret = dom4(1, ctx->adata, ctx->adata_len, ctx->h, h_ctx); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
2014
ret = ctx->h->hfunc_update(h_ctx, &sig[0], EDDSA_R_LEN(hsize)); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
2048
ret = ctx->h->hfunc_update(h_ctx, buff, EDDSA_R_LEN(hsize)); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
2096
MUST_HAVE(ctx->h->type == get_eddsa_hash_type(key_type), ret, err);
crypto/libecc/src/sig/eddsa.c
2111
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
2114
ret = ctx->h->hfunc_update(h_ctx_pre_hash,
crypto/libecc/src/sig/eddsa.c
2119
ret = ctx->h->hfunc_update(h_ctx, chunk, chunklen); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
2133
nn h;
crypto/libecc/src/sig/eddsa.c
2144
_Tmp1.magic = _Tmp2.magic = h.magic = WORD(0);
crypto/libecc/src/sig/eddsa.c
2163
hsize = ctx->h->digest_size;
crypto/libecc/src/sig/eddsa.c
2172
MUST_HAVE((ctx->h->type == get_eddsa_hash_type(key_type)), ret, err);
crypto/libecc/src/sig/eddsa.c
2199
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
2202
ret = ctx->h->hfunc_finalize(h_ctx_pre_hash, hash); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
2204
ret = ctx->h->hfunc_update(h_ctx, hash, use_message_pre_hash_hsize); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
2206
ret = ctx->h->hfunc_finalize(h_ctx, hash); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
2210
ret = eddsa_decode_integer(&h, hash, hsize); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
2211
ret = nn_mod(&h, &h, q); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
2212
dbg_nn_print("h = ", &h);
crypto/libecc/src/sig/eddsa.c
2220
ret = nn_lshift(&h, &h, 2); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
2221
ret = nn_mod(&h, &h, q); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
2228
ret = prj_pt_mul(&_Tmp2, &h, A); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
2262
nn_uninit(&h);
crypto/libecc/src/sig/eddsa.c
2290
nn S, S_sum, z, h;
crypto/libecc/src/sig/eddsa.c
2311
z.magic = h.magic = WORD(0);
crypto/libecc/src/sig/eddsa.c
2386
ret = nn_init(&h, 0); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
2501
ret = eddsa_decode_integer(&h, hash, hsize); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
2502
ret = nn_mod(&h, &h, q); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
2503
dbg_nn_print("h = ", &h);
crypto/libecc/src/sig/eddsa.c
2510
ret = nn_lshift(&h, &h, 2); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
2511
ret = nn_mod(&h, &h, q); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
2519
ret = nn_mul(&z, &z, &h); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
2569
nn_uninit(&h);
crypto/libecc/src/sig/eddsa.c
60
ATTRIBUTE_WARN_UNUSED_RET static inline int dom(u16 x, const u8 *y, u16 olen_y, const hash_mapping *h,
crypto/libecc/src/sig/eddsa.c
65
MUST_HAVE((h != NULL) && (h_ctx != NULL), ret, err);
crypto/libecc/src/sig/eddsa.c
70
ret = h->hfunc_update(h_ctx, (const u8*)"SigEd25519 no Ed25519 collisions", 32); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
73
ret = h->hfunc_update(h_ctx, (const u8*)"SigEd448", 8); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
81
ret = h->hfunc_update(h_ctx, tmp, 2); EG(ret, err);
crypto/libecc/src/sig/eddsa.c
83
ret = h->hfunc_update(h_ctx, y, olen_y); EG(ret, err);
crypto/libecc/src/sig/fuzzing_ecrdsa.c
293
nn tmp, h, r_prime, e, v, u;
crypto/libecc/src/sig/fuzzing_ecrdsa.c
302
tmp.magic = h.magic = r_prime.magic = e.magic = WORD(0);
crypto/libecc/src/sig/fuzzing_ecrdsa.c
353
ret = nn_mod(&h, &tmp, q); EG(ret, err); /* h = OS2I(h) mod q */
crypto/libecc/src/sig/fuzzing_ecrdsa.c
354
ret = nn_iszero(&h, &iszero); EG(ret, err);
crypto/libecc/src/sig/fuzzing_ecrdsa.c
356
ret = nn_inc(&h, &h); EG(ret, err);
crypto/libecc/src/sig/fuzzing_ecrdsa.c
358
ret = nn_modinv(&e, &h, q); EG(ret, err); /* e = h^-1 mod q */
crypto/libecc/src/sig/fuzzing_ecrdsa.c
391
nn_uninit(&h);
crypto/libecc/src/sig/sig_algs.c
218
ret = hash_mapping_callbacks_sanity_check(sig_ctx->h); EG(ret, err);
crypto/libecc/src/sig/sig_algs.c
235
ret = hash_mapping_callbacks_sanity_check(verify_ctx->h); EG(ret, err);
crypto/libecc/src/sig/sig_algs.c
363
ctx->h = hm;
crypto/libecc/src/sig/sig_algs.c
407
ret = hash_mapping_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/sig_algs.c
431
ret = hash_mapping_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/sig_algs.c
561
ctx->h = hm;
crypto/libecc/src/sig/sig_algs.c
595
ret = hash_mapping_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/sig_algs.c
620
ret = hash_mapping_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/sm2.c
258
MUST_HAVE((ctx->h != NULL) && (ctx->h->digest_size <= MAX_DIGEST_SIZE) &&
crypto/libecc/src/sig/sm2.c
259
(ctx->h->block_size <= MAX_BLOCK_SIZE), ret, err);
crypto/libecc/src/sig/sm2.c
266
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/sm2.c
267
ret = ctx->h->hfunc_init(&(ctx->sign_data.sm2.h_ctx)); EG(ret, err);
crypto/libecc/src/sig/sm2.c
273
&(ctx->key_pair->pub_key), ctx->h->type); EG(ret, err);
crypto/libecc/src/sig/sm2.c
277
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/sm2.c
278
ret = ctx->h->hfunc_update(&(ctx->sign_data.sm2.h_ctx), Z, Zlen); EG(ret, err);
crypto/libecc/src/sig/sm2.c
303
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/sm2.c
304
ret = ctx->h->hfunc_update(&(ctx->sign_data.sm2.h_ctx), chunk, chunklen);
crypto/libecc/src/sig/sm2.c
348
hsize = ctx->h->digest_size;
crypto/libecc/src/sig/sm2.c
361
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/sm2.c
364
ret = ctx->h->hfunc_finalize(&(ctx->sign_data.sm2.h_ctx), hash); EG(ret, err);
crypto/libecc/src/sig/sm2.c
534
MUST_HAVE((ctx->h != NULL) && (ctx->h->digest_size <= MAX_DIGEST_SIZE) &&
crypto/libecc/src/sig/sm2.c
535
(ctx->h->block_size <= MAX_BLOCK_SIZE), ret, err);
crypto/libecc/src/sig/sm2.c
563
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/sm2.c
564
ret = ctx->h->hfunc_init(&(ctx->verify_data.sm2.h_ctx)); EG(ret, err);
crypto/libecc/src/sig/sm2.c
569
ret = sm2_compute_Z(Z, &Zlen, ctx->adata, ctx->adata_len, ctx->pub_key, ctx->h->type); EG(ret, err);
crypto/libecc/src/sig/sm2.c
572
ret = ctx->h->hfunc_update(&(ctx->verify_data.sm2.h_ctx), Z, Zlen); EG(ret, err);
crypto/libecc/src/sig/sm2.c
603
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/sm2.c
604
ret = ctx->h->hfunc_update(&(ctx->verify_data.sm2.h_ctx), chunk, chunklen);
crypto/libecc/src/sig/sm2.c
645
hsize = ctx->h->digest_size;
crypto/libecc/src/sig/sm2.c
651
ret = hash_mapping_callbacks_sanity_check(ctx->h); EG(ret, err);
crypto/libecc/src/sig/sm2.c
652
ret = ctx->h->hfunc_finalize(&(ctx->verify_data.sm2.h_ctx), hash); EG(ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
416
ret = hash_mapping_callbacks_sanity_check(sig_ctx.h); EG(ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
417
ret = sig_ctx.h->hfunc_scattered(input, ilens, digest); EG(ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
418
digestlen = sig_ctx.h->digest_size;
crypto/libecc/src/tests/ec_self_tests_core.c
475
ret = hash_mapping_callbacks_sanity_check(sig_ctx.h); EG(ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
476
ret = sig_ctx.h->hfunc_scattered(input, ilens, digest); EG(ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
477
digestlen = sig_ctx.h->digest_size;
crypto/libecc/src/tests/ec_self_tests_core.c
832
ret = hash_mapping_callbacks_sanity_check(sig_ctx.h); EG(ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
833
ret = sig_ctx.h->hfunc_scattered(input, ilens, digest); EG(ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
834
digestlen = sig_ctx.h->digest_size;
crypto/libecc/src/tests/ec_self_tests_core.c
900
if(hash_mapping_callbacks_sanity_check(sig_ctx.h)){
crypto/libecc/src/tests/ec_self_tests_core.c
905
ret = sig_ctx.h->hfunc_scattered(input, ilens, digest); EG(ret, err);
crypto/libecc/src/tests/ec_self_tests_core.c
906
digestlen = sig_ctx.h->digest_size;
crypto/openssh/addr.c
407
addr_sa_pton(const char *h, const char *s, struct sockaddr *sa, socklen_t slen)
crypto/openssh/addr.c
414
if (h == NULL || getaddrinfo(h, s, &hints, &ai) != 0)
crypto/openssh/ed25519.c
1674
fe25519 a,b,t1,t2,c,d,e,f,g,h,qt;
crypto/openssh/ed25519.c
1683
fe25519_add(&h, &b, &a); /* H = B+A */
crypto/openssh/ed25519.c
1690
fe25519_mul(&r->y, &h, &g);
crypto/openssh/ed25519.c
1692
fe25519_mul(&r->t, &e, &h);
crypto/openssh/openbsd-compat/glob.c
369
char *h;
crypto/openssh/openbsd-compat/glob.c
378
for (p = pattern + 1, h = (char *) patbuf;
crypto/openssh/openbsd-compat/glob.c
379
h < (char *)eb && *p && *p != SLASH; *h++ = *p++)
crypto/openssh/openbsd-compat/glob.c
382
*h = EOS;
crypto/openssh/openbsd-compat/glob.c
385
if (h == (char *)eb)
crypto/openssh/openbsd-compat/glob.c
395
if (issetugid() != 0 || (h = getenv("HOME")) == NULL) {
crypto/openssh/openbsd-compat/glob.c
397
if ((getuid() != geteuid()) || (h = getenv("HOME")) == NULL) {
crypto/openssh/openbsd-compat/glob.c
401
h = pwd->pw_dir;
crypto/openssh/openbsd-compat/glob.c
410
h = pwd->pw_dir;
crypto/openssh/openbsd-compat/glob.c
414
for (b = patbuf; b < eb && *h; *b++ = *h++)
crypto/openssh/openbsd-compat/memmem.c
141
if (z-h < l) return 0;
crypto/openssh/openbsd-compat/memmem.c
144
if (BITOP(byteset, h[l-1], &)) {
crypto/openssh/openbsd-compat/memmem.c
145
k = l-shift[h[l-1]];
crypto/openssh/openbsd-compat/memmem.c
148
h += k;
crypto/openssh/openbsd-compat/memmem.c
153
h += l;
crypto/openssh/openbsd-compat/memmem.c
159
for (k=MAX(ms+1,mem); k<l && n[k] == h[k]; k++);
crypto/openssh/openbsd-compat/memmem.c
161
h += k-ms;
crypto/openssh/openbsd-compat/memmem.c
166
for (k=ms+1; k>mem && n[k-1] == h[k-1]; k--);
crypto/openssh/openbsd-compat/memmem.c
167
if (k <= mem) return (char *)h;
crypto/openssh/openbsd-compat/memmem.c
168
h += p;
crypto/openssh/openbsd-compat/memmem.c
176
const unsigned char *h = h0, *n = n0;
crypto/openssh/openbsd-compat/memmem.c
179
if (!l) return (void *)h;
crypto/openssh/openbsd-compat/memmem.c
185
h = memchr(h0, *n, k);
crypto/openssh/openbsd-compat/memmem.c
186
if (!h || l==1) return (void *)h;
crypto/openssh/openbsd-compat/memmem.c
187
k -= h - (const unsigned char *)h0;
crypto/openssh/openbsd-compat/memmem.c
189
if (l==2) return twobyte_memmem(h, k, n);
crypto/openssh/openbsd-compat/memmem.c
190
if (l==3) return threebyte_memmem(h, k, n);
crypto/openssh/openbsd-compat/memmem.c
191
if (l==4) return fourbyte_memmem(h, k, n);
crypto/openssh/openbsd-compat/memmem.c
193
return twoway_memmem(h, h+k, n, l);
crypto/openssh/openbsd-compat/memmem.c
38
twobyte_memmem(const unsigned char *h, size_t k, const unsigned char *n)
crypto/openssh/openbsd-compat/memmem.c
40
uint16_t nw = n[0]<<8 | n[1], hw = h[0]<<8 | h[1];
crypto/openssh/openbsd-compat/memmem.c
41
for (h+=2, k-=2; k; k--, hw = hw<<8 | *h++)
crypto/openssh/openbsd-compat/memmem.c
42
if (hw == nw) return (char *)h-2;
crypto/openssh/openbsd-compat/memmem.c
43
return hw == nw ? (char *)h-2 : 0;
crypto/openssh/openbsd-compat/memmem.c
47
threebyte_memmem(const unsigned char *h, size_t k, const unsigned char *n)
crypto/openssh/openbsd-compat/memmem.c
50
uint32_t hw = h[0]<<24 | h[1]<<16 | h[2]<<8;
crypto/openssh/openbsd-compat/memmem.c
51
for (h+=3, k-=3; k; k--, hw = (hw|*h++)<<8)
crypto/openssh/openbsd-compat/memmem.c
52
if (hw == nw) return (char *)h-3;
crypto/openssh/openbsd-compat/memmem.c
53
return hw == nw ? (char *)h-3 : 0;
crypto/openssh/openbsd-compat/memmem.c
57
fourbyte_memmem(const unsigned char *h, size_t k, const unsigned char *n)
crypto/openssh/openbsd-compat/memmem.c
60
uint32_t hw = h[0]<<24 | h[1]<<16 | h[2]<<8 | h[3];
crypto/openssh/openbsd-compat/memmem.c
61
for (h+=4, k-=4; k; k--, hw = hw<<8 | *h++)
crypto/openssh/openbsd-compat/memmem.c
62
if (hw == nw) return (char *)h-4;
crypto/openssh/openbsd-compat/memmem.c
63
return hw == nw ? (char *)h-4 : 0;
crypto/openssh/openbsd-compat/memmem.c
80
twoway_memmem(const unsigned char *h, const unsigned char *z,
crypto/openssh/openbsd-compat/sha2.c
367
#define ROUND256_0_TO_15(a,b,c,d,e,f,g,h) do { \
crypto/openssh/openbsd-compat/sha2.c
370
T1 = (h) + Sigma1_256((e)) + Ch((e), (f), (g)) + K256[j] + W256[j]; \
crypto/openssh/openbsd-compat/sha2.c
372
(h) = T1 + Sigma0_256((a)) + Maj((a), (b), (c)); \
crypto/openssh/openbsd-compat/sha2.c
376
#define ROUND256(a,b,c,d,e,f,g,h) do { \
crypto/openssh/openbsd-compat/sha2.c
381
T1 = (h) + Sigma1_256((e)) + Ch((e), (f), (g)) + K256[j] + \
crypto/openssh/openbsd-compat/sha2.c
384
(h) = T1 + Sigma0_256((a)) + Maj((a), (b), (c)); \
crypto/openssh/openbsd-compat/sha2.c
391
u_int32_t a, b, c, d, e, f, g, h, s0, s1;
crypto/openssh/openbsd-compat/sha2.c
403
h = state[7];
crypto/openssh/openbsd-compat/sha2.c
408
ROUND256_0_TO_15(a,b,c,d,e,f,g,h);
crypto/openssh/openbsd-compat/sha2.c
409
ROUND256_0_TO_15(h,a,b,c,d,e,f,g);
crypto/openssh/openbsd-compat/sha2.c
410
ROUND256_0_TO_15(g,h,a,b,c,d,e,f);
crypto/openssh/openbsd-compat/sha2.c
411
ROUND256_0_TO_15(f,g,h,a,b,c,d,e);
crypto/openssh/openbsd-compat/sha2.c
412
ROUND256_0_TO_15(e,f,g,h,a,b,c,d);
crypto/openssh/openbsd-compat/sha2.c
413
ROUND256_0_TO_15(d,e,f,g,h,a,b,c);
crypto/openssh/openbsd-compat/sha2.c
414
ROUND256_0_TO_15(c,d,e,f,g,h,a,b);
crypto/openssh/openbsd-compat/sha2.c
415
ROUND256_0_TO_15(b,c,d,e,f,g,h,a);
crypto/openssh/openbsd-compat/sha2.c
420
ROUND256(a,b,c,d,e,f,g,h);
crypto/openssh/openbsd-compat/sha2.c
421
ROUND256(h,a,b,c,d,e,f,g);
crypto/openssh/openbsd-compat/sha2.c
422
ROUND256(g,h,a,b,c,d,e,f);
crypto/openssh/openbsd-compat/sha2.c
423
ROUND256(f,g,h,a,b,c,d,e);
crypto/openssh/openbsd-compat/sha2.c
424
ROUND256(e,f,g,h,a,b,c,d);
crypto/openssh/openbsd-compat/sha2.c
425
ROUND256(d,e,f,g,h,a,b,c);
crypto/openssh/openbsd-compat/sha2.c
426
ROUND256(c,d,e,f,g,h,a,b);
crypto/openssh/openbsd-compat/sha2.c
427
ROUND256(b,c,d,e,f,g,h,a);
crypto/openssh/openbsd-compat/sha2.c
438
state[7] += h;
crypto/openssh/openbsd-compat/sha2.c
441
a = b = c = d = e = f = g = h = T1 = 0;
crypto/openssh/openbsd-compat/sha2.c
449
u_int32_t a, b, c, d, e, f, g, h, s0, s1;
crypto/openssh/openbsd-compat/sha2.c
461
h = state[7];
crypto/openssh/openbsd-compat/sha2.c
468
T1 = h + Sigma1_256(e) + Ch(e, f, g) + K256[j] + W256[j];
crypto/openssh/openbsd-compat/sha2.c
470
h = g;
crypto/openssh/openbsd-compat/sha2.c
490
T1 = h + Sigma1_256(e) + Ch(e, f, g) + K256[j] +
crypto/openssh/openbsd-compat/sha2.c
493
h = g;
crypto/openssh/openbsd-compat/sha2.c
513
state[7] += h;
crypto/openssh/openbsd-compat/sha2.c
516
a = b = c = d = e = f = g = h = T1 = T2 = 0;
crypto/openssh/openbsd-compat/sha2.c
647
#define ROUND512_0_TO_15(a,b,c,d,e,f,g,h) do { \
crypto/openssh/openbsd-compat/sha2.c
650
T1 = (h) + Sigma1_512((e)) + Ch((e), (f), (g)) + K512[j] + W512[j]; \
crypto/openssh/openbsd-compat/sha2.c
652
(h) = T1 + Sigma0_512((a)) + Maj((a), (b), (c)); \
crypto/openssh/openbsd-compat/sha2.c
657
#define ROUND512(a,b,c,d,e,f,g,h) do { \
crypto/openssh/openbsd-compat/sha2.c
662
T1 = (h) + Sigma1_512((e)) + Ch((e), (f), (g)) + K512[j] + \
crypto/openssh/openbsd-compat/sha2.c
665
(h) = T1 + Sigma0_512((a)) + Maj((a), (b), (c)); \
crypto/openssh/openbsd-compat/sha2.c
672
u_int64_t a, b, c, d, e, f, g, h, s0, s1;
crypto/openssh/openbsd-compat/sha2.c
684
h = state[7];
crypto/openssh/openbsd-compat/sha2.c
689
ROUND512_0_TO_15(a,b,c,d,e,f,g,h);
crypto/openssh/openbsd-compat/sha2.c
690
ROUND512_0_TO_15(h,a,b,c,d,e,f,g);
crypto/openssh/openbsd-compat/sha2.c
691
ROUND512_0_TO_15(g,h,a,b,c,d,e,f);
crypto/openssh/openbsd-compat/sha2.c
692
ROUND512_0_TO_15(f,g,h,a,b,c,d,e);
crypto/openssh/openbsd-compat/sha2.c
693
ROUND512_0_TO_15(e,f,g,h,a,b,c,d);
crypto/openssh/openbsd-compat/sha2.c
694
ROUND512_0_TO_15(d,e,f,g,h,a,b,c);
crypto/openssh/openbsd-compat/sha2.c
695
ROUND512_0_TO_15(c,d,e,f,g,h,a,b);
crypto/openssh/openbsd-compat/sha2.c
696
ROUND512_0_TO_15(b,c,d,e,f,g,h,a);
crypto/openssh/openbsd-compat/sha2.c
701
ROUND512(a,b,c,d,e,f,g,h);
crypto/openssh/openbsd-compat/sha2.c
702
ROUND512(h,a,b,c,d,e,f,g);
crypto/openssh/openbsd-compat/sha2.c
703
ROUND512(g,h,a,b,c,d,e,f);
crypto/openssh/openbsd-compat/sha2.c
704
ROUND512(f,g,h,a,b,c,d,e);
crypto/openssh/openbsd-compat/sha2.c
705
ROUND512(e,f,g,h,a,b,c,d);
crypto/openssh/openbsd-compat/sha2.c
706
ROUND512(d,e,f,g,h,a,b,c);
crypto/openssh/openbsd-compat/sha2.c
707
ROUND512(c,d,e,f,g,h,a,b);
crypto/openssh/openbsd-compat/sha2.c
708
ROUND512(b,c,d,e,f,g,h,a);
crypto/openssh/openbsd-compat/sha2.c
719
state[7] += h;
crypto/openssh/openbsd-compat/sha2.c
722
a = b = c = d = e = f = g = h = T1 = 0;
crypto/openssh/openbsd-compat/sha2.c
730
u_int64_t a, b, c, d, e, f, g, h, s0, s1;
crypto/openssh/openbsd-compat/sha2.c
742
h = state[7];
crypto/openssh/openbsd-compat/sha2.c
749
T1 = h + Sigma1_512(e) + Ch(e, f, g) + K512[j] + W512[j];
crypto/openssh/openbsd-compat/sha2.c
751
h = g;
crypto/openssh/openbsd-compat/sha2.c
771
T1 = h + Sigma1_512(e) + Ch(e, f, g) + K512[j] +
crypto/openssh/openbsd-compat/sha2.c
774
h = g;
crypto/openssh/openbsd-compat/sha2.c
794
state[7] += h;
crypto/openssh/openbsd-compat/sha2.c
797
a = b = c = d = e = f = g = h = T1 = T2 = 0;
crypto/openssh/regress/netcat.c
1407
decode_addrport(const char *h, const char *p, struct sockaddr *addr,
crypto/openssh/regress/netcat.c
1417
r = getaddrinfo(h, p, &hints, &res);
crypto/openssh/regress/netcat.c
1421
errx(1, "getaddrinfo(\"%.64s\", \"%.64s\"): %s", h, p,
crypto/openssh/sftp-server.c
193
request_permitted(const struct sftp_handler *h)
crypto/openssh/sftp-server.c
197
if (readonly && h->does_write) {
crypto/openssh/sftp-server.c
198
verbose("Refusing %s request in read-only mode", h->name);
crypto/openssh/sftp-server.c
202
((result = match_list(h->name, request_denylist, NULL))) != NULL) {
crypto/openssh/sftp-server.c
204
verbose("Refusing denylisted %s request", h->name);
crypto/openssh/sftp-server.c
208
((result = match_list(h->name, request_allowlist, NULL))) != NULL) {
crypto/openssh/sftp-server.c
210
debug2("Permitting allowlisted %s request", h->name);
crypto/openssh/sftp-server.c
214
verbose("Refusing non-allowlisted %s request", h->name);
crypto/openssh/sntrup761.c
1830
static void R3_mult(small *h, const small *f, const small *g) {
crypto/openssh/sntrup761.c
1838
for (i = 0; i < p; ++i) h[i] = F3_freeze(fg[i]);
crypto/openssh/sntrup761.c
1877
static void Rq_mult_small(Fq *h, const Fq *f, const small *g) {
crypto/openssh/sntrup761.c
1885
for (i = 0; i < p; ++i) h[i] = Fq_freeze(fg[i]);
crypto/openssh/sntrup761.c
1888
static void Rq_mult3(Fq *h, const Fq *f) {
crypto/openssh/sntrup761.c
1890
for (i = 0; i < p; ++i) h[i] = Fq_freeze(3 * f[i]);
crypto/openssh/sntrup761.c
1956
unsigned char x[inlen + 1], h[64];
crypto/openssh/sntrup761.c
1960
crypto_hash_sha512(h, x, inlen + 1);
crypto/openssh/sntrup761.c
1961
for (i = 0; i < 32; ++i) out[i] = h[i];
crypto/openssh/sntrup761.c
1985
static void KeyGen(Fq *h, small *f, small *ginv) {
crypto/openssh/sntrup761.c
1997
Rq_mult_small(h, finv, g);
crypto/openssh/sntrup761.c
2000
static void Encrypt(Fq *c, const small *r, const Fq *h) {
crypto/openssh/sntrup761.c
2002
Rq_mult_small(hr, h, r);
crypto/openssh/sntrup761.c
2071
Fq h[p];
crypto/openssh/sntrup761.c
2073
KeyGen(h, f, v);
crypto/openssh/sntrup761.c
2074
Rq_encode(pk, h);
crypto/openssh/sntrup761.c
2080
Fq h[p], c[p];
crypto/openssh/sntrup761.c
2081
Rq_decode(h, pk);
crypto/openssh/sntrup761.c
2082
Encrypt(c, r, h);
crypto/openssh/sntrup761.c
2095
static void HashConfirm(unsigned char *h, const unsigned char *r, const unsigned char *cache) {
crypto/openssh/sntrup761.c
2100
Hash_prefix(h, 2, x, sizeof x);
crypto/openssh/sshkey-xmss.c
109
state->h = 10;
crypto/openssh/sshkey-xmss.c
113
state->h = 16;
crypto/openssh/sshkey-xmss.c
117
state->h = 20;
crypto/openssh/sshkey-xmss.c
128
if (xmss_set_params(&state->params, state->n, state->h, state->w,
crypto/openssh/sshkey-xmss.c
155
#define num_stack(x) ((x->h+1)*(x->n))
crypto/openssh/sshkey-xmss.c
156
#define num_stacklevels(x) (x->h+1)
crypto/openssh/sshkey-xmss.c
157
#define num_auth(x) ((x->h)*(x->n))
crypto/openssh/sshkey-xmss.c
158
#define num_keep(x) ((x->h >> 1)*(x->n))
crypto/openssh/sshkey-xmss.c
159
#define num_th_nodes(x) ((x->h - x->k)*(x->n))
crypto/openssh/sshkey-xmss.c
161
#define num_treehash(x) ((x->h) - (x->k))
crypto/openssh/sshkey-xmss.c
181
for (i = 0; i < state->h - state->k; i++)
crypto/openssh/sshkey-xmss.c
243
state->h * state->n;
crypto/openssh/sshkey-xmss.c
57
u_int32_t n, w, h, k;
crypto/openssh/sshkey-xmss.c
704
if ((r = sshbuf_put_u32(b, th->h)) != 0 ||
crypto/openssh/sshkey-xmss.c
816
if ((r = sshbuf_get_u32(b, &th->h)) != 0 ||
crypto/openssh/umac.c
339
UINT64 h;
crypto/openssh/umac.c
346
h = *((UINT64 *)hp);
crypto/openssh/umac.c
354
h += MUL64((k0 + d0), (k4 + d4));
crypto/openssh/umac.c
355
h += MUL64((k1 + d1), (k5 + d5));
crypto/openssh/umac.c
356
h += MUL64((k2 + d2), (k6 + d6));
crypto/openssh/umac.c
357
h += MUL64((k3 + d3), (k7 + d7));
crypto/openssh/umac.c
362
*((UINT64 *)hp) = h;
crypto/openssh/xmss_fast.c
101
if (xmss_set_params(&xmss_par, n, (h/d), w, k)) {
crypto/openssh/xmss_fast.c
1013
unsigned long long tmp_sig_len = (params->d * params->xmss_par.wots_par.keysize) + (params->h * n);
crypto/openssh/xmss_fast.c
164
unsigned int r = params->h, i;
crypto/openssh/xmss_fast.c
182
unsigned int h = params->h;
crypto/openssh/xmss_fast.c
205
for (i = 0; i < h-k; i++) {
crypto/openssh/xmss_fast.c
206
state->treehash[i].h = i;
crypto/openssh/xmss_fast.c
218
if (h - k > 0 && i == 3) {
crypto/openssh/xmss_fast.c
228
if (nodeh < h - k && i >> nodeh == 3) {
crypto/openssh/xmss_fast.c
231
else if (nodeh >= h - k) {
crypto/openssh/xmss_fast.c
232
memcpy(state->retain + ((1 << (h - 1 - nodeh)) + nodeh - h + (((i >> nodeh) - 3) >> 1)) * n, stack+(stackoffset-1)*n, n);
crypto/openssh/xmss_fast.c
280
if (nodeheight == treehash->h) { // this also implies stackusage == 0
crypto/openssh/xmss_fast.c
319
for (i=0; i < params->h-1; i++) {
crypto/openssh/xmss_fast.c
335
setTreeHeight(addr, (params->h-1));
crypto/openssh/xmss_fast.c
348
unsigned int h = params->h;
crypto/openssh/xmss_fast.c
353
l_min = h;
crypto/openssh/xmss_fast.c
354
level = h - k;
crypto/openssh/xmss_fast.c
355
for (i = 0; i < h - k; i++) {
crypto/openssh/xmss_fast.c
357
low = h;
crypto/openssh/xmss_fast.c
370
if (level == h - k) {
crypto/openssh/xmss_fast.c
389
int h = params->h;
crypto/openssh/xmss_fast.c
394
if (idx == 1 << h) {
crypto/openssh/xmss_fast.c
414
if (h - k > 0 && idx == 3) {
crypto/openssh/xmss_fast.c
423
if (nodeh < h - k && idx >> nodeh == 3) {
crypto/openssh/xmss_fast.c
426
else if (nodeh >= h - k) {
crypto/openssh/xmss_fast.c
427
memcpy(state->retain + ((1 << (h - 1 - nodeh)) + nodeh - h + (((idx >> nodeh) - 3) >> 1)) * n, state->stack+(state->stackoffset-1)*n, n);
crypto/openssh/xmss_fast.c
450
unsigned int h = params->h;
crypto/openssh/xmss_fast.c
453
unsigned int tau = h;
crypto/openssh/xmss_fast.c
470
for (i = 0; i < h; i++) {
crypto/openssh/xmss_fast.c
482
if (!((leaf_idx >> (tau + 1)) & 1) && (tau < h - 1)) {
crypto/openssh/xmss_fast.c
495
if (i < h - k) {
crypto/openssh/xmss_fast.c
499
offset = (1 << (h - 1 - i)) + i - h;
crypto/openssh/xmss_fast.c
505
for (i = 0; i < ((tau < h - k) ? tau : (h - k)); i++) {
crypto/openssh/xmss_fast.c
507
if (startidx < 1U << h) {
crypto/openssh/xmss_fast.c
508
state->treehash[i].h = i;
crypto/openssh/xmss_fast.c
53
int xmss_set_params(xmss_params *params, int n, int h, int w, int k)
crypto/openssh/xmss_fast.c
538
treehash_setup(pk, params->h, 0, state, sk+4, params, sk+4+2*n, addr);
crypto/openssh/xmss_fast.c
55
if (k >= h || k < 2 || (h - k) % 2) {
crypto/openssh/xmss_fast.c
553
unsigned int h = params->h;
crypto/openssh/xmss_fast.c
59
params->h = h;
crypto/openssh/xmss_fast.c
638
memcpy(sig_msg, state->auth, h*n);
crypto/openssh/xmss_fast.c
640
if (idx < (1U << h) - 1) {
crypto/openssh/xmss_fast.c
642
bds_treehash_update(state, (h - k) >> 1, sk_seed, params, pub_seed, ots_addr);
crypto/openssh/xmss_fast.c
647
sig_msg += params->h*n;
crypto/openssh/xmss_fast.c
648
*sig_msg_len += params->h*n;
crypto/openssh/xmss_fast.c
700
unsigned long long tmp_sig_len = params->wots_par.keysize+params->h*n;
crypto/openssh/xmss_fast.c
723
sig_msg += params->h*n;
crypto/openssh/xmss_fast.c
724
sig_msg_len -= params->h*n;
crypto/openssh/xmss_fast.c
770
treehash_setup(pk, params->xmss_par.h, 0, states + i, sk+params->index_len, &(params->xmss_par), pk+n, addr);
crypto/openssh/xmss_fast.c
775
treehash_setup(pk, params->xmss_par.h, 0, states + i, sk+params->index_len, &(params->xmss_par), pk+n, addr);
crypto/openssh/xmss_fast.c
791
unsigned int tree_h = params->xmss_par.h;
crypto/openssh/xmss_fast.c
792
unsigned int h = params->h;
crypto/openssh/xmss_fast.c
90
int xmssmt_set_params(xmssmt_params *params, int n, int h, int d, int w, int k)
crypto/openssh/xmss_fast.c
911
if ((1 + idx_tree) * (1 << tree_h) + idx_leaf < (1ULL << h)) {
crypto/openssh/xmss_fast.c
92
if (h % d) {
crypto/openssh/xmss_fast.c
928
if ((1 + idx_tree) * (1 << tree_h) + idx_leaf < (1ULL << (h - tree_h * i))) {
crypto/openssh/xmss_fast.c
929
if (i > 0 && updates > 0 && states[params->d + i].next_leaf < (1ULL << h)) {
crypto/openssh/xmss_fast.c
935
else if (idx < (1ULL << h) - 1) {
crypto/openssh/xmss_fast.c
96
params->h = h;
crypto/openssh/xmss_fast.c
974
unsigned int tree_h = params->xmss_par.h;
crypto/openssh/xmss_fast.c
99
params->index_len = (h + 7) / 8;
crypto/openssh/xmss_fast.h
23
unsigned int h;
crypto/openssh/xmss_fast.h
30
unsigned int h;
crypto/openssh/xmss_fast.h
36
unsigned int h;
crypto/openssh/xmss_fast.h
63
int xmss_set_params(xmss_params *params, int n, int h, int w, int k);
crypto/openssh/xmss_fast.h
70
int xmssmt_set_params(xmssmt_params *params, int n, int h, int d, int w, int k);
crypto/openssl/apps/lib/win32_init.c
132
} while (FindNextFileW(h, &data));
crypto/openssl/apps/lib/win32_init.c
134
CloseHandle(h);
crypto/openssl/apps/lib/win32_init.c
62
HANDLE h;
crypto/openssl/apps/lib/win32_init.c
87
h = FindFirstFileW(wstr, &data);
crypto/openssl/apps/lib/win32_init.c
89
if (h == INVALID_HANDLE_VALUE)
crypto/openssl/apps/rehash.c
235
static int do_file(const char *filename, const char *fullpath, enum Hash h)
crypto/openssl/apps/rehash.c
298
if (h == HASH_NEW || h == HASH_BOTH) {
crypto/openssl/apps/rehash.c
311
if ((h == HASH_OLD) || (h == HASH_BOTH))
crypto/openssl/apps/rehash.c
348
static int do_dir(const char *dirname, enum Hash h)
crypto/openssl/apps/rehash.c
411
errs += do_file(filename, buf, h);
crypto/openssl/apps/rehash.c
521
enum Hash h = HASH_NEW;
crypto/openssl/apps/rehash.c
534
h = HASH_BOTH;
crypto/openssl/apps/rehash.c
537
h = HASH_OLD;
crypto/openssl/apps/rehash.c
564
errs += do_dir(*argv++, h);
crypto/openssl/apps/rehash.c
574
errs += do_dir(e, h);
crypto/openssl/apps/rehash.c
577
errs += do_dir(X509_get_default_cert_dir(), h);
crypto/openssl/crypto/asn1/bio_asn1.c
62
static int asn1_bio_write(BIO *h, const char *buf, int num);
crypto/openssl/crypto/asn1/bio_asn1.c
63
static int asn1_bio_read(BIO *h, char *buf, int size);
crypto/openssl/crypto/asn1/bio_asn1.c
64
static int asn1_bio_puts(BIO *h, const char *str);
crypto/openssl/crypto/asn1/bio_asn1.c
65
static int asn1_bio_gets(BIO *h, char *str, int size);
crypto/openssl/crypto/asn1/bio_asn1.c
66
static long asn1_bio_ctrl(BIO *h, int cmd, long arg1, void *arg2);
crypto/openssl/crypto/asn1/bio_asn1.c
67
static int asn1_bio_new(BIO *h);
crypto/openssl/crypto/asn1/bio_asn1.c
69
static long asn1_bio_callback_ctrl(BIO *h, int cmd, BIO_info_cb *fp);
crypto/openssl/crypto/bio/bf_buff.c
15
static int buffer_write(BIO *h, const char *buf, int num);
crypto/openssl/crypto/bio/bf_buff.c
16
static int buffer_read(BIO *h, char *buf, int size);
crypto/openssl/crypto/bio/bf_buff.c
17
static int buffer_puts(BIO *h, const char *str);
crypto/openssl/crypto/bio/bf_buff.c
18
static int buffer_gets(BIO *h, char *str, int size);
crypto/openssl/crypto/bio/bf_buff.c
19
static long buffer_ctrl(BIO *h, int cmd, long arg1, void *arg2);
crypto/openssl/crypto/bio/bf_buff.c
20
static int buffer_new(BIO *h);
crypto/openssl/crypto/bio/bf_buff.c
22
static long buffer_callback_ctrl(BIO *h, int cmd, BIO_info_cb *fp);
crypto/openssl/crypto/bio/bf_lbuf.c
16
static int linebuffer_write(BIO *h, const char *buf, int num);
crypto/openssl/crypto/bio/bf_lbuf.c
17
static int linebuffer_read(BIO *h, char *buf, int size);
crypto/openssl/crypto/bio/bf_lbuf.c
18
static int linebuffer_puts(BIO *h, const char *str);
crypto/openssl/crypto/bio/bf_lbuf.c
19
static int linebuffer_gets(BIO *h, char *str, int size);
crypto/openssl/crypto/bio/bf_lbuf.c
20
static long linebuffer_ctrl(BIO *h, int cmd, long arg1, void *arg2);
crypto/openssl/crypto/bio/bf_lbuf.c
21
static int linebuffer_new(BIO *h);
crypto/openssl/crypto/bio/bf_lbuf.c
23
static long linebuffer_callback_ctrl(BIO *h, int cmd, BIO_info_cb *fp);
crypto/openssl/crypto/bio/bf_nbio.c
20
static int nbiof_write(BIO *h, const char *buf, int num);
crypto/openssl/crypto/bio/bf_nbio.c
21
static int nbiof_read(BIO *h, char *buf, int size);
crypto/openssl/crypto/bio/bf_nbio.c
22
static int nbiof_puts(BIO *h, const char *str);
crypto/openssl/crypto/bio/bf_nbio.c
23
static int nbiof_gets(BIO *h, char *str, int size);
crypto/openssl/crypto/bio/bf_nbio.c
24
static long nbiof_ctrl(BIO *h, int cmd, long arg1, void *arg2);
crypto/openssl/crypto/bio/bf_nbio.c
25
static int nbiof_new(BIO *h);
crypto/openssl/crypto/bio/bf_nbio.c
27
static long nbiof_callback_ctrl(BIO *h, int cmd, BIO_info_cb *fp);
crypto/openssl/crypto/bio/bf_null.c
19
static int nullf_write(BIO *h, const char *buf, int num);
crypto/openssl/crypto/bio/bf_null.c
20
static int nullf_read(BIO *h, char *buf, int size);
crypto/openssl/crypto/bio/bf_null.c
21
static int nullf_puts(BIO *h, const char *str);
crypto/openssl/crypto/bio/bf_null.c
22
static int nullf_gets(BIO *h, char *str, int size);
crypto/openssl/crypto/bio/bf_null.c
23
static long nullf_ctrl(BIO *h, int cmd, long arg1, void *arg2);
crypto/openssl/crypto/bio/bf_null.c
24
static long nullf_callback_ctrl(BIO *h, int cmd, BIO_info_cb *fp);
crypto/openssl/crypto/bio/bf_readbuff.c
24
static int readbuffer_write(BIO *h, const char *buf, int num);
crypto/openssl/crypto/bio/bf_readbuff.c
25
static int readbuffer_read(BIO *h, char *buf, int size);
crypto/openssl/crypto/bio/bf_readbuff.c
26
static int readbuffer_puts(BIO *h, const char *str);
crypto/openssl/crypto/bio/bf_readbuff.c
27
static int readbuffer_gets(BIO *h, char *str, int size);
crypto/openssl/crypto/bio/bf_readbuff.c
28
static long readbuffer_ctrl(BIO *h, int cmd, long arg1, void *arg2);
crypto/openssl/crypto/bio/bf_readbuff.c
29
static int readbuffer_new(BIO *h);
crypto/openssl/crypto/bio/bf_readbuff.c
31
static long readbuffer_callback_ctrl(BIO *h, int cmd, BIO_info_cb *fp);
crypto/openssl/crypto/bio/bio_addr.c
509
const char *h = NULL;
crypto/openssl/crypto/bio/bio_addr.c
517
h = hostserv + 1;
crypto/openssl/crypto/bio/bio_addr.c
518
hl = p - h;
crypto/openssl/crypto/bio/bio_addr.c
546
h = hostserv;
crypto/openssl/crypto/bio/bio_addr.c
547
hl = p - h;
crypto/openssl/crypto/bio/bio_addr.c
551
h = hostserv;
crypto/openssl/crypto/bio/bio_addr.c
552
hl = strlen(h);
crypto/openssl/crypto/bio/bio_addr.c
562
if (h != NULL && host != NULL) {
crypto/openssl/crypto/bio/bio_addr.c
564
|| (hl == 1 && h[0] == '*')) {
crypto/openssl/crypto/bio/bio_addr.c
567
*host = OPENSSL_strndup(h, hl);
crypto/openssl/crypto/bio/bio_addr.c
579
if (h != NULL && host != NULL) {
crypto/openssl/crypto/bio/bio_sock.c
257
char *h = NULL, *p = NULL;
crypto/openssl/crypto/bio/bio_sock.c
260
if (!BIO_parse_hostserv(host, &h, &p, BIO_PARSE_PRIO_SERV))
crypto/openssl/crypto/bio/bio_sock.c
266
if (BIO_lookup(h, p, BIO_LOOKUP_SERVER, AF_UNSPEC, SOCK_STREAM, &res) == 0)
crypto/openssl/crypto/bio/bio_sock.c
284
OPENSSL_free(h);
crypto/openssl/crypto/bio/bss_acpt.c
38
static int acpt_write(BIO *h, const char *buf, int num);
crypto/openssl/crypto/bio/bss_acpt.c
39
static int acpt_read(BIO *h, char *buf, int size);
crypto/openssl/crypto/bio/bss_acpt.c
40
static int acpt_puts(BIO *h, const char *str);
crypto/openssl/crypto/bio/bss_acpt.c
41
static long acpt_ctrl(BIO *h, int cmd, long arg1, void *arg2);
crypto/openssl/crypto/bio/bss_acpt.c
42
static int acpt_new(BIO *h);
crypto/openssl/crypto/bio/bss_conn.c
50
static int conn_write(BIO *h, const char *buf, int num);
crypto/openssl/crypto/bio/bss_conn.c
51
static int conn_read(BIO *h, char *buf, int size);
crypto/openssl/crypto/bio/bss_conn.c
52
static int conn_puts(BIO *h, const char *str);
crypto/openssl/crypto/bio/bss_conn.c
53
static int conn_gets(BIO *h, char *buf, int size);
crypto/openssl/crypto/bio/bss_conn.c
54
static long conn_ctrl(BIO *h, int cmd, long arg1, void *arg2);
crypto/openssl/crypto/bio/bss_conn.c
55
static int conn_new(BIO *h);
crypto/openssl/crypto/bio/bss_conn.c
57
static long conn_callback_ctrl(BIO *h, int cmd, BIO_info_cb *);
crypto/openssl/crypto/bio/bss_conn.c
58
static int conn_sendmmsg(BIO *h, BIO_MSG *m, size_t s, size_t n,
crypto/openssl/crypto/bio/bss_conn.c
60
static int conn_recvmmsg(BIO *h, BIO_MSG *m, size_t s, size_t n,
crypto/openssl/crypto/bio/bss_dgram.c
152
static int dgram_write(BIO *h, const char *buf, int num);
crypto/openssl/crypto/bio/bss_dgram.c
153
static int dgram_read(BIO *h, char *buf, int size);
crypto/openssl/crypto/bio/bss_dgram.c
154
static int dgram_puts(BIO *h, const char *str);
crypto/openssl/crypto/bio/bss_dgram.c
155
static long dgram_ctrl(BIO *h, int cmd, long arg1, void *arg2);
crypto/openssl/crypto/bio/bss_dgram.c
156
static int dgram_new(BIO *h);
crypto/openssl/crypto/bio/bss_dgram.c
167
static int dgram_sctp_write(BIO *h, const char *buf, int num);
crypto/openssl/crypto/bio/bss_dgram.c
168
static int dgram_sctp_read(BIO *h, char *buf, int size);
crypto/openssl/crypto/bio/bss_dgram.c
169
static int dgram_sctp_puts(BIO *h, const char *str);
crypto/openssl/crypto/bio/bss_dgram.c
170
static long dgram_sctp_ctrl(BIO *h, int cmd, long arg1, void *arg2);
crypto/openssl/crypto/bio/bss_dgram.c
171
static int dgram_sctp_new(BIO *h);
crypto/openssl/crypto/bio/bss_fd.c
51
static int fd_write(BIO *h, const char *buf, int num);
crypto/openssl/crypto/bio/bss_fd.c
52
static int fd_read(BIO *h, char *buf, int size);
crypto/openssl/crypto/bio/bss_fd.c
53
static int fd_puts(BIO *h, const char *str);
crypto/openssl/crypto/bio/bss_fd.c
54
static int fd_gets(BIO *h, char *buf, int size);
crypto/openssl/crypto/bio/bss_fd.c
55
static long fd_ctrl(BIO *h, int cmd, long arg1, void *arg2);
crypto/openssl/crypto/bio/bss_fd.c
56
static int fd_new(BIO *h);
crypto/openssl/crypto/bio/bss_file.c
35
static int file_write(BIO *h, const char *buf, int num);
crypto/openssl/crypto/bio/bss_file.c
36
static int file_read(BIO *h, char *buf, int size);
crypto/openssl/crypto/bio/bss_file.c
37
static int file_puts(BIO *h, const char *str);
crypto/openssl/crypto/bio/bss_file.c
38
static int file_gets(BIO *h, char *str, int size);
crypto/openssl/crypto/bio/bss_file.c
39
static long file_ctrl(BIO *h, int cmd, long arg1, void *arg2);
crypto/openssl/crypto/bio/bss_file.c
40
static int file_new(BIO *h);
crypto/openssl/crypto/bio/bss_log.c
80
static int slg_write(BIO *h, const char *buf, int num);
crypto/openssl/crypto/bio/bss_log.c
81
static int slg_puts(BIO *h, const char *str);
crypto/openssl/crypto/bio/bss_log.c
82
static long slg_ctrl(BIO *h, int cmd, long arg1, void *arg2);
crypto/openssl/crypto/bio/bss_log.c
83
static int slg_new(BIO *h);
crypto/openssl/crypto/bio/bss_mem.c
15
static int mem_write(BIO *h, const char *buf, int num);
crypto/openssl/crypto/bio/bss_mem.c
16
static int mem_read(BIO *h, char *buf, int size);
crypto/openssl/crypto/bio/bss_mem.c
17
static int mem_puts(BIO *h, const char *str);
crypto/openssl/crypto/bio/bss_mem.c
18
static int mem_gets(BIO *h, char *str, int size);
crypto/openssl/crypto/bio/bss_mem.c
19
static long mem_ctrl(BIO *h, int cmd, long arg1, void *arg2);
crypto/openssl/crypto/bio/bss_mem.c
20
static int mem_new(BIO *h);
crypto/openssl/crypto/bio/bss_mem.c
21
static int secmem_new(BIO *h);
crypto/openssl/crypto/bio/bss_mem.c
24
static int mem_buf_sync(BIO *h);
crypto/openssl/crypto/bio/bss_null.c
15
static int null_write(BIO *h, const char *buf, int num);
crypto/openssl/crypto/bio/bss_null.c
16
static int null_read(BIO *h, char *buf, int size);
crypto/openssl/crypto/bio/bss_null.c
17
static int null_puts(BIO *h, const char *str);
crypto/openssl/crypto/bio/bss_null.c
18
static int null_gets(BIO *h, char *str, int size);
crypto/openssl/crypto/bio/bss_null.c
19
static long null_ctrl(BIO *h, int cmd, long arg1, void *arg2);
crypto/openssl/crypto/bio/bss_sock.c
39
static int sock_write(BIO *h, const char *buf, int num);
crypto/openssl/crypto/bio/bss_sock.c
40
static int sock_read(BIO *h, char *buf, int size);
crypto/openssl/crypto/bio/bss_sock.c
41
static int sock_puts(BIO *h, const char *str);
crypto/openssl/crypto/bio/bss_sock.c
42
static long sock_ctrl(BIO *h, int cmd, long arg1, void *arg2);
crypto/openssl/crypto/bio/bss_sock.c
43
static int sock_new(BIO *h);
crypto/openssl/crypto/bn/asm/x86_64-gcc.c
198
BN_ULONG bn_div_words(BN_ULONG h, BN_ULONG l, BN_ULONG d)
crypto/openssl/crypto/bn/asm/x86_64-gcc.c
203
: "a"(l), "d"(h), "r"(d)
crypto/openssl/crypto/bn/bn_asm.c
198
BN_ULONG bn_div_words(BN_ULONG h, BN_ULONG l, BN_ULONG d)
crypto/openssl/crypto/bn/bn_asm.c
200
return ((BN_ULONG)(((((BN_ULLONG)h) << BN_BITS2) | l) / (BN_ULLONG)d));
crypto/openssl/crypto/bn/bn_asm.c
207
BN_ULONG bn_div_words(BN_ULONG h, BN_ULONG l, BN_ULONG d)
crypto/openssl/crypto/bn/bn_asm.c
216
assert((i == BN_BITS2) || (h <= (BN_ULONG)1 << i));
crypto/openssl/crypto/bn/bn_asm.c
219
if (h >= d)
crypto/openssl/crypto/bn/bn_asm.c
220
h -= d;
crypto/openssl/crypto/bn/bn_asm.c
224
h = (h << i) | (l >> (BN_BITS2 - i));
crypto/openssl/crypto/bn/bn_asm.c
230
if ((h >> BN_BITS4) == dh)
crypto/openssl/crypto/bn/bn_asm.c
233
q = h / dh;
crypto/openssl/crypto/bn/bn_asm.c
238
t = h - th;
crypto/openssl/crypto/bn/bn_asm.c
252
if (h < th) {
crypto/openssl/crypto/bn/bn_asm.c
253
h += d;
crypto/openssl/crypto/bn/bn_asm.c
256
h -= th;
crypto/openssl/crypto/bn/bn_asm.c
262
h = ((h << BN_BITS4) | (l >> BN_BITS4)) & BN_MASK2;
crypto/openssl/crypto/bn/bn_conv.c
123
int neg = 0, h, m, i, j, k, c;
crypto/openssl/crypto/bn/bn_conv.c
163
h = 0;
crypto/openssl/crypto/bn/bn_conv.c
175
ret->d[h++] = l;
crypto/openssl/crypto/bn/bn_conv.c
181
ret->top = h;
crypto/openssl/crypto/bn/bn_gf2m.c
100
h ^= s >> 5;
crypto/openssl/crypto/bn/bn_gf2m.c
103
h ^= s >> 2;
crypto/openssl/crypto/bn/bn_gf2m.c
109
h ^= b >> 2;
crypto/openssl/crypto/bn/bn_gf2m.c
113
h ^= b >> 1;
crypto/openssl/crypto/bn/bn_gf2m.c
116
*r1 = h;
crypto/openssl/crypto/bn/bn_gf2m.c
124
register BN_ULONG h, l, s;
crypto/openssl/crypto/bn/bn_gf2m.c
154
h = s >> 60;
crypto/openssl/crypto/bn/bn_gf2m.c
157
h ^= s >> 56;
crypto/openssl/crypto/bn/bn_gf2m.c
160
h ^= s >> 52;
crypto/openssl/crypto/bn/bn_gf2m.c
163
h ^= s >> 48;
crypto/openssl/crypto/bn/bn_gf2m.c
166
h ^= s >> 44;
crypto/openssl/crypto/bn/bn_gf2m.c
169
h ^= s >> 40;
crypto/openssl/crypto/bn/bn_gf2m.c
172
h ^= s >> 36;
crypto/openssl/crypto/bn/bn_gf2m.c
175
h ^= s >> 32;
crypto/openssl/crypto/bn/bn_gf2m.c
178
h ^= s >> 28;
crypto/openssl/crypto/bn/bn_gf2m.c
181
h ^= s >> 24;
crypto/openssl/crypto/bn/bn_gf2m.c
184
h ^= s >> 20;
crypto/openssl/crypto/bn/bn_gf2m.c
187
h ^= s >> 16;
crypto/openssl/crypto/bn/bn_gf2m.c
190
h ^= s >> 12;
crypto/openssl/crypto/bn/bn_gf2m.c
193
h ^= s >> 8;
crypto/openssl/crypto/bn/bn_gf2m.c
196
h ^= s >> 4;
crypto/openssl/crypto/bn/bn_gf2m.c
202
h ^= b >> 3;
crypto/openssl/crypto/bn/bn_gf2m.c
206
h ^= b >> 2;
crypto/openssl/crypto/bn/bn_gf2m.c
210
h ^= b >> 1;
crypto/openssl/crypto/bn/bn_gf2m.c
213
*r1 = h;
crypto/openssl/crypto/bn/bn_gf2m.c
55
register BN_ULONG h, l, s;
crypto/openssl/crypto/bn/bn_gf2m.c
76
h = s >> 29;
crypto/openssl/crypto/bn/bn_gf2m.c
79
h ^= s >> 26;
crypto/openssl/crypto/bn/bn_gf2m.c
82
h ^= s >> 23;
crypto/openssl/crypto/bn/bn_gf2m.c
85
h ^= s >> 20;
crypto/openssl/crypto/bn/bn_gf2m.c
88
h ^= s >> 17;
crypto/openssl/crypto/bn/bn_gf2m.c
91
h ^= s >> 14;
crypto/openssl/crypto/bn/bn_gf2m.c
94
h ^= s >> 11;
crypto/openssl/crypto/bn/bn_gf2m.c
97
h ^= s >> 8;
crypto/openssl/crypto/bn/bn_local.h
234
BN_ULONG bn_div_words(BN_ULONG h, BN_ULONG l, BN_ULONG d);
crypto/openssl/crypto/bn/bn_local.h
427
unsigned __int64 *h);
crypto/openssl/crypto/bn/bn_local.h
576
#define mul64(l, h, bl, bh) \
crypto/openssl/crypto/bn/bn_local.h
581
ht = h; \
crypto/openssl/crypto/bn/bn_local.h
593
(h) = ht; \
crypto/openssl/crypto/bn/bn_local.h
598
BN_ULONG l, h, m; \
crypto/openssl/crypto/bn/bn_local.h
600
h = (in); \
crypto/openssl/crypto/bn/bn_local.h
601
l = LBITS(h); \
crypto/openssl/crypto/bn/bn_local.h
602
h = HBITS(h); \
crypto/openssl/crypto/bn/bn_local.h
603
m = (l) * (h); \
crypto/openssl/crypto/bn/bn_local.h
605
h *= h; \
crypto/openssl/crypto/bn/bn_local.h
606
h += (m & BN_MASK2h1) >> (BN_BITS4 - 1); \
crypto/openssl/crypto/bn/bn_local.h
609
h += (l < m); \
crypto/openssl/crypto/bn/bn_local.h
611
(ho) = h; \
crypto/openssl/crypto/bn/bn_local.h
616
BN_ULONG l, h; \
crypto/openssl/crypto/bn/bn_local.h
618
h = (a); \
crypto/openssl/crypto/bn/bn_local.h
619
l = LBITS(h); \
crypto/openssl/crypto/bn/bn_local.h
620
h = HBITS(h); \
crypto/openssl/crypto/bn/bn_local.h
621
mul64(l, h, (bl), (bh)); \
crypto/openssl/crypto/bn/bn_local.h
625
h += (l < (c)); \
crypto/openssl/crypto/bn/bn_local.h
628
h += (l < (c)); \
crypto/openssl/crypto/bn/bn_local.h
629
(c) = h & BN_MASK2; \
crypto/openssl/crypto/bn/bn_local.h
635
BN_ULONG l, h; \
crypto/openssl/crypto/bn/bn_local.h
637
h = (a); \
crypto/openssl/crypto/bn/bn_local.h
638
l = LBITS(h); \
crypto/openssl/crypto/bn/bn_local.h
639
h = HBITS(h); \
crypto/openssl/crypto/bn/bn_local.h
640
mul64(l, h, (bl), (bh)); \
crypto/openssl/crypto/bn/bn_local.h
644
h += ((l & BN_MASK2) < (c)); \
crypto/openssl/crypto/bn/bn_local.h
645
(c) = h & BN_MASK2; \
crypto/openssl/crypto/bsearch.c
18
int l, h, i = 0, c = 0;
crypto/openssl/crypto/bsearch.c
24
h = num;
crypto/openssl/crypto/bsearch.c
25
while (l < h) {
crypto/openssl/crypto/bsearch.c
26
i = l + (h - l) / 2;
crypto/openssl/crypto/bsearch.c
30
h = i;
crypto/openssl/crypto/conf/conf_def.c
222
void *h = (void *)(conf->data);
crypto/openssl/crypto/conf/conf_def.c
592
if (h != conf->data) {
crypto/openssl/crypto/cryptlib.c
117
HANDLE h;
crypto/openssl/crypto/cryptlib.c
119
if ((h = GetStdHandle(STD_ERROR_HANDLE)) != NULL && GetFileType(h) != FILE_TYPE_UNKNOWN) {
crypto/openssl/crypto/cryptlib.c
126
WriteFile(h, buf, len < 0 ? sizeof(buf) : (DWORD)len, &out, NULL);
crypto/openssl/crypto/cryptlib.c
40
HWINSTA h;
crypto/openssl/crypto/cryptlib.c
65
h = GetProcessWindowStation();
crypto/openssl/crypto/cryptlib.c
66
if (h == NULL)
crypto/openssl/crypto/cryptlib.c
69
if (GetUserObjectInformationW(h, UOI_NAME, NULL, 0, &len) || GetLastError() != ERROR_INSUFFICIENT_BUFFER)
crypto/openssl/crypto/cryptlib.c
76
if (!GetUserObjectInformationW(h, UOI_NAME, name, len, &len))
crypto/openssl/crypto/dsa/dsa_gen.c
74
*h_ret = dsa->params.h;
crypto/openssl/crypto/dso/dso_dl.c
275
shl_t h = NULL;
crypto/openssl/crypto/dso/dso_dl.c
277
return shl_findsym(&h, name, TYPE_UNDEFINED, &ret) ? NULL : ret;
crypto/openssl/crypto/dso/dso_win32.c
106
h = LoadLibraryA(filename);
crypto/openssl/crypto/dso/dso_win32.c
107
if (h == NULL) {
crypto/openssl/crypto/dso/dso_win32.c
115
*p = h;
crypto/openssl/crypto/dso/dso_win32.c
127
if (h != NULL)
crypto/openssl/crypto/dso/dso_win32.c
128
FreeLibrary(h);
crypto/openssl/crypto/dso/dso_win32.c
98
HINSTANCE h = NULL, *p = NULL;
crypto/openssl/crypto/ec/curve25519.c
1015
static void fe_copy(fe h, const fe f)
crypto/openssl/crypto/ec/curve25519.c
1017
memmove(h, f, sizeof(int32_t) * 10);
crypto/openssl/crypto/ec/curve25519.c
1021
static void fe_0(fe h)
crypto/openssl/crypto/ec/curve25519.c
1023
memset(h, 0, sizeof(int32_t) * 10);
crypto/openssl/crypto/ec/curve25519.c
1027
static void fe_1(fe h)
crypto/openssl/crypto/ec/curve25519.c
1029
memset(h, 0, sizeof(int32_t) * 10);
crypto/openssl/crypto/ec/curve25519.c
1030
h[0] = 1;
crypto/openssl/crypto/ec/curve25519.c
1045
static void fe_add(fe h, const fe f, const fe g)
crypto/openssl/crypto/ec/curve25519.c
1050
h[i] = f[i] + g[i];
crypto/openssl/crypto/ec/curve25519.c
1066
static void fe_sub(fe h, const fe f, const fe g)
crypto/openssl/crypto/ec/curve25519.c
1071
h[i] = f[i] - g[i];
crypto/openssl/crypto/ec/curve25519.c
1105
static void fe_mul(fe h, const fe f, const fe g)
crypto/openssl/crypto/ec/curve25519.c
1334
h[0] = (int32_t)h0;
crypto/openssl/crypto/ec/curve25519.c
1335
h[1] = (int32_t)h1;
crypto/openssl/crypto/ec/curve25519.c
1336
h[2] = (int32_t)h2;
crypto/openssl/crypto/ec/curve25519.c
1337
h[3] = (int32_t)h3;
crypto/openssl/crypto/ec/curve25519.c
1338
h[4] = (int32_t)h4;
crypto/openssl/crypto/ec/curve25519.c
1339
h[5] = (int32_t)h5;
crypto/openssl/crypto/ec/curve25519.c
1340
h[6] = (int32_t)h6;
crypto/openssl/crypto/ec/curve25519.c
1341
h[7] = (int32_t)h7;
crypto/openssl/crypto/ec/curve25519.c
1342
h[8] = (int32_t)h8;
crypto/openssl/crypto/ec/curve25519.c
1343
h[9] = (int32_t)h9;
crypto/openssl/crypto/ec/curve25519.c
1359
static void fe_sq(fe h, const fe f)
crypto/openssl/crypto/ec/curve25519.c
1503
h[0] = (int32_t)h0;
crypto/openssl/crypto/ec/curve25519.c
1504
h[1] = (int32_t)h1;
crypto/openssl/crypto/ec/curve25519.c
1505
h[2] = (int32_t)h2;
crypto/openssl/crypto/ec/curve25519.c
1506
h[3] = (int32_t)h3;
crypto/openssl/crypto/ec/curve25519.c
1507
h[4] = (int32_t)h4;
crypto/openssl/crypto/ec/curve25519.c
1508
h[5] = (int32_t)h5;
crypto/openssl/crypto/ec/curve25519.c
1509
h[6] = (int32_t)h6;
crypto/openssl/crypto/ec/curve25519.c
1510
h[7] = (int32_t)h7;
crypto/openssl/crypto/ec/curve25519.c
1511
h[8] = (int32_t)h8;
crypto/openssl/crypto/ec/curve25519.c
1512
h[9] = (int32_t)h9;
crypto/openssl/crypto/ec/curve25519.c
1620
static void fe_neg(fe h, const fe f)
crypto/openssl/crypto/ec/curve25519.c
1625
h[i] = -f[i];
crypto/openssl/crypto/ec/curve25519.c
1692
static void fe_sq2(fe h, const fe f)
crypto/openssl/crypto/ec/curve25519.c
1847
h[0] = (int32_t)h0;
crypto/openssl/crypto/ec/curve25519.c
1848
h[1] = (int32_t)h1;
crypto/openssl/crypto/ec/curve25519.c
1849
h[2] = (int32_t)h2;
crypto/openssl/crypto/ec/curve25519.c
1850
h[3] = (int32_t)h3;
crypto/openssl/crypto/ec/curve25519.c
1851
h[4] = (int32_t)h4;
crypto/openssl/crypto/ec/curve25519.c
1852
h[5] = (int32_t)h5;
crypto/openssl/crypto/ec/curve25519.c
1853
h[6] = (int32_t)h6;
crypto/openssl/crypto/ec/curve25519.c
1854
h[7] = (int32_t)h7;
crypto/openssl/crypto/ec/curve25519.c
1855
h[8] = (int32_t)h8;
crypto/openssl/crypto/ec/curve25519.c
1856
h[9] = (int32_t)h9;
crypto/openssl/crypto/ec/curve25519.c
1963
static void ge_tobytes(uint8_t *s, const ge_p2 *h)
crypto/openssl/crypto/ec/curve25519.c
1969
fe_invert(recip, h->Z);
crypto/openssl/crypto/ec/curve25519.c
1970
fe_mul(x, h->X, recip);
crypto/openssl/crypto/ec/curve25519.c
1971
fe_mul(y, h->Y, recip);
crypto/openssl/crypto/ec/curve25519.c
1976
static void ge_p3_tobytes(uint8_t *s, const ge_p3 *h)
crypto/openssl/crypto/ec/curve25519.c
1982
fe_invert(recip, h->Z);
crypto/openssl/crypto/ec/curve25519.c
1983
fe_mul(x, h->X, recip);
crypto/openssl/crypto/ec/curve25519.c
1984
fe_mul(y, h->Y, recip);
crypto/openssl/crypto/ec/curve25519.c
1999
static int ge_frombytes_vartime(ge_p3 *h, const uint8_t *s)
crypto/openssl/crypto/ec/curve25519.c
2007
fe_frombytes(h->Y, s);
crypto/openssl/crypto/ec/curve25519.c
2008
fe_1(h->Z);
crypto/openssl/crypto/ec/curve25519.c
2009
fe_sq(u, h->Y);
crypto/openssl/crypto/ec/curve25519.c
2011
fe_sub(u, u, h->Z); /* u = y^2-1 */
crypto/openssl/crypto/ec/curve25519.c
2012
fe_add(v, v, h->Z); /* v = dy^2+1 */
crypto/openssl/crypto/ec/curve25519.c
2016
fe_pow22523(h->X, w); /* x = w^((q-5)/8) */
crypto/openssl/crypto/ec/curve25519.c
2017
fe_mul(h->X, h->X, u); /* x = u * w^((q-5)/8) */
crypto/openssl/crypto/ec/curve25519.c
2019
fe_sq(vxx, h->X);
crypto/openssl/crypto/ec/curve25519.c
2027
fe_mul(h->X, h->X, sqrtm1);
crypto/openssl/crypto/ec/curve25519.c
2030
if (fe_isnegative(h->X) != (s[31] >> 7)) {
crypto/openssl/crypto/ec/curve25519.c
2031
fe_neg(h->X, h->X);
crypto/openssl/crypto/ec/curve25519.c
2034
fe_mul(h->T, h->X, h->Y);
crypto/openssl/crypto/ec/curve25519.c
2038
static void ge_p2_0(ge_p2 *h)
crypto/openssl/crypto/ec/curve25519.c
2040
fe_0(h->X);
crypto/openssl/crypto/ec/curve25519.c
2041
fe_1(h->Y);
crypto/openssl/crypto/ec/curve25519.c
2042
fe_1(h->Z);
crypto/openssl/crypto/ec/curve25519.c
2045
static void ge_p3_0(ge_p3 *h)
crypto/openssl/crypto/ec/curve25519.c
2047
fe_0(h->X);
crypto/openssl/crypto/ec/curve25519.c
2048
fe_1(h->Y);
crypto/openssl/crypto/ec/curve25519.c
2049
fe_1(h->Z);
crypto/openssl/crypto/ec/curve25519.c
2050
fe_0(h->T);
crypto/openssl/crypto/ec/curve25519.c
2053
static void ge_precomp_0(ge_precomp *h)
crypto/openssl/crypto/ec/curve25519.c
2055
fe_1(h->yplusx);
crypto/openssl/crypto/ec/curve25519.c
2056
fe_1(h->yminusx);
crypto/openssl/crypto/ec/curve25519.c
2057
fe_0(h->xy2d);
crypto/openssl/crypto/ec/curve25519.c
309
static void fe51_frombytes(fe51 h, const uint8_t *s)
crypto/openssl/crypto/ec/curve25519.c
326
h[0] = h0;
crypto/openssl/crypto/ec/curve25519.c
327
h[1] = h1;
crypto/openssl/crypto/ec/curve25519.c
328
h[2] = h2;
crypto/openssl/crypto/ec/curve25519.c
329
h[3] = h3;
crypto/openssl/crypto/ec/curve25519.c
330
h[4] = h4;
crypto/openssl/crypto/ec/curve25519.c
333
static void fe51_tobytes(uint8_t *s, const fe51 h)
crypto/openssl/crypto/ec/curve25519.c
335
uint64_t h0 = h[0];
crypto/openssl/crypto/ec/curve25519.c
336
uint64_t h1 = h[1];
crypto/openssl/crypto/ec/curve25519.c
337
uint64_t h2 = h[2];
crypto/openssl/crypto/ec/curve25519.c
338
uint64_t h3 = h[3];
crypto/openssl/crypto/ec/curve25519.c
339
uint64_t h4 = h[4];
crypto/openssl/crypto/ec/curve25519.c
397
void x25519_fe51_mul(fe51 h, const fe51 f, const fe51 g);
crypto/openssl/crypto/ec/curve25519.c
398
void x25519_fe51_sqr(fe51 h, const fe51 f);
crypto/openssl/crypto/ec/curve25519.c
399
void x25519_fe51_mul121666(fe51 h, fe51 f);
crypto/openssl/crypto/ec/curve25519.c
407
static void fe51_mul(fe51 h, const fe51 f, const fe51 g)
crypto/openssl/crypto/ec/curve25519.c
41
void x25519_fe64_mul(fe64 h, const fe64 f, const fe64 g);
crypto/openssl/crypto/ec/curve25519.c
42
void x25519_fe64_sqr(fe64 h, const fe64 f);
crypto/openssl/crypto/ec/curve25519.c
43
void x25519_fe64_mul121666(fe64 h, fe64 f);
crypto/openssl/crypto/ec/curve25519.c
4365
static void ge_scalarmult_base(ge_p3 *h, const uint8_t *a)
crypto/openssl/crypto/ec/curve25519.c
4391
ge_p3_0(h);
crypto/openssl/crypto/ec/curve25519.c
4394
ge_madd(&r, h, &t);
crypto/openssl/crypto/ec/curve25519.c
4395
ge_p1p1_to_p3(h, &r);
crypto/openssl/crypto/ec/curve25519.c
4398
ge_p3_dbl(&r, h);
crypto/openssl/crypto/ec/curve25519.c
44
void x25519_fe64_add(fe64 h, const fe64 f, const fe64 g);
crypto/openssl/crypto/ec/curve25519.c
4405
ge_p1p1_to_p3(h, &r);
crypto/openssl/crypto/ec/curve25519.c
4409
ge_madd(&r, h, &t);
crypto/openssl/crypto/ec/curve25519.c
4410
ge_p1p1_to_p3(h, &r);
crypto/openssl/crypto/ec/curve25519.c
4447
static void fe_mul121666(fe h, fe f)
crypto/openssl/crypto/ec/curve25519.c
45
void x25519_fe64_sub(fe64 h, const fe64 f, const fe64 g);
crypto/openssl/crypto/ec/curve25519.c
4512
h[0] = (int32_t)h0;
crypto/openssl/crypto/ec/curve25519.c
4513
h[1] = (int32_t)h1;
crypto/openssl/crypto/ec/curve25519.c
4514
h[2] = (int32_t)h2;
crypto/openssl/crypto/ec/curve25519.c
4515
h[3] = (int32_t)h3;
crypto/openssl/crypto/ec/curve25519.c
4516
h[4] = (int32_t)h4;
crypto/openssl/crypto/ec/curve25519.c
4517
h[5] = (int32_t)h5;
crypto/openssl/crypto/ec/curve25519.c
4518
h[6] = (int32_t)h6;
crypto/openssl/crypto/ec/curve25519.c
4519
h[7] = (int32_t)h7;
crypto/openssl/crypto/ec/curve25519.c
4520
h[8] = (int32_t)h8;
crypto/openssl/crypto/ec/curve25519.c
4521
h[9] = (int32_t)h9;
crypto/openssl/crypto/ec/curve25519.c
465
h[0] = g0;
crypto/openssl/crypto/ec/curve25519.c
466
h[1] = g1;
crypto/openssl/crypto/ec/curve25519.c
467
h[2] = g2;
crypto/openssl/crypto/ec/curve25519.c
468
h[3] = g3;
crypto/openssl/crypto/ec/curve25519.c
469
h[4] = g4;
crypto/openssl/crypto/ec/curve25519.c
472
static void fe51_sq(fe51 h, const fe51 f)
crypto/openssl/crypto/ec/curve25519.c
475
fe51_mul(h, f, f);
crypto/openssl/crypto/ec/curve25519.c
528
h[0] = g0;
crypto/openssl/crypto/ec/curve25519.c
529
h[1] = g1;
crypto/openssl/crypto/ec/curve25519.c
530
h[2] = g2;
crypto/openssl/crypto/ec/curve25519.c
531
h[3] = g3;
crypto/openssl/crypto/ec/curve25519.c
532
h[4] = g4;
crypto/openssl/crypto/ec/curve25519.c
536
static void fe51_mul121666(fe51 h, fe51 f)
crypto/openssl/crypto/ec/curve25519.c
562
h[0] = g0;
crypto/openssl/crypto/ec/curve25519.c
563
h[1] = g1;
crypto/openssl/crypto/ec/curve25519.c
564
h[2] = g2;
crypto/openssl/crypto/ec/curve25519.c
565
h[3] = g3;
crypto/openssl/crypto/ec/curve25519.c
566
h[4] = g4;
crypto/openssl/crypto/ec/curve25519.c
570
static void fe51_add(fe51 h, const fe51 f, const fe51 g)
crypto/openssl/crypto/ec/curve25519.c
572
h[0] = f[0] + g[0];
crypto/openssl/crypto/ec/curve25519.c
5724
uint8_t h[SHA512_DIGEST_LENGTH];
crypto/openssl/crypto/ec/curve25519.c
573
h[1] = f[1] + g[1];
crypto/openssl/crypto/ec/curve25519.c
574
h[2] = f[2] + g[2];
crypto/openssl/crypto/ec/curve25519.c
575
h[3] = f[3] + g[3];
crypto/openssl/crypto/ec/curve25519.c
576
h[4] = f[4] + g[4];
crypto/openssl/crypto/ec/curve25519.c
579
static void fe51_sub(fe51 h, const fe51 f, const fe51 g)
crypto/openssl/crypto/ec/curve25519.c
5790
|| !EVP_DigestFinal_ex(hash_ctx, h, &sz))
crypto/openssl/crypto/ec/curve25519.c
5793
x25519_sc_reduce(h);
crypto/openssl/crypto/ec/curve25519.c
5795
ge_double_scalarmult_vartime(&R, h, &A, s);
crypto/openssl/crypto/ec/curve25519.c
585
h[0] = (f[0] + 0xfffffffffffda) - g[0];
crypto/openssl/crypto/ec/curve25519.c
586
h[1] = (f[1] + 0xffffffffffffe) - g[1];
crypto/openssl/crypto/ec/curve25519.c
587
h[2] = (f[2] + 0xffffffffffffe) - g[2];
crypto/openssl/crypto/ec/curve25519.c
588
h[3] = (f[3] + 0xffffffffffffe) - g[3];
crypto/openssl/crypto/ec/curve25519.c
589
h[4] = (f[4] + 0xffffffffffffe) - g[4];
crypto/openssl/crypto/ec/curve25519.c
592
static void fe51_0(fe51 h)
crypto/openssl/crypto/ec/curve25519.c
594
h[0] = 0;
crypto/openssl/crypto/ec/curve25519.c
595
h[1] = 0;
crypto/openssl/crypto/ec/curve25519.c
596
h[2] = 0;
crypto/openssl/crypto/ec/curve25519.c
597
h[3] = 0;
crypto/openssl/crypto/ec/curve25519.c
598
h[4] = 0;
crypto/openssl/crypto/ec/curve25519.c
601
static void fe51_1(fe51 h)
crypto/openssl/crypto/ec/curve25519.c
603
h[0] = 1;
crypto/openssl/crypto/ec/curve25519.c
604
h[1] = 0;
crypto/openssl/crypto/ec/curve25519.c
605
h[2] = 0;
crypto/openssl/crypto/ec/curve25519.c
606
h[3] = 0;
crypto/openssl/crypto/ec/curve25519.c
607
h[4] = 0;
crypto/openssl/crypto/ec/curve25519.c
610
static void fe51_copy(fe51 h, const fe51 f)
crypto/openssl/crypto/ec/curve25519.c
612
h[0] = f[0];
crypto/openssl/crypto/ec/curve25519.c
613
h[1] = f[1];
crypto/openssl/crypto/ec/curve25519.c
614
h[2] = f[2];
crypto/openssl/crypto/ec/curve25519.c
615
h[3] = f[3];
crypto/openssl/crypto/ec/curve25519.c
616
h[4] = f[4];
crypto/openssl/crypto/ec/curve25519.c
70
static void fe64_frombytes(fe64 h, const uint8_t *s)
crypto/openssl/crypto/ec/curve25519.c
72
h[0] = load_8(s);
crypto/openssl/crypto/ec/curve25519.c
73
h[1] = load_8(s + 8);
crypto/openssl/crypto/ec/curve25519.c
74
h[2] = load_8(s + 16);
crypto/openssl/crypto/ec/curve25519.c
75
h[3] = load_8(s + 24) & 0x7fffffffffffffff;
crypto/openssl/crypto/ec/curve25519.c
78
static void fe64_0(fe64 h)
crypto/openssl/crypto/ec/curve25519.c
80
h[0] = 0;
crypto/openssl/crypto/ec/curve25519.c
81
h[1] = 0;
crypto/openssl/crypto/ec/curve25519.c
82
h[2] = 0;
crypto/openssl/crypto/ec/curve25519.c
83
h[3] = 0;
crypto/openssl/crypto/ec/curve25519.c
831
static void fe_frombytes(fe h, const uint8_t *s)
crypto/openssl/crypto/ec/curve25519.c
86
static void fe64_1(fe64 h)
crypto/openssl/crypto/ec/curve25519.c
88
h[0] = 1;
crypto/openssl/crypto/ec/curve25519.c
887
h[0] = (int32_t)h0;
crypto/openssl/crypto/ec/curve25519.c
888
h[1] = (int32_t)h1;
crypto/openssl/crypto/ec/curve25519.c
889
h[2] = (int32_t)h2;
crypto/openssl/crypto/ec/curve25519.c
89
h[1] = 0;
crypto/openssl/crypto/ec/curve25519.c
890
h[3] = (int32_t)h3;
crypto/openssl/crypto/ec/curve25519.c
891
h[4] = (int32_t)h4;
crypto/openssl/crypto/ec/curve25519.c
892
h[5] = (int32_t)h5;
crypto/openssl/crypto/ec/curve25519.c
893
h[6] = (int32_t)h6;
crypto/openssl/crypto/ec/curve25519.c
894
h[7] = (int32_t)h7;
crypto/openssl/crypto/ec/curve25519.c
895
h[8] = (int32_t)h8;
crypto/openssl/crypto/ec/curve25519.c
896
h[9] = (int32_t)h9;
crypto/openssl/crypto/ec/curve25519.c
90
h[2] = 0;
crypto/openssl/crypto/ec/curve25519.c
91
h[3] = 0;
crypto/openssl/crypto/ec/curve25519.c
923
static void fe_tobytes(uint8_t *s, const fe h)
crypto/openssl/crypto/ec/curve25519.c
925
int32_t h0 = h[0];
crypto/openssl/crypto/ec/curve25519.c
926
int32_t h1 = h[1];
crypto/openssl/crypto/ec/curve25519.c
927
int32_t h2 = h[2];
crypto/openssl/crypto/ec/curve25519.c
928
int32_t h3 = h[3];
crypto/openssl/crypto/ec/curve25519.c
929
int32_t h4 = h[4];
crypto/openssl/crypto/ec/curve25519.c
930
int32_t h5 = h[5];
crypto/openssl/crypto/ec/curve25519.c
931
int32_t h6 = h[6];
crypto/openssl/crypto/ec/curve25519.c
932
int32_t h7 = h[7];
crypto/openssl/crypto/ec/curve25519.c
933
int32_t h8 = h[8];
crypto/openssl/crypto/ec/curve25519.c
934
int32_t h9 = h[9];
crypto/openssl/crypto/ec/curve25519.c
94
static void fe64_copy(fe64 h, const fe64 f)
crypto/openssl/crypto/ec/curve25519.c
96
h[0] = f[0];
crypto/openssl/crypto/ec/curve25519.c
97
h[1] = f[1];
crypto/openssl/crypto/ec/curve25519.c
98
h[2] = f[2];
crypto/openssl/crypto/ec/curve25519.c
99
h[3] = f[3];
crypto/openssl/crypto/ec/curve448/arch_32/f_impl.h
18
#define FIELD_LITERAL(a, b, c, d, e, f, g, h) \
crypto/openssl/crypto/ec/curve448/arch_32/f_impl.h
21
LIMB(a), LIMB(b), LIMB(c), LIMB(d), LIMB(e), LIMB(f), LIMB(g), LIMB(h) \
crypto/openssl/crypto/ec/curve448/arch_64/f_impl.h
17
#define FIELD_LITERAL(a, b, c, d, e, f, g, h) \
crypto/openssl/crypto/ec/curve448/arch_64/f_impl.h
20
a, b, c, d, e, f, g, h \
crypto/openssl/crypto/ec/ec_curve.c
1029
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
1061
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
1096
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
1129
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
1161
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
1195
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
1239
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
1285
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
1335
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
136
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
1388
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
1416
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
1444
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
1472
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
1498
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
1526
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
1554
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
1582
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
1614
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
1648
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
1682
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
1716
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
1748
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
1786
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
1826
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
1864
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
190
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
1908
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
1940
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
1971
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
2008
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
2034
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
2060
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
2086
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
2112
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
2144
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
2176
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
218
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
2208
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
2240
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
2278
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
2316
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
2354
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
2392
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
2442
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
246
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
2494
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
2714
{ NID_secp224r1, &_EC_NIST_PRIME_224.h,
crypto/openssl/crypto/ec/ec_curve.c
2722
{ NID_secp384r1, &_EC_NIST_PRIME_384.h,
crypto/openssl/crypto/ec/ec_curve.c
2732
{ NID_secp521r1, &_EC_NIST_PRIME_521.h,
crypto/openssl/crypto/ec/ec_curve.c
2743
{ NID_X9_62_prime192v1, &_EC_NIST_PRIME_192.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2745
{ NID_X9_62_prime256v1, &_EC_X9_62_PRIME_256V1.h,
crypto/openssl/crypto/ec/ec_curve.c
2760
{ NID_sect163k1, &_EC_NIST_CHAR2_163K.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2762
{ NID_sect163r2, &_EC_NIST_CHAR2_163B.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2764
{ NID_sect233k1, &_EC_NIST_CHAR2_233K.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2766
{ NID_sect233r1, &_EC_NIST_CHAR2_233B.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2768
{ NID_sect283k1, &_EC_NIST_CHAR2_283K.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2770
{ NID_sect283r1, &_EC_NIST_CHAR2_283B.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2772
{ NID_sect409k1, &_EC_NIST_CHAR2_409K.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2774
{ NID_sect409r1, &_EC_NIST_CHAR2_409B.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2776
{ NID_sect571k1, &_EC_NIST_CHAR2_571K.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2778
{ NID_sect571r1, &_EC_NIST_CHAR2_571B.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2788
{ NID_secp112r1, &_EC_SECG_PRIME_112R1.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2790
{ NID_secp112r2, &_EC_SECG_PRIME_112R2.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2792
{ NID_secp128r1, &_EC_SECG_PRIME_128R1.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2794
{ NID_secp128r2, &_EC_SECG_PRIME_128R2.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2796
{ NID_secp160k1, &_EC_SECG_PRIME_160K1.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2798
{ NID_secp160r1, &_EC_SECG_PRIME_160R1.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
280
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
2800
{ NID_secp160r2, &_EC_SECG_PRIME_160R2.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2803
{ NID_secp192k1, &_EC_SECG_PRIME_192K1.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2805
{ NID_secp224k1, &_EC_SECG_PRIME_224K1.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2808
{ NID_secp224r1, &_EC_NIST_PRIME_224.h, EC_GFp_nistp224_method,
crypto/openssl/crypto/ec/ec_curve.c
2811
{ NID_secp224r1, &_EC_NIST_PRIME_224.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2814
{ NID_secp256k1, &_EC_SECG_PRIME_256K1.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2817
{ NID_secp384r1, &_EC_NIST_PRIME_384.h,
crypto/openssl/crypto/ec/ec_curve.c
2826
{ NID_secp521r1, &_EC_NIST_PRIME_521.h,
crypto/openssl/crypto/ec/ec_curve.c
2836
{ NID_X9_62_prime192v1, &_EC_NIST_PRIME_192.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2838
{ NID_X9_62_prime192v2, &_EC_X9_62_PRIME_192V2.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2840
{ NID_X9_62_prime192v3, &_EC_X9_62_PRIME_192V3.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2842
{ NID_X9_62_prime239v1, &_EC_X9_62_PRIME_239V1.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2844
{ NID_X9_62_prime239v2, &_EC_X9_62_PRIME_239V2.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2846
{ NID_X9_62_prime239v3, &_EC_X9_62_PRIME_239V3.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2848
{ NID_X9_62_prime256v1, &_EC_X9_62_PRIME_256V1.h,
crypto/openssl/crypto/ec/ec_curve.c
2862
{ NID_sect113r1, &_EC_SECG_CHAR2_113R1.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2864
{ NID_sect113r2, &_EC_SECG_CHAR2_113R2.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2866
{ NID_sect131r1, &_EC_SECG_CHAR2_131R1.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2868
{ NID_sect131r2, &_EC_SECG_CHAR2_131R2.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2870
{ NID_sect163k1, &_EC_NIST_CHAR2_163K.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2872
{ NID_sect163r1, &_EC_SECG_CHAR2_163R1.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2874
{ NID_sect163r2, &_EC_NIST_CHAR2_163B.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2876
{ NID_sect193r1, &_EC_SECG_CHAR2_193R1.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2878
{ NID_sect193r2, &_EC_SECG_CHAR2_193R2.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2880
{ NID_sect233k1, &_EC_NIST_CHAR2_233K.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2882
{ NID_sect233r1, &_EC_NIST_CHAR2_233B.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2884
{ NID_sect239k1, &_EC_SECG_CHAR2_239K1.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2886
{ NID_sect283k1, &_EC_NIST_CHAR2_283K.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2888
{ NID_sect283r1, &_EC_NIST_CHAR2_283B.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2890
{ NID_sect409k1, &_EC_NIST_CHAR2_409K.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2892
{ NID_sect409r1, &_EC_NIST_CHAR2_409B.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2894
{ NID_sect571k1, &_EC_NIST_CHAR2_571K.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2896
{ NID_sect571r1, &_EC_NIST_CHAR2_571B.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2899
{ NID_X9_62_c2pnb163v1, &_EC_X9_62_CHAR2_163V1.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2901
{ NID_X9_62_c2pnb163v2, &_EC_X9_62_CHAR2_163V2.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2903
{ NID_X9_62_c2pnb163v3, &_EC_X9_62_CHAR2_163V3.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2905
{ NID_X9_62_c2pnb176v1, &_EC_X9_62_CHAR2_176V1.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2907
{ NID_X9_62_c2tnb191v1, &_EC_X9_62_CHAR2_191V1.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2909
{ NID_X9_62_c2tnb191v2, &_EC_X9_62_CHAR2_191V2.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2911
{ NID_X9_62_c2tnb191v3, &_EC_X9_62_CHAR2_191V3.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2913
{ NID_X9_62_c2pnb208w1, &_EC_X9_62_CHAR2_208W1.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2915
{ NID_X9_62_c2tnb239v1, &_EC_X9_62_CHAR2_239V1.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2917
{ NID_X9_62_c2tnb239v2, &_EC_X9_62_CHAR2_239V2.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2919
{ NID_X9_62_c2tnb239v3, &_EC_X9_62_CHAR2_239V3.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2921
{ NID_X9_62_c2pnb272w1, &_EC_X9_62_CHAR2_272W1.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2923
{ NID_X9_62_c2pnb304w1, &_EC_X9_62_CHAR2_304W1.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2925
{ NID_X9_62_c2tnb359v1, &_EC_X9_62_CHAR2_359V1.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2927
{ NID_X9_62_c2pnb368w1, &_EC_X9_62_CHAR2_368W1.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2929
{ NID_X9_62_c2tnb431r1, &_EC_X9_62_CHAR2_431R1.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2935
{ NID_wap_wsg_idm_ecid_wtls1, &_EC_WTLS_1.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2937
{ NID_wap_wsg_idm_ecid_wtls3, &_EC_NIST_CHAR2_163K.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2939
{ NID_wap_wsg_idm_ecid_wtls4, &_EC_SECG_CHAR2_113R1.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2941
{ NID_wap_wsg_idm_ecid_wtls5, &_EC_X9_62_CHAR2_163V1.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2944
{ NID_wap_wsg_idm_ecid_wtls6, &_EC_SECG_PRIME_112R1.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2946
{ NID_wap_wsg_idm_ecid_wtls7, &_EC_SECG_PRIME_160R2.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2948
{ NID_wap_wsg_idm_ecid_wtls8, &_EC_WTLS_8.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2950
{ NID_wap_wsg_idm_ecid_wtls9, &_EC_WTLS_9.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2953
{ NID_wap_wsg_idm_ecid_wtls10, &_EC_NIST_CHAR2_233K.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2955
{ NID_wap_wsg_idm_ecid_wtls11, &_EC_NIST_CHAR2_233B.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2958
{ NID_wap_wsg_idm_ecid_wtls12, &_EC_WTLS_12.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2962
{ NID_ipsec3, &_EC_IPSEC_155_ID3.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2965
{ NID_ipsec4, &_EC_IPSEC_185_ID4.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2970
{ NID_brainpoolP160r1, &_EC_brainpoolP160r1.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2972
{ NID_brainpoolP160t1, &_EC_brainpoolP160t1.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2974
{ NID_brainpoolP192r1, &_EC_brainpoolP192r1.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2976
{ NID_brainpoolP192t1, &_EC_brainpoolP192t1.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2978
{ NID_brainpoolP224r1, &_EC_brainpoolP224r1.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2980
{ NID_brainpoolP224t1, &_EC_brainpoolP224t1.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2982
{ NID_brainpoolP256r1, &_EC_brainpoolP256r1.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2984
{ NID_brainpoolP256t1, &_EC_brainpoolP256t1.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2986
{ NID_brainpoolP320r1, &_EC_brainpoolP320r1.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2988
{ NID_brainpoolP320t1, &_EC_brainpoolP320t1.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2990
{ NID_brainpoolP384r1, &_EC_brainpoolP384r1.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2992
{ NID_brainpoolP384t1, &_EC_brainpoolP384t1.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2994
{ NID_brainpoolP512r1, &_EC_brainpoolP512r1.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2996
{ NID_brainpoolP512t1, &_EC_brainpoolP512t1.h, 0,
crypto/openssl/crypto/ec/ec_curve.c
2999
{ NID_sm2, &_EC_sm2p256v1.h,
crypto/openssl/crypto/ec/ec_curve.c
314
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
34
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
349
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
393
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
421
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
449
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
477
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
505
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
531
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
559
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
587
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
613
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
62
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
645
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
678
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
704
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
730
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
768
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
796
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
824
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
852
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
881
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
908
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
934
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
96
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
960
EC_CURVE_DATA h;
crypto/openssl/crypto/ec/ec_curve.c
994
EC_CURVE_DATA h;
crypto/openssl/crypto/encode_decode/encoder_lib.c
855
if (ffc->h != 0) {
crypto/openssl/crypto/encode_decode/encoder_lib.c
856
if (BIO_printf(out, "h: %d\n", ffc->h) <= 0)
crypto/openssl/crypto/engine/eng_openssl.c
198
#include <openssl/rc4.h>
crypto/openssl/crypto/evp/bio_b64.c
17
static int b64_write(BIO *h, const char *buf, int num);
crypto/openssl/crypto/evp/bio_b64.c
18
static int b64_read(BIO *h, char *buf, int size);
crypto/openssl/crypto/evp/bio_b64.c
19
static int b64_puts(BIO *h, const char *str);
crypto/openssl/crypto/evp/bio_b64.c
20
static long b64_ctrl(BIO *h, int cmd, long arg1, void *arg2);
crypto/openssl/crypto/evp/bio_b64.c
21
static int b64_new(BIO *h);
crypto/openssl/crypto/evp/bio_b64.c
23
static long b64_callback_ctrl(BIO *h, int cmd, BIO_info_cb *fp);
crypto/openssl/crypto/evp/bio_enc.c
19
static int enc_write(BIO *h, const char *buf, int num);
crypto/openssl/crypto/evp/bio_enc.c
20
static int enc_read(BIO *h, char *buf, int size);
crypto/openssl/crypto/evp/bio_enc.c
21
static long enc_ctrl(BIO *h, int cmd, long arg1, void *arg2);
crypto/openssl/crypto/evp/bio_enc.c
22
static int enc_new(BIO *h);
crypto/openssl/crypto/evp/bio_enc.c
24
static long enc_callback_ctrl(BIO *h, int cmd, BIO_info_cb *fps);
crypto/openssl/crypto/evp/bio_md.c
20
static int md_write(BIO *h, char const *buf, int num);
crypto/openssl/crypto/evp/bio_md.c
21
static int md_read(BIO *h, char *buf, int size);
crypto/openssl/crypto/evp/bio_md.c
22
static int md_gets(BIO *h, char *str, int size);
crypto/openssl/crypto/evp/bio_md.c
23
static long md_ctrl(BIO *h, int cmd, long arg1, void *arg2);
crypto/openssl/crypto/evp/bio_md.c
24
static int md_new(BIO *h);
crypto/openssl/crypto/evp/bio_md.c
26
static long md_callback_ctrl(BIO *h, int cmd, BIO_info_cb *fp);
crypto/openssl/crypto/evp/bio_ok.c
83
static int ok_write(BIO *h, const char *buf, int num);
crypto/openssl/crypto/evp/bio_ok.c
84
static int ok_read(BIO *h, char *buf, int size);
crypto/openssl/crypto/evp/bio_ok.c
85
static long ok_ctrl(BIO *h, int cmd, long arg1, void *arg2);
crypto/openssl/crypto/evp/bio_ok.c
86
static int ok_new(BIO *h);
crypto/openssl/crypto/evp/bio_ok.c
88
static long ok_callback_ctrl(BIO *h, int cmd, BIO_info_cb *fp);
crypto/openssl/crypto/evp/e_aes.c
931
unsigned char h[16];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
217
ctx->A[i] = key->md.h[0];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
218
ctx->B[i] = key->md.h[1];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
219
ctx->C[i] = key->md.h[2];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
220
ctx->D[i] = key->md.h[3];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
221
ctx->E[i] = key->md.h[4];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
222
ctx->F[i] = key->md.h[5];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
223
ctx->G[i] = key->md.h[6];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
224
ctx->H[i] = key->md.h[7];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
325
ctx->A[i] = key->tail.h[0];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
327
ctx->B[i] = key->tail.h[1];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
329
ctx->C[i] = key->tail.h[2];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
331
ctx->D[i] = key->tail.h[3];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
333
ctx->E[i] = key->tail.h[4];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
335
ctx->F[i] = key->tail.h[5];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
337
ctx->G[i] = key->tail.h[6];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
339
ctx->H[i] = key->tail.h[7];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
344
ctx->A[i] = key->tail.h[0];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
346
ctx->B[i] = key->tail.h[1];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
348
ctx->C[i] = key->tail.h[2];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
350
ctx->D[i] = key->tail.h[3];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
352
ctx->E[i] = key->tail.h[4];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
354
ctx->F[i] = key->tail.h[5];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
356
ctx->G[i] = key->tail.h[6];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
358
ctx->H[i] = key->tail.h[7];
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
608
pmac->u[0] |= key->md.h[0] & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
609
pmac->u[1] |= key->md.h[1] & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
610
pmac->u[2] |= key->md.h[2] & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
611
pmac->u[3] |= key->md.h[3] & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
612
pmac->u[4] |= key->md.h[4] & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
613
pmac->u[5] |= key->md.h[5] & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
614
pmac->u[6] |= key->md.h[6] & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
615
pmac->u[7] |= key->md.h[7] & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
627
pmac->u[0] |= key->md.h[0] & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
628
pmac->u[1] |= key->md.h[1] & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
629
pmac->u[2] |= key->md.h[2] & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
630
pmac->u[3] |= key->md.h[3] & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
631
pmac->u[4] |= key->md.h[4] & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
632
pmac->u[5] |= key->md.h[5] & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
633
pmac->u[6] |= key->md.h[6] & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
634
pmac->u[7] |= key->md.h[7] & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
642
pmac->u[0] |= key->md.h[0] & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
643
pmac->u[1] |= key->md.h[1] & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
644
pmac->u[2] |= key->md.h[2] & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
645
pmac->u[3] |= key->md.h[3] & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
646
pmac->u[4] |= key->md.h[4] & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
647
pmac->u[5] |= key->md.h[5] & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
648
pmac->u[6] |= key->md.h[6] & mask;
crypto/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
649
pmac->u[7] |= key->md.h[7] & mask;
crypto/openssl/crypto/evp/evp_local.h
298
#include <openssl/types.h>
crypto/openssl/crypto/evp/evp_local.h
299
#include <openssl/core.h>
crypto/openssl/crypto/ffc/ffc_backend.c
72
ffc->h = i;
crypto/openssl/crypto/ffc/ffc_params.c
115
params->h = index;
crypto/openssl/crypto/ffc/ffc_params.c
201
dst->h = src->h;
crypto/openssl/crypto/ffc/ffc_params.c
239
if (!ossl_param_build_set_int(bld, params, OSSL_PKEY_PARAM_FFC_H, ffc->h))
crypto/openssl/crypto/ffc/ffc_params_generate.c
100
int h = 2;
crypto/openssl/crypto/ffc/ffc_params_generate.c
1027
params->h = hret;
crypto/openssl/crypto/ffc/ffc_params_generate.c
103
if (!BN_set_word(hbn, h))
crypto/openssl/crypto/ffc/ffc_params_generate.c
117
++h;
crypto/openssl/crypto/ffc/ffc_params_generate.c
119
*hret = h;
crypto/openssl/crypto/ffc/ffc_params_generate.c
787
params->h = hret;
crypto/openssl/crypto/hashtable/hashtable.c
284
static int ossl_ht_flush_internal(HT *h)
crypto/openssl/crypto/hashtable/hashtable.c
303
oldmd = ossl_rcu_deref(&h->md);
crypto/openssl/crypto/hashtable/hashtable.c
304
ossl_rcu_assign_ptr(&h->md, &newmd);
crypto/openssl/crypto/hashtable/hashtable.c
307
h->wpd.value_count = 0;
crypto/openssl/crypto/hashtable/hashtable.c
308
h->wpd.neighborhood_len = DEFAULT_NEIGH_LEN;
crypto/openssl/crypto/hashtable/hashtable.c
310
ossl_rcu_call(h->lock, free_oldmd, oldmd);
crypto/openssl/crypto/hashtable/hashtable.c
311
h->wpd.need_sync = 1;
crypto/openssl/crypto/hashtable/hashtable.c
315
int ossl_ht_flush(HT *h)
crypto/openssl/crypto/hashtable/hashtable.c
317
return ossl_ht_flush_internal(h);
crypto/openssl/crypto/hashtable/hashtable.c
320
void ossl_ht_free(HT *h)
crypto/openssl/crypto/hashtable/hashtable.c
322
if (h == NULL)
crypto/openssl/crypto/hashtable/hashtable.c
325
ossl_ht_write_lock(h);
crypto/openssl/crypto/hashtable/hashtable.c
326
ossl_ht_flush_internal(h);
crypto/openssl/crypto/hashtable/hashtable.c
327
ossl_ht_write_unlock(h);
crypto/openssl/crypto/hashtable/hashtable.c
329
CRYPTO_THREAD_lock_free(h->atomic_lock);
crypto/openssl/crypto/hashtable/hashtable.c
330
ossl_rcu_lock_free(h->lock);
crypto/openssl/crypto/hashtable/hashtable.c
331
OPENSSL_free(h->md->neighborhood_ptr_to_free);
crypto/openssl/crypto/hashtable/hashtable.c
332
OPENSSL_free(h->md);
crypto/openssl/crypto/hashtable/hashtable.c
333
OPENSSL_free(h);
crypto/openssl/crypto/hashtable/hashtable.c
337
size_t ossl_ht_count(HT *h)
crypto/openssl/crypto/hashtable/hashtable.c
341
count = h->wpd.value_count;
crypto/openssl/crypto/hashtable/hashtable.c
345
void ossl_ht_foreach_until(HT *h, int (*cb)(HT_VALUE *obj, void *arg),
crypto/openssl/crypto/hashtable/hashtable.c
351
md = ossl_rcu_deref(&h->md);
crypto/openssl/crypto/hashtable/hashtable.c
365
HT_VALUE_LIST *ossl_ht_filter(HT *h, size_t max_len,
crypto/openssl/crypto/hashtable/hashtable.c
384
md = ossl_rcu_deref(&h->md);
crypto/openssl/crypto/hashtable/hashtable.c
422
static int grow_hashtable(HT *h, size_t oldsize)
crypto/openssl/crypto/hashtable/hashtable.c
425
struct ht_mutable_data_st *oldmd = ossl_rcu_deref(&h->md);
crypto/openssl/crypto/hashtable/hashtable.c
433
if (h->config.lockless_reads)
crypto/openssl/crypto/hashtable/hashtable.c
453
for (oldi = 0; oldi < h->wpd.neighborhood_len; oldi++) {
crypto/openssl/crypto/hashtable/hashtable.c
474
return grow_hashtable(h, newsize);
crypto/openssl/crypto/hashtable/hashtable.c
482
h->wpd.neighborhood_len = newsize;
crypto/openssl/crypto/hashtable/hashtable.c
487
ossl_rcu_assign_ptr(&h->md, &newmd);
crypto/openssl/crypto/hashtable/hashtable.c
488
ossl_rcu_call(h->lock, free_old_neigh_table, oldmd);
crypto/openssl/crypto/hashtable/hashtable.c
489
h->wpd.need_sync = 1;
crypto/openssl/crypto/hashtable/hashtable.c
505
HT_VALUE *h = (HT_VALUE *)arg;
crypto/openssl/crypto/hashtable/hashtable.c
513
OPENSSL_free(h);
crypto/openssl/crypto/hashtable/hashtable.c
530
static int ossl_ht_insert_locked(HT *h, uint64_t hash,
crypto/openssl/crypto/hashtable/hashtable.c
534
struct ht_mutable_data_st *md = h->md;
crypto/openssl/crypto/hashtable/hashtable.c
541
int lockless_reads = h->config.lockless_reads;
crypto/openssl/crypto/hashtable/hashtable.c
556
&ihash, h->atomic_lock))
crypto/openssl/crypto/hashtable/hashtable.c
565
hash, h->atomic_lock))
crypto/openssl/crypto/hashtable/hashtable.c
570
ossl_rcu_call(h->lock, free_old_ht_value, *olddata);
crypto/openssl/crypto/hashtable/hashtable.c
571
h->wpd.need_sync = 1;
crypto/openssl/crypto/hashtable/hashtable.c
586
hash, h->atomic_lock))
crypto/openssl/crypto/hashtable/hashtable.c
588
h->wpd.value_count++;
crypto/openssl/crypto/hashtable/hashtable.c
594
static struct ht_internal_value_st *alloc_new_value(HT *h, HT_KEY *key,
crypto/openssl/crypto/hashtable/hashtable.c
601
if (h->config.collision_check == 1)
crypto/openssl/crypto/hashtable/hashtable.c
609
tmp->ht = h;
crypto/openssl/crypto/hashtable/hashtable.c
613
if (h->config.collision_check) {
crypto/openssl/crypto/hashtable/hashtable.c
627
int ossl_ht_insert(HT *h, HT_KEY *key, HT_VALUE *data, HT_VALUE **olddata)
crypto/openssl/crypto/hashtable/hashtable.c
637
newval = alloc_new_value(h, key, data->value, data->type_id);
crypto/openssl/crypto/hashtable/hashtable.c
645
hash = h->config.ht_hash_fn(key->keybuf, key->keysize);
crypto/openssl/crypto/hashtable/hashtable.c
648
(rc = ossl_ht_insert_locked(h, hash, newval, olddata)) == -1
crypto/openssl/crypto/hashtable/hashtable.c
651
if (!grow_hashtable(h, h->wpd.neighborhood_len)) {
crypto/openssl/crypto/hashtable/hashtable.c
663
HT_VALUE *ossl_ht_get(HT *h, HT_KEY *key)
crypto/openssl/crypto/hashtable/hashtable.c
672
int lockless_reads = h->config.lockless_reads;
crypto/openssl/crypto/hashtable/hashtable.c
674
hash = h->config.ht_hash_fn(key->keybuf, key->keysize);
crypto/openssl/crypto/hashtable/hashtable.c
676
md = ossl_rcu_deref(&h->md);
crypto/openssl/crypto/hashtable/hashtable.c
689
&ehash, h->atomic_lock))
crypto/openssl/crypto/hashtable/hashtable.c
711
int ossl_ht_delete(HT *h, HT_KEY *key)
crypto/openssl/crypto/hashtable/hashtable.c
720
if (h->config.lockless_reads)
crypto/openssl/crypto/hashtable/hashtable.c
723
hash = h->config.ht_hash_fn(key->keybuf, key->keysize);
crypto/openssl/crypto/hashtable/hashtable.c
725
neigh_idx = hash & h->md->neighborhood_mask;
crypto/openssl/crypto/hashtable/hashtable.c
726
PREFETCH_NEIGHBORHOOD(h->md->neighborhoods[neigh_idx]);
crypto/openssl/crypto/hashtable/hashtable.c
728
v = (struct ht_internal_value_st *)h->md->neighborhoods[neigh_idx].entries[j].value;
crypto/openssl/crypto/hashtable/hashtable.c
731
if (compare_hash(hash, h->md->neighborhoods[neigh_idx].entries[j].hash)
crypto/openssl/crypto/hashtable/hashtable.c
733
if (!CRYPTO_atomic_store(&h->md->neighborhoods[neigh_idx].entries[j].hash,
crypto/openssl/crypto/hashtable/hashtable.c
734
0, h->atomic_lock))
crypto/openssl/crypto/hashtable/hashtable.c
736
h->wpd.value_count--;
crypto/openssl/crypto/hashtable/hashtable.c
737
ossl_rcu_assign_ptr(&h->md->neighborhoods[neigh_idx].entries[j].value,
crypto/openssl/crypto/hashtable/hashtable.c
744
ossl_rcu_call(h->lock, free_old_entry, v);
crypto/openssl/crypto/hashtable/hashtable.c
745
h->wpd.need_sync = 1;
crypto/openssl/crypto/hmac/hmac_local.h
41
uint32_t h[8];
crypto/openssl/crypto/hmac/hmac_local.h
46
uint64_t h[8];
crypto/openssl/crypto/hmac/hmac_s390x.c
133
OPENSSL_cleanse(ctx->plat.s390x.param.hmac_224_256.h,
crypto/openssl/crypto/hmac/hmac_s390x.c
134
sizeof(ctx->plat.s390x.param.hmac_224_256.h));
crypto/openssl/crypto/hmac/hmac_s390x.c
139
OPENSSL_cleanse(ctx->plat.s390x.param.hmac_384_512.h,
crypto/openssl/crypto/hmac/hmac_s390x.c
140
sizeof(ctx->plat.s390x.param.hmac_384_512.h));
crypto/openssl/crypto/hmac/hmac_s390x.c
268
result = &ctx->plat.s390x.param.hmac_224_256.h[0];
crypto/openssl/crypto/hmac/hmac_s390x.c
272
result = &ctx->plat.s390x.param.hmac_224_256.h[0];
crypto/openssl/crypto/hmac/hmac_s390x.c
276
result = &ctx->plat.s390x.param.hmac_384_512.h[0];
crypto/openssl/crypto/hmac/hmac_s390x.c
280
result = &ctx->plat.s390x.param.hmac_384_512.h[0];
crypto/openssl/crypto/lhash/lhash.c
63
OPENSSL_LHASH *OPENSSL_LH_new(OPENSSL_LH_HASHFUNC h, OPENSSL_LH_COMPFUNC c)
crypto/openssl/crypto/lhash/lhash.c
72
ret->hash = ((h == NULL) ? (OPENSSL_LH_HASHFUNC)OPENSSL_LH_strhash : h);
crypto/openssl/crypto/mdc2/mdc2dgst.c
107
p = c->h;
crypto/openssl/crypto/mdc2/mdc2dgst.c
129
memcpy(md, (char *)c->h, MDC2_BLOCK);
crypto/openssl/crypto/mdc2/mdc2dgst.c
40
memset(&(c->h[0]), 0x52, MDC2_BLOCK);
crypto/openssl/crypto/mdc2/mdc2dgst.c
91
c->h[0] = (c->h[0] & 0x9f) | 0x40;
crypto/openssl/crypto/mdc2/mdc2dgst.c
94
DES_set_odd_parity(&c->h);
crypto/openssl/crypto/mdc2/mdc2dgst.c
95
DES_set_key_unchecked(&c->h, &k);
crypto/openssl/crypto/ml_dsa/ml_dsa_poly.h
151
poly_use_hint(const POLY *h, const POLY *r, uint32_t gamma2, POLY *out)
crypto/openssl/crypto/ml_dsa/ml_dsa_poly.h
156
out->coeff[i] = ossl_ml_dsa_key_compress_use_hint(h->coeff[i],
crypto/openssl/crypto/ml_dsa/ml_dsa_vector.h
247
vector_use_hint(const VECTOR *h, const VECTOR *r, uint32_t gamma2, VECTOR *out)
crypto/openssl/crypto/ml_dsa/ml_dsa_vector.h
252
poly_use_hint(h->poly + i, r->poly + i, gamma2, out->poly + i);
crypto/openssl/crypto/objects/obj_dat.c
708
int l, h, i = 0, c = 0;
crypto/openssl/crypto/poly1305/poly1305.c
127
st->h[0] = 0;
crypto/openssl/crypto/poly1305/poly1305.c
128
st->h[1] = 0;
crypto/openssl/crypto/poly1305/poly1305.c
129
st->h[2] = 0;
crypto/openssl/crypto/poly1305/poly1305.c
150
h0 = st->h[0];
crypto/openssl/crypto/poly1305/poly1305.c
151
h1 = st->h[1];
crypto/openssl/crypto/poly1305/poly1305.c
152
h2 = st->h[2];
crypto/openssl/crypto/poly1305/poly1305.c
194
st->h[0] = h0;
crypto/openssl/crypto/poly1305/poly1305.c
195
st->h[1] = h1;
crypto/openssl/crypto/poly1305/poly1305.c
196
st->h[2] = h2;
crypto/openssl/crypto/poly1305/poly1305.c
208
h0 = st->h[0];
crypto/openssl/crypto/poly1305/poly1305.c
209
h1 = st->h[1];
crypto/openssl/crypto/poly1305/poly1305.c
210
h2 = st->h[2];
crypto/openssl/crypto/poly1305/poly1305.c
244
u32 h[5];
crypto/openssl/crypto/poly1305/poly1305.c
262
st->h[0] = 0;
crypto/openssl/crypto/poly1305/poly1305.c
263
st->h[1] = 0;
crypto/openssl/crypto/poly1305/poly1305.c
264
st->h[2] = 0;
crypto/openssl/crypto/poly1305/poly1305.c
265
st->h[3] = 0;
crypto/openssl/crypto/poly1305/poly1305.c
266
st->h[4] = 0;
crypto/openssl/crypto/poly1305/poly1305.c
293
h0 = st->h[0];
crypto/openssl/crypto/poly1305/poly1305.c
294
h1 = st->h[1];
crypto/openssl/crypto/poly1305/poly1305.c
295
h2 = st->h[2];
crypto/openssl/crypto/poly1305/poly1305.c
296
h3 = st->h[3];
crypto/openssl/crypto/poly1305/poly1305.c
297
h4 = st->h[4];
crypto/openssl/crypto/poly1305/poly1305.c
343
st->h[0] = h0;
crypto/openssl/crypto/poly1305/poly1305.c
344
st->h[1] = h1;
crypto/openssl/crypto/poly1305/poly1305.c
345
st->h[2] = h2;
crypto/openssl/crypto/poly1305/poly1305.c
346
st->h[3] = h3;
crypto/openssl/crypto/poly1305/poly1305.c
347
st->h[4] = h4;
crypto/openssl/crypto/poly1305/poly1305.c
359
h0 = st->h[0];
crypto/openssl/crypto/poly1305/poly1305.c
360
h1 = st->h[1];
crypto/openssl/crypto/poly1305/poly1305.c
361
h2 = st->h[2];
crypto/openssl/crypto/poly1305/poly1305.c
362
h3 = st->h[3];
crypto/openssl/crypto/poly1305/poly1305.c
363
h4 = st->h[4];
crypto/openssl/crypto/poly1305/poly1305.c
99
u64 h[3];
crypto/openssl/crypto/poly1305/poly1305_base2_44.c
123
st->h[0] = h0;
crypto/openssl/crypto/poly1305/poly1305_base2_44.c
124
st->h[1] = h1;
crypto/openssl/crypto/poly1305/poly1305_base2_44.c
125
st->h[2] = h2;
crypto/openssl/crypto/poly1305/poly1305_base2_44.c
136
h0 = st->h[0];
crypto/openssl/crypto/poly1305/poly1305_base2_44.c
137
h1 = st->h[1];
crypto/openssl/crypto/poly1305/poly1305_base2_44.c
138
h2 = st->h[2];
crypto/openssl/crypto/poly1305/poly1305_base2_44.c
24
u64 h[3];
crypto/openssl/crypto/poly1305/poly1305_base2_44.c
56
st->h[0] = 0;
crypto/openssl/crypto/poly1305/poly1305_base2_44.c
57
st->h[1] = 0;
crypto/openssl/crypto/poly1305/poly1305_base2_44.c
58
st->h[2] = 0;
crypto/openssl/crypto/poly1305/poly1305_base2_44.c
91
h0 = st->h[0];
crypto/openssl/crypto/poly1305/poly1305_base2_44.c
92
h1 = st->h[1];
crypto/openssl/crypto/poly1305/poly1305_base2_44.c
93
h2 = st->h[2];
crypto/openssl/crypto/poly1305/poly1305_ieee754.c
119
st->h[0].d = TWO(52)*TWO0;
crypto/openssl/crypto/poly1305/poly1305_ieee754.c
120
st->h[1].d = TWO(52)*TWO32;
crypto/openssl/crypto/poly1305/poly1305_ieee754.c
121
st->h[2].d = TWO(52)*TWO64;
crypto/openssl/crypto/poly1305/poly1305_ieee754.c
122
st->h[3].d = TWO(52)*TWO96;
crypto/openssl/crypto/poly1305/poly1305_ieee754.c
124
st->h[0].u = EXP(52 + 0);
crypto/openssl/crypto/poly1305/poly1305_ieee754.c
125
st->h[1].u = EXP(52 + 32);
crypto/openssl/crypto/poly1305/poly1305_ieee754.c
126
st->h[2].u = EXP(52 + 64);
crypto/openssl/crypto/poly1305/poly1305_ieee754.c
127
st->h[3].u = EXP(52 + 96);
crypto/openssl/crypto/poly1305/poly1305_ieee754.c
279
h0lo = st->h[0].d - TWO(52) * TWO0;
crypto/openssl/crypto/poly1305/poly1305_ieee754.c
280
h1lo = st->h[1].d - TWO(52) * TWO32;
crypto/openssl/crypto/poly1305/poly1305_ieee754.c
281
h2lo = st->h[2].d - TWO(52) * TWO64;
crypto/openssl/crypto/poly1305/poly1305_ieee754.c
282
h3lo = st->h[3].d - TWO(52) * TWO96;
crypto/openssl/crypto/poly1305/poly1305_ieee754.c
404
st->h[1].d = x1 + TWO(52) * TWO32;
crypto/openssl/crypto/poly1305/poly1305_ieee754.c
405
st->h[2].d = x2 + TWO(52) * TWO64;
crypto/openssl/crypto/poly1305/poly1305_ieee754.c
406
st->h[3].d = x3 + TWO(52) * TWO96;
crypto/openssl/crypto/poly1305/poly1305_ieee754.c
407
st->h[0].d = x0 + TWO(52) * TWO0;
crypto/openssl/crypto/poly1305/poly1305_ieee754.c
436
h0 = st->h[0].u & 0x000fffffffffffffULL;
crypto/openssl/crypto/poly1305/poly1305_ieee754.c
437
h1 = st->h[1].u & 0x000fffffffffffffULL;
crypto/openssl/crypto/poly1305/poly1305_ieee754.c
438
h2 = st->h[2].u & 0x000fffffffffffffULL;
crypto/openssl/crypto/poly1305/poly1305_ieee754.c
439
h3 = st->h[3].u & 0x000fffffffffffffULL;
crypto/openssl/crypto/poly1305/poly1305_ieee754.c
92
elem64 h[4];
crypto/openssl/crypto/sha/sha256.c
101
ll = (c)->h[nn]; \
crypto/openssl/crypto/sha/sha256.c
107
ll = (c)->h[nn]; \
crypto/openssl/crypto/sha/sha256.c
115
ll = (c)->h[nn]; \
crypto/openssl/crypto/sha/sha256.c
219
unsigned MD32_REG_T a, b, c, d, e, f, g, h, s0, s1, T1, T2;
crypto/openssl/crypto/sha/sha256.c
226
a = ctx->h[0];
crypto/openssl/crypto/sha/sha256.c
227
b = ctx->h[1];
crypto/openssl/crypto/sha/sha256.c
228
c = ctx->h[2];
crypto/openssl/crypto/sha/sha256.c
229
d = ctx->h[3];
crypto/openssl/crypto/sha/sha256.c
230
e = ctx->h[4];
crypto/openssl/crypto/sha/sha256.c
231
f = ctx->h[5];
crypto/openssl/crypto/sha/sha256.c
232
g = ctx->h[6];
crypto/openssl/crypto/sha/sha256.c
233
h = ctx->h[7];
crypto/openssl/crypto/sha/sha256.c
238
T1 += h + Sigma1(e) + Ch(e, f, g) + K256[i];
crypto/openssl/crypto/sha/sha256.c
240
h = g;
crypto/openssl/crypto/sha/sha256.c
257
T1 += h + Sigma1(e) + Ch(e, f, g) + K256[i];
crypto/openssl/crypto/sha/sha256.c
259
h = g;
crypto/openssl/crypto/sha/sha256.c
269
ctx->h[0] += a;
crypto/openssl/crypto/sha/sha256.c
270
ctx->h[1] += b;
crypto/openssl/crypto/sha/sha256.c
271
ctx->h[2] += c;
crypto/openssl/crypto/sha/sha256.c
272
ctx->h[3] += d;
crypto/openssl/crypto/sha/sha256.c
273
ctx->h[4] += e;
crypto/openssl/crypto/sha/sha256.c
274
ctx->h[5] += f;
crypto/openssl/crypto/sha/sha256.c
275
ctx->h[6] += g;
crypto/openssl/crypto/sha/sha256.c
276
ctx->h[7] += h;
crypto/openssl/crypto/sha/sha256.c
282
#define ROUND_00_15(i, a, b, c, d, e, f, g, h) \
crypto/openssl/crypto/sha/sha256.c
284
T1 += h + Sigma1(e) + Ch(e, f, g) + K256[i]; \
crypto/openssl/crypto/sha/sha256.c
285
h = Sigma0(a) + Maj(a, b, c); \
crypto/openssl/crypto/sha/sha256.c
287
h += T1; \
crypto/openssl/crypto/sha/sha256.c
290
#define ROUND_16_63(i, a, b, c, d, e, f, g, h, X) \
crypto/openssl/crypto/sha/sha256.c
297
ROUND_00_15(i, a, b, c, d, e, f, g, h); \
crypto/openssl/crypto/sha/sha256.c
30
c->h[0] = 0xc1059ed8UL;
crypto/openssl/crypto/sha/sha256.c
307
unsigned MD32_REG_T a, b, c, d, e, f, g, h, s0, s1, T1;
crypto/openssl/crypto/sha/sha256.c
31
c->h[1] = 0x367cd507UL;
crypto/openssl/crypto/sha/sha256.c
315
a = ctx->h[0];
crypto/openssl/crypto/sha/sha256.c
316
b = ctx->h[1];
crypto/openssl/crypto/sha/sha256.c
317
c = ctx->h[2];
crypto/openssl/crypto/sha/sha256.c
318
d = ctx->h[3];
crypto/openssl/crypto/sha/sha256.c
319
e = ctx->h[4];
crypto/openssl/crypto/sha/sha256.c
32
c->h[2] = 0x3070dd17UL;
crypto/openssl/crypto/sha/sha256.c
320
f = ctx->h[5];
crypto/openssl/crypto/sha/sha256.c
321
g = ctx->h[6];
crypto/openssl/crypto/sha/sha256.c
322
h = ctx->h[7];
crypto/openssl/crypto/sha/sha256.c
329
ROUND_00_15(0, a, b, c, d, e, f, g, h);
crypto/openssl/crypto/sha/sha256.c
33
c->h[3] = 0xf70e5939UL;
crypto/openssl/crypto/sha/sha256.c
331
ROUND_00_15(1, h, a, b, c, d, e, f, g);
crypto/openssl/crypto/sha/sha256.c
333
ROUND_00_15(2, g, h, a, b, c, d, e, f);
crypto/openssl/crypto/sha/sha256.c
335
ROUND_00_15(3, f, g, h, a, b, c, d, e);
crypto/openssl/crypto/sha/sha256.c
337
ROUND_00_15(4, e, f, g, h, a, b, c, d);
crypto/openssl/crypto/sha/sha256.c
339
ROUND_00_15(5, d, e, f, g, h, a, b, c);
crypto/openssl/crypto/sha/sha256.c
34
c->h[4] = 0xffc00b31UL;
crypto/openssl/crypto/sha/sha256.c
341
ROUND_00_15(6, c, d, e, f, g, h, a, b);
crypto/openssl/crypto/sha/sha256.c
343
ROUND_00_15(7, b, c, d, e, f, g, h, a);
crypto/openssl/crypto/sha/sha256.c
345
ROUND_00_15(8, a, b, c, d, e, f, g, h);
crypto/openssl/crypto/sha/sha256.c
347
ROUND_00_15(9, h, a, b, c, d, e, f, g);
crypto/openssl/crypto/sha/sha256.c
349
ROUND_00_15(10, g, h, a, b, c, d, e, f);
crypto/openssl/crypto/sha/sha256.c
35
c->h[5] = 0x68581511UL;
crypto/openssl/crypto/sha/sha256.c
351
ROUND_00_15(11, f, g, h, a, b, c, d, e);
crypto/openssl/crypto/sha/sha256.c
353
ROUND_00_15(12, e, f, g, h, a, b, c, d);
crypto/openssl/crypto/sha/sha256.c
355
ROUND_00_15(13, d, e, f, g, h, a, b, c);
crypto/openssl/crypto/sha/sha256.c
357
ROUND_00_15(14, c, d, e, f, g, h, a, b);
crypto/openssl/crypto/sha/sha256.c
359
ROUND_00_15(15, b, c, d, e, f, g, h, a);
crypto/openssl/crypto/sha/sha256.c
36
c->h[6] = 0x64f98fa7UL;
crypto/openssl/crypto/sha/sha256.c
367
ROUND_00_15(0, a, b, c, d, e, f, g, h);
crypto/openssl/crypto/sha/sha256.c
37
c->h[7] = 0xbefa4fa4UL;
crypto/openssl/crypto/sha/sha256.c
370
ROUND_00_15(1, h, a, b, c, d, e, f, g);
crypto/openssl/crypto/sha/sha256.c
373
ROUND_00_15(2, g, h, a, b, c, d, e, f);
crypto/openssl/crypto/sha/sha256.c
376
ROUND_00_15(3, f, g, h, a, b, c, d, e);
crypto/openssl/crypto/sha/sha256.c
379
ROUND_00_15(4, e, f, g, h, a, b, c, d);
crypto/openssl/crypto/sha/sha256.c
382
ROUND_00_15(5, d, e, f, g, h, a, b, c);
crypto/openssl/crypto/sha/sha256.c
385
ROUND_00_15(6, c, d, e, f, g, h, a, b);
crypto/openssl/crypto/sha/sha256.c
388
ROUND_00_15(7, b, c, d, e, f, g, h, a);
crypto/openssl/crypto/sha/sha256.c
391
ROUND_00_15(8, a, b, c, d, e, f, g, h);
crypto/openssl/crypto/sha/sha256.c
394
ROUND_00_15(9, h, a, b, c, d, e, f, g);
crypto/openssl/crypto/sha/sha256.c
397
ROUND_00_15(10, g, h, a, b, c, d, e, f);
crypto/openssl/crypto/sha/sha256.c
400
ROUND_00_15(11, f, g, h, a, b, c, d, e);
crypto/openssl/crypto/sha/sha256.c
403
ROUND_00_15(12, e, f, g, h, a, b, c, d);
crypto/openssl/crypto/sha/sha256.c
406
ROUND_00_15(13, d, e, f, g, h, a, b, c);
crypto/openssl/crypto/sha/sha256.c
409
ROUND_00_15(14, c, d, e, f, g, h, a, b);
crypto/openssl/crypto/sha/sha256.c
412
ROUND_00_15(15, b, c, d, e, f, g, h, a);
crypto/openssl/crypto/sha/sha256.c
416
ROUND_16_63(i + 0, a, b, c, d, e, f, g, h, X);
crypto/openssl/crypto/sha/sha256.c
417
ROUND_16_63(i + 1, h, a, b, c, d, e, f, g, X);
crypto/openssl/crypto/sha/sha256.c
418
ROUND_16_63(i + 2, g, h, a, b, c, d, e, f, X);
crypto/openssl/crypto/sha/sha256.c
419
ROUND_16_63(i + 3, f, g, h, a, b, c, d, e, X);
crypto/openssl/crypto/sha/sha256.c
420
ROUND_16_63(i + 4, e, f, g, h, a, b, c, d, X);
crypto/openssl/crypto/sha/sha256.c
421
ROUND_16_63(i + 5, d, e, f, g, h, a, b, c, X);
crypto/openssl/crypto/sha/sha256.c
422
ROUND_16_63(i + 6, c, d, e, f, g, h, a, b, X);
crypto/openssl/crypto/sha/sha256.c
423
ROUND_16_63(i + 7, b, c, d, e, f, g, h, a, X);
crypto/openssl/crypto/sha/sha256.c
426
ctx->h[0] += a;
crypto/openssl/crypto/sha/sha256.c
427
ctx->h[1] += b;
crypto/openssl/crypto/sha/sha256.c
428
ctx->h[2] += c;
crypto/openssl/crypto/sha/sha256.c
429
ctx->h[3] += d;
crypto/openssl/crypto/sha/sha256.c
430
ctx->h[4] += e;
crypto/openssl/crypto/sha/sha256.c
431
ctx->h[5] += f;
crypto/openssl/crypto/sha/sha256.c
432
ctx->h[6] += g;
crypto/openssl/crypto/sha/sha256.c
433
ctx->h[7] += h;
crypto/openssl/crypto/sha/sha256.c
45
c->h[0] = 0x6a09e667UL;
crypto/openssl/crypto/sha/sha256.c
46
c->h[1] = 0xbb67ae85UL;
crypto/openssl/crypto/sha/sha256.c
47
c->h[2] = 0x3c6ef372UL;
crypto/openssl/crypto/sha/sha256.c
48
c->h[3] = 0xa54ff53aUL;
crypto/openssl/crypto/sha/sha256.c
49
c->h[4] = 0x510e527fUL;
crypto/openssl/crypto/sha/sha256.c
50
c->h[5] = 0x9b05688cUL;
crypto/openssl/crypto/sha/sha256.c
51
c->h[6] = 0x1f83d9abUL;
crypto/openssl/crypto/sha/sha256.c
52
c->h[7] = 0x5be0cd19UL;
crypto/openssl/crypto/sha/sha256.c
95
ll = (c)->h[nn]; \
crypto/openssl/crypto/sha/sha512.c
100
c->h[6] = U64(0x2b0199fc2c85b8aa);
crypto/openssl/crypto/sha/sha512.c
101
c->h[7] = U64(0x0eb72ddc81c52ca2);
crypto/openssl/crypto/sha/sha512.c
112
c->h[0] = U64(0xcbbb9d5dc1059ed8);
crypto/openssl/crypto/sha/sha512.c
113
c->h[1] = U64(0x629a292a367cd507);
crypto/openssl/crypto/sha/sha512.c
114
c->h[2] = U64(0x9159015a3070dd17);
crypto/openssl/crypto/sha/sha512.c
115
c->h[3] = U64(0x152fecd8f70e5939);
crypto/openssl/crypto/sha/sha512.c
116
c->h[4] = U64(0x67332667ffc00b31);
crypto/openssl/crypto/sha/sha512.c
117
c->h[5] = U64(0x8eb44a8768581511);
crypto/openssl/crypto/sha/sha512.c
118
c->h[6] = U64(0xdb0c2e0d64f98fa7);
crypto/openssl/crypto/sha/sha512.c
119
c->h[7] = U64(0x47b5481dbefa4fa4);
crypto/openssl/crypto/sha/sha512.c
130
c->h[0] = U64(0x6a09e667f3bcc908);
crypto/openssl/crypto/sha/sha512.c
131
c->h[1] = U64(0xbb67ae8584caa73b);
crypto/openssl/crypto/sha/sha512.c
132
c->h[2] = U64(0x3c6ef372fe94f82b);
crypto/openssl/crypto/sha/sha512.c
133
c->h[3] = U64(0xa54ff53a5f1d36f1);
crypto/openssl/crypto/sha/sha512.c
134
c->h[4] = U64(0x510e527fade682d1);
crypto/openssl/crypto/sha/sha512.c
135
c->h[5] = U64(0x9b05688c2b3e6c1f);
crypto/openssl/crypto/sha/sha512.c
136
c->h[6] = U64(0x1f83d9abfb41bd6b);
crypto/openssl/crypto/sha/sha512.c
137
c->h[7] = U64(0x5be0cd19137e2179);
crypto/openssl/crypto/sha/sha512.c
200
SHA_LONG64 t = c->h[n];
crypto/openssl/crypto/sha/sha512.c
216
SHA_LONG64 t = c->h[SHA224_DIGEST_LENGTH / 8];
crypto/openssl/crypto/sha/sha512.c
226
SHA_LONG64 t = c->h[n];
crypto/openssl/crypto/sha/sha512.c
240
SHA_LONG64 t = c->h[n];
crypto/openssl/crypto/sha/sha512.c
254
SHA_LONG64 t = c->h[n];
crypto/openssl/crypto/sha/sha512.c
594
A = ctx->h[0];
crypto/openssl/crypto/sha/sha512.c
595
F[1] = ctx->h[1];
crypto/openssl/crypto/sha/sha512.c
596
F[2] = ctx->h[2];
crypto/openssl/crypto/sha/sha512.c
597
F[3] = ctx->h[3];
crypto/openssl/crypto/sha/sha512.c
598
E = ctx->h[4];
crypto/openssl/crypto/sha/sha512.c
599
F[5] = ctx->h[5];
crypto/openssl/crypto/sha/sha512.c
600
F[6] = ctx->h[6];
crypto/openssl/crypto/sha/sha512.c
601
F[7] = ctx->h[7];
crypto/openssl/crypto/sha/sha512.c
630
ctx->h[0] += A;
crypto/openssl/crypto/sha/sha512.c
631
ctx->h[1] += F[1];
crypto/openssl/crypto/sha/sha512.c
632
ctx->h[2] += F[2];
crypto/openssl/crypto/sha/sha512.c
633
ctx->h[3] += F[3];
crypto/openssl/crypto/sha/sha512.c
634
ctx->h[4] += E;
crypto/openssl/crypto/sha/sha512.c
635
ctx->h[5] += F[5];
crypto/openssl/crypto/sha/sha512.c
636
ctx->h[6] += F[6];
crypto/openssl/crypto/sha/sha512.c
637
ctx->h[7] += F[7];
crypto/openssl/crypto/sha/sha512.c
649
SHA_LONG64 a, b, c, d, e, f, g, h, s0, s1, T1, T2;
crypto/openssl/crypto/sha/sha512.c
655
a = ctx->h[0];
crypto/openssl/crypto/sha/sha512.c
656
b = ctx->h[1];
crypto/openssl/crypto/sha/sha512.c
657
c = ctx->h[2];
crypto/openssl/crypto/sha/sha512.c
658
d = ctx->h[3];
crypto/openssl/crypto/sha/sha512.c
659
e = ctx->h[4];
crypto/openssl/crypto/sha/sha512.c
660
f = ctx->h[5];
crypto/openssl/crypto/sha/sha512.c
661
g = ctx->h[6];
crypto/openssl/crypto/sha/sha512.c
662
h = ctx->h[7];
crypto/openssl/crypto/sha/sha512.c
670
T1 += h + Sigma1(e) + Ch(e, f, g) + K512[i];
crypto/openssl/crypto/sha/sha512.c
672
h = g;
crypto/openssl/crypto/sha/sha512.c
689
T1 += h + Sigma1(e) + Ch(e, f, g) + K512[i];
crypto/openssl/crypto/sha/sha512.c
691
h = g;
crypto/openssl/crypto/sha/sha512.c
701
ctx->h[0] += a;
crypto/openssl/crypto/sha/sha512.c
702
ctx->h[1] += b;
crypto/openssl/crypto/sha/sha512.c
703
ctx->h[2] += c;
crypto/openssl/crypto/sha/sha512.c
704
ctx->h[3] += d;
crypto/openssl/crypto/sha/sha512.c
705
ctx->h[4] += e;
crypto/openssl/crypto/sha/sha512.c
706
ctx->h[5] += f;
crypto/openssl/crypto/sha/sha512.c
707
ctx->h[6] += g;
crypto/openssl/crypto/sha/sha512.c
708
ctx->h[7] += h;
crypto/openssl/crypto/sha/sha512.c
715
#define ROUND_00_15(i, a, b, c, d, e, f, g, h) \
crypto/openssl/crypto/sha/sha512.c
717
T1 += h + Sigma1(e) + Ch(e, f, g) + K512[i]; \
crypto/openssl/crypto/sha/sha512.c
718
h = Sigma0(a) + Maj(a, b, c); \
crypto/openssl/crypto/sha/sha512.c
720
h += T1; \
crypto/openssl/crypto/sha/sha512.c
723
#define ROUND_16_80(i, j, a, b, c, d, e, f, g, h, X) \
crypto/openssl/crypto/sha/sha512.c
730
ROUND_00_15(i + j, a, b, c, d, e, f, g, h); \
crypto/openssl/crypto/sha/sha512.c
741
SHA_LONG64 a, b, c, d, e, f, g, h, s0, s1, T1;
crypto/openssl/crypto/sha/sha512.c
747
a = ctx->h[0];
crypto/openssl/crypto/sha/sha512.c
748
b = ctx->h[1];
crypto/openssl/crypto/sha/sha512.c
749
c = ctx->h[2];
crypto/openssl/crypto/sha/sha512.c
750
d = ctx->h[3];
crypto/openssl/crypto/sha/sha512.c
751
e = ctx->h[4];
crypto/openssl/crypto/sha/sha512.c
752
f = ctx->h[5];
crypto/openssl/crypto/sha/sha512.c
753
g = ctx->h[6];
crypto/openssl/crypto/sha/sha512.c
754
h = ctx->h[7];
crypto/openssl/crypto/sha/sha512.c
758
ROUND_00_15(0, a, b, c, d, e, f, g, h);
crypto/openssl/crypto/sha/sha512.c
76
c->h[0] = U64(0x8c3d37c819544da2);
crypto/openssl/crypto/sha/sha512.c
760
ROUND_00_15(1, h, a, b, c, d, e, f, g);
crypto/openssl/crypto/sha/sha512.c
762
ROUND_00_15(2, g, h, a, b, c, d, e, f);
crypto/openssl/crypto/sha/sha512.c
764
ROUND_00_15(3, f, g, h, a, b, c, d, e);
crypto/openssl/crypto/sha/sha512.c
766
ROUND_00_15(4, e, f, g, h, a, b, c, d);
crypto/openssl/crypto/sha/sha512.c
768
ROUND_00_15(5, d, e, f, g, h, a, b, c);
crypto/openssl/crypto/sha/sha512.c
77
c->h[1] = U64(0x73e1996689dcd4d6);
crypto/openssl/crypto/sha/sha512.c
770
ROUND_00_15(6, c, d, e, f, g, h, a, b);
crypto/openssl/crypto/sha/sha512.c
772
ROUND_00_15(7, b, c, d, e, f, g, h, a);
crypto/openssl/crypto/sha/sha512.c
774
ROUND_00_15(8, a, b, c, d, e, f, g, h);
crypto/openssl/crypto/sha/sha512.c
776
ROUND_00_15(9, h, a, b, c, d, e, f, g);
crypto/openssl/crypto/sha/sha512.c
778
ROUND_00_15(10, g, h, a, b, c, d, e, f);
crypto/openssl/crypto/sha/sha512.c
78
c->h[2] = U64(0x1dfab7ae32ff9c82);
crypto/openssl/crypto/sha/sha512.c
780
ROUND_00_15(11, f, g, h, a, b, c, d, e);
crypto/openssl/crypto/sha/sha512.c
782
ROUND_00_15(12, e, f, g, h, a, b, c, d);
crypto/openssl/crypto/sha/sha512.c
784
ROUND_00_15(13, d, e, f, g, h, a, b, c);
crypto/openssl/crypto/sha/sha512.c
786
ROUND_00_15(14, c, d, e, f, g, h, a, b);
crypto/openssl/crypto/sha/sha512.c
788
ROUND_00_15(15, b, c, d, e, f, g, h, a);
crypto/openssl/crypto/sha/sha512.c
79
c->h[3] = U64(0x679dd514582f9fcf);
crypto/openssl/crypto/sha/sha512.c
791
ROUND_00_15(0, a, b, c, d, e, f, g, h);
crypto/openssl/crypto/sha/sha512.c
793
ROUND_00_15(1, h, a, b, c, d, e, f, g);
crypto/openssl/crypto/sha/sha512.c
795
ROUND_00_15(2, g, h, a, b, c, d, e, f);
crypto/openssl/crypto/sha/sha512.c
797
ROUND_00_15(3, f, g, h, a, b, c, d, e);
crypto/openssl/crypto/sha/sha512.c
799
ROUND_00_15(4, e, f, g, h, a, b, c, d);
crypto/openssl/crypto/sha/sha512.c
80
c->h[4] = U64(0x0f6d2b697bd44da8);
crypto/openssl/crypto/sha/sha512.c
801
ROUND_00_15(5, d, e, f, g, h, a, b, c);
crypto/openssl/crypto/sha/sha512.c
803
ROUND_00_15(6, c, d, e, f, g, h, a, b);
crypto/openssl/crypto/sha/sha512.c
805
ROUND_00_15(7, b, c, d, e, f, g, h, a);
crypto/openssl/crypto/sha/sha512.c
807
ROUND_00_15(8, a, b, c, d, e, f, g, h);
crypto/openssl/crypto/sha/sha512.c
809
ROUND_00_15(9, h, a, b, c, d, e, f, g);
crypto/openssl/crypto/sha/sha512.c
81
c->h[5] = U64(0x77e36f7304c48942);
crypto/openssl/crypto/sha/sha512.c
811
ROUND_00_15(10, g, h, a, b, c, d, e, f);
crypto/openssl/crypto/sha/sha512.c
813
ROUND_00_15(11, f, g, h, a, b, c, d, e);
crypto/openssl/crypto/sha/sha512.c
815
ROUND_00_15(12, e, f, g, h, a, b, c, d);
crypto/openssl/crypto/sha/sha512.c
817
ROUND_00_15(13, d, e, f, g, h, a, b, c);
crypto/openssl/crypto/sha/sha512.c
819
ROUND_00_15(14, c, d, e, f, g, h, a, b);
crypto/openssl/crypto/sha/sha512.c
82
c->h[6] = U64(0x3f9d85a86a1d36c8);
crypto/openssl/crypto/sha/sha512.c
821
ROUND_00_15(15, b, c, d, e, f, g, h, a);
crypto/openssl/crypto/sha/sha512.c
825
ROUND_16_80(i, 0, a, b, c, d, e, f, g, h, X);
crypto/openssl/crypto/sha/sha512.c
826
ROUND_16_80(i, 1, h, a, b, c, d, e, f, g, X);
crypto/openssl/crypto/sha/sha512.c
827
ROUND_16_80(i, 2, g, h, a, b, c, d, e, f, X);
crypto/openssl/crypto/sha/sha512.c
828
ROUND_16_80(i, 3, f, g, h, a, b, c, d, e, X);
crypto/openssl/crypto/sha/sha512.c
829
ROUND_16_80(i, 4, e, f, g, h, a, b, c, d, X);
crypto/openssl/crypto/sha/sha512.c
83
c->h[7] = U64(0x1112e6ad91d692a1);
crypto/openssl/crypto/sha/sha512.c
830
ROUND_16_80(i, 5, d, e, f, g, h, a, b, c, X);
crypto/openssl/crypto/sha/sha512.c
831
ROUND_16_80(i, 6, c, d, e, f, g, h, a, b, X);
crypto/openssl/crypto/sha/sha512.c
832
ROUND_16_80(i, 7, b, c, d, e, f, g, h, a, X);
crypto/openssl/crypto/sha/sha512.c
833
ROUND_16_80(i, 8, a, b, c, d, e, f, g, h, X);
crypto/openssl/crypto/sha/sha512.c
834
ROUND_16_80(i, 9, h, a, b, c, d, e, f, g, X);
crypto/openssl/crypto/sha/sha512.c
835
ROUND_16_80(i, 10, g, h, a, b, c, d, e, f, X);
crypto/openssl/crypto/sha/sha512.c
836
ROUND_16_80(i, 11, f, g, h, a, b, c, d, e, X);
crypto/openssl/crypto/sha/sha512.c
837
ROUND_16_80(i, 12, e, f, g, h, a, b, c, d, X);
crypto/openssl/crypto/sha/sha512.c
838
ROUND_16_80(i, 13, d, e, f, g, h, a, b, c, X);
crypto/openssl/crypto/sha/sha512.c
839
ROUND_16_80(i, 14, c, d, e, f, g, h, a, b, X);
crypto/openssl/crypto/sha/sha512.c
840
ROUND_16_80(i, 15, b, c, d, e, f, g, h, a, X);
crypto/openssl/crypto/sha/sha512.c
843
ctx->h[0] += a;
crypto/openssl/crypto/sha/sha512.c
844
ctx->h[1] += b;
crypto/openssl/crypto/sha/sha512.c
845
ctx->h[2] += c;
crypto/openssl/crypto/sha/sha512.c
846
ctx->h[3] += d;
crypto/openssl/crypto/sha/sha512.c
847
ctx->h[4] += e;
crypto/openssl/crypto/sha/sha512.c
848
ctx->h[5] += f;
crypto/openssl/crypto/sha/sha512.c
849
ctx->h[6] += g;
crypto/openssl/crypto/sha/sha512.c
850
ctx->h[7] += h;
crypto/openssl/crypto/sha/sha512.c
94
c->h[0] = U64(0x22312194fc2bf72c);
crypto/openssl/crypto/sha/sha512.c
95
c->h[1] = U64(0x9f555fa3c84c64c2);
crypto/openssl/crypto/sha/sha512.c
96
c->h[2] = U64(0x2393b86b6f53b151);
crypto/openssl/crypto/sha/sha512.c
97
c->h[3] = U64(0x963877195940eabd);
crypto/openssl/crypto/sha/sha512.c
98
c->h[4] = U64(0x96283ee2a88effe3);
crypto/openssl/crypto/sha/sha512.c
99
c->h[5] = U64(0xbe5e1e2553863992);
crypto/openssl/crypto/slh_dsa/slh_dsa.c
352
tree_id_len = ((params->h - params->hm + 7) >> 3); /* 7 or 8 bytes */
crypto/openssl/crypto/slh_dsa/slh_dsa.c
367
tree_id_mask = (~(uint64_t)0) >> (64 - (params->h - params->hm));
crypto/openssl/crypto/slh_dsa/slh_params.h
27
uint32_t h; /* The total height of the tree (63, 64, 66, 68). #keypairs = 2^h */
crypto/openssl/crypto/slh_dsa/slh_xmss.c
109
for (h = 0; h < hm; ++h) {
crypto/openssl/crypto/slh_dsa/slh_xmss.c
111
|| !ossl_slh_xmss_node(ctx, sk_seed, id ^ 1, h, pk_seed, adrs,
crypto/openssl/crypto/slh_dsa/slh_xmss.c
36
uint32_t node_id, uint32_t h,
crypto/openssl/crypto/slh_dsa/slh_xmss.c
43
if (h == 0) {
crypto/openssl/crypto/slh_dsa/slh_xmss.c
53
if (!ossl_slh_xmss_node(ctx, sk_seed, 2 * node_id, h - 1, pk_seed, adrs,
crypto/openssl/crypto/slh_dsa/slh_xmss.c
55
|| !ossl_slh_xmss_node(ctx, sk_seed, 2 * node_id + 1, h - 1,
crypto/openssl/crypto/slh_dsa/slh_xmss.c
59
adrsf->set_tree_height(adrs, h);
crypto/openssl/crypto/slh_dsa/slh_xmss.c
93
uint32_t h, hm = key->params->hm;
crypto/openssl/crypto/thread/arch/thread_win.c
347
static uint32_t obj_wait(HANDLE h, OSSL_TIME deadline)
crypto/openssl/crypto/thread/arch/thread_win.c
354
return WaitForSingleObject(h, timeout);
crypto/openssl/crypto/x509/by_dir.c
233
unsigned long h;
crypto/openssl/crypto/x509/by_dir.c
260
h = X509_NAME_hash_ex(name, libctx, propq, &i);
crypto/openssl/crypto/x509/by_dir.c
275
htmp.hash = h;
crypto/openssl/crypto/x509/by_dir.c
314
"%s%08lx.%s%d", ent->dir, h, postfix, k);
crypto/openssl/crypto/x509/by_dir.c
319
"%s%c%08lx.%s%d", ent->dir, c, h, postfix, k);
crypto/openssl/crypto/x509/by_dir.c
374
htmp.hash = h;
crypto/openssl/crypto/x509/by_dir.c
385
hent->hash = h;
crypto/openssl/crypto/x509/v3_timespec.c
162
int64_t h = 0;
crypto/openssl/crypto/x509/v3_timespec.c
166
if (!dt->hour || !ASN1_INTEGER_get_int64(&h, dt->hour))
crypto/openssl/crypto/x509/v3_timespec.c
173
(long long int)h, (long long int)m, (long long int)s)
crypto/openssl/crypto/x509/x509_lu.c
534
static int x509_object_idx_cnt(STACK_OF(X509_OBJECT) *h, X509_LOOKUP_TYPE type,
crypto/openssl/crypto/x509/x509_lu.c
558
return sk_X509_OBJECT_find_all(h, &stmp, pnmatch);
crypto/openssl/crypto/x509/x509_lu.c
562
int X509_OBJECT_idx_by_subject(STACK_OF(X509_OBJECT) *h, X509_LOOKUP_TYPE type,
crypto/openssl/crypto/x509/x509_lu.c
565
return x509_object_idx_cnt(h, type, name, NULL);
crypto/openssl/crypto/x509/x509_lu.c
569
X509_OBJECT *X509_OBJECT_retrieve_by_subject(STACK_OF(X509_OBJECT) *h,
crypto/openssl/crypto/x509/x509_lu.c
573
int idx = X509_OBJECT_idx_by_subject(h, type, name);
crypto/openssl/crypto/x509/x509_lu.c
577
return sk_X509_OBJECT_value(h, idx);
crypto/openssl/crypto/x509/x509_lu.c
749
X509_OBJECT *X509_OBJECT_retrieve_match(STACK_OF(X509_OBJECT) *h,
crypto/openssl/crypto/x509/x509_lu.c
755
idx = sk_X509_OBJECT_find(h, x);
crypto/openssl/crypto/x509/x509_lu.c
759
return sk_X509_OBJECT_value(h, idx);
crypto/openssl/crypto/x509/x509_lu.c
760
for (i = idx, num = sk_X509_OBJECT_num(h); i < num; i++) {
crypto/openssl/crypto/x509/x509_lu.c
761
obj = sk_X509_OBJECT_value(h, i);
crypto/openssl/include/crypto/riscv_arch.h
17
#if __has_include(<asm/hwprobe.h>)
crypto/openssl/include/internal/ffc.h
112
int h; /* loop counter for unverifiable g */
crypto/openssl/include/internal/hashtable.h
199
pfx ossl_unused int ossl_ht_##name##_##vtype##_insert(HT *h, HT_KEY *key, \
crypto/openssl/include/internal/hashtable.h
209
rc = ossl_ht_insert(h, key, &inval, olddata == NULL ? NULL : &oval); \
crypto/openssl/include/internal/hashtable.h
225
pfx ossl_unused vtype *ossl_unused ossl_ht_##name##_##vtype##_get(HT *h, \
crypto/openssl/include/internal/hashtable.h
230
vv = ossl_ht_get(h, key); \
crypto/openssl/include/internal/hashtable.h
245
pfx ossl_unused int ossl_ht_##name##_##vtype##_type(HT_VALUE *h) \
crypto/openssl/include/internal/hashtable.h
247
return h->type_id == &name##_##vtype##_id; \
crypto/openssl/include/internal/hashtable.h
251
int ossl_ht_##name##_##vtype##_insert(HT *h, HT_KEY *key, vtype *data, \
crypto/openssl/include/internal/hashtable.h
254
vtype *ossl_unused ossl_ht_##name##_##vtype##_get(HT *h, \
crypto/openssl/include/internal/hashtable.h
258
int ossl_ht_##name##_##vtype##_type(HT_VALUE *h);
crypto/openssl/include/openssl/lhash.h
95
OPENSSL_LHASH *OPENSSL_LH_new(OPENSSL_LH_HASHFUNC h, OPENSSL_LH_COMPFUNC c);
crypto/openssl/include/openssl/mdc2.h
37
DES_cblock h, hh;
crypto/openssl/include/openssl/pem.h
444
#include <openssl/symhacks.h>
crypto/openssl/include/openssl/sha.h
111
SHA_LONG64 h[8];
crypto/openssl/include/openssl/sha.h
63
SHA_LONG h[8];
crypto/openssl/include/openssl/x509_vfy.h
486
int X509_OBJECT_idx_by_subject(STACK_OF(X509_OBJECT) *h, X509_LOOKUP_TYPE type,
crypto/openssl/include/openssl/x509_vfy.h
488
X509_OBJECT *X509_OBJECT_retrieve_by_subject(STACK_OF(X509_OBJECT) *h,
crypto/openssl/include/openssl/x509_vfy.h
491
X509_OBJECT *X509_OBJECT_retrieve_match(STACK_OF(X509_OBJECT) *h,
crypto/openssl/ms/uplink.c
40
HANDLE h;
crypto/openssl/ms/uplink.c
62
if ((h = apphandle) == NULL) {
crypto/openssl/ms/uplink.c
63
if ((h = GetModuleHandle(NULL)) == NULL) {
crypto/openssl/ms/uplink.c
68
apphandle = h;
crypto/openssl/ms/uplink.c
70
if ((h = apphandle) == (HMODULE)-1) /* revalidate */
crypto/openssl/ms/uplink.c
76
applink = (void **(*)())GetProcAddress(h, "OPENSSL_Applink");
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
192
mctx->A[i] = sctx->md.h[0];
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
193
mctx->B[i] = sctx->md.h[1];
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
194
mctx->C[i] = sctx->md.h[2];
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
195
mctx->D[i] = sctx->md.h[3];
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
196
mctx->E[i] = sctx->md.h[4];
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
197
mctx->F[i] = sctx->md.h[5];
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
198
mctx->G[i] = sctx->md.h[6];
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
199
mctx->H[i] = sctx->md.h[7];
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
300
mctx->A[i] = sctx->tail.h[0];
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
302
mctx->B[i] = sctx->tail.h[1];
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
304
mctx->C[i] = sctx->tail.h[2];
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
306
mctx->D[i] = sctx->tail.h[3];
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
308
mctx->E[i] = sctx->tail.h[4];
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
310
mctx->F[i] = sctx->tail.h[5];
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
312
mctx->G[i] = sctx->tail.h[6];
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
314
mctx->H[i] = sctx->tail.h[7];
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
319
mctx->A[i] = sctx->tail.h[0];
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
321
mctx->B[i] = sctx->tail.h[1];
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
323
mctx->C[i] = sctx->tail.h[2];
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
325
mctx->D[i] = sctx->tail.h[3];
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
327
mctx->E[i] = sctx->tail.h[4];
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
329
mctx->F[i] = sctx->tail.h[5];
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
331
mctx->G[i] = sctx->tail.h[6];
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
333
mctx->H[i] = sctx->tail.h[7];
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
580
pmac->u[0] |= sctx->md.h[0] & mask;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
581
pmac->u[1] |= sctx->md.h[1] & mask;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
582
pmac->u[2] |= sctx->md.h[2] & mask;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
583
pmac->u[3] |= sctx->md.h[3] & mask;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
584
pmac->u[4] |= sctx->md.h[4] & mask;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
585
pmac->u[5] |= sctx->md.h[5] & mask;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
586
pmac->u[6] |= sctx->md.h[6] & mask;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
587
pmac->u[7] |= sctx->md.h[7] & mask;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
599
pmac->u[0] |= sctx->md.h[0] & mask;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
600
pmac->u[1] |= sctx->md.h[1] & mask;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
601
pmac->u[2] |= sctx->md.h[2] & mask;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
602
pmac->u[3] |= sctx->md.h[3] & mask;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
603
pmac->u[4] |= sctx->md.h[4] & mask;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
604
pmac->u[5] |= sctx->md.h[5] & mask;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
605
pmac->u[6] |= sctx->md.h[6] & mask;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
606
pmac->u[7] |= sctx->md.h[7] & mask;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
614
pmac->u[0] |= sctx->md.h[0] & mask;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
615
pmac->u[1] |= sctx->md.h[1] & mask;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
616
pmac->u[2] |= sctx->md.h[2] & mask;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
617
pmac->u[3] |= sctx->md.h[3] & mask;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
618
pmac->u[4] |= sctx->md.h[4] & mask;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
619
pmac->u[5] |= sctx->md.h[5] & mask;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
620
pmac->u[6] |= sctx->md.h[6] & mask;
crypto/openssl/providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c
621
pmac->u[7] |= sctx->md.h[7] & mask;
crypto/openssl/providers/implementations/digests/blake2b_prov.c
184
v[i] = S->h[i];
crypto/openssl/providers/implementations/digests/blake2b_prov.c
247
S->h[i] = v[i] ^= v[i + 8] ^ S->h[i];
crypto/openssl/providers/implementations/digests/blake2b_prov.c
313
if ((c->outlen % sizeof(c->h[0])) == 0)
crypto/openssl/providers/implementations/digests/blake2b_prov.c
323
store64(target + sizeof(c->h[i]) * i, c->h[i]);
crypto/openssl/providers/implementations/digests/blake2b_prov.c
59
S->h[i] = blake2b_IV[i];
crypto/openssl/providers/implementations/digests/blake2b_prov.c
77
S->h[i] ^= load64(p + sizeof(S->h[i]) * i);
crypto/openssl/providers/implementations/digests/blake2s_prov.c
177
v[i] = S->h[i];
crypto/openssl/providers/implementations/digests/blake2s_prov.c
238
S->h[i] = v[i] ^= v[i + 8] ^ S->h[i];
crypto/openssl/providers/implementations/digests/blake2s_prov.c
304
if ((c->outlen % sizeof(c->h[0])) == 0)
crypto/openssl/providers/implementations/digests/blake2s_prov.c
314
store32(target + sizeof(c->h[i]) * i, c->h[i]);
crypto/openssl/providers/implementations/digests/blake2s_prov.c
54
S->h[i] = blake2s_IV[i];
crypto/openssl/providers/implementations/digests/blake2s_prov.c
72
S->h[i] ^= load32(&p[i * 4]);
crypto/openssl/providers/implementations/include/prov/blake2.h
47
uint32_t h[8];
crypto/openssl/providers/implementations/include/prov/blake2.h
72
uint64_t h[8];
crypto/openssl/providers/implementations/include/prov/ciphercommon_gcm.h
39
unsigned char h[16]; /* hash subkey */
crypto/openssl/providers/implementations/kdfs/kbkdf.c
210
unsigned char *k_i, size_t h, uint32_t l, int has_separator,
crypto/openssl/providers/implementations/kdfs/kbkdf.c
250
|| !EVP_MAC_final(ctx, k_i, NULL, h))
crypto/openssl/providers/implementations/kdfs/kbkdf.c
254
memcpy(ko + written, k_i, ossl_min(to_write, h));
crypto/openssl/providers/implementations/kdfs/kbkdf.c
255
written += h;
crypto/openssl/providers/implementations/kdfs/kbkdf.c
257
k_i_len = h;
crypto/openssl/providers/implementations/kdfs/kbkdf.c
300
size_t h = 0;
crypto/openssl/providers/implementations/kdfs/kbkdf.c
331
h = EVP_MAC_CTX_get_mac_size(ctx->ctx_init);
crypto/openssl/providers/implementations/kdfs/kbkdf.c
332
if (h == 0)
crypto/openssl/providers/implementations/kdfs/kbkdf.c
335
if (ctx->iv_len != 0 && ctx->iv_len != h) {
crypto/openssl/providers/implementations/kdfs/kbkdf.c
343
if ((uint64_t)(keylen / h) >= counter_max) {
crypto/openssl/providers/implementations/kdfs/kbkdf.c
352
k_i = OPENSSL_zalloc(h);
crypto/openssl/providers/implementations/kdfs/kbkdf.c
357
ctx->label_len, ctx->context, ctx->context_len, k_i, h, l,
crypto/openssl/providers/implementations/kdfs/kbkdf.c
362
OPENSSL_clear_free(k_i, h);
crypto/openssl/ssl/bio_ssl.c
21
static int ssl_write(BIO *h, const char *buf, size_t size, size_t *written);
crypto/openssl/ssl/bio_ssl.c
23
static int ssl_puts(BIO *h, const char *str);
crypto/openssl/ssl/bio_ssl.c
24
static long ssl_ctrl(BIO *h, int cmd, long arg1, void *arg2);
crypto/openssl/ssl/bio_ssl.c
25
static int ssl_new(BIO *h);
crypto/openssl/ssl/bio_ssl.c
27
static long ssl_callback_ctrl(BIO *h, int cmd, BIO_info_cb *fp);
crypto/openssl/ssl/priority_queue.c
105
struct pq_heap_st *h = pq->heap, t_h;
crypto/openssl/ssl/priority_queue.c
111
t_h = h[i];
crypto/openssl/ssl/priority_queue.c
112
h[i] = h[j];
crypto/openssl/ssl/priority_queue.c
113
h[j] = t_h;
crypto/openssl/ssl/priority_queue.c
115
e[h[i].index].posn = i;
crypto/openssl/ssl/priority_queue.c
116
e[h[j].index].posn = j;
crypto/openssl/ssl/priority_queue.c
121
struct pq_heap_st *h = pq->heap;
crypto/openssl/ssl/priority_queue.c
126
h[to] = h[from];
crypto/openssl/ssl/priority_queue.c
127
e[h[to].index].posn = to;
crypto/openssl/ssl/priority_queue.c
152
struct pq_heap_st *h = pq->heap;
crypto/openssl/ssl/priority_queue.c
159
if (pq->compare(h[n].data, h[p].data) >= 0)
crypto/openssl/ssl/priority_queue.c
172
struct pq_heap_st *h = pq->heap;
crypto/openssl/ssl/priority_queue.c
179
if (pq->compare(h[p].data, h[p + 1].data) > 0)
crypto/openssl/ssl/priority_queue.c
182
while (pq->htop > p && pq->compare(h[p].data, h[n].data) < 0) {
crypto/openssl/ssl/priority_queue.c
189
if (pq->compare(h[p].data, h[p + 1].data) > 0)
crypto/openssl/ssl/priority_queue.c
296
struct pq_heap_st *h;
crypto/openssl/ssl/priority_queue.c
311
h = OPENSSL_realloc(pq->heap, new_max * sizeof(*pq->heap));
crypto/openssl/ssl/priority_queue.c
312
if (h == NULL)
crypto/openssl/ssl/priority_queue.c
314
pq->heap = h;
crypto/openssl/ssl/quic/quic_ackm.c
101
tx_pkt_history_add_actual(struct tx_pkt_history_st *h,
crypto/openssl/ssl/quic/quic_ackm.c
1098
struct tx_pkt_history_st *h = get_tx_history(ackm, pkt->pkt_space);
crypto/openssl/ssl/quic/quic_ackm.c
110
existing = lh_OSSL_ACKM_TX_PKT_retrieve(h->map, pkt);
crypto/openssl/ssl/quic/quic_ackm.c
1115
if (tx_pkt_history_add(h, pkt) == 0)
crypto/openssl/ssl/quic/quic_ackm.c
1143
struct tx_pkt_history_st *h;
crypto/openssl/ssl/quic/quic_ackm.c
1154
h = get_tx_history(ackm, pkt_space);
crypto/openssl/ssl/quic/quic_ackm.c
1155
pkt = tx_pkt_history_by_pkt_num(h, ack->ack_ranges[0].end);
crypto/openssl/ssl/quic/quic_ackm.c
119
lh_OSSL_ACKM_TX_PKT_insert(h->map, pkt);
crypto/openssl/ssl/quic/quic_ackm.c
121
ossl_list_tx_history_insert_tail(&h->packets, pkt);
crypto/openssl/ssl/quic/quic_ackm.c
127
tx_pkt_history_add(struct tx_pkt_history_st *h,
crypto/openssl/ssl/quic/quic_ackm.c
130
if (!ossl_assert(pkt->pkt_num >= h->watermark))
crypto/openssl/ssl/quic/quic_ackm.c
133
if (tx_pkt_history_add_actual(h, pkt) < 1)
crypto/openssl/ssl/quic/quic_ackm.c
136
h->watermark = pkt->pkt_num + 1;
crypto/openssl/ssl/quic/quic_ackm.c
1366
struct tx_pkt_history_st *h;
crypto/openssl/ssl/quic/quic_ackm.c
1369
h = get_tx_history(ackm, pkt_space);
crypto/openssl/ssl/quic/quic_ackm.c
137
h->highest_sent = pkt->pkt_num;
crypto/openssl/ssl/quic/quic_ackm.c
1370
p = ossl_list_tx_history_tail(&h->packets);
crypto/openssl/ssl/quic/quic_ackm.c
143
tx_pkt_history_by_pkt_num(struct tx_pkt_history_st *h, uint64_t pkt_num)
crypto/openssl/ssl/quic/quic_ackm.c
1441
struct rx_pkt_history_st *h;
crypto/openssl/ssl/quic/quic_ackm.c
1443
h = get_rx_history(ackm, pkt_space);
crypto/openssl/ssl/quic/quic_ackm.c
1445
if (ossl_list_uint_set_is_empty(&h->set))
crypto/openssl/ssl/quic/quic_ackm.c
1461
&& ossl_list_uint_set_tail(&h->set)->range.start
crypto/openssl/ssl/quic/quic_ackm.c
1462
== ossl_list_uint_set_tail(&h->set)->range.end
crypto/openssl/ssl/quic/quic_ackm.c
1463
&& ossl_list_uint_set_tail(&h->set)->range.start
crypto/openssl/ssl/quic/quic_ackm.c
149
return lh_OSSL_ACKM_TX_PKT_retrieve(h->map, &key);
crypto/openssl/ssl/quic/quic_ackm.c
154
tx_pkt_history_remove(struct tx_pkt_history_st *h, uint64_t pkt_num)
crypto/openssl/ssl/quic/quic_ackm.c
1555
struct rx_pkt_history_st *h = get_rx_history(ackm, pkt->pkt_space);
crypto/openssl/ssl/quic/quic_ackm.c
1583
if (rx_pkt_history_add_pn(h, pkt->pkt_num) != 1)
crypto/openssl/ssl/quic/quic_ackm.c
159
pkt = tx_pkt_history_by_pkt_num(h, pkt_num);
crypto/openssl/ssl/quic/quic_ackm.c
1615
struct rx_pkt_history_st *h = get_rx_history(ackm, pkt_space);
crypto/openssl/ssl/quic/quic_ackm.c
1623
for (x = ossl_list_uint_set_tail(&h->set);
crypto/openssl/ssl/quic/quic_ackm.c
163
ossl_list_tx_history_remove(&h->packets, pkt);
crypto/openssl/ssl/quic/quic_ackm.c
164
lh_OSSL_ACKM_TX_PKT_delete(h->map, &key);
crypto/openssl/ssl/quic/quic_ackm.c
1673
struct rx_pkt_history_st *h = get_rx_history(ackm, pkt_space);
crypto/openssl/ssl/quic/quic_ackm.c
1675
return pn >= h->watermark && ossl_uint_set_query(&h->set, pn) == 0;
crypto/openssl/ssl/quic/quic_ackm.c
1700
struct tx_pkt_history_st *h = get_tx_history(ackm, pkt_space);
crypto/openssl/ssl/quic/quic_ackm.c
1703
pkt = tx_pkt_history_by_pkt_num(h, pn);
crypto/openssl/ssl/quic/quic_ackm.c
1707
tx_pkt_history_remove(h, pkt->pkt_num);
crypto/openssl/ssl/quic/quic_ackm.c
400
static int rx_pkt_history_bump_watermark(struct rx_pkt_history_st *h,
crypto/openssl/ssl/quic/quic_ackm.c
403
static void rx_pkt_history_init(struct rx_pkt_history_st *h)
crypto/openssl/ssl/quic/quic_ackm.c
405
ossl_uint_set_init(&h->set);
crypto/openssl/ssl/quic/quic_ackm.c
406
h->watermark = 0;
crypto/openssl/ssl/quic/quic_ackm.c
409
static void rx_pkt_history_destroy(struct rx_pkt_history_st *h)
crypto/openssl/ssl/quic/quic_ackm.c
411
ossl_uint_set_destroy(&h->set);
crypto/openssl/ssl/quic/quic_ackm.c
420
static void rx_pkt_history_trim_range_count(struct rx_pkt_history_st *h)
crypto/openssl/ssl/quic/quic_ackm.c
424
while (ossl_list_uint_set_num(&h->set) > MAX_RX_ACK_RANGES) {
crypto/openssl/ssl/quic/quic_ackm.c
425
UINT_RANGE r = ossl_list_uint_set_head(&h->set)->range;
crypto/openssl/ssl/quic/quic_ackm.c
431
ossl_uint_set_remove(&h->set, &r);
crypto/openssl/ssl/quic/quic_ackm.c
439
rx_pkt_history_bump_watermark(h, highest + 1);
crypto/openssl/ssl/quic/quic_ackm.c
442
static int rx_pkt_history_add_pn(struct rx_pkt_history_st *h,
crypto/openssl/ssl/quic/quic_ackm.c
450
if (pn < h->watermark)
crypto/openssl/ssl/quic/quic_ackm.c
453
if (ossl_uint_set_insert(&h->set, &r) != 1)
crypto/openssl/ssl/quic/quic_ackm.c
456
rx_pkt_history_trim_range_count(h);
crypto/openssl/ssl/quic/quic_ackm.c
460
static int rx_pkt_history_bump_watermark(struct rx_pkt_history_st *h,
crypto/openssl/ssl/quic/quic_ackm.c
465
if (watermark <= h->watermark)
crypto/openssl/ssl/quic/quic_ackm.c
471
if (ossl_uint_set_remove(&h->set, &r) != 1)
crypto/openssl/ssl/quic/quic_ackm.c
474
h->watermark = watermark;
crypto/openssl/ssl/quic/quic_ackm.c
679
struct tx_pkt_history_st *h;
crypto/openssl/ssl/quic/quic_ackm.c
695
h = get_tx_history(ackm, pkt_space);
crypto/openssl/ssl/quic/quic_ackm.c
697
pkt = tx_pkt_history_by_pkt_num(h, ack->ack_ranges[0].end);
crypto/openssl/ssl/quic/quic_ackm.c
699
pkt = ossl_list_tx_history_tail(&h->packets);
crypto/openssl/ssl/quic/quic_ackm.c
719
tx_pkt_history_remove(h, pkt->pkt_num);
crypto/openssl/ssl/quic/quic_ackm.c
757
struct tx_pkt_history_st *h;
crypto/openssl/ssl/quic/quic_ackm.c
777
h = get_tx_history(ackm, pkt_space);
crypto/openssl/ssl/quic/quic_ackm.c
778
pkt = ossl_list_tx_history_head(&h->packets);
crypto/openssl/ssl/quic/quic_ackm.c
79
tx_pkt_history_init(struct tx_pkt_history_st *h)
crypto/openssl/ssl/quic/quic_ackm.c
798
tx_pkt_history_remove(h, pkt->pkt_num);
crypto/openssl/ssl/quic/quic_ackm.c
81
ossl_list_tx_history_init(&h->packets);
crypto/openssl/ssl/quic/quic_ackm.c
82
h->watermark = 0;
crypto/openssl/ssl/quic/quic_ackm.c
83
h->highest_sent = 0;
crypto/openssl/ssl/quic/quic_ackm.c
85
h->map = lh_OSSL_ACKM_TX_PKT_new(tx_pkt_info_hash, tx_pkt_info_compare);
crypto/openssl/ssl/quic/quic_ackm.c
86
if (h->map == NULL)
crypto/openssl/ssl/quic/quic_ackm.c
93
tx_pkt_history_destroy(struct tx_pkt_history_st *h)
crypto/openssl/ssl/quic/quic_ackm.c
95
lh_OSSL_ACKM_TX_PKT_free(h->map);
crypto/openssl/ssl/quic/quic_ackm.c
96
h->map = NULL;
crypto/openssl/ssl/quic/quic_ackm.c
97
ossl_list_tx_history_init(&h->packets);
crypto/openssl/ssl/quic/quic_sstream.c
334
UINT_SET_ITEM *h = ossl_list_uint_set_head(&qss->acked_set);
crypto/openssl/ssl/quic/quic_sstream.c
352
if (h != NULL)
crypto/openssl/ssl/quic/quic_sstream.c
353
ring_buf_cpop_range(&qss->ring_buf, h->range.start, h->range.end,
crypto/openssl/ssl/quic/quic_txp.c
1010
&& pkt[enc_level].h.bytes_appended > 0);
crypto/openssl/ssl/quic/quic_txp.c
1715
if (!tx_helper_init(&pkt->h, txp, enc_level,
crypto/openssl/ssl/quic/quic_txp.c
1732
tx_helper_cleanup(&pkt->h);
crypto/openssl/ssl/quic/quic_txp.c
1757
if (pkt->h.enc_level == QUIC_ENC_LEVEL_INITIAL)
crypto/openssl/ssl/quic/quic_txp.c
1769
if (!ossl_qtx_calculate_ciphertext_payload_len(txp->args.qtx, pkt->h.enc_level,
crypto/openssl/ssl/quic/quic_txp.c
1770
pkt->h.bytes_appended,
crypto/openssl/ssl/quic/quic_txp.c
1779
pkt->geom.pkt_overhead = hdr_len + ciphertext_len - pkt->h.bytes_appended;
crypto/openssl/ssl/quic/quic_txp.c
1833
wpkt = tx_helper_begin(&pkt->h);
crypto/openssl/ssl/quic/quic_txp.c
1838
tx_helper_rollback(&pkt->h);
crypto/openssl/ssl/quic/quic_txp.c
1842
if (!tx_helper_commit(&pkt->h))
crypto/openssl/ssl/quic/quic_txp.c
185
static void tx_helper_rollback(struct tx_helper *h);
crypto/openssl/ssl/quic/quic_txp.c
189
static int tx_helper_init(struct tx_helper *h, OSSL_QUIC_TX_PACKETISER *txp,
crypto/openssl/ssl/quic/quic_txp.c
1909
const uint32_t enc_level = pkt->h.enc_level;
crypto/openssl/ssl/quic/quic_txp.c
1913
struct tx_helper *h = &pkt->h;
crypto/openssl/ssl/quic/quic_txp.c
1921
&& tx_helper_get_space_left(h) >= MIN_FRAME_SIZE_ACK
crypto/openssl/ssl/quic/quic_txp.c
1925
WPACKET *wpkt = tx_helper_begin(h);
crypto/openssl/ssl/quic/quic_txp.c
1937
if (!tx_helper_commit(h))
crypto/openssl/ssl/quic/quic_txp.c
1948
tx_helper_rollback(h);
crypto/openssl/ssl/quic/quic_txp.c
195
h->txp = txp;
crypto/openssl/ssl/quic/quic_txp.c
1954
WPACKET *wpkt = tx_helper_begin(h);
crypto/openssl/ssl/quic/quic_txp.c
196
h->enc_level = enc_level;
crypto/openssl/ssl/quic/quic_txp.c
197
h->max_ppl = max_ppl;
crypto/openssl/ssl/quic/quic_txp.c
198
h->reserve = reserve;
crypto/openssl/ssl/quic/quic_txp.c
1989
if (!tx_helper_commit(h))
crypto/openssl/ssl/quic/quic_txp.c
199
h->num_iovec = 0;
crypto/openssl/ssl/quic/quic_txp.c
1995
tx_helper_rollback(h);
crypto/openssl/ssl/quic/quic_txp.c
200
h->bytes_appended = 0;
crypto/openssl/ssl/quic/quic_txp.c
201
h->scratch_bytes = 0;
crypto/openssl/ssl/quic/quic_txp.c
202
h->reserve_allowed = 0;
crypto/openssl/ssl/quic/quic_txp.c
203
h->done_implicit = 0;
crypto/openssl/ssl/quic/quic_txp.c
204
h->txn.data = NULL;
crypto/openssl/ssl/quic/quic_txp.c
205
h->txn.active = 0;
crypto/openssl/ssl/quic/quic_txp.c
2069
static int determine_crypto_len(struct tx_helper *h,
crypto/openssl/ssl/quic/quic_txp.c
207
if (max_ppl > h->txp->el[enc_level].scratch_len) {
crypto/openssl/ssl/quic/quic_txp.c
2094
static int determine_stream_len(struct tx_helper *h,
crypto/openssl/ssl/quic/quic_txp.c
210
scratch = OPENSSL_realloc(h->txp->el[enc_level].scratch, max_ppl);
crypto/openssl/ssl/quic/quic_txp.c
2124
const uint32_t enc_level = pkt->h.enc_level;
crypto/openssl/ssl/quic/quic_txp.c
2127
struct tx_helper *h = &pkt->h;
crypto/openssl/ssl/quic/quic_txp.c
2138
space_left = tx_helper_get_space_left(h);
crypto/openssl/ssl/quic/quic_txp.c
214
h->txp->el[enc_level].scratch = scratch;
crypto/openssl/ssl/quic/quic_txp.c
215
h->txp->el[enc_level].scratch_len = max_ppl;
crypto/openssl/ssl/quic/quic_txp.c
2158
if (!determine_crypto_len(h, &chdr, space_left, &hdr_bytes,
crypto/openssl/ssl/quic/quic_txp.c
2174
if (!txp_el_ensure_iovec(&txp->el[enc_level], h->num_iovec + 3))
crypto/openssl/ssl/quic/quic_txp.c
2178
wpkt = tx_helper_begin(h);
crypto/openssl/ssl/quic/quic_txp.c
2183
tx_helper_rollback(h);
crypto/openssl/ssl/quic/quic_txp.c
2187
if (!tx_helper_commit(h))
crypto/openssl/ssl/quic/quic_txp.c
2192
tx_helper_append_iovec(h, iov[i].buf, iov[i].buf_len);
crypto/openssl/ssl/quic/quic_txp.c
2195
tx_helper_unrestrict(h); /* no longer need PING */
crypto/openssl/ssl/quic/quic_txp.c
221
static void tx_helper_cleanup(struct tx_helper *h)
crypto/openssl/ssl/quic/quic_txp.c
2216
struct tx_helper *h,
crypto/openssl/ssl/quic/quic_txp.c
223
if (h->txn.active)
crypto/openssl/ssl/quic/quic_txp.c
224
tx_helper_rollback(h);
crypto/openssl/ssl/quic/quic_txp.c
226
h->txp = NULL;
crypto/openssl/ssl/quic/quic_txp.c
2282
const uint32_t enc_level = pkt->h.enc_level;
crypto/openssl/ssl/quic/quic_txp.c
2284
struct tx_helper *h = &pkt->h;
crypto/openssl/ssl/quic/quic_txp.c
229
static void tx_helper_unrestrict(struct tx_helper *h)
crypto/openssl/ssl/quic/quic_txp.c
2306
if (!txp_plan_stream_chunk(txp, h, sstream, stream_txfc, i, &chunks[i],
crypto/openssl/ssl/quic/quic_txp.c
231
h->reserve_allowed = 1;
crypto/openssl/ssl/quic/quic_txp.c
2319
space_left = tx_helper_get_space_left(h);
crypto/openssl/ssl/quic/quic_txp.c
2333
if (!ossl_assert(!h->done_implicit))
crypto/openssl/ssl/quic/quic_txp.c
2345
if (!txp_plan_stream_chunk(txp, h, sstream, stream_txfc, i + 1,
crypto/openssl/ssl/quic/quic_txp.c
2355
if (!determine_stream_len(h, shdr, space_left,
crypto/openssl/ssl/quic/quic_txp.c
2388
if (!determine_stream_len(h, shdr, space_left,
crypto/openssl/ssl/quic/quic_txp.c
2421
if (!txp_el_ensure_iovec(&txp->el[enc_level], h->num_iovec + 3))
crypto/openssl/ssl/quic/quic_txp.c
2425
wpkt = tx_helper_begin(h);
crypto/openssl/ssl/quic/quic_txp.c
2431
tx_helper_rollback(h);
crypto/openssl/ssl/quic/quic_txp.c
2437
if (!tx_helper_commit(h))
crypto/openssl/ssl/quic/quic_txp.c
2442
tx_helper_append_iovec(h, chunks[i % 2].iov[j].buf,
crypto/openssl/ssl/quic/quic_txp.c
2446
tx_helper_unrestrict(h); /* no longer need PING */
crypto/openssl/ssl/quic/quic_txp.c
2448
h->done_implicit = 1;
crypto/openssl/ssl/quic/quic_txp.c
248
static int tx_helper_append_iovec(struct tx_helper *h,
crypto/openssl/ssl/quic/quic_txp.c
2494
struct tx_helper *h = &pkt->h;
crypto/openssl/ssl/quic/quic_txp.c
2514
wpkt = tx_helper_begin(h);
crypto/openssl/ssl/quic/quic_txp.c
252
struct txp_el *el = &h->txp->el[h->enc_level];
crypto/openssl/ssl/quic/quic_txp.c
2521
tx_helper_rollback(h); /* can't fit */
crypto/openssl/ssl/quic/quic_txp.c
2526
if (!tx_helper_commit(h))
crypto/openssl/ssl/quic/quic_txp.c
2530
tx_helper_unrestrict(h); /* no longer need PING */
crypto/openssl/ssl/quic/quic_txp.c
2540
wpkt = tx_helper_begin(h);
crypto/openssl/ssl/quic/quic_txp.c
2550
tx_helper_rollback(h); /* can't fit */
crypto/openssl/ssl/quic/quic_txp.c
2555
if (!tx_helper_commit(h))
crypto/openssl/ssl/quic/quic_txp.c
2559
tx_helper_unrestrict(h); /* no longer need PING */
crypto/openssl/ssl/quic/quic_txp.c
257
if (!ossl_assert(!h->done_implicit))
crypto/openssl/ssl/quic/quic_txp.c
2587
wpkt = tx_helper_begin(h);
crypto/openssl/ssl/quic/quic_txp.c
2595
tx_helper_rollback(h); /* can't fit */
crypto/openssl/ssl/quic/quic_txp.c
260
if (!txp_el_ensure_iovec(el, h->num_iovec + 1))
crypto/openssl/ssl/quic/quic_txp.c
2600
if (!tx_helper_commit(h))
crypto/openssl/ssl/quic/quic_txp.c
2604
tx_helper_unrestrict(h); /* no longer need PING */
crypto/openssl/ssl/quic/quic_txp.c
263
el->iovec[h->num_iovec].buf = buf;
crypto/openssl/ssl/quic/quic_txp.c
264
el->iovec[h->num_iovec].buf_len = buf_len;
crypto/openssl/ssl/quic/quic_txp.c
2656
const uint32_t enc_level = pkt->h.enc_level;
crypto/openssl/ssl/quic/quic_txp.c
266
++h->num_iovec;
crypto/openssl/ssl/quic/quic_txp.c
267
h->bytes_appended += buf_len;
crypto/openssl/ssl/quic/quic_txp.c
2671
struct tx_helper *h = &pkt->h;
crypto/openssl/ssl/quic/quic_txp.c
2692
&& tx_helper_get_space_left(h) >= MIN_FRAME_SIZE_HANDSHAKE_DONE) {
crypto/openssl/ssl/quic/quic_txp.c
2693
WPACKET *wpkt = tx_helper_begin(h);
crypto/openssl/ssl/quic/quic_txp.c
2702
if (!tx_helper_commit(h))
crypto/openssl/ssl/quic/quic_txp.c
2705
tx_helper_unrestrict(h); /* no longer need PING */
crypto/openssl/ssl/quic/quic_txp.c
2707
tx_helper_rollback(h);
crypto/openssl/ssl/quic/quic_txp.c
2715
&& tx_helper_get_space_left(h) >= MIN_FRAME_SIZE_MAX_DATA) {
crypto/openssl/ssl/quic/quic_txp.c
2716
WPACKET *wpkt = tx_helper_begin(h);
crypto/openssl/ssl/quic/quic_txp.c
2726
if (!tx_helper_commit(h))
crypto/openssl/ssl/quic/quic_txp.c
2729
tx_helper_unrestrict(h); /* no longer need PING */
crypto/openssl/ssl/quic/quic_txp.c
2731
tx_helper_rollback(h);
crypto/openssl/ssl/quic/quic_txp.c
2739
&& tx_helper_get_space_left(h) >= MIN_FRAME_SIZE_MAX_STREAMS_BIDI) {
crypto/openssl/ssl/quic/quic_txp.c
274
static size_t tx_helper_get_space_left(struct tx_helper *h)
crypto/openssl/ssl/quic/quic_txp.c
2740
WPACKET *wpkt = tx_helper_begin(h);
crypto/openssl/ssl/quic/quic_txp.c
2752
if (!tx_helper_commit(h))
crypto/openssl/ssl/quic/quic_txp.c
2755
tx_helper_unrestrict(h); /* no longer need PING */
crypto/openssl/ssl/quic/quic_txp.c
2757
tx_helper_rollback(h);
crypto/openssl/ssl/quic/quic_txp.c
276
return h->max_ppl
crypto/openssl/ssl/quic/quic_txp.c
2765
&& tx_helper_get_space_left(h) >= MIN_FRAME_SIZE_MAX_STREAMS_UNI) {
crypto/openssl/ssl/quic/quic_txp.c
2766
WPACKET *wpkt = tx_helper_begin(h);
crypto/openssl/ssl/quic/quic_txp.c
277
- (h->reserve_allowed ? 0 : h->reserve) - h->bytes_appended;
crypto/openssl/ssl/quic/quic_txp.c
2778
if (!tx_helper_commit(h))
crypto/openssl/ssl/quic/quic_txp.c
2781
tx_helper_unrestrict(h); /* no longer need PING */
crypto/openssl/ssl/quic/quic_txp.c
2783
tx_helper_rollback(h);
crypto/openssl/ssl/quic/quic_txp.c
2843
if (encoded_len > tx_helper_get_space_left(h))
crypto/openssl/ssl/quic/quic_txp.c
2846
if (!tx_helper_append_iovec(h, encoded, encoded_len))
crypto/openssl/ssl/quic/quic_txp.c
2853
tx_helper_unrestrict(h); /* no longer need PING */
crypto/openssl/ssl/quic/quic_txp.c
287
static WPACKET *tx_helper_begin(struct tx_helper *h)
crypto/openssl/ssl/quic/quic_txp.c
2880
tx_helper_unrestrict(h);
crypto/openssl/ssl/quic/quic_txp.c
2885
assert(h->reserve > 0);
crypto/openssl/ssl/quic/quic_txp.c
2886
wpkt = tx_helper_begin(h);
crypto/openssl/ssl/quic/quic_txp.c
2891
|| !tx_helper_commit(h))
crypto/openssl/ssl/quic/quic_txp.c
291
struct txp_el *el = &h->txp->el[h->enc_level];
crypto/openssl/ssl/quic/quic_txp.c
2911
tpkt->ackm_pkt.num_bytes = h->bytes_appended + pkt->geom.pkt_overhead;
crypto/openssl/ssl/quic/quic_txp.c
293
if (!ossl_assert(!h->txn.active))
crypto/openssl/ssl/quic/quic_txp.c
296
if (!ossl_assert(!h->done_implicit))
crypto/openssl/ssl/quic/quic_txp.c
2975
uint32_t enc_level = pkt->h.enc_level;
crypto/openssl/ssl/quic/quic_txp.c
2985
if (pkt->h.bytes_appended == 0)
crypto/openssl/ssl/quic/quic_txp.c
299
data = (unsigned char *)el->scratch + h->scratch_bytes;
crypto/openssl/ssl/quic/quic_txp.c
2994
txpkt.num_iovec = pkt->h.num_iovec;
crypto/openssl/ssl/quic/quic_txp.c
300
len = el->scratch_len - h->scratch_bytes;
crypto/openssl/ssl/quic/quic_txp.c
302
space_left = tx_helper_get_space_left(h);
crypto/openssl/ssl/quic/quic_txp.c
306
if (!WPACKET_init_static_len(&h->txn.wpkt, data, len, 0))
crypto/openssl/ssl/quic/quic_txp.c
309
if (!WPACKET_set_max_size(&h->txn.wpkt, space_left)) {
crypto/openssl/ssl/quic/quic_txp.c
310
WPACKET_cleanup(&h->txn.wpkt);
crypto/openssl/ssl/quic/quic_txp.c
314
h->txn.data = data;
crypto/openssl/ssl/quic/quic_txp.c
315
h->txn.active = 1;
crypto/openssl/ssl/quic/quic_txp.c
316
return &h->txn.wpkt;
crypto/openssl/ssl/quic/quic_txp.c
319
static void tx_helper_end(struct tx_helper *h, int success)
crypto/openssl/ssl/quic/quic_txp.c
322
WPACKET_finish(&h->txn.wpkt);
crypto/openssl/ssl/quic/quic_txp.c
324
WPACKET_cleanup(&h->txn.wpkt);
crypto/openssl/ssl/quic/quic_txp.c
326
h->txn.active = 0;
crypto/openssl/ssl/quic/quic_txp.c
327
h->txn.data = NULL;
crypto/openssl/ssl/quic/quic_txp.c
331
static void tx_helper_rollback(struct tx_helper *h)
crypto/openssl/ssl/quic/quic_txp.c
333
if (!h->txn.active)
crypto/openssl/ssl/quic/quic_txp.c
336
tx_helper_end(h, 0);
crypto/openssl/ssl/quic/quic_txp.c
340
static int tx_helper_commit(struct tx_helper *h)
crypto/openssl/ssl/quic/quic_txp.c
344
if (!h->txn.active)
crypto/openssl/ssl/quic/quic_txp.c
347
if (!WPACKET_get_total_written(&h->txn.wpkt, &l)) {
crypto/openssl/ssl/quic/quic_txp.c
348
tx_helper_end(h, 0);
crypto/openssl/ssl/quic/quic_txp.c
352
if (!tx_helper_append_iovec(h, h->txn.data, l)) {
crypto/openssl/ssl/quic/quic_txp.c
353
tx_helper_end(h, 0);
crypto/openssl/ssl/quic/quic_txp.c
357
if (h->txp->msg_callback != NULL && l > 0) {
crypto/openssl/ssl/quic/quic_txp.c
362
if (!PACKET_buf_init(&pkt, h->txn.data, l)
crypto/openssl/ssl/quic/quic_txp.c
364
tx_helper_end(h, 0);
crypto/openssl/ssl/quic/quic_txp.c
374
h->txp->msg_callback(1, OSSL_QUIC1_VERSION, ctype, h->txn.data, l,
crypto/openssl/ssl/quic/quic_txp.c
375
h->txp->msg_callback_ssl,
crypto/openssl/ssl/quic/quic_txp.c
376
h->txp->msg_callback_arg);
crypto/openssl/ssl/quic/quic_txp.c
379
h->scratch_bytes += l;
crypto/openssl/ssl/quic/quic_txp.c
380
tx_helper_end(h, 1);
crypto/openssl/ssl/quic/quic_txp.c
411
struct tx_helper h;
crypto/openssl/ssl/quic/quic_txp.c
916
+ pkt[enc_level].h.bytes_appended
crypto/openssl/ssl/quic/quic_txp.c
922
&& pkt[QUIC_ENC_LEVEL_INITIAL].h.bytes_appended > 0)
crypto/openssl/ssl/quic/quic_txp.c
937
if (pkt[enc_level].h_valid && pkt[enc_level].h.bytes_appended > 0) {
crypto/openssl/ssl/quic/quic_txp.c
944
&& !pkt[enc_level].h.done_implicit)
crypto/openssl/ssl/quic/quic_txp.c
949
+ pkt[enc_level].h.bytes_appended;
crypto/openssl/ssl/quic/quic_txp.c
989
if (pkt[enc_level].h.bytes_appended == 0)
crypto/openssl/ssl/quic/quic_txp.c
994
pkt[enc_level].h.bytes_appended)) {
crypto/openssl/ssl/quic/quic_txp.c
998
ossl_quic_tx_packetiser_consume_unvalidated_credit(txp, pkt[enc_level].h.bytes_appended);
crypto/openssl/ssl/record/methods/ssl3_cbc.c
101
l2n8(sha512->h[i], md_out);
crypto/openssl/ssl/record/methods/ssl3_cbc.c
92
l2n(sha256->h[i], md_out);
crypto/openssl/test/bntest.c
815
BIGNUM *e = NULL, *f = NULL, *g = NULL, *h = NULL;
crypto/openssl/test/bntest.c
826
|| !TEST_ptr(h = BN_new()))
crypto/openssl/test/bntest.c
842
&& TEST_true(BN_GF2m_mod_mul(h, d, c, b[j], ctx))
crypto/openssl/test/bntest.c
844
&& TEST_true(BN_GF2m_add(f, f, h))
crypto/openssl/test/bntest.c
861
BN_free(h);
crypto/openssl/test/constant_time_test.c
386
uint64_t h = test_values_64[j];
crypto/openssl/test/constant_time_test.c
389
g, h, g < h)
crypto/openssl/test/constant_time_test.c
390
|| !test_select_64(g, h)) {
crypto/openssl/test/dsatest.c
196
unsigned long h;
crypto/openssl/test/dsatest.c
234
&counter, &h, cb)))
crypto/openssl/test/dsatest.c
239
if (!TEST_int_eq(h, 2))
crypto/openssl/test/enginetest.c
31
ENGINE *h;
crypto/openssl/test/enginetest.c
35
for (h = ENGINE_get_first(); h != NULL; h = ENGINE_get_next(h)) {
crypto/openssl/test/enginetest.c
37
loop++, ENGINE_get_id(h), ENGINE_get_name(h));
crypto/openssl/test/enginetest.c
44
ENGINE_free(h);
crypto/openssl/test/json_test.c
23
static int helper_ensure(struct helper *h)
crypto/openssl/test/json_test.c
25
if (h->init)
crypto/openssl/test/json_test.c
28
if (!TEST_ptr(h->mem_bio = BIO_new(BIO_s_mem())))
crypto/openssl/test/json_test.c
31
if (!ossl_json_init(&h->j, h->mem_bio, h->flags)) {
crypto/openssl/test/json_test.c
32
BIO_free_all(h->mem_bio);
crypto/openssl/test/json_test.c
33
h->mem_bio = NULL;
crypto/openssl/test/json_test.c
37
h->init = 1;
crypto/openssl/test/json_test.c
41
static void helper_cleanup(struct helper *h)
crypto/openssl/test/json_test.c
43
BIO_free_all(h->mem_bio);
crypto/openssl/test/json_test.c
44
h->mem_bio = NULL;
crypto/openssl/test/json_test.c
46
if (h->init) {
crypto/openssl/test/json_test.c
47
ossl_json_cleanup(&h->j);
crypto/openssl/test/json_test.c
48
h->init = 0;
crypto/openssl/test/json_test.c
52
static void helper_set_flags(struct helper *h, uint32_t flags)
crypto/openssl/test/json_test.c
54
helper_cleanup(h);
crypto/openssl/test/json_test.c
55
h->flags = flags;
crypto/openssl/test/json_test.c
553
struct helper h = { 0 };
crypto/openssl/test/json_test.c
569
helper_set_flags(&h, (uint32_t)GET_U64());
crypto/openssl/test/json_test.c
574
if (!TEST_true(helper_ensure(&h)))
crypto/openssl/test/json_test.c
577
f(&h.j);
crypto/openssl/test/json_test.c
583
if (!TEST_true(helper_ensure(&h)))
crypto/openssl/test/json_test.c
586
f(&h.j, (int)GET_I64());
crypto/openssl/test/json_test.c
592
if (!TEST_true(helper_ensure(&h)))
crypto/openssl/test/json_test.c
595
f(&h.j, GET_U64());
crypto/openssl/test/json_test.c
601
if (!TEST_true(helper_ensure(&h)))
crypto/openssl/test/json_test.c
604
f(&h.j, GET_I64());
crypto/openssl/test/json_test.c
610
if (!TEST_true(helper_ensure(&h)))
crypto/openssl/test/json_test.c
613
f(&h.j, GET_P());
crypto/openssl/test/json_test.c
621
if (!TEST_true(helper_ensure(&h)))
crypto/openssl/test/json_test.c
626
f(&h.j, p, (size_t)u64);
crypto/openssl/test/json_test.c
630
if (!TEST_true(helper_ensure(&h)))
crypto/openssl/test/json_test.c
634
if (!TEST_int_eq(ossl_json_in_error(&h.j), asserted))
crypto/openssl/test/json_test.c
647
if (!TEST_true(helper_ensure(&h)))
crypto/openssl/test/json_test.c
650
if (!TEST_true(ossl_json_flush(&h.j)))
crypto/openssl/test/json_test.c
654
if (asserted < 0 && !TEST_false(ossl_json_in_error(&h.j)))
crypto/openssl/test/json_test.c
657
if (!TEST_true(BIO_get_mem_ptr(h.mem_bio, &bufp)))
crypto/openssl/test/json_test.c
672
helper_cleanup(&h);
crypto/openssl/test/lhash_test.c
101
if (!TEST_ptr(h))
crypto/openssl/test/lhash_test.c
106
if (!TEST_ptr_null(lh_int_insert(h, int_tests + i))) {
crypto/openssl/test/lhash_test.c
112
if (!TEST_int_eq((size_t)lh_int_num_items(h), n_int_tests))
crypto/openssl/test/lhash_test.c
117
if (!TEST_int_eq(*lh_int_retrieve(h, int_tests + i), int_tests[i])) {
crypto/openssl/test/lhash_test.c
122
if (!TEST_ptr_eq(lh_int_retrieve(h, int_tests + i), int_tests + i)) {
crypto/openssl/test/lhash_test.c
127
if (!TEST_ptr_eq(lh_int_retrieve(h, &j), int_tests + 2))
crypto/openssl/test/lhash_test.c
132
if (!TEST_ptr(p = lh_int_insert(h, &j)))
crypto/openssl/test/lhash_test.c
136
if (!TEST_ptr_eq(lh_int_retrieve(h, int_tests + 1), &j))
crypto/openssl/test/lhash_test.c
142
lh_int_doall(h, &int_doall);
crypto/openssl/test/lhash_test.c
156
lh_int_doall_short(h, int_doall_arg, int_found);
crypto/openssl/test/lhash_test.c
169
const int b = lh_int_delete(h, &dels[i].data) == NULL;
crypto/openssl/test/lhash_test.c
177
if (!TEST_int_eq(lh_int_error(h), 0))
crypto/openssl/test/lhash_test.c
182
lh_int_free(h);
crypto/openssl/test/lhash_test.c
343
LHASH_OF(int) *h = lh_int_new(&stress_hash, &int_cmp);
crypto/openssl/test/lhash_test.c
351
if (!TEST_ptr(h))
crypto/openssl/test/lhash_test.c
364
lh_int_insert(h, p);
crypto/openssl/test/lhash_test.c
368
if (!TEST_int_eq(lh_int_num_items(h), n))
crypto/openssl/test/lhash_test.c
375
if (!TEST_ptr(p = lh_int_delete(h, &j))) {
crypto/openssl/test/lhash_test.c
393
lh_int_free(h);
crypto/openssl/test/lhash_test.c
415
HT *h;
crypto/openssl/test/lhash_test.c
423
h = ossl_ht_new(&hash_conf);
crypto/openssl/test/lhash_test.c
425
if (!TEST_ptr(h))
crypto/openssl/test/lhash_test.c
442
if (!TEST_int_eq(ossl_ht_test_int_insert(h, TO_HT_KEY(&key),
crypto/openssl/test/lhash_test.c
451
if (!TEST_int_eq((size_t)ossl_ht_count(h), n))
crypto/openssl/test/lhash_test.c
461
if (!TEST_int_eq((ossl_ht_delete(h, TO_HT_KEY(&key))), 1)) {
crypto/openssl/test/lhash_test.c
467
if (!TEST_ptr(p = ossl_ht_test_int_get(h, TO_HT_KEY(&key), &v))
crypto/openssl/test/lhash_test.c
483
ossl_ht_free(h);
crypto/openssl/test/lhash_test.c
97
LHASH_OF(int) *h = lh_int_new(&int_hash, &int_cmp);
crypto/openssl/test/quic_ackm_test.c
1000
&& !TEST_true(ossl_time_is_infinite(ossl_ackm_get_ack_deadline(h.ackm, i))))
crypto/openssl/test/quic_ackm_test.c
1003
if (!TEST_int_eq(ossl_time_compare(ossl_ackm_get_ack_deadline(h.ackm, i),
crypto/openssl/test/quic_ackm_test.c
101
h->ccdata = ossl_cc_dummy_method.new(fake_now, NULL);
crypto/openssl/test/quic_ackm_test.c
1012
ack = ossl_ackm_get_ack_frame(h.ackm, space);
crypto/openssl/test/quic_ackm_test.c
102
if (!TEST_ptr(h->ccdata))
crypto/openssl/test/quic_ackm_test.c
1047
if (!TEST_int_eq(ossl_ackm_on_tx_packet(h.ackm, tx), 1))
crypto/openssl/test/quic_ackm_test.c
106
h->ackm = ossl_ackm_new(fake_now, NULL, &h->statm,
crypto/openssl/test/quic_ackm_test.c
1060
if (!TEST_int_eq(ossl_ackm_on_rx_ack_frame(h.ackm, &rx_ack,
crypto/openssl/test/quic_ackm_test.c
107
&ossl_cc_dummy_method, h->ccdata,
crypto/openssl/test/quic_ackm_test.c
1085
helper_destroy(&h);
crypto/openssl/test/quic_ackm_test.c
109
if (!TEST_ptr(h->ackm))
crypto/openssl/test/quic_ackm_test.c
113
h->num_pkts = num_pkts;
crypto/openssl/test/quic_ackm_test.c
115
h->pkts = OPENSSL_zalloc(sizeof(struct pkt_info) * num_pkts);
crypto/openssl/test/quic_ackm_test.c
116
if (!TEST_ptr(h->pkts))
crypto/openssl/test/quic_ackm_test.c
119
h->pkts = NULL;
crypto/openssl/test/quic_ackm_test.c
125
helper_destroy(h);
crypto/openssl/test/quic_ackm_test.c
343
struct helper h;
crypto/openssl/test/quic_ackm_test.c
356
if (!TEST_int_eq(helper_init(&h, c->pn_table_len), 1))
crypto/openssl/test/quic_ackm_test.c
360
ossl_ackm_set_loss_detection_deadline_callback(h.ackm,
crypto/openssl/test/quic_ackm_test.c
366
h.pkts[i].pkt = tx = OPENSSL_zalloc(sizeof(*tx));
crypto/openssl/test/quic_ackm_test.c
379
tx->cb_arg = &h.pkts[i];
crypto/openssl/test/quic_ackm_test.c
383
if (!TEST_int_eq(ossl_ackm_on_tx_packet(h.ackm, tx), 1))
crypto/openssl/test/quic_ackm_test.c
389
if (!TEST_int_eq(ossl_ackm_on_pkt_space_discarded(h.ackm, space), 1))
crypto/openssl/test/quic_ackm_test.c
394
if (!TEST_int_eq(h.pkts[i].acked, 0))
crypto/openssl/test/quic_ackm_test.c
396
if (!TEST_int_eq(h.pkts[i].lost, 0))
crypto/openssl/test/quic_ackm_test.c
398
if (!TEST_int_eq(h.pkts[i].discarded, 1))
crypto/openssl/test/quic_ackm_test.c
405
if (!TEST_int_eq(ossl_ackm_on_rx_ack_frame(h.ackm, &ack, space, fake_time), 1))
crypto/openssl/test/quic_ackm_test.c
410
if (!TEST_int_eq(h.pkts[i].acked,
crypto/openssl/test/quic_ackm_test.c
413
if (!TEST_int_eq(h.pkts[i].lost,
crypto/openssl/test/quic_ackm_test.c
416
if (!TEST_int_eq(h.pkts[i].discarded,
crypto/openssl/test/quic_ackm_test.c
421
OSSL_TIME deadline = ossl_ackm_get_loss_detection_deadline(h.ackm);
crypto/openssl/test/quic_ackm_test.c
432
probe = *ossl_ackm_get0_probe_request(h.ackm);
crypto/openssl/test/quic_ackm_test.c
441
if (!TEST_int_eq(ossl_ackm_on_handshake_confirmed(h.ackm), 1))
crypto/openssl/test/quic_ackm_test.c
447
if (!TEST_int_eq(ossl_ackm_on_timeout(h.ackm), 1))
crypto/openssl/test/quic_ackm_test.c
452
probe = *ossl_ackm_get0_probe_request(h.ackm);
crypto/openssl/test/quic_ackm_test.c
454
memset(ossl_ackm_get0_probe_request(h.ackm), 0, sizeof(probe));
crypto/openssl/test/quic_ackm_test.c
474
helper_destroy(&h);
crypto/openssl/test/quic_ackm_test.c
524
struct helper h;
crypto/openssl/test/quic_ackm_test.c
537
if (!TEST_int_eq(helper_init(&h, num_pkts), 1))
crypto/openssl/test/quic_ackm_test.c
541
h.pkts[i].pkt = tx = OPENSSL_zalloc(sizeof(*tx));
crypto/openssl/test/quic_ackm_test.c
551
tx = h.pkts[pkt_idx + i].pkt;
crypto/openssl/test/quic_ackm_test.c
56
static void helper_destroy(struct helper *h)
crypto/openssl/test/quic_ackm_test.c
562
tx->cb_arg = &h.pkts[pkt_idx + i];
crypto/openssl/test/quic_ackm_test.c
568
if (!TEST_int_eq(ossl_ackm_on_tx_packet(h.ackm, tx), 1))
crypto/openssl/test/quic_ackm_test.c
585
if (!TEST_int_eq(ossl_ackm_on_rx_ack_frame(h.ackm, &ack,
crypto/openssl/test/quic_ackm_test.c
595
if (!TEST_int_eq(h.pkts[i].acked,
crypto/openssl/test/quic_ackm_test.c
598
if (!TEST_int_eq(h.pkts[i].lost,
crypto/openssl/test/quic_ackm_test.c
60
if (h->ackm != NULL) {
crypto/openssl/test/quic_ackm_test.c
601
if (!TEST_int_eq(h.pkts[i].discarded,
crypto/openssl/test/quic_ackm_test.c
61
ossl_ackm_free(h->ackm);
crypto/openssl/test/quic_ackm_test.c
611
helper_destroy(&h);
crypto/openssl/test/quic_ackm_test.c
62
h->ackm = NULL;
crypto/openssl/test/quic_ackm_test.c
65
if (h->ccdata != NULL) {
crypto/openssl/test/quic_ackm_test.c
66
ossl_cc_dummy_method.free(h->ccdata);
crypto/openssl/test/quic_ackm_test.c
67
h->ccdata = NULL;
crypto/openssl/test/quic_ackm_test.c
70
if (h->have_statm) {
crypto/openssl/test/quic_ackm_test.c
71
ossl_statm_destroy(&h->statm);
crypto/openssl/test/quic_ackm_test.c
72
h->have_statm = 0;
crypto/openssl/test/quic_ackm_test.c
75
if (h->pkts != NULL) {
crypto/openssl/test/quic_ackm_test.c
76
for (i = 0; i < h->num_pkts; ++i) {
crypto/openssl/test/quic_ackm_test.c
77
OPENSSL_free(h->pkts[i].pkt);
crypto/openssl/test/quic_ackm_test.c
78
h->pkts[i].pkt = NULL;
crypto/openssl/test/quic_ackm_test.c
81
OPENSSL_free(h->pkts);
crypto/openssl/test/quic_ackm_test.c
82
h->pkts = NULL;
crypto/openssl/test/quic_ackm_test.c
86
static int helper_init(struct helper *h, size_t num_pkts)
crypto/openssl/test/quic_ackm_test.c
90
memset(h, 0, sizeof(*h));
crypto/openssl/test/quic_ackm_test.c
912
struct helper h;
crypto/openssl/test/quic_ackm_test.c
927
if (!TEST_int_eq(helper_init(&h, 0), 1))
crypto/openssl/test/quic_ackm_test.c
931
ossl_ackm_set_ack_deadline_callback(h.ackm, on_ack_deadline_callback,
crypto/openssl/test/quic_ackm_test.c
95
if (!TEST_int_eq(ossl_statm_init(&h->statm), 1))
crypto/openssl/test/quic_ackm_test.c
966
if (!TEST_int_eq(ossl_ackm_is_rx_pn_processable(h.ackm,
crypto/openssl/test/quic_ackm_test.c
972
if (!TEST_int_eq(ossl_ackm_on_rx_packet(h.ackm, &pkt), 1))
crypto/openssl/test/quic_ackm_test.c
98
h->have_statm = 1;
crypto/openssl/test/quic_ackm_test.c
981
if (!TEST_int_eq(ossl_ackm_is_rx_pn_processable(h.ackm,
crypto/openssl/test/quic_ackm_test.c
989
if (!TEST_int_eq(ossl_ackm_is_ack_desired(h.ackm, space),
crypto/openssl/test/quic_ackm_test.c
993
if (!TEST_int_eq(!ossl_time_is_infinite(ossl_ackm_get_ack_deadline(h.ackm, space))
crypto/openssl/test/quic_ackm_test.c
994
&& !ossl_time_is_zero(ossl_ackm_get_ack_deadline(h.ackm, space)),
crypto/openssl/test/quic_multistream_test.c
1003
struct helper *h = arg;
crypto/openssl/test/quic_multistream_test.c
1005
return h->qtf_datagram_cb(h, msg, stride);
crypto/openssl/test/quic_multistream_test.c
1037
static int run_script_worker(struct helper *h, const struct script_op *script,
crypto/openssl/test/quic_multistream_test.c
104
int (*qtf_packet_plain_cb)(struct helper *h, QUIC_PKT_HDR *hdr,
crypto/openssl/test/quic_multistream_test.c
1058
if (!TEST_true(helper_local_init(hl, h, thread_idx)))
crypto/openssl/test/quic_multistream_test.c
106
int (*qtf_handshake_cb)(struct helper *h,
crypto/openssl/test/quic_multistream_test.c
1068
s_lock(h, hl); \
crypto/openssl/test/quic_multistream_test.c
1069
ossl_quic_tserver_tick(h->s); \
crypto/openssl/test/quic_multistream_test.c
1074
if (h->blocking) { \
crypto/openssl/test/quic_multistream_test.c
108
int (*qtf_datagram_cb)(struct helper *h,
crypto/openssl/test/quic_multistream_test.c
1082
SSL *c_tgt = h->c_conn;
crypto/openssl/test/quic_multistream_test.c
1085
s_unlock(h, hl);
crypto/openssl/test/quic_multistream_test.c
1109
s_stream_id = helper_get_s_stream(h, op->stream_name);
crypto/openssl/test/quic_multistream_test.c
1115
if (!h->blocking) {
crypto/openssl/test/quic_multistream_test.c
1116
ossl_quic_tserver_tick(h->s);
crypto/openssl/test/quic_multistream_test.c
1119
else if (h->blocking && !h->server_thread.ready) {
crypto/openssl/test/quic_multistream_test.c
1120
ossl_crypto_mutex_lock(h->server_thread.m);
crypto/openssl/test/quic_multistream_test.c
1121
h->server_thread.ready = 1;
crypto/openssl/test/quic_multistream_test.c
1122
ossl_crypto_condvar_signal(h->server_thread.c);
crypto/openssl/test/quic_multistream_test.c
1123
ossl_crypto_mutex_unlock(h->server_thread.m);
crypto/openssl/test/quic_multistream_test.c
1125
if (h->blocking)
crypto/openssl/test/quic_multistream_test.c
1126
assert(h->s == NULL);
crypto/openssl/test/quic_multistream_test.c
1132
SSL_handle_events(h->c_conn);
crypto/openssl/test/quic_multistream_test.c
1174
for (i = 0; i < h->num_threads; ++i) {
crypto/openssl/test/quic_multistream_test.c
1175
if (h->threads[i].m == NULL)
crypto/openssl/test/quic_multistream_test.c
1178
ossl_crypto_mutex_lock(h->threads[i].m);
crypto/openssl/test/quic_multistream_test.c
1179
done = h->threads[i].done;
crypto/openssl/test/quic_multistream_test.c
1180
ossl_crypto_mutex_unlock(h->threads[i].m);
crypto/openssl/test/quic_multistream_test.c
1219
if (!h->blocking)
crypto/openssl/test/quic_multistream_test.c
124
struct helper *h;
crypto/openssl/test/quic_multistream_test.c
1244
ok = op->check_func(h, hl);
crypto/openssl/test/quic_multistream_test.c
1247
if (thread_idx < 0 && h->check_spin_again) {
crypto/openssl/test/quic_multistream_test.c
1248
h->check_spin_again = 0;
crypto/openssl/test/quic_multistream_test.c
1268
if (!TEST_false(SSL_set_alpn_protos(h->c_conn, tmp_buf,
crypto/openssl/test/quic_multistream_test.c
1281
ret = SSL_connect(h->c_conn);
crypto/openssl/test/quic_multistream_test.c
1285
if (!h->blocking && is_want(h->c_conn, ret))
crypto/openssl/test/quic_multistream_test.c
135
int (*check_func)(struct helper *h, struct helper_local *hl);
crypto/openssl/test/quic_multistream_test.c
138
int (*qtf_packet_plain_cb)(struct helper *h, QUIC_PKT_HDR *hdr,
crypto/openssl/test/quic_multistream_test.c
140
int (*qtf_handshake_cb)(struct helper *h,
crypto/openssl/test/quic_multistream_test.c
142
int (*qtf_datagram_cb)(struct helper *h,
crypto/openssl/test/quic_multistream_test.c
1456
if (!TEST_ptr(c_stream = ossl_quic_detach_stream(h->c_conn)))
crypto/openssl/test/quic_multistream_test.c
1470
if (!TEST_true(ossl_quic_attach_stream(h->c_conn, c_tgt)))
crypto/openssl/test/quic_multistream_test.c
1490
c_stream = SSL_new_stream(h->c_conn, flags);
crypto/openssl/test/quic_multistream_test.c
1499
++h->fail_count;
crypto/openssl/test/quic_multistream_test.c
1530
if (!TEST_true(helper_set_s_stream(h, op->stream_name,
crypto/openssl/test/quic_multistream_test.c
1544
if ((c_stream = SSL_accept_stream(h->c_conn, 0)) == NULL)
crypto/openssl/test/quic_multistream_test.c
1565
if (!TEST_true(helper_set_s_stream(h, op->stream_name, new_stream_id)))
crypto/openssl/test/quic_multistream_test.c
1572
if (!TEST_ptr_null(c_stream = SSL_accept_stream(h->c_conn,
crypto/openssl/test/quic_multistream_test.c
1613
QUIC_CHANNEL *ch = ossl_quic_conn_get_channel(h->c_conn);
crypto/openssl/test/quic_multistream_test.c
1644
if (h->blocking
crypto/openssl/test/quic_multistream_test.c
1694
if (!TEST_true(helper_set_s_stream(h, op->stream_name, op->arg2)))
crypto/openssl/test/quic_multistream_test.c
1705
if (!TEST_true(helper_set_s_stream(h, op->stream_name, UINT64_MAX)))
crypto/openssl/test/quic_multistream_test.c
1811
if (!TEST_ptr_null(h->threads)) {
crypto/openssl/test/quic_multistream_test.c
1816
h->threads = OPENSSL_zalloc(op->arg1 * sizeof(struct child_thread_args));
crypto/openssl/test/quic_multistream_test.c
1817
if (!TEST_ptr(h->threads))
crypto/openssl/test/quic_multistream_test.c
1820
h->num_threads = op->arg1;
crypto/openssl/test/quic_multistream_test.c
1823
h->threads[i].h = h;
crypto/openssl/test/quic_multistream_test.c
1824
h->threads[i].script = op->arg0;
crypto/openssl/test/quic_multistream_test.c
1825
h->threads[i].script_name = script_name;
crypto/openssl/test/quic_multistream_test.c
1826
h->threads[i].thread_idx = i;
crypto/openssl/test/quic_multistream_test.c
1828
h->threads[i].m = ossl_crypto_mutex_new();
crypto/openssl/test/quic_multistream_test.c
1829
if (!TEST_ptr(h->threads[i].m))
crypto/openssl/test/quic_multistream_test.c
1832
h->threads[i].t
crypto/openssl/test/quic_multistream_test.c
1834
&h->threads[i], 1);
crypto/openssl/test/quic_multistream_test.c
1835
if (!TEST_ptr(h->threads[i].t))
crypto/openssl/test/quic_multistream_test.c
1842
BIO_closesocket(h->c_fd);
crypto/openssl/test/quic_multistream_test.c
1843
h->c_fd = -1;
crypto/openssl/test/quic_multistream_test.c
1872
h->qtf_packet_plain_cb = op->qtf_packet_plain_cb;
crypto/openssl/test/quic_multistream_test.c
1874
if (!TEST_true(qtest_fault_set_packet_plain_listener(h->qtf,
crypto/openssl/test/quic_multistream_test.c
1875
h->qtf_packet_plain_cb != NULL ? helper_packet_plain_listener : NULL,
crypto/openssl/test/quic_multistream_test.c
1876
h)))
crypto/openssl/test/quic_multistream_test.c
1882
h->qtf_handshake_cb = op->qtf_handshake_cb;
crypto/openssl/test/quic_multistream_test.c
1884
if (!TEST_true(qtest_fault_set_handshake_listener(h->qtf,
crypto/openssl/test/quic_multistream_test.c
1885
h->qtf_handshake_cb != NULL ? helper_handshake_listener : NULL,
crypto/openssl/test/quic_multistream_test.c
1886
h)))
crypto/openssl/test/quic_multistream_test.c
1892
h->qtf_datagram_cb = op->qtf_datagram_cb;
crypto/openssl/test/quic_multistream_test.c
1894
if (!TEST_true(qtest_fault_set_datagram_listener(h->qtf,
crypto/openssl/test/quic_multistream_test.c
1895
h->qtf_datagram_cb != NULL ? helper_datagram_listener : NULL,
crypto/openssl/test/quic_multistream_test.c
1896
h)))
crypto/openssl/test/quic_multistream_test.c
1907
h->inject_word0 = op->arg1;
crypto/openssl/test/quic_multistream_test.c
1908
h->inject_word1 = op->arg2;
crypto/openssl/test/quic_multistream_test.c
1912
QUIC_CHANNEL *ch = ossl_quic_conn_get_channel(h->c_conn);
crypto/openssl/test/quic_multistream_test.c
1939
s_unlock(h, hl); /* idempotent */
crypto/openssl/test/quic_multistream_test.c
1956
if (h->c_conn != NULL) {
crypto/openssl/test/quic_multistream_test.c
1959
if (SSL_get_conn_close_info(h->c_conn, &cc_info, sizeof(cc_info))) {
crypto/openssl/test/quic_multistream_test.c
1984
tcause = (h->s != NULL
crypto/openssl/test/quic_multistream_test.c
1985
? ossl_quic_tserver_get_terminate_cause(h->s)
crypto/openssl/test/quic_multistream_test.c
2019
struct helper h;
crypto/openssl/test/quic_multistream_test.c
2021
if (!TEST_true(helper_init(&h, script_name,
crypto/openssl/test/quic_multistream_test.c
2025
if (!TEST_true(run_script_worker(&h, script, script_name, -1)))
crypto/openssl/test/quic_multistream_test.c
2029
if (!TEST_true(join_threads(h.threads, h.num_threads)))
crypto/openssl/test/quic_multistream_test.c
2035
helper_cleanup(&h);
crypto/openssl/test/quic_multistream_test.c
2045
testresult = run_script_worker(args->h, args->script,
crypto/openssl/test/quic_multistream_test.c
2144
OP_S_NEW_STREAM_BIDI(h, S_BIDI_ID(3))
crypto/openssl/test/quic_multistream_test.c
2145
OP_S_WRITE(h, "UNSEEN", 6)
crypto/openssl/test/quic_multistream_test.c
2146
OP_S_CONCLUDE(h)
crypto/openssl/test/quic_multistream_test.c
2655
static int script_20_trigger(struct helper *h, volatile uint64_t *counter)
crypto/openssl/test/quic_multistream_test.c
2658
ossl_crypto_mutex_lock(h->misc_m);
crypto/openssl/test/quic_multistream_test.c
2660
ossl_crypto_condvar_broadcast(h->misc_cv);
crypto/openssl/test/quic_multistream_test.c
2661
ossl_crypto_mutex_unlock(h->misc_m);
crypto/openssl/test/quic_multistream_test.c
2666
static int script_20_wait(struct helper *h, volatile uint64_t *counter, uint64_t threshold)
crypto/openssl/test/quic_multistream_test.c
2671
ossl_crypto_mutex_lock(h->misc_m);
crypto/openssl/test/quic_multistream_test.c
2677
ossl_crypto_condvar_wait(h->misc_cv, h->misc_m);
crypto/openssl/test/quic_multistream_test.c
2680
ossl_crypto_mutex_unlock(h->misc_m);
crypto/openssl/test/quic_multistream_test.c
2685
static int script_20_trigger1(struct helper *h, struct helper_local *hl)
crypto/openssl/test/quic_multistream_test.c
2687
return script_20_trigger(h, &h->scratch0);
crypto/openssl/test/quic_multistream_test.c
2690
static int script_20_wait1(struct helper *h, struct helper_local *hl)
crypto/openssl/test/quic_multistream_test.c
2692
return script_20_wait(h, &h->scratch0, hl->check_op->arg2);
crypto/openssl/test/quic_multistream_test.c
2695
static int script_20_trigger2(struct helper *h, struct helper_local *hl)
crypto/openssl/test/quic_multistream_test.c
2697
return script_20_trigger(h, &h->scratch1);
crypto/openssl/test/quic_multistream_test.c
2700
static int script_20_wait2(struct helper *h, struct helper_local *hl)
crypto/openssl/test/quic_multistream_test.c
2702
return script_20_wait(h, &h->scratch1, hl->check_op->arg2);
crypto/openssl/test/quic_multistream_test.c
2751
static int script_21_inject_plain(struct helper *h, QUIC_PKT_HDR *hdr,
crypto/openssl/test/quic_multistream_test.c
2759
if (h->inject_word0 == 0 || hdr->type != h->inject_word0)
crypto/openssl/test/quic_multistream_test.c
2766
if (!TEST_true(WPACKET_quic_write_vlint(&wpkt, h->inject_word1)))
crypto/openssl/test/quic_multistream_test.c
2769
switch (h->inject_word1) {
crypto/openssl/test/quic_multistream_test.c
2860
if (!qtest_fault_prepend_frame(h->qtf, frame_buf, written))
crypto/openssl/test/quic_multistream_test.c
2891
static int script_22_inject_plain(struct helper *h, QUIC_PKT_HDR *hdr,
crypto/openssl/test/quic_multistream_test.c
2894
if (h->inject_word0 == 0)
crypto/openssl/test/quic_multistream_test.c
2920
static int script_23_inject_plain(struct helper *h, QUIC_PKT_HDR *hdr,
crypto/openssl/test/quic_multistream_test.c
2928
if (h->inject_word0 == 0 || hdr->type != QUIC_PKT_TYPE_1RTT)
crypto/openssl/test/quic_multistream_test.c
2942
if (!qtest_fault_prepend_frame(h->qtf, frame_buf, written))
crypto/openssl/test/quic_multistream_test.c
2973
static int script_24_inject_plain(struct helper *h, QUIC_PKT_HDR *hdr,
crypto/openssl/test/quic_multistream_test.c
2981
if (h->inject_word0 == 0 || hdr->type != QUIC_PKT_TYPE_1RTT)
crypto/openssl/test/quic_multistream_test.c
2988
if (!TEST_true(WPACKET_quic_write_vlint(&wpkt, h->inject_word1))
crypto/openssl/test/quic_multistream_test.c
2995
if (!qtest_fault_prepend_frame(h->qtf, frame_buf, written))
crypto/openssl/test/quic_multistream_test.c
3083
static int script_28_inject_plain(struct helper *h, QUIC_PKT_HDR *hdr,
crypto/openssl/test/quic_multistream_test.c
3091
if (h->inject_word0 == 0 || hdr->type != QUIC_PKT_TYPE_1RTT)
crypto/openssl/test/quic_multistream_test.c
3098
if (!TEST_true(WPACKET_quic_write_vlint(&wpkt, h->inject_word1))
crypto/openssl/test/quic_multistream_test.c
3100
h->inject_word0 - 1))
crypto/openssl/test/quic_multistream_test.c
3102
|| (h->inject_word1 == OSSL_QUIC_FRAME_TYPE_RESET_STREAM
crypto/openssl/test/quic_multistream_test.c
3109
if (!qtest_fault_prepend_frame(h->qtf, frame_buf, written))
crypto/openssl/test/quic_multistream_test.c
3217
static int script_32_inject_plain(struct helper *h, QUIC_PKT_HDR *hdr,
crypto/openssl/test/quic_multistream_test.c
3229
switch (h->inject_word1) {
crypto/openssl/test/quic_multistream_test.c
3258
h->inject_word0 - 1))
crypto/openssl/test/quic_multistream_test.c
3270
if (!qtest_fault_prepend_frame(h->qtf, frame_buf, written))
crypto/openssl/test/quic_multistream_test.c
3432
static int script_39_inject_plain(struct helper *h, QUIC_PKT_HDR *hdr,
crypto/openssl/test/quic_multistream_test.c
3441
QUIC_CHANNEL *ch = ossl_quic_tserver_get_channel(h->s_priv);
crypto/openssl/test/quic_multistream_test.c
3446
switch (h->inject_word1) {
crypto/openssl/test/quic_multistream_test.c
350
struct helper *h = arg;
crypto/openssl/test/quic_multistream_test.c
3507
if (!qtest_fault_prepend_frame(h->qtf, frame_buf, written))
crypto/openssl/test/quic_multistream_test.c
353
if (!TEST_true(CRYPTO_THREAD_read_lock(h->time_lock)))
crypto/openssl/test/quic_multistream_test.c
356
t = ossl_time_add(ossl_time_now(), h->time_slip);
crypto/openssl/test/quic_multistream_test.c
358
CRYPTO_THREAD_unlock(h->time_lock);
crypto/openssl/test/quic_multistream_test.c
3581
static int script_41_inject_plain(struct helper *h, QUIC_PKT_HDR *hdr,
crypto/openssl/test/quic_multistream_test.c
3589
if (h->inject_word0 == 0 || hdr->type != QUIC_PKT_TYPE_1RTT)
crypto/openssl/test/quic_multistream_test.c
3596
if (!TEST_true(WPACKET_quic_write_vlint(&wpkt, h->inject_word1))
crypto/openssl/test/quic_multistream_test.c
3604
if (!qtest_fault_prepend_frame(h->qtf, frame_buf, written))
crypto/openssl/test/quic_multistream_test.c
3607
--h->inject_word0;
crypto/openssl/test/quic_multistream_test.c
362
static int skip_time_ms(struct helper *h, struct helper_local *hl)
crypto/openssl/test/quic_multistream_test.c
3622
struct helper *h = arg;
crypto/openssl/test/quic_multistream_test.c
3631
++h->scratch1;
crypto/openssl/test/quic_multistream_test.c
3637
++h->scratch1;
crypto/openssl/test/quic_multistream_test.c
364
if (!TEST_true(CRYPTO_THREAD_write_lock(h->time_lock)))
crypto/openssl/test/quic_multistream_test.c
3646
++h->scratch1;
crypto/openssl/test/quic_multistream_test.c
3650
++h->scratch0;
crypto/openssl/test/quic_multistream_test.c
3653
static int script_41_setup(struct helper *h, struct helper_local *hl)
crypto/openssl/test/quic_multistream_test.c
3655
ossl_quic_tserver_set_msg_callback(ACQUIRE_S(), script_41_trace, h);
crypto/openssl/test/quic_multistream_test.c
3659
static int script_41_check(struct helper *h, struct helper_local *hl)
crypto/openssl/test/quic_multistream_test.c
3662
if (!TEST_uint64_t_gt(h->scratch0, 0))
crypto/openssl/test/quic_multistream_test.c
3666
if (!TEST_uint64_t_eq(h->scratch1, 0))
crypto/openssl/test/quic_multistream_test.c
367
h->time_slip = ossl_time_add(h->time_slip, ossl_ms2time(hl->check_op->arg2));
crypto/openssl/test/quic_multistream_test.c
369
CRYPTO_THREAD_unlock(h->time_lock);
crypto/openssl/test/quic_multistream_test.c
3695
static int script_42_inject_plain(struct helper *h, QUIC_PKT_HDR *hdr,
crypto/openssl/test/quic_multistream_test.c
3703
if (h->inject_word0 == 0)
crypto/openssl/test/quic_multistream_test.c
3706
--h->inject_word0;
crypto/openssl/test/quic_multistream_test.c
3713
|| !TEST_true(WPACKET_quic_write_vlint(&wpkt, h->inject_word1))
crypto/openssl/test/quic_multistream_test.c
3721
if (!qtest_fault_prepend_frame(h->qtf, frame_buf, written))
crypto/openssl/test/quic_multistream_test.c
373
static QUIC_TSERVER *s_lock(struct helper *h, struct helper_local *hl);
crypto/openssl/test/quic_multistream_test.c
374
static void s_unlock(struct helper *h, struct helper_local *hl);
crypto/openssl/test/quic_multistream_test.c
376
#define ACQUIRE_S() s_lock(h, hl)
crypto/openssl/test/quic_multistream_test.c
377
#define ACQUIRE_S_NOHL() s_lock(h, NULL)
crypto/openssl/test/quic_multistream_test.c
3775
static int script_44_inject_plain(struct helper *h, QUIC_PKT_HDR *hdr,
crypto/openssl/test/quic_multistream_test.c
3783
if (h->inject_word0 == 0 || hdr->type != QUIC_PKT_TYPE_1RTT)
crypto/openssl/test/quic_multistream_test.c
379
static int check_rejected(struct helper *h, struct helper_local *hl)
crypto/openssl/test/quic_multistream_test.c
3796
if (!qtest_fault_prepend_frame(h->qtf, frame_buf, written))
crypto/openssl/test/quic_multistream_test.c
3826
static int force_ping(struct helper *h, struct helper_local *hl)
crypto/openssl/test/quic_multistream_test.c
3830
h->scratch0 = ossl_quic_channel_get_diag_num_rx_ack(ch);
crypto/openssl/test/quic_multistream_test.c
3838
static int wait_incoming_acks_increased(struct helper *h, struct helper_local *hl)
crypto/openssl/test/quic_multistream_test.c
3845
if (count == h->scratch0) {
crypto/openssl/test/quic_multistream_test.c
3846
h->check_spin_again = 1;
crypto/openssl/test/quic_multistream_test.c
385
h->check_spin_again = 1;
crypto/openssl/test/quic_multistream_test.c
3875
static int script_46_inject_plain(struct helper *h, QUIC_PKT_HDR *hdr,
crypto/openssl/test/quic_multistream_test.c
3886
if (h->inject_word0 == 0)
crypto/openssl/test/quic_multistream_test.c
3895
switch (h->inject_word0) {
crypto/openssl/test/quic_multistream_test.c
392
static int check_stream_reset(struct helper *h, struct helper_local *hl)
crypto/openssl/test/quic_multistream_test.c
3933
h->inject_word0 = 0;
crypto/openssl/test/quic_multistream_test.c
3956
if (!qtest_fault_prepend_frame(h->qtf, frame_buf, written))
crypto/openssl/test/quic_multistream_test.c
397
h->check_spin_again = 1;
crypto/openssl/test/quic_multistream_test.c
40
struct helper *h;
crypto/openssl/test/quic_multistream_test.c
404
static int check_stream_stopped(struct helper *h, struct helper_local *hl)
crypto/openssl/test/quic_multistream_test.c
4086
static int script_52_inject_plain(struct helper *h, QUIC_PKT_HDR *hdr,
crypto/openssl/test/quic_multistream_test.c
409
h->check_spin_again = 1;
crypto/openssl/test/quic_multistream_test.c
4093
uint64_t type = h->inject_word1;
crypto/openssl/test/quic_multistream_test.c
4095
if (h->inject_word0 == 0 || hdr->type != QUIC_PKT_TYPE_1RTT)
crypto/openssl/test/quic_multistream_test.c
4098
--h->inject_word0;
crypto/openssl/test/quic_multistream_test.c
4117
if (!qtest_fault_prepend_frame(h->qtf, frame_buf, written))
crypto/openssl/test/quic_multistream_test.c
416
static int override_key_update(struct helper *h, struct helper_local *hl)
crypto/openssl/test/quic_multistream_test.c
4174
static int script_53_inject_plain(struct helper *h, QUIC_PKT_HDR *hdr,
crypto/openssl/test/quic_multistream_test.c
418
QUIC_CHANNEL *ch = ossl_quic_conn_get_channel(h->c_conn);
crypto/openssl/test/quic_multistream_test.c
4184
if (h->inject_word0 == 0 || hdr->type != QUIC_PKT_TYPE_1RTT)
crypto/openssl/test/quic_multistream_test.c
4187
h->inject_word0 = 0;
crypto/openssl/test/quic_multistream_test.c
4189
switch (h->inject_word1) {
crypto/openssl/test/quic_multistream_test.c
4221
if (!qtest_fault_prepend_frame(h->qtf, frame_buf, written))
crypto/openssl/test/quic_multistream_test.c
424
static int trigger_key_update(struct helper *h, struct helper_local *hl)
crypto/openssl/test/quic_multistream_test.c
4252
static int script_54_inject_handshake(struct helper *h,
crypto/openssl/test/quic_multistream_test.c
426
if (!TEST_true(SSL_key_update(h->c_conn, SSL_KEY_UPDATE_REQUESTED)))
crypto/openssl/test/quic_multistream_test.c
432
static int check_key_update_ge(struct helper *h, struct helper_local *hl)
crypto/openssl/test/quic_multistream_test.c
434
QUIC_CHANNEL *ch = ossl_quic_conn_get_channel(h->c_conn);
crypto/openssl/test/quic_multistream_test.c
4348
static int script_58_inject_plain(struct helper *h, QUIC_PKT_HDR *hdr,
crypto/openssl/test/quic_multistream_test.c
4356
if (h->inject_word0 == 0 || hdr->type != QUIC_PKT_TYPE_1RTT)
crypto/openssl/test/quic_multistream_test.c
4363
if (h->inject_word0 == 1) {
crypto/openssl/test/quic_multistream_test.c
4376
if (!qtest_fault_prepend_frame(h->qtf, frame_buf, written))
crypto/openssl/test/quic_multistream_test.c
4430
static int init_reason(struct helper *h, struct helper_local *hl)
crypto/openssl/test/quic_multistream_test.c
4438
static int check_shutdown_reason(struct helper *h, struct helper_local *hl)
crypto/openssl/test/quic_multistream_test.c
4443
h->check_spin_again = 1;
crypto/openssl/test/quic_multistream_test.c
4471
static int script_61_inject_plain(struct helper *h, QUIC_PKT_HDR *hdr,
crypto/openssl/test/quic_multistream_test.c
4479
if (h->inject_word0 == 0 || hdr->type != QUIC_PKT_TYPE_1RTT)
crypto/openssl/test/quic_multistream_test.c
4486
if (!TEST_true(WPACKET_quic_write_vlint(&wpkt, h->inject_word0))
crypto/openssl/test/quic_multistream_test.c
4488
h->inject_word1))
crypto/openssl/test/quic_multistream_test.c
4490
|| (h->inject_word0 == OSSL_QUIC_FRAME_TYPE_RESET_STREAM
crypto/openssl/test/quic_multistream_test.c
4497
if (!qtest_fault_prepend_frame(h->qtf, frame_buf, written))
crypto/openssl/test/quic_multistream_test.c
453
static int check_key_update_lt(struct helper *h, struct helper_local *hl)
crypto/openssl/test/quic_multistream_test.c
455
QUIC_CHANNEL *ch = ossl_quic_conn_get_channel(h->c_conn);
crypto/openssl/test/quic_multistream_test.c
4594
static int script_65_inject_plain(struct helper *h, QUIC_PKT_HDR *hdr,
crypto/openssl/test/quic_multistream_test.c
4602
if (h->inject_word0 == 0)
crypto/openssl/test/quic_multistream_test.c
4605
--h->inject_word0;
crypto/openssl/test/quic_multistream_test.c
4619
if (!qtest_fault_prepend_frame(h->qtf, frame_buf, written))
crypto/openssl/test/quic_multistream_test.c
4651
static int script_66_inject_plain(struct helper *h, QUIC_PKT_HDR *hdr,
crypto/openssl/test/quic_multistream_test.c
4659
if (h->inject_word0 == 0 || hdr->type != QUIC_PKT_TYPE_1RTT)
crypto/openssl/test/quic_multistream_test.c
4666
if (!TEST_true(WPACKET_quic_write_vlint(&wpkt, h->inject_word1)))
crypto/openssl/test/quic_multistream_test.c
4669
if (h->inject_word1 == OSSL_QUIC_FRAME_TYPE_MAX_STREAM_DATA)
crypto/openssl/test/quic_multistream_test.c
4671
h->inject_word0 - 1)))
crypto/openssl/test/quic_multistream_test.c
4680
if (!qtest_fault_prepend_frame(h->qtf, frame_buf, written))
crypto/openssl/test/quic_multistream_test.c
4736
static int script_68_inject_handshake(struct helper *h, unsigned char *msg,
crypto/openssl/test/quic_multistream_test.c
4758
switch (h->inject_word0) {
crypto/openssl/test/quic_multistream_test.c
4778
if (!TEST_true(qtest_fault_resize_message(h->qtf,
crypto/openssl/test/quic_multistream_test.c
4831
static int set_max_early_data(struct helper *h, struct helper_local *hl)
crypto/openssl/test/quic_multistream_test.c
4881
static int script_72_check(struct helper *h, struct helper_local *hl)
crypto/openssl/test/quic_multistream_test.c
4883
if (!TEST_uint64_t_ge(h->fail_count, 50))
crypto/openssl/test/quic_multistream_test.c
4957
static int server_gen_version_neg(struct helper *h, BIO_MSG *msg, size_t stride)
crypto/openssl/test/quic_multistream_test.c
4965
switch (h->inject_word0) {
crypto/openssl/test/quic_multistream_test.c
4989
if (!TEST_true(qtest_fault_resize_datagram(h->qtf, l)))
crypto/openssl/test/quic_multistream_test.c
4993
h->inject_word0 = 0;
crypto/openssl/test/quic_multistream_test.c
5047
static int script_74_arm_packet_mutator(struct helper *h,
crypto/openssl/test/quic_multistream_test.c
5050
QUIC_CHANNEL *ch = ossl_quic_conn_get_channel(h->c_conn);
crypto/openssl/test/quic_multistream_test.c
5089
static int script_76_check(struct helper *h, struct helper_local *hl)
crypto/openssl/test/quic_multistream_test.c
5091
if (!TEST_false(SSL_shutdown_ex(h->c_conn,
crypto/openssl/test/quic_multistream_test.c
5151
static int setup_session(struct helper *h, struct helper_local *hl)
crypto/openssl/test/quic_multistream_test.c
5153
SSL_CTX_set_session_cache_mode(h->c_ctx, SSL_SESS_CACHE_BOTH);
crypto/openssl/test/quic_multistream_test.c
5154
SSL_CTX_sess_set_new_cb(h->c_ctx, on_new_session);
crypto/openssl/test/quic_multistream_test.c
5158
static int trigger_late_session_ticket(struct helper *h, struct helper_local *hl)
crypto/openssl/test/quic_multistream_test.c
5168
static int check_got_session_ticket(struct helper *h, struct helper_local *hl)
crypto/openssl/test/quic_multistream_test.c
5176
static int check_idle_timeout(struct helper *h, struct helper_local *hl);
crypto/openssl/test/quic_multistream_test.c
518
static int join_server_thread(struct helper *h)
crypto/openssl/test/quic_multistream_test.c
522
if (h->server_thread.t == NULL)
crypto/openssl/test/quic_multistream_test.c
5236
static int script_80_send_stateless_reset(struct helper *h, QUIC_PKT_HDR *hdr,
crypto/openssl/test/quic_multistream_test.c
5241
if (h->inject_word1 == 0)
crypto/openssl/test/quic_multistream_test.c
5244
h->inject_word1 = 0;
crypto/openssl/test/quic_multistream_test.c
525
ossl_crypto_mutex_lock(h->server_thread.m);
crypto/openssl/test/quic_multistream_test.c
5253
if (!TEST_int_eq(SSL_inject_net_dgram(h->c_conn, databuf, sizeof(databuf),
crypto/openssl/test/quic_multistream_test.c
5254
NULL, h->s_net_bio_addr),
crypto/openssl/test/quic_multistream_test.c
526
h->server_thread.stop = 1;
crypto/openssl/test/quic_multistream_test.c
5261
static int script_80_gen_new_conn_id(struct helper *h, QUIC_PKT_HDR *hdr,
crypto/openssl/test/quic_multistream_test.c
527
ossl_crypto_condvar_signal(h->server_thread.c);
crypto/openssl/test/quic_multistream_test.c
5272
if (h->inject_word0 == 0)
crypto/openssl/test/quic_multistream_test.c
5275
h->inject_word0 = 0;
crypto/openssl/test/quic_multistream_test.c
528
ossl_crypto_mutex_unlock(h->server_thread.m);
crypto/openssl/test/quic_multistream_test.c
5296
if (!qtest_fault_prepend_frame(h->qtf, frame_buf, l))
crypto/openssl/test/quic_multistream_test.c
530
ossl_crypto_thread_native_join(h->server_thread.t, &rv);
crypto/openssl/test/quic_multistream_test.c
5309
static int script_80_inject_pkt(struct helper *h, QUIC_PKT_HDR *hdr,
crypto/openssl/test/quic_multistream_test.c
531
ossl_crypto_thread_native_clean(h->server_thread.t);
crypto/openssl/test/quic_multistream_test.c
5312
if (h->inject_word1 == 1)
crypto/openssl/test/quic_multistream_test.c
5313
return script_80_send_stateless_reset(h, hdr, buf, len);
crypto/openssl/test/quic_multistream_test.c
5314
else if (h->inject_word0 == 1)
crypto/openssl/test/quic_multistream_test.c
5315
return script_80_gen_new_conn_id(h, hdr, buf, len);
crypto/openssl/test/quic_multistream_test.c
532
h->server_thread.t = NULL;
crypto/openssl/test/quic_multistream_test.c
5338
static int modify_idle_timeout(struct helper *h, struct helper_local *hl)
crypto/openssl/test/quic_multistream_test.c
5343
if (!TEST_false(SSL_set_feature_request_uint(h->c_conn,
crypto/openssl/test/quic_multistream_test.c
5349
if (!TEST_true(SSL_set_feature_request_uint(h->c_conn,
crypto/openssl/test/quic_multistream_test.c
5354
if (!TEST_true(SSL_get_feature_request_uint(h->c_conn,
crypto/openssl/test/quic_multistream_test.c
5365
static int check_idle_timeout(struct helper *h, struct helper_local *hl)
crypto/openssl/test/quic_multistream_test.c
5369
if (!TEST_true(SSL_get_value_uint(h->c_conn, hl->check_op->arg1,
crypto/openssl/test/quic_multistream_test.c
537
static int *s_checked_out_p(struct helper *h, int thread_idx)
crypto/openssl/test/quic_multistream_test.c
539
return (thread_idx < 0) ? &h->s_checked_out
crypto/openssl/test/quic_multistream_test.c
540
: &h->threads[thread_idx].s_checked_out;
crypto/openssl/test/quic_multistream_test.c
5411
static int cannot_change_idle_timeout(struct helper *h, struct helper_local *hl)
crypto/openssl/test/quic_multistream_test.c
5415
if (!TEST_true(SSL_get_feature_request_uint(h->c_conn,
crypto/openssl/test/quic_multistream_test.c
5423
if (!TEST_false(SSL_set_feature_request_uint(h->c_conn,
crypto/openssl/test/quic_multistream_test.c
543
static QUIC_TSERVER *s_lock(struct helper *h, struct helper_local *hl)
crypto/openssl/test/quic_multistream_test.c
5447
static int check_avail_streams(struct helper *h, struct helper_local *hl)
crypto/openssl/test/quic_multistream_test.c
545
int *p_checked_out = s_checked_out_p(h, hl == NULL ? -1 : hl->thread_idx);
crypto/openssl/test/quic_multistream_test.c
5453
if (!TEST_true(SSL_get_quic_stream_bidi_local_avail(h->c_conn, &v)))
crypto/openssl/test/quic_multistream_test.c
5457
if (!TEST_true(SSL_get_quic_stream_bidi_remote_avail(h->c_conn, &v)))
crypto/openssl/test/quic_multistream_test.c
5461
if (!TEST_true(SSL_get_quic_stream_uni_local_avail(h->c_conn, &v)))
crypto/openssl/test/quic_multistream_test.c
5465
if (!TEST_true(SSL_get_quic_stream_uni_remote_avail(h->c_conn, &v)))
crypto/openssl/test/quic_multistream_test.c
547
if (h->server_thread.m == NULL || *p_checked_out)
crypto/openssl/test/quic_multistream_test.c
5478
static int set_event_handling_mode_conn(struct helper *h, struct helper_local *hl);
crypto/openssl/test/quic_multistream_test.c
5479
static int reenable_test_event_handling(struct helper *h, struct helper_local *hl);
crypto/openssl/test/quic_multistream_test.c
548
return h->s;
crypto/openssl/test/quic_multistream_test.c
5481
static int check_write_buf_stat(struct helper *h, struct helper_local *hl)
crypto/openssl/test/quic_multistream_test.c
550
ossl_crypto_mutex_lock(h->server_thread.m);
crypto/openssl/test/quic_multistream_test.c
551
h->s = h->s_priv;
crypto/openssl/test/quic_multistream_test.c
553
return h->s;
crypto/openssl/test/quic_multistream_test.c
5567
ossl_unused static int script_85_poll(struct helper *h, struct helper_local *hl)
crypto/openssl/test/quic_multistream_test.c
557
static void s_unlock(struct helper *h, struct helper_local *hl)
crypto/openssl/test/quic_multistream_test.c
559
int *p_checked_out = s_checked_out_p(h, hl->thread_idx);
crypto/openssl/test/quic_multistream_test.c
5603
item->desc = SSL_as_poll_descriptor(h->c_conn);
crypto/openssl/test/quic_multistream_test.c
561
if (h->server_thread.m == NULL || !*p_checked_out)
crypto/openssl/test/quic_multistream_test.c
565
h->s = NULL;
crypto/openssl/test/quic_multistream_test.c
566
ossl_crypto_mutex_unlock(h->server_thread.m);
crypto/openssl/test/quic_multistream_test.c
5708
static int set_event_handling_mode_conn(struct helper *h, struct helper_local *hl)
crypto/openssl/test/quic_multistream_test.c
571
struct helper *h = arg;
crypto/openssl/test/quic_multistream_test.c
5711
return SSL_set_event_handling_mode(h->c_conn, hl->check_op->arg2);
crypto/openssl/test/quic_multistream_test.c
5714
static int reenable_test_event_handling(struct helper *h, struct helper_local *hl)
crypto/openssl/test/quic_multistream_test.c
5720
static ossl_unused int set_event_handling_mode_stream(struct helper *h, struct helper_local *hl)
crypto/openssl/test/quic_multistream_test.c
573
ossl_crypto_mutex_lock(h->server_thread.m);
crypto/openssl/test/quic_multistream_test.c
578
ready = h->server_thread.ready;
crypto/openssl/test/quic_multistream_test.c
579
stop = h->server_thread.stop;
crypto/openssl/test/quic_multistream_test.c
585
ossl_crypto_condvar_wait(h->server_thread.c, h->server_thread.m);
crypto/openssl/test/quic_multistream_test.c
589
ossl_quic_tserver_tick(h->s_priv);
crypto/openssl/test/quic_multistream_test.c
590
ossl_crypto_mutex_unlock(h->server_thread.m);
crypto/openssl/test/quic_multistream_test.c
596
ossl_crypto_mutex_lock(h->server_thread.m);
crypto/openssl/test/quic_multistream_test.c
599
ossl_crypto_mutex_unlock(h->server_thread.m);
crypto/openssl/test/quic_multistream_test.c
605
static QUIC_TSERVER *s_lock(struct helper *h, struct helper_local *hl)
crypto/openssl/test/quic_multistream_test.c
607
return h->s;
crypto/openssl/test/quic_multistream_test.c
610
static void s_unlock(struct helper *h, struct helper_local *hl)
crypto/openssl/test/quic_multistream_test.c
616
static void helper_cleanup(struct helper *h)
crypto/openssl/test/quic_multistream_test.c
619
join_threads(h->threads, h->num_threads);
crypto/openssl/test/quic_multistream_test.c
620
join_server_thread(h);
crypto/openssl/test/quic_multistream_test.c
621
OPENSSL_free(h->threads);
crypto/openssl/test/quic_multistream_test.c
622
h->threads = NULL;
crypto/openssl/test/quic_multistream_test.c
623
h->num_threads = 0;
crypto/openssl/test/quic_multistream_test.c
626
if (h->free_order == 0) {
crypto/openssl/test/quic_multistream_test.c
628
helper_cleanup_streams(&h->c_streams);
crypto/openssl/test/quic_multistream_test.c
630
SSL_free(h->c_conn);
crypto/openssl/test/quic_multistream_test.c
631
h->c_conn = NULL;
crypto/openssl/test/quic_multistream_test.c
634
SSL_free(h->c_conn);
crypto/openssl/test/quic_multistream_test.c
635
h->c_conn = NULL;
crypto/openssl/test/quic_multistream_test.c
637
helper_cleanup_streams(&h->c_streams);
crypto/openssl/test/quic_multistream_test.c
640
helper_cleanup_streams(&h->s_streams);
crypto/openssl/test/quic_multistream_test.c
641
ossl_quic_tserver_free(h->s_priv);
crypto/openssl/test/quic_multistream_test.c
642
h->s_priv = h->s = NULL;
crypto/openssl/test/quic_multistream_test.c
644
BIO_free(h->s_net_bio_own);
crypto/openssl/test/quic_multistream_test.c
645
h->s_net_bio_own = NULL;
crypto/openssl/test/quic_multistream_test.c
647
BIO_free(h->c_net_bio_own);
crypto/openssl/test/quic_multistream_test.c
648
h->c_net_bio_own = NULL;
crypto/openssl/test/quic_multistream_test.c
650
BIO_free(h->s_qtf_wbio_own);
crypto/openssl/test/quic_multistream_test.c
651
h->s_qtf_wbio_own = NULL;
crypto/openssl/test/quic_multistream_test.c
653
qtest_fault_free(h->qtf);
crypto/openssl/test/quic_multistream_test.c
654
h->qtf = NULL;
crypto/openssl/test/quic_multistream_test.c
656
if (h->s_fd >= 0) {
crypto/openssl/test/quic_multistream_test.c
657
BIO_closesocket(h->s_fd);
crypto/openssl/test/quic_multistream_test.c
658
h->s_fd = -1;
crypto/openssl/test/quic_multistream_test.c
661
if (h->c_fd >= 0) {
crypto/openssl/test/quic_multistream_test.c
662
BIO_closesocket(h->c_fd);
crypto/openssl/test/quic_multistream_test.c
663
h->c_fd = -1;
crypto/openssl/test/quic_multistream_test.c
666
BIO_ADDR_free(h->s_net_bio_addr);
crypto/openssl/test/quic_multistream_test.c
667
h->s_net_bio_addr = NULL;
crypto/openssl/test/quic_multistream_test.c
668
BIO_ADDR_free(h->s_net_bio_orig_addr);
crypto/openssl/test/quic_multistream_test.c
669
h->s_net_bio_orig_addr = NULL;
crypto/openssl/test/quic_multistream_test.c
671
SSL_CTX_free(h->c_ctx);
crypto/openssl/test/quic_multistream_test.c
672
h->c_ctx = NULL;
crypto/openssl/test/quic_multistream_test.c
674
CRYPTO_THREAD_lock_free(h->time_lock);
crypto/openssl/test/quic_multistream_test.c
675
h->time_lock = NULL;
crypto/openssl/test/quic_multistream_test.c
678
ossl_crypto_mutex_free(&h->misc_m);
crypto/openssl/test/quic_multistream_test.c
679
ossl_crypto_condvar_free(&h->misc_cv);
crypto/openssl/test/quic_multistream_test.c
680
ossl_crypto_mutex_free(&h->server_thread.m);
crypto/openssl/test/quic_multistream_test.c
681
ossl_crypto_condvar_free(&h->server_thread.c);
crypto/openssl/test/quic_multistream_test.c
685
static int helper_init(struct helper *h, const char *script_name,
crypto/openssl/test/quic_multistream_test.c
695
memset(h, 0, sizeof(*h));
crypto/openssl/test/quic_multistream_test.c
696
h->c_fd = -1;
crypto/openssl/test/quic_multistream_test.c
697
h->s_fd = -1;
crypto/openssl/test/quic_multistream_test.c
698
h->free_order = free_order;
crypto/openssl/test/quic_multistream_test.c
699
h->blocking = blocking;
crypto/openssl/test/quic_multistream_test.c
700
h->need_injector = need_injector;
crypto/openssl/test/quic_multistream_test.c
701
h->time_slip = ossl_time_zero();
crypto/openssl/test/quic_multistream_test.c
707
if (!TEST_ptr(h->time_lock = CRYPTO_THREAD_lock_new()))
crypto/openssl/test/quic_multistream_test.c
710
if (!TEST_ptr(h->s_streams = lh_STREAM_INFO_new(stream_info_hash,
crypto/openssl/test/quic_multistream_test.c
714
if (!TEST_ptr(h->c_streams = lh_STREAM_INFO_new(stream_info_hash,
crypto/openssl/test/quic_multistream_test.c
720
h->s_fd = BIO_socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP, 0);
crypto/openssl/test/quic_multistream_test.c
721
if (!TEST_int_ge(h->s_fd, 0))
crypto/openssl/test/quic_multistream_test.c
724
if (!TEST_true(BIO_socket_nbio(h->s_fd, 1)))
crypto/openssl/test/quic_multistream_test.c
727
if (!TEST_ptr(h->s_net_bio_orig_addr = BIO_ADDR_new())
crypto/openssl/test/quic_multistream_test.c
728
|| !TEST_ptr(h->s_net_bio_addr = BIO_ADDR_new()))
crypto/openssl/test/quic_multistream_test.c
731
if (!TEST_true(BIO_ADDR_rawmake(h->s_net_bio_orig_addr, AF_INET,
crypto/openssl/test/quic_multistream_test.c
735
if (!TEST_true(BIO_bind(h->s_fd, h->s_net_bio_orig_addr, 0)))
crypto/openssl/test/quic_multistream_test.c
738
info.addr = h->s_net_bio_addr;
crypto/openssl/test/quic_multistream_test.c
739
if (!TEST_true(BIO_sock_info(h->s_fd, BIO_SOCK_INFO_ADDRESS, &info)))
crypto/openssl/test/quic_multistream_test.c
742
if (!TEST_int_gt(BIO_ADDR_rawport(h->s_net_bio_addr), 0))
crypto/openssl/test/quic_multistream_test.c
745
if (!TEST_ptr(h->s_net_bio = h->s_net_bio_own = BIO_new_dgram(h->s_fd, 0)))
crypto/openssl/test/quic_multistream_test.c
748
if (!BIO_up_ref(h->s_net_bio))
crypto/openssl/test/quic_multistream_test.c
752
h->s_qtf_wbio = h->s_qtf_wbio_own = BIO_new(qtest_get_bio_method());
crypto/openssl/test/quic_multistream_test.c
753
if (!TEST_ptr(h->s_qtf_wbio))
crypto/openssl/test/quic_multistream_test.c
756
if (!TEST_ptr(BIO_push(h->s_qtf_wbio, h->s_net_bio)))
crypto/openssl/test/quic_multistream_test.c
759
s_args.net_wbio = h->s_qtf_wbio;
crypto/openssl/test/quic_multistream_test.c
761
s_args.net_wbio = h->s_net_bio;
crypto/openssl/test/quic_multistream_test.c
764
s_args.net_rbio = h->s_net_bio;
crypto/openssl/test/quic_multistream_test.c
767
s_args.now_cb_arg = h;
crypto/openssl/test/quic_multistream_test.c
770
if (!TEST_ptr(h->s_priv = ossl_quic_tserver_new(&s_args, certfile, keyfile)))
crypto/openssl/test/quic_multistream_test.c
774
h->s = h->s_priv;
crypto/openssl/test/quic_multistream_test.c
777
h->qtf = qtest_create_injector(h->s_priv);
crypto/openssl/test/quic_multistream_test.c
778
if (!TEST_ptr(h->qtf))
crypto/openssl/test/quic_multistream_test.c
780
bdata->fault = h->qtf;
crypto/openssl/test/quic_multistream_test.c
781
BIO_set_data(h->s_qtf_wbio, bdata);
crypto/openssl/test/quic_multistream_test.c
784
h->s_net_bio_own = NULL;
crypto/openssl/test/quic_multistream_test.c
785
h->s_qtf_wbio_own = NULL;
crypto/openssl/test/quic_multistream_test.c
787
h->c_fd = BIO_socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP, 0);
crypto/openssl/test/quic_multistream_test.c
788
if (!TEST_int_ge(h->c_fd, 0))
crypto/openssl/test/quic_multistream_test.c
791
if (!TEST_true(BIO_socket_nbio(h->c_fd, 1)))
crypto/openssl/test/quic_multistream_test.c
794
if (!TEST_ptr(h->c_net_bio = h->c_net_bio_own = BIO_new_dgram(h->c_fd, 0)))
crypto/openssl/test/quic_multistream_test.c
797
if (!TEST_true(BIO_dgram_set_peer(h->c_net_bio, h->s_net_bio_addr)))
crypto/openssl/test/quic_multistream_test.c
800
if (!TEST_ptr(h->c_ctx = SSL_CTX_new(OSSL_QUIC_client_method())))
crypto/openssl/test/quic_multistream_test.c
805
if (!TEST_true(ossl_quic_set_diag_title(h->c_ctx, title)))
crypto/openssl/test/quic_multistream_test.c
808
if (!TEST_ptr(h->c_conn = SSL_new(h->c_ctx)))
crypto/openssl/test/quic_multistream_test.c
812
if (!TEST_true(ossl_quic_set_override_now_cb(h->c_conn, get_time, h)))
crypto/openssl/test/quic_multistream_test.c
816
SSL_set0_rbio(h->c_conn, h->c_net_bio);
crypto/openssl/test/quic_multistream_test.c
817
h->c_net_bio_own = NULL;
crypto/openssl/test/quic_multistream_test.c
819
if (!TEST_true(BIO_up_ref(h->c_net_bio)))
crypto/openssl/test/quic_multistream_test.c
822
SSL_set0_wbio(h->c_conn, h->c_net_bio);
crypto/openssl/test/quic_multistream_test.c
824
if (!TEST_true(SSL_set_blocking_mode(h->c_conn, h->blocking)))
crypto/openssl/test/quic_multistream_test.c
828
if (!TEST_ptr(h->misc_m = ossl_crypto_mutex_new()))
crypto/openssl/test/quic_multistream_test.c
830
if (!TEST_ptr(h->misc_cv = ossl_crypto_condvar_new()))
crypto/openssl/test/quic_multistream_test.c
834
if (h->blocking) {
crypto/openssl/test/quic_multistream_test.c
836
if (!TEST_ptr(h->server_thread.m = ossl_crypto_mutex_new()))
crypto/openssl/test/quic_multistream_test.c
839
if (!TEST_ptr(h->server_thread.c = ossl_crypto_condvar_new()))
crypto/openssl/test/quic_multistream_test.c
842
h->server_thread.t
crypto/openssl/test/quic_multistream_test.c
843
= ossl_crypto_thread_native_start(server_helper_thread, h, 1);
crypto/openssl/test/quic_multistream_test.c
844
if (!TEST_ptr(h->server_thread.t))
crypto/openssl/test/quic_multistream_test.c
852
h->start_time = ossl_time_now();
crypto/openssl/test/quic_multistream_test.c
853
h->init = 1;
crypto/openssl/test/quic_multistream_test.c
857
helper_cleanup(h);
crypto/openssl/test/quic_multistream_test.c
861
static int helper_local_init(struct helper_local *hl, struct helper *h,
crypto/openssl/test/quic_multistream_test.c
864
hl->h = h;
crypto/openssl/test/quic_multistream_test.c
869
if (!TEST_ptr(h))
crypto/openssl/test/quic_multistream_test.c
873
hl->c_streams = h->c_streams;
crypto/openssl/test/quic_multistream_test.c
885
if (hl->h == NULL)
crypto/openssl/test/quic_multistream_test.c
891
hl->h = NULL;
crypto/openssl/test/quic_multistream_test.c
940
return hl->h->c_conn;
crypto/openssl/test/quic_multistream_test.c
950
helper_set_s_stream(struct helper *h, const char *stream_name,
crypto/openssl/test/quic_multistream_test.c
958
info = get_stream_info(h->s_streams, stream_name);
crypto/openssl/test/quic_multistream_test.c
967
static uint64_t helper_get_s_stream(struct helper *h, const char *stream_name)
crypto/openssl/test/quic_multistream_test.c
974
info = get_stream_info(h->s_streams, stream_name);
crypto/openssl/test/quic_multistream_test.c
985
struct helper *h = arg;
crypto/openssl/test/quic_multistream_test.c
987
return h->qtf_packet_plain_cb(h, hdr, buf, buf_len);
crypto/openssl/test/quic_multistream_test.c
994
struct helper *h = arg;
crypto/openssl/test/quic_multistream_test.c
996
return h->qtf_handshake_cb(h, buf, buf_len);
crypto/openssl/test/quic_txp_test.c
1037
static int check_stream_12(struct helper *h)
crypto/openssl/test/quic_txp_test.c
1039
if (!TEST_uint64_t_eq(h->frame.stop_sending.stream_id, 42)
crypto/openssl/test/quic_txp_test.c
104
ossl_ackm_on_pkt_space_discarded(h->args.ackm, pn_space);
crypto/openssl/test/quic_txp_test.c
1040
|| !TEST_uint64_t_eq(h->frame.stop_sending.app_error_code, 4568))
crypto/openssl/test/quic_txp_test.c
106
ossl_quic_tx_packetiser_free(h->txp);
crypto/openssl/test/quic_txp_test.c
1069
static ossl_unused int check_stream_13(struct helper *h)
crypto/openssl/test/quic_txp_test.c
107
ossl_qtx_free(h->args.qtx);
crypto/openssl/test/quic_txp_test.c
1071
if (!TEST_uint64_t_eq(h->frame.reset_stream.stream_id, 42)
crypto/openssl/test/quic_txp_test.c
1072
|| !TEST_uint64_t_eq(h->frame.reset_stream.app_error_code, 4568)
crypto/openssl/test/quic_txp_test.c
1073
|| !TEST_uint64_t_eq(h->frame.reset_stream.final_size, 0))
crypto/openssl/test/quic_txp_test.c
108
ossl_quic_txpim_free(h->args.txpim);
crypto/openssl/test/quic_txp_test.c
109
ossl_quic_cfq_free(h->args.cfq);
crypto/openssl/test/quic_txp_test.c
110
if (h->cc_data != NULL)
crypto/openssl/test/quic_txp_test.c
1102
static int gen_conn_close(struct helper *h)
crypto/openssl/test/quic_txp_test.c
111
h->cc_method->free(h->cc_data);
crypto/openssl/test/quic_txp_test.c
1111
if (!TEST_true(ossl_quic_tx_packetiser_schedule_conn_close(h->txp, &f)))
crypto/openssl/test/quic_txp_test.c
1117
static int check_14(struct helper *h)
crypto/openssl/test/quic_txp_test.c
1119
if (!TEST_int_eq(h->frame.conn_close.is_app, 0)
crypto/openssl/test/quic_txp_test.c
112
if (h->have_statm)
crypto/openssl/test/quic_txp_test.c
1120
|| !TEST_uint64_t_eq(h->frame.conn_close.frame_type,
crypto/openssl/test/quic_txp_test.c
1122
|| !TEST_uint64_t_eq(h->frame.conn_close.error_code, 2345)
crypto/openssl/test/quic_txp_test.c
1123
|| !TEST_mem_eq(h->frame.conn_close.reason, h->frame.conn_close.reason_len,
crypto/openssl/test/quic_txp_test.c
113
ossl_statm_destroy(&h->statm);
crypto/openssl/test/quic_txp_test.c
114
if (h->have_qsm)
crypto/openssl/test/quic_txp_test.c
1147
static int gen_probe_initial(struct helper *h)
crypto/openssl/test/quic_txp_test.c
1149
OSSL_ACKM_PROBE_INFO *probe = ossl_ackm_get0_probe_request(h->args.ackm);
crypto/openssl/test/quic_txp_test.c
115
ossl_quic_stream_map_cleanup(&h->qsm);
crypto/openssl/test/quic_txp_test.c
117
ossl_quic_sstream_free(h->args.crypto[i]);
crypto/openssl/test/quic_txp_test.c
1175
static int gen_probe_handshake(struct helper *h)
crypto/openssl/test/quic_txp_test.c
1177
OSSL_ACKM_PROBE_INFO *probe = ossl_ackm_get0_probe_request(h->args.ackm);
crypto/openssl/test/quic_txp_test.c
118
ossl_ackm_free(h->args.ackm);
crypto/openssl/test/quic_txp_test.c
119
ossl_qrx_free(h->qrx);
crypto/openssl/test/quic_txp_test.c
120
ossl_quic_demux_free(h->demux);
crypto/openssl/test/quic_txp_test.c
1204
static int gen_probe_1rtt(struct helper *h)
crypto/openssl/test/quic_txp_test.c
1206
OSSL_ACKM_PROBE_INFO *probe = ossl_ackm_get0_probe_request(h->args.ackm);
crypto/openssl/test/quic_txp_test.c
121
BIO_free(h->bio1);
crypto/openssl/test/quic_txp_test.c
122
BIO_free(h->bio2);
crypto/openssl/test/quic_txp_test.c
1236
static int try_big_token(struct helper *h)
crypto/openssl/test/quic_txp_test.c
1241
if (!TEST_false(ossl_quic_tx_packetiser_set_initial_token(h->txp,
crypto/openssl/test/quic_txp_test.c
1256
if (ossl_quic_tx_packetiser_set_initial_token(h->txp, big_token, i,
crypto/openssl/test/quic_txp_test.c
128
struct helper *h = arg;
crypto/openssl/test/quic_txp_test.c
1302
static void skip_padding(struct helper *h)
crypto/openssl/test/quic_txp_test.c
1306
if (!ossl_quic_wire_peek_frame_header(&h->pkt, &frame_type, NULL))
crypto/openssl/test/quic_txp_test.c
1310
ossl_quic_wire_decode_padding(&h->pkt);
crypto/openssl/test/quic_txp_test.c
1317
struct helper h;
crypto/openssl/test/quic_txp_test.c
1321
if (!helper_init(&h))
crypto/openssl/test/quic_txp_test.c
1328
if (!TEST_true(ossl_quic_tx_packetiser_generate(h.txp, &status))
crypto/openssl/test/quic_txp_test.c
133
ossl_qrx_inject_urxe(h->qrx, e);
crypto/openssl/test/quic_txp_test.c
1332
ossl_qtx_finish_dgram(h.args.qtx);
crypto/openssl/test/quic_txp_test.c
1333
ossl_qtx_flush_net(h.args.qtx);
crypto/openssl/test/quic_txp_test.c
1336
if (!TEST_true(ossl_quic_tx_packetiser_generate(h.txp, &status))
crypto/openssl/test/quic_txp_test.c
1342
ossl_quic_demux_pump(h.demux);
crypto/openssl/test/quic_txp_test.c
1343
ossl_qrx_pkt_release(h.qrx_pkt);
crypto/openssl/test/quic_txp_test.c
1344
h.qrx_pkt = NULL;
crypto/openssl/test/quic_txp_test.c
1345
if (!TEST_true(ossl_qrx_read_pkt(h.qrx, &h.qrx_pkt)))
crypto/openssl/test/quic_txp_test.c
1347
if (!TEST_true(PACKET_buf_init(&h.pkt,
crypto/openssl/test/quic_txp_test.c
1348
h.qrx_pkt->hdr->data,
crypto/openssl/test/quic_txp_test.c
1349
h.qrx_pkt->hdr->len)))
crypto/openssl/test/quic_txp_test.c
1351
h.frame_type = UINT64_MAX;
crypto/openssl/test/quic_txp_test.c
1354
ossl_quic_demux_pump(h.demux);
crypto/openssl/test/quic_txp_test.c
1355
if (!TEST_false(ossl_qrx_read_pkt(h.qrx, &h.qrx_pkt)))
crypto/openssl/test/quic_txp_test.c
1357
h.frame_type = UINT64_MAX;
crypto/openssl/test/quic_txp_test.c
136
static int helper_init(struct helper *h)
crypto/openssl/test/quic_txp_test.c
1360
if (!TEST_size_t_ge(h.qrx_pkt->datagram_len, (size_t)op->arg0)
crypto/openssl/test/quic_txp_test.c
1361
|| !TEST_size_t_le(h.qrx_pkt->datagram_len, (size_t)op->arg1))
crypto/openssl/test/quic_txp_test.c
1365
if (!TEST_uint64_t_eq(h.frame_type, op->arg0))
crypto/openssl/test/quic_txp_test.c
1369
if (!TEST_mem_eq(h.qrx_pkt->hdr->token, h.qrx_pkt->hdr->token_len,
crypto/openssl/test/quic_txp_test.c
1374
if (!TEST_true(cmp_pkt_hdr(h.qrx_pkt->hdr, op->buf,
crypto/openssl/test/quic_txp_test.c
1379
if (!TEST_true(op->check_func(&h)))
crypto/openssl/test/quic_txp_test.c
1383
skip_padding(&h);
crypto/openssl/test/quic_txp_test.c
1384
if (!ossl_quic_wire_peek_frame_header(&h.pkt, &h.frame_type, NULL)) {
crypto/openssl/test/quic_txp_test.c
1385
h.frame_type = UINT64_MAX;
crypto/openssl/test/quic_txp_test.c
1389
switch (h.frame_type) {
crypto/openssl/test/quic_txp_test.c
1391
if (!TEST_true(ossl_quic_wire_decode_frame_handshake_done(&h.pkt)))
crypto/openssl/test/quic_txp_test.c
1395
if (!TEST_true(ossl_quic_wire_decode_frame_ping(&h.pkt)))
crypto/openssl/test/quic_txp_test.c
1399
if (!TEST_true(ossl_quic_wire_decode_frame_max_data(&h.pkt,
crypto/openssl/test/quic_txp_test.c
1400
&h.frame.max_data)))
crypto/openssl/test/quic_txp_test.c
1404
if (!TEST_true(ossl_quic_wire_decode_frame_new_conn_id(&h.pkt,
crypto/openssl/test/quic_txp_test.c
1405
&h.frame.new_conn_id)))
crypto/openssl/test/quic_txp_test.c
1409
if (!TEST_true(ossl_quic_wire_decode_frame_new_token(&h.pkt,
crypto/openssl/test/quic_txp_test.c
141
memset(h, 0, sizeof(*h));
crypto/openssl/test/quic_txp_test.c
1410
&h.frame.new_token.token,
crypto/openssl/test/quic_txp_test.c
1411
&h.frame.new_token.token_len)))
crypto/openssl/test/quic_txp_test.c
1416
h.frame.ack.ack_ranges = h.ack_ranges;
crypto/openssl/test/quic_txp_test.c
1417
h.frame.ack.num_ack_ranges = OSSL_NELEM(h.ack_ranges);
crypto/openssl/test/quic_txp_test.c
1418
if (!TEST_true(ossl_quic_wire_decode_frame_ack(&h.pkt,
crypto/openssl/test/quic_txp_test.c
1419
h.args.ack_delay_exponent,
crypto/openssl/test/quic_txp_test.c
1420
&h.frame.ack,
crypto/openssl/test/quic_txp_test.c
1425
if (!TEST_true(ossl_quic_wire_decode_frame_crypto(&h.pkt, 0, &h.frame.crypto)))
crypto/openssl/test/quic_txp_test.c
1437
if (!TEST_true(ossl_quic_wire_decode_frame_stream(&h.pkt, 0, &h.frame.stream)))
crypto/openssl/test/quic_txp_test.c
144
if (!TEST_true(BIO_new_bio_dgram_pair(&h->bio1, 0, &h->bio2, 0)))
crypto/openssl/test/quic_txp_test.c
1442
if (!TEST_true(ossl_quic_wire_decode_frame_stop_sending(&h.pkt,
crypto/openssl/test/quic_txp_test.c
1443
&h.frame.stop_sending)))
crypto/openssl/test/quic_txp_test.c
1448
if (!TEST_true(ossl_quic_wire_decode_frame_reset_stream(&h.pkt,
crypto/openssl/test/quic_txp_test.c
1449
&h.frame.reset_stream)))
crypto/openssl/test/quic_txp_test.c
1455
if (!TEST_true(ossl_quic_wire_decode_frame_conn_close(&h.pkt,
crypto/openssl/test/quic_txp_test.c
1456
&h.frame.conn_close)))
crypto/openssl/test/quic_txp_test.c
1466
skip_padding(&h);
crypto/openssl/test/quic_txp_test.c
1467
if (!TEST_size_t_eq(PACKET_remaining(&h.pkt), 0))
crypto/openssl/test/quic_txp_test.c
147
h->qtx_args.bio = h->bio1;
crypto/openssl/test/quic_txp_test.c
1471
if (!TEST_true(ossl_qtx_provide_secret(h.args.qtx,
crypto/openssl/test/quic_txp_test.c
1476
if (!TEST_true(ossl_qrx_provide_secret(h.qrx,
crypto/openssl/test/quic_txp_test.c
148
h->qtx_args.mdpl = 1200;
crypto/openssl/test/quic_txp_test.c
1483
if (!TEST_true(ossl_quic_tx_packetiser_discard_enc_level(h.txp,
crypto/openssl/test/quic_txp_test.c
1495
if (!TEST_true(ossl_quic_sstream_append(h.args.crypto[op->arg0],
crypto/openssl/test/quic_txp_test.c
150
if (!TEST_ptr(h->args.qtx = ossl_qtx_new(&h->qtx_args)))
crypto/openssl/test/quic_txp_test.c
1506
if (!TEST_ptr(s = ossl_quic_stream_map_alloc(h.args.qsm, op->arg0,
crypto/openssl/test/quic_txp_test.c
1511
|| !TEST_true(ossl_quic_txfc_init(&s->txfc, &h.conn_txfc))
crypto/openssl/test/quic_txp_test.c
1512
|| !TEST_true(ossl_quic_rxfc_init(&s->rxfc, &h.conn_rxfc,
crypto/openssl/test/quic_txp_test.c
1519
ossl_quic_stream_map_release(h.args.qsm, s);
crypto/openssl/test/quic_txp_test.c
1527
if (!TEST_ptr(s = ossl_quic_stream_map_get_by_id(h.args.qsm,
crypto/openssl/test/quic_txp_test.c
153
if (!TEST_ptr(h->args.txpim = ossl_quic_txpim_new()))
crypto/openssl/test/quic_txp_test.c
1538
ossl_quic_stream_map_update_state(h.args.qsm, s);
crypto/openssl/test/quic_txp_test.c
1543
if (!TEST_ptr(s = ossl_quic_stream_map_get_by_id(h.args.qsm,
crypto/openssl/test/quic_txp_test.c
1552
if (!TEST_ptr(s = ossl_quic_stream_map_get_by_id(h.args.qsm,
crypto/openssl/test/quic_txp_test.c
1556
if (!TEST_true(ossl_quic_stream_map_stop_sending_recv_part(h.args.qsm,
crypto/openssl/test/quic_txp_test.c
156
if (!TEST_ptr(h->args.cfq = ossl_quic_cfq_new()))
crypto/openssl/test/quic_txp_test.c
1560
ossl_quic_stream_map_update_state(h.args.qsm, s);
crypto/openssl/test/quic_txp_test.c
1568
if (!TEST_ptr(s = ossl_quic_stream_map_get_by_id(h.args.qsm,
crypto/openssl/test/quic_txp_test.c
1572
if (!TEST_true(ossl_quic_stream_map_reset_stream_send_part(h.args.qsm,
crypto/openssl/test/quic_txp_test.c
1576
ossl_quic_stream_map_update_state(h.args.qsm, s);
crypto/openssl/test/quic_txp_test.c
1582
if (!TEST_true(ossl_quic_txfc_bump_cwm(h.args.conn_txfc, op->arg0)))
crypto/openssl/test/quic_txp_test.c
1589
if (!TEST_ptr(s = ossl_quic_stream_map_get_by_id(h.args.qsm,
crypto/openssl/test/quic_txp_test.c
159
if (!TEST_true(ossl_quic_txfc_init(&h->conn_txfc, NULL)))
crypto/openssl/test/quic_txp_test.c
1596
ossl_quic_stream_map_update_state(h.args.qsm, s);
crypto/openssl/test/quic_txp_test.c
1599
ossl_quic_tx_packetiser_notify_handshake_complete(h.txp);
crypto/openssl/test/quic_txp_test.c
1614
helper_cleanup(&h);
crypto/openssl/test/quic_txp_test.c
162
if (!TEST_true(ossl_quic_rxfc_init(&h->conn_rxfc, NULL,
crypto/openssl/test/quic_txp_test.c
1650
static int check_is_initial(struct helper *h)
crypto/openssl/test/quic_txp_test.c
1652
return h->qrx_pkt->hdr->type == QUIC_PKT_TYPE_INITIAL;
crypto/openssl/test/quic_txp_test.c
1655
static int check_is_handshake(struct helper *h)
crypto/openssl/test/quic_txp_test.c
1657
return h->qrx_pkt->hdr->type == QUIC_PKT_TYPE_HANDSHAKE;
crypto/openssl/test/quic_txp_test.c
169
if (!TEST_true(ossl_quic_rxfc_init(&h->stream_rxfc, &h->conn_rxfc,
crypto/openssl/test/quic_txp_test.c
176
if (!TEST_true(ossl_quic_rxfc_init(&h->max_streams_bidi_rxfc, NULL,
crypto/openssl/test/quic_txp_test.c
182
if (!TEST_true(ossl_quic_rxfc_init(&h->max_streams_uni_rxfc, NULL,
crypto/openssl/test/quic_txp_test.c
187
if (!TEST_true(ossl_statm_init(&h->statm)))
crypto/openssl/test/quic_txp_test.c
190
h->have_statm = 1;
crypto/openssl/test/quic_txp_test.c
192
h->cc_method = &ossl_cc_dummy_method;
crypto/openssl/test/quic_txp_test.c
193
if (!TEST_ptr(h->cc_data = h->cc_method->new(fake_now, NULL)))
crypto/openssl/test/quic_txp_test.c
196
if (!TEST_ptr(h->args.ackm = ossl_ackm_new(fake_now, NULL,
crypto/openssl/test/quic_txp_test.c
197
&h->statm,
crypto/openssl/test/quic_txp_test.c
198
h->cc_method,
crypto/openssl/test/quic_txp_test.c
199
h->cc_data,
crypto/openssl/test/quic_txp_test.c
203
if (!TEST_true(ossl_quic_stream_map_init(&h->qsm, NULL, NULL,
crypto/openssl/test/quic_txp_test.c
204
&h->max_streams_bidi_rxfc,
crypto/openssl/test/quic_txp_test.c
205
&h->max_streams_uni_rxfc,
crypto/openssl/test/quic_txp_test.c
209
h->have_qsm = 1;
crypto/openssl/test/quic_txp_test.c
212
if (!TEST_ptr(h->args.crypto[i] = ossl_quic_sstream_new(4096)))
crypto/openssl/test/quic_txp_test.c
215
h->args.cur_scid = scid_1;
crypto/openssl/test/quic_txp_test.c
216
h->args.cur_dcid = dcid_1;
crypto/openssl/test/quic_txp_test.c
217
h->args.qsm = &h->qsm;
crypto/openssl/test/quic_txp_test.c
218
h->args.conn_txfc = &h->conn_txfc;
crypto/openssl/test/quic_txp_test.c
219
h->args.conn_rxfc = &h->conn_rxfc;
crypto/openssl/test/quic_txp_test.c
220
h->args.max_streams_bidi_rxfc = &h->max_streams_bidi_rxfc;
crypto/openssl/test/quic_txp_test.c
221
h->args.max_streams_uni_rxfc = &h->max_streams_uni_rxfc;
crypto/openssl/test/quic_txp_test.c
222
h->args.cc_method = h->cc_method;
crypto/openssl/test/quic_txp_test.c
223
h->args.cc_data = h->cc_data;
crypto/openssl/test/quic_txp_test.c
224
h->args.now = fake_now;
crypto/openssl/test/quic_txp_test.c
225
h->args.protocol_version = QUIC_VERSION_1;
crypto/openssl/test/quic_txp_test.c
227
if (!TEST_ptr(h->txp = ossl_quic_tx_packetiser_new(&h->args)))
crypto/openssl/test/quic_txp_test.c
234
ossl_quic_tx_packetiser_set_validated(h->txp);
crypto/openssl/test/quic_txp_test.c
236
if (!TEST_ptr(h->demux = ossl_quic_demux_new(h->bio2, 8,
crypto/openssl/test/quic_txp_test.c
240
ossl_quic_demux_set_default_handler(h->demux, demux_default_handler, h);
crypto/openssl/test/quic_txp_test.c
242
h->qrx_args.demux = h->demux;
crypto/openssl/test/quic_txp_test.c
243
h->qrx_args.short_conn_id_len = 8;
crypto/openssl/test/quic_txp_test.c
244
h->qrx_args.max_deferred = 32;
crypto/openssl/test/quic_txp_test.c
246
if (!TEST_ptr(h->qrx = ossl_qrx_new(&h->qrx_args)))
crypto/openssl/test/quic_txp_test.c
249
ossl_qrx_allow_1rtt_processing(h->qrx);
crypto/openssl/test/quic_txp_test.c
254
helper_cleanup(h);
crypto/openssl/test/quic_txp_test.c
289
int (*check_func)(struct helper *h);
crypto/openssl/test/quic_txp_test.c
341
static int schedule_handshake_done(struct helper *h)
crypto/openssl/test/quic_txp_test.c
343
ossl_quic_tx_packetiser_schedule_handshake_done(h->txp);
crypto/openssl/test/quic_txp_test.c
347
static int schedule_ack_eliciting_app(struct helper *h)
crypto/openssl/test/quic_txp_test.c
349
ossl_quic_tx_packetiser_schedule_ack_eliciting(h->txp, QUIC_PN_SPACE_APP);
crypto/openssl/test/quic_txp_test.c
389
static int schedule_max_data(struct helper *h)
crypto/openssl/test/quic_txp_test.c
393
cwm = ossl_quic_rxfc_get_cwm(&h->stream_rxfc);
crypto/openssl/test/quic_txp_test.c
395
if (!TEST_true(ossl_quic_rxfc_on_rx_stream_frame(&h->stream_rxfc, cwm, 0))
crypto/openssl/test/quic_txp_test.c
396
|| !TEST_true(ossl_quic_rxfc_on_retire(&h->stream_rxfc, cwm,
crypto/openssl/test/quic_txp_test.c
426
static int schedule_cfq_new_conn_id(struct helper *h)
crypto/openssl/test/quic_txp_test.c
456
if (!TEST_ptr(cfq_item = ossl_quic_cfq_add_frame(h->args.cfq, 1,
crypto/openssl/test/quic_txp_test.c
471
static int check_cfq_new_conn_id(struct helper *h)
crypto/openssl/test/quic_txp_test.c
473
if (!TEST_uint64_t_eq(h->frame.new_conn_id.seq_num, 2345)
crypto/openssl/test/quic_txp_test.c
474
|| !TEST_uint64_t_eq(h->frame.new_conn_id.retire_prior_to, 1234)
crypto/openssl/test/quic_txp_test.c
475
|| !TEST_mem_eq(&h->frame.new_conn_id.conn_id, sizeof(cid_1),
crypto/openssl/test/quic_txp_test.c
477
|| !TEST_mem_eq(&h->frame.new_conn_id.stateless_reset.token,
crypto/openssl/test/quic_txp_test.c
507
static int schedule_cfq_new_token(struct helper *h)
crypto/openssl/test/quic_txp_test.c
532
if (!TEST_ptr(cfq_item = ossl_quic_cfq_add_frame(h->args.cfq, 1,
crypto/openssl/test/quic_txp_test.c
547
static int check_cfq_new_token(struct helper *h)
crypto/openssl/test/quic_txp_test.c
549
if (!TEST_mem_eq(h->frame.new_token.token,
crypto/openssl/test/quic_txp_test.c
550
h->frame.new_token.token_len,
crypto/openssl/test/quic_txp_test.c
575
static int schedule_ack(struct helper *h)
crypto/openssl/test/quic_txp_test.c
587
if (!TEST_true(ossl_ackm_on_rx_packet(h->args.ackm, &rx_pkt)))
crypto/openssl/test/quic_txp_test.c
654
static int check_stream_9(struct helper *h)
crypto/openssl/test/quic_txp_test.c
656
if (!TEST_mem_eq(h->frame.stream.data, (size_t)h->frame.stream.len,
crypto/openssl/test/quic_txp_test.c
914
static int check_stream_10a(struct helper *h)
crypto/openssl/test/quic_txp_test.c
920
if (!TEST_uint64_t_ge(h->frame.stream.len, 1150)
crypto/openssl/test/quic_txp_test.c
921
|| !TEST_uint64_t_le(h->frame.stream.len, 1200))
crypto/openssl/test/quic_txp_test.c
924
if (!TEST_mem_eq(h->frame.stream.data, (size_t)h->frame.stream.len,
crypto/openssl/test/quic_txp_test.c
925
stream_10a, (size_t)h->frame.stream.len))
crypto/openssl/test/quic_txp_test.c
928
stream_10a_off = h->frame.stream.offset + h->frame.stream.len;
crypto/openssl/test/quic_txp_test.c
93
static void helper_cleanup(struct helper *h)
crypto/openssl/test/quic_txp_test.c
932
static int check_stream_10b(struct helper *h)
crypto/openssl/test/quic_txp_test.c
934
if (!TEST_uint64_t_ge(h->frame.stream.len, 1150)
crypto/openssl/test/quic_txp_test.c
935
|| !TEST_uint64_t_le(h->frame.stream.len, 1200))
crypto/openssl/test/quic_txp_test.c
938
if (!TEST_mem_eq(h->frame.stream.data, (size_t)h->frame.stream.len,
crypto/openssl/test/quic_txp_test.c
939
stream_10b, (size_t)h->frame.stream.len))
crypto/openssl/test/quic_txp_test.c
942
stream_10b_off = h->frame.stream.offset + h->frame.stream.len;
crypto/openssl/test/quic_txp_test.c
946
static int check_stream_10c(struct helper *h)
crypto/openssl/test/quic_txp_test.c
948
if (!TEST_uint64_t_ge(h->frame.stream.len, 5)
crypto/openssl/test/quic_txp_test.c
949
|| !TEST_uint64_t_le(h->frame.stream.len, 200))
crypto/openssl/test/quic_txp_test.c
952
if (!TEST_mem_eq(h->frame.stream.data, (size_t)h->frame.stream.len,
crypto/openssl/test/quic_txp_test.c
953
stream_10a + stream_10a_off, (size_t)h->frame.stream.len))
crypto/openssl/test/quic_txp_test.c
959
static int check_stream_10d(struct helper *h)
crypto/openssl/test/quic_txp_test.c
961
if (!TEST_uint64_t_ge(h->frame.stream.len, 5)
crypto/openssl/test/quic_txp_test.c
962
|| !TEST_uint64_t_le(h->frame.stream.len, 200))
crypto/openssl/test/quic_txp_test.c
965
if (!TEST_mem_eq(h->frame.stream.data, (size_t)h->frame.stream.len,
crypto/openssl/test/quic_txp_test.c
966
stream_10b + stream_10b_off, (size_t)h->frame.stream.len))
crypto/openssl/test/quic_txp_test.c
98
ossl_qrx_pkt_release(h->qrx_pkt);
crypto/openssl/test/quic_txp_test.c
99
h->qrx_pkt = NULL;
include/strings.h
71
#include <xlocale/_strings.h>
include/wchar.h
116
#include <ssp/wchar.h>
include/wchar.h
245
#include <xlocale/_wchar.h>
lib/clang/include/llvm/Config/config.h
135
#if __has_include(<link.h>)
lib/clang/include/llvm/Config/config.h
142
#if __has_include(<mach/mach.h>)
lib/clang/include/llvm/Config/config.h
160
#if __has_include(<malloc/malloc.h>)
lib/clang/include/llvm/Config/config.h
29
#define BACKTRACE_HEADER <execinfo.h>
lib/clang/liblldb/LLDBWrapLua.cpp
3324
#include <stdint.h> // Use the C99 official header
lib/clang/liblldb/LLDBWrapLua.cpp
353
#include <string.h>
lib/clang/liblldb/LLDBWrapLua.cpp
781
#include <stdlib.h> /* for malloc */
lib/clang/liblldb/LLDBWrapLua.cpp
782
#include <assert.h> /* for a few sanity tests */
lib/libbluetooth/hci.c
100
ng_hci_cmd_pkt_t h;
lib/libbluetooth/hci.c
111
iv[0].iov_base = &h;
lib/libbluetooth/hci.c
112
iv[0].iov_len = sizeof(h);
lib/libbluetooth/hci.c
115
h.type = NG_HCI_CMD_PKT;
lib/libbluetooth/hci.c
116
h.opcode = htole16(opcode);
lib/libbluetooth/hci.c
118
h.length = plen;
lib/libbluetooth/hci.c
124
h.length = 0;
lib/libbluetooth/hci.c
180
ng_hci_cmd_pkt_t *h = (ng_hci_cmd_pkt_t *) buf;
lib/libbluetooth/hci.c
182
if (n >= sizeof(*h) && n == (sizeof(*h) + h->length))
lib/libbluetooth/hci.c
187
ng_hci_acldata_pkt_t *h = (ng_hci_acldata_pkt_t *) buf;
lib/libbluetooth/hci.c
189
if (n >= sizeof(*h) && n == (sizeof(*h) + le16toh(h->length)))
lib/libbluetooth/hci.c
194
ng_hci_scodata_pkt_t *h = (ng_hci_scodata_pkt_t *) buf;
lib/libbluetooth/hci.c
196
if (n >= sizeof(*h) && n == (sizeof(*h) + h->length))
lib/libbluetooth/hci.c
201
ng_hci_event_pkt_t *h = (ng_hci_event_pkt_t *) buf;
lib/libbluetooth/hci.c
203
if (n >= sizeof(*h) && n == (sizeof(*h) + h->length))
lib/libc/amd64/amd64_archlevel.h
45
#include <machine/asm.h>
lib/libc/db/btree/bt_conv.c
122
PAGE *h;
lib/libc/db/btree/bt_conv.c
134
h = pp;
lib/libc/db/btree/bt_conv.c
135
top = NEXTINDEX(h);
lib/libc/db/btree/bt_conv.c
136
if ((h->flags & P_TYPE) == P_BINTERNAL)
lib/libc/db/btree/bt_conv.c
138
p = (char *)GETBINTERNAL(h, i);
lib/libc/db/btree/bt_conv.c
149
M_16_SWAP(h->linp[i]);
lib/libc/db/btree/bt_conv.c
151
else if ((h->flags & P_TYPE) == P_BLEAF)
lib/libc/db/btree/bt_conv.c
153
p = (char *)GETBLEAF(h, i);
lib/libc/db/btree/bt_conv.c
173
M_16_SWAP(h->linp[i]);
lib/libc/db/btree/bt_conv.c
176
M_32_SWAP(h->pgno);
lib/libc/db/btree/bt_conv.c
177
M_32_SWAP(h->prevpg);
lib/libc/db/btree/bt_conv.c
178
M_32_SWAP(h->nextpg);
lib/libc/db/btree/bt_conv.c
179
M_32_SWAP(h->flags);
lib/libc/db/btree/bt_conv.c
180
M_16_SWAP(h->lower);
lib/libc/db/btree/bt_conv.c
181
M_16_SWAP(h->upper);
lib/libc/db/btree/bt_conv.c
57
PAGE *h;
lib/libc/db/btree/bt_conv.c
69
h = pp;
lib/libc/db/btree/bt_conv.c
70
M_32_SWAP(h->pgno);
lib/libc/db/btree/bt_conv.c
71
M_32_SWAP(h->prevpg);
lib/libc/db/btree/bt_conv.c
72
M_32_SWAP(h->nextpg);
lib/libc/db/btree/bt_conv.c
73
M_32_SWAP(h->flags);
lib/libc/db/btree/bt_conv.c
74
M_16_SWAP(h->lower);
lib/libc/db/btree/bt_conv.c
75
M_16_SWAP(h->upper);
lib/libc/db/btree/bt_conv.c
77
top = NEXTINDEX(h);
lib/libc/db/btree/bt_conv.c
78
if ((h->flags & P_TYPE) == P_BINTERNAL)
lib/libc/db/btree/bt_conv.c
80
M_16_SWAP(h->linp[i]);
lib/libc/db/btree/bt_conv.c
81
p = (char *)GETBINTERNAL(h, i);
lib/libc/db/btree/bt_conv.c
93
else if ((h->flags & P_TYPE) == P_BLEAF)
lib/libc/db/btree/bt_conv.c
95
M_16_SWAP(h->linp[i]);
lib/libc/db/btree/bt_conv.c
96
p = (char *)GETBLEAF(h, i);
lib/libc/db/btree/bt_debug.c
130
PAGE *h;
lib/libc/db/btree/bt_debug.c
133
if ((h = mpool_get(t->bt_mp, pgno, MPOOL_IGNOREPIN)) != NULL)
lib/libc/db/btree/bt_debug.c
134
__bt_dpage(h);
lib/libc/db/btree/bt_debug.c
144
__bt_dpage(PAGE *h)
lib/libc/db/btree/bt_debug.c
153
(void)fprintf(stderr, " page %u: (", h->pgno);
lib/libc/db/btree/bt_debug.c
156
if (h->flags & flag) { \
lib/libc/db/btree/bt_debug.c
170
(void)fprintf(stderr, "\tprev %2u next %2u", h->prevpg, h->nextpg);
lib/libc/db/btree/bt_debug.c
171
if (h->flags & P_OVERFLOW)
lib/libc/db/btree/bt_debug.c
174
top = NEXTINDEX(h);
lib/libc/db/btree/bt_debug.c
176
h->lower, h->upper, top);
lib/libc/db/btree/bt_debug.c
178
(void)fprintf(stderr, "\t[%03d] %4d ", cur, h->linp[cur]);
lib/libc/db/btree/bt_debug.c
179
switch (h->flags & P_TYPE) {
lib/libc/db/btree/bt_debug.c
181
bi = GETBINTERNAL(h, cur);
lib/libc/db/btree/bt_debug.c
191
ri = GETRINTERNAL(h, cur);
lib/libc/db/btree/bt_debug.c
196
bl = GETBLEAF(h, cur);
lib/libc/db/btree/bt_debug.c
216
rl = GETRLEAF(h, cur);
lib/libc/db/btree/bt_debug.c
245
PAGE *h;
lib/libc/db/btree/bt_debug.c
254
(h = mpool_get(t->bt_mp, i, MPOOL_IGNOREPIN)) != NULL; ++i)
lib/libc/db/btree/bt_debug.c
255
switch (h->flags & P_TYPE) {
lib/libc/db/btree/bt_debug.c
259
ifree += h->upper - h->lower;
lib/libc/db/btree/bt_debug.c
264
lfree += h->upper - h->lower;
lib/libc/db/btree/bt_debug.c
265
nkeys += NEXTINDEX(h);
lib/libc/db/btree/bt_debug.c
274
h = mpool_get(t->bt_mp, i, MPOOL_IGNOREPIN);
lib/libc/db/btree/bt_debug.c
275
if (h->flags & (P_BLEAF|P_RLEAF)) {
lib/libc/db/btree/bt_debug.c
281
GETRINTERNAL(h, 0)->pgno :
lib/libc/db/btree/bt_debug.c
282
GETBINTERNAL(h, 0)->pgno;
lib/libc/db/btree/bt_debug.c
55
PAGE *h;
lib/libc/db/btree/bt_debug.c
83
(h = mpool_get(t->bt_mp, i, MPOOL_IGNOREPIN)) != NULL; ++i)
lib/libc/db/btree/bt_debug.c
84
__bt_dpage(h);
lib/libc/db/btree/bt_debug.c
94
__bt_dmpage(PAGE *h)
lib/libc/db/btree/bt_debug.c
99
m = (BTMETA *)h;
lib/libc/db/btree/bt_delete.c
102
status = __bt_dleaf(t, NULL, h, c->pg.index);
lib/libc/db/btree/bt_delete.c
104
if (NEXTINDEX(h) == 0 && status == RET_SUCCESS) {
lib/libc/db/btree/bt_delete.c
105
if (__bt_pdelete(t, h))
lib/libc/db/btree/bt_delete.c
109
h, status == RET_SUCCESS ? MPOOL_DIRTY : 0);
lib/libc/db/btree/bt_delete.c
140
PAGE *h;
lib/libc/db/btree/bt_delete.c
150
h = *hp;
lib/libc/db/btree/bt_delete.c
151
mpool_put(t->bt_mp, h, 0);
lib/libc/db/btree/bt_delete.c
154
h = e->page;
lib/libc/db/btree/bt_delete.c
157
if (h->pgno == c->pg.pgno)
lib/libc/db/btree/bt_delete.c
166
while (h->pgno != c->pg.pgno) {
lib/libc/db/btree/bt_delete.c
167
if ((nextpg = h->nextpg) == P_INVALID)
lib/libc/db/btree/bt_delete.c
169
mpool_put(t->bt_mp, h, 0);
lib/libc/db/btree/bt_delete.c
174
if ((h = mpool_get(t->bt_mp, parent->pgno, 0)) == NULL)
lib/libc/db/btree/bt_delete.c
178
if (parent->index != NEXTINDEX(h) - 1) {
lib/libc/db/btree/bt_delete.c
180
BT_PUSH(t, h->pgno, idx);
lib/libc/db/btree/bt_delete.c
183
mpool_put(t->bt_mp, h, 0);
lib/libc/db/btree/bt_delete.c
189
bi = GETBINTERNAL(h, idx);
lib/libc/db/btree/bt_delete.c
194
mpool_put(t->bt_mp, h, 0);
lib/libc/db/btree/bt_delete.c
197
if ((h = mpool_get(t->bt_mp, pgno, 0)) == NULL)
lib/libc/db/btree/bt_delete.c
201
mpool_put(t->bt_mp, h, 0);
lib/libc/db/btree/bt_delete.c
202
if ((h = mpool_get(t->bt_mp, nextpg, 0)) == NULL)
lib/libc/db/btree/bt_delete.c
206
if (h->pgno == c->pg.pgno)
lib/libc/db/btree/bt_delete.c
210
mpool_put(t->bt_mp, h, 0);
lib/libc/db/btree/bt_delete.c
213
h = e->page;
lib/libc/db/btree/bt_delete.c
221
while (h->pgno != c->pg.pgno) {
lib/libc/db/btree/bt_delete.c
222
if ((prevpg = h->prevpg) == P_INVALID)
lib/libc/db/btree/bt_delete.c
224
mpool_put(t->bt_mp, h, 0);
lib/libc/db/btree/bt_delete.c
229
if ((h = mpool_get(t->bt_mp, parent->pgno, 0)) == NULL)
lib/libc/db/btree/bt_delete.c
235
BT_PUSH(t, h->pgno, idx);
lib/libc/db/btree/bt_delete.c
238
mpool_put(t->bt_mp, h, 0);
lib/libc/db/btree/bt_delete.c
244
bi = GETBINTERNAL(h, idx);
lib/libc/db/btree/bt_delete.c
248
mpool_put(t->bt_mp, h, 0);
lib/libc/db/btree/bt_delete.c
251
if ((h = mpool_get(t->bt_mp, pgno, 0)) == NULL)
lib/libc/db/btree/bt_delete.c
254
idx = NEXTINDEX(h) - 1;
lib/libc/db/btree/bt_delete.c
257
mpool_put(t->bt_mp, h, 0);
lib/libc/db/btree/bt_delete.c
258
if ((h = mpool_get(t->bt_mp, prevpg, 0)) == NULL)
lib/libc/db/btree/bt_delete.c
263
ret: mpool_put(t->bt_mp, h, 0);
lib/libc/db/btree/bt_delete.c
282
PAGE *h;
lib/libc/db/btree/bt_delete.c
301
h = e->page;
lib/libc/db/btree/bt_delete.c
303
if (__bt_dleaf(t, key, h, e->index)) {
lib/libc/db/btree/bt_delete.c
304
mpool_put(t->bt_mp, h, 0);
lib/libc/db/btree/bt_delete.c
308
if (NEXTINDEX(h) == 0) {
lib/libc/db/btree/bt_delete.c
309
if (__bt_pdelete(t, h))
lib/libc/db/btree/bt_delete.c
312
mpool_put(t->bt_mp, h, MPOOL_DIRTY);
lib/libc/db/btree/bt_delete.c
316
} while (e->index < NEXTINDEX(h) && __bt_cmp(t, key, e) == 0);
lib/libc/db/btree/bt_delete.c
319
if (e->index == NEXTINDEX(h))
lib/libc/db/btree/bt_delete.c
326
if (__bt_dleaf(t, key, h, e->index) == RET_ERROR) {
lib/libc/db/btree/bt_delete.c
327
mpool_put(t->bt_mp, h, 0);
lib/libc/db/btree/bt_delete.c
335
if (NEXTINDEX(h) == 0) {
lib/libc/db/btree/bt_delete.c
336
if (__bt_pdelete(t, h))
lib/libc/db/btree/bt_delete.c
342
mpool_put(t->bt_mp, h, MPOOL_DIRTY);
lib/libc/db/btree/bt_delete.c
364
__bt_pdelete(BTREE *t, PAGE *h)
lib/libc/db/btree/bt_delete.c
437
if (h->pgno == P_ROOT) {
lib/libc/db/btree/bt_delete.c
438
mpool_put(t->bt_mp, h, MPOOL_DIRTY);
lib/libc/db/btree/bt_delete.c
441
return (__bt_relink(t, h) || __bt_free(t, h));
lib/libc/db/btree/bt_delete.c
458
__bt_dleaf(BTREE *t, const DBT *key, PAGE *h, u_int idx)
lib/libc/db/btree/bt_delete.c
469
t->bt_cursor.pg.pgno == h->pgno && t->bt_cursor.pg.index == idx &&
lib/libc/db/btree/bt_delete.c
470
__bt_curdel(t, key, h, idx))
lib/libc/db/btree/bt_delete.c
474
to = bl = GETBLEAF(h, idx);
lib/libc/db/btree/bt_delete.c
483
from = (char *)h + h->upper;
lib/libc/db/btree/bt_delete.c
485
h->upper += nbytes;
lib/libc/db/btree/bt_delete.c
488
offset = h->linp[idx];
lib/libc/db/btree/bt_delete.c
489
for (cnt = idx, ip = &h->linp[0]; cnt--; ++ip)
lib/libc/db/btree/bt_delete.c
492
for (cnt = NEXTINDEX(h) - idx; --cnt; ++ip)
lib/libc/db/btree/bt_delete.c
494
h->lower -= sizeof(indx_t);
lib/libc/db/btree/bt_delete.c
499
t->bt_cursor.pg.pgno == h->pgno && t->bt_cursor.pg.index > idx)
lib/libc/db/btree/bt_delete.c
519
__bt_curdel(BTREE *t, const DBT *key, PAGE *h, u_int idx)
lib/libc/db/btree/bt_delete.c
541
e.page = h;
lib/libc/db/btree/bt_delete.c
551
e.page = h;
lib/libc/db/btree/bt_delete.c
559
if (idx < NEXTINDEX(h) - 1) {
lib/libc/db/btree/bt_delete.c
560
e.page = h;
lib/libc/db/btree/bt_delete.c
568
if (idx == 0 && h->prevpg != P_INVALID) {
lib/libc/db/btree/bt_delete.c
569
if ((pg = mpool_get(t->bt_mp, h->prevpg, 0)) == NULL)
lib/libc/db/btree/bt_delete.c
580
if (idx == NEXTINDEX(h) - 1 && h->nextpg != P_INVALID) {
lib/libc/db/btree/bt_delete.c
581
if ((pg = mpool_get(t->bt_mp, h->nextpg, 0)) == NULL)
lib/libc/db/btree/bt_delete.c
595
e.page = h;
lib/libc/db/btree/bt_delete.c
61
PAGE *h;
lib/libc/db/btree/bt_delete.c
614
__bt_relink(BTREE *t, PAGE *h)
lib/libc/db/btree/bt_delete.c
618
if (h->nextpg != P_INVALID) {
lib/libc/db/btree/bt_delete.c
619
if ((pg = mpool_get(t->bt_mp, h->nextpg, 0)) == NULL)
lib/libc/db/btree/bt_delete.c
621
pg->prevpg = h->prevpg;
lib/libc/db/btree/bt_delete.c
624
if (h->prevpg != P_INVALID) {
lib/libc/db/btree/bt_delete.c
625
if ((pg = mpool_get(t->bt_mp, h->prevpg, 0)) == NULL)
lib/libc/db/btree/bt_delete.c
627
pg->nextpg = h->nextpg;
lib/libc/db/btree/bt_delete.c
91
if ((h = mpool_get(t->bt_mp, c->pg.pgno, 0)) == NULL)
lib/libc/db/btree/bt_delete.c
98
if (NEXTINDEX(h) == 1)
lib/libc/db/btree/bt_delete.c
99
if (__bt_stkacq(t, &h, &t->bt_cursor))
lib/libc/db/btree/bt_overflow.c
102
for (p = *buf;; p = (char *)p + nb, pg = h->nextpg) {
lib/libc/db/btree/bt_overflow.c
103
if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL)
lib/libc/db/btree/bt_overflow.c
107
memmove(p, (char *)h + BTDATAOFF, nb);
lib/libc/db/btree/bt_overflow.c
108
mpool_put(t->bt_mp, h, 0);
lib/libc/db/btree/bt_overflow.c
130
PAGE *h, *last;
lib/libc/db/btree/bt_overflow.c
142
p = (char *)p + plen, last = h) {
lib/libc/db/btree/bt_overflow.c
143
if ((h = __bt_new(t, &npg)) == NULL)
lib/libc/db/btree/bt_overflow.c
146
h->pgno = npg;
lib/libc/db/btree/bt_overflow.c
147
h->nextpg = h->prevpg = P_INVALID;
lib/libc/db/btree/bt_overflow.c
148
h->flags = P_OVERFLOW;
lib/libc/db/btree/bt_overflow.c
149
h->lower = h->upper = 0;
lib/libc/db/btree/bt_overflow.c
152
memmove((char *)h + BTDATAOFF, p, nb);
lib/libc/db/btree/bt_overflow.c
155
last->nextpg = h->pgno;
lib/libc/db/btree/bt_overflow.c
158
*pg = h->pgno;
lib/libc/db/btree/bt_overflow.c
161
mpool_put(t->bt_mp, h, MPOOL_DIRTY);
lib/libc/db/btree/bt_overflow.c
181
PAGE *h;
lib/libc/db/btree/bt_overflow.c
193
if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL)
lib/libc/db/btree/bt_overflow.c
197
if (h->flags & P_PRESERVE) {
lib/libc/db/btree/bt_overflow.c
198
mpool_put(t->bt_mp, h, 0);
lib/libc/db/btree/bt_overflow.c
204
pg = h->nextpg;
lib/libc/db/btree/bt_overflow.c
205
__bt_free(t, h);
lib/libc/db/btree/bt_overflow.c
208
if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL)
lib/libc/db/btree/bt_overflow.c
76
PAGE *h;
lib/libc/db/btree/bt_page.c
54
__bt_free(BTREE *t, PAGE *h)
lib/libc/db/btree/bt_page.c
57
h->prevpg = P_INVALID;
lib/libc/db/btree/bt_page.c
58
h->nextpg = t->bt_free;
lib/libc/db/btree/bt_page.c
59
t->bt_free = h->pgno;
lib/libc/db/btree/bt_page.c
63
return (mpool_put(t->bt_mp, h, MPOOL_DIRTY));
lib/libc/db/btree/bt_page.c
80
PAGE *h;
lib/libc/db/btree/bt_page.c
83
(h = mpool_get(t->bt_mp, t->bt_free, 0)) != NULL) {
lib/libc/db/btree/bt_page.c
85
t->bt_free = h->nextpg;
lib/libc/db/btree/bt_page.c
87
return (h);
lib/libc/db/btree/bt_put.c
147
if ((h = mpool_get(t->bt_mp, t->bt_cursor.pg.pgno, 0)) == NULL)
lib/libc/db/btree/bt_put.c
160
h = e->page;
lib/libc/db/btree/bt_put.c
173
mpool_put(t->bt_mp, h, 0);
lib/libc/db/btree/bt_put.c
183
delete: if (__bt_dleaf(t, key, h, idx) == RET_ERROR) {
lib/libc/db/btree/bt_put.c
184
mpool_put(t->bt_mp, h, 0);
lib/libc/db/btree/bt_put.c
197
if ((u_int32_t)(h->upper - h->lower) < nbytes + sizeof(indx_t)) {
lib/libc/db/btree/bt_put.c
198
if ((status = __bt_split(t, h, key,
lib/libc/db/btree/bt_put.c
204
if (idx < (nxtindex = NEXTINDEX(h)))
lib/libc/db/btree/bt_put.c
205
memmove(h->linp + idx + 1, h->linp + idx,
lib/libc/db/btree/bt_put.c
207
h->lower += sizeof(indx_t);
lib/libc/db/btree/bt_put.c
209
h->linp[idx] = h->upper -= nbytes;
lib/libc/db/btree/bt_put.c
210
dest = (char *)h + h->upper;
lib/libc/db/btree/bt_put.c
216
t->bt_cursor.pg.pgno == h->pgno && t->bt_cursor.pg.index >= idx)
lib/libc/db/btree/bt_put.c
220
if (h->nextpg == P_INVALID) {
lib/libc/db/btree/bt_put.c
221
if (idx == NEXTINDEX(h) - 1) {
lib/libc/db/btree/bt_put.c
224
t->bt_last.pgno = h->pgno;
lib/libc/db/btree/bt_put.c
226
} else if (h->prevpg == P_INVALID) {
lib/libc/db/btree/bt_put.c
230
t->bt_last.pgno = h->pgno;
lib/libc/db/btree/bt_put.c
235
mpool_put(t->bt_mp, h, MPOOL_DIRTY);
lib/libc/db/btree/bt_put.c
262
PAGE *h;
lib/libc/db/btree/bt_put.c
266
if ((h = mpool_get(t->bt_mp, t->bt_last.pgno, 0)) == NULL) {
lib/libc/db/btree/bt_put.c
270
t->bt_cur.page = h;
lib/libc/db/btree/bt_put.c
278
if ((u_int32_t)(h->upper - h->lower) < nbytes + sizeof(indx_t))
lib/libc/db/btree/bt_put.c
284
if (t->bt_cur.index != NEXTINDEX(h) - 1)
lib/libc/db/btree/bt_put.c
309
mpool_put(t->bt_mp, h, 0);
lib/libc/db/btree/bt_put.c
66
PAGE *h;
lib/libc/db/btree/bt_search.c
100
h->prevpg != P_INVALID &&
lib/libc/db/btree/bt_search.c
101
__bt_sprev(t, h, key, exactp))
lib/libc/db/btree/bt_search.c
103
if (base == NEXTINDEX(h) &&
lib/libc/db/btree/bt_search.c
104
h->nextpg != P_INVALID &&
lib/libc/db/btree/bt_search.c
105
__bt_snext(t, h, key, exactp))
lib/libc/db/btree/bt_search.c
122
next: BT_PUSH(t, h->pgno, idx);
lib/libc/db/btree/bt_search.c
123
pg = GETBINTERNAL(h, idx)->pgno;
lib/libc/db/btree/bt_search.c
124
mpool_put(t->bt_mp, h, 0);
lib/libc/db/btree/bt_search.c
142
__bt_snext(BTREE *t, PAGE *h, const DBT *key, int *exactp)
lib/libc/db/btree/bt_search.c
150
if ((e.page = mpool_get(t->bt_mp, h->nextpg, 0)) == NULL)
lib/libc/db/btree/bt_search.c
154
mpool_put(t->bt_mp, h, 0);
lib/libc/db/btree/bt_search.c
177
__bt_sprev(BTREE *t, PAGE *h, const DBT *key, int *exactp)
lib/libc/db/btree/bt_search.c
185
if ((e.page = mpool_get(t->bt_mp, h->prevpg, 0)) == NULL)
lib/libc/db/btree/bt_search.c
189
mpool_put(t->bt_mp, h, 0);
lib/libc/db/btree/bt_search.c
62
PAGE *h;
lib/libc/db/btree/bt_search.c
69
if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL)
lib/libc/db/btree/bt_search.c
73
t->bt_cur.page = h;
lib/libc/db/btree/bt_search.c
74
for (base = 0, lim = NEXTINDEX(h); lim; lim >>= 1) {
lib/libc/db/btree/bt_search.c
77
if (h->flags & P_BLEAF) {
lib/libc/db/btree/bt_search.c
97
if (h->flags & P_BLEAF) {
lib/libc/db/btree/bt_seq.c
145
PAGE *h;
lib/libc/db/btree/bt_seq.c
169
if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL)
lib/libc/db/btree/bt_seq.c
173
if (NEXTINDEX(h) == 0) {
lib/libc/db/btree/bt_seq.c
174
mpool_put(t->bt_mp, h, 0);
lib/libc/db/btree/bt_seq.c
178
if (h->flags & (P_BLEAF | P_RLEAF))
lib/libc/db/btree/bt_seq.c
180
pg = GETBINTERNAL(h, 0)->pgno;
lib/libc/db/btree/bt_seq.c
181
mpool_put(t->bt_mp, h, 0);
lib/libc/db/btree/bt_seq.c
183
ep->page = h;
lib/libc/db/btree/bt_seq.c
190
if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL)
lib/libc/db/btree/bt_seq.c
194
if (NEXTINDEX(h) == 0) {
lib/libc/db/btree/bt_seq.c
195
mpool_put(t->bt_mp, h, 0);
lib/libc/db/btree/bt_seq.c
199
if (h->flags & (P_BLEAF | P_RLEAF))
lib/libc/db/btree/bt_seq.c
201
pg = GETBINTERNAL(h, NEXTINDEX(h) - 1)->pgno;
lib/libc/db/btree/bt_seq.c
202
mpool_put(t->bt_mp, h, 0);
lib/libc/db/btree/bt_seq.c
205
ep->page = h;
lib/libc/db/btree/bt_seq.c
206
ep->index = NEXTINDEX(h) - 1;
lib/libc/db/btree/bt_seq.c
230
PAGE *h;
lib/libc/db/btree/bt_seq.c
253
if ((h = mpool_get(t->bt_mp, c->pg.pgno, 0)) == NULL)
lib/libc/db/btree/bt_seq.c
270
if (++idx == NEXTINDEX(h)) {
lib/libc/db/btree/bt_seq.c
271
pg = h->nextpg;
lib/libc/db/btree/bt_seq.c
272
mpool_put(t->bt_mp, h, 0);
lib/libc/db/btree/bt_seq.c
275
if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL)
lib/libc/db/btree/bt_seq.c
288
ep->page = h;
lib/libc/db/btree/bt_seq.c
294
pg = h->prevpg;
lib/libc/db/btree/bt_seq.c
295
mpool_put(t->bt_mp, h, 0);
lib/libc/db/btree/bt_seq.c
298
if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL)
lib/libc/db/btree/bt_seq.c
300
idx = NEXTINDEX(h) - 1;
lib/libc/db/btree/bt_seq.c
306
ep->page = h;
lib/libc/db/btree/bt_seq.c
328
PAGE *h, *hprev;
lib/libc/db/btree/bt_seq.c
354
h = ep->page;
lib/libc/db/btree/bt_seq.c
368
if (h->prevpg == P_INVALID)
lib/libc/db/btree/bt_seq.c
370
if (h->pgno != save.page->pgno)
lib/libc/db/btree/bt_seq.c
371
mpool_put(t->bt_mp, h, 0);
lib/libc/db/btree/bt_seq.c
373
h->prevpg, 0)) == NULL) {
lib/libc/db/btree/bt_seq.c
374
if (h->pgno == save.page->pgno)
lib/libc/db/btree/bt_seq.c
379
ep->page = h = hprev;
lib/libc/db/btree/bt_seq.c
380
ep->index = NEXTINDEX(h);
lib/libc/db/btree/bt_seq.c
390
if (h->pgno != save.page->pgno)
lib/libc/db/btree/bt_seq.c
391
mpool_put(t->bt_mp, h, 0);
lib/libc/db/btree/bt_seq.c
399
h = ep->page;
lib/libc/db/btree/bt_seq.c
400
pg = h->nextpg;
lib/libc/db/btree/bt_seq.c
401
mpool_put(t->bt_mp, h, 0);
lib/libc/db/btree/bt_seq.c
404
if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL)
lib/libc/db/btree/bt_seq.c
407
ep->page = h;
lib/libc/db/btree/bt_split.c
104
h->linp[skip] = h->upper -= ilen;
lib/libc/db/btree/bt_split.c
105
dest = (char *)h + h->upper;
lib/libc/db/btree/bt_split.c
145
if ((h = mpool_get(t->bt_mp, parent->pgno, 0)) == NULL)
lib/libc/db/btree/bt_split.c
177
(h->prevpg != P_INVALID || skip > 1)) {
lib/libc/db/btree/bt_split.c
204
if ((u_int32_t)(h->upper - h->lower) < nbytes + sizeof(indx_t)) {
lib/libc/db/btree/bt_split.c
205
sp = h;
lib/libc/db/btree/bt_split.c
206
h = h->pgno == P_ROOT ?
lib/libc/db/btree/bt_split.c
207
bt_root(t, h, &l, &r, &skip, nbytes) :
lib/libc/db/btree/bt_split.c
208
bt_page(t, h, &l, &r, &skip, nbytes);
lib/libc/db/btree/bt_split.c
209
if (h == NULL)
lib/libc/db/btree/bt_split.c
213
if (skip < (nxtindex = NEXTINDEX(h)))
lib/libc/db/btree/bt_split.c
214
memmove(h->linp + skip + 1, h->linp + skip,
lib/libc/db/btree/bt_split.c
216
h->lower += sizeof(indx_t);
lib/libc/db/btree/bt_split.c
223
h->linp[skip] = h->upper -= nbytes;
lib/libc/db/btree/bt_split.c
224
dest = (char *)h + h->linp[skip];
lib/libc/db/btree/bt_split.c
229
h->linp[skip] = h->upper -= nbytes;
lib/libc/db/btree/bt_split.c
230
dest = (char *)h + h->linp[skip];
lib/libc/db/btree/bt_split.c
247
dest = (char *)h + h->linp[skip - 1];
lib/libc/db/btree/bt_split.c
254
h->linp[skip] = h->upper -= nbytes;
lib/libc/db/btree/bt_split.c
255
dest = (char *)h + h->linp[skip];
lib/libc/db/btree/bt_split.c
265
dest = (char *)h + h->linp[skip - 1];
lib/libc/db/btree/bt_split.c
272
h->linp[skip] = h->upper -= nbytes;
lib/libc/db/btree/bt_split.c
273
dest = (char *)h + h->linp[skip];
lib/libc/db/btree/bt_split.c
283
mpool_put(t->bt_mp, h, MPOOL_DIRTY);
lib/libc/db/btree/bt_split.c
333
bt_page(BTREE *t, PAGE *h, PAGE **lp, PAGE **rp, indx_t *skip, size_t ilen)
lib/libc/db/btree/bt_split.c
347
r->nextpg = h->nextpg;
lib/libc/db/btree/bt_split.c
348
r->prevpg = h->pgno;
lib/libc/db/btree/bt_split.c
349
r->flags = h->flags & P_TYPE;
lib/libc/db/btree/bt_split.c
361
if (h->nextpg == P_INVALID && *skip == NEXTINDEX(h)) {
lib/libc/db/btree/bt_split.c
365
h->nextpg = r->pgno;
lib/libc/db/btree/bt_split.c
368
*lp = h;
lib/libc/db/btree/bt_split.c
378
l->pgno = h->pgno;
lib/libc/db/btree/bt_split.c
380
l->prevpg = h->prevpg;
lib/libc/db/btree/bt_split.c
383
l->flags = h->flags & P_TYPE;
lib/libc/db/btree/bt_split.c
386
if (h->nextpg != P_INVALID) {
lib/libc/db/btree/bt_split.c
387
if ((tp = mpool_get(t->bt_mp, h->nextpg, 0)) == NULL) {
lib/libc/db/btree/bt_split.c
403
tp = bt_psplit(t, h, l, r, skip, ilen);
lib/libc/db/btree/bt_split.c
406
memmove(h, l, t->bt_psize);
lib/libc/db/btree/bt_split.c
408
tp = h;
lib/libc/db/btree/bt_split.c
411
*lp = h;
lib/libc/db/btree/bt_split.c
431
bt_root(BTREE *t, PAGE *h, PAGE **lp, PAGE **rp, indx_t *skip, size_t ilen)
lib/libc/db/btree/bt_split.c
451
l->flags = r->flags = h->flags & P_TYPE;
lib/libc/db/btree/bt_split.c
454
tp = bt_psplit(t, h, l, r, skip, ilen);
lib/libc/db/btree/bt_split.c
474
bt_rroot(BTREE *t, PAGE *h, PAGE *l, PAGE *r)
lib/libc/db/btree/bt_split.c
479
h->linp[0] = h->upper = t->bt_psize - NRINTERNAL;
lib/libc/db/btree/bt_split.c
480
dest = (char *)h + h->upper;
lib/libc/db/btree/bt_split.c
484
__PAST_END(h->linp, 1) = h->upper -= NRINTERNAL;
lib/libc/db/btree/bt_split.c
485
dest = (char *)h + h->upper;
lib/libc/db/btree/bt_split.c
489
h->lower = BTDATAOFF + 2 * sizeof(indx_t);
lib/libc/db/btree/bt_split.c
492
h->flags &= ~P_TYPE;
lib/libc/db/btree/bt_split.c
493
h->flags |= P_RINTERNAL;
lib/libc/db/btree/bt_split.c
494
mpool_put(t->bt_mp, h, MPOOL_DIRTY);
lib/libc/db/btree/bt_split.c
512
bt_broot(BTREE *t, PAGE *h, PAGE *l, PAGE *r)
lib/libc/db/btree/bt_split.c
528
h->linp[0] = h->upper = t->bt_psize - nbytes;
lib/libc/db/btree/bt_split.c
529
dest = (char *)h + h->upper;
lib/libc/db/btree/bt_split.c
532
switch (h->flags & P_TYPE) {
lib/libc/db/btree/bt_split.c
536
__PAST_END(h->linp, 1) = h->upper -= nbytes;
lib/libc/db/btree/bt_split.c
537
dest = (char *)h + h->upper;
lib/libc/db/btree/bt_split.c
555
__PAST_END(h->linp, 1) = h->upper -= nbytes;
lib/libc/db/btree/bt_split.c
556
dest = (char *)h + h->upper;
lib/libc/db/btree/bt_split.c
565
h->lower = BTDATAOFF + 2 * sizeof(indx_t);
lib/libc/db/btree/bt_split.c
568
h->flags &= ~P_TYPE;
lib/libc/db/btree/bt_split.c
569
h->flags |= P_BINTERNAL;
lib/libc/db/btree/bt_split.c
570
mpool_put(t->bt_mp, h, MPOOL_DIRTY);
lib/libc/db/btree/bt_split.c
590
bt_psplit(BTREE *t, PAGE *h, PAGE *l, PAGE *r, indx_t *pskip, size_t ilen)
lib/libc/db/btree/bt_split.c
613
for (nxt = off = 0, top = NEXTINDEX(h); nxt < top; ++off) {
lib/libc/db/btree/bt_split.c
618
switch (h->flags & P_TYPE) {
lib/libc/db/btree/bt_split.c
620
src = bi = GETBINTERNAL(h, nxt);
lib/libc/db/btree/bt_split.c
625
src = bl = GETBLEAF(h, nxt);
lib/libc/db/btree/bt_split.c
630
src = GETRINTERNAL(h, nxt);
lib/libc/db/btree/bt_split.c
635
src = rl = GETRLEAF(h, nxt);
lib/libc/db/btree/bt_split.c
686
if (F_ISSET(c, CURS_INIT) && c->pg.pgno == h->pgno) {
lib/libc/db/btree/bt_split.c
715
switch (h->flags & P_TYPE) {
lib/libc/db/btree/bt_split.c
717
src = bi = GETBINTERNAL(h, nxt);
lib/libc/db/btree/bt_split.c
721
src = bl = GETBLEAF(h, nxt);
lib/libc/db/btree/bt_split.c
725
src = GETRINTERNAL(h, nxt);
lib/libc/db/btree/bt_split.c
729
src = rl = GETRLEAF(h, nxt);
lib/libc/db/btree/bt_split.c
766
PAGE *h;
lib/libc/db/btree/bt_split.c
768
if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL)
lib/libc/db/btree/bt_split.c
770
h->flags |= P_PRESERVE;
lib/libc/db/btree/bt_split.c
771
mpool_put(t->bt_mp, h, MPOOL_DIRTY);
lib/libc/db/btree/bt_split.c
790
rec_total(PAGE *h)
lib/libc/db/btree/bt_split.c
795
for (recs = 0, nxt = 0, top = NEXTINDEX(h); nxt < top; ++nxt)
lib/libc/db/btree/bt_split.c
796
recs += GETRINTERNAL(h, nxt)->nrecs;
lib/libc/db/btree/bt_split.c
80
PAGE *h, *l, *r, *lchild, *rchild;
lib/libc/db/btree/bt_split.c
94
h = sp->pgno == P_ROOT ?
lib/libc/db/btree/bt_split.c
97
if (h == NULL)
lib/libc/db/btree/bt_utils.c
145
PAGE *h;
lib/libc/db/btree/bt_utils.c
155
h = e->page;
lib/libc/db/btree/bt_utils.c
156
if (e->index == 0 && h->prevpg == P_INVALID && !(h->flags & P_BLEAF))
lib/libc/db/btree/bt_utils.c
160
if (h->flags & P_BLEAF) {
lib/libc/db/btree/bt_utils.c
161
bl = GETBLEAF(h, e->index);
lib/libc/db/btree/bt_utils.c
169
bi = GETBINTERNAL(h, e->index);
lib/libc/db/hash/hash_func.c
46
u_int32_t h, loop;
lib/libc/db/hash/hash_func.c
49
#define HASH4a h = (h << 5) - h + *k++;
lib/libc/db/hash/hash_func.c
50
#define HASH4b h = (h << 5) + h + *k++;
lib/libc/db/hash/hash_func.c
53
h = 0;
lib/libc/db/hash/hash_func.c
80
return (h);
lib/libc/db/recno/rec_delete.c
114
PAGE *h;
lib/libc/db/recno/rec_delete.c
122
h = e->page;
lib/libc/db/recno/rec_delete.c
123
status = __rec_dleaf(t, h, e->index);
lib/libc/db/recno/rec_delete.c
125
mpool_put(t->bt_mp, h, 0);
lib/libc/db/recno/rec_delete.c
128
mpool_put(t->bt_mp, h, MPOOL_DIRTY);
lib/libc/db/recno/rec_delete.c
143
__rec_dleaf(BTREE *t, PAGE *h, u_int32_t idx)
lib/libc/db/recno/rec_delete.c
161
to = rl = GETRLEAF(h, idx);
lib/libc/db/recno/rec_delete.c
170
from = (char *)h + h->upper;
lib/libc/db/recno/rec_delete.c
172
h->upper += nbytes;
lib/libc/db/recno/rec_delete.c
174
offset = h->linp[idx];
lib/libc/db/recno/rec_delete.c
175
for (cnt = &h->linp[idx] - (ip = &h->linp[0]); cnt--; ++ip)
lib/libc/db/recno/rec_delete.c
178
for (cnt = &h->linp[NEXTINDEX(h)] - ip; --cnt; ++ip)
lib/libc/db/recno/rec_delete.c
180
h->lower -= sizeof(indx_t);
lib/libc/db/recno/rec_open.c
190
if ((h = mpool_get(t->bt_mp, P_ROOT, 0)) == NULL)
lib/libc/db/recno/rec_open.c
192
if ((h->flags & P_TYPE) == P_BLEAF) {
lib/libc/db/recno/rec_open.c
193
F_CLR(h, P_TYPE);
lib/libc/db/recno/rec_open.c
194
F_SET(h, P_RLEAF);
lib/libc/db/recno/rec_open.c
195
mpool_put(t->bt_mp, h, MPOOL_DIRTY);
lib/libc/db/recno/rec_open.c
197
mpool_put(t->bt_mp, h, 0);
lib/libc/db/recno/rec_open.c
58
PAGE *h;
lib/libc/db/recno/rec_put.c
188
PAGE *h;
lib/libc/db/recno/rec_put.c
219
h = e->page;
lib/libc/db/recno/rec_put.c
236
__rec_dleaf(t, h, idx) == RET_ERROR) {
lib/libc/db/recno/rec_put.c
237
mpool_put(t->bt_mp, h, 0);
lib/libc/db/recno/rec_put.c
249
if ((u_int32_t)(h->upper - h->lower) < nbytes + sizeof(indx_t)) {
lib/libc/db/recno/rec_put.c
250
status = __bt_split(t, h, NULL, data, dflags, nbytes, idx);
lib/libc/db/recno/rec_put.c
256
if (idx < (nxtindex = NEXTINDEX(h)))
lib/libc/db/recno/rec_put.c
257
memmove(h->linp + idx + 1, h->linp + idx,
lib/libc/db/recno/rec_put.c
259
h->lower += sizeof(indx_t);
lib/libc/db/recno/rec_put.c
261
h->linp[idx] = h->upper -= nbytes;
lib/libc/db/recno/rec_put.c
262
dest = (char *)h + h->upper;
lib/libc/db/recno/rec_put.c
267
mpool_put(t->bt_mp, h, MPOOL_DIRTY);
lib/libc/db/recno/rec_search.c
107
if ((h = mpool_get(t->bt_mp, parent->pgno, 0)) == NULL)
lib/libc/db/recno/rec_search.c
110
--GETRINTERNAL(h, parent->index)->nrecs;
lib/libc/db/recno/rec_search.c
112
++GETRINTERNAL(h, parent->index)->nrecs;
lib/libc/db/recno/rec_search.c
113
mpool_put(t->bt_mp, h, MPOOL_DIRTY);
lib/libc/db/recno/rec_search.c
61
PAGE *h;
lib/libc/db/recno/rec_search.c
71
if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL)
lib/libc/db/recno/rec_search.c
73
if (h->flags & P_RLEAF) {
lib/libc/db/recno/rec_search.c
74
t->bt_cur.page = h;
lib/libc/db/recno/rec_search.c
78
for (idx = 0, top = NEXTINDEX(h);;) {
lib/libc/db/recno/rec_search.c
79
r = GETRINTERNAL(h, idx);
lib/libc/db/recno/rec_search.c
90
--GETRINTERNAL(h, (idx - 1))->nrecs;
lib/libc/db/recno/rec_search.c
91
mpool_put(t->bt_mp, h, MPOOL_DIRTY);
lib/libc/db/recno/rec_search.c
94
++GETRINTERNAL(h, (idx - 1))->nrecs;
lib/libc/db/recno/rec_search.c
95
mpool_put(t->bt_mp, h, MPOOL_DIRTY);
lib/libc/db/recno/rec_search.c
98
mpool_put(t->bt_mp, h, 0);
lib/libc/db/test/btree.tests/main.c
707
PAGE *h;
lib/libc/db/test/btree.tests/main.c
712
if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL) {
lib/libc/db/test/btree.tests/main.c
717
__bt_dmpage(h);
lib/libc/db/test/btree.tests/main.c
719
__bt_dpage(h);
lib/libc/db/test/btree.tests/main.c
720
mpool_put(t->bt_mp, h, 0);
lib/libc/gen/getnetgrent.c
600
char *h, *u, *d;
lib/libc/gen/getnetgrent.c
622
"getnetgrent_r", src, &h, &u, &d, buf, bufsize,
lib/libc/gen/getnetgrent.c
638
if ((host == NULL || h == NULL || strcmp(host, h) == 0) &&
lib/libc/gen/glob-compat11.c
387
char *h, *sc;
lib/libc/gen/glob-compat11.c
412
h = NULL;
lib/libc/gen/glob-compat11.c
420
if ((h = secure_getenv("HOME")) == NULL) {
lib/libc/gen/glob-compat11.c
421
if (((h = getlogin()) != NULL &&
lib/libc/gen/glob-compat11.c
422
(pwd = getpwnam(h)) != NULL) ||
lib/libc/gen/glob-compat11.c
424
h = pwd->pw_dir;
lib/libc/gen/glob-compat11.c
438
h = pwd->pw_dir;
lib/libc/gen/glob-compat11.c
443
sc = h;
lib/libc/gen/glob.c
449
char *h, *sc;
lib/libc/gen/glob.c
474
h = NULL;
lib/libc/gen/glob.c
482
if ((h = secure_getenv("HOME")) == NULL) {
lib/libc/gen/glob.c
483
if (((h = getlogin()) != NULL &&
lib/libc/gen/glob.c
484
(pwd = getpwnam(h)) != NULL) ||
lib/libc/gen/glob.c
486
h = pwd->pw_dir;
lib/libc/gen/glob.c
500
h = pwd->pw_dir;
lib/libc/gen/glob.c
505
sc = h;
lib/libc/gen/syslog.c
104
struct bufcookie *h; /* private `handle' */
lib/libc/gen/syslog.c
106
h = (struct bufcookie *)cookie;
lib/libc/gen/syslog.c
107
if (len > h->left) {
lib/libc/gen/syslog.c
109
len = h->left;
lib/libc/gen/syslog.c
112
(void)memcpy(h->base, buf, len); /* `write' it. */
lib/libc/gen/syslog.c
113
h->base += len;
lib/libc/gen/syslog.c
114
h->left -= len;
lib/libc/iconv/citrus_memstream.c
46
const uint8_t *h, *p;
lib/libc/iconv/citrus_memstream.c
52
h = p = (uint8_t *)_region_offset(&ms->ms_region, ms->ms_pos);
lib/libc/iconv/citrus_memstream.c
63
return ((const char *)h);
lib/libc/iconv/citrus_region.h
43
_citrus_region_init(struct _citrus_region *r, void *h, size_t sz)
lib/libc/iconv/citrus_region.h
46
r->r_head = h;
lib/libc/include/libc_private.h
328
#include <sys/_types.h>
lib/libc/include/libc_private.h
329
#include <sys/_sigset.h>
lib/libc/rpc/clnt_dg.c
635
clnt_dg_abort(CLIENT *h)
lib/libc/rpc/clnt_raw.c
138
clnt_raw_call(CLIENT *h, rpcproc_t proc, xdrproc_t xargs, void *argsp,
lib/libc/rpc/clnt_raw.c
147
assert(h != NULL);
lib/libc/rpc/clnt_raw.c
165
(! AUTH_MARSHALL(h->cl_auth, xdrs)) ||
lib/libc/rpc/clnt_raw.c
206
if (! AUTH_VALIDATE(h->cl_auth, &msg.acpted_rply.ar_verf)) {
lib/libc/rpc/clnt_raw.c
211
if (AUTH_REFRESH(h->cl_auth, &msg))
lib/libc/rpc/clnt_raw.c
216
if (! AUTH_VALIDATE(h->cl_auth, &msg.acpted_rply.ar_verf)) {
lib/libc/stdlib/quick_exit.c
51
struct quick_exit_handler *h;
lib/libc/stdlib/quick_exit.c
53
if ((h = calloc(1, sizeof(*h))) == NULL) {
lib/libc/stdlib/quick_exit.c
56
h->cleanup = func;
lib/libc/stdlib/quick_exit.c
57
while (!atomic_compare_exchange_strong(&handlers, &h->next, h)) {
lib/libc/stdlib/quick_exit.c
66
struct quick_exit_handler *h;
lib/libc/stdlib/quick_exit.c
72
for (h = atomic_load_explicit(&handlers, memory_order_acquire);
lib/libc/stdlib/quick_exit.c
73
h != NULL; h = h->next) {
lib/libc/stdlib/quick_exit.c
74
h->cleanup();
lib/libc/string/memmem.c
146
if (z - h < l)
lib/libc/string/memmem.c
150
if (BITOP(byteset, h[l - 1], &)) {
lib/libc/string/memmem.c
151
k = l - shift[h[l - 1]];
lib/libc/string/memmem.c
155
h += k;
lib/libc/string/memmem.c
160
h += l;
lib/libc/string/memmem.c
166
for (k = MAX(ms + 1, mem); k < l && n[k] == h[k]; k++)
lib/libc/string/memmem.c
169
h += k - ms;
lib/libc/string/memmem.c
174
for (k = ms + 1; k > mem && n[k - 1] == h[k - 1]; k--)
lib/libc/string/memmem.c
177
return (char *)h;
lib/libc/string/memmem.c
178
h += p;
lib/libc/string/memmem.c
186
const unsigned char *h = h0, *n = n0;
lib/libc/string/memmem.c
190
return (void *)h;
lib/libc/string/memmem.c
197
h = memchr(h0, *n, k);
lib/libc/string/memmem.c
198
if (!h || l == 1)
lib/libc/string/memmem.c
199
return (void *)h;
lib/libc/string/memmem.c
200
k -= h - (const unsigned char *)h0;
lib/libc/string/memmem.c
204
return twobyte_memmem(h, k, n);
lib/libc/string/memmem.c
206
return threebyte_memmem(h, k, n);
lib/libc/string/memmem.c
208
return fourbyte_memmem(h, k, n);
lib/libc/string/memmem.c
210
return twoway_memmem(h, h + k, n, l);
lib/libc/string/memmem.c
29
twobyte_memmem(const unsigned char *h, size_t k, const unsigned char *n)
lib/libc/string/memmem.c
31
uint16_t nw = n[0] << 8 | n[1], hw = h[0] << 8 | h[1];
lib/libc/string/memmem.c
32
for (h += 2, k -= 2; k; k--, hw = hw << 8 | *h++)
lib/libc/string/memmem.c
34
return (char *)h - 2;
lib/libc/string/memmem.c
35
return hw == nw ? (char *)h - 2 : 0;
lib/libc/string/memmem.c
39
threebyte_memmem(const unsigned char *h, size_t k, const unsigned char *n)
lib/libc/string/memmem.c
42
uint32_t hw = (uint32_t)h[0] << 24 | h[1] << 16 | h[2] << 8;
lib/libc/string/memmem.c
43
for (h += 3, k -= 3; k; k--, hw = (hw | *h++) << 8)
lib/libc/string/memmem.c
45
return (char *)h - 3;
lib/libc/string/memmem.c
46
return hw == nw ? (char *)h - 3 : 0;
lib/libc/string/memmem.c
50
fourbyte_memmem(const unsigned char *h, size_t k, const unsigned char *n)
lib/libc/string/memmem.c
53
uint32_t hw = (uint32_t)h[0] << 24 | h[1] << 16 | h[2] << 8 | h[3];
lib/libc/string/memmem.c
54
for (h += 4, k -= 4; k; k--, hw = hw << 8 | *h++)
lib/libc/string/memmem.c
56
return (char *)h - 4;
lib/libc/string/memmem.c
57
return hw == nw ? (char *)h - 4 : 0;
lib/libc/string/memmem.c
76
twoway_memmem(const unsigned char *h, const unsigned char *z,
lib/libc/string/memset.c
54
#include <string.h>
lib/libc/string/strstr.c
143
z = h;
lib/libc/string/strstr.c
148
if (z - h < l) {
lib/libc/string/strstr.c
154
if (z - h < l)
lib/libc/string/strstr.c
161
if (BITOP(byteset, h[l - 1], &)) {
lib/libc/string/strstr.c
162
k = l - shift[h[l - 1]];
lib/libc/string/strstr.c
166
h += k;
lib/libc/string/strstr.c
171
h += l;
lib/libc/string/strstr.c
177
for (k = MAX(ms + 1, mem); n[k] && n[k] == h[k]; k++)
lib/libc/string/strstr.c
180
h += k - ms;
lib/libc/string/strstr.c
185
for (k = ms + 1; k > mem && n[k - 1] == h[k - 1]; k--)
lib/libc/string/strstr.c
188
return (char *)h;
lib/libc/string/strstr.c
189
h += p;
lib/libc/string/strstr.c
195
strstr(const char *h, const char *n)
lib/libc/string/strstr.c
199
return (char *)h;
lib/libc/string/strstr.c
202
h = strchr(h, *n);
lib/libc/string/strstr.c
203
if (!h || !n[1])
lib/libc/string/strstr.c
204
return (char *)h;
lib/libc/string/strstr.c
205
if (!h[1])
lib/libc/string/strstr.c
208
return twobyte_strstr((void *)h, (void *)n);
lib/libc/string/strstr.c
209
if (!h[2])
lib/libc/string/strstr.c
212
return threebyte_strstr((void *)h, (void *)n);
lib/libc/string/strstr.c
213
if (!h[3])
lib/libc/string/strstr.c
216
return fourbyte_strstr((void *)h, (void *)n);
lib/libc/string/strstr.c
218
return twoway_strstr((void *)h, (void *)n);
lib/libc/string/strstr.c
29
twobyte_strstr(const unsigned char *h, const unsigned char *n)
lib/libc/string/strstr.c
31
uint16_t nw = n[0] << 8 | n[1], hw = h[0] << 8 | h[1];
lib/libc/string/strstr.c
32
for (h++; *h && hw != nw; hw = hw << 8 | *++h)
lib/libc/string/strstr.c
34
return *h ? (char *)h - 1 : 0;
lib/libc/string/strstr.c
38
threebyte_strstr(const unsigned char *h, const unsigned char *n)
lib/libc/string/strstr.c
41
uint32_t hw = (uint32_t)h[0] << 24 | h[1] << 16 | h[2] << 8;
lib/libc/string/strstr.c
42
for (h += 2; *h && hw != nw; hw = (hw | *++h) << 8)
lib/libc/string/strstr.c
44
return *h ? (char *)h - 2 : 0;
lib/libc/string/strstr.c
48
fourbyte_strstr(const unsigned char *h, const unsigned char *n)
lib/libc/string/strstr.c
51
uint32_t hw = (uint32_t)h[0] << 24 | h[1] << 16 | h[2] << 8 | h[3];
lib/libc/string/strstr.c
52
for (h += 3; *h && hw != nw; hw = hw << 8 | *++h)
lib/libc/string/strstr.c
54
return *h ? (char *)h - 3 : 0;
lib/libc/string/strstr.c
73
twoway_strstr(const unsigned char *h, const unsigned char *n)
lib/libc/string/strstr.c
81
for (l = 0; n[l] && h[l]; l++)
lib/libc/tests/stdio/gets_s_test.c
113
set_constraint_handler_s(h);
lib/libc/tests/stdio/gets_s_test.c
127
set_constraint_handler_s(h);
lib/libc/tests/stdlib/cxa_thread_atexit_test.cc
150
std::thread t([]() { h.use(); });
lib/libc/tests/stdlib/cxa_thread_atexit_test.cc
74
static thread_local Bar h;
lib/libc/tests/stdlib/qsort_s_test.c
124
set_constraint_handler_s(h);
lib/libc/tests/stdlib/qsort_s_test.c
140
set_constraint_handler_s(h);
lib/libc/tests/stdlib/qsort_s_test.c
156
set_constraint_handler_s(h);
lib/libc/tests/stdlib/qsort_s_test.c
172
set_constraint_handler_s(h);
lib/libc/tests/stdlib/qsort_s_test.c
188
set_constraint_handler_s(h);
lib/libc/tests/stdlib/qsort_s_test.c
203
set_constraint_handler_s(h);
lib/libc/tests/string/memset_s_test.c
117
set_constraint_handler_s(h);
lib/libc/tests/string/memset_s_test.c
134
set_constraint_handler_s(h);
lib/libc/tests/string/memset_s_test.c
148
set_constraint_handler_s(h);
lib/libc/tests/string/memset_s_test.c
162
set_constraint_handler_s(h);
lib/libc/tests/string/memset_s_test.c
176
set_constraint_handler_s(h);
lib/libfetch/common.c
800
fetch_ssl_hname_match(const char *h, size_t hlen, const char *m,
lib/libfetch/common.c
807
if (!(h && *h && m && *m))
lib/libfetch/common.c
810
return (fetch_ssl_hname_equal(h, hlen, m, mlen));
lib/libfetch/common.c
813
if (fetch_ssl_hname_is_only_numbers(h, hlen))
lib/libfetch/common.c
830
hdot = strnstr(h, ".", hlen);
lib/libfetch/common.c
831
if (hdot == NULL || hdot == h)
lib/libfetch/common.c
833
hdotidx = hdot - h;
lib/libfetch/common.c
844
if (!fetch_ssl_is_trad_domain_label(h, hdotidx, 0) ||
lib/libfetch/common.c
852
if (!fetch_ssl_hname_equal(h, wcidx, m, wcidx))
lib/libfetch/http.c
1381
hdr_t h;
lib/libfetch/http.c
1466
switch ((h = http_next_header(conn, &headerbuf, &p))) {
lib/libfetch/http.c
1476
} while (h > hdr_end);
lib/libfetch/http.c
1597
hdr_t h;
lib/libfetch/http.c
1866
switch ((h = http_next_header(conn, &headerbuf, &p))) {
lib/libfetch/http.c
1945
} while (h > hdr_end);
lib/libifconfig/libifconfig.c
100
freeifaddrs(h->ifap);
lib/libifconfig/libifconfig.c
101
free(h);
lib/libifconfig/libifconfig.c
105
ifconfig_err_errtype(ifconfig_handle_t *h)
lib/libifconfig/libifconfig.c
108
return (h->error.errtype);
lib/libifconfig/libifconfig.c
112
ifconfig_err_errno(ifconfig_handle_t *h)
lib/libifconfig/libifconfig.c
115
return (h->error.errcode);
lib/libifconfig/libifconfig.c
119
ifconfig_err_ioctlreq(ifconfig_handle_t *h)
lib/libifconfig/libifconfig.c
122
return (h->error.ioctl_request);
lib/libifconfig/libifconfig.c
126
ifconfig_foreach_iface(ifconfig_handle_t *h,
lib/libifconfig/libifconfig.c
131
ret = ifconfig_getifaddrs(h);
lib/libifconfig/libifconfig.c
136
for (ifa = h->ifap; ifa; ifa = ifa->ifa_next) {
lib/libifconfig/libifconfig.c
139
cb(h, ifa, udata);
lib/libifconfig/libifconfig.c
144
freeifaddrs(h->ifap);
lib/libifconfig/libifconfig.c
145
h->ifap = NULL;
lib/libifconfig/libifconfig.c
151
ifconfig_foreach_ifaddr(ifconfig_handle_t *h, struct ifaddrs *ifa,
lib/libifconfig/libifconfig.c
161
cb(h, ift, udata);
lib/libifconfig/libifconfig.c
166
ifconfig_get_description(ifconfig_handle_t *h, const char *name,
lib/libifconfig/libifconfig.c
180
h->error.errtype = OTHER;
lib/libifconfig/libifconfig.c
181
h->error.errcode = ENOMEM;
lib/libifconfig/libifconfig.c
187
if (ifconfig_ioctlwrap(h, AF_LOCAL, SIOCGIFDESCR, &ifr) != 0) {
lib/libifconfig/libifconfig.c
198
h->error.errtype = OTHER;
lib/libifconfig/libifconfig.c
199
h->error.errcode = ENOMEM;
lib/libifconfig/libifconfig.c
212
h->error.errtype = OTHER;
lib/libifconfig/libifconfig.c
213
h->error.errcode = 0;
lib/libifconfig/libifconfig.c
218
ifconfig_set_description(ifconfig_handle_t *h, const char *name,
lib/libifconfig/libifconfig.c
232
return (ifconfig_unset_description(h, name));
lib/libifconfig/libifconfig.c
240
h->error.errtype = OTHER;
lib/libifconfig/libifconfig.c
241
h->error.errcode = ENOMEM;
lib/libifconfig/libifconfig.c
245
if (ifconfig_ioctlwrap(h, AF_LOCAL, SIOCSIFDESCR, &ifr) != 0) {
lib/libifconfig/libifconfig.c
255
ifconfig_unset_description(ifconfig_handle_t *h, const char *name)
lib/libifconfig/libifconfig.c
264
if (ifconfig_ioctlwrap(h, AF_LOCAL, SIOCSIFDESCR, &ifr) < 0) {
lib/libifconfig/libifconfig.c
271
ifconfig_set_name(ifconfig_handle_t *h, const char *name, const char *newname)
lib/libifconfig/libifconfig.c
279
h->error.errtype = OTHER;
lib/libifconfig/libifconfig.c
280
h->error.errcode = ENOMEM;
lib/libifconfig/libifconfig.c
286
if (ifconfig_ioctlwrap(h, AF_LOCAL, SIOCSIFNAME, &ifr) != 0) {
lib/libifconfig/libifconfig.c
296
ifconfig_get_orig_name(ifconfig_handle_t *h, const char *ifname,
lib/libifconfig/libifconfig.c
334
h->error.errtype = OTHER;
lib/libifconfig/libifconfig.c
335
h->error.errcode = (errno != 0) ? errno : ENOENT;
lib/libifconfig/libifconfig.c
340
ifconfig_get_fib(ifconfig_handle_t *h, const char *name, int *fib)
lib/libifconfig/libifconfig.c
347
if (ifconfig_ioctlwrap(h, AF_LOCAL, SIOCGIFFIB, &ifr) == -1) {
lib/libifconfig/libifconfig.c
356
ifconfig_set_mtu(ifconfig_handle_t *h, const char *name, const int mtu)
lib/libifconfig/libifconfig.c
364
if (ifconfig_ioctlwrap(h, AF_LOCAL, SIOCSIFMTU, &ifr) < 0) {
lib/libifconfig/libifconfig.c
372
ifconfig_get_mtu(ifconfig_handle_t *h, const char *name, int *mtu)
lib/libifconfig/libifconfig.c
379
if (ifconfig_ioctlwrap(h, AF_LOCAL, SIOCGIFMTU, &ifr) == -1) {
lib/libifconfig/libifconfig.c
388
ifconfig_get_nd6(ifconfig_handle_t *h, const char *name,
lib/libifconfig/libifconfig.c
393
if (ifconfig_ioctlwrap(h, AF_INET6, SIOCGIFINFO_IN6, nd) == -1) {
lib/libifconfig/libifconfig.c
396
if (isnd6defif(h, name)) {
lib/libifconfig/libifconfig.c
398
} else if (h->error.errtype != OK) {
lib/libifconfig/libifconfig.c
406
ifconfig_set_metric(ifconfig_handle_t *h, const char *name, const int metric)
lib/libifconfig/libifconfig.c
414
if (ifconfig_ioctlwrap(h, AF_LOCAL, SIOCSIFMETRIC, &ifr) < 0) {
lib/libifconfig/libifconfig.c
422
ifconfig_get_metric(ifconfig_handle_t *h, const char *name, int *metric)
lib/libifconfig/libifconfig.c
429
if (ifconfig_ioctlwrap(h, AF_LOCAL, SIOCGIFMETRIC, &ifr) == -1) {
lib/libifconfig/libifconfig.c
438
ifconfig_set_capability(ifconfig_handle_t *h, const char *name,
lib/libifconfig/libifconfig.c
447
if (ifconfig_get_capability(h, name, &ifcap) != 0) {
lib/libifconfig/libifconfig.c
468
if (ifconfig_ioctlwrap(h, AF_LOCAL, SIOCSIFCAP, &ifr) < 0) {
lib/libifconfig/libifconfig.c
475
ifconfig_get_capability(ifconfig_handle_t *h, const char *name,
lib/libifconfig/libifconfig.c
483
if (ifconfig_ioctlwrap(h, AF_LOCAL, SIOCGIFCAP, &ifr) < 0) {
lib/libifconfig/libifconfig.c
492
ifconfig_get_groups(ifconfig_handle_t *h, const char *name,
lib/libifconfig/libifconfig.c
500
if (ifconfig_ioctlwrap(h, AF_LOCAL, SIOCGIFGROUP, ifgr) == -1) {
lib/libifconfig/libifconfig.c
501
if ((h->error.errcode == EINVAL) ||
lib/libifconfig/libifconfig.c
502
(h->error.errcode == ENOTTY)) {
lib/libifconfig/libifconfig.c
512
h->error.errtype = OTHER;
lib/libifconfig/libifconfig.c
513
h->error.errcode = ENOMEM;
lib/libifconfig/libifconfig.c
517
if (ifconfig_ioctlwrap(h, AF_LOCAL, SIOCGIFGROUP, ifgr) == -1) {
lib/libifconfig/libifconfig.c
525
ifconfig_get_ifstatus(ifconfig_handle_t *h, const char *name,
lib/libifconfig/libifconfig.c
529
return (ifconfig_ioctlwrap(h, AF_LOCAL, SIOCGIFSTATUS, ifs));
lib/libifconfig/libifconfig.c
533
ifconfig_destroy_interface(ifconfig_handle_t *h, const char *name)
lib/libifconfig/libifconfig.c
540
if (ifconfig_ioctlwrap(h, AF_LOCAL, SIOCIFDESTROY, &ifr) < 0) {
lib/libifconfig/libifconfig.c
547
ifconfig_create_interface(ifconfig_handle_t *h, const char *name, char **ifname)
lib/libifconfig/libifconfig.c
566
h->error.errtype = OTHER;
lib/libifconfig/libifconfig.c
567
h->error.errcode = ENOSYS;
lib/libifconfig/libifconfig.c
572
if (ifconfig_ioctlwrap(h, AF_LOCAL, SIOCIFCREATE2, &ifr) < 0) {
lib/libifconfig/libifconfig.c
578
h->error.errtype = OTHER;
lib/libifconfig/libifconfig.c
579
h->error.errcode = ENOMEM;
lib/libifconfig/libifconfig.c
587
ifconfig_create_interface_vlan(ifconfig_handle_t *h, const char *name,
lib/libifconfig/libifconfig.c
59
isnd6defif(ifconfig_handle_t *h, const char *name)
lib/libifconfig/libifconfig.c
604
if (ifconfig_ioctlwrap(h, AF_LOCAL, SIOCIFCREATE2, &ifr) < 0) {
lib/libifconfig/libifconfig.c
614
ifconfig_set_vlantag(ifconfig_handle_t *h, const char *name,
lib/libifconfig/libifconfig.c
626
if (ifconfig_ioctlwrap(h, AF_LOCAL, SIOCSETVLAN, &ifr) == -1) {
lib/libifconfig/libifconfig.c
633
ifconfig_list_cloners(ifconfig_handle_t *h, char **bufp, size_t *lenp)
lib/libifconfig/libifconfig.c
642
if (ifconfig_ioctlwrap(h, AF_LOCAL, SIOCIFGCLONERS, &ifcr) < 0)
lib/libifconfig/libifconfig.c
647
h->error.errtype = OTHER;
lib/libifconfig/libifconfig.c
648
h->error.errcode = ENOMEM;
lib/libifconfig/libifconfig.c
654
if (ifconfig_ioctlwrap(h, AF_LOCAL, SIOCIFGCLONERS, &ifcr) < 0) {
lib/libifconfig/libifconfig.c
67
if (ifconfig_ioctlwrap(h, AF_INET6, SIOCGDEFIFACE_IN6, &ndifreq) < 0) {
lib/libifconfig/libifconfig.c
70
h->error.errtype = OK;
lib/libifconfig/libifconfig.c
77
ifconfig_handle_t *h;
lib/libifconfig/libifconfig.c
79
h = calloc(1, sizeof(*h));
lib/libifconfig/libifconfig.c
81
if (h == NULL) {
lib/libifconfig/libifconfig.c
85
h->sockets[i] = -1;
lib/libifconfig/libifconfig.c
88
return (h);
lib/libifconfig/libifconfig.c
92
ifconfig_close(ifconfig_handle_t *h)
lib/libifconfig/libifconfig.c
96
if (h->sockets[i] != -1) {
lib/libifconfig/libifconfig.c
97
(void)close(h->sockets[i]);
lib/libifconfig/libifconfig.h
135
void ifconfig_close(ifconfig_handle_t *h);
lib/libifconfig/libifconfig.h
138
ifconfig_errtype ifconfig_err_errtype(ifconfig_handle_t *h);
lib/libifconfig/libifconfig.h
141
int ifconfig_err_errno(ifconfig_handle_t *h);
lib/libifconfig/libifconfig.h
143
typedef void (*ifconfig_foreach_func_t)(ifconfig_handle_t *h,
lib/libifconfig/libifconfig.h
152
int ifconfig_foreach_iface(ifconfig_handle_t *h, ifconfig_foreach_func_t cb,
lib/libifconfig/libifconfig.h
162
void ifconfig_foreach_ifaddr(ifconfig_handle_t *h, struct ifaddrs *ifa,
lib/libifconfig/libifconfig.h
166
unsigned long ifconfig_err_ioctlreq(ifconfig_handle_t *h);
lib/libifconfig/libifconfig.h
167
int ifconfig_get_description(ifconfig_handle_t *h, const char *name,
lib/libifconfig/libifconfig.h
169
int ifconfig_set_description(ifconfig_handle_t *h, const char *name,
lib/libifconfig/libifconfig.h
171
int ifconfig_unset_description(ifconfig_handle_t *h, const char *name);
lib/libifconfig/libifconfig.h
172
int ifconfig_set_name(ifconfig_handle_t *h, const char *name,
lib/libifconfig/libifconfig.h
174
int ifconfig_get_orig_name(ifconfig_handle_t *h, const char *ifname,
lib/libifconfig/libifconfig.h
176
int ifconfig_get_fib(ifconfig_handle_t *h, const char *name, int *fib);
lib/libifconfig/libifconfig.h
177
int ifconfig_set_mtu(ifconfig_handle_t *h, const char *name, const int mtu);
lib/libifconfig/libifconfig.h
178
int ifconfig_get_mtu(ifconfig_handle_t *h, const char *name, int *mtu);
lib/libifconfig/libifconfig.h
179
int ifconfig_get_nd6(ifconfig_handle_t *h, const char *name,
lib/libifconfig/libifconfig.h
181
int ifconfig_set_metric(ifconfig_handle_t *h, const char *name,
lib/libifconfig/libifconfig.h
183
int ifconfig_get_metric(ifconfig_handle_t *h, const char *name, int *metric);
lib/libifconfig/libifconfig.h
184
int ifconfig_set_capability(ifconfig_handle_t *h, const char *name,
lib/libifconfig/libifconfig.h
186
int ifconfig_get_capability(ifconfig_handle_t *h, const char *name,
lib/libifconfig/libifconfig.h
196
int ifconfig_get_groups(ifconfig_handle_t *h, const char *name,
lib/libifconfig/libifconfig.h
198
int ifconfig_get_ifstatus(ifconfig_handle_t *h, const char *name,
lib/libifconfig/libifconfig.h
207
int ifconfig_media_get_mediareq(ifconfig_handle_t *h, const char *name,
lib/libifconfig/libifconfig.h
283
int ifconfig_media_get_downreason(ifconfig_handle_t *h, const char *name,
lib/libifconfig/libifconfig.h
300
int ifconfig_carp_get_vhid(ifconfig_handle_t *h, const char *name,
lib/libifconfig/libifconfig.h
302
int ifconfig_carp_get_info(ifconfig_handle_t *h, const char *name,
lib/libifconfig/libifconfig.h
304
int ifconfig_carp_set_info(ifconfig_handle_t *h, const char *name,
lib/libifconfig/libifconfig.h
315
int ifconfig_inet_get_addrinfo(ifconfig_handle_t *h,
lib/libifconfig/libifconfig.h
326
int ifconfig_inet6_get_addrinfo(ifconfig_handle_t *h,
lib/libifconfig/libifconfig.h
330
int ifconfig_bridge_get_bridge_status(ifconfig_handle_t *h,
lib/libifconfig/libifconfig.h
340
int ifconfig_lagg_get_lagg_status(ifconfig_handle_t *h,
lib/libifconfig/libifconfig.h
344
int ifconfig_lagg_get_laggport_status(ifconfig_handle_t *h,
lib/libifconfig/libifconfig.h
356
int ifconfig_destroy_interface(ifconfig_handle_t *h, const char *name);
lib/libifconfig/libifconfig.h
362
int ifconfig_create_interface(ifconfig_handle_t *h, const char *name,
lib/libifconfig/libifconfig.h
371
int ifconfig_create_interface_vlan(ifconfig_handle_t *h, const char *name,
lib/libifconfig/libifconfig.h
374
int ifconfig_set_vlantag(ifconfig_handle_t *h, const char *name,
lib/libifconfig/libifconfig.h
385
int ifconfig_list_cloners(ifconfig_handle_t *h, char **bufp, size_t *lenp);
lib/libifconfig/libifconfig.h
394
int ifconfig_set_up(ifconfig_handle_t *h, const char *ifname, bool up);
lib/libifconfig/libifconfig_bridge.c
101
if (ifconfig_bridge_ioctlwrap(h, name, BRDGGDEFPVID,
lib/libifconfig/libifconfig_bridge.c
107
if (ifconfig_bridge_ioctlwrap(h, name, BRDGPARAM,
lib/libifconfig/libifconfig_bridge.c
117
if (ifconfig_bridge_ioctlwrap(h, name, BRDGGIFS,
lib/libifconfig/libifconfig_bridge.c
125
h->error.errtype = OTHER;
lib/libifconfig/libifconfig_bridge.c
126
h->error.errcode = ENOMEM;
lib/libifconfig/libifconfig_bridge.c
136
h->error.errtype = OTHER;
lib/libifconfig/libifconfig_bridge.c
137
h->error.errcode = ENOMEM;
lib/libifconfig/libifconfig_bridge.c
146
if (ifconfig_bridge_ioctlwrap(h, name, BRDGGIFVLANSET, &vreq,
lib/libifconfig/libifconfig_bridge.c
49
ifconfig_bridge_ioctlwrap(ifconfig_handle_t *h, const char *name,
lib/libifconfig/libifconfig_bridge.c
60
return (ifconfig_ioctlwrap(h, AF_LOCAL, req, &ifd));
lib/libifconfig/libifconfig_bridge.c
64
ifconfig_bridge_get_bridge_status(ifconfig_handle_t *h,
lib/libifconfig/libifconfig_bridge.c
77
h->error.errtype = OTHER;
lib/libifconfig/libifconfig_bridge.c
78
h->error.errcode = ENOMEM;
lib/libifconfig/libifconfig_bridge.c
83
if (ifconfig_bridge_ioctlwrap(h, name, BRDGGCACHE,
lib/libifconfig/libifconfig_bridge.c
89
if (ifconfig_bridge_ioctlwrap(h, name, BRDGGTO,
lib/libifconfig/libifconfig_bridge.c
95
if (ifconfig_bridge_ioctlwrap(h, name, BRDGGFLAGS,
lib/libifconfig/libifconfig_carp.c
106
ifconfig_error(h, NETLINK, ENOMEM);
lib/libifconfig/libifconfig_carp.c
111
ifconfig_error(h, NETLINK, EIO);
lib/libifconfig/libifconfig_carp.c
117
ifconfig_error(h, NETLINK, e.error);
lib/libifconfig/libifconfig_carp.c
122
ifconfig_error(h, NETLINK, E2BIG);
lib/libifconfig/libifconfig_carp.c
134
ifconfig_error(h, NETLINK, E2BIG);
lib/libifconfig/libifconfig_carp.c
142
return (h->error.errcode ? -1 : 0);
lib/libifconfig/libifconfig_carp.c
146
ifconfig_carp_set_info(ifconfig_handle_t *h, const char *name,
lib/libifconfig/libifconfig_carp.c
155
ifconfig_error_clear(h);
lib/libifconfig/libifconfig_carp.c
158
ifconfig_error(h, NETLINK, ENOTSUP);
lib/libifconfig/libifconfig_carp.c
166
ifconfig_error(h, NETLINK, EPROTONOSUPPORT);
lib/libifconfig/libifconfig_carp.c
187
ifconfig_error(h, NETLINK, ENOMEM);
lib/libifconfig/libifconfig_carp.c
193
ifconfig_error(h, NETLINK, EIO);
lib/libifconfig/libifconfig_carp.c
199
ifconfig_error(h, NETLINK, e.error);
lib/libifconfig/libifconfig_carp.c
204
return (h->error.errcode ? -1 : 0);
lib/libifconfig/libifconfig_carp.c
208
ifconfig_carp_get_vhid(ifconfig_handle_t *h, const char *name,
lib/libifconfig/libifconfig_carp.c
211
return (_ifconfig_carp_get(h, name, carp, 1, vhid));
lib/libifconfig/libifconfig_carp.c
215
ifconfig_carp_get_info(ifconfig_handle_t *h, const char *name,
lib/libifconfig/libifconfig_carp.c
218
return (_ifconfig_carp_get(h, name, carp, ncarp, 0));
lib/libifconfig/libifconfig_carp.c
68
_ifconfig_carp_get(ifconfig_handle_t *h, const char *name,
lib/libifconfig/libifconfig_carp.c
79
ifconfig_error_clear(h);
lib/libifconfig/libifconfig_carp.c
84
ifconfig_error(h, NETLINK, ENOTSUP);
lib/libifconfig/libifconfig_carp.c
92
ifconfig_error(h, NETLINK, EPROTONOSUPPORT);
lib/libifconfig/libifconfig_inet.c
55
ifconfig_inet_get_addrinfo(ifconfig_handle_t *h __unused,
lib/libifconfig/libifconfig_inet6.c
61
ifconfig_inet6_get_addrinfo(ifconfig_handle_t *h,
lib/libifconfig/libifconfig_inet6.c
84
if (ifconfig_ioctlwrap(h, AF_INET6, SIOCGIFAFLAG_IN6, &ifr6) < 0) {
lib/libifconfig/libifconfig_inet6.c
92
if (ifconfig_ioctlwrap(h, AF_INET6, SIOCGIFALIFETIME_IN6, &ifr6) < 0) {
lib/libifconfig/libifconfig_internal.c
100
*s = h->sockets[addressfamily];
lib/libifconfig/libifconfig_internal.c
105
ifconfig_error_clear(ifconfig_handle_t *h)
lib/libifconfig/libifconfig_internal.c
107
h->error.errtype = OK;
lib/libifconfig/libifconfig_internal.c
108
h->error.errcode = 0;
lib/libifconfig/libifconfig_internal.c
112
ifconfig_error(ifconfig_handle_t *h, ifconfig_errtype type, int error)
lib/libifconfig/libifconfig_internal.c
114
h->error.errtype = type;
lib/libifconfig/libifconfig_internal.c
115
h->error.errcode = error;
lib/libifconfig/libifconfig_internal.c
41
ifconfig_getifaddrs(ifconfig_handle_t *h)
lib/libifconfig/libifconfig_internal.c
45
if (h->ifap == NULL) {
lib/libifconfig/libifconfig_internal.c
46
ret = getifaddrs(&h->ifap);
lib/libifconfig/libifconfig_internal.c
54
ifconfig_ioctlwrap(ifconfig_handle_t *h, const int addressfamily,
lib/libifconfig/libifconfig_internal.c
59
if (ifconfig_socket(h, addressfamily, &s) != 0) {
lib/libifconfig/libifconfig_internal.c
64
h->error.errtype = IOCTL;
lib/libifconfig/libifconfig_internal.c
65
h->error.ioctl_request = request;
lib/libifconfig/libifconfig_internal.c
66
h->error.errcode = errno;
lib/libifconfig/libifconfig_internal.c
78
ifconfig_socket(ifconfig_handle_t *h, const int addressfamily, int *s)
lib/libifconfig/libifconfig_internal.c
82
h->error.errtype = SOCKET;
lib/libifconfig/libifconfig_internal.c
83
h->error.errcode = EINVAL;
lib/libifconfig/libifconfig_internal.c
87
if (h->sockets[addressfamily] != -1) {
lib/libifconfig/libifconfig_internal.c
88
*s = h->sockets[addressfamily];
lib/libifconfig/libifconfig_internal.c
93
h->sockets[addressfamily] = socket(addressfamily, SOCK_DGRAM, 0);
lib/libifconfig/libifconfig_internal.c
94
if (h->sockets[addressfamily] == -1) {
lib/libifconfig/libifconfig_internal.c
95
h->error.errtype = SOCKET;
lib/libifconfig/libifconfig_internal.c
96
h->error.errcode = errno;
lib/libifconfig/libifconfig_internal.h
58
int ifconfig_getifaddrs(ifconfig_handle_t *h);
lib/libifconfig/libifconfig_internal.h
79
int ifconfig_socket(ifconfig_handle_t *h, const int addressfamily, int *s);
lib/libifconfig/libifconfig_internal.h
82
int ifconfig_ioctlwrap(ifconfig_handle_t *h, const int addressfamily,
lib/libifconfig/libifconfig_internal.h
85
void ifconfig_error_clear(ifconfig_handle_t *h);
lib/libifconfig/libifconfig_internal.h
86
void ifconfig_error(ifconfig_handle_t *h, ifconfig_errtype type, int error);
lib/libifconfig/libifconfig_lagg.c
55
ifconfig_lagg_get_laggport_status(ifconfig_handle_t *h,
lib/libifconfig/libifconfig_lagg.c
61
return (ifconfig_ioctlwrap(h, AF_LOCAL, SIOCGLAGGPORT, rp));
lib/libifconfig/libifconfig_lagg.c
65
ifconfig_lagg_get_lagg_status(ifconfig_handle_t *h,
lib/libifconfig/libifconfig_lagg.c
72
h->error.errtype = OTHER;
lib/libifconfig/libifconfig_lagg.c
73
h->error.errcode = ENOMEM;
lib/libifconfig/libifconfig_lagg.c
85
ifconfig_ioctlwrap(h, AF_LOCAL, SIOCGLAGGOPTS, &ls->ro);
lib/libifconfig/libifconfig_lagg.c
88
if (ifconfig_ioctlwrap(h, AF_LOCAL, SIOCGLAGGFLAGS, &ls->rf) != 0) {
lib/libifconfig/libifconfig_lagg.c
93
if (ifconfig_ioctlwrap(h, AF_LOCAL, SIOCGLAGG, &ls->ra) != 0) {
lib/libifconfig/libifconfig_media.c
439
ifconfig_media_get_mediareq(ifconfig_handle_t *h, const char *name,
lib/libifconfig/libifconfig_media.c
448
h->error.errtype = OTHER;
lib/libifconfig/libifconfig_media.c
449
h->error.errcode = ENOMEM;
lib/libifconfig/libifconfig_media.c
457
if (ifconfig_ioctlwrap(h, AF_LOCAL, cmd, &ms->ifmr) < 0) {
lib/libifconfig/libifconfig_media.c
459
if (ifconfig_ioctlwrap(h, AF_LOCAL, cmd, &ms->ifmr) < 0) {
lib/libifconfig/libifconfig_media.c
461
h->error.errtype = OK;
lib/libifconfig/libifconfig_media.c
473
h->error.errtype = OTHER;
lib/libifconfig/libifconfig_media.c
474
h->error.errcode = ENOMEM;
lib/libifconfig/libifconfig_media.c
480
if (ifconfig_ioctlwrap(h, AF_LOCAL, cmd, &ms2->ifmr) < 0) {
lib/libifconfig/libifconfig_media.c
520
ifconfig_media_get_downreason(ifconfig_handle_t *h, const char *name,
lib/libifconfig/libifconfig_media.c
526
return (ifconfig_ioctlwrap(h, AF_LOCAL, SIOCGIFDOWNREASON, ifdr));
lib/libifconfig/libifconfig_nl.c
15
static int ifconfig_modify_flags(ifconfig_handle_t *h, const char *ifname,
lib/libifconfig/libifconfig_nl.c
19
ifconfig_modify_flags(ifconfig_handle_t *h, const char *ifname, int ifi_flags,
lib/libifconfig/libifconfig_nl.c
30
ifconfig_error(h, NETLINK, ENOTSUP);
lib/libifconfig/libifconfig_nl.c
44
ifconfig_error(h, NETLINK, ENOMEM);
lib/libifconfig/libifconfig_nl.c
50
ifconfig_error(h, NETLINK, EIO);
lib/libifconfig/libifconfig_nl.c
56
ifconfig_error(h, NETLINK, e.error);
lib/libifconfig/libifconfig_nl.c
67
ifconfig_set_up(ifconfig_handle_t *h, const char *ifname, bool up)
lib/libifconfig/libifconfig_nl.c
71
return (ifconfig_modify_flags(h, ifname, flag, IFF_UP));
lib/libifconfig/libifconfig_sfp.c
102
if (ifconfig_ioctlwrap(ii->h, AF_LOCAL, SIOCGI2C,
lib/libifconfig/libifconfig_sfp.c
118
i2c_info_init(struct i2c_info *ii, ifconfig_handle_t *h, const char *name)
lib/libifconfig/libifconfig_sfp.c
124
ii->h = h;
lib/libifconfig/libifconfig_sfp.c
138
h->error.errtype = OTHER;
lib/libifconfig/libifconfig_sfp.c
139
h->error.errcode = ENOENT;
lib/libifconfig/libifconfig_sfp.c
197
ifconfig_sfp_get_sfp_info(ifconfig_handle_t *h,
lib/libifconfig/libifconfig_sfp.c
205
if (i2c_info_init(&ii, h, name) != 0)
lib/libifconfig/libifconfig_sfp.c
295
ifconfig_sfp_get_sfp_vendor_info(ifconfig_handle_t *h,
lib/libifconfig/libifconfig_sfp.c
302
if (i2c_info_init(&ii, h, name) != 0)
lib/libifconfig/libifconfig_sfp.c
399
ii->h->error.errtype = OTHER;
lib/libifconfig/libifconfig_sfp.c
400
ii->h->error.errcode = ENXIO;
lib/libifconfig/libifconfig_sfp.c
408
ii->h->error.errtype = OTHER;
lib/libifconfig/libifconfig_sfp.c
409
ii->h->error.errcode = ENOMEM;
lib/libifconfig/libifconfig_sfp.c
444
ii->h->error.errtype = OTHER;
lib/libifconfig/libifconfig_sfp.c
445
ii->h->error.errcode = ENOMEM;
lib/libifconfig/libifconfig_sfp.c
461
ifconfig_sfp_get_sfp_status(ifconfig_handle_t *h, const char *name,
lib/libifconfig/libifconfig_sfp.c
468
if (i2c_info_init(&ii, h, name) != 0)
lib/libifconfig/libifconfig_sfp.c
554
ifconfig_sfp_get_sfp_dump(ifconfig_handle_t *h, const char *name,
lib/libifconfig/libifconfig_sfp.c
562
if (i2c_info_init(&ii, h, name) != 0)
lib/libifconfig/libifconfig_sfp.c
57
ifconfig_handle_t *h;
lib/libifconfig/libifconfig_sfp.h
101
int ifconfig_sfp_get_sfp_info(ifconfig_handle_t *h, const char *name,
lib/libifconfig/libifconfig_sfp.h
157
int ifconfig_sfp_get_sfp_vendor_info(ifconfig_handle_t *h, const char *name,
lib/libifconfig/libifconfig_sfp.h
169
int ifconfig_sfp_get_sfp_status(ifconfig_handle_t *h, const char *name,
lib/libifconfig/libifconfig_sfp.h
185
int ifconfig_sfp_get_sfp_dump(ifconfig_handle_t *h, const char *name,
lib/libnetmap/nmreq.c
100
h->nr_body = (uintptr_t)body;
lib/libnetmap/nmreq.c
104
nmreq_header_decode(const char **pifname, struct nmreq_header *h, struct nmctx *ctx)
lib/libnetmap/nmreq.c
172
if (namelen >= sizeof(h->nr_name)) {
lib/libnetmap/nmreq.c
182
memcpy(h->nr_name, ifname, namelen);
lib/libnetmap/nmreq.c
183
h->nr_name[namelen] = '\0';
lib/libnetmap/nmreq.c
184
ED("name %s", h->nr_name);
lib/libnetmap/nmreq.c
599
nmreq_find_option(struct nmreq_header *h, uint32_t t)
lib/libnetmap/nmreq.c
603
nmreq_foreach_option(h, o) {
lib/libnetmap/nmreq.c
611
nmreq_remove_option(struct nmreq_header *h, struct nmreq_option *o)
lib/libnetmap/nmreq.c
615
for (nmo = (struct nmreq_option **)&h->nr_options; *nmo != NULL;
lib/libnetmap/nmreq.c
626
nmreq_free_options(struct nmreq_header *h)
lib/libnetmap/nmreq.c
635
for (o = (struct nmreq_option *)(uintptr_t)h->nr_options; o != NULL;
lib/libnetmap/nmreq.c
71
nmreq_push_option(struct nmreq_header *h, struct nmreq_option *o)
lib/libnetmap/nmreq.c
73
o->nro_next = h->nr_options;
lib/libnetmap/nmreq.c
74
h->nr_options = (uintptr_t)o;
lib/libnetmap/nmreq.c
95
nmreq_header_init(struct nmreq_header *h, uint16_t reqtype, void *body)
lib/libnetmap/nmreq.c
97
memset(h, 0, sizeof(*h));
lib/libnetmap/nmreq.c
98
h->nr_version = NETMAP_API;
lib/libnetmap/nmreq.c
99
h->nr_reqtype = reqtype;
lib/libopenbsd/ohash.c
100
i = h->t[j].hv % ns;
lib/libopenbsd/ohash.c
101
incr = ((h->t[j].hv % (ns - 2)) & ~1) + 1;
lib/libopenbsd/ohash.c
107
n[i].hv = h->t[j].hv;
lib/libopenbsd/ohash.c
108
n[i].p = h->t[j].p;
lib/libopenbsd/ohash.c
111
(h->info.free)(h->t, h->info.data);
lib/libopenbsd/ohash.c
112
h->t = n;
lib/libopenbsd/ohash.c
113
h->size = ns;
lib/libopenbsd/ohash.c
114
h->total -= h->deleted;
lib/libopenbsd/ohash.c
115
h->deleted = 0;
lib/libopenbsd/ohash.c
119
ohash_remove(struct ohash *h, unsigned int i)
lib/libopenbsd/ohash.c
121
void *result = (void *)h->t[i].p;
lib/libopenbsd/ohash.c
129
h->t[i].p = DELETED;
lib/libopenbsd/ohash.c
130
h->deleted++;
lib/libopenbsd/ohash.c
131
if (h->deleted >= MINDELETED && 4 * h->deleted > h->total)
lib/libopenbsd/ohash.c
132
ohash_resize(h);
lib/libopenbsd/ohash.c
137
ohash_find(struct ohash *h, unsigned int i)
lib/libopenbsd/ohash.c
139
if (h->t[i].p == DELETED)
lib/libopenbsd/ohash.c
142
return (void *)h->t[i].p;
lib/libopenbsd/ohash.c
146
ohash_insert(struct ohash *h, unsigned int i, void *p)
lib/libopenbsd/ohash.c
151
if (h->t[i].p == DELETED) {
lib/libopenbsd/ohash.c
152
h->deleted--;
lib/libopenbsd/ohash.c
153
h->t[i].p = p;
lib/libopenbsd/ohash.c
155
h->t[i].p = p;
lib/libopenbsd/ohash.c
157
if (++h->total * 4 > h->size * 3)
lib/libopenbsd/ohash.c
158
ohash_resize(h);
lib/libopenbsd/ohash.c
164
ohash_entries(struct ohash *h)
lib/libopenbsd/ohash.c
166
return h->total - h->deleted;
lib/libopenbsd/ohash.c
170
ohash_first(struct ohash *h, unsigned int *pos)
lib/libopenbsd/ohash.c
173
return ohash_next(h, pos);
lib/libopenbsd/ohash.c
177
ohash_next(struct ohash *h, unsigned int *pos)
lib/libopenbsd/ohash.c
179
for (; *pos < h->size; (*pos)++)
lib/libopenbsd/ohash.c
180
if (h->t[*pos].p != DELETED && h->t[*pos].p != NULL)
lib/libopenbsd/ohash.c
181
return (void *)h->t[(*pos)++].p;
lib/libopenbsd/ohash.c
186
ohash_init(struct ohash *h, unsigned int size, struct ohash_info *info)
lib/libopenbsd/ohash.c
188
h->size = 1UL << size;
lib/libopenbsd/ohash.c
189
if (h->size < MINSIZE)
lib/libopenbsd/ohash.c
190
h->size = MINSIZE;
lib/libopenbsd/ohash.c
193
STAT_HASH_SIZE += h->size;
lib/libopenbsd/ohash.c
196
h->info.key_offset = info->key_offset;
lib/libopenbsd/ohash.c
197
h->info.calloc = info->calloc;
lib/libopenbsd/ohash.c
198
h->info.free = info->free;
lib/libopenbsd/ohash.c
199
h->info.alloc = info->alloc;
lib/libopenbsd/ohash.c
200
h->info.data = info->data;
lib/libopenbsd/ohash.c
201
h->t = (h->info.calloc)(h->size, sizeof(struct _ohash_record),
lib/libopenbsd/ohash.c
202
h->info.data);
lib/libopenbsd/ohash.c
203
h->total = h->deleted = 0;
lib/libopenbsd/ohash.c
223
ohash_lookup_interval(struct ohash *h, const char *start, const char *end,
lib/libopenbsd/ohash.c
233
i = hv % h->size;
lib/libopenbsd/ohash.c
234
incr = ((hv % (h->size-2)) & ~1) + 1;
lib/libopenbsd/ohash.c
235
while (h->t[i].p != NULL) {
lib/libopenbsd/ohash.c
239
if (h->t[i].p == DELETED) {
lib/libopenbsd/ohash.c
242
} else if (h->t[i].hv == hv &&
lib/libopenbsd/ohash.c
243
strncmp(h->t[i].p+h->info.key_offset, start,
lib/libopenbsd/ohash.c
245
(h->t[i].p+h->info.key_offset)[end-start] == '\0') {
lib/libopenbsd/ohash.c
247
h->t[empty].hv = hv;
lib/libopenbsd/ohash.c
248
h->t[empty].p = h->t[i].p;
lib/libopenbsd/ohash.c
249
h->t[i].p = DELETED;
lib/libopenbsd/ohash.c
259
if (i >= h->size)
lib/libopenbsd/ohash.c
260
i -= h->size;
lib/libopenbsd/ohash.c
266
h->t[i].hv = hv;
lib/libopenbsd/ohash.c
271
ohash_lookup_memory(struct ohash *h, const char *k, size_t size, uint32_t hv)
lib/libopenbsd/ohash.c
280
i = hv % h->size;
lib/libopenbsd/ohash.c
281
incr = ((hv % (h->size-2)) & ~1) + 1;
lib/libopenbsd/ohash.c
282
while (h->t[i].p != NULL) {
lib/libopenbsd/ohash.c
286
if (h->t[i].p == DELETED) {
lib/libopenbsd/ohash.c
289
} else if (h->t[i].hv == hv &&
lib/libopenbsd/ohash.c
290
memcmp(h->t[i].p+h->info.key_offset, k, size) == 0) {
lib/libopenbsd/ohash.c
292
h->t[empty].hv = hv;
lib/libopenbsd/ohash.c
293
h->t[empty].p = h->t[i].p;
lib/libopenbsd/ohash.c
294
h->t[i].p = DELETED;
lib/libopenbsd/ohash.c
303
if (i >= h->size)
lib/libopenbsd/ohash.c
304
i -= h->size;
lib/libopenbsd/ohash.c
31
#define DELETED ((const char *)h)
lib/libopenbsd/ohash.c
310
h->t[i].hv = hv;
lib/libopenbsd/ohash.c
315
ohash_qlookup(struct ohash *h, const char *s)
lib/libopenbsd/ohash.c
318
return ohash_qlookupi(h, s, &e);
lib/libopenbsd/ohash.c
32
#define NONE (h->size)
lib/libopenbsd/ohash.c
322
ohash_qlookupi(struct ohash *h, const char *s, const char **e)
lib/libopenbsd/ohash.c
327
return ohash_lookup_interval(h, s, *e, hv);
lib/libopenbsd/ohash.c
62
ohash_delete(struct ohash *h)
lib/libopenbsd/ohash.c
64
(h->info.free)(h->t, h->info.data);
lib/libopenbsd/ohash.c
66
h->t = NULL;
lib/libopenbsd/ohash.c
71
ohash_resize(struct ohash *h)
lib/libopenbsd/ohash.c
78
if (4 * h->deleted < h->total) {
lib/libopenbsd/ohash.c
79
if (h->size >= (UINT_MAX >> 1U))
lib/libopenbsd/ohash.c
82
ns = h->size << 1U;
lib/libopenbsd/ohash.c
83
} else if (3 * h->deleted > 2 * h->total)
lib/libopenbsd/ohash.c
84
ns = h->size >> 1U;
lib/libopenbsd/ohash.c
86
ns = h->size;
lib/libopenbsd/ohash.c
91
STAT_HASH_SIZE += ns - h->size;
lib/libopenbsd/ohash.c
94
n = (h->info.calloc)(ns, sizeof(struct _ohash_record), h->info.data);
lib/libopenbsd/ohash.c
98
for (j = 0; j < h->size; j++) {
lib/libopenbsd/ohash.c
99
if (h->t[j].p != NULL && h->t[j].p != DELETED) {
lib/libpfctl/libpfctl.c
101
pfctl_close(struct pfctl_handle *h)
lib/libpfctl/libpfctl.c
103
close(h->fd);
lib/libpfctl/libpfctl.c
104
snl_free(&h->ss);
lib/libpfctl/libpfctl.c
105
free(h);
lib/libpfctl/libpfctl.c
109
pfctl_fd(struct pfctl_handle *h)
lib/libpfctl/libpfctl.c
111
return (h->fd);
lib/libpfctl/libpfctl.c
115
pfctl_do_netlink_cmd(struct pfctl_handle *h, uint cmd)
lib/libpfctl/libpfctl.c
123
family_id = snl_get_genl_family(&h->ss, PFNL_FAMILY_NAME);
lib/libpfctl/libpfctl.c
127
snl_init_writer(&h->ss, &nw);
lib/libpfctl/libpfctl.c
1331
struct pfctl_handle *h;
lib/libpfctl/libpfctl.c
1334
h = pfctl_open(PF_DEVICE);
lib/libpfctl/libpfctl.c
1335
if (h == NULL)
lib/libpfctl/libpfctl.c
1338
ret = pfctl_add_rule_h(h, r, anchor, anchor_call, ticket, pool_ticket);
lib/libpfctl/libpfctl.c
1340
pfctl_close(h);
lib/libpfctl/libpfctl.c
1346
pfctl_add_rule_h(struct pfctl_handle *h, const struct pfctl_rule *r,
lib/libpfctl/libpfctl.c
135
snl_send_message(&h->ss, hdr);
lib/libpfctl/libpfctl.c
1356
family_id = snl_get_genl_family(&h->ss, PFNL_FAMILY_NAME);
lib/libpfctl/libpfctl.c
1360
snl_init_writer(&h->ss, &nw);
lib/libpfctl/libpfctl.c
137
while ((hdr = snl_read_reply_multi(&h->ss, seq_id, &e)) != NULL) {
lib/libpfctl/libpfctl.c
1375
if (! snl_send_message(&h->ss, hdr))
lib/libpfctl/libpfctl.c
1378
while ((hdr = snl_read_reply_multi(&h->ss, seq_id, &e)) != NULL) {
lib/libpfctl/libpfctl.c
1395
pfctl_get_rules_info_h(struct pfctl_handle *h, struct pfctl_rules_info *rules, uint32_t ruleset,
lib/libpfctl/libpfctl.c
1404
family_id = snl_get_genl_family(&h->ss, PFNL_FAMILY_NAME);
lib/libpfctl/libpfctl.c
1408
snl_init_writer(&h->ss, &nw);
lib/libpfctl/libpfctl.c
1420
if (! snl_send_message(&h->ss, hdr))
lib/libpfctl/libpfctl.c
1423
while ((hdr = snl_read_reply_multi(&h->ss, seq_id, &e)) != NULL) {
lib/libpfctl/libpfctl.c
1424
if (! snl_parse_nlmsg(&h->ss, hdr, &getrules_parser, rules))
lib/libpfctl/libpfctl.c
1435
struct pfctl_handle *h;
lib/libpfctl/libpfctl.c
1438
h = pfctl_open(PF_DEVICE);
lib/libpfctl/libpfctl.c
1439
if (h == NULL)
lib/libpfctl/libpfctl.c
1441
error = pfctl_get_rules_info_h(h, rules, ruleset, path);
lib/libpfctl/libpfctl.c
1442
pfctl_close(h);
lib/libpfctl/libpfctl.c
1448
pfctl_get_rule_h(struct pfctl_handle *h, uint32_t nr, uint32_t ticket, const char *anchor,
lib/libpfctl/libpfctl.c
1451
return (pfctl_get_clear_rule_h(h, nr, ticket, anchor, ruleset, rule,
lib/libpfctl/libpfctl.c
1724
pfctl_get_clear_rule_h(struct pfctl_handle *h, uint32_t nr, uint32_t ticket,
lib/libpfctl/libpfctl.c
1735
family_id = snl_get_genl_family(&h->ss, PFNL_FAMILY_NAME);
lib/libpfctl/libpfctl.c
1739
snl_init_writer(&h->ss, &nw);
lib/libpfctl/libpfctl.c
1754
if (! snl_send_message(&h->ss, hdr))
lib/libpfctl/libpfctl.c
1757
while ((hdr = snl_read_reply_multi(&h->ss, seq_id, &e)) != NULL) {
lib/libpfctl/libpfctl.c
1758
if (! snl_parse_nlmsg(&h->ss, hdr, &getrule_parser, &attrs))
lib/libpfctl/libpfctl.c
1879
pfctl_get_creatorids(struct pfctl_handle *h, uint32_t *creators, size_t *len)
lib/libpfctl/libpfctl.c
1883
error = pfctl_get_creators_nl(&h->ss, creators, len);
lib/libpfctl/libpfctl.c
1972
pfctl_get_states_h(struct pfctl_handle *h, struct pfctl_state_filter *filter, pfctl_get_state_fn f, void *arg)
lib/libpfctl/libpfctl.c
1974
int family_id = snl_get_genl_family(&h->ss, PFNL_FAMILY_NAME);
lib/libpfctl/libpfctl.c
1983
snl_init_writer(&h->ss, &nw);
lib/libpfctl/libpfctl.c
1998
snl_send_message(&h->ss, hdr);
lib/libpfctl/libpfctl.c
2001
while ((hdr = snl_read_reply_multi(&h->ss, seq_id, &e)) != NULL) {
lib/libpfctl/libpfctl.c
2004
if (!snl_parse_nlmsg(&h->ss, hdr, &state_parser, &s))
lib/libpfctl/libpfctl.c
2025
struct pfctl_handle h = {};
lib/libpfctl/libpfctl.c
2028
snl_init(&h.ss, NETLINK_GENERIC);
lib/libpfctl/libpfctl.c
2029
error = pfctl_get_states_h(&h, filter, f, arg);
lib/libpfctl/libpfctl.c
2030
snl_free(&h.ss);
lib/libpfctl/libpfctl.c
2092
_pfctl_clear_states_h(struct pfctl_handle *h, const struct pfctl_kill *kill,
lib/libpfctl/libpfctl.c
2102
family_id = snl_get_genl_family(&h->ss, PFNL_FAMILY_NAME);
lib/libpfctl/libpfctl.c
2106
snl_init_writer(&h->ss, &nw);
lib/libpfctl/libpfctl.c
2128
if (! snl_send_message(&h->ss, hdr))
lib/libpfctl/libpfctl.c
2131
while ((hdr = snl_read_reply_multi(&h->ss, seq_id, &e)) != NULL) {
lib/libpfctl/libpfctl.c
2132
if (! snl_parse_nlmsg(&h->ss, hdr, &clear_states_parser, &attrs))
lib/libpfctl/libpfctl.c
2143
pfctl_clear_states_h(struct pfctl_handle *h, const struct pfctl_kill *kill,
lib/libpfctl/libpfctl.c
2146
return(_pfctl_clear_states_h(h, kill, killed, PFNL_CMD_CLRSTATES));
lib/libpfctl/libpfctl.c
2150
pfctl_kill_states_h(struct pfctl_handle *h, const struct pfctl_kill *kill,
lib/libpfctl/libpfctl.c
2153
return(_pfctl_clear_states_h(h, kill, killed, PFNL_CMD_KILLSTATES));
lib/libpfctl/libpfctl.c
2160
struct pfctl_handle *h;
lib/libpfctl/libpfctl.c
2163
h = pfctl_open(PF_DEVICE);
lib/libpfctl/libpfctl.c
2164
if (h == NULL)
lib/libpfctl/libpfctl.c
2167
ret = _pfctl_clear_states_h(h, kill, killed, cmd);
lib/libpfctl/libpfctl.c
2168
pfctl_close(h);
lib/libpfctl/libpfctl.c
2453
_pfctl_table_add_addrs_h(struct pfctl_handle *h, struct pfr_table *tbl, struct pfr_addr
lib/libpfctl/libpfctl.c
2463
family_id = snl_get_genl_family(&h->ss, PFNL_FAMILY_NAME);
lib/libpfctl/libpfctl.c
2467
snl_init_writer(&h->ss, &nw);
lib/libpfctl/libpfctl.c
2479
if (! snl_send_message(&h->ss, hdr))
lib/libpfctl/libpfctl.c
2482
while ((hdr = snl_read_reply_multi(&h->ss, seq_id, &e)) != NULL) {
lib/libpfctl/libpfctl.c
2483
if (! snl_parse_nlmsg(&h->ss, hdr, &table_add_addr_parser, &added))
lib/libpfctl/libpfctl.c
2494
pfctl_table_add_addrs_h(struct pfctl_handle *h, struct pfr_table *tbl, struct pfr_addr
lib/libpfctl/libpfctl.c
2504
ret = _pfctl_table_add_addrs_h(h, tbl, &addr[off], chunk_size, &partial_added, flags);
lib/libpfctl/libpfctl.c
2520
_pfctl_table_del_addrs_h(struct pfctl_handle *h, struct pfr_table *tbl, struct pfr_addr
lib/libpfctl/libpfctl.c
2530
family_id = snl_get_genl_family(&h->ss, PFNL_FAMILY_NAME);
lib/libpfctl/libpfctl.c
2534
snl_init_writer(&h->ss, &nw);
lib/libpfctl/libpfctl.c
2546
if (! snl_send_message(&h->ss, hdr))
lib/libpfctl/libpfctl.c
2549
while ((hdr = snl_read_reply_multi(&h->ss, seq_id, &e)) != NULL) {
lib/libpfctl/libpfctl.c
2550
if (! snl_parse_nlmsg(&h->ss, hdr, &table_del_addr_parser, &deleted))
lib/libpfctl/libpfctl.c
2584
pfctl_table_del_addrs_h(struct pfctl_handle *h, struct pfr_table *tbl, struct pfr_addr
lib/libpfctl/libpfctl.c
2594
ret = _pfctl_table_del_addrs_h(h, tbl, &addr[off], chunk_size,
lib/libpfctl/libpfctl.c
262
pfctl_startstop(struct pfctl_handle *h, int start)
lib/libpfctl/libpfctl.c
2621
_pfctl_table_set_addrs_h(struct pfctl_handle *h, struct pfr_table *tbl, struct pfr_addr
lib/libpfctl/libpfctl.c
2631
family_id = snl_get_genl_family(&h->ss, PFNL_FAMILY_NAME);
lib/libpfctl/libpfctl.c
2635
snl_init_writer(&h->ss, &nw);
lib/libpfctl/libpfctl.c
264
return (pfctl_do_netlink_cmd(h, start ? PFNL_CMD_START : PFNL_CMD_STOP));
lib/libpfctl/libpfctl.c
2647
if (! snl_send_message(&h->ss, hdr))
lib/libpfctl/libpfctl.c
2650
while ((hdr = snl_read_reply_multi(&h->ss, seq_id, &e)) != NULL) {
lib/libpfctl/libpfctl.c
2651
if (! snl_parse_nlmsg(&h->ss, hdr, &table_set_addr_parser, &change))
lib/libpfctl/libpfctl.c
2666
pfctl_table_set_addrs_h(struct pfctl_handle *h, struct pfr_table *tbl,
lib/libpfctl/libpfctl.c
2682
ret = _pfctl_table_set_addrs_h(h, tbl, &addr[off], chunk_size,
lib/libpfctl/libpfctl.c
2794
pfctl_table_get_addrs_h(struct pfctl_handle *h, struct pfr_table *tbl,
lib/libpfctl/libpfctl.c
2804
family_id = snl_get_genl_family(&h->ss, PFNL_FAMILY_NAME);
lib/libpfctl/libpfctl.c
2808
snl_init_writer(&h->ss, &nw);
lib/libpfctl/libpfctl.c
2818
if (! snl_send_message(&h->ss, hdr))
lib/libpfctl/libpfctl.c
2823
while ((hdr = snl_read_reply_multi(&h->ss, seq_id, &e)) != NULL) {
lib/libpfctl/libpfctl.c
2824
if (! snl_parse_nlmsg(&h->ss, hdr, &table_get_addr_parser, &addrs))
lib/libpfctl/libpfctl.c
2834
pfctl_set_statusif(struct pfctl_handle *h, const char *ifname)
lib/libpfctl/libpfctl.c
2842
family_id = snl_get_genl_family(&h->ss, PFNL_FAMILY_NAME);
lib/libpfctl/libpfctl.c
2846
snl_init_writer(&h->ss, &nw);
lib/libpfctl/libpfctl.c
2856
if (! snl_send_message(&h->ss, hdr))
lib/libpfctl/libpfctl.c
2859
while ((hdr = snl_read_reply_multi(&h->ss, seq_id, &e)) != NULL) {
lib/libpfctl/libpfctl.c
2878
pfctl_natlook(struct pfctl_handle *h, const struct pfctl_natlook_key *k,
lib/libpfctl/libpfctl.c
2887
family_id = snl_get_genl_family(&h->ss, PFNL_FAMILY_NAME);
lib/libpfctl/libpfctl.c
2891
snl_init_writer(&h->ss, &nw);
lib/libpfctl/libpfctl.c
2908
if (! snl_send_message(&h->ss, hdr))
lib/libpfctl/libpfctl.c
2911
while ((hdr = snl_read_reply_multi(&h->ss, seq_id, &e)) != NULL) {
lib/libpfctl/libpfctl.c
2912
if (! snl_parse_nlmsg(&h->ss, hdr, &natlook_parser, r))
lib/libpfctl/libpfctl.c
2920
pfctl_set_debug(struct pfctl_handle *h, uint32_t level)
lib/libpfctl/libpfctl.c
2928
family_id = snl_get_genl_family(&h->ss, PFNL_FAMILY_NAME);
lib/libpfctl/libpfctl.c
2932
snl_init_writer(&h->ss, &nw);
lib/libpfctl/libpfctl.c
2942
if (! snl_send_message(&h->ss, hdr))
lib/libpfctl/libpfctl.c
2945
while ((hdr = snl_read_reply_multi(&h->ss, seq_id, &e)) != NULL) {
lib/libpfctl/libpfctl.c
2952
pfctl_set_timeout(struct pfctl_handle *h, uint32_t timeout, uint32_t seconds)
lib/libpfctl/libpfctl.c
2960
family_id = snl_get_genl_family(&h->ss, PFNL_FAMILY_NAME);
lib/libpfctl/libpfctl.c
2964
snl_init_writer(&h->ss, &nw);
lib/libpfctl/libpfctl.c
2975
if (! snl_send_message(&h->ss, hdr))
lib/libpfctl/libpfctl.c
2978
while ((hdr = snl_read_reply_multi(&h->ss, seq_id, &e)) != NULL) {
lib/libpfctl/libpfctl.c
2995
pfctl_get_timeout(struct pfctl_handle *h, uint32_t timeout, uint32_t *seconds)
lib/libpfctl/libpfctl.c
3004
family_id = snl_get_genl_family(&h->ss, PFNL_FAMILY_NAME);
lib/libpfctl/libpfctl.c
3008
snl_init_writer(&h->ss, &nw);
lib/libpfctl/libpfctl.c
3019
if (! snl_send_message(&h->ss, hdr))
lib/libpfctl/libpfctl.c
3022
while ((hdr = snl_read_reply_multi(&h->ss, seq_id, &e)) != NULL) {
lib/libpfctl/libpfctl.c
3023
if (! snl_parse_nlmsg(&h->ss, hdr, &get_timeout_parser, &to))
lib/libpfctl/libpfctl.c
3034
pfctl_set_limit(struct pfctl_handle *h, const int index, const uint limit)
lib/libpfctl/libpfctl.c
3042
family_id = snl_get_genl_family(&h->ss, PFNL_FAMILY_NAME);
lib/libpfctl/libpfctl.c
3046
snl_init_writer(&h->ss, &nw);
lib/libpfctl/libpfctl.c
3057
if (! snl_send_message(&h->ss, hdr))
lib/libpfctl/libpfctl.c
3060
while ((hdr = snl_read_reply_multi(&h->ss, seq_id, &e)) != NULL) {
lib/libpfctl/libpfctl.c
3077
pfctl_get_limit(struct pfctl_handle *h, const int index, uint *limit)
lib/libpfctl/libpfctl.c
3086
family_id = snl_get_genl_family(&h->ss, PFNL_FAMILY_NAME);
lib/libpfctl/libpfctl.c
3090
snl_init_writer(&h->ss, &nw);
lib/libpfctl/libpfctl.c
3101
if (! snl_send_message(&h->ss, hdr))
lib/libpfctl/libpfctl.c
3104
while ((hdr = snl_read_reply_multi(&h->ss, seq_id, &e)) != NULL) {
lib/libpfctl/libpfctl.c
3105
if (! snl_parse_nlmsg(&h->ss, hdr, &get_limit_parser, &li))
lib/libpfctl/libpfctl.c
3126
pfctl_begin_addrs(struct pfctl_handle *h, uint32_t *ticket)
lib/libpfctl/libpfctl.c
3135
family_id = snl_get_genl_family(&h->ss, PFNL_FAMILY_NAME);
lib/libpfctl/libpfctl.c
3139
snl_init_writer(&h->ss, &nw);
lib/libpfctl/libpfctl.c
3148
if (! snl_send_message(&h->ss, hdr))
lib/libpfctl/libpfctl.c
3151
while ((hdr = snl_read_reply_multi(&h->ss, seq_id, &e)) != NULL) {
lib/libpfctl/libpfctl.c
3152
if (! snl_parse_nlmsg(&h->ss, hdr, &begin_addrs_parser, &attrs))
lib/libpfctl/libpfctl.c
3163
pfctl_add_addr(struct pfctl_handle *h, const struct pfioc_pooladdr *pa, int which)
lib/libpfctl/libpfctl.c
3171
family_id = snl_get_genl_family(&h->ss, PFNL_FAMILY_NAME);
lib/libpfctl/libpfctl.c
3175
snl_init_writer(&h->ss, &nw);
lib/libpfctl/libpfctl.c
3194
if (! snl_send_message(&h->ss, hdr))
lib/libpfctl/libpfctl.c
3197
while ((hdr = snl_read_reply_multi(&h->ss, seq_id, &e)) != NULL) {
lib/libpfctl/libpfctl.c
3209
pfctl_get_addrs(struct pfctl_handle *h, uint32_t ticket, uint32_t r_num,
lib/libpfctl/libpfctl.c
3218
family_id = snl_get_genl_family(&h->ss, PFNL_FAMILY_NAME);
lib/libpfctl/libpfctl.c
3222
snl_init_writer(&h->ss, &nw);
lib/libpfctl/libpfctl.c
3236
if (! snl_send_message(&h->ss, hdr))
lib/libpfctl/libpfctl.c
3239
while ((hdr = snl_read_reply_multi(&h->ss, seq_id, &e)) != NULL) {
lib/libpfctl/libpfctl.c
3240
if (! snl_parse_nlmsg(&h->ss, hdr, &get_addrs_parser, nr))
lib/libpfctl/libpfctl.c
3271
pfctl_get_addr(struct pfctl_handle *h, uint32_t ticket, uint32_t r_num,
lib/libpfctl/libpfctl.c
3281
family_id =snl_get_genl_family(&h->ss, PFNL_FAMILY_NAME);
lib/libpfctl/libpfctl.c
3285
snl_init_writer(&h->ss, &nw);
lib/libpfctl/libpfctl.c
3300
if (! snl_send_message(&h->ss, hdr))
lib/libpfctl/libpfctl.c
3303
while ((hdr = snl_read_reply_multi(&h->ss, seq_id, &e)) != NULL) {
lib/libpfctl/libpfctl.c
3304
if (! snl_parse_nlmsg(&h->ss, hdr, &get_addr_parser, pa))
lib/libpfctl/libpfctl.c
3320
pfctl_get_rulesets(struct pfctl_handle *h, const char *path, uint32_t *nr)
lib/libpfctl/libpfctl.c
3329
family_id = snl_get_genl_family(&h->ss, PFNL_FAMILY_NAME);
lib/libpfctl/libpfctl.c
3333
snl_init_writer(&h->ss, &nw);
lib/libpfctl/libpfctl.c
3343
if (! snl_send_message(&h->ss, hdr))
lib/libpfctl/libpfctl.c
3346
while ((hdr = snl_read_reply_multi(&h->ss, seq_id, &e)) != NULL) {
lib/libpfctl/libpfctl.c
3347
if (! snl_parse_nlmsg(&h->ss, hdr, &ruleset_parser, &rs))
lib/libpfctl/libpfctl.c
3357
pfctl_get_ruleset(struct pfctl_handle *h, const char *path, uint32_t nr, struct pfioc_ruleset *rs)
lib/libpfctl/libpfctl.c
3365
family_id = snl_get_genl_family(&h->ss, PFNL_FAMILY_NAME);
lib/libpfctl/libpfctl.c
3369
snl_init_writer(&h->ss, &nw);
lib/libpfctl/libpfctl.c
3380
if (! snl_send_message(&h->ss, hdr))
lib/libpfctl/libpfctl.c
3383
while ((hdr = snl_read_reply_multi(&h->ss, seq_id, &e)) != NULL) {
lib/libpfctl/libpfctl.c
3384
if (! snl_parse_nlmsg(&h->ss, hdr, &ruleset_parser, rs))
lib/libpfctl/libpfctl.c
3417
pfctl_get_srcnodes(struct pfctl_handle *h, pfctl_get_srcnode_fn fn, void *arg)
lib/libpfctl/libpfctl.c
3427
family_id = snl_get_genl_family(&h->ss, PFNL_FAMILY_NAME);
lib/libpfctl/libpfctl.c
3431
snl_init_writer(&h->ss, &nw);
lib/libpfctl/libpfctl.c
3439
if (!snl_send_message(&h->ss, hdr))
lib/libpfctl/libpfctl.c
3442
while ((hdr = snl_read_reply_multi(&h->ss, seq_id, &e)) != NULL) {
lib/libpfctl/libpfctl.c
3444
if (!snl_parse_nlmsg(&h->ss, hdr, &srcnode_parser, &sn))
lib/libpfctl/libpfctl.c
3461
pfctl_clear_tables(struct pfctl_handle *h, struct pfr_table *filter,
lib/libpfctl/libpfctl.c
3470
family_id = snl_get_genl_family(&h->ss, PFNL_FAMILY_NAME);
lib/libpfctl/libpfctl.c
3474
snl_init_writer(&h->ss, &nw);
lib/libpfctl/libpfctl.c
3487
if (!snl_send_message(&h->ss, hdr))
lib/libpfctl/libpfctl.c
3490
while ((hdr = snl_read_reply_multi(&h->ss, seq_id, &e)) != NULL) {
lib/libpfctl/libpfctl.c
3491
if (!snl_parse_nlmsg(&h->ss, hdr, &ndel_parser, ndel))
lib/libpfctl/libpfctl.c
3503
pfctl_add_table(struct pfctl_handle *h, struct pfr_table *table,
lib/libpfctl/libpfctl.c
3512
family_id = snl_get_genl_family(&h->ss, PFNL_FAMILY_NAME);
lib/libpfctl/libpfctl.c
3516
snl_init_writer(&h->ss, &nw);
lib/libpfctl/libpfctl.c
3529
if (!snl_send_message(&h->ss, hdr))
lib/libpfctl/libpfctl.c
3532
while ((hdr = snl_read_reply_multi(&h->ss, seq_id, &e)) != NULL) {
lib/libpfctl/libpfctl.c
3533
if (!snl_parse_nlmsg(&h->ss, hdr, &nadd_parser, nadd))
lib/libpfctl/libpfctl.c
3541
pfctl_del_table(struct pfctl_handle *h, struct pfr_table *table,
lib/libpfctl/libpfctl.c
3550
family_id = snl_get_genl_family(&h->ss, PFNL_FAMILY_NAME);
lib/libpfctl/libpfctl.c
3554
snl_init_writer(&h->ss, &nw);
lib/libpfctl/libpfctl.c
3567
if (!snl_send_message(&h->ss, hdr))
lib/libpfctl/libpfctl.c
3570
while ((hdr = snl_read_reply_multi(&h->ss, seq_id, &e)) != NULL) {
lib/libpfctl/libpfctl.c
3571
if (!snl_parse_nlmsg(&h->ss, hdr, &ndel_parser, ndel))
lib/libpfctl/libpfctl.c
3627
pfctl_get_tstats(struct pfctl_handle *h, const struct pfr_table *filter,
lib/libpfctl/libpfctl.c
3637
family_id = snl_get_genl_family(&h->ss, PFNL_FAMILY_NAME);
lib/libpfctl/libpfctl.c
3641
snl_init_writer(&h->ss, &nw);
lib/libpfctl/libpfctl.c
3653
if (!snl_send_message(&h->ss, hdr))
lib/libpfctl/libpfctl.c
3656
while ((hdr = snl_read_reply_multi(&h->ss, seq_id, &e)) != NULL) {
lib/libpfctl/libpfctl.c
3659
if (!snl_parse_nlmsg(&h->ss, hdr, &tstats_parser, &tstats))
lib/libpfctl/libpfctl.c
3676
pfctl_clear_tstats(struct pfctl_handle *h, const struct pfr_table *filter,
lib/libpfctl/libpfctl.c
3686
family_id = snl_get_genl_family(&h->ss, PFNL_FAMILY_NAME);
lib/libpfctl/libpfctl.c
3690
snl_init_writer(&h->ss, &nw);
lib/libpfctl/libpfctl.c
3703
if (!snl_send_message(&h->ss, hdr))
lib/libpfctl/libpfctl.c
3706
while ((hdr = snl_read_reply_multi(&h->ss, seq_id, &e)) != NULL) {
lib/libpfctl/libpfctl.c
3707
if (!snl_parse_nlmsg(&h->ss, hdr, &tstats_clr_parser, &zero))
lib/libpfctl/libpfctl.c
3722
pfctl_clear_addrs(struct pfctl_handle *h, const struct pfr_table *filter,
lib/libpfctl/libpfctl.c
3732
family_id = snl_get_genl_family(&h->ss, PFNL_FAMILY_NAME);
lib/libpfctl/libpfctl.c
3736
snl_init_writer(&h->ss, &nw);
lib/libpfctl/libpfctl.c
3749
if (!snl_send_message(&h->ss, hdr))
lib/libpfctl/libpfctl.c
3752
while ((hdr = snl_read_reply_multi(&h->ss, seq_id, &e)) != NULL) {
lib/libpfctl/libpfctl.c
3753
if (!snl_parse_nlmsg(&h->ss, hdr, &clr_addrs_parser, &del))
lib/libpfctl/libpfctl.c
3808
pfctl_get_astats(struct pfctl_handle *h, const struct pfr_table *tbl,
lib/libpfctl/libpfctl.c
3824
family_id = snl_get_genl_family(&h->ss, PFNL_FAMILY_NAME);
lib/libpfctl/libpfctl.c
3828
snl_init_writer(&h->ss, &nw);
lib/libpfctl/libpfctl.c
3839
if (! snl_send_message(&h->ss, hdr))
lib/libpfctl/libpfctl.c
3845
while ((hdr = snl_read_reply_multi(&h->ss, seq_id, &e)) != NULL) {
lib/libpfctl/libpfctl.c
3846
if (! snl_parse_nlmsg(&h->ss, hdr, &table_astats_parser, &out))
lib/libpfctl/libpfctl.c
3856
_pfctl_clr_astats(struct pfctl_handle *h, const struct pfr_table *tbl,
lib/libpfctl/libpfctl.c
3866
family_id = snl_get_genl_family(&h->ss, PFNL_FAMILY_NAME);
lib/libpfctl/libpfctl.c
3870
snl_init_writer(&h->ss, &nw);
lib/libpfctl/libpfctl.c
3882
if (! snl_send_message(&h->ss, hdr))
lib/libpfctl/libpfctl.c
3885
while ((hdr = snl_read_reply_multi(&h->ss, seq_id, &e)) != NULL) {
lib/libpfctl/libpfctl.c
3886
if (! snl_parse_nlmsg(&h->ss, hdr, &table_astats_parser, &attrs))
lib/libpfctl/libpfctl.c
3897
pfctl_clr_astats(struct pfctl_handle *h, const struct pfr_table *tbl,
lib/libpfctl/libpfctl.c
3907
ret = _pfctl_clr_astats(h, tbl, &addrs[off], chunk_size,
lib/libpfctl/libpfctl.c
3920
_pfctl_test_addrs(struct pfctl_handle *h, const struct pfr_table *tbl,
lib/libpfctl/libpfctl.c
3930
family_id = snl_get_genl_family(&h->ss, PFNL_FAMILY_NAME);
lib/libpfctl/libpfctl.c
3934
snl_init_writer(&h->ss, &nw);
lib/libpfctl/libpfctl.c
3946
if (! snl_send_message(&h->ss, hdr))
lib/libpfctl/libpfctl.c
3949
while ((hdr = snl_read_reply_multi(&h->ss, seq_id, &e)) != NULL) {
lib/libpfctl/libpfctl.c
3950
if (! snl_parse_nlmsg(&h->ss, hdr, &table_astats_parser, &attrs))
lib/libpfctl/libpfctl.c
3961
pfctl_test_addrs(struct pfctl_handle *h, const struct pfr_table *tbl,
lib/libpfctl/libpfctl.c
3974
ret = _pfctl_test_addrs(h, tbl, &addrs[off], chunk_size,
lib/libpfctl/libpfctl.c
4024
pfctl_state_limiter_nget(struct pfctl_handle *h, struct pfctl_state_lim *lim)
lib/libpfctl/libpfctl.c
4032
family_id = snl_get_genl_family(&h->ss, PFNL_FAMILY_NAME);
lib/libpfctl/libpfctl.c
4036
snl_init_writer(&h->ss, &nw);
lib/libpfctl/libpfctl.c
404
pfctl_get_status_h(struct pfctl_handle *h)
lib/libpfctl/libpfctl.c
4045
if (! snl_send_message(&h->ss, hdr))
lib/libpfctl/libpfctl.c
4048
while ((hdr = snl_read_reply_multi(&h->ss, seq_id, &e)) != NULL) {
lib/libpfctl/libpfctl.c
4049
if (! snl_parse_nlmsg(&h->ss, hdr, &statelim_parser, lim))
lib/libpfctl/libpfctl.c
4057
pfctl_state_limiter_add(struct pfctl_handle *h, struct pfctl_state_lim *lim)
lib/libpfctl/libpfctl.c
4065
family_id = snl_get_genl_family(&h->ss, PFNL_FAMILY_NAME);
lib/libpfctl/libpfctl.c
4069
snl_init_writer(&h->ss, &nw);
lib/libpfctl/libpfctl.c
4083
if (! snl_send_message(&h->ss, hdr))
lib/libpfctl/libpfctl.c
4086
while ((hdr = snl_read_reply_multi(&h->ss, seq_id, &e)) != NULL) {
lib/libpfctl/libpfctl.c
4087
if (! snl_parse_nlmsg(&h->ss, hdr, &statelim_parser, &lim))
lib/libpfctl/libpfctl.c
4120
pfctl_source_limiter_add(struct pfctl_handle *h, struct pfctl_source_lim *lim)
lib/libpfctl/libpfctl.c
4128
family_id = snl_get_genl_family(&h->ss, PFNL_FAMILY_NAME);
lib/libpfctl/libpfctl.c
413
family_id = snl_get_genl_family(&h->ss, PFNL_FAMILY_NAME);
lib/libpfctl/libpfctl.c
4132
snl_init_writer(&h->ss, &nw);
lib/libpfctl/libpfctl.c
4152
if (! snl_send_message(&h->ss, hdr))
lib/libpfctl/libpfctl.c
4155
while ((hdr = snl_read_reply_multi(&h->ss, seq_id, &e)) != NULL) {
lib/libpfctl/libpfctl.c
4156
if (! snl_parse_nlmsg(&h->ss, hdr, &sourcelim_parser, &lim))
lib/libpfctl/libpfctl.c
4164
_pfctl_source_limiter_get(struct pfctl_handle *h, int cmd, struct pfctl_source_lim *lim)
lib/libpfctl/libpfctl.c
417
snl_init_writer(&h->ss, &nw);
lib/libpfctl/libpfctl.c
4172
family_id = snl_get_genl_family(&h->ss, PFNL_FAMILY_NAME);
lib/libpfctl/libpfctl.c
4176
snl_init_writer(&h->ss, &nw);
lib/libpfctl/libpfctl.c
4185
if (! snl_send_message(&h->ss, hdr))
lib/libpfctl/libpfctl.c
4188
while ((hdr = snl_read_reply_multi(&h->ss, seq_id, &e)) != NULL) {
lib/libpfctl/libpfctl.c
4189
if (! snl_parse_nlmsg(&h->ss, hdr, &sourcelim_parser, lim))
lib/libpfctl/libpfctl.c
4197
pfctl_source_limiter_get(struct pfctl_handle *h, struct pfctl_source_lim *lim)
lib/libpfctl/libpfctl.c
4199
return (_pfctl_source_limiter_get(h, PFNL_CMD_SOURCE_LIMITER_GET, lim));
lib/libpfctl/libpfctl.c
4203
pfctl_source_limiter_nget(struct pfctl_handle *h, struct pfctl_source_lim *lim)
lib/libpfctl/libpfctl.c
4205
return (_pfctl_source_limiter_get(h, PFNL_CMD_SOURCE_LIMITER_NGET, lim));
lib/libpfctl/libpfctl.c
4225
pfctl_source_get(struct pfctl_handle *h, int id, pfctl_get_source_fn fn, void *arg)
lib/libpfctl/libpfctl.c
4233
family_id = snl_get_genl_family(&h->ss, PFNL_FAMILY_NAME);
lib/libpfctl/libpfctl.c
4237
snl_init_writer(&h->ss, &nw);
lib/libpfctl/libpfctl.c
4246
if (! snl_send_message(&h->ss, hdr))
lib/libpfctl/libpfctl.c
4249
while ((hdr = snl_read_reply_multi(&h->ss, seq_id, &e)) != NULL) {
lib/libpfctl/libpfctl.c
4252
if (! snl_parse_nlmsg(&h->ss, hdr, &source_parser, &src))
lib/libpfctl/libpfctl.c
4266
pfctl_source_clear(struct pfctl_handle *h, struct pfctl_source_clear *kill)
lib/libpfctl/libpfctl.c
427
if (! snl_send_message(&h->ss, hdr))
lib/libpfctl/libpfctl.c
4274
family_id = snl_get_genl_family(&h->ss, PFNL_FAMILY_NAME);
lib/libpfctl/libpfctl.c
4278
snl_init_writer(&h->ss, &nw);
lib/libpfctl/libpfctl.c
4291
if (! snl_send_message(&h->ss, hdr))
lib/libpfctl/libpfctl.c
4294
while ((hdr = snl_read_reply_multi(&h->ss, seq_id, &e)) != NULL) {
lib/libpfctl/libpfctl.c
439
while ((hdr = snl_read_reply_multi(&h->ss, seq_id, &e)) != NULL) {
lib/libpfctl/libpfctl.c
440
if (! snl_parse_nlmsg(&h->ss, hdr, &getstatus_parser, status))
lib/libpfctl/libpfctl.c
501
pfctl_clear_status(struct pfctl_handle *h)
lib/libpfctl/libpfctl.c
503
return (pfctl_do_netlink_cmd(h, PFNL_CMD_CLEAR_STATUS));
lib/libpfctl/libpfctl.c
77
struct pfctl_handle *h;
lib/libpfctl/libpfctl.c
81
h = calloc(1, sizeof(struct pfctl_handle));
lib/libpfctl/libpfctl.c
83
h->fd = open(pf_device, O_RDWR);
lib/libpfctl/libpfctl.c
84
if (h->fd < 0)
lib/libpfctl/libpfctl.c
87
if (!snl_init(&h->ss, NETLINK_GENERIC))
lib/libpfctl/libpfctl.c
90
return (h);
lib/libpfctl/libpfctl.c
92
if (h->fd != -1)
lib/libpfctl/libpfctl.c
93
close(h->fd);
lib/libpfctl/libpfctl.c
94
snl_free(&h->ss);
lib/libpfctl/libpfctl.c
95
free(h);
lib/libpfctl/libpfctl.h
454
int pfctl_startstop(struct pfctl_handle *h, int start);
lib/libpfctl/libpfctl.h
455
struct pfctl_status* pfctl_get_status_h(struct pfctl_handle *h);
lib/libpfctl/libpfctl.h
457
int pfctl_clear_status(struct pfctl_handle *h);
lib/libpfctl/libpfctl.h
475
int pfctl_get_rules_info_h(struct pfctl_handle *h,
lib/libpfctl/libpfctl.h
483
int pfctl_get_rule_h(struct pfctl_handle *h, uint32_t nr, uint32_t ticket,
lib/libpfctl/libpfctl.h
489
int pfctl_get_clear_rule_h(struct pfctl_handle *h, uint32_t nr, uint32_t ticket,
lib/libpfctl/libpfctl.h
495
int pfctl_add_rule_h(struct pfctl_handle *h, const struct pfctl_rule *r,
lib/libpfctl/libpfctl.h
499
int pfctl_get_creatorids(struct pfctl_handle *h, uint32_t *creators, size_t *len);
lib/libpfctl/libpfctl.h
510
int pfctl_get_states_h(struct pfctl_handle *h, struct pfctl_state_filter *filter, pfctl_get_state_fn f, void *arg);
lib/libpfctl/libpfctl.h
518
int pfctl_clear_states_h(struct pfctl_handle *h, const struct pfctl_kill *kill,
lib/libpfctl/libpfctl.h
520
int pfctl_kill_states_h(struct pfctl_handle *h, const struct pfctl_kill *kill,
lib/libpfctl/libpfctl.h
527
int pfctl_table_add_addrs_h(struct pfctl_handle *h, struct pfr_table *tbl, struct pfr_addr
lib/libpfctl/libpfctl.h
531
int pfctl_table_del_addrs_h(struct pfctl_handle *h, struct pfr_table *tbl,
lib/libpfctl/libpfctl.h
535
int pfctl_table_set_addrs_h(struct pfctl_handle *h, struct pfr_table *tbl,
lib/libpfctl/libpfctl.h
541
int pfctl_table_get_addrs_h(struct pfctl_handle *h, struct pfr_table *tbl, struct pfr_addr *addr,
lib/libpfctl/libpfctl.h
545
int pfctl_set_statusif(struct pfctl_handle *h, const char *ifname);
lib/libpfctl/libpfctl.h
562
int pfctl_natlook(struct pfctl_handle *h,
lib/libpfctl/libpfctl.h
564
int pfctl_set_debug(struct pfctl_handle *h, uint32_t level);
lib/libpfctl/libpfctl.h
565
int pfctl_set_timeout(struct pfctl_handle *h, uint32_t timeout, uint32_t seconds);
lib/libpfctl/libpfctl.h
566
int pfctl_get_timeout(struct pfctl_handle *h, uint32_t timeout, uint32_t *seconds);
lib/libpfctl/libpfctl.h
567
int pfctl_set_limit(struct pfctl_handle *h, const int index, const uint limit);
lib/libpfctl/libpfctl.h
568
int pfctl_get_limit(struct pfctl_handle *h, const int index, uint *limit);
lib/libpfctl/libpfctl.h
569
int pfctl_begin_addrs(struct pfctl_handle *h, uint32_t *ticket);
lib/libpfctl/libpfctl.h
570
int pfctl_add_addr(struct pfctl_handle *h, const struct pfioc_pooladdr *pa, int which);
lib/libpfctl/libpfctl.h
571
int pfctl_get_addrs(struct pfctl_handle *h, uint32_t ticket, uint32_t r_num,
lib/libpfctl/libpfctl.h
573
int pfctl_get_addr(struct pfctl_handle *h, uint32_t ticket, uint32_t r_num,
lib/libpfctl/libpfctl.h
576
int pfctl_get_rulesets(struct pfctl_handle *h, const char *path, uint32_t *nr);
lib/libpfctl/libpfctl.h
577
int pfctl_get_ruleset(struct pfctl_handle *h, const char *path, uint32_t nr, struct pfioc_ruleset *rs);
lib/libpfctl/libpfctl.h
579
int pfctl_get_srcnodes(struct pfctl_handle *h, pfctl_get_srcnode_fn fn, void *arg);
lib/libpfctl/libpfctl.h
581
int pfctl_clear_tables(struct pfctl_handle *h, struct pfr_table *filter,
lib/libpfctl/libpfctl.h
583
int pfctl_add_table(struct pfctl_handle *h, struct pfr_table *table,
lib/libpfctl/libpfctl.h
585
int pfctl_del_table(struct pfctl_handle *h, struct pfr_table *table,
lib/libpfctl/libpfctl.h
589
int pfctl_get_tstats(struct pfctl_handle *h, const struct pfr_table *filter,
lib/libpfctl/libpfctl.h
591
int pfctl_clear_tstats(struct pfctl_handle *h, const struct pfr_table *filter,
lib/libpfctl/libpfctl.h
593
int pfctl_clear_addrs(struct pfctl_handle *h, const struct pfr_table *filter,
lib/libpfctl/libpfctl.h
596
int pfctl_get_astats(struct pfctl_handle *h, const struct pfr_table *tbl,
lib/libpfctl/libpfctl.h
598
int pfctl_clr_astats(struct pfctl_handle *h, const struct pfr_table *tbl,
lib/libpfctl/libpfctl.h
600
int pfctl_test_addrs(struct pfctl_handle *h, const struct pfr_table *tbl,
lib/libpfctl/libpfctl.h
624
int pfctl_state_limiter_nget(struct pfctl_handle *h, struct pfctl_state_lim *lim);
lib/libpfctl/libpfctl.h
625
int pfctl_state_limiter_add(struct pfctl_handle *h, struct pfctl_state_lim *lim);
lib/libpfctl/libpfctl.h
671
int pfctl_source_limiter_get(struct pfctl_handle *h, struct pfctl_source_lim *lim);
lib/libpfctl/libpfctl.h
672
int pfctl_source_limiter_nget(struct pfctl_handle *h, struct pfctl_source_lim *lim);
lib/libpfctl/libpfctl.h
673
int pfctl_source_limiter_add(struct pfctl_handle *h, struct pfctl_source_lim *lim);
lib/libpfctl/libpfctl.h
690
int pfctl_source_get(struct pfctl_handle *h, int id,
lib/libpfctl/libpfctl.h
700
int pfctl_source_clear(struct pfctl_handle *h, struct pfctl_source_clear *);
lib/libpmc/pmclog.c
107
uint32_t h;
lib/libpmc/pmclog.c
150
h = PMCLOG_HEADER_FROM_SAVED_STATE(ps);
lib/libpmc/pmclog.c
151
recordsize = PMCLOG_HEADER_TO_LENGTH(h);
lib/libpmc/pmclog.c
213
h = PMCLOG_HEADER_FROM_SAVED_STATE(ps);
lib/libpmc/pmclog.c
214
recordsize = PMCLOG_HEADER_TO_LENGTH(h);
lib/libpmc/pmclog.c
258
uint32_t h, *le, npc;
lib/libpmc/pmclog.c
282
h = ph->pl_header;
lib/libpmc/pmclog.c
283
if (!PMCLOG_HEADER_CHECK_MAGIC(h)) {
lib/libpmc/pmclog.c
294
evlen = PMCLOG_HEADER_TO_LENGTH(h);
lib/libpmc/pmclog.c
307
switch (ev->pl_type = PMCLOG_HEADER_TO_TYPE(h)) {
lib/libpmc/pmu-events/list.h
175
#define list_for_each_entry(p, h, field) \
lib/libpmc/pmu-events/list.h
176
for (p = list_entry((h)->next, typeof(*p), field); &(p)->field != (h); \
lib/libpmc/pmu-events/list.h
179
#define list_for_each_entry_safe(p, n, h, field) \
lib/libpmc/pmu-events/list.h
180
for (p = list_entry((h)->next, typeof(*p), field), \
lib/libpmc/pmu-events/list.h
181
n = list_entry((p)->field.next, typeof(*p), field); &(p)->field != (h);\
lib/libpmc/pmu-events/list.h
184
#define list_for_each_entry_from(p, h, field) \
lib/libpmc/pmu-events/list.h
185
for ( ; &(p)->field != (h); \
lib/libpmc/pmu-events/list.h
188
#define list_for_each_entry_continue(p, h, field) \
lib/libpmc/pmu-events/list.h
189
for (p = list_next_entry((p), field); &(p)->field != (h); \
lib/libpmc/pmu-events/list.h
197
#define list_for_each_entry_reverse(p, h, field) \
lib/libpmc/pmu-events/list.h
198
for (p = list_entry((h)->prev, typeof(*p), field); &(p)->field != (h); \
lib/libpmc/pmu-events/list.h
201
#define list_for_each_entry_safe_reverse(p, n, h, field) \
lib/libpmc/pmu-events/list.h
202
for (p = list_entry((h)->prev, typeof(*p), field), \
lib/libpmc/pmu-events/list.h
203
n = list_entry((p)->field.prev, typeof(*p), field); &(p)->field != (h); \
lib/libpmc/pmu-events/list.h
206
#define list_for_each_entry_continue_reverse(p, h, field) \
lib/libpmc/pmu-events/list.h
207
for (p = list_entry((p)->field.prev, typeof(*p), field); &(p)->field != (h); \
lib/libpmc/pmu-events/list.h
210
#define list_for_each_prev(p, h) for (p = (h)->prev; p != (h); p = (p)->prev)
lib/libpmc/pmu-events/list.h
311
hlist_unhashed(const struct hlist_node *h)
lib/libpmc/pmu-events/list.h
314
return !h->pprev;
lib/libpmc/pmu-events/list.h
318
hlist_empty(const struct hlist_head *h)
lib/libpmc/pmu-events/list.h
321
return !h->first;
lib/libpmc/pmu-events/list.h
344
hlist_add_head(struct hlist_node *n, struct hlist_head *h)
lib/libpmc/pmu-events/list.h
347
n->next = h->first;
lib/libpmc/pmu-events/list.h
348
if (h->first)
lib/libpmc/pmu-events/list.h
349
h->first->pprev = &n->next;
lib/libpmc/pmu-events/list.h
350
h->first = n;
lib/libpmc/pmu-events/list.h
351
n->pprev = &h->first;
lib/libradius/radlib.c
1000
if ((h->fd = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP)) == -1) {
lib/libradius/radlib.c
1001
generr(h, "Cannot create socket: %s", strerror(errno));
lib/libradius/radlib.c
1007
sin.sin_addr.s_addr = h->bindto;
lib/libradius/radlib.c
1009
if (bind(h->fd, (const struct sockaddr *)&sin,
lib/libradius/radlib.c
1011
generr(h, "bind: %s", strerror(errno));
lib/libradius/radlib.c
1012
close(h->fd);
lib/libradius/radlib.c
1013
h->fd = -1;
lib/libradius/radlib.c
1018
if (h->out[POS_CODE] != RAD_ACCESS_REQUEST) {
lib/libradius/radlib.c
1020
if (h->pass_pos || h->chap_pass) {
lib/libradius/radlib.c
1021
generr(h, "User or Chap Password"
lib/libradius/radlib.c
1026
if (h->eap_msg == 0) {
lib/libradius/radlib.c
1028
if (h->pass_pos == 0 && !h->chap_pass) {
lib/libradius/radlib.c
1029
generr(h, "No User or Chap Password"
lib/libradius/radlib.c
1033
if (h->pass_pos != 0 && h->chap_pass) {
lib/libradius/radlib.c
1034
generr(h, "Both User and Chap Password"
lib/libradius/radlib.c
104
srvp = &h->servers[srv];
lib/libradius/radlib.c
1042
h->out[POS_LENGTH] = h->out_len >> 8;
lib/libradius/radlib.c
1043
h->out[POS_LENGTH+1] = h->out_len;
lib/libradius/radlib.c
1045
h->srv = 0;
lib/libradius/radlib.c
1047
for (srv = 0; srv < h->num_servers; srv++)
lib/libradius/radlib.c
1048
h->servers[srv].num_tries = 0;
lib/libradius/radlib.c
105
padded_len = h->pass_len == 0 ? 16 : (h->pass_len+15) & ~0xf;
lib/libradius/radlib.c
1050
for (srv = 0; srv < h->num_servers; srv++) {
lib/libradius/radlib.c
1051
if (h->servers[srv].is_dead == 0)
lib/libradius/radlib.c
1053
if (h->servers[srv].dead_time &&
lib/libradius/radlib.c
1054
h->servers[srv].next_probe <= now) {
lib/libradius/radlib.c
1055
h->servers[srv].is_dead = 0;
lib/libradius/radlib.c
1058
h->srv++;
lib/libradius/radlib.c
1062
if (h->srv == h->num_servers) {
lib/libradius/radlib.c
1063
for (srv = 0; srv < h->num_servers; srv++) {
lib/libradius/radlib.c
1064
h->servers[srv].is_dead = 0;
lib/libradius/radlib.c
1065
h->servers[srv].next_probe = 0;
lib/libradius/radlib.c
1067
h->srv = 0;
lib/libradius/radlib.c
107
memcpy(md5, &h->out[POS_AUTH], LEN_AUTH);
lib/libradius/radlib.c
1070
return rad_continue_send_request(h, 0, fd, tv);
lib/libradius/radlib.c
1081
struct rad_handle *h;
lib/libradius/radlib.c
1083
h = (struct rad_handle *)malloc(sizeof(struct rad_handle));
lib/libradius/radlib.c
1084
if (h != NULL) {
lib/libradius/radlib.c
1085
h->fd = -1;
lib/libradius/radlib.c
1086
h->num_servers = 0;
lib/libradius/radlib.c
1087
h->ident = arc4random();
lib/libradius/radlib.c
1088
h->errmsg[0] = '\0';
lib/libradius/radlib.c
1089
memset(h->pass, 0, sizeof h->pass);
lib/libradius/radlib.c
1090
h->pass_len = 0;
lib/libradius/radlib.c
1091
h->pass_pos = 0;
lib/libradius/radlib.c
1092
h->chap_pass = 0;
lib/libradius/radlib.c
1093
h->authentic_pos = 0;
lib/libradius/radlib.c
1094
h->type = RADIUS_AUTH;
lib/libradius/radlib.c
1095
h->out_created = 0;
lib/libradius/radlib.c
1096
h->eap_msg = 0;
lib/libradius/radlib.c
1097
h->bindto = INADDR_ANY;
lib/libradius/radlib.c
1099
return h;
lib/libradius/radlib.c
1105
struct rad_handle *h;
lib/libradius/radlib.c
1107
h = rad_open();
lib/libradius/radlib.c
1108
if (h != NULL)
lib/libradius/radlib.c
1109
h->type = RADIUS_ACCT;
lib/libradius/radlib.c
1110
return h;
lib/libradius/radlib.c
1116
struct rad_handle *h;
lib/libradius/radlib.c
1118
h = rad_open();
lib/libradius/radlib.c
1119
if (h != NULL) {
lib/libradius/radlib.c
1120
h->type = RADIUS_SERVER;
lib/libradius/radlib.c
1121
h->fd = fd;
lib/libradius/radlib.c
1123
return h;
lib/libradius/radlib.c
1133
rad_put_addr(struct rad_handle *h, int type, struct in_addr addr)
lib/libradius/radlib.c
1135
return rad_put_attr(h, type, &addr.s_addr, sizeof addr.s_addr);
lib/libradius/radlib.c
1139
rad_put_addr6(struct rad_handle *h, int type, struct in6_addr addr)
lib/libradius/radlib.c
1142
return rad_put_attr(h, type, &addr.s6_addr, sizeof addr.s6_addr);
lib/libradius/radlib.c
1146
rad_put_attr(struct rad_handle *h, int type, const void *value, size_t len)
lib/libradius/radlib.c
1150
if (!h->out_created) {
lib/libradius/radlib.c
1151
generr(h, "Please call rad_create_request()"
lib/libradius/radlib.c
1156
if (h->out[POS_CODE] == RAD_ACCOUNTING_REQUEST) {
lib/libradius/radlib.c
1158
generr(h, "EAP-Message attribute is not valid"
lib/libradius/radlib.c
1169
if (rad_put_message_authentic(h) == -1)
lib/libradius/radlib.c
1174
result = put_password_attr(h, type, value, len);
lib/libradius/radlib.c
1176
result = rad_put_message_authentic(h);
lib/libradius/radlib.c
1178
result = put_raw_attr(h, type, value, len);
lib/libradius/radlib.c
1181
h->chap_pass = 1;
lib/libradius/radlib.c
1183
h->eap_msg = 1;
lib/libradius/radlib.c
1191
rad_put_int(struct rad_handle *h, int type, u_int32_t value)
lib/libradius/radlib.c
1196
return rad_put_attr(h, type, &nvalue, sizeof nvalue);
lib/libradius/radlib.c
1200
rad_put_string(struct rad_handle *h, int type, const char *str)
lib/libradius/radlib.c
1202
return rad_put_attr(h, type, str, strlen(str));
lib/libradius/radlib.c
1206
rad_put_message_authentic(struct rad_handle *h)
lib/libradius/radlib.c
1211
if (h->out[POS_CODE] == RAD_ACCOUNTING_REQUEST) {
lib/libradius/radlib.c
1212
generr(h, "Message-Authenticator is not valid"
lib/libradius/radlib.c
1217
if (h->authentic_pos == 0) {
lib/libradius/radlib.c
1218
h->authentic_pos = h->out_len;
lib/libradius/radlib.c
1220
return (put_raw_attr(h, RAD_MESSAGE_AUTHENTIC, md_zero,
lib/libradius/radlib.c
1225
generr(h, "Message Authenticator not supported,"
lib/libradius/radlib.c
1235
rad_send_request(struct rad_handle *h)
lib/libradius/radlib.c
124
h->out[h->pass_pos + pos + i] =
lib/libradius/radlib.c
1242
n = rad_init_send_request(h, &fd, &tv);
lib/libradius/radlib.c
125
md5[i] ^= h->pass[pos + i];
lib/libradius/radlib.c
1259
generr(h, "select: %s", strerror(errno));
lib/libradius/radlib.c
1272
n = rad_continue_send_request(h, n, &fd, &tv);
lib/libradius/radlib.c
1283
rad_strerror(struct rad_handle *h)
lib/libradius/radlib.c
1285
return h->errmsg;
lib/libradius/radlib.c
130
insert_request_authenticator(struct rad_handle *h, int resp)
lib/libradius/radlib.c
135
srvp = &h->servers[h->srv];
lib/libradius/radlib.c
1380
rad_put_vendor_addr(struct rad_handle *h, int vendor, int type,
lib/libradius/radlib.c
1383
return (rad_put_vendor_attr(h, vendor, type, &addr.s_addr,
lib/libradius/radlib.c
1388
rad_put_vendor_addr6(struct rad_handle *h, int vendor, int type,
lib/libradius/radlib.c
139
MD5Update(&ctx, &h->out[POS_CODE], POS_AUTH - POS_CODE);
lib/libradius/radlib.c
1392
return (rad_put_vendor_attr(h, vendor, type, &addr.s6_addr,
lib/libradius/radlib.c
1397
rad_put_vendor_attr(struct rad_handle *h, int vendor, int type,
lib/libradius/radlib.c
1403
if (!h->out_created) {
lib/libradius/radlib.c
1404
generr(h, "Please call rad_create_request()"
lib/libradius/radlib.c
141
MD5Update(&ctx, &h->in[POS_AUTH], LEN_AUTH);
lib/libradius/radlib.c
1410
generr(h, "malloc failure (%zu bytes)", len + 6);
lib/libradius/radlib.c
1419
res = put_raw_attr(h, RAD_VENDOR_SPECIFIC, attr, len + 6);
lib/libradius/radlib.c
1424
h->chap_pass = 1;
lib/libradius/radlib.c
143
MD5Update(&ctx, &h->out[POS_AUTH], LEN_AUTH);
lib/libradius/radlib.c
1430
rad_put_vendor_int(struct rad_handle *h, int vendor, int type, u_int32_t i)
lib/libradius/radlib.c
1435
return (rad_put_vendor_attr(h, vendor, type, &value, sizeof value));
lib/libradius/radlib.c
1439
rad_put_vendor_string(struct rad_handle *h, int vendor, int type,
lib/libradius/radlib.c
144
MD5Update(&ctx, &h->out[POS_ATTRS], h->out_len - POS_ATTRS);
lib/libradius/radlib.c
1442
return (rad_put_vendor_attr(h, vendor, type, str, strlen(str)));
lib/libradius/radlib.c
1446
rad_request_authenticator(struct rad_handle *h, char *buf, size_t len)
lib/libradius/radlib.c
1450
memcpy(buf, h->out + POS_AUTH, LEN_AUTH);
lib/libradius/radlib.c
1457
rad_demangle(struct rad_handle *h, const void *mangled, size_t mlen)
lib/libradius/radlib.c
146
MD5Final(&h->out[POS_AUTH], &ctx);
lib/libradius/radlib.c
1466
generr(h, "Cannot interpret mangled data of length %lu",
lib/libradius/radlib.c
1474
S = rad_server_secret(h);
lib/libradius/radlib.c
1477
if (rad_request_authenticator(h, R, sizeof R) != LEN_AUTH) {
lib/libradius/radlib.c
1478
generr(h, "Cannot obtain the RADIUS request authenticator");
lib/libradius/radlib.c
150
insert_message_authenticator(struct rad_handle *h, int resp)
lib/libradius/radlib.c
1511
rad_demangle_mppe_key(struct rad_handle *h, const void *mangled,
lib/libradius/radlib.c
1523
generr(h, "Cannot interpret mangled data of length %lu",
lib/libradius/radlib.c
1529
if (rad_request_authenticator(h, R, sizeof R) != LEN_AUTH) {
lib/libradius/radlib.c
1530
generr(h, "Cannot obtain the RADIUS request authenticator");
lib/libradius/radlib.c
1537
S = rad_server_secret(h); /* We need the RADIUS secret */
lib/libradius/radlib.c
157
srvp = &h->servers[h->srv];
lib/libradius/radlib.c
1570
generr(h, "Mangled data seems to be garbage %zu %zu",
lib/libradius/radlib.c
1576
generr(h, "Key to long (%zu) for me max. %d",
lib/libradius/radlib.c
1589
rad_server_secret(struct rad_handle *h)
lib/libradius/radlib.c
159
if (h->authentic_pos != 0) {
lib/libradius/radlib.c
1591
return (h->servers[h->srv].secret);
lib/libradius/radlib.c
162
HMAC_Update(ctx, &h->out[POS_CODE], POS_AUTH - POS_CODE);
lib/libradius/radlib.c
164
HMAC_Update(ctx, &h->in[POS_AUTH], LEN_AUTH);
lib/libradius/radlib.c
166
HMAC_Update(ctx, &h->out[POS_AUTH], LEN_AUTH);
lib/libradius/radlib.c
167
HMAC_Update(ctx, &h->out[POS_ATTRS],
lib/libradius/radlib.c
168
h->out_len - POS_ATTRS);
lib/libradius/radlib.c
171
memcpy(&h->out[h->authentic_pos + 2], md, md_len);
lib/libradius/radlib.c
181
is_valid_response(struct rad_handle *h, int srv,
lib/libradius/radlib.c
197
srvp = &h->servers[srv];
lib/libradius/radlib.c
206
if (h->in_len < POS_ATTRS)
lib/libradius/radlib.c
208
len = (h->in[POS_LENGTH] << 8) | h->in[POS_LENGTH + 1];
lib/libradius/radlib.c
209
if (len < POS_ATTRS || len > h->in_len)
lib/libradius/radlib.c
214
MD5Update(&ctx, &h->in[POS_CODE], POS_AUTH - POS_CODE);
lib/libradius/radlib.c
215
MD5Update(&ctx, &h->out[POS_AUTH], LEN_AUTH);
lib/libradius/radlib.c
216
MD5Update(&ctx, &h->in[POS_ATTRS], len - POS_ATTRS);
lib/libradius/radlib.c
219
if (memcmp(&h->in[POS_AUTH], md5, sizeof md5) != 0)
lib/libradius/radlib.c
227
if (h->in[POS_CODE] != RAD_ACCOUNTING_RESPONSE) {
lib/libradius/radlib.c
229
memcpy(resp, h->in, MSGSIZE);
lib/libradius/radlib.c
235
if (h->in[pos] == RAD_MESSAGE_AUTHENTIC) {
lib/libradius/radlib.c
236
if (h->in[pos + 1] != MD5_DIGEST_LENGTH + 2) {
lib/libradius/radlib.c
249
HMAC_Update(hctx, &h->in[POS_CODE],
lib/libradius/radlib.c
251
HMAC_Update(hctx, &h->out[POS_AUTH],
lib/libradius/radlib.c
254
h->in_len - POS_ATTRS);
lib/libradius/radlib.c
257
if (memcmp(md, &h->in[pos + 2],
lib/libradius/radlib.c
264
alen = h->in[pos + 1];
lib/libradius/radlib.c
281
is_valid_request(struct rad_handle *h)
lib/libradius/radlib.c
295
srvp = &h->servers[h->srv];
lib/libradius/radlib.c
298
if (h->in_len < POS_ATTRS)
lib/libradius/radlib.c
300
len = (h->in[POS_LENGTH] << 8) | h->in[POS_LENGTH + 1];
lib/libradius/radlib.c
301
if (len < POS_ATTRS || len > h->in_len)
lib/libradius/radlib.c
304
if (h->in[POS_CODE] != RAD_ACCESS_REQUEST) {
lib/libradius/radlib.c
308
MD5Update(&ctx, &h->in[POS_CODE], POS_AUTH - POS_CODE);
lib/libradius/radlib.c
310
MD5Update(&ctx, &h->in[POS_ATTRS], len - POS_ATTRS);
lib/libradius/radlib.c
313
if (memcmp(&h->in[POS_AUTH], md5, sizeof md5) != 0)
lib/libradius/radlib.c
322
alen = h->in[pos + 1];
lib/libradius/radlib.c
327
if (h->in[pos] == RAD_MESSAGE_AUTHENTIC) {
lib/libradius/radlib.c
336
memcpy(resp, h->in, MSGSIZE);
lib/libradius/radlib.c
338
if (h->in[POS_CODE] != RAD_ACCESS_REQUEST)
lib/libradius/radlib.c
345
HMAC_Update(hctx, resp, h->in_len);
lib/libradius/radlib.c
348
if (memcmp(md, &h->in[pos + 2],
lib/libradius/radlib.c
363
put_password_attr(struct rad_handle *h, int type, const void *value, size_t len)
lib/libradius/radlib.c
368
if (h->pass_pos != 0) {
lib/libradius/radlib.c
369
generr(h, "Multiple User-Password attributes specified");
lib/libradius/radlib.c
381
clear_password(h);
lib/libradius/radlib.c
382
put_raw_attr(h, type, h->pass, padded_len);
lib/libradius/radlib.c
383
h->pass_pos = h->out_len - padded_len;
lib/libradius/radlib.c
386
memcpy(h->pass, value, len);
lib/libradius/radlib.c
387
h->pass_len = len;
lib/libradius/radlib.c
388
memset(h->pass + len, 0, pad_len);
lib/libradius/radlib.c
393
put_raw_attr(struct rad_handle *h, int type, const void *value, size_t len)
lib/libradius/radlib.c
396
generr(h, "Attribute too long");
lib/libradius/radlib.c
399
if (h->out_len + 2 + len > MSGSIZE) {
lib/libradius/radlib.c
400
generr(h, "Maximum message length exceeded");
lib/libradius/radlib.c
403
h->out[h->out_len++] = type;
lib/libradius/radlib.c
404
h->out[h->out_len++] = len + 2;
lib/libradius/radlib.c
405
memcpy(&h->out[h->out_len], value, len);
lib/libradius/radlib.c
406
h->out_len += len;
lib/libradius/radlib.c
411
rad_add_server(struct rad_handle *h, const char *host, int port,
lib/libradius/radlib.c
417
return rad_add_server_ex(h, host, port, secret, timeout, tries,
lib/libradius/radlib.c
422
rad_add_server_ex(struct rad_handle *h, const char *host, int port,
lib/libradius/radlib.c
428
if (h->num_servers >= MAXSERVERS) {
lib/libradius/radlib.c
429
generr(h, "Too many RADIUS servers specified");
lib/libradius/radlib.c
432
srvp = &h->servers[h->num_servers];
lib/libradius/radlib.c
441
generr(h, "%s: host not found", host);
lib/libradius/radlib.c
452
if (h->type == RADIUS_AUTH)
lib/libradius/radlib.c
462
generr(h, "Out of memory");
lib/libradius/radlib.c
472
h->num_servers++;
lib/libradius/radlib.c
477
rad_close(struct rad_handle *h)
lib/libradius/radlib.c
481
if (h->fd != -1)
lib/libradius/radlib.c
482
close(h->fd);
lib/libradius/radlib.c
483
for (srv = 0; srv < h->num_servers; srv++) {
lib/libradius/radlib.c
484
memset(h->servers[srv].secret, 0,
lib/libradius/radlib.c
485
strlen(h->servers[srv].secret));
lib/libradius/radlib.c
486
free(h->servers[srv].secret);
lib/libradius/radlib.c
488
clear_password(h);
lib/libradius/radlib.c
489
free(h);
lib/libradius/radlib.c
493
rad_bind_to(struct rad_handle *h, in_addr_t addr)
lib/libradius/radlib.c
496
h->bindto = addr;
lib/libradius/radlib.c
500
rad_config(struct rad_handle *h, const char *path)
lib/libradius/radlib.c
510
generr(h, "Cannot open \"%s\": %s", path, strerror(errno));
lib/libradius/radlib.c
542
generr(h, "%s:%d: line too long", path,
lib/libradius/radlib.c
545
generr(h, "%s:%d: missing newline", path,
lib/libradius/radlib.c
555
generr(h, "%s:%d: %s", path, linenum, msg);
lib/libradius/radlib.c
570
generr(h, "%s:%d: invalid service type", path,
lib/libradius/radlib.c
581
generr(h, "%s:%d: missing shared secret", path,
lib/libradius/radlib.c
595
wanttype = h->type == RADIUS_AUTH ? "auth" : "acct";
lib/libradius/radlib.c
606
generr(h, "%s:%d: invalid port", path,
lib/libradius/radlib.c
616
generr(h, "%s:%d: invalid timeout", path,
lib/libradius/radlib.c
626
generr(h, "%s:%d: invalid maxtries", path,
lib/libradius/radlib.c
637
generr(h, "%s:%d: invalid dead_time", path,
lib/libradius/radlib.c
648
generr(h, "%s:%d: invalid bindto", path,
lib/libradius/radlib.c
656
if (rad_add_server_ex(h, host, port, secret, timeout, maxtries,
lib/libradius/radlib.c
658
strcpy(msg, h->errmsg);
lib/libradius/radlib.c
659
generr(h, "%s:%d: %s", path, linenum, msg);
lib/libradius/radlib.c
679
rad_continue_send_request(struct rad_handle *h, int selected, int *fd,
lib/libradius/radlib.c
686
if (h->type == RADIUS_SERVER) {
lib/libradius/radlib.c
687
generr(h, "denied function call");
lib/libradius/radlib.c
695
h->in_len = recvfrom(h->fd, h->in,
lib/libradius/radlib.c
697
if (h->in_len == -1) {
lib/libradius/radlib.c
698
generr(h, "recvfrom: %s", strerror(errno));
lib/libradius/radlib.c
701
if (is_valid_response(h, h->srv, &from)) {
lib/libradius/radlib.c
702
h->in_len = h->in[POS_LENGTH] << 8 |
lib/libradius/radlib.c
703
h->in[POS_LENGTH+1];
lib/libradius/radlib.c
704
h->in_pos = POS_ATTRS;
lib/libradius/radlib.c
705
return h->in[POS_CODE];
lib/libradius/radlib.c
714
cur_srv = h->srv;
lib/libradius/radlib.c
716
if (h->servers[h->srv].num_tries >= h->servers[h->srv].max_tries) {
lib/libradius/radlib.c
718
if (h->servers[h->srv].dead_time) {
lib/libradius/radlib.c
719
h->servers[h->srv].is_dead = 1;
lib/libradius/radlib.c
720
h->servers[h->srv].next_probe = now +
lib/libradius/radlib.c
721
h->servers[h->srv].dead_time;
lib/libradius/radlib.c
724
h->srv++;
lib/libradius/radlib.c
725
if (h->srv >= h->num_servers)
lib/libradius/radlib.c
726
h->srv = 0;
lib/libradius/radlib.c
727
if (h->servers[h->srv].is_dead == 0)
lib/libradius/radlib.c
729
if (h->servers[h->srv].dead_time &&
lib/libradius/radlib.c
730
h->servers[h->srv].next_probe <= now) {
lib/libradius/radlib.c
731
h->servers[h->srv].is_dead = 0;
lib/libradius/radlib.c
732
h->servers[h->srv].num_tries = 0;
lib/libradius/radlib.c
735
} while (h->srv != cur_srv);
lib/libradius/radlib.c
737
if (h->srv == cur_srv) {
lib/libradius/radlib.c
738
generr(h, "No valid RADIUS responses received");
lib/libradius/radlib.c
744
if (h->bindto != h->servers[h->srv].bindto) {
lib/libradius/radlib.c
745
h->bindto = h->servers[h->srv].bindto;
lib/libradius/radlib.c
746
close(h->fd);
lib/libradius/radlib.c
747
if ((h->fd = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP)) == -1) {
lib/libradius/radlib.c
748
generr(h, "Cannot create socket: %s", strerror(errno));
lib/libradius/radlib.c
754
sin.sin_addr.s_addr = h->bindto;
lib/libradius/radlib.c
756
if (bind(h->fd, (const struct sockaddr *)&sin,
lib/libradius/radlib.c
758
generr(h, "bind: %s", strerror(errno));
lib/libradius/radlib.c
759
close(h->fd);
lib/libradius/radlib.c
76
clear_password(struct rad_handle *h)
lib/libradius/radlib.c
760
h->fd = -1;
lib/libradius/radlib.c
765
if (h->out[POS_CODE] == RAD_ACCESS_REQUEST) {
lib/libradius/radlib.c
767
if (h->pass_pos != 0)
lib/libradius/radlib.c
768
insert_scrambled_password(h, h->srv);
lib/libradius/radlib.c
770
insert_message_authenticator(h, 0);
lib/libradius/radlib.c
772
if (h->out[POS_CODE] != RAD_ACCESS_REQUEST) {
lib/libradius/radlib.c
774
memset(&h->out[POS_AUTH], 0, LEN_AUTH);
lib/libradius/radlib.c
775
insert_request_authenticator(h, 0);
lib/libradius/radlib.c
779
n = sendto(h->fd, h->out, h->out_len, 0,
lib/libradius/radlib.c
78
if (h->pass_len != 0) {
lib/libradius/radlib.c
780
(const struct sockaddr *)&h->servers[h->srv].addr,
lib/libradius/radlib.c
781
sizeof h->servers[h->srv].addr);
lib/libradius/radlib.c
782
if (n != h->out_len)
lib/libradius/radlib.c
785
tv->tv_sec = h->servers[h->srv].timeout;
lib/libradius/radlib.c
786
h->servers[h->srv].num_tries++;
lib/libradius/radlib.c
788
*fd = h->fd;
lib/libradius/radlib.c
79
explicit_bzero(h->pass, h->pass_len);
lib/libradius/radlib.c
794
rad_receive_request(struct rad_handle *h)
lib/libradius/radlib.c
80
h->pass_len = 0;
lib/libradius/radlib.c
800
if (h->type != RADIUS_SERVER) {
lib/libradius/radlib.c
801
generr(h, "denied function call");
lib/libradius/radlib.c
804
h->srv = -1;
lib/libradius/radlib.c
806
h->in_len = recvfrom(h->fd, h->in,
lib/libradius/radlib.c
808
if (h->in_len == -1) {
lib/libradius/radlib.c
809
generr(h, "recvfrom: %s", strerror(errno));
lib/libradius/radlib.c
812
for (n = 0; n < h->num_servers; n++) {
lib/libradius/radlib.c
813
if (h->servers[n].addr.sin_addr.s_addr == from.sin_addr.s_addr) {
lib/libradius/radlib.c
814
h->servers[n].addr.sin_port = from.sin_port;
lib/libradius/radlib.c
815
h->srv = n;
lib/libradius/radlib.c
819
if (h->srv == -1)
lib/libradius/radlib.c
82
h->pass_pos = 0;
lib/libradius/radlib.c
821
if (is_valid_request(h)) {
lib/libradius/radlib.c
822
h->in_len = h->in[POS_LENGTH] << 8 |
lib/libradius/radlib.c
823
h->in[POS_LENGTH+1];
lib/libradius/radlib.c
824
h->in_pos = POS_ATTRS;
lib/libradius/radlib.c
825
return (h->in[POS_CODE]);
lib/libradius/radlib.c
831
rad_send_response(struct rad_handle *h)
lib/libradius/radlib.c
835
if (h->type != RADIUS_SERVER) {
lib/libradius/radlib.c
836
generr(h, "denied function call");
lib/libradius/radlib.c
840
h->out[POS_LENGTH] = h->out_len >> 8;
lib/libradius/radlib.c
841
h->out[POS_LENGTH+1] = h->out_len;
lib/libradius/radlib.c
843
insert_message_authenticator(h,
lib/libradius/radlib.c
844
(h->in[POS_CODE] == RAD_ACCESS_REQUEST) ? 1 : 0);
lib/libradius/radlib.c
845
insert_request_authenticator(h, 1);
lib/libradius/radlib.c
848
n = sendto(h->fd, h->out, h->out_len, 0,
lib/libradius/radlib.c
849
(const struct sockaddr *)&h->servers[h->srv].addr,
lib/libradius/radlib.c
850
sizeof h->servers[h->srv].addr);
lib/libradius/radlib.c
851
if (n != h->out_len) {
lib/libradius/radlib.c
853
generr(h, "sendto: %s", strerror(errno));
lib/libradius/radlib.c
855
generr(h, "sendto: short write");
lib/libradius/radlib.c
86
generr(struct rad_handle *h, const char *format, ...)
lib/libradius/radlib.c
863
rad_create_request(struct rad_handle *h, int code)
lib/libradius/radlib.c
867
if (h->type == RADIUS_SERVER) {
lib/libradius/radlib.c
868
generr(h, "denied function call");
lib/libradius/radlib.c
871
if (h->num_servers == 0) {
lib/libradius/radlib.c
872
generr(h, "No RADIUS servers specified");
lib/libradius/radlib.c
875
h->out[POS_CODE] = code;
lib/libradius/radlib.c
876
h->out[POS_IDENT] = ++h->ident;
lib/libradius/radlib.c
882
h->out[POS_AUTH+i] = (u_char)r;
lib/libradius/radlib.c
883
h->out[POS_AUTH+i+1] = (u_char)(r >> 8);
lib/libradius/radlib.c
886
memset(&h->out[POS_AUTH], 0, LEN_AUTH);
lib/libradius/radlib.c
887
h->out_len = POS_ATTRS;
lib/libradius/radlib.c
888
clear_password(h);
lib/libradius/radlib.c
889
h->authentic_pos = 0;
lib/libradius/radlib.c
890
h->out_created = 1;
lib/libradius/radlib.c
895
rad_create_response(struct rad_handle *h, int code)
lib/libradius/radlib.c
898
if (h->type != RADIUS_SERVER) {
lib/libradius/radlib.c
899
generr(h, "denied function call");
lib/libradius/radlib.c
902
h->out[POS_CODE] = code;
lib/libradius/radlib.c
903
h->out[POS_IDENT] = h->in[POS_IDENT];
lib/libradius/radlib.c
904
memset(&h->out[POS_AUTH], 0, LEN_AUTH);
lib/libradius/radlib.c
905
h->out_len = POS_ATTRS;
lib/libradius/radlib.c
906
clear_password(h);
lib/libradius/radlib.c
907
h->authentic_pos = 0;
lib/libradius/radlib.c
908
h->out_created = 1;
lib/libradius/radlib.c
91
vsnprintf(h->errmsg, ERRSIZE, format, ap);
lib/libradius/radlib.c
957
rad_get_attr(struct rad_handle *h, const void **value, size_t *lenp)
lib/libradius/radlib.c
96
insert_scrambled_password(struct rad_handle *h, int srv)
lib/libradius/radlib.c
961
if (h->in_pos >= h->in_len)
lib/libradius/radlib.c
963
if (h->in_pos + 2 > h->in_len) {
lib/libradius/radlib.c
964
generr(h, "Malformed attribute in response");
lib/libradius/radlib.c
967
type = h->in[h->in_pos++];
lib/libradius/radlib.c
968
len = h->in[h->in_pos++];
lib/libradius/radlib.c
970
generr(h, "Malformed attribute in response");
lib/libradius/radlib.c
974
if (h->in_pos + len > h->in_len) {
lib/libradius/radlib.c
975
generr(h, "Malformed attribute in response");
lib/libradius/radlib.c
979
*value = &h->in[h->in_pos];
lib/libradius/radlib.c
980
h->in_pos += len;
lib/libradius/radlib.c
988
rad_init_send_request(struct rad_handle *h, int *fd, struct timeval *tv)
lib/libradius/radlib.c
994
if (h->type == RADIUS_SERVER) {
lib/libradius/radlib.c
995
generr(h, "denied function call");
lib/libradius/radlib.c
999
if (h->fd == -1) {
lib/librt/mq.c
101
h = mqd->oshandle;
lib/librt/mq.c
103
return (__sys_close(h));
lib/librt/mq.c
94
int h;
lib/libtacplus/taclib.c
1000
return h;
lib/libtacplus/taclib.c
1004
tac_send_authen(struct tac_handle *h)
lib/libtacplus/taclib.c
1008
if (h->num_servers == 0)
lib/libtacplus/taclib.c
101
generr(h, "Field too long");
lib/libtacplus/taclib.c
1011
if (h->last_seq_no == 0) { /* Authentication START packet */
lib/libtacplus/taclib.c
1014
as = &h->request.u.authen_start;
lib/libtacplus/taclib.c
1015
h->request.length =
lib/libtacplus/taclib.c
1017
if (add_str_8(h, &as->user_len, &h->user) == -1 ||
lib/libtacplus/taclib.c
1018
add_str_8(h, &as->port_len, &h->port) == -1 ||
lib/libtacplus/taclib.c
1019
add_str_8(h, &as->rem_addr_len, &h->rem_addr) == -1 ||
lib/libtacplus/taclib.c
1020
add_str_8(h, &as->data_len, &h->data) == -1)
lib/libtacplus/taclib.c
1025
ac = &h->request.u.authen_cont;
lib/libtacplus/taclib.c
1027
h->request.length =
lib/libtacplus/taclib.c
1029
if (add_str_16(h, &ac->user_msg_len, &h->user_msg) == -1 ||
lib/libtacplus/taclib.c
1030
add_str_16(h, &ac->data_len, &h->data) == -1)
lib/libtacplus/taclib.c
1035
if (send_msg(h) == -1 || recv_msg(h) == -1)
lib/libtacplus/taclib.c
1039
ar = &h->response.u.authen_reply;
lib/libtacplus/taclib.c
1040
h->srvr_pos = offsetof(struct tac_authen_reply, rest[0]);
lib/libtacplus/taclib.c
1041
if (get_str(h, "msg", &h->srvr_msg, ntohs(ar->msg_len)) == -1 ||
lib/libtacplus/taclib.c
1042
get_str(h, "data", &h->srvr_data, ntohs(ar->data_len)) == -1 ||
lib/libtacplus/taclib.c
1043
get_srvr_end(h) == -1)
lib/libtacplus/taclib.c
1046
if (!h->single_connect &&
lib/libtacplus/taclib.c
1050
close_connection(h);
lib/libtacplus/taclib.c
1056
tac_send_author(struct tac_handle *h)
lib/libtacplus/taclib.c
1060
struct tac_author_request *areq = &h->request.u.author_request;
lib/libtacplus/taclib.c
1061
struct tac_author_response *ares = &h->response.u.author_response;
lib/libtacplus/taclib.c
1064
h->request.length =
lib/libtacplus/taclib.c
1069
if (h->avs[i].len && h->avs[i].data)
lib/libtacplus/taclib.c
1076
h->request.length = ntohl(htonl(h->request.length) + areq->av_cnt);
lib/libtacplus/taclib.c
1079
if (add_str_8(h, &areq->user_len, &h->user) == -1 ||
lib/libtacplus/taclib.c
1080
add_str_8(h, &areq->port_len, &h->port) == -1 ||
lib/libtacplus/taclib.c
1081
add_str_8(h, &areq->rem_addr_len, &h->rem_addr) == -1)
lib/libtacplus/taclib.c
1086
if (h->avs[i].len && h->avs[i].data) {
lib/libtacplus/taclib.c
1087
if (add_str_8(h, &areq->rest[current++],
lib/libtacplus/taclib.c
1088
&(h->avs[i])) == -1)
lib/libtacplus/taclib.c
1094
if (send_msg(h) == -1 || recv_msg(h) == -1)
lib/libtacplus/taclib.c
1096
srvp = &h->servers[h->cur_server];
lib/libtacplus/taclib.c
1099
h->srvr_pos = offsetof(struct tac_author_response, rest[0]) +
lib/libtacplus/taclib.c
1103
if (get_str(h, "msg", &h->srvr_msg, ntohs(ares->msg_len)) == -1 ||
lib/libtacplus/taclib.c
1104
get_str(h, "data", &h->srvr_data, ntohs(ares->data_len)) ==-1)
lib/libtacplus/taclib.c
1108
clear_srvr_avs(h);
lib/libtacplus/taclib.c
1111
if (get_str(h, dbgstr, &(h->srvr_avs[i]),
lib/libtacplus/taclib.c
1114
h->srvr_navs++;
lib/libtacplus/taclib.c
1118
if (get_srvr_end(h) == -1)
lib/libtacplus/taclib.c
1122
if (!h->single_connect)
lib/libtacplus/taclib.c
1123
close_connection(h);
lib/libtacplus/taclib.c
1125
return (h->srvr_navs + srvp->navs) << 8 | ares->status;
lib/libtacplus/taclib.c
1129
tac_send_acct(struct tac_handle *h)
lib/libtacplus/taclib.c
1132
struct tac_acct_start *as = &h->request.u.acct_start;
lib/libtacplus/taclib.c
1133
struct tac_acct_reply *ar = &h->response.u.acct_reply;
lib/libtacplus/taclib.c
1136
as = &h->request.u.acct_start;
lib/libtacplus/taclib.c
1137
h->request.length = htonl(offsetof(struct tac_acct_start, rest[0]));
lib/libtacplus/taclib.c
1139
if (h->avs[i].len && h->avs[i].data)
lib/libtacplus/taclib.c
1141
h->request.length = ntohl(htonl(h->request.length) + as->av_cnt);
lib/libtacplus/taclib.c
1143
if (add_str_8(h, &as->user_len, &h->user) == -1 ||
lib/libtacplus/taclib.c
1144
add_str_8(h, &as->port_len, &h->port) == -1 ||
lib/libtacplus/taclib.c
1145
add_str_8(h, &as->rem_addr_len, &h->rem_addr) == -1)
lib/libtacplus/taclib.c
1149
if (h->avs[i].len && h->avs[i].data)
lib/libtacplus/taclib.c
1150
if (add_str_8(h, &as->rest[current++], &(h->avs[i])) == -1)
lib/libtacplus/taclib.c
1154
if (send_msg(h) == -1 || recv_msg(h) == -1)
lib/libtacplus/taclib.c
1158
h->srvr_pos = offsetof(struct tac_acct_reply, rest[0]);
lib/libtacplus/taclib.c
1159
if (get_str(h, "msg", &h->srvr_msg, ntohs(ar->msg_len)) == -1 ||
lib/libtacplus/taclib.c
1160
get_str(h, "data", &h->srvr_data, ntohs(ar->data_len)) == -1 ||
lib/libtacplus/taclib.c
1161
get_srvr_end(h) == -1)
lib/libtacplus/taclib.c
1165
if (!h->single_connect)
lib/libtacplus/taclib.c
1166
close_connection(h);
lib/libtacplus/taclib.c
117
add_str_16(struct tac_handle *h, u_int16_t *fld, struct tac_str *cs)
lib/libtacplus/taclib.c
1172
tac_set_rem_addr(struct tac_handle *h, const char *addr)
lib/libtacplus/taclib.c
1174
return save_str(h, &h->rem_addr, addr, addr != NULL ? strlen(addr) : 0);
lib/libtacplus/taclib.c
1178
tac_set_data(struct tac_handle *h, const void *data, size_t data_len)
lib/libtacplus/taclib.c
1180
return save_str(h, &h->data, data, data_len);
lib/libtacplus/taclib.c
1184
tac_set_msg(struct tac_handle *h, const char *msg)
lib/libtacplus/taclib.c
1186
return save_str(h, &h->user_msg, msg, msg != NULL ? strlen(msg) : 0);
lib/libtacplus/taclib.c
1190
tac_set_port(struct tac_handle *h, const char *port)
lib/libtacplus/taclib.c
1192
return save_str(h, &h->port, port, port != NULL ? strlen(port) : 0);
lib/libtacplus/taclib.c
1196
tac_set_priv(struct tac_handle *h, int priv)
lib/libtacplus/taclib.c
1199
generr(h, "Attempt to set invalid privilege level");
lib/libtacplus/taclib.c
1202
h->request.u.authen_start.priv_lvl = priv;
lib/libtacplus/taclib.c
1207
tac_set_user(struct tac_handle *h, const char *user)
lib/libtacplus/taclib.c
1209
return save_str(h, &h->user, user, user != NULL ? strlen(user) : 0);
lib/libtacplus/taclib.c
1213
tac_set_av(struct tac_handle *h, u_int index, const char *av)
lib/libtacplus/taclib.c
1217
return save_str(h, &(h->avs[index]), av, av != NULL ? strlen(av) : 0);
lib/libtacplus/taclib.c
1221
tac_get_av(struct tac_handle *h, u_int index)
lib/libtacplus/taclib.c
1225
if (index < h->srvr_navs)
lib/libtacplus/taclib.c
1226
return dup_str(h, &h->srvr_avs[index], NULL);
lib/libtacplus/taclib.c
1227
index -= h->srvr_navs;
lib/libtacplus/taclib.c
1228
srvp = &h->servers[h->cur_server];
lib/libtacplus/taclib.c
1230
return xstrdup(h, srvp->avs[index].data);
lib/libtacplus/taclib.c
1235
tac_get_av_value(struct tac_handle *h, const char *attribute)
lib/libtacplus/taclib.c
1242
struct tac_server *srvp = &h->servers[h->cur_server];
lib/libtacplus/taclib.c
1247
for (i = 0; i < h->srvr_navs + srvp->navs; i++) {
lib/libtacplus/taclib.c
1248
if (i < h->srvr_navs)
lib/libtacplus/taclib.c
1249
candidate = &h->srvr_avs[i];
lib/libtacplus/taclib.c
1251
candidate = &srvp->avs[i - h->srvr_navs];
lib/libtacplus/taclib.c
128
generr(h, "Field too long");
lib/libtacplus/taclib.c
1286
return dup_str(h, &value, NULL);
lib/libtacplus/taclib.c
1294
tac_clear_avs(struct tac_handle *h)
lib/libtacplus/taclib.c
1298
save_str(h, &(h->avs[i]), NULL, 0);
lib/libtacplus/taclib.c
1302
clear_srvr_avs(struct tac_handle *h)
lib/libtacplus/taclib.c
1306
for (i = 0; i < h->srvr_navs; i++)
lib/libtacplus/taclib.c
1307
init_str(&(h->srvr_avs[i]));
lib/libtacplus/taclib.c
1308
h->srvr_navs = 0;
lib/libtacplus/taclib.c
131
offset = ntohl(h->request.length);
lib/libtacplus/taclib.c
1313
tac_strerror(struct tac_handle *h)
lib/libtacplus/taclib.c
1315
return h->errmsg;
lib/libtacplus/taclib.c
1319
xmalloc(struct tac_handle *h, size_t size)
lib/libtacplus/taclib.c
1324
generr(h, "Out of memory");
lib/libtacplus/taclib.c
1329
xstrdup(struct tac_handle *h, const char *s)
lib/libtacplus/taclib.c
133
generr(h, "Message too long");
lib/libtacplus/taclib.c
1334
generr(h, "Out of memory");
lib/libtacplus/taclib.c
136
memcpy(h->request.u.body + offset, cs->data, len);
lib/libtacplus/taclib.c
137
h->request.length = htonl(offset + len);
lib/libtacplus/taclib.c
228
close_connection(struct tac_handle *h)
lib/libtacplus/taclib.c
230
if (h->fd != -1) {
lib/libtacplus/taclib.c
231
close(h->fd);
lib/libtacplus/taclib.c
232
h->fd = -1;
lib/libtacplus/taclib.c
237
conn_server(struct tac_handle *h)
lib/libtacplus/taclib.c
239
struct tac_server *srvp = &h->servers[h->cur_server];
lib/libtacplus/taclib.c
242
if ((h->fd = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP)) == -1) {
lib/libtacplus/taclib.c
243
generr(h, "Cannot create socket: %s", strerror(errno));
lib/libtacplus/taclib.c
246
if ((flags = fcntl(h->fd, F_GETFL, 0)) == -1 ||
lib/libtacplus/taclib.c
247
fcntl(h->fd, F_SETFL, flags | O_NONBLOCK) == -1) {
lib/libtacplus/taclib.c
248
generr(h, "Cannot set non-blocking mode on socket: %s",
lib/libtacplus/taclib.c
250
close(h->fd);
lib/libtacplus/taclib.c
251
h->fd = -1;
lib/libtacplus/taclib.c
254
if (connect(h->fd, (struct sockaddr *)&srvp->addr,
lib/libtacplus/taclib.c
268
FD_SET(h->fd, &wfds);
lib/libtacplus/taclib.c
271
nfds = select(h->fd + 1, NULL, &wfds, NULL, &tv);
lib/libtacplus/taclib.c
273
generr(h, "select: %s", strerror(errno));
lib/libtacplus/taclib.c
274
close(h->fd);
lib/libtacplus/taclib.c
275
h->fd = -1;
lib/libtacplus/taclib.c
279
generr(h, "connect: timed out");
lib/libtacplus/taclib.c
280
close(h->fd);
lib/libtacplus/taclib.c
281
h->fd = -1;
lib/libtacplus/taclib.c
287
if (getpeername(h->fd, &peer, &peerlen) == 0)
lib/libtacplus/taclib.c
291
generr(h, "getpeername: %s", strerror(errno));
lib/libtacplus/taclib.c
292
close(h->fd);
lib/libtacplus/taclib.c
293
h->fd = -1;
lib/libtacplus/taclib.c
299
getsockopt(h->fd, SOL_SOCKET, SO_ERROR, &err, &errlen);
lib/libtacplus/taclib.c
302
generr(h, "connect: %s", strerror(errno));
lib/libtacplus/taclib.c
303
close(h->fd);
lib/libtacplus/taclib.c
304
h->fd = -1;
lib/libtacplus/taclib.c
312
crypt_msg(struct tac_handle *h, struct tac_msg *msg)
lib/libtacplus/taclib.c
321
secret = h->servers[h->cur_server].secret;
lib/libtacplus/taclib.c
360
dup_str(struct tac_handle *h, const struct tac_str *ss, size_t *len)
lib/libtacplus/taclib.c
364
if ((p = (unsigned char *)xmalloc(h, ss->len + 1)) == NULL)
lib/libtacplus/taclib.c
375
establish_connection(struct tac_handle *h)
lib/libtacplus/taclib.c
379
if (h->fd >= 0) /* Already connected. */
lib/libtacplus/taclib.c
381
if (h->num_servers == 0) {
lib/libtacplus/taclib.c
382
generr(h, "No TACACS+ servers specified");
lib/libtacplus/taclib.c
390
for (i = 0; i < h->num_servers; i++) {
lib/libtacplus/taclib.c
391
if (conn_server(h) == 0) {
lib/libtacplus/taclib.c
392
h->single_connect = (h->servers[h->cur_server].flags &
lib/libtacplus/taclib.c
396
if (++h->cur_server >= h->num_servers) /* Wrap around */
lib/libtacplus/taclib.c
397
h->cur_server = 0;
lib/libtacplus/taclib.c
418
generr(struct tac_handle *h, const char *format, ...)
lib/libtacplus/taclib.c
423
vsnprintf(h->errmsg, ERRSIZE, format, ap);
lib/libtacplus/taclib.c
445
get_srvr_end(struct tac_handle *h)
lib/libtacplus/taclib.c
449
len = ntohl(h->response.length);
lib/libtacplus/taclib.c
451
if (h->srvr_pos != len) {
lib/libtacplus/taclib.c
452
generr(h, "Invalid length field in response "
lib/libtacplus/taclib.c
454
h->srvr_pos, len);
lib/libtacplus/taclib.c
461
get_str(struct tac_handle *h, const char *field,
lib/libtacplus/taclib.c
464
if (h->srvr_pos + len > ntohl(h->response.length)) {
lib/libtacplus/taclib.c
465
generr(h, "Invalid length field in %s response from server "
lib/libtacplus/taclib.c
466
"(%lu > %lu)", field, (u_long)(h->srvr_pos + len),
lib/libtacplus/taclib.c
467
(u_long)ntohl(h->response.length));
lib/libtacplus/taclib.c
470
ss->data = len != 0 ? h->response.u.body + h->srvr_pos : NULL;
lib/libtacplus/taclib.c
472
h->srvr_pos += len;
lib/libtacplus/taclib.c
484
read_timed(struct tac_handle *h, void *buf, size_t len,
lib/libtacplus/taclib.c
493
n = read(h->fd, ptr, len);
lib/libtacplus/taclib.c
499
generr(h, "Network read error: %s",
lib/libtacplus/taclib.c
511
FD_SET(h->fd, &rfds);
lib/libtacplus/taclib.c
513
select(h->fd + 1, &rfds, NULL, NULL, &tv);
lib/libtacplus/taclib.c
515
generr(h, "select: %s",
lib/libtacplus/taclib.c
522
generr(h, "Network read timed out");
lib/libtacplus/taclib.c
526
generr(h, "unexpected EOF from server");
lib/libtacplus/taclib.c
541
recv_msg(struct tac_handle *h)
lib/libtacplus/taclib.c
547
msg = &h->response;
lib/libtacplus/taclib.c
549
deadline.tv_sec += h->servers[h->cur_server].timeout;
lib/libtacplus/taclib.c
552
if (read_timed(h, msg, HDRSIZE, &deadline) == -1)
lib/libtacplus/taclib.c
554
if (memcmp(msg->session_id, h->request.session_id,
lib/libtacplus/taclib.c
556
generr(h, "Invalid session ID in received message");
lib/libtacplus/taclib.c
559
if (msg->type != h->request.type) {
lib/libtacplus/taclib.c
560
generr(h, "Invalid type in received message"
lib/libtacplus/taclib.c
562
msg->type, h->request.type);
lib/libtacplus/taclib.c
567
generr(h, "Received message too large (%u > %u)",
lib/libtacplus/taclib.c
571
if (msg->seq_no != ++h->last_seq_no) {
lib/libtacplus/taclib.c
572
generr(h, "Invalid sequence number in received message"
lib/libtacplus/taclib.c
574
msg->seq_no, h->last_seq_no);
lib/libtacplus/taclib.c
579
if (read_timed(h, msg->u.body, len, &deadline) == -1)
lib/libtacplus/taclib.c
583
crypt_msg(h, msg);
lib/libtacplus/taclib.c
590
h->single_connect = 0;
lib/libtacplus/taclib.c
595
save_str(struct tac_handle *h, struct tac_str *cs, const void *data,
lib/libtacplus/taclib.c
600
if ((cs->data = xmalloc(h, len)) == NULL)
lib/libtacplus/taclib.c
613
send_msg(struct tac_handle *h)
lib/libtacplus/taclib.c
620
if (h->last_seq_no & 1) {
lib/libtacplus/taclib.c
621
generr(h, "Attempt to send message out of sequence");
lib/libtacplus/taclib.c
625
if (establish_connection(h) == -1)
lib/libtacplus/taclib.c
628
msg = &h->request;
lib/libtacplus/taclib.c
629
msg->seq_no = ++h->last_seq_no;
lib/libtacplus/taclib.c
632
crypt_msg(h, msg);
lib/libtacplus/taclib.c
634
if (h->single_connect)
lib/libtacplus/taclib.c
639
deadline.tv_sec += h->servers[h->cur_server].timeout;
lib/libtacplus/taclib.c
645
n = write(h->fd, ptr, len);
lib/libtacplus/taclib.c
651
generr(h, "Network write error: %s",
lib/libtacplus/taclib.c
663
FD_SET(h->fd, &wfds);
lib/libtacplus/taclib.c
665
select(h->fd + 1, NULL, &wfds, NULL, &tv);
lib/libtacplus/taclib.c
667
generr(h, "select: %s",
lib/libtacplus/taclib.c
674
generr(h, "Network write timed out");
lib/libtacplus/taclib.c
686
tac_add_server_av(struct tac_handle *h, const char *host, int port,
lib/libtacplus/taclib.c
694
if (h->num_servers >= MAXSERVERS) {
lib/libtacplus/taclib.c
695
generr(h, "Too many TACACS+ servers specified");
lib/libtacplus/taclib.c
698
srvp = &h->servers[h->num_servers];
lib/libtacplus/taclib.c
707
generr(h, "%s: host not found", host);
lib/libtacplus/taclib.c
714
if ((srvp->secret = xstrdup(h, secret)) == NULL)
lib/libtacplus/taclib.c
721
generr(h, "too many AV pairs");
lib/libtacplus/taclib.c
727
generr(h, "invalid AV pair %d", i);
lib/libtacplus/taclib.c
732
if ((srvp->avs[i].data = xstrdup(h, avs[i])) == NULL)
lib/libtacplus/taclib.c
737
h->num_servers++;
lib/libtacplus/taclib.c
752
tac_add_server(struct tac_handle *h, const char *host, int port,
lib/libtacplus/taclib.c
757
return tac_add_server_av(h, host, port, secret, timeout, flags, avs);
lib/libtacplus/taclib.c
761
tac_close(struct tac_handle *h)
lib/libtacplus/taclib.c
765
if (h->fd != -1)
lib/libtacplus/taclib.c
766
close(h->fd);
lib/libtacplus/taclib.c
767
for (srv = 0; srv < h->num_servers; srv++) {
lib/libtacplus/taclib.c
768
memset(h->servers[srv].secret, 0,
lib/libtacplus/taclib.c
769
strlen(h->servers[srv].secret));
lib/libtacplus/taclib.c
770
free(h->servers[srv].secret);
lib/libtacplus/taclib.c
772
free_str(&h->user);
lib/libtacplus/taclib.c
773
free_str(&h->port);
lib/libtacplus/taclib.c
774
free_str(&h->rem_addr);
lib/libtacplus/taclib.c
775
free_str(&h->data);
lib/libtacplus/taclib.c
776
free_str(&h->user_msg);
lib/libtacplus/taclib.c
778
free_str(&(h->avs[i]));
lib/libtacplus/taclib.c
781
memset(h, 0, sizeof(struct tac_handle));
lib/libtacplus/taclib.c
782
free(h);
lib/libtacplus/taclib.c
796
tac_config(struct tac_handle *h, const char *path)
lib/libtacplus/taclib.c
806
generr(h, "Cannot open \"%s\": %s", path, strerror(errno));
lib/libtacplus/taclib.c
828
generr(h, "%s:%d: missing shared secret", path,
lib/libtacplus/taclib.c
843
generr(h, "%s:%d: invalid port", path,
lib/libtacplus/taclib.c
856
generr(h, "%s:%d: invalid timeout", path,
lib/libtacplus/taclib.c
870
if (tac_add_server_av(h, host, port, secret, timeout,
lib/libtacplus/taclib.c
874
strcpy(msg, h->errmsg);
lib/libtacplus/taclib.c
875
generr(h, "%s:%d: %s", path, linenum, msg);
lib/libtacplus/taclib.c
888
tac_create_authen(struct tac_handle *h, int action, int type, int service)
lib/libtacplus/taclib.c
892
create_msg(h, TAC_AUTHEN, action, type);
lib/libtacplus/taclib.c
894
as = &h->request.u.authen_start;
lib/libtacplus/taclib.c
904
tac_create_author(struct tac_handle *h, int method, int type, int service)
lib/libtacplus/taclib.c
908
create_msg(h, TAC_AUTHOR, method, type);
lib/libtacplus/taclib.c
910
areq = &h->request.u.author_request;
lib/libtacplus/taclib.c
920
tac_create_acct(struct tac_handle *h, int acct, int action, int type, int service)
lib/libtacplus/taclib.c
924
create_msg(h, TAC_ACCT, action, type);
lib/libtacplus/taclib.c
926
as = &h->request.u.acct_start;
lib/libtacplus/taclib.c
93
add_str_8(struct tac_handle *h, u_int8_t *fld, struct tac_str *cs)
lib/libtacplus/taclib.c
937
create_msg(struct tac_handle *h, int msg_type, int var, int type)
lib/libtacplus/taclib.c
942
h->last_seq_no = 0;
lib/libtacplus/taclib.c
944
msg = &h->request;
lib/libtacplus/taclib.c
949
free_str(&h->user);
lib/libtacplus/taclib.c
950
free_str(&h->port);
lib/libtacplus/taclib.c
951
free_str(&h->rem_addr);
lib/libtacplus/taclib.c
952
free_str(&h->data);
lib/libtacplus/taclib.c
953
free_str(&h->user_msg);
lib/libtacplus/taclib.c
956
free_str(&(h->avs[i]));
lib/libtacplus/taclib.c
960
tac_get_data(struct tac_handle *h, size_t *len)
lib/libtacplus/taclib.c
962
return dup_str(h, &h->srvr_data, len);
lib/libtacplus/taclib.c
966
tac_get_msg(struct tac_handle *h)
lib/libtacplus/taclib.c
968
return dup_str(h, &h->srvr_msg, NULL);
lib/libtacplus/taclib.c
97
if (add_str_16(h, &len, cs) == -1)
lib/libtacplus/taclib.c
980
struct tac_handle *h;
lib/libtacplus/taclib.c
982
h = (struct tac_handle *)malloc(sizeof(struct tac_handle));
lib/libtacplus/taclib.c
983
if (h != NULL) {
lib/libtacplus/taclib.c
984
h->fd = -1;
lib/libtacplus/taclib.c
985
h->num_servers = 0;
lib/libtacplus/taclib.c
986
h->cur_server = 0;
lib/libtacplus/taclib.c
987
h->errmsg[0] = '\0';
lib/libtacplus/taclib.c
988
init_str(&h->user);
lib/libtacplus/taclib.c
989
init_str(&h->port);
lib/libtacplus/taclib.c
990
init_str(&h->rem_addr);
lib/libtacplus/taclib.c
991
init_str(&h->data);
lib/libtacplus/taclib.c
992
init_str(&h->user_msg);
lib/libtacplus/taclib.c
994
init_str(&(h->avs[i]));
lib/libtacplus/taclib.c
995
init_str(&(h->srvr_avs[i]));
lib/libtacplus/taclib.c
997
init_str(&h->srvr_msg);
lib/libtacplus/taclib.c
998
init_str(&h->srvr_data);
lib/libthr/thread/thr_pshared.c
105
struct psh *h, *h1;
lib/libthr/thread/thr_pshared.c
111
LIST_FOREACH_SAFE(h, hd, link, h1) {
lib/libthr/thread/thr_pshared.c
113
h->val, NULL);
lib/libthr/thread/thr_pshared.c
116
LIST_REMOVE(h, link);
lib/libthr/thread/thr_pshared.c
117
munmap(h->val, page_size);
lib/libthr/thread/thr_pshared.c
118
free(h);
lib/libthr/thread/thr_pshared.c
128
struct psh *h;
lib/libthr/thread/thr_pshared.c
131
LIST_FOREACH(h, hd, link) {
lib/libthr/thread/thr_pshared.c
132
if (h->key == key)
lib/libthr/thread/thr_pshared.c
133
return (h->val);
lib/libthr/thread/thr_pshared.c
142
struct psh *h;
lib/libthr/thread/thr_pshared.c
145
LIST_FOREACH(h, hd, link) {
lib/libthr/thread/thr_pshared.c
167
if (h->key == key) {
lib/libthr/thread/thr_pshared.c
168
if (h->val != *val) {
lib/libthr/thread/thr_pshared.c
170
*val = h->val;
lib/libthr/thread/thr_pshared.c
176
h = malloc(sizeof(*h));
lib/libthr/thread/thr_pshared.c
177
if (h == NULL)
lib/libthr/thread/thr_pshared.c
179
h->key = key;
lib/libthr/thread/thr_pshared.c
180
h->val = *val;
lib/libthr/thread/thr_pshared.c
181
LIST_INSERT_HEAD(hd, h, link);
lib/libthr/thread/thr_pshared.c
189
struct psh *h;
lib/libthr/thread/thr_pshared.c
193
LIST_FOREACH(h, hd, link) {
lib/libthr/thread/thr_pshared.c
194
if (h->key == key) {
lib/libthr/thread/thr_pshared.c
195
LIST_REMOVE(h, link);
lib/libthr/thread/thr_pshared.c
196
val = h->val;
lib/libthr/thread/thr_pshared.c
197
free(h);
lib/libusbhid/data.c
100
hsize = h->report_size; /* bit length of data */
lib/libusbhid/data.c
40
hid_get_data(const void *p, const hid_item_t *h)
lib/libusbhid/data.c
51
if (h->report_ID > 0)
lib/libusbhid/data.c
54
hpos = h->pos; /* bit position of data */
lib/libusbhid/data.c
55
hsize = h->report_size; /* bit length of data */
lib/libusbhid/data.c
74
if ((h->logical_minimum < 0) || (h->logical_maximum < 0))
lib/libusbhid/data.c
83
hid_set_data(void *p, const hid_item_t *h, int32_t data)
lib/libusbhid/data.c
96
if (h->report_ID > 0)
lib/libusbhid/data.c
97
*buf++ = h->report_ID & 0xff;
lib/libusbhid/data.c
99
hpos = h->pos; /* bit position of data */
lib/libusbhid/descr.c
62
hid_item_t h;
lib/libusbhid/descr.c
70
for (d = hid_start_parse(rep, kindset, -1); hid_get_item(d, &h); ) {
lib/libusbhid/descr.c
72
if (h.report_ID != 0) {
lib/libusbhid/descr.c
73
temp = h.report_ID;
lib/libusbhid/parse.c
213
hid_get_item_raw(hid_data_t s, hid_item_t *h)
lib/libusbhid/parse.c
249
*h = *c;
lib/libusbhid/parse.c
250
h->pos = s->pos[c->kind];
lib/libusbhid/parse.c
349
*h = *c;
lib/libusbhid/parse.c
362
*h = *c;
lib/libusbhid/parse.c
516
hid_get_item(hid_data_t s, hid_item_t *h)
lib/libusbhid/parse.c
521
r = hid_get_item_raw(s, h);
lib/libusbhid/parse.c
522
if (r <= 0 || s->reportid == -1 || h->report_ID == s->reportid)
lib/libusbhid/parse.c
532
struct hid_item h;
lib/libusbhid/parse.c
541
memset(&h, 0, sizeof h);
lib/libusbhid/parse.c
542
for (d = hid_start_parse(r, 1 << k, id); hid_get_item(d, &h); ) {
lib/libusbhid/parse.c
543
if (h.kind == k) {
lib/libusbhid/parse.c
545
if (lpos > h.pos)
lib/libusbhid/parse.c
546
lpos = h.pos;
lib/libusbhid/parse.c
548
temp = h.pos + (h.report_size * h.report_count);
lib/libusbhid/parse.c
552
if (h.report_ID != 0)
lib/libusbhid/parse.c
570
hid_item_t *h, int id)
lib/libusbhid/parse.c
574
for (d = hid_start_parse(desc, 1 << k, id); hid_get_item(d, h); ) {
lib/libusbhid/parse.c
575
if (h->kind == k && !(h->flags & HIO_CONST) && h->usage == u) {
lib/libusbhid/parse.c
581
h->report_size = 0;
lib/libusbhid/usbhid.h
109
int32_t hid_get_data(const void *p, const hid_item_t *h);
lib/libusbhid/usbhid.h
110
void hid_set_data(void *p, const hid_item_t *h, int32_t data);
lib/libusbhid/usbhid.h
96
int hid_get_item(hid_data_t s, hid_item_t *h);
lib/libusbhid/usbhid.h
99
hid_item_t *h, int id);
lib/msun/ld128/s_logl.c
429
#define RETURN2(rp, h, l) do { \
lib/msun/ld128/s_logl.c
430
(rp)->hi = (h); \
lib/msun/ld128/s_logl.c
443
#define RETURN2(rp, h, l) RETURNI((h) + (l))
lib/msun/ld80/s_logl.c
429
#define RETURN2(rp, h, l) do { \
lib/msun/ld80/s_logl.c
430
(rp)->hi = (h); \
lib/msun/ld80/s_logl.c
443
#define RETURN2(rp, h, l) RETURNI((h) + (l))
lib/msun/src/e_hypotl.c
20
#define GET_LDBL_MAN(h, l, v) do { \
lib/msun/src/e_hypotl.c
24
h = uv.bits.manh; \
lib/msun/src/e_jn.c
153
double q0,q1,h,tmp; int32_t k,m;
lib/msun/src/e_jn.c
154
w = (n+n)/(double)x; h = 2.0/(double)x;
lib/msun/src/e_jn.c
155
q0 = w; z = w+h; q1 = w*z - 1.0; k=1;
lib/msun/src/e_jn.c
157
k += 1; z += h;
lib/msun/src/e_jnf.c
111
float q0,q1,h,tmp; int32_t k,m;
lib/msun/src/e_jnf.c
112
w = (n+n)/(float)x; h = (float)2.0/(float)x;
lib/msun/src/e_jnf.c
113
q0 = w; z = w+h; q1 = w*z - (float)1.0; k=1;
lib/msun/src/e_jnf.c
115
k += 1; z += h;
lib/msun/src/e_sinh.c
41
double t,h;
lib/msun/src/e_sinh.c
51
h = 0.5;
lib/msun/src/e_sinh.c
52
if (jx<0) h = -h;
lib/msun/src/e_sinh.c
58
if(ix<0x3ff00000) return h*(2.0*t-t*t/(t+one));
lib/msun/src/e_sinh.c
59
return h*(t+t/(t+one));
lib/msun/src/e_sinh.c
63
if (ix < 0x40862E42) return h*exp(fabs(x));
lib/msun/src/e_sinh.c
67
return h*2.0*__ldexp_exp(fabs(x), -1);
lib/msun/src/e_sinhf.c
24
float t,h;
lib/msun/src/e_sinhf.c
33
h = 0.5;
lib/msun/src/e_sinhf.c
34
if (jx<0) h = -h;
lib/msun/src/e_sinhf.c
40
if(ix<0x3f800000) return h*((float)2.0*t-t*t/(t+one));
lib/msun/src/e_sinhf.c
41
return h*(t+t/(t+one));
lib/msun/src/e_sinhf.c
45
if (ix < 0x42b17217) return h*expf(fabsf(x));
lib/msun/src/e_sinhf.c
49
return h*2.0F*__ldexp_expf(fabsf(x), -1);
lib/msun/src/s_ccosh.c
51
double c, h, s, x, y;
lib/msun/src/s_ccosh.c
75
h = exp(fabs(x)) / 2;
lib/msun/src/s_ccosh.c
76
return (CMPLX(h * c, copysign(h, x) * s));
lib/msun/src/s_ccosh.c
83
h = huge * x;
lib/msun/src/s_ccosh.c
84
return (CMPLX(h * h * c, h * s));
lib/msun/src/s_ccoshf.c
43
float c, h, s, x, y;
lib/msun/src/s_ccoshf.c
66
h = expf(fabsf(x)) / 2;
lib/msun/src/s_ccoshf.c
67
return (CMPLXF(h * c, copysignf(h, x) * s));
lib/msun/src/s_ccoshf.c
74
h = huge * x;
lib/msun/src/s_ccoshf.c
75
return (CMPLXF(h * h * c, h * s));
lib/msun/src/s_csinh.c
51
double c, h, s, x, y;
lib/msun/src/s_csinh.c
75
h = exp(fabs(x)) / 2;
lib/msun/src/s_csinh.c
76
return (CMPLX(copysign(h, x) * c, h * s));
lib/msun/src/s_csinh.c
83
h = huge * x;
lib/msun/src/s_csinh.c
84
return (CMPLX(h * c, h * h * s));
lib/msun/src/s_csinhf.c
43
float c, h, s, x, y;
lib/msun/src/s_csinhf.c
66
h = expf(fabsf(x)) / 2;
lib/msun/src/s_csinhf.c
67
return (CMPLXF(copysignf(h, x) * c, h * s));
lib/msun/src/s_csinhf.c
74
h = huge * x;
lib/msun/src/s_csinhf.c
75
return (CMPLXF(h * c, h * h * s));
lib/ncurses/tinfo/ncurses_cfg.h
223
#define USE_OPENPTY_HEADER <libutil.h>
lib/nss_tacplus/nss_tacplus.c
115
struct tac_handle *h;
lib/nss_tacplus/nss_tacplus.c
120
if ((h = tacplus_get_handle()) == NULL)
lib/nss_tacplus/nss_tacplus.c
122
ret = tac_create_author(h, TAC_AUTHEN_METH_NOT_SET,
lib/nss_tacplus/nss_tacplus.c
125
tacplus_error(h, "tac_create_author");
lib/nss_tacplus/nss_tacplus.c
128
if (tac_set_user(h, name) < 0) {
lib/nss_tacplus/nss_tacplus.c
129
tacplus_error(h, "tac_set_user");
lib/nss_tacplus/nss_tacplus.c
132
if (tac_set_av(h, 0, "service=shell") < 0) {
lib/nss_tacplus/nss_tacplus.c
133
tacplus_error(h, "tac_set_av");
lib/nss_tacplus/nss_tacplus.c
136
ret = tac_send_author(h);
lib/nss_tacplus/nss_tacplus.c
147
tacplus_error(h, "tac_send_author");
lib/nss_tacplus/nss_tacplus.c
168
if ((av = tac_get_av(h, i)) == NULL) {
lib/nss_tacplus/nss_tacplus.c
169
tacplus_error(h, "tac_get_av");
lib/nss_tacplus/nss_tacplus.c
35
tacplus_error(struct tac_handle *h, const char *func)
lib/nss_tacplus/nss_tacplus.c
37
if (h == NULL)
lib/nss_tacplus/nss_tacplus.c
40
syslog(LOG_ERR, "%s(): %s", func, tac_strerror(h));
lib/nss_tacplus/nss_tacplus.c
48
struct tac_handle **h = p;
lib/nss_tacplus/nss_tacplus.c
50
tac_close(*h);
lib/nss_tacplus/nss_tacplus.c
51
free(h);
lib/nss_tacplus/nss_tacplus.c
65
struct tac_handle **h = &sth;
lib/nss_tacplus/nss_tacplus.c
71
if ((h = pthread_getspecific(tacplus_key)) == NULL) {
lib/nss_tacplus/nss_tacplus.c
72
if ((h = calloc(1, sizeof(*h))) == NULL)
lib/nss_tacplus/nss_tacplus.c
74
if ((pthread_setspecific(tacplus_key, h)) != 0) {
lib/nss_tacplus/nss_tacplus.c
75
free(h);
lib/nss_tacplus/nss_tacplus.c
80
if (*h == NULL) {
lib/nss_tacplus/nss_tacplus.c
81
if ((*h = tac_open()) == NULL) {
lib/nss_tacplus/nss_tacplus.c
82
tacplus_error(*h, "tac_open");
lib/nss_tacplus/nss_tacplus.c
85
if (tac_config(*h, NULL) != 0) {
lib/nss_tacplus/nss_tacplus.c
86
tacplus_error(*h, "tac_config");
lib/nss_tacplus/nss_tacplus.c
87
tac_close(*h);
lib/nss_tacplus/nss_tacplus.c
88
*h = NULL;
lib/nss_tacplus/nss_tacplus.c
92
return (*h);
libexec/mknetid/hash.c
55
u_int32_t h;
libexec/mknetid/hash.c
57
#define HASHC h = *key++ + 65599 * h
libexec/mknetid/hash.c
59
h = 0;
libexec/mknetid/hash.c
92
return (h);
libexec/revnetgroup/hash.c
55
u_int32_t h;
libexec/revnetgroup/hash.c
57
#define HASHC h = *key++ + 65599 * h
libexec/revnetgroup/hash.c
59
h = 0;
libexec/revnetgroup/hash.c
92
return (h);
libexec/rtld-elf/rtld.c
1854
Elf32_Word h = 0;
libexec/rtld-elf/rtld.c
1857
h = (h << 4) + *p++;
libexec/rtld-elf/rtld.c
1858
h ^= (h >> 24) & 0xf0;
libexec/rtld-elf/rtld.c
1860
return (h & 0x0fffffff);
libexec/rtld-elf/rtld.c
1870
uint32_t h;
libexec/rtld-elf/rtld.c
1873
h = 5381;
libexec/rtld-elf/rtld.c
1875
h = h * 33 + c;
libexec/rtld-elf/rtld.c
1876
return (h & 0xffffffff);
libexec/rtld-elf/rtld.c
355
#define LD_UTRACE(e, h, mb, ms, r, n) \
libexec/rtld-elf/rtld.c
358
ld_utrace_log(e, h, mb, ms, r, n); \
sbin/camcontrol/util.c
66
struct get_hook *h = (struct get_hook *)hook;
sbin/camcontrol/util.c
69
if (h->got >= h->argc)
sbin/camcontrol/util.c
75
arg = strtol(h->argv[h->got], 0, 0);
sbin/camcontrol/util.c
76
h->got++;
sbin/camcontrol/util.c
89
struct get_hook *h = (struct get_hook *)hook;
sbin/camcontrol/util.c
92
if (h->got >= h->argc)
sbin/camcontrol/util.c
98
arg = h->argv[h->got];
sbin/camcontrol/util.c
99
h->got++;
sbin/devmatch/devmatch.c
75
void *h;
sbin/devmatch/devmatch.c
87
h = malloc(sb.st_size);
sbin/devmatch/devmatch.c
88
if (h == NULL)
sbin/devmatch/devmatch.c
90
if (read(fd, h, sb.st_size) != sb.st_size)
sbin/devmatch/devmatch.c
94
return h;
sbin/growfs/growfs.c
1118
isblock(struct fs *fs, unsigned char *cp, int h)
sbin/growfs/growfs.c
1128
return (cp[h] == 0xff);
sbin/growfs/growfs.c
1130
mask = 0x0f << ((h & 0x1) << 2);
sbin/growfs/growfs.c
1132
return ((cp[h >> 1] & mask) == mask);
sbin/growfs/growfs.c
1134
mask = 0x03 << ((h & 0x3) << 1);
sbin/growfs/growfs.c
1136
return ((cp[h >> 2] & mask) == mask);
sbin/growfs/growfs.c
1138
mask = 0x01 << (h & 0x7);
sbin/growfs/growfs.c
1140
return ((cp[h >> 3] & mask) == mask);
sbin/growfs/growfs.c
1154
clrblock(struct fs *fs, unsigned char *cp, int h)
sbin/growfs/growfs.c
1162
cp[h] = 0;
sbin/growfs/growfs.c
1165
cp[h >> 1] &= ~(0x0f << ((h & 0x1) << 2));
sbin/growfs/growfs.c
1168
cp[h >> 2] &= ~(0x03 << ((h & 0x3) << 1));
sbin/growfs/growfs.c
1171
cp[h >> 3] &= ~(0x01 << (h & 0x7));
sbin/growfs/growfs.c
1188
setblock(struct fs *fs, unsigned char *cp, int h)
sbin/growfs/growfs.c
1196
cp[h] = 0xff;
sbin/growfs/growfs.c
1199
cp[h >> 1] |= (0x0f << ((h & 0x1) << 2));
sbin/growfs/growfs.c
1202
cp[h >> 2] |= (0x03 << ((h & 0x3) << 1));
sbin/growfs/growfs.c
1205
cp[h >> 3] |= (0x01 << (h & 0x7));
sbin/hastd/lzf.c
53
# define IDX(h) ((( h >> (3*8 - HLOG)) - h ) & (HSIZE - 1))
sbin/hastd/lzf.c
55
# define IDX(h) ((( h >> (3*8 - HLOG)) - h*5) & (HSIZE - 1))
sbin/hastd/lzf.c
57
# define IDX(h) ((((h ^ (h << 5)) >> (3*8 - HLOG)) - h*5) & (HSIZE - 1))
sbin/hastd/lzf.c
73
# define IDX(h) ((h) & (HSIZE - 1))
sbin/ipf/ippool/ippool_y.y
111
| table role ipfhash eol { iphtent_t *h;
sbin/ipf/ippool/ippool_y.y
115
while ((h = $3) != NULL) {
sbin/ipf/ippool/ippool_y.y
116
$3 = h->ipe_next;
sbin/ipf/ippool/ippool_y.y
117
free(h);
sbin/ipf/ippool/ippool_y.y
123
{ iphtent_t *h;
sbin/ipf/ippool/ippool_y.y
129
while ((h = $4) != NULL) {
sbin/ipf/ippool/ippool_y.y
130
$4 = h->ipe_next;
sbin/ipf/ippool/ippool_y.y
131
free(h);
sbin/ipf/ippool/ippool_y.y
482
{ iphtent_t *h;
sbin/ipf/ippool/ippool_y.y
488
while ((h = ipht.iph_list) != NULL) {
sbin/ipf/ippool/ippool_y.y
489
ipht.iph_list = h->ipe_next;
sbin/ipf/ippool/ippool_y.y
490
free(h);
sbin/ipf/ippool/ippool_y.y
498
{ iphtent_t *h;
sbin/ipf/ippool/ippool_y.y
506
while ((h = ipht.iph_list) != NULL) {
sbin/ipf/ippool/ippool_y.y
507
ipht.iph_list = h->ipe_next;
sbin/ipf/ippool/ippool_y.y
508
free(h);
sbin/ipf/ippool/ippool_y.y
676
iphtent_t *htop, *hbot, *h;
sbin/ipf/ippool/ippool_y.y
697
h = calloc(1, sizeof(*h));
sbin/ipf/ippool/ippool_y.y
698
if (h == NULL)
sbin/ipf/ippool/ippool_y.y
701
h->ipe_family = a->al_family;
sbin/ipf/ippool/ippool_y.y
702
h->ipe_addr = a->al_i6addr;
sbin/ipf/ippool/ippool_y.y
703
h->ipe_mask = a->al_i6mask;
sbin/ipf/ippool/ippool_y.y
706
hbot->ipe_next = h;
sbin/ipf/ippool/ippool_y.y
708
htop = h;
sbin/ipf/ippool/ippool_y.y
709
hbot = h;
sbin/ipf/ipsend/ipsend.c
140
} h;
sbin/ipf/ipsend/ipsend.c
146
ph.h.len = htons(len);
sbin/ipf/ipsend/ipsend.c
147
ph.h.ttl = 0;
sbin/ipf/ipsend/ipsend.c
148
ph.h.proto = IPPROTO_UDP;
sbin/ipf/ipsend/ipsend.c
149
ph.h.src = ip->ip_src.s_addr;
sbin/ipf/ipsend/ipsend.c
150
ph.h.dst = ip->ip_dst.s_addr;
sbin/ipf/libipf/gethost.c
15
struct hostent *h;
sbin/ipf/libipf/gethost.c
39
h = gethostbyname(name);
sbin/ipf/libipf/gethost.c
40
if (h != NULL) {
sbin/ipf/libipf/gethost.c
41
if ((h->h_addr != NULL) &&
sbin/ipf/libipf/gethost.c
42
(h->h_length == sizeof(addr))) {
sbin/ipf/libipf/gethost.c
43
bcopy(h->h_addr, (char *)&addr, sizeof(addr));
sbin/mount_cd9660/mount_cd9660.c
201
struct ioc_toc_header h;
sbin/mount_cd9660/mount_cd9660.c
208
if (ioctl(fd, CDIOREADTOCHEADER, &h) == -1) {
sbin/mount_cd9660/mount_cd9660.c
213
ntocentries = h.ending_track - h.starting_track + 1;
sbin/newfs/mkfs.c
1109
isblock(struct fs *fs, unsigned char *cp, int h)
sbin/newfs/mkfs.c
1115
return (cp[h] == 0xff);
sbin/newfs/mkfs.c
1117
mask = 0x0f << ((h & 0x1) << 2);
sbin/newfs/mkfs.c
1118
return ((cp[h >> 1] & mask) == mask);
sbin/newfs/mkfs.c
1120
mask = 0x03 << ((h & 0x3) << 1);
sbin/newfs/mkfs.c
1121
return ((cp[h >> 2] & mask) == mask);
sbin/newfs/mkfs.c
1123
mask = 0x01 << (h & 0x7);
sbin/newfs/mkfs.c
1124
return ((cp[h >> 3] & mask) == mask);
sbin/newfs/mkfs.c
1135
clrblock(struct fs *fs, unsigned char *cp, int h)
sbin/newfs/mkfs.c
1139
cp[h] = 0;
sbin/newfs/mkfs.c
1142
cp[h >> 1] &= ~(0x0f << ((h & 0x1) << 2));
sbin/newfs/mkfs.c
1145
cp[h >> 2] &= ~(0x03 << ((h & 0x3) << 1));
sbin/newfs/mkfs.c
1148
cp[h >> 3] &= ~(0x01 << (h & 0x7));
sbin/newfs/mkfs.c
1160
setblock(struct fs *fs, unsigned char *cp, int h)
sbin/newfs/mkfs.c
1164
cp[h] = 0xff;
sbin/newfs/mkfs.c
1167
cp[h >> 1] |= (0x0f << ((h & 0x1) << 2));
sbin/newfs/mkfs.c
1170
cp[h >> 2] |= (0x03 << ((h & 0x3) << 1));
sbin/newfs/mkfs.c
1173
cp[h >> 3] |= (0x01 << (h & 0x7));
sbin/newfs_msdos/newfs_msdos.c
267
const char *h;
sbin/newfs_msdos/newfs_msdos.c
274
fprintf(stderr, "\t-%c %s\n", opts[i].o, opts[i].h);
sbin/nvmecontrol/comnd.c
292
void *h;
sbin/nvmecontrol/comnd.c
303
if ((h = dlopen(path, RTLD_NOW | RTLD_GLOBAL)) == NULL)
sbin/nvmecontrol/comnd.c
307
cb(argp, h);
sbin/pfctl/parse.y
1613
struct node_host *h = NULL, *hh;
sbin/pfctl/parse.y
1643
h = calloc(1, sizeof(*h));
sbin/pfctl/parse.y
1644
if (h == NULL)
sbin/pfctl/parse.y
1646
h->addr.type = PF_ADDR_DYNIFTL;
sbin/pfctl/parse.y
1647
set_ipmask(h, 128);
sbin/pfctl/parse.y
1648
if (strlcpy(h->addr.v.ifname, i->ifname,
sbin/pfctl/parse.y
1649
sizeof(h->addr.v.ifname)) >=
sbin/pfctl/parse.y
1650
sizeof(h->addr.v.ifname)) {
sbin/pfctl/parse.y
1651
free(h);
sbin/pfctl/parse.y
1659
bcopy(h, hh, sizeof(*hh));
sbin/pfctl/parse.y
1660
h->addr.iflags = PFI_AFLAG_NETWORK;
sbin/pfctl/parse.y
1662
h = ifa_lookup(j->ifname,
sbin/pfctl/parse.y
1667
if (h != NULL)
sbin/pfctl/parse.y
1669
NULL, NULL, NULL, h, NULL, NULL,
sbin/pfctl/parse.y
1686
h = hh;
sbin/pfctl/parse.y
1688
h = ifa_lookup(i->ifname, 0);
sbin/pfctl/parse.y
1689
if (h != NULL)
sbin/pfctl/parse.y
1692
NULL, h, NULL, NULL, NULL,
sbin/pfctl/parse.y
1762
struct node_host *h, *nh;
sbin/pfctl/parse.y
1781
for (h = ti->host; h != NULL; h = nh) {
sbin/pfctl/parse.y
1782
nh = h->next;
sbin/pfctl/parse.y
1783
free(h);
sbin/pfctl/parse.y
5718
disallow_table(struct node_host *h, const char *fmt)
sbin/pfctl/parse.y
5720
for (; h != NULL; h = h->next)
sbin/pfctl/parse.y
5721
if (h->addr.type == PF_ADDR_TABLE) {
sbin/pfctl/parse.y
5722
yyerror(fmt, h->addr.v.tblname);
sbin/pfctl/parse.y
5729
disallow_urpf_failed(struct node_host *h, const char *fmt)
sbin/pfctl/parse.y
5731
for (; h != NULL; h = h->next)
sbin/pfctl/parse.y
5732
if (h->addr.type == PF_ADDR_URPFFAILED) {
sbin/pfctl/parse.y
5740
disallow_alias(struct node_host *h, const char *fmt)
sbin/pfctl/parse.y
5742
for (; h != NULL; h = h->next)
sbin/pfctl/parse.y
5743
if (DYNIF_MULTIADDR(h->addr)) {
sbin/pfctl/parse.y
5744
yyerror(fmt, h->addr.v.tblname);
sbin/pfctl/parse.y
6646
struct node_host *h;
sbin/pfctl/parse.y
6686
for (h = rs->host; h != NULL; h = h->next) {
sbin/pfctl/parse.y
6690
pa->addr = h->addr;
sbin/pfctl/parse.y
6691
pa->af = h->af;
sbin/pfctl/parse.y
6692
if (h->ifname != NULL) {
sbin/pfctl/parse.y
6693
if (strlcpy(pa->ifname, h->ifname,
sbin/pfctl/parse.y
7087
freehostlist(struct node_host *h)
sbin/pfctl/parse.y
7089
FREE_LIST(struct node_host, h);
sbin/pfctl/pfctl.c
2095
pfctl_read_limits(struct pfctl_handle *h)
sbin/pfctl/pfctl.c
2100
if (pfctl_get_limit(h, i, &limit_curr[i]))
sbin/pfctl/pfctl.c
2146
if ((ret = pfctl_add_addr(pf->h, &pf->paddr, which)) != 0)
sbin/pfctl/pfctl.c
2290
error = pfctl_state_limiter_add(pf->h, &stlim->ioc);
sbin/pfctl/pfctl.c
2326
error = pfctl_source_limiter_add(pf->h, srlim);
sbin/pfctl/pfctl.c
2592
if ((error = pfctl_begin_addrs(pf->h,
sbin/pfctl/pfctl.c
2603
error = pfctl_add_rule_h(pf->h, r, anchor, name, ticket,
sbin/pfctl/pfctl.c
2702
pf.h = pfh;
sbin/pfctl/pfctl.c
3005
if (pfctl_set_limit(pf->h, index, limit)) {
sbin/pfctl/pfctl.c
3051
if (pfctl_set_timeout(pf->h, timeout, seconds)) {
sbin/pfctl/pfctl.c
3277
if (pfctl_set_debug(pf->h, level)) {
sbin/pfctl/pfctl.c
3288
struct node_host *h = NULL, *n = NULL;
sbin/pfctl/pfctl.c
3299
h = ifa_grouplookup(ifname, 0);
sbin/pfctl/pfctl.c
3300
for (n = h; n != NULL; n = n->next)
sbin/pfctl/pfctl.c
3622
pf.h = pfh;
sbin/pfctl/pfctl.c
481
pfctl_clear_stats(struct pfctl_handle *h, int opts)
sbin/pfctl/pfctl.c
484
if ((ret = pfctl_clear_status(h)) != 0)
sbin/pfctl/pfctl.c
509
struct node_host *h = NULL, *n = NULL;
sbin/pfctl/pfctl.c
516
if ((h = ifa_grouplookup(p->pfik_name, 0)) == NULL)
sbin/pfctl/pfctl.c
519
for (n = h; n != NULL; n = n->next) {
sbin/pfctl/pfctl.c
533
struct node_host *h = NULL, *n = NULL;
sbin/pfctl/pfctl.c
540
if ((h = ifa_grouplookup(p->pfik_name, 0)) == NULL)
sbin/pfctl/pfctl.c
543
for (n = h; n != NULL; n = n->next)
sbin/pfctl/pfctl_optimize.c
900
if ((ret = pfctl_get_rules_info_h(pf->h, &rules, PF_PASS, "")) != 0) {
sbin/pfctl/pfctl_optimize.c
914
if (pfctl_get_rule_h(pf->h, nr, rules.ticket, "", PF_PASS,
sbin/pfctl/pfctl_parser.c
1370
struct node_host *h;
sbin/pfctl/pfctl_parser.c
1386
for (h = ti->host; h != NULL; h = h->next) {
sbin/pfctl/pfctl_parser.c
1387
printf(h->not ? " !" : " ");
sbin/pfctl/pfctl_parser.c
1388
print_addr(&h->addr, h->af, 0);
sbin/pfctl/pfctl_parser.c
1419
set_ipmask(struct node_host *h, int bb)
sbin/pfctl/pfctl_parser.c
1425
m = &h->addr.v.a.mask;
sbin/pfctl/pfctl_parser.c
1429
b = h->af == AF_INET ? 32 : 128;
sbin/pfctl/pfctl_parser.c
1443
n = &h->addr.v.a.addr;
sbin/pfctl/pfctl_parser.c
1444
if (h->addr.type == PF_ADDR_ADDRMASK)
sbin/pfctl/pfctl_parser.c
1450
check_netmask(struct node_host *h, sa_family_t af)
sbin/pfctl/pfctl_parser.c
1455
for (n = h; n != NULL; n = n->next) {
sbin/pfctl/pfctl_parser.c
1456
if (h->addr.type == PF_ADDR_TABLE)
sbin/pfctl/pfctl_parser.c
1458
m = &h->addr.v.a.mask;
sbin/pfctl/pfctl_parser.c
1471
gen_dynnode(struct node_host *h, sa_family_t af)
sbin/pfctl/pfctl_parser.c
1475
if (h->addr.type != PF_ADDR_DYNIFTL)
sbin/pfctl/pfctl_parser.c
1480
bcopy(h, n, sizeof(*n));
sbin/pfctl/pfctl_parser.c
1565
struct node_host *n = NULL, *h = NULL;
sbin/pfctl/pfctl_parser.c
1628
if (h == NULL)
sbin/pfctl/pfctl_parser.c
1629
h = n;
sbin/pfctl/pfctl_parser.c
1631
h->tail->next = n;
sbin/pfctl/pfctl_parser.c
1632
h->tail = n;
sbin/pfctl/pfctl_parser.c
1636
iftab = h;
sbin/pfctl/pfctl_parser.c
1749
struct node_host *n, *h = NULL;
sbin/pfctl/pfctl_parser.c
1768
if (h == NULL)
sbin/pfctl/pfctl_parser.c
1769
h = n;
sbin/pfctl/pfctl_parser.c
1771
h->tail->next = n;
sbin/pfctl/pfctl_parser.c
1772
h->tail = n->tail;
sbin/pfctl/pfctl_parser.c
1777
return (h);
sbin/pfctl/pfctl_parser.c
1783
struct node_host *p = NULL, *h = NULL, *n = NULL;
sbin/pfctl/pfctl_parser.c
1791
if ((h = ifa_grouplookup(ifa_name, flags)) != NULL)
sbin/pfctl/pfctl_parser.c
1792
return (h);
sbin/pfctl/pfctl_parser.c
1848
if (h == NULL)
sbin/pfctl/pfctl_parser.c
1849
h = n;
sbin/pfctl/pfctl_parser.c
1851
h->tail->next = n;
sbin/pfctl/pfctl_parser.c
1852
h->tail = n;
sbin/pfctl/pfctl_parser.c
1855
return (h);
sbin/pfctl/pfctl_parser.c
1883
struct node_host *h = NULL;
sbin/pfctl/pfctl_parser.c
1902
if ((h = host_ip(ps, mask)) == NULL &&
sbin/pfctl/pfctl_parser.c
1903
(h = host_if(ps, mask)) == NULL &&
sbin/pfctl/pfctl_parser.c
1904
(h = host_dns(ps, mask, (opts & PF_OPT_NODNS))) == NULL) {
sbin/pfctl/pfctl_parser.c
1911
return (h);
sbin/pfctl/pfctl_parser.c
1917
struct node_host *n, *h = NULL;
sbin/pfctl/pfctl_parser.c
1947
h = ifa_lookup(ps, flags);
sbin/pfctl/pfctl_parser.c
1949
for (n = h; n != NULL; n = n->next)
sbin/pfctl/pfctl_parser.c
1955
return (h);
sbin/pfctl/pfctl_parser.c
1962
struct node_host *h = NULL;
sbin/pfctl/pfctl_parser.c
1964
h = calloc(1, sizeof(*h));
sbin/pfctl/pfctl_parser.c
1965
if (h == NULL)
sbin/pfctl/pfctl_parser.c
1969
h->af = AF_INET;
sbin/pfctl/pfctl_parser.c
1970
if (inet_net_pton(AF_INET, s, &h->addr.v.a.addr.v4,
sbin/pfctl/pfctl_parser.c
1971
sizeof(h->addr.v.a.addr.v4)) != -1)
sbin/pfctl/pfctl_parser.c
1980
h->af = res->ai_family;
sbin/pfctl/pfctl_parser.c
1981
copy_satopfaddr(&h->addr.v.a.addr, res->ai_addr);
sbin/pfctl/pfctl_parser.c
1982
if (h->af == AF_INET6)
sbin/pfctl/pfctl_parser.c
1983
h->ifindex =
sbin/pfctl/pfctl_parser.c
1987
free(h);
sbin/pfctl/pfctl_parser.c
1991
set_ipmask(h, mask);
sbin/pfctl/pfctl_parser.c
1992
h->ifname = NULL;
sbin/pfctl/pfctl_parser.c
1993
h->next = NULL;
sbin/pfctl/pfctl_parser.c
1994
h->tail = h;
sbin/pfctl/pfctl_parser.c
1996
return (h);
sbin/pfctl/pfctl_parser.c
2003
struct node_host *n, *h = NULL;
sbin/pfctl/pfctl_parser.c
2048
if (h == NULL)
sbin/pfctl/pfctl_parser.c
2049
h = n;
sbin/pfctl/pfctl_parser.c
2051
h->tail->next = n;
sbin/pfctl/pfctl_parser.c
2052
h->tail = n;
sbin/pfctl/pfctl_parser.c
2059
return (h);
sbin/pfctl/pfctl_parser.c
2071
struct node_host *h, *n;
sbin/pfctl/pfctl_parser.c
2082
h = n;
sbin/pfctl/pfctl_parser.c
2084
free(h);
sbin/pfctl/pfctl_parser.h
96
struct pfctl_handle *h;
sbin/pfilctl/pfilctl.c
104
int j, h;
sbin/pfilctl/pfilctl.c
134
for (i = 0, h = 0; i < plh.pio_nheads; i++) {
sbin/pfilctl/pfilctl.c
137
for (j = 0; j < plh.pio_heads[i].pio_nhooksin; j++, h++)
sbin/pfilctl/pfilctl.c
138
printf(FMTHK, "In", plh.pio_hooks[h].pio_module,
sbin/pfilctl/pfilctl.c
139
plh.pio_hooks[h].pio_ruleset);
sbin/pfilctl/pfilctl.c
140
for (j = 0; j < plh.pio_heads[i].pio_nhooksout; j++, h++)
sbin/pfilctl/pfilctl.c
141
printf(FMTHK, "Out", plh.pio_hooks[h].pio_module,
sbin/pfilctl/pfilctl.c
142
plh.pio_hooks[h].pio_ruleset);
sbin/rcorder/hash.c
143
register struct Hash_Entry **hp, *h, *nexth = NULL;
sbin/rcorder/hash.c
147
for (h = *hp++; h != NULL; h = nexth) {
sbin/rcorder/hash.c
148
nexth = h->next;
sbin/rcorder/hash.c
149
free((char *)h);
sbin/rcorder/hash.c
185
register unsigned h;
sbin/rcorder/hash.c
188
for (h = 0, p = key; *p;)
sbin/rcorder/hash.c
189
h = (h << 5) - h + *p++;
sbin/rcorder/hash.c
191
for (e = t->bucketPtr[h & t->mask]; e != NULL; e = e->next)
sbin/rcorder/hash.c
192
if (e->namehash == h && strcmp(e->name, p) == 0)
sbin/rcorder/hash.c
224
register unsigned h;
sbin/rcorder/hash.c
233
for (h = 0, p = key; *p;)
sbin/rcorder/hash.c
234
h = (h << 5) - h + *p++;
sbin/rcorder/hash.c
237
for (e = t->bucketPtr[h & t->mask]; e != NULL; e = e->next) {
sbin/rcorder/hash.c
238
if (e->namehash == h && strcmp(e->name, p) == 0) {
sbin/rcorder/hash.c
253
hp = &t->bucketPtr[h & t->mask];
sbin/rcorder/hash.c
257
e->namehash = h;
sbin/rcorder/hash.h
105
#define Hash_SetValue(h, val) ((h)->clientData = (ClientData) (val))
sbin/rcorder/hash.h
113
#define Hash_GetKey(h) ((h)->name)
sbin/rcorder/hash.h
97
#define Hash_GetValue(h) ((h)->clientData)
sbin/recoverdisk/recoverdisk.c
673
uint64_t h = big_read;
sbin/recoverdisk/recoverdisk.c
675
while (h > l) {
sbin/recoverdisk/recoverdisk.c
676
h >>= 2;
sbin/recoverdisk/recoverdisk.c
679
medium_read = h;
sbin/route/route_netlink.c
120
nl_helper_init(struct nl_helper *h)
sbin/route/route_netlink.c
122
nl_init_socket(&h->ss_cmd);
sbin/route/route_netlink.c
126
nl_helper_free(struct nl_helper *h)
sbin/route/route_netlink.c
128
snl_free(&h->ss_cmd);
sbin/route/route_netlink.c
142
rtmsg_nl_int(struct nl_helper *h, int cmd, int rtm_flags, int fib, int rtm_addrs,
sbin/route/route_netlink.c
145
struct snl_state *ss = &h->ss_cmd;
sbin/route/route_netlink.c
278
print_getmsg(h, hdr, dst);
sbin/route/route_netlink.c
305
struct nl_helper h = {};
sbin/route/route_netlink.c
307
nl_helper_init(&h);
sbin/route/route_netlink.c
308
int error = rtmsg_nl_int(&h, cmd, rtm_flags, fib, rtm_addrs, so, rt_metrics);
sbin/route/route_netlink.c
309
nl_helper_free(&h);
sbin/route/route_netlink.c
315
get_ifdata(struct nl_helper *h, uint32_t ifindex, struct snl_parsed_link_simple *link)
sbin/route/route_netlink.c
317
struct snl_state *ss = &h->ss_cmd;
sbin/route/route_netlink.c
346
print_getmsg(struct nl_helper *h, struct nlmsghdr *hdr, struct sockaddr *dst)
sbin/route/route_netlink.c
348
struct snl_state *ss = &h->ss_cmd;
sbin/route/route_netlink.c
355
get_ifdata(h, r.rta_oif, &link);
sbin/route/route_netlink.c
394
print_prefix(struct nl_helper *h, char *buf, int bufsize, struct sockaddr *sa, int plen)
sbin/route/route_netlink.c
424
get_ifdata(h, sin6->sin6_scope_id, &link);
sbin/route/route_netlink.c
43
static void print_getmsg(struct nl_helper *h, struct nlmsghdr *hdr,
sbin/route/route_netlink.c
45
static void print_nlmsg(struct nl_helper *h, struct nlmsghdr *hdr,
sbin/route/route_netlink.c
472
print_nlmsg_route_nhop(struct nl_helper *h, struct snl_parsed_route *r,
sbin/route/route_netlink.c
478
print_prefix(h, gwbuf, sizeof(gwbuf), nh->gw, -1);
sbin/route/route_netlink.c
485
get_ifdata(h, nh->ifindex, &link);
sbin/route/route_netlink.c
511
print_nlmsg_route(struct nl_helper *h, struct nlmsghdr *hdr,
sbin/route/route_netlink.c
515
struct snl_state *ss = &h->ss_cmd;
sbin/route/route_netlink.c
526
print_prefix(h, buf, sizeof(buf), r.rta_dst, r.rtm_dst_len);
sbin/route/route_netlink.c
553
print_nlmsg_route_nhop(h, &r, nh, first);
sbin/route/route_netlink.c
563
print_nlmsg_route_nhop(h, &r, &nh, true);
sbin/route/route_netlink.c
578
print_nlmsg_link(struct nl_helper *h, struct nlmsghdr *hdr,
sbin/route/route_netlink.c
582
struct snl_state *ss = &h->ss_cmd;
sbin/route/route_netlink.c
602
print_nlmsg_addr(struct nl_helper *h, struct nlmsghdr *hdr,
sbin/route/route_netlink.c
606
struct snl_state *ss = &h->ss_cmd;
sbin/route/route_netlink.c
617
print_prefix(h, buf, sizeof(buf), addr, attrs.ifa_prefixlen);
sbin/route/route_netlink.c
621
get_ifdata(h, attrs.ifa_index, &link);
sbin/route/route_netlink.c
625
print_prefix(h, buf, sizeof(buf), attrs.ifa_address, -1);
sbin/route/route_netlink.c
652
print_nlmsg_neigh(struct nl_helper *h, struct nlmsghdr *hdr,
sbin/route/route_netlink.c
656
struct snl_state *ss = &h->ss_cmd;
sbin/route/route_netlink.c
666
print_prefix(h, buf, sizeof(buf), attrs.nda_dst, -1);
sbin/route/route_netlink.c
670
get_ifdata(h, attrs.nda_ifindex, &link);
sbin/route/route_netlink.c
711
print_nlmsg_generic(struct nl_helper *h, struct nlmsghdr *hdr, struct snl_msg_info *cinfo)
sbin/route/route_netlink.c
719
print_nlmsg(struct nl_helper *h, struct nlmsghdr *hdr, struct snl_msg_info *cinfo)
sbin/route/route_netlink.c
724
print_nlmsg_link(h, hdr, cinfo);
sbin/route/route_netlink.c
728
print_nlmsg_addr(h, hdr, cinfo);
sbin/route/route_netlink.c
732
print_nlmsg_route(h, hdr, cinfo);
sbin/route/route_netlink.c
736
print_nlmsg_neigh(h, hdr, cinfo);
sbin/route/route_netlink.c
739
print_nlmsg_generic(h, hdr, cinfo);
sbin/route/route_netlink.c
743
snl_clear_lb(&h->ss_cmd);
sbin/route/route_netlink.c
750
struct nl_helper h;
sbin/route/route_netlink.c
753
nl_helper_init(&h);
sbin/route/route_netlink.c
787
print_nlmsg(&h, hdr, &attrs);
sbin/route/route_netlink.c
788
snl_clear_lb(&h.ss_cmd);
sbin/route/route_netlink.c
793
nl_helper_free(&h);
sbin/route/route_netlink.c
811
flushroute_one(struct nl_helper *h, struct snl_parsed_route *r)
sbin/route/route_netlink.c
813
struct snl_state *ss = &h->ss_cmd;
sbin/route/route_netlink.c
841
print_nlmsg(h, hdr, &attrs);
sbin/route/route_netlink.c
863
struct nl_helper h = {};
sbin/route/route_netlink.c
882
nl_helper_init(&h);
sbin/route/route_netlink.c
892
print_nlmsg(&h, hdr, &attrs);
sbin/route/route_netlink.c
901
if ((error = flushroute_one(&h, &r)) != 0) {
sbin/route/route_netlink.c
907
snl_clear_lb(&h.ss_cmd);
sbin/route/route_netlink.c
911
nl_helper_free(&h);
sbin/routed/radix.c
804
rn_walktree(struct radix_node_head *h,
sbin/routed/radix.c
810
struct radix_node *rn = h->rnh_treetop;
sbin/savecore/savecore.c
162
printheader(xo_handle_t *xo, const struct kerneldumpheader *h,
sbin/savecore/savecore.c
176
h->architecture);
sbin/savecore/savecore.c
179
dtoh32(h->architectureversion));
sbin/savecore/savecore.c
180
dumplen = dtoh64(h->dumplength);
sbin/savecore/savecore.c
184
dtoh32(h->blocksize));
sbin/savecore/savecore.c
185
switch (h->compression) {
sbin/savecore/savecore.c
200
t = dtoh64(h->dumptime);
sbin/savecore/savecore.c
205
xo_emit_h(xo, "{P: }{Lwc:Hostname}{:hostname/%s}\n", h->hostname);
sbin/savecore/savecore.c
206
xo_emit_h(xo, "{P: }{Lwc:Magic}{:magic/%s}\n", h->magic);
sbin/savecore/savecore.c
208
h->versionstring);
sbin/savecore/savecore.c
210
h->panicstring);
sbin/savecore/savecore.c
211
xo_emit_h(xo, "{P: }{Lwc:Dump Parity}{:dump_parity/%u}\n", h->parity);
share/doc/psd/20.ipctut/dgramread.c
28
#include <sys/types.h>
share/doc/psd/20.ipctut/dgramread.c
29
#include <sys/socket.h>
share/doc/psd/20.ipctut/dgramread.c
30
#include <netinet/in.h>
share/doc/psd/20.ipctut/dgramread.c
31
#include <stdio.h>
share/doc/psd/20.ipctut/dgramsend.c
28
#include <sys/types.h>
share/doc/psd/20.ipctut/dgramsend.c
29
#include <sys/socket.h>
share/doc/psd/20.ipctut/dgramsend.c
30
#include <netinet/in.h>
share/doc/psd/20.ipctut/dgramsend.c
31
#include <netdb.h>
share/doc/psd/20.ipctut/dgramsend.c
32
#include <stdio.h>
share/doc/psd/20.ipctut/pipe.c
28
#include <stdio.h>
share/doc/psd/20.ipctut/socketpair.c
28
#include <sys/types.h>
share/doc/psd/20.ipctut/socketpair.c
29
#include <sys/socket.h>
share/doc/psd/20.ipctut/socketpair.c
30
#include <stdio.h>
share/doc/psd/20.ipctut/strchkread.c
28
#include <sys/types.h>
share/doc/psd/20.ipctut/strchkread.c
29
#include <sys/socket.h>
share/doc/psd/20.ipctut/strchkread.c
30
#include <sys/time.h>
share/doc/psd/20.ipctut/strchkread.c
31
#include <netinet/in.h>
share/doc/psd/20.ipctut/strchkread.c
32
#include <netdb.h>
share/doc/psd/20.ipctut/strchkread.c
33
#include <stdio.h>
share/doc/psd/20.ipctut/streamread.c
28
#include <sys/types.h>
share/doc/psd/20.ipctut/streamread.c
29
#include <sys/socket.h>
share/doc/psd/20.ipctut/streamread.c
30
#include <netinet/in.h>
share/doc/psd/20.ipctut/streamread.c
31
#include <netdb.h>
share/doc/psd/20.ipctut/streamread.c
32
#include <stdio.h>
share/doc/psd/20.ipctut/streamwrite.c
28
#include <sys/types.h>
share/doc/psd/20.ipctut/streamwrite.c
29
#include <sys/socket.h>
share/doc/psd/20.ipctut/streamwrite.c
30
#include <netinet/in.h>
share/doc/psd/20.ipctut/streamwrite.c
31
#include <netdb.h>
share/doc/psd/20.ipctut/streamwrite.c
32
#include <stdio.h>
share/doc/psd/20.ipctut/udgramread.c
28
#include <sys/types.h>
share/doc/psd/20.ipctut/udgramread.c
29
#include <sys/socket.h>
share/doc/psd/20.ipctut/udgramread.c
30
#include <sys/un.h>
share/doc/psd/20.ipctut/udgramread.c
40
#include <stdio.h>
share/doc/psd/20.ipctut/udgramsend.c
28
#include <sys/types.h>
share/doc/psd/20.ipctut/udgramsend.c
29
#include <sys/socket.h>
share/doc/psd/20.ipctut/udgramsend.c
30
#include <sys/un.h>
share/doc/psd/20.ipctut/udgramsend.c
31
#include <stdio.h>
share/doc/psd/20.ipctut/ustreamread.c
28
#include <sys/types.h>
share/doc/psd/20.ipctut/ustreamread.c
29
#include <sys/socket.h>
share/doc/psd/20.ipctut/ustreamread.c
30
#include <sys/un.h>
share/doc/psd/20.ipctut/ustreamread.c
31
#include <stdio.h>
share/doc/psd/20.ipctut/ustreamwrite.c
28
#include <sys/types.h>
share/doc/psd/20.ipctut/ustreamwrite.c
29
#include <sys/socket.h>
share/doc/psd/20.ipctut/ustreamwrite.c
30
#include <sys/un.h>
share/doc/psd/20.ipctut/ustreamwrite.c
31
#include <stdio.h>
share/examples/scsi_target/scsi_cmds.c
147
struct targ_cdb_handlers *h;
share/examples/scsi_target/scsi_cmds.c
149
for (h = cdb_handlers; h->cmd != ILLEGAL_CDB; h++) {
share/examples/scsi_target/scsi_cmds.c
150
if (a_descr->cdb[0] == h->cmd)
share/examples/scsi_target/scsi_cmds.c
153
last_cmd = h;
stand/common/gfx_fb.c
1360
uint16_t blend, h, l;
stand/common/gfx_fb.c
1369
h = blend >> 8;
stand/common/gfx_fb.c
1371
if (h + l >= 0xFF)
stand/common/gfx_fb.c
1372
h++;
stand/common/gfx_fb.c
1373
return (h);
stand/common/gfx_fb.c
2065
unsigned w, h;
stand/common/gfx_fb.c
2071
h = edid_info->display.max_vertical_image_size;
stand/common/gfx_fb.c
2074
if (w == 0 || h == 0)
stand/common/gfx_fb.c
2080
if ((w == 16 && h == 9) || (w == 16 && h == 10) ||
stand/common/gfx_fb.c
2081
(w == 4 && h == 3) || (w == 5 && h == 4))
stand/common/gfx_fb.c
2088
h = h * 100 / 254;
stand/common/gfx_fb.c
2091
return (w * w + h * h);
stand/common/gfx_fb.c
2178
set_font(teken_unit_t *rows, teken_unit_t *cols, teken_unit_t h, teken_unit_t w)
stand/common/gfx_fb.c
2182
unsigned height = h;
stand/common/gfx_fb.c
2202
font = gfx_get_font(*rows, *cols, h, w);
stand/common/load_elf.c
111
#define CONVERT_SWITCH(h, d, f) \
stand/common/load_elf.c
112
switch ((h)->e_ident[EI_DATA]) { \
stand/common/load_elf.c
1209
unsigned long h = 0;
stand/common/load_elf.c
1213
h = (h << 4) + *p++;
stand/common/load_elf.c
1214
if ((g = h & 0xf0000000) != 0)
stand/common/load_elf.c
1215
h ^= g >> 24;
stand/common/load_elf.c
1216
h &= ~g;
stand/common/load_elf.c
1218
return h;
stand/efi/boot1/proto.c
104
devinfo->devhandle = h;
stand/efi/boot1/proto.c
55
probe_handle(EFI_HANDLE h, EFI_DEVICE_PATH *imgpath)
stand/efi/boot1/proto.c
65
status = OpenProtocolByHandle(h, &DevicePathGUID, (void **)&devpath);
stand/efi/boot1/proto.c
81
status = OpenProtocolByHandle(h, &BlockIoProtocolGUID, (void **)&blkio);
stand/efi/gptboot/proto.c
140
probe_handle(EFI_HANDLE h, EFI_DEVICE_PATH *imgpath)
stand/efi/gptboot/proto.c
148
status = OpenProtocolByHandle(h, &DevicePathGUID, (void **)&devpath);
stand/efi/gptboot/proto.c
171
status = OpenProtocolByHandle(h, &BlockIoProtocolGUID, (void **)&blkio);
stand/efi/gptboot/proto.c
183
devinfo->devhandle = h;
stand/efi/include/efilib.h
69
pdinfo_t *efiblk_get_pdinfo_by_handle(EFI_HANDLE h);
stand/efi/libefi/devpath.c
619
EFI_HANDLE h;
stand/efi/libefi/devpath.c
627
status = BS->LocateDevicePath(&DevicePathGUID, &devpath, &h);
stand/efi/libefi/devpath.c
630
return (h);
stand/efi/libefi/devpath.c
753
EFI_HANDLE h;
stand/efi/libefi/devpath.c
759
h = handles[i];
stand/efi/libefi/devpath.c
760
devpath = efi_lookup_devpath(h);
stand/efi/libefi/devpath.c
765
return (h);
stand/efi/libefi/efinet.c
112
EFI_HANDLE h;
stand/efi/libefi/efinet.c
115
h = nif->nif_driver->netif_ifs[nif->nif_unit].dif_private;
stand/efi/libefi/efinet.c
121
status = BS->OpenProtocol(h, &sn_guid, (void **)&net,
stand/efi/libefi/efinet.c
275
EFI_HANDLE h;
stand/efi/libefi/efinet.c
287
h = nif->nif_driver->netif_ifs[nif->nif_unit].dif_private;
stand/efi/libefi/efinet.c
288
status = OpenProtocolByHandle(h, &sn_guid, (void **)&nif->nif_devdata);
stand/efi/libefi/efinet.c
446
EFI_HANDLE h;
stand/efi/libefi/efinet.c
453
for (unit = 0, h = efi_find_handle(&efinet_dev, 0);
stand/efi/libefi/efinet.c
454
h != NULL; h = efi_find_handle(&efinet_dev, ++unit)) {
stand/efi/libefi/efinet.c
457
text = efi_devpath_name(efi_lookup_devpath(h));
stand/efi/libefi/efipart.c
154
EFI_HANDLE h;
stand/efi/libefi/efipart.c
158
status = BS->LocateDevicePath(&blkio_guid, &devp, &h);
stand/efi/libefi/efipart.c
161
return (efiblk_get_pdinfo_by_handle(h));
stand/efi/libefi/efipart.c
165
same_handle(pdinfo_t *pd, EFI_HANDLE h)
stand/efi/libefi/efipart.c
168
return (pd->pd_handle == h || pd->pd_alias == h);
stand/efi/libefi/efipart.c
172
efiblk_get_pdinfo_by_handle(EFI_HANDLE h)
stand/efi/libefi/efipart.c
180
if (same_handle(dp, h))
stand/efi/libefi/efipart.c
183
if (same_handle(pp, h))
stand/efi/libefi/efipart.c
188
if (same_handle(dp, h))
stand/efi/libefi/efipart.c
191
if (same_handle(pp, h))
stand/efi/libefi/efipart.c
196
if (same_handle(dp, h))
stand/efi/libefi/efipart.c
239
efipart_ignore_device(EFI_HANDLE h, EFI_BLOCK_IO *blkio,
stand/efi/libefi/efipart.c
254
efi_close_devpath(h);
stand/efi/libefi/efipart.c
261
efi_close_devpath(h);
stand/efi/libefi/efipart.c
309
efi_close_devpath(h);
stand/efi/libefi/efipart.c
339
efi_close_devpath(h);
stand/efi/libefi/efipart.c
792
EFI_HANDLE h;
stand/efi/libefi/efipart.c
806
h = pd->pd_handle;
stand/efi/libefi/efipart.c
808
text = efi_devpath_name(efi_lookup_devpath(h));
stand/efi/libefi/efipart.c
819
status = OpenProtocolByHandle(h, &blkio_guid, (void **)&blkio);
stand/efi/libefi/handles.c
101
efi_handle_update_dev(EFI_HANDLE h, struct devsw *dev, int unit,
stand/efi/libefi/handles.c
107
if (entry[idx].handle != h)
stand/efi/libefi/handles.c
82
efi_handle_lookup(EFI_HANDLE h, struct devsw **dev, int *unit, uint64_t *extra)
stand/efi/libefi/handles.c
87
if (entry[idx].handle != h && entry[idx].alias != h)
stand/efi/loader/framebuffer.c
514
efifb_gop_get_edid(EFI_HANDLE h)
stand/efi/loader/framebuffer.c
524
status = BS->OpenProtocol(h, guid, (void **)&edid, IH, NULL,
stand/efi/loader/framebuffer.c
529
status = BS->OpenProtocol(h, guid, (void **)&edid, IH, NULL,
stand/efi/loader/main.c
1089
parse_loader_efi_config(EFI_HANDLE h, const char *env_fn)
stand/efi/loader/main.c
1096
dp = efiblk_get_pdinfo_by_handle(h);
stand/efi/loader/main.c
540
EFI_HANDLE h;
stand/efi/loader/main.c
684
h = efi_devpath_handle(devpath);
stand/efi/loader/main.c
685
if (h == NULL)
stand/efi/loader/main.c
691
if (efi_handle_lookup(h, &dev, &unit, &extra) == 0) {
stand/efi/loader/main.c
697
devpath = efi_lookup_devpath(h);
stand/kshim/bsd_busspace.c
100
bus_space_write_multi_4(bus_space_tag_t t, bus_space_handle_t h,
stand/kshim/bsd_busspace.c
103
h += offset;
stand/kshim/bsd_busspace.c
106
*((volatile uint32_t *)h) = *datap++;
stand/kshim/bsd_busspace.c
111
bus_space_write_1(bus_space_tag_t t, bus_space_handle_t h,
stand/kshim/bsd_busspace.c
114
*((volatile uint8_t *)(h + offset)) = data;
stand/kshim/bsd_busspace.c
118
bus_space_write_2(bus_space_tag_t t, bus_space_handle_t h,
stand/kshim/bsd_busspace.c
121
*((volatile uint16_t *)(h + offset)) = data;
stand/kshim/bsd_busspace.c
125
bus_space_write_4(bus_space_tag_t t, bus_space_handle_t h,
stand/kshim/bsd_busspace.c
128
*((volatile uint32_t *)(h + offset)) = data;
stand/kshim/bsd_busspace.c
132
bus_space_read_1(bus_space_tag_t t, bus_space_handle_t h, bus_size_t offset)
stand/kshim/bsd_busspace.c
134
return (*((volatile uint8_t *)(h + offset)));
stand/kshim/bsd_busspace.c
138
bus_space_read_2(bus_space_tag_t t, bus_space_handle_t h, bus_size_t offset)
stand/kshim/bsd_busspace.c
140
return (*((volatile uint16_t *)(h + offset)));
stand/kshim/bsd_busspace.c
144
bus_space_read_4(bus_space_tag_t t, bus_space_handle_t h, bus_size_t offset)
stand/kshim/bsd_busspace.c
146
return (*((volatile uint32_t *)(h + offset)));
stand/kshim/bsd_busspace.c
150
bus_space_read_region_1(bus_space_tag_t t, bus_space_handle_t h,
stand/kshim/bsd_busspace.c
153
h += offset;
stand/kshim/bsd_busspace.c
156
*datap++ = *((volatile uint8_t *)h);
stand/kshim/bsd_busspace.c
157
h += 1;
stand/kshim/bsd_busspace.c
162
bus_space_write_region_1(bus_space_tag_t t, bus_space_handle_t h,
stand/kshim/bsd_busspace.c
165
h += offset;
stand/kshim/bsd_busspace.c
168
*((volatile uint8_t *)h) = *datap++;
stand/kshim/bsd_busspace.c
169
h += 1;
stand/kshim/bsd_busspace.c
174
bus_space_read_region_4(bus_space_tag_t t, bus_space_handle_t h,
stand/kshim/bsd_busspace.c
179
h += offset;
stand/kshim/bsd_busspace.c
182
*(struct burst *)datap = *((/* volatile */ struct burst *)h);
stand/kshim/bsd_busspace.c
184
h += BURST * 4;
stand/kshim/bsd_busspace.c
190
*datap++ = *((volatile uint32_t *)h);
stand/kshim/bsd_busspace.c
191
h += 4;
stand/kshim/bsd_busspace.c
196
bus_space_write_region_4(bus_space_tag_t t, bus_space_handle_t h,
stand/kshim/bsd_busspace.c
201
h += offset;
stand/kshim/bsd_busspace.c
204
*((/* volatile */ struct burst *)h) = *(struct burst *)datap;
stand/kshim/bsd_busspace.c
206
h += BURST * 4;
stand/kshim/bsd_busspace.c
212
*((volatile uint32_t *)h) = *datap++;
stand/kshim/bsd_busspace.c
213
h += 4;
stand/kshim/bsd_busspace.c
49
bus_space_read_multi_1(bus_space_tag_t t, bus_space_handle_t h,
stand/kshim/bsd_busspace.c
53
*datap++ = bus_space_read_1(t, h, offset);
stand/kshim/bsd_busspace.c
58
bus_space_read_multi_2(bus_space_tag_t t, bus_space_handle_t h,
stand/kshim/bsd_busspace.c
62
*datap++ = bus_space_read_2(t, h, offset);
stand/kshim/bsd_busspace.c
67
bus_space_read_multi_4(bus_space_tag_t t, bus_space_handle_t h,
stand/kshim/bsd_busspace.c
70
h += offset;
stand/kshim/bsd_busspace.c
73
*datap++ = *((volatile uint32_t *)h);
stand/kshim/bsd_busspace.c
78
bus_space_write_multi_1(bus_space_tag_t t, bus_space_handle_t h,
stand/kshim/bsd_busspace.c
84
bus_space_write_1(t, h, offset, temp);
stand/kshim/bsd_busspace.c
89
bus_space_write_multi_2(bus_space_tag_t t, bus_space_handle_t h,
stand/kshim/bsd_busspace.c
95
bus_space_write_2(t, h, offset, temp);
stand/kshim/bsd_kernel.h
499
void bus_space_write_1(bus_space_tag_t t, bus_space_handle_t h, bus_size_t offset, uint8_t data);
stand/kshim/bsd_kernel.h
500
void bus_space_write_2(bus_space_tag_t t, bus_space_handle_t h, bus_size_t offset, uint16_t data);
stand/kshim/bsd_kernel.h
501
void bus_space_write_4(bus_space_tag_t t, bus_space_handle_t h, bus_size_t offset, uint32_t data);
stand/kshim/bsd_kernel.h
503
uint8_t bus_space_read_1(bus_space_tag_t t, bus_space_handle_t h, bus_size_t offset);
stand/kshim/bsd_kernel.h
504
uint16_t bus_space_read_2(bus_space_tag_t t, bus_space_handle_t h, bus_size_t offset);
stand/kshim/bsd_kernel.h
505
uint32_t bus_space_read_4(bus_space_tag_t t, bus_space_handle_t h, bus_size_t offset);
stand/kshim/bsd_kernel.h
507
void bus_space_read_multi_1(bus_space_tag_t t, bus_space_handle_t h, bus_size_t offset, uint8_t *datap, bus_size_t count);
stand/kshim/bsd_kernel.h
508
void bus_space_read_multi_2(bus_space_tag_t t, bus_space_handle_t h, bus_size_t offset, uint16_t *datap, bus_size_t count);
stand/kshim/bsd_kernel.h
509
void bus_space_read_multi_4(bus_space_tag_t t, bus_space_handle_t h, bus_size_t offset, uint32_t *datap, bus_size_t count);
stand/kshim/bsd_kernel.h
511
void bus_space_write_multi_1(bus_space_tag_t t, bus_space_handle_t h, bus_size_t offset, uint8_t *datap, bus_size_t count);
stand/kshim/bsd_kernel.h
512
void bus_space_write_multi_2(bus_space_tag_t t, bus_space_handle_t h, bus_size_t offset, uint16_t *datap, bus_size_t count);
stand/kshim/bsd_kernel.h
513
void bus_space_write_multi_4(bus_space_tag_t t, bus_space_handle_t h, bus_size_t offset, uint32_t *datap, bus_size_t count);
stand/libsa/bootparam.c
122
n_long h[RPC_HEADER_WORDS];
stand/libsa/bootparam.c
235
n_long h[RPC_HEADER_WORDS];
stand/libsa/cd9660.c
197
*len = isonum_711(p->h.length) - 5;
stand/libsa/cd9660.c
220
if (bcmp(sp->h.type, SUSP_PRESENT, 2) != 0)
stand/libsa/cd9660.c
222
if (isonum_711(sp->h.length) != sizeof(ISO_SUSP_PRESENT))
stand/libsa/cd9660.c
56
ISO_SUSP_HEADER h;
stand/libsa/cd9660read.c
123
*len = isonum_711(p->h.length) - 5;
stand/libsa/cd9660read.c
147
if (bcmp(sp->h.type, SUSP_PRESENT, 2) != 0) {
stand/libsa/cd9660read.c
150
if (isonum_711(sp->h.length) != sizeof(ISO_SUSP_PRESENT)) {
stand/libsa/cd9660read.c
49
ISO_SUSP_HEADER h;
stand/libsa/nfs.c
199
uint32_t h[RPC_HEADER_WORDS];
stand/libsa/nfs.c
264
uint32_t h[RPC_HEADER_WORDS];
stand/libsa/nfs.c
335
uint32_t h[RPC_HEADER_WORDS];
stand/libsa/nfs.c
408
uint32_t h[RPC_HEADER_WORDS];
stand/libsa/nfs.c
782
uint32_t h[RPC_HEADER_WORDS];
stand/libsa/rpc.c
379
n_long h[RPC_HEADER_WORDS];
stand/libsa/tftp.c
145
static int tftp_getnextblock(struct tftp_handle *h);
stand/libsa/tftp.c
149
tftp_senderr(struct tftp_handle *h, u_short errcode, const char *msg)
stand/libsa/tftp.c
171
sendudp(h->iodesc, &wbuf.t, wtail - (char *)&wbuf.t);
stand/libsa/tftp.c
175
tftp_sendack(struct tftp_handle *h, u_short block)
stand/libsa/tftp.c
189
__func__, h->iodesc->myport, h->iodesc->xid, block));
stand/libsa/tftp.c
191
sendudp(h->iodesc, &wbuf.t, wtail - (char *)&wbuf.t);
stand/libsa/tftp.c
199
struct tftp_handle *h;
stand/libsa/tftp.c
208
h = extra->tftp_handle;
stand/libsa/tftp.c
229
tftp_sendack(h, block);
stand/libsa/tftp.c
289
if (tftp_parse_oack(h, t->th_u.tu_stuff, tftp_oack_len) != 0) {
stand/libsa/tftp.c
290
tftp_senderr(h, EOPTNEG, "Malformed OACK");
stand/libsa/tftp.c
308
tftp_makereq(struct tftp_handle *h)
stand/libsa/tftp.c
329
tftp_set_blksize(h, tftp_blksize);
stand/libsa/tftp.c
334
l = strlen(h->path);
stand/libsa/tftp.c
344
bcopy(h->path, wtail, l + 1);
stand/libsa/tftp.c
350
blksize_l = sprintf(wtail, "%d", h->tftp_blksize);
stand/libsa/tftp.c
357
h->iodesc->myport = htons(h->port + (getsecs() & 0x3ff));
stand/libsa/tftp.c
358
h->iodesc->destport = htons(IPPORT_TFTP);
stand/libsa/tftp.c
359
h->iodesc->xid = 1; /* expected block */
stand/libsa/tftp.c
361
h->currblock = 0;
stand/libsa/tftp.c
362
h->islastblock = 0;
stand/libsa/tftp.c
363
h->validsize = 0;
stand/libsa/tftp.c
366
__func__, h->path, h->id, h->port, ntohs(h->iodesc->myport)));
stand/libsa/tftp.c
368
recv_extra.tftp_handle = h;
stand/libsa/tftp.c
369
res = sendrecv(h->iodesc, &sendudp, &wbuf.t, wtail - (char *)&wbuf.t,
stand/libsa/tftp.c
373
__func__, h->path, h->id, errno));
stand/libsa/tftp.c
378
free(h->pkt);
stand/libsa/tftp.c
379
h->pkt = pkt;
stand/libsa/tftp.c
380
h->tftp_hdr = t;
stand/libsa/tftp.c
383
return (tftp_getnextblock(h));
stand/libsa/tftp.c
386
h->tftp_blksize = SEGSIZE;
stand/libsa/tftp.c
390
h->currblock = 1;
stand/libsa/tftp.c
391
h->validsize = res;
stand/libsa/tftp.c
392
h->islastblock = 0;
stand/libsa/tftp.c
393
if (res < h->tftp_blksize) {
stand/libsa/tftp.c
394
h->islastblock = 1; /* very short file */
stand/libsa/tftp.c
395
tftp_sendack(h, h->currblock);
stand/libsa/tftp.c
396
h->lastacksent = true;
stand/libsa/tftp.c
409
tftp_getnextblock(struct tftp_handle *h)
stand/libsa/tftp.c
423
wbuf.t.th_block = htons((u_short)h->currblock);
stand/libsa/tftp.c
426
h->iodesc->xid = h->currblock + 1; /* expected block */
stand/libsa/tftp.c
429
__func__, h->path, h->id, h->port,
stand/libsa/tftp.c
430
ntohs(h->iodesc->myport), h->iodesc->xid));
stand/libsa/tftp.c
433
recv_extra.tftp_handle = h;
stand/libsa/tftp.c
434
res = sendrecv(h->iodesc, &sendudp, &wbuf.t, wtail - (char *)&wbuf.t,
stand/libsa/tftp.c
439
__func__, h->path, h->id, errno));
stand/libsa/tftp.c
444
free(h->pkt);
stand/libsa/tftp.c
445
h->pkt = pkt;
stand/libsa/tftp.c
446
h->tftp_hdr = t;
stand/libsa/tftp.c
447
h->currblock++;
stand/libsa/tftp.c
448
h->validsize = res;
stand/libsa/tftp.c
449
if (res < h->tftp_blksize)
stand/libsa/tftp.c
450
h->islastblock = 1; /* EOF */
stand/libsa/tftp.c
453
__func__, h->path, h->id, res, h->tftp_blksize, h->islastblock));
stand/libsa/tftp.c
455
if (h->islastblock) {
stand/libsa/tftp.c
457
tftp_sendack(h, h->currblock);
stand/libsa/tftp.c
782
tftp_set_blksize(struct tftp_handle *h, const char *str)
stand/libsa/tftp.c
788
if (h == NULL || str == NULL)
stand/libsa/tftp.c
801
h->tftp_blksize = new_blksize;
stand/libsa/tftp.c
832
tftp_parse_oack(struct tftp_handle *h, char *buf, size_t len)
stand/libsa/tftp.c
859
orig_blksize = h->tftp_blksize;
stand/libsa/tftp.c
870
tftp_set_blksize(h, tftp_options[i + 1]);
stand/libsa/tftp.c
875
h->tftp_tsize = tsize;
stand/libsa/tftp.c
892
h->tftp_blksize = SEGSIZE;
stand/libsa/tftp.c
893
} else if (h->tftp_blksize > orig_blksize) {
stand/libsa/tftp.c
898
printf("unexpected blksize %u\n", h->tftp_blksize);
stand/libsa/tftp.c
902
DEBUG_PRINTF(2, ("tftp_blksize: %u\n", h->tftp_blksize));
stand/libsa/tftp.c
903
DEBUG_PRINTF(2, ("tftp_tsize: %lu\n", h->tftp_tsize));
stand/libsa/uuid_from_string.c
52
int i, h;
stand/libsa/uuid_from_string.c
58
h = hex2int(s[i]);
stand/libsa/uuid_from_string.c
59
if (h == 16) {
stand/libsa/uuid_from_string.c
63
v = (v << 4) | h;
stand/libsa/zfs/zfsimpl.c
2758
zap_deref_leaf(fat_zap_t *zap, uint64_t h, zap_leaf_t **lp)
stand/libsa/zfs/zfsimpl.c
2763
idx = ZAP_HASH_IDX(h, zap->zap_phys->zap_ptrtbl.zt_shift);
stand/libsa/zfs/zfsimpl.c
2771
#define LEAF_HASH(l, h) \
stand/libsa/zfs/zfsimpl.c
2773
((h) >> \
stand/libsa/zfs/zfsimpl.c
2775
#define LEAF_HASH_ENTPTR(l, h) (&(l)->l_phys->l_hash[LEAF_HASH(l, h)])
stand/userboot/test/test.c
271
test_close(void *arg, void *h)
stand/userboot/test/test.c
273
struct test_file *tf = h;
stand/userboot/test/test.c
285
test_isdir(void *arg, void *h)
stand/userboot/test/test.c
287
struct test_file *tf = h;
stand/userboot/test/test.c
293
test_read(void *arg, void *h, void *dst, size_t size, size_t *resid_return)
stand/userboot/test/test.c
295
struct test_file *tf = h;
stand/userboot/test/test.c
308
test_readdir(void *arg, void *h, uint32_t *fileno_return, uint8_t *type_return,
stand/userboot/test/test.c
311
struct test_file *tf = h;
stand/userboot/test/test.c
335
test_seek(void *arg, void *h, uint64_t offset, int whence)
stand/userboot/test/test.c
337
struct test_file *tf = h;
stand/userboot/test/test.c
347
test_stat(void *arg, void *h, struct stat *stp)
stand/userboot/test/test.c
349
struct test_file *tf = h;
stand/userboot/test/test.c
573
void *h;
stand/userboot/test/test.c
609
h = dlopen(userboot_obj, RTLD_LOCAL);
stand/userboot/test/test.c
610
if (!h) {
stand/userboot/test/test.c
614
func = dlsym(h, "loader_main");
stand/userboot/userboot.h
108
int (*readdir)(void *arg, void *h, uint32_t *fileno_return,
stand/userboot/userboot.h
114
int (*seek)(void *arg, void *h, uint64_t offset,
stand/userboot/userboot.h
120
int (*stat)(void *arg, void *h, struct stat *stp);
stand/userboot/userboot.h
87
int (*close)(void *arg, void *h);
stand/userboot/userboot.h
92
int (*isdir)(void *arg, void *h);
stand/userboot/userboot.h
98
int (*read)(void *arg, void *h, void *dst, size_t size,
sys/arm/allwinner/if_emac.c
219
uint32_t h, *hashes = arg;
sys/arm/allwinner/if_emac.c
221
h = ether_crc32_be(LLADDR(sdl), ETHER_ADDR_LEN) >> 26;
sys/arm/allwinner/if_emac.c
222
hashes[h >> 5] |= 1 << (h & 0x1f);
sys/arm/arm/bus_space_generic.c
91
generic_bs_unmap(bus_space_tag_t t, bus_space_handle_t h, bus_size_t size)
sys/arm/arm/bus_space_generic.c
94
pmap_unmapdev((void *)h, size);
sys/arm/include/bus.h
261
#define __bs_nonsingle(type, sz, t, h, o, a, c) \
sys/arm/include/bus.h
262
(*(t)->__bs_opname(type,sz))((t), h, o, a, c)
sys/arm/include/bus.h
263
#define __bs_set(type, sz, t, h, o, v, c) \
sys/arm/include/bus.h
264
(*(t)->__bs_opname(type,sz))((t), h, o, v, c)
sys/arm/include/bus.h
269
#define __bs_rs_s(sz, t, h, o) \
sys/arm/include/bus.h
270
(*(t)->__bs_opname_s(r,sz))((t), h, o)
sys/arm/include/bus.h
271
#define __bs_ws_s(sz, t, h, o, v) \
sys/arm/include/bus.h
272
(*(t)->__bs_opname_s(w,sz))((t), h, o, v)
sys/arm/include/bus.h
273
#define __bs_nonsingle_s(type, sz, t, h, o, a, c) \
sys/arm/include/bus.h
274
(*(t)->__bs_opname_s(type,sz))((t), h, o, a, c)
sys/arm/include/bus.h
278
IFN(bus_space_tag_t t, bus_space_handle_t h, bus_size_t o) \
sys/arm/include/bus.h
282
return (*(volatile TYP *)(h + o)); \
sys/arm/include/bus.h
284
return (t->MBR(t, h, o)); \
sys/arm/include/bus.h
289
IFN(bus_space_tag_t t, bus_space_handle_t h, bus_size_t o, TYP v)\
sys/arm/include/bus.h
293
*(volatile TYP *)(h + o) = v; \
sys/arm/include/bus.h
295
t->MBR(t, h, o, v); \
sys/arm/include/bus.h
303
#define bus_space_unmap(t, h, s) \
sys/arm/include/bus.h
304
(*(t)->bs_unmap)((t), (h), (s))
sys/arm/include/bus.h
305
#define bus_space_subregion(t, h, o, s, hp) \
sys/arm/include/bus.h
306
(*(t)->bs_subregion)((t), (h), (o), (s), (hp))
sys/arm/include/bus.h
314
#define bus_space_free(t, h, s) \
sys/arm/include/bus.h
315
(*(t)->bs_free)((t), (h), (s))
sys/arm/include/bus.h
320
#define bus_space_barrier(t, h, o, l, f) \
sys/arm/include/bus.h
321
(*(t)->bs_barrier)((t), (h), (o), (l), (f))
sys/arm/include/bus.h
342
#define bus_space_read_multi_1(t, h, o, a, c) \
sys/arm/include/bus.h
343
__bs_nonsingle(rm,1,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
344
#define bus_space_read_multi_2(t, h, o, a, c) \
sys/arm/include/bus.h
345
__bs_nonsingle(rm,2,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
346
#define bus_space_read_multi_4(t, h, o, a, c) \
sys/arm/include/bus.h
347
__bs_nonsingle(rm,4,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
348
#define bus_space_read_multi_8(t, h, o, a, c) \
sys/arm/include/bus.h
349
__bs_nonsingle(rm,8,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
351
#define bus_space_read_multi_stream_1(t, h, o, a, c) \
sys/arm/include/bus.h
352
__bs_nonsingle_s(rm,1,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
353
#define bus_space_read_multi_stream_2(t, h, o, a, c) \
sys/arm/include/bus.h
354
__bs_nonsingle_s(rm,2,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
355
#define bus_space_read_multi_stream_4(t, h, o, a, c) \
sys/arm/include/bus.h
356
__bs_nonsingle_s(rm,4,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
357
#define bus_space_read_multi_stream_8(t, h, o, a, c) \
sys/arm/include/bus.h
358
__bs_nonsingle_s(rm,8,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
363
#define bus_space_read_region_1(t, h, o, a, c) \
sys/arm/include/bus.h
364
__bs_nonsingle(rr,1,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
365
#define bus_space_read_region_2(t, h, o, a, c) \
sys/arm/include/bus.h
366
__bs_nonsingle(rr,2,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
367
#define bus_space_read_region_4(t, h, o, a, c) \
sys/arm/include/bus.h
368
__bs_nonsingle(rr,4,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
369
#define bus_space_read_region_8(t, h, o, a, c) \
sys/arm/include/bus.h
370
__bs_nonsingle(rr,8,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
372
#define bus_space_read_region_stream_1(t, h, o, a, c) \
sys/arm/include/bus.h
373
__bs_nonsingle_s(rr,1,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
374
#define bus_space_read_region_stream_2(t, h, o, a, c) \
sys/arm/include/bus.h
375
__bs_nonsingle_s(rr,2,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
376
#define bus_space_read_region_stream_4(t, h, o, a, c) \
sys/arm/include/bus.h
377
__bs_nonsingle_s(rr,4,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
378
#define bus_space_read_region_stream_8(t, h, o, a, c) \
sys/arm/include/bus.h
379
__bs_nonsingle_s(rr,8,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
397
#define bus_space_write_multi_1(t, h, o, a, c) \
sys/arm/include/bus.h
398
__bs_nonsingle(wm,1,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
399
#define bus_space_write_multi_2(t, h, o, a, c) \
sys/arm/include/bus.h
400
__bs_nonsingle(wm,2,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
401
#define bus_space_write_multi_4(t, h, o, a, c) \
sys/arm/include/bus.h
402
__bs_nonsingle(wm,4,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
403
#define bus_space_write_multi_8(t, h, o, a, c) \
sys/arm/include/bus.h
404
__bs_nonsingle(wm,8,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
406
#define bus_space_write_multi_stream_1(t, h, o, a, c) \
sys/arm/include/bus.h
407
__bs_nonsingle_s(wm,1,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
408
#define bus_space_write_multi_stream_2(t, h, o, a, c) \
sys/arm/include/bus.h
409
__bs_nonsingle_s(wm,2,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
410
#define bus_space_write_multi_stream_4(t, h, o, a, c) \
sys/arm/include/bus.h
411
__bs_nonsingle_s(wm,4,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
412
#define bus_space_write_multi_stream_8(t, h, o, a, c) \
sys/arm/include/bus.h
413
__bs_nonsingle_s(wm,8,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
418
#define bus_space_write_region_1(t, h, o, a, c) \
sys/arm/include/bus.h
419
__bs_nonsingle(wr,1,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
420
#define bus_space_write_region_2(t, h, o, a, c) \
sys/arm/include/bus.h
421
__bs_nonsingle(wr,2,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
422
#define bus_space_write_region_4(t, h, o, a, c) \
sys/arm/include/bus.h
423
__bs_nonsingle(wr,4,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
424
#define bus_space_write_region_8(t, h, o, a, c) \
sys/arm/include/bus.h
425
__bs_nonsingle(wr,8,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
427
#define bus_space_write_region_stream_1(t, h, o, a, c) \
sys/arm/include/bus.h
428
__bs_nonsingle_s(wr,1,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
429
#define bus_space_write_region_stream_2(t, h, o, a, c) \
sys/arm/include/bus.h
430
__bs_nonsingle_s(wr,2,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
431
#define bus_space_write_region_stream_4(t, h, o, a, c) \
sys/arm/include/bus.h
432
__bs_nonsingle_s(wr,4,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
433
#define bus_space_write_region_stream_8(t, h, o, a, c) \
sys/arm/include/bus.h
434
__bs_nonsingle_s(wr,8,(t),(h),(o),(a),(c))
sys/arm/include/bus.h
439
#define bus_space_set_multi_1(t, h, o, v, c) \
sys/arm/include/bus.h
440
__bs_set(sm,1,(t),(h),(o),(v),(c))
sys/arm/include/bus.h
441
#define bus_space_set_multi_2(t, h, o, v, c) \
sys/arm/include/bus.h
442
__bs_set(sm,2,(t),(h),(o),(v),(c))
sys/arm/include/bus.h
443
#define bus_space_set_multi_4(t, h, o, v, c) \
sys/arm/include/bus.h
444
__bs_set(sm,4,(t),(h),(o),(v),(c))
sys/arm/include/bus.h
445
#define bus_space_set_multi_8(t, h, o, v, c) \
sys/arm/include/bus.h
446
__bs_set(sm,8,(t),(h),(o),(v),(c))
sys/arm/include/bus.h
451
#define bus_space_set_region_1(t, h, o, v, c) \
sys/arm/include/bus.h
452
__bs_set(sr,1,(t),(h),(o),(v),(c))
sys/arm/include/bus.h
453
#define bus_space_set_region_2(t, h, o, v, c) \
sys/arm/include/bus.h
454
__bs_set(sr,2,(t),(h),(o),(v),(c))
sys/arm/include/bus.h
455
#define bus_space_set_region_4(t, h, o, v, c) \
sys/arm/include/bus.h
456
__bs_set(sr,4,(t),(h),(o),(v),(c))
sys/arm/include/bus.h
457
#define bus_space_set_region_8(t, h, o, v, c) \
sys/arm/include/bus.h
458
__bs_set(sr,8,(t),(h),(o),(v),(c))
sys/arm/include/bus.h
772
#include <machine/bus_dma.h>
sys/arm/include/cpu.h
664
uint64_t h, h2;
sys/arm/include/cpu.h
668
h = (uint64_t)atomic_load_acq_32(&ccnt_hi[cpu]);
sys/arm/include/cpu.h
679
if (h != h2)
sys/arm/nvidia/drm2/tegra_dc_reg.h
274
#define CURSOR_POSITION(h, v) ((((h) & 0x3fff) << 0) | \
sys/arm/nvidia/drm2/tegra_dc_reg.h
349
#define WIN_POSITION(h, v) ((((h) & 0x1fff) << 0) | \
sys/arm/nvidia/drm2/tegra_dc_reg.h
353
#define WIN_SIZE(h, v) ((((h) & 0x1fff) << 0) | \
sys/arm/nvidia/drm2/tegra_dc_reg.h
357
#define WIN_PRESCALED_SIZE(h, v) ((((h) & 0x7fff) << 0) | \
sys/arm/nvidia/drm2/tegra_dc_reg.h
363
#define WIN_DDA_INCREMENT(h, v) ((((h) & 0xffff) << 0) | \
sys/arm64/cavium/thunder_pcie_pem.c
575
bus_space_handle_t h;
sys/arm64/cavium/thunder_pcie_pem.c
587
h = sc->pem_sli_base;
sys/arm64/cavium/thunder_pcie_pem.c
590
PCIE_REGMAX, 0, &h);
sys/arm64/cavium/thunder_pcie_pem.c
594
data = bus_space_read_1(t, h, reg);
sys/arm64/cavium/thunder_pcie_pem.c
597
data = le16toh(bus_space_read_2(t, h, reg));
sys/arm64/cavium/thunder_pcie_pem.c
600
data = le32toh(bus_space_read_4(t, h, reg));
sys/arm64/cavium/thunder_pcie_pem.c
607
bus_space_unmap(sc->reg_bst, h, PCIE_REGMAX);
sys/arm64/cavium/thunder_pcie_pem.c
619
bus_space_handle_t h;
sys/arm64/cavium/thunder_pcie_pem.c
631
h = sc->pem_sli_base;
sys/arm64/cavium/thunder_pcie_pem.c
634
PCIE_REGMAX, 0, &h);
sys/arm64/cavium/thunder_pcie_pem.c
638
bus_space_write_1(t, h, reg, val);
sys/arm64/cavium/thunder_pcie_pem.c
641
bus_space_write_2(t, h, reg, htole16(val));
sys/arm64/cavium/thunder_pcie_pem.c
644
bus_space_write_4(t, h, reg, htole32(val));
sys/arm64/cavium/thunder_pcie_pem.c
650
bus_space_unmap(sc->reg_bst, h, PCIE_REGMAX);
sys/arm64/include/atomic.h
128
_ATOMIC_OP_IMPL(16, w, h, op, llsc_asm_op, lse_asm_op, pre, \
sys/arm64/include/atomic.h
262
_ATOMIC_CMPSET_IMPL(16, w, h, bar, a, l) \
sys/arm64/include/atomic.h
484
_ATOMIC_LOAD_ACQ_IMPL(16, w, h)
sys/arm64/include/atomic.h
500
_ATOMIC_STORE_REL_IMPL(16, w, h)
sys/arm64/include/bus.h
294
#define __bs_rs(sz, t, h, o) \
sys/arm64/include/bus.h
295
(*(t)->__bs_opname(r,sz))((t)->bs_cookie, h, o)
sys/arm64/include/bus.h
296
#define __bs_ws(sz, t, h, o, v) \
sys/arm64/include/bus.h
297
(*(t)->__bs_opname(w,sz))((t)->bs_cookie, h, o, v)
sys/arm64/include/bus.h
298
#define __bs_nonsingle(type, sz, t, h, o, a, c) \
sys/arm64/include/bus.h
299
(*(t)->__bs_opname(type,sz))((t)->bs_cookie, h, o, a, c)
sys/arm64/include/bus.h
300
#define __bs_set(type, sz, t, h, o, v, c) \
sys/arm64/include/bus.h
301
(*(t)->__bs_opname(type,sz))((t)->bs_cookie, h, o, v, c)
sys/arm64/include/bus.h
306
#define __bs_rs_s(sz, t, h, o) \
sys/arm64/include/bus.h
307
(*(t)->__bs_opname_s(r,sz))((t)->bs_cookie, h, o)
sys/arm64/include/bus.h
308
#define __bs_ws_s(sz, t, h, o, v) \
sys/arm64/include/bus.h
309
(*(t)->__bs_opname_s(w,sz))((t)->bs_cookie, h, o, v)
sys/arm64/include/bus.h
310
#define __bs_peek(sz, t, h, o, vp) \
sys/arm64/include/bus.h
311
(*(t)->__bs_opname(peek, sz))((t)->bs_cookie, h, o, vp)
sys/arm64/include/bus.h
312
#define __bs_poke(sz, t, h, o, v) \
sys/arm64/include/bus.h
313
(*(t)->__bs_opname(poke, sz))((t)->bs_cookie, h, o, v)
sys/arm64/include/bus.h
314
#define __bs_nonsingle_s(type, sz, t, h, o, a, c) \
sys/arm64/include/bus.h
315
(*(t)->__bs_opname_s(type,sz))((t)->bs_cookie, h, o, a, c)
sys/arm64/include/bus.h
322
#define bus_space_unmap(t, h, s) \
sys/arm64/include/bus.h
323
(*(t)->bs_unmap)((t)->bs_cookie, (h), (s))
sys/arm64/include/bus.h
324
#define bus_space_subregion(t, h, o, s, hp) \
sys/arm64/include/bus.h
325
(*(t)->bs_subregion)((t)->bs_cookie, (h), (o), (s), (hp))
sys/arm64/include/bus.h
333
#define bus_space_free(t, h, s) \
sys/arm64/include/bus.h
334
(*(t)->bs_free)((t)->bs_cookie, (h), (s))
sys/arm64/include/bus.h
339
#define bus_space_barrier(t, h, o, l, f) \
sys/arm64/include/bus.h
340
(*(t)->bs_barrier)((t)->bs_cookie, (h), (o), (l), (f))
sys/arm64/include/bus.h
345
#define bus_space_read_1(t, h, o) __bs_rs(1,(t),(h),(o))
sys/arm64/include/bus.h
346
#define bus_space_read_2(t, h, o) __bs_rs(2,(t),(h),(o))
sys/arm64/include/bus.h
347
#define bus_space_read_4(t, h, o) __bs_rs(4,(t),(h),(o))
sys/arm64/include/bus.h
348
#define bus_space_read_8(t, h, o) __bs_rs(8,(t),(h),(o))
sys/arm64/include/bus.h
350
#define bus_space_read_stream_1(t, h, o) __bs_rs_s(1,(t), (h), (o))
sys/arm64/include/bus.h
351
#define bus_space_read_stream_2(t, h, o) __bs_rs_s(2,(t), (h), (o))
sys/arm64/include/bus.h
352
#define bus_space_read_stream_4(t, h, o) __bs_rs_s(4,(t), (h), (o))
sys/arm64/include/bus.h
353
#define bus_space_read_stream_8(t, h, o) __bs_rs_s(8,(t), (h), (o))
sys/arm64/include/bus.h
358
#define bus_space_read_multi_1(t, h, o, a, c) \
sys/arm64/include/bus.h
359
__bs_nonsingle(rm,1,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
360
#define bus_space_read_multi_2(t, h, o, a, c) \
sys/arm64/include/bus.h
361
__bs_nonsingle(rm,2,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
362
#define bus_space_read_multi_4(t, h, o, a, c) \
sys/arm64/include/bus.h
363
__bs_nonsingle(rm,4,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
364
#define bus_space_read_multi_8(t, h, o, a, c) \
sys/arm64/include/bus.h
365
__bs_nonsingle(rm,8,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
367
#define bus_space_read_multi_stream_1(t, h, o, a, c) \
sys/arm64/include/bus.h
368
__bs_nonsingle_s(rm,1,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
369
#define bus_space_read_multi_stream_2(t, h, o, a, c) \
sys/arm64/include/bus.h
370
__bs_nonsingle_s(rm,2,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
371
#define bus_space_read_multi_stream_4(t, h, o, a, c) \
sys/arm64/include/bus.h
372
__bs_nonsingle_s(rm,4,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
373
#define bus_space_read_multi_stream_8(t, h, o, a, c) \
sys/arm64/include/bus.h
374
__bs_nonsingle_s(rm,8,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
379
#define bus_space_read_region_1(t, h, o, a, c) \
sys/arm64/include/bus.h
380
__bs_nonsingle(rr,1,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
381
#define bus_space_read_region_2(t, h, o, a, c) \
sys/arm64/include/bus.h
382
__bs_nonsingle(rr,2,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
383
#define bus_space_read_region_4(t, h, o, a, c) \
sys/arm64/include/bus.h
384
__bs_nonsingle(rr,4,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
385
#define bus_space_read_region_8(t, h, o, a, c) \
sys/arm64/include/bus.h
386
__bs_nonsingle(rr,8,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
388
#define bus_space_read_region_stream_1(t, h, o, a, c) \
sys/arm64/include/bus.h
389
__bs_nonsingle_s(rr,1,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
390
#define bus_space_read_region_stream_2(t, h, o, a, c) \
sys/arm64/include/bus.h
391
__bs_nonsingle_s(rr,2,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
392
#define bus_space_read_region_stream_4(t, h, o, a, c) \
sys/arm64/include/bus.h
393
__bs_nonsingle_s(rr,4,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
394
#define bus_space_read_region_stream_8(t, h, o, a, c) \
sys/arm64/include/bus.h
395
__bs_nonsingle_s(rr,8,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
400
#define bus_space_write_1(t, h, o, v) __bs_ws(1,(t),(h),(o),(v))
sys/arm64/include/bus.h
401
#define bus_space_write_2(t, h, o, v) __bs_ws(2,(t),(h),(o),(v))
sys/arm64/include/bus.h
402
#define bus_space_write_4(t, h, o, v) __bs_ws(4,(t),(h),(o),(v))
sys/arm64/include/bus.h
403
#define bus_space_write_8(t, h, o, v) __bs_ws(8,(t),(h),(o),(v))
sys/arm64/include/bus.h
405
#define bus_space_write_stream_1(t, h, o, v) __bs_ws_s(1,(t),(h),(o),(v))
sys/arm64/include/bus.h
406
#define bus_space_write_stream_2(t, h, o, v) __bs_ws_s(2,(t),(h),(o),(v))
sys/arm64/include/bus.h
407
#define bus_space_write_stream_4(t, h, o, v) __bs_ws_s(4,(t),(h),(o),(v))
sys/arm64/include/bus.h
408
#define bus_space_write_stream_8(t, h, o, v) __bs_ws_s(8,(t),(h),(o),(v))
sys/arm64/include/bus.h
413
#define bus_space_write_multi_1(t, h, o, a, c) \
sys/arm64/include/bus.h
414
__bs_nonsingle(wm,1,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
415
#define bus_space_write_multi_2(t, h, o, a, c) \
sys/arm64/include/bus.h
416
__bs_nonsingle(wm,2,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
417
#define bus_space_write_multi_4(t, h, o, a, c) \
sys/arm64/include/bus.h
418
__bs_nonsingle(wm,4,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
419
#define bus_space_write_multi_8(t, h, o, a, c) \
sys/arm64/include/bus.h
420
__bs_nonsingle(wm,8,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
422
#define bus_space_write_multi_stream_1(t, h, o, a, c) \
sys/arm64/include/bus.h
423
__bs_nonsingle_s(wm,1,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
424
#define bus_space_write_multi_stream_2(t, h, o, a, c) \
sys/arm64/include/bus.h
425
__bs_nonsingle_s(wm,2,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
426
#define bus_space_write_multi_stream_4(t, h, o, a, c) \
sys/arm64/include/bus.h
427
__bs_nonsingle_s(wm,4,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
428
#define bus_space_write_multi_stream_8(t, h, o, a, c) \
sys/arm64/include/bus.h
429
__bs_nonsingle_s(wm,8,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
434
#define bus_space_write_region_1(t, h, o, a, c) \
sys/arm64/include/bus.h
435
__bs_nonsingle(wr,1,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
436
#define bus_space_write_region_2(t, h, o, a, c) \
sys/arm64/include/bus.h
437
__bs_nonsingle(wr,2,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
438
#define bus_space_write_region_4(t, h, o, a, c) \
sys/arm64/include/bus.h
439
__bs_nonsingle(wr,4,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
440
#define bus_space_write_region_8(t, h, o, a, c) \
sys/arm64/include/bus.h
441
__bs_nonsingle(wr,8,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
443
#define bus_space_write_region_stream_1(t, h, o, a, c) \
sys/arm64/include/bus.h
444
__bs_nonsingle_s(wr,1,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
445
#define bus_space_write_region_stream_2(t, h, o, a, c) \
sys/arm64/include/bus.h
446
__bs_nonsingle_s(wr,2,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
447
#define bus_space_write_region_stream_4(t, h, o, a, c) \
sys/arm64/include/bus.h
448
__bs_nonsingle_s(wr,4,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
449
#define bus_space_write_region_stream_8(t, h, o, a, c) \
sys/arm64/include/bus.h
450
__bs_nonsingle_s(wr,8,(t),(h),(o),(a),(c))
sys/arm64/include/bus.h
455
#define bus_space_set_multi_1(t, h, o, v, c) \
sys/arm64/include/bus.h
456
__bs_set(sm,1,(t),(h),(o),(v),(c))
sys/arm64/include/bus.h
457
#define bus_space_set_multi_2(t, h, o, v, c) \
sys/arm64/include/bus.h
458
__bs_set(sm,2,(t),(h),(o),(v),(c))
sys/arm64/include/bus.h
459
#define bus_space_set_multi_4(t, h, o, v, c) \
sys/arm64/include/bus.h
460
__bs_set(sm,4,(t),(h),(o),(v),(c))
sys/arm64/include/bus.h
461
#define bus_space_set_multi_8(t, h, o, v, c) \
sys/arm64/include/bus.h
462
__bs_set(sm,8,(t),(h),(o),(v),(c))
sys/arm64/include/bus.h
464
#define bus_space_set_multi_stream_1(t, h, o, v, c) \
sys/arm64/include/bus.h
465
bus_space_set_multi_1((t), (h), (o), (v), (c))
sys/arm64/include/bus.h
466
#define bus_space_set_multi_stream_2(t, h, o, v, c) \
sys/arm64/include/bus.h
467
bus_space_set_multi_2((t), (h), (o), (v), (c))
sys/arm64/include/bus.h
468
#define bus_space_set_multi_stream_4(t, h, o, v, c) \
sys/arm64/include/bus.h
469
bus_space_set_multi_4((t), (h), (o), (v), (c))
sys/arm64/include/bus.h
470
#define bus_space_set_multi_stream_8(t, h, o, v, c) \
sys/arm64/include/bus.h
471
bus_space_set_multi_8((t), (h), (o), (v), (c))
sys/arm64/include/bus.h
476
#define bus_space_set_region_1(t, h, o, v, c) \
sys/arm64/include/bus.h
477
__bs_set(sr,1,(t),(h),(o),(v),(c))
sys/arm64/include/bus.h
478
#define bus_space_set_region_2(t, h, o, v, c) \
sys/arm64/include/bus.h
479
__bs_set(sr,2,(t),(h),(o),(v),(c))
sys/arm64/include/bus.h
480
#define bus_space_set_region_4(t, h, o, v, c) \
sys/arm64/include/bus.h
481
__bs_set(sr,4,(t),(h),(o),(v),(c))
sys/arm64/include/bus.h
482
#define bus_space_set_region_8(t, h, o, v, c) \
sys/arm64/include/bus.h
483
__bs_set(sr,8,(t),(h),(o),(v),(c))
sys/arm64/include/bus.h
485
#define bus_space_set_region_stream_1(t, h, o, v, c) \
sys/arm64/include/bus.h
486
bus_space_set_region_1((t), (h), (o), (v), (c))
sys/arm64/include/bus.h
487
#define bus_space_set_region_stream_2(t, h, o, v, c) \
sys/arm64/include/bus.h
488
bus_space_set_region_2((t), (h), (o), (v), (c))
sys/arm64/include/bus.h
489
#define bus_space_set_region_stream_4(t, h, o, v, c) \
sys/arm64/include/bus.h
490
bus_space_set_region_4((t), (h), (o), (v), (c))
sys/arm64/include/bus.h
491
#define bus_space_set_region_stream_8(t, h, o, v, c) \
sys/arm64/include/bus.h
492
bus_space_set_region_8((t), (h), (o), (v), (c))
sys/arm64/include/bus.h
509
#define bus_space_poke_1(t, h, o, v) __bs_poke(1, (t), (h), (o), (v))
sys/arm64/include/bus.h
510
#define bus_space_poke_2(t, h, o, v) __bs_poke(2, (t), (h), (o), (v))
sys/arm64/include/bus.h
511
#define bus_space_poke_4(t, h, o, v) __bs_poke(4, (t), (h), (o), (v))
sys/arm64/include/bus.h
512
#define bus_space_poke_8(t, h, o, v) __bs_poke(8, (t), (h), (o), (v))
sys/arm64/include/bus.h
517
#define bus_space_peek_1(t, h, o, vp) __bs_peek(1, (t), (h), (o), (vp))
sys/arm64/include/bus.h
518
#define bus_space_peek_2(t, h, o, vp) __bs_peek(2, (t), (h), (o), (vp))
sys/arm64/include/bus.h
519
#define bus_space_peek_4(t, h, o, vp) __bs_peek(4, (t), (h), (o), (vp))
sys/arm64/include/bus.h
520
#define bus_space_peek_8(t, h, o, vp) __bs_peek(8, (t), (h), (o), (vp))
sys/cddl/boot/zfs/sha256.c
130
uint32_t a, b, c, d, e, f, g, h, t, T1, T2, W[64];
sys/cddl/boot/zfs/sha256.c
143
e = H[4]; f = H[5]; g = H[6]; h = H[7];
sys/cddl/boot/zfs/sha256.c
147
T1 = h + BIGSIGMA1_256(e) + Ch(e, f, g) + SHA256_K[t] + W[t];
sys/cddl/boot/zfs/sha256.c
149
h = g; g = f; f = e; e = d + T1;
sys/cddl/boot/zfs/sha256.c
155
H[4] += e; H[5] += f; H[6] += g; H[7] += h;
sys/cddl/boot/zfs/sha256.c
161
uint64_t a, b, c, d, e, f, g, h, t, T1, T2, W[80];
sys/cddl/boot/zfs/sha256.c
177
e = H[4]; f = H[5]; g = H[6]; h = H[7];
sys/cddl/boot/zfs/sha256.c
181
T1 = h + BIGSIGMA1_512(e) + Ch(e, f, g) + SHA512_K[t] + W[t];
sys/cddl/boot/zfs/sha256.c
183
h = g; g = f; f = e; e = d + T1;
sys/cddl/boot/zfs/sha256.c
189
H[4] += e; H[5] += f; H[6] += g; H[7] += h;
sys/cddl/boot/zfs/zfsimpl.h
1667
#define ZAP_LEAF_HASH(l, h) \
sys/cddl/boot/zfs/zfsimpl.h
1669
((h) >> \
sys/cddl/boot/zfs/zfsimpl.h
1671
#define ZAP_LEAF_HASH_ENTPTR(l, h) (&(l)->l_phys->l_hash[ZAP_LEAF_HASH(l, h)])
sys/cddl/dev/dtrace/dtrace_test.c
62
fbttest(int a, int b, int c, int d, int e, int f, int g, int h, int i, int j)
sys/cddl/dev/dtrace/dtrace_test.c
65
a, b, c, d, e, f, g, h, i, j);
sys/compat/linux/linux_dtrace.h
66
#define _LIN_SDT_PROBE_DEFINE4(a, b, c, d, e, f, g, h) SDT_PROBE_DEFINE4(a, \
sys/compat/linux/linux_dtrace.h
67
b, c, d, e, f, g, h)
sys/compat/linux/linux_dtrace.h
70
#define _LIN_SDT_PROBE_DEFINE5(a, b, c, d, e, f, g, h, i) \
sys/compat/linux/linux_dtrace.h
71
SDT_PROBE_DEFINE5(a, b, c, d, e, f, g, h, i)
sys/compat/linux/linux_dtrace.h
72
#define LIN_SDT_PROBE_DEFINE5(a, b, c, d, e, f, g, h) _LIN_SDT_PROBE_DEFINE5(\
sys/compat/linux/linux_dtrace.h
73
LINUX_DTRACE, a, b, c, d, e, f, g, h)
sys/compat/linux/linux_dtrace.h
85
#define _LIN_SDT_PROBE5(a, b, c, d, e, f, g, h, i) SDT_PROBE5(a, b, c, d, \
sys/compat/linux/linux_dtrace.h
86
e, f, g, h, i)
sys/compat/linux/linux_dtrace.h
87
#define LIN_SDT_PROBE5(a, b, c, d, e, f, g, h) _LIN_SDT_PROBE5(LINUX_DTRACE, \
sys/compat/linux/linux_dtrace.h
88
a, b, c, d, e, f, g, h)
sys/compat/linux/linux_ioctl.c
3788
linux_ioctl_register_handler(struct linux_ioctl_handler *h)
sys/compat/linux/linux_ioctl.c
3792
if (h == NULL || h->func == NULL)
sys/compat/linux/linux_ioctl.c
3801
if (he->func == h->func)
sys/compat/linux/linux_ioctl.c
3807
he->func = h->func;
sys/compat/linux/linux_ioctl.c
3812
he->low = h->low;
sys/compat/linux/linux_ioctl.c
3813
he->high = h->high;
sys/compat/linux/linux_ioctl.c
3814
he->span = h->high - h->low + 1;
sys/compat/linux/linux_ioctl.c
3831
linux_ioctl_unregister_handler(struct linux_ioctl_handler *h)
sys/compat/linux/linux_ioctl.c
3835
if (h == NULL || h->func == NULL)
sys/compat/linux/linux_ioctl.c
3840
if (he->func == h->func) {
sys/compat/linux/linux_ioctl.c
3854
linux32_ioctl_register_handler(struct linux_ioctl_handler *h)
sys/compat/linux/linux_ioctl.c
3858
if (h == NULL || h->func == NULL)
sys/compat/linux/linux_ioctl.c
3867
if (he->func == h->func)
sys/compat/linux/linux_ioctl.c
3872
he->func = h->func;
sys/compat/linux/linux_ioctl.c
3877
he->low = h->low;
sys/compat/linux/linux_ioctl.c
3878
he->high = h->high;
sys/compat/linux/linux_ioctl.c
3879
he->span = h->high - h->low + 1;
sys/compat/linux/linux_ioctl.c
3896
linux32_ioctl_unregister_handler(struct linux_ioctl_handler *h)
sys/compat/linux/linux_ioctl.c
3900
if (h == NULL || h->func == NULL)
sys/compat/linux/linux_ioctl.c
3905
if (he->func == h->func) {
sys/compat/linux/linux_ioctl.h
848
int linux_ioctl_register_handler(struct linux_ioctl_handler *h);
sys/compat/linux/linux_ioctl.h
849
int linux_ioctl_unregister_handler(struct linux_ioctl_handler *h);
sys/compat/linux/linux_ioctl.h
851
int linux32_ioctl_register_handler(struct linux_ioctl_handler *h);
sys/compat/linux/linux_ioctl.h
852
int linux32_ioctl_unregister_handler(struct linux_ioctl_handler *h);
sys/compat/linux/linux_util.h
89
int linux_device_register_handler(struct linux_device_handler *h);
sys/compat/linux/linux_util.h
90
int linux_device_unregister_handler(struct linux_device_handler *h);
sys/compat/linuxkpi/common/include/linux/bitops.h
48
#define GENMASK(h, l) (((~0UL) >> (BITS_PER_LONG - (h) - 1)) & ((~0UL) << (l)))
sys/compat/linuxkpi/common/include/linux/bitops.h
49
#define GENMASK_ULL(h, l) (((~0ULL) >> (BITS_PER_LONG_LONG - (h) - 1)) & ((~0ULL) << (l)))
sys/compat/linuxkpi/common/include/linux/io-64-nonatomic-lo-hi.h
36
uint32_t l, h;
sys/compat/linuxkpi/common/include/linux/io-64-nonatomic-lo-hi.h
40
h = le32toh(__raw_readl(p + 1));
sys/compat/linuxkpi/common/include/linux/io-64-nonatomic-lo-hi.h
43
return (l + ((uint64_t)h << 32));
sys/compat/linuxkpi/common/include/linux/list.h
191
#define list_for_each_entry(p, h, field) \
sys/compat/linuxkpi/common/include/linux/list.h
192
for (p = list_entry((h)->next, typeof(*p), field); &(p)->field != (h); \
sys/compat/linuxkpi/common/include/linux/list.h
195
#define list_for_each_entry_safe(p, n, h, field) \
sys/compat/linuxkpi/common/include/linux/list.h
196
for (p = list_entry((h)->next, typeof(*p), field), \
sys/compat/linuxkpi/common/include/linux/list.h
197
n = list_entry((p)->field.next, typeof(*p), field); &(p)->field != (h);\
sys/compat/linuxkpi/common/include/linux/list.h
200
#define list_for_each_entry_from(p, h, field) \
sys/compat/linuxkpi/common/include/linux/list.h
201
for ( ; &(p)->field != (h); \
sys/compat/linuxkpi/common/include/linux/list.h
204
#define list_for_each_entry_continue(p, h, field) \
sys/compat/linuxkpi/common/include/linux/list.h
205
for (p = list_next_entry((p), field); &(p)->field != (h); \
sys/compat/linuxkpi/common/include/linux/list.h
213
#define list_for_each_entry_reverse(p, h, field) \
sys/compat/linuxkpi/common/include/linux/list.h
214
for (p = list_entry((h)->prev, typeof(*p), field); &(p)->field != (h); \
sys/compat/linuxkpi/common/include/linux/list.h
217
#define list_for_each_entry_safe_reverse(p, n, h, field) \
sys/compat/linuxkpi/common/include/linux/list.h
218
for (p = list_entry((h)->prev, typeof(*p), field), \
sys/compat/linuxkpi/common/include/linux/list.h
219
n = list_entry((p)->field.prev, typeof(*p), field); &(p)->field != (h); \
sys/compat/linuxkpi/common/include/linux/list.h
222
#define list_for_each_entry_continue_reverse(p, h, field) \
sys/compat/linuxkpi/common/include/linux/list.h
223
for (p = list_entry((p)->field.prev, typeof(*p), field); &(p)->field != (h); \
sys/compat/linuxkpi/common/include/linux/list.h
226
#define list_for_each_prev(p, h) for (p = (h)->prev; p != (h); p = (p)->prev)
sys/compat/linuxkpi/common/include/linux/list.h
228
#define list_for_each_prev_safe(p, n, h) \
sys/compat/linuxkpi/common/include/linux/list.h
229
for (p = (h)->prev, n = (p)->prev; \
sys/compat/linuxkpi/common/include/linux/list.h
230
p != (h); \
sys/compat/linuxkpi/common/include/linux/list.h
233
#define list_for_each_entry_from_reverse(p, h, field) \
sys/compat/linuxkpi/common/include/linux/list.h
234
for (; &p->field != (h); \
sys/compat/linuxkpi/common/include/linux/list.h
358
hlist_unhashed(const struct hlist_node *h)
sys/compat/linuxkpi/common/include/linux/list.h
361
return !h->pprev;
sys/compat/linuxkpi/common/include/linux/list.h
365
hlist_empty(const struct hlist_head *h)
sys/compat/linuxkpi/common/include/linux/list.h
368
return !READ_ONCE(h->first);
sys/compat/linuxkpi/common/include/linux/list.h
391
hlist_add_head(struct hlist_node *n, struct hlist_head *h)
sys/compat/linuxkpi/common/include/linux/list.h
394
n->next = h->first;
sys/compat/linuxkpi/common/include/linux/list.h
395
if (h->first != NULL)
sys/compat/linuxkpi/common/include/linux/list.h
396
h->first->pprev = &n->next;
sys/compat/linuxkpi/common/include/linux/list.h
397
WRITE_ONCE(h->first, n);
sys/compat/linuxkpi/common/include/linux/list.h
398
n->pprev = &h->first;
sys/compat/linuxkpi/common/include/linux/rculist.h
127
hlist_add_head_rcu(struct hlist_node *n, struct hlist_head *h)
sys/compat/linuxkpi/common/include/linux/rculist.h
129
struct hlist_node *first = h->first;
sys/compat/linuxkpi/common/include/linux/rculist.h
132
n->pprev = &h->first;
sys/compat/linuxkpi/common/include/linux/rculist.h
133
rcu_assign_pointer(hlist_first_rcu(h), n);
sys/compat/x86bios/x86bios.c
59
#define X86BIOS_TRACE(h, n, r) do { \
sys/compat/x86bios/x86bios.c
60
printf(__STRING(h) \
sys/crypto/aesni/aesencdec.h
108
out[7] = _mm_aesdeclast_si128(h, keysched[i + 1]);
sys/crypto/aesni/aesencdec.h
40
__m128i h, __m128i out[8])
sys/crypto/aesni/aesencdec.h
51
h ^= keysched[0];
sys/crypto/aesni/aesencdec.h
61
h = _mm_aesenc_si128(h, keysched[i + 1]);
sys/crypto/aesni/aesencdec.h
71
out[7] = _mm_aesenclast_si128(h, keysched[i + 1]);
sys/crypto/aesni/aesencdec.h
77
__m128i h, __m128i out[8])
sys/crypto/aesni/aesencdec.h
88
h ^= keysched[0];
sys/crypto/aesni/aesencdec.h
98
h = _mm_aesdec_si128(h, keysched[i + 1]);
sys/crypto/aesni/aesni.c
382
intel_sha1_step(ctx->h.b32, data + off, blocks);
sys/crypto/aesni/aesni.c
396
intel_sha1_step(ctx->h.b32, (void *)ctx->m.b8, 1);
sys/crypto/aesni/aesni_wrap.c
335
__m128i a, b, c, d, e, f, g, h;
sys/crypto/aesni/aesni_wrap.c
362
PREPINP(h, 7);
sys/crypto/aesni/aesni_wrap.c
366
aesni_enc8(rounds - 1, key_schedule, a, b, c, d, e, f, g, h,
sys/crypto/aesni/aesni_wrap.c
369
aesni_dec8(rounds - 1, key_schedule, a, b, c, d, e, f, g, h,
sys/crypto/openssl/ossl_sha.h
40
SHA_LONG h[8];
sys/crypto/openssl/ossl_sha.h
57
SHA_LONG64 h[8];
sys/crypto/openssl/ossl_sha256.c
30
c->h[0] = 0xc1059ed8UL;
sys/crypto/openssl/ossl_sha256.c
31
c->h[1] = 0x367cd507UL;
sys/crypto/openssl/ossl_sha256.c
32
c->h[2] = 0x3070dd17UL;
sys/crypto/openssl/ossl_sha256.c
33
c->h[3] = 0xf70e5939UL;
sys/crypto/openssl/ossl_sha256.c
34
c->h[4] = 0xffc00b31UL;
sys/crypto/openssl/ossl_sha256.c
35
c->h[5] = 0x68581511UL;
sys/crypto/openssl/ossl_sha256.c
36
c->h[6] = 0x64f98fa7UL;
sys/crypto/openssl/ossl_sha256.c
37
c->h[7] = 0xbefa4fa4UL;
sys/crypto/openssl/ossl_sha256.c
46
c->h[0] = 0x6a09e667UL;
sys/crypto/openssl/ossl_sha256.c
47
c->h[1] = 0xbb67ae85UL;
sys/crypto/openssl/ossl_sha256.c
48
c->h[2] = 0x3c6ef372UL;
sys/crypto/openssl/ossl_sha256.c
49
c->h[3] = 0xa54ff53aUL;
sys/crypto/openssl/ossl_sha256.c
50
c->h[4] = 0x510e527fUL;
sys/crypto/openssl/ossl_sha256.c
51
c->h[5] = 0x9b05688cUL;
sys/crypto/openssl/ossl_sha256.c
52
c->h[6] = 0x1f83d9abUL;
sys/crypto/openssl/ossl_sha256.c
53
c->h[7] = 0x5be0cd19UL;
sys/crypto/openssl/ossl_sha256.c
78
{ ll=(c)->h[nn]; (void)HOST_l2c(ll,(s)); } \
sys/crypto/openssl/ossl_sha256.c
82
{ ll=(c)->h[nn]; (void)HOST_l2c(ll,(s)); } \
sys/crypto/openssl/ossl_sha512.c
111
SHA_LONG64 t = c->h[n];
sys/crypto/openssl/ossl_sha512.c
127
SHA_LONG64 t = c->h[SHA224_DIGEST_LENGTH / 8];
sys/crypto/openssl/ossl_sha512.c
137
SHA_LONG64 t = c->h[n];
sys/crypto/openssl/ossl_sha512.c
151
SHA_LONG64 t = c->h[n];
sys/crypto/openssl/ossl_sha512.c
165
SHA_LONG64 t = c->h[n];
sys/crypto/openssl/ossl_sha512.c
33
c->h[0] = U64(0xcbbb9d5dc1059ed8);
sys/crypto/openssl/ossl_sha512.c
34
c->h[1] = U64(0x629a292a367cd507);
sys/crypto/openssl/ossl_sha512.c
35
c->h[2] = U64(0x9159015a3070dd17);
sys/crypto/openssl/ossl_sha512.c
36
c->h[3] = U64(0x152fecd8f70e5939);
sys/crypto/openssl/ossl_sha512.c
37
c->h[4] = U64(0x67332667ffc00b31);
sys/crypto/openssl/ossl_sha512.c
38
c->h[5] = U64(0x8eb44a8768581511);
sys/crypto/openssl/ossl_sha512.c
39
c->h[6] = U64(0xdb0c2e0d64f98fa7);
sys/crypto/openssl/ossl_sha512.c
40
c->h[7] = U64(0x47b5481dbefa4fa4);
sys/crypto/openssl/ossl_sha512.c
52
c->h[0] = U64(0x6a09e667f3bcc908);
sys/crypto/openssl/ossl_sha512.c
53
c->h[1] = U64(0xbb67ae8584caa73b);
sys/crypto/openssl/ossl_sha512.c
54
c->h[2] = U64(0x3c6ef372fe94f82b);
sys/crypto/openssl/ossl_sha512.c
55
c->h[3] = U64(0xa54ff53a5f1d36f1);
sys/crypto/openssl/ossl_sha512.c
56
c->h[4] = U64(0x510e527fade682d1);
sys/crypto/openssl/ossl_sha512.c
57
c->h[5] = U64(0x9b05688c2b3e6c1f);
sys/crypto/openssl/ossl_sha512.c
58
c->h[6] = U64(0x1f83d9abfb41bd6b);
sys/crypto/openssl/ossl_sha512.c
59
c->h[7] = U64(0x5be0cd19137e2179);
sys/crypto/sha1.c
252
bcopy(&ctxt->h.b8[0], digest, SHA1_RESULTLEN);
sys/crypto/sha1.c
254
digest[0] = ctxt->h.b8[3]; digest[1] = ctxt->h.b8[2];
sys/crypto/sha1.c
255
digest[2] = ctxt->h.b8[1]; digest[3] = ctxt->h.b8[0];
sys/crypto/sha1.c
256
digest[4] = ctxt->h.b8[7]; digest[5] = ctxt->h.b8[6];
sys/crypto/sha1.c
257
digest[6] = ctxt->h.b8[5]; digest[7] = ctxt->h.b8[4];
sys/crypto/sha1.c
258
digest[8] = ctxt->h.b8[11]; digest[9] = ctxt->h.b8[10];
sys/crypto/sha1.c
259
digest[10] = ctxt->h.b8[9]; digest[11] = ctxt->h.b8[8];
sys/crypto/sha1.c
260
digest[12] = ctxt->h.b8[15]; digest[13] = ctxt->h.b8[14];
sys/crypto/sha1.c
261
digest[14] = ctxt->h.b8[13]; digest[15] = ctxt->h.b8[12];
sys/crypto/sha1.c
262
digest[16] = ctxt->h.b8[19]; digest[17] = ctxt->h.b8[18];
sys/crypto/sha1.c
263
digest[18] = ctxt->h.b8[17]; digest[19] = ctxt->h.b8[16];
sys/crypto/sha1.c
66
#define H(n) (ctxt->h.b32[(n)])
sys/crypto/sha1.h
46
} h;
sys/crypto/sha2/sha256c.c
117
#define RND(a, b, c, d, e, f, g, h, k) \
sys/crypto/sha2/sha256c.c
118
h += S1(e) + Ch(e, f, g) + k; \
sys/crypto/sha2/sha256c.c
119
d += h; \
sys/crypto/sha2/sha256c.c
120
h += S0(a) + Maj(a, b, c);
sys/crypto/sha2/sha512c.c
146
#define RND(a, b, c, d, e, f, g, h, k) \
sys/crypto/sha2/sha512c.c
147
h += S1(e) + Ch(e, f, g) + k; \
sys/crypto/sha2/sha512c.c
148
d += h; \
sys/crypto/sha2/sha512c.c
149
h += S0(a) + Maj(a, b, c);
sys/crypto/skein/skein.c
103
ctx->h.hashBitLen=8*sizeof(ctx->X); /* set output hash bit count = state size */
sys/crypto/skein/skein.c
118
ctx->h.hashBitLen = hashBitLen; /* output hash bit count */
sys/crypto/skein/skein.c
126
Skein_Show_Key(256,&ctx->h,key,keyBytes);
sys/crypto/skein/skein.c
133
ctx->h.bCnt = 0; /* buffer b[] starts out empty */
sys/crypto/skein/skein.c
145
Skein_Assert(ctx->h.bCnt <= SKEIN_256_BLOCK_BYTES,SKEIN_FAIL); /* catch uninitialized context */
sys/crypto/skein/skein.c
148
if (msgByteCnt + ctx->h.bCnt > SKEIN_256_BLOCK_BYTES)
sys/crypto/skein/skein.c
150
if (ctx->h.bCnt) /* finish up any buffered message data */
sys/crypto/skein/skein.c
152
n = SKEIN_256_BLOCK_BYTES - ctx->h.bCnt; /* # bytes free in buffer b[] */
sys/crypto/skein/skein.c
156
memcpy(&ctx->b[ctx->h.bCnt],msg,n);
sys/crypto/skein/skein.c
159
ctx->h.bCnt += n;
sys/crypto/skein/skein.c
161
Skein_assert(ctx->h.bCnt == SKEIN_256_BLOCK_BYTES);
sys/crypto/skein/skein.c
163
ctx->h.bCnt = 0;
sys/crypto/skein/skein.c
173
Skein_assert(ctx->h.bCnt == 0);
sys/crypto/skein/skein.c
179
Skein_assert(msgByteCnt + ctx->h.bCnt <= SKEIN_256_BLOCK_BYTES);
sys/crypto/skein/skein.c
180
memcpy(&ctx->b[ctx->h.bCnt],msg,msgByteCnt);
sys/crypto/skein/skein.c
181
ctx->h.bCnt += msgByteCnt;
sys/crypto/skein/skein.c
193
Skein_Assert(ctx->h.bCnt <= SKEIN_256_BLOCK_BYTES,SKEIN_FAIL); /* catch uninitialized context */
sys/crypto/skein/skein.c
195
ctx->h.T[1] |= SKEIN_T1_FLAG_FINAL; /* tag as the final block */
sys/crypto/skein/skein.c
196
if (ctx->h.bCnt < SKEIN_256_BLOCK_BYTES) /* zero pad b[] if necessary */
sys/crypto/skein/skein.c
197
memset(&ctx->b[ctx->h.bCnt],0,SKEIN_256_BLOCK_BYTES - ctx->h.bCnt);
sys/crypto/skein/skein.c
199
Skein_256_Process_Block(ctx,ctx->b,1,ctx->h.bCnt); /* process the final block */
sys/crypto/skein/skein.c
202
byteCnt = (ctx->h.hashBitLen + 7) >> 3; /* total number of output bytes */
sys/crypto/skein/skein.c
216
Skein_Show_Final(256,&ctx->h,n,hashVal+i*SKEIN_256_BLOCK_BYTES);
sys/crypto/skein/skein.c
245
ctx->h.hashBitLen = hashBitLen; /* output hash bit count */
sys/crypto/skein/skein.c
301
ctx->h.hashBitLen=8*sizeof(ctx->X); /* set output hash bit count = state size */
sys/crypto/skein/skein.c
316
ctx->h.hashBitLen = hashBitLen; /* output hash bit count */
sys/crypto/skein/skein.c
324
Skein_Show_Key(512,&ctx->h,key,keyBytes);
sys/crypto/skein/skein.c
331
ctx->h.bCnt = 0; /* buffer b[] starts out empty */
sys/crypto/skein/skein.c
343
Skein_Assert(ctx->h.bCnt <= SKEIN_512_BLOCK_BYTES,SKEIN_FAIL); /* catch uninitialized context */
sys/crypto/skein/skein.c
346
if (msgByteCnt + ctx->h.bCnt > SKEIN_512_BLOCK_BYTES)
sys/crypto/skein/skein.c
348
if (ctx->h.bCnt) /* finish up any buffered message data */
sys/crypto/skein/skein.c
350
n = SKEIN_512_BLOCK_BYTES - ctx->h.bCnt; /* # bytes free in buffer b[] */
sys/crypto/skein/skein.c
354
memcpy(&ctx->b[ctx->h.bCnt],msg,n);
sys/crypto/skein/skein.c
357
ctx->h.bCnt += n;
sys/crypto/skein/skein.c
359
Skein_assert(ctx->h.bCnt == SKEIN_512_BLOCK_BYTES);
sys/crypto/skein/skein.c
361
ctx->h.bCnt = 0;
sys/crypto/skein/skein.c
371
Skein_assert(ctx->h.bCnt == 0);
sys/crypto/skein/skein.c
377
Skein_assert(msgByteCnt + ctx->h.bCnt <= SKEIN_512_BLOCK_BYTES);
sys/crypto/skein/skein.c
378
memcpy(&ctx->b[ctx->h.bCnt],msg,msgByteCnt);
sys/crypto/skein/skein.c
379
ctx->h.bCnt += msgByteCnt;
sys/crypto/skein/skein.c
391
Skein_Assert(ctx->h.bCnt <= SKEIN_512_BLOCK_BYTES,SKEIN_FAIL); /* catch uninitialized context */
sys/crypto/skein/skein.c
393
ctx->h.T[1] |= SKEIN_T1_FLAG_FINAL; /* tag as the final block */
sys/crypto/skein/skein.c
394
if (ctx->h.bCnt < SKEIN_512_BLOCK_BYTES) /* zero pad b[] if necessary */
sys/crypto/skein/skein.c
395
memset(&ctx->b[ctx->h.bCnt],0,SKEIN_512_BLOCK_BYTES - ctx->h.bCnt);
sys/crypto/skein/skein.c
397
Skein_512_Process_Block(ctx,ctx->b,1,ctx->h.bCnt); /* process the final block */
sys/crypto/skein/skein.c
400
byteCnt = (ctx->h.hashBitLen + 7) >> 3; /* total number of output bytes */
sys/crypto/skein/skein.c
414
Skein_Show_Final(512,&ctx->h,n,hashVal+i*SKEIN_512_BLOCK_BYTES);
sys/crypto/skein/skein.c
443
ctx->h.hashBitLen = hashBitLen; /* output hash bit count */
sys/crypto/skein/skein.c
48
ctx->h.hashBitLen = hashBitLen; /* output hash bit count */
sys/crypto/skein/skein.c
498
ctx->h.hashBitLen=8*sizeof(ctx->X); /* set output hash bit count = state size */
sys/crypto/skein/skein.c
513
ctx->h.hashBitLen = hashBitLen; /* output hash bit count */
sys/crypto/skein/skein.c
521
Skein_Show_Key(1024,&ctx->h,key,keyBytes);
sys/crypto/skein/skein.c
528
ctx->h.bCnt = 0; /* buffer b[] starts out empty */
sys/crypto/skein/skein.c
540
Skein_Assert(ctx->h.bCnt <= SKEIN1024_BLOCK_BYTES,SKEIN_FAIL); /* catch uninitialized context */
sys/crypto/skein/skein.c
543
if (msgByteCnt + ctx->h.bCnt > SKEIN1024_BLOCK_BYTES)
sys/crypto/skein/skein.c
545
if (ctx->h.bCnt) /* finish up any buffered message data */
sys/crypto/skein/skein.c
547
n = SKEIN1024_BLOCK_BYTES - ctx->h.bCnt; /* # bytes free in buffer b[] */
sys/crypto/skein/skein.c
551
memcpy(&ctx->b[ctx->h.bCnt],msg,n);
sys/crypto/skein/skein.c
554
ctx->h.bCnt += n;
sys/crypto/skein/skein.c
556
Skein_assert(ctx->h.bCnt == SKEIN1024_BLOCK_BYTES);
sys/crypto/skein/skein.c
558
ctx->h.bCnt = 0;
sys/crypto/skein/skein.c
568
Skein_assert(ctx->h.bCnt == 0);
sys/crypto/skein/skein.c
574
Skein_assert(msgByteCnt + ctx->h.bCnt <= SKEIN1024_BLOCK_BYTES);
sys/crypto/skein/skein.c
575
memcpy(&ctx->b[ctx->h.bCnt],msg,msgByteCnt);
sys/crypto/skein/skein.c
576
ctx->h.bCnt += msgByteCnt;
sys/crypto/skein/skein.c
588
Skein_Assert(ctx->h.bCnt <= SKEIN1024_BLOCK_BYTES,SKEIN_FAIL); /* catch uninitialized context */
sys/crypto/skein/skein.c
590
ctx->h.T[1] |= SKEIN_T1_FLAG_FINAL; /* tag as the final block */
sys/crypto/skein/skein.c
591
if (ctx->h.bCnt < SKEIN1024_BLOCK_BYTES) /* zero pad b[] if necessary */
sys/crypto/skein/skein.c
592
memset(&ctx->b[ctx->h.bCnt],0,SKEIN1024_BLOCK_BYTES - ctx->h.bCnt);
sys/crypto/skein/skein.c
594
Skein1024_Process_Block(ctx,ctx->b,1,ctx->h.bCnt); /* process the final block */
sys/crypto/skein/skein.c
597
byteCnt = (ctx->h.hashBitLen + 7) >> 3; /* total number of output bytes */
sys/crypto/skein/skein.c
611
Skein_Show_Final(1024,&ctx->h,n,hashVal+i*SKEIN1024_BLOCK_BYTES);
sys/crypto/skein/skein.c
632
Skein_Assert(ctx->h.bCnt <= SKEIN_256_BLOCK_BYTES,SKEIN_FAIL); /* catch uninitialized context */
sys/crypto/skein/skein.c
634
ctx->h.T[1] |= SKEIN_T1_FLAG_FINAL; /* tag as the final block */
sys/crypto/skein/skein.c
635
if (ctx->h.bCnt < SKEIN_256_BLOCK_BYTES) /* zero pad b[] if necessary */
sys/crypto/skein/skein.c
636
memset(&ctx->b[ctx->h.bCnt],0,SKEIN_256_BLOCK_BYTES - ctx->h.bCnt);
sys/crypto/skein/skein.c
637
Skein_256_Process_Block(ctx,ctx->b,1,ctx->h.bCnt); /* process the final block */
sys/crypto/skein/skein.c
648
Skein_Assert(ctx->h.bCnt <= SKEIN_512_BLOCK_BYTES,SKEIN_FAIL); /* catch uninitialized context */
sys/crypto/skein/skein.c
650
ctx->h.T[1] |= SKEIN_T1_FLAG_FINAL; /* tag as the final block */
sys/crypto/skein/skein.c
651
if (ctx->h.bCnt < SKEIN_512_BLOCK_BYTES) /* zero pad b[] if necessary */
sys/crypto/skein/skein.c
652
memset(&ctx->b[ctx->h.bCnt],0,SKEIN_512_BLOCK_BYTES - ctx->h.bCnt);
sys/crypto/skein/skein.c
653
Skein_512_Process_Block(ctx,ctx->b,1,ctx->h.bCnt); /* process the final block */
sys/crypto/skein/skein.c
664
Skein_Assert(ctx->h.bCnt <= SKEIN1024_BLOCK_BYTES,SKEIN_FAIL); /* catch uninitialized context */
sys/crypto/skein/skein.c
666
ctx->h.T[1] |= SKEIN_T1_FLAG_FINAL; /* tag as the final block */
sys/crypto/skein/skein.c
667
if (ctx->h.bCnt < SKEIN1024_BLOCK_BYTES) /* zero pad b[] if necessary */
sys/crypto/skein/skein.c
668
memset(&ctx->b[ctx->h.bCnt],0,SKEIN1024_BLOCK_BYTES - ctx->h.bCnt);
sys/crypto/skein/skein.c
669
Skein1024_Process_Block(ctx,ctx->b,1,ctx->h.bCnt); /* process the final block */
sys/crypto/skein/skein.c
683
Skein_Assert(ctx->h.bCnt <= SKEIN_256_BLOCK_BYTES,SKEIN_FAIL); /* catch uninitialized context */
sys/crypto/skein/skein.c
686
byteCnt = (ctx->h.hashBitLen + 7) >> 3; /* total number of output bytes */
sys/crypto/skein/skein.c
700
Skein_Show_Final(256,&ctx->h,n,hashVal+i*SKEIN_256_BLOCK_BYTES);
sys/crypto/skein/skein.c
712
Skein_Assert(ctx->h.bCnt <= SKEIN_512_BLOCK_BYTES,SKEIN_FAIL); /* catch uninitialized context */
sys/crypto/skein/skein.c
715
byteCnt = (ctx->h.hashBitLen + 7) >> 3; /* total number of output bytes */
sys/crypto/skein/skein.c
729
Skein_Show_Final(256,&ctx->h,n,hashVal+i*SKEIN_512_BLOCK_BYTES);
sys/crypto/skein/skein.c
741
Skein_Assert(ctx->h.bCnt <= SKEIN1024_BLOCK_BYTES,SKEIN_FAIL); /* catch uninitialized context */
sys/crypto/skein/skein.c
744
byteCnt = (ctx->h.hashBitLen + 7) >> 3; /* total number of output bytes */
sys/crypto/skein/skein.c
758
Skein_Show_Final(256,&ctx->h,n,hashVal+i*SKEIN1024_BLOCK_BYTES);
sys/crypto/skein/skein.h
226
#define Skein_Get_Tweak(ctxPtr,TWK_NUM) ((ctxPtr)->h.T[TWK_NUM])
sys/crypto/skein/skein.h
227
#define Skein_Set_Tweak(ctxPtr,TWK_NUM,tVal) {(ctxPtr)->h.T[TWK_NUM] = (tVal);}
sys/crypto/skein/skein.h
246
{ Skein_Set_T0_T1(ctxPtr,0,SKEIN_T1_FLAG_FIRST | SKEIN_T1_BLK_TYPE_##BLK_TYPE); (ctxPtr)->h.bCnt=0; }
sys/crypto/skein/skein.h
75
Skein_Ctxt_Hdr_t h; /* common header context variables */
sys/crypto/skein/skein.h
82
Skein_Ctxt_Hdr_t h; /* common header context variables */
sys/crypto/skein/skein.h
89
Skein_Ctxt_Hdr_t h; /* common header context variables */
sys/crypto/skein/skein_block.c
105
Skein_Show_Block(BLK_BITS,&ctx->h,ctx->X,blkPtr,w,ks,ts);
sys/crypto/skein/skein_block.c
112
Skein_Show_R_Ptr(BLK_BITS,&ctx->h,SKEIN_RND_KEY_INITIAL,Xptr); /* show starting state values */
sys/crypto/skein/skein_block.c
125
Skein_Show_R_Ptr(BLK_BITS,&ctx->h,rNum,Xptr);
sys/crypto/skein/skein_block.c
132
Skein_Show_R_Ptr(BLK_BITS,&ctx->h,SKEIN_RND_KEY_INJECT,Xptr);
sys/crypto/skein/skein_block.c
136
Skein_Show_R_Ptr(BLK_BITS,&ctx->h,4*(r-1)+rNum,Xptr);
sys/crypto/skein/skein_block.c
145
Skein_Show_R_Ptr(BLK_BITS,&ctx->h,SKEIN_RND_KEY_INJECT,Xptr);
sys/crypto/skein/skein_block.c
218
Skein_Show_Round(BLK_BITS,&ctx->h,SKEIN_RND_FEED_FWD,ctx->X);
sys/crypto/skein/skein_block.c
223
ctx->h.T[0] = ts[0];
sys/crypto/skein/skein_block.c
224
ctx->h.T[1] = ts[1];
sys/crypto/skein/skein_block.c
275
ts[0] = ctx->h.T[0];
sys/crypto/skein/skein_block.c
276
ts[1] = ctx->h.T[1];
sys/crypto/skein/skein_block.c
297
Skein_Show_Block(BLK_BITS,&ctx->h,ctx->X,blkPtr,w,ks,ts);
sys/crypto/skein/skein_block.c
310
Skein_Show_R_Ptr(BLK_BITS,&ctx->h,SKEIN_RND_KEY_INITIAL,Xptr);
sys/crypto/skein/skein_block.c
321
Skein_Show_R_Ptr(BLK_BITS,&ctx->h,rNum,Xptr);
sys/crypto/skein/skein_block.c
332
Skein_Show_R_Ptr(BLK_BITS,&ctx->h,SKEIN_RND_KEY_INJECT,Xptr);
sys/crypto/skein/skein_block.c
336
Skein_Show_R_Ptr(BLK_BITS,&ctx->h,4*(r-1)+rNum,Xptr);
sys/crypto/skein/skein_block.c
349
Skein_Show_R_Ptr(BLK_BITS,&ctx->h,SKEIN_RND_KEY_INJECT,Xptr);
sys/crypto/skein/skein_block.c
426
Skein_Show_Round(BLK_BITS,&ctx->h,SKEIN_RND_FEED_FWD,ctx->X);
sys/crypto/skein/skein_block.c
431
ctx->h.T[0] = ts[0];
sys/crypto/skein/skein_block.c
432
ctx->h.T[1] = ts[1];
sys/crypto/skein/skein_block.c
44
#define DebugSaveTweak(ctx) { ctx->h.T[0] = ts[0]; ctx->h.T[1] = ts[1]; }
sys/crypto/skein/skein_block.c
487
ts[0] = ctx->h.T[0];
sys/crypto/skein/skein_block.c
488
ts[1] = ctx->h.T[1];
sys/crypto/skein/skein_block.c
519
Skein_Show_Block(BLK_BITS,&ctx->h,ctx->X,blkPtr,w,ks,ts);
sys/crypto/skein/skein_block.c
538
Skein_Show_R_Ptr(BLK_BITS,&ctx->h,SKEIN_RND_KEY_INITIAL,Xptr);
sys/crypto/skein/skein_block.c
553
Skein_Show_R_Ptr(BLK_BITS,&ctx->h,rn,Xptr);
sys/crypto/skein/skein_block.c
572
Skein_Show_R_Ptr(BLK_BITS,&ctx->h,SKEIN_RND_KEY_INJECT,Xptr);
sys/crypto/skein/skein_block.c
576
Skein_Show_R_Ptr(BLK_BITS,&ctx->h,4*(r-1)+rn,Xptr);
sys/crypto/skein/skein_block.c
597
Skein_Show_R_Ptr(BLK_BITS,&ctx->h,SKEIN_RND_KEY_INJECT,Xptr);
sys/crypto/skein/skein_block.c
683
Skein_Show_Round(BLK_BITS,&ctx->h,SKEIN_RND_FEED_FWD,ctx->X);
sys/crypto/skein/skein_block.c
689
ctx->h.T[0] = ts[0];
sys/crypto/skein/skein_block.c
690
ctx->h.T[1] = ts[1];
sys/crypto/skein/skein_block.c
88
ts[0] = ctx->h.T[0];
sys/crypto/skein/skein_block.c
89
ts[1] = ctx->h.T[1];
sys/crypto/skein/skein_debug.c
162
void Skein_Show_R_Ptr(uint_t bits,const Skein_Ctxt_Hdr_t *h,size_t r,const u64b_t *X_ptr[])
sys/crypto/skein/skein_debug.c
169
Skein_Show_Round(bits,h,r,X);
sys/crypto/skein/skein_debug.c
174
void Skein_Show_Block(uint_t bits,const Skein_Ctxt_Hdr_t *h,const u64b_t *X,const u08b_t *blkPtr,
sys/crypto/skein/skein_debug.c
178
if (skein_DebugFlag & SKEIN_DEBUG_CONFIG || ((h->T[1] & SKEIN_T1_BLK_TYPE_MASK) != SKEIN_T1_BLK_TYPE_CFG))
sys/crypto/skein/skein_debug.c
183
printf("\n%s Block: outBits=%4d. T0=%06X.",AlgoHeader(bits),(uint_t) h->hashBitLen,(uint_t)h->T[0]);
sys/crypto/skein/skein_debug.c
185
n = (uint_t) ((h->T[1] & SKEIN_T1_BLK_TYPE_MASK) >> SKEIN_T1_POS_BLK_TYPE);
sys/crypto/skein/skein_debug.c
198
printf((h->T[1] & SKEIN_T1_FLAG_FIRST) ? " First":" ");
sys/crypto/skein/skein_debug.c
199
printf((h->T[1] & SKEIN_T1_FLAG_FINAL) ? " Final":" ");
sys/crypto/skein/skein_debug.c
200
printf((h->T[1] & SKEIN_T1_FLAG_BIT_PAD) ? " Pad" :" ");
sys/crypto/skein/skein_debug.c
201
n = (uint_t) ((h->T[1] & SKEIN_T1_TREE_LVL_MASK) >> SKEIN_T1_POS_TREE_LVL);
sys/crypto/skein/skein_debug.c
210
Show64(2,h->T);
sys/crypto/skein/skein_debug.c
237
void Skein_Show_Key(uint_t bits,const Skein_Ctxt_Hdr_t *h,const u08b_t *key,size_t keyBytes)
sys/crypto/skein/skein_debug.c
240
if (skein_DebugFlag & SKEIN_DEBUG_CONFIG || ((h->T[1] & SKEIN_T1_BLK_TYPE_MASK) != SKEIN_T1_BLK_TYPE_CFG))
sys/crypto/skein/skein_debug.c
76
void Skein_Show_Final(uint_t bits,const Skein_Ctxt_Hdr_t *h,size_t cnt,const u08b_t *outPtr)
sys/crypto/skein/skein_debug.c
78
if (skein_DebugFlag & SKEIN_DEBUG_CONFIG || ((h->T[1] & SKEIN_T1_BLK_TYPE_MASK) != SKEIN_T1_BLK_TYPE_CFG))
sys/crypto/skein/skein_debug.c
89
void Skein_Show_Round(uint_t bits,const Skein_Ctxt_Hdr_t *h,size_t r,const u64b_t *X)
sys/crypto/skein/skein_debug.c
93
if (skein_DebugFlag & SKEIN_DEBUG_CONFIG || ((h->T[1] & SKEIN_T1_BLK_TYPE_MASK) != SKEIN_T1_BLK_TYPE_CFG))
sys/crypto/skein/skein_debug.h
15
void Skein_Show_Block(uint_t bits,const Skein_Ctxt_Hdr_t *h,const u64b_t *X,const u08b_t *blkPtr,
sys/crypto/skein/skein_debug.h
17
void Skein_Show_Round(uint_t bits,const Skein_Ctxt_Hdr_t *h,size_t r,const u64b_t *X);
sys/crypto/skein/skein_debug.h
18
void Skein_Show_R_Ptr(uint_t bits,const Skein_Ctxt_Hdr_t *h,size_t r,const u64b_t *X_ptr[]);
sys/crypto/skein/skein_debug.h
19
void Skein_Show_Final(uint_t bits,const Skein_Ctxt_Hdr_t *h,size_t cnt,const u08b_t *outPtr);
sys/crypto/skein/skein_debug.h
20
void Skein_Show_Key (uint_t bits,const Skein_Ctxt_Hdr_t *h,const u08b_t *key,size_t keyBytes);
sys/dev/acpi_support/acpi_asus.c
1182
acpi_asus_notify(ACPI_HANDLE h, UINT32 notify, void *context)
sys/dev/acpi_support/acpi_asus.c
1213
acpi_UserNotify("ASUS", h, notify);
sys/dev/acpi_support/acpi_asus.c
1219
acpi_asus_lcdd_notify(ACPI_HANDLE h, UINT32 notify, void *context)
sys/dev/acpi_support/acpi_asus.c
1244
acpi_asus_eeepc_notify(ACPI_HANDLE h, UINT32 notify, void *context)
sys/dev/acpi_support/acpi_asus.c
1261
acpi_UserNotify("ASUS-Eee", h, notify);
sys/dev/acpi_support/acpi_asus.c
139
static void acpi_asus_lcdd_notify(ACPI_HANDLE h, UINT32 notify,
sys/dev/acpi_support/acpi_asus.c
436
static void acpi_asus_eeepc_notify(ACPI_HANDLE h, UINT32 notify, void *context);
sys/dev/acpi_support/acpi_asus.c
514
static void acpi_asus_notify(ACPI_HANDLE h, UINT32 notify, void *context);
sys/dev/acpi_support/acpi_asus_wmi.c
385
static void acpi_asus_wmi_notify(ACPI_HANDLE h, UINT32 notify, void *context);
sys/dev/acpi_support/acpi_asus_wmi.c
901
acpi_asus_wmi_notify(ACPI_HANDLE h, UINT32 notify, void *context)
sys/dev/acpi_support/acpi_fujitsu.c
139
static void acpi_fujitsu_notify_handler(ACPI_HANDLE h, uint32_t notify, void *context);
sys/dev/acpi_support/acpi_fujitsu.c
314
acpi_fujitsu_notify_handler(ACPI_HANDLE h, uint32_t notify, void *context)
sys/dev/acpi_support/acpi_hp.c
316
static void acpi_hp_notify(ACPI_HANDLE h, UINT32 notify, void *context);
sys/dev/acpi_support/acpi_hp.c
858
acpi_hp_notify(ACPI_HANDLE h, UINT32 notify, void *context)
sys/dev/acpi_support/acpi_ibm.c
1509
acpi_ibm_notify(ACPI_HANDLE h, UINT32 notify, void *context)
sys/dev/acpi_support/acpi_ibm.c
1552
acpi_UserNotify("IBM", h, (arg & 0xff));
sys/dev/acpi_support/acpi_ibm.c
344
static void acpi_ibm_notify(ACPI_HANDLE h, UINT32 notify, void *context);
sys/dev/acpi_support/acpi_panasonic.c
303
acpi_panasonic_sinf(ACPI_HANDLE h, UINT64 index)
sys/dev/acpi_support/acpi_panasonic.c
313
AcpiEvaluateObject(h, "SINF", NULL, &buf);
sys/dev/acpi_support/acpi_panasonic.c
323
acpi_panasonic_sset(ACPI_HANDLE h, UINT64 index, UINT64 val)
sys/dev/acpi_support/acpi_panasonic.c
335
AcpiEvaluateObject(h, "SSET", &args, NULL);
sys/dev/acpi_support/acpi_panasonic.c
339
hkey_lcd_brightness_max(ACPI_HANDLE h, int op, UINT32 *val)
sys/dev/acpi_support/acpi_panasonic.c
352
*val = acpi_panasonic_sinf(h, reg);
sys/dev/acpi_support/acpi_panasonic.c
360
hkey_lcd_brightness_min(ACPI_HANDLE h, int op, UINT32 *val)
sys/dev/acpi_support/acpi_panasonic.c
373
*val = acpi_panasonic_sinf(h, reg);
sys/dev/acpi_support/acpi_panasonic.c
381
hkey_lcd_brightness(ACPI_HANDLE h, int op, UINT32 *val)
sys/dev/acpi_support/acpi_panasonic.c
392
hkey_lcd_brightness_max(h, HKEY_GET, &max);
sys/dev/acpi_support/acpi_panasonic.c
393
hkey_lcd_brightness_min(h, HKEY_GET, &min);
sys/dev/acpi_support/acpi_panasonic.c
396
acpi_panasonic_sset(h, reg, *val);
sys/dev/acpi_support/acpi_panasonic.c
399
*val = acpi_panasonic_sinf(h, reg);
sys/dev/acpi_support/acpi_panasonic.c
407
hkey_sound_mute(ACPI_HANDLE h, int op, UINT32 *val)
sys/dev/acpi_support/acpi_panasonic.c
415
acpi_panasonic_sset(h, HKEY_REG_SOUND_MUTE, *val);
sys/dev/acpi_support/acpi_panasonic.c
418
*val = acpi_panasonic_sinf(h, HKEY_REG_SOUND_MUTE);
sys/dev/acpi_support/acpi_panasonic.c
426
acpi_panasonic_hkey_event(struct acpi_panasonic_softc *sc, ACPI_HANDLE h,
sys/dev/acpi_support/acpi_panasonic.c
439
AcpiEvaluateObject(h, "HINF", NULL, &buf);
sys/dev/acpi_support/acpi_panasonic.c
463
acpi_panasonic_hkey_action(struct acpi_panasonic_softc *sc, ACPI_HANDLE h,
sys/dev/acpi_support/acpi_panasonic.c
475
hkey_lcd_brightness_max(h, HKEY_GET, &max);
sys/dev/acpi_support/acpi_panasonic.c
476
hkey_lcd_brightness_min(h, HKEY_GET, &min);
sys/dev/acpi_support/acpi_panasonic.c
477
hkey_lcd_brightness(h, HKEY_GET, &arg);
sys/dev/acpi_support/acpi_panasonic.c
483
hkey_lcd_brightness(h, HKEY_SET, &arg);
sys/dev/acpi_support/acpi_panasonic.c
487
hkey_lcd_brightness_max(h, HKEY_GET, &max);
sys/dev/acpi_support/acpi_panasonic.c
488
hkey_lcd_brightness_min(h, HKEY_GET, &min);
sys/dev/acpi_support/acpi_panasonic.c
489
hkey_lcd_brightness(h, HKEY_GET, &arg);
sys/dev/acpi_support/acpi_panasonic.c
495
hkey_lcd_brightness(h, HKEY_SET, &arg);
sys/dev/acpi_support/acpi_panasonic.c
499
hkey_sound_mute(h, HKEY_GET, &arg);
sys/dev/acpi_support/acpi_panasonic.c
504
hkey_sound_mute(h, HKEY_SET, &arg);
sys/dev/acpi_support/acpi_panasonic.c
514
acpi_panasonic_notify(ACPI_HANDLE h, UINT32 notify, void *context)
sys/dev/acpi_support/acpi_panasonic.c
524
if (acpi_panasonic_hkey_event(sc, h, &key) == 0) {
sys/dev/acpi_support/acpi_panasonic.c
525
acpi_panasonic_hkey_action(sc, h, key);
sys/dev/acpi_support/acpi_panasonic.c
526
acpi_UserNotify("Panasonic", h, (uint8_t)key);
sys/dev/acpi_support/acpi_panasonic.c
86
static UINT64 acpi_panasonic_sinf(ACPI_HANDLE h, UINT64 index);
sys/dev/acpi_support/acpi_panasonic.c
87
static void acpi_panasonic_sset(ACPI_HANDLE h, UINT64 index,
sys/dev/acpi_support/acpi_panasonic.c
90
ACPI_HANDLE h, UINT32 *arg);
sys/dev/acpi_support/acpi_panasonic.c
92
ACPI_HANDLE h, UINT32 key);
sys/dev/acpi_support/acpi_panasonic.c
93
static void acpi_panasonic_notify(ACPI_HANDLE h, UINT32 notify,
sys/dev/acpi_support/acpi_toshiba.c
144
static int hci_call(ACPI_HANDLE h, int op, int function, UINT32 *arg);
sys/dev/acpi_support/acpi_toshiba.c
145
static void hci_key_action(struct acpi_toshiba_softc *sc, ACPI_HANDLE h,
sys/dev/acpi_support/acpi_toshiba.c
147
static void acpi_toshiba_notify(ACPI_HANDLE h, UINT32 notify,
sys/dev/acpi_support/acpi_toshiba.c
316
hci_force_fan(ACPI_HANDLE h, int op, UINT32 *state)
sys/dev/acpi_support/acpi_toshiba.c
326
ret = hci_call(h, op, HCI_REG_FAN, state);
sys/dev/acpi_support/acpi_toshiba.c
333
hci_video_output(ACPI_HANDLE h, int op, UINT32 *video_output)
sys/dev/acpi_support/acpi_toshiba.c
342
if (h == NULL)
sys/dev/acpi_support/acpi_toshiba.c
345
status = acpi_SetInteger(h, METHOD_VIDEO, *video_output);
sys/dev/acpi_support/acpi_toshiba.c
351
ret = hci_call(h, op, HCI_REG_VIDEO_OUTPUT, video_output);
sys/dev/acpi_support/acpi_toshiba.c
360
hci_lcd_brightness(ACPI_HANDLE h, int op, UINT32 *brightness)
sys/dev/acpi_support/acpi_toshiba.c
370
ret = hci_call(h, op, HCI_REG_LCD_BRIGHTNESS, brightness);
sys/dev/acpi_support/acpi_toshiba.c
377
hci_lcd_backlight(ACPI_HANDLE h, int op, UINT32 *backlight)
sys/dev/acpi_support/acpi_toshiba.c
385
return (hci_call(h, op, HCI_REG_LCD_BACKLIGHT, backlight));
sys/dev/acpi_support/acpi_toshiba.c
389
hci_cpu_speed(ACPI_HANDLE h, int op, UINT32 *speed)
sys/dev/acpi_support/acpi_toshiba.c
399
ret = hci_call(h, op, HCI_REG_CPU_SPEED, speed);
sys/dev/acpi_support/acpi_toshiba.c
406
hci_call(ACPI_HANDLE h, int op, int function, UINT32 *arg)
sys/dev/acpi_support/acpi_toshiba.c
430
if (ACPI_FAILURE(AcpiEvaluateObject(h, METHOD_HCI, &args, &results)))
sys/dev/acpi_support/acpi_toshiba.c
453
hci_call(h, HCI_SET, HCI_REG_SYSTEM_EVENT, &i);
sys/dev/acpi_support/acpi_toshiba.c
468
hci_key_action(struct acpi_toshiba_softc *sc, ACPI_HANDLE h, UINT32 key)
sys/dev/acpi_support/acpi_toshiba.c
476
hci_lcd_brightness(h, HCI_GET, &arg);
sys/dev/acpi_support/acpi_toshiba.c
480
hci_lcd_brightness(h, HCI_SET, &arg);
sys/dev/acpi_support/acpi_toshiba.c
484
hci_lcd_brightness(h, HCI_GET, &arg);
sys/dev/acpi_support/acpi_toshiba.c
488
hci_lcd_brightness(h, HCI_SET, &arg);
sys/dev/acpi_support/acpi_toshiba.c
492
hci_video_output(h, HCI_GET, &arg);
sys/dev/acpi_support/acpi_toshiba.c
498
hci_lcd_backlight(h, HCI_GET, &arg);
sys/dev/acpi_support/acpi_toshiba.c
500
hci_lcd_backlight(h, HCI_SET, &arg);
sys/dev/acpi_support/acpi_toshiba.c
504
hci_force_fan(h, HCI_GET, &arg);
sys/dev/acpi_support/acpi_toshiba.c
506
hci_force_fan(h, HCI_SET, &arg);
sys/dev/acpi_support/acpi_toshiba.c
512
acpi_toshiba_notify(ACPI_HANDLE h, UINT32 notify, void *context)
sys/dev/acpi_support/acpi_toshiba.c
521
while (hci_call(h, HCI_GET, HCI_REG_SYSTEM_EVENT, &key) == 0) {
sys/dev/acpi_support/acpi_toshiba.c
522
hci_key_action(sc, h, key);
sys/dev/acpi_support/acpi_toshiba.c
523
acpi_UserNotify("TOSHIBA", h, (uint8_t)key);
sys/dev/acpi_support/acpi_wmi.c
138
static void acpi_wmi_notify_handler(ACPI_HANDLE h, UINT32 notify,
sys/dev/acpi_support/acpi_wmi.c
145
static ACPI_STATUS acpi_wmi_read_wdg_blocks(struct acpi_wmi_softc *sc, ACPI_HANDLE h);
sys/dev/acpi_support/acpi_wmi.c
661
acpi_wmi_notify_handler(ACPI_HANDLE h, UINT32 notify, void *context)
sys/dev/acpi_support/acpi_wmi.c
685
handler(h, notify, handler_data);
sys/dev/acpi_support/acpi_wmi.c
748
acpi_wmi_read_wdg_blocks(struct acpi_wmi_softc *sc, ACPI_HANDLE h)
sys/dev/acpi_support/acpi_wmi.c
761
if (ACPI_FAILURE(status = AcpiEvaluateObject(h, "_WDG", NULL, &out)))
sys/dev/acpi_support/atk0110.c
199
sensor->h = o->Package.Elements[off + 1].Integer.Value;
sys/dev/acpi_support/atk0110.c
202
sensor->h += sensor->l;
sys/dev/acpi_support/atk0110.c
229
(intmax_t)sensor->h);
sys/dev/acpi_support/atk0110.c
243
ACPI_HANDLE h;
sys/dev/acpi_support/atk0110.c
257
s = AcpiGetHandle(sc->sc_ah, "GITM", &h);
sys/dev/acpi_support/atk0110.c
462
ACPI_INTEGER v, l, h;
sys/dev/acpi_support/atk0110.c
479
h = sensor->h;
sys/dev/acpi_support/atk0110.c
506
h += 2731;
sys/dev/acpi_support/atk0110.c
513
so[2] = h;
sys/dev/acpi_support/atk0110.c
526
ACPI_INTEGER v, l, h;
sys/dev/acpi_support/atk0110.c
563
h = sensor->h;
sys/dev/acpi_support/atk0110.c
571
h += 2731;
sys/dev/acpi_support/atk0110.c
578
so[2] = h;
sys/dev/acpi_support/atk0110.c
68
ACPI_INTEGER h;
sys/dev/acpica/acpi.c
169
static ACPI_STATUS acpi_device_scan_cb(ACPI_HANDLE h, UINT32 level,
sys/dev/acpica/acpi.c
1861
ACPI_HANDLE h;
sys/dev/acpica/acpi.c
1867
if ((h = acpi_get_handle(dev)) == NULL ||
sys/dev/acpica/acpi.c
1868
ACPI_FAILURE(AcpiGetObjectInfo(h, &devinfo)))
sys/dev/acpica/acpi.c
1884
ACPI_HANDLE h;
sys/dev/acpica/acpi.c
1893
if ((h = acpi_get_handle(dev)) == NULL ||
sys/dev/acpica/acpi.c
1894
ACPI_FAILURE(AcpiGetObjectInfo(h, &devinfo)))
sys/dev/acpica/acpi.c
1919
ACPI_HANDLE h;
sys/dev/acpica/acpi.c
1924
h = acpi_get_handle(dev);
sys/dev/acpica/acpi.c
1925
if (ids == NULL || h == NULL)
sys/dev/acpica/acpi.c
1933
rv = acpi_MatchHid(h, ids[i]);
sys/dev/acpica/acpi.c
1950
ACPI_HANDLE h;
sys/dev/acpica/acpi.c
1953
h = ACPI_ROOT_OBJECT;
sys/dev/acpica/acpi.c
1954
else if ((h = acpi_get_handle(dev)) == NULL)
sys/dev/acpica/acpi.c
1956
return (AcpiEvaluateObject(h, pathname, parameters, ret));
sys/dev/acpica/acpi.c
2037
ACPI_HANDLE h;
sys/dev/acpica/acpi.c
2050
h = acpi_GetReference(NULL, pobj);
sys/dev/acpica/acpi.c
2051
if (h == NULL)
sys/dev/acpica/acpi.c
2055
*(ACPI_HANDLE *)propvalue = h;
sys/dev/acpica/acpi.c
2122
ACPI_HANDLE h;
sys/dev/acpica/acpi.c
2124
h = acpi_GetReference(NULL,
sys/dev/acpica/acpi.c
2126
memcpy(propvalue, h, sizeof(ACPI_HANDLE));
sys/dev/acpica/acpi.c
2202
acpi_device_scan_cb(ACPI_HANDLE h, UINT32 level, void *arg, void **retval)
sys/dev/acpica/acpi.c
2214
if (acpi_avoid(h) || h == ctx->parent)
sys/dev/acpica/acpi.c
2218
if (ACPI_FAILURE(AcpiGetType(h, &type)))
sys/dev/acpica/acpi.c
2228
old_dev = acpi_get_device(h);
sys/dev/acpica/acpi.c
2230
status = ctx->user_fn(h, &dev, level, ctx->arg);
sys/dev/acpica/acpi.c
2240
AcpiAttachData(h, acpi_fake_objhandler, dev);
sys/dev/acpica/acpi.c
2249
ACPI_HANDLE h;
sys/dev/acpica/acpi.c
2256
h = ACPI_ROOT_OBJECT;
sys/dev/acpica/acpi.c
2257
else if ((h = acpi_get_handle(dev)) == NULL)
sys/dev/acpica/acpi.c
2261
ctx.parent = h;
sys/dev/acpica/acpi.c
2262
return (AcpiWalkNamespace(ACPI_TYPE_ANY, h, max_depth,
sys/dev/acpica/acpi.c
2273
ACPI_HANDLE h;
sys/dev/acpica/acpi.c
2276
h = acpi_get_handle(child);
sys/dev/acpica/acpi.c
2279
if (h == NULL)
sys/dev/acpica/acpi.c
2283
status = acpi_pwr_switch_consumer(h, state);
sys/dev/acpica/acpi.c
2287
acpi_d_state_to_str(state), acpi_name(h));
sys/dev/acpica/acpi.c
2291
acpi_d_state_to_str(state), acpi_name(h),
sys/dev/acpica/acpi.c
2488
ACPI_HANDLE h;
sys/dev/acpica/acpi.c
2573
if (ACPI_SUCCESS(AcpiGetHandle(handle, "_DCK", &h)))
sys/dev/acpica/acpi.c
2615
acpi_fake_objhandler(ACPI_HANDLE h, void *data)
sys/dev/acpica/acpi.c
2727
ACPI_HANDLE h;
sys/dev/acpica/acpi.c
2731
h = acpi_get_handle(dev);
sys/dev/acpica/acpi.c
2732
if (h == NULL)
sys/dev/acpica/acpi.c
2742
if (acpi_MatchHid(h, "AMDI0020") || acpi_MatchHid(h, "AMDI0010"))
sys/dev/acpica/acpi.c
2746
status = acpi_GetInteger(h, "_STA", &s);
sys/dev/acpica/acpi.c
2764
ACPI_HANDLE h;
sys/dev/acpica/acpi.c
2768
h = acpi_get_handle(dev);
sys/dev/acpica/acpi.c
2769
if (h == NULL)
sys/dev/acpica/acpi.c
2771
status = acpi_GetInteger(h, "_STA", &s);
sys/dev/acpica/acpi.c
2787
acpi_has_hid(ACPI_HANDLE h)
sys/dev/acpica/acpi.c
2792
if (h == NULL ||
sys/dev/acpica/acpi.c
2793
ACPI_FAILURE(AcpiGetObjectInfo(h, &devinfo)))
sys/dev/acpica/acpi.c
2814
acpi_MatchHid(ACPI_HANDLE h, const char *hid)
sys/dev/acpica/acpi.c
2820
if (hid == NULL || h == NULL ||
sys/dev/acpica/acpi.c
2821
ACPI_FAILURE(AcpiGetObjectInfo(h, &devinfo)))
sys/dev/acpica/acpi.c
3107
acpi_DSMQuery(ACPI_HANDLE h, const uint8_t *uuid, int revision)
sys/dev/acpica/acpi.c
3122
if (!ACPI_SUCCESS(acpi_EvaluateDSM(h, uuid, revision, 0, NULL, &buf))) {
sys/dev/acpica/acpi.c
4010
acpi_parse_prw(ACPI_HANDLE h, struct acpi_prw_data *prw)
sys/dev/acpica/acpi.c
4017
if (h == NULL || prw == NULL)
sys/dev/acpica/acpi.c
4027
status = AcpiEvaluateObject(h, "_PRW", NULL, &prw_buffer);
sys/dev/acpica/acpi.c
4091
printf("ACPI device %s has too many power resources\n", acpi_name(h));
sys/dev/acpica/acpi.c
4650
acpi_UserNotify(const char *subsystem, ACPI_HANDLE h, uint8_t notify)
sys/dev/acpica/acpi.c
4661
status = AcpiNsHandleToPathname(h, &handle_buf, FALSE);
sys/dev/acpica/acpi_acad.c
102
h = acpi_get_handle(dev);
sys/dev/acpica/acpi_acad.c
104
acpi_GetInteger(h, "_PSR", &newstatus);
sys/dev/acpica/acpi_acad.c
115
acpi_UserNotify("ACAD", h, newstatus);
sys/dev/acpica/acpi_acad.c
122
acpi_acad_notify_handler(ACPI_HANDLE h, UINT32 notify, void *context)
sys/dev/acpica/acpi_acad.c
97
ACPI_HANDLE h;
sys/dev/acpica/acpi_apei.c
246
int h = 0, sev;
sys/dev/acpica/acpi_apei.c
267
h = 1;
sys/dev/acpica/acpi_apei.c
271
if (h)
sys/dev/acpica/acpi_apei.c
272
return (h);
sys/dev/acpica/acpi_apei.c
340
int h = 0, off;
sys/dev/acpica/acpi_apei.c
343
h = apei_mem_handler(ged);
sys/dev/acpica/acpi_apei.c
345
h = apei_pcie_handler(ged);
sys/dev/acpica/acpi_apei.c
366
if (h)
sys/dev/acpica/acpi_apei.c
493
apei_notify_handler(ACPI_HANDLE h, UINT32 notify, void *context)
sys/dev/acpica/acpi_button.c
265
acpi_button_notify_handler(ACPI_HANDLE h, UINT32 notify, void *context)
sys/dev/acpica/acpi_button.c
68
static void acpi_button_notify_handler(ACPI_HANDLE h, UINT32 notify,
sys/dev/acpica/acpi_cmbat.c
188
acpi_cmbat_notify_handler(ACPI_HANDLE h, UINT32 notify, void *context)
sys/dev/acpica/acpi_cmbat.c
215
acpi_UserNotify("CMBAT", h, notify);
sys/dev/acpica/acpi_cmbat.c
252
ACPI_HANDLE h;
sys/dev/acpica/acpi_cmbat.c
260
h = acpi_get_handle(dev);
sys/dev/acpica/acpi_cmbat.c
267
as = AcpiEvaluateObject(h, "_BST", NULL, &bst_buffer);
sys/dev/acpica/acpi_cmbat.c
327
ACPI_HANDLE h;
sys/dev/acpica/acpi_cmbat.c
343
h = acpi_get_handle(dev);
sys/dev/acpica/acpi_cmbat.c
348
as = AcpiEvaluateObject(h, bobjs[n].name, NULL, &bix_buffer);
sys/dev/acpica/acpi_cmbat.c
79
static void acpi_cmbat_notify_handler(ACPI_HANDLE h, UINT32 notify,
sys/dev/acpica/acpi_cpu.c
1244
acpi_cpu_notify(ACPI_HANDLE h, UINT32 notify, void *context)
sys/dev/acpica/acpi_cpu.c
184
static void acpi_cpu_notify(ACPI_HANDLE h, UINT32 notify, void *context);
sys/dev/acpica/acpi_dock.c
101
h = acpi_get_handle(dev);
sys/dev/acpica/acpi_dock.c
109
status = AcpiEvaluateObject(h, "_DCK", &args, &buf);
sys/dev/acpica/acpi_dock.c
129
ACPI_HANDLE h;
sys/dev/acpica/acpi_dock.c
131
h = acpi_get_handle(dev);
sys/dev/acpica/acpi_dock.c
132
acpi_SetInteger(h, "_LCK", lock);
sys/dev/acpica/acpi_dock.c
139
ACPI_HANDLE h;
sys/dev/acpica/acpi_dock.c
143
h = acpi_get_handle(dev);
sys/dev/acpica/acpi_dock.c
145
status = acpi_SetInteger(h, ejx, eject);
sys/dev/acpica/acpi_dock.c
260
ACPI_HANDLE h;
sys/dev/acpica/acpi_dock.c
265
h = acpi_get_handle(dev);
sys/dev/acpica/acpi_dock.c
278
acpi_UserNotify("Dock", h, 1);
sys/dev/acpica/acpi_dock.c
334
ACPI_HANDLE h;
sys/dev/acpica/acpi_dock.c
339
h = acpi_get_handle(dev);
sys/dev/acpica/acpi_dock.c
354
acpi_UserNotify("Dock", h, 0);
sys/dev/acpica/acpi_dock.c
395
acpi_dock_notify_handler(ACPI_HANDLE h, UINT32 notify, void *context)
sys/dev/acpica/acpi_dock.c
464
ACPI_HANDLE h, tmp;
sys/dev/acpica/acpi_dock.c
466
h = acpi_get_handle(dev);
sys/dev/acpica/acpi_dock.c
468
ACPI_FAILURE(AcpiGetHandle(h, "_DCK", &tmp)))
sys/dev/acpica/acpi_dock.c
484
ACPI_HANDLE h;
sys/dev/acpica/acpi_dock.c
487
h = acpi_get_handle(dev);
sys/dev/acpica/acpi_dock.c
488
if (sc == NULL || h == NULL)
sys/dev/acpica/acpi_dock.c
493
AcpiEvaluateObject(h, "_INI", NULL, NULL);
sys/dev/acpica/acpi_dock.c
524
AcpiInstallNotifyHandler(h, ACPI_ALL_NOTIFY,
sys/dev/acpica/acpi_dock.c
75
ACPI_HANDLE h;
sys/dev/acpica/acpi_dock.c
78
h = acpi_get_handle(dev);
sys/dev/acpica/acpi_dock.c
80
if (ACPI_FAILURE(acpi_GetInteger(h, "_STA", &sc->_sta)))
sys/dev/acpica/acpi_dock.c
82
if (ACPI_FAILURE(acpi_GetInteger(h, "_BDN", &sc->_bdn)))
sys/dev/acpica/acpi_dock.c
84
if (ACPI_FAILURE(acpi_GetInteger(h, "_UID", &sc->_uid)))
sys/dev/acpica/acpi_dock.c
94
ACPI_HANDLE h;
sys/dev/acpica/acpi_ec.c
280
ACPI_HANDLE h;
sys/dev/acpica/acpi_ec.c
301
status = AcpiGetHandle(NULL, ecdt->Id, &h);
sys/dev/acpica/acpi_ec.c
307
acpi_set_handle(child, h);
sys/dev/acpica/acpi_ec.c
326
acpi_GetInteger(h, "_GLK", &params->glk);
sys/dev/acpica/acpi_ec.c
338
ACPI_HANDLE h;
sys/dev/acpica/acpi_ec.c
375
h = acpi_get_handle(dev);
sys/dev/acpica/acpi_ec.c
381
status = acpi_GetInteger(h, "_UID", &params->uid);
sys/dev/acpica/acpi_ec.c
400
status = acpi_GetInteger(h, "_GLK", &params->glk);
sys/dev/acpica/acpi_ec.c
409
status = AcpiEvaluateObject(h, "_GPE", NULL, &buf);
sys/dev/acpica/acpi_lid.c
251
acpi_lid_notify_handler(ACPI_HANDLE h, UINT32 notify, void *context)
sys/dev/acpica/acpi_lid.c
72
static void acpi_lid_notify_handler(ACPI_HANDLE h, UINT32 notify,
sys/dev/acpica/acpi_package.c
157
ACPI_HANDLE h;
sys/dev/acpica/acpi_package.c
165
h = obj->Reference.Handle;
sys/dev/acpica/acpi_package.c
174
if (ACPI_FAILURE(AcpiGetHandle(scope, obj->String.Pointer, &h)))
sys/dev/acpica/acpi_package.c
175
h = NULL;
sys/dev/acpica/acpi_package.c
178
h = NULL;
sys/dev/acpica/acpi_package.c
182
return (h);
sys/dev/acpica/acpi_pci.c
238
ACPI_HANDLE h;
sys/dev/acpica/acpi_pci.c
262
h = acpi_get_handle(child);
sys/dev/acpica/acpi_pci.c
263
status = acpi_pwr_switch_consumer(h, state);
sys/dev/acpica/acpi_pci.c
267
acpi_d_state_to_str(state), acpi_name(h));
sys/dev/acpica/acpi_pci.c
271
acpi_d_state_to_str(state), acpi_name(h),
sys/dev/acpica/acpi_pci.c
369
acpi_pci_bus_notify_handler(ACPI_HANDLE h, UINT32 notify, void *context)
sys/dev/acpica/acpi_pci.c
388
acpi_pci_device_notify_handler(ACPI_HANDLE h, UINT32 notify, void *context)
sys/dev/acpica/acpi_pci.c
403
child = acpi_get_device(h);
sys/dev/acpica/acpi_pci.c
406
acpi_name(h));
sys/dev/acpica/acpi_pci.c
420
status = acpi_SetInteger(h, "_EJ0", 1);
sys/dev/acpica/acpi_pci.c
424
acpi_name(h), AcpiFormatException(status));
sys/dev/acpica/acpi_pci.c
434
acpi_name(h));
sys/dev/acpica/acpi_pci.c
443
ACPI_HANDLE h;
sys/dev/acpica/acpi_pci.c
447
if (ACPI_FAILURE(AcpiGetHandle(handle, "_EJ0", &h)))
sys/dev/acpica/acpi_pci.c
475
ACPI_HANDLE h;
sys/dev/acpica/acpi_pci.c
479
if (ACPI_FAILURE(AcpiGetHandle(handle, "_EJ0", &h)))
sys/dev/acpica/acpi_pcib_acpi.c
155
ACPI_HANDLE h;
sys/dev/acpica/acpi_pcib_acpi.c
158
if (acpi_disabled("pcib") || (h = acpi_get_handle(dev)) == NULL ||
sys/dev/acpica/acpi_pcib_acpi.c
159
ACPI_FAILURE(AcpiGetObjectInfo(h, &devinfo)))
sys/dev/acpica/acpi_perf.c
104
static void acpi_px_notify(ACPI_HANDLE h, UINT32 notify, void *context);
sys/dev/acpica/acpi_perf.c
402
acpi_px_notify(ACPI_HANDLE h, UINT32 notify, void *context)
sys/dev/acpica/acpi_thermal.c
143
static void acpi_tz_notify_handler(ACPI_HANDLE h, UINT32 notify,
sys/dev/acpica/acpi_thermal.c
854
acpi_tz_notify_handler(ACPI_HANDLE h, UINT32 notify, void *context)
sys/dev/acpica/acpi_thermal.c
876
acpi_UserNotify("Thermal", h, notify);
sys/dev/acpica/acpi_video.c
284
ACPI_HANDLE devh, h;
sys/dev/acpica/acpi_video.c
289
ACPI_FAILURE(AcpiGetHandle(devh, "_DOD", &h)) ||
sys/dev/acpica/acpi_video.c
290
ACPI_FAILURE(AcpiGetHandle(devh, "_DOS", &h)) ||
sys/dev/acpica/acpi_video.c
291
ACPI_FAILURE(AcpiGetType(h, &t_dos)) ||
sys/dev/acpica/acpivar.h
297
void acpi_fake_objhandler(ACPI_HANDLE h, void *data);
sys/dev/acpica/acpivar.h
309
ACPI_HANDLE h;
sys/dev/acpica/acpivar.h
312
if ((h = acpi_get_handle(dev)) == NULL)
sys/dev/acpica/acpivar.h
314
if (ACPI_FAILURE(AcpiGetType(h, &t)))
sys/dev/acpica/acpivar.h
382
UINT64 acpi_DSMQuery(ACPI_HANDLE h, const uint8_t *uuid,
sys/dev/acpica/acpivar.h
400
int acpi_parse_prw(ACPI_HANDLE h, struct acpi_prw_data *prw);
sys/dev/acpica/acpivar.h
402
void acpi_UserNotify(const char *subsystem, ACPI_HANDLE h,
sys/dev/acpica/acpivar.h
410
int acpi_MatchHid(ACPI_HANDLE h, const char *hid);
sys/dev/ahci/ahci_generic.c
101
ACPI_HANDLE h;
sys/dev/ahci/ahci_generic.c
104
if ((h = acpi_get_handle(dev)) == NULL)
sys/dev/ahci/ahci_generic.c
111
if (ACPI_FAILURE(acpi_GetInteger(h, "_CCA",
sys/dev/ahci/ahci_generic.c
118
if (acpi_MatchHid(h, ahci_acpi_quirks[i].hid) != ACPI_MATCHHID_NOMATCH) {
sys/dev/aic7xxx/aic79xx_osm.h
142
#define AIC_CORE_INCLUDE <dev/aic7xxx/aic79xx.h>
sys/dev/aic7xxx/aic7xxx_osm.h
140
#define AIC_CORE_INCLUDE <dev/aic7xxx/aic7xxx.h>
sys/dev/alc/if_alc.c
1733
#define ALC_SYSCTL_STAT_ADD32(c, h, n, p, d) \
sys/dev/alc/if_alc.c
1734
SYSCTL_ADD_UINT(c, h, OID_AUTO, n, CTLFLAG_RD, p, 0, d)
sys/dev/alc/if_alc.c
1735
#define ALC_SYSCTL_STAT_ADD64(c, h, n, p, d) \
sys/dev/alc/if_alc.c
1736
SYSCTL_ADD_UQUAD(c, h, OID_AUTO, n, CTLFLAG_RD, p, d)
sys/dev/ale/if_ale.c
744
#define ALE_SYSCTL_STAT_ADD32(c, h, n, p, d) \
sys/dev/ale/if_ale.c
745
SYSCTL_ADD_UINT(c, h, OID_AUTO, n, CTLFLAG_RD, p, 0, d)
sys/dev/ale/if_ale.c
747
#define ALE_SYSCTL_STAT_ADD64(c, h, n, p, d) \
sys/dev/ale/if_ale.c
748
SYSCTL_ADD_UQUAD(c, h, OID_AUTO, n, CTLFLAG_RD, p, d)
sys/dev/aq/aq_hw.c
310
uint32_t h = 0;
sys/dev/aq/aq_hw.c
320
h = 0x8001300EU;
sys/dev/aq/aq_hw.c
329
mac[1] = (uint8_t)(0xFFU & h);
sys/dev/aq/aq_hw.c
330
h >>= 8;
sys/dev/aq/aq_hw.c
331
mac[0] = (uint8_t)(0xFFU & h);
sys/dev/aq/aq_hw.c
599
unsigned int h = 0U;
sys/dev/aq/aq_hw.c
607
h = (mac_addr[0] << 8) | (mac_addr[1]);
sys/dev/aq/aq_hw.c
613
rpfl2unicast_dest_addressmsw_set(hw, h, index);
sys/dev/ath/ah_osdep.c
274
bus_space_handle_t h = ah->ah_sh;
sys/dev/ath/ah_osdep.c
298
bus_space_write_4(tag, h, reg, val);
sys/dev/ath/ah_osdep.c
308
bus_space_handle_t h = ah->ah_sh;
sys/dev/ath/ah_osdep.c
323
val = bus_space_read_4(tag, h, reg);
sys/dev/ath/ah_osdep.c
372
bus_space_handle_t h = ah->ah_sh;
sys/dev/ath/ah_osdep.c
385
bus_space_write_4(tag, h, reg, val);
sys/dev/ath/ah_osdep.c
395
bus_space_handle_t h = ah->ah_sh;
sys/dev/ath/ah_osdep.c
410
val = bus_space_read_4(tag, h, reg);
sys/dev/ath/ath_hal/ah_internal.h
1007
struct ath_hal *ah = &ahp->h;
sys/dev/ath/ath_hal/ah_internal.h
356
struct ath_hal h; /* public area */
sys/dev/ath/ath_hal/ar5210/ar5210_attach.c
211
ah = &ahp->ah_priv.h;
sys/dev/ath/ath_hal/ar5211/ar5211_attach.c
229
ah = &ahp->ah_priv.h;
sys/dev/ath/ath_hal/ar5212/ar5212_attach.c
242
ah = &ahp->ah_priv.h;
sys/dev/ath/ath_hal/ar5212/ar5212_attach.c
345
ah = &ahp->ah_priv.h;
sys/dev/ath/ath_hal/ar5212/ar5212_reset.c
1357
updateNFHistBuff(struct ar5212NfCalHist *h, int16_t nf)
sys/dev/ath/ath_hal/ar5212/ar5212_reset.c
1359
h->nfCalBuffer[h->currIndex] = nf;
sys/dev/ath/ath_hal/ar5212/ar5212_reset.c
1360
if (++h->currIndex >= AR512_NF_CAL_HIST_MAX)
sys/dev/ath/ath_hal/ar5212/ar5212_reset.c
1361
h->currIndex = 0;
sys/dev/ath/ath_hal/ar5212/ar5212_reset.c
1393
struct ar5212NfCalHist *h = &ahp->ah_nfCalHist;
sys/dev/ath/ath_hal/ar5212/ar5212_reset.c
1401
ichan->rawNoiseFloor = h->privNF; /* most recent value */
sys/dev/ath/ath_hal/ar5212/ar5212_reset.c
1431
updateNFHistBuff(h, nf);
sys/dev/ath/ath_hal/ar5212/ar5212_reset.c
1432
if (h->first_run) {
sys/dev/ath/ath_hal/ar5212/ar5212_reset.c
1436
h->invalidNFcount = AR512_NF_CAL_HIST_MAX;
sys/dev/ath/ath_hal/ar5212/ar5212_reset.c
1437
} else if (--(h->invalidNFcount) == 0) {
sys/dev/ath/ath_hal/ar5212/ar5212_reset.c
1438
h->first_run = 0;
sys/dev/ath/ath_hal/ar5212/ar5212_reset.c
1439
h->privNF = nf = ar5212GetNfHistMid(h->nfCalBuffer);
sys/dev/ath/ath_hal/ar5212/ar5212_reset.c
1444
h->privNF = nf = ar5212GetNfHistMid(h->nfCalBuffer);
sys/dev/ath/ath_hal/ar5312/ar5312_attach.c
86
ah = &ahp->ah_priv.h;
sys/dev/ath/ath_hal/ar5416/ar5416_attach.c
325
ah = &ahp->ah_priv.h;
sys/dev/ath/ath_hal/ar5416/ar5416_attach.c
92
ah = &ahp->ah_priv.h;
sys/dev/ath/ath_hal/ar5416/ar5416_cal.c
597
struct ar5212NfCalHist *h;
sys/dev/ath/ath_hal/ar5416/ar5416_cal.c
620
h = AH5416(ah)->ah_cal.nfCalHist;
sys/dev/ath/ath_hal/ar5416/ar5416_cal.c
631
if (h)
sys/dev/ath/ath_hal/ar5416/ar5416_cal.c
632
nf_val = h[i].privNF;
sys/dev/ath/ath_hal/ar5416/ar5416_cal.c
694
ar5416InitNfHistBuff(struct ar5212NfCalHist *h)
sys/dev/ath/ath_hal/ar5416/ar5416_cal.c
699
h[i].currIndex = 0;
sys/dev/ath/ath_hal/ar5416/ar5416_cal.c
700
h[i].privNF = AR5416_CCA_MAX_GOOD_VALUE;
sys/dev/ath/ath_hal/ar5416/ar5416_cal.c
701
h[i].invalidNFcount = AR512_NF_CAL_HIST_MAX;
sys/dev/ath/ath_hal/ar5416/ar5416_cal.c
703
h[i].nfCalBuffer[j] = AR5416_CCA_MAX_GOOD_VALUE;
sys/dev/ath/ath_hal/ar5416/ar5416_cal.c
711
ar5416UpdateNFHistBuff(struct ath_hal *ah, struct ar5212NfCalHist *h,
sys/dev/ath/ath_hal/ar5416/ar5416_cal.c
718
h[i].nfCalBuffer[h[i].currIndex] = nfarray[i];
sys/dev/ath/ath_hal/ar5416/ar5416_cal.c
720
if (++h[i].currIndex >= AR512_NF_CAL_HIST_MAX)
sys/dev/ath/ath_hal/ar5416/ar5416_cal.c
721
h[i].currIndex = 0;
sys/dev/ath/ath_hal/ar5416/ar5416_cal.c
722
if (h[i].invalidNFcount > 0) {
sys/dev/ath/ath_hal/ar5416/ar5416_cal.c
725
h[i].invalidNFcount = AR512_NF_CAL_HIST_MAX;
sys/dev/ath/ath_hal/ar5416/ar5416_cal.c
727
h[i].invalidNFcount--;
sys/dev/ath/ath_hal/ar5416/ar5416_cal.c
728
h[i].privNF = nfarray[i];
sys/dev/ath/ath_hal/ar5416/ar5416_cal.c
731
h[i].privNF = ar5212GetNfHistMid(h[i].nfCalBuffer);
sys/dev/ath/ath_hal/ar5416/ar5416_cal.h
120
void ar5416InitNfHistBuff(struct ar5212NfCalHist *h);
sys/dev/ath/ath_hal/ar9001/ar9160_attach.c
140
ah = &ahp->ah_priv.h;
sys/dev/ath/ath_hal/ar9002/ar9280_attach.c
175
ah = &ahp->ah_priv.h;
sys/dev/ath/ath_hal/ar9002/ar9285_attach.c
158
ah = &ahp->ah_priv.h;
sys/dev/ath/ath_hal/ar9002/ar9287_attach.c
137
ah = &ahp->ah_priv.h;
sys/dev/atopcase/atopcase_acpi.c
172
atopcase_acpi_notify(ACPI_HANDLE h __unused, UINT32 notify __unused, void *ctx)
sys/dev/bce/if_bce.c
7903
int h;
sys/dev/bce/if_bce.c
7905
h = ether_crc32_le(LLADDR(sdl), ETHER_ADDR_LEN) & 0xFF;
sys/dev/bce/if_bce.c
7906
hashes[(h & 0xE0) >> 5] |= 1 << (h & 0x1F);
sys/dev/bge/if_bge.c
1575
int h;
sys/dev/bge/if_bge.c
1577
h = ether_crc32_le(LLADDR(sdl), ETHER_ADDR_LEN) & 0x7F;
sys/dev/bge/if_bge.c
1578
hashes[(h & 0x60) >> 5] |= 1 << (h & 0x1F);
sys/dev/bge/if_bge.c
6431
#define BGE_SYSCTL_STAT_ADD64(c, h, n, p, d) \
sys/dev/bge/if_bge.c
6432
SYSCTL_ADD_UQUAD(c, h, OID_AUTO, n, CTLFLAG_RD, p, d)
sys/dev/bhnd/nvram/bhnd_nvram_plist.c
362
uint32_t h;
sys/dev/bhnd/nvram/bhnd_nvram_plist.c
364
h = hash32_str(name, HASHINIT);
sys/dev/bhnd/nvram/bhnd_nvram_plist.c
365
hash_list = &plist->names[h % nitems(plist->names)];
sys/dev/bhnd/nvram/bhnd_nvram_plist.c
416
uint32_t h;
sys/dev/bhnd/nvram/bhnd_nvram_plist.c
436
h = hash32_str(prop->name, HASHINIT);
sys/dev/bhnd/nvram/bhnd_nvram_plist.c
437
hash_list = &plist->names[h % nitems(plist->names)];
sys/dev/bhnd/nvram/bhnd_nvram_store_subr.c
651
uint32_t h;
sys/dev/bhnd/nvram/bhnd_nvram_store_subr.c
656
h = hash32_strn(path, path_len, HASHINIT);
sys/dev/bhnd/nvram/bhnd_nvram_store_subr.c
657
plist = &sc->paths[h % nitems(sc->paths)];
sys/dev/bhnd/nvram/bhnd_nvram_store_subr.c
845
uint32_t h;
sys/dev/bhnd/nvram/bhnd_nvram_store_subr.c
863
h = hash32_str(path->path_str, HASHINIT);
sys/dev/bhnd/nvram/bhnd_nvram_store_subr.c
864
plist = &sc->paths[h % nitems(sc->paths)];
sys/dev/cesa/cesa.c
434
memcpy(hin, auth_ctx.sha1ctx.h.b32,
sys/dev/cesa/cesa.c
435
sizeof(auth_ctx.sha1ctx.h.b32));
sys/dev/cesa/cesa.c
437
memcpy(hout, auth_ctx.sha1ctx.h.b32,
sys/dev/cesa/cesa.c
438
sizeof(auth_ctx.sha1ctx.h.b32));
sys/dev/cxgb/cxgb_main.c
3482
t3_register_cpl_handler(struct adapter *sc, int opcode, cpl_handler_t h)
sys/dev/cxgb/cxgb_main.c
3489
new = h ? (uintptr_t)h : (uintptr_t)cpl_not_handled;
sys/dev/cxgbe/crypto/t4_keyctx.c
323
u32[i] = htobe32(auth_ctx->sha1ctx.h.b32[i]);
sys/dev/cxgbe/iw_cxgbe/cm.c
2405
struct c4iw_dev *h = to_c4iw_dev(cm_id->device);
sys/dev/cxgbe/iw_cxgbe/cm.c
2406
struct c4iw_qp *qp = get_qhp(h, conn_param->qpn);
sys/dev/cxgbe/iw_cxgbe/cm.c
2450
ep->ord <= h->rdev.adap->params.max_ordird_qp) {
sys/dev/cxgbe/t4_sge.c
356
t4_register_an_handler(an_handler_t h)
sys/dev/cxgbe/t4_sge.c
360
MPASS(h == NULL || t4_an_handler == NULL);
sys/dev/cxgbe/t4_sge.c
363
atomic_store_rel_ptr(loc, (uintptr_t)h);
sys/dev/cxgbe/t4_sge.c
367
t4_register_fw_msg_handler(int type, fw_msg_handler_t h)
sys/dev/cxgbe/t4_sge.c
372
MPASS(h == NULL || t4_fw_msg_handler[type] == NULL);
sys/dev/cxgbe/t4_sge.c
382
atomic_store_rel_ptr(loc, (uintptr_t)h);
sys/dev/cxgbe/t4_sge.c
386
t4_register_cpl_handler(int opcode, cpl_handler_t h)
sys/dev/cxgbe/t4_sge.c
391
MPASS(h == NULL || t4_cpl_handler[opcode] == NULL);
sys/dev/cxgbe/t4_sge.c
394
atomic_store_rel_ptr(loc, (uintptr_t)h);
sys/dev/cxgbe/t4_sge.c
511
t4_register_shared_cpl_handler(int opcode, cpl_handler_t h, int cookie)
sys/dev/cxgbe/t4_sge.c
547
MPASS(h == NULL || *loc == (uintptr_t)NULL);
sys/dev/cxgbe/t4_sge.c
548
atomic_store_rel_ptr(loc, (uintptr_t)h);
sys/dev/cxgbe/t4_sge.c
6572
static void (*h[])(struct adapter *, struct sge_eq *) = {NULL,
sys/dev/cxgbe/t4_sge.c
6580
(*h[eq->type])(sc, eq);
sys/dev/dc/if_dc.c
1005
h = dc_mchash_le(sc, if_getbroadcastaddr(ifp));
sys/dev/dc/if_dc.c
1006
sp[h >> 4] |= htole32(1 << (h & 0xF));
sys/dev/dc/if_dc.c
1036
int h = 0;
sys/dev/dc/if_dc.c
1038
h = dc_mchash_be(LLADDR(sdl));
sys/dev/dc/if_dc.c
1039
if (h < 32)
sys/dev/dc/if_dc.c
1040
hashes[0] |= (1 << h);
sys/dev/dc/if_dc.c
1042
hashes[1] |= (1 << (h - 32));
sys/dev/dc/if_dc.c
1056
int h = 0;
sys/dev/dc/if_dc.c
1058
h = dc_mchash_le(ctx->sc, LLADDR(sdl));
sys/dev/dc/if_dc.c
1059
if (h < 32)
sys/dev/dc/if_dc.c
1060
ctx->hashes[0] |= (1 << h);
sys/dev/dc/if_dc.c
1062
ctx->hashes[1] |= (1 << (h - 32));
sys/dev/dc/if_dc.c
1269
uint32_t h;
sys/dev/dc/if_dc.c
1271
h = dc_mchash_le(sc, LLADDR(sdl));
sys/dev/dc/if_dc.c
1272
sc->dc_cdata.dc_sbuf[h >> 4] |= htole32(1 << (h & 0xF));
sys/dev/dc/if_dc.c
1282
uint32_t h, *sp;
sys/dev/dc/if_dc.c
1315
h = dc_mchash_le(sc, if_getbroadcastaddr(ifp));
sys/dev/dc/if_dc.c
1316
sp[h >> 4] |= htole32(1 << (h & 0xF));
sys/dev/dc/if_dc.c
959
uint32_t h;
sys/dev/dc/if_dc.c
961
h = dc_mchash_le(sc, LLADDR(sdl));
sys/dev/dc/if_dc.c
962
sc->dc_cdata.dc_sbuf[h >> 4] |= htole32(1 << (h & 0xF));
sys/dev/dc/if_dc.c
972
uint32_t h, *sp;
sys/dev/dpaa2/dpaa2_mc_acpi.c
205
dpaa2_mc_acpi_probe_child(ACPI_HANDLE h, device_t *dev, int level, void *arg)
sys/dev/dpaa2/dpaa2_mc_acpi.c
217
acpi_name(h), level, ctx->count);
sys/dev/dpaa2/dpaa2_mc_acpi.c
220
if (ACPI_FAILURE(acpi_GetInteger(h, "_UID", &uid)))
sys/dev/dpaa2/dpaa2_mc_acpi.c
237
ad->ad_handle = h;
sys/dev/dpaa2/dpaa2_mc_acpi.c
91
ACPI_HANDLE h;
sys/dev/dpaa2/dpaa2_mc_acpi.c
95
h = acpi_get_handle(dev);
sys/dev/dpaa2/dpaa2_mc_acpi.c
96
if (h == NULL)
sys/dev/dpaa2/dpaa2_mc_acpi.c
99
s = acpi_GetInteger(h, "_UID", &sc->uid);
sys/dev/dpaa2/memac_mdio_acpi.c
103
ACPI_HANDLE h;
sys/dev/dpaa2/memac_mdio_acpi.c
108
h = acpi_get_handle(dev);
sys/dev/dpaa2/memac_mdio_acpi.c
110
s = acpi_GetInteger(h, "_UID", &sc->uid);
sys/dev/dpaa2/memac_mdio_acpi.c
213
memac_mdio_acpi_probe_child(ACPI_HANDLE h, device_t *dev, int level, void *arg)
sys/dev/dpaa2/memac_mdio_acpi.c
223
if (ACPI_FAILURE(acpi_GetInteger(h, "_ADR", &adr)))
sys/dev/dpaa2/memac_mdio_acpi.c
235
ad->ad_handle = h;
sys/dev/drm2/drm_edid.c
1139
newmode = drm_gtf_mode(dev, m->w, m->h, m->r, 0, 0);
sys/dev/drm2/drm_edid.c
1168
newmode = drm_cvt_mode(dev, m->w, m->h, m->r, rb, 0, 0);
sys/dev/drm2/drm_edid.c
1253
est3_modes[m].h,
sys/dev/drm2/drm_edid.c
861
int w, h;
sys/dev/drm2/drm_edid.c
877
(mode->vdisplay == cea_interlaced[i].h / 2)) {
sys/dev/drm2/drm_edid_modes.h
416
short h;
sys/dev/drm2/drm_linux_list.h
199
hlist_unhashed(const struct hlist_node *h)
sys/dev/drm2/drm_linux_list.h
202
return !h->pprev;
sys/dev/drm2/drm_linux_list.h
206
hlist_empty(const struct hlist_head *h)
sys/dev/drm2/drm_linux_list.h
209
return !h->first;
sys/dev/drm2/drm_linux_list.h
232
hlist_add_head(struct hlist_node *n, struct hlist_head *h)
sys/dev/drm2/drm_linux_list.h
235
n->next = h->first;
sys/dev/drm2/drm_linux_list.h
236
if (h->first)
sys/dev/drm2/drm_linux_list.h
237
h->first->pprev = &n->next;
sys/dev/drm2/drm_linux_list.h
238
h->first = n;
sys/dev/drm2/drm_linux_list.h
239
n->pprev = &h->first;
sys/dev/drm2/ttm/ttm_page_alloc.c
906
char *h[] = {"pool", "refills", "pages freed", "size"};
sys/dev/drm2/ttm/ttm_page_alloc.c
912
h[0], h[1], h[2], h[3]);
sys/dev/drm2/ttm/ttm_page_alloc_dma.c
1108
char *h[] = {"pool", "refills", "pages freed", "inuse", "available",
sys/dev/drm2/ttm/ttm_page_alloc_dma.c
1116
h[0], h[1], h[2], h[3], h[4], h[5]);
sys/dev/e1000/e1000_mac.c
133
u8 E1000_UNUSEDARG *h, u32 E1000_UNUSEDARG a)
sys/dev/e1000/e1000_mac.c
159
u8 E1000_UNUSEDARG *h, u32 E1000_UNUSEDARG a)
sys/dev/e1000/e1000_mac.h
44
void e1000_null_update_mc(struct e1000_hw *hw, u8 *h, u32 a);
sys/dev/e1000/e1000_mac.h
46
int e1000_null_rar_set(struct e1000_hw *hw, u8 *h, u32 a);
sys/dev/enetc/enetc_hw.h
11
#define GENMASK(h, l) (((~0U) - (1U << (l)) + 1) & (~0U >> (32 - 1 - (h))))
sys/dev/eqos/if_eqos.c
84
#define TX_QUEUED(h, t) ((((h) - (t)) + TX_DESC_COUNT) % TX_DESC_COUNT)
sys/dev/et/if_et.c
1549
uint32_t h, *hp, *hash = arg;
sys/dev/et/if_et.c
1551
h = ether_crc32_be(LLADDR(sdl), ETHER_ADDR_LEN);
sys/dev/et/if_et.c
1552
h = (h & 0x3f800000) >> 23;
sys/dev/et/if_et.c
1555
if (h >= 32 && h < 64) {
sys/dev/et/if_et.c
1556
h -= 32;
sys/dev/et/if_et.c
1558
} else if (h >= 64 && h < 96) {
sys/dev/et/if_et.c
1559
h -= 64;
sys/dev/et/if_et.c
1561
} else if (h >= 96) {
sys/dev/et/if_et.c
1562
h -= 96;
sys/dev/et/if_et.c
1565
*hp |= (1 << h);
sys/dev/et/if_et.c
2414
#define ET_SYSCTL_STAT_ADD32(c, h, n, p, d) \
sys/dev/et/if_et.c
2415
SYSCTL_ADD_UINT(c, h, OID_AUTO, n, CTLFLAG_RD, p, 0, d)
sys/dev/et/if_et.c
2416
#define ET_SYSCTL_STAT_ADD64(c, h, n, p, d) \
sys/dev/et/if_et.c
2417
SYSCTL_ADD_UQUAD(c, h, OID_AUTO, n, CTLFLAG_RD, p, d)
sys/dev/fdc/fdc_acpi.c
186
fdc_acpi_probe_child(ACPI_HANDLE h, device_t *dev, int level, void *arg)
sys/dev/fdc/fdc_acpi.c
46
static ACPI_STATUS fdc_acpi_probe_child(ACPI_HANDLE h, device_t *dev,
sys/dev/firmware/arm/scmi.c
106
#define SCMI_IS_MSG_TYPE_NOTIF(h) \
sys/dev/firmware/arm/scmi.c
107
SCMI_MSG_TYPE_CHECK((h), SCMI_MSG_TYPE_NOTIF)
sys/dev/firmware/arm/scmi.c
108
#define SCMI_IS_MSG_TYPE_DRESP(h) \
sys/dev/firmware/arm/scmi.c
109
SCMI_MSG_TYPE_CHECK((h), SCMI_MSG_TYPE_DRESP)
sys/dev/firmware/arm/scmi.h
81
#define hdr_to_msg(h) __containerof((h), struct scmi_msg, hdr)
sys/dev/fxp/if_fxp.c
3111
#define FXP_SYSCTL_STAT_ADD(c, h, n, p, d) \
sys/dev/fxp/if_fxp.c
3112
SYSCTL_ADD_UINT(c, h, OID_AUTO, n, CTLFLAG_RD, p, 0, d)
sys/dev/fxp/if_fxpreg.h
133
#define __FXP_BITFIELD8(a, b, c, d, e, f, g, h) a, b, c, d, e, f, g, h
sys/dev/fxp/if_fxpreg.h
141
#define __FXP_BITFIELD8(a, b, c, d, e, f, g, h) h, g, f, e, d, c, b, a
sys/dev/hid/hid.c
238
hid_get_item(struct hid_data *s, struct hid_item *h)
sys/dev/hid/hid.c
286
*h = *c;
sys/dev/hid/hid.c
287
DPRINTFN(1, "%u,%u,%u\n", h->loc.pos,
sys/dev/hid/hid.c
288
h->loc.size, h->loc.count);
sys/dev/hid/hid.c
393
*h = *c;
sys/dev/hid/hid.c
405
*h = *c;
sys/dev/hid/hid.c
577
struct hid_item h;
sys/dev/hid/hid.c
586
for (d = hid_start_parse(buf, len, 1 << k); hid_get_item(d, &h);) {
sys/dev/hid/hid.c
587
if (h.kind == k && h.report_ID == id) {
sys/dev/hid/hid.c
589
if (lpos > h.loc.pos)
sys/dev/hid/hid.c
590
lpos = h.loc.pos;
sys/dev/hid/hid.c
592
temp = h.loc.pos + (h.loc.size * h.loc.count);
sys/dev/hid/hid.c
596
if (h.report_ID != 0)
sys/dev/hid/hid.c
617
struct hid_item h;
sys/dev/hid/hid.c
627
for (d = hid_start_parse(buf, len, 1 << k); hid_get_item(d, &h);) {
sys/dev/hid/hid.c
628
if (h.kind == k) {
sys/dev/hid/hid.c
630
if ((h.report_ID != 0) && !any_id) {
sys/dev/hid/hid.c
632
*id = h.report_ID;
sys/dev/hid/hid.c
636
if (lpos > h.loc.pos)
sys/dev/hid/hid.c
637
lpos = h.loc.pos;
sys/dev/hid/hid.c
639
temp = h.loc.pos + (h.loc.size * h.loc.count);
sys/dev/hid/hid.c
671
struct hid_item h;
sys/dev/hid/hid.c
674
for (d = hid_start_parse(desc, size, 1 << k); hid_get_item(d, &h);) {
sys/dev/hid/hid.c
675
for (i = 0; i < h.nusages; i++) {
sys/dev/hid/hid.c
676
if (h.kind == k && h.usages[i] == u) {
sys/dev/hid/hid.c
680
*loc = h.loc;
sys/dev/hid/hid.c
682
*flags = h.flags;
sys/dev/hid/hid.c
684
*id = h.report_ID;
sys/dev/hid/hid.h
318
int hid_get_item(struct hid_data *s, struct hid_item *h);
sys/dev/hid/hidbus.c
136
struct hid_item h;
sys/dev/hid/hidbus.c
140
HIDBUS_FOREACH_ITEM(d, &h, tlc_index) {
sys/dev/hid/hidbus.c
141
for (i = 0; i < h.nusages; i++) {
sys/dev/hid/hidbus.c
142
if (h.kind == k && h.usages[i] == u) {
sys/dev/hid/hidbus.c
146
*loc = h.loc;
sys/dev/hid/hidbus.c
148
*flags = h.flags;
sys/dev/hid/hidbus.c
150
*id = h.report_ID;
sys/dev/hid/hidbus.c
151
if (ai != NULL && (h.flags&HIO_RELATIVE) == 0)
sys/dev/hid/hidbus.c
153
.max = h.logical_maximum,
sys/dev/hid/hidbus.c
154
.min = h.logical_minimum,
sys/dev/hid/hidbus.c
155
.res = hid_item_resolution(&h),
sys/dev/hid/hidbus.c
177
struct hid_item h;
sys/dev/hid/hidbus.c
181
HIDBUS_FOREACH_ITEM(d, &h, tlc_index) {
sys/dev/hid/hidbus.c
182
if (h.kind == hid_collection && h.usage == usage) {
sys/dev/hid/hidbus.h
138
#define HIDBUS_LOOKUP_ID(d, h) hidbus_lookup_id((d), (h), nitems(h))
sys/dev/hid/hidbus.h
139
#define HIDBUS_LOOKUP_DRIVER_INFO(d, h) \
sys/dev/hid/hidbus.h
140
hidbus_lookup_driver_info((d), (h), nitems(h))
sys/dev/hid/hidmap.h
240
#define hidmap_set_debug_var(h, d) _hidmap_set_debug_var((h), (d))
sys/dev/hid/hidquirk.c
76
#define HID_QUIRK_VP(b,v,p,l,h,...) \
sys/dev/hid/hidquirk.c
77
{ .bus = (b), .vid = (v), .pid = (p), .lo_rev = (l), .hi_rev = (h), \
sys/dev/hid/hidquirk.c
79
#define USB_QUIRK(v,p,l,h,...) \
sys/dev/hid/hidquirk.c
80
HID_QUIRK_VP(BUS_USB, USB_VENDOR_##v, USB_PRODUCT_##v##_##p, l, h, __VA_ARGS__)
sys/dev/hid/ietp.c
371
int32_t x, y, w, h, wh;
sys/dev/hid/ietp.c
416
h = (wh >> 4) * (sc->trace_y - IETP_FWIDTH_REDUCE);
sys/dev/hid/ietp.c
424
.ori = w > h ? 1 : 0,
sys/dev/hid/ietp.c
425
.maj = MAX(w, h),
sys/dev/hid/ietp.c
426
.min = MIN(w, h),
sys/dev/hpt27xx/him.h
277
#include <dev/hpt27xx/himfuncs.h>
sys/dev/hptnr/him.h
277
#include <dev/hptnr/himfuncs.h>
sys/dev/hptrr/him.h
245
#include <dev/hptrr/himfuncs.h>
sys/dev/hyperv/vmbus/vmbus_var.h
161
#define GENMASK_ULL(h, l) (((~0ULL) >> (64 - (h) - 1)) & ((~0ULL) << (l)))
sys/dev/iavf/iavf_osdep.h
119
#define CPU_TO_LE64(h) htole64(h)
sys/dev/iavf/iavf_osdep.h
233
#define iavf_debug(h, m, s, ...) iavf_debug_shared(h, m, s, ##__VA_ARGS__)
sys/dev/igc/igc_mac.c
105
u8 IGC_UNUSEDARG *h, u32 IGC_UNUSEDARG a)
sys/dev/igc/igc_mac.c
79
u8 IGC_UNUSEDARG *h, u32 IGC_UNUSEDARG a)
sys/dev/igc/igc_mac.h
15
void igc_null_update_mc(struct igc_hw *hw, u8 *h, u32 a);
sys/dev/igc/igc_mac.h
17
int igc_null_rar_set(struct igc_hw *hw, u8 *h, u32 a);
sys/dev/ipmi/ipmi_acpi.c
47
#include <ipmi.h>
sys/dev/ipmi/ipmi_acpi.c
48
#include <ipmivars.h>
sys/dev/ipmi/ipmi_acpi.c
50
#include <sys/ipmi.h>
sys/dev/ipmi/ipmi_acpi.c
51
#include <dev/ipmi/ipmivars.h>
sys/dev/ipmi/ipmi_smbios.c
90
smbios_ipmi_info(struct smbios_structure_header *h, void *arg)
sys/dev/ipmi/ipmi_smbios.c
95
if (h->type != 38 || h->length <
sys/dev/ipmi/ipmi_smbios.c
98
s = (struct ipmi_entry *)h;
sys/dev/irdma/osdep.h
125
#define irdma_debug(h, m, s, ...) \
sys/dev/irdma/osdep.h
127
if (!(h)) { \
sys/dev/irdma/osdep.h
130
} else if (((m) & (h)->debug_mask)) { \
sys/dev/irdma/osdep.h
73
#define HASH_ADD_RCU(h, n, k) \
sys/dev/irdma/osdep.h
74
hlist_add_head_rcu(n, &h[jhash(&k, sizeof(k), 0) >> (32 - ilog2(ARRAY_SIZE(h)))])
sys/dev/irdma/osdep.h
76
#define HASH_ADD(h, n, k) \
sys/dev/irdma/osdep.h
77
hlist_add_head(n, &h[jhash(&k, sizeof(k), 0) >> (32 - ilog2(ARRAY_SIZE(h)))])
sys/dev/ixgbe/ixgbe_type_e610.h
76
#define GENMASK(h, l) \
sys/dev/ixgbe/ixgbe_type_e610.h
77
(((~0UL) << (l)) & (~0UL >> (BITS_PER_LONG - 1 - (h))))
sys/dev/ixgbe/ixgbe_type_e610.h
79
#define GENMASK_ULL(h, l) \
sys/dev/ixgbe/ixgbe_type_e610.h
80
(((~0ULL) << (l)) & (~0ULL >> (BITS_PER_LONG_LONG - 1 - (h))))
sys/dev/ixl/i40e_osdep.h
101
#define CPU_TO_LE64(h) htole64(h)
sys/dev/ixl/i40e_osdep.h
178
#define i40e_debug(h, m, s, ...) i40e_debug_shared(h, m, s, ##__VA_ARGS__)
sys/dev/jme/if_jme.c
957
#define JME_SYSCTL_STAT_ADD32(c, h, n, p, d) \
sys/dev/jme/if_jme.c
958
SYSCTL_ADD_UINT(c, h, OID_AUTO, n, CTLFLAG_RD, p, 0, d)
sys/dev/lge/if_lge.c
356
uint32_t h, *hashes = arg;
sys/dev/lge/if_lge.c
358
h = ether_crc32_be(LLADDR(sdl), ETHER_ADDR_LEN) >> 26;
sys/dev/lge/if_lge.c
359
if (h < 32)
sys/dev/lge/if_lge.c
360
hashes[0] |= (1 << h);
sys/dev/lge/if_lge.c
362
hashes[1] |= (1 << (h - 32));
sys/dev/liquidio/base/lio_console.c
859
struct lio_firmware_file_header *h;
sys/dev/liquidio/base/lio_console.c
870
h = __DECONST(struct lio_firmware_file_header *, data);
sys/dev/liquidio/base/lio_console.c
872
if (be32toh(h->magic) != LIO_NIC_MAGIC) {
sys/dev/liquidio/base/lio_console.c
879
if (crc32_result != be32toh(h->crc32)) {
sys/dev/liquidio/base/lio_console.c
881
crc32_result, be32toh(h->crc32));
sys/dev/liquidio/base/lio_console.c
885
if (memcmp(LIO_BASE_VERSION, h->version,
sys/dev/liquidio/base/lio_console.c
888
LIO_BASE_VERSION, h->version);
sys/dev/liquidio/base/lio_console.c
892
if (be32toh(h->num_images) > LIO_MAX_IMAGES) {
sys/dev/liquidio/base/lio_console.c
894
be32toh(h->num_images));
sys/dev/liquidio/base/lio_console.c
898
lio_dev_info(oct, "Firmware version: %s\n", h->version);
sys/dev/liquidio/base/lio_console.c
900
h->version);
sys/dev/liquidio/base/lio_console.c
904
lio_dev_info(oct, "Loading %d image(s)\n", be32toh(h->num_images));
sys/dev/liquidio/base/lio_console.c
907
for (i = 0; i < be32toh(h->num_images); i++) {
sys/dev/liquidio/base/lio_console.c
908
load_addr = be64toh(h->desc[i].addr);
sys/dev/liquidio/base/lio_console.c
909
image_len = be32toh(h->desc[i].len);
sys/dev/liquidio/base/lio_console.c
934
lio_dev_info(oct, "Writing boot command: %s\n", h->bootcmd);
sys/dev/liquidio/base/lio_console.c
937
lio_console_send_cmd(oct, h->bootcmd, 50);
sys/dev/mii/mii.c
633
u_int h;
sys/dev/mii/mii.c
635
h = (id1 << 6) | (id2 >> 10);
sys/dev/mii/mii.c
637
return ((mii_bitreverse(h >> 16) << 16) |
sys/dev/mii/mii.c
638
(mii_bitreverse((h >> 8) & 0xff) << 8) |
sys/dev/mii/mii.c
639
mii_bitreverse(h & 0xff));
sys/dev/mlx5/mlx5_core/mlx5_health.c
132
struct mlx5_health_buffer __iomem *h = health->health;
sys/dev/mlx5/mlx5_core/mlx5_health.c
133
u32 rfr = ioread32be(&h->rfr) >> MLX5_RFR_OFFSET;
sys/dev/mlx5/mlx5_core/mlx5_health.c
134
u8 synd = ioread8(&h->synd);
sys/dev/mlx5/mlx5_core/mlx5_health.c
169
struct mlx5_health_buffer __iomem *h = health->health;
sys/dev/mlx5/mlx5_core/mlx5_health.c
170
bool err = ioread32be(&h->fw_ver) == 0xffffffff;
sys/dev/mlx5/mlx5_core/mlx5_health.c
508
struct mlx5_health_buffer __iomem *h = health->health;
sys/dev/mlx5/mlx5_core/mlx5_health.c
509
u8 synd = ioread8(&h->synd);
sys/dev/mlx5/mlx5_core/mlx5_health.c
522
for (i = 0; i < ARRAY_SIZE(h->assert_var); i++)
sys/dev/mlx5/mlx5_core/mlx5_health.c
524
ioread32be(h->assert_var + i));
sys/dev/mlx5/mlx5_core/mlx5_health.c
527
ioread32be(&h->assert_exit_ptr));
sys/dev/mlx5/mlx5_core/mlx5_health.c
529
ioread32be(&h->assert_callra));
sys/dev/mlx5/mlx5_core/mlx5_health.c
533
mlx5_core_info(dev, "hw_id 0x%08x\n", ioread32be(&h->hw_id));
sys/dev/mlx5/mlx5_core/mlx5_health.c
534
mlx5_core_info(dev, "irisc_index %d\n", ioread8(&h->irisc_index));
sys/dev/mlx5/mlx5_core/mlx5_health.c
536
ioread8(&h->synd), hsynd_str(ioread8(&h->synd)));
sys/dev/mlx5/mlx5_core/mlx5_health.c
537
mlx5_core_info(dev, "ext_synd 0x%04x\n", ioread16be(&h->ext_synd));
sys/dev/mlx5/mlx5_core/mlx5_health.c
538
fw = ioread32be(&h->fw_ver);
sys/dev/mwl/mwlhal.c
2025
int i, j, f, l, h;
sys/dev/mwl/mwlhal.c
2028
h = 0;
sys/dev/mwl/mwlhal.c
2038
if (f > h)
sys/dev/mwl/mwlhal.c
2039
h = f;
sys/dev/mwl/mwlhal.c
2049
ci->freqHigh = h;
sys/dev/mwl/mwlhal.c
2744
const FWCmdHdr *h = (const FWCmdHdr *)mh->mh_cmdbuf;
sys/dev/mwl/mwlhal.c
2748
len = le16toh(h->Length);
sys/dev/mwl/mwlhal.c
2751
mwlcmdname(le16toh(h->Cmd) &~ 0x8000), len, h->SeqNum, h->MacId);
sys/dev/mwl/mwlhal.c
2754
mwlcmdname(le16toh(h->Cmd) &~ 0x8000), len, le16toh(h->SeqNum));
sys/dev/mwl/mwlhal.c
2760
int result = le16toh(h->Result);
sys/dev/mwl/mwlhal.c
2767
cp = (const uint8_t *)h;
sys/dev/my/if_my.c
303
int h;
sys/dev/my/if_my.c
305
h = ~ether_crc32_be(LLADDR(sdl), ETHER_ADDR_LEN) >> 26;
sys/dev/my/if_my.c
306
if (h < 32)
sys/dev/my/if_my.c
307
hashes[0] |= (1 << h);
sys/dev/my/if_my.c
309
hashes[1] |= (1 << (h - 32));
sys/dev/nfe/if_nfe.c
3043
#define NFE_SYSCTL_STAT_ADD32(c, h, n, p, d) \
sys/dev/nfe/if_nfe.c
3044
SYSCTL_ADD_UINT(c, h, OID_AUTO, n, CTLFLAG_RD, p, 0, d)
sys/dev/nfe/if_nfe.c
3045
#define NFE_SYSCTL_STAT_ADD64(c, h, n, p, d) \
sys/dev/nfe/if_nfe.c
3046
SYSCTL_ADD_UQUAD(c, h, OID_AUTO, n, CTLFLAG_RD, p, d)
sys/dev/nge/if_nge.c
2609
#define NGE_SYSCTL_STAT_ADD32(c, h, n, p, d) \
sys/dev/nge/if_nge.c
2610
SYSCTL_ADD_UINT(c, h, OID_AUTO, n, CTLFLAG_RD, p, 0, d)
sys/dev/nge/if_nge.c
664
uint32_t h;
sys/dev/nge/if_nge.c
673
h = ether_crc32_be(LLADDR(sdl), ETHER_ADDR_LEN) >> 21;
sys/dev/nge/if_nge.c
674
index = (h >> 4) & 0x7F;
sys/dev/nge/if_nge.c
675
bit = h & 0xF;
sys/dev/nvdimm/nvdimm_nfit.c
48
ACPI_NFIT_HEADER *h, *end;
sys/dev/nvdimm/nvdimm_nfit.c
53
h = (ACPI_NFIT_HEADER *)(nfitbl + 1);
sys/dev/nvdimm/nvdimm_nfit.c
59
while (h < end) {
sys/dev/nvdimm/nvdimm_nfit.c
60
if (h->Type == type) {
sys/dev/nvdimm/nvdimm_nfit.c
61
bcopy((char *)h + offset, &val, load_size);
sys/dev/nvdimm/nvdimm_nfit.c
65
ptrs[count] = h;
sys/dev/nvdimm/nvdimm_nfit.c
71
if (h->Length == 0)
sys/dev/nvdimm/nvdimm_nfit.c
73
h = (ACPI_NFIT_HEADER *)((char *)h + h->Length);
sys/dev/ocs_fc/ocs_os.h
329
#define ocs_strstr(h,n) strstr(h,n)
sys/dev/ocs_fc/ocs_os.h
330
#define ocs_strsep(h, n) strsep(h, n)
sys/dev/ocs_fc/ocs_utils.c
2684
pool_hdr_t *h;
sys/dev/ocs_fc/ocs_utils.c
2691
h = ocs_list_remove_head(&pool->freelist);
sys/dev/ocs_fc/ocs_utils.c
2693
if (h != NULL) {
sys/dev/ocs_fc/ocs_utils.c
2695
item = &h[1];
sys/dev/ocs_fc/ocs_utils.c
2717
pool_hdr_t *h;
sys/dev/ocs_fc/ocs_utils.c
2726
h = &((pool_hdr_t*)item)[-1];
sys/dev/ocs_fc/ocs_utils.c
2728
ocs_list_add_tail(&pool->freelist, h);
sys/dev/ocs_fc/ocs_utils.c
2772
pool_hdr_t *h = ocs_array_get(pool->a, idx);
sys/dev/ocs_fc/ocs_utils.c
2774
if (h == NULL) {
sys/dev/ocs_fc/ocs_utils.c
2777
return &h[1];
sys/dev/pccbb/pccbb.c
909
uint32_t b, h;
sys/dev/pccbb/pccbb.c
958
h = PCIB_READ_CONFIG(brdev, b, 0, 0, PCIR_HDRTYPE, 1);
sys/dev/pccbb/pccbb.c
959
if ((h & PCIM_MFDEV) == 0)
sys/dev/pccbb/pccbb.c
963
h = PCIB_READ_CONFIG(brdev, b, 0, func,
sys/dev/pccbb/pccbb.c
965
if (h == 0)
sys/dev/pci/controller/pci_n1sdp.c
167
ACPI_HANDLE h;
sys/dev/pci/controller/pci_n1sdp.c
170
if (acpi_disabled("pcib") || (h = acpi_get_handle(dev)) == NULL ||
sys/dev/pci/controller/pci_n1sdp.c
171
ACPI_FAILURE(AcpiGetObjectInfo(h, &devinfo)))
sys/dev/pci/controller/pci_n1sdp.c
263
bus_space_handle_t h;
sys/dev/pci/controller/pci_n1sdp.c
278
if (n1sdp_get_bus_space(dev, bus, slot, func, reg, &t, &h, &offset) !=0)
sys/dev/pci/controller/pci_n1sdp.c
281
data = bus_space_read_4(t, h, offset & ~3);
sys/dev/pci/controller/pci_n1sdp.c
309
bus_space_handle_t h;
sys/dev/pci/controller/pci_n1sdp.c
324
if (n1sdp_get_bus_space(dev, bus, slot, func, reg, &t, &h, &offset) !=0)
sys/dev/pci/controller/pci_n1sdp.c
327
data = bus_space_read_4(t, h, offset & ~3);
sys/dev/pci/controller/pci_n1sdp.c
345
bus_space_write_4(t, h, offset & ~3, data);
sys/dev/pci/pci_host_generic_acpi.c
117
ACPI_HANDLE h;
sys/dev/pci/pci_host_generic_acpi.c
120
if (acpi_disabled("pcib") || (h = acpi_get_handle(dev)) == NULL ||
sys/dev/pci/pci_host_generic_acpi.c
121
ACPI_FAILURE(AcpiGetObjectInfo(h, &devinfo)))
sys/dev/pci/pci_host_generic_den0115.c
62
ACPI_HANDLE h;
sys/dev/pci/pci_host_generic_den0115.c
65
if (acpi_disabled("pcib") || (h = acpi_get_handle(dev)) == NULL ||
sys/dev/pci/pci_host_generic_den0115.c
66
ACPI_FAILURE(AcpiGetObjectInfo(h, &devinfo)))
sys/dev/pci/pcireg.h
289
#define PCI_PPBMEMBASE(h,l) ((((uint64_t)(h) << 32) + ((l)<<16)) & ~0xfffff)
sys/dev/pci/pcireg.h
290
#define PCI_PPBMEMLIMIT(h,l) ((((uint64_t)(h) << 32) + ((l)<<16)) | 0xfffff)
sys/dev/pci/pcireg.h
291
#define PCI_PPBIOBASE(h,l) ((((h)<<16) + ((l)<<8)) & ~0xfff)
sys/dev/pci/pcireg.h
292
#define PCI_PPBIOLIMIT(h,l) ((((h)<<16) + ((l)<<8)) | 0xfff)
sys/dev/pms/RefTisa/discovery/dm/dmsmp.c
1300
if (fis->h.fisType == REG_DEV_TO_HOST_FIS)
sys/dev/pms/RefTisa/discovery/dm/dmsmp.c
1329
else if (fis->h.error == REG_DEV_TO_HOST_FIS)
sys/dev/pms/RefTisa/discovery/dm/dmsmp.c
1508
if (fis->h.fisType == REG_DEV_TO_HOST_FIS)
sys/dev/pms/RefTisa/discovery/dm/dmsmp.c
1535
else if (fis->h.error == REG_DEV_TO_HOST_FIS)
sys/dev/pms/RefTisa/sallsdk/api/sa_spec.h
275
agsaFisBISTHeader_t h;
sys/dev/pms/RefTisa/sallsdk/api/sa_spec.h
321
agsaFisRegD2HHeader_t h;
sys/dev/pms/RefTisa/sallsdk/api/sa_spec.h
364
agsaFisRegH2DHeader_t h;
sys/dev/pms/RefTisa/sallsdk/api/sa_spec.h
385
agsaFisSetDevBitsHeader_t h;
sys/dev/pms/RefTisa/sallsdk/api/sa_spec.h
435
agsaFisPioSetupHeader_t h;
sys/dev/pms/RefTisa/sallsdk/spc/saint.c
2224
SA_DBG5((" fisType = %x\n", fisD2H->h.fisType));
sys/dev/pms/RefTisa/sallsdk/spc/saint.c
2225
SA_DBG5((" i_pmPort = %x\n", fisD2H->h.i_pmPort));
sys/dev/pms/RefTisa/sallsdk/spc/saint.c
2226
SA_DBG5((" status = %x\n", fisD2H->h.status));
sys/dev/pms/RefTisa/sallsdk/spc/saint.c
2227
SA_DBG5((" error = %x\n", fisD2H->h.error));
sys/dev/pms/RefTisa/sat/src/smsat.c
11734
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
11735
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
11736
fis->h.command = SAT_READ_VERIFY_SECTORS_EXT;/* 0x42 */
sys/dev/pms/RefTisa/sat/src/smsat.c
11737
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
11757
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
11758
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
11759
fis->h.command = SAT_READ_VERIFY_SECTORS;/* 0x40 */
sys/dev/pms/RefTisa/sat/src/smsat.c
11760
fis->h.features = 0; /* FIS features NA */
sys/dev/pms/RefTisa/sat/src/smsat.c
11804
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
11805
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
11806
fis->h.command = SAT_SMART; /* 0xB0 */
sys/dev/pms/RefTisa/sat/src/smsat.c
11807
fis->h.features = SAT_SMART_EXEUTE_OFF_LINE_IMMEDIATE; /* FIS features NA */
sys/dev/pms/RefTisa/sat/src/smsat.c
11868
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
11869
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
11870
fis->h.command = SAT_SMART; /* 0x40 */
sys/dev/pms/RefTisa/sat/src/smsat.c
11871
fis->h.features = SAT_SMART_EXEUTE_OFF_LINE_IMMEDIATE; /* FIS features NA */
sys/dev/pms/RefTisa/sat/src/smsat.c
11919
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
11920
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
11921
fis->h.command = SAT_SMART; /* 0x40 */
sys/dev/pms/RefTisa/sat/src/smsat.c
11922
fis->h.features = SAT_SMART_EXEUTE_OFF_LINE_IMMEDIATE; /* FIS features NA */
sys/dev/pms/RefTisa/sat/src/smsat.c
11983
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
11984
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
11985
fis->h.command = SAT_SMART; /* 0x40 */
sys/dev/pms/RefTisa/sat/src/smsat.c
11986
fis->h.features = SAT_SMART_EXEUTE_OFF_LINE_IMMEDIATE; /* FIS features NA */
sys/dev/pms/RefTisa/sat/src/smsat.c
12049
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
12050
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
12051
fis->h.command = SAT_SMART; /* 0x40 */
sys/dev/pms/RefTisa/sat/src/smsat.c
12052
fis->h.features = SAT_SMART_EXEUTE_OFF_LINE_IMMEDIATE; /* FIS features NA */
sys/dev/pms/RefTisa/sat/src/smsat.c
12089
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
12090
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
12091
fis->h.command = SAT_SMART; /* 0x40 */
sys/dev/pms/RefTisa/sat/src/smsat.c
12092
fis->h.features = SAT_SMART_EXEUTE_OFF_LINE_IMMEDIATE; /* FIS features NA */
sys/dev/pms/RefTisa/sat/src/smsat.c
12232
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
12233
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
12235
fis->h.command = SAT_FLUSH_CACHE_EXT; /* 0xEA */
sys/dev/pms/RefTisa/sat/src/smsat.c
12236
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
12256
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
12257
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
12259
fis->h.command = SAT_FLUSH_CACHE; /* 0xE7 */
sys/dev/pms/RefTisa/sat/src/smsat.c
12260
fis->h.features = 0; /* FIS features NA */
sys/dev/pms/RefTisa/sat/src/smsat.c
12322
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
12323
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
12325
fis->h.command = SAT_READ_VERIFY_SECTORS_EXT;/* 0x42 */
sys/dev/pms/RefTisa/sat/src/smsat.c
12326
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
12345
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
12346
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
12348
fis->h.command = SAT_READ_VERIFY_SECTORS;/* 0x40 */
sys/dev/pms/RefTisa/sat/src/smsat.c
12349
fis->h.features = 0; /* FIS features NA */
sys/dev/pms/RefTisa/sat/src/smsat.c
12411
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
12412
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
12414
fis->h.command = SAT_MEDIA_EJECT; /* 0xED */
sys/dev/pms/RefTisa/sat/src/smsat.c
12415
fis->h.features = 0; /* FIS features NA */
sys/dev/pms/RefTisa/sat/src/smsat.c
12684
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
12685
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
12687
fis->h.command = SAT_WRITE_DMA_EXT; /* 0x35 */
sys/dev/pms/RefTisa/sat/src/smsat.c
12689
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
12740
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
12741
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
12743
fis->h.command = SAT_WRITE_SECTORS_EXT; /* 0x34 */
sys/dev/pms/RefTisa/sat/src/smsat.c
12744
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
12818
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
12819
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
12820
fis->h.command = SAT_WRITE_FPDMA_QUEUED; /* 0x61 */
sys/dev/pms/RefTisa/sat/src/smsat.c
12850
fis->h.features = 1; /* FIS sector count (7:0) */
sys/dev/pms/RefTisa/sat/src/smsat.c
13340
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
13341
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
13343
fis->h.command = SAT_SMART; /* 0xB0 */
sys/dev/pms/RefTisa/sat/src/smsat.c
13344
fis->h.features = SAT_SMART_RETURN_STATUS;/* FIS features */
sys/dev/pms/RefTisa/sat/src/smsat.c
13530
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
13531
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
13532
fis->h.command = SAT_SMART; /* 0xB0 */
sys/dev/pms/RefTisa/sat/src/smsat.c
13533
fis->h.features = SAT_SMART_ENABLE_OPERATIONS;
sys/dev/pms/RefTisa/sat/src/smsat.c
13586
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
13587
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
13589
fis->h.command = SAT_READ_LOG_EXT; /* 0x2F */
sys/dev/pms/RefTisa/sat/src/smsat.c
13590
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
13640
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
13641
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
13642
fis->h.command = SAT_SMART; /* 0x2F */
sys/dev/pms/RefTisa/sat/src/smsat.c
13643
fis->h.features = SAT_SMART_READ_LOG; /* 0xd5 */
sys/dev/pms/RefTisa/sat/src/smsat.c
13956
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
13957
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
13959
fis->h.command = SAT_SET_FEATURES; /* 0xEF */
sys/dev/pms/RefTisa/sat/src/smsat.c
13960
fis->h.features = 0x82; /* disable write cache */
sys/dev/pms/RefTisa/sat/src/smsat.c
13997
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
13998
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
14000
fis->h.command = SAT_SET_FEATURES; /* 0xEF */
sys/dev/pms/RefTisa/sat/src/smsat.c
14001
fis->h.features = 0x02; /* enable write cache */
sys/dev/pms/RefTisa/sat/src/smsat.c
14069
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
14070
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
14072
fis->h.command = SAT_SMART; /* 0xB0 */
sys/dev/pms/RefTisa/sat/src/smsat.c
14073
fis->h.features = SAT_SMART_ENABLE_OPERATIONS; /* enable */
sys/dev/pms/RefTisa/sat/src/smsat.c
14110
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
14111
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
14113
fis->h.command = SAT_SMART; /* 0xB0 */
sys/dev/pms/RefTisa/sat/src/smsat.c
14114
fis->h.features = SAT_SMART_DISABLE_OPERATIONS; /* disable */
sys/dev/pms/RefTisa/sat/src/smsat.c
14490
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
14491
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
14493
fis->h.command = SAT_SET_FEATURES; /* 0xEF */
sys/dev/pms/RefTisa/sat/src/smsat.c
14494
fis->h.features = 0x82; /* disable write cache */
sys/dev/pms/RefTisa/sat/src/smsat.c
14531
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
14532
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
14534
fis->h.command = SAT_SET_FEATURES; /* 0xEF */
sys/dev/pms/RefTisa/sat/src/smsat.c
14535
fis->h.features = 0x02; /* enable write cache */
sys/dev/pms/RefTisa/sat/src/smsat.c
14603
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
14604
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
14606
fis->h.command = SAT_SMART; /* 0xB0 */
sys/dev/pms/RefTisa/sat/src/smsat.c
14607
fis->h.features = SAT_SMART_ENABLE_OPERATIONS; /* enable */
sys/dev/pms/RefTisa/sat/src/smsat.c
14644
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
14645
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
14647
fis->h.command = SAT_SMART; /* 0xB0 */
sys/dev/pms/RefTisa/sat/src/smsat.c
14648
fis->h.features = SAT_SMART_DISABLE_OPERATIONS; /* disable */
sys/dev/pms/RefTisa/sat/src/smsat.c
14769
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
14770
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
14772
fis->h.command = SAT_FLUSH_CACHE_EXT; /* 0xEA */
sys/dev/pms/RefTisa/sat/src/smsat.c
14773
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
14793
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
14794
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
14796
fis->h.command = SAT_FLUSH_CACHE; /* 0xE7 */
sys/dev/pms/RefTisa/sat/src/smsat.c
14797
fis->h.features = 0; /* FIS features NA */
sys/dev/pms/RefTisa/sat/src/smsat.c
14901
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
14902
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
14904
fis->h.command = SAT_FLUSH_CACHE_EXT; /* 0xEA */
sys/dev/pms/RefTisa/sat/src/smsat.c
14905
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
14925
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
14926
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
14928
fis->h.command = SAT_FLUSH_CACHE; /* 0xE7 */
sys/dev/pms/RefTisa/sat/src/smsat.c
14929
fis->h.features = 0; /* FIS features NA */
sys/dev/pms/RefTisa/sat/src/smsat.c
15144
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
15145
fis->h.c_pmPort = 0x80; /* C bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
15146
fis->h.command = SAT_WRITE_DMA; /* 0xCA */
sys/dev/pms/RefTisa/sat/src/smsat.c
15147
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
15175
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
15176
fis->h.c_pmPort = 0x80; /* C bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
15177
fis->h.command = SAT_WRITE_SECTORS; /* 0x30 */
sys/dev/pms/RefTisa/sat/src/smsat.c
15178
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
15209
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
15210
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
15213
fis->h.command = SAT_WRITE_DMA_EXT; /* 0x35 */
sys/dev/pms/RefTisa/sat/src/smsat.c
15215
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
15239
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
15240
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
15241
fis->h.command = SAT_WRITE_SECTORS_EXT; /* 0x34 */
sys/dev/pms/RefTisa/sat/src/smsat.c
15243
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
15289
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
15290
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
15291
fis->h.command = SAT_WRITE_FPDMA_QUEUED; /* 0x61 */
sys/dev/pms/RefTisa/sat/src/smsat.c
15292
fis->h.features = scsiCmnd->cdb[8]; /* FIS sector count (7:0) */
sys/dev/pms/RefTisa/sat/src/smsat.c
15325
if (fis->h.command == SAT_WRITE_SECTORS || fis->h.command == SAT_WRITE_DMA)
sys/dev/pms/RefTisa/sat/src/smsat.c
15329
else if (fis->h.command == SAT_WRITE_SECTORS_EXT ||
sys/dev/pms/RefTisa/sat/src/smsat.c
15330
fis->h.command == SAT_WRITE_DMA_EXT ||
sys/dev/pms/RefTisa/sat/src/smsat.c
15331
fis->h.command == SAT_WRITE_DMA_FUA_EXT
sys/dev/pms/RefTisa/sat/src/smsat.c
15357
if (fis->h.command == SAT_WRITE_SECTORS || fis->h.command == SAT_WRITE_DMA)
sys/dev/pms/RefTisa/sat/src/smsat.c
15361
else if (fis->h.command == SAT_WRITE_SECTORS_EXT ||
sys/dev/pms/RefTisa/sat/src/smsat.c
15362
fis->h.command == SAT_WRITE_DMA_EXT ||
sys/dev/pms/RefTisa/sat/src/smsat.c
15363
fis->h.command == SAT_WRITE_DMA_FUA_EXT
sys/dev/pms/RefTisa/sat/src/smsat.c
15372
fis->h.features = 0xFF;
sys/dev/pms/RefTisa/sat/src/smsat.c
15568
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
15569
fis->h.c_pmPort = 0x80; /* C bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
15570
fis->h.command = SAT_WRITE_DMA; /* 0xCA */
sys/dev/pms/RefTisa/sat/src/smsat.c
15571
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
15599
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
15600
fis->h.c_pmPort = 0x80; /* C bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
15601
fis->h.command = SAT_WRITE_SECTORS; /* 0x30 */
sys/dev/pms/RefTisa/sat/src/smsat.c
15602
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
15632
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
15633
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
15636
fis->h.command = SAT_WRITE_DMA_EXT; /* 0x35 */
sys/dev/pms/RefTisa/sat/src/smsat.c
15638
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
15662
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
15663
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
15664
fis->h.command = SAT_WRITE_SECTORS_EXT; /* 0x34 */
sys/dev/pms/RefTisa/sat/src/smsat.c
15666
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
15713
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
15714
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
15715
fis->h.command = SAT_WRITE_FPDMA_QUEUED; /* 0x61 */
sys/dev/pms/RefTisa/sat/src/smsat.c
15716
fis->h.features = scsiCmnd->cdb[9]; /* FIS sector count (7:0) */
sys/dev/pms/RefTisa/sat/src/smsat.c
15750
if (fis->h.command == SAT_WRITE_SECTORS || fis->h.command == SAT_WRITE_DMA)
sys/dev/pms/RefTisa/sat/src/smsat.c
15754
else if (fis->h.command == SAT_WRITE_SECTORS_EXT ||
sys/dev/pms/RefTisa/sat/src/smsat.c
15755
fis->h.command == SAT_WRITE_DMA_EXT ||
sys/dev/pms/RefTisa/sat/src/smsat.c
15756
fis->h.command == SAT_WRITE_DMA_FUA_EXT
sys/dev/pms/RefTisa/sat/src/smsat.c
15783
if (fis->h.command == SAT_WRITE_SECTORS || fis->h.command == SAT_WRITE_DMA)
sys/dev/pms/RefTisa/sat/src/smsat.c
15787
else if (fis->h.command == SAT_WRITE_SECTORS_EXT ||
sys/dev/pms/RefTisa/sat/src/smsat.c
15788
fis->h.command == SAT_WRITE_DMA_EXT ||
sys/dev/pms/RefTisa/sat/src/smsat.c
15789
fis->h.command == SAT_WRITE_DMA_FUA_EXT
sys/dev/pms/RefTisa/sat/src/smsat.c
15798
fis->h.features = 0xFF;
sys/dev/pms/RefTisa/sat/src/smsat.c
15998
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
15999
fis->h.c_pmPort = 0x80; /* C bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
16000
fis->h.command = SAT_WRITE_DMA; /* 0xCA */
sys/dev/pms/RefTisa/sat/src/smsat.c
16001
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
16029
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
16030
fis->h.c_pmPort = 0x80; /* C bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
16031
fis->h.command = SAT_WRITE_SECTORS; /* 0x30 */
sys/dev/pms/RefTisa/sat/src/smsat.c
16032
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
16062
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
16063
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
16066
fis->h.command = SAT_WRITE_DMA_EXT; /* 0x35 */
sys/dev/pms/RefTisa/sat/src/smsat.c
16068
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
16092
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
16093
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
16094
fis->h.command = SAT_WRITE_SECTORS_EXT; /* 0x34 */
sys/dev/pms/RefTisa/sat/src/smsat.c
16096
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
16143
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
16144
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
16145
fis->h.command = SAT_WRITE_FPDMA_QUEUED; /* 0x61 */
sys/dev/pms/RefTisa/sat/src/smsat.c
16146
fis->h.features = scsiCmnd->cdb[13]; /* FIS sector count (7:0) */
sys/dev/pms/RefTisa/sat/src/smsat.c
16179
if (fis->h.command == SAT_WRITE_SECTORS || fis->h.command == SAT_WRITE_DMA)
sys/dev/pms/RefTisa/sat/src/smsat.c
16183
else if (fis->h.command == SAT_WRITE_SECTORS_EXT ||
sys/dev/pms/RefTisa/sat/src/smsat.c
16184
fis->h.command == SAT_WRITE_DMA_EXT ||
sys/dev/pms/RefTisa/sat/src/smsat.c
16185
fis->h.command == SAT_WRITE_DMA_FUA_EXT
sys/dev/pms/RefTisa/sat/src/smsat.c
16211
if (fis->h.command == SAT_WRITE_SECTORS || fis->h.command == SAT_WRITE_DMA)
sys/dev/pms/RefTisa/sat/src/smsat.c
16215
else if (fis->h.command == SAT_WRITE_SECTORS_EXT ||
sys/dev/pms/RefTisa/sat/src/smsat.c
16216
fis->h.command == SAT_WRITE_DMA_EXT ||
sys/dev/pms/RefTisa/sat/src/smsat.c
16217
fis->h.command == SAT_WRITE_DMA_FUA_EXT
sys/dev/pms/RefTisa/sat/src/smsat.c
16226
fis->h.features = 0xFF;
sys/dev/pms/RefTisa/sat/src/smsat.c
16378
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
16379
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
16380
fis->h.command = SAT_READ_SECTORS_EXT; /* 0x24 */
sys/dev/pms/RefTisa/sat/src/smsat.c
16382
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
16402
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
16403
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
16404
fis->h.command = SAT_READ_SECTORS; /* 0x20 */
sys/dev/pms/RefTisa/sat/src/smsat.c
16405
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
16510
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
16511
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
16512
fis->h.command = SAT_READ_BUFFER; /* 0xE4 */
sys/dev/pms/RefTisa/sat/src/smsat.c
16513
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
16776
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
16777
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
16778
fis->h.command = SAT_WRITE_BUFFER; /* 0xE8 */
sys/dev/pms/RefTisa/sat/src/smsat.c
16779
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
17010
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
17011
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
17012
fis->h.command = SAT_READ_VERIFY_SECTORS_EXT;/* 0x42 */
sys/dev/pms/RefTisa/sat/src/smsat.c
17013
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
17031
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
17032
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
17033
fis->h.command = SAT_READ_VERIFY_SECTORS;/* 0x40 */
sys/dev/pms/RefTisa/sat/src/smsat.c
17034
fis->h.features = 0; /* FIS features NA */
sys/dev/pms/RefTisa/sat/src/smsat.c
17140
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
17141
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
17142
fis->h.command = SAT_READ_DMA; /* 0xC8 */
sys/dev/pms/RefTisa/sat/src/smsat.c
17143
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
17173
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
17174
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
17175
fis->h.command = SAT_READ_SECTORS; /* 0x20 */
sys/dev/pms/RefTisa/sat/src/smsat.c
17176
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
17204
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
17205
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
17206
fis->h.command = SAT_READ_DMA_EXT; /* 0x25 */
sys/dev/pms/RefTisa/sat/src/smsat.c
17207
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
17236
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
17237
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
17238
fis->h.command = SAT_READ_SECTORS_EXT; /* 0x24 */
sys/dev/pms/RefTisa/sat/src/smsat.c
17239
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
17266
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
17267
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
17268
fis->h.command = SAT_READ_FPDMA_QUEUED; /* 0x60 */
sys/dev/pms/RefTisa/sat/src/smsat.c
17285
fis->h.features = (bit8)(Remainder & 0xFF); /* FIS sector count (7:0) */
sys/dev/pms/RefTisa/sat/src/smsat.c
17290
fis->h.features = 0xFF; /* FIS sector count (7:0) */
sys/dev/pms/RefTisa/sat/src/smsat.c
17420
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
17421
fis->h.c_pmPort = 0x80; /* C bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
17422
fis->h.command = SAT_WRITE_DMA; /* 0xCA */
sys/dev/pms/RefTisa/sat/src/smsat.c
17423
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
17453
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
17454
fis->h.c_pmPort = 0x80; /* C bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
17455
fis->h.command = SAT_WRITE_SECTORS; /* 0x30 */
sys/dev/pms/RefTisa/sat/src/smsat.c
17456
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
17486
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
17487
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
17488
fis->h.command = SAT_WRITE_DMA_EXT; /* 0x3D */
sys/dev/pms/RefTisa/sat/src/smsat.c
17489
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
17517
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
17518
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
17519
fis->h.command = SAT_WRITE_SECTORS_EXT; /* 0x34 */
sys/dev/pms/RefTisa/sat/src/smsat.c
17521
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
17549
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
17550
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
17551
fis->h.command = SAT_WRITE_FPDMA_QUEUED; /* 0x61 */
sys/dev/pms/RefTisa/sat/src/smsat.c
17568
fis->h.features = (bit8)(Remainder & 0xFF); /* FIS sector count (7:0) */
sys/dev/pms/RefTisa/sat/src/smsat.c
17573
fis->h.features = 0xFF; /* FIS sector count (7:0) */
sys/dev/pms/RefTisa/sat/src/smsat.c
17729
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
17730
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
17731
fis->h.features = scsiCmnd->cdb[3];
sys/dev/pms/RefTisa/sat/src/smsat.c
17737
fis->h.command = scsiCmnd->cdb[9];
sys/dev/pms/RefTisa/sat/src/smsat.c
17767
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
17768
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
17778
fis->h.features = scsiCmnd->cdb[4];
sys/dev/pms/RefTisa/sat/src/smsat.c
17784
fis->h.command = scsiCmnd->cdb[14];
sys/dev/pms/RefTisa/sat/src/smsat.c
17849
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
17850
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
17852
fis->h.command = SAT_READ_VERIFY_SECTORS_EXT;/* 0x42 */
sys/dev/pms/RefTisa/sat/src/smsat.c
17853
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
17943
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
17944
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
17946
fis->h.command = SAT_READ_VERIFY_SECTORS_EXT;/* 0x42 */
sys/dev/pms/RefTisa/sat/src/smsat.c
17947
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
17969
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
17970
fis->h.c_pmPort = 0x80; /* C bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
17971
fis->h.command = SAT_READ_VERIFY_SECTORS; /* 0x40 */
sys/dev/pms/RefTisa/sat/src/smsat.c
17972
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
18001
if (fis->h.command == SAT_READ_VERIFY_SECTORS)
sys/dev/pms/RefTisa/sat/src/smsat.c
18005
else if (fis->h.command == SAT_READ_VERIFY_SECTORS_EXT)
sys/dev/pms/RefTisa/sat/src/smsat.c
18029
if (fis->h.command == SAT_READ_VERIFY_SECTORS)
sys/dev/pms/RefTisa/sat/src/smsat.c
18033
else if (fis->h.command == SAT_READ_VERIFY_SECTORS_EXT)
sys/dev/pms/RefTisa/sat/src/smsat.c
18134
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
18135
fis->h.c_pmPort = 0x80; /* C bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
18136
fis->h.command = SAT_WRITE_DMA; /* 0xCA */
sys/dev/pms/RefTisa/sat/src/smsat.c
18137
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
18167
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
18168
fis->h.c_pmPort = 0x80; /* C bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
18169
fis->h.command = SAT_WRITE_SECTORS; /* 0x30 */
sys/dev/pms/RefTisa/sat/src/smsat.c
18170
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
18200
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
18201
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
18202
fis->h.command = SAT_WRITE_DMA_EXT; /* 0x3D */
sys/dev/pms/RefTisa/sat/src/smsat.c
18203
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
18231
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
18232
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
18233
fis->h.command = SAT_WRITE_SECTORS_EXT; /* 0x34 */
sys/dev/pms/RefTisa/sat/src/smsat.c
18235
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
18263
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
18264
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
18265
fis->h.command = SAT_WRITE_FPDMA_QUEUED; /* 0x61 */
sys/dev/pms/RefTisa/sat/src/smsat.c
18282
fis->h.features = (bit8)(Remainder & 0xFF); /* FIS sector count (7:0) */
sys/dev/pms/RefTisa/sat/src/smsat.c
18287
fis->h.features = 0xFF; /* FIS sector count (7:0) */
sys/dev/pms/RefTisa/sat/src/smsat.c
18374
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
18375
fis->h.c_pmPort = 0x80; /* C bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
18376
fis->h.command = SAT_READ_VERIFY_SECTORS; /* 0x40 */
sys/dev/pms/RefTisa/sat/src/smsat.c
18377
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
18407
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
18408
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
18409
fis->h.command = SAT_READ_VERIFY_SECTORS_EXT; /* 0x42 */
sys/dev/pms/RefTisa/sat/src/smsat.c
18410
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
18513
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
18514
fis->h.c_pmPort = 0x80; /* C bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
18515
fis->h.command = SAT_READ_VERIFY_SECTORS; /* 0x40 */
sys/dev/pms/RefTisa/sat/src/smsat.c
18516
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
18546
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
18547
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
18548
fis->h.command = SAT_READ_VERIFY_SECTORS_EXT; /* 0x42 */
sys/dev/pms/RefTisa/sat/src/smsat.c
18549
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
18632
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
18633
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
18634
fis->h.command = SAT_WRITE_DMA_EXT; /* 0x35 */
sys/dev/pms/RefTisa/sat/src/smsat.c
18635
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
18696
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
18697
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
18698
fis->h.command = SAT_WRITE_SECTORS_EXT; /* 0x34 */
sys/dev/pms/RefTisa/sat/src/smsat.c
18699
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
18761
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
18762
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
18763
fis->h.command = SAT_WRITE_FPDMA_QUEUED; /* 0x61 */
sys/dev/pms/RefTisa/sat/src/smsat.c
18767
fis->h.features = 1; /* FIS sector count (7:0) */
sys/dev/pms/RefTisa/sat/src/smsat.c
18822
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
18823
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
18824
fis->h.command = SAT_STANDBY; /* 0xE2 */
sys/dev/pms/RefTisa/sat/src/smsat.c
18825
fis->h.features = 0; /* FIS features NA */
sys/dev/pms/RefTisa/sat/src/smsat.c
18888
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
18889
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
18890
fis->h.command = SAT_READ_VERIFY_SECTORS_EXT;/* 0x42 */
sys/dev/pms/RefTisa/sat/src/smsat.c
18891
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
18910
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
18911
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
18912
fis->h.command = SAT_READ_VERIFY_SECTORS;/* 0x40 */
sys/dev/pms/RefTisa/sat/src/smsat.c
18913
fis->h.features = 0; /* FIS features NA */
sys/dev/pms/RefTisa/sat/src/smsat.c
18980
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
18981
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
18982
fis->h.command = SAT_READ_VERIFY_SECTORS_EXT;/* 0x42 */
sys/dev/pms/RefTisa/sat/src/smsat.c
18983
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
19002
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
19003
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
19004
fis->h.command = SAT_READ_VERIFY_SECTORS;/* 0x40 */
sys/dev/pms/RefTisa/sat/src/smsat.c
19005
fis->h.features = 0; /* FIS features NA */
sys/dev/pms/RefTisa/sat/src/smsat.c
19079
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
19080
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
19082
fis->h.command = SAT_SET_FEATURES; /* 0xEF */
sys/dev/pms/RefTisa/sat/src/smsat.c
19083
fis->h.features = 0xAA; /* enable read look-ahead */
sys/dev/pms/RefTisa/sat/src/smsat.c
19120
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
19121
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
19123
fis->h.command = SAT_SET_FEATURES; /* 0xEF */
sys/dev/pms/RefTisa/sat/src/smsat.c
19124
fis->h.features = 0x55; /* disable read look-ahead */
sys/dev/pms/RefTisa/sat/src/smsat.c
19184
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
19185
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
19187
fis->h.command = SAT_READ_LOG_EXT; /* 0x2F */
sys/dev/pms/RefTisa/sat/src/smsat.c
19188
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
19226
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
19227
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
19229
fis->h.command = SAT_SMART; /* 0x2F */
sys/dev/pms/RefTisa/sat/src/smsat.c
19230
fis->h.features = SAT_SMART_READ_LOG; /* 0xd5 */
sys/dev/pms/RefTisa/sat/src/smsat.c
19297
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
19298
fis->h.c_pmPort = 0x80; /* C bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
19299
fis->h.command = SAT_WRITE_DMA; /* 0xCA */
sys/dev/pms/RefTisa/sat/src/smsat.c
19300
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
19328
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
19329
fis->h.c_pmPort = 0x80; /* C bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
19330
fis->h.command = SAT_WRITE_SECTORS; /* 0x30 */
sys/dev/pms/RefTisa/sat/src/smsat.c
19331
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
19361
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
19362
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
19365
fis->h.command = SAT_WRITE_DMA_EXT; /* 0x35 */
sys/dev/pms/RefTisa/sat/src/smsat.c
19368
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
19391
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
19392
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
19393
fis->h.command = SAT_WRITE_SECTORS_EXT; /* 0x34 */
sys/dev/pms/RefTisa/sat/src/smsat.c
19395
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
19441
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
19442
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
19443
fis->h.command = SAT_WRITE_FPDMA_QUEUED; /* 0x61 */
sys/dev/pms/RefTisa/sat/src/smsat.c
19444
fis->h.features = 1; /* FIS sector count (7:0) */
sys/dev/pms/RefTisa/sat/src/smsat.c
19537
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
19538
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
19539
fis->h.command = SAT_READ_VERIFY_SECTORS_EXT;/* 0x42 */
sys/dev/pms/RefTisa/sat/src/smsat.c
19540
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
19558
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
19559
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
19560
fis->h.command = SAT_READ_VERIFY_SECTORS;/* 0x40 */
sys/dev/pms/RefTisa/sat/src/smsat.c
19561
fis->h.features = 0; /* FIS features NA */
sys/dev/pms/RefTisa/sat/src/smsat.c
19616
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
19617
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
19618
fis->h.command = SAT_READ_LOG_EXT; /* 0x2F */
sys/dev/pms/RefTisa/sat/src/smsat.c
19619
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
19678
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
19679
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
19680
fis->h.command = SAT_CHECK_POWER_MODE; /* 0xE5 */
sys/dev/pms/RefTisa/sat/src/smsat.c
19681
fis->h.features = 0;
sys/dev/pms/RefTisa/sat/src/smsat.c
19743
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
19744
fis->h.c_pmPort = 0; /* C Bit is not set */
sys/dev/pms/RefTisa/sat/src/smsat.c
19745
fis->h.command = 0; /* any command */
sys/dev/pms/RefTisa/sat/src/smsat.c
19746
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
19814
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
19815
fis->h.c_pmPort = 0; /* C Bit is not set */
sys/dev/pms/RefTisa/sat/src/smsat.c
19816
fis->h.command = 0; /* any command */
sys/dev/pms/RefTisa/sat/src/smsat.c
19817
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
19880
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
19881
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
19882
fis->h.command = SAT_SET_FEATURES; /* 0xEF */
sys/dev/pms/RefTisa/sat/src/smsat.c
19883
fis->h.features = 0x10; /* enable SATA feature */
sys/dev/pms/RefTisa/sat/src/smsat.c
19947
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
19948
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
19949
fis->h.command = SAT_SET_FEATURES; /* 0xEF */
sys/dev/pms/RefTisa/sat/src/smsat.c
19950
fis->h.features = 0x03; /* enable ATA transfer mode */
sys/dev/pms/RefTisa/sat/src/smsat.c
20013
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
20014
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
20015
fis->h.command = SAT_SET_FEATURES; /* 0xEF */
sys/dev/pms/RefTisa/sat/src/smsat.c
20016
fis->h.features = 0xAA; /* Enable read look-ahead feature */
sys/dev/pms/RefTisa/sat/src/smsat.c
20079
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
20080
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
20081
fis->h.command = SAT_SET_FEATURES; /* 0xEF */
sys/dev/pms/RefTisa/sat/src/smsat.c
20082
fis->h.features = 0x02; /* Enable Volatile Write Cache feature */
sys/dev/pms/RefTisa/sat/src/smsat.c
3328
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
3329
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
3333
fis->h.command = SAT_IDENTIFY_PACKET_DEVICE; /* 0x40 */
sys/dev/pms/RefTisa/sat/src/smsat.c
3338
fis->h.command = SAT_IDENTIFY_DEVICE; /* 0xEC */
sys/dev/pms/RefTisa/sat/src/smsat.c
3340
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
4039
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
4040
fis->h.c_pmPort = 0x80; /* C Bit is set 1*/
sys/dev/pms/RefTisa/sat/src/smsat.c
4041
fis->h.command = SAT_PACKET; /* 0xA0 */
sys/dev/pms/RefTisa/sat/src/smsat.c
4044
fis->h.features = (smScsiRequest->dataDirection == smDirectionIn)? 0x04 : 0; /* 1 for D2H, 0 for H2D */
sys/dev/pms/RefTisa/sat/src/smsat.c
4048
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
4054
fis->h.features |= 0x01;
sys/dev/pms/RefTisa/sat/src/smsat.c
4059
fis->h.features |= 0x0;
sys/dev/pms/RefTisa/sat/src/smsat.c
4149
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
4150
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
4151
fis->h.command = SAT_SET_FEATURES; /* 0xEF */
sys/dev/pms/RefTisa/sat/src/smsat.c
4152
fis->h.features = 0x03; /* set transfer mode */
sys/dev/pms/RefTisa/sat/src/smsat.c
4241
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
4242
fis->h.c_pmPort = 0x80; /* C Bit is set 1*/
sys/dev/pms/RefTisa/sat/src/smsat.c
4243
fis->h.command = SAT_PACKET; /* 0xA0 */
sys/dev/pms/RefTisa/sat/src/smsat.c
4246
fis->h.features = (smScsiRequest->dataDirection == smDirectionIn)? 0x04 : 0; /* 1 for D2H, 0 for H2D */
sys/dev/pms/RefTisa/sat/src/smsat.c
4250
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
4255
fis->h.features |= 0x01;
sys/dev/pms/RefTisa/sat/src/smsat.c
4259
fis->h.features |= 0x0;
sys/dev/pms/RefTisa/sat/src/smsat.c
4333
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
4334
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
4335
fis->h.command = SAT_DEVICE_RESET; /* 0x08 */
sys/dev/pms/RefTisa/sat/src/smsat.c
4336
fis->h.features = 0;
sys/dev/pms/RefTisa/sat/src/smsat.c
4410
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
4411
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
4412
fis->h.command = SAT_EXECUTE_DEVICE_DIAGNOSTIC; /* 0x90 */
sys/dev/pms/RefTisa/sat/src/smsat.c
4413
fis->h.features = 0;
sys/dev/pms/RefTisa/sat/src/smsat.c
4567
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
4568
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
4569
fis->h.command = SAT_READ_DMA; /* 0xC8 */
sys/dev/pms/RefTisa/sat/src/smsat.c
4570
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
4601
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
4602
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
4603
fis->h.command = SAT_READ_SECTORS; /* 0x20 */
sys/dev/pms/RefTisa/sat/src/smsat.c
4604
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
4640
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
4641
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
4642
fis->h.command = SAT_READ_DMA_EXT; /* 0x25 */
sys/dev/pms/RefTisa/sat/src/smsat.c
4643
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
4675
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
4676
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
4677
fis->h.command = SAT_READ_SECTORS_EXT; /* 0x24 */
sys/dev/pms/RefTisa/sat/src/smsat.c
4678
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
4734
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
4735
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
4736
fis->h.command = SAT_READ_FPDMA_QUEUED; /* 0x60 */
sys/dev/pms/RefTisa/sat/src/smsat.c
4747
fis->h.features = 0; /* FIS sector count (7:0) */
sys/dev/pms/RefTisa/sat/src/smsat.c
4752
fis->h.features = scsiCmnd->cdb[4]; /* FIS sector count (7:0) */
sys/dev/pms/RefTisa/sat/src/smsat.c
4977
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
4978
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
4979
fis->h.command = SAT_READ_FPDMA_QUEUED; /* 0x60 */
sys/dev/pms/RefTisa/sat/src/smsat.c
4980
fis->h.features = scsiCmnd->cdb[8]; /* FIS sector count (7:0) */
sys/dev/pms/RefTisa/sat/src/smsat.c
5011
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
5013
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
5014
fis->h.command = SAT_READ_DMA_EXT; /* 0x25 */
sys/dev/pms/RefTisa/sat/src/smsat.c
5015
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
5040
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
5041
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
5065
fis->h.command = SAT_READ_SECTORS_EXT; /* 0x24 */
sys/dev/pms/RefTisa/sat/src/smsat.c
5067
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
5096
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
5097
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
5098
fis->h.command = SAT_READ_DMA; /* 0xC8 */
sys/dev/pms/RefTisa/sat/src/smsat.c
5099
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
5127
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
5128
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
5129
fis->h.command = SAT_READ_SECTORS; /* 0x20 */
sys/dev/pms/RefTisa/sat/src/smsat.c
5130
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
5162
if (fis->h.command == SAT_READ_SECTORS || fis->h.command == SAT_READ_DMA)
sys/dev/pms/RefTisa/sat/src/smsat.c
5187
if (fis->h.command == SAT_READ_SECTORS || fis->h.command == SAT_READ_DMA)
sys/dev/pms/RefTisa/sat/src/smsat.c
5199
else if (fis->h.command == SAT_READ_SECTORS_EXT || fis->h.command == SAT_READ_DMA_EXT)
sys/dev/pms/RefTisa/sat/src/smsat.c
5216
fis->h.features = 0xFF;
sys/dev/pms/RefTisa/sat/src/smsat.c
5422
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
5423
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
5424
fis->h.command = SAT_READ_DMA; /* 0xC8 */
sys/dev/pms/RefTisa/sat/src/smsat.c
5425
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
5453
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
5454
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
5455
fis->h.command = SAT_READ_SECTORS; /* 0x20 */
sys/dev/pms/RefTisa/sat/src/smsat.c
5456
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
5485
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
5487
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
5488
fis->h.command = SAT_READ_DMA_EXT; /* 0x25 */
sys/dev/pms/RefTisa/sat/src/smsat.c
5489
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
5514
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
5515
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
5539
fis->h.command = SAT_READ_SECTORS_EXT; /* 0x24 */
sys/dev/pms/RefTisa/sat/src/smsat.c
5541
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
5589
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
5590
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
5591
fis->h.command = SAT_READ_FPDMA_QUEUED; /* 0x60 */
sys/dev/pms/RefTisa/sat/src/smsat.c
5592
fis->h.features = scsiCmnd->cdb[9]; /* FIS sector count (7:0) */
sys/dev/pms/RefTisa/sat/src/smsat.c
5626
if (fis->h.command == SAT_READ_SECTORS || fis->h.command == SAT_READ_DMA)
sys/dev/pms/RefTisa/sat/src/smsat.c
5630
else if (fis->h.command == SAT_READ_SECTORS_EXT || fis->h.command == SAT_READ_DMA_EXT)
sys/dev/pms/RefTisa/sat/src/smsat.c
5652
if (fis->h.command == SAT_READ_SECTORS || fis->h.command == SAT_READ_DMA)
sys/dev/pms/RefTisa/sat/src/smsat.c
5656
else if (fis->h.command == SAT_READ_SECTORS_EXT || fis->h.command == SAT_READ_DMA_EXT)
sys/dev/pms/RefTisa/sat/src/smsat.c
5665
fis->h.features = 0xFF;
sys/dev/pms/RefTisa/sat/src/smsat.c
5874
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
5875
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
5876
fis->h.command = SAT_READ_DMA; /* 0xC8 */
sys/dev/pms/RefTisa/sat/src/smsat.c
5877
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
5905
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
5906
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
5907
fis->h.command = SAT_READ_SECTORS; /* 0x20 */
sys/dev/pms/RefTisa/sat/src/smsat.c
5908
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
5937
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
5939
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
5940
fis->h.command = SAT_READ_DMA_EXT; /* 0x25 */
sys/dev/pms/RefTisa/sat/src/smsat.c
5941
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
5966
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
5967
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
5990
fis->h.command = SAT_READ_SECTORS_EXT; /* 0x24 */
sys/dev/pms/RefTisa/sat/src/smsat.c
5992
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
6041
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
6042
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
6043
fis->h.command = SAT_READ_FPDMA_QUEUED; /* 0x60 */
sys/dev/pms/RefTisa/sat/src/smsat.c
6044
fis->h.features = scsiCmnd->cdb[13]; /* FIS sector count (7:0) */
sys/dev/pms/RefTisa/sat/src/smsat.c
6078
if (fis->h.command == SAT_READ_SECTORS || fis->h.command == SAT_READ_DMA)
sys/dev/pms/RefTisa/sat/src/smsat.c
6082
else if (fis->h.command == SAT_READ_SECTORS_EXT || fis->h.command == SAT_READ_DMA_EXT)
sys/dev/pms/RefTisa/sat/src/smsat.c
6103
if (fis->h.command == SAT_READ_SECTORS || fis->h.command == SAT_READ_DMA)
sys/dev/pms/RefTisa/sat/src/smsat.c
6107
else if (fis->h.command == SAT_READ_SECTORS_EXT || fis->h.command == SAT_READ_DMA_EXT)
sys/dev/pms/RefTisa/sat/src/smsat.c
6116
fis->h.features = 0xFF;
sys/dev/pms/RefTisa/sat/src/smsat.c
6242
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
6243
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
6244
fis->h.command = SAT_WRITE_DMA; /* 0xCA */
sys/dev/pms/RefTisa/sat/src/smsat.c
6245
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
6276
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
6277
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
6278
fis->h.command = SAT_WRITE_SECTORS; /* 0xCA */
sys/dev/pms/RefTisa/sat/src/smsat.c
6279
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
6315
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
6316
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
6317
fis->h.command = SAT_WRITE_DMA_EXT; /* 0x35 */
sys/dev/pms/RefTisa/sat/src/smsat.c
6318
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
6350
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
6351
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
6352
fis->h.command = SAT_WRITE_SECTORS_EXT; /* 0x34 */
sys/dev/pms/RefTisa/sat/src/smsat.c
6353
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
6409
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
6410
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
6411
fis->h.command = SAT_WRITE_FPDMA_QUEUED; /* 0x61 */
sys/dev/pms/RefTisa/sat/src/smsat.c
6422
fis->h.features = 0; /* FIS sector count (7:0) */
sys/dev/pms/RefTisa/sat/src/smsat.c
6427
fis->h.features = scsiCmnd->cdb[4]; /* FIS sector count (7:0) */
sys/dev/pms/RefTisa/sat/src/smsat.c
6650
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
6651
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
6652
fis->h.command = SAT_WRITE_FPDMA_QUEUED; /* 0x61 */
sys/dev/pms/RefTisa/sat/src/smsat.c
6653
fis->h.features = scsiCmnd->cdb[8]; /* FIS sector count (7:0) */
sys/dev/pms/RefTisa/sat/src/smsat.c
6685
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
6686
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
6689
fis->h.command = SAT_WRITE_DMA_EXT; /* 0x35 */
sys/dev/pms/RefTisa/sat/src/smsat.c
6692
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
6715
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
6716
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
6717
fis->h.command = SAT_WRITE_SECTORS_EXT; /* 0x34 */
sys/dev/pms/RefTisa/sat/src/smsat.c
6719
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
6746
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
6747
fis->h.c_pmPort = 0x80; /* C bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
6748
fis->h.command = SAT_WRITE_DMA; /* 0xCA */
sys/dev/pms/RefTisa/sat/src/smsat.c
6749
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
6777
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
6778
fis->h.c_pmPort = 0x80; /* C bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
6779
fis->h.command = SAT_WRITE_SECTORS; /* 0x30 */
sys/dev/pms/RefTisa/sat/src/smsat.c
6780
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
6813
if (fis->h.command == SAT_WRITE_SECTORS || fis->h.command == SAT_WRITE_DMA)
sys/dev/pms/RefTisa/sat/src/smsat.c
6838
if (fis->h.command == SAT_WRITE_SECTORS || fis->h.command == SAT_WRITE_DMA)
sys/dev/pms/RefTisa/sat/src/smsat.c
6850
else if (fis->h.command == SAT_WRITE_SECTORS_EXT ||
sys/dev/pms/RefTisa/sat/src/smsat.c
6851
fis->h.command == SAT_WRITE_DMA_EXT ||
sys/dev/pms/RefTisa/sat/src/smsat.c
6852
fis->h.command == SAT_WRITE_DMA_FUA_EXT
sys/dev/pms/RefTisa/sat/src/smsat.c
6869
fis->h.features = 0xFF;
sys/dev/pms/RefTisa/sat/src/smsat.c
7071
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
7072
fis->h.c_pmPort = 0x80; /* C bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
7073
fis->h.command = SAT_WRITE_DMA; /* 0xCA */
sys/dev/pms/RefTisa/sat/src/smsat.c
7074
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
7102
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
7103
fis->h.c_pmPort = 0x80; /* C bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
7104
fis->h.command = SAT_WRITE_SECTORS; /* 0x30 */
sys/dev/pms/RefTisa/sat/src/smsat.c
7105
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
7135
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
7136
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
7139
fis->h.command = SAT_WRITE_DMA_EXT; /* 0x35 */
sys/dev/pms/RefTisa/sat/src/smsat.c
7141
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
7165
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
7166
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
7167
fis->h.command = SAT_WRITE_SECTORS_EXT; /* 0x34 */
sys/dev/pms/RefTisa/sat/src/smsat.c
7169
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
7216
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
7217
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
7218
fis->h.command = SAT_WRITE_FPDMA_QUEUED; /* 0x61 */
sys/dev/pms/RefTisa/sat/src/smsat.c
7219
fis->h.features = scsiCmnd->cdb[9]; /* FIS sector count (7:0) */
sys/dev/pms/RefTisa/sat/src/smsat.c
7252
if (fis->h.command == SAT_WRITE_SECTORS || fis->h.command == SAT_WRITE_DMA)
sys/dev/pms/RefTisa/sat/src/smsat.c
7256
else if (fis->h.command == SAT_WRITE_SECTORS_EXT ||
sys/dev/pms/RefTisa/sat/src/smsat.c
7257
fis->h.command == SAT_WRITE_DMA_EXT ||
sys/dev/pms/RefTisa/sat/src/smsat.c
7258
fis->h.command == SAT_WRITE_DMA_FUA_EXT
sys/dev/pms/RefTisa/sat/src/smsat.c
7284
if (fis->h.command == SAT_WRITE_SECTORS || fis->h.command == SAT_WRITE_DMA)
sys/dev/pms/RefTisa/sat/src/smsat.c
7288
else if (fis->h.command == SAT_WRITE_SECTORS_EXT ||
sys/dev/pms/RefTisa/sat/src/smsat.c
7289
fis->h.command == SAT_WRITE_DMA_EXT ||
sys/dev/pms/RefTisa/sat/src/smsat.c
7290
fis->h.command == SAT_WRITE_DMA_FUA_EXT
sys/dev/pms/RefTisa/sat/src/smsat.c
7299
fis->h.features = 0xFF;
sys/dev/pms/RefTisa/sat/src/smsat.c
7496
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
7497
fis->h.c_pmPort = 0x80; /* C bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
7498
fis->h.command = SAT_WRITE_DMA; /* 0xCA */
sys/dev/pms/RefTisa/sat/src/smsat.c
7499
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
7527
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
7528
fis->h.c_pmPort = 0x80; /* C bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
7529
fis->h.command = SAT_WRITE_SECTORS; /* 0x30 */
sys/dev/pms/RefTisa/sat/src/smsat.c
7530
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
7560
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
7561
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
7564
fis->h.command = SAT_WRITE_DMA_EXT; /* 0x35 */
sys/dev/pms/RefTisa/sat/src/smsat.c
7566
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
7590
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
7591
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
7592
fis->h.command = SAT_WRITE_SECTORS_EXT; /* 0x34 */
sys/dev/pms/RefTisa/sat/src/smsat.c
7594
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
7641
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
7642
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
7643
fis->h.command = SAT_WRITE_FPDMA_QUEUED; /* 0x61 */
sys/dev/pms/RefTisa/sat/src/smsat.c
7644
fis->h.features = scsiCmnd->cdb[13]; /* FIS sector count (7:0) */
sys/dev/pms/RefTisa/sat/src/smsat.c
7677
if (fis->h.command == SAT_WRITE_SECTORS || fis->h.command == SAT_WRITE_DMA)
sys/dev/pms/RefTisa/sat/src/smsat.c
7681
else if (fis->h.command == SAT_WRITE_SECTORS_EXT ||
sys/dev/pms/RefTisa/sat/src/smsat.c
7682
fis->h.command == SAT_WRITE_DMA_EXT ||
sys/dev/pms/RefTisa/sat/src/smsat.c
7683
fis->h.command == SAT_WRITE_DMA_FUA_EXT
sys/dev/pms/RefTisa/sat/src/smsat.c
7709
if (fis->h.command == SAT_WRITE_SECTORS || fis->h.command == SAT_WRITE_DMA)
sys/dev/pms/RefTisa/sat/src/smsat.c
7713
else if (fis->h.command == SAT_WRITE_SECTORS_EXT ||
sys/dev/pms/RefTisa/sat/src/smsat.c
7714
fis->h.command == SAT_WRITE_DMA_EXT ||
sys/dev/pms/RefTisa/sat/src/smsat.c
7715
fis->h.command == SAT_WRITE_DMA_FUA_EXT
sys/dev/pms/RefTisa/sat/src/smsat.c
7724
fis->h.features = 0xFF;
sys/dev/pms/RefTisa/sat/src/smsat.c
7912
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
7913
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
7915
fis->h.command = SAT_READ_VERIFY_SECTORS_EXT;/* 0x42 */
sys/dev/pms/RefTisa/sat/src/smsat.c
7916
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
7938
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
7939
fis->h.c_pmPort = 0x80; /* C bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
7940
fis->h.command = SAT_READ_VERIFY_SECTORS; /* 0x40 */
sys/dev/pms/RefTisa/sat/src/smsat.c
7941
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
7970
if (fis->h.command == SAT_READ_VERIFY_SECTORS)
sys/dev/pms/RefTisa/sat/src/smsat.c
7974
else if (fis->h.command == SAT_READ_VERIFY_SECTORS_EXT)
sys/dev/pms/RefTisa/sat/src/smsat.c
7998
if (fis->h.command == SAT_READ_VERIFY_SECTORS)
sys/dev/pms/RefTisa/sat/src/smsat.c
8002
else if (fis->h.command == SAT_READ_VERIFY_SECTORS_EXT)
sys/dev/pms/RefTisa/sat/src/smsat.c
8194
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
8195
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
8197
fis->h.command = SAT_READ_VERIFY_SECTORS_EXT;/* 0x42 */
sys/dev/pms/RefTisa/sat/src/smsat.c
8198
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
8220
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
8221
fis->h.c_pmPort = 0x80; /* C bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
8222
fis->h.command = SAT_READ_VERIFY_SECTORS; /* 0x40 */
sys/dev/pms/RefTisa/sat/src/smsat.c
8223
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
8252
if (fis->h.command == SAT_READ_VERIFY_SECTORS)
sys/dev/pms/RefTisa/sat/src/smsat.c
8256
else if (fis->h.command == SAT_READ_VERIFY_SECTORS_EXT)
sys/dev/pms/RefTisa/sat/src/smsat.c
8280
if (fis->h.command == SAT_READ_VERIFY_SECTORS)
sys/dev/pms/RefTisa/sat/src/smsat.c
8284
else if (fis->h.command == SAT_READ_VERIFY_SECTORS_EXT)
sys/dev/pms/RefTisa/sat/src/smsat.c
8457
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
8458
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
8459
fis->h.command = SAT_READ_VERIFY_SECTORS_EXT;/* 0x42 */
sys/dev/pms/RefTisa/sat/src/smsat.c
8460
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
8482
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
8483
fis->h.c_pmPort = 0x80; /* C bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
8484
fis->h.command = SAT_READ_VERIFY_SECTORS; /* 0x40 */
sys/dev/pms/RefTisa/sat/src/smsat.c
8485
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
8514
if (fis->h.command == SAT_READ_VERIFY_SECTORS)
sys/dev/pms/RefTisa/sat/src/smsat.c
8518
else if (fis->h.command == SAT_READ_VERIFY_SECTORS_EXT)
sys/dev/pms/RefTisa/sat/src/smsat.c
8542
if (fis->h.command == SAT_READ_VERIFY_SECTORS)
sys/dev/pms/RefTisa/sat/src/smsat.c
8546
else if (fis->h.command == SAT_READ_VERIFY_SECTORS_EXT)
sys/dev/pms/RefTisa/sat/src/smsat.c
8700
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
8701
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
8702
fis->h.command = SAT_GET_MEDIA_STATUS; /* 0xDA */
sys/dev/pms/RefTisa/sat/src/smsat.c
8703
fis->h.features = 0; /* FIS features NA */
sys/dev/pms/RefTisa/sat/src/smsat.c
8772
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
8773
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
8774
fis->h.command = SAT_CHECK_POWER_MODE; /* 0xE5 */
sys/dev/pms/RefTisa/sat/src/smsat.c
8775
fis->h.features = 0;
sys/dev/pms/RefTisa/sat/src/smsat.c
9025
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
9026
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
9028
fis->h.command = SAT_IDENTIFY_PACKET_DEVICE; /* 0x40 */
sys/dev/pms/RefTisa/sat/src/smsat.c
9030
fis->h.command = SAT_IDENTIFY_DEVICE; /* 0xEC */
sys/dev/pms/RefTisa/sat/src/smsat.c
9031
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/sat/src/smsat.c
9162
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
9163
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
9165
fis->h.command = SAT_SMART; /* 0xB0 */
sys/dev/pms/RefTisa/sat/src/smsat.c
9166
fis->h.features = SAT_SMART_RETURN_STATUS; /* FIS features */
sys/dev/pms/RefTisa/sat/src/smsat.c
9337
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/sat/src/smsat.c
9338
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/sat/src/smsat.c
9339
fis->h.command = SAT_CHECK_POWER_MODE; /* 0xE5 */
sys/dev/pms/RefTisa/sat/src/smsat.c
9340
fis->h.features = 0;
sys/dev/pms/RefTisa/sat/src/smsatcb.c
10267
switch (hostToDevFis->h.command)
sys/dev/pms/RefTisa/sat/src/smsatcb.c
10273
SM_DBG1(("smsatVerify10CB: error default case command 0x%x!!!\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/sat/src/smsatcb.c
10300
switch (hostToDevFis->h.command)
sys/dev/pms/RefTisa/sat/src/smsatcb.c
10319
SM_DBG1(("smsatVerify10CB: success but error default case command 0x%x!!!\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/sat/src/smsatcb.c
1239
SM_DBG1(("smsatChainedDataIOCB: FAILED, error status and command 0x%x!!!\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/sat/src/smsatcb.c
1258
switch (hostToDevFis->h.command)
sys/dev/pms/RefTisa/sat/src/smsatcb.c
13468
if (hostToDevFis->h.command == SAT_SMART)
sys/dev/pms/RefTisa/sat/src/smsatcb.c
13470
if (hostToDevFis->h.features == SAT_SMART_READ_LOG)
sys/dev/pms/RefTisa/sat/src/smsatcb.c
13476
SM_DBG1(("smsatSMARTReadLogCB: error unknown command 0x%x feature 0x%x!!!\n", hostToDevFis->h.command, hostToDevFis->h.features));
sys/dev/pms/RefTisa/sat/src/smsatcb.c
13481
SM_DBG1(("smsatSMARTReadLogCB: error default case command 0x%x!!!\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/sat/src/smsatcb.c
1360
SM_DBG1(("smsatChainedDataIOCB: success but default case scsi cmd 0x%x ata cmd 0x%x!!!\n",scsiCmnd->cdb[0], hostToDevFis->h.command));
sys/dev/pms/RefTisa/sat/src/smsatcb.c
1386
SM_DBG1(("smsatChainedDataIOCB: success but default case command 0x%x!!!\n",hostToDevFis->h.command));
sys/dev/pms/RefTisa/sat/src/smsatcb.c
1545
switch (hostToDevFis->h.command)
sys/dev/pms/RefTisa/sat/src/smsatcb.c
1554
SM_DBG1(("smsatNonChainedVerifyCB: error default case command 0x%x!!!\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/sat/src/smsatcb.c
1581
switch (hostToDevFis->h.command)
sys/dev/pms/RefTisa/sat/src/smsatcb.c
1601
SM_DBG1(("smsatNonChainedVerifyCB: success but error default case command 0x%x!!!\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/sat/src/smsatcb.c
1773
switch (hostToDevFis->h.command)
sys/dev/pms/RefTisa/sat/src/smsatcb.c
1782
SM_DBG1(("smsatChainedVerifyCB: error default case command 0x%x!!!\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/sat/src/smsatcb.c
1809
switch (hostToDevFis->h.command)
sys/dev/pms/RefTisa/sat/src/smsatcb.c
1903
SM_DBG1(("smsatChainedVerifyCB: success but error default case command 0x%x!!!\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/sat/src/smsatcb.c
2089
switch (hostToDevFis->h.command)
sys/dev/pms/RefTisa/sat/src/smsatcb.c
2147
SM_DBG1(("smsatTestUnitReadyCB: default failed command %d!!!\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/sat/src/smsatcb.c
2174
switch (hostToDevFis->h.command)
sys/dev/pms/RefTisa/sat/src/smsatcb.c
2273
SM_DBG1(("smsatTestUnitReadyCB: default success command %d!!!\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/sat/src/smsatcb.c
2407
SM_DBG4(("smsatRequestSenseCB: fis command 0x%x\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/sat/src/smsatcb.c
2446
if (hostToDevFis->h.command == SAT_SMART && hostToDevFis->h.features == SAT_SMART_RETURN_STATUS)
sys/dev/pms/RefTisa/sat/src/smsatcb.c
2461
if (hostToDevFis->h.command == SAT_SMART && hostToDevFis->h.features == SAT_SMART_RETURN_STATUS)
sys/dev/pms/RefTisa/sat/src/smsatcb.c
2485
if (hostToDevFis->h.command == SAT_SMART && hostToDevFis->h.features == SAT_SMART_RETURN_STATUS)
sys/dev/pms/RefTisa/sat/src/smsatcb.c
2558
switch (hostToDevFis->h.command)
sys/dev/pms/RefTisa/sat/src/smsatcb.c
2849
SM_DBG1(("smsatRequestSenseCB: success but error default case command 0x%x!!!\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/sat/src/smsatcb.c
2998
SM_DBG5(("smsatSendDiagnosticCB: fis command 0x%x\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/sat/src/smsatcb.c
3016
if ( hostToDevFis->h.command == SAT_READ_VERIFY_SECTORS_EXT )
sys/dev/pms/RefTisa/sat/src/smsatcb.c
3029
if ( hostToDevFis->h.command == SAT_READ_VERIFY_SECTORS_EXT )
sys/dev/pms/RefTisa/sat/src/smsatcb.c
3044
if ( hostToDevFis->h.command == SAT_READ_VERIFY_SECTORS_EXT )
sys/dev/pms/RefTisa/sat/src/smsatcb.c
3070
if ( (hostToDevFis->h.command == SAT_READ_VERIFY_SECTORS) ||
sys/dev/pms/RefTisa/sat/src/smsatcb.c
3071
(hostToDevFis->h.command == SAT_READ_VERIFY_SECTORS_EXT) )
sys/dev/pms/RefTisa/sat/src/smsatcb.c
3127
switch (hostToDevFis->h.command)
sys/dev/pms/RefTisa/sat/src/smsatcb.c
3250
if (hostToDevFis->h.features == SAT_SMART_EXEUTE_OFF_LINE_IMMEDIATE)
sys/dev/pms/RefTisa/sat/src/smsatcb.c
3288
SM_DBG1(("smsatSendDiagnosticCB: success but error default case command 0x%x!!!\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/sat/src/smsatcb.c
3504
switch (hostToDevFis->h.command)
sys/dev/pms/RefTisa/sat/src/smsatcb.c
3707
SM_DBG5(("smsatStartStopUnitCB: default command %d\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/sat/src/smsatcb.c
3735
switch (hostToDevFis->h.command)
sys/dev/pms/RefTisa/sat/src/smsatcb.c
3918
SM_DBG1(("smsatStartStopUnitCB:success but error default case command 0x%x!!!\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/sat/src/smsatcb.c
4117
switch (hostToDevFis->h.command)
sys/dev/pms/RefTisa/sat/src/smsatcb.c
4129
SM_DBG1(("smsatWriteSame10CB: error default case command 0x%x!!!\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/sat/src/smsatcb.c
4161
if (hostToDevFis->h.command == SAT_WRITE_DMA_EXT)
sys/dev/pms/RefTisa/sat/src/smsatcb.c
4165
else if (hostToDevFis->h.command == SAT_WRITE_SECTORS_EXT)
sys/dev/pms/RefTisa/sat/src/smsatcb.c
4169
else if (hostToDevFis->h.command == SAT_WRITE_FPDMA_QUEUED)
sys/dev/pms/RefTisa/sat/src/smsatcb.c
4175
SM_DBG1(("smsatWriteSame10CB: error case command 0x%x success!!!\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/sat/src/smsatcb.c
4269
if (hostToDevFis->h.command == SAT_WRITE_DMA_EXT)
sys/dev/pms/RefTisa/sat/src/smsatcb.c
4273
else if (hostToDevFis->h.command == SAT_WRITE_SECTORS_EXT)
sys/dev/pms/RefTisa/sat/src/smsatcb.c
4277
else if (hostToDevFis->h.command == SAT_WRITE_FPDMA_QUEUED)
sys/dev/pms/RefTisa/sat/src/smsatcb.c
4324
if (hostToDevFis->h.command == SAT_WRITE_DMA_EXT)
sys/dev/pms/RefTisa/sat/src/smsatcb.c
4334
else if (hostToDevFis->h.command == SAT_WRITE_SECTORS_EXT)
sys/dev/pms/RefTisa/sat/src/smsatcb.c
4344
else if (hostToDevFis->h.command == SAT_WRITE_FPDMA_QUEUED)
sys/dev/pms/RefTisa/sat/src/smsatcb.c
4357
SM_DBG1(("smsatWriteSame10CB: sucess but error in command 0x%x!!!\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/sat/src/smsatcb.c
4553
if (hostToDevFis->h.command == SAT_READ_LOG_EXT)
sys/dev/pms/RefTisa/sat/src/smsatcb.c
4557
else if (hostToDevFis->h.command == SAT_SMART)
sys/dev/pms/RefTisa/sat/src/smsatcb.c
4559
if (hostToDevFis->h.features == SAT_SMART_READ_LOG)
sys/dev/pms/RefTisa/sat/src/smsatcb.c
4563
else if (hostToDevFis->h.features == SAT_SMART_RETURN_STATUS)
sys/dev/pms/RefTisa/sat/src/smsatcb.c
4569
SM_DBG1(("smsatLogSenseCB: error unknown command 0x%x feature 0x%x!!!\n", hostToDevFis->h.command, hostToDevFis->h.features));
sys/dev/pms/RefTisa/sat/src/smsatcb.c
4574
SM_DBG1(("smsatLogSenseCB: error default case command 0x%x!!!\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/sat/src/smsatcb.c
4608
if (hostToDevFis->h.command == SAT_READ_LOG_EXT)
sys/dev/pms/RefTisa/sat/src/smsatcb.c
4777
else if (hostToDevFis->h.command == SAT_SMART)
sys/dev/pms/RefTisa/sat/src/smsatcb.c
4779
if (hostToDevFis->h.features == SAT_SMART_READ_LOG)
sys/dev/pms/RefTisa/sat/src/smsatcb.c
4947
else if (hostToDevFis->h.features == SAT_SMART_RETURN_STATUS)
sys/dev/pms/RefTisa/sat/src/smsatcb.c
5017
SM_DBG1(("smsatLogSenseCB: error unknown command success 0x%x feature 0x%x!!!\n", hostToDevFis->h.command, hostToDevFis->h.features));
sys/dev/pms/RefTisa/sat/src/smsatcb.c
5041
SM_DBG1(("smsatLogSenseCB: error unknown command success 0x%x!!!\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/sat/src/smsatcb.c
5372
if (hostToDevFis->h.command == SAT_SET_FEATURES)
sys/dev/pms/RefTisa/sat/src/smsatcb.c
5374
if ((hostToDevFis->h.features == 0x82) || (hostToDevFis->h.features == 0x02))
sys/dev/pms/RefTisa/sat/src/smsatcb.c
5376
SM_DBG1(("smsatModeSelect6n10CB: 1 SAT_SET_FEATURES failed, feature 0x%x!!!\n", hostToDevFis->h.features));
sys/dev/pms/RefTisa/sat/src/smsatcb.c
5378
else if ((hostToDevFis->h.features == 0xAA) || (hostToDevFis->h.features == 0x55))
sys/dev/pms/RefTisa/sat/src/smsatcb.c
5380
SM_DBG1(("smsatModeSelect6n10CB: 2 SAT_SET_FEATURES failed, feature 0x%x!!!\n", hostToDevFis->h.features));
sys/dev/pms/RefTisa/sat/src/smsatcb.c
5384
SM_DBG1(("smsatModeSelect6n10CB: error unknown command 0x%x feature 0x%x!!!\n", hostToDevFis->h.command, hostToDevFis->h.features));
sys/dev/pms/RefTisa/sat/src/smsatcb.c
5387
else if (hostToDevFis->h.command == SAT_SMART)
sys/dev/pms/RefTisa/sat/src/smsatcb.c
5389
if ((hostToDevFis->h.features == SAT_SMART_ENABLE_OPERATIONS) || (hostToDevFis->h.features == SAT_SMART_DISABLE_OPERATIONS))
sys/dev/pms/RefTisa/sat/src/smsatcb.c
5391
SM_DBG1(("smsatModeSelect6n10CB: SAT_SMART_ENABLE/DISABLE_OPERATIONS failed, feature 0x%x!!!\n", hostToDevFis->h.features));
sys/dev/pms/RefTisa/sat/src/smsatcb.c
5395
SM_DBG1(("smsatModeSelect6n10CB: error unknown command 0x%x feature 0x%x!!!\n", hostToDevFis->h.command, hostToDevFis->h.features));
sys/dev/pms/RefTisa/sat/src/smsatcb.c
5400
SM_DBG1(("smsatModeSelect6n10CB: error default case command 0x%x!!!\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/sat/src/smsatcb.c
5431
if (hostToDevFis->h.command == SAT_SET_FEATURES)
sys/dev/pms/RefTisa/sat/src/smsatcb.c
5433
if ((hostToDevFis->h.features == 0x82) || (hostToDevFis->h.features == 0x02))
sys/dev/pms/RefTisa/sat/src/smsatcb.c
5435
SM_DBG5(("smsatModeSelect6n10CB: 1 SAT_SET_FEATURES success, feature 0x%x\n", hostToDevFis->h.features));
sys/dev/pms/RefTisa/sat/src/smsatcb.c
5436
if (hostToDevFis->h.features == 0x02)
sys/dev/pms/RefTisa/sat/src/smsatcb.c
5514
else if ((hostToDevFis->h.features == 0xAA) || (hostToDevFis->h.features == 0x55))
sys/dev/pms/RefTisa/sat/src/smsatcb.c
5516
SM_DBG5(("smsatModeSelect6n10CB: 2 SAT_SET_FEATURES success, feature 0x%x\n", hostToDevFis->h.features));
sys/dev/pms/RefTisa/sat/src/smsatcb.c
5535
SM_DBG1(("smsatModeSelect6n10CB: error unknown command success 0x%x feature 0x%x!!!\n", hostToDevFis->h.command, hostToDevFis->h.features));
sys/dev/pms/RefTisa/sat/src/smsatcb.c
5557
else if (hostToDevFis->h.command == SAT_SMART )
sys/dev/pms/RefTisa/sat/src/smsatcb.c
5559
if ((hostToDevFis->h.features == SAT_SMART_ENABLE_OPERATIONS) || (hostToDevFis->h.features == SAT_SMART_DISABLE_OPERATIONS))
sys/dev/pms/RefTisa/sat/src/smsatcb.c
5561
SM_DBG5(("smsatModeSelect6n10CB: SAT_SMART_ENABLE/DISABLE_OPERATIONS success, feature 0x%x\n", hostToDevFis->h.features));
sys/dev/pms/RefTisa/sat/src/smsatcb.c
5579
SM_DBG1(("smsatModeSelect6n10CB: error unknown command failed 0x%x feature 0x%x!!!\n", hostToDevFis->h.command, hostToDevFis->h.features));
sys/dev/pms/RefTisa/sat/src/smsatcb.c
5604
SM_DBG1(("smsatModeSelect6n10CB: error default case command success 0x%x!!!\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/sat/src/smsatcb.c
5778
switch (hostToDevFis->h.command)
sys/dev/pms/RefTisa/sat/src/smsatcb.c
5851
SM_DBG1(("smsatSynchronizeCache10n16CB: error unknown command 0x%x!!!\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/sat/src/smsatcb.c
5887
switch (hostToDevFis->h.command)
sys/dev/pms/RefTisa/sat/src/smsatcb.c
5923
SM_DBG5(("smsatSynchronizeCache10n16CB: error unknown command 0x%x\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/sat/src/smsatcb.c
6134
switch (hostToDevFis->h.command)
sys/dev/pms/RefTisa/sat/src/smsatcb.c
6155
SM_DBG1(("smsatNonChainedWriteNVerifyCB: error default case command 0x%x!!!\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/sat/src/smsatcb.c
6183
switch (hostToDevFis->h.command)
sys/dev/pms/RefTisa/sat/src/smsatcb.c
6235
SM_DBG1(("smsatNonChainedWriteNVerifyCB: error default case command 0x%x success!!!\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/sat/src/smsatcb.c
6466
SM_DBG1(("smsatChainedWriteNVerifyCB: FAILED, error status and command 0x%x!!!\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/sat/src/smsatcb.c
6486
switch (hostToDevFis->h.command)
sys/dev/pms/RefTisa/sat/src/smsatcb.c
6680
SM_DBG1(("smsatChainedWriteNVerifyCB: success but default case command 0x%x!!!\n",hostToDevFis->h.command));
sys/dev/pms/RefTisa/sat/src/smsatcb.c
6851
if (hostToDevFis->h.command == SAT_READ_SECTORS ||
sys/dev/pms/RefTisa/sat/src/smsatcb.c
6852
hostToDevFis->h.command == SAT_READ_SECTORS_EXT
sys/dev/pms/RefTisa/sat/src/smsatcb.c
6896
SM_DBG1(("smsatReadMediaSerialNumberCB: error unknown command success 0x%x!!!\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/sat/src/smsatcb.c
7041
if (hostToDevFis->h.command == SAT_READ_BUFFER )
sys/dev/pms/RefTisa/sat/src/smsatcb.c
7059
SM_DBG1(("smsatReadBufferCB: error unknown command success 0x%x!!!\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/sat/src/smsatcb.c
7202
if (hostToDevFis->h.command == SAT_WRITE_BUFFER )
sys/dev/pms/RefTisa/sat/src/smsatcb.c
7219
SM_DBG1(("smsatWriteBufferCB: error unknown command success 0x%x!!!\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/sat/src/smsatcb.c
7376
if (hostToDevFis->h.command == SAT_READ_VERIFY_SECTORS ||
sys/dev/pms/RefTisa/sat/src/smsatcb.c
7377
hostToDevFis->h.command == SAT_READ_VERIFY_SECTORS_EXT
sys/dev/pms/RefTisa/sat/src/smsatcb.c
7450
else if (hostToDevFis->h.command == SAT_WRITE_DMA ||
sys/dev/pms/RefTisa/sat/src/smsatcb.c
7451
hostToDevFis->h.command == SAT_WRITE_SECTORS ||
sys/dev/pms/RefTisa/sat/src/smsatcb.c
7452
hostToDevFis->h.command == SAT_WRITE_DMA_EXT ||
sys/dev/pms/RefTisa/sat/src/smsatcb.c
7453
hostToDevFis->h.command == SAT_WRITE_SECTORS_EXT ||
sys/dev/pms/RefTisa/sat/src/smsatcb.c
7454
hostToDevFis->h.command == SAT_WRITE_FPDMA_QUEUED
sys/dev/pms/RefTisa/sat/src/smsatcb.c
7462
SM_DBG1(("smsatReassignBlocksCB error default case unexpected command 0x%x!!!\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/sat/src/smsatcb.c
7491
if (hostToDevFis->h.command == SAT_READ_VERIFY_SECTORS ||
sys/dev/pms/RefTisa/sat/src/smsatcb.c
7492
hostToDevFis->h.command == SAT_READ_VERIFY_SECTORS_EXT ||
sys/dev/pms/RefTisa/sat/src/smsatcb.c
7493
hostToDevFis->h.command == SAT_WRITE_DMA ||
sys/dev/pms/RefTisa/sat/src/smsatcb.c
7494
hostToDevFis->h.command == SAT_WRITE_SECTORS ||
sys/dev/pms/RefTisa/sat/src/smsatcb.c
7495
hostToDevFis->h.command == SAT_WRITE_DMA_EXT ||
sys/dev/pms/RefTisa/sat/src/smsatcb.c
7496
hostToDevFis->h.command == SAT_WRITE_SECTORS_EXT ||
sys/dev/pms/RefTisa/sat/src/smsatcb.c
7497
hostToDevFis->h.command == SAT_WRITE_FPDMA_QUEUED
sys/dev/pms/RefTisa/sat/src/smsatcb.c
7588
else if (hostToDevFis->h.command == SAT_WRITE_DMA ||
sys/dev/pms/RefTisa/sat/src/smsatcb.c
7589
hostToDevFis->h.command == SAT_WRITE_SECTORS ||
sys/dev/pms/RefTisa/sat/src/smsatcb.c
7590
hostToDevFis->h.command == SAT_WRITE_DMA_EXT ||
sys/dev/pms/RefTisa/sat/src/smsatcb.c
7591
hostToDevFis->h.command == SAT_WRITE_SECTORS_EXT ||
sys/dev/pms/RefTisa/sat/src/smsatcb.c
7592
hostToDevFis->h.command == SAT_WRITE_FPDMA_QUEUED
sys/dev/pms/RefTisa/sat/src/smsatcb.c
7599
SM_DBG1(("smsatReassignBlocksCB error unknown command success 0x%x !!!\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/sat/src/smsatcb.c
9068
SM_DBG1(("smsatIOCompleted: H to D command 0x%x!!!\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/sat/src/smsatcb.c
9117
smIORequest, pScsiCmnd->cdb[0], hostToDevFis->h.command));
sys/dev/pms/RefTisa/sat/src/smsatcb.c
9122
switch(hostToDevFis->h.command)
sys/dev/pms/RefTisa/sat/src/smsatcb.c
9458
if ( (hostToDevFis->h.command == SAT_SMART && hostToDevFis->h.features == SAT_SMART_EXEUTE_OFF_LINE_IMMEDIATE) &&
sys/dev/pms/RefTisa/sat/src/smsathw.c
120
(satIOContext->pFis->h.command == SAT_READ_LOG_EXT) )
sys/dev/pms/RefTisa/tisa/sassata/sas/ini/itddisc.c
5668
if (fis->h.fisType == REG_DEV_TO_HOST_FIS)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
10152
if (hostToDevFis->h.command == SAT_READ_BUFFER )
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
10170
TI_DBG1(("satReadBufferCB: error unknown command success 0x%x\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
10341
if (hostToDevFis->h.command == SAT_WRITE_BUFFER )
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
10359
TI_DBG1(("satWriteBufferCB: error unknown command success 0x%x\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
10542
if (hostToDevFis->h.command == SAT_READ_VERIFY_SECTORS ||
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
10543
hostToDevFis->h.command == SAT_READ_VERIFY_SECTORS_EXT
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
10624
else if (hostToDevFis->h.command == SAT_WRITE_DMA ||
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
10625
hostToDevFis->h.command == SAT_WRITE_SECTORS ||
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
10626
hostToDevFis->h.command == SAT_WRITE_DMA_EXT ||
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
10627
hostToDevFis->h.command == SAT_WRITE_SECTORS_EXT ||
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
10628
hostToDevFis->h.command == SAT_WRITE_FPDMA_QUEUED
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
10636
TI_DBG1(("satReassignBlocksCB error default case unexpected command 0x%x\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
10665
if (hostToDevFis->h.command == SAT_READ_VERIFY_SECTORS ||
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
10666
hostToDevFis->h.command == SAT_READ_VERIFY_SECTORS_EXT ||
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
10667
hostToDevFis->h.command == SAT_WRITE_DMA ||
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
10668
hostToDevFis->h.command == SAT_WRITE_SECTORS ||
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
10669
hostToDevFis->h.command == SAT_WRITE_DMA_EXT ||
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
10670
hostToDevFis->h.command == SAT_WRITE_SECTORS_EXT ||
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
10671
hostToDevFis->h.command == SAT_WRITE_FPDMA_QUEUED
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
10767
else if (hostToDevFis->h.command == SAT_WRITE_DMA ||
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
10768
hostToDevFis->h.command == SAT_WRITE_SECTORS ||
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
10769
hostToDevFis->h.command == SAT_WRITE_DMA_EXT ||
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
10770
hostToDevFis->h.command == SAT_WRITE_SECTORS_EXT ||
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
10771
hostToDevFis->h.command == SAT_WRITE_FPDMA_QUEUED
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
10778
TI_DBG1(("satReassignBlocksCB error unknown command success 0x%x \n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
1451
TI_DBG1(("satChainedDataIOCB: FAILED, error status and command 0x%x\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
1470
switch (hostToDevFis->h.command)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
1581
TI_DBG1(("satChainedDataIOCB: success but default case scsi cmd 0x%x ata cmd 0x%x\n",scsiCmnd->cdb[0], hostToDevFis->h.command));
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
1607
TI_DBG1(("satChainedDataIOCB: success but default case command 0x%x\n",hostToDevFis->h.command));
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
1800
switch (hostToDevFis->h.command)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
1821
TI_DBG1(("satNonChainedWriteNVerifyCB: error default case command 0x%x\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
1849
switch (hostToDevFis->h.command)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
1901
TI_DBG1(("satNonChainedWriteNVerifyCB: error default case command 0x%x success\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
2130
TI_DBG1(("satChainedWriteNVerifyCB: FAILED, error status and command 0x%x\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
2150
switch (hostToDevFis->h.command)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
2349
TI_DBG1(("satChainedWriteNVerifyCB: success but default case command 0x%x\n",hostToDevFis->h.command));
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
3217
if ( (hostToDevFis->h.command == SAT_SMART_EXEUTE_OFF_LINE_IMMEDIATE) &&
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
5045
switch (hostToDevFis->h.command)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
5051
TI_DBG1(("satVerify10CB: error default case command 0x%x\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
5078
switch (hostToDevFis->h.command)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
5097
TI_DBG1(("satVerify10CB: success but error default case command 0x%x\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
5259
switch (hostToDevFis->h.command)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
5268
TI_DBG1(("satNonChainedVerifyCB: error default case command 0x%x\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
5295
switch (hostToDevFis->h.command)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
5315
TI_DBG1(("satNonChainedVerifyCB: success but error default case command 0x%x\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
5483
switch (hostToDevFis->h.command)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
5492
TI_DBG1(("satChainedVerifyCB: error default case command 0x%x\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
5519
switch (hostToDevFis->h.command)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
5618
TI_DBG1(("satChainedVerifyCB: success but error default case command 0x%x\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
5793
switch (hostToDevFis->h.command)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
5851
TI_DBG1(("satTestUnitReadyCB: default failed command %d\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
5878
switch (hostToDevFis->h.command)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
5981
TI_DBG1(("satTestUnitReadyCB: default success command %d\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
6197
switch (hostToDevFis->h.command)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
6209
TI_DBG1(("satWriteSame10CB: error default case command 0x%x\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
6241
if (hostToDevFis->h.command == SAT_WRITE_DMA_EXT)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
6245
else if (hostToDevFis->h.command == SAT_WRITE_SECTORS_EXT)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
6249
else if (hostToDevFis->h.command == SAT_WRITE_FPDMA_QUEUED)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
6255
TI_DBG1(("satWriteSame10CB: error case command 0x%x success\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
6349
if (hostToDevFis->h.command == SAT_WRITE_DMA_EXT)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
6353
else if (hostToDevFis->h.command == SAT_WRITE_SECTORS_EXT)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
6357
else if (hostToDevFis->h.command == SAT_WRITE_FPDMA_QUEUED)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
6409
if (hostToDevFis->h.command == SAT_WRITE_DMA_EXT)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
6419
else if (hostToDevFis->h.command == SAT_WRITE_SECTORS_EXT)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
6429
else if (hostToDevFis->h.command == SAT_WRITE_FPDMA_QUEUED)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
6442
TI_DBG1(("satWriteSame10CB: sucess but error in command 0x%x\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
6672
switch (hostToDevFis->h.command)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
6875
TI_DBG5(("satStartStopUnitCB: default command %d\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
6903
switch (hostToDevFis->h.command)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
7090
TI_DBG1(("satStartStopUnitCB:success but error default case command 0x%x\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
7244
TI_DBG5(("satSendDiagnosticCB: fis command 0x%x\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
7262
if ( (hostToDevFis->h.command == SAT_SMART_RETURN_STATUS) ||
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
7263
(hostToDevFis->h.command == SAT_READ_VERIFY_SECTORS_EXT) )
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
7276
if ( (hostToDevFis->h.command == SAT_SMART_RETURN_STATUS) ||
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
7277
(hostToDevFis->h.command == SAT_READ_VERIFY_SECTORS_EXT) )
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
7292
if ( (hostToDevFis->h.command == SAT_SMART_RETURN_STATUS) ||
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
7293
(hostToDevFis->h.command == SAT_READ_VERIFY_SECTORS_EXT) )
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
7319
if ( (hostToDevFis->h.command == SAT_READ_VERIFY_SECTORS) ||
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
7320
(hostToDevFis->h.command == SAT_READ_VERIFY_SECTORS_EXT) )
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
7376
switch (hostToDevFis->h.command)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
7540
TI_DBG1(("satSendDiagnosticCB: success but error default case command 0x%x\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
7682
TI_DBG4(("satRequestSenseCB: fis command 0x%x\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
7720
if (hostToDevFis->h.command == SAT_SMART_RETURN_STATUS)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
7735
if (hostToDevFis->h.command == SAT_SMART_RETURN_STATUS)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
7761
if (hostToDevFis->h.command == SAT_SMART_RETURN_STATUS)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
7833
switch (hostToDevFis->h.command)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
8121
TI_DBG1(("satRequestSenseCB: success but error default case command 0x%x\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
8305
switch (hostToDevFis->h.command)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
8378
TI_DBG1(("satSynchronizeCache10n16CB: error unknown command 0x%x\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
8414
switch (hostToDevFis->h.command)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
8450
TI_DBG5(("satSynchronizeCache10n16CB: error unknown command 0x%x\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
8629
if (hostToDevFis->h.command == SAT_SET_FEATURES)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
8631
if ((hostToDevFis->h.features == 0x82) || (hostToDevFis->h.features == 0x02))
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
8633
TI_DBG1(("satModeSelect6n10CB 1 SAT_SET_FEATURES failed, feature 0x%x\n", hostToDevFis->h.features));
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
8635
else if ((hostToDevFis->h.features == 0xAA) || (hostToDevFis->h.features == 0x55))
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
8637
TI_DBG1(("ssatModeSelect6n10CB 2 SAT_SET_FEATURES failed, feature 0x%x\n", hostToDevFis->h.features));
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
8641
TI_DBG1(("satModeSelect6n10CB error unknown command 0x%x feature 0x%x\n", hostToDevFis->h.command, hostToDevFis->h.features));
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
8644
else if (hostToDevFis->h.command == SAT_SMART)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
8646
if ((hostToDevFis->h.features == SAT_SMART_ENABLE_OPERATIONS) || (hostToDevFis->h.features == SAT_SMART_DISABLE_OPERATIONS))
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
8648
TI_DBG1(("satModeSelect6n10CB SAT_SMART_ENABLE/DISABLE_OPERATIONS failed, feature 0x%x\n", hostToDevFis->h.features));
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
8652
TI_DBG1(("satModeSelect6n10CB error unknown command 0x%x feature 0x%x\n", hostToDevFis->h.command, hostToDevFis->h.features));
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
8657
TI_DBG1(("satModeSelect6n10CB error default case command 0x%x\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
8688
if (hostToDevFis->h.command == SAT_SET_FEATURES)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
8690
if ((hostToDevFis->h.features == 0x82) || (hostToDevFis->h.features == 0x02))
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
8692
TI_DBG5(("satModeSelect6n10CB 1 SAT_SET_FEATURES success, feature 0x%x\n", hostToDevFis->h.features));
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
8766
else if ((hostToDevFis->h.features == 0xAA) || (hostToDevFis->h.features == 0x55))
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
8768
TI_DBG5(("satModeSelect6n10CB 2 SAT_SET_FEATURES success, feature 0x%x\n", hostToDevFis->h.features));
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
8787
TI_DBG1(("satModeSelect6n10CB error unknown command success 0x%x feature 0x%x\n", hostToDevFis->h.command, hostToDevFis->h.features));
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
8809
else if (hostToDevFis->h.command == SAT_SMART_ENABLE_OPERATIONS ||
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
8810
hostToDevFis->h.command == SAT_SMART_DISABLE_OPERATIONS
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
8813
if ((hostToDevFis->h.features == 0xD8) || (hostToDevFis->h.features == 0xD9))
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
8815
TI_DBG5(("satModeSelect6n10CB SAT_SMART_ENABLE/DISABLE_OPERATIONS success, feature 0x%x\n", hostToDevFis->h.features));
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
8833
TI_DBG1(("satModeSelect6n10CB error unknown command failed 0x%x feature 0x%x\n", hostToDevFis->h.command, hostToDevFis->h.features));
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
8858
TI_DBG1(("satModeSelect6n10CB error default case command success 0x%x\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
9264
if (hostToDevFis->h.command == SAT_READ_LOG_EXT)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
9268
else if (hostToDevFis->h.command == SAT_SMART)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
9270
if (hostToDevFis->h.features == SAT_SMART_READ_LOG)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
9274
else if (hostToDevFis->h.features == SAT_SMART_RETURN_STATUS)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
9280
TI_DBG1(("satLogSenseCB: error unknown command 0x%x feature 0x%x\n", hostToDevFis->h.command, hostToDevFis->h.features));
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
9285
TI_DBG1(("satLogSenseCB: error default case command 0x%x\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
9318
if (hostToDevFis->h.command == SAT_READ_LOG_EXT)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
9486
else if (hostToDevFis->h.command == SAT_SMART_READ_LOG
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
9487
|| hostToDevFis->h.command == SAT_SMART_RETURN_STATUS)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
9489
if (hostToDevFis->h.features == 0xd5)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
9656
else if (hostToDevFis->h.features == 0xda)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
9725
TI_DBG1(("satLogSenseCB: error unknown command success 0x%x feature 0x%x\n", hostToDevFis->h.command, hostToDevFis->h.features));
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
9749
TI_DBG1(("satLogSenseCB: error unknown command success 0x%x\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
9935
if (hostToDevFis->h.command == SAT_READ_SECTORS ||
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
9936
hostToDevFis->h.command == SAT_READ_SECTORS_EXT
sys/dev/pms/RefTisa/tisa/sassata/sata/host/ossasat.c
9979
TI_DBG1(("satReadMediaSerialNumberCB: error unknown command success 0x%x\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1002
fis->h.features |= 0x0;
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
10046
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
10047
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
10049
fis->h.command = SAT_MEDIA_EJECT; /* 0xED */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
10050
fis->h.features = 0; /* FIS features NA */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
10170
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
10171
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
10173
fis->h.command = SAT_STANDBY; /* 0xE2 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
10174
fis->h.features = 0; /* FIS features NA */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
10257
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
10258
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
10259
fis->h.command = SAT_READ_VERIFY_SECTORS_EXT;/* 0x42 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
10260
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
10280
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
10281
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
10282
fis->h.command = SAT_READ_VERIFY_SECTORS;/* 0x40 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
10283
fis->h.features = 0; /* FIS features NA */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
10514
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
10515
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
10517
fis->h.command = SAT_WRITE_DMA_EXT; /* 0x35 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
10519
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
10568
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
10569
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
10571
fis->h.command = SAT_WRITE_SECTORS_EXT; /* 0x34 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
10572
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1059
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1060
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1061
fis->h.command = SAT_DEVICE_RESET; /* 0x90 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1062
fis->h.features = 0;
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
10642
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
10643
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
10644
fis->h.command = SAT_WRITE_FPDMA_QUEUED; /* 0x61 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
10672
fis->h.features = 1; /* FIS sector count (7:0) */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
10815
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
10816
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
10818
fis->h.command = SAT_WRITE_DMA_EXT; /* 0x35 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
10820
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
10911
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
10912
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
10914
fis->h.command = SAT_WRITE_SECTORS_EXT; /* 0x34 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
10915
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
11005
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
11006
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
11007
fis->h.command = SAT_WRITE_FPDMA_QUEUED; /* 0x61 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
11011
fis->h.features = 1; /* FIS sector count (7:0) */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
11140
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
11141
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
11143
fis->h.command = SAT_READ_LOG_EXT; /* 0x2F */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
11144
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
11182
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
11183
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
11185
fis->h.command = SAT_SMART_READ_LOG; /* 0x2F */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
11186
fis->h.features = 0x00; /* 0xd5 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
11259
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
11260
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
11262
fis->h.command = SAT_SMART_ENABLE_OPERATIONS; /* 0xB0 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
11263
fis->h.features = 0xD8;
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
11333
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
11334
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
11336
fis->h.command = SAT_SMART_READ_LOG; /* 0x2F */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
11337
fis->h.features = 0xD5; /* 0xd5 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1136
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1137
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1138
fis->h.command = SAT_EXECUTE_DEVICE_DIAGNOSTIC; /* 0x90 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1139
fis->h.features = 0;
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
11405
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
11406
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
11408
fis->h.command = SAT_READ_LOG_EXT; /* 0x2F */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
11409
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
11939
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
11940
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
11942
fis->h.command = SAT_SMART_RETURN_STATUS;/* 0xB0 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
11943
fis->h.features = 0xDA; /* FIS features */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
12272
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
12273
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
12275
fis->h.command = SAT_SET_FEATURES; /* 0xEF */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
12276
fis->h.features = 0x82; /* disable write cache */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
12313
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
12314
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
12316
fis->h.command = SAT_SET_FEATURES; /* 0xEF */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
12317
fis->h.features = 0x02; /* enable write cache */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
12382
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
12383
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
12385
fis->h.command = SAT_SMART_ENABLE_OPERATIONS; /* 0xB0 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
12386
fis->h.features = 0xD8; /* enable */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
12423
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
12424
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
12426
fis->h.command = SAT_SMART_DISABLE_OPERATIONS; /* 0xB0 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
12427
fis->h.features = 0xD9; /* disable */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
12536
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
12537
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
12539
fis->h.command = SAT_SET_FEATURES; /* 0xEF */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
12540
fis->h.features = 0xAA; /* enable read look-ahead */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
12577
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
12578
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
12580
fis->h.command = SAT_SET_FEATURES; /* 0xEF */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
12581
fis->h.features = 0x55; /* disable read look-ahead */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
12924
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
12925
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
12927
fis->h.command = SAT_SET_FEATURES; /* 0xEF */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
12928
fis->h.features = 0x82; /* disable write cache */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
12965
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
12966
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
12968
fis->h.command = SAT_SET_FEATURES; /* 0xEF */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
12969
fis->h.features = 0x02; /* enable write cache */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13035
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13036
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13038
fis->h.command = SAT_SMART_ENABLE_OPERATIONS; /* 0xB0 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13039
fis->h.features = 0xD8; /* enable */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13076
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13077
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13079
fis->h.command = SAT_SMART_DISABLE_OPERATIONS; /* 0xB0 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13080
fis->h.features = 0xD9; /* disable */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13215
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13216
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13218
fis->h.command = SAT_FLUSH_CACHE_EXT; /* 0xEA */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13219
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13239
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13240
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13242
fis->h.command = SAT_FLUSH_CACHE; /* 0xE7 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13243
fis->h.features = 0; /* FIS features NA */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13361
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13362
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13364
fis->h.command = SAT_FLUSH_CACHE_EXT; /* 0xEA */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13365
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13385
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13386
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13388
fis->h.command = SAT_FLUSH_CACHE; /* 0xE7 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13389
fis->h.features = 0; /* FIS features NA */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1360
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13605
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13606
fis->h.c_pmPort = 0x80; /* C bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13607
fis->h.command = SAT_WRITE_DMA; /* 0xCA */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13608
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1361
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1362
fis->h.command = SAT_READ_DMA; /* 0xC8 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1363
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13636
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13637
fis->h.c_pmPort = 0x80; /* C bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13638
fis->h.command = SAT_WRITE_SECTORS; /* 0x30 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13639
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13671
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13672
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13675
fis->h.command = SAT_WRITE_DMA_EXT; /* 0x35 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13677
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13701
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13702
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13703
fis->h.command = SAT_WRITE_SECTORS_EXT; /* 0x34 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13705
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13749
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13750
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13751
fis->h.command = SAT_WRITE_FPDMA_QUEUED; /* 0x61 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13752
fis->h.features = scsiCmnd->cdb[8]; /* FIS sector count (7:0) */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13785
if (fis->h.command == SAT_WRITE_SECTORS || fis->h.command == SAT_WRITE_DMA)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13789
else if (fis->h.command == SAT_WRITE_SECTORS_EXT ||
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13790
fis->h.command == SAT_WRITE_DMA_EXT ||
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13791
fis->h.command == SAT_WRITE_DMA_FUA_EXT
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13817
if (fis->h.command == SAT_WRITE_SECTORS || fis->h.command == SAT_WRITE_DMA)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13821
else if (fis->h.command == SAT_WRITE_SECTORS_EXT ||
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13822
fis->h.command == SAT_WRITE_DMA_EXT ||
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13823
fis->h.command == SAT_WRITE_DMA_FUA_EXT
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
13832
fis->h.features = 0xFF;
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1392
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1393
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1394
fis->h.command = SAT_READ_SECTORS; /* 0x20 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1395
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14006
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14007
fis->h.c_pmPort = 0x80; /* C bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14008
fis->h.command = SAT_WRITE_DMA; /* 0xCA */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14009
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14037
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14038
fis->h.c_pmPort = 0x80; /* C bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14039
fis->h.command = SAT_WRITE_SECTORS; /* 0x30 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14040
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14072
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14073
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14076
fis->h.command = SAT_WRITE_DMA_EXT; /* 0x35 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14078
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14101
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14102
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14103
fis->h.command = SAT_WRITE_SECTORS_EXT; /* 0x34 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14105
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14148
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14149
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14150
fis->h.command = SAT_WRITE_FPDMA_QUEUED; /* 0x61 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14151
fis->h.features = scsiCmnd->cdb[8]; /* FIS sector count (7:0) */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14237
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14238
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14240
fis->h.command = SAT_READ_VERIFY_SECTORS_EXT;/* 0x42 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14241
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1425
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1427
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1428
fis->h.command = SAT_READ_DMA_EXT; /* 0x25 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1429
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14462
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14463
fis->h.c_pmPort = 0x80; /* C bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14464
fis->h.command = SAT_WRITE_DMA; /* 0xCA */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14465
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14493
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14494
fis->h.c_pmPort = 0x80; /* C bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14495
fis->h.command = SAT_WRITE_SECTORS; /* 0x30 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14496
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14527
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14528
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14531
fis->h.command = SAT_WRITE_DMA_EXT; /* 0x35 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14533
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1454
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1455
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14557
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14558
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14559
fis->h.command = SAT_WRITE_SECTORS_EXT; /* 0x34 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14561
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14606
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14607
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14608
fis->h.command = SAT_WRITE_FPDMA_QUEUED; /* 0x61 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14609
fis->h.features = scsiCmnd->cdb[9]; /* FIS sector count (7:0) */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14643
if (fis->h.command == SAT_WRITE_SECTORS || fis->h.command == SAT_WRITE_DMA)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14647
else if (fis->h.command == SAT_WRITE_SECTORS_EXT ||
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14648
fis->h.command == SAT_WRITE_DMA_EXT ||
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14649
fis->h.command == SAT_WRITE_DMA_FUA_EXT
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14676
if (fis->h.command == SAT_WRITE_SECTORS || fis->h.command == SAT_WRITE_DMA)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14680
else if (fis->h.command == SAT_WRITE_SECTORS_EXT ||
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14681
fis->h.command == SAT_WRITE_DMA_EXT ||
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14682
fis->h.command == SAT_WRITE_DMA_FUA_EXT
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14691
fis->h.features = 0xFF;
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14735
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14736
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14738
fis->h.command = SAT_READ_VERIFY_SECTORS_EXT;/* 0x42 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14739
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1477
fis->h.command = SAT_READ_SECTORS_EXT; /* 0x24 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1479
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14852
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14853
fis->h.c_pmPort = 0x80; /* C bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14854
fis->h.command = SAT_WRITE_DMA; /* 0xCA */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14855
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14885
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14886
fis->h.c_pmPort = 0x80; /* C bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14887
fis->h.command = SAT_WRITE_SECTORS; /* 0x30 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14888
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14918
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14919
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14920
fis->h.command = SAT_WRITE_DMA_EXT; /* 0x3D */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14921
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14949
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14950
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14951
fis->h.command = SAT_WRITE_SECTORS_EXT; /* 0x34 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14953
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14981
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14982
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
14983
fis->h.command = SAT_WRITE_FPDMA_QUEUED; /* 0x61 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15000
fis->h.features = (bit8)(Remainder & 0xFF); /* FIS sector count (7:0) */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15005
fis->h.features = 0xFF; /* FIS sector count (7:0) */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15097
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15098
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15100
fis->h.command = SAT_READ_VERIFY_SECTORS_EXT;/* 0x42 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15101
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15123
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15124
fis->h.c_pmPort = 0x80; /* C bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15125
fis->h.command = SAT_READ_VERIFY_SECTORS; /* 0x40 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15126
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15155
if (fis->h.command == SAT_READ_VERIFY_SECTORS)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15159
else if (fis->h.command == SAT_READ_VERIFY_SECTORS_EXT)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15183
if (fis->h.command == SAT_READ_VERIFY_SECTORS)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15187
else if (fis->h.command == SAT_READ_VERIFY_SECTORS_EXT)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1525
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1526
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15265
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15266
fis->h.c_pmPort = 0x80; /* C bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15267
fis->h.command = SAT_READ_VERIFY_SECTORS; /* 0x40 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15268
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1527
fis->h.command = SAT_READ_FPDMA_QUEUED; /* 0x60 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1528
fis->h.features = scsiCmnd->cdb[8]; /* FIS sector count (7:0) */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15298
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15299
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15300
fis->h.command = SAT_READ_VERIFY_SECTORS_EXT; /* 0x42 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15301
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15542
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15543
fis->h.c_pmPort = 0x80; /* C bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15544
fis->h.command = SAT_WRITE_DMA; /* 0xCA */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15545
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15573
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15574
fis->h.c_pmPort = 0x80; /* C bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15575
fis->h.command = SAT_WRITE_SECTORS; /* 0x30 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15576
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15607
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15608
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15611
fis->h.command = SAT_WRITE_DMA_EXT; /* 0x35 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15613
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15637
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15638
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15639
fis->h.command = SAT_WRITE_SECTORS_EXT; /* 0x34 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15641
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1565
if (fis->h.command == SAT_READ_SECTORS || fis->h.command == SAT_READ_DMA)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15686
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15687
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15688
fis->h.command = SAT_WRITE_FPDMA_QUEUED; /* 0x61 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15689
fis->h.features = scsiCmnd->cdb[13]; /* FIS sector count (7:0) */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1569
else if (fis->h.command == SAT_READ_SECTORS_EXT || fis->h.command == SAT_READ_DMA_EXT)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15722
if (fis->h.command == SAT_WRITE_SECTORS || fis->h.command == SAT_WRITE_DMA)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15726
else if (fis->h.command == SAT_WRITE_SECTORS_EXT ||
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15727
fis->h.command == SAT_WRITE_DMA_EXT ||
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15728
fis->h.command == SAT_WRITE_DMA_FUA_EXT
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15754
if (fis->h.command == SAT_WRITE_SECTORS || fis->h.command == SAT_WRITE_DMA)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15758
else if (fis->h.command == SAT_WRITE_SECTORS_EXT ||
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15759
fis->h.command == SAT_WRITE_DMA_EXT ||
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15760
fis->h.command == SAT_WRITE_DMA_FUA_EXT
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15769
fis->h.features = 0xFF;
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15920
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15921
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15922
fis->h.command = SAT_READ_SECTORS_EXT; /* 0x24 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15924
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1593
if (fis->h.command == SAT_READ_SECTORS || fis->h.command == SAT_READ_DMA)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15944
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15945
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15946
fis->h.command = SAT_READ_SECTORS; /* 0x20 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
15947
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1597
else if (fis->h.command == SAT_READ_SECTORS_EXT || fis->h.command == SAT_READ_DMA_EXT)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1606
fis->h.features = 0xFF;
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
16065
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
16066
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
16067
fis->h.command = SAT_READ_BUFFER; /* 0xE4 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
16068
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
16308
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
16309
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
16310
fis->h.command = SAT_WRITE_BUFFER; /* 0xE8 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
16311
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
16546
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
16547
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
16548
fis->h.command = SAT_READ_VERIFY_SECTORS_EXT;/* 0x42 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
16549
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
16567
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
16568
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
16569
fis->h.command = SAT_READ_VERIFY_SECTORS;/* 0x40 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
16570
fis->h.features = 0; /* FIS features NA */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
16688
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
16689
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
16690
fis->h.command = SAT_READ_VERIFY_SECTORS_EXT;/* 0x42 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
16691
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
16709
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
16710
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
16711
fis->h.command = SAT_READ_VERIFY_SECTORS;/* 0x40 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
16712
fis->h.features = 0; /* FIS features NA */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
16797
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
16798
fis->h.c_pmPort = 0x80; /* C bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
16799
fis->h.command = SAT_WRITE_DMA; /* 0xCA */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
16800
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
16828
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
16829
fis->h.c_pmPort = 0x80; /* C bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
16830
fis->h.command = SAT_WRITE_SECTORS; /* 0x30 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
16831
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
16861
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
16862
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
16865
fis->h.command = SAT_WRITE_DMA_EXT; /* 0x35 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
16868
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
16891
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
16892
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
16893
fis->h.command = SAT_WRITE_SECTORS_EXT; /* 0x34 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
16895
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
16939
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
16940
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
16941
fis->h.command = SAT_WRITE_FPDMA_QUEUED; /* 0x61 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
16942
fis->h.features = 1; /* FIS sector count (7:0) */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1719
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1720
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1721
fis->h.command = SAT_READ_DMA; /* 0xC8 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1722
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1752
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1753
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1754
fis->h.command = SAT_READ_SECTORS; /* 0x20 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1755
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1783
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1784
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1785
fis->h.command = SAT_READ_DMA_EXT; /* 0x25 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1786
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
17880
TI_DBG1(("osSatIOCompleted: H to D command 0x%x\n", hostToDevFis->h.command));
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
17929
tiIORequest, pScsiCmnd->cdb[0], hostToDevFis->h.command));
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
17934
switch(hostToDevFis->h.command)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1815
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1816
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1817
fis->h.command = SAT_READ_SECTORS_EXT; /* 0x24 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1818
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1845
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1846
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1847
fis->h.command = SAT_READ_FPDMA_QUEUED; /* 0x60 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1864
fis->h.features = (bit8)(Remainder & 0xFF); /* FIS sector count (7:0) */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
1869
fis->h.features = 0xFF; /* FIS sector count (7:0) */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
18720
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
18721
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
18722
fis->h.command = SAT_READ_LOG_EXT; /* 0x2F */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
18723
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
19301
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
19302
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
19304
fis->h.command = SAT_IDENTIFY_PACKET_DEVICE; /* 0x40 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
19306
fis->h.command = SAT_IDENTIFY_DEVICE; /* 0xEC */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
19307
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
20330
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
20331
fis->h.c_pmPort = 0; /* C Bit is not set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
20332
fis->h.command = 0; /* any command */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
20333
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
20680
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
20681
fis->h.c_pmPort = 0; /* C Bit is not set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
20682
fis->h.command = 0; /* any command */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
20683
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2076
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2077
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2078
fis->h.command = SAT_READ_DMA; /* 0xC8 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2079
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2107
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2108
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2109
fis->h.command = SAT_READ_SECTORS; /* 0x20 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2110
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
21105
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
21106
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
21107
fis->h.command = SAT_CHECK_POWER_MODE; /* 0xE5 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
21108
fis->h.features = 0;
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2140
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2142
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2143
fis->h.command = SAT_READ_DMA_EXT; /* 0x25 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2144
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
21532
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
21533
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
21535
fis->h.command = SAT_IDENTIFY_PACKET_DEVICE; /* 0x40 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
21537
fis->h.command = SAT_IDENTIFY_DEVICE; /* 0xEC */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
21538
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2169
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2170
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2191
fis->h.command = SAT_READ_SECTORS_EXT; /* 0x24 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2193
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2239
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2240
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2241
fis->h.command = SAT_READ_FPDMA_QUEUED; /* 0x60 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2242
fis->h.features = scsiCmnd->cdb[9]; /* FIS sector count (7:0) */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
22607
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
22608
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
22610
fis->h.command = SAT_IDENTIFY_PACKET_DEVICE; /* 0xA1 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
22612
fis->h.command = SAT_IDENTIFY_DEVICE; /* 0xEC */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
22613
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2276
if (fis->h.command == SAT_READ_SECTORS || fis->h.command == SAT_READ_DMA)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2280
else if (fis->h.command == SAT_READ_SECTORS_EXT || fis->h.command == SAT_READ_DMA_EXT)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2302
if (fis->h.command == SAT_READ_SECTORS || fis->h.command == SAT_READ_DMA)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2306
else if (fis->h.command == SAT_READ_SECTORS_EXT || fis->h.command == SAT_READ_DMA_EXT)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2315
fis->h.features = 0xFF;
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2521
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2522
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2523
fis->h.command = SAT_READ_DMA; /* 0xC8 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2524
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2552
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2553
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2554
fis->h.command = SAT_READ_SECTORS; /* 0x20 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2555
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2585
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2587
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2588
fis->h.command = SAT_READ_DMA_EXT; /* 0x25 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2589
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2614
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2615
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2637
fis->h.command = SAT_READ_SECTORS_EXT; /* 0x24 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2639
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2686
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2687
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2688
fis->h.command = SAT_READ_FPDMA_QUEUED; /* 0x60 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2689
fis->h.features = scsiCmnd->cdb[13]; /* FIS sector count (7:0) */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2723
if (fis->h.command == SAT_READ_SECTORS || fis->h.command == SAT_READ_DMA)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2727
else if (fis->h.command == SAT_READ_SECTORS_EXT || fis->h.command == SAT_READ_DMA_EXT)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2748
if (fis->h.command == SAT_READ_SECTORS || fis->h.command == SAT_READ_DMA)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2752
else if (fis->h.command == SAT_READ_SECTORS_EXT || fis->h.command == SAT_READ_DMA_EXT)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2761
fis->h.features = 0xFF;
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2902
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2903
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2904
fis->h.command = SAT_READ_DMA; /* 0xC8 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2905
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2936
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2937
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2938
fis->h.command = SAT_READ_SECTORS; /* 0x20 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2939
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2975
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2976
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2977
fis->h.command = SAT_READ_DMA_EXT; /* 0x25 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
2978
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3010
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3011
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3012
fis->h.command = SAT_READ_SECTORS_EXT; /* 0x24 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3013
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3067
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3068
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3069
fis->h.command = SAT_READ_FPDMA_QUEUED; /* 0x60 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3080
fis->h.features = 0; /* FIS sector count (7:0) */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3085
fis->h.features = scsiCmnd->cdb[4]; /* FIS sector count (7:0) */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3297
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3298
fis->h.c_pmPort = 0x80; /* C bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3299
fis->h.command = SAT_WRITE_DMA; /* 0xCA */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3300
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3328
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3329
fis->h.c_pmPort = 0x80; /* C bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3330
fis->h.command = SAT_WRITE_SECTORS; /* 0x30 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3331
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3362
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3363
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3366
fis->h.command = SAT_WRITE_DMA_EXT; /* 0x35 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3368
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3392
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3393
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3394
fis->h.command = SAT_WRITE_SECTORS_EXT; /* 0x34 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3396
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3441
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3442
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3443
fis->h.command = SAT_WRITE_FPDMA_QUEUED; /* 0x61 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3444
fis->h.features = scsiCmnd->cdb[13]; /* FIS sector count (7:0) */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3477
if (fis->h.command == SAT_WRITE_SECTORS || fis->h.command == SAT_WRITE_DMA)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3481
else if (fis->h.command == SAT_WRITE_SECTORS_EXT ||
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3482
fis->h.command == SAT_WRITE_DMA_EXT ||
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3483
fis->h.command == SAT_WRITE_DMA_FUA_EXT
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3509
if (fis->h.command == SAT_WRITE_SECTORS || fis->h.command == SAT_WRITE_DMA)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3513
else if (fis->h.command == SAT_WRITE_SECTORS_EXT ||
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3514
fis->h.command == SAT_WRITE_DMA_EXT ||
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3515
fis->h.command == SAT_WRITE_DMA_FUA_EXT
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3524
fis->h.features = 0xFF;
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3719
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3720
fis->h.c_pmPort = 0x80; /* C bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3721
fis->h.command = SAT_WRITE_DMA; /* 0xCA */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3722
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3750
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3751
fis->h.c_pmPort = 0x80; /* C bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3752
fis->h.command = SAT_WRITE_SECTORS; /* 0x30 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3753
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3784
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3785
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3788
fis->h.command = SAT_WRITE_DMA_EXT; /* 0x35 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3790
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3814
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3815
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3816
fis->h.command = SAT_WRITE_SECTORS_EXT; /* 0x34 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3818
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3863
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3864
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3865
fis->h.command = SAT_WRITE_FPDMA_QUEUED; /* 0x61 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3866
fis->h.features = scsiCmnd->cdb[9]; /* FIS sector count (7:0) */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3899
if (fis->h.command == SAT_WRITE_SECTORS || fis->h.command == SAT_WRITE_DMA)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3903
else if (fis->h.command == SAT_WRITE_SECTORS_EXT ||
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3904
fis->h.command == SAT_WRITE_DMA_EXT ||
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3905
fis->h.command == SAT_WRITE_DMA_FUA_EXT
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3931
if (fis->h.command == SAT_WRITE_SECTORS || fis->h.command == SAT_WRITE_DMA)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3935
else if (fis->h.command == SAT_WRITE_SECTORS_EXT ||
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3936
fis->h.command == SAT_WRITE_DMA_EXT ||
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3937
fis->h.command == SAT_WRITE_DMA_FUA_EXT
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
3946
fis->h.features = 0xFF;
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4149
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4150
fis->h.c_pmPort = 0x80; /* C bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4151
fis->h.command = SAT_WRITE_DMA; /* 0xCA */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4152
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4180
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4181
fis->h.c_pmPort = 0x80; /* C bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4182
fis->h.command = SAT_WRITE_SECTORS; /* 0x30 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4183
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4213
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4214
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4217
fis->h.command = SAT_WRITE_DMA_EXT; /* 0x35 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4220
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4243
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4244
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4245
fis->h.command = SAT_WRITE_SECTORS_EXT; /* 0x34 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4247
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4291
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4292
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4293
fis->h.command = SAT_WRITE_FPDMA_QUEUED; /* 0x61 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4294
fis->h.features = scsiCmnd->cdb[8]; /* FIS sector count (7:0) */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4329
if (fis->h.command == SAT_WRITE_SECTORS || fis->h.command == SAT_WRITE_DMA)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4333
else if (fis->h.command == SAT_WRITE_SECTORS_EXT ||
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4334
fis->h.command == SAT_WRITE_DMA_EXT ||
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4335
fis->h.command == SAT_WRITE_DMA_FUA_EXT
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4361
if (fis->h.command == SAT_WRITE_SECTORS || fis->h.command == SAT_WRITE_DMA)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4365
else if (fis->h.command == SAT_WRITE_SECTORS_EXT ||
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4366
fis->h.command == SAT_WRITE_DMA_EXT ||
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4367
fis->h.command == SAT_WRITE_DMA_FUA_EXT
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4376
fis->h.features = 0xFF;
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4485
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4486
fis->h.c_pmPort = 0x80; /* C bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4487
fis->h.command = SAT_WRITE_DMA; /* 0xCA */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4488
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4518
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4519
fis->h.c_pmPort = 0x80; /* C bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4520
fis->h.command = SAT_WRITE_SECTORS; /* 0x30 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4521
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4551
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4552
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4553
fis->h.command = SAT_WRITE_DMA_EXT; /* 0x3D */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4554
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4582
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4583
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4584
fis->h.command = SAT_WRITE_SECTORS_EXT; /* 0x34 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4586
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4614
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4615
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4616
fis->h.command = SAT_WRITE_FPDMA_QUEUED; /* 0x61 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4633
fis->h.features = (bit8)(Remainder & 0xFF); /* FIS sector count (7:0) */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4638
fis->h.features = 0xFF; /* FIS sector count (7:0) */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4791
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4792
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4793
fis->h.command = SAT_WRITE_DMA; /* 0xCA */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4794
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4825
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4826
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4827
fis->h.command = SAT_WRITE_SECTORS; /* 0xCA */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4828
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4864
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4865
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4866
fis->h.command = SAT_WRITE_DMA_EXT; /* 0x35 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4867
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4899
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4900
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4901
fis->h.command = SAT_WRITE_SECTORS_EXT; /* 0x34 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4902
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4956
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4957
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4958
fis->h.command = SAT_WRITE_FPDMA_QUEUED; /* 0x61 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4969
fis->h.features = 0; /* FIS sector count (7:0) */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
4974
fis->h.features = scsiCmnd->cdb[4]; /* FIS sector count (7:0) */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
5140
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
5141
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
5142
fis->h.command = SAT_GET_MEDIA_STATUS; /* 0xDA */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
5143
fis->h.features = 0; /* FIS features NA */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
5231
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
5232
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
5233
fis->h.command = SAT_CHECK_POWER_MODE; /* 0xE5 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
5234
fis->h.features = 0;
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
5489
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
5490
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
5492
fis->h.command = SAT_SMART_RETURN_STATUS; /* 0xB0 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
5493
fis->h.features = 0xDA; /* FIS features */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
5683
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
5684
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
5686
fis->h.command = SAT_CHECK_POWER_MODE; /* 0xE5 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
5687
fis->h.features = 0;
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
759
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
760
fis->h.c_pmPort = 0x80; /* C Bit is set 1*/
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
761
fis->h.command = SAT_PACKET; /* 0xA0 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
764
fis->h.features = (tiScsiRequest->dataDirection == tiDirectionIn)? 0x04 : 0; /* 1 for D2H, 0 for H2D */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
768
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
7921
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
7922
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
7924
fis->h.command = SAT_READ_VERIFY_SECTORS_EXT;/* 0x42 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
7925
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
7947
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
7948
fis->h.c_pmPort = 0x80; /* C bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
7949
fis->h.command = SAT_READ_VERIFY_SECTORS; /* 0x40 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
7950
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
7979
if (fis->h.command == SAT_READ_VERIFY_SECTORS)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
7983
else if (fis->h.command == SAT_READ_VERIFY_SECTORS_EXT)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
8007
if (fis->h.command == SAT_READ_VERIFY_SECTORS)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
8011
else if (fis->h.command == SAT_READ_VERIFY_SECTORS_EXT)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
808
fis->h.features |= 0x01;
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
8088
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
8089
fis->h.c_pmPort = 0x80; /* C bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
8090
fis->h.command = SAT_READ_VERIFY_SECTORS; /* 0x40 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
8091
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
8121
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
8122
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
8123
fis->h.command = SAT_READ_VERIFY_SECTORS_EXT; /* 0x42 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
8124
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
813
fis->h.features |= 0x0;
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
8345
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
8346
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
8348
fis->h.command = SAT_READ_VERIFY_SECTORS_EXT;/* 0x42 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
8349
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
8371
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
8372
fis->h.c_pmPort = 0x80; /* C bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
8373
fis->h.command = SAT_READ_VERIFY_SECTORS; /* 0x40 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
8374
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
8403
if (fis->h.command == SAT_READ_VERIFY_SECTORS)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
8407
else if (fis->h.command == SAT_READ_VERIFY_SECTORS_EXT)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
8431
if (fis->h.command == SAT_READ_VERIFY_SECTORS)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
8435
else if (fis->h.command == SAT_READ_VERIFY_SECTORS_EXT)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
8634
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
8635
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
8637
fis->h.command = SAT_READ_VERIFY_SECTORS_EXT;/* 0x42 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
8638
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
8660
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
8661
fis->h.c_pmPort = 0x80; /* C bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
8662
fis->h.command = SAT_READ_VERIFY_SECTORS; /* 0x40 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
8663
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
8692
if (fis->h.command == SAT_READ_VERIFY_SECTORS)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
8696
else if (fis->h.command == SAT_READ_VERIFY_SECTORS_EXT)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
870
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
871
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
872
fis->h.command = SAT_SET_FEATURES; /* 0xEF */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
8720
if (fis->h.command == SAT_READ_VERIFY_SECTORS)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
8724
else if (fis->h.command == SAT_READ_VERIFY_SECTORS_EXT)
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
873
fis->h.features = 0x03; /* set transfer mode */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9147
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9148
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9149
fis->h.command = SAT_READ_VERIFY_SECTORS_EXT;/* 0x42 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9150
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9170
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9171
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9172
fis->h.command = SAT_READ_VERIFY_SECTORS;/* 0x40 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9173
fis->h.features = 0; /* FIS features NA */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9217
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9218
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9219
fis->h.command = SAT_SMART_EXEUTE_OFF_LINE_IMMEDIATE;/* 0xB0 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9220
fis->h.features = 0xD4; /* FIS features NA */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9281
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9282
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9283
fis->h.command = SAT_SMART_EXEUTE_OFF_LINE_IMMEDIATE;/* 0x40 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9284
fis->h.features = 0xD4; /* FIS features NA */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9332
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9333
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9334
fis->h.command = SAT_SMART_EXEUTE_OFF_LINE_IMMEDIATE;/* 0x40 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9335
fis->h.features = 0xD4; /* FIS features NA */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9397
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9398
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9399
fis->h.command = SAT_SMART_EXEUTE_OFF_LINE_IMMEDIATE;/* 0x40 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9400
fis->h.features = 0xD4; /* FIS features NA */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9461
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9462
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9463
fis->h.command = SAT_SMART_EXEUTE_OFF_LINE_IMMEDIATE;/* 0x40 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9464
fis->h.features = 0xD4; /* FIS features NA */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9501
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9502
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9503
fis->h.command = SAT_SMART_EXEUTE_OFF_LINE_IMMEDIATE;/* 0x40 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9504
fis->h.features = 0xD4; /* FIS features NA */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9618
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9619
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9620
fis->h.command = SAT_READ_VERIFY_SECTORS_EXT;/* 0x42 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9621
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
964
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9640
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9641
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9642
fis->h.command = SAT_READ_VERIFY_SECTORS;/* 0x40 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9643
fis->h.features = 0; /* FIS features NA */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
965
fis->h.c_pmPort = 0x80; /* C Bit is set 1*/
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
966
fis->h.command = SAT_PACKET; /* 0xA0 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
969
fis->h.features = (tiScsiRequest->dataDirection == tiDirectionIn)? 0x04 : 0; /* 1 for D2H, 0 for H2D */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9729
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
973
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9730
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9731
fis->h.command = SAT_READ_VERIFY_SECTORS_EXT;/* 0x42 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9732
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9751
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9752
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9753
fis->h.command = SAT_READ_VERIFY_SECTORS;/* 0x40 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9754
fis->h.features = 0; /* FIS features NA */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9871
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9872
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9874
fis->h.command = SAT_FLUSH_CACHE_EXT; /* 0xEA */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9875
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9895
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9896
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9898
fis->h.command = SAT_FLUSH_CACHE; /* 0xE7 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9899
fis->h.features = 0; /* FIS features NA */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9959
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9960
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9962
fis->h.command = SAT_READ_VERIFY_SECTORS_EXT;/* 0x42 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9963
fis->h.features = 0; /* FIS reserve */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
998
fis->h.features |= 0x01;
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9982
fis->h.fisType = 0x27; /* Reg host to device */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9983
fis->h.c_pmPort = 0x80; /* C Bit is set */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9985
fis->h.command = SAT_READ_VERIFY_SECTORS;/* 0x40 */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sat.c
9986
fis->h.features = 0; /* FIS features NA */
sys/dev/pms/RefTisa/tisa/sassata/sata/host/sathw.c
234
(satIOContext->pFis->h.command == SAT_READ_LOG_EXT)
sys/dev/psci/psci.c
156
register_t g __unused, register_t h __unused,
sys/dev/qat/include/common/qat_freebsd.h
88
#define list_for_each_prev_safe(p, n, h) \
sys/dev/qat/include/common/qat_freebsd.h
89
for (p = (h)->prev, n = (p)->prev; p != (h); p = n, n = (p)->prev)
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
1840
uint64_t h; /**< DSA 1024-bit parameter (16 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
2053
uint64_t h; /**< DSA 2048-bit parameter (32 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
2152
uint64_t h; /**< DSA 3072-bit parameter (48 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
2425
uint64_t h; /**< cofactor of B/K-163 or B/K-233 (4 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
2461
uint64_t h; /**< cofactor (&lt; 2^512) (8 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
2497
uint64_t h; /**< cofactor for B/K-571 (1 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
2719
uint64_t h; /**< cofactor (4 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
2755
uint64_t h; /**< cofactor (8 qwords)*/
sys/dev/qat/qat_api/firmware/include/icp_qat_fw_mmp.h
2791
uint64_t h; /**< cofactor (1 qwords)*/
sys/dev/qat/qat_api/include/lac/cpa_cy_ec.h
225
CpaFlatBuffer h;
sys/dev/qat/qat_api/include/lac/cpa_cy_ec.h
327
CpaFlatBuffer h;
sys/dev/qat/qat_api/include/lac/cpa_cy_ecdh.h
80
CpaFlatBuffer h;
sys/dev/qlxgb/qla_dbg.h
60
#define QL_DUMP_BUFFER8(h, s, b, n) if (dbg_level & 0x08000000)\
sys/dev/qlxgb/qla_dbg.h
61
qla_dump_buf8(h, s, b, n)
sys/dev/qlxgb/qla_dbg.h
62
#define QL_DUMP_BUFFER16(h, s, b, n) if (dbg_level & 0x08000000)\
sys/dev/qlxgb/qla_dbg.h
63
qla_dump_buf16(h, s, b, n)
sys/dev/qlxgb/qla_dbg.h
64
#define QL_DUMP_BUFFER32(h, s, b, n) if (dbg_level & 0x08000000)\
sys/dev/qlxgb/qla_dbg.h
65
qla_dump_buf32(h, s, b, n)
sys/dev/qlxgb/qla_dbg.h
78
#define QL_DUMP_BUFFER8(h, s, b, n)
sys/dev/qlxgb/qla_dbg.h
79
#define QL_DUMP_BUFFER16(h, s, b, n)
sys/dev/qlxgb/qla_dbg.h
80
#define QL_DUMP_BUFFER32(h, s, b, n)
sys/dev/qlxgbe/ql_dbg.h
73
#define QL_DUMP_BUFFER8(h, s, b, n) if (h->dbg_level & 0x08000000)\
sys/dev/qlxgbe/ql_dbg.h
74
qla_dump_buf8(h, s, b, n)
sys/dev/qlxgbe/ql_dbg.h
75
#define QL_DUMP_BUFFER16(h, s, b, n) if (h->dbg_level & 0x08000000)\
sys/dev/qlxgbe/ql_dbg.h
76
qla_dump_buf16(h, s, b, n)
sys/dev/qlxgbe/ql_dbg.h
77
#define QL_DUMP_BUFFER32(h, s, b, n) if (h->dbg_level & 0x08000000)\
sys/dev/qlxgbe/ql_dbg.h
78
qla_dump_buf32(h, s, b, n)
sys/dev/qlxgbe/ql_dbg.h
94
#define QL_DUMP_BUFFER8(h, s, b, n)
sys/dev/qlxgbe/ql_dbg.h
95
#define QL_DUMP_BUFFER16(h, s, b, n)
sys/dev/qlxgbe/ql_dbg.h
96
#define QL_DUMP_BUFFER32(h, s, b, n)
sys/dev/qlxgbe/ql_minidump.h
189
ql_minidump_entry_hdr_t h;
sys/dev/qlxgbe/ql_minidump.h
216
ql_minidump_entry_hdr_t h;
sys/dev/qlxgbe/ql_minidump.h
256
ql_minidump_entry_hdr_t h;
sys/dev/qlxgbe/ql_minidump.h
277
ql_minidump_entry_hdr_t h;
sys/dev/qlxgbe/ql_minidump.h
291
ql_minidump_entry_hdr_t h;
sys/dev/qlxgbe/ql_minidump.h
305
ql_minidump_entry_hdr_t h;
sys/dev/qlxgbe/ql_minidump.h
331
ql_minidump_entry_hdr_t h;
sys/dev/qlxgbe/ql_minidump.h
357
ql_minidump_entry_hdr_t h;
sys/dev/qlxgbe/ql_minidump.h
391
ql_minidump_entry_hdr_t h;
sys/dev/qlxgbe/ql_minidump.h
426
ql_minidump_entry_hdr_t h;
sys/dev/qlxgbe/ql_minidump.h
452
ql_minidump_entry_hdr_t h;
sys/dev/qlxge/qls_dbg.h
60
#define QL_DUMP_BUFFER8(h, s, b, n) if (qls_dbg_level & 0x08000000)\
sys/dev/qlxge/qls_dbg.h
61
qls_dump_buf8(h, s, b, n)
sys/dev/qlxge/qls_dbg.h
62
#define QL_DUMP_BUFFER16(h, s, b, n) if (qls_dbg_level & 0x08000000)\
sys/dev/qlxge/qls_dbg.h
63
qls_dump_buf16(h, s, b, n)
sys/dev/qlxge/qls_dbg.h
64
#define QL_DUMP_BUFFER32(h, s, b, n) if (qls_dbg_level & 0x08000000)\
sys/dev/qlxge/qls_dbg.h
65
qls_dump_buf32(h, s, b, n)
sys/dev/qlxge/qls_dbg.h
82
#define QL_DUMP_BUFFER8(h, s, b, n)
sys/dev/qlxge/qls_dbg.h
83
#define QL_DUMP_BUFFER16(h, s, b, n)
sys/dev/qlxge/qls_dbg.h
84
#define QL_DUMP_BUFFER32(h, s, b, n)
sys/dev/random/fenestrasX/fx_hash.h
45
fxrng_hash_init(struct fxrng_hash *h)
sys/dev/random/fenestrasX/fx_hash.h
49
rc = blake2b_init(&h->state, FXRNG_HASH_SZ);
sys/dev/random/fenestrasX/fx_hash.h
54
fxrng_hash_update(struct fxrng_hash *h, const void *buf, size_t sz)
sys/dev/random/fenestrasX/fx_hash.h
58
rc = blake2b_update(&h->state, buf, sz);
sys/dev/random/fenestrasX/fx_hash.h
63
fxrng_hash_finish(struct fxrng_hash *h, uint8_t buf[static FXRNG_HASH_SZ], size_t sz)
sys/dev/random/fenestrasX/fx_hash.h
67
rc = blake2b_final(&h->state, buf, sz);
sys/dev/random/fenestrasX/fx_hash.h
69
explicit_bzero(h, sizeof(*h));
sys/dev/re/if_re.c
658
uint32_t h, *hashes = arg;
sys/dev/re/if_re.c
660
h = ether_crc32_be(LLADDR(sdl), ETHER_ADDR_LEN) >> 26;
sys/dev/re/if_re.c
661
if (h < 32)
sys/dev/re/if_re.c
662
hashes[0] |= (1 << h);
sys/dev/re/if_re.c
664
hashes[1] |= (1 << (h - 32));
sys/dev/re/if_re.c
676
uint32_t h, hashes[2] = { 0, 0 };
sys/dev/re/if_re.c
713
h = bswap32(hashes[0]);
sys/dev/re/if_re.c
715
hashes[1] = h;
sys/dev/rl/if_rl.c
512
int h;
sys/dev/rl/if_rl.c
514
h = ether_crc32_be(LLADDR(sdl), ETHER_ADDR_LEN) >> 26;
sys/dev/rl/if_rl.c
515
if (h < 32)
sys/dev/rl/if_rl.c
516
hashes[0] |= (1 << h);
sys/dev/rl/if_rl.c
518
hashes[1] |= (1 << (h - 32));
sys/dev/safe/safe.c
642
bcopy(sha1ctx.h.b32, ses->ses_hminner, sizeof(sha1ctx.h.b32));
sys/dev/safe/safe.c
645
bcopy(sha1ctx.h.b32, ses->ses_hmouter, sizeof(sha1ctx.h.b32));
sys/dev/safexcel/safexcel.c
1327
((uint32_t *)buf)[i] = htobe32(ctx->sha1ctx.h.b32[i]);
sys/dev/sfxge/common/efsys.h
90
#define bus_space_read_stream_8(t, h, o) \
sys/dev/sfxge/common/efsys.h
91
bus_space_read_8((t), (h), (o))
sys/dev/sfxge/common/efsys.h
93
#define bus_space_write_stream_8(t, h, o, v) \
sys/dev/sfxge/common/efsys.h
94
bus_space_write_8((t), (h), (o), (v))
sys/dev/sis/if_sis.c
699
uint32_t h;
sys/dev/sis/if_sis.c
702
h = sis_mchash(sc, LLADDR(sdl));
sys/dev/sis/if_sis.c
703
index = h >> 3;
sys/dev/sis/if_sis.c
704
bit = h & 0x1F;
sys/dev/sis/if_sis.c
777
uint32_t h;
sys/dev/sis/if_sis.c
779
h = sis_mchash(ctx->sc, LLADDR(sdl));
sys/dev/sis/if_sis.c
780
ctx->hashes[h >> 4] |= 1 << (h & 0xf);
sys/dev/sk/if_sk.c
690
int h;
sys/dev/sk/if_sk.c
701
h = sk_xmchash((const uint8_t *)LLADDR(sdl));
sys/dev/sk/if_sk.c
702
if (h < 32)
sys/dev/sk/if_sk.c
703
ctx->hashes[0] |= (1 << h);
sys/dev/sk/if_sk.c
705
ctx->hashes[1] |= (1 << (h - 32));
sys/dev/smc/if_smc_acpi.c
49
ACPI_HANDLE h;
sys/dev/smc/if_smc_acpi.c
51
if ((h = acpi_get_handle(dev)) == NULL)
sys/dev/smc/if_smc_acpi.c
54
if (!acpi_MatchHid(h, "LNRO0003"))
sys/dev/sound/midi/midiq.h
36
int h, t, s; \
sys/dev/sound/midi/midiq.h
41
(head).h=(head).t=0; \
sys/dev/sound/midi/midiq.h
46
#define MIDIQ_EMPTY(head) ((head).h == (head).t )
sys/dev/sound/midi/midiq.h
48
#define MIDIQ_LENBASE(head) ((head).h - (head).t < 0 ? \
sys/dev/sound/midi/midiq.h
49
(head).h - (head).t + (head).s : \
sys/dev/sound/midi/midiq.h
50
(head).h - (head).t)
sys/dev/sound/midi/midiq.h
52
#define MIDIQ_FULL(head) ((head).h == -1)
sys/dev/sound/midi/midiq.h
59
MIDIQ_MOVE(&(head).b[(head).h], (buf), sizeof(*(head).b) * min((size), (head).s - (head).h)); \
sys/dev/sound/midi/midiq.h
60
if( (head).s - (head).h < (size) ) { \
sys/dev/sound/midi/midiq.h
61
MIDIQ_MOVE((head).b, (buf) + (head).s - (head).h, sizeof(*(head).b) * ((size) - (head).s + (head).h) ); \
sys/dev/sound/midi/midiq.h
63
(head).h+=(size); \
sys/dev/sound/midi/midiq.h
64
(head).h%=(head).s; \
sys/dev/sound/midi/midiq.h
65
if(MIDIQ_EMPTY(head)) (head).h=-1; \
sys/dev/sound/midi/midiq.h
69
if(MIDIQ_FULL(head)) (head).h=(head).t; \
sys/dev/sound/midi/midiq.h
78
if (MIDIQ_EMPTY(head)) (head).h=-1; \
sys/dev/sound/midi/midiq.h
83
#define MIDIQ_CLEAR(head) ((head).h = (head).t = 0)
sys/dev/sound/usb/uaudio.c
156
#define MAKE_WORD(h,l) (((h) << 8) | (l))
sys/dev/ste/if_ste.c
2008
#define STE_SYSCTL_STAT_ADD32(c, h, n, p, d) \
sys/dev/ste/if_ste.c
2009
SYSCTL_ADD_UINT(c, h, OID_AUTO, n, CTLFLAG_RD, p, 0, d)
sys/dev/ste/if_ste.c
2010
#define STE_SYSCTL_STAT_ADD64(c, h, n, p, d) \
sys/dev/ste/if_ste.c
2011
SYSCTL_ADD_UQUAD(c, h, OID_AUTO, n, CTLFLAG_RD, p, d)
sys/dev/ste/if_ste.c
408
int h;
sys/dev/ste/if_ste.c
410
h = ether_crc32_be(LLADDR(sdl), ETHER_ADDR_LEN) & 0x3F;
sys/dev/ste/if_ste.c
411
if (h < 32)
sys/dev/ste/if_ste.c
412
hashes[0] |= (1 << h);
sys/dev/ste/if_ste.c
414
hashes[1] |= (1 << (h - 32));
sys/dev/sym/sym_hipd.c
390
struct m_link h[MEMO_CLUSTER_SHIFT - MEMO_SHIFT + 1];
sys/dev/sym/sym_hipd.c
399
m_link_s *h = mp->h;
sys/dev/sym/sym_hipd.c
410
while (!h[j].next) {
sys/dev/sym/sym_hipd.c
412
h[j].next = (m_link_s *) M_GETP();
sys/dev/sym/sym_hipd.c
413
if (h[j].next)
sys/dev/sym/sym_hipd.c
414
h[j].next->next = NULL;
sys/dev/sym/sym_hipd.c
420
a = (m_addr_t) h[j].next;
sys/dev/sym/sym_hipd.c
422
h[j].next = h[j].next->next;
sys/dev/sym/sym_hipd.c
426
h[j].next = (m_link_s *) (a+s);
sys/dev/sym/sym_hipd.c
427
h[j].next->next = NULL;
sys/dev/sym/sym_hipd.c
442
m_link_s *h = mp->h;
sys/dev/sym/sym_hipd.c
466
q = &h[i];
sys/dev/sym/sym_hipd.c
471
((m_link_s *) a)->next = h[i].next;
sys/dev/sym/sym_hipd.c
472
h[i].next = (m_link_s *) a;
sys/dev/syscons/scvgarndr.c
504
int h;
sys/dev/syscons/scvgarndr.c
509
h = 8;
sys/dev/syscons/scvgarndr.c
512
h = 16;
sys/dev/syscons/scvgarndr.c
515
h = 14;
sys/dev/syscons/scvgarndr.c
517
if (scp->curs_attr.base >= h)
sys/dev/syscons/scvgarndr.c
527
bcopy(font + c*h, font + sc->cursor_char*h, h);
sys/dev/syscons/scvgarndr.c
528
font = font + sc->cursor_char*h;
sys/dev/syscons/scvgarndr.c
529
for (i = imax(h - scp->curs_attr.base - scp->curs_attr.height, 0);
sys/dev/syscons/scvgarndr.c
530
i < h - scp->curs_attr.base; ++i) {
sys/dev/syscons/scvgarndr.c
534
vidd_load_font(sc->adp, 0, h, 8, font, sc->cursor_char, 1);
sys/dev/thunderbolt/nhi_reg.h
42
#define GENMASK(h, l) (((~0U) >> (31 - (h))) ^ ((~0U) >> (31 - (l)) >> 1))
sys/dev/tsec/if_tsec.c
1877
uint32_t h, *hashtable = arg;
sys/dev/tsec/if_tsec.c
1879
h = (ether_crc32_be(LLADDR(sdl), ETHER_ADDR_LEN) >> 24) & 0xFF;
sys/dev/tsec/if_tsec.c
1880
hashtable[(h >> 5)] |= 1 << (0x1F - (h & 0x1F));
sys/dev/uart/uart_bus_acpi.c
65
ACPI_HANDLE h;
sys/dev/uart/uart_bus_acpi.c
67
if ((h = acpi_get_handle(dev)) == NULL)
sys/dev/uart/uart_bus_acpi.c
72
if (acpi_MatchHid(h, cd_it->cd_hid))
sys/dev/usb/controller/generic_ehci_acpi.c
60
ACPI_HANDLE h;
sys/dev/usb/controller/generic_ehci_acpi.c
62
if ((h = acpi_get_handle(self)) == NULL ||
sys/dev/usb/controller/generic_ehci_acpi.c
63
!acpi_MatchHid(h, "PNP0D20"))
sys/dev/usb/controller/musb_otg_allwinner.c
243
awusbdrd_bs_r_1(awusb_bs_tag t, bus_space_handle_t h, bus_size_t o)
sys/dev/usb/controller/musb_otg_allwinner.c
252
return (bus_space_read_1(bs_parent_space(bs), h, awusbdrd_reg(o)));
sys/dev/usb/controller/musb_otg_allwinner.c
256
awusbdrd_bs_r_1_noconf(awusb_bs_tag t, bus_space_handle_t h, bus_size_t o)
sys/dev/usb/controller/musb_otg_allwinner.c
266
return (awusbdrd_bs_r_1(t, h, o));
sys/dev/usb/controller/musb_otg_allwinner.c
271
awusbdrd_bs_r_2(awusb_bs_tag t, bus_space_handle_t h, bus_size_t o)
sys/dev/usb/controller/musb_otg_allwinner.c
277
return bus_space_read_2(bs_parent_space(bs), h, awusbdrd_reg(o));
sys/dev/usb/controller/musb_otg_allwinner.c
281
awusbdrd_bs_w_1(awusb_bs_tag t, bus_space_handle_t h, bus_size_t o,
sys/dev/usb/controller/musb_otg_allwinner.c
289
bus_space_write_1(bs_parent_space(bs), h, awusbdrd_reg(o), v);
sys/dev/usb/controller/musb_otg_allwinner.c
293
awusbdrd_bs_w_2(awusb_bs_tag t, bus_space_handle_t h, bus_size_t o,
sys/dev/usb/controller/musb_otg_allwinner.c
301
bus_space_write_2(bs_parent_space(bs), h, awusbdrd_reg(o), v);
sys/dev/usb/controller/musb_otg_allwinner.c
305
awusbdrd_bs_rm_1(awusb_bs_tag t, bus_space_handle_t h, bus_size_t o,
sys/dev/usb/controller/musb_otg_allwinner.c
310
bus_space_read_multi_1(bs_parent_space(bs), h, awusbdrd_reg(o), d, c);
sys/dev/usb/controller/musb_otg_allwinner.c
314
awusbdrd_bs_rm_4(awusb_bs_tag t, bus_space_handle_t h, bus_size_t o,
sys/dev/usb/controller/musb_otg_allwinner.c
319
bus_space_read_multi_4(bs_parent_space(bs), h, awusbdrd_reg(o), d, c);
sys/dev/usb/controller/musb_otg_allwinner.c
323
awusbdrd_bs_wm_1(awusb_bs_tag t, bus_space_handle_t h, bus_size_t o,
sys/dev/usb/controller/musb_otg_allwinner.c
331
bus_space_write_multi_1(bs_parent_space(bs), h, awusbdrd_reg(o), d, c);
sys/dev/usb/controller/musb_otg_allwinner.c
335
awusbdrd_bs_wm_4(awusb_bs_tag t, bus_space_handle_t h, bus_size_t o,
sys/dev/usb/controller/musb_otg_allwinner.c
343
bus_space_write_multi_4(bs_parent_space(bs), h, awusbdrd_reg(o), d, c);
sys/dev/usb/net/if_aue.c
542
uint32_t h;
sys/dev/usb/net/if_aue.c
544
h = ether_crc32_le(LLADDR(sdl), ETHER_ADDR_LEN) & ((1 << AUE_BITS) - 1);
sys/dev/usb/net/if_aue.c
545
hashtbl[(h >> 3)] |= 1 << (h & 0x7);
sys/dev/usb/net/if_axe.c
483
uint32_t h;
sys/dev/usb/net/if_axe.c
485
h = ether_crc32_be(LLADDR(sdl), ETHER_ADDR_LEN) >> 26;
sys/dev/usb/net/if_axe.c
486
hashtbl[h / 8] |= 1 << (h % 8);
sys/dev/usb/net/if_axge.c
778
uint32_t h;
sys/dev/usb/net/if_axge.c
780
h = ether_crc32_be(LLADDR(sdl), ETHER_ADDR_LEN) >> 26;
sys/dev/usb/net/if_axge.c
781
hashtbl[h / 8] |= 1 << (h % 8);
sys/dev/usb/net/if_cue.c
309
uint32_t h;
sys/dev/usb/net/if_cue.c
311
h = cue_mchash(LLADDR(sdl));
sys/dev/usb/net/if_cue.c
312
hashtbl[h >> 3] |= 1 << (h & 0x7);
sys/dev/usb/net/if_cue.c
322
uint32_t h, i;
sys/dev/usb/net/if_cue.c
343
h = cue_mchash(if_getbroadcastaddr(ifp));
sys/dev/usb/net/if_cue.c
344
hashtbl[h >> 3] |= 1 << (h & 0x7);
sys/dev/usb/net/if_mos.c
585
uint32_t h;
sys/dev/usb/net/if_mos.c
587
h = ether_crc32_be(LLADDR(sdl), ETHER_ADDR_LEN) >> 26;
sys/dev/usb/net/if_mos.c
588
hashtbl[h / 8] |= 1 << (h % 8);
sys/dev/usb/net/if_rue.c
474
int h;
sys/dev/usb/net/if_rue.c
476
h = ether_crc32_be(LLADDR(sdl), ETHER_ADDR_LEN) >> 26;
sys/dev/usb/net/if_rue.c
477
if (h < 32)
sys/dev/usb/net/if_rue.c
478
hashes[0] |= (1 << h);
sys/dev/usb/net/if_rue.c
480
hashes[1] |= (1 << (h - 32));
sys/dev/usb/net/if_udav.c
505
int h;
sys/dev/usb/net/if_udav.c
507
h = ether_crc32_be(LLADDR(sdl), ETHER_ADDR_LEN) >> 26;
sys/dev/usb/net/if_udav.c
508
hashtbl[h / 8] |= 1 << (h % 8);
sys/dev/usb/net/if_ure.c
1251
uint32_t h, *hashes = arg;
sys/dev/usb/net/if_ure.c
1253
h = ether_crc32_be(LLADDR(sdl), ETHER_ADDR_LEN) >> 26;
sys/dev/usb/net/if_ure.c
1254
if (h < 32)
sys/dev/usb/net/if_ure.c
1255
hashes[0] |= (1 << h);
sys/dev/usb/net/if_ure.c
1257
hashes[1] |= (1 << (h - 32));
sys/dev/usb/net/if_ure.c
1270
uint32_t h, hashes[2] = { 0, 0 };
sys/dev/usb/net/if_ure.c
1289
h = bswap32(hashes[0]);
sys/dev/usb/net/if_ure.c
1291
hashes[1] = h;
sys/dev/usb/quirk/usb_quirk.c
89
#define USB_QUIRK_REV(v, p, l, h, ...) { \
sys/dev/usb/quirk/usb_quirk.c
91
.hi_rev = (h), .quirks = { __VA_ARGS__ } \
sys/dev/usb/wlan/if_uath.c
2154
#define UATH_SYSCTL_STAT_ADD32(c, h, n, p, d) \
sys/dev/usb/wlan/if_uath.c
2155
SYSCTL_ADD_UINT(c, h, OID_AUTO, n, CTLFLAG_RD, p, 0, d)
sys/dev/usb/wlan/if_upgt.c
2025
#define UPGT_SYSCTL_STAT_ADD32(c, h, n, p, d) \
sys/dev/usb/wlan/if_upgt.c
2026
SYSCTL_ADD_UINT(c, h, OID_AUTO, n, CTLFLAG_RD, p, 0, d)
sys/dev/usb/wlan/if_urtw.c
4374
#define URTW_SYSCTL_STAT_ADD32(c, h, n, p, d) \
sys/dev/usb/wlan/if_urtw.c
4375
SYSCTL_ADD_UINT(c, h, OID_AUTO, n, CTLFLAG_RD, p, 0, d)
sys/dev/vge/if_vge.c
2474
#define VGE_SYSCTL_STAT_ADD32(c, h, n, p, d) \
sys/dev/vge/if_vge.c
2475
SYSCTL_ADD_UINT(c, h, OID_AUTO, n, CTLFLAG_RD, p, 0, d)
sys/dev/vge/if_vge.c
544
uint32_t h, *hashes = arg;
sys/dev/vge/if_vge.c
546
h = ether_crc32_be(LLADDR(sdl), ETHER_ADDR_LEN) >> 26;
sys/dev/vge/if_vge.c
547
if (h < 32)
sys/dev/vge/if_vge.c
548
hashes[0] |= (1 << h);
sys/dev/vge/if_vge.c
550
hashes[1] |= (1 << (h - 32));
sys/dev/videomode/edidreg.h
115
#define _CHHILO(ptr, l, s, h) (_CHLO((ptr)[l], s) | _CHHI((ptr)[h]))
sys/dev/videomode/edidreg.h
116
#define _CHROMA(ptr, l, s, h) ((_CHHILO(ptr, l, s, h) * 1000) / 1024)
sys/dev/virtio/gpu/virtio_gpu.h
248
uint32_t w, h, d;
sys/dev/virtio/mmio/virtio_mmio_acpi.c
71
ACPI_HANDLE h;
sys/dev/virtio/mmio/virtio_mmio_acpi.c
73
if ((h = acpi_get_handle(dev)) == NULL)
sys/dev/virtio/mmio/virtio_mmio_acpi.c
76
if (!acpi_MatchHid(h, "LNRO0005"))
sys/dev/vmgenc/vmgenc_acpi.c
121
vmgenc_notify(ACPI_HANDLE h, UINT32 notify, void *context)
sys/dev/vmgenc/vmgenc_acpi.c
224
ACPI_HANDLE h;
sys/dev/vmgenc/vmgenc_acpi.c
227
h = acpi_get_handle(dev);
sys/dev/vmgenc/vmgenc_acpi.c
230
error = acpi_GetPackedUINT64(dev, h, "ADDR", &guid_physaddr);
sys/dev/vmgenc/vmgenc_acpi.c
246
AcpiInstallNotifyHandler(h, ACPI_DEVICE_NOTIFY, vmgenc_notify, dev);
sys/dev/vmware/vmci/vmci_defs.h
143
struct vmci_handle h;
sys/dev/vmware/vmci/vmci_defs.h
145
h.context = cid;
sys/dev/vmware/vmci/vmci_defs.h
146
h.resource = rid;
sys/dev/vmware/vmci/vmci_defs.h
147
return (h);
sys/dev/vr/if_vr.c
457
int h;
sys/dev/vr/if_vr.c
459
h = ether_crc32_be(LLADDR(sdl), ETHER_ADDR_LEN) >> 26;
sys/dev/vr/if_vr.c
460
if (h < 32)
sys/dev/vr/if_vr.c
461
hashes[0] |= (1 << h);
sys/dev/vr/if_vr.c
463
hashes[1] |= (1 << (h - 32));
sys/dev/vt/hw/fb/vt_fb.c
240
u_int o, h;
sys/dev/vt/hw/fb/vt_fb.c
252
for (h = 0; h < info->fb_height; h++)
sys/dev/vt/hw/fb/vt_fb.c
254
vt_fb_mem_wr1(info, h*info->fb_stride + o, c);
sys/dev/vt/hw/fb/vt_fb.c
257
for (h = 0; h < info->fb_height; h++)
sys/dev/vt/hw/fb/vt_fb.c
259
vt_fb_mem_wr2(info, h*info->fb_stride + o, c);
sys/dev/vt/hw/fb/vt_fb.c
262
for (h = 0; h < info->fb_height; h++)
sys/dev/vt/hw/fb/vt_fb.c
264
vt_fb_mem_wr3(info, h*info->fb_stride + o, c);
sys/dev/vt/hw/fb/vt_fb.c
268
for (h = 0; h < info->fb_height; h++)
sys/dev/vt/hw/fb/vt_fb.c
270
vt_fb_mem_wr4(info, h*info->fb_stride + o, c);
sys/dev/vt/vt.h
414
#define PIXEL_HEIGHT(h) ((h) / 16)
sys/dev/vt/vt_buf.c
501
unsigned int w, h, c, r, old_history_size;
sys/dev/vt/vt_buf.c
525
h = vb->vb_scr_size.tp_row;
sys/dev/vt/vt_buf.c
528
vb->vb_curroffset + h >= history_size;
sys/dev/vt/vt_buf.c
555
(vb->vb_curroffset + h + r) %
sys/dev/vt/vt_buf.c
600
vb->vb_curroffset = old_history_size - h;
sys/dev/vt/vt_buf.c
617
(vb->vb_curroffset + h + r +
sys/dev/vt/vt_buf.c
637
vb->vb_curroffset = history_size - h;
sys/dev/vte/if_vte.c
534
#define VTE_SYSCTL_STAT_ADD32(c, h, n, p, d) \
sys/dev/vte/if_vte.c
535
SYSCTL_ADD_UINT(c, h, OID_AUTO, n, CTLFLAG_RD, p, 0, d)
sys/dev/wg/crypto.h
89
uint32_t h[8];
sys/dev/wg/wg_crypto.c
118
memcpy(v, state->h, 32);
sys/dev/wg/wg_crypto.c
164
state->h[i] ^= v[i] ^ v[i + 8];
sys/dev/wg/wg_crypto.c
201
cpu_to_le32_array(state->h, ARRAY_SIZE(state->h));
sys/dev/wg/wg_crypto.c
202
memcpy(out, state->h, state->outlen);
sys/dev/wg/wg_crypto.c
84
state->h[i] = blake2s_iv[i];
sys/dev/wg/wg_crypto.c
85
state->h[0] ^= param;
sys/dev/xen/cpu/xen_acpi_cpu.c
458
acpi_notify(ACPI_HANDLE h, UINT32 notify, void *context)
sys/dev/xen/privcmd/privcmd.c
477
set_xen_guest_handle(hbufs[i].h, bufs[i].uptr);
sys/dev/xilinx/xlnx_pcib.c
429
bus_space_handle_t h;
sys/dev/xilinx/xlnx_pcib.c
434
h = rman_get_bushandle(sc->res);
sys/dev/xilinx/xlnx_pcib.c
445
val = bus_space_read_4(t, h, XLNX_PCIE_PHYSCR);
sys/dev/xilinx/xlnx_pcib.c
463
bus_space_handle_t h;
sys/dev/xilinx/xlnx_pcib.c
477
h = rman_get_bushandle(sc->res);
sys/dev/xilinx/xlnx_pcib.c
479
data = bus_space_read_4(t, h, offset & ~3);
sys/dev/xilinx/xlnx_pcib.c
507
bus_space_handle_t h;
sys/dev/xilinx/xlnx_pcib.c
522
h = rman_get_bushandle(sc->res);
sys/dev/xilinx/xlnx_pcib.c
532
data = bus_space_read_4(t, h, offset & ~3);
sys/dev/xilinx/xlnx_pcib.c
535
bus_space_write_4(t, h, offset & ~3, htole32(data));
sys/dev/xilinx/xlnx_pcib.c
538
data = bus_space_read_4(t, h, offset & ~3);
sys/dev/xilinx/xlnx_pcib.c
541
bus_space_write_4(t, h, offset & ~3, htole32(data));
sys/dev/xilinx/xlnx_pcib.c
544
bus_space_write_4(t, h, offset, htole32(val));
sys/dev/xl/if_xl.c
665
uint16_t h;
sys/dev/xl/if_xl.c
667
h = ether_crc32_be(LLADDR(sdl), ETHER_ADDR_LEN) & 0xFF;
sys/dev/xl/if_xl.c
668
CSR_WRITE_2(sc, XL_COMMAND, h | XL_CMD_RX_SET_HASH | XL_HASH_SET);
sys/fs/cd9660/cd9660_rrip.c
115
pcompe = (ISO_RRIP_SLINK_COMPONENT *)((char *)p + isonum_711(p->h.length));
sys/fs/cd9660/cd9660_rrip.c
249
wlen = isonum_711(p->h.length) - 5;
sys/fs/cd9660/cd9660_rrip.c
306
return (*p->h.type == 'C' ? ISO_SUSP_CLINK : ISO_SUSP_PLINK);
sys/fs/cd9660/cd9660_rrip.h
110
ISO_SUSP_HEADER h;
sys/fs/cd9660/cd9660_rrip.h
116
ISO_SUSP_HEADER h;
sys/fs/cd9660/cd9660_rrip.h
121
ISO_SUSP_HEADER h;
sys/fs/cd9660/cd9660_rrip.h
129
ISO_SUSP_HEADER h;
sys/fs/cd9660/cd9660_rrip.h
135
ISO_SUSP_HEADER h;
sys/fs/cd9660/cd9660_rrip.h
47
ISO_SUSP_HEADER h;
sys/fs/cd9660/cd9660_rrip.h
55
ISO_SUSP_HEADER h;
sys/fs/cd9660/cd9660_rrip.h
75
ISO_SUSP_HEADER h;
sys/fs/cd9660/cd9660_rrip.h
81
ISO_SUSP_HEADER h;
sys/fs/cd9660/cd9660_rrip.h
86
ISO_SUSP_HEADER h;
sys/fs/cd9660/cd9660_rrip.h
91
ISO_SUSP_HEADER h;
sys/fs/cd9660/cd9660_rrip.h
96
ISO_SUSP_HEADER h;
sys/i386/i386/pmap.c
6180
struct bios16_pmap_handle *h;
sys/i386/i386/pmap.c
6185
h = malloc(sizeof(struct bios16_pmap_handle), M_TEMP, M_WAITOK);
sys/i386/i386/pmap.c
6186
h->pte = (pt_entry_t *)malloc(PAGE_SIZE, M_TEMP, M_WAITOK);
sys/i386/i386/pmap.c
6187
h->ptd = IdlePTD;
sys/i386/i386/pmap.c
6188
*h->pte = vm86phystk | PG_RW | PG_V;
sys/i386/i386/pmap.c
6189
h->orig_ptd = *h->ptd;
sys/i386/i386/pmap.c
6190
*h->ptd = vtophys(h->pte) | PG_RW | PG_V;
sys/i386/i386/pmap.c
6192
return (h);
sys/i386/i386/pmap.c
6198
struct bios16_pmap_handle *h;
sys/i386/i386/pmap.c
6200
h = arg;
sys/i386/i386/pmap.c
6201
*h->ptd = h->orig_ptd; /* remove page table */
sys/i386/i386/pmap.c
6206
free(h->pte, M_TEMP); /* ... and free it */
sys/kern/kern_jailmeta.c
134
jm_h_prepend(struct hunk *h, char *p, size_t len)
sys/kern/kern_jailmeta.c
141
n->next = h;
sys/kern/kern_jailmeta.c
146
jm_h_cut_line(struct hunk *h, char *begin)
sys/kern/kern_jailmeta.c
152
for (end = begin; (end + 1) < (h->p + h->len); end++)
sys/kern/kern_jailmeta.c
157
if ((end + 1) < (h->p + h->len) && *(end + 1) != '\0') {
sys/kern/kern_jailmeta.c
160
rem->len = h->p + h->len - rem->p;
sys/kern/kern_jailmeta.c
163
rem->next = h->next;
sys/kern/kern_jailmeta.c
164
h->next = rem;
sys/kern/kern_jailmeta.c
168
h->len = begin - h->p;
sys/kern/kern_jailmeta.c
172
jm_h_cut_occurrences(struct hunk *h, const char *key, size_t keylen)
sys/kern/kern_jailmeta.c
174
char *p = h->p;
sys/kern/kern_jailmeta.c
178
h = h->next; \
sys/kern/kern_jailmeta.c
179
p = (h == NULL) ? NULL : h->p; \
sys/kern/kern_jailmeta.c
183
p = strnstr(p, key, h->len - (p - h->p));
sys/kern/kern_jailmeta.c
188
if ((p == h->p || *(p - 1) == '\n') && p[keylen] == '=') {
sys/kern/kern_jailmeta.c
189
jm_h_cut_line(h, p);
sys/kern/kern_jailmeta.c
196
if ((p - h->p) >= h->len)
sys/kern/kern_jailmeta.c
202
jm_h_len(struct hunk *h)
sys/kern/kern_jailmeta.c
205
while (h != NULL) {
sys/kern/kern_jailmeta.c
206
len += h->len;
sys/kern/kern_jailmeta.c
207
h = h->next;
sys/kern/kern_jailmeta.c
213
jm_h_assemble(char *dst, struct hunk *h)
sys/kern/kern_jailmeta.c
215
while (h != NULL) {
sys/kern/kern_jailmeta.c
216
if (h->len > 0) {
sys/kern/kern_jailmeta.c
217
memcpy(dst, h->p, h->len);
sys/kern/kern_jailmeta.c
218
dst += h->len;
sys/kern/kern_jailmeta.c
220
if (h->next != NULL && *(dst - 1) == '\0')
sys/kern/kern_jailmeta.c
223
h = h->next;
sys/kern/kern_jailmeta.c
228
jm_h_freechain(struct hunk *h)
sys/kern/kern_jailmeta.c
230
struct hunk *n = h;
sys/kern/kern_jailmeta.c
232
h = n;
sys/kern/kern_jailmeta.c
233
n = h->next;
sys/kern/kern_jailmeta.c
234
free(h->owned, M_PRISON);
sys/kern/kern_jailmeta.c
235
free(h, M_PRISON);
sys/kern/kern_jailmeta.c
253
struct hunk *h;
sys/kern/kern_jailmeta.c
266
h = NULL;
sys/kern/kern_jailmeta.c
294
if (h == NULL) {
sys/kern/kern_jailmeta.c
295
h = jm_h_alloc(); /* zeroed */
sys/kern/kern_jailmeta.c
304
h->p = origosd_copy;
sys/kern/kern_jailmeta.c
305
h->len = strlen(origosd) + 1;
sys/kern/kern_jailmeta.c
306
memcpy(h->p, origosd, h->len);
sys/kern/kern_jailmeta.c
320
h = jm_h_freechain(h);
sys/kern/kern_jailmeta.c
321
h = jm_h_prepend(h,
sys/kern/kern_jailmeta.c
335
jm_h_cut_occurrences(h, key, keylen);
sys/kern/kern_jailmeta.c
338
h = jm_h_prepend(h, NULL, 0);
sys/kern/kern_jailmeta.c
339
h->len = keylen + 1 + opt->len; /* key=value\0 */
sys/kern/kern_jailmeta.c
340
h->owned = malloc(h->len, M_PRISON, M_WAITOK | M_ZERO);
sys/kern/kern_jailmeta.c
341
h->p = h->owned;
sys/kern/kern_jailmeta.c
342
memcpy(h->p, key, keylen);
sys/kern/kern_jailmeta.c
343
h->p[keylen] = '=';
sys/kern/kern_jailmeta.c
344
memcpy(h->p + keylen + 1, opt->value, opt->len);
sys/kern/kern_jailmeta.c
347
if (h == NULL || error != 0)
sys/kern/kern_jailmeta.c
351
osdlen = jm_h_len(h);
sys/kern/kern_jailmeta.c
358
jm_h_assemble(osd, h);
sys/kern/kern_jailmeta.c
384
jm_h_freechain(h);
sys/kern/kern_khelp.c
102
if (tmph->h_id < h->h_id) {
sys/kern/kern_khelp.c
103
TAILQ_INSERT_BEFORE(tmph, h, h_next);
sys/kern/kern_khelp.c
110
TAILQ_INSERT_TAIL(&helpers, h, h_next);
sys/kern/kern_khelp.c
118
khelp_deregister_helper(struct helper *h)
sys/kern/kern_khelp.c
124
if (h->h_refcount > 0)
sys/kern/kern_khelp.c
129
if (tmph == h) {
sys/kern/kern_khelp.c
130
TAILQ_REMOVE(&helpers, h, h_next);
sys/kern/kern_khelp.c
139
for (i = 0; i < h->h_nhooks; i++)
sys/kern/kern_khelp.c
140
hhook_remove_hook_lookup(&h->h_hooks[i]);
sys/kern/kern_khelp.c
141
osd_deregister(OSD_KHELP, h->h_id);
sys/kern/kern_khelp.c
150
struct helper *h;
sys/kern/kern_khelp.c
159
TAILQ_FOREACH(h, &helpers, h_next) {
sys/kern/kern_khelp.c
161
if (h->h_classes & classes && h->h_flags & HELPER_NEEDS_OSD) {
sys/kern/kern_khelp.c
162
hdata = uma_zalloc(h->h_zone, M_NOWAIT);
sys/kern/kern_khelp.c
167
osd_set(OSD_KHELP, hosd, h->h_id, hdata);
sys/kern/kern_khelp.c
168
refcount_acquire(&h->h_refcount);
sys/kern/kern_khelp.c
174
TAILQ_FOREACH(h, &helpers, h_next) {
sys/kern/kern_khelp.c
175
if (h->h_classes & classes)
sys/kern/kern_khelp.c
176
khelp_remove_osd(h, hosd);
sys/kern/kern_khelp.c
187
struct helper *h;
sys/kern/kern_khelp.c
201
TAILQ_FOREACH(h, &helpers, h_next)
sys/kern/kern_khelp.c
202
khelp_remove_osd(h, hosd);
sys/kern/kern_khelp.c
209
khelp_remove_osd(struct helper *h, struct osd *hosd)
sys/kern/kern_khelp.c
213
if (h->h_flags & HELPER_NEEDS_OSD) {
sys/kern/kern_khelp.c
219
hdata = osd_get(OSD_KHELP, hosd, h->h_id);
sys/kern/kern_khelp.c
221
uma_zfree(h->h_zone, hdata);
sys/kern/kern_khelp.c
222
osd_del(OSD_KHELP, hosd, h->h_id);
sys/kern/kern_khelp.c
223
refcount_release(&h->h_refcount);
sys/kern/kern_khelp.c
238
struct helper *h;
sys/kern/kern_khelp.c
244
TAILQ_FOREACH(h, &helpers, h_next) {
sys/kern/kern_khelp.c
245
if (strncmp(h->h_name, hname, HELPER_NAME_MAXLEN) == 0) {
sys/kern/kern_khelp.c
246
id = h->h_id;
sys/kern/kern_khelp.c
290
struct helper *h;
sys/kern/kern_khelp.c
294
TAILQ_FOREACH(h, &helpers, h_next) {
sys/kern/kern_khelp.c
295
for (i = 0; i < h->h_nhooks; i++) {
sys/kern/kern_khelp.c
296
if (hhh->hhh_type != h->h_hooks[i].hook_type ||
sys/kern/kern_khelp.c
297
hhh->hhh_id != h->h_hooks[i].hook_id)
sys/kern/kern_khelp.c
299
error = hhook_add_hook(hhh, &h->h_hooks[i], flags);
sys/kern/kern_khelp.c
303
__func__, h->h_name,
sys/kern/kern_khelp.c
304
h->h_hooks[i].hook_type,
sys/kern/kern_khelp.c
305
h->h_hooks[i].hook_id, error);
sys/kern/kern_khelp.c
59
static inline void khelp_remove_osd(struct helper *h, struct osd *hosd);
sys/kern/kern_khelp.c
69
khelp_register_helper(struct helper *h)
sys/kern/kern_khelp.c
75
refcount_init(&h->h_refcount, 0);
sys/kern/kern_khelp.c
76
h->h_id = osd_register(OSD_KHELP, NULL, NULL);
sys/kern/kern_khelp.c
79
for (i = 0; i < h->h_nhooks && !error; i++) {
sys/kern/kern_khelp.c
81
h->h_hooks[i].hook_helper = h;
sys/kern/kern_khelp.c
82
error = hhook_add_hook_lookup(&h->h_hooks[i], HHOOK_WAITOK);
sys/kern/kern_khelp.c
86
h->h_name, h->h_hooks[i].hook_type,
sys/kern/kern_khelp.c
87
h->h_hooks[i].hook_id, error);
sys/kern/kern_khelp.c
92
hhook_remove_hook_lookup(&h->h_hooks[i]);
sys/kern/kern_khelp.c
93
osd_deregister(OSD_KHELP, h->h_id);
sys/kern/kern_lockf.c
301
uint32_t h;
sys/kern/kern_lockf.c
304
h = HASHSTEP(0, fl->l_pid);
sys/kern/kern_lockf.c
305
h = HASHSTEP(h, fl->l_sysid);
sys/kern/kern_lockf.c
307
h = ((uintptr_t) id) >> 7;
sys/kern/kern_lockf.c
309
h = ((uintptr_t) vp) >> 7;
sys/kern/kern_lockf.c
312
return (h % LOCK_OWNER_HASH_SIZE);
sys/kern/kern_poll.c
478
ether_poll_register(poll_handler_t *h, if_t ifp)
sys/kern/kern_poll.c
482
KASSERT(h != NULL, ("%s: handler is NULL", __func__));
sys/kern/kern_poll.c
512
pr[poll_handlers].handler = h;
sys/kern/link_elf.c
1529
Elf32_Word h = 0;
sys/kern/link_elf.c
1532
h = (h << 4) + *p++;
sys/kern/link_elf.c
1533
h ^= (h >> 24) & 0xf0;
sys/kern/link_elf.c
1535
return (h & 0x0fffffff);
sys/kern/sched_shim.c
116
#include <sys/dtrace_bsd.h>
sys/kern/subr_rman.c
850
rman_set_bushandle(struct resource *r, bus_space_handle_t h)
sys/kern/subr_rman.c
853
r->r_bushandle = h;
sys/kern/vfs_mountroot.c
149
struct root_hold_token *h;
sys/kern/vfs_mountroot.c
155
TAILQ_FOREACH(h, &root_holds, list) {
sys/kern/vfs_mountroot.c
156
if (h != TAILQ_FIRST(&root_holds))
sys/kern/vfs_mountroot.c
158
sbuf_printf(&sb, "%s", h->who);
sys/kern/vfs_mountroot.c
172
struct root_hold_token *h;
sys/kern/vfs_mountroot.c
174
h = malloc(sizeof *h, M_DEVBUF, M_ZERO | M_WAITOK);
sys/kern/vfs_mountroot.c
175
h->flags = RH_ALLOC;
sys/kern/vfs_mountroot.c
176
h->who = identifier;
sys/kern/vfs_mountroot.c
179
TAILQ_INSERT_TAIL(&root_holds, h, list);
sys/kern/vfs_mountroot.c
181
return (h);
sys/kern/vfs_mountroot.c
185
root_mount_hold_token(const char *identifier, struct root_hold_token *h)
sys/kern/vfs_mountroot.c
191
h->flags = RH_ARG;
sys/kern/vfs_mountroot.c
192
h->who = identifier;
sys/kern/vfs_mountroot.c
196
if (t == h) {
sys/kern/vfs_mountroot.c
198
identifier, h);
sys/kern/vfs_mountroot.c
203
TAILQ_INSERT_TAIL(&root_holds, h, list);
sys/kern/vfs_mountroot.c
208
root_mount_rel(struct root_hold_token *h)
sys/kern/vfs_mountroot.c
211
if (h == NULL || h->flags == RH_FREE)
sys/kern/vfs_mountroot.c
215
TAILQ_REMOVE(&root_holds, h, list);
sys/kern/vfs_mountroot.c
219
if (h->flags == RH_ALLOC) {
sys/kern/vfs_mountroot.c
220
free(h, M_DEVBUF);
sys/kern/vfs_mountroot.c
222
h->flags = RH_FREE;
sys/kern/vfs_mountroot.c
977
struct root_hold_token *h;
sys/kern/vfs_mountroot.c
997
TAILQ_FOREACH(h, &root_holds, list)
sys/kern/vfs_mountroot.c
998
printf(" %s", h->who);
sys/net/if_fwsubr.c
215
struct fw_bpfhdr h;
sys/net/if_fwsubr.c
217
bcopy(destfw, h.firewire_dhost, 8);
sys/net/if_fwsubr.c
219
bcopy(&firewire_broadcastaddr, h.firewire_dhost, 8);
sys/net/if_fwsubr.c
220
bcopy(&fc->fc_hwaddr, h.firewire_shost, 8);
sys/net/if_fwsubr.c
221
h.firewire_type = htons(type);
sys/net/if_fwsubr.c
222
bpf_mtap2(ifp->if_bpf, &h, sizeof(h), m);
sys/net/if_fwsubr.c
588
struct fw_bpfhdr h;
sys/net/if_fwsubr.c
593
bcopy(mtag + 1, h.firewire_shost, 8);
sys/net/if_fwsubr.c
595
bcopy(&firewire_broadcastaddr, h.firewire_dhost, 8);
sys/net/if_fwsubr.c
596
bcopy(&fc->fc_hwaddr, h.firewire_dhost, 8);
sys/net/if_fwsubr.c
597
h.firewire_type = htons(type);
sys/net/if_fwsubr.c
598
bpf_mtap2(ifp->if_bpf, &h, sizeof(h), m);
sys/net/if_pflog.h
72
#define PFLOG_PACKET(b,t,c,d,e,f,g,h) do { \
sys/net/if_pflog.h
74
pflog_packet_ptr(b,t,c,d,e,f,g,h); \
sys/net/if_var.h
769
int ether_poll_register(poll_handler_t *h, if_t ifp);
sys/net/netmap_user.h
473
win_nm_ioctl_internal(HANDLE h, int32_t ctlCode, void *arg)
sys/net/netmap_user.h
507
ioctlReturnStatus = DeviceIoControl(h,
sys/net/netmap_user.h
523
HANDLE h = win_get_netmap_handle(fd);
sys/net/netmap_user.h
525
if (h == NULL) {
sys/net/netmap_user.h
528
return win_nm_ioctl_internal(h, ctlCode, arg);
sys/net/netmap_user.h
542
HANDLE h = win_get_netmap_handle(fd);
sys/net/netmap_user.h
544
if (h == NULL) {
sys/net/netmap_user.h
549
return win_nm_ioctl_internal(h, NETMAP_MMAP, &ret) ?
sys/net/netmap_user.h
561
HANDLE h;
sys/net/netmap_user.h
563
if (nfds != 1 || fds == NULL || (h = win_get_netmap_handle(fds->fd)) == NULL) {;
sys/net/netmap_user.h
571
win_nm_ioctl_internal(h, NETMAP_POLL, &prd);
sys/net/pflow.h
125
struct pflow_tmpl_hdr h;
sys/net/pflow.h
144
struct pflow_tmpl_hdr h;
sys/net/pflow.h
162
struct pflow_tmpl_hdr h;
sys/net/pfvar.h
364
#define PF_HASHROW_ASSERT(h) mtx_assert(&(h)->lock, MA_OWNED)
sys/net/pfvar.h
365
#define PF_HASHROW_LOCK(h) mtx_lock(&(h)->lock)
sys/net/pfvar.h
366
#define PF_HASHROW_UNLOCK(h) mtx_unlock(&(h)->lock)
sys/net/radix.c
1058
rn_walktree(struct radix_head *h, walktree_f_t *f, void *w)
sys/net/radix.c
1062
struct radix_node *rn = h->rnh_treetop;
sys/net/radix.c
953
rn_walktree_from(struct radix_head *h, void *a, void *m,
sys/net/radix.c
971
for (rn = h->rnh_treetop; rn->rn_bit >= 0; ) {
sys/net/radix.h
183
int rn_walktree_from(struct radix_head *h, void *a, void *m,
sys/net/route/nhgrp.c
93
djb_hash(const unsigned char *h, const int len)
sys/net/route/nhgrp.c
99
result = 33 * result ^ h[i];
sys/net/route/nhop.c
196
djb_hash(const unsigned char *h, const int len)
sys/net/route/nhop.c
202
result = 33 * result ^ h[i];
sys/net80211/ieee80211_crypto_gcm.c
160
ghash(const uint8_t *h, const uint8_t *x, size_t xlen, uint8_t *y)
sys/net80211/ieee80211_crypto_gcm.c
176
gf_mult(y, h, tmp);
sys/net80211/ieee80211_crypto_gcm.c
192
gf_mult(y, h, tmp);
sys/netgraph/bluetooth/hci/ng_hci_cmds.c
501
u_int16_t h;
sys/netgraph/bluetooth/hci/ng_hci_cmds.c
507
h = NG_HCI_CON_HANDLE(le16toh(rp->con_handle));
sys/netgraph/bluetooth/hci/ng_hci_cmds.c
508
con = ng_hci_con_by_handle(unit, h);
sys/netgraph/bluetooth/hci/ng_hci_cmds.c
512
__func__, NG_NODE_NAME(unit->node), h);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1002
__func__, NG_NODE_NAME(unit->node), h);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1038
u_int16_t h;
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1048
h = NG_HCI_CON_HANDLE(le16toh(ep->con_handle));
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1049
con = ng_hci_con_by_handle(unit, h);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1053
__func__, NG_NODE_NAME(unit->node), h);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1058
__func__, NG_NODE_NAME(unit->node), con->link_type, h);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1064
con->state, h);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1130
u_int16_t h, p;
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1141
m_copydata(event, 0, sizeof(h), (caddr_t) &h);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1142
m_adj(event, sizeof(h));
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1143
h = NG_HCI_CON_HANDLE(le16toh(h));
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1151
con = ng_hci_con_by_handle(unit, h);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1171
__func__, NG_NODE_NAME(unit->node), h);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1197
u_int16_t h = NG_HCI_CON_HANDLE(le16toh(ep->con_handle));
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1199
con = ng_hci_con_by_handle(unit, h);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1203
__func__, NG_NODE_NAME(unit->node), h);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1253
u_int16_t h = NG_HCI_CON_HANDLE(le16toh(ep->con_handle));
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1255
con = ng_hci_con_by_handle(unit, h);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1259
__func__, NG_NODE_NAME(unit->node), h);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1295
u_int16_t h;
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1305
h = NG_HCI_CON_HANDLE(le16toh(ep->con_handle));
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1306
con = ng_hci_con_by_handle(unit, h);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1310
__func__, NG_NODE_NAME(unit->node), h);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
1320
__func__, NG_NODE_NAME(unit->node), con->state, h);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
893
u_int16_t h;
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
909
h = NG_HCI_CON_HANDLE(le16toh(ep->con_handle));
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
910
con = ng_hci_con_by_handle(unit, h);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
922
__func__, NG_NODE_NAME(unit->node), h);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
939
u_int16_t h;
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
946
h = NG_HCI_CON_HANDLE(le16toh(ep->con_handle));
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
947
con = ng_hci_con_by_handle(unit, h);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
953
__func__, NG_NODE_NAME(unit->node), h);
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
986
u_int16_t h;
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
997
h = NG_HCI_CON_HANDLE(le16toh(ep->con_handle));
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
998
con = ng_hci_con_by_handle(unit, h);
sys/netgraph/bluetooth/hci/ng_hci_main.c
201
hook_p *h = NULL;
sys/netgraph/bluetooth/hci/ng_hci_main.c
204
h = &unit->drv;
sys/netgraph/bluetooth/hci/ng_hci_main.c
206
h = &unit->acl;
sys/netgraph/bluetooth/hci/ng_hci_main.c
208
h = &unit->sco;
sys/netgraph/bluetooth/hci/ng_hci_main.c
210
h = &unit->raw;
sys/netgraph/bluetooth/hci/ng_hci_main.c
214
if (*h != NULL)
sys/netgraph/bluetooth/hci/ng_hci_main.c
217
*h = hook;
sys/netgraph/bluetooth/include/ng_hci.h
390
#define NG_HCI_CON_HANDLE(h) ((h) & 0x0fff)
sys/netgraph/bluetooth/include/ng_hci.h
391
#define NG_HCI_PB_FLAG(h) (((h) & 0x3000) >> 12)
sys/netgraph/bluetooth/include/ng_hci.h
392
#define NG_HCI_BC_FLAG(h) (((h) & 0xc000) >> 14)
sys/netgraph/bluetooth/include/ng_hci.h
393
#define NG_HCI_MK_CON_HANDLE(h, pb, bc) \
sys/netgraph/bluetooth/include/ng_hci.h
394
(((h) & 0x0fff) | (((pb) & 3) << 12) | (((bc) & 3) << 14))
sys/netgraph/bluetooth/l2cap/ng_l2cap_main.c
168
hook_p *h = NULL;
sys/netgraph/bluetooth/l2cap/ng_l2cap_main.c
171
h = &l2cap->hci;
sys/netgraph/bluetooth/l2cap/ng_l2cap_main.c
173
h = &l2cap->l2c;
sys/netgraph/bluetooth/l2cap/ng_l2cap_main.c
175
h = &l2cap->ctl;
sys/netgraph/bluetooth/l2cap/ng_l2cap_main.c
179
if (*h != NULL)
sys/netgraph/bluetooth/l2cap/ng_l2cap_main.c
182
*h = hook;
sys/netgraph/bluetooth/l2cap/ng_l2cap_main.c
226
hook_p *h = NULL;
sys/netgraph/bluetooth/l2cap/ng_l2cap_main.c
230
h = &l2cap->hci;
sys/netgraph/bluetooth/l2cap/ng_l2cap_main.c
234
h = &l2cap->l2c;
sys/netgraph/bluetooth/l2cap/ng_l2cap_main.c
237
h = &l2cap->ctl;
sys/netgraph/bluetooth/l2cap/ng_l2cap_main.c
241
*h = NULL;
sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
1100
ng_l2cap_hdr_t h;
sys/netgraph/netgraph.h
702
#define _NGI_SET_HOOK(i,h) do { _NGI_HOOK(i) = h; h = NULL;} while (0)
sys/netgraph/netgraph.h
811
#define NGI_SET_HOOK(i,h) \
sys/netgraph/netgraph.h
812
do { _ngi_check(i, _NN_); _NGI_SET_HOOK(i, h); } while (0)
sys/netgraph/netgraph.h
843
#define NGI_SET_HOOK(i,h) _NGI_SET_HOOK(i,h)
sys/netgraph/netgraph.h
871
#define NGI_GET_HOOK(i,h) \
sys/netgraph/netgraph.h
873
(h) = NGI_HOOK(i); \
sys/netgraph/ng_bpf.c
245
hook_p h = (hook_p)arg;
sys/netgraph/ng_bpf.c
247
if (strcmp(hip->prog->ifMatch, NG_HOOK_NAME(h)) == 0)
sys/netgraph/ng_bpf.c
248
hip->match = h;
sys/netgraph/ng_bpf.c
249
if (strcmp(hip->prog->ifNotMatch, NG_HOOK_NAME(h)) == 0)
sys/netgraph/ng_bpf.c
250
hip->nomatch = h;
sys/netgraph/ng_bpf.c
258
hook_p h = (hook_p)arg;
sys/netgraph/ng_bpf.c
260
if (hip->match == h)
sys/netgraph/ng_bpf.c
262
if (hip->nomatch == h)
sys/netgraph/ng_car.c
100
static void ng_car_enqueue(struct hookinfo *h, item_p item);
sys/netgraph/ng_car.c
622
ng_car_refillhook(struct hookinfo *h)
sys/netgraph/ng_car.c
632
bintime_sub(&deltat, &h->lastRefill);
sys/netgraph/ng_car.c
636
h->lastRefill = newt;
sys/netgraph/ng_car.c
648
if (h->conf.mode == NG_CAR_SINGLE_RATE) {
sys/netgraph/ng_car.c
651
h->tc += (h->conf.cir * deltat_us) >> 23;
sys/netgraph/ng_car.c
652
delta = h->tc - h->conf.cbs;
sys/netgraph/ng_car.c
654
h->tc = h->conf.cbs;
sys/netgraph/ng_car.c
657
h->te += delta;
sys/netgraph/ng_car.c
658
if (h->te > ((int64_t)h->conf.ebs))
sys/netgraph/ng_car.c
659
h->te = h->conf.ebs;
sys/netgraph/ng_car.c
662
} else if (h->conf.mode == NG_CAR_DOUBLE_RATE) {
sys/netgraph/ng_car.c
664
h->tc += (h->conf.cir * deltat_us) >> 23;
sys/netgraph/ng_car.c
665
if (h->tc > ((int64_t)h->conf.cbs))
sys/netgraph/ng_car.c
666
h->tc = h->conf.cbs;
sys/netgraph/ng_car.c
669
h->te += (h->conf.pir * deltat_us) >> 23;
sys/netgraph/ng_car.c
670
if (h->te > ((int64_t)h->conf.ebs))
sys/netgraph/ng_car.c
671
h->te = h->conf.ebs;
sys/netgraph/ng_car.c
675
h->tc += (h->conf.cir * deltat_us) >> 23;
sys/netgraph/ng_car.c
676
if (h->tc > ((int64_t)h->conf.cbs))
sys/netgraph/ng_car.c
677
h->tc = h->conf.cbs;
sys/netgraph/ng_car.c
681
h->lastRefill = newt;
sys/netgraph/ng_car.c
97
static void ng_car_refillhook(struct hookinfo *h);
sys/netgraph/ng_car.c
98
static void ng_car_schedule(struct hookinfo *h);
sys/netgraph/ng_cisco.c
342
struct cisco_header *h;
sys/netgraph/ng_cisco.c
362
h = mtod(m, struct cisco_header *);
sys/netgraph/ng_cisco.c
363
h->address = CISCO_UNICAST;
sys/netgraph/ng_cisco.c
364
h->control = 0;
sys/netgraph/ng_cisco.c
368
h->protocol = htons(ETHERTYPE_IP);
sys/netgraph/ng_cisco.c
371
h->protocol = htons(ETHERTYPE_IPV6);
sys/netgraph/ng_cisco.c
374
h->protocol = htons(ETHERTYPE_AT);
sys/netgraph/ng_cisco.c
377
h->protocol = htons(ETHERTYPE_IPX);
sys/netgraph/ng_cisco.c
439
const struct cisco_header *h;
sys/netgraph/ng_cisco.c
449
if (m->m_pkthdr.len < sizeof(*h)) {
sys/netgraph/ng_cisco.c
455
if (m->m_len >= sizeof(*h)) /* the common case */
sys/netgraph/ng_cisco.c
456
h = mtod(m, const struct cisco_header *);
sys/netgraph/ng_cisco.c
458
m_copydata(m, 0, sizeof(*h), (caddr_t)&hdrbuf);
sys/netgraph/ng_cisco.c
459
h = &hdrbuf;
sys/netgraph/ng_cisco.c
461
m_adj(m, sizeof(*h));
sys/netgraph/ng_cisco.c
464
switch (h->address) {
sys/netgraph/ng_cisco.c
470
switch (ntohs(h->protocol)) {
sys/netgraph/ng_cisco.c
594
struct cisco_header *h;
sys/netgraph/ng_cisco.c
611
h = mtod(m, struct cisco_header *);
sys/netgraph/ng_cisco.c
612
h->address = CISCO_MULTICAST;
sys/netgraph/ng_cisco.c
613
h->control = 0;
sys/netgraph/ng_cisco.c
614
h->protocol = htons(CISCO_KEEPALIVE);
sys/netgraph/ng_cisco.c
616
ch = (struct cisco_packet *) (h + 1);
sys/netgraph/ng_l2tp.c
746
ng_l2tp_rcvdata_lower(hook_p h, item_p item)
sys/netgraph/ng_l2tp.c
752
const node_p node = NG_HOOK_NODE(h);
sys/netgraph/ng_mppc.c
176
static void ng_mppc_getkey(const u_char *h, u_char *h2, int len);
sys/netgraph/ng_mppc.c
862
ng_mppc_getkey(const u_char *h, u_char *h2, int len)
sys/netgraph/ng_mppc.c
878
SHA1Update(&c, h, len);
sys/netgraph/ng_socket.c
795
uint32_t h;
sys/netgraph/ng_socket.c
808
h = hash32_str(NG_HOOK_NAME(hook), HASHINIT) & hmask;
sys/netgraph/ng_socket.c
809
LIST_INSERT_HEAD(&new[h], hp, next);
sys/netgraph/ng_socket.c
826
uint32_t h;
sys/netgraph/ng_socket.c
834
h = hash32_str(name, HASHINIT) & priv->hmask;
sys/netgraph/ng_socket.c
835
LIST_INSERT_HEAD(&priv->hash[h], hp, next);
sys/netgraph/ng_socket.c
865
uint32_t h;
sys/netgraph/ng_socket.c
882
h = hash32_str(name, HASHINIT) & priv->hmask;
sys/netgraph/ng_socket.c
884
LIST_FOREACH(hp, &priv->hash[h], next)
sys/netgraph/ng_tee.c
297
hi_p h;
sys/netgraph/ng_tee.c
315
h = hinfo->dup;
sys/netgraph/ng_tee.c
316
NG_SEND_DATA_ONLY(error, h->hook, m2);
sys/netgraph/ng_tee.c
318
h->stats.outOctets += m->m_pkthdr.len;
sys/netgraph/ng_tee.c
319
h->stats.outFrames++;
sys/netgraph/ng_tee.c
325
h = hinfo->dest;
sys/netgraph/ng_tee.c
326
h->stats.outOctets += m->m_pkthdr.len;
sys/netgraph/ng_tee.c
327
h->stats.outFrames++;
sys/netgraph/ng_tee.c
328
NG_FWD_ITEM_HOOK(error, item, h->hook);
sys/netinet/in.c
1489
#define IN_LLTBL_HASH(k, h) \
sys/netinet/in.c
1490
(((((((k >> 8) ^ k) >> 8) ^ k) >> 8) ^ k) & ((h) - 1))
sys/netinet/tcp_hostcache.c
219
#define THC_LOCK(h) mtx_lock(&(h)->hch_mtx)
sys/netinet/tcp_hostcache.c
220
#define THC_UNLOCK(h) mtx_unlock(&(h)->hch_mtx)
sys/netinet6/in6.c
2193
#define IN6_LLTBL_HASH(k, h) \
sys/netinet6/in6.c
2194
(((((((k >> 8) ^ k) >> 8) ^ k) >> 8) ^ k) & ((h) - 1))
sys/netinet6/ip6_mroute.h
270
#define MF6CHASHMOD(h) ((h) & (MF6CTBLSIZ - 1))
sys/netinet6/ip6_mroute.h
272
#define MF6CHASHMOD(h) ((h) % MF6CTBLSIZ)
sys/netipsec/ipsec_offload.h
201
#define ipsec_accel_output(a, b, c, d, e, f, g, h) ({ \
sys/netipsec/ipsec_offload.h
202
*h = 0; \
sys/netpfil/ipfilter/netinet/fil.c
9727
host_node_t *h;
sys/netpfil/ipfilter/netinet/fil.c
9732
h = RBI_SEARCH(ipf_rb, &htp->ht_root, &k);
sys/netpfil/ipfilter/netinet/fil.c
9733
if (h == NULL) {
sys/netpfil/ipfilter/netinet/fil.c
9736
KMALLOC(h, host_node_t *);
sys/netpfil/ipfilter/netinet/fil.c
9737
if (h == NULL) {
sys/netpfil/ipfilter/netinet/fil.c
9747
bzero((char *)h, sizeof(*h));
sys/netpfil/ipfilter/netinet/fil.c
9748
h->hn_addr = k.hn_addr;
sys/netpfil/ipfilter/netinet/fil.c
9749
h->hn_addr.adf_family = k.hn_addr.adf_family;
sys/netpfil/ipfilter/netinet/fil.c
9750
RBI_INSERT(ipf_rb, &htp->ht_root, h);
sys/netpfil/ipfilter/netinet/fil.c
9754
(h->hn_active >= htp->ht_max_per_node)) {
sys/netpfil/ipfilter/netinet/fil.c
9761
h->hn_active++;
sys/netpfil/ipfilter/netinet/fil.c
9784
host_node_t *h;
sys/netpfil/ipfilter/netinet/fil.c
9789
h = RBI_SEARCH(ipf_rb, &htp->ht_root, &k);
sys/netpfil/ipfilter/netinet/fil.c
9790
if (h == NULL) {
sys/netpfil/ipfilter/netinet/fil.c
9793
h->hn_active--;
sys/netpfil/ipfilter/netinet/fil.c
9794
if (h->hn_active == 0) {
sys/netpfil/ipfilter/netinet/fil.c
9795
(void) RBI_DELETE(ipf_rb, &htp->ht_root, h);
sys/netpfil/ipfilter/netinet/fil.c
9797
KFREE(h);
sys/netpfil/ipfilter/netinet/ip_compat.h
696
#define IPMINLEN(i, h) ((i)->ip_len >= (IP_HL(i) * 4 + sizeof(struct h)))
sys/netpfil/ipfilter/netinet/ip_pool.c
901
ip_pool_t *h;
sys/netpfil/ipfilter/netinet/ip_pool.c
906
h = ipf_pool_exists(softp, unit, op->iplo_name);
sys/netpfil/ipfilter/netinet/ip_pool.c
907
if (h != NULL) {
sys/netpfil/ipfilter/netinet/ip_pool.c
908
if ((h->ipo_flags & IPOOL_DELETE) == 0) {
sys/netpfil/ipfilter/netinet/ip_pool.c
912
h->ipo_flags &= ~IPOOL_DELETE;
sys/netpfil/ipfilter/netinet/ip_pool.c
917
KMALLOC(h, ip_pool_t *);
sys/netpfil/ipfilter/netinet/ip_pool.c
918
if (h == NULL) {
sys/netpfil/ipfilter/netinet/ip_pool.c
922
bzero(h, sizeof(*h));
sys/netpfil/ipfilter/netinet/ip_pool.c
924
if (ipf_rx_inithead(softp->ipf_radix, &h->ipo_head) != 0) {
sys/netpfil/ipfilter/netinet/ip_pool.c
925
KFREE(h);
sys/netpfil/ipfilter/netinet/ip_pool.c
933
h->ipo_flags |= IPOOL_ANON;
sys/netpfil/ipfilter/netinet/ip_pool.c
948
(void)strncpy(h->ipo_name, name, sizeof(h->ipo_name));
sys/netpfil/ipfilter/netinet/ip_pool.c
951
(void)strncpy(h->ipo_name, op->iplo_name, sizeof(h->ipo_name));
sys/netpfil/ipfilter/netinet/ip_pool.c
954
h->ipo_radix = softp->ipf_radix;
sys/netpfil/ipfilter/netinet/ip_pool.c
955
h->ipo_ref = 1;
sys/netpfil/ipfilter/netinet/ip_pool.c
956
h->ipo_list = NULL;
sys/netpfil/ipfilter/netinet/ip_pool.c
957
h->ipo_tail = &h->ipo_list;
sys/netpfil/ipfilter/netinet/ip_pool.c
958
h->ipo_unit = unit;
sys/netpfil/ipfilter/netinet/ip_pool.c
959
h->ipo_next = softp->ipf_pool_list[unit + 1];
sys/netpfil/ipfilter/netinet/ip_pool.c
961
softp->ipf_pool_list[unit + 1]->ipo_pnext = &h->ipo_next;
sys/netpfil/ipfilter/netinet/ip_pool.c
962
h->ipo_pnext = &softp->ipf_pool_list[unit + 1];
sys/netpfil/ipfilter/netinet/ip_pool.c
963
softp->ipf_pool_list[unit + 1] = h;
sys/netpfil/ipfw/dn_aqm.h
54
#define BOUND_VAR(x,l,h) ((x) > (h)? (h) : ((x) > (l)? (x) : (l)))
sys/netpfil/ipfw/dn_heap.c
100
free(h->p, M_DN_HEAP);
sys/netpfil/ipfw/dn_heap.c
102
h->p = p;
sys/netpfil/ipfw/dn_heap.c
103
h->size = new_size;
sys/netpfil/ipfw/dn_heap.c
108
heap_init(struct dn_heap *h, int size, int ofs)
sys/netpfil/ipfw/dn_heap.c
110
if (heap_resize(h, size))
sys/netpfil/ipfw/dn_heap.c
112
h->elements = 0;
sys/netpfil/ipfw/dn_heap.c
113
h->ofs = ofs;
sys/netpfil/ipfw/dn_heap.c
127
#define SET_OFFSET(h, i) do { \
sys/netpfil/ipfw/dn_heap.c
128
if (h->ofs > 0) \
sys/netpfil/ipfw/dn_heap.c
129
*((int32_t *)((char *)(h->p[i].object) + h->ofs)) = i; \
sys/netpfil/ipfw/dn_heap.c
135
#define RESET_OFFSET(h, i) do { \
sys/netpfil/ipfw/dn_heap.c
136
if (h->ofs > 0) \
sys/netpfil/ipfw/dn_heap.c
137
*((int32_t *)((char *)(h->p[i].object) + h->ofs)) = -16; \
sys/netpfil/ipfw/dn_heap.c
141
heap_insert(struct dn_heap *h, uint64_t key1, void *p)
sys/netpfil/ipfw/dn_heap.c
143
int son = h->elements;
sys/netpfil/ipfw/dn_heap.c
149
son = h->elements;
sys/netpfil/ipfw/dn_heap.c
150
if (son == h->size) /* need resize... */
sys/netpfil/ipfw/dn_heap.c
152
if (heap_resize(h, h->elements+16) )
sys/netpfil/ipfw/dn_heap.c
154
h->p[son].object = p;
sys/netpfil/ipfw/dn_heap.c
155
h->p[son].key = key1;
sys/netpfil/ipfw/dn_heap.c
156
h->elements++;
sys/netpfil/ipfw/dn_heap.c
163
if (DN_KEY_LT( h->p[father].key, h->p[son].key ) )
sys/netpfil/ipfw/dn_heap.c
166
HEAP_SWAP(h->p[son], h->p[father], tmp);
sys/netpfil/ipfw/dn_heap.c
167
SET_OFFSET(h, son);
sys/netpfil/ipfw/dn_heap.c
170
SET_OFFSET(h, son);
sys/netpfil/ipfw/dn_heap.c
178
heap_extract(struct dn_heap *h, void *obj)
sys/netpfil/ipfw/dn_heap.c
180
int child, father, max = h->elements - 1;
sys/netpfil/ipfw/dn_heap.c
188
if (h->ofs <= 0)
sys/netpfil/ipfw/dn_heap.c
190
__FUNCTION__, h);
sys/netpfil/ipfw/dn_heap.c
191
father = *((int *)((char *)obj + h->ofs));
sys/netpfil/ipfw/dn_heap.c
192
if (father < 0 || father >= h->elements)
sys/netpfil/ipfw/dn_heap.c
197
if (obj != NULL && h->p[father].object != obj)
sys/netpfil/ipfw/dn_heap.c
206
RESET_OFFSET(h, father);
sys/netpfil/ipfw/dn_heap.c
209
DN_KEY_LT(h->p[child+1].key, h->p[child].key) )
sys/netpfil/ipfw/dn_heap.c
211
h->p[father] = h->p[child];
sys/netpfil/ipfw/dn_heap.c
212
SET_OFFSET(h, father);
sys/netpfil/ipfw/dn_heap.c
215
h->elements--;
sys/netpfil/ipfw/dn_heap.c
221
h->p[father] = h->p[max];
sys/netpfil/ipfw/dn_heap.c
222
heap_insert(h, father, NULL);
sys/netpfil/ipfw/dn_heap.c
234
heap_move(struct dn_heap *h, uint64_t new_key, void *object)
sys/netpfil/ipfw/dn_heap.c
236
int temp, i, max = h->elements-1;
sys/netpfil/ipfw/dn_heap.c
239
if (h->ofs <= 0)
sys/netpfil/ipfw/dn_heap.c
241
p = h->p; /* shortcut */
sys/netpfil/ipfw/dn_heap.c
243
i = *((int *)((char *)object + h->ofs));
sys/netpfil/ipfw/dn_heap.c
250
SET_OFFSET(h, i);
sys/netpfil/ipfw/dn_heap.c
262
SET_OFFSET(h, i);
sys/netpfil/ipfw/dn_heap.c
268
SET_OFFSET(h, i);
sys/netpfil/ipfw/dn_heap.c
277
heapify(struct dn_heap *h)
sys/netpfil/ipfw/dn_heap.c
281
for (i = 0; i < h->elements; i++ )
sys/netpfil/ipfw/dn_heap.c
282
heap_insert(h, i , NULL);
sys/netpfil/ipfw/dn_heap.c
286
heap_scan(struct dn_heap *h, int (*fn)(void *, uintptr_t),
sys/netpfil/ipfw/dn_heap.c
291
for (i = found = 0 ; i < h->elements ;) {
sys/netpfil/ipfw/dn_heap.c
292
ret = fn(h->p[i].object, arg);
sys/netpfil/ipfw/dn_heap.c
294
h->elements-- ;
sys/netpfil/ipfw/dn_heap.c
295
h->p[i] = h->p[h->elements] ;
sys/netpfil/ipfw/dn_heap.c
303
heapify(h);
sys/netpfil/ipfw/dn_heap.c
311
heap_free(struct dn_heap *h)
sys/netpfil/ipfw/dn_heap.c
313
if (h->size >0 )
sys/netpfil/ipfw/dn_heap.c
314
free(h->p, M_DN_HEAP);
sys/netpfil/ipfw/dn_heap.c
315
bzero(h, sizeof(*h) );
sys/netpfil/ipfw/dn_heap.c
339
uint32_t (*h)(uintptr_t, int, void *),
sys/netpfil/ipfw/dn_heap.c
367
if (h == NULL || match == NULL) {
sys/netpfil/ipfw/dn_heap.c
413
ht->hash = h;
sys/netpfil/ipfw/dn_heap.c
78
heap_resize(struct dn_heap *h, unsigned int new_size)
sys/netpfil/ipfw/dn_heap.c
82
if ((unsigned int)h->size >= new_size ) /* have enough room */
sys/netpfil/ipfw/dn_heap.c
98
if (h->size > 0) {
sys/netpfil/ipfw/dn_heap.c
99
bcopy(h->p, p, h->size * sizeof(*p) );
sys/netpfil/ipfw/dn_heap.h
100
#define SET_HEAP_OFS(h, n) do { (h)->ofs = n; } while (0)
sys/netpfil/ipfw/dn_heap.h
101
int heap_init(struct dn_heap *h, int size, int ofs);
sys/netpfil/ipfw/dn_heap.h
102
int heap_insert(struct dn_heap *h, uint64_t key1, void *p);
sys/netpfil/ipfw/dn_heap.h
103
bool heap_extract(struct dn_heap *h, void *obj);
sys/netpfil/ipfw/dn_heap.h
104
void heap_free(struct dn_heap *h);
sys/netpfil/ipfw/dn_heap.h
99
#define HEAP_TOP(h) ((h)->p)
sys/netpfil/ipfw/dn_sched_qfq.c
453
struct qfq_class **h = &grp->slots[grp->front];
sys/netpfil/ipfw/dn_sched_qfq.c
455
*h = (*h)->next;
sys/netpfil/ipfw/dn_sched_qfq.c
456
if (!*h)
sys/netpfil/ipfw/dn_sched_wf2q.c
118
struct dn_heap *h = &si->idle_heap;
sys/netpfil/ipfw/dn_sched_wf2q.c
119
while (n-- > 0 && h->elements > 0 &&
sys/netpfil/ipfw/dn_sched_wf2q.c
120
(force || DN_KEY_LT(HEAP_TOP(h)->key, si->V))) {
sys/netpfil/ipfw/dn_sched_wf2q.c
121
struct dn_queue *q = HEAP_TOP(h)->object;
sys/netpfil/ipfw/dn_sched_wf2q.c
124
heap_extract(h, NULL);
sys/netpfil/ipfw/ip_dummynet.c
763
struct dn_fsk_head *h;
sys/netpfil/ipfw/ip_dummynet.c
764
h = fs->sched ? &fs->sched->fsk_list : &V_dn_cfg.fsu;
sys/netpfil/ipfw/ip_dummynet.c
765
SLIST_REMOVE(h, fs, dn_fsk, sch_chain);
sys/netpfil/ipfw/ip_dummynet.c
797
fsk_detach_list(struct dn_fsk_head *h, int flags)
sys/netpfil/ipfw/ip_dummynet.c
802
ND("head %p flags %x", h, flags);
sys/netpfil/ipfw/ip_dummynet.c
803
while ((fs = SLIST_FIRST(h))) {
sys/netpfil/ipfw/ip_dummynet.c
804
SLIST_REMOVE_HEAD(h, sch_chain);
sys/netpfil/ipfw/ip_fw2.c
633
struct ip *h = NULL; /* stupid compiler */
sys/netpfil/ipfw/ip_fw2.c
678
h = mtod(m, struct ip *);
sys/netpfil/ipfw/ip_fw2.c
681
h->ip_p = IPPROTO_TCP;
sys/netpfil/ipfw/ip_fw2.c
682
h->ip_len = htons(sizeof(struct tcphdr));
sys/netpfil/ipfw/ip_fw2.c
684
h->ip_src.s_addr = htonl(id->src_ip);
sys/netpfil/ipfw/ip_fw2.c
685
h->ip_dst.s_addr = htonl(id->dst_ip);
sys/netpfil/ipfw/ip_fw2.c
687
h->ip_src.s_addr = htonl(id->dst_ip);
sys/netpfil/ipfw/ip_fw2.c
688
h->ip_dst.s_addr = htonl(id->src_ip);
sys/netpfil/ipfw/ip_fw2.c
691
th = (struct tcphdr *)(h + 1);
sys/netpfil/ipfw/ip_fw2.c
746
h->ip_v = 4;
sys/netpfil/ipfw/ip_fw2.c
747
h->ip_hl = sizeof(*h) >> 2;
sys/netpfil/ipfw/ip_fw2.c
748
h->ip_tos = IPTOS_LOWDELAY;
sys/netpfil/ipfw/ip_fw2.c
749
h->ip_off = htons(0);
sys/netpfil/ipfw/ip_fw2.c
750
h->ip_len = htons(len);
sys/netpfil/ipfw/ip_fw2.c
751
h->ip_ttl = V_ip_defttl;
sys/netpfil/ipfw/ip_fw2.c
752
h->ip_sum = 0;
sys/netpfil/ipfw/ip_fw_dynamic.c
2871
#define DYN_RESET_EACTION(s, h, b) \
sys/netpfil/ipfw/ip_fw_dynamic.c
2872
CK_SLIST_FOREACH(s, &V_dyn_ ## h[b], entry) { \
sys/netpfil/ipfw/ip_fw_dynamic.c
288
#define DYN_BUCKET(h, b) ((h) & (b - 1))
sys/netpfil/ipfw/ip_fw_dynamic.c
2918
#define DYN_COUNT_OBJECTS(s, h, b) \
sys/netpfil/ipfw/ip_fw_dynamic.c
2919
CK_SLIST_FOREACH(s, &V_dyn_ ## h[b], entry) { \
sys/netpfil/ipfw/ip_fw_dynamic.c
3113
#define DYN_EXPORT_STATES(s, af, h, b) \
sys/netpfil/ipfw/ip_fw_dynamic.c
3114
CK_SLIST_FOREACH(s, &V_dyn_ ## h[b], entry) { \
sys/netpfil/ipfw/ip_fw_pfil.c
590
pfil_hook_t *h;
sys/netpfil/ipfw/ip_fw_pfil.c
597
h = &V_ipfw_inet_hook;
sys/netpfil/ipfw/ip_fw_pfil.c
604
h = &V_ipfw_inet6_hook;
sys/netpfil/ipfw/ip_fw_pfil.c
612
h = &V_ipfw_link_hook;
sys/netpfil/ipfw/ip_fw_pfil.c
616
*h = pfil_add_hook(&pha);
sys/netpfil/ipfw/ip_fw_sockopt.c
2613
struct opcode_obj_rewrite *ctl3_max, *lo, *hi, h, *rw;
sys/netpfil/ipfw/ip_fw_sockopt.c
2615
memset(&h, 0, sizeof(h));
sys/netpfil/ipfw/ip_fw_sockopt.c
2616
h.opcode = op;
sys/netpfil/ipfw/ip_fw_sockopt.c
2618
rw = (struct opcode_obj_rewrite *)bsearch(&h, ctl3_rewriters,
sys/netpfil/ipfw/ip_fw_sockopt.c
2619
ctl3_rsize, sizeof(h), compare_opcodes);
sys/netpfil/ipfw/ip_fw_sockopt.c
2916
struct ipfw_sopt_handler *sh, h;
sys/netpfil/ipfw/ip_fw_sockopt.c
2918
memset(&h, 0, sizeof(h));
sys/netpfil/ipfw/ip_fw_sockopt.c
2919
h.opcode = code;
sys/netpfil/ipfw/ip_fw_sockopt.c
2920
h.version = version;
sys/netpfil/ipfw/ip_fw_sockopt.c
2921
h.handler = handler;
sys/netpfil/ipfw/ip_fw_sockopt.c
2923
sh = (struct ipfw_sopt_handler *)bsearch(&h, ctl3_handlers,
sys/netpfil/ipfw/ip_fw_sockopt.c
2924
ctl3_hsize, sizeof(h), compare_sh);
sys/netpfil/ipfw/ip_fw_sockopt.c
3035
struct ipfw_sopt_handler *tmp, *h;
sys/netpfil/ipfw/ip_fw_sockopt.c
3042
h = find_sh(tmp->opcode, tmp->version, tmp->handler);
sys/netpfil/ipfw/ip_fw_sockopt.c
3043
if (h == NULL)
sys/netpfil/ipfw/ip_fw_sockopt.c
3046
sz = (ctl3_handlers + ctl3_hsize - (h + 1)) * sizeof(*h);
sys/netpfil/ipfw/ip_fw_sockopt.c
3047
memmove(h, h + 1, sz);
sys/netpfil/ipfw/ip_fw_sockopt.c
3163
struct ipfw_sopt_handler h;
sys/netpfil/ipfw/ip_fw_sockopt.c
3189
error = find_ref_sh(op3->opcode, op3->version, &h);
sys/netpfil/ipfw/ip_fw_sockopt.c
3197
if ((h.dir & HDIR_SET) != 0 && h.opcode != IP_FW_XRESETLOG) {
sys/netpfil/ipfw/ip_fw_sockopt.c
3200
find_unref_sh(&h);
sys/netpfil/ipfw/ip_fw_sockopt.c
3221
if ((h.dir & HDIR_SET) != 0) {
sys/netpfil/ipfw/ip_fw_sockopt.c
3224
find_unref_sh(&h);
sys/netpfil/ipfw/ip_fw_sockopt.c
3263
error = h.handler(chain, op3, &sdata);
sys/netpfil/ipfw/ip_fw_sockopt.c
3264
find_unref_sh(&h);
sys/netpfil/ipfw/nat64/nat64lsn.c
231
#define STATE_HASH(h, v) \
sys/netpfil/ipfw/nat64/nat64lsn.c
232
((h)->states_hash[(v) & ((h)->states_hashsize - 1)])
sys/netpfil/ipfw/nat64/nat64lsn.c
970
struct nat64lsn_host *h;
sys/netpfil/ipfw/nat64/nat64lsn.c
975
CK_SLIST_FOREACH(h, &cfg->hosts_hash[i], entries) {
sys/netpfil/ipfw/nat64/nat64lsn.c
976
if (h->states_count / 2 < h->states_hashsize ||
sys/netpfil/ipfw/nat64/nat64lsn.c
977
h->states_hashsize >= NAT64LSN_MAX_HSIZE)
sys/netpfil/ipfw/nat64/nat64lsn.c
979
hsize = h->states_hashsize * 2;
sys/netpfil/ipfw/nat64/nat64lsn.c
986
ck_pr_bts_32(&h->flags, NAT64LSN_GROWHASH);
sys/netpfil/ipfw/test/dn_test.h
115
struct list_head h; /* used by the generator */
sys/netpfil/ipfw/test/main.c
123
struct list_head *h = &q->ni.h;
sys/netpfil/ipfw/test/main.c
126
list_del(h);
sys/netpfil/ipfw/test/main.c
127
list_add_tail(h, &c->ll[i]);
sys/netpfil/ipfw/test/main.c
592
INIT_LIST_HEAD(&q->ni.h);
sys/netpfil/ipfw/test/main.c
593
list_add_tail(&q->ni.h, &c->ll[0]);
sys/netpfil/ipfw/test/main.c
670
struct list_head *h;
sys/netpfil/ipfw/test/main.c
678
h = &c->ll[i];
sys/netpfil/ipfw/test/main.c
679
ND(1, "backlog %d p %p prev %p next %p", i, h, h->prev, h->next);
sys/netpfil/ipfw/test/main.c
680
q = list_first_entry(h, struct dn_queue, ni.h);
sys/netpfil/ipfw/test/main.c
681
list_del(&q->ni.h);
sys/netpfil/ipfw/test/main.c
684
if (list_empty(h)) {
sys/netpfil/ipfw/test/main.c
688
ND(1, "before %d p %p prev %p next %p", i+1, h+1, h[1].prev, h[1].next);
sys/netpfil/ipfw/test/main.c
689
list_add_tail(&q->ni.h, h+1);
sys/netpfil/ipfw/test/main.c
690
ND(1, " after %d p %p prev %p next %p", i+1, h+1, h[1].prev, h[1].next);
sys/netpfil/ipfw/test/test_dn_heap.c
100
dn_ht_scan(h, doprint, 0);
sys/netpfil/ipfw/test/test_dn_heap.c
102
h = dn_ht_init(NULL, 10, 0, hf, matchf, NULL);
sys/netpfil/ipfw/test/test_dn_heap.c
111
dn_ht_find(h, (uintptr_t)y, DNHT_INSERT | DNHT_KEY_IS_OBJ, NULL);
sys/netpfil/ipfw/test/test_dn_heap.c
113
dn_ht_scan(h, doprint, 0);
sys/netpfil/ipfw/test/test_dn_heap.c
115
dn_ht_find(h, x, DNHT_KEY_IS_OBJ | DNHT_REMOVE, NULL));
sys/netpfil/ipfw/test/test_dn_heap.c
117
dn_ht_find(h, x, DNHT_KEY_IS_OBJ | DNHT_REMOVE, NULL));
sys/netpfil/ipfw/test/test_dn_heap.c
119
dn_ht_find(h, x1, DNHT_REMOVE, NULL));
sys/netpfil/ipfw/test/test_dn_heap.c
121
dn_ht_find(h, x1, DNHT_REMOVE, NULL));
sys/netpfil/ipfw/test/test_dn_heap.c
122
dn_ht_scan(h, doprint, 0);
sys/netpfil/ipfw/test/test_dn_heap.c
128
struct dn_heap h;
sys/netpfil/ipfw/test/test_dn_heap.c
142
bzero(&h, sizeof(h));
sys/netpfil/ipfw/test/test_dn_heap.c
143
heap_init(&h, n, -1);
sys/netpfil/ipfw/test/test_dn_heap.c
147
heap_insert(&h, n3 ? n-i: random(), (void *)(100+i));
sys/netpfil/ipfw/test/test_dn_heap.c
149
for (i=0; h.elements > 0; i++) {
sys/netpfil/ipfw/test/test_dn_heap.c
150
uint64_t k = h.p[0].key;
sys/netpfil/ipfw/test/test_dn_heap.c
156
i, h.p[0].key, h.p[0].object);
sys/netpfil/ipfw/test/test_dn_heap.c
157
heap_extract(&h, NULL);
sys/netpfil/ipfw/test/test_dn_heap.c
90
struct dn_ht *h;
sys/netpfil/ipfw/test/test_dn_heap.c
95
h = dn_ht_init(NULL, 10, 0, hf, matchf, newfn);
sys/netpfil/ipfw/test/test_dn_heap.c
98
dn_ht_find(h, (uintptr_t)*p, DNHT_INSERT, NULL);
sys/netpfil/pf/pf.c
1000
uint32_t h;
sys/netpfil/pf/pf.c
1004
h = murmur3_32_hash32((uint32_t *)&addr->v4,
sys/netpfil/pf/pf.c
1008
h = murmur3_32_hash32((uint32_t *)&addr->v6,
sys/netpfil/pf/pf.c
1015
return (h & V_pf_srchashmask);
sys/netpfil/pf/pf.c
1021
uint32_t h;
sys/netpfil/pf/pf.c
1023
h = murmur3_32_hash32((uint32_t *)endpoint,
sys/netpfil/pf/pf.c
1026
return (h & V_pf_udpendpointhashmask);
sys/netpfil/pf/pf.c
10735
pf_walk_option(struct pf_pdesc *pd, struct ip *h, int off, int end,
sys/netpfil/pf/pf.c
10791
pf_walk_header(struct pf_pdesc *pd, struct ip *h, u_short *reason)
sys/netpfil/pf/pf.c
10797
hlen = h->ip_hl << 2;
sys/netpfil/pf/pf.c
10798
if (hlen < sizeof(struct ip) || hlen > ntohs(h->ip_len)) {
sys/netpfil/pf/pf.c
10803
if (pf_walk_option(pd, h, pd->off + sizeof(struct ip),
sys/netpfil/pf/pf.c
10810
end = pd->off + ntohs(h->ip_len);
sys/netpfil/pf/pf.c
10812
pd->proto = h->ip_p;
sys/netpfil/pf/pf.c
10819
if ((h->ip_ttl != 1) &&
sys/netpfil/pf/pf.c
10820
(h->ip_dst.s_addr == INADDR_ALLHOSTS_GROUP)) {
sys/netpfil/pf/pf.c
10828
if ((h->ip_off & htons(IP_OFFMASK)) != 0)
sys/netpfil/pf/pf.c
10834
if ((h->ip_off & htons(IP_MF | IP_OFFMASK)) != 0 &&
sys/netpfil/pf/pf.c
10856
pf_walk_option6(struct pf_pdesc *pd, struct ip6_hdr *h, int off, int end,
sys/netpfil/pf/pf.c
10892
if (ntohs(h->ip6_plen) != 0) {
sys/netpfil/pf/pf.c
10925
pf_walk_header6(struct pf_pdesc *pd, struct ip6_hdr *h, u_short *reason)
sys/netpfil/pf/pf.c
10935
end = pd->off + ntohs(h->ip6_plen);
sys/netpfil/pf/pf.c
10937
pd->proto = h->ip6_nxt;
sys/netpfil/pf/pf.c
10950
if (pf_walk_option6(pd, h, pd->off + sizeof(ext),
sys/netpfil/pf/pf.c
11036
ntohs(h->ip6_plen) == 0 && pd->jumbolen != 0) {
sys/netpfil/pf/pf.c
11073
if ((h->ip6_hlim != 1) ||
sys/netpfil/pf/pf.c
11074
!IN6_IS_ADDR_LINKLOCAL(&h->ip6_src)) {
sys/netpfil/pf/pf.c
11140
struct ip *h;
sys/netpfil/pf/pf.c
11152
h = mtod(pd->m, struct ip *);
sys/netpfil/pf/pf.c
11153
if (pd->m->m_pkthdr.len < ntohs(h->ip_len)) {
sys/netpfil/pf/pf.c
11166
h = mtod(pd->m, struct ip *);
sys/netpfil/pf/pf.c
11168
if (pf_walk_header(pd, h, reason) != PF_PASS) {
sys/netpfil/pf/pf.c
11173
pd->src = (struct pf_addr *)&h->ip_src;
sys/netpfil/pf/pf.c
11174
pd->dst = (struct pf_addr *)&h->ip_dst;
sys/netpfil/pf/pf.c
11177
pd->ip_sum = &h->ip_sum;
sys/netpfil/pf/pf.c
11178
pd->tos = h->ip_tos & ~IPTOS_ECN_MASK;
sys/netpfil/pf/pf.c
11179
pd->ttl = h->ip_ttl;
sys/netpfil/pf/pf.c
11180
pd->tot_len = ntohs(h->ip_len);
sys/netpfil/pf/pf.c
11182
pd->df = h->ip_off & htons(IP_DF);
sys/netpfil/pf/pf.c
11183
pd->virtual_proto = (h->ip_off & htons(IP_MF | IP_OFFMASK)) ?
sys/netpfil/pf/pf.c
11191
struct ip6_hdr *h;
sys/netpfil/pf/pf.c
11203
h = mtod(pd->m, struct ip6_hdr *);
sys/netpfil/pf/pf.c
11205
sizeof(struct ip6_hdr) + ntohs(h->ip6_plen)) {
sys/netpfil/pf/pf.c
11215
if (htons(h->ip6_plen) == 0) {
sys/netpfil/pf/pf.c
11220
if (pf_walk_header6(pd, h, reason) != PF_PASS) {
sys/netpfil/pf/pf.c
11225
h = mtod(pd->m, struct ip6_hdr *);
sys/netpfil/pf/pf.c
11226
pd->src = (struct pf_addr *)&h->ip6_src;
sys/netpfil/pf/pf.c
11227
pd->dst = (struct pf_addr *)&h->ip6_dst;
sys/netpfil/pf/pf.c
11231
pd->tos = IPV6_DSCP(h);
sys/netpfil/pf/pf.c
11232
pd->ttl = h->ip6_hlim;
sys/netpfil/pf/pf.c
11233
pd->tot_len = ntohs(h->ip6_plen) + sizeof(struct ip6_hdr);
sys/netpfil/pf/pf.c
11254
h = mtod(pd->m, struct ip6_hdr *);
sys/netpfil/pf/pf.c
11255
pd->src = (struct pf_addr *)&h->ip6_src;
sys/netpfil/pf/pf.c
11256
pd->dst = (struct pf_addr *)&h->ip6_dst;
sys/netpfil/pf/pf.c
11260
if (pf_walk_header6(pd, h, reason) != PF_PASS) {
sys/netpfil/pf/pf.c
4458
struct ip *h = NULL;
sys/netpfil/pf/pf.c
4533
h = mtod(m, struct ip *);
sys/netpfil/pf/pf.c
4535
h->ip_p = IPPROTO_TCP;
sys/netpfil/pf/pf.c
4536
h->ip_len = htons(tlen);
sys/netpfil/pf/pf.c
4537
h->ip_v = 4;
sys/netpfil/pf/pf.c
4538
h->ip_hl = sizeof(*h) >> 2;
sys/netpfil/pf/pf.c
4539
h->ip_tos = IPTOS_LOWDELAY;
sys/netpfil/pf/pf.c
4540
h->ip_len = htons(len);
sys/netpfil/pf/pf.c
4541
h->ip_off = htons(V_path_mtu_discovery ? IP_DF : 0);
sys/netpfil/pf/pf.c
4542
h->ip_ttl = ttl ? ttl : V_ip_defttl;
sys/netpfil/pf/pf.c
4543
h->ip_sum = 0;
sys/netpfil/pf/pf.c
4544
h->ip_src.s_addr = saddr->v4.s_addr;
sys/netpfil/pf/pf.c
4545
h->ip_dst.s_addr = daddr->v4.s_addr;
sys/netpfil/pf/pf.c
4547
th = (struct tcphdr *)((caddr_t)h + sizeof(struct ip));
sys/netpfil/pf/pf.c
4548
th->th_sum = in_pseudo(h->ip_src.s_addr, h->ip_dst.s_addr,
sys/netpfil/pf/pf.c
4607
struct ip *h = NULL;
sys/netpfil/pf/pf.c
4635
h = mtod(m, struct ip *);
sys/netpfil/pf/pf.c
4639
h->ip_p = IPPROTO_SCTP;
sys/netpfil/pf/pf.c
4640
h->ip_len = htons(sizeof(*h) + sizeof(*hdr) + sizeof(*chunk));
sys/netpfil/pf/pf.c
4641
h->ip_ttl = ttl ? ttl : V_ip_defttl;
sys/netpfil/pf/pf.c
4642
h->ip_src = pd->dst->v4;
sys/netpfil/pf/pf.c
4643
h->ip_dst = pd->src->v4;
sys/netpfil/pf/pf.c
8401
struct sctp_paramhdr h;
sys/netpfil/pf/pf.c
8403
if (!pf_pull_hdr(pd->m, start + off, &h, sizeof(h), NULL,
sys/netpfil/pf/pf.c
8408
if (ntohs(h.param_length) < 4)
sys/netpfil/pf/pf.c
8411
SDT_PROBE2(pf, sctp, multihome_scan, param, ntohs(h.param_type),
sys/netpfil/pf/pf.c
8412
ntohs(h.param_length));
sys/netpfil/pf/pf.c
8414
switch (ntohs(h.param_type)) {
sys/netpfil/pf/pf.c
8418
if (ntohs(h.param_length) !=
sys/netpfil/pf/pf.c
8422
if (!pf_pull_hdr(pd->m, start + off + sizeof(h), &t, sizeof(t),
sys/netpfil/pf/pf.c
8463
if (ntohs(h.param_length) !=
sys/netpfil/pf/pf.c
8467
if (!pf_pull_hdr(pd->m, start + off + sizeof(h), &t, sizeof(t),
sys/netpfil/pf/pf.c
8527
off += roundup(ntohs(h.param_length), 4);
sys/netpfil/pf/pf.c
9672
const struct ip *h = mtod(m, struct ip *);
sys/netpfil/pf/pf.c
9673
u_int16_t fragoff = (ntohs(h->ip_off) & IP_OFFMASK) << 3;
sys/netpfil/pf/pf.c
9679
iplen = ntohs(h->ip_len);
sys/netpfil/pf/pf.c
9685
const struct ip6_hdr *h = mtod(m, struct ip6_hdr *);
sys/netpfil/pf/pf.c
9687
iplen = ntohs(h->ip6_plen) + sizeof(struct ip6_hdr);
sys/netpfil/pf/pf.c
988
uint32_t h;
sys/netpfil/pf/pf.c
990
h = murmur3_32_hash32((const uint32_t *)sk,
sys/netpfil/pf/pf.c
994
return (h & V_pf_hashmask);
sys/netpfil/pf/pf_lb.c
112
h.hash64 = res;
sys/netpfil/pf/pf_lb.c
113
hash->addr32[0] = h.hash32[0];
sys/netpfil/pf/pf_lb.c
114
hash->addr32[1] = h.hash32[1];
sys/netpfil/pf/pf_lb.c
119
hash->addr32[2] = ~h.hash32[1];
sys/netpfil/pf/pf_lb.c
120
hash->addr32[3] = ~h.hash32[0];
sys/netpfil/pf/pf_lb.c
94
} h;
sys/netpfil/pf/pf_norm.c
1156
struct ip *h = mtod(pd->m, struct ip *);
sys/netpfil/pf/pf_norm.c
1157
int mff = (ntohs(h->ip_off) & IP_MF);
sys/netpfil/pf/pf_norm.c
1158
int hlen = h->ip_hl << 2;
sys/netpfil/pf/pf_norm.c
1159
u_int16_t fragoff = (ntohs(h->ip_off) & IP_OFFMASK) << 3;
sys/netpfil/pf/pf_norm.c
1188
else if (r->proto && r->proto != h->ip_p)
sys/netpfil/pf/pf_norm.c
1191
(struct pf_addr *)&h->ip_src.s_addr, AF_INET,
sys/netpfil/pf/pf_norm.c
1195
(struct pf_addr *)&h->ip_dst.s_addr, AF_INET,
sys/netpfil/pf/pf_norm.c
1224
if (hlen > ntohs(h->ip_len)) {
sys/netpfil/pf/pf_norm.c
1232
(h->ip_off & htons(IP_DF))
sys/netpfil/pf/pf_norm.c
1234
u_int16_t ip_off = h->ip_off;
sys/netpfil/pf/pf_norm.c
1236
h->ip_off &= htons(~IP_DF);
sys/netpfil/pf/pf_norm.c
1237
h->ip_sum = pf_cksum_fixup(h->ip_sum, ip_off, h->ip_off, 0);
sys/netpfil/pf/pf_norm.c
1248
if (h->ip_off & htons(IP_DF)) {
sys/netpfil/pf/pf_norm.c
1253
ip_len = ntohs(h->ip_len) - hlen;
sys/netpfil/pf/pf_norm.c
1276
h->ip_id, fragoff, max);
sys/netpfil/pf/pf_norm.c
1286
h = mtod(pd->m, struct ip *);
sys/netpfil/pf/pf_norm.c
1287
pd->tot_len = htons(h->ip_len);
sys/netpfil/pf/pf_norm.c
1291
if (h->ip_off & ~htons(IP_DF)) {
sys/netpfil/pf/pf_norm.c
1292
u_int16_t ip_off = h->ip_off;
sys/netpfil/pf/pf_norm.c
1294
h->ip_off &= htons(IP_DF);
sys/netpfil/pf/pf_norm.c
1295
h->ip_sum = pf_cksum_fixup(h->ip_sum, ip_off, h->ip_off, 0);
sys/netpfil/pf/pf_norm.c
1318
struct ip6_hdr *h;
sys/netpfil/pf/pf_norm.c
1382
h = mtod(pd->m, struct ip6_hdr *);
sys/netpfil/pf/pf_norm.c
1383
pd->tot_len = ntohs(h->ip6_plen) + sizeof(struct ip6_hdr);
sys/netpfil/pf/pf_norm.c
1532
struct ip *h = mtod(pd->m, struct ip *);
sys/netpfil/pf/pf_norm.c
1533
src->scrub->pfss_ttl = h->ip_ttl;
sys/netpfil/pf/pf_norm.c
1539
struct ip6_hdr *h = mtod(pd->m, struct ip6_hdr *);
sys/netpfil/pf/pf_norm.c
1540
src->scrub->pfss_ttl = h->ip6_hlim;
sys/netpfil/pf/pf_norm.c
1632
struct ip *h = mtod(pd->m, struct ip *);
sys/netpfil/pf/pf_norm.c
1633
if (h->ip_ttl > src->scrub->pfss_ttl)
sys/netpfil/pf/pf_norm.c
1634
src->scrub->pfss_ttl = h->ip_ttl;
sys/netpfil/pf/pf_norm.c
1635
h->ip_ttl = src->scrub->pfss_ttl;
sys/netpfil/pf/pf_norm.c
1643
struct ip6_hdr *h = mtod(pd->m, struct ip6_hdr *);
sys/netpfil/pf/pf_norm.c
1644
if (h->ip6_hlim > src->scrub->pfss_ttl)
sys/netpfil/pf/pf_norm.c
1645
src->scrub->pfss_ttl = h->ip6_hlim;
sys/netpfil/pf/pf_norm.c
1646
h->ip6_hlim = src->scrub->pfss_ttl;
sys/netpfil/pf/pf_norm.c
2227
struct ip *h = mtod(pd->m, struct ip *);
sys/netpfil/pf/pf_norm.c
2234
h->ip_off & htons(IP_DF))
sys/netpfil/pf/pf_norm.c
2236
u_int16_t ip_off = h->ip_off;
sys/netpfil/pf/pf_norm.c
2238
h->ip_off &= htons(~IP_DF);
sys/netpfil/pf/pf_norm.c
2239
h->ip_sum = pf_cksum_fixup(h->ip_sum, ip_off, h->ip_off, 0);
sys/netpfil/pf/pf_norm.c
2244
h->ip_ttl < pd->act.min_ttl) {
sys/netpfil/pf/pf_norm.c
2245
u_int16_t ip_ttl = h->ip_ttl;
sys/netpfil/pf/pf_norm.c
2247
pd->ttl = h->ip_ttl = pd->act.min_ttl;
sys/netpfil/pf/pf_norm.c
2248
h->ip_sum = pf_cksum_fixup(h->ip_sum, ip_ttl, h->ip_ttl, 0);
sys/netpfil/pf/pf_norm.c
2262
ov = *(u_int16_t *)h;
sys/netpfil/pf/pf_norm.c
2263
h->ip_tos = pd->act.set_tos | (h->ip_tos & IPTOS_ECN_MASK);
sys/netpfil/pf/pf_norm.c
2264
pd->tos = h->ip_tos & ~IPTOS_ECN_MASK;
sys/netpfil/pf/pf_norm.c
2265
nv = *(u_int16_t *)h;
sys/netpfil/pf/pf_norm.c
2267
h->ip_sum = pf_cksum_fixup(h->ip_sum, ov, nv, 0);
sys/netpfil/pf/pf_norm.c
2283
pd->act.flags & PFSTATE_RANDOMID && !(h->ip_off & ~htons(IP_DF))) {
sys/netpfil/pf/pf_norm.c
2284
uint16_t ip_id = h->ip_id;
sys/netpfil/pf/pf_norm.c
2286
ip_fillid(h, V_ip_random_id);
sys/netpfil/pf/pf_norm.c
2287
h->ip_sum = pf_cksum_fixup(h->ip_sum, ip_id, h->ip_id, 0);
sys/netpfil/pf/pflow.c
1150
struct pflow_header *h;
sys/netpfil/pf/pflow.c
1161
h = mtod(m, struct pflow_header *);
sys/netpfil/pf/pflow.c
1162
h->count = htons(sc->sc_count);
sys/netpfil/pf/pflow.c
1165
h->uptime_ms = htonl(time_uptime * 1000);
sys/netpfil/pf/pflow.c
1168
h->time_sec = htonl(tv.tv_sec); /* XXX 2038 */
sys/netpfil/pf/pflow.c
1169
h->time_nanosec = htonl(tv.tv_nsec);
sys/netpfil/pf/pflow.c
271
pflowif->sc_tmpl_ipfix.ipv4_tmpl.h.tmpl_id =
sys/netpfil/pf/pflow.c
273
pflowif->sc_tmpl_ipfix.ipv4_tmpl.h.field_count
sys/netpfil/pf/pflow.c
313
pflowif->sc_tmpl_ipfix.ipv6_tmpl.h.tmpl_id =
sys/netpfil/pf/pflow.c
315
pflowif->sc_tmpl_ipfix.ipv6_tmpl.h.field_count =
sys/netpfil/pf/pflow.c
355
pflowif->sc_tmpl_ipfix.nat44_tmpl.h.tmpl_id =
sys/netpfil/pf/pflow.c
357
pflowif->sc_tmpl_ipfix.nat44_tmpl.h.field_count =
sys/netpfil/pf/pflow.c
574
struct pflow_header h;
sys/netpfil/pf/pflow.c
598
h.reserved1 = 0;
sys/netpfil/pf/pflow.c
599
h.reserved2 = 0;
sys/netpfil/pf/pflow.c
600
h.count = 0;
sys/netpfil/pf/pflow.c
601
h.version = htons(PFLOW_PROTO_5);
sys/netpfil/pf/pflow.c
602
h.flow_sequence = htonl(sc->sc_gcounter);
sys/netpfil/pf/pflow.c
603
h.engine_type = PFLOW_ENGINE_TYPE;
sys/netpfil/pf/pflow.c
604
h.engine_id = PFLOW_ENGINE_ID;
sys/netpfil/pf/pflow.c
605
m_copyback(m, 0, PFLOW_HDRLEN, (caddr_t)&h);
sys/nlm/nlm_advlock.c
1094
struct nlm4_holder *h =
sys/nlm/nlm_advlock.c
1096
fl->l_start = h->l_offset;
sys/nlm/nlm_advlock.c
1097
fl->l_len = h->l_len;
sys/nlm/nlm_advlock.c
1098
fl->l_pid = h->svid;
sys/nlm/nlm_advlock.c
1099
if (h->exclusive)
sys/nlm/nlm_advlock.c
1152
int h;
sys/nlm/nlm_advlock.c
1154
h = (((uintptr_t) id) >> 7) % NLM_SVID_HASH_SIZE;
sys/nlm/nlm_advlock.c
1157
LIST_FOREACH(ns, &nlm_file_svids[h], ns_link) {
sys/nlm/nlm_advlock.c
1179
LIST_FOREACH(ns, &nlm_file_svids[h], ns_link) {
sys/nlm/nlm_advlock.c
1190
LIST_INSERT_HEAD(&nlm_file_svids[h], newns,
sys/ofed/drivers/infiniband/ulp/sdp/sdp.h
506
struct sdp_bsdh *h;
sys/ofed/drivers/infiniband/ulp/sdp/sdp.h
513
h = mtod(mb, struct sdp_bsdh *);
sys/ofed/drivers/infiniband/ulp/sdp/sdp.h
514
h->mid = mid;
sys/ofed/drivers/infiniband/ulp/sdp/sdp_bcopy.c
110
struct sdp_bsdh *h;
sys/ofed/drivers/infiniband/ulp/sdp/sdp_bcopy.c
112
h = mtod(mb, struct sdp_bsdh *);
sys/ofed/drivers/infiniband/ulp/sdp/sdp_bcopy.c
117
unlikely(h->mid != SDP_MID_DATA) ||
sys/ofed/drivers/infiniband/ulp/sdp/sdp_bcopy.c
42
struct mbuf *mb, const struct sdp_bsdh *h)
sys/ofed/drivers/infiniband/ulp/sdp/sdp_bcopy.c
53
str, mb, h->mid, mid2str(h->mid), h->flags,
sys/ofed/drivers/infiniband/ulp/sdp/sdp_bcopy.c
54
ntohs(h->bufs), ntohl(h->len), ntohl(h->mseq),
sys/ofed/drivers/infiniband/ulp/sdp/sdp_bcopy.c
55
ntohl(h->mseq_ack));
sys/ofed/drivers/infiniband/ulp/sdp/sdp_bcopy.c
57
switch (h->mid) {
sys/ofed/drivers/infiniband/ulp/sdp/sdp_bcopy.c
59
hh = (struct sdp_hh *)h;
sys/ofed/drivers/infiniband/ulp/sdp/sdp_bcopy.c
68
hah = (struct sdp_hah *)h;
sys/ofed/drivers/infiniband/ulp/sdp/sdp_bcopy.c
74
req_size = (struct sdp_chrecvbuf *)(h+1);
sys/ofed/drivers/infiniband/ulp/sdp/sdp_bcopy.c
80
ntohl(h->len) - sizeof(struct sdp_bsdh));
sys/ofed/drivers/infiniband/ulp/sdp/sdp_bcopy.c
83
rrch = (struct sdp_rrch *)(h+1);
sys/ofed/drivers/infiniband/ulp/sdp/sdp_bcopy.c
89
srcah = (struct sdp_srcah *)(h+1);
sys/ofed/drivers/infiniband/ulp/sdp/sdp_bcopy.c
93
ntohl(h->len) - sizeof(struct sdp_bsdh) -
sys/ofed/drivers/infiniband/ulp/sdp/sdp_cma.c
148
const struct sdp_hh *h;
sys/ofed/drivers/infiniband/ulp/sdp/sdp_cma.c
154
h = event->param.conn.private_data;
sys/ofed/drivers/infiniband/ulp/sdp/sdp_cma.c
155
SDP_DUMP_PACKET(sk, "RX", NULL, &h->bsdh);
sys/ofed/drivers/infiniband/ulp/sdp/sdp_cma.c
157
if (!h->max_adverts)
sys/ofed/drivers/infiniband/ulp/sdp/sdp_cma.c
178
ssk->max_bufs = ntohs(h->bsdh.bufs);
sys/ofed/drivers/infiniband/ulp/sdp/sdp_cma.c
181
ssk->xmit_size_goal = ntohl(h->localrcvsz) - sizeof(struct sdp_bsdh);
sys/ofed/drivers/infiniband/ulp/sdp/sdp_cma.c
193
const struct sdp_hah *h;
sys/ofed/drivers/infiniband/ulp/sdp/sdp_cma.c
208
h = event->param.conn.private_data;
sys/ofed/drivers/infiniband/ulp/sdp/sdp_cma.c
209
SDP_DUMP_PACKET(sk, "RX", NULL, &h->bsdh);
sys/ofed/drivers/infiniband/ulp/sdp/sdp_cma.c
210
ssk->max_bufs = ntohs(h->bsdh.bufs);
sys/ofed/drivers/infiniband/ulp/sdp/sdp_cma.c
214
ntohl(h->actrcvsz) - sizeof(struct sdp_bsdh);
sys/ofed/drivers/infiniband/ulp/sdp/sdp_dbg.h
112
#define SDP_DUMP_PACKET(sk, str, mb, h) \
sys/ofed/drivers/infiniband/ulp/sdp/sdp_dbg.h
115
dump_packet(sk, str, mb, h); \
sys/ofed/drivers/infiniband/ulp/sdp/sdp_dbg.h
119
#define SDP_DUMP_PACKET(sk, str, mb, h)
sys/ofed/drivers/infiniband/ulp/sdp/sdp_dbg.h
162
struct mbuf *mb, const struct sdp_bsdh *h);
sys/ofed/drivers/infiniband/ulp/sdp/sdp_dbg.h
163
#define dump_packet(sk, str, mb, h) \
sys/ofed/drivers/infiniband/ulp/sdp/sdp_dbg.h
164
_dump_packet(__func__, __LINE__, sk, str, mb, h)
sys/ofed/drivers/infiniband/ulp/sdp/sdp_proc.c
208
static void sdpstats_seq_hist(struct seq_file *seq, char *str, u32 *h, int n,
sys/ofed/drivers/infiniband/ulp/sdp/sdp_proc.c
217
if (h[i] > max)
sys/ofed/drivers/infiniband/ulp/sdp/sdp_proc.c
218
max = h[i];
sys/ofed/drivers/infiniband/ulp/sdp/sdp_proc.c
228
int j = 50 * h[i] / max;
sys/ofed/drivers/infiniband/ulp/sdp/sdp_proc.c
233
seq_printf(seq, "%10d | %-50s - %d\n", val, s, h[i]);
sys/ofed/drivers/infiniband/ulp/sdp/sdp_proc.c
249
u32 *h = per_cpu(sdpstats, __i).hist; \
sys/ofed/drivers/infiniband/ulp/sdp/sdp_proc.c
251
sum[__j] += h[__j]; \
sys/ofed/drivers/infiniband/ulp/sdp/sdp_rx.c
108
struct sdp_bsdh *h;
sys/ofed/drivers/infiniband/ulp/sdp/sdp_rx.c
124
h = mtod(mb, struct sdp_bsdh *);
sys/ofed/drivers/infiniband/ulp/sdp/sdp_rx.c
205
struct sdp_bsdh *h;
sys/ofed/drivers/infiniband/ulp/sdp/sdp_rx.c
207
h = mtod(mb, struct sdp_bsdh *);
sys/ofed/drivers/infiniband/ulp/sdp/sdp_rx.c
211
if (h->mid == SDP_MID_SRCAVAIL) {
sys/ofed/drivers/infiniband/ulp/sdp/sdp_rx.c
212
struct sdp_srcah *srcah = (struct sdp_srcah *)(h+1);
sys/ofed/drivers/infiniband/ulp/sdp/sdp_rx.c
220
rx_sa->mseq = ntohl(h->mseq);
sys/ofed/drivers/infiniband/ulp/sdp/sdp_rx.c
245
if (unlikely(h->flags & SDP_OOB_PRES))
sys/ofed/drivers/infiniband/ulp/sdp/sdp_rx.c
327
struct sdp_bsdh *h;
sys/ofed/drivers/infiniband/ulp/sdp/sdp_rx.c
333
h = mtod(mb, struct sdp_bsdh *);
sys/ofed/drivers/infiniband/ulp/sdp/sdp_rx.c
334
switch (h->mid) {
sys/ofed/drivers/infiniband/ulp/sdp/sdp_rx.c
350
sdp_handle_sendsm(ssk, ntohl(h->mseq_ack));
sys/ofed/drivers/infiniband/ulp/sdp/sdp_rx.c
356
ssk->srcavail_cancel_mseq = ntohl(h->mseq);
sys/ofed/drivers/infiniband/ulp/sdp/sdp_rx.c
382
sdp_handle_resize_request(ssk, (struct sdp_chrecvbuf *)(h+1));
sys/ofed/drivers/infiniband/ulp/sdp/sdp_rx.c
386
sdp_handle_resize_ack(ssk, (struct sdp_chrecvbuf *)(h+1));
sys/ofed/drivers/infiniband/ulp/sdp/sdp_rx.c
390
sdp_warn(sk, "SDP: FIXME MID %d\n", h->mid);
sys/ofed/drivers/infiniband/ulp/sdp/sdp_rx.c
400
struct sdp_bsdh *h;
sys/ofed/drivers/infiniband/ulp/sdp/sdp_rx.c
404
h = mtod(mb, struct sdp_bsdh *);
sys/ofed/drivers/infiniband/ulp/sdp/sdp_rx.c
419
mseq_ack = ntohl(h->mseq_ack);
sys/ofed/drivers/infiniband/ulp/sdp/sdp_rx.c
422
1 + ntohs(h->bufs));
sys/ofed/drivers/infiniband/ulp/sdp/sdp_rx.c
427
mid2str(h->mid), ntohs(h->bufs), credits_before,
sys/ofed/drivers/infiniband/ulp/sdp/sdp_rx.c
428
tx_credits(ssk), ntohl(h->mseq), ntohl(h->mseq_ack));
sys/ofed/drivers/infiniband/ulp/sdp/sdp_rx.c
430
if (unlikely(h->mid == SDP_MID_DATA &&
sys/ofed/drivers/infiniband/ulp/sdp/sdp_rx.c
437
if ((h->mid != SDP_MID_DATA && h->mid != SDP_MID_SRCAVAIL) ||
sys/ofed/drivers/infiniband/ulp/sdp/sdp_rx.c
441
if (h->mid == SDP_MID_SRCAVAIL_CANCEL) {
sys/ofed/drivers/infiniband/ulp/sdp/sdp_rx.c
444
ntohl(h->mseq), ntohl(h->mseq_ack));
sys/ofed/drivers/infiniband/ulp/sdp/sdp_rx.c
445
ssk->srcavail_cancel_mseq = ntohl(h->mseq);
sys/ofed/drivers/infiniband/ulp/sdp/sdp_rx.c
449
if (h->mid == SDP_MID_RDMARDCOMPL) {
sys/ofed/drivers/infiniband/ulp/sdp/sdp_rx.c
450
struct sdp_rrch *rrch = (struct sdp_rrch *)(h+1);
sys/ofed/drivers/infiniband/ulp/sdp/sdp_rx.c
452
sdp_handle_rdma_read_compl(ssk, ntohl(h->mseq_ack),
sys/ofed/drivers/infiniband/ulp/sdp/sdp_rx.c
461
sdp_prf1(sk, NULL, "queueing %s mb\n", mid2str(h->mid));
sys/ofed/drivers/infiniband/ulp/sdp/sdp_rx.c
473
struct sdp_bsdh *h;
sys/ofed/drivers/infiniband/ulp/sdp/sdp_rx.c
504
h = mtod(mb, struct sdp_bsdh *);
sys/ofed/drivers/infiniband/ulp/sdp/sdp_rx.c
506
SDP_DUMP_PACKET(ssk->socket, "RX", mb, h);
sys/ofed/drivers/infiniband/ulp/sdp/sdp_rx.c
511
mseq = ntohl(h->mseq);
sys/ofed/drivers/infiniband/ulp/sdp/sdp_tx.c
107
h->flags = SDP_OOB_PRES | SDP_OOB_PEND;
sys/ofed/drivers/infiniband/ulp/sdp/sdp_tx.c
109
h->flags = 0;
sys/ofed/drivers/infiniband/ulp/sdp/sdp_tx.c
112
h->bufs = htons(rx_ring_posted(ssk));
sys/ofed/drivers/infiniband/ulp/sdp/sdp_tx.c
113
h->len = htonl(mb->m_pkthdr.len);
sys/ofed/drivers/infiniband/ulp/sdp/sdp_tx.c
114
h->mseq = htonl(mseq);
sys/ofed/drivers/infiniband/ulp/sdp/sdp_tx.c
115
h->mseq_ack = htonl(mseq_ack(ssk));
sys/ofed/drivers/infiniband/ulp/sdp/sdp_tx.c
118
mid2str(h->mid), rx_ring_posted(ssk), mseq,
sys/ofed/drivers/infiniband/ulp/sdp/sdp_tx.c
119
ntohl(h->mseq_ack));
sys/ofed/drivers/infiniband/ulp/sdp/sdp_tx.c
121
SDP_DUMP_PACKET(ssk->socket, "TX", mb, h);
sys/ofed/drivers/infiniband/ulp/sdp/sdp_tx.c
201
struct sdp_bsdh *h;
sys/ofed/drivers/infiniband/ulp/sdp/sdp_tx.c
217
h = mtod(mb, struct sdp_bsdh *);
sys/ofed/drivers/infiniband/ulp/sdp/sdp_tx.c
218
sdp_prf1(ssk->socket, mb, "tx completion. mseq:%d", ntohl(h->mseq));
sys/ofed/drivers/infiniband/ulp/sdp/sdp_tx.c
220
mb, mb->m_pkthdr.len, ntohl(h->mseq));
sys/ofed/drivers/infiniband/ulp/sdp/sdp_tx.c
69
struct sdp_bsdh *h;
sys/ofed/drivers/infiniband/ulp/sdp/sdp_tx.c
79
SDPSTATS_COUNTER_MID_INC(post_send, h->mid);
sys/ofed/drivers/infiniband/ulp/sdp/sdp_tx.c
88
h = mtod(mb, struct sdp_bsdh *);
sys/ofed/drivers/infiniband/ulp/sdp/sdp_tx.c
93
if (unlikely(h->mid == SDP_MID_SRCAVAIL)) {
sys/opencrypto/gfmult.c
59
gf128_genmultable(struct gf128 h, struct gf128table *t)
sys/opencrypto/gfmult.c
65
tbl[1] = h;
sys/opencrypto/gfmult.c
69
tbl[i + 1] = gf128_add(tbl[i], h);
sys/opencrypto/gfmult.c
84
gf128_genmultable4(struct gf128 h, struct gf128table4 *t)
sys/opencrypto/gfmult.c
88
gf128_genmultable(h, &t->tbls[0]);
sys/opencrypto/gfmult.c
90
h2 = gf128_mul(h, &t->tbls[0]);
sys/opencrypto/gfmult.c
94
h3 = gf128_mul(h, &t->tbls[1]);
sys/opencrypto/gfmult.h
117
void gf128_genmultable(struct gf128 h, struct gf128table *t);
sys/opencrypto/gfmult.h
118
void gf128_genmultable4(struct gf128 h, struct gf128table4 *t);
sys/opencrypto/gmac.c
49
struct gf128 h;
sys/opencrypto/gmac.c
57
h = gf128_read(hbuf);
sys/opencrypto/gmac.c
58
gf128_genmultable4(h, &agc->ghashtbl);
sys/opencrypto/gmac.c
60
explicit_bzero(&h, sizeof h);
sys/powerpc/include/asm.h
151
oris reg, reg, var@h; \
sys/powerpc/include/bus.h
264
#define __bs_rs(sz, t, h, o) \
sys/powerpc/include/bus.h
265
(*(t)->__bs_opname(r,sz))(h, o)
sys/powerpc/include/bus.h
266
#define __bs_ws(sz, t, h, o, v) \
sys/powerpc/include/bus.h
267
(*(t)->__bs_opname(w,sz))(h, o, v)
sys/powerpc/include/bus.h
268
#define __bs_nonsingle(type, sz, t, h, o, a, c) \
sys/powerpc/include/bus.h
269
(*(t)->__bs_opname(type,sz))(h, o, a, c)
sys/powerpc/include/bus.h
270
#define __bs_set(type, sz, t, h, o, v, c) \
sys/powerpc/include/bus.h
271
(*(t)->__bs_opname(type,sz))(h, o, v, c)
sys/powerpc/include/bus.h
279
#define bus_space_unmap(t, h, s) (*(t)->bs_unmap)(h, s)
sys/powerpc/include/bus.h
280
#define bus_space_subregion(t, h, o, s, hp) (*(t)->bs_subregion)(h, o, s, hp)
sys/powerpc/include/bus.h
287
#define bus_space_free(t, h, s) \
sys/powerpc/include/bus.h
288
(*(t)->bs_free)(h, s)
sys/powerpc/include/bus.h
293
#define bus_space_barrier(t, h, o, l, f) (*(t)->bs_barrier)(h, o, l, f)
sys/powerpc/include/bus.h
298
#define bus_space_read_1(t, h, o) __bs_rs(1,t,h,o)
sys/powerpc/include/bus.h
299
#define bus_space_read_2(t, h, o) __bs_rs(2,t,h,o)
sys/powerpc/include/bus.h
300
#define bus_space_read_4(t, h, o) __bs_rs(4,t,h,o)
sys/powerpc/include/bus.h
301
#define bus_space_read_8(t, h, o) __bs_rs(8,t,h,o)
sys/powerpc/include/bus.h
304
#define bus_space_read_stream_2(t, h, o) __bs_rs(s_2,t,h,o)
sys/powerpc/include/bus.h
305
#define bus_space_read_stream_4(t, h, o) __bs_rs(s_4,t,h,o)
sys/powerpc/include/bus.h
306
#define bus_space_read_stream_8(t, h, o) __bs_rs(s_8,t,h,o)
sys/powerpc/include/bus.h
311
#define bus_space_read_multi_1(t, h, o, a, c) \
sys/powerpc/include/bus.h
312
__bs_nonsingle(rm,1,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
313
#define bus_space_read_multi_2(t, h, o, a, c) \
sys/powerpc/include/bus.h
314
__bs_nonsingle(rm,2,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
315
#define bus_space_read_multi_4(t, h, o, a, c) \
sys/powerpc/include/bus.h
316
__bs_nonsingle(rm,4,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
317
#define bus_space_read_multi_8(t, h, o, a, c) \
sys/powerpc/include/bus.h
318
__bs_nonsingle(rm,8,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
321
#define bus_space_read_multi_stream_2(t, h, o, a, c) \
sys/powerpc/include/bus.h
322
__bs_nonsingle(rm,s_2,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
323
#define bus_space_read_multi_stream_4(t, h, o, a, c) \
sys/powerpc/include/bus.h
324
__bs_nonsingle(rm,s_4,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
325
#define bus_space_read_multi_stream_8(t, h, o, a, c) \
sys/powerpc/include/bus.h
326
__bs_nonsingle(rm,s_8,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
331
#define bus_space_read_region_1(t, h, o, a, c) \
sys/powerpc/include/bus.h
332
__bs_nonsingle(rr,1,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
333
#define bus_space_read_region_2(t, h, o, a, c) \
sys/powerpc/include/bus.h
334
__bs_nonsingle(rr,2,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
335
#define bus_space_read_region_4(t, h, o, a, c) \
sys/powerpc/include/bus.h
336
__bs_nonsingle(rr,4,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
337
#define bus_space_read_region_8(t, h, o, a, c) \
sys/powerpc/include/bus.h
338
__bs_nonsingle(rr,8,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
341
#define bus_space_read_region_stream_2(t, h, o, a, c) \
sys/powerpc/include/bus.h
342
__bs_nonsingle(rr,s_2,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
343
#define bus_space_read_region_stream_4(t, h, o, a, c) \
sys/powerpc/include/bus.h
344
__bs_nonsingle(rr,s_4,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
345
#define bus_space_read_region_stream_8(t, h, o, a, c) \
sys/powerpc/include/bus.h
346
__bs_nonsingle(rr,s_8,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
351
#define bus_space_write_1(t, h, o, v) __bs_ws(1,(t),(h),(o),(v))
sys/powerpc/include/bus.h
352
#define bus_space_write_2(t, h, o, v) __bs_ws(2,(t),(h),(o),(v))
sys/powerpc/include/bus.h
353
#define bus_space_write_4(t, h, o, v) __bs_ws(4,(t),(h),(o),(v))
sys/powerpc/include/bus.h
354
#define bus_space_write_8(t, h, o, v) __bs_ws(8,(t),(h),(o),(v))
sys/powerpc/include/bus.h
357
#define bus_space_write_stream_2(t, h, o, v) __bs_ws(s_2,(t),(h),(o),(v))
sys/powerpc/include/bus.h
358
#define bus_space_write_stream_4(t, h, o, v) __bs_ws(s_4,(t),(h),(o),(v))
sys/powerpc/include/bus.h
359
#define bus_space_write_stream_8(t, h, o, v) __bs_ws(s_8,(t),(h),(o),(v))
sys/powerpc/include/bus.h
364
#define bus_space_write_multi_1(t, h, o, a, c) \
sys/powerpc/include/bus.h
365
__bs_nonsingle(wm,1,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
366
#define bus_space_write_multi_2(t, h, o, a, c) \
sys/powerpc/include/bus.h
367
__bs_nonsingle(wm,2,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
368
#define bus_space_write_multi_4(t, h, o, a, c) \
sys/powerpc/include/bus.h
369
__bs_nonsingle(wm,4,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
370
#define bus_space_write_multi_8(t, h, o, a, c) \
sys/powerpc/include/bus.h
371
__bs_nonsingle(wm,8,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
374
#define bus_space_write_multi_stream_2(t, h, o, a, c) \
sys/powerpc/include/bus.h
375
__bs_nonsingle(wm,s_2,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
376
#define bus_space_write_multi_stream_4(t, h, o, a, c) \
sys/powerpc/include/bus.h
377
__bs_nonsingle(wm,s_4,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
378
#define bus_space_write_multi_stream_8(t, h, o, a, c) \
sys/powerpc/include/bus.h
379
__bs_nonsingle(wm,s_8,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
384
#define bus_space_write_region_1(t, h, o, a, c) \
sys/powerpc/include/bus.h
385
__bs_nonsingle(wr,1,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
386
#define bus_space_write_region_2(t, h, o, a, c) \
sys/powerpc/include/bus.h
387
__bs_nonsingle(wr,2,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
388
#define bus_space_write_region_4(t, h, o, a, c) \
sys/powerpc/include/bus.h
389
__bs_nonsingle(wr,4,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
390
#define bus_space_write_region_8(t, h, o, a, c) \
sys/powerpc/include/bus.h
391
__bs_nonsingle(wr,8,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
394
#define bus_space_write_region_stream_2(t, h, o, a, c) \
sys/powerpc/include/bus.h
395
__bs_nonsingle(wr,s_2,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
396
#define bus_space_write_region_stream_4(t, h, o, a, c) \
sys/powerpc/include/bus.h
397
__bs_nonsingle(wr,s_4,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
398
#define bus_space_write_region_stream_8(t, h, o, a, c) \
sys/powerpc/include/bus.h
399
__bs_nonsingle(wr,s_8,(t),(h),(o),(a),(c))
sys/powerpc/include/bus.h
404
#define bus_space_set_multi_1(t, h, o, v, c) \
sys/powerpc/include/bus.h
405
__bs_set(sm,1,(t),(h),(o),(v),(c))
sys/powerpc/include/bus.h
406
#define bus_space_set_multi_2(t, h, o, v, c) \
sys/powerpc/include/bus.h
407
__bs_set(sm,2,(t),(h),(o),(v),(c))
sys/powerpc/include/bus.h
408
#define bus_space_set_multi_4(t, h, o, v, c) \
sys/powerpc/include/bus.h
409
__bs_set(sm,4,(t),(h),(o),(v),(c))
sys/powerpc/include/bus.h
410
#define bus_space_set_multi_8(t, h, o, v, c) \
sys/powerpc/include/bus.h
411
__bs_set(sm,8,(t),(h),(o),(v),(c))
sys/powerpc/include/bus.h
414
#define bus_space_set_multi_stream_2(t, h, o, v, c) \
sys/powerpc/include/bus.h
415
__bs_set(sm,s_2,(t),(h),(o),(v),(c))
sys/powerpc/include/bus.h
416
#define bus_space_set_multi_stream_4(t, h, o, v, c) \
sys/powerpc/include/bus.h
417
__bs_set(sm,s_4,(t),(h),(o),(v),(c))
sys/powerpc/include/bus.h
418
#define bus_space_set_multi_stream_8(t, h, o, v, c) \
sys/powerpc/include/bus.h
419
__bs_set(sm,s_8,(t),(h),(o),(v),(c))
sys/powerpc/include/bus.h
424
#define bus_space_set_region_1(t, h, o, v, c) \
sys/powerpc/include/bus.h
425
__bs_set(sr,1,(t),(h),(o),(v),(c))
sys/powerpc/include/bus.h
426
#define bus_space_set_region_2(t, h, o, v, c) \
sys/powerpc/include/bus.h
427
__bs_set(sr,2,(t),(h),(o),(v),(c))
sys/powerpc/include/bus.h
428
#define bus_space_set_region_4(t, h, o, v, c) \
sys/powerpc/include/bus.h
429
__bs_set(sr,4,(t),(h),(o),(v),(c))
sys/powerpc/include/bus.h
430
#define bus_space_set_region_8(t, h, o, v, c) \
sys/powerpc/include/bus.h
431
__bs_set(sr,8,(t),(h),(o),(v),(c))
sys/powerpc/include/bus.h
434
#define bus_space_set_region_stream_2(t, h, o, v, c) \
sys/powerpc/include/bus.h
435
__bs_set(sr,s_2,(t),(h),(o),(v),(c))
sys/powerpc/include/bus.h
436
#define bus_space_set_region_stream_4(t, h, o, v, c) \
sys/powerpc/include/bus.h
437
__bs_set(sr,s_4,(t),(h),(o),(v),(c))
sys/powerpc/include/bus.h
438
#define bus_space_set_region_stream_8(t, h, o, v, c) \
sys/powerpc/include/bus.h
439
__bs_set(sr,s_8,(t),(h),(o),(v),(c))
sys/powerpc/include/bus.h
491
#include <machine/bus_dma.h>
sys/powerpc/mpc85xx/fsl_diu.c
339
int h, r, w;
sys/powerpc/mpc85xx/fsl_diu.c
378
if ((err = sscanf(vm_name, "%dx%d@%d", &w, &h, &r)) != 3) {
sys/powerpc/mpc85xx/fsl_diu.c
383
videomode = pick_mode_by_ref(w, h, r);
sys/powerpc/mpc85xx/fsl_diu.c
386
"Cannot find mode for %dx%d@%d", w, h, r);
sys/riscv/include/bus.h
262
#define __bs_rs(sz, t, h, o) \
sys/riscv/include/bus.h
263
(*(t)->__bs_opname(r,sz))((t)->bs_cookie, h, o)
sys/riscv/include/bus.h
264
#define __bs_ws(sz, t, h, o, v) \
sys/riscv/include/bus.h
265
(*(t)->__bs_opname(w,sz))((t)->bs_cookie, h, o, v)
sys/riscv/include/bus.h
266
#define __bs_nonsingle(type, sz, t, h, o, a, c) \
sys/riscv/include/bus.h
267
(*(t)->__bs_opname(type,sz))((t)->bs_cookie, h, o, a, c)
sys/riscv/include/bus.h
268
#define __bs_set(type, sz, t, h, o, v, c) \
sys/riscv/include/bus.h
269
(*(t)->__bs_opname(type,sz))((t)->bs_cookie, h, o, v, c)
sys/riscv/include/bus.h
274
#define __bs_rs_s(sz, t, h, o) \
sys/riscv/include/bus.h
275
(*(t)->__bs_opname_s(r,sz))((t)->bs_cookie, h, o)
sys/riscv/include/bus.h
276
#define __bs_ws_s(sz, t, h, o, v) \
sys/riscv/include/bus.h
277
(*(t)->__bs_opname_s(w,sz))((t)->bs_cookie, h, o, v)
sys/riscv/include/bus.h
278
#define __bs_nonsingle_s(type, sz, t, h, o, a, c) \
sys/riscv/include/bus.h
279
(*(t)->__bs_opname_s(type,sz))((t)->bs_cookie, h, o, a, c)
sys/riscv/include/bus.h
286
#define bus_space_unmap(t, h, s) \
sys/riscv/include/bus.h
287
(*(t)->bs_unmap)((t)->bs_cookie, (h), (s))
sys/riscv/include/bus.h
288
#define bus_space_subregion(t, h, o, s, hp) \
sys/riscv/include/bus.h
289
(*(t)->bs_subregion)((t)->bs_cookie, (h), (o), (s), (hp))
sys/riscv/include/bus.h
297
#define bus_space_free(t, h, s) \
sys/riscv/include/bus.h
298
(*(t)->bs_free)((t)->bs_cookie, (h), (s))
sys/riscv/include/bus.h
303
#define bus_space_barrier(t, h, o, l, f) \
sys/riscv/include/bus.h
304
(*(t)->bs_barrier)((t)->bs_cookie, (h), (o), (l), (f))
sys/riscv/include/bus.h
309
#define bus_space_read_1(t, h, o) __bs_rs(1,(t),(h),(o))
sys/riscv/include/bus.h
310
#define bus_space_read_2(t, h, o) __bs_rs(2,(t),(h),(o))
sys/riscv/include/bus.h
311
#define bus_space_read_4(t, h, o) __bs_rs(4,(t),(h),(o))
sys/riscv/include/bus.h
312
#define bus_space_read_8(t, h, o) __bs_rs(8,(t),(h),(o))
sys/riscv/include/bus.h
314
#define bus_space_read_stream_1(t, h, o) __bs_rs_s(1,(t), (h), (o))
sys/riscv/include/bus.h
315
#define bus_space_read_stream_2(t, h, o) __bs_rs_s(2,(t), (h), (o))
sys/riscv/include/bus.h
316
#define bus_space_read_stream_4(t, h, o) __bs_rs_s(4,(t), (h), (o))
sys/riscv/include/bus.h
317
#define bus_space_read_stream_8(t, h, o) __bs_rs_s(8,8,(t),(h),(o))
sys/riscv/include/bus.h
322
#define bus_space_read_multi_1(t, h, o, a, c) \
sys/riscv/include/bus.h
323
__bs_nonsingle(rm,1,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
324
#define bus_space_read_multi_2(t, h, o, a, c) \
sys/riscv/include/bus.h
325
__bs_nonsingle(rm,2,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
326
#define bus_space_read_multi_4(t, h, o, a, c) \
sys/riscv/include/bus.h
327
__bs_nonsingle(rm,4,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
328
#define bus_space_read_multi_8(t, h, o, a, c) \
sys/riscv/include/bus.h
329
__bs_nonsingle(rm,8,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
331
#define bus_space_read_multi_stream_1(t, h, o, a, c) \
sys/riscv/include/bus.h
332
__bs_nonsingle_s(rm,1,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
333
#define bus_space_read_multi_stream_2(t, h, o, a, c) \
sys/riscv/include/bus.h
334
__bs_nonsingle_s(rm,2,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
335
#define bus_space_read_multi_stream_4(t, h, o, a, c) \
sys/riscv/include/bus.h
336
__bs_nonsingle_s(rm,4,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
337
#define bus_space_read_multi_stream_8(t, h, o, a, c) \
sys/riscv/include/bus.h
338
__bs_nonsingle_s(rm,8,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
343
#define bus_space_read_region_1(t, h, o, a, c) \
sys/riscv/include/bus.h
344
__bs_nonsingle(rr,1,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
345
#define bus_space_read_region_2(t, h, o, a, c) \
sys/riscv/include/bus.h
346
__bs_nonsingle(rr,2,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
347
#define bus_space_read_region_4(t, h, o, a, c) \
sys/riscv/include/bus.h
348
__bs_nonsingle(rr,4,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
349
#define bus_space_read_region_8(t, h, o, a, c) \
sys/riscv/include/bus.h
350
__bs_nonsingle(rr,8,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
352
#define bus_space_read_region_stream_1(t, h, o, a, c) \
sys/riscv/include/bus.h
353
__bs_nonsingle_s(rr,1,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
354
#define bus_space_read_region_stream_2(t, h, o, a, c) \
sys/riscv/include/bus.h
355
__bs_nonsingle_s(rr,2,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
356
#define bus_space_read_region_stream_4(t, h, o, a, c) \
sys/riscv/include/bus.h
357
__bs_nonsingle_s(rr,4,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
358
#define bus_space_read_region_stream_8(t, h, o, a, c) \
sys/riscv/include/bus.h
359
__bs_nonsingle_s(rr,8,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
364
#define bus_space_write_1(t, h, o, v) __bs_ws(1,(t),(h),(o),(v))
sys/riscv/include/bus.h
365
#define bus_space_write_2(t, h, o, v) __bs_ws(2,(t),(h),(o),(v))
sys/riscv/include/bus.h
366
#define bus_space_write_4(t, h, o, v) __bs_ws(4,(t),(h),(o),(v))
sys/riscv/include/bus.h
367
#define bus_space_write_8(t, h, o, v) __bs_ws(8,(t),(h),(o),(v))
sys/riscv/include/bus.h
369
#define bus_space_write_stream_1(t, h, o, v) __bs_ws_s(1,(t),(h),(o),(v))
sys/riscv/include/bus.h
370
#define bus_space_write_stream_2(t, h, o, v) __bs_ws_s(2,(t),(h),(o),(v))
sys/riscv/include/bus.h
371
#define bus_space_write_stream_4(t, h, o, v) __bs_ws_s(4,(t),(h),(o),(v))
sys/riscv/include/bus.h
372
#define bus_space_write_stream_8(t, h, o, v) __bs_ws_s(8,(t),(h),(o),(v))
sys/riscv/include/bus.h
377
#define bus_space_write_multi_1(t, h, o, a, c) \
sys/riscv/include/bus.h
378
__bs_nonsingle(wm,1,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
379
#define bus_space_write_multi_2(t, h, o, a, c) \
sys/riscv/include/bus.h
380
__bs_nonsingle(wm,2,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
381
#define bus_space_write_multi_4(t, h, o, a, c) \
sys/riscv/include/bus.h
382
__bs_nonsingle(wm,4,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
383
#define bus_space_write_multi_8(t, h, o, a, c) \
sys/riscv/include/bus.h
384
__bs_nonsingle(wm,8,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
386
#define bus_space_write_multi_stream_1(t, h, o, a, c) \
sys/riscv/include/bus.h
387
__bs_nonsingle_s(wm,1,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
388
#define bus_space_write_multi_stream_2(t, h, o, a, c) \
sys/riscv/include/bus.h
389
__bs_nonsingle_s(wm,2,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
390
#define bus_space_write_multi_stream_4(t, h, o, a, c) \
sys/riscv/include/bus.h
391
__bs_nonsingle_s(wm,4,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
392
#define bus_space_write_multi_stream_8(t, h, o, a, c) \
sys/riscv/include/bus.h
393
__bs_nonsingle_s(wm,8,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
398
#define bus_space_write_region_1(t, h, o, a, c) \
sys/riscv/include/bus.h
399
__bs_nonsingle(wr,1,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
400
#define bus_space_write_region_2(t, h, o, a, c) \
sys/riscv/include/bus.h
401
__bs_nonsingle(wr,2,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
402
#define bus_space_write_region_4(t, h, o, a, c) \
sys/riscv/include/bus.h
403
__bs_nonsingle(wr,4,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
404
#define bus_space_write_region_8(t, h, o, a, c) \
sys/riscv/include/bus.h
405
__bs_nonsingle(wr,8,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
407
#define bus_space_write_region_stream_1(t, h, o, a, c) \
sys/riscv/include/bus.h
408
__bs_nonsingle_s(wr,1,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
409
#define bus_space_write_region_stream_2(t, h, o, a, c) \
sys/riscv/include/bus.h
410
__bs_nonsingle_s(wr,2,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
411
#define bus_space_write_region_stream_4(t, h, o, a, c) \
sys/riscv/include/bus.h
412
__bs_nonsingle_s(wr,4,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
413
#define bus_space_write_region_stream_8(t, h, o, a, c) \
sys/riscv/include/bus.h
414
__bs_nonsingle_s(wr,8,(t),(h),(o),(a),(c))
sys/riscv/include/bus.h
419
#define bus_space_set_multi_1(t, h, o, v, c) \
sys/riscv/include/bus.h
420
__bs_set(sm,1,(t),(h),(o),(v),(c))
sys/riscv/include/bus.h
421
#define bus_space_set_multi_2(t, h, o, v, c) \
sys/riscv/include/bus.h
422
__bs_set(sm,2,(t),(h),(o),(v),(c))
sys/riscv/include/bus.h
423
#define bus_space_set_multi_4(t, h, o, v, c) \
sys/riscv/include/bus.h
424
__bs_set(sm,4,(t),(h),(o),(v),(c))
sys/riscv/include/bus.h
425
#define bus_space_set_multi_8(t, h, o, v, c) \
sys/riscv/include/bus.h
426
__bs_set(sm,8,(t),(h),(o),(v),(c))
sys/riscv/include/bus.h
431
#define bus_space_set_region_1(t, h, o, v, c) \
sys/riscv/include/bus.h
432
__bs_set(sr,1,(t),(h),(o),(v),(c))
sys/riscv/include/bus.h
433
#define bus_space_set_region_2(t, h, o, v, c) \
sys/riscv/include/bus.h
434
__bs_set(sr,2,(t),(h),(o),(v),(c))
sys/riscv/include/bus.h
435
#define bus_space_set_region_4(t, h, o, v, c) \
sys/riscv/include/bus.h
436
__bs_set(sr,4,(t),(h),(o),(v),(c))
sys/riscv/include/bus.h
437
#define bus_space_set_region_8(t, h, o, v, c) \
sys/riscv/include/bus.h
438
__bs_set(sr,8,(t),(h),(o),(v),(c))
sys/riscv/include/bus.h
480
#include <machine/bus_dma.h>
sys/rpc/auth_unix.c
125
uint32_t h, th;
sys/rpc/auth_unix.c
152
h = HASHSTEP(HASHINIT, cred->cr_uid) % AUTH_UNIX_HASH_SIZE;
sys/rpc/auth_unix.c
156
TAILQ_FOREACH(au, &auth_unix_cache[h], au_link) {
sys/rpc/auth_unix.c
213
TAILQ_FOREACH(tau, &auth_unix_cache[h], au_link) {
sys/rpc/auth_unix.c
226
TAILQ_INSERT_TAIL(&auth_unix_cache[h], au, au_link);
sys/rpc/clnt_dg.c
802
clnt_dg_abort(CLIENT *h)
sys/rpc/clnt_rc.c
413
clnt_reconnect_abort(CLIENT *h)
sys/rpc/replay.c
112
struct rpc_msg *msg, struct sockaddr *addr, int h)
sys/rpc/replay.c
122
rce->rce_hash = h;
sys/rpc/replay.c
126
TAILQ_INSERT_HEAD(&rc->rc_cache[h], rce, rce_link);
sys/rpc/replay.c
177
int h = HASHSTEP(HASHINIT, msg->rm_xid) % REPLAY_HASH_SIZE;
sys/rpc/replay.c
181
TAILQ_FOREACH(rce, &rc->rc_cache[h], rce_link) {
sys/rpc/replay.c
217
rce = replay_alloc(rc, msg, addr, h);
sys/rpc/replay.c
231
int h = HASHSTEP(HASHINIT, repmsg->rm_xid) % REPLAY_HASH_SIZE;
sys/rpc/replay.c
241
TAILQ_FOREACH(rce, &rc->rc_cache[h], rce_link) {
sys/rpc/replay.c
56
struct sockaddr *addr, int h);
sys/rpc/rpcsec_gss/rpcsec_gss.c
178
uint32_t h;
sys/rpc/rpcsec_gss/rpcsec_gss.c
180
h = HASHSTEP(HASHINIT, cred->cr_uid);
sys/rpc/rpcsec_gss/rpcsec_gss.c
181
h = hash32_str(principal, h);
sys/rpc/rpcsec_gss/rpcsec_gss.c
182
h = hash32_buf(mech->elements, mech->length, h);
sys/rpc/rpcsec_gss/rpcsec_gss.c
183
h = HASHSTEP(h, (int) service);
sys/rpc/rpcsec_gss/rpcsec_gss.c
185
return (h % RPC_GSS_HASH_SIZE);
sys/rpc/rpcsec_gss/rpcsec_gss.c
196
uint32_t h, th;
sys/rpc/rpcsec_gss/rpcsec_gss.c
217
h = rpc_gss_hash(principal, mech_oid, cred, service);
sys/rpc/rpcsec_gss/rpcsec_gss.c
221
TAILQ_FOREACH(gd, &rpc_gss_cache[h], gd_link) {
sys/rpc/rpcsec_gss/rpcsec_gss.c
263
gd->gd_hash = h;
sys/rpc/rpcsec_gss/rpcsec_gss.c
266
TAILQ_FOREACH(tgd, &rpc_gss_cache[h], gd_link) {
sys/rpc/rpcsec_gss/rpcsec_gss.c
282
TAILQ_INSERT_TAIL(&rpc_gss_cache[h], gd, gd_link);
sys/rpc/rpcsec_gss/rpcsec_gss.c
293
uint32_t h;
sys/rpc/rpcsec_gss/rpcsec_gss.c
299
h = gd->gd_hash;
sys/rpc/rpcsec_gss/rpcsec_gss.c
300
TAILQ_REMOVE(&rpc_gss_cache[h], gd, gd_link);
sys/security/mac_veriexec/veriexec_metadata.c
208
struct veriexec_devhead *h;
sys/security/mac_veriexec/veriexec_metadata.c
219
mac_veriexec_print_db_head(sbp, fpdbs[i].h);
sys/sys/khelp.h
61
int khelp_register_helper(struct helper *h);
sys/sys/khelp.h
63
int khelp_deregister_helper(struct helper *h);
sys/sys/libkern.h
337
#if !defined(_KERNEL) && __has_include(<ssp/ssp.h>)
sys/sys/qmath.h
437
sizeof(q) == 2 ? Q_DEBUGFMT_(prefmt, postfmt, h, 4) : \
sys/sys/systm.h
511
void root_mount_hold_token(const char *identifier, struct root_hold_token *h);
sys/sys/systm.h
512
void root_mount_rel(struct root_hold_token *h);
sys/ufs/ffs/ffs_subr.c
1077
ffs_isblock(struct fs *fs, unsigned char *cp, ufs1_daddr_t h)
sys/ufs/ffs/ffs_subr.c
1083
return (cp[h] == 0xff);
sys/ufs/ffs/ffs_subr.c
1085
mask = 0x0f << ((h & 0x1) << 2);
sys/ufs/ffs/ffs_subr.c
1086
return ((cp[h >> 1] & mask) == mask);
sys/ufs/ffs/ffs_subr.c
1088
mask = 0x03 << ((h & 0x3) << 1);
sys/ufs/ffs/ffs_subr.c
1089
return ((cp[h >> 2] & mask) == mask);
sys/ufs/ffs/ffs_subr.c
1091
mask = 0x01 << (h & 0x7);
sys/ufs/ffs/ffs_subr.c
1092
return ((cp[h >> 3] & mask) == mask);
sys/ufs/ffs/ffs_subr.c
1106
ffs_isfreeblock(struct fs *fs, uint8_t *cp, ufs1_daddr_t h)
sys/ufs/ffs/ffs_subr.c
1111
return (cp[h] == 0);
sys/ufs/ffs/ffs_subr.c
1113
return ((cp[h >> 1] & (0x0f << ((h & 0x1) << 2))) == 0);
sys/ufs/ffs/ffs_subr.c
1115
return ((cp[h >> 2] & (0x03 << ((h & 0x3) << 1))) == 0);
sys/ufs/ffs/ffs_subr.c
1117
return ((cp[h >> 3] & (0x01 << (h & 0x7))) == 0);
sys/ufs/ffs/ffs_subr.c
1131
ffs_clrblock(struct fs *fs, uint8_t *cp, ufs1_daddr_t h)
sys/ufs/ffs/ffs_subr.c
1136
cp[h] = 0;
sys/ufs/ffs/ffs_subr.c
1139
cp[h >> 1] &= ~(0x0f << ((h & 0x1) << 2));
sys/ufs/ffs/ffs_subr.c
1142
cp[h >> 2] &= ~(0x03 << ((h & 0x3) << 1));
sys/ufs/ffs/ffs_subr.c
1145
cp[h >> 3] &= ~(0x01 << (h & 0x7));
sys/ufs/ffs/ffs_subr.c
1159
ffs_setblock(struct fs *fs, unsigned char *cp, ufs1_daddr_t h)
sys/ufs/ffs/ffs_subr.c
1164
cp[h] = 0xff;
sys/ufs/ffs/ffs_subr.c
1167
cp[h >> 1] |= (0x0f << ((h & 0x1) << 2));
sys/ufs/ffs/ffs_subr.c
1170
cp[h >> 2] |= (0x03 << ((h & 0x3) << 1));
sys/ufs/ffs/ffs_subr.c
1173
cp[h >> 3] |= (0x01 << (h & 0x7));
sys/vm/uma_int.h
207
#define UMA_HASH(h, s) ((((uintptr_t)s) >> UMA_SLAB_SHIFT) & (h)->uh_hashmask)
sys/vm/uma_int.h
209
#define UMA_HASH_INSERT(h, s, mem) \
sys/vm/uma_int.h
210
LIST_INSERT_HEAD(&(h)->uh_slab_hash[UMA_HASH((h), \
sys/vm/uma_int.h
213
#define UMA_HASH_REMOVE(h, s) \
sys/x86/include/bus.h
1000
bus_space_write_1((t), (h), (o), (v))
sys/x86/include/bus.h
1001
#define bus_space_write_stream_2(t, h, o, v) \
sys/x86/include/bus.h
1002
bus_space_write_2((t), (h), (o), (v))
sys/x86/include/bus.h
1003
#define bus_space_write_stream_4(t, h, o, v) \
sys/x86/include/bus.h
1004
bus_space_write_4((t), (h), (o), (v))
sys/x86/include/bus.h
1006
#define bus_space_write_multi_stream_1(t, h, o, a, c) \
sys/x86/include/bus.h
1007
bus_space_write_multi_1((t), (h), (o), (a), (c))
sys/x86/include/bus.h
1008
#define bus_space_write_multi_stream_2(t, h, o, a, c) \
sys/x86/include/bus.h
1009
bus_space_write_multi_2((t), (h), (o), (a), (c))
sys/x86/include/bus.h
1010
#define bus_space_write_multi_stream_4(t, h, o, a, c) \
sys/x86/include/bus.h
1011
bus_space_write_multi_4((t), (h), (o), (a), (c))
sys/x86/include/bus.h
1013
#define bus_space_set_multi_stream_1(t, h, o, v, c) \
sys/x86/include/bus.h
1014
bus_space_set_multi_1((t), (h), (o), (v), (c))
sys/x86/include/bus.h
1015
#define bus_space_set_multi_stream_2(t, h, o, v, c) \
sys/x86/include/bus.h
1016
bus_space_set_multi_2((t), (h), (o), (v), (c))
sys/x86/include/bus.h
1017
#define bus_space_set_multi_stream_4(t, h, o, v, c) \
sys/x86/include/bus.h
1018
bus_space_set_multi_4((t), (h), (o), (v), (c))
sys/x86/include/bus.h
1020
#define bus_space_read_region_stream_1(t, h, o, a, c) \
sys/x86/include/bus.h
1021
bus_space_read_region_1((t), (h), (o), (a), (c))
sys/x86/include/bus.h
1022
#define bus_space_read_region_stream_2(t, h, o, a, c) \
sys/x86/include/bus.h
1023
bus_space_read_region_2((t), (h), (o), (a), (c))
sys/x86/include/bus.h
1024
#define bus_space_read_region_stream_4(t, h, o, a, c) \
sys/x86/include/bus.h
1025
bus_space_read_region_4((t), (h), (o), (a), (c))
sys/x86/include/bus.h
1027
#define bus_space_write_region_stream_1(t, h, o, a, c) \
sys/x86/include/bus.h
1028
bus_space_write_region_1((t), (h), (o), (a), (c))
sys/x86/include/bus.h
1029
#define bus_space_write_region_stream_2(t, h, o, a, c) \
sys/x86/include/bus.h
1030
bus_space_write_region_2((t), (h), (o), (a), (c))
sys/x86/include/bus.h
1031
#define bus_space_write_region_stream_4(t, h, o, a, c) \
sys/x86/include/bus.h
1032
bus_space_write_region_4((t), (h), (o), (a), (c))
sys/x86/include/bus.h
1034
#define bus_space_set_region_stream_1(t, h, o, v, c) \
sys/x86/include/bus.h
1035
bus_space_set_region_1((t), (h), (o), (v), (c))
sys/x86/include/bus.h
1036
#define bus_space_set_region_stream_2(t, h, o, v, c) \
sys/x86/include/bus.h
1037
bus_space_set_region_2((t), (h), (o), (v), (c))
sys/x86/include/bus.h
1038
#define bus_space_set_region_stream_4(t, h, o, v, c) \
sys/x86/include/bus.h
1039
bus_space_set_region_4((t), (h), (o), (v), (c))
sys/x86/include/bus.h
580
#define bus_space_write_multi_8(t, h, o, a, c) \
sys/x86/include/bus.h
988
#define bus_space_read_stream_1(t, h, o) bus_space_read_1((t), (h), (o))
sys/x86/include/bus.h
989
#define bus_space_read_stream_2(t, h, o) bus_space_read_2((t), (h), (o))
sys/x86/include/bus.h
990
#define bus_space_read_stream_4(t, h, o) bus_space_read_4((t), (h), (o))
sys/x86/include/bus.h
992
#define bus_space_read_multi_stream_1(t, h, o, a, c) \
sys/x86/include/bus.h
993
bus_space_read_multi_1((t), (h), (o), (a), (c))
sys/x86/include/bus.h
994
#define bus_space_read_multi_stream_2(t, h, o, a, c) \
sys/x86/include/bus.h
995
bus_space_read_multi_2((t), (h), (o), (a), (c))
sys/x86/include/bus.h
996
#define bus_space_read_multi_stream_4(t, h, o, a, c) \
sys/x86/include/bus.h
997
bus_space_read_multi_4((t), (h), (o), (a), (c))
sys/x86/include/bus.h
999
#define bus_space_write_stream_1(t, h, o, v) \
tests/sys/net/bpf/pcap-test.c
144
inject_packet(u_char *user, const struct pcap_pkthdr *h, const u_char *bytes)
tests/sys/net/bpf/pcap-test.c
148
if (h->caplen != h->len)
tests/sys/net/bpf/pcap-test.c
149
errx(1, "incomplete packet %u of %u", h->caplen, h->len);
tests/sys/net/bpf/pcap-test.c
151
if (pcap_inject(p, bytes, h->caplen) != (int)h->caplen)
tests/sys/net/bpf/pcap-test.c
182
store_packet(u_char *user, const struct pcap_pkthdr *h, const u_char *bytes)
tests/sys/net/bpf/pcap-test.c
189
p->caplen = h->caplen;
tests/sys/net/bpf/pcap-test.c
190
p->len = h->len;
tests/sys/netgraph/util.c
105
struct ngm_rmhook h;
tests/sys/netgraph/util.c
107
strncpy(h.ourhook, hook, sizeof(h.ourhook));
tests/sys/netgraph/util.c
111
&h, sizeof(h)));
tests/sys/netgraph/util.h
60
#define ng_rmhook(p,h) \
tests/sys/netgraph/util.h
61
_ng_rmhook(p,h,__FILE__,__LINE__)
tests/sys/netgraph/util.h
75
#define ng_send_data(h,d,l) \
tests/sys/netgraph/util.h
76
_ng_send_data(h,d,l,__FILE__,__LINE__)
tools/build/cross-build/include/common/libutil.h
38
#if __has_include_next(<libutil.h>)
tools/build/cross-build/include/common/machine/endian.h
36
#if __has_include_next(<machine/endian.h>)
tools/build/cross-build/include/common/netconfig.h
39
#if __has_include_next(<netconfig.h>)
tools/build/cross-build/include/common/sys/_null.h
38
#if __has_include_next(<sys/_null.h>)
tools/build/cross-build/include/common/sys/_types.h
38
#if __has_include_next(<sys/_types.h>)
tools/build/cross-build/include/common/sys/cdefs.h
38
#if __has_include_next(<sys/cdefs.h>)
tools/build/cross-build/include/common/sys/limits.h
37
#if __has_include_next(<sys/limits.h>)
tools/build/cross-build/include/common/sys/stdint.h
37
#if defined(__has_include_next) && __has_include_next(<sys/stdint.h>)
tools/build/cross-build/include/common/sys/types.h
45
#if __has_include(<sys/sysmacros.h>)
tools/build/cross-build/include/linux/limits.h
36
#if __has_include_next(<limits.h>)
tools/build/cross-build/include/linux/limits.h
40
#if __has_include(<linux/limits.h>)
tools/build/cross-build/include/linux/sys/endian.h
38
#if __has_include_next(<sys/endian.h>)
tools/build/cross-build/include/linux/sys/endian.h
42
#if __has_include(<endian.h>)
tools/build/cross-build/include/mac/libutil.h
42
#if __has_include_next(<libutil.h>)
tools/tools/ath/athrd/athrd.c
1033
ahp.h.ah_getCapability = getCapability;
tools/tools/ath/athrd/athrd.c
1164
if (ath_hal_getchannels(&ahp.h, gchans, IEEE80211_CHAN_MAX, &ng,
tools/tools/ath/athrd/athrd.c
1166
calctxpower(&ahp.h, ng, gchans, tpcReduction, powerLimit, gtxpow);
tools/tools/ath/athrd/athrd.c
1175
if (ath_hal_getchannels(&ahp.h, bchans, IEEE80211_CHAN_MAX, &nb,
tools/tools/ath/athrd/athrd.c
1177
calctxpower(&ahp.h, nb, bchans, tpcReduction, powerLimit, btxpow);
tools/tools/ath/athrd/athrd.c
1186
if (ath_hal_getchannels(&ahp.h, achans, IEEE80211_CHAN_MAX, &na,
tools/tools/ath/athrd/athrd.c
1188
calctxpower(&ahp.h, na, achans, tpcReduction, powerLimit, atxpow);
tools/tools/ath/athrd/athrd.c
1197
if (ath_hal_getchannels(&ahp.h, tchans, IEEE80211_CHAN_MAX, &nt,
tools/tools/ath/athrd/athrd.c
1199
calctxpower(&ahp.h, nt, tchans, tpcReduction, powerLimit, ttxpow);
tools/tools/ath/athrd/athrd.c
1208
if (ath_hal_getchannels(&ahp.h, tgchans, IEEE80211_CHAN_MAX, &ntg,
tools/tools/ath/athrd/athrd.c
1210
calctxpower(&ahp.h, ntg, tgchans, tpcReduction, powerLimit, tgtxpow);
tools/tools/ath/athrd/athrd.c
1219
if (ath_hal_getchannels(&ahp.h, nchans, IEEE80211_CHAN_MAX, &nn,
tools/tools/ath/athrd/athrd.c
1221
calctxpower(&ahp.h, nn, nchans, tpcReduction, powerLimit, ntxpow);
tools/tools/ath/athrd/athrd.c
1255
dumpchannels(&ahp.h, ng, gchans, gtxpow);
tools/tools/ath/athrd/athrd.c
1257
dumpchannels(&ahp.h, nb, bchans, btxpow);
tools/tools/ath/athrd/athrd.c
1259
dumpchannels(&ahp.h, na, achans, atxpow);
tools/tools/ath/athrd/athrd.c
1261
dumpchannels(&ahp.h, ntg, tgchans, tgtxpow);
tools/tools/ath/athrd/athrd.c
1263
dumpchannels(&ahp.h, nt, tchans, ttxpow);
tools/tools/ath/athrd/athrd.c
1265
dumpchannels(&ahp.h, nn, nchans, ntxpow);
tools/tools/net80211/wesside/wesside/wesside.c
1158
struct arphdr* h;
tools/tools/net80211/wesside/wesside/wesside.c
1168
h = (struct arphdr*)ptr;
tools/tools/net80211/wesside/wesside/wesside.c
1169
h->ar_hrd = htons(ARPHRD_ETHER);
tools/tools/net80211/wesside/wesside/wesside.c
1170
h->ar_pro = htons(ETHERTYPE_IP);
tools/tools/net80211/wesside/wesside/wesside.c
1171
h->ar_hln = 6;
tools/tools/net80211/wesside/wesside/wesside.c
1172
h->ar_pln = 4;
tools/tools/net80211/wesside/wesside/wesside.c
1173
h->ar_op = htons(ARPOP_REQUEST);
tools/tools/net80211/wesside/wesside/wesside.c
1174
ptr += sizeof(*h);
tools/tools/net80211/wesside/wesside/wesside.c
1660
struct arphdr* h;
tools/tools/net80211/wesside/wesside/wesside.c
1665
h = (struct arphdr*) buf;
tools/tools/net80211/wesside/wesside/wesside.c
1667
memset(h, 0, sizeof(*h));
tools/tools/net80211/wesside/wesside/wesside.c
1669
h->ar_hrd = htons(ARPHRD_ETHER);
tools/tools/net80211/wesside/wesside/wesside.c
1670
h->ar_pro = htons(ETHERTYPE_IP);
tools/tools/net80211/wesside/wesside/wesside.c
1671
h->ar_hln = 6;
tools/tools/net80211/wesside/wesside/wesside.c
1672
h->ar_pln = 4;
tools/tools/net80211/wesside/wesside/wesside.c
1673
h->ar_op = htons(op);
tools/tools/net80211/wesside/wesside/wesside.c
1675
data = (unsigned char*) h + sizeof(*h);
tools/tools/net80211/wesside/wesside/wesside.c
768
struct llc* h = (struct llc*) buf;
tools/tools/net80211/wesside/wesside/wesside.c
770
memset(h, 0, sizeof(*h));
tools/tools/net80211/wesside/wesside/wesside.c
771
h->llc_dsap = LLC_SNAP_LSAP;
tools/tools/net80211/wesside/wesside/wesside.c
772
h->llc_ssap = LLC_SNAP_LSAP;
tools/tools/net80211/wesside/wesside/wesside.c
773
h->llc_un.type_snap.control = 3;
tools/tools/net80211/wesside/wesside/wesside.c
774
h->llc_un.type_snap.ether_type = htons(type);
tools/tools/netmap/lb.c
476
struct group_des *h = &groups[j];
tools/tools/netmap/lb.c
477
if (!strcmp(h->pipename, g->pipename))
tools/tools/netmap/lb.c
478
g->first_id += h->nports;
tools/tools/netmap/pkt-gen.c
1880
receive_pcap(u_char *user, const struct pcap_pkthdr * h,
tools/tools/netmap/pkt-gen.c
1885
ctr->bytes += h->len;
usr.bin/calendar/sunpos.c
190
#define HOUR(h) ((h) / 4)
usr.bin/calendar/sunpos.c
191
#define MIN(h) (15 * ((h) % 4))
usr.bin/calendar/sunpos.c
192
#define SEC(h) 0
usr.bin/calendar/sunpos.c
215
int h, d, prevangle, angle;
usr.bin/calendar/sunpos.c
312
for (h = 0; h < 4 * HOURSPERDAY; h++) {
usr.bin/calendar/sunpos.c
313
sunpos(year, 6, d, UTCoffset, HOUR(h), MIN(h), SEC(h),
usr.bin/calendar/sunpos.c
318
DEBUG2(year, 6, d, HOUR(h), MIN(h),
usr.bin/calendar/sunpos.c
322
((h / 4.0) / 24.0);
usr.bin/calendar/sunpos.c
342
for (h = 0; h < 4 * HOURSPERDAY; h++) {
usr.bin/calendar/sunpos.c
343
sunpos(year, 12, d, UTCoffset, HOUR(h), MIN(h), SEC(h),
usr.bin/calendar/sunpos.c
348
DEBUG2(year, 12, d, HOUR(h), MIN(h),
usr.bin/calendar/sunpos.c
352
((h / 4.0) / 24.0);
usr.bin/calendar/sunpos.c
369
int m, d, h;
usr.bin/calendar/sunpos.c
379
h = 0;
usr.bin/calendar/sunpos.c
382
HOUR(h), MIN(h), SEC(h), 0.0, 0.0, &prevL, &dec);
usr.bin/calendar/sunpos.c
386
for (h = 0; h < 4 * HOURSPERDAY; h++) {
usr.bin/calendar/sunpos.c
389
HOUR(h), MIN(h), SEC(h),
usr.bin/calendar/sunpos.c
395
year, m, d, HOUR(h), MIN(h), *pichinesemonths, curL);
usr.bin/calendar/sunpos.c
405
year, m, d, HOUR(h), MIN(h), *pichinesemonths, curL);
usr.bin/diff/diffreg.c
559
unsigned h;
usr.bin/diff/diffreg.c
570
while ((r = readhash(fd, flags, &h)) != RH_EOF) {
usr.bin/diff/diffreg.c
579
p[++j].value = h;
usr.bin/dtc/fdt.cc
1857
dtb::header h;
usr.bin/dtc/fdt.cc
1858
valid = h.read_dtb(input);
usr.bin/dtc/fdt.cc
1859
boot_cpu = h.boot_cpuid_phys;
usr.bin/dtc/fdt.cc
1860
if (h.last_comp_version > 17)
usr.bin/dtc/fdt.cc
1870
input.buffer_from_offset(h.off_mem_rsvmap, 0);
usr.bin/dtc/fdt.cc
1887
input.buffer_from_offset(h.off_dt_struct, h.size_dt_struct);
usr.bin/dtc/fdt.cc
1889
input.buffer_from_offset(h.off_dt_strings, h.size_dt_strings);
usr.bin/gprof/elf.c
57
Elf_Ehdr h;
usr.bin/gprof/elf.c
71
if (read(fd, &h, sizeof h) != sizeof h || !IS_ELF(h)) {
usr.bin/gprof/elf.c
83
shdrs = (const Elf_Shdr *)(base + h.e_shoff);
usr.bin/gprof/elf.c
86
for (i = 1; i < h.e_shnum; i++)
usr.bin/gprof/elf.c
89
if (i == h.e_shnum)
usr.bin/lastcomm/lastcomm.c
47
/*XXX*/#include <inttypes.h>
usr.bin/mail/cmd2.c
456
int h;
usr.bin/mail/cmd2.c
464
h = hash(field);
usr.bin/mail/cmd2.c
469
igp->i_link = tab->i_head[h];
usr.bin/mail/cmd2.c
470
tab->i_head[h] = igp;
usr.bin/mail/cmd2.c
482
int h;
usr.bin/mail/cmd2.c
492
for (h = 0; h < HSHSIZE; h++)
usr.bin/mail/cmd2.c
493
for (igp = tab->i_head[h]; igp != NULL; igp = igp->i_link)
usr.bin/mail/cmd3.c
359
int errs, h, s;
usr.bin/mail/cmd3.c
362
for (h = 0, s = 1; h < HSHSIZE; h++)
usr.bin/mail/cmd3.c
363
for (vp = variables[h]; vp != NULL; vp = vp->v_link)
usr.bin/mail/cmd3.c
366
for (h = 0, p = ap; h < HSHSIZE; h++)
usr.bin/mail/cmd3.c
367
for (vp = variables[h]; vp != NULL; vp = vp->v_link)
usr.bin/mail/cmd3.c
404
int errs, h;
usr.bin/mail/cmd3.c
418
h = hash(*ap);
usr.bin/mail/cmd3.c
419
if (vp2 == variables[h]) {
usr.bin/mail/cmd3.c
420
variables[h] = variables[h]->v_link;
usr.bin/mail/cmd3.c
426
for (vp = variables[h]; vp->v_link != vp2; vp = vp->v_link)
usr.bin/mail/cmd3.c
446
int h, s;
usr.bin/mail/cmd3.c
449
for (h = 0, s = 1; h < HSHSIZE; h++)
usr.bin/mail/cmd3.c
450
for (gh = groups[h]; gh != NULL; gh = gh->g_link)
usr.bin/mail/cmd3.c
453
for (h = 0, p = ap; h < HSHSIZE; h++)
usr.bin/mail/cmd3.c
454
for (gh = groups[h]; gh != NULL; gh = gh->g_link)
usr.bin/mail/cmd3.c
467
h = hash(gname);
usr.bin/mail/cmd3.c
473
gh->g_link = groups[h];
usr.bin/mail/cmd3.c
474
groups[h] = gh;
usr.bin/mail/vars.c
168
int h = 0;
usr.bin/mail/vars.c
171
h <<= 2;
usr.bin/mail/vars.c
172
h += *name++;
usr.bin/mail/vars.c
174
if (h < 0 && (h = -h) < 0)
usr.bin/mail/vars.c
175
h = 0;
usr.bin/mail/vars.c
176
return (h % HSHSIZE);
usr.bin/mail/vars.c
48
int h;
usr.bin/mail/vars.c
50
h = hash(name);
usr.bin/mail/vars.c
56
vp->v_link = variables[h];
usr.bin/mail/vars.c
57
variables[h] = vp;
usr.bin/mkuzip/mkuz_blockcache.c
100
unsigned char h;
usr.bin/mkuzip/mkuz_blockcache.c
105
h = digest_fold(bp->info.digest);
usr.bin/mkuzip/mkuz_blockcache.c
106
if (blkcache.first[h].hit.len == 0) {
usr.bin/mkuzip/mkuz_blockcache.c
107
bcep = &blkcache.first[h];
usr.bin/mkuzip/mkuz_blockcache.c
109
for (bcep = &blkcache.first[h]; bcep != NULL; bcep = bcep->next) {
usr.bin/mkuzip/mkuz_blockcache.c
141
bcep->next = blkcache.first[h].next;
usr.bin/mkuzip/mkuz_blockcache.c
142
blkcache.first[h].next = bcep;
usr.bin/patch/pch.c
247
char *t, *h;
usr.bin/patch/pch.c
254
for (t = str, h = NULL; *t != '\0' && !isspace((unsigned char)*t); t++)
usr.bin/patch/pch.c
256
h = t;
usr.bin/patch/pch.c
257
if (h != NULL)
usr.bin/patch/pch.c
258
*h = '\0';
usr.bin/ruptime/ruptime.c
50
#define LEFTEARTH(h) (now - (h) > 4*24*60*60)
usr.bin/ruptime/ruptime.c
51
#define ISDOWN(h) (now - (h)->hs_wd.wd_recvtime > 11 * 60)
usr.bin/sed/compile.c
1013
u_int h, c;
usr.bin/sed/compile.c
1015
for (h = 0, p = (u_char *)cp->t; (c = *p) != 0; p++)
usr.bin/sed/compile.c
1016
h = (h << 5) + h + c;
usr.bin/sed/compile.c
1017
lhp = &labels[h & LHMASK];
usr.bin/sed/compile.c
1019
if (lh->lh_hash == h && strcmp(cp->t, lh->lh_cmd->t) == 0)
usr.bin/sed/compile.c
1024
lh->lh_hash = h;
usr.bin/sed/compile.c
1039
u_int h, c;
usr.bin/sed/compile.c
1041
for (h = 0, p = (u_char *)name; (c = *p) != 0; p++)
usr.bin/sed/compile.c
1042
h = (h << 5) + h + c;
usr.bin/sed/compile.c
1043
for (lh = labels[h & LHMASK]; lh != NULL; lh = lh->lh_next) {
usr.bin/sed/compile.c
1044
if (lh->lh_hash == h && strcmp(name, lh->lh_cmd->t) == 0) {
usr.bin/usbhidaction/usbhidaction.c
285
struct hid_item h;
usr.bin/usbhidaction/usbhidaction.c
370
hid_get_item(d, &h); ) {
usr.bin/usbhidaction/usbhidaction.c
372
printf("kind=%d usage=%x\n", h.kind, h.usage);
usr.bin/usbhidaction/usbhidaction.c
373
if (h.flags & HIO_CONST)
usr.bin/usbhidaction/usbhidaction.c
375
switch (h.kind) {
usr.bin/usbhidaction/usbhidaction.c
377
if (h.usage_minimum != 0 ||
usr.bin/usbhidaction/usbhidaction.c
378
h.usage_maximum != 0) {
usr.bin/usbhidaction/usbhidaction.c
379
lo = h.usage_minimum;
usr.bin/usbhidaction/usbhidaction.c
380
hi = h.usage_maximum;
usr.bin/usbhidaction/usbhidaction.c
383
lo = h.usage;
usr.bin/usbhidaction/usbhidaction.c
384
hi = h.usage;
usr.bin/usbhidaction/usbhidaction.c
416
hid_usage_page(HID_PAGE(h.usage)),
usr.bin/usbhidaction/usbhidaction.c
417
hid_usage_in_page(h.usage));
usr.bin/usbhidaction/usbhidaction.c
446
cmd->item = h;
usr.bin/usbhidctl/usbhid.c
100
if ((h.kind != hid_input && h.kind != hid_output &&
usr.bin/usbhidctl/usbhid.c
101
h.kind != hid_feature) || (h.flags & HIO_CONST))
usr.bin/usbhidctl/usbhid.c
107
hid_usage_page(HID_PAGE(h.usage)),
usr.bin/usbhidctl/usbhid.c
108
hid_usage_in_page(h.usage));
usr.bin/usbhidctl/usbhid.c
109
var->h = h;
usr.bin/usbhidctl/usbhid.c
138
hid_get_item(d, &h); ) {
usr.bin/usbhidctl/usbhid.c
139
if (h.kind == hid_collection) {
usr.bin/usbhidctl/usbhid.c
142
hid_usage_page(HID_PAGE(h.usage)),
usr.bin/usbhidctl/usbhid.c
143
hid_usage_in_page(h.usage));
usr.bin/usbhidctl/usbhid.c
144
} else if (h.kind == hid_endcollection) {
usr.bin/usbhidctl/usbhid.c
154
if ((h.kind != hid_input && h.kind != hid_output &&
usr.bin/usbhidctl/usbhid.c
155
h.kind != hid_feature) || (h.flags & HIO_CONST))
usr.bin/usbhidctl/usbhid.c
159
hid_usage_page(HID_PAGE(h.usage)),
usr.bin/usbhidctl/usbhid.c
160
hid_usage_in_page(h.usage));
usr.bin/usbhidctl/usbhid.c
171
var->h = h;
usr.bin/usbhidctl/usbhid.c
175
if (var->h.usage == 0)
usr.bin/usbhidctl/usbhid.c
200
dumpitem(const char *label, struct hid_item *h)
usr.bin/usbhidctl/usbhid.c
202
if ((h->flags & HIO_CONST) && !verbose)
usr.bin/usbhidctl/usbhid.c
205
h->report_ID, h->pos, h->report_size, h->report_count,
usr.bin/usbhidctl/usbhid.c
206
hid_usage_page(HID_PAGE(h->usage)),
usr.bin/usbhidctl/usbhid.c
207
hid_usage_in_page(h->usage),
usr.bin/usbhidctl/usbhid.c
208
h->flags & HIO_CONST ? " Const" : "",
usr.bin/usbhidctl/usbhid.c
209
h->flags & HIO_VARIABLE ? "" : " Array");
usr.bin/usbhidctl/usbhid.c
211
h->logical_minimum, h->logical_maximum);
usr.bin/usbhidctl/usbhid.c
212
if (h->physical_minimum != h->physical_maximum)
usr.bin/usbhidctl/usbhid.c
214
h->physical_minimum, h->physical_maximum);
usr.bin/usbhidctl/usbhid.c
215
if (h->unit)
usr.bin/usbhidctl/usbhid.c
216
printf(", unit=0x%02x exp=%d", h->unit, h->unit_exponent);
usr.bin/usbhidctl/usbhid.c
242
struct hid_item h;
usr.bin/usbhidctl/usbhid.c
245
for (d = hid_start_parse(r, ~0, -1); hid_get_item(d, &h); ) {
usr.bin/usbhidctl/usbhid.c
246
switch (h.kind) {
usr.bin/usbhidctl/usbhid.c
249
hid_collection_type(h.collection),
usr.bin/usbhidctl/usbhid.c
250
hid_usage_page(HID_PAGE(h.usage)),
usr.bin/usbhidctl/usbhid.c
251
hid_usage_in_page(h.usage));
usr.bin/usbhidctl/usbhid.c
257
dumpitem("Input ", &h);
usr.bin/usbhidctl/usbhid.c
260
dumpitem("Output ", &h);
usr.bin/usbhidctl/usbhid.c
263
dumpitem("Feature", &h);
usr.bin/usbhidctl/usbhid.c
279
prdata(u_char *buf, struct hid_item *h)
usr.bin/usbhidctl/usbhid.c
284
pos = h->pos;
usr.bin/usbhidctl/usbhid.c
285
for (i = 0; i < h->report_count; i++) {
usr.bin/usbhidctl/usbhid.c
286
data = hid_get_data(buf, h);
usr.bin/usbhidctl/usbhid.c
289
if (h->logical_minimum < 0)
usr.bin/usbhidctl/usbhid.c
295
h->pos += h->report_size;
usr.bin/usbhidctl/usbhid.c
297
h->pos = pos;
usr.bin/usbhidctl/usbhid.c
320
if (rid == var->h.report_ID &&
usr.bin/usbhidctl/usbhid.c
321
kind == var->h.kind)
usr.bin/usbhidctl/usbhid.c
359
if ((kind < 3 ? kind : hid_input) != var->h.kind)
usr.bin/usbhidctl/usbhid.c
361
if (var->h.report_ID != 0 &&
usr.bin/usbhidctl/usbhid.c
362
dbuf[0] != var->h.report_ID)
usr.bin/usbhidctl/usbhid.c
368
prdata(dbuf, &var->h);
usr.bin/usbhidctl/usbhid.c
390
if (rid == var->h.report_ID && kind == var->h.kind)
usr.bin/usbhidctl/usbhid.c
422
if (rid != var->h.report_ID || kind != var->h.kind)
usr.bin/usbhidctl/usbhid.c
424
hid_set_data(dbuf, &var->h, var->val);
usr.bin/usbhidctl/usbhid.c
50
struct hid_item h;
usr.bin/usbhidctl/usbhid.c
61
static void dumpitem(const char *label, struct hid_item *h);
usr.bin/usbhidctl/usbhid.c
63
static void prdata(u_char *buf, struct hid_item *h);
usr.bin/usbhidctl/usbhid.c
71
struct hid_item h;
usr.bin/usbhidctl/usbhid.c
84
hid_get_item(d, &h); ) {
usr.bin/usbhidctl/usbhid.c
85
if (h.kind == hid_collection) {
usr.bin/usbhidctl/usbhid.c
88
hid_usage_page(HID_PAGE(h.usage)),
usr.bin/usbhidctl/usbhid.c
89
hid_usage_in_page(h.usage));
usr.bin/usbhidctl/usbhid.c
90
} else if (h.kind == hid_endcollection) {
usr.bin/vtfontcvt/vtfontcvt.c
383
set_height(int h)
usr.bin/vtfontcvt/vtfontcvt.c
385
if (h <= 0 || h > VFNT_MAXDIMENSION)
usr.bin/vtfontcvt/vtfontcvt.c
386
errx(1, "invalid height %d", h);
usr.bin/vtfontcvt/vtfontcvt.c
387
height = h;
usr.bin/whois/whois.c
74
#define ishost(h) (isalnum((unsigned char)h) || h == '.' || h == '-')
usr.sbin/apm/apm.c
153
int h, m, s;
usr.sbin/apm/apm.c
155
h = batt_time;
usr.sbin/apm/apm.c
156
s = h % 60;
usr.sbin/apm/apm.c
157
h /= 60;
usr.sbin/apm/apm.c
158
m = h % 60;
usr.sbin/apm/apm.c
159
h /= 60;
usr.sbin/apm/apm.c
160
printf("%2d:%02d:%02d\n", h, m, s);
usr.sbin/bhyve/block_if.c
921
blockif_chs(struct blockif_ctxt *bc, uint16_t *c, uint8_t *h, uint8_t *s)
usr.sbin/bhyve/block_if.c
961
*h = heads;
usr.sbin/bhyve/block_if.h
74
void blockif_chs(struct blockif_ctxt *bc, uint16_t *c, uint8_t *h,
usr.sbin/bhyve/console.c
50
console_init(int w, int h, void *fbaddr)
usr.sbin/bhyve/console.c
52
console.gc = bhyvegc_init(w, h, fbaddr);
usr.sbin/bhyve/console.h
38
void console_init(int w, int h, void *fbaddr);
usr.sbin/bhyve/rfb.c
518
int x, int y, int w, int h)
usr.sbin/bhyve/rfb.c
535
srect_hdr.height = htons(h);
usr.sbin/bhyve/rfb.c
538
h = y + h;
usr.sbin/bhyve/rfb.c
544
for (p = &gc->data[y * gc->width + x]; y < h; y++) {
usr.sbin/bhyve/rfb.c
581
for (p = &gc->data[y * gc->width + x]; y < h; y++) {
usr.sbin/bhyve/rfb.c
698
int w, h;
usr.sbin/bhyve/rfb.c
760
h = rc->crc_height;
usr.sbin/bhyve/rfb.c
766
rem_y = h & PIXCELL_MASK;
usr.sbin/bhyve/rfb.c
782
for (y = 0; y < h; y++) {
usr.sbin/bhyve/rfb.c
806
if ((y & PIXCELL_MASK) == PIXCELL_MASK || y == (h-1)) {
usr.sbin/bhyve/rfb.c
841
for (y = 0; y < h; y += PIX_PER_CELL) {
usr.sbin/bhyve/rfb.c
859
y + PIX_PER_CELL >= h ? rem_y : PIX_PER_CELL);
usr.sbin/bhyveload/bhyveload.c
227
cb_close(void *arg __unused, void *h)
usr.sbin/bhyveload/bhyveload.c
229
struct cb_file *cf = h;
usr.sbin/bhyveload/bhyveload.c
241
cb_isdir(void *arg __unused, void *h)
usr.sbin/bhyveload/bhyveload.c
243
struct cb_file *cf = h;
usr.sbin/bhyveload/bhyveload.c
249
cb_read(void *arg __unused, void *h, void *buf, size_t size, size_t *resid)
usr.sbin/bhyveload/bhyveload.c
251
struct cb_file *cf = h;
usr.sbin/bhyveload/bhyveload.c
264
cb_readdir(void *arg __unused, void *h, uint32_t *fileno_return,
usr.sbin/bhyveload/bhyveload.c
267
struct cb_file *cf = h;
usr.sbin/bhyveload/bhyveload.c
291
cb_seek(void *arg __unused, void *h, uint64_t offset, int whence)
usr.sbin/bhyveload/bhyveload.c
293
struct cb_file *cf = h;
usr.sbin/bhyveload/bhyveload.c
303
cb_stat(void *arg __unused, void *h, struct stat *sbp)
usr.sbin/bhyveload/bhyveload.c
305
struct cb_file *cf = h;
usr.sbin/bluetooth/bthidcontrol/hid.c
126
struct hid_item h;
usr.sbin/bluetooth/bthidcontrol/hid.c
128
for (d = hid_start_parse(r, ~0, -1); hid_get_item(d, &h); ) {
usr.sbin/bluetooth/bthidcontrol/hid.c
129
switch (h.kind) {
usr.sbin/bluetooth/bthidcontrol/hid.c
132
"Collection page=%s usage=%s\n", hid_usage_page(HID_PAGE(h.usage)),
usr.sbin/bluetooth/bthidcontrol/hid.c
133
hid_usage_in_page(h.usage));
usr.sbin/bluetooth/bthidcontrol/hid.c
141
hid_dump_item("Input ", &h);
usr.sbin/bluetooth/bthidcontrol/hid.c
145
hid_dump_item("Output ", &h);
usr.sbin/bluetooth/bthidcontrol/hid.c
149
hid_dump_item("Feature", &h);
usr.sbin/bluetooth/bthidcontrol/hid.c
158
hid_dump_item(char const *label, struct hid_item *h)
usr.sbin/bluetooth/bthidcontrol/hid.c
160
if ((h->flags & HIO_CONST) && !verbose)
usr.sbin/bluetooth/bthidcontrol/hid.c
165
label, (uint8_t) h->report_ID, h->report_size, h->report_count,
usr.sbin/bluetooth/bthidcontrol/hid.c
166
hid_usage_page(HID_PAGE(h->usage)),
usr.sbin/bluetooth/bthidcontrol/hid.c
167
hid_usage_in_page(h->usage),
usr.sbin/bluetooth/bthidcontrol/hid.c
168
h->flags & HIO_CONST ? " Const" : "",
usr.sbin/bluetooth/bthidcontrol/hid.c
169
h->flags & HIO_VARIABLE ? " Variable" : "",
usr.sbin/bluetooth/bthidcontrol/hid.c
170
h->flags & HIO_RELATIVE ? " Relative" : "",
usr.sbin/bluetooth/bthidcontrol/hid.c
171
h->flags & HIO_WRAP ? " Wrap" : "",
usr.sbin/bluetooth/bthidcontrol/hid.c
172
h->flags & HIO_NONLINEAR ? " NonLinear" : "",
usr.sbin/bluetooth/bthidcontrol/hid.c
173
h->flags & HIO_NOPREF ? " NoPref" : "",
usr.sbin/bluetooth/bthidcontrol/hid.c
174
h->flags & HIO_NULLSTATE ? " NullState" : "",
usr.sbin/bluetooth/bthidcontrol/hid.c
175
h->flags & HIO_VOLATILE ? " Volatile" : "",
usr.sbin/bluetooth/bthidcontrol/hid.c
176
h->flags & HIO_BUFBYTES ? " BufBytes" : "");
usr.sbin/bluetooth/bthidcontrol/hid.c
180
h->logical_minimum, h->logical_maximum);
usr.sbin/bluetooth/bthidcontrol/hid.c
182
if (h->physical_minimum != h->physical_maximum)
usr.sbin/bluetooth/bthidcontrol/hid.c
185
h->physical_minimum, h->physical_maximum);
usr.sbin/bluetooth/bthidcontrol/hid.c
187
if (h->unit)
usr.sbin/bluetooth/bthidcontrol/hid.c
189
", unit=0x%02x exp=%d", h->unit, h->unit_exponent);
usr.sbin/bluetooth/bthidcontrol/hid.c
47
static void hid_dump_item (char const *label, struct hid_item *h);
usr.sbin/bluetooth/bthidd/hid.c
172
hid_item_t h;
usr.sbin/bluetooth/bthidd/hid.c
205
hid_get_item(d, &h) > 0; ) {
usr.sbin/bluetooth/bthidd/hid.c
206
if ((h.flags & HIO_CONST) || (h.report_ID != report_id) ||
usr.sbin/bluetooth/bthidd/hid.c
207
(h.kind != hid_input))
usr.sbin/bluetooth/bthidd/hid.c
210
page = HID_PAGE(h.usage);
usr.sbin/bluetooth/bthidd/hid.c
211
val = hid_get_data(data, &h);
usr.sbin/bluetooth/bthidd/hid.c
219
if ((h.flags & HIO_VARIABLE)) {
usr.sbin/bluetooth/bthidd/hid.c
220
usage = HID_USAGE(h.usage);
usr.sbin/bluetooth/bthidd/hid.c
222
const uint32_t usage_offset = val - h.logical_minimum;
usr.sbin/bluetooth/bthidd/hid.c
223
usage = HID_USAGE(h.usage_minimum + usage_offset);
usr.sbin/bluetooth/bthidd/hid.c
254
if (h.flags & HIO_VARIABLE) {
usr.sbin/bluetooth/bthidd/hid.c
261
for (i = 1; i < h.report_count; i++) {
usr.sbin/bluetooth/bthidd/hid.c
262
h.pos += h.report_size;
usr.sbin/bluetooth/bthidd/hid.c
263
val = hid_get_data(data, &h);
usr.sbin/bluetooth/bthidd/hid.c
284
if (h.flags & HIO_VARIABLE) {
usr.sbin/bluetooth/bthidd/kbd.c
545
hid_item_t h;
usr.sbin/bluetooth/bthidd/kbd.c
563
hid_get_item(d, &h) > 0; ) {
usr.sbin/bluetooth/bthidd/kbd.c
564
if (HID_PAGE(h.usage) == HUP_LEDS) {
usr.sbin/bluetooth/bthidd/kbd.c
568
report_id = h.report_ID;
usr.sbin/bluetooth/bthidd/kbd.c
569
else if (h.report_ID != report_id)
usr.sbin/bluetooth/bthidd/kbd.c
574
h.report_ID, report_id);
usr.sbin/bluetooth/bthidd/kbd.c
576
switch(HID_USAGE(h.usage)) {
usr.sbin/bluetooth/bthidd/kbd.c
579
hid_set_data(&data[1], &h, 1);
usr.sbin/bluetooth/bthidd/kbd.c
585
hid_set_data(&data[1], &h, 1);
usr.sbin/bluetooth/bthidd/kbd.c
591
hid_set_data(&data[1], &h, 1);
usr.sbin/cdcontrol/cdcontrol.c
473
struct ioc_toc_header h;
usr.sbin/cdcontrol/cdcontrol.c
477
rc = ioctl (fd, CDIOREADTOCHEADER, &h);
usr.sbin/cdcontrol/cdcontrol.c
482
n = h.ending_track - h.starting_track + 1;
usr.sbin/cdcontrol/cdcontrol.c
757
struct ioc_toc_header h;
usr.sbin/cdcontrol/cdcontrol.c
761
rc = ioctl (fd, CDIOREADTOCHEADER, &h);
usr.sbin/cdcontrol/cdcontrol.c
765
n = h.ending_track - h.starting_track + 1;
usr.sbin/cdcontrol/cdcontrol.c
779
if (trk > h.ending_track)
usr.sbin/cdcontrol/cdcontrol.c
913
struct ioc_toc_header h;
usr.sbin/cdcontrol/cdcontrol.c
919
rc = ioctl (fd, CDIOREADTOCHEADER, &h);
usr.sbin/cdcontrol/cdcontrol.c
922
ntr = h.ending_track - h.starting_track + 1;
usr.sbin/cdcontrol/cdcontrol.c
960
struct ioc_toc_header h;
usr.sbin/cdcontrol/cdcontrol.c
963
rc = ioctl (fd, CDIOREADTOCHEADER, &h);
usr.sbin/cdcontrol/cdcontrol.c
967
h.starting_track, h.ending_track, h.len);
usr.sbin/cdcontrol/cdcontrol.c
969
printf ("%d %d %d\n", h.starting_track,
usr.sbin/cdcontrol/cdcontrol.c
970
h.ending_track, h.len);
usr.sbin/cdcontrol/cdcontrol.c
976
n = h.ending_track - h.starting_track + 1;
usr.sbin/ctladm/util.c
66
struct get_hook *h = (struct get_hook *)hook;
usr.sbin/ctladm/util.c
69
if (h->got >= h->argc)
usr.sbin/ctladm/util.c
75
arg = strtol(h->argv[h->got], 0, 0);
usr.sbin/ctladm/util.c
76
h->got++;
usr.sbin/ctladm/util.c
89
struct get_hook *h = (struct get_hook *)hook;
usr.sbin/ctladm/util.c
92
if (h->got >= h->argc)
usr.sbin/ctladm/util.c
98
arg = h->argv[h->got];
usr.sbin/ctladm/util.c
99
h->got++;
usr.sbin/fifolog/lib/fifolog_write_poll.c
189
long h, l = f->ff->zs->next_out - f->obuf;
usr.sbin/fifolog/lib/fifolog_write_poll.c
193
h = 4; /* seq */
usr.sbin/fifolog/lib/fifolog_write_poll.c
195
f->obuf[h] = f->flag;
usr.sbin/fifolog/lib/fifolog_write_poll.c
196
h += 1; /* flag */
usr.sbin/fifolog/lib/fifolog_write_poll.c
198
be32enc(f->obuf + h, now);
usr.sbin/fifolog/lib/fifolog_write_poll.c
199
h += 4; /* timestamp */
usr.sbin/fifolog/lib/fifolog_write_poll.c
203
assert(l >= h);
usr.sbin/fifolog/lib/fifolog_write_poll.c
206
if (l == h)
usr.sbin/fifolog/lib/fifolog_write_poll.c
221
f->cnt[FIFOLOG_PT_BYTES_POST] += l - h;
usr.sbin/lpr/pac/pac.c
323
register int h;
usr.sbin/lpr/pac/pac.c
327
h = hash(name);
usr.sbin/lpr/pac/pac.c
333
hp->h_link = hashtab[h];
usr.sbin/lpr/pac/pac.c
334
hashtab[h] = hp;
usr.sbin/lpr/pac/pac.c
346
register int h;
usr.sbin/lpr/pac/pac.c
349
h = hash(name);
usr.sbin/lpr/pac/pac.c
350
for (hp = hashtab[h]; hp != NULL; hp = hp->h_link)
usr.sbin/lpr/pac/pac.c
363
register int h;
usr.sbin/lpr/pac/pac.c
366
for (cp = name, h = 0; *cp; h = (h << 2) + *cp++)
usr.sbin/lpr/pac/pac.c
368
return((h & 0x7fffffff) % HSHSIZE);
usr.sbin/makefs/cd9660/cd9660_debug.c
77
printf("%c%c: L:%i",t->attr.su_entry.SP.h.type[0],
usr.sbin/makefs/cd9660/cd9660_debug.c
78
t->attr.su_entry.SP.h.type[1],
usr.sbin/makefs/cd9660/cd9660_debug.c
79
(int)t->attr.su_entry.SP.h.length[0]);
usr.sbin/makefs/cd9660/iso9660_rrip.c
492
temp->attr.su_entry.SP.h.type[0] = type_id[0];
usr.sbin/makefs/cd9660/iso9660_rrip.c
493
temp->attr.su_entry.SP.h.type[1] = type_id[1];
usr.sbin/makefs/cd9660/iso9660_rrip.c
500
p->attr.rr_entry.PL.h.length[0] = 12;
usr.sbin/makefs/cd9660/iso9660_rrip.c
501
p->attr.rr_entry.PL.h.version[0] = 1;
usr.sbin/makefs/cd9660/iso9660_rrip.c
508
p->attr.rr_entry.CL.h.length[0] = 12;
usr.sbin/makefs/cd9660/iso9660_rrip.c
509
p->attr.rr_entry.CL.h.version[0] = 1;
usr.sbin/makefs/cd9660/iso9660_rrip.c
516
p->attr.rr_entry.RE.h.length[0] = 4;
usr.sbin/makefs/cd9660/iso9660_rrip.c
517
p->attr.rr_entry.RE.h.version[0] = 1;
usr.sbin/makefs/cd9660/iso9660_rrip.c
539
current->attr.rr_entry.SL.h.version[0] = 1;
usr.sbin/makefs/cd9660/iso9660_rrip.c
599
current->attr.rr_entry.SL.h.length[0] = path_count + 5;
usr.sbin/makefs/cd9660/iso9660_rrip.c
603
current->attr.rr_entry.SL.h.version[0] = 1;
usr.sbin/makefs/cd9660/iso9660_rrip.c
638
current->attr.rr_entry.SL.h.length[0] = path_count + 5;
usr.sbin/makefs/cd9660/iso9660_rrip.c
691
v->attr.rr_entry.PX.h.length[0] = 44;
usr.sbin/makefs/cd9660/iso9660_rrip.c
692
v->attr.rr_entry.PX.h.version[0] = 1;
usr.sbin/makefs/cd9660/iso9660_rrip.c
710
pn_field->attr.rr_entry.PN.h.length[0] = 20;
usr.sbin/makefs/cd9660/iso9660_rrip.c
711
pn_field->attr.rr_entry.PN.h.version[0] = 1;
usr.sbin/makefs/cd9660/iso9660_rrip.c
730
p->attr.rr_entry.NM.h.type[0] = 'N';
usr.sbin/makefs/cd9660/iso9660_rrip.c
731
p->attr.rr_entry.NM.h.type[1] = 'M';
usr.sbin/makefs/cd9660/iso9660_rrip.c
733
p->attr.rr_entry.NM.h.length[0] = (unsigned char)nm_length;
usr.sbin/makefs/cd9660/iso9660_rrip.c
734
p->attr.rr_entry.NM.h.version[0] = (unsigned char)1;
usr.sbin/makefs/cd9660/iso9660_rrip.c
744
p->attr.rr_entry.TF.h.length[0] = 5;
usr.sbin/makefs/cd9660/iso9660_rrip.c
745
p->attr.rr_entry.TF.h.version[0] = 1;
usr.sbin/makefs/cd9660/iso9660_rrip.c
754
p->attr.rr_entry.TF.h.length[0] += 7;
usr.sbin/makefs/cd9660/iso9660_rrip.c
758
p->attr.rr_entry.TF.h.length[0] += 7;
usr.sbin/makefs/cd9660/iso9660_rrip.c
762
p->attr.rr_entry.TF.h.length[0] += 7;
usr.sbin/makefs/cd9660/iso9660_rrip.c
769
p->attr.su_entry.SP.h.length[0] = 7;
usr.sbin/makefs/cd9660/iso9660_rrip.c
770
p->attr.su_entry.SP.h.version[0] = 1;
usr.sbin/makefs/cd9660/iso9660_rrip.c
780
p->attr.su_entry.ST.h.type[0] = 'S';
usr.sbin/makefs/cd9660/iso9660_rrip.c
781
p->attr.su_entry.ST.h.type[1] = 'T';
usr.sbin/makefs/cd9660/iso9660_rrip.c
782
p->attr.su_entry.ST.h.length[0] = 4;
usr.sbin/makefs/cd9660/iso9660_rrip.c
783
p->attr.su_entry.ST.h.version[0] = 1;
usr.sbin/makefs/cd9660/iso9660_rrip.c
790
p->attr.su_entry.CE.h.length[0] = 28;
usr.sbin/makefs/cd9660/iso9660_rrip.c
791
p->attr.su_entry.CE.h.version[0] = 1;
usr.sbin/makefs/cd9660/iso9660_rrip.c
819
r->attr.rr_entry.NM.h.version[0] = 1;
usr.sbin/makefs/cd9660/iso9660_rrip.c
830
r->attr.rr_entry.NM.h.length[0] = 5 + len;
usr.sbin/makefs/cd9660/iso9660_rrip.c
856
r->attr.su_entry.ER.h.length[0] = 8;
usr.sbin/makefs/cd9660/iso9660_rrip.c
857
r->attr.su_entry.ER.h.version[0] = 1;
usr.sbin/makefs/cd9660/iso9660_rrip.c
868
assert(l + r->attr.su_entry.ER.h.length[0] <= 254);
usr.sbin/makefs/cd9660/iso9660_rrip.c
870
r->attr.su_entry.ER.h.length[0] += (u_char)l;
usr.sbin/makefs/cd9660/iso9660_rrip.h
101
ISO_SUSP_HEADER h;
usr.sbin/makefs/cd9660/iso9660_rrip.h
110
ISO_SUSP_HEADER h;
usr.sbin/makefs/cd9660/iso9660_rrip.h
116
ISO_SUSP_HEADER h;
usr.sbin/makefs/cd9660/iso9660_rrip.h
123
ISO_SUSP_HEADER h;
usr.sbin/makefs/cd9660/iso9660_rrip.h
134
ISO_SUSP_HEADER h;
usr.sbin/makefs/cd9660/iso9660_rrip.h
141
ISO_SUSP_HEADER h;
usr.sbin/makefs/cd9660/iso9660_rrip.h
148
ISO_SUSP_HEADER h;
usr.sbin/makefs/cd9660/iso9660_rrip.h
153
ISO_SUSP_HEADER h;
usr.sbin/makefs/cd9660/iso9660_rrip.h
159
ISO_SUSP_HEADER h;
usr.sbin/makefs/cd9660/iso9660_rrip.h
163
ISO_SUSP_HEADER h;
usr.sbin/makefs/cd9660/iso9660_rrip.h
175
ISO_SUSP_HEADER h;
usr.sbin/makefs/cd9660/iso9660_rrip.h
217
((int) ((entry)->attr.su_entry.SP.h.length[0]))
usr.sbin/makefs/ffs/ffs_subr.c
111
ffs_isfreeblock(struct fs *fs, u_char *cp, int32_t h)
usr.sbin/makefs/ffs/ffs_subr.c
116
return (cp[h] == 0);
usr.sbin/makefs/ffs/ffs_subr.c
118
return ((cp[h >> 1] & (0x0f << ((h & 0x1) << 2))) == 0);
usr.sbin/makefs/ffs/ffs_subr.c
120
return ((cp[h >> 2] & (0x03 << ((h & 0x3) << 1))) == 0);
usr.sbin/makefs/ffs/ffs_subr.c
122
return ((cp[h >> 3] & (0x01 << (h & 0x7))) == 0);
usr.sbin/makefs/ffs/ffs_subr.c
133
ffs_clrblock(struct fs *fs, u_char *cp, int32_t h)
usr.sbin/makefs/ffs/ffs_subr.c
138
cp[h] = 0;
usr.sbin/makefs/ffs/ffs_subr.c
141
cp[h >> 1] &= ~(0x0f << ((h & 0x1) << 2));
usr.sbin/makefs/ffs/ffs_subr.c
144
cp[h >> 2] &= ~(0x03 << ((h & 0x3) << 1));
usr.sbin/makefs/ffs/ffs_subr.c
147
cp[h >> 3] &= ~(0x01 << (h & 0x7));
usr.sbin/makefs/ffs/ffs_subr.c
159
ffs_setblock(struct fs *fs, u_char *cp, int32_t h)
usr.sbin/makefs/ffs/ffs_subr.c
164
cp[h] = 0xff;
usr.sbin/makefs/ffs/ffs_subr.c
167
cp[h >> 1] |= (0x0f << ((h & 0x1) << 2));
usr.sbin/makefs/ffs/ffs_subr.c
170
cp[h >> 2] |= (0x03 << ((h & 0x3) << 1));
usr.sbin/makefs/ffs/ffs_subr.c
173
cp[h >> 3] |= (0x01 << (h & 0x7));
usr.sbin/makefs/ffs/ffs_subr.c
83
ffs_isblock(struct fs *fs, u_char *cp, int32_t h)
usr.sbin/makefs/ffs/ffs_subr.c
89
return (cp[h] == 0xff);
usr.sbin/makefs/ffs/ffs_subr.c
91
mask = 0x0f << ((h & 0x1) << 2);
usr.sbin/makefs/ffs/ffs_subr.c
92
return ((cp[h >> 1] & mask) == mask);
usr.sbin/makefs/ffs/ffs_subr.c
94
mask = 0x03 << ((h & 0x3) << 1);
usr.sbin/makefs/ffs/ffs_subr.c
95
return ((cp[h >> 2] & mask) == mask);
usr.sbin/makefs/ffs/ffs_subr.c
97
mask = 0x01 << (h & 0x7);
usr.sbin/makefs/ffs/ffs_subr.c
98
return ((cp[h >> 3] & mask) == mask);
usr.sbin/makefs/walk.c
643
int h, h2;
usr.sbin/makefs/walk.c
683
h = tmp >> (HTBITS - htshift);
usr.sbin/makefs/walk.c
687
while (htable[h].data) {
usr.sbin/makefs/walk.c
688
if ((htable[h].data->st.st_ino == entry->st.st_ino) &&
usr.sbin/makefs/walk.c
689
(htable[h].data->st.st_dev == entry->st.st_dev)) {
usr.sbin/makefs/walk.c
690
return htable[h].data;
usr.sbin/makefs/walk.c
692
h = (h + h2) & htmask;
usr.sbin/makefs/walk.c
696
htable[h].data = entry;
usr.sbin/mfiutil/mfi_bbu.c
45
unsigned int d, h;
usr.sbin/mfiutil/mfi_bbu.c
48
h = (period % (24 * 3600)) / 3600;
usr.sbin/mfiutil/mfi_bbu.c
52
if (h != 0)
usr.sbin/mfiutil/mfi_bbu.c
55
if (h != 0)
usr.sbin/mfiutil/mfi_bbu.c
56
fprintf(fp, "%u hour%s", h, h == 1 ? "" : "s");
usr.sbin/mfiutil/mfi_bbu.c
58
if (d == 0 && h == 0)
usr.sbin/moused/moused/util.c
171
parse_dimension_property(const char *prop, size_t *w, size_t *h)
usr.sbin/moused/moused/util.c
185
*h = (size_t)y;
usr.sbin/moused/moused/util.h
406
bool parse_dimension_property(const char *prop, size_t *w, size_t *h);
usr.sbin/pmcstat/pmcpl_callgraph.c
136
struct pmcstat_cgnode_hash *h;
usr.sbin/pmcstat/pmcpl_callgraph.c
166
LIST_FOREACH(h, &pmcstat_cgnode_hash[hash], pch_next)
usr.sbin/pmcstat/pmcpl_callgraph.c
168
if (h->pch_pmcid != pmcid)
usr.sbin/pmcstat/pmcpl_callgraph.c
171
cg = h->pch_cgnode;
usr.sbin/pmcstat/pmcpl_callgraph.c
184
if ((h = malloc(sizeof(*h))) == NULL)
usr.sbin/pmcstat/pmcpl_callgraph.c
187
h->pch_pmcid = pmcid;
usr.sbin/pmcstat/pmcpl_callgraph.c
188
h->pch_cgnode = cg;
usr.sbin/pmcstat/pmcpl_callgraph.c
189
LIST_INSERT_HEAD(&pmcstat_cgnode_hash[hash], h, pch_next);
usr.sbin/pmcstat/pmcpl_calltree.c
668
struct pmcpl_ct_node_hash *h;
usr.sbin/pmcstat/pmcpl_calltree.c
684
STAILQ_FOREACH(h, &pmcpl_ct_node_hash[hash], pch_next) {
usr.sbin/pmcstat/pmcpl_calltree.c
685
ct = h->pch_ctnode;
usr.sbin/pmcstat/pmcpl_calltree.c
703
if ((h = malloc(sizeof(*h))) == NULL)
usr.sbin/pmcstat/pmcpl_calltree.c
716
h->pch_ctnode = ct;
usr.sbin/pmcstat/pmcpl_calltree.c
717
STAILQ_INSERT_HEAD(&pmcpl_ct_node_hash[hash], h, pch_next);
usr.sbin/ppp/hdlc.c
364
const u_char *h;
usr.sbin/ppp/hdlc.c
369
h = issync ? fh->data + 1 : fh->data;
usr.sbin/ppp/hdlc.c
372
if (memcmp(*cp, h, cmp) == 0)
usr.sbin/ppp/mp.c
417
struct mp_header mh, h;
usr.sbin/ppp/mp.c
470
h = mh;
usr.sbin/ppp/mp.c
472
mp_ReadHeader(mp, q, &h);
usr.sbin/ppp/mp.c
474
if (m && isbefore(mp->local_is12bit, mh.seq, h.seq)) {
usr.sbin/ppp/mp.c
482
h = mh;
usr.sbin/ppp/mp.c
487
if (h.seq != seq) {
usr.sbin/ppp/mp.c
507
mp_ReadHeader(mp, mp->inbufs, &h);
usr.sbin/ppp/mp.c
508
if (h.begin) {
usr.sbin/ppp/mp.c
510
h.seq--; /* We're gonna look for fragment with h.seq+1 */
usr.sbin/ppp/mp.c
514
log_Printf(LogDEBUG, "Drop frag %u\n", h.seq);
usr.sbin/ppp/mp.c
518
h.seq) || h.end));
usr.sbin/ppp/mp.c
528
mp->seq.next_in = seq = inc_seq(mp->local_is12bit, h.seq);
usr.sbin/ppp/mp.c
534
} else if (h.end) {
usr.sbin/ppp/mp.c
543
len = mp_ReadHeader(mp, *frag, &h);
usr.sbin/ppp/mp.c
545
first = h.seq;
usr.sbin/ppp/mp.c
546
if (frag == &q && !h.begin) {
usr.sbin/ppp/mp.c
548
(u_long)h.seq);
usr.sbin/ppp/mp.c
551
} else if (frag != &q && h.begin) {
usr.sbin/ppp/mp.c
553
(u_long)h.seq - 1);
usr.sbin/ppp/mp.c
564
h.end = 0; /* just in case it's a whole packet */
usr.sbin/ppp/mp.c
573
} while (!h.end);
usr.sbin/ppp/mp.c
578
(u_long)first, (u_long)h.seq, m_length(q));
usr.sbin/ppp/mp.c
583
mp->seq.next_in = seq = inc_seq(mp->local_is12bit, h.seq);
usr.sbin/ppp/mp.c
598
mp_ReadHeader(mp, q, &h);
usr.sbin/ppp/mp.c
599
if (isbefore(mp->local_is12bit, mh.seq, h.seq))
usr.sbin/ppp/physical.c
1001
for (h = 0; h < NDEVICES && p->handler == NULL && p->fd >= 0; h++)
usr.sbin/ppp/physical.c
1002
p->handler = (*devices[h].create)(p);
usr.sbin/ppp/physical.c
1026
for (h = 0; h < NDEVICES && p->handler == NULL; h++)
usr.sbin/ppp/physical.c
1027
if ((p->handler = (*devices[h].create)(p)) == NULL && wasfd != p->fd)
usr.sbin/ppp/physical.c
1031
if (h == NDEVICES) {
usr.sbin/ppp/physical.c
576
unsigned h;
usr.sbin/ppp/physical.c
625
for (h = 0; h < NDEVICES && p->handler == NULL; h++)
usr.sbin/ppp/physical.c
626
p->handler = (*devices[h].iov2device)(type, p, iov, niov, maxiov,
usr.sbin/ppp/physical.c
666
struct device *h;
usr.sbin/ppp/physical.c
669
h = NULL;
usr.sbin/ppp/physical.c
680
h = p->handler;
usr.sbin/ppp/physical.c
713
if (h && h->device2iov)
usr.sbin/ppp/physical.c
714
(*h->device2iov)(h, iov, niov, maxiov, auxfd, nauxfd);
usr.sbin/ppp/physical.c
720
if (h)
usr.sbin/ppp/physical.c
721
memcpy(iov[*niov].iov_base, h, sizeof *h);
usr.sbin/ppp/physical.c
993
unsigned h;
usr.sbin/rrenumd/parser.y
591
int d, h, m, s;
usr.sbin/rrenumd/parser.y
594
h = $2 * 60 * 60;
usr.sbin/rrenumd/parser.y
597
$$ = d + h + m + s;
usr.sbin/vidcontrol/vidcontrol.c
469
int h, i, size, w;
usr.sbin/vidcontrol/vidcontrol.c
481
int h;
usr.sbin/vidcontrol/vidcontrol.c
514
if (sscanf(type, "%dx%d", &w, &h) == 2) {
usr.sbin/vidcontrol/vidcontrol.c
516
if (sizes[i].w == w && sizes[i].h == h) {
usr.sbin/vidcontrol/vidcontrol.c
519
font_height = sizes[i].h;
usr.sbin/vidcontrol/vidcontrol.c
546
font_height = sizes[i].h;
usr.sbin/vidcontrol/vidcontrol.c
55
#define DATASIZE(x) ((x).w * (x).h * 256 / 8)
usr.sbin/wlandebug/wlandebug.c
170
struct ifconfig_handle *h;
usr.sbin/wlandebug/wlandebug.c
173
h = ifconfig_open();
usr.sbin/wlandebug/wlandebug.c
174
if (ifconfig_get_orig_name(h, name, &orig_name) < 0) {
usr.sbin/wlandebug/wlandebug.c
183
ifconfig_close(h);
usr.sbin/ypbind/ypbind.c
1007
if ((h = gethostbyname(s)) == NULL)
usr.sbin/ypbind/ypbind.c
1009
bcopy (h->h_addr_list[0], &restricted_addrs[i],
usr.sbin/ypbind/ypbind.c
996
struct hostent *h;
usr.sbin/ypldap/ldapclient.c
101
TAILQ_FOREACH(h, &idm->idm_addr, next) {
usr.sbin/ypldap/ldapclient.c
102
switch (h->ss.ss_family) {
usr.sbin/ypldap/ldapclient.c
104
sa_in = (struct sockaddr_in *)&h->ss;
usr.sbin/ypldap/ldapclient.c
110
sa_in6 = (struct sockaddr_in6 *)&h->ss;
usr.sbin/ypldap/ldapclient.c
127
struct ypldap_addr *h;
usr.sbin/ypldap/ldapclient.c
130
h = TAILQ_FIRST(&idm->idm_addr);
usr.sbin/ypldap/ldapclient.c
131
TAILQ_REMOVE(&idm->idm_addr, h, next);
usr.sbin/ypldap/ldapclient.c
132
free(h);
usr.sbin/ypldap/ldapclient.c
157
struct ypldap_addr *h;
usr.sbin/ypldap/ldapclient.c
211
if ((h = calloc(1, sizeof(*h))) == NULL)
usr.sbin/ypldap/ldapclient.c
213
memcpy(&h->ss, data, sizeof(h->ss));
usr.sbin/ypldap/ldapclient.c
214
TAILQ_INSERT_HEAD(&idm->idm_addr, h, next);
usr.sbin/ypldap/ldapclient.c
216
data += sizeof(h->ss);
usr.sbin/ypldap/ldapclient.c
217
dlen -= sizeof(h->ss);
usr.sbin/ypldap/ldapclient.c
99
struct ypldap_addr *h;
usr.sbin/ypldap/ypldap_dns.c
132
struct ypldap_addr *h;
usr.sbin/ypldap/ypldap_dns.c
180
h = TAILQ_FIRST(&hn);
usr.sbin/ypldap/ypldap_dns.c
181
TAILQ_REMOVE(&hn, h, next);
usr.sbin/ypldap/ypldap_dns.c
182
imsg_add(buf, &h->ss, sizeof(h->ss));
usr.sbin/ypldap/ypldap_dns.c
183
free(h);
usr.sbin/ypldap/ypldap_dns.c
212
struct ypldap_addr *h;
usr.sbin/ypldap/ypldap_dns.c
230
if ((h = calloc(1, sizeof(struct ypldap_addr))) == NULL)
usr.sbin/ypldap/ypldap_dns.c
232
h->ss.ss_family = res->ai_family;
usr.sbin/ypldap/ypldap_dns.c
234
sa_in = (struct sockaddr_in *)&h->ss;
usr.sbin/ypldap/ypldap_dns.c
239
sa_in6 = (struct sockaddr_in6 *)&h->ss;
usr.sbin/ypldap/ypldap_dns.c
245
TAILQ_INSERT_HEAD(hn, h, next);
usr.sbin/yppoll/yppoll.c
75
struct hostent *h;
usr.sbin/yppoll/yppoll.c
83
h = gethostbyname(server);
usr.sbin/yppoll/yppoll.c
84
if (h == NULL) {
usr.sbin/yppoll/yppoll.c
88
rsrv_sin.sin_addr.s_addr = *(u_int32_t *)h->h_addr;
usr.sbin/ypserv/common/yplib_host.c
69
struct hostent *h;
usr.sbin/ypserv/common/yplib_host.c
86
h = gethostbyname(server);
usr.sbin/ypserv/common/yplib_host.c
87
if (h == NULL) {
usr.sbin/ypserv/common/yplib_host.c
91
rsrv_sin.sin_addr.s_addr = *(u_int32_t *)h->h_addr;