Lines Matching refs:dat
925 int add_lun_to_update_list(char *lun_path, struct update_data *dat) in add_lun_to_update_list() argument
929 if (!lun_path || !dat){ in add_lun_to_update_list()
940 if (dat->num_valid_entries == 0) { in add_lun_to_update_list()
945 strlcpy(dat->lun_list[0], lun_path, in add_lun_to_update_list()
947 dat->num_valid_entries = 1; in add_lun_to_update_list()
949 for (i = 0; (i < dat->num_valid_entries) && in add_lun_to_update_list()
950 (dat->num_valid_entries < MAX_LUNS - 1); i++) { in add_lun_to_update_list()
953 if (!strncmp(lun_path,dat->lun_list[i], in add_lun_to_update_list()
954 strlen(dat->lun_list[i]))) { in add_lun_to_update_list()
962 dat->num_valid_entries); in add_lun_to_update_list()
964 strlcpy(dat->lun_list[dat->num_valid_entries], lun_path, in add_lun_to_update_list()
966 dat->num_valid_entries++; in add_lun_to_update_list()