/xnu-2782.1.97/libkern/crypto/ |
H A D | corecrypto_des.c | 183 int len, des_cbc_key_schedule *ks) 190 assert(len%8==0); 191 nblocks=len/8; 182 des_cbc_cksum(des_cblock *in, des_cblock *out, int len, des_cbc_key_schedule *ks) argument
|
/xnu-2782.1.97/bsd/hfs/hfscommon/BTree/ |
H A D | BTree.c | 471 u_int16_t len; local 557 GetRecordByIndex (btreePtr, node.buffer, index, &keyPtr, &recordPtr, &len); 559 if (recordLen != nil) *recordLen = len; 567 if (len > recordSize) len = recordSize; 569 BlockMoveData (recordPtr, record->bufferAddress, len); 659 u_int16_t len; local 848 err = GetRecordByIndex (btreePtr, node.buffer, index, &keyPtr, &recordPtr, &len); 852 *recordLen = len; 860 if (len > recordSiz 977 u_int16_t len; local [all...] |
/xnu-2782.1.97/bsd/kern/ |
H A D | kern_newsysctl.c | 105 int *name, u_int namelen, int *next, int *len, int level, 109 STATIC int name2oid (char *name, int *oid, u_int *len); 703 * len Pointer to receive new OID 706 * len value) 715 * *len Modified to contain new length 726 int *next, int *len, int level, struct sysctl_oid **oidpp) 730 *len = level; 748 len, level+1, oidpp)) 763 next+1, len, level+1, oidpp)) 775 len, leve 725 sysctl_sysctl_next_ls(struct sysctl_oid_list *lsp, int *name, u_int namelen, int *next, int *len, int level, struct sysctl_oid **oidpp) argument 864 name2oid(char *name, int *oid, u_int *len) argument 964 u_int len = 0; /* set by name2oid() */ local [all...] |
H A D | netboot.c | 293 int len; local 302 dhcptag_root_path_e, &len, NULL); 304 memcpy(root_path, path, len); 305 root_path[len] = '\0'; 506 int len; local 515 dhcptag_subnet_mask_e, &len, NULL); 520 dhcpol_find(&options, dhcptag_router_e, &len, NULL);
|
/xnu-2782.1.97/bsd/net/classq/ |
H A D | classq_sfb.c | 658 sfb_swap_bins(struct sfb *sp, u_int32_t len) argument 669 sp->sfb_clearpkts = len; 676 "qlen=%d\n", if_name(sp->sfb_ifp), sp->sfb_qid, s, len); 872 VERIFY(bin->pkts > 0 && bin->bytes >= (u_int32_t)pkt->len); 874 bin->bytes -= pkt->len; 897 VERIFY(bin->pkts > 0 && bin->bytes >= (u_int64_t)pkt->len); 899 bin->bytes -= pkt->len; 911 VERIFY(bin->pkts > 0 && bin->bytes >= pkt->len); 913 bin->bytes -= pkt->len; 952 bin->bytes += pkt->len; 1396 u_int32_t cnt = 0, len = 0; local [all...] |
H A D | classq.c | 324 _flushq_flow(class_queue_t *q, u_int32_t flow, u_int32_t *cnt, u_int32_t *len) argument 364 if (len != NULL) 365 *len = l;
|
/xnu-2782.1.97/bsd/netinet6/ |
H A D | ah_output.c | 263 m->m_pkthdr.len += ahlen; 268 m->m_pkthdr.len += ahlen; 451 m->m_pkthdr.len += ahlen; 454 if (m->m_pkthdr.len - sizeof(struct ip6_hdr) > IPV6_MAXPACKET) { 461 ip6->ip6_plen = htons(m->m_pkthdr.len - sizeof(struct ip6_hdr)); 615 "(code=%02x len=%02x)\n", 626 "(code=%02x len=%02x)\n",
|
H A D | ip6_forward.c | 132 u_int32_t inzone, outzone, len; local 260 mcopy = m_copy(m, 0, imin(m->m_pkthdr.len, ICMPV6_PLD_MAXLEN)); 531 if (m->m_pkthdr.len > rt->rt_ifp->if_mtu) { 723 len = m_pktlen(m); 736 rcvifp->if_fbytes += len;
|
/xnu-2782.1.97/tools/tests/affinity/ |
H A D | sets.c | 282 size_t len; local 290 len = sizeof(cacheconfig); 292 &cacheconfig[0], &len, NULL, 0) != 0) { 296 len = sizeof(cachesize); 298 &cachesize[0], &len, NULL, 0) != 0) {
|
/xnu-2782.1.97/bsd/net/ |
H A D | ndrv.c | 451 int len; local 459 len = np->nd_laddr->snd_len; 460 MALLOC(*nam, struct sockaddr *, len, M_SONAME, M_WAITOK); 464 (unsigned)len); 473 int len; local 481 len = np->nd_faddr->snd_len; 482 MALLOC(*nam, struct sockaddr *, len, M_SONAME, M_WAITOK); 486 (unsigned)len); 627 int len; local 631 len [all...] |
H A D | if_utun_crypto_ipsec.c | 278 int len = sizeof(*new) + BITSTOBYTES(key_len); local 281 new = utun_alloc(len); 286 bzero(new, len); 430 printf("%s: invalid auth key len %d, max %d\n", __FUNCTION__, 435 printf("%s: invalid enc key len %d, max %d\n", __FUNCTION__, 441 printf("%s: len check failed (%d,%d, %d)\n", __FUNCTION__, 814 ip->ip_len = ntohs(ip->ip_len); /* flip len field before calling ip_output */ 902 plen = new->m_pkthdr.len - sizeof(struct ip6_hdr); 904 printf("%s: esp6_output failed due to invalid len (%d)\n", __FUNCTION__, plen); 911 ip6->ip6_plen = ntohs(ip6->ip6_plen); /* flip len fiel [all...] |
H A D | pktap.c | 152 pktap_hexdump(int mask, void *addr, size_t len) argument 160 for (i = 0; i < len; i++) { 561 size_t len; local 570 len = strlen(pktap_filter->filter_param_if_name); 571 if (pktap_filter->filter_param_if_name[len] < '0' || 572 pktap_filter->filter_param_if_name[len] > '9') 573 pktap_filter->filter_ifname_prefix_len = len; 685 size_t len = pktap_filter->filter_ifname_prefix_len != 0 ? local 706 len) == 0) { 729 len) [all...] |
/xnu-2782.1.97/bsd/net/pktsched/ |
H A D | pktsched_hfsc.c | 763 u_int32_t len; local 785 len = m_pktlen(m); 797 PKTCNTR_ADD(&cl->cl_stats.drop_cnt, 1, len); 798 IFCQ_DROP_ADD(ifq, 1, len); 815 set_active(cl, len); 832 u_int32_t len, next_len; local 897 len = m_pktlen(m); 900 IFCQ_XMIT_ADD(ifq, 1, len); 901 PKTCNTR_ADD(&cl->cl_stats.xmit_cnt, 1, len); 903 update_vf(cl, len, cur_tim 1027 u_int32_t cnt = 0, len = 0, qlen; local 1178 set_active(struct hfsc_class *cl, u_int32_t len) argument 1244 init_vf(struct hfsc_class *cl, u_int32_t len) argument 1337 update_vf(struct hfsc_class *cl, u_int32_t len, u_int64_t cur_time) argument [all...] |
H A D | pktsched_qfq.c | 357 u_int32_t cnt, len; local 364 pr->flow, &cnt, &len); 366 pr->bytes += len; 911 u_int32_t len; local 914 len = m_pktlen(qhead(&cl->cl_q)); 915 cl->cl_F = cl->cl_S + (u_int64_t)len * cl->cl_inv_w; 941 u_int32_t len; local 973 len = m_pktlen(m); 982 PKTCNTR_ADD(&cl->cl_xmitcnt, 1, len); 983 IFCQ_XMIT_ADD(ifq, 1, len); 1078 int len, ret, s; local 1425 u_int32_t cnt = 0, len = 0, qlen; local [all...] |
/xnu-2782.1.97/bsd/netinet/ |
H A D | mptcp.c | 259 mp_tp->mpt_rcvatmark, m->m_pkthdr.len)); 633 printf("%s: seqn = %x len = %x full = %llx rcvnxt = %llu \n", 705 uint16_t len; local 732 len = htons(tp->t_rcv_map.mpt_len); 734 sum += in_pseudo64(dsn, sseq, (len + csum)); 743 mptcp_output_csum(struct tcpcb *tp, struct mbuf *m, int32_t len, argument 762 if (len) 763 sum = m_sum16(m, hdrlen, len);
|
H A D | udp_usrreq.c | 290 int len, isbroadcast; local 362 len = ntohs((u_short)uh->uh_ulen); 363 if (ip->ip_len != len) { 364 if (len > ip->ip_len || len < sizeof (struct udphdr)) { 369 m_adj(m, len - ip->ip_len); 370 /* ip->ip_len = len; */ 381 if (udp_input_checksum(m, uh, iphlen, len)) 590 int payload_len = len - sizeof (struct udphdr) > 4 ? 4 : 591 len 1299 int len = m->m_pkthdr.len; local 2147 udp_in_cksum_stats(u_int32_t len) argument 2154 udp_out_cksum_stats(u_int32_t len) argument 2162 udp_in6_cksum_stats(u_int32_t len) argument 2169 udp_out6_cksum_stats(u_int32_t len) argument [all...] |
H A D | ip_dummynet.h | 88 * 2. virtual times. These increase in steps of len/x, where len is the 280 u_int len ; member in struct:dn_flow_queue 446 u_int len ; member in struct:dn_flow_queue_32 571 u_int len ; member in struct:dn_flow_queue_64
|
/xnu-2782.1.97/tools/lldbmacros/ |
H A D | userspace.py | 160 if not cmd_args or len(cmd_args) < 3: 176 for i in range(len(upacked_data)): 256 if len(arr) == 0 : 364 data_len = len(strdata) 386 if len(path_str_data) == 0: 419 if len(mh_data) == 0: 550 num_images_found = len(image_info_list) 561 if len(image_print_s) > 0: 574 if len(image_print_s) > 0: 591 if cmd_args == None or len(cmd_arg [all...] |
H A D | process.py | 71 if state_val < 1 or state_val > len(xnudefines.proc_state_strings) : 123 if len(kern.zombprocs) != 0: 134 if len(kern.zombprocs) != 0: 275 if len(str(th_name_strval)) > 0 : 318 if len(wait_event_str_sym) > 0: 660 if len(tty_state_info[index][1]) > 0: 663 if len(tty_state_info[index][0]) > 0: 870 if cmd_args == None or len(cmd_args) < 1: 883 if cmd_args == None or len(cmd_args) < 1: 902 if cmd_args == None or len(cmd_arg [all...] |
/xnu-2782.1.97/tools/tests/libMicro/ |
H A D | libmicro.c | 1106 int len = strlen(arg); local 1110 if (len && isalpha(arg[len - 1])) { 1111 switch (arg[len - 1]) { 1129 for (i = 0; i < len - 1; i++) 1140 int len = strlen(arg); local 1144 if (len && isalpha(arg[len - 1])) { 1145 switch (arg[len - 1]) { 1163 for (i = 0; i < len [all...] |
/xnu-2782.1.97/bsd/vfs/ |
H A D | vfs_fsevents.c | 70 len; // the length of the path in "str" member in struct:kfs_event 695 cur->len = pathbuff_len; 733 cur->len = (int16_t)(va_arg(ap, int32_t) & 0x7fff); 734 if (cur->len >= 1) { 735 cur->str = vfs_addname(va_arg(ap, char *), cur->len, 0, 0); 737 printf("add_fsevent: funny looking string length: %d\n", (int)cur->len); 738 cur->len = 2; 739 cur->str = vfs_addname("/", cur->len, 0, 0); 742 printf("add_fsevent: bogus looking string (len %d)\n", cur->len); 2428 int fsevent_type=FSE_CONTENT_MODIFIED, len; // the default is the most pessimistic local [all...] |
/xnu-2782.1.97/libkern/c++/ |
H A D | OSSymbol.cpp | 87 unsigned int len = 0; local 91 if (!*s) break; len++; hash ^= *s++; 92 if (!*s) break; len++; hash ^= *s++ << 8; 93 if (!*s) break; len++; hash ^= *s++ << 16; 94 if (!*s) break; len++; hash ^= *s++ << 24; 96 *lenP = len;
|
/xnu-2782.1.97/iokit/Kernel/ |
H A D | IOMemoryDescriptor.cpp | 225 getAddrLenForInd(mach_vm_address_t &addr, mach_vm_size_t &len, // Output variables argument 234 uio_getiov((uio_t) r.uio, ind, &ad, &us); addr = ad; len = us; 240 len = cur.length; 246 len = cur.length; 1597 mach_vm_size_t len; local 1599 // addr & len are returned by this function 1600 getAddrLenForInd(addr, len, type, vec, ind); 1601 pages += (atop_64(addr + len + PAGE_MASK) - atop_64(addr)); 1602 len += length; 1603 assert(len > 2109 mach_vm_size_t len; local 2146 mach_vm_size_t len; local 2573 mach_vm_size_t len; local 4396 mach_vm_address_t addr; mach_vm_size_t len; local 4412 IOByteCount len = (IOByteCount) vcopy[index].length; local [all...] |
H A D | IODeviceTreeSupport.cpp | 444 unsigned int len; local 447 && (sizeof(UInt32) <= (len = data->getLength()))) { 448 if (((index + 1) * sizeof(UInt32)) > len) 975 // Given addr & len cells from our child, find it in our ranges property, then 978 // Range[]: child-addr our-addr child-len 1001 UInt64 len, rangeLen; local 1065 len = CellsValue(childSizeCells, cell + childAddressCells); 1066 ok = (0 == len); 1073 AddLengthToCells(childAddressCells, endCell, len - 1); 1086 if ((endDiff - len 1129 IOPhysicalLength len; local [all...] |
/xnu-2782.1.97/osfmk/kern/ |
H A D | ledger.c | 1479 ledger_template_info(void **buf, int *len) argument 1491 if ((*len < 0) || (l == NULL)) 1494 if (*len > l->l_size) 1495 *len = l->l_size; 1496 lti = kalloc((*len) * sizeof (struct ledger_template_info)); 1504 for (i = 0; i < *len; i++) { 1537 ledger_get_task_entry_info_multiple(task_t task, void **buf, int *len) argument 1545 if ((*len < 0) || ((l = task->ledger) == NULL)) 1548 if (*len > l->l_size) 1549 *len [all...] |