/freebsd/sys/netpfil/ipfw/ |
H A D | 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 …]
|
H A D | ip_fw_eaction.c | 212 if (ipfw_objhash_alloc_idx(ni, &obj->no.kidx) != 0) { in create_eaction_obj() 220 SRV_OBJECT(ch, obj->no.kidx) = obj; in create_eaction_obj() 226 *eaction_id = obj->no.kidx; in create_eaction_obj() 240 obj = SRV_OBJECT(ch, no->kidx); in destroy_eaction_obj() 241 SRV_OBJECT(ch, no->kidx) = NULL; in destroy_eaction_obj() 244 ipfw_objhash_free_idx(ni, no->kidx); in destroy_eaction_obj() 264 if (eaction_id == no->kidx) in reset_eaction_rules() 267 EACTION_DEBUG("Going to replace id %u with %u", eaction_id, no->kidx); in reset_eaction_rules() 282 no->kidx, instance_id) != 0) in reset_eaction_rules() 291 ipfw_dyn_reset_eaction(ch, eaction_id, no->kidx, instance_id); in reset_eaction_rules() [all …]
|
H A D | 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 …]
|
H A D | 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 …]
|
H A D | ip_fw_private.h | 193 ((p)->kidx != 0 && (p)->kidx != (cmd)->arg1)) 196 (p)->kidx = 0; \ 200 uint16_t kidx; /* state name kidx */ member 337 uint16_t kidx; /* value kernel index */ member 352 uint16_t kidx; /* object kernel index */ member 480 uint16_t kidx; /* kernel object index */ member 593 uint16_t kidx); 671 int ipfw_mark_object_kidx(uint32_t *bmask, uint16_t etlv, uint16_t kidx); 785 uint16_t kidx); 786 int ipfw_ref_table(struct ip_fw_chain *ch, ipfw_obj_ntlv *ntlv, uint16_t *kidx); [all …]
|
H A D | ip_fw_sockopt.c | 168 static int export_objhash_ntlv(struct namedobj_instance *ni, uint16_t kidx, 588 cmdif->p.kidx = (uint16_t)cmdif->p.glob; in import_rule0() 674 cmdif->p.glob = cmdif->p.kidx; in export_rule0() 1098 uint16_t kidx; in move_objects() local 1113 rw = find_op_rw(cmd, &kidx, NULL); in move_objects() 1122 if (rw->manage_sets(ch, kidx, 1, COUNT_ONE) != 0) in move_objects() 1140 rw = find_op_rw(cmd, &kidx, NULL); in move_objects() 1144 c = rw->manage_sets(ch, kidx, in move_objects() 1159 rw = find_op_rw(cmd, &kidx, NULL); in move_objects() 1163 rw->manage_sets(ch, kidx, in move_objects() [all …]
|
H A D | 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,
|
H A D | 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() 2391 ifi.kidx = ifindex; in if_notifier() 2526 tent->v.kidx = ife->value; in ta_dump_ifidx_tentry() 2982 tent->v.kidx = na->value; in ta_dump_numarray_tentry() [all …]
|
/freebsd/sys/contrib/dev/rtw89/ |
H A D | rtw8852c_rfk.c | 1909 u8 kidx = dpk->cur_idx[path]; in _dpk_information() 1911 dpk->bp[path][kidx].band = chan->band_type; in _dpk_information() 1912 dpk->bp[path][kidx].ch = chan->channel; in _dpk_information() 1913 dpk->bp[path][kidx].bw = chan->band_width; in _dpk_information() 1920 dpk->bp[path][kidx].band == 0 ? "2G" : in _dpk_information() 1921 dpk->bp[path][kidx].band == 1 ? "5G" : "6G", in _dpk_information() 1922 dpk->bp[path][kidx].ch, in _dpk_information() 1923 dpk->bp[path][kidx].bw == 0 ? "20M" : in _dpk_information() 1924 dpk->bp[path][kidx].bw == 1 ? "40M" : "80M"); in _dpk_information() 2059 enum rtw89_rf_path path, u8 kidx) in _dpk_rf_setting() 1908 u8 kidx = dpk->cur_idx[path]; _dpk_information() local 2058 _dpk_rf_setting(struct rtw89_dev * rtwdev,u8 gain,enum rtw89_rf_path path,u8 kidx) _dpk_rf_setting() argument 2100 _dpk_tpg_sel(struct rtw89_dev * rtwdev,enum rtw89_rf_path path,u8 kidx) _dpk_tpg_sel() argument 2123 _dpk_sync_check(struct rtw89_dev * rtwdev,enum rtw89_rf_path path,u8 kidx) _dpk_sync_check() argument 2224 _dpk_gainloss(struct rtw89_dev * rtwdev,enum rtw89_phy_idx phy,enum rtw89_rf_path path,u8 kidx) _dpk_gainloss() argument 2281 _dpk_kip_set_rxagc(struct rtw89_dev * rtwdev,enum rtw89_phy_idx phy,enum rtw89_rf_path path,u8 kidx) _dpk_kip_set_rxagc() argument 2318 _dpk_agc(struct rtw89_dev * rtwdev,enum rtw89_phy_idx phy,enum rtw89_rf_path path,u8 kidx,u8 init_xdbm,u8 loss_only) _dpk_agc() argument 2448 _dpk_idl_mpa(struct rtw89_dev * rtwdev,enum rtw89_phy_idx phy,enum rtw89_rf_path path,u8 kidx) _dpk_idl_mpa() argument 2530 _dpk_kip_preset_8852c(struct rtw89_dev * rtwdev,enum rtw89_phy_idx phy,enum rtw89_rf_path path,u8 kidx) _dpk_kip_preset_8852c() argument 2550 _dpk_para_query(struct rtw89_dev * rtwdev,enum rtw89_rf_path path,u8 kidx) _dpk_para_query() argument 2568 _dpk_gain_normalize_8852c(struct rtw89_dev * rtwdev,enum rtw89_phy_idx phy,enum rtw89_rf_path path,u8 kidx,bool is_execute) _dpk_gain_normalize_8852c() argument 2615 _dpk_on(struct rtw89_dev * rtwdev,enum rtw89_phy_idx phy,enum rtw89_rf_path path,u8 kidx) _dpk_on() argument 2640 u8 kidx = dpk->cur_idx[path]; _dpk_main() local 2677 u8 kidx = dpk->cur_idx[path]; _dpk_init() local 2816 u8 val, kidx = dpk->cur_idx[path]; _dpk_onoff() local 2831 u8 path, kidx; _dpk_track() local [all...] |
H A D | rtw8851b_rfk.c | 1726 u8 kidx = dpk->cur_idx[path]; in _dpk_onoff() local 1730 val = dpk->is_dpk_enable * off_reverse * dpk->bp[path][kidx].path_ok; in _dpk_onoff() 1732 rtw89_phy_write32_mask(rtwdev, R_DPD_CH0A + (path << 8) + (kidx << 2), in _dpk_onoff() 1736 kidx, val == 0 ? "disable" : "enable"); in _dpk_onoff() 1743 u8 kidx = dpk->cur_idx[path]; in _dpk_init() local 1745 dpk->bp[path][kidx].path_ok = 0; in _dpk_init() 1754 u8 kidx = dpk->cur_idx[path]; in _dpk_information() local 1756 dpk->bp[path][kidx].band = chan->band_type; in _dpk_information() 1757 dpk->bp[path][kidx].ch = chan->band_width; in _dpk_information() 1758 dpk->bp[path][kidx].bw = chan->channel; in _dpk_information() [all …]
|
H A D | rtw8852b_rfk.c | 1703 u8 val, kidx = dpk->cur_idx[path]; in _dpk_onoff() 1705 val = dpk->is_dpk_enable && !off && dpk->bp[path][kidx].path_ok; in _dpk_onoff() 1707 rtw89_phy_write32_mask(rtwdev, R_DPD_CH0A + (path << 8) + (kidx << 2), in _dpk_onoff() 1711 kidx, dpk->is_dpk_enable && !off ? "enable" : "disable"); in _dpk_onoff() 1769 u8 kidx = dpk->cur_idx[path]; in _dpk_information() 1771 dpk->bp[path][kidx].band = chan->band_type; in _dpk_information() 1772 dpk->bp[path][kidx].ch = chan->channel; in _dpk_information() 1773 dpk->bp[path][kidx].bw = chan->band_width; in _dpk_information() 1780 dpk->bp[path][kidx].band == 0 ? "2G" : in _dpk_information() 1781 dpk->bp[path][kidx] in _dpk_information() 1702 u8 val, kidx = dpk->cur_idx[path]; _dpk_onoff() local 1768 u8 kidx = dpk->cur_idx[path]; _dpk_information() local 1885 _dpk_get_thermal(struct rtw89_dev * rtwdev,u8 kidx,enum rtw89_rf_path path) _dpk_get_thermal() argument 1902 _dpk_rf_setting(struct rtw89_dev * rtwdev,u8 gain,enum rtw89_rf_path path,u8 kidx) _dpk_rf_setting() argument 1955 _dpk_tpg_sel(struct rtw89_dev * rtwdev,enum rtw89_rf_path path,u8 kidx) _dpk_tpg_sel() argument 1972 _dpk_table_select(struct rtw89_dev * rtwdev,enum rtw89_rf_path path,u8 kidx,u8 gain) _dpk_table_select() argument 1983 _dpk_sync_check(struct rtw89_dev * rtwdev,enum rtw89_rf_path path,u8 kidx) _dpk_sync_check() argument 2026 _dpk_sync(struct rtw89_dev * rtwdev,enum rtw89_phy_idx phy,enum rtw89_rf_path path,u8 kidx) _dpk_sync() argument 2103 _dpk_gainloss(struct rtw89_dev * rtwdev,enum rtw89_phy_idx phy,enum rtw89_rf_path path,u8 kidx) _dpk_gainloss() argument 2110 _dpk_kip_preset(struct rtw89_dev * rtwdev,enum rtw89_phy_idx phy,enum rtw89_rf_path path,u8 kidx) _dpk_kip_preset() argument 2218 _dpk_agc(struct rtw89_dev * rtwdev,enum rtw89_phy_idx phy,enum rtw89_rf_path path,u8 kidx,u8 init_txagc,bool loss_only) _dpk_agc() argument 2365 _dpk_idl_mpa(struct rtw89_dev * rtwdev,enum rtw89_phy_idx phy,enum rtw89_rf_path path,u8 kidx,u8 gain) _dpk_idl_mpa() argument 2379 _dpk_fill_result(struct rtw89_dev * rtwdev,enum rtw89_phy_idx phy,enum rtw89_rf_path path,u8 kidx,u8 gain,u8 txagc) _dpk_fill_result() argument 2448 u8 txagc = 0x38, kidx = dpk->cur_idx[path]; _dpk_main() local 2598 u8 path, kidx; _dpk_track() local [all...] |
H A D | rtw8852a_rfk.c | 1856 u8 kidx = dpk->cur_idx[path]; in _dpk_information() local 1858 dpk->bp[path][kidx].band = chan->band_type; in _dpk_information() 1859 dpk->bp[path][kidx].ch = chan->channel; in _dpk_information() 1860 dpk->bp[path][kidx].bw = chan->band_width; in _dpk_information() 1867 dpk->bp[path][kidx].band == 0 ? "2G" : in _dpk_information() 1868 dpk->bp[path][kidx].band == 1 ? "5G" : "6G", in _dpk_information() 1869 dpk->bp[path][kidx].ch, in _dpk_information() 1870 dpk->bp[path][kidx].bw == 0 ? "20M" : in _dpk_information() 1871 dpk->bp[path][kidx].bw == 1 ? "40M" : "80M"); in _dpk_information() 1937 enum rtw89_rf_path path, u8 kidx) in _dpk_kip_setting() argument [all …]
|
/freebsd/sys/netpfil/ipfw/nat64/ |
H A D | nat64clat.c | 66 uint32_t kidx) in nat64clat_log() argument 75 plog->rulenr = htonl(kidx); in nat64clat_log() 104 nat64clat_log(logdata, m, AF_INET, cfg->no.kidx); in nat64clat_handle_ip4() 136 nat64clat_log(logdata, m, AF_INET6, cfg->no.kidx); in nat64clat_handle_ip6() 196 nat64clat_log(logdata, m, AF_INET6, cfg->no.kidx); in nat64clat_handle_icmp6()
|
H A D | nat64stl.c | 65 uint32_t kidx) in nat64stl_log() argument 74 plog->rulenr = htonl(kidx); in nat64stl_log() 105 nat64stl_log(logdata, m, AF_INET, cfg->no.kidx); in nat64stl_handle_ip4() 138 nat64stl_log(logdata, m, AF_INET6, cfg->no.kidx); in nat64stl_handle_ip6() 196 nat64stl_log(logdata, m, AF_INET6, cfg->no.kidx); in nat64stl_handle_icmp6()
|
H A D | nat64stl_control.c | 147 if (ipfw_objhash_alloc_idx(CHAIN_TO_SRV(ch), &cfg->no.kidx) != 0) in nat64stl_create_internal() 222 SRV_OBJECT(ch, cfg->no.kidx) = cfg; in nat64stl_create() 228 ipfw_objhash_free_idx(ni, cfg->no.kidx); in nat64stl_create() 305 ipfw_objhash_free_idx(CHAIN_TO_SRV(ch), cfg->no.kidx); in nat64stl_detach_config() 342 ipfw_reset_eaction_instance(ch, V_nat64stl_eid, cfg->no.kidx); in nat64stl_destroy() 343 SRV_OBJECT(ch, cfg->no.kidx) = NULL; in nat64stl_destroy() 576 cfg = (struct nat64stl_cfg *)SRV_OBJECT(ch, no->kidx); in destroy_config_cb() 577 SRV_OBJECT(ch, no->kidx) = NULL; in destroy_config_cb()
|
H A D | nat64clat_control.c | 190 if (ipfw_objhash_alloc_idx(ni, &cfg->no.kidx) != 0) { in nat64clat_create() 197 SRV_OBJECT(ch, cfg->no.kidx) = cfg; in nat64clat_create() 302 ipfw_objhash_free_idx(CHAIN_TO_SRV(ch), cfg->no.kidx); in nat64clat_detach_config() 337 ipfw_reset_eaction_instance(ch, V_nat64clat_eid, cfg->no.kidx); in nat64clat_destroy() 338 SRV_OBJECT(ch, cfg->no.kidx) = NULL; in nat64clat_destroy() 571 cfg = (struct nat64clat_cfg *)SRV_OBJECT(ch, no->kidx); in destroy_config_cb() 572 SRV_OBJECT(ch, no->kidx) = NULL; in destroy_config_cb()
|
H A D | nat64lsn_control.c | 194 if (ipfw_objhash_alloc_idx(CHAIN_TO_SRV(ch), &cfg->no.kidx) != 0) { in nat64lsn_create() 202 SRV_OBJECT(ch, cfg->no.kidx) = cfg; in nat64lsn_create() 216 ipfw_objhash_free_idx(CHAIN_TO_SRV(ch), cfg->no.kidx); in nat64lsn_detach_config() 250 ipfw_reset_eaction_instance(ch, V_nat64lsn_eid, cfg->no.kidx); in nat64lsn_destroy() 251 SRV_OBJECT(ch, cfg->no.kidx) = NULL; in nat64lsn_destroy() 898 cfg = (struct nat64lsn_cfg *)SRV_OBJECT(ch, no->kidx); in destroy_config_cb() 899 SRV_OBJECT(ch, no->kidx) = NULL; in destroy_config_cb()
|
/freebsd/sys/netpfil/ipfw/nptv6/ |
H A D | 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/sys/netinet/ |
H A D | ip_fw.h | 437 uint16_t kidx; member 744 u_int16_t kidx; /* index of named object */ member 906 uint16_t kidx; /* value kernel index */ member 934 uint32_t kidx; /* value kernel index */ member 1014 uint32_t kidx; /* kernel index */ member
|
/freebsd/sys/dev/usb/wlan/ |
H A D | if_rumreg.h | 52 #define RT2573_SKEY(vap, kidx) (0x1000 + ((vap) * RT2573_SKEY_MAX + \ argument 53 (kidx)) * KEY_SIZE)
|
H A D | if_runreg.h | 194 #define RT2860_SKEY(vap, kidx) (0x6c00 + (vap) * 128 + (kidx) * 32) argument
|
/freebsd/sbin/ipfw/ |
H A D | tables.c | 804 printf(" kindex: %d, type: %s, locked\n", i->kidx, ttype); in table_show_info() 806 printf(" kindex: %d, type: %s\n", i->kidx, ttype); in table_show_info() 2051 if (a->kidx < b->kidx) in compare_values() 2053 else if (a->kidx > b->kidx) in compare_values() 2081 printf("[%u] refs=%lu %s\n", v->kidx, (u_long)v->refcnt, buf); in ipfw_list_values()
|
H A D | ipfw2.c | 1706 insntod(cmd, if)->p.kidx)); in print_instruction() 2463 if (d->kidx != 0) in show_dyn_state() 2465 d->kidx, IPFW_TLV_STATE_NAME)); in show_dyn_state() 3570 cmd->p.kidx = uidx; in fill_iface() 5791 printf(" kidx: %4d\ttype: %10d\tname: %s\n", in ipfw_list_objects() 5794 printf(" kidx: %4d\ttype: %10s\tname: %s\n", in ipfw_list_objects()
|
/freebsd/sys/dev/ral/ |
H A D | rt2860reg.h | 197 #define RT2860_SKEY(vap, kidx) (0x6c00 + (vap) * 128 + (kidx) * 32) argument
|
/freebsd/sys/dev/bwn/ |
H A D | if_bwn.c | 4763 uint16_t kidx, value; in bwn_key_macwrite() 4765 kidx = BWN_SEC_KEY2FW(mac, index); 4767 BWN_SHARED_KEYIDX_BLOCK + (kidx * 2), (kidx << 4) | algorithm); in bwn_key_write() 4771 uint16_t kidx, value; bwn_key_write() local
|