| /f-stack/freebsd/kern/ |
| H A D | kern_loginclass.c | 100 free(lc, M_LOGINCLASS); in loginclass_free() 111 struct loginclass *lc; in loginclass_lookup() local 116 loginclass_hold(lc); in loginclass_lookup() 120 return (lc); in loginclass_lookup() 140 loginclass_hold(lc); in loginclass_find() 141 return (lc); in loginclass_find() 147 if (lc != NULL) in loginclass_find() 148 return (lc); in loginclass_find() 164 lc = new_lc; in loginclass_find() 171 return (lc); in loginclass_find() [all …]
|
| H A D | kern_ctf.c | 70 bzero(lc, sizeof(*lc)); 84 lc->ctftab = ef->ctftab; 85 lc->ctfcnt = ef->ctfcnt; 86 lc->symtab = ef->ddbsymtab; 87 lc->strtab = ef->ddbstrtab; 88 lc->strcnt = ef->ddbstrcnt; 89 lc->nsym = ef->ddbsymcnt; 92 lc->typlenp = &ef->typlen; 285 lc->ctftab = ef->ctftab; 286 lc->ctfcnt = ef->ctfcnt; [all …]
|
| H A D | subr_lock.c | 127 struct lock_delay_config *lc = la->config; in lock_delay() local 131 if (__predict_false(la->delay > lc->max)) in lock_delay() 132 la->delay = lc->max; in lock_delay() 141 la->delay = lc->base; in lock_delay() 157 lock_delay_default_init(struct lock_delay_config *lc) in lock_delay_default_init() argument 160 lc->base = 1; in lock_delay_default_init() 161 lc->max = lock_roundup_2(mp_ncpus) * 256; in lock_delay_default_init() 162 if (lc->max > 32678) in lock_delay_default_init() 163 lc->max = 32678; in lock_delay_default_init()
|
| /f-stack/freebsd/netinet/ |
| H A D | tcp_lro.c | 167 lc->ifp = ifp; in tcp_lro_init_args() 176 lc->lro_hash = phashinit_flags(elements, M_LRO, &lc->lro_hashsz, in tcp_lro_init_args() 179 memset(lc, 0, sizeof(*lc)); in tcp_lro_init_args() 192 memset(lc, 0, sizeof(*lc)); in tcp_lro_init_args() 569 (*lc->ifp->if_input)(lc->ifp, le->m_head); in tcp_flush_out_le() 1092 tcp_lro_sort(lc->lro_mbuf_data, lc->lro_mbuf_count); in tcp_lro_flush_all() 1116 (*lc->ifp->if_input)(lc->ifp, mb); in tcp_lro_flush_all() 1279 bucket = &lc->lro_hash[hash % lc->lro_hashsz]; in tcp_lro_rx2() 1428 (*lc->ifp->if_input) (lc->ifp, mb); in tcp_lro_queue_mbuf() 1441 lc->lro_mbuf_data[lc->lro_mbuf_count].seq = in tcp_lro_queue_mbuf() [all …]
|
| /f-stack/tools/libutil/ |
| H A D | login_cap.c | 155 if (lc) { in login_close() 158 free(lc->lc_cap); in login_close() 159 free(lc); in login_close() 231 lc->lc_cap = lc->lc_class = lc->lc_style = NULL; in login_getclassbyname() 264 return lc; in login_getclassbyname() 287 free(lc); in login_getclassbyname() 542 if (lc == NULL || lc->lc_cap == NULL) in login_getcaptime() 632 if (lc == NULL || lc->lc_cap == NULL) in login_getcapnum() 684 if (lc == NULL || lc->lc_cap == NULL) in login_getcapsize() 753 if (lc == NULL || lc->lc_cap == NULL) in login_getcapbool() [all …]
|
| H A D | login_class.c | 79 if (lc == NULL) in setclassresources() 367 login_cap_t *lc; in setclasscontext() local 374 rc = lc ? setusercontext(lc, NULL, 0, flags) : -1; in setclasscontext() 375 login_close(lc); in setclasscontext() 389 if (lc) { in setlogincontext() 434 if (lc == NULL) { in setusercontext() 457 lc ? lc->lc_class : LOGIN_DEFCLASS); in setusercontext() 465 lc ? lc->lc_class : LOGIN_DEFCLASS); in setusercontext() 470 lc ? lc->lc_class : LOGIN_DEFCLASS); in setusercontext() 522 if (lc != NULL && lc->lc_class != NULL && (flags & LOGIN_SETLOGINCLASS)) { in setusercontext() [all …]
|
| H A D | login_ok.c | 91 login_timelist(login_cap_t *lc, char const *cap, int *ltno, in login_timelist() argument 98 if ((tl = login_getcaplist(lc, cap, NULL)) != NULL) { in login_timelist() 133 if (lc != NULL && tty != NULL && *tty != '\0') { in login_ttyok() 140 ttl = login_getcaplist(lc, allowcap, NULL); in login_ttyok() 146 ttl = login_getcaplist(lc, denycap, NULL); in login_ttyok() 163 auth_ttyok(login_cap_t *lc, const char * tty) in auth_ttyok() argument 182 if (lc != NULL && in login_hostok() 186 hl = login_getcaplist(lc, allowcap, NULL); in login_hostok() 191 hl = login_getcaplist(lc, denycap, NULL); in login_hostok() 219 auth_timeok(login_cap_t *lc, time_t t) in auth_timeok() argument [all …]
|
| H A D | login_auth.c | 66 auth_checknologin(login_cap_t *lc) in auth_checknologin() argument 71 if (login_getcapbool(lc, "ignorenologin", 0)) in auth_checknologin() 75 if ((file = login_getcapstr(lc, "nologin", "", NULL)) == NULL) in auth_checknologin()
|
| H A D | login_crypt.c | 40 login_setcryptfmt(login_cap_t *lc, const char *def, const char *error) { in login_setcryptfmt() argument 43 cipher = login_getcapstr(lc, "passwd_format", def, NULL); in login_setcryptfmt()
|
| /f-stack/dpdk/app/test/ |
| H A D | test_rwlock.c | 216 try_read(uint32_t lc) in try_read() argument 230 __func__, lc); in try_read() 297 uint32_t i, lc; in try_read_lcore() local 301 lc = rte_lcore_id(); in try_read_lcore() 331 uint32_t i, lc; in try_write_lcore() local 379 lc, in print_try_lcore_stats() 434 print_try_lcore_stats(try_lcore_data + lc, lc); in process_try_lcore_stats() 488 uint32_t lc, mlc; in try_rwlock_test_rde_wro() local 495 if (lc != mlc) { in try_rwlock_test_rde_wro() 498 NULL, lc); in try_rwlock_test_rde_wro() [all …]
|
| H A D | test_ring_stress_impl.h | 104 if (lc == UINT32_MAX) in lcore_stat_dump() 178 fname, lc, opname, exp, res); in check_ring_op() 188 uint32_t lc, n, num; in test_worker() local 195 lc = rte_lcore_id(); in test_worker() 198 fill_ring_elm(&loc_elm, lc); in test_worker() 334 uint32_t lc, mc; in test_mt1() local 352 RTE_LCORE_FOREACH_WORKER(lc) { in test_mt1() 353 arg[lc].rng = r; in test_mt1() 354 arg[lc].stats = init_stat; in test_mt1() 355 rte_eal_remote_launch(test, &arg[lc], lc); in test_mt1() [all …]
|
| H A D | test_barrier.c | 70 uint32_t lc; /* given lcore id */ member 135 uint32_t lc, ln; in plock_test1_lcore() local 140 lc = rte_lcore_id(); in plock_test1_lcore() 143 for (ln = rte_lcore_count(); ln != 0 && lpt->lc != lc; lpt++, ln--) in plock_test1_lcore() 147 printf("%s(%u) error at init\n", __func__, lc); in plock_test1_lcore() 175 __func__, lc, i, tm, (long double)tm / i, in plock_test1_lcore() 193 uint32_t i, lc, n; in plock_test() local 221 RTE_LCORE_FOREACH(lc) { in plock_test() 223 lpt[i].lc = lc; in plock_test() 234 i, lpt[i].lc, lpt[i].pt[0], lpt[i].pt[1]); in plock_test()
|
| /f-stack/app/redis-5.0.5/src/modules/ |
| H A D | Makefile | 24 $(LD) -o $@ $< $(SHOBJ_LDFLAGS) $(LIBS) -lc 29 $(LD) -o $@ $< $(SHOBJ_LDFLAGS) $(LIBS) -lc 34 $(LD) -o $@ $< $(SHOBJ_LDFLAGS) $(LIBS) -lpthread -lc 39 $(LD) -o $@ $< $(SHOBJ_LDFLAGS) $(LIBS) -lc 44 $(LD) -o $@ $< $(SHOBJ_LDFLAGS) $(LIBS) -lc 53 $(LD) -o $@ $< $(SHOBJ_LDFLAGS) $(LIBS) -lc
|
| /f-stack/app/redis-5.0.5/deps/linenoise/ |
| H A D | linenoise.c | 338 for (i = 0; i < lc->len; i++) in freeCompletions() 339 free(lc->cvec[i]); in freeCompletions() 340 if (lc->cvec != NULL) in freeCompletions() 341 free(lc->cvec); in freeCompletions() 355 completionCallback(ls->buf,&lc); in completeLine() 356 if (lc.len == 0) { in completeLine() 363 if (i < lc.len) { in completeLine() 404 freeCompletions(&lc); in completeLine() 436 cvec = realloc(lc->cvec,sizeof(char*)*(lc->len+1)); in linenoiseAddCompletion() 441 lc->cvec = cvec; in linenoiseAddCompletion() [all …]
|
| H A D | example.c | 7 void completion(const char *buf, linenoiseCompletions *lc) { in completion() argument 9 linenoiseAddCompletion(lc,"hello"); in completion() 10 linenoiseAddCompletion(lc,"hello there"); in completion()
|
| /f-stack/app/nginx-1.16.1/src/stream/ |
| H A D | ngx_stream_limit_conn_module.c | 135 ngx_stream_limit_conn_node_t *lc; in ngx_stream_limit_conn_handler() local 184 lc = (ngx_stream_limit_conn_node_t *) &node->color; in ngx_stream_limit_conn_handler() 187 lc->len = (u_char) key.len; in ngx_stream_limit_conn_handler() 188 lc->conn = 1; in ngx_stream_limit_conn_handler() 189 ngx_memcpy(lc->data, key.data, key.len); in ngx_stream_limit_conn_handler() 197 if ((ngx_uint_t) lc->conn >= limits[i].conn) { in ngx_stream_limit_conn_handler() 209 lc->conn++; in ngx_stream_limit_conn_handler() 323 ngx_stream_limit_conn_node_t *lc; in ngx_stream_limit_conn_cleanup() local 328 lc = (ngx_stream_limit_conn_node_t *) &node->color; in ngx_stream_limit_conn_cleanup() 335 lc->conn--; in ngx_stream_limit_conn_cleanup() [all …]
|
| /f-stack/app/nginx-1.16.1/src/http/modules/ |
| H A D | ngx_http_limit_conn_module.c | 151 ngx_http_limit_conn_node_t *lc; in ngx_http_limit_conn_handler() local 206 lc = (ngx_http_limit_conn_node_t *) &node->color; in ngx_http_limit_conn_handler() 209 lc->len = (u_char) key.len; in ngx_http_limit_conn_handler() 210 lc->conn = 1; in ngx_http_limit_conn_handler() 211 ngx_memcpy(lc->data, key.data, key.len); in ngx_http_limit_conn_handler() 219 if ((ngx_uint_t) lc->conn >= limits[i].conn) { in ngx_http_limit_conn_handler() 231 lc->conn++; in ngx_http_limit_conn_handler() 344 ngx_http_limit_conn_node_t *lc; in ngx_http_limit_conn_cleanup() local 349 lc = (ngx_http_limit_conn_node_t *) &node->color; in ngx_http_limit_conn_cleanup() 356 lc->conn--; in ngx_http_limit_conn_cleanup() [all …]
|
| /f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zdb/ |
| H A D | zdb_block_size_histogram.ksh | 222 while read -r blksize pc pl pm lc ll lm ac al am 228 "$blksize\t${recordcounts[${blksize}]}\t$pc\t$lc\t$ac" 235 ((rclc=(rc-lc)<0?lc-rc:rc-lc)) # absolute value
|
| /f-stack/freebsd/arm64/iommu/ |
| H A D | smmu.c | 218 if (Q_IDX(q, q->lc.cons) != Q_IDX(q, q->lc.prod) || in smmu_q_has_space() 219 Q_WRP(q, q->lc.cons) == Q_WRP(q, q->lc.prod)) in smmu_q_has_space() 229 if (Q_IDX(q, q->lc.cons) == Q_IDX(q, q->lc.prod) && in smmu_q_empty() 230 Q_WRP(q, q->lc.cons) == Q_WRP(q, q->lc.prod)) in smmu_q_empty() 241 (Q_IDX(q, q->lc.cons) >= Q_IDX(q, prod))) in smmu_q_consumed() 257 cons = (Q_WRP(q, q->lc.cons) | Q_IDX(q, q->lc.cons)) + 1; in smmu_q_inc_cons() 269 prod = (Q_WRP(q, q->lc.prod) | Q_IDX(q, q->lc.prod)) + 1; in smmu_q_inc_prod() 421 evtq->lc.cons * EVTQ_ENTRY_DWORDS * 8); in smmu_evtq_dequeue() 423 evtq->lc.cons = smmu_q_inc_cons(evtq); in smmu_evtq_dequeue() 549 cmdq->lc.prod = smmu_q_inc_prod(cmdq); in smmu_cmdq_enqueue_cmd() [all …]
|
| /f-stack/dpdk/drivers/net/cxgbe/base/ |
| H A D | t4_hw.c | 2985 lc->fc = lc->requested_fc & ~PAUSE_AUTONEG; in t4_link_l1cfg() 2989 lc->fc = lc->requested_fc & ~PAUSE_AUTONEG; in t4_link_l1cfg() 4620 if (link_ok != lc->link_ok || speed != lc->speed || in t4_handle_get_port_info() 4621 fc != lc->fc || fec != lc->fec) { /* something changed */ in t4_handle_get_port_info() 4629 lc->fc = fc; in t4_handle_get_port_info() 4724 lc->speed = 0; in t4_reset_link_config() 4725 lc->fc = 0; in t4_reset_link_config() 4742 lc->speed = 0; in init_link_config() 4744 lc->fc = 0; in init_link_config() 4752 lc->fec = lc->auto_fec; in init_link_config() [all …]
|
| /f-stack/freebsd/sys/ |
| H A D | loginclass.h | 48 void loginclass_hold(struct loginclass *lc); 49 void loginclass_free(struct loginclass *lc);
|
| H A D | lock.h | 190 lock_delay_arg_init(struct lock_delay_arg *la, struct lock_delay_config *lc) in lock_delay_arg_init() argument 192 la->config = lc; in lock_delay_arg_init() 193 la->delay = lc->base; in lock_delay_arg_init() 214 #define LOCK_DELAY_SYSINIT_DEFAULT(lc) \ argument 215 SYSINIT(lock_delay_##lc##_ld, SI_SUB_LOCK, SI_ORDER_ANY, \ 216 lock_delay_default_init, &lc)
|
| /f-stack/app/nginx-1.16.1/src/event/ |
| H A D | ngx_event_accept.c | 28 ngx_connection_t *c, *lc; local 48 lc = ev->data; 49 ls = lc->listening; 60 s = accept4(lc->fd, &sa.sockaddr, &socklen, SOCK_NONBLOCK); 62 s = accept(lc->fd, &sa.sockaddr, &socklen); 65 s = accept(lc->fd, &sa.sockaddr, &socklen);
|
| /f-stack/freebsd/contrib/zlib/ |
| H A D | trees.c | 1014 int ZLIB_INTERNAL _tr_tally (s, dist, lc) in _tr_tally() argument 1020 s->l_buf[s->last_lit++] = (uch)lc; 1023 s->dyn_ltree[lc].Freq++; 1029 (ush)lc <= (ush)(MAX_MATCH-MIN_MATCH) && 1032 s->dyn_ltree[_length_code[lc]+LITERALS+1].Freq++; 1070 int lc; /* match length or unmatched char (if dist == 0) */ local 1077 lc = s->l_buf[lx++]; 1079 send_code(s, lc, ltree); /* send a literal byte */ 1080 Tracecv(isgraph(lc), (stderr," '%c' ", lc)); 1083 code = _length_code[lc]; [all …]
|
| /f-stack/freebsd/contrib/openzfs/module/zfs/ |
| H A D | zap_leaf.c | 128 zap_leaf_chunk_t *lc = &ZAP_LEAF_CHUNK(&l, i); in zap_leaf_byteswap() local 131 switch (lc->l_free.lf_type) { in zap_leaf_byteswap() 133 le = &lc->l_entry; in zap_leaf_byteswap() 146 lc->l_free.lf_type = BSWAP_8(lc->l_free.lf_type); in zap_leaf_byteswap() 147 lc->l_free.lf_next = BSWAP_16(lc->l_free.lf_next); in zap_leaf_byteswap() 150 lc->l_array.la_type = BSWAP_8(lc->l_array.la_type); in zap_leaf_byteswap() 151 lc->l_array.la_next = BSWAP_16(lc->l_array.la_next); in zap_leaf_byteswap() 156 lc->l_free.lf_type); in zap_leaf_byteswap()
|