Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/usb/gadget/function/
Du_ether_configfs.h25 struct f_##_f_##_opts *opts = to_f_##_f_##_opts(item); \
27 usb_put_function_instance(&opts->func_inst); \
37 static ssize_t _f_##_opts_dev_addr_show(struct f_##_f_##_opts *opts, \
42 mutex_lock(&opts->lock); \
43 result = gether_get_dev_addr(opts->net, page, PAGE_SIZE); \
44 mutex_unlock(&opts->lock); \
49 static ssize_t _f_##_opts_dev_addr_store(struct f_##_f_##_opts *opts, \
54 mutex_lock(&opts->lock); \
55 if (opts->refcnt) { \
56 mutex_unlock(&opts->lock); \
[all …]
Duvc_configfs.c63 struct f_uvc_opts *opts; \
71 opts = to_f_uvc_opts(opts_item); \
73 mutex_lock(&opts->lock); \
75 mutex_unlock(&opts->lock); \
85 struct f_uvc_opts *opts; \
94 opts = to_f_uvc_opts(opts_item); \
96 mutex_lock(&opts->lock); \
97 if (ch->linked || opts->refcnt) { \
113 mutex_unlock(&opts->lock); \
210 struct f_uvc_opts *opts; \
[all …]
Df_uac1.c326 struct f_uac1_opts *opts; in f_audio_out_ep_complete() local
330 opts = container_of(audio->card.func.fi, struct f_uac1_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_opts *opts; in f_audio_set_alt() local
584 opts = container_of(f->fi, struct f_uac1_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()
781 struct f_uac1_opts *opts = to_f_uac1_opts(item); in f_uac1_attr_release() local
783 usb_put_function_instance(&opts->func_inst); in f_uac1_attr_release()
[all …]
Df_hid.c717 struct f_hid_opts *opts = to_f_hid_opts(item); in hid_attr_release() local
719 usb_put_function_instance(&opts->func_inst); in hid_attr_release()
729 static ssize_t f_hid_opts_##name##_show(struct f_hid_opts *opts, char *page)\
733 mutex_lock(&opts->lock); \
734 result = sprintf(page, "%d\n", opts->name); \
735 mutex_unlock(&opts->lock); \
740 static ssize_t f_hid_opts_##name##_store(struct f_hid_opts *opts, \
746 mutex_lock(&opts->lock); \
747 if (opts->refcnt) { \
760 opts->name = num; \
[all …]
Df_uvc.c602 struct f_uvc_opts *opts; in uvc_function_bind() local
607 opts = fi_to_f_uvc_opts(f->fi); in uvc_function_bind()
610 opts->streaming_interval = clamp(opts->streaming_interval, 1U, 16U); in uvc_function_bind()
611 opts->streaming_maxpacket = clamp(opts->streaming_maxpacket, 1U, 3072U); in uvc_function_bind()
612 opts->streaming_maxburst = min(opts->streaming_maxburst, 15U); in uvc_function_bind()
620 if (opts->streaming_maxpacket <= 1024) { in uvc_function_bind()
622 max_packet_size = opts->streaming_maxpacket; in uvc_function_bind()
623 } else if (opts->streaming_maxpacket <= 2048) { in uvc_function_bind()
625 max_packet_size = opts->streaming_maxpacket / 2; in uvc_function_bind()
628 max_packet_size = opts->streaming_maxpacket / 3; in uvc_function_bind()
[all …]
Df_midi.c910 struct f_midi_opts *opts = to_f_midi_opts(item); in midi_attr_release() local
912 usb_put_function_instance(&opts->func_inst); in midi_attr_release()
922 static ssize_t f_midi_opts_##name##_show(struct f_midi_opts *opts, char *page) \
926 mutex_lock(&opts->lock); \
927 result = sprintf(page, "%d\n", opts->name); \
928 mutex_unlock(&opts->lock); \
933 static ssize_t f_midi_opts_##name##_store(struct f_midi_opts *opts, \
939 mutex_lock(&opts->lock); \
940 if (opts->refcnt) { \
953 opts->name = num; \
[all …]
Df_subset.c431 struct f_gether_opts *opts; in geth_free_inst() local
433 opts = container_of(f, struct f_gether_opts, func_inst); in geth_free_inst()
434 if (opts->bound) in geth_free_inst()
435 gether_cleanup(netdev_priv(opts->net)); in geth_free_inst()
437 free_netdev(opts->net); in geth_free_inst()
438 kfree(opts); in geth_free_inst()
443 struct f_gether_opts *opts; in geth_alloc_inst() local
445 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in geth_alloc_inst()
446 if (!opts) in geth_alloc_inst()
448 mutex_init(&opts->lock); in geth_alloc_inst()
[all …]
Df_sourcesink.c480 struct f_ss_opts *opts; in sourcesink_free_func() local
482 opts = container_of(f->fi, struct f_ss_opts, func_inst); in sourcesink_free_func()
484 mutex_lock(&opts->lock); in sourcesink_free_func()
485 opts->refcnt--; in sourcesink_free_func()
486 mutex_unlock(&opts->lock); in sourcesink_free_func()
923 static ssize_t f_ss_opts_pattern_show(struct f_ss_opts *opts, char *page) in f_ss_opts_pattern_show() argument
927 mutex_lock(&opts->lock); in f_ss_opts_pattern_show()
928 result = sprintf(page, "%u", opts->pattern); in f_ss_opts_pattern_show()
929 mutex_unlock(&opts->lock); in f_ss_opts_pattern_show()
934 static ssize_t f_ss_opts_pattern_store(struct f_ss_opts *opts, in f_ss_opts_pattern_store() argument
[all …]
Df_serial.c275 struct f_serial_opts *opts = to_f_serial_opts(item); in f_serial_attr_show() local
281 ret = f_serial_opts_attr->show(opts, page); in f_serial_attr_show()
288 struct f_serial_opts *opts = to_f_serial_opts(item); in serial_attr_release() local
290 usb_put_function_instance(&opts->func_inst); in serial_attr_release()
298 static ssize_t f_serial_port_num_show(struct f_serial_opts *opts, char *page) in f_serial_port_num_show() argument
300 return sprintf(page, "%u\n", opts->port_num); in f_serial_port_num_show()
319 struct f_serial_opts *opts; in gser_free_inst() local
321 opts = container_of(f, struct f_serial_opts, func_inst); in gser_free_inst()
322 gserial_free_line(opts->port_num); in gser_free_inst()
323 kfree(opts); in gser_free_inst()
[all …]
Df_rndis.c847 struct f_rndis_opts *opts; in rndis_borrow_net() local
849 opts = container_of(f, struct f_rndis_opts, func_inst); in rndis_borrow_net()
850 if (opts->bound) in rndis_borrow_net()
851 gether_cleanup(netdev_priv(opts->net)); in rndis_borrow_net()
853 free_netdev(opts->net); in rndis_borrow_net()
854 opts->borrowed_net = opts->bound = true; in rndis_borrow_net()
855 opts->net = net; in rndis_borrow_net()
896 struct f_rndis_opts *opts; in rndis_free_inst() local
898 opts = container_of(f, struct f_rndis_opts, func_inst); in rndis_free_inst()
899 if (!opts->borrowed_net) { in rndis_free_inst()
[all …]
Df_eem.c573 struct f_eem_opts *opts; in eem_free_inst() local
575 opts = container_of(f, struct f_eem_opts, func_inst); in eem_free_inst()
576 if (opts->bound) in eem_free_inst()
577 gether_cleanup(netdev_priv(opts->net)); in eem_free_inst()
579 free_netdev(opts->net); in eem_free_inst()
580 kfree(opts); in eem_free_inst()
585 struct f_eem_opts *opts; in eem_alloc_inst() local
587 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in eem_alloc_inst()
588 if (!opts) in eem_alloc_inst()
590 mutex_init(&opts->lock); in eem_alloc_inst()
[all …]
Df_ncm.c900 const struct ndp_parser_opts *opts = ncm->parser_opts; in package_for_tx() local
902 const int dgram_idx_len = 2 * 2 * opts->dgram_item_len; in package_for_tx()
916 put_ncm(&ntb_iter, opts->block_length, new_len); in package_for_tx()
917 put_ncm(&ntb_iter, opts->ndp_index, ndp_index); in package_for_tx()
920 new_len = opts->ndp_size + in package_for_tx()
963 const struct ndp_parser_opts *opts = ncm->parser_opts; in ncm_wrap_ntb() local
967 const int dgram_idx_len = 2 * 2 * opts->dgram_item_len; in ncm_wrap_ntb()
1002 ncb_len = opts->nth_size; in ncm_wrap_ntb()
1014 put_unaligned_le32(opts->nth_sign, ntb_data); in ncm_wrap_ntb()
1017 put_unaligned_le16(opts->nth_size, ntb_data++); in ncm_wrap_ntb()
[all …]
Df_loopback.c234 struct f_lb_opts *opts; in lb_free_func() local
236 opts = container_of(f->fi, struct f_lb_opts, func_inst); in lb_free_func()
238 mutex_lock(&opts->lock); in lb_free_func()
239 opts->refcnt--; in lb_free_func()
240 mutex_unlock(&opts->lock); in lb_free_func()
437 static ssize_t f_lb_opts_qlen_show(struct f_lb_opts *opts, char *page) in f_lb_opts_qlen_show() argument
441 mutex_lock(&opts->lock); in f_lb_opts_qlen_show()
442 result = sprintf(page, "%d", opts->qlen); in f_lb_opts_qlen_show()
443 mutex_unlock(&opts->lock); in f_lb_opts_qlen_show()
448 static ssize_t f_lb_opts_qlen_store(struct f_lb_opts *opts, in f_lb_opts_qlen_store() argument
[all …]
Df_printer.c1155 struct f_printer_opts *opts = to_f_printer_opts(item); in printer_attr_release() local
1157 usb_put_function_instance(&opts->func_inst); in printer_attr_release()
1166 static ssize_t f_printer_opts_pnp_string_show(struct f_printer_opts *opts, in f_printer_opts_pnp_string_show() argument
1171 mutex_lock(&opts->lock); in f_printer_opts_pnp_string_show()
1172 result = strlcpy(page, opts->pnp_string + 2, PNP_STRING_LEN - 2); in f_printer_opts_pnp_string_show()
1173 mutex_unlock(&opts->lock); in f_printer_opts_pnp_string_show()
1178 static ssize_t f_printer_opts_pnp_string_store(struct f_printer_opts *opts, in f_printer_opts_pnp_string_store() argument
1183 mutex_lock(&opts->lock); in f_printer_opts_pnp_string_store()
1184 result = strlcpy(opts->pnp_string + 2, page, PNP_STRING_LEN - 2); in f_printer_opts_pnp_string_store()
1185 l = strlen(opts->pnp_string + 2) + 2; in f_printer_opts_pnp_string_store()
[all …]
Df_obex.c422 struct f_serial_opts *opts = to_f_serial_opts(item); in f_obex_attr_show() local
428 ret = f_serial_opts_attr->show(opts, page); in f_obex_attr_show()
435 struct f_serial_opts *opts = to_f_serial_opts(item); in obex_attr_release() local
437 usb_put_function_instance(&opts->func_inst); in obex_attr_release()
445 static ssize_t f_obex_port_num_show(struct f_serial_opts *opts, char *page) in f_obex_port_num_show() argument
447 return sprintf(page, "%u\n", opts->port_num); in f_obex_port_num_show()
466 struct f_serial_opts *opts; in obex_free_inst() local
468 opts = container_of(f, struct f_serial_opts, func_inst); in obex_free_inst()
469 gserial_free_line(opts->port_num); in obex_free_inst()
470 kfree(opts); in obex_free_inst()
[all …]
Df_uac2.c366 struct f_uac2_opts *opts; in uac2_pcm_open() local
372 opts = container_of(audio_dev->func.fi, struct f_uac2_opts, func_inst); in uac2_pcm_open()
373 p_ssize = opts->p_ssize; in uac2_pcm_open()
374 c_ssize = opts->c_ssize; in uac2_pcm_open()
375 p_srate = opts->p_srate; in uac2_pcm_open()
376 c_srate = opts->c_srate; in uac2_pcm_open()
377 p_chmask = opts->p_chmask; in uac2_pcm_open()
378 c_chmask = opts->c_chmask; in uac2_pcm_open()
450 struct f_uac2_opts *opts; in snd_uac2_probe() local
455 opts = container_of(audio_dev->func.fi, struct f_uac2_opts, func_inst); in snd_uac2_probe()
[all …]
Df_ecm.c873 struct f_ecm_opts *opts; in ecm_free_inst() local
875 opts = container_of(f, struct f_ecm_opts, func_inst); in ecm_free_inst()
876 if (opts->bound) in ecm_free_inst()
877 gether_cleanup(netdev_priv(opts->net)); in ecm_free_inst()
879 free_netdev(opts->net); in ecm_free_inst()
880 kfree(opts); in ecm_free_inst()
885 struct f_ecm_opts *opts; in ecm_alloc_inst() local
887 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in ecm_alloc_inst()
888 if (!opts) in ecm_alloc_inst()
890 mutex_init(&opts->lock); in ecm_alloc_inst()
[all …]
Df_mass_storage.c3020 struct fsg_opts *opts; in fsg_bind() local
3029 opts = fsg_opts_from_func_inst(f->fi); in fsg_bind()
3030 if (!opts->no_configfs) { in fsg_bind()
3150 static ssize_t fsg_lun_opts_file_show(struct fsg_lun_opts *opts, char *page) in fsg_lun_opts_file_show() argument
3154 fsg_opts = to_fsg_opts(opts->group.cg_item.ci_parent); in fsg_lun_opts_file_show()
3156 return fsg_show_file(opts->lun, &fsg_opts->common->filesem, page); in fsg_lun_opts_file_show()
3159 static ssize_t fsg_lun_opts_file_store(struct fsg_lun_opts *opts, in fsg_lun_opts_file_store() argument
3164 fsg_opts = to_fsg_opts(opts->group.cg_item.ci_parent); in fsg_lun_opts_file_store()
3166 return fsg_store_file(opts->lun, &fsg_opts->common->filesem, page, len); in fsg_lun_opts_file_store()
3173 static ssize_t fsg_lun_opts_ro_show(struct fsg_lun_opts *opts, char *page) in fsg_lun_opts_ro_show() argument
[all …]
Df_phonet.c597 struct f_phonet_opts *opts = to_f_phonet_opts(item); in f_phonet_attr_show() local
603 ret = f_phonet_opts_attr->show(opts, page); in f_phonet_attr_show()
609 struct f_phonet_opts *opts = to_f_phonet_opts(item); in phonet_attr_release() local
611 usb_put_function_instance(&opts->func_inst); in phonet_attr_release()
619 static ssize_t f_phonet_ifname_show(struct f_phonet_opts *opts, char *page) in f_phonet_ifname_show() argument
621 return gether_get_ifname(opts->net, page, PAGE_SIZE); in f_phonet_ifname_show()
640 struct f_phonet_opts *opts; in phonet_free_inst() local
642 opts = container_of(f, struct f_phonet_opts, func_inst); in phonet_free_inst()
643 if (opts->bound) in phonet_free_inst()
644 gphonet_cleanup(opts->net); in phonet_free_inst()
[all …]
Df_acm.c745 struct f_serial_opts *opts; in acm_alloc_func() local
766 opts = container_of(fi, struct f_serial_opts, func_inst); in acm_alloc_func()
767 acm->port_num = opts->port_num; in acm_alloc_func()
785 struct f_serial_opts *opts = to_f_serial_opts(item); in f_acm_attr_show() local
791 ret = f_serial_opts_attr->show(opts, page); in f_acm_attr_show()
797 struct f_serial_opts *opts = to_f_serial_opts(item); in acm_attr_release() local
799 usb_put_function_instance(&opts->func_inst); in acm_attr_release()
807 static ssize_t f_acm_port_num_show(struct f_serial_opts *opts, char *page) in f_acm_port_num_show() argument
809 return sprintf(page, "%u\n", opts->port_num); in f_acm_port_num_show()
829 struct f_serial_opts *opts; in acm_free_instance() local
[all …]
Df_fs.c1184 static int ffs_fs_parse_opts(struct ffs_sb_fill_data *data, char *opts) in ffs_fs_parse_opts() argument
1188 if (!opts || !*opts) in ffs_fs_parse_opts()
1196 comma = strchr(opts, ','); in ffs_fs_parse_opts()
1201 eq = strchr(opts, '='); in ffs_fs_parse_opts()
1203 pr_err("'=' missing in %s\n", opts); in ffs_fs_parse_opts()
1210 pr_err("%s: invalid value: %s\n", opts, eq + 1); in ffs_fs_parse_opts()
1215 switch (eq - opts) { in ffs_fs_parse_opts()
1217 if (!memcmp(opts, "no_disconnect", 13)) in ffs_fs_parse_opts()
1223 if (!memcmp(opts, "rmode", 5)) in ffs_fs_parse_opts()
1225 else if (!memcmp(opts, "fmode", 5)) in ffs_fs_parse_opts()
[all …]
Du_uac1.c208 struct f_uac1_opts *opts; in gaudio_open_snd_dev() local
211 opts = container_of(card->func.fi, struct f_uac1_opts, func_inst); in gaudio_open_snd_dev()
212 fn_play = opts->fn_play; in gaudio_open_snd_dev()
213 fn_cap = opts->fn_cap; in gaudio_open_snd_dev()
214 fn_cntl = opts->fn_cntl; in gaudio_open_snd_dev()
Duvc_configfs.h20 int uvcg_attach_configfs(struct f_uvc_opts *opts);
Du_fs.h48 struct f_fs_opts *opts; member
/linux-4.1.27/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 = get_unaligned_be16(ptr); in synproxy_parse_options()
60 opts->options |= XT_SYNPROXY_OPT_MSS; in synproxy_parse_options()
65 opts->wscale = *ptr; in synproxy_parse_options()
66 if (opts->wscale > 14) in synproxy_parse_options()
67 opts->wscale = 14; in synproxy_parse_options()
68 opts->options |= XT_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 …]
Dxt_osf.c200 unsigned char opts[MAX_IPOPTLEN]; in xt_osf_match_packet() local
223 sizeof(struct tcphdr), optsize, opts); in xt_osf_match_packet()
/linux-4.1.27/drivers/net/ppp/
Dppp_mppe.h33 #define MPPE_OPTS_TO_CI(opts, ci) \ argument
38 if (opts & MPPE_OPT_STATEFUL) \
47 if (opts & MPPE_OPT_128) \
49 if (opts & MPPE_OPT_40) \
55 #define MPPE_CI_TO_OPTS(ci, opts) \ argument
59 opts = 0; \
63 opts |= MPPE_OPT_STATEFUL; \
67 opts |= MPPE_OPT_128; \
69 opts |= MPPE_OPT_40; \
73 opts |= MPPE_OPT_56; \
[all …]
/linux-4.1.27/tools/perf/util/
Drecord.c98 void perf_evlist__config(struct perf_evlist *evlist, struct record_opts *opts) in perf_evlist__config() argument
108 if (opts->group) in perf_evlist__config()
112 opts->no_inherit = true; in perf_evlist__config()
117 perf_evsel__config(evsel, opts); in perf_evlist__config()
143 static int record_opts__config_freq(struct record_opts *opts) in record_opts__config_freq() argument
145 bool user_freq = opts->user_freq != UINT_MAX; in record_opts__config_freq()
148 if (opts->user_interval != ULLONG_MAX) in record_opts__config_freq()
149 opts->default_interval = opts->user_interval; in record_opts__config_freq()
151 opts->freq = opts->user_freq; in record_opts__config_freq()
156 if (opts->default_interval) in record_opts__config_freq()
[all …]
Dparse-options.c560 static void print_option_help(const struct option *opts, int full) in print_option_help() argument
565 if (opts->type == OPTION_GROUP) { in print_option_help()
567 if (*opts->help) in print_option_help()
568 fprintf(stderr, "%s\n", opts->help); in print_option_help()
571 if (!full && (opts->flags & PARSE_OPT_HIDDEN)) in print_option_help()
573 if (opts->flags & PARSE_OPT_DISABLED) in print_option_help()
577 if (opts->short_name) in print_option_help()
578 pos += fprintf(stderr, "-%c", opts->short_name); in print_option_help()
582 if (opts->long_name && opts->short_name) in print_option_help()
584 if (opts->long_name) in print_option_help()
[all …]
Devsel.c545 struct record_opts *opts) in perf_evsel__config_callgraph() argument
553 if (!opts->branch_stack) { in perf_evsel__config_callgraph()
615 void perf_evsel__config(struct perf_evsel *evsel, struct record_opts *opts) in perf_evsel__config() argument
620 bool per_cpu = opts->target.default_per_cpu && !opts->target.per_thread; in perf_evsel__config()
623 attr->inherit = !opts->no_inherit; in perf_evsel__config()
651 if (!attr->sample_period || (opts->user_freq != UINT_MAX || in perf_evsel__config()
652 opts->user_interval != ULLONG_MAX)) { in perf_evsel__config()
653 if (opts->freq) { in perf_evsel__config()
656 attr->sample_freq = opts->freq; in perf_evsel__config()
658 attr->sample_period = opts->default_interval; in perf_evsel__config()
[all …]
Dtop.c29 struct record_opts *opts = &top->record_opts; in perf_top__header_snprintf() local
30 struct target *target = &opts->target; in perf_top__header_snprintf()
77 opts->freq ? "Hz" : ""); in perf_top__header_snprintf()
Devlist.h113 void perf_evlist__config(struct perf_evlist *evlist, struct record_opts *opts);
114 int record_opts__config(struct record_opts *opts);
Dkvm-stat.h74 struct record_opts opts; member
Dparse-options.h185 const struct option *opts,
219 void set_option_flag(struct option *opts, int sopt, const char *lopt, int flag);
Devsel.h148 struct record_opts *opts);
/linux-4.1.27/tools/perf/
Dbuiltin-record.c38 struct record_opts opts; member
142 struct record_opts *opts = &rec->opts; in record__open() local
145 perf_evlist__config(evlist, opts); in record__open()
157 perf_evsel__open_strerror(pos, &opts->target, in record__open()
172 if (perf_evlist__mmap(evlist, opts->mmap_pages, false) < 0) { in record__open()
178 "(current value: %u)\n", opts->mmap_pages); in record__open()
306 if (!rec->opts.branch_stack) in record__init_features()
334 struct record_opts *opts = &rec->opts; in __cmd_record() local
359 err = perf_evlist__prepare_workload(rec->evlist, &opts->target, in __cmd_record()
443 err = __machine__synthesize_threads(machine, tool, &opts->target, rec->evlist->threads, in __cmd_record()
[all …]
Dbuiltin-kvm.c547 if (kvm->opts.target.system_wide) in print_vcpu_info()
549 else if (kvm->opts.target.pid) in print_vcpu_info()
550 pr_info("pid(s) %s, ", kvm->opts.target.pid); in print_vcpu_info()
984 perf_evlist__config(evlist, &kvm->opts); in kvm_live_open_events()
1024 if (perf_evlist__mmap(evlist, kvm->opts.mmap_pages, false) < 0) { in kvm_live_open_events()
1078 if (kvm->opts.target.pid) { in parse_target_str()
1079 kvm->pid_list = intlist__new(kvm->opts.target.pid); in parse_target_str()
1206 OPT_STRING('p', "pid", &kvm->opts.target.pid, "pid", in kvm_events_report()
1226 if (!kvm->opts.target.pid) in kvm_events_report()
1227 kvm->opts.target.system_wide = true; in kvm_events_report()
[all …]
Dperf-completion.sh156 cmds=$($cmd --list-opts)
178 opts=$($cmd $subcmd --list-opts)
179 __perfcomp "$opts" "$cur"
Dbuiltin-top.c880 struct record_opts *opts = &top->record_opts; in perf_top__start_counters() local
882 perf_evlist__config(evlist, opts); in perf_top__start_counters()
894 perf_evsel__open_strerror(counter, &opts->target, in perf_top__start_counters()
901 if (perf_evlist__mmap(evlist, opts->mmap_pages, false) < 0) { in perf_top__start_counters()
932 struct record_opts *opts = &top->record_opts; in __cmd_top() local
952 machine__synthesize_threads(&top->session->machines.host, &opts->target, in __cmd_top()
969 if (!target__none(&opts->target)) in __cmd_top()
1067 struct record_opts *opts = &top.record_opts; in cmd_top() local
1068 struct target *target = &opts->target; in cmd_top()
1073 OPT_U64('c', "count", &opts->user_interval, "event period to sample"), in cmd_top()
[all …]
Dbuiltin-trace.c1226 struct record_opts opts; member
1435 err = __machine__synthesize_threads(trace->host, &trace->tool, &trace->opts.target, in trace__symbols_init()
2013 if (trace->opts.target.pid) { in parse_target_str()
2014 trace->pid_list = intlist__new(trace->opts.target.pid); in parse_target_str()
2021 if (trace->opts.target.tid) { in parse_target_str()
2022 trace->tid_list = intlist__new(trace->opts.target.tid); in parse_target_str()
2194 err = perf_evlist__create_maps(evlist, &trace->opts.target); in trace__run()
2206 perf_evlist__config(evlist, &trace->opts); in trace__run()
2212 err = perf_evlist__prepare_workload(evlist, &trace->opts.target, in trace__run()
2240 err = perf_evlist__mmap(evlist, trace->opts.mmap_pages, false); in trace__run()
[all …]
/linux-4.1.27/net/ipv4/netfilter/
Dipt_SYNPROXY.c72 const struct synproxy_options *opts) in synproxy_send_client_synack() argument
78 u16 mss = opts->mss; in synproxy_send_client_synack()
82 tcp_hdr_size = sizeof(*nth) + synproxy_options_size(opts); in synproxy_send_client_synack()
98 if (opts->options & XT_SYNPROXY_OPT_ECN) in synproxy_send_client_synack()
105 synproxy_build_options(nth, opts); in synproxy_send_client_synack()
114 const struct synproxy_options *opts, u32 recv_seq) in synproxy_send_server_syn() argument
123 tcp_hdr_size = sizeof(*nth) + synproxy_options_size(opts); in synproxy_send_server_syn()
142 if (opts->options & XT_SYNPROXY_OPT_ECN) in synproxy_send_server_syn()
149 synproxy_build_options(nth, opts); in synproxy_send_server_syn()
159 const struct synproxy_options *opts) in synproxy_send_server_ack() argument
[all …]
/linux-4.1.27/net/ipv6/netfilter/
Dip6t_SYNPROXY.c87 const struct synproxy_options *opts) in synproxy_send_client_synack() argument
93 u16 mss = opts->mss; in synproxy_send_client_synack()
97 tcp_hdr_size = sizeof(*nth) + synproxy_options_size(opts); in synproxy_send_client_synack()
113 if (opts->options & XT_SYNPROXY_OPT_ECN) in synproxy_send_client_synack()
120 synproxy_build_options(nth, opts); in synproxy_send_client_synack()
129 const struct synproxy_options *opts, u32 recv_seq) in synproxy_send_server_syn() argument
138 tcp_hdr_size = sizeof(*nth) + synproxy_options_size(opts); in synproxy_send_server_syn()
157 if (opts->options & XT_SYNPROXY_OPT_ECN) in synproxy_send_server_syn()
164 synproxy_build_options(nth, opts); in synproxy_send_server_syn()
174 const struct synproxy_options *opts) in synproxy_send_server_ack() argument
[all …]
Dip6t_hbh.c114 if (*tp != (optinfo->opts[temp] & 0xFF00) >> 8) { in hbh_mt6()
116 (optinfo->opts[temp] & 0xFF00) >> 8); in hbh_mt6()
133 spec_len = optinfo->opts[temp] & 0x00FF; in hbh_mt6()
DKconfig153 tristate '"hbh" hop-by-hop and "dst" opts header match support'
/linux-4.1.27/fs/devpts/
Dinode.c160 static int parse_mount_options(char *data, int op, struct pts_mount_opts *opts) in parse_mount_options() argument
166 opts->setuid = 0; in parse_mount_options()
167 opts->setgid = 0; in parse_mount_options()
168 opts->uid = GLOBAL_ROOT_UID; in parse_mount_options()
169 opts->gid = GLOBAL_ROOT_GID; in parse_mount_options()
170 opts->mode = DEVPTS_DEFAULT_MODE; in parse_mount_options()
171 opts->ptmxmode = DEVPTS_DEFAULT_PTMX_MODE; in parse_mount_options()
172 opts->max = NR_UNIX98_PTY_MAX; in parse_mount_options()
176 opts->newinstance = 0; in parse_mount_options()
194 opts->uid = uid; in parse_mount_options()
[all …]
/linux-4.1.27/fs/ncpfs/
Dgetopt.c28 int ncp_getopt(const char *caller, char **options, const struct ncp_option *opts, in ncp_getopt() argument
45 for (; opts->name; opts++) { in ncp_getopt()
46 if (!strcmp(opts->name, token)) { in ncp_getopt()
48 if (opts->has_arg & OPT_NOPARAM) { in ncp_getopt()
49 return opts->val; in ncp_getopt()
55 if (opts->has_arg & OPT_INT) { in ncp_getopt()
63 return opts->val; in ncp_getopt()
65 if (opts->has_arg & OPT_STRING) { in ncp_getopt()
66 return opts->val; in ncp_getopt()
Dgetopt.h13 extern int ncp_getopt(const char *caller, char **options, const struct ncp_option *opts,
/linux-4.1.27/fs/fat/
Dinode.c837 struct fat_mount_options *opts = &sbi->options; in fat_show_options() local
838 int isvfat = opts->isvfat; in fat_show_options()
840 if (!uid_eq(opts->fs_uid, GLOBAL_ROOT_UID)) in fat_show_options()
842 from_kuid_munged(&init_user_ns, opts->fs_uid)); in fat_show_options()
843 if (!gid_eq(opts->fs_gid, GLOBAL_ROOT_GID)) in fat_show_options()
845 from_kgid_munged(&init_user_ns, opts->fs_gid)); in fat_show_options()
846 seq_printf(m, ",fmask=%04o", opts->fs_fmask); in fat_show_options()
847 seq_printf(m, ",dmask=%04o", opts->fs_dmask); in fat_show_options()
848 if (opts->allow_utime) in fat_show_options()
849 seq_printf(m, ",allow_utime=%04o", opts->allow_utime); in fat_show_options()
[all …]
Dnamei_msdos.c18 unsigned char *res, struct fat_mount_options *opts) in msdos_format_name() argument
31 if (opts->dotsOK) { in msdos_format_name()
46 if (opts->name_check != 'r' && strchr(bad_chars, c)) in msdos_format_name()
48 if (opts->name_check == 's' && strchr(bad_if_strict, c)) in msdos_format_name()
50 if (c >= 'A' && c <= 'Z' && opts->name_check == 's') in msdos_format_name()
67 *walk = (!opts->nocase && c >= 'a' && c <= 'z') ? c - 32 : c; in msdos_format_name()
71 if (opts->name_check == 's' && len && c != '.') { in msdos_format_name()
85 if (opts->name_check != 'r' && strchr(bad_chars, c)) in msdos_format_name()
87 if (opts->name_check == 's' && in msdos_format_name()
93 if (opts->name_check == 's') in msdos_format_name()
[all …]
Dmisc.c21 struct fat_mount_options *opts = &MSDOS_SB(sb)->options; in __fat_fs_error() local
33 if (opts->errors == FAT_ERRORS_PANIC) in __fat_fs_error()
35 else if (opts->errors == FAT_ERRORS_RO && !(sb->s_flags & MS_RDONLY)) { in __fat_fs_error()
Dnamei_vfat.c317 struct fat_mount_options *opts = &MSDOS_SB(dir->i_sb)->options; in vfat_create_shortname() local
437 if (opts->shortname & VFAT_SFN_CREATE_WIN95) { in vfat_create_shortname()
439 } else if (opts->shortname & VFAT_SFN_CREATE_WINNT) { in vfat_create_shortname()
454 if (opts->numtail == 0) in vfat_create_shortname()
584 struct fat_mount_options *opts = &sbi->options; in vfat_build_slots() local
602 opts->unicode_xlate, opts->utf8, sbi->nls_io); in vfat_build_slots()
/linux-4.1.27/drivers/usb/gadget/legacy/
Dmass_storage.c135 struct fsg_opts *opts; in msg_do_config() local
143 opts = fsg_opts_from_func_inst(fi_msg); in msg_do_config()
174 struct fsg_opts *opts; in msg_bind() local
183 opts = fsg_opts_from_func_inst(fi_msg); in msg_bind()
185 opts->no_configfs = true; in msg_bind()
186 status = fsg_common_set_num_buffers(opts->common, fsg_num_buffers); in msg_bind()
190 fsg_common_set_ops(opts->common, &ops); in msg_bind()
192 status = fsg_common_set_cdev(opts->common, cdev, config.can_stall); in msg_bind()
196 fsg_common_set_sysfs(opts->common, true); in msg_bind()
197 status = fsg_common_create_luns(opts->common, &config); in msg_bind()
[all …]
Dacm_ms.c126 struct fsg_opts *opts; in acm_ms_do_config() local
134 opts = fsg_opts_from_func_inst(fi_msg); in acm_ms_do_config()
176 struct fsg_opts *opts; in acm_ms_bind() local
192 opts = fsg_opts_from_func_inst(fi_msg); in acm_ms_bind()
194 opts->no_configfs = true; in acm_ms_bind()
195 status = fsg_common_set_num_buffers(opts->common, fsg_num_buffers); in acm_ms_bind()
199 status = fsg_common_set_cdev(opts->common, cdev, config.can_stall); in acm_ms_bind()
203 fsg_common_set_sysfs(opts->common, true); in acm_ms_bind()
204 status = fsg_common_create_luns(opts->common, &config); in acm_ms_bind()
208 fsg_common_set_inquiry_string(opts->common, config.vendor_name, in acm_ms_bind()
[all …]
Dprinter.c157 struct f_printer_opts *opts; in printer_bind() local
171 opts = container_of(fi_printer, struct f_printer_opts, func_inst); in printer_bind()
172 opts->minor = 0; in printer_bind()
173 memcpy(opts->pnp_string, pnp_string, PNP_STRING_LEN); in printer_bind()
174 opts->q_len = QLEN; in printer_bind()
Dg_ffs.c197 struct f_fs_opts *opts; in gfs_init() local
232 opts = to_f_fs_opts(fi_ffs[i]); in gfs_init()
234 ret = ffs_single_dev(opts->dev); in gfs_init()
236 ret = ffs_name_dev(opts->dev, func_names[i]); in gfs_init()
239 opts->dev->ffs_ready_callback = functionfs_ready_callback; in gfs_init()
240 opts->dev->ffs_closed_callback = functionfs_closed_callback; in gfs_init()
241 opts->dev->ffs_acquire_dev_callback = functionfs_acquire_dev; in gfs_init()
242 opts->dev->ffs_release_dev_callback = functionfs_release_dev; in gfs_init()
243 opts->no_configfs = true; in gfs_init()
Dinode.c1961 gadgetfs_fill_super (struct super_block *sb, void *opts, int silent) in gadgetfs_fill_super() argument
2019 const char *path, void *opts) in gadgetfs_mount() argument
2021 return mount_single (t, flags, opts, gadgetfs_fill_super); in gadgetfs_mount()
/linux-4.1.27/scripts/
Dcheckkconfigsymbols.py65 (opts, _) = parser.parse_args()
67 if opts.commit and opts.diff:
70 if opts.diff and not re.match(r"^[\w\-\.]+\.\.[\w\-\.]+$", opts.diff):
74 if opts.commit or opts.diff:
75 if not opts.force and tree_is_dirty():
83 return opts
88 opts = parse_options()
90 if opts.commit or opts.diff:
96 if opts.commit:
97 commit_a = opts.commit + "~"
[all …]
Dsign-file15 my %opts;
16 getopts('vs:', \%opts) or die $USAGE;
17 my $verbose = $opts{'v'};
18 my $signature_file = $opts{'s'};
/linux-4.1.27/fs/squashfs/
Dxz_wrapper.c55 struct comp_opts *opts; in squashfs_xz_comp_opts() local
58 opts = kmalloc(sizeof(*opts), GFP_KERNEL); in squashfs_xz_comp_opts()
59 if (opts == NULL) { in squashfs_xz_comp_opts()
71 opts->dict_size = le32_to_cpu(comp_opts->dictionary_size); in squashfs_xz_comp_opts()
74 n = ffs(opts->dict_size) - 1; in squashfs_xz_comp_opts()
75 if (opts->dict_size != (1 << n) && opts->dict_size != (1 << n) + in squashfs_xz_comp_opts()
82 opts->dict_size = max_t(int, msblk->block_size, in squashfs_xz_comp_opts()
85 return opts; in squashfs_xz_comp_opts()
88 kfree(opts); in squashfs_xz_comp_opts()
/linux-4.1.27/net/9p/
Dtrans_rdma.c172 static int parse_opts(char *params, struct p9_rdma_opts *opts) in parse_opts() argument
179 opts->port = P9_PORT; in parse_opts()
180 opts->sq_depth = P9_RDMA_SQ_DEPTH; in parse_opts()
181 opts->rq_depth = P9_RDMA_RQ_DEPTH; in parse_opts()
182 opts->timeout = P9_RDMA_TIMEOUT; in parse_opts()
183 opts->privport = 0; in parse_opts()
212 opts->port = option; in parse_opts()
215 opts->sq_depth = option; in parse_opts()
218 opts->rq_depth = option; in parse_opts()
221 opts->timeout = option; in parse_opts()
[all …]
Dtrans_fd.c727 static int parse_opts(char *params, struct p9_fd_opts *opts) in parse_opts() argument
734 opts->port = P9_PORT; in parse_opts()
735 opts->rfd = ~0; in parse_opts()
736 opts->wfd = ~0; in parse_opts()
737 opts->privport = 0; in parse_opts()
766 opts->port = option; in parse_opts()
769 opts->rfd = option; in parse_opts()
772 opts->wfd = option; in parse_opts()
775 opts->privport = 1; in parse_opts()
930 struct p9_fd_opts opts; in p9_fd_create_tcp() local
[all …]
Dclient.c122 static int parse_opts(char *opts, struct p9_client *clnt) in parse_opts() argument
134 if (!opts) in parse_opts()
137 tmp_options = kstrdup(opts, GFP_KERNEL); in parse_opts()
/linux-4.1.27/fs/hfsplus/
Doptions.c48 void hfsplus_fill_defaults(struct hfsplus_sb_info *opts) in hfsplus_fill_defaults() argument
50 if (!opts) in hfsplus_fill_defaults()
53 opts->creator = HFSPLUS_DEF_CR_TYPE; in hfsplus_fill_defaults()
54 opts->type = HFSPLUS_DEF_CR_TYPE; in hfsplus_fill_defaults()
55 opts->umask = current_umask(); in hfsplus_fill_defaults()
56 opts->uid = current_uid(); in hfsplus_fill_defaults()
57 opts->gid = current_gid(); in hfsplus_fill_defaults()
58 opts->part = -1; in hfsplus_fill_defaults()
59 opts->session = -1; in hfsplus_fill_defaults()
Dhfsplus_fs.h494 void hfsplus_fill_defaults(struct hfsplus_sb_info *opts);
/linux-4.1.27/include/net/netfilter/
Dnf_conntrack_synproxy.h61 struct synproxy_options *opts);
62 unsigned int synproxy_options_size(const struct synproxy_options *opts);
64 const struct synproxy_options *opts);
67 struct synproxy_options *opts);
68 void synproxy_check_timestamp_cookie(struct synproxy_options *opts);
/linux-4.1.27/arch/arm/mach-davinci/
Dtime.c94 unsigned long opts; member
111 #define USING_COMPARE(t) ((t)->opts & TIMER_OPTS_USE_COMPARE)
150 if (t->opts & TIMER_OPTS_ONESHOT) in timer32_config()
152 else if (t->opts & TIMER_OPTS_PERIODIC) in timer32_config()
182 .opts = TIMER_OPTS_DISABLED,
191 .opts = TIMER_OPTS_PERIODIC,
314 t->opts &= ~TIMER_OPTS_STATE_MASK; in davinci_set_mode()
315 t->opts |= TIMER_OPTS_PERIODIC; in davinci_set_mode()
319 t->opts &= ~TIMER_OPTS_STATE_MASK; in davinci_set_mode()
320 t->opts |= TIMER_OPTS_ONESHOT; in davinci_set_mode()
[all …]
/linux-4.1.27/fs/tracefs/
Dinode.c165 static int tracefs_parse_options(char *data, struct tracefs_mount_opts *opts) in tracefs_parse_options() argument
174 opts->mode = TRACEFS_DEFAULT_MODE; in tracefs_parse_options()
188 opts->uid = uid; in tracefs_parse_options()
196 opts->gid = gid; in tracefs_parse_options()
201 opts->mode = option & S_IALLUGO; in tracefs_parse_options()
217 struct tracefs_mount_opts *opts = &fsi->mount_opts; in tracefs_apply_options() local
220 inode->i_mode |= opts->mode; in tracefs_apply_options()
222 inode->i_uid = opts->uid; in tracefs_apply_options()
223 inode->i_gid = opts->gid; in tracefs_apply_options()
247 struct tracefs_mount_opts *opts = &fsi->mount_opts; in tracefs_show_options() local
[all …]
/linux-4.1.27/fs/debugfs/
Dinode.c76 static int debugfs_parse_options(char *data, struct debugfs_mount_opts *opts) in debugfs_parse_options() argument
85 opts->mode = DEBUGFS_DEFAULT_MODE; in debugfs_parse_options()
99 opts->uid = uid; in debugfs_parse_options()
107 opts->gid = gid; in debugfs_parse_options()
112 opts->mode = option & S_IALLUGO; in debugfs_parse_options()
128 struct debugfs_mount_opts *opts = &fsi->mount_opts; in debugfs_apply_options() local
131 inode->i_mode |= opts->mode; in debugfs_apply_options()
133 inode->i_uid = opts->uid; in debugfs_apply_options()
134 inode->i_gid = opts->gid; in debugfs_apply_options()
158 struct debugfs_mount_opts *opts = &fsi->mount_opts; in debugfs_show_options() local
[all …]
/linux-4.1.27/fs/exofs/
Dsuper.c81 static int parse_options(char *options, struct exofs_mountopt *opts) in parse_options() argument
90 memset(opts, 0, sizeof(*opts)); in parse_options()
91 opts->timeout = BLK_DEFAULT_SG_TIMEOUT; in parse_options()
103 opts->dev_name = match_strdup(&args[0]); in parse_options()
104 if (unlikely(!opts->dev_name)) { in parse_options()
108 opts->is_osdname = true; in parse_options()
113 opts->pid = simple_strtoull(str, NULL, 0); in parse_options()
114 if (opts->pid < EXOFS_MIN_PID) { in parse_options()
128 opts->timeout = option * HZ; in parse_options()
708 struct exofs_mountopt *opts = data; in exofs_fill_super() local
[all …]
/linux-4.1.27/net/bluetooth/
Dl2cap_sock.c396 struct l2cap_options opts; in l2cap_sock_getsockopt_old() local
420 memset(&opts, 0, sizeof(opts)); in l2cap_sock_getsockopt_old()
421 opts.imtu = chan->imtu; in l2cap_sock_getsockopt_old()
422 opts.omtu = chan->omtu; in l2cap_sock_getsockopt_old()
423 opts.flush_to = chan->flush_to; in l2cap_sock_getsockopt_old()
424 opts.mode = chan->mode; in l2cap_sock_getsockopt_old()
425 opts.fcs = chan->fcs; in l2cap_sock_getsockopt_old()
426 opts.max_tx = chan->max_tx; in l2cap_sock_getsockopt_old()
427 opts.txwin_size = chan->tx_win; in l2cap_sock_getsockopt_old()
429 len = min_t(unsigned int, len, sizeof(opts)); in l2cap_sock_getsockopt_old()
[all …]
Dsco.c853 struct sco_options opts; in sco_sock_getsockopt_old() local
873 opts.mtu = sco_pi(sk)->conn->mtu; in sco_sock_getsockopt_old()
875 BT_DBG("mtu %d", opts.mtu); in sco_sock_getsockopt_old()
877 len = min_t(unsigned int, len, sizeof(opts)); in sco_sock_getsockopt_old()
878 if (copy_to_user(optval, (char *)&opts, len)) in sco_sock_getsockopt_old()
/linux-4.1.27/Documentation/networking/
Dray_cs.txt42 At the end of the /etc/pcmcia/config.opts file, add the line:
43 source ./ray_cs.opts
44 This will make card services read the ray_cs.opts file
45 when starting. Create the file /etc/pcmcia/ray_cs.opts containing the
48 #### start of /etc/pcmcia/ray_cs.opts ###################
57 module "misc/ray_cs" opts ""
58 #### end of /etc/pcmcia/ray_cs.opts #####################
63 configuration information, and edit /etc/pcmcia/ray_cs.opts.
66 Parameters for ray_cs driver which may be specified in ray_cs.opts:
98 interrupts is in /etc/pcmcia/config.opts
[all …]
Dvortex.txt76 placed in /etc/pcmcia/config.opts:
78 module "3c59x" opts "debug=3 rx_copybreak=300"
/linux-4.1.27/arch/arm/mach-ixp4xx/
Dcommon.c517 unsigned long opts = *IXP4XX_OSRT1 & IXP4XX_OST_RELOAD_MASK; in ixp4xx_set_next_event() local
519 *IXP4XX_OSRT1 = (evt & ~IXP4XX_OST_RELOAD_MASK) | opts; in ixp4xx_set_next_event()
527 unsigned long opts = *IXP4XX_OSRT1 & IXP4XX_OST_RELOAD_MASK; in ixp4xx_set_mode() local
533 opts = IXP4XX_OST_ENABLE; in ixp4xx_set_mode()
538 opts = IXP4XX_OST_ENABLE | IXP4XX_OST_ONE_SHOT; in ixp4xx_set_mode()
541 opts &= ~IXP4XX_OST_ENABLE; in ixp4xx_set_mode()
544 opts |= IXP4XX_OST_ENABLE; in ixp4xx_set_mode()
548 osrt = opts = 0; in ixp4xx_set_mode()
552 *IXP4XX_OSRT1 = osrt | opts; in ixp4xx_set_mode()
/linux-4.1.27/net/ipv4/
Dtcp_output.c450 struct tcp_out_options *opts) in tcp_options_write() argument
452 u16 options = opts->options; /* mungable copy */ in tcp_options_write()
458 opts->hash_location = (__u8 *)ptr; in tcp_options_write()
462 if (unlikely(opts->mss)) { in tcp_options_write()
465 opts->mss); in tcp_options_write()
481 *ptr++ = htonl(opts->tsval); in tcp_options_write()
482 *ptr++ = htonl(opts->tsecr); in tcp_options_write()
496 opts->ws); in tcp_options_write()
499 if (unlikely(opts->num_sack_blocks)) { in tcp_options_write()
507 (TCPOLEN_SACK_BASE + (opts->num_sack_blocks * in tcp_options_write()
[all …]
/linux-4.1.27/arch/um/drivers/
Dstdio_console.c37 static struct chan_opts opts = { variable
79 return line_config(vts, ARRAY_SIZE(vts), str, &opts, error_out); in con_config()
163 new_title = add_xterm_umid(opts.xterm_title); in stdio_init()
165 opts.xterm_title = new_title; in stdio_init()
174 if (setup_one_line(vts, i, s, &opts, &error)) in stdio_init()
Dssl.c32 static struct chan_opts opts = { variable
74 return line_config(serial_lines, ARRAY_SIZE(serial_lines), str, &opts, in ssl_config()
164 new_title = add_xterm_umid(opts.xterm_title); in ssl_init()
166 opts.xterm_title = new_title; in ssl_init()
173 if (setup_one_line(serial_lines, i, s, &opts, &error)) in ssl_init()
Dpty.c26 static void *pty_chan_init(char *str, int device, const struct chan_opts *opts) in pty_chan_init() argument
34 *data = ((struct pty_chan) { .announce = opts->announce, in pty_chan_init()
36 .raw = opts->raw }); in pty_chan_init()
Dtty.c19 static void *tty_chan_init(char *str, int device, const struct chan_opts *opts) in tty_chan_init() argument
34 .raw = opts->raw }); in tty_chan_init()
Dxterm.c27 static void *xterm_init(char *str, int device, const struct chan_opts *opts) in xterm_init() argument
37 .title = opts->xterm_title, in xterm_init()
38 .raw = opts->raw } ); in xterm_init()
Dchan_kern.c15 const struct chan_opts *opts) in not_configged_init() argument
448 const struct chan_opts *opts, char **error_out) in parse_chan() argument
471 data = (*ops->init)(str, device, opts); in parse_chan()
498 const struct chan_opts *opts, char **error_out) in parse_chan_pair() argument
518 new = parse_chan(line, in, device, opts, error_out); in parse_chan_pair()
526 new = parse_chan(line, out, device, opts, error_out); in parse_chan_pair()
535 new = parse_chan(line, str, device, opts, error_out); in parse_chan_pair()
Dfd.c22 static void *fd_init(char *str, int device, const struct chan_opts *opts) in fd_init() argument
46 .raw = opts->raw }); in fd_init()
Dline.h86 const struct chan_opts *opts, char **error_out);
90 char *str, const struct chan_opts *opts,
Dline.c374 const struct chan_opts *opts, char **error_out) in setup_one_line() argument
390 parse_chan_pair(NULL, line, n, opts, error_out); in setup_one_line()
405 err = parse_chan_pair(new, line, n, opts, error_out); in setup_one_line()
412 parse_chan_pair(NULL, line, n, opts, error_out); in setup_one_line()
466 const struct chan_opts *opts, char **error_out) in line_config() argument
486 return setup_one_line(lines, n, end, opts, error_out); in line_config()
Dport_user.c24 static void *port_init(char *str, int device, const struct chan_opts *opts) in port_init() argument
52 *data = ((struct port_chan) { .raw = opts->raw, in port_init()
Dnull.c15 static void *null_init(char *str, int device, const struct chan_opts *opts) in null_init() argument
Dchan.h32 const struct chan_opts *opts, char **error_out);
/linux-4.1.27/kernel/
Dcgroup.c1351 static int parse_cgroupfs_options(char *data, struct cgroup_sb_opts *opts) in parse_cgroupfs_options() argument
1364 memset(opts, 0, sizeof(*opts)); in parse_cgroupfs_options()
1373 opts->none = true; in parse_cgroupfs_options()
1384 opts->flags |= CGRP_ROOT_SANE_BEHAVIOR; in parse_cgroupfs_options()
1388 opts->flags |= CGRP_ROOT_NOPREFIX; in parse_cgroupfs_options()
1392 opts->cpuset_clone_children = true; in parse_cgroupfs_options()
1396 opts->flags |= CGRP_ROOT_XATTR; in parse_cgroupfs_options()
1401 if (opts->release_agent) in parse_cgroupfs_options()
1403 opts->release_agent = in parse_cgroupfs_options()
1405 if (!opts->release_agent) in parse_cgroupfs_options()
[all …]
/linux-4.1.27/net/sched/
Dsch_dsmark.c420 struct nlattr *opts = NULL; in dsmark_dump_class() local
430 opts = nla_nest_start(skb, TCA_OPTIONS); in dsmark_dump_class()
431 if (opts == NULL) in dsmark_dump_class()
437 return nla_nest_end(skb, opts); in dsmark_dump_class()
440 nla_nest_cancel(skb, opts); in dsmark_dump_class()
447 struct nlattr *opts = NULL; in dsmark_dump() local
449 opts = nla_nest_start(skb, TCA_OPTIONS); in dsmark_dump()
450 if (opts == NULL) in dsmark_dump()
463 return nla_nest_end(skb, opts); in dsmark_dump()
466 nla_nest_cancel(skb, opts); in dsmark_dump()
Dsch_codel.c189 struct nlattr *opts; in codel_dump() local
191 opts = nla_nest_start(skb, TCA_OPTIONS); in codel_dump()
192 if (opts == NULL) in codel_dump()
205 return nla_nest_end(skb, opts); in codel_dump()
208 nla_nest_cancel(skb, opts); in codel_dump()
Dsch_red.c260 struct nlattr *opts = NULL; in red_dump() local
272 opts = nla_nest_start(skb, TCA_OPTIONS); in red_dump()
273 if (opts == NULL) in red_dump()
278 return nla_nest_end(skb, opts); in red_dump()
281 nla_nest_cancel(skb, opts); in red_dump()
Dsch_pie.c463 struct nlattr *opts; in pie_dump() local
465 opts = nla_nest_start(skb, TCA_OPTIONS); in pie_dump()
466 if (opts == NULL) in pie_dump()
481 return nla_nest_end(skb, opts); in pie_dump()
484 nla_nest_cancel(skb, opts); in pie_dump()
Dsch_choke.c502 struct nlattr *opts = NULL; in choke_dump() local
513 opts = nla_nest_start(skb, TCA_OPTIONS); in choke_dump()
514 if (opts == NULL) in choke_dump()
520 return nla_nest_end(skb, opts); in choke_dump()
523 nla_nest_cancel(skb, opts); in choke_dump()
Dsch_gred.c510 struct nlattr *parms, *opts = NULL; in gred_dump() local
520 opts = nla_nest_start(skb, TCA_OPTIONS); in gred_dump()
521 if (opts == NULL) in gred_dump()
584 return nla_nest_end(skb, opts); in gred_dump()
587 nla_nest_cancel(skb, opts); in gred_dump()
Dsch_sfb.c560 struct nlattr *opts; in sfb_dump() local
574 opts = nla_nest_start(skb, TCA_OPTIONS); in sfb_dump()
575 if (opts == NULL) in sfb_dump()
579 return nla_nest_end(skb, opts); in sfb_dump()
582 nla_nest_cancel(skb, opts); in sfb_dump()
Dsch_fq_codel.c431 struct nlattr *opts; in fq_codel_dump() local
433 opts = nla_nest_start(skb, TCA_OPTIONS); in fq_codel_dump()
434 if (opts == NULL) in fq_codel_dump()
451 return nla_nest_end(skb, opts); in fq_codel_dump()
Dsch_hhf.c673 struct nlattr *opts; in hhf_dump() local
675 opts = nla_nest_start(skb, TCA_OPTIONS); in hhf_dump()
676 if (opts == NULL) in hhf_dump()
690 return nla_nest_end(skb, opts); in hhf_dump()
Dsch_fq.c785 struct nlattr *opts; in fq_dump() local
787 opts = nla_nest_start(skb, TCA_OPTIONS); in fq_dump()
788 if (opts == NULL) in fq_dump()
805 return nla_nest_end(skb, opts); in fq_dump()
/linux-4.1.27/fs/befs/
Dlinuxvfs.c672 parse_options(char *options, struct befs_mount_options *opts) in parse_options() argument
681 opts->uid = GLOBAL_ROOT_UID; in parse_options()
682 opts->gid = GLOBAL_ROOT_GID; in parse_options()
683 opts->use_uid = 0; in parse_options()
684 opts->use_gid = 0; in parse_options()
685 opts->iocharset = NULL; in parse_options()
686 opts->debug = 0; in parse_options()
709 opts->uid = uid; in parse_options()
710 opts->use_uid = 1; in parse_options()
723 opts->gid = gid; in parse_options()
[all …]
/linux-4.1.27/net/openvswitch/
Dvport-vxlan.c71 struct ovs_vxlan_opts opts = { in vxlan_rcv() local
87 key, flags, &opts, sizeof(opts)); in vxlan_rcv()
209 const struct ovs_vxlan_opts *opts; in vxlan_ext_gbp() local
212 opts = tun_info->options; in vxlan_ext_gbp()
215 tun_info->options_len >= sizeof(*opts)) in vxlan_ext_gbp()
216 return opts->gbp; in vxlan_ext_gbp()
Dflow.h76 const void *opts, in __ovs_flow_tun_info_init() argument
98 tun_info->options = opts; in __ovs_flow_tun_info_init()
108 const void *opts, in ovs_flow_tun_info_init() argument
115 opts, opts_len); in ovs_flow_tun_info_init()
Dvport-geneve.c181 u8 vni[3], opts_len, *opts; in geneve_tnl_send() local
204 opts = (u8 *)tun_info->options; in geneve_tnl_send()
207 opts = NULL; in geneve_tnl_send()
214 tun_key->tun_flags, vni, opts_len, opts, in geneve_tnl_send()
Dflow_netlink.c478 struct ovs_vxlan_opts opts; in vxlan_tun_opt_from_nlattr() local
481 BUILD_BUG_ON(sizeof(opts) > sizeof(match->key->tun_opts)); in vxlan_tun_opt_from_nlattr()
487 memset(&opts, 0, sizeof(opts)); in vxlan_tun_opt_from_nlattr()
490 opts.gbp = nla_get_u32(tb[OVS_VXLAN_EXT_GBP]); in vxlan_tun_opt_from_nlattr()
493 SW_FLOW_KEY_PUT(match, tun_opts_len, sizeof(opts), false); in vxlan_tun_opt_from_nlattr()
497 opt_key_offset = TUN_METADATA_OFFSET(sizeof(opts)); in vxlan_tun_opt_from_nlattr()
498 SW_FLOW_KEY_MEMCPY_OFFSET(match, opt_key_offset, &opts, sizeof(opts), in vxlan_tun_opt_from_nlattr()
629 const struct ovs_vxlan_opts *opts = tun_opts; in vxlan_opt_to_nlattr() local
636 if (nla_put_u32(skb, OVS_VXLAN_EXT_GBP, opts->gbp) < 0) in vxlan_opt_to_nlattr()
1291 const void *opts = NULL; in __ovs_nla_put_key() local
[all …]
/linux-4.1.27/drivers/scsi/aic7xxx/
DMakefile53 aicasm-7xxx-opts-$(CONFIG_AIC7XXX_REG_PRETTY_PRINT) := \
59 $(aicasm-7xxx-opts-y) -o $(obj)/aic7xxx_seq.h \
70 aicasm-79xx-opts-$(CONFIG_AIC79XX_REG_PRETTY_PRINT) := \
76 $(aicasm-79xx-opts-y) -o $(obj)/aic79xx_seq.h \
/linux-4.1.27/tools/perf/tests/
Dopen-syscall-tp-fields.c10 struct record_opts opts = { in test__syscall_open_tp_fields() local
40 err = perf_evlist__create_maps(evlist, &opts.target); in test__syscall_open_tp_fields()
46 perf_evsel__config(evsel, &opts); in test__syscall_open_tp_fields()
Dperf-record.c37 struct record_opts opts = { in test__PERF_RECORD() local
75 err = perf_evlist__create_maps(evlist, &opts.target); in test__PERF_RECORD()
87 err = perf_evlist__prepare_workload(evlist, &opts.target, argv, false, NULL); in test__PERF_RECORD()
100 perf_evlist__config(evlist, &opts); in test__PERF_RECORD()
136 err = perf_evlist__mmap(evlist, opts.mmap_pages, false); in test__PERF_RECORD()
Dkeep-tracking.c54 struct record_opts opts = { in test__keep_tracking() local
84 perf_evlist__config(evlist, &opts); in test__keep_tracking()
Dperf-time-to-tsc.c38 struct record_opts opts = { in test__perf_time_to_tsc() local
73 perf_evlist__config(evlist, &opts); in test__perf_time_to_tsc()
Dcode-reading.c390 struct record_opts opts = { in do_test_code_reading() local
491 perf_evlist__config(evlist, &opts); in do_test_code_reading()
Dswitch-tracking.c312 struct record_opts opts = { in test__switch_tracking() local
420 perf_evlist__config(evlist, &opts); in test__switch_tracking()
/linux-4.1.27/scripts/package/
Dbuildtar128 opts=
130 opts="--owner=root --group=root"
132 tar cf - -C "$tmpdir" boot/ lib/ $opts | ${compress} > "${tarball}${file_ext}"
/linux-4.1.27/drivers/sbus/char/
Ddisplay7seg.c173 struct device_node *opts; in d7s_probe() local
203 opts = of_find_node_by_path("/options"); in d7s_probe()
204 if (opts && in d7s_probe()
205 of_get_property(opts, "d7s-flipped?", NULL)) in d7s_probe()
/linux-4.1.27/security/selinux/
Dhooks.c491 struct security_mnt_opts *opts) in selinux_get_mnt_opts() argument
499 security_init_mnt_opts(opts); in selinux_get_mnt_opts()
514 opts->num_mnt_opts++; in selinux_get_mnt_opts()
519 opts->num_mnt_opts++; in selinux_get_mnt_opts()
521 opts->mnt_opts = kcalloc(opts->num_mnt_opts, sizeof(char *), GFP_ATOMIC); in selinux_get_mnt_opts()
522 if (!opts->mnt_opts) { in selinux_get_mnt_opts()
527 opts->mnt_opts_flags = kcalloc(opts->num_mnt_opts, sizeof(int), GFP_ATOMIC); in selinux_get_mnt_opts()
528 if (!opts->mnt_opts_flags) { in selinux_get_mnt_opts()
538 opts->mnt_opts[i] = context; in selinux_get_mnt_opts()
539 opts->mnt_opts_flags[i++] = FSCONTEXT_MNT; in selinux_get_mnt_opts()
[all …]
/linux-4.1.27/tools/usb/usbip/src/
Dusbip_detach.c84 static const struct option opts[] = { in usbip_detach() local
92 opt = getopt_long(argc, argv, "p:", opts, NULL); in usbip_detach()
Dusbip_unbind.c114 static const struct option opts[] = { in usbip_unbind() local
123 opt = getopt_long(argc, argv, "b:", opts, NULL); in usbip_unbind()
Dusbip_bind.c187 static const struct option opts[] = { in usbip_bind() local
196 opt = getopt_long(argc, argv, "b:", opts, NULL); in usbip_bind()
Dusbip.c147 static const struct option opts[] = { in main() local
161 opt = getopt_long(argc, argv, "+dlt:", opts, NULL); in main()
Dusbip_attach.c203 static const struct option opts[] = { in usbip_attach() local
214 opt = getopt_long(argc, argv, "r:b:", opts, NULL); in usbip_attach()
Dusbip_list.c242 static const struct option opts[] = { in usbip_list() local
257 opt = getopt_long(argc, argv, "pr:l", opts, NULL); in usbip_list()
/linux-4.1.27/fs/jffs2/
Dsuper.c89 struct jffs2_mount_opts *opts = &c->mount_opts; in jffs2_show_options() local
91 if (opts->override_compr) in jffs2_show_options()
92 seq_printf(s, ",compr=%s", jffs2_compr_name(opts->compr)); in jffs2_show_options()
93 if (opts->rp_size) in jffs2_show_options()
94 seq_printf(s, ",rp_size=%u", opts->rp_size / 1024); in jffs2_show_options()
Dnodemgmt.c27 struct jffs2_mount_opts *opts = &c->mount_opts; in jffs2_rp_can_write() local
33 if (avail < 2 * opts->rp_size) in jffs2_rp_can_write()
37 opts->rp_size, c->dirty_size, c->free_size, in jffs2_rp_can_write()
41 if (avail > opts->rp_size) in jffs2_rp_can_write()
/linux-4.1.27/net/tipc/
Dudp_media.c280 struct nlattr *opts[TIPC_NLA_UDP_MAX + 1]; in parse_options() local
285 if (nla_parse_nested(opts, TIPC_NLA_UDP_MAX, in parse_options()
289 if (opts[TIPC_NLA_UDP_LOCAL] && opts[TIPC_NLA_UDP_REMOTE]) { in parse_options()
290 sa_local = nla_data(opts[TIPC_NLA_UDP_LOCAL]); in parse_options()
291 sa_remote = nla_data(opts[TIPC_NLA_UDP_REMOTE]); in parse_options()
/linux-4.1.27/include/linux/
Dsecurity.h171 static inline void security_init_mnt_opts(struct security_mnt_opts *opts) in security_init_mnt_opts() argument
173 opts->mnt_opts = NULL; in security_init_mnt_opts()
174 opts->mnt_opts_flags = NULL; in security_init_mnt_opts()
175 opts->num_mnt_opts = 0; in security_init_mnt_opts()
178 static inline void security_free_mnt_opts(struct security_mnt_opts *opts) in security_free_mnt_opts() argument
181 if (opts->mnt_opts) in security_free_mnt_opts()
182 for (i = 0; i < opts->num_mnt_opts; i++) in security_free_mnt_opts()
183 kfree(opts->mnt_opts[i]); in security_free_mnt_opts()
184 kfree(opts->mnt_opts); in security_free_mnt_opts()
185 opts->mnt_opts = NULL; in security_free_mnt_opts()
[all …]
Dof.h253 const char **opts);
426 const char **opts) in of_find_node_opts_by_path() argument
/linux-4.1.27/fs/reiserfs/
Dsuper.c680 long opts = REISERFS_SB(s)->s_mount_opt; in reiserfs_show_options() local
682 if (opts & (1 << REISERFS_LARGETAIL)) in reiserfs_show_options()
684 else if (!(opts & (1 << REISERFS_SMALLTAIL))) in reiserfs_show_options()
688 if (!(opts & (1 << REISERFS_BARRIER_FLUSH))) in reiserfs_show_options()
692 if (opts & (1 << REISERFS_ERROR_CONTINUE)) in reiserfs_show_options()
694 else if (opts & (1 << REISERFS_ERROR_PANIC)) in reiserfs_show_options()
698 if (opts & (1 << REISERFS_DATA_LOG)) in reiserfs_show_options()
700 else if (opts & (1 << REISERFS_DATA_WRITEBACK)) in reiserfs_show_options()
704 if (opts & (1 << REISERFS_ATTRS)) in reiserfs_show_options()
707 if (opts & (1 << REISERFS_XATTRS_USER)) in reiserfs_show_options()
[all …]
/linux-4.1.27/tools/power/acpi/common/
Dgetopt.c120 int acpi_getopt(int argc, char **argv, char *opts) in acpi_getopt() argument
143 (opts_ptr = ACPI_STRCHR(opts, current_char)) == NULL) { in acpi_getopt()
/linux-4.1.27/drivers/ata/
Dacard-ahci.c266 u32 opts; in acard_ahci_qc_prep() local
291 opts = cmd_fis_len | (qc->dev->link->pmp << 12); in acard_ahci_qc_prep()
293 opts |= AHCI_CMD_WRITE; in acard_ahci_qc_prep()
295 opts |= AHCI_CMD_ATAPI | AHCI_CMD_PREFETCH; in acard_ahci_qc_prep()
297 ahci_fill_cmd_slot(pp, qc->tag, opts); in acard_ahci_qc_prep()
Dahci.h273 __le32 opts; member
375 u32 opts);
Dlibahci.c1198 u32 opts) in ahci_fill_cmd_slot() argument
1204 pp->cmd_slot[tag].opts = cpu_to_le32(opts); in ahci_fill_cmd_slot()
1530 u32 opts; in ahci_qc_prep() local
1553 opts = cmd_fis_len | n_elem << 16 | (qc->dev->link->pmp << 12); in ahci_qc_prep()
1555 opts |= AHCI_CMD_WRITE; in ahci_qc_prep()
1557 opts |= AHCI_CMD_ATAPI | AHCI_CMD_PREFETCH; in ahci_qc_prep()
1559 ahci_fill_cmd_slot(pp, qc->tag, opts); in ahci_qc_prep()
/linux-4.1.27/fs/ramfs/
Dinode.c175 static int ramfs_parse_options(char *data, struct ramfs_mount_opts *opts) in ramfs_parse_options() argument
182 opts->mode = RAMFS_DEFAULT_MODE; in ramfs_parse_options()
193 opts->mode = option & S_IALLUGO; in ramfs_parse_options()
/linux-4.1.27/include/uapi/linux/netfilter_ipv6/
Dip6t_opts.h12 __u16 opts[IP6T_OPTS_OPTSNR]; /* opts */ member
/linux-4.1.27/drivers/block/mtip32xx/
Dmtip32xx.h220 unsigned char opts; member
274 unsigned int opts; member
Dmtip32xx.c1098 u32 opts, in mtip_exec_internal_command() argument
1151 int_cmd->command_header->opts = in mtip_exec_internal_command()
1152 __force_bit2int cpu_to_le32(opts | fis_len); in mtip_exec_internal_command()
1163 int_cmd->command_header->opts |= in mtip_exec_internal_command()
1352 fis.opts = 1 << 7; in mtip_get_identify()
1442 fis.opts = 1 << 7; in mtip_standby_immediate()
1484 fis.opts = 1 << 7; in mtip_read_log_page()
1521 fis.opts = 1 << 7; in mtip_get_smart_data()
1651 fis.opts = 1 << 7; in mtip_send_trim()
1799 fis.opts = 1 << 7; in exec_drive_task()
[all …]
/linux-4.1.27/drivers/target/
Dtarget_core_rd.c606 char *orig, *ptr, *opts; in rd_set_configfs_dev_params() local
610 opts = kstrdup(page, GFP_KERNEL); in rd_set_configfs_dev_params()
611 if (!opts) in rd_set_configfs_dev_params()
614 orig = opts; in rd_set_configfs_dev_params()
616 while ((ptr = strsep(&opts, ",\n")) != NULL) { in rd_set_configfs_dev_params()
Dtarget_core_iblock.c540 char *orig, *ptr, *arg_p, *opts; in iblock_set_configfs_dev_params() local
545 opts = kstrdup(page, GFP_KERNEL); in iblock_set_configfs_dev_params()
546 if (!opts) in iblock_set_configfs_dev_params()
549 orig = opts; in iblock_set_configfs_dev_params()
551 while ((ptr = strsep(&opts, ",\n")) != NULL) { in iblock_set_configfs_dev_params()
Dtarget_core_file.c730 char *orig, *ptr, *arg_p, *opts; in fd_set_configfs_dev_params() local
734 opts = kstrdup(page, GFP_KERNEL); in fd_set_configfs_dev_params()
735 if (!opts) in fd_set_configfs_dev_params()
738 orig = opts; in fd_set_configfs_dev_params()
740 while ((ptr = strsep(&opts, ",\n")) != NULL) { in fd_set_configfs_dev_params()
Dtarget_core_pscsi.c731 char *orig, *ptr, *opts; in pscsi_set_configfs_dev_params() local
735 opts = kstrdup(page, GFP_KERNEL); in pscsi_set_configfs_dev_params()
736 if (!opts) in pscsi_set_configfs_dev_params()
739 orig = opts; in pscsi_set_configfs_dev_params()
741 while ((ptr = strsep(&opts, ",\n")) != NULL) { in pscsi_set_configfs_dev_params()
Dtarget_core_user.c955 char *orig, *ptr, *opts, *arg_p; in tcmu_set_configfs_dev_params() local
960 opts = kstrdup(page, GFP_KERNEL); in tcmu_set_configfs_dev_params()
961 if (!opts) in tcmu_set_configfs_dev_params()
964 orig = opts; in tcmu_set_configfs_dev_params()
966 while ((ptr = strsep(&opts, ",\n")) != NULL) { in tcmu_set_configfs_dev_params()
Dtarget_core_configfs.c1031 char *orig, *ptr, *opts; in target_core_dev_pr_store_attr_res_aptpl_metadata() local
1051 opts = kstrdup(page, GFP_KERNEL); in target_core_dev_pr_store_attr_res_aptpl_metadata()
1052 if (!opts) in target_core_dev_pr_store_attr_res_aptpl_metadata()
1055 orig = opts; in target_core_dev_pr_store_attr_res_aptpl_metadata()
1056 while ((ptr = strsep(&opts, ",\n")) != NULL) { in target_core_dev_pr_store_attr_res_aptpl_metadata()
/linux-4.1.27/kernel/trace/
Dtrace_nop.c31 .opts = nop_opts
Dtrace.c79 .opts = dummy_tracer_opt
1246 if (!type->flags->opts) in register_tracer()
1247 type->flags->opts = dummy_tracer_opt; in register_tracer()
3476 trace_opts = tr->current_trace->flags->opts; in tracing_trace_options_show()
3498 struct tracer_opt *opts, int neg) in __set_tracer_option() argument
3503 ret = trace->set_flag(tr, tracer_flags->val, opts->bit, !neg); in __set_tracer_option()
3508 tracer_flags->val &= ~opts->bit; in __set_tracer_option()
3510 tracer_flags->val |= opts->bit; in __set_tracer_option()
3519 struct tracer_opt *opts = NULL; in set_tracer_option() local
3522 for (i = 0; tracer_flags->opts[i].name; i++) { in set_tracer_option()
[all …]
Dtrace_functions.c206 .opts = func_opts
Dtrace_irqsoff.c72 .opts = trace_opts,
Dtrace_sched_wakeup.c55 .opts = trace_opts,
Dtrace.h329 struct tracer_opt *opts; member
Dtrace_functions_graph.c93 .opts = trace_opts
Dblktrace.c56 .opts = blk_tracer_opts,
/linux-4.1.27/fs/ocfs2/
Dsuper.c1508 unsigned long opts = osb->s_mount_opt; in ocfs2_show_options() local
1511 if (opts & (OCFS2_MOUNT_HB_LOCAL | OCFS2_MOUNT_HB_GLOBAL)) { in ocfs2_show_options()
1513 if (opts & OCFS2_MOUNT_HB_LOCAL) in ocfs2_show_options()
1520 if (opts & OCFS2_MOUNT_NOINTR) in ocfs2_show_options()
1523 if (opts & OCFS2_MOUNT_DATA_WRITEBACK) in ocfs2_show_options()
1528 if (opts & OCFS2_MOUNT_BARRIER) in ocfs2_show_options()
1531 if (opts & OCFS2_MOUNT_ERRORS_PANIC) in ocfs2_show_options()
1549 if (opts & OCFS2_MOUNT_LOCALFLOCKS) in ocfs2_show_options()
1555 if (opts & OCFS2_MOUNT_USRQUOTA) in ocfs2_show_options()
1557 if (opts & OCFS2_MOUNT_GRPQUOTA) in ocfs2_show_options()
[all …]
/linux-4.1.27/include/linux/mtd/
Dnand.h749 #define LEGACY_ID_NAND(nm, devid, chipsz, erasesz, opts) \ argument
751 .chipsize = (chipsz), .erasesize = (erasesz), .options = (opts) }
763 #define EXTENDED_ID_NAND(nm, devid, chipsz, opts) \ argument
765 .options = (opts) }
/linux-4.1.27/drivers/scsi/
Dscsi_debug.c4096 module_param_named(opts, scsi_debug_opts, int, S_IRUGO | S_IWUSR);
4143 MODULE_PARM_DESC(opts, "1->noise, 2->medium_err, 4->timeout, 8->recovered_err... (def=0)");
4173 int opts; in scsi_debug_write_info() local
4180 if (1 != sscanf(arr, "%d", &opts)) in scsi_debug_write_info()
4182 scsi_debug_opts = opts; in scsi_debug_write_info()
4305 int opts; in opts_store() local
4310 if (1 == sscanf(&work[2], "%x", &opts)) in opts_store()
4313 if (1 == sscanf(work, "%d", &opts)) in opts_store()
4319 scsi_debug_opts = opts; in opts_store()
4320 if (SCSI_DEBUG_OPT_RECOVERED_ERR & opts) in opts_store()
[all …]
/linux-4.1.27/tools/thermal/tmon/
Dtmon.c219 static struct option opts[] = { variable
244 while ((c = getopt_long(argc, argv, "c:dlht:T:vgz:", opts, &id2)) != -1) { in main()
/linux-4.1.27/fs/9p/
Dv9fs.c113 static int v9fs_parse_options(struct v9fs_session_info *v9ses, char *opts) in v9fs_parse_options() argument
130 if (!opts) in v9fs_parse_options()
133 tmp_options = kstrdup(opts, GFP_KERNEL); in v9fs_parse_options()
/linux-4.1.27/drivers/acpi/acpica/
Dacapps.h96 int acpi_getopt(int argc, char **argv, char *opts);
/linux-4.1.27/Documentation/target/
Dtcm_mod_builder.py957 (opts, args) = parser.parse_args()
961 if not opts.__dict__[m]:
968 main(str(opts.modname), opts.protoident)
/linux-4.1.27/drivers/net/ethernet/3com/
D3c589_cs.c887 u16 opts = SetRxFilter | RxStation | RxBroadcast; in set_rx_mode() local
890 opts |= RxMulticast | RxProm; in set_rx_mode()
892 opts |= RxMulticast; in set_rx_mode()
893 outw(opts, ioaddr + EL3_CMD); in set_rx_mode()
/linux-4.1.27/drivers/net/ethernet/realtek/
Dr8169.c6807 u32 *opts) in rtl8169_xmit_frags() argument
6835 status = opts[0] | len | in rtl8169_xmit_frags()
6839 txd->opts2 = cpu_to_le32(opts[1]); in rtl8169_xmit_frags()
6939 struct sk_buff *skb, u32 *opts) in rtl8169_tso_csum_v1() argument
6944 opts[0] |= TD_LSO; in rtl8169_tso_csum_v1()
6945 opts[0] |= min(mss, TD_MSS_MAX) << TD0_MSS_SHIFT; in rtl8169_tso_csum_v1()
6950 opts[0] |= TD0_IP_CS | TD0_TCP_CS; in rtl8169_tso_csum_v1()
6952 opts[0] |= TD0_IP_CS | TD0_UDP_CS; in rtl8169_tso_csum_v1()
6961 struct sk_buff *skb, u32 *opts) in rtl8169_tso_csum_v2() argument
6976 opts[0] |= TD1_GTSENV4; in rtl8169_tso_csum_v2()
[all …]
/linux-4.1.27/drivers/net/ethernet/via/
Dvia-velocity.c486 static void velocity_get_options(struct velocity_opt *opts, int index, in velocity_get_options() argument
490 …velocity_set_int_opt(&opts->rx_thresh, rx_thresh[index], RX_THRESH_MIN, RX_THRESH_MAX, RX_THRESH_D… in velocity_get_options()
491 …velocity_set_int_opt(&opts->DMA_length, DMA_length[index], DMA_LENGTH_MIN, DMA_LENGTH_MAX, DMA_LEN… in velocity_get_options()
492 …velocity_set_int_opt(&opts->numrx, RxDescriptors[index], RX_DESC_MIN, RX_DESC_MAX, RX_DESC_DEF, "R… in velocity_get_options()
493 …velocity_set_int_opt(&opts->numtx, TxDescriptors[index], TX_DESC_MIN, TX_DESC_MAX, TX_DESC_DEF, "T… in velocity_get_options()
495 …velocity_set_int_opt(&opts->flow_cntl, flow_control[index], FLOW_CNTL_MIN, FLOW_CNTL_MAX, FLOW_CNT… in velocity_get_options()
496 …velocity_set_bool_opt(&opts->flags, IP_byte_align[index], IP_ALIG_DEF, VELOCITY_FLAGS_IP_ALIGN, "I… in velocity_get_options()
497 …velocity_set_bool_opt(&opts->flags, ValPktLen[index], VAL_PKT_LEN_DEF, VELOCITY_FLAGS_VAL_PKT_LEN,… in velocity_get_options()
498 …velocity_set_int_opt((int *) &opts->spd_dpx, speed_duplex[index], MED_LNK_MIN, MED_LNK_MAX, MED_LN… in velocity_get_options()
499 …velocity_set_int_opt(&opts->wol_opts, wol_opts[index], WOL_OPT_MIN, WOL_OPT_MAX, WOL_OPT_DEF, "Wak… in velocity_get_options()
[all …]
/linux-4.1.27/fs/hpfs/
Dsuper.c293 static int parse_opts(char *opts, kuid_t *uid, kgid_t *gid, umode_t *umask, in parse_opts() argument
300 if (!opts) in parse_opts()
305 while ((p = strsep(&opts, ",")) != NULL) { in parse_opts()
/linux-4.1.27/drivers/net/ethernet/davicom/
Ddm9000.c710 u32 opts = w->wolopts; in dm9000_set_wol() local
716 if (opts & ~WAKE_MAGIC) in dm9000_set_wol()
719 if (opts & WAKE_MAGIC) in dm9000_set_wol()
730 if (dm->wake_state != opts) { in dm9000_set_wol()
735 else if (dm->wake_state && !opts) in dm9000_set_wol()
739 dm->wake_state = opts; in dm9000_set_wol()
/linux-4.1.27/drivers/md/
Ddm-crypt.c78 const char *opts);
359 const char *opts) in crypt_iv_essiv_ctr() argument
366 if (!opts) { in crypt_iv_essiv_ctr()
372 hash_tfm = crypto_alloc_hash(opts, 0, CRYPTO_ALG_ASYNC); in crypt_iv_essiv_ctr()
419 const char *opts) in crypt_iv_benbi_ctr() argument
480 const char *opts) in crypt_iv_lmk_ctr() argument
629 const char *opts) in crypt_iv_tcw_ctr() argument
/linux-4.1.27/arch/sh/kernel/cpu/
Dinit.c48 static int x##_setup(char *opts) \
/linux-4.1.27/drivers/net/wireless/orinoco/
DKconfig28 configure your card and that /etc/pcmcia/wireless.opts works :
121 configure your card and that /etc/pcmcia/wireless.opts works:
/linux-4.1.27/security/
Dcapability.c117 struct security_mnt_opts *opts, in cap_sb_set_mnt_opts() argument
122 if (unlikely(opts->num_mnt_opts)) in cap_sb_set_mnt_opts()
133 static int cap_sb_parse_opts_str(char *options, struct security_mnt_opts *opts) in cap_sb_parse_opts_str() argument
Dsecurity.c320 struct security_mnt_opts *opts, in security_sb_set_mnt_opts() argument
324 return security_ops->sb_set_mnt_opts(sb, opts, kern_flags, in security_sb_set_mnt_opts()
336 int security_sb_parse_opts_str(char *options, struct security_mnt_opts *opts) in security_sb_parse_opts_str() argument
338 return security_ops->sb_parse_opts_str(options, opts); in security_sb_parse_opts_str()
/linux-4.1.27/drivers/scsi/sym53c8xx_2/
Dsym_hipd.c1944 static void sym_settrans(struct sym_hcb *np, int target, u_char opts, u_char ofs, argument
1995 if (opts) {
2137 sym_setpprot(struct sym_hcb *np, int target, u_char opts, u_char ofs, argument
2143 sym_settrans(np, target, opts, ofs, per, wide, div, fak);
2152 spi_iu(starget) = tp->tgoal.iu = !!(opts & PPR_OPT_IU);
2153 spi_dt(starget) = tp->tgoal.dt = !!(opts & PPR_OPT_DT);
2154 spi_qas(starget) = tp->tgoal.qas = !!(opts & PPR_OPT_QAS);
4082 unsigned char opts = np->msgin[7] & PPR_OPT_MASK; local
4096 opts = 0;
4098 if (opts != (np->msgin[7] & PPR_OPT_MASK))
[all …]
/linux-4.1.27/fs/btrfs/
Dsuper.c772 char *device_name, *opts, *orig, *p; in btrfs_parse_early_options() local
783 opts = kstrdup(options, GFP_KERNEL); in btrfs_parse_early_options()
784 if (!opts) in btrfs_parse_early_options()
786 orig = opts; in btrfs_parse_early_options()
788 while ((p = strsep(&opts, ",")) != NULL) { in btrfs_parse_early_options()
/linux-4.1.27/tools/vm/
Dpage-types.c1083 static const struct option opts[] = { variable
1106 "rp:f:a:b:d:lLNXxh", opts, NULL)) != -1) { in main()
Dslabinfo.c1270 struct option opts[] = { variable
1300 opts, NULL)) != -1) in main()
/linux-4.1.27/drivers/of/
Dbase.c774 struct device_node *of_find_node_opts_by_path(const char *path, const char **opts) in of_find_node_opts_by_path() argument
781 if (opts) in of_find_node_opts_by_path()
782 *opts = separator ? separator + 1 : NULL; in of_find_node_opts_by_path()
/linux-4.1.27/drivers/net/ethernet/dec/tulip/
Dde2104x.c263 u8 opts; member
1860 switch(ib->opts & MediaBlockMask) { in de21041_get_srom_info()
1892 bufp += sizeof (ib->opts); in de21041_get_srom_info()
1894 if (ib->opts & MediaCustomCSRs) { in de21041_get_srom_info()
/linux-4.1.27/drivers/staging/slicoss/
Dslicoss.c733 u32 opts = adapter->macopts; in slic_mac_filter() local
735 if (opts & MAC_PROMISC) in slic_mac_filter()
739 if (opts & MAC_BCAST) { in slic_mac_filter()
748 if (opts & MAC_ALLMCAST) { in slic_mac_filter()
753 if (opts & MAC_MCAST) { in slic_mac_filter()
771 if (opts & MAC_DIRECTED) { in slic_mac_filter()
/linux-4.1.27/drivers/misc/
Dpti.c715 static int pti_console_setup(struct console *c, char *opts) in pti_console_setup() argument
/linux-4.1.27/drivers/scsi/qla2xxx/
Dqla_iocb.c1921 uint16_t opts; in qla2x00_login_iocb() local
1926 opts = lio->u.logio.flags & SRB_LOGIN_COND_PLOGI ? BIT_0 : 0; in qla2x00_login_iocb()
1927 opts |= lio->u.logio.flags & SRB_LOGIN_SKIP_PRLI ? BIT_1 : 0; in qla2x00_login_iocb()
1930 mbx->mb10 = cpu_to_le16(opts); in qla2x00_login_iocb()
1932 mbx->mb1 = cpu_to_le16((sp->fcport->loop_id << 8) | opts); in qla2x00_login_iocb()
Dqla_os.c4042 uint8_t opts; in qla2x00_relogin() local
4044 opts = 0; in qla2x00_relogin()
4047 opts |= BIT_1; in qla2x00_relogin()
4050 vha, fcport, opts); in qla2x00_relogin()
Dqla_init.c3954 uint8_t opts; in qla2x00_fabric_dev_login() local
3973 opts = 0; in qla2x00_fabric_dev_login()
3975 opts |= BIT_1; in qla2x00_fabric_dev_login()
3976 rval = qla2x00_get_port_database(vha, fcport, opts); in qla2x00_fabric_dev_login()
/linux-4.1.27/drivers/net/irda/
Ddonauboe.c332 toshoboe_start_DMA (struct toshoboe_cb *self, int opts) in toshoboe_start_DMA() argument
335 OUTB (CONFIG0H_DMA_ON | opts, OBOE_CONFIG0H); in toshoboe_start_DMA()
/linux-4.1.27/tools/lguest/
Dlguest.c3194 static struct option opts[] = { variable
3269 while ((c = getopt_long(argc, argv, "v", opts, NULL)) != EOF) { in main()
/linux-4.1.27/drivers/block/
Drbd.c4876 struct rbd_options **opts, in rbd_add_parse_args() argument
4965 *opts = rbd_opts; in rbd_add_parse_args()