Home
last modified time | relevance | path

Searched refs:opts (Results 1 – 25 of 249) sorted by relevance

12345678910

/Linux-v5.4/drivers/usb/gadget/function/
Du_ether_configfs.h19 struct f_##_f_##_opts *opts = to_f_##_f_##_opts(item); \
21 usb_put_function_instance(&opts->func_inst); \
32 struct f_##_f_##_opts *opts = to_f_##_f_##_opts(item); \
35 mutex_lock(&opts->lock); \
36 result = gether_get_dev_addr(opts->net, page, PAGE_SIZE); \
37 mutex_unlock(&opts->lock); \
45 struct f_##_f_##_opts *opts = to_f_##_f_##_opts(item); \
48 mutex_lock(&opts->lock); \
49 if (opts->refcnt) { \
50 mutex_unlock(&opts->lock); \
[all …]
Duvc_configfs.c146 struct f_uvc_opts *opts; \
154 opts = to_f_uvc_opts(opts_item); \
156 mutex_lock(&opts->lock); \
158 mutex_unlock(&opts->lock); \
169 struct f_uvc_opts *opts; \
178 opts = to_f_uvc_opts(opts_item); \
180 mutex_lock(&opts->lock); \
181 if (ch->linked || opts->refcnt) { \
197 mutex_unlock(&opts->lock); \
264 struct f_uvc_opts *opts; \
[all …]
Df_uvc.c593 struct f_uvc_opts *opts; in uvc_function_bind() local
598 opts = fi_to_f_uvc_opts(f->fi); in uvc_function_bind()
601 opts->streaming_interval = clamp(opts->streaming_interval, 1U, 16U); in uvc_function_bind()
602 opts->streaming_maxpacket = clamp(opts->streaming_maxpacket, 1U, 3072U); in uvc_function_bind()
603 opts->streaming_maxburst = min(opts->streaming_maxburst, 15U); in uvc_function_bind()
606 if (opts->streaming_maxburst && in uvc_function_bind()
607 (opts->streaming_maxpacket % 1024) != 0) { in uvc_function_bind()
608 opts->streaming_maxpacket = roundup(opts->streaming_maxpacket, 1024); in uvc_function_bind()
610 opts->streaming_maxpacket); in uvc_function_bind()
619 if (opts->streaming_maxpacket <= 1024) { in uvc_function_bind()
[all …]
Df_uac1_legacy.c326 struct f_uac1_legacy_opts *opts; in f_audio_out_ep_complete() local
330 opts = container_of(audio->card.func.fi, struct f_uac1_legacy_opts, in f_audio_out_ep_complete()
332 audio_buf_size = opts->audio_buf_size; in f_audio_out_ep_complete()
578 struct f_uac1_legacy_opts *opts; in f_audio_set_alt() local
584 opts = container_of(f->fi, struct f_uac1_legacy_opts, func_inst); in f_audio_set_alt()
585 req_buf_size = opts->req_buf_size; in f_audio_set_alt()
586 req_count = opts->req_count; in f_audio_set_alt()
587 audio_buf_size = opts->audio_buf_size; in f_audio_set_alt()
810 struct f_uac1_legacy_opts *opts = to_f_uac1_opts(item); in f_uac1_attr_release() local
812 usb_put_function_instance(&opts->func_inst); in f_uac1_attr_release()
[all …]
Df_sourcesink.c450 struct f_ss_opts *opts; in sourcesink_free_func() local
452 opts = container_of(f->fi, struct f_ss_opts, func_inst); in sourcesink_free_func()
454 mutex_lock(&opts->lock); in sourcesink_free_func()
455 opts->refcnt--; in sourcesink_free_func()
456 mutex_unlock(&opts->lock); in sourcesink_free_func()
890 struct f_ss_opts *opts = to_f_ss_opts(item); in f_ss_opts_pattern_show() local
893 mutex_lock(&opts->lock); in f_ss_opts_pattern_show()
894 result = sprintf(page, "%u\n", opts->pattern); in f_ss_opts_pattern_show()
895 mutex_unlock(&opts->lock); in f_ss_opts_pattern_show()
903 struct f_ss_opts *opts = to_f_ss_opts(item); in f_ss_opts_pattern_store() local
[all …]
Df_hid.c871 struct f_hid_opts *opts = to_f_hid_opts(item); in hid_attr_release() local
873 usb_put_function_instance(&opts->func_inst); in hid_attr_release()
883 struct f_hid_opts *opts = to_f_hid_opts(item); \
886 mutex_lock(&opts->lock); \
887 result = sprintf(page, "%d\n", opts->name); \
888 mutex_unlock(&opts->lock); \
896 struct f_hid_opts *opts = to_f_hid_opts(item); \
900 mutex_lock(&opts->lock); \
901 if (opts->refcnt) { \
914 opts->name = num; \
[all …]
Df_subset.c419 struct f_gether_opts *opts; in geth_free_inst() local
421 opts = container_of(f, struct f_gether_opts, func_inst); in geth_free_inst()
422 if (opts->bound) in geth_free_inst()
423 gether_cleanup(netdev_priv(opts->net)); in geth_free_inst()
425 free_netdev(opts->net); in geth_free_inst()
426 kfree(opts); in geth_free_inst()
431 struct f_gether_opts *opts; in geth_alloc_inst() local
433 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in geth_alloc_inst()
434 if (!opts) in geth_alloc_inst()
436 mutex_init(&opts->lock); in geth_alloc_inst()
[all …]
Df_midi.c1076 struct f_midi_opts *opts = to_f_midi_opts(item); in midi_attr_release() local
1078 usb_put_function_instance(&opts->func_inst); in midi_attr_release()
1088 struct f_midi_opts *opts = to_f_midi_opts(item); \
1091 mutex_lock(&opts->lock); \
1092 result = sprintf(page, "%d\n", opts->name); \
1093 mutex_unlock(&opts->lock); \
1101 struct f_midi_opts *opts = to_f_midi_opts(item); \
1105 mutex_lock(&opts->lock); \
1106 if (opts->refcnt > 1) { \
1119 opts->name = num; \
[all …]
Df_rndis.c836 struct f_rndis_opts *opts; in rndis_borrow_net() local
838 opts = container_of(f, struct f_rndis_opts, func_inst); in rndis_borrow_net()
839 if (opts->bound) in rndis_borrow_net()
840 gether_cleanup(netdev_priv(opts->net)); in rndis_borrow_net()
842 free_netdev(opts->net); in rndis_borrow_net()
843 opts->borrowed_net = opts->bound = true; in rndis_borrow_net()
844 opts->net = net; in rndis_borrow_net()
897 struct f_rndis_opts *opts; in rndis_free_inst() local
899 opts = container_of(f, struct f_rndis_opts, func_inst); in rndis_free_inst()
900 if (!opts->borrowed_net) { in rndis_free_inst()
[all …]
Df_uac2.c476 static void setup_descriptor(struct f_uac2_opts *opts) in setup_descriptor() argument
481 if (EPOUT_EN(opts)) in setup_descriptor()
483 if (EPIN_EN(opts)) in setup_descriptor()
485 if (EPOUT_EN(opts)) in setup_descriptor()
487 if (EPIN_EN(opts)) in setup_descriptor()
489 if (EPOUT_EN(opts)) in setup_descriptor()
491 if (EPIN_EN(opts)) in setup_descriptor()
506 if (EPIN_EN(opts)) { in setup_descriptor()
515 if (EPOUT_EN(opts)) { in setup_descriptor()
529 if (EPIN_EN(opts)) in setup_descriptor()
[all …]
Df_ncm.c960 const struct ndp_parser_opts *opts = ncm->parser_opts; in package_for_tx() local
962 const int dgram_idx_len = 2 * 2 * opts->dgram_item_len; in package_for_tx()
976 put_ncm(&ntb_iter, opts->block_length, new_len); in package_for_tx()
977 put_ncm(&ntb_iter, opts->ndp_index, ndp_index); in package_for_tx()
980 new_len = opts->ndp_size + in package_for_tx()
1020 const struct ndp_parser_opts *opts = ncm->parser_opts; in ncm_wrap_ntb() local
1024 const int dgram_idx_len = 2 * 2 * opts->dgram_item_len; in ncm_wrap_ntb()
1059 ncb_len = opts->nth_size; in ncm_wrap_ntb()
1071 put_unaligned_le32(opts->nth_sign, ntb_data); in ncm_wrap_ntb()
1074 put_unaligned_le16(opts->nth_size, ntb_data++); in ncm_wrap_ntb()
[all …]
Df_uac1.c639 struct f_uac1_opts *opts = to_f_uac1_opts(item); in f_uac1_attr_release() local
641 usb_put_function_instance(&opts->func_inst); in f_uac1_attr_release()
653 struct f_uac1_opts *opts = to_f_uac1_opts(item); \
656 mutex_lock(&opts->lock); \
657 result = sprintf(page, "%u\n", opts->name); \
658 mutex_unlock(&opts->lock); \
667 struct f_uac1_opts *opts = to_f_uac1_opts(item); \
671 mutex_lock(&opts->lock); \
672 if (opts->refcnt) { \
681 opts->name = num; \
[all …]
/Linux-v5.4/drivers/nvme/host/
Dfabrics.c107 if (ctrl->opts->mask & NVMF_OPT_TRADDR) in nvmf_get_address()
108 len += snprintf(buf, size, "traddr=%s", ctrl->opts->traddr); in nvmf_get_address()
109 if (ctrl->opts->mask & NVMF_OPT_TRSVCID) in nvmf_get_address()
111 (len) ? "," : "", ctrl->opts->trsvcid); in nvmf_get_address()
112 if (ctrl->opts->mask & NVMF_OPT_HOST_TRADDR) in nvmf_get_address()
114 (len) ? "," : "", ctrl->opts->host_traddr); in nvmf_get_address()
387 if (ctrl->opts->disable_sqflow) in nvmf_connect_admin_queue()
394 uuid_copy(&data->hostid, &ctrl->opts->host->id); in nvmf_connect_admin_queue()
396 strncpy(data->subsysnqn, ctrl->opts->subsysnqn, NVMF_NQN_SIZE); in nvmf_connect_admin_queue()
397 strncpy(data->hostnqn, ctrl->opts->host->nqn, NVMF_NQN_SIZE); in nvmf_connect_admin_queue()
[all …]
/Linux-v5.4/net/netfilter/
Dnf_synproxy_core.c29 const struct tcphdr *th, struct synproxy_options *opts) in synproxy_parse_options() argument
38 opts->options = 0; in synproxy_parse_options()
59 opts->mss_option = get_unaligned_be16(ptr); in synproxy_parse_options()
60 opts->options |= NF_SYNPROXY_OPT_MSS; in synproxy_parse_options()
65 opts->wscale = *ptr; in synproxy_parse_options()
66 if (opts->wscale > TCP_MAX_WSCALE) in synproxy_parse_options()
67 opts->wscale = TCP_MAX_WSCALE; in synproxy_parse_options()
68 opts->options |= NF_SYNPROXY_OPT_WSCALE; in synproxy_parse_options()
73 opts->tsval = get_unaligned_be32(ptr); in synproxy_parse_options()
74 opts->tsecr = get_unaligned_be32(ptr + 4); in synproxy_parse_options()
[all …]
/Linux-v5.4/tools/perf/
Dbuiltin-record.c77 struct record_opts opts; member
375 struct record_opts *opts = (struct record_opts *)opt->value; in record__aio_parse() local
378 opts->nr_cblocks = 0; in record__aio_parse()
381 opts->nr_cblocks = strtol(str, NULL, 0); in record__aio_parse()
382 if (!opts->nr_cblocks) in record__aio_parse()
383 opts->nr_cblocks = nr_cblocks_default; in record__aio_parse()
413 return rec->opts.nr_cblocks > 0; in record__aio_enabled()
422 struct record_opts *opts = (struct record_opts *)opt->value; in record__mmap_flush_parse() local
435 opts->mmap_flush = parse_tag_value(str, tags); in record__mmap_flush_parse()
436 if (opts->mmap_flush == (int)-1) in record__mmap_flush_parse()
[all …]
/Linux-v5.4/drivers/net/ppp/
Dppp_mppe.h34 #define MPPE_OPTS_TO_CI(opts, ci) \ argument
39 if (opts & MPPE_OPT_STATEFUL) \
48 if (opts & MPPE_OPT_128) \
50 if (opts & MPPE_OPT_40) \
56 #define MPPE_CI_TO_OPTS(ci, opts) \ argument
60 opts = 0; \
64 opts |= MPPE_OPT_STATEFUL; \
68 opts |= MPPE_OPT_128; \
70 opts |= MPPE_OPT_40; \
74 opts |= MPPE_OPT_56; \
[all …]
/Linux-v5.4/tools/perf/arch/x86/util/
Dintel-bts.c107 struct record_opts *opts) in intel_bts_recording_options() argument
117 btsr->snapshot_mode = opts->auxtrace_snapshot_mode; in intel_bts_recording_options()
128 opts->full_auxtrace = true; in intel_bts_recording_options()
132 if (opts->auxtrace_snapshot_mode && !opts->full_auxtrace) { in intel_bts_recording_options()
137 if (!opts->full_auxtrace) in intel_bts_recording_options()
140 if (opts->full_auxtrace && !perf_cpu_map__empty(cpus)) { in intel_bts_recording_options()
146 if (opts->auxtrace_snapshot_mode) { in intel_bts_recording_options()
147 if (!opts->auxtrace_snapshot_size && !opts->auxtrace_mmap_pages) { in intel_bts_recording_options()
149 opts->auxtrace_mmap_pages = MiB(4) / page_size; in intel_bts_recording_options()
151 opts->auxtrace_mmap_pages = KiB(128) / page_size; in intel_bts_recording_options()
[all …]
/Linux-v5.4/tools/perf/util/
Drecord.c139 void perf_evlist__config(struct evlist *evlist, struct record_opts *opts, in perf_evlist__config() argument
145 bool sample_id = opts->sample_id; in perf_evlist__config()
151 if (opts->group) in perf_evlist__config()
155 opts->no_inherit = true; in perf_evlist__config()
160 perf_evsel__config(evsel, opts, callchain); in perf_evlist__config()
165 if (opts->full_auxtrace) { in perf_evlist__config()
198 static int record_opts__config_freq(struct record_opts *opts) in record_opts__config_freq() argument
200 bool user_freq = opts->user_freq != UINT_MAX; in record_opts__config_freq()
203 if (opts->user_interval != ULLONG_MAX) in record_opts__config_freq()
204 opts->default_interval = opts->user_interval; in record_opts__config_freq()
[all …]
/Linux-v5.4/tools/lib/subcmd/
Dparse-options.c693 static void print_option_help(const struct option *opts, int full) in print_option_help() argument
698 if (opts->type == OPTION_GROUP) { in print_option_help()
700 if (*opts->help) in print_option_help()
701 fprintf(stderr, "%s\n", opts->help); in print_option_help()
704 if (!full && (opts->flags & PARSE_OPT_HIDDEN)) in print_option_help()
706 if (opts->flags & PARSE_OPT_DISABLED) in print_option_help()
710 if (opts->short_name) in print_option_help()
711 pos += fprintf(stderr, "-%c", opts->short_name); in print_option_help()
715 if (opts->long_name && opts->short_name) in print_option_help()
717 if (opts->long_name) in print_option_help()
[all …]
/Linux-v5.4/fs/fat/
Dinode.c712 static void fat_reset_iocharset(struct fat_mount_options *opts) in fat_reset_iocharset() argument
714 if (opts->iocharset != fat_default_iocharset) { in fat_reset_iocharset()
716 kfree(opts->iocharset); in fat_reset_iocharset()
717 opts->iocharset = fat_default_iocharset; in fat_reset_iocharset()
936 struct fat_mount_options *opts = &sbi->options; in fat_show_options() local
937 int isvfat = opts->isvfat; in fat_show_options()
939 if (!uid_eq(opts->fs_uid, GLOBAL_ROOT_UID)) in fat_show_options()
941 from_kuid_munged(&init_user_ns, opts->fs_uid)); in fat_show_options()
942 if (!gid_eq(opts->fs_gid, GLOBAL_ROOT_GID)) in fat_show_options()
944 from_kgid_munged(&init_user_ns, opts->fs_gid)); in fat_show_options()
[all …]
/Linux-v5.4/fs/devpts/
Dinode.c246 static int parse_mount_options(char *data, int op, struct pts_mount_opts *opts) in parse_mount_options() argument
252 opts->setuid = 0; in parse_mount_options()
253 opts->setgid = 0; in parse_mount_options()
254 opts->uid = GLOBAL_ROOT_UID; in parse_mount_options()
255 opts->gid = GLOBAL_ROOT_GID; in parse_mount_options()
256 opts->mode = DEVPTS_DEFAULT_MODE; in parse_mount_options()
257 opts->ptmxmode = DEVPTS_DEFAULT_PTMX_MODE; in parse_mount_options()
258 opts->max = NR_UNIX98_PTY_MAX; in parse_mount_options()
264 opts->reserve = in parse_mount_options()
283 opts->uid = uid; in parse_mount_options()
[all …]
/Linux-v5.4/tools/perf/arch/arm/util/
Dcs-etm.c193 struct record_opts *opts, in cs_etm_parse_snapshot_options() argument
207 opts->auxtrace_snapshot_mode = true; in cs_etm_parse_snapshot_options()
208 opts->auxtrace_snapshot_size = snapshot_size; in cs_etm_parse_snapshot_options()
253 struct record_opts *opts) in cs_etm_recording_options() argument
265 ptr->snapshot_mode = opts->auxtrace_snapshot_mode; in cs_etm_recording_options()
268 opts->record_switch_events = true; in cs_etm_recording_options()
280 opts->full_auxtrace = true; in cs_etm_recording_options()
292 if (opts->use_clockid) { in cs_etm_recording_options()
299 if (opts->auxtrace_snapshot_mode) { in cs_etm_recording_options()
304 if (!opts->auxtrace_snapshot_size && in cs_etm_recording_options()
[all …]
/Linux-v5.4/net/ipv4/netfilter/
Dipt_SYNPROXY.c18 struct synproxy_options opts = {}; in synproxy_tg4() local
28 if (!synproxy_parse_options(skb, par->thoff, th, &opts)) in synproxy_tg4()
36 opts.options |= XT_SYNPROXY_OPT_ECN; in synproxy_tg4()
38 opts.options &= info->options; in synproxy_tg4()
39 opts.mss_encode = opts.mss_option; in synproxy_tg4()
40 opts.mss_option = info->mss; in synproxy_tg4()
41 if (opts.options & XT_SYNPROXY_OPT_TIMESTAMP) in synproxy_tg4()
42 synproxy_init_timestamp_cookie(info, &opts); in synproxy_tg4()
44 opts.options &= ~(XT_SYNPROXY_OPT_WSCALE | in synproxy_tg4()
48 synproxy_send_client_synack(net, skb, th, &opts); in synproxy_tg4()
[all …]
/Linux-v5.4/net/ipv6/netfilter/
Dip6t_SYNPROXY.c18 struct synproxy_options opts = {}; in synproxy_tg6() local
28 if (!synproxy_parse_options(skb, par->thoff, th, &opts)) in synproxy_tg6()
36 opts.options |= XT_SYNPROXY_OPT_ECN; in synproxy_tg6()
38 opts.options &= info->options; in synproxy_tg6()
39 opts.mss_encode = opts.mss_option; in synproxy_tg6()
40 opts.mss_option = info->mss; in synproxy_tg6()
41 if (opts.options & XT_SYNPROXY_OPT_TIMESTAMP) in synproxy_tg6()
42 synproxy_init_timestamp_cookie(info, &opts); in synproxy_tg6()
44 opts.options &= ~(XT_SYNPROXY_OPT_WSCALE | in synproxy_tg6()
48 synproxy_send_client_synack_ipv6(net, skb, th, &opts); in synproxy_tg6()
[all …]
/Linux-v5.4/tools/testing/selftests/bpf/
Dtest_btf_dump.c25 struct btf_dump_opts opts; member
27 {.name = "btf_dump_test_case_syntax", .opts = {}},
28 {.name = "btf_dump_test_case_ordering", .opts = {}},
29 {.name = "btf_dump_test_case_padding", .opts = {}},
30 {.name = "btf_dump_test_case_packing", .opts = {}},
31 {.name = "btf_dump_test_case_bitfields", .opts = {}},
32 {.name = "btf_dump_test_case_multidim", .opts = {}},
33 {.name = "btf_dump_test_case_namespacing", .opts = {}},
37 const struct btf_dump_opts *opts) in btf_dump_all_types() argument
43 d = btf_dump__new(btf, NULL, opts, btf_dump_printf); in btf_dump_all_types()
[all …]

12345678910