Lines Matching +full:read +full:- +full:cmd
4 * SPDX-License-Identifier: Apache-2.0
27 uint8_t cmd, uint16_t addr, void *data, size_t len) in mb85rs64v_access() argument
43 access[0] = cmd; in mb85rs64v_access()
45 if (cmd == MB85RS64V_WRITE_CMD || cmd == MB85RS64V_READ_CMD) { in mb85rs64v_access()
52 if (cmd == MB85RS64V_READ_CMD) { in mb85rs64v_access()
77 printk("Error during ID read\n"); in mb85rs64v_read_id()
78 return -EIO; in mb85rs64v_read_id()
82 return -EIO; in mb85rs64v_read_id()
86 return -EIO; in mb85rs64v_read_id()
90 return -EIO; in mb85rs64v_read_id()
94 return -EIO; in mb85rs64v_read_id()
110 return -EIO; in write_bytes()
113 /* write cmd */ in write_bytes()
118 return -EIO; in write_bytes()
129 /* read cmd */ in read_bytes()
133 printk("Error during SPI read\n"); in read_bytes()
134 return -EIO; in read_bytes()
150 printk("SPI device %s is not ready\n", spi->name); in main()
164 /* Do one-byte read/write */ in main()
189 printk("Read 0x%X from address 0x00.\n", data[0]); in main()
198 printk("Read 0x%X from address 0x01.\n", data[0]); in main()
201 /* Do multi-byte read/write */ in main()
223 printk("Read %d bytes from address 0x00.\n", in main()
231 err = -EIO; in main()