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.c548 int i, j; in nf_conntrack_ftp_fini() local
550 for (j = 0; j < 2; j++) { in nf_conntrack_ftp_fini()
551 if (ftp[i][j].me == NULL) in nf_conntrack_ftp_fini()
556 ftp[i][j].tuple.src.l3num, ports[i]); in nf_conntrack_ftp_fini()
557 nf_conntrack_helper_unregister(&ftp[i][j]); in nf_conntrack_ftp_fini()
566 int i, j = -1, ret = 0; in nf_conntrack_ftp_init() local
580 for (j = 0; j < 2; j++) { in nf_conntrack_ftp_init()
581 ftp[i][j].data_len = sizeof(struct nf_ct_ftp_master); in nf_conntrack_ftp_init()
582 ftp[i][j].tuple.src.u.tcp.port = htons(ports[i]); in nf_conntrack_ftp_init()
583 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
73 for (j = 0; j < optl; ++j) { in tcpoptstrip_mangle_packet()
74 o = opt[i+j]; in tcpoptstrip_mangle_packet()
76 if ((i + j) % 2 == 0) { in tcpoptstrip_mangle_packet()
Dnf_conntrack_extend.c126 int i, j; in update_alloc_size() local
146 for (j = 0; j < NF_CT_EXT_NUM; j++) { in update_alloc_size()
147 t2 = rcu_dereference_protected(nf_ct_ext_types[j], in update_alloc_size()
Dnf_conntrack_sip.c1672 int i, j; in nf_conntrack_sip_fini() local
1675 for (j = 0; j < ARRAY_SIZE(sip[i]); j++) { in nf_conntrack_sip_fini()
1676 if (sip[i][j].me == NULL) in nf_conntrack_sip_fini()
1678 nf_conntrack_helper_unregister(&sip[i][j]); in nf_conntrack_sip_fini()
1685 int i, j, ret; in nf_conntrack_sip_init() local
1707 for (j = 0; j < ARRAY_SIZE(sip[i]); j++) { in nf_conntrack_sip_init()
1708 sip[i][j].data_len = sizeof(struct nf_ct_sip_master); in nf_conntrack_sip_init()
1709 sip[i][j].tuple.src.u.udp.port = htons(ports[i]); in nf_conntrack_sip_init()
1710 sip[i][j].expect_policy = sip_exp_policy; in nf_conntrack_sip_init()
1711 sip[i][j].expect_class_max = SIP_EXPECT_MAX; in nf_conntrack_sip_init()
[all …]
/net/mac80211/
Daes_ccm.c57 int i, j, last_len, num_blocks; in ieee80211_aes_ccm_encrypt() local
72 for (j = 1; j <= num_blocks; j++) { in ieee80211_aes_ccm_encrypt()
73 int blen = (j == num_blocks && last_len) ? in ieee80211_aes_ccm_encrypt()
81 b_0[14] = (j >> 8) & 0xff; in ieee80211_aes_ccm_encrypt()
82 b_0[15] = j & 0xff; in ieee80211_aes_ccm_encrypt()
96 int i, j, last_len, num_blocks; in ieee80211_aes_ccm_decrypt() local
111 for (j = 1; j <= num_blocks; j++) { in ieee80211_aes_ccm_decrypt()
112 int blen = (j == num_blocks && last_len) ? in ieee80211_aes_ccm_decrypt()
116 b_0[14] = (j >> 8) & 0xff; in ieee80211_aes_ccm_decrypt()
117 b_0[15] = j & 0xff; in ieee80211_aes_ccm_decrypt()
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()
54 int r = bitrates[j % 4]; in minstrel_ht_stats_dump()
58 MCS_GROUP_RATES + j); in minstrel_ht_stats_dump()
Drc80211_pid_algo.c156 int adj, i, j, tmp; in rate_control_pid_sample() local
181 j = rinfo[spinfo->txrate_idx].rev_index; in rate_control_pid_sample()
186 rinfo[j].diff = rinfo[i].diff + tmp; in rate_control_pid_sample()
301 int i, j, tmp; in rate_control_pid_rate_init() local
322 for (j = 0; j < sband->n_bitrates - i; j++) in rate_control_pid_rate_init()
323 if (unlikely(sband->bitrates[rinfo[j].index].bitrate > in rate_control_pid_rate_init()
324 sband->bitrates[rinfo[j + 1].index].bitrate)) { in rate_control_pid_rate_init()
325 tmp = rinfo[j].index; in rate_control_pid_rate_init()
326 rinfo[j].index = rinfo[j + 1].index; in rate_control_pid_rate_init()
327 rinfo[j + 1].index = tmp; in rate_control_pid_rate_init()
[all …]
Drate.c306 int j; in rate_idx_match_legacy_mask() local
309 for (j = rate->idx; j >= 0; j--) { in rate_idx_match_legacy_mask()
310 if (mask & (1 << j)) { in rate_idx_match_legacy_mask()
312 rate->idx = j; in rate_idx_match_legacy_mask()
318 for (j = rate->idx + 1; j < n_bitrates; j++) { in rate_idx_match_legacy_mask()
319 if (mask & (1 << j)) { in rate_idx_match_legacy_mask()
321 rate->idx = j; in rate_idx_match_legacy_mask()
331 int i, j; in rate_idx_match_mcs_mask() local
343 for (j = rbit; j >= 0; j--) in rate_idx_match_mcs_mask()
344 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].cur_tp > mi->r[tp_list[j - 1]].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()
549 int i, j; in minstrel_init_cck_rates() local
555 for (i = 0, j = 0; i < sband->n_bitrates; i++) { in minstrel_init_cck_rates()
561 for (j = 0; j < ARRAY_SIZE(bitrates); j++) { in minstrel_init_cck_rates()
[all …]
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()
Dkey.c317 int i, j, err; in ieee80211_key_alloc() local
359 for (j = 0; j < CCMP_PN_LEN; j++) in ieee80211_key_alloc()
360 key->u.ccmp.rx_pn[i][j] = in ieee80211_key_alloc()
361 seq[CCMP_PN_LEN - j - 1]; in ieee80211_key_alloc()
378 for (j = 0; j < CMAC_PN_LEN; j++) in ieee80211_key_alloc()
379 key->u.aes_cmac.rx_pn[j] = in ieee80211_key_alloc()
380 seq[CMAC_PN_LEN - j - 1]; in ieee80211_key_alloc()
/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/netfilter/ipset/
Dip_set_hash_gen.h302 int i, j; in mtype_add_cidr() local
305 for (i = 0, j = -1; i < nets_length && h->nets[i].nets; i++) { in mtype_add_cidr()
306 if (j != -1) in mtype_add_cidr()
309 j = i; in mtype_add_cidr()
315 if (j != -1) { in mtype_add_cidr()
316 for (; i > j; i--) { in mtype_add_cidr()
328 u8 i, j; in mtype_del_cidr() local
337 for (j = i; j < nets_length - 1 && h->nets[j].nets; j++) { in mtype_del_cidr()
338 h->nets[j].cidr = h->nets[j + 1].cidr; in mtype_del_cidr()
339 h->nets[j].nets = h->nets[j + 1].nets; in mtype_del_cidr()
[all …]
/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/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.c272 int i, j; in ip_vs_lblc_full_check() local
274 for (i=0, j=tbl->rover; i<IP_VS_LBLC_TAB_SIZE; i++) { in ip_vs_lblc_full_check()
275 j = (j + 1) & IP_VS_LBLC_TAB_MASK; in ip_vs_lblc_full_check()
278 hlist_for_each_entry_safe(en, next, &tbl->bucket[j], list) { in ip_vs_lblc_full_check()
289 tbl->rover = j; in ip_vs_lblc_full_check()
310 int i, j; in ip_vs_lblc_check_expire() local
330 for (i=0, j=tbl->rover; i<IP_VS_LBLC_TAB_SIZE; i++) { in ip_vs_lblc_check_expire()
331 j = (j + 1) & IP_VS_LBLC_TAB_MASK; in ip_vs_lblc_check_expire()
334 hlist_for_each_entry_safe(en, next, &tbl->bucket[j], list) { in ip_vs_lblc_check_expire()
346 tbl->rover = j; in ip_vs_lblc_check_expire()
Dip_vs_lblcr.c439 int i, j; in ip_vs_lblcr_full_check() local
443 for (i=0, j=tbl->rover; i<IP_VS_LBLCR_TAB_SIZE; i++) { in ip_vs_lblcr_full_check()
444 j = (j + 1) & IP_VS_LBLCR_TAB_MASK; in ip_vs_lblcr_full_check()
447 hlist_for_each_entry_safe(en, next, &tbl->bucket[j], list) { in ip_vs_lblcr_full_check()
457 tbl->rover = j; in ip_vs_lblcr_full_check()
478 int i, j; in ip_vs_lblcr_check_expire() local
498 for (i=0, j=tbl->rover; i<IP_VS_LBLCR_TAB_SIZE; i++) { in ip_vs_lblcr_check_expire()
499 j = (j + 1) & IP_VS_LBLCR_TAB_MASK; in ip_vs_lblcr_check_expire()
502 hlist_for_each_entry_safe(en, next, &tbl->bucket[j], list) { in ip_vs_lblcr_check_expire()
514 tbl->rover = j; in ip_vs_lblcr_check_expire()
/net/ipv4/
Dproc.c282 int j; in icmpmsg_put_line() local
286 for (j = 0; j < count; ++j) in icmpmsg_put_line()
288 type[j] & 0x100 ? "Out" : "In", in icmpmsg_put_line()
289 type[j] & 0xff); in icmpmsg_put_line()
291 for (j = 0; j < count; ++j) in icmpmsg_put_line()
292 seq_printf(seq, " %lu", vals[j]); in icmpmsg_put_line()
Dinet_timewait_sock.c424 unsigned long j; in inet_twdr_twcal_tick() local
436 j = twdr->twcal_jiffie; in inet_twdr_twcal_tick()
439 if (time_before_eq(j, now)) { in inet_twdr_twcal_tick()
456 twdr->twcal_jiffie = j; in inet_twdr_twcal_tick()
461 mod_timer(&twdr->twcal_timer, j); in inet_twdr_twcal_tick()
465 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.c1220 int i, j; in cfg80211_can_use_iftype_chan() local
1354 for (j = 0; j < c->n_limits; j++) { in cfg80211_can_use_iftype_chan()
1355 all_iftypes |= limits[j].types; in cfg80211_can_use_iftype_chan()
1356 if (!(limits[j].types & BIT(iftype))) in cfg80211_can_use_iftype_chan()
1358 if (limits[j].max < num[iftype]) in cfg80211_can_use_iftype_chan()
1360 limits[j].max -= num[iftype]; in cfg80211_can_use_iftype_chan()
1393 int i, j; in ieee80211_get_ratemask() local
1407 for (j = 0; j < sband->n_bitrates; j++) { in ieee80211_get_ratemask()
1408 if (sband->bitrates[j].bitrate == rate) { in ieee80211_get_ratemask()
1410 *mask |= BIT(j); in ieee80211_get_ratemask()
/net/sunrpc/auth_gss/
Dgss_mech_switch.c259 int j, i = 0; in gss_mech_list_pseudoflavors() local
263 for (j = 0; j < pos->gm_pf_num; j++) { in gss_mech_list_pseudoflavors()
268 array_ptr[i++] = pos->gm_pfs[j].pseudoflavor; in gss_mech_list_pseudoflavors()
/net/8021q/
Dvlan_core.c160 int i, j; in vlan_group_free() local
163 for (j = 0; j < VLAN_GROUP_ARRAY_SPLIT_PARTS; j++) in vlan_group_free()
164 kfree(grp->vlan_devices_arrays[i][j]); in vlan_group_free()

1234