Lines Matching refs:tasknum
118 bcom_disable_task(tsk->tasknum); in bcom_fec_rx_reset()
121 var = (struct bcom_fec_rx_var *) bcom_task_var(tsk->tasknum); in bcom_fec_rx_reset()
122 inc = (struct bcom_fec_rx_inc *) bcom_task_inc(tsk->tasknum); in bcom_fec_rx_reset()
124 if (bcom_load_image(tsk->tasknum, bcom_fec_rx_task)) in bcom_fec_rx_reset()
128 offsetof(struct mpc52xx_sdma, tcr[tsk->tasknum]); in bcom_fec_rx_reset()
146 bcom_set_task_pragma(tsk->tasknum, BCOM_FEC_RX_BD_PRAGMA); in bcom_fec_rx_reset()
147 bcom_set_task_auto_start(tsk->tasknum, tsk->tasknum); in bcom_fec_rx_reset()
151 out_be32(&bcom_eng->regs->IntPend, 1<<tsk->tasknum); /* Clear ints */ in bcom_fec_rx_reset()
170 static u32 *self_modified_drd(int tasknum) in self_modified_drd() argument
177 num_descs = bcom_task_num_descs(tasknum); in self_modified_drd()
178 desc = bcom_task_desc(tasknum) + num_descs - 1; in self_modified_drd()
219 bcom_disable_task(tsk->tasknum); in bcom_fec_tx_reset()
222 var = (struct bcom_fec_tx_var *) bcom_task_var(tsk->tasknum); in bcom_fec_tx_reset()
223 inc = (struct bcom_fec_tx_inc *) bcom_task_inc(tsk->tasknum); in bcom_fec_tx_reset()
225 if (bcom_load_image(tsk->tasknum, bcom_fec_tx_task)) in bcom_fec_tx_reset()
229 offsetof(struct mpc52xx_sdma, tcr[tsk->tasknum]); in bcom_fec_tx_reset()
231 var->DRD = bcom_sram_va2pa(self_modified_drd(tsk->tasknum)); in bcom_fec_tx_reset()
247 bcom_set_task_pragma(tsk->tasknum, BCOM_FEC_TX_BD_PRAGMA); in bcom_fec_tx_reset()
248 bcom_set_task_auto_start(tsk->tasknum, tsk->tasknum); in bcom_fec_tx_reset()
252 out_be32(&bcom_eng->regs->IntPend, 1<<tsk->tasknum); /* Clear ints */ in bcom_fec_tx_reset()