Lines Matching refs:kidx

157 static int export_objhash_ntlv(struct namedobj_instance *ni, uint32_t kidx,
870 uint32_t kidx; in move_objects() local
886 rw = find_op_rw(cmd, &kidx, NULL); in move_objects()
895 if (rw->manage_sets(ch, kidx, 1, COUNT_ONE) != 0) in move_objects()
913 rw = find_op_rw(cmd, &kidx, NULL); in move_objects()
917 c = rw->manage_sets(ch, kidx, in move_objects()
932 rw = find_op_rw(cmd, &kidx, NULL); in move_objects()
936 rw->manage_sets(ch, kidx, in move_objects()
941 rw->manage_sets(ch, kidx, in move_objects()
1370 if (insntod(cmd, kidx)->kidx == 0) in ipfw_check_opcode()
1392 if (insntod(cmd, kidx)->kidx == 0) in ipfw_check_opcode()
1473 if (insntod(cmd, kidx)->kidx >= V_fw_tables_max) { in ipfw_check_opcode()
1475 insntod(cmd, kidx)->kidx); in ipfw_check_opcode()
1734 ntlv->idx = no->kidx; in ipfw_export_obj_ntlv()
1745 export_objhash_ntlv(struct namedobj_instance *ni, uint32_t kidx, in export_objhash_ntlv() argument
1751 no = ipfw_objhash_lookup_kidx(ni, kidx); in export_objhash_ntlv()
1845 ipfw_mark_object_kidx(uint32_t *bmask, uint16_t etlv, uint32_t kidx) in ipfw_mark_object_kidx() argument
1853 bidx += kidx / 32; in ipfw_mark_object_kidx()
1854 if ((bmask[bidx] & (1 << (kidx % 32))) != 0) in ipfw_mark_object_kidx()
1857 bmask[bidx] |= 1 << (kidx % 32); in ipfw_mark_object_kidx()
1872 uint32_t kidx; in mark_rule_objects() local
1882 rw = find_op_rw(cmd, &kidx, &subtype); in mark_rule_objects()
1886 if (ipfw_mark_object_kidx(da->bmask, rw->etlv, kidx)) in mark_rule_objects()
2043 uint32_t kidx; in create_objects_compat() local
2051 if (p->kidx != 0) in create_objects_compat()
2065 error = rw->create_object(ch, ti, &kidx); in create_objects_compat()
2067 p->kidx = kidx; in create_objects_compat()
2102 if (p->kidx == 0) in unref_oib_objects()
2110 no = rw->find_bykidx(ch, p->kidx); in unref_oib_objects()
2111 KASSERT(no != NULL, ("Ref'd object %d disappeared", p->kidx)); in unref_oib_objects()
2126 uint32_t kidx; in unref_rule_objects() local
2138 rw = find_op_rw(cmd, &kidx, &subtype); in unref_rule_objects()
2141 no = rw->find_bykidx(ch, kidx); in unref_rule_objects()
2143 KASSERT(no != NULL, ("object id %d not found", kidx)); in unref_rule_objects()
2146 no->subtype, subtype, kidx)); in unref_rule_objects()
2148 kidx, no->refcnt)); in unref_rule_objects()
2204 rw->update(cmd, no->kidx); in ref_opcode_object()
2318 update_opcode_kidx(cmd, p->kidx); in rewrite_rule_uidx()
3596 ipfw_objhash_lookup_kidx(struct namedobj_instance *ni, uint32_t kidx) in ipfw_objhash_lookup_kidx() argument
3601 hash = objhash_hash_idx(ni, kidx); in ipfw_objhash_lookup_kidx()
3604 if (no->kidx == kidx) in ipfw_objhash_lookup_kidx()
3630 hash = objhash_hash_idx(ni, no->kidx); in ipfw_objhash_add()
3644 hash = objhash_hash_idx(ni, no->kidx); in ipfw_objhash_del()