Lines Matching refs:opts
22 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); \
57 ret = gether_set_dev_addr(opts->net, page); \
58 mutex_unlock(&opts->lock); \
70 struct f_##_f_##_opts *opts = to_f_##_f_##_opts(item); \
73 mutex_lock(&opts->lock); \
74 result = gether_get_host_addr(opts->net, page, PAGE_SIZE); \
75 mutex_unlock(&opts->lock); \
83 struct f_##_f_##_opts *opts = to_f_##_f_##_opts(item); \
86 mutex_lock(&opts->lock); \
87 if (opts->refcnt) { \
88 mutex_unlock(&opts->lock); \
92 ret = gether_set_host_addr(opts->net, page); \
93 mutex_unlock(&opts->lock); \
105 struct f_##_f_##_opts *opts = to_f_##_f_##_opts(item); \
108 mutex_lock(&opts->lock); \
109 qmult = gether_get_qmult(opts->net); \
110 mutex_unlock(&opts->lock); \
117 struct f_##_f_##_opts *opts = to_f_##_f_##_opts(item); \
121 mutex_lock(&opts->lock); \
122 if (opts->refcnt) { \
131 gether_set_qmult(opts->net, val); \
134 mutex_unlock(&opts->lock); \
144 struct f_##_f_##_opts *opts = to_f_##_f_##_opts(item); \
147 mutex_lock(&opts->lock); \
148 ret = gether_get_ifname(opts->net, page, PAGE_SIZE); \
149 mutex_unlock(&opts->lock); \