Home
last modified time | relevance | path

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

12345678910>>...24

/linux-6.6.21/drivers/staging/pi433/
Drf69.h20 u8 rf69_read_reg(struct spi_device *spi, u8 addr);
21 int rf69_get_version(struct spi_device *spi);
22 int rf69_set_mode(struct spi_device *spi, enum mode mode);
23 int rf69_set_data_mode(struct spi_device *spi, u8 data_mode);
24 int rf69_set_modulation(struct spi_device *spi, enum modulation modulation);
25 int rf69_set_modulation_shaping(struct spi_device *spi,
27 int rf69_set_bit_rate(struct spi_device *spi, u16 bit_rate);
28 int rf69_set_deviation(struct spi_device *spi, u32 deviation);
29 int rf69_set_frequency(struct spi_device *spi, u32 frequency);
30 int rf69_enable_amplifier(struct spi_device *spi, u8 amplifier_mask);
[all …]
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 …]
/linux-6.6.21/include/linux/spi/
Dspi.h180 struct spi_device { struct
240 static inline struct spi_device *to_spi_device(const struct device *dev) in to_spi_device() argument
242 return dev ? container_of(dev, struct spi_device, dev) : NULL; in to_spi_device()
246 static inline struct spi_device *spi_dev_get(struct spi_device *spi) in spi_dev_get()
251 static inline void spi_dev_put(struct spi_device *spi) in spi_dev_put()
258 static inline void *spi_get_ctldata(const struct spi_device *spi) in spi_get_ctldata()
263 static inline void spi_set_ctldata(struct spi_device *spi, void *state) in spi_set_ctldata()
270 static inline void spi_set_drvdata(struct spi_device *spi, void *data) in spi_set_drvdata()
275 static inline void *spi_get_drvdata(const struct spi_device *spi) in spi_get_drvdata()
280 static inline u8 spi_get_chipselect(const struct spi_device *spi, u8 idx) in spi_get_chipselect()
[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,
/linux-6.6.21/drivers/hwmon/
Dmax31722.c26 struct spi_device *spi_device; member
33 struct spi_device *spi = data->spi_device; in max31722_set_mode()
55 ret = spi_w8r16(data->spi_device, MAX31722_REG_TEMP_LSB); in max31722_temp_show()
71 static int max31722_probe(struct spi_device *spi) in max31722_probe()
81 data->spi_device = spi; in max31722_probe()
103 static void max31722_remove(struct spi_device *spi) in max31722_remove()
118 struct spi_device *spi_device = to_spi_device(dev); in max31722_suspend() local
119 struct max31722_data *data = spi_get_drvdata(spi_device); in max31722_suspend()
126 struct spi_device *spi_device = to_spi_device(dev); in max31722_resume() local
127 struct max31722_data *data = spi_get_drvdata(spi_device); in max31722_resume()
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()
107 struct spi_device *spi = context; in adt7310_reg_write()
133 static int adt7310_spi_probe(struct spi_device *spi) in adt7310_spi_probe()
/linux-6.6.21/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-6.6.21/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 void ad5592r_spi_remove(struct spi_device *spi) in ad5592r_spi_remove()
/linux-6.6.21/drivers/iio/accel/
Dbma220_spi.c63 struct spi_device *spi_device; member
80 static inline int bma220_read_reg(struct spi_device *spi, u8 reg) in bma220_read_reg()
96 struct spi_device *spi = data->spi_device; in bma220_trigger_handler()
124 ret = bma220_read_reg(data->spi_device, chan->address); in bma220_read_raw()
131 ret = bma220_read_reg(data->spi_device, BMA220_REG_RANGE); in bma220_read_raw()
166 ret = spi_write(data->spi_device, data->tx_buf, in bma220_write_raw()
169 dev_err(&data->spi_device->dev, in bma220_write_raw()
201 static int bma220_init(struct spi_device *spi) in bma220_init()
221 static int bma220_power(struct spi_device *spi, bool up) in bma220_power()
250 static int bma220_probe(struct spi_device *spi) in bma220_probe()
[all …]
/linux-6.6.21/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()
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()
[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-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-6.6.21/drivers/misc/
Dgehc-achc.c21 struct spi_device *main;
22 struct spi_device *ezport;
59 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()
[all …]
/linux-6.6.21/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-6.6.21/drivers/char/tpm/
Dtpm_tis_spi_main.c60 ret = spi_sync_locked(phy->spi_device, &m); in tpm_tis_spi_flow_control()
125 ret = spi_sync(phy->spi_device, &m); in tpm_tis_spi_transfer_half()
149 spi_bus_lock(phy->spi_device->master); in tpm_tis_spi_transfer_full()
167 ret = spi_sync_locked(phy->spi_device, &m); in tpm_tis_spi_transfer_full()
192 ret = spi_sync_locked(phy->spi_device, &m); in tpm_tis_spi_transfer_full()
210 spi_sync_locked(phy->spi_device, &m); in tpm_tis_spi_transfer_full()
213 spi_bus_unlock(phy->spi_device->master); in tpm_tis_spi_transfer_full()
221 struct spi_controller *ctlr = phy->spi_device->controller; in tpm_tis_spi_transfer()
247 int tpm_tis_spi_init(struct spi_device *spi, struct tpm_tis_spi_phy *phy, in tpm_tis_spi_init()
254 phy->spi_device = spi; in tpm_tis_spi_init()
[all …]
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,
35 extern int cr50_spi_probe(struct spi_device *spi);
37 static inline int cr50_spi_probe(struct spi_device *spi) in cr50_spi_probe()
/linux-6.6.21/drivers/char/tpm/st33zp24/
Dspi.c55 struct spi_device *spi_device; member
101 struct spi_device *dev = phy->spi_device; in st33zp24_spi_send()
144 struct spi_device *dev = phy->spi_device; in st33zp24_spi_read8_reg()
222 static int st33zp24_spi_probe(struct spi_device *dev) in st33zp24_spi_probe()
231 phy->spi_device = dev; in st33zp24_spi_probe()
245 static void st33zp24_spi_remove(struct spi_device *dev) in st33zp24_spi_remove()
/linux-6.6.21/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 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()
/linux-6.6.21/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-6.6.21/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 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()
122 struct spi_device *spi = to_spi_device(dev); in lis3lv02d_spi_resume()
/linux-6.6.21/drivers/net/can/spi/
Dhi311x.c147 struct spi_device *spi;
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 …]
/linux-6.6.21/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 static const struct regmap_bus *regmap_get_spi_bus(struct spi_device *spi, in regmap_get_spi_bus()
140 struct regmap *__regmap_init_spi(struct spi_device *spi, in __regmap_init_spi()
154 struct regmap *__devm_regmap_init_spi(struct spi_device *spi, in __devm_regmap_init_spi()
/linux-6.6.21/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 void adxl34x_spi_remove(struct spi_device *spi) in adxl34x_spi_remove()

12345678910>>...24