/linux-3.4.99/include/linux/spi/ |
D | spi.h | 70 struct spi_device { struct 105 static inline struct spi_device *to_spi_device(struct device *dev) in to_spi_device() argument 107 return dev ? container_of(dev, struct spi_device, dev) : NULL; in to_spi_device() 111 static inline struct spi_device *spi_dev_get(struct spi_device *spi) in spi_dev_get() 116 static inline void spi_dev_put(struct spi_device *spi) in spi_dev_put() 123 static inline void *spi_get_ctldata(struct spi_device *spi) in spi_get_ctldata() 128 static inline void spi_set_ctldata(struct spi_device *spi, void *state) in spi_set_ctldata() 135 static inline void spi_set_drvdata(struct spi_device *spi, void *data) in spi_set_drvdata() 140 static inline void *spi_get_drvdata(struct spi_device *spi) in spi_get_drvdata() 178 int (*probe)(struct spi_device *spi); [all …]
|
D | spi_bitbang.h | 21 int (*setup_transfer)(struct spi_device *spi, 24 void (*chipselect)(struct spi_device *spi, int is_on); 31 int (*txrx_bufs)(struct spi_device *spi, struct spi_transfer *t); 34 u32 (*txrx_word[4])(struct spi_device *spi, 42 extern int spi_bitbang_setup(struct spi_device *spi); 43 extern void spi_bitbang_cleanup(struct spi_device *spi); 44 extern int spi_bitbang_transfer(struct spi_device *spi, struct spi_message *m); 45 extern int spi_bitbang_setup_transfer(struct spi_device *spi,
|
D | mmc_spi.h | 46 extern struct mmc_spi_platform_data *mmc_spi_get_pdata(struct spi_device *spi); 47 extern void mmc_spi_put_pdata(struct spi_device *spi); 50 mmc_spi_get_pdata(struct spi_device *spi) in mmc_spi_get_pdata() 54 static inline void mmc_spi_put_pdata(struct spi_device *spi) {} in mmc_spi_put_pdata()
|
D | libertas_spi.h | 14 struct spi_device; 26 int (*setup)(struct spi_device *spi); 27 int (*teardown)(struct spi_device *spi);
|
/linux-3.4.99/drivers/spi/ |
D | spi-gpio.c | 93 spi_to_pdata(const struct spi_device *spi) in spi_to_pdata() 106 static inline void setsck(const struct spi_device *spi, int is_on) in setsck() 111 static inline void setmosi(const struct spi_device *spi, int is_on) in setmosi() 116 static inline int getmiso(const struct spi_device *spi) in getmiso() 147 static u32 spi_gpio_txrx_word_mode0(struct spi_device *spi, in spi_gpio_txrx_word_mode0() 153 static u32 spi_gpio_txrx_word_mode1(struct spi_device *spi, in spi_gpio_txrx_word_mode1() 159 static u32 spi_gpio_txrx_word_mode2(struct spi_device *spi, in spi_gpio_txrx_word_mode2() 165 static u32 spi_gpio_txrx_word_mode3(struct spi_device *spi, in spi_gpio_txrx_word_mode3() 181 static u32 spi_gpio_spec_txrx_word_mode0(struct spi_device *spi, in spi_gpio_spec_txrx_word_mode0() 188 static u32 spi_gpio_spec_txrx_word_mode1(struct spi_device *spi, in spi_gpio_spec_txrx_word_mode1() [all …]
|
D | spi-bitbang.c | 54 u32 (*txrx_word)(struct spi_device *spi, unsigned nsecs, 56 unsigned (*txrx_bufs)(struct spi_device *, 58 struct spi_device *spi, 65 struct spi_device *spi, in bitbang_txrx_8() 66 u32 (*txrx_word)(struct spi_device *spi, in bitbang_txrx_8() 91 struct spi_device *spi, in bitbang_txrx_16() 92 u32 (*txrx_word)(struct spi_device *spi, in bitbang_txrx_16() 117 struct spi_device *spi, in bitbang_txrx_32() 118 u32 (*txrx_word)(struct spi_device *spi, in bitbang_txrx_32() 142 int spi_bitbang_setup_transfer(struct spi_device *spi, struct spi_transfer *t) in spi_bitbang_setup_transfer() [all …]
|
D | spi-sh-sci.c | 63 static inline void setsck(struct spi_device *dev, int on) in setsck() 68 static inline void setmosi(struct spi_device *dev, int on) in setmosi() 73 static inline u32 getmiso(struct spi_device *dev) in getmiso() 84 static u32 sh_sci_spi_txrx_mode0(struct spi_device *spi, in sh_sci_spi_txrx_mode0() 90 static u32 sh_sci_spi_txrx_mode1(struct spi_device *spi, in sh_sci_spi_txrx_mode1() 96 static u32 sh_sci_spi_txrx_mode2(struct spi_device *spi, in sh_sci_spi_txrx_mode2() 102 static u32 sh_sci_spi_txrx_mode3(struct spi_device *spi, in sh_sci_spi_txrx_mode3() 108 static void sh_sci_spi_chipselect(struct spi_device *dev, int value) in sh_sci_spi_chipselect()
|
D | spi-butterfly.c | 61 static inline struct butterfly *spidev_to_pp(struct spi_device *spi) in spidev_to_pp() 76 struct spi_device *dataflash; 77 struct spi_device *butterfly; 85 setsck(struct spi_device *spi, int is_on) in setsck() 101 setmosi(struct spi_device *spi, int is_on) in setmosi() 116 static inline int getmiso(struct spi_device *spi) in getmiso() 129 static void butterfly_chipselect(struct spi_device *spi, int value) in butterfly_chipselect() 156 butterfly_txrx_word_mode0(struct spi_device *spi, in butterfly_txrx_word_mode0()
|
D | spi-lm70llp.c | 87 struct spi_device *spidev_lm70; 98 static inline struct spi_lm70llp *spidev_to_pp(struct spi_device *spi) in spidev_to_pp() 145 static inline void setsck(struct spi_device *s, int is_on) in setsck() 155 static inline void setmosi(struct spi_device *s, int is_on) in setmosi() 170 static inline int getmiso(struct spi_device *s) in getmiso() 179 static void lm70_chipselect(struct spi_device *spi, int value) in lm70_chipselect() 192 static u32 lm70_txrx(struct spi_device *spi, unsigned nsecs, u32 word, u8 bits) in lm70_txrx()
|
D | spi.c | 39 struct spi_device *spi = to_spi_device(dev); in spidev_release() 52 const struct spi_device *spi = to_spi_device(dev); in modalias_show() 67 const struct spi_device *sdev) in spi_match_id() 77 const struct spi_device_id *spi_get_device_id(const struct spi_device *sdev) in spi_get_device_id() 87 const struct spi_device *spi = to_spi_device(dev); in spi_match_device() 102 const struct spi_device *spi = to_spi_device(dev); in spi_uevent() 309 struct spi_device *spi_alloc_device(struct spi_master *master) in spi_alloc_device() 311 struct spi_device *spi; in spi_alloc_device() 342 int spi_add_device(struct spi_device *spi) in spi_add_device() 416 struct spi_device *spi_new_device(struct spi_master *master, in spi_new_device() [all …]
|
D | spi-ath79.c | 50 static inline struct ath79_spi *ath79_spidev_to_sp(struct spi_device *spi) in ath79_spidev_to_sp() 55 static void ath79_spi_chipselect(struct spi_device *spi, int is_active) in ath79_spi_chipselect() 86 static int ath79_spi_setup_cs(struct spi_device *spi) in ath79_spi_setup_cs() 129 static void ath79_spi_cleanup_cs(struct spi_device *spi) in ath79_spi_cleanup_cs() 144 static int ath79_spi_setup(struct spi_device *spi) in ath79_spi_setup() 164 static void ath79_spi_cleanup(struct spi_device *spi) in ath79_spi_cleanup() 170 static u32 ath79_spi_txrx_mode0(struct spi_device *spi, unsigned nsecs, in ath79_spi_txrx_mode0()
|
/linux-3.4.99/drivers/input/misc/ |
D | adxl34x-spi.c | 28 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 __devinit adxl34x_spi_probe(struct spi_device *spi) in adxl34x_spi_probe() 90 static int __devexit adxl34x_spi_remove(struct spi_device *spi) in adxl34x_spi_remove() 100 struct spi_device *spi = to_spi_device(dev); in adxl34x_spi_suspend() 110 struct spi_device *spi = to_spi_device(dev); in adxl34x_spi_resume()
|
/linux-3.4.99/arch/arm/mach-ep93xx/include/mach/ |
D | ep93xx_spi.h | 4 struct spi_device; 24 int (*setup)(struct spi_device *spi); 25 void (*cleanup)(struct spi_device *spi); 26 void (*cs_control)(struct spi_device *spi, int value);
|
/linux-3.4.99/drivers/video/backlight/ |
D | tosa_lcd.c | 38 struct spi_device *spi; 46 static int tosa_tg_send(struct spi_device *spi, int adrs, uint8_t data) in tosa_tg_send() 63 int tosa_bl_enable(struct spi_device *spi, int enable) in tosa_bl_enable() 85 struct spi_device *spi = data->spi; in tosa_lcd_tg_on() 115 struct spi_device *spi = data->spi; in tosa_lcd_tg_off() 172 static int __devinit tosa_lcd_probe(struct spi_device *spi) in tosa_lcd_probe() 232 static int __devexit tosa_lcd_remove(struct spi_device *spi) in tosa_lcd_remove() 251 static int tosa_lcd_suspend(struct spi_device *spi, pm_message_t state) in tosa_lcd_suspend() 260 static int tosa_lcd_resume(struct spi_device *spi) in tosa_lcd_resume()
|
D | lms283gf05.c | 23 struct spi_device *spi; 106 static void lms283gf05_toggle(struct spi_device *spi, in lms283gf05_toggle() 130 struct spi_device *spi = st->spi; in lms283gf05_power_set() 153 static int __devinit lms283gf05_probe(struct spi_device *spi) in lms283gf05_probe() 205 static int __devexit lms283gf05_remove(struct spi_device *spi) in lms283gf05_remove()
|
D | l4f00242t03.c | 27 struct spi_device *spi; 48 static void l4f00242t03_lcd_init(struct spi_device *spi) in l4f00242t03_lcd_init() 69 static void l4f00242t03_lcd_powerdown(struct spi_device *spi) in l4f00242t03_lcd_powerdown() 92 struct spi_device *spi = priv->spi; in l4f00242t03_lcd_power_set() 151 static int __devinit l4f00242t03_probe(struct spi_device *spi) in l4f00242t03_probe() 237 static int __devexit l4f00242t03_remove(struct spi_device *spi) in l4f00242t03_remove() 258 static void l4f00242t03_shutdown(struct spi_device *spi) in l4f00242t03_shutdown()
|
/linux-3.4.99/drivers/base/regmap/ |
D | regmap-spi.c | 20 struct spi_device *spi = to_spi_device(dev); in regmap_spi_write() 29 struct spi_device *spi = to_spi_device(dev); in regmap_spi_gather_write() 45 struct spi_device *spi = to_spi_device(dev); in regmap_spi_read() 66 struct regmap *regmap_init_spi(struct spi_device *spi, in regmap_init_spi() 83 struct regmap *devm_regmap_init_spi(struct spi_device *spi, in devm_regmap_init_spi()
|
/linux-3.4.99/drivers/misc/lis3lv02d/ |
D | lis3lv02d_spi.c | 28 struct spi_device *spi = lis3->bus_priv; in lis3_spi_read() 40 struct spi_device *spi = lis3->bus_priv; in lis3_spi_write() 61 static int __devinit lis302dl_spi_probe(struct spi_device *spi) in lis302dl_spi_probe() 83 static int __devexit lis302dl_spi_remove(struct spi_device *spi) in lis302dl_spi_remove() 95 struct spi_device *spi = to_spi_device(dev); in lis3lv02d_spi_suspend() 106 struct spi_device *spi = to_spi_device(dev); in lis3lv02d_spi_resume()
|
/linux-3.4.99/drivers/net/can/ |
D | mcp251x.c | 242 struct spi_device *spi; 269 static inline int mcp251x_is_##_model(struct spi_device *spi) \ 305 static int mcp251x_spi_trans(struct spi_device *spi, int len) in mcp251x_spi_trans() 333 static u8 mcp251x_read_reg(struct spi_device *spi, uint8_t reg) in mcp251x_read_reg() 347 static void mcp251x_read_2regs(struct spi_device *spi, uint8_t reg, in mcp251x_read_2regs() 361 static void mcp251x_write_reg(struct spi_device *spi, u8 reg, uint8_t val) in mcp251x_write_reg() 372 static void mcp251x_write_bits(struct spi_device *spi, u8 reg, in mcp251x_write_bits() 385 static void mcp251x_hw_tx_frame(struct spi_device *spi, u8 *buf, in mcp251x_hw_tx_frame() 402 static void mcp251x_hw_tx(struct spi_device *spi, struct can_frame *frame, in mcp251x_hw_tx() 433 static void mcp251x_hw_rx_frame(struct spi_device *spi, u8 *buf, in mcp251x_hw_rx_frame() [all …]
|
/linux-3.4.99/drivers/input/touchscreen/ |
D | ad7879-spi.c | 30 static int ad7879_spi_xfer(struct spi_device *spi, in ad7879_spi_xfer() 85 struct spi_device *spi = to_spi_device(dev); in ad7879_spi_multi_read() 92 struct spi_device *spi = to_spi_device(dev); in ad7879_spi_read() 100 struct spi_device *spi = to_spi_device(dev); in ad7879_spi_write() 113 static int __devinit ad7879_spi_probe(struct spi_device *spi) in ad7879_spi_probe() 140 static int __devexit ad7879_spi_remove(struct spi_device *spi) in ad7879_spi_remove()
|
/linux-3.4.99/drivers/video/omap2/displays/ |
D | panel-n8x0.c | 71 struct spi_device *spidev; 160 static void mipid_transfer(struct spi_device *spi, int cmd, const u8 *wbuf, in mipid_transfer() 215 static inline void mipid_cmd(struct spi_device *spi, int cmd) in mipid_cmd() 220 static inline void mipid_write(struct spi_device *spi, in mipid_write() 226 static inline void mipid_read(struct spi_device *spi, in mipid_read() 232 static void set_data_lines(struct spi_device *spi, int data_lines) in set_data_lines() 251 static void send_init_string(struct spi_device *spi) in send_init_string() 257 static void send_display_on(struct spi_device *spi) in send_display_on() 262 static void send_display_off(struct spi_device *spi) in send_display_off() 267 static void send_sleep_out(struct spi_device *spi) in send_sleep_out() [all …]
|
/linux-3.4.99/drivers/gpio/ |
D | gpio-max7301.c | 25 struct spi_device *spi = to_spi_device(dev); in max7301_spi_write() 37 struct spi_device *spi = to_spi_device(dev); in max7301_spi_read() 53 static int __devinit max7301_probe(struct spi_device *spi) in max7301_probe() 78 static int __devexit max7301_remove(struct spi_device *spi) in max7301_remove()
|
/linux-3.4.99/drivers/mfd/ |
D | stmpe-spi.c | 21 struct spi_device *spi = stmpe->client; in spi_reg_read() 29 struct spi_device *spi = stmpe->client; in spi_reg_write() 65 struct spi_device *spi = stmpe->client; in spi_init() 86 stmpe_spi_probe(struct spi_device *spi) in stmpe_spi_probe() 104 static int __devexit stmpe_spi_remove(struct spi_device *spi) in stmpe_spi_remove()
|
/linux-3.4.99/drivers/staging/iio/gyro/ |
D | adis16060_core.c | 34 struct spi_device *us_w; 35 struct spi_device *us_r; 144 static int __devinit adis16060_r_probe(struct spi_device *spi) in adis16060_r_probe() 183 static int adis16060_r_remove(struct spi_device *spi) in adis16060_r_remove() 191 static int __devinit adis16060_w_probe(struct spi_device *spi) in adis16060_w_probe() 209 static int adis16060_w_remove(struct spi_device *spi) in adis16060_w_remove()
|
/linux-3.4.99/drivers/rtc/ |
D | rtc-max6902.c | 35 struct spi_device *spi = to_spi_device(dev); in max6902_set_reg() 48 struct spi_device *spi = to_spi_device(dev); in max6902_get_reg() 59 struct spi_device *spi = to_spi_device(dev); in max6902_read_time() 123 static int __devinit max6902_probe(struct spi_device *spi) in max6902_probe() 146 static int __devexit max6902_remove(struct spi_device *spi) in max6902_remove()
|