/net/sched/ |
D | em_cmp.c | 16 static inline int cmp_needs_transformation(struct tcf_em_cmp *cmp) in cmp_needs_transformation() argument 18 return unlikely(cmp->flags & TCF_EM_CMP_TRANS); in cmp_needs_transformation() 24 struct tcf_em_cmp *cmp = (struct tcf_em_cmp *) em->data; in em_cmp_match() local 25 unsigned char *ptr = tcf_get_base_ptr(skb, cmp->layer) + cmp->off; in em_cmp_match() 28 if (!tcf_valid_offset(skb, ptr, cmp->align)) in em_cmp_match() 31 switch (cmp->align) { in em_cmp_match() 39 if (cmp_needs_transformation(cmp)) in em_cmp_match() 49 if (cmp_needs_transformation(cmp)) in em_cmp_match() 57 if (cmp->mask) in em_cmp_match() 58 val &= cmp->mask; in em_cmp_match() [all …]
|
/net/bridge/netfilter/ |
D | ebt_among.c | 29 uint32_t cmp[2] = { 0, 0 }; in ebt_mac_wormhash_contains() local 32 ether_addr_copy(((char *) cmp) + 2, mac); in ebt_mac_wormhash_contains() 38 if (cmp[1] == p->cmp[1] && cmp[0] == p->cmp[0]) in ebt_mac_wormhash_contains() 45 if (cmp[1] == p->cmp[1] && cmp[0] == p->cmp[0]) in ebt_mac_wormhash_contains()
|
/net/rxrpc/ |
D | conn_client.c | 288 #define cmp(X) ((long)bundle->params.X - (long)cp->X) in rxrpc_look_up_bundle() macro 289 diff = (cmp(peer) ?: in rxrpc_look_up_bundle() 290 cmp(key) ?: in rxrpc_look_up_bundle() 291 cmp(security_level) ?: in rxrpc_look_up_bundle() 292 cmp(upgrade)); in rxrpc_look_up_bundle() 293 #undef cmp in rxrpc_look_up_bundle() 317 #define cmp(X) ((long)bundle->params.X - (long)cp->X) in rxrpc_look_up_bundle() macro 318 diff = (cmp(peer) ?: in rxrpc_look_up_bundle() 319 cmp(key) ?: in rxrpc_look_up_bundle() 320 cmp(security_level) ?: in rxrpc_look_up_bundle() [all …]
|
/net/ipv4/ |
D | inetpeer.c | 105 int cmp; in lookup() local 112 cmp = inetpeer_addr_cmp(daddr, &p->daddr); in lookup() 113 if (cmp == 0) { in lookup() 124 if (cmp == -1) in lookup()
|
/net/ipv6/ |
D | seg6_local.c | 1546 int (*cmp)(struct seg6_local_lwt *a, struct seg6_local_lwt *b); member 1558 .cmp = cmp_nla_srh, 1563 .cmp = cmp_nla_table }, 1567 .cmp = cmp_nla_nh4 }, 1571 .cmp = cmp_nla_nh6 }, 1575 .cmp = cmp_nla_iif }, 1579 .cmp = cmp_nla_oif }, 1583 .cmp = cmp_nla_bpf, 1588 .cmp = cmp_nla_vrftable }, 1592 .cmp = cmp_nla_counters, [all …]
|
/net/netfilter/ |
D | nft_cmp.c | 229 struct nft_cmp_expr cmp = { in nft_cmp_fast_offload() local 240 return __nft_cmp_offload(ctx, flow, &cmp); in nft_cmp_fast_offload() 326 struct nft_cmp_expr cmp = { in nft_cmp16_fast_offload() local 333 return __nft_cmp_offload(ctx, flow, &cmp); in nft_cmp16_fast_offload()
|
/net/netfilter/ipvs/ |
D | ip_vs_proto_sctp.c | 190 __le32 cmp, val; in sctp_csum_check() local 200 cmp = sh->checksum; in sctp_csum_check() 203 if (val != cmp) { in sctp_csum_check()
|
/net/batman-adv/ |
D | bat_algo.c | 79 !bat_algo_ops->neigh.cmp || in batadv_algo_register()
|
D | types.h | 2200 int (*cmp)(struct batadv_neigh_node *neigh1, member
|
D | bat_v.c | 812 .cmp = batadv_v_neigh_cmp,
|
D | originator.c | 1142 if (best && (bao->neigh.cmp(neigh, if_outgoing, best, in batadv_find_best_neighbor()
|
D | bat_iv_ogm.c | 2511 .cmp = batadv_iv_ogm_neigh_cmp,
|
D | translation-table.c | 1769 bao->neigh.cmp(router, BATADV_IF_DEFAULT, best_router, in batadv_transtable_best_orig()
|
/net/sctp/ |
D | auth.c | 296 int cmp; in sctp_auth_asoc_create_secret() local 330 cmp = sctp_auth_compare_vectors(local_key_vector, in sctp_auth_asoc_create_secret() 332 if (cmp < 0) { in sctp_auth_asoc_create_secret()
|
D | input.c | 71 __le32 cmp = sh->checksum; in sctp_rcv_checksum() local 74 if (val != cmp) { in sctp_rcv_checksum()
|
/net/dns_resolver/ |
D | dns_key.c | 287 match_data->cmp = dns_resolver_cmp; in dns_resolver_match_preparse()
|
/net/ceph/ |
D | osd_client.c | 1885 int cmp; in lookup_containing_backoff() local 1887 cmp = hoid_compare(hoid, cur->begin); in lookup_containing_backoff() 1888 if (cmp < 0) { in lookup_containing_backoff() 1890 } else if (cmp > 0) { in lookup_containing_backoff() 4376 int cmp; in target_contained_by() local 4379 cmp = hoid_compare(&hoid, begin); in target_contained_by() 4380 return !cmp || (cmp > 0 && hoid_compare(&hoid, end) < 0); in target_contained_by()
|
/net/wireless/ |
D | scan.c | 1524 int cmp; in rb_insert_bss() local 1530 cmp = cmp_bss(&bss->pub, &tbss->pub, BSS_CMP_REGULAR); in rb_insert_bss() 1532 if (WARN_ON(!cmp)) { in rb_insert_bss() 1537 if (cmp < 0) in rb_insert_bss()
|
/net/xfrm/ |
D | xfrm_state.c | 1855 int (*cmp)(const void *p), int maxclass) in __xfrm6_sort() 1862 int c = cmp(src[i]); in __xfrm6_sort() 1938 int (*cmp)(const void *p), int maxclass) in __xfrm6_sort()
|