Lines Matching refs:src
74 static int ldm_parse_hexbyte (const u8 *src) in ldm_parse_hexbyte() argument
80 if ((x = src[0] - '0') <= '9'-'0') h = x; in ldm_parse_hexbyte()
81 else if ((x = src[0] - 'a') <= 'f'-'a') h = x+10; in ldm_parse_hexbyte()
82 else if ((x = src[0] - 'A') <= 'F'-'A') h = x+10; in ldm_parse_hexbyte()
87 if ((x = src[1] - '0') <= '9'-'0') return h | x; in ldm_parse_hexbyte()
88 if ((x = src[1] - 'a') <= 'f'-'a') return h | (x+10); in ldm_parse_hexbyte()
89 if ((x = src[1] - 'A') <= 'F'-'A') return h | (x+10); in ldm_parse_hexbyte()
103 static bool ldm_parse_guid (const u8 *src, u8 *dest) in ldm_parse_guid() argument
108 if (src[8] != '-' || src[13] != '-' || in ldm_parse_guid()
109 src[18] != '-' || src[23] != '-') in ldm_parse_guid()
112 for (j = 0; j < 5; j++, src++) in ldm_parse_guid()
113 for (i = 0; i < size[j]; i++, src+=2, *dest++ = v) in ldm_parse_guid()
114 if ((v = ldm_parse_hexbyte (src)) < 0) in ldm_parse_guid()