/linux/drivers/spi/ |
A D | spi-stm32.c | 891 if (!spi->cur_usedma && (spi->rx_buf && (spi->rx_len > 0))) in stm32h7_spi_irq_thread() 912 if (!spi->cur_usedma && (spi->rx_buf && (spi->rx_len > 0))) in stm32h7_spi_irq_thread() 920 if (!spi->cur_usedma && (spi->tx_buf && (spi->tx_len > 0))) in stm32h7_spi_irq_thread() 924 if (!spi->cur_usedma && (spi->rx_buf && (spi->rx_len > 0))) in stm32h7_spi_irq_thread() 1034 spi->cfg->disable(spi); in stm32_spi_dma_rx_cb() 1535 spi->cfg->set_bpw(spi); in stm32_spi_transfer_one_setup() 1635 spi->cfg->disable(spi); in stm32_spi_unprepare_msg() 1836 spi->fifo_size = spi->cfg->get_fifo_size(spi); in stm32_spi_probe() 1838 ret = spi->cfg->config(spi); in stm32_spi_probe() 1931 spi->cfg->disable(spi); in stm32_spi_remove() [all …]
|
A D | Makefile | 10 obj-$(CONFIG_SPI_MASTER) += spi.o 11 obj-$(CONFIG_SPI_MEM) += spi-mem.o 27 obj-$(CONFIG_SPI_AXI_SPI_ENGINE) += spi-axi-spi-engine.o 32 obj-$(CONFIG_SPI_BCM_QSPI) += spi-iproc-qspi.o spi-brcmstb-qspi.o spi-bcm-qspi.o 43 spi-dw-y := spi-dw-core.o 44 spi-dw-$(CONFIG_SPI_DW_DMA) += spi-dw-dma.o 57 obj-$(CONFIG_SPI_FSL_SPI) += spi-fsl-spi.o 82 spi-octeon-objs := spi-cavium.o spi-cavium-octeon.o 93 spi-pxa2xx-platform-objs := spi-pxa2xx.o spi-pxa2xx-dma.o 106 spi-s3c24xx-hw-y := spi-s3c24xx.o [all …]
|
A D | spi-lantiq-ssc.c | 227 return spi->tx_fifo_size - tx_fifo_level(spi); in tx_fifo_free() 366 hw_setup_bits_per_word(spi, spi->bits_per_word); in lantiq_ssc_hw_init() 424 hw_setup_clock_mode(spi, message->spi->mode); in lantiq_ssc_prepare_message() 492 spi->tx++; in tx_fifo_write() 541 spi->rx++; in rx_fifo_read_full_duplex() 592 spi->rx++; in rx_fifo_read_half_duplex() 633 if (spi->tx) { in lantiq_ssc_xmit_interrupt() 634 if (spi->rx && spi->rx_todo) in lantiq_ssc_xmit_interrupt() 658 queue_work(spi->wq, &spi->work); in lantiq_ssc_xmit_interrupt() 697 queue_work(spi->wq, &spi->work); in lantiq_ssc_err_interrupt() [all …]
|
A D | .built-in.a.cmd | 1 …spi/built-in.a := echo >/dev/null; rm -f drivers/spi/built-in.a; /usr/bin/ccache /home/test/worksp…
|
A D | spi-sifive.c | 141 sifive_spi_write(spi, SIFIVE_SPI_REG_CSDEF, spi->cs_inactive); in sifive_spi_prepare_message() 216 complete(&spi->done); in sifive_spi_irq() 294 struct sifive_spi *spi; in sifive_spi_probe() local 310 if (IS_ERR(spi->regs)) { in sifive_spi_probe() 311 ret = PTR_ERR(spi->regs); in sifive_spi_probe() 316 if (IS_ERR(spi->clk)) { in sifive_spi_probe() 318 ret = PTR_ERR(spi->clk); in sifive_spi_probe() 331 &spi->fifo_depth); in sifive_spi_probe() 353 spi->cs_inactive = sifive_spi_read(spi, SIFIVE_SPI_REG_CSDEF); in sifive_spi_probe() 356 sifive_spi_write(spi, SIFIVE_SPI_REG_CSDEF, spi->cs_inactive); in sifive_spi_probe() [all …]
|
A D | spi-mux.c | 39 struct spi_device *spi; member 62 spi->chip_select); in spi_mux_select() 65 priv->spi->max_speed_hz = spi->max_speed_hz; in spi_mux_select() 66 priv->spi->mode = spi->mode; in spi_mux_select() 67 priv->spi->bits_per_word = spi->bits_per_word; in spi_mux_select() 83 return spi_setup(priv->spi); in spi_mux_setup() 103 struct spi_device *spi = m->spi; in spi_mux_transfer_one_message() local 106 ret = spi_mux_select(spi); in spi_mux_transfer_one_message() 120 m->spi = priv->spi; in spi_mux_transfer_one_message() 136 spi_set_drvdata(spi, ctlr); in spi_mux_probe() [all …]
|
A D | spi-omap2-mcspi.c | 422 tx->callback_param = spi; in omap2_mcspi_tx_dma() 748 dev_err(&spi->dev, in omap2_mcspi_txrx_pio() 795 dev_err(&spi->dev, in omap2_mcspi_txrx_pio() 842 dev_err(&spi->dev, in omap2_mcspi_txrx_pio() 961 if (spi->mode & SPI_CPOL) in omap2_mcspi_setup_transfer() 965 if (spi->mode & SPI_CPHA) in omap2_mcspi_setup_transfer() 972 cs->mode = spi->mode; in omap2_mcspi_setup_transfer() 1157 if (spi->cs_gpiod) in omap2_mcspi_transfer_one() 1158 omap2_mcspi_set_cs(spi, spi->mode & SPI_CS_HIGH); in omap2_mcspi_transfer_one() 1246 if (spi->cs_gpiod) in omap2_mcspi_transfer_one() [all …]
|
A D | spi.c | 545 spi = kzalloc(sizeof(*spi), GFP_KERNEL); in spi_alloc_device() 551 spi->master = spi->controller = ctlr; in spi_alloc_device() 591 spi->controller->cleanup(spi); in spi_cleanup() 990 spi->controller->set_cs(spi, !enable); in spi_set_cs() 992 spi->controller->set_cs(spi, !enable); in spi_set_cs() 3491 status = spi->controller->setup(spi); in spi_setup() 3527 if (spi->rt && !spi->controller->rt) { in spi_setup() 3540 spi->bits_per_word, spi->max_speed_hz, in spi_setup() 3591 message->spi = spi; in __spi_validate() 3727 message->spi = spi; in __spi_async() [all …]
|
A D | spi-orion.c | 243 if (spi->mode & SPI_CPOL) in orion_spi_mode_set() 245 if (spi->mode & SPI_CPHA) in orion_spi_mode_set() 282 spi->mode & SPI_CPHA) in orion_spi_50mhz_ac_timing_erratum() 309 orion_spi_mode_set(spi); in orion_spi_setup_transfer() 395 orion_spi_set_cs(spi, 0); in orion_spi_write_read_8bit() 649 struct orion_spi *spi; in orion_spi_probe() local 685 spi->master = master; in orion_spi_probe() 686 spi->dev = &pdev->dev; in orion_spi_probe() 690 spi->devdata = devdata; in orion_spi_probe() 693 if (IS_ERR(spi->clk)) { in orion_spi_probe() [all …]
|
A D | spi-gpio.c | 105 if (spi->mode & SPI_3WIRE) in getmiso() 172 flags = spi->master->flags; in spi_gpio_spec_txrx_word_mode0() 179 flags = spi->master->flags; in spi_gpio_spec_txrx_word_mode1() 186 flags = spi->master->flags; in spi_gpio_spec_txrx_word_mode2() 193 flags = spi->master->flags; in spi_gpio_spec_txrx_word_mode3() 228 if (!spi->controller_state && cs) in spi_gpio_setup() 234 status = spi_bitbang_setup(spi); in spi_gpio_setup() 258 if (spi->mode & SPI_3WIRE_HIZ) { in spi_gpio_set_direction() 260 !(spi->mode & SPI_CPOL)); in spi_gpio_set_direction() 262 !!(spi->mode & SPI_CPOL)); in spi_gpio_set_direction() [all …]
|
/linux/drivers/staging/pi433/ |
A D | rf69.c | 31 retval = spi_w8r8(spi, addr); in rf69_read_reg() 56 retval = spi_write(spi, &buffer, 2); in rf69_write_reg() 79 tmp = rf69_read_reg(spi, reg); in rf69_set_bit() 81 return rf69_write_reg(spi, reg, tmp); in rf69_set_bit() 88 tmp = rf69_read_reg(spi, reg); in rf69_clear_bit() 90 return rf69_write_reg(spi, reg, tmp); in rf69_clear_bit() 98 tmp = rf69_read_reg(spi, reg); in rf69_read_mod_write() 174 switch (rf69_get_modulation(spi)) { in rf69_set_modulation_shaping() 363 ocp = rf69_read_reg(spi, REG_OCP); in rf69_set_output_power_level() 848 dev_dbg(&spi->dev, in rf69_read_fifo() [all …]
|
A D | rf69.h | 20 int rf69_set_mode(struct spi_device *spi, enum mode mode); 23 int rf69_set_modulation_shaping(struct spi_device *spi, 32 int rf69_set_antenna_impedance(struct spi_device *spi, 40 int rf69_set_ook_threshold_dec(struct spi_device *spi, 46 int rf69_enable_sync(struct spi_device *spi); 47 int rf69_disable_sync(struct spi_device *spi); 52 int rf69_set_packet_format(struct spi_device *spi, 54 int rf69_enable_crc(struct spi_device *spi); 55 int rf69_disable_crc(struct spi_device *spi); 56 int rf69_set_address_filtering(struct spi_device *spi, [all …]
|
/linux/drivers/net/wan/ |
A D | slic_ds26522.c | 88 slic_write(spi, DS26522_RMMR_ADDR, in ds26522_e1_spec_config() 92 slic_write(spi, DS26522_TMMR_ADDR, in ds26522_e1_spec_config() 117 slic_write(spi, DS26522_RMMR_ADDR, slic_read(spi, DS26522_RMMR_ADDR) | in ds26522_e1_spec_config() 121 slic_write(spi, DS26522_TMMR_ADDR, slic_read(spi, DS26522_TMMR_ADDR) | in ds26522_e1_spec_config() 175 slic_write(spi, addr, 0); in slic_ds26522_init_configure() 179 slic_write(spi, addr, 0); in slic_ds26522_init_configure() 183 slic_write(spi, addr, 0); in slic_ds26522_init_configure() 187 slic_write(spi, addr, 0); in slic_ds26522_init_configure() 190 ds26522_e1_spec_config(spi); in slic_ds26522_init_configure() 207 g_spi = spi; in slic_ds26522_probe() [all …]
|
/linux/drivers/video/backlight/ |
A D | ili922x.c | 139 struct spi_device *spi; member 176 ret = spi_sync(spi, &msg); in ili922x_read_status() 230 ret = spi_sync(spi, &msg); in ili922x_read() 341 spi_sync(spi, &msg); in set_write_to_gram_reg() 419 ili922x_poweron(spi); in ili922x_display_init() 438 ili922x_reg_dump(spi); in ili922x_display_init() 487 ili->spi = spi; in ili922x_probe() 493 dev_err(&spi->dev, in ili922x_probe() 500 reg, spi->max_speed_hz, spi->mode); in ili922x_probe() 514 lcd = devm_lcd_device_register(&spi->dev, "ili922xlcd", &spi->dev, ili, in ili922x_probe() [all …]
|
A D | l4f00242t03.c | 24 struct spi_device *spi; member 107 struct spi_device *spi = priv->spi; in l4f00242t03_lcd_power_set() local 126 l4f00242t03_lcd_init(spi); in l4f00242t03_lcd_power_set() 175 spi_set_drvdata(spi, priv); in l4f00242t03_probe() 176 spi->bits_per_word = 9; in l4f00242t03_probe() 177 spi_setup(spi); in l4f00242t03_probe() 179 priv->spi = spi; in l4f00242t03_probe() 183 dev_err(&spi->dev, in l4f00242t03_probe() 191 dev_err(&spi->dev, in l4f00242t03_probe() 211 priv->ld = devm_lcd_device_register(&spi->dev, "l4f00242t03", &spi->dev, in l4f00242t03_probe() [all …]
|
/linux/drivers/staging/greybus/ |
A D | spilib.c | 98 spi->last_xfer = NULL; in clean_xfer_state() 102 spi->op_timeout = 0; in clean_xfer_state() 109 if ((spi->tx_xfer_offset + spi->last_xfer_size == last_xfer->len) || in is_last_xfer_done() 110 (spi->rx_xfer_offset + spi->last_xfer_size == last_xfer->len)) in is_last_xfer_done() 130 spi->op_timeout = 0; in setup_next_xfer() 143 spi->tx_xfer_offset += spi->last_xfer_size; in setup_next_xfer() 146 spi->rx_xfer_offset += spi->last_xfer_size; in setup_next_xfer() 383 return spi->ops->prepare_transfer_hardware(spi->parent); in gb_spi_prepare_transfer_hardware() 390 spi->ops->unprepare_transfer_hardware(spi->parent); in gb_spi_unprepare_transfer_hardware() 503 spi->parent = dev; in gb_spilib_master_init() [all …]
|
/linux/drivers/misc/ |
A D | gehc-achc.c | 68 spi_bus_lock(spi->master); in ezport_start_programming() 88 spi_bus_unlock(spi->master); in ezport_start_programming() 95 spi_bus_lock(spi->master); in ezport_stop_programming() 97 spi_bus_unlock(spi->master); in ezport_stop_programming() 120 ret = spi_write(spi, &cmd, 1); in ezport_soft_reset() 133 ret = spi_write(spi, &cmd, 1); in ezport_send_simple() 183 ret = spi_write(spi, &cmd, 1); in ezport_bulk_erase() 510 spi->bits_per_word = 8; in gehc_achc_probe() 511 spi->mode = SPI_MODE_0; in gehc_achc_probe() 516 spi_set_drvdata(spi, achc); in gehc_achc_probe() [all …]
|
A D | lattice-ecp3-config.c | 103 dev_err(&spi->dev, in firmware_load() 132 spi_write(spi, txbuf, 4); in firmware_load() 135 spi_write(spi, txbuf, 4); in firmware_load() 138 spi_write(spi, txbuf, 4); in firmware_load() 154 dev_err(&spi->dev, in firmware_load() 162 spi_write(spi, buffer, fw->size + 8); in firmware_load() 165 spi_write(spi, txbuf, 4); in firmware_load() 198 spi_set_drvdata(spi, data); in lattice_ecp3_probe() 202 FIRMWARE_NAME, &spi->dev, in lattice_ecp3_probe() 203 GFP_KERNEL, spi, firmware_load); in lattice_ecp3_probe() [all …]
|
/linux/drivers/net/can/spi/ |
A D | mcp251x.c | 787 struct spi_device *spi = priv->spi; in mcp251x_hard_start_xmit() local 863 struct spi_device *spi = priv->spi; in mcp251x_do_set_bittiming() local 953 struct spi_device *spi = priv->spi; in mcp251x_stop() local 1000 struct spi_device *spi = priv->spi; in mcp251x_tx_work_handler() local 1026 struct spi_device *spi = priv->spi; in mcp251x_restart_work_handler() local 1065 struct spi_device *spi = priv->spi; in mcp251x_can_ist() local 1197 struct spi_device *spi = priv->spi; in mcp251x_open() local 1221 dev_err(&spi->dev, "failed to acquire irq %d\n", spi->irq); in mcp251x_open() 1344 spi->max_speed_hz = spi->max_speed_hz ? : 5 * 1000 * 1000; in mcp251x_can_probe() 1346 spi->max_speed_hz = spi->max_speed_hz ? : 10 * 1000 * 1000; in mcp251x_can_probe() [all …]
|
A D | hi311x.c | 369 struct spi_device *spi = priv->spi; in hi3110_hard_start_xmit() local 411 struct spi_device *spi = priv->spi; in hi3110_get_berr_counter() local 455 struct spi_device *spi = priv->spi; in hi3110_do_set_bittiming() local 542 struct spi_device *spi = priv->spi; in hi3110_stop() local 577 struct spi_device *spi = priv->spi; in hi3110_tx_work_handler() local 600 struct spi_device *spi = priv->spi; in hi3110_restart_work_handler() local 635 struct spi_device *spi = priv->spi; in hi3110_can_ist() local 646 hi3110_hw_rx(spi); in hi3110_can_ist() 744 struct spi_device *spi = priv->spi; in hi3110_open() local 762 dev_err(&spi->dev, "failed to acquire irq %d\n", spi->irq); in hi3110_open() [all …]
|
/linux/drivers/media/pci/netup_unidvb/ |
A D | netup_unidvb_spi.c | 74 if (!spi) in netup_spi_interrupt() 81 dev_dbg(&spi->master->dev, in netup_spi_interrupt() 88 spi->state = SPI_STATE_DONE; in netup_spi_interrupt() 89 wake_up(&spi->waitq); in netup_spi_interrupt() 91 dev_dbg(&spi->master->dev, in netup_spi_interrupt() 197 ndev->spi = nspi; in netup_spi_init() 199 ndev->spi = NULL; in netup_spi_init() 212 ndev->spi = NULL; in netup_spi_init() 225 struct netup_spi *spi = ndev->spi; in netup_spi_release() local 227 if (!spi) in netup_spi_release() [all …]
|
/linux/drivers/media/dvb-frontends/cxd2880/ |
A D | cxd2880_spi_device.c | 22 if (!spi || !spi->user || !data || size == 0) in cxd2880_spi_device_write() 25 spi_device = spi->user; in cxd2880_spi_device_write() 50 if (!spi || !spi->user || !tx_data || in cxd2880_spi_device_write_read() 54 spi_device = spi->user; in cxd2880_spi_device_write_read() 70 struct spi_device *spi = spi_device->spi; in cxd2880_spi_device_initialize() local 74 spi->mode = SPI_MODE_0; in cxd2880_spi_device_initialize() 77 spi->mode = SPI_MODE_1; in cxd2880_spi_device_initialize() 90 spi->bits_per_word = 8; in cxd2880_spi_device_initialize() 106 spi->read = NULL; in cxd2880_spi_device_create_spi() 109 spi->flags = 0; in cxd2880_spi_device_create_spi() [all …]
|
/linux/drivers/video/fbdev/omap2/omapfb/displays/ |
A D | panel-lgphilips-lb035q02.c | 43 struct spi_device *spi; member 85 return spi_sync(spi, &msg); in lb035q02_write_reg() 91 lb035q02_write_reg(spi, 0x01, 0x6300); in init_lb035q02_panel() 92 lb035q02_write_reg(spi, 0x02, 0x0200); in init_lb035q02_panel() 93 lb035q02_write_reg(spi, 0x03, 0x0177); in init_lb035q02_panel() 130 init_lb035q02_panel(ddata->spi); in lb035q02_connect() 273 if (!spi->dev.of_node) in lb035q02_panel_spi_probe() 280 spi_set_drvdata(spi, ddata); in lb035q02_panel_spi_probe() 282 ddata->spi = spi; in lb035q02_panel_spi_probe() 284 r = lb035q02_probe_of(spi); in lb035q02_panel_spi_probe() [all …]
|
/linux/drivers/mtd/devices/ |
A D | mtd_dataflash.c | 94 struct spi_device *spi; member 158 struct spi_device *spi = priv->spi; in dataflash_erase() local 204 status = spi_sync(spi, &msg); in dataflash_erase() 304 struct spi_device *spi = priv->spi; in dataflash_write() local 383 status = spi_sync(spi, &msg); in dataflash_write() 490 dataflash_waitready(spi); in otp_read() 492 status = spi_sync(spi, &m); in otp_read() 636 priv->spi = spi; in add_dataflash_otp() 642 spi->master->bus_num, spi->chip_select, in add_dataflash_otp() 666 spi_set_drvdata(spi, priv); in add_dataflash_otp() [all …]
|
/linux/drivers/mtd/spi-nor/ |
A D | .built-in.a.cmd | 1 …spi-nor/built-in.a := echo >/dev/null; rm -f drivers/mtd/spi-nor/built-in.a; /usr/bin/ccache /home…
|