Lines Matching refs:cache_info

520 get_tag_addr(cache_info_t *cache_info)
524 switch (cache_info->cache) {
527 tag_addr = (uint64_t)(cache_info->index <<
529 scratch = (uint64_t)(cache_info->way <<
536 tag_addr = (uint64_t)(cache_info->index <<
538 scratch = (uint64_t)(cache_info->way <<
554 mem_cache_ioctl_ops(int cmd, int mode, cache_info_t *cache_info)
565 if (cache_info->way >= PN_CACHE_NWAYS)
567 switch (cache_info->cache) {
570 if (cache_info->index >=
576 if (cache_info->index >=
588 cpu = cpu_get(cache_info->cpu_id);
597 tag_addr = get_tag_addr(cache_info);
600 affinity_set(cache_info->cpu_id);
601 switch (cache_info->cache) {
604 if ((cache_info->bit & MSB_BIT_MASK) ==
609 cache_info->cache,
628 cache_info->index,
629 cache_info->way);
647 xt_one(cache_info->cpu_id,
657 cache_info->index,
658 cache_info->way);
670 if ((cache_info->bit & MSB_BIT_MASK) ==
674 cache_info->cache,
694 cache_info->index);
706 xt_one(cache_info->cpu_id,
713 cache_info->index);
724 tag_addr = get_tag_addr(cache_info);
726 affinity_set(cache_info->cpu_id);
727 switch (cache_info->cache) {
737 xt_one(cache_info->cpu_id,
746 cache_info->cache,
759 cache_info->index);
774 xt_one(cache_info->cpu_id,
783 cache_info->cache,
796 cache_info->index);
814 afar = (uint64_t)(cache_info->index
817 affinity_set(cache_info->cpu_id);
827 xt_one(cache_info->cpu_id,
834 switch (cache_info->cache) {
887 (caddr_t)cache_info->datap,
906 cache_info_t cache_info;
924 cache_info.cache = cache_info32.cache;
925 cache_info.index = cache_info32.index;
926 cache_info.way = cache_info32.way;
927 cache_info.cpu_id = cache_info32.cpu_id;
928 cache_info.bit = cache_info32.bit;
929 cache_info.datap = (void *)((uint64_t)cache_info32.datap);
932 if (ddi_copyin((cache_info_t *)arg, &cache_info,
933 sizeof (cache_info), mode) != DDI_SUCCESS) {
938 if ((cache_info.cpu_id < 0) || (cache_info.cpu_id >= _ncpu)) {
942 is_panther = IS_PANTHER(cpunodes[cache_info.cpu_id].implementation);
961 ret_val = mem_cache_ioctl_ops(cmd, mode, &cache_info);