Lines Matching defs:fmt
105 void *puthook, const char *fmt, va_list *ap)
144 switch(letter = *fmt) {
150 fmt++;
154 while (*fmt && (*fmt != '\n'))
155 fmt++;
156 if (fmt)
157 fmt++; /* Skip '\n' */
161 fmt++;
168 fmt++; /* Skip '{' */
169 while (*fmt && (*fmt != '}')) {
171 field_name[i++] = *fmt;
173 fmt++;
175 if (fmt)
176 fmt++; /* Skip '}' */
183 fmt++;
184 width = strtol(fmt, &intendp, 10);
185 fmt = intendp;
209 fmt++;
210 width = strtol(fmt, &intendp, 10);
211 fmt = intendp;
248 fmt++;
249 width = strtol(fmt, &intendp, 10);
250 fmt = intendp;
277 fmt++;
278 if (*fmt == '+') {
280 fmt++;
284 if (tolower(*fmt) == 'v') {
291 fmt++;
293 width = strtol(fmt, &intendp, 10);
294 fmt = intendp;
311 fmt++;
352 next_field(const char **pp, char *fmt, int *width_p, int *value_p, char *name,
374 *fmt = 'i';
432 *fmt = 'i';
448 *fmt = 'b';
455 *fmt = 's';
487 *fmt = 'b';
497 *fmt = 'i';
507 *fmt = 'b';
541 int (*arg_get)(void *, char *), void *gethook, const char *fmt,
557 while ((ret = next_field(&fmt, &c, &width, &value, field_name,
572 "do_encode: ret %d fmt %c width %d value %d name \"%s\" error %d suppress %d\n",
662 csio_decode(struct ccb_scsiio *csio, const char *fmt, ...)
667 va_start(ap, fmt);
670 fmt, &ap);
678 csio_decode_visit(struct ccb_scsiio *csio, const char *fmt,
691 arg_put, puthook, fmt, NULL));
695 buff_decode(u_int8_t *buff, size_t len, const char *fmt, ...)
700 va_start(ap, fmt);
702 retval = do_buff_decode(buff, len, 0, 0, fmt, &ap);
710 buff_decode_visit(u_int8_t *buff, size_t len, const char *fmt,
722 return (do_buff_decode(buff, len, arg_put, puthook, fmt, NULL));
806 csio_encode(struct ccb_scsiio *csio, const char *fmt, ...)
814 va_start(ap, fmt);
816 retval = do_encode(csio->data_ptr, csio->dxfer_len, 0, 0, 0, fmt, &ap);
824 buff_encode_visit(u_int8_t *buff, size_t len, const char *fmt,
835 return (do_encode(buff, len, 0, arg_get, gethook, fmt, NULL));
839 csio_encode_visit(struct ccb_scsiio *csio, const char *fmt,
851 gethook, fmt, NULL));