/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | xdp_dev_bound_only.c | 11 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 D | cgroup_iter.c | 54 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 D | cgroup_v1v2.c | 12 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 D | arena_list.c | 32 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 D | bpf_iter.c | 48 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 D | cb_refs.c | 22 LIBBPF_OPTS(bpf_object_open_opts, opts, .kernel_log_buf = log_buf, 35 skel = cb_refs__open_opts(&opts);
|
H A D | xdp_link.c | 13 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 D | capability.h | 40 int cap, unsigned int opts);
|
/linux-master/kernel/bpf/preload/iterators/ |
H A D | iterators.lskel-big-endian.h | 90 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 D | iterators.lskel-little-endian.h | 90 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 D | builtin-record.c | 154 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 D | acm_ms.c | 155 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 D | mass_storage.c | 141 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 D | printer.c | 141 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 D | f_midi.c | 1074 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 D | f_serial.c | 258 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 D | f_midi2.c | 2095 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 D | f_rndis.c | 824 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 D | f_loopback.c | 221 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 D | f_hid.c | 1049 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 D | netlink.c | 322 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 D | test_cpp.cpp | 20 int open(const struct bpf_object_open_opts *opts = nullptr) 27 skel = T::open(opts); 59 LIBBPF_OPTS(bpf_object_open_opts, opts); 61 err = skel.open(&opts); 99 struct btf_dump_opts opts = { }; local 115 btf_dump__new(btf, dump_printf, nullptr, &opts);
|
/linux-master/fs/bcachefs/ |
H A D | io_write.h | 66 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 D | super.c | 72 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...] |
/linux-master/drivers/nvme/host/ |
H A D | sysfs.c | 402 return sysfs_emit(buf, "%s\n", ctrl->opts->host->nqn); 412 return sysfs_emit(buf, "%pU\n", &ctrl->opts->host->id); 430 struct nvmf_ctrl_options *opts = ctrl->opts; local 432 if (ctrl->opts->max_reconnects == -1) 435 opts->max_reconnects * opts->reconnect_delay); 442 struct nvmf_ctrl_options *opts = ctrl->opts; local 450 opts 500 struct nvmf_ctrl_options *opts = ctrl->opts; local 555 struct nvmf_ctrl_options *opts = ctrl->opts; local 566 struct nvmf_ctrl_options *opts = ctrl->opts; local 613 struct nvmf_ctrl_options *opts = ctrl->opts; local 624 struct nvmf_ctrl_options *opts = ctrl->opts; local [all...] |