Lines Matching defs:ops

1576 	if (ap->ops->error_handler)
1581 if (ap->ops->error_handler)
1597 if (ap->ops->error_handler)
1611 if (ap->ops->post_internal_cmd)
1612 ap->ops->post_internal_cmd(qc);
1829 if (ap->ops->read_id)
1830 err_mask = ap->ops->read_id(dev, &tf, id);
2717 if (ap->ops->dev_config)
2718 ap->ops->dev_config(dev);
2857 if (ap->ops->set_piomode)
2858 ap->ops->set_piomode(ap, dev);
2862 ap->ops->phy_reset(ap);
2891 if (ap->ops->cable_detect)
2892 ap->cbl = ap->ops->cable_detect(ap);
3368 if (ap->ops->set_piomode)
3369 ap->ops->set_piomode(ap, dev);
3379 if (ap->ops->set_dmamode)
3380 ap->ops->set_dmamode(ap, dev);
4203 if (ap->ops->mode_filter)
4204 xfer_mask = ap->ops->mode_filter(dev, xfer_mask);
4381 if (ap->ops->check_atapi_dma)
4382 return ap->ops->check_atapi_dma(qc);
4641 ap->ops->qc_fill_rtf(qc);
4692 if (ap->ops->error_handler) {
4814 WARN_ON_ONCE(ap->ops->error_handler && ata_tag_valid(link->active_tag));
4852 qc->err_mask |= ap->ops->qc_prep(qc);
4856 qc->err_mask |= ap->ops->qc_issue(qc);
5504 ap->ops = pi->port_ops;
5506 if (!host->ops && (pi->port_ops != &ata_dummy_port_ops))
5507 host->ops = pi->port_ops;
5524 if (ap->ops->port_stop)
5525 ap->ops->port_stop(ap);
5528 if (host->ops->host_stop)
5529 host->ops->host_stop(host);
5534 * @ops: ata_port_operations to finalize
5536 * An ata_port_operations can inherit from another ops and that
5537 * ops can again inherit from another. This can go on as many
5544 * After finalization, the ops table directly points to all the
5547 * Using ATA_OP_NULL, inheriting ops can force a method to NULL.
5552 static void ata_finalize_port_ops(struct ata_port_operations *ops)
5556 void **begin = (void **)ops;
5557 void **end = (void **)&ops->inherits;
5560 if (!ops || !ops->inherits)
5565 for (cur = ops->inherits; cur; cur = cur->inherits) {
5577 ops->inherits = NULL;
5589 * once. If host->ops isn't initialized yet, its set to the
5590 * first non-dummy port ops.
5607 ata_finalize_port_ops(host->ops);
5612 ata_finalize_port_ops(ap->ops);
5614 if (!host->ops && !ata_port_is_dummy(ap))
5615 host->ops = ap->ops;
5617 if (ap->ops->port_stop)
5621 if (host->ops && host->ops->host_stop)
5633 if (ap->ops->port_start) {
5634 rc = ap->ops->port_start(ap);
5655 if (ap->ops->port_stop)
5656 ap->ops->port_stop(ap);
5667 * @ops: port_ops
5671 struct ata_port_operations *ops)
5677 host->ops = ops;
5705 if (ap->ops->error_handler) {
5918 if (!ap->ops->error_handler)
6028 if (ap->ops->freeze)
6029 ap->ops->freeze(ap);
6032 if (ap->ops->port_stop)
6033 ap->ops->port_stop(ap);