Lines Matching defs:p_tbl
275 static au_event_ent_t **p_tbl;
310 p_tbl = calloc(lines + 1, sizeof (au_event_ent_t));
311 if (p_tbl == NULL) {
320 p_tbl[lines] = (au_event_ent_t *)
322 if (p_tbl[lines] == NULL) {
326 p_tbl[lines]->ae_number = p_event->ae_number;
327 p_tbl[lines]->ae_name = strdup(p_event->ae_name);
328 p_tbl[lines]->ae_desc = strdup(p_event->ae_desc);
329 p_tbl[lines]->ae_class = p_event->ae_class;
331 printevent(p_tbl[lines]);
343 p_tbl[invalid] = (au_event_ent_t *)
345 if (p_tbl[invalid] == NULL) {
349 p_tbl[invalid]->ae_number = (au_event_t)-1;
350 p_tbl[invalid]->ae_name = "invalid event number";
351 p_tbl[invalid]->ae_desc = p_tbl[invalid]->ae_name;
352 p_tbl[invalid]->ae_class = (au_class_t)-1;
356 (void) printf("%d:%s:%s:%d\n", p_tbl[i]->ae_number,
357 p_tbl[i]->ae_name, p_tbl[i]->ae_desc,
358 p_tbl[i]->ae_class);
371 index_tbl[i] = p_tbl[invalid];
376 index_tbl[p_tbl[i]->ae_number] = p_tbl[i];