/net/core/ |
D | gen_estimator.c | 113 int idx = (int)arg; in est_timer() local 117 list_for_each_entry_rcu(e, &elist[idx].list, list) { in est_timer() 130 brate = (nbytes - e->last_bytes)<<(7 - idx); in est_timer() 135 rate = (npackets - e->last_packets)<<(12 - idx); in est_timer() 144 if (!list_empty(&elist[idx].list)) in est_timer() 145 mod_timer(&elist[idx].timer, jiffies + ((HZ/4) << idx)); in est_timer() 212 int idx; in gen_new_estimator() local 224 idx = parm->interval + 2; in gen_new_estimator() 235 if (!elist[idx].timer.function) { in gen_new_estimator() 236 INIT_LIST_HEAD(&elist[idx].list); in gen_new_estimator() [all …]
|
D | rtnetlink.c | 1039 int idx = 0, s_idx; in rtnl_dump_ifinfo() local 1059 idx = 0; in rtnl_dump_ifinfo() 1062 if (idx < s_idx) in rtnl_dump_ifinfo() 1073 idx++; in rtnl_dump_ifinfo() 1078 cb->args[1] = idx; in rtnl_dump_ifinfo() 1924 int idx; in rtnl_dump_all() local 1929 for (idx = 1; idx <= RTNL_FAMILY_MAX; idx++) { in rtnl_dump_all() 1931 if (idx < s_idx || idx == PF_PACKET) in rtnl_dump_all() 1933 if (rtnl_msg_handlers[idx] == NULL || in rtnl_dump_all() 1934 rtnl_msg_handlers[idx][type].dumpit == NULL) in rtnl_dump_all() [all …]
|
/net/mac80211/ |
D | rate.c | 213 static void rc_send_low_broadcast(s8 *idx, u32 basic_rates, in rc_send_low_broadcast() argument 220 if (*idx < 0) in rc_send_low_broadcast() 222 if (basic_rates & (1 << *idx)) in rc_send_low_broadcast() 225 for (i = *idx + 1; i <= sband->n_bitrates; i++) { in rc_send_low_broadcast() 227 *idx = i; in rc_send_low_broadcast() 262 info->control.rates[0].idx = rate_lowest_index(sband, sta); in __rate_control_send_low() 264 info->control.rates[0].idx = in __rate_control_send_low() 289 info->control.rates[0].idx = mcast_rate - 1; in rate_control_send_low() 293 rc_send_low_broadcast(&info->control.rates[0].idx, in rate_control_send_low() 309 for (j = rate->idx; j >= 0; j--) { in rate_idx_match_legacy_mask() [all …]
|
D | key.c | 198 int idx, bool uni, bool multi) in __ieee80211_set_default_key() argument 204 if (idx >= 0 && idx < NUM_DEFAULT_KEYS) in __ieee80211_set_default_key() 205 key = key_mtx_dereference(sdata->local, sdata->keys[idx]); in __ieee80211_set_default_key() 209 drv_set_default_unicast_key(sdata->local, sdata, idx); in __ieee80211_set_default_key() 218 void ieee80211_set_default_key(struct ieee80211_sub_if_data *sdata, int idx, in ieee80211_set_default_key() argument 222 __ieee80211_set_default_key(sdata, idx, uni, multi); in ieee80211_set_default_key() 227 __ieee80211_set_default_mgmt_key(struct ieee80211_sub_if_data *sdata, int idx) in __ieee80211_set_default_mgmt_key() argument 233 if (idx >= NUM_DEFAULT_KEYS && in __ieee80211_set_default_mgmt_key() 234 idx < NUM_DEFAULT_KEYS + NUM_DEFAULT_MGMT_KEYS) in __ieee80211_set_default_mgmt_key() 235 key = key_mtx_dereference(sdata->local, sdata->keys[idx]); in __ieee80211_set_default_mgmt_key() [all …]
|
D | rc80211_minstrel_ht.c | 138 return GROUP_IDX((rate->idx / MCS_GROUP_RATES) + 1, in minstrel_ht_get_group_idx() 147 int group, idx; in minstrel_ht_get_stats() local 151 idx = rate->idx % MCS_GROUP_RATES; in minstrel_ht_get_stats() 155 for (idx = 0; idx < ARRAY_SIZE(mp->cck_rates); idx++) in minstrel_ht_get_stats() 156 if (rate->idx == mp->cck_rates[idx]) in minstrel_ht_get_stats() 160 if (!(mi->groups[group].supported & BIT(idx))) in minstrel_ht_get_stats() 161 idx += 4; in minstrel_ht_get_stats() 163 return &mi->groups[group].rates[idx]; in minstrel_ht_get_stats() 375 if (rate->idx < 0) in minstrel_ht_txstat_valid() 384 return rate->idx == mp->cck_rates[0] || in minstrel_ht_txstat_valid() [all …]
|
D | rc80211_minstrel_ht_debugfs.c | 39 int idx = i * MCS_GROUP_RATES + j; in minstrel_ht_stats_dump() local 49 *(p++) = (idx == mi->max_tp_rate) ? 'T' : ' '; in minstrel_ht_stats_dump() 50 *(p++) = (idx == mi->max_tp_rate2) ? 't' : ' '; in minstrel_ht_stats_dump() 51 *(p++) = (idx == mi->max_prob_rate) ? 'P' : ' '; in minstrel_ht_stats_dump()
|
D | key.h | 127 struct ieee80211_key *ieee80211_key_alloc(u32 cipher, int idx, size_t key_len, 139 void ieee80211_set_default_key(struct ieee80211_sub_if_data *sdata, int idx, 142 int idx);
|
D | status.c | 237 if (info->status.rates[0].idx >= 0 && in ieee80211_tx_radiotap_len() 248 if (info->status.rates[0].idx >= 0 && in ieee80211_tx_radiotap_len() 281 if (info->status.rates[0].idx >= 0 && in ieee80211_add_tx_radiotap_header() 284 *pos = sband->bitrates[info->status.rates[0].idx].bitrate / 5; in ieee80211_add_tx_radiotap_header() 310 if (info->status.rates[0].idx >= 0 && in ieee80211_add_tx_radiotap_header() 322 pos[2] = info->status.rates[0].idx; in ieee80211_add_tx_radiotap_header() 432 info->status.rates[i].idx = -1; in ieee80211_tx_status() 435 } else if (info->status.rates[i].idx < 0) { in ieee80211_tx_status() 439 info->status.rates[i].idx = -1; in ieee80211_tx_status()
|
/net/ipv6/netfilter/ |
D | ip6t_NPT.c | 46 unsigned int i, idx; in ip6t_npt_map_pfx() local 57 idx = i / 32; in ip6t_npt_map_pfx() 58 addr->s6_addr32[idx] &= mask; in ip6t_npt_map_pfx() 59 addr->s6_addr32[idx] |= ~mask & npt->dst_pfx.in6.s6_addr32[idx]; in ip6t_npt_map_pfx() 63 idx = 3; in ip6t_npt_map_pfx() 65 for (idx = 4; idx < ARRAY_SIZE(addr->s6_addr16); idx++) { in ip6t_npt_map_pfx() 66 if ((__force __sum16)addr->s6_addr16[idx] != in ip6t_npt_map_pfx() 70 if (idx == ARRAY_SIZE(addr->s6_addr16)) in ip6t_npt_map_pfx() 74 sum = ~csum_fold(csum_add(csum_unfold((__force __sum16)addr->s6_addr16[idx]), in ip6t_npt_map_pfx() 78 *(__force __sum16 *)&addr->s6_addr16[idx] = sum; in ip6t_npt_map_pfx()
|
/net/nfc/ |
D | netlink.c | 78 if (nla_put_u32(msg, NFC_ATTR_TARGET_INDEX, target->idx) || in nfc_genl_send_target() 107 u32 idx; in __get_device_from_cb() local 119 idx = nla_get_u32(nfc_genl_family.attrbuf[NFC_ATTR_DEVICE_INDEX]); in __get_device_from_cb() 121 dev = nfc_get_device(idx); in __get_device_from_cb() 189 if (nla_put_u32(msg, NFC_ATTR_DEVICE_INDEX, dev->idx)) in nfc_genl_targets_found() 248 if (nla_put_u32(msg, NFC_ATTR_DEVICE_INDEX, dev->idx)) in nfc_genl_tm_activated() 280 if (nla_put_u32(msg, NFC_ATTR_DEVICE_INDEX, dev->idx)) in nfc_genl_tm_deactivated() 311 nla_put_u32(msg, NFC_ATTR_DEVICE_INDEX, dev->idx) || in nfc_genl_device_added() 343 if (nla_put_u32(msg, NFC_ATTR_DEVICE_INDEX, dev->idx)) in nfc_genl_device_removed() 378 if (nla_put_u32(msg, NFC_ATTR_DEVICE_INDEX, dev->idx)) in nfc_genl_llc_send_sdres() [all …]
|
D | core.c | 231 if (dev->targets[i].idx == target_idx) in nfc_find_target() 405 if (dev->active_target->idx != target_idx) { in nfc_deactivate_target() 449 if (dev->active_target->idx != target_idx) { in nfc_data_exchange() 615 targets[i].idx = dev->target_next_idx++; in nfc_targets_found() 675 if (tg->idx == target_idx) in nfc_target_lost() 734 u32 active_target_idx = dev->active_target->idx; in nfc_check_pres_work() 765 const unsigned int *idx = data; in match_idx() local 767 return dev->idx == *idx; in match_idx() 770 struct nfc_dev *nfc_get_device(unsigned int idx) in nfc_get_device() argument 774 d = class_find_device(&nfc_class, NULL, &idx, match_idx); in nfc_get_device() [all …]
|
/net/wireless/ |
D | wext-compat.c | 440 int idx, struct key_params *params) in __cfg80211_set_encryption() argument 470 if (idx < 4 || idx > 5) in __cfg80211_set_encryption() 472 } else if (idx < 0 || idx > 3) in __cfg80211_set_encryption() 482 if (idx == wdev->wext.default_key && in __cfg80211_set_encryption() 492 err = rdev_del_key(rdev, dev, idx, pairwise, in __cfg80211_set_encryption() 504 wdev->wext.keys->params[idx].key_len = 0; in __cfg80211_set_encryption() 505 wdev->wext.keys->params[idx].cipher = 0; in __cfg80211_set_encryption() 507 if (idx == wdev->wext.default_key) in __cfg80211_set_encryption() 509 else if (idx == wdev->wext.default_mgmt_key) in __cfg80211_set_encryption() 522 if (cfg80211_validate_key_settings(rdev, params, idx, pairwise, addr)) in __cfg80211_set_encryption() [all …]
|
/net/ipv4/netfilter/ |
D | ipt_CLUSTERIP.c | 565 struct clusterip_seq_position *idx; in clusterip_seq_start() local 573 idx = kmalloc(sizeof(struct clusterip_seq_position), GFP_KERNEL); in clusterip_seq_start() 574 if (!idx) in clusterip_seq_start() 577 idx->pos = *pos; in clusterip_seq_start() 578 idx->weight = weight; in clusterip_seq_start() 579 idx->bit = ffs(local_nodes); in clusterip_seq_start() 580 idx->val = local_nodes; in clusterip_seq_start() 581 clear_bit(idx->bit - 1, &idx->val); in clusterip_seq_start() 583 return idx; in clusterip_seq_start() 588 struct clusterip_seq_position *idx = v; in clusterip_seq_next() local [all …]
|
/net/netfilter/ipvs/ |
D | ip_vs_ctl.c | 1424 int idx; in ip_vs_flush() local 1431 for(idx = 0; idx < IP_VS_SVC_TAB_SIZE; idx++) { in ip_vs_flush() 1432 hlist_for_each_entry_safe(svc, n, &ip_vs_svc_table[idx], in ip_vs_flush() 1442 for(idx = 0; idx < IP_VS_SVC_TAB_SIZE; idx++) { in ip_vs_flush() 1443 hlist_for_each_entry_safe(svc, n, &ip_vs_svc_fwm_table[idx], in ip_vs_flush() 1497 unsigned int idx; in ip_vs_dst_event() local 1504 for (idx = 0; idx < IP_VS_SVC_TAB_SIZE; idx++) { in ip_vs_dst_event() 1505 hlist_for_each_entry(svc, &ip_vs_svc_table[idx], s_list) { in ip_vs_dst_event() 1514 hlist_for_each_entry(svc, &ip_vs_svc_fwm_table[idx], f_list) { in ip_vs_dst_event() 1551 int idx; in ip_vs_zero_all() local [all …]
|
D | ip_vs_conn.c | 964 int idx; in ip_vs_conn_array() local 968 for (idx = 0; idx < ip_vs_conn_tab_size; idx++) { in ip_vs_conn_array() 969 hlist_for_each_entry_rcu(cp, &ip_vs_conn_tab[idx], c_list) { in ip_vs_conn_array() 974 iter->l = &ip_vs_conn_tab[idx]; in ip_vs_conn_array() 1001 int idx; in ip_vs_conn_seq_next() local 1012 idx = l - ip_vs_conn_tab; in ip_vs_conn_seq_next() 1013 while (++idx < ip_vs_conn_tab_size) { in ip_vs_conn_seq_next() 1014 hlist_for_each_entry_rcu(cp, &ip_vs_conn_tab[idx], c_list) { in ip_vs_conn_seq_next() 1015 iter->l = &ip_vs_conn_tab[idx]; in ip_vs_conn_seq_next() 1206 int idx; in ip_vs_random_dropentry() local [all …]
|
D | ip_vs_pe_sip.c | 14 int *idx) in ip_vs_dbg_callid() argument 17 size_t len = min3(max_len, callid_len, buf_len - *idx - 1); in ip_vs_dbg_callid() 18 memcpy(buf + *idx, callid, len); in ip_vs_dbg_callid() 19 buf[*idx+len] = '\0'; in ip_vs_dbg_callid() 20 *idx += len + 1; in ip_vs_dbg_callid() 21 return buf + *idx - len; in ip_vs_dbg_callid()
|
/net/caif/ |
D | cfmuxl.c | 108 int idx = phyid % DN_CACHE_SIZE; in cfmuxl_remove_dnlayer() local 111 RCU_INIT_POINTER(muxl->dn_cache[idx], NULL); in cfmuxl_remove_dnlayer() 126 int idx = id % UP_CACHE_SIZE; in get_up() local 127 up = rcu_dereference(muxl->up_cache[idx]); in get_up() 131 rcu_assign_pointer(muxl->up_cache[idx], up); in get_up() 140 int idx = dev_info->id % DN_CACHE_SIZE; in get_dn() local 141 dn = rcu_dereference(muxl->dn_cache[idx]); in get_dn() 145 rcu_assign_pointer(muxl->dn_cache[idx], dn); in get_dn() 155 int idx = id % UP_CACHE_SIZE; in cfmuxl_remove_uplayer() local 167 RCU_INIT_POINTER(muxl->up_cache[idx], NULL); in cfmuxl_remove_uplayer()
|
/net/sched/ |
D | sch_fq_codel.c | 144 unsigned int maxbacklog = 0, idx = 0, i, len; in fq_codel_drop() local 155 idx = i; in fq_codel_drop() 158 flow = &q->flows[idx]; in fq_codel_drop() 161 q->backlogs[idx] -= len; in fq_codel_drop() 167 return idx; in fq_codel_drop() 173 unsigned int idx; in fq_codel_enqueue() local 177 idx = fq_codel_classify(skb, sch, &ret); in fq_codel_enqueue() 178 if (idx == 0) { in fq_codel_enqueue() 184 idx--; in fq_codel_enqueue() 187 flow = &q->flows[idx]; in fq_codel_enqueue() [all …]
|
D | ematch.c | 175 struct tcf_ematch *em, struct nlattr *nla, int idx) in tcf_em_validate() argument 201 if (ref <= idx) in tcf_em_validate() 304 int idx, list_len, matches_len, err; in tcf_em_tree_validate() local 345 for (idx = 0; nla_ok(rt_match, list_len); idx++) { in tcf_em_tree_validate() 348 if (rt_match->nla_type != (idx + 1)) in tcf_em_tree_validate() 351 if (idx >= tree_hdr->nmatches) in tcf_em_tree_validate() 357 em = tcf_em_get_match(tree, idx); in tcf_em_tree_validate() 359 err = tcf_em_validate(tp, tree_hdr, em, rt_match, idx); in tcf_em_tree_validate() 371 if (idx != tree_hdr->nmatches) { in tcf_em_tree_validate()
|
/net/dccp/ |
D | feat.c | 194 int idx = dccp_feat_index(feat_num); in dccp_feat_type() local 196 if (idx < 0) in dccp_feat_type() 198 return dccp_feat_table[idx].reconciliation; in dccp_feat_type() 203 int idx = dccp_feat_index(feat_num); in dccp_feat_default_value() local 208 DCCP_BUG_ON(idx < 0); in dccp_feat_default_value() 210 return idx < 0 ? 0 : dccp_feat_table[idx].default_value; in dccp_feat_default_value() 308 static int __dccp_feat_activate(struct sock *sk, const int idx, in __dccp_feat_activate() argument 314 if (idx < 0 || idx >= DCCP_FEAT_SUPPORTED_MAX) in __dccp_feat_activate() 316 if (dccp_feat_table[idx].activation_hdlr == NULL) in __dccp_feat_activate() 320 val = dccp_feat_table[idx].default_value; in __dccp_feat_activate() [all …]
|
/net/ieee802154/ |
D | wpan-class.c | 139 static int wpan_phy_idx_valid(int idx) in wpan_phy_idx_valid() argument 141 return idx >= 0; in wpan_phy_idx_valid() 152 phy->idx = wpan_phy_idx++; in wpan_phy_alloc() 153 if (unlikely(!wpan_phy_idx_valid(phy->idx))) { in wpan_phy_alloc() 164 dev_set_name(&phy->dev, "wpan-phy%d", phy->idx); in wpan_phy_alloc()
|
/net/can/ |
D | proc.c | 340 static inline void can_rcvlist_proc_show_one(struct seq_file *m, int idx, in can_rcvlist_proc_show_one() argument 344 if (!hlist_empty(&d->rx[idx])) { in can_rcvlist_proc_show_one() 346 can_print_rcvlist(m, &d->rx[idx], dev); in can_rcvlist_proc_show_one() 355 int idx = (int)(long)m->private; in can_rcvlist_proc_show() local 359 seq_printf(m, "\nreceive list '%s':\n", rx_list_name[idx]); in can_rcvlist_proc_show() 365 can_rcvlist_proc_show_one(m, idx, NULL, d); in can_rcvlist_proc_show() 370 can_rcvlist_proc_show_one(m, idx, dev, dev->ml_priv); in can_rcvlist_proc_show()
|
/net/nfc/hci/ |
D | command.c | 173 int nfc_hci_set_param(struct nfc_hci_dev *hdev, u8 gate, u8 idx, in nfc_hci_set_param() argument 187 pr_debug("idx=%d to gate %d\n", idx, gate); in nfc_hci_set_param() 193 *tmp = idx; in nfc_hci_set_param() 205 int nfc_hci_get_param(struct nfc_hci_dev *hdev, u8 gate, u8 idx, in nfc_hci_get_param() argument 208 pr_debug("gate=%d regidx=%d\n", gate, idx); in nfc_hci_get_param() 211 &idx, 1, skb); in nfc_hci_get_param()
|
/net/batman-adv/ |
D | main.h | 283 static inline void batadv_add_counter(struct batadv_priv *bat_priv, size_t idx, in batadv_add_counter() argument 286 this_cpu_add(bat_priv->bat_counters[idx], count); in batadv_add_counter() 293 size_t idx) in batadv_sum_counter() argument 300 sum += counters[idx]; in batadv_sum_counter()
|
/net/ipv4/ |
D | ip_input.c | 349 u32 idx = skb_dst(skb)->tclassid; in ip_rcv_finish() local 350 st[idx&0xFF].o_packets++; in ip_rcv_finish() 351 st[idx&0xFF].o_bytes += skb->len; in ip_rcv_finish() 352 st[(idx>>16)&0xFF].i_packets++; in ip_rcv_finish() 353 st[(idx>>16)&0xFF].i_bytes += skb->len; in ip_rcv_finish()
|