/linux-6.3-rc2/include/linux/spi/ |
A D | spi-mem.h | 99 struct spi_mem_op { struct 155 struct spi_mem_op op_tmpl; 272 const struct spi_mem_op *op); 283 const struct spi_mem_op *op, 332 const struct spi_mem_op *op, 336 const struct spi_mem_op *op); 340 const struct spi_mem_op *op, in spi_controller_dma_map_mem_op_data() 355 const struct spi_mem_op *op) in spi_mem_default_supports_op() 364 const struct spi_mem_op *op); 367 const struct spi_mem_op *op); [all …]
|
/linux-6.3-rc2/drivers/spi/ |
A D | spi-wpcm-fiu.c | 137 bool (*match)(const struct spi_mem_op *op); 138 int (*exec)(struct spi_mem *mem, const struct spi_mem_op *op); 141 static bool wpcm_fiu_normal_match(const struct spi_mem_op *op) in wpcm_fiu_normal_match() 170 static bool wpcm_fiu_fast_read_match(const struct spi_mem_op *op) in wpcm_fiu_fast_read_match() 191 static bool wpcm_fiu_4ba_match(const struct spi_mem_op *op) in wpcm_fiu_4ba_match() 196 static int wpcm_fiu_4ba_exec(struct spi_mem *mem, const struct spi_mem_op *op) in wpcm_fiu_4ba_exec() 234 static bool wpcm_fiu_rdid_match(const struct spi_mem_op *op) in wpcm_fiu_rdid_match() 241 static int wpcm_fiu_rdid_exec(struct spi_mem *mem, const struct spi_mem_op *op) in wpcm_fiu_rdid_exec() 267 static bool wpcm_fiu_dummy_match(const struct spi_mem_op *op) in wpcm_fiu_dummy_match() 353 static int wpcm_fiu_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) in wpcm_fiu_exec_op() [all …]
|
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() 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 …]
|
A D | spi-gxp.c | 68 static int gxp_spi_read_reg(struct gxp_spi_chip *chip, const struct spi_mem_op *op) in gxp_spi_read_reg() 106 static int gxp_spi_write_reg(struct gxp_spi_chip *chip, const struct spi_mem_op *op) in gxp_spi_write_reg() 143 static ssize_t gxp_spi_read(struct gxp_spi_chip *chip, const struct spi_mem_op *op) in gxp_spi_read() 156 static ssize_t gxp_spi_write(struct gxp_spi_chip *chip, const struct spi_mem_op *op) in gxp_spi_write() 201 static int do_gxp_exec_mem_op(struct spi_mem *mem, const struct spi_mem_op *op) in do_gxp_exec_mem_op() 222 static int gxp_exec_mem_op(struct spi_mem *mem, const struct spi_mem_op *op) in gxp_exec_mem_op()
|
A D | spi-mtk-nor.c | 162 static void mtk_nor_set_addr(struct mtk_nor *sp, const struct spi_mem_op *op) in mtk_nor_set_addr() 179 static bool need_bounce(struct mtk_nor *sp, const struct spi_mem_op *op) in need_bounce() 184 static bool mtk_nor_match_read(const struct spi_mem_op *op) in mtk_nor_match_read() 207 static bool mtk_nor_match_prg(const struct spi_mem_op *op) in mtk_nor_match_prg() 256 static void mtk_nor_adj_prg_size(struct spi_mem_op *op) in mtk_nor_adj_prg_size() 275 static int mtk_nor_adjust_op_size(struct spi_mem *mem, struct spi_mem_op *op) in mtk_nor_adjust_op_size() 311 const struct spi_mem_op *op) in mtk_nor_supports_op() 427 static int mtk_nor_read_dma(struct mtk_nor *sp, const struct spi_mem_op *op) in mtk_nor_read_dma() 448 static int mtk_nor_read_pio(struct mtk_nor *sp, const struct spi_mem_op *op) in mtk_nor_read_pio() 504 const struct spi_mem_op *op) in mtk_nor_pp_unbuffered() [all …]
|
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() 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()
|
A D | spi-intel.c | 177 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 …]
|
A D | spi-rockchip-sfc.c | 283 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()
|
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()
|
A D | spi-stm32-qspi.c | 168 const struct spi_mem_op *op) in stm32_qspi_tx_poll() 200 const struct spi_mem_op *op) in stm32_qspi_tx_mm() 215 const struct spi_mem_op *op) in stm32_qspi_tx_dma() 278 static int stm32_qspi_tx(struct stm32_qspi *qspi, const struct spi_mem_op *op) in stm32_qspi_tx() 359 static int stm32_qspi_send(struct spi_device *spi, const struct spi_mem_op *op) in stm32_qspi_send() 446 static int stm32_qspi_poll_status(struct spi_mem *mem, const struct spi_mem_op *op, in stm32_qspi_poll_status() 478 static int stm32_qspi_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) in stm32_qspi_exec_op() 523 struct spi_mem_op op; in stm32_qspi_dirmap_read() 536 memcpy(&op, &desc->info.op_tmpl, sizeof(struct spi_mem_op)); in stm32_qspi_dirmap_read() 564 struct spi_mem_op op; in stm32_qspi_transfer_one_message()
|
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()
|
A D | spi-fsl-qspi.c | 369 const struct spi_mem_op *op) in fsl_qspi_supports_op() 417 const struct spi_mem_op *op) in fsl_qspi_prepare_lut() 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()
|
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() 313 static inline void mchp_coreqspi_config_op(struct mchp_coreqspi *qspi, const struct spi_mem_op *op) in mchp_coreqspi_config_op() 387 static int mchp_coreqspi_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) in mchp_coreqspi_exec_op() 457 static bool mchp_coreqspi_supports_op(struct spi_mem *mem, const struct spi_mem_op *op) in mchp_coreqspi_supports_op() 484 static int mchp_coreqspi_adjust_op_size(struct spi_mem *mem, struct spi_mem_op *op) in mchp_coreqspi_adjust_op_size()
|
A D | spi-cadence-quadspi.c | 350 static unsigned int cqspi_calc_rdreg(const struct spi_mem_op *op) in cqspi_calc_rdreg() 361 static unsigned int cqspi_calc_dummy(const struct spi_mem_op *op) in cqspi_calc_dummy() 433 const struct spi_mem_op *op, in cqspi_setup_opcode_ext() 456 const struct spi_mem_op *op, unsigned int shift) in cqspi_enable_dtr() 488 const struct spi_mem_op *op) in cqspi_command_read() 571 const struct spi_mem_op *op) in cqspi_command_write() 640 const struct spi_mem_op *op) in cqspi_read_setup() 920 const struct spi_mem_op *op) in cqspi_write_setup() 1230 const struct spi_mem_op *op) in cqspi_write() 1326 const struct spi_mem_op *op) in cqspi_read() [all …]
|
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() 389 const struct spi_mem_op *op, u8 cmd, in npcm_fiu_uma_write() 439 const struct spi_mem_op *op) in npcm_fiu_manualwrite() 487 static int npcm_fiu_read(struct spi_mem *mem, const struct spi_mem_op *op) in npcm_fiu_read() 544 static int npcm_fiu_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) in npcm_fiu_exec_op()
|
A D | spi-nxp-fspi.c | 437 const struct spi_mem_op *op) in nxp_fspi_supports_op() 527 const struct spi_mem_op *op) in nxp_fspi_prepare_lut() 696 static int nxp_fspi_read_ahb(struct nxp_fspi *f, const struct spi_mem_op *op) in nxp_fspi_read_ahb() 728 const struct spi_mem_op *op) in nxp_fspi_fill_txfifo() 772 const struct spi_mem_op *op) in nxp_fspi_read_rxfifo() 822 static int nxp_fspi_do_op(struct nxp_fspi *f, const struct spi_mem_op *op) in nxp_fspi_do_op() 862 static int nxp_fspi_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) in nxp_fspi_exec_op() 902 static int nxp_fspi_adjust_op_size(struct spi_mem *mem, struct spi_mem_op *op) in nxp_fspi_adjust_op_size()
|
A D | spi-aspeed-smc.c | 106 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() 557 struct spi_mem_op *op = &desc->info.op_tmpl; in aspeed_spi_dirmap_create()
|
A D | atmel-quadspi.c | 252 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()
|
A D | spi-cadence-xspi.c | 349 const struct spi_mem_op *op, in cdns_xspi_send_stig_command() 408 const struct spi_mem_op *op) in cdns_xspi_mem_op() 420 const struct spi_mem_op *op) in cdns_xspi_mem_op_execute() 431 static int cdns_xspi_adjust_mem_op_size(struct spi_mem *mem, struct spi_mem_op *op) in cdns_xspi_adjust_mem_op_size()
|
/linux-6.3-rc2/drivers/mtd/spi-nor/ |
A D | spansion.c | 54 struct spi_mem_op op; in cypress_nor_octal_dtr_en() 61 op = (struct spi_mem_op) in cypress_nor_octal_dtr_en() 73 op = (struct spi_mem_op) in cypress_nor_octal_dtr_en() 97 struct spi_mem_op op; in cypress_nor_octal_dtr_dis() 108 op = (struct spi_mem_op) in cypress_nor_octal_dtr_dis() 144 struct spi_mem_op op; in cypress_nor_quad_enable_volatile() 149 op = (struct spi_mem_op) in cypress_nor_quad_enable_volatile() 163 op = (struct spi_mem_op) in cypress_nor_quad_enable_volatile() 174 op = (struct spi_mem_op) in cypress_nor_quad_enable_volatile() 203 struct spi_mem_op op = in cypress_nor_set_page_size() [all …]
|
A D | micron-st.c | 52 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() 342 struct spi_mem_op op = MICRON_ST_RDFSR_OP(fsr); in micron_st_nor_read_fsr() 377 struct spi_mem_op op = MICRON_ST_CLFSR_OP; in micron_st_nor_clear_fsr()
|
A D | core.c | 58 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() 1114 struct spi_mem_op op = in spi_nor_erase_sector() 1904 struct spi_mem_op *op) in spi_nor_spimem_check_op() 2801 struct spi_mem_op op; in spi_nor_soft_reset() [all …]
|
/linux-6.3-rc2/include/linux/mtd/ |
A D | spinand.h | 285 const struct spi_mem_op *ops; 291 .ops = (struct spi_mem_op[]) { __VA_ARGS__ }, \ 292 .nops = sizeof((struct spi_mem_op[]){ __VA_ARGS__ }) / \ 293 sizeof(struct spi_mem_op), \ 433 const struct spi_mem_op *read_cache; 434 const struct spi_mem_op *write_cache; 435 const struct spi_mem_op *update_cache;
|
/linux-6.3-rc2/drivers/mtd/nand/spi/ |
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() 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() 1022 static const struct spi_mem_op * 1030 struct spi_mem_op op = variants->ops[i]; in spinand_select_op_variant() [all …]
|
A D | winbond.c | 66 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, &mbf); in w25n02kv_ecc_get_status()
|