/Linux-v4.19/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 | 59 struct f_uvc_opts *opts; \ 67 opts = to_f_uvc_opts(opts_item); \ 69 mutex_lock(&opts->lock); \ 71 mutex_unlock(&opts->lock); \ 82 struct f_uvc_opts *opts; \ 91 opts = to_f_uvc_opts(opts_item); \ 93 mutex_lock(&opts->lock); \ 94 if (ch->linked || opts->refcnt) { \ 110 mutex_unlock(&opts->lock); \ 196 struct f_uvc_opts *opts; \ [all …]
|
D | f_uvc.c | 605 struct f_uvc_opts *opts; in uvc_function_bind() local 610 opts = fi_to_f_uvc_opts(f->fi); in uvc_function_bind() 613 opts->streaming_interval = clamp(opts->streaming_interval, 1U, 16U); in uvc_function_bind() 614 opts->streaming_maxpacket = clamp(opts->streaming_maxpacket, 1U, 3072U); in uvc_function_bind() 615 opts->streaming_maxburst = min(opts->streaming_maxburst, 15U); in uvc_function_bind() 618 if (opts->streaming_maxburst && in uvc_function_bind() 619 (opts->streaming_maxpacket % 1024) != 0) { in uvc_function_bind() 620 opts->streaming_maxpacket = roundup(opts->streaming_maxpacket, 1024); in uvc_function_bind() 622 opts->streaming_maxpacket); in uvc_function_bind() 631 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() 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 …]
|
D | f_sourcesink.c | 450 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 …]
|
D | f_hid.c | 871 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 …]
|
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 | 1076 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 …]
|
D | f_rndis.c | 836 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 …]
|
D | f_uac1.c | 637 struct f_uac1_opts *opts = to_f_uac1_opts(item); in f_uac1_attr_release() local 639 usb_put_function_instance(&opts->func_inst); in f_uac1_attr_release() 651 struct f_uac1_opts *opts = to_f_uac1_opts(item); \ 654 mutex_lock(&opts->lock); \ 655 result = sprintf(page, "%u\n", opts->name); \ 656 mutex_unlock(&opts->lock); \ 665 struct f_uac1_opts *opts = to_f_uac1_opts(item); \ 669 mutex_lock(&opts->lock); \ 670 if (opts->refcnt) { \ 679 opts->name = num; \ [all …]
|
D | f_eem.c | 562 struct f_eem_opts *opts; in eem_free_inst() local 564 opts = container_of(f, struct f_eem_opts, func_inst); in eem_free_inst() 565 if (opts->bound) in eem_free_inst() 566 gether_cleanup(netdev_priv(opts->net)); in eem_free_inst() 568 free_netdev(opts->net); in eem_free_inst() 569 kfree(opts); in eem_free_inst() 574 struct f_eem_opts *opts; in eem_alloc_inst() local 576 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in eem_alloc_inst() 577 if (!opts) in eem_alloc_inst() 579 mutex_init(&opts->lock); in eem_alloc_inst() [all …]
|
/Linux-v4.19/net/netfilter/ |
D | nf_synproxy_core.c | 32 const struct tcphdr *th, struct synproxy_options *opts) in synproxy_parse_options() argument 41 opts->options = 0; in synproxy_parse_options() 62 opts->mss = get_unaligned_be16(ptr); in synproxy_parse_options() 63 opts->options |= XT_SYNPROXY_OPT_MSS; in synproxy_parse_options() 68 opts->wscale = *ptr; in synproxy_parse_options() 69 if (opts->wscale > TCP_MAX_WSCALE) in synproxy_parse_options() 70 opts->wscale = TCP_MAX_WSCALE; in synproxy_parse_options() 71 opts->options |= XT_SYNPROXY_OPT_WSCALE; in synproxy_parse_options() 76 opts->tsval = get_unaligned_be32(ptr); in synproxy_parse_options() 77 opts->tsecr = get_unaligned_be32(ptr + 4); in synproxy_parse_options() [all …]
|
/Linux-v4.19/drivers/nvme/host/ |
D | fabrics.c | 115 if (ctrl->opts->mask & NVMF_OPT_TRADDR) in nvmf_get_address() 116 len += snprintf(buf, size, "traddr=%s", ctrl->opts->traddr); in nvmf_get_address() 117 if (ctrl->opts->mask & NVMF_OPT_TRSVCID) in nvmf_get_address() 119 (len) ? "," : "", ctrl->opts->trsvcid); in nvmf_get_address() 120 if (ctrl->opts->mask & NVMF_OPT_HOST_TRADDR) in nvmf_get_address() 122 (len) ? "," : "", ctrl->opts->host_traddr); in nvmf_get_address() 392 cmd.connect.kato = ctrl->opts->discovery_nqn ? 0 : 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 …]
|
/Linux-v4.19/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-v4.19/tools/perf/arch/x86/util/ |
D | intel-bts.c | 112 struct record_opts *opts) in intel_bts_recording_options() argument 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 && !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() 156 opts->auxtrace_mmap_pages = KiB(128) / page_size; in intel_bts_recording_options() [all …]
|
D | intel-pt.c | 241 struct record_opts *opts, in intel_pt_parse_snapshot_options() argument 255 opts->auxtrace_snapshot_mode = true; in intel_pt_parse_snapshot_options() 256 opts->auxtrace_snapshot_size = snapshot_size; in intel_pt_parse_snapshot_options() 550 struct record_opts *opts) in intel_pt_recording_options() argument 563 ptr->snapshot_mode = opts->auxtrace_snapshot_mode; in intel_pt_recording_options() 574 opts->full_auxtrace = true; in intel_pt_recording_options() 578 if (opts->auxtrace_snapshot_mode && !opts->full_auxtrace) { in intel_pt_recording_options() 583 if (opts->use_clockid) { in intel_pt_recording_options() 588 if (!opts->full_auxtrace) in intel_pt_recording_options() 596 if (opts->auxtrace_snapshot_mode) { in intel_pt_recording_options() [all …]
|
/Linux-v4.19/tools/perf/util/ |
D | record.c | 135 void perf_evlist__config(struct perf_evlist *evlist, struct record_opts *opts, in perf_evlist__config() argument 141 bool sample_id = opts->sample_id; in perf_evlist__config() 147 if (opts->group) in perf_evlist__config() 151 opts->no_inherit = true; in perf_evlist__config() 156 perf_evsel__config(evsel, opts, callchain); in perf_evlist__config() 161 if (opts->full_auxtrace) { in perf_evlist__config() 194 static int record_opts__config_freq(struct record_opts *opts) in record_opts__config_freq() argument 196 bool user_freq = opts->user_freq != UINT_MAX; in record_opts__config_freq() 199 if (opts->user_interval != ULLONG_MAX) in record_opts__config_freq() 200 opts->default_interval = opts->user_interval; in record_opts__config_freq() [all …]
|
/Linux-v4.19/tools/perf/ |
D | builtin-record.c | 68 struct record_opts opts; member 232 rec->opts.auxtrace_snapshot_size); in record__auxtrace_mmap_read_snapshot() 286 err = auxtrace_parse_snapshot_options(rec->itr, &rec->opts, in record__auxtrace_init() 287 rec->opts.auxtrace_snapshot_opts); in record__auxtrace_init() 324 struct record_opts *opts = &rec->opts; in record__mmap_evlist() local 327 if (perf_evlist__mmap_ex(evlist, opts->mmap_pages, in record__mmap_evlist() 328 opts->auxtrace_mmap_pages, in record__mmap_evlist() 329 opts->auxtrace_snapshot_mode) < 0) { in record__mmap_evlist() 336 opts->mmap_pages, opts->auxtrace_mmap_pages); in record__mmap_evlist() 361 struct record_opts *opts = &rec->opts; in record__open() local [all …]
|
/Linux-v4.19/tools/lib/subcmd/ |
D | parse-options.c | 675 static void print_option_help(const struct option *opts, int full) in print_option_help() argument 680 if (opts->type == OPTION_GROUP) { in print_option_help() 682 if (*opts->help) in print_option_help() 683 fprintf(stderr, "%s\n", opts->help); in print_option_help() 686 if (!full && (opts->flags & PARSE_OPT_HIDDEN)) in print_option_help() 688 if (opts->flags & PARSE_OPT_DISABLED) in print_option_help() 692 if (opts->short_name) in print_option_help() 693 pos += fprintf(stderr, "-%c", opts->short_name); in print_option_help() 697 if (opts->long_name && opts->short_name) in print_option_help() 699 if (opts->long_name) in print_option_help() [all …]
|
/Linux-v4.19/net/ipv4/netfilter/ |
D | ipt_SYNPROXY.c | 75 const struct synproxy_options *opts) in synproxy_send_client_synack() argument 81 u16 mss = opts->mss; in synproxy_send_client_synack() 85 tcp_hdr_size = sizeof(*nth) + synproxy_options_size(opts); in synproxy_send_client_synack() 101 if (opts->options & XT_SYNPROXY_OPT_ECN) in synproxy_send_client_synack() 108 synproxy_build_options(nth, opts); in synproxy_send_client_synack() 117 const struct synproxy_options *opts, u32 recv_seq) in synproxy_send_server_syn() argument 127 tcp_hdr_size = sizeof(*nth) + synproxy_options_size(opts); in synproxy_send_server_syn() 146 if (opts->options & XT_SYNPROXY_OPT_ECN) in synproxy_send_server_syn() 153 synproxy_build_options(nth, opts); in synproxy_send_server_syn() 163 const struct synproxy_options *opts) in synproxy_send_server_ack() argument [all …]
|
/Linux-v4.19/tools/perf/arch/arm/util/ |
D | cs-etm.c | 42 struct record_opts *opts, in cs_etm_parse_snapshot_options() argument 56 opts->auxtrace_snapshot_mode = true; in cs_etm_parse_snapshot_options() 57 opts->auxtrace_snapshot_size = snapshot_size; in cs_etm_parse_snapshot_options() 65 struct record_opts *opts) in cs_etm_recording_options() argument 75 ptr->snapshot_mode = opts->auxtrace_snapshot_mode; in cs_etm_recording_options() 87 opts->full_auxtrace = true; in cs_etm_recording_options() 95 if (opts->use_clockid) { in cs_etm_recording_options() 102 if (opts->auxtrace_snapshot_mode) { in cs_etm_recording_options() 107 if (!opts->auxtrace_snapshot_size && in cs_etm_recording_options() 108 !opts->auxtrace_mmap_pages) { in cs_etm_recording_options() [all …]
|
/Linux-v4.19/net/ipv6/netfilter/ |
D | ip6t_SYNPROXY.c | 89 const struct synproxy_options *opts) in synproxy_send_client_synack() argument 95 u16 mss = opts->mss; in synproxy_send_client_synack() 99 tcp_hdr_size = sizeof(*nth) + synproxy_options_size(opts); in synproxy_send_client_synack() 115 if (opts->options & XT_SYNPROXY_OPT_ECN) in synproxy_send_client_synack() 122 synproxy_build_options(nth, opts); in synproxy_send_client_synack() 131 const struct synproxy_options *opts, u32 recv_seq) in synproxy_send_server_syn() argument 141 tcp_hdr_size = sizeof(*nth) + synproxy_options_size(opts); in synproxy_send_server_syn() 160 if (opts->options & XT_SYNPROXY_OPT_ECN) in synproxy_send_server_syn() 167 synproxy_build_options(nth, opts); in synproxy_send_server_syn() 177 const struct synproxy_options *opts) in synproxy_send_server_ack() argument [all …]
|
/Linux-v4.19/fs/devpts/ |
D | inode.c | 249 static int parse_mount_options(char *data, int op, struct pts_mount_opts *opts) in parse_mount_options() argument 255 opts->setuid = 0; in parse_mount_options() 256 opts->setgid = 0; in parse_mount_options() 257 opts->uid = GLOBAL_ROOT_UID; in parse_mount_options() 258 opts->gid = GLOBAL_ROOT_GID; in parse_mount_options() 259 opts->mode = DEVPTS_DEFAULT_MODE; in parse_mount_options() 260 opts->ptmxmode = DEVPTS_DEFAULT_PTMX_MODE; in parse_mount_options() 261 opts->max = NR_UNIX98_PTY_MAX; in parse_mount_options() 267 opts->reserve = in parse_mount_options() 286 opts->uid = uid; in parse_mount_options() [all …]
|
/Linux-v4.19/fs/fat/ |
D | inode.c | 706 static void fat_reset_iocharset(struct fat_mount_options *opts) in fat_reset_iocharset() argument 708 if (opts->iocharset != fat_default_iocharset) { in fat_reset_iocharset() 710 kfree(opts->iocharset); in fat_reset_iocharset() 711 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-v4.19/kernel/cgroup/ |
D | cgroup-v1.c | 906 static int parse_cgroupfs_options(char *data, struct cgroup_sb_opts *opts) in parse_cgroupfs_options() argument 919 memset(opts, 0, sizeof(*opts)); in parse_cgroupfs_options() 928 opts->none = true; in parse_cgroupfs_options() 939 opts->flags |= CGRP_ROOT_NOPREFIX; in parse_cgroupfs_options() 943 opts->cpuset_clone_children = true; in parse_cgroupfs_options() 947 opts->flags |= CGRP_ROOT_CPUSET_V2_MODE; in parse_cgroupfs_options() 951 opts->flags |= CGRP_ROOT_XATTR; in parse_cgroupfs_options() 956 if (opts->release_agent) in parse_cgroupfs_options() 958 opts->release_agent = in parse_cgroupfs_options() 960 if (!opts->release_agent) in parse_cgroupfs_options() [all …]
|