/kernel/linux/linux-5.10/drivers/hwmon/ |
H A D | fam15h_power.c | 137 int cpu, cu; in do_read_registers_on_cu() local 145 cu = cpu_data(cpu).cpu_core_id; in do_read_registers_on_cu() 147 rdmsrl_safe(MSR_F15H_CU_PWR_ACCUMULATOR, &data->cu_acc_power[cu]); in do_read_registers_on_cu() 148 rdmsrl_safe(MSR_F15H_PTSC, &data->cpu_sw_pwr_ptsc[cu]); in do_read_registers_on_cu() 150 data->cu_on[cu] = 1; in do_read_registers_on_cu() 206 int cu, cu_num, ret; in power1_average_show() local 219 for (cu = 0; cu < cu_num; cu++) { in power1_average_show() 220 prev_cu_acc_power[cu] in power1_average_show() [all...] |
/kernel/linux/linux-6.6/drivers/hwmon/ |
H A D | fam15h_power.c | 137 int cpu, cu; in do_read_registers_on_cu() local 145 cu = cpu_data(cpu).cpu_core_id; in do_read_registers_on_cu() 147 rdmsrl_safe(MSR_F15H_CU_PWR_ACCUMULATOR, &data->cu_acc_power[cu]); in do_read_registers_on_cu() 148 rdmsrl_safe(MSR_F15H_PTSC, &data->cpu_sw_pwr_ptsc[cu]); in do_read_registers_on_cu() 150 data->cu_on[cu] = 1; in do_read_registers_on_cu() 206 int cu, cu_num, ret; in power1_average_show() local 219 for (cu = 0; cu < cu_num; cu++) { in power1_average_show() 220 prev_cu_acc_power[cu] in power1_average_show() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdkfd/ |
H A D | kfd_crat.c | 146 struct crat_subtype_computeunit *cu) in kfd_populated_cu_info_cpu() 148 dev->node_props.cpu_cores_count = cu->num_cpu_cores; in kfd_populated_cu_info_cpu() 149 dev->node_props.cpu_core_id_base = cu->processor_id_low; in kfd_populated_cu_info_cpu() 150 if (cu->hsa_capability & CRAT_CU_FLAGS_IOMMU_PRESENT) in kfd_populated_cu_info_cpu() 153 pr_debug("CU CPU: cores=%d id_base=%d\n", cu->num_cpu_cores, in kfd_populated_cu_info_cpu() 154 cu->processor_id_low); in kfd_populated_cu_info_cpu() 158 struct crat_subtype_computeunit *cu) in kfd_populated_cu_info_gpu() 160 dev->node_props.simd_id_base = cu->processor_id_low; in kfd_populated_cu_info_gpu() 161 dev->node_props.simd_count = cu->num_simd_cores; in kfd_populated_cu_info_gpu() 162 dev->node_props.lds_size_in_kb = cu in kfd_populated_cu_info_gpu() 145 kfd_populated_cu_info_cpu(struct kfd_topology_device *dev, struct crat_subtype_computeunit *cu) kfd_populated_cu_info_cpu() argument 157 kfd_populated_cu_info_gpu(struct kfd_topology_device *dev, struct crat_subtype_computeunit *cu) kfd_populated_cu_info_gpu() argument 177 kfd_parse_subtype_cu(struct crat_subtype_computeunit *cu, struct list_head *device_list) kfd_parse_subtype_cu() argument 433 struct crat_subtype_computeunit *cu; kfd_parse_subtype() local 1181 struct crat_subtype_computeunit *cu; kfd_create_vcrat_image_gpu() local [all...] |
H A D | kfd_mqd_manager.c | 102 int i, se, sh, cu; in mqd_symmetrically_map_cu_mask() local 162 for (cu = 0; cu < 16; cu++) { in mqd_symmetrically_map_cu_mask() 165 if (cu_per_sh[se][sh] > cu) { in mqd_symmetrically_map_cu_mask() 167 se_mask[se] |= 1 << (cu + sh * 16); in mqd_symmetrically_map_cu_mask()
|
/kernel/linux/linux-6.6/arch/csky/lib/ |
H A D | string.c | 112 unsigned long cu = (unsigned long)c; in memset() local 115 cu |= cu << 8; in memset() 116 cu |= cu << 16; in memset() 118 cu |= (cu << 16) << 16; in memset() 125 *dest.as_ulong++ = cu; in memset()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdkfd/ |
H A D | kfd_crat.c | 932 struct crat_subtype_computeunit *cu) in kfd_populated_cu_info_cpu() 934 dev->node_props.cpu_cores_count = cu->num_cpu_cores; in kfd_populated_cu_info_cpu() 935 dev->node_props.cpu_core_id_base = cu->processor_id_low; in kfd_populated_cu_info_cpu() 936 if (cu->hsa_capability & CRAT_CU_FLAGS_IOMMU_PRESENT) in kfd_populated_cu_info_cpu() 939 pr_debug("CU CPU: cores=%d id_base=%d\n", cu->num_cpu_cores, in kfd_populated_cu_info_cpu() 940 cu->processor_id_low); in kfd_populated_cu_info_cpu() 944 struct crat_subtype_computeunit *cu) in kfd_populated_cu_info_gpu() 946 dev->node_props.simd_id_base = cu->processor_id_low; in kfd_populated_cu_info_gpu() 947 dev->node_props.simd_count = cu->num_simd_cores; in kfd_populated_cu_info_gpu() 948 dev->node_props.lds_size_in_kb = cu in kfd_populated_cu_info_gpu() 931 kfd_populated_cu_info_cpu(struct kfd_topology_device *dev, struct crat_subtype_computeunit *cu) kfd_populated_cu_info_cpu() argument 943 kfd_populated_cu_info_gpu(struct kfd_topology_device *dev, struct crat_subtype_computeunit *cu) kfd_populated_cu_info_gpu() argument 963 kfd_parse_subtype_cu(struct crat_subtype_computeunit *cu, struct list_head *device_list) kfd_parse_subtype_cu() argument 1220 struct crat_subtype_computeunit *cu; kfd_parse_subtype() local 2043 struct crat_subtype_computeunit *cu; kfd_create_vcrat_image_gpu() local [all...] |
H A D | kfd_mqd_manager.c | 106 int i, se, sh, cu, cu_bitmap_sh_mul, cu_inc = wgp_mode_req ? 2 : 1; in mqd_symmetrically_map_cu_mask() local 191 for (cu = 0; cu < 16; cu += cu_inc) { in mqd_symmetrically_map_cu_mask() 194 if (cu_per_sh[se][sh] > cu) { in mqd_symmetrically_map_cu_mask() 196 se_mask[se] |= en_mask << (cu + sh * 16); in mqd_symmetrically_map_cu_mask()
|
/kernel/linux/linux-5.10/arch/m68k/fpsp040/ |
H A D | bugfix.S | 186 | cu src equal to xu dest or equal to nu dest. If so, go to 187 | op0. Else, or if opclass2, check for cu dest equal to 197 | Check for cu and nu register conflict. If one exists, this takes 198 | priority over a cu and xu conflict. 205 | Check for cu dest equal to nu dest. If so, go and fix the 212 | Check for cu and xu register conflict. 246 | We have the case in which a conflict exists between the cu src or 248 | the cu and restore the state, allowing the instruction in the 252 | restore the instruction from the cu to the frame and continue 262 | The cu savep [all...] |
/kernel/linux/linux-6.6/arch/m68k/fpsp040/ |
H A D | bugfix.S | 186 | cu src equal to xu dest or equal to nu dest. If so, go to 187 | op0. Else, or if opclass2, check for cu dest equal to 197 | Check for cu and nu register conflict. If one exists, this takes 198 | priority over a cu and xu conflict. 205 | Check for cu dest equal to nu dest. If so, go and fix the 212 | Check for cu and xu register conflict. 246 | We have the case in which a conflict exists between the cu src or 248 | the cu and restore the state, allowing the instruction in the 252 | restore the instruction from the cu to the frame and continue 262 | The cu savep [all...] |
/kernel/linux/linux-5.10/lib/ |
H A D | hexdump.c | 48 unsigned char cu = ch & 0xdf; in hex_to_bin() local 51 ((cu - 'A' + 11) & (unsigned)((cu - 'F' - 1) & ('A' - 1 - cu)) >> 8); in hex_to_bin()
|
/kernel/linux/linux-6.6/lib/ |
H A D | hexdump.c | 48 unsigned char cu = ch & 0xdf; in hex_to_bin() local 51 ((cu - 'A' + 11) & (unsigned)((cu - 'F' - 1) & ('A' - 1 - cu)) >> 8); in hex_to_bin()
|
/kernel/linux/linux-5.10/arch/s390/include/asm/ |
H A D | ccwdev.h | 27 #define CCW_DEVICE(cu, cum) \ 28 .cu_type=(cu), .cu_model=(cum), \ 32 #define CCW_DEVICE_DEVTYPE(cu, cum, dev, devm) \ 33 .cu_type=(cu), .cu_model=(cum), .dev_type=(dev), .dev_model=(devm),\
|
/kernel/linux/linux-6.6/arch/s390/include/asm/ |
H A D | ccwdev.h | 28 #define CCW_DEVICE(cu, cum) \ 29 .cu_type=(cu), .cu_model=(cum), \ 33 #define CCW_DEVICE_DEVTYPE(cu, cum, dev, devm) \ 34 .cu_type=(cu), .cu_model=(cum), .dev_type=(dev), .dev_model=(devm),\
|
/kernel/linux/linux-5.10/kernel/time/ |
H A D | clockevents.c | 403 struct ce_unbind *cu = arg; in __clockevents_unbind() local 407 res = __clockevents_try_unbind(cu->ce, smp_processor_id()); in __clockevents_unbind() 409 res = clockevents_replace(cu->ce); in __clockevents_unbind() 410 cu->res = res; in __clockevents_unbind() 420 struct ce_unbind cu = { .ce = ced, .res = -ENODEV }; in clockevents_unbind() local 422 smp_call_function_single(cpu, __clockevents_unbind, &cu, 1); in clockevents_unbind() 423 return cu.res; in clockevents_unbind()
|
/kernel/linux/linux-6.6/kernel/time/ |
H A D | clockevents.c | 402 struct ce_unbind *cu = arg; in __clockevents_unbind() local 406 res = __clockevents_try_unbind(cu->ce, smp_processor_id()); in __clockevents_unbind() 408 res = clockevents_replace(cu->ce); in __clockevents_unbind() 409 cu->res = res; in __clockevents_unbind() 419 struct ce_unbind cu = { .ce = ced, .res = -ENODEV }; in clockevents_unbind() local 421 smp_call_function_single(cpu, __clockevents_unbind, &cu, 1); in clockevents_unbind() 422 return cu.res; in clockevents_unbind()
|
/kernel/linux/linux-5.10/tools/perf/tests/shell/ |
H A D | test_uprobe_from_different_cu.sh | 13 temp_dir=$(mktemp -d /tmp/perf-uprobe-different-cu-sh.XXXXXXXXXX) 18 if [[ "${temp_dir}" =~ ^/tmp/perf-uprobe-different-cu-sh.*$ ]]; then
|
/kernel/linux/linux-6.6/tools/perf/tests/shell/ |
H A D | test_uprobe_from_different_cu.sh | 13 temp_dir=$(mktemp -d /tmp/perf-uprobe-different-cu-sh.XXXXXXXXXX) 18 if [[ "${temp_dir}" =~ ^/tmp/perf-uprobe-different-cu-sh.*$ ]]; then
|
/kernel/linux/linux-5.10/sound/pci/asihpi/ |
H A D | hpicmn.c | 393 phr->u.cu.tuner.s_level = 0; in hpi_check_control_cache_single() 397 phr->u.cu.tuner.s_level = in hpi_check_control_cache_single() 497 if (tocopy > sizeof(phr->u.cu.chars8.sz_data)) in hpi_check_control_cache_single() 498 tocopy = sizeof(phr->u.cu.chars8. in hpi_check_control_cache_single() 501 memcpy(phr->u.cu.chars8.sz_data, in hpi_check_control_cache_single() 504 phr->u.cu.chars8.remaining_chars = in hpi_check_control_cache_single()
|
/kernel/linux/linux-6.6/sound/pci/asihpi/ |
H A D | hpicmn.c | 393 phr->u.cu.tuner.s_level = 0; in hpi_check_control_cache_single() 397 phr->u.cu.tuner.s_level = in hpi_check_control_cache_single() 497 if (tocopy > sizeof(phr->u.cu.chars8.sz_data)) in hpi_check_control_cache_single() 498 tocopy = sizeof(phr->u.cu.chars8. in hpi_check_control_cache_single() 501 memcpy(phr->u.cu.chars8.sz_data, in hpi_check_control_cache_single() 504 phr->u.cu.chars8.remaining_chars = in hpi_check_control_cache_single()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_ras_eeprom.h | 72 unsigned char cu; member
|
H A D | amdgpu_gfx.c | 147 unsigned se, sh, cu; in amdgpu_gfx_parse_disable_cu() local 158 int ret = sscanf(p, "%u.%u.%u", &se, &sh, &cu); in amdgpu_gfx_parse_disable_cu() 164 if (se < max_se && sh < max_sh && cu < 16) { in amdgpu_gfx_parse_disable_cu() 165 DRM_INFO("amdgpu: disabling CU %u.%u.%u\n", se, sh, cu); in amdgpu_gfx_parse_disable_cu() 166 mask[se * max_sh + sh] |= 1u << cu; in amdgpu_gfx_parse_disable_cu() 169 se, sh, cu); in amdgpu_gfx_parse_disable_cu()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_umr.h | 50 u32 gpr_or_wave, se, sh, cu, wave, simd, xcc_id; member
|
/kernel/linux/linux-6.6/drivers/s390/cio/ |
H A D | chsc.c | 1480 u16 cu; member 1508 * @cu: number of the control-unit 1517 int chsc_scud(u16 cu, u64 *esm, u8 *esm_valid) in chsc_scud() argument 1528 scud->first_cu = cu; in chsc_scud() 1529 scud->last_cu = cu; in chsc_scud() 1537 || scud->cudb[0].cu != cu)) { in chsc_scud() 1540 "FMT=%04x, cudb.flags=%02x, cudb.cu=%04x", in chsc_scud() 1542 scud->fmt_resp, scud->cudb[0].flags, scud->cudb[0].cu); in chsc_scud()
|
/kernel/linux/linux-6.6/drivers/media/platform/qcom/venus/ |
H A D | pm_helpers.c | 627 struct hfi_videocores_usage_type cu; in decide_core() local 633 cu.video_core_enable_mask = VIDC_CORE_ID_1; in decide_core() 635 cu.video_core_enable_mask = VIDC_CORE_ID_2; in decide_core() 658 cu.video_core_enable_mask = min_coreid; in decide_core() 662 cu.video_core_enable_mask = min_coreid; in decide_core() 667 cu.video_core_enable_mask = min_lp_coreid; in decide_core() 675 ret = hfi_session_set_property(inst, ptype, &cu); in decide_core()
|
/kernel/linux/linux-5.10/drivers/media/platform/qcom/venus/ |
H A D | pm_helpers.c | 542 struct hfi_videocores_usage_type cu; in decide_core() local 547 cu.video_core_enable_mask = VIDC_CORE_ID_1; in decide_core() 549 cu.video_core_enable_mask = VIDC_CORE_ID_2; in decide_core() 570 cu.video_core_enable_mask = min_coreid; in decide_core() 573 return hfi_session_set_property(inst, ptype, &cu); in decide_core()
|