Home
last modified time | relevance | path

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

12

/linux/include/linux/spi/
H A Dspi-mem.h116 * struct spi_mem_op - describes a SPI memory operation
148 struct spi_mem_op { struct
206 * the portion of memory that is directly mapped and the spi_mem_op that should argument
212 struct spi_mem_op op_tmpl;
329 int (*adjust_op_size)(struct spi_mem *mem, struct spi_mem_op *op);
331 const struct spi_mem_op *op);
333 const struct spi_mem_op *op);
342 const struct spi_mem_op *op,
392 const struct spi_mem_op *op,
396 const struct spi_mem_op *o
149 __anon33d939790108spi_mem_op global() argument
155 cmdspi_mem_op global() argument
157 __anon33d939790208spi_mem_op global() argument
163 addrspi_mem_op global() argument
165 __anon33d939790308spi_mem_op global() argument
170 dummyspi_mem_op global() argument
172 __anon33d939790408spi_mem_op global() argument
[all...]
/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()
150 static int wpcm_fiu_normal_exec(struct spi_mem *mem, const struct spi_mem_op *op) in wpcm_fiu_normal_exec()
169 static bool wpcm_fiu_fast_read_match(const struct spi_mem_op *op) in wpcm_fiu_fast_read_match()
177 static int wpcm_fiu_fast_read_exec(struct spi_mem *mem, const struct spi_mem_op *op) in wpcm_fiu_fast_read_exec()
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 *o
[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()
212 static int spi_mem_check_op(const struct spi_mem_op *op) in spi_mem_check_op()
241 const struct spi_mem_op *op) in spi_mem_internal_supports_op()
266 bool spi_mem_supports_op(struct spi_mem *mem, const struct spi_mem_op *op) in spi_mem_supports_op()
314 const struct spi_mem_op *op, int exec_op_ret) in spi_mem_add_op_stats()
368 int spi_mem_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) in spi_mem_exec_op()
378 spi_mem_adjust_op_freq(mem, (struct spi_mem_op *)o in spi_mem_exec_op()
[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 *o
[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()
265 const struct spi_mem_op *op) in f_ospi_config_indir_protocol()
339 const struct spi_mem_op *op) in f_ospi_indir_prepare_op()
404 const struct spi_mem_op *op) in f_ospi_indir_read()
458 const struct spi_mem_op *op) in f_ospi_indir_write()
504 static int f_ospi_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) in f_ospi_exec_op()
529 const struct spi_mem_op *op) in f_ospi_supports_op_width()
555 const struct spi_mem_op *op) in f_ospi_supports_op()
569 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-realtek-rtl-snand.c54 const struct spi_mem_op *op) in rtl_snand_supports_op()
83 static int rtl_snand_xfer_head(struct rtl_snand *snand, int cs, const struct spi_mem_op *op) in rtl_snand_xfer_head()
156 static int rtl_snand_xfer(struct rtl_snand *snand, int cs, const struct spi_mem_op *op) in rtl_snand_xfer()
232 static int rtl_snand_dma_xfer(struct rtl_snand *snand, int cs, const struct spi_mem_op *op) in rtl_snand_dma_xfer()
315 static bool rtl_snand_dma_op(const struct spi_mem_op *op) in rtl_snand_dma_op()
326 static int rtl_snand_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) in rtl_snand_exec_op()
H A Dspi-sg2044-nor.c138 const struct spi_mem_op *op, loff_t from, in sg2044_spifmc_read_64k()
194 const struct spi_mem_op *op) in sg2044_spifmc_read()
220 const struct spi_mem_op *op) in sg2044_spifmc_write()
278 const struct spi_mem_op *op) in sg2044_spifmc_tran_cmd()
311 const struct spi_mem_op *op) in sg2044_spifmc_trans()
322 const struct spi_mem_op *op) in sg2044_spifmc_trans_reg()
389 const struct spi_mem_op *op) in sg2044_spifmc_exec_op()
H A Dspi-intel.c181 struct spi_mem_op mem_op;
186 const struct spi_mem_op *op);
468 const struct spi_mem_op *op) in intel_spi_read_reg()
491 const struct spi_mem_op *op) in intel_spi_write_reg()
552 const struct spi_mem_op *op) in intel_spi_read()
613 const struct spi_mem_op *op) in intel_spi_write()
676 const struct spi_mem_op *op) in intel_spi_erase()
712 static int intel_spi_adjust_op_size(struct spi_mem *mem, struct spi_mem_op *op) in intel_spi_adjust_op_size()
719 const struct spi_mem_op *op) in intel_spi_cmp_mem_op()
743 intel_spi_match_mem_op(struct intel_spi *ispi, const struct spi_mem_op *o
[all...]
H A Datmel-quadspi.c292 int (*set_cfg)(struct atmel_qspi *aq, const struct spi_mem_op *op,
294 int (*transfer)(struct spi_mem *mem, const struct spi_mem_op *op,
439 static inline bool atmel_qspi_is_compatible(const struct spi_mem_op *op, in atmel_qspi_is_compatible()
454 static int atmel_qspi_find_mode(const struct spi_mem_op *op) in atmel_qspi_find_mode()
465 static int atmel_qspi_sama7g5_find_mode(const struct spi_mem_op *op) in atmel_qspi_sama7g5_find_mode()
477 const struct spi_mem_op *op) in atmel_qspi_supports_op()
521 const struct spi_mem_op *op, u32 *offset) in atmel_qspi_set_cfg()
651 const struct spi_mem_op *op, u32 offset) in atmel_qspi_transfer()
685 const struct spi_mem_op *op, u32 *offset) in atmel_qspi_sama7g5_set_cfg()
808 const struct spi_mem_op *o in atmel_qspi_dma_rx_xfer()
[all...]
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()
526 const struct spi_mem_op *op) in fsl_qspi_select_mem()
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()
H A Dspi-amd.c441 const struct spi_mem_op *op) in amd_spi_supports_op()
476 static int amd_spi_adjust_op_size(struct spi_mem *mem, struct spi_mem_op *op) in amd_spi_adjust_op_size()
496 const struct spi_mem_op *op) in amd_spi_set_addr()
511 static void amd_spi_hiddma_write(struct amd_spi *amd_spi, const struct spi_mem_op *op) in amd_spi_hiddma_write()
542 const struct spi_mem_op *op) in amd_spi_mem_data_out()
603 static void amd_spi_hiddma_read(struct amd_spi *amd_spi, const struct spi_mem_op *op) in amd_spi_hiddma_read()
662 const struct spi_mem_op *op) in amd_spi_mem_data_in()
723 const struct spi_mem_op *op) in amd_set_spi_addr_mode()
734 const struct spi_mem_op *op) in amd_spi_exec_mem_op()
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-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()
440 static int stm32_qspi_poll_status(struct spi_mem *mem, const struct spi_mem_op *op, in stm32_qspi_poll_status()
471 static int stm32_qspi_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) in stm32_qspi_exec_op()
515 struct spi_mem_op op; in stm32_qspi_dirmap_read()
525 * spi_mem_op template with offs, len and *buf in order to get in stm32_qspi_dirmap_read()
526 * all needed transfer information into struct spi_mem_op in stm32_qspi_dirmap_read()
[all...]
H A Dspi-stm32-ospi.c304 const struct spi_mem_op *op) in stm32_ospi_tx_mm()
312 const struct spi_mem_op *op) in stm32_ospi_tx_dma()
376 static int stm32_ospi_xfer(struct stm32_ospi *ospi, const struct spi_mem_op *op) in stm32_ospi_xfer()
401 const struct spi_mem_op *op) in stm32_ospi_wait_poll_status()
436 static int stm32_ospi_send(struct spi_device *spi, const struct spi_mem_op *op) in stm32_ospi_send()
526 const struct spi_mem_op *op, in stm32_ospi_poll_status()
555 static int stm32_ospi_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) in stm32_ospi_exec_op()
599 struct spi_mem_op op; in stm32_ospi_dirmap_read()
610 * spi_mem_op template with offs, len and *buf in order to get in stm32_ospi_dirmap_read()
611 * all needed transfer information into struct spi_mem_op in stm32_ospi_dirmap_read()
[all...]
H A Dspi-rockchip-sfc.c302 static void rockchip_sfc_adjust_op_work(struct spi_mem_op *op) in rockchip_sfc_adjust_op_work()
319 const struct spi_mem_op *op, in rockchip_sfc_xfer_setup()
459 const struct spi_mem_op *op, u32 len) in rockchip_sfc_xfer_data_poll()
470 const struct spi_mem_op *op, u32 len) in rockchip_sfc_xfer_data_dma()
524 static int rockchip_sfc_exec_mem_op(struct spi_mem *mem, const struct spi_mem_op *op) in rockchip_sfc_exec_mem_op()
547 rockchip_sfc_adjust_op_work((struct spi_mem_op *)op); in rockchip_sfc_exec_mem_op()
573 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-qpic-snand.c566 const struct spi_mem_op *op) in qcom_spi_read_last_cw()
792 const struct spi_mem_op *op) in qcom_spi_read_page_raw()
820 const struct spi_mem_op *op) in qcom_spi_read_page_ecc()
913 const struct spi_mem_op *op) in qcom_spi_read_page_oob()
992 const struct spi_mem_op *op) in qcom_spi_read_page()
1029 const struct spi_mem_op *op) in qcom_spi_program_raw()
1113 const struct spi_mem_op *op) in qcom_spi_program_ecc()
1190 const struct spi_mem_op *op) in qcom_spi_program_oob()
1243 const struct spi_mem_op *op) in qcom_spi_program_execute()
1306 const struct spi_mem_op *o in qcom_spi_write_page()
[all...]
/linux/drivers/mtd/spi-nor/
H A Dspansion.c94 struct spi_mem_op op = SPANSION_OP(priv_params->clsr); in spansion_nor_clear_sr()
111 struct spi_mem_op op = in cypress_nor_sr_ready_and_clear_reg()
172 struct spi_mem_op op; in cypress_nor_set_memlat()
177 op = (struct spi_mem_op) in cypress_nor_set_memlat()
188 op = (struct spi_mem_op) in cypress_nor_set_memlat()
202 struct spi_mem_op op; in cypress_nor_set_octal_dtr_bits()
207 op = (struct spi_mem_op) in cypress_nor_set_octal_dtr_bits()
249 struct spi_mem_op op; in cypress_nor_set_single_spi_bits()
259 op = (struct spi_mem_op) in cypress_nor_set_single_spi_bits()
293 struct spi_mem_op o in cypress_nor_quad_enable_volatile_reg()
[all...]
H A Dmicron-st.c53 struct spi_mem_op op; in micron_st_nor_octal_dtr_en()
60 op = (struct spi_mem_op) in micron_st_nor_octal_dtr_en()
68 op = (struct spi_mem_op) in micron_st_nor_octal_dtr_en()
90 struct spi_mem_op op; in micron_st_nor_octal_dtr_dis()
104 op = (struct spi_mem_op) in micron_st_nor_octal_dtr_dis()
516 struct spi_mem_op op = MICRON_ST_RDFSR_OP(fsr); in micron_st_nor_read_fsr()
551 struct spi_mem_op op = MICRON_ST_CLFSR_OP; in micron_st_nor_clear_fsr()
H A Dcore.c52 * @op: pointer to the 'struct spi_mem_op' whose properties
60 const struct spi_mem_op *op) in spi_nor_get_cmd_ext()
78 * @op: pointer to the 'struct spi_mem_op' whose properties
83 struct spi_mem_op *op, in spi_nor_spimem_setup_op()
127 * @op: pointer to 'struct spi_mem_op' template for transfer
133 static bool spi_nor_spimem_bounce(struct spi_nor *nor, struct spi_mem_op *op) in spi_nor_spimem_bounce()
150 * @op: pointer to 'struct spi_mem_op' template for transfer
154 static int spi_nor_spimem_exec_op(struct spi_nor *nor, struct spi_mem_op *op) in spi_nor_spimem_exec_op()
204 struct spi_mem_op op = in spi_nor_spimem_read_data()
268 struct spi_mem_op o in spi_nor_spimem_write_data()
[all...]
/linux/drivers/misc/eeprom/
H A Dat25.c111 struct spi_mem_op op; in at25_ee_read()
115 op = (struct spi_mem_op)SPI_MEM_OP(SPI_MEM_OP_CMD(at25_instr(at25, AT25_READ, in at25_ee_read()
153 struct spi_mem_op op; in fm25_aux_read()
159 op = (struct spi_mem_op)SPI_MEM_OP(SPI_MEM_OP_CMD(command, 1), in fm25_aux_read()
200 struct spi_mem_op op; in at25_wait_ready()
206 op = (struct spi_mem_op)SPI_MEM_OP(SPI_MEM_OP_CMD(AT25_RDSR, 1), in at25_wait_ready()
249 struct spi_mem_op op = SPI_MEM_OP(SPI_MEM_OP_CMD(AT25_WREN, 1), in at25_ee_write()
268 op = (struct spi_mem_op)SPI_MEM_OP(SPI_MEM_OP_CMD(at25_instr(at25, AT25_WRITE, off), in at25_ee_write()
/linux/include/linux/mtd/
H A Dspinand.h380 const struct spi_mem_op *ops;
386 .ops = (struct spi_mem_op[]) { __VA_ARGS__ }, \
387 .nops = sizeof((struct spi_mem_op[]){ __VA_ARGS__ }) / \
388 sizeof(struct spi_mem_op), \
621 * passed in spi_mem_op be DMA-able, so we can't based the bufs on
645 const struct spi_mem_op *read_cache;
646 const struct spi_mem_op *write_cache;
647 const struct spi_mem_op *update_cache;
/linux/drivers/mtd/nand/spi/
H A Dwinbond.c122 struct spi_mem_op op = SPI_MEM_OP(SPI_MEM_OP_CMD(0xc2, 1), in w25m02gv_select_target()
219 struct spi_mem_op op = SPINAND_GET_FEATURE_1S_1S_1S_OP(0x30, spinand->scratchbuf); in w25n02kv_ecc_get_status()
254 const struct spi_mem_op *op; in w25n0xjw_hs_cfg()
288 struct spi_mem_op op = in w35n0xjw_write_vcr()
317 const struct spi_mem_op *op; in w35n0xjw_vcr_cfg()
H A Dcore.c25 struct spi_mem_op op = SPINAND_GET_FEATURE_1S_1S_1S_OP(reg, in spinand_read_reg_op()
39 struct spi_mem_op op = SPINAND_SET_FEATURE_1S_1S_1S_OP(reg, in spinand_write_reg_op()
365 struct spi_mem_op op = SPINAND_WR_EN_DIS_1S_0_0_OP(true); in spinand_write_enable_op()
375 struct spi_mem_op op = SPINAND_PAGE_READ_1S_1S_0_OP(row); in spinand_load_page_op()
522 struct spi_mem_op op = SPINAND_PROG_EXEC_1S_1S_0_OP(row); in spinand_program_op()
532 struct spi_mem_op op = SPINAND_BLK_ERASE_1S_1S_0_OP(row); in spinand_erase_op()
552 struct spi_mem_op op = SPINAND_GET_FEATURE_1S_1S_1S_OP(REG_STATUS, in spinand_wait()
586 struct spi_mem_op op = SPINAND_READID_1S_1S_1S_OP( in spinand_read_id_op()
599 struct spi_mem_op op = SPINAND_RESET_1S_0_0_OP; in spinand_reset_op()
1280 static const struct spi_mem_op *
[all...]
H A Desmt.c140 struct spi_mem_op write_op = SPINAND_WR_EN_DIS_1S_0_0_OP(true); in f50l1g41lb_otp_lock()
141 struct spi_mem_op exec_op = SPINAND_PROG_EXEC_1S_1S_0_OP(0); in f50l1g41lb_otp_lock()

12