Lines Matching refs:fmt
105 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) 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()
209 fmt++; in do_buff_decode()
210 width = strtol(fmt, &intendp, 10); in do_buff_decode()
211 fmt = intendp; in do_buff_decode()
248 fmt++; in do_buff_decode()
249 width = strtol(fmt, &intendp, 10); in do_buff_decode()
250 fmt = intendp; in do_buff_decode()
277 fmt++; in do_buff_decode()
278 if (*fmt == '+') { in do_buff_decode()
280 fmt++; in do_buff_decode()
284 if (tolower(*fmt) == 'v') { in do_buff_decode()
291 fmt++; in do_buff_decode()
293 width = strtol(fmt, &intendp, 10); in do_buff_decode()
294 fmt = intendp; in do_buff_decode()
311 fmt++; in do_buff_decode()
352 next_field(const char **pp, char *fmt, int *width_p, int *value_p, char *name, in next_field() argument
374 *fmt = 'i'; in next_field()
432 *fmt = 'i'; in next_field()
448 *fmt = 'b'; in next_field()
455 *fmt = 's'; in next_field()
487 *fmt = 'b'; in next_field()
497 *fmt = 'i'; in next_field()
507 *fmt = 'b'; in next_field()
541 int (*arg_get)(void *, char *), void *gethook, const char *fmt, in do_encode() argument
557 while ((ret = next_field(&fmt, &c, &width, &value, field_name, in do_encode()
662 csio_decode(struct ccb_scsiio *csio, const char *fmt, ...) in csio_decode() argument
666 va_start(ap, fmt); in csio_decode()
669 0, 0, fmt, ap)); in csio_decode()
673 csio_decode_visit(struct ccb_scsiio *csio, const char *fmt, in csio_decode_visit() argument
689 arg_put, puthook, fmt, ap)); in csio_decode_visit()
693 buff_decode(u_int8_t *buff, size_t len, const char *fmt, ...) in buff_decode() argument
697 va_start(ap, fmt); in buff_decode()
699 return(do_buff_decode(buff, len, 0, 0, fmt, ap)); in buff_decode()
703 buff_decode_visit(u_int8_t *buff, size_t len, const char *fmt, in buff_decode_visit() argument
718 return(do_buff_decode(buff, len, arg_put, puthook, fmt, ap)); in buff_decode_visit()
802 csio_encode(struct ccb_scsiio *csio, const char *fmt, ...) in csio_encode() argument
809 va_start(ap, fmt); in csio_encode()
811 return(do_encode(csio->data_ptr, csio->dxfer_len, 0, 0, 0, fmt, ap)); in csio_encode()
815 buff_encode_visit(u_int8_t *buff, size_t len, const char *fmt, in buff_encode_visit() argument
829 return(do_encode(buff, len, 0, arg_get, gethook, fmt, ap)); in buff_encode_visit()
833 csio_encode_visit(struct ccb_scsiio *csio, const char *fmt, in csio_encode_visit() argument
848 gethook, fmt, ap)); in csio_encode_visit()