Home
last modified time | relevance | path

Searched refs:i (Results 1 – 25 of 509) sorted by relevance

12345678910>>...21

/net/netfilter/
Dnf_conntrack_ftp.c124 u_int32_t i, len; in try_number() local
129 for (i = 0, len = 0; len < dlen && i < array_size; len++, data++) { in try_number()
131 array[i] = array[i]*10 + *data - '0'; in try_number()
134 i++; in try_number()
139 if ((*data == term || !term) && i == array_size - 1) in try_number()
143 len, i, *data); in try_number()
184 int i; in try_rfc1123() local
185 for (i = 0; i < dlen; i++) in try_rfc1123()
186 if (isdigit(data[i])) in try_rfc1123()
189 if (i == dlen) in try_rfc1123()
[all …]
Dnf_conntrack_tftp.c107 int i, j; in nf_conntrack_tftp_fini() local
109 for (i = 0; i < ports_c; i++) { 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
122 for (i = 0; i < ports_c; i++) { in nf_conntrack_tftp_init()
123 memset(&tftp[i], 0, sizeof(tftp[i])); in nf_conntrack_tftp_init()
125 tftp[i][0].tuple.src.l3num = AF_INET; in nf_conntrack_tftp_init()
126 tftp[i][1].tuple.src.l3num = AF_INET6; 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()
[all …]
Dnf_conntrack_sane.c177 int i, j; in nf_conntrack_sane_fini() local
179 for (i = 0; i < ports_c; i++) { 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
204 for (i = 0; i < ports_c; i++) { in nf_conntrack_sane_init()
205 sane[i][0].tuple.src.l3num = PF_INET; in nf_conntrack_sane_init()
206 sane[i][1].tuple.src.l3num = PF_INET6; 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()
[all …]
Dnf_log.c28 int i; in __find_logger() local
30 for (i = 0; i < NF_LOG_TYPE_MAX; i++) { in __find_logger()
31 if (loggers[pf][i] == NULL) in __find_logger()
34 log = nft_log_dereference(loggers[pf][i]); in __find_logger()
60 int i; in nf_log_unset() local
64 for (i = 0; i < NFPROTO_NUMPROTO; i++) { in nf_log_unset()
65 log = nft_log_dereference(net->nf.nf_loggers[i]); in nf_log_unset()
67 RCU_INIT_POINTER(net->nf.nf_loggers[i], NULL); in nf_log_unset()
77 int i; in nf_log_register() local
86 for (i = NFPROTO_UNSPEC; i < NFPROTO_NUMPROTO; i++) { in nf_log_register()
[all …]
Dnf_conntrack_irc.c121 int i, ret = NF_ACCEPT; in help() local
166 for (i = 0; i < ARRAY_SIZE(dccprotos); i++) { in help()
167 if (memcmp(data, dccprotos[i], strlen(dccprotos[i]))) { in help()
171 data += strlen(dccprotos[i]); in help()
172 pr_debug("DCC %s detected\n", dccprotos[i]); in help()
237 int i, ret; in nf_conntrack_irc_init() local
255 for (i = 0; i < ports_c; i++) { in nf_conntrack_irc_init()
256 irc[i].tuple.src.l3num = AF_INET; in nf_conntrack_irc_init()
257 irc[i].tuple.src.u.tcp.port = htons(ports[i]); in nf_conntrack_irc_init()
258 irc[i].tuple.dst.protonum = IPPROTO_TCP; in nf_conntrack_irc_init()
[all …]
/net/mac80211/
Drate.c263 u8 i; in rc_send_low_basicrate() local
272 for (i = *idx + 1; i <= sband->n_bitrates; i++) { in rc_send_low_basicrate()
273 if (basic_rates & (1 << i)) { in rc_send_low_basicrate()
274 *idx = i; in rc_send_low_basicrate()
288 int i; in __rate_control_send_low() local
297 for (i = 0; i < sband->n_bitrates; i++) { in __rate_control_send_low()
298 if (!(rate_mask & BIT(i))) in __rate_control_send_low()
301 if ((rate_flags & sband->bitrates[i].flags) != rate_flags) in __rate_control_send_low()
304 if (!rate_supported(sta, sband->band, i)) in __rate_control_send_low()
307 info->control.rates[0].idx = i; in __rate_control_send_low()
[all …]
Dethtool.c75 int i, q; in ieee80211_get_stats() local
82 data[i++] += sta->rx_stats.packets; \ in ieee80211_get_stats()
83 data[i++] += sta->rx_stats.bytes; \ in ieee80211_get_stats()
84 data[i++] += sta->rx_stats.num_duplicates; \ in ieee80211_get_stats()
85 data[i++] += sta->rx_stats.fragments; \ in ieee80211_get_stats()
86 data[i++] += sta->rx_stats.dropped; \ in ieee80211_get_stats()
88 data[i++] += sinfo.tx_packets; \ in ieee80211_get_stats()
89 data[i++] += sinfo.tx_bytes; \ in ieee80211_get_stats()
90 data[i++] += sta->status_stats.filtered; \ in ieee80211_get_stats()
91 data[i++] += sta->status_stats.retry_failed; \ in ieee80211_get_stats()
[all …]
Drc80211_minstrel.c65 int i = rix; in rix_to_ndx() local
66 for (i = rix; i >= 0; i--) in rix_to_ndx()
67 if (mi->r[i].rix == rix) in rix_to_ndx()
69 return i; in rix_to_ndx()
93 minstrel_sort_best_tp_rates(struct minstrel_sta_info *mi, int i, u8 *tp_list) in minstrel_sort_best_tp_rates() argument
97 struct minstrel_rate_stats *cur_mrs = &mi->r[i].stats; in minstrel_sort_best_tp_rates()
101 if (minstrel_get_tp_avg(&mi->r[i], cur_mrs->prob_ewma) <= in minstrel_sort_best_tp_rates()
109 tp_list[j] = i; in minstrel_sort_best_tp_rates()
128 int i = 0; in minstrel_update_rates() local
135 minstrel_set_rate(mi, ratetbl, i++, mi->max_tp_rate[0]); in minstrel_update_rates()
[all …]
Dvht.c30 int i; in ieee80211_apply_vhtcap_overrides() local
87 for (i = 0; i < 8; i++) { in ieee80211_apply_vhtcap_overrides()
90 m = (rxmcs_mask >> 2*i) & IEEE80211_VHT_MCS_NOT_SUPPORTED; in ieee80211_apply_vhtcap_overrides()
91 n = (rxmcs_n >> 2*i) & IEEE80211_VHT_MCS_NOT_SUPPORTED; in ieee80211_apply_vhtcap_overrides()
92 c = (rxmcs_cap >> 2*i) & IEEE80211_VHT_MCS_NOT_SUPPORTED; in ieee80211_apply_vhtcap_overrides()
96 rxmcs_cap &= ~(3 << 2*i); in ieee80211_apply_vhtcap_overrides()
97 rxmcs_cap |= (rxmcs_n & (3 << 2*i)); in ieee80211_apply_vhtcap_overrides()
100 m = (txmcs_mask >> 2*i) & IEEE80211_VHT_MCS_NOT_SUPPORTED; in ieee80211_apply_vhtcap_overrides()
101 n = (txmcs_n >> 2*i) & IEEE80211_VHT_MCS_NOT_SUPPORTED; in ieee80211_apply_vhtcap_overrides()
102 c = (txmcs_cap >> 2*i) & IEEE80211_VHT_MCS_NOT_SUPPORTED; in ieee80211_apply_vhtcap_overrides()
[all …]
/net/ceph/
Dpagevec.c47 int i; in ceph_put_page_vector() local
49 for (i = 0; i < num_pages; i++) { in ceph_put_page_vector()
51 set_page_dirty_lock(pages[i]); in ceph_put_page_vector()
52 put_page(pages[i]); in ceph_put_page_vector()
60 int i; in ceph_release_page_vector() local
62 for (i = 0; i < num_pages; i++) in ceph_release_page_vector()
63 __free_pages(pages[i], 0); in ceph_release_page_vector()
74 int i; in ceph_alloc_page_vector() local
79 for (i = 0; i < num_pages; i++) { in ceph_alloc_page_vector()
80 pages[i] = __page_cache_alloc(flags); in ceph_alloc_page_vector()
[all …]
/net/ipv4/
Dproc.c331 int i, count; in icmpmsg_put() local
337 for (i = 0; i < ICMPMSG_MIB_MAX; i++) { in icmpmsg_put()
338 val = atomic_long_read(&net->mib.icmpmsg_statistics->mibs[i]); in icmpmsg_put()
340 type[count] = i; in icmpmsg_put()
355 int i; in icmp_put() local
360 for (i = 0; icmpmibmap[i].name != NULL; i++) in icmp_put()
361 seq_printf(seq, " In%s", icmpmibmap[i].name); in icmp_put()
363 for (i = 0; icmpmibmap[i].name != NULL; i++) in icmp_put()
364 seq_printf(seq, " Out%s", icmpmibmap[i].name); in icmp_put()
369 for (i = 0; icmpmibmap[i].name != NULL; i++) in icmp_put()
[all …]
/net/core/
Dsecure_seq.c48 u32 i; in secure_tcpv6_sequence_number() local
52 for (i = 0; i < 4; i++) in secure_tcpv6_sequence_number()
53 secret[i] = net_secret[i] + (__force u32)daddr[i]; in secure_tcpv6_sequence_number()
56 for (i = 5; i < MD5_MESSAGE_BYTES / 4; i++) in secure_tcpv6_sequence_number()
57 secret[i] = net_secret[i]; in secure_tcpv6_sequence_number()
70 u32 i; in secure_ipv6_port_ephemeral() local
74 for (i = 0; i < 4; i++) in secure_ipv6_port_ephemeral()
75 secret[i] = net_secret[i] + (__force u32) daddr[i]; in secure_ipv6_port_ephemeral()
77 for (i = 5; i < MD5_MESSAGE_BYTES / 4; i++) in secure_ipv6_port_ephemeral()
78 secret[i] = net_secret[i]; in secure_ipv6_port_ephemeral()
[all …]
/net/bluetooth/
Decc.c68 int i; in vli_clear() local
70 for (i = 0; i < NUM_ECC_DIGITS; i++) in vli_clear()
71 vli[i] = 0; in vli_clear()
77 int i; in vli_is_zero() local
79 for (i = 0; i < NUM_ECC_DIGITS; i++) { in vli_is_zero()
80 if (vli[i]) in vli_is_zero()
96 int i; in vli_num_digits() local
102 for (i = NUM_ECC_DIGITS - 1; i >= 0 && vli[i] == 0; i--); in vli_num_digits()
104 return (i + 1); in vli_num_digits()
110 unsigned int i, num_digits; in vli_num_bits() local
[all …]
/net/ceph/crush/
Dmapper.c42 __u32 i; in crush_find_rule() local
44 for (i = 0; i < map->max_rules; i++) { in crush_find_rule()
45 if (map->rules[i] && in crush_find_rule()
46 map->rules[i]->mask.ruleset == ruleset && in crush_find_rule()
47 map->rules[i]->mask.type == type && in crush_find_rule()
48 map->rules[i]->mask.min_size <= size && in crush_find_rule()
49 map->rules[i]->mask.max_size >= size) in crush_find_rule()
50 return i; in crush_find_rule()
77 unsigned int i, s; in bucket_perm_choose() local
93 for (i = 0; i < bucket->size; i++) in bucket_perm_choose()
[all …]
/net/sunrpc/auth_gss/
Dgss_mech_switch.c60 int i; in gss_mech_free() local
62 for (i = 0; i < gm->gm_pf_num; i++) { in gss_mech_free()
63 pf = &gm->gm_pfs[i]; in gss_mech_free()
90 int i, status; in gss_mech_svc_setup() local
92 for (i = 0; i < gm->gm_pf_num; i++) { in gss_mech_svc_setup()
93 pf = &gm->gm_pfs[i]; in gss_mech_svc_setup()
212 int i; in mech_supports_pseudoflavor() local
214 for (i = 0; i < gm->gm_pf_num; i++) { in mech_supports_pseudoflavor()
215 if (gm->gm_pfs[i].pseudoflavor == pseudoflavor) in mech_supports_pseudoflavor()
264 int j, i = 0; in gss_mech_list_pseudoflavors() local
[all …]
Dgss_krb5_keys.c77 int byte, i, msbit; in krb5_nfold() local
95 for (i = ulcm-1; i >= 0; i--) { in krb5_nfold()
103 + (((inbits << 3) + 13) * (i/inbits)) in krb5_nfold()
106 + ((inbits - (i % inbits)) << 3) in krb5_nfold()
115 byte += out[i % outbits]; in krb5_nfold()
116 out[i % outbits] = byte & 0xff; in krb5_nfold()
125 for (i = outbits - 1; i >= 0; i--) { in krb5_nfold()
127 byte += out[i]; in krb5_nfold()
128 out[i] = byte & 0xff; in krb5_nfold()
252 int i; in mit_des_fixup_key_parity() local
[all …]
/net/sched/
Dsch_mqprio.c49 int i, j; in mqprio_parse_opt() local
56 for (i = 0; i < TC_BITMASK + 1; i++) { in mqprio_parse_opt()
57 if (qopt->prio_tc_map[i] >= qopt->num_tc) in mqprio_parse_opt()
71 for (i = 0; i < qopt->num_tc; i++) { in mqprio_parse_opt()
72 unsigned int last = qopt->offset[i] + qopt->count[i]; in mqprio_parse_opt()
77 if (qopt->offset[i] >= dev->real_num_tx_queues || in mqprio_parse_opt()
78 !qopt->count[i] || in mqprio_parse_opt()
83 for (j = i + 1; j < qopt->num_tc; j++) { in mqprio_parse_opt()
98 int i, err = -EOPNOTSUPP; in mqprio_init() local
123 for (i = 0; i < dev->num_tx_queues; i++) { in mqprio_init()
[all …]
Dsch_hhf.c253 int i; in hhf_classify() local
260 for (i = 0; i < HHF_ARRAYS_CNT; i++) in hhf_classify()
261 bitmap_zero(q->hhf_valid_bits[i], HHF_ARRAYS_LEN); in hhf_classify()
279 for (i = 0; i < HHF_ARRAYS_CNT - 1; i++) { in hhf_classify()
281 filter_pos[i] = tmp_hash & HHF_BIT_MASK; in hhf_classify()
282 xorsum ^= filter_pos[i]; in hhf_classify()
290 for (i = 0; i < HHF_ARRAYS_CNT; i++) { in hhf_classify()
293 if (!test_bit(filter_pos[i], q->hhf_valid_bits[i])) { in hhf_classify()
294 q->hhf_arrays[i][filter_pos[i]] = 0; in hhf_classify()
295 __set_bit(filter_pos[i], q->hhf_valid_bits[i]); in hhf_classify()
[all …]
Dem_canid.c59 int i; in em_canid_sff_match_add() local
85 for (i = 0; i < (1 << CAN_SFF_ID_BITS); i++) { in em_canid_sff_match_add()
86 if ((i & can_mask) == can_id) in em_canid_sff_match_add()
87 set_bit(i, cm->match_sff); in em_canid_sff_match_add()
102 int i; in em_canid_match() local
108 for (i = 0, lp = cm->rules_raw; in em_canid_match()
109 i < cm->eff_rules_count; i++, lp++) { in em_canid_match()
128 int i; in em_canid_change() local
156 for (i = 0; i < cm->rules_count; i++) { in em_canid_change()
157 if (conf[i].can_id & CAN_EFF_FLAG) { in em_canid_change()
[all …]
/net/netlink/
Dgenetlink.c117 int i; in genl_family_find_byname() local
119 for (i = 0; i < GENL_FAM_TAB_SIZE; i++) in genl_family_find_byname()
120 list_for_each_entry(f, genl_family_chain(i), family_list) in genl_family_find_byname()
129 int i; in genl_get_cmd() local
131 for (i = 0; i < family->n_ops; i++) in genl_get_cmd()
132 if (family->ops[i].cmd == cmd) in genl_get_cmd()
133 return &family->ops[i]; in genl_get_cmd()
144 int i; in genl_generate_id() local
146 for (i = 0; i <= GENL_MAX_ID - GENL_MIN_ID; i++) { in genl_generate_id()
162 int i; in genl_allocate_reserve_groups() local
[all …]
/net/bridge/netfilter/
Debtables.c111 int i = 0; in ebt_dev_check() local
120 while (entry[i] != '\0' && entry[i] != 1 && entry[i] == devname[i]) in ebt_dev_check()
121 i++; in ebt_dev_check()
122 return devname[i] != entry[i] && entry[i] != 1; in ebt_dev_check()
134 int verdict, i; in ebt_basic_match() local
162 for (i = 0; i < 6; i++) in ebt_basic_match()
163 verdict |= (h->h_source[i] ^ e->sourcemac[i]) & in ebt_basic_match()
164 e->sourcemsk[i]; in ebt_basic_match()
170 for (i = 0; i < 6; i++) in ebt_basic_match()
171 verdict |= (h->h_dest[i] ^ e->destmac[i]) & in ebt_basic_match()
[all …]
/net/xfrm/
Dxfrm_algo.c648 int i, status; in xfrm_find_algo() local
650 for (i = 0; i < algo_list->entries; i++) { in xfrm_find_algo()
651 if (!match(list + i, data)) in xfrm_find_algo()
654 if (list[i].available) in xfrm_find_algo()
655 return &list[i]; in xfrm_find_algo()
660 status = crypto_has_alg(list[i].name, algo_list->type, in xfrm_find_algo()
665 list[i].available = status; in xfrm_find_algo()
666 return &list[i]; in xfrm_find_algo()
780 int i, status; in xfrm_probe_algs() local
784 for (i = 0; i < aalg_entries(); i++) { in xfrm_probe_algs()
[all …]
/net/wireless/
Dwext-spy.c53 int i; in iw_handler_set_spy() local
56 for (i = 0; i < wrqu->data.length; i++) in iw_handler_set_spy()
57 memcpy(spydata->spy_address[i], address[i].sa_data, in iw_handler_set_spy()
81 int i; in iw_handler_get_spy() local
90 for (i = 0; i < spydata->spy_number; i++) { in iw_handler_get_spy()
91 memcpy(address[i].sa_data, spydata->spy_address[i], ETH_ALEN); in iw_handler_get_spy()
92 address[i].sa_family = AF_UNIX; in iw_handler_get_spy()
100 for (i = 0; i < spydata->spy_number; i++) in iw_handler_get_spy()
101 spydata->spy_stat[i].updated &= ~IW_QUAL_ALL_UPDATED; in iw_handler_get_spy()
197 int i; in wireless_spy_update() local
[all …]
/net/netfilter/ipset/
Dip_set_hash_gen.h87 #define hbucket(h, i) ((h)->bucket[i]) argument
118 #define __CIDR(cidr, i) (cidr[i]) argument
120 #define __CIDR(cidr, i) (cidr) argument
130 #define DCIDR_GET(cidr, i) (__CIDR(cidr, i) + 1) argument
133 #define DCIDR_GET(cidr, i) __CIDR(cidr, i) argument
290 int i, j; in mtype_add_cidr() local
293 for (i = 0, j = -1; i < nets_length && h->nets[i].cidr[n]; i++) { in mtype_add_cidr()
296 } else if (h->nets[i].cidr[n] < cidr) { in mtype_add_cidr()
297 j = i; in mtype_add_cidr()
298 } else if (h->nets[i].cidr[n] == cidr) { in mtype_add_cidr()
[all …]
/net/irda/
Dqos.c167 int i; in value_index() local
169 for (i=0; i < size; i++) in value_index()
170 if (array[i] == value) in value_index()
172 return i; in value_index()
225 int i; in value_lower_bits() local
229 for (i=0; i < size; i++) { in value_lower_bits()
234 if (array[i] >= value) in value_lower_bits()
238 if(i >= size) in value_lower_bits()
239 i = size - 1; /* Last item */ in value_lower_bits()
241 return i; in value_lower_bits()
[all …]

12345678910>>...21