Lines Matching refs:opts

19 		struct f_##_f_##_opts *opts = to_f_##_f_##_opts(item);	\
21 usb_put_function_instance(&opts->func_inst); \
32 struct f_##_f_##_opts *opts = to_f_##_f_##_opts(item); \
35 mutex_lock(&opts->lock); \
36 result = gether_get_dev_addr(opts->net, page, PAGE_SIZE); \
37 mutex_unlock(&opts->lock); \
45 struct f_##_f_##_opts *opts = to_f_##_f_##_opts(item); \
48 mutex_lock(&opts->lock); \
49 if (opts->refcnt) { \
50 mutex_unlock(&opts->lock); \
54 ret = gether_set_dev_addr(opts->net, page); \
55 mutex_unlock(&opts->lock); \
67 struct f_##_f_##_opts *opts = to_f_##_f_##_opts(item); \
70 mutex_lock(&opts->lock); \
71 result = gether_get_host_addr(opts->net, page, PAGE_SIZE); \
72 mutex_unlock(&opts->lock); \
80 struct f_##_f_##_opts *opts = to_f_##_f_##_opts(item); \
83 mutex_lock(&opts->lock); \
84 if (opts->refcnt) { \
85 mutex_unlock(&opts->lock); \
89 ret = gether_set_host_addr(opts->net, page); \
90 mutex_unlock(&opts->lock); \
102 struct f_##_f_##_opts *opts = to_f_##_f_##_opts(item); \
105 mutex_lock(&opts->lock); \
106 qmult = gether_get_qmult(opts->net); \
107 mutex_unlock(&opts->lock); \
114 struct f_##_f_##_opts *opts = to_f_##_f_##_opts(item); \
118 mutex_lock(&opts->lock); \
119 if (opts->refcnt) { \
128 gether_set_qmult(opts->net, val); \
131 mutex_unlock(&opts->lock); \
141 struct f_##_f_##_opts *opts = to_f_##_f_##_opts(item); \
144 mutex_lock(&opts->lock); \
145 ret = gether_get_ifname(opts->net, page, PAGE_SIZE); \
146 mutex_unlock(&opts->lock); \
154 struct f_##_f_##_opts *opts = to_f_##_f_##_opts(item); \
157 mutex_lock(&opts->lock); \
158 if (!opts->refcnt) \
159 ret = gether_set_ifname(opts->net, page, len); \
160 mutex_unlock(&opts->lock); \
170 struct f_##_f_##_opts *opts = to_f_##_f_##_opts(item); \
173 mutex_lock(&opts->lock); \
174 ret = sprintf(page, "%02x\n", opts->_n_); \
175 mutex_unlock(&opts->lock); \
184 struct f_##_f_##_opts *opts = to_f_##_f_##_opts(item); \
188 mutex_lock(&opts->lock); \
190 opts->_n_ = val; \
193 mutex_unlock(&opts->lock); \