• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/scsi/

Lines Matching defs:tcmd

84 	struct scsi_tgt_cmd *tcmd;
90 tcmd = kmem_cache_alloc(scsi_tgt_cmd_cache, GFP_ATOMIC);
91 if (!tcmd)
116 rq->end_io_data = tcmd;
118 tcmd->rq = rq;
125 kmem_cache_free(scsi_tgt_cmd_cache, tcmd);
149 struct scsi_tgt_cmd *tcmd = rq->end_io_data;
152 kmem_cache_free(scsi_tgt_cmd_cache, tcmd);
167 struct scsi_tgt_cmd *tcmd = cmd->request->end_io_data;
170 list_del(&tcmd->hash_list);
174 static void scsi_unmap_user_pages(struct scsi_tgt_cmd *tcmd)
176 blk_rq_unmap_user(tcmd->bio);
181 struct scsi_tgt_cmd *tcmd =
183 struct scsi_cmnd *cmd = tcmd->rq->special;
187 scsi_unmap_user_pages(tcmd);
188 tcmd->rq->bio = NULL;
192 static void init_scsi_tgt_cmd(struct request *rq, struct scsi_tgt_cmd *tcmd,
199 tcmd->itn_id = itn_id;
200 tcmd->tag = tag;
201 tcmd->bio = NULL;
202 INIT_WORK(&tcmd->work, scsi_tgt_cmd_destroy);
205 list_add(&tcmd->hash_list, head);
271 struct scsi_tgt_cmd *tcmd, *n;
277 list_for_each_entry_safe(tcmd, n, &qdata->cmd_hash[i],
279 list_del(&tcmd->hash_list);
280 list_add(&tcmd->hash_list, &cmds);
287 tcmd = list_entry(cmds.next, struct scsi_tgt_cmd, hash_list);
288 list_del(&tcmd->hash_list);
289 cmd = tcmd->rq->special;
292 scsi_tgt_cmd_destroy(&tcmd->work);
313 struct scsi_tgt_cmd *tcmd = cmd->request->end_io_data;
316 init_scsi_tgt_cmd(cmd->request, tcmd, itn_id, tag);
331 struct scsi_tgt_cmd *tcmd = cmd->request->end_io_data;
335 scsi_tgt_uspace_send_status(cmd, tcmd->itn_id, tcmd->tag);
339 queue_work(scsi_tgtd, &tcmd->work);
359 static int scsi_map_user_pages(struct scsi_tgt_cmd *tcmd, struct scsi_cmnd *cmd,
382 tcmd->bio = rq->bio;
397 scsi_unmap_user_pages(tcmd);
416 struct scsi_tgt_cmd *tcmd;
423 tcmd = cmd->request->end_io_data;
424 scsi_tgt_cmd_destroy(&tcmd->work);
433 struct scsi_tgt_cmd *tcmd;
438 list_for_each_entry(tcmd, head, hash_list) {
439 if (tcmd->tag == tag) {
440 rq = tcmd->rq;
441 list_del(&tcmd->hash_list);
457 struct scsi_tgt_cmd *tcmd;
496 tcmd = cmd->request->end_io_data;
517 head = &qdata->cmd_hash[cmd_hashfn(tcmd->tag)];
520 list_add(&tcmd->hash_list, head);