Lines Matching refs:opts
451 struct f_ss_opts *opts; in sourcesink_free_func() local
453 opts = container_of(f->fi, struct f_ss_opts, func_inst); in sourcesink_free_func()
455 mutex_lock(&opts->lock); in sourcesink_free_func()
456 opts->refcnt--; in sourcesink_free_func()
457 mutex_unlock(&opts->lock); in sourcesink_free_func()
892 struct f_ss_opts *opts = to_f_ss_opts(item); in f_ss_opts_pattern_show() local
895 mutex_lock(&opts->lock); in f_ss_opts_pattern_show()
896 result = sprintf(page, "%u\n", opts->pattern); in f_ss_opts_pattern_show()
897 mutex_unlock(&opts->lock); in f_ss_opts_pattern_show()
905 struct f_ss_opts *opts = to_f_ss_opts(item); in f_ss_opts_pattern_store() local
909 mutex_lock(&opts->lock); in f_ss_opts_pattern_store()
910 if (opts->refcnt) { in f_ss_opts_pattern_store()
924 opts->pattern = num; in f_ss_opts_pattern_store()
927 mutex_unlock(&opts->lock); in f_ss_opts_pattern_store()
935 struct f_ss_opts *opts = to_f_ss_opts(item); in f_ss_opts_isoc_interval_show() local
938 mutex_lock(&opts->lock); in f_ss_opts_isoc_interval_show()
939 result = sprintf(page, "%u\n", opts->isoc_interval); in f_ss_opts_isoc_interval_show()
940 mutex_unlock(&opts->lock); in f_ss_opts_isoc_interval_show()
948 struct f_ss_opts *opts = to_f_ss_opts(item); in f_ss_opts_isoc_interval_store() local
952 mutex_lock(&opts->lock); in f_ss_opts_isoc_interval_store()
953 if (opts->refcnt) { in f_ss_opts_isoc_interval_store()
967 opts->isoc_interval = num; in f_ss_opts_isoc_interval_store()
970 mutex_unlock(&opts->lock); in f_ss_opts_isoc_interval_store()
978 struct f_ss_opts *opts = to_f_ss_opts(item); in f_ss_opts_isoc_maxpacket_show() local
981 mutex_lock(&opts->lock); in f_ss_opts_isoc_maxpacket_show()
982 result = sprintf(page, "%u\n", opts->isoc_maxpacket); in f_ss_opts_isoc_maxpacket_show()
983 mutex_unlock(&opts->lock); in f_ss_opts_isoc_maxpacket_show()
991 struct f_ss_opts *opts = to_f_ss_opts(item); in f_ss_opts_isoc_maxpacket_store() local
995 mutex_lock(&opts->lock); in f_ss_opts_isoc_maxpacket_store()
996 if (opts->refcnt) { in f_ss_opts_isoc_maxpacket_store()
1010 opts->isoc_maxpacket = num; in f_ss_opts_isoc_maxpacket_store()
1013 mutex_unlock(&opts->lock); in f_ss_opts_isoc_maxpacket_store()
1021 struct f_ss_opts *opts = to_f_ss_opts(item); in f_ss_opts_isoc_mult_show() local
1024 mutex_lock(&opts->lock); in f_ss_opts_isoc_mult_show()
1025 result = sprintf(page, "%u\n", opts->isoc_mult); in f_ss_opts_isoc_mult_show()
1026 mutex_unlock(&opts->lock); in f_ss_opts_isoc_mult_show()
1034 struct f_ss_opts *opts = to_f_ss_opts(item); in f_ss_opts_isoc_mult_store() local
1038 mutex_lock(&opts->lock); in f_ss_opts_isoc_mult_store()
1039 if (opts->refcnt) { in f_ss_opts_isoc_mult_store()
1053 opts->isoc_mult = num; in f_ss_opts_isoc_mult_store()
1056 mutex_unlock(&opts->lock); in f_ss_opts_isoc_mult_store()
1064 struct f_ss_opts *opts = to_f_ss_opts(item); in f_ss_opts_isoc_maxburst_show() local
1067 mutex_lock(&opts->lock); in f_ss_opts_isoc_maxburst_show()
1068 result = sprintf(page, "%u\n", opts->isoc_maxburst); in f_ss_opts_isoc_maxburst_show()
1069 mutex_unlock(&opts->lock); in f_ss_opts_isoc_maxburst_show()
1077 struct f_ss_opts *opts = to_f_ss_opts(item); in f_ss_opts_isoc_maxburst_store() local
1081 mutex_lock(&opts->lock); in f_ss_opts_isoc_maxburst_store()
1082 if (opts->refcnt) { in f_ss_opts_isoc_maxburst_store()
1096 opts->isoc_maxburst = num; in f_ss_opts_isoc_maxburst_store()
1099 mutex_unlock(&opts->lock); in f_ss_opts_isoc_maxburst_store()
1107 struct f_ss_opts *opts = to_f_ss_opts(item); in f_ss_opts_bulk_buflen_show() local
1110 mutex_lock(&opts->lock); in f_ss_opts_bulk_buflen_show()
1111 result = sprintf(page, "%u\n", opts->bulk_buflen); in f_ss_opts_bulk_buflen_show()
1112 mutex_unlock(&opts->lock); in f_ss_opts_bulk_buflen_show()
1120 struct f_ss_opts *opts = to_f_ss_opts(item); in f_ss_opts_bulk_buflen_store() local
1124 mutex_lock(&opts->lock); in f_ss_opts_bulk_buflen_store()
1125 if (opts->refcnt) { in f_ss_opts_bulk_buflen_store()
1134 opts->bulk_buflen = num; in f_ss_opts_bulk_buflen_store()
1137 mutex_unlock(&opts->lock); in f_ss_opts_bulk_buflen_store()
1145 struct f_ss_opts *opts = to_f_ss_opts(item); in f_ss_opts_bulk_qlen_show() local
1148 mutex_lock(&opts->lock); in f_ss_opts_bulk_qlen_show()
1149 result = sprintf(page, "%u\n", opts->bulk_qlen); in f_ss_opts_bulk_qlen_show()
1150 mutex_unlock(&opts->lock); in f_ss_opts_bulk_qlen_show()
1158 struct f_ss_opts *opts = to_f_ss_opts(item); in f_ss_opts_bulk_qlen_store() local
1162 mutex_lock(&opts->lock); in f_ss_opts_bulk_qlen_store()
1163 if (opts->refcnt) { in f_ss_opts_bulk_qlen_store()
1172 opts->bulk_qlen = num; in f_ss_opts_bulk_qlen_store()
1175 mutex_unlock(&opts->lock); in f_ss_opts_bulk_qlen_store()
1183 struct f_ss_opts *opts = to_f_ss_opts(item); in f_ss_opts_iso_qlen_show() local
1186 mutex_lock(&opts->lock); in f_ss_opts_iso_qlen_show()
1187 result = sprintf(page, "%u\n", opts->iso_qlen); in f_ss_opts_iso_qlen_show()
1188 mutex_unlock(&opts->lock); in f_ss_opts_iso_qlen_show()
1196 struct f_ss_opts *opts = to_f_ss_opts(item); in f_ss_opts_iso_qlen_store() local
1200 mutex_lock(&opts->lock); in f_ss_opts_iso_qlen_store()
1201 if (opts->refcnt) { in f_ss_opts_iso_qlen_store()
1210 opts->iso_qlen = num; in f_ss_opts_iso_qlen_store()
1213 mutex_unlock(&opts->lock); in f_ss_opts_iso_qlen_store()