Lines Matching defs:tag
539 * of variable-sized tags to the kernel. The first tag must be a ATAG_CORE
540 * tag for the list to be recognised (to distinguish the tagged list from
541 * a param_struct). The list is terminated with a zero-length tag (this tag
544 static int __init parse_tag_core(const struct tag *tag)
546 if (tag->hdr.size > 2) {
547 if ((tag->u.core.flags & 1) == 0)
549 ROOT_DEV = old_decode_dev(tag->u.core.rootdev);
556 static int __init parse_tag_mem32(const struct tag *tag)
558 return arm_add_memory(tag->u.mem.start, tag->u.mem.size);
573 static int __init parse_tag_videotext(const struct tag *tag)
575 screen_info.orig_x = tag->u.videotext.x;
576 screen_info.orig_y = tag->u.videotext.y;
577 screen_info.orig_video_page = tag->u.videotext.video_page;
578 screen_info.orig_video_mode = tag->u.videotext.video_mode;
579 screen_info.orig_video_cols = tag->u.videotext.video_cols;
580 screen_info.orig_video_ega_bx = tag->u.videotext.video_ega_bx;
581 screen_info.orig_video_lines = tag->u.videotext.video_lines;
582 screen_info.orig_video_isVGA = tag->u.videotext.video_isvga;
583 screen_info.orig_video_points = tag->u.videotext.video_points;
590 static int __init parse_tag_ramdisk(const struct tag *tag)
592 setup_ramdisk((tag->u.ramdisk.flags & 1) == 0,
593 (tag->u.ramdisk.flags & 2) == 0,
594 tag->u.ramdisk.start, tag->u.ramdisk.size);
600 static int __init parse_tag_serialnr(const struct tag *tag)
602 system_serial_low = tag->u.serialnr.low;
603 system_serial_high = tag->u.serialnr.high;
609 static int __init parse_tag_revision(const struct tag *tag)
611 system_rev = tag->u.revision.rev;
618 static int __init parse_tag_cmdline(const struct tag *tag)
620 strlcpy(default_command_line, tag->u.cmdline.cmdline, COMMAND_LINE_SIZE);
628 * Scan the tag table for this tag, and call its parse function.
629 * The tag table is built by the linker from all the __tagtable
632 static int __init parse_tag(const struct tag *tag)
638 if (tag->hdr.tag == t->tag) {
639 t->parse(tag);
648 * specific tag tables.
650 static void __init parse_tags(const struct tag *t)
655 "Ignoring unrecognised tag 0x%08x\n",
656 t->hdr.tag);
760 static void __init squash_mem_tags(struct tag *tag)
762 for (; tag->hdr.size; tag = tag_next(tag))
763 if (tag->hdr.tag == ATAG_MEM)
764 tag->hdr.tag = ATAG_NONE;
769 struct tag *tags = (struct tag *)&init_tags;
794 * a tag list.
796 if (tags->hdr.tag != ATAG_CORE)
799 if (tags->hdr.tag != ATAG_CORE)
800 tags = (struct tag *)&init_tags;
805 if (tags->hdr.tag == ATAG_CORE) {