Lines Matching +defs:val +defs:state

333 	unsigned int val;
338 val = 0;
346 val <<= 4;
347 val |= (pch - xdigits);
357 *tp++ = (unsigned char) (val >> 8) & 0xff;
358 *tp++ = (unsigned char) val & 0xff;
360 val = 0;
368 *tp++ = (unsigned char) (val >> 8) & 0xff;
369 *tp++ = (unsigned char) val & 0xff;
1330 unsigned int val;
1338 val = strtoul(buf, &endp, 10);
1339 if (*endp == '\0' && val <= 0xffff) {
1340 *typep = (dns_rdatatype_t)val;
1899 struct state {
1907 #define Ceor state->Ceor
1908 #define Csum state->Csum
1909 #define Crot state->Crot
1910 #define word state->word
1911 #define bcount state->bcount
1916 struct state *state);
1917 static isc_result_t putbyte(int c, isc_buffer_t *, struct state *state);
1918 static isc_result_t byte_btoa(int c, isc_buffer_t *, struct state *state);
1925 byte_atob(int c, isc_buffer_t *target, struct state *state) {
1931 RETERR(putbyte(0, target, state));
1932 RETERR(putbyte(0, target, state));
1933 RETERR(putbyte(0, target, state));
1934 RETERR(putbyte(0, target, state));
1947 RETERR(putbyte((word >> 24) & 0xff, target, state));
1948 RETERR(putbyte((word >> 16) & 0xff, target, state));
1949 RETERR(putbyte((word >> 8) & 0xff, target, state));
1950 RETERR(putbyte(word & 0xff, target, state));
1963 putbyte(int c, isc_buffer_t *target, struct state *state) {
2000 struct state statebuf, *state= &statebuf;
2013 RETERR(byte_atob(c, target, state));
2066 byte_btoa(int c, isc_buffer_t *target, struct state *state) {
2134 struct state statebuf, *state = &statebuf;
2139 RETERR(byte_btoa(*inbuf, target, state));
2142 RETERR(byte_btoa(0, target, state));