/openbmc/linux/drivers/net/wireless/ath/ath11k/ |
H A D | wmi.c | 247 tb = kcalloc(WMI_TAG_MAX, sizeof(*tb), gfp); in ath11k_wmi_tlv_parse_alloc() 248 if (!tb) in ath11k_wmi_tlv_parse_alloc() 253 kfree(tb); in ath11k_wmi_tlv_parse_alloc() 257 return tb; in ath11k_wmi_tlv_parse_alloc() 3974 kfree(tb); in ath11k_wmi_obss_color_collision_event() 5032 kfree(tb); in ath11k_pull_vdev_start_resp_tlv() 5202 kfree(tb); in ath11k_pull_reg_chan_list_update_ev() 5625 kfree(tb); in ath11k_pull_reg_chan_list_ext_update_ev() 5656 kfree(tb); in ath11k_pull_peer_del_resp_ev() 5684 kfree(tb); in ath11k_pull_vdev_del_resp_ev() [all …]
|
/openbmc/linux/drivers/net/fddi/skfp/ |
H A D | fplustm.c | 1057 struct s_fpmc *tb ; in mac_get_mc_table() local 1075 slot = tb ; in mac_get_mc_table() 1080 return tb; in mac_get_mc_table() 1104 if (!tb->perm) { in mac_clear_multicast() 1105 tb->n = 0 ; in mac_clear_multicast() 1162 tb->n++ ; in mac_add_multicast() 1163 tb->a = own ; in mac_add_multicast() 1227 if (tb->n) { in mac_update_multicast() 1234 (u_short)((tb->a.a[0]<<8)+tb->a.a[1])) ; in mac_update_multicast() 1236 (u_short)((tb->a.a[2]<<8)+tb->a.a[3])) ; in mac_update_multicast() [all …]
|
/openbmc/linux/drivers/net/ethernet/rocker/ |
H A D | rocker_tlv.h | 109 void rocker_tlv_parse(const struct rocker_tlv **tb, int maxtype, 112 static inline void rocker_tlv_parse_nested(const struct rocker_tlv **tb, in rocker_tlv_parse_nested() argument 116 rocker_tlv_parse(tb, maxtype, rocker_tlv_data(tlv), in rocker_tlv_parse_nested() 121 rocker_tlv_parse_desc(const struct rocker_tlv **tb, int maxtype, in rocker_tlv_parse_desc() argument 124 rocker_tlv_parse(tb, maxtype, desc_info->data, in rocker_tlv_parse_desc()
|
/openbmc/linux/net/netfilter/ |
H A D | nft_rt.c | 112 const struct nlattr * const tb[]) in nft_rt_get_init() argument 117 if (tb[NFTA_RT_KEY] == NULL || in nft_rt_get_init() 118 tb[NFTA_RT_DREG] == NULL) in nft_rt_get_init() 121 priv->key = ntohl(nla_get_be32(tb[NFTA_RT_KEY])); in nft_rt_get_init() 144 return nft_parse_register_store(ctx, tb[NFTA_RT_DREG], &priv->dreg, in nft_rt_get_init()
|
H A D | nft_dup_netdev.c | 36 const struct nlattr * const tb[]) in nft_dup_netdev_init() argument 40 if (tb[NFTA_DUP_SREG_DEV] == NULL) in nft_dup_netdev_init() 43 return nft_parse_register_load(tb[NFTA_DUP_SREG_DEV], &priv->sreg_dev, in nft_dup_netdev_init()
|
/openbmc/linux/net/ethtool/ |
H A D | eee.c | 134 struct nlattr **tb = info->attrs; in ethnl_set_eee() local 144 tb[ETHTOOL_A_EEE_MODES_OURS], in ethnl_set_eee() 148 ethnl_update_bool32(&eee.eee_enabled, tb[ETHTOOL_A_EEE_ENABLED], &mod); in ethnl_set_eee() 150 tb[ETHTOOL_A_EEE_TX_LPI_ENABLED], &mod); in ethnl_set_eee() 151 ethnl_update_u32(&eee.tx_lpi_timer, tb[ETHTOOL_A_EEE_TX_LPI_TIMER], in ethnl_set_eee()
|
H A D | mm.c | 188 struct nlattr **tb = info->attrs; in ethnl_set_mm() local 199 ethnl_update_bool(&cfg.verify_enabled, tb[ETHTOOL_A_MM_VERIFY_ENABLED], in ethnl_set_mm() 201 ethnl_update_u32(&cfg.verify_time, tb[ETHTOOL_A_MM_VERIFY_TIME], &mod); in ethnl_set_mm() 202 ethnl_update_bool(&cfg.tx_enabled, tb[ETHTOOL_A_MM_TX_ENABLED], &mod); in ethnl_set_mm() 203 ethnl_update_bool(&cfg.pmac_enabled, tb[ETHTOOL_A_MM_PMAC_ENABLED], in ethnl_set_mm() 206 tb[ETHTOOL_A_MM_TX_MIN_FRAG_SIZE], &mod); in ethnl_set_mm() 212 NL_SET_ERR_MSG_ATTR(extack, tb[ETHTOOL_A_MM_VERIFY_TIME], in ethnl_set_mm()
|
H A D | linkinfo.c | 103 struct nlattr **tb = info->attrs; in ethnl_set_linkinfo() local 114 ethnl_update_u8(&lsettings->port, tb[ETHTOOL_A_LINKINFO_PORT], &mod); in ethnl_set_linkinfo() 115 ethnl_update_u8(&lsettings->phy_address, tb[ETHTOOL_A_LINKINFO_PHYADDR], in ethnl_set_linkinfo() 118 tb[ETHTOOL_A_LINKINFO_TP_MDIX_CTRL], &mod); in ethnl_set_linkinfo()
|
/openbmc/linux/drivers/pinctrl/mediatek/ |
H A D | pinctrl-mtk-common-v2.c | 971 const struct mtk_drive_desc *tb; in mtk_pinconf_drive_set() local 974 tb = &mtk_drive[desc->drv_n]; in mtk_pinconf_drive_set() 980 if ((arg >= tb->min && arg <= tb->max) && !(arg % tb->step)) { in mtk_pinconf_drive_set() 981 arg = (arg / tb->step - 1) * tb->scal; in mtk_pinconf_drive_set() 1003 tb = &mtk_drive[desc->drv_n]; in mtk_pinconf_drive_get() 1016 *val = (((val2 << 1) + val1) / tb->scal + 1) * tb->step; in mtk_pinconf_drive_get() 1029 tb = &mtk_drive[desc->drv_n]; in mtk_pinconf_drive_set_rev1() 1031 if ((arg >= tb->min && arg <= tb->max) && !(arg % tb->step)) { in mtk_pinconf_drive_set_rev1() 1032 arg = (arg / tb->step - 1) * tb->scal; in mtk_pinconf_drive_set_rev1() 1050 tb = &mtk_drive[desc->drv_n]; in mtk_pinconf_drive_get_rev1() [all …]
|
/openbmc/linux/net/wireless/ |
H A D | nl80211.c | 3014 if (!tb) in nl80211_dump_wiphy_parse() 3051 kfree(tb); in nl80211_dump_wiphy_parse() 3170 if (!tb[NL80211_TXQ_ATTR_AC] || !tb[NL80211_TXQ_ATTR_TXOP] || in parse_txq_params() 3171 !tb[NL80211_TXQ_ATTR_CWMIN] || !tb[NL80211_TXQ_ATTR_CWMAX] || in parse_txq_params() 13569 tb = kcalloc(NUM_NL80211_ATTR, sizeof(*tb), GFP_KERNEL); in nl80211_parse_wowlan_nd() 13570 if (!tb) in nl80211_parse_wowlan_nd() 13590 kfree(tb); in nl80211_parse_wowlan_nd() 16056 tb = kcalloc(NL80211_ATTR_MAX + 1, sizeof(*tb), GFP_KERNEL); in nl80211_color_change() 16057 if (!tb) in nl80211_color_change() 16125 kfree(tb); in nl80211_color_change() [all …]
|
/openbmc/linux/include/net/ |
H A D | netlink.h | 662 static inline int nla_parse(struct nlattr **tb, int maxtype, in nla_parse() argument 667 return __nla_parse(tb, maxtype, head, len, policy, in nla_parse() 692 return __nla_parse(tb, maxtype, head, len, policy, in nla_parse_deprecated() 718 return __nla_parse(tb, maxtype, head, len, policy, in nla_parse_deprecated_strict() 735 struct nlattr *tb[], int maxtype, in __nlmsg_parse() argument 762 struct nlattr *tb[], int maxtype, in nlmsg_parse() argument 766 return __nlmsg_parse(nlh, hdrlen, tb, maxtype, policy, in nlmsg_parse() 782 struct nlattr *tb[], int maxtype, in nlmsg_parse_deprecated() argument 786 return __nlmsg_parse(nlh, hdrlen, tb, maxtype, policy, in nlmsg_parse_deprecated() 803 struct nlattr *tb[], int maxtype, in nlmsg_parse_deprecated_strict() argument [all …]
|
/openbmc/linux/net/sched/ |
H A D | cls_basic.c | 149 struct nlattr **tb, in basic_set_parms() argument 155 err = tcf_exts_validate(net, tp, tb, est, &f->exts, flags, extack); in basic_set_parms() 159 err = tcf_em_tree_validate(tp, tb[TCA_BASIC_EMATCHES], &f->ematches); in basic_set_parms() 163 if (tb[TCA_BASIC_CLASSID]) { in basic_set_parms() 164 f->res.classid = nla_get_u32(tb[TCA_BASIC_CLASSID]); in basic_set_parms() 179 struct nlattr *tb[TCA_BASIC_MAX + 1]; in basic_change() local 186 err = nla_parse_nested_deprecated(tb, TCA_BASIC_MAX, tca[TCA_OPTIONS], in basic_change() 221 err = basic_set_parms(net, tp, fnew, base, tb, tca[TCA_RATE], flags, in basic_change()
|
H A D | act_gact.c | 60 struct nlattr *tb[TCA_GACT_MAX + 1]; in tcf_gact_init() local 74 err = nla_parse_nested_deprecated(tb, TCA_GACT_MAX, nla, gact_policy, in tcf_gact_init() 79 if (tb[TCA_GACT_PARMS] == NULL) in tcf_gact_init() 81 parm = nla_data(tb[TCA_GACT_PARMS]); in tcf_gact_init() 85 if (tb[TCA_GACT_PROB] != NULL) in tcf_gact_init() 88 if (tb[TCA_GACT_PROB]) { in tcf_gact_init() 89 p_parm = nla_data(tb[TCA_GACT_PROB]); in tcf_gact_init()
|
H A D | sch_taprio.c | 1047 if (tb[TCA_TAPRIO_SCHED_ENTRY_CMD]) in fill_sched_entry() 1049 tb[TCA_TAPRIO_SCHED_ENTRY_CMD]); in fill_sched_entry() 1053 tb[TCA_TAPRIO_SCHED_ENTRY_GATE_MASK]); in fill_sched_entry() 1055 if (tb[TCA_TAPRIO_SCHED_ENTRY_INTERVAL]) in fill_sched_entry() 1057 tb[TCA_TAPRIO_SCHED_ENTRY_INTERVAL]); in fill_sched_entry() 1142 if (tb[TCA_TAPRIO_ATTR_SCHED_BASE_TIME]) in parse_taprio_schedule() 1709 if (!tb[TCA_TAPRIO_TC_ENTRY_INDEX]) { in taprio_parse_tc_entry() 1727 if (tb[TCA_TAPRIO_TC_ENTRY_MAX_SDU]) { in taprio_parse_tc_entry() 1737 if (tb[TCA_TAPRIO_TC_ENTRY_FP]) in taprio_parse_tc_entry() 1861 if (tb[TCA_TAPRIO_ATTR_PRIOMAP]) in taprio_change() [all …]
|
/openbmc/linux/drivers/net/ |
H A D | dummy.c | 132 static int dummy_validate(struct nlattr *tb[], struct nlattr *data[], in dummy_validate() argument 135 if (tb[IFLA_ADDRESS]) { in dummy_validate() 136 if (nla_len(tb[IFLA_ADDRESS]) != ETH_ALEN) in dummy_validate() 138 if (!is_valid_ether_addr(nla_data(tb[IFLA_ADDRESS]))) in dummy_validate()
|
/openbmc/qemu/tcg/ |
H A D | region.c | 176 TranslationBlock *tb = value; in tb_destroy() local 177 qemu_spin_destroy(&tb->jmp_lock); in tb_destroy() 223 void tcg_tb_insert(TranslationBlock *tb) in tcg_tb_insert() argument 225 struct tcg_region_tree *rt = tc_ptr_to_region_tree(tb->tc.ptr); in tcg_tb_insert() 229 q_tree_insert(rt->tree, &tb->tc, tb); in tcg_tb_insert() 233 void tcg_tb_remove(TranslationBlock *tb) in tcg_tb_remove() argument 235 struct tcg_region_tree *rt = tc_ptr_to_region_tree(tb->tc.ptr); in tcg_tb_remove() 239 q_tree_remove(rt->tree, &tb->tc); in tcg_tb_remove() 251 TranslationBlock *tb; in tcg_tb_lookup() local 259 tb = q_tree_lookup(rt->tree, &s); in tcg_tb_lookup() [all …]
|
/openbmc/qemu/target/loongarch/ |
H A D | translate.c | 109 tcg_gen_exit_tb(ctx->base.tb, n); in gen_goto_tb() 124 ctx->plv = ctx->base.tb->flags & HW_FLAGS_PLV_MASK; in loongarch_tr_init_disas_context() 125 if (ctx->base.tb->flags & HW_FLAGS_CRMD_PG) { in loongarch_tr_init_disas_context() 144 ctx->va32 = (ctx->base.tb->flags & HW_FLAGS_VA32) != 0; in loongarch_tr_init_disas_context() 333 target_disas(logfile, cpu, dcbase->pc_first, dcbase->tb->size); in loongarch_tr_disas_log() 345 void gen_intermediate_code(CPUState *cs, TranslationBlock *tb, int *max_insns, in gen_intermediate_code() argument 350 translator_loop(cs, tb, max_insns, pc, host_pc, in gen_intermediate_code()
|
/openbmc/linux/drivers/media/rc/ |
H A D | meson-ir-tx.c | 115 unsigned int tb = IRB_TB_MOD_CLK; in meson_irtx_prepare_pulse() local 120 return ((IRB_WRITE_FIFO | IRB_MOD_ENABLE) | tb | delay); in meson_irtx_prepare_pulse() 126 unsigned int tb = IRB_TB_100US; in meson_irtx_prepare_space() local 130 tb = IRB_TB_1US; in meson_irtx_prepare_space() 133 tb = IRB_TB_10US; in meson_irtx_prepare_space() 136 tb = IRB_TB_100US; in meson_irtx_prepare_space() 142 return ((IRB_WRITE_FIFO & ~IRB_MOD_ENABLE) | tb | delay); in meson_irtx_prepare_space()
|
/openbmc/linux/net/ipv4/ |
H A D | ip_gre.c | 1074 if (tb[IFLA_ADDRESS]) { in ipgre_tap_validate() 1075 if (nla_len(tb[IFLA_ADDRESS]) != ETH_ALEN) in ipgre_tap_validate() 1103 ret = ipgre_tap_validate(tb, data, extack); in erspan_validate() 1136 struct nlattr *tb[], in ipgre_netlink_parms() argument 1203 struct nlattr *tb[], in erspan_netlink_parms() argument 1360 struct nlattr *tb[], struct nlattr *data[], in ipgre_newlink() argument 1374 return ip_tunnel_newlink(dev, tb, &p, fwmark); in ipgre_newlink() 1419 ipgre_link_update(dev, !tb[IFLA_MTU]); in ipgre_changelink() 1658 struct nlattr *tb[IFLA_MAX + 1]; in gretap_fb_dev_create() local 1664 memset(&tb, 0, sizeof(tb)); in gretap_fb_dev_create() [all …]
|
/openbmc/linux/lib/crypto/ |
H A D | arc4.c | 41 u32 ty, ta, tb; in arc4_crypt() local 60 tb = S[ty]; in arc4_crypt() 66 b = tb; in arc4_crypt()
|
/openbmc/linux/fs/smb/common/ |
H A D | cifs_arc4.c | 43 u32 ty, ta, tb; in cifs_arc4_crypt() local 62 tb = S[ty]; in cifs_arc4_crypt() 68 b = tb; in cifs_arc4_crypt()
|
/openbmc/linux/block/partitions/ |
H A D | ldm.c | 357 struct tocblock *tb[4]; in ldm_validate_tocblocks() local 366 tb[0] = &ldb->toc; in ldm_validate_tocblocks() 367 tb[1] = kmalloc_array(3, sizeof(*tb[1]), GFP_KERNEL); in ldm_validate_tocblocks() 368 if (!tb[1]) { in ldm_validate_tocblocks() 372 tb[2] = (struct tocblock*)((u8*)tb[1] + sizeof(*tb[1])); in ldm_validate_tocblocks() 373 tb[3] = (struct tocblock*)((u8*)tb[2] + sizeof(*tb[2])); in ldm_validate_tocblocks() 386 if (ldm_parse_tocblock(data, tb[nr_tbs])) in ldm_validate_tocblocks() 395 if (((tb[0]->bitmap1_start + tb[0]->bitmap1_size) > ph->config_size) || in ldm_validate_tocblocks() 396 ((tb[0]->bitmap2_start + tb[0]->bitmap2_size) > in ldm_validate_tocblocks() 403 if (!ldm_compare_tocblocks(tb[0], tb[i])) { in ldm_validate_tocblocks() [all …]
|
/openbmc/qemu/target/mips/tcg/ |
H A D | tcg-internal.h | 20 void mips_cpu_synchronize_from_tb(CPUState *cs, const TranslationBlock *tb); 25 const TranslationBlock *tb, 53 bool mips_io_recompile_replay_branch(CPUState *cs, const TranslationBlock *tb);
|
/openbmc/linux/crypto/ |
H A D | algboss.c | 24 struct rtattr *tb[CRYPTO_MAX_ATTRS + 2]; member 61 err = tmpl->create(tmpl, param->tb); in cryptomgr_probe() 128 param->tb[i + 1] = ¶m->attrs[i].attr; in cryptomgr_schedule_probe() 144 param->tb[i + 1] = NULL; in cryptomgr_schedule_probe() 150 param->tb[0] = ¶m->type.attr; in cryptomgr_schedule_probe()
|
/openbmc/qemu/accel/tcg/ |
H A D | perf.h | 21 void perf_report_code(uint64_t guest_pc, TranslationBlock *tb, 39 static inline void perf_report_code(uint64_t guest_pc, TranslationBlock *tb, in perf_report_code() argument
|