Home
last modified time | relevance | path

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

12

/linux/include/linux/spi/
H A Dspi-mem.h99 struct spi_mem_op { struct
159 struct spi_mem_op op_tmpl;
276 int (*adjust_op_size)(struct spi_mem *mem, struct spi_mem_op *op);
278 const struct spi_mem_op *op);
280 const struct spi_mem_op *op);
289 const struct spi_mem_op *op,
334 const struct spi_mem_op *op,
338 const struct spi_mem_op *op,
342 const struct spi_mem_op *op);
346 const struct spi_mem_op *op, in spi_controller_dma_map_mem_op_data()
[all …]
/linux/include/linux/mtd/
H A Dspinand.h287 const struct spi_mem_op *ops;
293 .ops = (struct spi_mem_op[]) { __VA_ARGS__ }, \
294 .nops = sizeof((struct spi_mem_op[]){ __VA_ARGS__ }) / \
295 sizeof(struct spi_mem_op), \
430 * passed in spi_mem_op be DMA-able, so we can't based the bufs on
449 const struct spi_mem_op *read_cache;
450 const struct spi_mem_op *write_cache;
451 const struct spi_mem_op *update_cache;
/linux/drivers/spi/
H A Dspi-mem.c37 const struct spi_mem_op *op, in spi_controller_dma_map_mem_op_data()
83 const struct spi_mem_op *op, in spi_controller_dma_unmap_mem_op_data()
143 const struct spi_mem_op *op) in spi_mem_check_buswidth()
165 const struct spi_mem_op *op) in spi_mem_default_supports_op()
199 static int spi_mem_check_op(const struct spi_mem_op *op) in spi_mem_check_op()
228 const struct spi_mem_op *op) in spi_mem_internal_supports_op()
253 bool spi_mem_supports_op(struct spi_mem *mem, const struct spi_mem_op *op) in spi_mem_supports_op()
301 const struct spi_mem_op *op, int exec_op_ret) in spi_mem_add_op_stats()
355 int spi_mem_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) in spi_mem_exec_op()
502 int spi_mem_adjust_op_size(struct spi_mem *mem, struct spi_mem_op *op) in spi_mem_adjust_op_size()
[all …]
H A Dspi-gxp.c67 static int gxp_spi_read_reg(struct gxp_spi_chip *chip, const struct spi_mem_op *op) in gxp_spi_read_reg()
105 static int gxp_spi_write_reg(struct gxp_spi_chip *chip, const struct spi_mem_op *op) in gxp_spi_write_reg()
142 static ssize_t gxp_spi_read(struct gxp_spi_chip *chip, const struct spi_mem_op *op) in gxp_spi_read()
155 static ssize_t gxp_spi_write(struct gxp_spi_chip *chip, const struct spi_mem_op *op) in gxp_spi_write()
200 static int do_gxp_exec_mem_op(struct spi_mem *mem, const struct spi_mem_op *op) in do_gxp_exec_mem_op()
221 static int gxp_exec_mem_op(struct spi_mem *mem, const struct spi_mem_op *op) in gxp_exec_mem_op()
H A Dspi-mtk-nor.c163 static void mtk_nor_set_addr(struct mtk_nor *sp, const struct spi_mem_op *op) in mtk_nor_set_addr()
180 static bool need_bounce(struct mtk_nor *sp, const struct spi_mem_op *op) in need_bounce()
185 static bool mtk_nor_match_read(const struct spi_mem_op *op) in mtk_nor_match_read()
208 static bool mtk_nor_match_prg(const struct spi_mem_op *op) in mtk_nor_match_prg()
257 static void mtk_nor_adj_prg_size(struct spi_mem_op *op) in mtk_nor_adj_prg_size()
276 static int mtk_nor_adjust_op_size(struct spi_mem *mem, struct spi_mem_op *op) in mtk_nor_adjust_op_size()
312 const struct spi_mem_op *op) in mtk_nor_supports_op()
340 static void mtk_nor_setup_bus(struct mtk_nor *sp, const struct spi_mem_op *op) in mtk_nor_setup_bus()
410 static int mtk_nor_read_bounce(struct mtk_nor *sp, const struct spi_mem_op *op) in mtk_nor_read_bounce()
428 static int mtk_nor_read_dma(struct mtk_nor *sp, const struct spi_mem_op *op) in mtk_nor_read_dma()
[all …]
H A Dspi-sn-f-ospi.c117 static u32 f_ospi_get_dummy_cycle(const struct spi_mem_op *op) in f_ospi_get_dummy_cycle()
262 const struct spi_mem_op *op) in f_ospi_config_indir_protocol()
336 const struct spi_mem_op *op) in f_ospi_indir_prepare_op()
402 const struct spi_mem_op *op) in f_ospi_indir_read()
456 const struct spi_mem_op *op) in f_ospi_indir_write()
502 static int f_ospi_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) in f_ospi_exec_op()
527 const struct spi_mem_op *op) in f_ospi_supports_op_width()
553 const struct spi_mem_op *op) in f_ospi_supports_op()
567 static int f_ospi_adjust_op_size(struct spi_mem *mem, struct spi_mem_op *op) in f_ospi_adjust_op_size()
H A Dspi-intel.c177 struct spi_mem_op mem_op;
182 const struct spi_mem_op *op);
459 const struct spi_mem_op *op) in intel_spi_read_reg()
482 const struct spi_mem_op *op) in intel_spi_write_reg()
543 const struct spi_mem_op *op) in intel_spi_read()
604 const struct spi_mem_op *op) in intel_spi_write()
667 const struct spi_mem_op *op) in intel_spi_erase()
703 static int intel_spi_adjust_op_size(struct spi_mem *mem, struct spi_mem_op *op) in intel_spi_adjust_op_size()
710 const struct spi_mem_op *op) in intel_spi_cmp_mem_op()
734 intel_spi_match_mem_op(struct intel_spi *ispi, const struct spi_mem_op *op) in intel_spi_match_mem_op()
[all …]
H A Dspi-amd.c364 const struct spi_mem_op *op) in amd_spi_supports_op()
374 static int amd_spi_adjust_op_size(struct spi_mem *mem, struct spi_mem_op *op) in amd_spi_adjust_op_size()
381 const struct spi_mem_op *op) in amd_spi_set_addr()
397 const struct spi_mem_op *op) in amd_spi_mem_data_out()
417 const struct spi_mem_op *op) in amd_spi_mem_data_in()
439 const struct spi_mem_op *op) in amd_spi_exec_mem_op()
H A Dspi-rockchip-sfc.c283 static void rockchip_sfc_adjust_op_work(struct spi_mem_op *op) in rockchip_sfc_adjust_op_work()
300 const struct spi_mem_op *op, in rockchip_sfc_xfer_setup()
438 const struct spi_mem_op *op, u32 len) in rockchip_sfc_xfer_data_poll()
449 const struct spi_mem_op *op, u32 len) in rockchip_sfc_xfer_data_dma()
488 static int rockchip_sfc_exec_mem_op(struct spi_mem *mem, const struct spi_mem_op *op) in rockchip_sfc_exec_mem_op()
503 rockchip_sfc_adjust_op_work((struct spi_mem_op *)op); in rockchip_sfc_exec_mem_op()
524 static int rockchip_sfc_adjust_op_size(struct spi_mem *mem, struct spi_mem_op *op) in rockchip_sfc_adjust_op_size()
H A Dspi-stm32-qspi.c167 const struct spi_mem_op *op) in stm32_qspi_tx_poll()
199 const struct spi_mem_op *op) in stm32_qspi_tx_mm()
214 const struct spi_mem_op *op) in stm32_qspi_tx_dma()
277 static int stm32_qspi_tx(struct stm32_qspi *qspi, const struct spi_mem_op *op) in stm32_qspi_tx()
358 static int stm32_qspi_send(struct spi_device *spi, const struct spi_mem_op *op) in stm32_qspi_send()
445 static int stm32_qspi_poll_status(struct spi_mem *mem, const struct spi_mem_op *op, in stm32_qspi_poll_status()
477 static int stm32_qspi_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) in stm32_qspi_exec_op()
522 struct spi_mem_op op; in stm32_qspi_dirmap_read()
535 memcpy(&op, &desc->info.op_tmpl, sizeof(struct spi_mem_op)); in stm32_qspi_dirmap_read()
563 struct spi_mem_op op; in stm32_qspi_transfer_one_message()
H A Dspi-hisi-sfc-v3xx.c148 struct spi_mem_op *op) in hisi_sfc_v3xx_adjust_op_size()
172 const struct spi_mem_op *op) in hisi_sfc_v3xx_supports_op()
274 const struct spi_mem_op *op, in hisi_sfc_v3xx_start_bus()
318 const struct spi_mem_op *op, in hisi_sfc_v3xx_generic_exec_op()
360 const struct spi_mem_op *op) in hisi_sfc_v3xx_exec_op()
H A Dspi-fsl-qspi.c368 const struct spi_mem_op *op) in fsl_qspi_supports_op()
416 const struct spi_mem_op *op) in fsl_qspi_prepare_lut()
551 static void fsl_qspi_read_ahb(struct fsl_qspi *q, const struct spi_mem_op *op) in fsl_qspi_read_ahb()
559 const struct spi_mem_op *op) in fsl_qspi_fill_txfifo()
584 const struct spi_mem_op *op) in fsl_qspi_read_rxfifo()
604 static int fsl_qspi_do_op(struct fsl_qspi *q, const struct spi_mem_op *op) in fsl_qspi_do_op()
641 static int fsl_qspi_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) in fsl_qspi_exec_op()
703 static int fsl_qspi_adjust_op_size(struct spi_mem *mem, struct spi_mem_op *op) in fsl_qspi_adjust_op_size()
H A Dspi-microchip-core-qspi.c126 static int mchp_coreqspi_set_mode(struct mchp_coreqspi *qspi, const struct spi_mem_op *op) in mchp_coreqspi_set_mode()
314 static inline void mchp_coreqspi_config_op(struct mchp_coreqspi *qspi, const struct spi_mem_op *op) in mchp_coreqspi_config_op()
388 static int mchp_coreqspi_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) in mchp_coreqspi_exec_op()
458 static bool mchp_coreqspi_supports_op(struct spi_mem *mem, const struct spi_mem_op *op) in mchp_coreqspi_supports_op()
485 static int mchp_coreqspi_adjust_op_size(struct spi_mem *mem, struct spi_mem_op *op) in mchp_coreqspi_adjust_op_size()
H A Dspi-npcm-fiu.c249 struct spi_mem_op drd_op;
266 const struct spi_mem_op *op) in npcm_fiu_set_drd()
334 const struct spi_mem_op *op, u32 addr, in npcm_fiu_uma_read()
390 const struct spi_mem_op *op, u8 cmd, in npcm_fiu_uma_write()
440 const struct spi_mem_op *op) in npcm_fiu_manualwrite()
488 static int npcm_fiu_read(struct spi_mem *mem, const struct spi_mem_op *op) in npcm_fiu_read()
545 static int npcm_fiu_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) in npcm_fiu_exec_op()
H A Dspi-cadence-quadspi.c382 static unsigned int cqspi_calc_rdreg(const struct spi_mem_op *op) in cqspi_calc_rdreg()
393 static unsigned int cqspi_calc_dummy(const struct spi_mem_op *op) in cqspi_calc_dummy()
465 const struct spi_mem_op *op, in cqspi_setup_opcode_ext()
488 const struct spi_mem_op *op, unsigned int shift) in cqspi_enable_dtr()
523 const struct spi_mem_op *op) in cqspi_command_read()
606 const struct spi_mem_op *op) in cqspi_command_write()
675 const struct spi_mem_op *op) in cqspi_read_setup()
982 const struct spi_mem_op *op) in cqspi_write_setup()
1284 const struct spi_mem_op *op) in cqspi_write()
1380 const struct spi_mem_op *op) in cqspi_read()
[all …]
H A Dspi-aspeed-smc.c106 static u32 aspeed_spi_get_io_mode(const struct spi_mem_op *op) in aspeed_spi_get_io_mode()
208 const struct spi_mem_op *op) in aspeed_spi_read_reg()
219 const struct spi_mem_op *op) in aspeed_spi_write_reg()
230 const struct spi_mem_op *op, in aspeed_spi_read_user()
257 const struct spi_mem_op *op) in aspeed_spi_write_user()
271 static bool aspeed_spi_supports_op(struct spi_mem *mem, const struct spi_mem_op *op) in aspeed_spi_supports_op()
296 static int do_aspeed_spi_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) in do_aspeed_spi_exec_op()
365 static int aspeed_spi_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) in aspeed_spi_exec_op()
558 struct spi_mem_op *op = &desc->info.op_tmpl; in aspeed_spi_dirmap_create()
H A Dspi-nxp-fspi.c456 const struct spi_mem_op *op) in nxp_fspi_supports_op()
546 const struct spi_mem_op *op) in nxp_fspi_prepare_lut()
755 static int nxp_fspi_read_ahb(struct nxp_fspi *f, const struct spi_mem_op *op) in nxp_fspi_read_ahb()
786 const struct spi_mem_op *op) in nxp_fspi_fill_txfifo()
831 const struct spi_mem_op *op) in nxp_fspi_read_rxfifo()
881 static int nxp_fspi_do_op(struct nxp_fspi *f, const struct spi_mem_op *op) in nxp_fspi_do_op()
922 static int nxp_fspi_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) in nxp_fspi_exec_op()
962 static int nxp_fspi_adjust_op_size(struct spi_mem *mem, struct spi_mem_op *op) in nxp_fspi_adjust_op_size()
H A Datmel-quadspi.c252 static inline bool atmel_qspi_is_compatible(const struct spi_mem_op *op, in atmel_qspi_is_compatible()
267 static int atmel_qspi_find_mode(const struct spi_mem_op *op) in atmel_qspi_find_mode()
279 const struct spi_mem_op *op) in atmel_qspi_supports_op()
296 const struct spi_mem_op *op, u32 *offset) in atmel_qspi_set_cfg()
407 static int atmel_qspi_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) in atmel_qspi_exec_op()
H A Dspi-airoha-snfi.c542 static bool airoha_snand_is_page_ops(const struct spi_mem_op *op) in airoha_snand_is_page_ops()
575 struct spi_mem_op *op) in airoha_snand_adjust_op_size()
602 const struct spi_mem_op *op) in airoha_snand_supports_op()
639 struct spi_mem_op *op = &desc->info.op_tmpl; in airoha_snand_dirmap_read()
769 struct spi_mem_op *op = &desc->info.op_tmpl; in airoha_snand_dirmap_write()
888 const struct spi_mem_op *op) in airoha_snand_exec_op()
H A Dspi-dw.h127 (sizeof_field(struct spi_mem_op, cmd.opcode) + \
128 sizeof_field(struct spi_mem_op, addr.val) + 256)
H A Dspi-bcm-qspi.c238 const struct spi_mem_op *bspi_rf_op;
417 const struct spi_mem_op *op, int hp) in bcm_qspi_bspi_set_flex_mode()
464 const struct spi_mem_op *op, int hp) in bcm_qspi_bspi_set_override()
509 const struct spi_mem_op *op, int hp) in bcm_qspi_bspi_set_mode()
1036 const struct spi_mem_op *op) in bcm_qspi_bspi_exec_mem_op()
1151 const struct spi_mem_op *op) in bcm_qspi_mspi_exec_mem_op()
1191 const struct spi_mem_op *op) in bcm_qspi_exec_mem_op()
H A Dspi-mtk-snfi.c460 static int mtk_snand_mac_io(struct mtk_snand *snf, const struct spi_mem_op *op) in mtk_snand_mac_io()
862 const struct spi_mem_op *op) in mtk_snand_read_page_cache()
1055 const struct spi_mem_op *op) in mtk_snand_write_page_cache()
1200 static bool mtk_snand_is_page_ops(const struct spi_mem_op *op) in mtk_snand_is_page_ops()
1243 const struct spi_mem_op *op) in mtk_snand_supports_op()
1256 static int mtk_snand_adjust_op_size(struct spi_mem *mem, struct spi_mem_op *op) in mtk_snand_adjust_op_size()
1283 static int mtk_snand_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) in mtk_snand_exec_op()
H A Dspi-dw-core.c476 static int dw_spi_adjust_mem_op_size(struct spi_mem *mem, struct spi_mem_op *op) in dw_spi_adjust_mem_op_size()
485 const struct spi_mem_op *op) in dw_spi_supports_mem_op()
494 static int dw_spi_init_mem_buf(struct dw_spi *dws, const struct spi_mem_op *op) in dw_spi_init_mem_buf()
660 static int dw_spi_exec_mem_op(struct spi_mem *mem, const struct spi_mem_op *op) in dw_spi_exec_mem_op()
/linux/drivers/mtd/spi-nor/
H A Dcore.h600 struct spi_mem_op *op,
629 int spi_nor_read_any_reg(struct spi_nor *nor, struct spi_mem_op *op,
631 int spi_nor_write_any_volatile_reg(struct spi_nor *nor, struct spi_mem_op *op,
/linux/drivers/mtd/nand/spi/
H A Dgigadevice.c188 struct spi_mem_op op = SPINAND_GET_FEATURE_OP(GD5FXGQXXEXXG_REG_STATUS2, in gd5fxgq4uexxg_ecc_get_status()
231 struct spi_mem_op op = SPINAND_GET_FEATURE_OP(GD5FXGQXXEXXG_REG_STATUS2, in gd5fxgq5xexxg_ecc_get_status()

12