/bionic/libc/unistd/ |
ftime.c | 30 int ftime(struct timeb *tb) 38 tb->time = tv.tv_sec; 39 tb->millitm = (tv.tv_usec + 500) / 1000; 41 if (tb->millitm == 1000) { 42 ++tb->time; 43 tb->millitm = 0; 45 tb->timezone = tz.tz_minuteswest; 46 tb->dstflag = tz.tz_dsttime;
|
/external/qemu/ |
translate-all.c | 54 * Memchecker code in this module copies TB PC <-> Guest PC map to the TB 97 int cpu_gen_code(CPUState *env, TranslationBlock *tb, int *gen_code_size_ptr) 113 gen_intermediate_code(env, tb); 116 gen_code_buf = tb->tc_ptr; 117 tb->tb_next_offset[0] = 0xffff; 118 tb->tb_next_offset[1] = 0xffff; 119 s->tb_next_offset = tb->tb_next_offset; 121 s->tb_jmp_offset = tb->tb_jmp_offset; 125 tb->tb_jmp_offset[2] = 0xffff [all...] |
exec-all.h | 62 void gen_intermediate_code(CPUState *env, struct TranslationBlock *tb); 63 void gen_intermediate_code_pc(CPUState *env, struct TranslationBlock *tb); 64 void gen_pc_load(CPUState *env, struct TranslationBlock *tb, 69 int cpu_gen_code(CPUState *env, struct TranslationBlock *tb, 71 int cpu_restore_state(struct TranslationBlock *tb, 74 int cpu_restore_state_copy(struct TranslationBlock *tb, 109 /* estimated block size for TB allocation */ 136 /* next matching tb for physical address. */ 143 /* the following data are used to directly call another TB from 203 tb_get_tb_pc(const TranslationBlock* tb, unsigned int pair [all...] |
cpu-exec.c | 66 /* exit the current TB from a signal handler. The host registers are 102 TranslationBlock *tb; local 105 We only end up here when an existing TB is too long. */ 109 tb = tb_gen_code(env, orig_tb->pc, orig_tb->cs_base, orig_tb->flags, 111 env->current_tb = tb; 113 next_tb = tcg_qemu_tb_exec(tb->tc_ptr); 117 the TB starts executing. */ 118 cpu_pc_from_tb(env, tb); 120 tb_phys_invalidate(tb, -1); 121 tb_free(tb); 128 TranslationBlock *tb, **ptb1; local 175 TranslationBlock *tb; local 220 TranslationBlock *tb; local 787 TranslationBlock *tb; local 837 TranslationBlock *tb; local 875 TranslationBlock *tb; local 913 TranslationBlock *tb; local 963 TranslationBlock *tb; local 1002 TranslationBlock *tb; local 1052 TranslationBlock *tb; local 1102 TranslationBlock *tb; local 1147 TranslationBlock *tb; local 1191 TranslationBlock *tb; local [all...] |
gen-icount.h | 34 static void gen_icount_end(TranslationBlock *tb, int num_insns) 39 tcg_gen_exit_tb((long)tb + 2);
|
/external/iproute2/tc/ |
f_tcindex.c | 128 struct rtattr *tb[TCA_TCINDEX_MAX+1]; local 133 parse_rtattr_nested(tb, TCA_TCINDEX_MAX, opt); 136 if (tb[TCA_TCINDEX_HASH]) { 139 if (RTA_PAYLOAD(tb[TCA_TCINDEX_HASH]) < sizeof(hash)) 141 hash = *(__u16 *) RTA_DATA(tb[TCA_TCINDEX_HASH]); 144 if (tb[TCA_TCINDEX_MASK]) { 147 if (RTA_PAYLOAD(tb[TCA_TCINDEX_MASK]) < sizeof(mask)) 149 mask = *(__u16 *) RTA_DATA(tb[TCA_TCINDEX_MASK]); 152 if (tb[TCA_TCINDEX_SHIFT]) { 155 if (RTA_PAYLOAD(tb[TCA_TCINDEX_SHIFT]) < sizeof(shift) [all...] |
q_dsmark.c | 137 struct rtattr *tb[TCA_DSMARK_MAX+1]; local 140 memset(tb, 0, sizeof(tb)); 141 parse_rtattr(tb, TCA_DSMARK_MAX, RTA_DATA(opt), RTA_PAYLOAD(opt)); 142 if (tb[TCA_DSMARK_MASK]) { 143 if (!RTA_PAYLOAD(tb[TCA_DSMARK_MASK])) 146 *(__u8 *) RTA_DATA(tb[TCA_DSMARK_MASK])); 148 if (tb[TCA_DSMARK_VALUE]) { 149 if (!RTA_PAYLOAD(tb[TCA_DSMARK_VALUE])) 152 *(__u8 *) RTA_DATA(tb[TCA_DSMARK_VALUE])) [all...] |
f_cgroup.c | 87 struct rtattr *tb[TCA_CGROUP_MAX+1]; local 92 parse_rtattr_nested(tb, TCA_CGROUP_MAX, opt); 97 if (tb[TCA_CGROUP_EMATCHES]) 98 print_ematch(f, tb[TCA_CGROUP_EMATCHES]); 100 if (tb[TCA_CGROUP_POLICE]) { 102 tc_print_police(f, tb[TCA_CGROUP_POLICE]); 105 if (tb[TCA_CGROUP_ACT]) 106 tc_print_action(f, tb[TCA_CGROUP_ACT]);
|
f_basic.c | 112 struct rtattr *tb[TCA_BASIC_MAX+1]; local 117 parse_rtattr_nested(tb, TCA_BASIC_MAX, opt); 122 if (tb[TCA_BASIC_CLASSID]) { 125 sprint_tc_classid(*(__u32*)RTA_DATA(tb[TCA_BASIC_CLASSID]), b1)); 128 if (tb[TCA_BASIC_EMATCHES]) 129 print_ematch(f, tb[TCA_BASIC_EMATCHES]); 131 if (tb[TCA_BASIC_POLICE]) { 133 tc_print_police(f, tb[TCA_BASIC_POLICE]); 136 if (tb[TCA_BASIC_ACT]) { 137 tc_print_action(f, tb[TCA_BASIC_ACT]) [all...] |
f_fw.c | 123 struct rtattr *tb[TCA_FW_MAX+1]; local 128 parse_rtattr_nested(tb, TCA_FW_MAX, opt); 130 if (handle || tb[TCA_FW_MASK]) { 134 if(tb[TCA_FW_MASK] && 135 (mask = *(__u32*)RTA_DATA(tb[TCA_FW_MASK])) != 0xFFFFFFFF) 141 if (tb[TCA_FW_CLASSID]) { 143 fprintf(f, "classid %s ", sprint_tc_classid(*(__u32*)RTA_DATA(tb[TCA_FW_CLASSID]), b1)); 146 if (tb[TCA_FW_POLICE]) 147 tc_print_police(f, tb[TCA_FW_POLICE]); 148 if (tb[TCA_FW_INDEV]) [all...] |
f_flow.c | 271 struct rtattr *tb[TCA_FLOW_MAX+1]; local 279 parse_rtattr_nested(tb, TCA_FLOW_MAX, opt); 283 if (tb[TCA_FLOW_MODE]) { 284 __u32 mode = *(__u32 *)RTA_DATA(tb[TCA_FLOW_MODE]); 296 if (tb[TCA_FLOW_KEYS]) { 297 __u32 keymask = *(__u32 *)RTA_DATA(tb[TCA_FLOW_KEYS]); 310 if (tb[TCA_FLOW_MASK]) 311 mask = *(__u32 *)RTA_DATA(tb[TCA_FLOW_MASK]); 312 if (tb[TCA_FLOW_XOR]) 313 val = *(__u32 *)RTA_DATA(tb[TCA_FLOW_XOR]) [all...] |
f_route.c | 138 struct rtattr *tb[TCA_ROUTE4_MAX+1]; local 144 parse_rtattr_nested(tb, TCA_ROUTE4_MAX, opt); 151 if (tb[TCA_ROUTE4_CLASSID]) { 153 fprintf(f, "flowid %s ", sprint_tc_classid(*(__u32*)RTA_DATA(tb[TCA_ROUTE4_CLASSID]), b1)); 155 if (tb[TCA_ROUTE4_TO]) 156 fprintf(f, "to %s ", rtnl_rtrealm_n2a(*(__u32*)RTA_DATA(tb[TCA_ROUTE4_TO]), b1, sizeof(b1))); 157 if (tb[TCA_ROUTE4_FROM]) 158 fprintf(f, "from %s ", rtnl_rtrealm_n2a(*(__u32*)RTA_DATA(tb[TCA_ROUTE4_FROM]), b1, sizeof(b1))); 159 if (tb[TCA_ROUTE4_IIF]) 160 fprintf(f, "fromif %s", ll_index_to_name(*(int*)RTA_DATA(tb[TCA_ROUTE4_IIF]))) [all...] |
m_skbedit.c | 150 struct rtattr *tb[TCA_SKBEDIT_MAX + 1]; local 158 parse_rtattr_nested(tb, TCA_SKBEDIT_MAX, arg); 160 if (tb[TCA_SKBEDIT_PARMS] == NULL) { 165 sel = RTA_DATA(tb[TCA_SKBEDIT_PARMS]); 169 if (tb[TCA_SKBEDIT_QUEUE_MAPPING] != NULL) { 170 queue_mapping = RTA_DATA(tb[TCA_SKBEDIT_QUEUE_MAPPING]); 173 if (tb[TCA_SKBEDIT_PRIORITY] != NULL) { 174 priority = RTA_DATA(tb[TCA_SKBEDIT_PRIORITY]); 179 if (tb[TCA_SKBEDIT_TM]) { 180 struct tcf_t *tm = RTA_DATA(tb[TCA_SKBEDIT_TM]) [all...] |
q_atm.c | 195 struct rtattr *tb[TCA_ATM_MAX+1]; local 201 parse_rtattr_nested(tb, TCA_ATM_MAX, opt); 202 if (tb[TCA_ATM_ADDR]) { 203 if (RTA_PAYLOAD(tb[TCA_ATM_ADDR]) < 208 RTA_DATA(tb[TCA_ATM_ADDR]),A2T_PRETTY | A2T_NAME) < 213 if (tb[TCA_ATM_HDR]) { 217 for (i = 0; i < RTA_PAYLOAD(tb[TCA_ATM_HDR]); i++) 219 ((unsigned char *) RTA_DATA(tb[TCA_ATM_HDR]))[i]); 223 if (tb[TCA_ATM_EXCESS]) { 226 if (RTA_PAYLOAD(tb[TCA_ATM_EXCESS]) < sizeof(excess) [all...] |
m_gact.c | 215 struct rtattr *tb[TCA_GACT_MAX + 1]; local 220 parse_rtattr_nested(tb, TCA_GACT_MAX, arg); 222 if (tb[TCA_GACT_PARMS] == NULL) { 226 p = RTA_DATA(tb[TCA_GACT_PARMS]); 230 if (NULL != tb[TCA_GACT_PROB]) { 231 pp = RTA_DATA(tb[TCA_GACT_PROB]); 241 if (tb[TCA_GACT_TM]) { 242 struct tcf_t *tm = RTA_DATA(tb[TCA_GACT_TM]);
|
tc_stab.c | 121 struct rtattr *tb[TCA_STAB_MAX + 1]; local 124 parse_rtattr_nested(tb, TCA_STAB_MAX, rta); 126 if (tb[TCA_STAB_BASE]) { 128 memcpy(&s, RTA_DATA(tb[TCA_STAB_BASE]), 129 MIN(RTA_PAYLOAD(tb[TCA_STAB_BASE]), sizeof(s))); 146 if (tb[TCA_STAB_DATA]) { 148 __u16 *data = RTA_DATA(tb[TCA_STAB_DATA]); 149 dlen = RTA_PAYLOAD(tb[TCA_STAB_DATA]) / sizeof(__u16);
|
/external/iproute2/genl/ |
ctrl.c | 76 struct rtattr *tb[CTRL_ATTR_MAX + 1]; local 100 parse_rtattr(tb, CTRL_ATTR_MAX, attrs, len); 102 if (tb[CTRL_ATTR_FAMILY_ID] == NULL) { 107 ret = *(__u16 *) RTA_DATA(tb[CTRL_ATTR_FAMILY_ID]); 138 struct rtattr *tb[CTRL_ATTR_OP_MAX + 1]; local 143 parse_rtattr_nested(tb, CTRL_ATTR_OP_MAX, arg); 144 if (tb[CTRL_ATTR_OP_ID]) { 145 __u32 *id = RTA_DATA(tb[CTRL_ATTR_OP_ID]); 149 if (tb[CTRL_ATTR_OP_FLAGS] && ctrl_ver >= 0x2) { 150 __u32 *fl = RTA_DATA(tb[CTRL_ATTR_OP_FLAGS]) 159 struct rtattr *tb[CTRL_ATTR_MCAST_GRP_MAX + 1]; local 183 struct rtattr *tb[CTRL_ATTR_MAX + 1]; local [all...] |
/external/qemu/target-arm/ |
memcheck_arm_helpers.h | 150 * the fact that TB code doesn't contain ret callback, while PC calc 153 TranslationBlock* tb; local 157 for(tb = tb_phys_hash[tb_phys_hash_func(phys_pc)]; tb != NULL; 158 tb = tb->phys_hash_next) { 159 if (tb->pc == addr && tb->page_addr[0] == phys_page1) { 160 tb_phys_invalidate(tb, -1);
|
/external/iproute2/ip/ |
link_gre.c | 51 struct rtattr *tb[IFLA_MAX + 1]; local 87 parse_rtattr(tb, IFLA_MAX, IFLA_RTA(&req.i), len); 89 if (!tb[IFLA_LINKINFO]) 92 parse_rtattr_nested(linkinfo, IFLA_INFO_MAX, tb[IFLA_LINKINFO]); 269 static void gre_print_opt(struct link_util *lu, FILE *f, struct rtattr *tb[]) 278 if (!tb) 281 if (tb[IFLA_GRE_REMOTE]) { 282 unsigned addr = *(__u32 *)RTA_DATA(tb[IFLA_GRE_REMOTE]); 290 if (tb[IFLA_GRE_LOCAL]) { 291 unsigned addr = *(__u32 *)RTA_DATA(tb[IFLA_GRE_LOCAL]) [all...] |
iplink_vlan.c | 165 static void vlan_print_opt(struct link_util *lu, FILE *f, struct rtattr *tb[]) 168 if (!tb) 171 if (!tb[IFLA_VLAN_ID] || 172 RTA_PAYLOAD(tb[IFLA_VLAN_ID]) < sizeof(__u16)) 175 fprintf(f, "id %u ", *(__u16 *)RTA_DATA(tb[IFLA_VLAN_ID])); 177 if (tb[IFLA_VLAN_FLAGS]) { 178 if (RTA_PAYLOAD(tb[IFLA_VLAN_FLAGS]) < sizeof(*flags)) 180 flags = RTA_DATA(tb[IFLA_VLAN_FLAGS]); 183 if (tb[IFLA_VLAN_INGRESS_QOS]) 184 vlan_print_map(f, "ingress-qos-map", tb[IFLA_VLAN_INGRESS_QOS]) [all...] |
iprule.c | 53 struct rtattr * tb[FRA_MAX+1]; local 64 parse_rtattr(tb, FRA_MAX, RTM_RTA(r), len); 78 if (tb[FRA_PRIORITY]) 79 fprintf(fp, "%u:\t", *(unsigned*)RTA_DATA(tb[FRA_PRIORITY])); 86 if (tb[FRA_SRC]) { 89 RTA_PAYLOAD(tb[FRA_SRC]), 90 RTA_DATA(tb[FRA_SRC]), 96 RTA_PAYLOAD(tb[FRA_SRC]), 97 RTA_DATA(tb[FRA_SRC]), 107 if (tb[FRA_DST]) 360 struct rtattr * tb[FRA_MAX+1]; local [all...] |
ipprefix.c | 41 struct rtattr * tb[RTA_MAX+1]; local 70 parse_rtattr(tb, RTA_MAX, RTM_RTA(prefix), len); 74 if (tb[PREFIX_ADDRESS]) { 78 pfx = (struct in6_addr *)RTA_DATA(tb[PREFIX_ADDRESS]); 93 if (tb[PREFIX_CACHEINFO]) { 95 pc = (struct prefix_cacheinfo *)tb[PREFIX_CACHEINFO];
|
iplink_can.c | 184 static void can_print_opt(struct link_util *lu, FILE *f, struct rtattr *tb[]) 186 if (!tb) 189 if (tb[IFLA_CAN_CTRLMODE]) { 190 struct can_ctrlmode *cm = RTA_DATA(tb[IFLA_CAN_CTRLMODE]); 196 if (tb[IFLA_CAN_STATE]) { 197 int *state = RTA_DATA(tb[IFLA_CAN_STATE]); 203 if (tb[IFLA_CAN_RESTART_MS]) { 204 __u32 *restart_ms = RTA_DATA(tb[IFLA_CAN_RESTART_MS]); 209 if (tb[IFLA_CAN_BITTIMING]) { 210 struct can_bittiming *bt = RTA_DATA(tb[IFLA_CAN_BITTIMING]) [all...] |
/external/clearsilver/python/examples/base/ |
who_calls.py | 64 t,v,tb = sys.exc_info() 66 if tb is None: 72 tb.tb_frame.f_code.co_filename, 73 tb.tb_frame.f_code.co_name, 74 str(tb.tb_lineno) 76 tb = tb.tb_next 77 if not tb: 81 del tb
|
/external/iproute2/lib/ |
ll_map.c | 46 struct rtattr *tb[IFLA_MAX+1]; local 55 memset(tb, 0, sizeof(tb)); 56 parse_rtattr(tb, IFLA_MAX, IFLA_RTA(ifi), IFLA_PAYLOAD(n)); 57 if (tb[IFLA_IFNAME] == NULL) 77 if (tb[IFLA_ADDRESS]) { 79 im->alen = alen = RTA_PAYLOAD(tb[IFLA_ADDRESS]); 82 memcpy(im->addr, RTA_DATA(tb[IFLA_ADDRESS]), alen); 87 strcpy(im->name, RTA_DATA(tb[IFLA_IFNAME]));
|