| /drivers/infiniband/hw/mthca/ |
| A D | mthca_profile.c | 80 profile = kcalloc(MTHCA_RES_NUM, sizeof(*profile), GFP_KERNEL); in mthca_make_profile() 81 if (!profile) in mthca_make_profile() 114 profile[i].log_num = max(ffs(profile[i].num) - 1, 0); in mthca_make_profile() 115 profile[i].size *= profile[i].num; in mthca_make_profile() 117 profile[i].size = max(profile[i].size, (u64) PAGE_SIZE); in mthca_make_profile() 136 if (profile[j].size > profile[j - 1].size) in mthca_make_profile() 137 swap(profile[j], profile[j - 1]); in mthca_make_profile() 150 kfree(profile); in mthca_make_profile() 154 if (profile[i].size) in mthca_make_profile() 157 i, profile[i].type, profile[i].log_num, in mthca_make_profile() [all …]
|
| /drivers/net/ethernet/mellanox/mlx4/ |
| A D | profile.c | 88 profile = kcalloc(MLX4_RES_NUM, sizeof(*profile), GFP_KERNEL); in mlx4_make_profile() 89 if (!profile) in mlx4_make_profile() 138 profile[i].num = roundup_pow_of_two(profile[i].num); in mlx4_make_profile() 139 profile[i].log_num = ilog2(profile[i].num); in mlx4_make_profile() 140 profile[i].size *= profile[i].num; in mlx4_make_profile() 141 profile[i].size = max(profile[i].size, (u64) PAGE_SIZE); in mlx4_make_profile() 152 if (profile[j].size > profile[j - 1].size) in mlx4_make_profile() 153 swap(profile[j], profile[j - 1]); in mlx4_make_profile() 166 kfree(profile); in mlx4_make_profile() 170 if (profile[i].size) in mlx4_make_profile() [all …]
|
| /drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
| A D | ppatomfwctrl.c | 212 if (!profile) in pp_atomfwctrl_get_avfs_information() 259 profile->enable_gb_vdroop_table_ckson; in pp_atomfwctrl_get_avfs_information() 261 profile->enable_gb_fuse_table_ckson; in pp_atomfwctrl_get_avfs_information() 266 le32_to_cpu(profile->dispclk2gfxclk_a); in pp_atomfwctrl_get_avfs_information() 278 le32_to_cpu(profile->pixclk2gfxclk_a); in pp_atomfwctrl_get_avfs_information() 280 le32_to_cpu(profile->pixclk2gfxclk_b); in pp_atomfwctrl_get_avfs_information() 282 le32_to_cpu(profile->pixclk2gfxclk_c); in pp_atomfwctrl_get_avfs_information() 284 le32_to_cpu(profile->phyclk2gfxclk_a); in pp_atomfwctrl_get_avfs_information() 286 le32_to_cpu(profile->phyclk2gfxclk_b); in pp_atomfwctrl_get_avfs_information() 288 le32_to_cpu(profile->phyclk2gfxclk_c); in pp_atomfwctrl_get_avfs_information() [all …]
|
| A D | ppatomctrl.c | 1046 if (!profile) in atomctrl_get_avfs_information() 1138 if (!profile) in atomctrl_get_leakage_vddc_base_on_leakage() 1144 leakage_bin = (u16 *)((char *)profile + profile->usLeakageBinArrayOffset); in atomctrl_get_leakage_vddc_base_on_leakage() 1145 vddc_id_buf = (u16 *)((char *)profile + profile->usElbVDDC_IdArrayOffset); in atomctrl_get_leakage_vddc_base_on_leakage() 1146 vddc_buf = (u16 *)((char *)profile + profile->usElbVDDC_LevelArrayOffset); in atomctrl_get_leakage_vddc_base_on_leakage() 1147 if (profile->ucElbVDDC_Num > 0) { in atomctrl_get_leakage_vddc_base_on_leakage() 1161 vddci_id_buf = (u16 *)((char *)profile + profile->usElbVDDCI_IdArrayOffset); in atomctrl_get_leakage_vddc_base_on_leakage() 1162 vddci_buf = (u16 *)((char *)profile + profile->usElbVDDCI_LevelArrayOffset); in atomctrl_get_leakage_vddc_base_on_leakage() 1163 if (profile->ucElbVDDCI_Num > 0) { in atomctrl_get_leakage_vddc_base_on_leakage() 1184 void *profile; in atomctrl_get_voltage_range() local [all …]
|
| /drivers/mmc/host/ |
| A D | cqhci-crypto.c | 26 cqhci_host_from_crypto_profile(struct blk_crypto_profile *profile) in cqhci_host_from_crypto_profile() argument 28 return mmc_from_crypto_profile(profile)->cqe_private; in cqhci_host_from_crypto_profile() 165 struct blk_crypto_profile *profile = &mmc->crypto_profile; in cqhci_crypto_init() local 197 dev, profile, cq_host->crypto_capabilities.config_count + 1); in cqhci_crypto_init() 201 profile->ll_ops = cqhci_crypto_ops; in cqhci_crypto_init() 202 profile->dev = dev; in cqhci_crypto_init() 205 profile->max_dun_bytes_supported = 4; in cqhci_crypto_init() 207 profile->key_types_supported = BLK_CRYPTO_KEY_TYPE_RAW; in cqhci_crypto_init() 223 profile->modes_supported[blk_mode_num] |= in cqhci_crypto_init() 230 for (slot = 0; slot < profile->num_slots; slot++) in cqhci_crypto_init() [all …]
|
| /drivers/acpi/ |
| A D | platform_profile.c | 130 *profile = val; in get_class_profile() 185 err = get_class_profile(dev, &profile); in profile_show() 222 static DEVICE_ATTR_RW(profile); 230 ATTRIBUTE_GROUPS(profile); 344 if (*profile != PLATFORM_PROFILE_LAST && *profile != val) in _aggregate_profiles() 345 *profile = PLATFORM_PROFILE_CUSTOM; in _aggregate_profiles() 347 *profile = val; in _aggregate_profiles() 387 &profile, _aggregate_profiles); in platform_profile_show() 393 if (profile == PLATFORM_PROFILE_LAST) in platform_profile_show() 510 profile == PLATFORM_PROFILE_LAST) in platform_profile_cycle() [all …]
|
| /drivers/devfreq/ |
| A D | exynos-bus.c | 279 struct devfreq_dev_profile *profile) in exynos_bus_profile_init() argument 286 profile->polling_ms = 50; in exynos_bus_profile_init() 287 profile->target = exynos_bus_target; in exynos_bus_profile_init() 289 profile->exit = exynos_bus_exit; in exynos_bus_profile_init() 340 struct devfreq_dev_profile *profile) in exynos_bus_profile_init_passive() argument 347 profile->target = exynos_bus_target; in exynos_bus_profile_init_passive() 348 profile->exit = exynos_bus_passive_exit; in exynos_bus_profile_init_passive() 377 struct devfreq_dev_profile *profile; in exynos_bus_probe() local 395 profile = devm_kzalloc(dev, sizeof(*profile), GFP_KERNEL); in exynos_bus_probe() 396 if (!profile) in exynos_bus_probe() [all …]
|
| A D | devfreq.c | 589 devfreq->profile->polling_ms) in devfreq_monitor_resume() 777 if (devfreq->profile->exit) in devfreq_dev_release() 837 devfreq->profile = profile; in devfreq_add_device() 850 if (!devfreq->profile->max_state || !devfreq->profile->freq_table) { in devfreq_add_device() 1555 if (!df->profile) in cur_freq_show() 1678 if (!df->profile) in available_frequencies_show() 1706 if (!df->profile) in trans_stat_show() 1774 if (!df->profile) in trans_stat_store() 1817 if (!df->profile) in polling_interval_show() 1850 if (!df->profile) in timer_show() [all …]
|
| A D | imx-bus.c | 16 struct devfreq_dev_profile profile; member 120 priv->profile.target = imx_bus_target; in imx_bus_probe() 121 priv->profile.exit = imx_bus_exit; in imx_bus_probe() 122 priv->profile.get_cur_freq = imx_bus_get_cur_freq; in imx_bus_probe() 123 priv->profile.initial_freq = clk_get_rate(priv->clk); in imx_bus_probe() 125 priv->devfreq = devm_devfreq_add_device(dev, &priv->profile, in imx_bus_probe()
|
| A D | sun8i-a33-mbus.c | 87 struct devfreq_dev_profile profile; member 391 priv->profile.initial_freq = clk_get_rate(priv->clk_dram); in sun8i_a33_mbus_probe() 392 priv->profile.polling_ms = 1000; in sun8i_a33_mbus_probe() 393 priv->profile.target = sun8i_a33_mbus_set_dram_target; in sun8i_a33_mbus_probe() 394 priv->profile.get_dev_status = sun8i_a33_mbus_get_dram_status; in sun8i_a33_mbus_probe() 395 priv->profile.freq_table = priv->freq_table; in sun8i_a33_mbus_probe() 396 priv->profile.max_state = max_state; in sun8i_a33_mbus_probe() 415 ret = sun8i_a33_mbus_hw_init(dev, priv, priv->profile.initial_freq); in sun8i_a33_mbus_probe() 421 priv->devfreq_dram = devfreq_add_device(dev, &priv->profile, in sun8i_a33_mbus_probe() 447 unsigned long initial_freq = priv->profile.initial_freq; in sun8i_a33_mbus_remove()
|
| A D | imx8m-ddrc.c | 66 struct devfreq_dev_profile profile; member 420 priv->profile.target = imx8m_ddrc_target; in imx8m_ddrc_probe() 421 priv->profile.exit = imx8m_ddrc_exit; in imx8m_ddrc_probe() 422 priv->profile.get_cur_freq = imx8m_ddrc_get_cur_freq; in imx8m_ddrc_probe() 423 priv->profile.initial_freq = clk_get_rate(priv->dram_core); in imx8m_ddrc_probe() 425 priv->devfreq = devm_devfreq_add_device(dev, &priv->profile, in imx8m_ddrc_probe()
|
| /drivers/md/ |
| A D | dm-table.c | 1156 struct blk_crypto_profile profile; member 1177 container_of(profile, struct dm_crypto_profile, profile)->md; in dm_keyslot_evict() 1278 container_of(profile, struct dm_crypto_profile, profile)->md; in dm_exec_wrappedkey_op() 1385 profile); in dm_destroy_crypto_profile() 1387 if (!profile) in dm_destroy_crypto_profile() 1412 struct blk_crypto_profile *profile; in dm_table_construct_crypto_profile() local 1421 profile = &dmcp->profile; in dm_table_construct_crypto_profile() 1427 profile->key_types_supported = ~0; in dm_table_construct_crypto_profile() 1440 profile); in dm_table_construct_crypto_profile() 1471 profile = NULL; in dm_table_construct_crypto_profile() [all …]
|
| /drivers/platform/surface/ |
| A D | surface_platform_profile.c | 36 __le32 profile; member 73 *p = le32_to_cpu(info.profile); in ssam_tmp_profile_get() 86 const u8 profile = p; in ssam_fan_profile_set() local 88 return ssam_retry(__ssam_fan_profile_set, sdev->ctrl, &profile); in ssam_fan_profile_set() 158 enum platform_profile_option *profile) in ssam_platform_profile_get() argument 174 *profile = status; in ssam_platform_profile_get() 179 enum platform_profile_option profile) in ssam_platform_profile_set() argument 186 tp = convert_profile_to_ssam_tmp(tpd->sdev, profile); in ssam_platform_profile_set() 195 tp = convert_profile_to_ssam_fan(tpd->sdev, profile); in ssam_platform_profile_set()
|
| /drivers/platform/x86/hp/ |
| A D | hp-wmi.c | 1310 *profile = PLATFORM_PROFILE_COOL; in platform_profile_omen_get_ec() 1335 *profile = active_platform_profile; in platform_profile_omen_get() 1372 switch (profile) { in platform_profile_omen_set_ec() 1427 active_platform_profile = profile; in platform_profile_omen_set() 1460 *profile = PLATFORM_PROFILE_COOL; in hp_wmi_platform_profile_get() 1463 *profile = PLATFORM_PROFILE_QUIET; in hp_wmi_platform_profile_get() 1477 switch (profile) { in hp_wmi_platform_profile_set() 1549 switch (profile) { in platform_profile_victus_set_ec() 1667 switch (profile) { in platform_profile_victus_s_set_ec() 1720 active_platform_profile = profile; in platform_profile_victus_s_set() [all …]
|
| /drivers/leds/ |
| A D | leds-mlxcpld.c | 116 struct mlxcpld_led_profile *profile; member 339 cpld->pled[i].cdev.name = cpld->profile[i].name; in mlxcpld_led_config() 340 cpld->pled[i].cdev.brightness = cpld->profile[i].brightness; in mlxcpld_led_config() 349 cpld->pled[i].param.offset = mlxcpld_led->profile[i].offset; in mlxcpld_led_config() 350 cpld->pled[i].param.mask = mlxcpld_led->profile[i].mask; in mlxcpld_led_config() 352 mlxcpld_led->profile[i].base_color; in mlxcpld_led_config() 354 if (mlxcpld_led->profile[i].brightness) in mlxcpld_led_config() 356 mlxcpld_led->profile[i].brightness); in mlxcpld_led_config() 376 mlxcpld_led->profile = mlxcpld_led_msn2100_profile; in mlxcpld_led_probe() 382 mlxcpld_led->profile = mlxcpld_led_default_profile; in mlxcpld_led_probe()
|
| /drivers/platform/x86/lenovo/ |
| A D | wmi-gamezone.c | 156 enum platform_profile_option *profile) in lwmi_gz_profile_get() argument 168 *profile = PLATFORM_PROFILE_LOW_POWER; in lwmi_gz_profile_get() 171 *profile = PLATFORM_PROFILE_BALANCED; in lwmi_gz_profile_get() 175 *profile = PLATFORM_PROFILE_BALANCED_PERFORMANCE; in lwmi_gz_profile_get() 178 *profile = PLATFORM_PROFILE_PERFORMANCE; in lwmi_gz_profile_get() 181 *profile = PLATFORM_PROFILE_PERFORMANCE; in lwmi_gz_profile_get() 184 *profile = PLATFORM_PROFILE_CUSTOM; in lwmi_gz_profile_get() 207 enum platform_profile_option profile) in lwmi_gz_profile_set() argument 214 switch (profile) { in lwmi_gz_profile_set()
|
| /drivers/platform/x86/dell/ |
| A D | dell-pc.c | 184 enum platform_profile_option profile) in thermal_platform_profile_set() argument 186 switch (profile) { in thermal_platform_profile_set() 201 enum platform_profile_option *profile) in thermal_platform_profile_get() argument 211 *profile = PLATFORM_PROFILE_BALANCED; in thermal_platform_profile_get() 214 *profile = PLATFORM_PROFILE_PERFORMANCE; in thermal_platform_profile_get() 217 *profile = PLATFORM_PROFILE_COOL; in thermal_platform_profile_get() 220 *profile = PLATFORM_PROFILE_QUIET; in thermal_platform_profile_get()
|
| /drivers/media/platform/qcom/venus/ |
| A D | vdec_ctrls.c | 26 ctr->profile = ctrl->val; in vdec_op_s_ctrl() 55 u32 profile, level; in vdec_op_g_volatile_ctrl() local 63 ret = venus_helper_get_profile_level(inst, &profile, &level); in vdec_op_g_volatile_ctrl() 65 ctr->profile = profile; in vdec_op_g_volatile_ctrl() 66 ctrl->val = ctr->profile; in vdec_op_g_volatile_ctrl() 71 ret = venus_helper_get_profile_level(inst, &profile, &level); in vdec_op_g_volatile_ctrl()
|
| /drivers/platform/x86/ |
| A D | inspur_platform_profile.c | 88 enum platform_profile_option profile) in inspur_platform_profile_set() argument 94 switch (profile) { in inspur_platform_profile_set() 135 enum platform_profile_option *profile) in inspur_platform_profile_get() argument 152 *profile = PLATFORM_PROFILE_BALANCED; in inspur_platform_profile_get() 155 *profile = PLATFORM_PROFILE_PERFORMANCE; in inspur_platform_profile_get() 158 *profile = PLATFORM_PROFILE_LOW_POWER; in inspur_platform_profile_get()
|
| A D | samsung-galaxybook.c | 592 enum platform_profile_option *profile) in get_performance_mode_profile() argument 596 *profile = PLATFORM_PROFILE_LOW_POWER; in get_performance_mode_profile() 599 *profile = PLATFORM_PROFILE_QUIET; in get_performance_mode_profile() 603 *profile = PLATFORM_PROFILE_BALANCED; in get_performance_mode_profile() 608 *profile = PLATFORM_PROFILE_PERFORMANCE; in get_performance_mode_profile() 623 enum platform_profile_option *profile) in galaxybook_platform_profile_get() argument 637 enum platform_profile_option profile) in galaxybook_platform_profile_set() argument 649 enum platform_profile_option profile; in galaxybook_platform_profile_probe() local 698 perfmodes[profile] = GB_PERFORMANCE_MODE_ULTRA; in galaxybook_platform_profile_probe() 703 set_bit(profile, choices); in galaxybook_platform_profile_probe() [all …]
|
| /drivers/s390/block/ |
| A D | dasd_ioctl.c | 434 dasd_profile_reset(&block->profile); in dasd_ioctl_reset_profile() 450 spin_lock_bh(&block->profile.lock); in dasd_ioctl_read_profile() 451 if (block->profile.data) { in dasd_ioctl_read_profile() 452 data->dasd_io_reqs = block->profile.data->dasd_io_reqs; in dasd_ioctl_read_profile() 453 data->dasd_io_sects = block->profile.data->dasd_io_sects; in dasd_ioctl_read_profile() 454 memcpy(data->dasd_io_secs, block->profile.data->dasd_io_secs, in dasd_ioctl_read_profile() 456 memcpy(data->dasd_io_times, block->profile.data->dasd_io_times, in dasd_ioctl_read_profile() 465 block->profile.data->dasd_io_time2ps, in dasd_ioctl_read_profile() 470 block->profile.data->dasd_io_nr_req, in dasd_ioctl_read_profile() 472 spin_unlock_bh(&block->profile.lock); in dasd_ioctl_read_profile() [all …]
|
| A D | dasd.c | 865 data = profile->data; in dasd_profile_reset() 883 if (profile->data) { in dasd_profile_on() 889 profile->data = data; in dasd_profile_on() 897 kfree(profile->data); in dasd_profile_off() 898 profile->data = NULL; in dasd_profile_off() 1025 profile = m->private; in dasd_stats_show() 1027 data = profile->data; in dasd_stats_show() 1061 profile->dentry = NULL; in dasd_profile_init() 1062 profile->data = NULL; in dasd_profile_init() 1067 profile->dentry = pde; in dasd_profile_init() [all …]
|
| /drivers/net/ethernet/mellanox/mlxsw/ |
| A D | pci.c | 1504 if (profile->used_max_lag) { in mlxsw_pci_config_profile() 1507 profile->max_lag); in mlxsw_pci_config_profile() 1509 if (profile->used_max_mid) { in mlxsw_pci_config_profile() 1513 mbox, profile->max_mid); in mlxsw_pci_config_profile() 1515 if (profile->used_max_pgt) { in mlxsw_pci_config_profile() 1519 mbox, profile->max_pgt); in mlxsw_pci_config_profile() 1576 mbox, profile->max_ib_mc); in mlxsw_pci_config_profile() 1582 mbox, profile->max_pkey); in mlxsw_pci_config_profile() 1584 if (profile->used_ar_sec) { in mlxsw_pci_config_profile() 1588 mbox, profile->ar_sec); in mlxsw_pci_config_profile() [all …]
|
| /drivers/hid/ |
| A D | hid-roccat-isku.c | 72 unsigned long profile; in isku_sysfs_set_actual_profile() local 80 retval = kstrtoul(buf, 10, &profile); in isku_sysfs_set_actual_profile() 84 if (profile > 4) in isku_sysfs_set_actual_profile() 89 retval = isku_set_actual_profile(usb_dev, profile); in isku_sysfs_set_actual_profile() 95 isku_profile_activated(isku, profile); in isku_sysfs_set_actual_profile() 98 roccat_report.data1 = profile + 1; in isku_sysfs_set_actual_profile() 100 roccat_report.profile = profile + 1; in isku_sysfs_set_actual_profile() 396 roccat_report.profile = isku->actual_profile + 1; in isku_report_to_chrdev()
|
| A D | hid-roccat-koneplus.c | 253 unsigned long profile; in koneplus_sysfs_set_actual_profile() local 261 retval = kstrtoul(buf, 10, &profile); in koneplus_sysfs_set_actual_profile() 265 if (profile > 4) in koneplus_sysfs_set_actual_profile() 270 retval = koneplus_set_actual_profile(usb_dev, profile); in koneplus_sysfs_set_actual_profile() 276 koneplus_profile_activated(koneplus, profile); in koneplus_sysfs_set_actual_profile() 279 roccat_report.data1 = profile + 1; in koneplus_sysfs_set_actual_profile() 281 roccat_report.profile = profile + 1; in koneplus_sysfs_set_actual_profile() 508 roccat_report.profile = koneplus->actual_profile + 1; in koneplus_report_to_chrdev()
|