| /linux/drivers/soundwire/ |
| H A D | mipi_disco.c | 52 struct sdw_master_prop *prop = &bus->prop; in sdw_master_read_prop() local 62 &prop->revision); in sdw_master_read_prop() 76 prop->clk_stop_modes |= BIT(SDW_CLK_STOP_MODE0); in sdw_master_read_prop() 80 prop->clk_stop_modes |= BIT(SDW_CLK_STOP_MODE1); in sdw_master_read_prop() 84 &prop->max_clk_freq); in sdw_master_read_prop() 88 prop->num_clk_freq = nval; in sdw_master_read_prop() 89 prop->clk_freq = devm_kcalloc(bus->dev, prop->num_clk_freq, in sdw_master_read_prop() 90 sizeof(*prop->clk_freq), in sdw_master_read_prop() 92 if (!prop->clk_freq) { in sdw_master_read_prop() 99 prop->clk_freq, prop->num_clk_freq); in sdw_master_read_prop() [all …]
|
| /linux/scripts/dtc/ |
| H A 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() 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 …]
|
| H A D | livetree.c | 267 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/arch/powerpc/mm/ |
| H A 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/drivers/staging/greybus/ |
| H A 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/drivers/gpu/drm/ |
| H A D | drm_mode_config.c | 231 struct drm_property *prop; in drm_mode_create_standard_properties() local 238 prop = drm_property_create_enum(dev, DRM_MODE_PROP_IMMUTABLE, in drm_mode_create_standard_properties() 241 if (!prop) in drm_mode_create_standard_properties() 243 dev->mode_config.plane_type_property = prop; in drm_mode_create_standard_properties() 245 prop = drm_property_create_range(dev, DRM_MODE_PROP_ATOMIC, in drm_mode_create_standard_properties() 247 if (!prop) in drm_mode_create_standard_properties() 249 dev->mode_config.prop_src_x = prop; in drm_mode_create_standard_properties() 251 prop = drm_property_create_range(dev, DRM_MODE_PROP_ATOMIC, in drm_mode_create_standard_properties() 253 if (!prop) in drm_mode_create_standard_properties() 255 dev->mode_config.prop_src_y = prop; in drm_mode_create_standard_properties() [all …]
|
| H A D | drm_blend.c | 227 struct drm_property *prop; in drm_plane_create_alpha_property() local 229 prop = drm_property_create_range(plane->dev, 0, "alpha", in drm_plane_create_alpha_property() 231 if (!prop) in drm_plane_create_alpha_property() 234 drm_object_attach_property(&plane->base, prop, DRM_BLEND_ALPHA_OPAQUE); in drm_plane_create_alpha_property() 235 plane->alpha_property = prop; in drm_plane_create_alpha_property() 290 struct drm_property *prop; in drm_plane_create_rotation_property() local 296 prop = drm_property_create_bitmask(plane->dev, 0, "rotation", in drm_plane_create_rotation_property() 299 if (!prop) in drm_plane_create_rotation_property() 302 drm_object_attach_property(&plane->base, prop, rotation); in drm_plane_create_rotation_property() 307 plane->rotation_property = prop; in drm_plane_create_rotation_property() [all …]
|
| /linux/drivers/of/ |
| H A D | dynamic.c | 77 #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 …]
|
| H A D | resolver.c | 45 const 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 const 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 …]
|
| /linux/arch/sparc/kernel/ |
| H A 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 …]
|
| H A D | prom_32.c | 76 struct property *prop; in sbus_path_component() local 78 prop = of_find_property(dp, "reg", NULL); in sbus_path_component() 79 if (!prop) in sbus_path_component() 82 regs = prop->value; in sbus_path_component() 94 struct property *prop; in pci_path_component() local 97 prop = of_find_property(dp, "reg", NULL); in pci_path_component() 98 if (!prop) in pci_path_component() 101 regs = prop->value; in pci_path_component() 120 struct property *prop; in ebus_path_component() local 122 prop = of_find_property(dp, "reg", NULL); in ebus_path_component() [all …]
|
| /linux/scripts/kconfig/ |
| H A D | menu.c | 52 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() 154 struct property *prop; in menu_add_prop() local 156 prop = xmalloc(sizeof(*prop)); in menu_add_prop() 157 memset(prop, 0, sizeof(*prop)); in menu_add_prop() 158 prop->type = type; in menu_add_prop() 159 prop->filename = cur_filename; in menu_add_prop() 160 prop->lineno = cur_lineno; in menu_add_prop() 161 prop->menu = current_entry; in menu_add_prop() 162 prop->expr = expr; in menu_add_prop() [all …]
|
| H A D | parser.y | 502 struct property *prop; variable 517 for (prop = menu->sym->prop; prop; prop = prop->next) { 518 if (prop->type != P_COMMENT) { 520 prop->filename, prop->lineno, 538 struct property *prop; in choice_check_sanity() local 541 for (prop = menu->sym->prop; prop; prop = prop->next) { in choice_check_sanity() 542 if (prop->type == P_DEFAULT) { in choice_check_sanity() 544 prop->filename, prop->lineno, in choice_check_sanity() 549 if (prop->menu != menu && prop->type == P_PROMPT && in choice_check_sanity() 550 prop->menu->parent != menu->parent) { in choice_check_sanity() [all …]
|
| H A D | symbol.c | 122 struct property *prop; in sym_get_default_prop() local 124 for_all_defaults(sym, prop) { in sym_get_default_prop() 125 prop->visible.tri = expr_calc_value(prop->visible.expr); in sym_get_default_prop() 126 if (prop->visible.tri != no) in sym_get_default_prop() 127 return prop; in sym_get_default_prop() 134 struct property *prop; in sym_get_range_prop() local 136 for_all_properties(sym, prop, P_RANGE) { in sym_get_range_prop() 137 prop->visible.tri = expr_calc_value(prop->visible.expr); in sym_get_range_prop() 138 if (prop->visible.tri != no) in sym_get_range_prop() 139 return prop; in sym_get_range_prop() [all …]
|
| /linux/drivers/video/fbdev/omap2/omapfb/dss/ |
| H A 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/drivers/input/ |
| H A D | touchscreen.c | 67 struct touchscreen_properties *prop) in touchscreen_parse_properties() argument 120 if (!prop) in touchscreen_parse_properties() 123 prop->max_x = input_abs_get_max(input, axis_x); in touchscreen_parse_properties() 124 prop->max_y = input_abs_get_max(input, axis_y); in touchscreen_parse_properties() 126 prop->invert_x = in touchscreen_parse_properties() 128 if (prop->invert_x) { in touchscreen_parse_properties() 134 prop->invert_y = in touchscreen_parse_properties() 136 if (prop->invert_y) { in touchscreen_parse_properties() 142 prop->swap_x_y = in touchscreen_parse_properties() 144 if (prop->swap_x_y) in touchscreen_parse_properties() [all …]
|
| /linux/arch/powerpc/platforms/83xx/ |
| H A 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/drivers/platform/x86/amd/pmf/ |
| H A D | sps.c | 70 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/sound/soc/codecs/ |
| H A 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/drivers/net/ethernet/brocade/bna/ |
| H A 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/drivers/iio/adc/ |
| H A 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 …]
|
| H A D | qcom-spmi-vadc.c | 211 struct vadc_channel_prop *prop) in vadc_configure() argument 224 ret = vadc_write(vadc, VADC_ADC_CH_SEL_CTL, prop->channel); in vadc_configure() 229 decimation = prop->decimation << VADC_ADC_DIG_DEC_RATIO_SEL_SHIFT; in vadc_configure() 235 ret = vadc_write(vadc, VADC_HW_SETTLE_DELAY, prop->hw_settle_time); in vadc_configure() 239 ret = vadc_write(vadc, VADC_FAST_AVG_CTL, prop->avg_samples); in vadc_configure() 243 if (prop->avg_samples) in vadc_configure() 304 struct vadc_channel_prop *prop, u16 *data) in vadc_do_conversion() argument 311 ret = vadc_configure(vadc, prop); in vadc_do_conversion() 326 timeout = BIT(prop->avg_samples) * VADC_CONV_TIME_MIN_US * 2; in vadc_do_conversion() 356 struct vadc_channel_prop *prop; in vadc_measure_ref_points() local [all …]
|
| /linux/arch/powerpc/kernel/ |
| H A 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/drivers/accel/habanalabs/common/mmu/ |
| H A D | mmu_v2_hr.c | 48 struct asic_fixed_properties *prop = &hdev->asic_prop; in hl_mmu_v2_hr_init() local 50 return hl_mmu_hr_init(hdev, &hdev->mmu_priv.hr, prop->pmmu.hop_table_size, in hl_mmu_v2_hr_init() 51 prop->mmu_pgt_size); in hl_mmu_v2_hr_init() 66 struct asic_fixed_properties *prop = &hdev->asic_prop; in hl_mmu_v2_hr_fini() local 68 hl_mmu_hr_fini(hdev, &hdev->mmu_priv.hr, prop->pmmu.hop_table_size); in hl_mmu_v2_hr_fini() 121 struct asic_fixed_properties *prop; in _hl_mmu_v2_hr_unmap() local 126 prop = &hdev->asic_prop; in _hl_mmu_v2_hr_unmap() 129 mmu_prop = is_dram_addr ? &prop->dmmu : &prop->pmmu; in _hl_mmu_v2_hr_unmap() 214 struct asic_fixed_properties *prop = &hdev->asic_prop; in _hl_mmu_v2_hr_map() local 226 mmu_prop = &prop->dmmu; in _hl_mmu_v2_hr_map() [all …]
|
| /linux/fs/openpromfs/ |
| H A 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 …]
|