Lines Matching refs:proto
46 pi->proto->write_regr(pi, cont, regr, val); in pi_write_regr()
53 return pi->proto->read_regr(pi, cont, regr); in pi_read_regr()
60 pi->proto->write_block(pi, buf, count); in pi_write_block()
67 pi->proto->read_block(pi, buf, count); in pi_read_block()
138 pi->proto->connect(pi); in pi_connect()
145 pi->proto->disconnect(pi); in pi_disconnect()
162 if (pi->proto->release_proto) in pi_release()
163 pi->proto->release_proto(pi); in pi_release()
164 module_put(pi->proto->owner); in pi_release()
174 pi->proto->connect(pi); in default_test_proto()
185 pi->proto->disconnect(pi); in default_test_proto()
189 pi->device, pi->proto->name, pi->port, in default_test_proto()
200 if (pi->proto->test_proto) in pi_test_proto()
201 res = pi->proto->test_proto(pi, scratch, verbose); in pi_test_proto()
280 if (pi->mode >= pi->proto->epp_first) in pi_probe_mode()
290 if (pi->mode >= pi->proto->epp_first) in pi_probe_mode()
311 e = pi->proto->max_units; in pi_probe_unit()
317 if (pi->proto->test_port) { in pi_probe_unit()
319 max = pi->proto->test_port(pi); in pi_probe_unit()
322 max = pi->proto->max_mode; in pi_probe_unit()
324 if (pi->proto->probe_unit) { in pi_probe_unit()
327 if (pi->proto->probe_unit(pi)) { in pi_probe_unit()
371 struct pi_protocol *proto = protocols[p]; in pi_init() local
372 if (!proto) in pi_init()
375 if (!try_module_get(proto->owner)) in pi_init()
377 pi->proto = proto; in pi_init()
379 if (proto->init_proto && proto->init_proto(pi) < 0) { in pi_init()
380 pi->proto = NULL; in pi_init()
381 module_put(proto->owner); in pi_init()
385 pi->delay = pi->proto->default_delay; in pi_init()
412 if (pi->proto->release_proto) in pi_init()
413 pi->proto->release_proto(pi); in pi_init()
414 module_put(proto->owner); in pi_init()
429 pi->proto->log_adapter(pi, scratch, verbose); in pi_init()