Lines Matching refs:ei
38 static u32 read_mbr_sig(u8 devno, struct edd_info *ei, u32 *mbrsig) in read_mbr_sig() argument
46 sector_size = ei->params.bytes_per_sector; in read_mbr_sig()
73 static int get_edd_info(u8 devno, struct edd_info *ei) in get_edd_info() argument
77 memset(ei, 0, sizeof(*ei)); in get_edd_info()
93 ei->device = devno; in get_edd_info()
94 ei->version = oreg.ah; /* EDD version number */ in get_edd_info()
95 ei->interface_support = oreg.cx; /* EDD functionality subsets */ in get_edd_info()
99 ei->params.length = sizeof(ei->params); in get_edd_info()
101 ireg.si = (size_t)&ei->params; in get_edd_info()
112 ei->legacy_max_cylinder = oreg.ch + ((oreg.cl & 0xc0) << 2); in get_edd_info()
113 ei->legacy_max_head = oreg.dh; in get_edd_info()
114 ei->legacy_sectors_per_track = oreg.cl & 0x3f; in get_edd_info()
131 struct edd_info ei, *edp; in query_edd() local
165 if (!get_edd_info(devno, &ei) in query_edd()
167 memcpy(edp, &ei, sizeof(ei)); in query_edd()
172 if (do_mbr && !read_mbr_sig(devno, &ei, mbrptr++)) in query_edd()