Lines Matching refs:params

22 static struct bp_tag *setup_first_tag(struct bp_tag *params)  in setup_first_tag()  argument
24 params->id = BP_TAG_FIRST; in setup_first_tag()
25 params->size = sizeof(long); in setup_first_tag()
26 *(unsigned long *)&params->data = BP_VERSION; in setup_first_tag()
28 return bp_tag_next(params); in setup_first_tag()
31 static struct bp_tag *setup_last_tag(struct bp_tag *params) in setup_last_tag() argument
33 params->id = BP_TAG_LAST; in setup_last_tag()
34 params->size = 0; in setup_last_tag()
36 return bp_tag_next(params); in setup_last_tag()
39 static struct bp_tag *setup_memory_tag(struct bp_tag *params) in setup_memory_tag() argument
44 params->id = BP_TAG_MEMORY; in setup_memory_tag()
45 params->size = sizeof(struct meminfo); in setup_memory_tag()
46 mem = (struct meminfo *)params->data; in setup_memory_tag()
54 return bp_tag_next(params); in setup_memory_tag()
57 static struct bp_tag *setup_commandline_tag(struct bp_tag *params, in setup_commandline_tag() argument
63 return params; in setup_commandline_tag()
67 params->id = BP_TAG_COMMAND_LINE; in setup_commandline_tag()
68 params->size = (len + 3) & -4; in setup_commandline_tag()
69 strcpy((char *)params->data, cmdline); in setup_commandline_tag()
72 BP_TAG_COMMAND_LINE, params->size, cmdline); in setup_commandline_tag()
74 return bp_tag_next(params); in setup_commandline_tag()
77 static struct bp_tag *setup_ramdisk_tag(struct bp_tag *params, in setup_ramdisk_tag() argument
84 return params; in setup_ramdisk_tag()
88 params->id = BP_TAG_INITRD; in setup_ramdisk_tag()
89 params->size = sizeof(struct meminfo); in setup_ramdisk_tag()
91 mem = (struct meminfo *)params->data; in setup_ramdisk_tag()
99 return bp_tag_next(params); in setup_ramdisk_tag()
102 static struct bp_tag *setup_serial_tag(struct bp_tag *params) in setup_serial_tag() argument
104 params->id = BP_TAG_SERIAL_BAUDRATE; in setup_serial_tag()
105 params->size = sizeof(unsigned long); in setup_serial_tag()
106 params->data[0] = gd->baudrate; in setup_serial_tag()
109 BP_TAG_SERIAL_BAUDRATE, params->size, params->data[0]); in setup_serial_tag()
111 return bp_tag_next(params); in setup_serial_tag()
116 static struct bp_tag *setup_fdt_tag(struct bp_tag *params, void *fdt_start) in setup_fdt_tag() argument
118 params->id = BP_TAG_FDT; in setup_fdt_tag()
119 params->size = sizeof(unsigned long); in setup_fdt_tag()
120 params->data[0] = (unsigned long)fdt_start; in setup_fdt_tag()
123 BP_TAG_FDT, params->size, params->data[0]); in setup_fdt_tag()
125 return bp_tag_next(params); in setup_fdt_tag()
136 struct bp_tag *params, *params_start; in do_bootm_linux() local
154 params = params_start; in do_bootm_linux()
155 params = setup_first_tag(params); in do_bootm_linux()
156 params = setup_memory_tag(params); in do_bootm_linux()
157 params = setup_commandline_tag(params, commandline); in do_bootm_linux()
158 params = setup_serial_tag(params); in do_bootm_linux()
161 params = setup_ramdisk_tag(params, initrd_start, initrd_end); in do_bootm_linux()
165 params = setup_fdt_tag(params, images->ft_addr); in do_bootm_linux()
170 params = setup_last_tag(params); in do_bootm_linux()
177 flush_dcache_range((unsigned long)params_start, (unsigned long)params); in do_bootm_linux()