• Home
  • Raw
  • Download

Lines Matching refs:proto

47 	pi->proto->write_regr(pi, cont, regr, val);  in pi_write_regr()
54 return pi->proto->read_regr(pi, cont, regr); in pi_read_regr()
61 pi->proto->write_block(pi, buf, count); in pi_write_block()
68 pi->proto->read_block(pi, buf, count); in pi_read_block()
139 pi->proto->connect(pi); in pi_connect()
146 pi->proto->disconnect(pi); in pi_disconnect()
163 if (pi->proto->release_proto) in pi_release()
164 pi->proto->release_proto(pi); in pi_release()
165 module_put(pi->proto->owner); in pi_release()
175 pi->proto->connect(pi); in default_test_proto()
186 pi->proto->disconnect(pi); in default_test_proto()
190 pi->device, pi->proto->name, pi->port, in default_test_proto()
201 if (pi->proto->test_proto) in pi_test_proto()
202 res = pi->proto->test_proto(pi, scratch, verbose); in pi_test_proto()
283 if (pi->mode >= pi->proto->epp_first) in pi_probe_mode()
293 if (pi->mode >= pi->proto->epp_first) in pi_probe_mode()
314 e = pi->proto->max_units; in pi_probe_unit()
320 if (pi->proto->test_port) { in pi_probe_unit()
322 max = pi->proto->test_port(pi); in pi_probe_unit()
325 max = pi->proto->max_mode; in pi_probe_unit()
327 if (pi->proto->probe_unit) { in pi_probe_unit()
330 if (pi->proto->probe_unit(pi)) { in pi_probe_unit()
374 struct pi_protocol *proto = protocols[p]; in pi_init() local
375 if (!proto) in pi_init()
378 if (!try_module_get(proto->owner)) in pi_init()
380 pi->proto = proto; in pi_init()
382 if (proto->init_proto && proto->init_proto(pi) < 0) { in pi_init()
383 pi->proto = NULL; in pi_init()
384 module_put(proto->owner); in pi_init()
388 pi->delay = pi->proto->default_delay; in pi_init()
415 if (pi->proto->release_proto) in pi_init()
416 pi->proto->release_proto(pi); in pi_init()
417 module_put(proto->owner); in pi_init()
432 pi->proto->log_adapter(pi, scratch, verbose); in pi_init()