Home
last modified time | relevance | path

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

12345678910>>...21

/drivers/staging/pi433/
Drf69.c20 u8 rf69_read_reg(struct spi_device *spi, u8 addr) in rf69_read_reg()
25 static int rf69_write_reg(struct spi_device *spi, u8 addr, u8 value) in rf69_write_reg()
37 static int rf69_set_bit(struct spi_device *spi, u8 reg, u8 mask) in rf69_set_bit()
46 static int rf69_clear_bit(struct spi_device *spi, u8 reg, u8 mask) in rf69_clear_bit()
55 static inline int rf69_read_mod_write(struct spi_device *spi, u8 reg, in rf69_read_mod_write()
67 int rf69_get_version(struct spi_device *spi) in rf69_get_version()
72 int rf69_set_mode(struct spi_device *spi, enum mode mode) in rf69_set_mode()
99 int rf69_set_data_mode(struct spi_device *spi, u8 data_mode) in rf69_set_data_mode()
105 int rf69_set_modulation(struct spi_device *spi, enum modulation modulation) in rf69_set_modulation()
122 static enum modulation rf69_get_modulation(struct spi_device *spi) in rf69_get_modulation()
[all …]
/drivers/spi/
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()
218 static unsigned int rx_fifo_level(const struct lantiq_ssc_spi *spi) in rx_fifo_level()
226 static unsigned int tx_fifo_free(const struct lantiq_ssc_spi *spi) in tx_fifo_free()
231 static void rx_fifo_reset(const struct lantiq_ssc_spi *spi) in rx_fifo_reset()
239 static void tx_fifo_reset(const struct lantiq_ssc_spi *spi) in tx_fifo_reset()
247 static void rx_fifo_flush(const struct lantiq_ssc_spi *spi) in rx_fifo_flush()
252 static void tx_fifo_flush(const struct lantiq_ssc_spi *spi) in tx_fifo_flush()
[all …]
Dspi-gpio.c75 spi_to_spi_gpio(const struct spi_device *spi) in spi_to_spi_gpio()
86 static inline void setsck(const struct spi_device *spi, int is_on) in setsck()
93 static inline void setmosi(const struct spi_device *spi, int is_on) in setmosi()
100 static inline int getmiso(const struct spi_device *spi) in getmiso()
134 static u32 spi_gpio_txrx_word_mode0(struct spi_device *spi, in spi_gpio_txrx_word_mode0()
143 static u32 spi_gpio_txrx_word_mode1(struct spi_device *spi, in spi_gpio_txrx_word_mode1()
152 static u32 spi_gpio_txrx_word_mode2(struct spi_device *spi, in spi_gpio_txrx_word_mode2()
161 static u32 spi_gpio_txrx_word_mode3(struct spi_device *spi, in spi_gpio_txrx_word_mode3()
180 static u32 spi_gpio_spec_txrx_word_mode0(struct spi_device *spi, in spi_gpio_spec_txrx_word_mode0()
190 static u32 spi_gpio_spec_txrx_word_mode1(struct spi_device *spi, in spi_gpio_spec_txrx_word_mode1()
[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-stm32.c362 static inline void stm32_spi_set_bits(struct stm32_spi *spi, in stm32_spi_set_bits()
369 static inline void stm32_spi_clr_bits(struct stm32_spi *spi, in stm32_spi_clr_bits()
380 static int stm32h7_spi_get_fifo_size(struct stm32_spi *spi) in stm32h7_spi_get_fifo_size()
405 static int stm32f4_spi_get_bpw_mask(struct stm32_spi *spi) in stm32f4_spi_get_bpw_mask()
415 static int stm32h7_spi_get_bpw_mask(struct stm32_spi *spi) in stm32h7_spi_get_bpw_mask()
447 static int stm32_spi_prepare_mbr(struct stm32_spi *spi, u32 speed_hz, in stm32_spi_prepare_mbr()
483 static u32 stm32h7_spi_prepare_fthlv(struct stm32_spi *spi, u32 xfer_len) 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-microchip-core.c117 static inline u32 mchp_corespi_read(struct mchp_corespi *spi, unsigned int reg) in mchp_corespi_read()
122 static inline void mchp_corespi_write(struct mchp_corespi *spi, unsigned int reg, u32 val) in mchp_corespi_write()
127 static inline void mchp_corespi_disable(struct mchp_corespi *spi) in mchp_corespi_disable()
136 static inline void mchp_corespi_read_fifo(struct mchp_corespi *spi) in mchp_corespi_read_fifo()
154 static void mchp_corespi_enable_ints(struct mchp_corespi *spi) in mchp_corespi_enable_ints()
162 static void mchp_corespi_disable_ints(struct mchp_corespi *spi) in mchp_corespi_disable_ints()
170 static inline void mchp_corespi_set_xfer_size(struct mchp_corespi *spi, int len) in mchp_corespi_set_xfer_size()
211 static inline void mchp_corespi_write_fifo(struct mchp_corespi *spi) in mchp_corespi_write_fifo()
229 static inline void mchp_corespi_set_framesize(struct mchp_corespi *spi, int bt) in mchp_corespi_set_framesize()
251 static void mchp_corespi_set_cs(struct spi_device *spi, bool disable) in mchp_corespi_set_cs()
[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_controller_get_devdata(host); in sifive_spi_prepare_message() local
155 struct sifive_spi *spi = spi_controller_get_devdata(device->controller); 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-loongson-core.c18 static inline void loongson_spi_write_reg(struct loongson_spi *spi, unsigned char reg, in loongson_spi_write_reg()
24 static inline char loongson_spi_read_reg(struct loongson_spi *spi, unsigned char reg) in loongson_spi_read_reg()
29 static void loongson_spi_set_cs(struct spi_device *spi, bool en) in loongson_spi_set_cs()
62 struct spi_device *spi) in loongson_spi_set_mode()
78 struct spi_device *spi, struct spi_transfer *t) in loongson_spi_update_state()
89 static int loongson_spi_setup(struct spi_device *spi) in loongson_spi_setup()
106 static int loongson_spi_write_read_8bit(struct spi_device *spi, const u8 **tx_buf, in loongson_spi_write_read_8bit()
130 static int loongson_spi_write_read(struct spi_device *spi, struct spi_transfer *xfer) in loongson_spi_write_read()
158 static int loongson_spi_transfer_one(struct spi_controller *ctrl, struct spi_device *spi, in loongson_spi_transfer_one()
198 struct loongson_spi *spi; in loongson_spi_init_controller() local
Dspi-loopback-test.c358 static int spi_loopback_test_probe(struct spi_device *spi) in spi_loopback_test_probe()
442 static void spi_test_dump_message(struct spi_device *spi, in spi_test_dump_message()
508 static int spi_check_rx_ranges(struct spi_device *spi, in spi_check_rx_ranges()
573 static int spi_test_check_elapsed_time(struct spi_device *spi, in spi_test_check_elapsed_time()
603 static int spi_test_check_loopback_result(struct spi_device *spi, in spi_test_check_loopback_result()
665 static int spi_test_translate(struct spi_device *spi, in spi_test_translate()
708 static int spi_test_fill_pattern(struct spi_device *spi, in spi_test_fill_pattern()
792 static int _spi_test_run_iter(struct spi_device *spi, in _spi_test_run_iter()
854 static int spi_test_run_iter(struct spi_device *spi, in spi_test_run_iter()
934 int spi_test_execute_msg(struct spi_device *spi, struct spi_test *test, in spi_test_execute_msg()
[all …]
Dspi.c49 struct spi_device *spi = to_spi_device(dev); in spidev_release() local
60 const struct spi_device *spi = to_spi_device(dev); in modalias_show() local
75 struct spi_device *spi = to_spi_device(dev); in driver_override_store() local
88 const struct spi_device *spi = to_spi_device(dev); in driver_override_show() local
378 const struct spi_device *spi = to_spi_device(dev); in spi_match_device() local
401 const struct spi_device *spi = to_spi_device(dev); in spi_uevent() local
414 struct spi_device *spi = to_spi_device(dev); in spi_probe() local
569 struct spi_device *spi; in spi_alloc_device() local
598 static void spi_dev_set_name(struct spi_device *spi) in spi_dev_set_name()
613 struct spi_device *spi = to_spi_device(dev); in spi_dev_check() local
[all …]
Dspi-orion.c135 static int orion_spi_baudrate_set(struct spi_device *spi, unsigned int speed) in orion_spi_baudrate_set()
233 orion_spi_mode_set(struct spi_device *spi) in orion_spi_mode_set()
255 orion_spi_50mhz_ac_timing_erratum(struct spi_device *spi, unsigned int speed) in orion_spi_50mhz_ac_timing_erratum()
293 orion_spi_setup_transfer(struct spi_device *spi, struct spi_transfer *t) in orion_spi_setup_transfer()
327 static void orion_spi_set_cs(struct spi_device *spi, bool enable) in orion_spi_set_cs()
382 orion_spi_write_read_8bit(struct spi_device *spi, in orion_spi_write_read_8bit()
431 orion_spi_write_read_16bit(struct spi_device *spi, in orion_spi_write_read_16bit()
467 orion_spi_write_read(struct spi_device *spi, struct spi_transfer *xfer) in orion_spi_write_read()
532 struct spi_device *spi, in orion_spi_transfer_one()
547 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
644 struct mxs_spi *spi; in mxs_spi_remove() local
/drivers/net/can/spi/
Dhi311x.c147 struct spi_device *spi; member
200 static int hi3110_spi_trans(struct spi_device *spi, int len) in hi3110_spi_trans()
222 static int hi3110_cmd(struct spi_device *spi, u8 command) in hi3110_cmd()
232 static u8 hi3110_read(struct spi_device *spi, u8 command) in hi3110_read()
244 static void hi3110_write(struct spi_device *spi, u8 reg, u8 val) in hi3110_write()
253 static void hi3110_hw_tx_frame(struct spi_device *spi, u8 *buf, int len) in hi3110_hw_tx_frame()
262 static void hi3110_hw_tx(struct spi_device *spi, struct can_frame *frame) in hi3110_hw_tx()
305 static void hi3110_hw_rx_frame(struct spi_device *spi, u8 *buf) in hi3110_hw_rx_frame()
314 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
297 static int mcp251x_spi_trans(struct spi_device *spi, int len) in mcp251x_spi_trans()
318 static int mcp251x_spi_write(struct spi_device *spi, int len) in mcp251x_spi_write()
330 static u8 mcp251x_read_reg(struct spi_device *spi, u8 reg) in mcp251x_read_reg()
348 static void mcp251x_read_2regs(struct spi_device *spi, u8 reg, u8 *v1, u8 *v2) in mcp251x_read_2regs()
369 static void mcp251x_write_reg(struct spi_device *spi, u8 reg, u8 val) in mcp251x_write_reg()
380 static void mcp251x_write_2regs(struct spi_device *spi, u8 reg, u8 v1, u8 v2) in mcp251x_write_2regs()
392 static void mcp251x_write_bits(struct spi_device *spi, u8 reg, in mcp251x_write_bits()
405 static u8 mcp251x_read_stat(struct spi_device *spi) in mcp251x_read_stat()
575 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 void slic_ds26522_remove(struct spi_device *spi) in slic_ds26522_remove()
202 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 void ad5592r_spi_remove(struct spi_device *spi) in ad5592r_spi_remove()
/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 void l4f00242t03_remove(struct spi_device *spi) in l4f00242t03_remove()
233 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/hwmon/
Dadt7310.c42 static int adt7310_spi_read_word(struct spi_device *spi, u8 reg) in adt7310_spi_read_word()
47 static int adt7310_spi_write_word(struct spi_device *spi, u8 reg, u16 data) in adt7310_spi_write_word()
57 static int adt7310_spi_read_byte(struct spi_device *spi, u8 reg) in adt7310_spi_read_byte()
62 static int adt7310_spi_write_byte(struct spi_device *spi, u8 reg, u8 data) in adt7310_spi_write_byte()
85 struct spi_device *spi = context; in adt7310_reg_read() local
107 struct spi_device *spi = context; in adt7310_reg_write() local
133 static int adt7310_spi_probe(struct spi_device *spi) in adt7310_spi_probe()
/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 void 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

12345678910>>...21