Home
last modified time | relevance | path

Searched refs:spi_mem_op (Results 1 – 25 of 26) sorted by relevance

12

/Linux-v5.10/include/linux/spi/
Dspi-mem.h98 struct spi_mem_op { struct
153 struct spi_mem_op op_tmpl;
265 int (*adjust_op_size)(struct spi_mem *mem, struct spi_mem_op *op);
267 const struct spi_mem_op *op);
269 const struct spi_mem_op *op);
304 const struct spi_mem_op *op,
308 const struct spi_mem_op *op,
312 const struct spi_mem_op *op);
317 const struct spi_mem_op *op, in spi_controller_dma_map_mem_op_data()
325 const struct spi_mem_op *op, in spi_controller_dma_unmap_mem_op_data()
[all …]
/Linux-v5.10/include/linux/mtd/
Dspinand.h260 const struct spi_mem_op *ops;
266 .ops = (struct spi_mem_op[]) { __VA_ARGS__ }, \
267 .nops = sizeof((struct spi_mem_op[]){ __VA_ARGS__ }) / \
268 sizeof(struct spi_mem_op), \
397 const struct spi_mem_op *read_cache;
398 const struct spi_mem_op *write_cache;
399 const struct spi_mem_op *update_cache;
/Linux-v5.10/drivers/spi/
Dspi-mem.c35 const struct spi_mem_op *op, in spi_controller_dma_map_mem_op_data()
81 const struct spi_mem_op *op, in spi_controller_dma_unmap_mem_op_data()
141 const struct spi_mem_op *op) in spi_mem_default_supports_op()
177 static int spi_mem_check_op(const struct spi_mem_op *op) in spi_mem_check_op()
197 const struct spi_mem_op *op) in spi_mem_internal_supports_op()
222 bool spi_mem_supports_op(struct spi_mem *mem, const struct spi_mem_op *op) in spi_mem_supports_op()
281 int spi_mem_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) in spi_mem_exec_op()
423 int spi_mem_adjust_op_size(struct spi_mem *mem, struct spi_mem_op *op) in spi_mem_adjust_op_size()
452 struct spi_mem_op op = desc->info.op_tmpl; in spi_mem_no_dirmap_read()
472 struct spi_mem_op op = desc->info.op_tmpl; in spi_mem_no_dirmap_write()
Dspi-mtk-nor.c136 static void mtk_nor_set_addr(struct mtk_nor *sp, const struct spi_mem_op *op) in mtk_nor_set_addr()
153 static bool need_bounce(struct mtk_nor *sp, const struct spi_mem_op *op) in need_bounce()
158 static bool mtk_nor_match_read(const struct spi_mem_op *op) in mtk_nor_match_read()
181 static bool mtk_nor_match_prg(const struct spi_mem_op *op) in mtk_nor_match_prg()
230 static void mtk_nor_adj_prg_size(struct spi_mem_op *op) in mtk_nor_adj_prg_size()
249 static int mtk_nor_adjust_op_size(struct spi_mem *mem, struct spi_mem_op *op) in mtk_nor_adjust_op_size()
285 const struct spi_mem_op *op) in mtk_nor_supports_op()
313 static void mtk_nor_setup_bus(struct mtk_nor *sp, const struct spi_mem_op *op) in mtk_nor_setup_bus()
382 static int mtk_nor_read_bounce(struct mtk_nor *sp, const struct spi_mem_op *op) in mtk_nor_read_bounce()
400 static int mtk_nor_read_dma(struct mtk_nor *sp, const struct spi_mem_op *op) in mtk_nor_read_dma()
[all …]
Dspi-hisi-sfc-v3xx.c145 struct spi_mem_op *op) in hisi_sfc_v3xx_adjust_op_size()
169 const struct spi_mem_op *op) in hisi_sfc_v3xx_supports_op()
263 const struct spi_mem_op *op, in hisi_sfc_v3xx_start_bus()
307 const struct spi_mem_op *op, in hisi_sfc_v3xx_generic_exec_op()
348 const struct spi_mem_op *op) in hisi_sfc_v3xx_exec_op()
Dspi-rpc-if.c20 const struct spi_mem_op *spi_op, in rpcif_spi_mem_prepare()
65 const struct spi_mem_op *op) in rpcif_spi_mem_supports_op()
113 const struct spi_mem_op *op) in rpcif_spi_mem_exec_op()
Dspi-fsl-qspi.c369 const struct spi_mem_op *op) in fsl_qspi_supports_op()
417 const struct spi_mem_op *op) in fsl_qspi_prepare_lut()
552 static void fsl_qspi_read_ahb(struct fsl_qspi *q, const struct spi_mem_op *op) in fsl_qspi_read_ahb()
560 const struct spi_mem_op *op) in fsl_qspi_fill_txfifo()
585 const struct spi_mem_op *op) in fsl_qspi_read_rxfifo()
605 static int fsl_qspi_do_op(struct fsl_qspi *q, const struct spi_mem_op *op) in fsl_qspi_do_op()
642 static int fsl_qspi_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) in fsl_qspi_exec_op()
704 static int fsl_qspi_adjust_op_size(struct spi_mem *mem, struct spi_mem_op *op) in fsl_qspi_adjust_op_size()
Dspi-npcm-fiu.c229 struct spi_mem_op drd_op;
246 const struct spi_mem_op *op) in npcm_fiu_set_drd()
315 const struct spi_mem_op *op, u32 addr, in npcm_fiu_uma_read()
370 const struct spi_mem_op *op, u8 cmd, in npcm_fiu_uma_write()
420 const struct spi_mem_op *op) in npcm_fiu_manualwrite()
468 static int npcm_fiu_read(struct spi_mem *mem, const struct spi_mem_op *op) in npcm_fiu_read()
525 static int npcm_fiu_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) in npcm_fiu_exec_op()
Dspi-stm32-qspi.c155 const struct spi_mem_op *op) in stm32_qspi_tx_poll()
187 const struct spi_mem_op *op) in stm32_qspi_tx_mm()
202 const struct spi_mem_op *op) in stm32_qspi_tx_dma()
265 static int stm32_qspi_tx(struct stm32_qspi *qspi, const struct spi_mem_op *op) in stm32_qspi_tx()
290 const struct spi_mem_op *op) in stm32_qspi_wait_cmd()
329 static int stm32_qspi_send(struct spi_mem *mem, const struct spi_mem_op *op) in stm32_qspi_send()
431 static int stm32_qspi_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) in stm32_qspi_exec_op()
Dspi-nxp-fspi.c414 const struct spi_mem_op *op) in nxp_fspi_supports_op()
504 const struct spi_mem_op *op) in nxp_fspi_prepare_lut()
673 static int nxp_fspi_read_ahb(struct nxp_fspi *f, const struct spi_mem_op *op) in nxp_fspi_read_ahb()
705 const struct spi_mem_op *op) in nxp_fspi_fill_txfifo()
749 const struct spi_mem_op *op) in nxp_fspi_read_rxfifo()
799 static int nxp_fspi_do_op(struct nxp_fspi *f, const struct spi_mem_op *op) in nxp_fspi_do_op()
839 static int nxp_fspi_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) in nxp_fspi_exec_op()
877 static int nxp_fspi_adjust_op_size(struct spi_mem *mem, struct spi_mem_op *op) in nxp_fspi_adjust_op_size()
Datmel-quadspi.c251 static inline bool atmel_qspi_is_compatible(const struct spi_mem_op *op, in atmel_qspi_is_compatible()
266 static int atmel_qspi_find_mode(const struct spi_mem_op *op) in atmel_qspi_find_mode()
278 const struct spi_mem_op *op) in atmel_qspi_supports_op()
298 const struct spi_mem_op *op, u32 *offset) in atmel_qspi_set_cfg()
408 static int atmel_qspi_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) in atmel_qspi_exec_op()
Dspi-cadence-quadspi.c349 const struct spi_mem_op *op) in cqspi_command_read()
400 const struct spi_mem_op *op) in cqspi_command_write()
451 const struct spi_mem_op *op) in cqspi_read_setup()
573 const struct spi_mem_op *op) in cqspi_write_setup()
839 const struct spi_mem_op *op) in cqspi_set_protocol()
868 const struct spi_mem_op *op) in cqspi_write()
959 const struct spi_mem_op *op) in cqspi_read()
981 static int cqspi_mem_process(struct spi_mem *mem, const struct spi_mem_op *op) in cqspi_mem_process()
1002 static int cqspi_exec_mem_op(struct spi_mem *mem, const struct spi_mem_op *op) in cqspi_exec_mem_op()
Dspi-dw.h109 (sizeof_field(struct spi_mem_op, cmd.opcode) + \
110 sizeof_field(struct spi_mem_op, addr.val) + 256)
Dspi-bcm-qspi.c217 const struct spi_mem_op *bspi_rf_op;
384 const struct spi_mem_op *op, int hp) in bcm_qspi_bspi_set_flex_mode()
430 const struct spi_mem_op *op, int hp) in bcm_qspi_bspi_set_override()
475 const struct spi_mem_op *op, int hp) in bcm_qspi_bspi_set_mode()
863 const struct spi_mem_op *op) in bcm_qspi_bspi_exec_mem_op()
978 const struct spi_mem_op *op) in bcm_qspi_mspi_exec_mem_op()
1018 const struct spi_mem_op *op) in bcm_qspi_exec_mem_op()
Dspi-dw-core.c466 static int dw_spi_adjust_mem_op_size(struct spi_mem *mem, struct spi_mem_op *op) in dw_spi_adjust_mem_op_size()
475 const struct spi_mem_op *op) in dw_spi_supports_mem_op()
484 static int dw_spi_init_mem_buf(struct dw_spi *dws, const struct spi_mem_op *op) in dw_spi_init_mem_buf()
650 static int dw_spi_exec_mem_op(struct spi_mem *mem, const struct spi_mem_op *op) in dw_spi_exec_mem_op()
Dspi-zynq-qspi.c226 const struct spi_mem_op *op) in zynq_qspi_supports_op()
526 const struct spi_mem_op *op) in zynq_qspi_exec_mem_op()
Dspi-mxic.c336 const struct spi_mem_op *op) in mxic_spi_mem_supports_op()
353 const struct spi_mem_op *op) in mxic_spi_mem_exec_op()
Dspi-ti-qspi.c577 static int ti_qspi_adjust_op_size(struct spi_mem *mem, struct spi_mem_op *op) in ti_qspi_adjust_op_size()
607 const struct spi_mem_op *op) in ti_qspi_exec_mem_op()
/Linux-v5.10/drivers/mtd/spi-nor/
Dcore.c53 static bool spi_nor_spimem_bounce(struct spi_nor *nor, struct spi_mem_op *op) in spi_nor_spimem_bounce()
74 static int spi_nor_spimem_exec_op(struct spi_nor *nor, struct spi_mem_op *op) in spi_nor_spimem_exec_op()
98 struct spi_mem_op op = in spi_nor_spimem_read_data()
164 struct spi_mem_op op = in spi_nor_spimem_write_data()
224 struct spi_mem_op op = in spi_nor_write_enable()
253 struct spi_mem_op op = in spi_nor_write_disable()
284 struct spi_mem_op op = in spi_nor_read_sr()
315 struct spi_mem_op op = in spi_nor_read_fsr()
347 struct spi_mem_op op = in spi_nor_read_cr()
377 struct spi_mem_op op = in spi_nor_set_4byte_addr_mode()
[all …]
/Linux-v5.10/drivers/mtd/nand/spi/
Dcore.c25 struct spi_mem_op op = SPINAND_GET_FEATURE_OP(reg, in spinand_read_reg_op()
39 struct spi_mem_op op = SPINAND_SET_FEATURE_OP(reg, in spinand_write_reg_op()
198 struct spi_mem_op op = SPINAND_WR_EN_DIS_OP(true); in spinand_write_enable_op()
208 struct spi_mem_op op = SPINAND_PAGE_READ_OP(row); in spinand_load_page_op()
329 struct spi_mem_op op = SPINAND_PROG_EXEC_OP(row); in spinand_program_op()
339 struct spi_mem_op op = SPINAND_BLK_ERASE_OP(row); in spinand_erase_op()
377 struct spi_mem_op op = SPINAND_READID_OP( in spinand_read_id_op()
390 struct spi_mem_op op = SPINAND_RESET_OP; in spinand_reset_op()
836 static const struct spi_mem_op *
844 struct spi_mem_op op = variants->ops[i]; in spinand_select_op_variant()
[all …]
Dwinbond.c66 struct spi_mem_op op = SPI_MEM_OP(SPI_MEM_OP_CMD(0xc2, 1), in w25m02gv_select_target()
Dmacronix.c54 struct spi_mem_op op = SPI_MEM_OP(SPI_MEM_OP_CMD(0x7c, 1), in mx35lf1ge4ab_get_eccsr()
Dmicron.c80 struct spi_mem_op op = SPINAND_SET_FEATURE_OP(MICRON_DIE_SELECT_REG, in micron_select_target()
Dgigadevice.c168 struct spi_mem_op op = SPINAND_GET_FEATURE_OP(GD5FXGQ4UEXXG_REG_STATUS2, in gd5fxgq4uexxg_ecc_get_status()
Dtoshiba.c76 struct spi_mem_op op = SPINAND_GET_FEATURE_OP(0x30, &mbf); in tx58cxgxsxraix_ecc_get_status()

12