/freebsd-current/contrib/ntp/libparse/ |
H A D | trim_info.c | 43 cmd_info_t *tbl 48 for (i = 0; tbl[i].cmd != 0xFF; i++) 50 if (tbl[i].cmd == cmd) 51 return &tbl[i];
|
/freebsd-current/contrib/flex/src/ |
H A D | tables_shared.c | 56 * @param tbl the table 59 yyskel_static flex_int32_t yytbl_calc_total_len (const struct yytbl_data *tbl) 64 n = tbl->td_lolen; 65 if (tbl->td_hilen > 0) 66 n *= tbl->td_hilen; 68 if (tbl->td_id == YYTD_ID_TRANSITION) 58 yytbl_calc_total_len(const struct yytbl_data *tbl) argument
|
H A D | tables.c | 60 static flex_int32_t yytbl_data_geti (const struct yytbl_data *tbl, int i); 62 static flex_int32_t yytbl_data_getijk (const struct yytbl_data *tbl, int i, 338 * @param tbl data table 344 static flex_int32_t yytbl_data_getijk (const struct yytbl_data *tbl, int i, 350 lo = tbl->td_lolen; 352 switch (YYTDFLAGS2BYTES (tbl->td_flags)) { 354 return ((flex_int8_t *) (tbl->td_data))[(i * lo + j) * (k + 1) + 357 return ((flex_int16_t *) (tbl->td_data))[(i * lo + j) * (k + 361 return ((flex_int32_t *) (tbl->td_data))[(i * lo + j) * (k + 376 * @param tbl dat 379 yytbl_data_geti(const struct yytbl_data *tbl, int i) argument 403 yytbl_data_seti(const struct yytbl_data *tbl, int i, flex_int32_t newval) argument 428 min_int_size(struct yytbl_data *tbl) argument 461 yytbl_data_compress(struct yytbl_data *tbl) argument [all...] |
H A D | gen.c | 107 struct yytbl_data *tbl; local 109 tbl = calloc(1, sizeof (struct yytbl_data)); 110 yytbl_data_init (tbl, YYTD_ID_RULE_CAN_MATCH_EOL); 111 tbl->td_flags = YYTD_DATA8; 112 tbl->td_lolen = (flex_uint32_t) (num_rules + 1); 113 tbl->td_data = tdata = 114 calloc(tbl->td_lolen, sizeof (flex_int8_t)); 122 return tbl; 207 struct yytbl_data *tbl = 0; local 216 tbl 308 struct yytbl_data *tbl = 0; local 439 struct yytbl_data *tbl = 0; local 649 struct yytbl_data *tbl; local 1246 struct yytbl_data *tbl; local 1603 struct yytbl_data *tbl; local 1632 struct yytbl_data *tbl; local 1660 struct yytbl_data *tbl; local [all...] |
H A D | tables.h | 70 int yytbl_data_init (struct yytbl_data *tbl, enum yytbl_id id); 75 void yytbl_data_compress (struct yytbl_data *tbl);
|
/freebsd-current/contrib/mandoc/ |
H A D | tbl.c | 1 /* $Id: tbl.c,v 1.46 2018/12/14 06:33:14 schwarze Exp $ */ 30 #include "tbl.h" 37 tbl_read(struct tbl_node *tbl, int ln, const char *p, int pos) argument 48 if (tbl->part == TBL_PART_OPTS) { 49 tbl->part = TBL_PART_LAYOUT; 69 tbl_option(tbl, ln, p, &pos); 77 switch (tbl->part) { 79 tbl_layout(tbl, ln, p, pos); 82 tbl_cdata(tbl, ln, p, pos); 85 tbl_data(tbl, l 93 struct tbl_node *tbl; local 107 tbl_free(struct tbl_node *tbl) argument 143 tbl_restart(int line, int pos, struct tbl_node *tbl) argument 154 tbl_span(struct tbl_node *tbl) argument 166 tbl_end(struct tbl_node *tbl, int still_open) argument [all...] |
H A D | tbl_layout.c | 32 #include "tbl.h" 65 mods(struct tbl_node *tbl, struct tbl_cell *cp, argument 207 cell(struct tbl_node *tbl, struct tbl_row *rp, argument 255 } else if (c == TBL_CELL_DOWN && rp == tbl->first_row) 262 mods(tbl, cell_alloc(tbl, rp, c), ln, p, pos); 266 tbl_layout(struct tbl_node *tbl, int ln, const char *p, int pos) argument 286 tbl->part = TBL_PART_DATA; 293 if (tbl->first_row == NULL) { 294 tbl 356 cell_alloc(struct tbl_node *tbl, struct tbl_row *rp, enum tbl_cellt pos) argument [all...] |
H A D | tbl_data.c | 32 #include "tbl.h" 43 getdata(struct tbl_node *tbl, struct tbl_span *dp, argument 59 while (*ccp != '\0' && *ccp != tbl->opts.tab) 168 tbl->part = TBL_PART_CDATA; 197 tbl_cdata(struct tbl_node *tbl, int ln, const char *p, int pos) argument 202 dat = tbl->last_span->last; 206 if (tbl->opts.opts & TBL_OPT_NOSPACE) 209 if (p[pos] == tbl->opts.tab) { 210 tbl->part = TBL_PART_DATA; 213 getdata(tbl, tb 240 newspan(struct tbl_node *tbl, int line, struct tbl_row *rp) argument 261 tbl_data(struct tbl_node *tbl, int ln, const char *p, int pos) argument [all...] |
H A D | out.c | 33 #include "tbl.h" 113 * all rows and cells in the table. The function pointers in "tbl" are 117 tblcalc(struct rofftbl *tbl, const struct tbl_span *sp_first, argument 135 assert(tbl->cols == NULL); 136 tbl->cols = mandoc_calloc((size_t)sp_first->opts->cols, 155 tbl->cols[++maxcol].spacing = SIZE_MAX; 156 col = tbl->cols + icol; 168 (*tbl->sulen)(&su, tbl->arg); 181 width = tblcalc_data(tbl, 407 tblcalc_data(struct rofftbl *tbl, struct roffcol *col, const struct tbl_opts *opts, const struct tbl_dat *dp, size_t mw) argument 436 tblcalc_literal(struct rofftbl *tbl, struct roffcol *col, const struct tbl_dat *dp, size_t mw) argument 473 tblcalc_number(struct rofftbl *tbl, struct roffcol *col, const struct tbl_opts *opts, const struct tbl_dat *dp) argument [all...] |
/freebsd-current/sys/libkern/ |
H A D | strcspn.c | 46 u_long tbl[(UCHAR_MAX + 1) / LONG_BIT]; local 53 tbl[0] = 1; 54 tbl[3] = tbl[2] = tbl[1] = 0; 56 for (tbl[0] = idx = 1; idx < sizeof(tbl) / sizeof(tbl[0]); idx++) 57 tbl[idx] = 0; 62 tbl[id [all...] |
H A D | strspn.c | 46 u_long tbl[(UCHAR_MAX + 1) / LONG_BIT]; local 53 tbl[3] = tbl[2] = tbl[1] = tbl[0] = 0; 55 for (idx = 0; idx < sizeof(tbl) / sizeof(tbl[0]); idx++) 56 tbl[idx] = 0; 61 tbl[idx] |= bit; 67 if ((tbl[id [all...] |
/freebsd-current/lib/libc/string/ |
H A D | strcspn.c | 45 u_long tbl[(UCHAR_MAX + 1) / LONG_BIT]; local 52 tbl[0] = 1; 53 tbl[3] = tbl[2] = tbl[1] = 0; 55 for (tbl[0] = idx = 1; idx < sizeof(tbl) / sizeof(tbl[0]); idx++) 56 tbl[idx] = 0; 61 tbl[id [all...] |
H A D | strspn.c | 45 u_long tbl[(UCHAR_MAX + 1) / LONG_BIT]; local 52 tbl[3] = tbl[2] = tbl[1] = tbl[0] = 0; 54 for (idx = 0; idx < sizeof(tbl) / sizeof(tbl[0]); idx++) 55 tbl[idx] = 0; 60 tbl[idx] |= bit; 66 if ((tbl[id [all...] |
/freebsd-current/usr.bin/fortune/unstr/ |
H A D | unstr.c | 68 static STRFILE tbl; /* description table */ local 82 if (fread((char *)&tbl, sizeof(tbl), 1, Dataf) != 1) { 88 tbl.str_version = be32toh(tbl.str_version); 89 tbl.str_numstr = be32toh(tbl.str_numstr); 90 tbl.str_longlen = be32toh(tbl.str_longlen); 91 tbl 103 order_unstr(STRFILE *tbl) argument [all...] |
/freebsd-current/usr.sbin/bhyve/amd64/ |
H A D | mptbl.h | 33 void mptable_add_oemtbl(void *tbl, int tblsz);
|
/freebsd-current/crypto/openssl/crypto/asn1/ |
H A D | t_bitst.c | 16 BIT_STRING_BITNAME *tbl, int indent) 21 for (bnam = tbl; bnam->lname; bnam++) { 34 BIT_STRING_BITNAME *tbl) 37 bitnum = ASN1_BIT_STRING_num_asc(name, tbl); 47 int ASN1_BIT_STRING_num_asc(const char *name, BIT_STRING_BITNAME *tbl) argument 50 for (bnam = tbl; bnam->lname; bnam++) { 15 ASN1_BIT_STRING_name_print(BIO *out, ASN1_BIT_STRING *bs, BIT_STRING_BITNAME *tbl, int indent) argument 33 ASN1_BIT_STRING_set_asc(ASN1_BIT_STRING *bs, const char *name, int value, BIT_STRING_BITNAME *tbl) argument
|
/freebsd-current/contrib/libucl/uthash/ |
H A D | uthash.h | 81 #define uthash_noexpand_fyi(tbl) /* can be defined to log noexpand */ 84 #define uthash_expand_fyi(tbl) /* can be defined to log expands */ 93 #define ELMT_FROM_HH(tbl,hhp) ((void*)(((char*)(hhp)) - ((tbl)->hho))) 100 HASH_FCN(keyptr,keylen, (head)->hh.tbl->num_buckets, _hf_hashv, _hf_bkt); \ 101 if (HASH_BLOOM_TEST((head)->hh.tbl, _hf_hashv)) { \ 102 HASH_FIND_IN_BKT((head)->hh.tbl, hh, (head)->hh.tbl->buckets[ _hf_bkt ], \ 111 #define HASH_BLOOM_MAKE(tbl) \ 113 (tbl) 710 struct UT_hash_table *tbl; member in struct:UT_hash_handle [all...] |
/freebsd-current/contrib/elftoolchain/common/ |
H A D | uthash.h | 82 #define uthash_noexpand_fyi(tbl) /* can be defined to log noexpand */ 85 #define uthash_expand_fyi(tbl) /* can be defined to log expands */ 94 #define ELMT_FROM_HH(tbl,hhp) ((void*)(((char*)(hhp)) - ((tbl)->hho))) 101 HASH_FCN(keyptr,keylen, (head)->hh.tbl->num_buckets, _hf_hashv, _hf_bkt); \ 102 if (HASH_BLOOM_TEST((head)->hh.tbl, _hf_hashv)) { \ 103 HASH_FIND_IN_BKT((head)->hh.tbl, hh, (head)->hh.tbl->buckets[ _hf_bkt ], \ 112 #define HASH_BLOOM_MAKE(tbl) \ 114 (tbl) 909 struct UT_hash_table *tbl; member in struct:UT_hash_handle [all...] |
/freebsd-current/sys/opencrypto/ |
H A D | gfmult.c | 61 struct gf128 tbl[16]; local 64 tbl[0] = MAKE_GF128(0, 0); 65 tbl[1] = h; 68 tbl[i] = gf128_mulalpha(tbl[i / 2]); 69 tbl[i + 1] = gf128_add(tbl[i], h); 73 t->a[nib_rev[i]] = tbl[i].v[0] >> 32; 74 t->b[nib_rev[i]] = tbl[i].v[0]; 75 t->c[nib_rev[i]] = tbl[ 105 readrow(struct gf128table *tbl, unsigned bits) argument 135 gfmultword(uint64_t word, struct gf128 x, struct gf128table *tbl) argument 172 gfmultword4(uint64_t worda, uint64_t wordb, uint64_t wordc, uint64_t wordd, struct gf128 x, struct gf128table4 *tbl) argument 216 gf128_mul(struct gf128 v, struct gf128table *tbl) argument 233 gf128_mul4(struct gf128 a, struct gf128 b, struct gf128 c, struct gf128 d, struct gf128table4 *tbl) argument 256 gf128_mul4b(struct gf128 r, const uint8_t *v, struct gf128table4 *tbl) argument [all...] |
/freebsd-current/sbin/pfctl/ |
H A D | pfctl_radix.c | 59 pfr_report_error(struct pfr_table *tbl, struct pfioc_table *io, argument 73 err, tbl->pfrt_name); 93 pfr_add_tables(struct pfr_table *tbl, int size, int *nadd, int flags) argument 97 if (size < 0 || (size && tbl == NULL)) { 103 io.pfrio_buffer = tbl; 104 io.pfrio_esize = sizeof(*tbl); 107 pfr_report_error(tbl, &io, "add table"); 116 pfr_del_tables(struct pfr_table *tbl, int size, int *ndel, int flags) argument 120 if (size < 0 || (size && tbl == NULL)) { 126 io.pfrio_buffer = tbl; 139 pfr_get_tables(struct pfr_table *filter, struct pfr_table *tbl, int *size, int flags) argument 164 pfr_get_tstats(struct pfr_table *filter, struct pfr_tstats *tbl, int *size, int flags) argument 189 pfr_clr_addrs(struct pfr_table *tbl, int *ndel, int flags) argument 208 pfr_add_addrs(struct pfr_table *tbl, struct pfr_addr *addr, int size, int *nadd, int flags) argument 222 pfr_del_addrs(struct pfr_table *tbl, struct pfr_addr *addr, int size, int *ndel, int flags) argument 236 pfr_set_addrs(struct pfr_table *tbl, struct pfr_addr *addr, int size, int *size2, int *nadd, int *ndel, int *nchange, int flags) argument 251 pfr_get_addrs(struct pfr_table *tbl, struct pfr_addr *addr, int *size, int flags) argument 265 pfr_get_astats(struct pfr_table *tbl, struct pfr_astats *addr, int *size, int flags) argument 290 pfr_clr_tstats(struct pfr_table *tbl, int size, int *nzero, int flags) argument 313 pfr_tst_addrs(struct pfr_table *tbl, struct pfr_addr *addr, int size, int *nmatch, int flags) argument 338 pfr_ina_define(struct pfr_table *tbl, struct pfr_addr *addr, int size, int *nadd, int *naddr, int ticket, int flags) argument [all...] |
/freebsd-current/sys/dev/qcom_clk/ |
H A D | qcom_clk_freqtbl.c | 40 qcom_clk_freq_tbl_lookup(const struct qcom_clk_freq_tbl *tbl, uint64_t freq) argument 44 if (tbl == NULL) 47 for (t = tbl; t->freq !=0; t++) {
|
H A D | qcom_clk_freqtbl.h | 40 const struct qcom_clk_freq_tbl *tbl, uint64_t freq);
|
/freebsd-current/usr.bin/fortune/strfile/ |
H A D | strfile.h | 35 #define STR_ENDSTRING(line,tbl) \ 36 (((unsigned char)(line)[0]) == (tbl).str_delim && (line)[1] == '\n')
|
/freebsd-current/contrib/bmake/ |
H A D | hash.h | 107 HashTable tbl; member in struct:HashSet 148 HashTable_Init(&set->tbl); 154 HashTable_Done(&set->tbl); 162 (void)HashTable_CreateEntry(&set->tbl, key, &isNew); 169 return HashTable_FindEntry(&set->tbl, key) != NULL; 175 HashIter_Init(hi, &set->tbl);
|
/freebsd-current/stand/efi/libefi/ |
H A D | libefi.c | 38 efi_get_table(EFI_GUID *tbl) argument 45 if (!memcmp(id, tbl, sizeof(EFI_GUID)))
|