Home
last modified time | relevance | path

Searched refs:spi_slave (Results 1 – 25 of 74) sorted by relevance

123

/openbmc/u-boot/include/
H A Dspi.h97 struct spi_slave { struct
159 spi_do_alloc_slave(0, sizeof(struct spi_slave), bus, cs)
177 struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs,
185 void spi_free_slave(struct spi_slave *slave);
201 int spi_claim_bus(struct spi_slave *slave);
212 void spi_release_bus(struct spi_slave *slave);
224 int spi_set_wordlen(struct spi_slave *slave, unsigned int wordlen);
272 void spi_cs_activate(struct spi_slave *slave);
281 void spi_cs_deactivate(struct spi_slave *slave);
289 void spi_set_speed(struct spi_slave *slave, uint hz);
[all …]
H A Dspi-mem.h181 int (*adjust_op_size)(struct spi_slave *slave, struct spi_mem_op *op);
182 bool (*supports_op)(struct spi_slave *slave,
184 int (*exec_op)(struct spi_slave *slave,
238 int spi_mem_adjust_op_size(struct spi_slave *slave, struct spi_mem_op *op);
240 bool spi_mem_supports_op(struct spi_slave *slave, const struct spi_mem_op *op);
242 int spi_mem_exec_op(struct spi_slave *slave, const struct spi_mem_op *op);
H A D_exports.h56 EXPORT_FUNC(spi_setup_slave, struct spi_slave *, spi_setup_slave,
58 EXPORT_FUNC(spi_free_slave, void, spi_free_slave, struct spi_slave *)
65 EXPORT_FUNC(spi_claim_bus, int, spi_claim_bus, struct spi_slave *)
66 EXPORT_FUNC(spi_release_bus, void, spi_release_bus, struct spi_slave *)
67 EXPORT_FUNC(spi_xfer, int, spi_xfer, struct spi_slave *,
/openbmc/u-boot/drivers/video/
H A Dlg4573.c13 static int lb043wv_spi_write_u16(struct spi_slave *spi, u16 val) in lb043wv_spi_write_u16()
28 static void lb043wv_spi_write_u16_array(struct spi_slave *spi, u16 *buff, in lb043wv_spi_write_u16_array()
37 static void lb043wv_display_mode_settings(struct spi_slave *spi) in lb043wv_display_mode_settings()
79 static void lb043wv_power_settings(struct spi_slave *spi) in lb043wv_power_settings()
110 static void lb043wv_gamma_settings(struct spi_slave *spi) in lb043wv_gamma_settings()
180 static void lb043wv_display_on(struct spi_slave *spi) in lb043wv_display_on()
193 struct spi_slave *spi; in lg4573_spi_startup()
/openbmc/u-boot/drivers/spi/
H A Dsoft_spi_legacy.c26 struct spi_slave slave;
30 static inline struct soft_spi_slave *to_soft_spi(struct spi_slave *slave) in to_soft_spi()
39 struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs, in spi_setup_slave()
58 void spi_free_slave(struct spi_slave *slave) in spi_free_slave()
65 int spi_claim_bus(struct spi_slave *slave) in spi_claim_bus()
84 void spi_release_bus(struct spi_slave *slave) in spi_release_bus()
101 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, in spi_xfer()
H A Dlpc32xx_ssp.c40 struct spi_slave slave;
45 struct spi_slave *slave) in to_lpc32xx_spi_slave()
52 struct spi_slave *spi_setup_slave(uint bus, uint cs, uint max_hz, uint mode) in spi_setup_slave()
95 void spi_free_slave(struct spi_slave *slave) in spi_free_slave()
103 int spi_claim_bus(struct spi_slave *slave) in spi_claim_bus()
109 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, in spi_xfer()
131 void spi_release_bus(struct spi_slave *slave) in spi_release_bus()
H A Dmpc8xxx_spi.c23 struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs, in spi_setup_slave()
26 struct spi_slave *slave; in spi_setup_slave()
43 void spi_free_slave(struct spi_slave *slave) in spi_free_slave()
64 int spi_claim_bus(struct spi_slave *slave) in spi_claim_bus()
69 void spi_release_bus(struct spi_slave *slave) in spi_release_bus()
74 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *dout, in spi_xfer()
H A Dkirkwood_spi.c105 struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs, in spi_setup_slave()
108 struct spi_slave *slave; in spi_setup_slave()
146 void spi_free_slave(struct spi_slave *slave) in spi_free_slave()
158 __attribute__((weak)) int board_spi_claim_bus(struct spi_slave *slave) in board_spi_claim_bus()
163 int spi_claim_bus(struct spi_slave *slave) in spi_claim_bus()
196 __attribute__((weak)) void board_spi_release_bus(struct spi_slave *slave) in board_spi_release_bus()
200 void spi_release_bus(struct spi_slave *slave) in spi_release_bus()
225 void spi_cs_activate(struct spi_slave *slave) in spi_cs_activate()
230 void spi_cs_deactivate(struct spi_slave *slave) in spi_cs_deactivate()
235 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, in spi_xfer()
H A Dcf_spi.c17 struct spi_slave slave;
41 static inline struct cf_spi_slave *to_cf_spi_slave(struct spi_slave *slave) in to_cf_spi_slave()
102 static int cfspi_xfer(struct spi_slave *slave, uint bitlen, const void *dout, in cfspi_xfer()
176 static struct spi_slave *cfspi_setup_slave(struct cf_spi_slave *cfslave, in cfspi_setup_slave()
295 struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs, in spi_setup_slave()
313 void spi_free_slave(struct spi_slave *slave) in spi_free_slave()
320 int spi_claim_bus(struct spi_slave *slave) in spi_claim_bus()
325 void spi_release_bus(struct spi_slave *slave) in spi_release_bus()
330 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *dout, in spi_xfer()
H A Dspi-uclass.c52 struct spi_slave *slave = dev_get_parent_priv(dev); in dm_spi_claim_bus()
115 int spi_claim_bus(struct spi_slave *slave) in spi_claim_bus()
120 void spi_release_bus(struct spi_slave *slave) in spi_release_bus()
125 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, in spi_xfer()
131 int spi_nor_ctrl_wlock(struct spi_slave *slave, u32 offset, size_t len) in spi_nor_ctrl_wlock()
185 struct spi_slave *slave = dev_get_parent_priv(dev); in spi_child_pre_probe()
301 struct udevice **busp, struct spi_slave **devp) in spi_get_bus_and_cs()
351 struct spi_slave *slave; in spi_get_bus_and_cs()
390 struct spi_slave *slave; in spi_setup_slave()
402 void spi_free_slave(struct spi_slave *slave) in spi_free_slave()
[all …]
H A Dsh_qspi.c71 struct spi_slave slave;
226 static inline struct sh_qspi_slave *to_sh_qspi(struct spi_slave *slave) in to_sh_qspi()
236 void spi_cs_activate(struct spi_slave *slave) in spi_cs_activate()
243 void spi_cs_deactivate(struct spi_slave *slave) in spi_cs_deactivate()
250 struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs, in spi_setup_slave()
272 void spi_free_slave(struct spi_slave *slave) in spi_free_slave()
279 int spi_claim_bus(struct spi_slave *slave) in spi_claim_bus()
284 void spi_release_bus(struct spi_slave *slave) in spi_release_bus()
288 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, in spi_xfer()
H A Dsh_spi.c82 struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs, in spi_setup_slave()
113 void spi_free_slave(struct spi_slave *slave) in spi_free_slave()
120 int spi_claim_bus(struct spi_slave *slave) in spi_claim_bus()
125 void spi_release_bus(struct spi_slave *slave) in spi_release_bus()
202 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *dout, in spi_xfer()
241 void spi_cs_activate(struct spi_slave *slave) in spi_cs_activate()
246 void spi_cs_deactivate(struct spi_slave *slave) in spi_cs_deactivate()
H A Dspi.c11 int spi_set_wordlen(struct spi_slave *slave, unsigned int wordlen) in spi_set_wordlen()
30 struct spi_slave *slave; in spi_do_alloc_slave()
33 slave = (struct spi_slave *)(ptr + offset); in spi_do_alloc_slave()
H A Dti_qspi.c102 struct spi_slave slave;
331 void spi_cs_activate(struct spi_slave *slave) in spi_cs_activate()
337 void spi_cs_deactivate(struct spi_slave *slave) in spi_cs_deactivate()
353 struct spi_slave *slave = &priv->slave; in ti_spi_setup_spi_register()
405 void spi_free_slave(struct spi_slave *slave) in spi_free_slave()
411 int spi_claim_bus(struct spi_slave *slave) in spi_claim_bus()
419 void spi_release_bus(struct spi_slave *slave) in spi_release_bus()
440 struct spi_slave *slave, in __ti_qspi_setup_memorymap()
494 struct spi_slave *slave = dev_get_parent_priv(dev); in ti_qspi_claim_bus()
513 struct spi_slave *slave = dev_get_parent_priv(dev); in ti_qspi_release_bus()
[all …]
H A Dmxs_spi.c31 struct spi_slave slave;
37 static inline struct mxs_spi_slave *to_mxs_slave(struct spi_slave *slave) in to_mxs_slave()
51 struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs, in spi_setup_slave()
79 void spi_free_slave(struct spi_slave *slave) in spi_free_slave()
85 int spi_claim_bus(struct spi_slave *slave) in spi_claim_bus()
109 void spi_release_bus(struct spi_slave *slave) in spi_release_bus()
305 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, in spi_xfer()
H A Ddavinci_spi.c123 struct spi_slave slave;
348 static inline struct davinci_spi_slave *to_davinci_spi(struct spi_slave *slave) in to_davinci_spi()
381 void spi_cs_activate(struct spi_slave *slave) in spi_cs_activate()
386 void spi_cs_deactivate(struct spi_slave *slave) in spi_cs_deactivate()
391 struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs, in spi_setup_slave()
427 void spi_free_slave(struct spi_slave *slave) in spi_free_slave()
434 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, in spi_xfer()
444 int spi_claim_bus(struct spi_slave *slave) in spi_claim_bus()
456 void spi_release_bus(struct spi_slave *slave) in spi_release_bus()
H A Dfsl_espi.c16 struct spi_slave slave;
65 struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs, in spi_setup_slave()
115 void spi_free_slave(struct spi_slave *slave) in spi_free_slave()
121 int spi_claim_bus(struct spi_slave *slave) in spi_claim_bus()
172 void spi_release_bus(struct spi_slave *slave) in spi_release_bus()
239 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *data_out, in spi_xfer()
362 void spi_cs_activate(struct spi_slave *slave) in spi_cs_activate()
375 void spi_cs_deactivate(struct spi_slave *slave) in spi_cs_deactivate()
H A Dsh_spi.h58 struct spi_slave slave;
62 static inline struct sh_spi *to_sh_spi(struct spi_slave *slave) in to_sh_spi()
H A Dmxc_spi.c42 struct spi_slave slave;
55 static inline struct mxc_spi_slave *to_mxc_spi_slave(struct spi_slave *slave) in to_mxc_spi_slave()
395 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *dout, in spi_xfer()
434 struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs, in spi_setup_slave()
469 void spi_free_slave(struct spi_slave *slave) in spi_free_slave()
476 int spi_claim_bus(struct spi_slave *slave) in spi_claim_bus()
483 void spi_release_bus(struct spi_slave *slave) in spi_release_bus()
/openbmc/u-boot/drivers/mtd/spi/
H A Dsf_internal.h76 int spi_flash_cmd(struct spi_slave *spi, u8 cmd, void *response, size_t len);
82 int spi_flash_cmd_read(struct spi_slave *spi, const u8 *cmd,
89 int spi_flash_cmd_write(struct spi_slave *spi, const u8 *cmd, size_t cmd_len,
100 int spi_nor_ctrl_wlock(struct spi_slave *slave, u32 offset, size_t len);
101 int spi_nor_ctrl_wunlock(struct spi_slave *slave, u32 offset, size_t len);
H A Dsf.c12 static int spi_flash_read_write(struct spi_slave *spi, in spi_flash_read_write()
38 int spi_flash_cmd_read(struct spi_slave *spi, const u8 *cmd, in spi_flash_cmd_read()
44 int spi_flash_cmd(struct spi_slave *spi, u8 cmd, void *response, size_t len) in spi_flash_cmd()
49 int spi_flash_cmd_write(struct spi_slave *spi, const u8 *cmd, size_t cmd_len, in spi_flash_cmd_write()
H A Dsf_dataflash.c76 static inline int dataflash_status(struct spi_slave *spi) in dataflash_status()
93 static int dataflash_waitready(struct spi_slave *spi) in dataflash_waitready()
119 struct spi_slave *spi; in spi_dataflash_erase()
213 struct spi_slave *spi; in spi_dataflash_read()
269 struct spi_slave *spi; in spi_dataflash_write()
505 static struct data_flash_info *jedec_probe(struct spi_slave *spi) in jedec_probe()
585 struct spi_slave *spi = dev_get_parent_priv(dev); in spi_dataflash_probe()
/openbmc/u-boot/examples/standalone/
H A Datmel_df_pow2.c17 static int flash_cmd(struct spi_slave *slave, uchar cmd, uchar *buf, int len) in flash_cmd()
23 static int flash_status(struct spi_slave *slave) in flash_status()
31 static int flash_set_pow2(struct spi_slave *slave) in flash_set_pow2()
54 static int flash_check(struct spi_slave *slave) in flash_check()
130 struct spi_slave *slave; in atmel_df_pow2()
/openbmc/u-boot/doc/driver-model/
H A Dspi-howto.txt12 contains 'struct spi_slave'. With driver model, 'struct spi_slave' still
21 struct spi_slave slave;
270 'struct spi_slave', so you can use that.
273 struct spi_slave slave;
356 int spi_claim_bus(struct spi_slave *slave)
363 ret = set_spi_clk(spi_slave->periph_id,
364 spi_slave->freq);
377 if (spi_slave->mode & SPI_CPHA)
380 if (spi_slave->mode & SPI_CPOL)
514 spi_slave->last_transaction_us) {
[all …]
/openbmc/u-boot/drivers/mmc/
H A Dmmc_spi.c55 struct spi_slave *spi = mmc->priv; in mmc_spi_sendcmd()
79 struct spi_slave *spi = mmc->priv; in mmc_spi_readdata()
114 struct spi_slave *spi = mmc->priv; in mmc_spi_writedata()
176 struct spi_slave *spi = mmc->priv; in mmc_spi_request()
241 struct spi_slave *spi = mmc->priv; in mmc_spi_set_ios()
251 struct spi_slave *spi = mmc->priv; in mmc_spi_init_p()
279 struct spi_slave *spi; in mmc_spi_init()

123