Home
last modified time | relevance | path

Searched refs:bytes (Results 1 – 25 of 136) sorted by relevance

123456

/xnu-11215/libkern/libkern/c++/
H A DOSAllocation.h48 allocate(size_t bytes) in allocate()
50 return IOMalloc(bytes); in allocate()
54 allocate_zero(size_t bytes) in allocate_zero()
56 return IOMallocZero(bytes); in allocate_zero()
62 IOFree(p, bytes); in deallocate()
69 allocate(size_t bytes) in allocate()
71 return IOMallocData(bytes); in allocate()
75 allocate_zero(size_t bytes) in allocate_zero()
83 IOFreeData(p, bytes); in deallocate()
103 allocate(size_t bytes)
[all …]
H A DOSData.h172 const void * bytes,
235 void * bytes,
381 const void * bytes,
442 void * bytes,
702 const void * bytes,
850 const void * bytes,
H A Dsafe_allocation.h215 size_t bytes;
216 if (__improbable(os_mul_overflow(n, sizeof(T), &bytes) || (n > UINT32_MAX))) {
220 data_ = reinterpret_cast<T*>(Allocator::allocate(bytes));
233 size_t bytes;
234 if (__improbable(os_mul_overflow(n, sizeof(T), &bytes) || (n > UINT32_MAX))) {
238 data_ = reinterpret_cast<T*>(Allocator::allocate_zero(bytes));
/xnu-11215/tools/lldbmacros/usertaskdebugging/
H A Dgdbserver.py137 bytes = ''
139 bytes = self.process.getFirstThreadInfo()
141 bytes = self.process.getSubsequestThreadInfo()
149 return rsprotocol.Message(bytes)
158 bytes = ''
169 return rsprotocol.Message(bytes)
172 bytes = ''
176 bytes = self.process.getRegisterInfo(regnum)
179 return rsprotocol.Message(bytes)
186 bytes = ''
[all …]
/xnu-11215/tools/lldbmacros/core/
H A Dio.py67 return bytes()
70 return bytes(data)
77 return bytes()
79 return bytes(data)
81 def readinto(self, bytes): argument
83 data = self.read(len(bytes))
85 bytes[:len(data)] = data
91 def write(self, bytes): argument
/xnu-11215/bsd/net/
H A Dflowhash.c102 (((u_int32_t)bytes[0]) << 24) | in getblock32()
103 (((u_int32_t)bytes[1]) << 16) | in getblock32()
104 (((u_int32_t)bytes[2]) << 8) | in getblock32()
105 ((u_int32_t)bytes[3]); in getblock32()
108 (((u_int32_t)bytes[3]) << 24) | in getblock32()
110 (((u_int32_t)bytes[1]) << 8) | in getblock32()
111 ((u_int32_t)bytes[0]); in getblock32()
134 (((u_int64_t)bytes[6]) << 8) | in getblock64()
135 ((u_int64_t)bytes[7]); in getblock64()
144 (((u_int64_t)bytes[1]) << 8) | in getblock64()
[all …]
H A Dmblist.h47 uint32_t bytes; member
67 list->bytes += mbuf_pkthdr_len(m); in mblist_append()
81 list->bytes += append.bytes; in mblist_append_list()
/xnu-11215/bsd/skywalk/nexus/netif/
H A Dnx_netif_filter_compat.c83 uint32_t cnt = 0, bytes = 0; in nx_netif_filter_tx_processed_mbuf_dequeue() local
104 while (cnt < pkt_limit && bytes < byte_limit) { in nx_netif_filter_tx_processed_mbuf_dequeue()
110 bytes += m_pktlen(m); in nx_netif_filter_tx_processed_mbuf_dequeue()
126 uint32_t cnt = 0, bytes = 0, qlen = 0, tc; in nx_netif_filter_tx_processed_mbuf_enqueue() local
139 nx_netif_mbuf_chain_info(m_chain, &m_tail, &cnt, &bytes); in nx_netif_filter_tx_processed_mbuf_enqueue()
150 nx_mbq_enq_multi(q, m_chain, m_tail, cnt, bytes); in nx_netif_filter_tx_processed_mbuf_enqueue()
193 if (bytes != NULL) { in nx_netif_tx_processed_mbuf_get_len()
194 *bytes += (uint32_t)qsize; in nx_netif_tx_processed_mbuf_get_len()
204 uint32_t, (bytes != NULL) ? *bytes : 0); in nx_netif_tx_processed_mbuf_get_len()
294 uint32_t *packets, uint32_t *bytes, errno_t orig_err) in nx_netif_compat_tx_get_len() argument
[all …]
H A Dnx_netif_filter_native.c82 uint32_t cnt = 0, bytes = 0; in nx_netif_filter_tx_processed_pkt_dequeue() local
103 while (cnt < pkt_limit && bytes < byte_limit) { in nx_netif_filter_tx_processed_pkt_dequeue()
109 bytes += p->pkt_length; in nx_netif_filter_tx_processed_pkt_dequeue()
126 uint32_t cnt = 0, bytes = 0, qlen = 0, tc; in nx_netif_filter_tx_processed_pkt_enqueue() local
139 nx_netif_pkt_chain_info(p_chain, &p_tail, &cnt, &bytes); in nx_netif_filter_tx_processed_pkt_enqueue()
151 nx_pktq_enq_multi(q, p_chain, p_tail, cnt, bytes); in nx_netif_filter_tx_processed_pkt_enqueue()
195 if (bytes != NULL) { in nx_netif_tx_processed_pkt_get_len()
196 *bytes += (uint32_t)qsize; in nx_netif_tx_processed_pkt_get_len()
206 uint32_t, (bytes != NULL) ? *bytes : 0); in nx_netif_tx_processed_pkt_get_len()
295 uint32_t sc, uint32_t *packets, uint32_t *bytes, in nx_netif_native_tx_get_len() argument
[all …]
/xnu-11215/osfmk/arm64/
H A Dloose_ends.c91 vm_size_t count = bytes; in bcopy_phys_internal()
92 vm_size_t count2 = bytes; in bcopy_phys_internal()
155 if (count > bytes) { in bcopy_phys_internal()
156 count = bytes; in bcopy_phys_internal()
181 bytes -= count; in bcopy_phys_internal()
195 bzero_phys(src64, bytes); in bzero_phys_nc()
212 while (bytes > 0) { in bzero_phys()
239 if (count > bytes) { in bzero_phys()
240 count = bytes; in bzero_phys()
290 bytes -= count; in bzero_phys()
[all …]
/xnu-11215/osfmk/x86_64/
H A Dloose_ends.c218 uint32_t bytes) in bzero_phys_nc() argument
220 bzero_phys(src64, bytes); in bzero_phys_nc()
226 uint32_t bytes) in bzero_phys() argument
228 bzero(PHYSMAP_PTOV(src64), bytes); in bzero_phys()
240 vm_size_t bytes) in bcopy_phys() argument
257 vm_size_t bytes, in apply_func_phys() argument
266 return func(PHYSMAP_PTOV(dst64), bytes, arg); in apply_func_phys()
281 if (from + bytes <= to || to + bytes <= from || to == from) { in ovbcopy()
287 from += bytes - 1; in ovbcopy()
288 to += bytes - 1; in ovbcopy()
[all …]
/xnu-11215/libsyscall/wrappers/spawn/
H A Dposix_spawn_filtering.c148 size_t bytes = 0; in evaluate_rules() local
150 if (sizeof(read_buffer) - bytes <= 0) { in evaluate_rules()
154 bzero(read_buffer + bytes, sizeof(read_buffer) - bytes); in evaluate_rules()
156 read_buffer + bytes, sizeof(read_buffer) - bytes); in evaluate_rules()
167 bytes += read_result; in evaluate_rules()
169 while (bytes > 0) { in evaluate_rules()
170 char *newline_pos = memchr(read_buffer, '\n', bytes); in evaluate_rules()
221 bytes -= line_length + 1; in evaluate_rules()
/xnu-11215/libkern/c++/
H A DOSData.cpp118 if ((inLength && !bytes) || !initWithCapacity(inLength)) { in initWithBytes()
122 if (bytes != data) { in initWithBytes()
123 bcopy(bytes, data, inLength); in initWithBytes()
139 data = bytes; in initWithBytesNoCopy()
176 OSData::withBytes(const void *bytes, unsigned int inLength) in withBytes() argument
180 if (me && !me->initWithBytes(bytes, inLength)) { in withBytes()
187 OSData::withBytesNoCopy(void *bytes, unsigned int inLength) in withBytesNoCopy() argument
191 if (me && !me->initWithBytesNoCopy(bytes, inLength)) { in withBytesNoCopy()
334 OSData::appendBytes(const void *bytes, unsigned int inLength) in appendBytes() argument
354 if (bytes) { in appendBytes()
[all …]
/xnu-11215/tests/
H A Dbig_map_test.c57 size_t bytes = gigs * gb; variable
59 T_LOG("trying %zu bytes (%d GB)\n", bytes, gigs);
61 T_QUIET; T_ASSERT_POSIX_SUCCESS(ftruncate(fd, bytes), "ftruncate");
63 void *p = mmap(NULL, bytes, PROT_READ, MAP_FILE | MAP_SHARED, fd, 0);
67 T_QUIET; T_ASSERT_POSIX_SUCCESS(munmap(p, bytes), "munmap");
/xnu-11215/bsd/i386/
H A Dparam.h139 #define btodb(bytes, devBlockSize) \ argument
140 ((unsigned)(bytes) / devBlockSize)
144 #define btodb(bytes) /* calculates (bytes / DEV_BSIZE) */ \ argument
145 ((unsigned)(bytes) >> DEV_BSHIFT)
/xnu-11215/bsd/arm/
H A Dparam.h115 #define btodb(bytes, devBlockSize) \ argument
116 ((unsigned)(bytes) / devBlockSize)
120 #define btodb(bytes) /* calculates (bytes / DEV_BSIZE) */ \ argument
121 ((unsigned)(bytes) >> DEV_BSHIFT)
/xnu-11215/osfmk/vm/
H A DWKdm_new.h82 unsigned int bytes);
93 unsigned int bytes);
105 unsigned int bytes);
/xnu-11215/osfmk/i386/
H A Dphys.c204 ml_copy_phys(addr64_t src64, addr64_t dst64, vm_size_t bytes) in ml_copy_phys() argument
246 …uint32_t)src64 & (I386_PGBYTES - 1)) + bytes) > I386_PGBYTES) || ((((uint32_t)dst64 & (I386_PGBYTE… in ml_copy_phys()
256 switch (bytes) { in ml_copy_phys()
268 err = _bcopy(src, dst, bytes); in ml_copy_phys()
/xnu-11215/libkdd/
H A Dkdd_main.m63 NSDictionary *dict = parseKCDataBuffer((void*)data.bytes, (uint32_t)data.length, &error);
69 stream.next_in = (void*) data.bytes;
91 dict = parseKCDataBuffer((void*)inflated.bytes, (uint32_t)inflated.length, &error);
99 dict = parseKCDataBuffer((void*)decoded.bytes, (uint32_t)decoded.length, &error);
118 fwrite(plist.bytes, plist.length, 1, stdout);
/xnu-11215/tests/skywalk/
H A Dskt_filter.c74 uint64_t bytes; member
939 int bytes, error = 0; in receiver_socket_thread() local
942 while (args->bytes < SOCKET_BYTES) { in receiver_socket_thread()
944 SKTC_ASSERT_ERR(bytes != -1); in receiver_socket_thread()
945 args->bytes += bytes; in receiver_socket_thread()
973 args->bytes = 0; in receiver_socket_start()
1159 bytes = write(fd, databuf, bytes); in sender_socket_thread()
1160 SKTC_ASSERT_ERR(bytes != -1); in sender_socket_thread()
1161 remain -= bytes; in sender_socket_thread()
1162 args->bytes += bytes; in sender_socket_thread()
[all …]
H A Dskt_flowlookup.c112 sktu_dump_buffer(stderr, NULL, &tx_frame->bytes[0], tx_frame->len); in test_tcp_flow_send()
121 sktu_dump_buffer(stderr, "Received", &rx_frame->bytes, rx_frame->len); in test_tcp_flow_send()
161 sktu_dump_buffer(stderr, "Received", &rx_frame->bytes, rx_frame->len); in test_tcp_flow_receive()
196 sktu_dump_buffer(stderr, "Received", &rx_frame->bytes, rx_frame->len); in test_tcp_flow_listen()
216 sktu_dump_buffer(stderr, "Received", &rx_frame->bytes, rx_frame->len); in test_tcp_flow_listen()
250 sktu_dump_buffer(stderr, "Received", &rx_frame->bytes, rx_frame->len); in test_tcp_flow_listen_v6()
271 sktu_dump_buffer(stderr, "Received", &rx_frame->bytes, rx_frame->len); in test_tcp_flow_listen_v6()
357 sktu_dump_buffer(stderr, "Received", &rx_frame->bytes, rx_frame->len); in test_ip_flow_listen()
378 sktu_dump_buffer(stderr, "Received", &rx_frame->bytes, rx_frame->len); in test_ip_flow_listen()
/xnu-11215/tools/lldbmacros/tests/lldbmock/
H A Dmemorymock.py68 def serialize(self, value: typing.Any, size: int) -> bytes:
72 def deserialize(self, data: bytes, offs: int, size: int) -> typing.Any: argument
99 if isinstance(value, bytes) or isinstance(value, bytearray):
104 def serialize(self, value: typing.Any, size: int) -> bytes:
107 def deserialize(self, data: bytes, offs: int, size: int) -> typing.Any: argument
123 def serialize(self, value: typing.Any, size: int) -> bytes:
126 def deserialize(self, data: bytes, offs: int, size: int) -> typing.Any: argument
202 def deserialize(self, data: bytes) -> typing.Any: argument
215 def __init__(self, bytes): argument
216 self._buf = bytes
[all …]
/xnu-11215/iokit/DriverKit/
H A Dsafe_allocation.h215 size_t bytes;
216 if (__improbable(os_mul_overflow(n, sizeof(T), &bytes) || (n > UINT32_MAX))) {
220 data_ = reinterpret_cast<T*>(Allocator::allocate(bytes));
233 size_t bytes;
234 if (__improbable(os_mul_overflow(n, sizeof(T), &bytes) || (n > UINT32_MAX))) {
238 data_ = reinterpret_cast<T*>(Allocator::allocate_zero(bytes));
/xnu-11215/EXTERNAL_HEADERS/CoreEntitlements/
H A DSerialization.h59 void* bytes; member
71 …izedElementSetData(CESerializedElement_t *element, void *__sized_by(length) bytes, size_t length) { in CESerializedElementSetData() argument
72 element->data.value = (intptr_t)bytes; in CESerializedElementSetData()
/xnu-11215/iokit/Kernel/
H A DIOLib.cpp1336 vm_size_t bytes, in iopa_alloc() argument
1354 if (((uint32_t) bytes) != bytes) { in iopa_alloc()
1357 if (!bytes) { in iopa_alloc()
1358 bytes = 1; in iopa_alloc()
1371 a->bytecount += bytes; in iopa_alloc()
1392 a->bytecount += bytes; in iopa_alloc()
1403 iopa_free(iopa_t * a, uintptr_t addr, vm_size_t bytes) in iopa_free() argument
1409 if (((uint32_t) bytes) != bytes) { in iopa_free()
1412 if (!bytes) { in iopa_free()
1413 bytes = 1; in iopa_free()
[all …]

123456