Lines Matching refs:params

26 static struct bp_tag *setup_first_tag(struct bp_tag *params)  in setup_first_tag()  argument
28 params->id = BP_TAG_FIRST; in setup_first_tag()
29 params->size = sizeof(long); in setup_first_tag()
30 *(unsigned long *)&params->data = BP_VERSION; in setup_first_tag()
32 return bp_tag_next(params); in setup_first_tag()
35 static struct bp_tag *setup_last_tag(struct bp_tag *params) in setup_last_tag() argument
37 params->id = BP_TAG_LAST; in setup_last_tag()
38 params->size = 0; in setup_last_tag()
40 return bp_tag_next(params); in setup_last_tag()
43 static struct bp_tag *setup_memory_tag(struct bp_tag *params) in setup_memory_tag() argument
47 params->id = BP_TAG_MEMORY; in setup_memory_tag()
48 params->size = sizeof(struct meminfo); in setup_memory_tag()
49 mem = (struct meminfo *)params->data; in setup_memory_tag()
57 return bp_tag_next(params); in setup_memory_tag()
60 static struct bp_tag *setup_commandline_tag(struct bp_tag *params, in setup_commandline_tag() argument
66 return params; in setup_commandline_tag()
70 params->id = BP_TAG_COMMAND_LINE; in setup_commandline_tag()
71 params->size = (len + 3) & -4; in setup_commandline_tag()
72 strcpy((char *)params->data, cmdline); in setup_commandline_tag()
75 BP_TAG_COMMAND_LINE, params->size, cmdline); in setup_commandline_tag()
77 return bp_tag_next(params); in setup_commandline_tag()
80 static struct bp_tag *setup_ramdisk_tag(struct bp_tag *params, in setup_ramdisk_tag() argument
87 return params; in setup_ramdisk_tag()
91 params->id = BP_TAG_INITRD; in setup_ramdisk_tag()
92 params->size = sizeof(struct meminfo); in setup_ramdisk_tag()
94 mem = (struct meminfo *)params->data; in setup_ramdisk_tag()
102 return bp_tag_next(params); in setup_ramdisk_tag()
105 static struct bp_tag *setup_serial_tag(struct bp_tag *params) in setup_serial_tag() argument
107 params->id = BP_TAG_SERIAL_BAUDRATE; in setup_serial_tag()
108 params->size = sizeof(unsigned long); in setup_serial_tag()
109 params->data[0] = gd->baudrate; in setup_serial_tag()
112 BP_TAG_SERIAL_BAUDRATE, params->size, params->data[0]); in setup_serial_tag()
114 return bp_tag_next(params); in setup_serial_tag()
119 static struct bp_tag *setup_fdt_tag(struct bp_tag *params, void *fdt_start) in setup_fdt_tag() argument
121 params->id = BP_TAG_FDT; in setup_fdt_tag()
122 params->size = sizeof(unsigned long); in setup_fdt_tag()
123 params->data[0] = (unsigned long)fdt_start; in setup_fdt_tag()
126 BP_TAG_FDT, params->size, params->data[0]); in setup_fdt_tag()
128 return bp_tag_next(params); in setup_fdt_tag()
139 struct bp_tag *params, *params_start; in do_bootm_linux() local
157 params = params_start; in do_bootm_linux()
158 params = setup_first_tag(params); in do_bootm_linux()
159 params = setup_memory_tag(params); in do_bootm_linux()
160 params = setup_commandline_tag(params, commandline); in do_bootm_linux()
161 params = setup_serial_tag(params); in do_bootm_linux()
164 params = setup_ramdisk_tag(params, initrd_start, initrd_end); in do_bootm_linux()
168 params = setup_fdt_tag(params, images->ft_addr); in do_bootm_linux()
173 params = setup_last_tag(params); in do_bootm_linux()
180 flush_dcache_range((unsigned long)params_start, (unsigned long)params); in do_bootm_linux()