/net/mac80211/ |
D | rc80211_minstrel_ht_debugfs.c | 22 unsigned int j, tp_max, tp_avg, eprob, tx_time; in minstrel_ht_stats_dump() local 40 for (j = 0; j < MCS_GROUP_RATES; j++) { in minstrel_ht_stats_dump() 41 struct minstrel_rate_stats *mrs = &mi->groups[i].rates[j]; in minstrel_ht_stats_dump() 43 int idx = i * MCS_GROUP_RATES + j; in minstrel_ht_stats_dump() 46 if (!(mi->supported[i] & BIT(j))) in minstrel_ht_stats_dump() 59 p += sprintf(p, "%cP ", j < 4 ? 'L' : 'S'); in minstrel_ht_stats_dump() 70 p += sprintf(p, " MCS%-2u", (mg->streams - 1) * 8 + j); in minstrel_ht_stats_dump() 72 p += sprintf(p, " MCS%-1u/%1u", j, mg->streams); in minstrel_ht_stats_dump() 74 int r = bitrates[j % 4]; in minstrel_ht_stats_dump() 82 tx_time = DIV_ROUND_CLOSEST(mg->duration[j], 1000); in minstrel_ht_stats_dump() [all …]
|
D | rate.c | 412 int j; in rate_idx_match_legacy_mask() local 415 for (j = *rate_idx; j >= 0; j--) { in rate_idx_match_legacy_mask() 416 if (mask & (1 << j)) { in rate_idx_match_legacy_mask() 418 *rate_idx = j; in rate_idx_match_legacy_mask() 424 for (j = *rate_idx + 1; j < n_bitrates; j++) { in rate_idx_match_legacy_mask() 425 if (mask & (1 << j)) { in rate_idx_match_legacy_mask() 427 *rate_idx = j; in rate_idx_match_legacy_mask() 436 int i, j; in rate_idx_match_mcs_mask() local 448 for (j = rbit; j >= 0; j--) in rate_idx_match_mcs_mask() 449 if (mcs_mask[i] & BIT(j)) { in rate_idx_match_mcs_mask() [all …]
|
D | key.c | 385 int i, j, err; in ieee80211_key_alloc() local 428 for (j = 0; j < IEEE80211_CCMP_PN_LEN; j++) in ieee80211_key_alloc() 429 key->u.ccmp.rx_pn[i][j] = in ieee80211_key_alloc() 430 seq[IEEE80211_CCMP_PN_LEN - j - 1]; in ieee80211_key_alloc() 448 for (j = 0; j < IEEE80211_CCMP_256_PN_LEN; j++) in ieee80211_key_alloc() 449 key->u.ccmp.rx_pn[i][j] = in ieee80211_key_alloc() 450 seq[IEEE80211_CCMP_256_PN_LEN - j - 1]; in ieee80211_key_alloc() 470 for (j = 0; j < IEEE80211_CMAC_PN_LEN; j++) in ieee80211_key_alloc() 471 key->u.aes_cmac.rx_pn[j] = in ieee80211_key_alloc() 472 seq[IEEE80211_CMAC_PN_LEN - j - 1]; in ieee80211_key_alloc() [all …]
|
D | rc80211_minstrel.c | 95 int j; in minstrel_sort_best_tp_rates() local 99 for (j = MAX_THR_RATES; j > 0; --j) { in minstrel_sort_best_tp_rates() 100 tmp_mrs = &mi->r[tp_list[j - 1]].stats; in minstrel_sort_best_tp_rates() 102 minstrel_get_tp_avg(&mi->r[tp_list[j - 1]], tmp_mrs->prob_ewma)) in minstrel_sort_best_tp_rates() 106 if (j < MAX_THR_RATES - 1) in minstrel_sort_best_tp_rates() 107 memmove(&tp_list[j + 1], &tp_list[j], MAX_THR_RATES - (j + 1)); in minstrel_sort_best_tp_rates() 108 if (j < MAX_THR_RATES) in minstrel_sort_best_tp_rates() 109 tp_list[j] = i; in minstrel_sort_best_tp_rates() 629 int i, j; in minstrel_init_cck_rates() local 635 for (i = 0, j = 0; i < sband->n_bitrates; i++) { in minstrel_init_cck_rates() [all …]
|
D | rc80211_minstrel_ht.c | 342 int j = MAX_THR_RATES; in minstrel_ht_sort_best_tp_rates() local 350 tmp_group = tp_list[j - 1] / MCS_GROUP_RATES; in minstrel_ht_sort_best_tp_rates() 351 tmp_idx = tp_list[j - 1] % MCS_GROUP_RATES; in minstrel_ht_sort_best_tp_rates() 358 j--; in minstrel_ht_sort_best_tp_rates() 359 } while (j > 0); in minstrel_ht_sort_best_tp_rates() 361 if (j < MAX_THR_RATES - 1) { in minstrel_ht_sort_best_tp_rates() 362 memmove(&tp_list[j + 1], &tp_list[j], (sizeof(*tp_list) * in minstrel_ht_sort_best_tp_rates() 363 (MAX_THR_RATES - (j + 1)))); in minstrel_ht_sort_best_tp_rates() 365 if (j < MAX_THR_RATES) in minstrel_ht_sort_best_tp_rates() 366 tp_list[j] = index; in minstrel_ht_sort_best_tp_rates() [all …]
|
D | tkip.c | 88 int i, j; in tkip_mixing_phase1() local 98 j = 2 * (i & 1); in tkip_mixing_phase1() 99 p1k[0] += tkipS(p1k[4] ^ get_unaligned_le16(tk + 0 + j)); in tkip_mixing_phase1() 100 p1k[1] += tkipS(p1k[0] ^ get_unaligned_le16(tk + 4 + j)); in tkip_mixing_phase1() 101 p1k[2] += tkipS(p1k[1] ^ get_unaligned_le16(tk + 8 + j)); in tkip_mixing_phase1() 102 p1k[3] += tkipS(p1k[2] ^ get_unaligned_le16(tk + 12 + j)); in tkip_mixing_phase1() 103 p1k[4] += tkipS(p1k[3] ^ get_unaligned_le16(tk + 0 + j)) + i; in tkip_mixing_phase1()
|
/net/netfilter/ipset/ |
D | ip_set_hash_gen.h | 307 int i, j; in mtype_add_cidr() local 310 for (i = 0, j = -1; i < NLEN && h->nets[i].cidr[n]; i++) { in mtype_add_cidr() 311 if (j != -1) { in mtype_add_cidr() 314 j = i; in mtype_add_cidr() 320 if (j != -1) { in mtype_add_cidr() 321 for (; i > j; i--) in mtype_add_cidr() 331 u8 i, j, net_end = NLEN - 1; in mtype_del_cidr() local 339 for (j = i; j < net_end && h->nets[j].cidr[n]; j++) in mtype_del_cidr() 340 h->nets[j].cidr[n] = h->nets[j + 1].cidr[n]; in mtype_del_cidr() 341 h->nets[j].cidr[n] = 0; in mtype_del_cidr() [all …]
|
/net/atm/ |
D | atm_sysfs.c | 37 int i, j, count = 0; in show_atmaddress() local 41 for (i = 0, j = 0; i < ATM_ESA_LEN; ++i, ++j) { in show_atmaddress() 42 if (j == *fmt) { in show_atmaddress() 46 j = 0; in show_atmaddress() 150 int i, j, err; in atm_register_sysfs() local 170 for (j = 0; j < i; j++) in atm_register_sysfs() 171 device_remove_file(cdev, atm_attrs[j]); in atm_register_sysfs()
|
/net/sunrpc/ |
D | stats.c | 37 unsigned int i, j; in rpc_proc_show() local 57 for (j = 0; j < vers->nrprocs; j++) in rpc_proc_show() 58 seq_printf(seq, " %u", vers->counts[j]); in rpc_proc_show() 84 unsigned int i, j; in svc_seq_show() local 105 for (j = 0; j < vers->vs_nproc; j++) in svc_seq_show() 106 seq_printf(seq, " %u", vers->vs_count[j]); in svc_seq_show()
|
/net/netfilter/ |
D | xt_TCPOPTSTRIP.c | 37 unsigned int optl, i, j; in tcpoptstrip_mangle_packet() local 75 for (j = 0; j < optl; ++j) { in tcpoptstrip_mangle_packet() 76 o = opt[i+j]; in tcpoptstrip_mangle_packet() 78 if ((i + j) % 2 == 0) { in tcpoptstrip_mangle_packet()
|
D | core.c | 199 unsigned int i, j, skip = 0, hook_entries; in __nf_hook_entries_try_shrink() local 227 for (i = 0, j = 0; i < old->num_hook_entries; i++) { in __nf_hook_entries_try_shrink() 230 new->hooks[j] = old->hooks[i]; in __nf_hook_entries_try_shrink() 231 new_ops[j] = (void *)orig_ops[i]; in __nf_hook_entries_try_shrink() 232 j++; in __nf_hook_entries_try_shrink() 400 unsigned int i, j, n; in nf_unregister_net_hooks() local 420 for (i = 0, j = 0; i < hookcount && j < n; i++) { in nf_unregister_net_hooks() 429 to_free[j] = __nf_hook_entries_try_shrink(pp); in nf_unregister_net_hooks() 430 if (to_free[j]) in nf_unregister_net_hooks() 431 ++j; in nf_unregister_net_hooks() [all …]
|
/net/netfilter/ipvs/ |
D | ip_vs_lblc.c | 265 int i, j; in ip_vs_lblc_full_check() local 267 for (i = 0, j = tbl->rover; i < IP_VS_LBLC_TAB_SIZE; i++) { in ip_vs_lblc_full_check() 268 j = (j + 1) & IP_VS_LBLC_TAB_MASK; in ip_vs_lblc_full_check() 271 hlist_for_each_entry_safe(en, next, &tbl->bucket[j], list) { in ip_vs_lblc_full_check() 282 tbl->rover = j; in ip_vs_lblc_full_check() 303 int i, j; in ip_vs_lblc_check_expire() local 323 for (i = 0, j = tbl->rover; i < IP_VS_LBLC_TAB_SIZE; i++) { in ip_vs_lblc_check_expire() 324 j = (j + 1) & IP_VS_LBLC_TAB_MASK; in ip_vs_lblc_check_expire() 327 hlist_for_each_entry_safe(en, next, &tbl->bucket[j], list) { in ip_vs_lblc_check_expire() 339 tbl->rover = j; in ip_vs_lblc_check_expire()
|
D | ip_vs_lblcr.c | 428 int i, j; in ip_vs_lblcr_full_check() local 432 for (i = 0, j = tbl->rover; i < IP_VS_LBLCR_TAB_SIZE; i++) { in ip_vs_lblcr_full_check() 433 j = (j + 1) & IP_VS_LBLCR_TAB_MASK; in ip_vs_lblcr_full_check() 436 hlist_for_each_entry_safe(en, next, &tbl->bucket[j], list) { in ip_vs_lblcr_full_check() 446 tbl->rover = j; in ip_vs_lblcr_full_check() 467 int i, j; in ip_vs_lblcr_check_expire() local 487 for (i = 0, j = tbl->rover; i < IP_VS_LBLCR_TAB_SIZE; i++) { in ip_vs_lblcr_check_expire() 488 j = (j + 1) & IP_VS_LBLCR_TAB_MASK; in ip_vs_lblcr_check_expire() 491 hlist_for_each_entry_safe(en, next, &tbl->bucket[j], list) { in ip_vs_lblcr_check_expire() 503 tbl->rover = j; in ip_vs_lblcr_check_expire()
|
/net/ceph/ |
D | osdmap.c | 70 int j; in crush_decode_list_bucket() local 79 for (j = 0; j < b->h.size; j++) { in crush_decode_list_bucket() 80 b->item_weights[j] = ceph_decode_32(p); in crush_decode_list_bucket() 81 b->sum_weights[j] = ceph_decode_32(p); in crush_decode_list_bucket() 91 int j; in crush_decode_tree_bucket() local 98 for (j = 0; j < b->num_nodes; j++) in crush_decode_tree_bucket() 99 b->node_weights[j] = ceph_decode_32(p); in crush_decode_tree_bucket() 108 int j; in crush_decode_straw_bucket() local 117 for (j = 0; j < b->h.size; j++) { in crush_decode_straw_bucket() 118 b->item_weights[j] = ceph_decode_32(p); in crush_decode_straw_bucket() [all …]
|
/net/rds/ |
D | connection.c | 471 int j; in rds_conn_message_info() local 486 for (j = 0; j < npaths; j++) { in rds_conn_message_info() 487 cp = &conn->c_path[j]; in rds_conn_message_info() 579 int j; in rds_walk_conn_path_info() local 594 for (j = 0; j < npaths; j++) { in rds_walk_conn_path_info() 595 cp = &conn->c_path[j]; in rds_walk_conn_path_info()
|
D | ib_fmr.c | 109 int i, j; in rds_ib_map_fmr() local 165 for (j = 0; j < dma_len; j += PAGE_SIZE) in rds_ib_map_fmr() 167 (dma_addr & PAGE_MASK) + j; in rds_ib_map_fmr()
|
/net/ipv4/ |
D | proc.c | 309 int j; in icmpmsg_put_line() local 313 for (j = 0; j < count; ++j) in icmpmsg_put_line() 315 type[j] & 0x100 ? "Out" : "In", in icmpmsg_put_line() 316 type[j] & 0xff); in icmpmsg_put_line() 318 for (j = 0; j < count; ++j) in icmpmsg_put_line() 319 seq_printf(seq, " %lu", vals[j]); in icmpmsg_put_line()
|
/net/wireless/ |
D | core.c | 534 int i, j; in wiphy_verify_combinations() local 569 for (j = 0; j < c->n_limits; j++) { in wiphy_verify_combinations() 570 u16 types = c->limits[j].types; in wiphy_verify_combinations() 577 if (WARN_ON(!c->limits[j].max)) in wiphy_verify_combinations() 586 c->limits[j].max > 1)) in wiphy_verify_combinations() 591 c->limits[j].max > 1)) in wiphy_verify_combinations() 609 cnt += c->limits[j].max; in wiphy_verify_combinations() 848 u8 supported_on_all, j; in wiphy_register() local 852 for (j = 0; j < wiphy->extended_capabilities_len; j++) { in wiphy_register() 853 if (capab[0].extended_capabilities_len > j) in wiphy_register() [all …]
|
D | lib80211_crypt_tkip.c | 237 int i, j; in tkip_mixing_phase1() local 247 j = 2 * (i & 1); in tkip_mixing_phase1() 248 TTAK[0] += _S_(TTAK[4] ^ Mk16(TK[1 + j], TK[0 + j])); in tkip_mixing_phase1() 249 TTAK[1] += _S_(TTAK[0] ^ Mk16(TK[5 + j], TK[4 + j])); in tkip_mixing_phase1() 250 TTAK[2] += _S_(TTAK[1] ^ Mk16(TK[9 + j], TK[8 + j])); in tkip_mixing_phase1() 251 TTAK[3] += _S_(TTAK[2] ^ Mk16(TK[13 + j], TK[12 + j])); in tkip_mixing_phase1() 252 TTAK[4] += _S_(TTAK[3] ^ Mk16(TK[1 + j], TK[0 + j])) + i; in tkip_mixing_phase1()
|
D | ibss.c | 108 int j; in __cfg80211_join_ibss() local 113 for (j = 0; j < sband->n_bitrates; j++) { in __cfg80211_join_ibss() 114 if (sband->bitrates[j].flags & flag) in __cfg80211_join_ibss() 115 params->basic_rates |= BIT(j); in __cfg80211_join_ibss()
|
D | util.c | 1635 int i, j, iftype; in cfg80211_iter_combinations() local 1689 for (j = 0; j < c->n_limits; j++) { in cfg80211_iter_combinations() 1690 all_iftypes |= limits[j].types; in cfg80211_iter_combinations() 1691 if (!(limits[j].types & BIT(iftype))) in cfg80211_iter_combinations() 1693 if (limits[j].max < params->iftype_num[iftype]) in cfg80211_iter_combinations() 1695 limits[j].max -= params->iftype_num[iftype]; in cfg80211_iter_combinations() 1764 int i, j; in ieee80211_get_ratemask() local 1778 for (j = 0; j < sband->n_bitrates; j++) { in ieee80211_get_ratemask() 1779 if (sband->bitrates[j].bitrate == rate) { in ieee80211_get_ratemask() 1781 *mask |= BIT(j); in ieee80211_get_ratemask()
|
/net/8021q/ |
D | vlan_core.c | 130 int i, j; in vlan_group_free() local 133 for (j = 0; j < VLAN_GROUP_ARRAY_SPLIT_PARTS; j++) in vlan_group_free() 134 kfree(grp->vlan_devices_arrays[i][j]); in vlan_group_free()
|
/net/sunrpc/auth_gss/ |
D | gss_mech_switch.c | 258 int j, i = 0; in gss_mech_list_pseudoflavors() local 262 for (j = 0; j < pos->gm_pf_num; j++) { in gss_mech_list_pseudoflavors() 267 array_ptr[i++] = pos->gm_pfs[j].pseudoflavor; in gss_mech_list_pseudoflavors()
|
/net/bridge/netfilter/ |
D | ebtables.c | 640 unsigned int i, j, hook = 0, hookmask = 0; in ebt_check_entry() local 694 j = 0; in ebt_check_entry() 695 ret = EBT_WATCHER_ITERATE(e, ebt_check_watcher, &tgpar, &j); in ebt_check_entry() 742 EBT_WATCHER_ITERATE(e, ebt_cleanup_watcher, net, &j); in ebt_check_entry() 823 unsigned int i, j, k, udc_cnt; in translate_table() local 839 for (j = i + 1; j < NF_BR_NUMHOOKS; j++) { in translate_table() 840 if (!newinfo->hook_entry[j]) in translate_table() 842 if (newinfo->hook_entry[j] <= newinfo->hook_entry[i]) in translate_table() 845 i = j; in translate_table() 850 j = 0; /* holds the up to now counted entries for the chain */ in translate_table() [all …]
|
/net/sched/ |
D | sch_mqprio.c | 52 int i, j; in mqprio_parse_opt() local 91 for (j = i + 1; j < qopt->num_tc; j++) { in mqprio_parse_opt() 92 if (last > qopt->offset[j]) in mqprio_parse_opt()
|