Home
last modified time | relevance | path

Searched refs:opt (Results 1 – 25 of 60) sorted by relevance

123

/xnu-11215/SETUP/config/
H A Dparser.y125 struct opt *op = (struct opt *)malloc(sizeof (struct opt));
127 op->op_next = (struct opt *) 0;
129 if (opt == (struct opt *) 0)
130 opt = op;
138 struct opt *op = (struct opt *)malloc(sizeof (struct opt));
140 op->op_next = (struct opt *) 0;
142 if (opt == (struct opt *) 0)
143 opt = op;
178 struct opt *op = (struct opt *)malloc(sizeof (struct opt));
187 struct opt *op = (struct opt *)malloc(sizeof (struct opt));
[all …]
H A Dconfig.h133 struct opt { struct
136 struct opt *op_next; argument
139 extern struct opt *opt, *mkopt, *opt_tail, *mkopt_tail;
H A Dexterns.c51 struct opt *opt, *mkopt, *opt_tail, *mkopt_tail; variable
H A Dmkmakefile.c177 struct opt *op; in makefile()
201 for (op = opt; op; op = op->op_next) { in makefile()
286 struct opt *op; in read_files()
430 struct opt *lop = 0; in read_files()
447 for (op = opt; op; lop = op, op = op->op_next) { in read_files()
458 opt = op->op_next; in read_files()
484 for (op = opt; op != 0; op = op->op_next) { in read_files()
/xnu-11215/tests/vm/
H A Dfault_throughput.lua65 local cpu_workers = benchmark.opt.cpu_workers or ncpus
68 benchmark:assert(benchmark.opt.first_cpu > -2, 'negative first CPU')
75 if benchmark.opt.through_max_workers then
79 elseif benchmark.opt.through_max_workers_fast then
96 benchmark.opt.path;
101 if benchmark.opt.verbose then
104 cmd[#cmd + 1] = benchmark.opt.variant
105 cmd[#cmd + 1] = benchmark.opt.duration
107 if benchmark.opt.first_cpu ~= -1 then
108 cmd[#cmd + 1] = benchmark.opt.first_cpu
[all …]
H A Dperf_compressor.lua69 args = {benchmark.opt.path, benchmark.opt.variant, benchmark.opt.data_type, benchmark.opt.duration,…
70 if benchmark.opt.verbose then
85 data_type = benchmark.opt.data_type,
86 buffer_size = benchmark.opt.buffer_size,
H A Dperf_madvise.lua44 path = benchmark.opt.path,
47 local args = {benchmark.opt.path, benchmark.opt.variant, benchmark.opt.duration, benchmark.opt.size}
48 if benchmark.opt.verbose then
59 variant = benchmark.opt.variant
/xnu-11215/bsd/netinet6/
H A Ddest6.c90 u_int8_t *opt = NULL; in dest6_input() local
101 opt = (u_int8_t *)dstopts + sizeof(struct ip6_dest); in dest6_input()
104 for (optlen = 0; dstoptlen > 0; dstoptlen -= optlen, opt += optlen) { in dest6_input()
105 if (*opt != IP6OPT_PAD1 && in dest6_input()
106 (dstoptlen < IP6OPT_MINLEN || *(opt + 1) + 2 > dstoptlen)) { in dest6_input()
111 switch (*opt) { in dest6_input()
116 optlen = *(opt + 1) + 2; in dest6_input()
120 optlen = ip6_unknown_opt(opt, dstoptlen, m, in dest6_input()
121 opt - mtod(m, u_int8_t *)); in dest6_input()
H A Dip6_output.c1009 if (opt != NULL && opt->ip6po_rthdr) { in ip6_output_list()
1022 if (opt != NULL && opt->ip6po_tclass >= 0) { in ip6_output_list()
1042 if (opt && opt->ip6po_hlim != -1) { in ip6_output_list()
1139 if (opt != NULL && opt->ip6po_pktinfo != NULL) { in ip6_output_list()
1310 if (opt != NULL && opt->ip6po_nextroute.ro_rt) { in ip6_output_list()
1433 } else if (opt && opt->ip6po_minmtu == IP6PO_MINMTU_ALL) { in ip6_output_list()
3195 if (opt->ip6po_pktinfo || opt->ip6po_nexthop || in ip6_pcbopts()
3196 opt->ip6po_hbh || opt->ip6po_dest1 || opt->ip6po_dest2 || in ip6_pcbopts()
3225 *pktopt = opt; in ip6_pcbopts()
3236 bzero(opt, sizeof(*opt)); in ip6_initpktopts()
[all …]
H A Dip6_input.c1580 u_int8_t *opt; in ip6_hopopts_input() local
1620 u_int8_t *opt = opthead; in ip6_process_hopopts() local
1626 switch (*opt) { in ip6_process_hopopts()
1636 optlen = *(opt + 1) + 2; in ip6_process_hopopts()
1648 (int)(erroff + opt + 1 - opthead)); in ip6_process_hopopts()
1666 (int)(erroff + opt + 1 - opthead)); in ip6_process_hopopts()
1680 (int)(erroff + opt - opthead)); in ip6_process_hopopts()
1704 (int)(erroff + opt + 2 - opthead)); in ip6_process_hopopts()
1716 (int)(erroff + opt + 2 - opthead)); in ip6_process_hopopts()
1728 optlen = ip6_unknown_opt(opt, hbhlen, m, in ip6_process_hopopts()
[all …]
H A Dnd6.h816 #define ND_OPT_LLADDR(opt, optlen, val, vallen) ({ \ argument
817 (vallen) = opt->optlen << 3; \
819 (opt), sizeof(struct nd_opt_hdr) + (vallen)); \
824 #define TAKE_ND_NEXT_OPT(opt, start, end) ({ … argument
826 …struct nd_opt_hdr* __hdr = __unsafe_forge_bidi_indexable(struct nd_opt_hdr *, (opt), __ndoptlen); \
830 #define TAKE_ND_NEXT_OPT(opt, start, end) ({ … argument
831 … (struct nd_opt_hdr *)opt; \
/xnu-11215/tests/counter/
H A Dbenchmark.lua46 assert(benchmark.opt.path, "No path supplied for fault throughput binary")
50 local cpu_workers = tonumber(benchmark.opt.cpu_workers) or ncpus
57 path = benchmark.opt.path,
62 if benchmark.opt.through_max_workers then
66 elseif benchmark.opt.through_max_workers_fast then
83 local args = {test.path, benchmark.opt.variant, benchmark.opt.num_writes, test.num_cores,
100 variant = benchmark.opt.variant
/xnu-11215/tests/
H A Ddebug_syscall_rejection_helper.c13 int opt; in main() local
23 while ((opt = getopt(argc, argv, "ads:i:OF")) != -1) { in main()
24 switch (opt) { in main()
51 fprintf(stderr, "unknown option '%c'\n", opt); in main()
H A Dtest_ip_drop_membership.c59 print_mreq(const char *opt, struct ip_mreq *mreq) in print_mreq() argument
65 opt, imr_multiaddr, imr_interface); in print_mreq()
72 print_mreq_src(const char *opt, struct ip_mreq_source *mreq_src) in print_mreq_src() argument
79 opt, imr_multiaddr, imr_sourceaddr, imr_interface); in print_mreq_src()
H A Dinet_transfer.c197 int opt; in socket_bind_to_interface() local
202 opt = IP_BOUND_IF; in socket_bind_to_interface()
205 opt = IPV6_BOUND_IF; in socket_bind_to_interface()
207 if (setsockopt(s, level, opt, &if_index, sizeof(if_index)) < 0) { in socket_bind_to_interface()
217 socket_setsockopt_int(const char * msg, int s, int level, int opt, int val) in socket_setsockopt_int() argument
219 if (setsockopt(s, level, opt, &val, sizeof(val)) < 0) { in socket_setsockopt_int()
221 msg, level, opt, val, strerror(errno), errno); in socket_setsockopt_int()
H A Dnet_vlan.c315 int opt; in vlan_send_short_packet() local
322 opt = 1; in vlan_send_short_packet()
324 T_ASSERT_POSIX_SUCCESS(ioctl(fd, FIONBIO, &opt), NULL); in vlan_send_short_packet()
/xnu-11215/osfmk/mach/
H A Dthread_switch.h82 #define valid_switch_option(opt) (0 <= (opt) && (opt) <= 5) argument
/xnu-11215/bsd/kern/
H A Dkern_xxx.c112 AUDIT_ARG(cmd, uap->opt); in reboot()
116 if (uap->opt & RB_PANIC) { in reboot()
127 if (uap->opt & RB_PANIC && uap->msg != USER_ADDR_NULL) { in reboot()
142 if (uap->opt & RB_PANIC) { in reboot()
148 error = mac_system_check_reboot(current_cached_proc_cred(p), uap->opt); in reboot()
155 error = reboot_kernel(uap->opt, message); in reboot()
/xnu-11215/bsd/netinet/
H A Dmptcp_opt.c112 memcpy(opt + optlen, &mptcp_opt, mmco_len); in mptcp_setup_first_subflow_syn_opts()
201 #pragma unused(tp, opt, optlen) in mptcp_send_mpfail()
227 memcpy(opt + optlen, &fail_opt, len); in mptcp_send_mpfail()
291 memcpy(opt + optlen, &infin_opt, len); in mptcp_send_infinite_mapping()
296 memcpy(opt + optlen, &csum, csum_len); in mptcp_send_infinite_mapping()
423 memcpy(opt + optlen, &mptcp_opt, mmco_len); in mptcp_setup_opts()
1856 bzero(opt, sizeof(*opt)); in mptcp_send_remaddr_opt()
1857 opt->mr_kind = TCPOPT_MULTIPATH; in mptcp_send_remaddr_opt()
1858 opt->mr_len = sizeof(*opt); in mptcp_send_remaddr_opt()
1859 opt->mr_subtype = MPO_REMOVE_ADDR; in mptcp_send_remaddr_opt()
[all …]
H A Dtcp_output.c386 bp = opt + optlen;
402 u_char *__counted_by(TCP_MAXOLEN) opt) in tcp_tfo_write_cookie()
425 bp = opt + optlen; in tcp_tfo_write_cookie()
719 u_char opt[TCP_MAXOLEN]; in tcp_output() local
1831 opt[0] = TCPOPT_MAXSEG; in tcp_output()
1832 opt[1] = TCPOLEN_MAXSEG; in tcp_output()
1834 (void)memcpy(opt + 2, &mss, sizeof(mss)); in tcp_output()
1891 bp = (u_char *)opt + optlen; in tcp_output()
1949 u_char *bp = (u_char *)opt + optlen; in tcp_output()
2030 u_char *bp = (u_char *)opt + optlen; in tcp_output()
[all …]
H A Dip_output.c396 opt = NULL; in ip_output_list()
537 if (opt) { in ip_output_list()
2247 int opt, optlen, cnt; in ip_optcopy() local
2253 opt = cp[0]; in ip_optcopy()
2254 if (opt == IPOPT_EOL) { in ip_optcopy()
2257 if (opt == IPOPT_NOP) { in ip_optcopy()
2780 u_char opt; in ip_pcbopts() local
2816 opt = cp[IPOPT_OPTVAL]; in ip_pcbopts()
2817 if (opt == IPOPT_EOL) { in ip_pcbopts()
2820 if (opt == IPOPT_NOP) { in ip_pcbopts()
[all …]
/xnu-11215/bsd/net/
H A Dkctl_test.c45 static errno_t kctl_test_setopt(kern_ctl_ref kctlref, u_int32_t unit, void *unitinfo, int opt, void…
46 static errno_t kctl_test_getopt(kern_ctl_ref kctlref, u_int32_t unit, void *unitinfo, int opt, void…
126 kctl_test_setopt(kern_ctl_ref kctlref, u_int32_t unit, void *unitinfo, int opt, void *data, size_t … in kctl_test_setopt() argument
133 switch (opt) { in kctl_test_setopt()
150 kctl_test_getopt(kern_ctl_ref kctlref, u_int32_t unit, void *unitinfo, int opt, void *data, size_t … in kctl_test_getopt() argument
157 switch (opt) { in kctl_test_getopt()
H A Dpf_norm.c2367 if (!pf_pull_hdr(pbuf, ooff, &opt, sizeof(opt), sizeof(opt), in pf_normalize_ip6()
2371 if ((ooff + (int) sizeof(opt) + opt.ip6o_len) > in pf_normalize_ip6()
2399 ooff += sizeof(opt) + opt.ip6o_len; in pf_normalize_ip6()
2799 switch (*opt) { in pf_normalize_tcp_init()
2802 opt++; in pf_normalize_tcp_init()
2825 opt += MAX(opt[1], 2); in pf_normalize_tcp_init()
2856 u_int8_t *opt; in pf_normalize_tcp_stateful() local
2904 opt++; in pf_normalize_tcp_stateful()
2957 opt += MAX(opt[1], 2); in pf_normalize_tcp_stateful()
3273 opt = optp[0]; in pf_normalize_tcpopt()
[all …]
/xnu-11215/bsd/sys/
H A Dkpi_socketfilter.h395 typedef errno_t (*sf_setoption_func)(void *cookie, socket_t so, sockopt_t opt);
415 typedef errno_t (*sf_getoption_func)(void *cookie, socket_t so, sockopt_t opt);
/xnu-11215/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_track.c62 const uint8_t *opt; in flow_track_tcp_get_wscale() local
67 opt = hdr + sizeof(struct tcphdr); in flow_track_tcp_get_wscale()
70 switch (*opt) { in flow_track_tcp_get_wscale()
73 ++opt; in flow_track_tcp_get_wscale()
77 wscale = opt[2]; in flow_track_tcp_get_wscale()
84 optlen = opt[1]; in flow_track_tcp_get_wscale()
89 opt += optlen; in flow_track_tcp_get_wscale()

123