/external/u-boot/include/ |
D | spi.h | 95 struct spi_slave { struct 164 spi_do_alloc_slave(0, sizeof(struct spi_slave), bus, cs) 182 struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs, 190 void spi_free_slave(struct spi_slave *slave); 206 int spi_claim_bus(struct spi_slave *slave); 217 void spi_release_bus(struct spi_slave *slave); 229 int spi_set_wordlen(struct spi_slave *slave, unsigned int wordlen); 253 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *dout, 277 void spi_cs_activate(struct spi_slave *slave); 286 void spi_cs_deactivate(struct spi_slave *slave); [all …]
|
D | _exports.h | 58 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 *,
|
/external/u-boot/drivers/video/ |
D | lg4573.c | 13 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()
|
/external/u-boot/drivers/spi/ |
D | lpc32xx_ssp.c | 40 struct spi_slave slave; 45 struct spi_slave *slave) in to_lpc32xx_spi_slave() 61 struct spi_slave *spi_setup_slave(uint bus, uint cs, uint max_hz, uint mode) in spi_setup_slave() 104 void spi_free_slave(struct spi_slave *slave) in spi_free_slave() 112 int spi_claim_bus(struct spi_slave *slave) in spi_claim_bus() 118 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, in spi_xfer() 140 void spi_release_bus(struct spi_slave *slave) in spi_release_bus()
|
D | soft_spi_legacy.c | 26 struct spi_slave slave; 30 static inline struct soft_spi_slave *to_soft_spi(struct spi_slave *slave) in to_soft_spi() 46 struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs, in spi_setup_slave() 65 void spi_free_slave(struct spi_slave *slave) in spi_free_slave() 72 int spi_claim_bus(struct spi_slave *slave) in spi_claim_bus() 91 void spi_release_bus(struct spi_slave *slave) in spi_release_bus() 108 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, in spi_xfer()
|
D | sh_qspi.c | 70 struct spi_slave slave; 74 static inline struct sh_qspi_slave *to_sh_qspi(struct spi_slave *slave) in to_sh_qspi() 127 void spi_cs_activate(struct spi_slave *slave) in spi_cs_activate() 150 void spi_cs_deactivate(struct spi_slave *slave) in spi_cs_deactivate() 163 struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs, in spi_setup_slave() 185 void spi_free_slave(struct spi_slave *slave) in spi_free_slave() 192 int spi_claim_bus(struct spi_slave *slave) in spi_claim_bus() 197 void spi_release_bus(struct spi_slave *slave) in spi_release_bus() 201 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *dout, in spi_xfer()
|
D | mpc8xxx_spi.c | 23 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()
|
D | kirkwood_spi.c | 105 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()
|
D | spi-uclass.c | 50 struct spi_slave *slave = dev_get_parent_priv(dev); in dm_spi_claim_bus() 93 int spi_claim_bus(struct spi_slave *slave) in spi_claim_bus() 98 void spi_release_bus(struct spi_slave *slave) in spi_release_bus() 103 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, in spi_xfer() 153 struct spi_slave *slave = dev_get_parent_priv(dev); in spi_child_pre_probe() 269 struct udevice **busp, struct spi_slave **devp) in spi_get_bus_and_cs() 313 struct spi_slave *slave; in spi_get_bus_and_cs() 349 struct spi_slave *spi_setup_slave(unsigned int busnum, unsigned int cs, in spi_setup_slave() 352 struct spi_slave *slave; in spi_setup_slave() 364 void spi_free_slave(struct spi_slave *slave) in spi_free_slave() [all …]
|
D | cf_spi.c | 17 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()
|
D | sh_spi.c | 86 struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs, in spi_setup_slave() 117 void spi_free_slave(struct spi_slave *slave) in spi_free_slave() 124 int spi_claim_bus(struct spi_slave *slave) in spi_claim_bus() 129 void spi_release_bus(struct spi_slave *slave) in spi_release_bus() 206 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *dout, in spi_xfer() 245 void spi_cs_activate(struct spi_slave *slave) in spi_cs_activate() 250 void spi_cs_deactivate(struct spi_slave *slave) in spi_cs_deactivate()
|
D | ti_qspi.c | 102 struct spi_slave slave; 321 static inline struct ti_qspi_priv *to_ti_qspi_priv(struct spi_slave *slave) in to_ti_qspi_priv() 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() 369 struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs, in spi_setup_slave() 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() 427 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *dout, in spi_xfer() [all …]
|
D | mxs_spi.c | 31 struct spi_slave slave; 37 static inline struct mxs_spi_slave *to_mxs_slave(struct spi_slave *slave) in to_mxs_slave() 55 struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs, in spi_setup_slave() 83 void spi_free_slave(struct spi_slave *slave) in spi_free_slave() 89 int spi_claim_bus(struct spi_slave *slave) in spi_claim_bus() 113 void spi_release_bus(struct spi_slave *slave) in spi_release_bus() 309 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, in spi_xfer()
|
D | davinci_spi.c | 122 struct spi_slave slave; 347 static inline struct davinci_spi_slave *to_davinci_spi(struct spi_slave *slave) in to_davinci_spi() 380 void spi_cs_activate(struct spi_slave *slave) in spi_cs_activate() 385 void spi_cs_deactivate(struct spi_slave *slave) in spi_cs_deactivate() 395 struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs, in spi_setup_slave() 431 void spi_free_slave(struct spi_slave *slave) in spi_free_slave() 438 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, in spi_xfer() 448 int spi_claim_bus(struct spi_slave *slave) in spi_claim_bus() 460 void spi_release_bus(struct spi_slave *slave) in spi_release_bus()
|
D | spi.c | 11 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()
|
D | fsl_espi.c | 16 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() 126 int spi_claim_bus(struct spi_slave *slave) in spi_claim_bus() 177 void spi_release_bus(struct spi_slave *slave) in spi_release_bus() 244 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *data_out, in spi_xfer() 367 void spi_cs_activate(struct spi_slave *slave) in spi_cs_activate() 380 void spi_cs_deactivate(struct spi_slave *slave) in spi_cs_deactivate()
|
D | mxc_spi.c | 42 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() 438 struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs, in spi_setup_slave() 473 void spi_free_slave(struct spi_slave *slave) in spi_free_slave() 480 int spi_claim_bus(struct spi_slave *slave) in spi_claim_bus() 487 void spi_release_bus(struct spi_slave *slave) in spi_release_bus()
|
D | sh_spi.h | 58 struct spi_slave slave; 62 static inline struct sh_spi *to_sh_spi(struct spi_slave *slave) in to_sh_spi()
|
/external/u-boot/doc/driver-model/ |
D | spi-howto.txt | 12 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 …]
|
/external/u-boot/examples/standalone/ |
D | atmel_df_pow2.c | 17 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()
|
/external/u-boot/drivers/mtd/spi/ |
D | sf.c | 12 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()
|
D | sf_dataflash.c | 75 static inline int dataflash_status(struct spi_slave *spi) in dataflash_status() 92 static int dataflash_waitready(struct spi_slave *spi) in dataflash_waitready() 118 struct spi_slave *spi; in spi_dataflash_erase() 212 struct spi_slave *spi; in spi_dataflash_read() 268 struct spi_slave *spi; in spi_dataflash_write() 504 static struct flash_info *jedec_probe(struct spi_slave *spi) in jedec_probe() 584 struct spi_slave *spi = dev_get_parent_priv(dev); in spi_dataflash_probe()
|
D | sf_probe.c | 27 struct spi_slave *spi = flash->spi; in spi_flash_probe_slave() 60 struct spi_slave *bus; in spi_flash_probe() 129 struct spi_slave *slave = dev_get_parent_priv(dev); in spi_flash_std_probe()
|
/external/u-boot/drivers/mmc/ |
D | mmc_spi.c | 55 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()
|
/external/u-boot/drivers/net/ |
D | e1000_spi.c | 75 static inline struct e1000_hw *e1000_hw_from_spi(struct spi_slave *spi) in e1000_hw_from_spi() 83 struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs, in spi_setup_slave() 114 void spi_free_slave(struct spi_slave *spi) in spi_free_slave() 120 int spi_claim_bus(struct spi_slave *spi) in spi_claim_bus() 132 void spi_release_bus(struct spi_slave *spi) in spi_release_bus() 139 int spi_xfer(struct spi_slave *spi, unsigned int bitlen, in spi_xfer()
|