Home
last modified time | relevance | path

Searched refs:sja1000_priv (Results 1 – 11 of 11) sorted by relevance

/Linux-v4.19/drivers/net/can/sja1000/
Dsja1000_platform.c46 int (*init)(struct sja1000_priv *priv, struct device_node *of);
53 static u8 sp_read_reg8(const struct sja1000_priv *priv, int reg) in sp_read_reg8()
58 static void sp_write_reg8(const struct sja1000_priv *priv, int reg, u8 val) in sp_write_reg8()
63 static u8 sp_read_reg16(const struct sja1000_priv *priv, int reg) in sp_read_reg16()
68 static void sp_write_reg16(const struct sja1000_priv *priv, int reg, u8 val) in sp_write_reg16()
73 static u8 sp_read_reg32(const struct sja1000_priv *priv, int reg) in sp_read_reg32()
78 static void sp_write_reg32(const struct sja1000_priv *priv, int reg, u8 val) in sp_write_reg32()
83 static u8 sp_technologic_read_reg16(const struct sja1000_priv *priv, int reg) in sp_technologic_read_reg16()
97 static void sp_technologic_write_reg16(const struct sja1000_priv *priv, in sp_technologic_write_reg16()
109 static int sp_technologic_init(struct sja1000_priv *priv, struct device_node *of) in sp_technologic_init()
[all …]
Dsja1000.h153 struct sja1000_priv { struct
158 u8 (*read_reg) (const struct sja1000_priv *priv, int reg); argument
159 void (*write_reg) (const struct sja1000_priv *priv, int reg, u8 val); argument
160 void (*pre_irq) (const struct sja1000_priv *priv); argument
161 void (*post_irq) (const struct sja1000_priv *priv); argument
Dsja1000.c85 static void sja1000_write_cmdreg(struct sja1000_priv *priv, u8 val) in sja1000_write_cmdreg()
99 static int sja1000_is_absent(struct sja1000_priv *priv) in sja1000_is_absent()
106 struct sja1000_priv *priv = netdev_priv(dev); in sja1000_probe_chip()
117 struct sja1000_priv *priv = netdev_priv(dev); in set_reset_mode()
142 struct sja1000_priv *priv = netdev_priv(dev); in set_normal_mode()
185 struct sja1000_priv *priv = netdev_priv(dev); in chipset_init()
206 struct sja1000_priv *priv = netdev_priv(dev); in sja1000_start()
246 struct sja1000_priv *priv = netdev_priv(dev); in sja1000_set_bittiming()
267 struct sja1000_priv *priv = netdev_priv(dev); in sja1000_get_berr_counter()
284 struct sja1000_priv *priv = netdev_priv(dev); in sja1000_start_xmit()
[all …]
Dems_pci.c123 static u8 ems_pci_v1_read_reg(const struct sja1000_priv *priv, int port) in ems_pci_v1_read_reg()
128 static void ems_pci_v1_write_reg(const struct sja1000_priv *priv, in ems_pci_v1_write_reg()
134 static void ems_pci_v1_post_irq(const struct sja1000_priv *priv) in ems_pci_v1_post_irq()
143 static u8 ems_pci_v2_read_reg(const struct sja1000_priv *priv, int port) in ems_pci_v2_read_reg()
148 static void ems_pci_v2_write_reg(const struct sja1000_priv *priv, in ems_pci_v2_write_reg()
154 static void ems_pci_v2_post_irq(const struct sja1000_priv *priv) in ems_pci_v2_post_irq()
165 static inline int ems_pci_check_chan(const struct sja1000_priv *priv) in ems_pci_check_chan()
224 struct sja1000_priv *priv; in ems_pci_add_card()
Dkvaser_pci.c118 static u8 kvaser_pci_read_reg(const struct sja1000_priv *priv, int port) in kvaser_pci_read_reg()
123 static void kvaser_pci_write_reg(const struct sja1000_priv *priv, in kvaser_pci_write_reg()
131 struct sja1000_priv *priv = netdev_priv(dev); in kvaser_pci_disable_irq()
143 struct sja1000_priv *priv = netdev_priv(dev); in kvaser_pci_enable_irq()
174 struct sja1000_priv *priv; in kvaser_pci_del_chan()
215 struct sja1000_priv *priv; in kvaser_pci_add_chan()
246 struct sja1000_priv *master_priv = netdev_priv(*master_dev); in kvaser_pci_add_chan()
295 struct sja1000_priv *priv; in kvaser_pci_init_one()
Dsja1000_isa.c80 static u8 sja1000_isa_mem_read_reg(const struct sja1000_priv *priv, int reg) in sja1000_isa_mem_read_reg()
85 static void sja1000_isa_mem_write_reg(const struct sja1000_priv *priv, in sja1000_isa_mem_write_reg()
91 static u8 sja1000_isa_port_read_reg(const struct sja1000_priv *priv, int reg) in sja1000_isa_port_read_reg()
96 static void sja1000_isa_port_write_reg(const struct sja1000_priv *priv, in sja1000_isa_port_write_reg()
102 static u8 sja1000_isa_port_read_reg_indirect(const struct sja1000_priv *priv, in sja1000_isa_port_read_reg_indirect()
116 static void sja1000_isa_port_write_reg_indirect(const struct sja1000_priv *priv, in sja1000_isa_port_write_reg_indirect()
130 struct sja1000_priv *priv; in sja1000_isa_probe()
238 struct sja1000_priv *priv = netdev_priv(dev); in sja1000_isa_remove()
Dtscan1.c79 static u8 tscan1_read(const struct sja1000_priv *priv, int reg) in tscan1_read()
85 static void tscan1_write(const struct sja1000_priv *priv, int reg, u8 val) in tscan1_write()
94 struct sja1000_priv *priv; in tscan1_probe()
177 struct sja1000_priv *priv; in tscan1_remove()
Dpeak_pci.c163 static void peak_pci_write_reg(const struct sja1000_priv *priv,
401 static void peak_pciec_write_reg(const struct sja1000_priv *priv, in peak_pciec_write_reg()
439 struct sja1000_priv *priv = netdev_priv(dev); in peak_pciec_probe()
446 struct sja1000_priv *prev_priv = netdev_priv(chan->prev_dev); in peak_pciec_probe()
532 static u8 peak_pci_read_reg(const struct sja1000_priv *priv, int port) in peak_pci_read_reg()
537 static void peak_pci_write_reg(const struct sja1000_priv *priv, in peak_pci_write_reg()
543 static void peak_pci_post_irq(const struct sja1000_priv *priv) in peak_pci_post_irq()
556 struct sja1000_priv *priv; in peak_pci_probe()
729 struct sja1000_priv *priv = netdev_priv(dev); in peak_pci_remove()
Dems_pcmcia.c79 static u8 ems_pcmcia_read_reg(const struct sja1000_priv *priv, int port) in ems_pcmcia_read_reg()
84 static void ems_pcmcia_write_reg(const struct sja1000_priv *priv, int port, in ems_pcmcia_write_reg()
126 static inline int ems_pcmcia_check_chan(struct sja1000_priv *priv) in ems_pcmcia_check_chan()
171 struct sja1000_priv *priv; in ems_pcmcia_add_card()
Dplx_pci.c382 static u8 plx_pci_read_reg(const struct sja1000_priv *priv, int port) in plx_pci_read_reg()
387 static void plx_pci_write_reg(const struct sja1000_priv *priv, int port, u8 val) in plx_pci_write_reg()
397 static inline int plx_pci_check_sja1000(const struct sja1000_priv *priv) in plx_pci_check_sja1000()
531 struct sja1000_priv *priv; in plx_pci_del_card()
574 struct sja1000_priv *priv; in plx_pci_add_card()
Dpeak_pcmcia.c185 static u8 pcan_read_canreg(const struct sja1000_priv *priv, int port) in pcan_read_canreg()
193 static void pcan_write_canreg(const struct sja1000_priv *priv, int port, u8 v) in pcan_write_canreg()
509 static inline int pcan_channel_present(struct sja1000_priv *priv) in pcan_channel_present()
541 struct sja1000_priv *priv; in pcan_add_channels()