Home
last modified time | relevance | path

Searched refs:spi_device (Results 1 – 25 of 514) sorted by relevance

12345678910>>...21

/Linux-v5.10/drivers/staging/pi433/
Drf69.h20 int rf69_set_mode(struct spi_device *spi, enum mode mode);
21 int rf69_set_data_mode(struct spi_device *spi, u8 data_mode);
22 int rf69_set_modulation(struct spi_device *spi, enum modulation modulation);
23 int rf69_set_modulation_shaping(struct spi_device *spi,
25 int rf69_set_bit_rate(struct spi_device *spi, u16 bit_rate);
26 int rf69_set_deviation(struct spi_device *spi, u32 deviation);
27 int rf69_set_frequency(struct spi_device *spi, u32 frequency);
28 int rf69_enable_amplifier(struct spi_device *spi, u8 amplifier_mask);
29 int rf69_disable_amplifier(struct spi_device *spi, u8 amplifier_mask);
30 int rf69_set_output_power_level(struct spi_device *spi, u8 power_level);
[all …]
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 …]
/Linux-v5.10/include/linux/spi/
Dspi.h159 struct spi_device { struct
210 static inline struct spi_device *to_spi_device(struct device *dev) in to_spi_device() argument
212 return dev ? container_of(dev, struct spi_device, dev) : NULL; in to_spi_device()
216 static inline struct spi_device *spi_dev_get(struct spi_device *spi) in spi_dev_get()
221 static inline void spi_dev_put(struct spi_device *spi) in spi_dev_put()
228 static inline void *spi_get_ctldata(struct spi_device *spi) in spi_get_ctldata()
233 static inline void spi_set_ctldata(struct spi_device *spi, void *state) in spi_set_ctldata()
240 static inline void spi_set_drvdata(struct spi_device *spi, void *data) in spi_set_drvdata()
245 static inline void *spi_get_drvdata(struct spi_device *spi) in spi_get_drvdata()
280 int (*probe)(struct spi_device *spi);
[all …]
Dspi_bitbang.h18 int (*setup_transfer)(struct spi_device *spi,
21 void (*chipselect)(struct spi_device *spi, int is_on);
28 int (*txrx_bufs)(struct spi_device *spi, struct spi_transfer *t);
31 u32 (*txrx_word[4])(struct spi_device *spi,
34 int (*set_line_direction)(struct spi_device *spi, bool output);
40 extern int spi_bitbang_setup(struct spi_device *spi);
41 extern void spi_bitbang_cleanup(struct spi_device *spi);
42 extern int spi_bitbang_setup_transfer(struct spi_device *spi,
Dmmc_spi.h39 extern struct mmc_spi_platform_data *mmc_spi_get_pdata(struct spi_device *spi);
40 extern void mmc_spi_put_pdata(struct spi_device *spi);
43 mmc_spi_get_pdata(struct spi_device *spi) in mmc_spi_get_pdata()
47 static inline void mmc_spi_put_pdata(struct spi_device *spi) {} in mmc_spi_put_pdata()
/Linux-v5.10/drivers/hwmon/
Dmax31722.c27 struct spi_device *spi_device; member
34 struct spi_device *spi = data->spi_device; in max31722_set_mode()
56 ret = spi_w8r16(data->spi_device, MAX31722_REG_TEMP_LSB); in max31722_temp_show()
72 static int max31722_probe(struct spi_device *spi) in max31722_probe()
82 data->spi_device = spi; in max31722_probe()
104 static int max31722_remove(struct spi_device *spi) in max31722_remove()
115 struct spi_device *spi_device = to_spi_device(dev); in max31722_suspend() local
116 struct max31722_data *data = spi_get_drvdata(spi_device); in max31722_suspend()
123 struct spi_device *spi_device = to_spi_device(dev); in max31722_resume() local
124 struct max31722_data *data = spi_get_drvdata(spi_device); in max31722_resume()
Dadt7310.c43 struct spi_device *spi = to_spi_device(dev); in adt7310_spi_read_word()
50 struct spi_device *spi = to_spi_device(dev); in adt7310_spi_write_word()
61 struct spi_device *spi = to_spi_device(dev); in adt7310_spi_read_byte()
69 struct spi_device *spi = to_spi_device(dev); in adt7310_spi_write_byte()
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()
/Linux-v5.10/drivers/media/dvb-frontends/cxd2880/
Dcxd2880_spi_device.c17 struct cxd2880_spi_device *spi_device = NULL; in cxd2880_spi_device_write() local
25 spi_device = spi->user; in cxd2880_spi_device_write()
33 result = spi_sync(spi_device->spi, &msg); in cxd2880_spi_device_write()
47 struct cxd2880_spi_device *spi_device = NULL; in cxd2880_spi_device_write_read() local
54 spi_device = spi->user; in cxd2880_spi_device_write_read()
56 result = spi_write_then_read(spi_device->spi, tx_data, in cxd2880_spi_device_write_read()
65 cxd2880_spi_device_initialize(struct cxd2880_spi_device *spi_device, in cxd2880_spi_device_initialize() argument
70 struct spi_device *spi = spi_device->spi; in cxd2880_spi_device_initialize()
101 struct cxd2880_spi_device *spi_device) in cxd2880_spi_device_create_spi() argument
103 if (!spi || !spi_device) in cxd2880_spi_device_create_spi()
[all …]
/Linux-v5.10/drivers/iio/accel/
Dbma220_spi.c64 struct spi_device *spi_device; member
77 static inline int bma220_read_reg(struct spi_device *spi, u8 reg) in bma220_read_reg()
93 struct spi_device *spi = data->spi_device; in bma220_trigger_handler()
121 ret = bma220_read_reg(data->spi_device, chan->address); in bma220_read_raw()
127 ret = bma220_read_reg(data->spi_device, BMA220_REG_RANGE); in bma220_read_raw()
162 ret = spi_write(data->spi_device, data->tx_buf, in bma220_write_raw()
165 dev_err(&data->spi_device->dev, in bma220_write_raw()
197 static int bma220_init(struct spi_device *spi) in bma220_init()
217 static int bma220_deinit(struct spi_device *spi) in bma220_deinit()
233 static int bma220_probe(struct spi_device *spi) in bma220_probe()
[all …]
/Linux-v5.10/drivers/iio/dac/
Dad5592r.c21 struct spi_device *spi = container_of(st->dev, struct spi_device, dev); in ad5592r_spi_wnop_r16()
35 struct spi_device *spi = container_of(st->dev, struct spi_device, dev); in ad5592r_write_dac()
44 struct spi_device *spi = container_of(st->dev, struct spi_device, dev); in ad5592r_read_adc()
72 struct spi_device *spi = container_of(st->dev, struct spi_device, dev); in ad5592r_reg_write()
81 struct spi_device *spi = container_of(st->dev, struct spi_device, dev); in ad5592r_reg_read()
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()
/Linux-v5.10/drivers/spi/
Dspi-bitbang.c42 u32 (*txrx_word)(struct spi_device *spi, unsigned nsecs,
44 unsigned (*txrx_bufs)(struct spi_device *,
46 struct spi_device *spi,
55 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()
[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-test.h77 int (*run_test)(struct spi_device *spi, struct spi_test *test,
79 int (*execute_msg)(struct spi_device *spi, struct spi_test *test,
107 int spi_test_run_test(struct spi_device *spi,
112 int spi_test_execute_msg(struct spi_device *spi,
117 int spi_test_run_tests(struct spi_device *spi,
Dspi-sh-sci.c57 static inline void setsck(struct spi_device *dev, int on) in setsck()
62 static inline void setmosi(struct spi_device *dev, int on) in setmosi()
67 static inline u32 getmiso(struct spi_device *dev) in getmiso()
78 static u32 sh_sci_spi_txrx_mode0(struct spi_device *spi, in sh_sci_spi_txrx_mode0()
85 static u32 sh_sci_spi_txrx_mode1(struct spi_device *spi, in sh_sci_spi_txrx_mode1()
92 static u32 sh_sci_spi_txrx_mode2(struct spi_device *spi, in sh_sci_spi_txrx_mode2()
99 static u32 sh_sci_spi_txrx_mode3(struct spi_device *spi, in sh_sci_spi_txrx_mode3()
106 static void sh_sci_spi_chipselect(struct spi_device *dev, int value) in sh_sci_spi_chipselect()
Dspi-butterfly.c44 static inline struct butterfly *spidev_to_pp(struct spi_device *spi) in spidev_to_pp()
58 struct spi_device *dataflash;
59 struct spi_device *butterfly;
67 setsck(struct spi_device *spi, int is_on) in setsck()
83 setmosi(struct spi_device *spi, int is_on) in setmosi()
98 static inline int getmiso(struct spi_device *spi) in getmiso()
111 static void butterfly_chipselect(struct spi_device *spi, int value) in butterfly_chipselect()
137 butterfly_txrx_word_mode0(struct spi_device *spi, unsigned nsecs, u32 word, in butterfly_txrx_word_mode0()
/Linux-v5.10/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()
200 struct spi_device *spi = dev->priv; in b53_spi_write8()
217 struct spi_device *spi = dev->priv; in b53_spi_write16()
234 struct spi_device *spi = dev->priv; in b53_spi_write32()
251 struct spi_device *spi = dev->priv; in b53_spi_write48()
[all …]
/Linux-v5.10/drivers/input/misc/
Dadxl34x-spi.c28 struct spi_device *spi = to_spi_device(dev); in adxl34x_spi_read()
39 struct spi_device *spi = to_spi_device(dev); in adxl34x_spi_write()
52 struct spi_device *spi = to_spi_device(dev); in adxl34x_spi_read_block()
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()
109 struct spi_device *spi = to_spi_device(dev); in adxl34x_spi_resume()
/Linux-v5.10/drivers/char/tpm/
Dtpm_tis_spi.h14 struct spi_device *spi_device; member
28 extern int tpm_tis_spi_init(struct spi_device *spi, struct tpm_tis_spi_phy *phy,
39 extern int cr50_spi_probe(struct spi_device *spi);
41 static inline int cr50_spi_probe(struct spi_device *spi) in cr50_spi_probe()
Dtpm_tis_spi_main.c60 ret = spi_sync_locked(phy->spi_device, &m); in tpm_tis_spi_flow_control()
83 spi_bus_lock(phy->spi_device->master); in tpm_tis_spi_transfer()
101 ret = spi_sync_locked(phy->spi_device, &m); in tpm_tis_spi_transfer()
126 ret = spi_sync_locked(phy->spi_device, &m); in tpm_tis_spi_transfer()
139 spi_bus_unlock(phy->spi_device->master); in tpm_tis_spi_transfer()
193 int tpm_tis_spi_init(struct spi_device *spi, struct tpm_tis_spi_phy *phy, in tpm_tis_spi_init()
200 phy->spi_device = spi; in tpm_tis_spi_init()
213 static int tpm_tis_spi_probe(struct spi_device *dev) in tpm_tis_spi_probe()
235 typedef int (*tpm_tis_spi_probe_func)(struct spi_device *);
237 static int tpm_tis_spi_driver_probe(struct spi_device *spi) in tpm_tis_spi_driver_probe()
[all …]
/Linux-v5.10/drivers/char/tpm/st33zp24/
Dspi.c59 struct spi_device *spi_device; member
106 struct spi_device *dev = phy->spi_device; in st33zp24_spi_send()
149 struct spi_device *dev = phy->spi_device; in st33zp24_spi_read8_reg()
228 static int st33zp24_spi_acpi_request_resources(struct spi_device *spi_dev) in st33zp24_spi_acpi_request_resources()
259 static int st33zp24_spi_of_request_resources(struct spi_device *spi_dev) in st33zp24_spi_of_request_resources()
299 static int st33zp24_spi_request_resources(struct spi_device *dev) in st33zp24_spi_request_resources()
336 static int st33zp24_spi_probe(struct spi_device *dev) in st33zp24_spi_probe()
354 phy->spi_device = dev; in st33zp24_spi_probe()
384 static int st33zp24_spi_remove(struct spi_device *dev) in st33zp24_spi_remove()
/Linux-v5.10/drivers/net/wan/
Dslic_ds26522.c29 static struct spi_device *g_spi;
37 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()
/Linux-v5.10/drivers/net/ethernet/wiznet/
Dw5100-spi.c28 struct spi_device *spi = to_spi_device(ndev->dev.parent); in w5100_spi_read()
40 struct spi_device *spi = to_spi_device(ndev->dev.parent); in w5100_spi_write()
141 struct spi_device *spi = to_spi_device(ndev->dev.parent); in w5200_spi_read()
153 struct spi_device *spi = to_spi_device(ndev->dev.parent); in w5200_spi_write()
161 struct spi_device *spi = to_spi_device(ndev->dev.parent); in w5200_spi_read16()
173 struct spi_device *spi = to_spi_device(ndev->dev.parent); in w5200_spi_write16()
186 struct spi_device *spi = to_spi_device(ndev->dev.parent); in w5200_spi_readbulk()
216 struct spi_device *spi = to_spi_device(ndev->dev.parent); in w5200_spi_writebulk()
286 struct spi_device *spi = to_spi_device(ndev->dev.parent); in w5500_spi_read()
302 struct spi_device *spi = to_spi_device(ndev->dev.parent); in w5500_spi_write()
[all …]
/Linux-v5.10/drivers/misc/lis3lv02d/
Dlis3lv02d_spi.c27 struct spi_device *spi = lis3->bus_priv; in lis3_spi_read()
39 struct spi_device *spi = lis3->bus_priv; in lis3_spi_write()
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()
122 struct spi_device *spi = to_spi_device(dev); in lis3lv02d_spi_resume()
/Linux-v5.10/drivers/net/can/spi/
Dhi311x.c147 struct spi_device *spi;
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 …]
/Linux-v5.10/drivers/base/regmap/
Dregmap-spi.c31 struct spi_device *spi = to_spi_device(dev); in regmap_spi_write()
41 struct spi_device *spi = to_spi_device(dev); in regmap_spi_gather_write()
62 struct spi_device *spi = to_spi_device(dev); in regmap_spi_async_write()
96 struct spi_device *spi = to_spi_device(dev); in regmap_spi_read()
112 struct regmap *__regmap_init_spi(struct spi_device *spi, in __regmap_init_spi()
122 struct regmap *__devm_regmap_init_spi(struct spi_device *spi, in __devm_regmap_init_spi()

12345678910>>...21