• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/arch/powerpc/sysdev/qe_lib/

Lines Matching refs:uccs

45 void ucc_slow_poll_transmitter_now(struct ucc_slow_private * uccs)
47 out_be16(&uccs->us_regs->utodr, UCC_SLOW_TOD);
50 void ucc_slow_graceful_stop_tx(struct ucc_slow_private * uccs)
52 struct ucc_slow_info *us_info = uccs->us_info;
60 void ucc_slow_stop_tx(struct ucc_slow_private * uccs)
62 struct ucc_slow_info *us_info = uccs->us_info;
69 void ucc_slow_restart_tx(struct ucc_slow_private * uccs)
71 struct ucc_slow_info *us_info = uccs->us_info;
78 void ucc_slow_enable(struct ucc_slow_private * uccs, enum comm_dir mode)
83 us_regs = uccs->us_regs;
89 uccs->enabled_tx = 1;
93 uccs->enabled_rx = 1;
98 void ucc_slow_disable(struct ucc_slow_private * uccs, enum comm_dir mode)
103 us_regs = uccs->us_regs;
109 uccs->enabled_tx = 0;
113 uccs->enabled_rx = 0;
120 struct ucc_slow_private *uccs;
150 uccs = kzalloc(sizeof(struct ucc_slow_private), GFP_KERNEL);
151 if (!uccs) {
157 uccs->us_info = us_info;
159 uccs->us_regs = ioremap(us_info->regs, sizeof(struct ucc_slow));
160 if (uccs->us_regs == NULL) {
165 uccs->saved_uccm = 0;
166 uccs->p_rx_frame = 0;
167 us_regs = uccs->us_regs;
168 uccs->p_ucce = (u16 *) & (us_regs->ucce);
169 uccs->p_uccm = (u16 *) & (us_regs->uccm);
171 uccs->rx_frames = 0;
172 uccs->tx_frames = 0;
173 uccs->rx_discarded = 0;
177 uccs->us_pram_offset =
179 if (IS_ERR_VALUE(uccs->us_pram_offset)) {
181 ucc_slow_free(uccs);
186 uccs->us_pram_offset);
188 uccs->us_pram = qe_muram_addr(uccs->us_pram_offset);
193 ucc_slow_free(uccs);
202 ucc_slow_free(uccs);
206 out_be16(&uccs->us_pram->mrblr, us_info->max_rx_buf_length);
208 INIT_LIST_HEAD(&uccs->confQ);
211 uccs->rx_base_offset =
214 if (IS_ERR_VALUE(uccs->rx_base_offset)) {
216 uccs->rx_base_offset = 0;
217 ucc_slow_free(uccs);
221 uccs->tx_base_offset =
224 if (IS_ERR_VALUE(uccs->tx_base_offset)) {
226 uccs->tx_base_offset = 0;
227 ucc_slow_free(uccs);
232 bd = uccs->confBd = uccs->tx_bd = qe_muram_addr(uccs->tx_base_offset);
245 bd = uccs->rx_bd = qe_muram_addr(uccs->rx_base_offset);
295 uccs->us_pram->tfcr = uccs->us_pram->rfcr =
299 out_be16(&uccs->us_pram->rbase, uccs->us_pram_offset);
300 out_be16(&uccs->us_pram->tbase, uccs->us_pram_offset);
316 ucc_slow_free(uccs);
324 ucc_slow_free(uccs);
349 *uccs_ret = uccs;
353 void ucc_slow_free(struct ucc_slow_private * uccs)
355 if (!uccs)
358 if (uccs->rx_base_offset)
359 qe_muram_free(uccs->rx_base_offset);
361 if (uccs->tx_base_offset)
362 qe_muram_free(uccs->tx_base_offset);
364 if (uccs->us_pram) {
365 qe_muram_free(uccs->us_pram_offset);
366 uccs->us_pram = NULL;
369 kfree(uccs);