Home
last modified time | relevance | path

Searched refs:lb (Results 1 – 25 of 120) sorted by relevance

12345

/src/stand/kboot/libkboot/
H A Ddfk.c70 lb_fill(struct line_buffer *lb) in lb_fill() argument
74 lb->pos = lb->eos = lb->buf; // Reset to no data condition in lb_fill()
75 rv = read(lb->fd, lb->buf, sizeof(lb->buf)); in lb_fill()
78 lb->pos = lb->buf; in lb_fill()
79 lb->eos = lb->buf + rv; in lb_fill()
84 lb_fini(struct line_buffer *lb) in lb_fini() argument
86 close(lb->fd); in lb_fini()
91 lb_init(struct line_buffer *lb, const char *fn) in lb_init() argument
93 lb->fd = open(fn, O_RDONLY); in lb_init()
94 if (lb->fd == -1) in lb_init()
[all …]
/src/sys/contrib/openzfs/module/zfs/
H A Daggsum.c132 int64_t lb; in aggsum_value() local
136 lb = as->as_lower_bound; in aggsum_value()
138 if (lb == ub) { in aggsum_value()
144 return (lb); in aggsum_value()
151 lb += asb->asc_delta + asb->asc_borrowed; in aggsum_value()
157 ASSERT3U(lb, ==, ub); in aggsum_value()
158 atomic_store_64((volatile uint64_t *)&as->as_lower_bound, lb); in aggsum_value()
159 atomic_store_64(&as->as_upper_bound, lb); in aggsum_value()
162 return (lb); in aggsum_value()
215 int64_t lb; in aggsum_compare() local
[all …]
/src/lib/libc/nameser/
H A Dns_samedomain.c50 size_t la, lb; in ns_samedomain() local
55 lb = strlen(b); in ns_samedomain()
74 if (lb != 0U && b[lb - 1] == '.') { in ns_samedomain()
77 for (i = lb - 2; i >= 0; i--) in ns_samedomain()
86 lb--; in ns_samedomain()
90 if (lb == 0U) in ns_samedomain()
94 if (lb > la) in ns_samedomain()
98 if (lb == la) in ns_samedomain()
99 return (strncasecmp(a, b, lb) == 0); in ns_samedomain()
103 diff = la - lb; in ns_samedomain()
[all …]
/src/contrib/nvi/vi/
H A Dv_txt.c302 BINC_RETW(sp, tp->lb, tp->lb_len, len); in v_txt()
303 MEMMOVE(tp->lb, lp, len); in v_txt()
368 tp->lb[tp->cno++] = prompt; in v_txt()
384 tp->lb[tp->cno] = CH_CURSOR; in v_txt()
739 for (p = tp->lb + tp->cno; owrite > 0 && isblank(*p); in v_txt()
745 p = tp->lb + tp->cno + owrite; in v_txt()
780 FREE_SPACEW(sp, ait.lb, ait.lb_len); in v_txt()
799 BINC_GOTOW(sp, ntp->lb, in v_txt()
801 MEMMOVE(ntp->lb + ntp->cno, wmt.lb, WMTSPACE); in v_txt()
812 BINC_GOTOW(sp, ntp->lb, ntp->lb_len, ntp->len + 1); in v_txt()
[all …]
/src/contrib/nvi/ex/
H A Dex_txt.c144 BINC_GOTOW(sp, tp->lb, tp->lb_len, tp->len + 1); in ex_txt()
167 tp->len != 0 && tp->lb[tp->len - 1] == '\\') in ex_txt()
177 tp->lb[tp->len] = '\0'; in ex_txt()
186 tp->lb[tp->len - 1] == '.') { in ex_txt()
211 free(ait.lb); in ex_txt()
245 if (!isblank(tp->lb[cnt])) in ex_txt()
249 tp->lb[0] = ev.e_c; in ex_txt()
250 tp->lb[1] = '\0'; in ex_txt()
288 ait.lb = NULL; in ex_txt()
290 BINC_GOTOW(sp, ait.lb, ait.lb_len, tp->ai); in ex_txt()
[all …]
H A Dex_subst.c315 REALLOC(sp, lb, CHAR_T *, lblen * sizeof(CHAR_T)); \
316 if (lb == NULL) { \
321 MEMCPY(lb + lbclen, l, len); \
328 REALLOC(sp, lb, CHAR_T *, lblen * sizeof(CHAR_T)); \
329 if (lb == NULL) { \
333 pnt = lb + lbclen; \
351 CHAR_T *bp, *lb; in s() local
482 bp = lb = NULL; in s()
653 ev.e_c = TAILQ_FIRST(tiq)->lb[0]; in s()
689 if (re_sub(sp, s + offset, &lb, &lbclen, &lblen, match)) in s()
[all …]
/src/lib/libc/riscv/string/
H A Dmemcpy.S39 lb t3, 6(a1)
41 lb t3, 5(a1)
43 lb t3, 4(a1)
45 lb t3, 3(a1)
47 lb t3, 2(a1)
49 lb t3, 1(a1)
51 lb t3, 0(a1)
131 lb t2, 6(a1)
133 lb t2, 5(a1)
135 lb t2, 4(a1)
[all …]
/src/sys/netlink/
H A Dnetlink_snl.h82 struct linear_buffer *lb = (struct linear_buffer *)calloc(1, size); in lb_init() local
84 if (lb != NULL) { in lb_init()
85 lb->base = (char *)(lb + 1); in lb_init()
86 lb->size = size - sizeof(*lb); in lb_init()
89 return (lb); in lb_init()
93 lb_free(struct linear_buffer *lb) in lb_free() argument
95 free(lb); in lb_free()
99 lb_allocz(struct linear_buffer *lb, int len) in lb_allocz() argument
102 if (lb->offset + len > lb->size) in lb_allocz()
104 char *data = (lb->base + lb->offset); in lb_allocz()
[all …]
H A Dnetlink_message_parser.h47 lb_alloc(struct linear_buffer *lb, int len) in lb_alloc() argument
50 if (lb->offset + len > lb->size) in lb_alloc()
52 void *data = (void *)(lb->base + lb->offset); in lb_alloc()
53 lb->offset += len; in lb_alloc()
58 lb_clear(struct linear_buffer *lb) in lb_clear() argument
60 memset(lb->base, 0, lb->size); in lb_clear()
61 lb->offset = 0; in lb_clear()
67 struct linear_buffer lb; /* Per-message scratch buffer */ member
81 return (lb_alloc(&npt->lb, len)); in npt_alloc()
/src/crypto/openssl/crypto/bn/
H A Dbn_shift.c107 unsigned int lb, rb; in bn_lshift_fixed_top() local
121 lb = (unsigned int)n % BN_BITS2; in bn_lshift_fixed_top()
122 rb = BN_BITS2 - lb; in bn_lshift_fixed_top()
131 m = l << lb; in bn_lshift_fixed_top()
135 t[0] = (l << lb) & BN_MASK2; in bn_lshift_fixed_top()
179 unsigned int lb, rb; in bn_rshift_fixed_top() local
193 lb = BN_BITS2 - rb; in bn_rshift_fixed_top()
194 lb %= BN_BITS2; /* say no to undefined behaviour */ in bn_rshift_fixed_top()
195 mask = (BN_ULONG)0 - lb; /* mask = 0 - (lb != 0) */ in bn_rshift_fixed_top()
206 t[i] = (l >> rb) | ((m << lb) & mask); in bn_rshift_fixed_top()
/src/tools/tools/netmap/
H A DMakefile5 PROGS = pkt-gen nmreplay bridge lb
34 lb: lb.o pkt_hash.o target
35 $(CC) $(CFLAGS) -o lb lb.o pkt_hash.o $(LDFLAGS)
/src/contrib/llvm-project/openmp/runtime/src/
H A Dkmp_gsupport.cpp602 int func(long lb, long ub, long str, long chunk_sz, long *p_lb, \
612 gtid, lb, ub, str, chunk_sz)); \
614 if ((str > 0) ? (lb < ub) : (lb > ub)) { \
617 KMP_DISPATCH_INIT(&loc, gtid, (schedule), lb, \
643 int func(long lb, long ub, long str, long *p_lb, long *p_ub) { \
652 gtid, lb, ub, str, chunk_sz)); \
654 if ((str > 0) ? (lb < ub) : (lb > ub)) { \
657 KMP_DISPATCH_INIT(&loc, gtid, (schedule), lb, \
760 long stride, lb, ub, str; \
771 lb = 0; \
[all …]
H A Dkmp_dispatch.cpp186 enum sched_type schedule, T lb, T ub, in __kmp_dispatch_init_algorithm() argument
214 KD_TRACE(10, (buff, gtid, pr, lb, ub, st, schedule, chunk, nproc, tid)); in __kmp_dispatch_init_algorithm()
382 if (ub >= lb) { in __kmp_dispatch_init_algorithm()
383 tc = ub - lb + 1; in __kmp_dispatch_init_algorithm()
388 if (lb >= ub) { in __kmp_dispatch_init_algorithm()
391 tc = (UT)(lb - ub) / (-st) + 1; in __kmp_dispatch_init_algorithm()
396 if (ub >= lb) { in __kmp_dispatch_init_algorithm()
399 tc = (UT)(ub - lb) / st + 1; in __kmp_dispatch_init_algorithm()
411 pr->u.p.lb = lb; in __kmp_dispatch_init_algorithm()
631 pr->u.p.lb = lb + init; in __kmp_dispatch_init_algorithm()
[all …]
H A Dompt-specific.h100 #define OMPT_GET_DISPATCH_CHUNK(chunk, lb, ub, incr) \ argument
103 chunk.start = static_cast<uint64_t>(lb); \
104 chunk.iterations = static_cast<uint64_t>(((ub) - (lb)) / (incr) + 1); \
107 chunk.iterations = static_cast<uint64_t>(((lb) - (ub)) / -(incr) + 1); \
/src/crypto/openssh/openbsd-compat/regress/
H A Dstrtonumtest.c43 test(const char *p, long long lb, long long ub, int ok) in test() argument
48 val = strtonum(p, lb, ub, &q); in test()
50 fprintf(stderr, "%s [%lld-%lld] ", p, lb, ub); in test()
54 fprintf(stderr, "%s [%lld-%lld] %lld ", p, lb, ub, val); in test()
/src/sys/sys/
H A Dstats.h222 struct voistatdata_numeric lb; member
231 struct voistatdata_numeric lb; member
240 struct voistatdata_numeric lb, ub; member
249 struct voistatdata_numeric lb, ub; member
367 struct voistatdata_numeric lb; member
384 struct voistatdata_numeric lb, ub; member
510 .lb = stats_ctor_vsd_numeric(lbd), \
515 #define STATS_VSS_CRHIST32_LIN(lb, ub, stepinc, vsdflags) \ argument
517 BKT_LIN, vsdflags, lb, ub, HIST_HLPR_INFO_LIN_FIELDS(stepinc)))
518 #define STATS_VSS_CRHIST64_LIN(lb, ub, stepinc, vsdflags) \ argument
[all …]
H A Dresourcevar.h88 limbatch_prep(struct limbatch *lb) in limbatch_prep() argument
90 lb->limp = NULL; in limbatch_prep()
91 lb->count = 0; in limbatch_prep()
94 void limbatch_add(struct limbatch *lb, struct thread *td);
97 limbatch_process(struct limbatch *lb __unused) in limbatch_process()
102 void limbatch_final(struct limbatch *lb);
/src/sys/dev/hwpmc/
H A Dhwpmc_logging.c352 struct pmclog_buffer *lb; in pmclog_loop() local
400 lb = NULL; in pmclog_loop()
417 if (lb == NULL) { /* look for a fresh buffer to write */ in pmclog_loop()
419 if ((lb = TAILQ_FIRST(&po->po_logbuffers)) == NULL) { in pmclog_loop()
431 TAILQ_REMOVE(&po->po_logbuffers, lb, plb_next); in pmclog_loop()
439 lb->plb_base, lb->plb_ptr); in pmclog_loop()
442 aiov.iov_base = lb->plb_base; in pmclog_loop()
443 aiov.iov_len = nbytes = lb->plb_ptr - lb->plb_base; in pmclog_loop()
477 PMCLOG_RESET_BUFFER_DESCRIPTOR(lb); in pmclog_loop()
479 pmc_plb_rele(lb); in pmclog_loop()
[all …]
/src/contrib/jemalloc/src/
H A Ddecay.c266 size_t lb = 2; in decay_ns_until_purge() local
270 npurge_lb = decay_npurge_after_interval(decay, lb); in decay_ns_until_purge()
272 return decay_interval_ns * lb; in decay_ns_until_purge()
281 while ((npurge_lb + npages_threshold < npurge_ub) && (lb + 2 < ub)) { in decay_ns_until_purge()
282 target = (lb + ub) / 2; in decay_ns_until_purge()
288 lb = target; in decay_ns_until_purge()
294 return decay_interval_ns * (ub + lb) / 2; in decay_ns_until_purge()
/src/crypto/openssl/crypto/cmac/
H A Dcmac.c249 int i, bl, lb; in CMAC_Final() local
259 lb = ctx->nlast_block; in CMAC_Final()
261 if (lb == bl) { in CMAC_Final()
265 ctx->last_block[lb] = 0x80; in CMAC_Final()
266 if (bl - lb > 1) in CMAC_Final()
267 memset(ctx->last_block + lb + 1, 0, bl - lb - 1); in CMAC_Final()
/src/usr.bin/units/
H A Ddefinitions.units153 lb .45359237 kg
154 pound lb
155 lbf lb g
156 ounce 1|16 lb
160 grain 1|7000 lb
162 shortton 2000 lb
164 longton 2240 lb
241 brhundredweight 112 lb
606 bag 94 lb
633 cental 100 lb
[all …]
/src/contrib/nvi/common/
H A Dput.c85 if (db_append(sp, 1, lno, tp->lb, in put()
104 if (db_append(sp, 1, lno, tp->lb, tp->len)) in put()
142 MEMCPY(t, tp->lb, tp->len); in put()
200 MEMCPY(t, ltp->lb, ltp->len); in put()
224 if (db_append(sp, 1, lno, tp->lb, tp->len)) in put()
H A Dcut.c246 MEMCPY(tp->lb, p + fcno, clen); in cut_line()
298 MALLOC(sp, tp->lb, tp->lb_len); in text_init()
299 if (tp->lb == NULL) { in text_init()
304 MEMCPY(tp->lb, p, len); in text_init()
336 free(tp->lb); in text_free()
/src/lib/msun/src/
H A Ds_fma.c146 double ha, hb, la, lb, p, q; in dd_mul() local
156 lb = b - hb; in dd_mul()
159 q = ha * lb + la * hb; in dd_mul()
162 ret.lo = p - ret.hi + q + la * lb; in dd_mul()
H A Ds_fmal.c135 long double ha, hb, la, lb, p, q; in dd_mul() local
145 lb = b - hb; in dd_mul()
148 q = ha * lb + la * hb; in dd_mul()
151 ret.lo = p - ret.hi + q + la * lb; in dd_mul()

12345