Home
last modified time | relevance | path

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

12345678910>>...23

/linux-5.19.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 …]
/linux-5.19.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__); \
209 struct property *prop; in check_is_string() local
212 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-5.19.10/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-5.19.10/scripts/kconfig/
Dmenu.c32 static void prop_warn(struct property *prop, const char *fmt, ...) in prop_warn() argument
36 fprintf(stderr, "%s:%d:warning: ", prop->file->name, prop->lineno); in prop_warn()
132 struct property *prop; in menu_add_prop() local
134 prop = xmalloc(sizeof(*prop)); in menu_add_prop()
135 memset(prop, 0, sizeof(*prop)); in menu_add_prop()
136 prop->type = type; in menu_add_prop()
137 prop->file = current_file; in menu_add_prop()
138 prop->lineno = zconf_lineno(); in menu_add_prop()
139 prop->menu = current_entry; in menu_add_prop()
140 prop->expr = expr; in menu_add_prop()
[all …]
Dsymbol.c75 struct property *prop; in sym_get_choice_prop() local
77 for_all_choices(sym, prop) in sym_get_choice_prop()
78 return prop; in sym_get_choice_prop()
84 struct property *prop; in sym_get_default_prop() local
86 for_all_defaults(sym, prop) { in sym_get_default_prop()
87 prop->visible.tri = expr_calc_value(prop->visible.expr); in sym_get_default_prop()
88 if (prop->visible.tri != no) in sym_get_default_prop()
89 return prop; in sym_get_default_prop()
96 struct property *prop; in sym_get_range_prop() local
98 for_all_properties(sym, prop, P_RANGE) { in sym_get_range_prop()
[all …]
/linux-5.19.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 …]
/linux-5.19.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 …]
/linux-5.19.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.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-5.19.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 …]
/linux-5.19.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 …]
/linux-5.19.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 …]
/linux-5.19.10/drivers/of/
Ddynamic.c92 pr->dn, pr->prop->name); in of_reconfig_notify()
113 struct property *prop, *old_prop = NULL; in of_reconfig_get_state_change() local
120 prop = of_find_property(pr->dn, "status", NULL); in of_reconfig_get_state_change()
124 prop = pr->prop; in of_reconfig_get_state_change()
127 prop = pr->prop; in of_reconfig_get_state_change()
140 if (prop && !strcmp(prop->name, "status")) { in of_reconfig_get_state_change()
142 status_state = !strcmp(prop->value, "okay") || in of_reconfig_get_state_change()
143 !strcmp(prop->value, "ok"); in of_reconfig_get_state_change()
190 struct property *prop, struct property *oldprop) in of_property_notify() argument
199 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 …]
Dkexec.c100 static int do_get_kexec_buffer(const void *prop, int len, unsigned long *addr, in do_get_kexec_buffer() argument
112 *addr = of_read_number(prop, addr_cells); in do_get_kexec_buffer()
113 *size = of_read_number(prop + 4 * addr_cells, size_cells); in do_get_kexec_buffer()
131 const void *prop; in ima_get_kexec_buffer() local
136 prop = of_get_property(of_chosen, "linux,ima-kexec-buffer", &len); in ima_get_kexec_buffer()
137 if (!prop) in ima_get_kexec_buffer()
140 ret = do_get_kexec_buffer(prop, len, &tmp_addr, &tmp_size); in ima_get_kexec_buffer()
174 struct property *prop; in ima_free_kexec_buffer() local
179 prop = of_find_property(of_chosen, "linux,ima-kexec-buffer", NULL); in ima_free_kexec_buffer()
180 if (!prop) in ima_free_kexec_buffer()
[all …]
/linux-5.19.10/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-5.19.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 …]
/linux-5.19.10/drivers/misc/habanalabs/common/mmu/
Dmmu.c28 struct asic_fixed_properties *prop = &hdev->asic_prop; in hl_is_dram_va() local
30 return hl_mem_area_inside_range(virt_addr, prop->dmmu.page_size, in hl_is_dram_va()
31 prop->dmmu.start_addr, in hl_is_dram_va()
32 prop->dmmu.end_addr); in hl_is_dram_va()
175 struct asic_fixed_properties *prop = &hdev->asic_prop; in hl_mmu_get_prop() local
178 return &prop->dmmu; in hl_mmu_get_prop()
179 else if ((page_size % prop->pmmu_huge.page_size) == 0) in hl_mmu_get_prop()
180 return &prop->pmmu_huge; in hl_mmu_get_prop()
182 return &prop->pmmu; in hl_mmu_get_prop()
360 struct asic_fixed_properties *prop = &hdev->asic_prop; in hl_mmu_map_contiguous() local
[all …]
/linux-5.19.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 …]
/linux-5.19.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()
/linux-5.19.10/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-5.19.10/sound/soc/codecs/
Dsdw-mockup.c172 struct sdw_slave_prop *prop = &slave->prop; in sdw_mockup_read_prop() local
179 prop->paging_support = false; in sdw_mockup_read_prop()
188 prop->source_ports = BIT(8); in sdw_mockup_read_prop()
189 prop->sink_ports = BIT(1); in sdw_mockup_read_prop()
191 nval = hweight32(prop->source_ports); in sdw_mockup_read_prop()
192 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, in sdw_mockup_read_prop()
193 sizeof(*prop->src_dpn_prop), in sdw_mockup_read_prop()
195 if (!prop->src_dpn_prop) in sdw_mockup_read_prop()
199 dpn = prop->src_dpn_prop; in sdw_mockup_read_prop()
200 addr = prop->source_ports; in sdw_mockup_read_prop()
[all …]
/linux-5.19.10/drivers/power/supply/
Dpower_supply_hwmon.c129 int prop = power_supply_hwmon_to_property(type, in power_supply_hwmon_has_input() local
132 if (prop >= 0 && test_bit(prop, psyhw->props)) in power_supply_hwmon_has_input()
163 int prop; in power_supply_hwmon_is_visible() local
172 prop = power_supply_hwmon_to_property(type, attr, channel); in power_supply_hwmon_is_visible()
173 if (prop < 0 || !test_bit(prop, psyhw->props)) in power_supply_hwmon_is_visible()
176 if (power_supply_property_is_writeable(psyhw->psy, prop) > 0 && in power_supply_hwmon_is_visible()
212 int ret, prop; in power_supply_hwmon_read() local
214 prop = power_supply_hwmon_to_property(type, attr, channel); in power_supply_hwmon_read()
215 if (prop < 0) in power_supply_hwmon_read()
216 return prop; in power_supply_hwmon_read()
[all …]

12345678910>>...23