| /freebsd-13-stable/sys/netpfil/ipfw/ |
| HD | ip_fw_table.c | 178 get_table_value(struct ip_fw_chain *ch, struct table_config *tc, uint32_t kidx) in get_table_value() argument 184 return (&pval[kidx]); in get_table_value() 292 uint16_t kidx; in find_ref_table() local 326 error = create_table_compat(ch, ti, &kidx); in find_ref_table() 332 tc = (struct table_config *)ipfw_objhash_lookup_kidx(ni, kidx); in find_ref_table() 333 KASSERT(tc != NULL, ("create_table_compat returned bad idx %d", kidx)); in find_ref_table() 548 uint16_t kidx; in add_table_entry() local 630 kidx = tc->no.kidx; in add_table_entry() 631 error = check_table_space(ch, &ts, tc, KIDX_TO_TI(ch, kidx), count); in add_table_entry() 638 kidx = tc->no.kidx; in add_table_entry() [all …]
|
| HD | ip_fw_eaction.c | 213 if (ipfw_objhash_alloc_idx(ni, &obj->no.kidx) != 0) { in create_eaction_obj() 221 SRV_OBJECT(ch, obj->no.kidx) = obj; in create_eaction_obj() 227 *eaction_id = obj->no.kidx; in create_eaction_obj() 241 obj = SRV_OBJECT(ch, no->kidx); in destroy_eaction_obj() 242 SRV_OBJECT(ch, no->kidx) = NULL; in destroy_eaction_obj() 245 ipfw_objhash_free_idx(ni, no->kidx); in destroy_eaction_obj() 265 if (eaction_id == no->kidx) in reset_eaction_rules() 268 EACTION_DEBUG("Going to replace id %u with %u", eaction_id, no->kidx); in reset_eaction_rules() 283 no->kidx, instance_id) != 0) in reset_eaction_rules() 292 ipfw_dyn_reset_eaction(ch, eaction_id, no->kidx, instance_id); in reset_eaction_rules() [all …]
|
| HD | ip_fw_dynamic.c | 172 uint16_t kidx; /* named object index */ member 197 uint16_t kidx; /* named object index */ member 685 *pkidx = no->kidx; in dyn_create() 692 if (ipfw_objhash_alloc_idx(ni, &obj->no.kidx) != 0) { in dyn_create() 699 SRV_OBJECT(ch, obj->no.kidx) = obj; in dyn_create() 701 *pkidx = obj->no.kidx; in dyn_create() 718 no->name, no->etlv, no->kidx, no->refcnt)); in dyn_destroy() 719 DYN_DEBUG("kidx %d", no->kidx); in dyn_destroy() 720 obj = SRV_OBJECT(ch, no->kidx); in dyn_destroy() 721 SRV_OBJECT(ch, no->kidx) = NULL; in dyn_destroy() [all …]
|
| HD | ip_fw_table_value.c | 159 ptv->pval = &pval[ptv->no.kidx]; in update_tvalue() 160 ptv->no.name = (char *)&pval[ptv->no.kidx]; in update_tvalue() 251 uint32_t kidx) in unref_table_value() argument 255 KASSERT(pval[kidx].refcnt > 0, ("Refcount is 0 on kidx %d", kidx)); in unref_table_value() 256 if (--pval[kidx].refcnt > 0) in unref_table_value() 260 ptvl = (struct table_val_link *)ipfw_objhash_lookup_kidx(vi, kidx); in unref_table_value() 261 KASSERT(ptvl != NULL, ("lookup on value kidx %d failed", kidx)); in unref_table_value() 263 ipfw_objhash_free_idx(vi, kidx); in unref_table_value() 296 (struct table_value *)ch->valuestate, tent->v.kidx); in unref_table_value_cb() 504 if (vlimit > 0 && vlimit <= ptv->no.kidx) in ipfw_link_table_values() [all …]
|
| HD | ip_fw_sockopt.c | 168 static int export_objhash_ntlv(struct namedobj_instance *ni, uint16_t kidx, 586 cmdif->p.kidx = (uint16_t)cmdif->p.glob; in import_rule0() 670 cmdif->p.glob = cmdif->p.kidx; in export_rule0() 1094 uint16_t kidx; in move_objects() local 1109 rw = find_op_rw(cmd, &kidx, NULL); in move_objects() 1118 if (rw->manage_sets(ch, kidx, 1, COUNT_ONE) != 0) in move_objects() 1136 rw = find_op_rw(cmd, &kidx, NULL); in move_objects() 1140 c = rw->manage_sets(ch, kidx, in move_objects() 1155 rw = find_op_rw(cmd, &kidx, NULL); in move_objects() 1159 rw->manage_sets(ch, kidx, in move_objects() [all …]
|
| HD | ip_fw_private.h | 193 ((p)->kidx != 0 && (p)->kidx != (cmd)->arg1)) 196 (p)->kidx = 0; \ 200 uint16_t kidx; /* state name kidx */ member 351 uint16_t kidx; /* object kernel index */ member 479 uint16_t kidx; /* kernel object index */ member 592 uint16_t kidx); 670 int ipfw_mark_object_kidx(uint32_t *bmask, uint16_t etlv, uint16_t kidx); 784 uint16_t kidx); 785 int ipfw_ref_table(struct ip_fw_chain *ch, ipfw_obj_ntlv *ntlv, uint16_t *kidx); 786 void ipfw_unref_table(struct ip_fw_chain *ch, uint16_t kidx);
|
| HD | ip_fw_table.h | 183 int ipfw_export_table_ntlv(struct ip_fw_chain *ch, uint16_t kidx, 193 int ipfw_foreach_table_tentry(struct ip_fw_chain *ch, uint16_t kidx,
|
| HD | ip_fw_table_algo.c | 534 tent->v.kidx = n->value; in ta_dump_addr_radix_tentry() 542 tent->v.kidx = xn->value; in ta_dump_addr_radix_tentry() 1385 tent->v.kidx = ent->value; in ta_dump_chash_tentry() 1391 tent->v.kidx = ent->value; in ta_dump_chash_tentry() 1908 uint16_t kidx; member 1989 if (key < ifidx->kidx) in compare_ifidx() 1991 else if (key > ifidx->kidx) in compare_ifidx() 2394 ifi.kidx = ifindex; in if_notifier() 2529 tent->v.kidx = ife->value; in ta_dump_ifidx_tentry() 2985 tent->v.kidx = na->value; in ta_dump_numarray_tentry() [all …]
|
| HD | ip_fw2.c | 424 return ipfw_lookup_table(chain, cmd->p.kidx, 0, in iface_match()
|
| /freebsd-13-stable/sys/contrib/dev/rtw89/ |
| HD | rtw8852c_rfk.c | 1697 u8 kidx = dpk->cur_idx[path]; in _dpk_information() local 1699 dpk->bp[path][kidx].band = chan->band_type; in _dpk_information() 1700 dpk->bp[path][kidx].ch = chan->channel; in _dpk_information() 1701 dpk->bp[path][kidx].bw = chan->band_width; in _dpk_information() 1708 dpk->bp[path][kidx].band == 0 ? "2G" : in _dpk_information() 1709 dpk->bp[path][kidx].band == 1 ? "5G" : "6G", in _dpk_information() 1710 dpk->bp[path][kidx].ch, in _dpk_information() 1711 dpk->bp[path][kidx].bw == 0 ? "20M" : in _dpk_information() 1712 dpk->bp[path][kidx].bw == 1 ? "40M" : "80M"); in _dpk_information() 1849 enum rtw89_rf_path path, u8 kidx) in _dpk_rf_setting() argument [all …]
|
| HD | rtw8852a_rfk.c | 1883 u8 kidx = dpk->cur_idx[path]; in _dpk_information() local 1885 dpk->bp[path][kidx].band = chan->band_type; in _dpk_information() 1886 dpk->bp[path][kidx].ch = chan->channel; in _dpk_information() 1887 dpk->bp[path][kidx].bw = chan->band_width; in _dpk_information() 1894 dpk->bp[path][kidx].band == 0 ? "2G" : in _dpk_information() 1895 dpk->bp[path][kidx].band == 1 ? "5G" : "6G", in _dpk_information() 1896 dpk->bp[path][kidx].ch, in _dpk_information() 1897 dpk->bp[path][kidx].bw == 0 ? "20M" : in _dpk_information() 1898 dpk->bp[path][kidx].bw == 1 ? "40M" : "80M"); in _dpk_information() 1964 enum rtw89_rf_path path, u8 kidx) in _dpk_kip_setting() argument [all …]
|
| /freebsd-13-stable/sys/netpfil/ipfw/nat64/ |
| HD | nat64clat.c | 67 uint32_t kidx) in nat64clat_log() argument 76 plog->rulenr = htonl(kidx); in nat64clat_log() 105 nat64clat_log(logdata, m, AF_INET, cfg->no.kidx); in nat64clat_handle_ip4() 137 nat64clat_log(logdata, m, AF_INET6, cfg->no.kidx); in nat64clat_handle_ip6() 197 nat64clat_log(logdata, m, AF_INET6, cfg->no.kidx); in nat64clat_handle_icmp6()
|
| HD | nat64stl.c | 66 uint32_t kidx) in nat64stl_log() argument 75 plog->rulenr = htonl(kidx); in nat64stl_log() 106 nat64stl_log(logdata, m, AF_INET, cfg->no.kidx); in nat64stl_handle_ip4() 139 nat64stl_log(logdata, m, AF_INET6, cfg->no.kidx); in nat64stl_handle_ip6() 197 nat64stl_log(logdata, m, AF_INET6, cfg->no.kidx); in nat64stl_handle_icmp6()
|
| HD | nat64stl_control.c | 148 if (ipfw_objhash_alloc_idx(CHAIN_TO_SRV(ch), &cfg->no.kidx) != 0) in nat64stl_create_internal() 223 SRV_OBJECT(ch, cfg->no.kidx) = cfg; in nat64stl_create() 229 ipfw_objhash_free_idx(ni, cfg->no.kidx); in nat64stl_create() 306 ipfw_objhash_free_idx(CHAIN_TO_SRV(ch), cfg->no.kidx); in nat64stl_detach_config() 343 ipfw_reset_eaction_instance(ch, V_nat64stl_eid, cfg->no.kidx); in nat64stl_destroy() 344 SRV_OBJECT(ch, cfg->no.kidx) = NULL; in nat64stl_destroy() 577 cfg = (struct nat64stl_cfg *)SRV_OBJECT(ch, no->kidx); in destroy_config_cb() 578 SRV_OBJECT(ch, no->kidx) = NULL; in destroy_config_cb()
|
| HD | nat64clat_control.c | 191 if (ipfw_objhash_alloc_idx(ni, &cfg->no.kidx) != 0) { in nat64clat_create() 198 SRV_OBJECT(ch, cfg->no.kidx) = cfg; in nat64clat_create() 303 ipfw_objhash_free_idx(CHAIN_TO_SRV(ch), cfg->no.kidx); in nat64clat_detach_config() 338 ipfw_reset_eaction_instance(ch, V_nat64clat_eid, cfg->no.kidx); in nat64clat_destroy() 339 SRV_OBJECT(ch, cfg->no.kidx) = NULL; in nat64clat_destroy() 572 cfg = (struct nat64clat_cfg *)SRV_OBJECT(ch, no->kidx); in destroy_config_cb() 573 SRV_OBJECT(ch, no->kidx) = NULL; in destroy_config_cb()
|
| HD | nat64lsn_control.c | 195 if (ipfw_objhash_alloc_idx(CHAIN_TO_SRV(ch), &cfg->no.kidx) != 0) { in nat64lsn_create() 203 SRV_OBJECT(ch, cfg->no.kidx) = cfg; in nat64lsn_create() 217 ipfw_objhash_free_idx(CHAIN_TO_SRV(ch), cfg->no.kidx); in nat64lsn_detach_config() 251 ipfw_reset_eaction_instance(ch, V_nat64lsn_eid, cfg->no.kidx); in nat64lsn_destroy() 252 SRV_OBJECT(ch, cfg->no.kidx) = NULL; in nat64lsn_destroy() 899 cfg = (struct nat64lsn_cfg *)SRV_OBJECT(ch, no->kidx); in destroy_config_cb() 900 SRV_OBJECT(ch, no->kidx) = NULL; in destroy_config_cb()
|
| /freebsd-13-stable/sys/netpfil/ipfw/nptv6/ |
| HD | nptv6.c | 579 cfg = (struct nptv6_cfg *)SRV_OBJECT(ch, no->kidx); in ifaddr_cb() 702 if (ipfw_objhash_alloc_idx(ni, &cfg->no.kidx) != 0) { in nptv6_create() 708 SRV_OBJECT(ch, cfg->no.kidx) = cfg; in nptv6_create() 748 ipfw_reset_eaction_instance(ch, V_nptv6_eid, cfg->no.kidx); in nptv6_destroy() 749 SRV_OBJECT(ch, cfg->no.kidx) = NULL; in nptv6_destroy() 751 ipfw_objhash_free_idx(CHAIN_TO_SRV(ch), cfg->no.kidx); in nptv6_destroy() 998 cfg = (struct nptv6_cfg *)SRV_OBJECT(ch, no->kidx); in destroy_config_cb() 999 SRV_OBJECT(ch, no->kidx) = NULL; in destroy_config_cb() 1001 ipfw_objhash_free_idx(ni, cfg->no.kidx); in destroy_config_cb()
|
| /freebsd-13-stable/sys/dev/usb/wlan/ |
| HD | if_rumreg.h | 52 #define RT2573_SKEY(vap, kidx) (0x1000 + ((vap) * RT2573_SKEY_MAX + \ argument 53 (kidx)) * KEY_SIZE)
|
| HD | if_runreg.h | 194 #define RT2860_SKEY(vap, kidx) (0x6c00 + (vap) * 128 + (kidx) * 32) argument
|
| /freebsd-13-stable/sys/netinet/ |
| HD | ip_fw.h | 433 uint16_t kidx; member 740 u_int16_t kidx; /* index of named object */ member 927 uint32_t kidx; /* value kernel index */ member 1007 uint32_t kidx; /* kernel index */ member
|
| /freebsd-13-stable/sys/dev/ral/ |
| HD | rt2860reg.h | 197 #define RT2860_SKEY(vap, kidx) (0x6c00 + (vap) * 128 + (kidx) * 32) argument
|
| /freebsd-13-stable/sbin/ipfw/ |
| HD | tables.c | 803 printf(" kindex: %d, type: %s, locked\n", i->kidx, ttype); in table_show_info() 805 printf(" kindex: %d, type: %s\n", i->kidx, ttype); in table_show_info()
|
| HD | ipfw2.c | 1626 insntod(cmd, if)->p.kidx)); in print_instruction() 2366 if (d->kidx != 0) in show_dyn_state() 2368 d->kidx, IPFW_TLV_STATE_NAME)); in show_dyn_state() 3473 cmd->p.kidx = uidx; in fill_iface()
|
| /freebsd-13-stable/sys/dev/bwn/ |
| HD | if_bwn.c | 4771 uint16_t kidx, value; in bwn_key_write() local 4773 kidx = BWN_SEC_KEY2FW(mac, index); in bwn_key_write() 4775 BWN_SHARED_KEYIDX_BLOCK + (kidx * 2), (kidx << 4) | algorithm); in bwn_key_write()
|