Lines Matching refs:cfgs
623 p4_escr_inuse(p4_pcbe_config_t **cfgs, int escr_ndx)
628 if (cfgs[i] == NULL)
630 if (cfgs[i]->p4_escr_ndx == escr_ndx)
638 build_cfgs(p4_pcbe_config_t *cfgs[18], uint64_t *data[18], void *token)
643 bzero(cfgs, 18 * sizeof (p4_pcbe_config_t *));
650 cfgs[cfg->p4_picno] = cfg;
673 p4_pcbe_config_t *cfgs[18];
730 build_cfgs(cfgs, NULL, token);
737 p4_escr_inuse(cfgs, escr_ndx) == 0)
823 p4_escr_inuse(cfgs, escr_ndx) == 0)
913 p4_pcbe_config_t *cfgs[18];
917 build_cfgs(cfgs, NULL, token);
940 if (cfgs[i] == NULL)
942 escr = (uint64_t)cfgs[i]->p4_escr;
944 if (cfgs[i]->p4_flags & P4_THIS_USR)
946 if (cfgs[i]->p4_flags & P4_THIS_SYS)
948 if (cfgs[i]->p4_flags & P4_SIBLING_USR)
950 if (cfgs[i]->p4_flags & P4_SIBLING_SYS)
953 wrmsr(p4_ctrs[i].pc_caddr, cfgs[i]->p4_rawpic);
954 wrmsr(p4_escrs[cfgs[i]->p4_escr_ndx].pe_addr, escr);
958 if (cfgs[i] == NULL)
960 cccr = (uint64_t)cfgs[i]->p4_cccr;
965 if (cfgs[i]->p4_flags & P4_PMI)
972 if (cfgs[i] == NULL)
974 wrmsr(p4_ctrs[i].pc_caddr, cfgs[i]->p4_rawpic);
975 wrmsr(p4_escrs[cfgs[i]->p4_escr_ndx].pe_addr,
976 (uint64_t)cfgs[i]->p4_escr);
980 if (cfgs[i] == NULL)
983 (uint64_t)cfgs[i]->p4_cccr);
1003 p4_pcbe_config_t *cfgs[18];
1012 build_cfgs(cfgs, addrs, token);
1015 if (cfgs[i] == NULL)
1017 diff = curpic[i] - cfgs[i]->p4_rawpic;
1022 uint64_t, curpic[i], uint64_t, cfgs[i]->p4_rawpic);
1023 cfgs[i]->p4_rawpic = *addrs[i] & MASK40;