Lines Matching defs:ops

1618 	if (ap->ops->post_internal_cmd)
1619 ap->ops->post_internal_cmd(qc);
1833 if (ap->ops->read_id)
1834 err_mask = ap->ops->read_id(dev, &tf, (__le16 *)id);
3058 if (ap->ops->dev_config)
3059 ap->ops->dev_config(dev);
3570 if (ap->ops->set_piomode)
3571 ap->ops->set_piomode(ap, dev);
3581 if (ap->ops->set_dmamode)
3582 ap->ops->set_dmamode(ap, dev);
4415 if (ap->ops->mode_filter)
4416 xfer_mask = ap->ops->mode_filter(dev, xfer_mask);
4587 if (ap->ops->check_atapi_dma)
4588 return ap->ops->check_atapi_dma(qc);
4796 ap->ops->qc_fill_rtf(qc);
5009 qc->err_mask |= ap->ops->qc_prep(qc);
5013 qc->err_mask |= ap->ops->qc_issue(qc);
5661 ap->ops = pi->port_ops;
5663 if (!host->ops && (pi->port_ops != &ata_dummy_port_ops))
5664 host->ops = pi->port_ops;
5681 if (ap->ops->port_stop)
5682 ap->ops->port_stop(ap);
5685 if (host->ops->host_stop)
5686 host->ops->host_stop(host);
5691 * @ops: ata_port_operations to finalize
5693 * An ata_port_operations can inherit from another ops and that
5694 * ops can again inherit from another. This can go on as many
5701 * After finalization, the ops table directly points to all the
5704 * Using ATA_OP_NULL, inheriting ops can force a method to NULL.
5709 static void ata_finalize_port_ops(struct ata_port_operations *ops)
5713 void **begin = (void **)ops;
5714 void **end = (void **)&ops->inherits;
5717 if (!ops || !ops->inherits)
5722 for (cur = ops->inherits; cur; cur = cur->inherits) {
5734 ops->inherits = NULL;
5746 * once. If host->ops is not initialized yet, it is set to the
5747 * first non-dummy port ops.
5764 ata_finalize_port_ops(host->ops);
5769 ata_finalize_port_ops(ap->ops);
5771 if (!host->ops && !ata_port_is_dummy(ap))
5772 host->ops = ap->ops;
5774 if (ap->ops->port_stop)
5778 if (host->ops && host->ops->host_stop)
5790 if (ap->ops->port_start) {
5791 rc = ap->ops->port_start(ap);
5812 if (ap->ops->port_stop)
5813 ap->ops->port_stop(ap);
5824 * @ops: port_ops
5828 struct ata_port_operations *ops)
5834 host->ops = ops;
6168 if (ap->ops->freeze)
6169 ap->ops->freeze(ap);
6172 if (ap->ops->port_stop)
6173 ap->ops->port_stop(ap);