Lines Matching +full:offset +full:- +full:mode

5  * SPDX-License-Identifier: Apache-2.0
67 /* The 8-bit command. 1 x I/O read command. */
73 /* The 8-bit mode byte. This value is 0xFFFFFFFF when there is no mode present. */
74 .mode = 0xFFFFFFFFU,
75 /* The width of the mode command transfer. */
92 * https://iot-webserver.aus.cypress.com/projects/iot_release/
93 * ASSETS/repo/mtb-pdl-cat1/develop/Latest/deploy/docs/
127 /* Specifies the command to read the QE-containing status register. */
129 /* Specifies the command to read the WIP-containing status register. */
133 /* Specifies the command to write into the QE-containing status register. */
139 /* The max time for the erase type-1 cycle-time in ms. */
141 /* The max time for the chip-erase cycle-time in ms. */
143 /* The max time for the page-program cycle-time in us. */
160 /* Specifies the command to read the OE-containing status register. */
162 /* Specifies the command to write the OE-containing status register. */
168 /* Frequency of operation used in Octal mode */
178 /* The data-line selection options for a slave device. */
181 * Valid when the memory-mapped mode is enabled.
185 * The size is allocated from the base address. Valid when the memory mapped mode is
190 * Valid when the memory mapped mode is enabled.
197 * continuous address, starts with the overhead phases (command, address, mode, dummy
205 struct ifx_cat1_flash_data *data = dev->data; in flash_ifx_sem_take()
207 k_sem_take(&data->sem, K_FOREVER); in flash_ifx_sem_take()
212 struct ifx_cat1_flash_data *data = dev->data; in flash_ifx_sem_give()
214 k_sem_give(&data->sem); in flash_ifx_sem_give()
217 static int ifx_cat1_flash_read(const struct device *dev, off_t offset, void *data, size_t data_len) in ifx_cat1_flash_read() argument
228 rslt = cy_serial_flash_qspi_read(offset, data_len, data); in ifx_cat1_flash_read()
230 LOG_ERR("Error reading @ %lu (Err:0x%x)", offset, rslt); in ifx_cat1_flash_read()
231 ret = -EIO; in ifx_cat1_flash_read()
238 static int ifx_cat1_flash_write(const struct device *dev, off_t offset, const void *data, in ifx_cat1_flash_write() argument
248 if (offset < 0) { in ifx_cat1_flash_write()
249 return -EINVAL; in ifx_cat1_flash_write()
254 rslt = cy_serial_flash_qspi_write(offset, data_len, data); in ifx_cat1_flash_write()
256 LOG_ERR("Error in writing @ %lu (Err:0x%x)", offset, rslt); in ifx_cat1_flash_write()
257 ret = -EIO; in ifx_cat1_flash_write()
264 static int ifx_cat1_flash_erase(const struct device *dev, off_t offset, size_t size) in ifx_cat1_flash_erase() argument
269 if (offset < 0) { in ifx_cat1_flash_erase()
270 return -EINVAL; in ifx_cat1_flash_erase()
275 rslt = cy_serial_flash_qspi_erase(offset, size); in ifx_cat1_flash_erase()
278 ret = -EIO; in ifx_cat1_flash_erase()
315 struct ifx_cat1_flash_data *data = dev->data; in ifx_cat1_flash_init()
324 k_sem_init(&data->sem, 1, 1); in ifx_cat1_flash_init()