Lines Matching defs:ops
23 * @ops: Ops defined by the bus.
29 const struct spi_bus_ops *ops;
90 const struct spi_bus_ops *ops = spi_slave.ops;
93 ret = ops->set_speed(spi_slave.max_hz);
99 ret = ops->set_mode(spi_slave.mode);
108 static int spi_mem_check_bus_ops(const struct spi_bus_ops *ops)
112 if (ops->claim_bus == NULL) {
117 if (ops->release_bus == NULL) {
122 if (ops->exec_op == NULL) {
127 if (ops->set_speed == NULL) {
132 if (ops->set_mode == NULL) {
151 const struct spi_bus_ops *ops = spi_slave.ops;
164 ret = ops->claim_bus(spi_slave.cs);
170 ret = ops->exec_op(op);
172 ops->release_bus();
181 * @ops: The SPI bus ops defined.
183 * This function first checks that @ops are supported and then tries to find
188 int spi_mem_init_slave(void *fdt, int bus_node, const struct spi_bus_ops *ops)
196 ret = spi_mem_check_bus_ops(ops);
285 spi_slave.ops = ops;