Home
last modified time | relevance | path

Searched refs:spi_mem (Results 1 – 25 of 39) sorted by relevance

12

/linux-6.12.1/include/linux/spi/
Dspi-mem.h182 struct spi_mem *mem;
200 struct spi_mem { struct
212 static inline void spi_mem_set_drvdata(struct spi_mem *mem, void *data) in spi_mem_set_drvdata() argument
224 static inline void *spi_mem_get_drvdata(struct spi_mem *mem) in spi_mem_get_drvdata()
276 int (*adjust_op_size)(struct spi_mem *mem, struct spi_mem_op *op);
277 bool (*supports_op)(struct spi_mem *mem,
279 int (*exec_op)(struct spi_mem *mem,
281 const char *(*get_name)(struct spi_mem *mem);
288 int (*poll_status)(struct spi_mem *mem,
327 int (*probe)(struct spi_mem *mem);
[all …]
/linux-6.12.1/drivers/mtd/spi-nor/
Dsysfs.c14 struct spi_mem *spimem = spi_get_drvdata(spi); in manufacturer_show()
25 struct spi_mem *spimem = spi_get_drvdata(spi); in partname_show()
36 struct spi_mem *spimem = spi_get_drvdata(spi); in jedec_id_show()
57 struct spi_mem *spimem = spi_get_drvdata(spi); in sfdp_read()
76 struct spi_mem *spimem = spi_get_drvdata(spi); in spi_nor_sysfs_is_visible()
93 struct spi_mem *spimem = spi_get_drvdata(spi); in spi_nor_sysfs_is_bin_visible()
/linux-6.12.1/drivers/spi/
Dspi-mem.c104 static int spi_check_buswidth_req(struct spi_mem *mem, u8 buswidth, bool tx) in spi_check_buswidth_req()
142 static bool spi_mem_check_buswidth(struct spi_mem *mem, in spi_mem_check_buswidth()
164 bool spi_mem_default_supports_op(struct spi_mem *mem, in spi_mem_default_supports_op()
227 static bool spi_mem_internal_supports_op(struct spi_mem *mem, in spi_mem_internal_supports_op()
253 bool spi_mem_supports_op(struct spi_mem *mem, const struct spi_mem_op *op) in spi_mem_supports_op()
262 static int spi_mem_access_start(struct spi_mem *mem) in spi_mem_access_start()
289 static void spi_mem_access_end(struct spi_mem *mem) in spi_mem_access_end()
355 int spi_mem_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) in spi_mem_exec_op()
481 const char *spi_mem_get_name(struct spi_mem *mem) in spi_mem_get_name()
502 int spi_mem_adjust_op_size(struct spi_mem *mem, struct spi_mem_op *op) in spi_mem_adjust_op_size()
[all …]
Dspi-wpcm-fiu.c137 int (*exec)(struct spi_mem *mem, const struct spi_mem_op *op);
150 static int wpcm_fiu_normal_exec(struct spi_mem *mem, const struct spi_mem_op *op) in wpcm_fiu_normal_exec()
177 static int wpcm_fiu_fast_read_exec(struct spi_mem *mem, const struct spi_mem_op *op) in wpcm_fiu_fast_read_exec()
195 static int wpcm_fiu_4ba_exec(struct spi_mem *mem, const struct spi_mem_op *op) in wpcm_fiu_4ba_exec()
240 static int wpcm_fiu_rdid_exec(struct spi_mem *mem, const struct spi_mem_op *op) in wpcm_fiu_rdid_exec()
277 static int wpcm_fiu_dummy_exec(struct spi_mem *mem, const struct spi_mem_op *op) in wpcm_fiu_dummy_exec()
322 static bool wpcm_fiu_supports_op(struct spi_mem *mem, const struct spi_mem_op *op) in wpcm_fiu_supports_op()
352 static int wpcm_fiu_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) in wpcm_fiu_exec_op()
367 static int wpcm_fiu_adjust_op_size(struct spi_mem *mem, struct spi_mem_op *op) in wpcm_fiu_adjust_op_size()
Dspi-sn-f-ospi.c261 struct spi_mem *mem, in f_ospi_config_indir_protocol()
335 static int f_ospi_indir_prepare_op(struct f_ospi *ospi, struct spi_mem *mem, in f_ospi_indir_prepare_op()
401 static int f_ospi_indir_read(struct f_ospi *ospi, struct spi_mem *mem, in f_ospi_indir_read()
455 static int f_ospi_indir_write(struct f_ospi *ospi, struct spi_mem *mem, 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()
526 static bool f_ospi_supports_op_width(struct spi_mem *mem, in f_ospi_supports_op_width()
552 static bool f_ospi_supports_op(struct spi_mem *mem, 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()
Dspi-intel.c180 const struct spi_mem *mem,
449 const struct spi_mem *mem) in intel_spi_chip_addr()
457 static int intel_spi_read_reg(struct intel_spi *ispi, const struct spi_mem *mem, in intel_spi_read_reg()
480 static int intel_spi_write_reg(struct intel_spi *ispi, const struct spi_mem *mem, in intel_spi_write_reg()
541 static int intel_spi_read(struct intel_spi *ispi, const struct spi_mem *mem, in intel_spi_read()
602 static int intel_spi_write(struct intel_spi *ispi, const struct spi_mem *mem, in intel_spi_write()
665 static int intel_spi_erase(struct intel_spi *ispi, const struct spi_mem *mem, in intel_spi_erase()
703 static int intel_spi_adjust_op_size(struct spi_mem *mem, struct spi_mem_op *op) in intel_spi_adjust_op_size()
747 static bool intel_spi_supports_mem_op(struct spi_mem *mem, in intel_spi_supports_mem_op()
779 static int intel_spi_exec_mem_op(struct spi_mem *mem, const struct spi_mem_op *op) in intel_spi_exec_mem_op()
[all …]
Dspi-microchip-core-qspi.c369 static int mchp_qspi_wait_for_ready(struct spi_mem *mem) in mchp_qspi_wait_for_ready()
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()
Dspi-rpc-if.c64 static bool rpcif_spi_mem_supports_op(struct spi_mem *mem, in rpcif_spi_mem_supports_op()
112 static int rpcif_spi_mem_exec_op(struct spi_mem *mem, in rpcif_spi_mem_exec_op()
Dspi-hisi-sfc-v3xx.c147 static int hisi_sfc_v3xx_adjust_op_size(struct spi_mem *mem, in hisi_sfc_v3xx_adjust_op_size()
171 static bool hisi_sfc_v3xx_supports_op(struct spi_mem *mem, in hisi_sfc_v3xx_supports_op()
359 static int hisi_sfc_v3xx_exec_op(struct spi_mem *mem, in hisi_sfc_v3xx_exec_op()
Dspi-npcm-fiu.c333 static int npcm_fiu_uma_read(struct spi_mem *mem, in npcm_fiu_uma_read()
389 static int npcm_fiu_uma_write(struct spi_mem *mem, in npcm_fiu_uma_write()
439 static int npcm_fiu_manualwrite(struct spi_mem *mem, 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()
Dspi-amd.c363 static bool amd_spi_supports_op(struct spi_mem *mem, in amd_spi_supports_op()
374 static int amd_spi_adjust_op_size(struct spi_mem *mem, struct spi_mem_op *op) in amd_spi_adjust_op_size()
438 static int amd_spi_exec_mem_op(struct spi_mem *mem, in amd_spi_exec_mem_op()
Dspi-gxp.c200 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()
Dspi-fsl-qspi.c367 static bool fsl_qspi_supports_op(struct spi_mem *mem, in fsl_qspi_supports_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()
809 static const char *fsl_qspi_get_name(struct spi_mem *mem) in fsl_qspi_get_name()
Dspi-rockchip-sfc.c299 struct spi_mem *mem, in rockchip_sfc_xfer_setup()
488 static int rockchip_sfc_exec_mem_op(struct spi_mem *mem, const 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()
Dspi-cadence-xspi.c739 struct spi_mem *mem, in cdns_xspi_mem_op()
751 static int cdns_xspi_mem_op_execute(struct spi_mem *mem, in cdns_xspi_mem_op_execute()
763 static int marvell_xspi_mem_op_execute(struct spi_mem *mem, in marvell_xspi_mem_op_execute()
778 static bool cdns_xspi_supports_op(struct spi_mem *mem, in cdns_xspi_supports_op()
838 static int cdns_xspi_adjust_mem_op_size(struct spi_mem *mem, struct spi_mem_op *op) in cdns_xspi_adjust_mem_op_size()
Datmel-quadspi.c278 static bool atmel_qspi_supports_op(struct spi_mem *mem, in atmel_qspi_supports_op()
407 static int atmel_qspi_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) in atmel_qspi_exec_op()
466 static const char *atmel_qspi_get_name(struct spi_mem *spimem) in atmel_qspi_get_name()
Dspi-amlogic-spifc-a1.c254 static int amlogic_spifc_a1_exec_op(struct spi_mem *mem, in amlogic_spifc_a1_exec_op()
294 static int amlogic_spifc_a1_adjust_op_size(struct spi_mem *mem, in amlogic_spifc_a1_adjust_op_size()
Dspi-nxp-fspi.c455 static bool nxp_fspi_supports_op(struct spi_mem *mem, in nxp_fspi_supports_op()
922 static int nxp_fspi_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) in nxp_fspi_exec_op()
962 static int nxp_fspi_adjust_op_size(struct spi_mem *mem, struct spi_mem_op *op) in nxp_fspi_adjust_op_size()
1123 static const char *nxp_fspi_get_name(struct spi_mem *mem) in nxp_fspi_get_name()
Dspi-dw-core.c476 static int dw_spi_adjust_mem_op_size(struct spi_mem *mem, struct spi_mem_op *op) in dw_spi_adjust_mem_op_size()
484 static bool dw_spi_supports_mem_op(struct spi_mem *mem, in dw_spi_supports_mem_op()
660 static int dw_spi_exec_mem_op(struct spi_mem *mem, const struct spi_mem_op *op) in dw_spi_exec_mem_op()
Dspi-aspeed-smc.c271 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()
375 static const char *aspeed_spi_get_name(struct spi_mem *mem) in aspeed_spi_get_name()
Dspi-airoha-snfi.c574 static int airoha_snand_adjust_op_size(struct spi_mem *mem, in airoha_snand_adjust_op_size()
601 static bool airoha_snand_supports_op(struct spi_mem *mem, in airoha_snand_supports_op()
887 static int airoha_snand_exec_op(struct spi_mem *mem, in airoha_snand_exec_op()
Dspi-zynq-qspi.c225 static bool zynq_qspi_supports_op(struct spi_mem *mem, in zynq_qspi_supports_op()
525 static int zynq_qspi_exec_mem_op(struct spi_mem *mem, in zynq_qspi_exec_mem_op()
Dspi-mt65xx.c857 static int mtk_spi_mem_adjust_op_size(struct spi_mem *mem, in mtk_spi_mem_adjust_op_size()
874 static bool mtk_spi_mem_supports_op(struct spi_mem *mem, in mtk_spi_mem_supports_op()
921 static int mtk_spi_transfer_wait(struct spi_mem *mem, in mtk_spi_transfer_wait()
951 static int mtk_spi_mem_exec_op(struct spi_mem *mem, in mtk_spi_mem_exec_op()
Dspi-dw-bt1.c114 struct spi_mem *mem = desc->mem; in dw_spi_bt1_dirmap_read()
/linux-6.12.1/include/linux/mtd/
Dspi-nor.h393 struct spi_mem *spimem;

12