/kernel/linux/linux-5.10/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 | 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_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 …]
|
D | f_uac2.c | 494 static void setup_descriptor(struct f_uac2_opts *opts) in setup_descriptor() argument 499 if (EPOUT_EN(opts)) in setup_descriptor() 501 if (EPIN_EN(opts)) in setup_descriptor() 503 if (EPOUT_EN(opts)) in setup_descriptor() 505 if (EPIN_EN(opts)) in setup_descriptor() 507 if (EPOUT_EN(opts)) in setup_descriptor() 509 if (EPIN_EN(opts)) in setup_descriptor() 524 if (EPIN_EN(opts)) { in setup_descriptor() 533 if (EPOUT_EN(opts)) { in setup_descriptor() 547 if (EPIN_EN(opts)) in setup_descriptor() [all …]
|
D | f_uac1.c | 518 struct f_uac1_opts *opts = g_audio_to_uac1_opts(audio); in f_audio_validate_opts() local 520 if (!opts->p_chmask && !opts->c_chmask) { in f_audio_validate_opts() 523 } else if (opts->p_chmask & ~UAC1_CHANNEL_MASK) { in f_audio_validate_opts() 526 } else if (opts->c_chmask & ~UAC1_CHANNEL_MASK) { in f_audio_validate_opts() 529 } else if ((opts->p_ssize < 1) || (opts->p_ssize > 4)) { in f_audio_validate_opts() 532 } else if ((opts->c_ssize < 1) || (opts->c_ssize > 4)) { in f_audio_validate_opts() 535 } else if (!opts->p_srate) { in f_audio_validate_opts() 538 } else if (!opts->c_srate) { in f_audio_validate_opts() 683 struct f_uac1_opts *opts = to_f_uac1_opts(item); in f_uac1_attr_release() local 685 usb_put_function_instance(&opts->func_inst); in f_uac1_attr_release() [all …]
|
D | f_subset.c | 419 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 …]
|
D | f_midi.c | 1082 struct f_midi_opts *opts = to_f_midi_opts(item); in midi_attr_release() local 1084 usb_put_function_instance(&opts->func_inst); in midi_attr_release() 1094 struct f_midi_opts *opts = to_f_midi_opts(item); \ 1097 mutex_lock(&opts->lock); \ 1098 result = sprintf(page, "%d\n", opts->name); \ 1099 mutex_unlock(&opts->lock); \ 1107 struct f_midi_opts *opts = to_f_midi_opts(item); \ 1111 mutex_lock(&opts->lock); \ 1112 if (opts->refcnt > 1) { \ 1125 opts->name = num; \ [all …]
|
/kernel/linux/linux-5.10/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() 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 …]
|
/kernel/linux/linux-5.10/tools/perf/util/ |
D | record.c | 92 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 …]
|
D | clockid.c | 70 struct record_opts *opts = (struct record_opts *)opt->value; in parse_clockid() local 75 opts->use_clockid = 0; in parse_clockid() 84 if (opts->use_clockid) in parse_clockid() 87 opts->use_clockid = true; in parse_clockid() 90 if (sscanf(str, "%d", &opts->clockid) == 1) in parse_clockid() 91 return get_clockid_res(opts->clockid, &opts->clockid_res_ns); in parse_clockid() 99 opts->clockid = cm->clockid; in parse_clockid() 100 return get_clockid_res(opts->clockid, in parse_clockid() 101 &opts->clockid_res_ns); in parse_clockid() 105 opts->use_clockid = false; in parse_clockid()
|
/kernel/linux/linux-5.10/net/mptcp/ |
D | options.c | 333 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 …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/tools/perf/ |
D | builtin-record.c | 90 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 …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/tools/testing/vsock/ |
D | vsock_test.c | 22 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 …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/fs/fat/ |
D | inode.c | 712 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 …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/ |
D | reuseaddr_ports_exhausted.c | 83 struct reuse_opts *opts; in TEST() local 87 opts = &unreusable_opts[i]; in TEST() 90 fd[j] = bind_port(_metadata, opts->reuseaddr[j], opts->reuseport[j]); in TEST() 103 struct reuse_opts *opts; in TEST() local 107 opts = &reusable_opts[i]; in TEST() 110 fd[j] = bind_port(_metadata, opts->reuseaddr[j], opts->reuseport[j]); in TEST() 114 if (opts->reuseport[0] && opts->reuseport[1]) { in TEST() 128 struct reuse_opts *opts; in TEST() local 133 opts = &reusable_opts[i]; in TEST() 139 fd[j] = bind_port(_metadata, opts->reuseaddr[j], opts->reuseport[j]); in TEST()
|
/kernel/linux/linux-5.10/tools/perf/arch/arm/util/ |
D | cs-etm.c | 194 struct record_opts *opts, in cs_etm_parse_snapshot_options() argument 208 opts->auxtrace_snapshot_mode = true; in cs_etm_parse_snapshot_options() 209 opts->auxtrace_snapshot_size = snapshot_size; in cs_etm_parse_snapshot_options() 254 struct record_opts *opts) in cs_etm_recording_options() argument 266 ptr->snapshot_mode = opts->auxtrace_snapshot_mode; in cs_etm_recording_options() 268 if (!record_opts__no_switch_events(opts) && in cs_etm_recording_options() 270 opts->record_switch_events = true; in cs_etm_recording_options() 282 opts->full_auxtrace = true; in cs_etm_recording_options() 294 if (opts->use_clockid) { in cs_etm_recording_options() 301 if (opts->auxtrace_snapshot_mode) { in cs_etm_recording_options() [all …]
|