Symbol: table
crypto/heimdal/admin/list.c
101
rtbl_add_column_entry_by_id(table, 1, buf);
crypto/heimdal/admin/list.c
103
rtbl_add_column_entry_by_id(table, 1, s);
crypto/heimdal/admin/list.c
108
rtbl_add_column_entry_by_id(table, 2, buf);
crypto/heimdal/admin/list.c
113
rtbl_add_column_entry_by_id(table, 3, buf);
crypto/heimdal/admin/list.c
126
rtbl_add_column_entry_by_id(table, 4, s);
crypto/heimdal/admin/list.c
139
rtbl_add_column_entry_by_id(table, 5, rk_strpoolcollect(p));
crypto/heimdal/admin/list.c
145
rtbl_format(table, stdout);
crypto/heimdal/admin/list.c
148
rtbl_destroy(table);
crypto/heimdal/admin/list.c
46
rtbl_t table;
crypto/heimdal/admin/list.c
80
table = rtbl_create();
crypto/heimdal/admin/list.c
81
rtbl_add_column_by_id(table, 0, "Vno", RTBL_ALIGN_RIGHT);
crypto/heimdal/admin/list.c
82
rtbl_add_column_by_id(table, 1, "Type", 0);
crypto/heimdal/admin/list.c
83
rtbl_add_column_by_id(table, 2, "Principal", 0);
crypto/heimdal/admin/list.c
85
rtbl_add_column_by_id(table, 3, "Date", 0);
crypto/heimdal/admin/list.c
87
rtbl_add_column_by_id(table, 4, "Key", 0);
crypto/heimdal/admin/list.c
88
rtbl_add_column_by_id(table, 5, "Aliases", 0);
crypto/heimdal/admin/list.c
89
rtbl_set_separator(table, " ");
crypto/heimdal/admin/list.c
95
rtbl_add_column_entry_by_id(table, 0, buf);
crypto/heimdal/appl/telnet/libtelnet/genget.c
75
genget(char *name, char **table, int stlen)
crypto/heimdal/appl/telnet/libtelnet/genget.c
87
for (c = table; *c != 0; c = (char **)((char *)c + stlen)) {
crypto/heimdal/appl/telnet/libtelnet/misc-proto.h
66
char** genget (char *name, char **table, int stlen);
crypto/heimdal/kadmin/get.c
100
if(data->table != NULL)
crypto/heimdal/kadmin/get.c
101
rtbl_add_column_by_id(data->table, ff->fieldvalue,
crypto/heimdal/kadmin/get.c
342
rtbl_add_column_entry_by_id(data->table, f->ff->fieldvalue, buf);
crypto/heimdal/kadmin/get.c
473
data.table = NULL;
crypto/heimdal/kadmin/get.c
480
data.table = rtbl_create();
crypto/heimdal/kadmin/get.c
481
rtbl_set_separator(data.table, " ");
crypto/heimdal/kadmin/get.c
494
if(data.table != NULL)
crypto/heimdal/kadmin/get.c
495
rtbl_destroy(data.table);
crypto/heimdal/kadmin/get.c
502
if(data.table != NULL) {
crypto/heimdal/kadmin/get.c
503
rtbl_format(data.table, stdout);
crypto/heimdal/kadmin/get.c
504
rtbl_destroy(data.table);
crypto/heimdal/kadmin/get.c
78
rtbl_t table;
crypto/heimdal/lib/com_err/com_err.c
165
if (et->table->base == new_table->table->base)
crypto/heimdal/lib/com_err/com_right.h
70
struct error_table *table;
crypto/heimdal/lib/com_err/error.c
100
et->table->base = base;
crypto/heimdal/lib/com_err/error.c
54
if (code >= p->table->base && code < p->table->base + p->table->n_msgs)
crypto/heimdal/lib/com_err/error.c
55
return p->table->msgs[code - p->table->base];
crypto/heimdal/lib/com_err/error.c
64
if (code >= p->table->base && code < p->table->base + p->table->n_msgs) {
crypto/heimdal/lib/com_err/error.c
65
const char *msg = p->table->msgs[code - p->table->base];
crypto/heimdal/lib/com_err/error.c
68
snprintf(domain, sizeof(domain), "heim_com_err%d", p->table->base);
crypto/heimdal/lib/com_err/error.c
91
if (et->table->msgs == messages)
crypto/heimdal/lib/com_err/error.c
97
et->table = &f->et;
crypto/heimdal/lib/com_err/error.c
98
et->table->msgs = messages;
crypto/heimdal/lib/com_err/error.c
99
et->table->n_msgs = num_errors;
crypto/heimdal/lib/hx509/hxtool.c
1648
rtbl_t table;
crypto/heimdal/lib/hx509/hxtool.c
1651
table = rtbl_create();
crypto/heimdal/lib/hx509/hxtool.c
1652
rtbl_add_column_by_id (table, 0, "Name", 0);
crypto/heimdal/lib/hx509/hxtool.c
1653
rtbl_add_column_by_id (table, 1, "Description", 0);
crypto/heimdal/lib/hx509/hxtool.c
1656
rtbl_add_column_entry_by_id(table, 0, certtypes[i].type);
crypto/heimdal/lib/hx509/hxtool.c
1657
rtbl_add_column_entry_by_id(table, 1, certtypes[i].desc);
crypto/heimdal/lib/hx509/hxtool.c
1660
rtbl_format (table, out);
crypto/heimdal/lib/hx509/hxtool.c
1661
rtbl_destroy (table);
crypto/heimdal/lib/krb5/crc.c
36
static u_long table[256];
crypto/heimdal/lib/krb5/crc.c
58
table[i] = crc;
crypto/heimdal/lib/krb5/crc.c
67
res = table[(res ^ *p++) & 0xFF] ^ (res >> 8);
crypto/heimdal/lib/krb5/log.c
111
find_value(const char *s, struct s2i *table)
crypto/heimdal/lib/krb5/log.c
113
while(table->s && strcasecmp(table->s, s))
crypto/heimdal/lib/krb5/log.c
114
table++;
crypto/heimdal/lib/krb5/log.c
115
return table->val;
crypto/heimdal/lib/krb5/verify_krb5_conf.c
278
find_value(const char *s, struct s2i *table)
crypto/heimdal/lib/krb5/verify_krb5_conf.c
280
while(table->s && strcasecmp(table->s, s))
crypto/heimdal/lib/krb5/verify_krb5_conf.c
281
table++;
crypto/heimdal/lib/krb5/verify_krb5_conf.c
282
return table->val;
crypto/heimdal/lib/roken/rtbl.c
101
rtbl_destroy (rtbl_t table)
crypto/heimdal/lib/roken/rtbl.c
105
for (i = 0; i < table->num_columns; i++) {
crypto/heimdal/lib/roken/rtbl.c
106
struct column_data *c = table->columns[i];
crypto/heimdal/lib/roken/rtbl.c
116
free (table->column_prefix);
crypto/heimdal/lib/roken/rtbl.c
117
free (table->column_separator);
crypto/heimdal/lib/roken/rtbl.c
118
free (table->columns);
crypto/heimdal/lib/roken/rtbl.c
119
free (table);
crypto/heimdal/lib/roken/rtbl.c
123
rtbl_add_column_by_id (rtbl_t table, unsigned int id,
crypto/heimdal/lib/roken/rtbl.c
128
tmp = realloc (table->columns, (table->num_columns + 1) * sizeof (*tmp));
crypto/heimdal/lib/roken/rtbl.c
131
table->columns = tmp;
crypto/heimdal/lib/roken/rtbl.c
147
table->columns[table->num_columns++] = col;
crypto/heimdal/lib/roken/rtbl.c
152
rtbl_add_column (rtbl_t table, const char *header, unsigned int flags)
crypto/heimdal/lib/roken/rtbl.c
154
return rtbl_add_column_by_id(table, 0, header, flags);
crypto/heimdal/lib/roken/rtbl.c
158
rtbl_new_row(rtbl_t table)
crypto/heimdal/lib/roken/rtbl.c
162
for (c = 0; c < table->num_columns; c++)
crypto/heimdal/lib/roken/rtbl.c
163
if(table->columns[c]->num_rows > max_rows)
crypto/heimdal/lib/roken/rtbl.c
164
max_rows = table->columns[c]->num_rows;
crypto/heimdal/lib/roken/rtbl.c
165
for (c = 0; c < table->num_columns; c++) {
crypto/heimdal/lib/roken/rtbl.c
168
if(table->columns[c]->num_rows == max_rows)
crypto/heimdal/lib/roken/rtbl.c
170
tmp = realloc(table->columns[c]->rows,
crypto/heimdal/lib/roken/rtbl.c
171
max_rows * sizeof(table->columns[c]->rows));
crypto/heimdal/lib/roken/rtbl.c
174
table->columns[c]->rows = tmp;
crypto/heimdal/lib/roken/rtbl.c
175
while(table->columns[c]->num_rows < max_rows) {
crypto/heimdal/lib/roken/rtbl.c
176
if((tmp[table->columns[c]->num_rows++].data = strdup("")) == NULL)
crypto/heimdal/lib/roken/rtbl.c
184
column_compute_width (rtbl_t table, struct column_data *column)
crypto/heimdal/lib/roken/rtbl.c
188
if(table->flags & RTBL_HEADER_STYLE_NONE)
crypto/heimdal/lib/roken/rtbl.c
198
rtbl_set_prefix (rtbl_t table, const char *prefix)
crypto/heimdal/lib/roken/rtbl.c
200
if (table->column_prefix)
crypto/heimdal/lib/roken/rtbl.c
201
free (table->column_prefix);
crypto/heimdal/lib/roken/rtbl.c
202
table->column_prefix = strdup (prefix);
crypto/heimdal/lib/roken/rtbl.c
203
if (table->column_prefix == NULL)
crypto/heimdal/lib/roken/rtbl.c
209
rtbl_set_separator (rtbl_t table, const char *separator)
crypto/heimdal/lib/roken/rtbl.c
211
if (table->column_separator)
crypto/heimdal/lib/roken/rtbl.c
212
free (table->column_separator);
crypto/heimdal/lib/roken/rtbl.c
213
table->column_separator = strdup (separator);
crypto/heimdal/lib/roken/rtbl.c
214
if (table->column_separator == NULL)
crypto/heimdal/lib/roken/rtbl.c
220
rtbl_set_column_prefix (rtbl_t table, const char *column,
crypto/heimdal/lib/roken/rtbl.c
223
struct column_data *c = rtbl_get_column (table, column);
crypto/heimdal/lib/roken/rtbl.c
236
rtbl_set_column_affix_by_id(rtbl_t table, unsigned int id,
crypto/heimdal/lib/roken/rtbl.c
239
struct column_data *c = rtbl_get_column_by_id (table, id);
crypto/heimdal/lib/roken/rtbl.c
267
get_column_prefix (rtbl_t table, struct column_data *c)
crypto/heimdal/lib/roken/rtbl.c
273
if (table->column_prefix)
crypto/heimdal/lib/roken/rtbl.c
274
return table->column_prefix;
crypto/heimdal/lib/roken/rtbl.c
279
get_column_suffix (rtbl_t table, struct column_data *c)
crypto/heimdal/lib/roken/rtbl.c
305
rtbl_add_column_entry_by_id (rtbl_t table, unsigned int id, const char *data)
crypto/heimdal/lib/roken/rtbl.c
307
struct column_data *c = rtbl_get_column_by_id (table, id);
crypto/heimdal/lib/roken/rtbl.c
316
rtbl_add_column_entryv_by_id (rtbl_t table, unsigned int id,
crypto/heimdal/lib/roken/rtbl.c
328
ret = rtbl_add_column_entry_by_id(table, id, str);
crypto/heimdal/lib/roken/rtbl.c
334
rtbl_add_column_entry (rtbl_t table, const char *column, const char *data)
crypto/heimdal/lib/roken/rtbl.c
336
struct column_data *c = rtbl_get_column (table, column);
crypto/heimdal/lib/roken/rtbl.c
345
rtbl_add_column_entryv (rtbl_t table, const char *column, const char *fmt, ...)
crypto/heimdal/lib/roken/rtbl.c
356
ret = rtbl_add_column_entry(table, column, str);
crypto/heimdal/lib/roken/rtbl.c
363
rtbl_format (rtbl_t table, FILE * f)
crypto/heimdal/lib/roken/rtbl.c
367
for (i = 0; i < table->num_columns; i++)
crypto/heimdal/lib/roken/rtbl.c
368
column_compute_width (table, table->columns[i]);
crypto/heimdal/lib/roken/rtbl.c
369
if((table->flags & RTBL_HEADER_STYLE_NONE) == 0) {
crypto/heimdal/lib/roken/rtbl.c
370
for (i = 0; i < table->num_columns; i++) {
crypto/heimdal/lib/roken/rtbl.c
371
struct column_data *c = table->columns[i];
crypto/heimdal/lib/roken/rtbl.c
373
if(table->column_separator != NULL && i > 0)
crypto/heimdal/lib/roken/rtbl.c
374
fprintf (f, "%s", table->column_separator);
crypto/heimdal/lib/roken/rtbl.c
375
fprintf (f, "%s", get_column_prefix (table, c));
crypto/heimdal/lib/roken/rtbl.c
376
if(i == table->num_columns - 1 && c->suffix == NULL)
crypto/heimdal/lib/roken/rtbl.c
381
fprintf (f, "%s", get_column_suffix (table, c));
crypto/heimdal/lib/roken/rtbl.c
390
for (i = 0; flag == 0 && i < table->num_columns; ++i) {
crypto/heimdal/lib/roken/rtbl.c
391
struct column_data *c = table->columns[i];
crypto/heimdal/lib/roken/rtbl.c
401
for (i = 0; i < table->num_columns; i++) {
crypto/heimdal/lib/roken/rtbl.c
403
struct column_data *c = table->columns[i];
crypto/heimdal/lib/roken/rtbl.c
405
if(table->column_separator != NULL && i > 0)
crypto/heimdal/lib/roken/rtbl.c
406
fprintf (f, "%s", table->column_separator);
crypto/heimdal/lib/roken/rtbl.c
411
if(i == table->num_columns - 1 && c->suffix == NULL)
crypto/heimdal/lib/roken/rtbl.c
417
fprintf (f, "%s", get_column_prefix (table, c));
crypto/heimdal/lib/roken/rtbl.c
422
fprintf (f, "%s", get_column_suffix (table, c));
crypto/heimdal/lib/roken/rtbl.c
433
rtbl_t table;
crypto/heimdal/lib/roken/rtbl.c
435
table = rtbl_create ();
crypto/heimdal/lib/roken/rtbl.c
436
rtbl_add_column_by_id (table, 0, "Issued", 0);
crypto/heimdal/lib/roken/rtbl.c
437
rtbl_add_column_by_id (table, 1, "Expires", 0);
crypto/heimdal/lib/roken/rtbl.c
438
rtbl_add_column_by_id (table, 2, "Foo", RTBL_ALIGN_RIGHT);
crypto/heimdal/lib/roken/rtbl.c
439
rtbl_add_column_by_id (table, 3, "Principal", 0);
crypto/heimdal/lib/roken/rtbl.c
441
rtbl_add_column_entry_by_id (table, 0, "Jul 7 21:19:29");
crypto/heimdal/lib/roken/rtbl.c
442
rtbl_add_column_entry_by_id (table, 1, "Jul 8 07:19:29");
crypto/heimdal/lib/roken/rtbl.c
443
rtbl_add_column_entry_by_id (table, 2, "73");
crypto/heimdal/lib/roken/rtbl.c
444
rtbl_add_column_entry_by_id (table, 2, "0");
crypto/heimdal/lib/roken/rtbl.c
445
rtbl_add_column_entry_by_id (table, 2, "-2000");
crypto/heimdal/lib/roken/rtbl.c
446
rtbl_add_column_entry_by_id (table, 3, "krbtgt/NADA.KTH.SE@NADA.KTH.SE");
crypto/heimdal/lib/roken/rtbl.c
448
rtbl_add_column_entry_by_id (table, 0, "Jul 7 21:19:29");
crypto/heimdal/lib/roken/rtbl.c
449
rtbl_add_column_entry_by_id (table, 1, "Jul 8 07:19:29");
crypto/heimdal/lib/roken/rtbl.c
450
rtbl_add_column_entry_by_id (table, 3, "afs/pdc.kth.se@NADA.KTH.SE");
crypto/heimdal/lib/roken/rtbl.c
452
rtbl_add_column_entry_by_id (table, 0, "Jul 7 21:19:29");
crypto/heimdal/lib/roken/rtbl.c
453
rtbl_add_column_entry_by_id (table, 1, "Jul 8 07:19:29");
crypto/heimdal/lib/roken/rtbl.c
454
rtbl_add_column_entry_by_id (table, 3, "afs@NADA.KTH.SE");
crypto/heimdal/lib/roken/rtbl.c
456
rtbl_set_separator (table, " ");
crypto/heimdal/lib/roken/rtbl.c
458
rtbl_format (table, stdout);
crypto/heimdal/lib/roken/rtbl.c
460
rtbl_destroy (table);
crypto/heimdal/lib/roken/rtbl.c
464
table = rtbl_create ();
crypto/heimdal/lib/roken/rtbl.c
465
rtbl_add_column_by_id (table, 0, "Column A", 0);
crypto/heimdal/lib/roken/rtbl.c
466
rtbl_set_column_affix_by_id (table, 0, "<", ">");
crypto/heimdal/lib/roken/rtbl.c
467
rtbl_add_column_by_id (table, 1, "Column B", 0);
crypto/heimdal/lib/roken/rtbl.c
468
rtbl_set_column_affix_by_id (table, 1, "[", "]");
crypto/heimdal/lib/roken/rtbl.c
469
rtbl_add_column_by_id (table, 2, "Column C", 0);
crypto/heimdal/lib/roken/rtbl.c
470
rtbl_set_column_affix_by_id (table, 2, "(", ")");
crypto/heimdal/lib/roken/rtbl.c
472
rtbl_add_column_entry_by_id (table, 0, "1");
crypto/heimdal/lib/roken/rtbl.c
473
rtbl_new_row(table);
crypto/heimdal/lib/roken/rtbl.c
474
rtbl_add_column_entry_by_id (table, 1, "2");
crypto/heimdal/lib/roken/rtbl.c
475
rtbl_new_row(table);
crypto/heimdal/lib/roken/rtbl.c
476
rtbl_add_column_entry_by_id (table, 2, "3");
crypto/heimdal/lib/roken/rtbl.c
477
rtbl_new_row(table);
crypto/heimdal/lib/roken/rtbl.c
479
rtbl_set_separator (table, " ");
crypto/heimdal/lib/roken/rtbl.c
480
rtbl_format (table, stdout);
crypto/heimdal/lib/roken/rtbl.c
482
rtbl_destroy (table);
crypto/heimdal/lib/roken/rtbl.c
69
rtbl_set_flags (rtbl_t table, unsigned int flags)
crypto/heimdal/lib/roken/rtbl.c
71
table->flags = flags;
crypto/heimdal/lib/roken/rtbl.c
75
rtbl_get_flags (rtbl_t table)
crypto/heimdal/lib/roken/rtbl.c
77
return table->flags;
crypto/heimdal/lib/roken/rtbl.c
81
rtbl_get_column_by_id (rtbl_t table, unsigned int id)
crypto/heimdal/lib/roken/rtbl.c
84
for(i = 0; i < table->num_columns; i++)
crypto/heimdal/lib/roken/rtbl.c
85
if(table->columns[i]->column_id == id)
crypto/heimdal/lib/roken/rtbl.c
86
return table->columns[i];
crypto/heimdal/lib/roken/rtbl.c
91
rtbl_get_column (rtbl_t table, const char *column)
crypto/heimdal/lib/roken/rtbl.c
94
for(i = 0; i < table->num_columns; i++)
crypto/heimdal/lib/roken/rtbl.c
95
if(strcmp(table->columns[i]->header, column) == 0)
crypto/heimdal/lib/roken/rtbl.c
96
return table->columns[i];
crypto/heimdal/lib/roken/rtbl.h
72
rtbl_add_column_entryv_by_id (rtbl_t table, unsigned int id,
crypto/krb5/src/lib/krb5/krb/authdata.c
100
context->modules[k].client_fini = table->fini;
crypto/krb5/src/lib/krb5/krb/authdata.c
103
context->modules[k].ftable = table;
crypto/krb5/src/lib/krb5/krb/authdata.c
104
context->modules[k].name = table->name;
crypto/krb5/src/lib/krb5/krb/authdata.c
105
if (table->flags != NULL) {
crypto/krb5/src/lib/krb5/krb/authdata.c
106
(*table->flags)(kcontext, plugin_context,
crypto/krb5/src/lib/krb5/krb/authdata.c
114
context->modules[k].client_req_init = table->request_init;
crypto/krb5/src/lib/krb5/krb/authdata.c
115
context->modules[k].client_req_fini = table->request_fini;
crypto/krb5/src/lib/krb5/krb/authdata.c
119
code = (*table->request_init)(kcontext,
crypto/krb5/src/lib/krb5/krb/authdata.c
378
krb5plugin_authdata_client_ftable_v0 *table;
crypto/krb5/src/lib/krb5/krb/authdata.c
404
table = tables[n_tables - internal_count];
crypto/krb5/src/lib/krb5/krb/authdata.c
405
n_modules += k5_ad_module_count(table);
crypto/krb5/src/lib/krb5/krb/authdata.c
52
k5_ad_module_count(krb5plugin_authdata_client_ftable_v0 *table)
crypto/krb5/src/lib/krb5/krb/authdata.c
56
if (table->ad_type_list == NULL)
crypto/krb5/src/lib/krb5/krb/authdata.c
59
for (i = 0; table->ad_type_list[i]; i++)
crypto/krb5/src/lib/krb5/krb/authdata.c
68
krb5plugin_authdata_client_ftable_v0 *table,
crypto/krb5/src/lib/krb5/krb/authdata.c
76
if (table->ad_type_list == NULL) {
crypto/krb5/src/lib/krb5/krb/authdata.c
79
"any AD types\n", table->name);
crypto/krb5/src/lib/krb5/krb/authdata.c
84
if (table->init == NULL)
crypto/krb5/src/lib/krb5/krb/authdata.c
87
code = (*table->init)(kcontext, &plugin_context);
crypto/krb5/src/lib/krb5/krb/authdata.c
91
"failed to initialize\n", table->name);
crypto/krb5/src/lib/krb5/krb/authdata.c
96
for (j = 0; table->ad_type_list[j] != 0; j++) {
crypto/krb5/src/lib/krb5/krb/authdata.c
97
context->modules[k].ad_type = table->ad_type_list[j];
crypto/krb5/src/lib/krb5/krb/preauth_otp.c
454
int (*table[])(int c) = { isdigit, isxdigit, isalnum };
crypto/krb5/src/lib/krb5/krb/preauth_otp.c
464
if (!(*table[ti->format])((unsigned char)*otpvalue++))
crypto/krb5/src/plugins/kdb/test/kdb_test.c
704
match_in_table(krb5_context context, const char *table, const char *sprinc,
crypto/krb5/src/plugins/kdb/test/kdb_test.c
712
set_names(h, table, sprinc, NULL);
crypto/krb5/src/util/et/error_message.c
112
const struct error_table *table;
crypto/krb5/src/util/et/error_message.c
144
dprintf(("\t%x = %s\n", e->table->base & ERRCODE_MAX,
crypto/krb5/src/util/et/error_message.c
145
e->table->msgs[0]));
crypto/krb5/src/util/et/error_message.c
146
if ((e->table->base & ERRCODE_MAX) == table_num) {
crypto/krb5/src/util/et/error_message.c
147
table = e->table;
crypto/krb5/src/util/et/error_message.c
162
if (table->n_msgs <= (unsigned int) offset)
crypto/krb5/src/util/et/error_message.c
166
if (table->msgs[table->n_msgs] != NULL)
crypto/krb5/src/util/et/error_message.c
167
return dgettext(table->msgs[table->n_msgs], table->msgs[offset]);
crypto/krb5/src/util/et/error_message.c
169
return table->msgs[offset];
crypto/krb5/src/util/et/error_message.c
264
e->table = et;
crypto/krb5/src/util/et/error_message.c
294
if ((*ep)->table == et) {
crypto/krb5/src/util/et/error_table.h
17
const struct error_table *table;
crypto/krb5/src/util/et/t_com_err.c
14
try_one (errcode_t code, int known, int table, int msgno)
crypto/krb5/src/util/et/t_com_err.c
19
snprintf (buffy, sizeof(buffy), "error table %d message %d", table, msgno);
crypto/krb5/src/util/et/t_com_err.c
26
snprintf (buffy, sizeof(buffy), "Unknown code et%d %d", table, msgno);
crypto/krb5/src/util/et/t_com_err.c
34
(long) code, msg, table, msgno);
crypto/krb5/src/util/et/t_com_err.c
39
try_table (int table, int known, int lineno,
crypto/krb5/src/util/et/t_com_err.c
42
try_one (c0, known, table, 0);
crypto/krb5/src/util/et/t_com_err.c
43
try_one (c1, known, table, 1);
crypto/krb5/src/util/et/t_com_err.c
44
try_one (c2, known, table, 2);
crypto/krb5/src/util/et/t_com_err.c
49
table);
crypto/krb5/src/util/et/t_com_err.c
51
printf ("misc errors from line %d table %d\n", lineno, table);
crypto/krb5/src/util/ss/invocation.c
111
table[sci_idx] = new_table;
crypto/krb5/src/util/ss/invocation.c
46
ss_data **table, **tmp;
crypto/krb5/src/util/ss/invocation.c
49
table = _ss_table;
crypto/krb5/src/util/ss/invocation.c
56
if (table == (ss_data **) NULL) {
crypto/krb5/src/util/ss/invocation.c
57
table = (ss_data **) malloc(2 * size);
crypto/krb5/src/util/ss/invocation.c
58
if (table == NULL) {
crypto/krb5/src/util/ss/invocation.c
62
table[0] = table[1] = (ss_data *)NULL;
crypto/krb5/src/util/ss/invocation.c
63
_ss_table = table;
crypto/krb5/src/util/ss/invocation.c
67
for (sci_idx = 1; table[sci_idx] != (ss_data *)NULL; sci_idx++)
crypto/krb5/src/util/ss/invocation.c
69
tmp = (ss_data **) realloc((char *)table,
crypto/krb5/src/util/ss/invocation.c
75
_ss_table = table = tmp;
crypto/krb5/src/util/ss/invocation.c
76
table[sci_idx+1] = (ss_data *) NULL;
crypto/krb5/src/util/ss/invocation.c
77
table[sci_idx] = NULL;
crypto/krb5/src/util/ss/list_rqs.c
30
ss_request_table **table;
crypto/krb5/src/util/ss/list_rqs.c
77
for (table = ss_info(sci_idx)->rqt_tables; *table; table++) {
crypto/krb5/src/util/ss/list_rqs.c
78
entry = (*table)->requests;
crypto/krb5/src/util/verto/verto.c
237
verto_module *table = (verto_module*) symb;
crypto/krb5/src/util/verto/verto.c
241
if (table->vers != VERTO_MODULE_VERSION) {
crypto/krb5/src/util/verto/verto.c
248
if (table->symb && data->reqsym
crypto/krb5/src/util/verto/verto.c
249
&& !module_symbol_is_present(NULL, table->symb)) {
crypto/krb5/src/util/verto/verto.c
251
*err = string_aconcat("Symbol not found: ", table->symb, "!");
crypto/krb5/src/util/verto/verto.c
257
&& (table->types & data->reqtypes) != data->reqtypes) {
crypto/krb5/src/windows/leash/Leash.cpp
1112
if (pIpAddrTable->table[index].dwAddr != 0)
crypto/krb5/src/windows/leashdll/leasherr.c
53
const struct error_table * table;
crypto/krb5/src/windows/leashdll/leasherr.c
67
_link->table=&et;
crypto/krb5/src/windows/leashdll/leasherr.c
77
_link->table=&et;
crypto/openssh/channels.c
2600
channel_handler(struct ssh *ssh, int table, struct timespec *timeout)
crypto/openssh/channels.c
2603
chan_fn **ftab = table == CHAN_PRE ? sc->channel_pre : sc->channel_post;
crypto/openssh/channels.c
2617
if (table == CHAN_PRE)
crypto/openssh/channels.c
2623
if (table == CHAN_PRE && c->type == SSH_CHANNEL_OPEN &&
crypto/openssl/apps/passwd.c
113
int passed_salt = 0, quiet = 0, table = 0, reverse = 0;
crypto/openssl/apps/passwd.c
147
table = 1;
crypto/openssl/apps/passwd.c
272
quiet, table, reverse, pw_maxlen, mode))
crypto/openssl/apps/passwd.c
295
table, reverse, pw_maxlen, mode))
crypto/openssl/apps/passwd.c
49
char *passwd, BIO *out, int quiet, int table,
crypto/openssl/apps/passwd.c
783
char *passwd, BIO *out, int quiet, int table,
crypto/openssl/apps/passwd.c
842
if (table && !reverse)
crypto/openssl/apps/passwd.c
844
else if (table && reverse)
crypto/openssl/crypto/aes/aes_x86core.c
63
static void prefetch256(const void *table)
crypto/openssl/crypto/aes/aes_x86core.c
65
volatile unsigned long *t = (void *)table, ret;
crypto/openssl/crypto/asn1/a_strnid.c
118
DECLARE_OBJ_BSEARCH_CMP_FN(ASN1_STRING_TABLE, ASN1_STRING_TABLE, table);
crypto/openssl/crypto/asn1/a_strnid.c
125
IMPLEMENT_OBJ_BSEARCH_CMP_FN(ASN1_STRING_TABLE, ASN1_STRING_TABLE, table);
crypto/openssl/crypto/bn/bn_exp.c
519
BN_ULONG *table = (BN_ULONG *)buf;
crypto/openssl/crypto/bn/bn_exp.c
525
table[j] = b->d[i];
crypto/openssl/crypto/bn/bn_exp.c
545
volatile BN_ULONG *table = (volatile BN_ULONG *)buf;
crypto/openssl/crypto/bn/bn_exp.c
551
for (i = 0; i < top; i++, table += width) {
crypto/openssl/crypto/bn/bn_exp.c
555
acc |= table[j] & ((BN_ULONG)0 - (constant_time_eq_int(j, idx) & 1));
crypto/openssl/crypto/bn/bn_exp.c
572
for (i = 0; i < top; i++, table += width) {
crypto/openssl/crypto/bn/bn_exp.c
576
acc |= ((table[j + 0 * xstride] & y0) | (table[j + 1 * xstride] & y1) | (table[j + 2 * xstride] & y2) | (table[j + 3 * xstride] & y3))
crypto/openssl/crypto/bn/bn_exp.c
772
const BN_ULONG *n0, const void *table,
crypto/openssl/crypto/bn/bn_exp.c
775
const BN_ULONG *n0, const void *table,
crypto/openssl/crypto/bn/bn_exp.c
778
const BN_ULONG *n0, const void *table,
crypto/openssl/crypto/bn/bn_exp.c
781
const BN_ULONG *n0, const void *table,
crypto/openssl/crypto/bn/bn_exp.c
784
const BN_ULONG *n0, const void *table,
crypto/openssl/crypto/bn/bn_exp.c
819
const void *table, const BN_ULONG *np,
crypto/openssl/crypto/bn/bn_exp.c
822
void *table, size_t power);
crypto/openssl/crypto/bn/bn_exp.c
824
void *table, size_t power);
crypto/openssl/crypto/bn/bn_exp.c
926
const void *table, const BN_ULONG *np,
crypto/openssl/crypto/bn/bn_exp.c
929
void *table, size_t power);
crypto/openssl/crypto/bn/bn_exp.c
930
void bn_gather5(BN_ULONG *out, size_t num, void *table, size_t power);
crypto/openssl/crypto/bn/bn_exp.c
932
const void *table, const BN_ULONG *np,
crypto/openssl/crypto/bn/rsaz_exp.c
260
unsigned char *table = storage + (64 - ((size_t)storage % 64));
crypto/openssl/crypto/bn/rsaz_exp.c
261
BN_ULONG *a_inv = (BN_ULONG *)(table + 16 * 8 * 8);
crypto/openssl/crypto/bn/rsaz_exp.c
262
BN_ULONG *temp = (BN_ULONG *)(table + 16 * 8 * 8 + 8 * 8);
crypto/openssl/crypto/bn/rsaz_exp.c
277
rsaz_512_scatter4(table, temp, 0);
crypto/openssl/crypto/bn/rsaz_exp.c
281
rsaz_512_scatter4(table, a_inv, 1);
crypto/openssl/crypto/bn/rsaz_exp.c
285
rsaz_512_scatter4(table, temp, 2);
crypto/openssl/crypto/bn/rsaz_exp.c
288
rsaz_512_mul_scatter4(temp, a_inv, m, k0, table, index);
crypto/openssl/crypto/bn/rsaz_exp.c
293
rsaz_512_gather4(temp, table, wvalue >> 4);
crypto/openssl/crypto/bn/rsaz_exp.c
295
rsaz_512_mul_gather4(temp, temp, table, m, k0, wvalue & 0xf);
crypto/openssl/crypto/bn/rsaz_exp.c
301
rsaz_512_mul_gather4(temp, temp, table, m, k0, wvalue >> 4);
crypto/openssl/crypto/bn/rsaz_exp.c
304
rsaz_512_mul_gather4(temp, temp, table, m, k0, wvalue & 0x0f);
crypto/openssl/crypto/ec/curve448/curve448.c
221
const niels_t *table,
crypto/openssl/crypto/ec/curve448/curve448.c
224
constant_time_lookup(ni, table, sizeof(niels_s), nelts, idx);
crypto/openssl/crypto/ec/curve448/curve448.c
228
const curve448_precomputed_s *table,
crypto/openssl/crypto/ec/curve448/curve448.c
258
constant_time_lookup_niels(ni, &table->table[j << (t - 1)],
crypto/openssl/crypto/ec/curve448/point_448.h
35
niels_t table[COMBS_N << (COMBS_T - 1)];
crypto/openssl/crypto/ec/ecp_nistz256.c
1276
BN_ULONG table[15][P256_LIMBS];
crypto/openssl/crypto/ec/ecp_nistz256.c
1320
ecp_nistz256_ord_mul_mont(table[0], t, RR);
crypto/openssl/crypto/ec/ecp_nistz256.c
1326
ecp_nistz256_ord_sqr_mont(table[i-1], table[i/2-1], 1);
crypto/openssl/crypto/ec/ecp_nistz256.c
1327
ecp_nistz256_ord_mul_mont(table[i], table[i-1], table[0]);
crypto/openssl/crypto/ec/ecp_nistz256.c
1334
ecp_nistz256_ord_sqr_mont(t, table[15-1], 4); /* f0 */
crypto/openssl/crypto/ec/ecp_nistz256.c
1335
ecp_nistz256_ord_mul_mont(t, t, table[15-1]); /* ff */
crypto/openssl/crypto/ec/ecp_nistz256.c
1362
ecp_nistz256_ord_mul_mont(out, out, table[expLo[i]-1]);
crypto/openssl/crypto/ec/ecp_nistz256.c
1374
ecp_nistz256_ord_sqr_mont(table[i_10], table[i_1], 1);
crypto/openssl/crypto/ec/ecp_nistz256.c
1376
ecp_nistz256_ord_mul_mont(table[i_11], table[i_1], table[i_10]);
crypto/openssl/crypto/ec/ecp_nistz256.c
1378
ecp_nistz256_ord_mul_mont(table[i_101], table[i_11], table[i_10]);
crypto/openssl/crypto/ec/ecp_nistz256.c
1380
ecp_nistz256_ord_mul_mont(table[i_111], table[i_101], table[i_10]);
crypto/openssl/crypto/ec/ecp_nistz256.c
1382
ecp_nistz256_ord_sqr_mont(table[i_1010], table[i_101], 1);
crypto/openssl/crypto/ec/ecp_nistz256.c
1384
ecp_nistz256_ord_mul_mont(table[i_1111], table[i_1010], table[i_101]);
crypto/openssl/crypto/ec/ecp_nistz256.c
1386
ecp_nistz256_ord_sqr_mont(table[i_10101], table[i_1010], 1);
crypto/openssl/crypto/ec/ecp_nistz256.c
1387
ecp_nistz256_ord_mul_mont(table[i_10101], table[i_10101], table[i_1]);
crypto/openssl/crypto/ec/ecp_nistz256.c
1389
ecp_nistz256_ord_sqr_mont(table[i_101010], table[i_10101], 1);
crypto/openssl/crypto/ec/ecp_nistz256.c
1391
ecp_nistz256_ord_mul_mont(table[i_101111], table[i_101010], table[i_101]);
crypto/openssl/crypto/ec/ecp_nistz256.c
1393
ecp_nistz256_ord_mul_mont(table[i_x6], table[i_101010], table[i_10101]);
crypto/openssl/crypto/ec/ecp_nistz256.c
1395
ecp_nistz256_ord_sqr_mont(table[i_x8], table[i_x6], 2);
crypto/openssl/crypto/ec/ecp_nistz256.c
1396
ecp_nistz256_ord_mul_mont(table[i_x8], table[i_x8], table[i_11]);
crypto/openssl/crypto/ec/ecp_nistz256.c
1398
ecp_nistz256_ord_sqr_mont(table[i_x16], table[i_x8], 8);
crypto/openssl/crypto/ec/ecp_nistz256.c
1399
ecp_nistz256_ord_mul_mont(table[i_x16], table[i_x16], table[i_x8]);
crypto/openssl/crypto/ec/ecp_nistz256.c
1401
ecp_nistz256_ord_sqr_mont(table[i_x32], table[i_x16], 16);
crypto/openssl/crypto/ec/ecp_nistz256.c
1402
ecp_nistz256_ord_mul_mont(table[i_x32], table[i_x32], table[i_x16]);
crypto/openssl/crypto/ec/ecp_nistz256.c
1405
ecp_nistz256_ord_sqr_mont(out, table[i_x32], 64);
crypto/openssl/crypto/ec/ecp_nistz256.c
1406
ecp_nistz256_ord_mul_mont(out, out, table[i_x32]);
crypto/openssl/crypto/ec/ecp_nistz256.c
1424
ecp_nistz256_ord_mul_mont(out, out, table[chain[i].i]);
crypto/openssl/crypto/ec/ecp_nistz256.c
620
P256_POINT(*table)
crypto/openssl/crypto/ec/ecp_nistz256.c
630
table = (void *)ALIGNPTR(table_storage, 64);
crypto/openssl/crypto/ec/ecp_nistz256.c
631
temp = (P256_POINT *)(table + num);
crypto/openssl/crypto/ec/ecp_nistz256.c
634
P256_POINT *row = table[i];
crypto/openssl/crypto/ec/ecp_nistz256.c
723
ecp_nistz256_gather_w5(&temp[0], table[0], _booth_recode_w5(wvalue) >> 1);
crypto/openssl/crypto/ec/ecp_nistz256.c
735
ecp_nistz256_gather_w5(&temp[0], table[i], wvalue >> 1);
crypto/openssl/crypto/ec/ecp_nistz256.c
759
ecp_nistz256_gather_w5(&temp[0], table[i], wvalue >> 1);
crypto/openssl/crypto/engine/eng_local.h
60
int engine_table_register(ENGINE_TABLE **table, ENGINE_CLEANUP_CB *cleanup,
crypto/openssl/crypto/engine/eng_local.h
63
void engine_table_unregister(ENGINE_TABLE **table, ENGINE *e);
crypto/openssl/crypto/engine/eng_local.h
64
void engine_table_cleanup(ENGINE_TABLE **table);
crypto/openssl/crypto/engine/eng_local.h
65
ENGINE *ossl_engine_table_select(ENGINE_TABLE **table, int nid,
crypto/openssl/crypto/engine/eng_local.h
69
void engine_table_doall(ENGINE_TABLE *table, engine_table_doall_cb *cb,
crypto/openssl/crypto/engine/eng_table.c
104
fnd = lh_ENGINE_PILE_retrieve(&(*table)->piles, &tmplate);
crypto/openssl/crypto/engine/eng_table.c
117
(void)lh_ENGINE_PILE_insert(&(*table)->piles, fnd);
crypto/openssl/crypto/engine/eng_table.c
118
if (lh_ENGINE_PILE_retrieve(&(*table)->piles, &tmplate) != fnd) {
crypto/openssl/crypto/engine/eng_table.c
167
void engine_table_unregister(ENGINE_TABLE **table, ENGINE *e)
crypto/openssl/crypto/engine/eng_table.c
172
if (int_table_check(table, 0))
crypto/openssl/crypto/engine/eng_table.c
173
lh_ENGINE_PILE_doall_ENGINE(&(*table)->piles, int_unregister_cb, e);
crypto/openssl/crypto/engine/eng_table.c
187
void engine_table_cleanup(ENGINE_TABLE **table)
crypto/openssl/crypto/engine/eng_table.c
191
if (*table) {
crypto/openssl/crypto/engine/eng_table.c
192
lh_ENGINE_PILE_doall(&(*table)->piles, int_cleanup_cb_doall);
crypto/openssl/crypto/engine/eng_table.c
193
lh_ENGINE_PILE_free(&(*table)->piles);
crypto/openssl/crypto/engine/eng_table.c
194
*table = NULL;
crypto/openssl/crypto/engine/eng_table.c
200
ENGINE *ossl_engine_table_select(ENGINE_TABLE **table, int nid,
crypto/openssl/crypto/engine/eng_table.c
212
if (!(*table)) {
crypto/openssl/crypto/engine/eng_table.c
227
if (!int_table_check(table, 0))
crypto/openssl/crypto/engine/eng_table.c
230
fnd = lh_ENGINE_PILE_retrieve(&(*table)->piles, &tmplate);
crypto/openssl/crypto/engine/eng_table.c
308
void engine_table_doall(ENGINE_TABLE *table, engine_table_doall_cb *cb,
crypto/openssl/crypto/engine/eng_table.c
314
if (table)
crypto/openssl/crypto/engine/eng_table.c
315
lh_ENGINE_PILE_doall_ENGINE_PILE_DOALL(&table->piles, int_dall, &dall);
crypto/openssl/crypto/engine/eng_table.c
83
int engine_table_register(ENGINE_TABLE **table, ENGINE_CLEANUP_CB *cleanup,
crypto/openssl/crypto/engine/eng_table.c
92
if (!(*table))
crypto/openssl/crypto/engine/eng_table.c
94
if (!int_table_check(table, 1))
crypto/openssl/crypto/engine/eng_table.c
98
lh_ENGINE_PILE_free(&(*table)->piles);
crypto/openssl/crypto/engine/eng_table.c
99
*table = NULL;
crypto/openssl/crypto/evp/encode.c
18
const unsigned char *table);
crypto/openssl/crypto/evp/encode.c
25
#define conv_bin2ascii(a, table) ((table)[(a) & 0x3f])
crypto/openssl/crypto/evp/encode.c
33
#define conv_bin2ascii(a, table) ((table)[(a) & 0x3f])
crypto/openssl/crypto/evp/encode.c
332
static unsigned char conv_ascii2bin(unsigned char a, const unsigned char *table)
crypto/openssl/crypto/evp/encode.c
336
return table[a];
crypto/openssl/crypto/evp/encode.c
339
static unsigned char conv_ascii2bin(unsigned char a, const unsigned char *table)
crypto/openssl/crypto/evp/encode.c
344
return table[a];
crypto/openssl/crypto/evp/encode.c
457
const unsigned char *table;
crypto/openssl/crypto/evp/encode.c
460
table = srpdata_bin2ascii;
crypto/openssl/crypto/evp/encode.c
462
table = data_bin2ascii;
crypto/openssl/crypto/evp/encode.c
467
*(t++) = conv_bin2ascii(l >> 18L, table);
crypto/openssl/crypto/evp/encode.c
468
*(t++) = conv_bin2ascii(l >> 12L, table);
crypto/openssl/crypto/evp/encode.c
469
*(t++) = conv_bin2ascii(l >> 6L, table);
crypto/openssl/crypto/evp/encode.c
470
*(t++) = conv_bin2ascii(l, table);
crypto/openssl/crypto/evp/encode.c
476
*(t++) = conv_bin2ascii(l >> 18L, table);
crypto/openssl/crypto/evp/encode.c
477
*(t++) = conv_bin2ascii(l >> 12L, table);
crypto/openssl/crypto/evp/encode.c
478
*(t++) = (i == 1) ? '=' : conv_bin2ascii(l >> 6L, table);
crypto/openssl/crypto/evp/encode.c
528
const unsigned char *table;
crypto/openssl/crypto/evp/encode.c
546
table = srpdata_ascii2bin;
crypto/openssl/crypto/evp/encode.c
548
table = data_ascii2bin;
crypto/openssl/crypto/evp/encode.c
552
v = conv_ascii2bin(tmp, table);
crypto/openssl/crypto/evp/encode.c
639
const unsigned char *table;
crypto/openssl/crypto/evp/encode.c
645
table = srpdata_ascii2bin;
crypto/openssl/crypto/evp/encode.c
647
table = data_ascii2bin;
crypto/openssl/crypto/evp/encode.c
650
while ((n > 0) && (conv_ascii2bin(*f, table) == B64_WS)) {
crypto/openssl/crypto/evp/encode.c
659
while ((n > 3) && (B64_NOT_BASE64(conv_ascii2bin(f[n - 1], table))))
crypto/openssl/crypto/evp/encode.c
669
a = conv_ascii2bin(*(f++), table);
crypto/openssl/crypto/evp/encode.c
670
b = conv_ascii2bin(*(f++), table);
crypto/openssl/crypto/evp/encode.c
671
c = conv_ascii2bin(*(f++), table);
crypto/openssl/crypto/evp/encode.c
672
d = conv_ascii2bin(*(f++), table);
crypto/openssl/crypto/evp/encode.c
683
a = conv_ascii2bin(*(f++), table);
crypto/openssl/crypto/evp/encode.c
684
b = conv_ascii2bin(*(f++), table);
crypto/openssl/crypto/evp/encode.c
685
c = conv_ascii2bin(*(f++), table);
crypto/openssl/crypto/evp/encode.c
686
d = conv_ascii2bin(*(f++), table);
crypto/openssl/crypto/mem_sec.c
355
static int sh_testbit(char *ptr, int list, unsigned char *table)
crypto/openssl/crypto/mem_sec.c
363
return TESTBIT(table, bit);
crypto/openssl/crypto/mem_sec.c
366
static void sh_clearbit(char *ptr, int list, unsigned char *table)
crypto/openssl/crypto/mem_sec.c
374
OPENSSL_assert(TESTBIT(table, bit));
crypto/openssl/crypto/mem_sec.c
375
CLEARBIT(table, bit);
crypto/openssl/crypto/mem_sec.c
378
static void sh_setbit(char *ptr, int list, unsigned char *table)
crypto/openssl/crypto/mem_sec.c
386
OPENSSL_assert(!TESTBIT(table, bit));
crypto/openssl/crypto/mem_sec.c
387
SETBIT(table, bit);
crypto/openssl/crypto/x509/x509_vpm.c
579
DECLARE_OBJ_BSEARCH_CMP_FN(X509_VERIFY_PARAM, X509_VERIFY_PARAM, table);
crypto/openssl/crypto/x509/x509_vpm.c
580
IMPLEMENT_OBJ_BSEARCH_CMP_FN(X509_VERIFY_PARAM, X509_VERIFY_PARAM, table);
crypto/openssl/include/internal/constant_time.h
454
const void *table,
crypto/openssl/include/internal/constant_time.h
460
const unsigned char *tablec = (const unsigned char *)table;
crypto/openssl/include/openssl/x509v3.h
640
#define EXT_BITSTRING(nid, table) { nid, 0, ASN1_ITEM_ref(ASN1_BIT_STRING), \
crypto/openssl/include/openssl/x509v3.h
646
table }
crypto/openssl/ms/uplink.c
34
void OPENSSL_Uplink(volatile void **table, int index)
crypto/openssl/ms/uplink.c
59
_T("OPENSSL_Uplink(%p,%02X): "), table, index);
crypto/openssl/ms/uplink.c
99
table[index] = func;
crypto/openssl/ssl/ssl_ciph.c
109
static int ssl_cipher_info_find(const ssl_cipher_table *table,
crypto/openssl/ssl/ssl_ciph.c
113
for (i = 0; i < table_cnt; i++, table++) {
crypto/openssl/ssl/ssl_ciph.c
114
if (table->mask == mask)
crypto/openssl/ssl/ssl_ciph.c
120
#define ssl_cipher_info_lookup(table, x) \
crypto/openssl/ssl/ssl_ciph.c
121
ssl_cipher_info_find(table, OSSL_NELEM(table), x)
crypto/openssl/ssl/statem/statem_lib.c
1990
const version_info *table;
crypto/openssl/ssl/statem/statem_lib.c
1997
table = tls_version_table;
crypto/openssl/ssl/statem/statem_lib.c
2000
table = dtls_version_table;
crypto/openssl/ssl/statem/statem_lib.c
2004
for (vent = table;
crypto/openssl/ssl/statem/statem_lib.c
2036
const version_info *table;
crypto/openssl/ssl/statem/statem_lib.c
2052
table = tls_version_table;
crypto/openssl/ssl/statem/statem_lib.c
2054
table = dtls_version_table;
crypto/openssl/ssl/statem/statem_lib.c
2060
for (vent = table; vent->version != 0; ++vent) {
crypto/openssl/ssl/statem/statem_lib.c
2176
const version_info *table;
crypto/openssl/ssl/statem/statem_lib.c
2203
table = tls_version_table;
crypto/openssl/ssl/statem/statem_lib.c
2206
table = dtls_version_table;
crypto/openssl/ssl/statem/statem_lib.c
2284
for (vent = table; vent->version != 0; ++vent) {
crypto/openssl/ssl/statem/statem_lib.c
2319
const version_info *table;
crypto/openssl/ssl/statem/statem_lib.c
2363
table = tls_version_table;
crypto/openssl/ssl/statem/statem_lib.c
2366
table = dtls_version_table;
crypto/openssl/ssl/statem/statem_lib.c
2414
for (vent = table; vent->version != 0; ++vent) {
crypto/openssl/ssl/statem/statem_lib.c
2459
const version_info *table;
crypto/openssl/ssl/statem/statem_lib.c
2481
table = tls_version_table;
crypto/openssl/ssl/statem/statem_lib.c
2484
table = dtls_version_table;
crypto/openssl/ssl/statem/statem_lib.c
2513
for (vent = table; vent->version != 0; ++vent) {
crypto/openssl/ssl/t1_trce.c
27
#define ssl_trace_list(bio, indent, msg, msglen, value, table) \
crypto/openssl/ssl/t1_trce.c
29
table, OSSL_NELEM(table))
lib/clang/liblldb/LLDBWrapLua.cpp
1173
SWIGINTERN void SWIG_Lua_elua_emulate_register(lua_State *L, const swig_elua_entry *table)
lib/clang/liblldb/LLDBWrapLua.cpp
1188
lua_rawsetp(L, parsed_tables_array, table);
lib/clang/liblldb/LLDBWrapLua.cpp
1191
for(i = 0;table[i].key.type != LUA_TNIL || table[i].value.type != LUA_TNIL;i++)
lib/clang/liblldb/LLDBWrapLua.cpp
1193
const swig_elua_entry *entry = table + i;
lib/clang/liblldb/LLDBWrapLua.cpp
1221
lua_rawgetp(L,parsed_tables_array, entry->value.value.table);
lib/clang/liblldb/LLDBWrapLua.cpp
1226
SWIG_Lua_elua_emulate_register(L,entry->value.value.table);
lib/clang/liblldb/LLDBWrapLua.cpp
812
const struct swig_elua_entry *table;
lib/clang/liblldb/LLDBWrapLua.cpp
835
#define LROVAL(x) {LUA_TTABLE, {.table = x} }
lib/libc/gen/fnmatch.c
243
struct xlocale_collate *table =
lib/libc/gen/fnmatch.c
447
if (table->__collate_load_error ?
lib/libc/gen/glob-compat11.c
877
struct xlocale_collate *table =
lib/libc/gen/glob-compat11.c
908
if (table->__collate_load_error ?
lib/libc/gen/glob.c
939
struct xlocale_collate *table =
lib/libc/gen/glob.c
970
if (table->__collate_load_error ?
lib/libc/locale/collate.c
100
struct xlocale_collate *table = calloc(sizeof(struct xlocale_collate),
lib/libc/locale/collate.c
102
if (table == NULL)
lib/libc/locale/collate.c
104
table->header.header.destructor = destruct_collate;
lib/libc/locale/collate.c
110
if (__collate_load_tables_l(encoding, table) != _LDP_LOADED) {
lib/libc/locale/collate.c
111
xlocale_release(table);
lib/libc/locale/collate.c
114
return (table);
lib/libc/locale/collate.c
128
__collate_load_tables_l(const char *encoding, struct xlocale_collate *table)
lib/libc/locale/collate.c
138
table->__collate_load_error = 1;
lib/libc/locale/collate.c
177
strlcat(table->header.version, TMP, sizeof (table->header.version));
lib/libc/locale/collate.c
203
if (table->map && (table->maplen > 0)) {
lib/libc/locale/collate.c
204
(void) munmap(table->map, table->maplen);
lib/libc/locale/collate.c
206
table->map = map;
lib/libc/locale/collate.c
207
table->maplen = sbuf.st_size;
lib/libc/locale/collate.c
208
table->info = info;
lib/libc/locale/collate.c
209
table->char_pri_table = (void *)TMP;
lib/libc/locale/collate.c
214
table->subst_table[z] = (void *)TMP;
lib/libc/locale/collate.c
217
table->subst_table[z] = NULL;
lib/libc/locale/collate.c
222
table->chain_pri_table = (void *)TMP;
lib/libc/locale/collate.c
225
table->chain_pri_table = NULL;
lib/libc/locale/collate.c
227
table->large_pri_table = (void *)TMP;
lib/libc/locale/collate.c
229
table->large_pri_table = NULL;
lib/libc/locale/collate.c
231
table->__collate_load_error = 0;
lib/libc/locale/collate.c
236
substsearch(struct xlocale_collate *table, const wchar_t key, int pass)
lib/libc/locale/collate.c
239
int n = table->info->subst_count[pass];
lib/libc/locale/collate.c
244
if (pass >= table->info->directive_count)
lib/libc/locale/collate.c
250
p = table->subst_table[pass] + (key & ~COLLATE_SUBST_PRIORITY);
lib/libc/locale/collate.c
257
chainsearch(struct xlocale_collate *table, const wchar_t *key, int *len)
lib/libc/locale/collate.c
260
int high = table->info->chain_count - 1;
lib/libc/locale/collate.c
263
collate_chain_t *tab = table->chain_pri_table;
lib/libc/locale/collate.c
289
largesearch(struct xlocale_collate *table, const wchar_t key)
lib/libc/locale/collate.c
292
int high = table->info->large_count - 1;
lib/libc/locale/collate.c
295
collate_large_t *tab = table->large_pri_table;
lib/libc/locale/collate.c
315
_collate_lookup(struct xlocale_collate *table, const wchar_t *t, int *len,
lib/libc/locale/collate.c
327
if (which >= table->info->directive_count) {
lib/libc/locale/collate.c
356
if (((p2 = chainsearch(table, t, &l)) != NULL) &&
lib/libc/locale/collate.c
368
*pri = table->char_pri_table[*t].pri[which];
lib/libc/locale/collate.c
370
} else if ((table->info->large_count > 0) &&
lib/libc/locale/collate.c
371
((match = largesearch(table, *t)) != NULL)) {
lib/libc/locale/collate.c
382
if (table->info->directive[which] & DIRECTIVE_UNDEFINED) {
lib/libc/locale/collate.c
386
*pri = table->info->undef_pri[which];
lib/libc/locale/collate.c
404
if ((sptr = substsearch(table, *pri, which)) != NULL) {
lib/libc/locale/collate.c
418
_collate_wxfrm(struct xlocale_collate *table, const wchar_t *src, wchar_t *xf,
lib/libc/locale/collate.c
430
int ndir = table->info->directive_count;
lib/libc/locale/collate.c
451
direc = table->info->directive[pass];
lib/libc/locale/collate.c
475
_collate_lookup(table, t, &len, &pri, pass, &state);
lib/libc/locale/collate.c
494
_collate_lookup(table, t, &len, &pri, pass, &state);
lib/libc/locale/collate.c
546
xfrm(struct xlocale_collate *table, unsigned char *p, int pri, int pass)
lib/libc/locale/collate.c
549
uint32_t val = (uint32_t)table->info->pri_count[pass];
lib/libc/locale/collate.c
563
_collate_sxfrm(struct xlocale_collate *table, const wchar_t *src, char *xf,
lib/libc/locale/collate.c
577
int ndir = table->info->directive_count;
lib/libc/locale/collate.c
598
direc = table->info->directive[pass];
lib/libc/locale/collate.c
623
_collate_lookup(table, t, &len, &pri, pass, &state);
lib/libc/locale/collate.c
634
b = xfrm(table, buf, pri, pass);
lib/libc/locale/collate.c
649
_collate_lookup(table, t, &len, &pri, pass, &state);
lib/libc/locale/collate.c
660
b = xfrm(table, buf, pri, pass);
lib/libc/locale/collate.c
699
struct xlocale_collate *table =
lib/libc/locale/collate.c
702
if (table->__collate_load_error)
lib/libc/locale/collate.c
708
e = table->char_pri_table[*str].pri[0];
lib/libc/locale/collate.c
709
else if (table->info->large_count > 0) {
lib/libc/locale/collate.c
711
match_large = largesearch(table, *str);
lib/libc/locale/collate.c
719
if (table->info->chain_count > 0) {
lib/libc/locale/collate.c
726
match_chain = chainsearch(table, name, &clen);
lib/libc/locale/collate.c
755
struct xlocale_collate *table;
lib/libc/locale/collate.c
758
table =
lib/libc/locale/collate.c
761
if (table->__collate_load_error) {
lib/libc/locale/collate.c
78
__collate_load_tables_l(const char *encoding, struct xlocale_collate *table);
lib/libc/locale/collate.c
785
if (table->char_pri_table[*wname].pri[0] >= 0) {
lib/libc/locale/collate.c
791
} else if (table->info->large_count > 0) {
lib/libc/locale/collate.c
793
match = largesearch(table, *wname);
lib/libc/locale/collate.c
803
if (table->info->chain_count > 0) {
lib/libc/locale/collate.c
806
match = chainsearch(table, wname, &ll);
lib/libc/locale/collate.c
83
struct xlocale_collate *table = t;
lib/libc/locale/collate.c
831
struct xlocale_collate *table;
lib/libc/locale/collate.c
835
table =
lib/libc/locale/collate.c
838
if (table->__collate_load_error)
lib/libc/locale/collate.c
84
if (table->map && (table->maplen > 0)) {
lib/libc/locale/collate.c
85
(void) munmap(table->map, table->maplen);
lib/libc/locale/collate.c
857
e = table->char_pri_table[*wname].pri[0];
lib/libc/locale/collate.c
858
else if (table->info->large_count > 0) {
lib/libc/locale/collate.c
860
match = largesearch(table, *wname);
lib/libc/locale/collate.c
869
if (table->info->chain_count > 0) {
lib/libc/locale/collate.c
872
match = chainsearch(table, wname, &ll);
lib/libc/locale/collate.c
909
struct xlocale_collate *table;
lib/libc/locale/collate.c
913
table =
lib/libc/locale/collate.c
916
if (table->__collate_load_error)
lib/libc/locale/collate.c
929
while (sl > 0 && len < table->info->chain_max_len) {
lib/libc/locale/collate.c
940
if (len > 1 && (ch = chainsearch(table, buf, &i)) != NULL) {
lib/libc/locale/collate.c
950
if (equiv_class == table->char_pri_table[*buf].pri[0])
lib/libc/locale/collate.c
952
} else if (table->info->large_count > 0) {
lib/libc/locale/collate.c
954
match = largesearch(table, *buf);
lib/libc/regex/regcomp.c
1097
struct xlocale_collate *table =
lib/libc/regex/regcomp.c
1147
if (table->__collate_load_error || MB_CUR_MAX > 1) {
lib/libc/stdio/printf-pos.c
107
if (types->table != types->stattable)
lib/libc/stdio/printf-pos.c
108
free (types->table);
lib/libc/stdio/printf-pos.c
138
types->table[types->nextarg++] = type;
lib/libc/stdio/printf-pos.c
149
types->table[types->nextarg++] = T_INTMAXT;
lib/libc/stdio/printf-pos.c
151
types->table[types->nextarg++] = T_SSIZET;
lib/libc/stdio/printf-pos.c
153
types->table[types->nextarg++] = T_PTRDIFFT;
lib/libc/stdio/printf-pos.c
155
types->table[types->nextarg++] = T_LLONG;
lib/libc/stdio/printf-pos.c
157
types->table[types->nextarg++] = T_LONG;
lib/libc/stdio/printf-pos.c
159
types->table[types->nextarg++] = T_INT;
lib/libc/stdio/printf-pos.c
170
types->table[types->nextarg++] = T_UINTMAXT;
lib/libc/stdio/printf-pos.c
172
types->table[types->nextarg++] = T_SIZET;
lib/libc/stdio/printf-pos.c
174
types->table[types->nextarg++] = T_SIZET;
lib/libc/stdio/printf-pos.c
176
types->table[types->nextarg++] = T_U_LLONG;
lib/libc/stdio/printf-pos.c
178
types->table[types->nextarg++] = T_U_LONG;
lib/libc/stdio/printf-pos.c
180
types->table[types->nextarg++] = T_U_INT;
lib/libc/stdio/printf-pos.c
629
enum typeid *const oldtable = types->table;
lib/libc/stdio/printf-pos.c
653
types->table = newtable;
lib/libc/stdio/printf-pos.c
677
switch (types->table[n]) {
lib/libc/stdio/printf-pos.c
74
enum typeid *table; /* table of types */
lib/libc/stdio/printf-pos.c
92
types->table = types->stattable;
lib/libc/stdio/printf-pos.c
97
types->table[n] = T_UNUSED;
lib/libc/stdio/vfscanf.c
876
struct xlocale_collate *table =
lib/libc/stdio/vfscanf.c
931
|| (table->__collate_load_error ? n < c :
lib/libc/stdio/vfscanf.c
940
if (table->__collate_load_error) {
lib/libc/string/strcoll.c
73
struct xlocale_collate *table =
lib/libc/string/strcoll.c
76
if (table->__collate_load_error)
lib/libc/string/strxfrm.c
58
struct xlocale_collate *table =
lib/libc/string/strxfrm.c
74
if (table->__collate_load_error)
lib/libc/string/strxfrm.c
83
if ((xlen = _collate_sxfrm(table, wcs, dest, len)) == (size_t)-1)
lib/libc/string/wcscoll.c
120
_collate_lookup(table, w1, &len1,
lib/libc/string/wcscoll.c
133
_collate_lookup(table, w2, &len2,
lib/libc/string/wcscoll.c
167
_collate_lookup(table, w1, &len1, &pri1,
lib/libc/string/wcscoll.c
183
_collate_lookup(table, w2, &len2, &pri2,
lib/libc/string/wcscoll.c
50
struct xlocale_collate *table =
lib/libc/string/wcscoll.c
53
if (table->__collate_load_error || ret == 0)
lib/libc/string/wcscoll.c
73
for (pass = 0; pass <= table->info->directive_count; pass++) {
lib/libc/string/wcscoll.c
81
if (pass == table->info->directive_count) {
lib/libc/string/wcscoll.c
84
direc = table->info->directive[pass];
lib/libc/string/wcsxfrm.c
46
struct xlocale_collate *table =
lib/libc/string/wcsxfrm.c
55
if ((table->__collate_load_error) ||
lib/libc/string/wcsxfrm.c
56
((slen = _collate_wxfrm(table, src, dest, len)) == (size_t)-1)) {
lib/libifconfig/libifconfig_sfp.c
63
find_zero_bit(const struct sfp_enum_metadata *table, int value, int sz)
lib/libifconfig/libifconfig_sfp.c
70
if (find_metadata(table, value & v) != NULL) {
lib/libifconfig/libifconfig_sfp_tables.tpl.c
39
find_metadata(const struct sfp_enum_metadata *table, int value)
lib/libifconfig/libifconfig_sfp_tables.tpl.c
41
while (table->value != value && table->symbol != NULL)
lib/libifconfig/libifconfig_sfp_tables.tpl.c
42
++table;
lib/libifconfig/libifconfig_sfp_tables.tpl.c
43
return (table->symbol != NULL ? table : NULL);
lib/libifconfig/libifconfig_sfp_tables.tpl.c
63
_, sym, desc, disp = table.unpack(item)
lib/libifconfig/libifconfig_sfp_tables.tpl.h
50
val, sym, desc, disp = table.unpack(item)
lib/libkiconv/xlat16_iconv.c
157
uint32_t table[0x80];
lib/libkiconv/xlat16_iconv.c
203
table[us] = c | XLAT16_HAS_LOWER_CASE;
lib/libkiconv/xlat16_iconv.c
208
table[us] = c | XLAT16_HAS_UPPER_CASE;
lib/libkiconv/xlat16_iconv.c
210
table[us] = 0;
lib/libkiconv/xlat16_iconv.c
214
if (table[us])
lib/libkiconv/xlat16_iconv.c
215
xt.idx[ls] = table;
lib/libkiconv/xlat16_iconv.c
227
table[us] = 0;
lib/libkiconv/xlat16_iconv.c
237
table[us] = (ud << 8) | ld;
lib/libkiconv/xlat16_iconv.c
238
table[us] |= (u_char)dst[2] << 16;
lib/libkiconv/xlat16_iconv.c
239
table[us] |= XLAT16_IS_3BYTE_CHR;
lib/libkiconv/xlat16_iconv.c
241
table[us] = 0;
lib/libkiconv/xlat16_iconv.c
246
table[us] = quirk_unix2vendor((ud << 8) | ld,
lib/libkiconv/xlat16_iconv.c
248
if ((table[us] >> 8) == 0)
lib/libkiconv/xlat16_iconv.c
249
table[us] |= XLAT16_ACCEPT_NULL_OUT;
lib/libkiconv/xlat16_iconv.c
252
table[us] = ud;
lib/libkiconv/xlat16_iconv.c
254
table[us] |= (u_char)tolower(ud) << 16;
lib/libkiconv/xlat16_iconv.c
255
table[us] |= XLAT16_HAS_LOWER_CASE;
lib/libkiconv/xlat16_iconv.c
258
table[us] |= (u_char)toupper(ud) << 16;
lib/libkiconv/xlat16_iconv.c
259
table[us] |= XLAT16_HAS_UPPER_CASE;
lib/libkiconv/xlat16_iconv.c
267
table[us] |= XLAT16_ACCEPT_NULL_IN;
lib/libkiconv/xlat16_iconv.c
272
table[us] |= (u_char)tolower(c) << 16;
lib/libkiconv/xlat16_iconv.c
273
table[us] |= XLAT16_HAS_FROM_LOWER_CASE;
lib/libkiconv/xlat16_iconv.c
276
table[us] |= (u_char)toupper(c) << 16;
lib/libkiconv/xlat16_iconv.c
277
table[us] |= XLAT16_HAS_FROM_UPPER_CASE;
lib/libkiconv/xlat16_iconv.c
282
if (table[us] == 0)
lib/libkiconv/xlat16_iconv.c
288
xt.idx[ls] = table;
lib/libkiconv/xlat16_iconv.c
291
memcpy(p, table, sizeof(table));
lib/libkiconv/xlat16_iconv.c
292
p += sizeof(table);
lib/libkldelf/elf.c
672
pnp->table = elf_address_from_pointer(efile, p + offset);
lib/libkldelf/kldelf.h
135
GElf_Addr table; /* Pointer to pnp table */
lib/libpfctl/libpfctl.c
3503
pfctl_add_table(struct pfctl_handle *h, struct pfr_table *table,
lib/libpfctl/libpfctl.c
3519
snl_add_msg_attr_string(&nw, PF_T_ANCHOR, table->pfrt_anchor);
lib/libpfctl/libpfctl.c
3520
snl_add_msg_attr_string(&nw, PF_T_NAME, table->pfrt_name);
lib/libpfctl/libpfctl.c
3521
snl_add_msg_attr_u32(&nw, PF_T_TABLE_FLAGS, table->pfrt_flags);
lib/libpfctl/libpfctl.c
3541
pfctl_del_table(struct pfctl_handle *h, struct pfr_table *table,
lib/libpfctl/libpfctl.c
3557
snl_add_msg_attr_string(&nw, PF_T_ANCHOR, table->pfrt_anchor);
lib/libpfctl/libpfctl.c
3558
snl_add_msg_attr_string(&nw, PF_T_NAME, table->pfrt_name);
lib/libpfctl/libpfctl.c
3559
snl_add_msg_attr_u32(&nw, PF_T_TABLE_FLAGS, table->pfrt_flags);
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/libpmc/libpmc_pmu_util.c
290
for (i = 0, pe = pme->table; pe->name || pe->desc || pe->event; pe++, i++) {
lib/libpmc/libpmc_pmu_util.c
321
assert(pme->table[idx].name);
lib/libpmc/libpmc_pmu_util.c
322
return (pme->table[idx].name);
lib/libpmc/libpmc_pmu_util.c
432
for (pe = pme->table; pe->name || pe->desc || pe->event; pe++) {
lib/libpmc/libpmc_pmu_util.c
451
for (pe = pme->table; pe->name || pe->desc || pe->event; pe++) {
lib/libpmc/libpmc_pmu_util.c
468
for (pe = pme->table; pe->name || pe->desc || pe->event; pe++) {
lib/libpmc/libpmc_pmu_util.c
488
for (pe = pme->table; pe->name || pe->desc || pe->event; pe++) {
lib/libpmc/libpmc_pmu_util.c
493
if (pe != pme->table)
lib/libpmc/pmu-events/jevents.c
278
static const char *field_to_perf(struct map *table, char *map, jsmntok_t *val)
lib/libpmc/pmu-events/jevents.c
282
for (i = 0; table[i].json; i++) {
lib/libpmc/pmu-events/jevents.c
283
if (json_streq(map, val, table[i].json))
lib/libpmc/pmu-events/jevents.c
284
return table[i].perf;
lib/libpmc/pmu-events/pmu-events.h
49
const struct pmu_event *table;
lib/libpmc/pmu-events/pmu-events.h
54
const struct pmu_event *table;
lib/libsysdecode/support.c
107
return (print_mask_int(fp, table, val, rem));
lib/libsysdecode/support.c
114
print_mask_0ul(FILE *fp, struct name_table *table, u_long lval, u_long *rem)
lib/libsysdecode/support.c
128
print_mask_part(fp, table, &val, &printed);
lib/libsysdecode/support.c
155
print_value(FILE *fp, struct name_table *table, uintmax_t val)
lib/libsysdecode/support.c
159
str = lookup_value(table, val);
lib/libsysdecode/support.c
34
lookup_value(struct name_table *table, uintmax_t val)
lib/libsysdecode/support.c
37
for (; table->str != NULL; table++)
lib/libsysdecode/support.c
38
if (table->val == val)
lib/libsysdecode/support.c
39
return (table->str);
lib/libsysdecode/support.c
50
print_mask_part(FILE *fp, struct name_table *table, uintmax_t *valp,
lib/libsysdecode/support.c
56
for (; table->str != NULL; table++) {
lib/libsysdecode/support.c
57
if ((table->val & rem) == table->val) {
lib/libsysdecode/support.c
62
if (table->val == 0 && *valp != 0)
lib/libsysdecode/support.c
64
fprintf(fp, "%s%s", *printed ? "|" : "", table->str);
lib/libsysdecode/support.c
66
rem &= ~table->val;
lib/libsysdecode/support.c
81
print_mask_int(FILE *fp, struct name_table *table, int ival, int *rem)
lib/libsysdecode/support.c
88
print_mask_part(fp, table, &val, &printed);
lib/libsysdecode/support.c
98
print_mask_0(FILE *fp, struct name_table *table, int val, int *rem)
libexec/bootpd/hash.c
124
bucketptr = hashtable->table;
libexec/bootpd/hash.c
130
hashtable->member = (hashtable->table)[0];
libexec/bootpd/hash.c
181
memberptr = (hashtable->table)[hashcode % (hashtable->size)];
libexec/bootpd/hash.c
218
temp->next = (hashtable->table)[hashcode];
libexec/bootpd/hash.c
219
(hashtable->table)[hashcode] = temp;
libexec/bootpd/hash.c
247
memberptr = (hashtable->table)[hashcode];
libexec/bootpd/hash.c
249
(hashtable->table)[hashcode] = memberptr->next;
libexec/bootpd/hash.c
255
memberptr = (hashtable->table)[hashcode];
libexec/bootpd/hash.c
299
memberptr = (hashtable->table)[hashcode % (hashtable->size)];
libexec/bootpd/hash.c
335
!(memberptr = (hashtable->table)[bucket])) {
libexec/bootpd/hash.c
347
hashtable->member = (hashtable->table)[0];
libexec/bootpd/hash.c
371
hashtable->member = (hashtable->table)[0];
libexec/bootpd/hash.c
83
hashtblptr->member = (hashtblptr->table)[0];
libexec/bootpd/hash.h
115
hash_member *table[1]; /* Dynamically extended */
libexec/mknetid/hash.c
109
struct grouplist *lookup(struct member_entry *table[], char *key)
libexec/mknetid/hash.c
113
cur = table[hashkey(key)];
libexec/mknetid/hash.c
129
void mstore (struct member_entry *table[], char *key, int gid, int dup)
libexec/mknetid/hash.c
136
cur = table[i];
libexec/mknetid/hash.c
161
new->next = table[i];
libexec/mknetid/hash.c
162
table[i] = new;
libexec/revnetgroup/hash.c
111
lookup(struct group_entry *table[], char *key)
libexec/revnetgroup/hash.c
115
cur = table[hashkey(key)];
libexec/revnetgroup/hash.c
144
store(struct group_entry *table[], char *key, char *data)
libexec/revnetgroup/hash.c
154
new->next = table[i];
libexec/revnetgroup/hash.c
155
table[i] = new;
libexec/revnetgroup/hash.c
173
mstore(struct member_entry *table[], char *key, char *data, char *domain)
libexec/revnetgroup/hash.c
180
cur = table[i];
libexec/revnetgroup/hash.c
201
new->next = table[i];
libexec/revnetgroup/hash.c
202
table[i] = new;
libexec/talkd/table.c
124
for (ptr = table; ptr != NIL; ptr = next) {
libexec/talkd/table.c
166
ptr->next = table;
libexec/talkd/table.c
170
table = ptr;
libexec/talkd/table.c
198
for (ptr = table; ptr != NIL; ptr = ptr->next) {
libexec/talkd/table.c
220
if (table == ptr)
libexec/talkd/table.c
221
table = ptr->next;
libexec/talkd/table.c
70
static TABLE_ENTRY *table = NIL;
libexec/talkd/table.c
86
for (ptr = table; ptr != NIL; ptr = next) {
sbin/camcontrol/camcontrol.c
271
camcontrol_optret getoption(struct camcontrol_opts *table, char *arg,
sbin/camcontrol/camcontrol.c
376
getoption(struct camcontrol_opts *table, char *arg, uint32_t *cmdnum,
sbin/camcontrol/camcontrol.c
382
for (opts = table; (opts != NULL) && (opts->optname != NULL);
sbin/camcontrol/persist.c
440
struct scsi_nv *table = NULL;
sbin/camcontrol/persist.c
523
table = persist_in_actions;
sbin/camcontrol/persist.c
528
table = persist_out_actions;
sbin/camcontrol/persist.c
540
status = scsi_get_nv(table, table_size, optarg,
sbin/camcontrol/persist.c
543
action = table[table_entry].value;
sbin/dhclient/hash.c
100
table->buckets[hashno] = bp;
sbin/dhclient/hash.c
104
hash_lookup(struct hash_table *table, unsigned char *name, int len)
sbin/dhclient/hash.c
109
if (!table)
sbin/dhclient/hash.c
115
hashno = do_hash(name, len, table->hash_count);
sbin/dhclient/hash.c
117
for (bp = table->buckets[hashno]; bp; bp = bp->next)
sbin/dhclient/hash.c
78
void add_hash(struct hash_table *table, const unsigned char *name, int len,
sbin/dhclient/hash.c
84
if (!table)
sbin/dhclient/hash.c
89
hashno = do_hash(name, len, table->hash_count);
sbin/dhclient/hash.c
98
bp->next = table->buckets[hashno];
sbin/dump/optr.c
301
static SLIST_HEAD(, pfstab) table;
sbin/dump/optr.c
324
SLIST_INSERT_HEAD(&table, pf, pf_list);
sbin/dump/optr.c
342
SLIST_FOREACH(pf, &table, pf_list) {
sbin/ipf/ipfstat/ipfstat.c
1113
ipftable_t table;
sbin/ipf/ipfstat/ipfstat.c
1127
obj.ipfo_size = sizeof(table);
sbin/ipf/ipfstat/ipfstat.c
1128
obj.ipfo_ptr = &table;
sbin/ipf/ipfstat/ipfstat.c
1130
table.ita_type = IPFTABLE_BUCKETS;
sbin/ipf/ipfstat/ipfstat.c
1131
table.ita_table = buckets;
sbin/ipf/ipfstat/ipfstat.c
2298
ipftq_t table[IPF_TCP_NSTATES];
sbin/ipf/ipfstat/ipfstat.c
2303
obj.ipfo_size = sizeof(table);
sbin/ipf/ipfstat/ipfstat.c
2304
obj.ipfo_ptr = (void *)table;
sbin/ipf/ipfstat/ipfstat.c
2308
printtqtable(table);
sbin/ipf/ipfsync/ipfsyncd.c
616
printtable(table)
sbin/ipf/ipfsync/ipfsyncd.c
617
int table;
sbin/ipf/ipfsync/ipfsyncd.c
619
switch (table)
sbin/ipf/ipfsync/ipfsyncd.c
628
printf(" table:Unknown(%d)", table);
sbin/ipf/ipmon/ipmon.c
300
find_icmpsubtype(int type, icmp_subtype_t *table, size_t tablesz)
sbin/ipf/ipmon/ipmon.c
307
if ((type < 0) || (type > table[tablesz - 2].ist_val))
sbin/ipf/ipmon/ipmon.c
310
if (table[type].ist_val == type)
sbin/ipf/ipmon/ipmon.c
311
return (table + type);
sbin/ipf/ipmon/ipmon.c
313
for (ist = table; ist->ist_val != -2; ist++)
sbin/ipf/ipmon/ipmon.c
321
find_icmptype(int type, icmp_type_t *table, size_t tablesz)
sbin/ipf/ipmon/ipmon.c
328
if ((type < 0) || (type > table[tablesz - 2].it_val))
sbin/ipf/ipmon/ipmon.c
331
if (table[type].it_val == type)
sbin/ipf/ipmon/ipmon.c
332
return (table + type);
sbin/ipf/ipmon/ipmon.c
334
for (it = table; it->it_val != -2; it++)
sbin/ipf/ipnat/ipnat.c
394
ipftable_t table;
sbin/ipf/ipnat/ipnat.c
408
obj.ipfo_size = sizeof(table);
sbin/ipf/ipnat/ipnat.c
409
obj.ipfo_ptr = &table;
sbin/ipf/ipnat/ipnat.c
412
table.ita_type = IPFTABLE_BUCKETS_NATIN;
sbin/ipf/ipnat/ipnat.c
414
table.ita_type = IPFTABLE_BUCKETS_NATOUT;
sbin/ipf/ipnat/ipnat.c
416
table.ita_table = buckets;
sbin/ipf/ippool/ippool.c
1004
printhash_live(&table, fd, poolname, opts, pool_fields);
sbin/ipf/ippool/ippool.c
1006
htstp->iphs_tables = table.iph_next;
sbin/ipf/ippool/ippool.c
1016
ippool_dst_t table;
sbin/ipf/ippool/ippool.c
1028
iter.ili_data = &table;
sbin/ipf/ippool/ippool.c
1038
printdstl_live(&table, fd, poolname, opts, pool_fields);
sbin/ipf/ippool/ippool.c
1040
dlstp->ipls_list[role] = table.ipld_next;
sbin/ipf/ippool/ippool.c
982
iphtable_t table;
sbin/ipf/ippool/ippool.c
994
iter.ili_data = &table;
sbin/ipf/ippool/ippool_y.y
100
line: table role ipftree eol { ip_pool_node_t *n;
sbin/ipf/ippool/ippool_y.y
111
| table role ipfhash eol { iphtent_t *h;
sbin/ipf/ippool/ippool_y.y
155
table: IPT_TABLE { bzero((char *)&ipht, sizeof(ipht));
sbin/ipf/ippool/ippool_y.y
83
%type <num> role table inout unit dstopts weighting
sbin/ipf/libipf/parsefields.c
23
f = findword(table, s);
sbin/ipf/libipf/parsefields.c
6
wordtab_t *parsefields(wordtab_t *table, char *arg)
sbin/ipf/libipf/printhash.c
15
iphtent_t *ipep, **table;
sbin/ipf/libipf/printhash.c
35
sz = iph.iph_size * sizeof(*table);
sbin/ipf/libipf/printhash.c
36
table = malloc(sz);
sbin/ipf/libipf/printhash.c
37
if ((*copyfunc)((char *)iph.iph_table, (char *)table, sz))
sbin/ipf/libipf/printhash.c
47
free(table);
sbin/ipf/libipf/printtqtable.c
13
printtqtable(ipftq_t *table)
sbin/ipf/libipf/printtqtable.c
23
PRINTF(" %5d", table[i].ifq_ref - 1);
sbin/ipfw/ipfw2.c
1419
insntoc(&cmd->o, table)->value, t);
sbin/ipfw/ipfw2.c
756
match_token(struct _s_x *table, const char *string)
sbin/ipfw/ipfw2.c
761
for (pt = table ; i && pt->s != NULL ; pt++)
sbin/ipfw/ipfw2.c
777
match_token_relaxed(struct _s_x *table, const char *string)
sbin/ipfw/ipfw2.c
785
for (pt = table ; i != 0 && pt->s != NULL ; pt++) {
sbin/ipfw/ipfw2.c
799
get_token(struct _s_x *table, const char *string, const char *errbase)
sbin/ipfw/ipfw2.c
803
if ((tcmd = match_token_relaxed(table, string)) < 0)
sbin/ipfw/ipfw2.c
824
concat_tokens(char *buf, size_t bufsize, struct _s_x *table,
sbin/ipfw/ipfw2.c
831
for (sz = 0, pt = table ; pt->s != NULL; pt++) {
sbin/ipfw/ipfw2.h
364
int match_token(struct _s_x *table, const char *string);
sbin/ipfw/ipfw2.h
365
int match_token_relaxed(struct _s_x *table, const char *string);
sbin/ipfw/ipfw2.h
366
int get_token(struct _s_x *table, const char *string, const char *errbase);
sbin/ipfw/ipfw2.h
368
size_t concat_tokens(char *buf, size_t bufsize, struct _s_x *table,
sbin/pfctl/parse.y
2583
$2->table.name,
sbin/pfctl/parse.y
2588
srlim->ioc.overload_hwm = $2->table.above;
sbin/pfctl/parse.y
2589
srlim->ioc.overload_lwm = $2->table.below;
sbin/pfctl/parse.y
2700
stringlen = strlcpy(sourcelim_opts.table.name,
sbin/pfctl/parse.y
2701
$3, sizeof(sourcelim_opts.table.name));
sbin/pfctl/parse.y
2718
sourcelim_opts.table.above = $6;
sbin/pfctl/parse.y
2719
sourcelim_opts.table.below = $7;
sbin/pfctl/parse.y
413
} table;
sbin/pfctl/pfctl_table.c
103
table.pfrt_flags &= ~PFR_TFLAG_PERSIST; \
sbin/pfctl/pfctl_table.c
130
struct pfr_table table;
sbin/pfctl/pfctl_table.c
144
bzero(&table, sizeof(table));
sbin/pfctl/pfctl_table.c
148
if (strlcpy(table.pfrt_name, tname,
sbin/pfctl/pfctl_table.c
149
sizeof(table.pfrt_name)) >= sizeof(table.pfrt_name))
sbin/pfctl/pfctl_table.c
152
if (strlcpy(table.pfrt_anchor, anchor,
sbin/pfctl/pfctl_table.c
153
sizeof(table.pfrt_anchor)) >= sizeof(table.pfrt_anchor))
sbin/pfctl/pfctl_table.c
159
RVTEST(pfctl_clear_tables(pfh, &table, &ndel, flags));
sbin/pfctl/pfctl_table.c
172
pfctl_get_tstats(pfh, &table,
sbin/pfctl/pfctl_table.c
178
RVTEST(pfr_get_tables(&table,
sbin/pfctl/pfctl_table.c
194
RVTEST(pfr_del_table(&table, &ndel, flags));
sbin/pfctl/pfctl_table.c
199
RVTEST(pfr_clr_addrs(&table, &ndel, flags));
sbin/pfctl/pfctl_table.c
208
RVTEST(pfr_add_addrs(&table, b.pfrb_caddr, b.pfrb_size,
sbin/pfctl/pfctl_table.c
223
RVTEST(pfr_del_addrs(&table, b.pfrb_caddr, b.pfrb_size,
sbin/pfctl/pfctl_table.c
239
RVTEST(pfr_set_addrs(&table, b.pfrb_caddr, b.pfrb_size,
sbin/pfctl/pfctl_table.c
269
RVTEST(pfr_get_astats(&table, b.pfrb_caddr,
sbin/pfctl/pfctl_table.c
285
RVTEST(pfr_del_addrs(&table, b2.pfrb_caddr, b2.pfrb_size,
sbin/pfctl/pfctl_table.c
304
RVTEST(pfr_get_astats(&table, b.pfrb_caddr,
sbin/pfctl/pfctl_table.c
316
RVTEST(pfr_clr_astats(&table, b2.pfrb_caddr, b2.pfrb_size,
sbin/pfctl/pfctl_table.c
333
RVTEST(pfr_get_astats(&table, b.pfrb_caddr,
sbin/pfctl/pfctl_table.c
336
RVTEST(pfr_get_addrs(&table, b.pfrb_caddr,
sbin/pfctl/pfctl_table.c
358
RVTEST(pfr_tst_addrs(&table, b.pfrb_caddr, b.pfrb_size,
sbin/pfctl/pfctl_table.c
381
RVTEST(pfr_clr_astats(&table, b.pfrb_caddr, b.pfrb_size,
sbin/pfctl/pfctl_table.c
392
RVTEST(pfctl_clear_tstats(pfh, &table, &nzero, flags));
sbin/pfctl/pfctl_table.c
88
warn_duplicate_tables(table.pfrt_name, \
sbin/pfctl/pfctl_table.c
89
table.pfrt_anchor); \
sbin/pfctl/pfctl_table.c
90
table.pfrt_flags |= PFR_TFLAG_PERSIST; \
sbin/pfctl/pfctl_table.c
93
(pfr_add_table(&table, &nadd, flags)) && \
stand/common/disk.c
109
struct ptable *table;
stand/common/disk.c
145
table = ptable_open(&dev, partsize, sectsize, ptblread);
stand/common/disk.c
146
if (table != NULL) {
stand/common/disk.c
152
res = ptable_iterate(table, &bsd, ptable_print);
stand/common/disk.c
153
ptable_close(table);
stand/common/disk.c
173
return (ptable_iterate(od->table, &pa, ptable_print));
stand/common/disk.c
232
struct ptable *table;
stand/common/disk.c
260
table = NULL;
stand/common/disk.c
268
od->table = ptable_open(&partdev, mediasize / sectorsize, sectorsize,
stand/common/disk.c
270
if (od->table == NULL) {
stand/common/disk.c
276
if (ptable_getsize(od->table, &mediasize) != 0) {
stand/common/disk.c
282
if (ptable_gettype(od->table) == PTABLE_BSD &&
stand/common/disk.c
285
rc = ptable_getpart(od->table, &part, partition);
stand/common/disk.c
290
} else if (ptable_gettype(od->table) == PTABLE_ISO9660) {
stand/common/disk.c
296
rc = ptable_getbestpart(od->table, &part);
stand/common/disk.c
298
rc = ptable_getpart(od->table, &part, slice);
stand/common/disk.c
304
if (ptable_gettype(od->table) == PTABLE_GPT) {
stand/common/disk.c
332
table = ptable_open(dev, part.end - part.start + 1,
stand/common/disk.c
334
if (table == NULL) {
stand/common/disk.c
345
if (ptable_gettype(table) != PTABLE_BSD)
stand/common/disk.c
349
rc = ptable_getpart(table, &part, partition);
stand/common/disk.c
356
if (table != NULL)
stand/common/disk.c
357
ptable_close(table);
stand/common/disk.c
360
if (od->table != NULL)
stand/common/disk.c
361
ptable_close(od->table);
stand/common/disk.c
381
ptable_close(od->table);
stand/common/disk.c
45
struct ptable *table;
stand/common/part.c
228
ptable_gptread(struct ptable *table, void *dev, diskread_t dread)
stand/common/part.c
238
buf = malloc(table->sectorsize);
stand/common/part.c
241
tbl = malloc(table->sectorsize * MAXTBLSZ);
stand/common/part.c
248
ptable_close(table);
stand/common/part.c
249
table = NULL;
stand/common/part.c
254
phdr = gpt_checkhdr((struct gpt_hdr *)buf, 1, table->sectors - 1,
stand/common/part.c
255
table->sectorsize);
stand/common/part.c
260
table->sectorsize));
stand/common/part.c
262
gpt_checktbl(phdr, tbl, size * table->sectorsize,
stand/common/part.c
263
table->sectors - 1) == 0) {
stand/common/part.c
268
offset = pri ? hdr.hdr_lba_alt: table->sectors - 1;
stand/common/part.c
274
table->sectors - 1, table->sectorsize);
stand/common/part.c
294
table->sectorsize));
stand/common/part.c
296
gpt_checktbl(phdr, tbl, size * table->sectorsize,
stand/common/part.c
297
table->sectors - 1) == 0) {
stand/common/part.c
305
table->type = PTABLE_NONE;
stand/common/part.c
310
MAXTBLSZ * table->sectorsize);
stand/common/part.c
321
table->sectors = hdr.hdr_lba_alt + 1;
stand/common/part.c
343
STAILQ_INSERT_TAIL(&table->entries, entry, entry);
stand/common/part.c
349
return (table);
stand/common/part.c
380
ptable_ebrread(struct ptable *table, void *dev, diskread_t dread)
stand/common/part.c
388
STAILQ_FOREACH(e1, &table->entries, entry) {
stand/common/part.c
394
return (table);
stand/common/part.c
397
buf = malloc(table->sectorsize);
stand/common/part.c
399
return (table);
stand/common/part.c
403
if (offset >= table->sectors)
stand/common/part.c
427
STAILQ_INSERT_TAIL(&table->entries, entry, entry);
stand/common/part.c
434
return (table);
stand/common/part.c
456
ptable_bsdread(struct ptable *table, void *dev, diskread_t dread)
stand/common/part.c
465
if (table->sectorsize < sizeof(struct disklabel)) {
stand/common/part.c
467
return (table);
stand/common/part.c
469
buf = malloc(table->sectorsize);
stand/common/part.c
471
return (table);
stand/common/part.c
474
ptable_close(table);
stand/common/part.c
475
table = NULL;
stand/common/part.c
482
if (le32toh(dl->d_secsize) != table->sectorsize) {
stand/common/part.c
508
STAILQ_INSERT_TAIL(&table->entries, entry, entry);
stand/common/part.c
511
table->type = PTABLE_BSD;
stand/common/part.c
514
return (table);
stand/common/part.c
517
#define cdb2devb(bno) ((bno) * ISO_DEFAULT_BLOCK_SIZE / table->sectorsize)
stand/common/part.c
520
ptable_iso9660read(struct ptable *table, void *dev, diskread_t dread)
stand/common/part.c
526
buf = malloc(table->sectorsize);
stand/common/part.c
528
return (table);
stand/common/part.c
532
ptable_close(table);
stand/common/part.c
533
table = NULL;
stand/common/part.c
544
entry->part.end = table->sectors;
stand/common/part.c
547
STAILQ_INSERT_TAIL(&table->entries, entry, entry);
stand/common/part.c
549
table->type = PTABLE_ISO9660;
stand/common/part.c
553
return (table);
stand/common/part.c
561
struct ptable *table;
stand/common/part.c
568
table = NULL;
stand/common/part.c
579
table = malloc(sizeof(*table));
stand/common/part.c
580
if (table == NULL)
stand/common/part.c
582
table->sectors = sectors;
stand/common/part.c
583
table->sectorsize = sectorsize;
stand/common/part.c
584
table->type = PTABLE_NONE;
stand/common/part.c
585
STAILQ_INIT(&table->entries);
stand/common/part.c
587
if (ptable_iso9660read(table, dev, dread) == NULL) {
stand/common/part.c
589
table = NULL;
stand/common/part.c
591
} else if (table->type == PTABLE_ISO9660)
stand/common/part.c
595
if (ptable_bsdread(table, dev, dread) == NULL) { /* Read error. */
stand/common/part.c
596
table = NULL;
stand/common/part.c
598
} else if (table->type == PTABLE_BSD)
stand/common/part.c
608
table->type = PTABLE_GPT;
stand/common/part.c
609
table = ptable_gptread(table, dev, dread);
stand/common/part.c
632
table->type = PTABLE_GPT;
stand/common/part.c
638
if (table->type == PTABLE_GPT) {
stand/common/part.c
639
table = ptable_gptread(table, dev, dread);
stand/common/part.c
646
table->type = PTABLE_MBR;
stand/common/part.c
670
STAILQ_INSERT_TAIL(&table->entries, entry, entry);
stand/common/part.c
674
table = ptable_ebrread(table, dev, dread);
stand/common/part.c
682
return (table);
stand/common/part.c
686
ptable_close(struct ptable *table)
stand/common/part.c
690
if (table == NULL)
stand/common/part.c
693
while (!STAILQ_EMPTY(&table->entries)) {
stand/common/part.c
694
entry = STAILQ_FIRST(&table->entries);
stand/common/part.c
695
STAILQ_REMOVE_HEAD(&table->entries, entry);
stand/common/part.c
698
free(table);
stand/common/part.c
702
ptable_gettype(const struct ptable *table)
stand/common/part.c
705
return (table->type);
stand/common/part.c
709
ptable_getsize(const struct ptable *table, uint64_t *sizep)
stand/common/part.c
711
uint64_t tmp = table->sectors * table->sectorsize;
stand/common/part.c
713
if (tmp < table->sectors)
stand/common/part.c
722
ptable_getpart(const struct ptable *table, struct ptable_entry *part, int index)
stand/common/part.c
726
if (part == NULL || table == NULL)
stand/common/part.c
729
STAILQ_FOREACH(entry, &table->entries, entry) {
stand/common/part.c
757
ptable_getbestpart(const struct ptable *table, struct ptable_entry *part)
stand/common/part.c
762
if (part == NULL || table == NULL)
stand/common/part.c
767
STAILQ_FOREACH(entry, &table->entries, entry) {
stand/common/part.c
769
if (table->type == PTABLE_MBR) {
stand/common/part.c
794
if (table->type == PTABLE_GPT) {
stand/common/part.c
817
ptable_iterate(const struct ptable *table, void *arg, ptable_iterate_t *iter)
stand/common/part.c
824
STAILQ_FOREACH(entry, &table->entries, entry) {
stand/common/part.c
826
if (table->type == PTABLE_MBR)
stand/common/part.c
831
if (table->type == PTABLE_GPT)
stand/common/part.c
835
if (table->type == PTABLE_BSD)
stand/common/part.h
70
void ptable_close(struct ptable *table);
stand/common/part.h
71
enum ptable_type ptable_gettype(const struct ptable *table);
stand/common/part.h
72
int ptable_getsize(const struct ptable *table, uint64_t *sizep);
stand/common/part.h
74
int ptable_getpart(const struct ptable *table, struct ptable_entry *part,
stand/common/part.h
76
int ptable_getbestpart(const struct ptable *table, struct ptable_entry *part);
stand/common/part.h
78
int ptable_iterate(const struct ptable *table, void *arg,
stand/ficl/dict.c
493
pHash = pFHash->table;
stand/ficl/dict.c
710
pWord = pHash->table[i];
stand/ficl/dict.c
717
pHash->table[i] = pWord;
stand/ficl/dict.c
774
pList = pHash->table;
stand/ficl/dict.c
778
pList = pHash->table + (pFW->hash % pHash->size);
stand/ficl/dict.c
812
for (pFW = pHash->table[hashIdx]; pFW; pFW = pFW->link)
stand/ficl/dict.c
839
pHash->table[i] = NULL;
stand/ficl/ficl.h
688
FICL_WORD *table[1];
stand/ficl/prefix.c
91
pFW = pHash->table[i];
stand/ficl/testmain.c
234
pFW = pHash->table[i];
stand/ficl/testmain.c
243
pFW = pHash->table[i];
stand/ficl/tools.c
753
for (wp = pHash->table[i]; wp != NULL; wp = wp->link, nWords++)
stand/ficl/tools.c
825
for (wp = pHash->table[i]; wp != NULL; wp = wp->link, nWords++)
stand/libsa/gpt.c
233
struct gpt_ent *table)
stand/libsa/gpt.c
247
ent = &table[nent + part];
stand/libsa/gpt.c
261
bcopy(&table[nent], secbuf, DEV_BSIZE);
stand/libsa/gpt.c
270
hdr->hdr_crc_table = crc32(hdr->hdr_crc_table, (const Bytef *)table,
stand/libsa/gpt.c
283
struct gpt_ent *table)
stand/libsa/gpt.c
304
bcopy(ent, &table[nent], sizeof(table[nent]));
stand/libsa/gpt.c
312
if (crc32(0, (const Bytef *)table, nent * hdr->hdr_entsz) !=
stand/libsa/gpt.c
53
struct gpt_ent *table)
stand/libsa/gpt.c
69
bcopy(&table[firstent], secbuf, DEV_BSIZE);
stand/libsa/gpt.c
77
hdr->hdr_crc_table = crc32(hdr->hdr_crc_table, (const Bytef *)table,
stand/libsa/zfs/zfs.c
1471
struct ptable *table;
stand/libsa/zfs/zfs.c
1495
table = ptable_open(&pa, mediasz / pa.secsz, pa.secsz,
stand/libsa/zfs/zfs.c
1497
if (table != NULL) {
stand/libsa/zfs/zfs.c
1498
ptable_iterate(table, &pa, zfs_probe_partition);
stand/libsa/zfs/zfs.c
1499
ptable_close(table);
stand/libsa/zfs/zfs.c
755
struct ptable *table;
stand/libsa/zfs/zfs.c
779
table = ptable_open(&pa, part->end - part->start + 1,
stand/libsa/zfs/zfs.c
781
if (table != NULL) {
stand/libsa/zfs/zfs.c
782
ptable_iterate(table, &pa, zfs_probe_partition);
stand/libsa/zfs/zfs.c
783
ptable_close(table);
sys/amd64/acpica/acpi_machdep.c
108
table = pmap_mapbios(pa, length);
sys/amd64/acpica/acpi_machdep.c
109
if (ACPI_FAILURE(AcpiUtChecksum(table, length))) {
sys/amd64/acpica/acpi_machdep.c
113
pmap_unmapbios(table, length);
sys/amd64/acpica/acpi_machdep.c
117
return (table);
sys/amd64/acpica/acpi_machdep.c
127
ACPI_TABLE_HEADER *table;
sys/amd64/acpica/acpi_machdep.c
130
table = pmap_mapbios(address, sizeof(ACPI_TABLE_HEADER));
sys/amd64/acpica/acpi_machdep.c
131
ret = strncmp(table->Signature, sig, ACPI_NAMESEG_SIZE) == 0;
sys/amd64/acpica/acpi_machdep.c
132
pmap_unmapbios(table, sizeof(ACPI_TABLE_HEADER));
sys/amd64/acpica/acpi_machdep.c
149
acpi_unmap_table(void *table)
sys/amd64/acpica/acpi_machdep.c
153
header = (ACPI_TABLE_HEADER *)table;
sys/amd64/acpica/acpi_machdep.c
154
pmap_unmapbios(table, header->Length);
sys/amd64/acpica/acpi_machdep.c
168
ACPI_TABLE_HEADER *table;
sys/amd64/acpica/acpi_machdep.c
242
table = map_table(addr, sig);
sys/amd64/acpica/acpi_machdep.c
243
if (table == NULL)
sys/amd64/acpica/acpi_machdep.c
245
acpi_unmap_table(table);
sys/amd64/acpica/acpi_machdep.c
99
void *table;
sys/amd64/include/xen/hypercall.h
162
const trap_info_t *table)
sys/amd64/include/xen/hypercall.h
164
return _hypercall1(int, set_trap_table, table);
sys/arm64/acpica/acpi_machdep.c
106
if (strncmp(table->Signature, sig, ACPI_NAMESEG_SIZE) != 0) {
sys/arm64/acpica/acpi_machdep.c
107
pmap_unmapbios(table, sizeof(ACPI_TABLE_HEADER));
sys/arm64/acpica/acpi_machdep.c
110
pmap_unmapbios(table, sizeof(ACPI_TABLE_HEADER));
sys/arm64/acpica/acpi_machdep.c
116
acpi_unmap_table(void *table)
sys/arm64/acpica/acpi_machdep.c
120
header = (ACPI_TABLE_HEADER *)table;
sys/arm64/acpica/acpi_machdep.c
121
pmap_unmapbios(table, header->Length);
sys/arm64/acpica/acpi_machdep.c
145
ACPI_TABLE_HEADER *table;
sys/arm64/acpica/acpi_machdep.c
204
table = map_table(addr, sig);
sys/arm64/acpica/acpi_machdep.c
205
if (table == NULL)
sys/arm64/acpica/acpi_machdep.c
207
acpi_unmap_table(table);
sys/arm64/acpica/acpi_machdep.c
67
void *table;
sys/arm64/acpica/acpi_machdep.c
77
table = pmap_mapbios(pa, length);
sys/arm64/acpica/acpi_machdep.c
78
if (ACPI_FAILURE(AcpiUtChecksum(table, length))) {
sys/arm64/acpica/acpi_machdep.c
82
pmap_unmapbios(table, length);
sys/arm64/acpica/acpi_machdep.c
86
return (table);
sys/arm64/acpica/acpi_machdep.c
96
ACPI_TABLE_HEADER *table;
sys/arm64/acpica/acpi_machdep.c
98
table = pmap_mapbios(address, sizeof(ACPI_TABLE_HEADER));
sys/arm64/acpica/acpi_machdep.c
99
if (table == NULL) {
sys/arm64/arm64/gicv3_its.c
1453
uint64_t *table;
sys/arm64/arm64/gicv3_its.c
1498
table = (uint64_t *)ptable->ptab_vaddr;
sys/arm64/arm64/gicv3_its.c
1500
if ((table[index] & GITS_BASER_VALID) != 0)
sys/arm64/arm64/gicv3_its.c
1515
table[index] = vtophys(l2_table) | GITS_BASER_VALID;
sys/arm64/arm64/gicv3_its.c
1517
cpu_dcache_wb_range(&table[index], sizeof(table[index]));
sys/arm64/arm64/gicv3_its.c
471
gicv3_its_table_page_size(struct gicv3_its_softc *sc, int table)
sys/arm64/arm64/gicv3_its.c
477
reg = gic_its_read_8(sc, GITS_BASER(table));
sys/arm64/arm64/gicv3_its.c
494
gic_its_write_8(sc, GITS_BASER(table), reg);
sys/arm64/arm64/gicv3_its.c
497
tmp = gic_its_read_8(sc, GITS_BASER(table));
sys/arm64/arm64/gicv3_its.c
517
gicv3_its_table_supports_indirect(struct gicv3_its_softc *sc, int table)
sys/arm64/arm64/gicv3_its.c
521
reg = gic_its_read_8(sc, GITS_BASER(table));
sys/arm64/arm64/gicv3_its.c
525
gic_its_write_8(sc, GITS_BASER(table), reg);
sys/arm64/arm64/gicv3_its.c
528
reg = gic_its_read_8(sc, GITS_BASER(table));
sys/arm64/arm64/gicv3_its.c
536
void *table;
sys/arm64/arm64/gicv3_its.c
652
table = contigmalloc_domainset(npages * PAGE_SIZE,
sys/arm64/arm64/gicv3_its.c
657
sc->sc_its_ptab[i].ptab_vaddr = table;
sys/arm64/arm64/gicv3_its.c
666
paddr = vtophys(table);
sys/arm64/arm64/pmap.c
10020
sysctl_kmaps_table_attrs(pd_entry_t table)
sys/arm64/arm64/pmap.c
10025
if ((table & TATTR_UXN_TABLE) != 0)
sys/arm64/arm64/pmap.c
10027
if ((table & TATTR_PXN_TABLE) != 0)
sys/arm64/arm64/pmap.c
10029
if ((table & TATTR_AP_TABLE_RO) != 0)
sys/arm64/arm64/pmap.c
541
#define pmap_clear(table) atomic_store_64(table, 0)
sys/arm64/arm64/pmap.c
542
#define pmap_clear_bits(table, bits) atomic_clear_64(table, bits)
sys/arm64/arm64/pmap.c
543
#define pmap_load(table) (*table)
sys/arm64/arm64/pmap.c
544
#define pmap_load_clear(table) atomic_swap_64(table, 0)
sys/arm64/arm64/pmap.c
545
#define pmap_load_store(table, entry) atomic_swap_64(table, entry)
sys/arm64/arm64/pmap.c
546
#define pmap_set_bits(table, bits) atomic_set_64(table, bits)
sys/arm64/arm64/pmap.c
547
#define pmap_store(table, entry) atomic_store_64(table, entry)
sys/arm64/include/acpica_machdep.h
49
void acpi_unmap_table(void *table);
sys/arm64/iommu/iommu_pmap.c
95
#define smmu_pmap_load(table) (*table)
sys/arm64/iommu/iommu_pmap.c
96
#define smmu_pmap_clear(table) atomic_store_64(table, 0)
sys/arm64/iommu/iommu_pmap.c
97
#define smmu_pmap_store(table, entry) atomic_store_64(table, entry)
sys/arm64/nvidia/tegra210/tegra210_clk_pll.c
193
#define DIV_TB(_id, cname, plist, o, s, n, table) \
sys/arm64/nvidia/tegra210/tegra210_clk_pll.c
204
.div_table = table, \
sys/arm64/rockchip/rk_tsadc.c
117
struct rk_calib_entry *table;
sys/arm64/rockchip/rk_tsadc.c
204
.table = rk3288_calib_data,
sys/arm64/rockchip/rk_tsadc.c
258
.table = rk3328_calib_data,
sys/arm64/rockchip/rk_tsadc.c
314
.table = rk3399_calib_data,
sys/arm64/rockchip/rk_tsadc.c
371
.table = rk3568_calib_data,
sys/arm64/rockchip/rk_tsadc.c
390
tbl = sc->conf->calib_info.table;
sys/arm64/rockchip/rk_tsadc.c
425
tbl = sc->conf->calib_info.table;
sys/cam/scsi/scsi_all.c
6038
scsi_nv_to_str(struct scsi_nv *table, int num_table_entries, uint64_t value)
sys/cam/scsi/scsi_all.c
6043
if (table[i].value == value)
sys/cam/scsi/scsi_all.c
6044
return (table[i].name);
sys/cam/scsi/scsi_all.c
6058
scsi_get_nv(struct scsi_nv *table, int num_table_entries,
sys/cam/scsi/scsi_all.c
6066
table_len = strlen(table[i].name);
sys/cam/scsi/scsi_all.c
6070
&& (strncasecmp(table[i].name, name, name_len) == 0))
sys/cam/scsi/scsi_all.c
6072
&& (strncmp(table[i].name, name, name_len) == 0))) {
sys/cam/scsi/scsi_all.c
632
struct op_table_entry *table[2];
sys/cam/scsi/scsi_all.c
654
table[0] = ((struct scsi_op_quirk_entry *)match)->op_table;
sys/cam/scsi/scsi_all.c
656
table[1] = scsi_op_codes;
sys/cam/scsi/scsi_all.c
667
table[0] = scsi_op_codes;
sys/cam/scsi/scsi_all.c
689
for (i = 0; i < num_ops[j] && table[j][i].opcode <= opcode; i++) {
sys/cam/scsi/scsi_all.c
690
if ((table[j][i].opcode == opcode)
sys/cam/scsi/scsi_all.c
691
&& ((table[j][i].opmask & opmask) != 0))
sys/cam/scsi/scsi_all.c
692
return(table[j][i].desc);
sys/cam/scsi/scsi_all.c
7456
scsi_find_attrib_entry(struct scsi_attrib_table_entry *table,
sys/cam/scsi/scsi_all.c
7462
if (table[i].id == id)
sys/cam/scsi/scsi_all.c
7463
return (&table[i]);
sys/cam/scsi/scsi_all.h
3989
const char * scsi_nv_to_str(struct scsi_nv *table, int num_table_entries,
sys/cam/scsi/scsi_all.h
3992
scsi_nv_status scsi_get_nv(struct scsi_nv *table, int num_table_entries,
sys/cam/scsi/scsi_all.h
4079
struct scsi_attrib_table_entry *table,
sys/cam/scsi/scsi_sa.c
1218
safindprotent(char *name, struct sa_prot_map *table, int table_ents)
sys/cam/scsi/scsi_sa.c
1232
if (strcmp(&name[prot_len], table[i].name) != 0)
sys/cam/scsi/scsi_sa.c
1234
return (&table[i]);
sys/cam/scsi/scsi_sa.c
631
static struct sa_prot_map *safindprotent(char *name, struct sa_prot_map *table,
sys/cddl/compat/opensolaris/kern/opensolaris_acl.c
72
_bsd_from_zfs(uint32_t zfs, const struct zfs2bsd *table)
sys/cddl/compat/opensolaris/kern/opensolaris_acl.c
77
for (tmp = table; tmp->zb_zfs != 0; tmp++) {
sys/cddl/compat/opensolaris/kern/opensolaris_acl.c
86
_zfs_from_bsd(int bsd, const struct zfs2bsd *table)
sys/cddl/compat/opensolaris/kern/opensolaris_acl.c
91
for (tmp = table; tmp->zb_bsd != 0; tmp++) {
sys/cddl/dev/dtrace/x86/dis_tables.c
310
#define IND(table) {(instable_t *)table, 0, "", 0, 0, 0, 0, 0, 0}
sys/cddl/dev/dtrace/x86/dis_tables.c
311
#define INDx(table) {(instable_t *)table, 0, "", 0, 0, 1, 0, 0, 0}
sys/cddl/dev/dtrace/x86/dis_tables.c
333
#define IND(table) {(instable_t *)table, 0, "", 0, 0, 0, 0, 0}
sys/cddl/dev/dtrace/x86/dis_tables.c
334
#define INDx(table) {(instable_t *)table, 0, "", 0, 1, 0, 0, 0}
sys/cddl/dev/dtrace/x86/dis_tables.c
355
#define IND(table) {(instable_t *)table, 0, 0, 0, 0, 0, 0}
sys/cddl/dev/dtrace/x86/dis_tables.c
356
#define INDx(table) {(instable_t *)table, 0, 0, 1, 0, 0, 0}
sys/cddl/dev/dtrace/x86/dis_tables.c
377
#define IND(table) {(instable_t *)table, 0, 0, 0, 0, 0}
sys/cddl/dev/dtrace/x86/dis_tables.c
378
#define INDx(table) {(instable_t *)table, 0, 1, 0, 0, 0}
sys/compat/linux/linux_ioctl.c
388
linux_to_bsd_speed(int code, struct speedtab *table)
sys/compat/linux/linux_ioctl.c
390
for ( ; table->sp_code != -1; table++)
sys/compat/linux/linux_ioctl.c
391
if (table->sp_code == code)
sys/compat/linux/linux_ioctl.c
392
return (table->sp_speed);
sys/compat/linux/linux_ioctl.c
397
bsd_to_linux_speed(int speed, struct speedtab *table)
sys/compat/linux/linux_ioctl.c
399
for ( ; table->sp_speed != -1; table++)
sys/compat/linux/linux_ioctl.c
400
if (table->sp_speed == speed)
sys/compat/linux/linux_ioctl.c
401
return (table->sp_code);
sys/compat/linuxkpi/common/include/linux/devcoredump.h
39
_lkpi_dev_coredumpsg_free(struct scatterlist *table)
sys/compat/linuxkpi/common/include/linux/devcoredump.h
45
iter = table;
sys/compat/linuxkpi/common/include/linux/devcoredump.h
46
for_each_sg(table, iter, sg_nents(table), i) {
sys/compat/linuxkpi/common/include/linux/devcoredump.h
53
kfree(table);
sys/compat/linuxkpi/common/include/linux/devcoredump.h
66
dev_coredumpsg(struct device *dev __unused, struct scatterlist *table,
sys/compat/linuxkpi/common/include/linux/devcoredump.h
71
_lkpi_dev_coredumpsg_free(table);
sys/compat/linuxkpi/common/include/linux/devcoredump.h
75
_devcd_free_sgtable(struct scatterlist *table)
sys/compat/linuxkpi/common/include/linux/devcoredump.h
78
_lkpi_dev_coredumpsg_free(table);
sys/compat/linuxkpi/common/include/linux/platform_data/brcmfmac.h
128
struct brcmfmac_pd_cc_entry table[];
sys/compat/linuxkpi/common/include/linux/scatterlist.h
224
__sg_free_table(struct sg_table *table, unsigned int max_ents,
sys/compat/linuxkpi/common/include/linux/scatterlist.h
229
if (unlikely(!table->sgl))
sys/compat/linuxkpi/common/include/linux/scatterlist.h
232
sgl = table->sgl;
sys/compat/linuxkpi/common/include/linux/scatterlist.h
233
while (table->orig_nents) {
sys/compat/linuxkpi/common/include/linux/scatterlist.h
234
unsigned int alloc_size = table->orig_nents;
sys/compat/linuxkpi/common/include/linux/scatterlist.h
246
table->orig_nents -= sg_size;
sys/compat/linuxkpi/common/include/linux/scatterlist.h
254
table->sgl = NULL;
sys/compat/linuxkpi/common/include/linux/scatterlist.h
258
sg_free_table(struct sg_table *table)
sys/compat/linuxkpi/common/include/linux/scatterlist.h
260
__sg_free_table(table, SG_MAX_SINGLE_ALLOC, 0, sg_kfree);
sys/compat/linuxkpi/common/include/linux/scatterlist.h
264
__sg_alloc_table(struct sg_table *table, unsigned int nents,
sys/compat/linuxkpi/common/include/linux/scatterlist.h
271
memset(table, 0, sizeof(*table));
sys/compat/linuxkpi/common/include/linux/scatterlist.h
297
table->nents = ++table->orig_nents;
sys/compat/linuxkpi/common/include/linux/scatterlist.h
302
table->nents = table->orig_nents += sg_size;
sys/compat/linuxkpi/common/include/linux/scatterlist.h
307
table->sgl = sg;
sys/compat/linuxkpi/common/include/linux/scatterlist.h
319
sg_alloc_table(struct sg_table *table, unsigned int nents, gfp_t gfp_mask)
sys/compat/linuxkpi/common/include/linux/scatterlist.h
323
ret = __sg_alloc_table(table, nents, SG_MAX_SINGLE_ALLOC,
sys/compat/linuxkpi/common/include/linux/scatterlist.h
326
__sg_free_table(table, SG_MAX_SINGLE_ALLOC, 0, sg_kfree);
sys/compat/linuxkpi/common/include/linux/string.h
48
match_string(const char *const *table, int n, const char *key)
sys/compat/linuxkpi/common/include/linux/string.h
52
for (i = 0; i != n && table[i] != NULL; i++) {
sys/compat/linuxkpi/common/include/linux/string.h
53
if (strcmp(table[i], key) == 0)
sys/ddb/db_command.c
210
static void db_cmd_list(struct db_command_table *table);
sys/ddb/db_command.c
211
static int db_cmd_search(char *name, struct db_command_table *table,
sys/ddb/db_command.c
330
db_cmd_search(char *name, struct db_command_table *table,
sys/ddb/db_command.c
336
LIST_FOREACH(cmd, table, next) {
sys/ddb/db_command.c
352
db_cmd_list(struct db_command_table *table)
sys/ddb/db_command.c
358
LIST_FOREACH(cmd, table, next) {
sys/ddb/db_command.c
368
LIST_FOREACH(cmd, table, next) {
sys/ddb/ddb.h
90
#define _DB_TABLE_NAME(table) db_##table##_table
sys/ddb/ddb.h
92
#define DB_DEFINE_TABLE(parent, name, table) \
sys/ddb/ddb.h
93
struct db_command_table _DB_TABLE_NAME(table) = \
sys/ddb/ddb.h
94
LIST_HEAD_INITIALIZER(_DB_TABLE_NAME(table)); \
sys/ddb/ddb.h
95
_DB_SET(parent, name, NULL, 0, &_DB_TABLE_NAME(table))
sys/ddb/ddb.h
97
#define DB_DECLARE_TABLE(table) \
sys/ddb/ddb.h
98
extern struct db_command_table _DB_TABLE_NAME(table)
sys/dev/aac/aac.c
188
static const char *aac_describe_code(const struct aac_code_lookup *table,
sys/dev/aac/aac.c
2776
aac_describe_code(const struct aac_code_lookup *table, u_int32_t code)
sys/dev/aac/aac.c
2780
for (i = 0; table[i].string != NULL; i++)
sys/dev/aac/aac.c
2781
if (table[i].code == code)
sys/dev/aac/aac.c
2782
return(table[i].string);
sys/dev/aac/aac.c
2783
return(table[i + 1].string);
sys/dev/aacraid/aacraid.c
183
static char *aac_describe_code(struct aac_code_lookup *table,
sys/dev/aacraid/aacraid.c
2582
aac_describe_code(struct aac_code_lookup *table, u_int32_t code)
sys/dev/aacraid/aacraid.c
2586
for (i = 0; table[i].string != NULL; i++)
sys/dev/aacraid/aacraid.c
2587
if (table[i].code == code)
sys/dev/aacraid/aacraid.c
2588
return(table[i].string);
sys/dev/aacraid/aacraid.c
2589
return(table[i + 1].string);
sys/dev/aic7xxx/aic79xx.c
8874
ahd_print_register(ahd_reg_parse_entry_t *table, u_int num_entries,
sys/dev/aic7xxx/aic79xx.c
8892
if (table == NULL) {
sys/dev/aic7xxx/aic79xx.c
8902
if (((value & table[entry].mask)
sys/dev/aic7xxx/aic79xx.c
8903
!= table[entry].value)
sys/dev/aic7xxx/aic79xx.c
8904
|| ((printed_mask & table[entry].mask)
sys/dev/aic7xxx/aic79xx.c
8905
== table[entry].mask))
sys/dev/aic7xxx/aic79xx.c
8910
table[entry].name);
sys/dev/aic7xxx/aic79xx.c
8911
printed_mask |= table[entry].mask;
sys/dev/aic7xxx/aic79xx.h
1579
int ahd_print_register(ahd_reg_parse_entry_t *table,
sys/dev/aic7xxx/aic7xxx.c
6634
ahc_print_register(ahc_reg_parse_entry_t *table, u_int num_entries,
sys/dev/aic7xxx/aic7xxx.c
6652
if (table == NULL) {
sys/dev/aic7xxx/aic7xxx.c
6662
if (((value & table[entry].mask)
sys/dev/aic7xxx/aic7xxx.c
6663
!= table[entry].value)
sys/dev/aic7xxx/aic7xxx.c
6664
|| ((printed_mask & table[entry].mask)
sys/dev/aic7xxx/aic7xxx.c
6665
== table[entry].mask))
sys/dev/aic7xxx/aic7xxx.c
6670
table[entry].name);
sys/dev/aic7xxx/aic7xxx.c
6671
printed_mask |= table[entry].mask;
sys/dev/aic7xxx/aic7xxx.h
1363
int ahc_print_register(ahc_reg_parse_entry_t *table,
sys/dev/axgbe/xgbe-dev.c
417
xgbe_set_rss_lookup_table(struct xgbe_prv_data *pdata, const uint32_t *table)
sys/dev/axgbe/xgbe-dev.c
422
XGMAC_SET_BITS(pdata->rss_table[i], MAC_RSSDR, DMCH, table[i]);
sys/dev/bhnd/bhnd.h
506
const struct bhnd_device *table,
sys/dev/bhnd/bhnd.h
510
const struct bhnd_device *table,
sys/dev/bhnd/bhnd_subr.c
914
bhnd_device_lookup(device_t dev, const struct bhnd_device *table,
sys/dev/bhnd/bhnd_subr.c
926
for (entry = table; !BHND_DEVICE_IS_END(entry); entry =
sys/dev/bhnd/bhnd_subr.c
970
bhnd_device_quirks(device_t dev, const struct bhnd_device *table,
sys/dev/bhnd/bhnd_subr.c
978
if ((dent = bhnd_device_lookup(dev, table, entry_size)) == NULL)
sys/dev/bhnd/bhndb/bhndb.c
230
const struct bhndb_hw_priority *table)
sys/dev/bhnd/bhndb/bhndb.c
312
pp = bhndb_hw_priorty_find_port(table, core,
sys/dev/bhnd/bhndb/bhndb.c
354
hp = bhndb_hw_priority_find_core(table, core);
sys/dev/bhnd/bhndb/bhndb.c
87
const struct bhndb_hw_priority *table);
sys/dev/bhnd/bhndb/bhndb_private.h
136
const struct bhndb_hw_priority *table,
sys/dev/bhnd/bhndb/bhndb_private.h
140
const struct bhndb_hw_priority *table,
sys/dev/bhnd/bhndb/bhndb_subr.c
1437
bhndb_regwin_count(const struct bhndb_regwin *table,
sys/dev/bhnd/bhndb/bhndb_subr.c
1444
for (rw = table; rw->win_type != BHNDB_REGWIN_T_INVALID; rw++) {
sys/dev/bhnd/bhndb/bhndb_subr.c
1463
bhndb_regwin_find_type(const struct bhndb_regwin *table,
sys/dev/bhnd/bhndb/bhndb_subr.c
1468
for (rw = table; rw->win_type != BHNDB_REGWIN_T_INVALID; rw++)
sys/dev/bhnd/bhndb/bhndb_subr.c
1493
bhndb_regwin_find_core(const struct bhndb_regwin *table, bhnd_devclass_t class,
sys/dev/bhnd/bhndb/bhndb_subr.c
1499
for (rw = table; rw->win_type != BHNDB_REGWIN_T_INVALID; rw++)
sys/dev/bhnd/bhndb/bhndb_subr.c
1561
bhndb_regwin_find_best(const struct bhndb_regwin *table,
sys/dev/bhnd/bhndb/bhndb_subr.c
1568
rw = bhndb_regwin_find_core(table, class, unit, port_type,
sys/dev/bhnd/bhndb/bhndb_subr.c
1574
return (bhndb_regwin_find_type(table, BHNDB_REGWIN_T_DYN, min_size));
sys/dev/bhnd/bhndb/bhndb_subr.c
1612
bhndb_hw_priority_find_core(const struct bhndb_hw_priority *table,
sys/dev/bhnd/bhndb/bhndb_subr.c
1617
for (hp = table; hp->ports != NULL; hp++) {
sys/dev/bhnd/bhndb/bhndb_subr.c
1636
bhndb_hw_priorty_find_port(const struct bhndb_hw_priority *table,
sys/dev/bhnd/bhndb/bhndb_subr.c
1642
if ((hp = bhndb_hw_priority_find_core(table, core)) == NULL)
sys/dev/bhnd/bhndb/bhndbvar.h
108
const struct bhndb_regwin *table,
sys/dev/bhnd/bhndb/bhndbvar.h
112
const struct bhndb_regwin *table,
sys/dev/bhnd/bhndb/bhndbvar.h
117
const struct bhndb_regwin *table,
sys/dev/bhnd/bhndb/bhndbvar.h
124
const struct bhndb_regwin *table,
sys/dev/bhnd/cores/pmu/bhnd_pmu_subr.c
1067
"%#x\n", i, table->depend_mask);
sys/dev/bhnd/cores/pmu/bhnd_pmu_subr.c
1073
"res_dep_mask\n", table->depend_mask, i);
sys/dev/bhnd/cores/pmu/bhnd_pmu_subr.c
1080
"res_dep_mask\n", table->depend_mask, i);
sys/dev/bwn/if_bwn_phy_g.c
1863
bwn_ofdmtab_write_2(struct bwn_mac *mac, uint16_t table, uint16_t offset,
sys/dev/bwn/if_bwn_phy_g.c
1869
addr = table + offset;
sys/dev/bwn/if_bwn_phy_g.c
1880
bwn_ofdmtab_write_4(struct bwn_mac *mac, uint16_t table, uint16_t offset,
sys/dev/bwn/if_bwn_phy_g.c
1886
addr = table + offset;
sys/dev/bwn/if_bwn_phy_g.c
1899
bwn_gtab_write(struct bwn_mac *mac, uint16_t table, uint16_t offset,
sys/dev/bwn/if_bwn_phy_g.c
1903
BWN_PHY_WRITE(mac, BWN_PHY_GTABCTL, table + offset);
sys/dev/bwn/if_bwn_phy_g.c
3059
uint16_t table;
sys/dev/bwn/if_bwn_phy_g.c
3066
table = BWN_OFDMTAB_GAINX;
sys/dev/bwn/if_bwn_phy_g.c
3068
table = BWN_OFDMTAB_GAINX_R1;
sys/dev/bwn/if_bwn_phy_g.c
3070
bwn_ofdmtab_write_2(mac, table, i, first);
sys/dev/bwn/if_bwn_phy_g.c
3073
bwn_ofdmtab_write_2(mac, table, i, second);
sys/dev/bwn/if_bwn_phy_g.c
3089
uint16_t table;
sys/dev/bwn/if_bwn_phy_g.c
3097
table = BWN_OFDMTAB_GAINX;
sys/dev/bwn/if_bwn_phy_g.c
3099
table = BWN_OFDMTAB_GAINX_R1;
sys/dev/bwn/if_bwn_phy_g.c
3105
bwn_ofdmtab_write_2(mac, table, i, tmp);
sys/dev/bwn/if_bwn_phy_g.c
3109
bwn_ofdmtab_write_2(mac, table, i, i - start);
sys/dev/bwn/if_bwn_phy_lp.c
3703
struct bwn_txgain_entry *table)
sys/dev/bwn/if_bwn_phy_lp.c
3708
bwn_phy_lp_gaintbl_write(mac, i, table[i]);
sys/dev/bwn/if_bwnreg.h
885
#define BWN_TAB_1(table, offset) \
sys/dev/bwn/if_bwnreg.h
886
(((table) << 10) | (offset) | BWN_TAB_8BIT)
sys/dev/bwn/if_bwnreg.h
887
#define BWN_TAB_2(table, offset) \
sys/dev/bwn/if_bwnreg.h
888
(((table) << 10) | (offset) | BWN_TAB_16BIT)
sys/dev/bwn/if_bwnreg.h
889
#define BWN_TAB_4(table, offset) \
sys/dev/bwn/if_bwnreg.h
890
(((table) << 10) | (offset) | BWN_TAB_32BIT)
sys/dev/clk/clk_div.c
104
for (table = sc->div_table; table->divider != 0; table++)
sys/dev/clk/clk_div.c
105
if (table->divider == *divider) {
sys/dev/clk/clk_div.c
106
*divider = table->value;
sys/dev/clk/clk_div.c
84
struct clk_div_table *table;
sys/dev/clk/clk_div.c
89
for (table = sc->div_table; table->divider != 0; table++)
sys/dev/clk/clk_div.c
90
if (table->value == sc->divider)
sys/dev/clk/clk_div.c
91
return (table->divider);
sys/dev/clk/clk_div.c
99
struct clk_div_table *table;
sys/dev/cxgbe/iw_cxgbe/id_table.c
101
alloc->table = kmalloc(BITS_TO_LONGS(num) * sizeof(long),
sys/dev/cxgbe/iw_cxgbe/id_table.c
103
if (!alloc->table)
sys/dev/cxgbe/iw_cxgbe/id_table.c
106
bitmap_zero(alloc->table, num);
sys/dev/cxgbe/iw_cxgbe/id_table.c
109
set_bit(i, alloc->table);
sys/dev/cxgbe/iw_cxgbe/id_table.c
116
kfree(alloc->table);
sys/dev/cxgbe/iw_cxgbe/id_table.c
56
obj = find_next_zero_bit(alloc->table, alloc->max, alloc->last);
sys/dev/cxgbe/iw_cxgbe/id_table.c
58
obj = find_first_zero_bit(alloc->table, alloc->max);
sys/dev/cxgbe/iw_cxgbe/id_table.c
67
set_bit(obj, alloc->table);
sys/dev/cxgbe/iw_cxgbe/id_table.c
84
clear_bit(obj, alloc->table);
sys/dev/cxgbe/iw_cxgbe/iw_cxgbe.h
98
unsigned long *table;
sys/dev/drm2/drm_hashtab.c
180
if (ht->table) {
sys/dev/drm2/drm_hashtab.c
181
hashdestroy(ht->table, DRM_MEM_HASHTAB, ht->mask);
sys/dev/drm2/drm_hashtab.c
182
ht->table = NULL;
sys/dev/drm2/drm_hashtab.c
46
ht->table = NULL;
sys/dev/drm2/drm_hashtab.c
47
ht->table = hashinit_flags(ht->size, DRM_MEM_HASHTAB, &ht->mask,
sys/dev/drm2/drm_hashtab.c
49
if (!ht->table) {
sys/dev/drm2/drm_hashtab.c
66
h_list = &ht->table[hashed_key & ht->mask];
sys/dev/drm2/drm_hashtab.c
79
h_list = &ht->table[hashed_key & ht->mask];
sys/dev/drm2/drm_hashtab.c
98
h_list = &ht->table[hashed_key & ht->mask];
sys/dev/drm2/drm_hashtab.h
48
LIST_HEAD(drm_hash_item_list, drm_hash_item) *table;
sys/dev/ena/ena_rss.c
228
ena_rss_indir_get(struct ena_adapter *adapter, uint32_t *table)
sys/dev/ena/ena_rss.c
232
rc = ena_com_indirect_table_get(adapter->ena_dev, table);
sys/dev/ena/ena_rss.c
244
table[i] = ENA_IO_RXQ_IDX_TO_COMBINED_IDX(table[i]);
sys/dev/ena/ena_rss.c
250
ena_rss_indir_set(struct ena_adapter *adapter, uint32_t *table)
sys/dev/ena/ena_rss.c
256
ENA_IO_RXQ_IDX(table[i]));
sys/dev/ena/ena_rss.c
284
rc = ena_rss_indir_get(adapter, indir->table);
sys/dev/ena/ena_rss.c
292
ena_rss_copy_indir_buf(indir->sysctl_buf, indir->table);
sys/dev/ena/ena_rss.h
45
uint32_t table[ENA_RX_RSS_TABLE_SIZE];
sys/dev/ena/ena_rss.h
53
int ena_rss_indir_get(struct ena_adapter *adapter, uint32_t *table);
sys/dev/ena/ena_rss.h
54
int ena_rss_indir_set(struct ena_adapter *adapter, uint32_t *table);
sys/dev/ena/ena_rss.h
58
ena_rss_copy_indir_buf(char *buf, uint32_t *table)
sys/dev/ena/ena_rss.h
64
i == 0 ? "" : " ", i, table[i]);
sys/dev/ena/ena_sysctl.c
1218
indir->table[idx] = value;
sys/dev/ena/ena_sysctl.c
1222
ena_rss_indir_get(adapter, indir->table);
sys/dev/ena/ena_sysctl.c
1225
ena_rss_copy_indir_buf(msg, indir->table);
sys/dev/ena/ena_sysctl.c
1228
error = ena_rss_indir_set(adapter, indir->table);
sys/dev/etherswitch/ar40xx/ar40xx_main.c
862
ar40xx_atu_fetch_table(device_t dev, etherswitch_atu_table_t *table)
sys/dev/etherswitch/ar40xx/ar40xx_main.c
869
table->es_nitems = 0;
sys/dev/etherswitch/ar40xx/ar40xx_main.c
888
table->es_nitems = nitems;
sys/dev/etherswitch/arswitch/arswitch.c
1183
arswitch_atu_fetch_table(device_t dev, etherswitch_atu_table_t *table)
sys/dev/etherswitch/arswitch/arswitch.c
1207
table->es_nitems = nitems;
sys/dev/fb/vga.c
400
static void map_mode_table(u_char *map[], u_char *table, int max);
sys/dev/fb/vga.c
494
map_mode_table(u_char *map[], u_char *table, int max)
sys/dev/fb/vga.c
499
map[i] = table + i*V_MODE_PARAM_SIZE;
sys/dev/hid/hidbus.h
100
MODULE_PNP_INFO(HID_STD_PNP_INFO, hidbus, table, table, nitems(table))
sys/dev/hid/hidbus.h
99
#define HID_PNP_INFO(table) \
sys/dev/ice/ice_lib.c
11488
ice_ets_str_to_tbl(const char *str, u8 *table, u8 limit)
sys/dev/ice/ice_lib.c
11499
table[i] = (u8)token;
sys/dev/ice/ice_lib.c
11514
ice_check_ets_bw(u8 *table)
sys/dev/ice/ice_lib.c
11518
sum += (int)table[i];
sys/dev/ice/ice_lib.c
164
static bool ice_check_ets_bw(u8 *table);
sys/dev/ice/ice_lib.c
171
static int ice_ets_str_to_tbl(const char *str, u8 *table, u8 limit);
sys/dev/ice/ice_lib.c
514
u32 table = 0;
sys/dev/ice/ice_lib.c
532
table |= ICE_UP_TABLE_TRANSLATE(0, 0);
sys/dev/ice/ice_lib.c
533
table |= ICE_UP_TABLE_TRANSLATE(1, 1);
sys/dev/ice/ice_lib.c
534
table |= ICE_UP_TABLE_TRANSLATE(2, 2);
sys/dev/ice/ice_lib.c
535
table |= ICE_UP_TABLE_TRANSLATE(3, 3);
sys/dev/ice/ice_lib.c
536
table |= ICE_UP_TABLE_TRANSLATE(4, 4);
sys/dev/ice/ice_lib.c
537
table |= ICE_UP_TABLE_TRANSLATE(5, 5);
sys/dev/ice/ice_lib.c
538
table |= ICE_UP_TABLE_TRANSLATE(6, 6);
sys/dev/ice/ice_lib.c
539
table |= ICE_UP_TABLE_TRANSLATE(7, 7);
sys/dev/ice/ice_lib.c
540
ctx->info.ingress_table = CPU_TO_LE32(table);
sys/dev/ice/ice_lib.c
541
ctx->info.egress_table = CPU_TO_LE32(table);
sys/dev/ice/ice_lib.c
543
ctx->info.outer_up_table = CPU_TO_LE32(table);
sys/dev/ipmi/ipmi_smbios.c
157
void *table;
sys/dev/ipmi/ipmi_smbios.c
183
table = pmap_mapbios(addr, header->length);
sys/dev/ipmi/ipmi_smbios.c
185
header = table;
sys/dev/ipmi/ipmi_smbios.c
192
table = pmap_mapbios(header->structure_table_address,
sys/dev/ipmi/ipmi_smbios.c
194
smbios_walk_table(table, header->number_structures,
sys/dev/ipmi/ipmi_smbios.c
198
pmap_unmapbios(table, header->structure_table_length);
sys/dev/isci/scil/sci_base_state_machine.h
76
#define SET_STATE_HANDLER(object, table, state) \
sys/dev/isci/scil/sci_base_state_machine.h
77
(object)->state_handlers = &(table)[(state)]
sys/dev/isci/scil/scic_sds_controller_registers.h
149
((SCU_REGISTERS_T *)scic_cb_pci_get_bar(controller, PATSBURG_SCU_BAR))->peg0.zpt0.table[index], \
sys/dev/isci/scil/scic_sds_controller_registers.h
156
((SCU_REGISTERS_T *)scic_cb_pci_get_bar(controller, PATSBURG_SCU_BAR))->peg0.zpt0.table[index] \
sys/dev/isci/scil/scic_sds_controller_registers.h
162
((SCU_REGISTERS_T *)scic_cb_pci_get_bar(controller, PATSBURG_SCU_BAR))->peg0.zpt1.table[index], \
sys/dev/isci/scil/scic_sds_controller_registers.h
169
((SCU_REGISTERS_T *)scic_cb_pci_get_bar(controller, PATSBURG_SCU_BAR))->peg0.zpt1.table[index] \
sys/dev/isci/scil/scu_registers.h
1937
U32 table[0xE0];
sys/dev/isci/scil/scu_registers.h
1943
U32 table[256];
sys/dev/isci/scil/scu_registers.h
1953
U32 table[2048];
sys/dev/iwm/if_iwm.c
5177
struct iwm_umac_error_event_table table;
sys/dev/iwm/if_iwm.c
5188
if (iwm_read_mem(sc, base, &table, sizeof(table)/sizeof(uint32_t))) {
sys/dev/iwm/if_iwm.c
5193
if (ERROR_START_OFFSET <= table.valid * ERROR_ELEM_SIZE) {
sys/dev/iwm/if_iwm.c
5196
sc->sc_flags, table.valid);
sys/dev/iwm/if_iwm.c
5199
device_printf(sc->sc_dev, "0x%08X | %s\n", table.error_id,
sys/dev/iwm/if_iwm.c
5200
iwm_desc_lookup(table.error_id));
sys/dev/iwm/if_iwm.c
5201
device_printf(sc->sc_dev, "0x%08X | umac branchlink1\n", table.blink1);
sys/dev/iwm/if_iwm.c
5202
device_printf(sc->sc_dev, "0x%08X | umac branchlink2\n", table.blink2);
sys/dev/iwm/if_iwm.c
5204
table.ilink1);
sys/dev/iwm/if_iwm.c
5206
table.ilink2);
sys/dev/iwm/if_iwm.c
5207
device_printf(sc->sc_dev, "0x%08X | umac data1\n", table.data1);
sys/dev/iwm/if_iwm.c
5208
device_printf(sc->sc_dev, "0x%08X | umac data2\n", table.data2);
sys/dev/iwm/if_iwm.c
5209
device_printf(sc->sc_dev, "0x%08X | umac data3\n", table.data3);
sys/dev/iwm/if_iwm.c
5210
device_printf(sc->sc_dev, "0x%08X | umac major\n", table.umac_major);
sys/dev/iwm/if_iwm.c
5211
device_printf(sc->sc_dev, "0x%08X | umac minor\n", table.umac_minor);
sys/dev/iwm/if_iwm.c
5213
table.frame_pointer);
sys/dev/iwm/if_iwm.c
5215
table.stack_pointer);
sys/dev/iwm/if_iwm.c
5216
device_printf(sc->sc_dev, "0x%08X | last host cmd\n", table.cmd_header);
sys/dev/iwm/if_iwm.c
5218
table.nic_isr_pref);
sys/dev/iwm/if_iwm.c
5231
struct iwm_error_event_table table;
sys/dev/iwm/if_iwm.c
5242
if (iwm_read_mem(sc, base, &table, sizeof(table)/sizeof(uint32_t))) {
sys/dev/iwm/if_iwm.c
5247
if (!table.valid) {
sys/dev/iwm/if_iwm.c
5252
if (ERROR_START_OFFSET <= table.valid * ERROR_ELEM_SIZE) {
sys/dev/iwm/if_iwm.c
5255
sc->sc_flags, table.valid);
sys/dev/iwm/if_iwm.c
5258
device_printf(sc->sc_dev, "0x%08X | %-28s\n", table.error_id,
sys/dev/iwm/if_iwm.c
5259
iwm_desc_lookup(table.error_id));
sys/dev/iwm/if_iwm.c
5261
table.trm_hw_status0);
sys/dev/iwm/if_iwm.c
5263
table.trm_hw_status1);
sys/dev/iwm/if_iwm.c
5264
device_printf(sc->sc_dev, "%08X | branchlink2\n", table.blink2);
sys/dev/iwm/if_iwm.c
5265
device_printf(sc->sc_dev, "%08X | interruptlink1\n", table.ilink1);
sys/dev/iwm/if_iwm.c
5266
device_printf(sc->sc_dev, "%08X | interruptlink2\n", table.ilink2);
sys/dev/iwm/if_iwm.c
5267
device_printf(sc->sc_dev, "%08X | data1\n", table.data1);
sys/dev/iwm/if_iwm.c
5268
device_printf(sc->sc_dev, "%08X | data2\n", table.data2);
sys/dev/iwm/if_iwm.c
5269
device_printf(sc->sc_dev, "%08X | data3\n", table.data3);
sys/dev/iwm/if_iwm.c
5270
device_printf(sc->sc_dev, "%08X | beacon time\n", table.bcon_time);
sys/dev/iwm/if_iwm.c
5271
device_printf(sc->sc_dev, "%08X | tsf low\n", table.tsf_low);
sys/dev/iwm/if_iwm.c
5272
device_printf(sc->sc_dev, "%08X | tsf hi\n", table.tsf_hi);
sys/dev/iwm/if_iwm.c
5273
device_printf(sc->sc_dev, "%08X | time gp1\n", table.gp1);
sys/dev/iwm/if_iwm.c
5274
device_printf(sc->sc_dev, "%08X | time gp2\n", table.gp2);
sys/dev/iwm/if_iwm.c
5276
table.fw_rev_type);
sys/dev/iwm/if_iwm.c
5277
device_printf(sc->sc_dev, "%08X | uCode version major\n", table.major);
sys/dev/iwm/if_iwm.c
5278
device_printf(sc->sc_dev, "%08X | uCode version minor\n", table.minor);
sys/dev/iwm/if_iwm.c
5279
device_printf(sc->sc_dev, "%08X | hw version\n", table.hw_ver);
sys/dev/iwm/if_iwm.c
5280
device_printf(sc->sc_dev, "%08X | board version\n", table.brd_ver);
sys/dev/iwm/if_iwm.c
5281
device_printf(sc->sc_dev, "%08X | hcmd\n", table.hcmd);
sys/dev/iwm/if_iwm.c
5282
device_printf(sc->sc_dev, "%08X | isr0\n", table.isr0);
sys/dev/iwm/if_iwm.c
5283
device_printf(sc->sc_dev, "%08X | isr1\n", table.isr1);
sys/dev/iwm/if_iwm.c
5284
device_printf(sc->sc_dev, "%08X | isr2\n", table.isr2);
sys/dev/iwm/if_iwm.c
5285
device_printf(sc->sc_dev, "%08X | isr3\n", table.isr3);
sys/dev/iwm/if_iwm.c
5286
device_printf(sc->sc_dev, "%08X | isr4\n", table.isr4);
sys/dev/iwm/if_iwm.c
5287
device_printf(sc->sc_dev, "%08X | last cmd Id\n", table.last_cmd_id);
sys/dev/iwm/if_iwm.c
5288
device_printf(sc->sc_dev, "%08X | wait_event\n", table.wait_event);
sys/dev/iwm/if_iwm.c
5289
device_printf(sc->sc_dev, "%08X | l2p_control\n", table.l2p_control);
sys/dev/iwm/if_iwm.c
5290
device_printf(sc->sc_dev, "%08X | l2p_duration\n", table.l2p_duration);
sys/dev/iwm/if_iwm.c
5291
device_printf(sc->sc_dev, "%08X | l2p_mhvalid\n", table.l2p_mhvalid);
sys/dev/iwm/if_iwm.c
5292
device_printf(sc->sc_dev, "%08X | l2p_addr_match\n", table.l2p_addr_match);
sys/dev/iwm/if_iwm.c
5293
device_printf(sc->sc_dev, "%08X | lmpm_pmg_sel\n", table.lmpm_pmg_sel);
sys/dev/iwm/if_iwm.c
5294
device_printf(sc->sc_dev, "%08X | timestamp\n", table.u_timestamp);
sys/dev/iwm/if_iwm.c
5295
device_printf(sc->sc_dev, "%08X | flow_handler\n", table.flow_handler);
sys/dev/iwx/if_iwx.c
8745
struct iwx_umac_error_event_table table;
sys/dev/iwx/if_iwx.c
8756
if (iwx_read_mem(sc, base, &table, sizeof(table)/sizeof(uint32_t))) {
sys/dev/iwx/if_iwx.c
8761
if (ERROR_START_OFFSET <= table.valid * ERROR_ELEM_SIZE) {
sys/dev/iwx/if_iwx.c
8764
sc->sc_flags, table.valid);
sys/dev/iwx/if_iwx.c
8767
printf("%s: 0x%08X | %s\n", DEVNAME(sc), table.error_id,
sys/dev/iwx/if_iwx.c
8768
iwx_desc_lookup(table.error_id));
sys/dev/iwx/if_iwx.c
8769
printf("%s: 0x%08X | umac branchlink1\n", DEVNAME(sc), table.blink1);
sys/dev/iwx/if_iwx.c
8770
printf("%s: 0x%08X | umac branchlink2\n", DEVNAME(sc), table.blink2);
sys/dev/iwx/if_iwx.c
8771
printf("%s: 0x%08X | umac interruptlink1\n", DEVNAME(sc), table.ilink1);
sys/dev/iwx/if_iwx.c
8772
printf("%s: 0x%08X | umac interruptlink2\n", DEVNAME(sc), table.ilink2);
sys/dev/iwx/if_iwx.c
8773
printf("%s: 0x%08X | umac data1\n", DEVNAME(sc), table.data1);
sys/dev/iwx/if_iwx.c
8774
printf("%s: 0x%08X | umac data2\n", DEVNAME(sc), table.data2);
sys/dev/iwx/if_iwx.c
8775
printf("%s: 0x%08X | umac data3\n", DEVNAME(sc), table.data3);
sys/dev/iwx/if_iwx.c
8776
printf("%s: 0x%08X | umac major\n", DEVNAME(sc), table.umac_major);
sys/dev/iwx/if_iwx.c
8777
printf("%s: 0x%08X | umac minor\n", DEVNAME(sc), table.umac_minor);
sys/dev/iwx/if_iwx.c
8779
table.frame_pointer);
sys/dev/iwx/if_iwx.c
8781
table.stack_pointer);
sys/dev/iwx/if_iwx.c
8782
printf("%s: 0x%08X | last host cmd\n", DEVNAME(sc), table.cmd_header);
sys/dev/iwx/if_iwx.c
8784
table.nic_isr_pref);
sys/dev/iwx/if_iwx.c
8838
struct iwx_error_event_table table;
sys/dev/iwx/if_iwx.c
8852
if (iwx_read_mem(sc, base, &table, sizeof(table)/sizeof(uint32_t))) {
sys/dev/iwx/if_iwx.c
8858
if (!table.valid) {
sys/dev/iwx/if_iwx.c
8864
if (ERROR_START_OFFSET <= table.valid * ERROR_ELEM_SIZE) {
sys/dev/iwx/if_iwx.c
8867
sc->sc_flags, table.valid);
sys/dev/iwx/if_iwx.c
8871
printf("%s: 0x%08X | %-28s\n", DEVNAME(sc), table.error_id,
sys/dev/iwx/if_iwx.c
8872
iwx_desc_lookup(table.error_id));
sys/dev/iwx/if_iwx.c
8874
table.trm_hw_status0);
sys/dev/iwx/if_iwx.c
8876
table.trm_hw_status1);
sys/dev/iwx/if_iwx.c
8877
printf("%s: %08X | branchlink2\n", DEVNAME(sc), table.blink2);
sys/dev/iwx/if_iwx.c
8878
printf("%s: %08X | interruptlink1\n", DEVNAME(sc), table.ilink1);
sys/dev/iwx/if_iwx.c
8879
printf("%s: %08X | interruptlink2\n", DEVNAME(sc), table.ilink2);
sys/dev/iwx/if_iwx.c
8880
printf("%s: %08X | data1\n", DEVNAME(sc), table.data1);
sys/dev/iwx/if_iwx.c
8881
printf("%s: %08X | data2\n", DEVNAME(sc), table.data2);
sys/dev/iwx/if_iwx.c
8882
printf("%s: %08X | data3\n", DEVNAME(sc), table.data3);
sys/dev/iwx/if_iwx.c
8883
printf("%s: %08X | beacon time\n", DEVNAME(sc), table.bcon_time);
sys/dev/iwx/if_iwx.c
8884
printf("%s: %08X | tsf low\n", DEVNAME(sc), table.tsf_low);
sys/dev/iwx/if_iwx.c
8885
printf("%s: %08X | tsf hi\n", DEVNAME(sc), table.tsf_hi);
sys/dev/iwx/if_iwx.c
8886
printf("%s: %08X | time gp1\n", DEVNAME(sc), table.gp1);
sys/dev/iwx/if_iwx.c
8887
printf("%s: %08X | time gp2\n", DEVNAME(sc), table.gp2);
sys/dev/iwx/if_iwx.c
8889
table.fw_rev_type);
sys/dev/iwx/if_iwx.c
8891
table.major);
sys/dev/iwx/if_iwx.c
8893
table.minor);
sys/dev/iwx/if_iwx.c
8894
printf("%s: %08X | hw version\n", DEVNAME(sc), table.hw_ver);
sys/dev/iwx/if_iwx.c
8895
printf("%s: %08X | board version\n", DEVNAME(sc), table.brd_ver);
sys/dev/iwx/if_iwx.c
8896
printf("%s: %08X | hcmd\n", DEVNAME(sc), table.hcmd);
sys/dev/iwx/if_iwx.c
8897
printf("%s: %08X | isr0\n", DEVNAME(sc), table.isr0);
sys/dev/iwx/if_iwx.c
8898
printf("%s: %08X | isr1\n", DEVNAME(sc), table.isr1);
sys/dev/iwx/if_iwx.c
8899
printf("%s: %08X | isr2\n", DEVNAME(sc), table.isr2);
sys/dev/iwx/if_iwx.c
8900
printf("%s: %08X | isr3\n", DEVNAME(sc), table.isr3);
sys/dev/iwx/if_iwx.c
8901
printf("%s: %08X | isr4\n", DEVNAME(sc), table.isr4);
sys/dev/iwx/if_iwx.c
8902
printf("%s: %08X | last cmd Id\n", DEVNAME(sc), table.last_cmd_id);
sys/dev/iwx/if_iwx.c
8903
printf("%s: %08X | wait_event\n", DEVNAME(sc), table.wait_event);
sys/dev/iwx/if_iwx.c
8904
printf("%s: %08X | l2p_control\n", DEVNAME(sc), table.l2p_control);
sys/dev/iwx/if_iwx.c
8905
printf("%s: %08X | l2p_duration\n", DEVNAME(sc), table.l2p_duration);
sys/dev/iwx/if_iwx.c
8906
printf("%s: %08X | l2p_mhvalid\n", DEVNAME(sc), table.l2p_mhvalid);
sys/dev/iwx/if_iwx.c
8907
printf("%s: %08X | l2p_addr_match\n", DEVNAME(sc), table.l2p_addr_match);
sys/dev/iwx/if_iwx.c
8908
printf("%s: %08X | lmpm_pmg_sel\n", DEVNAME(sc), table.lmpm_pmg_sel);
sys/dev/iwx/if_iwx.c
8909
printf("%s: %08X | timestamp\n", DEVNAME(sc), table.u_timestamp);
sys/dev/iwx/if_iwx.c
8910
printf("%s: %08X | flow_handler\n", DEVNAME(sc), table.flow_handler);
sys/dev/iwx/if_iwx_debug.c
196
get_label(struct opcode_label *table, uint8_t opcode)
sys/dev/iwx/if_iwx_debug.c
198
struct opcode_label *op = table;
sys/dev/iwx/if_iwx_debug.c
244
struct opcode_label *table = get_table(group);
sys/dev/iwx/if_iwx_debug.c
245
if (table == NULL) {
sys/dev/iwx/if_iwx_debug.c
257
get_label(table, opcode), code);
sys/dev/mlx4/mlx4_core/icm.h
73
int mlx4_table_get(struct mlx4_dev *dev, struct mlx4_icm_table *table, u32 obj,
sys/dev/mlx4/mlx4_core/icm.h
75
void mlx4_table_put(struct mlx4_dev *dev, struct mlx4_icm_table *table, u32 obj);
sys/dev/mlx4/mlx4_core/icm.h
76
int mlx4_table_get_range(struct mlx4_dev *dev, struct mlx4_icm_table *table,
sys/dev/mlx4/mlx4_core/icm.h
78
void mlx4_table_put_range(struct mlx4_dev *dev, struct mlx4_icm_table *table,
sys/dev/mlx4/mlx4_core/icm.h
80
int mlx4_init_icm_table(struct mlx4_dev *dev, struct mlx4_icm_table *table,
sys/dev/mlx4/mlx4_core/icm.h
83
void mlx4_cleanup_icm_table(struct mlx4_dev *dev, struct mlx4_icm_table *table);
sys/dev/mlx4/mlx4_core/icm.h
84
void *mlx4_table_find(struct mlx4_icm_table *table, u32 obj, dma_addr_t *dma_handle);
sys/dev/mlx4/mlx4_core/mlx4.h
1225
void mlx4_init_mac_table(struct mlx4_dev *dev, struct mlx4_mac_table *table);
sys/dev/mlx4/mlx4_core/mlx4.h
1226
void mlx4_init_vlan_table(struct mlx4_dev *dev, struct mlx4_vlan_table *table);
sys/dev/mlx4/mlx4_core/mlx4.h
1228
struct mlx4_roce_gid_table *table);
sys/dev/mlx4/mlx4_core/mlx4.h
250
unsigned long *table;
sys/dev/mlx4/mlx4_core/mlx4.h
674
struct mlx4_icm_table table;
sys/dev/mlx4/mlx4_core/mlx4.h
685
struct mlx4_icm_table table;
sys/dev/mlx4/mlx4_core/mlx4.h
695
struct mlx4_icm_table table;
sys/dev/mlx4/mlx4_core/mlx4.h
723
struct mlx4_icm_table table;
sys/dev/mlx4/mlx4_core/mlx4_alloc.c
118
obj = find_aligned_range(bitmap->table, bitmap->last,
sys/dev/mlx4/mlx4_core/mlx4_alloc.c
123
obj = find_aligned_range(bitmap->table, 0, bitmap->max,
sys/dev/mlx4/mlx4_core/mlx4_alloc.c
128
bitmap_set(bitmap->table, obj, cnt);
sys/dev/mlx4/mlx4_core/mlx4_alloc.c
167
bitmap_clear(bitmap->table, obj, cnt);
sys/dev/mlx4/mlx4_core/mlx4_alloc.c
187
bitmap->table = kzalloc(BITS_TO_LONGS(bitmap->max) *
sys/dev/mlx4/mlx4_core/mlx4_alloc.c
189
if (!bitmap->table)
sys/dev/mlx4/mlx4_core/mlx4_alloc.c
192
bitmap_set(bitmap->table, 0, reserved_bot);
sys/dev/mlx4/mlx4_core/mlx4_alloc.c
199
kfree(bitmap->table);
sys/dev/mlx4/mlx4_core/mlx4_alloc.c
49
obj = find_next_zero_bit(bitmap->table, bitmap->max, bitmap->last);
sys/dev/mlx4/mlx4_core/mlx4_alloc.c
53
obj = find_first_zero_bit(bitmap->table, bitmap->max);
sys/dev/mlx4/mlx4_core/mlx4_alloc.c
57
set_bit(obj, bitmap->table);
sys/dev/mlx4/mlx4_core/mlx4_cmd.c
873
static int get_full_pkey_table(struct mlx4_dev *dev, u8 port, u16 *table,
sys/dev/mlx4/mlx4_core/mlx4_cmd.c
881
err = query_pkey_block(dev, port, i, table + i, inbox, outbox);
sys/dev/mlx4/mlx4_core/mlx4_cmd.c
909
u16 *table;
sys/dev/mlx4/mlx4_core/mlx4_cmd.c
935
table = kcalloc((dev->caps.pkey_table_len[port] / 32) + 1,
sys/dev/mlx4/mlx4_core/mlx4_cmd.c
936
sizeof(*table) * 32, GFP_KERNEL);
sys/dev/mlx4/mlx4_core/mlx4_cmd.c
938
if (!table)
sys/dev/mlx4/mlx4_core/mlx4_cmd.c
943
err = get_full_pkey_table(dev, port, table, inbox, outbox);
sys/dev/mlx4/mlx4_core/mlx4_cmd.c
947
outtab[vidx % 32] = cpu_to_be16(table[pidx]);
sys/dev/mlx4/mlx4_core/mlx4_cmd.c
950
kfree(table);
sys/dev/mlx4/mlx4_core/mlx4_cq.c
175
err = mlx4_table_get(dev, &cq_table->table, *cqn, GFP_KERNEL);
sys/dev/mlx4/mlx4_core/mlx4_cq.c
185
mlx4_table_put(dev, &cq_table->table, *cqn);
sys/dev/mlx4/mlx4_core/mlx4_cq.c
217
mlx4_table_put(dev, &cq_table->table, cqn);
sys/dev/mlx4/mlx4_core/mlx4_icm.c
250
int mlx4_table_get(struct mlx4_dev *dev, struct mlx4_icm_table *table, u32 obj,
sys/dev/mlx4/mlx4_core/mlx4_icm.c
253
u32 i = (obj & (table->num_obj - 1)) /
sys/dev/mlx4/mlx4_core/mlx4_icm.c
254
(MLX4_TABLE_CHUNK_SIZE / table->obj_size);
sys/dev/mlx4/mlx4_core/mlx4_icm.c
257
mutex_lock(&table->mutex);
sys/dev/mlx4/mlx4_core/mlx4_icm.c
259
if (table->icm[i]) {
sys/dev/mlx4/mlx4_core/mlx4_icm.c
260
++table->icm[i]->refcount;
sys/dev/mlx4/mlx4_core/mlx4_icm.c
264
table->icm[i] = mlx4_alloc_icm(dev, MLX4_TABLE_CHUNK_SIZE >> PAGE_SHIFT,
sys/dev/mlx4/mlx4_core/mlx4_icm.c
265
(table->lowmem ? gfp : GFP_HIGHUSER) |
sys/dev/mlx4/mlx4_core/mlx4_icm.c
266
__GFP_NOWARN, table->coherent);
sys/dev/mlx4/mlx4_core/mlx4_icm.c
267
if (!table->icm[i]) {
sys/dev/mlx4/mlx4_core/mlx4_icm.c
272
if (mlx4_MAP_ICM(dev, table->icm[i], table->virt +
sys/dev/mlx4/mlx4_core/mlx4_icm.c
274
mlx4_free_icm(dev, table->icm[i], table->coherent);
sys/dev/mlx4/mlx4_core/mlx4_icm.c
275
table->icm[i] = NULL;
sys/dev/mlx4/mlx4_core/mlx4_icm.c
280
++table->icm[i]->refcount;
sys/dev/mlx4/mlx4_core/mlx4_icm.c
283
mutex_unlock(&table->mutex);
sys/dev/mlx4/mlx4_core/mlx4_icm.c
287
void mlx4_table_put(struct mlx4_dev *dev, struct mlx4_icm_table *table, u32 obj)
sys/dev/mlx4/mlx4_core/mlx4_icm.c
292
i = (obj & (table->num_obj - 1)) / (MLX4_TABLE_CHUNK_SIZE / table->obj_size);
sys/dev/mlx4/mlx4_core/mlx4_icm.c
294
mutex_lock(&table->mutex);
sys/dev/mlx4/mlx4_core/mlx4_icm.c
296
if (--table->icm[i]->refcount == 0) {
sys/dev/mlx4/mlx4_core/mlx4_icm.c
298
mlx4_UNMAP_ICM(dev, table->virt + offset,
sys/dev/mlx4/mlx4_core/mlx4_icm.c
300
mlx4_free_icm(dev, table->icm[i], table->coherent);
sys/dev/mlx4/mlx4_core/mlx4_icm.c
301
table->icm[i] = NULL;
sys/dev/mlx4/mlx4_core/mlx4_icm.c
304
mutex_unlock(&table->mutex);
sys/dev/mlx4/mlx4_core/mlx4_icm.c
307
void *mlx4_table_find(struct mlx4_icm_table *table, u32 obj,
sys/dev/mlx4/mlx4_core/mlx4_icm.c
316
if (!table->lowmem)
sys/dev/mlx4/mlx4_core/mlx4_icm.c
319
mutex_lock(&table->mutex);
sys/dev/mlx4/mlx4_core/mlx4_icm.c
321
idx = (u64) (obj & (table->num_obj - 1)) * table->obj_size;
sys/dev/mlx4/mlx4_core/mlx4_icm.c
322
icm = table->icm[idx / MLX4_TABLE_CHUNK_SIZE];
sys/dev/mlx4/mlx4_core/mlx4_icm.c
350
mutex_unlock(&table->mutex);
sys/dev/mlx4/mlx4_core/mlx4_icm.c
354
int mlx4_table_get_range(struct mlx4_dev *dev, struct mlx4_icm_table *table,
sys/dev/mlx4/mlx4_core/mlx4_icm.c
357
int inc = MLX4_TABLE_CHUNK_SIZE / table->obj_size;
sys/dev/mlx4/mlx4_core/mlx4_icm.c
362
err = mlx4_table_get(dev, table, i, GFP_KERNEL);
sys/dev/mlx4/mlx4_core/mlx4_icm.c
372
mlx4_table_put(dev, table, i);
sys/dev/mlx4/mlx4_core/mlx4_icm.c
378
void mlx4_table_put_range(struct mlx4_dev *dev, struct mlx4_icm_table *table,
sys/dev/mlx4/mlx4_core/mlx4_icm.c
383
for (i = start; i <= end; i += MLX4_TABLE_CHUNK_SIZE / table->obj_size)
sys/dev/mlx4/mlx4_core/mlx4_icm.c
384
mlx4_table_put(dev, table, i);
sys/dev/mlx4/mlx4_core/mlx4_icm.c
387
int mlx4_init_icm_table(struct mlx4_dev *dev, struct mlx4_icm_table *table,
sys/dev/mlx4/mlx4_core/mlx4_icm.c
400
table->icm = kcalloc(num_icm, sizeof *table->icm, GFP_KERNEL);
sys/dev/mlx4/mlx4_core/mlx4_icm.c
401
if (!table->icm)
sys/dev/mlx4/mlx4_core/mlx4_icm.c
403
table->virt = virt;
sys/dev/mlx4/mlx4_core/mlx4_icm.c
404
table->num_icm = num_icm;
sys/dev/mlx4/mlx4_core/mlx4_icm.c
405
table->num_obj = nobj;
sys/dev/mlx4/mlx4_core/mlx4_icm.c
406
table->obj_size = obj_size;
sys/dev/mlx4/mlx4_core/mlx4_icm.c
407
table->lowmem = use_lowmem;
sys/dev/mlx4/mlx4_core/mlx4_icm.c
408
table->coherent = use_coherent;
sys/dev/mlx4/mlx4_core/mlx4_icm.c
409
mutex_init(&table->mutex);
sys/dev/mlx4/mlx4_core/mlx4_icm.c
418
table->icm[i] = mlx4_alloc_icm(dev, chunk_size >> PAGE_SHIFT,
sys/dev/mlx4/mlx4_core/mlx4_icm.c
421
if (!table->icm[i])
sys/dev/mlx4/mlx4_core/mlx4_icm.c
423
if (mlx4_MAP_ICM(dev, table->icm[i], virt + i * MLX4_TABLE_CHUNK_SIZE)) {
sys/dev/mlx4/mlx4_core/mlx4_icm.c
424
mlx4_free_icm(dev, table->icm[i], use_coherent);
sys/dev/mlx4/mlx4_core/mlx4_icm.c
425
table->icm[i] = NULL;
sys/dev/mlx4/mlx4_core/mlx4_icm.c
433
++table->icm[i]->refcount;
sys/dev/mlx4/mlx4_core/mlx4_icm.c
440
if (table->icm[i]) {
sys/dev/mlx4/mlx4_core/mlx4_icm.c
443
mlx4_free_icm(dev, table->icm[i], use_coherent);
sys/dev/mlx4/mlx4_core/mlx4_icm.c
446
kfree(table->icm);
sys/dev/mlx4/mlx4_core/mlx4_icm.c
451
void mlx4_cleanup_icm_table(struct mlx4_dev *dev, struct mlx4_icm_table *table)
sys/dev/mlx4/mlx4_core/mlx4_icm.c
455
for (i = 0; i < table->num_icm; ++i)
sys/dev/mlx4/mlx4_core/mlx4_icm.c
456
if (table->icm[i]) {
sys/dev/mlx4/mlx4_core/mlx4_icm.c
457
mlx4_UNMAP_ICM(dev, table->virt + i * MLX4_TABLE_CHUNK_SIZE,
sys/dev/mlx4/mlx4_core/mlx4_icm.c
459
mlx4_free_icm(dev, table->icm[i], table->coherent);
sys/dev/mlx4/mlx4_core/mlx4_icm.c
462
kfree(table->icm);
sys/dev/mlx4/mlx4_core/mlx4_main.c
1602
err = mlx4_init_icm_table(dev, &priv->eq_table.table,
sys/dev/mlx4/mlx4_core/mlx4_main.c
1685
err = mlx4_init_icm_table(dev, &priv->cq_table.table,
sys/dev/mlx4/mlx4_core/mlx4_main.c
1695
err = mlx4_init_icm_table(dev, &priv->srq_table.table,
sys/dev/mlx4/mlx4_core/mlx4_main.c
1712
err = mlx4_init_icm_table(dev, &priv->mcg_table.table,
sys/dev/mlx4/mlx4_core/mlx4_main.c
1726
mlx4_cleanup_icm_table(dev, &priv->srq_table.table);
sys/dev/mlx4/mlx4_core/mlx4_main.c
1729
mlx4_cleanup_icm_table(dev, &priv->cq_table.table);
sys/dev/mlx4/mlx4_core/mlx4_main.c
1750
mlx4_cleanup_icm_table(dev, &priv->eq_table.table);
sys/dev/mlx4/mlx4_core/mlx4_main.c
1771
mlx4_cleanup_icm_table(dev, &priv->mcg_table.table);
sys/dev/mlx4/mlx4_core/mlx4_main.c
1772
mlx4_cleanup_icm_table(dev, &priv->srq_table.table);
sys/dev/mlx4/mlx4_core/mlx4_main.c
1773
mlx4_cleanup_icm_table(dev, &priv->cq_table.table);
sys/dev/mlx4/mlx4_core/mlx4_main.c
1780
mlx4_cleanup_icm_table(dev, &priv->eq_table.table);
sys/dev/mlx4/mlx4_core/mlx4_port.c
101
struct mlx4_mac_table *table, int index)
sys/dev/mlx4/mlx4_core/mlx4_port.c
105
if (index < 0 || index >= table->max || !table->entries[index]) {
sys/dev/mlx4/mlx4_core/mlx4_port.c
113
struct mlx4_mac_table *table, u64 mac)
sys/dev/mlx4/mlx4_core/mlx4_port.c
118
if (table->refs[i] &&
sys/dev/mlx4/mlx4_core/mlx4_port.c
120
(MLX4_MAC_MASK & be64_to_cpu(table->entries[i])))
sys/dev/mlx4/mlx4_core/mlx4_port.c
153
struct mlx4_mac_table *table = &info->mac_table;
sys/dev/mlx4/mlx4_core/mlx4_port.c
157
if (!table->refs[i])
sys/dev/mlx4/mlx4_core/mlx4_port.c
160
if (mac == (MLX4_MAC_MASK & be64_to_cpu(table->entries[i]))) {
sys/dev/mlx4/mlx4_core/mlx4_port.c
185
struct mlx4_mac_table *table = &info->mac_table;
sys/dev/mlx4/mlx4_core/mlx4_port.c
201
mutex_lock(&table->mutex);
sys/dev/mlx4/mlx4_core/mlx4_port.c
205
mutex_lock_nested(&table->mutex, SINGLE_DEPTH_NESTING);
sys/dev/mlx4/mlx4_core/mlx4_port.c
208
mutex_lock(&table->mutex);
sys/dev/mlx4/mlx4_core/mlx4_port.c
216
if (((MLX4_MAC_MASK & mac) == (MLX4_MAC_MASK & be64_to_cpu(table->entries[i]))))
sys/dev/mlx4/mlx4_core/mlx4_port.c
242
if (!table->refs[index_at_dup_port] ||
sys/dev/mlx4/mlx4_core/mlx4_port.c
243
((MLX4_MAC_MASK & mac) == (MLX4_MAC_MASK & be64_to_cpu(table->entries[index_at_dup_port]))))
sys/dev/mlx4/mlx4_core/mlx4_port.c
251
if (!table->refs[i]) {
sys/dev/mlx4/mlx4_core/mlx4_port.c
262
(MLX4_MAC_MASK & be64_to_cpu(table->entries[i]))) {
sys/dev/mlx4/mlx4_core/mlx4_port.c
265
++table->refs[i];
sys/dev/mlx4/mlx4_core/mlx4_port.c
292
if (table->total == table->max) {
sys/dev/mlx4/mlx4_core/mlx4_port.c
299
table->entries[free] = cpu_to_be64(mac | MLX4_MAC_VALID);
sys/dev/mlx4/mlx4_core/mlx4_port.c
301
err = mlx4_set_port_mac_table(dev, port, table->entries);
sys/dev/mlx4/mlx4_core/mlx4_port.c
305
table->entries[free] = 0;
sys/dev/mlx4/mlx4_core/mlx4_port.c
308
table->refs[free] = 1;
sys/dev/mlx4/mlx4_core/mlx4_port.c
309
table->is_dup[free] = false;
sys/dev/mlx4/mlx4_core/mlx4_port.c
310
++table->total;
sys/dev/mlx4/mlx4_core/mlx4_port.c
329
mutex_unlock(&table->mutex);
sys/dev/mlx4/mlx4_core/mlx4_port.c
333
mutex_unlock(&table->mutex);
sys/dev/mlx4/mlx4_core/mlx4_port.c
336
mutex_unlock(&table->mutex);
sys/dev/mlx4/mlx4_core/mlx4_port.c
382
struct mlx4_mac_table *table;
sys/dev/mlx4/mlx4_core/mlx4_port.c
393
table = &info->mac_table;
sys/dev/mlx4/mlx4_core/mlx4_port.c
397
mutex_lock(&table->mutex);
sys/dev/mlx4/mlx4_core/mlx4_port.c
401
mutex_lock_nested(&table->mutex, SINGLE_DEPTH_NESTING);
sys/dev/mlx4/mlx4_core/mlx4_port.c
404
mutex_lock(&table->mutex);
sys/dev/mlx4/mlx4_core/mlx4_port.c
407
index = find_index(dev, table, mac);
sys/dev/mlx4/mlx4_core/mlx4_port.c
409
if (validate_index(dev, table, index))
sys/dev/mlx4/mlx4_core/mlx4_port.c
412
if (--table->refs[index] || table->is_dup[index]) {
sys/dev/mlx4/mlx4_core/mlx4_port.c
415
if (!table->refs[index])
sys/dev/mlx4/mlx4_core/mlx4_port.c
420
table->entries[index] = 0;
sys/dev/mlx4/mlx4_core/mlx4_port.c
421
if (mlx4_set_port_mac_table(dev, port, table->entries))
sys/dev/mlx4/mlx4_core/mlx4_port.c
423
--table->total;
sys/dev/mlx4/mlx4_core/mlx4_port.c
433
--table->total;
sys/dev/mlx4/mlx4_core/mlx4_port.c
438
mutex_unlock(&table->mutex);
sys/dev/mlx4/mlx4_core/mlx4_port.c
442
mutex_unlock(&table->mutex);
sys/dev/mlx4/mlx4_core/mlx4_port.c
445
mutex_unlock(&table->mutex);
sys/dev/mlx4/mlx4_core/mlx4_port.c
477
struct mlx4_mac_table *table = &info->mac_table;
sys/dev/mlx4/mlx4_core/mlx4_port.c
487
mutex_lock(&table->mutex);
sys/dev/mlx4/mlx4_core/mlx4_port.c
491
mutex_lock_nested(&table->mutex, SINGLE_DEPTH_NESTING);
sys/dev/mlx4/mlx4_core/mlx4_port.c
494
mutex_lock(&table->mutex);
sys/dev/mlx4/mlx4_core/mlx4_port.c
497
err = validate_index(dev, table, index);
sys/dev/mlx4/mlx4_core/mlx4_port.c
501
table->entries[index] = cpu_to_be64(new_mac | MLX4_MAC_VALID);
sys/dev/mlx4/mlx4_core/mlx4_port.c
503
err = mlx4_set_port_mac_table(dev, port, table->entries);
sys/dev/mlx4/mlx4_core/mlx4_port.c
507
table->entries[index] = 0;
sys/dev/mlx4/mlx4_core/mlx4_port.c
523
mutex_unlock(&table->mutex);
sys/dev/mlx4/mlx4_core/mlx4_port.c
527
mutex_unlock(&table->mutex);
sys/dev/mlx4/mlx4_core/mlx4_port.c
530
mutex_unlock(&table->mutex);
sys/dev/mlx4/mlx4_core/mlx4_port.c
560
struct mlx4_vlan_table *table = &mlx4_priv(dev)->port[port].vlan_table;
sys/dev/mlx4/mlx4_core/mlx4_port.c
564
if (table->refs[i] &&
sys/dev/mlx4/mlx4_core/mlx4_port.c
566
be32_to_cpu(table->entries[i])))) {
sys/dev/mlx4/mlx4_core/mlx4_port.c
580
struct mlx4_vlan_table *table = &mlx4_priv(dev)->port[port].vlan_table;
sys/dev/mlx4/mlx4_core/mlx4_port.c
596
mutex_lock(&table->mutex);
sys/dev/mlx4/mlx4_core/mlx4_port.c
600
mutex_lock_nested(&table->mutex, SINGLE_DEPTH_NESTING);
sys/dev/mlx4/mlx4_core/mlx4_port.c
603
mutex_lock(&table->mutex);
sys/dev/mlx4/mlx4_core/mlx4_port.c
606
if (table->total == table->max) {
sys/dev/mlx4/mlx4_core/mlx4_port.c
617
if (vlan == (MLX4_VLAN_MASK & be32_to_cpu(table->entries[i])))
sys/dev/mlx4/mlx4_core/mlx4_port.c
62
void mlx4_init_mac_table(struct mlx4_dev *dev, struct mlx4_mac_table *table)
sys/dev/mlx4/mlx4_core/mlx4_port.c
642
if (!table->refs[index_at_dup_port] ||
sys/dev/mlx4/mlx4_core/mlx4_port.c
651
if (!table->refs[i]) {
sys/dev/mlx4/mlx4_core/mlx4_port.c
66
mutex_init(&table->mutex);
sys/dev/mlx4/mlx4_core/mlx4_port.c
660
if ((table->refs[i] || table->is_dup[i]) &&
sys/dev/mlx4/mlx4_core/mlx4_port.c
662
be32_to_cpu(table->entries[i])))) {
sys/dev/mlx4/mlx4_core/mlx4_port.c
666
++table->refs[i];
sys/dev/mlx4/mlx4_core/mlx4_port.c
68
table->entries[i] = 0;
sys/dev/mlx4/mlx4_core/mlx4_port.c
69
table->refs[i] = 0;
sys/dev/mlx4/mlx4_core/mlx4_port.c
697
table->refs[free] = 1;
sys/dev/mlx4/mlx4_core/mlx4_port.c
698
table->is_dup[free] = false;
sys/dev/mlx4/mlx4_core/mlx4_port.c
699
table->entries[free] = cpu_to_be32(vlan | MLX4_VLAN_VALID);
sys/dev/mlx4/mlx4_core/mlx4_port.c
70
table->is_dup[i] = false;
sys/dev/mlx4/mlx4_core/mlx4_port.c
701
err = mlx4_set_port_vlan_table(dev, port, table->entries);
sys/dev/mlx4/mlx4_core/mlx4_port.c
704
table->refs[free] = 0;
sys/dev/mlx4/mlx4_core/mlx4_port.c
705
table->entries[free] = 0;
sys/dev/mlx4/mlx4_core/mlx4_port.c
708
++table->total;
sys/dev/mlx4/mlx4_core/mlx4_port.c
72
table->max = 1 << dev->caps.log_num_macs;
sys/dev/mlx4/mlx4_core/mlx4_port.c
728
mutex_unlock(&table->mutex);
sys/dev/mlx4/mlx4_core/mlx4_port.c
73
table->total = 0;
sys/dev/mlx4/mlx4_core/mlx4_port.c
732
mutex_unlock(&table->mutex);
sys/dev/mlx4/mlx4_core/mlx4_port.c
735
mutex_unlock(&table->mutex);
sys/dev/mlx4/mlx4_core/mlx4_port.c
76
void mlx4_init_vlan_table(struct mlx4_dev *dev, struct mlx4_vlan_table *table)
sys/dev/mlx4/mlx4_core/mlx4_port.c
764
struct mlx4_vlan_table *table = &mlx4_priv(dev)->port[port].vlan_table;
sys/dev/mlx4/mlx4_core/mlx4_port.c
772
mutex_lock(&table->mutex);
sys/dev/mlx4/mlx4_core/mlx4_port.c
776
mutex_lock_nested(&table->mutex, SINGLE_DEPTH_NESTING);
sys/dev/mlx4/mlx4_core/mlx4_port.c
779
mutex_lock(&table->mutex);
sys/dev/mlx4/mlx4_core/mlx4_port.c
792
if (--table->refs[index] || table->is_dup[index]) {
sys/dev/mlx4/mlx4_core/mlx4_port.c
794
table->refs[index], index);
sys/dev/mlx4/mlx4_core/mlx4_port.c
795
if (!table->refs[index])
sys/dev/mlx4/mlx4_core/mlx4_port.c
799
table->entries[index] = 0;
sys/dev/mlx4/mlx4_core/mlx4_port.c
80
mutex_init(&table->mutex);
sys/dev/mlx4/mlx4_core/mlx4_port.c
800
if (mlx4_set_port_vlan_table(dev, port, table->entries))
sys/dev/mlx4/mlx4_core/mlx4_port.c
802
--table->total;
sys/dev/mlx4/mlx4_core/mlx4_port.c
815
mutex_unlock(&table->mutex);
sys/dev/mlx4/mlx4_core/mlx4_port.c
819
mutex_unlock(&table->mutex);
sys/dev/mlx4/mlx4_core/mlx4_port.c
82
table->entries[i] = 0;
sys/dev/mlx4/mlx4_core/mlx4_port.c
822
mutex_unlock(&table->mutex);
sys/dev/mlx4/mlx4_core/mlx4_port.c
83
table->refs[i] = 0;
sys/dev/mlx4/mlx4_core/mlx4_port.c
84
table->is_dup[i] = false;
sys/dev/mlx4/mlx4_core/mlx4_port.c
86
table->max = (1 << dev->caps.log_num_vlans) - MLX4_VLAN_REGULAR;
sys/dev/mlx4/mlx4_core/mlx4_port.c
87
table->total = 0;
sys/dev/mlx4/mlx4_core/mlx4_port.c
91
struct mlx4_roce_gid_table *table)
sys/dev/mlx4/mlx4_core/mlx4_port.c
95
mutex_init(&table->mutex);
sys/dev/mlx4/mlx4_core/mlx4_port.c
97
memset(table->roce_gids[i].raw, 0, MLX4_ROCE_GID_ENTRY_SIZE);
sys/dev/mlx4/mlx4_core/mlx4_srq.c
103
err = mlx4_table_get(dev, &srq_table->table, *srqn, GFP_KERNEL);
sys/dev/mlx4/mlx4_core/mlx4_srq.c
113
mlx4_table_put(dev, &srq_table->table, *srqn);
sys/dev/mlx4/mlx4_core/mlx4_srq.c
143
mlx4_table_put(dev, &srq_table->table, srqn);
sys/dev/mlx5/mlx5_core/mlx5_cq.c
103
do_lock = atomic_read(&table->writercount) != 0;
sys/dev/mlx5/mlx5_core/mlx5_cq.c
105
spin_lock(&table->writerlock);
sys/dev/mlx5/mlx5_core/mlx5_cq.c
108
cq = table->linear_array[cqn].cq;
sys/dev/mlx5/mlx5_core/mlx5_cq.c
110
cq = radix_tree_lookup(&table->tree, cqn);
sys/dev/mlx5/mlx5_core/mlx5_cq.c
113
spin_unlock(&table->writerlock);
sys/dev/mlx5/mlx5_core/mlx5_cq.c
128
struct mlx5_cq_table *table = &dev->priv.cq_table;
sys/dev/mlx5/mlx5_core/mlx5_cq.c
143
mlx5_cq_table_write_lock(table);
sys/dev/mlx5/mlx5_core/mlx5_cq.c
144
err = radix_tree_insert(&table->tree, cq->cqn, cq);
sys/dev/mlx5/mlx5_core/mlx5_cq.c
146
table->linear_array[cq->cqn].cq = cq;
sys/dev/mlx5/mlx5_core/mlx5_cq.c
147
mlx5_cq_table_write_unlock(table);
sys/dev/mlx5/mlx5_core/mlx5_cq.c
167
struct mlx5_cq_table *table = &dev->priv.cq_table;
sys/dev/mlx5/mlx5_core/mlx5_cq.c
172
mlx5_cq_table_write_lock(table);
sys/dev/mlx5/mlx5_core/mlx5_cq.c
174
table->linear_array[cq->cqn].cq = NULL;
sys/dev/mlx5/mlx5_core/mlx5_cq.c
175
tmp = radix_tree_delete(&table->tree, cq->cqn);
sys/dev/mlx5/mlx5_core/mlx5_cq.c
176
mlx5_cq_table_write_unlock(table);
sys/dev/mlx5/mlx5_core/mlx5_cq.c
263
struct mlx5_cq_table *table = &dev->priv.cq_table;
sys/dev/mlx5/mlx5_core/mlx5_cq.c
265
memset(table, 0, sizeof(*table));
sys/dev/mlx5/mlx5_core/mlx5_cq.c
266
spin_lock_init(&table->writerlock);
sys/dev/mlx5/mlx5_core/mlx5_cq.c
267
INIT_RADIX_TREE(&table->tree, GFP_ATOMIC);
sys/dev/mlx5/mlx5_core/mlx5_cq.c
40
mlx5_cq_table_write_lock(struct mlx5_cq_table *table)
sys/dev/mlx5/mlx5_core/mlx5_cq.c
43
atomic_inc(&table->writercount);
sys/dev/mlx5/mlx5_core/mlx5_cq.c
46
spin_lock(&table->writerlock);
sys/dev/mlx5/mlx5_core/mlx5_cq.c
50
mlx5_cq_table_write_unlock(struct mlx5_cq_table *table)
sys/dev/mlx5/mlx5_core/mlx5_cq.c
53
spin_unlock(&table->writerlock);
sys/dev/mlx5/mlx5_core/mlx5_cq.c
54
atomic_dec(&table->writercount);
sys/dev/mlx5/mlx5_core/mlx5_cq.c
61
struct mlx5_cq_table *table = &dev->priv.cq_table;
sys/dev/mlx5/mlx5_core/mlx5_cq.c
71
do_lock = atomic_read(&table->writercount) != 0;
sys/dev/mlx5/mlx5_core/mlx5_cq.c
73
spin_lock(&table->writerlock);
sys/dev/mlx5/mlx5_core/mlx5_cq.c
76
cq = table->linear_array[cqn].cq;
sys/dev/mlx5/mlx5_core/mlx5_cq.c
78
cq = radix_tree_lookup(&table->tree, cqn);
sys/dev/mlx5/mlx5_core/mlx5_cq.c
81
spin_unlock(&table->writerlock);
sys/dev/mlx5/mlx5_core/mlx5_cq.c
96
struct mlx5_cq_table *table = &dev->priv.cq_table;
sys/dev/mlx5/mlx5_core/mlx5_eq.c
553
struct mlx5_eq_table *table = &dev->priv.eq_table;
sys/dev/mlx5/mlx5_core/mlx5_eq.c
585
err = mlx5_create_map_eq(dev, &table->cmd_eq, MLX5_EQ_VEC_CMD,
sys/dev/mlx5/mlx5_core/mlx5_eq.c
594
err = mlx5_create_map_eq(dev, &table->async_eq, MLX5_EQ_VEC_ASYNC,
sys/dev/mlx5/mlx5_core/mlx5_eq.c
601
err = mlx5_create_map_eq(dev, &table->pages_eq,
sys/dev/mlx5/mlx5_core/mlx5_eq.c
613
mlx5_destroy_unmap_eq(dev, &table->async_eq);
sys/dev/mlx5/mlx5_core/mlx5_eq.c
617
mlx5_destroy_unmap_eq(dev, &table->cmd_eq);
sys/dev/mlx5/mlx5_core/mlx5_eq.c
623
struct mlx5_eq_table *table = &dev->priv.eq_table;
sys/dev/mlx5/mlx5_core/mlx5_eq.c
626
err = mlx5_destroy_unmap_eq(dev, &table->pages_eq);
sys/dev/mlx5/mlx5_core/mlx5_eq.c
630
mlx5_destroy_unmap_eq(dev, &table->async_eq);
sys/dev/mlx5/mlx5_core/mlx5_eq.c
633
err = mlx5_destroy_unmap_eq(dev, &table->cmd_eq);
sys/dev/mlx5/mlx5_core/mlx5_main.c
338
struct mlx5_eq_table *table = &priv->eq_table;
sys/dev/mlx5/mlx5_core/mlx5_main.c
366
table->num_comp_vectors = nvec - MLX5_EQ_VEC_COMP_BASE;
sys/dev/mlx5/mlx5_core/mlx5_main.c
684
struct mlx5_eq_table *table = &dev->priv.eq_table;
sys/dev/mlx5/mlx5_core/mlx5_main.c
688
spin_lock(&table->lock);
sys/dev/mlx5/mlx5_core/mlx5_main.c
689
list_for_each_entry(eq, &table->comp_eqs_list, list) {
sys/dev/mlx5/mlx5_core/mlx5_main.c
697
spin_unlock(&table->lock);
sys/dev/mlx5/mlx5_core/mlx5_main.c
705
struct mlx5_eq_table *table = &dev->priv.eq_table;
sys/dev/mlx5/mlx5_core/mlx5_main.c
708
spin_lock(&table->lock);
sys/dev/mlx5/mlx5_core/mlx5_main.c
709
list_for_each_entry_safe(eq, n, &table->comp_eqs_list, list) {
sys/dev/mlx5/mlx5_core/mlx5_main.c
711
spin_unlock(&table->lock);
sys/dev/mlx5/mlx5_core/mlx5_main.c
716
spin_lock(&table->lock);
sys/dev/mlx5/mlx5_core/mlx5_main.c
718
spin_unlock(&table->lock);
sys/dev/mlx5/mlx5_core/mlx5_main.c
723
struct mlx5_eq_table *table = &dev->priv.eq_table;
sys/dev/mlx5/mlx5_core/mlx5_main.c
730
INIT_LIST_HEAD(&table->comp_eqs_list);
sys/dev/mlx5/mlx5_core/mlx5_main.c
731
ncomp_vec = table->num_comp_vectors;
sys/dev/mlx5/mlx5_core/mlx5_main.c
744
spin_lock(&table->lock);
sys/dev/mlx5/mlx5_core/mlx5_main.c
745
list_add_tail(&eq->list, &table->comp_eqs_list);
sys/dev/mlx5/mlx5_core/mlx5_main.c
746
spin_unlock(&table->lock);
sys/dev/mlx5/mlx5_core/mlx5_mr.c
101
spin_lock_irqsave(&table->lock, flags);
sys/dev/mlx5/mlx5_core/mlx5_mr.c
102
err = radix_tree_insert(&table->tree, mlx5_mkey_to_idx(mkey->key), mkey);
sys/dev/mlx5/mlx5_core/mlx5_mr.c
103
spin_unlock_irqrestore(&table->lock, flags);
sys/dev/mlx5/mlx5_core/mlx5_mr.c
125
struct mlx5_mr_table *table = &dev->priv.mr_table;
sys/dev/mlx5/mlx5_core/mlx5_mr.c
131
spin_lock_irqsave(&table->lock, flags);
sys/dev/mlx5/mlx5_core/mlx5_mr.c
132
deleted_mr = radix_tree_delete(&table->tree, mlx5_mkey_to_idx(mkey->key));
sys/dev/mlx5/mlx5_core/mlx5_mr.c
133
spin_unlock_irqrestore(&table->lock, flags);
sys/dev/mlx5/mlx5_core/mlx5_mr.c
41
struct mlx5_mr_table *table = &dev->priv.mr_table;
sys/dev/mlx5/mlx5_core/mlx5_mr.c
43
memset(table, 0, sizeof(*table));
sys/dev/mlx5/mlx5_core/mlx5_mr.c
44
spin_lock_init(&table->lock);
sys/dev/mlx5/mlx5_core/mlx5_mr.c
45
INIT_RADIX_TREE(&table->tree, GFP_ATOMIC);
sys/dev/mlx5/mlx5_core/mlx5_mr.c
59
struct mlx5_mr_table *table = &dev->priv.mr_table;
sys/dev/mlx5/mlx5_core/mlx5_port.c
1349
const u32 *table;
sys/dev/mlx5/mlx5_core/mlx5_port.c
1354
mlx5e_port_get_speed_arr(mdev, &table, &max_size);
sys/dev/mlx5/mlx5_core/mlx5_port.c
1357
speed = table[i];
sys/dev/mlx5/mlx5_core/mlx5_qp.c
108
struct mlx5_qp_table *table = &dev->priv.qp_table;
sys/dev/mlx5/mlx5_core/mlx5_qp.c
111
spin_lock_irqsave(&table->lock, flags);
sys/dev/mlx5/mlx5_core/mlx5_qp.c
112
radix_tree_delete(&table->tree, qp->qpn | (rsc_type << 24));
sys/dev/mlx5/mlx5_core/mlx5_qp.c
113
spin_unlock_irqrestore(&table->lock, flags);
sys/dev/mlx5/mlx5_core/mlx5_qp.c
310
struct mlx5_qp_table *table = &dev->priv.qp_table;
sys/dev/mlx5/mlx5_core/mlx5_qp.c
312
memset(table, 0, sizeof(*table));
sys/dev/mlx5/mlx5_core/mlx5_qp.c
313
spin_lock_init(&table->lock);
sys/dev/mlx5/mlx5_core/mlx5_qp.c
314
INIT_RADIX_TREE(&table->tree, GFP_ATOMIC);
sys/dev/mlx5/mlx5_core/mlx5_qp.c
363
struct mlx5_qp_table *table = &dev->priv.qp_table;
sys/dev/mlx5/mlx5_core/mlx5_qp.c
38
struct mlx5_qp_table *table = &dev->priv.qp_table;
sys/dev/mlx5/mlx5_core/mlx5_qp.c
381
spin_lock_irq(&table->lock);
sys/dev/mlx5/mlx5_core/mlx5_qp.c
382
err = radix_tree_insert(&table->tree, dct->dctn, dct);
sys/dev/mlx5/mlx5_core/mlx5_qp.c
383
spin_unlock_irq(&table->lock);
sys/dev/mlx5/mlx5_core/mlx5_qp.c
41
spin_lock(&table->lock);
sys/dev/mlx5/mlx5_core/mlx5_qp.c
421
struct mlx5_qp_table *table = &dev->priv.qp_table;
sys/dev/mlx5/mlx5_core/mlx5_qp.c
43
common = radix_tree_lookup(&table->tree, rsn);
sys/dev/mlx5/mlx5_core/mlx5_qp.c
440
spin_lock_irqsave(&table->lock, flags);
sys/dev/mlx5/mlx5_core/mlx5_qp.c
441
if (radix_tree_delete(&table->tree, dct->dctn) != dct)
sys/dev/mlx5/mlx5_core/mlx5_qp.c
443
spin_unlock_irqrestore(&table->lock, flags);
sys/dev/mlx5/mlx5_core/mlx5_qp.c
47
spin_unlock(&table->lock);
sys/dev/mlx5/mlx5_core/mlx5_qp.c
87
struct mlx5_qp_table *table = &dev->priv.qp_table;
sys/dev/mlx5/mlx5_core/mlx5_qp.c
92
spin_lock_irq(&table->lock);
sys/dev/mlx5/mlx5_core/mlx5_qp.c
93
err = radix_tree_insert(&table->tree, qp->qpn | (rsc_type << 24), qp);
sys/dev/mlx5/mlx5_core/mlx5_qp.c
94
spin_unlock_irq(&table->lock);
sys/dev/mlx5/mlx5_core/mlx5_rl.c
104
struct mlx5_rl_table *table = &dev->priv.rl_table;
sys/dev/mlx5/mlx5_core/mlx5_rl.c
108
mutex_lock(&table->rl_lock);
sys/dev/mlx5/mlx5_core/mlx5_rl.c
112
rate, table->min_rate, table->max_rate);
sys/dev/mlx5/mlx5_core/mlx5_rl.c
117
entry = find_rl_entry(table, rate, burst);
sys/dev/mlx5/mlx5_core/mlx5_rl.c
120
table->max_size);
sys/dev/mlx5/mlx5_core/mlx5_rl.c
156
mutex_unlock(&table->rl_lock);
sys/dev/mlx5/mlx5_core/mlx5_rl.c
163
struct mlx5_rl_table *table = &dev->priv.rl_table;
sys/dev/mlx5/mlx5_core/mlx5_rl.c
170
mutex_lock(&table->rl_lock);
sys/dev/mlx5/mlx5_core/mlx5_rl.c
171
entry = find_rl_entry(table, rate, burst);
sys/dev/mlx5/mlx5_core/mlx5_rl.c
186
mutex_unlock(&table->rl_lock);
sys/dev/mlx5/mlx5_core/mlx5_rl.c
192
struct mlx5_rl_table *table = &dev->priv.rl_table;
sys/dev/mlx5/mlx5_core/mlx5_rl.c
195
mutex_init(&table->rl_lock);
sys/dev/mlx5/mlx5_core/mlx5_rl.c
197
table->max_size = 0;
sys/dev/mlx5/mlx5_core/mlx5_rl.c
202
table->max_size = MLX5_CAP_QOS(dev, packet_pacing_rate_table_size) - 1;
sys/dev/mlx5/mlx5_core/mlx5_rl.c
203
table->max_rate = MLX5_CAP_QOS(dev, packet_pacing_max_rate);
sys/dev/mlx5/mlx5_core/mlx5_rl.c
204
table->min_rate = MLX5_CAP_QOS(dev, packet_pacing_min_rate);
sys/dev/mlx5/mlx5_core/mlx5_rl.c
206
table->rl_entry = kcalloc(table->max_size, sizeof(struct mlx5_rl_entry),
sys/dev/mlx5/mlx5_core/mlx5_rl.c
208
if (!table->rl_entry)
sys/dev/mlx5/mlx5_core/mlx5_rl.c
214
for (i = 0; i < table->max_size; i++)
sys/dev/mlx5/mlx5_core/mlx5_rl.c
215
table->rl_entry[i].index = i + 1;
sys/dev/mlx5/mlx5_core/mlx5_rl.c
222
struct mlx5_rl_table *table = &dev->priv.rl_table;
sys/dev/mlx5/mlx5_core/mlx5_rl.c
226
for (i = 0; i < table->max_size; i++)
sys/dev/mlx5/mlx5_core/mlx5_rl.c
227
if (table->rl_entry[i].rate)
sys/dev/mlx5/mlx5_core/mlx5_rl.c
229
table->rl_entry[i].index);
sys/dev/mlx5/mlx5_core/mlx5_rl.c
41
static struct mlx5_rl_entry *find_rl_entry(struct mlx5_rl_table *table,
sys/dev/mlx5/mlx5_core/mlx5_rl.c
48
for (i = 0; i < table->max_size; i++) {
sys/dev/mlx5/mlx5_core/mlx5_rl.c
49
entry = table->rl_entry + i;
sys/dev/mlx5/mlx5_core/mlx5_rl.c
95
const struct mlx5_rl_table *table = &dev->priv.rl_table;
sys/dev/mlx5/mlx5_core/mlx5_rl.c
97
return (rate <= table->max_rate && rate >= table->min_rate &&
sys/dev/mlx5/mlx5_core/mlx5_srq.c
115
struct mlx5_srq_table *table = &dev->priv.srq_table;
sys/dev/mlx5/mlx5_core/mlx5_srq.c
118
spin_lock(&table->lock);
sys/dev/mlx5/mlx5_core/mlx5_srq.c
120
srq = radix_tree_lookup(&table->tree, srqn);
sys/dev/mlx5/mlx5_core/mlx5_srq.c
124
spin_unlock(&table->lock);
sys/dev/mlx5/mlx5_core/mlx5_srq.c
39
struct mlx5_srq_table *table = &dev->priv.srq_table;
sys/dev/mlx5/mlx5_core/mlx5_srq.c
394
struct mlx5_srq_table *table = &dev->priv.srq_table;
sys/dev/mlx5/mlx5_core/mlx5_srq.c
408
spin_lock_irq(&table->lock);
sys/dev/mlx5/mlx5_core/mlx5_srq.c
409
err = radix_tree_insert(&table->tree, srq->srqn, srq);
sys/dev/mlx5/mlx5_core/mlx5_srq.c
410
spin_unlock_irq(&table->lock);
sys/dev/mlx5/mlx5_core/mlx5_srq.c
42
spin_lock(&table->lock);
sys/dev/mlx5/mlx5_core/mlx5_srq.c
427
struct mlx5_srq_table *table = &dev->priv.srq_table;
sys/dev/mlx5/mlx5_core/mlx5_srq.c
431
spin_lock_irq(&table->lock);
sys/dev/mlx5/mlx5_core/mlx5_srq.c
432
tmp = radix_tree_delete(&table->tree, srq->srqn);
sys/dev/mlx5/mlx5_core/mlx5_srq.c
433
spin_unlock_irq(&table->lock);
sys/dev/mlx5/mlx5_core/mlx5_srq.c
44
srq = radix_tree_lookup(&table->tree, srqn);
sys/dev/mlx5/mlx5_core/mlx5_srq.c
48
spin_unlock(&table->lock);
sys/dev/mlx5/mlx5_core/mlx5_srq.c
481
struct mlx5_srq_table *table = &dev->priv.srq_table;
sys/dev/mlx5/mlx5_core/mlx5_srq.c
483
memset(table, 0, sizeof(*table));
sys/dev/mlx5/mlx5_core/mlx5_srq.c
484
spin_lock_init(&table->lock);
sys/dev/mlx5/mlx5_core/mlx5_srq.c
485
INIT_RADIX_TREE(&table->tree, GFP_ATOMIC);
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
1369
struct mlx5_devx_event_table *table;
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
1374
table = &obj->ib_dev->devx_event_table;
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
1376
event = xa_load(&table->event_xa, MLX5_EVENT_TYPE_COMP);
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
2353
struct mlx5_devx_event_table *table;
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
2366
table = &dev->devx_event_table;
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
2373
event = xa_load(&table->event_xa, event_type | (obj_type << 16));
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
2400
struct mlx5_devx_event_table *table = &dev->devx_event_table;
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
2402
xa_init_flags(&table->event_xa, 0);
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
2403
mutex_init(&table->event_xa_lock);
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
2410
struct mlx5_devx_event_table *table = &dev->devx_event_table;
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
2419
xa_for_each(&table->event_xa, id, entry) {
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
2427
xa_destroy(&table->event_xa);
sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
118
struct mlx5_mr_table *table = &dev->mdev->priv.mr_table;
sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
145
spin_lock_irqsave(&table->lock, flags);
sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
146
err = radix_tree_insert(&table->tree, mlx5_mkey_to_idx(mr->mmkey.key),
sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
150
spin_unlock_irqrestore(&table->lock, flags);
sys/dev/mpr/mpr_table.c
64
mpr_describe_table(struct mpr_table_lookup *table, u_int code)
sys/dev/mpr/mpr_table.c
68
for (i = 0; table[i].string != NULL; i++) {
sys/dev/mpr/mpr_table.c
69
if (table[i].code == code)
sys/dev/mpr/mpr_table.c
70
return(table[i].string);
sys/dev/mpr/mpr_table.c
72
return(table[i+1].string);
sys/dev/mpr/mpr_table.h
35
char * mpr_describe_table(struct mpr_table_lookup *table, u_int code);
sys/dev/mps/mps_table.c
65
mps_describe_table(struct mps_table_lookup *table, u_int code)
sys/dev/mps/mps_table.c
69
for (i = 0; table[i].string != NULL; i++) {
sys/dev/mps/mps_table.c
70
if (table[i].code == code)
sys/dev/mps/mps_table.c
71
return(table[i].string);
sys/dev/mps/mps_table.c
73
return(table[i+1].string);
sys/dev/mps/mps_table.h
37
char * mps_describe_table(struct mps_table_lookup *table, u_int code);
sys/dev/mpt/mpt_debug.c
658
mpt_decode_value(mpt_decode_entry_t *table, u_int num_entries,
sys/dev/mpt/mpt_debug.c
676
if (table == NULL) {
sys/dev/mpt/mpt_debug.c
686
if (((value & table[entry].mask)
sys/dev/mpt/mpt_debug.c
687
!= table[entry].value)
sys/dev/mpt/mpt_debug.c
688
|| ((printed_mask & table[entry].mask)
sys/dev/mpt/mpt_debug.c
689
== table[entry].mask))
sys/dev/mpt/mpt_debug.c
694
table[entry].name);
sys/dev/mpt/mpt_debug.c
695
printed_mask |= table[entry].mask;
sys/dev/mthca/mthca_allocator.c
100
set_bit(i, alloc->table);
sys/dev/mthca/mthca_allocator.c
107
kfree(alloc->table);
sys/dev/mthca/mthca_allocator.c
47
obj = find_next_zero_bit(alloc->table, alloc->max, alloc->last);
sys/dev/mthca/mthca_allocator.c
50
obj = find_first_zero_bit(alloc->table, alloc->max);
sys/dev/mthca/mthca_allocator.c
54
set_bit(obj, alloc->table);
sys/dev/mthca/mthca_allocator.c
72
clear_bit(obj, alloc->table);
sys/dev/mthca/mthca_allocator.c
93
alloc->table = kmalloc(BITS_TO_LONGS(num) * sizeof (long),
sys/dev/mthca/mthca_allocator.c
95
if (!alloc->table)
sys/dev/mthca/mthca_allocator.c
98
bitmap_zero(alloc->table, num);
sys/dev/mthca/mthca_cq.c
789
err = mthca_table_get(dev, dev->cq_table.table, cq->cqn);
sys/dev/mthca/mthca_cq.c
884
mthca_table_put(dev, dev->cq_table.table, cq->cqn);
sys/dev/mthca/mthca_cq.c
951
mthca_table_put(dev, dev->cq_table.table, cq->cqn);
sys/dev/mthca/mthca_dev.h
186
unsigned long *table;
sys/dev/mthca/mthca_dev.h
245
struct mthca_icm_table *table;
sys/dev/mthca/mthca_dev.h
252
struct mthca_icm_table *table;
sys/dev/mthca/mthca_dev.h
278
struct mthca_icm_table *table;
sys/dev/mthca/mthca_main.c
477
mdev->cq_table.table = mthca_alloc_icm_table(mdev, init_hca->cqc_base,
sys/dev/mthca/mthca_main.c
482
if (!mdev->cq_table.table) {
sys/dev/mthca/mthca_main.c
489
mdev->srq_table.table =
sys/dev/mthca/mthca_main.c
495
if (!mdev->srq_table.table) {
sys/dev/mthca/mthca_main.c
508
mdev->mcg_table.table = mthca_alloc_icm_table(mdev, init_hca->mc_base,
sys/dev/mthca/mthca_main.c
515
if (!mdev->mcg_table.table) {
sys/dev/mthca/mthca_main.c
525
mthca_free_icm_table(mdev, mdev->srq_table.table);
sys/dev/mthca/mthca_main.c
528
mthca_free_icm_table(mdev, mdev->cq_table.table);
sys/dev/mthca/mthca_main.c
560
mthca_free_icm_table(mdev, mdev->mcg_table.table);
sys/dev/mthca/mthca_main.c
562
mthca_free_icm_table(mdev, mdev->srq_table.table);
sys/dev/mthca/mthca_main.c
563
mthca_free_icm_table(mdev, mdev->cq_table.table);
sys/dev/mthca/mthca_memfree.c
221
int mthca_table_get(struct mthca_dev *dev, struct mthca_icm_table *table, int obj)
sys/dev/mthca/mthca_memfree.c
223
int i = (obj & (table->num_obj - 1)) * table->obj_size / MTHCA_TABLE_CHUNK_SIZE;
sys/dev/mthca/mthca_memfree.c
226
mutex_lock(&table->mutex);
sys/dev/mthca/mthca_memfree.c
228
if (table->icm[i]) {
sys/dev/mthca/mthca_memfree.c
229
++table->icm[i]->refcount;
sys/dev/mthca/mthca_memfree.c
233
table->icm[i] = mthca_alloc_icm(dev, MTHCA_TABLE_CHUNK_SIZE >> PAGE_SHIFT,
sys/dev/mthca/mthca_memfree.c
234
(table->lowmem ? GFP_KERNEL : GFP_HIGHUSER) |
sys/dev/mthca/mthca_memfree.c
235
__GFP_NOWARN, table->coherent);
sys/dev/mthca/mthca_memfree.c
236
if (!table->icm[i]) {
sys/dev/mthca/mthca_memfree.c
241
if (mthca_MAP_ICM(dev, table->icm[i],
sys/dev/mthca/mthca_memfree.c
242
table->virt + i * MTHCA_TABLE_CHUNK_SIZE)) {
sys/dev/mthca/mthca_memfree.c
243
mthca_free_icm(dev, table->icm[i], table->coherent);
sys/dev/mthca/mthca_memfree.c
244
table->icm[i] = NULL;
sys/dev/mthca/mthca_memfree.c
249
++table->icm[i]->refcount;
sys/dev/mthca/mthca_memfree.c
252
mutex_unlock(&table->mutex);
sys/dev/mthca/mthca_memfree.c
256
void mthca_table_put(struct mthca_dev *dev, struct mthca_icm_table *table, int obj)
sys/dev/mthca/mthca_memfree.c
263
i = (obj & (table->num_obj - 1)) * table->obj_size / MTHCA_TABLE_CHUNK_SIZE;
sys/dev/mthca/mthca_memfree.c
265
mutex_lock(&table->mutex);
sys/dev/mthca/mthca_memfree.c
267
if (--table->icm[i]->refcount == 0) {
sys/dev/mthca/mthca_memfree.c
268
mthca_UNMAP_ICM(dev, table->virt + i * MTHCA_TABLE_CHUNK_SIZE,
sys/dev/mthca/mthca_memfree.c
270
mthca_free_icm(dev, table->icm[i], table->coherent);
sys/dev/mthca/mthca_memfree.c
271
table->icm[i] = NULL;
sys/dev/mthca/mthca_memfree.c
274
mutex_unlock(&table->mutex);
sys/dev/mthca/mthca_memfree.c
277
void *mthca_table_find(struct mthca_icm_table *table, int obj, dma_addr_t *dma_handle)
sys/dev/mthca/mthca_memfree.c
284
if (!table->lowmem)
sys/dev/mthca/mthca_memfree.c
287
mutex_lock(&table->mutex);
sys/dev/mthca/mthca_memfree.c
289
idx = (obj & (table->num_obj - 1)) * table->obj_size;
sys/dev/mthca/mthca_memfree.c
290
icm = table->icm[idx / MTHCA_TABLE_CHUNK_SIZE];
sys/dev/mthca/mthca_memfree.c
316
mutex_unlock(&table->mutex);
sys/dev/mthca/mthca_memfree.c
320
int mthca_table_get_range(struct mthca_dev *dev, struct mthca_icm_table *table,
sys/dev/mthca/mthca_memfree.c
323
int inc = MTHCA_TABLE_CHUNK_SIZE / table->obj_size;
sys/dev/mthca/mthca_memfree.c
327
err = mthca_table_get(dev, table, i);
sys/dev/mthca/mthca_memfree.c
337
mthca_table_put(dev, table, i);
sys/dev/mthca/mthca_memfree.c
343
void mthca_table_put_range(struct mthca_dev *dev, struct mthca_icm_table *table,
sys/dev/mthca/mthca_memfree.c
351
for (i = start; i <= end; i += MTHCA_TABLE_CHUNK_SIZE / table->obj_size)
sys/dev/mthca/mthca_memfree.c
352
mthca_table_put(dev, table, i);
sys/dev/mthca/mthca_memfree.c
360
struct mthca_icm_table *table;
sys/dev/mthca/mthca_memfree.c
369
table = kmalloc(sizeof *table + num_icm * sizeof *table->icm, GFP_KERNEL);
sys/dev/mthca/mthca_memfree.c
370
if (!table)
sys/dev/mthca/mthca_memfree.c
373
table->virt = virt;
sys/dev/mthca/mthca_memfree.c
374
table->num_icm = num_icm;
sys/dev/mthca/mthca_memfree.c
375
table->num_obj = nobj;
sys/dev/mthca/mthca_memfree.c
376
table->obj_size = obj_size;
sys/dev/mthca/mthca_memfree.c
377
table->lowmem = use_lowmem;
sys/dev/mthca/mthca_memfree.c
378
table->coherent = use_coherent;
sys/dev/mthca/mthca_memfree.c
379
mutex_init(&table->mutex);
sys/dev/mthca/mthca_memfree.c
382
table->icm[i] = NULL;
sys/dev/mthca/mthca_memfree.c
389
table->icm[i] = mthca_alloc_icm(dev, chunk_size >> PAGE_SHIFT,
sys/dev/mthca/mthca_memfree.c
392
if (!table->icm[i])
sys/dev/mthca/mthca_memfree.c
394
if (mthca_MAP_ICM(dev, table->icm[i],
sys/dev/mthca/mthca_memfree.c
396
mthca_free_icm(dev, table->icm[i], table->coherent);
sys/dev/mthca/mthca_memfree.c
397
table->icm[i] = NULL;
sys/dev/mthca/mthca_memfree.c
405
++table->icm[i]->refcount;
sys/dev/mthca/mthca_memfree.c
408
return table;
sys/dev/mthca/mthca_memfree.c
412
if (table->icm[i]) {
sys/dev/mthca/mthca_memfree.c
415
mthca_free_icm(dev, table->icm[i], table->coherent);
sys/dev/mthca/mthca_memfree.c
418
kfree(table);
sys/dev/mthca/mthca_memfree.c
423
void mthca_free_icm_table(struct mthca_dev *dev, struct mthca_icm_table *table)
sys/dev/mthca/mthca_memfree.c
427
for (i = 0; i < table->num_icm; ++i)
sys/dev/mthca/mthca_memfree.c
428
if (table->icm[i]) {
sys/dev/mthca/mthca_memfree.c
430
table->virt + i * MTHCA_TABLE_CHUNK_SIZE,
sys/dev/mthca/mthca_memfree.c
432
mthca_free_icm(dev, table->icm[i], table->coherent);
sys/dev/mthca/mthca_memfree.c
435
kfree(table);
sys/dev/mthca/mthca_memfree.h
88
void mthca_free_icm_table(struct mthca_dev *dev, struct mthca_icm_table *table);
sys/dev/mthca/mthca_memfree.h
89
int mthca_table_get(struct mthca_dev *dev, struct mthca_icm_table *table, int obj);
sys/dev/mthca/mthca_memfree.h
90
void mthca_table_put(struct mthca_dev *dev, struct mthca_icm_table *table, int obj);
sys/dev/mthca/mthca_memfree.h
91
void *mthca_table_find(struct mthca_icm_table *table, int obj, dma_addr_t *dma_handle);
sys/dev/mthca/mthca_memfree.h
92
int mthca_table_get_range(struct mthca_dev *dev, struct mthca_icm_table *table,
sys/dev/mthca/mthca_memfree.h
94
void mthca_table_put_range(struct mthca_dev *dev, struct mthca_icm_table *table,
sys/dev/mthca/mthca_srq.c
236
err = mthca_table_get(dev, dev->srq_table.table, srq->srqn);
sys/dev/mthca/mthca_srq.c
313
mthca_table_put(dev, dev->srq_table.table, srq->srqn);
sys/dev/mthca/mthca_srq.c
361
mthca_table_put(dev, dev->srq_table.table, srq->srqn);
sys/dev/mwl/mwlhal.c
2023
get5Ghz(MWL_HAL_CHANNELINFO *ci, const uint8_t table[], int len)
sys/dev/mwl/mwlhal.c
2033
if (table[i] == 0)
sys/dev/mwl/mwlhal.c
2035
f = 5000 + 5*table[i];
sys/dev/mwl/mwlhal.c
2042
hc->ieee = table[i];
sys/dev/mwl/mwlhal.c
2043
memcpy(hc->targetPowers, &table[i], 4);
sys/dev/mwl/mwlhal.c
2066
get2Ghz(MWL_HAL_CHANNELINFO *ci, const uint8_t table[], int len)
sys/dev/mwl/mwlhal.c
2075
memcpy(hc->targetPowers, &table[i], 4);
sys/dev/mwl/mwlhal.c
2087
dumpcaldata(const char *name, const uint8_t *table, int n)
sys/dev/mwl/mwlhal.c
2092
printf("[%2d] %3d %3d %3d %3d\n", i/4, table[i+0], table[i+1], table[i+2], table[i+3]);
sys/dev/pci/pcivar.h
319
#define PCI_PNP_INFO(table) \
sys/dev/pci/pcivar.h
320
MODULE_PNP_INFO(PCI_PNP_STR, pci, table, table, \
sys/dev/pci/pcivar.h
321
sizeof(table) / sizeof(table[0]))
sys/dev/pci/pcivar.h
325
#define PCI_MATCH(child, table) \
sys/dev/pci/pcivar.h
326
pci_match_device(child, (table), nitems(table));
sys/dev/pms/freebsd/driver/common/lxencrypt.c
101
pCard->dek_index[table] = index;
sys/dev/pms/freebsd/driver/common/lxencrypt.c
145
show_dek_table_entry(struct device *dev, char *buf, unsigned int table)
sys/dev/pms/freebsd/driver/common/lxencrypt.c
158
if(table == DEK_TABLE_0)
sys/dev/pms/freebsd/driver/common/lxencrypt.c
160
else if(table == DEK_TABLE_1)
sys/dev/pms/freebsd/driver/common/lxencrypt.c
165
if(pCard->dek_index[table] >= 0 || pCard->dek_index[table] < DEK_MAX_TABLE_ITEMS) {
sys/dev/pms/freebsd/driver/common/lxencrypt.c
166
i += careful_write(buf, i, PAGE_SIZE, "%4d: ", pCard->dek_index[table]);
sys/dev/pms/freebsd/driver/common/lxencrypt.c
167
p = (unsigned char *) &pDekTable[pCard->dek_index[table]];
sys/dev/pms/freebsd/driver/common/lxencrypt.c
173
i += careful_write(buf, i, PAGE_SIZE, "Bad DEK index %d; range: 0 - %d\n", pCard->dek_index[table], DEK_MAX_TABLE_ITEMS);
sys/dev/pms/freebsd/driver/common/lxencrypt.c
258
show_dek_kek_map(struct device *dev, char *buf, unsigned int table)
sys/dev/pms/freebsd/driver/common/lxencrypt.c
267
if(table != DEK_TABLE_0 && table != DEK_TABLE_1)
sys/dev/pms/freebsd/driver/common/lxencrypt.c
270
i += careful_write(buf, i, PAGE_SIZE, "Table %d\n", table);
sys/dev/pms/freebsd/driver/common/lxencrypt.c
273
i += careful_write(buf, i, PAGE_SIZE, " %4d: %08x\n", dek_index, pCard->dek_kek_map[table][dek_index].kekIndex);
sys/dev/pms/freebsd/driver/common/lxencrypt.c
83
set_dek_table_entry(struct device *dev, const char *buf, size_t len, dek_table_e table)
sys/dev/pms/freebsd/driver/common/lxencrypt.c
96
if(table != DEK_TABLE_0 && table != DEK_TABLE_1)
sys/dev/ppbus/ppb_msq.c
109
return (&table[index]);
sys/dev/ppbus/ppb_msq.c
62
struct ppb_xfer *table;
sys/dev/ppbus/ppb_msq.c
66
table = ppbdev->get_xfer;
sys/dev/ppbus/ppb_msq.c
70
table = ppbdev->put_xfer;
sys/dev/qat_c2xxx/qat_hw15reg.h
228
#define FW_INIT_RING_MASK_SET(table, id) \
sys/dev/qat_c2xxx/qat_hw15reg.h
229
table->firt_ring_mask[id >> RING_MASK_TABLE_ENTRY_LOG_SZ] =\
sys/dev/qat_c2xxx/qat_hw15reg.h
230
table->firt_ring_mask[id >> RING_MASK_TABLE_ENTRY_LOG_SZ] | \
sys/dev/qlxgb/qla_hw.h
471
uint8_t table[40];
sys/dev/sfxge/common/ef10_filter.c
1409
ef10_filter_table_t *table = enp->en_filter.ef_ef10_filter_table;
sys/dev/sfxge/common/ef10_filter.c
1414
EFX_ARRAY_SIZE(table->eft_encap_filter_indexes));
sys/dev/sfxge/common/ef10_filter.c
1430
table->eft_encap_filter_count = 0;
sys/dev/sfxge/common/ef10_filter.c
1447
table->eft_default_rxq);
sys/dev/sfxge/common/ef10_filter.c
1456
&table->eft_encap_filter_indexes[
sys/dev/sfxge/common/ef10_filter.c
1457
table->eft_encap_filter_count]);
sys/dev/sfxge/common/ef10_filter.c
1462
table->eft_encap_filter_count++;
sys/dev/sfxge/common/ef10_filter.c
1480
ef10_filter_table_t *table = enp->en_filter.ef_ef10_filter_table;
sys/dev/sfxge/common/ef10_filter.c
1483
for (i = 0; i < EFX_ARRAY_SIZE(table->eft_entry); i++) {
sys/dev/sfxge/common/ef10_filter.c
1484
if (ef10_filter_entry_is_auto_old(table, i)) {
sys/dev/sfxge/common/ef10_filter.c
1543
ef10_filter_table_t *table = enp->en_filter.ef_ef10_filter_table;
sys/dev/sfxge/common/ef10_filter.c
1550
if (table->eft_default_rxq == NULL) {
sys/dev/sfxge/common/ef10_filter.c
1557
for (i = 0; i < table->eft_unicst_filter_count; i++) {
sys/dev/sfxge/common/ef10_filter.c
1559
table->eft_unicst_filter_indexes[i]);
sys/dev/sfxge/common/ef10_filter.c
1561
table->eft_unicst_filter_count = 0;
sys/dev/sfxge/common/ef10_filter.c
1563
for (i = 0; i < table->eft_mulcst_filter_count; i++) {
sys/dev/sfxge/common/ef10_filter.c
1565
table->eft_mulcst_filter_indexes[i]);
sys/dev/sfxge/common/ef10_filter.c
1567
table->eft_mulcst_filter_count = 0;
sys/dev/sfxge/common/ef10_filter.c
1569
for (i = 0; i < table->eft_encap_filter_count; i++) {
sys/dev/sfxge/common/ef10_filter.c
1571
table->eft_encap_filter_indexes[i]);
sys/dev/sfxge/common/ef10_filter.c
1573
table->eft_encap_filter_count = 0;
sys/dev/sfxge/common/ef10_filter.c
1578
if (table->eft_using_rss)
sys/dev/sfxge/common/ef10_filter.c
1584
for (i = 0; i < table->eft_unicst_filter_count; i++) {
sys/dev/sfxge/common/ef10_filter.c
1585
ef10_filter_set_entry_auto_old(table,
sys/dev/sfxge/common/ef10_filter.c
1586
table->eft_unicst_filter_indexes[i]);
sys/dev/sfxge/common/ef10_filter.c
1588
for (i = 0; i < table->eft_mulcst_filter_count; i++) {
sys/dev/sfxge/common/ef10_filter.c
1589
ef10_filter_set_entry_auto_old(table,
sys/dev/sfxge/common/ef10_filter.c
1590
table->eft_mulcst_filter_indexes[i]);
sys/dev/sfxge/common/ef10_filter.c
1592
for (i = 0; i < table->eft_encap_filter_count; i++) {
sys/dev/sfxge/common/ef10_filter.c
1593
ef10_filter_set_entry_auto_old(table,
sys/dev/sfxge/common/ef10_filter.c
1594
table->eft_encap_filter_indexes[i]);
sys/dev/sfxge/common/ef10_filter.c
1614
table->eft_unicst_filter_count = 0;
sys/dev/sfxge/common/ef10_filter.c
1652
if ((table->eft_using_all_mulcst != all_mulcst) &&
sys/dev/sfxge/common/ef10_filter.c
1690
if ((table->eft_using_all_mulcst == B_FALSE) &&
sys/dev/sfxge/common/ef10_filter.c
1741
for (i = 0; i < EFX_ARRAY_SIZE(table->eft_entry); i++) {
sys/dev/sfxge/common/ef10_filter.c
1742
if (ef10_filter_entry_is_auto_old(table, i)) {
sys/dev/sfxge/common/ef10_filter.c
1743
ef10_filter_set_entry_not_auto_old(table, i);
sys/dev/sfxge/common/ef10_filter.c
1756
ef10_filter_table_t *table = enp->en_filter.ef_ef10_filter_table;
sys/dev/sfxge/common/ef10_filter.c
1758
*erpp = table->eft_default_rxq;
sys/dev/sfxge/common/ef10_filter.c
1759
*using_rss = table->eft_using_rss;
sys/dev/sfxge/common/ef10_filter.c
1768
ef10_filter_table_t *table = enp->en_filter.ef_ef10_filter_table;
sys/dev/sfxge/common/ef10_filter.c
1773
table->eft_using_rss = using_rss;
sys/dev/sfxge/common/ef10_filter.c
1776
table->eft_using_rss = B_FALSE;
sys/dev/sfxge/common/ef10_filter.c
1778
table->eft_default_rxq = erp;
sys/dev/sfxge/common/ef10_filter.c
1785
ef10_filter_table_t *table = enp->en_filter.ef_ef10_filter_table;
sys/dev/sfxge/common/ef10_filter.c
1787
table->eft_default_rxq = NULL;
sys/dev/sfxge/common/ef10_filter.c
1788
table->eft_using_rss = B_FALSE;
sys/dev/sfxge/common/ef10_filter.c
840
ef10_filter_table_t *table = enp->en_filter.ef_ef10_filter_table;
sys/dev/sfxge/common/ef10_filter.c
853
while (ef10_filter_entry_is_busy(table, filter_idx)) {
sys/dev/sfxge/common/ef10_filter.c
858
if ((spec = ef10_filter_entry_spec(table, filter_idx)) != NULL) {
sys/dev/sfxge/common/ef10_filter.c
859
ef10_filter_set_entry_busy(table, filter_idx);
sys/dev/sfxge/common/ef10_filter.c
875
&table->eft_entry[filter_idx].efe_handle);
sys/dev/sfxge/common/ef10_filter.c
879
&table->eft_entry[filter_idx].efe_handle);
sys/dev/sfxge/common/ef10_filter.c
884
ef10_filter_set_entry_not_busy(table, filter_idx);
sys/dev/sfxge/common/ef10_filter.c
885
ef10_filter_set_entry(table, filter_idx, NULL);
sys/dev/sfxge/common/ef10_filter.c
911
ef10_filter_table_t *table = enp->en_filter.ef_ef10_filter_table;
sys/dev/sfxge/common/ef10_filter.c
931
saved_spec = ef10_filter_entry_spec(table, i);
sys/dev/sfxge/common/ef10_impl.h
981
__in_ecount(n) unsigned int *table,
sys/dev/sfxge/common/ef10_rx.c
488
__in_ecount(n) unsigned int *table,
sys/dev/sfxge/common/ef10_rx.c
517
req_table[i] = (n > 0) ? (uint8_t)table[i % n] : 0;
sys/dev/sfxge/common/ef10_rx.c
705
__in_ecount(n) unsigned int *table,
sys/dev/sfxge/common/ef10_rx.c
719
rss_context, table, n)) != 0)
sys/dev/sfxge/common/efx.h
2461
__in_ecount(n) unsigned int *table,
sys/dev/sfxge/common/efx_rx.c
1331
__in_ecount(n) unsigned int *table,
sys/dev/sfxge/common/efx_rx.c
1355
byte = (n > 0) ? (uint32_t)table[index % n] : 0;
sys/dev/sfxge/common/efx_rx.c
1357
EFSYS_PROBE2(table, int, index, uint32_t, byte);
sys/dev/sfxge/common/efx_rx.c
1370
byte = (n > 0) ? (uint32_t)table[index % n] : 0;
sys/dev/sfxge/common/efx_rx.c
686
__in_ecount(n) unsigned int *table,
sys/dev/sfxge/common/efx_rx.c
695
if ((rc = erxop->erxo_scale_tbl_set(enp, rss_context, table, n)) != 0)
sys/dev/sfxge/common/efx_rx.c
74
__in_ecount(n) unsigned int *table,
sys/dev/sfxge/sfxge.h
204
struct sfxge_intr_hdl *table;
sys/dev/sfxge/sfxge_intr.c
164
struct sfxge_intr_hdl *table;
sys/dev/sfxge/sfxge_intr.c
171
table = intr->table;
sys/dev/sfxge/sfxge_intr.c
191
if ((err = bus_setup_intr(sc->dev, table[index].eih_res,
sys/dev/sfxge/sfxge_intr.c
193
sc->evq[index], &table[index].eih_tag)) != 0) {
sys/dev/sfxge/sfxge_intr.c
197
bus_describe_intr(sc->dev, table[index].eih_res,
sys/dev/sfxge/sfxge_intr.c
198
table[index].eih_tag, "%d", index);
sys/dev/sfxge/sfxge_intr.c
200
bus_bind_intr(sc->dev, table[index].eih_res,
sys/dev/sfxge/sfxge_intr.c
203
bus_bind_intr(sc->dev, table[index].eih_res, index);
sys/dev/sfxge/sfxge_intr.c
212
bus_teardown_intr(sc->dev, table[index].eih_res,
sys/dev/sfxge/sfxge_intr.c
213
table[index].eih_tag);
sys/dev/sfxge/sfxge_intr.c
222
struct sfxge_intr_hdl *table;
sys/dev/sfxge/sfxge_intr.c
226
table = intr->table;
sys/dev/sfxge/sfxge_intr.c
230
bus_teardown_intr(sc->dev, table[i].eih_res,
sys/dev/sfxge/sfxge_intr.c
231
table[i].eih_tag);
sys/dev/sfxge/sfxge_intr.c
238
struct sfxge_intr_hdl *table;
sys/dev/sfxge/sfxge_intr.c
249
table = malloc(count * sizeof(struct sfxge_intr_hdl),
sys/dev/sfxge/sfxge_intr.c
251
intr->table = table;
sys/dev/sfxge/sfxge_intr.c
263
table[i].eih_rid = rid;
sys/dev/sfxge/sfxge_intr.c
264
table[i].eih_res = res;
sys/dev/sfxge/sfxge_intr.c
271
table[i].eih_rid, table[i].eih_res);
sys/dev/sfxge/sfxge_intr.c
374
struct sfxge_intr_hdl *table;
sys/dev/sfxge/sfxge_intr.c
389
table = malloc(sizeof(struct sfxge_intr_hdl), M_SFXGE, M_WAITOK);
sys/dev/sfxge/sfxge_intr.c
390
table[0].eih_rid = rid;
sys/dev/sfxge/sfxge_intr.c
391
table[0].eih_res = res;
sys/dev/sfxge/sfxge_intr.c
395
intr->table = table;
sys/dev/sfxge/sfxge_intr.c
491
struct sfxge_intr_hdl *table;
sys/dev/sfxge/sfxge_intr.c
500
table = intr->table;
sys/dev/sfxge/sfxge_intr.c
511
table[i].eih_rid, table[i].eih_res);
sys/dev/sfxge/sfxge_intr.c
513
if (table[0].eih_rid != 0)
sys/dev/sfxge/sfxge_intr.c
520
free(table, M_SFXGE);
sys/dev/sfxge/sfxge_intr.c
521
intr->table = NULL;
sys/dev/thunderbolt/tb_debug.c
162
tb_get_string(uintmax_t key, tb_string_t *table)
sys/dev/thunderbolt/tb_debug.c
165
if (table == NULL)
sys/dev/thunderbolt/tb_debug.c
168
while (table->value != NULL) {
sys/dev/thunderbolt/tb_debug.c
169
if (table->key == key)
sys/dev/thunderbolt/tb_debug.c
170
return (table->value);
sys/dev/thunderbolt/tb_debug.c
171
table++;
sys/dev/usb/usbdi.h
344
#define USB_PNP_HOST_INFO(table) \
sys/dev/usb/usbdi.h
345
MODULE_PNP_INFO(USB_STD_PNP_HOST_INFO, uhub, table, table, \
sys/dev/usb/usbdi.h
346
sizeof(table) / sizeof(table[0]))
sys/dev/usb/usbdi.h
347
#define USB_PNP_DEVICE_INFO(table) \
sys/dev/usb/usbdi.h
348
MODULE_PNP_INFO(USB_STD_PNP_DEVICE_INFO, uhub, table, table, \
sys/dev/usb/usbdi.h
349
sizeof(table) / sizeof(table[0]))
sys/dev/usb/usbdi.h
350
#define USB_PNP_DUAL_INFO(table) \
sys/dev/usb/usbdi.h
351
MODULE_PNP_INFO(USB_STD_PNP_INFO, uhub, table, table, \
sys/dev/usb/usbdi.h
352
sizeof(table) / sizeof(table[0]))
sys/dev/vmware/vmci/vmci_hashtable.c
100
vmci_release_lock_bh(&table->lock);
sys/dev/vmware/vmci/vmci_hashtable.c
101
vmci_cleanup_lock(&table->lock);
sys/dev/vmware/vmci/vmci_hashtable.c
102
vmci_free_kernel_mem(table, sizeof(*table));
sys/dev/vmware/vmci/vmci_hashtable.c
147
vmci_hashtable_add_entry(struct vmci_hashtable *table,
sys/dev/vmware/vmci/vmci_hashtable.c
153
ASSERT(table);
sys/dev/vmware/vmci/vmci_hashtable.c
155
vmci_grab_lock_bh(&table->lock);
sys/dev/vmware/vmci/vmci_hashtable.c
157
if (vmci_hashtable_entry_exists_locked(table, entry->handle)) {
sys/dev/vmware/vmci/vmci_hashtable.c
161
vmci_release_lock_bh(&table->lock);
sys/dev/vmware/vmci/vmci_hashtable.c
165
idx = VMCI_HASHTABLE_HASH(entry->handle, table->size);
sys/dev/vmware/vmci/vmci_hashtable.c
166
ASSERT(idx < table->size);
sys/dev/vmware/vmci/vmci_hashtable.c
170
entry->next = table->entries[idx];
sys/dev/vmware/vmci/vmci_hashtable.c
171
table->entries[idx] = entry;
sys/dev/vmware/vmci/vmci_hashtable.c
172
vmci_release_lock_bh(&table->lock);
sys/dev/vmware/vmci/vmci_hashtable.c
194
vmci_hashtable_remove_entry(struct vmci_hashtable *table,
sys/dev/vmware/vmci/vmci_hashtable.c
199
ASSERT(table);
sys/dev/vmware/vmci/vmci_hashtable.c
202
vmci_grab_lock_bh(&table->lock);
sys/dev/vmware/vmci/vmci_hashtable.c
205
result = hashtable_unlink_entry(table, entry);
sys/dev/vmware/vmci/vmci_hashtable.c
21
static int hashtable_unlink_entry(struct vmci_hashtable *table,
sys/dev/vmware/vmci/vmci_hashtable.c
219
vmci_release_lock_bh(&table->lock);
sys/dev/vmware/vmci/vmci_hashtable.c
23
static bool vmci_hashtable_entry_exists_locked(struct vmci_hashtable *table,
sys/dev/vmware/vmci/vmci_hashtable.c
242
vmci_hashtable_get_entry_locked(struct vmci_hashtable *table,
sys/dev/vmware/vmci/vmci_hashtable.c
249
ASSERT(table);
sys/dev/vmware/vmci/vmci_hashtable.c
251
idx = VMCI_HASHTABLE_HASH(handle, table->size);
sys/dev/vmware/vmci/vmci_hashtable.c
253
cur = table->entries[idx];
sys/dev/vmware/vmci/vmci_hashtable.c
290
vmci_hashtable_get_entry(struct vmci_hashtable *table,
sys/dev/vmware/vmci/vmci_hashtable.c
298
ASSERT(table);
sys/dev/vmware/vmci/vmci_hashtable.c
300
vmci_grab_lock_bh(&table->lock);
sys/dev/vmware/vmci/vmci_hashtable.c
301
entry = vmci_hashtable_get_entry_locked(table, handle);
sys/dev/vmware/vmci/vmci_hashtable.c
302
vmci_release_lock_bh(&table->lock);
sys/dev/vmware/vmci/vmci_hashtable.c
326
vmci_hashtable_hold_entry(struct vmci_hashtable *table,
sys/dev/vmware/vmci/vmci_hashtable.c
330
ASSERT(table);
sys/dev/vmware/vmci/vmci_hashtable.c
333
vmci_grab_lock_bh(&table->lock);
sys/dev/vmware/vmci/vmci_hashtable.c
335
vmci_release_lock_bh(&table->lock);
sys/dev/vmware/vmci/vmci_hashtable.c
358
vmci_hashtable_release_entry_locked(struct vmci_hashtable *table,
sys/dev/vmware/vmci/vmci_hashtable.c
363
ASSERT(table);
sys/dev/vmware/vmci/vmci_hashtable.c
379
hashtable_unlink_entry(table, entry);
sys/dev/vmware/vmci/vmci_hashtable.c
403
vmci_hashtable_release_entry(struct vmci_hashtable *table,
sys/dev/vmware/vmci/vmci_hashtable.c
408
ASSERT(table);
sys/dev/vmware/vmci/vmci_hashtable.c
409
vmci_grab_lock_bh(&table->lock);
sys/dev/vmware/vmci/vmci_hashtable.c
410
result = vmci_hashtable_release_entry_locked(table, entry);
sys/dev/vmware/vmci/vmci_hashtable.c
411
vmci_release_lock_bh(&table->lock);
sys/dev/vmware/vmci/vmci_hashtable.c
433
vmci_hashtable_entry_exists(struct vmci_hashtable *table,
sys/dev/vmware/vmci/vmci_hashtable.c
438
ASSERT(table);
sys/dev/vmware/vmci/vmci_hashtable.c
440
vmci_grab_lock_bh(&table->lock);
sys/dev/vmware/vmci/vmci_hashtable.c
441
exists = vmci_hashtable_entry_exists_locked(table, handle);
sys/dev/vmware/vmci/vmci_hashtable.c
442
vmci_release_lock_bh(&table->lock);
sys/dev/vmware/vmci/vmci_hashtable.c
45
struct vmci_hashtable *table;
sys/dev/vmware/vmci/vmci_hashtable.c
464
vmci_hashtable_entry_exists_locked(struct vmci_hashtable *table,
sys/dev/vmware/vmci/vmci_hashtable.c
47
table = vmci_alloc_kernel_mem(sizeof(*table),
sys/dev/vmware/vmci/vmci_hashtable.c
471
ASSERT(table);
sys/dev/vmware/vmci/vmci_hashtable.c
473
idx = VMCI_HASHTABLE_HASH(handle, table->size);
sys/dev/vmware/vmci/vmci_hashtable.c
475
entry = table->entries[idx];
sys/dev/vmware/vmci/vmci_hashtable.c
49
if (table == NULL)
sys/dev/vmware/vmci/vmci_hashtable.c
507
hashtable_unlink_entry(struct vmci_hashtable *table,
sys/dev/vmware/vmci/vmci_hashtable.c
51
memset(table, 0, sizeof(*table));
sys/dev/vmware/vmci/vmci_hashtable.c
514
idx = VMCI_HASHTABLE_HASH(entry->handle, table->size);
sys/dev/vmware/vmci/vmci_hashtable.c
517
cur = table->entries[idx];
sys/dev/vmware/vmci/vmci_hashtable.c
53
table->entries = vmci_alloc_kernel_mem(sizeof(*table->entries) * size,
sys/dev/vmware/vmci/vmci_hashtable.c
530
table->entries[idx] = cur->next;
sys/dev/vmware/vmci/vmci_hashtable.c
55
if (table->entries == NULL) {
sys/dev/vmware/vmci/vmci_hashtable.c
559
vmci_hashtable_sync(struct vmci_hashtable *table)
sys/dev/vmware/vmci/vmci_hashtable.c
56
vmci_free_kernel_mem(table, sizeof(*table));
sys/dev/vmware/vmci/vmci_hashtable.c
562
ASSERT(table);
sys/dev/vmware/vmci/vmci_hashtable.c
563
vmci_grab_lock_bh(&table->lock);
sys/dev/vmware/vmci/vmci_hashtable.c
564
vmci_release_lock_bh(&table->lock);
sys/dev/vmware/vmci/vmci_hashtable.c
59
memset(table->entries, 0, sizeof(*table->entries) * size);
sys/dev/vmware/vmci/vmci_hashtable.c
60
table->size = size;
sys/dev/vmware/vmci/vmci_hashtable.c
61
if (vmci_init_lock(&table->lock, "VMCI Hashtable lock") <
sys/dev/vmware/vmci/vmci_hashtable.c
63
vmci_free_kernel_mem(table->entries, sizeof(*table->entries) * size);
sys/dev/vmware/vmci/vmci_hashtable.c
64
vmci_free_kernel_mem(table, sizeof(*table));
sys/dev/vmware/vmci/vmci_hashtable.c
68
return (table);
sys/dev/vmware/vmci/vmci_hashtable.c
91
vmci_hashtable_destroy(struct vmci_hashtable *table)
sys/dev/vmware/vmci/vmci_hashtable.c
94
ASSERT(table);
sys/dev/vmware/vmci/vmci_hashtable.c
96
vmci_grab_lock_bh(&table->lock);
sys/dev/vmware/vmci/vmci_hashtable.c
97
vmci_free_kernel_mem(table->entries, sizeof(*table->entries) *
sys/dev/vmware/vmci/vmci_hashtable.c
98
table->size);
sys/dev/vmware/vmci/vmci_hashtable.c
99
table->entries = NULL;
sys/dev/vmware/vmci/vmci_hashtable.h
29
void vmci_hashtable_destroy(struct vmci_hashtable *table);
sys/dev/vmware/vmci/vmci_hashtable.h
32
int vmci_hashtable_add_entry(struct vmci_hashtable *table,
sys/dev/vmware/vmci/vmci_hashtable.h
34
int vmci_hashtable_remove_entry(struct vmci_hashtable *table,
sys/dev/vmware/vmci/vmci_hashtable.h
36
struct vmci_hash_entry *vmci_hashtable_get_entry(struct vmci_hashtable *table,
sys/dev/vmware/vmci/vmci_hashtable.h
38
void vmci_hashtable_hold_entry(struct vmci_hashtable *table,
sys/dev/vmware/vmci/vmci_hashtable.h
40
int vmci_hashtable_release_entry(struct vmci_hashtable *table,
sys/dev/vmware/vmci/vmci_hashtable.h
42
bool vmci_hashtable_entry_exists(struct vmci_hashtable *table,
sys/dev/vmware/vmci/vmci_hashtable.h
44
void vmci_hashtable_sync(struct vmci_hashtable *table);
sys/fs/cd9660/cd9660_rrip.c
462
RRIP_TABLE *table)
sys/fs/cd9660/cd9660_rrip.c
499
for (ptable = table; ptable->func; ptable++) {
sys/fs/cd9660/cd9660_rrip.c
549
for (ptable = table; ptable->func2; ptable++)
sys/fs/cd9660/cd9660_rrip.c
73
ISO_RRIP_ANALYZE *ana, RRIP_TABLE *table);
sys/geom/part/g_part.c
1002
table = gp->softc;
sys/geom/part/g_part.c
1003
table->gpt_gp = gp;
sys/geom/part/g_part.c
1004
table->gpt_scheme = gpp->gpp_scheme;
sys/geom/part/g_part.c
1005
table->gpt_entries = (gpp->gpp_parms & G_PART_PARM_ENTRIES) ?
sys/geom/part/g_part.c
1007
LIST_INIT(&table->gpt_entry);
sys/geom/part/g_part.c
1019
table->gpt_opened = 1;
sys/geom/part/g_part.c
1022
table->gpt_opened = null->gpt_opened;
sys/geom/part/g_part.c
1023
table->gpt_smhead = null->gpt_smhead;
sys/geom/part/g_part.c
1024
table->gpt_smtail = null->gpt_smtail;
sys/geom/part/g_part.c
1042
table->gpt_depth = (!error) ? attr + 1 : 0;
sys/geom/part/g_part.c
1050
g_part_geometry(table, cp, pp->mediasize / pp->sectorsize);
sys/geom/part/g_part.c
1052
error = G_PART_CREATE(table, gpp);
sys/geom/part/g_part.c
1058
table->gpt_created = 1;
sys/geom/part/g_part.c
1098
struct g_part_table *table;
sys/geom/part/g_part.c
1105
table = gp->softc;
sys/geom/part/g_part.c
1107
LIST_FOREACH(entry, &table->gpt_entry, gpe_entry) {
sys/geom/part/g_part.c
1135
G_PART_FULLNAME(table, entry, sb, gp->name);
sys/geom/part/g_part.c
1159
struct g_part_table *null, *table;
sys/geom/part/g_part.c
1167
table = gp->softc;
sys/geom/part/g_part.c
1169
LIST_FOREACH(entry, &table->gpt_entry, gpe_entry) {
sys/geom/part/g_part.c
1185
LIST_FOREACH_SAFE(entry, &table->gpt_entry, gpe_entry, tmp) {
sys/geom/part/g_part.c
1196
error = G_PART_DESTROY(table, gpp);
sys/geom/part/g_part.c
1213
null->gpt_depth = table->gpt_depth;
sys/geom/part/g_part.c
1214
null->gpt_opened = table->gpt_opened;
sys/geom/part/g_part.c
1215
null->gpt_smhead = table->gpt_smhead;
sys/geom/part/g_part.c
1216
null->gpt_smtail = table->gpt_smtail;
sys/geom/part/g_part.c
1218
while ((entry = LIST_FIRST(&table->gpt_entry)) != NULL) {
sys/geom/part/g_part.c
1222
kobj_delete((kobj_t)table, M_GEOM);
sys/geom/part/g_part.c
1240
struct g_part_table *table;
sys/geom/part/g_part.c
1248
table = gp->softc;
sys/geom/part/g_part.c
1250
LIST_FOREACH(entry, &table->gpt_entry, gpe_entry) {
sys/geom/part/g_part.c
1261
error = G_PART_MODIFY(table, entry, gpp);
sys/geom/part/g_part.c
1273
G_PART_FULLNAME(table, entry, sb, gp->name);
sys/geom/part/g_part.c
1292
struct g_part_table *table;
sys/geom/part/g_part.c
1300
table = gp->softc;
sys/geom/part/g_part.c
1303
if (table->gpt_corrupt) {
sys/geom/part/g_part.c
1304
error = G_PART_RECOVER(table);
sys/geom/part/g_part.c
1306
error = g_part_check_integrity(table,
sys/geom/part/g_part.c
1336
struct g_part_table *table;
sys/geom/part/g_part.c
1345
table = gp->softc;
sys/geom/part/g_part.c
1348
LIST_FOREACH(entry, &table->gpt_entry, gpe_entry) {
sys/geom/part/g_part.c
1361
if (gpp->gpp_size < 1 || end > table->gpt_last) {
sys/geom/part/g_part.c
1367
LIST_FOREACH(pe, &table->gpt_entry, gpe_entry) {
sys/geom/part/g_part.c
1392
error = G_PART_RESIZE(table, entry, gpp);
sys/geom/part/g_part.c
1411
G_PART_FULLNAME(table, entry, sb, gp->name);
sys/geom/part/g_part.c
1426
struct g_part_table *table;
sys/geom/part/g_part.c
1434
table = gp->softc;
sys/geom/part/g_part.c
1437
LIST_FOREACH(entry, &table->gpt_entry, gpe_entry) {
sys/geom/part/g_part.c
1451
error = G_PART_SETUNSET(table, entry, gpp->gpp_attrib, set);
sys/geom/part/g_part.c
1463
G_PART_FULLNAME(table, entry, sb, gp->name);
sys/geom/part/g_part.c
1481
struct g_part_table *table;
sys/geom/part/g_part.c
1488
table = gp->softc;
sys/geom/part/g_part.c
1489
if (!table->gpt_opened) {
sys/geom/part/g_part.c
1495
LIST_FOREACH_SAFE(entry, &table->gpt_entry, gpe_entry, tmp) {
sys/geom/part/g_part.c
1514
reprobe = (table->gpt_scheme == &g_part_null_scheme ||
sys/geom/part/g_part.c
1515
table->gpt_created) ? 1 : 0;
sys/geom/part/g_part.c
1518
LIST_FOREACH(entry, &table->gpt_entry, gpe_entry) {
sys/geom/part/g_part.c
1524
while ((entry = LIST_FIRST(&table->gpt_entry)) != NULL) {
sys/geom/part/g_part.c
1528
error = g_part_probe(gp, cp, table->gpt_depth);
sys/geom/part/g_part.c
1535
table = gp->softc;
sys/geom/part/g_part.c
1544
g_part_geometry(table, cp, pp->mediasize / pp->sectorsize);
sys/geom/part/g_part.c
1547
error = G_PART_READ(table, cp);
sys/geom/part/g_part.c
1550
error = g_part_check_integrity(table, cp);
sys/geom/part/g_part.c
1555
LIST_FOREACH(entry, &table->gpt_entry, gpe_entry) {
sys/geom/part/g_part.c
1557
g_part_new_provider(gp, table, entry);
sys/geom/part/g_part.c
1560
table->gpt_opened = 0;
sys/geom/part/g_part.c
1574
struct g_part_table *table;
sys/geom/part/g_part.c
1577
table = gp->softc;
sys/geom/part/g_part.c
1578
if (table != NULL) {
sys/geom/part/g_part.c
1580
while ((entry = LIST_FIRST(&table->gpt_entry)) != NULL) {
sys/geom/part/g_part.c
1590
G_PART_DESTROY(table, NULL);
sys/geom/part/g_part.c
1591
kobj_delete((kobj_t)table, M_GEOM);
sys/geom/part/g_part.c
1604
struct g_part_table *table;
sys/geom/part/g_part.c
1848
table = NULL;
sys/geom/part/g_part.c
1850
table = gpp.gpp_geom->softc;
sys/geom/part/g_part.c
1851
if (table != NULL && table->gpt_corrupt &&
sys/geom/part/g_part.c
1859
if (table != NULL && !table->gpt_opened) {
sys/geom/part/g_part.c
1867
table->gpt_opened = 1;
sys/geom/part/g_part.c
1873
if (table != NULL) {
sys/geom/part/g_part.c
1874
error = G_PART_PRECHECK(table, ctlreq, &gpp);
sys/geom/part/g_part.c
1941
table->gpt_opened = 0;
sys/geom/part/g_part.c
1963
struct g_part_table *table;
sys/geom/part/g_part.c
2019
table = gp->softc;
sys/geom/part/g_part.c
2027
g_part_geometry(table, cp, pp->mediasize / pp->sectorsize);
sys/geom/part/g_part.c
2029
error = G_PART_READ(table, cp);
sys/geom/part/g_part.c
2032
error = g_part_check_integrity(table, cp);
sys/geom/part/g_part.c
2037
LIST_FOREACH(entry, &table->gpt_entry, gpe_entry) {
sys/geom/part/g_part.c
2039
g_part_new_provider(gp, table, entry);
sys/geom/part/g_part.c
2080
struct g_part_table *table;
sys/geom/part/g_part.c
2083
table = gp->softc;
sys/geom/part/g_part.c
2092
G_PART_TYPE(table, entry, buf, sizeof(buf)));
sys/geom/part/g_part.c
2099
G_PART_DUMPCONF(table, entry, sb, indent);
sys/geom/part/g_part.c
2114
G_PART_TYPE(table, entry, buf, sizeof(buf)));
sys/geom/part/g_part.c
2119
G_PART_DUMPCONF(table, entry, sb, indent);
sys/geom/part/g_part.c
2122
table->gpt_scheme->name);
sys/geom/part/g_part.c
2124
table->gpt_entries);
sys/geom/part/g_part.c
2126
(uintmax_t)table->gpt_first);
sys/geom/part/g_part.c
2128
(uintmax_t)table->gpt_last);
sys/geom/part/g_part.c
2130
table->gpt_sectors);
sys/geom/part/g_part.c
2132
table->gpt_heads);
sys/geom/part/g_part.c
2134
table->gpt_corrupt ? "CORRUPT": "OK");
sys/geom/part/g_part.c
2136
table->gpt_opened ? "true": "false");
sys/geom/part/g_part.c
2137
G_PART_DUMPCONF(table, NULL, sb, indent);
sys/geom/part/g_part.c
2154
struct g_part_table *table;
sys/geom/part/g_part.c
2156
table = pp->geom->softc;
sys/geom/part/g_part.c
2157
return G_PART_IOCTL(table, pp, cmd, data, fflag, td);
sys/geom/part/g_part.c
2163
struct g_part_table *table;
sys/geom/part/g_part.c
2171
table = cp->geom->softc;
sys/geom/part/g_part.c
2172
if (table->gpt_opened == 0) {
sys/geom/part/g_part.c
2175
table->gpt_opened = 1;
sys/geom/part/g_part.c
2177
if (G_PART_RESIZE(table, NULL, NULL) == 0)
sys/geom/part/g_part.c
2182
if (g_part_check_integrity(table, cp) != 0) {
sys/geom/part/g_part.c
2184
table->gpt_opened = 0;
sys/geom/part/g_part.c
2185
g_part_wither(table->gpt_gp, ENXIO);
sys/geom/part/g_part.c
2193
struct g_part_table *table;
sys/geom/part/g_part.c
2201
table = cp->geom->softc;
sys/geom/part/g_part.c
2202
if (table != NULL && table->gpt_opened)
sys/geom/part/g_part.c
2225
struct g_part_table *table;
sys/geom/part/g_part.c
2235
table = gp->softc;
sys/geom/part/g_part.c
2270
if (g_handleattr_int(bp, "GEOM::fwheads", table->gpt_heads))
sys/geom/part/g_part.c
2272
if (g_handleattr_int(bp, "GEOM::fwsectors", table->gpt_sectors))
sys/geom/part/g_part.c
2279
table->gpt_isleaf &&
sys/geom/part/g_part.c
2282
if (g_handleattr_int(bp, "PART::depth", table->gpt_depth))
sys/geom/part/g_part.c
2285
table->gpt_scheme->name))
sys/geom/part/g_part.c
2288
G_PART_TYPE(table, entry, buf, sizeof(buf))))
sys/geom/part/g_part.c
2303
G_PART_DUMPTO(table, entry) == 0) {
sys/geom/part/g_part.c
2355
struct g_part_table *table;
sys/geom/part/g_part.c
2369
table = gp->softc;
sys/geom/part/g_part.c
2370
if (table->gpt_scheme != scheme)
sys/geom/part/g_part.c
246
g_part_geometry(struct g_part_table *table, struct g_consumer *cp,
sys/geom/part/g_part.c
256
table->gpt_fixgeom = 0;
sys/geom/part/g_part.c
257
table->gpt_heads = 0;
sys/geom/part/g_part.c
258
table->gpt_sectors = 0;
sys/geom/part/g_part.c
270
table->gpt_sectors == 1)) {
sys/geom/part/g_part.c
272
table->gpt_heads = heads;
sys/geom/part/g_part.c
273
table->gpt_sectors = sectors;
sys/geom/part/g_part.c
282
table->gpt_heads = 255;
sys/geom/part/g_part.c
283
table->gpt_sectors = 63;
sys/geom/part/g_part.c
286
table->gpt_fixgeom = 1;
sys/geom/part/g_part.c
287
table->gpt_heads = heads;
sys/geom/part/g_part.c
288
table->gpt_sectors = sectors;
sys/geom/part/g_part.c
297
struct g_part_table *table;
sys/geom/part/g_part.c
304
table = gp->softc;
sys/geom/part/g_part.c
314
G_PART_NAME(table, entry, end, remainder);
sys/geom/part/g_part.c
325
g_part_check_integrity(struct g_part_table *table, struct g_consumer *cp)
sys/geom/part/g_part.c
334
if (table->gpt_last < table->gpt_first) {
sys/geom/part/g_part.c
336
(intmax_t)table->gpt_last, (intmax_t)table->gpt_first);
sys/geom/part/g_part.c
339
if (table->gpt_last > pp->mediasize / pp->sectorsize - 1) {
sys/geom/part/g_part.c
341
"%jd > %jd\n", (intmax_t)table->gpt_last,
sys/geom/part/g_part.c
345
LIST_FOREACH(e1, &table->gpt_entry, gpe_entry) {
sys/geom/part/g_part.c
348
if (e1->gpe_start < table->gpt_first) {
sys/geom/part/g_part.c
352
(intmax_t)table->gpt_first);
sys/geom/part/g_part.c
355
if (e1->gpe_start > table->gpt_last) {
sys/geom/part/g_part.c
359
(intmax_t)table->gpt_last);
sys/geom/part/g_part.c
369
if (e1->gpe_end > table->gpt_last) {
sys/geom/part/g_part.c
373
(intmax_t)table->gpt_last);
sys/geom/part/g_part.c
383
pp->name, table->gpt_scheme->name,
sys/geom/part/g_part.c
430
pp->name, table->gpt_scheme->name);
sys/geom/part/g_part.c
433
table->gpt_corrupt = 1;
sys/geom/part/g_part.c
440
g_part_new_entry(struct g_part_table *table, int index, quad_t start,
sys/geom/part/g_part.c
446
LIST_FOREACH(entry, &table->gpt_entry, gpe_entry) {
sys/geom/part/g_part.c
456
entry = g_malloc(table->gpt_scheme->gps_entrysz,
sys/geom/part/g_part.c
460
LIST_INSERT_HEAD(&table->gpt_entry, entry, gpe_entry);
sys/geom/part/g_part.c
471
g_part_new_provider(struct g_geom *gp, struct g_part_table *table,
sys/geom/part/g_part.c
487
entry->gpe_pp = G_PART_NEW_PROVIDER(table, gp, entry, gp->name);
sys/geom/part/g_part.c
496
G_PART_ADD_ALIAS(table, entry->gpe_pp, entry, gap->ga_alias);
sys/geom/part/g_part.c
677
struct g_part_table *table;
sys/geom/part/g_part.c
680
table = gp->softc;
sys/geom/part/g_part.c
681
scheme = (table != NULL) ? table->gpt_scheme : NULL;
sys/geom/part/g_part.c
682
pri = (scheme != NULL) ? G_PART_PROBE(table, cp) : INT_MIN;
sys/geom/part/g_part.c
693
table = (void *)kobj_create((kobj_class_t)iter, M_GEOM,
sys/geom/part/g_part.c
695
table->gpt_gp = gp;
sys/geom/part/g_part.c
696
table->gpt_scheme = iter;
sys/geom/part/g_part.c
697
table->gpt_depth = depth;
sys/geom/part/g_part.c
698
probe = G_PART_PROBE(table, cp);
sys/geom/part/g_part.c
704
gp->softc = table;
sys/geom/part/g_part.c
708
kobj_delete((kobj_t)table, M_GEOM);
sys/geom/part/g_part.c
725
struct g_part_table *table;
sys/geom/part/g_part.c
736
table = gp->softc;
sys/geom/part/g_part.c
739
if (gpp->gpp_start < table->gpt_first ||
sys/geom/part/g_part.c
740
gpp->gpp_start > table->gpt_last) {
sys/geom/part/g_part.c
745
if (end < gpp->gpp_start || end > table->gpt_last) {
sys/geom/part/g_part.c
750
if (gpp->gpp_index > table->gpt_entries) {
sys/geom/part/g_part.c
757
LIST_FOREACH(entry, &table->gpt_entry, gpe_entry) {
sys/geom/part/g_part.c
789
if (index > table->gpt_entries) {
sys/geom/part/g_part.c
794
entry = (delent == NULL) ? g_malloc(table->gpt_scheme->gps_entrysz,
sys/geom/part/g_part.c
799
error = G_PART_ADD(table, entry, gpp);
sys/geom/part/g_part.c
808
LIST_INSERT_HEAD(&table->gpt_entry, entry, gpe_entry);
sys/geom/part/g_part.c
816
g_part_new_provider(gp, table, entry);
sys/geom/part/g_part.c
821
G_PART_FULLNAME(table, entry, sb, gp->name);
sys/geom/part/g_part.c
838
struct g_part_table *table;
sys/geom/part/g_part.c
846
table = gp->softc;
sys/geom/part/g_part.c
847
sz = table->gpt_scheme->gps_bootcodesz;
sys/geom/part/g_part.c
857
error = G_PART_BOOTCODE(table, gpp);
sys/geom/part/g_part.c
883
struct g_part_table *table;
sys/geom/part/g_part.c
891
table = gp->softc;
sys/geom/part/g_part.c
892
if (!table->gpt_opened) {
sys/geom/part/g_part.c
900
if ((table->gpt_smhead | table->gpt_smtail) != 0) {
sys/geom/part/g_part.c
903
while (table->gpt_smhead != 0) {
sys/geom/part/g_part.c
904
i = ffs(table->gpt_smhead) - 1;
sys/geom/part/g_part.c
911
table->gpt_smhead &= ~(1 << i);
sys/geom/part/g_part.c
913
while (table->gpt_smtail != 0) {
sys/geom/part/g_part.c
914
i = ffs(table->gpt_smtail) - 1;
sys/geom/part/g_part.c
921
table->gpt_smtail &= ~(1 << i);
sys/geom/part/g_part.c
926
if (table->gpt_scheme == &g_part_null_scheme) {
sys/geom/part/g_part.c
933
error = G_PART_WRITE(table, cp);
sys/geom/part/g_part.c
937
LIST_FOREACH_SAFE(entry, &table->gpt_entry, gpe_entry, tmp) {
sys/geom/part/g_part.c
951
table->gpt_created = 0;
sys/geom/part/g_part.c
952
table->gpt_opened = 0;
sys/geom/part/g_part.c
971
struct g_part_table *null, *table;
sys/geom/part/g_part_apm.c
215
struct g_part_apm_table *table;
sys/geom/part/g_part_apm.c
219
table = (struct g_part_apm_table *)basetable;
sys/geom/part/g_part_apm.c
221
entry->ent.ent_pmblkcnt = table->self.ent_pmblkcnt;
sys/geom/part/g_part_apm.c
238
if (baseentry->gpe_index >= table->self.ent_pmblkcnt)
sys/geom/part/g_part_apm.c
239
table->self.ent_pmblkcnt = baseentry->gpe_index + 1;
sys/geom/part/g_part_apm.c
240
KASSERT(table->self.ent_size >= table->self.ent_pmblkcnt,
sys/geom/part/g_part_apm.c
242
KASSERT(table->self.ent_size > baseentry->gpe_index,
sys/geom/part/g_part_apm.c
251
struct g_part_apm_table *table;
sys/geom/part/g_part_apm.c
258
table = (struct g_part_apm_table *)basetable;
sys/geom/part/g_part_apm.c
270
table->ddr.ddr_sig = APM_DDR_SIG;
sys/geom/part/g_part_apm.c
271
table->ddr.ddr_blksize = pp->sectorsize;
sys/geom/part/g_part_apm.c
272
table->ddr.ddr_blkcount = last + 1;
sys/geom/part/g_part_apm.c
274
table->self.ent_sig = APM_ENT_SIG;
sys/geom/part/g_part_apm.c
275
table->self.ent_pmblkcnt = basetable->gpt_entries + 1;
sys/geom/part/g_part_apm.c
276
table->self.ent_start = 1;
sys/geom/part/g_part_apm.c
277
table->self.ent_size = table->self.ent_pmblkcnt;
sys/geom/part/g_part_apm.c
278
strcpy(table->self.ent_name, "Apple");
sys/geom/part/g_part_apm.c
279
strcpy(table->self.ent_type, APM_ENT_TYPE_SELF);
sys/geom/part/g_part_apm.c
293
g_part_apm_dumpconf(struct g_part_table *table, struct g_part_entry *baseentry,
sys/geom/part/g_part_apm.c
324
g_part_apm_dumpto(struct g_part_table *table, struct g_part_entry *baseentry)
sys/geom/part/g_part_apm.c
380
g_part_apm_name(struct g_part_table *table, struct g_part_entry *baseentry,
sys/geom/part/g_part_apm.c
392
struct g_part_apm_table *table;
sys/geom/part/g_part_apm.c
400
table = (struct g_part_apm_table *)basetable;
sys/geom/part/g_part_apm.c
401
table->tivo_series1 = 0;
sys/geom/part/g_part_apm.c
414
table->ddr.ddr_sig = be16dec(buf);
sys/geom/part/g_part_apm.c
415
table->ddr.ddr_blksize = be16dec(buf + 2);
sys/geom/part/g_part_apm.c
416
table->ddr.ddr_blkcount = be32dec(buf + 4);
sys/geom/part/g_part_apm.c
418
if (table->ddr.ddr_blksize != pp->sectorsize)
sys/geom/part/g_part_apm.c
420
if (table->ddr.ddr_blkcount > pp->mediasize / pp->sectorsize)
sys/geom/part/g_part_apm.c
434
table->ddr.ddr_sig = APM_DDR_SIG; /* XXX */
sys/geom/part/g_part_apm.c
435
table->ddr.ddr_blksize = pp->sectorsize; /* XXX */
sys/geom/part/g_part_apm.c
436
table->ddr.ddr_blkcount =
sys/geom/part/g_part_apm.c
438
table->tivo_series1 = 1;
sys/geom/part/g_part_apm.c
443
error = apm_read_ent(cp, 1, &table->self, table->tivo_series1);
sys/geom/part/g_part_apm.c
446
if (table->self.ent_sig != APM_ENT_SIG)
sys/geom/part/g_part_apm.c
448
if (strcmp(table->self.ent_type, APM_ENT_TYPE_SELF))
sys/geom/part/g_part_apm.c
450
if (table->self.ent_pmblkcnt >= table->ddr.ddr_blkcount)
sys/geom/part/g_part_apm.c
460
struct g_part_apm_table *table;
sys/geom/part/g_part_apm.c
463
table = (struct g_part_apm_table *)basetable;
sys/geom/part/g_part_apm.c
465
basetable->gpt_first = table->self.ent_size + 1;
sys/geom/part/g_part_apm.c
466
basetable->gpt_last = table->ddr.ddr_blkcount - 1;
sys/geom/part/g_part_apm.c
467
basetable->gpt_entries = table->self.ent_size - 1;
sys/geom/part/g_part_apm.c
469
for (index = table->self.ent_pmblkcnt - 1; index > 0; index--) {
sys/geom/part/g_part_apm.c
470
error = apm_read_ent(cp, index + 1, &ent, table->tivo_series1);
sys/geom/part/g_part_apm.c
524
struct g_part_apm_table *table;
sys/geom/part/g_part_apm.c
531
table = (struct g_part_apm_table *)basetable;
sys/geom/part/g_part_apm.c
535
if (table->tivo_series1)
sys/geom/part/g_part_apm.c
541
be16enc(buf, table->ddr.ddr_sig);
sys/geom/part/g_part_apm.c
542
be16enc(buf + 2, table->ddr.ddr_blksize);
sys/geom/part/g_part_apm.c
543
be32enc(buf + 4, table->ddr.ddr_blkcount);
sys/geom/part/g_part_apm.c
551
tblsz = table->self.ent_pmblkcnt;
sys/geom/part/g_part_apm.c
556
be32enc(buf + 4, table->self.ent_pmblkcnt);
sys/geom/part/g_part_apm.c
557
be32enc(buf + 8, table->self.ent_start);
sys/geom/part/g_part_apm.c
558
be32enc(buf + 12, table->self.ent_size);
sys/geom/part/g_part_apm.c
559
bcopy(table->self.ent_name, buf + 16, sizeof(table->self.ent_name));
sys/geom/part/g_part_apm.c
560
bcopy(table->self.ent_type, buf + 48, sizeof(table->self.ent_type));
sys/geom/part/g_part_apm.c
568
be32enc(ptr + 4, table->self.ent_pmblkcnt);
sys/geom/part/g_part_bsd.c
159
struct g_part_bsd_table *table;
sys/geom/part/g_part_bsd.c
165
table = (struct g_part_bsd_table *)basetable;
sys/geom/part/g_part_bsd.c
168
entry->part.p_offset = gpp->gpp_start + table->offset;
sys/geom/part/g_part_bsd.c
178
struct g_part_bsd_table *table;
sys/geom/part/g_part_bsd.c
184
table = (struct g_part_bsd_table *)basetable;
sys/geom/part/g_part_bsd.c
186
bcopy(codeptr, table->bbarea, BOOT1_SIZE);
sys/geom/part/g_part_bsd.c
188
bcopy(codeptr + BOOT2_OFF, table->bbarea + BOOT2_OFF,
sys/geom/part/g_part_bsd.c
199
struct g_part_bsd_table *table;
sys/geom/part/g_part_bsd.c
214
table = (struct g_part_bsd_table *)basetable;
sys/geom/part/g_part_bsd.c
215
table->bbarea = g_malloc(BBSIZE, M_WAITOK | M_ZERO);
sys/geom/part/g_part_bsd.c
216
ptr = table->bbarea + pp->sectorsize;
sys/geom/part/g_part_bsd.c
239
entry->part.p_offset = table->offset;
sys/geom/part/g_part_bsd.c
247
struct g_part_bsd_table *table;
sys/geom/part/g_part_bsd.c
249
table = (struct g_part_bsd_table *)basetable;
sys/geom/part/g_part_bsd.c
250
g_free(table->bbarea);
sys/geom/part/g_part_bsd.c
251
table->bbarea = NULL;
sys/geom/part/g_part_bsd.c
259
g_part_bsd_dumpconf(struct g_part_table *table, struct g_part_entry *baseentry,
sys/geom/part/g_part_bsd.c
278
g_part_bsd_dumpto(struct g_part_table *table, struct g_part_entry *baseentry)
sys/geom/part/g_part_bsd.c
306
struct g_part_bsd_table *table;
sys/geom/part/g_part_bsd.c
311
table = (struct g_part_bsd_table *)basetable;
sys/geom/part/g_part_bsd.c
313
le32enc(table->bbarea + pp->sectorsize + 60, msize); /* d_secperunit */
sys/geom/part/g_part_bsd.c
345
g_part_bsd_name(struct g_part_table *table, struct g_part_entry *baseentry,
sys/geom/part/g_part_bsd.c
354
g_part_bsd_probe(struct g_part_table *table, struct g_consumer *cp)
sys/geom/part/g_part_bsd.c
385
struct g_part_bsd_table *table;
sys/geom/part/g_part_bsd.c
395
table = (struct g_part_bsd_table *)basetable;
sys/geom/part/g_part_bsd.c
398
table->bbarea = g_read_data(cp, 0, BBSIZE, &error);
sys/geom/part/g_part_bsd.c
399
if (table->bbarea == NULL)
sys/geom/part/g_part_bsd.c
402
buf = table->bbarea + pp->sectorsize;
sys/geom/part/g_part_bsd.c
440
table->offset = le32dec(buf + 148 + RAW_PART * 16 + 4);
sys/geom/part/g_part_bsd.c
451
if (part.p_offset < table->offset)
sys/geom/part/g_part_bsd.c
453
if (part.p_offset - table->offset > basetable->gpt_last)
sys/geom/part/g_part_bsd.c
456
part.p_offset - table->offset,
sys/geom/part/g_part_bsd.c
457
part.p_offset - table->offset + part.p_size - 1);
sys/geom/part/g_part_bsd.c
468
g_free(table->bbarea);
sys/geom/part/g_part_bsd.c
469
table->bbarea = NULL;
sys/geom/part/g_part_bsd.c
502
struct g_part_bsd_table *table;
sys/geom/part/g_part_bsd.c
508
table = (struct g_part_bsd_table *)basetable;
sys/geom/part/g_part_bsd.c
510
label = table->bbarea + pp->sectorsize;
sys/geom/part/g_part_bsd.c
537
error = g_write_data(cp, 0, table->bbarea, BBSIZE);
sys/geom/part/g_part_bsd64.c
301
struct g_part_bsd64_table *table;
sys/geom/part/g_part_bsd64.c
338
table = (struct g_part_bsd64_table *)basetable;
sys/geom/part/g_part_bsd64.c
339
table->d_align = blksize;
sys/geom/part/g_part_bsd64.c
340
table->d_bbase = ressize / pp->sectorsize;
sys/geom/part/g_part_bsd64.c
341
table->d_abase = ((pp->mediasize - ressize) &
sys/geom/part/g_part_bsd64.c
343
kern_uuidgen(&table->d_stor_uuid, 1);
sys/geom/part/g_part_bsd64.c
345
basetable->gpt_last = table->d_abase - 1; /* XXX */
sys/geom/part/g_part_bsd64.c
372
struct g_part_bsd64_table *table;
sys/geom/part/g_part_bsd64.c
374
char buf[sizeof(table->d_packname)];
sys/geom/part/g_part_bsd64.c
394
table = (struct g_part_bsd64_table *)basetable;
sys/geom/part/g_part_bsd64.c
396
(uintmax_t)table->d_bbase);
sys/geom/part/g_part_bsd64.c
397
if (table->d_abase)
sys/geom/part/g_part_bsd64.c
399
indent, (uintmax_t)table->d_abase);
sys/geom/part/g_part_bsd64.c
401
sbuf_printf_uuid(sb, &table->d_stor_uuid);
sys/geom/part/g_part_bsd64.c
404
strncpy(buf, table->d_packname, sizeof(buf) - 1);
sys/geom/part/g_part_bsd64.c
412
g_part_bsd64_dumpto(struct g_part_table *table, struct g_part_entry *baseentry)
sys/geom/part/g_part_bsd64.c
444
struct g_part_bsd64_table *table;
sys/geom/part/g_part_bsd64.c
449
table = (struct g_part_bsd64_table *)basetable;
sys/geom/part/g_part_bsd64.c
450
table->d_abase =
sys/geom/part/g_part_bsd64.c
451
rounddown2(pp->mediasize - table->d_bbase * pp->sectorsize,
sys/geom/part/g_part_bsd64.c
452
table->d_align) / pp->sectorsize;
sys/geom/part/g_part_bsd64.c
453
basetable->gpt_last = table->d_abase - 1;
sys/geom/part/g_part_bsd64.c
461
g_part_bsd64_name(struct g_part_table *table, struct g_part_entry *baseentry,
sys/geom/part/g_part_bsd64.c
470
g_part_bsd64_probe(struct g_part_table *table, struct g_consumer *cp)
sys/geom/part/g_part_bsd64.c
493
struct g_part_bsd64_table *table;
sys/geom/part/g_part_bsd64.c
504
table = (struct g_part_bsd64_table *)basetable;
sys/geom/part/g_part_bsd64.c
521
table->d_align = le32toh(dlp->d_align);
sys/geom/part/g_part_bsd64.c
522
if (table->d_align == 0 || (table->d_align & (pp->sectorsize - 1)))
sys/geom/part/g_part_bsd64.c
538
table->d_bbase = v64 / pp->sectorsize;
sys/geom/part/g_part_bsd64.c
542
table->d_abase = v64 / pp->sectorsize;
sys/geom/part/g_part_bsd64.c
543
le_uuid_dec(&dlp->d_stor_uuid, &table->d_stor_uuid);
sys/geom/part/g_part_bsd64.c
567
bcopy(dlp->d_reserved0, table->d_reserved0,
sys/geom/part/g_part_bsd64.c
568
sizeof(table->d_reserved0));
sys/geom/part/g_part_bsd64.c
569
bcopy(dlp->d_packname, table->d_packname, sizeof(table->d_packname));
sys/geom/part/g_part_bsd64.c
570
bcopy(dlp->d_reserved, table->d_reserved, sizeof(table->d_reserved));
sys/geom/part/g_part_bsd64.c
614
struct g_part_bsd64_table *table;
sys/geom/part/g_part_bsd64.c
620
table = (struct g_part_bsd64_table *)basetable;
sys/geom/part/g_part_bsd64.c
624
memcpy(dlp->d_reserved0, table->d_reserved0,
sys/geom/part/g_part_bsd64.c
625
sizeof(table->d_reserved0));
sys/geom/part/g_part_bsd64.c
626
memcpy(dlp->d_packname, table->d_packname, sizeof(table->d_packname));
sys/geom/part/g_part_bsd64.c
627
memcpy(dlp->d_reserved, table->d_reserved, sizeof(table->d_reserved));
sys/geom/part/g_part_bsd64.c
629
le32enc(&dlp->d_align, table->d_align);
sys/geom/part/g_part_bsd64.c
631
le_uuid_enc(&dlp->d_stor_uuid, &table->d_stor_uuid);
sys/geom/part/g_part_bsd64.c
633
le64enc(&dlp->d_bbase, table->d_bbase * pp->sectorsize);
sys/geom/part/g_part_bsd64.c
636
le64enc(&dlp->d_abase, table->d_abase * pp->sectorsize);
sys/geom/part/g_part_ebr.c
167
ebr_entry_link(struct g_part_table *table, uint32_t start, uint32_t end,
sys/geom/part/g_part_ebr.c
172
ebr_set_chs(table, start, &buf[3] /* dp_scyl */, &buf[1] /* dp_shd */,
sys/geom/part/g_part_ebr.c
175
ebr_set_chs(table, end, &buf[7] /* dp_ecyl */, &buf[5] /* dp_ehd */,
sys/geom/part/g_part_ebr.c
207
ebr_set_chs(struct g_part_table *table, uint32_t lba, u_char *cylp, u_char *hdp,
sys/geom/part/g_part_ebr.c
212
sec = lba % table->gpt_sectors + 1;
sys/geom/part/g_part_ebr.c
213
lba /= table->gpt_sectors;
sys/geom/part/g_part_ebr.c
214
hd = lba % table->gpt_heads;
sys/geom/part/g_part_ebr.c
215
lba /= table->gpt_heads;
sys/geom/part/g_part_ebr.c
288
g_part_ebr_add_alias(struct g_part_table *table, struct g_provider *pp,
sys/geom/part/g_part_ebr.c
301
g_part_ebr_new_provider(struct g_part_table *table, struct g_geom *gp,
sys/geom/part/g_part_ebr.c
363
g_part_ebr_dumpconf(struct g_part_table *table, struct g_part_entry *baseentry,
sys/geom/part/g_part_ebr.c
384
g_part_ebr_dumpto(struct g_part_table *table, struct g_part_entry *baseentry)
sys/geom/part/g_part_ebr.c
424
g_part_ebr_name(struct g_part_table *table, struct g_part_entry *entry,
sys/geom/part/g_part_ebr.c
432
g_part_ebr_precheck(struct g_part_table *table, enum g_part_ctl req,
sys/geom/part/g_part_ebr.c
442
gpp->gpp_index = (gpp->gpp_start / table->gpt_sectors) + 1;
sys/geom/part/g_part_ebr.c
447
g_part_ebr_probe(struct g_part_table *table, struct g_consumer *cp)
sys/geom/part/g_part_ebr.c
464
if (table->gpt_depth == 0)
sys/geom/part/g_part_ebr.c
508
struct g_part_ebr_table *table;
sys/geom/part/g_part_ebr.c
517
table = (struct g_part_ebr_table *)basetable;
sys/geom/part/g_part_ebr.c
542
memcpy(table->lba0_ebr, buf, sizeof(table->lba0_ebr));
sys/geom/part/g_part_ebr.c
579
g_part_ebr_setunset(struct g_part_table *table, struct g_part_entry *baseentry,
sys/geom/part/g_part_ebr.c
592
LIST_FOREACH(iter, &table->gpt_entry, gpe_entry) {
sys/geom/part/g_part_ebr.c
636
struct g_part_ebr_table *table;
sys/geom/part/g_part_ebr.c
646
table = (struct g_part_ebr_table *)basetable;
sys/geom/part/g_part_ebr.c
648
_Static_assert(DOSPARTOFF <= sizeof(table->lba0_ebr), "");
sys/geom/part/g_part_ebr.c
649
memcpy(buf, table->lba0_ebr, DOSPARTOFF);
sys/geom/part/g_part_gpt.c
1004
if (table->state[GPT_ELT_PRIHDR] == GPT_STATE_OK &&
sys/geom/part/g_part_gpt.c
1005
table->state[GPT_ELT_SECHDR] == GPT_STATE_OK &&
sys/geom/part/g_part_gpt.c
1007
if (table->state[GPT_ELT_PRITBL] == GPT_STATE_OK) {
sys/geom/part/g_part_gpt.c
1008
table->state[GPT_ELT_SECHDR] = GPT_STATE_INVALID;
sys/geom/part/g_part_gpt.c
1009
table->state[GPT_ELT_SECTBL] = GPT_STATE_MISSING;
sys/geom/part/g_part_gpt.c
1013
table->state[GPT_ELT_PRIHDR] = GPT_STATE_INVALID;
sys/geom/part/g_part_gpt.c
1014
table->state[GPT_ELT_PRITBL] = GPT_STATE_MISSING;
sys/geom/part/g_part_gpt.c
1020
if (table->state[GPT_ELT_PRITBL] != GPT_STATE_OK) {
sys/geom/part/g_part_gpt.c
1025
table->hdr = sechdr;
sys/geom/part/g_part_gpt.c
1031
if (table->state[GPT_ELT_SECTBL] != GPT_STATE_OK) {
sys/geom/part/g_part_gpt.c
1037
} else if (table->lba[GPT_ELT_SECHDR] != last) {
sys/geom/part/g_part_gpt.c
1042
table->hdr = prihdr;
sys/geom/part/g_part_gpt.c
1056
if (table->hdr->hdr_lba_start < GPT_MIN_RESERVED / pp->sectorsize + 2) {
sys/geom/part/g_part_gpt.c
1058
pp->name, (unsigned long long)table->hdr->hdr_lba_start,
sys/geom/part/g_part_gpt.c
1062
basetable->gpt_first = table->hdr->hdr_lba_start;
sys/geom/part/g_part_gpt.c
1063
basetable->gpt_last = table->hdr->hdr_lba_end;
sys/geom/part/g_part_gpt.c
1064
basetable->gpt_entries = table->hdr->hdr_entries;
sys/geom/part/g_part_gpt.c
1089
table->bootcamp = gpt_is_bootcamp(table, pp->name);
sys/geom/part/g_part_gpt.c
1097
struct g_part_gpt_table *table;
sys/geom/part/g_part_gpt.c
1100
table = (struct g_part_gpt_table *)basetable;
sys/geom/part/g_part_gpt.c
1102
gpt_create_pmbr(table, pp);
sys/geom/part/g_part_gpt.c
1113
struct g_part_gpt_table *table;
sys/geom/part/g_part_gpt.c
1119
table = (struct g_part_gpt_table *)basetable;
sys/geom/part/g_part_gpt.c
1123
if (table->bootcamp) {
sys/geom/part/g_part_gpt.c
1130
p = &table->mbr[DOSPARTOFF + i * DOSPARTSIZE];
sys/geom/part/g_part_gpt.c
1139
p = &table->mbr[DOSPARTOFF + i * DOSPARTSIZE];
sys/geom/part/g_part_gpt.c
1155
bzero(table->mbr + DOSPARTOFF, DOSPARTSIZE * NDOSPART);
sys/geom/part/g_part_gpt.c
1156
gpt_write_mbr_entry(table->mbr, ((set) ? 1 : 0), 0xee, 1,
sys/geom/part/g_part_gpt.c
1219
struct g_part_gpt_table *table;
sys/geom/part/g_part_gpt.c
122
static int g_part_gpt_setunset(struct g_part_table *table,
sys/geom/part/g_part_gpt.c
1225
table = (struct g_part_gpt_table *)basetable;
sys/geom/part/g_part_gpt.c
1226
tblsz = howmany(table->hdr->hdr_entries * table->hdr->hdr_entsz,
sys/geom/part/g_part_gpt.c
1230
if (table->bootcamp)
sys/geom/part/g_part_gpt.c
1235
bcopy(table->mbr, buf, MBRSIZE);
sys/geom/part/g_part_gpt.c
1244
memcpy(buf, table->hdr->hdr_sig, sizeof(table->hdr->hdr_sig));
sys/geom/part/g_part_gpt.c
1245
le32enc(buf + 8, table->hdr->hdr_revision);
sys/geom/part/g_part_gpt.c
1246
le32enc(buf + 12, table->hdr->hdr_size);
sys/geom/part/g_part_gpt.c
1247
le64enc(buf + 40, table->hdr->hdr_lba_start);
sys/geom/part/g_part_gpt.c
1248
le64enc(buf + 48, table->hdr->hdr_lba_end);
sys/geom/part/g_part_gpt.c
1249
le_uuid_enc(buf + 56, &table->hdr->hdr_uuid);
sys/geom/part/g_part_gpt.c
1250
le32enc(buf + 80, table->hdr->hdr_entries);
sys/geom/part/g_part_gpt.c
1251
le32enc(buf + 84, table->hdr->hdr_entsz);
sys/geom/part/g_part_gpt.c
1258
bp = buf + pp->sectorsize + table->hdr->hdr_entsz * index;
sys/geom/part/g_part_gpt.c
1269
table->hdr->hdr_entries * table->hdr->hdr_entsz);
sys/geom/part/g_part_gpt.c
1274
le64enc(buf + 24, table->lba[GPT_ELT_PRIHDR]); /* hdr_lba_self. */
sys/geom/part/g_part_gpt.c
1275
le64enc(buf + 32, table->lba[GPT_ELT_SECHDR]); /* hdr_lba_alt. */
sys/geom/part/g_part_gpt.c
1276
le64enc(buf + 72, table->lba[GPT_ELT_PRITBL]); /* hdr_lba_table. */
sys/geom/part/g_part_gpt.c
1277
crc = crc32(buf, table->hdr->hdr_size);
sys/geom/part/g_part_gpt.c
1282
(table->lba[GPT_ELT_PRITBL] + index) * pp->sectorsize,
sys/geom/part/g_part_gpt.c
1289
error = g_write_data(cp, table->lba[GPT_ELT_PRIHDR] * pp->sectorsize,
sys/geom/part/g_part_gpt.c
1296
le64enc(buf + 24, table->lba[GPT_ELT_SECHDR]); /* hdr_lba_self. */
sys/geom/part/g_part_gpt.c
1297
le64enc(buf + 32, table->lba[GPT_ELT_PRIHDR]); /* hdr_lba_alt. */
sys/geom/part/g_part_gpt.c
1298
le64enc(buf + 72, table->lba[GPT_ELT_SECTBL]); /* hdr_lba_table. */
sys/geom/part/g_part_gpt.c
1299
crc = crc32(buf, table->hdr->hdr_size);
sys/geom/part/g_part_gpt.c
1304
(table->lba[GPT_ELT_SECTBL] + index) * pp->sectorsize,
sys/geom/part/g_part_gpt.c
1311
error = g_write_data(cp, table->lba[GPT_ELT_SECHDR] * pp->sectorsize,
sys/geom/part/g_part_gpt.c
1325
struct g_part_gpt_table *table;
sys/geom/part/g_part_gpt.c
1330
table = (struct g_part_gpt_table *)basetable;
sys/geom/part/g_part_gpt.c
1335
table->lba[GPT_ELT_PRIHDR] = 1;
sys/geom/part/g_part_gpt.c
1336
table->lba[GPT_ELT_PRITBL] = 2;
sys/geom/part/g_part_gpt.c
1337
table->lba[GPT_ELT_SECHDR] = last;
sys/geom/part/g_part_gpt.c
1338
table->lba[GPT_ELT_SECTBL] = last - tblsz;
sys/geom/part/g_part_gpt.c
1339
table->state[GPT_ELT_PRIHDR] = GPT_STATE_OK;
sys/geom/part/g_part_gpt.c
1340
table->state[GPT_ELT_PRITBL] = GPT_STATE_OK;
sys/geom/part/g_part_gpt.c
1341
table->state[GPT_ELT_SECHDR] = GPT_STATE_OK;
sys/geom/part/g_part_gpt.c
1342
table->state[GPT_ELT_SECTBL] = GPT_STATE_OK;
sys/geom/part/g_part_gpt.c
1379
table->hdr->hdr_lba_start = start;
sys/geom/part/g_part_gpt.c
1380
table->hdr->hdr_lba_end = end;
sys/geom/part/g_part_gpt.c
347
gpt_create_pmbr(struct g_part_gpt_table *table, struct g_provider *pp)
sys/geom/part/g_part_gpt.c
350
bzero(table->mbr + DOSPARTOFF, DOSPARTSIZE * NDOSPART);
sys/geom/part/g_part_gpt.c
351
gpt_write_mbr_entry(table->mbr, 0, 0xee, 1,
sys/geom/part/g_part_gpt.c
353
le16enc(table->mbr + DOSMAGICOFFSET, DOSMAGIC);
sys/geom/part/g_part_gpt.c
363
gpt_is_bootcamp(struct g_part_gpt_table *table, const char *provname)
sys/geom/part/g_part_gpt.c
367
p = table->mbr + DOSPARTOFF;
sys/geom/part/g_part_gpt.c
384
struct g_part_gpt_table *table;
sys/geom/part/g_part_gpt.c
387
table = (struct g_part_gpt_table *)basetable;
sys/geom/part/g_part_gpt.c
391
if (table->mbr[DOSPARTOFF + DOSPARTSIZE * index])
sys/geom/part/g_part_gpt.c
395
bzero(table->mbr + DOSPARTOFF, DOSPARTSIZE * NDOSPART);
sys/geom/part/g_part_gpt.c
410
error = gpt_write_mbr_entry(table->mbr, index, 0xee,
sys/geom/part/g_part_gpt.c
416
error = gpt_write_mbr_entry(table->mbr, index, 0xaf,
sys/geom/part/g_part_gpt.c
421
error = gpt_write_mbr_entry(table->mbr, index, typ,
sys/geom/part/g_part_gpt.c
429
table->mbr[DOSPARTOFF + DOSPARTSIZE * index] = 0x80;
sys/geom/part/g_part_gpt.c
436
table->bootcamp = 0;
sys/geom/part/g_part_gpt.c
437
gpt_create_pmbr(table, pp);
sys/geom/part/g_part_gpt.c
441
gpt_read_hdr(struct g_part_gpt_table *table, struct g_consumer *cp,
sys/geom/part/g_part_gpt.c
452
table->state[elt] = GPT_STATE_MISSING;
sys/geom/part/g_part_gpt.c
458
if (table->state[GPT_ELT_PRIHDR] != GPT_STATE_OK)
sys/geom/part/g_part_gpt.c
459
table->lba[elt] = last;
sys/geom/part/g_part_gpt.c
461
table->lba[elt] = 1;
sys/geom/part/g_part_gpt.c
462
buf = g_read_data(cp, table->lba[elt] * pp->sectorsize, pp->sectorsize,
sys/geom/part/g_part_gpt.c
470
table->state[elt] = GPT_STATE_CORRUPT;
sys/geom/part/g_part_gpt.c
485
table->state[elt] = GPT_STATE_INVALID;
sys/geom/part/g_part_gpt.c
490
if (hdr->hdr_lba_self != table->lba[elt])
sys/geom/part/g_part_gpt.c
526
table->state[elt] = GPT_STATE_OK;
sys/geom/part/g_part_gpt.c
532
table->lba[GPT_ELT_SECHDR] = hdr->hdr_lba_alt;
sys/geom/part/g_part_gpt.c
544
gpt_read_tbl(struct g_part_gpt_table *table, struct g_consumer *cp,
sys/geom/part/g_part_gpt.c
557
table->state[elt] = GPT_STATE_UNSUPPORTED;
sys/geom/part/g_part_gpt.c
562
table->lba[elt] = hdr->hdr_lba_table;
sys/geom/part/g_part_gpt.c
564
table->state[elt] = GPT_STATE_MISSING;
sys/geom/part/g_part_gpt.c
571
p = g_read_data(cp, (table->lba[elt] + idx) * pp->sectorsize,
sys/geom/part/g_part_gpt.c
580
table->state[elt] = GPT_STATE_CORRUPT;
sys/geom/part/g_part_gpt.c
586
table->state[elt] = GPT_STATE_OK;
sys/geom/part/g_part_gpt.c
679
struct g_part_gpt_table *table;
sys/geom/part/g_part_gpt.c
683
table = (struct g_part_gpt_table *)basetable;
sys/geom/part/g_part_gpt.c
684
bzero(table->mbr, codesz);
sys/geom/part/g_part_gpt.c
687
bcopy(gpp->gpp_codeptr, table->mbr, codesz);
sys/geom/part/g_part_gpt.c
695
struct g_part_gpt_table *table;
sys/geom/part/g_part_gpt.c
702
table = (struct g_part_gpt_table *)basetable;
sys/geom/part/g_part_gpt.c
711
gpt_create_pmbr(table, pp);
sys/geom/part/g_part_gpt.c
714
table->hdr = g_malloc(sizeof(struct gpt_hdr), M_WAITOK | M_ZERO);
sys/geom/part/g_part_gpt.c
716
bcopy(GPT_HDR_SIG, table->hdr->hdr_sig, sizeof(table->hdr->hdr_sig));
sys/geom/part/g_part_gpt.c
717
table->hdr->hdr_revision = GPT_HDR_REVISION;
sys/geom/part/g_part_gpt.c
718
table->hdr->hdr_size = offsetof(struct gpt_hdr, padding);
sys/geom/part/g_part_gpt.c
719
kern_uuidgen(&table->hdr->hdr_uuid, 1);
sys/geom/part/g_part_gpt.c
720
table->hdr->hdr_entries = basetable->gpt_entries;
sys/geom/part/g_part_gpt.c
721
table->hdr->hdr_entsz = sizeof(struct gpt_ent);
sys/geom/part/g_part_gpt.c
730
struct g_part_gpt_table *table;
sys/geom/part/g_part_gpt.c
733
table = (struct g_part_gpt_table *)basetable;
sys/geom/part/g_part_gpt.c
735
g_free(table->hdr);
sys/geom/part/g_part_gpt.c
736
table->hdr = NULL;
sys/geom/part/g_part_gpt.c
742
if (table->state[GPT_ELT_PRIHDR] == GPT_STATE_OK)
sys/geom/part/g_part_gpt.c
744
if (table->state[GPT_ELT_SECHDR] == GPT_STATE_OK &&
sys/geom/part/g_part_gpt.c
745
table->lba[GPT_ELT_SECHDR] == pp->mediasize / pp->sectorsize - 1)
sys/geom/part/g_part_gpt.c
760
g_part_gpt_dumpconf(struct g_part_table *table, struct g_part_entry *baseentry,
sys/geom/part/g_part_gpt.c
801
g_part_gpt_dumpto(struct g_part_table *table, struct g_part_entry *baseentry)
sys/geom/part/g_part_gpt.c
848
g_part_gpt_name(struct g_part_table *table, struct g_part_entry *baseentry,
sys/geom/part/g_part_gpt.c
861
g_part_gpt_probe(struct g_part_table *table, struct g_consumer *cp)
sys/geom/part/g_part_gpt.c
868
if (!allow_nesting && table->gpt_depth != 0)
sys/geom/part/g_part_gpt.c
935
struct g_part_gpt_table *table;
sys/geom/part/g_part_gpt.c
941
table = (struct g_part_gpt_table *)basetable;
sys/geom/part/g_part_gpt.c
949
bcopy(buf, table->mbr, MBRSIZE);
sys/geom/part/g_part_gpt.c
953
prihdr = gpt_read_hdr(table, cp, GPT_ELT_PRIHDR);
sys/geom/part/g_part_gpt.c
954
if (table->state[GPT_ELT_PRIHDR] == GPT_STATE_OK) {
sys/geom/part/g_part_gpt.c
955
pritbl = gpt_read_tbl(table, cp, GPT_ELT_PRITBL, prihdr);
sys/geom/part/g_part_gpt.c
957
table->state[GPT_ELT_PRITBL] = GPT_STATE_MISSING;
sys/geom/part/g_part_gpt.c
962
sechdr = gpt_read_hdr(table, cp, GPT_ELT_SECHDR);
sys/geom/part/g_part_gpt.c
963
if (table->state[GPT_ELT_SECHDR] == GPT_STATE_OK) {
sys/geom/part/g_part_gpt.c
964
sectbl = gpt_read_tbl(table, cp, GPT_ELT_SECTBL, sechdr);
sys/geom/part/g_part_gpt.c
966
table->state[GPT_ELT_SECTBL] = GPT_STATE_MISSING;
sys/geom/part/g_part_gpt.c
971
if (table->state[GPT_ELT_PRITBL] != GPT_STATE_OK &&
sys/geom/part/g_part_gpt.c
972
table->state[GPT_ELT_SECTBL] != GPT_STATE_OK) {
sys/geom/part/g_part_gpt.c
973
if (table->state[GPT_ELT_PRITBL] == GPT_STATE_UNSUPPORTED &&
sys/geom/part/g_part_gpt.c
974
table->state[GPT_ELT_SECTBL] == GPT_STATE_UNSUPPORTED &&
sys/geom/part/g_part_ldm.c
1142
struct g_part_ldm_table *table;
sys/geom/part/g_part_ldm.c
1145
table = (struct g_part_ldm_table *)basetable;
sys/geom/part/g_part_ldm.c
1151
if (table->is_gpt)
sys/geom/part/g_part_ldm.c
1164
if (table->db_offset + LDM_DB_SIZE ==
sys/geom/part/g_part_ldm.c
1190
g_part_ldm_dumpto(struct g_part_table *table, struct g_part_entry *baseentry)
sys/geom/part/g_part_ldm.c
1205
g_part_ldm_name(struct g_part_table *table, struct g_part_entry *baseentry,
sys/geom/part/g_part_ldm.c
1216
struct g_part_ldm_table *table;
sys/geom/part/g_part_ldm.c
1262
table = (struct g_part_ldm_table *)basetable;
sys/geom/part/g_part_ldm.c
1263
table->is_gpt = 1;
sys/geom/part/g_part_ldm.c
1339
struct g_part_ldm_table *table;
sys/geom/part/g_part_ldm.c
1349
table = (struct g_part_ldm_table *)basetable;
sys/geom/part/g_part_ldm.c
1352
if (table->is_gpt)
sys/geom/part/g_part_ldm.c
1355
error = ldm_privhdr_check(&db, cp, table->is_gpt);
sys/geom/part/g_part_ldm.c
1358
basetable->gpt_first = table->is_gpt ? 0: db.ph.start;
sys/geom/part/g_part_ldm.c
1360
table->db_offset = db.ph.db_offset;
sys/geom/part/g_part_ldm.c
1362
if (table->is_gpt) {
sys/geom/part/g_part_ldm.c
1387
if (table->is_gpt) {
sys/geom/part/g_part_mbr.c
194
mbr_set_chs(struct g_part_table *table, uint32_t lba, u_char *cylp, u_char *hdp,
sys/geom/part/g_part_mbr.c
199
sec = lba % table->gpt_sectors + 1;
sys/geom/part/g_part_mbr.c
200
lba /= table->gpt_sectors;
sys/geom/part/g_part_mbr.c
201
hd = lba % table->gpt_heads;
sys/geom/part/g_part_mbr.c
202
lba /= table->gpt_heads;
sys/geom/part/g_part_mbr.c
267
struct g_part_mbr_table *table;
sys/geom/part/g_part_mbr.c
273
table = (struct g_part_mbr_table *)basetable;
sys/geom/part/g_part_mbr.c
274
dsn = *(uint32_t *)(table->mbr + DOSDSNOFF);
sys/geom/part/g_part_mbr.c
275
bcopy(gpp->gpp_codeptr, table->mbr, DOSPARTOFF);
sys/geom/part/g_part_mbr.c
277
*(uint32_t *)(table->mbr + DOSDSNOFF) = dsn;
sys/geom/part/g_part_mbr.c
285
struct g_part_mbr_table *table;
sys/geom/part/g_part_mbr.c
295
table = (struct g_part_mbr_table *)basetable;
sys/geom/part/g_part_mbr.c
296
le16enc(table->mbr + DOSMAGICOFFSET, DOSMAGIC);
sys/geom/part/g_part_mbr.c
310
g_part_mbr_efimedia(struct g_part_mbr_table *table, struct g_part_mbr_entry *entry,
sys/geom/part/g_part_mbr.c
315
dsn = le32dec(table->mbr + DOSDSNOFF);
sys/geom/part/g_part_mbr.c
326
struct g_part_mbr_table *table;
sys/geom/part/g_part_mbr.c
328
table = (struct g_part_mbr_table *)basetable;
sys/geom/part/g_part_mbr.c
340
g_part_mbr_efimedia(table, entry, sb);
sys/geom/part/g_part_mbr.c
348
g_part_mbr_dumpto(struct g_part_table *table, struct g_part_entry *baseentry)
sys/geom/part/g_part_mbr.c
404
g_part_mbr_name(struct g_part_table *table, struct g_part_entry *baseentry,
sys/geom/part/g_part_mbr.c
413
g_part_mbr_probe(struct g_part_table *table, struct g_consumer *cp)
sys/geom/part/g_part_mbr.c
476
struct g_part_mbr_table *table;
sys/geom/part/g_part_mbr.c
484
table = (struct g_part_mbr_table *)basetable;
sys/geom/part/g_part_mbr.c
492
bcopy(buf, table->mbr, sizeof(table->mbr));
sys/geom/part/g_part_mbr.c
537
g_part_mbr_setunset(struct g_part_table *table, struct g_part_entry *baseentry,
sys/geom/part/g_part_mbr.c
550
LIST_FOREACH(iter, &table->gpt_entry, gpe_entry) {
sys/geom/part/g_part_mbr.c
596
struct g_part_mbr_table *table;
sys/geom/part/g_part_mbr.c
600
table = (struct g_part_mbr_table *)basetable;
sys/geom/part/g_part_mbr.c
603
p = table->mbr + DOSPARTOFF + (index - 1) * DOSPARTSIZE;
sys/geom/part/g_part_mbr.c
624
error = g_write_data(cp, 0, table->mbr, cp->provider->sectorsize);
sys/i386/acpica/acpi_machdep.c
117
void *table;
sys/i386/acpica/acpi_machdep.c
126
table = pmap_mapbios(pa, length);
sys/i386/acpica/acpi_machdep.c
127
if (ACPI_FAILURE(AcpiUtChecksum(table, length))) {
sys/i386/acpica/acpi_machdep.c
131
pmap_unmapbios(table, length);
sys/i386/acpica/acpi_machdep.c
135
return (table);
sys/i386/acpica/acpi_machdep.c
145
ACPI_TABLE_HEADER *table;
sys/i386/acpica/acpi_machdep.c
148
table = pmap_mapbios(address, sizeof(ACPI_TABLE_HEADER));
sys/i386/acpica/acpi_machdep.c
149
ret = strncmp(table->Signature, sig, ACPI_NAMESEG_SIZE) == 0;
sys/i386/acpica/acpi_machdep.c
150
pmap_unmapbios(table, sizeof(ACPI_TABLE_HEADER));
sys/i386/acpica/acpi_machdep.c
167
acpi_unmap_table(void *table)
sys/i386/acpica/acpi_machdep.c
171
header = (ACPI_TABLE_HEADER *)table;
sys/i386/acpica/acpi_machdep.c
172
pmap_unmapbios(table, header->Length);
sys/i386/acpica/acpi_machdep.c
186
ACPI_TABLE_HEADER *table;
sys/i386/acpica/acpi_machdep.c
261
table = map_table(addr, sig);
sys/i386/acpica/acpi_machdep.c
262
if (table == NULL)
sys/i386/acpica/acpi_machdep.c
264
acpi_unmap_table(table);
sys/i386/include/xen/hypercall.h
143
trap_info_t *table)
sys/i386/include/xen/hypercall.h
145
return _hypercall1(int, set_trap_table, table);
sys/kern/kern_boottrace.c
249
evtp = &btp->table[i];
sys/kern/kern_boottrace.c
335
if (btp->table == NULL) {
sys/kern/kern_boottrace.c
352
btp->table[idx].cpuid = PCPU_GET(cpuid);
sys/kern/kern_boottrace.c
353
btp->table[idx].tsc = get_cyclecount(),
sys/kern/kern_boottrace.c
354
btp->table[idx].tick = cpu_ticks();
sys/kern/kern_boottrace.c
355
btp->table[idx].pid = curthread->td_proc->p_pid;
sys/kern/kern_boottrace.c
362
btp->table[idx].cputime = 0;
sys/kern/kern_boottrace.c
363
btp->table[idx].inblock = 0;
sys/kern/kern_boottrace.c
364
btp->table[idx].oublock = 0;
sys/kern/kern_boottrace.c
367
btp->table[idx].cputime =
sys/kern/kern_boottrace.c
371
btp->table[idx].inblock = (uint32_t)usage.ru_inblock;
sys/kern/kern_boottrace.c
372
btp->table[idx].oublock = (uint32_t)usage.ru_oublock;
sys/kern/kern_boottrace.c
374
strlcpy(btp->table[idx].name, eventname, BT_EVENT_NAMELEN);
sys/kern/kern_boottrace.c
375
strlcpy(btp->table[idx].tdname, tdname, BT_EVENT_TDNAMELEN);
sys/kern/kern_boottrace.c
561
rt.table = realloc(rt.table, newsize * sizeof(struct bt_event),
sys/kern/kern_boottrace.c
592
bt.table = malloc(bt.size * sizeof(struct bt_event), M_BOOTTRACE,
sys/kern/kern_boottrace.c
596
bt.table[0].cpuid = PCPU_GET(cpuid);
sys/kern/kern_boottrace.c
597
strlcpy(bt.table[0].tdname, "boottime", BT_EVENT_TDNAMELEN);
sys/kern/kern_boottrace.c
598
strlcpy(bt.table[0].name, "initial event", BT_EVENT_NAMELEN);
sys/kern/kern_boottrace.c
604
rt.table = malloc(rt.size * sizeof(struct bt_event), M_BOOTTRACE,
sys/kern/kern_boottrace.c
609
st.table = malloc(st.size * sizeof(struct bt_event), M_BOOTTRACE,
sys/kern/kern_boottrace.c
75
struct bt_event *table;
sys/kern/kern_rctl.c
828
str2value(const char *str, int *value, struct dict *table)
sys/kern/kern_rctl.c
835
for (i = 0; table[i].d_name != NULL; i++) {
sys/kern/kern_rctl.c
836
if (strcasecmp(table[i].d_name, str) == 0) {
sys/kern/kern_rctl.c
837
*value = table[i].d_value;
sys/kern/subr_devmap.c
165
devmap_register_table(const struct devmap_entry *table)
sys/kern/subr_devmap.c
168
devmap_table = table;
sys/kern/tty_compat.c
52
static int ttcompatspeedtab(int speed, struct speedtab *table);
sys/kern/tty_compat.c
85
ttcompatspeedtab(int speed, struct speedtab *table)
sys/kern/tty_compat.c
89
for ( ; table->sp_speed > 0; table++)
sys/kern/tty_compat.c
90
if (table->sp_speed <= speed) /* nearest one, rounded down */
sys/kern/tty_compat.c
91
return (table->sp_code);
sys/libkern/scanc.c
36
scanc(u_int size, const u_char *cp, const u_char table[], int mask0)
sys/libkern/scanc.c
43
if (table[*cp] & mask)
sys/net/pfvar.h
1357
struct pfr_ktable *table;
sys/net/route.h
421
u_int rt_tables_get_gen(uint32_t table, sa_family_t family);
sys/net/route/route_ctl.h
36
struct rib_head *rt_tables_get_rnh_safe(uint32_t table, sa_family_t family);
sys/net/route/route_tables.c
358
rt_tables_get_rnh_ptr(uint32_t table, sa_family_t family)
sys/net/route/route_tables.c
362
KASSERT(table < V_rt_numfibs,
sys/net/route/route_tables.c
363
("%s: table out of bounds (%d < %d)", __func__, table,
sys/net/route/route_tables.c
371
prnh += table * (AF_MAX + 1) + family;
sys/net/route/route_tables.c
377
rt_tables_get_rnh(uint32_t table, sa_family_t family)
sys/net/route/route_tables.c
380
return (rt_tables_get_rnh_ptr(table, family));
sys/net/route/route_tables.c
384
rt_tables_get_rnh_safe(uint32_t table, sa_family_t family)
sys/net/route/route_tables.c
386
if (__predict_false(table >= V_rt_numfibs))
sys/net/route/route_tables.c
390
return (rt_tables_get_rnh_ptr(table, family));
sys/net/route/route_tables.c
394
rt_tables_get_gen(uint32_t table, sa_family_t family)
sys/net/route/route_tables.c
398
rnh = rt_tables_get_rnh_ptr(table, family);
sys/net/route/route_tables.c
400
__func__, table, family));
sys/net/route/route_var.h
127
struct rib_head *rt_tables_get_rnh(uint32_t table, sa_family_t family);
sys/net80211/ieee80211_scan_sta.c
545
const struct scanlist table[])
sys/net80211/ieee80211_scan_sta.c
586
if (checktable(table, c))
sys/net80211/ieee80211_scan_sta.c
611
const struct scanlist table[])
sys/net80211/ieee80211_scan_sta.c
622
for (scan = table; scan->list != NULL; scan++) {
sys/net80211/ieee80211_scan_sta.c
685
sweepchannels(ss, vap, table);
sys/netgraph/ng_vlan.c
85
const struct ng_vlan_table *const table =
sys/netgraph/ng_vlan.c
88
return table->n;
sys/netinet/sctp_os_bsd.h
248
#define SCTP_HASH_FREE(table, hashmark) hashdestroy(table, M_PCB, hashmark)
sys/netpfil/ipfilter/netinet/ip_dstlist.c
947
ipf_dstlist_table_deref(ipf_main_softc_t *softc, void *arg, void *table)
sys/netpfil/ipfilter/netinet/ip_dstlist.c
949
ippool_dst_t *d = table;
sys/netpfil/ipfilter/netinet/ip_frag.c
357
fr_info_t *fin, u_32_t pass, ipfr_t *table[]
sys/netpfil/ipfilter/netinet/ip_frag.c
440
for (fra = table[idx]; (fra != NULL); fra = fra->ipfr_hnext)
sys/netpfil/ipfilter/netinet/ip_frag.c
464
if ((fra->ipfr_hnext = table[idx]) != NULL)
sys/netpfil/ipfilter/netinet/ip_frag.c
465
table[idx]->ipfr_hprev = &fra->ipfr_hnext;
sys/netpfil/ipfilter/netinet/ip_frag.c
466
fra->ipfr_hprev = table + idx;
sys/netpfil/ipfilter/netinet/ip_frag.c
468
table[idx] = fra;
sys/netpfil/ipfilter/netinet/ip_frag.c
613
fr_info_t *fin, ipfr_t *table[]
sys/netpfil/ipfilter/netinet/ip_frag.c
670
for (f = table[idx]; f; f = f->ipfr_hnext) {
sys/netpfil/ipfilter/netinet/ip_frag.c
704
if (f != table[idx] && MUTEX_TRY_UPGRADE(lock)) {
sys/netpfil/ipfilter/netinet/ip_frag.c
718
f->ipfr_hnext = table[idx];
sys/netpfil/ipfilter/netinet/ip_frag.c
719
table[idx]->ipfr_hprev = &f->ipfr_hnext;
sys/netpfil/ipfilter/netinet/ip_frag.c
720
f->ipfr_hprev = table + idx;
sys/netpfil/ipfilter/netinet/ip_frag.c
721
table[idx] = f;
sys/netpfil/ipfilter/netinet/ip_nat.c
7799
ipftable_t table;
sys/netpfil/ipfilter/netinet/ip_nat.c
7802
error = ipf_inobj(softc, data, NULL, &table, IPFOBJ_GTABLE);
sys/netpfil/ipfilter/netinet/ip_nat.c
7806
switch (table.ita_type)
sys/netpfil/ipfilter/netinet/ip_nat.c
7810
table.ita_table,
sys/netpfil/ipfilter/netinet/ip_nat.c
7816
table.ita_table,
sys/netpfil/ipfilter/netinet/ip_state.c
4801
ipftable_t table;
sys/netpfil/ipfilter/netinet/ip_state.c
4804
error = ipf_inobj(softc, data, NULL, &table, IPFOBJ_GTABLE);
sys/netpfil/ipfilter/netinet/ip_state.c
4808
if (table.ita_type != IPFTABLE_BUCKETS) {
sys/netpfil/ipfilter/netinet/ip_state.c
4813
error = COPYOUT(softs->ipf_state_stats.iss_bucketlen, table.ita_table,
sys/netpfil/ipfilter/netinet/ip_sync.c
1203
ipf_sync_flush_table(ipf_sync_softc_t *softs, int tabsize, synclist_t **table)
sys/netpfil/ipfilter/netinet/ip_sync.c
1211
while ((sl = table[i]) != NULL) {
sys/netpfil/ipfilter/netinet/ip_sync.c
1224
table[i] = sl->sl_next;
sys/netpfil/ipfw/ip_fw2.c
1363
return (tvalue == insntoc(cmd, table)->value);
sys/netpfil/ipfw/ip_fw2.c
2287
key.u32 &= insntod(cmd, table)->value;
sys/netpfil/ipfw/ip_fw_compat.c
392
dst->arg1 = insntoc(src, table)->value;
sys/netpfil/ipfw/ip_fw_compat.c
403
insntod(dst, table)->kidx = src->arg1;
sys/netpfil/ipfw/ip_fw_compat.c
404
insntod(dst, table)->value =
sys/netpfil/pf/pf.c
618
else if ((t = srlim->pfsrlim_overload.table) != NULL &&
sys/netpfil/pf/pf.c
638
t = srlim->pfsrlim_overload.table;
sys/netpfil/pf/pf_ioctl.c
2001
if (opfsrlim->pfsrlim_overload.table != NULL) {
sys/netpfil/pf/pf_ioctl.c
2003
opfsrlim->pfsrlim_overload.table);
sys/netpfil/pf/pf_ioctl.c
2013
opfsrlim->pfsrlim_overload.table =
sys/netpfil/pf/pf_ioctl.c
2014
pfsrlim->pfsrlim_overload.table,
sys/netpfil/pf/pf_ioctl.c
2036
if (pfsrlim->pfsrlim_overload.table != NULL)
sys/netpfil/pf/pf_ioctl.c
2037
pfr_detach_table(pfsrlim->pfsrlim_overload.table);
sys/netpfil/pf/pf_ioctl.c
2226
pfsrlim->pfsrlim_overload.table = pfr_attach_table(
sys/netpfil/pf/pf_ioctl.c
2228
if (pfsrlim->pfsrlim_overload.table == NULL) {
sys/netpfil/pf/pf_ioctl.c
2272
if (pfsrlim->pfsrlim_overload.table != NULL)
sys/netpfil/pf/pf_ioctl.c
2273
pfr_detach_table(pfsrlim->pfsrlim_overload.table);
sys/netpfil/pf/pf_ioctl.c
6233
struct pfr_table table;
sys/netpfil/pf/pf_ioctl.c
6235
bzero(&table, sizeof(table));
sys/netpfil/pf/pf_ioctl.c
6236
strlcpy(table.pfrt_anchor, ioe->anchor,
sys/netpfil/pf/pf_ioctl.c
6237
sizeof(table.pfrt_anchor));
sys/netpfil/pf/pf_ioctl.c
6238
if ((error = pfr_ina_begin(&table,
sys/netpfil/pf/pf_ioctl.c
6315
struct pfr_table table;
sys/netpfil/pf/pf_ioctl.c
6317
bzero(&table, sizeof(table));
sys/netpfil/pf/pf_ioctl.c
6318
strlcpy(table.pfrt_anchor, ioe->anchor,
sys/netpfil/pf/pf_ioctl.c
6319
sizeof(table.pfrt_anchor));
sys/netpfil/pf/pf_ioctl.c
6320
if ((error = pfr_ina_rollback(&table,
sys/netpfil/pf/pf_ioctl.c
6455
struct pfr_table table;
sys/netpfil/pf/pf_ioctl.c
6457
bzero(&table, sizeof(table));
sys/netpfil/pf/pf_ioctl.c
6458
(void)strlcpy(table.pfrt_anchor, ioe->anchor,
sys/netpfil/pf/pf_ioctl.c
6459
sizeof(table.pfrt_anchor));
sys/netpfil/pf/pf_ioctl.c
6460
if ((error = pfr_ina_commit(&table,
sys/netpfil/pf/pf_nl.c
2116
struct pfr_table table;
sys/netpfil/pf/pf_nl.c
2159
{ .type = PF_TA_TABLE, .off = _OUT(table), .arg = &nested_table_parser, .cb = nlattr_get_nested },
sys/netpfil/pf/pf_nl.c
2179
error = pfr_add_addrs(&attrs.table, &attrs.addrs[0],
sys/netpfil/pf/pf_nl.c
2210
error = pfr_del_addrs(&attrs.table, &attrs.addrs[0],
sys/netpfil/pf/pf_nl.c
2241
error = pfr_set_addrs(&attrs.table, &attrs.addrs[0],
sys/netpfil/pf/pf_nl.c
2363
struct pfr_table table;
sys/netpfil/pf/pf_nl.c
2368
{ .type = PF_TAS_TABLE, .off = _OUT(table), .arg = &nested_table_parser, .cb = nlattr_get_nested },
sys/netpfil/pf/pf_nl.c
2393
error = pfr_get_astats(&attrs.table, NULL,
sys/netpfil/pf/pf_nl.c
2408
error = pfr_get_astats(&attrs.table, pfrastats,
sys/netpfil/pf/pf_nl.c
2451
error = pfr_clr_astats(&attrs.table, &attrs.addrs[0],
sys/netpfil/pf/pf_nl.c
2485
error = pfr_tst_addrs(&attrs.table, &attrs.addrs[0],
sys/ofed/drivers/infiniband/core/ib_cache.c
1014
if (cache->table[i] == pkey) {
sys/ofed/drivers/infiniband/core/ib_cache.c
1051
union ib_gid table[0];
sys/ofed/drivers/infiniband/core/ib_cache.c
1055
struct ib_gid_table *table;
sys/ofed/drivers/infiniband/core/ib_cache.c
1063
table = ports_table[port - rdma_start_port(device)];
sys/ofed/drivers/infiniband/core/ib_cache.c
1077
sizeof *pkey_cache->table, GFP_KERNEL);
sys/ofed/drivers/infiniband/core/ib_cache.c
1085
sizeof(*gid_cache->table), GFP_KERNEL);
sys/ofed/drivers/infiniband/core/ib_cache.c
1093
ret = ib_query_pkey(device, port, i, pkey_cache->table + i);
sys/ofed/drivers/infiniband/core/ib_cache.c
1104
gid_cache->table + i, NULL);
sys/ofed/drivers/infiniband/core/ib_cache.c
1119
write_lock(&table->rwlock);
sys/ofed/drivers/infiniband/core/ib_cache.c
1121
modify_gid(device, port, table, i, gid_cache->table + i,
sys/ofed/drivers/infiniband/core/ib_cache.c
1124
write_unlock(&table->rwlock);
sys/ofed/drivers/infiniband/core/ib_cache.c
176
struct ib_gid_table *table, int ix,
sys/ofed/drivers/infiniband/core/ib_cache.c
181
__releases(&table->rwlock) __acquires(&table->rwlock)
sys/ofed/drivers/infiniband/core/ib_cache.c
192
table->data_vec[ix].props |= GID_TABLE_ENTRY_INVALID;
sys/ofed/drivers/infiniband/core/ib_cache.c
193
write_unlock_irq(&table->rwlock);
sys/ofed/drivers/infiniband/core/ib_cache.c
199
&table->data_vec[ix].context);
sys/ofed/drivers/infiniband/core/ib_cache.c
202
&table->data_vec[ix].context);
sys/ofed/drivers/infiniband/core/ib_cache.c
203
write_lock_irq(&table->rwlock);
sys/ofed/drivers/infiniband/core/ib_cache.c
206
old_net_dev = table->data_vec[ix].attr.ndev;
sys/ofed/drivers/infiniband/core/ib_cache.c
207
old_gid_type = table->data_vec[ix].attr.gid_type;
sys/ofed/drivers/infiniband/core/ib_cache.c
214
table->data_vec[ix].context = NULL;
sys/ofed/drivers/infiniband/core/ib_cache.c
217
memcpy(&table->data_vec[ix].gid, gid, sizeof(*gid));
sys/ofed/drivers/infiniband/core/ib_cache.c
218
memcpy(&table->data_vec[ix].attr, attr, sizeof(*attr));
sys/ofed/drivers/infiniband/core/ib_cache.c
220
table->data_vec[ix].props |= GID_TABLE_ENTRY_DEFAULT;
sys/ofed/drivers/infiniband/core/ib_cache.c
222
table->data_vec[ix].attr.gid_type = old_gid_type;
sys/ofed/drivers/infiniband/core/ib_cache.c
224
if (table->data_vec[ix].attr.ndev &&
sys/ofed/drivers/infiniband/core/ib_cache.c
225
table->data_vec[ix].attr.ndev != old_net_dev)
sys/ofed/drivers/infiniband/core/ib_cache.c
226
dev_hold(table->data_vec[ix].attr.ndev);
sys/ofed/drivers/infiniband/core/ib_cache.c
228
table->data_vec[ix].props &= ~GID_TABLE_ENTRY_INVALID;
sys/ofed/drivers/infiniband/core/ib_cache.c
234
struct ib_gid_table *table, int ix,
sys/ofed/drivers/infiniband/core/ib_cache.c
238
return write_gid(ib_dev, port, table, ix, gid, attr,
sys/ofed/drivers/infiniband/core/ib_cache.c
243
struct ib_gid_table *table, int ix,
sys/ofed/drivers/infiniband/core/ib_cache.c
247
return write_gid(ib_dev, port, table, ix, gid, attr,
sys/ofed/drivers/infiniband/core/ib_cache.c
252
struct ib_gid_table *table, int ix,
sys/ofed/drivers/infiniband/core/ib_cache.c
254
return write_gid(ib_dev, port, table, ix, &zgid, &zattr,
sys/ofed/drivers/infiniband/core/ib_cache.c
259
static int find_gid(struct ib_gid_table *table, const union ib_gid *gid,
sys/ofed/drivers/infiniband/core/ib_cache.c
267
while (i < table->sz && (found < 0 || empty < 0)) {
sys/ofed/drivers/infiniband/core/ib_cache.c
268
struct ib_gid_table_entry *data = &table->data_vec[i];
sys/ofed/drivers/infiniband/core/ib_cache.c
336
struct ib_gid_table *table;
sys/ofed/drivers/infiniband/core/ib_cache.c
341
table = ports_table[port - rdma_start_port(ib_dev)];
sys/ofed/drivers/infiniband/core/ib_cache.c
346
mutex_lock(&table->lock);
sys/ofed/drivers/infiniband/core/ib_cache.c
347
write_lock_irq(&table->rwlock);
sys/ofed/drivers/infiniband/core/ib_cache.c
349
ix = find_gid(table, gid, attr, false, GID_ATTR_FIND_MASK_GID |
sys/ofed/drivers/infiniband/core/ib_cache.c
360
ret = add_gid(ib_dev, port, table, empty, gid, attr, false);
sys/ofed/drivers/infiniband/core/ib_cache.c
365
write_unlock_irq(&table->rwlock);
sys/ofed/drivers/infiniband/core/ib_cache.c
366
mutex_unlock(&table->lock);
sys/ofed/drivers/infiniband/core/ib_cache.c
374
struct ib_gid_table *table;
sys/ofed/drivers/infiniband/core/ib_cache.c
377
table = ports_table[port - rdma_start_port(ib_dev)];
sys/ofed/drivers/infiniband/core/ib_cache.c
379
mutex_lock(&table->lock);
sys/ofed/drivers/infiniband/core/ib_cache.c
380
write_lock_irq(&table->rwlock);
sys/ofed/drivers/infiniband/core/ib_cache.c
382
ix = find_gid(table, gid, attr, false,
sys/ofed/drivers/infiniband/core/ib_cache.c
391
if (!del_gid(ib_dev, port, table, ix, false))
sys/ofed/drivers/infiniband/core/ib_cache.c
395
write_unlock_irq(&table->rwlock);
sys/ofed/drivers/infiniband/core/ib_cache.c
396
mutex_unlock(&table->lock);
sys/ofed/drivers/infiniband/core/ib_cache.c
404
struct ib_gid_table *table;
sys/ofed/drivers/infiniband/core/ib_cache.c
408
table = ports_table[port - rdma_start_port(ib_dev)];
sys/ofed/drivers/infiniband/core/ib_cache.c
410
mutex_lock(&table->lock);
sys/ofed/drivers/infiniband/core/ib_cache.c
411
write_lock_irq(&table->rwlock);
sys/ofed/drivers/infiniband/core/ib_cache.c
413
for (ix = 0; ix < table->sz; ix++)
sys/ofed/drivers/infiniband/core/ib_cache.c
414
if (table->data_vec[ix].attr.ndev == ndev)
sys/ofed/drivers/infiniband/core/ib_cache.c
415
if (!del_gid(ib_dev, port, table, ix,
sys/ofed/drivers/infiniband/core/ib_cache.c
416
!!(table->data_vec[ix].props &
sys/ofed/drivers/infiniband/core/ib_cache.c
420
write_unlock_irq(&table->rwlock);
sys/ofed/drivers/infiniband/core/ib_cache.c
421
mutex_unlock(&table->lock);
sys/ofed/drivers/infiniband/core/ib_cache.c
433
struct ib_gid_table *table;
sys/ofed/drivers/infiniband/core/ib_cache.c
435
table = ports_table[port - rdma_start_port(ib_dev)];
sys/ofed/drivers/infiniband/core/ib_cache.c
437
if (index < 0 || index >= table->sz)
sys/ofed/drivers/infiniband/core/ib_cache.c
440
if (table->data_vec[index].props & GID_TABLE_ENTRY_INVALID)
sys/ofed/drivers/infiniband/core/ib_cache.c
443
memcpy(gid, &table->data_vec[index].gid, sizeof(*gid));
sys/ofed/drivers/infiniband/core/ib_cache.c
445
memcpy(attr, &table->data_vec[index].attr, sizeof(*attr));
sys/ofed/drivers/infiniband/core/ib_cache.c
465
struct ib_gid_table *table;
sys/ofed/drivers/infiniband/core/ib_cache.c
471
table = ports_table[p];
sys/ofed/drivers/infiniband/core/ib_cache.c
472
read_lock_irqsave(&table->rwlock, flags);
sys/ofed/drivers/infiniband/core/ib_cache.c
473
local_index = find_gid(table, gid, val, false, mask, NULL);
sys/ofed/drivers/infiniband/core/ib_cache.c
479
read_unlock_irqrestore(&table->rwlock, flags);
sys/ofed/drivers/infiniband/core/ib_cache.c
482
read_unlock_irqrestore(&table->rwlock, flags);
sys/ofed/drivers/infiniband/core/ib_cache.c
513
struct ib_gid_table *table;
sys/ofed/drivers/infiniband/core/ib_cache.c
522
table = ports_table[port - rdma_start_port(ib_dev)];
sys/ofed/drivers/infiniband/core/ib_cache.c
527
read_lock_irqsave(&table->rwlock, flags);
sys/ofed/drivers/infiniband/core/ib_cache.c
528
local_index = find_gid(table, gid, &val, false, mask, NULL);
sys/ofed/drivers/infiniband/core/ib_cache.c
53
u16 table[0];
sys/ofed/drivers/infiniband/core/ib_cache.c
532
read_unlock_irqrestore(&table->rwlock, flags);
sys/ofed/drivers/infiniband/core/ib_cache.c
536
read_unlock_irqrestore(&table->rwlock, flags);
sys/ofed/drivers/infiniband/core/ib_cache.c
571
struct ib_gid_table *table;
sys/ofed/drivers/infiniband/core/ib_cache.c
585
table = ports_table[port - rdma_start_port(ib_dev)];
sys/ofed/drivers/infiniband/core/ib_cache.c
587
read_lock_irqsave(&table->rwlock, flags);
sys/ofed/drivers/infiniband/core/ib_cache.c
588
for (i = 0; i < table->sz; i++) {
sys/ofed/drivers/infiniband/core/ib_cache.c
591
if (table->data_vec[i].props & GID_TABLE_ENTRY_INVALID)
sys/ofed/drivers/infiniband/core/ib_cache.c
594
if (memcmp(gid, &table->data_vec[i].gid, sizeof(*gid)))
sys/ofed/drivers/infiniband/core/ib_cache.c
597
memcpy(&attr, &table->data_vec[i].attr, sizeof(attr));
sys/ofed/drivers/infiniband/core/ib_cache.c
606
read_unlock_irqrestore(&table->rwlock, flags);
sys/ofed/drivers/infiniband/core/ib_cache.c
618
struct ib_gid_table *table =
sys/ofed/drivers/infiniband/core/ib_cache.c
621
if (!table)
sys/ofed/drivers/infiniband/core/ib_cache.c
624
table->data_vec = kcalloc(sz, sizeof(*table->data_vec), GFP_KERNEL);
sys/ofed/drivers/infiniband/core/ib_cache.c
625
if (!table->data_vec)
sys/ofed/drivers/infiniband/core/ib_cache.c
628
mutex_init(&table->lock);
sys/ofed/drivers/infiniband/core/ib_cache.c
630
table->sz = sz;
sys/ofed/drivers/infiniband/core/ib_cache.c
631
rwlock_init(&table->rwlock);
sys/ofed/drivers/infiniband/core/ib_cache.c
633
return table;
sys/ofed/drivers/infiniband/core/ib_cache.c
636
kfree(table);
sys/ofed/drivers/infiniband/core/ib_cache.c
640
static void release_gid_table(struct ib_gid_table *table)
sys/ofed/drivers/infiniband/core/ib_cache.c
642
if (table) {
sys/ofed/drivers/infiniband/core/ib_cache.c
643
kfree(table->data_vec);
sys/ofed/drivers/infiniband/core/ib_cache.c
644
kfree(table);
sys/ofed/drivers/infiniband/core/ib_cache.c
649
struct ib_gid_table *table)
sys/ofed/drivers/infiniband/core/ib_cache.c
654
if (!table)
sys/ofed/drivers/infiniband/core/ib_cache.c
657
write_lock_irq(&table->rwlock);
sys/ofed/drivers/infiniband/core/ib_cache.c
658
for (i = 0; i < table->sz; ++i) {
sys/ofed/drivers/infiniband/core/ib_cache.c
659
if (memcmp(&table->data_vec[i].gid, &zgid,
sys/ofed/drivers/infiniband/core/ib_cache.c
660
sizeof(table->data_vec[i].gid)))
sys/ofed/drivers/infiniband/core/ib_cache.c
661
if (!del_gid(ib_dev, port, table, i,
sys/ofed/drivers/infiniband/core/ib_cache.c
662
table->data_vec[i].props &
sys/ofed/drivers/infiniband/core/ib_cache.c
666
write_unlock_irq(&table->rwlock);
sys/ofed/drivers/infiniband/core/ib_cache.c
681
struct ib_gid_table *table;
sys/ofed/drivers/infiniband/core/ib_cache.c
684
table = ports_table[port - rdma_start_port(ib_dev)];
sys/ofed/drivers/infiniband/core/ib_cache.c
710
mutex_lock(&table->lock);
sys/ofed/drivers/infiniband/core/ib_cache.c
711
write_lock_irq(&table->rwlock);
sys/ofed/drivers/infiniband/core/ib_cache.c
712
ix = find_gid(table, NULL, &gid_attr, true,
sys/ofed/drivers/infiniband/core/ib_cache.c
733
if (del_gid(ib_dev, port, table, ix, true)) {
sys/ofed/drivers/infiniband/core/ib_cache.c
743
if (add_gid(ib_dev, port, table, ix, &gid, &gid_attr, true))
sys/ofed/drivers/infiniband/core/ib_cache.c
753
write_unlock_irq(&table->rwlock);
sys/ofed/drivers/infiniband/core/ib_cache.c
754
mutex_unlock(&table->lock);
sys/ofed/drivers/infiniband/core/ib_cache.c
759
struct ib_gid_table *table)
sys/ofed/drivers/infiniband/core/ib_cache.c
768
for (i = 0; i < num_default_gids && i < table->sz; i++) {
sys/ofed/drivers/infiniband/core/ib_cache.c
770
&table->data_vec[i];
sys/ofed/drivers/infiniband/core/ib_cache.c
785
struct ib_gid_table **table;
sys/ofed/drivers/infiniband/core/ib_cache.c
788
table = kcalloc(ib_dev->phys_port_cnt, sizeof(*table), GFP_KERNEL);
sys/ofed/drivers/infiniband/core/ib_cache.c
790
if (!table) {
sys/ofed/drivers/infiniband/core/ib_cache.c
799
table[port] =
sys/ofed/drivers/infiniband/core/ib_cache.c
802
if (!table[port]) {
sys/ofed/drivers/infiniband/core/ib_cache.c
809
table[port]);
sys/ofed/drivers/infiniband/core/ib_cache.c
814
ib_dev->cache.gid_cache = table;
sys/ofed/drivers/infiniband/core/ib_cache.c
820
table[port]);
sys/ofed/drivers/infiniband/core/ib_cache.c
821
release_gid_table(table[port]);
sys/ofed/drivers/infiniband/core/ib_cache.c
824
kfree(table);
sys/ofed/drivers/infiniband/core/ib_cache.c
830
struct ib_gid_table **table = ib_dev->cache.gid_cache;
sys/ofed/drivers/infiniband/core/ib_cache.c
833
if (!table)
sys/ofed/drivers/infiniband/core/ib_cache.c
837
release_gid_table(table[port]);
sys/ofed/drivers/infiniband/core/ib_cache.c
839
kfree(table);
sys/ofed/drivers/infiniband/core/ib_cache.c
845
struct ib_gid_table **table = ib_dev->cache.gid_cache;
sys/ofed/drivers/infiniband/core/ib_cache.c
848
if (!table)
sys/ofed/drivers/infiniband/core/ib_cache.c
853
table[port]);
sys/ofed/drivers/infiniband/core/ib_cache.c
884
struct ib_gid_table *table = ports_table[port_num - rdma_start_port(device)];
sys/ofed/drivers/infiniband/core/ib_cache.c
889
read_lock_irqsave(&table->rwlock, flags);
sys/ofed/drivers/infiniband/core/ib_cache.c
891
read_unlock_irqrestore(&table->rwlock, flags);
sys/ofed/drivers/infiniband/core/ib_cache.c
945
*pkey = cache->table[index];
sys/ofed/drivers/infiniband/core/ib_cache.c
974
if ((cache->table[i] & 0x7fff) == (pkey & 0x7fff)) {
sys/ofed/drivers/infiniband/core/ib_cache.c
975
if (cache->table[i] & 0x8000) {
sys/ofed/drivers/infiniband/core/ib_multicast.c
137
struct rb_node *node = port->table.rb_node;
sys/ofed/drivers/infiniband/core/ib_multicast.c
159
struct rb_node **link = &port->table.rb_node;
sys/ofed/drivers/infiniband/core/ib_multicast.c
180
rb_insert_color(&group->node, &port->table);
sys/ofed/drivers/infiniband/core/ib_multicast.c
197
rb_erase(&group->node, &port->table);
sys/ofed/drivers/infiniband/core/ib_multicast.c
538
rb_erase(&group->node, &group->port->table);
sys/ofed/drivers/infiniband/core/ib_multicast.c
68
struct rb_root table;
sys/ofed/drivers/infiniband/core/ib_multicast.c
772
for (node = rb_first(&port->table); node; node = rb_next(node)) {
sys/ofed/drivers/infiniband/core/ib_multicast.c
834
port->table = RB_ROOT;
sys/ofed/include/rdma/rdmavt_mr.h
98
struct rvt_mregion __rcu **table;
sys/riscv/riscv/identcpu.c
481
const struct marchid_entry *table = NULL;
sys/riscv/riscv/identcpu.c
494
table = mvendor_ids[i].marchid_table;
sys/riscv/riscv/identcpu.c
505
table = global_marchids;
sys/riscv/riscv/identcpu.c
506
} else if (table == NULL)
sys/riscv/riscv/identcpu.c
509
for (i = 0; table[i].march_name != NULL; i++) {
sys/riscv/riscv/identcpu.c
510
if (marchid == table[i].march_id) {
sys/riscv/riscv/identcpu.c
511
desc->cpu_march_name = table[i].march_name;
sys/security/mac/mac_framework.h
143
int mac_ddb_command_register(struct db_command_table *table,
sys/security/mac/mac_kdb.c
61
mac_ddb_command_register(struct db_command_table *table, struct db_command *cmd)
sys/security/mac/mac_kdb.c
65
MAC_POLICY_CHECK_NOSLEEP(ddb_command_register, table, cmd);
sys/security/mac/mac_policy.h
182
typedef int (*mpo_ddb_command_register_t)(struct db_command_table *table,
sys/security/mac_ddb/mac_ddb.c
298
mac_ddb_command_register(struct db_command_table *table,
sys/security/mac_ddb/mac_ddb.c
307
if (table == &db_show_table) {
sys/security/mac_ddb/mac_ddb.c
317
} else if (table == &db_cmd_table) {
sys/security/mac_stub/mac_stub.c
343
stub_ddb_command_register(struct db_command_table *table,
sys/security/mac_test/mac_test.c
495
test_ddb_command_register(struct db_command_table *table,
sys/sys/module.h
100
const void *table; /* Pointer to pnp table */
sys/sys/module.h
185
.table = t, \
sys/teken/teken_wcwidth.h
20
bisearch(teken_char_t ucs, const struct interval *table, int max)
sys/teken/teken_wcwidth.h
25
if (ucs < table[0].first || ucs > table[max].last)
sys/teken/teken_wcwidth.h
29
if (ucs > table[mid].last)
sys/teken/teken_wcwidth.h
31
else if (ucs < table[mid].first)
sys/x86/cpufreq/est.c
1063
freq_info *table;
sys/x86/cpufreq/est.c
1075
table = NULL;
sys/x86/cpufreq/est.c
1085
table = malloc(count * sizeof(*table), M_DEVBUF, M_NOWAIT);
sys/x86/cpufreq/est.c
1086
if (table == NULL) {
sys/x86/cpufreq/est.c
1103
table[j].freq = sets[i].freq;
sys/x86/cpufreq/est.c
1104
table[j].volts = sets[i].volts;
sys/x86/cpufreq/est.c
1105
table[j].id16 = sets[i].spec[0];
sys/x86/cpufreq/est.c
1106
table[j].power = sets[i].power;
sys/x86/cpufreq/est.c
1114
*freqs = table;
sys/x86/cpufreq/est.c
1121
if (error && table)
sys/x86/cpufreq/est.c
1122
free(table, M_DEVBUF);
sys/x86/include/acpica_machdep.h
79
void acpi_unmap_table(void *table);
sys/x86/x86/ucode.c
202
const struct ucode_intel_extsig_table *table;
sys/x86/x86/ucode.c
230
table = (const struct ucode_intel_extsig_table *)
sys/x86/x86/ucode.c
233
table = NULL;
sys/x86/x86/ucode.c
240
} else if (table != NULL) {
sys/x86/x86/ucode.c
241
for (i = 0; i < table->signature_count; i++) {
sys/x86/x86/ucode.c
242
entry = &table->entries[i];
tests/sys/fs/fusefs/mockfs.cc
112
if (opcode >= nitems(table))
tests/sys/fs/fusefs/mockfs.cc
115
return (table[opcode]);
tests/sys/fs/fusefs/mockfs.cc
62
const char* table[] = {
tools/tools/drm/radeon/mkregtable/mkregtable.c
560
unsigned *table;
tools/tools/drm/radeon/mkregtable/mkregtable.c
576
static void table_offset_add(struct table *t, struct offset *offset)
tools/tools/drm/radeon/mkregtable/mkregtable.c
581
static void table_init(struct table *t)
tools/tools/drm/radeon/mkregtable/mkregtable.c
586
t->table = NULL;
tools/tools/drm/radeon/mkregtable/mkregtable.c
589
static void table_print(struct table *t)
tools/tools/drm/radeon/mkregtable/mkregtable.c
607
printf("0x%08X,", t->table[id++]);
tools/tools/drm/radeon/mkregtable/mkregtable.c
614
static int table_build(struct table *t)
tools/tools/drm/radeon/mkregtable/mkregtable.c
620
t->table = (unsigned *)malloc(sizeof(unsigned) * t->nentry);
tools/tools/drm/radeon/mkregtable/mkregtable.c
621
if (t->table == NULL)
tools/tools/drm/radeon/mkregtable/mkregtable.c
623
memset(t->table, 0xff, sizeof(unsigned) * t->nentry);
tools/tools/drm/radeon/mkregtable/mkregtable.c
628
t->table[i] ^= m;
tools/tools/drm/radeon/mkregtable/mkregtable.c
634
static int parser_auth(struct table *t, const char *filename)
tools/tools/drm/radeon/mkregtable/mkregtable.c
712
struct table t;
tools/tools/net80211/wesside/wesside/aircrack-ptw-lib.c
317
static int doComputation(PTW_attackstate * state, uint8_t * key, int keylen, PTW_tableentry table[][n], sorthelper * sh2, int * strongbytes, int keylimit) {
tools/tools/net80211/wesside/wesside/aircrack-ptw-lib.c
337
if (doRound(table, 0, fixat, fixvalue, choices, key, keylen, state, 0, strongbytes) == 1) {
tools/tools/net80211/wesside/wesside/aircrack-ptw-lib.c
373
PTW_tableentry (*table)[n] = alloca(sizeof(PTW_tableentry) * n * keylen);
tools/tools/net80211/wesside/wesside/aircrack-ptw-lib.c
374
if (table == NULL) {
tools/tools/net80211/wesside/wesside/aircrack-ptw-lib.c
378
memcpy(table, state->table, sizeof(PTW_tableentry) * n * keylen);
tools/tools/net80211/wesside/wesside/aircrack-ptw-lib.c
382
qsort(&table[i][0], n, sizeof(PTW_tableentry), &compare);
tools/tools/net80211/wesside/wesside/aircrack-ptw-lib.c
395
sh[i][j-1].distance = table[i][0].votes - table[i][j].votes;
tools/tools/net80211/wesside/wesside/aircrack-ptw-lib.c
396
sh[i][j-1].value = table[i][j].b;
tools/tools/net80211/wesside/wesside/aircrack-ptw-lib.c
403
if (doComputation(state, keybuf, keylen, table, (sorthelper *) sh, strongbytes, simple)) {
tools/tools/net80211/wesside/wesside/aircrack-ptw-lib.c
408
getdrv(state->table, keylen, normal, ausreisser);
tools/tools/net80211/wesside/wesside/aircrack-ptw-lib.c
415
if (doComputation(state, keybuf, keylen, table, (sorthelper *) sh, strongbytes, onestrong)) {
tools/tools/net80211/wesside/wesside/aircrack-ptw-lib.c
421
if (doComputation(state, keybuf, keylen, table, (sorthelper *) sh, strongbytes, twostrong)) {
tools/tools/net80211/wesside/wesside/aircrack-ptw-lib.c
448
state->table[i][buf[i]].votes++;
tools/tools/net80211/wesside/wesside/aircrack-ptw-lib.c
474
state->table[i][k].b = k;
tools/tools/net80211/wesside/wesside/aircrack-ptw-lib.h
76
PTW_tableentry table[PTW_KEYHSBYTES][PTW_n];
usr.bin/getaddrinfo/getaddrinfo.c
226
const char *const *table, size_t n)
usr.bin/getaddrinfo/getaddrinfo.c
248
if ((table[i] != NULL) && (strcmp(string, table[i]) == 0))
usr.bin/indent/lexi.c
130
static char const *table[] = {
usr.bin/indent/lexi.c
202
if (i >= nitems(table) || table[i] == NULL ||
usr.bin/indent/lexi.c
203
table[i][s - 'A'] == ' ') {
usr.bin/indent/lexi.c
204
s = table[0][s - 'A'];
usr.bin/indent/lexi.c
207
s = table[i][s - 'A'];
usr.bin/indent/lexi.c
591
table['-'] = table['+'];
usr.bin/indent/lexi.c
592
table['8'] = table['9'];
usr.bin/indent/lexi.c
593
table['2'] = table['3'] = table['4'] = table['5'] = table['6'] = table['7'];
usr.bin/indent/lexi.c
594
table['A'] = table['C'] = table['D'] = table['c'] = table['d'] = table['a'];
usr.bin/indent/lexi.c
595
table['B'] = table['b'];
usr.bin/indent/lexi.c
596
table['E'] = table['e'];
usr.bin/indent/lexi.c
597
table['U'] = table['u'];
usr.bin/indent/lexi.c
598
table['X'] = table['x'];
usr.bin/indent/lexi.c
599
table['P'] = table['p'];
usr.bin/indent/lexi.c
600
table['F'] = table['f'];
usr.bin/locate/locate/fastfind.c
153
u_char table[UCHAR_MAX + 1];
usr.bin/locate/locate/fastfind.c
188
table[c] = 0;
usr.bin/locate/locate/fastfind.c
190
table[TOLOWER(*patend)] = 1;
usr.bin/locate/locate/fastfind.c
191
table[toupper(*patend)] = 1;
usr.bin/locate/locate/fastfind.c
262
if (table[c])
usr.bin/locate/locate/fastfind.c
278
if (table[bigram1[c]] ||
usr.bin/locate/locate/fastfind.c
279
table[bigram2[c]])
usr.bin/login/login_fbtab.c
105
syslog(LOG_ERR, "%s: bad entry: %s", table, cp ? cp : "(null)");
usr.bin/login/login_fbtab.c
110
login_protect(table, cp, prot, uid, gid);
usr.bin/login/login_fbtab.c
120
login_protect(const char *table, char *pattern, int mask, uid_t uid, gid_t gid)
usr.bin/login/login_fbtab.c
132
syslog(LOG_ERR, "%s: chflags(%s): %m", table, path);
usr.bin/login/login_fbtab.c
134
syslog(LOG_ERR, "%s: chmod(%s): %m", table, path);
usr.bin/login/login_fbtab.c
136
syslog(LOG_ERR, "%s: chown(%s): %m", table, path);
usr.bin/login/login_fbtab.c
87
const char *table;
usr.bin/login/login_fbtab.c
89
if ((fp = fopen(table = _PATH_FBTAB, "r")) == NULL
usr.bin/login/login_fbtab.c
90
&& (fp = fopen(table = _PATH_LOGINDEVPERM, "r")) == NULL)
usr.bin/mail/util.c
584
member(char *realfield, struct ignoretab *table)
usr.bin/mail/util.c
588
for (igp = table->i_head[hash(realfield)]; igp != NULL; igp = igp->i_link)
usr.bin/mkcsmapper/yacc.y
254
table = (void *)malloc(table_size * dst_unit_bits / 8);
usr.bin/mkcsmapper/yacc.y
255
if (table == NULL) {
usr.bin/mkcsmapper/yacc.y
271
(*putfunc)(table, i, val);
usr.bin/mkcsmapper/yacc.y
387
_region_init(&data, table, table_size*dst_unit_bits/8);
usr.bin/mkcsmapper/yacc.y
593
(*putfunc)(table, ofs++, dst);
usr.bin/mkcsmapper/yacc.y
66
static void *table = NULL;
usr.bin/primes/primes.c
261
memcpy(table, &pattern[factor], pattern_size-factor);
usr.bin/primes/primes.c
265
memcpy(&table[fact_lim], pattern, pattern_size);
usr.bin/primes/primes.c
268
memcpy(&table[fact_lim], pattern, TABSIZE-fact_lim);
usr.bin/primes/primes.c
275
tab_lim = &table[TABSIZE]; /* sieve it all */
usr.bin/primes/primes.c
278
tab_lim = &table[(stop-start)/2]; /* partial sieve */
usr.bin/primes/primes.c
288
q = &table[(factor-mod)/2];
usr.bin/primes/primes.c
290
q = &table[mod ? factor-(mod/2) : 0];
usr.bin/primes/primes.c
305
for (q = table; q < tab_lim; ++q, start+=2) {
usr.bin/primes/primes.c
74
static char table[TABSIZE]; /* Eratosthenes sieve of odd numbers */
usr.bin/usbhidaction/usbhidaction.c
125
table = optarg;
usr.bin/usbhidaction/usbhidaction.c
142
hid_init(table);
usr.bin/usbhidaction/usbhidaction.c
88
const char *table = NULL;
usr.bin/usbhidctl/usbhid.c
447
char *table = 0;
usr.bin/usbhidctl/usbhid.c
473
table = optarg;
usr.bin/usbhidctl/usbhid.c
508
hid_init(table);
usr.sbin/acpi/acpidump/acpi.c
1226
acpi_walk_lpit(ACPI_TABLE_HEADER *table, void *first,
usr.sbin/acpi/acpidump/acpi.c
1233
end = (char *)table + table->Length;
usr.sbin/acpi/acpidump/acpi.c
294
acpi_walk_subtables(ACPI_TABLE_HEADER *table, void *first,
usr.sbin/acpi/acpidump/acpi.c
301
end = (char *)table + table->Length;
usr.sbin/acpi/acpidump/acpi.c
315
acpi_walk_nfit(ACPI_TABLE_HEADER *table, void *first,
usr.sbin/acpi/acpidump/acpi.c
322
end = (char *)table + table->Length;
usr.sbin/acpi/acpidump/acpi.c
91
static void acpi_walk_subtables(ACPI_TABLE_HEADER *table, void *first,
usr.sbin/acpi/acpidump/acpi.c
93
static void acpi_walk_nfit(ACPI_TABLE_HEADER *table, void *first,
usr.sbin/bhyve/acpi.c
380
struct basl_table *table;
usr.sbin/bhyve/acpi.c
384
BASL_EXEC(basl_table_create(&table, ctx, name, BASL_TABLE_ALIGNMENT));
usr.sbin/bhyve/acpi.c
385
BASL_EXEC(basl_table_append_bytes(table, addr, sb.st_size));
usr.sbin/bhyve/acpi.c
493
struct basl_table *table;
usr.sbin/bhyve/acpi.c
495
BASL_EXEC(basl_table_create(&table, ctx, ACPI_SIG_FACS,
usr.sbin/bhyve/acpi.c
502
BASL_EXEC(basl_table_append_bytes(table, &facs, sizeof(facs)));
usr.sbin/bhyve/acpi.c
511
struct basl_table *table;
usr.sbin/bhyve/acpi.c
513
BASL_EXEC(basl_table_create(&table, ctx, ACPI_SIG_FADT,
usr.sbin/bhyve/acpi.c
517
BASL_EXEC(basl_table_append_header(table, ACPI_SIG_FADT, 5, 1));
usr.sbin/bhyve/acpi.c
564
BASL_EXEC(basl_table_append_content(table, &fadt, sizeof(fadt)));
usr.sbin/bhyve/acpi.c
566
BASL_EXEC(basl_table_add_pointer(table, ACPI_SIG_FACS,
usr.sbin/bhyve/acpi.c
568
BASL_EXEC(basl_table_add_pointer(table, ACPI_SIG_DSDT,
usr.sbin/bhyve/acpi.c
570
BASL_EXEC(basl_table_add_pointer(table, ACPI_SIG_FACS,
usr.sbin/bhyve/acpi.c
572
BASL_EXEC(basl_table_add_pointer(table, ACPI_SIG_DSDT,
usr.sbin/bhyve/acpi.c
575
BASL_EXEC(basl_table_register_to_rsdt(table));
usr.sbin/bhyve/acpi.c
585
struct basl_table *table;
usr.sbin/bhyve/acpi.c
593
BASL_EXEC(basl_table_create(&table, ctx, ACPI_SIG_HPET,
usr.sbin/bhyve/acpi.c
597
BASL_EXEC(basl_table_append_header(table, ACPI_SIG_HPET, 1, 1));
usr.sbin/bhyve/acpi.c
602
BASL_EXEC(basl_table_append_content(table, &hpet, sizeof(hpet)));
usr.sbin/bhyve/acpi.c
604
BASL_EXEC(basl_table_register_to_rsdt(table));
usr.sbin/bhyve/acpi.c
618
struct basl_table *table;
usr.sbin/bhyve/acpi.c
620
BASL_EXEC(basl_table_create(&table, ctx, ACPI_SIG_MADT,
usr.sbin/bhyve/acpi.c
624
BASL_EXEC(basl_table_append_header(table, ACPI_SIG_MADT, 1, 1));
usr.sbin/bhyve/acpi.c
627
BASL_EXEC(basl_table_append_content(table, &madt, sizeof(madt)));
usr.sbin/bhyve/acpi.c
637
BASL_EXEC(basl_table_append_bytes(table, &madt_lapic,
usr.sbin/bhyve/acpi.c
647
basl_table_append_bytes(table, &madt_ioapic, sizeof(madt_ioapic)));
usr.sbin/bhyve/acpi.c
656
BASL_EXEC(basl_table_append_bytes(table, &madt_irq_override,
usr.sbin/bhyve/acpi.c
666
BASL_EXEC(basl_table_append_bytes(table, &madt_irq_override,
usr.sbin/bhyve/acpi.c
677
BASL_EXEC(basl_table_append_bytes(table, &madt_lapic_nmi,
usr.sbin/bhyve/acpi.c
680
BASL_EXEC(basl_table_register_to_rsdt(table));
usr.sbin/bhyve/acpi.c
690
struct basl_table *table;
usr.sbin/bhyve/acpi.c
692
BASL_EXEC(basl_table_create(&table, ctx, ACPI_SIG_MCFG,
usr.sbin/bhyve/acpi.c
696
BASL_EXEC(basl_table_append_header(table, ACPI_SIG_MCFG, 1, 1));
usr.sbin/bhyve/acpi.c
697
BASL_EXEC(basl_table_append_content(table, &mcfg, sizeof(mcfg)));
usr.sbin/bhyve/acpi.c
702
BASL_EXEC(basl_table_append_bytes(table, &mcfg_allocation,
usr.sbin/bhyve/acpi.c
705
BASL_EXEC(basl_table_register_to_rsdt(table));
usr.sbin/bhyve/acpi.c
714
struct basl_table *table;
usr.sbin/bhyve/acpi.c
716
BASL_EXEC(basl_table_create(&table, ctx, ACPI_RSDP_NAME,
usr.sbin/bhyve/acpi.c
728
BASL_EXEC(basl_table_append_bytes(table, &rsdp, sizeof(rsdp)));
usr.sbin/bhyve/acpi.c
730
BASL_EXEC(basl_table_add_checksum(table,
usr.sbin/bhyve/acpi.c
732
BASL_EXEC(basl_table_add_pointer(table, ACPI_SIG_RSDT,
usr.sbin/bhyve/acpi.c
735
BASL_EXEC(basl_table_add_length(table,
usr.sbin/bhyve/acpi.c
737
BASL_EXEC(basl_table_add_pointer(table, ACPI_SIG_XSDT,
usr.sbin/bhyve/acpi.c
740
BASL_EXEC(basl_table_add_checksum(table,
usr.sbin/bhyve/acpi.c
751
struct basl_table *table;
usr.sbin/bhyve/acpi.c
753
BASL_EXEC(basl_table_create(&table, ctx, ACPI_SIG_SPCR,
usr.sbin/bhyve/acpi.c
757
BASL_EXEC(basl_table_append_header(table, ACPI_SIG_SPCR, 1, 1));
usr.sbin/bhyve/acpi.c
768
BASL_EXEC(basl_table_append_content(table, &spcr, sizeof(spcr)));
usr.sbin/bhyve/acpi.c
770
BASL_EXEC(basl_table_register_to_rsdt(table));
usr.sbin/bhyve/acpi.c
783
struct basl_table *table;
usr.sbin/bhyve/acpi.c
795
BASL_EXEC(basl_table_create(&table, ctx, ACPI_SIG_SRAT,
usr.sbin/bhyve/acpi.c
797
BASL_EXEC(basl_table_append_header(table, ACPI_SIG_SRAT, 1, 1));
usr.sbin/bhyve/acpi.c
799
BASL_EXEC(basl_table_append_content(table, &srat, sizeof(srat)));
usr.sbin/bhyve/acpi.c
827
BASL_EXEC(basl_table_append_bytes(table, &srat_mem_affinity,
usr.sbin/bhyve/acpi.c
843
BASL_EXEC(basl_table_append_bytes(table, &srat_cpu_affinity,
usr.sbin/bhyve/acpi.c
847
BASL_EXEC(basl_table_register_to_rsdt(table));
usr.sbin/bhyve/basl.c
103
data = table->data;
usr.sbin/bhyve/basl.c
105
data = vm_map_gpa(table->ctx, BHYVE_ACPI_BASE + table->off,
usr.sbin/bhyve/basl.c
106
table->len);
usr.sbin/bhyve/basl.c
113
BHYVE_ACPI_BASE + table->off, mem ? "Memory" : "FwCfg");
usr.sbin/bhyve/basl.c
114
hexdump(data, table->len, NULL, 0);
usr.sbin/bhyve/basl.c
122
struct basl_table *table;
usr.sbin/bhyve/basl.c
124
STAILQ_FOREACH(table, &basl_tables, chain) {
usr.sbin/bhyve/basl.c
125
BASL_EXEC(basl_dump_table(table, mem));
usr.sbin/bhyve/basl.c
146
basl_finish_install_guest_tables(struct basl_table *const table, uint32_t *const off)
usr.sbin/bhyve/basl.c
150
table->off = roundup2(*off, table->alignment);
usr.sbin/bhyve/basl.c
151
*off = table->off + table->len;
usr.sbin/bhyve/basl.c
152
if (*off <= table->off) {
usr.sbin/bhyve/basl.c
154
table->len, table->off);
usr.sbin/bhyve/basl.c
160
qemu_fwcfg_add_file(table->fwcfg_name, table->len, table->data));
usr.sbin/bhyve/basl.c
161
BASL_EXEC(qemu_loader_alloc(basl_loader, table->fwcfg_name,
usr.sbin/bhyve/basl.c
162
table->alignment, QEMU_LOADER_ALLOC_HIGH));
usr.sbin/bhyve/basl.c
174
gva = vm_map_gpa(table->ctx, BHYVE_ACPI_BASE + table->off, table->len);
usr.sbin/bhyve/basl.c
177
(uint64_t)BHYVE_ACPI_BASE + table->off,
usr.sbin/bhyve/basl.c
178
(uint64_t)BHYVE_ACPI_BASE + table->off + table->len);
usr.sbin/bhyve/basl.c
181
memcpy(gva, table->data, table->len);
usr.sbin/bhyve/basl.c
187
basl_finish_patch_checksums(struct basl_table *const table)
usr.sbin/bhyve/basl.c
191
STAILQ_FOREACH(checksum, &table->checksums, chain) {
usr.sbin/bhyve/basl.c
199
len = table->len;
usr.sbin/bhyve/basl.c
202
assert(checksum->off < table->len);
usr.sbin/bhyve/basl.c
203
assert(checksum->start < table->len);
usr.sbin/bhyve/basl.c
204
assert(checksum->start + len <= table->len);
usr.sbin/bhyve/basl.c
208
table->fwcfg_name, checksum->off, checksum->start, len));
usr.sbin/bhyve/basl.c
220
gpa = BHYVE_ACPI_BASE + table->off + checksum->start;
usr.sbin/bhyve/basl.c
222
(gpa < BHYVE_ACPI_BASE + table->off)) {
usr.sbin/bhyve/basl.c
224
__func__, table->off, checksum->start);
usr.sbin/bhyve/basl.c
228
gva = vm_map_gpa(table->ctx, gpa, len);
usr.sbin/bhyve/basl.c
255
struct basl_table *table;
usr.sbin/bhyve/basl.c
257
STAILQ_FOREACH(table, &basl_tables, chain) {
usr.sbin/bhyve/basl.c
259
(const ACPI_TABLE_HEADER *)table->data;
usr.sbin/bhyve/basl.c
263
return (table);
usr.sbin/bhyve/basl.c
272
basl_finish_patch_pointers(struct basl_table *const table)
usr.sbin/bhyve/basl.c
276
STAILQ_FOREACH(pointer, &table->pointers, chain) {
usr.sbin/bhyve/basl.c
281
assert(pointer->off < table->len);
usr.sbin/bhyve/basl.c
282
assert(pointer->off + pointer->size <= table->len);
usr.sbin/bhyve/basl.c
293
qemu_loader_add_pointer(basl_loader, table->fwcfg_name,
usr.sbin/bhyve/basl.c
306
gpa = BHYVE_ACPI_BASE + table->off;
usr.sbin/bhyve/basl.c
309
__func__, table->off);
usr.sbin/bhyve/basl.c
313
gva = vm_map_gpa(table->ctx, gpa, table->len);
usr.sbin/bhyve/basl.c
316
__func__, gpa, gpa + table->len);
usr.sbin/bhyve/basl.c
329
basl_finish_set_length(struct basl_table *const table)
usr.sbin/bhyve/basl.c
333
STAILQ_FOREACH(length, &table->lengths, chain) {
usr.sbin/bhyve/basl.c
334
assert(length->off < table->len);
usr.sbin/bhyve/basl.c
335
assert(length->off + length->size <= table->len);
usr.sbin/bhyve/basl.c
337
basl_le_enc((uint8_t *)table->data + length->off, table->len,
usr.sbin/bhyve/basl.c
347
struct basl_table *table;
usr.sbin/bhyve/basl.c
369
STAILQ_FOREACH(table, &basl_tables, chain) {
usr.sbin/bhyve/basl.c
370
BASL_EXEC(basl_finish_set_length(table));
usr.sbin/bhyve/basl.c
371
BASL_EXEC(basl_finish_install_guest_tables(table, &off));
usr.sbin/bhyve/basl.c
373
STAILQ_FOREACH(table, &basl_tables, chain) {
usr.sbin/bhyve/basl.c
374
BASL_EXEC(basl_finish_patch_pointers(table));
usr.sbin/bhyve/basl.c
379
BASL_EXEC(basl_finish_patch_checksums(table));
usr.sbin/bhyve/basl.c
424
basl_table_add_checksum(struct basl_table *const table, const uint32_t off,
usr.sbin/bhyve/basl.c
429
assert(table != NULL);
usr.sbin/bhyve/basl.c
441
STAILQ_INSERT_TAIL(&table->checksums, checksum, chain);
usr.sbin/bhyve/basl.c
447
basl_table_add_length(struct basl_table *const table, const uint32_t off,
usr.sbin/bhyve/basl.c
452
assert(table != NULL);
usr.sbin/bhyve/basl.c
464
STAILQ_INSERT_TAIL(&table->lengths, length, chain);
usr.sbin/bhyve/basl.c
470
basl_table_add_pointer(struct basl_table *const table,
usr.sbin/bhyve/basl.c
476
assert(table != NULL);
usr.sbin/bhyve/basl.c
490
STAILQ_INSERT_TAIL(&table->pointers, pointer, chain);
usr.sbin/bhyve/basl.c
496
basl_table_append_bytes(struct basl_table *const table, const void *const bytes,
usr.sbin/bhyve/basl.c
501
assert(table != NULL);
usr.sbin/bhyve/basl.c
504
if (table->len + len <= table->len) {
usr.sbin/bhyve/basl.c
506
__func__, table->len, len);
usr.sbin/bhyve/basl.c
510
table->data = reallocf(table->data, table->len + len);
usr.sbin/bhyve/basl.c
511
if (table->data == NULL) {
usr.sbin/bhyve/basl.c
513
table->len + len);
usr.sbin/bhyve/basl.c
514
table->len = 0;
usr.sbin/bhyve/basl.c
518
end = (uint8_t *)table->data + table->len;
usr.sbin/bhyve/basl.c
519
table->len += len;
usr.sbin/bhyve/basl.c
527
basl_table_append_checksum(struct basl_table *const table, const uint32_t start,
usr.sbin/bhyve/basl.c
530
assert(table != NULL);
usr.sbin/bhyve/basl.c
532
BASL_EXEC(basl_table_add_checksum(table, table->len, start, len));
usr.sbin/bhyve/basl.c
533
BASL_EXEC(basl_table_append_int(table, 0, 1));
usr.sbin/bhyve/basl.c
539
basl_table_append_content(struct basl_table *table, void *data, uint32_t len)
usr.sbin/bhyve/basl.c
544
return (basl_table_append_bytes(table,
usr.sbin/bhyve/basl.c
550
basl_table_append_fwcfg(struct basl_table *const table,
usr.sbin/bhyve/basl.c
553
assert(table != NULL);
usr.sbin/bhyve/basl.c
559
BASL_EXEC(qemu_loader_add_pointer(basl_loader, table->fwcfg_name,
usr.sbin/bhyve/basl.c
560
fwcfg_name, table->len, size));
usr.sbin/bhyve/basl.c
561
BASL_EXEC(basl_table_append_int(table, 0, size));
usr.sbin/bhyve/basl.c
567
basl_table_append_gas(struct basl_table *const table, const uint8_t space_id,
usr.sbin/bhyve/basl.c
579
return (basl_table_append_bytes(table, &gas_le, sizeof(gas_le)));
usr.sbin/bhyve/basl.c
583
basl_table_append_header(struct basl_table *const table,
usr.sbin/bhyve/basl.c
591
assert(table != NULL);
usr.sbin/bhyve/basl.c
592
assert(table->len == 0);
usr.sbin/bhyve/basl.c
607
basl_table_append_bytes(table, &header_le, sizeof(header_le)));
usr.sbin/bhyve/basl.c
609
BASL_EXEC(basl_table_add_length(table,
usr.sbin/bhyve/basl.c
611
BASL_EXEC(basl_table_add_checksum(table,
usr.sbin/bhyve/basl.c
619
basl_table_append_int(struct basl_table *const table, const uint64_t val,
usr.sbin/bhyve/basl.c
627
return (basl_table_append_bytes(table, buf, size));
usr.sbin/bhyve/basl.c
631
basl_table_append_length(struct basl_table *const table, const uint8_t size)
usr.sbin/bhyve/basl.c
633
assert(table != NULL);
usr.sbin/bhyve/basl.c
634
assert(size <= sizeof(table->len));
usr.sbin/bhyve/basl.c
636
BASL_EXEC(basl_table_add_length(table, table->len, size));
usr.sbin/bhyve/basl.c
637
BASL_EXEC(basl_table_append_int(table, 0, size));
usr.sbin/bhyve/basl.c
643
basl_table_append_pointer(struct basl_table *const table,
usr.sbin/bhyve/basl.c
646
assert(table != NULL);
usr.sbin/bhyve/basl.c
649
BASL_EXEC(basl_table_add_pointer(table, src_signature, table->len, size));
usr.sbin/bhyve/basl.c
650
BASL_EXEC(basl_table_append_int(table, 0, size));
usr.sbin/bhyve/basl.c
656
basl_table_create(struct basl_table **const table, struct vmctx *ctx,
usr.sbin/bhyve/basl.c
661
assert(table != NULL);
usr.sbin/bhyve/basl.c
682
*table = new_table;
usr.sbin/bhyve/basl.c
688
basl_table_register_to_rsdt(struct basl_table *table)
usr.sbin/bhyve/basl.c
692
assert(table != NULL);
usr.sbin/bhyve/basl.c
694
header = (const ACPI_TABLE_HEADER *)table->data;
usr.sbin/bhyve/basl.c
97
basl_dump_table(const struct basl_table *const table, const bool mem)
usr.sbin/bhyve/basl.c
99
const ACPI_TABLE_HEADER *const header = table->data;
usr.sbin/bhyve/basl.h
101
int basl_table_register_to_rsdt(struct basl_table *table);
usr.sbin/bhyve/basl.h
71
int basl_table_add_checksum(struct basl_table *const table, const uint32_t off,
usr.sbin/bhyve/basl.h
73
int basl_table_add_length(struct basl_table *const table, const uint32_t off,
usr.sbin/bhyve/basl.h
75
int basl_table_add_pointer(struct basl_table *const table,
usr.sbin/bhyve/basl.h
78
int basl_table_append_bytes(struct basl_table *table, const void *bytes,
usr.sbin/bhyve/basl.h
80
int basl_table_append_checksum(struct basl_table *table, uint32_t start,
usr.sbin/bhyve/basl.h
83
int basl_table_append_content(struct basl_table *table, void *data,
usr.sbin/bhyve/basl.h
85
int basl_table_append_fwcfg(struct basl_table *table,
usr.sbin/bhyve/basl.h
88
int basl_table_append_gas(struct basl_table *table, uint8_t space_id,
usr.sbin/bhyve/basl.h
91
int basl_table_append_header(struct basl_table *table,
usr.sbin/bhyve/basl.h
94
int basl_table_append_int(struct basl_table *table, uint64_t val, uint8_t size);
usr.sbin/bhyve/basl.h
95
int basl_table_append_length(struct basl_table *table, uint8_t size);
usr.sbin/bhyve/basl.h
96
int basl_table_append_pointer(struct basl_table *table,
usr.sbin/bhyve/basl.h
98
int basl_table_create(struct basl_table **table, struct vmctx *ctx,
usr.sbin/bhyve/pci_emul.c
1238
pi->pi_msix.table = calloc(1, table_size);
usr.sbin/bhyve/pci_emul.c
1242
pi->pi_msix.table[i].vector_control |= PCIM_MSIX_VCTRL_MASK;
usr.sbin/bhyve/pci_emul.c
1964
mte = &pi->pi_msix.table[index];
usr.sbin/bhyve/pci_emul.c
2523
SNAPSHOT_VAR_OR_LEAVE(pi->pi_msix.table[i].addr,
usr.sbin/bhyve/pci_emul.c
2525
SNAPSHOT_VAR_OR_LEAVE(pi->pi_msix.table[i].msg_data,
usr.sbin/bhyve/pci_emul.c
2527
SNAPSHOT_VAR_OR_LEAVE(pi->pi_msix.table[i].vector_control,
usr.sbin/bhyve/pci_emul.c
443
dest = (char *)(pi->pi_msix.table + tab_index);
usr.sbin/bhyve/pci_emul.c
481
dest = (char *)(pi->pi_msix.table + tab_index);
usr.sbin/bhyve/pci_emul.c
502
if (pi->pi_msix.table != NULL)
usr.sbin/bhyve/pci_emul.c
512
if (pi->pi_msix.table != NULL)
usr.sbin/bhyve/pci_emul.h
156
struct msix_table_entry *table; /* allocated at runtime */
usr.sbin/bhyve/pci_passthru.c
1161
pi->pi_msix.table[i].addr,
usr.sbin/bhyve/pci_passthru.c
1162
pi->pi_msix.table[i].msg_data,
usr.sbin/bhyve/pci_passthru.c
1163
pi->pi_msix.table[i].vector_control);
usr.sbin/bhyve/pci_passthru.c
342
pi->pi_msix.table = calloc(1, table_size);
usr.sbin/bhyve/pci_passthru.c
346
pi->pi_msix.table[i].vector_control |=
usr.sbin/bhyve/pci_passthru.c
422
entry = &pi->pi_msix.table[index];
usr.sbin/bhyve/pci_passthru.c
494
entry = &pi->pi_msix.table[index];
usr.sbin/bhyve/tpm_intf_crb.c
590
struct basl_table *table;
usr.sbin/bhyve/tpm_intf_crb.c
592
BASL_EXEC(basl_table_create(&table, vm_ctx, ACPI_SIG_TPM2,
usr.sbin/bhyve/tpm_intf_crb.c
596
BASL_EXEC(basl_table_append_header(table, ACPI_SIG_TPM2, 4, 1));
usr.sbin/bhyve/tpm_intf_crb.c
598
BASL_EXEC(basl_table_append_int(table, 0, 2));
usr.sbin/bhyve/tpm_intf_crb.c
600
BASL_EXEC(basl_table_append_int(table, 0, 2));
usr.sbin/bhyve/tpm_intf_crb.c
603
basl_table_append_int(table, TPM_CRB_CONTROL_AREA_ADDRESS, 8));
usr.sbin/bhyve/tpm_intf_crb.c
605
BASL_EXEC(basl_table_append_int(table, 7, 4));
usr.sbin/bhyve/tpm_intf_crb.c
608
BASL_EXEC(basl_table_append_bytes(table, parameters, 12));
usr.sbin/bhyve/tpm_intf_crb.c
611
basl_table_append_int(table, TPM_CRB_LOG_AREA_MINIMUM_SIZE, 4));
usr.sbin/bhyve/tpm_intf_crb.c
614
basl_table_append_fwcfg(table, TPM_CRB_LOG_AREA_FWCFG_NAME, 1, 8));
usr.sbin/bhyve/tpm_intf_crb.c
616
BASL_EXEC(basl_table_register_to_rsdt(table));
usr.sbin/ctladm/ctladm.c
212
ctladm_optret getoption(struct ctladm_opts *table, char *arg, uint32_t *cmdnum,
usr.sbin/ctladm/ctladm.c
255
getoption(struct ctladm_opts *table, char *arg, uint32_t *cmdnum,
usr.sbin/ctladm/ctladm.c
261
for (opts = table; (opts != NULL) && (opts->optname != NULL);
usr.sbin/efitable/efitable.c
155
memcpy(&table.uuid, &efi_table_ops[efi_idx].guid, sizeof(struct uuid));
usr.sbin/efitable/efitable.c
156
if (ioctl(efi_fd, EFIIOC_GET_TABLE, &table) == -1)
usr.sbin/efitable/efitable.c
159
table.buf = malloc(table.table_len);
usr.sbin/efitable/efitable.c
160
table.buf_len = table.table_len;
usr.sbin/efitable/efitable.c
162
if (ioctl(efi_fd, EFIIOC_GET_TABLE, &table) == -1)
usr.sbin/efitable/efitable.c
165
efi_table_ops[efi_idx].parse(table.buf);
usr.sbin/efitable/efitable.c
68
struct efi_get_table_ioc table = {
usr.sbin/kldxref/kldxref.c
527
void *table;
usr.sbin/kldxref/kldxref.c
545
error = elf_read_relocated_data(ef, pnp->table, len, &table);
usr.sbin/kldxref/kldxref.c
555
walker = table;
usr.sbin/kldxref/kldxref.c
567
free(table);
usr.sbin/makefs/ffs/ffs_alloc.c
511
scanc(u_int size, const u_char *cp, const u_char table[], int mask)
usr.sbin/makefs/ffs/ffs_alloc.c
515
while (cp < end && (table[*cp] & mask) == 0)
usr.sbin/nscd/hashtable.h
101
#define HASHTABLE_GET_ENTRY(table, hash) \
usr.sbin/nscd/hashtable.h
102
(&((table)->entries[hash]))
usr.sbin/nscd/hashtable.h
107
#define HASHTABLE_FOREACH(table, var) \
usr.sbin/nscd/hashtable.h
108
for ((var) = &((table)->entries[0]); \
usr.sbin/nscd/hashtable.h
109
(var) < &((table)->entries[HASHTABLE_ENTRIES_COUNT(table)]);\
usr.sbin/nscd/hashtable.h
158
hashtable_index_t name##_CALCULATE_HASH(struct name *table, type *data) \
usr.sbin/nscd/hashtable.h
161
return HASH(data, table->entries_size); \
usr.sbin/nscd/hashtable.h
204
#define HASHTABLE_CALCULATE_HASH(name, table, data) \
usr.sbin/nscd/hashtable.h
205
(name##_CALCULATE_HASH((table), data))
usr.sbin/nscd/hashtable.h
66
#define HASHTABLE_ENTRIES_COUNT(table) \
usr.sbin/nscd/hashtable.h
67
((table)->entries_size)
usr.sbin/nscd/hashtable.h
73
#define HASHTABLE_INIT(table, type, field, _entries_size) \
usr.sbin/nscd/hashtable.h
76
(table)->entries = calloc(_entries_size, \
usr.sbin/nscd/hashtable.h
77
sizeof(*(table)->entries)); \
usr.sbin/nscd/hashtable.h
78
(table)->entries_size = (_entries_size); \
usr.sbin/nscd/hashtable.h
79
for (var = 0; var < HASHTABLE_ENTRIES_COUNT(table); ++var) {\
usr.sbin/nscd/hashtable.h
80
(table)->entries[var].field.capacity = \
usr.sbin/nscd/hashtable.h
82
(table)->entries[var].field.size = 0; \
usr.sbin/nscd/hashtable.h
83
(table)->entries[var].field.values = malloc( \
usr.sbin/nscd/hashtable.h
86
assert((table)->entries[var].field.values != NULL);\
usr.sbin/nscd/hashtable.h
93
#define HASHTABLE_DESTROY(table, field) \
usr.sbin/nscd/hashtable.h
96
for (var = 0; var < HASHTABLE_ENTRIES_COUNT(table); ++var) {\
usr.sbin/nscd/hashtable.h
97
free((table)->entries[var].field.values); \
usr.sbin/pciconf/err.c
112
print_bits(const char *header, struct bit_table *table, uint32_t mask)
usr.sbin/pciconf/err.c
117
for (; table->desc != NULL; table++)
usr.sbin/pciconf/err.c
118
if (mask & table->mask) {
usr.sbin/pciconf/err.c
124
printf("%s\n", table->desc);
usr.sbin/pciconf/err.c
125
mask &= ~table->mask;