Home
last modified time | relevance | path

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

12345678910>>...23

/linux-6.12.1/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()
76 prop->clk_freq, prop->num_clk_freq); in sdw_master_read_prop()
[all …]
/linux-6.12.1/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()
127 #define FAIL_PROP(c, dti, node, prop, ...) \ argument
131 check_msg((c), dti, node, prop, __VA_ARGS__); \
210 struct property *prop; in check_is_string() local
213 prop = get_property(node, propname); in check_is_string()
[all …]
Dtreesource.c142 static void add_string_markers(struct property *prop) in add_string_markers() argument
144 int l, len = prop->val.len; in add_string_markers()
145 const char *p = prop->val.val; in add_string_markers()
157 nextp = &prop->val.markers; in add_string_markers()
164 static enum markertype guess_value_type(struct property *prop) in guess_value_type() argument
166 int len = prop->val.len; in guess_value_type()
167 const char *p = prop->val.val; in guess_value_type()
168 struct marker *m = prop->val.markers; in guess_value_type()
181 if ((m->offset > 0) && (prop->val.val[m->offset - 1] != '\0')) in guess_value_type()
190 add_string_markers(prop); in guess_value_type()
[all …]
Dlivetree.c267 void add_property(struct node *node, struct property *prop) in add_property() argument
271 prop->next = NULL; in add_property()
277 *p = prop; in add_property()
282 struct property *prop = node->proplist; in delete_property_by_name() local
284 while (prop) { in delete_property_by_name()
285 if (streq(prop->name, name)) { in delete_property_by_name()
286 delete_property(prop); in delete_property_by_name()
289 prop = prop->next; in delete_property_by_name()
293 void delete_property(struct property *prop) in delete_property() argument
295 prop->deleted = 1; in delete_property()
[all …]
/linux-6.12.1/arch/powerpc/mm/
Ddrmem.c40 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()
65 struct property *prop) in drmem_update_dt_v1() argument
72 new_prop = clone_property(prop, prop->length); in drmem_update_dt_v1()
104 struct property *prop) in drmem_update_dt_v2() argument
130 new_prop = clone_property(prop, prop_sz); in drmem_update_dt_v2()
175 struct property *prop; in drmem_update_dt() local
187 prop = of_find_property(memory, "ibm,dynamic-memory", NULL); in drmem_update_dt()
188 if (prop) { in drmem_update_dt()
189 rc = drmem_update_dt_v1(memory, prop); in drmem_update_dt()
[all …]
/linux-6.12.1/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-6.12.1/drivers/gpu/drm/
Ddrm_mode_config.c221 struct drm_property *prop; in drm_mode_create_standard_properties() local
228 prop = drm_property_create_enum(dev, DRM_MODE_PROP_IMMUTABLE, in drm_mode_create_standard_properties()
231 if (!prop) in drm_mode_create_standard_properties()
233 dev->mode_config.plane_type_property = 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_x = prop; in drm_mode_create_standard_properties()
241 prop = drm_property_create_range(dev, DRM_MODE_PROP_ATOMIC, in drm_mode_create_standard_properties()
243 if (!prop) in drm_mode_create_standard_properties()
245 dev->mode_config.prop_src_y = prop; in drm_mode_create_standard_properties()
[all …]
Ddrm_blend.c221 struct drm_property *prop; in drm_plane_create_alpha_property() local
223 prop = drm_property_create_range(plane->dev, 0, "alpha", in drm_plane_create_alpha_property()
225 if (!prop) in drm_plane_create_alpha_property()
228 drm_object_attach_property(&plane->base, prop, DRM_BLEND_ALPHA_OPAQUE); in drm_plane_create_alpha_property()
229 plane->alpha_property = prop; in drm_plane_create_alpha_property()
284 struct drm_property *prop; in drm_plane_create_rotation_property() local
290 prop = drm_property_create_bitmask(plane->dev, 0, "rotation", in drm_plane_create_rotation_property()
293 if (!prop) in drm_plane_create_rotation_property()
296 drm_object_attach_property(&plane->base, prop, rotation); in drm_plane_create_rotation_property()
301 plane->rotation_property = prop; in drm_plane_create_rotation_property()
[all …]
/linux-6.12.1/drivers/of/
Ddynamic.c77 #define _do_print(func, prefix, action, node, prop, ...) ({ \ argument
80 prop ? ":" : "", prop ? prop->name : ""); \
90 of_changeset_action_debug("notify: ", action, pr->dn, pr->prop); in of_reconfig_notify()
109 struct property *prop, *old_prop = NULL; in of_reconfig_get_state_change() local
116 prop = of_find_property(pr->dn, "status", NULL); in of_reconfig_get_state_change()
120 prop = pr->prop; in of_reconfig_get_state_change()
123 prop = pr->prop; in of_reconfig_get_state_change()
136 if (prop && !strcmp(prop->name, "status")) { in of_reconfig_get_state_change()
138 status_state = !strcmp(prop->value, "okay") || in of_reconfig_get_state_change()
139 !strcmp(prop->value, "ok"); in of_reconfig_get_state_change()
[all …]
Dresolver.c45 struct property *prop; in adjust_overlay_phandles() local
53 for_each_property_of_node(overlay, prop) { in adjust_overlay_phandles()
55 if (of_prop_cmp(prop->name, "phandle") && in adjust_overlay_phandles()
56 of_prop_cmp(prop->name, "linux,phandle")) in adjust_overlay_phandles()
59 if (prop->length < 4) in adjust_overlay_phandles()
62 phandle = be32_to_cpup(prop->value); in adjust_overlay_phandles()
66 *(__be32 *)prop->value = cpu_to_be32(overlay->phandle); in adjust_overlay_phandles()
77 struct property *prop; in update_usages_of_a_phandle_reference() local
111 for_each_property_of_node(refnode, prop) { in update_usages_of_a_phandle_reference()
112 if (!of_prop_cmp(prop->name, prop_name)) in update_usages_of_a_phandle_reference()
[all …]
Dkexec.c101 static int do_get_kexec_buffer(const void *prop, int len, unsigned long *addr, in do_get_kexec_buffer() argument
113 *addr = of_read_number(prop, addr_cells); in do_get_kexec_buffer()
114 *size = of_read_number(prop + 4 * addr_cells, size_cells); in do_get_kexec_buffer()
133 const void *prop; in ima_get_kexec_buffer() local
135 prop = of_get_property(of_chosen, "linux,ima-kexec-buffer", &len); in ima_get_kexec_buffer()
136 if (!prop) in ima_get_kexec_buffer()
139 ret = do_get_kexec_buffer(prop, len, &tmp_addr, &tmp_size); in ima_get_kexec_buffer()
173 struct property *prop; in ima_free_kexec_buffer() local
175 prop = of_find_property(of_chosen, "linux,ima-kexec-buffer", NULL); in ima_free_kexec_buffer()
176 if (!prop) in ima_free_kexec_buffer()
[all …]
/linux-6.12.1/scripts/kconfig/
Dmenu.c52 static void prop_warn(const struct property *prop, const char *fmt, ...) in prop_warn() argument
56 fprintf(stderr, "%s:%d:warning: ", prop->filename, prop->lineno); in prop_warn()
153 struct property *prop; in menu_add_prop() local
155 prop = xmalloc(sizeof(*prop)); in menu_add_prop()
156 memset(prop, 0, sizeof(*prop)); in menu_add_prop()
157 prop->type = type; in menu_add_prop()
158 prop->filename = cur_filename; in menu_add_prop()
159 prop->lineno = cur_lineno; in menu_add_prop()
160 prop->menu = current_entry; in menu_add_prop()
161 prop->expr = expr; in menu_add_prop()
[all …]
Dsymbol.c110 struct property *prop; in sym_get_default_prop() local
112 for_all_defaults(sym, prop) { in sym_get_default_prop()
113 prop->visible.tri = expr_calc_value(prop->visible.expr); in sym_get_default_prop()
114 if (prop->visible.tri != no) in sym_get_default_prop()
115 return prop; in sym_get_default_prop()
122 struct property *prop; in sym_get_range_prop() local
124 for_all_properties(sym, prop, P_RANGE) { in sym_get_range_prop()
125 prop->visible.tri = expr_calc_value(prop->visible.expr); in sym_get_range_prop()
126 if (prop->visible.tri != no) in sym_get_range_prop()
127 return prop; in sym_get_range_prop()
[all …]
Dparser.y501 struct property *prop; variable
504 for (prop = menu->sym->prop; prop; prop = prop->next) {
505 if (prop->type == P_DEFAULT) {
507 prop->filename, prop->lineno,
512 if (prop->menu != menu && prop->type == P_PROMPT &&
513 prop->menu->parent != menu->parent) {
515 prop->filename, prop->lineno,
649 struct property *prop; in print_symbol() local
675 for (prop = sym->prop; prop; prop = prop->next) { in print_symbol()
676 if (prop->menu != menu) in print_symbol()
[all …]
/linux-6.12.1/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-6.12.1/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-6.12.1/drivers/input/
Dtouchscreen.c66 struct touchscreen_properties *prop) in touchscreen_parse_properties() argument
119 if (!prop) in touchscreen_parse_properties()
122 prop->max_x = input_abs_get_max(input, axis_x); in touchscreen_parse_properties()
123 prop->max_y = input_abs_get_max(input, axis_y); 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-6.12.1/arch/powerpc/platforms/83xx/
Dusb_834x.c26 const void *prop, *dr_mode; in mpc834x_usb_cfg() local
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()
68 prop = of_get_property(np, "port0", NULL); in mpc834x_usb_cfg()
69 if (prop) { in mpc834x_usb_cfg()
74 prop = of_get_property(np, "port1", NULL); in mpc834x_usb_cfg()
75 if (prop) { in mpc834x_usb_cfg()
/linux-6.12.1/drivers/platform/x86/amd/pmf/
Dsps.c70 pr_debug("SPL: %u mW\n", data->prop[i][j].spl); in amd_pmf_dump_sps_defaults()
71 pr_debug("SPPT: %u mW\n", data->prop[i][j].sppt); in amd_pmf_dump_sps_defaults()
72 pr_debug("SPPT_ApuOnly: %u mW\n", data->prop[i][j].sppt_apu_only); in amd_pmf_dump_sps_defaults()
73 pr_debug("FPPT: %u mW\n", data->prop[i][j].fppt); in amd_pmf_dump_sps_defaults()
74 pr_debug("STTMinLimit: %u mW\n", data->prop[i][j].stt_min); in amd_pmf_dump_sps_defaults()
76 data->prop[i][j].stt_skin_temp[STT_TEMP_APU]); in amd_pmf_dump_sps_defaults()
78 data->prop[i][j].stt_skin_temp[STT_TEMP_HS2]); in amd_pmf_dump_sps_defaults()
176 config_store.prop[i][j].spl = output.prop[idx].spl; in amd_pmf_load_defaults_sps()
177 config_store.prop[i][j].sppt = output.prop[idx].sppt; in amd_pmf_load_defaults_sps()
178 config_store.prop[i][j].sppt_apu_only = in amd_pmf_load_defaults_sps()
[all …]
/linux-6.12.1/sound/soc/codecs/
Dsdw-mockup.c135 struct sdw_slave_prop *prop = &slave->prop; in sdw_mockup_read_prop() local
142 prop->paging_support = false; in sdw_mockup_read_prop()
151 prop->source_ports = BIT(8); in sdw_mockup_read_prop()
152 prop->sink_ports = BIT(1); in sdw_mockup_read_prop()
154 nval = hweight32(prop->source_ports); in sdw_mockup_read_prop()
155 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, in sdw_mockup_read_prop()
156 sizeof(*prop->src_dpn_prop), in sdw_mockup_read_prop()
158 if (!prop->src_dpn_prop) in sdw_mockup_read_prop()
162 dpn = prop->src_dpn_prop; in sdw_mockup_read_prop()
163 addr = prop->source_ports; in sdw_mockup_read_prop()
[all …]
/linux-6.12.1/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-6.12.1/drivers/iio/adc/
Dqcom-spmi-adc5.c221 struct adc5_channel_prop *prop, u8 *data) in adc5_update_dig_param() argument
225 *data |= (prop->cal_val << ADC5_USR_DIG_PARAM_CAL_VAL_SHIFT); in adc5_update_dig_param()
229 *data |= (prop->cal_method << ADC5_USR_DIG_PARAM_CAL_SEL_SHIFT); in adc5_update_dig_param()
233 *data |= (prop->decimation << ADC5_USR_DIG_PARAM_DEC_RATIO_SEL_SHIFT); in adc5_update_dig_param()
237 struct adc5_channel_prop *prop) in adc5_configure() argument
248 adc5_update_dig_param(adc, prop, &buf[0]); in adc5_configure()
252 buf[1] |= prop->avg_samples; in adc5_configure()
255 buf[2] = prop->channel; in adc5_configure()
259 buf[3] |= prop->hw_settle_time; in adc5_configure()
274 struct adc5_channel_prop *prop) in adc7_configure() argument
[all …]
/linux-6.12.1/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()
/linux-6.12.1/arch/riscv/kernel/pi/
Dfdt_early.c12 fdt64_t *prop; in get_kaslr_seed() local
19 prop = fdt_getprop_w((void *)dtb_pa, node, "kaslr-seed", &len); in get_kaslr_seed()
20 if (!prop || len != sizeof(u64)) in get_kaslr_seed()
23 ret = fdt64_to_cpu(*prop); in get_kaslr_seed()
24 *prop = 0; in get_kaslr_seed()
139 const void *prop; in early_cpu_isa_ext_available() local
142 prop = fdt_getprop(fdt, node, "riscv,isa-extensions", &len); in early_cpu_isa_ext_available()
143 if (prop && fdt_stringlist_contains(prop, len, ext_name)) in early_cpu_isa_ext_available()
146 prop = fdt_getprop(fdt, node, "riscv,isa", &len); in early_cpu_isa_ext_available()
147 if (prop && isa_string_contains(prop, ext_name)) in early_cpu_isa_ext_available()

12345678910>>...23