• Home
  • Raw
  • Download

Lines Matching refs:tsk

53 	struct bcom_task *tsk;  in bcom_task_alloc()  local
75 tsk = kzalloc(sizeof(struct bcom_task) + priv_size, GFP_KERNEL); in bcom_task_alloc()
76 if (!tsk) in bcom_task_alloc()
79 tsk->tasknum = tasknum; in bcom_task_alloc()
81 tsk->priv = (void*)tsk + sizeof(struct bcom_task); in bcom_task_alloc()
84 tsk->irq = irq_of_parse_and_map(bcom_eng->ofnode, tsk->tasknum); in bcom_task_alloc()
85 if (!tsk->irq) in bcom_task_alloc()
90 tsk->cookie = kmalloc_array(bd_count, sizeof(void *), in bcom_task_alloc()
92 if (!tsk->cookie) in bcom_task_alloc()
95 tsk->bd = bcom_sram_alloc(bd_count * bd_size, 4, &tsk->bd_pa); in bcom_task_alloc()
96 if (!tsk->bd) in bcom_task_alloc()
98 memset_io(tsk->bd, 0x00, bd_count * bd_size); in bcom_task_alloc()
100 tsk->num_bd = bd_count; in bcom_task_alloc()
101 tsk->bd_size = bd_size; in bcom_task_alloc()
104 return tsk; in bcom_task_alloc()
107 if (tsk) { in bcom_task_alloc()
108 if (tsk->irq) in bcom_task_alloc()
109 irq_dispose_mapping(tsk->irq); in bcom_task_alloc()
110 bcom_sram_free(tsk->bd); in bcom_task_alloc()
111 kfree(tsk->cookie); in bcom_task_alloc()
112 kfree(tsk); in bcom_task_alloc()
122 bcom_task_free(struct bcom_task *tsk) in bcom_task_free() argument
125 bcom_disable_task(tsk->tasknum); in bcom_task_free()
128 bcom_eng->tdt[tsk->tasknum].start = 0; in bcom_task_free()
129 bcom_eng->tdt[tsk->tasknum].stop = 0; in bcom_task_free()
132 irq_dispose_mapping(tsk->irq); in bcom_task_free()
133 bcom_sram_free(tsk->bd); in bcom_task_free()
134 kfree(tsk->cookie); in bcom_task_free()
135 kfree(tsk); in bcom_task_free()
237 bcom_enable(struct bcom_task *tsk) in bcom_enable() argument
239 bcom_enable_task(tsk->tasknum); in bcom_enable()
244 bcom_disable(struct bcom_task *tsk) in bcom_disable() argument
246 bcom_disable_task(tsk->tasknum); in bcom_disable()