Lines Matching refs:it
883 struct dfs_cache_tgt_iterator *it, *nit; in get_targets() local
889 it = kzalloc(sizeof(*it), GFP_ATOMIC); in get_targets()
890 if (!it) { in get_targets()
895 it->it_name = kstrdup(t->name, GFP_ATOMIC); in get_targets()
896 if (!it->it_name) { in get_targets()
897 kfree(it); in get_targets()
901 it->it_path_consumed = t->path_consumed; in get_targets()
904 list_add(&it->it_list, head); in get_targets()
906 list_add_tail(&it->it_list, head); in get_targets()
914 list_for_each_entry_safe(it, nit, head, it_list) { in get_targets()
915 list_del(&it->it_list); in get_targets()
916 kfree(it->it_name); in get_targets()
917 kfree(it); in get_targets()
1047 const struct dfs_cache_tgt_iterator *it) in dfs_cache_update_tgthint() argument
1074 if (likely(!strcasecmp(it->it_name, t->name))) in dfs_cache_update_tgthint()
1078 if (!strcasecmp(t->name, it->it_name)) { in dfs_cache_update_tgthint()
1081 it->it_name); in dfs_cache_update_tgthint()
1107 int dfs_cache_noreq_update_tgthint(const char *path, const struct dfs_cache_tgt_iterator *it) in dfs_cache_noreq_update_tgthint() argument
1113 if (!it) in dfs_cache_noreq_update_tgthint()
1129 if (unlikely(!strcasecmp(it->it_name, t->name))) in dfs_cache_noreq_update_tgthint()
1133 if (!strcasecmp(t->name, it->it_name)) { in dfs_cache_noreq_update_tgthint()
1136 it->it_name); in dfs_cache_noreq_update_tgthint()
1156 int dfs_cache_get_tgt_referral(const char *path, const struct dfs_cache_tgt_iterator *it, in dfs_cache_get_tgt_referral() argument
1162 if (!it || !ref) in dfs_cache_get_tgt_referral()
1175 cifs_dbg(FYI, "%s: target name: %s\n", __func__, it->it_name); in dfs_cache_get_tgt_referral()
1177 rc = setup_referral(path, ce, ref, it->it_name); in dfs_cache_get_tgt_referral()
1242 int dfs_cache_get_tgt_share(char *path, const struct dfs_cache_tgt_iterator *it, char **share, in dfs_cache_get_tgt_share() argument
1249 if (!it || !path || !share || !prefix || strlen(path) < it->it_path_consumed) in dfs_cache_get_tgt_share()
1255 sep = it->it_name[0]; in dfs_cache_get_tgt_share()
1259 s = strchr(it->it_name + 1, sep); in dfs_cache_get_tgt_share()
1267 *share = kstrndup(it->it_name, s - it->it_name, GFP_KERNEL); in dfs_cache_get_tgt_share()
1275 p = path + it->it_path_consumed; in dfs_cache_get_tgt_share()
1280 plen1 = it->it_name + strlen(it->it_name) - s; in dfs_cache_get_tgt_share()
1346 struct dfs_cache_tgt_iterator *it; in mark_for_reconnect_if_needed() local
1349 for (it = dfs_cache_get_tgt_iterator(tl); it; it = dfs_cache_get_next_tgt(tl, it)) { in mark_for_reconnect_if_needed()
1351 if (target_share_equal(tcon->ses->server, dfs_cache_get_tgt_name(it), in mark_for_reconnect_if_needed()