/net/sunrpc/ |
D | socklib.c | 90 xdr_partial_copy_from_skb(struct xdr_buf *xdr, unsigned int base, struct xdr_skb_reader *desc, xdr_… in xdr_partial_copy_from_skb() argument 98 if (base < len) { in xdr_partial_copy_from_skb() 99 len -= base; in xdr_partial_copy_from_skb() 100 ret = copy_actor(desc, (char *)xdr->head[0].iov_base + base, len); in xdr_partial_copy_from_skb() 104 base = 0; in xdr_partial_copy_from_skb() 106 base -= len; in xdr_partial_copy_from_skb() 110 if (unlikely(base >= pglen)) { in xdr_partial_copy_from_skb() 111 base -= pglen; in xdr_partial_copy_from_skb() 114 if (base || xdr->page_base) { in xdr_partial_copy_from_skb() 115 pglen -= base; in xdr_partial_copy_from_skb() [all …]
|
D | xdr.c | 228 struct page **pages, unsigned int base, unsigned int len) in xdr_inline_pages() argument 238 xdr->page_base = base; in xdr_inline_pages() 474 static void xdr_buf_iov_zero(const struct kvec *iov, unsigned int base, in xdr_buf_iov_zero() argument 477 if (base >= iov->iov_len) in xdr_buf_iov_zero() 479 if (len > iov->iov_len - base) in xdr_buf_iov_zero() 480 len = iov->iov_len - base; in xdr_buf_iov_zero() 481 memset(iov->iov_base + base, 0, len); in xdr_buf_iov_zero() 585 unsigned int base, unsigned int len, in xdr_buf_tail_copy_right() argument 589 unsigned int to = base + shift; in xdr_buf_tail_copy_right() 595 memmove(tail->iov_base + to, tail->iov_base + base, len); in xdr_buf_tail_copy_right() [all …]
|
/net/sctp/ |
D | endpointola.c | 65 ep->base.type = SCTP_EP_TYPE_SOCKET; in sctp_endpoint_init() 68 refcount_set(&ep->base.refcnt, 1); in sctp_endpoint_init() 69 ep->base.dead = false; in sctp_endpoint_init() 72 sctp_inq_init(&ep->base.inqueue); in sctp_endpoint_init() 75 sctp_inq_set_th_handler(&ep->base.inqueue, sctp_endpoint_bh_rcv); in sctp_endpoint_init() 78 sctp_bind_addr_init(&ep->base.bind_addr, 0); in sctp_endpoint_init() 112 ep->base.sk = sk; in sctp_endpoint_init() 113 ep->base.net = sock_net(sk); in sctp_endpoint_init() 114 sock_hold(ep->base.sk); in sctp_endpoint_init() 154 struct sock *sk = ep->base.sk; in sctp_endpoint_add_asoc() [all …]
|
D | associola.c | 66 asoc->base.sk = (struct sock *)sk; in sctp_association_init() 67 asoc->base.net = sock_net(sk); in sctp_association_init() 70 sock_hold(asoc->base.sk); in sctp_association_init() 73 asoc->base.type = SCTP_EP_TYPE_ASSOCIATION; in sctp_association_init() 76 refcount_set(&asoc->base.refcnt, 1); in sctp_association_init() 79 sctp_bind_addr_init(&asoc->base.bind_addr, ep->base.bind_addr.port); in sctp_association_init() 178 asoc->c.my_port = ep->base.bind_addr.port; in sctp_association_init() 223 sctp_inq_init(&asoc->base.inqueue); in sctp_association_init() 224 sctp_inq_set_th_handler(&asoc->base.inqueue, sctp_assoc_bh_rcv); in sctp_association_init() 242 if (asoc->base.sk->sk_family == PF_INET6) in sctp_association_init() [all …]
|
D | input.c | 171 rcvr = asoc ? &asoc->base : &ep->base; in sctp_rcv() 494 sk = asoc->base.sk; in sctp_err_lookup() 552 struct sock *sk = asoc->base.sk; in sctp_v4_err_handle() 735 struct sock *sk = ep->base.sk; in __sctp_hash_endpoint() 740 ep->hashent = sctp_ep_hashfn(net, ep->base.bind_addr.port); in __sctp_hash_endpoint() 752 list_for_each(list, &ep->base.bind_addr.address_list) in __sctp_hash_endpoint() 756 struct sock *sk2 = ep2->base.sk; in __sctp_hash_endpoint() 803 struct sock *sk = ep->base.sk; in __sctp_unhash_endpoint() 806 ep->hashent = sctp_ep_hashfn(sock_net(sk), ep->base.bind_addr.port); in __sctp_unhash_endpoint() 864 sk = ep->base.sk; in __sctp_rcv_lookup_endpoint() [all …]
|
D | ulpqueue.c | 165 struct sctp_sock *sp = sctp_sk(ulpq->asoc->base.sk); in sctp_ulpq_set_pd() 176 return sctp_clear_pd(ulpq->asoc->base.sk, ulpq->asoc); in sctp_ulpq_clear_pd() 181 struct sock *sk = ulpq->asoc->base.sk; in sctp_ulpq_tail_event() 476 if (!sctp_sk(asoc->base.sk)->frag_interleave && in sctp_ulpq_retrieve_reassembled() 477 atomic_read(&sctp_sk(asoc->base.sk)->pd_mode)) in sctp_ulpq_retrieve_reassembled() 481 pd_point = sctp_sk(asoc->base.sk)->pd_point; in sctp_ulpq_retrieve_reassembled() 483 retval = sctp_make_reassembled_event(asoc->base.net, in sctp_ulpq_retrieve_reassembled() 493 retval = sctp_make_reassembled_event(ulpq->asoc->base.net, in sctp_ulpq_retrieve_reassembled() 559 retval = sctp_make_reassembled_event(ulpq->asoc->base.net, &ulpq->reasm, in sctp_ulpq_retrieve_partial() 660 retval = sctp_make_reassembled_event(ulpq->asoc->base.net, &ulpq->reasm, in sctp_ulpq_retrieve_first() [all …]
|
D | diag.c | 34 laddr = list_entry(asoc->base.bind_addr.address_list.next, in inet_diag_msg_sctpasoc_fill() 40 r->id.idiag_sport = htons(asoc->base.bind_addr.port); in inet_diag_msg_sctpasoc_fill() 197 addr_list = asoc ? &asoc->base.bind_addr.address_list in inet_sctp_diag_fill() 198 : &ep->base.bind_addr.address_list; in inet_sctp_diag_fill() 232 list_for_each_entry_rcu(laddr, &asoc->base.bind_addr.address_list, in inet_assoc_attr_size() 249 struct sock *sk = ep->base.sk; in sctp_sock_dump_one() 289 struct sock *sk = ep->base.sk; in sctp_sock_dump() 303 if (r->id.idiag_sport != htons(assoc->base.bind_addr.port) && in sctp_sock_dump() 344 struct sock *sk = ep->base.sk; in sctp_sock_filter() 360 struct sock *sk = ep->base.sk; in sctp_ep_dump()
|
/net/netfilter/ |
D | nf_conntrack_h323_asn1.c | 110 static int decode_nul(struct bitstr *bs, const struct field_t *f, char *base, int level); 111 static int decode_bool(struct bitstr *bs, const struct field_t *f, char *base, int level); 112 static int decode_oid(struct bitstr *bs, const struct field_t *f, char *base, int level); 113 static int decode_int(struct bitstr *bs, const struct field_t *f, char *base, int level); 114 static int decode_enum(struct bitstr *bs, const struct field_t *f, char *base, int level); 115 static int decode_bitstr(struct bitstr *bs, const struct field_t *f, char *base, int level); 116 static int decode_numstr(struct bitstr *bs, const struct field_t *f, char *base, int level); 117 static int decode_octstr(struct bitstr *bs, const struct field_t *f, char *base, int level); 118 static int decode_bmpstr(struct bitstr *bs, const struct field_t *f, char *base, int level); 119 static int decode_seq(struct bitstr *bs, const struct field_t *f, char *base, int level); [all …]
|
D | nft_payload.c | 171 switch (priv->base) { in nft_payload_eval() 228 priv->base = ntohl(nla_get_be32(tb[NFTA_PAYLOAD_BASE])); in nft_payload_init() 243 nla_put_be32(skb, NFTA_PAYLOAD_BASE, htonl(priv->base)) || in nft_payload_dump() 265 if (priv->base != payload->base || in nft_payload_reduce() 558 switch (priv->base) { in nft_payload_offload() 607 switch (priv->base) { in nft_payload_inner_eval() 651 u32 base; in nft_payload_inner_init() local 657 base = ntohl(nla_get_be32(tb[NFTA_PAYLOAD_BASE])); in nft_payload_inner_init() 658 switch (base) { in nft_payload_inner_init() 668 priv->base = base; in nft_payload_inner_init() [all …]
|
/net/ipv4/ |
D | inetpeer.c | 92 struct inet_peer_base *base, in lookup() argument 102 pp = &base->rb_root.rb_node; in lookup() 121 } else if (unlikely(read_seqretry(&base->lock, seq))) { in lookup() 140 static void inet_peer_gc(struct inet_peer_base *base, in inet_peer_gc() argument 153 if (base->total >= peer_threshold) in inet_peer_gc() 157 base->total / peer_threshold * HZ; in inet_peer_gc() 172 rb_erase(&p->rb_node, &base->rb_root); in inet_peer_gc() 173 base->total--; in inet_peer_gc() 179 struct inet_peer *inet_getpeer(struct inet_peer_base *base, in inet_getpeer() argument 192 seq = read_seqbegin(&base->lock); in inet_getpeer() [all …]
|
/net/rxrpc/ |
D | peer_event.c | 232 time64_t base, in rxrpc_peer_keepalive_dispatch() argument 256 slot = keepalive_at - base; in rxrpc_peer_keepalive_dispatch() 260 if (keepalive_at <= base || in rxrpc_peer_keepalive_dispatch() 261 keepalive_at > base + RXRPC_KEEPALIVE_TIME) { in rxrpc_peer_keepalive_dispatch() 293 time64_t base, now, delay; in rxrpc_peer_keepalive_worker() local 298 base = rxnet->peer_keepalive_base; in rxrpc_peer_keepalive_worker() 300 _enter("%lld,%u", base - now, cursor); in rxrpc_peer_keepalive_worker() 316 while (base <= now && (s8)(cursor - stop) < 0) { in rxrpc_peer_keepalive_worker() 319 base++; in rxrpc_peer_keepalive_worker() 323 base = now; in rxrpc_peer_keepalive_worker() [all …]
|
/net/ethtool/ |
D | linkmodes.c | 10 struct ethnl_req_info base; member 14 struct ethnl_reply_data base; member 21 container_of(__reply_base, struct linkmodes_reply_data, base) 36 data->lsettings = &data->ksettings.base; in linkmodes_prepare_data() 65 const struct ethtool_link_settings *lsettings = &ksettings->base; in linkmodes_reply_size() 106 const struct ethtool_link_settings *lsettings = &ksettings->base; in linkmodes_fill_reply() 189 (!req_speed || info->speed == ksettings->base.speed) && in ethnl_auto_linkmodes() 191 (!req_duplex || info->duplex == ksettings->base.duplex)) in ethnl_auto_linkmodes() 240 struct ethtool_link_settings *lsettings = &ksettings->base; in ethnl_update_linkmodes()
|
D | linkinfo.c | 7 struct ethnl_req_info base; member 11 struct ethnl_reply_data base; member 17 container_of(__reply_base, struct linkinfo_reply_data, base) 32 data->lsettings = &data->ksettings.base; in linkinfo_prepare_data() 112 lsettings = &ksettings.base; in ethnl_set_linkinfo()
|
D | eeprom.c | 9 struct ethnl_req_info base; member 18 struct ethnl_reply_data base; member 24 container_of(__req_base, struct eeprom_req_info, base) 27 container_of(__reply_base, struct eeprom_reply_data, base) 56 struct net_device *dev = reply->base.dev; in eeprom_fallback()
|
D | rss.c | 7 struct ethnl_req_info base; member 12 struct ethnl_reply_data base; member 21 container_of(__req_base, struct rss_req_info, base) 24 container_of(__reply_base, struct rss_reply_data, base)
|
D | common.c | 497 link_ksettings->base.speed in convert_legacy_settings_to_link_ksettings() 499 link_ksettings->base.duplex in convert_legacy_settings_to_link_ksettings() 501 link_ksettings->base.port in convert_legacy_settings_to_link_ksettings() 503 link_ksettings->base.phy_address in convert_legacy_settings_to_link_ksettings() 505 link_ksettings->base.autoneg in convert_legacy_settings_to_link_ksettings() 507 link_ksettings->base.mdio_support in convert_legacy_settings_to_link_ksettings() 509 link_ksettings->base.eth_tp_mdix in convert_legacy_settings_to_link_ksettings() 511 link_ksettings->base.eth_tp_mdix_ctrl in convert_legacy_settings_to_link_ksettings() 683 link_ksettings->base.speed = link_info->speed; in ethtool_params_from_link_mode() 685 link_ksettings->base.duplex = link_info->duplex; in ethtool_params_from_link_mode()
|
D | ioctl.c | 398 ethtool_cmd_speed_set(legacy_settings, link_ksettings->base.speed); in convert_link_ksettings_to_legacy_settings() 400 = link_ksettings->base.duplex; in convert_link_ksettings_to_legacy_settings() 402 = link_ksettings->base.port; in convert_link_ksettings_to_legacy_settings() 404 = link_ksettings->base.phy_address; in convert_link_ksettings_to_legacy_settings() 406 = link_ksettings->base.autoneg; in convert_link_ksettings_to_legacy_settings() 408 = link_ksettings->base.mdio_support; in convert_link_ksettings_to_legacy_settings() 410 = link_ksettings->base.eth_tp_mdix; in convert_link_ksettings_to_legacy_settings() 412 = link_ksettings->base.eth_tp_mdix_ctrl; in convert_link_ksettings_to_legacy_settings() 414 = link_ksettings->base.transceiver; in convert_link_ksettings_to_legacy_settings() 424 struct ethtool_link_settings base; member [all …]
|
D | phc_vclocks.c | 9 struct ethnl_req_info base; member 13 struct ethnl_reply_data base; member 19 container_of(__reply_base, struct phc_vclocks_reply_data, base)
|
D | debug.c | 8 struct ethnl_req_info base; member 12 struct ethnl_reply_data base; member 17 container_of(__reply_base, struct debug_reply_data, base)
|
D | pause.c | 7 struct ethnl_req_info base; member 12 container_of(__req_base, struct pause_req_info, base) 15 struct ethnl_reply_data base; member 21 container_of(__reply_base, struct pause_reply_data, base)
|
/net/bridge/ |
D | br_device.c | 273 cmd->base.duplex = DUPLEX_UNKNOWN; in br_get_link_ksettings() 274 cmd->base.port = PORT_OTHER; in br_get_link_ksettings() 275 cmd->base.speed = SPEED_UNKNOWN; in br_get_link_ksettings() 287 if (ecmd.base.speed == (__u32)SPEED_UNKNOWN) in br_get_link_ksettings() 290 if (cmd->base.speed == (__u32)SPEED_UNKNOWN || in br_get_link_ksettings() 291 cmd->base.speed < ecmd.base.speed) in br_get_link_ksettings() 292 cmd->base.speed = ecmd.base.speed; in br_get_link_ksettings()
|
/net/sched/ |
D | act_gate.c | 38 ktime_t now, base, cycle; in gate_get_start_time() local 41 base = ns_to_ktime(param->tcfg_basetime); in gate_get_start_time() 44 if (ktime_after(base, now)) { in gate_get_start_time() 45 *start = base; in gate_get_start_time() 51 n = div64_u64(ktime_sub_ns(now, base), cycle); in gate_get_start_time() 52 *start = ktime_add_ns(base, (n + 1) * cycle); in gate_get_start_time() 99 ktime_t cycle, base; in gate_timer_func() local 103 base = ns_to_ktime(p->tcfg_basetime); in gate_timer_func() 104 n = div64_u64(ktime_sub_ns(now, base), cycle); in gate_timer_func() 105 close_time = ktime_add_ns(base, (n + 1) * cycle); in gate_timer_func()
|
D | cls_basic.c | 148 struct basic_filter *f, unsigned long base, in basic_set_parms() argument 165 tcf_bind_filter(tp, &f->res, base); in basic_set_parms() 173 struct tcf_proto *tp, unsigned long base, u32 handle, in basic_change() argument 221 err = basic_set_parms(net, tp, fnew, base, tb, tca[TCA_RATE], flags, in basic_change() 262 unsigned long base) in basic_bind_class() argument 266 tc_cls_bind_class(classid, cl, q, &f->res, base); in basic_bind_class()
|
D | cls_fw.c | 203 struct nlattr **tca, unsigned long base, u32 flags, in fw_set_parms() argument 233 tcf_bind_filter(tp, &f->res, base); in fw_set_parms() 240 struct tcf_proto *tp, unsigned long base, in fw_change() argument 280 err = fw_set_parms(net, tp, fnew, tb, tca, base, flags, extack); in fw_change() 329 err = fw_set_parms(net, tp, f, tb, tca, base, flags, extack); in fw_change() 416 unsigned long base) in fw_bind_class() argument 420 tc_cls_bind_class(classid, cl, q, &f->res, base); in fw_bind_class()
|
/net/unix/ |
D | unix_bpf.c | 105 static void unix_dgram_bpf_rebuild_protos(struct proto *prot, const struct proto *base) in unix_dgram_bpf_rebuild_protos() argument 107 *prot = *base; in unix_dgram_bpf_rebuild_protos() 114 const struct proto *base) in unix_stream_bpf_rebuild_protos() argument 116 *prot = *base; in unix_stream_bpf_rebuild_protos()
|