Lines Matching refs:fmt

105 	       void *puthook, const char *fmt, va_list *ap)  in do_buff_decode()  argument
141 switch(letter = *fmt) { in do_buff_decode()
147 fmt++; in do_buff_decode()
151 while (*fmt && (*fmt != '\n')) in do_buff_decode()
152 fmt++; in do_buff_decode()
153 if (fmt) in do_buff_decode()
154 fmt++; /* Skip '\n' */ in do_buff_decode()
158 fmt++; in do_buff_decode()
165 fmt++; /* Skip '{' */ in do_buff_decode()
166 while (*fmt && (*fmt != '}')) { in do_buff_decode()
168 field_name[i++] = *fmt; in do_buff_decode()
170 fmt++; in do_buff_decode()
172 if (*fmt != '\0') in do_buff_decode()
173 fmt++; /* Skip '}' */ in do_buff_decode()
180 fmt++; in do_buff_decode()
181 width = strtol(fmt, &intendp, 10); in do_buff_decode()
182 fmt = intendp; in do_buff_decode()
210 fmt++; in do_buff_decode()
211 width = strtol(fmt, &intendp, 10); in do_buff_decode()
212 fmt = intendp; in do_buff_decode()
250 fmt++; in do_buff_decode()
251 width = strtol(fmt, &intendp, 10); in do_buff_decode()
252 fmt = intendp; in do_buff_decode()
283 fmt++; in do_buff_decode()
284 if (*fmt == '+') { in do_buff_decode()
286 fmt++; in do_buff_decode()
290 if (tolower(*fmt) == 'v') { in do_buff_decode()
297 fmt++; in do_buff_decode()
299 width = strtol(fmt, &intendp, 10); in do_buff_decode()
300 fmt = intendp; in do_buff_decode()
317 fmt++; in do_buff_decode()
358 next_field(const char **pp, char *fmt, int *width_p, int *value_p, char *name, in next_field() argument
380 *fmt = 'i'; in next_field()
438 *fmt = 'i'; in next_field()
454 *fmt = 'b'; in next_field()
461 *fmt = 's'; in next_field()
493 *fmt = 'b'; in next_field()
503 *fmt = 'i'; in next_field()
513 *fmt = 'b'; in next_field()
547 int (*arg_get)(void *, char *), void *gethook, const char *fmt, in do_encode() argument
563 while ((ret = next_field(&fmt, &c, &width, &value, field_name, in do_encode()
668 csio_decode(struct ccb_scsiio *csio, const char *fmt, ...) in csio_decode() argument
673 va_start(ap, fmt); in csio_decode()
676 NULL, NULL, fmt, &ap); in csio_decode()
684 csio_decode_visit(struct ccb_scsiio *csio, const char *fmt, in csio_decode_visit() argument
697 arg_put, puthook, fmt, NULL)); in csio_decode_visit()
701 buff_decode(uint8_t *buff, size_t len, const char *fmt, ...) in buff_decode() argument
706 va_start(ap, fmt); in buff_decode()
708 retval = do_buff_decode(buff, len, NULL, NULL, fmt, &ap); in buff_decode()
716 buff_decode_visit(uint8_t *buff, size_t len, const char *fmt, in buff_decode_visit() argument
728 return (do_buff_decode(buff, len, arg_put, puthook, fmt, NULL)); in buff_decode_visit()
812 csio_encode(struct ccb_scsiio *csio, const char *fmt, ...) in csio_encode() argument
820 va_start(ap, fmt); in csio_encode()
823 fmt, &ap); in csio_encode()
831 buff_encode_visit(uint8_t *buff, size_t len, const char *fmt, in buff_encode_visit() argument
842 return (do_encode(buff, len, NULL, arg_get, gethook, fmt, NULL)); in buff_encode_visit()
846 csio_encode_visit(struct ccb_scsiio *csio, const char *fmt, in csio_encode_visit() argument
858 gethook, fmt, NULL)); in csio_encode_visit()