Lines Matching refs:fmt

106 	       void *puthook, const char *fmt, va_list *ap)  in do_buff_decode()  argument
142 switch(letter = *fmt) { in do_buff_decode()
148 fmt++; in do_buff_decode()
152 while (*fmt && (*fmt != '\n')) in do_buff_decode()
153 fmt++; in do_buff_decode()
154 if (fmt) in do_buff_decode()
155 fmt++; /* Skip '\n' */ in do_buff_decode()
159 fmt++; in do_buff_decode()
166 fmt++; /* Skip '{' */ in do_buff_decode()
167 while (*fmt && (*fmt != '}')) { in do_buff_decode()
169 field_name[i++] = *fmt; in do_buff_decode()
171 fmt++; in do_buff_decode()
173 if (*fmt != '\0') in do_buff_decode()
174 fmt++; /* Skip '}' */ in do_buff_decode()
181 fmt++; in do_buff_decode()
182 width = strtol(fmt, &intendp, 10); in do_buff_decode()
183 fmt = intendp; in do_buff_decode()
211 fmt++; in do_buff_decode()
212 width = strtol(fmt, &intendp, 10); in do_buff_decode()
213 fmt = intendp; in do_buff_decode()
251 fmt++; in do_buff_decode()
252 width = strtol(fmt, &intendp, 10); in do_buff_decode()
253 fmt = intendp; in do_buff_decode()
284 fmt++; in do_buff_decode()
285 if (*fmt == '+') { in do_buff_decode()
287 fmt++; in do_buff_decode()
291 if (tolower(*fmt) == 'v') { in do_buff_decode()
298 fmt++; in do_buff_decode()
300 width = strtol(fmt, &intendp, 10); in do_buff_decode()
301 fmt = intendp; in do_buff_decode()
318 fmt++; in do_buff_decode()
359 next_field(const char **pp, char *fmt, int *width_p, int *value_p, char *name, in next_field() argument
381 *fmt = 'i'; in next_field()
439 *fmt = 'i'; in next_field()
455 *fmt = 'b'; in next_field()
462 *fmt = 's'; in next_field()
494 *fmt = 'b'; in next_field()
504 *fmt = 'i'; in next_field()
514 *fmt = 'b'; in next_field()
548 int (*arg_get)(void *, char *), void *gethook, const char *fmt, in do_encode() argument
564 while ((ret = next_field(&fmt, &c, &width, &value, field_name, in do_encode()
669 csio_decode(struct ccb_scsiio *csio, const char *fmt, ...) in csio_decode() argument
674 va_start(ap, fmt); in csio_decode()
677 NULL, NULL, fmt, &ap); in csio_decode()
685 csio_decode_visit(struct ccb_scsiio *csio, const char *fmt, in csio_decode_visit() argument
698 arg_put, puthook, fmt, NULL)); in csio_decode_visit()
702 buff_decode(uint8_t *buff, size_t len, const char *fmt, ...) in buff_decode() argument
707 va_start(ap, fmt); in buff_decode()
709 retval = do_buff_decode(buff, len, NULL, NULL, fmt, &ap); in buff_decode()
717 buff_decode_visit(uint8_t *buff, size_t len, const char *fmt, in buff_decode_visit() argument
729 return (do_buff_decode(buff, len, arg_put, puthook, fmt, NULL)); in buff_decode_visit()
813 csio_encode(struct ccb_scsiio *csio, const char *fmt, ...) in csio_encode() argument
821 va_start(ap, fmt); in csio_encode()
824 fmt, &ap); in csio_encode()
832 buff_encode_visit(uint8_t *buff, size_t len, const char *fmt, in buff_encode_visit() argument
843 return (do_encode(buff, len, NULL, arg_get, gethook, fmt, NULL)); in buff_encode_visit()
847 csio_encode_visit(struct ccb_scsiio *csio, const char *fmt, in csio_encode_visit() argument
859 gethook, fmt, NULL)); in csio_encode_visit()