| /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 | 65 stringtable *tb = &G(L)->strt; in luaS_resize() local 68 if (newsize > tb->size) { in luaS_resize() 69 luaM_reallocvector(L, tb->hash, tb->size, newsize, GCObject *); in luaS_resize() 70 for (i = tb->size; i < newsize; i++) tb->hash[i] = NULL; in luaS_resize() 73 for (i=0; i<tb->size; i++) { in luaS_resize() 74 GCObject *p = tb->hash[i]; in luaS_resize() 75 tb->hash[i] = NULL; in luaS_resize() 79 gch(p)->next = tb->hash[h]; /* chain it */ in luaS_resize() 80 tb->hash[h] = p; in luaS_resize() 85 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, 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 …]
|
| /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/powerpc/powermac/ |
| H A D | platform_powermac.c | 72 static void powermac_smp_timebase_sync(platform_t, u_long tb, int ap); 415 powermac_smp_timebase_sync_fallback(platform_t plat, u_long tb, int ap) in powermac_smp_timebase_sync_fallback() argument 422 ap, __func__, (uintmax_t)tb, (uintmax_t)mftb()); in powermac_smp_timebase_sync_fallback() 425 mttb(tb); in powermac_smp_timebase_sync_fallback() 439 mttb(tb); in powermac_smp_timebase_sync_fallback() 454 mttb(tb); in powermac_smp_timebase_sync_fallback() 461 ap, __func__, (uintmax_t)tb, (uintmax_t)mftb()); in powermac_smp_timebase_sync_fallback() 476 powermac_smp_timebase_sync_freeze(platform_t plat, u_long tb, int ap) in powermac_smp_timebase_sync_freeze() argument 483 ap, __func__, (uintmax_t)tb, (uintmax_t)mftb()); in powermac_smp_timebase_sync_freeze() 489 mttb(tb); in powermac_smp_timebase_sync_freeze() [all …]
|
| /freebsd/sys/contrib/openzfs/module/zfs/ |
| H A D | sa.c | 410 sa_lot_t *tb, *findtb; in sa_add_layout_entry() local 415 tb = kmem_zalloc(sizeof (sa_lot_t), KM_SLEEP); in sa_add_layout_entry() 416 tb->lot_attr_count = attr_count; in sa_add_layout_entry() 417 tb->lot_attrs = kmem_alloc(sizeof (sa_attr_type_t) * attr_count, in sa_add_layout_entry() 419 memcpy(tb->lot_attrs, attrs, sizeof (sa_attr_type_t) * attr_count); in sa_add_layout_entry() 420 tb->lot_num = lot_num; in sa_add_layout_entry() 421 tb->lot_hash = hash; in sa_add_layout_entry() 422 tb->lot_instance = 0; in sa_add_layout_entry() 439 list_create(&tb->lot_idx_tab, sizeof (sa_idx_tab_t), in sa_add_layout_entry() 443 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/sys/contrib/dev/athk/ath10k/ |
| H A D | testmode.c | 196 static int ath10k_tm_cmd_get_version(struct ath10k *ar, struct nlattr *tb[]) in ath10k_tm_cmd_get_version() argument 322 static int ath10k_tm_cmd_utf_start(struct ath10k *ar, struct nlattr *tb[]) in ath10k_tm_cmd_utf_start() argument 456 static int ath10k_tm_cmd_utf_stop(struct ath10k *ar, struct nlattr *tb[]) in ath10k_tm_cmd_utf_stop() argument 480 static int ath10k_tm_cmd_wmi(struct ath10k *ar, struct nlattr *tb[]) in ath10k_tm_cmd_wmi() argument 494 if (!tb[ATH10K_TM_ATTR_DATA]) { in ath10k_tm_cmd_wmi() 499 if (!tb[ATH10K_TM_ATTR_WMI_CMDID]) { in ath10k_tm_cmd_wmi() 504 buf = nla_data(tb[ATH10K_TM_ATTR_DATA]); in ath10k_tm_cmd_wmi() 505 buf_len = nla_len(tb[ATH10K_TM_ATTR_DATA]); in ath10k_tm_cmd_wmi() 506 cmd_id = nla_get_u32(tb[ATH10K_TM_ATTR_WMI_CMDID]); in ath10k_tm_cmd_wmi() 536 static int ath10k_tm_cmd_tlv(struct ath10k *ar, struct nlattr *tb[]) in ath10k_tm_cmd_tlv() argument [all …]
|
| H A D | wmi-tlv.c | 138 const void **tb = data; in ath10k_wmi_tlv_iter_parse() local 141 tb[tag] = ptr; in ath10k_wmi_tlv_iter_parse() 146 static int ath10k_wmi_tlv_parse(struct ath10k *ar, const void **tb, in ath10k_wmi_tlv_parse() argument 150 (void *)tb); in ath10k_wmi_tlv_parse() 157 const void **tb; in ath10k_wmi_tlv_parse_alloc() local 160 tb = kcalloc(WMI_TLV_TAG_MAX, sizeof(*tb), gfp); in ath10k_wmi_tlv_parse_alloc() 161 if (!tb) in ath10k_wmi_tlv_parse_alloc() 164 ret = ath10k_wmi_tlv_parse(ar, tb, ptr, len); in ath10k_wmi_tlv_parse_alloc() 166 kfree(tb); in ath10k_wmi_tlv_parse_alloc() 170 return tb; in ath10k_wmi_tlv_parse_alloc() [all …]
|
| /freebsd/crypto/krb5/src/windows/leashdll/ |
| H A D | krb5routines.c | 562 int tb_cnt, struct textField * tb) in MultiInputDialog() argument 578 mid_tb = tb; in MultiInputDialog() 678 if ( pwid < strlen(tb[i].label) ) in MultiInputDialog() 679 pwid = strlen(tb[i].label); in MultiInputDialog() 702 nchar = MultiByteToWideChar (CP_ACP, 0, tb[i].label ? tb[i].label : "", in MultiInputDialog() 712 …lpdit->style = WS_CHILD | WS_VISIBLE | ES_LEFT | WS_TABSTOP | WS_BORDER | (tb[i].echo == 1 ? 0L : … in MultiInputDialog() 725 nchar = MultiByteToWideChar (CP_ACP, 0, tb[i].def ? tb[i].def : "", in MultiInputDialog() 756 multi_field_dialog(HWND hParent, char * preface, int n, struct textField tb[]) in multi_field_dialog() argument 782 len = strlen(tb[i].label) + 1 + (tb[i].len > 40 ? 40 : tb[i].len); in multi_field_dialog() 787 return(MultiInputDialog(hLeashInst, hParent, plines, numlines, maxwidth, n, tb)); in multi_field_dialog() [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 | 303 tidbatch_prep(struct tidbatch *tb) in tidbatch_prep() argument 306 tb->n = 0; in tidbatch_prep() 310 tidbatch_add(struct tidbatch *tb, struct thread *td) in tidbatch_add() argument 313 KASSERT(tb->n < nitems(tb->tab), in tidbatch_add() 314 ("%s: count too high %d", __func__, tb->n)); in tidbatch_add() 315 tb->tab[tb->n] = td->td_tid; in tidbatch_add() 316 tb->n++; in tidbatch_add() 320 tidbatch_process(struct tidbatch *tb) in tidbatch_process() argument 323 KASSERT(tb->n <= nitems(tb->tab), in tidbatch_process() 324 ("%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/mt7925/ |
| H A D | testmode.c | 119 struct nlattr *tb[NUM_MT76_TM_ATTRS]; in mt7925_testmode_cmd() local 128 err = nla_parse_deprecated(tb, MT76_TM_ATTR_MAX, data, len, in mt7925_testmode_cmd() 133 if (tb[MT76_TM_ATTR_DRV_DATA]) { in mt7925_testmode_cmd() 137 data = tb[MT76_TM_ATTR_DRV_DATA]; in mt7925_testmode_cmd() 156 struct nlattr *tb[NUM_MT76_TM_ATTRS]; in mt7925_testmode_dump() local 169 err = nla_parse_deprecated(tb, MT76_TM_ATTR_MAX, data, len, in mt7925_testmode_dump() 174 if (tb[MT76_TM_ATTR_DRV_DATA]) { in mt7925_testmode_dump() 178 data = tb[MT76_TM_ATTR_DRV_DATA]; in mt7925_testmode_dump()
|
| /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 …]
|