/kernel/linux/linux-5.10/drivers/soundwire/ |
D | mipi_disco.c | 32 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/ |
D | checks.c | 63 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 …]
|
D | livetree.c | 266 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/ |
D | drmem.c | 39 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/ |
D | menu.c | 31 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 …]
|
D | symbol.c | 76 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/ |
D | power_supply.c | 18 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/ |
D | drm_mode_config.c | 220 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 …]
|
D | drm_blend.c | 214 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/ |
D | of.c | 19 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/ |
D | usb.c | 29 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/ |
D | prom_64.c | 112 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 …]
|
D | prom_32.c | 78 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/ |
D | omapdss-boot-init.c | 32 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/ |
D | omapdss-boot-init.c | 32 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/ |
D | dynamic.c | 92 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 …]
|
D | resolver.c | 44 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/ |
D | of_touchscreen.c | 65 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/ |
D | dpaa_sys.c | 42 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/ |
D | ima.c | 31 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/ |
D | bfa_defs_mfg_comm.h | 73 #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/ |
D | prom_parse.c | 16 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()
|
D | btext.c | 168 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/ |
D | qcom-spmi-adc5.c | 281 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/ |
D | inode.c | 34 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 …]
|