/drivers/net/ppp/ |
H A D | ppp_mppe.h | 8 /* unsupported opts */ 32 /* Build a CI from mppe opts (see RFC 3078) */ 33 #define MPPE_OPTS_TO_CI(opts, ci) \ 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) \ 59 opts = 0; \ 63 opts |= MPPE_OPT_STATEFUL; \ 67 opts | [all...] |
/drivers/usb/gadget/function/ |
H A D | u_ether_configfs.h | 25 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 [all...] |
H A D | f_sourcesink.c | 686 struct f_ss_opts *opts; local 688 opts = container_of(f->fi, struct f_ss_opts, func_inst); 690 mutex_lock(&opts->lock); 691 opts->refcnt--; 692 mutex_unlock(&opts->lock); 1212 static ssize_t f_ss_opts_pattern_show(struct f_ss_opts *opts, char *page) argument 1216 mutex_lock(&opts->lock); 1217 result = sprintf(page, "%d", opts->pattern); 1218 mutex_unlock(&opts->lock); 1223 static ssize_t f_ss_opts_pattern_store(struct f_ss_opts *opts, argument 1256 f_ss_opts_isoc_interval_show(struct f_ss_opts *opts, char *page) argument 1267 f_ss_opts_isoc_interval_store(struct f_ss_opts *opts, const char *page, size_t len) argument 1300 f_ss_opts_isoc_maxpacket_show(struct f_ss_opts *opts, char *page) argument 1311 f_ss_opts_isoc_maxpacket_store(struct f_ss_opts *opts, const char *page, size_t len) argument 1344 f_ss_opts_isoc_mult_show(struct f_ss_opts *opts, char *page) argument 1355 f_ss_opts_isoc_mult_store(struct f_ss_opts *opts, const char *page, size_t len) argument 1388 f_ss_opts_isoc_maxburst_show(struct f_ss_opts *opts, char *page) argument 1399 f_ss_opts_isoc_maxburst_store(struct f_ss_opts *opts, const char *page, size_t len) argument 1432 f_ss_opts_bulk_buflen_show(struct f_ss_opts *opts, char *page) argument 1443 f_ss_opts_bulk_buflen_store(struct f_ss_opts *opts, const char *page, size_t len) argument 1471 f_ss_opts_int_interval_show(struct f_ss_opts *opts, char *page) argument 1482 f_ss_opts_int_interval_store(struct f_ss_opts *opts, const char *page, size_t len) argument 1515 f_ss_opts_int_maxpacket_show(struct f_ss_opts *opts, char *page) argument 1526 f_ss_opts_int_maxpacket_store(struct f_ss_opts *opts, const char *page, size_t len) argument 1559 f_ss_opts_int_mult_show(struct f_ss_opts *opts, char *page) argument 1570 f_ss_opts_int_mult_store(struct f_ss_opts *opts, const char *page, size_t len) argument 1603 f_ss_opts_int_maxburst_show(struct f_ss_opts *opts, char *page) argument 1614 f_ss_opts_int_maxburst_store(struct f_ss_opts *opts, const char *page, size_t len) argument [all...] |
H A D | f_midi.c | 914 struct f_midi_opts *opts = to_f_midi_opts(item); local 916 usb_put_function_instance(&opts->func_inst); 926 static ssize_t f_midi_opts_##name##_show(struct f_midi_opts *opts, char *page) \ 930 mutex_lock(&opts->lock); \ 931 result = sprintf(page, "%d\n", opts->name); \ 932 mutex_unlock(&opts->lock); \ 937 static ssize_t f_midi_opts_##name##_store(struct f_midi_opts *opts, \ 943 mutex_lock(&opts->lock); \ 944 if (opts->refcnt) { \ 957 opts 975 f_midi_opts_id_show(struct f_midi_opts *opts, char *page) argument 992 f_midi_opts_id_store(struct f_midi_opts *opts, const char *page, size_t len) argument 1041 struct f_midi_opts *opts; local 1112 struct f_midi_opts *opts; local 1141 struct f_midi_opts *opts; local 1177 struct f_midi_opts *opts; local [all...] |
H A D | f_serial.c | 275 struct f_serial_opts *opts = to_f_serial_opts(item); local 281 ret = f_serial_opts_attr->show(opts, page); 288 struct f_serial_opts *opts = to_f_serial_opts(item); local 290 usb_put_function_instance(&opts->func_inst); 298 static ssize_t f_serial_port_num_show(struct f_serial_opts *opts, char *page) argument 300 return sprintf(page, "%u\n", opts->port_num); 319 struct f_serial_opts *opts; local 321 opts = container_of(f, struct f_serial_opts, func_inst); 322 gserial_free_line(opts->port_num); 323 kfree(opts); 328 struct f_serial_opts *opts; local 363 struct f_serial_opts *opts; local [all...] |
H A D | f_uac1.c | 322 struct f_uac1_opts *opts; local 326 opts = container_of(audio->card.func.fi, struct f_uac1_opts, 328 audio_buf_size = opts->audio_buf_size; 574 struct f_uac1_opts *opts; local 580 opts = container_of(f->fi, struct f_uac1_opts, func_inst); 581 req_buf_size = opts->req_buf_size; 582 req_count = opts->req_count; 583 audio_buf_size = opts->audio_buf_size; 774 struct f_uac1_opts *opts = to_f_uac1_opts(item); local 776 usb_put_function_instance(&opts 897 struct f_uac1_opts *opts; local 912 struct f_uac1_opts *opts; local 936 struct f_uac1_opts *opts; local 953 struct f_uac1_opts *opts; local [all...] |
H A D | f_subset.c | 431 struct f_gether_opts *opts; local 433 opts = container_of(f, struct f_gether_opts, func_inst); 434 if (opts->bound) 435 gether_cleanup(netdev_priv(opts->net)); 437 free_netdev(opts->net); 438 kfree(opts); 443 struct f_gether_opts *opts; local 445 opts = kzalloc(sizeof(*opts), GFP_KERNEL); 446 if (!opts) 480 struct f_gether_opts *opts; local [all...] |
H A D | f_loopback.c | 234 struct f_lb_opts *opts; local 236 opts = container_of(f->fi, struct f_lb_opts, func_inst); 238 mutex_lock(&opts->lock); 239 opts->refcnt--; 240 mutex_unlock(&opts->lock); 438 static ssize_t f_lb_opts_qlen_show(struct f_lb_opts *opts, char *page) argument 442 mutex_lock(&opts->lock); 443 result = sprintf(page, "%d", opts->qlen); 444 mutex_unlock(&opts->lock); 449 static ssize_t f_lb_opts_qlen_store(struct f_lb_opts *opts, argument 477 f_lb_opts_bulk_buflen_show(struct f_lb_opts *opts, char *page) argument 488 f_lb_opts_bulk_buflen_store(struct f_lb_opts *opts, const char *page, size_t len) argument [all...] |
H A D | f_ncm.c | 900 const struct ndp_parser_opts *opts = ncm->parser_opts; local 902 const int dgram_idx_len = 2 * 2 * opts->dgram_item_len; 916 put_ncm(&ntb_iter, opts->block_length, new_len); 917 put_ncm(&ntb_iter, opts->ndp_index, ndp_index); 920 new_len = opts->ndp_size + 963 const struct ndp_parser_opts *opts = ncm->parser_opts; local 967 const int dgram_idx_len = 2 * 2 * opts->dgram_item_len; 1002 ncb_len = opts->nth_size; 1014 put_unaligned_le32(opts->nth_sign, ntb_data); 1017 put_unaligned_le16(opts 1141 const struct ndp_parser_opts *opts = ncm->parser_opts; local 1519 struct f_ncm_opts *opts; local 1531 struct f_ncm_opts *opts; local 1553 struct f_ncm_opts *opts; local 1582 struct f_ncm_opts *opts; local [all...] |
H A D | f_obex.c | 422 struct f_serial_opts *opts = to_f_serial_opts(item); local 428 ret = f_serial_opts_attr->show(opts, page); 435 struct f_serial_opts *opts = to_f_serial_opts(item); local 437 usb_put_function_instance(&opts->func_inst); 445 static ssize_t f_obex_port_num_show(struct f_serial_opts *opts, char *page) argument 447 return sprintf(page, "%u\n", opts->port_num); 466 struct f_serial_opts *opts; local 468 opts = container_of(f, struct f_serial_opts, func_inst); 469 gserial_free_line(opts->port_num); 470 kfree(opts); 475 struct f_serial_opts *opts; local 510 struct f_serial_opts *opts; local [all...] |
H A D | f_rndis.c | 875 struct f_rndis_opts *opts; local 877 opts = container_of(f, struct f_rndis_opts, func_inst); 878 if (opts->bound) 879 gether_cleanup(netdev_priv(opts->net)); 881 free_netdev(opts->net); 882 opts->borrowed_net = opts->bound = true; 883 opts->net = net; 924 struct f_rndis_opts *opts; local 926 opts 940 struct f_rndis_opts *opts; local 972 struct f_rndis_opts *opts; local 998 struct f_rndis_opts *opts; local [all...] |
H A D | f_eem.c | 573 struct f_eem_opts *opts; local 575 opts = container_of(f, struct f_eem_opts, func_inst); 576 if (opts->bound) 577 gether_cleanup(netdev_priv(opts->net)); 579 free_netdev(opts->net); 580 kfree(opts); 585 struct f_eem_opts *opts; local 587 opts = kzalloc(sizeof(*opts), GFP_KERNEL); 588 if (!opts) 607 struct f_eem_opts *opts; local 627 struct f_eem_opts *opts; local [all...] |
H A D | f_phonet.c | 594 struct f_phonet_opts *opts = to_f_phonet_opts(item); local 600 ret = f_phonet_opts_attr->show(opts, page); 606 struct f_phonet_opts *opts = to_f_phonet_opts(item); local 608 usb_put_function_instance(&opts->func_inst); 616 static ssize_t f_phonet_ifname_show(struct f_phonet_opts *opts, char *page) argument 618 return gether_get_ifname(opts->net, page, PAGE_SIZE); 637 struct f_phonet_opts *opts; local 639 opts = container_of(f, struct f_phonet_opts, func_inst); 640 if (opts->bound) 641 gphonet_cleanup(opts 649 struct f_phonet_opts *opts; local 695 struct f_phonet_opts *opts; local [all...] |
H A D | f_uac2.c | 366 struct f_uac2_opts *opts; local 372 opts = container_of(audio_dev->func.fi, struct f_uac2_opts, func_inst); 373 p_ssize = opts->p_ssize; 374 c_ssize = opts->c_ssize; 375 p_srate = opts->p_srate; 376 c_srate = opts->c_srate; 377 p_chmask = opts->p_chmask; 378 c_chmask = opts->c_chmask; 450 struct f_uac2_opts *opts; local 455 opts 1150 struct f_uac2_opts *opts = agdev_to_uac2_opts(agdev); local 1258 struct f_uac2_opts *opts; local 1299 struct f_uac2_opts *opts; local 1426 struct f_uac2_opts *opts = to_f_uac2_opts(item); local 1504 struct f_uac2_opts *opts; local 1512 struct f_uac2_opts *opts; local 1536 struct f_uac2_opts *opts; local 1569 struct f_uac2_opts *opts; local [all...] |
H A D | f_uvc.c | 603 struct f_uvc_opts *opts; local 608 opts = to_f_uvc_opts(f->fi); 611 opts->streaming_interval = clamp(opts->streaming_interval, 1U, 16U); 612 opts->streaming_maxpacket = clamp(opts->streaming_maxpacket, 1U, 3072U); 613 opts->streaming_maxburst = min(opts->streaming_maxburst, 15U); 621 if (opts->streaming_maxpacket <= 1024) { 623 max_packet_size = opts 769 struct f_uvc_opts *opts = to_f_uvc_opts(f); local 776 struct f_uvc_opts *opts; local 814 struct f_uvc_opts *opts; local [all...] |
H A D | f_ecm.c | 873 struct f_ecm_opts *opts; local 875 opts = container_of(f, struct f_ecm_opts, func_inst); 876 if (opts->bound) 877 gether_cleanup(netdev_priv(opts->net)); 879 free_netdev(opts->net); 880 kfree(opts); 885 struct f_ecm_opts *opts; local 887 opts = kzalloc(sizeof(*opts), GFP_KERNEL); 888 if (!opts) 907 struct f_ecm_opts *opts; local 932 struct f_ecm_opts *opts; local [all...] |
H A D | f_mass_storage.c | 3107 struct fsg_opts *opts; local 3109 opts = fsg_opts_from_func_inst(f->fi); 3110 if (!opts->no_configfs) { 3218 static ssize_t fsg_lun_opts_file_show(struct fsg_lun_opts *opts, char *page) argument 3222 fsg_opts = to_fsg_opts(opts->group.cg_item.ci_parent); 3224 return fsg_show_file(opts->lun, &fsg_opts->common->filesem, page); 3227 static ssize_t fsg_lun_opts_file_store(struct fsg_lun_opts *opts, argument 3232 fsg_opts = to_fsg_opts(opts->group.cg_item.ci_parent); 3234 return fsg_store_file(opts->lun, &fsg_opts->common->filesem, page, len); 3241 static ssize_t fsg_lun_opts_ro_show(struct fsg_lun_opts *opts, cha argument 3246 fsg_lun_opts_ro_store(struct fsg_lun_opts *opts, const char *page, size_t len) argument 3260 fsg_lun_opts_removable_show(struct fsg_lun_opts *opts, char *page) argument 3266 fsg_lun_opts_removable_store(struct fsg_lun_opts *opts, const char *page, size_t len) argument 3277 fsg_lun_opts_cdrom_show(struct fsg_lun_opts *opts, char *page) argument 3282 fsg_lun_opts_cdrom_store(struct fsg_lun_opts *opts, const char *page, size_t len) argument 3297 fsg_lun_opts_nofua_show(struct fsg_lun_opts *opts, char *page) argument 3302 fsg_lun_opts_nofua_store(struct fsg_lun_opts *opts, const char *page, size_t len) argument 3330 struct fsg_lun_opts *opts; local 3414 struct fsg_opts *opts = to_fsg_opts(item); local 3425 fsg_opts_stall_show(struct fsg_opts *opts, char *page) argument 3436 fsg_opts_stall_store(struct fsg_opts *opts, const char *page, size_t len) argument 3465 fsg_opts_num_buffers_show(struct fsg_opts *opts, char *page) argument 3476 fsg_opts_num_buffers_store(struct fsg_opts *opts, const char *page, size_t len) argument 3532 struct fsg_opts *opts; local 3541 struct fsg_opts *opts; local 3590 struct fsg_opts *opts; local 3604 struct fsg_opts *opts = fsg_opts_from_func_inst(fi); local [all...] |
H A D | f_acm.c | 745 struct f_serial_opts *opts; local 766 opts = container_of(fi, struct f_serial_opts, func_inst); 767 acm->port_num = opts->port_num; 785 struct f_serial_opts *opts = to_f_serial_opts(item); local 791 ret = f_serial_opts_attr->show(opts, page); 797 struct f_serial_opts *opts = to_f_serial_opts(item); local 799 usb_put_function_instance(&opts->func_inst); 807 static ssize_t f_acm_port_num_show(struct f_serial_opts *opts, char *page) argument 809 return sprintf(page, "%u\n", opts->port_num); 829 struct f_serial_opts *opts; local 838 struct f_serial_opts *opts; local [all...] |
H A D | u_uac1.c | 208 struct f_uac1_opts *opts; local 211 opts = container_of(card->func.fi, struct f_uac1_opts, func_inst); 212 fn_play = opts->fn_play; 213 fn_cap = opts->fn_cap; 214 fn_cntl = opts->fn_cntl;
|
H A D | f_fs.c | 1221 static int ffs_fs_parse_opts(struct ffs_sb_fill_data *data, char *opts) argument 1225 if (!opts || !*opts) 1233 comma = strchr(opts, ','); 1238 eq = strchr(opts, '='); 1240 pr_err("'=' missing in %s\n", opts); 1247 pr_err("%s: invalid value: %s\n", opts, eq + 1); 1252 switch (eq - opts) { 1254 if (!memcmp(opts, "rmode", 5)) 1256 else if (!memcmp(opts, "fmod 1307 ffs_fs_mount(struct file_system_type *t, int flags, const char *dev_name, void *opts) argument 3077 struct f_fs_opts *opts = to_ffs_opts(item); local 3096 struct f_fs_opts *opts; local 3109 struct f_fs_opts *opts; local 3145 struct f_fs_opts *opts; local 3179 struct f_fs_opts *opts = local [all...] |
/drivers/usb/gadget/legacy/ |
H A D | mass_storage.c | 135 struct fsg_opts *opts; local 143 opts = fsg_opts_from_func_inst(fi_msg); 149 ret = fsg_common_run_thread(opts->common); 178 struct fsg_opts *opts; local 187 opts = fsg_opts_from_func_inst(fi_msg); 189 opts->no_configfs = true; 190 status = fsg_common_set_num_buffers(opts->common, fsg_num_buffers); 194 status = fsg_common_set_nluns(opts->common, config.nluns); 198 fsg_common_set_ops(opts->common, &ops); 200 status = fsg_common_set_cdev(opts [all...] |
H A D | acm_ms.c | 126 struct fsg_opts *opts; local 134 opts = fsg_opts_from_func_inst(fi_msg); 150 status = fsg_common_run_thread(opts->common); 180 struct fsg_opts *opts; local 196 opts = fsg_opts_from_func_inst(fi_msg); 198 opts->no_configfs = true; 199 status = fsg_common_set_num_buffers(opts->common, fsg_num_buffers); 203 status = fsg_common_set_nluns(opts->common, config.nluns); 207 status = fsg_common_set_cdev(opts->common, cdev, config.can_stall); 211 fsg_common_set_sysfs(opts [all...] |
H A D | g_ffs.c | 195 struct f_fs_opts *opts; local 230 opts = to_f_fs_opts(fi_ffs[i]); 232 ret = ffs_single_dev(opts->dev); 234 ret = ffs_name_dev(opts->dev, func_names[i]); 237 opts->dev->ffs_ready_callback = functionfs_ready_callback; 238 opts->dev->ffs_closed_callback = functionfs_closed_callback; 239 opts->dev->ffs_acquire_dev_callback = functionfs_acquire_dev; 240 opts->dev->ffs_release_dev_callback = functionfs_release_dev; 241 opts->no_configfs = true;
|
/drivers/scsi/aic7xxx/ |
H A D | Makefile | 53 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 \
|
/drivers/sbus/char/ |
H A D | display7seg.c | 173 struct device_node *opts; local 203 opts = of_find_node_by_path("/options"); 204 if (opts && 205 of_get_property(opts, "d7s-flipped?", NULL))
|