Home
last modified time | relevance | path

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

123456

/drivers/usb/gadget/function/
A Du_ether_configfs.h35 mutex_lock(&opts->lock); \
37 mutex_unlock(&opts->lock); \
48 mutex_lock(&opts->lock); \
49 if (opts->refcnt) { \
70 mutex_lock(&opts->lock); \
83 mutex_lock(&opts->lock); \
84 if (opts->refcnt) { \
105 mutex_lock(&opts->lock); \
119 if (opts->refcnt) { \
158 if (!opts->refcnt) \
[all …]
A Df_uac2.c854 if (FUOUT_EN(opts) || FUIN_EN(opts)) { in setup_headers()
980 if (!opts->p_chmask && !opts->c_chmask) in afunc_validate_opts()
986 else if ((opts->p_ssize < 1) || (opts->p_ssize > 4)) in afunc_validate_opts()
988 else if ((opts->c_ssize < 1) || (opts->c_ssize > 4)) in afunc_validate_opts()
995 else if (opts->p_volume_max <= opts->p_volume_min) in afunc_validate_opts()
997 else if (opts->c_volume_max <= opts->c_volume_min) in afunc_validate_opts()
1004 else if ((opts->p_volume_max - opts->p_volume_min) % opts->p_volume_res) in afunc_validate_opts()
1006 else if ((opts->c_volume_max - opts->c_volume_min) % opts->c_volume_res) in afunc_validate_opts()
2028 memset(opts->name##s, 0x00, sizeof(opts->name##s)); \
2192 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in afunc_alloc_inst()
[all …]
A Df_uac1.c1157 if (FUOUT_EN(opts) || FUIN_EN(opts)) in setup_descriptor()
1183 if (!opts->p_chmask && !opts->c_chmask) { in f_audio_validate_opts()
1192 } else if ((opts->p_ssize < 1) || (opts->p_ssize > 4)) { in f_audio_validate_opts()
1195 } else if ((opts->c_ssize < 1) || (opts->c_ssize > 4)) { in f_audio_validate_opts()
1206 if (opts->p_volume_max <= opts->p_volume_min) { in f_audio_validate_opts()
1209 } else if (opts->c_volume_max <= opts->c_volume_min) { in f_audio_validate_opts()
1220 if ((opts->p_volume_max - opts->p_volume_min) % opts->p_volume_res) { in f_audio_validate_opts()
1223 } else if ((opts->c_volume_max - opts->c_volume_min) % opts->c_volume_res) { in f_audio_validate_opts()
1610 memset(opts->name##s, 0x00, sizeof(opts->name##s)); \
1751 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in f_audio_alloc_inst()
[all …]
A Duvc_configfs.c345 struct f_uvc_opts *opts; in uvcg_default_processing_bm_controls_store() local
356 mutex_lock(&opts->lock); in uvcg_default_processing_bm_controls_store()
357 if (opts->refcnt) { in uvcg_default_processing_bm_controls_store()
400 struct f_uvc_opts *opts; in uvcg_default_processing_bm_controls_show() local
413 mutex_lock(&opts->lock); in uvcg_default_processing_bm_controls_show()
527 if (opts->refcnt) { in uvcg_default_camera_bm_controls_store()
3516 if (opts->refcnt) in uvcg_streaming_class_drop_link()
3691 opts->iad_index = 0; in uvc_func_drop_link()
3693 opts->vs0_index = 0; in uvc_func_drop_link()
3695 opts->vs1_index = 0; in uvc_func_drop_link()
[all …]
A Df_uvc.c661 opts->streaming_interval = clamp(opts->streaming_interval, 1U, 16U); in uvc_function_bind()
663 opts->streaming_maxburst = min(opts->streaming_maxburst, 15U); in uvc_function_bind()
874 kfree(opts); in uvc_free_inst()
886 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in uvc_alloc_inst()
887 if (!opts) in uvc_alloc_inst()
945 opts->fs_control = in uvc_alloc_inst()
955 opts->ss_control = in uvc_alloc_inst()
966 kfree(opts); in uvc_alloc_inst()
978 if (!opts->header) in uvc_free()
980 --opts->refcnt; in uvc_free()
[all …]
A Df_uac1_legacy.c850 opts->name = num; \
886 if (opts->refcnt) \
933 kfree(opts->fn_play); in f_audio_free_inst()
934 if (opts->fn_cap_alloc) in f_audio_free_inst()
935 kfree(opts->fn_cap); in f_audio_free_inst()
937 kfree(opts->fn_cntl); in f_audio_free_inst()
938 kfree(opts); in f_audio_free_inst()
945 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in f_audio_alloc_inst()
946 if (!opts) in f_audio_alloc_inst()
973 --opts->refcnt; in f_audio_free()
[all …]
A Df_sourcesink.c454 opts->refcnt--; in sourcesink_free_func()
909 if (opts->refcnt) { in f_ss_opts_pattern_store()
923 opts->pattern = num; in f_ss_opts_pattern_store()
952 if (opts->refcnt) { in f_ss_opts_isoc_interval_store()
995 if (opts->refcnt) { in f_ss_opts_isoc_maxpacket_store()
1038 if (opts->refcnt) { in f_ss_opts_isoc_mult_store()
1081 if (opts->refcnt) { in f_ss_opts_isoc_maxburst_store()
1124 if (opts->refcnt) { in f_ss_opts_bulk_buflen_store()
1162 if (opts->refcnt) { in f_ss_opts_bulk_qlen_store()
1200 if (opts->refcnt) { in f_ss_opts_iso_qlen_store()
[all …]
A Df_midi.c1193 if (opts->id) { in f_midi_opts_id_show()
1224 kfree(opts->id); in f_midi_opts_id_store()
1225 opts->id = c; in f_midi_opts_id_store()
1266 kfree(opts->id); in f_midi_free_inst()
1267 kfree(opts); in f_midi_free_inst()
1275 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in f_midi_alloc_inst()
1276 if (!opts) in f_midi_alloc_inst()
1284 opts->qlen = 32; in f_midi_alloc_inst()
1287 opts->refcnt = 1; in f_midi_alloc_inst()
1350 if (opts->in_ports > MAX_PORTS || opts->out_ports > MAX_PORTS) { in f_midi_alloc()
[all …]
A Df_ncm.c1260 tmp += opts->reserved1; in ncm_unwrap_ntb()
1263 tmp += opts->reserved2; in ncm_unwrap_ntb()
1625 if (opts->refcnt) { in ncm_opts_max_segment_size_store()
1668 if (opts->bound) in ncm_free_inst()
1673 kfree(opts); in ncm_free_inst()
1683 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in ncm_alloc_inst()
1684 if (!opts) in ncm_alloc_inst()
1686 opts->ncm_os_desc.ext_compat_id = opts->ncm_ext_compat_id; in ncm_alloc_inst()
1693 kfree(opts); in ncm_alloc_inst()
1724 opts->refcnt--; in ncm_free()
[all …]
A Df_rndis.c827 if (opts->bound) in rndis_borrow_net()
831 opts->borrowed_net = opts->bound = true; in rndis_borrow_net()
832 opts->net = net; in rndis_borrow_net()
889 if (opts->bound) in rndis_free_inst()
896 kfree(opts); in rndis_free_inst()
906 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in rndis_alloc_inst()
907 if (!opts) in rndis_alloc_inst()
909 opts->rndis_os_desc.ext_compat_id = opts->rndis_ext_compat_id; in rndis_alloc_inst()
916 kfree(opts); in rndis_alloc_inst()
951 opts->refcnt--; in rndis_free()
[all …]
A Df_subset.c420 if (opts->bound) in geth_free_inst()
423 free_netdev(opts->net); in geth_free_inst()
424 kfree(opts); in geth_free_inst()
431 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in geth_alloc_inst()
432 if (!opts) in geth_alloc_inst()
434 mutex_init(&opts->lock); in geth_alloc_inst()
437 if (IS_ERR(opts->net)) { in geth_alloc_inst()
439 kfree(opts); in geth_alloc_inst()
446 return &opts->func_inst; in geth_alloc_inst()
476 mutex_lock(&opts->lock); in geth_alloc()
[all …]
A Df_midi2.c2225 return f_midi2_opts_uint_show(opts->ep->opts, opts->info.name, \
2233 return f_midi2_opts_uint_store(opts->ep->opts, &opts->info.name,\
2245 return f_midi2_opts_uint_show(opts->ep->opts, opts->info.name, \
2253 return f_midi2_opts_bool_store(opts->ep->opts, &opts->info.name,\
2275 return f_midi2_opts_str_show(opts->ep->opts, opts->info.name, page); in f_midi2_block_opts_name_show()
2283 return f_midi2_opts_str_store(opts->ep->opts, &opts->info.name, 128, in f_midi2_block_opts_name_store()
2412 return f_midi2_opts_uint_show(opts->opts, opts->info.name, \
2420 return f_midi2_opts_uint_store(opts->opts, &opts->info.name, \
2432 return f_midi2_opts_str_show(opts->opts, opts->info.name, page);\
2439 return f_midi2_opts_str_store(opts->opts, &opts->info.name, maxlen,\
[all …]
A Df_hid.c1392 memcpy(page, opts->report_desc, opts->report_desc_length); in f_hid_opts_report_desc_show()
1407 if (opts->refcnt) in f_hid_opts_report_desc_store()
1450 if (opts->refcnt) { in f_hid_opts_interval_store()
1525 kfree(opts); in hidg_free_inst()
1534 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in hidg_alloc_inst()
1535 if (!opts) in hidg_alloc_inst()
1539 opts->interval = 4; in hidg_alloc_inst()
1551 kfree(opts); in hidg_alloc_inst()
1559 kfree(opts); in hidg_alloc_inst()
1580 --opts->refcnt; in hidg_free()
[all …]
A Df_eem.c592 struct f_eem_opts *opts; in eem_free_inst() local
595 if (opts->bound) in eem_free_inst()
598 free_netdev(opts->net); in eem_free_inst()
599 kfree(opts); in eem_free_inst()
604 struct f_eem_opts *opts; in eem_alloc_inst() local
606 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in eem_alloc_inst()
607 if (!opts) in eem_alloc_inst()
609 mutex_init(&opts->lock); in eem_alloc_inst()
614 kfree(opts); in eem_alloc_inst()
632 opts->refcnt--; in eem_free()
[all …]
A Df_printer.c1234 if (!opts->pnp_string) in f_printer_opts_pnp_string_show()
1301 if (opts->refcnt) { in f_printer_opts_q_len_store()
1368 kfree(opts); in gprinter_free_inst()
1377 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in gprinter_alloc_inst()
1378 if (!opts) in gprinter_alloc_inst()
1383 ret = &opts->func_inst; in gprinter_alloc_inst()
1394 kfree(opts); in gprinter_alloc_inst()
1400 if (opts->minor < 0) { in gprinter_alloc_inst()
1402 kfree(opts); in gprinter_alloc_inst()
1424 --opts->refcnt; in gprinter_free()
[all …]
A Df_acm.c731 mutex_lock(&opts->lock); in acm_free_func()
732 opts->instances--; in acm_free_func()
774 mutex_lock(&opts->lock); in acm_alloc_func()
777 opts->instances++; in acm_alloc_func()
840 mutex_lock(&opts->lock); in f_acm_protocol_store()
842 if (opts->instances) { in f_acm_protocol_store()
881 kfree(opts); in acm_free_instance()
889 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in acm_alloc_instance()
890 if (!opts) in acm_alloc_instance()
894 mutex_init(&opts->lock); in acm_alloc_instance()
[all …]
A Df_serial.c308 struct f_serial_opts *opts; in gser_free_inst() local
311 gserial_free_line(opts->port_num); in gser_free_inst()
312 kfree(opts); in gser_free_inst()
317 struct f_serial_opts *opts; in gser_alloc_inst() local
320 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in gser_alloc_inst()
321 if (!opts) in gser_alloc_inst()
325 ret = gserial_alloc_line(&opts->port_num); in gser_alloc_inst()
327 kfree(opts); in gser_alloc_inst()
333 return &opts->func_inst; in gser_alloc_inst()
376 struct f_serial_opts *opts; in gser_alloc() local
[all …]
A Df_loopback.c221 struct f_lb_opts *opts; in lb_free_func() local
225 mutex_lock(&opts->lock); in lb_free_func()
226 opts->refcnt--; in lb_free_func()
476 mutex_lock(&opts->lock); in f_lb_opts_qlen_show()
490 mutex_lock(&opts->lock); in f_lb_opts_qlen_store()
491 if (opts->refcnt) { in f_lb_opts_qlen_store()
500 opts->qlen = num; in f_lb_opts_qlen_store()
514 mutex_lock(&opts->lock); in f_lb_opts_bulk_buflen_show()
528 mutex_lock(&opts->lock); in f_lb_opts_bulk_buflen_store()
529 if (opts->refcnt) { in f_lb_opts_bulk_buflen_store()
[all …]
A Df_ecm.c844 struct f_ecm_opts *opts; in ecm_free_inst() local
847 if (opts->bound) in ecm_free_inst()
850 free_netdev(opts->net); in ecm_free_inst()
851 kfree(opts); in ecm_free_inst()
856 struct f_ecm_opts *opts; in ecm_alloc_inst() local
858 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in ecm_alloc_inst()
859 if (!opts) in ecm_alloc_inst()
861 mutex_init(&opts->lock); in ecm_alloc_inst()
866 kfree(opts); in ecm_alloc_inst()
910 opts->refcnt--; in ecm_free()
[all …]
/drivers/nvme/host/
A Dfabrics.c731 opts->kato = 0; in nvmf_parse_options()
1081 if (!opts->kato) in nvmf_parse_options()
1126 if (opts->nr_write_queues && opts->nr_io_queues < nr_io_queues) { in nvmf_set_io_queues()
1159 struct nvmf_ctrl_options *opts = ctrl->opts; in nvmf_map_queues() local
1223 strcmp(opts->traddr, ctrl->opts->traddr) || in nvmf_ip_options_match()
1224 strcmp(opts->trsvcid, ctrl->opts->trsvcid)) in nvmf_ip_options_match()
1242 if (strcmp(opts->host_traddr, ctrl->opts->host_traddr)) in nvmf_ip_options_match()
1251 if (strcmp(opts->host_iface, ctrl->opts->host_iface)) in nvmf_ip_options_match()
1295 kfree(opts); in nvmf_free_options()
1315 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in nvmf_create_ctrl()
[all …]
A Dfabrics.h177 struct nvmf_ctrl_options *opts);
182 struct nvmf_ctrl_options *opts) in nvmf_ctlr_matches_baseopts() argument
189 strcmp(opts->subsysnqn, ctrl->opts->subsysnqn) || in nvmf_ctlr_matches_baseopts()
190 strcmp(opts->host->nqn, ctrl->opts->host->nqn) || in nvmf_ctlr_matches_baseopts()
191 !uuid_equal(&opts->host->id, &ctrl->opts->host->id)) in nvmf_ctlr_matches_baseopts()
201 return ctrl->opts->subsysnqn; in nvmf_ctrl_subsysnqn()
215 return min(opts->nr_io_queues, num_online_cpus()) + in nvmf_nr_io_queues()
216 min(opts->nr_write_queues, num_online_cpus()) + in nvmf_nr_io_queues()
217 min(opts->nr_poll_queues, num_online_cpus()); in nvmf_nr_io_queues()
228 void nvmf_free_options(struct nvmf_ctrl_options *opts);
[all …]
A Dsysfs.c484 struct nvmf_ctrl_options *opts = ctrl->opts; in nvme_ctrl_loss_tmo_show() local
489 opts->max_reconnects * opts->reconnect_delay); in nvme_ctrl_loss_tmo_show()
496 struct nvmf_ctrl_options *opts = ctrl->opts; in nvme_ctrl_loss_tmo_store() local
554 struct nvmf_ctrl_options *opts = ctrl->opts; in nvme_ctrl_fast_io_fail_tmo_store() local
609 struct nvmf_ctrl_options *opts = ctrl->opts; in nvme_ctrl_dhchap_secret_show() local
620 struct nvmf_ctrl_options *opts = ctrl->opts; in nvme_ctrl_dhchap_secret_store() local
667 struct nvmf_ctrl_options *opts = ctrl->opts; in nvme_ctrl_dhchap_ctrl_secret_show() local
678 struct nvmf_ctrl_options *opts = ctrl->opts; in nvme_ctrl_dhchap_ctrl_secret_store() local
834 if (!ctrl->opts || strcmp(ctrl->opts->transport, "tcp")) in nvme_tls_attrs_are_visible()
838 !ctrl->opts->tls && !ctrl->opts->concat) in nvme_tls_attrs_are_visible()
[all …]
/drivers/net/ppp/
A Dppp_mppe.h34 #define MPPE_OPTS_TO_CI(opts, ci) \ argument
39 if (opts & MPPE_OPT_STATEFUL) \
48 if (opts & MPPE_OPT_128) \
50 if (opts & MPPE_OPT_40) \
56 #define MPPE_CI_TO_OPTS(ci, opts) \ argument
60 opts = 0; \
64 opts |= MPPE_OPT_STATEFUL; \
68 opts |= MPPE_OPT_128; \
70 opts |= MPPE_OPT_40; \
74 opts |= MPPE_OPT_56; \
[all …]
/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
A Dxtlv.c14 static int brcmf_xtlv_header_size(u16 opts) in brcmf_xtlv_header_size() argument
18 if (opts & BRCMF_XTLV_OPTION_IDU8) in brcmf_xtlv_header_size()
20 if (opts & BRCMF_XTLV_OPTION_LENU8) in brcmf_xtlv_header_size()
26 int brcmf_xtlv_data_size(int dlen, u16 opts) in brcmf_xtlv_data_size() argument
30 hsz = brcmf_xtlv_header_size(opts); in brcmf_xtlv_data_size()
31 if (opts & BRCMF_XTLV_OPTION_ALIGN32) in brcmf_xtlv_data_size()
38 const u8 *data, u16 opts) in brcmf_xtlv_pack_header() argument
43 if (!(opts & mask)) { in brcmf_xtlv_pack_header()
50 } else if ((opts & mask) == mask) { /* u8 id and u8 len */ in brcmf_xtlv_pack_header()
57 } else if (opts & BRCMF_XTLV_OPTION_IDU8) { /* u8 id, u16 len */ in brcmf_xtlv_pack_header()
[all …]
/drivers/block/
A Dzloop.c898 nr_zones = opts->capacity >> ilog2(opts->zone_size); in zloop_ctl_add()
917 if (opts->id >= 0) { in zloop_ctl_add()
919 opts->id, opts->id + 1, GFP_KERNEL); in zloop_ctl_add()
941 opts->nr_queues * opts->queue_depth, zlo->id); in zloop_ctl_add()
947 if (opts->base_dir) in zloop_ctl_add()
1101 opts->mask = 0; in zloop_parse_options()
1127 opts->mask |= token; in zloop_parse_options()
1145 opts->capacity = in zloop_parse_options()
1159 opts->zone_size = in zloop_parse_options()
1227 if (opts->capacity <= opts->zone_size) { in zloop_parse_options()
[all …]

Completed in 868 milliseconds

123456