| /linux-6.15/include/linux/spi/ |
| H A D | spi-mem.h | 148 struct spi_mem_op { struct 212 struct spi_mem_op op_tmpl; 331 const struct spi_mem_op *op); 342 const struct spi_mem_op *op, 396 const struct spi_mem_op *op, 400 const struct spi_mem_op *op); 404 const struct spi_mem_op *op, in spi_controller_dma_map_mem_op_data() 419 const struct spi_mem_op *op) in spi_mem_default_supports_op() 430 const struct spi_mem_op *op); 433 const struct spi_mem_op *op); [all …]
|
| /linux-6.15/drivers/spi/ |
| H A D | spi-wpcm-fiu.c | 136 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 D | spi-mem.c | 37 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() 241 const struct spi_mem_op *op) in spi_mem_internal_supports_op() 314 const struct spi_mem_op *op, int exec_op_ret) in spi_mem_add_op_stats() 591 u64 spi_mem_calc_op_duration(struct spi_mem_op *op) in spi_mem_calc_op_duration() 613 struct spi_mem_op op = desc->info.op_tmpl; in spi_mem_no_dirmap_read() 633 struct spi_mem_op op = desc->info.op_tmpl; in spi_mem_no_dirmap_write() 890 const struct spi_mem_op *op, in spi_mem_read_status() [all …]
|
| H A D | spi-gxp.c | 67 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 D | spi-mtk-nor.c | 163 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 D | spi-sn-f-ospi.c | 117 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 D | spi-sg2044-nor.c | 132 const struct spi_mem_op *op, loff_t from, in sg2044_spifmc_read_64k() 188 const struct spi_mem_op *op) in sg2044_spifmc_read() 214 const struct spi_mem_op *op) in sg2044_spifmc_write() 272 const struct spi_mem_op *op) in sg2044_spifmc_tran_cmd() 305 const struct spi_mem_op *op) in sg2044_spifmc_trans() 316 const struct spi_mem_op *op) in sg2044_spifmc_trans_reg() 382 const struct spi_mem_op *op) in sg2044_spifmc_exec_op()
|
| H A D | spi-realtek-rtl-snand.c | 54 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 D | spi-intel.c | 181 struct spi_mem_op mem_op; 186 const struct spi_mem_op *op); 463 const struct spi_mem_op *op) in intel_spi_read_reg() 486 const struct spi_mem_op *op) in intel_spi_write_reg() 547 const struct spi_mem_op *op) in intel_spi_read() 608 const struct spi_mem_op *op) in intel_spi_write() 671 const struct spi_mem_op *op) in intel_spi_erase() 714 const struct spi_mem_op *op) in intel_spi_cmp_mem_op() 752 const struct spi_mem_op *op) in intel_spi_supports_mem_op() 824 struct spi_mem_op op = desc->info.op_tmpl; in intel_spi_dirmap_read() [all …]
|
| H A D | spi-amd.c | 449 const struct spi_mem_op *op) in amd_spi_supports_op() 483 static int amd_spi_adjust_op_size(struct spi_mem *mem, struct spi_mem_op *op) in amd_spi_adjust_op_size() 502 const struct spi_mem_op *op) in amd_spi_set_addr() 518 const struct spi_mem_op *op) in amd_spi_mem_data_out() 545 static void amd_spi_hiddma_read(struct amd_spi *amd_spi, const struct spi_mem_op *op) in amd_spi_hiddma_read() 604 const struct spi_mem_op *op) in amd_spi_mem_data_in() 659 const struct spi_mem_op *op) in amd_set_spi_addr_mode() 670 const struct spi_mem_op *op) in amd_spi_exec_mem_op()
|
| H A D | spi-fsl-qspi.c | 368 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 D | spi-hisi-sfc-v3xx.c | 148 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 D | spi-microchip-core-qspi.c | 126 static int mchp_coreqspi_set_mode(struct mchp_coreqspi *qspi, const struct spi_mem_op *op) in mchp_coreqspi_set_mode() 269 const struct spi_mem_op *op) in mchp_coreqspi_setup_clock() 315 static inline void mchp_coreqspi_config_op(struct mchp_coreqspi *qspi, const struct spi_mem_op *op) in mchp_coreqspi_config_op() 389 static int mchp_coreqspi_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) in mchp_coreqspi_exec_op() 459 static bool mchp_coreqspi_supports_op(struct spi_mem *mem, const struct spi_mem_op *op) in mchp_coreqspi_supports_op() 498 static int mchp_coreqspi_adjust_op_size(struct spi_mem *mem, struct spi_mem_op *op) in mchp_coreqspi_adjust_op_size()
|
| H A D | spi-stm32-qspi.c | 167 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() 472 static int stm32_qspi_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) in stm32_qspi_exec_op() 517 struct spi_mem_op op; in stm32_qspi_dirmap_read() 530 memcpy(&op, &desc->info.op_tmpl, sizeof(struct spi_mem_op)); in stm32_qspi_dirmap_read() 558 struct spi_mem_op op; in stm32_qspi_transfer_one_message()
|
| H A D | atmel-quadspi.c | 292 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, 454 static int atmel_qspi_find_mode(const struct spi_mem_op *op) in atmel_qspi_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 *op, in atmel_qspi_dma_rx_xfer() 833 const struct spi_mem_op *op, in atmel_qspi_dma_tx_xfer() 858 const struct spi_mem_op *op, loff_t loff) in atmel_qspi_dma_transfer() [all …]
|
| H A D | spi-rpc-if.c | 20 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 D | spi-stm32-ospi.c | 304 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() 556 static int stm32_ospi_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) in stm32_ospi_exec_op() 601 struct spi_mem_op op; in stm32_ospi_dirmap_read() 615 memcpy(&op, &desc->info.op_tmpl, sizeof(struct spi_mem_op)); in stm32_ospi_dirmap_read() 643 struct spi_mem_op op; in stm32_ospi_transfer_one_message()
|
| H A D | spi-rockchip-sfc.c | 302 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() 574 static int rockchip_sfc_adjust_op_size(struct spi_mem *mem, struct spi_mem_op *op) in rockchip_sfc_adjust_op_size()
|
| H A D | spi-npcm-fiu.c | 249 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()
|
| /linux-6.15/drivers/mtd/spi-nor/ |
| H A D | spansion.c | 103 struct spi_mem_op op = in cypress_nor_sr_ready_and_clear_reg() 164 struct spi_mem_op op; in cypress_nor_set_memlat() 169 op = (struct spi_mem_op) in cypress_nor_set_memlat() 180 op = (struct spi_mem_op) in cypress_nor_set_memlat() 194 struct spi_mem_op op; in cypress_nor_set_octal_dtr_bits() 241 struct spi_mem_op op; in cypress_nor_set_single_spi_bits() 285 struct spi_mem_op op; in cypress_nor_quad_enable_volatile_reg() 375 struct spi_mem_op op = in cypress_nor_determine_addr_mode_by_sr1() 423 struct spi_mem_op op; in cypress_nor_set_addr_mode_nbytes() 482 struct spi_mem_op op = in cypress_nor_get_page_size() [all …]
|
| H A D | macronix.c | 239 struct spi_mem_op op; in macronix_nor_octal_dtr_en() 245 op = (struct spi_mem_op)MXIC_NOR_WR_CR2(MXIC_NOR_ADDR_CR2_DC, 1, buf); in macronix_nor_octal_dtr_en() 252 op = (struct spi_mem_op)MXIC_NOR_WR_CR2(MXIC_NOR_ADDR_CR2_MODE, 1, buf); in macronix_nor_octal_dtr_en() 275 struct spi_mem_op op; in macronix_nor_octal_dtr_dis() 287 op = (struct spi_mem_op)MXIC_NOR_WR_CR2(MXIC_NOR_ADDR_CR2_MODE, 2, buf); in macronix_nor_octal_dtr_dis()
|
| H A D | micron-st.c | 53 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 D | core.c | 60 const struct spi_mem_op *op) in spi_nor_get_cmd_ext() 83 struct spi_mem_op *op, in spi_nor_spimem_setup_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() 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() 434 struct spi_mem_op op = in spi_nor_read_id() 1077 struct spi_mem_op op = in spi_nor_erase_die() 1451 struct spi_mem_op op = in spi_nor_erase_sector() 2215 struct spi_mem_op *op) in spi_nor_spimem_check_op() [all …]
|
| /linux-6.15/include/linux/mtd/ |
| H A D | spinand.h | 336 const struct spi_mem_op *ops; 342 .ops = (struct spi_mem_op[]) { __VA_ARGS__ }, \ 343 .nops = sizeof((struct spi_mem_op[]){ __VA_ARGS__ }) / \ 344 sizeof(struct spi_mem_op), \ 595 const struct spi_mem_op *read_cache; 596 const struct spi_mem_op *write_cache; 597 const struct spi_mem_op *update_cache;
|
| /linux-6.15/drivers/mtd/nand/spi/ |
| H A D | core.c | 25 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() 375 struct spi_mem_op op = SPINAND_PAGE_READ_OP(row); in spinand_load_page_op() 522 struct spi_mem_op op = SPINAND_PROG_EXEC_OP(row); in spinand_program_op() 532 struct spi_mem_op op = SPINAND_BLK_ERASE_OP(row); in spinand_erase_op() 586 struct spi_mem_op op = SPINAND_READID_OP( in spinand_read_id_op() 599 struct spi_mem_op op = SPINAND_RESET_OP; in spinand_reset_op() 1266 static const struct spi_mem_op * 1271 const struct spi_mem_op *best_variant = NULL; in spinand_select_op_variant() 1276 struct spi_mem_op op = variants->ops[i]; in spinand_select_op_variant() [all …]
|