Home
last modified time | relevance | path

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

1234

/Zephyr-latest/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-latest/drivers/spi/
Dspi_test.c19 const struct spi_config *spi_cfg, in vnd_spi_transceive()
28 const struct spi_config *spi_cfg, in vnd_spi_transceive_async()
39 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_litex_litespi.c42 static int spi_litex_set_frequency(const struct device *dev, const struct spi_config *config) in spi_litex_set_frequency()
59 static int spi_config(const struct device *dev, const struct spi_config *config) in spi_config() function
137 static int spi_litex_xfer(const struct device *dev, const struct spi_config *config) in spi_litex_xfer()
208 static int spi_litex_transceive(const struct device *dev, const struct spi_config *config, in spi_litex_transceive()
214 int ret = spi_config(dev, config); in spi_litex_transceive()
232 static int spi_litex_transceive_async(const struct device *dev, const struct spi_config *config, in spi_litex_transceive_async()
241 static int spi_litex_release(const struct device *dev, const struct spi_config *config) in spi_litex_release()
Dspi_ambiq_bleif.c48 static int spi_config(const struct device *dev, const struct spi_config *config) in spi_config() function
99 static int spi_ambiq_xfer(const struct device *dev, const struct spi_config *config) in spi_ambiq_xfer()
125 static int spi_ambiq_transceive(const struct device *dev, const struct spi_config *config, in spi_ambiq_transceive()
132 ret = spi_config(dev, config); in spi_ambiq_transceive()
149 static int spi_ambiq_release(const struct device *dev, const struct spi_config *config) in spi_ambiq_release()
Dspi_grlib_spimctrl.c46 static int spi_config(struct spi_context *ctx, const struct spi_config *config) in spi_config() function
99 const struct spi_config *config, in transceive()
111 rc = spi_config(ctx, config); in transceive()
143 const struct spi_config *config, in transceive_async()
152 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.c122 int spi_config(const struct device *dev, const struct spi_config *spi_cfg) in spi_config() function
235 static int transceive(const struct device *dev, const struct spi_config *spi_cfg, in transceive()
245 result = spi_config(dev, spi_cfg); in transceive()
264 static int ifx_cat1_spi_transceive_sync(const struct device *dev, const struct spi_config *spi_cfg, in ifx_cat1_spi_transceive_sync()
272 static int ifx_cat1_spi_transceive_async(const struct device *dev, const struct spi_config *spi_cfg, in ifx_cat1_spi_transceive_async()
281 static int ifx_cat1_spi_release(const struct device *dev, const struct spi_config *spi_cfg) in ifx_cat1_spi_release()
Dspi_oc_simple.c36 const struct spi_config *config) in spi_oc_simple_configure()
94 const struct spi_config *config, in spi_oc_simple_transceive()
167 const struct spi_config *config, in spi_oc_simple_transceive_async()
177 const struct spi_config *config) in spi_oc_simple_release()
Dspi_opentitan.c75 static int spi_config(const struct device *dev, uint32_t frequency, in spi_config() function
242 const struct spi_config *config, in spi_opentitan_transceive()
255 rc = spi_config(dev, config->frequency, config->operation); in spi_opentitan_transceive()
284 const struct spi_config *spi_cfg, in spi_opentitan_transceive_async()
295 const struct spi_config *config) in spi_opentitan_release()
Dspi_gecko_eusart.c43 static int spi_eusart_config(const struct device *dev, const struct spi_config *config, in spi_eusart_config()
204 static void spi_gecko_eusart_xfer(const struct device *dev, const struct spi_config *config) in spi_gecko_eusart_xfer()
242 static int spi_gecko_eusart_transceive(const struct device *dev, const struct spi_config *config, in spi_gecko_eusart_transceive()
268 const struct spi_config *config, in spi_gecko_eusart_transceive_async()
277 static int spi_gecko_eusart_release(const struct device *dev, const struct spi_config *config) in spi_gecko_eusart_release()
Dspi_ambiq_spid.c98 static int spi_config(const struct device *dev, const struct spi_config *config) in spi_config() function
183 static int spi_ambiq_xfer(const struct device *dev, const struct spi_config *config) in spi_ambiq_xfer()
273 static int spi_ambiq_transceive(const struct device *dev, const struct spi_config *config, in spi_ambiq_transceive()
292 ret = spi_config(dev, config); in spi_ambiq_transceive()
315 static int spi_ambiq_release(const struct device *dev, const struct spi_config *config) in spi_ambiq_release()
Dspi_b91.c72 const struct spi_config *config) in spi_b91_config_cs()
241 static bool spi_b91_is_config_supported(const struct spi_config *config, in spi_b91_is_config_supported()
297 const struct spi_config *config) in spi_b91_config()
382 const struct spi_config *config, in spi_b91_transceive()
423 const struct spi_config *config, in spi_b91_transceive_async()
442 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_gecko_usart.c116 static int spi_config(const struct device *dev, in spi_config() function
117 const struct spi_config *config, in spi_config()
272 const struct spi_config *config) in spi_gecko_xfer()
379 const struct spi_config *config, in spi_gecko_transceive()
389 ret = spi_config(dev, config, &control); in spi_gecko_transceive()
405 const struct spi_config *config, in spi_gecko_transceive_async()
415 const struct spi_config *config) in spi_gecko_release()
Dspi_mcux_ecspi.c142 const struct spi_config *spi_cfg) in spi_mcux_configure()
222 const struct spi_config *spi_cfg, in transceive()
252 const struct spi_config *spi_cfg, in spi_mcux_transceive()
261 const struct spi_config *spi_cfg, in spi_mcux_transceive_async()
271 static int spi_mcux_release(const struct device *dev, const struct spi_config *spi_cfg) in spi_mcux_release()
/Zephyr-latest/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-latest/include/zephyr/drivers/
Dspi.h301 struct spi_config { struct
381 struct spi_config config;
647 const struct spi_config *config,
666 const struct spi_config *config,
688 const struct spi_config *config);
713 static inline bool spi_cs_is_gpio(const struct spi_config *config) in spi_cs_is_gpio()
771 const struct spi_config *config,
776 const struct spi_config *config, in z_impl_spi_transceive()
830 const struct spi_config *config, in spi_read()
871 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-latest/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-latest/subsys/mgmt/ec_host_cmd/backends/
Dec_host_cmd_backend_spi_stm32.c166 struct ec_host_cmd_spi_cfg *spi_config; member
228 .spi_config = &ec_host_cmd_spi_cfg, \
321 const struct ec_host_cmd_spi_cfg *cfg = hc_spi->spi_config; in dma_callback()
341 (clock_control_subsys_t)&hc_spi->spi_config->pclken[0]); in spi_init()
348 hc_spi->spi_config->pclk_len > 1) { in spi_init()
351 (clock_control_subsys_t)&hc_spi->spi_config->pclken[1], NULL); in spi_init()
359 err = pinctrl_apply_state(hc_spi->spi_config->pcfg, PINCTRL_STATE_DEFAULT); in spi_init()
380 const struct ec_host_cmd_spi_cfg *cfg = hc_spi->spi_config; in spi_configure()
419 const struct ec_host_cmd_spi_cfg *cfg = hc_spi->spi_config; in reload_dma_tx()
444 const struct ec_host_cmd_spi_cfg *cfg = hc_spi->spi_config; in spi_config_dma_tx()
[all …]
/Zephyr-latest/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-latest/samples/boards/microchip/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-latest/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()
/Zephyr-latest/drivers/wifi/infineon/
Dairoc_whd_hal_spi.c22 whd_spi_config_t spi_config; member
175 const whd_oob_config_t *oob_config = &data->whd_drv->bus_priv->spi_config.oob_config; in whd_bus_spi_oob_irq_handler()
200 const whd_oob_config_t *oob_config = &whd_driver->bus_priv->spi_config.oob_config; in whd_bus_spi_irq_register()
238 const whd_oob_config_t *oob_config = &whd_driver->bus_priv->spi_config.oob_config; in whd_bus_spi_irq_enable()

1234