Lines Matching refs:kidx

169 static int export_objhash_ntlv(struct namedobj_instance *ni, uint16_t kidx,
591 cmdif->p.kidx = (uint16_t)cmdif->p.glob;
675 cmdif->p.glob = cmdif->p.kidx;
966 * @set used to pass kidx.
977 /* @set used to pass kidx */
995 /* @set used to pass kidx */
1103 uint16_t kidx;
1118 rw = find_op_rw(cmd, &kidx, NULL);
1127 if (rw->manage_sets(ch, kidx, 1, COUNT_ONE) != 0)
1145 rw = find_op_rw(cmd, &kidx, NULL);
1149 c = rw->manage_sets(ch, kidx,
1164 rw = find_op_rw(cmd, &kidx, NULL);
1168 rw->manage_sets(ch, kidx,
1173 rw->manage_sets(ch, kidx,
2246 ntlv->idx = no->kidx;
2251 * Export named object info in instance @ni, identified by @kidx
2257 export_objhash_ntlv(struct namedobj_instance *ni, uint16_t kidx,
2263 no = ipfw_objhash_lookup_kidx(ni, kidx);
2356 ipfw_mark_object_kidx(uint32_t *bmask, uint16_t etlv, uint16_t kidx)
2364 bidx += kidx / 32;
2365 if ((bmask[bidx] & (1 << (kidx % 32))) != 0)
2368 bmask[bidx] |= 1 << (kidx % 32);
2384 uint16_t kidx;
2393 rw = find_op_rw(cmd, &kidx, &subtype);
2397 if (ipfw_mark_object_kidx(da->bmask, rw->etlv, kidx))
2554 uint16_t kidx;
2562 if (p->kidx != 0)
2576 error = rw->create_object(ch, ti, &kidx);
2578 p->kidx = kidx;
2613 uint16_t kidx, uidx;
2625 rw = find_op_rw(cmd, &kidx, &subtype);
2630 no = rw->find_bykidx(ch, kidx);
2672 if (p->kidx == 0)
2680 no = rw->find_bykidx(ch, p->kidx);
2681 KASSERT(no != NULL, ("Ref'd object %d disappeared", p->kidx));
2697 uint16_t kidx;
2708 rw = find_op_rw(cmd, &kidx, &subtype);
2711 no = rw->find_bykidx(ch, kidx);
2713 KASSERT(no != NULL, ("object id %d not found", kidx));
2716 no->subtype, subtype, kidx));
2718 kidx, no->refcnt));
2773 /* Bump refcount and update kidx. */
2775 rw->update(cmd, no->kidx);
2891 update_opcode_kidx(cmd, p->kidx);
4528 ipfw_objhash_lookup_kidx(struct namedobj_instance *ni, uint16_t kidx)
4533 hash = objhash_hash_idx(ni, kidx);
4536 if (no->kidx == kidx)
4562 hash = objhash_hash_idx(ni, no->kidx);
4576 hash = objhash_hash_idx(ni, no->kidx);