Lines Matching refs:iue
52 struct iu_entry *iue;
64 for (i = 0, iue = q->items; i < max; i++) {
65 kfifo_in(&q->queue, (void *) &iue, sizeof(void *));
66 iue->sbuf = ring[i];
67 iue++;
165 struct iu_entry *iue = NULL;
167 if (kfifo_out_locked(&target->iu_queue.queue, (void *) &iue,
172 if (!iue)
173 return iue;
174 iue->target = target;
175 INIT_LIST_HEAD(&iue->ilist);
176 iue->flags = 0;
177 return iue;
181 void srp_iu_put(struct iu_entry *iue)
183 kfifo_in_locked(&iue->target->iu_queue.queue, (void *) &iue,
184 sizeof(void *), &iue->target->iu_queue.lock);
192 struct iu_entry *iue = NULL;
197 iue = (struct iu_entry *) sc->SCp.ptr;
200 dprintk("%p %u %u %d\n", iue, scsi_bufflen(sc),
203 nsg = dma_map_sg(iue->target->dev, sg, scsi_sg_count(sc),
206 printk("fail to map %p %d\n", iue, scsi_sg_count(sc));
216 dma_unmap_sg(iue->target->dev, sg, nsg, DMA_BIDIRECTIONAL);
226 struct iu_entry *iue = NULL;
234 iue = (struct iu_entry *) sc->SCp.ptr;
238 iue, scsi_bufflen(sc), id->len,
251 md = dma_alloc_coherent(iue->target->dev, id->table_desc.len,
274 nsg = dma_map_sg(iue->target->dev, sg, scsi_sg_count(sc),
277 eprintk("fail to map %p %d\n", iue, scsi_sg_count(sc));
288 dma_unmap_sg(iue->target->dev, sg, nsg, DMA_BIDIRECTIONAL);
292 dma_free_coherent(iue->target->dev, id->table_desc.len, md, token);