Searched refs:opts (Results 76 - 100 of 518) sorted by relevance

1234567891011>>

/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dxdp_dev_bound_only.c11 LIBBPF_OPTS(bpf_prog_load_opts, opts);
13 opts.prog_flags = flags;
14 opts.prog_ifindex = ifindex;
15 return bpf_prog_load(BPF_PROG_TYPE_XDP, name, "GPL", insns, ARRAY_SIZE(insns), &opts);
H A Dcgroup_iter.c54 DECLARE_LIBBPF_OPTS(bpf_iter_attach_opts, opts);
65 opts.link_info = &linfo;
66 opts.link_info_len = sizeof(linfo);
68 link = bpf_program__attach_iter(prog, &opts);
98 DECLARE_LIBBPF_OPTS(bpf_iter_attach_opts, opts);
104 opts.link_info = &linfo;
105 opts.link_info_len = sizeof(linfo);
107 link = bpf_program__attach_iter(skel->progs.cgroup_id_printer, &opts);
115 DECLARE_LIBBPF_OPTS(bpf_iter_attach_opts, opts);
122 opts
[all...]
H A Dcgroup_v1v2.c12 struct network_helper_opts opts = { local
35 fd = connect_to_fd_opts(server_fd, &opts);
47 struct network_helper_opts opts = {}; local
55 client_fd = connect_to_fd_opts(server_fd, &opts);
H A Darena_list.c32 LIBBPF_OPTS(bpf_test_run_opts, opts);
42 ret = bpf_prog_test_run_opts(bpf_program__fd(skel->progs.arena_list_add), &opts);
44 ASSERT_OK(opts.retval, "retval");
55 ret = bpf_prog_test_run_opts(bpf_program__fd(skel->progs.arena_list_del), &opts);
H A Dbpf_iter.c48 static void do_dummy_read_opts(struct bpf_program *prog, struct bpf_iter_attach_opts *opts) argument
54 link = bpf_program__attach_iter(prog, opts);
81 DECLARE_LIBBPF_OPTS(bpf_iter_attach_opts, opts);
89 opts.link_info = &linfo;
90 opts.link_info_len = sizeof(linfo);
91 link = bpf_program__attach_iter(prog, &opts);
179 LIBBPF_OPTS(bpf_iter_attach_opts, opts);
188 opts.link_info = &linfo;
189 opts.link_info_len = sizeof(linfo);
191 link = bpf_program__attach_iter(prog, &opts);
213 test_task_common_nocheck(struct bpf_iter_attach_opts *opts, int *num_unknown, int *num_known) argument
243 test_task_common(struct bpf_iter_attach_opts *opts, int num_unknown, int num_known) argument
1396 test_task_vma_common(struct bpf_iter_attach_opts *opts) argument
1570 test_task_vma_offset_common(struct bpf_iter_attach_opts *opts, bool one_proc) argument
[all...]
H A Dcb_refs.c22 LIBBPF_OPTS(bpf_object_open_opts, opts, .kernel_log_buf = log_buf,
35 skel = cb_refs__open_opts(&opts);
H A Dxdp_link.c13 LIBBPF_OPTS(bpf_xdp_attach_opts, opts);
44 err = bpf_xdp_attach(IFINDEX_LO, prog_fd1, XDP_FLAGS_REPLACE, &opts);
58 opts.old_prog_fd = prog_fd1;
59 bpf_xdp_detach(IFINDEX_LO, XDP_FLAGS_REPLACE, &opts);
64 opts.old_prog_fd = prog_fd1;
65 err = bpf_xdp_detach(IFINDEX_LO, XDP_FLAGS_REPLACE, &opts);
81 opts.old_prog_fd = prog_fd1;
82 err = bpf_xdp_attach(IFINDEX_LO, prog_fd2, XDP_FLAGS_REPLACE, &opts);
/linux-master/security/apparmor/include/
H A Dcapability.h40 int cap, unsigned int opts);
/linux-master/kernel/bpf/preload/iterators/
H A Diterators.lskel-big-endian.h90 struct bpf_load_and_run_opts opts = {}; local
93 opts.ctx = (struct bpf_loader_ctx *)skel;
94 opts.data_sz = 6008;
95 opts.data = (void *)"\
311 opts.insns_sz = 2216;
312 opts.insns = (void *)"\
387 err = bpf_load_and_run(&opts);
H A Diterators.lskel-little-endian.h90 struct bpf_load_and_run_opts opts = {}; local
93 opts.ctx = (struct bpf_loader_ctx *)skel;
94 opts.data_sz = 6208;
95 opts.data = (void *)"\
319 opts.insns_sz = 2456;
320 opts.insns = (void *)"\
403 err = bpf_load_and_run(&opts);
/linux-master/tools/perf/
H A Dbuiltin-record.c154 struct record_opts opts; member in struct:record
205 return rec->opts.threads_spec;
509 struct record_opts *opts = (struct record_opts *)opt->value; local
512 opts->nr_cblocks = 0;
515 opts->nr_cblocks = strtol(str, NULL, 0);
516 if (!opts->nr_cblocks)
517 opts->nr_cblocks = nr_cblocks_default;
547 return rec->opts.nr_cblocks > 0;
556 struct record_opts *opts = (struct record_opts *)opt->value; local
569 opts
590 struct record_opts *opts = opt->value; local
940 struct record_opts *opts = &rec->opts; local
1289 struct record_opts *opts = &rec->opts; local
1355 struct record_opts *opts = &rec->opts; local
2037 struct record_opts *opts = &rec->opts; local
2163 struct record_opts *opts = &rec->opts; local
2371 struct record_opts *opts = &rec->opts; local
2996 struct record_opts *opts = (struct record_opts *)opt->value; local
3053 struct record_opts *opts = opt->value; local
3112 struct record_opts *opts = opt->value; local
3159 struct record_opts *opts = opt->value; local
3302 struct record_opts *opts = opt->value; local
[all...]
/linux-master/drivers/usb/gadget/legacy/
H A Dacm_ms.c155 struct fsg_opts *opts; local
171 opts = fsg_opts_from_func_inst(fi_msg);
173 opts->no_configfs = true;
174 status = fsg_common_set_num_buffers(opts->common, fsg_num_buffers);
178 status = fsg_common_set_cdev(opts->common, cdev, config.can_stall);
182 fsg_common_set_sysfs(opts->common, true);
183 status = fsg_common_create_luns(opts->common, &config);
187 fsg_common_set_inquiry_string(opts->common, config.vendor_name,
227 fsg_common_remove_luns(opts->common);
229 fsg_common_free_buffers(opts
[all...]
H A Dmass_storage.c141 struct fsg_opts *opts; local
150 opts = fsg_opts_from_func_inst(fi_msg);
152 opts->no_configfs = true;
153 status = fsg_common_set_num_buffers(opts->common, fsg_num_buffers);
157 status = fsg_common_set_cdev(opts->common, cdev, config.can_stall);
161 fsg_common_set_sysfs(opts->common, true);
162 status = fsg_common_create_luns(opts->common, &config);
166 fsg_common_set_inquiry_string(opts->common, config.vendor_name,
200 fsg_common_remove_luns(opts->common);
202 fsg_common_free_buffers(opts
[all...]
H A Dprinter.c141 struct f_printer_opts *opts; local
148 opts = container_of(fi_printer, struct f_printer_opts, func_inst);
149 opts->minor = 0;
150 opts->q_len = QLEN;
152 opts->pnp_string = kstrdup(iPNPstring, GFP_KERNEL);
153 if (!opts->pnp_string) {
157 opts->pnp_string_allocated = true;
163 opts->pnp_string = pnp_string;
/linux-master/drivers/usb/gadget/function/
H A Df_midi.c1074 struct f_midi_opts *opts = to_f_midi_opts(item); local
1076 usb_put_function_instance(&opts->func_inst);
1086 struct f_midi_opts *opts = to_f_midi_opts(item); \
1089 mutex_lock(&opts->lock); \
1090 result = sprintf(page, "%u\n", opts->name); \
1091 mutex_unlock(&opts->lock); \
1099 struct f_midi_opts *opts = to_f_midi_opts(item); \
1103 mutex_lock(&opts->lock); \
1104 if (opts->refcnt > 1) { \
1117 opts
1179 struct f_midi_opts *opts = to_f_midi_opts(item); local
1198 struct f_midi_opts *opts = to_f_midi_opts(item); local
1243 struct f_midi_opts *opts; local
1263 struct f_midi_opts *opts; local
1288 struct f_midi_opts *opts; local
1333 struct f_midi_opts *opts; local
[all...]
H A Df_serial.c258 struct f_serial_opts *opts = to_f_serial_opts(item); local
260 usb_put_function_instance(&opts->func_inst);
308 struct f_serial_opts *opts; local
310 opts = container_of(f, struct f_serial_opts, func_inst);
311 gserial_free_line(opts->port_num);
312 kfree(opts);
317 struct f_serial_opts *opts; local
320 opts = kzalloc(sizeof(*opts), GFP_KERNEL);
321 if (!opts)
370 struct f_serial_opts *opts; local
[all...]
H A Df_midi2.c2095 static ssize_t f_midi2_opts_uint_show(struct f_midi2_opts *opts, argument
2100 mutex_lock(&opts->lock);
2102 mutex_unlock(&opts->lock);
2106 static ssize_t f_midi2_opts_uint_store(struct f_midi2_opts *opts, argument
2113 mutex_lock(&opts->lock);
2114 if (opts->refcnt) {
2131 mutex_unlock(&opts->lock);
2136 static ssize_t f_midi2_opts_bool_store(struct f_midi2_opts *opts, argument
2142 mutex_lock(&opts->lock);
2143 if (opts
2160 f_midi2_opts_str_show(struct f_midi2_opts *opts, const char *str, char *page) argument
2172 f_midi2_opts_str_store(struct f_midi2_opts *opts, const char **strp, size_t maxlen, const char *page, size_t len) argument
2259 struct f_midi2_block_opts *opts = to_f_midi2_block_opts(item); local
2267 struct f_midi2_block_opts *opts = to_f_midi2_block_opts(item); local
2292 struct f_midi2_block_opts *opts = to_f_midi2_block_opts(item); local
2454 struct f_midi2_ep_opts *opts = to_f_midi2_ep_opts(item); local
2478 f_midi2_ep_opts_create(struct f_midi2_opts *opts, unsigned int index, struct f_midi2_ep_opts **ep_p) argument
2504 struct f_midi2_opts *opts; local
2570 struct f_midi2_opts *opts = to_f_midi2_opts(item); local
2578 struct f_midi2_opts *opts = to_f_midi2_opts(item); local
2595 struct f_midi2_opts *opts = to_f_midi2_opts(item); local
2618 struct f_midi2_opts *opts; local
2629 struct f_midi2_opts *opts; local
2677 do_f_midi2_free(struct f_midi2 *midi2, struct f_midi2_opts *opts) argument
2695 verify_parameters(struct f_midi2_opts *opts) argument
2790 struct f_midi2_opts *opts; local
[all...]
H A Df_rndis.c824 struct f_rndis_opts *opts; local
826 opts = container_of(f, struct f_rndis_opts, func_inst);
827 if (opts->bound)
828 gether_cleanup(netdev_priv(opts->net));
830 free_netdev(opts->net);
831 opts->borrowed_net = opts->bound = true;
832 opts->net = net;
885 struct f_rndis_opts *opts; local
887 opts
901 struct f_rndis_opts *opts; local
944 struct f_rndis_opts *opts; local
970 struct f_rndis_opts *opts; local
[all...]
H A Df_loopback.c221 struct f_lb_opts *opts; local
223 opts = container_of(f->fi, struct f_lb_opts, func_inst);
225 mutex_lock(&opts->lock);
226 opts->refcnt--;
227 mutex_unlock(&opts->lock);
473 struct f_lb_opts *opts = to_f_lb_opts(item); local
476 mutex_lock(&opts->lock);
477 result = sprintf(page, "%d\n", opts->qlen);
478 mutex_unlock(&opts->lock);
486 struct f_lb_opts *opts local
511 struct f_lb_opts *opts = to_f_lb_opts(item); local
524 struct f_lb_opts *opts = to_f_lb_opts(item); local
[all...]
H A Df_hid.c1049 struct f_hid_opts *opts = to_f_hid_opts(item); local
1051 usb_put_function_instance(&opts->func_inst);
1061 struct f_hid_opts *opts = to_f_hid_opts(item); \
1064 mutex_lock(&opts->lock); \
1065 result = sprintf(page, "%d\n", opts->name); \
1066 mutex_unlock(&opts->lock); \
1074 struct f_hid_opts *opts = to_f_hid_opts(item); \
1078 mutex_lock(&opts->lock); \
1079 if (opts->refcnt) { \
1092 opts
1109 struct f_hid_opts *opts = to_f_hid_opts(item); local
1123 struct f_hid_opts *opts = to_f_hid_opts(item); local
1154 struct f_hid_opts *opts = to_f_hid_opts(item); local
1184 struct f_hid_opts *opts; local
1204 struct f_hid_opts *opts; local
1244 struct f_hid_opts *opts; local
1266 struct f_hid_opts *opts; local
[all...]
/linux-master/tools/lib/bpf/
H A Dnetlink.c322 int bpf_xdp_attach(int ifindex, int prog_fd, __u32 flags, const struct bpf_xdp_attach_opts *opts) argument
326 if (!OPTS_VALID(opts, bpf_xdp_attach_opts))
329 old_prog_fd = OPTS_GET(opts, old_prog_fd, 0);
339 int bpf_xdp_detach(int ifindex, __u32 flags, const struct bpf_xdp_attach_opts *opts) argument
341 return bpf_xdp_attach(ifindex, -1, flags, opts);
431 int bpf_xdp_query(int ifindex, int xdp_flags, struct bpf_xdp_query_opts *opts) argument
446 if (!OPTS_VALID(opts, bpf_xdp_query_opts))
465 OPTS_SET(opts, prog_id, xdp_id.info.prog_id);
466 OPTS_SET(opts, drv_prog_id, xdp_id.info.drv_prog_id);
467 OPTS_SET(opts, hw_prog_i
652 struct bpf_tc_opts *opts; member in struct:bpf_cb_ctx
718 bpf_tc_attach(const struct bpf_tc_hook *hook, struct bpf_tc_opts *opts) argument
792 __bpf_tc_detach(const struct bpf_tc_hook *hook, const struct bpf_tc_opts *opts, const bool flush) argument
853 bpf_tc_detach(const struct bpf_tc_hook *hook, const struct bpf_tc_opts *opts) argument
865 bpf_tc_query(const struct bpf_tc_hook *hook, struct bpf_tc_opts *opts) argument
[all...]
/linux-master/tools/testing/selftests/bpf/
H A Dnetwork_helpers.c84 const struct network_helper_opts *opts)
88 fd = socket(addr->sa_family, type, opts->proto);
94 if (settimeo(fd, opts->timeout_ms))
97 if (opts->post_socket_cb && opts->post_socket_cb(fd, NULL)) {
124 struct network_helper_opts opts = { local
133 return __start_server(type, (struct sockaddr *)&addr, addrlen, &opts);
136 static int reuseport_cb(int fd, const struct post_socket_opts *opts) argument
146 struct network_helper_opts opts = { local
165 fds[0] = __start_server(type, (struct sockaddr *)&addr, addrlen, &opts);
83 __start_server(int type, const struct sockaddr *addr, socklen_t addrlen, const struct network_helper_opts *opts) argument
186 start_server_addr(int type, const struct sockaddr_storage *addr, socklen_t len, const struct network_helper_opts *opts) argument
268 connect_to_addr(int type, const struct sockaddr_storage *addr, socklen_t addrlen, const struct network_helper_opts *opts) argument
295 connect_to_fd_opts(int server_fd, const struct network_helper_opts *opts) argument
359 struct network_helper_opts opts = { local
[all...]
H A Dtest_cpp.cpp21 int open(const struct bpf_object_open_opts *opts = nullptr)
28 skel = T::open(opts);
60 LIBBPF_OPTS(bpf_object_open_opts, opts);
62 err = skel.open(&opts);
100 struct btf_dump_opts opts = { }; local
117 btf_dump__new(btf, dump_printf, nullptr, &opts);
/linux-master/fs/bcachefs/
H A Dio_write.h66 struct bch_io_opts opts)
73 op->csum_type = bch2_data_checksum_type(c, opts);
74 op->compression_opt = opts.compression;
76 op->nr_replicas_required = c->opts.data_replicas_required;
82 op->opts = opts;
65 bch2_write_op_init(struct bch_write_op *op, struct bch_fs *c, struct bch_io_opts opts) argument
/linux-master/fs/squashfs/
H A Dsuper.c72 static int squashfs_parse_param_threads_str(const char *str, struct squashfs_mount_opts *opts) argument
76 opts->thread_ops = &squashfs_decompressor_single;
80 opts->thread_ops = &squashfs_decompressor_multi;
84 opts->thread_ops = &squashfs_decompressor_percpu;
91 static int squashfs_parse_param_threads_num(const char *str, struct squashfs_mount_opts *opts) argument
101 opts->thread_ops = &squashfs_decompressor_multi;
102 if (num > opts->thread_ops->max_decompressors())
104 opts->thread_num = (int)num;
109 opts->thread_ops = &squashfs_decompressor_single;
110 opts
118 squashfs_parse_param_threads(const char *str, struct squashfs_mount_opts *opts) argument
129 struct squashfs_mount_opts *opts = fc->fs_private; local
182 struct squashfs_mount_opts *opts = fc->fs_private; local
492 struct squashfs_mount_opts *opts = fc->fs_private; local
542 struct squashfs_mount_opts *opts; local
[all...]

Completed in 229 milliseconds

1234567891011>>