/freebsd/contrib/wpa/src/drivers/ |
H A D | driver_nl80211_event.c | 345 struct nlattr *tb[NL80211_ATTR_MAX + 1]; in qca_drv_connect_fail_reason_code_handler() local 351 nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in qca_drv_connect_fail_reason_code_handler() 354 if (!tb[NL80211_ATTR_VENDOR_DATA]) { in qca_drv_connect_fail_reason_code_handler() 360 nla_data(tb[NL80211_ATTR_VENDOR_DATA]), in qca_drv_connect_fail_reason_code_handler() 361 nla_len(tb[NL80211_ATTR_VENDOR_DATA]), NULL); in qca_drv_connect_fail_reason_code_handler() 429 struct nlattr *tb[QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_MAX + 1]; in qca_nl80211_link_reconfig_event() local 437 if (nla_parse(tb, QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_MAX, in qca_nl80211_link_reconfig_event() 439 !tb[QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR]) in qca_nl80211_link_reconfig_event() 442 ap_mld = nla_data(tb[QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR]); in qca_nl80211_link_reconfig_event() 468 if (!tb[QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_REMOVED_LINKS]) in qca_nl80211_link_reconfig_event() [all …]
|
H A D | driver_nl80211_capa.c | 106 struct nlattr *tb) in wiphy_info_supported_iftypes() argument 111 if (tb == NULL) in wiphy_info_supported_iftypes() 114 nla_for_each_nested(nl_mode, tb, i) { in wiphy_info_supported_iftypes() 206 struct nlattr *tb) in wiphy_info_iface_comb() argument 211 if (tb == NULL) in wiphy_info_iface_comb() 214 nla_for_each_nested(nl_combi, tb, rem_combi) { in wiphy_info_iface_comb() 222 struct nlattr *tb) in wiphy_info_supp_cmds() argument 227 if (tb == NULL) in wiphy_info_supp_cmds() 230 nla_for_each_nested(nl_cmd, tb, i) { in wiphy_info_supp_cmds() 258 static unsigned int get_akm_suites_info(struct nlattr *tb) in get_akm_suites_info() argument [all …]
|
/freebsd/contrib/sendmail/src/ |
H A D | timers.c | 57 addtimer(ta, tb) in addtimer() argument 59 TIMER *tb; 61 tb->ti_wall_sec += ta->ti_wall_sec; 62 tb->ti_wall_usec += ta->ti_wall_usec; 63 if (tb->ti_wall_usec > 1000000) 65 tb->ti_wall_sec++; 66 tb->ti_wall_usec -= 1000000; 68 tb->ti_cpu_sec += ta->ti_cpu_sec; 69 tb->ti_cpu_usec += ta->ti_cpu_usec; 70 if (tb->ti_cpu_usec > 1000000) [all …]
|
/freebsd/sys/contrib/openzfs/module/lua/ |
H A D | lstring.c | 64 stringtable *tb = &G(L)->strt; in luaS_resize() local 67 if (newsize > tb->size) { in luaS_resize() 68 luaM_reallocvector(L, tb->hash, tb->size, newsize, GCObject *); in luaS_resize() 69 for (i = tb->size; i < newsize; i++) tb->hash[i] = NULL; in luaS_resize() 72 for (i=0; i<tb->size; i++) { in luaS_resize() 73 GCObject *p = tb->hash[i]; in luaS_resize() 74 tb->hash[i] = NULL; in luaS_resize() 78 gch(p)->next = tb->hash[h]; /* chain it */ in luaS_resize() 79 tb->hash[h] = p; in luaS_resize() 84 if (newsize < tb->size) { in luaS_resize() [all …]
|
/freebsd/contrib/lua/src/ |
H A D | lstring.c | 86 stringtable *tb = &G(L)->strt; in luaS_resize() local 87 int osize = tb->size; in luaS_resize() 90 tablerehash(tb->hash, osize, nsize); /* depopulate shrinking part */ in luaS_resize() 91 newvect = luaM_reallocvector(L, tb->hash, osize, nsize, TString*); in luaS_resize() 94 tablerehash(tb->hash, nsize, osize); /* restore to original size */ in luaS_resize() 98 tb->hash = newvect; in luaS_resize() 99 tb->size = nsize; in luaS_resize() 126 stringtable *tb = &G(L)->strt; in luaS_init() local 127 tb->hash = luaM_newvector(L, MINSTRTABSIZE, TString*); in luaS_init() 128 tablerehash(tb->hash, 0, MINSTRTABSIZE); /* clear array */ in luaS_init() [all …]
|
/freebsd/contrib/elftoolchain/size/ |
H A D | size.c | 80 } *tb; variable 829 assert(tb == NULL); in tbl_new() 831 if ((tb = calloc(1, sizeof(*tb))) == NULL) in tbl_new() 833 if ((tb->tbl = calloc(col, sizeof(*tb->tbl))) == NULL) in tbl_new() 835 if ((tb->width = calloc(col, sizeof(*tb->width))) == NULL) in tbl_new() 837 tb->col = col; in tbl_new() 838 tb->row = 0; in tbl_new() 846 assert(tb != NULL && tb->col > 0 && tb->row > 0 && col < tb->col); in tbl_print() 847 assert(s != NULL && tb->tbl[col][tb->row - 1] == NULL); in tbl_print() 848 if ((tb->tbl[col][tb->row - 1] = strdup(s)) == NULL) in tbl_print() [all …]
|
/freebsd/sys/contrib/dev/mediatek/mt76/ |
H A D | testmode.c | 413 struct nlattr *tb[NUM_MT76_TM_ATTRS]; in mt76_testmode_cmd() local 421 err = nla_parse_deprecated(tb, MT76_TM_ATTR_MAX, data, len, in mt76_testmode_cmd() 430 if (tb[MT76_TM_ATTR_RESET]) { in mt76_testmode_cmd() 437 if (tb[MT76_TM_ATTR_TX_COUNT]) in mt76_testmode_cmd() 438 td->tx_count = nla_get_u32(tb[MT76_TM_ATTR_TX_COUNT]); in mt76_testmode_cmd() 440 if (tb[MT76_TM_ATTR_TX_RATE_IDX]) in mt76_testmode_cmd() 441 td->tx_rate_idx = nla_get_u8(tb[MT76_TM_ATTR_TX_RATE_IDX]); in mt76_testmode_cmd() 443 if (mt76_tm_get_u8(tb[MT76_TM_ATTR_TX_RATE_MODE], &td->tx_rate_mode, in mt76_testmode_cmd() 445 mt76_tm_get_u8(tb[MT76_TM_ATTR_TX_RATE_NSS], &td->tx_rate_nss, in mt76_testmode_cmd() 447 mt76_tm_get_u8(tb[MT76_TM_ATTR_TX_RATE_SGI], &td->tx_rate_sgi, 0, 2) || in mt76_testmode_cmd() [all …]
|
/freebsd/sys/contrib/dev/athk/ath11k/ |
H A D | testmode.c | 196 const void **tb; in ath11k_tm_wmi_event_segmented() local 201 tb = ath11k_wmi_tlv_parse_alloc(ab, skb->data, skb->len, GFP_ATOMIC); in ath11k_tm_wmi_event_segmented() 202 if (IS_ERR(tb)) { in ath11k_tm_wmi_event_segmented() 203 ret = PTR_ERR(tb); in ath11k_tm_wmi_event_segmented() 208 ev = tb[WMI_TAG_ARRAY_BYTE]; in ath11k_tm_wmi_event_segmented() 211 kfree(tb); in ath11k_tm_wmi_event_segmented() 220 kfree(tb); in ath11k_tm_wmi_event_segmented() 231 static int ath11k_tm_cmd_get_version(struct ath11k *ar, struct nlattr *tb[]) in ath11k_tm_cmd_get_version() argument 263 static int ath11k_tm_cmd_testmode_start(struct ath11k *ar, struct nlattr *tb[]) in ath11k_tm_cmd_testmode_start() argument 300 static int ath11k_tm_cmd_wmi(struct ath11k *ar, struct nlattr *tb[], in ath11k_tm_cmd_wmi() argument [all …]
|
H A D | wmi.c | 262 const void **tb = data; in ath11k_wmi_tlv_iter_parse() local 265 tb[tag] = ptr; in ath11k_wmi_tlv_iter_parse() 270 static int ath11k_wmi_tlv_parse(struct ath11k_base *ar, const void **tb, in ath11k_wmi_tlv_parse() argument 274 (void *)tb); in ath11k_wmi_tlv_parse() 280 const void **tb; in ath11k_wmi_tlv_parse_alloc() local 283 tb = kcalloc(WMI_TAG_MAX, sizeof(*tb), gfp); in ath11k_wmi_tlv_parse_alloc() 284 if (!tb) in ath11k_wmi_tlv_parse_alloc() 287 ret = ath11k_wmi_tlv_parse(ab, tb, ptr, len); in ath11k_wmi_tlv_parse_alloc() 289 kfree(tb); in ath11k_wmi_tlv_parse_alloc() 293 return tb; in ath11k_wmi_tlv_parse_alloc() [all …]
|
/freebsd/contrib/llvm-project/libunwind/src/ |
H A D | Unwind_AIXExtras.cpp | 31 if (!TBTable->tb.name_present) in getFuncNameFromTBTable() 38 if (TBTable->tb.fixedparms || TBTable->tb.floatparms) in getFuncNameFromTBTable() 43 if (TBTable->tb.has_tboff) { in getFuncNameFromTBTable() 51 if (TBTable->tb.int_hndl) in getFuncNameFromTBTable() 55 if (TBTable->tb.has_ctl) { in getFuncNameFromTBTable()
|
H A D | UnwindLevel1-gcc-ext.c | 107 if (TBTable->tb.fixedparms || TBTable->tb.floatparms) in _Unwind_FindEnclosingFunction() 110 if (TBTable->tb.has_tboff) in _Unwind_FindEnclosingFunction() 337 void *tb, void *db) { in __register_frame_info_bases() argument 340 (void)tb; in __register_frame_info_bases() 343 fde, ob, tb, db); in __register_frame_info_bases() 355 void *ob, void *tb, in __register_frame_info_table_bases() argument 359 (void)tb; in __register_frame_info_table_bases() 362 "(%p,%p, %p, %p)", fde, ob, tb, db); in __register_frame_info_table_bases()
|
/freebsd/sys/contrib/dev/athk/ath10k/ |
H A D | testmode.c | 100 static int ath10k_tm_cmd_get_version(struct ath10k *ar, struct nlattr *tb[]) in ath10k_tm_cmd_get_version() argument 226 static int ath10k_tm_cmd_utf_start(struct ath10k *ar, struct nlattr *tb[]) in ath10k_tm_cmd_utf_start() argument 347 static int ath10k_tm_cmd_utf_stop(struct ath10k *ar, struct nlattr *tb[]) in ath10k_tm_cmd_utf_stop() argument 371 static int ath10k_tm_cmd_wmi(struct ath10k *ar, struct nlattr *tb[]) in ath10k_tm_cmd_wmi() argument 385 if (!tb[ATH10K_TM_ATTR_DATA]) { in ath10k_tm_cmd_wmi() 390 if (!tb[ATH10K_TM_ATTR_WMI_CMDID]) { in ath10k_tm_cmd_wmi() 395 buf = nla_data(tb[ATH10K_TM_ATTR_DATA]); in ath10k_tm_cmd_wmi() 396 buf_len = nla_len(tb[ATH10K_TM_ATTR_DATA]); in ath10k_tm_cmd_wmi() 397 cmd_id = nla_get_u32(tb[ATH10K_TM_ATTR_WMI_CMDID]); in ath10k_tm_cmd_wmi() 431 struct nlattr *tb[ATH10K_TM_ATTR_MAX + 1]; in ath10k_tm_cmd() local [all …]
|
H A D | wmi-tlv.c | 137 const void **tb = data; in ath10k_wmi_tlv_iter_parse() local 140 tb[tag] = ptr; in ath10k_wmi_tlv_iter_parse() 145 static int ath10k_wmi_tlv_parse(struct ath10k *ar, const void **tb, in ath10k_wmi_tlv_parse() argument 149 (void *)tb); in ath10k_wmi_tlv_parse() 156 const void **tb; in ath10k_wmi_tlv_parse_alloc() local 159 tb = kcalloc(WMI_TLV_TAG_MAX, sizeof(*tb), gfp); in ath10k_wmi_tlv_parse_alloc() 160 if (!tb) in ath10k_wmi_tlv_parse_alloc() 163 ret = ath10k_wmi_tlv_parse(ar, tb, ptr, len); in ath10k_wmi_tlv_parse_alloc() 165 kfree(tb); in ath10k_wmi_tlv_parse_alloc() 169 return tb; in ath10k_wmi_tlv_parse_alloc() [all …]
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | sa.c | 409 sa_lot_t *tb, *findtb; in sa_add_layout_entry() local 414 tb = kmem_zalloc(sizeof (sa_lot_t), KM_SLEEP); in sa_add_layout_entry() 415 tb->lot_attr_count = attr_count; in sa_add_layout_entry() 416 tb->lot_attrs = kmem_alloc(sizeof (sa_attr_type_t) * attr_count, in sa_add_layout_entry() 418 memcpy(tb->lot_attrs, attrs, sizeof (sa_attr_type_t) * attr_count); in sa_add_layout_entry() 419 tb->lot_num = lot_num; in sa_add_layout_entry() 420 tb->lot_hash = hash; in sa_add_layout_entry() 421 tb->lot_instance = 0; in sa_add_layout_entry() 438 list_create(&tb->lot_idx_tab, sizeof (sa_idx_tab_t), in sa_add_layout_entry() 442 if (sa->sa_attr_table[tb->lot_attrs[i]].sa_length == 0) in sa_add_layout_entry() [all …]
|
/freebsd/sys/netpfil/ipfw/ |
H A D | ip_fw_table_algo.c | 665 struct ta_buf_radix *tb; in ta_prepare_add_addr_radix() local 673 tb = (struct ta_buf_radix *)ta_buf; in ta_prepare_add_addr_radix() 686 mask = (struct sockaddr *)&tb->addr.a4.ma; in ta_prepare_add_addr_radix() 687 tb->ent_ptr = ent; in ta_prepare_add_addr_radix() 698 mask = (struct sockaddr *)&tb->addr.a6.ma; in ta_prepare_add_addr_radix() 699 tb->ent_ptr = xent; in ta_prepare_add_addr_radix() 708 tb->addr_ptr = addr; in ta_prepare_add_addr_radix() 710 tb->mask_ptr = mask; in ta_prepare_add_addr_radix() 722 struct ta_buf_radix *tb; in ta_add_addr_radix() local 726 tb = (struct ta_buf_radix *)ta_buf; in ta_add_addr_radix() [all …]
|
/freebsd/tools/test/stress2/misc/ |
H A D | rename9.sh | 102 struct stat fb, tb, fa, ta; 112 bzero(&tb, sizeof(tb)); 129 stat(toFile, &tb); 136 if (tb.st_ino == ta.st_ino) { 146 toFile, (uintmax_t)tb.st_ino, (uintmax_t)tb.st_nlink, 147 tb.st_blocks);
|
/freebsd/sys/kern/ |
H A D | kern_thread.c | 299 tidbatch_prep(struct tidbatch *tb) in tidbatch_prep() argument 302 tb->n = 0; in tidbatch_prep() 306 tidbatch_add(struct tidbatch *tb, struct thread *td) in tidbatch_add() argument 309 KASSERT(tb->n < nitems(tb->tab), in tidbatch_add() 310 ("%s: count too high %d", __func__, tb->n)); in tidbatch_add() 311 tb->tab[tb->n] = td->td_tid; in tidbatch_add() 312 tb->n++; in tidbatch_add() 316 tidbatch_process(struct tidbatch *tb) in tidbatch_process() argument 319 KASSERT(tb->n <= nitems(tb->tab), in tidbatch_process() 320 ("%s: count too high %d", __func__, tb->n)); in tidbatch_process() [all …]
|
H A D | subr_taskqueue.c | 129 struct taskqueue_busy *tb; in task_get_busy() local 132 LIST_FOREACH(tb, &queue->tq_active, tb_link) { in task_get_busy() 133 if (tb->tb_running == task) in task_get_busy() 134 return (tb); in task_get_busy() 235 struct taskqueue_busy *tb; in taskqueue_enqueue_locked() local 242 tb = task_get_busy(queue, task); in taskqueue_enqueue_locked() 243 if (tb != NULL && tb->tb_canceling) { in taskqueue_enqueue_locked() 437 struct taskqueue_busy *tb; in taskqueue_drain_tq_active() local 449 LIST_FOREACH(tb, &queue->tq_active, tb_link) { in taskqueue_drain_tq_active() 450 if ((int)(tb->tb_seq - seq) <= 0) { in taskqueue_drain_tq_active() [all …]
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt7921/ |
H A D | testmode.c | 114 struct nlattr *tb[NUM_MT76_TM_ATTRS]; in mt7921_testmode_cmd() local 123 err = nla_parse_deprecated(tb, MT76_TM_ATTR_MAX, data, len, in mt7921_testmode_cmd() 128 if (tb[MT76_TM_ATTR_DRV_DATA]) { in mt7921_testmode_cmd() 132 data = tb[MT76_TM_ATTR_DRV_DATA]; in mt7921_testmode_cmd() 151 struct nlattr *tb[NUM_MT76_TM_ATTRS]; in mt7921_testmode_dump() local 164 err = nla_parse_deprecated(tb, MT76_TM_ATTR_MAX, data, len, in mt7921_testmode_dump() 169 if (tb[MT76_TM_ATTR_DRV_DATA]) { in mt7921_testmode_dump() 173 data = tb[MT76_TM_ATTR_DRV_DATA]; in mt7921_testmode_dump()
|
/freebsd/contrib/bearssl/src/int/ |
H A D | i32_muladd.c | 33 uint32_t a0, a1, b0, hi, g, q, tb; in br_i32_muladd_small() local 107 tb = 1; in br_i32_muladd_small() 120 tb = MUX(EQ(nxw, mw), tb, GT(nxw, mw)); in br_i32_muladd_small() 135 under = ~over & (tb | (~chf & LT(clow, hi))); in br_i32_muladd_small()
|
H A D | i31_muladd.c | 34 uint32_t a0, a1, b0, hi, g, q, tb; in br_i31_muladd_small() local 127 tb = 1; in br_i31_muladd_small() 141 tb = MUX(EQ(nxw, mw), tb, GT(nxw, mw)); in br_i31_muladd_small() 154 under = ~over & (tb | LT(cc, hi)); in br_i31_muladd_small()
|
H A D | i15_muladd.c | 64 uint32_t cc, tb, over, under; in br_i15_muladd_small() local 146 tb = 1; in br_i15_muladd_small() 159 tb = MUX(EQ(nxw, mw), tb, GT(nxw, mw)); in br_i15_muladd_small() 170 under = ~over & (tb | LT(cc, hi)); in br_i15_muladd_small()
|
/freebsd/sys/contrib/dev/athk/ath12k/ |
H A D | wmi.c | 356 const void **tb = data; in ath12k_wmi_tlv_iter_parse() local 359 tb[tag] = ptr; in ath12k_wmi_tlv_iter_parse() 364 static int ath12k_wmi_tlv_parse(struct ath12k_base *ar, const void **tb, in ath12k_wmi_tlv_parse() argument 368 (void *)tb); in ath12k_wmi_tlv_parse() 375 const void **tb; in ath12k_wmi_tlv_parse_alloc() local 378 tb = kcalloc(WMI_TAG_MAX, sizeof(*tb), gfp); in ath12k_wmi_tlv_parse_alloc() 379 if (!tb) in ath12k_wmi_tlv_parse_alloc() 382 ret = ath12k_wmi_tlv_parse(ab, tb, ptr, len); in ath12k_wmi_tlv_parse_alloc() 384 kfree(tb); in ath12k_wmi_tlv_parse_alloc() 388 return tb; in ath12k_wmi_tlv_parse_alloc() [all …]
|
/freebsd/contrib/bsnmp/lib/ |
H A D | snmp.c | 288 struct asn_buf tb; in parse_secparams() local 291 tb.asn_ptr = buf; in parse_secparams() 292 tb.asn_len = 256; in parse_secparams() 299 tb.asn_len = len; in parse_secparams() 301 if (asn_get_sequence(&tb, &octs_len) != ASN_ERR_OK) { in parse_secparams() 307 if (asn_get_octetstring(&tb, (u_char *)&pdu->engine.engine_id, in parse_secparams() 314 if (asn_get_integer(&tb, &pdu->engine.engine_boots) != ASN_ERR_OK) { in parse_secparams() 319 if (asn_get_integer(&tb, &pdu->engine.engine_time) != ASN_ERR_OK) { in parse_secparams() 325 if (asn_get_octetstring(&tb, (u_char *)&pdu->user.sec_name, &octs_len) in parse_secparams() 333 if (asn_get_octetstring(&tb, (u_char *)&pdu->msg_digest, &octs_len) != in parse_secparams() [all …]
|
/freebsd/lib/libsys/powerpc64/ |
H A D | __vdso_gettc.c | 46 u_quad_t tb; in __vdso_gettc() local 51 __asm __volatile ("mftb %0" : "=r"(tb)); in __vdso_gettc() 52 *tc = tb; in __vdso_gettc()
|