Lines Matching defs:format
38 char *format, int level);
41 char *format, int level);
43 char *format, int level);
45 char *format, int level);
47 char *format, int level);
49 char *format, int level);
51 char *format, int level);
53 char *format, int level);
55 char *format, int level);
57 char *format, int level);
59 char *format, int level);
61 char *format, int level);
67 if (np->format != NULL) {
68 char *upper = uc(np->format);
82 char *format;
84 if (np->format != NULL) {
85 char *upper = uc(np->format);
111 format = uc(chp->format);
113 format = NULL;
117 switch_on_type(mlp, mlp->fdesc, format, 0);
118 if (format != NULL)
119 free(format);
138 switch_on_type(struct mlist *mlp, struct tdesc *tdp, char *format, int level)
142 if (format == NULL) {
144 format = uc(mlp->name);
149 print_intrinsic(mlp, tdp, format, level);
152 print_pointer(mlp, tdp, format, level);
155 print_array(mlp, tdp, format, level);
158 print_function(mlp, tdp, format, level);
161 print_union(mlp, tdp, format, level);
164 print_enum(mlp, tdp, format, level);
167 print_forward(mlp, tdp, format, level);
170 print_typeof(mlp, tdp, format, level);
173 print_struct(mlp, tdp, format, level);
176 print_volatile(mlp, tdp, format, level);
184 free(format);
189 print_forward(struct mlist *mlp, struct tdesc *tdp, char *format, int level)
196 print_typeof(struct mlist *mlp, struct tdesc *tdp, char *format, int level)
198 switch_on_type(mlp, tdp->data.tdesc, format, level);
202 print_volatile(struct mlist *mlp, struct tdesc *tdp, char *format, int level)
204 switch_on_type(mlp, tdp->data.tdesc, format, level);
209 char *format, int level)
214 printf("/* ' c@ ' %s */", format);
217 printf("/* ' w@ ' %s */", format);
220 printf("/* ' l@ ' %s */", format);
223 printf("/* ' x@ ' %s */", format);
237 printf("#define\t%s_SHIFT 0x%x\n", format, shift);
238 printf("#define\t%s_MASK 0x%x\n", format, mask);
239 printf("#define\t%s_OFFSET 0x%x\n", format, offset);
241 printf("#define\t%s 0x%x\n", format, mlp->offset / 8);
246 print_pointer(struct mlist *mlp, struct tdesc *tdp, char *format, int level)
251 printf("/* ' c@ ' %s */", format);
254 printf("/* ' w@ ' %s */", format);
257 printf("/* ' l@ ' %s */", format);
260 printf("/* ' x@ ' %s */", format);
264 printf("#define\t%s 0x%x\n", format, mlp->offset / 8);
269 print_array(struct mlist *mlp, struct tdesc *tdp, char *format, int level)
277 printf("#define\t%s 0x%x\n", format, mlp->offset / 8);
278 printf("#define\t%s_INCR 0x%x\n", format, inc);
283 print_function(struct mlist *mlp, struct tdesc *tdp, char *format, int level)
290 print_struct(struct mlist *mlp, struct tdesc *tdp, char *format, int level)
293 printf("/* ' noop ' %s */", format);
295 printf("#define\t%s 0x%x\n", format, mlp->offset / 8);
299 print_union(struct mlist *mlp, struct tdesc *tdp, char *format, int level)
302 printf("/* ' noop ' %s */", format);
304 printf("#define\t%s 0x%x\n", format, mlp->offset / 8);
308 print_enum(struct mlist *mlp, struct tdesc *tdp, char *format, int level)
311 printf("/* ' l@ ' %s */", format);
313 printf("#define\t%s 0x%x\n", format, mlp->offset / 8);