/linux-6.6.21/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 …]
|
/linux-6.6.21/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__); \ 209 struct property *prop; in check_is_string() local 212 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 …]
|
/linux-6.6.21/arch/powerpc/mm/ |
D | drmem.c | 40 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.6.21/scripts/kconfig/ |
D | menu.c | 32 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 …]
|
D | symbol.c | 75 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-6.6.21/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 …]
|
/linux-6.6.21/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 …]
|
/linux-6.6.21/drivers/gpu/drm/ |
D | drm_mode_config.c | 223 struct drm_property *prop; in drm_mode_create_standard_properties() local 230 prop = drm_property_create_enum(dev, DRM_MODE_PROP_IMMUTABLE, in drm_mode_create_standard_properties() 233 if (!prop) in drm_mode_create_standard_properties() 235 dev->mode_config.plane_type_property = prop; in drm_mode_create_standard_properties() 237 prop = drm_property_create_range(dev, DRM_MODE_PROP_ATOMIC, in drm_mode_create_standard_properties() 239 if (!prop) in drm_mode_create_standard_properties() 241 dev->mode_config.prop_src_x = prop; in drm_mode_create_standard_properties() 243 prop = drm_property_create_range(dev, DRM_MODE_PROP_ATOMIC, in drm_mode_create_standard_properties() 245 if (!prop) in drm_mode_create_standard_properties() 247 dev->mode_config.prop_src_y = prop; in drm_mode_create_standard_properties() [all …]
|
D | drm_blend.c | 221 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.6.21/drivers/platform/x86/amd/pmf/ |
D | sps.c | 51 pr_debug("SPL: %u mW\n", data->prop[i][j].spl); in amd_pmf_dump_sps_defaults() 52 pr_debug("SPPT: %u mW\n", data->prop[i][j].sppt); in amd_pmf_dump_sps_defaults() 53 pr_debug("SPPT_ApuOnly: %u mW\n", data->prop[i][j].sppt_apu_only); in amd_pmf_dump_sps_defaults() 54 pr_debug("FPPT: %u mW\n", data->prop[i][j].fppt); in amd_pmf_dump_sps_defaults() 55 pr_debug("STTMinLimit: %u mW\n", data->prop[i][j].stt_min); in amd_pmf_dump_sps_defaults() 57 data->prop[i][j].stt_skin_temp[STT_TEMP_APU]); in amd_pmf_dump_sps_defaults() 59 data->prop[i][j].stt_skin_temp[STT_TEMP_HS2]); in amd_pmf_dump_sps_defaults() 79 config_store.prop[i][j].spl = output.prop[idx].spl; in amd_pmf_load_defaults_sps() 80 config_store.prop[i][j].sppt = output.prop[idx].sppt; in amd_pmf_load_defaults_sps() 81 config_store.prop[i][j].sppt_apu_only = in amd_pmf_load_defaults_sps() [all …]
|
/linux-6.6.21/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 …]
|
/linux-6.6.21/drivers/of/ |
D | dynamic.c | 75 #define _do_print(func, prefix, action, node, prop, ...) ({ \ argument 78 prop ? ":" : "", prop ? prop->name : ""); \ 88 of_changeset_action_debug("notify: ", action, pr->dn, pr->prop); in of_reconfig_notify() 107 struct property *prop, *old_prop = NULL; in of_reconfig_get_state_change() local 114 prop = of_find_property(pr->dn, "status", NULL); in of_reconfig_get_state_change() 118 prop = pr->prop; in of_reconfig_get_state_change() 121 prop = pr->prop; in of_reconfig_get_state_change() 134 if (prop && !strcmp(prop->name, "status")) { in of_reconfig_get_state_change() 136 status_state = !strcmp(prop->value, "okay") || in of_reconfig_get_state_change() 137 !strcmp(prop->value, "ok"); in of_reconfig_get_state_change() [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 …]
|
D | kexec.c | 101 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.6.21/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 …]
|
/linux-6.6.21/drivers/input/ |
D | touchscreen.c | 66 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.6.21/arch/powerpc/platforms/83xx/ |
D | usb_834x.c | 26 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.6.21/sound/soc/codecs/ |
D | sdw-mockup.c | 135 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.6.21/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 …]
|
/linux-6.6.21/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()
|
/linux-6.6.21/drivers/iio/adc/ |
D | qcom-spmi-adc5.c | 221 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.6.21/drivers/soc/fsl/qbman/ |
D | dpaa_sys.c | 66 struct property *prop; in qbman_init_private_mem() local 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() 83 err = of_add_property(mem_node, prop); in qbman_init_private_mem()
|
/linux-6.6.21/drivers/power/supply/ |
D | power_supply_hwmon.c | 129 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 …]
|