• Home
  • Raw
  • Download

Lines Matching refs:tsk

60 	struct bcom_task *tsk;  in bcom_ata_init()  local
67 tsk = bcom_task_alloc(queue_len, sizeof(struct bcom_ata_bd), 0); in bcom_ata_init()
68 if (!tsk) in bcom_ata_init()
71 tsk->flags = BCOM_FLAGS_NONE; in bcom_ata_init()
73 bcom_ata_reset_bd(tsk); in bcom_ata_init()
75 var = (struct bcom_ata_var *) bcom_task_var(tsk->tasknum); in bcom_ata_init()
76 inc = (struct bcom_ata_inc *) bcom_task_inc(tsk->tasknum); in bcom_ata_init()
78 if (bcom_load_image(tsk->tasknum, bcom_ata_task)) { in bcom_ata_init()
79 bcom_task_free(tsk); in bcom_ata_init()
84 offsetof(struct mpc52xx_sdma, tcr[tsk->tasknum]); in bcom_ata_init()
85 var->bd_base = tsk->bd_pa; in bcom_ata_init()
86 var->bd_last = tsk->bd_pa + ((tsk->num_bd-1) * tsk->bd_size); in bcom_ata_init()
87 var->bd_start = tsk->bd_pa; in bcom_ata_init()
91 bcom_set_task_pragma(tsk->tasknum, BCOM_ATA_PRAGMA); in bcom_ata_init()
92 bcom_set_task_auto_start(tsk->tasknum, tsk->tasknum); in bcom_ata_init()
97 out_be32(&bcom_eng->regs->IntPend, 1<<tsk->tasknum); /* Clear ints */ in bcom_ata_init()
99 return tsk; in bcom_ata_init()
103 void bcom_ata_rx_prepare(struct bcom_task *tsk) in bcom_ata_rx_prepare() argument
107 inc = (struct bcom_ata_inc *) bcom_task_inc(tsk->tasknum); in bcom_ata_rx_prepare()
113 bcom_set_initiator(tsk->tasknum, BCOM_INITIATOR_ATA_RX); in bcom_ata_rx_prepare()
117 void bcom_ata_tx_prepare(struct bcom_task *tsk) in bcom_ata_tx_prepare() argument
121 inc = (struct bcom_ata_inc *) bcom_task_inc(tsk->tasknum); in bcom_ata_tx_prepare()
127 bcom_set_initiator(tsk->tasknum, BCOM_INITIATOR_ATA_TX); in bcom_ata_tx_prepare()
131 void bcom_ata_reset_bd(struct bcom_task *tsk) in bcom_ata_reset_bd() argument
136 memset_io(tsk->bd, 0x00, tsk->num_bd * tsk->bd_size); in bcom_ata_reset_bd()
138 tsk->index = 0; in bcom_ata_reset_bd()
139 tsk->outdex = 0; in bcom_ata_reset_bd()
141 var = (struct bcom_ata_var *) bcom_task_var(tsk->tasknum); in bcom_ata_reset_bd()
146 void bcom_ata_release(struct bcom_task *tsk) in bcom_ata_release() argument
149 bcom_task_free(tsk); in bcom_ata_release()