| /net/sched/ |
| A D | cls_matchall.c | 55 kfree(head); in __mall_destroy() 81 &head->flags, &head->in_hw_count, true); in mall_destroy_hw_filter() 112 skip_sw, &head->flags, &head->in_hw_count, true); in mall_replace_hw_filter() 132 if (!head) in mall_destroy() 150 if (head && head->handle == handle) in mall_get() 151 return head; in mall_get() 178 if (head) in mall_change() 233 *arg = head; in mall_change() 267 if (!head || head->deleting) in mall_walk() 336 if (!head) in mall_dump() [all …]
|
| A D | cls_cgroup.c | 33 if (unlikely(!head)) in cls_cgroup_classify() 62 tcf_exts_destroy(&head->exts); in __cls_cgroup_destroy() 64 tcf_exts_put_net(&head->exts); in __cls_cgroup_destroy() 65 kfree(head); in __cls_cgroup_destroy() 74 __cls_cgroup_destroy(head); in cls_cgroup_destroy_work() 92 if (!head && !handle) in cls_cgroup_change() 95 if (head && handle != head->handle) in cls_cgroup_change() 123 if (head) { in cls_cgroup_change() 140 if (head) { in cls_cgroup_destroy() 144 __cls_cgroup_destroy(head); in cls_cgroup_destroy() [all …]
|
| A D | cls_fw.c | 60 if (head != NULL) { in fw_classify() 61 id &= head->mask; in fw_classify() 96 if (head == NULL) in fw_get() 139 if (head == NULL) in fw_destroy() 153 kfree_rcu(head, rcu); in fw_destroy() 226 if (mask != head->mask) in fw_set_parms() 306 if (!head) { in fw_change() 311 head = kzalloc(sizeof(*head), GFP_KERNEL); in fw_change() 312 if (!head) in fw_change() 314 head->mask = mask; in fw_change() [all …]
|
| A D | cls_route.c | 72 memset(head->fastmap, 0, sizeof(head->fastmap)); in route4_reset_fastmap() 84 head->fastmap[h].id = id; in route4_set_fastmap() 85 head->fastmap[h].iif = iif; in route4_set_fastmap() 86 head->fastmap[h].filter = f; in route4_set_fastmap() 245 struct route4_head *head; in route4_init() local 248 if (head == NULL) in route4_init() 283 if (head == NULL) in route4_destroy() 310 kfree_rcu(head, rcu); in route4_destroy() 324 if (!head || !f) in route4_delete() 341 route4_reset_fastmap(head); in route4_delete() [all …]
|
| A D | cls_basic.c | 78 struct basic_head *head; in basic_init() local 80 head = kzalloc(sizeof(*head), GFP_KERNEL); in basic_init() 81 if (head == NULL) in basic_init() 83 INIT_LIST_HEAD(&head->flist); in basic_init() 84 idr_init(&head->handle_idr); in basic_init() 85 rcu_assign_pointer(tp->root, head); in basic_init() 117 idr_remove(&head->handle_idr, f->handle); in basic_destroy() 123 idr_destroy(&head->handle_idr); in basic_destroy() 124 kfree_rcu(head, rcu); in basic_destroy() 135 idr_remove(&head->handle_idr, f->handle); in basic_delete() [all …]
|
| A D | sch_choke.c | 66 unsigned int head; member 96 q->head = (q->head + 1) & q->tab_mask; in choke_zap_head_holes() 97 if (q->head == q->tail) in choke_zap_head_holes() 107 if (q->head == q->tail) in choke_zap_tail_holes() 121 if (idx == q->head) in choke_drop_by_idx() 294 skb = q->tab[q->head]; in choke_dequeue() 311 q->head = (q->head + 1) & q->tab_mask; in choke_reset() 319 q->head = q->tail = 0; in choke_reset() 386 q->head = (q->head + 1) & q->tab_mask; in choke_change() 399 q->head = 0; in choke_change() [all …]
|
| A D | cls_bpf.c | 245 struct cls_bpf_head *head; in cls_bpf_init() local 247 head = kzalloc(sizeof(*head), GFP_KERNEL); in cls_bpf_init() 248 if (head == NULL) in cls_bpf_init() 251 INIT_LIST_HEAD_RCU(&head->plist); in cls_bpf_init() 252 idr_init(&head->handle_idr); in cls_bpf_init() 253 rcu_assign_pointer(tp->root, head); in cls_bpf_init() 293 idr_remove(&head->handle_idr, prog->handle); in __cls_bpf_delete() 309 *last = list_empty(&head->plist); in cls_bpf_delete() 322 idr_destroy(&head->handle_idr); in cls_bpf_destroy() 323 kfree_rcu(head, rcu); in cls_bpf_destroy() [all …]
|
| A D | sch_hhf.c | 121 struct sk_buff *head; member 187 if (list_empty(head)) in seek_list() 342 bucket->head = skb; in bucket_add() 356 if (!bucket->head) in hhf_drop() 359 if (bucket->head) { in hhf_drop() 423 struct list_head *head; in hhf_dequeue() local 426 head = &q->new_buckets; in hhf_dequeue() 427 if (list_empty(head)) { in hhf_dequeue() 429 if (list_empty(head)) in hhf_dequeue() 443 if (bucket->head) { in hhf_dequeue() [all …]
|
| A D | cls_flow.c | 307 list_for_each_entry_rcu(f, &head->filters, list) { in flow_classify() 549 list_add_tail_rcu(&fnew->list, &head->filters); in flow_change() 578 *last = list_empty(&head->filters); in flow_delete() 584 struct flow_head *head; in flow_init() local 586 head = kzalloc(sizeof(*head), GFP_KERNEL); in flow_init() 587 if (head == NULL) in flow_init() 589 INIT_LIST_HEAD(&head->filters); in flow_init() 590 rcu_assign_pointer(tp->root, head); in flow_init() 607 kfree_rcu(head, rcu); in flow_destroy() 615 list_for_each_entry(f, &head->filters, list) in flow_get() [all …]
|
| /net/netlabel/ |
| A D | netlabel_addrlist.h | 83 for (iter = __af4list_valid((head)->next, head); \ 84 &iter->list != (head); \ 88 for (iter = __af4list_valid_rcu((head)->next, head); \ 89 &iter->list != (head); \ 93 for (iter = __af4list_valid((head)->next, head), \ 95 &iter->list != (head); \ 99 struct list_head *head); 107 struct list_head *head); 150 for (iter = __af6list_valid((head)->next, head); \ 155 for (iter = __af6list_valid_rcu((head)->next, head); \ [all …]
|
| A D | netlabel_addrlist.c | 47 struct list_head *head) in netlbl_af4list_search() argument 51 list_for_each_entry_rcu(iter, head, list) in netlbl_af4list_search() 72 struct list_head *head) in netlbl_af4list_search_exact() argument 76 list_for_each_entry_rcu(iter, head, list) in netlbl_af4list_search_exact() 97 struct list_head *head) in netlbl_af6list_search() argument 101 list_for_each_entry_rcu(iter, head, list) in netlbl_af6list_search() 123 struct list_head *head) in netlbl_af6list_search_exact() argument 169 list_add_tail_rcu(&entry->list, head); in netlbl_af4list_add() 207 list_add_tail_rcu(&entry->list, head); in netlbl_af6list_add() 240 struct list_head *head) in netlbl_af4list_remove() argument [all …]
|
| /net/ipv4/ |
| A D | inet_fragment.c | 469 if (head != skb) { in inet_frag_reasm_prepare() 472 head = skb; in inet_frag_reasm_prepare() 494 head = skb; in inet_frag_reasm_prepare() 545 head->sk = sk; in inet_frag_reasm_prepare() 557 struct sock *sk = is_skb_wmem(head) ? head->sk : NULL; in inet_frag_reasm_finish() 564 skb_push(head, head->data - skb_network_header(head)); in inet_frag_reasm_finish() 586 head->csum = csum_add(head->csum, fp->csum); in inet_frag_reasm_finish() 619 head->prev = NULL; in inet_frag_reasm_finish() 633 if (!head) in inet_frag_pull_head() 641 memset(&head->rbnode, 0, sizeof(head->rbnode)); in inet_frag_pull_head() [all …]
|
| A D | inet_hashtables.c | 190 spin_lock(&head->lock); in __inet_put_port() 206 spin_unlock(&head->lock); in __inet_put_port() 230 head = &table->bhash[bhash]; in __inet_inherit_port() 233 spin_lock(&head->lock); in __inet_inherit_port() 239 spin_unlock(&head->lock); in __inet_inherit_port() 283 spin_unlock(&head->lock); in __inet_inherit_port() 291 spin_unlock(&head->lock); in __inet_inherit_port() 682 list = &head->chain; in inet_ehash_insert() 950 spin_lock_bh(&head->lock); in __inet_bhash2_update_saddr() 1160 spin_unlock(&head->lock); in __inet_hash_connect() [all …]
|
| /net/sunrpc/xprtrdma/ |
| A D | svc_rdma_rw.c | 754 if (!head->rc_pageoff) in svc_rdma_build_read_segment() 755 head->rc_page_count++; in svc_rdma_build_read_segment() 763 head->rc_curpage++; in svc_rdma_build_read_segment() 764 head->rc_pageoff = 0; in svc_rdma_build_read_segment() 847 if (!head->rc_pageoff) in svc_rdma_copy_inline_range() 848 head->rc_page_count++; in svc_rdma_copy_inline_range() 856 head->rc_curpage++; in svc_rdma_copy_inline_range() 857 head->rc_pageoff = 0; in svc_rdma_copy_inline_range() 1124 head->rc_pageoff = 0; in svc_rdma_process_read_list() 1125 head->rc_curpage = 0; in svc_rdma_process_read_list() [all …]
|
| /net/atm/ |
| A D | addr.c | 52 struct list_head *head; in atm_reset_addr() local 56 head = &dev->lecs; in atm_reset_addr() 58 head = &dev->local; in atm_reset_addr() 64 if (head == &dev->local) in atm_reset_addr() 73 struct list_head *head; in atm_add_addr() local 81 head = &dev->lecs; in atm_add_addr() 83 head = &dev->local; in atm_add_addr() 116 head = &dev->lecs; in atm_del_addr() 118 head = &dev->local; in atm_del_addr() 144 head = &dev->lecs; in atm_get_addr() [all …]
|
| /net/sctp/ |
| A D | output.c | 422 if (SCTP_OUTPUT_CB(head)->last == head) in sctp_packet_gso_append() 430 head->len += skb->len; in sctp_packet_gso_append() 449 SCTP_OUTPUT_CB(head)->last = head; in sctp_packet_pack() 451 nskb = head; in sctp_packet_pack() 556 head->csum_not_inet = 1; in sctp_packet_pack() 557 head->csum_start = skb_transport_header(head) - head->head; in sctp_packet_pack() 575 struct sk_buff *head; in sctp_packet_transmit() local 600 if (!head) in sctp_packet_transmit() 603 skb_set_owner_w(head, sk); in sctp_packet_transmit() 616 kfree_skb(head); in sctp_packet_transmit() [all …]
|
| /net/sunrpc/ |
| A D | xdr.c | 150 const struct kvec *head = xdr->head; in xdr_buf_to_bvec() local 203 struct kvec *head = xdr->head; in xdr_inline_pages() local 533 struct kvec *head = buf->head; in xdr_buf_try_expand() local 608 const struct kvec *head = buf->head; in xdr_buf_head_copy_right() local 682 const struct kvec *head = buf->head; in xdr_buf_head_shift_right() local 708 const struct kvec *head = buf->head; in xdr_buf_tail_copy_left() local 753 const struct kvec *head = buf->head; in xdr_buf_pages_copy_left() local 804 const struct kvec *head = buf->head; in xdr_buf_head_shift_left() local 839 struct kvec *head = buf->head; in xdr_shrink_bufhead() local 1164 struct kvec *head = buf->head; in xdr_truncate_encode() local [all …]
|
| A D | xprtmultipath.c | 267 list_for_each_entry_rcu(pos, head, xprt_switch) { in xprt_switch_find_first_entry() 279 list_for_each_entry_rcu(pos, head, xprt_switch) { in xprt_switch_find_first_entry_offline() 304 list_for_each_entry_rcu(pos, head, xprt_switch) { in _xprt_switch_find_current_entry() 328 struct list_head *head; in _xprt_iter_current_entry() local 332 head = &xps->xps_xprt_list; in _xprt_iter_current_entry() 334 return first_entry(head); in _xprt_iter_current_entry() 335 return current_entry(head, xpi->xpi_cursor); in _xprt_iter_current_entry() 364 struct list_head *head; in __rpc_xprt_switch_has_addr() local 370 head = &xps->xps_xprt_list; in __rpc_xprt_switch_has_addr() 448 return xprt_switch_find_first_entry(head); in __xprt_switch_find_next_entry_roundrobin() [all …]
|
| /net/netfilter/ |
| A D | nf_flow_table_xdp.c | 11 struct list_head head; member 19 struct list_head head; member 40 ft_elem = list_first_or_null_rcu(&iter->head, in nf_flowtable_by_dev() 42 head); in nf_flowtable_by_dev() 78 INIT_LIST_HEAD(&elem->head); in nf_flowtable_by_dev_insert() 81 list_add_tail_rcu(&ft_elem->head, &elem->head); in nf_flowtable_by_dev_insert() 112 list_for_each_entry_safe(ft_elem, ft_next, &elem->head, head) { in nf_flowtable_by_dev_remove() 114 list_del_rcu(&ft_elem->head); in nf_flowtable_by_dev_remove() 119 if (list_empty(&elem->head)) in nf_flowtable_by_dev_remove()
|
| /net/strparser/ |
| A D | strparser.c | 95 struct sk_buff *head, *skb; in __strp_recv() local 104 head = strp->skb_head; in __strp_recv() 105 if (head) { in __strp_recv() 161 head = skb; in __strp_recv() 180 head = strp->skb_head; in __strp_recv() 181 if (!head) { in __strp_recv() 182 head = skb; in __strp_recv() 183 strp->skb_head = head; in __strp_recv() 186 stm = _strp_msg(head); in __strp_recv() 202 stm = _strp_msg(head); in __strp_recv() [all …]
|
| /net/batman-adv/ |
| A D | hash.h | 83 struct hlist_head *head; in batadv_hash_add() local 91 head = &hash->table[index]; in batadv_hash_add() 96 hlist_for_each(node, head) { in batadv_hash_add() 105 hlist_add_head_rcu(data_node, head); in batadv_hash_add() 136 struct hlist_head *head; in batadv_hash_remove() local 140 head = &hash->table[index]; in batadv_hash_remove() 143 hlist_for_each(node, head) { in batadv_hash_remove()
|
| /net/rxrpc/ |
| A D | call_accept.c | 68 head = b->peer_backlog_head; in rxrpc_service_prealloc_one() 70 if (CIRC_CNT(head, tail, size) < max) { in rxrpc_service_prealloc_one() 76 b->peer_backlog[head] = peer; in rxrpc_service_prealloc_one() 78 (head + 1) & (size - 1)); in rxrpc_service_prealloc_one() 81 head = b->conn_backlog_head; in rxrpc_service_prealloc_one() 83 if (CIRC_CNT(head, tail, size) < max) { in rxrpc_service_prealloc_one() 89 b->conn_backlog[head] = conn; in rxrpc_service_prealloc_one() 91 (head + 1) & (size - 1)); in rxrpc_service_prealloc_one() 195 head = b->peer_backlog_head; in rxrpc_discard_prealloc() 204 head = b->conn_backlog_head; in rxrpc_discard_prealloc() [all …]
|
| /net/kcm/ |
| A D | kcmsock.c | 619 skb = head; in kcm_write_msgs() 679 if (skb == head) { in kcm_write_msgs() 695 kfree_skb(head); in kcm_write_msgs() 699 if (!head) { in kcm_write_msgs() 787 while (!head) { in kcm_sendmsg() 796 skb = head; in kcm_sendmsg() 851 if (head != skb) in kcm_sendmsg() 897 if (head) { in kcm_sendmsg() 921 if (head) { in kcm_sendmsg() 943 kfree_skb(head); in kcm_sendmsg() [all …]
|
| /net/tipc/ |
| A D | msg.c | 126 struct sk_buff *head = *headbuf; in tipc_buf_append() local 143 if (unlikely(head)) in tipc_buf_append() 151 head = *headbuf = frag; in tipc_buf_append() 156 if (!head) in tipc_buf_append() 168 if (!skb_has_frag_list(head)) in tipc_buf_append() 173 head->data_len += frag->len; in tipc_buf_append() 174 head->len += frag->len; in tipc_buf_append() 182 *buf = head; in tipc_buf_append() 768 struct sk_buff *head = NULL; in tipc_msg_reassemble() local 790 if (!head) in tipc_msg_reassemble() [all …]
|
| /net/sunrpc/auth_gss/ |
| A D | gss_krb5_wrap.c | 57 char head[LOCAL_BUF_LEN]; in rotate_buf_a_little() local 63 read_bytes_from_xdr_buf(buf, 0, head, shift); in rotate_buf_a_little() 69 write_bytes_to_xdr_buf(buf, buf->len - shift, head, shift); in rotate_buf_a_little() 111 ptr = buf->head[0].iov_base + offset; in gss_krb5_wrap_v2() 158 ptr = buf->head[0].iov_base + offset; in gss_krb5_unwrap_v2() 223 movelen = min_t(unsigned int, buf->head[0].iov_len, len); in gss_krb5_unwrap_v2() 226 buf->head[0].iov_len); in gss_krb5_unwrap_v2() 228 buf->head[0].iov_len -= GSS_KRB5_TOK_HDR_LEN + headskip; in gss_krb5_unwrap_v2()
|