/net/ncsi/ |
D | ncsi-manage.c | 33 bool ncsi_channel_is_last(struct ncsi_dev_priv *ndp, in ncsi_channel_is_last() argument 39 NCSI_FOR_EACH_PACKAGE(ndp, np) in ncsi_channel_is_last() 51 static void ncsi_report_link(struct ncsi_dev_priv *ndp, bool force_down) in ncsi_report_link() argument 53 struct ncsi_dev *nd = &ndp->ndev; in ncsi_report_link() 65 NCSI_FOR_EACH_PACKAGE(ndp, np) { in ncsi_report_link() 93 struct ncsi_dev_priv *ndp = np->ndp; in ncsi_channel_monitor() local 116 netdev_warn(ndp->ndev.dev, in ncsi_channel_monitor() 128 nca.ndp = ndp; in ncsi_channel_monitor() 135 netdev_err(ndp->ndev.dev, "Error %d sending GLS\n", in ncsi_channel_monitor() 141 netdev_err(ndp->ndev.dev, "NCSI Channel %d timed out!\n", in ncsi_channel_monitor() [all …]
|
D | ncsi-netlink.c | 36 struct ncsi_dev_priv *ndp; in ndp_from_ifindex() local 51 ndp = nd ? TO_NCSI_DEV_PRIV(nd) : NULL; in ndp_from_ifindex() 54 return ndp; in ndp_from_ifindex() 58 struct ncsi_dev_priv *ndp, in ncsi_write_channel_info() argument 95 struct ncsi_dev_priv *ndp, unsigned int id) in ncsi_write_package_info() argument 103 if (id > ndp->package_num - 1) { in ncsi_write_package_info() 104 netdev_info(ndp->ndev.dev, "NCSI: No package with id %u\n", id); in ncsi_write_package_info() 109 NCSI_FOR_EACH_PACKAGE(ndp, np) { in ncsi_write_package_info() 120 if ((0x1 << np->id) == ndp->package_whitelist) in ncsi_write_package_info() 134 rc = ncsi_write_channel_info(skb, ndp, nc); in ncsi_write_package_info() [all …]
|
D | ncsi-aen.c | 46 static int ncsi_aen_handler_lsc(struct ncsi_dev_priv *ndp, in ncsi_aen_handler_lsc() argument 60 ncsi_find_package_and_channel(ndp, h->common.channel, NULL, &nc); in ncsi_aen_handler_lsc() 77 netdev_dbg(ndp->ndev.dev, "NCSI: LSC AEN - channel %u state %s\n", in ncsi_aen_handler_lsc() 85 netdev_warn(ndp->ndev.dev, in ncsi_aen_handler_lsc() 92 if (!ndp->multi_package && !nc->package->multi_channel) { in ncsi_aen_handler_lsc() 94 ndp->flags |= NCSI_DEV_RESHUFFLE; in ncsi_aen_handler_lsc() 96 spin_lock_irqsave(&ndp->lock, flags); in ncsi_aen_handler_lsc() 97 list_add_tail_rcu(&nc->link, &ndp->channel_queue); in ncsi_aen_handler_lsc() 98 spin_unlock_irqrestore(&ndp->lock, flags); in ncsi_aen_handler_lsc() 99 return ncsi_process_next_channel(ndp); in ncsi_aen_handler_lsc() [all …]
|
D | ncsi-rsp.c | 49 netdev_dbg(nr->ndp->ndev.dev, in ncsi_validate_rsp_pkt() 54 netdev_dbg(nr->ndp->ndev.dev, in ncsi_validate_rsp_pkt() 62 netdev_dbg(nr->ndp->ndev.dev, in ncsi_validate_rsp_pkt() 80 netdev_dbg(nr->ndp->ndev.dev, in ncsi_validate_rsp_pkt() 92 struct ncsi_dev_priv *ndp = nr->ndp; in ncsi_rsp_handler_cis() local 98 ncsi_find_package_and_channel(ndp, rsp->rsp.common.channel, &np, &nc); in ncsi_rsp_handler_cis() 100 if (ndp->flags & NCSI_DEV_PROBED) in ncsi_rsp_handler_cis() 113 struct ncsi_dev_priv *ndp = nr->ndp; in ncsi_rsp_handler_sp() local 121 ncsi_find_package_and_channel(ndp, rsp->rsp.common.channel, in ncsi_rsp_handler_sp() 124 if (ndp->flags & NCSI_DEV_PROBED) in ncsi_rsp_handler_sp() [all …]
|
D | internal.h | 248 struct ncsi_dev_priv *ndp; /* NCSI device */ member 265 struct ncsi_dev_priv *ndp; /* Associated NCSI device */ member 349 struct ncsi_dev_priv *ndp; /* Associated NCSI device */ member 370 #define NCSI_FOR_EACH_DEV(ndp) \ argument 371 list_for_each_entry_rcu(ndp, &ncsi_dev_list, node) 372 #define NCSI_FOR_EACH_PACKAGE(ndp, np) \ argument 373 list_for_each_entry_rcu(np, &ndp->packages, node) 385 struct ncsi_package *ncsi_find_package(struct ncsi_dev_priv *ndp, 387 struct ncsi_package *ncsi_add_package(struct ncsi_dev_priv *ndp, 390 void ncsi_find_package_and_channel(struct ncsi_dev_priv *ndp, [all …]
|
D | ncsi-cmd.c | 277 struct ncsi_dev_priv *ndp = nca->ndp; in ncsi_alloc_command() local 278 struct ncsi_dev *nd = &ndp->ndev; in ncsi_alloc_command() 287 nr = ncsi_alloc_request(ndp, nca->req_flags); in ncsi_alloc_command() 345 netdev_err(nca->ndp->ndev.dev, in ncsi_xmit_cmd() 385 if (nca->ndp->gma_flag == 1) in ncsi_xmit_cmd() 386 memcpy(eh->h_source, nca->ndp->ndev.dev->dev_addr, ETH_ALEN); in ncsi_xmit_cmd()
|
/net/dccp/ccids/lib/ |
D | packet_history.c | 99 const u64 ndp) in tfrc_rx_hist_entry_from_skb() argument 106 entry->tfrchrx_ndp = ndp; in tfrc_rx_hist_entry_from_skb() 112 const u64 ndp) in tfrc_rx_hist_add_packet() argument 116 tfrc_rx_hist_entry_from_skb(entry, skb, ndp); in tfrc_rx_hist_add_packet() 313 struct sk_buff *skb, const u64 ndp, in tfrc_rx_handle_loss() argument 319 __do_track_loss(h, skb, ndp); in tfrc_rx_handle_loss() 321 __one_after_loss(h, skb, ndp); in tfrc_rx_handle_loss() 324 } else if (__two_after_loss(h, skb, ndp)) { in tfrc_rx_handle_loss()
|
D | packet_history.h | 130 const u64 ndp); 136 struct sk_buff *skb, const u64 ndp,
|
/net/dccp/ |
D | options.c | 282 static inline u8 dccp_ndp_len(const u64 ndp) in dccp_ndp_len() argument 284 if (likely(ndp <= 0xFF)) in dccp_ndp_len() 286 return likely(ndp <= USHRT_MAX) ? 2 : (ndp <= UINT_MAX ? 4 : 6); in dccp_ndp_len() 312 u64 ndp = dp->dccps_ndp_count; in dccp_insert_option_ndp() local 319 if (ndp > 0) { in dccp_insert_option_ndp() 321 const int ndp_len = dccp_ndp_len(ndp); in dccp_insert_option_ndp() 332 dccp_encode_value_var(ndp, ptr, ndp_len); in dccp_insert_option_ndp()
|
D | dccp.h | 150 static inline u64 dccp_loss_count(const u64 s1, const u64 s2, const u64 ndp) in dccp_loss_count() argument 155 delta -= ndp + 1; in dccp_loss_count() 163 static inline bool dccp_loss_free(const u64 s1, const u64 s2, const u64 ndp) in dccp_loss_free() argument 165 return dccp_loss_count(s1, s2, ndp) == 0; in dccp_loss_free()
|
/net/dccp/ccids/ |
D | ccid3.c | 711 const u64 ndp = dccp_sk(sk)->dccps_options_received.dccpor_ndp; in ccid3_hc_rx_packet_recv() local 745 skb, ndp, ccid3_first_li, sk)) { in ccid3_hc_rx_packet_recv() 784 tfrc_rx_hist_add_packet(&hc->rx_hist, skb, ndp); in ccid3_hc_rx_packet_recv()
|