Searched refs:m_can_classdev (Results 1 – 6 of 6) sorted by relevance
/Linux-v5.15/drivers/net/can/m_can/ |
D | m_can.h | 62 struct m_can_classdev; 65 int (*clear_interrupts)(struct m_can_classdev *cdev); 66 u32 (*read_reg)(struct m_can_classdev *cdev, int reg); 67 int (*write_reg)(struct m_can_classdev *cdev, int reg, int val); 68 int (*read_fifo)(struct m_can_classdev *cdev, int addr_offset, void *val, size_t val_count); 69 int (*write_fifo)(struct m_can_classdev *cdev, int addr_offset, 71 int (*init)(struct m_can_classdev *cdev); 74 struct m_can_classdev { struct 99 struct m_can_classdev *m_can_class_allocate_dev(struct device *dev, int sizeof_priv); argument 101 int m_can_class_register(struct m_can_classdev *cdev); [all …]
|
D | m_can_platform.c | 14 struct m_can_classdev cdev; 20 static inline struct m_can_plat_priv *cdev_to_priv(struct m_can_classdev *cdev) in cdev_to_priv() 25 static u32 iomap_read_reg(struct m_can_classdev *cdev, int reg) in iomap_read_reg() 32 static int iomap_read_fifo(struct m_can_classdev *cdev, int offset, void *val, size_t val_count) in iomap_read_fifo() 46 static int iomap_write_reg(struct m_can_classdev *cdev, int reg, int val) in iomap_write_reg() 55 static int iomap_write_fifo(struct m_can_classdev *cdev, int offset, in iomap_write_fifo() 79 struct m_can_classdev *mcan_class; in m_can_plat_probe() 174 struct m_can_classdev *mcan_class = &priv->cdev; in m_can_plat_remove() 186 struct m_can_classdev *mcan_class = &priv->cdev; in m_can_runtime_suspend() 197 struct m_can_classdev *mcan_class = &priv->cdev; in m_can_runtime_resume()
|
D | m_can_pci.c | 25 struct m_can_classdev cdev; 30 static inline struct m_can_pci_priv *cdev_to_priv(struct m_can_classdev *cdev) in cdev_to_priv() 35 static u32 iomap_read_reg(struct m_can_classdev *cdev, int reg) in iomap_read_reg() 42 static int iomap_read_fifo(struct m_can_classdev *cdev, int offset, void *val, size_t val_count) in iomap_read_fifo() 51 static int iomap_write_reg(struct m_can_classdev *cdev, int reg, int val) in iomap_write_reg() 60 static int iomap_write_fifo(struct m_can_classdev *cdev, int offset, in iomap_write_fifo() 80 struct m_can_classdev *mcan_class; in m_can_pci_probe() 144 struct m_can_classdev *mcan_class = pci_get_drvdata(pci); in m_can_pci_remove()
|
D | m_can.c | 321 static inline u32 m_can_read(struct m_can_classdev *cdev, enum m_can_reg reg) in m_can_read() 326 static inline void m_can_write(struct m_can_classdev *cdev, enum m_can_reg reg, in m_can_write() 333 m_can_fifo_read(struct m_can_classdev *cdev, in m_can_fifo_read() 343 m_can_fifo_write(struct m_can_classdev *cdev, in m_can_fifo_write() 352 static inline int m_can_fifo_write_no_off(struct m_can_classdev *cdev, in m_can_fifo_write_no_off() 359 m_can_txe_fifo_read(struct m_can_classdev *cdev, u32 fgi, u32 offset, u32 *val) in m_can_txe_fifo_read() 367 static inline bool m_can_tx_fifo_full(struct m_can_classdev *cdev) in m_can_tx_fifo_full() 372 static void m_can_config_endisable(struct m_can_classdev *cdev, bool enable) in m_can_config_endisable() 406 static inline void m_can_enable_all_interrupts(struct m_can_classdev *cdev) in m_can_enable_all_interrupts() 412 static inline void m_can_disable_all_interrupts(struct m_can_classdev *cdev) in m_can_disable_all_interrupts() [all …]
|
D | tcan4x5x-core.c | 105 static inline struct tcan4x5x_priv *cdev_to_priv(struct m_can_classdev *cdev) in cdev_to_priv() 146 static u32 tcan4x5x_read_reg(struct m_can_classdev *cdev, int reg) in tcan4x5x_read_reg() 156 static int tcan4x5x_read_fifo(struct m_can_classdev *cdev, int addr_offset, in tcan4x5x_read_fifo() 164 static int tcan4x5x_write_reg(struct m_can_classdev *cdev, int reg, int val) in tcan4x5x_write_reg() 171 static int tcan4x5x_write_fifo(struct m_can_classdev *cdev, in tcan4x5x_write_fifo() 190 static int tcan4x5x_write_tcan_reg(struct m_can_classdev *cdev, in tcan4x5x_write_tcan_reg() 198 static int tcan4x5x_clear_interrupts(struct m_can_classdev *cdev) in tcan4x5x_clear_interrupts() 221 static int tcan4x5x_init(struct m_can_classdev *cdev) in tcan4x5x_init() 250 static int tcan4x5x_disable_wake(struct m_can_classdev *cdev) in tcan4x5x_disable_wake() 258 static int tcan4x5x_disable_state(struct m_can_classdev *cdev) in tcan4x5x_disable_state() [all …]
|
D | tcan4x5x.h | 33 struct m_can_classdev cdev;
|