Lines Matching refs:maj
617 int maj; in get_cached_n_to_m_file() local
656 maj = atoi(entry); in get_cached_n_to_m_file()
657 if (maj > size) in get_cached_n_to_m_file()
658 size = maj; in get_cached_n_to_m_file()
700 maj = atoi(entry); in get_cached_n_to_m_file()
701 if ((ptr->cached_file[maj] = strdup(drv)) == NULL) { in get_cached_n_to_m_file()
707 (void) strcpy(ptr->cached_file[maj], drv); in get_cached_n_to_m_file()
713 for (maj = 0; maj <= ptr->size; maj++) in get_cached_n_to_m_file()
714 free(ptr->cached_file[maj]); in get_cached_n_to_m_file()
758 int maj; in get_name_to_major_entry() local
775 for (maj = 0; maj < size; maj++) { in get_name_to_major_entry()
776 if ((n_to_m_cache[maj] != NULL) && in get_name_to_major_entry()
777 (strcmp(driver_name, n_to_m_cache[maj]) == 0)) { in get_name_to_major_entry()
778 *major_no = maj; in get_name_to_major_entry()
782 if (maj >= size) in get_name_to_major_entry()