/drivers/infiniband/hw/mthca/ |
D | mthca_profile.c | 79 struct mthca_resource *profile; in mthca_make_profile() local 82 profile = kcalloc(MTHCA_RES_NUM, sizeof(*profile), GFP_KERNEL); in mthca_make_profile() 83 if (!profile) in mthca_make_profile() 86 profile[MTHCA_RES_QP].size = dev_lim->qpc_entry_sz; in mthca_make_profile() 87 profile[MTHCA_RES_EEC].size = dev_lim->eec_entry_sz; in mthca_make_profile() 88 profile[MTHCA_RES_SRQ].size = dev_lim->srq_entry_sz; in mthca_make_profile() 89 profile[MTHCA_RES_CQ].size = dev_lim->cqc_entry_sz; in mthca_make_profile() 90 profile[MTHCA_RES_EQP].size = dev_lim->eqpc_entry_sz; in mthca_make_profile() 91 profile[MTHCA_RES_EEEC].size = dev_lim->eeec_entry_sz; in mthca_make_profile() 92 profile[MTHCA_RES_EQ].size = dev_lim->eqc_entry_sz; in mthca_make_profile() [all …]
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | profile.c | 84 struct mlx4_resource *profile; in mlx4_make_profile() local 88 profile = kcalloc(MLX4_RES_NUM, sizeof(*profile), GFP_KERNEL); in mlx4_make_profile() 89 if (!profile) in mlx4_make_profile() 111 profile[MLX4_RES_QP].size = dev_cap->qpc_entry_sz; in mlx4_make_profile() 112 profile[MLX4_RES_RDMARC].size = dev_cap->rdmarc_entry_sz; in mlx4_make_profile() 113 profile[MLX4_RES_ALTC].size = dev_cap->altc_entry_sz; in mlx4_make_profile() 114 profile[MLX4_RES_AUXC].size = dev_cap->aux_entry_sz; in mlx4_make_profile() 115 profile[MLX4_RES_SRQ].size = dev_cap->srq_entry_sz; in mlx4_make_profile() 116 profile[MLX4_RES_CQ].size = dev_cap->cqc_entry_sz; in mlx4_make_profile() 117 profile[MLX4_RES_EQ].size = dev_cap->eqc_entry_sz; in mlx4_make_profile() [all …]
|
/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
D | ppatomfwctrl.c | 282 struct atom_asic_profiling_info_v4_1 *profile; in pp_atomfwctrl_get_avfs_information() local 286 profile = (struct atom_asic_profiling_info_v4_1 *) in pp_atomfwctrl_get_avfs_information() 290 if (!profile) in pp_atomfwctrl_get_avfs_information() 293 format_revision = ((struct atom_common_table_header *)profile)->format_revision; in pp_atomfwctrl_get_avfs_information() 294 content_revision = ((struct atom_common_table_header *)profile)->content_revision; in pp_atomfwctrl_get_avfs_information() 297 param->ulMaxVddc = le32_to_cpu(profile->maxvddc); in pp_atomfwctrl_get_avfs_information() 298 param->ulMinVddc = le32_to_cpu(profile->minvddc); in pp_atomfwctrl_get_avfs_information() 300 le32_to_cpu(profile->avfs_meannsigma_acontant0); in pp_atomfwctrl_get_avfs_information() 302 le32_to_cpu(profile->avfs_meannsigma_acontant1); in pp_atomfwctrl_get_avfs_information() 304 le32_to_cpu(profile->avfs_meannsigma_acontant2); in pp_atomfwctrl_get_avfs_information() [all …]
|
D | ppatomctrl.c | 1454 ATOM_ASIC_PROFILING_INFO_V3_6 *profile = NULL; in atomctrl_get_avfs_information() local 1459 profile = (ATOM_ASIC_PROFILING_INFO_V3_6 *) in atomctrl_get_avfs_information() 1463 if (!profile) in atomctrl_get_avfs_information() 1466 param->ulAVFS_meanNsigma_Acontant0 = le32_to_cpu(profile->ulAVFS_meanNsigma_Acontant0); in atomctrl_get_avfs_information() 1467 param->ulAVFS_meanNsigma_Acontant1 = le32_to_cpu(profile->ulAVFS_meanNsigma_Acontant1); in atomctrl_get_avfs_information() 1468 param->ulAVFS_meanNsigma_Acontant2 = le32_to_cpu(profile->ulAVFS_meanNsigma_Acontant2); in atomctrl_get_avfs_information() 1469 param->usAVFS_meanNsigma_DC_tol_sigma = le16_to_cpu(profile->usAVFS_meanNsigma_DC_tol_sigma); in atomctrl_get_avfs_information() 1470 param->usAVFS_meanNsigma_Platform_mean = le16_to_cpu(profile->usAVFS_meanNsigma_Platform_mean); in atomctrl_get_avfs_information() 1471 param->usAVFS_meanNsigma_Platform_sigma = le16_to_cpu(profile->usAVFS_meanNsigma_Platform_sigma); in atomctrl_get_avfs_information() 1472 param->ulGB_VDROOP_TABLE_CKSOFF_a0 = le32_to_cpu(profile->ulGB_VDROOP_TABLE_CKSOFF_a0); in atomctrl_get_avfs_information() [all …]
|
/drivers/devfreq/ |
D | devfreq.c | 126 unsigned long *freq_table = devfreq->profile->freq_table; in get_freq_range() 136 if (freq_table[0] < freq_table[devfreq->profile->max_state - 1]) { in get_freq_range() 138 *max_freq = freq_table[devfreq->profile->max_state - 1]; in get_freq_range() 140 *min_freq = freq_table[devfreq->profile->max_state - 1]; in get_freq_range() 171 for (lev = 0; lev < devfreq->profile->max_state; lev++) in devfreq_get_freq_level() 172 if (freq == devfreq->profile->freq_table[lev]) in devfreq_get_freq_level() 180 struct devfreq_dev_profile *profile = devfreq->profile; in set_freq_table() local 190 profile->max_state = count; in set_freq_table() 191 profile->freq_table = devm_kcalloc(devfreq->dev.parent, in set_freq_table() 192 profile->max_state, in set_freq_table() [all …]
|
D | exynos-bus.c | 295 struct devfreq_dev_profile *profile) in exynos_bus_profile_init() argument 302 profile->polling_ms = 50; in exynos_bus_profile_init() 303 profile->target = exynos_bus_target; in exynos_bus_profile_init() 304 profile->get_dev_status = exynos_bus_get_dev_status; in exynos_bus_profile_init() 305 profile->exit = exynos_bus_exit; in exynos_bus_profile_init() 315 bus->devfreq = devm_devfreq_add_device(dev, profile, in exynos_bus_profile_init() 356 struct devfreq_dev_profile *profile) in exynos_bus_profile_init_passive() argument 363 profile->target = exynos_bus_target; in exynos_bus_profile_init_passive() 364 profile->exit = exynos_bus_passive_exit; in exynos_bus_profile_init_passive() 378 bus->devfreq = devm_devfreq_add_device(dev, profile, DEVFREQ_GOV_PASSIVE, in exynos_bus_profile_init_passive() [all …]
|
D | governor_passive.c | 48 if (!devfreq->profile || !devfreq->profile->freq_table in devfreq_passive_get_target_freq() 49 || devfreq->profile->max_state <= 0) in devfreq_passive_get_target_freq() 81 for (i = 0; i < parent_devfreq->profile->max_state; i++) in devfreq_passive_get_target_freq() 82 if (parent_devfreq->profile->freq_table[i] == *freq) in devfreq_passive_get_target_freq() 85 if (i == parent_devfreq->profile->max_state) in devfreq_passive_get_target_freq() 89 if (i < devfreq->profile->max_state) { in devfreq_passive_get_target_freq() 90 child_freq = devfreq->profile->freq_table[i]; in devfreq_passive_get_target_freq() 92 count = devfreq->profile->max_state; in devfreq_passive_get_target_freq() 93 child_freq = devfreq->profile->freq_table[count - 1]; in devfreq_passive_get_target_freq()
|
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()
|
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/leds/ |
D | leds-mlxcpld.c | 117 struct mlxcpld_led_profile *profile; member 340 cpld->pled[i].cdev.name = cpld->profile[i].name; in mlxcpld_led_config() 341 cpld->pled[i].cdev.brightness = cpld->profile[i].brightness; in mlxcpld_led_config() 350 cpld->pled[i].param.offset = mlxcpld_led->profile[i].offset; in mlxcpld_led_config() 351 cpld->pled[i].param.mask = mlxcpld_led->profile[i].mask; in mlxcpld_led_config() 353 mlxcpld_led->profile[i].base_color; in mlxcpld_led_config() 355 if (mlxcpld_led->profile[i].brightness) in mlxcpld_led_config() 357 mlxcpld_led->profile[i].brightness); in mlxcpld_led_config() 377 mlxcpld_led->profile = mlxcpld_led_msn2100_profile; in mlxcpld_led_probe() 383 mlxcpld_led->profile = mlxcpld_led_default_profile; in mlxcpld_led_probe()
|
/drivers/scsi/ |
D | sd_dif.c | 50 bi.profile = &t10_pi_type3_ip; in sd_dif_config_host() 52 bi.profile = &t10_pi_type1_ip; in sd_dif_config_host() 57 bi.profile = &t10_pi_type3_crc; in sd_dif_config_host() 59 bi.profile = &t10_pi_type1_crc; in sd_dif_config_host() 63 "Enabling DIX %s protection\n", bi.profile->name); in sd_dif_config_host()
|
/drivers/media/platform/qcom/venus/ |
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/surface/ |
D | surface_platform_profile.c | 25 __le32 profile; member 54 *p = le32_to_cpu(info.profile); in ssam_tmp_profile_get() 109 enum platform_profile_option *profile) in ssam_platform_profile_get() argument 125 *profile = status; in ssam_platform_profile_get() 130 enum platform_profile_option profile) in ssam_platform_profile_set() argument 137 tp = convert_profile_to_ssam(tpd->sdev, profile); in ssam_platform_profile_set()
|
/drivers/s390/block/ |
D | dasd_ioctl.c | 389 dasd_profile_reset(&block->profile); in dasd_ioctl_reset_profile() 405 spin_lock_bh(&block->profile.lock); in dasd_ioctl_read_profile() 406 if (block->profile.data) { in dasd_ioctl_read_profile() 407 data->dasd_io_reqs = block->profile.data->dasd_io_reqs; in dasd_ioctl_read_profile() 408 data->dasd_io_sects = block->profile.data->dasd_io_sects; in dasd_ioctl_read_profile() 409 memcpy(data->dasd_io_secs, block->profile.data->dasd_io_secs, in dasd_ioctl_read_profile() 411 memcpy(data->dasd_io_times, block->profile.data->dasd_io_times, in dasd_ioctl_read_profile() 413 memcpy(data->dasd_io_timps, block->profile.data->dasd_io_timps, in dasd_ioctl_read_profile() 415 memcpy(data->dasd_io_time1, block->profile.data->dasd_io_time1, in dasd_ioctl_read_profile() 417 memcpy(data->dasd_io_time2, block->profile.data->dasd_io_time2, in dasd_ioctl_read_profile() [all …]
|
D | dasd.c | 144 spin_lock_init(&device->profile.lock); in dasd_alloc_device() 181 spin_lock_init(&block->profile.lock); in dasd_alloc_block() 266 dasd_profile_init(&block->profile, block->debugfs_dentry); in dasd_state_known_to_basic() 268 dasd_profile_on(&device->block->profile); in dasd_state_known_to_basic() 273 dasd_profile_init(&device->profile, device->debugfs_dentry); in dasd_state_known_to_basic() 302 dasd_profile_exit(&device->block->profile); in dasd_state_basic_to_known() 311 dasd_profile_exit(&device->profile); in dasd_state_basic_to_known() 673 if (dasd_global_profile_level || block->profile.data) in dasd_profile_start() 686 spin_lock(&block->profile.lock); in dasd_profile_start() 687 if (block->profile.data) { in dasd_profile_start() [all …]
|
/drivers/net/ethernet/mellanox/mlxsw/ |
D | pci.c | 1128 const struct mlxsw_config_profile *profile, in mlxsw_pci_profile_get_kvd_sizes() argument 1134 err = mlxsw_core_kvd_sizes_get(mlxsw_pci->core, profile, in mlxsw_pci_profile_get_kvd_sizes() 1148 const struct mlxsw_config_profile *profile, in mlxsw_pci_config_profile() argument 1156 if (profile->used_max_vepa_channels) { in mlxsw_pci_config_profile() 1160 mbox, profile->max_vepa_channels); in mlxsw_pci_config_profile() 1162 if (profile->used_max_mid) { in mlxsw_pci_config_profile() 1166 mbox, profile->max_mid); in mlxsw_pci_config_profile() 1168 if (profile->used_max_pgt) { in mlxsw_pci_config_profile() 1172 mbox, profile->max_pgt); in mlxsw_pci_config_profile() 1174 if (profile->used_max_system_port) { in mlxsw_pci_config_profile() [all …]
|
/drivers/acpi/ |
D | platform_profile.c | 56 enum platform_profile_option profile = PLATFORM_PROFILE_BALANCED; in platform_profile_show() local 68 err = cur_profile->profile_get(cur_profile, &profile); in platform_profile_show() 74 if (WARN_ON((profile < 0) || (profile >= ARRAY_SIZE(profile_names)))) in platform_profile_show() 77 return sysfs_emit(buf, "%s\n", profile_names[profile]); in platform_profile_show()
|
/drivers/hid/ |
D | hid-roccat-isku.c | 74 unsigned long profile; in isku_sysfs_set_actual_profile() local 82 retval = kstrtoul(buf, 10, &profile); in isku_sysfs_set_actual_profile() 86 if (profile > 4) in isku_sysfs_set_actual_profile() 91 retval = isku_set_actual_profile(usb_dev, profile); in isku_sysfs_set_actual_profile() 97 isku_profile_activated(isku, profile); in isku_sysfs_set_actual_profile() 100 roccat_report.data1 = profile + 1; in isku_sysfs_set_actual_profile() 102 roccat_report.profile = profile + 1; in isku_sysfs_set_actual_profile() 393 roccat_report.profile = isku->actual_profile + 1; in isku_report_to_chrdev()
|
D | hid-roccat-koneplus.c | 255 unsigned long profile; in koneplus_sysfs_set_actual_profile() local 263 retval = kstrtoul(buf, 10, &profile); in koneplus_sysfs_set_actual_profile() 267 if (profile > 4) in koneplus_sysfs_set_actual_profile() 272 retval = koneplus_set_actual_profile(usb_dev, profile); in koneplus_sysfs_set_actual_profile() 278 koneplus_profile_activated(koneplus, profile); in koneplus_sysfs_set_actual_profile() 281 roccat_report.data1 = profile + 1; in koneplus_sysfs_set_actual_profile() 283 roccat_report.profile = profile + 1; in koneplus_sysfs_set_actual_profile() 505 roccat_report.profile = koneplus->actual_profile + 1; in koneplus_report_to_chrdev()
|
D | hid-roccat-arvo.c | 160 unsigned long profile; in arvo_sysfs_set_actual_profile() local 163 retval = kstrtoul(buf, 10, &profile); in arvo_sysfs_set_actual_profile() 167 if (profile < 1 || profile > 5) in arvo_sysfs_set_actual_profile() 171 temp_buf.actual_profile = profile; in arvo_sysfs_set_actual_profile() 177 arvo->actual_profile = profile; in arvo_sysfs_set_actual_profile() 390 roccat_report.profile = arvo->actual_profile; in arvo_report_to_chrdev()
|
D | hid-roccat-kovaplus.c | 285 unsigned long profile; in kovaplus_sysfs_set_actual_profile() local 293 retval = kstrtoul(buf, 10, &profile); in kovaplus_sysfs_set_actual_profile() 297 if (profile >= 5) in kovaplus_sysfs_set_actual_profile() 301 retval = kovaplus_set_actual_profile(usb_dev, profile); in kovaplus_sysfs_set_actual_profile() 307 kovaplus_profile_activated(kovaplus, profile); in kovaplus_sysfs_set_actual_profile() 310 roccat_report.profile = profile + 1; in kovaplus_sysfs_set_actual_profile() 312 roccat_report.data1 = profile + 1; in kovaplus_sysfs_set_actual_profile() 580 roccat_report.profile = kovaplus->actual_profile + 1; in kovaplus_report_to_chrdev()
|
/drivers/net/ethernet/marvell/octeontx2/af/ |
D | rvu_npc.c | 1457 const struct npc_kpu_profile *profile) in npc_program_kpu_profile() argument 1462 if (profile->cam_entries != profile->action_entries) { in npc_program_kpu_profile() 1465 kpu, profile->cam_entries, profile->action_entries); in npc_program_kpu_profile() 1471 num_entries = min_t(int, profile->cam_entries, max_entries); in npc_program_kpu_profile() 1474 &profile->cam[entry], kpu, entry); in npc_program_kpu_profile() 1477 num_entries = min_t(int, profile->action_entries, max_entries); in npc_program_kpu_profile() 1479 npc_config_kpuaction(rvu, blkaddr, &profile->action[entry], in npc_program_kpu_profile() 1483 num_entries = min_t(int, profile->action_entries, profile->cam_entries); in npc_program_kpu_profile() 1500 static int npc_prepare_default_kpu(struct npc_kpu_profile_adapter *profile) in npc_prepare_default_kpu() argument 1502 profile->custom = 0; in npc_prepare_default_kpu() [all …]
|
/drivers/net/ethernet/intel/i40e/ |
D | i40e_ddp.c | 121 i40e_add_pinfo(struct i40e_hw *hw, struct i40e_profile_segment *profile, in i40e_add_pinfo() argument 139 pinfo->version = profile->version; in i40e_add_pinfo() 144 memcpy(pinfo->name, profile->name, I40E_DDP_NAME_SIZE); in i40e_add_pinfo() 161 i40e_del_pinfo(struct i40e_hw *hw, struct i40e_profile_segment *profile, in i40e_del_pinfo() argument 179 pinfo->version = profile->version; in i40e_del_pinfo() 184 memcpy(pinfo->name, profile->name, I40E_DDP_NAME_SIZE); in i40e_del_pinfo()
|
/drivers/platform/x86/ |
D | ideapad-laptop.c | 714 static int convert_dytc_to_profile(int dytcmode, enum platform_profile_option *profile) in convert_dytc_to_profile() argument 718 *profile = PLATFORM_PROFILE_LOW_POWER; in convert_dytc_to_profile() 721 *profile = PLATFORM_PROFILE_BALANCED; in convert_dytc_to_profile() 724 *profile = PLATFORM_PROFILE_PERFORMANCE; in convert_dytc_to_profile() 733 static int convert_profile_to_dytc(enum platform_profile_option profile, int *perfmode) in convert_profile_to_dytc() argument 735 switch (profile) { in convert_profile_to_dytc() 757 enum platform_profile_option *profile) in dytc_profile_get() argument 761 *profile = dytc->current_profile; in dytc_profile_get() 810 enum platform_profile_option profile) in dytc_profile_set() argument 821 if (profile == PLATFORM_PROFILE_BALANCED) { in dytc_profile_set() [all …]
|
/drivers/infiniband/hw/mlx5/ |
D | ib_rep.c | 37 const struct mlx5_ib_profile *profile; in mlx5_ib_vport_rep_load() local 61 profile = &raw_eth_profile; in mlx5_ib_vport_rep_load() 84 ret = __mlx5_ib_add(ibdev, profile); in mlx5_ib_vport_rep_load() 146 __mlx5_ib_remove(dev, dev->profile, MLX5_IB_STAGE_MAX); in mlx5_ib_vport_rep_unload()
|