Lines Matching refs:tag

11  * of variable-sized tags to the kernel.  The first tag must be a ATAG_CORE
12 * tag for the list to be recognised (to distinguish the tagged list from
13 * a param_struct). The list is terminated with a zero-length tag (this tag
53 static int __init parse_tag_core(const struct tag *tag)
55 if (tag->hdr.size > 2) {
56 if ((tag->u.core.flags & 1) == 0)
58 ROOT_DEV = old_decode_dev(tag->u.core.rootdev);
65 static int __init parse_tag_mem32(const struct tag *tag)
67 return arm_add_memory(tag->u.mem.start, tag->u.mem.size);
73 static int __init parse_tag_videotext(const struct tag *tag)
75 vgacon_screen_info.orig_x = tag->u.videotext.x;
76 vgacon_screen_info.orig_y = tag->u.videotext.y;
77 vgacon_screen_info.orig_video_page = tag->u.videotext.video_page;
78 vgacon_screen_info.orig_video_mode = tag->u.videotext.video_mode;
79 vgacon_screen_info.orig_video_cols = tag->u.videotext.video_cols;
80 vgacon_screen_info.orig_video_ega_bx = tag->u.videotext.video_ega_bx;
81 vgacon_screen_info.orig_video_lines = tag->u.videotext.video_lines;
82 vgacon_screen_info.orig_video_isVGA = tag->u.videotext.video_isvga;
83 vgacon_screen_info.orig_video_points = tag->u.videotext.video_points;
91 static int __init parse_tag_ramdisk(const struct tag *tag)
93 rd_image_start = tag->u.ramdisk.start;
95 if (tag->u.ramdisk.size)
96 rd_size = tag->u.ramdisk.size;
104 static int __init parse_tag_serialnr(const struct tag *tag)
106 system_serial_low = tag->u.serialnr.low;
107 system_serial_high = tag->u.serialnr.high;
113 static int __init parse_tag_revision(const struct tag *tag)
115 system_rev = tag->u.revision.rev;
121 static int __init parse_tag_cmdline(const struct tag *tag)
125 strlcat(default_command_line, tag->u.cmdline.cmdline,
128 pr_warn("Ignoring tag cmdline (using the default kernel command line)\n");
130 strscpy(default_command_line, tag->u.cmdline.cmdline,
139 * Scan the tag table for this tag, and call its parse function.
140 * The tag table is built by the linker from all the __tagtable
143 static int __init parse_tag(const struct tag *tag)
149 if (tag->hdr.tag == t->tag) {
150 t->parse(tag);
159 * specific tag tables.
161 static void __init parse_tags(const struct tag *t)
165 pr_warn("Ignoring unrecognised tag 0x%08x\n",
166 t->hdr.tag);
169 static void __init squash_mem_tags(struct tag *tag)
171 for (; tag->hdr.size; tag = tag_next(tag))
172 if (tag->hdr.tag == ATAG_MEM)
173 tag->hdr.tag = ATAG_NONE;
179 struct tag *tags = (struct tag *)&default_tags;
206 * a tag list.
208 if (tags->hdr.tag != ATAG_CORE)
211 if (tags->hdr.tag != ATAG_CORE) {
213 tags = (struct tag *)&default_tags;
219 if (tags->hdr.tag == ATAG_CORE) {