Lines Matching refs:entry
273 struct v2p_entry *entry = container_of(kref, struct v2p_entry, kref);
274 struct scsiback_tpg *tpg = entry->tpg;
280 kfree(entry);
652 struct v2p_entry *entry;
657 list_for_each_entry(entry, head, l) {
658 if ((entry->v.chn == v->chn) &&
659 (entry->v.tgt == v->tgt) &&
660 (entry->v.lun == v->lun)) {
661 kref_get(&entry->kref);
665 entry = NULL;
669 return entry;
902 Check for a translation entry being present
908 struct v2p_entry *entry;
910 list_for_each_entry(entry, head, l)
911 if ((entry->v.chn == v->chn) &&
912 (entry->v.tgt == v->tgt) &&
913 (entry->v.lun == v->lun))
914 return entry;
920 Add a new translation entry
992 /* Create a new translation entry and add to the list */
1014 Delete the translation entry specified
1019 struct v2p_entry *entry;
1023 /* Find out the translation entry specified */
1024 entry = scsiback_chk_translation_entry(info, v);
1025 if (entry)
1026 list_del(&entry->l);
1030 if (!entry)
1033 kref_put(&entry->kref, scsiback_free_translation_entry);
1040 struct v2p_entry *entry;
1046 entry = scsiback_chk_translation_entry(info, vir);
1048 if (entry)
1232 Release the translation entry specfied
1236 struct v2p_entry *entry, *tmp;
1247 list_for_each_entry_safe(entry, tmp, &tmp_list, l) {
1248 list_del(&entry->l);
1249 kref_put(&entry->kref, scsiback_free_translation_entry);