Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/usb/gadget/function/
Du_ether_configfs.h22 struct f_##_f_##_opts *opts = to_f_##_f_##_opts(item); \
24 usb_put_function_instance(&opts->func_inst); \
35 struct f_##_f_##_opts *opts = to_f_##_f_##_opts(item); \
38 mutex_lock(&opts->lock); \
39 result = gether_get_dev_addr(opts->net, page, PAGE_SIZE); \
40 mutex_unlock(&opts->lock); \
48 struct f_##_f_##_opts *opts = to_f_##_f_##_opts(item); \
51 mutex_lock(&opts->lock); \
52 if (opts->refcnt) { \
53 mutex_unlock(&opts->lock); \
[all …]
Duvc_configfs.c58 struct f_uvc_opts *opts; \
66 opts = to_f_uvc_opts(opts_item); \
68 mutex_lock(&opts->lock); \
70 mutex_unlock(&opts->lock); \
81 struct f_uvc_opts *opts; \
90 opts = to_f_uvc_opts(opts_item); \
92 mutex_lock(&opts->lock); \
93 if (ch->linked || opts->refcnt) { \
109 mutex_unlock(&opts->lock); \
195 struct f_uvc_opts *opts; \
[all …]
Df_uvc.c585 struct f_uvc_opts *opts; in uvc_function_bind() local
590 opts = fi_to_f_uvc_opts(f->fi); in uvc_function_bind()
593 opts->streaming_interval = clamp(opts->streaming_interval, 1U, 16U); in uvc_function_bind()
594 opts->streaming_maxpacket = clamp(opts->streaming_maxpacket, 1U, 3072U); in uvc_function_bind()
595 opts->streaming_maxburst = min(opts->streaming_maxburst, 15U); in uvc_function_bind()
603 if (opts->streaming_maxpacket <= 1024) { in uvc_function_bind()
605 max_packet_size = opts->streaming_maxpacket; in uvc_function_bind()
606 } else if (opts->streaming_maxpacket <= 2048) { in uvc_function_bind()
608 max_packet_size = opts->streaming_maxpacket / 2; in uvc_function_bind()
611 max_packet_size = opts->streaming_maxpacket / 3; in uvc_function_bind()
[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()
774 struct f_uac1_opts *opts = to_f_uac1_opts(item); in f_uac1_attr_release() local
776 usb_put_function_instance(&opts->func_inst); in f_uac1_attr_release()
[all …]
Df_hid.c710 struct f_hid_opts *opts = to_f_hid_opts(item); in hid_attr_release() local
712 usb_put_function_instance(&opts->func_inst); in hid_attr_release()
722 struct f_hid_opts *opts = to_f_hid_opts(item); \
725 mutex_lock(&opts->lock); \
726 result = sprintf(page, "%d\n", opts->name); \
727 mutex_unlock(&opts->lock); \
735 struct f_hid_opts *opts = to_f_hid_opts(item); \
739 mutex_lock(&opts->lock); \
740 if (opts->refcnt) { \
753 opts->name = num; \
[all …]
Df_midi.c908 struct f_midi_opts *opts = to_f_midi_opts(item); in midi_attr_release() local
910 usb_put_function_instance(&opts->func_inst); in midi_attr_release()
920 struct f_midi_opts *opts = to_f_midi_opts(item); \
923 mutex_lock(&opts->lock); \
924 result = sprintf(page, "%d\n", opts->name); \
925 mutex_unlock(&opts->lock); \
933 struct f_midi_opts *opts = to_f_midi_opts(item); \
937 mutex_lock(&opts->lock); \
938 if (opts->refcnt) { \
951 opts->name = num; \
[all …]
Df_subset.c423 struct f_gether_opts *opts; in geth_free_inst() local
425 opts = container_of(f, struct f_gether_opts, func_inst); in geth_free_inst()
426 if (opts->bound) in geth_free_inst()
427 gether_cleanup(netdev_priv(opts->net)); in geth_free_inst()
429 free_netdev(opts->net); in geth_free_inst()
430 kfree(opts); in geth_free_inst()
435 struct f_gether_opts *opts; in geth_alloc_inst() local
437 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in geth_alloc_inst()
438 if (!opts) in geth_alloc_inst()
440 mutex_init(&opts->lock); in geth_alloc_inst()
[all …]
Df_rndis.c833 struct f_rndis_opts *opts; in rndis_borrow_net() local
835 opts = container_of(f, struct f_rndis_opts, func_inst); in rndis_borrow_net()
836 if (opts->bound) in rndis_borrow_net()
837 gether_cleanup(netdev_priv(opts->net)); in rndis_borrow_net()
839 free_netdev(opts->net); in rndis_borrow_net()
840 opts->borrowed_net = opts->bound = true; in rndis_borrow_net()
841 opts->net = net; in rndis_borrow_net()
882 struct f_rndis_opts *opts; in rndis_free_inst() local
884 opts = container_of(f, struct f_rndis_opts, func_inst); in rndis_free_inst()
885 if (!opts->borrowed_net) { in rndis_free_inst()
[all …]
Df_sourcesink.c467 struct f_ss_opts *opts; in sourcesink_free_func() local
469 opts = container_of(f->fi, struct f_ss_opts, func_inst); in sourcesink_free_func()
471 mutex_lock(&opts->lock); in sourcesink_free_func()
472 opts->refcnt--; in sourcesink_free_func()
473 mutex_unlock(&opts->lock); in sourcesink_free_func()
905 struct f_ss_opts *opts = to_f_ss_opts(item); in f_ss_opts_pattern_show() local
908 mutex_lock(&opts->lock); in f_ss_opts_pattern_show()
909 result = sprintf(page, "%u\n", opts->pattern); in f_ss_opts_pattern_show()
910 mutex_unlock(&opts->lock); in f_ss_opts_pattern_show()
918 struct f_ss_opts *opts = to_f_ss_opts(item); in f_ss_opts_pattern_store() local
[all …]
Df_eem.c563 struct f_eem_opts *opts; in eem_free_inst() local
565 opts = container_of(f, struct f_eem_opts, func_inst); in eem_free_inst()
566 if (opts->bound) in eem_free_inst()
567 gether_cleanup(netdev_priv(opts->net)); in eem_free_inst()
569 free_netdev(opts->net); in eem_free_inst()
570 kfree(opts); in eem_free_inst()
575 struct f_eem_opts *opts; in eem_alloc_inst() local
577 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in eem_alloc_inst()
578 if (!opts) in eem_alloc_inst()
580 mutex_init(&opts->lock); in eem_alloc_inst()
[all …]
Df_ncm.c896 const struct ndp_parser_opts *opts = ncm->parser_opts; in package_for_tx() local
898 const int dgram_idx_len = 2 * 2 * opts->dgram_item_len; in package_for_tx()
912 put_ncm(&ntb_iter, opts->block_length, new_len); in package_for_tx()
913 put_ncm(&ntb_iter, opts->ndp_index, ndp_index); in package_for_tx()
916 new_len = opts->ndp_size + in package_for_tx()
959 const struct ndp_parser_opts *opts = ncm->parser_opts; in ncm_wrap_ntb() local
963 const int dgram_idx_len = 2 * 2 * opts->dgram_item_len; in ncm_wrap_ntb()
998 ncb_len = opts->nth_size; in ncm_wrap_ntb()
1010 put_unaligned_le32(opts->nth_sign, ntb_data); in ncm_wrap_ntb()
1013 put_unaligned_le16(opts->nth_size, ntb_data++); in ncm_wrap_ntb()
[all …]
Df_serial.c263 struct f_serial_opts *opts = to_f_serial_opts(item); in serial_attr_release() local
265 usb_put_function_instance(&opts->func_inst); in serial_attr_release()
292 struct f_serial_opts *opts; in gser_free_inst() local
294 opts = container_of(f, struct f_serial_opts, func_inst); in gser_free_inst()
295 gserial_free_line(opts->port_num); in gser_free_inst()
296 kfree(opts); in gser_free_inst()
301 struct f_serial_opts *opts; in gser_alloc_inst() local
304 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in gser_alloc_inst()
305 if (!opts) in gser_alloc_inst()
308 opts->func_inst.free_func_inst = gser_free_inst; in gser_alloc_inst()
[all …]
Df_printer.c1151 struct f_printer_opts *opts = to_f_printer_opts(item); in printer_attr_release() local
1153 usb_put_function_instance(&opts->func_inst); in printer_attr_release()
1163 struct f_printer_opts *opts = to_f_printer_opts(item); in f_printer_opts_pnp_string_show() local
1166 mutex_lock(&opts->lock); in f_printer_opts_pnp_string_show()
1167 result = strlcpy(page, opts->pnp_string + 2, PNP_STRING_LEN - 2); in f_printer_opts_pnp_string_show()
1168 mutex_unlock(&opts->lock); in f_printer_opts_pnp_string_show()
1176 struct f_printer_opts *opts = to_f_printer_opts(item); in f_printer_opts_pnp_string_store() local
1179 mutex_lock(&opts->lock); in f_printer_opts_pnp_string_store()
1180 result = strlcpy(opts->pnp_string + 2, page, PNP_STRING_LEN - 2); in f_printer_opts_pnp_string_store()
1181 l = strlen(opts->pnp_string + 2) + 2; in f_printer_opts_pnp_string_store()
[all …]
Df_ecm.c856 struct f_ecm_opts *opts; in ecm_free_inst() local
858 opts = container_of(f, struct f_ecm_opts, func_inst); in ecm_free_inst()
859 if (opts->bound) in ecm_free_inst()
860 gether_cleanup(netdev_priv(opts->net)); in ecm_free_inst()
862 free_netdev(opts->net); in ecm_free_inst()
863 kfree(opts); in ecm_free_inst()
868 struct f_ecm_opts *opts; in ecm_alloc_inst() local
870 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in ecm_alloc_inst()
871 if (!opts) in ecm_alloc_inst()
873 mutex_init(&opts->lock); in ecm_alloc_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_loopback.c227 struct f_lb_opts *opts; in lb_free_func() local
229 opts = container_of(f->fi, struct f_lb_opts, func_inst); in lb_free_func()
231 mutex_lock(&opts->lock); in lb_free_func()
232 opts->refcnt--; in lb_free_func()
233 mutex_unlock(&opts->lock); in lb_free_func()
481 struct f_lb_opts *opts = to_f_lb_opts(item); in f_lb_opts_qlen_show() local
484 mutex_lock(&opts->lock); in f_lb_opts_qlen_show()
485 result = sprintf(page, "%d\n", opts->qlen); in f_lb_opts_qlen_show()
486 mutex_unlock(&opts->lock); in f_lb_opts_qlen_show()
494 struct f_lb_opts *opts = to_f_lb_opts(item); in f_lb_opts_qlen_store() local
[all …]
Df_obex.c392 struct f_serial_opts *opts = to_f_serial_opts(item); in obex_attr_release() local
394 usb_put_function_instance(&opts->func_inst); in obex_attr_release()
421 struct f_serial_opts *opts; in obex_free_inst() local
423 opts = container_of(f, struct f_serial_opts, func_inst); in obex_free_inst()
424 gserial_free_line(opts->port_num); in obex_free_inst()
425 kfree(opts); in obex_free_inst()
430 struct f_serial_opts *opts; in obex_alloc_inst() local
433 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in obex_alloc_inst()
434 if (!opts) in obex_alloc_inst()
437 opts->func_inst.free_func_inst = obex_free_inst; in obex_alloc_inst()
[all …]
Df_phonet.c588 struct f_phonet_opts *opts = to_f_phonet_opts(item); in phonet_attr_release() local
590 usb_put_function_instance(&opts->func_inst); in phonet_attr_release()
617 struct f_phonet_opts *opts; in phonet_free_inst() local
619 opts = container_of(f, struct f_phonet_opts, func_inst); in phonet_free_inst()
620 if (opts->bound) in phonet_free_inst()
621 gphonet_cleanup(opts->net); in phonet_free_inst()
623 free_netdev(opts->net); in phonet_free_inst()
624 kfree(opts); in phonet_free_inst()
629 struct f_phonet_opts *opts; in phonet_alloc_inst() local
631 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in phonet_alloc_inst()
[all …]
Df_mass_storage.c3019 struct fsg_opts *opts; in fsg_bind() local
3028 opts = fsg_opts_from_func_inst(f->fi); in fsg_bind()
3029 if (!opts->no_configfs) { in fsg_bind()
3151 struct fsg_lun_opts *opts = to_fsg_lun_opts(item); in fsg_lun_opts_file_show() local
3152 struct fsg_opts *fsg_opts = to_fsg_opts(opts->group.cg_item.ci_parent); in fsg_lun_opts_file_show()
3154 return fsg_show_file(opts->lun, &fsg_opts->common->filesem, page); in fsg_lun_opts_file_show()
3160 struct fsg_lun_opts *opts = to_fsg_lun_opts(item); in fsg_lun_opts_file_store() local
3161 struct fsg_opts *fsg_opts = to_fsg_opts(opts->group.cg_item.ci_parent); in fsg_lun_opts_file_store()
3163 return fsg_store_file(opts->lun, &fsg_opts->common->filesem, page, len); in fsg_lun_opts_file_store()
3176 struct fsg_lun_opts *opts = to_fsg_lun_opts(item); in fsg_lun_opts_ro_store() local
[all …]
Df_acm.c729 struct f_serial_opts *opts; in acm_alloc_func() local
750 opts = container_of(fi, struct f_serial_opts, func_inst); in acm_alloc_func()
751 acm->port_num = opts->port_num; in acm_alloc_func()
766 struct f_serial_opts *opts = to_f_serial_opts(item); in acm_attr_release() local
768 usb_put_function_instance(&opts->func_inst); in acm_attr_release()
795 struct f_serial_opts *opts; in acm_free_instance() local
797 opts = container_of(fi, struct f_serial_opts, func_inst); in acm_free_instance()
798 gserial_free_line(opts->port_num); in acm_free_instance()
799 kfree(opts); in acm_free_instance()
804 struct f_serial_opts *opts; in acm_alloc_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.4.14/net/netfilter/
Dnf_synproxy_core.c32 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 > 14) in synproxy_parse_options()
70 opts->wscale = 14; 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 …]
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.4.14/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.4.14/tools/perf/
Dbuiltin-record.c43 struct record_opts opts; member
207 rec->opts.auxtrace_snapshot_size); in record__auxtrace_mmap_read_snapshot()
278 struct record_opts *opts = &rec->opts; in record__open() local
281 perf_evlist__config(evlist, opts); in record__open()
293 perf_evsel__open_strerror(pos, &opts->target, in record__open()
308 if (perf_evlist__mmap_ex(evlist, opts->mmap_pages, false, in record__open()
309 opts->auxtrace_mmap_pages, in record__open()
310 opts->auxtrace_snapshot_mode) < 0) { in record__open()
317 opts->mmap_pages, opts->auxtrace_mmap_pages); in record__open()
418 if (mm->base && !rec->opts.auxtrace_snapshot_mode && in record__mmap_read_all()
[all …]
Dbuiltin-kvm.c546 if (kvm->opts.target.system_wide) in print_vcpu_info()
548 else if (kvm->opts.target.pid) in print_vcpu_info()
549 pr_info("pid(s) %s, ", kvm->opts.target.pid); in print_vcpu_info()
985 perf_evlist__config(evlist, &kvm->opts); in kvm_live_open_events()
1025 if (perf_evlist__mmap(evlist, kvm->opts.mmap_pages, false) < 0) { in kvm_live_open_events()
1085 if (kvm->opts.target.pid) { in parse_target_str()
1086 kvm->pid_list = intlist__new(kvm->opts.target.pid); in parse_target_str()
1213 OPT_STRING('p', "pid", &kvm->opts.target.pid, "pid", in kvm_events_report()
1233 if (!kvm->opts.target.pid) in kvm_events_report()
1234 kvm->opts.target.system_wide = true; in kvm_events_report()
[all …]
Dbuiltin-top.c895 struct record_opts *opts = &top->record_opts; in perf_top__start_counters() local
897 perf_evlist__config(evlist, opts); in perf_top__start_counters()
909 perf_evsel__open_strerror(counter, &opts->target, in perf_top__start_counters()
916 if (perf_evlist__mmap(evlist, opts->mmap_pages, false) < 0) { in perf_top__start_counters()
947 struct record_opts *opts = &top->record_opts; in __cmd_top() local
970 machine__synthesize_threads(&top->session->machines.host, &opts->target, in __cmd_top()
971 top->evlist->threads, false, opts->proc_map_timeout); in __cmd_top()
994 if (!target__none(&opts->target)) in __cmd_top()
1118 struct record_opts *opts = &top.record_opts; in cmd_top() local
1119 struct target *target = &opts->target; in cmd_top()
[all …]
Dperf-completion.sh156 cmds=$($cmd --list-opts)
178 opts=$($cmd $subcmd --list-opts)
179 __perfcomp "$opts" "$cur"
Dbuiltin-trace.c1414 struct record_opts opts; member
1651 err = __machine__synthesize_threads(trace->host, &trace->tool, &trace->opts.target, in trace__symbols_init()
1653 trace->opts.proc_map_timeout); in trace__symbols_init()
2319 if (trace->opts.target.pid) { in parse_target_str()
2320 trace->pid_list = intlist__new(trace->opts.target.pid); in parse_target_str()
2327 if (trace->opts.target.tid) { in parse_target_str()
2328 trace->tid_list = intlist__new(trace->opts.target.tid); in parse_target_str()
2559 err = perf_evlist__create_maps(evlist, &trace->opts.target); in trace__run()
2571 perf_evlist__config(evlist, &trace->opts); in trace__run()
2577 err = perf_evlist__prepare_workload(evlist, &trace->opts.target, in trace__run()
[all …]
/linux-4.4.14/tools/perf/arch/x86/util/
Dintel-bts.c113 struct record_opts *opts) in intel_bts_recording_options() argument
123 btsr->snapshot_mode = opts->auxtrace_snapshot_mode; in intel_bts_recording_options()
134 opts->full_auxtrace = true; in intel_bts_recording_options()
138 if (opts->auxtrace_snapshot_mode && !opts->full_auxtrace) { in intel_bts_recording_options()
143 if (!opts->full_auxtrace) in intel_bts_recording_options()
146 if (opts->full_auxtrace && !cpu_map__empty(cpus)) { in intel_bts_recording_options()
152 if (opts->auxtrace_snapshot_mode) { in intel_bts_recording_options()
153 if (!opts->auxtrace_snapshot_size && !opts->auxtrace_mmap_pages) { in intel_bts_recording_options()
155 opts->auxtrace_mmap_pages = MiB(4) / page_size; in intel_bts_recording_options()
157 opts->auxtrace_mmap_pages = KiB(128) / page_size; in intel_bts_recording_options()
[all …]
Dintel-pt.c238 struct record_opts *opts, in intel_pt_parse_snapshot_options() argument
252 opts->auxtrace_snapshot_mode = true; in intel_pt_parse_snapshot_options()
253 opts->auxtrace_snapshot_size = snapshot_size; in intel_pt_parse_snapshot_options()
497 struct record_opts *opts) in intel_pt_recording_options() argument
510 ptr->snapshot_mode = opts->auxtrace_snapshot_mode; in intel_pt_recording_options()
521 opts->full_auxtrace = true; in intel_pt_recording_options()
525 if (opts->auxtrace_snapshot_mode && !opts->full_auxtrace) { in intel_pt_recording_options()
530 if (opts->use_clockid) { in intel_pt_recording_options()
535 if (!opts->full_auxtrace) in intel_pt_recording_options()
543 if (opts->auxtrace_snapshot_mode) { in intel_pt_recording_options()
[all …]
/linux-4.4.14/tools/perf/util/
Drecord.c132 void perf_evlist__config(struct perf_evlist *evlist, struct record_opts *opts) in perf_evlist__config() argument
142 if (opts->group) in perf_evlist__config()
146 opts->no_inherit = true; in perf_evlist__config()
151 perf_evsel__config(evsel, opts); in perf_evlist__config()
156 if (opts->full_auxtrace) { in perf_evlist__config()
186 static int record_opts__config_freq(struct record_opts *opts) in record_opts__config_freq() argument
188 bool user_freq = opts->user_freq != UINT_MAX; in record_opts__config_freq()
191 if (opts->user_interval != ULLONG_MAX) in record_opts__config_freq()
192 opts->default_interval = opts->user_interval; in record_opts__config_freq()
194 opts->freq = opts->user_freq; in record_opts__config_freq()
[all …]
Dparse-options.c567 static void print_option_help(const struct option *opts, int full) in print_option_help() argument
572 if (opts->type == OPTION_GROUP) { in print_option_help()
574 if (*opts->help) in print_option_help()
575 fprintf(stderr, "%s\n", opts->help); in print_option_help()
578 if (!full && (opts->flags & PARSE_OPT_HIDDEN)) in print_option_help()
580 if (opts->flags & PARSE_OPT_DISABLED) in print_option_help()
584 if (opts->short_name) in print_option_help()
585 pos += fprintf(stderr, "-%c", opts->short_name); in print_option_help()
589 if (opts->long_name && opts->short_name) in print_option_help()
591 if (opts->long_name) in print_option_help()
[all …]
Devsel.c560 struct record_opts *opts, in perf_evsel__config_callgraph() argument
569 if (!opts->branch_stack) { in perf_evsel__config_callgraph()
622 struct record_opts *opts) in apply_config_terms() argument
699 perf_evsel__config_callgraph(evsel, opts, &param); in apply_config_terms()
731 void perf_evsel__config(struct perf_evsel *evsel, struct record_opts *opts) in perf_evsel__config() argument
736 bool per_cpu = opts->target.default_per_cpu && !opts->target.per_thread; in perf_evsel__config()
739 attr->inherit = !opts->no_inherit; in perf_evsel__config()
767 if (!attr->sample_period || (opts->user_freq != UINT_MAX || in perf_evsel__config()
768 opts->user_interval != ULLONG_MAX)) { in perf_evsel__config()
769 if (opts->freq) { 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()
Dauxtrace.h295 struct record_opts *opts);
308 struct record_opts *opts,
427 struct record_opts *opts,
431 struct record_opts *opts);
541 struct record_opts *opts __maybe_unused) in auxtrace_record__options()
575 struct record_opts *opts __maybe_unused, in auxtrace_parse_snapshot_options()
Devlist.h124 void perf_evlist__config(struct perf_evlist *evlist, struct record_opts *opts);
125 int record_opts__config(struct record_opts *opts);
Dkvm-stat.h74 struct record_opts opts; member
Dparse-options.h194 const struct option *opts,
228 void set_option_flag(struct option *opts, int sopt, const char *lopt, int flag);
Dauxtrace.c535 struct record_opts *opts) in auxtrace_record__options() argument
538 return itr->recording_options(itr, evlist, opts); in auxtrace_record__options()
550 struct record_opts *opts, const char *str) in auxtrace_parse_snapshot_options() argument
556 return itr->parse_snapshot_options(itr, opts, str); in auxtrace_parse_snapshot_options()
Devsel.h184 struct record_opts *opts);
/linux-4.4.14/net/ipv4/netfilter/
Dipt_SYNPROXY.c76 const struct synproxy_options *opts) in synproxy_send_client_synack() argument
82 u16 mss = opts->mss; in synproxy_send_client_synack()
86 tcp_hdr_size = sizeof(*nth) + synproxy_options_size(opts); in synproxy_send_client_synack()
102 if (opts->options & XT_SYNPROXY_OPT_ECN) in synproxy_send_client_synack()
109 synproxy_build_options(nth, opts); in synproxy_send_client_synack()
118 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-4.4.14/scripts/
Dcheckkconfigsymbols.py78 (opts, _) = parser.parse_args()
80 if opts.commit and opts.diff:
83 if opts.diff and not re.match(r"^[\w\-\.]+\.\.[\w\-\.]+$", opts.diff):
87 if opts.commit or opts.diff:
88 if not opts.force and tree_is_dirty():
96 if opts.commit:
97 opts.find = False
99 if opts.ignore:
101 re.match(opts.ignore, "this/is/just/a/test.c")
105 return opts
[all …]
/linux-4.4.14/net/ipv6/netfilter/
Dip6t_SYNPROXY.c89 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
140 tcp_hdr_size = sizeof(*nth) + synproxy_options_size(opts); in synproxy_send_server_syn()
159 if (opts->options & XT_SYNPROXY_OPT_ECN) in synproxy_send_server_syn()
166 synproxy_build_options(nth, opts); in synproxy_send_server_syn()
176 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()
DKconfig167 tristate '"hbh" hop-by-hop and "dst" opts header match support'
/linux-4.4.14/fs/devpts/
Dinode.c162 static int parse_mount_options(char *data, int op, struct pts_mount_opts *opts) in parse_mount_options() argument
168 opts->setuid = 0; in parse_mount_options()
169 opts->setgid = 0; in parse_mount_options()
170 opts->uid = GLOBAL_ROOT_UID; in parse_mount_options()
171 opts->gid = GLOBAL_ROOT_GID; in parse_mount_options()
172 opts->mode = DEVPTS_DEFAULT_MODE; in parse_mount_options()
173 opts->ptmxmode = DEVPTS_DEFAULT_PTMX_MODE; in parse_mount_options()
174 opts->max = NR_UNIX98_PTY_MAX; in parse_mount_options()
178 opts->newinstance = 0; in parse_mount_options()
196 opts->uid = uid; in parse_mount_options()
[all …]
/linux-4.4.14/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.4.14/fs/fat/
Dinode.c838 struct fat_mount_options *opts = &sbi->options; in fat_show_options() local
839 int isvfat = opts->isvfat; in fat_show_options()
841 if (!uid_eq(opts->fs_uid, GLOBAL_ROOT_UID)) in fat_show_options()
843 from_kuid_munged(&init_user_ns, opts->fs_uid)); in fat_show_options()
844 if (!gid_eq(opts->fs_gid, GLOBAL_ROOT_GID)) in fat_show_options()
846 from_kgid_munged(&init_user_ns, opts->fs_gid)); in fat_show_options()
847 seq_printf(m, ",fmask=%04o", opts->fs_fmask); in fat_show_options()
848 seq_printf(m, ",dmask=%04o", opts->fs_dmask); in fat_show_options()
849 if (opts->allow_utime) in fat_show_options()
850 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.4.14/drivers/usb/gadget/legacy/
Dmass_storage.c121 struct fsg_opts *opts; in msg_do_config() local
129 opts = fsg_opts_from_func_inst(fi_msg); in msg_do_config()
160 struct fsg_opts *opts; in msg_bind() local
169 opts = fsg_opts_from_func_inst(fi_msg); in msg_bind()
171 opts->no_configfs = true; in msg_bind()
172 status = fsg_common_set_num_buffers(opts->common, fsg_num_buffers); in msg_bind()
176 fsg_common_set_ops(opts->common, &ops); in msg_bind()
178 status = fsg_common_set_cdev(opts->common, cdev, config.can_stall); in msg_bind()
182 fsg_common_set_sysfs(opts->common, true); in msg_bind()
183 status = fsg_common_create_luns(opts->common, &config); in msg_bind()
[all …]
Dacm_ms.c112 struct fsg_opts *opts; in acm_ms_do_config() local
120 opts = fsg_opts_from_func_inst(fi_msg); in acm_ms_do_config()
162 struct fsg_opts *opts; in acm_ms_bind() local
178 opts = fsg_opts_from_func_inst(fi_msg); in acm_ms_bind()
180 opts->no_configfs = true; in acm_ms_bind()
181 status = fsg_common_set_num_buffers(opts->common, fsg_num_buffers); in acm_ms_bind()
185 status = fsg_common_set_cdev(opts->common, cdev, config.can_stall); in acm_ms_bind()
189 fsg_common_set_sysfs(opts->common, true); in acm_ms_bind()
190 status = fsg_common_create_luns(opts->common, &config); in acm_ms_bind()
194 fsg_common_set_inquiry_string(opts->common, config.vendor_name, in acm_ms_bind()
[all …]
Dprinter.c145 struct f_printer_opts *opts; in printer_bind() local
159 opts = container_of(fi_printer, struct f_printer_opts, func_inst); in printer_bind()
160 opts->minor = 0; in printer_bind()
161 memcpy(opts->pnp_string, pnp_string, PNP_STRING_LEN); in printer_bind()
162 opts->q_len = QLEN; in printer_bind()
Dg_ffs.c183 struct f_fs_opts *opts; in gfs_init() local
218 opts = to_f_fs_opts(fi_ffs[i]); in gfs_init()
220 ret = ffs_single_dev(opts->dev); in gfs_init()
222 ret = ffs_name_dev(opts->dev, func_names[i]); in gfs_init()
225 opts->dev->ffs_ready_callback = functionfs_ready_callback; in gfs_init()
226 opts->dev->ffs_closed_callback = functionfs_closed_callback; in gfs_init()
227 opts->dev->ffs_acquire_dev_callback = functionfs_acquire_dev; in gfs_init()
228 opts->dev->ffs_release_dev_callback = functionfs_release_dev; in gfs_init()
229 opts->no_configfs = true; in gfs_init()
Dinode.c1964 gadgetfs_fill_super (struct super_block *sb, void *opts, int silent) in gadgetfs_fill_super() argument
2022 const char *path, void *opts) in gadgetfs_mount() argument
2024 return mount_single (t, flags, opts, gadgetfs_fill_super); in gadgetfs_mount()
/linux-4.4.14/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.4.14/net/9p/
Dtrans_rdma.c170 static int parse_opts(char *params, struct p9_rdma_opts *opts) in parse_opts() argument
177 opts->port = P9_PORT; in parse_opts()
178 opts->sq_depth = P9_RDMA_SQ_DEPTH; in parse_opts()
179 opts->rq_depth = P9_RDMA_RQ_DEPTH; in parse_opts()
180 opts->timeout = P9_RDMA_TIMEOUT; in parse_opts()
181 opts->privport = 0; in parse_opts()
210 opts->port = option; in parse_opts()
213 opts->sq_depth = option; in parse_opts()
216 opts->rq_depth = option; in parse_opts()
219 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.4.14/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.4.14/drivers/staging/vt6655/
Ddevice_main.c171 struct vnt_options *opts = &priv->opts; in device_get_options() local
173 opts->rx_descs0 = RX_DESC_DEF0; in device_get_options()
174 opts->rx_descs1 = RX_DESC_DEF1; in device_get_options()
175 opts->tx_descs[0] = TX_DESC_DEF0; in device_get_options()
176 opts->tx_descs[1] = TX_DESC_DEF1; in device_get_options()
177 opts->int_works = INT_WORKS_DEF; in device_get_options()
179 opts->short_retry = SHORT_RETRY_DEF; in device_get_options()
180 opts->long_retry = LONG_RETRY_DEF; in device_get_options()
181 opts->bbp_type = BBP_TYPE_DEF; in device_get_options()
187 priv->byShortRetryLimit = priv->opts.short_retry; in device_set_options()
[all …]
Ddevice.h88 #define AVAIL_TD(p, q) ((p)->opts.tx_descs[(q)] - ((p)->iTDUsed[(q)]))
162 struct vnt_options opts; member
Dcard.c526 for (uu = 0; uu < priv->opts.tx_descs[0]; uu++) { in CARDvSafeResetTx()
531 for (uu = 0; uu < priv->opts.tx_descs[1]; uu++) { in CARDvSafeResetTx()
574 for (uu = 0; uu < priv->opts.rx_descs0; uu++) { in CARDvSafeResetRx()
582 for (uu = 0; uu < priv->opts.rx_descs1; uu++) { in CARDvSafeResetRx()
/linux-4.4.14/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.4.14/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,
310 t->opts &= ~TIMER_OPTS_STATE_MASK; in davinci_shutdown()
311 t->opts |= TIMER_OPTS_DISABLED; in davinci_shutdown()
319 t->opts &= ~TIMER_OPTS_STATE_MASK; in davinci_set_oneshot()
320 t->opts |= TIMER_OPTS_ONESHOT; in davinci_set_oneshot()
[all …]
/linux-4.4.14/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.4.14/fs/debugfs/
Dinode.c71 static int debugfs_parse_options(char *data, struct debugfs_mount_opts *opts) in debugfs_parse_options() argument
80 opts->mode = DEBUGFS_DEFAULT_MODE; in debugfs_parse_options()
94 opts->uid = uid; in debugfs_parse_options()
102 opts->gid = gid; in debugfs_parse_options()
107 opts->mode = option & S_IALLUGO; in debugfs_parse_options()
123 struct debugfs_mount_opts *opts = &fsi->mount_opts; in debugfs_apply_options() local
126 inode->i_mode |= opts->mode; in debugfs_apply_options()
128 inode->i_uid = opts->uid; in debugfs_apply_options()
129 inode->i_gid = opts->gid; in debugfs_apply_options()
153 struct debugfs_mount_opts *opts = &fsi->mount_opts; in debugfs_show_options() local
[all …]
/linux-4.4.14/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()
526 unsigned long opts = *IXP4XX_OSRT1 & IXP4XX_OST_RELOAD_MASK; in ixp4xx_shutdown() local
529 opts &= ~IXP4XX_OST_ENABLE; in ixp4xx_shutdown()
530 *IXP4XX_OSRT1 = osrt | opts; in ixp4xx_shutdown()
536 unsigned long opts = IXP4XX_OST_ENABLE | IXP4XX_OST_ONE_SHOT; in ixp4xx_set_oneshot() local
540 *IXP4XX_OSRT1 = osrt | opts; in ixp4xx_set_oneshot()
546 unsigned long opts = IXP4XX_OST_ENABLE; in ixp4xx_set_periodic() local
549 *IXP4XX_OSRT1 = osrt | opts; in ixp4xx_set_periodic()
555 unsigned long opts = *IXP4XX_OSRT1 & IXP4XX_OST_RELOAD_MASK; in ixp4xx_resume() local
[all …]
/linux-4.4.14/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.4.14/tools/perf/tests/
Dbpf.c45 struct record_opts opts = { in do_test() local
77 opts.target.tid = opts.target.pid = pid; in do_test()
86 err = perf_evlist__create_maps(evlist, &opts.target); in do_test()
95 perf_evlist__config(evlist, &opts); in do_test()
104 err = perf_evlist__mmap(evlist, opts.mmap_pages, false); in do_test()
Dopenat-syscall-tp-fields.c11 struct record_opts opts = { in test__syscall_openat_tp_fields() local
41 err = perf_evlist__create_maps(evlist, &opts.target); in test__syscall_openat_tp_fields()
47 perf_evsel__config(evsel, &opts); in test__syscall_openat_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()
Dswitch-tracking.c312 struct record_opts opts = { in test__switch_tracking() local
420 perf_evlist__config(evlist, &opts); in test__switch_tracking()
Dcode-reading.c439 struct record_opts opts = { in do_test_code_reading() local
540 perf_evlist__config(evlist, &opts); in do_test_code_reading()
/linux-4.4.14/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.c863 struct sco_options opts; in sco_sock_getsockopt_old() local
883 opts.mtu = sco_pi(sk)->conn->mtu; in sco_sock_getsockopt_old()
885 BT_DBG("mtu %d", opts.mtu); in sco_sock_getsockopt_old()
887 len = min_t(unsigned int, len, sizeof(opts)); in sco_sock_getsockopt_old()
888 if (copy_to_user(optval, (char *)&opts, len)) in sco_sock_getsockopt_old()
/linux-4.4.14/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.4.14/net/ipv4/
Dtcp_output.c448 struct tcp_out_options *opts) in tcp_options_write() argument
450 u16 options = opts->options; /* mungable copy */ in tcp_options_write()
456 opts->hash_location = (__u8 *)ptr; in tcp_options_write()
460 if (unlikely(opts->mss)) { in tcp_options_write()
463 opts->mss); in tcp_options_write()
479 *ptr++ = htonl(opts->tsval); in tcp_options_write()
480 *ptr++ = htonl(opts->tsecr); in tcp_options_write()
494 opts->ws); in tcp_options_write()
497 if (unlikely(opts->num_sack_blocks)) { in tcp_options_write()
505 (TCPOLEN_SACK_BASE + (opts->num_sack_blocks * in tcp_options_write()
[all …]
/linux-4.4.14/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.4.14/fs/befs/
Dlinuxvfs.c655 parse_options(char *options, struct befs_mount_options *opts) in parse_options() argument
664 opts->uid = GLOBAL_ROOT_UID; in parse_options()
665 opts->gid = GLOBAL_ROOT_GID; in parse_options()
666 opts->use_uid = 0; in parse_options()
667 opts->use_gid = 0; in parse_options()
668 opts->iocharset = NULL; in parse_options()
669 opts->debug = 0; in parse_options()
692 opts->uid = uid; in parse_options()
693 opts->use_uid = 1; in parse_options()
706 opts->gid = gid; in parse_options()
[all …]
/linux-4.4.14/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.c198 struct nlattr *opts; in codel_dump() local
200 opts = nla_nest_start(skb, TCA_OPTIONS); in codel_dump()
201 if (opts == NULL) in codel_dump()
217 return nla_nest_end(skb, opts); in codel_dump()
220 nla_nest_cancel(skb, opts); in codel_dump()
Dsch_red.c261 struct nlattr *opts = NULL; in red_dump() local
273 opts = nla_nest_start(skb, TCA_OPTIONS); in red_dump()
274 if (opts == NULL) in red_dump()
279 return nla_nest_end(skb, opts); in red_dump()
282 nla_nest_cancel(skb, opts); in red_dump()
Dsch_pie.c464 struct nlattr *opts; in pie_dump() local
466 opts = nla_nest_start(skb, TCA_OPTIONS); in pie_dump()
467 if (opts == NULL) in pie_dump()
482 return nla_nest_end(skb, opts); in pie_dump()
485 nla_nest_cancel(skb, opts); in pie_dump()
Dsch_choke.c511 struct nlattr *opts = NULL; in choke_dump() local
522 opts = nla_nest_start(skb, TCA_OPTIONS); in choke_dump()
523 if (opts == NULL) in choke_dump()
529 return nla_nest_end(skb, opts); in choke_dump()
532 nla_nest_cancel(skb, opts); in choke_dump()
Dsch_gred.c525 struct nlattr *parms, *opts = NULL; in gred_dump() local
535 opts = nla_nest_start(skb, TCA_OPTIONS); in gred_dump()
536 if (opts == NULL) in gred_dump()
602 return nla_nest_end(skb, opts); in gred_dump()
605 nla_nest_cancel(skb, opts); in gred_dump()
Dsch_sfb.c553 struct nlattr *opts; in sfb_dump() local
567 opts = nla_nest_start(skb, TCA_OPTIONS); in sfb_dump()
568 if (opts == NULL) in sfb_dump()
572 return nla_nest_end(skb, opts); in sfb_dump()
575 nla_nest_cancel(skb, opts); in sfb_dump()
Dsch_hhf.c669 struct nlattr *opts; in hhf_dump() local
671 opts = nla_nest_start(skb, TCA_OPTIONS); in hhf_dump()
672 if (opts == NULL) in hhf_dump()
686 return nla_nest_end(skb, opts); in hhf_dump()
Dsch_fq_codel.c463 struct nlattr *opts; in fq_codel_dump() local
465 opts = nla_nest_start(skb, TCA_OPTIONS); in fq_codel_dump()
466 if (opts == NULL) in fq_codel_dump()
488 return nla_nest_end(skb, opts); in fq_codel_dump()
Dsch_fq.c790 struct nlattr *opts; in fq_dump() local
792 opts = nla_nest_start(skb, TCA_OPTIONS); in fq_dump()
793 if (opts == NULL) in fq_dump()
810 return nla_nest_end(skb, opts); in fq_dump()
/linux-4.4.14/kernel/
Dcgroup.c1618 static int parse_cgroupfs_options(char *data, struct cgroup_sb_opts *opts) in parse_cgroupfs_options() argument
1631 memset(opts, 0, sizeof(*opts)); in parse_cgroupfs_options()
1640 opts->none = true; in parse_cgroupfs_options()
1651 opts->flags |= CGRP_ROOT_SANE_BEHAVIOR; in parse_cgroupfs_options()
1655 opts->flags |= CGRP_ROOT_NOPREFIX; in parse_cgroupfs_options()
1659 opts->cpuset_clone_children = true; in parse_cgroupfs_options()
1663 opts->flags |= CGRP_ROOT_XATTR; in parse_cgroupfs_options()
1668 if (opts->release_agent) in parse_cgroupfs_options()
1670 opts->release_agent = in parse_cgroupfs_options()
1672 if (!opts->release_agent) in parse_cgroupfs_options()
[all …]
/linux-4.4.14/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.4.14/scripts/package/
Dbuildtar128 opts=
130 opts="--owner=root --group=root"
132 tar cf - -C "$tmpdir" boot/ lib/ $opts | ${compress} > "${tarball}${file_ext}"
/linux-4.4.14/include/linux/
Dsecurity.h161 static inline void security_init_mnt_opts(struct security_mnt_opts *opts) in security_init_mnt_opts() argument
163 opts->mnt_opts = NULL; in security_init_mnt_opts()
164 opts->mnt_opts_flags = NULL; in security_init_mnt_opts()
165 opts->num_mnt_opts = 0; in security_init_mnt_opts()
168 static inline void security_free_mnt_opts(struct security_mnt_opts *opts) in security_free_mnt_opts() argument
171 if (opts->mnt_opts) in security_free_mnt_opts()
172 for (i = 0; i < opts->num_mnt_opts; i++) in security_free_mnt_opts()
173 kfree(opts->mnt_opts[i]); in security_free_mnt_opts()
174 kfree(opts->mnt_opts); in security_free_mnt_opts()
175 opts->mnt_opts = NULL; in security_free_mnt_opts()
[all …]
Dlsm_hooks.h1348 struct security_mnt_opts *opts,
1353 int (*sb_parse_opts_str)(char *options, struct security_mnt_opts *opts);
Dof.h254 const char **opts);
427 const char **opts) in of_find_node_opts_by_path() argument
/linux-4.4.14/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.4.14/tools/usb/usbip/src/
Dusbip_detach.c86 static const struct option opts[] = { in usbip_detach() local
94 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.4.14/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.4.14/security/selinux/
Dhooks.c503 struct security_mnt_opts *opts) in selinux_get_mnt_opts() argument
511 security_init_mnt_opts(opts); in selinux_get_mnt_opts()
526 opts->num_mnt_opts++; in selinux_get_mnt_opts()
531 opts->num_mnt_opts++; in selinux_get_mnt_opts()
533 opts->mnt_opts = kcalloc(opts->num_mnt_opts, sizeof(char *), GFP_ATOMIC); in selinux_get_mnt_opts()
534 if (!opts->mnt_opts) { in selinux_get_mnt_opts()
539 opts->mnt_opts_flags = kcalloc(opts->num_mnt_opts, sizeof(int), GFP_ATOMIC); in selinux_get_mnt_opts()
540 if (!opts->mnt_opts_flags) { in selinux_get_mnt_opts()
550 opts->mnt_opts[i] = context; in selinux_get_mnt_opts()
551 opts->mnt_opts_flags[i++] = FSCONTEXT_MNT; in selinux_get_mnt_opts()
[all …]
/linux-4.4.14/net/tipc/
Dudp_media.c287 struct nlattr *opts[TIPC_NLA_UDP_MAX + 1]; in parse_options() local
292 if (nla_parse_nested(opts, TIPC_NLA_UDP_MAX, in parse_options()
296 if (opts[TIPC_NLA_UDP_LOCAL] && opts[TIPC_NLA_UDP_REMOTE]) { in parse_options()
297 sa_local = nla_data(opts[TIPC_NLA_UDP_LOCAL]); in parse_options()
298 sa_remote = nla_data(opts[TIPC_NLA_UDP_REMOTE]); in parse_options()
/linux-4.4.14/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.4.14/tools/power/acpi/common/
Dgetopt.c120 int acpi_getopt(int argc, char **argv, char *opts) in acpi_getopt() argument
143 (opts_ptr = strchr(opts, current_char)) == NULL) { in acpi_getopt()
/linux-4.4.14/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.h277 __le32 opts; member
380 u32 opts);
Dlibahci.c1204 u32 opts) in ahci_fill_cmd_slot() argument
1210 pp->cmd_slot[tag].opts = cpu_to_le32(opts); in ahci_fill_cmd_slot()
1545 u32 opts; in ahci_qc_prep() local
1568 opts = cmd_fis_len | n_elem << 16 | (qc->dev->link->pmp << 12); in ahci_qc_prep()
1570 opts |= AHCI_CMD_WRITE; in ahci_qc_prep()
1572 opts |= AHCI_CMD_ATAPI | AHCI_CMD_PREFETCH; in ahci_qc_prep()
1574 ahci_fill_cmd_slot(pp, qc->tag, opts); in ahci_qc_prep()
/linux-4.4.14/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.4.14/security/smack/
Dsmack_lsm.c627 struct security_mnt_opts *opts) in smack_parse_opts_str() argument
639 opts->num_mnt_opts = 0; in smack_parse_opts_str()
695 opts->mnt_opts = kcalloc(NUM_SMK_MNT_OPTS, sizeof(char *), GFP_ATOMIC); in smack_parse_opts_str()
696 if (!opts->mnt_opts) in smack_parse_opts_str()
699 opts->mnt_opts_flags = kcalloc(NUM_SMK_MNT_OPTS, sizeof(int), in smack_parse_opts_str()
701 if (!opts->mnt_opts_flags) { in smack_parse_opts_str()
702 kfree(opts->mnt_opts); in smack_parse_opts_str()
707 opts->mnt_opts[num_mnt_opts] = fsdefault; in smack_parse_opts_str()
708 opts->mnt_opts_flags[num_mnt_opts++] = FSDEFAULT_MNT; in smack_parse_opts_str()
711 opts->mnt_opts[num_mnt_opts] = fsfloor; in smack_parse_opts_str()
[all …]
/linux-4.4.14/tools/perf/arch/x86/tests/
Dperf-time-to-tsc.c40 struct record_opts opts = { in test__perf_time_to_tsc() local
75 perf_evlist__config(evlist, &opts); in test__perf_time_to_tsc()
/linux-4.4.14/include/uapi/linux/netfilter_ipv6/
Dip6t_opts.h12 __u16 opts[IP6T_OPTS_OPTSNR]; /* opts */ member
/linux-4.4.14/drivers/target/
Dtarget_core_rd.c571 char *orig, *ptr, *opts; in rd_set_configfs_dev_params() local
575 opts = kstrdup(page, GFP_KERNEL); in rd_set_configfs_dev_params()
576 if (!opts) in rd_set_configfs_dev_params()
579 orig = opts; in rd_set_configfs_dev_params()
581 while ((ptr = strsep(&opts, ",\n")) != NULL) { in rd_set_configfs_dev_params()
Dtarget_core_file.c618 char *orig, *ptr, *arg_p, *opts; in fd_set_configfs_dev_params() local
622 opts = kstrdup(page, GFP_KERNEL); in fd_set_configfs_dev_params()
623 if (!opts) in fd_set_configfs_dev_params()
626 orig = opts; in fd_set_configfs_dev_params()
628 while ((ptr = strsep(&opts, ",\n")) != NULL) { in fd_set_configfs_dev_params()
Dtarget_core_iblock.c500 char *orig, *ptr, *arg_p, *opts; in iblock_set_configfs_dev_params() local
505 opts = kstrdup(page, GFP_KERNEL); in iblock_set_configfs_dev_params()
506 if (!opts) in iblock_set_configfs_dev_params()
509 orig = opts; in iblock_set_configfs_dev_params()
511 while ((ptr = strsep(&opts, ",\n")) != NULL) { in iblock_set_configfs_dev_params()
Dtarget_core_pscsi.c736 char *orig, *ptr, *opts; in pscsi_set_configfs_dev_params() local
740 opts = kstrdup(page, GFP_KERNEL); in pscsi_set_configfs_dev_params()
741 if (!opts) in pscsi_set_configfs_dev_params()
744 orig = opts; in pscsi_set_configfs_dev_params()
746 while ((ptr = strsep(&opts, ",\n")) != NULL) { in pscsi_set_configfs_dev_params()
Dtarget_core_user.c1002 char *orig, *ptr, *opts, *arg_p; in tcmu_set_configfs_dev_params() local
1007 opts = kstrdup(page, GFP_KERNEL); in tcmu_set_configfs_dev_params()
1008 if (!opts) in tcmu_set_configfs_dev_params()
1011 orig = opts; in tcmu_set_configfs_dev_params()
1013 while ((ptr = strsep(&opts, ",\n")) != NULL) { in tcmu_set_configfs_dev_params()
Dtarget_core_configfs.c1486 char *orig, *ptr, *opts; in target_pr_res_aptpl_metadata_store() local
1506 opts = kstrdup(page, GFP_KERNEL); in target_pr_res_aptpl_metadata_store()
1507 if (!opts) in target_pr_res_aptpl_metadata_store()
1510 orig = opts; in target_pr_res_aptpl_metadata_store()
1511 while ((ptr = strsep(&opts, ",\n")) != NULL) { in target_pr_res_aptpl_metadata_store()
/linux-4.4.14/drivers/block/mtip32xx/
Dmtip32xx.h226 unsigned char opts; member
280 unsigned int opts; member
Dmtip32xx.c1096 u32 opts, in mtip_exec_internal_command() argument
1154 int_cmd->command_header->opts = in mtip_exec_internal_command()
1155 __force_bit2int cpu_to_le32(opts | fis_len); in mtip_exec_internal_command()
1166 int_cmd->command_header->opts |= in mtip_exec_internal_command()
1355 fis.opts = 1 << 7; in mtip_get_identify()
1445 fis.opts = 1 << 7; in mtip_standby_immediate()
1487 fis.opts = 1 << 7; in mtip_read_log_page()
1524 fis.opts = 1 << 7; in mtip_get_smart_data()
1654 fis.opts = 1 << 7; in mtip_send_trim()
1802 fis.opts = 1 << 7; in exec_drive_task()
[all …]
/linux-4.4.14/fs/ocfs2/
Dsuper.c1519 unsigned long opts = osb->s_mount_opt; in ocfs2_show_options() local
1522 if (opts & (OCFS2_MOUNT_HB_LOCAL | OCFS2_MOUNT_HB_GLOBAL)) { in ocfs2_show_options()
1524 if (opts & OCFS2_MOUNT_HB_LOCAL) in ocfs2_show_options()
1531 if (opts & OCFS2_MOUNT_NOINTR) in ocfs2_show_options()
1534 if (opts & OCFS2_MOUNT_DATA_WRITEBACK) in ocfs2_show_options()
1539 if (opts & OCFS2_MOUNT_BARRIER) in ocfs2_show_options()
1542 if (opts & OCFS2_MOUNT_ERRORS_PANIC) in ocfs2_show_options()
1544 else if (opts & OCFS2_MOUNT_ERRORS_CONT) in ocfs2_show_options()
1562 if (opts & OCFS2_MOUNT_LOCALFLOCKS) in ocfs2_show_options()
1568 if (opts & OCFS2_MOUNT_USRQUOTA) in ocfs2_show_options()
[all …]
/linux-4.4.14/kernel/trace/
Dtrace_nop.c31 .opts = nop_opts
Dtrace.c79 .opts = dummy_tracer_opt
1264 if (!type->flags->opts) in register_tracer()
1265 type->flags->opts = dummy_tracer_opt; in register_tracer()
3484 trace_opts = tr->current_trace->flags->opts; in tracing_trace_options_show()
3506 struct tracer_opt *opts, int neg) in __set_tracer_option() argument
3511 ret = trace->set_flag(tr, tracer_flags->val, opts->bit, !neg); in __set_tracer_option()
3516 tracer_flags->val &= ~opts->bit; in __set_tracer_option()
3518 tracer_flags->val |= opts->bit; in __set_tracer_option()
3527 struct tracer_opt *opts = NULL; in set_tracer_option() local
3530 for (i = 0; tracer_flags->opts[i].name; i++) { in set_tracer_option()
[all …]
Dtrace_functions.c206 .opts = func_opts
Dtrace.h347 struct tracer_opt *opts; member
Dtrace_functions_graph.c98 .opts = trace_opts
Dblktrace.c56 .opts = blk_tracer_opts,
/linux-4.4.14/Documentation/target/
Dtcm_mod_builder.py669 (opts, args) = parser.parse_args()
673 if not opts.__dict__[m]:
680 main(str(opts.modname), opts.protoident)
/linux-4.4.14/include/linux/mtd/
Dnand.h748 #define LEGACY_ID_NAND(nm, devid, chipsz, erasesz, opts) \ argument
750 .chipsize = (chipsz), .erasesize = (erasesz), .options = (opts) }
762 #define EXTENDED_ID_NAND(nm, devid, chipsz, opts) \ argument
764 .options = (opts) }
/linux-4.4.14/drivers/scsi/
Dscsi_debug.c4097 module_param_named(opts, scsi_debug_opts, int, S_IRUGO | S_IWUSR);
4144 MODULE_PARM_DESC(opts, "1->noise, 2->medium_err, 4->timeout, 8->recovered_err... (def=0)");
4174 int opts; in scsi_debug_write_info() local
4181 if (1 != sscanf(arr, "%d", &opts)) in scsi_debug_write_info()
4183 scsi_debug_opts = opts; in scsi_debug_write_info()
4306 int opts; in opts_store() local
4311 if (1 == sscanf(&work[2], "%x", &opts)) in opts_store()
4314 if (1 == sscanf(work, "%d", &opts)) in opts_store()
4320 scsi_debug_opts = opts; in opts_store()
4321 if (SCSI_DEBUG_OPT_RECOVERED_ERR & opts) in opts_store()
[all …]
/linux-4.4.14/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.4.14/net/openvswitch/
Dflow_netlink.c498 struct vxlan_metadata opts; in vxlan_tun_opt_from_nlattr() local
500 BUILD_BUG_ON(sizeof(opts) > sizeof(match->key->tun_opts)); in vxlan_tun_opt_from_nlattr()
502 memset(&opts, 0, sizeof(opts)); in vxlan_tun_opt_from_nlattr()
522 opts.gbp = nla_get_u32(a); in vxlan_tun_opt_from_nlattr()
537 SW_FLOW_KEY_PUT(match, tun_opts_len, sizeof(opts), false); in vxlan_tun_opt_from_nlattr()
541 opt_key_offset = TUN_METADATA_OFFSET(sizeof(opts)); in vxlan_tun_opt_from_nlattr()
542 SW_FLOW_KEY_MEMCPY_OFFSET(match, opt_key_offset, &opts, sizeof(opts), in vxlan_tun_opt_from_nlattr()
703 const struct vxlan_metadata *opts = tun_opts; in vxlan_opt_to_nlattr() local
710 if (nla_put_u32(skb, OVS_VXLAN_EXT_GBP, opts->gbp) < 0) in vxlan_opt_to_nlattr()
1429 const void *opts = NULL; in __ovs_nla_put_key() local
[all …]
/linux-4.4.14/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.4.14/drivers/acpi/acpica/
Dacapps.h96 int acpi_getopt(int argc, char **argv, char *opts);
/linux-4.4.14/tools/perf/scripts/python/
Dcall-graph-from-postgresql.py301 opts = dbname.split() variable
302 for opt in opts:
/linux-4.4.14/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.4.14/drivers/net/ethernet/realtek/
Dr8169.c6877 u32 *opts) in rtl8169_xmit_frags() argument
6905 status = opts[0] | len | in rtl8169_xmit_frags()
6909 txd->opts2 = cpu_to_le32(opts[1]); in rtl8169_xmit_frags()
7009 struct sk_buff *skb, u32 *opts) in rtl8169_tso_csum_v1() argument
7014 opts[0] |= TD_LSO; in rtl8169_tso_csum_v1()
7015 opts[0] |= min(mss, TD_MSS_MAX) << TD0_MSS_SHIFT; in rtl8169_tso_csum_v1()
7020 opts[0] |= TD0_IP_CS | TD0_TCP_CS; in rtl8169_tso_csum_v1()
7022 opts[0] |= TD0_IP_CS | TD0_UDP_CS; in rtl8169_tso_csum_v1()
7031 struct sk_buff *skb, u32 *opts) in rtl8169_tso_csum_v2() argument
7046 opts[0] |= TD1_GTSENV4; in rtl8169_tso_csum_v2()
[all …]
/linux-4.4.14/fs/hpfs/
Dsuper.c320 static int parse_opts(char *opts, kuid_t *uid, kgid_t *gid, umode_t *umask, in parse_opts() argument
327 if (!opts) in parse_opts()
332 while ((p = strsep(&opts, ",")) != NULL) { in parse_opts()
/linux-4.4.14/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.4.14/drivers/net/
Dgeneve.c849 u8 *opts = NULL; in geneve_xmit_skb() local
854 opts = ip_tunnel_info_opts(info); in geneve_xmit_skb()
858 info->options_len, opts, udp_csum, xnet); in geneve_xmit_skb()
934 u8 *opts = NULL; in geneve6_xmit_skb() local
939 opts = ip_tunnel_info_opts(info); in geneve6_xmit_skb()
943 info->options_len, opts, in geneve6_xmit_skb()
/linux-4.4.14/drivers/md/
Ddm-crypt.c78 const char *opts);
360 const char *opts) in crypt_iv_essiv_ctr() argument
367 if (!opts) { in crypt_iv_essiv_ctr()
373 hash_tfm = crypto_alloc_hash(opts, 0, CRYPTO_ALG_ASYNC); in crypt_iv_essiv_ctr()
420 const char *opts) in crypt_iv_benbi_ctr() argument
481 const char *opts) in crypt_iv_lmk_ctr() argument
630 const char *opts) in crypt_iv_tcw_ctr() argument
/linux-4.4.14/arch/sh/kernel/cpu/
Dinit.c48 static int x##_setup(char *opts) \
/linux-4.4.14/drivers/net/ethernet/via/
Dvia-velocity.c479 static void velocity_get_options(struct velocity_opt *opts, int index, in velocity_get_options() argument
483 …velocity_set_int_opt(&opts->rx_thresh, rx_thresh[index], RX_THRESH_MIN, RX_THRESH_MAX, RX_THRESH_D… in velocity_get_options()
484 …velocity_set_int_opt(&opts->DMA_length, DMA_length[index], DMA_LENGTH_MIN, DMA_LENGTH_MAX, DMA_LEN… in velocity_get_options()
485 …velocity_set_int_opt(&opts->numrx, RxDescriptors[index], RX_DESC_MIN, RX_DESC_MAX, RX_DESC_DEF, "R… in velocity_get_options()
486 …velocity_set_int_opt(&opts->numtx, TxDescriptors[index], TX_DESC_MIN, TX_DESC_MAX, TX_DESC_DEF, "T… in velocity_get_options()
488 …velocity_set_int_opt(&opts->flow_cntl, flow_control[index], FLOW_CNTL_MIN, FLOW_CNTL_MAX, FLOW_CNT… in velocity_get_options()
489 …velocity_set_bool_opt(&opts->flags, IP_byte_align[index], IP_ALIG_DEF, VELOCITY_FLAGS_IP_ALIGN, "I… in velocity_get_options()
490 …velocity_set_int_opt((int *) &opts->spd_dpx, speed_duplex[index], MED_LNK_MIN, MED_LNK_MAX, MED_LN… in velocity_get_options()
491 …velocity_set_int_opt(&opts->wol_opts, wol_opts[index], WOL_OPT_MIN, WOL_OPT_MAX, WOL_OPT_DEF, "Wak… in velocity_get_options()
492 opts->numrx = (opts->numrx & ~3); in velocity_get_options()
/linux-4.4.14/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.4.14/drivers/net/ethernet/hisilicon/hns/
Dhnae.h408 int (*set_opts)(struct hnae_handle *handle, int type, void *opts);
409 int (*get_opts)(struct hnae_handle *handle, int type, void **opts);
/linux-4.4.14/drivers/block/
Drbd.c351 struct rbd_options *opts; member
3163 struct ceph_options *opts = osdc->client->options; in rbd_obj_watch_request_helper() local
3190 ret = rbd_obj_request_wait_timeout(obj_request, opts->mount_timeout); in rbd_obj_watch_request_helper()
3747 rbd_dev->tag_set.queue_depth = rbd_dev->opts->queue_depth; in rbd_init_disk()
4044 bool need_put = !!rbd_dev->opts; in rbd_dev_release()
4048 kfree(rbd_dev->opts); in rbd_dev_release()
4062 struct rbd_options *opts) in rbd_dev_create() argument
4083 rbd_dev->opts = opts; in rbd_dev_create()
4097 if (rbd_dev->opts) in rbd_dev_create()
4868 struct rbd_options **opts, in rbd_add_parse_args() argument
[all …]
/linux-4.4.14/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.4.14/fs/btrfs/
Dsuper.c774 char *device_name, *opts, *orig, *p; in btrfs_parse_early_options() local
785 opts = kstrdup(options, GFP_KERNEL); in btrfs_parse_early_options()
786 if (!opts) in btrfs_parse_early_options()
788 orig = opts; in btrfs_parse_early_options()
790 while ((p = strsep(&opts, ",")) != NULL) { in btrfs_parse_early_options()
/linux-4.4.14/security/
Dsecurity.c322 struct security_mnt_opts *opts, in security_sb_set_mnt_opts() argument
327 opts->num_mnt_opts ? -EOPNOTSUPP : 0, sb, in security_sb_set_mnt_opts()
328 opts, kern_flags, set_kern_flags); in security_sb_set_mnt_opts()
339 int security_sb_parse_opts_str(char *options, struct security_mnt_opts *opts) in security_sb_parse_opts_str() argument
341 return call_int_hook(sb_parse_opts_str, 0, options, opts); in security_sb_parse_opts_str()
/linux-4.4.14/tools/vm/
Dpage-types.c1085 static const struct option opts[] = { variable
1108 "rp:f:a:b:d:lLNXxh", opts, NULL)) != -1) { in main()
Dslabinfo.c1324 struct option opts[] = { variable
1360 opts, NULL)) != -1) in main()
/linux-4.4.14/drivers/of/
Dbase.c771 struct device_node *of_find_node_opts_by_path(const char *path, const char **opts) in of_find_node_opts_by_path() argument
778 if (opts) in of_find_node_opts_by_path()
779 *opts = separator ? separator + 1 : NULL; in of_find_node_opts_by_path()
/linux-4.4.14/drivers/net/ethernet/dec/tulip/
Dde2104x.c263 u8 opts; member
1859 switch(ib->opts & MediaBlockMask) { in de21041_get_srom_info()
1891 bufp += sizeof (ib->opts); in de21041_get_srom_info()
1893 if (ib->opts & MediaCustomCSRs) { in de21041_get_srom_info()
/linux-4.4.14/drivers/staging/slicoss/
Dslicoss.c756 u32 opts = adapter->macopts; in slic_mac_filter() local
758 if (opts & MAC_PROMISC) in slic_mac_filter()
762 if (opts & MAC_BCAST) { in slic_mac_filter()
771 if (opts & MAC_ALLMCAST) { in slic_mac_filter()
776 if (opts & MAC_MCAST) { in slic_mac_filter()
794 if (opts & MAC_DIRECTED) { in slic_mac_filter()
/linux-4.4.14/drivers/misc/
Dpti.c715 static int pti_console_setup(struct console *c, char *opts) in pti_console_setup() argument
/linux-4.4.14/drivers/scsi/qla2xxx/
Dqla_iocb.c1897 uint16_t opts; in qla2x00_login_iocb() local
1902 opts = lio->u.logio.flags & SRB_LOGIN_COND_PLOGI ? BIT_0 : 0; in qla2x00_login_iocb()
1903 opts |= lio->u.logio.flags & SRB_LOGIN_SKIP_PRLI ? BIT_1 : 0; in qla2x00_login_iocb()
1906 mbx->mb10 = cpu_to_le16(opts); in qla2x00_login_iocb()
1908 mbx->mb1 = cpu_to_le16((sp->fcport->loop_id << 8) | opts); in qla2x00_login_iocb()
Dqla_os.c4040 uint8_t opts; in qla2x00_relogin() local
4042 opts = 0; in qla2x00_relogin()
4045 opts |= BIT_1; in qla2x00_relogin()
4048 vha, fcport, opts); in qla2x00_relogin()
Dqla_init.c3959 uint8_t opts; in qla2x00_fabric_dev_login() local
3977 opts = 0; in qla2x00_fabric_dev_login()
3979 opts |= BIT_1; in qla2x00_fabric_dev_login()
3980 rval = qla2x00_get_port_database(vha, fcport, opts); in qla2x00_fabric_dev_login()
/linux-4.4.14/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.4.14/fs/ceph/
Dmds_client.c3493 struct ceph_options *opts = mdsc->fsc->client->options; in wait_requests() local
3502 ceph_timeout_jiffies(opts->mount_timeout)); in wait_requests()
3625 struct ceph_options *opts = mdsc->fsc->client->options; in ceph_mdsc_close_sessions() local
3648 ceph_timeout_jiffies(opts->mount_timeout)); in ceph_mdsc_close_sessions()
/linux-4.4.14/tools/lguest/
Dlguest.c3198 static struct option opts[] = { variable
3273 while ((c = getopt_long(argc, argv, "v", opts, NULL)) != EOF) { in main()
/linux-4.4.14/net/ceph/
Dosd_client.c1586 struct ceph_options *opts = osdc->client->options; in handle_timeout() local
1605 req->r_stamp + opts->osd_keepalive_timeout)) in handle_timeout()