Home
last modified time | relevance | path

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

12345678910>>...20

/OK3568_Linux_fs/kernel/drivers/usb/gadget/function/
H A 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 …]
H A Df_uvc.c340 struct f_uvc_opts *opts; in uvc_function_get_alt() local
344 opts = fi_to_f_uvc_opts(f->fi); in uvc_function_get_alt()
350 else if (!opts->streaming_bulk) in uvc_function_get_alt()
370 struct f_uvc_opts *opts; in uvc_function_set_alt() local
375 opts = fi_to_f_uvc_opts(f->fi); in uvc_function_set_alt()
413 if (!opts->streaming_bulk) { in uvc_function_set_alt()
642 struct f_uvc_opts *opts; in uvc_copy_descriptors() local
649 opts = fi_to_f_uvc_opts(uvc->func.fi); in uvc_copy_descriptors()
655 if (!opts->streaming_bulk) in uvc_copy_descriptors()
664 if (!opts->streaming_bulk) in uvc_copy_descriptors()
[all …]
H A Df_uac1.c474 static void setup_headers(struct f_uac1_opts *opts, in setup_headers() argument
512 if (EPOUT_EN(opts)) { in setup_headers()
515 if (FUOUT_EN(opts)) in setup_headers()
519 if (EPIN_EN(opts)) { in setup_headers()
522 if (FUIN_EN(opts)) in setup_headers()
526 if (FUOUT_EN(opts) || FUIN_EN(opts)) { in setup_headers()
532 if (EPOUT_EN(opts)) { in setup_headers()
542 if (EPIN_EN(opts)) { in setup_headers()
565 struct f_uac1_opts *opts = g_audio_to_uac1_opts(agdev); in uac_cs_attr_sample_rate() local
575 if (EPIN_EN(opts) && uac1->ctl_id == agdev->in_ep->address) { in uac_cs_attr_sample_rate()
[all …]
H A Duvc_configfs.c147 struct f_uvc_opts *opts; \
155 opts = to_f_uvc_opts(opts_item); \
157 mutex_lock(&opts->lock); \
159 mutex_unlock(&opts->lock); \
170 struct f_uvc_opts *opts; \
179 opts = to_f_uvc_opts(opts_item); \
181 mutex_lock(&opts->lock); \
182 if (ch->linked || opts->refcnt) { \
198 mutex_unlock(&opts->lock); \
265 struct f_uvc_opts *opts; \
[all …]
H A Du_uac.h59 struct f_uac_opts *opts = to_f_uac_opts(item); \
62 mutex_lock(&opts->lock); \
63 result = sprintf(page, "%u\n", opts->name); \
64 mutex_unlock(&opts->lock); \
73 struct f_uac_opts *opts = to_f_uac_opts(item); \
77 mutex_lock(&opts->lock); \
78 if (opts->refcnt) { \
87 opts->name = num; \
91 mutex_unlock(&opts->lock); \
101 struct f_uac_opts *opts = to_f_uac_opts(item); \
[all …]
H A Df_uac2.c803 static void setup_headers(struct f_uac2_opts *opts, in setup_headers() argument
845 if (EPIN_EN(opts)) in setup_headers()
847 if (EPOUT_EN(opts)) { in setup_headers()
851 if (FUOUT_EN(opts)) in setup_headers()
855 if (EPIN_EN(opts)) { in setup_headers()
858 if (FUIN_EN(opts)) in setup_headers()
864 if (EPOUT_EN(opts)) in setup_headers()
867 if (FUOUT_EN(opts) || FUIN_EN(opts)) { in setup_headers()
873 if (EPOUT_EN(opts)) { in setup_headers()
884 if (EPOUT_FBACK_IN_EN(opts)) { in setup_headers()
[all …]
H A Df_sourcesink.c451 struct f_ss_opts *opts; in sourcesink_free_func() local
453 opts = container_of(f->fi, struct f_ss_opts, func_inst); in sourcesink_free_func()
455 mutex_lock(&opts->lock); in sourcesink_free_func()
456 opts->refcnt--; in sourcesink_free_func()
457 mutex_unlock(&opts->lock); in sourcesink_free_func()
892 struct f_ss_opts *opts = to_f_ss_opts(item); in f_ss_opts_pattern_show() local
895 mutex_lock(&opts->lock); in f_ss_opts_pattern_show()
896 result = sprintf(page, "%u\n", opts->pattern); in f_ss_opts_pattern_show()
897 mutex_unlock(&opts->lock); in f_ss_opts_pattern_show()
905 struct f_ss_opts *opts = to_f_ss_opts(item); in f_ss_opts_pattern_store() local
[all …]
H A 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()
580 struct f_uac1_legacy_opts *opts; in f_audio_set_alt() local
586 opts = container_of(f->fi, struct f_uac1_legacy_opts, func_inst); in f_audio_set_alt()
587 req_buf_size = opts->req_buf_size; in f_audio_set_alt()
588 req_count = opts->req_count; in f_audio_set_alt()
589 audio_buf_size = opts->audio_buf_size; in f_audio_set_alt()
815 struct f_uac1_legacy_opts *opts = to_f_uac1_opts(item); in f_uac1_attr_release() local
817 usb_put_function_instance(&opts->func_inst); in f_uac1_attr_release()
[all …]
/OK3568_Linux_fs/kernel/drivers/nvme/host/
H A Dfabrics.c107 if (ctrl->opts->mask & NVMF_OPT_TRADDR) in nvmf_get_address()
108 len += scnprintf(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()
392 if (ctrl->opts->disable_sqflow) in nvmf_connect_admin_queue()
399 uuid_copy(&data->hostid, &ctrl->opts->host->id); in nvmf_connect_admin_queue()
401 strncpy(data->subsysnqn, ctrl->opts->subsysnqn, NVMF_NQN_SIZE); in nvmf_connect_admin_queue()
402 strncpy(data->hostnqn, ctrl->opts->host->nqn, NVMF_NQN_SIZE); in nvmf_connect_admin_queue()
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/infineon/
H A Dbcmxtlv.c55 bcm_xtlv_hdr_size(bcm_xtlv_opts_t opts) in bcm_xtlv_hdr_size() argument
58 if (opts & BCM_XTLV_OPTION_LENU8) --len; in bcm_xtlv_hdr_size()
59 if (opts & BCM_XTLV_OPTION_IDU8) --len; in bcm_xtlv_hdr_size()
65 bcm_valid_xtlv(const bcm_xtlv_t *elt, int buf_len, bcm_xtlv_opts_t opts) in bcm_valid_xtlv() argument
68 buf_len >= bcm_xtlv_hdr_size(opts) && in bcm_valid_xtlv()
69 buf_len >= bcm_xtlv_size(elt, opts); in bcm_valid_xtlv()
73 bcm_xtlv_size_for_data(int dlen, bcm_xtlv_opts_t opts) in bcm_xtlv_size_for_data() argument
77 hsz = bcm_xtlv_hdr_size(opts); in bcm_xtlv_size_for_data()
78 return ((opts & BCM_XTLV_OPTION_ALIGN32) ? ALIGN_SIZE(dlen + hsz, 4) in bcm_xtlv_size_for_data()
83 bcm_xtlv_size(const bcm_xtlv_t *elt, bcm_xtlv_opts_t opts) in bcm_xtlv_size() argument
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/infineon/bcmdhd/
H A Dbcmxtlv.c55 bcm_xtlv_hdr_size(bcm_xtlv_opts_t opts) in bcm_xtlv_hdr_size() argument
58 if (opts & BCM_XTLV_OPTION_LENU8) --len; in bcm_xtlv_hdr_size()
59 if (opts & BCM_XTLV_OPTION_IDU8) --len; in bcm_xtlv_hdr_size()
65 bcm_valid_xtlv(const bcm_xtlv_t *elt, int buf_len, bcm_xtlv_opts_t opts) in bcm_valid_xtlv() argument
68 buf_len >= bcm_xtlv_hdr_size(opts) && in bcm_valid_xtlv()
69 buf_len >= bcm_xtlv_size(elt, opts); in bcm_valid_xtlv()
73 bcm_xtlv_size_for_data(int dlen, bcm_xtlv_opts_t opts) in bcm_xtlv_size_for_data() argument
77 hsz = bcm_xtlv_hdr_size(opts); in bcm_xtlv_size_for_data()
78 return ((opts & BCM_XTLV_OPTION_ALIGN32) ? ALIGN_SIZE(dlen + hsz, 4) in bcm_xtlv_size_for_data()
83 bcm_xtlv_size(const bcm_xtlv_t *elt, bcm_xtlv_opts_t opts) in bcm_xtlv_size() argument
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/cywdhd/bcmdhd/
H A Dbcmxtlv.c55 bcm_xtlv_hdr_size(bcm_xtlv_opts_t opts) in bcm_xtlv_hdr_size() argument
58 if (opts & BCM_XTLV_OPTION_LENU8) --len; in bcm_xtlv_hdr_size()
59 if (opts & BCM_XTLV_OPTION_IDU8) --len; in bcm_xtlv_hdr_size()
65 bcm_valid_xtlv(const bcm_xtlv_t *elt, int buf_len, bcm_xtlv_opts_t opts) in bcm_valid_xtlv() argument
68 buf_len >= bcm_xtlv_hdr_size(opts) && in bcm_valid_xtlv()
69 buf_len >= bcm_xtlv_size(elt, opts); in bcm_valid_xtlv()
73 bcm_xtlv_size_for_data(int dlen, bcm_xtlv_opts_t opts) in bcm_xtlv_size_for_data() argument
77 hsz = bcm_xtlv_hdr_size(opts); in bcm_xtlv_size_for_data()
78 return ((opts & BCM_XTLV_OPTION_ALIGN32) ? ALIGN_SIZE(dlen + hsz, 4) in bcm_xtlv_size_for_data()
83 bcm_xtlv_size(const bcm_xtlv_t *elt, bcm_xtlv_opts_t opts) in bcm_xtlv_size() argument
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/bcmdhd/
H A Dbcmxtlv.c47 BCMPOSTTRAPFN(bcm_xtlv_hdr_size)(bcm_xtlv_opts_t opts) in BCMPOSTTRAPFN()
50 if (opts & BCM_XTLV_OPTION_LENU8) --len; in BCMPOSTTRAPFN()
51 if (opts & BCM_XTLV_OPTION_IDU8) --len; in BCMPOSTTRAPFN()
57 bcm_valid_xtlv(const bcm_xtlv_t *elt, int buf_len, bcm_xtlv_opts_t opts) in bcm_valid_xtlv() argument
60 buf_len >= bcm_xtlv_hdr_size(opts) && in bcm_valid_xtlv()
61 buf_len >= bcm_xtlv_size(elt, opts); in bcm_valid_xtlv()
65 BCMPOSTTRAPFN(bcm_xtlv_size_for_data)(int dlen, bcm_xtlv_opts_t opts) in BCMPOSTTRAPFN()
69 hsz = bcm_xtlv_hdr_size(opts); in BCMPOSTTRAPFN()
70 return ((opts & BCM_XTLV_OPTION_ALIGN32) ? ALIGN_SIZE(dlen + hsz, 4) in BCMPOSTTRAPFN()
75 bcm_xtlv_size(const bcm_xtlv_t *elt, bcm_xtlv_opts_t opts) in bcm_xtlv_size() argument
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/
H A Dbcmxtlv.c47 BCMPOSTTRAPFN(bcm_xtlv_hdr_size)(bcm_xtlv_opts_t opts) in BCMPOSTTRAPFN()
50 if (opts & BCM_XTLV_OPTION_LENU8) --len; in BCMPOSTTRAPFN()
51 if (opts & BCM_XTLV_OPTION_IDU8) --len; in BCMPOSTTRAPFN()
57 bcm_valid_xtlv(const bcm_xtlv_t *elt, int buf_len, bcm_xtlv_opts_t opts) in bcm_valid_xtlv() argument
60 buf_len >= bcm_xtlv_hdr_size(opts) && in bcm_valid_xtlv()
61 buf_len >= bcm_xtlv_size(elt, opts); in bcm_valid_xtlv()
65 BCMPOSTTRAPFN(bcm_xtlv_size_for_data)(int dlen, bcm_xtlv_opts_t opts) in BCMPOSTTRAPFN()
69 hsz = bcm_xtlv_hdr_size(opts); in BCMPOSTTRAPFN()
70 return ((opts & BCM_XTLV_OPTION_ALIGN32) ? ALIGN_SIZE(dlen + hsz, 4) in BCMPOSTTRAPFN()
75 bcm_xtlv_size(const bcm_xtlv_t *elt, bcm_xtlv_opts_t opts) in bcm_xtlv_size() argument
[all …]
/OK3568_Linux_fs/kernel/tools/perf/
H A Dbuiltin-record.c90 struct record_opts opts; member
407 struct record_opts *opts = (struct record_opts *)opt->value; in record__aio_parse() local
410 opts->nr_cblocks = 0; in record__aio_parse()
413 opts->nr_cblocks = strtol(str, NULL, 0); in record__aio_parse()
414 if (!opts->nr_cblocks) in record__aio_parse()
415 opts->nr_cblocks = nr_cblocks_default; in record__aio_parse()
445 return rec->opts.nr_cblocks > 0; in record__aio_enabled()
454 struct record_opts *opts = (struct record_opts *)opt->value; in record__mmap_flush_parse() local
467 opts->mmap_flush = parse_tag_value(str, tags); in record__mmap_flush_parse()
468 if (opts->mmap_flush == (int)-1) in record__mmap_flush_parse()
[all …]
/OK3568_Linux_fs/kernel/net/mptcp/
H A Doptions.c333 unsigned int *size, struct mptcp_out_options *opts) in mptcp_syn_options() argument
342 opts->suboptions = OPTION_MPTCP_MPC_SYN; in mptcp_syn_options()
348 opts->suboptions = OPTION_MPTCP_MPJ_SYN; in mptcp_syn_options()
349 opts->join_id = subflow->local_id; in mptcp_syn_options()
350 opts->token = subflow->remote_token; in mptcp_syn_options()
351 opts->nonce = subflow->local_nonce; in mptcp_syn_options()
352 opts->backup = subflow->request_bkup; in mptcp_syn_options()
395 struct mptcp_out_options *opts) in mptcp_established_options_mp() argument
423 opts->ext_copy.data_len = data_len; in mptcp_established_options_mp()
424 opts->suboptions = OPTION_MPTCP_MPC_ACK; in mptcp_established_options_mp()
[all …]
/OK3568_Linux_fs/kernel/net/netfilter/
H A Dnf_synproxy_core.c29 const struct tcphdr *th, struct synproxy_options *opts) in synproxy_parse_options() argument
41 opts->options = 0; in synproxy_parse_options()
64 opts->mss_option = get_unaligned_be16(ptr); in synproxy_parse_options()
65 opts->options |= NF_SYNPROXY_OPT_MSS; in synproxy_parse_options()
70 opts->wscale = *ptr; in synproxy_parse_options()
71 if (opts->wscale > TCP_MAX_WSCALE) in synproxy_parse_options()
72 opts->wscale = TCP_MAX_WSCALE; in synproxy_parse_options()
73 opts->options |= NF_SYNPROXY_OPT_WSCALE; in synproxy_parse_options()
78 opts->tsval = get_unaligned_be32(ptr); in synproxy_parse_options()
79 opts->tsecr = get_unaligned_be32(ptr + 4); in synproxy_parse_options()
[all …]
/OK3568_Linux_fs/kernel/tools/perf/util/
H A Drecord.c92 void perf_evlist__config(struct evlist *evlist, struct record_opts *opts, in perf_evlist__config() argument
98 bool sample_id = opts->sample_id; in perf_evlist__config()
104 if (opts->group) in perf_evlist__config()
108 opts->no_inherit = true; in perf_evlist__config()
113 evsel__config(evsel, opts, callchain); in perf_evlist__config()
122 if (opts->full_auxtrace) { in perf_evlist__config()
155 static int record_opts__config_freq(struct record_opts *opts) in record_opts__config_freq() argument
157 bool user_freq = opts->user_freq != UINT_MAX; in record_opts__config_freq()
160 if (opts->user_interval != ULLONG_MAX) in record_opts__config_freq()
161 opts->default_interval = opts->user_interval; in record_opts__config_freq()
[all …]
/OK3568_Linux_fs/kernel/tools/perf/arch/x86/util/
H A Dintel-bts.c107 struct record_opts *opts) in intel_bts_recording_options() argument
116 if (opts->auxtrace_sample_mode) { in intel_bts_recording_options()
122 btsr->snapshot_mode = opts->auxtrace_snapshot_mode; in intel_bts_recording_options()
133 opts->full_auxtrace = true; in intel_bts_recording_options()
137 if (opts->auxtrace_snapshot_mode && !opts->full_auxtrace) { in intel_bts_recording_options()
142 if (!opts->full_auxtrace) in intel_bts_recording_options()
145 if (opts->full_auxtrace && !perf_cpu_map__empty(cpus)) { in intel_bts_recording_options()
151 if (opts->auxtrace_snapshot_mode) { in intel_bts_recording_options()
152 if (!opts->auxtrace_snapshot_size && !opts->auxtrace_mmap_pages) { in intel_bts_recording_options()
154 opts->auxtrace_mmap_pages = MiB(4) / page_size; in intel_bts_recording_options()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/ppp/
H A 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 …]
/OK3568_Linux_fs/kernel/tools/testing/selftests/netfilter/
H A Dnf-queue.c29 static struct options opts; variable
90 if (opts.verbose > 0) in queue_cb()
99 if (opts.verbose > 0) { in queue_cb()
113 if (opts.count_packets) in queue_cb()
227 queue_num = opts.queue_num; in open_queue()
237 flags = opts.gso_enabled ? NFQA_CFG_F_GSO : 0; in open_queue()
248 tv.tv_sec = opts.timeout; in open_queue()
249 if (opts.timeout && setsockopt(mnl_socket_get_fd(nl), in open_queue()
313 if (opts.delay_ms) in mainloop()
314 sleep_ms(opts.delay_ms); in mainloop()
[all …]
/OK3568_Linux_fs/kernel/tools/testing/vsock/
H A Dvsock_test.c22 static void test_stream_connection_reset(const struct test_opts *opts) in test_stream_connection_reset() argument
31 .svm_cid = opts->peer_cid, in test_stream_connection_reset()
58 static void test_stream_bind_only_client(const struct test_opts *opts) in test_stream_bind_only_client() argument
67 .svm_cid = opts->peer_cid, in test_stream_bind_only_client()
100 static void test_stream_bind_only_server(const struct test_opts *opts) in test_stream_bind_only_server() argument
130 static void test_stream_client_close_client(const struct test_opts *opts) in test_stream_client_close_client() argument
134 fd = vsock_stream_connect(opts->peer_cid, 1234); in test_stream_client_close_client()
144 static void test_stream_client_close_server(const struct test_opts *opts) in test_stream_client_close_server() argument
165 static void test_stream_server_close_client(const struct test_opts *opts) in test_stream_server_close_client() argument
169 fd = vsock_stream_connect(opts->peer_cid, 1234); in test_stream_server_close_client()
[all …]
/OK3568_Linux_fs/kernel/tools/lib/subcmd/
H A Dparse-options.c696 static void print_option_help(const struct option *opts, int full) in print_option_help() argument
701 if (opts->type == OPTION_GROUP) { in print_option_help()
703 if (*opts->help) in print_option_help()
704 fprintf(stderr, "%s\n", opts->help); in print_option_help()
707 if (!full && (opts->flags & PARSE_OPT_HIDDEN)) in print_option_help()
709 if (opts->flags & PARSE_OPT_DISABLED) in print_option_help()
713 if (opts->short_name) in print_option_help()
714 pos += fprintf(stderr, "-%c", opts->short_name); in print_option_help()
718 if (opts->long_name && opts->short_name) in print_option_help()
720 if (opts->long_name) in print_option_help()
[all …]
/OK3568_Linux_fs/kernel/fs/fat/
H A 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()
942 struct fat_mount_options *opts = &sbi->options; in fat_show_options() local
943 int isvfat = opts->isvfat; in fat_show_options()
945 if (!uid_eq(opts->fs_uid, GLOBAL_ROOT_UID)) in fat_show_options()
947 from_kuid_munged(&init_user_ns, opts->fs_uid)); in fat_show_options()
948 if (!gid_eq(opts->fs_gid, GLOBAL_ROOT_GID)) in fat_show_options()
950 from_kgid_munged(&init_user_ns, opts->fs_gid)); in fat_show_options()
[all …]
/OK3568_Linux_fs/kernel/fs/devpts/
H A 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 …]

12345678910>>...20