Home
last modified time | relevance | path

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

12345678910>>...21

/Linux-v5.4/drivers/soundwire/
Dmipi_disco.c32 struct sdw_master_prop *prop = &bus->prop; in sdw_master_read_prop() local
39 &prop->revision); in sdw_master_read_prop()
53 prop->clk_stop_modes |= BIT(SDW_CLK_STOP_MODE0); in sdw_master_read_prop()
57 prop->clk_stop_modes |= BIT(SDW_CLK_STOP_MODE1); in sdw_master_read_prop()
61 &prop->max_clk_freq); in sdw_master_read_prop()
65 prop->num_clk_freq = nval; in sdw_master_read_prop()
66 prop->clk_freq = devm_kcalloc(bus->dev, prop->num_clk_freq, in sdw_master_read_prop()
67 sizeof(*prop->clk_freq), in sdw_master_read_prop()
69 if (!prop->clk_freq) in sdw_master_read_prop()
74 prop->clk_freq, prop->num_clk_freq); in sdw_master_read_prop()
[all …]
/Linux-v5.4/scripts/dtc/
Dchecks.c63 struct property *prop, in check_msg() argument
74 if (prop && prop->srcpos) in check_msg()
75 pos = prop->srcpos; in check_msg()
93 if (prop) in check_msg()
94 xasprintf_append(&str, "%s:%s: ", node->fullpath, prop->name); in check_msg()
105 if (!prop && pos) { in check_msg()
126 #define FAIL_PROP(c, dti, node, prop, ...) \ argument
130 check_msg((c), dti, node, prop, __VA_ARGS__); \
201 struct property *prop; in check_is_string() local
204 prop = get_property(node, propname); in check_is_string()
[all …]
Dlivetree.c266 void add_property(struct node *node, struct property *prop) in add_property() argument
270 prop->next = NULL; in add_property()
276 *p = prop; in add_property()
281 struct property *prop = node->proplist; in delete_property_by_name() local
283 while (prop) { in delete_property_by_name()
284 if (streq(prop->name, name)) { in delete_property_by_name()
285 delete_property(prop); in delete_property_by_name()
288 prop = prop->next; in delete_property_by_name()
292 void delete_property(struct property *prop) in delete_property() argument
294 prop->deleted = 1; in delete_property()
[all …]
/Linux-v5.4/arch/powerpc/mm/
Ddrmem.c37 static struct property *clone_property(struct property *prop, u32 prop_sz) in clone_property() argument
45 new_prop->name = kstrdup(prop->name, GFP_KERNEL); in clone_property()
62 struct property *prop) in drmem_update_dt_v1() argument
69 new_prop = clone_property(prop, prop->length); in drmem_update_dt_v1()
101 struct property *prop) in drmem_update_dt_v2() argument
127 new_prop = clone_property(prop, prop_sz); in drmem_update_dt_v2()
172 struct property *prop; in drmem_update_dt() local
179 prop = of_find_property(memory, "ibm,dynamic-memory", NULL); in drmem_update_dt()
180 if (prop) { in drmem_update_dt()
181 rc = drmem_update_dt_v1(memory, prop); in drmem_update_dt()
[all …]
/Linux-v5.4/drivers/gpu/drm/
Ddrm_mode_config.c218 struct drm_property *prop; in drm_mode_create_standard_properties() local
225 prop = drm_property_create_enum(dev, DRM_MODE_PROP_IMMUTABLE, in drm_mode_create_standard_properties()
228 if (!prop) in drm_mode_create_standard_properties()
230 dev->mode_config.plane_type_property = prop; in drm_mode_create_standard_properties()
232 prop = drm_property_create_range(dev, DRM_MODE_PROP_ATOMIC, in drm_mode_create_standard_properties()
234 if (!prop) in drm_mode_create_standard_properties()
236 dev->mode_config.prop_src_x = prop; in drm_mode_create_standard_properties()
238 prop = drm_property_create_range(dev, DRM_MODE_PROP_ATOMIC, in drm_mode_create_standard_properties()
240 if (!prop) in drm_mode_create_standard_properties()
242 dev->mode_config.prop_src_y = prop; in drm_mode_create_standard_properties()
[all …]
Ddrm_blend.c201 struct drm_property *prop; in drm_plane_create_alpha_property() local
203 prop = drm_property_create_range(plane->dev, 0, "alpha", in drm_plane_create_alpha_property()
205 if (!prop) in drm_plane_create_alpha_property()
208 drm_object_attach_property(&plane->base, prop, DRM_BLEND_ALPHA_OPAQUE); in drm_plane_create_alpha_property()
209 plane->alpha_property = prop; in drm_plane_create_alpha_property()
264 struct drm_property *prop; in drm_plane_create_rotation_property() local
270 prop = drm_property_create_bitmask(plane->dev, 0, "rotation", in drm_plane_create_rotation_property()
273 if (!prop) in drm_plane_create_rotation_property()
276 drm_object_attach_property(&plane->base, prop, rotation); in drm_plane_create_rotation_property()
281 plane->rotation_property = prop; in drm_plane_create_rotation_property()
[all …]
/Linux-v5.4/scripts/kconfig/
Dsymbol.c70 struct property *prop; in sym_get_choice_prop() local
72 for_all_choices(sym, prop) in sym_get_choice_prop()
73 return prop; in sym_get_choice_prop()
79 struct property *prop; in sym_get_default_prop() local
81 for_all_defaults(sym, prop) { in sym_get_default_prop()
82 prop->visible.tri = expr_calc_value(prop->visible.expr); in sym_get_default_prop()
83 if (prop->visible.tri != no) in sym_get_default_prop()
84 return prop; in sym_get_default_prop()
91 struct property *prop; in sym_get_range_prop() local
93 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-v5.4/drivers/staging/greybus/
Dpower_supply.c18 enum power_supply_property prop; member
82 enum power_supply_property prop; member
85 struct gb_power_supply_prop *prop);
89 struct gb_power_supply_prop *prop);
92 { .prop = GB_POWER_SUPPLY_PROP_STATUS,
96 { .prop = GB_POWER_SUPPLY_PROP_TEMP,
100 { .prop = GB_POWER_SUPPLY_PROP_ONLINE,
108 int prop; in get_psp_from_gb_prop() local
112 prop = POWER_SUPPLY_PROP_STATUS; in get_psp_from_gb_prop()
115 prop = POWER_SUPPLY_PROP_CHARGE_TYPE; in get_psp_from_gb_prop()
[all …]
/Linux-v5.4/drivers/misc/cxl/
Dof.c19 const __be32 *prop; in read_prop_string() local
21 prop = of_get_property(np, prop_name, NULL); in read_prop_string()
22 if (cxl_verbose && prop) in read_prop_string()
23 pr_info("%s: %s\n", prop_name, (char *) prop); in read_prop_string()
24 return prop; in read_prop_string()
30 const __be32 *prop; in read_prop_dword() local
32 prop = of_get_property(np, prop_name, NULL); in read_prop_dword()
33 if (prop) in read_prop_dword()
34 *val = be32_to_cpu(prop[0]); in read_prop_dword()
35 if (cxl_verbose && prop) in read_prop_dword()
[all …]
/Linux-v5.4/arch/powerpc/platforms/83xx/
Dusb.c29 const void *prop, *dr_mode; in mpc834x_usb_cfg() local
45 prop = of_get_property(np, "phy_type", NULL); in mpc834x_usb_cfg()
47 if (prop && (!strcmp(prop, "utmi") || in mpc834x_usb_cfg()
48 !strcmp(prop, "utmi_wide"))) { in mpc834x_usb_cfg()
52 } else if (prop && !strcmp(prop, "serial")) { in mpc834x_usb_cfg()
60 } else if (prop && !strcmp(prop, "ulpi")) { in mpc834x_usb_cfg()
71 prop = of_get_property(np, "port0", NULL); in mpc834x_usb_cfg()
72 if (prop) { in mpc834x_usb_cfg()
78 prop = of_get_property(np, "port1", NULL); in mpc834x_usb_cfg()
79 if (prop) { in mpc834x_usb_cfg()
[all …]
/Linux-v5.4/arch/sparc/kernel/
Dprom_64.c112 struct property *prop; in sun4u_path_component() local
114 prop = of_find_property(dp, "reg", NULL); in sun4u_path_component()
115 if (!prop) in sun4u_path_component()
118 regs = prop->value; in sun4u_path_component()
127 prop = of_find_property(dp, "upa-portid", NULL); in sun4u_path_component()
128 if (!prop) in sun4u_path_component()
129 prop = of_find_property(dp, "portid", NULL); in sun4u_path_component()
130 if (prop) { in sun4u_path_component()
138 *(u32 *)prop->value, in sun4u_path_component()
148 struct property *prop; in sbus_path_component() local
[all …]
Dprom_32.c78 struct property *prop; in sbus_path_component() local
80 prop = of_find_property(dp, "reg", NULL); in sbus_path_component()
81 if (!prop) in sbus_path_component()
84 regs = prop->value; in sbus_path_component()
96 struct property *prop; in pci_path_component() local
99 prop = of_find_property(dp, "reg", NULL); in pci_path_component()
100 if (!prop) in pci_path_component()
103 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-v5.4/drivers/video/fbdev/omap2/omapfb/dss/
Domapdss-boot-init.c32 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()
54 prop->value = compat; in omapdss_update_prop()
55 prop->length = len; in omapdss_update_prop()
57 of_update_property(node, prop); in omapdss_update_prop()
[all …]
/Linux-v5.4/drivers/gpu/drm/omapdrm/dss/
Domapdss-boot-init.c32 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()
54 prop->value = compat; in omapdss_update_prop()
55 prop->length = len; in omapdss_update_prop()
57 of_update_property(node, prop); in omapdss_update_prop()
[all …]
/Linux-v5.4/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-v5.4/drivers/input/touchscreen/
Dof_touchscreen.c65 struct touchscreen_properties *prop) in touchscreen_parse_properties() argument
117 if (!prop) in touchscreen_parse_properties()
122 prop->max_x = input_abs_get_max(input, axis); in touchscreen_parse_properties()
123 prop->max_y = input_abs_get_max(input, axis + 1); in touchscreen_parse_properties()
125 prop->invert_x = in touchscreen_parse_properties()
127 if (prop->invert_x) { in touchscreen_parse_properties()
133 prop->invert_y = in touchscreen_parse_properties()
135 if (prop->invert_y) { in touchscreen_parse_properties()
141 prop->swap_x_y = in touchscreen_parse_properties()
143 if (prop->swap_x_y) in touchscreen_parse_properties()
[all …]
/Linux-v5.4/drivers/soc/fsl/qbman/
Ddpaa_sys.c42 struct property *prop; in qbman_init_private_mem() local
66 prop = of_find_property(mem_node, "reg", &len); in qbman_init_private_mem()
67 if (!prop) { in qbman_init_private_mem()
68 prop = devm_kzalloc(dev, sizeof(*prop), GFP_KERNEL); in qbman_init_private_mem()
69 if (!prop) in qbman_init_private_mem()
71 prop->value = res_array = devm_kzalloc(dev, sizeof(__be32) * 4, in qbman_init_private_mem()
73 if (!prop->value) in qbman_init_private_mem()
79 prop->length = sizeof(__be32) * 4; in qbman_init_private_mem()
80 prop->name = devm_kstrdup(dev, "reg", GFP_KERNEL); in qbman_init_private_mem()
81 if (!prop->name) in qbman_init_private_mem()
[all …]
/Linux-v5.4/drivers/base/
Dswnode.c94 property_entry_get(const struct property_entry *prop, const char *name) in property_entry_get() argument
96 if (!prop) in property_entry_get()
99 for (; prop->name; prop++) in property_entry_get()
100 if (!strcmp(name, prop->name)) in property_entry_get()
101 return prop; in property_entry_get()
107 property_set_pointer(struct property_entry *prop, const void *pointer) in property_set_pointer() argument
109 switch (prop->type) { in property_set_pointer()
111 if (prop->is_array) in property_set_pointer()
112 prop->pointer.u8_data = pointer; in property_set_pointer()
114 prop->value.u8_data = *((u8 *)pointer); in property_set_pointer()
[all …]
/Linux-v5.4/arch/powerpc/kernel/
Dima_kexec.c31 static int do_get_kexec_buffer(const void *prop, int len, unsigned long *addr, in do_get_kexec_buffer() argument
43 *addr = of_read_number(prop, addr_cells); in do_get_kexec_buffer()
44 *size = of_read_number(prop + 4 * addr_cells, size_cells); in do_get_kexec_buffer()
61 const void *prop; in ima_get_kexec_buffer() local
63 prop = of_get_property(of_chosen, "linux,ima-kexec-buffer", &len); in ima_get_kexec_buffer()
64 if (!prop) in ima_get_kexec_buffer()
67 ret = do_get_kexec_buffer(prop, len, &tmp_addr, &tmp_size); in ima_get_kexec_buffer()
85 struct property *prop; in ima_free_kexec_buffer() local
87 prop = of_find_property(of_chosen, "linux,ima-kexec-buffer", NULL); in ima_free_kexec_buffer()
88 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-v5.4/drivers/net/ethernet/brocade/bna/
Dbfa_defs_mfg_comm.h73 #define bfa_mfg_adapter_prop_init_gpio(gpio, card_type, prop) \ argument
76 (prop) |= BFI_ADAPTER_PROTO; \
81 (prop) |= BFI_ADAPTER_TTV; \
84 (prop) |= BFI_ADAPTER_SETP(NPORTS, 2); \
85 (prop) |= BFI_ADAPTER_SETP(SPEED, 8); \
89 (prop) |= BFI_ADAPTER_SETP(NPORTS, 1); \
90 (prop) |= BFI_ADAPTER_SETP(SPEED, 8); \
94 (prop) |= BFI_ADAPTER_SETP(NPORTS, 2); \
95 (prop) |= BFI_ADAPTER_SETP(SPEED, 4); \
99 (prop) |= BFI_ADAPTER_SETP(NPORTS, 1); \
[all …]
/Linux-v5.4/drivers/iio/adc/
Dqcom-spmi-adc5.c265 struct adc5_channel_prop *prop, u8 *data) in adc5_update_dig_param() argument
269 *data |= (prop->cal_val << ADC5_USR_DIG_PARAM_CAL_VAL_SHIFT); in adc5_update_dig_param()
273 *data |= (prop->cal_method << ADC5_USR_DIG_PARAM_CAL_SEL_SHIFT); in adc5_update_dig_param()
277 *data |= (prop->decimation << ADC5_USR_DIG_PARAM_DEC_RATIO_SEL_SHIFT); in adc5_update_dig_param()
281 struct adc5_channel_prop *prop) in adc5_configure() argument
292 adc5_update_dig_param(adc, prop, &buf[0]); in adc5_configure()
296 buf[1] |= prop->avg_samples; in adc5_configure()
299 buf[2] = prop->channel; in adc5_configure()
303 buf[3] |= prop->hw_settle_time; in adc5_configure()
318 struct adc5_channel_prop *prop, in adc5_do_conversion() argument
[all …]

12345678910>>...21