Lines Matching full:tei

105     struct tentry_info *tei, uint32_t count, int op, struct table_config **ptc);
187 * Checks if we're able to insert/update entry @tei into table
189 * May alter @tei to indicate insertion error / insert
195 check_table_limit(struct table_config *tc, struct tentry_info *tei) in check_table_limit() argument
201 if ((tei->flags & TEI_FLAGS_UPDATE) == 0) { in check_table_limit()
203 tei->flags |= TEI_FLAGS_LIMIT; in check_table_limit()
213 tei->flags |= TEI_FLAGS_DONTADD; in check_table_limit()
223 store_tei_result(struct tentry_info *tei, int op, int error, uint32_t num) in store_tei_result() argument
246 tei->flags |= flag; in store_tei_result()
286 struct tentry_info *tei, uint32_t count, int op, in find_ref_table() argument
308 check_table_limit(tc, tei) != 0) in find_ref_table()
321 if ((tei->flags & TEI_FLAGS_COMPAT) == 0) in find_ref_table()
348 struct table_info *tinfo, struct tentry_info *tei, caddr_t ta_buf_m, in rollback_added_entries() argument
365 ptei = &tei[i]; in rollback_added_entries()
387 * Prepares add/del state for all @count entries in @tei.
395 struct tentry_info *tei, uint32_t count, int op, caddr_t *ta_buf) in prepare_batch_buffer() argument
424 ptei = &tei[i]; in prepare_batch_buffer()
442 * Flushes allocated state for each @count entries in @tei.
447 struct tentry_info *tei, uint32_t count, int rollback, in flush_batch_buffer() argument
460 ptei = &tei[i]; in flush_batch_buffer()
472 ta->flush_entry(ch, &tei[i], v); in flush_batch_buffer()
533 * After that, prepare_add callback is called for each @tei entry.
537 * for each @tei.
543 struct tentry_info *tei, uint8_t flags, uint32_t count) in add_table_entry() argument
564 flush_batch_buffer(ch, ta, tei, count, rollback, in add_table_entry()
571 error = find_ref_table(ch, ti, tei, count, OP_ADD, &tc); in add_table_entry()
585 ts.tei = tei; in add_table_entry()
594 error = prepare_batch_buffer(ch, ta, tei, count, OP_ADD, &ta_buf_m); in add_table_entry()
645 ptei = &tei[i]; in add_table_entry()
681 tei, ta_buf_m, count, i); in add_table_entry()
689 ipfw_garbage_table_values(ch, tc, tei, count, rollback); in add_table_entry()
701 flush_batch_buffer(ch, ta, tei, count, rollback, ta_buf_m, ta_buf); in add_table_entry()
713 struct tentry_info *tei, uint8_t flags, uint32_t count) in del_table_entry() argument
727 error = find_ref_table(ch, ti, tei, count, OP_DEL, &tc); in del_table_entry()
738 error = prepare_batch_buffer(ch, ta, tei, count, OP_DEL, &ta_buf_m); in del_table_entry()
764 ptei = &tei[i]; in del_table_entry()
778 ipfw_garbage_table_values(ch, tc, tei, count, 0); in del_table_entry()
791 flush_batch_buffer(ch, ta, tei, count, 0, ta_buf_m, ta_buf); in del_table_entry()
911 struct tentry_info *ptei, tei, *tei_buf; in manage_table_ent_v1() local
968 memset(&tei, 0, sizeof(tei)); in manage_table_ent_v1()
969 tei_buf = &tei; in manage_table_ent_v1()
971 tei_buf = malloc(ctlv->count * sizeof(tei), M_TEMP, in manage_table_ent_v1()
1012 if (tei_buf != &tei) in manage_table_ent_v1()