Home
last modified time | relevance | path

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

12345678910>>...23

/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/arch/powerpc/mm/
Ddrmem.c39 static struct property *clone_property(struct property *prop, u32 prop_sz) in clone_property() argument
47 new_prop->name = kstrdup(prop->name, GFP_KERNEL); in clone_property()
64 struct property *prop) in drmem_update_dt_v1() argument
71 new_prop = clone_property(prop, prop->length); in drmem_update_dt_v1()
103 struct property *prop) in drmem_update_dt_v2() argument
129 new_prop = clone_property(prop, prop_sz); in drmem_update_dt_v2()
174 struct property *prop; in drmem_update_dt() local
181 prop = of_find_property(memory, "ibm,dynamic-memory", NULL); in drmem_update_dt()
182 if (prop) { in drmem_update_dt()
183 rc = drmem_update_dt_v1(memory, prop); in drmem_update_dt()
[all …]
/kernel/linux/linux-5.10/scripts/kconfig/
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()
131 struct property *prop; in menu_add_prop() local
133 prop = xmalloc(sizeof(*prop)); in menu_add_prop()
134 memset(prop, 0, sizeof(*prop)); in menu_add_prop()
135 prop->type = type; in menu_add_prop()
136 prop->file = current_file; in menu_add_prop()
137 prop->lineno = zconf_lineno(); in menu_add_prop()
138 prop->menu = current_entry; in menu_add_prop()
139 prop->expr = expr; in menu_add_prop()
[all …]
Dsymbol.c76 struct property *prop; in sym_get_choice_prop() local
78 for_all_choices(sym, prop) in sym_get_choice_prop()
79 return prop; in sym_get_choice_prop()
85 struct property *prop; in sym_get_default_prop() local
87 for_all_defaults(sym, prop) { in sym_get_default_prop()
88 prop->visible.tri = expr_calc_value(prop->visible.expr); in sym_get_default_prop()
89 if (prop->visible.tri != no) in sym_get_default_prop()
90 return prop; in sym_get_default_prop()
97 struct property *prop; in sym_get_range_prop() local
99 for_all_properties(sym, prop, P_RANGE) { in sym_get_range_prop()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/gpu/drm/
Ddrm_mode_config.c220 struct drm_property *prop; in drm_mode_create_standard_properties() local
227 prop = drm_property_create_enum(dev, DRM_MODE_PROP_IMMUTABLE, in drm_mode_create_standard_properties()
230 if (!prop) in drm_mode_create_standard_properties()
232 dev->mode_config.plane_type_property = prop; in drm_mode_create_standard_properties()
234 prop = drm_property_create_range(dev, DRM_MODE_PROP_ATOMIC, in drm_mode_create_standard_properties()
236 if (!prop) in drm_mode_create_standard_properties()
238 dev->mode_config.prop_src_x = prop; in drm_mode_create_standard_properties()
240 prop = drm_property_create_range(dev, DRM_MODE_PROP_ATOMIC, in drm_mode_create_standard_properties()
242 if (!prop) in drm_mode_create_standard_properties()
244 dev->mode_config.prop_src_y = prop; in drm_mode_create_standard_properties()
[all …]
Ddrm_blend.c214 struct drm_property *prop; in drm_plane_create_alpha_property() local
216 prop = drm_property_create_range(plane->dev, 0, "alpha", in drm_plane_create_alpha_property()
218 if (!prop) in drm_plane_create_alpha_property()
221 drm_object_attach_property(&plane->base, prop, DRM_BLEND_ALPHA_OPAQUE); in drm_plane_create_alpha_property()
222 plane->alpha_property = prop; in drm_plane_create_alpha_property()
277 struct drm_property *prop; in drm_plane_create_rotation_property() local
283 prop = drm_property_create_bitmask(plane->dev, 0, "rotation", in drm_plane_create_rotation_property()
286 if (!prop) in drm_plane_create_rotation_property()
289 drm_object_attach_property(&plane->base, prop, rotation); in drm_plane_create_rotation_property()
294 plane->rotation_property = prop; in drm_plane_create_rotation_property()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/input/touchscreen/
Dof_touchscreen.c65 struct touchscreen_properties *prop) in touchscreen_parse_properties() argument
118 if (!prop) in touchscreen_parse_properties()
121 prop->max_x = input_abs_get_max(input, axis_x); in touchscreen_parse_properties()
122 prop->max_y = input_abs_get_max(input, axis_y); in touchscreen_parse_properties()
124 prop->invert_x = in touchscreen_parse_properties()
126 if (prop->invert_x) { in touchscreen_parse_properties()
132 prop->invert_y = in touchscreen_parse_properties()
134 if (prop->invert_y) { in touchscreen_parse_properties()
140 prop->swap_x_y = in touchscreen_parse_properties()
142 if (prop->swap_x_y) in touchscreen_parse_properties()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/arch/powerpc/kexec/
Dima.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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/arch/powerpc/kernel/
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()
Dbtext.c168 const u32 *prop; in btext_initialize() local
170 prop = of_get_property(np, "linux,bootx-width", NULL); in btext_initialize()
171 if (prop == NULL) in btext_initialize()
172 prop = of_get_property(np, "width", NULL); in btext_initialize()
173 if (prop == NULL) in btext_initialize()
175 width = *prop; in btext_initialize()
176 prop = of_get_property(np, "linux,bootx-height", NULL); in btext_initialize()
177 if (prop == NULL) in btext_initialize()
178 prop = of_get_property(np, "height", NULL); in btext_initialize()
179 if (prop == NULL) in btext_initialize()
[all …]
/kernel/linux/linux-5.10/drivers/iio/adc/
Dqcom-spmi-adc5.c281 struct adc5_channel_prop *prop, u8 *data) in adc5_update_dig_param() argument
285 *data |= (prop->cal_val << ADC5_USR_DIG_PARAM_CAL_VAL_SHIFT); in adc5_update_dig_param()
289 *data |= (prop->cal_method << ADC5_USR_DIG_PARAM_CAL_SEL_SHIFT); in adc5_update_dig_param()
293 *data |= (prop->decimation << ADC5_USR_DIG_PARAM_DEC_RATIO_SEL_SHIFT); in adc5_update_dig_param()
297 struct adc5_channel_prop *prop) in adc5_configure() argument
308 adc5_update_dig_param(adc, prop, &buf[0]); in adc5_configure()
312 buf[1] |= prop->avg_samples; in adc5_configure()
315 buf[2] = prop->channel; in adc5_configure()
319 buf[3] |= prop->hw_settle_time; in adc5_configure()
334 struct adc5_channel_prop *prop) in adc7_configure() argument
[all …]
/kernel/linux/linux-5.10/fs/openpromfs/
Dinode.c34 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()
155 m->private = oi->u.prop; in property_open()
185 struct property *prop; in openpromfs_lookup() local
217 prop = dp->properties; in openpromfs_lookup()
218 while (prop) { in openpromfs_lookup()
219 int n = strlen(prop->name); in openpromfs_lookup()
221 if (len == n && !strncmp(prop->name, name, len)) { in openpromfs_lookup()
[all …]

12345678910>>...23