| /trueos/lib/libsdp/ |
| HD | util.c | 281 sdp_print(uint32_t level, uint8_t const *start, uint8_t const *end) in sdp_print() argument 297 if (start == NULL || end == NULL) in sdp_print() 300 while (start < end) { in sdp_print() 304 SDP_GET8(type, start); in sdp_print() 312 SDP_GET8(value.uint8, start); in sdp_print() 316 SDP_GET16(value.uint16, start); in sdp_print() 320 SDP_GET32(value.uint32, start); in sdp_print() 324 SDP_GET64(value.uint64, start); in sdp_print() 330 SDP_GET128(&value.int128, start); in sdp_print() 339 SDP_GET_UUID128(&value.int128, start); in sdp_print() [all …]
|
| /trueos/usr.sbin/bluetooth/sdpcontrol/ |
| HD | search.c | 74 print_service_class_id_list(uint8_t const *start, uint8_t const *end) in print_service_class_id_list() argument 78 if (end - start < 2) { in print_service_class_id_list() 80 "Too short, len=%zd\n", end - start); in print_service_class_id_list() 84 SDP_GET8(type, start); in print_service_class_id_list() 87 SDP_GET8(len, start); in print_service_class_id_list() 91 SDP_GET16(len, start); in print_service_class_id_list() 95 SDP_GET32(len, start); in print_service_class_id_list() 105 while (start < end) { in print_service_class_id_list() 106 SDP_GET8(type, start); in print_service_class_id_list() 109 SDP_GET16(value, start); in print_service_class_id_list() [all …]
|
| /trueos/contrib/groff/src/preproc/refer/ |
| HD | ref.cpp | 28 static int find_month(const char *start, const char *end); 54 reference::reference(const char *start, int len, reference_id *ridp) in reference() argument 63 if (start == 0) in reference() 67 const char *end = start + len; in reference() 68 const char *ptr = start; in reference() 495 const char *start = str.contents(); in sortify_field() local 496 const char *end = start + str.length(); in sortify_field() 497 for (int i = 0; i < n && start < end; i++) { in sortify_field() 498 const char *p = start; in sortify_field() 499 while (start < end && *start != FIELD_SEPARATOR) in sortify_field() [all …]
|
| /trueos/contrib/libarchive/libarchive/ |
| HD | archive_acl.c | 58 static int isint_w(const wchar_t *start, const wchar_t *end, int *result); 59 static int ismode_w(const wchar_t *start, const wchar_t *end, int *result); 60 static void next_field_w(const wchar_t **wp, const wchar_t **start, 62 static int prefix_w(const wchar_t *start, const wchar_t *end, 67 static int isint(const char *start, const char *end, int *result); 68 static int ismode(const char *start, const char *end, int *result); 69 static void next_field(const char **p, const char **start, 71 static int prefix_c(const char *start, const char *end, 828 const wchar_t *start; in archive_acl_parse_w() member 843 const wchar_t *start, *end; in archive_acl_parse_w() local [all …]
|
| /trueos/contrib/mdocml/ |
| HD | eqn.c | 398 const char *start; in eqn_matrix() local 405 if (NULL == (start = eqn_nexttok(ep, &sz))) { in eqn_matrix() 409 if ( ! STRNEQ(start, sz, "{", 1)) { in eqn_matrix() 434 start = eqn_nexttok(ep, &sz); in eqn_matrix() 435 assert(start); in eqn_matrix() 436 if (STRNEQ(start, sz, "}", 1)) in eqn_matrix() 447 const char *start; in eqn_list() local 454 if (NULL == (start = eqn_nexttok(ep, &sz))) { in eqn_list() 458 if ( ! STRNEQ(start, sz, "{", 1)) { in eqn_list() 465 start = eqn_nexttok(ep, &sz); in eqn_list() [all …]
|
| /trueos/games/primes/ |
| HD | primes.c | 96 ubig start; /* where to start generating */ in main() local 113 start = 0; in main() 129 start = strtoul(argv[0], &p, 0); in main() 148 start = strtoul(argv[0], &p, 0); in main() 155 start = read_num_buf(); in main() 161 if (start > stop) in main() 163 primes(start, stop); in main() 202 primes(ubig start, ubig stop) in primes() argument 216 if (start < 3) { in primes() 217 start = (ubig)2; in primes() [all …]
|
| /trueos/contrib/libreadline/examples/ |
| HD | manexamp.c | 67 register int start, end; local 69 start = rl_point; 80 end = start + (count * direction); 88 if (start > end) 90 int temp = start; 91 start = end; 95 if (start == end) 100 rl_modifying (start, end); 102 for (; start != end; start += direction) 104 if (_rl_uppercase_p (rl_line_buffer[start])) [all …]
|
| /trueos/usr.bin/dtc/ |
| HD | string.cc | 99 const char *start = s; in parse() local 102 return string(start, l); in parse() 105 string::string(input_buffer &s) : start((const char*)s), length(0) in string() 131 const char *start = s; in parse_node_or_property_name() local 144 return string(start, l); in parse_node_or_property_name() 151 (memcmp(start, other.start, length) == 0); in operator ==() 157 return strncmp(other, start, length) == 0; in operator ==() 165 return memcmp(start, other.start, length) < 0; in operator <() 173 uint8_t c = start[i]; in push_to_buffer() 176 c = start[++i]; in push_to_buffer() [all …]
|
| /trueos/contrib/gcclibs/libgomp/ |
| HD | loop.c | 37 gomp_loop_init (struct gomp_work_share *ws, long start, long end, long incr, in gomp_loop_init() argument 43 ws->end = ((incr > 0 && start > end) || (incr < 0 && start < end)) in gomp_loop_init() 44 ? start : end; in gomp_loop_init() 46 ws->next = start; in gomp_loop_init() 66 gomp_loop_static_start (long start, long end, long incr, long chunk_size, in gomp_loop_static_start() argument 72 gomp_loop_init (thr->ts.work_share, start, end, incr, in gomp_loop_static_start() 80 gomp_loop_dynamic_start (long start, long end, long incr, long chunk_size, in gomp_loop_dynamic_start() argument 87 gomp_loop_init (thr->ts.work_share, start, end, incr, in gomp_loop_dynamic_start() 102 gomp_loop_guided_start (long start, long end, long incr, long chunk_size, in gomp_loop_guided_start() argument 109 gomp_loop_init (thr->ts.work_share, start, end, incr, in gomp_loop_guided_start() [all …]
|
| HD | iter.c | 151 long start, end, chunk, left; in gomp_iter_dynamic_next_locked() local 153 start = ws->next; in gomp_iter_dynamic_next_locked() 154 if (start == ws->end) in gomp_iter_dynamic_next_locked() 158 left = ws->end - start; in gomp_iter_dynamic_next_locked() 169 end = start + chunk; in gomp_iter_dynamic_next_locked() 172 *pstart = start; in gomp_iter_dynamic_next_locked() 187 long start, end, nend, chunk, incr; in gomp_iter_dynamic_next() local 189 start = ws->next; in gomp_iter_dynamic_next() 196 long left = end - start; in gomp_iter_dynamic_next() 199 if (start == end) in gomp_iter_dynamic_next() [all …]
|
| /trueos/sys/x86/iommu/ |
| HD | intel_gas.c | 118 KASSERT(a->start <= a->end, ("inverted entry %p (%jx, %jx)", in dmar_gas_cmp_entries() 119 a, (uintmax_t)a->start, (uintmax_t)a->end)); in dmar_gas_cmp_entries() 120 KASSERT(b->start <= b->end, ("inverted entry %p (%jx, %jx)", in dmar_gas_cmp_entries() 121 b, (uintmax_t)b->start, (uintmax_t)b->end)); in dmar_gas_cmp_entries() 122 KASSERT(a->end <= b->start || b->end <= a->start || in dmar_gas_cmp_entries() 123 a->end == a->start || b->end == b->start, in dmar_gas_cmp_entries() 125 a, (uintmax_t)a->start, (uintmax_t)a->end, in dmar_gas_cmp_entries() 126 b, (uintmax_t)b->start, (uintmax_t)b->end)); in dmar_gas_cmp_entries() 165 entry->free_after = (next != NULL ? next->start : ctx->end) - in dmar_gas_fix_free() 185 MPASS(entry->free_after = next->start - entry->end); in dmar_gas_check_free() [all …]
|
| /trueos/contrib/libreadline/ |
| HD | undo.c | 72 alloc_undo_entry (what, start, end, text) in alloc_undo_entry() argument 74 int start, end; 81 temp->start = start; 92 rl_add_undo (what, start, end, text) in rl_add_undo() argument 94 int start, end; 99 temp = alloc_undo_entry (what, start, end, text); 131 new = alloc_undo_entry (entry->what, entry->start, entry->end, (char *)NULL); 167 int waiting_for_begin, start, end; in rl_do_undo() local 171 start = end = waiting_for_begin = 0; in rl_do_undo() 184 start = TRANS (rl_undo_list->start); in rl_do_undo() [all …]
|
| /trueos/sys/netinet/ |
| HD | tcp_sack.c | 174 head_blk.start = rcv_start; in tcp_update_sack_list() 184 tcp_seq start = tp->sackblks[i].start; in tcp_update_sack_list() local 186 if (SEQ_GEQ(start, end) || SEQ_LEQ(start, tp->rcv_nxt)) { in tcp_update_sack_list() 190 } else if (SEQ_LEQ(head_blk.start, end) && in tcp_update_sack_list() 191 SEQ_GEQ(head_blk.end, start)) { in tcp_update_sack_list() 196 if (SEQ_GT(head_blk.start, start)) in tcp_update_sack_list() 197 head_blk.start = start; in tcp_update_sack_list() 204 saved_blks[num_saved].start = start; in tcp_update_sack_list() 214 if (SEQ_GT(head_blk.start, tp->rcv_nxt)) { in tcp_update_sack_list() 251 tp->sackblks[i].start = tp->sackblks[i].end=0; in tcp_clean_sackreport() [all …]
|
| /trueos/contrib/wpa/src/wps/ |
| HD | wps_er_ssdp.c | 26 char buf[MULTICAST_MAX_READ], *pos, *pos2, *start; in wps_er_ssdp_rx() local 59 for (start = buf; start && *start; start = pos) { in wps_er_ssdp_rx() 60 pos = os_strchr(start, '\n'); in wps_er_ssdp_rx() 66 if (os_strstr(start, "schemas-wifialliance-org:device:" in wps_er_ssdp_rx() 69 if (os_strstr(start, "schemas-wifialliance-org:service:" in wps_er_ssdp_rx() 72 if (os_strncasecmp(start, "LOCATION:", 9) == 0) { in wps_er_ssdp_rx() 73 start += 9; in wps_er_ssdp_rx() 74 while (*start == ' ') in wps_er_ssdp_rx() 75 start++; in wps_er_ssdp_rx() 76 location = start; in wps_er_ssdp_rx() [all …]
|
| /trueos/usr.bin/make/ |
| HD | str.c | 144 char *start; in brk_string() local 156 start = arg; in brk_string() 171 if (start == NULL) in brk_string() 172 start = arg; in brk_string() 176 if (start == NULL) in brk_string() 177 start = arg; in brk_string() 182 if (start == NULL) in brk_string() 183 start = arg; in brk_string() 191 if (start == NULL) in brk_string() 192 start = arg; in brk_string() [all …]
|
| /trueos/contrib/texinfo/info/ |
| HD | dir.c | 173 contents_binding.start = 0; in add_menu_to_file_buffer() 178 fb_binding.start = 0; in add_menu_to_file_buffer() 207 fb_binding.start = fb_offset; in add_menu_to_file_buffer() 208 fb_binding.start += in add_menu_to_file_buffer() 209 skip_node_separator (fb_binding.buffer + fb_binding.start); in add_menu_to_file_buffer() 217 fb_binding.start = fb_offset; in add_menu_to_file_buffer() 219 fb_binding.start = fb_binding.end; in add_menu_to_file_buffer() 225 fb_binding.start = 0; in add_menu_to_file_buffer() 235 fb_binding.start = fb_offset; in add_menu_to_file_buffer() 238 fb_binding.start = fb_offset; in add_menu_to_file_buffer() [all …]
|
| /trueos/sys/dev/drm/ |
| HD | savage_state.c | 120 if(start <= reg && start + count > reg) \ 121 dev_priv->state.where = regs[reg - start] 123 if(start <= reg && start + count > reg) { \ 125 tmp = regs[reg - start]; \ 131 unsigned int start, unsigned int count, in savage_verify_state_s3d() argument 134 if (start < SAVAGE_TEXPALADDR_S3D || in savage_verify_state_s3d() 135 start + count - 1 > SAVAGE_DESTTEXRWWATERMARK_S3D) { in savage_verify_state_s3d() 137 start, start + count - 1); in savage_verify_state_s3d() 147 if (start <= SAVAGE_TEXCTRL_S3D && in savage_verify_state_s3d() 148 start + count > SAVAGE_TEXPALADDR_S3D) { in savage_verify_state_s3d() [all …]
|
| /trueos/contrib/libarchive/test_utils/ |
| HD | test_utils.c | 79 int start, end; in get_test_set() local 90 start = 0; in get_test_set() 92 start *= 10; in get_test_set() 93 start += *vp - '0'; in get_test_set() 97 end = start; in get_test_set() 112 if (start < 0 || end >= limit || start > end) in get_test_set() 114 while (start <= end) in get_test_set() 115 test_set[idx++] = start++; in get_test_set() 117 for (start = 0; start < limit; ++start) { in get_test_set() 118 const char *name = tests[start].name; in get_test_set() [all …]
|
| /trueos/sys/x86/x86/ |
| HD | mptable_pci.c | 78 mptable_is_isa_range(u_long start, u_long end) in mptable_is_isa_range() argument 83 if ((start & 0xfc00) != (end & 0xfc00)) in mptable_is_isa_range() 85 start &= ~0xfc00; in mptable_is_isa_range() 87 return (start >= 0x100 && end <= 0x3ff); in mptable_is_isa_range() 91 mptable_is_vga_range(u_long start, u_long end) in mptable_is_vga_range() argument 95 if ((start & 0xfc00) != (end & 0xfc00)) in mptable_is_vga_range() 97 start &= ~0xfc00; in mptable_is_vga_range() 99 return (pci_is_vga_ioport_range(start, end)); in mptable_is_vga_range() 104 u_long start, u_long end, u_long count, u_int flags) in mptable_hostb_alloc_resource() argument 110 return (pci_domain_alloc_bus(0, child, rid, start, end, count, in mptable_hostb_alloc_resource() [all …]
|
| /trueos/sys/dev/cardbus/ |
| HD | cardbus_cis.c | 65 int len, uint8_t *tupledata, uint32_t start, uint32_t *off, 68 int len, uint8_t *tupledata, uint32_t start, uint32_t *off, 71 int len, uint8_t *tupledata, uint32_t start, uint32_t *off, 74 int len, uint8_t *tupledata, uint32_t start, uint32_t *off, 77 int len, uint8_t *tupledata, uint32_t start, uint32_t *off, 80 int len, uint8_t *tupledata, uint32_t start, uint32_t *off, 83 int len, uint8_t *tupledata, uint32_t start, uint32_t *off, 86 int len, uint8_t *tupledata, uint32_t start, uint32_t *off, 89 int len, uint8_t *tupledata, uint32_t start, uint32_t *off, 93 uint32_t start, uint32_t *off, int *tupleid, int *len, [all …]
|
| /trueos/sys/vm/ |
| HD | vm_map.c | 146 void _vm_map_clip_start(vm_map_t map, vm_map_entry_t entry, vm_offset_t start); 166 #define VM_MAP_RANGE_CHECK(map, start, end) \ argument 168 if (start < vm_map_min(map)) \ 169 start = vm_map_min(map); \ 172 if (start > end) \ 173 start = end; \ 484 vnode_pager_release_writecount(object, entry->start, in vm_map_process_deferred() 865 if (addr < root->start) { in vm_map_entry_splay() 869 if (addr < y->start && y->left != NULL) { in vm_map_entry_splay() 953 after_where->end <= entry->start, in vm_map_entry_link() [all …]
|
| /trueos/sys/isa/ |
| HD | isahint.c | 43 int sensitive, start, count; in isa_hinted_child() local 60 start = 0; in isa_hinted_child() 62 resource_int_value(name, unit, "port", &start); in isa_hinted_child() 64 if (start > 0 || count > 0) in isa_hinted_child() 65 bus_set_resource(child, SYS_RES_IOPORT, 0, start, count); in isa_hinted_child() 67 start = 0; in isa_hinted_child() 69 resource_int_value(name, unit, "maddr", &start); in isa_hinted_child() 71 if (start > 0 || count > 0) in isa_hinted_child() 72 bus_set_resource(child, SYS_RES_MEMORY, 0, start, count); in isa_hinted_child() 74 if (resource_int_value(name, unit, "irq", &start) == 0 && start > 0) in isa_hinted_child() [all …]
|
| /trueos/contrib/ntp/libopts/compat/ |
| HD | pathfind.c | 210 int i, start; in canonicalize_pathname() local 224 start = i++; in canonicalize_pathname() 229 if (!result[start]) in canonicalize_pathname() 237 if ((start + 1) != i) in canonicalize_pathname() 239 if ((start + 1) != i && (start != 0 || i != 2)) in canonicalize_pathname() 242 strcpy( result + start + 1, result + i ); in canonicalize_pathname() 243 i = start + 1; in canonicalize_pathname() 247 if (start > 0 && result[start - 1] == '\\') in canonicalize_pathname() 251 if ((start && !result[i]) in canonicalize_pathname() 262 i = (start < 0) ? 0 : start; in canonicalize_pathname() [all …]
|
| /trueos/contrib/ntp/sntp/libopts/compat/ |
| HD | pathfind.c | 210 int i, start; in canonicalize_pathname() local 224 start = i++; in canonicalize_pathname() 229 if (!result[start]) in canonicalize_pathname() 237 if ((start + 1) != i) in canonicalize_pathname() 239 if ((start + 1) != i && (start != 0 || i != 2)) in canonicalize_pathname() 242 strcpy( result + start + 1, result + i ); in canonicalize_pathname() 243 i = start + 1; in canonicalize_pathname() 247 if (start > 0 && result[start - 1] == '\\') in canonicalize_pathname() 251 if ((start && !result[i]) in canonicalize_pathname() 262 i = (start < 0) ? 0 : start; in canonicalize_pathname() [all …]
|
| /trueos/contrib/subversion/subversion/libsvn_subr/ |
| HD | mergeinfo.c | 63 if (in1->start <= in2->end && in2->start <= in1->end) in combine_ranges() 69 output->start = MIN(in1->start, in2->start); in combine_ranges() 124 (SVN_IS_VALID_REVNUM((range)->start) && ((range)->start < (range)->end)) 158 if (!(r1->start <= r2->end && r2->start <= r1->end)) in get_type_of_intersection() 160 else if (r1->start == r2->start && r1->end == r2->end) in get_type_of_intersection() 162 else if (r1->end == r2->start || r2->end == r1->start) in get_type_of_intersection() 164 else if (r1->start <= r2->start && r1->end >= r2->end) in get_type_of_intersection() 166 else if (r2->start <= r1->start && r2->end >= r1->end) in get_type_of_intersection() 345 if (r2->start < r1->start) in combine_with_lastrange() 355 r2->start = r1->end; in combine_with_lastrange() [all …]
|