/net/ipv4/ |
D | inet_fragment.c | 56 inet_frag_hashfn(const struct inet_frags *f, const struct inet_frag_queue *q) in inet_frag_hashfn() argument 58 return f->hashfn(q) & (INETFRAGS_HASHSZ - 1); in inet_frag_hashfn() 61 static bool inet_frag_may_rebuild(struct inet_frags *f) in inet_frag_may_rebuild() argument 64 f->last_rebuild_jiffies + INETFRAGS_MIN_REBUILD_INTERVAL); in inet_frag_may_rebuild() 67 static void inet_frag_secret_rebuild(struct inet_frags *f) in inet_frag_secret_rebuild() argument 71 write_seqlock_bh(&f->rnd_seqlock); in inet_frag_secret_rebuild() 73 if (!inet_frag_may_rebuild(f)) in inet_frag_secret_rebuild() 76 get_random_bytes(&f->rnd, sizeof(u32)); in inet_frag_secret_rebuild() 83 hb = &f->hash[i]; in inet_frag_secret_rebuild() 87 unsigned int hval = inet_frag_hashfn(f, q); in inet_frag_secret_rebuild() [all …]
|
/net/sched/ |
D | cls_route.c | 81 struct route4_filter *f) in route4_set_fastmap() argument 89 head->fastmap[h].filter = f; in route4_set_fastmap() 115 *res = f->res; \ 116 if (tcf_exts_is_available(&f->exts)) { \ 117 int r = tcf_exts_exec(skb, &f->exts, res); \ 124 route4_set_fastmap(head, id, iif, f); \ 134 struct route4_filter *f; in route4_classify() local 153 (f = head->fastmap[h].filter) != NULL) { in route4_classify() 154 if (f == ROUTE4_FAILURE) { in route4_classify() 159 *res = f->res; in route4_classify() [all …]
|
D | cls_fw.c | 63 struct fw_filter *f; in fw_classify() local 70 for (f = rcu_dereference_bh(head->ht[fw_hash(id)]); f; in fw_classify() 71 f = rcu_dereference_bh(f->next)) { in fw_classify() 72 if (f->id == id) { in fw_classify() 73 *res = f->res; in fw_classify() 75 if (!tcf_match_indev(skb, f->ifindex)) in fw_classify() 78 r = tcf_exts_exec(skb, &f->exts, res); in fw_classify() 101 struct fw_filter *f; in fw_get() local 106 f = rtnl_dereference(head->ht[fw_hash(handle)]); in fw_get() 107 for (; f; f = rtnl_dereference(f->next)) { in fw_get() [all …]
|
D | cls_rsvp.h | 124 int r = tcf_exts_exec(skb, &f->exts, res); \ 136 struct rsvp_filter *f; in rsvp_classify() local 188 for (f = rcu_dereference_bh(s->ht[h2]); f; in rsvp_classify() 189 f = rcu_dereference_bh(f->next)) { in rsvp_classify() 190 if (src[RSVP_DST_LEN-1] == f->src[RSVP_DST_LEN - 1] && in rsvp_classify() 191 !(f->spi.mask & (*(u32 *)(xprt + f->spi.offset) ^ f->spi.key)) in rsvp_classify() 194 src[0] == f->src[0] && in rsvp_classify() 195 src[1] == f->src[1] && in rsvp_classify() 196 src[2] == f->src[2] in rsvp_classify() 199 *res = f->res; in rsvp_classify() [all …]
|
D | cls_basic.c | 45 struct basic_filter *f; in basic_classify() local 47 list_for_each_entry_rcu(f, &head->flist, link) { in basic_classify() 48 if (!tcf_em_tree_match(skb, &f->ematches, NULL)) in basic_classify() 50 *res = f->res; in basic_classify() 51 r = tcf_exts_exec(skb, &f->exts, res); in basic_classify() 63 struct basic_filter *f; in basic_get() local 68 list_for_each_entry(f, &head->flist, link) in basic_get() 69 if (f->handle == handle) in basic_get() 70 l = (unsigned long) f; in basic_get() 75 static void basic_put(struct tcf_proto *tp, unsigned long f) in basic_put() argument [all …]
|
D | sch_fq.c | 116 static void fq_flow_set_detached(struct fq_flow *f) in fq_flow_set_detached() argument 118 f->next = &detached; in fq_flow_set_detached() 119 f->age = jiffies; in fq_flow_set_detached() 122 static bool fq_flow_is_detached(const struct fq_flow *f) in fq_flow_is_detached() argument 124 return f->next == &detached; in fq_flow_is_detached() 127 static void fq_flow_set_throttled(struct fq_sched_data *q, struct fq_flow *f) in fq_flow_set_throttled() argument 136 if (f->time_next_packet >= aux->time_next_packet) in fq_flow_set_throttled() 141 rb_link_node(&f->rate_node, parent, p); in fq_flow_set_throttled() 142 rb_insert_color(&f->rate_node, &q->delayed); in fq_flow_set_throttled() 146 f->next = &throttled; in fq_flow_set_throttled() [all …]
|
D | cls_flow.c | 283 struct flow_filter *f; in flow_classify() local 289 list_for_each_entry_rcu(f, &head->filters, list) { in flow_classify() 293 if (!tcf_em_tree_match(skb, &f->ematches, NULL)) in flow_classify() 296 keymask = f->keymask; in flow_classify() 300 for (n = 0; n < f->nkeys; n++) { in flow_classify() 306 if (f->mode == FLOW_MODE_HASH) in flow_classify() 307 classid = jhash2(keys, f->nkeys, f->hashrnd); in flow_classify() 310 classid = (classid & f->mask) ^ f->xor; in flow_classify() 311 classid = (classid >> f->rshift) + f->addend; in flow_classify() 314 if (f->divisor) in flow_classify() [all …]
|
D | cls_tcindex.c | 62 struct tcindex_filter_result *f = p->perfect + key; in tcindex_lookup() local 64 return tcindex_filter_is_set(f) ? f : NULL; in tcindex_lookup() 67 struct tcindex_filter *f; in tcindex_lookup() local 70 for (f = rcu_dereference_bh_rtnl(*fp); in tcindex_lookup() 71 f; in tcindex_lookup() 72 fp = &f->next, f = rcu_dereference_bh_rtnl(*fp)) in tcindex_lookup() 73 if (f->key == key) in tcindex_lookup() 74 return &f->result; in tcindex_lookup() 85 struct tcindex_filter_result *f; in tcindex_classify() local 91 f = tcindex_lookup(p, key); in tcindex_classify() [all …]
|
/net/decnet/ |
D | dn_table.c | 71 #define DN_FIB_SCAN(f, fp) \ argument 72 for( ; ((f) = *(fp)) != NULL; (fp) = &(f)->fn_next) 74 #define DN_FIB_SCAN_KEY(f, fp, key) \ argument 75 for( ; ((f) = *(fp)) != NULL && dn_key_eq((f)->fn_key, (key)); (fp) = &(f)->fn_next) 125 struct dn_fib_node *f, **fp, *next; in dn_rebuild_zone() local 129 for(f = old_ht[i]; f; f = next) { in dn_rebuild_zone() 130 next = f->fn_next; in dn_rebuild_zone() 131 for(fp = dn_chain_p(f->fn_key, dz); in dn_rebuild_zone() 132 *fp && dn_key_leq((*fp)->fn_key, f->fn_key); in dn_rebuild_zone() 135 f->fn_next = *fp; in dn_rebuild_zone() [all …]
|
/net/netfilter/ |
D | nf_conntrack_h323_asn1.c | 114 static int decode_nul(bitstr_t *bs, const struct field_t *f, char *base, int level); 115 static int decode_bool(bitstr_t *bs, const struct field_t *f, char *base, int level); 116 static int decode_oid(bitstr_t *bs, const struct field_t *f, char *base, int level); 117 static int decode_int(bitstr_t *bs, const struct field_t *f, char *base, int level); 118 static int decode_enum(bitstr_t *bs, const struct field_t *f, char *base, int level); 119 static int decode_bitstr(bitstr_t *bs, const struct field_t *f, char *base, int level); 120 static int decode_numstr(bitstr_t *bs, const struct field_t *f, char *base, int level); 121 static int decode_octstr(bitstr_t *bs, const struct field_t *f, char *base, int level); 122 static int decode_bmpstr(bitstr_t *bs, const struct field_t *f, char *base, int level); 123 static int decode_seq(bitstr_t *bs, const struct field_t *f, char *base, int level); [all …]
|
D | xt_osf.c | 69 struct xt_osf_user_finger *f; in xt_osf_add_callback() local 82 f = nla_data(osf_attrs[OSF_ATTR_FINGER]); in xt_osf_add_callback() 88 memcpy(&kf->finger, f, sizeof(struct xt_osf_user_finger)); in xt_osf_add_callback() 90 list_for_each_entry(sf, &xt_osf_fingers[!!f->df], finger_entry) { in xt_osf_add_callback() 91 if (memcmp(&sf->finger, f, sizeof(struct xt_osf_user_finger))) in xt_osf_add_callback() 106 list_add_tail_rcu(&kf->finger_entry, &xt_osf_fingers[!!f->df]); in xt_osf_add_callback() 115 struct xt_osf_user_finger *f; in xt_osf_remove_callback() local 125 f = nla_data(osf_attrs[OSF_ATTR_FINGER]); in xt_osf_remove_callback() 127 list_for_each_entry(sf, &xt_osf_fingers[!!f->df], finger_entry) { in xt_osf_remove_callback() 128 if (memcmp(&sf->finger, f, sizeof(struct xt_osf_user_finger))) in xt_osf_remove_callback() [all …]
|
/net/bridge/ |
D | br_fdb.c | 133 static void fdb_delete(struct net_bridge *br, struct net_bridge_fdb_entry *f) in fdb_delete() argument 135 if (f->is_static) in fdb_delete() 136 fdb_del_hw(br, f->addr.addr); in fdb_delete() 138 hlist_del_rcu(&f->hlist); in fdb_delete() 139 fdb_notify(br, f, RTM_DELNEIGH); in fdb_delete() 140 call_rcu(&f->rcu, fdb_rcu_free); in fdb_delete() 146 struct net_bridge_fdb_entry *f) in fdb_delete_local() argument 148 const unsigned char *addr = f->addr.addr; in fdb_delete_local() 149 u16 vid = f->vlan_id; in fdb_delete_local() 156 f->dst = op; in fdb_delete_local() [all …]
|
/net/dccp/ccids/lib/ |
D | tfrc_equation.c | 620 u32 f; in tfrc_calc_x() local 639 f = tfrc_calc_x_lookup[index][1]; in tfrc_calc_x() 644 f = tfrc_calc_x_lookup[index][0]; in tfrc_calc_x() 657 return scaled_div32(result, f); in tfrc_calc_x()
|
/net/packet/ |
D | af_packet.c | 1265 static unsigned int fanout_demux_hash(struct packet_fanout *f, in fanout_demux_hash() argument 1272 static unsigned int fanout_demux_lb(struct packet_fanout *f, in fanout_demux_lb() argument 1276 unsigned int val = atomic_inc_return(&f->rr_cur); in fanout_demux_lb() 1281 static unsigned int fanout_demux_cpu(struct packet_fanout *f, in fanout_demux_cpu() argument 1288 static unsigned int fanout_demux_rnd(struct packet_fanout *f, in fanout_demux_rnd() argument 1295 static unsigned int fanout_demux_rollover(struct packet_fanout *f, in fanout_demux_rollover() argument 1302 i = j = min_t(int, f->next[idx], num - 1); in fanout_demux_rollover() 1304 if (i != skip && packet_rcv_has_room(pkt_sk(f->arr[i]), skb)) { in fanout_demux_rollover() 1306 f->next[idx] = i; in fanout_demux_rollover() 1316 static unsigned int fanout_demux_qm(struct packet_fanout *f, in fanout_demux_qm() argument [all …]
|
/net/x25/ |
D | x25_proc.c | 138 struct x25_forward *f = list_entry(v, struct x25_forward, node); in x25_seq_forward_show() local 145 f = v; in x25_seq_forward_show() 148 f->lci, f->dev1->name, f->dev2->name); in x25_seq_forward_show()
|
/net/core/ |
D | pktgen.c | 1164 char f[32]; in pktgen_if_write() local 1165 memset(f, 0, 32); in pktgen_if_write() 1166 len = strn_len(&user_buffer[i], sizeof(f) - 1); in pktgen_if_write() 1170 if (copy_from_user(f, &user_buffer[i], len)) in pktgen_if_write() 1173 if (strcmp(f, "IPSRC_RND") == 0) in pktgen_if_write() 1176 else if (strcmp(f, "!IPSRC_RND") == 0) in pktgen_if_write() 1179 else if (strcmp(f, "TXSIZE_RND") == 0) in pktgen_if_write() 1182 else if (strcmp(f, "!TXSIZE_RND") == 0) in pktgen_if_write() 1185 else if (strcmp(f, "IPDST_RND") == 0) in pktgen_if_write() 1188 else if (strcmp(f, "!IPDST_RND") == 0) in pktgen_if_write() [all …]
|
/net/8021q/ |
D | vlan_netlink.c | 183 struct ifla_vlan_flags f; in vlan_fill_info() local 192 f.flags = vlan->flags; in vlan_fill_info() 193 f.mask = ~0; in vlan_fill_info() 194 if (nla_put(skb, IFLA_VLAN_FLAGS, sizeof(f), &f)) in vlan_fill_info()
|
/net/bluetooth/ |
D | hci_sock.c | 1063 struct hci_filter *f = &hci_pi(sk)->filter; in hci_sock_setsockopt() local 1065 uf.type_mask = f->type_mask; in hci_sock_setsockopt() 1066 uf.opcode = f->opcode; in hci_sock_setsockopt() 1067 uf.event_mask[0] = *((u32 *) f->event_mask + 0); in hci_sock_setsockopt() 1068 uf.event_mask[1] = *((u32 *) f->event_mask + 1); in hci_sock_setsockopt() 1084 struct hci_filter *f = &hci_pi(sk)->filter; in hci_sock_setsockopt() local 1086 f->type_mask = uf.type_mask; in hci_sock_setsockopt() 1087 f->opcode = uf.opcode; in hci_sock_setsockopt() 1088 *((u32 *) f->event_mask + 0) = uf.event_mask[0]; in hci_sock_setsockopt() 1089 *((u32 *) f->event_mask + 1) = uf.event_mask[1]; in hci_sock_setsockopt() [all …]
|
D | hci_core.c | 140 static int features_show(struct seq_file *f, void *ptr) in features_show() argument 142 struct hci_dev *hdev = f->private; in features_show() 147 seq_printf(f, "%2u: 0x%2.2x 0x%2.2x 0x%2.2x 0x%2.2x " in features_show() 155 seq_printf(f, "LE: 0x%2.2x 0x%2.2x 0x%2.2x 0x%2.2x " in features_show() 178 static int blacklist_show(struct seq_file *f, void *p) in blacklist_show() argument 180 struct hci_dev *hdev = f->private; in blacklist_show() 185 seq_printf(f, "%pMR (type %u)\n", &b->bdaddr, b->bdaddr_type); in blacklist_show() 203 static int whitelist_show(struct seq_file *f, void *p) in whitelist_show() argument 205 struct hci_dev *hdev = f->private; in whitelist_show() 210 seq_printf(f, "%pMR (type %u)\n", &b->bdaddr, b->bdaddr_type); in whitelist_show() [all …]
|
/net/bluetooth/bnep/ |
D | netdev.c | 151 struct bnep_proto_filter *f = s->proto_filter; in bnep_net_proto_filter() local 154 for (i = 0; i < BNEP_MAX_PROTO_FILTERS && f[i].end; i++) { in bnep_net_proto_filter() 155 if (proto >= f[i].start && proto <= f[i].end) in bnep_net_proto_filter()
|
D | core.c | 122 struct bnep_proto_filter *f = s->proto_filter; in bnep_ctrl_set_netfilter() local 126 f[i].start = get_unaligned_be16(data++); in bnep_ctrl_set_netfilter() 127 f[i].end = get_unaligned_be16(data++); in bnep_ctrl_set_netfilter() 130 f[i].start, f[i].end); in bnep_ctrl_set_netfilter() 134 memset(f + i, 0, sizeof(*f)); in bnep_ctrl_set_netfilter()
|
/net/ipx/ |
D | ipx_route.c | 281 struct ipx_route_definition f; in ipxrtr_ioctl() local 282 f.ipx_network = st->sipx_network; in ipxrtr_ioctl() 283 f.ipx_router_network = sg->sipx_network; in ipxrtr_ioctl() 284 memcpy(f.ipx_router_node, sg->sipx_node, IPX_NODE_LEN); in ipxrtr_ioctl() 285 rc = ipxrtr_create(&f); in ipxrtr_ioctl()
|
D | af_ipx.c | 1126 struct ipx_interface_definition f; in ipxitf_ioctl() local 1135 f.ipx_network = sipx->sipx_network; in ipxitf_ioctl() 1136 memcpy(f.ipx_device, ifr.ifr_name, in ipxitf_ioctl() 1137 sizeof(f.ipx_device)); in ipxitf_ioctl() 1138 memcpy(f.ipx_node, sipx->sipx_node, IPX_NODE_LEN); in ipxitf_ioctl() 1139 f.ipx_dlink_type = sipx->sipx_type; in ipxitf_ioctl() 1140 f.ipx_special = sipx->sipx_special; in ipxitf_ioctl() 1143 rc = ipxitf_delete(&f); in ipxitf_ioctl() 1145 rc = ipxitf_create(&f); in ipxitf_ioctl()
|
/net/ieee802154/ |
D | netlink.c | 48 unsigned long f; in ieee802154_nl_create() local 53 spin_lock_irqsave(&ieee802154_seq_lock, f); in ieee802154_nl_create() 56 spin_unlock_irqrestore(&ieee802154_seq_lock, f); in ieee802154_nl_create()
|
/net/netlink/ |
D | genetlink.c | 102 struct genl_family *f; in genl_family_find_byid() local 104 list_for_each_entry(f, genl_family_chain(id), family_list) in genl_family_find_byid() 105 if (f->id == id) in genl_family_find_byid() 106 return f; in genl_family_find_byid() 113 struct genl_family *f; in genl_family_find_byname() local 117 list_for_each_entry(f, genl_family_chain(i), family_list) in genl_family_find_byname() 118 if (strcmp(f->name, name) == 0) in genl_family_find_byname() 119 return f; in genl_family_find_byname()
|