/linux-3.3/arch/powerpc/boot/ |
D | planetcore.c | 36 } while (*(table - 1) || *table != '\n'); in planetcore_prepare_table() 96 for (j = 5; j >= 0; j--) { in planetcore_set_mac_addrs() 109 char *path; in planetcore_set_stdout_path() local 117 node = find_node_by_prop_value_str(NULL, "linux,planetcore-label", in planetcore_set_stdout_path() 122 path = get_path(node, prop_buf, MAX_PROP_LEN); in planetcore_set_stdout_path() 123 if (!path) in planetcore_set_stdout_path() 132 setprop_str(chosen, "linux,stdout-path", path); in planetcore_set_stdout_path() 137 void *chosen, *stdout; in planetcore_set_serial_speed() local 146 len = getprop(chosen, "linux,stdout-path", prop_buf, MAX_PROP_LEN); in planetcore_set_serial_speed() 150 stdout = finddevice(prop_buf); in planetcore_set_serial_speed() [all …]
|
D | virtex.c | 36 return -1; in virtex_ns16550_console_init() 38 n = getprop(devp, "reg-offset", ®_offset, sizeof(reg_offset)); in virtex_ns16550_console_init() 42 n = getprop(devp, "reg-shift", ®_shift, sizeof(reg_shift)); in virtex_ns16550_console_init() 46 n = getprop(devp, "current-speed", (void *)&spd, sizeof(spd)); in virtex_ns16550_console_init() 51 n = getprop(devp, "clock-frequency", (void *)&clk, sizeof(clk)); in virtex_ns16550_console_init() 53 return -1; in virtex_ns16550_console_init() 83 char path[MAX_PATH_LEN]; in platform_specific_init() local 87 return -1; in platform_specific_init() 89 if (getprop(devp, "linux,stdout-path", path, MAX_PATH_LEN) > 0) { in platform_specific_init() 90 devp = finddevice(path); in platform_specific_init() [all …]
|
D | planetcore.h | 30 * Returns zero/NULL on failure, non-zero on success. 36 /* Updates the device tree local-mac-address properties based 41 /* Sets the linux,stdout-path in the /chosen node. This requires the 42 * linux,planetcore-label property in each serial node. 46 /* Sets the current-speed property in the serial node. */
|
D | serial.c | 25 return scdp->open(); in serial_open() 33 scdp->putc(*buf++); in serial_write() 48 if (scdp->tstc()) { in serial_edit_cmdline() 49 while (((ch = scdp->getc()) != '\n') && (ch != '\r')) { in serial_edit_cmdline() 53 cp--; in serial_edit_cmdline() 54 count--; in serial_edit_cmdline() 60 cp--; in serial_edit_cmdline() 61 count--; in serial_edit_cmdline() 67 scdp->putc(ch); in serial_edit_cmdline() 81 if (scdp->close) in serial_close() [all …]
|
/linux-3.3/arch/powerpc/sysdev/ |
D | mv64x60_udbg.c | 65 return -1; in mv64x60_udbg_getc_poll() 72 struct device_node *np, *mpscintr, *stdout = NULL; in mv64x60_udbg_init() local 73 const char *path; in mv64x60_udbg_init() local 80 path = of_get_property(of_chosen, "linux,stdout-path", NULL); in mv64x60_udbg_init() 81 if (!path) in mv64x60_udbg_init() 84 stdout = of_find_node_by_path(path); in mv64x60_udbg_init() 85 if (!stdout) in mv64x60_udbg_init() 88 for_each_compatible_node(np, "serial", "marvell,mv64360-mpsc") { in mv64x60_udbg_init() 89 if (np == stdout) in mv64x60_udbg_init() 93 of_node_put(stdout); in mv64x60_udbg_init() [all …]
|
/linux-3.3/arch/powerpc/platforms/powermac/ |
D | udbg_scc.c | 4 * Copyright (C) 2001-2005 PPC 64 Team, IBM Corp 44 return -1; in udbg_scc_getc_poll() 46 return -1; in udbg_scc_getc_poll() 56 return -1; in udbg_scc_getc() 73 struct device_node *stdout = NULL, *escc = NULL, *macio = NULL; in udbg_scc_init() local 75 const char *path; in udbg_scc_init() local 84 path = of_get_property(of_chosen, "linux,stdout-path", NULL); in udbg_scc_init() 85 if (path != NULL) in udbg_scc_init() 86 stdout = of_find_node_by_path(path); in udbg_scc_init() 88 if (ch == stdout) in udbg_scc_init() [all …]
|
D | setup.c | 5 * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) 63 #include <asm/pci-bridge.h> 88 static int current_root_goodness = -1; 92 #define DEFAULT_ROOT_DEVICE Root_SDA1 /* sda1 - slightly silly choice */ 138 plen -= l; in pmac_show_cpuinfo() 152 np = of_find_node_by_name(NULL, "l2-cache"); in pmac_show_cpuinfo() 157 of_get_property(np, "i-cache-size", NULL); in pmac_show_cpuinfo() 159 of_get_property(np, "d-cache-size", NULL); in pmac_show_cpuinfo() 162 if (of_get_property(np, "cache-unified", NULL) != 0 && dc) { in pmac_show_cpuinfo() 171 pp = of_get_property(np, "ram-type", NULL); in pmac_show_cpuinfo() [all …]
|
/linux-3.3/arch/powerpc/kernel/ |
D | legacy_serial.c | 15 #include <asm/pci-bridge.h> 16 #include <asm/ppc-pci.h> 40 {.type = "tsi-bridge",}, 43 {.compatible = "simple-bus",}, 44 {.compatible = "wrs,epld-localbus",}, 49 static int legacy_serial_console = -1; 54 offset = offset << p->regshift; in tsi_serial_in() 56 tmp = readl(p->membase + (UART_IIR & ~3)); in tsi_serial_in() 59 return readb(p->membase + offset); in tsi_serial_in() 64 offset = offset << p->regshift; in tsi_serial_out() [all …]
|
D | prom_init.c | 5 * Copyright (C) 1996-2005 Paul Mackerras. 53 * ensure that we don't lose things like the interrupt-map property 54 * on a PCI-PCI bridge. 76 * On ppc32 we compile with -mrelocatable, which means that references 87 * arguments to call_prom should be 32-bit values. 131 ihandle stdout; member 212 * Error results ... some OF calls will return "-1" on error, some 218 #define PROM_ERROR (-1u) 275 rets[i-1] = args.args[nargs+i]; in call_prom_ret() 286 if (_prom->stdout == 0) in prom_print() [all …]
|
/linux-3.3/arch/sparc/kernel/ |
D | prom_32.c | 5 * Copyright (C) 1996-2005 Paul Mackerras. 70 regs = rprop->value; in sparc32_path_component() 72 dp->name, in sparc32_path_component() 73 regs->which_io, regs->phys_addr); in sparc32_path_component() 86 regs = prop->value; in sbus_path_component() 88 dp->name, in sbus_path_component() 89 regs->which_io, in sbus_path_component() 90 regs->phys_addr); in sbus_path_component() 104 regs = prop->value; in pci_path_component() 105 devfn = (regs->phys_hi >> 8) & 0xff; in pci_path_component() [all …]
|
D | prom_64.c | 5 * Copyright (C) 1996-2005 Paul Mackerras. 68 * As an example, the boot device on my workstation has a full path: 82 regs = rprop->value; in sun4v_path_component() 83 if (!of_node_is_root(dp->parent)) { in sun4v_path_component() 85 dp->name, in sun4v_path_component() 86 (unsigned int) (regs->phys_addr >> 32UL), in sun4v_path_component() 87 (unsigned int) (regs->phys_addr & 0xffffffffUL)); in sun4v_path_component() 91 type = regs->phys_addr >> 60UL; in sun4v_path_component() 92 high_bits = (regs->phys_addr >> 32UL) & 0x0fffffffUL; in sun4v_path_component() 93 low_bits = (regs->phys_addr & 0xffffffffUL); in sun4v_path_component() [all …]
|
/linux-3.3/arch/microblaze/kernel/ |
D | prom.c | 5 * Copyright (C) 1996-2005 Paul Mackerras. 43 #include <asm/pci-bridge.h> 56 char *stdout; variable 68 p = of_get_flat_dt_prop(node, "linux,stdout-path", &l); in early_init_dt_scan_chosen_serial() 70 stdout = p; /* store pointer to stdout-path */ in early_init_dt_scan_chosen_serial() 73 if (stdout && strstr(stdout, uname)) { in early_init_dt_scan_chosen_serial() 77 if ((strncmp(p, "xlnx,xps-uart16550", 18) == 0) || in early_init_dt_scan_chosen_serial() 78 (strncmp(p, "xlnx,axi-uart16550", 18) == 0)) { in early_init_dt_scan_chosen_serial() 85 "reg-offset", &l); in early_init_dt_scan_chosen_serial() 89 if ((strncmp(p, "xlnx,xps-uartlite", 17) == 0) || in early_init_dt_scan_chosen_serial() [all …]
|
/linux-3.3/scripts/dtc/ |
D | srcpos.c | 16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 28 static char *dirname(const char *path) in dirname() argument 30 const char *slash = strrchr(path, '/'); in dirname() 33 int len = slash - path; in dirname() 36 memcpy(dir, path, len); in dirname() 55 if (streq(fname, "-")) { in srcfile_relative_open() 59 if (!current_srcfile || !current_srcfile->dir in srcfile_relative_open() 63 fullname = join_path(current_srcfile->dir, fname); in srcfile_relative_open() 91 srcfile->f = srcfile_relative_open(fname, &srcfile->name); in srcfile_push() 92 srcfile->dir = dirname(srcfile->name); in srcfile_push() [all …]
|
/linux-3.3/tools/perf/util/ |
D | annotate.c | 4 * Parts came from builtin-annotate.c, see those files for further 11 #include "build-id.h" 24 pthread_mutex_init(¬es->lock, NULL); in symbol__annotate_init() 32 (sym->end - sym->start) * sizeof(u64)); in symbol__alloc_hist() 34 notes->src = zalloc(sizeof(*notes->src) + symbol_conf.nr_events * sizeof_sym_hist); in symbol__alloc_hist() 35 if (notes->src == NULL) in symbol__alloc_hist() 36 return -1; in symbol__alloc_hist() 37 notes->src->sizeof_sym_hist = sizeof_sym_hist; in symbol__alloc_hist() 38 notes->src->nr_histograms = symbol_conf.nr_events; in symbol__alloc_hist() 39 INIT_LIST_HEAD(¬es->src->source); in symbol__alloc_hist() [all …]
|
D | probe-event.c | 2 * probe-event.c : perf-probe definition to probe_events format converter 18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 45 #include "trace-event.h" /* For __unused */ 46 #include "probe-event.h" 47 #include "probe-finder.h" 57 /* If there is no space to write, returns -E2BIG. */ 69 ret = -E2BIG; in e_snprintf() 76 /* Initialize symbol maps and path of vmlinux/modules */ 102 pr_warning("Failed to init vmlinux path.\n"); in init_vmlinux() 118 /* A file path -- this is an offline module */ in kernel_get_module_map() [all …]
|
/linux-3.3/tools/perf/ |
D | perf.c | 6 * This is the main hub from which the sub-commands (perf stat, 14 #include "util/run-command.h" 15 #include "util/parse-events.h" 19 "perf [--version] [--help] COMMAND [ARGS]"; 24 int use_browser = -1; 25 static int use_pager = -1; 35 if (!prefixcmp(var, "pager.") && !strcmp(var + 6, c->cmd)) in pager_command_config() 36 c->val = perf_config_bool(var, value); in pager_command_config() 40 /* returns 0 for "no pager", 1 for "use pager", and -1 for "not specified" */ 45 c.val = -1; in check_pager_config() [all …]
|
D | builtin-top.c | 2 * builtin-top.c 36 #include "util/parse-options.h" 37 #include "util/parse-events.h" 73 ws->ws_row = atoi(s); in get_term_dimensions() 76 ws->ws_col = atoi(s); in get_term_dimensions() 77 if (ws->ws_row && ws->ws_col) in get_term_dimensions() 83 ws->ws_row && ws->ws_col) in get_term_dimensions() 86 ws->ws_row = 25; in get_term_dimensions() 87 ws->ws_col = 80; in get_term_dimensions() 92 if (top->print_entries > 9) in perf_top__update_print_entries() [all …]
|
/linux-3.3/tools/power/cpupower/bench/ |
D | parse.c | 1 /* cpufreq-bench CPUFreq microbenchmark 17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 94 snprintf(filename, len - 1, "%s/benchmark_%s_%s_%li.log", in prepare_output() 97 snprintf(filename, len - 1, "%s/benchmark_%li.log", in prepare_output() 109 fprintf(stdout, "Logfile: %s\n", filename); in prepare_output() 129 config->sleep = 500000; in prepare_default_config() 130 config->load = 500000; in prepare_default_config() 131 config->sleep_step = 500000; in prepare_default_config() 132 config->load_step = 500000; in prepare_default_config() 133 config->cycles = 5; in prepare_default_config() [all …]
|
D | parse.h | 1 /* cpufreq-bench CPUFreq microbenchmark 17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 35 SCHED_ERR = -1, 44 if output != NULL and output != stdout*/ 51 int prepare_config(const char *path, struct config *config);
|
/linux-3.3/arch/sparc/include/asm/ |
D | openpromio.h | 34 #define OPROMSETCUR 0x20004FF0 /* int node - Sets current node */ 35 #define OPROMPCI2NODE 0x20004FF1 /* int pci_bus, pci_devfn - Sets current node to PCI device's nod… 36 #define OPROMPATH2NODE 0x20004FF2 /* char path[] - Set current node from fully qualified PROM path… 44 #define OPROMCONS_STDOUT_IS_FB 0x2 /* stdout is a framebuffer */ 54 int op_nodeid; /* PROM Node ID (value-result) */ 57 int op_buflen; /* Length of op_buf (value-result) */
|
/linux-3.3/scripts/ |
D | docproc.c | 4 * docproc is used for documentation-frontend and 5 * dependency-generator. 10 * documentation-frontend 11 * Scans the template file and call kernel-doc for 17 * This is used to create proper -function and 18 * -nofunction arguments in calls to kernel-doc. 21 * dependency-generator: 25 * Writes dependency information to stdout 48 /* exitstatus is used to keep track of any failing calls to kernel-doc, 69 #define KERNELDOC "kernel-doc" [all …]
|
/linux-3.3/arch/arm/boot/dts/ |
D | zynq-ep107.dts | 14 /dts-v1/; 17 compatible = "xlnx,zynq-ep107"; 18 #address-cells = <1>; 19 #size-cells = <1>; 20 interrupt-parent = <&intc>; 29 linux,stdout-path = &uart0; 33 compatible = "simple-bus"; 34 #address-cells = <1>; 35 #size-cells = <1>; 38 intc: interrupt-controller@f8f01000 { [all …]
|
D | picoxcell-pc7302-pc3x2.dts | 14 /dts-v1/; 15 /include/ "picoxcell-pc3x2.dtsi" 18 compatible = "picochip,pc7302-pc3x2", "picochip,pc3x2"; 26 linux,stdout-path = &uart0; 31 compatible = "fixed-clock"; 32 clock-outputs = "ref"; 33 clock-frequency = <20000000>; 37 rwid-axi { 39 nand: gpio-nand@2,0 { 40 compatible = "gpio-control-nand"; [all …]
|
D | picoxcell-pc7302-pc3x3.dts | 14 /dts-v1/; 15 /include/ "picoxcell-pc3x3.dtsi" 18 compatible = "picochip,pc7302-pc3x3", "picochip,pc3x3"; 26 linux,stdout-path = &uart0; 31 compatible = "fixed-clock"; 32 clock-outputs = "ref"; 33 clock-frequency = <20000000>; 38 picochip,clk-no-disable; 43 rwid-axi { 45 nand: gpio-nand@2,0 { [all …]
|
/linux-3.3/drivers/tty/hvc/ |
D | hvc_opal.c | 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 45 { .name = "serial", .compatible = "ibm,opal-console-raw" }, 46 { .name = "serial", .compatible = "ibm,opal-console-hvsi" }, 78 return -ENODEV; in hvc_opal_hvsi_get_chars() 80 return hvsilib_get_chars(&pv->hvsi, buf, count); in hvc_opal_hvsi_get_chars() 88 return -ENODEV; in hvc_opal_hvsi_put_chars() 90 return hvsilib_put_chars(&pv->hvsi, buf, count); in hvc_opal_hvsi_put_chars() 95 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; in hvc_opal_hvsi_open() 98 pr_devel("HVSI@%x: do open !\n", hp->vtermno); in hvc_opal_hvsi_open() 104 return hvsilib_open(&pv->hvsi, hp); in hvc_opal_hvsi_open() [all …]
|