Home
last modified time | relevance | path

Searched +full:prop +full:- (Results 1 – 25 of 451) sorted by relevance

12345678910>>...19

/linux/scripts/dtc/
H A Dchecks.c1 // SPDX-License-Identifier: GPL-2.0-or-later
12 fprintf(stderr, "=== %s: ", (c)->name); \
63 struct property *prop, in check_msg() argument
71 if (!(c->warn && (quiet < 1)) && !(c->error && (quiet < 2))) in check_msg()
74 if (prop in check_msg()
127 FAIL_PROP(c,dti,node,prop,...) global() argument
210 struct property *prop; check_is_string() local
229 struct property *prop; check_is_string_list() local
257 struct property *prop; check_is_cell() local
293 struct property *prop, *prop2; check_duplicate_property_names() local
361 struct property *prop = get_property(node, "reg"); check_unit_address_vs_reg() local
387 struct property *prop; check_property_name_chars() local
403 struct property *prop; check_property_name_chars_strict() local
432 DESCLABEL_ARGS(node,prop,mark) global() argument
440 check_duplicate_label(struct check * c,struct dt_info * dti,const char * label,struct node * node,struct property * prop,struct marker * mark) check_duplicate_label() argument
469 struct property *prop; check_duplicate_label_node() local
490 struct property *prop; check_phandle_prop() local
572 struct property **pp, *prop = NULL; check_name_properties() local
607 struct property *prop; fixup_phandle_references() local
642 struct property *prop; fixup_path_references() local
695 struct property *prop; check_names_is_string_list() local
710 struct property *prop; check_alias_paths() local
735 struct property *prop; fixup_addr_size_cells() local
759 struct property *prop; check_reg_format() local
788 struct property *prop; check_ranges_format() local
835 struct property *prop; check_pci_bridge() local
876 struct property *prop; check_pci_device_bus_num() local
906 struct property *prop; check_pci_device_reg() local
953 struct property *prop; node_is_compatible() local
978 struct property *prop; check_simple_bus_reg() local
1050 struct property *prop; check_i2c_bus_reg() local
1111 struct property *prop; check_spi_bus_bridge() local
1140 struct property *prop; check_spi_bus_reg() local
1220 struct property *prop; check_avoid_unnecessary_addr_size() local
1243 struct property *prop; node_is_disabled() local
1313 struct property *prop; check_obsolete_chosen_interrupt_controller() local
1345 struct property *prop; check_chosen_node_bootargs() local
1362 struct property *prop; check_chosen_node_stdout_path() local
1389 check_property_phandle_args(struct check * c,struct dt_info * dti,struct node * node,struct property * prop,const struct provider * provider) check_property_phandle_args() argument
1471 struct property *prop; check_provider_cells_property() local
1501 prop_is_gpio(struct property * prop) prop_is_gpio() argument
1520 struct property *prop; check_gpios_property() local
1545 struct property *prop; check_deprecated_gpio_property() local
1563 struct property *prop; node_is_interrupt_provider() local
1580 struct property *prop; check_interrupt_provider() local
1603 struct property *prop, *irq_map_prop; check_interrupt_map() local
1692 struct property *irq_prop, *prop = NULL; check_interrupts_property() local
1797 struct property *prop; check_graph_reg() local
1845 struct property *prop; get_remote_endpoint() local
1900 struct property *prop = get_property(child, "reg"); check_graph_child_address() local
[all...]
H A Dlivetree.c1 // SPDX-License-Identifier: GPL-2.0-or-later
19 if (streq(new->label, label)) { in add_label()
20 new->deleted = 0; in add_label()
26 new->label = label; in add_label()
27 new->next = *labels; in add_label()
36 label->delete in delete_labels()
267 add_property(struct node * node,struct property * prop) add_property() argument
282 struct property *prop = node->proplist; delete_property_by_name() local
293 delete_property(struct property * prop) delete_property() argument
328 struct property *prop; delete_node() local
427 struct property *prop; get_property() local
436 propval_cell(struct property * prop) propval_cell() argument
442 propval_cell_n(struct property * prop,unsigned int n) propval_cell_n() argument
451 struct property *prop; get_property_by_label() local
475 get_marker_label(struct node * tree,const char * label,struct node ** node,struct property ** prop) get_marker_label() argument
743 struct property *prop, **tbl; sort_properties() local
902 struct property *prop; any_fixup_tree() local
922 add_fixup_entry(struct dt_info * dti,struct node * fn,struct node * node,struct property * prop,struct marker * m) add_fixup_entry() argument
953 struct property *prop; generate_fixups_tree_internal() local
973 struct property *prop; any_local_fixup_tree() local
994 add_local_fixup_entry(struct dt_info * dti,struct node * lfn,struct node * node,struct property * prop,struct marker * m,struct node * refnode) add_local_fixup_entry() argument
1034 struct property *prop; generate_local_fixups_tree_internal() local
[all...]
H A Dtreesource.c1 // SPDX-License-Identifier: GPL-2.0-or-later
22 yyin = current_srcfile->f; in dt_from_source()
51 const char *end = s + len - 1; in write_propval_string()
144 * - offsets are non-strictly monotonically increasing in add_string_markers()
145 * - fo in add_string_markers()
142 add_string_markers(struct property * prop) add_string_markers() argument
164 guess_value_type(struct property * prop) guess_value_type() argument
199 write_propval(FILE * f,struct property * prop) write_propval() argument
301 struct property *prop; write_tree_source_node() local
[all...]
/linux/arch/powerpc/mm/
H A Ddrmem.c1 // SPDX-License-Identifier: GPL-2.0-or-later
27 last_lmb = &drmem_info->lmbs[drmem_info->n_lmbs - 1]; in drmem_lmb_memory_max()
28 return last_lmb->base_addr + drmem_lmb_size(); in drmem_lmb_memory_max()
37 return lmb->flags & ~DRMEM_LMB_RESERVED; in drmem_lmb_flags()
40 static struct property *clone_property(struct property *prop, u32 prop_sz) in clone_property() argument
48 new_prop->name = kstrdup(prop->name, GFP_KERNEL); in clone_property()
49 new_prop->value = kzalloc(prop_sz, GFP_KERNEL); in clone_property()
50 if (!new_prop->name || !new_prop->value) { in clone_property()
51 kfree(new_prop->name); in clone_property()
52 kfree(new_prop->value); in clone_property()
[all …]
/linux/drivers/staging/greybus/
H A Dpower_supply.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright 2014-2015 Google Inc.
6 * Copyright 2014-2015 Linaro Ltd.
18 enum power_supply_property prop; member
63 #define POWER_SUPPLY_PROP_VOLTAGE_BOOT -1
66 #define POWER_SUPPLY_PROP_CURRENT_BOOT -1
69 #define POWER_SUPPLY_PROP_CALIBRATE -1
76 * back-off exponential
82 enum power_supply_property prop; member
85 struct gb_power_supply_prop *prop);
[all …]
/linux/drivers/soundwire/
H A Dmipi_disco.c1 // SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)
2 // Copyright(c) 2015-17 Intel Corporation.
47 * sdw_master_read_prop() - Read Master properties
52 struct sdw_master_prop *prop = &bus->prop; in sdw_master_read_prop() local
60 device_property_read_u32(bus->dev, in sdw_master_read_prop()
61 "mipi-sdw-sw-interface-revision", in sdw_master_read_prop()
62 &prop->revision); in sdw_master_read_prop()
66 "mipi-sdw-link-%d-subproperties", bus->link_id); in sdw_master_read_prop()
68 link = device_get_named_child_node(bus->dev, name); in sdw_master_read_prop()
70 dev_err(bus->dev, "Master node %s not found\n", name); in sdw_master_read_prop()
[all …]
/linux/drivers/base/test/
H A Dproperty-entry-test.c1 // SPDX-License-Identifier: GPL-2.0
13 PROPERTY_ENTRY_U8("prop-u8", 8), in pe_test_uints()
14 PROPERTY_ENTRY_U16("prop-u16", 16), in pe_test_uints()
15 PROPERTY_ENTRY_U32("prop-u32", 32), in pe_test_uints()
16 PROPERTY_ENTRY_U64("prop-u64", 64), in pe_test_uints()
30 error = fwnode_property_count_u8(node, "prop-u8"); in pe_test_uints()
33 error = fwnode_property_read_u8(node, "prop-u8", &val_u8); in pe_test_uints()
37 error = fwnode_property_read_u8_array(node, "prop-u8", array_u8, 1); in pe_test_uints()
41 error = fwnode_property_read_u8_array(node, "prop-u8", array_u8, 2); in pe_test_uints()
44 error = fwnode_property_read_u8(node, "no-prop-u8", &val_u8); in pe_test_uints()
[all …]
/linux/tools/testing/selftests/power_supply/
H A Dhelpers.sh2 # SPDX-License-Identifier: GPL-2.0
12 PROP="$1"
15 PROP_PATH="$SYSFS_SUPPLIES"/"$DEVNAME"/"$PROP"
16 TEST_NAME="$DEVNAME".sysfs."$PROP"
18 if [ -z "$VALUE" ]; then
19 ktap_test_result "$TEST_NAME" [ -f "$PROP_PATH" ]
21 ktap_test_result "$TEST_NAME" grep -q "$VALUE" "$PROP_PATH"
30 *[!0-9]* ) return ;; # Not a number
57 PROP=$1
59 PROP_PATH="$SYSFS_SUPPLIES"/"$DEVNAME"/"$PROP"
[all …]
/linux/scripts/kconfig/
H A Dmenu.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
22 * menu_next - return the next menu entry with depth-first traversal
24 * @root: root of the sub-tree to traverse. If NULL is given, the traveral
30 if (menu->list) in menu_next()
31 return menu->list; in menu_next()
33 while (menu != root && !menu->next) in menu_next()
34 menu = menu->parent; in menu_next()
39 return menu->next; in menu_next()
46 fprintf(stderr, "%s:%d:warning: ", menu->filename, menu->lineno); in menu_warn()
[all …]
H A Dparser.y1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
102 $$->filename, $$->lineno);
144 printd(DEBUG_PARSE, "%s:%d:config %s\n", cur_filename, cur_lineno, $2->name);
150 if (!current_entry->prompt) {
152 current_entry->filename, current_entry->lineno);
156 if (current_entry->sym->type != S_BOOLEAN) {
158 current_entry->filename, current_entry->lineno);
167 if (list_empty(&current_entry->sym->choice_link))
168 list_add_tail(&current_entry->sym->choice_link,
[all …]
H A Dsymbol.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
47 enum symbol_type type = sym->type; in sym_get_type()
74 * sym_get_prompt_menu - get the menu entry with a prompt
84 list_for_each_entry(m, &sym->menus, link) in sym_get_prompt_menu()
85 if (m->prompt) in sym_get_prompt_menu()
92 * sym_get_choice_menu - get the parent choice menu if present
111 menu = menu->parent; in sym_get_choice_menu()
112 } while (menu && !menu->sym); in sym_get_choice_menu()
114 if (menu && menu->sym && sym_is_choice(menu->sym)) in sym_get_choice_menu()
[all …]
/linux/drivers/video/fbdev/omap2/omapfb/dss/
H A Domapdss-boot-init.c1 // SPDX-License-Identifier: GPL-2.0-only
9 * DT-data in generic manner, we convert the compatible strings of the panel and
10 * encoder nodes from "panel-foo" to "omapdss,panel-foo". This way we can have
32 static int __init omapdss_count_strings(const struct property *prop) in omapdss_count_strings() argument
34 const char *p = prop->value; in omapdss_count_strings()
38 for (i = 0; total < prop->length; total += l, p += l, i++) in omapdss_count_strings()
47 struct property *prop; in omapdss_update_prop() local
49 prop = kzalloc(sizeof(*prop), GFP_KERNEL); in omapdss_update_prop()
50 if (!prop) in omapdss_update_prop()
53 prop->name = "compatible"; in omapdss_update_prop()
[all …]
/linux/drivers/of/
H A Ddynamic.c1 // SPDX-License-Identifier: GPL-2.0
28 * of_node_get() - Increment refcount of a node
37 kobject_get(&node->kobj); in of_node_get()
43 * of_node_put() - Decrement refcount of a node
50 kobject_put(&node->kobj); in of_node_put()
77 #define _do_print(func, prefix, action, node, prop, ...) ({ \ argument
78 func("changeset: " prefix "%-15s %pOF%s%s\n", \
80 prop ? ":" : "", prop ? prop->name : ""); \
90 of_changeset_action_debug("notify: ", action, pr->dn, pr->prop); in of_reconfig_notify()
97 * of_reconfig_get_state_change() - Returns new state of device
[all …]
H A Dkexec.c1 // SPDX-License-Identifier: GPL-2.0-only
27 * bootargs, kaslr-seed, rng-seed, useable-memory-range and elfcorehdr.
32 * fdt_find_and_del_mem_rsv - delete memory reservation with given address and size
50 return -EINVAL; in fdt_find_and_del_mem_rsv()
57 return -EINVAL; in fdt_find_and_del_mem_rsv()
64 return -ENOENT; in fdt_find_and_del_mem_rsv()
68 * get_addr_size_cells - Get address and size of root node
81 return -EINVAL; in get_addr_size_cells()
92 * do_get_kexec_buffer - Get address and size of device tree property
94 * @prop: Device tree property
[all …]
/linux/samples/rust/
H A Drust_driver_platform.rs1 // SPDX-License-Identifier: GPL-2.0
7 //! This demonstrates how to test an ACPI-based Rust platform driver using QEMU
36 //! iasl -tc ssdt.dsl
44 //! qemu-system-x86_64 -m 512M \
45 //! -enable-kv
136 let prop = fwnode.property_read::<CString>(name).required_by(dev)?; properties_parse() localVariable
140 let prop = fwnode.property_read_bool(c_str!("test,bool-prop")); properties_parse() localVariable
148 let prop = fwnode.property_read::<u32>(name).or(0x12); properties_parse() localVariable
157 let prop: u32 = fwnode.property_read(name).required_by(dev)?; properties_parse() localVariable
161 let prop: [i16; 4] = fwnode.property_read(name).required_by(dev)?; properties_parse() localVariable
167 let prop: KVec<i16> = fwnode.property_read_array_vec(name, 4)?.required_by(dev)?; properties_parse() localVariable
173 let prop: FwNodeReferenceArgs = child.property_get_reference_args(name, nargs, 0)?; properties_parse() localVariable
[all...]
/linux/fs/openpromfs/
H A Dinode.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright (C) 1996-1999 Jakub Jelinek (jakub@redhat.com)
34 struct property *prop; member
69 struct property *prop = f->private; in property_show() local
73 len = prop->length; in property_show()
74 pval = prop->value; in property_show()
84 len -= n + 1; in property_show()
92 len--; in property_show()
103 len -= 4; in property_show()
150 BUG_ON(oi->type != op_inode_prop); in property_open()
[all …]
/linux/arch/powerpc/platforms/83xx/
H A Dusb_834x.c1 // SPDX-License-Identifier: GPL-2.0-or-later
26 const void *prop, *dr_mode; in mpc834x_usb_cfg() local
30 return -ENOMEM; in mpc834x_usb_cfg()
38 np = of_find_compatible_node(NULL, NULL, "fsl-usb2-dr"); in mpc834x_usb_cfg()
42 prop = of_get_property(np, "phy_type", NULL); in mpc834x_usb_cfg()
44 if (prop && in mpc834x_usb_cfg()
45 (!strcmp(prop, "utmi") || !strcmp(prop, "utmi_wide"))) { in mpc834x_usb_cfg()
49 } else if (prop && !strcmp(prop, "serial")) { in mpc834x_usb_cfg()
57 } else if (prop && !strcmp(prop, "ulpi")) { in mpc834x_usb_cfg()
64 np = of_find_compatible_node(NULL, NULL, "fsl-usb2-mph"); in mpc834x_usb_cfg()
[all …]
/linux/sound/soc/codecs/
H A Dsdw-mockup.c1 // SPDX-License-Identifier: GPL-2.0-only
3 // sdw-mockup.c -- a mockup SoundWire codec for tests where only the host
59 struct snd_soc_component *component = dai->component; in sdw_mockup_pcm_hw_params()
67 return -EINVAL; in sdw_mockup_pcm_hw_params()
69 if (!sdw_mockup->slave) in sdw_mockup_pcm_hw_params()
70 return -EINVAL; in sdw_mockup_pcm_hw_params()
75 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in sdw_mockup_pcm_hw_params()
80 ret = sdw_stream_add_slave(sdw_mockup->slave, &stream_config, in sdw_mockup_pcm_hw_params()
83 dev_err(dai->dev, "Unable to configure port\n"); in sdw_mockup_pcm_hw_params()
91 struct snd_soc_component *component = dai->component; in sdw_mockup_pcm_hw_free()
[all …]
/linux/drivers/accel/habanalabs/common/mmu/
H A Dmmu_v2_hr.c1 // SPDX-License-Identifier: GPL-2.0
4 * Copyright 2020-2022 HabanaLabs, Ltd.
17 hash_for_each_possible(ctx->hr_mmu_phys_hash, pgt_info, node, in hl_mmu_v2_hr_get_pgt_info()
19 if (phys_hop_addr == pgt_info->phys_addr) in hl_mmu_v2_hr_get_pgt_info()
28 hash_add(ctx->hr_mmu_phys_hash, &pgt_info->node, phys_addr); in hl_mmu_v2_hr_add_pgt_info()
33 return &ctx->hdev->mmu_priv.hr.mmu_asid_hop0[ctx->asid]; in hl_mmu_v2_hr_get_hop0_pgt_info()
37 * hl_mmu_v2_hr_init() - initialize the MMU module.
41 * - Create a pool of pages for pgt_infos.
42 * - Create a shadow table for pgt
44 * Return: 0 for success, non-zero for failure.
[all …]
H A Dmmu_v1.c1 // SPDX-License-Identifier: GPL-2.0
4 * Copyright 2016-2019 HabanaLabs, Ltd.
20 mask = mmu_prop->hop_masks[hop_idx]; in get_hop_pte_addr()
21 shift = mmu_prop->hop_shifts[hop_idx]; in get_hop_pte_addr()
23 ctx->hdev->asic_prop.mmu_pte_size * ((virt_addr & mask) >> shift); in get_hop_pte_addr()
28 struct hl_device *hdev = ctx->hdev; in dram_default_mapping_init()
29 struct asic_fixed_properties *prop = &hdev->asic_prop; in dram_default_mapping_init() local
34 if ((!prop->dram_supports_virtual_memory) || in dram_default_mapping_init()
35 (!hdev->dram_default_page_mapping) || in dram_default_mapping_init()
36 (ctx->asid == HL_KERNEL_ASID_ID)) in dram_default_mapping_init()
[all …]
H A Dmmu.c1 // SPDX-License-Identifier: GPL-2.0
4 * Copyright 2016-2022 HabanaLabs, Ltd.
16 * hl_mmu_get_funcs() - get MMU functions structure
26 return &hdev->mmu_func[pgt_residency]; in hl_mmu_get_funcs()
31 struct asic_fixed_properties *prop = &hdev->asic_prop; in hl_is_dram_va() local
33 return hl_mem_area_inside_range(virt_addr, prop->dmmu.page_size, in hl_is_dram_va()
34 prop->dmmu.start_addr, in hl_is_dram_va()
35 prop->dmmu.end_addr); in hl_is_dram_va()
39 * hl_mmu_init() - initialize the MMU module.
42 * Return: 0 for success, non-zero for failure.
[all …]
/linux/scripts/dtc/libfdt/
H A Dfdt_rw.c1 // SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause)
3 * libfdt - Flat Device Tree manipulation
32 return -FDT_ERR_BADVERSION; in fdt_rw_probe_()
35 return -FDT_ERR_BADLAYOU in fdt_rw_probe_()
185 fdt_resize_property_(void * fdt,int nodeoffset,const char * name,int len,struct fdt_property ** prop) fdt_resize_property_() argument
203 fdt_add_property_(void * fdt,int nodeoffset,const char * name,int len,struct fdt_property ** prop) fdt_add_property_() argument
261 struct fdt_property *prop; fdt_setprop_placeholder() local
294 struct fdt_property *prop; fdt_appendprop() local
320 struct fdt_property *prop; fdt_delprop() local
[all...]
/linux/arch/powerpc/kernel/
H A Dprom_parse.c1 // SPDX-License-Identifier: GPL-2.0
16 const __be32 *prop; in of_parse_dma_window() local
22 prop = of_get_property(dn, "ibm,#dma-address-cells", NULL); in of_parse_dma_window()
23 if (!prop) in of_parse_dma_window()
24 prop = of_get_property(dn, "#address-cells", NULL); in of_parse_dma_window()
26 cells = prop ? of_read_number(prop, 1) : of_n_addr_cells(dn); in of_parse_dma_window()
31 prop = of_get_property(dn, "ibm,#dma-size-cells", NULL); in of_parse_dma_window()
32 cells = prop ? of_read_number(prop, 1) : of_n_size_cells(dn); in of_parse_dma_window()
/linux/tools/testing/selftests/bpf/
H A Djson_writer.c1 // SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause)
32 for (i = 0; i < self->depth; ++i) in jsonw_indent()
33 fputs(" ", self->out); in jsonw_indent()
39 if (!self->pretty) in jsonw_eol()
42 putc('\n', self->out); in jsonw_eol()
49 if (self->sep != '\0') in jsonw_eor()
50 putc(self->sep, self->out); in jsonw_eor()
51 self->sep = ','; in jsonw_eor()
59 putc('"', self->out); in jsonw_puts()
63 fputs("\\t", self->out); in jsonw_puts()
[all …]
/linux/tools/bpf/bpftool/
H A Djson_writer.c1 // SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause)
32 for (i = 0; i < self->depth; ++i) in jsonw_indent()
33 fputs(" ", self->out); in jsonw_indent()
39 if (!self->pretty) in jsonw_eol()
42 putc('\n', self->out); in jsonw_eol()
49 if (self->sep != '\0') in jsonw_eor()
50 putc(self->sep, self->out); in jsonw_eor()
51 self->sep = ','; in jsonw_eor()
59 putc('"', self->out); in jsonw_puts()
63 fputs("\\t", self->out); in jsonw_puts()
[all …]

12345678910>>...19