Home
last modified time | relevance | path

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

12345678910>>...17

/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-stm32.c353 static inline void stm32_spi_set_bits(struct stm32_spi *spi, in stm32_spi_set_bits()
360 static inline void stm32_spi_clr_bits(struct stm32_spi *spi, in stm32_spi_clr_bits()
371 static int stm32h7_spi_get_fifo_size(struct stm32_spi *spi) in stm32h7_spi_get_fifo_size()
396 static int stm32f4_spi_get_bpw_mask(struct stm32_spi *spi) in stm32f4_spi_get_bpw_mask()
406 static int stm32h7_spi_get_bpw_mask(struct stm32_spi *spi) in stm32h7_spi_get_bpw_mask()
440 static int stm32_spi_prepare_mbr(struct stm32_spi *spi, u32 speed_hz, in stm32_spi_prepare_mbr()
472 static u32 stm32h7_spi_prepare_fthlv(struct stm32_spi *spi) in stm32h7_spi_prepare_fthlv()
502 static void stm32f4_spi_write_tx(struct stm32_spi *spi) in stm32f4_spi_write_tx()
531 static void stm32h7_spi_write_txfifo(struct stm32_spi *spi) in stm32h7_spi_write_txfifo()
566 static void stm32f4_spi_read_rx(struct stm32_spi *spi) in stm32f4_spi_read_rx()
[all …]
Dspi-lantiq-ssc.c189 static u32 lantiq_ssc_readl(const struct lantiq_ssc_spi *spi, u32 reg) in lantiq_ssc_readl()
194 static void lantiq_ssc_writel(const struct lantiq_ssc_spi *spi, u32 val, in lantiq_ssc_writel()
200 static void lantiq_ssc_maskl(const struct lantiq_ssc_spi *spi, u32 clr, in lantiq_ssc_maskl()
210 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()
224 static unsigned int tx_fifo_free(const struct lantiq_ssc_spi *spi) in tx_fifo_free()
229 static void rx_fifo_reset(const struct lantiq_ssc_spi *spi) in rx_fifo_reset()
237 static void tx_fifo_reset(const struct lantiq_ssc_spi *spi) in tx_fifo_reset()
245 static void rx_fifo_flush(const struct lantiq_ssc_spi *spi) in rx_fifo_flush()
250 static void tx_fifo_flush(const struct lantiq_ssc_spi *spi) in tx_fifo_flush()
[all …]
Dspi-bitbang.c55 struct spi_device *spi, in bitbang_txrx_8()
56 u32 (*txrx_word)(struct spi_device *spi, in bitbang_txrx_8()
83 struct spi_device *spi, in bitbang_txrx_16()
84 u32 (*txrx_word)(struct spi_device *spi, in bitbang_txrx_16()
111 struct spi_device *spi, in bitbang_txrx_32()
112 u32 (*txrx_word)(struct spi_device *spi, in bitbang_txrx_32()
138 int spi_bitbang_setup_transfer(struct spi_device *spi, struct spi_transfer *t) in spi_bitbang_setup_transfer()
180 int spi_bitbang_setup(struct spi_device *spi) in spi_bitbang_setup()
214 void spi_bitbang_cleanup(struct spi_device *spi) in spi_bitbang_cleanup()
220 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-loopback-test.c314 static int spi_loopback_test_probe(struct spi_device *spi) in spi_loopback_test_probe()
398 static void spi_test_dump_message(struct spi_device *spi, in spi_test_dump_message()
463 static int spi_check_rx_ranges(struct spi_device *spi, in spi_check_rx_ranges()
528 static int spi_test_check_elapsed_time(struct spi_device *spi, in spi_test_check_elapsed_time()
558 static int spi_test_check_loopback_result(struct spi_device *spi, in spi_test_check_loopback_result()
620 static int spi_test_translate(struct spi_device *spi, in spi_test_translate()
663 static int spi_test_fill_pattern(struct spi_device *spi, in spi_test_fill_pattern()
747 static int _spi_test_run_iter(struct spi_device *spi, in _spi_test_run_iter()
809 static int spi_test_run_iter(struct spi_device *spi, in spi_test_run_iter()
889 int spi_test_execute_msg(struct spi_device *spi, struct spi_test *test, in spi_test_execute_msg()
[all …]
Dspi.c48 struct spi_device *spi = to_spi_device(dev); in spidev_release() local
62 const struct spi_device *spi = to_spi_device(dev); in modalias_show() local
77 struct spi_device *spi = to_spi_device(dev); in driver_override_store() local
108 const struct spi_device *spi = to_spi_device(dev); in driver_override_show() local
344 const struct spi_device *spi = to_spi_device(dev); in spi_match_device() local
367 const struct spi_device *spi = to_spi_device(dev); in spi_uevent() local
389 struct spi_device *spi = to_spi_device(dev); in spi_drv_probe() local
497 struct spi_device *spi; in spi_alloc_device() local
521 static void spi_dev_set_name(struct spi_device *spi) in spi_dev_set_name()
536 struct spi_device *spi = to_spi_device(dev); in spi_dev_check() local
[all …]
Dspi-mxs.c67 struct mxs_spi *spi = spi_master_get_devdata(dev->master); in mxs_spi_setup_transfer() local
125 static int mxs_ssp_wait(struct mxs_spi *spi, int offset, int mask, bool set) in mxs_ssp_wait()
148 struct mxs_spi *spi = param; in mxs_ssp_dma_irq_callback() local
164 static int mxs_spi_txrx_dma(struct mxs_spi *spi, in mxs_spi_txrx_dma()
299 static int mxs_spi_txrx_pio(struct mxs_spi *spi, in mxs_spi_txrx_pio()
364 struct mxs_spi *spi = spi_master_get_devdata(master); in mxs_spi_transfer_one() local
444 struct mxs_spi *spi = spi_master_get_devdata(master); in mxs_spi_runtime_suspend() local
465 struct mxs_spi *spi = spi_master_get_devdata(master); in mxs_spi_runtime_resume() local
533 struct mxs_spi *spi; in mxs_spi_probe() local
645 struct mxs_spi *spi; in mxs_spi_remove() local
Dspi-orion.c133 static int orion_spi_baudrate_set(struct spi_device *spi, unsigned int speed) in orion_spi_baudrate_set()
231 orion_spi_mode_set(struct spi_device *spi) in orion_spi_mode_set()
253 orion_spi_50mhz_ac_timing_erratum(struct spi_device *spi, unsigned int speed) in orion_spi_50mhz_ac_timing_erratum()
291 orion_spi_setup_transfer(struct spi_device *spi, struct spi_transfer *t) in orion_spi_setup_transfer()
325 static void orion_spi_set_cs(struct spi_device *spi, bool enable) in orion_spi_set_cs()
363 orion_spi_write_read_8bit(struct spi_device *spi, in orion_spi_write_read_8bit()
394 orion_spi_write_read_16bit(struct spi_device *spi, in orion_spi_write_read_16bit()
425 orion_spi_write_read(struct spi_device *spi, struct spi_transfer *xfer) in orion_spi_write_read()
491 struct spi_device *spi, in orion_spi_transfer_one()
506 static int orion_spi_setup(struct spi_device *spi) in orion_spi_setup()
[all …]
/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 u8 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.c204 struct spi_device *spi; member
265 static int mcp251x_spi_trans(struct spi_device *spi, int len) in mcp251x_spi_trans()
286 static u8 mcp251x_read_reg(struct spi_device *spi, u8 reg) in mcp251x_read_reg()
300 static void mcp251x_read_2regs(struct spi_device *spi, u8 reg, u8 *v1, u8 *v2) in mcp251x_read_2regs()
313 static void mcp251x_write_reg(struct spi_device *spi, u8 reg, u8 val) in mcp251x_write_reg()
324 static void mcp251x_write_bits(struct spi_device *spi, u8 reg, in mcp251x_write_bits()
337 static void mcp251x_hw_tx_frame(struct spi_device *spi, u8 *buf, in mcp251x_hw_tx_frame()
354 static void mcp251x_hw_tx(struct spi_device *spi, struct can_frame *frame, in mcp251x_hw_tx()
385 static void mcp251x_hw_rx_frame(struct spi_device *spi, u8 *buf, in mcp251x_hw_rx_frame()
406 static void mcp251x_hw_rx(struct spi_device *spi, int buf_idx) in mcp251x_hw_rx()
[all …]
/drivers/net/wan/
Dslic_ds26522.c39 static void slic_write(struct spi_device *spi, u16 addr, in slic_write()
54 static u8 slic_read(struct spi_device *spi, u16 addr) in slic_read()
70 static bool get_slic_product_code(struct spi_device *spi) in get_slic_product_code()
81 static void ds26522_e1_spec_config(struct spi_device *spi) in ds26522_e1_spec_config()
141 static int slic_ds26522_init_configure(struct spi_device *spi) in slic_ds26522_init_configure()
199 static int slic_ds26522_remove(struct spi_device *spi) in slic_ds26522_remove()
205 static int slic_ds26522_probe(struct spi_device *spi) in slic_ds26522_probe()
/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
190 struct spi_device *spi = dev->priv; in b53_spi_write8() local
207 struct spi_device *spi = dev->priv; in b53_spi_write16() local
224 struct spi_device *spi = dev->priv; in b53_spi_write32() local
241 struct spi_device *spi = dev->priv; in b53_spi_write48() local
[all …]
/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/wilc1000/
Dwilc_spi.c105 static int wilc_bus_probe(struct spi_device *spi) in wilc_bus_probe()
138 static int wilc_bus_remove(struct spi_device *spi) in wilc_bus_remove()
168 struct spi_device *spi = to_spi_device(wilc->dev); in wilc_spi_tx() local
209 struct spi_device *spi = to_spi_device(wilc->dev); in wilc_spi_rx() local
249 struct spi_device *spi = to_spi_device(wilc->dev); in wilc_spi_tx_rx() local
285 struct spi_device *spi = to_spi_device(wilc->dev); in spi_cmd_complete() local
613 struct spi_device *spi = to_spi_device(wilc->dev); in spi_data_write() local
687 struct spi_device *spi = to_spi_device(wilc->dev); in spi_internal_write() local
701 struct spi_device *spi = to_spi_device(wilc->dev); in spi_internal_read() local
724 struct spi_device *spi = to_spi_device(wilc->dev); in wilc_spi_write_reg() 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()
293 static void gb_spi_decode_response(struct gb_spilib *spi, in gb_spi_decode_response()
326 struct gb_spilib *spi = spi_master_get_devdata(master); in gb_spi_transfer_one_message() local
377 struct gb_spilib *spi = spi_master_get_devdata(master); in gb_spi_prepare_transfer_hardware() local
384 struct gb_spilib *spi = spi_master_get_devdata(master); in gb_spi_unprepare_transfer_hardware() local
391 static int gb_spi_setup(struct spi_device *spi) in gb_spi_setup()
[all …]
/drivers/iio/dac/
Dad5592r.c22 struct spi_device *spi = container_of(st->dev, struct spi_device, dev); in ad5592r_spi_wnop_r16() local
36 struct spi_device *spi = container_of(st->dev, struct spi_device, dev); in ad5592r_write_dac() local
45 struct spi_device *spi = container_of(st->dev, struct spi_device, dev); in ad5592r_read_adc() local
73 struct spi_device *spi = container_of(st->dev, struct spi_device, dev); in ad5592r_reg_write() local
82 struct spi_device *spi = container_of(st->dev, struct spi_device, dev); in ad5592r_reg_read() local
127 static int ad5592r_spi_probe(struct spi_device *spi) in ad5592r_spi_probe()
134 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/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/video/backlight/
Dili922x.c137 struct spi_device *spi; member
147 static int ili922x_read_status(struct spi_device *spi, u16 *rs) in ili922x_read_status()
190 static int ili922x_read(struct spi_device *spi, u8 reg, u16 *rx) in ili922x_read()
244 static int ili922x_write(struct spi_device *spi, u8 reg, u16 value) in ili922x_write()
297 static void ili922x_reg_dump(struct spi_device *spi) in ili922x_reg_dump()
310 static inline void ili922x_reg_dump(struct spi_device *spi) {} in ili922x_reg_dump()
317 static void set_write_to_gram_reg(struct spi_device *spi) in set_write_to_gram_reg()
348 static int ili922x_poweron(struct spi_device *spi) in ili922x_poweron()
377 static int ili922x_poweroff(struct spi_device *spi) in ili922x_poweroff()
398 static void ili922x_display_init(struct spi_device *spi) in ili922x_display_init()
[all …]
Dl4f00242t03.c26 struct spi_device *spi; member
46 static void l4f00242t03_lcd_init(struct spi_device *spi) in l4f00242t03_lcd_init()
86 static void l4f00242t03_lcd_powerdown(struct spi_device *spi) in l4f00242t03_lcd_powerdown()
109 struct spi_device *spi = priv->spi; in l4f00242t03_lcd_power_set() local
168 static int l4f00242t03_probe(struct spi_device *spi) in l4f00242t03_probe()
235 static int l4f00242t03_remove(struct spi_device *spi) in l4f00242t03_remove()
243 static void l4f00242t03_shutdown(struct spi_device *spi) in l4f00242t03_shutdown()
Dtosa_lcd.c34 struct spi_device *spi; member
42 static int tosa_tg_send(struct spi_device *spi, int adrs, uint8_t data) in tosa_tg_send()
59 int tosa_bl_enable(struct spi_device *spi, int enable) in tosa_bl_enable()
81 struct spi_device *spi = data->spi; in tosa_lcd_tg_on() local
113 struct spi_device *spi = data->spi; in tosa_lcd_tg_off() local
170 static int tosa_lcd_probe(struct spi_device *spi) in tosa_lcd_probe()
221 static int tosa_lcd_remove(struct spi_device *spi) in tosa_lcd_remove()
/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/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()

12345678910>>...17