Home
last modified time | relevance | path

Searched refs:tsize (Results 1 – 3 of 3) sorted by relevance

/net/sched/
Dsch_api.c457 unsigned int tsize = 0; in qdisc_get_stab() local
469 if (s->tsize > 0) { in qdisc_get_stab()
473 tsize = nla_len(tb[TCA_STAB_DATA]) / sizeof(u16); in qdisc_get_stab()
476 if (tsize != s->tsize || (!tab && tsize > 0)) in qdisc_get_stab()
482 if (tsize > 0 && memcmp(stab->data, tab, tsize * sizeof(u16))) in qdisc_get_stab()
488 stab = kmalloc(sizeof(*stab) + tsize * sizeof(u16), GFP_KERNEL); in qdisc_get_stab()
494 if (tsize > 0) in qdisc_get_stab()
495 memcpy(stab->data, tab, tsize * sizeof(u16)); in qdisc_get_stab()
542 if (unlikely(!stab->szopts.tsize)) in __qdisc_calculate_pkt_len()
550 if (likely(slot < stab->szopts.tsize)) in __qdisc_calculate_pkt_len()
[all …]
/net/netfilter/
Dx_tables.c995 u_int16_t tsize = ct->u.user.target_size; in xt_compat_target_from_user() local
1003 memcpy(t->data, ct->data, tsize - sizeof(*ct)); in xt_compat_target_from_user()
1008 tsize += off; in xt_compat_target_from_user()
1009 t->u.user.target_size = tsize; in xt_compat_target_from_user()
1015 *dstptr += tsize; in xt_compat_target_from_user()
1025 u_int16_t tsize = t->u.user.target_size - off; in xt_compat_target_to_user() local
1027 if (XT_OBJ_TO_USER(ct, t, target, tsize)) in xt_compat_target_to_user()
1034 if (COMPAT_XT_DATA_TO_USER(ct, t, target, tsize - sizeof(*ct))) in xt_compat_target_to_user()
1039 *dstptr += tsize; in xt_compat_target_to_user()
/net/bridge/netfilter/
Debtables.c1637 compat_uint_t tsize = t->target_size - off; in compat_target_to_user() local
1643 strlen(target->name) + 1) || put_user(tsize, &cm->match_size)) in compat_target_to_user()
1650 if (xt_data_to_user(cm->data, t->data, target->usersize, tsize, in compat_target_to_user()
1651 COMPAT_XT_ALIGN(tsize))) in compat_target_to_user()
1657 *dstptr += tsize; in compat_target_to_user()