/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | xdp_info.c | 11 LIBBPF_OPTS(bpf_xdp_query_opts, opts); 66 opts.feature_flags = ~0; 67 err = bpf_xdp_query(IFINDEX_LO, XDP_FLAGS_DRV_MODE, &opts); 71 ASSERT_EQ(opts.feature_flags, 0, "opts.feature_flags");
|
H A D | trampoline_count.c | 42 LIBBPF_OPTS(bpf_test_run_opts, opts); 87 err = bpf_prog_test_run_opts(prog_fd, &opts); 91 ASSERT_EQ(opts.retval & 0xffff, 33, "bpf_modify_return_test.result"); 92 ASSERT_EQ(opts.retval >> 16, 2, "bpf_modify_return_test.side_effect");
|
H A D | syscall.c | 59 LIBBPF_OPTS(bpf_test_run_opts, opts); 68 err = bpf_prog_test_run_opts(prog_fd, &opts); 70 ASSERT_EQ(opts.retval, 1, "retval");
|
H A D | token.c | 115 static int materialize_bpffs_fd(int fs_fd, struct bpffs_opts *opts) argument 120 err = set_delegate_mask(fs_fd, "delegate_cmds", opts->cmds, opts->cmds_str); 123 err = set_delegate_mask(fs_fd, "delegate_maps", opts->maps, opts->maps_str); 126 err = set_delegate_mask(fs_fd, "delegate_progs", opts->progs, opts->progs_str); 129 err = set_delegate_mask(fs_fd, "delegate_attachs", opts->attachs, opts->attachs_str); 285 static void child(int sock_fd, struct bpffs_opts *opts, child_callback_f argument 968 struct bpffs_opts opts = { local 976 struct bpffs_opts opts = { local 983 struct bpffs_opts opts = { local 992 struct bpffs_opts opts = { local 1000 struct bpffs_opts opts = { local 1009 struct bpffs_opts opts = { local 1020 struct bpffs_opts opts = { local 1031 struct bpffs_opts opts = { local 1042 struct bpffs_opts opts = { local [all...] |
H A D | custom_sec_handlers.c | 22 struct bpf_prog_load_opts *opts, long cookie) 25 opts->prog_flags |= BPF_F_SLEEPABLE; 96 LIBBPF_OPTS(libbpf_prog_handler_opts, opts, 112 opts.cookie = COOKIE_KPROBE; 113 kprobe_id = libbpf_register_prog_handler("kprobe+", BPF_PROG_TYPE_TRACEPOINT, 0, &opts); 117 opts.cookie = COOKIE_FALLBACK; 118 fallback_id = libbpf_register_prog_handler(NULL, BPF_PROG_TYPE_SYSCALL, 0, &opts); 21 custom_prepare_load_prog(struct bpf_program *prog, struct bpf_prog_load_opts *opts, long cookie) argument
|
/linux-master/tools/testing/selftests/drivers/net/netdevsim/ |
H A D | tc-mq-visibility.sh | 31 opts= 32 [ $root == "mqprio" ] && opts='hw 0 num_tc 1 map 0 0 0 0 queues 1@0' 34 tcq add root handle 100: $root $opts
|
/linux-master/tools/perf/util/ |
H A D | record.h | 89 static inline bool record_opts__no_switch_events(const struct record_opts *opts) argument 91 return opts->record_switch_events_set && !opts->record_switch_events;
|
/linux-master/fs/bcachefs/ |
H A D | quota.h | 32 return ((c->opts.usrquota << QTYP_USR)| 33 (c->opts.grpquota << QTYP_GRP)| 34 (c->opts.prjquota << QTYP_PRJ));
|
/linux-master/tools/testing/selftests/net/tcp_ao/lib/ |
H A D | repair.c | 167 struct tcp_repair_opt opts[4]; local 189 opts[opt_nr].opt_code = TCPOPT_SACK_PERMITTED; 190 opts[opt_nr].opt_val = 0; 194 opts[opt_nr].opt_code = TCPOPT_WINDOW; 195 opts[opt_nr].opt_val = state->info.tcpi_snd_wscale + 200 opts[opt_nr].opt_code = TCPOPT_TIMESTAMP; 201 opts[opt_nr].opt_val = 0; 204 opts[opt_nr].opt_code = TCPOPT_MAXSEG; 205 opts[opt_nr].opt_val = state->mss; 208 if (setsockopt(sk, SOL_TCP, TCP_REPAIR_OPTIONS, opts, opt_n [all...] |
/linux-master/tools/testing/vsock/ |
H A D | util.h | 31 void (*run_client)(const struct test_opts *opts); 34 void (*run_server)(const struct test_opts *opts); 58 const struct test_opts *opts);
|
H A D | vsock_diag_test.c | 330 static void test_no_sockets(const struct test_opts *opts) argument 339 static void test_listen_socket_server(const struct test_opts *opts) argument 347 .svm_port = opts->peer_port, 377 static void test_connect_client(const struct test_opts *opts) argument 383 fd = vsock_stream_connect(opts->peer_cid, opts->peer_port); 402 static void test_connect_server(const struct test_opts *opts) argument 408 client_fd = vsock_stream_accept(VMADDR_CID_ANY, opts->peer_port, NULL); 526 struct test_opts opts = { local 546 opts [all...] |
/linux-master/net/netfilter/ |
H A D | nft_synproxy.c | 23 static void nft_synproxy_tcp_options(struct synproxy_options *opts, argument 31 opts->options |= NF_SYNPROXY_OPT_ECN; 33 opts->options &= priv->info.options; 34 opts->mss_encode = opts->mss_option; 35 opts->mss_option = info->mss; 36 if (opts->options & NF_SYNPROXY_OPT_TIMESTAMP) 37 synproxy_init_timestamp_cookie(info, opts); 39 opts->options &= ~(NF_SYNPROXY_OPT_WSCALE | 49 struct synproxy_options *opts) 44 nft_synproxy_eval_v4(const struct nft_synproxy *priv, struct nft_regs *regs, const struct nft_pktinfo *pkt, const struct tcphdr *tcp, struct tcphdr *_tcph, struct synproxy_options *opts) argument 75 nft_synproxy_eval_v6(const struct nft_synproxy *priv, struct nft_regs *regs, const struct nft_pktinfo *pkt, const struct tcphdr *tcp, struct tcphdr *_tcph, struct synproxy_options *opts) argument 110 struct synproxy_options opts = {}; local [all...] |
H A D | nft_tunnel.c | 183 struct nft_tunnel_opts opts; member in struct:nft_tunnel_obj 258 struct nft_tunnel_opts *opts) 271 opts->u.vxlan.gbp = ntohl(nla_get_be32(tb[NFTA_TUNNEL_KEY_VXLAN_GBP])); 273 opts->len = sizeof(struct vxlan_metadata); 274 opts->flags = TUNNEL_VXLAN_OPT; 287 struct nft_tunnel_opts *opts) 308 opts->u.erspan.u.index = 319 set_hwid(&opts->u.erspan.u.md2, hwid); 320 opts->u.erspan.u.md2.dir = dir; 325 opts 257 nft_tunnel_obj_vxlan_init(const struct nlattr *attr, struct nft_tunnel_opts *opts) argument 286 nft_tunnel_obj_erspan_init(const struct nlattr *attr, struct nft_tunnel_opts *opts) argument 339 nft_tunnel_obj_geneve_init(const struct nlattr *attr, struct nft_tunnel_opts *opts) argument 382 nft_tunnel_obj_opts_init(const struct nft_ctx *ctx, const struct nlattr *attr, struct ip_tunnel_info *info, struct nft_tunnel_opts *opts) argument 579 struct nft_tunnel_opts *opts = &priv->opts; local [all...] |
/linux-master/tools/lib/bpf/ |
H A D | bpf.h | 66 const struct bpf_map_create_opts *opts); 117 struct bpf_prog_load_opts *opts); 146 struct bpf_btf_load_opts *opts); 182 * @param opts options for configuring the way the batch deletion works 188 const struct bpf_map_batch_opts *opts); 219 * @param opts options for configuring the way the batch lookup works 225 const struct bpf_map_batch_opts *opts); 248 * @param opts options for configuring the way the batch lookup and delete works 255 const struct bpf_map_batch_opts *opts); 264 * The *opts* paramete [all...] |
H A D | skel_internal.h | 309 static inline int bpf_load_and_run(struct bpf_load_and_run_opts *opts) argument 316 err = map_fd = skel_map_create(BPF_MAP_TYPE_ARRAY, "__loader.map", 4, opts->data_sz, 1); 318 opts->errstr = "failed to create loader map"; 323 err = skel_map_update_elem(map_fd, &key, opts->data, 0); 325 opts->errstr = "failed to update loader map"; 332 attr.insns = (long) opts->insns; 333 attr.insn_cnt = opts->insns_sz / sizeof(struct bpf_insn); 337 attr.log_level = opts->ctx->log_level; 338 attr.log_size = opts->ctx->log_size; 339 attr.log_buf = opts [all...] |
/linux-master/net/9p/ |
H A D | trans_rdma.c | 170 * @opts: rdma transport-specific structure to parse options into 174 static int parse_opts(char *params, struct p9_rdma_opts *opts) argument 181 opts->port = P9_PORT; 182 opts->sq_depth = P9_RDMA_SQ_DEPTH; 183 opts->rq_depth = P9_RDMA_RQ_DEPTH; 184 opts->timeout = P9_RDMA_TIMEOUT; 185 opts->privport = false; 214 opts->port = option; 217 opts->sq_depth = option; 220 opts 571 alloc_rdma(struct p9_rdma_opts *opts) argument 638 struct p9_rdma_opts opts; local [all...] |
/linux-master/drivers/usb/gadget/function/ |
H A D | f_eem.c | 592 struct f_eem_opts *opts; local 594 opts = container_of(f, struct f_eem_opts, func_inst); 595 if (opts->bound) 596 gether_cleanup(netdev_priv(opts->net)); 598 free_netdev(opts->net); 599 kfree(opts); 604 struct f_eem_opts *opts; local 606 opts = kzalloc(sizeof(*opts), GFP_KERNEL); 607 if (!opts) 626 struct f_eem_opts *opts; local 646 struct f_eem_opts *opts; local [all...] |
H A D | f_printer.c | 1198 struct f_printer_opts *opts = to_f_printer_opts(item); local 1200 usb_put_function_instance(&opts->func_inst); 1210 struct f_printer_opts *opts = to_f_printer_opts(item); local 1213 mutex_lock(&opts->lock); 1214 if (!opts->pnp_string) 1217 result = strscpy(page, opts->pnp_string, PAGE_SIZE); 1226 mutex_unlock(&opts->lock); 1234 struct f_printer_opts *opts = to_f_printer_opts(item); local 1238 mutex_lock(&opts->lock); 1246 if (opts 1263 struct f_printer_opts *opts = to_f_printer_opts(item); local 1276 struct f_printer_opts *opts = to_f_printer_opts(item); local 1334 struct f_printer_opts *opts; local 1353 struct f_printer_opts *opts; local 1398 struct f_printer_opts *opts; local 1455 struct f_printer_opts *opts; local [all...] |
H A D | f_obex.c | 388 struct f_serial_opts *opts = to_f_serial_opts(item); local 390 usb_put_function_instance(&opts->func_inst); 417 struct f_serial_opts *opts; local 419 opts = container_of(f, struct f_serial_opts, func_inst); 420 gserial_free_line(opts->port_num); 421 kfree(opts); 426 struct f_serial_opts *opts; local 429 opts = kzalloc(sizeof(*opts), GFP_KERNEL); 430 if (!opts) 461 struct f_serial_opts *opts; local [all...] |
/linux-master/drivers/crypto/caam/ |
H A D | qi.c | 182 struct qm_mcc_initfq opts; local 198 memset(&opts, 0, sizeof(opts)); 199 opts.we_mask = cpu_to_be16(QM_INITFQ_WE_FQCTRL | QM_INITFQ_WE_DESTWQ | 202 opts.fqd.fq_ctrl = cpu_to_be16(QM_FQCTRL_CPCSTASH | QM_FQCTRL_CGE); 203 qm_fqd_set_destwq(&opts.fqd, qm_channel_caam, 2); 204 opts.fqd.context_b = cpu_to_be32(qman_fq_fqid(rsp_fq)); 205 qm_fqd_context_a_set64(&opts.fqd, hwdesc); 206 opts.fqd.cgid = qipriv.cgr.cgrid; 208 ret = qman_init_fq(req_fq, fq_sched_flag, &opts); 620 struct qm_mcc_initfq opts; local 666 struct qm_mcc_initcgr opts; local [all...] |
/linux-master/fs/tracefs/ |
H A D | inode.c | 239 unsigned int opts; member in struct:tracefs_mount_opts 260 static int tracefs_parse_options(char *data, struct tracefs_mount_opts *opts) argument 269 opts->opts = 0; 270 opts->mode = TRACEFS_DEFAULT_MODE; 284 opts->uid = uid; 292 opts->gid = gid; 297 opts->mode = option & S_IALLUGO; 305 opts->opts | 315 struct tracefs_mount_opts *opts = &fsi->mount_opts; local 357 struct tracefs_mount_opts *opts = &fsi->mount_opts; local [all...] |
/linux-master/fs/debugfs/ |
H A D | inode.c | 85 unsigned int opts; member in struct:debugfs_mount_opts 106 static int debugfs_parse_options(char *data, struct debugfs_mount_opts *opts) argument 115 opts->opts = 0; 116 opts->mode = DEBUGFS_DEFAULT_MODE; 130 opts->uid = uid; 138 opts->gid = gid; 143 opts->mode = option & S_IALLUGO; 151 opts->opts | 161 struct debugfs_mount_opts *opts = &fsi->mount_opts; local 209 struct debugfs_mount_opts *opts = &fsi->mount_opts; local [all...] |
/linux-master/fs/exfat/ |
H A D | super.c | 135 struct exfat_mount_options *opts = &sbi->options; local 138 if (!uid_eq(opts->fs_uid, GLOBAL_ROOT_UID)) 140 from_kuid_munged(&init_user_ns, opts->fs_uid)); 141 if (!gid_eq(opts->fs_gid, GLOBAL_ROOT_GID)) 143 from_kgid_munged(&init_user_ns, opts->fs_gid)); 144 seq_printf(m, ",fmask=%04o,dmask=%04o", opts->fs_fmask, opts->fs_dmask); 145 if (opts->allow_utime) 146 seq_printf(m, ",allow_utime=%04o", opts->allow_utime); 147 if (opts 255 struct exfat_mount_options *opts = &sbi->options; local 621 struct exfat_mount_options *opts = &sbi->options; local [all...] |
/linux-master/tools/perf/arch/arm/util/ |
H A D | cs-etm.c | 236 struct record_opts *opts, 250 opts->auxtrace_snapshot_mode = true; 251 opts->auxtrace_snapshot_size = snapshot_size; 302 struct record_opts *opts) 329 ptr->snapshot_mode = opts->auxtrace_snapshot_mode; 331 if (!record_opts__no_switch_events(opts) && 333 opts->record_switch_events = true; 336 opts->full_auxtrace = true; 342 if (opts->use_clockid) { 349 if (opts 235 cs_etm_parse_snapshot_options(struct auxtrace_record *itr, struct record_opts *opts, const char *str) argument 300 cs_etm_recording_options(struct auxtrace_record *itr, struct evlist *evlist, struct record_opts *opts) argument [all...] |
/linux-master/tools/perf/tests/ |
H A D | backward-ring-buffer.c | 92 struct record_opts opts = { local 104 opts.target.tid = opts.target.pid = pid; 112 err = evlist__create_maps(evlist, &opts.target); 131 evlist__config(evlist, &opts, NULL); 141 err = do_test(evlist, opts.mmap_pages, &sample_count,
|