Searched refs:opts (Results 51 - 75 of 512) sorted by relevance

1234567891011>>

/linux-master/fs/devpts/
H A Dinode.c222 * Set @opts to mount options specified in @data. If an option is not
227 static int parse_mount_options(char *data, int op, struct pts_mount_opts *opts) argument
233 opts->setuid = 0;
234 opts->setgid = 0;
235 opts->uid = GLOBAL_ROOT_UID;
236 opts->gid = GLOBAL_ROOT_GID;
237 opts->mode = DEVPTS_DEFAULT_MODE;
238 opts->ptmxmode = DEVPTS_DEFAULT_PTMX_MODE;
239 opts->max = NR_UNIX98_PTY_MAX;
245 opts
311 struct pts_mount_opts *opts = &fsi->mount_opts; local
369 struct pts_mount_opts *opts = &fsi->mount_opts; local
387 struct pts_mount_opts *opts = &fsi->mount_opts; local
549 struct pts_mount_opts *opts; local
[all...]
/linux-master/drivers/usb/gadget/function/
H A Df_subset.c417 struct f_gether_opts *opts; local
419 opts = container_of(f, struct f_gether_opts, func_inst);
420 if (opts->bound)
421 gether_cleanup(netdev_priv(opts->net));
423 free_netdev(opts->net);
424 kfree(opts);
429 struct f_gether_opts *opts; local
431 opts = kzalloc(sizeof(*opts), GFP_KERNEL);
432 if (!opts)
466 struct f_gether_opts *opts; local
[all...]
H A Df_sourcesink.c449 struct f_ss_opts *opts; local
451 opts = container_of(f->fi, struct f_ss_opts, func_inst);
453 mutex_lock(&opts->lock);
454 opts->refcnt--;
455 mutex_unlock(&opts->lock);
891 struct f_ss_opts *opts = to_f_ss_opts(item); local
894 mutex_lock(&opts->lock);
895 result = sprintf(page, "%u\n", opts->pattern);
896 mutex_unlock(&opts->lock);
904 struct f_ss_opts *opts local
934 struct f_ss_opts *opts = to_f_ss_opts(item); local
947 struct f_ss_opts *opts = to_f_ss_opts(item); local
977 struct f_ss_opts *opts = to_f_ss_opts(item); local
990 struct f_ss_opts *opts = to_f_ss_opts(item); local
1020 struct f_ss_opts *opts = to_f_ss_opts(item); local
1033 struct f_ss_opts *opts = to_f_ss_opts(item); local
1063 struct f_ss_opts *opts = to_f_ss_opts(item); local
1076 struct f_ss_opts *opts = to_f_ss_opts(item); local
1106 struct f_ss_opts *opts = to_f_ss_opts(item); local
1119 struct f_ss_opts *opts = to_f_ss_opts(item); local
1144 struct f_ss_opts *opts = to_f_ss_opts(item); local
1157 struct f_ss_opts *opts = to_f_ss_opts(item); local
1182 struct f_ss_opts *opts = to_f_ss_opts(item); local
1195 struct f_ss_opts *opts = to_f_ss_opts(item); local
[all...]
H A Duvc_configfs.c190 struct f_uvc_opts *opts; \
198 opts = to_f_uvc_opts(opts_item); \
200 mutex_lock(&opts->lock); \
202 mutex_unlock(&opts->lock); \
213 struct f_uvc_opts *opts; \
222 opts = to_f_uvc_opts(opts_item); \
224 mutex_lock(&opts->lock); \
225 if (ch->linked || opts->refcnt) { \
241 mutex_unlock(&opts->lock); \
308 struct f_uvc_opts *opts; \
344 struct f_uvc_opts *opts; local
399 struct f_uvc_opts *opts; local
513 struct f_uvc_opts *opts; local
569 struct f_uvc_opts *opts; local
677 struct f_uvc_opts *opts; local
703 struct f_uvc_opts *opts; local
823 struct f_uvc_opts *opts; local
857 struct f_uvc_opts *opts; local
910 struct f_uvc_opts *opts; local
960 struct f_uvc_opts *opts; local
983 struct f_uvc_opts *opts; local
1012 struct f_uvc_opts *opts; local
1040 struct f_uvc_opts *opts; local
1091 struct f_uvc_opts *opts; local
1119 struct f_uvc_opts *opts; local
1218 struct f_uvc_opts *opts; local
1250 struct f_uvc_opts *opts; local
1269 struct f_uvc_opts *opts; local
1342 struct f_uvc_opts *opts; local
1384 struct f_uvc_opts *opts; local
1471 struct f_uvc_opts *opts; local
1496 struct f_uvc_opts *opts; local
1519 struct f_uvc_opts *opts; local
1671 struct f_uvc_opts *opts; local
1698 struct f_uvc_opts *opts; local
1739 struct f_uvc_opts *opts; local
1803 struct f_uvc_opts *opts; local
1987 struct f_uvc_opts *opts; local
2031 struct f_uvc_opts *opts; local
2057 struct f_uvc_opts *opts; local
2131 struct f_uvc_opts *opts; local
2185 struct f_uvc_opts *opts; local
2238 struct f_uvc_opts *opts; local
2260 struct f_uvc_opts *opts; local
3076 struct f_uvc_opts *opts; local
3149 struct f_uvc_opts *opts; local
3241 struct f_uvc_opts *opts; local
3288 struct f_uvc_opts *opts = to_f_uvc_opts(item); local
3299 struct f_uvc_opts *opts; local
3337 struct f_uvc_opts *opts; local
3473 uvcg_attach_configfs(struct f_uvc_opts *opts) argument
[all...]
H A Df_uac2.c803 static void setup_headers(struct f_uac2_opts *opts, argument
845 if (EPIN_EN(opts))
847 if (EPOUT_EN(opts)) {
851 if (FUOUT_EN(opts))
855 if (EPIN_EN(opts)) {
858 if (FUIN_EN(opts))
864 if (EPOUT_EN(opts))
867 if (FUOUT_EN(opts) || FUIN_EN(opts)) {
873 if (EPOUT_EN(opts)) {
905 setup_descriptor(struct f_uac2_opts *opts) argument
990 struct f_uac2_opts *opts = g_audio_to_uac2_opts(agdev); local
1521 struct f_uac2_opts *opts = g_audio_to_uac2_opts(agdev); local
1598 struct f_uac2_opts *opts = g_audio_to_uac2_opts(agdev); local
1720 struct f_uac2_opts *opts = g_audio_to_uac2_opts(agdev); local
1769 struct f_uac2_opts *opts = g_audio_to_uac2_opts(agdev); local
1865 struct f_uac2_opts *opts = to_f_uac2_opts(item); local
2145 struct f_uac2_opts *opts; local
2153 struct f_uac2_opts *opts; local
2201 struct f_uac2_opts *opts; local
2229 struct f_uac2_opts *opts; local
[all...]
H A Df_ncm.c954 const struct ndp_parser_opts *opts = ncm->parser_opts; local
956 const int dgram_idx_len = 2 * 2 * opts->dgram_item_len;
970 put_ncm(&ntb_iter, opts->block_length, new_len);
971 put_ncm(&ntb_iter, opts->ndp_index, ndp_index);
974 new_len = opts->ndp_size +
1016 const struct ndp_parser_opts *opts = ncm->parser_opts; local
1020 const int dgram_idx_len = 2 * 2 * opts->dgram_item_len;
1051 ncb_len = opts->nth_size;
1063 put_unaligned_le32(opts->nth_sign, ntb_data);
1066 put_unaligned_le16(opts
1179 const struct ndp_parser_opts *opts = ncm->parser_opts; local
1607 struct f_ncm_opts *opts = to_f_ncm_opts(item); local
1620 struct f_ncm_opts *opts = to_f_ncm_opts(item); local
1665 struct f_ncm_opts *opts; local
1678 struct f_ncm_opts *opts; local
1718 struct f_ncm_opts *opts; local
1754 struct f_ncm_opts *opts; local
[all...]
H A Df_uac1_legacy.c326 struct f_uac1_legacy_opts *opts; local
330 opts = container_of(audio->card.func.fi, struct f_uac1_legacy_opts,
332 audio_buf_size = opts->audio_buf_size;
580 struct f_uac1_legacy_opts *opts; local
586 opts = container_of(f->fi, struct f_uac1_legacy_opts, func_inst);
587 req_buf_size = opts->req_buf_size;
588 req_count = opts->req_count;
589 audio_buf_size = opts->audio_buf_size;
810 struct f_uac1_legacy_opts *opts = to_f_uac1_opts(item); local
812 usb_put_function_instance(&opts
929 struct f_uac1_legacy_opts *opts; local
943 struct f_uac1_legacy_opts *opts; local
967 struct f_uac1_legacy_opts *opts; local
985 struct f_uac1_legacy_opts *opts; local
[all...]
/linux-master/net/ipv6/netfilter/
H A Dip6t_SYNPROXY.c18 struct synproxy_options opts = {}; local
28 if (!synproxy_parse_options(skb, par->thoff, th, &opts))
36 opts.options |= XT_SYNPROXY_OPT_ECN;
38 opts.options &= info->options;
39 opts.mss_encode = opts.mss_option;
40 opts.mss_option = info->mss;
41 if (opts.options & XT_SYNPROXY_OPT_TIMESTAMP)
42 synproxy_init_timestamp_cookie(info, &opts);
44 opts
[all...]
/linux-master/net/ipv4/netfilter/
H A Dipt_SYNPROXY.c18 struct synproxy_options opts = {}; local
28 if (!synproxy_parse_options(skb, par->thoff, th, &opts))
36 opts.options |= XT_SYNPROXY_OPT_ECN;
38 opts.options &= info->options;
39 opts.mss_encode = opts.mss_option;
40 opts.mss_option = info->mss;
41 if (opts.options & XT_SYNPROXY_OPT_TIMESTAMP)
42 synproxy_init_timestamp_cookie(info, &opts);
44 opts
[all...]
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dxdp_attach.c14 LIBBPF_OPTS(bpf_xdp_attach_opts, opts);
40 err = bpf_xdp_attach(IFINDEX_LO, fd1, XDP_FLAGS_REPLACE, &opts);
49 err = bpf_xdp_attach(IFINDEX_LO, fd2, XDP_FLAGS_REPLACE, &opts);
53 opts.old_prog_fd = fd1;
54 err = bpf_xdp_attach(IFINDEX_LO, fd2, 0, &opts);
62 err = bpf_xdp_attach(IFINDEX_LO, fd3, 0, &opts);
66 err = bpf_xdp_detach(IFINDEX_LO, 0, &opts);
70 opts.old_prog_fd = fd2;
71 err = bpf_xdp_detach(IFINDEX_LO, 0, &opts);
112 LIBBPF_OPTS(bpf_link_create_opts, opts);
[all...]
H A Darena_htab.c35 LIBBPF_OPTS(bpf_test_run_opts, opts);
51 ret = bpf_prog_test_run_opts(bpf_program__fd(skel->progs.arena_htab_llvm), &opts);
53 ASSERT_OK(opts.retval, "retval");
67 LIBBPF_OPTS(bpf_test_run_opts, opts);
76 ret = bpf_prog_test_run_opts(bpf_program__fd(skel->progs.arena_htab_asm), &opts);
78 ASSERT_OK(opts.retval, "retval");
H A Draw_tp_writable_reject_nbd_invalid.c21 LIBBPF_OPTS(bpf_prog_load_opts, opts,
29 &opts);
H A Dtc_bpf.c28 DECLARE_LIBBPF_OPTS(bpf_tc_opts, opts, .handle = 1, .priority = 1, .prog_fd = fd);
37 ret = bpf_tc_attach(hook, &opts);
41 if (!ASSERT_EQ(opts.handle, 1, "handle set") ||
42 !ASSERT_EQ(opts.priority, 1, "priority set") ||
43 !ASSERT_EQ(opts.prog_id, info.id, "prog_id set"))
46 opts.prog_id = 0;
47 opts.flags = BPF_TC_F_REPLACE;
48 ret = bpf_tc_attach(hook, &opts);
52 opts.flags = opts
[all...]
/linux-master/include/net/netfilter/
H A Dnf_synproxy.h47 struct synproxy_options *opts);
50 struct synproxy_options *opts);
54 const struct synproxy_options *opts);
59 struct synproxy_options *opts, u32 recv_seq);
72 const struct synproxy_options *opts);
76 struct synproxy_options *opts, u32 recv_seq);
/linux-master/tools/testing/selftests/netfilter/
H A Dconnect_close.c19 } opts = { variable in typeref:struct:__anon109
37 alarm(opts.timeout);
76 .sin_port = htons(opts.port),
93 .sin_port = htons(opts.port),
113 opts.timeout = atoi(optarg);
116 opts.port = atoi(optarg);
/linux-master/tools/perf/
H A Dbuiltin-data.c33 struct perf_data_convert_opts opts = { variable in typeref:struct:perf_data_convert_opts
44 OPT_BOOLEAN(0, "tod", &opts.tod, "Convert time to wall clock time"),
46 OPT_BOOLEAN('f', "force", &opts.force, "don't complain, do it"),
47 OPT_BOOLEAN(0, "all", &opts.all, "Convert all events"),
78 return bt_convert__perf2json(input_name, to_json, &opts);
82 return bt_convert__perf2ctf(input_name, to_ctf, &opts);
/linux-master/tools/perf/util/
H A Doff_cpu.h22 struct record_opts *opts);
27 struct record_opts *opts __maybe_unused)
/linux-master/drivers/acpi/
H A Dspcr.c87 static char opts[64]; local
210 snprintf(opts, sizeof(opts), "%s,%s,0x%llx", uart, iotype,
213 snprintf(opts, sizeof(opts), "%s,%s,0x%llx,%d", uart, iotype,
217 pr_info("console: %s\n", opts);
220 setup_earlycon(opts);
223 err = add_preferred_console(uart, 0, opts + strlen(uart) + 1);
/linux-master/tools/perf/arch/x86/util/
H A Dintel-pt.c237 struct record_opts *opts,
251 opts->auxtrace_snapshot_mode = true;
252 opts->auxtrace_snapshot_size = snapshot_size;
600 struct record_opts *opts)
613 ptr->snapshot_mode = opts->auxtrace_snapshot_mode;
626 opts->full_auxtrace = true;
630 if (opts->auxtrace_snapshot_mode && !opts->full_auxtrace) {
635 if (opts->auxtrace_snapshot_mode && opts
236 intel_pt_parse_snapshot_options(struct auxtrace_record *itr, struct record_opts *opts, const char *str) argument
598 intel_pt_recording_options(struct auxtrace_record *itr, struct evlist *evlist, struct record_opts *opts) argument
[all...]
/linux-master/fs/squashfs/
H A Dxz_wrapper.c42 struct comp_opts *opts; local
45 opts = kmalloc(sizeof(*opts), GFP_KERNEL);
46 if (opts == NULL) {
58 opts->dict_size = le32_to_cpu(comp_opts->dictionary_size);
61 n = ffs(opts->dict_size) - 1;
62 if (opts->dict_size != (1 << n) && opts->dict_size != (1 << n) +
69 opts->dict_size = max_t(int, msblk->block_size,
72 return opts;
[all...]
/linux-master/tools/perf/bench/
H A Devlist-open-close.c33 static struct record_opts opts = { variable in typeref:struct:record_opts
54 OPT_BOOLEAN('a', "all-cpus", &opts.target.system_wide, "system-wide collection from all CPUs"),
55 OPT_STRING('C', "cpu", &opts.target.cpu_list, "cpu", "list of cpus where to open events"),
56 OPT_STRING('p', "pid", &opts.target.pid, "pid", "record events on existing process id"),
57 OPT_STRING('t', "tid", &opts.target.tid, "tid", "record events on existing thread id"),
58 OPT_STRING('u', "uid", &opts.target.uid_str, "user", "user to profile"),
59 OPT_BOOLEAN(0, "per-thread", &opts.target.per_thread, "use per-thread mmaps"),
100 ret = evlist__create_maps(evlist, &opts.target);
106 evlist__config(evlist, &opts, NULL);
125 err = evlist__mmap(evlist, opts
[all...]
/linux-master/tools/testing/selftests/bpf/map_tests/
H A Dmap_percpu_stats.c167 struct upsert_opts *opts = arg; local
173 for (i = 0; i < opts->n; i++) {
174 if (opts->map_type == BPF_MAP_TYPE_HASH_OF_MAPS) {
177 } else if (is_percpu(opts->map_type)) {
185 if (opts->retry_for_nomem)
186 ret = map_update_retriable(opts->map_fd, &i, val_ptr, 0,
189 ret = bpf_map_update_elem(opts->map_fd, &i, val_ptr, 0);
192 if (opts->map_type == BPF_MAP_TYPE_HASH_OF_MAPS)
198 static void upsert_elements(struct upsert_opts *opts) argument
205 ret = pthread_create(&i[threads], NULL, patch_map_thread, opts);
293 struct upsert_opts opts = { local
[all...]
/linux-master/fs/fat/
H A Dinode.c715 static void fat_reset_iocharset(struct fat_mount_options *opts) argument
717 if (opts->iocharset != fat_default_iocharset) {
718 /* Note: opts->iocharset can be NULL here */
719 kfree(opts->iocharset);
720 opts->iocharset = fat_default_iocharset;
950 struct fat_mount_options *opts = &sbi->options; local
951 int isvfat = opts->isvfat;
953 if (!uid_eq(opts->fs_uid, GLOBAL_ROOT_UID))
955 from_kuid_munged(&init_user_ns, opts->fs_uid));
956 if (!gid_eq(opts
1134 parse_options(struct super_block *sb, char *options, int is_vfat, int silent, int *debug, struct fat_mount_options *opts) argument
[all...]
/linux-master/include/uapi/linux/netfilter_ipv6/
H A Dip6t_opts.h13 __u16 opts[IP6T_OPTS_OPTSNR]; /* opts */ member in struct:ip6t_opts
/linux-master/tools/lib/subcmd/
H A Dparse-options.c589 if (!strcmp(arg, "list-opts"))
696 static void print_option_help(const struct option *opts, int full) argument
701 if (opts->type == OPTION_GROUP) {
703 if (*opts->help)
704 fprintf(stderr, "%s\n", opts->help);
707 if (!full && (opts->flags & PARSE_OPT_HIDDEN))
709 if (opts->flags & PARSE_OPT_DISABLED)
713 if (opts->short_name)
714 pos += fprintf(stderr, "-%c", opts->short_name);
718 if (opts
807 options__order(const struct option *opts) argument
869 usage_with_options_internal(const char * const *usagestr, const struct option *opts, int full, struct parse_opt_ctx_t *ctx) argument
915 usage_with_options(const char * const *usagestr, const struct option *opts) argument
922 usage_with_options_msg(const char * const *usagestr, const struct option *opts, const char *fmt, ...) argument
939 parse_options_usage(const char * const *usagestr, const struct option *opts, const char *optstr, bool short_opt) argument
1005 find_option(struct option *opts, int shortopt, const char *longopt) argument
1016 set_option_flag(struct option *opts, int shortopt, const char *longopt, int flag) argument
1026 set_option_nobuild(struct option *opts, int shortopt, const char *longopt, const char *build_opt, bool can_skip) argument
[all...]

Completed in 275 milliseconds

1234567891011>>