/net/ncsi/ |
D | ncsi-manage.c | 130 static void ncsi_report_link(struct ncsi_dev_priv *ndp, bool force_down) in ncsi_report_link() argument 132 struct ncsi_dev *nd = &ndp->ndev; in ncsi_report_link() 144 NCSI_FOR_EACH_PACKAGE(ndp, np) { in ncsi_report_link() 172 struct ncsi_dev_priv *ndp = np->ndp; in ncsi_channel_monitor() local 195 nca.ndp = ndp; in ncsi_channel_monitor() 202 netdev_err(ndp->ndev.dev, "Error %d sending GLS\n", in ncsi_channel_monitor() 211 if (!(ndp->flags & NCSI_DEV_HWA) && in ncsi_channel_monitor() 213 ncsi_report_link(ndp, true); in ncsi_channel_monitor() 214 ndp->flags |= NCSI_DEV_RESHUFFLE; in ncsi_channel_monitor() 221 spin_lock_irqsave(&ndp->lock, flags); in ncsi_channel_monitor() [all …]
|
D | ncsi-rsp.c | 64 struct ncsi_dev_priv *ndp = nr->ndp; in ncsi_rsp_handler_cis() local 70 ncsi_find_package_and_channel(ndp, rsp->rsp.common.channel, &np, &nc); in ncsi_rsp_handler_cis() 72 if (ndp->flags & NCSI_DEV_PROBED) in ncsi_rsp_handler_cis() 85 struct ncsi_dev_priv *ndp = nr->ndp; in ncsi_rsp_handler_sp() local 93 ncsi_find_package_and_channel(ndp, rsp->rsp.common.channel, in ncsi_rsp_handler_sp() 96 if (ndp->flags & NCSI_DEV_PROBED) in ncsi_rsp_handler_sp() 100 np = ncsi_add_package(ndp, id); in ncsi_rsp_handler_sp() 111 struct ncsi_dev_priv *ndp = nr->ndp; in ncsi_rsp_handler_dp() local 118 ncsi_find_package_and_channel(ndp, rsp->rsp.common.channel, in ncsi_rsp_handler_dp() 136 struct ncsi_dev_priv *ndp = nr->ndp; in ncsi_rsp_handler_ec() local [all …]
|
D | ncsi-aen.c | 50 static int ncsi_aen_handler_lsc(struct ncsi_dev_priv *ndp, in ncsi_aen_handler_lsc() argument 62 ncsi_find_package_and_channel(ndp, h->common.channel, NULL, &nc); in ncsi_aen_handler_lsc() 86 if (!(ndp->flags & NCSI_DEV_HWA) && in ncsi_aen_handler_lsc() 88 ndp->flags |= NCSI_DEV_RESHUFFLE; in ncsi_aen_handler_lsc() 91 spin_lock_irqsave(&ndp->lock, flags); in ncsi_aen_handler_lsc() 92 list_add_tail_rcu(&nc->link, &ndp->channel_queue); in ncsi_aen_handler_lsc() 93 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_aen_handler_lsc() 95 return ncsi_process_next_channel(ndp); in ncsi_aen_handler_lsc() 98 static int ncsi_aen_handler_cr(struct ncsi_dev_priv *ndp, in ncsi_aen_handler_cr() argument 105 ncsi_find_package_and_channel(ndp, h->common.channel, NULL, &nc); in ncsi_aen_handler_cr() [all …]
|
D | internal.h | 206 struct ncsi_dev_priv *ndp; /* NCSI device */ member 218 struct ncsi_dev_priv *ndp; /* Associated NCSI device */ member 282 struct ncsi_dev_priv *ndp; /* Associated NCSI device */ member 301 #define NCSI_FOR_EACH_DEV(ndp) \ argument 302 list_for_each_entry_rcu(ndp, &ncsi_dev_list, node) 303 #define NCSI_FOR_EACH_PACKAGE(ndp, np) \ argument 304 list_for_each_entry_rcu(np, &ndp->packages, node) 318 struct ncsi_package *ncsi_find_package(struct ncsi_dev_priv *ndp, 320 struct ncsi_package *ncsi_add_package(struct ncsi_dev_priv *ndp, 323 void ncsi_find_package_and_channel(struct ncsi_dev_priv *ndp, [all …]
|
D | ncsi-cmd.c | 266 struct ncsi_dev_priv *ndp = nca->ndp; in ncsi_alloc_command() local 267 struct ncsi_dev *nd = &ndp->ndev; in ncsi_alloc_command() 275 nr = ncsi_alloc_request(ndp, nca->req_flags); in ncsi_alloc_command() 326 netdev_err(nca->ndp->ndev.dev, in ncsi_xmit_cmd()
|
/net/dccp/ccids/lib/ |
D | packet_history.c | 112 const u64 ndp) in tfrc_rx_hist_entry_from_skb() argument 119 entry->tfrchrx_ndp = ndp; in tfrc_rx_hist_entry_from_skb() 125 const u64 ndp) in tfrc_rx_hist_add_packet() argument 129 tfrc_rx_hist_entry_from_skb(entry, skb, ndp); in tfrc_rx_hist_add_packet() 328 struct sk_buff *skb, const u64 ndp, in tfrc_rx_handle_loss() argument 334 __do_track_loss(h, skb, ndp); in tfrc_rx_handle_loss() 336 __one_after_loss(h, skb, ndp); in tfrc_rx_handle_loss() 339 } else if (__two_after_loss(h, skb, ndp)) { in tfrc_rx_handle_loss()
|
D | packet_history.h | 143 const u64 ndp); 149 struct sk_buff *skb, const u64 ndp,
|
/net/dccp/ |
D | options.c | 285 static inline u8 dccp_ndp_len(const u64 ndp) in dccp_ndp_len() argument 287 if (likely(ndp <= 0xFF)) in dccp_ndp_len() 289 return likely(ndp <= USHRT_MAX) ? 2 : (ndp <= UINT_MAX ? 4 : 6); in dccp_ndp_len() 315 u64 ndp = dp->dccps_ndp_count; in dccp_insert_option_ndp() local 322 if (ndp > 0) { in dccp_insert_option_ndp() 324 const int ndp_len = dccp_ndp_len(ndp); in dccp_insert_option_ndp() 335 dccp_encode_value_var(ndp, ptr, ndp_len); in dccp_insert_option_ndp()
|
D | dccp.h | 158 static inline u64 dccp_loss_count(const u64 s1, const u64 s2, const u64 ndp) in dccp_loss_count() argument 163 delta -= ndp + 1; in dccp_loss_count() 171 static inline bool dccp_loss_free(const u64 s1, const u64 s2, const u64 ndp) in dccp_loss_free() argument 173 return dccp_loss_count(s1, s2, ndp) == 0; in dccp_loss_free()
|
/net/dccp/ccids/ |
D | ccid3.c | 715 const u64 ndp = dccp_sk(sk)->dccps_options_received.dccpor_ndp; in ccid3_hc_rx_packet_recv() local 749 skb, ndp, ccid3_first_li, sk)) { in ccid3_hc_rx_packet_recv() 788 tfrc_rx_hist_add_packet(&hc->rx_hist, skb, ndp); in ccid3_hc_rx_packet_recv()
|