Lines Matching defs:tag
46 * pm8001_find_tag - from sas task to find out tag that belongs to this task
48 * @tag: the found tag associated with the task
50 static int pm8001_find_tag(struct sas_task *task, u32 *tag)
55 *tag = ccb->ccb_tag;
62 * pm8001_tag_free - free the no more needed tag
64 * @tag: the found tag associated with the task
66 void pm8001_tag_free(struct pm8001_hba_info *pm8001_ha, u32 tag)
71 if (tag >= PM8001_RESERVE_SLOT)
75 __clear_bit(tag, bitmap);
80 * pm8001_tag_alloc - allocate a empty tag for task used.
82 * @tag_out: the found empty tag .
88 unsigned int tag;
91 tag = find_first_zero_bit(bitmap, PM8001_RESERVE_SLOT);
92 if (tag >= PM8001_RESERVE_SLOT) {
96 __set_bit(tag, bitmap);
100 *tag_out = tag;
317 u32 pm8001_get_ncq_tag(struct sas_task *task, u32 *tag)
322 *tag = qc->tag;
954 u32 tag = 0xdeadbeef;
965 rc = pm8001_find_tag(task, &tag);
972 rc = sas_query_task(task, tag);
996 u32 tag;
1018 ret = pm8001_find_tag(task, &tag);
1020 pm8001_info(pm8001_ha, "no tag for task:%p\n", task);
1035 rc = sas_abort_task(task, tag);
1036 sas_execute_internal_abort_single(dev, tag, 0, NULL);
1132 ret = sas_execute_internal_abort_single(dev, tag, 0, NULL);
1137 rc = sas_execute_internal_abort_single(dev, tag, 0, NULL);