/Linux-v5.15/drivers/usb/gadget/function/ |
D | u_ether_configfs.h | 19 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 …]
|
D | f_uac1.c | 404 struct f_uac1_opts *opts = g_audio_to_uac1_opts(audio); in in_rq_cur() local 412 if ((FUIN_EN(opts) && (entity_id == USB_IN_FU_ID)) || in in_rq_cur() 413 (FUOUT_EN(opts) && (entity_id == USB_OUT_FU_ID))) { in in_rq_cur() 416 if (FUIN_EN(opts) && (entity_id == USB_IN_FU_ID)) in in_rq_cur() 455 struct f_uac1_opts *opts = g_audio_to_uac1_opts(audio); in in_rq_min() local 463 if ((FUIN_EN(opts) && (entity_id == USB_IN_FU_ID)) || in in_rq_min() 464 (FUOUT_EN(opts) && (entity_id == USB_OUT_FU_ID))) { in in_rq_min() 467 if (FUIN_EN(opts) && (entity_id == USB_IN_FU_ID)) in in_rq_min() 475 min_db = opts->p_volume_min; in in_rq_min() 477 min_db = opts->c_volume_min; in in_rq_min() [all …]
|
D | uvc_configfs.c | 146 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 …]
|
D | f_uac2.c | 717 static void setup_headers(struct f_uac2_opts *opts, in setup_headers() argument 757 if (EPIN_EN(opts)) in setup_headers() 759 if (EPOUT_EN(opts)) { in setup_headers() 763 if (FUOUT_EN(opts)) in setup_headers() 767 if (EPIN_EN(opts)) { in setup_headers() 770 if (FUIN_EN(opts)) in setup_headers() 776 if (EPOUT_EN(opts)) in setup_headers() 779 if (FUOUT_EN(opts) || FUIN_EN(opts)) in setup_headers() 782 if (EPOUT_EN(opts)) { in setup_headers() 793 if (EPOUT_FBACK_IN_EN(opts)) { in setup_headers() [all …]
|
D | f_uvc.c | 594 struct f_uvc_opts *opts; in uvc_function_bind() local 599 opts = fi_to_f_uvc_opts(f->fi); in uvc_function_bind() 602 opts->streaming_interval = clamp(opts->streaming_interval, 1U, 16U); in uvc_function_bind() 603 opts->streaming_maxpacket = clamp(opts->streaming_maxpacket, 1U, 3072U); in uvc_function_bind() 604 opts->streaming_maxburst = min(opts->streaming_maxburst, 15U); in uvc_function_bind() 607 if (opts->streaming_maxburst && in uvc_function_bind() 608 (opts->streaming_maxpacket % 1024) != 0) { in uvc_function_bind() 609 opts->streaming_maxpacket = roundup(opts->streaming_maxpacket, 1024); in uvc_function_bind() 611 opts->streaming_maxpacket); in uvc_function_bind() 620 if (opts->streaming_maxpacket <= 1024) { in uvc_function_bind() [all …]
|
D | f_uac1_legacy.c | 326 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() 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 …]
|
D | f_sourcesink.c | 451 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 …]
|
/Linux-v5.15/drivers/nvme/host/ |
D | fabrics.c | 107 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() 115 if (ctrl->opts->mask & NVMF_OPT_HOST_IFACE) in nvmf_get_address() 117 (len) ? "," : "", ctrl->opts->host_iface); in nvmf_get_address() 380 if (ctrl->opts->disable_sqflow) in nvmf_connect_admin_queue() 387 uuid_copy(&data->hostid, &ctrl->opts->host->id); in nvmf_connect_admin_queue() [all …]
|
/Linux-v5.15/tools/testing/selftests/bpf/prog_tests/ |
D | bpf_cookie.c | 13 DECLARE_LIBBPF_OPTS(bpf_kprobe_opts, opts); in kprobe_subtest() 18 opts.bpf_cookie = 0x1; in kprobe_subtest() 19 opts.retprobe = false; in kprobe_subtest() 21 SYS_NANOSLEEP_KPROBE_NAME, &opts); in kprobe_subtest() 25 opts.bpf_cookie = 0x2; in kprobe_subtest() 26 opts.retprobe = false; in kprobe_subtest() 28 SYS_NANOSLEEP_KPROBE_NAME, &opts); in kprobe_subtest() 33 opts.bpf_cookie = 0x10; in kprobe_subtest() 34 opts.retprobe = true; in kprobe_subtest() 36 SYS_NANOSLEEP_KPROBE_NAME, &opts); in kprobe_subtest() [all …]
|
D | xdp_context_test_run.c | 6 void test_xdp_context_error(int prog_fd, struct bpf_test_run_opts opts, in test_xdp_context_error() argument 21 opts.ctx_in = &ctx; in test_xdp_context_error() 22 opts.ctx_size_in = sizeof(ctx); in test_xdp_context_error() 23 err = bpf_prog_test_run_opts(prog_fd, &opts); in test_xdp_context_error() 34 DECLARE_LIBBPF_OPTS(bpf_test_run_opts, opts, in test_xdp_context_test_run() 50 opts.ctx_in = bad_ctx; in test_xdp_context_test_run() 51 opts.ctx_size_in = sizeof(bad_ctx); in test_xdp_context_test_run() 52 err = bpf_prog_test_run_opts(prog_fd, &opts); in test_xdp_context_test_run() 58 opts.ctx_in = &ctx_in; in test_xdp_context_test_run() 59 opts.ctx_size_in = sizeof(ctx_in); in test_xdp_context_test_run() [all …]
|
D | tc_bpf.c | 27 DECLARE_LIBBPF_OPTS(bpf_tc_opts, opts, .handle = 1, .priority = 1, .prog_fd = fd); in test_tc_bpf_basic() 36 ret = bpf_tc_attach(hook, &opts); in test_tc_bpf_basic() 40 if (!ASSERT_EQ(opts.handle, 1, "handle set") || in test_tc_bpf_basic() 41 !ASSERT_EQ(opts.priority, 1, "priority set") || in test_tc_bpf_basic() 42 !ASSERT_EQ(opts.prog_id, info.id, "prog_id set")) in test_tc_bpf_basic() 45 opts.prog_id = 0; in test_tc_bpf_basic() 46 opts.flags = BPF_TC_F_REPLACE; in test_tc_bpf_basic() 47 ret = bpf_tc_attach(hook, &opts); in test_tc_bpf_basic() 51 opts.flags = opts.prog_fd = opts.prog_id = 0; in test_tc_bpf_basic() 52 ret = bpf_tc_query(hook, &opts); in test_tc_bpf_basic() [all …]
|
/Linux-v5.15/net/mptcp/ |
D | options.c | 397 unsigned int *size, struct mptcp_out_options *opts) in mptcp_syn_options() argument 406 opts->suboptions = OPTION_MPTCP_MPC_SYN; in mptcp_syn_options() 407 opts->csum_reqd = mptcp_is_checksum_enabled(sock_net(sk)); in mptcp_syn_options() 408 opts->allow_join_id0 = mptcp_allow_join_id0(sock_net(sk)); in mptcp_syn_options() 414 opts->suboptions = OPTION_MPTCP_MPJ_SYN; in mptcp_syn_options() 415 opts->join_id = subflow->local_id; in mptcp_syn_options() 416 opts->token = subflow->remote_token; in mptcp_syn_options() 417 opts->nonce = subflow->local_nonce; in mptcp_syn_options() 418 opts->backup = subflow->request_bkup; in mptcp_syn_options() 461 struct mptcp_out_options *opts) in mptcp_established_options_mp() argument [all …]
|
/Linux-v5.15/net/netfilter/ |
D | nf_synproxy_core.c | 29 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 …]
|
/Linux-v5.15/tools/perf/util/ |
D | record.c | 95 void evlist__config(struct evlist *evlist, struct record_opts *opts, struct callchain_param *callch… in evlist__config() argument 100 bool sample_id = opts->sample_id; in evlist__config() 106 if (opts->group) in evlist__config() 110 opts->no_inherit = true; in evlist__config() 115 evsel__config(evsel, opts, callchain); in evlist__config() 124 if (opts->full_auxtrace) { in evlist__config() 157 static int record_opts__config_freq(struct record_opts *opts) in record_opts__config_freq() argument 159 bool user_freq = opts->user_freq != UINT_MAX; in record_opts__config_freq() 160 bool user_interval = opts->user_interval != ULLONG_MAX; in record_opts__config_freq() 169 opts->default_interval = opts->user_interval; in record_opts__config_freq() [all …]
|
/Linux-v5.15/tools/perf/ |
D | builtin-record.c | 92 struct record_opts opts; member 410 struct record_opts *opts = (struct record_opts *)opt->value; in record__aio_parse() local 413 opts->nr_cblocks = 0; in record__aio_parse() 416 opts->nr_cblocks = strtol(str, NULL, 0); in record__aio_parse() 417 if (!opts->nr_cblocks) in record__aio_parse() 418 opts->nr_cblocks = nr_cblocks_default; in record__aio_parse() 448 return rec->opts.nr_cblocks > 0; in record__aio_enabled() 457 struct record_opts *opts = (struct record_opts *)opt->value; in record__mmap_flush_parse() local 470 opts->mmap_flush = parse_tag_value(str, tags); in record__mmap_flush_parse() 471 if (opts->mmap_flush == (int)-1) in record__mmap_flush_parse() [all …]
|
/Linux-v5.15/tools/perf/arch/x86/util/ |
D | intel-bts.c | 107 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 …]
|
D | intel-pt.c | 242 struct record_opts *opts, in intel_pt_parse_snapshot_options() argument 256 opts->auxtrace_snapshot_mode = true; in intel_pt_parse_snapshot_options() 257 opts->auxtrace_snapshot_size = snapshot_size; in intel_pt_parse_snapshot_options() 621 struct record_opts *opts) in intel_pt_recording_options() argument 634 ptr->snapshot_mode = opts->auxtrace_snapshot_mode; in intel_pt_recording_options() 646 opts->full_auxtrace = true; in intel_pt_recording_options() 650 if (opts->auxtrace_snapshot_mode && !opts->full_auxtrace) { in intel_pt_recording_options() 655 if (opts->auxtrace_snapshot_mode && opts->auxtrace_sample_mode) { in intel_pt_recording_options() 660 if (opts->use_clockid) { in intel_pt_recording_options() 668 if (!opts->full_auxtrace) in intel_pt_recording_options() [all …]
|
/Linux-v5.15/drivers/net/ppp/ |
D | ppp_mppe.h | 34 #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.15/tools/testing/selftests/netfilter/ |
D | nf-queue.c | 29 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 …]
|
/Linux-v5.15/tools/testing/vsock/ |
D | vsock_test.c | 24 static void test_stream_connection_reset(const struct test_opts *opts) in test_stream_connection_reset() argument 33 .svm_cid = opts->peer_cid, in test_stream_connection_reset() 60 static void test_stream_bind_only_client(const struct test_opts *opts) in test_stream_bind_only_client() argument 69 .svm_cid = opts->peer_cid, in test_stream_bind_only_client() 102 static void test_stream_bind_only_server(const struct test_opts *opts) in test_stream_bind_only_server() argument 132 static void test_stream_client_close_client(const struct test_opts *opts) in test_stream_client_close_client() argument 136 fd = vsock_stream_connect(opts->peer_cid, 1234); in test_stream_client_close_client() 146 static void test_stream_client_close_server(const struct test_opts *opts) in test_stream_client_close_server() argument 167 static void test_stream_server_close_client(const struct test_opts *opts) in test_stream_server_close_client() argument 171 fd = vsock_stream_connect(opts->peer_cid, 1234); in test_stream_server_close_client() [all …]
|
/Linux-v5.15/tools/lib/bpf/ |
D | skel_internal.h | 63 static inline int bpf_load_and_run(struct bpf_load_and_run_opts *opts) in bpf_load_and_run() argument 69 opts->data_sz, 1, 0); in bpf_load_and_run() 71 opts->errstr = "failed to create loader map"; in bpf_load_and_run() 76 err = bpf_map_update_elem(map_fd, &key, opts->data, 0); in bpf_load_and_run() 78 opts->errstr = "failed to update loader map"; in bpf_load_and_run() 85 attr.insns = (long) opts->insns; in bpf_load_and_run() 86 attr.insn_cnt = opts->insns_sz / sizeof(struct bpf_insn); in bpf_load_and_run() 90 attr.log_level = opts->ctx->log_level; in bpf_load_and_run() 91 attr.log_size = opts->ctx->log_size; in bpf_load_and_run() 92 attr.log_buf = opts->ctx->log_buf; in bpf_load_and_run() [all …]
|
/Linux-v5.15/tools/lib/subcmd/ |
D | parse-options.c | 696 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 …]
|
/Linux-v5.15/fs/fat/ |
D | inode.c | 713 static void fat_reset_iocharset(struct fat_mount_options *opts) in fat_reset_iocharset() argument 715 if (opts->iocharset != fat_default_iocharset) { in fat_reset_iocharset() 717 kfree(opts->iocharset); in fat_reset_iocharset() 718 opts->iocharset = fat_default_iocharset; in fat_reset_iocharset() 943 struct fat_mount_options *opts = &sbi->options; in fat_show_options() local 944 int isvfat = opts->isvfat; in fat_show_options() 946 if (!uid_eq(opts->fs_uid, GLOBAL_ROOT_UID)) in fat_show_options() 948 from_kuid_munged(&init_user_ns, opts->fs_uid)); in fat_show_options() 949 if (!gid_eq(opts->fs_gid, GLOBAL_ROOT_GID)) in fat_show_options() 951 from_kgid_munged(&init_user_ns, opts->fs_gid)); in fat_show_options() [all …]
|
/Linux-v5.15/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
D | xtlv.c | 12 static int brcmf_xtlv_header_size(u16 opts) in brcmf_xtlv_header_size() argument 16 if (opts & BRCMF_XTLV_OPTION_IDU8) in brcmf_xtlv_header_size() 18 if (opts & BRCMF_XTLV_OPTION_LENU8) in brcmf_xtlv_header_size() 24 int brcmf_xtlv_data_size(int dlen, u16 opts) in brcmf_xtlv_data_size() argument 28 hsz = brcmf_xtlv_header_size(opts); in brcmf_xtlv_data_size() 29 if (opts & BRCMF_XTLV_OPTION_ALIGN32) in brcmf_xtlv_data_size() 36 const u8 *data, u16 opts) in brcmf_xtlv_pack_header() argument 41 if (!(opts & mask)) { in brcmf_xtlv_pack_header() 48 } else if ((opts & mask) == mask) { /* u8 id and u8 len */ in brcmf_xtlv_pack_header() 55 } else if (opts & BRCMF_XTLV_OPTION_IDU8) { /* u8 id, u16 len */ in brcmf_xtlv_pack_header() [all …]
|
/Linux-v5.15/fs/devpts/ |
D | inode.c | 246 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 …]
|