Lines Matching refs:fmt
108 void *puthook, const char *fmt, va_list *ap) in do_buff_decode() argument
144 switch(letter = *fmt) { in do_buff_decode()
150 fmt++; in do_buff_decode()
154 while (*fmt && (*fmt != '\n')) in do_buff_decode()
155 fmt++; in do_buff_decode()
156 if (fmt) in do_buff_decode()
157 fmt++; /* Skip '\n' */ in do_buff_decode()
161 fmt++; in do_buff_decode()
168 fmt++; /* Skip '{' */ in do_buff_decode()
169 while (*fmt && (*fmt != '}')) { in do_buff_decode()
171 field_name[i++] = *fmt; in do_buff_decode()
173 fmt++; in do_buff_decode()
175 if (*fmt != '\0') in do_buff_decode()
176 fmt++; /* Skip '}' */ in do_buff_decode()
183 fmt++; in do_buff_decode()
184 width = strtol(fmt, &intendp, 10); in do_buff_decode()
185 fmt = intendp; in do_buff_decode()
213 fmt++; in do_buff_decode()
214 width = strtol(fmt, &intendp, 10); in do_buff_decode()
215 fmt = intendp; in do_buff_decode()
253 fmt++; in do_buff_decode()
254 width = strtol(fmt, &intendp, 10); in do_buff_decode()
255 fmt = intendp; in do_buff_decode()
286 fmt++; in do_buff_decode()
287 if (*fmt == '+') { in do_buff_decode()
289 fmt++; in do_buff_decode()
293 if (tolower(*fmt) == 'v') { in do_buff_decode()
300 fmt++; in do_buff_decode()
302 width = strtol(fmt, &intendp, 10); in do_buff_decode()
303 fmt = intendp; in do_buff_decode()
320 fmt++; in do_buff_decode()
361 next_field(const char **pp, char *fmt, int *width_p, int *value_p, char *name, in next_field() argument
383 *fmt = 'i'; in next_field()
441 *fmt = 'i'; in next_field()
457 *fmt = 'b'; in next_field()
464 *fmt = 's'; in next_field()
496 *fmt = 'b'; in next_field()
506 *fmt = 'i'; in next_field()
516 *fmt = 'b'; in next_field()
550 int (*arg_get)(void *, char *), void *gethook, const char *fmt, in do_encode() argument
566 while ((ret = next_field(&fmt, &c, &width, &value, field_name, in do_encode()
671 csio_decode(struct ccb_scsiio *csio, const char *fmt, ...) in csio_decode() argument
676 va_start(ap, fmt); in csio_decode()
679 NULL, NULL, fmt, &ap); in csio_decode()
687 csio_decode_visit(struct ccb_scsiio *csio, const char *fmt, in csio_decode_visit() argument
700 arg_put, puthook, fmt, NULL)); in csio_decode_visit()
704 buff_decode(u_int8_t *buff, size_t len, const char *fmt, ...) in buff_decode() argument
709 va_start(ap, fmt); in buff_decode()
711 retval = do_buff_decode(buff, len, NULL, NULL, fmt, &ap); in buff_decode()
719 buff_decode_visit(u_int8_t *buff, size_t len, const char *fmt, in buff_decode_visit() argument
731 return (do_buff_decode(buff, len, arg_put, puthook, fmt, NULL)); in buff_decode_visit()
815 csio_encode(struct ccb_scsiio *csio, const char *fmt, ...) in csio_encode() argument
823 va_start(ap, fmt); in csio_encode()
826 fmt, &ap); in csio_encode()
834 buff_encode_visit(u_int8_t *buff, size_t len, const char *fmt, in buff_encode_visit() argument
845 return (do_encode(buff, len, NULL, arg_get, gethook, fmt, NULL)); in buff_encode_visit()
849 csio_encode_visit(struct ccb_scsiio *csio, const char *fmt, in csio_encode_visit() argument
861 gethook, fmt, NULL)); in csio_encode_visit()