Home
last modified time | relevance | path

Searched refs:last_pos (Results 1 – 12 of 12) sorted by relevance

/freebsd/lib/libusbhid/
H A Dparse.c58 struct hid_pos_data last_pos[MAXID]; member
111 if (s->last_pos[i].rid == c->report_ID) in hid_switch_rid()
113 if (s->last_pos[i].rid == 0) in hid_switch_rid()
118 s->last_pos[i].rid = c->report_ID; in hid_switch_rid()
120 s->last_pos[i].pos[j] = s->pos[j]; in hid_switch_rid()
133 if (s->last_pos[i].rid == next_rID) in hid_switch_rid()
135 if (s->last_pos[i].rid == 0) in hid_switch_rid()
140 s->last_pos[i].rid = next_rID; in hid_switch_rid()
142 s->pos[j] = s->last_pos[i].pos[j]; in hid_switch_rid()
/freebsd/contrib/kyua/utils/text/
H A Dtemplates.cpp458 std::string::size_type last_pos = 0; in evaluate() local
459 while (last_pos != std::string::npos) { in evaluate()
461 _delimiter, last_pos); in evaluate()
463 out_line += in_line.substr(last_pos); in evaluate()
464 last_pos = std::string::npos; in evaluate()
469 out_line += in_line.substr(last_pos); in evaluate()
470 last_pos = std::string::npos; in evaluate()
472 out_line += in_line.substr(last_pos, open_pos - last_pos); in evaluate()
476 last_pos = close_pos + _delimiter.length(); in evaluate()
H A Doperations.cpp97 std::string::size_type last_pos = text.find(quote); in quote() local
98 while (last_pos != std::string::npos) { in quote()
99 quoted << text.substr(start_pos, last_pos - start_pos) << '\\'; in quote()
100 start_pos = last_pos; in quote()
101 last_pos = text.find(quote, start_pos + 1); in quote()
/freebsd/contrib/llvm-project/lldb/source/Plugins/ObjectContainer/BSD-Archive/
H A DObjectContainerBSDArchive.cpp93 const size_t last_pos = str.find_last_not_of(' '); ExtractFromThin() local
166 const size_t last_pos = str.find_last_not_of(' '); Extract() local
/freebsd/sys/dev/hid/
H A Dhid.c81 struct hid_pos_data last_pos[MAXID]; member
135 if (s->last_pos[i].rid == c->report_ID) in hid_switch_rid()
137 if (s->last_pos[i].rid == 0) in hid_switch_rid()
142 s->last_pos[i].rid = c->report_ID; in hid_switch_rid()
143 s->last_pos[i].pos = c->loc.pos; in hid_switch_rid()
156 if (s->last_pos[i].rid == next_rID) in hid_switch_rid()
158 if (s->last_pos[i].rid == 0) in hid_switch_rid()
163 s->last_pos[i].rid = next_rID; in hid_switch_rid()
164 c->loc.pos = s->last_pos[i].pos; in hid_switch_rid()
/freebsd/sys/contrib/openzfs/module/zstd/lib/compress/
H A Dzstd_opt.c830 U32 cur, last_pos = 0; in ZSTD_compressBlock_opt_generic() local
862 last_pos = ZSTD_totalLen(lastSequence); in ZSTD_compressBlock_opt_generic()
886 last_pos = pos-1; in ZSTD_compressBlock_opt_generic()
891 for (cur = 1; cur <= last_pos; cur++) { in ZSTD_compressBlock_opt_generic()
936 if (cur == last_pos) break; in ZSTD_compressBlock_opt_generic()
965 last_pos = cur + ZSTD_totalLen(lastSequence); in ZSTD_compressBlock_opt_generic()
984 if ((pos > last_pos) || (price < opt[pos].price)) { in ZSTD_compressBlock_opt_generic()
987 …while (last_pos < pos) { opt[last_pos+1].price = ZSTD_MAX_PRICE; last_pos++; } /* fill empty pos… in ZSTD_compressBlock_opt_generic()
1000 lastSequence = opt[last_pos]; in ZSTD_compressBlock_opt_generic()
1001 …cur = last_pos > ZSTD_totalLen(lastSequence) ? last_pos - ZSTD_totalLen(lastSequence) : 0; /* sin… in ZSTD_compressBlock_opt_generic()
[all …]
/freebsd/sys/contrib/zstd/lib/compress/
H A Dzstd_opt.c1078 U32 cur, last_pos = 0; in ZSTD_compressBlock_opt_generic() local
1112 last_pos = ZSTD_totalLen(lastSequence); in ZSTD_compressBlock_opt_generic()
1137 last_pos = pos-1; in ZSTD_compressBlock_opt_generic()
1142 for (cur = 1; cur <= last_pos; cur++) { in ZSTD_compressBlock_opt_generic()
1187 if (cur == last_pos) break; in ZSTD_compressBlock_opt_generic()
1221 last_pos = cur + ZSTD_totalLen(lastSequence); in ZSTD_compressBlock_opt_generic()
1240 if ((pos > last_pos) || (price < opt[pos].price)) { in ZSTD_compressBlock_opt_generic()
1243 …while (last_pos < pos) { opt[last_pos+1].price = ZSTD_MAX_PRICE; last_pos++; } /* fill empty pos… in ZSTD_compressBlock_opt_generic()
1256 lastSequence = opt[last_pos]; in ZSTD_compressBlock_opt_generic()
1257 …cur = last_pos > ZSTD_totalLen(lastSequence) ? last_pos - ZSTD_totalLen(lastSequence) : 0; /* sin… in ZSTD_compressBlock_opt_generic()
[all …]
/freebsd/contrib/dialog/
H A Dtailbox.c38 off_t last_pos; member
198 obj->last_pos = ftell(fp); in repaint_text()
212 && sb.st_size != obj->last_pos) { in handle_input()
/freebsd/contrib/kyua/utils/format/
H A Dformatter.cpp211 const std::string::size_type last_pos) : in formatter() argument
214 _last_pos(last_pos), in formatter()
/freebsd/contrib/ncurses/form/
H A Dfty_regex.c202 char *last_pos = compile(rx, buf, &buf[blen], '\0'); in Generic_RegularExpression_Type()
205 char *last_pos = compile(rx, buf, &buf[blen]); in Generic_RegularExpression_Type()
/freebsd/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_rtl_report.cpp355 void TraceReplay(Trace *trace, TracePart *last, Event *last_pos, Sid sid, in TraceReplay() argument
367 end = last_pos; in TraceReplay()
464 Event *last_pos; in RestoreStack() local
473 last_pos = trace->final_pos; in RestoreStack()
475 last_pos = (Event *)atomic_load_relaxed(&tctx->thr->trace_pos); in RestoreStack()
485 trace->parts.Front(), last_part, last_pos); in RestoreStack()
487 trace, last_part, last_pos, sid, epoch, in RestoreStack()
/freebsd/contrib/libarchive/libarchive/
H A Darchive_read_support_format_rar5.c2574 int last_pos = decode_pos_clone[clen]; in create_decode_tables() local
2575 table->decode_num[last_pos] = i; in create_decode_tables()