Home
last modified time | relevance | path

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

12345678910>>...19

/Linux-v4.19/drivers/soundwire/
Dmipi_disco.c32 struct sdw_master_prop *prop = &bus->prop; in sdw_master_read_prop() local
38 "mipi-sdw-sw-interface-revision", &prop->revision); in sdw_master_read_prop()
52 prop->clk_stop_mode = SDW_CLK_STOP_MODE0; in sdw_master_read_prop()
56 prop->clk_stop_mode |= SDW_CLK_STOP_MODE1; in sdw_master_read_prop()
59 "mipi-sdw-max-clock-frequency", &prop->max_freq); in sdw_master_read_prop()
65 prop->num_freq = nval; in sdw_master_read_prop()
66 prop->freq = devm_kcalloc(bus->dev, prop->num_freq, in sdw_master_read_prop()
67 sizeof(*prop->freq), GFP_KERNEL); in sdw_master_read_prop()
68 if (!prop->freq) in sdw_master_read_prop()
73 prop->freq, prop->num_freq); in sdw_master_read_prop()
[all …]
/Linux-v4.19/scripts/dtc/
Dchecks.c77 struct property *prop, in check_msg() argument
90 if (prop) in check_msg()
91 fprintf(stderr, ":%s", prop->name); in check_msg()
107 #define FAIL_PROP(c, dti, node, prop, ...) \ argument
111 check_msg((c), dti, node, prop, __VA_ARGS__); \
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()
190 FAIL_PROP(c, dti, node, prop, "property is not a string"); in check_is_string()
[all …]
Dlivetree.c270 void add_property(struct node *node, struct property *prop) in add_property() argument
274 prop->next = NULL; in add_property()
280 *p = prop; in add_property()
285 struct property *prop = node->proplist; in delete_property_by_name() local
287 while (prop) { in delete_property_by_name()
288 if (streq(prop->name, name)) { in delete_property_by_name()
289 delete_property(prop); in delete_property_by_name()
292 prop = prop->next; in delete_property_by_name()
296 void delete_property(struct property *prop) in delete_property() argument
298 prop->deleted = 1; in delete_property()
[all …]
/Linux-v4.19/arch/powerpc/mm/
Ddrmem.c41 static struct property *clone_property(struct property *prop, u32 prop_sz) in clone_property() argument
49 new_prop->name = kstrdup(prop->name, GFP_KERNEL); in clone_property()
66 struct property *prop) in drmem_update_dt_v1() argument
73 new_prop = clone_property(prop, prop->length); in drmem_update_dt_v1()
105 struct property *prop) in drmem_update_dt_v2() argument
131 new_prop = clone_property(prop, prop_sz); in drmem_update_dt_v2()
176 struct property *prop; in drmem_update_dt() local
183 prop = of_find_property(memory, "ibm,dynamic-memory", NULL); in drmem_update_dt()
184 if (prop) { in drmem_update_dt()
185 rc = drmem_update_dt_v1(memory, prop); in drmem_update_dt()
[all …]
/Linux-v4.19/drivers/gpu/drm/
Ddrm_mode_config.c215 struct drm_property *prop; in drm_mode_create_standard_properties() local
222 prop = drm_property_create_enum(dev, DRM_MODE_PROP_IMMUTABLE, in drm_mode_create_standard_properties()
225 if (!prop) in drm_mode_create_standard_properties()
227 dev->mode_config.plane_type_property = prop; in drm_mode_create_standard_properties()
229 prop = drm_property_create_range(dev, DRM_MODE_PROP_ATOMIC, in drm_mode_create_standard_properties()
231 if (!prop) in drm_mode_create_standard_properties()
233 dev->mode_config.prop_src_x = prop; in drm_mode_create_standard_properties()
235 prop = drm_property_create_range(dev, DRM_MODE_PROP_ATOMIC, in drm_mode_create_standard_properties()
237 if (!prop) in drm_mode_create_standard_properties()
239 dev->mode_config.prop_src_y = prop; in drm_mode_create_standard_properties()
[all …]
Ddrm_blend.c130 struct drm_property *prop; in drm_plane_create_alpha_property() local
132 prop = drm_property_create_range(plane->dev, 0, "alpha", in drm_plane_create_alpha_property()
134 if (!prop) in drm_plane_create_alpha_property()
137 drm_object_attach_property(&plane->base, prop, DRM_BLEND_ALPHA_OPAQUE); in drm_plane_create_alpha_property()
138 plane->alpha_property = prop; in drm_plane_create_alpha_property()
193 struct drm_property *prop; in drm_plane_create_rotation_property() local
199 prop = drm_property_create_bitmask(plane->dev, 0, "rotation", in drm_plane_create_rotation_property()
202 if (!prop) in drm_plane_create_rotation_property()
205 drm_object_attach_property(&plane->base, prop, rotation); in drm_plane_create_rotation_property()
210 plane->rotation_property = prop; in drm_plane_create_rotation_property()
[all …]
/Linux-v4.19/scripts/kconfig/
Dsymbol.c72 struct property *prop; in sym_get_choice_prop() local
74 for_all_choices(sym, prop) in sym_get_choice_prop()
75 return prop; in sym_get_choice_prop()
81 struct property *prop; in sym_get_default_prop() local
83 for_all_defaults(sym, prop) { in sym_get_default_prop()
84 prop->visible.tri = expr_calc_value(prop->visible.expr); in sym_get_default_prop()
85 if (prop->visible.tri != no) in sym_get_default_prop()
86 return prop; in sym_get_default_prop()
93 struct property *prop; in sym_get_range_prop() local
95 for_all_properties(sym, prop, P_RANGE) { in sym_get_range_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 = 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()
164 prop->visible.expr in menu_add_prop()
165 = expr_alloc_and(prop->visible.expr, in menu_add_prop()
[all …]
/Linux-v4.19/drivers/staging/greybus/
Dpower_supply.c19 enum power_supply_property prop; member
83 enum power_supply_property prop; member
86 struct gb_power_supply_prop *prop);
90 struct gb_power_supply_prop *prop);
93 { .prop = GB_POWER_SUPPLY_PROP_STATUS,
97 { .prop = GB_POWER_SUPPLY_PROP_TEMP,
101 { .prop = GB_POWER_SUPPLY_PROP_ONLINE,
109 int prop; in get_psp_from_gb_prop() local
113 prop = POWER_SUPPLY_PROP_STATUS; in get_psp_from_gb_prop()
116 prop = POWER_SUPPLY_PROP_CHARGE_TYPE; in get_psp_from_gb_prop()
[all …]
/Linux-v4.19/drivers/misc/cxl/
Dof.c23 const __be32 *prop; in read_prop_string() local
25 prop = of_get_property(np, prop_name, NULL); in read_prop_string()
26 if (cxl_verbose && prop) in read_prop_string()
27 pr_info("%s: %s\n", prop_name, (char *) prop); in read_prop_string()
28 return prop; in read_prop_string()
34 const __be32 *prop; in read_prop_dword() local
36 prop = of_get_property(np, prop_name, NULL); in read_prop_dword()
37 if (prop) in read_prop_dword()
38 *val = be32_to_cpu(prop[0]); in read_prop_dword()
39 if (cxl_verbose && prop) in read_prop_dword()
[all …]
/Linux-v4.19/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-v4.19/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.c80 struct property *prop; in sbus_path_component() local
82 prop = of_find_property(dp, "reg", NULL); in sbus_path_component()
83 if (!prop) in sbus_path_component()
86 regs = prop->value; in sbus_path_component()
97 struct property *prop; in pci_path_component() local
100 prop = of_find_property(dp, "reg", NULL); in pci_path_component()
101 if (!prop) in pci_path_component()
104 regs = prop->value; in pci_path_component()
122 struct property *prop; in ebus_path_component() local
124 prop = of_find_property(dp, "reg", NULL); in ebus_path_component()
[all …]
/Linux-v4.19/drivers/gpu/drm/omapdrm/dss/
Domapdss-boot-init.c43 static int __init omapdss_count_strings(const struct property *prop) in omapdss_count_strings() argument
45 const char *p = prop->value; in omapdss_count_strings()
49 for (i = 0; total < prop->length; total += l, p += l, i++) in omapdss_count_strings()
58 struct property *prop; in omapdss_update_prop() local
60 prop = kzalloc(sizeof(*prop), GFP_KERNEL); in omapdss_update_prop()
61 if (!prop) in omapdss_update_prop()
64 prop->name = "compatible"; in omapdss_update_prop()
65 prop->value = compat; in omapdss_update_prop()
66 prop->length = len; in omapdss_update_prop()
68 of_update_property(node, prop); in omapdss_update_prop()
[all …]
/Linux-v4.19/drivers/video/fbdev/omap2/omapfb/dss/
Domapdss-boot-init.c43 static int __init omapdss_count_strings(const struct property *prop) in omapdss_count_strings() argument
45 const char *p = prop->value; in omapdss_count_strings()
49 for (i = 0; total < prop->length; total += l, p += l, i++) in omapdss_count_strings()
58 struct property *prop; in omapdss_update_prop() local
60 prop = kzalloc(sizeof(*prop), GFP_KERNEL); in omapdss_update_prop()
61 if (!prop) in omapdss_update_prop()
64 prop->name = "compatible"; in omapdss_update_prop()
65 prop->value = compat; in omapdss_update_prop()
66 prop->length = len; in omapdss_update_prop()
68 of_update_property(node, prop); in omapdss_update_prop()
[all …]
/Linux-v4.19/drivers/of/
Ddynamic.c92 pr->dn, pr->prop->name); in of_reconfig_notify()
112 struct property *prop, *old_prop = NULL; in of_reconfig_get_state_change() local
119 prop = of_find_property(pr->dn, "status", NULL); in of_reconfig_get_state_change()
123 prop = pr->prop; in of_reconfig_get_state_change()
126 prop = pr->prop; in of_reconfig_get_state_change()
139 if (prop && !strcmp(prop->name, "status")) { in of_reconfig_get_state_change()
141 status_state = !strcmp(prop->value, "okay") || in of_reconfig_get_state_change()
142 !strcmp(prop->value, "ok"); in of_reconfig_get_state_change()
189 struct property *prop, struct property *oldprop) in of_property_notify() argument
198 pr.prop = prop; in of_property_notify()
[all …]
Dresolver.c44 struct property *prop; in adjust_overlay_phandles() local
52 for_each_property_of_node(overlay, prop) { in adjust_overlay_phandles()
54 if (of_prop_cmp(prop->name, "phandle") && in adjust_overlay_phandles()
55 of_prop_cmp(prop->name, "linux,phandle")) in adjust_overlay_phandles()
58 if (prop->length < 4) in adjust_overlay_phandles()
61 phandle = be32_to_cpup(prop->value); in adjust_overlay_phandles()
65 *(__be32 *)prop->value = cpu_to_be32(overlay->phandle); in adjust_overlay_phandles()
76 struct property *prop; in update_usages_of_a_phandle_reference() local
114 for_each_property_of_node(refnode, prop) { in update_usages_of_a_phandle_reference()
115 if (!of_prop_cmp(prop->name, prop_name)) in update_usages_of_a_phandle_reference()
[all …]
Dproperty.c46 struct property *prop = of_find_property(np, propname, NULL); in of_property_count_elems_of_size() local
48 if (!prop) in of_property_count_elems_of_size()
50 if (!prop->value) in of_property_count_elems_of_size()
53 if (prop->length % elem_size != 0) { in of_property_count_elems_of_size()
59 return prop->length / elem_size; in of_property_count_elems_of_size()
81 struct property *prop = of_find_property(np, propname, NULL); in of_find_property_value_of_size() local
83 if (!prop) in of_find_property_value_of_size()
85 if (!prop->value) in of_find_property_value_of_size()
87 if (prop->length < min) in of_find_property_value_of_size()
89 if (max && prop->length > max) in of_find_property_value_of_size()
[all …]
/Linux-v4.19/drivers/gpu/drm/i915/
Dintel_modes.c84 struct drm_property *prop; in intel_attach_force_audio_property() local
86 prop = dev_priv->force_audio_property; in intel_attach_force_audio_property()
87 if (prop == NULL) { in intel_attach_force_audio_property()
88 prop = drm_property_create_enum(dev, 0, in intel_attach_force_audio_property()
92 if (prop == NULL) in intel_attach_force_audio_property()
95 dev_priv->force_audio_property = prop; in intel_attach_force_audio_property()
97 drm_object_attach_property(&connector->base, prop, 0); in intel_attach_force_audio_property()
111 struct drm_property *prop; in intel_attach_broadcast_rgb_property() local
113 prop = dev_priv->broadcast_rgb_property; in intel_attach_broadcast_rgb_property()
114 if (prop == NULL) { in intel_attach_broadcast_rgb_property()
[all …]
/Linux-v4.19/drivers/input/touchscreen/
Dof_touchscreen.c68 struct touchscreen_properties *prop) in touchscreen_parse_properties() argument
113 if (!prop) in touchscreen_parse_properties()
118 prop->max_x = input_abs_get_max(input, axis); in touchscreen_parse_properties()
119 prop->max_y = input_abs_get_max(input, axis + 1); in touchscreen_parse_properties()
120 prop->invert_x = in touchscreen_parse_properties()
122 prop->invert_y = in touchscreen_parse_properties()
124 prop->swap_x_y = in touchscreen_parse_properties()
127 if (prop->swap_x_y) in touchscreen_parse_properties()
133 touchscreen_apply_prop_to_x_y(const struct touchscreen_properties *prop, in touchscreen_apply_prop_to_x_y() argument
136 if (prop->invert_x) in touchscreen_apply_prop_to_x_y()
[all …]
/Linux-v4.19/arch/powerpc/kernel/
Dima_kexec.c35 static int do_get_kexec_buffer(const void *prop, int len, unsigned long *addr, in do_get_kexec_buffer() argument
47 *addr = of_read_number(prop, addr_cells); in do_get_kexec_buffer()
48 *size = of_read_number(prop + 4 * addr_cells, size_cells); in do_get_kexec_buffer()
65 const void *prop; in ima_get_kexec_buffer() local
67 prop = of_get_property(of_chosen, "linux,ima-kexec-buffer", &len); in ima_get_kexec_buffer()
68 if (!prop) in ima_get_kexec_buffer()
71 ret = do_get_kexec_buffer(prop, len, &tmp_addr, &tmp_size); in ima_get_kexec_buffer()
89 struct property *prop; in ima_free_kexec_buffer() local
91 prop = of_find_property(of_chosen, "linux,ima-kexec-buffer", NULL); in ima_free_kexec_buffer()
92 if (!prop) in ima_free_kexec_buffer()
[all …]
Dprom_parse.c16 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-v4.19/drivers/net/ethernet/brocade/bna/
Dbfa_defs_mfg_comm.h81 #define bfa_mfg_adapter_prop_init_gpio(gpio, card_type, prop) \ argument
84 (prop) |= BFI_ADAPTER_PROTO; \
89 (prop) |= BFI_ADAPTER_TTV; \
92 (prop) |= BFI_ADAPTER_SETP(NPORTS, 2); \
93 (prop) |= BFI_ADAPTER_SETP(SPEED, 8); \
97 (prop) |= BFI_ADAPTER_SETP(NPORTS, 1); \
98 (prop) |= BFI_ADAPTER_SETP(SPEED, 8); \
102 (prop) |= BFI_ADAPTER_SETP(NPORTS, 2); \
103 (prop) |= BFI_ADAPTER_SETP(SPEED, 4); \
107 (prop) |= BFI_ADAPTER_SETP(NPORTS, 1); \
[all …]
/Linux-v4.19/sound/soc/generic/
Dsimple-card-utils.c39 char prop[128]; in asoc_simple_card_parse_convert() local
45 snprintf(prop, sizeof(prop), "%s%s", prefix, "convert-rate"); in asoc_simple_card_parse_convert()
46 of_property_read_u32(np, prop, &data->convert_rate); in asoc_simple_card_parse_convert()
49 snprintf(prop, sizeof(prop), "%s%s", prefix, "convert-channels"); in asoc_simple_card_parse_convert()
50 of_property_read_u32(np, prop, &data->convert_channels); in asoc_simple_card_parse_convert()
137 char prop[128]; in asoc_simple_card_parse_card_name() local
139 snprintf(prop, sizeof(prop), "%sname", prefix); in asoc_simple_card_parse_card_name()
140 ret = snd_soc_of_parse_card_name(card, prop); in asoc_simple_card_parse_card_name()
387 char prop[128]; in asoc_simple_card_of_parse_routing() local
392 snprintf(prop, sizeof(prop), "%s%s", prefix, "routing"); in asoc_simple_card_of_parse_routing()
[all …]
/Linux-v4.19/drivers/base/
Dproperty.c47 const struct property_entry *prop; in pset_prop_get() local
52 for (prop = pset->properties; prop->name; prop++) in pset_prop_get()
53 if (!strcmp(name, prop->name)) in pset_prop_get()
54 return prop; in pset_prop_get()
59 static const void *property_get_pointer(const struct property_entry *prop) in property_get_pointer() argument
61 switch (prop->type) { in property_get_pointer()
63 if (prop->is_array) in property_get_pointer()
64 return prop->pointer.u8_data; in property_get_pointer()
65 return &prop->value.u8_data; in property_get_pointer()
67 if (prop->is_array) in property_get_pointer()
[all …]

12345678910>>...19