/freebsd/usr.sbin/bluetooth/sdpcontrol/ |
H A D | search.c | 77 print_service_class_id_list(uint8_t const *start, uint8_t const *end) in print_service_class_id_list() 81 if (end - start < 2) { in print_service_class_id_list() 83 "Too short, len=%zd\n", end - start); in print_service_class_id_list() 87 SDP_GET8(type, start); in print_service_class_id_list() 90 SDP_GET8(len, start); in print_service_class_id_list() 94 SDP_GET16(len, start); in print_service_class_id_list() 98 SDP_GET32(len, start); in print_service_class_id_list() 108 if (len > (end - start)) { in print_service_class_id_list() 114 while (start < end) { in print_service_class_id_list() 115 SDP_GET8(type, start); in print_service_class_id_list() 76 print_service_class_id_list(uint8_t const * start,uint8_t const * end) print_service_class_id_list() argument 165 print_protocol_descriptor(uint8_t const * start,uint8_t const * end) print_protocol_descriptor() argument 324 print_protocol_descriptor_list(uint8_t const * start,uint8_t const * end) print_protocol_descriptor_list() argument 410 print_bluetooth_profile_descriptor_list(uint8_t const * start,uint8_t const * end) print_bluetooth_profile_descriptor_list() argument [all...] |
/freebsd/lib/libsdp/ |
H A D | util.c | 283 sdp_print(uint32_t level, uint8_t const *start, uint8_t const *end) in sdp_print() argument 299 if (start == NULL || end == NULL) in sdp_print() 302 while (start < end) { in sdp_print() 306 SDP_GET8(type, start); in sdp_print() 314 SDP_GET8(value.uint8, start); in sdp_print() 318 SDP_GET16(value.uint16, start); in sdp_print() 322 SDP_GET32(value.uint32, start); in sdp_print() 326 SDP_GET64(value.uint64, start); in sdp_print() 332 SDP_GET128(&value.int128, start); in sdp_print() 341 SDP_GET_UUID128(&value.int128, start); in sdp_print() [all …]
|
/freebsd/contrib/mandoc/ |
H A D | mandoc.c | 95 mandoc_escape(const char **end, const char **start, int *sz) in mandoc_escape() argument 107 if (NULL == start) in mandoc_escape() 108 start = &local_start; in mandoc_escape() 127 *start = ++*end; in mandoc_escape() 131 switch ((*start)[-1]) { in mandoc_escape() 142 if (**start == ' ') { in mandoc_escape() 150 if ('\'' != **start) in mandoc_escape() 152 *start = ++*end; in mandoc_escape() 207 switch ((*start)[-1]) { in mandoc_escape() 218 switch (**start) { in mandoc_escape() [all …]
|
/freebsd/sys/netinet/ |
H A D | tcp_sack.c | 180 tcp_seq start, end; in tcp_update_dsack_list() local 190 saved_blks[0].start = rcv_start; in tcp_update_dsack_list() 193 saved_blks[0].start = saved_blks[0].end = 0; in tcp_update_dsack_list() 196 head_blk.start = head_blk.end = 0; in tcp_update_dsack_list() 197 mid_blk.start = rcv_start; in tcp_update_dsack_list() 202 start = tp->sackblks[i].start; in tcp_update_dsack_list() 204 if (SEQ_LT(rcv_end, start)) { in tcp_update_dsack_list() 213 if ((SEQ_MAX(rcv_start, start) != SEQ_MIN(rcv_end, end)) && in tcp_update_dsack_list() 214 (SEQ_GT(head_blk.start, SEQ_MAX(rcv_start, start)) || in tcp_update_dsack_list() 215 (head_blk.start == head_blk.end))) { in tcp_update_dsack_list() [all …]
|
/freebsd/stand/kboot/kboot/ |
H A D | seg.c | 51 add_avail(uint64_t start, uint64_t end, uint64_t type) in add_avail() argument 58 segs[nr_seg - 1].end + 1 == start && in add_avail() 69 segs[nr_seg].start = start; in add_avail() 81 remove_avail(uint64_t start, uint64_t end, uint64_t type) in remove_avail() argument 90 if (s->end + 1 == start && in remove_avail() 101 s->start = end + 1; in remove_avail() 123 if (s->start == start) { in remove_avail() 132 s->start = start; in remove_avail() 135 s[1].start = end + 1; in remove_avail() 143 s->end = start - 1; in remove_avail() [all …]
|
/freebsd/usr.bin/primes/ |
H A D | primes.c | 85 ubig start; /* where to start generating */ in main() local 106 start = 0; in main() 122 start = strtoumax(argv[0], &p, 0); in main() 141 start = strtoumax(argv[0], &p, 0); in main() 148 start = read_num_buf(); in main() 154 if (start > stop) in main() 156 primes(start, stop); in main() 195 primes(ubig start, ubig stop) in primes() argument 209 if (start < 3) { in primes() 210 start = (ubig)2; in primes() [all …]
|
/freebsd/contrib/llvm-project/lldb/source/Host/common/ |
H A D | LockFileBase.cpp | 23 Status LockFileBase::WriteLock(const uint64_t start, const uint64_t len) { in WriteLock() argument 24 return DoLock([&](const uint64_t start, in WriteLock() 25 const uint64_t len) { return DoWriteLock(start, len); }, in WriteLock() 26 start, len); in WriteLock() 29 Status LockFileBase::TryWriteLock(const uint64_t start, const uint64_t len) { in TryWriteLock() argument 30 return DoLock([&](const uint64_t start, in TryWriteLock() 31 const uint64_t len) { return DoTryWriteLock(start, len); }, in TryWriteLock() 32 start, len); in TryWriteLock() 35 Status LockFileBase::ReadLock(const uint64_t start, const uint64_t len) { in ReadLock() argument 36 return DoLock([&](const uint64_t start, in ReadLock() [all …]
|
/freebsd/stand/kboot/kboot/arch/powerpc64/ |
H A D | load_addr.c | 34 uint64_t start; member 61 uint64_t start, end; in kboot_get_phys_load_segment() local 72 rsvd_reg[rsvd_reg_cnt].start = be64toh(entry[0]); in kboot_get_phys_load_segment() 74 be64toh(entry[1]) + rsvd_reg[rsvd_reg_cnt].start - 1; in kboot_get_phys_load_segment() 85 rsvd_reg[rsvd_reg_cnt].start = 0; in kboot_get_phys_load_segment() 89 rsvd_reg[rsvd_reg_cnt].start = 0; in kboot_get_phys_load_segment() 109 rsvd_reg[rsvd_reg_cnt].start = 0; in kboot_get_phys_load_segment() 115 rsvd_reg[rsvd_reg_cnt].start = entry[0] + entry[1]; in kboot_get_phys_load_segment() 126 if (rsvd_reg[b].start > rsvd_reg[b + 1].start) { in kboot_get_phys_load_segment() 138 if ((rsvd_reg[a + 1].start >= rsvd_reg[a].start) && in kboot_get_phys_load_segment() [all …]
|
/freebsd/tests/sys/file/ |
H A D | closefrom_test.c | 145 int fd, flags, i, start; in main() local 150 start = devnull(); in main() 151 if (start == -1) in main() 152 fail("open", "bad descriptor %d", start); in main() 157 if (start != fd) in main() 158 fail("highest_fd", "bad descriptor %d != %d", start, fd); in main() 162 closefrom(start + 1); in main() 164 if (fd != start) in main() 172 if (fd != start + 16) in main() 276 start = fd - 7; in main() [all …]
|
/freebsd/sys/dev/iommu/ |
H A D | iommu_gas.c | 130 KASSERT(a->start <= a->end, ("inverted entry %p (%jx, %jx)", in iommu_gas_cmp_entries() 131 a, (uintmax_t)a->start, (uintmax_t)a->end)); in iommu_gas_cmp_entries() 132 KASSERT(b->start <= b->end, ("inverted entry %p (%jx, %jx)", in iommu_gas_cmp_entries() 133 b, (uintmax_t)b->start, (uintmax_t)b->end)); in iommu_gas_cmp_entries() 135 a->end <= b->start || b->end <= a->start || in iommu_gas_cmp_entries() 136 a->end == a->start || b->end == b->start, in iommu_gas_cmp_entries() 139 a, (uintmax_t)a->start, (uintmax_t)a->end, a->flags, in iommu_gas_cmp_entries() 140 b, (uintmax_t)b->start, (uintmax_t)b->end, b->flags, in iommu_gas_cmp_entries() 161 bound = entry->start; in iommu_gas_augment_entry() 206 v = MAX(v, entry->start - l->last); in iommu_gas_check_free() [all …]
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | range_tree.c | 204 void *arg, uint64_t start, uint64_t shift, uint64_t gap) in ZFS_BTREE_FIND_IN_BUF_FUNC() 238 rt->rt_start = start; in ZFS_BTREE_FIND_IN_BUF_FUNC() 249 void *arg, uint64_t start, uint64_t shift) in range_tree_create() argument 251 return (range_tree_create_gap(ops, type, arg, start, shift, 0)); in range_tree_create() 291 range_tree_add_impl(void *arg, uint64_t start, uint64_t size, uint64_t fill) in range_tree_add_impl() argument 297 uint64_t end = start + size, gap = rt->rt_gap; in range_tree_add_impl() 303 ASSERT3U(start + size, >, start); in range_tree_add_impl() 305 rs_set_start(&rsearch, rt, start); in range_tree_add_impl() 321 (longlong_t)start, (longlong_t)size); in range_tree_add_impl() 326 if (rstart <= start && rend >= end) { in range_tree_add_impl() [all …]
|
/freebsd/contrib/wpa/src/wps/ |
H A D | 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 …]
|
/freebsd/sys/x86/x86/ |
H A D | mptable_pci.c | 73 mptable_is_isa_range(rman_res_t start, rman_res_t end) in mptable_is_isa_range() argument 78 if ((start & 0xfc00) != (end & 0xfc00)) in mptable_is_isa_range() 80 start &= ~0xfc00; in mptable_is_isa_range() 82 return (start >= 0x100 && end <= 0x3ff); in mptable_is_isa_range() 86 mptable_is_vga_range(rman_res_t start, rman_res_t end) in mptable_is_vga_range() argument 90 if ((start & 0xfc00) != (end & 0xfc00)) in mptable_is_vga_range() 92 start &= ~0xfc00; in mptable_is_vga_range() 94 return (pci_is_vga_ioport_range(start, end)); in mptable_is_vga_range() 99 rman_res_t start, rman_res_t end, rman_res_t count, u_int flags) in mptable_hostb_alloc_resource() argument 104 return (pci_domain_alloc_bus(0, child, rid, start, en in mptable_hostb_alloc_resource() 138 mptable_hostb_adjust_resource(device_t dev,device_t child,struct resource * r,rman_res_t start,rman_res_t end) mptable_hostb_adjust_resource() argument [all...] |
/freebsd/sys/dev/cardbus/ |
H A D | 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 …]
|
/freebsd/contrib/libarchive/libarchive/ |
H A D | archive_acl.c | 62 static int isint_w(const wchar_t *start, const wchar_t *end, int *result); 63 static int ismode_w(const wchar_t *start, const wchar_t *end, int *result); 64 static int is_nfs4_flags_w(const wchar_t *start, const wchar_t *end, 66 static int is_nfs4_perms_w(const wchar_t *start, const wchar_t *end, 68 static void next_field_w(const wchar_t **wp, const wchar_t **start, 73 static int isint(const char *start, const char *end, int *result); 74 static int ismode(const char *start, const char *end, int *result); 75 static int is_nfs4_flags(const char *start, const char *end, 77 static int is_nfs4_perms(const char *start, const char *end, 79 static void next_field(const char **p, size_t *l, const char **start, [all …]
|
/freebsd/sys/isa/ |
H A D | isahint.c | 42 int sensitive, start, count; in isa_hinted_child() local 59 start = 0; in isa_hinted_child() 61 resource_int_value(name, unit, "port", &start); in isa_hinted_child() 63 if (start > 0 || count > 0) in isa_hinted_child() 64 bus_set_resource(child, SYS_RES_IOPORT, 0, start, count); in isa_hinted_child() 66 start = 0; in isa_hinted_child() 68 resource_int_value(name, unit, "maddr", &start); in isa_hinted_child() 70 if (start > 0 || count > 0) in isa_hinted_child() 71 bus_set_resource(child, SYS_RES_MEMORY, 0, start, count); in isa_hinted_child() 73 if (resource_int_value(name, unit, "irq", &start) == 0 && start > 0) in isa_hinted_child() [all …]
|
/freebsd/contrib/ntp/sntp/libopts/compat/ |
H A D | pathfind.c | 153 int i, start; in canonicalize_pathname() local 167 start = i++; in canonicalize_pathname() 172 if (!result[start]) in canonicalize_pathname() 180 if ((start + 1) != i) in canonicalize_pathname() 182 if ((start + 1) != i && (start != 0 || i != 2)) in canonicalize_pathname() 185 strcpy( result + start + 1, result + i ); in canonicalize_pathname() 186 i = start + 1; in canonicalize_pathname() 190 if (start > 0 && result[start - 1] == '\\') in canonicalize_pathname() 194 if ((start && !result[i]) in canonicalize_pathname() 205 i = (start < 0) ? 0 : start; in canonicalize_pathname() [all …]
|
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/misc/ |
H A D | tst.schrock.ksh | 46 self->start = vtimestamp; 50 /self->start/ 52 trace(vtimestamp - self->start); 56 /self->start/ 58 trace(vtimestamp - self->start); 62 /self->start/ 64 self->start = 0; 69 /self->start/ 71 trace(vtimestamp - self->start); 75 /self->start/ [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/builtins/ |
H A D | clear_cache.c | 61 void __clear_cache(void *start, void *end) { in __clear_cache() argument 66 FlushInstructionCache(GetCurrentProcess(), start, end - start); in __clear_cache() 71 arg.addr = (uintptr_t)start; in __clear_cache() 72 arg.len = (uintptr_t)end - (uintptr_t)start; in __clear_cache() 83 register int start_reg __asm("r0") = (int)(intptr_t)start; in __clear_cache() 97 const uintptr_t start_int = (uintptr_t)start; in __clear_cache() 116 _flush_cache(start, end_int - start_int, BCACHE); in __clear_cache() 124 uint64_t xstart = (uint64_t)(uintptr_t)start; in __clear_cache() 161 const size_t len = (uintptr_t)end - (uintptr_t)start; in __clear_cache() 164 const uintptr_t start_line = ((uintptr_t)start) & mask; in __clear_cache() [all …]
|
/freebsd/contrib/bmake/ |
H A D | str.h | 44 const char *start; member 111 Substring_Init(const char *start, const char *end) in Substring_Init() argument 115 sub.start = start; in Substring_Init() 129 return (size_t)(sub.end - sub.start); in Substring_Length() 135 return sub.start == sub.end; in Substring_IsEmpty() 143 memcmp(sub.start, str, len) == 0; in Substring_Equals() 151 memcmp(sub.start, str.start, len) == 0; in Substring_Eq() 158 memcmp(sub.start, prefix.start, Substring_Length(prefix)) == 0; in Substring_HasPrefix() 166 memcmp(sub.end - suffixLen, suffix.start, suffixLen) == 0; in Substring_HasSuffix() 175 return FStr_InitOwn(bmake_strsedup(sub.start, sub.end)); in Substring_Str() [all …]
|
/freebsd/sys/netinet/tcp_stacks/ |
H A D | sack_filter.c | 131 /* start with the oldest */ in sack_filter_prune() 138 } else if (SEQ_GT(th_ack, sf->sf_blks[i].start)) { 140 sf->sf_blks[i].start = th_ack; 165 if (SEQ_LT(b->start, sf->sf_ack)) { in is_sack_on_board() 167 b->start = sf->sf_ack; in is_sack_on_board() 173 if (b->start == b->end) { in is_sack_on_board() 176 span_start = b->start; in is_sack_on_board() 181 if (SEQ_LEQ(sf->sf_blks[i].start, b->start) && in is_sack_on_board() 197 if(SEQ_LT(sf->sf_blks[i].end, b->start)) { in is_sack_on_board() 742 uint32_t start; main() local [all...] |
/freebsd/sys/contrib/dev/athk/ath10k/ |
H A D | coredump.c | 803 .start = 0x400000, 815 .start = 0x0, 830 .start = 0x27000, 846 .start = 0x400000, 856 .start = 0xa0000, 866 .start = 0x800, 879 .start = 0x400000, 889 .start = 0xa0000, 899 .start = 0x00980000, 909 .start = 0x00a00000, [all …]
|
/freebsd/contrib/ntp/libjsmn/example/ |
H A D | simple.c | 15 if (tok->type == JSMN_STRING && (int) strlen(s) == tok->end - tok->start && in jsoneq() 16 strncmp(json + tok->start, s, tok->end - tok->start) == 0) { in jsoneq() 45 printf("- User: %.*s\n", t[i+1].end-t[i+1].start, in main() 46 JSON_STRING + t[i+1].start); in main() 50 printf("- Admin: %.*s\n", t[i+1].end-t[i+1].start, in main() 51 JSON_STRING + t[i+1].start); in main() 55 printf("- UID: %.*s\n", t[i+1].end-t[i+1].start, in main() 56 JSON_STRING + t[i+1].start); in main() 66 printf(" * %.*s\n", g->end - g->start, JSON_STRING + g->start); in main() 70 printf("Unexpected key: %.*s\n", t[i].end-t[i].start, in main() [all …]
|
/freebsd/crypto/openssl/crypto/dso/ |
H A D | dso_win32.c | 208 const char *start = filename; in win32_splitter() local 228 start = filename; in win32_splitter() 229 result->node = start; in win32_splitter() 241 result->device = start; in win32_splitter() 242 result->devicelen = (int)(filename - start); in win32_splitter() 244 start = ++filename; in win32_splitter() 245 result->dir = start; in win32_splitter() 250 result->nodelen = (int)(filename - start); in win32_splitter() 252 start = ++filename; in win32_splitter() 253 result->dir = start; in win32_splitter() [all …]
|
/freebsd/sys/dev/drm2/ |
H A D | drm_mm.h | 52 unsigned long start; member 78 unsigned long *start, unsigned long *end); 113 unsigned long start, 132 unsigned long start, in drm_mm_get_block_range() argument 136 start, end, 0); in drm_mm_get_block_range() 143 unsigned long start, in drm_mm_get_color_block_range() argument 147 start, end, 0); in drm_mm_get_color_block_range() 153 unsigned long start, in drm_mm_get_block_atomic_range() argument 157 start, end, 1); in drm_mm_get_block_atomic_range() 168 unsigned long start, [all …]
|