• Home
  • Raw
  • Download

Lines Matching refs:us_info

44 	struct ucc_slow_info *us_info = uccs->us_info;  in ucc_slow_graceful_stop_tx()  local
47 id = ucc_slow_get_qe_cr_subblock(us_info->ucc_num); in ucc_slow_graceful_stop_tx()
55 struct ucc_slow_info *us_info = uccs->us_info; in ucc_slow_stop_tx() local
58 id = ucc_slow_get_qe_cr_subblock(us_info->ucc_num); in ucc_slow_stop_tx()
65 struct ucc_slow_info *us_info = uccs->us_info; in ucc_slow_restart_tx() local
68 id = ucc_slow_get_qe_cr_subblock(us_info->ucc_num); in ucc_slow_restart_tx()
119 int ucc_slow_init(struct ucc_slow_info * us_info, struct ucc_slow_private ** uccs_ret) in ucc_slow_init() argument
130 if (!us_info) in ucc_slow_init()
134 if ((us_info->ucc_num < 0) || (us_info->ucc_num > UCC_MAX_NUM - 1)) { in ucc_slow_init()
145 if ((!us_info->rfw) && in ucc_slow_init()
146 (us_info->max_rx_buf_length & (UCC_SLOW_MRBLR_ALIGNMENT - 1))) { in ucc_slow_init()
162 uccs->us_info = us_info; in ucc_slow_init()
164 uccs->us_regs = ioremap(us_info->regs, sizeof(struct ucc_slow)); in ucc_slow_init()
183 id = ucc_slow_get_qe_cr_subblock(us_info->ucc_num); in ucc_slow_init()
184 qe_issue_cmd(QE_ASSIGN_PAGE_TO_DEVICE, id, us_info->protocol, in ucc_slow_init()
190 ret = ucc_set_type(us_info->ucc_num, UCC_SPEED_TYPE_SLOW); in ucc_slow_init()
197 qe_iowrite16be(us_info->max_rx_buf_length, &uccs->us_pram->mrblr); in ucc_slow_init()
203 qe_muram_alloc(us_info->rx_bd_ring_len * sizeof(struct qe_bd), in ucc_slow_init()
207 us_info->rx_bd_ring_len); in ucc_slow_init()
213 qe_muram_alloc(us_info->tx_bd_ring_len * sizeof(struct qe_bd), in ucc_slow_init()
223 for (i = 0; i < us_info->tx_bd_ring_len - 1; i++) { in ucc_slow_init()
236 for (i = 0; i < us_info->rx_bd_ring_len - 1; i++) { in ucc_slow_init()
249 gumr = us_info->tcrc; in ucc_slow_init()
250 if (us_info->cdp) in ucc_slow_init()
252 if (us_info->ctsp) in ucc_slow_init()
254 if (us_info->cds) in ucc_slow_init()
256 if (us_info->ctss) in ucc_slow_init()
258 if (us_info->tfl) in ucc_slow_init()
260 if (us_info->rfw) in ucc_slow_init()
262 if (us_info->txsy) in ucc_slow_init()
264 if (us_info->rtsm) in ucc_slow_init()
269 gumr = (u32)us_info->tdcr | (u32)us_info->rdcr | (u32)us_info->tenc | in ucc_slow_init()
270 (u32)us_info->renc | (u32)us_info->diag | (u32)us_info->mode; in ucc_slow_init()
271 if (us_info->tci) in ucc_slow_init()
273 if (us_info->rinv) in ucc_slow_init()
275 if (us_info->tinv) in ucc_slow_init()
277 if (us_info->tend) in ucc_slow_init()
294 ucc_set_qe_mux_grant(us_info->ucc_num, us_info->grant_support); in ucc_slow_init()
296 ucc_set_qe_mux_bkpt(us_info->ucc_num, us_info->brkpt_support); in ucc_slow_init()
298 ucc_set_qe_mux_tsa(us_info->ucc_num, us_info->tsa); in ucc_slow_init()
300 if (!us_info->tsa) { in ucc_slow_init()
302 if (ucc_set_qe_mux_rxtx(us_info->ucc_num, us_info->rx_clock, in ucc_slow_init()
310 if (ucc_set_qe_mux_rxtx(us_info->ucc_num, us_info->tx_clock, in ucc_slow_init()
320 qe_iowrite16be(us_info->uccm_mask, &us_regs->uccm); in ucc_slow_init()
330 if (us_info->init_tx && us_info->init_rx) in ucc_slow_init()
332 else if (us_info->init_tx) in ucc_slow_init()
337 qe_issue_cmd(command, id, us_info->protocol, 0); in ucc_slow_init()