Home
last modified time | relevance | path

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

1234

/OK3568_Linux_fs/u-boot/include/
H A Dspi.h109 struct spi_slave { struct
179 spi_do_alloc_slave(0, sizeof(struct spi_slave), bus, cs)
197 struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs,
205 void spi_free_slave(struct spi_slave *slave);
221 int spi_claim_bus(struct spi_slave *slave);
232 void spi_release_bus(struct spi_slave *slave);
244 int spi_set_wordlen(struct spi_slave *slave, unsigned int wordlen);
268 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *dout,
287 int spi_write_then_read(struct spi_slave *slave, const u8 *opcode,
312 void spi_cs_activate(struct spi_slave *slave);
[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.h58 EXPORT_FUNC(spi_setup_slave, struct spi_slave *, spi_setup_slave,
60 EXPORT_FUNC(spi_free_slave, void, spi_free_slave, struct spi_slave *)
67 EXPORT_FUNC(spi_claim_bus, int, spi_claim_bus, struct spi_slave *)
68 EXPORT_FUNC(spi_release_bus, void, spi_release_bus, struct spi_slave *)
69 EXPORT_FUNC(spi_xfer, int, spi_xfer, struct spi_slave *,
/OK3568_Linux_fs/u-boot/drivers/video/
H A Dlg4573.c14 static int lb043wv_spi_write_u16(struct spi_slave *spi, u16 val) in lb043wv_spi_write_u16()
29 static void lb043wv_spi_write_u16_array(struct spi_slave *spi, u16 *buff, in lb043wv_spi_write_u16_array()
38 static void lb043wv_display_mode_settings(struct spi_slave *spi) in lb043wv_display_mode_settings()
80 static void lb043wv_power_settings(struct spi_slave *spi) in lb043wv_power_settings()
111 static void lb043wv_gamma_settings(struct spi_slave *spi) in lb043wv_gamma_settings()
181 static void lb043wv_display_on(struct spi_slave *spi) in lb043wv_display_on()
194 struct spi_slave *spi; in lg4573_spi_startup()
/OK3568_Linux_fs/u-boot/drivers/spi/
H A Dlpc32xx_ssp.c41 struct spi_slave slave;
46 struct spi_slave *slave) in to_lpc32xx_spi_slave()
62 struct spi_slave *spi_setup_slave(uint bus, uint cs, uint max_hz, uint mode) in spi_setup_slave()
105 void spi_free_slave(struct spi_slave *slave) in spi_free_slave()
113 int spi_claim_bus(struct spi_slave *slave) in spi_claim_bus()
119 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, in spi_xfer()
141 void spi_release_bus(struct spi_slave *slave) in spi_release_bus()
H A Dsoft_spi_legacy.c27 struct spi_slave slave;
31 static inline struct soft_spi_slave *to_soft_spi(struct spi_slave *slave) in to_soft_spi()
47 struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs, in spi_setup_slave()
66 void spi_free_slave(struct spi_slave *slave) in spi_free_slave()
73 int spi_claim_bus(struct spi_slave *slave) in spi_claim_bus()
92 void spi_release_bus(struct spi_slave *slave) in spi_release_bus()
109 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, in spi_xfer()
H A Dsh_qspi.c71 struct spi_slave slave;
75 static inline struct sh_qspi_slave *to_sh_qspi(struct spi_slave *slave) in to_sh_qspi()
128 void spi_cs_activate(struct spi_slave *slave) in spi_cs_activate()
151 void spi_cs_deactivate(struct spi_slave *slave) in spi_cs_deactivate()
164 struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs, in spi_setup_slave()
186 void spi_free_slave(struct spi_slave *slave) in spi_free_slave()
193 int spi_claim_bus(struct spi_slave *slave) in spi_claim_bus()
198 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()
H A Dmpc8xxx_spi.c24 struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs, in spi_setup_slave()
27 struct spi_slave *slave; in spi_setup_slave()
44 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()
70 void spi_release_bus(struct spi_slave *slave) in spi_release_bus()
75 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *dout, in spi_xfer()
H A Dspi-uclass.c53 struct spi_slave *slave = dev_get_parent_priv(dev); in dm_spi_claim_bus()
118 int spi_claim_bus(struct spi_slave *slave) in spi_claim_bus()
123 void spi_release_bus(struct spi_slave *slave) in spi_release_bus()
128 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, in spi_xfer()
134 int spi_write_then_read(struct spi_slave *slave, const u8 *opcode, in spi_write_then_read()
206 struct spi_slave *slave = dev_get_parent_priv(dev); in spi_child_pre_probe()
328 struct udevice **busp, struct spi_slave **devp) in spi_get_bus_and_cs()
333 struct spi_slave *slave; in spi_get_bus_and_cs()
380 struct spi_slave *slave; in spi_get_bus_and_cs()
420 struct spi_slave *spi_setup_slave(unsigned int busnum, unsigned int cs, in spi_setup_slave()
[all …]
H A Dkirkwood_spi.c106 struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs, in spi_setup_slave()
109 struct spi_slave *slave; in spi_setup_slave()
147 void spi_free_slave(struct spi_slave *slave) in spi_free_slave()
159 __attribute__((weak)) int board_spi_claim_bus(struct spi_slave *slave) in board_spi_claim_bus()
164 int spi_claim_bus(struct spi_slave *slave) in spi_claim_bus()
197 __attribute__((weak)) void board_spi_release_bus(struct spi_slave *slave) in board_spi_release_bus()
201 void spi_release_bus(struct spi_slave *slave) in spi_release_bus()
226 void spi_cs_activate(struct spi_slave *slave) in spi_cs_activate()
231 void spi_cs_deactivate(struct spi_slave *slave) in spi_cs_deactivate()
236 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, in spi_xfer()
H A Dcf_spi.c18 struct spi_slave slave;
42 static inline struct cf_spi_slave *to_cf_spi_slave(struct spi_slave *slave) in to_cf_spi_slave()
103 static int cfspi_xfer(struct spi_slave *slave, uint bitlen, const void *dout, in cfspi_xfer()
177 static struct spi_slave *cfspi_setup_slave(struct cf_spi_slave *cfslave, in cfspi_setup_slave()
296 struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs, in spi_setup_slave()
314 void spi_free_slave(struct spi_slave *slave) in spi_free_slave()
321 int spi_claim_bus(struct spi_slave *slave) in spi_claim_bus()
326 void spi_release_bus(struct spi_slave *slave) in spi_release_bus()
331 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *dout, in spi_xfer()
H A Dti_qspi.c103 struct spi_slave slave;
322 static inline struct ti_qspi_priv *to_ti_qspi_priv(struct spi_slave *slave) in to_ti_qspi_priv()
332 void spi_cs_activate(struct spi_slave *slave) in spi_cs_activate()
338 void spi_cs_deactivate(struct spi_slave *slave) in spi_cs_deactivate()
354 struct spi_slave *slave = &priv->slave; in ti_spi_setup_spi_register()
370 struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs, in spi_setup_slave()
406 void spi_free_slave(struct spi_slave *slave) in spi_free_slave()
412 int spi_claim_bus(struct spi_slave *slave) in spi_claim_bus()
420 void spi_release_bus(struct spi_slave *slave) in spi_release_bus()
428 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *dout, in spi_xfer()
[all …]
H A Dsh_spi.c87 struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs, in spi_setup_slave()
118 void spi_free_slave(struct spi_slave *slave) in spi_free_slave()
125 int spi_claim_bus(struct spi_slave *slave) in spi_claim_bus()
130 void spi_release_bus(struct spi_slave *slave) in spi_release_bus()
207 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *dout, in spi_xfer()
246 void spi_cs_activate(struct spi_slave *slave) in spi_cs_activate()
251 void spi_cs_deactivate(struct spi_slave *slave) in spi_cs_deactivate()
H A Dmxs_spi.c32 struct spi_slave slave;
38 static inline struct mxs_spi_slave *to_mxs_slave(struct spi_slave *slave) in to_mxs_slave()
56 struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs, in spi_setup_slave()
84 void spi_free_slave(struct spi_slave *slave) in spi_free_slave()
90 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()
310 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()
396 struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs, in spi_setup_slave()
432 void spi_free_slave(struct spi_slave *slave) in spi_free_slave()
439 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, in spi_xfer()
449 int spi_claim_bus(struct spi_slave *slave) in spi_claim_bus()
461 void spi_release_bus(struct spi_slave *slave) in spi_release_bus()
H A Dfsl_espi.c17 struct spi_slave slave;
66 struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs, in spi_setup_slave()
116 void spi_free_slave(struct spi_slave *slave) in spi_free_slave()
127 int spi_claim_bus(struct spi_slave *slave) in spi_claim_bus()
178 void spi_release_bus(struct spi_slave *slave) in spi_release_bus()
245 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *data_out, in spi_xfer()
368 void spi_cs_activate(struct spi_slave *slave) in spi_cs_activate()
381 void spi_cs_deactivate(struct spi_slave *slave) in spi_cs_deactivate()
H A Dspi.c12 int spi_set_wordlen(struct spi_slave *slave, unsigned int wordlen) in spi_set_wordlen()
31 struct spi_slave *slave; in spi_do_alloc_slave()
34 slave = (struct spi_slave *)(ptr + offset); in spi_do_alloc_slave()
H A Dmxc_spi.c43 struct spi_slave slave;
56 static inline struct mxc_spi_slave *to_mxc_spi_slave(struct spi_slave *slave) in to_mxc_spi_slave()
396 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *dout, in spi_xfer()
439 struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs, in spi_setup_slave()
474 void spi_free_slave(struct spi_slave *slave) in spi_free_slave()
481 int spi_claim_bus(struct spi_slave *slave) in spi_claim_bus()
488 void spi_release_bus(struct spi_slave *slave) in spi_release_bus()
/OK3568_Linux_fs/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;
51 struct spi_slave *spi_setup_slave(unsigned int busnum, unsigned int cs,
57 struct spi_slave *spi_setup_slave_fdt(const void *blob, int slave_node,
275 'struct spi_slave', so you can use that.
278 struct spi_slave slave;
361 int spi_claim_bus(struct spi_slave *slave)
363 struct exynos_spi_slave *spi_slave = to_exynos_spi(slave);
364 struct exynos_spi *regs = spi_slave->regs;
368 ret = set_spi_clk(spi_slave->periph_id,
[all …]
H A 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 …]
/OK3568_Linux_fs/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()
132 struct spi_slave *slave; in atmel_df_pow2()
/OK3568_Linux_fs/u-boot/drivers/mtd/spi/
H A Dsf.c13 static int spi_flash_read_write(struct spi_slave *spi, in spi_flash_read_write()
39 int spi_flash_cmd_read(struct spi_slave *spi, const u8 *cmd, in spi_flash_cmd_read()
45 int spi_flash_cmd(struct spi_slave *spi, u8 cmd, void *response, size_t len) in spi_flash_cmd()
50 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.c77 static inline int dataflash_status(struct spi_slave *spi) in dataflash_status()
96 static int dataflash_waitready(struct spi_slave *spi) in dataflash_waitready()
122 struct spi_slave *spi; in spi_dataflash_erase()
216 struct spi_slave *spi; in spi_dataflash_read()
272 struct spi_slave *spi; in spi_dataflash_write()
509 static struct data_flash_info *jedec_probe(struct spi_slave *spi) in jedec_probe()
590 struct spi_slave *spi = dev_get_parent_priv(dev); in spi_dataflash_probe()
/OK3568_Linux_fs/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()
/OK3568_Linux_fs/u-boot/drivers/video/drm/
H A Drockchip_panel.c68 struct spi_slave *spi_slave; member
197 if (priv->spi_slave) { in rockchip_panel_send_spi_cmds()
198 ret = spi_claim_bus(priv->spi_slave); in rockchip_panel_send_spi_cmds()
211 if (priv->spi_slave) { in rockchip_panel_send_spi_cmds()
216 ret = spi_xfer(priv->spi_slave, 9, &data, NULL, SPI_XFER_ONCE); in rockchip_panel_send_spi_cmds()
232 if (priv->spi_slave) in rockchip_panel_send_spi_cmds()
233 spi_release_bus(priv->spi_slave); in rockchip_panel_send_spi_cmds()
532 priv->spi_slave = spi_setup_slave(spi->seq, plat->cs, plat->max_hz, in rockchip_panel_probe()
534 if (!priv->spi_slave) { in rockchip_panel_probe()

1234