Home
last modified time | relevance | path

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

123

/third_party/uboot/u-boot-2020.01/include/
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);
248 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *dout,
267 int spi_write_then_read(struct spi_slave *slave, const u8 *opcode,
292 void spi_cs_activate(struct spi_slave *slave);
[all …]
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);
D_exports.h55 EXPORT_FUNC(spi_setup_slave, struct spi_slave *, spi_setup_slave,
57 EXPORT_FUNC(spi_free_slave, void, spi_free_slave, struct spi_slave *)
64 EXPORT_FUNC(spi_claim_bus, int, spi_claim_bus, struct spi_slave *)
65 EXPORT_FUNC(spi_release_bus, void, spi_release_bus, struct spi_slave *)
66 EXPORT_FUNC(spi_xfer, int, spi_xfer, struct spi_slave *,
/third_party/uboot/u-boot-2020.01/drivers/video/
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()
/third_party/uboot/u-boot-2020.01/drivers/spi/
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()
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()
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()
154 __attribute__((weak)) int board_spi_claim_bus(struct spi_slave *slave) in board_spi_claim_bus()
159 int spi_claim_bus(struct spi_slave *slave) in spi_claim_bus()
164 __attribute__((weak)) void board_spi_release_bus(struct spi_slave *slave) in board_spi_release_bus()
168 void spi_release_bus(struct spi_slave *slave) in spi_release_bus()
189 void spi_cs_activate(struct spi_slave *slave) in spi_cs_activate()
194 void spi_cs_deactivate(struct spi_slave *slave) in spi_cs_deactivate()
199 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, in spi_xfer()
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()
Dspi-uclass.c52 struct spi_slave *slave = dev_get_parent_priv(dev); in dm_spi_claim_bus()
109 int spi_claim_bus(struct spi_slave *slave) in spi_claim_bus()
114 void spi_release_bus(struct spi_slave *slave) in spi_release_bus()
119 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, in spi_xfer()
125 int spi_write_then_read(struct spi_slave *slave, const u8 *opcode, in spi_write_then_read()
193 struct spi_slave *slave = dev_get_parent_priv(dev); in spi_child_pre_probe()
308 struct udevice **busp, struct spi_slave **devp) in spi_get_bus_and_cs()
358 struct spi_slave *slave; in spi_get_bus_and_cs()
396 struct spi_slave *spi_setup_slave(unsigned int busnum, unsigned int cs, in spi_setup_slave()
399 struct spi_slave *slave; in spi_setup_slave()
[all …]
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()
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()
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()
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()
Dsh_spi.h58 struct spi_slave slave;
62 static inline struct sh_spi *to_sh_spi(struct spi_slave *slave) in to_sh_spi()
Dmxc_spi.c44 struct spi_slave slave;
59 static inline struct mxc_spi_slave *to_mxc_spi_slave(struct spi_slave *slave) in to_mxc_spi_slave()
415 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *dout, in spi_xfer()
454 struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs, in spi_setup_slave()
489 void spi_free_slave(struct spi_slave *slave) in spi_free_slave()
496 int spi_claim_bus(struct spi_slave *slave) in spi_claim_bus()
503 void spi_release_bus(struct spi_slave *slave) in spi_release_bus()
Dmxs_spi.c48 struct spi_slave slave;
54 static inline struct mxs_spi_slave *to_mxs_slave(struct spi_slave *slave) in to_mxs_slave()
289 int spi_xfer(struct spi_slave *slave, unsigned int bitlen,
370 struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs,
398 void spi_free_slave(struct spi_slave *slave)
405 int spi_claim_bus(struct spi_slave *slave)
429 void spi_release_bus(struct spi_slave *slave)
Datmel_spi.c37 struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs, in spi_setup_slave()
101 void spi_free_slave(struct spi_slave *slave) in spi_free_slave()
108 int spi_claim_bus(struct spi_slave *slave) in spi_claim_bus()
124 void spi_release_bus(struct spi_slave *slave) in spi_release_bus()
132 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, in spi_xfer()
Datmel_spi.h82 struct spi_slave slave;
87 static inline struct atmel_spi_slave *to_atmel_spi(struct spi_slave *slave) in to_atmel_spi()
Domap3_spi.c112 struct spi_slave slave;
459 static inline struct omap3_spi_priv *to_omap3_spi(struct spi_slave *slave) in to_omap3_spi()
464 void spi_free_slave(struct spi_slave *slave) in spi_free_slave()
471 int spi_claim_bus(struct spi_slave *slave) in spi_claim_bus()
485 void spi_release_bus(struct spi_slave *slave) in spi_release_bus()
492 struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs, in spi_setup_slave()
569 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, in spi_xfer()
/third_party/uboot/u-boot-2020.01/examples/standalone/
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()
/third_party/uboot/u-boot-2020.01/doc/driver-model/
Dspi-howto.rst14 contains 'struct spi_slave'. With driver model, 'struct spi_slave' still
25 struct spi_slave slave;
60 struct spi_slave *spi_setup_slave(unsigned int busnum, unsigned int cs,
66 struct spi_slave *spi_setup_slave_fdt(const void *blob, int slave_node,
299 'struct spi_slave', so you can use that.
304 struct spi_slave slave;
396 int spi_claim_bus(struct spi_slave *slave)
398 struct exynos_spi_slave *spi_slave = to_exynos_spi(slave);
399 struct exynos_spi *regs = spi_slave->regs;
403 ret = set_spi_clk(spi_slave->periph_id,
[all …]
/third_party/uboot/u-boot-2020.01/drivers/mtd/spi/
Dsf_dataflash.c76 static inline int dataflash_status(struct spi_slave *spi) in dataflash_status()
95 static int dataflash_waitready(struct spi_slave *spi) in dataflash_waitready()
121 struct spi_slave *spi; in spi_dataflash_erase()
215 struct spi_slave *spi; in spi_dataflash_read()
271 struct spi_slave *spi; in spi_dataflash_write()
508 static struct data_flash_info *jedec_probe(struct spi_slave *spi) in jedec_probe()
589 struct spi_slave *spi = dev_get_parent_priv(dev); in spi_dataflash_probe()
Dsf_probe.c27 struct spi_slave *spi = flash->spi; in spi_flash_probe_slave()
60 struct spi_slave *bus; in spi_flash_probe()
142 struct spi_slave *slave = dev_get_parent_priv(dev); in spi_flash_std_probe()
/third_party/uboot/u-boot-2020.01/drivers/net/
De1000_spi.c75 static inline struct e1000_hw *e1000_hw_from_spi(struct spi_slave *spi) in e1000_hw_from_spi()
80 struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs, in spi_setup_slave()
111 void spi_free_slave(struct spi_slave *spi) in spi_free_slave()
117 int spi_claim_bus(struct spi_slave *spi) in spi_claim_bus()
129 void spi_release_bus(struct spi_slave *spi) in spi_release_bus()
136 int spi_xfer(struct spi_slave *spi, unsigned int bitlen, in spi_xfer()
/third_party/uboot/u-boot-2020.01/board/freescale/mpc8308rdb/
Dmpc8308rdb.c35 void spi_cs_activate(struct spi_slave *slave) in spi_cs_activate()
43 void spi_cs_deactivate(struct spi_slave *slave) in spi_cs_deactivate()

123