/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 189 for (f = rcu_dereference_bh(s->ht[h2]); f; in rsvp_classify() 190 f = rcu_dereference_bh(f->next)) { in rsvp_classify() 191 if (src[RSVP_DST_LEN-1] == f->src[RSVP_DST_LEN - 1] && in rsvp_classify() 192 !(f->spi.mask & (*(u32 *)(xprt + f->spi.offset) ^ f->spi.key)) in rsvp_classify() 195 src[0] == f->src[0] && in rsvp_classify() 196 src[1] == f->src[1] && in rsvp_classify() 197 src[2] == f->src[2] in rsvp_classify() 200 *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 65 list_for_each_entry(f, &head->flist, link) { in basic_get() 66 if (f->handle == handle) { in basic_get() 67 l = (unsigned long) f; in basic_get() 89 struct basic_filter *f = container_of(head, struct basic_filter, rcu); in basic_delete_filter() local [all …]
|
D | sch_fq.c | 120 static void fq_flow_set_detached(struct fq_flow *f) in fq_flow_set_detached() argument 122 f->next = &detached; in fq_flow_set_detached() 123 f->age = jiffies; in fq_flow_set_detached() 126 static bool fq_flow_is_detached(const struct fq_flow *f) in fq_flow_is_detached() argument 128 return f->next == &detached; in fq_flow_is_detached() 131 static void fq_flow_set_throttled(struct fq_sched_data *q, struct fq_flow *f) in fq_flow_set_throttled() argument 140 if (f->time_next_packet >= aux->time_next_packet) in fq_flow_set_throttled() 145 rb_link_node(&f->rate_node, parent, p); in fq_flow_set_throttled() 146 rb_insert_color(&f->rate_node, &q->delayed); in fq_flow_set_throttled() 150 f->next = &throttled; in fq_flow_set_throttled() [all …]
|
D | cls_flow.c | 303 struct flow_filter *f; in flow_classify() local 309 list_for_each_entry_rcu(f, &head->filters, list) { in flow_classify() 313 if (!tcf_em_tree_match(skb, &f->ematches, NULL)) in flow_classify() 316 keymask = f->keymask; in flow_classify() 320 for (n = 0; n < f->nkeys; n++) { in flow_classify() 326 if (f->mode == FLOW_MODE_HASH) in flow_classify() 327 classid = jhash2(keys, f->nkeys, f->hashrnd); in flow_classify() 330 classid = (classid & f->mask) ^ f->xor; in flow_classify() 331 classid = (classid >> f->rshift) + f->addend; in flow_classify() 334 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 …]
|
D | cls_flower.c | 136 struct cls_fl_filter *f; in fl_classify() local 177 f = rhashtable_lookup_fast(&head->ht, in fl_classify() 180 if (f && !tc_skip_sw(f->flags)) { in fl_classify() 181 *res = f->res; in fl_classify() 182 return tcf_exts_exec(skb, &f->exts, res); in fl_classify() 203 struct cls_fl_filter *f = container_of(head, struct cls_fl_filter, rcu); in fl_destroy_filter() local 205 tcf_exts_destroy(&f->exts); in fl_destroy_filter() 206 kfree(f); in fl_destroy_filter() 261 static void fl_hw_update_stats(struct tcf_proto *tp, struct cls_fl_filter *f) in fl_hw_update_stats() argument 271 offload.cookie = (unsigned long)f; in fl_hw_update_stats() [all …]
|
/net/decnet/ |
D | dn_table.c | 72 #define DN_FIB_SCAN(f, fp) \ argument 73 for( ; ((f) = *(fp)) != NULL; (fp) = &(f)->fn_next) 75 #define DN_FIB_SCAN_KEY(f, fp, key) \ argument 76 for( ; ((f) = *(fp)) != NULL && dn_key_eq((f)->fn_key, (key)); (fp) = &(f)->fn_next) 126 struct dn_fib_node *f, **fp, *next; in dn_rebuild_zone() local 130 for(f = old_ht[i]; f; f = next) { in dn_rebuild_zone() 131 next = f->fn_next; in dn_rebuild_zone() 132 for(fp = dn_chain_p(f->fn_key, dz); in dn_rebuild_zone() 133 *fp && dn_key_leq((*fp)->fn_key, f->fn_key); in dn_rebuild_zone() 136 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() 116 struct xt_osf_user_finger *f; in xt_osf_remove_callback() local 126 f = nla_data(osf_attrs[OSF_ATTR_FINGER]); in xt_osf_remove_callback() 128 list_for_each_entry(sf, &xt_osf_fingers[!!f->df], finger_entry) { in xt_osf_remove_callback() 129 if (memcmp(&sf->finger, f, sizeof(struct xt_osf_user_finger))) in xt_osf_remove_callback() [all …]
|
/net/bridge/ |
D | br_fdb.c | 134 static void fdb_del_external_learn(struct net_bridge_fdb_entry *f) in fdb_del_external_learn() argument 138 .orig_dev = f->dst->dev, in fdb_del_external_learn() 142 .vid = f->vlan_id, in fdb_del_external_learn() 145 ether_addr_copy(fdb.addr, f->addr.addr); in fdb_del_external_learn() 146 switchdev_port_obj_del(f->dst->dev, &fdb.obj); in fdb_del_external_learn() 149 static void fdb_delete(struct net_bridge *br, struct net_bridge_fdb_entry *f) in fdb_delete() argument 151 if (f->is_static) in fdb_delete() 152 fdb_del_hw_addr(br, f->addr.addr); in fdb_delete() 154 if (f->added_by_external_learn) in fdb_delete() 155 fdb_del_external_learn(f); in fdb_delete() [all …]
|
/net/sunrpc/xprtrdma/ |
D | frwr_ops.c | 101 struct rpcrdma_frmr *f = &r->frmr; in frwr_op_init_mr() local 104 f->fr_mr = ib_alloc_mr(ia->ri_pd, IB_MR_TYPE_MEM_REG, depth); in frwr_op_init_mr() 105 if (IS_ERR(f->fr_mr)) in frwr_op_init_mr() 113 init_completion(&f->fr_linv_done); in frwr_op_init_mr() 117 rc = PTR_ERR(f->fr_mr); in frwr_op_init_mr() 126 ib_dereg_mr(f->fr_mr); in frwr_op_init_mr() 150 struct rpcrdma_frmr *f = &r->frmr; in __frwr_reset_mr() local 153 rc = ib_dereg_mr(f->fr_mr); in __frwr_reset_mr() 160 f->fr_mr = ib_alloc_mr(ia->ri_pd, IB_MR_TYPE_MEM_REG, in __frwr_reset_mr() 162 if (IS_ERR(f->fr_mr)) { in __frwr_reset_mr() [all …]
|
/net/bluetooth/ |
D | hci_debugfs.c | 80 static int __name ## _show(struct seq_file *f, void *ptr) \ 82 struct hci_dev *hdev = f->private; \ 85 seq_printf(f, "%s\n", hdev->__field ? : ""); \ 103 static int features_show(struct seq_file *f, void *ptr) in features_show() argument 105 struct hci_dev *hdev = f->private; in features_show() 110 seq_printf(f, "%2u: 0x%2.2x 0x%2.2x 0x%2.2x 0x%2.2x " in features_show() 118 seq_printf(f, "LE: 0x%2.2x 0x%2.2x 0x%2.2x 0x%2.2x " in features_show() 141 static int device_id_show(struct seq_file *f, void *ptr) in device_id_show() argument 143 struct hci_dev *hdev = f->private; in device_id_show() 146 seq_printf(f, "%4.4x:%4.4x:%4.4x:%4.4x\n", hdev->devid_source, in device_id_show() [all …]
|
/net/sunrpc/ |
D | debugfs.c | 25 tasks_show(struct seq_file *f, void *v) in tasks_show() argument 38 seq_printf(f, "%5u %04x %6d 0x%x 0x%x %8ld %ps %sv%u %s a:%ps q:%s\n", in tasks_show() 47 tasks_start(struct seq_file *f, loff_t *ppos) in tasks_start() argument 50 struct rpc_clnt_iter *iter = f->private; in tasks_start() 64 tasks_next(struct seq_file *f, void *v, loff_t *pos) in tasks_next() argument 66 struct rpc_clnt_iter *iter = f->private; in tasks_next() 81 tasks_stop(struct seq_file *f, void *v) in tasks_stop() argument 84 struct rpc_clnt_iter *iter = f->private; in tasks_stop() 191 xprt_info_show(struct seq_file *f, void *v) in xprt_info_show() argument 193 struct rpc_xprt *xprt = f->private; in xprt_info_show() [all …]
|
/net/netlink/ |
D | genetlink.c | 105 struct genl_family *f; in genl_family_find_byid() local 107 list_for_each_entry(f, genl_family_chain(id), family_list) in genl_family_find_byid() 108 if (f->id == id) in genl_family_find_byid() 109 return f; in genl_family_find_byid() 116 struct genl_family *f; in genl_family_find_byname() local 120 list_for_each_entry(f, genl_family_chain(i), family_list) in genl_family_find_byname() 121 if (strcmp(f->name, name) == 0) in genl_family_find_byname() 122 return f; in genl_family_find_byname() 1001 struct genl_family *f; in genl_bind() local 1003 list_for_each_entry(f, genl_family_chain(i), family_list) { in genl_bind() [all …]
|
/net/packet/ |
D | af_packet.c | 1346 static unsigned int fanout_demux_hash(struct packet_fanout *f, in fanout_demux_hash() argument 1353 static unsigned int fanout_demux_lb(struct packet_fanout *f, in fanout_demux_lb() argument 1357 unsigned int val = atomic_inc_return(&f->rr_cur); in fanout_demux_lb() 1362 static unsigned int fanout_demux_cpu(struct packet_fanout *f, in fanout_demux_cpu() argument 1369 static unsigned int fanout_demux_rnd(struct packet_fanout *f, in fanout_demux_rnd() argument 1376 static unsigned int fanout_demux_rollover(struct packet_fanout *f, in fanout_demux_rollover() argument 1384 po = pkt_sk(f->arr[idx]); in fanout_demux_rollover() 1396 po_next = pkt_sk(f->arr[i]); in fanout_demux_rollover() 1415 static unsigned int fanout_demux_qm(struct packet_fanout *f, in fanout_demux_qm() argument 1422 static unsigned int fanout_demux_bpf(struct packet_fanout *f, in fanout_demux_bpf() argument [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/core/ |
D | pktgen.c | 1177 char f[32]; in pktgen_if_write() local 1179 memset(f, 0, 32); in pktgen_if_write() 1180 len = strn_len(&user_buffer[i], sizeof(f) - 1); in pktgen_if_write() 1184 if (copy_from_user(f, &user_buffer[i], len)) in pktgen_if_write() 1188 if (strcmp(f, "start_xmit") == 0) { in pktgen_if_write() 1190 } else if (strcmp(f, "netif_receive") == 0) { in pktgen_if_write() 1206 } else if (strcmp(f, "queue_xmit") == 0) { in pktgen_if_write() 1212 f, "start_xmit, netif_receive\n"); in pktgen_if_write() 1215 sprintf(pg_result, "OK: xmit_mode=%s", f); in pktgen_if_write() 1219 char f[32]; in pktgen_if_write() local [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/8021q/ |
D | vlan_netlink.c | 186 struct ifla_vlan_flags f; in vlan_fill_info() local 195 f.flags = vlan->flags; in vlan_fill_info() 196 f.mask = ~0; in vlan_fill_info() 197 if (nla_put(skb, IFLA_VLAN_FLAGS, sizeof(f), &f)) in vlan_fill_info()
|
/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()
|
/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()
|
/net/ieee802154/ |
D | netlink.c | 44 unsigned long f; in ieee802154_nl_create() local 49 spin_lock_irqsave(&ieee802154_seq_lock, f); in ieee802154_nl_create() 52 spin_unlock_irqrestore(&ieee802154_seq_lock, f); in ieee802154_nl_create()
|