Lines Matching refs:p

45 #define left (PAGE_SIZE - (p - buf) - 1)
124 char *p = buf; in edd_show_host_bus() local
135 p += scnprintf(p, left, "%c", info->params.host_bus_type[i]); in edd_show_host_bus()
137 p += scnprintf(p, left, " "); in edd_show_host_bus()
142 p += scnprintf(p, left, "\tbase_address: %x\n", in edd_show_host_bus()
147 p += scnprintf(p, left, in edd_show_host_bus()
155 p += scnprintf(p, left, in edd_show_host_bus()
160 p += scnprintf(p, left, "\tunknown: %llx\n", in edd_show_host_bus()
163 return (p - buf); in edd_show_host_bus()
170 char *p = buf; in edd_show_interface() local
181 p += scnprintf(p, left, "%c", info->params.interface_type[i]); in edd_show_interface()
183 p += scnprintf(p, left, " "); in edd_show_interface()
187 p += scnprintf(p, left, "\tdevice: %u lun: %u\n", in edd_show_interface()
191 p += scnprintf(p, left, "\tdevice: %u\n", in edd_show_interface()
194 p += scnprintf(p, left, "\tid: %u lun: %llu\n", in edd_show_interface()
198 p += scnprintf(p, left, "\tserial_number: %llx\n", in edd_show_interface()
201 p += scnprintf(p, left, "\teui: %llx\n", in edd_show_interface()
204 p += scnprintf(p, left, "\twwid: %llx lun: %llx\n", in edd_show_interface()
208 p += scnprintf(p, left, "\tidentity_tag: %llx\n", in edd_show_interface()
211 p += scnprintf(p, left, "\tidentity_tag: %x\n", in edd_show_interface()
214 p += scnprintf(p, left, "\tdevice: %u\n", in edd_show_interface()
217 p += scnprintf(p, left, "\tunknown: %llx %llx\n", in edd_show_interface()
222 return (p - buf); in edd_show_interface()
258 char *p = buf; in edd_show_version() local
265 p += scnprintf(p, left, "0x%02x\n", info->version); in edd_show_version()
266 return (p - buf); in edd_show_version()
272 char *p = buf; in edd_show_mbr_signature() local
273 p += scnprintf(p, left, "0x%08x\n", edev->mbr_signature); in edd_show_mbr_signature()
274 return (p - buf); in edd_show_mbr_signature()
281 char *p = buf; in edd_show_extensions() local
289 p += scnprintf(p, left, "Fixed disk access\n"); in edd_show_extensions()
292 p += scnprintf(p, left, "Device locking and ejecting\n"); in edd_show_extensions()
295 p += scnprintf(p, left, "Enhanced Disk Drive support\n"); in edd_show_extensions()
298 p += scnprintf(p, left, "64-bit extensions\n"); in edd_show_extensions()
300 return (p - buf); in edd_show_extensions()
307 char *p = buf; in edd_show_info_flags() local
315 p += scnprintf(p, left, "DMA boundary error transparent\n"); in edd_show_info_flags()
317 p += scnprintf(p, left, "geometry valid\n"); in edd_show_info_flags()
319 p += scnprintf(p, left, "removable\n"); in edd_show_info_flags()
321 p += scnprintf(p, left, "write verify\n"); in edd_show_info_flags()
323 p += scnprintf(p, left, "media change notification\n"); in edd_show_info_flags()
325 p += scnprintf(p, left, "lockable\n"); in edd_show_info_flags()
327 p += scnprintf(p, left, "no media present\n"); in edd_show_info_flags()
329 p += scnprintf(p, left, "use int13 fn50\n"); in edd_show_info_flags()
330 return (p - buf); in edd_show_info_flags()
337 char *p = buf; in edd_show_legacy_max_cylinder() local
344 p += scnprintf(p, left, "%u\n", info->legacy_max_cylinder); in edd_show_legacy_max_cylinder()
345 return (p - buf); in edd_show_legacy_max_cylinder()
352 char *p = buf; in edd_show_legacy_max_head() local
359 p += scnprintf(p, left, "%u\n", info->legacy_max_head); in edd_show_legacy_max_head()
360 return (p - buf); in edd_show_legacy_max_head()
367 char *p = buf; in edd_show_legacy_sectors_per_track() local
374 p += scnprintf(p, left, "%u\n", info->legacy_sectors_per_track); in edd_show_legacy_sectors_per_track()
375 return (p - buf); in edd_show_legacy_sectors_per_track()
382 char *p = buf; in edd_show_default_cylinders() local
389 p += scnprintf(p, left, "%u\n", info->params.num_default_cylinders); in edd_show_default_cylinders()
390 return (p - buf); in edd_show_default_cylinders()
397 char *p = buf; in edd_show_default_heads() local
404 p += scnprintf(p, left, "%u\n", info->params.num_default_heads); in edd_show_default_heads()
405 return (p - buf); in edd_show_default_heads()
412 char *p = buf; in edd_show_default_sectors_per_track() local
419 p += scnprintf(p, left, "%u\n", info->params.sectors_per_track); in edd_show_default_sectors_per_track()
420 return (p - buf); in edd_show_default_sectors_per_track()
427 char *p = buf; in edd_show_sectors() local
434 p += scnprintf(p, left, "%llu\n", info->params.number_of_sectors); in edd_show_sectors()
435 return (p - buf); in edd_show_sectors()