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