@@ -140,7 +140,7 @@ static struct nvme_global_ctx *create_tree()
140140 assert (!nvme_get_subsystem (ctx , h , d -> subsysname ,
141141 d -> f .subsysnqn , & d -> s ));
142142 assert (d -> s );
143- d -> c = __nvme_lookup_ctrl (d -> s , & d -> f , NULL );
143+ d -> c = nvme_lookup_ctrl (d -> s , & d -> f , NULL );
144144 assert (d -> c );
145145 d -> ctrl_id = i ;
146146
@@ -177,7 +177,7 @@ static bool tcp_ctrl_lookup(nvme_subsystem_t s, struct test_data *d)
177177
178178 f .host_traddr = NULL ;
179179 f .host_iface = NULL ;
180- c = __nvme_lookup_ctrl (s , & f , NULL );
180+ c = nvme_lookup_ctrl (s , & f , NULL );
181181 printf ("%10s %12s %10s -> " , f .trsvcid , "" , "" );
182182 show_ctrl (c );
183183 pass &= match_ctrl (d , c );
@@ -186,7 +186,7 @@ static bool tcp_ctrl_lookup(nvme_subsystem_t s, struct test_data *d)
186186 if (d -> f .host_traddr ) {
187187 f = d -> f ;
188188 f .host_iface = NULL ;
189- c = __nvme_lookup_ctrl (s , & f , NULL );
189+ c = nvme_lookup_ctrl (s , & f , NULL );
190190 printf ("%10s %12s %10s -> " , f .trsvcid , f .host_traddr , "" );
191191 show_ctrl (c );
192192 pass &= match_ctrl (d , c );
@@ -196,7 +196,7 @@ static bool tcp_ctrl_lookup(nvme_subsystem_t s, struct test_data *d)
196196 if (d -> f .host_iface ) {
197197 f = d -> f ;
198198 f .host_traddr = NULL ;
199- c = __nvme_lookup_ctrl (s , & f , NULL );
199+ c = nvme_lookup_ctrl (s , & f , NULL );
200200 printf ("%10s %12s %10s -> " , f .trsvcid , "" , f .host_iface );
201201 show_ctrl (c );
202202 pass &= match_ctrl (d , c );
@@ -205,7 +205,7 @@ static bool tcp_ctrl_lookup(nvme_subsystem_t s, struct test_data *d)
205205
206206 if (d -> f .host_iface && d -> f .traddr ) {
207207 f = d -> f ;
208- c = __nvme_lookup_ctrl (s , & f , NULL );
208+ c = nvme_lookup_ctrl (s , & f , NULL );
209209 printf ("%10s %12s %10s -> " , f .trsvcid ,
210210 f .host_traddr , f .host_iface );
211211 show_ctrl (c );
@@ -224,7 +224,7 @@ static bool default_ctrl_lookup(nvme_subsystem_t s, struct test_data *d)
224224
225225 f .host_iface = NULL ;
226226 f .trsvcid = NULL ;
227- c = __nvme_lookup_ctrl (s , & f , NULL );
227+ c = nvme_lookup_ctrl (s , & f , NULL );
228228 printf ("%10s %12s %10s -> " , "" , "" , "" );
229229 show_ctrl (c );
230230 pass &= match_ctrl (d , c );
@@ -305,7 +305,7 @@ static bool test_src_addr()
305305 nvme_get_subsystem (ctx , h , DEFAULT_SUBSYSNAME , DEFAULT_SUBSYSNQN , & s );
306306 assert (s );
307307
308- c = __nvme_lookup_ctrl (s , & fctx , NULL );
308+ c = nvme_lookup_ctrl (s , & fctx , NULL );
309309 assert (c );
310310
311311 c -> address = NULL ;
@@ -479,7 +479,7 @@ static bool ctrl_match(const char *tag,
479479 & s ));
480480 assert (s );
481481
482- reference_ctrl = __nvme_lookup_ctrl (s , & reference -> f , NULL );
482+ reference_ctrl = nvme_lookup_ctrl (s , & reference -> f , NULL );
483483 assert (reference_ctrl );
484484 reference_ctrl -> name = "nvme1" ; /* fake the device name */
485485 if (reference -> address ) {
@@ -489,7 +489,7 @@ static bool ctrl_match(const char *tag,
489489 /* nvme_ctrl_find() MUST BE RUN BEFORE nvme_lookup_ctrl() */
490490 found_ctrl = nvme_ctrl_find (s , & candidate -> f );
491491
492- candidate_ctrl = __nvme_lookup_ctrl (s , & candidate -> f , NULL );
492+ candidate_ctrl = nvme_lookup_ctrl (s , & candidate -> f , NULL );
493493
494494 if (should_match ) {
495495 if (candidate_ctrl != reference_ctrl ) {
@@ -1101,7 +1101,7 @@ static bool ctrl_config_match(const char *tag,
11011101 & s ));
11021102 assert (s );
11031103
1104- reference_ctrl = __nvme_lookup_ctrl (s , & reference -> f , NULL );
1104+ reference_ctrl = nvme_lookup_ctrl (s , & reference -> f , NULL );
11051105 assert (reference_ctrl );
11061106 reference_ctrl -> name = "nvme1" ; /* fake the device name */
11071107 if (reference -> address ) {
0 commit comments