Home
last modified time | relevance | path

Searched defs:spi (Results 1 – 25 of 468) sorted by relevance

12345678910>>...19

/drivers/staging/pi433/
Drf69.c27 static u8 rf69_read_reg(struct spi_device *spi, u8 addr) in rf69_read_reg()
48 static int rf69_write_reg(struct spi_device *spi, u8 addr, u8 value) in rf69_write_reg()
75 static int rf69_set_bit(struct spi_device *spi, u8 reg, u8 mask) in rf69_set_bit()
84 static int rf69_clear_bit(struct spi_device *spi, u8 reg, u8 mask) in rf69_clear_bit()
93 static inline int rf69_read_mod_write(struct spi_device *spi, u8 reg, in rf69_read_mod_write()
105 int rf69_set_mode(struct spi_device *spi, enum mode mode) in rf69_set_mode()
132 int rf69_set_data_mode(struct spi_device *spi, u8 data_mode) in rf69_set_data_mode()
138 int rf69_set_modulation(struct spi_device *spi, enum modulation modulation) in rf69_set_modulation()
155 static enum modulation rf69_get_modulation(struct spi_device *spi) in rf69_get_modulation()
171 int rf69_set_modulation_shaping(struct spi_device *spi, in rf69_set_modulation_shaping()
[all …]
/drivers/spi/
Dspi-lantiq-ssc.c188 static u32 lantiq_ssc_readl(const struct lantiq_ssc_spi *spi, u32 reg) in lantiq_ssc_readl()
193 static void lantiq_ssc_writel(const struct lantiq_ssc_spi *spi, u32 val, in lantiq_ssc_writel()
199 static void lantiq_ssc_maskl(const struct lantiq_ssc_spi *spi, u32 clr, in lantiq_ssc_maskl()
209 static unsigned int tx_fifo_level(const struct lantiq_ssc_spi *spi) in tx_fifo_level()
217 static unsigned int rx_fifo_level(const struct lantiq_ssc_spi *spi) in rx_fifo_level()
225 static unsigned int tx_fifo_free(const struct lantiq_ssc_spi *spi) in tx_fifo_free()
230 static void rx_fifo_reset(const struct lantiq_ssc_spi *spi) in rx_fifo_reset()
238 static void tx_fifo_reset(const struct lantiq_ssc_spi *spi) in tx_fifo_reset()
246 static void rx_fifo_flush(const struct lantiq_ssc_spi *spi) in rx_fifo_flush()
251 static void tx_fifo_flush(const struct lantiq_ssc_spi *spi) in tx_fifo_flush()
[all …]
Dspi-stm32.c348 static inline void stm32_spi_set_bits(struct stm32_spi *spi, in stm32_spi_set_bits()
355 static inline void stm32_spi_clr_bits(struct stm32_spi *spi, in stm32_spi_clr_bits()
366 static int stm32h7_spi_get_fifo_size(struct stm32_spi *spi) in stm32h7_spi_get_fifo_size()
391 static int stm32f4_spi_get_bpw_mask(struct stm32_spi *spi) in stm32f4_spi_get_bpw_mask()
401 static int stm32h7_spi_get_bpw_mask(struct stm32_spi *spi) in stm32h7_spi_get_bpw_mask()
433 static int stm32_spi_prepare_mbr(struct stm32_spi *spi, u32 speed_hz, in stm32_spi_prepare_mbr()
469 static u32 stm32h7_spi_prepare_fthlv(struct stm32_spi *spi, u32 xfer_len) in stm32h7_spi_prepare_fthlv()
488 static void stm32f4_spi_write_tx(struct stm32_spi *spi) in stm32f4_spi_write_tx()
517 static void stm32h7_spi_write_txfifo(struct stm32_spi *spi) in stm32h7_spi_write_txfifo()
552 static void stm32f4_spi_read_rx(struct stm32_spi *spi) in stm32f4_spi_read_rx()
[all …]
Dspi-bitbang.c55 struct spi_device *spi, in bitbang_txrx_8()
56 u32 (*txrx_word)(struct spi_device *spi, in bitbang_txrx_8()
84 struct spi_device *spi, in bitbang_txrx_16()
85 u32 (*txrx_word)(struct spi_device *spi, in bitbang_txrx_16()
113 struct spi_device *spi, in bitbang_txrx_32()
114 u32 (*txrx_word)(struct spi_device *spi, in bitbang_txrx_32()
141 int spi_bitbang_setup_transfer(struct spi_device *spi, struct spi_transfer *t) in spi_bitbang_setup_transfer()
183 int spi_bitbang_setup(struct spi_device *spi) in spi_bitbang_setup()
227 void spi_bitbang_cleanup(struct spi_device *spi) in spi_bitbang_cleanup()
233 static int spi_bitbang_bufs(struct spi_device *spi, struct spi_transfer *t) in spi_bitbang_bufs()
[all …]
Dspi-gpio.c76 spi_to_spi_gpio(const struct spi_device *spi) in spi_to_spi_gpio()
87 static inline void setsck(const struct spi_device *spi, int is_on) in setsck()
94 static inline void setmosi(const struct spi_device *spi, int is_on) in setmosi()
101 static inline int getmiso(const struct spi_device *spi) in getmiso()
135 static u32 spi_gpio_txrx_word_mode0(struct spi_device *spi, in spi_gpio_txrx_word_mode0()
141 static u32 spi_gpio_txrx_word_mode1(struct spi_device *spi, in spi_gpio_txrx_word_mode1()
147 static u32 spi_gpio_txrx_word_mode2(struct spi_device *spi, in spi_gpio_txrx_word_mode2()
153 static u32 spi_gpio_txrx_word_mode3(struct spi_device *spi, in spi_gpio_txrx_word_mode3()
169 static u32 spi_gpio_spec_txrx_word_mode0(struct spi_device *spi, in spi_gpio_spec_txrx_word_mode0()
176 static u32 spi_gpio_spec_txrx_word_mode1(struct spi_device *spi, in spi_gpio_spec_txrx_word_mode1()
[all …]
Dspi-sifive.c99 static void sifive_spi_write(struct sifive_spi *spi, int offset, u32 value) in sifive_spi_write()
104 static u32 sifive_spi_read(struct sifive_spi *spi, int offset) in sifive_spi_read()
109 static void sifive_spi_init(struct sifive_spi *spi) in sifive_spi_init()
133 struct sifive_spi *spi = spi_master_get_devdata(master); in sifive_spi_prepare_message() local
155 struct sifive_spi *spi = spi_master_get_devdata(device->master); in sifive_spi_set_cs() local
167 sifive_spi_prep_transfer(struct sifive_spi *spi, struct spi_device *device, in sifive_spi_prep_transfer()
210 struct sifive_spi *spi = dev_id; in sifive_spi_irq() local
223 static void sifive_spi_wait(struct sifive_spi *spi, u32 bit, int poll) in sifive_spi_wait()
238 static void sifive_spi_tx(struct sifive_spi *spi, const u8 *tx_ptr) in sifive_spi_tx()
246 static void sifive_spi_rx(struct sifive_spi *spi, u8 *rx_ptr) in sifive_spi_rx()
[all …]
Dspi.c48 struct spi_device *spi = to_spi_device(dev); in spidev_release() local
58 const struct spi_device *spi = to_spi_device(dev); in modalias_show() local
73 struct spi_device *spi = to_spi_device(dev); in driver_override_store() local
104 const struct spi_device *spi = to_spi_device(dev); in driver_override_show() local
340 const struct spi_device *spi = to_spi_device(dev); in spi_match_device() local
363 const struct spi_device *spi = to_spi_device(dev); in spi_uevent() local
376 struct spi_device *spi = to_spi_device(dev); in spi_probe() local
541 struct spi_device *spi; in spi_alloc_device() local
566 static void spi_dev_set_name(struct spi_device *spi) in spi_dev_set_name()
581 struct spi_device *spi = to_spi_device(dev); in spi_dev_check() local
[all …]
Dspi-loopback-test.c320 static int spi_loopback_test_probe(struct spi_device *spi) in spi_loopback_test_probe()
404 static void spi_test_dump_message(struct spi_device *spi, in spi_test_dump_message()
470 static int spi_check_rx_ranges(struct spi_device *spi, in spi_check_rx_ranges()
535 static int spi_test_check_elapsed_time(struct spi_device *spi, in spi_test_check_elapsed_time()
565 static int spi_test_check_loopback_result(struct spi_device *spi, in spi_test_check_loopback_result()
627 static int spi_test_translate(struct spi_device *spi, in spi_test_translate()
670 static int spi_test_fill_pattern(struct spi_device *spi, in spi_test_fill_pattern()
754 static int _spi_test_run_iter(struct spi_device *spi, in _spi_test_run_iter()
816 static int spi_test_run_iter(struct spi_device *spi, in spi_test_run_iter()
896 int spi_test_execute_msg(struct spi_device *spi, struct spi_test *test, in spi_test_execute_msg()
[all …]
Dspi-orion.c136 static int orion_spi_baudrate_set(struct spi_device *spi, unsigned int speed) in orion_spi_baudrate_set()
234 orion_spi_mode_set(struct spi_device *spi) in orion_spi_mode_set()
256 orion_spi_50mhz_ac_timing_erratum(struct spi_device *spi, unsigned int speed) in orion_spi_50mhz_ac_timing_erratum()
294 orion_spi_setup_transfer(struct spi_device *spi, struct spi_transfer *t) in orion_spi_setup_transfer()
328 static void orion_spi_set_cs(struct spi_device *spi, bool enable) in orion_spi_set_cs()
383 orion_spi_write_read_8bit(struct spi_device *spi, in orion_spi_write_read_8bit()
432 orion_spi_write_read_16bit(struct spi_device *spi, in orion_spi_write_read_16bit()
468 orion_spi_write_read(struct spi_device *spi, struct spi_transfer *xfer) in orion_spi_write_read()
533 struct spi_device *spi, in orion_spi_transfer_one()
548 static int orion_spi_setup(struct spi_device *spi) in orion_spi_setup()
[all …]
Dspi-mxs.c66 struct mxs_spi *spi = spi_master_get_devdata(dev->master); in mxs_spi_setup_transfer() local
124 static int mxs_ssp_wait(struct mxs_spi *spi, int offset, int mask, bool set) in mxs_ssp_wait()
147 struct mxs_spi *spi = param; in mxs_ssp_dma_irq_callback() local
163 static int mxs_spi_txrx_dma(struct mxs_spi *spi, in mxs_spi_txrx_dma()
298 static int mxs_spi_txrx_pio(struct mxs_spi *spi, in mxs_spi_txrx_pio()
363 struct mxs_spi *spi = spi_master_get_devdata(master); in mxs_spi_transfer_one() local
443 struct mxs_spi *spi = spi_master_get_devdata(master); in mxs_spi_runtime_suspend() local
464 struct mxs_spi *spi = spi_master_get_devdata(master); in mxs_spi_runtime_resume() local
532 struct mxs_spi *spi; in mxs_spi_probe() local
645 struct mxs_spi *spi; in mxs_spi_remove() local
/drivers/net/can/spi/
Dhi311x.c147 struct spi_device *spi; member
199 static int hi3110_spi_trans(struct spi_device *spi, int len) in hi3110_spi_trans()
221 static int hi3110_cmd(struct spi_device *spi, u8 command) in hi3110_cmd()
231 static u8 hi3110_read(struct spi_device *spi, u8 command) in hi3110_read()
243 static void hi3110_write(struct spi_device *spi, u8 reg, u8 val) in hi3110_write()
252 static void hi3110_hw_tx_frame(struct spi_device *spi, u8 *buf, int len) in hi3110_hw_tx_frame()
261 static void hi3110_hw_tx(struct spi_device *spi, struct can_frame *frame) in hi3110_hw_tx()
304 static void hi3110_hw_rx_frame(struct spi_device *spi, u8 *buf) in hi3110_hw_rx_frame()
313 static void hi3110_hw_rx(struct spi_device *spi) in hi3110_hw_rx()
360 static void hi3110_hw_sleep(struct spi_device *spi) in hi3110_hw_sleep()
[all …]
Dmcp251x.c231 struct spi_device *spi; member
296 static int mcp251x_spi_trans(struct spi_device *spi, int len) in mcp251x_spi_trans()
317 static int mcp251x_spi_write(struct spi_device *spi, int len) in mcp251x_spi_write()
329 static u8 mcp251x_read_reg(struct spi_device *spi, u8 reg) in mcp251x_read_reg()
347 static void mcp251x_read_2regs(struct spi_device *spi, u8 reg, u8 *v1, u8 *v2) in mcp251x_read_2regs()
368 static void mcp251x_write_reg(struct spi_device *spi, u8 reg, u8 val) in mcp251x_write_reg()
379 static void mcp251x_write_2regs(struct spi_device *spi, u8 reg, u8 v1, u8 v2) in mcp251x_write_2regs()
391 static void mcp251x_write_bits(struct spi_device *spi, u8 reg, in mcp251x_write_bits()
404 static u8 mcp251x_read_stat(struct spi_device *spi) in mcp251x_read_stat()
574 static void mcp251x_gpio_restore(struct spi_device *spi) in mcp251x_gpio_restore()
[all …]
/drivers/misc/
Dgehc-achc.c59 static int ezport_start_programming(struct spi_device *spi, struct gpio_desc *reset) in ezport_start_programming()
92 static void ezport_stop_programming(struct spi_device *spi, struct gpio_desc *reset) in ezport_stop_programming()
100 static int ezport_get_status_register(struct spi_device *spi) in ezport_get_status_register()
115 static int ezport_soft_reset(struct spi_device *spi) in ezport_soft_reset()
129 static int ezport_send_simple(struct spi_device *spi, u8 cmd) in ezport_send_simple()
140 static int ezport_wait_write(struct spi_device *spi, u32 retries) in ezport_wait_write()
155 static int ezport_write_enable(struct spi_device *spi) in ezport_write_enable()
172 static int ezport_bulk_erase(struct spi_device *spi) in ezport_bulk_erase()
194 static int ezport_section_erase(struct spi_device *spi, u32 address) in ezport_section_erase()
215 static int ezport_flash_transfer(struct spi_device *spi, u32 address, in ezport_flash_transfer()
[all …]
/drivers/net/dsa/b53/
Db53_spi.c42 static inline int b53_spi_read_reg(struct spi_device *spi, u8 reg, u8 *val, in b53_spi_read_reg()
53 static inline int b53_spi_clear_status(struct spi_device *spi) in b53_spi_clear_status()
76 static inline int b53_spi_set_page(struct spi_device *spi, u8 page) in b53_spi_set_page()
87 static inline int b53_prepare_reg_access(struct spi_device *spi, u8 page) in b53_prepare_reg_access()
97 static int b53_spi_prepare_reg_read(struct spi_device *spi, u8 reg) in b53_spi_prepare_reg_read()
127 struct spi_device *spi = dev->priv; in b53_spi_read() local
200 struct spi_device *spi = dev->priv; in b53_spi_write8() local
217 struct spi_device *spi = dev->priv; in b53_spi_write16() local
234 struct spi_device *spi = dev->priv; in b53_spi_write32() local
251 struct spi_device *spi = dev->priv; in b53_spi_write48() local
[all …]
/drivers/net/wan/
Dslic_ds26522.c37 static void slic_write(struct spi_device *spi, u16 addr, in slic_write()
52 static u8 slic_read(struct spi_device *spi, u16 addr) in slic_read()
68 static bool get_slic_product_code(struct spi_device *spi) in get_slic_product_code()
79 static void ds26522_e1_spec_config(struct spi_device *spi) in ds26522_e1_spec_config()
139 static int slic_ds26522_init_configure(struct spi_device *spi) in slic_ds26522_init_configure()
197 static int slic_ds26522_remove(struct spi_device *spi) in slic_ds26522_remove()
203 static int slic_ds26522_probe(struct spi_device *spi) in slic_ds26522_probe()
/drivers/net/ethernet/wiznet/
Dw5100-spi.c28 struct spi_device *spi = to_spi_device(ndev->dev.parent); in w5100_spi_read() local
40 struct spi_device *spi = to_spi_device(ndev->dev.parent); in w5100_spi_write() local
141 struct spi_device *spi = to_spi_device(ndev->dev.parent); in w5200_spi_read() local
153 struct spi_device *spi = to_spi_device(ndev->dev.parent); in w5200_spi_write() local
161 struct spi_device *spi = to_spi_device(ndev->dev.parent); in w5200_spi_read16() local
173 struct spi_device *spi = to_spi_device(ndev->dev.parent); in w5200_spi_write16() local
186 struct spi_device *spi = to_spi_device(ndev->dev.parent); in w5200_spi_readbulk() local
216 struct spi_device *spi = to_spi_device(ndev->dev.parent); in w5200_spi_writebulk() local
286 struct spi_device *spi = to_spi_device(ndev->dev.parent); in w5500_spi_read() local
302 struct spi_device *spi = to_spi_device(ndev->dev.parent); in w5500_spi_write() local
[all …]
/drivers/staging/greybus/
Dspilib.c45 static struct spi_master *get_master_from_spi(struct gb_spilib *spi) in get_master_from_spi()
95 static void clean_xfer_state(struct gb_spilib *spi) in clean_xfer_state()
105 static bool is_last_xfer_done(struct gb_spilib *spi) in is_last_xfer_done()
116 static int setup_next_xfer(struct gb_spilib *spi, struct spi_message *msg) in setup_next_xfer()
162 static struct gb_operation *gb_spi_operation_create(struct gb_spilib *spi, in gb_spi_operation_create()
297 static void gb_spi_decode_response(struct gb_spilib *spi, in gb_spi_decode_response()
330 struct gb_spilib *spi = spi_master_get_devdata(master); in gb_spi_transfer_one_message() local
381 struct gb_spilib *spi = spi_master_get_devdata(master); in gb_spi_prepare_transfer_hardware() local
388 struct gb_spilib *spi = spi_master_get_devdata(master); in gb_spi_unprepare_transfer_hardware() local
395 static int gb_spi_setup(struct spi_device *spi) in gb_spi_setup()
[all …]
/drivers/iio/dac/
Dad5592r.c21 struct spi_device *spi = container_of(st->dev, struct spi_device, dev); in ad5592r_spi_wnop_r16() local
35 struct spi_device *spi = container_of(st->dev, struct spi_device, dev); in ad5592r_write_dac() local
44 struct spi_device *spi = container_of(st->dev, struct spi_device, dev); in ad5592r_read_adc() local
72 struct spi_device *spi = container_of(st->dev, struct spi_device, dev); in ad5592r_reg_write() local
81 struct spi_device *spi = container_of(st->dev, struct spi_device, dev); in ad5592r_reg_read() local
126 static int ad5592r_spi_probe(struct spi_device *spi) in ad5592r_spi_probe()
133 static int ad5592r_spi_remove(struct spi_device *spi) in ad5592r_spi_remove()
/drivers/input/misc/
Dadxl34x-spi.c28 struct spi_device *spi = to_spi_device(dev); in adxl34x_spi_read() local
39 struct spi_device *spi = to_spi_device(dev); in adxl34x_spi_write() local
52 struct spi_device *spi = to_spi_device(dev); in adxl34x_spi_read_block() local
68 static int adxl34x_spi_probe(struct spi_device *spi) in adxl34x_spi_probe()
90 static int adxl34x_spi_remove(struct spi_device *spi) in adxl34x_spi_remove()
99 struct spi_device *spi = to_spi_device(dev); in adxl34x_spi_suspend() local
109 struct spi_device *spi = to_spi_device(dev); in adxl34x_spi_resume() local
/drivers/video/backlight/
Dili922x.c139 struct spi_device *spi; member
149 static int ili922x_read_status(struct spi_device *spi, u16 *rs) in ili922x_read_status()
192 static int ili922x_read(struct spi_device *spi, u8 reg, u16 *rx) in ili922x_read()
246 static int ili922x_write(struct spi_device *spi, u8 reg, u16 value) in ili922x_write()
301 static void ili922x_reg_dump(struct spi_device *spi) in ili922x_reg_dump()
314 static inline void ili922x_reg_dump(struct spi_device *spi) {} in ili922x_reg_dump()
321 static void set_write_to_gram_reg(struct spi_device *spi) in set_write_to_gram_reg()
352 static int ili922x_poweron(struct spi_device *spi) in ili922x_poweron()
381 static int ili922x_poweroff(struct spi_device *spi) in ili922x_poweroff()
402 static void ili922x_display_init(struct spi_device *spi) in ili922x_display_init()
[all …]
Dl4f00242t03.c24 struct spi_device *spi; member
46 static void l4f00242t03_lcd_init(struct spi_device *spi) in l4f00242t03_lcd_init()
85 static void l4f00242t03_lcd_powerdown(struct spi_device *spi) in l4f00242t03_lcd_powerdown()
107 struct spi_device *spi = priv->spi; in l4f00242t03_lcd_power_set() local
166 static int l4f00242t03_probe(struct spi_device *spi) in l4f00242t03_probe()
226 static int l4f00242t03_remove(struct spi_device *spi) in l4f00242t03_remove()
234 static void l4f00242t03_shutdown(struct spi_device *spi) in l4f00242t03_shutdown()
/drivers/media/tuners/
Dmsi001.c31 struct spi_device *spi; member
59 struct spi_device *spi = dev->spi; in msi001_set_gain() local
85 struct spi_device *spi = dev->spi; in msi001_set_tuner() local
295 struct spi_device *spi = dev->spi; in msi001_g_tuner() local
311 struct spi_device *spi = dev->spi; in msi001_s_tuner() local
320 struct spi_device *spi = dev->spi; in msi001_g_frequency() local
331 struct spi_device *spi = dev->spi; in msi001_s_frequency() local
351 struct spi_device *spi = dev->spi; in msi001_enum_freq_bands() local
382 struct spi_device *spi = dev->spi; in msi001_s_ctrl() local
422 static int msi001_probe(struct spi_device *spi) in msi001_probe()
[all …]
/drivers/misc/lis3lv02d/
Dlis3lv02d_spi.c27 struct spi_device *spi = lis3->bus_priv; in lis3_spi_read() local
39 struct spi_device *spi = lis3->bus_priv; in lis3_spi_write() local
68 static int lis302dl_spi_probe(struct spi_device *spi) in lis302dl_spi_probe()
99 static int lis302dl_spi_remove(struct spi_device *spi) in lis302dl_spi_remove()
111 struct spi_device *spi = to_spi_device(dev); in lis3lv02d_spi_suspend() local
122 struct spi_device *spi = to_spi_device(dev); in lis3lv02d_spi_resume() local
/drivers/hwmon/
Dadt7310.c43 struct spi_device *spi = to_spi_device(dev); in adt7310_spi_read_word() local
50 struct spi_device *spi = to_spi_device(dev); in adt7310_spi_write_word() local
61 struct spi_device *spi = to_spi_device(dev); in adt7310_spi_read_byte() local
69 struct spi_device *spi = to_spi_device(dev); in adt7310_spi_write_byte() local
85 static int adt7310_spi_probe(struct spi_device *spi) in adt7310_spi_probe()
91 static int adt7310_spi_remove(struct spi_device *spi) in adt7310_spi_remove()
/drivers/net/wireless/microchip/wilc1000/
Dspi.c147 static int wilc_bus_probe(struct spi_device *spi) in wilc_bus_probe()
182 static int wilc_bus_remove(struct spi_device *spi) in wilc_bus_remove()
213 struct spi_device *spi = to_spi_device(wilc->dev); in wilc_spi_tx() local
257 struct spi_device *spi = to_spi_device(wilc->dev); in wilc_spi_rx() local
300 struct spi_device *spi = to_spi_device(wilc->dev); in wilc_spi_tx_rx() local
338 struct spi_device *spi = to_spi_device(wilc->dev); in spi_data_write() local
421 struct spi_device *spi = to_spi_device(wilc->dev); in wilc_spi_single_read() local
516 struct spi_device *spi = to_spi_device(wilc->dev); in wilc_spi_write_cmd() local
586 struct spi_device *spi = to_spi_device(wilc->dev); in wilc_spi_dma_rw() local
716 struct spi_device *spi = to_spi_device(wilc->dev); in wilc_spi_read_reg() local
[all …]

12345678910>>...19