Home
last modified time | relevance | path

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

123

/openbmc/linux/include/linux/spi/
H A Dspi-mem.h99 struct spi_mem_op { struct
159 struct spi_mem_op op_tmpl;
276 const struct spi_mem_op *op);
287 const struct spi_mem_op *op,
336 const struct spi_mem_op *op,
340 const struct spi_mem_op *op);
344 const struct spi_mem_op *op, in spi_controller_dma_map_mem_op_data()
359 const struct spi_mem_op *op) in spi_mem_default_supports_op()
368 const struct spi_mem_op *op);
371 const struct spi_mem_op *op);
[all …]
/openbmc/u-boot/include/
H A Dspi-mem.h90 struct spi_mem_op { struct
181 int (*adjust_op_size)(struct spi_slave *slave, struct spi_mem_op *op);
183 const struct spi_mem_op *op);
185 const struct spi_mem_op *op);
214 const struct spi_mem_op *op,
218 const struct spi_mem_op *op,
223 const struct spi_mem_op *op, in spi_controller_dma_map_mem_op_data()
231 const struct spi_mem_op *op, in spi_controller_dma_unmap_mem_op_data()
238 int spi_mem_adjust_op_size(struct spi_slave *slave, struct spi_mem_op *op);
240 bool spi_mem_supports_op(struct spi_slave *slave, const struct spi_mem_op *op);
[all …]
/openbmc/linux/drivers/spi/
H A Dspi-wpcm-fiu.c136 bool (*match)(const struct spi_mem_op *op);
137 int (*exec)(struct spi_mem *mem, const struct spi_mem_op *op);
140 static bool wpcm_fiu_normal_match(const struct spi_mem_op *op) in wpcm_fiu_normal_match()
169 static bool wpcm_fiu_fast_read_match(const struct spi_mem_op *op) in wpcm_fiu_fast_read_match()
190 static bool wpcm_fiu_4ba_match(const struct spi_mem_op *op) in wpcm_fiu_4ba_match()
195 static int wpcm_fiu_4ba_exec(struct spi_mem *mem, const struct spi_mem_op *op) in wpcm_fiu_4ba_exec()
233 static bool wpcm_fiu_rdid_match(const struct spi_mem_op *op) in wpcm_fiu_rdid_match()
240 static int wpcm_fiu_rdid_exec(struct spi_mem *mem, const struct spi_mem_op *op) in wpcm_fiu_rdid_exec()
266 static bool wpcm_fiu_dummy_match(const struct spi_mem_op *op) in wpcm_fiu_dummy_match()
352 static int wpcm_fiu_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) in wpcm_fiu_exec_op()
[all …]
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()
312 int spi_mem_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) in spi_mem_exec_op()
484 struct spi_mem_op op = desc->info.op_tmpl; in spi_mem_no_dirmap_read()
504 struct spi_mem_op op = desc->info.op_tmpl; in spi_mem_no_dirmap_write()
761 const struct spi_mem_op *op, in spi_mem_read_status()
[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()
428 static int mtk_nor_read_dma(struct mtk_nor *sp, const struct spi_mem_op *op) in mtk_nor_read_dma()
449 static int mtk_nor_read_pio(struct mtk_nor *sp, const struct spi_mem_op *op) in mtk_nor_read_pio()
505 const struct spi_mem_op *op) in mtk_nor_pp_unbuffered()
[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()
710 const struct spi_mem_op *op) in intel_spi_cmp_mem_op()
748 const struct spi_mem_op *op) in intel_spi_supports_mem_op()
820 struct spi_mem_op op = desc->info.op_tmpl; in intel_spi_dirmap_read()
[all …]
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-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-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()
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-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()
/openbmc/linux/drivers/mtd/spi-nor/
H A Dspansion.c102 struct spi_mem_op op = in cypress_nor_sr_ready_and_clear_reg()
162 struct spi_mem_op op; in cypress_nor_set_memlat()
167 op = (struct spi_mem_op) in cypress_nor_set_memlat()
178 op = (struct spi_mem_op) in cypress_nor_set_memlat()
192 struct spi_mem_op op; in cypress_nor_set_octal_dtr_bits()
239 struct spi_mem_op op; in cypress_nor_set_single_spi_bits()
283 struct spi_mem_op op; in cypress_nor_quad_enable_volatile_reg()
373 struct spi_mem_op op = in cypress_nor_determine_addr_mode_by_sr1()
421 struct spi_mem_op op; in cypress_nor_set_addr_mode_nbytes()
480 struct spi_mem_op op = in cypress_nor_get_page_size()
[all …]
H A Dmicron-st.c52 struct spi_mem_op op; in micron_st_nor_octal_dtr_en()
59 op = (struct spi_mem_op) in micron_st_nor_octal_dtr_en()
67 op = (struct spi_mem_op) in micron_st_nor_octal_dtr_en()
89 struct spi_mem_op op; in micron_st_nor_octal_dtr_dis()
103 op = (struct spi_mem_op) in micron_st_nor_octal_dtr_dis()
320 struct spi_mem_op op = MICRON_ST_RDFSR_OP(fsr); in micron_st_nor_read_fsr()
355 struct spi_mem_op op = MICRON_ST_CLFSR_OP; in micron_st_nor_clear_fsr()
H A Dcore.c58 const struct spi_mem_op *op) in spi_nor_get_cmd_ext()
81 struct spi_mem_op *op, in spi_nor_spimem_setup_op()
199 struct spi_mem_op op = in spi_nor_spimem_read_data()
263 struct spi_mem_op op = in spi_nor_spimem_write_data()
367 struct spi_mem_op op = SPI_NOR_WREN_OP; in spi_nor_write_enable()
394 struct spi_mem_op op = SPI_NOR_WRDI_OP; in spi_nor_write_disable()
429 struct spi_mem_op op = in spi_nor_read_id()
1476 struct spi_mem_op op = in spi_nor_erase_sector()
2299 struct spi_mem_op *op) in spi_nor_spimem_check_op()
3246 struct spi_mem_op op; in spi_nor_soft_reset()
[all …]
/openbmc/u-boot/include/linux/mtd/
H A Dspinand.h221 const struct spi_mem_op *ops;
227 .ops = (struct spi_mem_op[]) { __VA_ARGS__ }, \
228 .nops = sizeof((struct spi_mem_op[]){ __VA_ARGS__ }) / \
229 sizeof(struct spi_mem_op), \
349 const struct spi_mem_op *read_cache;
350 const struct spi_mem_op *write_cache;
351 const struct spi_mem_op *update_cache;
/openbmc/linux/include/linux/mtd/
H A Dspinand.h286 const struct spi_mem_op *ops;
292 .ops = (struct spi_mem_op[]) { __VA_ARGS__ }, \
293 .nops = sizeof((struct spi_mem_op[]){ __VA_ARGS__ }) / \
294 sizeof(struct spi_mem_op), \
434 const struct spi_mem_op *read_cache;
435 const struct spi_mem_op *write_cache;
436 const struct spi_mem_op *update_cache;
/openbmc/u-boot/drivers/mtd/nand/spi/
H A Dcore.c50 struct spi_mem_op op = SPINAND_GET_FEATURE_OP(reg, in spinand_read_reg_op()
64 struct spi_mem_op op = SPINAND_SET_FEATURE_OP(reg, in spinand_write_reg_op()
223 struct spi_mem_op op = SPINAND_WR_EN_DIS_OP(true); in spinand_write_enable_op()
233 struct spi_mem_op op = SPINAND_PAGE_READ_OP(row); in spinand_load_page_op()
402 struct spi_mem_op op = SPINAND_PROG_EXEC_OP(row); in spinand_program_op()
464 struct spi_mem_op op = SPINAND_RESET_OP; in spinand_reset_op()
811 const struct spi_mem_op *
813 const struct spi_mem_op *ops, in spinand_find_supported_op()
872 static const struct spi_mem_op *
880 struct spi_mem_op op = variants->ops[i]; in spinand_select_op_variant()
[all …]
/openbmc/u-boot/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()
135 const struct spi_mem_op *op) in spi_mem_default_supports_op()
173 const struct spi_mem_op *op) in spi_mem_supports_op()
197 int spi_mem_exec_op(struct spi_slave *slave, const struct spi_mem_op *op) in spi_mem_exec_op()
410 int spi_mem_adjust_op_size(struct spi_slave *slave, struct spi_mem_op *op) in spi_mem_adjust_op_size()
H A Dspi-mem-nodm.c10 const struct spi_mem_op *op) in spi_mem_exec_op()
86 struct spi_mem_op *op) in spi_mem_adjust_op_size()
/openbmc/linux/drivers/mtd/nand/spi/
H A 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()
344 struct spi_mem_op op = SPINAND_WR_EN_DIS_OP(true); in spinand_write_enable_op()
354 struct spi_mem_op op = SPINAND_PAGE_READ_OP(row); in spinand_load_page_op()
484 struct spi_mem_op op = SPINAND_PROG_EXEC_OP(row); in spinand_program_op()
494 struct spi_mem_op op = SPINAND_BLK_ERASE_OP(row); in spinand_erase_op()
538 struct spi_mem_op op = SPINAND_READID_OP( in spinand_read_id_op()
551 struct spi_mem_op op = SPINAND_RESET_OP; in spinand_reset_op()
1023 static const struct spi_mem_op *
1031 struct spi_mem_op op = variants->ops[i]; in spinand_select_op_variant()
[all …]
H A Dwinbond.c66 struct spi_mem_op op = SPI_MEM_OP(SPI_MEM_OP_CMD(0xc2, 1), in w25m02gv_select_target()
111 struct spi_mem_op op = SPINAND_GET_FEATURE_OP(0x30, spinand->scratchbuf); in w25n02kv_ecc_get_status()

123