chosen 101 arch/powerpc/boot/main.c static struct addr_range prep_initrd(struct addr_range vmlinux, void *chosen, chosen 143 arch/powerpc/boot/main.c setprop_val(chosen, "linux,initrd-start", (u32)(initrd_addr)); chosen 144 arch/powerpc/boot/main.c setprop_val(chosen, "linux,initrd-end", (u32)(initrd_addr+initrd_size)); chosen 150 arch/powerpc/boot/main.c static void prep_esm_blob(struct addr_range vmlinux, void *chosen) chosen 182 arch/powerpc/boot/main.c setprop_val(chosen, "linux,esm-blob-start", (u32)(esm_blob_addr)); chosen 183 arch/powerpc/boot/main.c setprop_val(chosen, "linux,esm-blob-end", (u32)(esm_blob_addr + esm_blob_size)); chosen 186 arch/powerpc/boot/main.c static inline void prep_esm_blob(struct addr_range vmlinux, void *chosen) { } chosen 196 arch/powerpc/boot/main.c static void prep_cmdline(void *chosen) chosen 203 arch/powerpc/boot/main.c n = getprop(chosen, "linux,cmdline-timeout", &v, sizeof(v)); chosen 208 arch/powerpc/boot/main.c getprop(chosen, "bootargs", cmdline, BOOT_COMMAND_LINE_SIZE-1); chosen 219 arch/powerpc/boot/main.c setprop_str(chosen, "bootargs", cmdline); chosen 232 arch/powerpc/boot/main.c void *chosen; chosen 250 arch/powerpc/boot/main.c chosen = finddevice("/chosen"); chosen 251 arch/powerpc/boot/main.c if (!chosen) chosen 252 arch/powerpc/boot/main.c chosen = create_node(NULL, "chosen"); chosen 255 arch/powerpc/boot/main.c initrd = prep_initrd(vmlinux, chosen, chosen 257 arch/powerpc/boot/main.c prep_esm_blob(vmlinux, chosen); chosen 258 arch/powerpc/boot/main.c prep_cmdline(chosen); chosen 115 arch/powerpc/boot/oflib.c phandle oprom, chosen; chosen 128 arch/powerpc/boot/oflib.c chosen = of_finddevice("/chosen"); chosen 129 arch/powerpc/boot/oflib.c if (chosen == (phandle) -1) { chosen 130 arch/powerpc/boot/oflib.c chosen = of_finddevice("/chosen@0"); chosen 131 arch/powerpc/boot/oflib.c if (chosen == (phandle) -1) { chosen 136 arch/powerpc/boot/oflib.c if (of_getprop(chosen, "mmu", &chosen_mmu, sizeof(chosen_mmu)) <= 0) { chosen 108 arch/powerpc/boot/planetcore.c void *node, *chosen; chosen 123 arch/powerpc/boot/planetcore.c chosen = finddevice("/chosen"); chosen 124 arch/powerpc/boot/planetcore.c if (!chosen) chosen 125 arch/powerpc/boot/planetcore.c chosen = create_node(NULL, "chosen"); chosen 126 arch/powerpc/boot/planetcore.c if (!chosen) chosen 129 arch/powerpc/boot/planetcore.c setprop_str(chosen, "linux,stdout-path", path); chosen 41 arch/powerpc/boot/ps3.c static void prep_cmdline(void *chosen) chosen 44 arch/powerpc/boot/ps3.c getprop(chosen, "bootargs", cmdline, BOOT_COMMAND_LINE_SIZE-1); chosen 46 arch/powerpc/boot/ps3.c setprop_str(chosen, "bootargs", cmdline); chosen 113 arch/powerpc/boot/ps3.c void *chosen; chosen 125 arch/powerpc/boot/ps3.c chosen = finddevice("/chosen"); chosen 131 arch/powerpc/boot/ps3.c setprop_val(chosen, "linux,initrd-start", (u32)(_initrd_start)); chosen 132 arch/powerpc/boot/ps3.c setprop_val(chosen, "linux,initrd-end", (u32)(_initrd_end)); chosen 135 arch/powerpc/boot/ps3.c prep_cmdline(chosen); chosen 777 arch/powerpc/kernel/dt_cpu_ftrs.c unsigned long root, chosen; chosen 781 arch/powerpc/kernel/dt_cpu_ftrs.c chosen = of_get_flat_dt_subnode_by_name(root, "chosen"); chosen 782 arch/powerpc/kernel/dt_cpu_ftrs.c if (chosen == -FDT_ERR_NOTFOUND) chosen 785 arch/powerpc/kernel/dt_cpu_ftrs.c p = of_get_flat_dt_prop(chosen, "bootargs", NULL); chosen 119 arch/powerpc/kernel/prom_init.c phandle chosen; chosen 767 arch/powerpc/kernel/prom_init.c if ((long)prom.chosen > 0) chosen 768 arch/powerpc/kernel/prom_init.c l = prom_getprop(prom.chosen, "bootargs", p, COMMAND_LINE_SIZE-1); chosen 1288 arch/powerpc/kernel/prom_init.c int prop_len = prom_getproplen(prom.chosen, chosen 1308 arch/powerpc/kernel/prom_init.c prom_getprop(prom.chosen, "ibm,arch-vec-5-platform-support", chosen 1725 arch/powerpc/kernel/prom_init.c if (prom_getprop(prom.chosen, "stdin", &val, sizeof(val)) > 0) { chosen 2162 arch/powerpc/kernel/prom_init.c prom.chosen = call_prom("finddevice", 1, 1, ADDR("/chosen")); chosen 2163 arch/powerpc/kernel/prom_init.c if (!PHANDLE_VALID(prom.chosen)) chosen 2200 arch/powerpc/kernel/prom_init.c prom_getprop(prom.chosen, "mmu", &prom.mmumap, chosen 2217 arch/powerpc/kernel/prom_init.c if (prom_getprop(prom.chosen, "stdout", &val, sizeof(val)) <= 0) chosen 2226 arch/powerpc/kernel/prom_init.c prom_setprop(prom.chosen, "/chosen", "linux,stdout-path", chosen 3139 arch/powerpc/kernel/prom_init.c if (prom_getprop(prom.chosen, "cpu", &rval, sizeof(rval)) <= 0) chosen 3164 arch/powerpc/kernel/prom_init.c prom_setprop(prom.chosen, "/chosen", "linux,initrd-start", chosen 3167 arch/powerpc/kernel/prom_init.c prom_setprop(prom.chosen, "/chosen", "linux,initrd-end", chosen 3413 arch/powerpc/kernel/prom_init.c prom_setprop(prom.chosen, "/chosen", "linux,memory-limit", chosen 3418 arch/powerpc/kernel/prom_init.c prom_setprop(prom.chosen, "/chosen", "linux,iommu-off", chosen 3422 arch/powerpc/kernel/prom_init.c prom_setprop(prom.chosen, "/chosen", "linux,iommu-force-on", chosen 3426 arch/powerpc/kernel/prom_init.c prom_setprop(prom.chosen, "/chosen", "linux,tce-alloc-start", chosen 3429 arch/powerpc/kernel/prom_init.c prom_setprop(prom.chosen, "/chosen", "linux,tce-alloc-end", chosen 362 arch/powerpc/mm/init_64.c unsigned long root, chosen; chosen 368 arch/powerpc/mm/init_64.c chosen = of_get_flat_dt_subnode_by_name(root, "chosen"); chosen 369 arch/powerpc/mm/init_64.c if (chosen == -FDT_ERR_NOTFOUND) { chosen 373 arch/powerpc/mm/init_64.c vec5 = of_get_flat_dt_prop(chosen, "ibm,architecture-vec-5", &size); chosen 728 arch/powerpc/sysdev/xive/spapr.c unsigned long root, chosen; chosen 733 arch/powerpc/sysdev/xive/spapr.c chosen = of_get_flat_dt_subnode_by_name(root, "chosen"); chosen 734 arch/powerpc/sysdev/xive/spapr.c if (chosen == -FDT_ERR_NOTFOUND) chosen 737 arch/powerpc/sysdev/xive/spapr.c vec5 = of_get_flat_dt_prop(chosen, "ibm,architecture-vec-5", &size); chosen 675 arch/sparc/kernel/setup_64.c phandle chosen = prom_finddevice("/chosen"); chosen 678 arch/sparc/kernel/setup_64.c cl = prom_getintdefault (chosen, "client-ip", 0); chosen 679 arch/sparc/kernel/setup_64.c sv = prom_getintdefault (chosen, "server-ip", 0); chosen 680 arch/sparc/kernel/setup_64.c gw = prom_getintdefault (chosen, "gateway-ip", 0); chosen 1732 drivers/md/raid5.c struct bio *chosen; chosen 1746 drivers/md/raid5.c chosen = dev->towrite; chosen 1750 drivers/md/raid5.c wbi = dev->written = chosen; chosen 135 drivers/net/phy/dp83640.c struct dp83640_private *chosen; chosen 298 drivers/net/phy/dp83640.c struct dp83640_private *dp83640 = clock->chosen; chosen 369 drivers/net/phy/dp83640.c struct phy_device *phydev = clock->chosen->phydev; chosen 402 drivers/net/phy/dp83640.c struct phy_device *phydev = clock->chosen->phydev; chosen 424 drivers/net/phy/dp83640.c struct phy_device *phydev = clock->chosen->phydev; chosen 449 drivers/net/phy/dp83640.c struct phy_device *phydev = clock->chosen->phydev; chosen 466 drivers/net/phy/dp83640.c struct phy_device *phydev = clock->chosen->phydev; chosen 626 drivers/net/phy/dp83640.c struct phy_device *master = clock->chosen->phydev; chosen 1072 drivers/net/phy/dp83640.c if (chosen_phy == -1 && !clock->chosen) chosen 1168 drivers/net/phy/dp83640.c clock->chosen = dp83640; chosen 1182 drivers/net/phy/dp83640.c clock->chosen = NULL; chosen 1207 drivers/net/phy/dp83640.c if (dp83640 == clock->chosen) { chosen 1209 drivers/net/phy/dp83640.c clock->chosen = NULL; chosen 1246 drivers/net/phy/dp83640.c if (clock->chosen && !list_empty(&clock->phylist)) chosen 877 drivers/pwm/core.c struct pwm_lookup *p, *chosen = NULL; chosen 932 drivers/pwm/core.c chosen = p; chosen 943 drivers/pwm/core.c if (!chosen) chosen 946 drivers/pwm/core.c chip = pwmchip_find_by_name(chosen->provider); chosen 954 drivers/pwm/core.c if (!chip && chosen->module) { chosen 955 drivers/pwm/core.c err = request_module(chosen->module); chosen 957 drivers/pwm/core.c chip = pwmchip_find_by_name(chosen->provider); chosen 963 drivers/pwm/core.c pwm = pwm_request_from_chip(chip, chosen->index, con_id ?: dev_id); chosen 973 drivers/pwm/core.c pwm->args.period = chosen->period; chosen 974 drivers/pwm/core.c pwm->args.polarity = chosen->polarity; chosen 50 include/linux/oom.h struct task_struct *chosen; chosen 347 mm/oom_kill.c if (oc->chosen) chosen 348 mm/oom_kill.c put_task_struct(oc->chosen); chosen 350 mm/oom_kill.c oc->chosen = task; chosen 355 mm/oom_kill.c if (oc->chosen) chosen 356 mm/oom_kill.c put_task_struct(oc->chosen); chosen 357 mm/oom_kill.c oc->chosen = (void *)-1UL; chosen 953 mm/oom_kill.c struct task_struct *victim = oc->chosen; chosen 1092 mm/oom_kill.c oc->chosen = current; chosen 1099 mm/oom_kill.c if (!oc->chosen) { chosen 1110 mm/oom_kill.c if (oc->chosen && oc->chosen != (void *)-1UL) chosen 1113 mm/oom_kill.c return !!oc->chosen; chosen 1273 scripts/dtc/checks.c struct node *chosen; chosen 1280 scripts/dtc/checks.c chosen = get_node_by_path(dt, "/chosen"); chosen 1281 scripts/dtc/checks.c if (!chosen) chosen 1284 scripts/dtc/checks.c prop = get_property(chosen, "interrupt-controller");