/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | getsubopt.c | 44 getsubopt(char **optionsp, char * const *tokens, char **valuep) argument 68 for (i = 0; tokens[i] != NULL; i++) { 69 if ((optlen == strlen(tokens[i])) && 70 (strncmp(s, tokens[i], optlen) == 0))
|
/illumos-gate/usr/src/uts/common/ipp/meters/ |
H A D | tokenmt.c | 52 * tokens equal to committed burst & peak burst respectively initially. 53 * When a packet arrives, tokens in Tc or Tp are updated at the committed 55 * If there are enough tokens in Tc, the packet is Green, else if there are 56 * enough tokens in Tp, the packet is Yellow, else the packet is Red. In case 62 /* Updating tokens */ 238 uint64_t tokens; local 242 tokens = (cfg_parms->committed_rate * diff) / 246 * Add tokens at the committed rate to 251 if ((tokenmt_data->committed_tokens + tokens) > 253 tokens [all...] |
/illumos-gate/usr/src/cmd/bnu/ |
H A D | limits.c | 69 char *tokens[NUMFLDS]; /* fields found in LIMITS */ local 94 if (get_tokens(buf, tokens) == FAIL) 98 if (siteindep(tokens, service, limitval) == SUCCESS) 108 if (sitedep(tokens, limitval) == SUCCESS)
|
H A D | sysfiles.c | 83 static char *tokens[NTOKENS], **tokptr; variable 296 * tokenize() continues pulling tokens out of a buffer -- the 304 tokptr = tokens; 307 if (tokptr - tokens >= NTOKENS) 327 for (line = tokens; (line - tokens) < NTOKENS && *line; line++) {
|
/illumos-gate/usr/src/lib/libcpc/sparc/ |
H A D | event_ultra.c | 148 static char * const tokens[] = { variable 188 uint_t ntokens = sizeof (tokens) / sizeof (tokens[0]) - 1; 195 assert(strcmp(tokens[n], us3_keyvals[n].kv_token) == 0); 198 assert(strcmp(tokens[n], us2_keyvals[n].kv_token) == 0); 245 int idx = getsubopt(&opts, tokens, &value); 258 tokens[idx]); 267 tokens[idx]); 302 idx < sizeof (tokens) / sizeof (tokens[ [all...] |
/illumos-gate/usr/src/uts/common/os/ |
H A D | subr.c | 221 getsubopt(char **optionsp, char * const *tokens, char **valuep) argument 245 for (i = 0; tokens[i] != NULL; i++) { 246 if ((optlen == strlen(tokens[i])) && 247 (strncmp(s, tokens[i], optlen) == 0))
|
/illumos-gate/usr/src/lib/libnsl/dial/ |
H A D | sysfiles.c | 91 static char *tokens[NTOKENS], **tokptr; variable 319 * tokenize() continues pulling tokens out of a buffer -- the 328 tokptr = tokens; 331 if (tokptr - tokens >= NTOKENS) 351 for (line = tokens; (line - tokens) < NTOKENS && *line; line++) {
|
/illumos-gate/usr/src/stand/lib/fs/nfs/ |
H A D | mount.c | 496 getsubopt(char **optionsp, char * const *tokens, char **valuep) argument 520 for (i = 0; tokens[i] != NULL; i++) { 521 if ((optlen == strlen(tokens[i])) && 522 (strncmp(s, tokens[i], optlen) == 0))
|
/illumos-gate/usr/src/cmd/dumpadm/ |
H A D | dconf.c | 60 static const dc_token_t tokens[] = { variable 177 * Locate a matching token in the tokens[] table, 180 for (tokp = tokens; tokp->tok_name != NULL; tokp++) { 192 * If we hit the end of the tokens[] table, 267 for (tokp = tokens; tokp->tok_name != NULL; tokp++) {
|
/illumos-gate/usr/src/lib/libcpc/i386/ |
H A D | event_pentium.c | 214 static char * const tokens[] = { variable 352 uint_t ntokens = sizeof (tokens) / sizeof (tokens[0]) - 1; 359 assert(strcmp(tokens[n], p6_keyvals[n].kv_token) == 0); 362 assert(strcmp(tokens[n], p5_keyvals[n].kv_token) == 0); 409 int idx = getsubopt(&opts, tokens, &value); 422 tokens[idx]); 431 tokens[idx]); 466 idx < sizeof (tokens) / sizeof (tokens[ [all...] |
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/fcoei/ |
H A D | fcoei_lv.c | 368 * tokens = token array for each buffer. 369 * size = number of tokens 380 fcoei_ub_alloc(void * fca_handle, uint64_t tokens[], uint32_t size, argument 383 FCOEI_LOG(__FUNCTION__, "not: %p-%p-%x-%p-%x", fca_handle, tokens, 395 * tokens = token array for each buffer. 404 fcoei_ub_free(void * fca_handle, uint32_t count, uint64_t tokens[]) argument 406 FCOEI_EXT_LOG(__FUNCTION__, "not: %p-%x-%p", fca_handle, count, tokens); 417 * tokens = token array for each buffer. 427 fcoei_ub_release(void * fca_handle, uint32_t count, uint64_t tokens[]) argument 429 fc_unsol_buf_t *ub = *((fc_unsol_buf_t **)tokens); [all...] |
/illumos-gate/usr/src/cmd/picl/plugins/lib/picld_pluginutil/ |
H A D | picld_pluginutil.c | 96 static const char *tokens[] = { variable 193 * Get the token index from the tokens table 200 for (i = 0; i < sizeof (tokens)/ sizeof (char *); ++i) 201 if (strcasecmp(tokens[i], t) == 0) 237 /* check if more tokens */ 271 /* check if more tokens */ 331 /* check if more tokens */ 665 /* check if more tokens */ 798 /* check if more tokens */ 875 /* check if more tokens */ [all...] |
/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_conf.c | 256 } tokens[] = { local 283 for (tok = tokens; tok->tok_tag != 0; tok++) { 301 for (tok = tokens; tok->tok_tag != 0; tok++) { 547 * tokens are translated into a bitmask. 'cmp' should be set to point to an
|
/illumos-gate/usr/src/cmd/hal/hald/ |
H A D | util.c | 575 gchar **tokens; local 579 tokens = NULL; 584 tokens = g_strsplit_set (line, " \t:", 0); 585 for (i = 0, j = 0; tokens[i] != NULL; i++) { 586 if (strlen (tokens[i]) == 0) 589 strncpy (buf, tokens[i], sizeof (buf)); 597 if (tokens != NULL) 598 g_strfreev (tokens); 753 gchar **tokens; local 757 tokens [all...] |
H A D | device_info.c | 184 gchar **tokens = NULL; local 191 /* Split up path into ':' tokens */ 192 tokens = g_strsplit (path, ":", 64); 195 if (tokens == NULL || tokens[0] == NULL || tokens[1] == NULL) { 205 for (i = 0; tokens[i] != NULL; i++) { 209 /*HAL_INFO (("tokens[%d] = '%s'", i, tokens[i]));*/ 217 curtoken = tokens[ [all...] |
/illumos-gate/usr/src/uts/common/io/net80211/ |
H A D | net80211_ht.c | 1326 static int tokens = 0; /* tokens */ local 1347 dialogtoken = (tokens+1) % 63; /* algorithm */ 1368 tokens = dialogtoken; /* allocate token */
|
/illumos-gate/usr/src/uts/common/io/audio/drv/audioemu10k/dsp/ |
H A D | asm10k.c | 146 #define CHECK_COUNT(tokens, cnt, mincnt, maxcnt) \ 149 tokens[0], cnt - 1, mincnt - 1); \ 154 tokens[0], cnt - 1, maxcnt - 1); \ 169 getaline(FILE *input, char **tokens) argument 200 tokens[0] = s; 208 tokens[1] = s; 209 tokens[0][2] = 0; 210 tokens[2] = NULL; 212 return (strlen(tokens[1]) ? 2 : 1); 243 tokens[cn 326 compile_gpr(char **tokens, int cnt) argument 337 compile_rem(char **tokens, int cnt) argument 389 compile_const(char **tokens, int cnt) argument 404 compile_bool(char **tokens, int cnt) argument 436 compile_mono(char **tokens, int cnt) argument 468 compile_stereo(char **tokens, int cnt) argument 505 compile_input(char **tokens, int cnt) argument 520 compile_send(char **tokens, int cnt) argument 535 compile_output(char **tokens, int cnt) argument 550 compile_directive(char **tokens, int cnt) argument 605 compile_asm(char **tokens, int cnt) argument 960 char *tokens[10]; local [all...] |
/illumos-gate/usr/src/cmd/datadm/ |
H A D | datadm.c | 831 datadm_parse_line(char *line_buf, char *tokens[], int *token_count) argument 887 * and update the tokens array. 890 tokens[count] = start; 909 tokens[count] = start; 1006 char *tokens[DATADM_MAX_TOKENS]; local 1026 retval = datadm_parse_line(line_buf, tokens, &token_count); 1050 (tokens[i], (void *)sp_entry); 1056 sp_conf, line_count, tokens[i - 1]); 1075 "# of tokens: %d, expected %d\n"), sp_conf, 1099 char *tokens[DATADM_MAX_TOKEN local [all...] |
/illumos-gate/usr/src/uts/sun4v/os/ |
H A D | fillsysinfo.c | 78 static unsigned long names2bits(char *tokens, size_t tokenslen, 692 * tokens - is a buffer of [NUL-terminated] strings. 702 * Returns a bit-vector corresponding to the specified tokens. 706 names2bits(char *tokens, size_t tokenslen, char *bit_formatter, char *warning) argument 715 cur = tokens;
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ |
H A D | ipseckey.c | 467 } tokens[] = { variable in typeref:struct:toktable 574 for (tp = tokens; tp->string != NULL; tp++) 3297 for (i = 0; tokens[i].string != NULL; i++) { 3300 (void) printf(" %-15.15s", tokens[i].string);
|
/illumos-gate/usr/src/uts/common/io/fibre-channel/ulp/ |
H A D | fcip.c | 4853 uint64_t *tokens = fptr->fcip_ub_tokens; local 4858 tokens); 4859 kmem_free(tokens, tok_buf_size); 5030 uint64_t *tokens = fptr->fcip_ub_tokens; local 5044 fptr->fcip_ub_nbufs, tokens); 5047 kmem_free(tokens, (sizeof (*tokens) * fcip_ub_nbufs));
|
/illumos-gate/usr/src/uts/common/io/fibre-channel/impl/ |
H A D | fctl.c | 1548 uint32_t type, uint64_t *tokens) 1553 tokens, size, count, type)); 1558 fc_ulp_ubfree(opaque_t port_handle, uint32_t count, uint64_t *tokens) argument 1563 count, tokens)); 1568 fc_ulp_ubrelease(opaque_t port_handle, uint32_t count, uint64_t *tokens) argument 1573 count, tokens)); 1547 fc_ulp_uballoc(opaque_t port_handle, uint32_t *count, uint32_t size, uint32_t type, uint64_t *tokens) argument
|
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/emlxs/ |
H A D | emlxs_solaris.c | 2802 emlxs_fca_ub_alloc(opaque_t fca_port_handle, uint64_t tokens[], uint32_t size, argument 2820 if (tokens && count) { 2821 bzero(tokens, (sizeof (uint64_t) * (*count))); 2846 if (tokens == NULL) { 2854 bzero(tokens, (sizeof (uint64_t) * (*count))); 2979 tokens[i] = (uint64_t)((unsigned long)ubp); 3027 for (i = 0; tokens[i] != NULL; i++) { 3029 ubp = (fc_unsol_buf_t *)((unsigned long)tokens[i]); 3042 tokens[i] = 0; 3130 uint64_t tokens[]) 3129 emlxs_fca_ub_release(opaque_t fca_port_handle, uint32_t count, uint64_t tokens[]) argument 3245 emlxs_fca_ub_free(opaque_t fca_port_handle, uint32_t count, uint64_t tokens[]) argument [all...] |
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlc/ |
H A D | ql_api.c | 3224 * tokens = token array for each buffer. 3241 ql_ub_alloc(opaque_t fca_handle, uint64_t tokens[], uint32_t size, argument 3377 tokens[index] = ub_array_index; 3469 * tokens = token array for each buffer. 3481 ql_ub_free(opaque_t fca_handle, uint32_t count, uint64_t tokens[]) argument 3501 /* Check all returned tokens. */ 3506 if ((ub_array_index = tokens[index]) >= QL_UB_LIMIT) { 3570 * tokens = token array for each buffer. 3582 ql_ub_release(opaque_t fca_handle, uint32_t count, uint64_t tokens[]) argument 3604 /* Check all returned tokens [all...] |