Home
last modified time | relevance | path

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

12

/linux/include/linux/spi/
H A Dspi-mem.h164 struct spi_mem_op { struct
228 struct spi_mem_op op_tmpl;
345 int (*adjust_op_size)(struct spi_mem *mem, struct spi_mem_op *op);
347 const struct spi_mem_op *op);
349 const struct spi_mem_op *op);
358 const struct spi_mem_op *op,
408 const struct spi_mem_op *op,
412 const struct spi_mem_op *op,
416 const struct spi_mem_op *op);
420 const struct spi_mem_op *op, in spi_controller_dma_map_mem_op_data()
[all …]
/linux/drivers/mtd/nand/spi/
H A Dcore.c23 static struct spi_mem_op
29 static struct spi_mem_op
33 struct spi_mem_op op = spinand->op_templates->readid; in spinand_fill_readid_op()
43 struct spi_mem_op
49 static __maybe_unused struct spi_mem_op
55 struct spi_mem_op
58 struct spi_mem_op op = spinand->op_templates->set_feature; in spinand_fill_set_feature_op()
69 struct spi_mem_op
72 struct spi_mem_op op = spinand->op_templates->get_feature; in spinand_fill_get_feature_op()
83 static struct spi_mem_op
[all …]
H A Dwinbond.c110 static struct spi_mem_op
114 (struct spi_mem_op)SPINAND_WINBOND_WRITE_VCR_1S_1S_1S(reg, valptr) : in spinand_fill_winbond_write_vcr_op()
115 (struct spi_mem_op)SPINAND_WINBOND_WRITE_VCR_8D_8D_8D(reg, valptr); in spinand_fill_winbond_write_vcr_op()
127 static struct spi_mem_op
132 return (struct spi_mem_op)SPINAND_WINBOND_SELECT_TARGET_1S_0_1S(valptr); in spinand_fill_winbond_select_target_op()
167 struct spi_mem_op op = SPINAND_OP(spinand, winbond_select_target, in w25m02gv_select_target()
295 struct spi_mem_op op = SPINAND_OP(spinand, get_feature, in w25n02kv_ecc_get_status()
332 const struct spi_mem_op *op; in w25n0xjw_hs_cfg()
369 struct spi_mem_op op = SPINAND_OP(spinand, winbond_write_vcr, in w35n0xjw_write_vcr()
396 const struct spi_mem_op *ref_op; in w35n0xjw_vcr_cfg()
H A Dmacronix.c53 static struct spi_mem_op
58 return (struct spi_mem_op)SPINAND_MACRONIX_READ_ECCSR_1S_0_1S(valptr); in spinand_fill_macronix_read_eccsr_op()
87 struct spi_mem_op op = SPINAND_OP(spinand, macronix_read_eccsr, eccsr); in macronix_get_eccsr()
166 struct spi_mem_op op = SPINAND_OP(spinand, set_feature, in macronix_set_read_retry()
H A Dmicron.c140 struct spi_mem_op op = SPINAND_OP(spinand, set_feature, in micron_select_target()
254 struct spi_mem_op write_op = SPINAND_OP(spinand, wr_en); in mt29f2g01abagd_otp_lock()
255 struct spi_mem_op exec_op = SPINAND_OP(spinand, prog_exec, 0); in mt29f2g01abagd_otp_lock()
/linux/include/linux/mtd/
H A Dspinand.h454 const struct spi_mem_op *ops;
460 .ops = (struct spi_mem_op[]) { __VA_ARGS__ }, \
461 .nops = sizeof((struct spi_mem_op[]){ __VA_ARGS__ }) / \
462 sizeof(struct spi_mem_op), \
706 struct spi_mem_op reset;
707 struct spi_mem_op readid;
708 struct spi_mem_op wr_en;
709 struct spi_mem_op wr_dis;
710 struct spi_mem_op set_feature;
711 struct spi_mem_op get_feature;
[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 *op) in wpcm_fiu_rdid_exec()
[all …]
H A Dspi-mem.c40 const struct spi_mem_op *op, in spi_controller_dma_map_mem_op_data()
86 const struct spi_mem_op *op, in spi_controller_dma_unmap_mem_op_data()
146 const struct spi_mem_op *op) in spi_mem_check_buswidth()
168 const struct spi_mem_op *op) in spi_mem_default_supports_op()
226 static int spi_mem_check_op(const struct spi_mem_op *op) in spi_mem_check_op()
255 const struct spi_mem_op *op) in spi_mem_internal_supports_op()
280 bool spi_mem_supports_op(struct spi_mem *mem, const struct spi_mem_op *op) in spi_mem_supports_op()
283 spi_mem_adjust_op_freq(mem, (struct spi_mem_op *)op); in spi_mem_supports_op()
331 const struct spi_mem_op *op, int exec_op_ret) in spi_mem_add_op_stats()
385 int spi_mem_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) in spi_mem_exec_op()
[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-amlogic-spifc-a4.c298 static int aml_sfc_send_cmd(struct aml_sfc *sfc, const struct spi_mem_op *op) in aml_sfc_send_cmd()
317 static int aml_sfc_send_addr(struct aml_sfc *sfc, const struct spi_mem_op *op) in aml_sfc_send_addr()
337 static bool aml_sfc_is_xio_op(const struct spi_mem_op *op) in aml_sfc_is_xio_op()
351 static int aml_sfc_send_cmd_addr_dummy(struct aml_sfc *sfc, const struct spi_mem_op *op) in aml_sfc_send_cmd_addr_dummy()
377 static bool aml_sfc_is_snand_hwecc_page_op(struct aml_sfc *sfc, const struct spi_mem_op *op) in aml_sfc_is_snand_hwecc_page_op()
479 static void *aml_get_dma_safe_input_buf(const struct spi_mem_op *op) in aml_get_dma_safe_input_buf()
487 static void aml_sfc_put_dma_safe_input_buf(const struct spi_mem_op *op, void *buf) in aml_sfc_put_dma_safe_input_buf()
499 static void *aml_sfc_get_dma_safe_output_buf(const struct spi_mem_op *op) in aml_sfc_get_dma_safe_output_buf()
507 static void aml_sfc_put_dma_safe_output_buf(const struct spi_mem_op *op, const void *buf) in aml_sfc_put_dma_safe_output_buf()
516 static u64 aml_sfc_cal_timeout_cycle(struct aml_sfc *sfc, const struct spi_mem_op *op) in aml_sfc_cal_timeout_cycle()
[all …]
H A Dspi-intel.c182 struct spi_mem_op mem_op;
187 const struct spi_mem_op *op);
469 const struct spi_mem_op *op) in intel_spi_read_reg()
492 const struct spi_mem_op *op) in intel_spi_write_reg()
553 const struct spi_mem_op *op) in intel_spi_read()
614 const struct spi_mem_op *op) in intel_spi_write()
677 const struct spi_mem_op *op) in intel_spi_erase()
713 static int intel_spi_adjust_op_size(struct spi_mem *mem, struct spi_mem_op *op) in intel_spi_adjust_op_size()
720 const struct spi_mem_op *op) in intel_spi_cmp_mem_op()
744 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-atcspi200.c146 const struct spi_mem_op *op) in atcspi_xfer_data_poll()
187 const struct spi_mem_op *op) in atcspi_set_trans_ctl()
225 const struct spi_mem_op *op) in atcspi_set_trans_fmt()
247 const struct spi_mem_op *op) in atcspi_prepare_trans()
256 static int atcspi_adjust_op_size(struct spi_mem *mem, struct spi_mem_op *op) in atcspi_adjust_op_size()
306 const struct spi_mem_op *op) in atcspi_dma_trans()
364 static int atcspi_exec_mem_op(struct spi_mem *mem, const struct spi_mem_op *op) in atcspi_exec_mem_op()
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-fsl-qspi.c391 const struct spi_mem_op *op) in fsl_qspi_supports_op()
439 const struct spi_mem_op *op) in fsl_qspi_prepare_lut()
549 const struct spi_mem_op *op) in fsl_qspi_select_mem()
578 static void fsl_qspi_read_ahb(struct fsl_qspi *q, const struct spi_mem_op *op) in fsl_qspi_read_ahb()
586 const struct spi_mem_op *op) in fsl_qspi_fill_txfifo()
611 const struct spi_mem_op *op) in fsl_qspi_read_rxfifo()
631 static int fsl_qspi_do_op(struct fsl_qspi *q, const struct spi_mem_op *op) in fsl_qspi_do_op()
668 static int fsl_qspi_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) in fsl_qspi_exec_op()
730 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-stm32-ospi.c332 const struct spi_mem_op *op) in stm32_ospi_tx_mm()
340 const struct spi_mem_op *op) in stm32_ospi_tx_dma()
404 static int stm32_ospi_xfer(struct stm32_ospi *ospi, const struct spi_mem_op *op) in stm32_ospi_xfer()
429 const struct spi_mem_op *op) in stm32_ospi_wait_poll_status()
464 static int stm32_ospi_send(struct spi_device *spi, const struct spi_mem_op *op) in stm32_ospi_send()
554 const struct spi_mem_op *op, in stm32_ospi_poll_status()
583 static int stm32_ospi_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) in stm32_ospi_exec_op()
627 struct spi_mem_op op; in stm32_ospi_dirmap_read()
641 memcpy(&op, &desc->info.op_tmpl, sizeof(struct spi_mem_op)); in stm32_ospi_dirmap_read()
668 struct spi_mem_op op; in stm32_ospi_transfer_one_message()
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-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()
126 const struct spi_mem_op *op) in rpcif_spi_mem_exec_op()
H A Dspi-qpic-snand.c576 const struct spi_mem_op *op) in qcom_spi_read_last_cw()
798 const struct spi_mem_op *op) in qcom_spi_read_page_raw()
826 const struct spi_mem_op *op) in qcom_spi_read_page_ecc()
915 const struct spi_mem_op *op) in qcom_spi_read_page_oob()
990 const struct spi_mem_op *op) in qcom_spi_read_page()
1027 const struct spi_mem_op *op) in qcom_spi_program_raw()
1109 const struct spi_mem_op *op) in qcom_spi_program_ecc()
1186 const struct spi_mem_op *op) in qcom_spi_program_oob()
1239 const struct spi_mem_op *op) in qcom_spi_program_execute()
1302 const struct spi_mem_op *op) 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 op; in cypress_nor_quad_enable_volatile_reg()
[all …]
H A Dmacronix.c244 struct spi_mem_op op; in macronix_nor_octal_dtr_en()
250 op = (struct spi_mem_op)MXIC_NOR_WR_CR2(MXIC_NOR_ADDR_CR2_DC, 1, buf); in macronix_nor_octal_dtr_en()
257 op = (struct spi_mem_op)MXIC_NOR_WR_CR2(MXIC_NOR_ADDR_CR2_MODE, 1, buf); in macronix_nor_octal_dtr_en()
280 struct spi_mem_op op; in macronix_nor_octal_dtr_dis()
292 op = (struct spi_mem_op)MXIC_NOR_WR_CR2(MXIC_NOR_ADDR_CR2_MODE, 2, buf); in macronix_nor_octal_dtr_dis()
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()
527 struct spi_mem_op op = MICRON_ST_RDFSR_OP(fsr); in micron_st_nor_read_fsr()
562 struct spi_mem_op op = MICRON_ST_CLFSR_OP; in micron_st_nor_clear_fsr()
H A Dcore.c60 const struct spi_mem_op *op) in spi_nor_get_cmd_ext()
83 struct spi_mem_op *op, in spi_nor_spimem_setup_op()
133 static bool spi_nor_spimem_bounce(struct spi_nor *nor, struct spi_mem_op *op) in spi_nor_spimem_bounce()
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 op = in spi_nor_spimem_write_data()
324 int spi_nor_read_any_reg(struct spi_nor *nor, struct spi_mem_op *op, in spi_nor_read_any_reg()
346 int spi_nor_write_any_volatile_reg(struct spi_nor *nor, struct spi_mem_op *op, in spi_nor_write_any_volatile_reg()
372 struct spi_mem_op op = SPI_NOR_WREN_OP; in spi_nor_write_enable()
399 struct spi_mem_op op = SPI_NOR_WRDI_OP; in spi_nor_write_disable()
[all …]
/linux/drivers/misc/eeprom/
H A Dat25.c112 struct spi_mem_op op; in at25_ee_read()
116 op = (struct spi_mem_op)SPI_MEM_OP(SPI_MEM_OP_CMD(at25_instr(at25, AT25_READ, in at25_ee_read()
154 struct spi_mem_op op; in fm25_aux_read()
160 op = (struct spi_mem_op)SPI_MEM_OP(SPI_MEM_OP_CMD(command, 1), in fm25_aux_read()
215 struct spi_mem_op op; in at25_wait_ready()
221 op = (struct spi_mem_op)SPI_MEM_OP(SPI_MEM_OP_CMD(AT25_RDSR, 1), in at25_wait_ready()
264 struct spi_mem_op op = SPI_MEM_OP(SPI_MEM_OP_CMD(AT25_WREN, 1), in at25_ee_write()
283 op = (struct spi_mem_op)SPI_MEM_OP(SPI_MEM_OP_CMD(at25_instr(at25, AT25_WRITE, off), in at25_ee_write()
/linux/include/trace/events/
H A Dspi-mem.h20 TP_PROTO(struct spi_mem *mem, const struct spi_mem_op *op),
78 TP_PROTO(struct spi_mem *mem, const struct spi_mem_op *op),

12