Searched refs:pcounter (Results 1 – 1 of 1) sorted by relevance
1860 unsigned long *pcounter; member1972 void pmt_counter_resize_(struct pmt_counter *pcounter, unsigned int new_size) in pmt_counter_resize_() argument1976 …new_mem = (struct pmt_domain_info *)reallocarray(pcounter->domains, new_size, sizeof(*pcounter->do… in pmt_counter_resize_()1983 const size_t num_new_domains = new_size - pcounter->num_domains; in pmt_counter_resize_()1985 memset(&new_mem[pcounter->num_domains], 0, num_new_domains * sizeof(*pcounter->domains)); in pmt_counter_resize_()1987 pcounter->num_domains = new_size; in pmt_counter_resize_()1988 pcounter->domains = new_mem; in pmt_counter_resize_()1991 void pmt_counter_resize(struct pmt_counter *pcounter, unsigned int new_size) in pmt_counter_resize() argument2001 new_size = MAX(new_size, pcounter->num_domains * 2); in pmt_counter_resize()2003 pmt_counter_resize_(pcounter, new_size); in pmt_counter_resize()[all …]