Home
last modified time | relevance | path

Searched refs:j (Results 1 – 25 of 83) sorted by relevance

1234

/net/netfilter/
Dnf_conntrack_sane.c177 int i, j; in nf_conntrack_sane_fini() local
180 for (j = 0; j < 2; j++) { in nf_conntrack_sane_fini()
183 sane[i][j].tuple.src.l3num, ports[i]); in nf_conntrack_sane_fini()
184 nf_conntrack_helper_unregister(&sane[i][j]); in nf_conntrack_sane_fini()
193 int i, j = -1, ret = 0; in nf_conntrack_sane_init() local
207 for (j = 0; j < 2; j++) { in nf_conntrack_sane_init()
208 sane[i][j].data_len = sizeof(struct nf_ct_sane_master); in nf_conntrack_sane_init()
209 sane[i][j].tuple.src.u.tcp.port = htons(ports[i]); in nf_conntrack_sane_init()
210 sane[i][j].tuple.dst.protonum = IPPROTO_TCP; in nf_conntrack_sane_init()
211 sane[i][j].expect_policy = &sane_exp_policy; in nf_conntrack_sane_init()
[all …]
Dnf_conntrack_tftp.c107 int i, j; in nf_conntrack_tftp_fini() local
110 for (j = 0; j < 2; j++) in nf_conntrack_tftp_fini()
111 nf_conntrack_helper_unregister(&tftp[i][j]); in nf_conntrack_tftp_fini()
117 int i, j, ret; in nf_conntrack_tftp_init() local
127 for (j = 0; j < 2; j++) { in nf_conntrack_tftp_init()
128 tftp[i][j].tuple.dst.protonum = IPPROTO_UDP; in nf_conntrack_tftp_init()
129 tftp[i][j].tuple.src.u.udp.port = htons(ports[i]); in nf_conntrack_tftp_init()
130 tftp[i][j].expect_policy = &tftp_exp_policy; in nf_conntrack_tftp_init()
131 tftp[i][j].me = THIS_MODULE; in nf_conntrack_tftp_init()
132 tftp[i][j].help = tftp_help; in nf_conntrack_tftp_init()
[all …]
Dnf_conntrack_ftp.c583 int i, j; in nf_conntrack_ftp_fini() local
585 for (j = 0; j < 2; j++) { in nf_conntrack_ftp_fini()
586 if (ftp[i][j].me == NULL) in nf_conntrack_ftp_fini()
591 ftp[i][j].tuple.src.l3num, ports[i]); in nf_conntrack_ftp_fini()
592 nf_conntrack_helper_unregister(&ftp[i][j]); in nf_conntrack_ftp_fini()
601 int i, j = -1, ret = 0; in nf_conntrack_ftp_init() local
615 for (j = 0; j < 2; j++) { in nf_conntrack_ftp_init()
616 ftp[i][j].data_len = sizeof(struct nf_ct_ftp_master); in nf_conntrack_ftp_init()
617 ftp[i][j].tuple.src.u.tcp.port = htons(ports[i]); in nf_conntrack_ftp_init()
618 ftp[i][j].tuple.dst.protonum = IPPROTO_TCP; in nf_conntrack_ftp_init()
[all …]
Dxt_TCPOPTSTRIP.c37 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()
Dnf_conntrack_extend.c133 int i, j; in update_alloc_size() local
153 for (j = 0; j < NF_CT_EXT_NUM; j++) { in update_alloc_size()
154 t2 = rcu_dereference_protected(nf_ct_ext_types[j], in update_alloc_size()
Dnf_conntrack_sip.c1620 int i, j; in nf_conntrack_sip_fini() local
1623 for (j = 0; j < ARRAY_SIZE(sip[i]); j++) { in nf_conntrack_sip_fini()
1624 if (sip[i][j].me == NULL) in nf_conntrack_sip_fini()
1626 nf_conntrack_helper_unregister(&sip[i][j]); in nf_conntrack_sip_fini()
1633 int i, j, ret; in nf_conntrack_sip_init() local
1655 for (j = 0; j < ARRAY_SIZE(sip[i]); j++) { in nf_conntrack_sip_init()
1656 sip[i][j].data_len = sizeof(struct nf_ct_sip_master); in nf_conntrack_sip_init()
1657 sip[i][j].tuple.src.u.udp.port = htons(ports[i]); in nf_conntrack_sip_init()
1658 sip[i][j].expect_policy = sip_exp_policy; in nf_conntrack_sip_init()
1659 sip[i][j].expect_class_max = SIP_EXPECT_MAX; in nf_conntrack_sip_init()
[all …]
/net/mac80211/
Drc80211_minstrel_ht_debugfs.c23 unsigned int j, tp, prob, eprob; in minstrel_ht_stats_dump() local
36 for (j = 0; j < MCS_GROUP_RATES; j++) { in minstrel_ht_stats_dump()
37 struct minstrel_rate_stats *mr = &mi->groups[i].rates[j]; in minstrel_ht_stats_dump()
39 int idx = i * MCS_GROUP_RATES + j; in minstrel_ht_stats_dump()
41 if (!(mi->groups[i].supported & BIT(j))) in minstrel_ht_stats_dump()
45 p += sprintf(p, "CCK/%cP ", j < 4 ? 'L' : 'S'); in minstrel_ht_stats_dump()
56 int r = bitrates[j % 4]; in minstrel_ht_stats_dump()
59 p += sprintf(p, " MCS%-2u", (mg->streams - 1) * 8 + j); in minstrel_ht_stats_dump()
Drate.c300 int j; in rate_idx_match_legacy_mask() local
303 for (j = rate->idx; j >= 0; j--) { in rate_idx_match_legacy_mask()
304 if (mask & (1 << j)) { in rate_idx_match_legacy_mask()
306 rate->idx = j; in rate_idx_match_legacy_mask()
312 for (j = rate->idx + 1; j < n_bitrates; j++) { in rate_idx_match_legacy_mask()
313 if (mask & (1 << j)) { in rate_idx_match_legacy_mask()
315 rate->idx = j; in rate_idx_match_legacy_mask()
325 int i, j; in rate_idx_match_mcs_mask() local
337 for (j = rbit; j >= 0; j--) in rate_idx_match_mcs_mask()
338 if (mcs_mask[i] & BIT(j)) { in rate_idx_match_mcs_mask()
[all …]
Drc80211_minstrel.c76 int j = MAX_THR_RATES; in minstrel_sort_best_tp_rates() local
78 while (j > 0 && mi->r[i].stats.cur_tp > mi->r[tp_list[j - 1]].stats.cur_tp) in minstrel_sort_best_tp_rates()
79 j--; in minstrel_sort_best_tp_rates()
80 if (j < MAX_THR_RATES - 1) in minstrel_sort_best_tp_rates()
81 memmove(&tp_list[j + 1], &tp_list[j], MAX_THR_RATES - (j + 1)); in minstrel_sort_best_tp_rates()
82 if (j < MAX_THR_RATES) in minstrel_sort_best_tp_rates()
83 tp_list[j] = i; in minstrel_sort_best_tp_rates()
583 int i, j; in minstrel_init_cck_rates() local
589 for (i = 0, j = 0; i < sband->n_bitrates; i++) { in minstrel_init_cck_rates()
598 for (j = 0; j < ARRAY_SIZE(bitrates); j++) { in minstrel_init_cck_rates()
[all …]
Drc80211_minstrel_ht.c248 int j = MAX_THR_RATES; in minstrel_ht_sort_best_tp_rates() local
256 tmp_group = tp_list[j - 1] / MCS_GROUP_RATES; in minstrel_ht_sort_best_tp_rates()
257 tmp_idx = tp_list[j - 1] % MCS_GROUP_RATES; in minstrel_ht_sort_best_tp_rates()
263 j--; in minstrel_ht_sort_best_tp_rates()
264 } while (j > 0); in minstrel_ht_sort_best_tp_rates()
266 if (j < MAX_THR_RATES - 1) { in minstrel_ht_sort_best_tp_rates()
267 memmove(&tp_list[j + 1], &tp_list[j], (sizeof(*tp_list) * in minstrel_ht_sort_best_tp_rates()
268 (MAX_THR_RATES - (j + 1)))); in minstrel_ht_sort_best_tp_rates()
270 if (j < MAX_THR_RATES) in minstrel_ht_sort_best_tp_rates()
271 tp_list[j] = index; in minstrel_ht_sort_best_tp_rates()
[all …]
Dkey.c329 int i, j, err; in ieee80211_key_alloc() local
372 for (j = 0; j < IEEE80211_CCMP_PN_LEN; j++) in ieee80211_key_alloc()
373 key->u.ccmp.rx_pn[i][j] = in ieee80211_key_alloc()
374 seq[IEEE80211_CCMP_PN_LEN - j - 1]; in ieee80211_key_alloc()
391 for (j = 0; j < IEEE80211_CMAC_PN_LEN; j++) in ieee80211_key_alloc()
392 key->u.aes_cmac.rx_pn[j] = in ieee80211_key_alloc()
393 seq[IEEE80211_CMAC_PN_LEN - j - 1]; in ieee80211_key_alloc()
414 for (j = 0; j < len; j++) in ieee80211_key_alloc()
415 key->u.gen.rx_pn[i][j] = in ieee80211_key_alloc()
416 seq[len - j - 1]; in ieee80211_key_alloc()
Dtkip.c87 int i, j; in tkip_mixing_phase1() local
97 j = 2 * (i & 1); in tkip_mixing_phase1()
98 p1k[0] += tkipS(p1k[4] ^ get_unaligned_le16(tk + 0 + j)); in tkip_mixing_phase1()
99 p1k[1] += tkipS(p1k[0] ^ get_unaligned_le16(tk + 4 + j)); in tkip_mixing_phase1()
100 p1k[2] += tkipS(p1k[1] ^ get_unaligned_le16(tk + 8 + j)); in tkip_mixing_phase1()
101 p1k[3] += tkipS(p1k[2] ^ get_unaligned_le16(tk + 12 + j)); in tkip_mixing_phase1()
102 p1k[4] += tkipS(p1k[3] ^ get_unaligned_le16(tk + 0 + j)) + i; in tkip_mixing_phase1()
/net/netfilter/ipset/
Dip_set_hash_gen.h292 int i, j; in mtype_add_cidr() local
295 for (i = 0, j = -1; i < nets_length && h->nets[i].nets[n]; i++) { in mtype_add_cidr()
296 if (j != -1) in mtype_add_cidr()
299 j = i; in mtype_add_cidr()
305 if (j != -1) { in mtype_add_cidr()
306 for (; i > j; i--) { in mtype_add_cidr()
318 u8 i, j, net_end = nets_length - 1; in mtype_del_cidr() local
328 for (j = i; j < net_end && h->nets[j].nets[n]; j++) { in mtype_del_cidr()
329 h->nets[j].cidr[n] = h->nets[j + 1].cidr[n]; in mtype_del_cidr()
330 h->nets[j].nets[n] = h->nets[j + 1].nets[n]; in mtype_del_cidr()
[all …]
/net/atm/
Datm_sysfs.c36 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/sunrpc/
Dstats.c37 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/
Dip_vs_lblc.c266 int i, j; in ip_vs_lblc_full_check() local
268 for (i = 0, j = tbl->rover; i < IP_VS_LBLC_TAB_SIZE; i++) { in ip_vs_lblc_full_check()
269 j = (j + 1) & IP_VS_LBLC_TAB_MASK; in ip_vs_lblc_full_check()
272 hlist_for_each_entry_safe(en, next, &tbl->bucket[j], list) { in ip_vs_lblc_full_check()
283 tbl->rover = j; in ip_vs_lblc_full_check()
304 int i, j; in ip_vs_lblc_check_expire() local
324 for (i = 0, j = tbl->rover; i < IP_VS_LBLC_TAB_SIZE; i++) { in ip_vs_lblc_check_expire()
325 j = (j + 1) & IP_VS_LBLC_TAB_MASK; in ip_vs_lblc_check_expire()
328 hlist_for_each_entry_safe(en, next, &tbl->bucket[j], list) { in ip_vs_lblc_check_expire()
340 tbl->rover = j; in ip_vs_lblc_check_expire()
Dip_vs_lblcr.c429 int i, j; in ip_vs_lblcr_full_check() local
433 for (i = 0, j = tbl->rover; i < IP_VS_LBLCR_TAB_SIZE; i++) { in ip_vs_lblcr_full_check()
434 j = (j + 1) & IP_VS_LBLCR_TAB_MASK; in ip_vs_lblcr_full_check()
437 hlist_for_each_entry_safe(en, next, &tbl->bucket[j], list) { in ip_vs_lblcr_full_check()
447 tbl->rover = j; in ip_vs_lblcr_full_check()
468 int i, j; in ip_vs_lblcr_check_expire() local
488 for (i = 0, j = tbl->rover; i < IP_VS_LBLCR_TAB_SIZE; i++) { in ip_vs_lblcr_check_expire()
489 j = (j + 1) & IP_VS_LBLCR_TAB_MASK; in ip_vs_lblcr_check_expire()
492 hlist_for_each_entry_safe(en, next, &tbl->bucket[j], list) { in ip_vs_lblcr_check_expire()
504 tbl->rover = j; in ip_vs_lblcr_check_expire()
/net/ceph/
Dosdmap.c69 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/ipv4/
Dproc.c296 int j; in icmpmsg_put_line() local
300 for (j = 0; j < count; ++j) in icmpmsg_put_line()
302 type[j] & 0x100 ? "Out" : "In", in icmpmsg_put_line()
303 type[j] & 0xff); in icmpmsg_put_line()
305 for (j = 0; j < count; ++j) in icmpmsg_put_line()
306 seq_printf(seq, " %lu", vals[j]); in icmpmsg_put_line()
Dinet_timewait_sock.c423 unsigned long j; in inet_twdr_twcal_tick() local
435 j = twdr->twcal_jiffie; in inet_twdr_twcal_tick()
438 if (time_before_eq(j, now)) { in inet_twdr_twcal_tick()
455 twdr->twcal_jiffie = j; in inet_twdr_twcal_tick()
460 mod_timer(&twdr->twcal_timer, j); in inet_twdr_twcal_tick()
464 j += 1 << INET_TWDR_RECYCLE_TICK; in inet_twdr_twcal_tick()
/net/wireless/
Dlib80211_crypt_tkip.c244 int i, j; in tkip_mixing_phase1() local
254 j = 2 * (i & 1); in tkip_mixing_phase1()
255 TTAK[0] += _S_(TTAK[4] ^ Mk16(TK[1 + j], TK[0 + j])); in tkip_mixing_phase1()
256 TTAK[1] += _S_(TTAK[0] ^ Mk16(TK[5 + j], TK[4 + j])); in tkip_mixing_phase1()
257 TTAK[2] += _S_(TTAK[1] ^ Mk16(TK[9 + j], TK[8 + j])); in tkip_mixing_phase1()
258 TTAK[3] += _S_(TTAK[2] ^ Mk16(TK[13 + j], TK[12 + j])); in tkip_mixing_phase1()
259 TTAK[4] += _S_(TTAK[3] ^ Mk16(TK[1 + j], TK[0 + j])) + i; in tkip_mixing_phase1()
Dutil.c1281 int i, j, iftype; in cfg80211_iter_combinations() local
1320 for (j = 0; j < c->n_limits; j++) { in cfg80211_iter_combinations()
1321 all_iftypes |= limits[j].types; in cfg80211_iter_combinations()
1322 if (!(limits[j].types & BIT(iftype))) in cfg80211_iter_combinations()
1324 if (limits[j].max < iftype_num[iftype]) in cfg80211_iter_combinations()
1326 limits[j].max -= iftype_num[iftype]; in cfg80211_iter_combinations()
1503 int i, j; in ieee80211_get_ratemask() local
1517 for (j = 0; j < sband->n_bitrates; j++) { in ieee80211_get_ratemask()
1518 if (sband->bitrates[j].bitrate == rate) { in ieee80211_get_ratemask()
1520 *mask |= BIT(j); in ieee80211_get_ratemask()
/net/8021q/
Dvlan_core.c121 int i, j; in vlan_group_free() local
124 for (j = 0; j < VLAN_GROUP_ARRAY_SPLIT_PARTS; j++) in vlan_group_free()
125 kfree(grp->vlan_devices_arrays[i][j]); in vlan_group_free()
/net/sunrpc/auth_gss/
Dgss_mech_switch.c258 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/
Debtables.c656 unsigned int i, j, hook = 0, hookmask = 0; in ebt_check_entry() local
710 j = 0; in ebt_check_entry()
711 ret = EBT_WATCHER_ITERATE(e, ebt_check_watcher, &tgpar, &j); in ebt_check_entry()
753 EBT_WATCHER_ITERATE(e, ebt_cleanup_watcher, net, &j); in ebt_check_entry()
838 unsigned int i, j, k, udc_cnt; in translate_table() local
855 for (j = i + 1; j < NF_BR_NUMHOOKS; j++) { in translate_table()
856 if (!newinfo->hook_entry[j]) in translate_table()
858 if (newinfo->hook_entry[j] <= newinfo->hook_entry[i]) { in translate_table()
862 i = j; in translate_table()
867 j = 0; /* holds the up to now counted entries for the chain */ in translate_table()
[all …]

1234