Home
last modified time | relevance | path

Searched refs:prop (Results 1 – 25 of 165) sorted by relevance

1234567

/linux-2.6.39/arch/powerpc/sysdev/
Dmv64x60_dev.c94 const unsigned int *prop; in mv64x60_mpsc_device_setup() local
133 prop = of_get_property(np, "cell-index", NULL); in mv64x60_mpsc_device_setup()
134 if (!prop) in mv64x60_mpsc_device_setup()
136 port_number = *(int *)prop; in mv64x60_mpsc_device_setup()
143 prop = of_get_property(np, "max_idle", NULL); in mv64x60_mpsc_device_setup()
144 if (prop) in mv64x60_mpsc_device_setup()
145 pdata.max_idle = *prop; in mv64x60_mpsc_device_setup()
147 prop = of_get_property(brg, "current-speed", NULL); in mv64x60_mpsc_device_setup()
148 if (prop) in mv64x60_mpsc_device_setup()
149 pdata.default_baud = *prop; in mv64x60_mpsc_device_setup()
[all …]
Dfsl_soc.c61 const u32 *prop = of_get_property(soc, "#address-cells", &size); in get_immrbase() local
63 if (prop && size == 4) in get_immrbase()
64 naddr = *prop; in get_immrbase()
68 prop = of_get_property(soc, "ranges", &size); in get_immrbase()
69 if (prop) in get_immrbase()
70 immrbase = of_translate_address(soc, prop + naddr); in get_immrbase()
85 const u32 *prop; in fsl_get_sys_freq() local
95 prop = of_get_property(soc, "clock-frequency", &size); in fsl_get_sys_freq()
96 if (!prop || size != sizeof(*prop) || *prop == 0) in fsl_get_sys_freq()
97 prop = of_get_property(soc, "bus-frequency", &size); in fsl_get_sys_freq()
[all …]
/linux-2.6.39/scripts/kconfig/
Dsymbol.c41 struct property *prop = prop_alloc(P_DEFAULT, sym); in sym_add_default() local
43 prop->expr = expr_alloc_symbol(sym_lookup(def, SYMBOL_CONST)); in sym_add_default()
100 struct property *prop; in sym_get_choice_prop() local
102 for_all_choices(sym, prop) in sym_get_choice_prop()
103 return prop; in sym_get_choice_prop()
109 struct property *prop; in sym_get_env_prop() local
111 for_all_properties(sym, prop, P_ENV) in sym_get_env_prop()
112 return prop; in sym_get_env_prop()
118 struct property *prop; in sym_get_default_prop() local
120 for_all_defaults(sym, prop) { in sym_get_default_prop()
[all …]
Dmenu.c31 static void prop_warn(struct property *prop, const char *fmt, ...) in prop_warn() argument
35 fprintf(stderr, "%s:%d:warning: ", prop->file->name, prop->lineno); in prop_warn()
129 struct property *prop = prop_alloc(type, current_entry->sym); in menu_add_prop() local
131 prop->menu = current_entry; in menu_add_prop()
132 prop->expr = expr; in menu_add_prop()
133 prop->visible.expr = menu_check_dep(dep); in menu_add_prop()
137 prop_warn(prop, "leading whitespace ignored"); in menu_add_prop()
142 prop_warn(prop, "prompt redefined"); in menu_add_prop()
151 prop->visible.expr in menu_add_prop()
152 = expr_alloc_and(prop->visible.expr, in menu_add_prop()
[all …]
Dzconf.y513 if (!modules_sym->prop) {
514 struct property *prop; variable
516 prop = prop_alloc(P_DEFAULT, modules_sym);
517 prop->expr = expr_alloc_symbol(sym_lookup("MODULES", 0));
618 struct property *prop; in print_symbol() local
644 for (prop = sym->prop; prop; prop = prop->next) { in print_symbol()
645 if (prop->menu != menu) in print_symbol()
647 switch (prop->type) { in print_symbol()
650 print_quoted_string(out, prop->text); in print_symbol()
651 if (!expr_is_yes(prop->visible.expr)) { in print_symbol()
[all …]
/linux-2.6.39/scripts/dtc/
Dchecks.c52 struct node *node, struct property *prop);
117 struct property *prop; in check_nodes_props() local
124 for_each_property(node, prop) { in check_nodes_props()
125 TRACE(c, "%s\t'%s'", node->fullpath, prop->name); in check_nodes_props()
126 c->prop_fn(c, dt, node, prop); in check_nodes_props()
182 struct property *prop; in check_is_string() local
185 prop = get_property(node, propname); in check_is_string()
186 if (!prop) in check_is_string()
189 if (!data_is_one_string(prop->val)) in check_is_string()
199 struct property *prop; in check_is_cell() local
[all …]
/linux-2.6.39/drivers/net/bna/
Dbfa_defs_mfg_comm.h98 #define bfa_mfg_adapter_prop_init_flash(card_type, prop) \ argument
104 (prop) = BFI_ADAPTER_SETP(NPORTS, 2) | \
108 (prop) = BFI_ADAPTER_SETP(NPORTS, 1) | \
112 (prop) = BFI_ADAPTER_SETP(NPORTS, 2) | \
116 (prop) = BFI_ADAPTER_SETP(NPORTS, 1) | \
123 (prop) = BFI_ADAPTER_SETP(NPORTS, 2); \
124 (prop) |= BFI_ADAPTER_SETP(SPEED, 10); \
127 (prop) = BFI_ADAPTER_SETP(NPORTS, 1); \
128 (prop) |= BFI_ADAPTER_SETP(SPEED, 10); \
131 (prop) = BFI_ADAPTER_UNSUPP; \
[all …]
/linux-2.6.39/arch/powerpc/platforms/83xx/
Dusb.c33 const void *prop, *dr_mode; in mpc834x_usb_cfg() local
49 prop = of_get_property(np, "phy_type", NULL); in mpc834x_usb_cfg()
51 if (prop && (!strcmp(prop, "utmi") || in mpc834x_usb_cfg()
52 !strcmp(prop, "utmi_wide"))) { in mpc834x_usb_cfg()
56 } else if (prop && !strcmp(prop, "serial")) { in mpc834x_usb_cfg()
64 } else if (prop && !strcmp(prop, "ulpi")) { in mpc834x_usb_cfg()
75 prop = of_get_property(np, "port0", NULL); in mpc834x_usb_cfg()
76 if (prop) { in mpc834x_usb_cfg()
82 prop = of_get_property(np, "port1", NULL); in mpc834x_usb_cfg()
83 if (prop) { in mpc834x_usb_cfg()
[all …]
/linux-2.6.39/arch/sparc/kernel/
Dprom_64.c117 struct property *prop; in sun4u_path_component() local
119 prop = of_find_property(dp, "reg", NULL); in sun4u_path_component()
120 if (!prop) in sun4u_path_component()
123 regs = prop->value; in sun4u_path_component()
132 prop = of_find_property(dp, "upa-portid", NULL); in sun4u_path_component()
133 if (!prop) in sun4u_path_component()
134 prop = of_find_property(dp, "portid", NULL); in sun4u_path_component()
135 if (prop) { in sun4u_path_component()
143 *(u32 *)prop->value, in sun4u_path_component()
152 struct property *prop; in sbus_path_component() local
[all …]
Dprom_32.c81 struct property *prop; in sbus_path_component() local
83 prop = of_find_property(dp, "reg", NULL); in sbus_path_component()
84 if (!prop) in sbus_path_component()
87 regs = prop->value; in sbus_path_component()
98 struct property *prop; in pci_path_component() local
101 prop = of_find_property(dp, "reg", NULL); in pci_path_component()
102 if (!prop) in pci_path_component()
105 regs = prop->value; in pci_path_component()
123 struct property *prop; in ebus_path_component() local
125 prop = of_find_property(dp, "reg", NULL); in ebus_path_component()
[all …]
Dprom_common.c41 struct property *prop; in of_getintprop_default() local
44 prop = of_find_property(np, name, &len); in of_getintprop_default()
45 if (!prop || len != 4) in of_getintprop_default()
48 return *(int *) prop->value; in of_getintprop_default()
73 struct property *prop = *prevp; in of_set_property() local
75 if (!strcasecmp(prop->name, name)) { in of_set_property()
76 void *old_val = prop->value; in of_set_property()
83 prop->value = new_val; in of_set_property()
84 prop->length = len; in of_set_property()
86 if (OF_IS_DYNAMIC(prop)) in of_set_property()
[all …]
/linux-2.6.39/arch/powerpc/kernel/
Dprom_parse.c16 const unsigned char *prop; in of_parse_dma_window() local
23 prop = of_get_property(dn, "ibm,#dma-address-cells", NULL); in of_parse_dma_window()
24 if (!prop) in of_parse_dma_window()
25 prop = of_get_property(dn, "#address-cells", NULL); in of_parse_dma_window()
27 cells = prop ? *(u32 *)prop : of_n_addr_cells(dn); in of_parse_dma_window()
32 prop = of_get_property(dn, "ibm,#dma-size-cells", NULL); in of_parse_dma_window()
33 cells = prop ? *(u32 *)prop : of_n_size_cells(dn); in of_parse_dma_window()
Dbtext.c161 const u32 *prop; in btext_initialize() local
163 prop = of_get_property(np, "linux,bootx-width", NULL); in btext_initialize()
164 if (prop == NULL) in btext_initialize()
165 prop = of_get_property(np, "width", NULL); in btext_initialize()
166 if (prop == NULL) in btext_initialize()
168 width = *prop; in btext_initialize()
169 prop = of_get_property(np, "linux,bootx-height", NULL); in btext_initialize()
170 if (prop == NULL) in btext_initialize()
171 prop = of_get_property(np, "height", NULL); in btext_initialize()
172 if (prop == NULL) in btext_initialize()
[all …]
/linux-2.6.39/arch/microblaze/kernel/
Dprom_parse.c16 const unsigned char *prop; in of_parse_dma_window() local
23 prop = of_get_property(dn, "ibm,#dma-address-cells", NULL); in of_parse_dma_window()
24 if (!prop) in of_parse_dma_window()
25 prop = of_get_property(dn, "#address-cells", NULL); in of_parse_dma_window()
27 cells = prop ? *(u32 *)prop : of_n_addr_cells(dn); in of_parse_dma_window()
32 prop = of_get_property(dn, "ibm,#dma-size-cells", NULL); in of_parse_dma_window()
33 cells = prop ? *(u32 *)prop : of_n_size_cells(dn); in of_parse_dma_window()
/linux-2.6.39/drivers/net/can/sja1000/
Dsja1000_of_platform.c96 const u32 *prop; in sja1000_ofp_probe() local
138 prop = of_get_property(np, "nxp,external-clock-frequency", &prop_size); in sja1000_ofp_probe()
139 if (prop && (prop_size == sizeof(u32))) in sja1000_ofp_probe()
140 priv->can.clock.freq = *prop / 2; in sja1000_ofp_probe()
144 prop = of_get_property(np, "nxp,tx-output-mode", &prop_size); in sja1000_ofp_probe()
145 if (prop && (prop_size == sizeof(u32))) in sja1000_ofp_probe()
146 priv->ocr |= *prop & OCR_MODE_MASK; in sja1000_ofp_probe()
150 prop = of_get_property(np, "nxp,tx-output-config", &prop_size); in sja1000_ofp_probe()
151 if (prop && (prop_size == sizeof(u32))) in sja1000_ofp_probe()
152 priv->ocr |= (*prop << OCR_TX_SHIFT) & OCR_TX_MASK; in sja1000_ofp_probe()
[all …]
/linux-2.6.39/fs/openpromfs/
Dinode.c32 struct property *prop; member
67 struct property *prop = f->private; in property_show() local
71 len = prop->length; in property_show()
72 pval = prop->value; in property_show()
153 m->private = oi->u.prop; in property_open()
183 struct property *prop; in openpromfs_lookup() local
214 prop = dp->properties; in openpromfs_lookup()
215 while (prop) { in openpromfs_lookup()
216 int n = strlen(prop->name); in openpromfs_lookup()
218 if (len == n && !strncmp(prop->name, name, len)) { in openpromfs_lookup()
[all …]
/linux-2.6.39/arch/powerpc/sysdev/qe_lib/
Dqe.c74 const u32 *prop; in get_qe_base() local
86 prop = of_get_property(qe, "reg", &size); in get_qe_base()
87 if (prop && size >= sizeof(*prop)) in get_qe_base()
88 qebase = of_translate_address(qe, prop); in get_qe_base()
171 const u32 *prop; in qe_get_brg_clk() local
183 prop = of_get_property(qe, "brg-frequency", &size); in qe_get_brg_clk()
184 if (prop && size == sizeof(*prop)) in qe_get_brg_clk()
185 brg_clk = *prop; in qe_get_brg_clk()
520 struct property *prop; in qe_get_firmware_info() local
569 prop = of_find_property(fw, "extended-modes", NULL); in qe_get_firmware_info()
[all …]
/linux-2.6.39/drivers/of/
Dof_spi.c26 const __be32 *prop; in of_register_spi_devices() local
53 prop = of_get_property(nc, "reg", &len); in of_register_spi_devices()
54 if (!prop || len < sizeof(*prop)) { in of_register_spi_devices()
60 spi->chip_select = be32_to_cpup(prop); in of_register_spi_devices()
71 prop = of_get_property(nc, "spi-max-frequency", &len); in of_register_spi_devices()
72 if (!prop || len < sizeof(*prop)) { in of_register_spi_devices()
78 spi->max_speed_hz = be32_to_cpup(prop); in of_register_spi_devices()
/linux-2.6.39/arch/powerpc/platforms/pseries/
Ddlpar.c36 void dlpar_free_cc_property(struct property *prop) in dlpar_free_cc_property() argument
38 kfree(prop->name); in dlpar_free_cc_property()
39 kfree(prop->value); in dlpar_free_cc_property()
40 kfree(prop); in dlpar_free_cc_property()
45 struct property *prop; in dlpar_parse_cc_property() local
49 prop = kzalloc(sizeof(*prop), GFP_KERNEL); in dlpar_parse_cc_property()
50 if (!prop) in dlpar_parse_cc_property()
54 prop->name = kstrdup(name, GFP_KERNEL); in dlpar_parse_cc_property()
56 prop->length = ccwa->prop_length; in dlpar_parse_cc_property()
58 prop->value = kmemdup(value, prop->length, GFP_KERNEL); in dlpar_parse_cc_property()
[all …]
/linux-2.6.39/drivers/gpu/drm/i915/
Dintel_modes.c94 struct drm_property *prop; in intel_attach_broadcast_rgb_property() local
97 prop = dev_priv->broadcast_rgb_property; in intel_attach_broadcast_rgb_property()
98 if (prop == NULL) { in intel_attach_broadcast_rgb_property()
99 prop = drm_property_create(dev, DRM_MODE_PROP_ENUM, in intel_attach_broadcast_rgb_property()
102 if (prop == NULL) in intel_attach_broadcast_rgb_property()
106 drm_property_add_enum(prop, i, i, broadcast_rgb_names[i]); in intel_attach_broadcast_rgb_property()
108 dev_priv->broadcast_rgb_property = prop; in intel_attach_broadcast_rgb_property()
111 drm_connector_attach_property(connector, prop, 0); in intel_attach_broadcast_rgb_property()
/linux-2.6.39/arch/sparc/prom/
Dtree_32.c89 int prom_getproplen(phandle node, const char *prop) in prom_getproplen() argument
94 if((!node) || (!prop)) in prom_getproplen()
98 ret = prom_nodeops->no_proplen(node, prop); in prom_getproplen()
109 int prom_getproperty(phandle node, const char *prop, char *buffer, int bufsize) in prom_getproperty() argument
114 plen = prom_getproplen(node, prop); in prom_getproperty()
119 ret = prom_nodeops->no_getprop(node, prop, buffer); in prom_getproperty()
129 int prom_getint(phandle node, char *prop) in prom_getint() argument
133 if(prom_getproperty(node, prop, (char *) &intprop, sizeof(int)) != -1) in prom_getint()
155 int prom_getbool(phandle node, char *prop) in prom_getbool() argument
159 retval = prom_getproplen(node, prop); in prom_getbool()
[all …]
Dtree_64.c92 inline int prom_getproplen(phandle node, const char *prop) in prom_getproplen() argument
96 if (!node || !prop) in prom_getproplen()
103 args[4] = (unsigned long) prop; in prom_getproplen()
116 inline int prom_getproperty(phandle node, const char *prop, in prom_getproperty() argument
122 plen = prom_getproplen(node, prop); in prom_getproperty()
130 args[4] = (unsigned long) prop; in prom_getproperty()
144 inline int prom_getint(phandle node, const char *prop) in prom_getint() argument
148 if (prom_getproperty(node, prop, (char *) &intprop, sizeof(int)) != -1) in prom_getint()
172 int prom_getbool(phandle node, const char *prop) in prom_getbool() argument
176 retval = prom_getproplen(node, prop); in prom_getbool()
[all …]
/linux-2.6.39/scripts/dtc/libfdt/
Dfdt_sw.c193 struct fdt_property *prop; in fdt_property() local
202 prop = _fdt_grab_space(fdt, sizeof(*prop) + FDT_TAGALIGN(len)); in fdt_property()
203 if (! prop) in fdt_property()
206 prop->tag = cpu_to_fdt32(FDT_PROP); in fdt_property()
207 prop->nameoff = cpu_to_fdt32(nameoff); in fdt_property()
208 prop->len = cpu_to_fdt32(len); in fdt_property()
209 memcpy(prop->data, val, len); in fdt_property()
239 struct fdt_property *prop = in fdt_finish() local
240 fdt_offset_ptr_w(fdt, offset, sizeof(*prop)); in fdt_finish()
243 if (! prop) in fdt_finish()
[all …]
Dfdt_ro.c186 const struct fdt_property *prop; in fdt_get_property() local
212 prop = fdt_offset_ptr(fdt, offset, sizeof(*prop)); in fdt_get_property()
213 if (! prop) in fdt_get_property()
215 namestroff = fdt32_to_cpu(prop->nameoff); in fdt_get_property()
218 int len = fdt32_to_cpu(prop->len); in fdt_get_property()
219 prop = fdt_offset_ptr(fdt, offset, in fdt_get_property()
220 sizeof(*prop)+len); in fdt_get_property()
221 if (! prop) in fdt_get_property()
227 return prop; in fdt_get_property()
247 const struct fdt_property *prop; in fdt_getprop() local
[all …]
Dfdt_rw.c206 int len, struct fdt_property **prop) in _fdt_resize_property() argument
211 *prop = fdt_get_property_w(fdt, nodeoffset, name, &oldlen); in _fdt_resize_property()
212 if (! (*prop)) in _fdt_resize_property()
215 if ((err = _fdt_splice_struct(fdt, (*prop)->data, FDT_TAGALIGN(oldlen), in _fdt_resize_property()
219 (*prop)->len = cpu_to_fdt32(len); in _fdt_resize_property()
224 int len, struct fdt_property **prop) in _fdt_add_property() argument
238 *prop = _fdt_offset_ptr_w(fdt, nextoffset); in _fdt_add_property()
239 proplen = sizeof(**prop) + FDT_TAGALIGN(len); in _fdt_add_property()
241 err = _fdt_splice_struct(fdt, *prop, 0, proplen); in _fdt_add_property()
245 (*prop)->tag = cpu_to_fdt32(FDT_PROP); in _fdt_add_property()
[all …]

1234567