Lines Matching defs:channel
70 static int sec_channel_reset(struct sec_softc *sc, int channel, int full);
80 int channel);
572 /* Check each channel for error */
578 "I/O error on channel %i!\n", i);
587 /* Do partial channel reset */
668 sec_channel_reset(struct sec_softc *sc, int channel, int full)
675 reg = SEC_READ(sc, SEC_CHAN_CCR(channel));
676 SEC_WRITE(sc, SEC_CHAN_CCR(channel), reg | bit);
678 while (SEC_READ(sc, SEC_CHAN_CCR(channel)) & bit) {
684 "channel reset!\n");
701 SEC_WRITE(sc, SEC_CHAN_CCR(channel), reg);
969 int channel = 0;
977 channel = SEC_EUASR_AFEU(reg);
980 channel = SEC_EUASR_DEU(reg);
984 channel = SEC_EUASR_MDEU(reg);
987 channel = SEC_EUASR_RNGU(reg);
990 channel = SEC_EUASR_PKEU(reg);
993 channel = SEC_EUASR_AESU(reg);
996 channel = SEC_EUASR_KEU(reg);
999 channel = SEC_EUASR_CRCU(reg);
1003 return (channel - 1);
1007 sec_enqueue_desc(struct sec_softc *sc, struct sec_desc *desc, int channel)
1015 /* Find free channel if have not got one */
1016 if (channel < 0) {
1018 reg = SEC_READ(sc, SEC_CHAN_CSR(channel));
1021 channel = i;
1027 /* There is no free channel */
1028 if (channel < 0)
1031 /* Check FIFO level on selected channel */
1032 reg = SEC_READ(sc, SEC_CHAN_CSR(channel));
1046 /* Enqueue descriptor in channel */
1047 SEC_WRITE(sc, SEC_CHAN_FF(channel), desc->sd_desc_paddr);
1049 return (channel);
1068 * Both EU are used by the same channel.
1069 * Enqueue descriptor in channel used by busy EUs.
1080 * Enqueue descriptor in channel used by busy EU.
1092 * Enqueue descriptor in first free channel.