Lines Matching refs:p
620 char *p = sym, *pend = sym + sizeof(sym); in resource_string() local
624 *p++ = '['; in resource_string()
626 p = string(p, pend, "io ", str_spec); in resource_string()
629 p = string(p, pend, "mem ", str_spec); in resource_string()
632 p = string(p, pend, "irq ", str_spec); in resource_string()
635 p = string(p, pend, "dma ", str_spec); in resource_string()
638 p = string(p, pend, "bus ", str_spec); in resource_string()
641 p = string(p, pend, "??? ", str_spec); in resource_string()
645 p = number(p, pend, res->start, *specp); in resource_string()
647 *p++ = '-'; in resource_string()
648 p = number(p, pend, res->end, *specp); in resource_string()
652 p = string(p, pend, " 64bit", str_spec); in resource_string()
654 p = string(p, pend, " pref", str_spec); in resource_string()
656 p = string(p, pend, " window", str_spec); in resource_string()
658 p = string(p, pend, " disabled", str_spec); in resource_string()
660 p = string(p, pend, " flags ", str_spec); in resource_string()
661 p = number(p, pend, res->flags, flag_spec); in resource_string()
663 *p++ = ']'; in resource_string()
664 *p = '\0'; in resource_string()
718 char *p = mac_addr; in mac_address_string() local
739 p = hex_byte_pack(p, addr[5 - i]); in mac_address_string()
741 p = hex_byte_pack(p, addr[i]); in mac_address_string()
744 *p++ = separator; in mac_address_string()
746 *p = '\0'; in mac_address_string()
752 char *ip4_string(char *p, const u8 *addr, const char *fmt) in ip4_string() argument
785 *p++ = '0'; in ip4_string()
787 *p++ = '0'; in ip4_string()
791 *p++ = temp[digits]; in ip4_string()
793 *p++ = '.'; in ip4_string()
796 *p = '\0'; in ip4_string()
798 return p; in ip4_string()
802 char *ip6_compressed_string(char *p, const char *addr) in ip6_compressed_string() argument
846 *p++ = ':'; in ip6_compressed_string()
847 *p++ = ':'; in ip6_compressed_string()
853 *p++ = ':'; in ip6_compressed_string()
862 p = hex_byte_pack(p, hi); in ip6_compressed_string()
864 *p++ = hex_asc_lo(hi); in ip6_compressed_string()
865 p = hex_byte_pack(p, lo); in ip6_compressed_string()
868 p = hex_byte_pack(p, lo); in ip6_compressed_string()
870 *p++ = hex_asc_lo(lo); in ip6_compressed_string()
876 *p++ = ':'; in ip6_compressed_string()
877 p = ip4_string(p, &in6.s6_addr[12], "I4"); in ip6_compressed_string()
879 *p = '\0'; in ip6_compressed_string()
881 return p; in ip6_compressed_string()
885 char *ip6_string(char *p, const char *addr, const char *fmt) in ip6_string() argument
890 p = hex_byte_pack(p, *addr++); in ip6_string()
891 p = hex_byte_pack(p, *addr++); in ip6_string()
893 *p++ = ':'; in ip6_string()
895 *p = '\0'; in ip6_string()
897 return p; in ip6_string()
930 char *p = uuid; in uuid_string() local
949 p = hex_byte_pack(p, addr[index[i]]); in uuid_string()
955 *p++ = '-'; in uuid_string()
960 *p = 0; in uuid_string()
963 p = uuid; in uuid_string()
965 *p = toupper(*p); in uuid_string()
966 } while (*(++p)); in uuid_string()