Lines Matching refs:channel_data
110 struct channel_data { struct
120 char *(*setup_rx)(struct channel_data *channel, int size); argument
122 int (*rx_done)(struct channel_data *channel); argument
124 int (*tx_done)(struct channel_data *channel, int size); argument
159 struct channel_data *rxchan; argument
162 struct channel_data *chan;
273 static void cosa_enable_rx(struct channel_data *chan);
274 static void cosa_disable_rx(struct channel_data *chan);
275 static int cosa_start_tx(struct channel_data *channel, char *buf, int size);
277 static int cosa_dma_able(struct channel_data *chan, char *buf, int data);
286 static char *cosa_net_setup_rx(struct channel_data *channel, int size);
287 static int cosa_net_rx_done(struct channel_data *channel);
288 static int cosa_net_tx_done(struct channel_data *channel, int size);
292 static char *chrdev_setup_rx(struct channel_data *channel, int size);
293 static int chrdev_rx_done(struct channel_data *channel);
294 static int chrdev_tx_done(struct channel_data *channel, int size);
353 static inline struct channel_data* dev_to_chan(struct net_device *dev) in dev_to_chan()
355 return (struct channel_data *)dev_to_hdlc(dev)->priv; in dev_to_chan()
562 cosa->chan = kcalloc(cosa->nchannels, sizeof(struct channel_data), GFP_KERNEL); in cosa_probe()
569 struct channel_data *chan = &cosa->chan[i]; in cosa_probe()
636 struct channel_data *chan = dev_to_chan(dev); in cosa_net_open()
676 struct channel_data *chan = dev_to_chan(dev); in cosa_net_tx()
687 struct channel_data *chan = dev_to_chan(dev); in cosa_net_timeout()
706 struct channel_data *chan = dev_to_chan(dev); in cosa_net_close()
727 static char *cosa_net_setup_rx(struct channel_data *chan, int size) in cosa_net_setup_rx()
744 static int cosa_net_rx_done(struct channel_data *chan) in cosa_net_rx_done()
763 static int cosa_net_tx_done(struct channel_data *chan, int size) in cosa_net_tx_done()
786 struct channel_data *chan = file->private_data; in cosa_read()
837 static char *chrdev_setup_rx(struct channel_data *chan, int size) in chrdev_setup_rx()
844 static int chrdev_rx_done(struct channel_data *chan) in chrdev_rx_done()
860 struct channel_data *chan = file->private_data; in cosa_write()
915 static int chrdev_tx_done(struct channel_data *chan, int size) in chrdev_tx_done()
935 struct channel_data *chan; in cosa_open()
978 struct channel_data *channel = file->private_data; in cosa_release()
1142 struct channel_data *channel, unsigned int cmd, unsigned long arg) in cosa_ioctl_common()
1189 struct channel_data *chan = dev_to_chan(dev); in cosa_net_ioctl()
1200 struct channel_data *channel = file->private_data; in cosa_chardev_ioctl()
1218 static void cosa_enable_rx(struct channel_data *chan) in cosa_enable_rx()
1226 static void cosa_disable_rx(struct channel_data *chan) in cosa_disable_rx()
1240 static int cosa_start_tx(struct channel_data *chan, char *buf, int len) in cosa_start_tx()
1371 static int cosa_dma_able(struct channel_data *chan, char *buf, int len) in cosa_dma_able()
1902 struct channel_data *chan = cosa->chan+cosa->txchan; in eot_interrupt()