Lines Matching refs:entry
275 struct v2p_entry *entry = container_of(kref, struct v2p_entry, kref);
276 struct scsiback_tpg *tpg = entry->tpg;
282 kfree(entry);
593 struct v2p_entry *entry;
598 list_for_each_entry(entry, head, l) {
599 if ((entry->v.chn == v->chn) &&
600 (entry->v.tgt == v->tgt) &&
601 (entry->v.lun == v->lun)) {
602 kref_get(&entry->kref);
606 entry = NULL;
610 return entry;
843 Check for a translation entry being present
849 struct v2p_entry *entry;
851 list_for_each_entry(entry, head, l)
852 if ((entry->v.chn == v->chn) &&
853 (entry->v.tgt == v->tgt) &&
854 (entry->v.lun == v->lun))
855 return entry;
861 Add a new translation entry
933 /* Create a new translation entry and add to the list */
954 static void __scsiback_del_translation_entry(struct v2p_entry *entry)
956 list_del(&entry->l);
957 kref_put(&entry->kref, scsiback_free_translation_entry);
961 Delete the translation entry specified
966 struct v2p_entry *entry;
971 /* Find out the translation entry specified */
972 entry = scsiback_chk_translation_entry(info, v);
973 if (entry)
974 __scsiback_del_translation_entry(entry);
985 struct v2p_entry *entry;
991 entry = scsiback_chk_translation_entry(info, vir);
993 if (entry)
1177 Release the translation entry specfied
1181 struct v2p_entry *entry, *tmp;
1187 list_for_each_entry_safe(entry, tmp, head, l)
1188 __scsiback_del_translation_entry(entry);