Lines Matching defs:channel

30  * It has a 16-bit SAB80166 CPU and can do up to 10 Mb/s per channel.
44 * for the COSA and SRP in one computer and allows each channel to work
52 * interested in the SMP and/or muliti-channel success/failure reports
92 /* Maximum length of the channel name */
95 /* Per-channel data structure */
99 int num; /* Number of the channel */
103 char name[COSA_MAX_NAME]; /* channel name */
107 char *(*setup_rx)(struct channel_data *channel, int size);
109 int (*rx_done)(struct channel_data *channel);
111 int (*tx_done)(struct channel_data *channel, int size);
170 * The lowest CARD_MINOR_BITS bits means the channel on the single card,
185 #define DRIVER_TXMAP_MASK 0x0c /* FIXME: 0xfc for 8-channel version */
197 #undef DEBUG_DATA //1 /* Dump the data read or written to the channel */
262 static int cosa_start_tx(struct channel_data *channel, char *buf, int size);
273 static char *cosa_net_setup_rx(struct channel_data *channel, int size);
274 static int cosa_net_rx_done(struct channel_data *channel);
275 static int cosa_net_tx_done(struct channel_data *channel, int size);
279 static char *chrdev_setup_rx(struct channel_data *channel, int size);
280 static int chrdev_rx_done(struct channel_data *channel);
281 static int chrdev_tx_done(struct channel_data *channel, int size);
402 /* Clean up the per-channel data */
404 /* Chardev driver has no alloc'd per-channel data */
547 /* Initialize the per-channel data */
968 struct channel_data *channel = file->private_data;
972 cosa = channel->cosa;
975 channel->usage--;
1133 struct channel_data *channel, unsigned int cmd, unsigned long arg)
1191 struct channel_data *channel = file->private_data;
1196 cosa = channel->cosa;
1197 ret = cosa_ioctl_common(cosa, channel, cmd, arg);
1653 * of channel we (OS) want to send packet for. For SRP we should probably
1656 * channel 0 or 1 doesn't want to receive data.
1662 * the TX interrupt but does not mark the channel as ready-to-transmit.
1678 pr_warn("%s: No channel wants data in TX IRQ. Expect DMA timeout.\n",
1694 /* in second pass, accept first ready-to-TX channel */
1699 "to not-ready channel %d\n",
1843 pr_warn("%s: rx for unknown channel (0x%04x)\n",
1858 pr_info("cosa%d: rejecting packet on channel %d\n",
1912 /* Packet for unknown channel? */