Home
last modified time | relevance | path

Searched refs:spi_config (Results 1 – 25 of 77) sorted by relevance

1234

/Zephyr-Core-3.7.0/tests/boards/mec15xxevb_assy6853/qspi/src/
Dmain.c47 static struct spi_config spi_cfg_single, spi_cfg_dual, spi_cfg_quad;
88 (const struct spi_config *)&spi_cfg_single, in ZTEST_USER()
120 (const struct spi_config *)&spi_cfg_single, in ZTEST_USER()
140 (const struct spi_config *)&spi_cfg_single, in ZTEST_USER()
165 (const struct spi_config *)&spi_cfg_single, in ZTEST_USER()
196 (const struct spi_config *)&spi_cfg_single, in test_spi_single_write()
217 (const struct spi_config *)&spi_cfg_single, in test_spi_single_write()
265 (const struct spi_config *)&spi_cfg_single, in ZTEST_USER()
324 (const struct spi_config *)&spi_cfg_single, in ZTEST_USER()
338 (const struct spi_config *)&spi_cfg_dual, in ZTEST_USER()
[all …]
/Zephyr-Core-3.7.0/drivers/spi/
Dspi_test.c18 const struct spi_config *spi_cfg, in vnd_spi_transceive()
27 const struct spi_config *spi_cfg, in vnd_spi_transceive_async()
38 const struct spi_config *spi_cfg) in vnd_spi_release()
Dspi_litex.c36 static void spi_set_frequency(const struct device *dev, const struct spi_config *config) in spi_set_frequency()
52 static int spi_config(const struct device *dev, const struct spi_config *config, uint16_t *control) in spi_config() function
145 const struct spi_config *config, in spi_litex_xfer()
188 static int spi_litex_transceive(const struct device *dev, const struct spi_config *config, in spi_litex_transceive()
196 ret = spi_config(dev, config, &control); in spi_litex_transceive()
206 static int spi_litex_transceive_async(const struct device *dev, const struct spi_config *config, in spi_litex_transceive_async()
215 static int spi_litex_release(const struct device *dev, const struct spi_config *config) in spi_litex_release()
Dspi_ambiq_bleif.c47 static int spi_config(const struct device *dev, const struct spi_config *config) in spi_config() function
98 static int spi_ambiq_xfer(const struct device *dev, const struct spi_config *config) in spi_ambiq_xfer()
124 static int spi_ambiq_transceive(const struct device *dev, const struct spi_config *config, in spi_ambiq_transceive()
131 ret = spi_config(dev, config); in spi_ambiq_transceive()
148 static int spi_ambiq_release(const struct device *dev, const struct spi_config *config) in spi_ambiq_release()
Dspi_litex_litespi.c43 static int spi_litex_set_frequency(const struct device *dev, const struct spi_config *config) in spi_litex_set_frequency()
60 static int spi_config(const struct device *dev, const struct spi_config *config) in spi_config() function
138 static int spi_litex_xfer(const struct device *dev, const struct spi_config *config) in spi_litex_xfer()
202 static int spi_litex_transceive(const struct device *dev, const struct spi_config *config, in spi_litex_transceive()
208 int ret = spi_config(dev, config); in spi_litex_transceive()
226 static int spi_litex_transceive_async(const struct device *dev, const struct spi_config *config, in spi_litex_transceive_async()
235 static int spi_litex_release(const struct device *dev, const struct spi_config *config) in spi_litex_release()
Dspi_grlib_spimctrl.c45 static int spi_config(struct spi_context *ctx, const struct spi_config *config) in spi_config() function
98 const struct spi_config *config, in transceive()
110 rc = spi_config(ctx, config); in transceive()
142 const struct spi_config *config, in transceive_async()
151 static int release(const struct device *dev, const struct spi_config *config) in release()
Dspi_handlers.c56 const struct spi_config *config, in copy_bufs_and_transceive()
71 const struct spi_config *config, in z_vrfy_spi_transceive()
77 struct spi_config config_copy; in z_vrfy_spi_transceive()
120 const struct spi_config *config) in z_vrfy_spi_release()
Dspi_ifx_cat1.c121 int spi_config(const struct device *dev, const struct spi_config *spi_cfg) in spi_config() function
234 static int transceive(const struct device *dev, const struct spi_config *spi_cfg, in transceive()
244 result = spi_config(dev, spi_cfg); in transceive()
263 static int ifx_cat1_spi_transceive_sync(const struct device *dev, const struct spi_config *spi_cfg, in ifx_cat1_spi_transceive_sync()
271 static int ifx_cat1_spi_transceive_async(const struct device *dev, const struct spi_config *spi_cfg, in ifx_cat1_spi_transceive_async()
280 static int ifx_cat1_spi_release(const struct device *dev, const struct spi_config *spi_cfg) in ifx_cat1_spi_release()
Dspi_oc_simple.c35 const struct spi_config *config) in spi_oc_simple_configure()
93 const struct spi_config *config, in spi_oc_simple_transceive()
166 const struct spi_config *config, in spi_oc_simple_transceive_async()
176 const struct spi_config *config) in spi_oc_simple_release()
Dspi_opentitan.c74 static int spi_config(const struct device *dev, uint32_t frequency, in spi_config() function
241 const struct spi_config *config, in spi_opentitan_transceive()
254 rc = spi_config(dev, config->frequency, config->operation); in spi_opentitan_transceive()
283 const struct spi_config *spi_cfg, in spi_opentitan_transceive_async()
294 const struct spi_config *config) in spi_opentitan_release()
Dspi_gecko.c102 static int spi_config(const struct device *dev, in spi_config() function
103 const struct spi_config *config, in spi_config()
245 const struct spi_config *config) in spi_gecko_xfer()
343 const struct spi_config *config, in spi_gecko_transceive()
351 ret = spi_config(dev, config, &control); in spi_gecko_transceive()
363 const struct spi_config *config, in spi_gecko_transceive_async()
373 const struct spi_config *config) in spi_gecko_release()
Dmspi_ambiq.c66 static int mspi_config(const struct device *dev, const struct spi_config *config) in mspi_config()
132 static int mspi_ambiq_xfer(const struct device *dev, const struct spi_config *config) in mspi_ambiq_xfer()
166 static int mspi_ambiq_transceive(const struct device *dev, const struct spi_config *config, in mspi_ambiq_transceive()
189 static int mspi_ambiq_release(const struct device *dev, const struct spi_config *config) in mspi_ambiq_release()
Dspi_b91.c71 const struct spi_config *config) in spi_b91_config_cs()
240 static bool spi_b91_is_config_supported(const struct spi_config *config, in spi_b91_is_config_supported()
296 const struct spi_config *config) in spi_b91_config()
381 const struct spi_config *config, in spi_b91_transceive()
422 const struct spi_config *config, in spi_b91_transceive_async()
441 const struct spi_config *config) in spi_b91_release()
Dspi_sifive.c31 static int spi_config(const struct device *dev, uint32_t frequency, in spi_config() function
202 const struct spi_config *config, in spi_sifive_transceive()
241 rc = spi_config(dev, config->frequency, config->operation); in spi_sifive_transceive()
267 const struct spi_config *config) in spi_sifive_release()
Dspi_bitbang.c32 const struct spi_config *config) in spi_bitbang_configure()
70 const struct spi_config *spi_cfg, in spi_bitbang_transceive()
231 const struct spi_config *spi_cfg, in spi_bitbang_transceive_async()
241 const struct spi_config *config) in spi_bitbang_release()
Dspi_mcux_ecspi.c141 const struct spi_config *spi_cfg) in spi_mcux_configure()
221 const struct spi_config *spi_cfg, in transceive()
251 const struct spi_config *spi_cfg, in spi_mcux_transceive()
260 const struct spi_config *spi_cfg, in spi_mcux_transceive_async()
270 static int spi_mcux_release(const struct device *dev, const struct spi_config *spi_cfg) in spi_mcux_release()
Dspi_rv32m1_lpspi.c134 const struct spi_config *spi_cfg) in spi_mcux_configure()
212 const struct spi_config *spi_cfg, in transceive()
243 const struct spi_config *spi_cfg, in spi_mcux_transceive()
252 const struct spi_config *spi_cfg, in spi_mcux_transceive_async()
263 const struct spi_config *spi_cfg) in spi_mcux_release()
/Zephyr-Core-3.7.0/soc/microchip/mec/common/spigen/
Dmec_spi_gen.py122 def build_header(chip, spi_config, hdr_spi_loc, pld_spi_loc, pld_entry_addr, pld_len): argument
147 if spi_config['spi_freq_mhz'] == 48:
149 elif spi_config['spi_freq_mhz'] == 24:
151 elif spi_config['spi_freq_mhz'] == 16:
156 if spi_config['spi_mode'] & 0x01:
158 if spi_config['spi_mode'] & 0x02:
160 if spi_config['spi_mode'] & 0x04:
164 if spi_config['spi_drive_str'] == "6x":
166 elif spi_config['spi_drive_str'] == "4x":
168 elif spi_config['spi_drive_str'] == "2x":
[all …]
/Zephyr-Core-3.7.0/include/zephyr/drivers/
Dspi.h301 struct spi_config { struct
381 struct spi_config config;
602 const struct spi_config *config,
621 const struct spi_config *config,
643 const struct spi_config *config);
668 static inline bool spi_cs_is_gpio(const struct spi_config *config) in spi_cs_is_gpio()
726 const struct spi_config *config,
731 const struct spi_config *config, in z_impl_spi_transceive()
785 const struct spi_config *config, in spi_read()
826 const struct spi_config *config, in spi_write()
[all …]
Dspi_emul.h72 typedef int (*spi_emul_io_t)(const struct emul *target, const struct spi_config *config,
/Zephyr-Core-3.7.0/samples/drivers/spi_fujitsu_fram/src/
Dmain.c26 struct spi_config *spi_cfg, in mb85rs64v_access()
69 struct spi_config *spi_cfg) in mb85rs64v_read_id()
100 static int write_bytes(const struct device *spi, struct spi_config *spi_cfg, in write_bytes()
124 static int read_bytes(const struct device *spi, struct spi_config *spi_cfg, in read_bytes()
143 struct spi_config spi_cfg = {0}; in main()
/Zephyr-Core-3.7.0/subsys/mgmt/ec_host_cmd/backends/
Dec_host_cmd_backend_spi_stm32.c158 struct ec_host_cmd_spi_cfg *spi_config; member
221 .spi_config = &ec_host_cmd_spi_cfg, \
311 const struct ec_host_cmd_spi_cfg *cfg = hc_spi->spi_config; in dma_callback()
331 (clock_control_subsys_t)&hc_spi->spi_config->pclken[0]); in spi_init()
337 if (IS_ENABLED(STM32_SPI_DOMAIN_CLOCK_SUPPORT) && (hc_spi->spi_config->pclk_len > 1)) { in spi_init()
340 (clock_control_subsys_t)&hc_spi->spi_config->pclken[1], NULL); in spi_init()
348 err = pinctrl_apply_state(hc_spi->spi_config->pcfg, PINCTRL_STATE_DEFAULT); in spi_init()
369 const struct ec_host_cmd_spi_cfg *cfg = hc_spi->spi_config; in spi_configure()
403 const struct ec_host_cmd_spi_cfg *cfg = hc_spi->spi_config; in reload_dma_tx()
425 const struct ec_host_cmd_spi_cfg *cfg = hc_spi->spi_config; in spi_config_dma_tx()
[all …]
/Zephyr-Core-3.7.0/samples/drivers/spi_bitbang/src/
Dmain.c25 struct spi_config config; in test_basic_write_9bit_words()
52 struct spi_config config; in test_9bit_loopback_partial()
91 struct spi_config config; in test_8bit_xfer()
/Zephyr-Core-3.7.0/samples/boards/mec172xevb_assy6906/qmspi_ldma/src/
Dmain.c77 static struct spi_config spi_cfg;
79 static struct spi_config spi_cfg_dual;
80 static struct spi_config spi_cfg_quad;
132 static int spi_flash_read_status(const struct device *dev, struct spi_config *spi_cfg, in spi_flash_read_status()
164 static int spi_poll_busy(const struct device *dev, struct spi_config *spi_cfg, uint32_t timeout_ms) in spi_poll_busy()
197 static int spi_flash_fd_wr_cpd(const struct device *dev, struct spi_config *spi_cfg, uint8_t cmd, in spi_flash_fd_wr_cpd()
230 static int spi_flash_read_fd_sync(const struct device *dev, struct spi_config *spi_cfg, in spi_flash_read_fd_sync()
285 static int spi_flash_read_hd_sync(const struct device *dev, struct spi_config *spi_cfg_cmd, in spi_flash_read_hd_sync()
286 struct spi_config *spi_cfg_data, struct spi_address *spi_addr, in spi_flash_read_hd_sync()
333 static int spi_flash_erase_region(const struct device *dev, struct spi_config *spi_cfg, in spi_flash_erase_region()
[all …]
/Zephyr-Core-3.7.0/tests/drivers/spi/spi_error_cases/src/
Dmain.c20 static const struct spi_config spis_config = {
71 struct spi_config spis_config_invalid = spis_config; in ZTEST()
87 struct spi_config spis_config_invalid = spis_config; in ZTEST()
105 struct spi_config spis_config_invalid = spis_config; in ZTEST()
121 struct spi_config spis_config_invalid = spis_config; in ZTEST()
157 struct spi_config spis_config_invalid = spis_config; in ZTEST()

1234