/net/mac80211/ |
D | rc80211_minstrel_ht_debugfs.c | 22 unsigned int j, tp_max, tp_avg, prob, 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() 45 if (!(mi->groups[i].supported & BIT(j))) in minstrel_ht_stats_dump() 58 p += sprintf(p, "%cP ", j < 4 ? 'L' : 'S'); in minstrel_ht_stats_dump() 69 p += sprintf(p, " MCS%-2u", (mg->streams - 1) * 8 + j); in minstrel_ht_stats_dump() 71 p += sprintf(p, " MCS%-1u/%1u", j, mg->streams); in minstrel_ht_stats_dump() 73 int r = bitrates[j % 4]; in minstrel_ht_stats_dump() 81 tx_time = DIV_ROUND_CLOSEST(mg->duration[j], 1000); in minstrel_ht_stats_dump() [all …]
|
D | rate.c | 363 int j; in rate_idx_match_legacy_mask() local 366 for (j = *rate_idx; j >= 0; j--) { in rate_idx_match_legacy_mask() 367 if (mask & (1 << j)) { in rate_idx_match_legacy_mask() 369 *rate_idx = j; in rate_idx_match_legacy_mask() 375 for (j = *rate_idx + 1; j < n_bitrates; j++) { in rate_idx_match_legacy_mask() 376 if (mask & (1 << j)) { in rate_idx_match_legacy_mask() 378 *rate_idx = j; in rate_idx_match_legacy_mask() 387 int i, j; in rate_idx_match_mcs_mask() local 399 for (j = rbit; j >= 0; j--) in rate_idx_match_mcs_mask() 400 if (mcs_mask[i] & BIT(j)) { in rate_idx_match_mcs_mask() [all …]
|
D | key.c | 384 int i, j, err; in ieee80211_key_alloc() local 427 for (j = 0; j < IEEE80211_CCMP_PN_LEN; j++) in ieee80211_key_alloc() 428 key->u.ccmp.rx_pn[i][j] = in ieee80211_key_alloc() 429 seq[IEEE80211_CCMP_PN_LEN - j - 1]; in ieee80211_key_alloc() 447 for (j = 0; j < IEEE80211_CCMP_256_PN_LEN; j++) in ieee80211_key_alloc() 448 key->u.ccmp.rx_pn[i][j] = in ieee80211_key_alloc() 449 seq[IEEE80211_CCMP_256_PN_LEN - j - 1]; in ieee80211_key_alloc() 469 for (j = 0; j < IEEE80211_CMAC_PN_LEN; j++) in ieee80211_key_alloc() 470 key->u.aes_cmac.rx_pn[j] = in ieee80211_key_alloc() 471 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() 622 int i, j; in minstrel_init_cck_rates() local 628 for (i = 0, j = 0; i < sband->n_bitrates; i++) { in minstrel_init_cck_rates() [all …]
|
D | rc80211_minstrel_ht.c | 360 int j = MAX_THR_RATES; in minstrel_ht_sort_best_tp_rates() local 368 tmp_group = tp_list[j - 1] / MCS_GROUP_RATES; in minstrel_ht_sort_best_tp_rates() 369 tmp_idx = tp_list[j - 1] % MCS_GROUP_RATES; in minstrel_ht_sort_best_tp_rates() 376 j--; in minstrel_ht_sort_best_tp_rates() 377 } while (j > 0); in minstrel_ht_sort_best_tp_rates() 379 if (j < MAX_THR_RATES - 1) { in minstrel_ht_sort_best_tp_rates() 380 memmove(&tp_list[j + 1], &tp_list[j], (sizeof(*tp_list) * in minstrel_ht_sort_best_tp_rates() 381 (MAX_THR_RATES - (j + 1)))); in minstrel_ht_sort_best_tp_rates() 383 if (j < MAX_THR_RATES) in minstrel_ht_sort_best_tp_rates() 384 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 | 304 int i, j; in mtype_add_cidr() local 307 for (i = 0, j = -1; i < nets_length && h->nets[i].cidr[n]; i++) { in mtype_add_cidr() 308 if (j != -1) { in mtype_add_cidr() 311 j = i; in mtype_add_cidr() 317 if (j != -1) { in mtype_add_cidr() 318 for (; i > j; i--) in mtype_add_cidr() 328 u8 i, j, net_end = nets_length - 1; in mtype_del_cidr() local 336 for (j = i; j < net_end && h->nets[j].cidr[n]; j++) in mtype_del_cidr() 337 h->nets[j].cidr[n] = h->nets[j + 1].cidr[n]; in mtype_del_cidr() 338 h->nets[j].cidr[n] = 0; in mtype_del_cidr() [all …]
|
/net/atm/ |
D | atm_sysfs.c | 36 int i, j, count = 0; in show_atmaddress() local 40 for (i = 0, j = 0; i < ATM_ESA_LEN; ++i, ++j) { in show_atmaddress() 41 if (j == *fmt) { in show_atmaddress() 45 j = 0; in show_atmaddress() 149 int i, j, err; in atm_register_sysfs() local 169 for (j = 0; j < i; j++) in atm_register_sysfs() 170 device_remove_file(cdev, atm_attrs[j]); in atm_register_sysfs()
|
/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 | nf_conntrack_extend.c | 122 int i, j; in update_alloc_size() local 142 for (j = 0; j < NF_CT_EXT_NUM; j++) { in update_alloc_size() 143 t2 = rcu_dereference_protected(nf_ct_ext_types[j], in update_alloc_size()
|
/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() 59 vers->procs[j].p_count); in rpc_proc_show() 85 unsigned int i, j; in svc_seq_show() local 105 for (j = 0; j < vers->vs_nproc; j++, proc++) in svc_seq_show()
|
/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 | 69 int j; in crush_decode_list_bucket() local 78 for (j = 0; j < b->h.size; j++) { in crush_decode_list_bucket() 79 b->item_weights[j] = ceph_decode_32(p); in crush_decode_list_bucket() 80 b->sum_weights[j] = ceph_decode_32(p); in crush_decode_list_bucket() 90 int j; in crush_decode_tree_bucket() local 97 for (j = 0; j < b->num_nodes; j++) in crush_decode_tree_bucket() 98 b->node_weights[j] = ceph_decode_32(p); in crush_decode_tree_bucket() 107 int j; in crush_decode_straw_bucket() local 116 for (j = 0; j < b->h.size; j++) { in crush_decode_straw_bucket() 117 b->item_weights[j] = ceph_decode_32(p); in crush_decode_straw_bucket() [all …]
|
/net/wireless/ |
D | core.c | 511 int i, j; in wiphy_verify_combinations() local 546 for (j = 0; j < c->n_limits; j++) { in wiphy_verify_combinations() 547 u16 types = c->limits[j].types; in wiphy_verify_combinations() 554 if (WARN_ON(!c->limits[j].max)) in wiphy_verify_combinations() 563 c->limits[j].max > 1)) in wiphy_verify_combinations() 568 c->limits[j].max > 1)) in wiphy_verify_combinations() 571 cnt += c->limits[j].max; in wiphy_verify_combinations() 794 u8 supported_on_all, j; in wiphy_register() local 798 for (j = 0; j < wiphy->extended_capabilities_len; j++) { in wiphy_register() 799 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 | util.c | 1591 int i, j, iftype; in cfg80211_iter_combinations() local 1630 for (j = 0; j < c->n_limits; j++) { in cfg80211_iter_combinations() 1631 all_iftypes |= limits[j].types; in cfg80211_iter_combinations() 1632 if (!(limits[j].types & BIT(iftype))) in cfg80211_iter_combinations() 1634 if (limits[j].max < iftype_num[iftype]) in cfg80211_iter_combinations() 1636 limits[j].max -= iftype_num[iftype]; in cfg80211_iter_combinations() 1699 int i, j; in ieee80211_get_ratemask() local 1713 for (j = 0; j < sband->n_bitrates; j++) { in ieee80211_get_ratemask() 1714 if (sband->bitrates[j].bitrate == rate) { in ieee80211_get_ratemask() 1716 *mask |= BIT(j); in ieee80211_get_ratemask()
|
D | ibss.c | 107 int j; in __cfg80211_join_ibss() local 112 for (j = 0; j < sband->n_bitrates; j++) { in __cfg80211_join_ibss() 113 if (sband->bitrates[j].flags & flag) in __cfg80211_join_ibss() 114 params->basic_rates |= BIT(j); in __cfg80211_join_ibss()
|
/net/ipv4/ |
D | proc.c | 314 int j; in icmpmsg_put_line() local 318 for (j = 0; j < count; ++j) in icmpmsg_put_line() 320 type[j] & 0x100 ? "Out" : "In", in icmpmsg_put_line() 321 type[j] & 0xff); in icmpmsg_put_line() 323 for (j = 0; j < count; ++j) in icmpmsg_put_line() 324 seq_printf(seq, " %lu", vals[j]); in icmpmsg_put_line()
|
/net/rds/ |
D | connection.c | 450 int j; in rds_conn_message_info() local 461 for (j = 0; j < RDS_MPATH_WORKERS; j++) { in rds_conn_message_info() 462 cp = &conn->c_path[j]; in rds_conn_message_info() 556 int j; in rds_walk_conn_path_info() local 568 for (j = 0; j < RDS_MPATH_WORKERS; j++) { in rds_walk_conn_path_info() 569 cp = &conn->c_path[j]; in rds_walk_conn_path_info()
|
D | ib_fmr.c | 100 int i, j; in rds_ib_map_fmr() local 146 for (j = 0; j < dma_len; j += PAGE_SIZE) in rds_ib_map_fmr() 148 (dma_addr & PAGE_MASK) + j; in rds_ib_map_fmr()
|
/net/8021q/ |
D | vlan_core.c | 123 int i, j; in vlan_group_free() local 126 for (j = 0; j < VLAN_GROUP_ARRAY_SPLIT_PARTS; j++) in vlan_group_free() 127 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 | 660 unsigned int i, j, hook = 0, hookmask = 0; in ebt_check_entry() local 715 j = 0; in ebt_check_entry() 716 ret = EBT_WATCHER_ITERATE(e, ebt_check_watcher, &tgpar, &j); in ebt_check_entry() 758 EBT_WATCHER_ITERATE(e, ebt_cleanup_watcher, net, &j); in ebt_check_entry() 842 unsigned int i, j, k, udc_cnt; in translate_table() local 860 for (j = i + 1; j < NF_BR_NUMHOOKS; j++) { in translate_table() 861 if (!newinfo->hook_entry[j]) in translate_table() 863 if (newinfo->hook_entry[j] <= newinfo->hook_entry[i]) { in translate_table() 867 i = j; in translate_table() 872 j = 0; /* holds the up to now counted entries for the chain */ in translate_table() [all …]
|
/net/sched/ |
D | sch_mqprio.c | 50 int i, j; in mqprio_parse_opt() local 84 for (j = i + 1; j < qopt->num_tc; j++) { in mqprio_parse_opt() 85 if (last > qopt->offset[j]) in mqprio_parse_opt()
|