/net/netfilter/ |
D | nf_conntrack_ftp.c | 124 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 …]
|
D | nf_conntrack_tftp.c | 107 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 …]
|
D | nf_conntrack_sane.c | 177 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 …]
|
D | nf_conntrack_irc.c | 121 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 …]
|
D | nf_log.c | 28 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 85 for (i = NFPROTO_UNSPEC; i < NFPROTO_NUMPROTO; i++) in nf_log_register() [all …]
|
/net/mac80211/ |
D | rate.c | 202 u8 i; in rc_send_low_basicrate() local 211 for (i = *idx + 1; i <= sband->n_bitrates; i++) { in rc_send_low_basicrate() 212 if (basic_rates & (1 << i)) { in rc_send_low_basicrate() 213 *idx = i; in rc_send_low_basicrate() 227 int i; in __rate_control_send_low() local 236 for (i = 0; i < sband->n_bitrates; i++) { in __rate_control_send_low() 237 if (!(rate_mask & BIT(i))) in __rate_control_send_low() 240 if ((rate_flags & sband->bitrates[i].flags) != rate_flags) in __rate_control_send_low() 243 if (!rate_supported(sta, sband->band, i)) in __rate_control_send_low() 246 info->control.rates[0].idx = i; in __rate_control_send_low() [all …]
|
D | ethtool.c | 75 int i, q; in ieee80211_get_stats() local 82 data[i++] += sta->rx_packets; \ in ieee80211_get_stats() 83 data[i++] += sta->rx_bytes; \ in ieee80211_get_stats() 84 data[i++] += sta->num_duplicates; \ in ieee80211_get_stats() 85 data[i++] += sta->rx_fragments; \ in ieee80211_get_stats() 86 data[i++] += sta->rx_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->tx_fragments; \ in ieee80211_get_stats() 91 data[i++] += sta->tx_filtered_count; \ in ieee80211_get_stats() [all …]
|
D | rc80211_minstrel.c | 65 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() 74 minstrel_sort_best_tp_rates(struct minstrel_sta_info *mi, int i, u8 *tp_list) in minstrel_sort_best_tp_rates() argument 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() 83 tp_list[j] = i; in minstrel_sort_best_tp_rates() 102 int i = 0; in minstrel_update_rates() local 109 minstrel_set_rate(mi, ratetbl, i++, mi->max_tp_rate[0]); in minstrel_update_rates() 113 minstrel_set_rate(mi, ratetbl, i++, mi->max_tp_rate[1]); in minstrel_update_rates() [all …]
|
/net/ceph/ |
D | pagevec.c | 49 int i; in ceph_put_page_vector() local 51 for (i = 0; i < num_pages; i++) { in ceph_put_page_vector() 53 set_page_dirty_lock(pages[i]); in ceph_put_page_vector() 54 put_page(pages[i]); in ceph_put_page_vector() 65 int i; in ceph_release_page_vector() local 67 for (i = 0; i < num_pages; i++) in ceph_release_page_vector() 68 __free_pages(pages[i], 0); in ceph_release_page_vector() 79 int i; in ceph_alloc_page_vector() local 84 for (i = 0; i < num_pages; i++) { in ceph_alloc_page_vector() 85 pages[i] = __page_cache_alloc(flags); in ceph_alloc_page_vector() [all …]
|
/net/ipv4/ |
D | proc.c | 314 int i, count; in icmpmsg_put() local 320 for (i = 0; i < ICMPMSG_MIB_MAX; i++) { in icmpmsg_put() 321 val = atomic_long_read(&net->mib.icmpmsg_statistics->mibs[i]); in icmpmsg_put() 323 type[count] = i; in icmpmsg_put() 338 int i; in icmp_put() local 343 for (i = 0; icmpmibmap[i].name != NULL; i++) in icmp_put() 344 seq_printf(seq, " In%s", icmpmibmap[i].name); in icmp_put() 346 for (i = 0; icmpmibmap[i].name != NULL; i++) in icmp_put() 347 seq_printf(seq, " Out%s", icmpmibmap[i].name); in icmp_put() 352 for (i = 0; icmpmibmap[i].name != NULL; i++) in icmp_put() [all …]
|
/net/core/ |
D | secure_seq.c | 48 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/ceph/crush/ |
D | mapper.c | 38 __u32 i; in crush_find_rule() local 40 for (i = 0; i < map->max_rules; i++) { in crush_find_rule() 41 if (map->rules[i] && in crush_find_rule() 42 map->rules[i]->mask.ruleset == ruleset && in crush_find_rule() 43 map->rules[i]->mask.type == type && in crush_find_rule() 44 map->rules[i]->mask.min_size <= size && in crush_find_rule() 45 map->rules[i]->mask.max_size >= size) in crush_find_rule() 46 return i; in crush_find_rule() 73 unsigned int i, s; in bucket_perm_choose() local 89 for (i = 0; i < bucket->size; i++) in bucket_perm_choose() [all …]
|
/net/sunrpc/auth_gss/ |
D | gss_mech_switch.c | 60 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() 87 int i, status; in gss_mech_svc_setup() local 89 for (i = 0; i < gm->gm_pf_num; i++) { in gss_mech_svc_setup() 90 pf = &gm->gm_pfs[i]; in gss_mech_svc_setup() 206 int i; in mech_supports_pseudoflavor() local 208 for (i = 0; i < gm->gm_pf_num; i++) { in mech_supports_pseudoflavor() 209 if (gm->gm_pfs[i].pseudoflavor == pseudoflavor) in mech_supports_pseudoflavor() 258 int j, i = 0; in gss_mech_list_pseudoflavors() local [all …]
|
D | gss_krb5_keys.c | 77 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/netfilter/ipset/ |
D | ip_set_list_set.c | 57 u32 i, cmdflags = opt->cmdflags; in list_set_ktest() local 64 for (i = 0; i < map->size; i++) { in list_set_ktest() 65 e = list_set_elem(set, map, i); in list_set_ktest() 94 u32 i; in list_set_kadd() local 97 for (i = 0; i < map->size; i++) { in list_set_kadd() 98 e = list_set_elem(set, map, i); in list_set_kadd() 118 u32 i; in list_set_kdel() local 121 for (i = 0; i < map->size; i++) { in list_set_kdel() 122 e = list_set_elem(set, map, i); in list_set_kdel() 156 id_eq(const struct ip_set *set, u32 i, ip_set_id_t id) in id_eq() argument [all …]
|
D | ip_set_hash_gen.h | 78 #define hbucket(h, i) (&((h)->bucket[i])) argument 146 #define __CIDR(cidr, i) (cidr[i]) argument 148 #define __CIDR(cidr, i) (cidr) argument 152 #define CIDR(cidr, i) (__CIDR(cidr, i) + 1) argument 154 #define CIDR(cidr, i) (__CIDR(cidr, i)) argument 292 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() 298 else if (h->nets[i].cidr[n] < cidr) in mtype_add_cidr() 299 j = i; in mtype_add_cidr() 300 else if (h->nets[i].cidr[n] == cidr) { in mtype_add_cidr() [all …]
|
/net/sched/ |
D | sch_mqprio.c | 49 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 125 for (i = 0; i < dev->num_tx_queues; i++) { in mqprio_init() [all …]
|
D | em_canid.c | 59 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 …]
|
D | sch_hhf.c | 270 int i; in hhf_classify() local 277 for (i = 0; i < HHF_ARRAYS_CNT; i++) in hhf_classify() 278 bitmap_zero(q->hhf_valid_bits[i], HHF_ARRAYS_LEN); in hhf_classify() 296 for (i = 0; i < HHF_ARRAYS_CNT - 1; i++) { in hhf_classify() 298 filter_pos[i] = tmp_hash & HHF_BIT_MASK; in hhf_classify() 299 xorsum ^= filter_pos[i]; in hhf_classify() 307 for (i = 0; i < HHF_ARRAYS_CNT; i++) { in hhf_classify() 310 if (!test_bit(filter_pos[i], q->hhf_valid_bits[i])) { in hhf_classify() 311 q->hhf_arrays[i][filter_pos[i]] = 0; in hhf_classify() 312 __set_bit(filter_pos[i], q->hhf_valid_bits[i]); in hhf_classify() [all …]
|
/net/dsa/ |
D | dsa.c | 85 int i; in dsa_switch_setup() local 117 for (i = 0; i < DSA_MAX_PORTS; i++) { in dsa_switch_setup() 120 name = pd->port_names[i]; in dsa_switch_setup() 131 dst->cpu_port = i; in dsa_switch_setup() 133 ds->dsa_port_mask |= 1 << i; in dsa_switch_setup() 135 ds->phys_port_mask |= 1 << i; in dsa_switch_setup() 140 if (!valid_name_found && i == DSA_MAX_PORTS) { in dsa_switch_setup() 213 for (i = 0; i < DSA_MAX_PORTS; i++) { in dsa_switch_setup() 216 if (!(ds->phys_port_mask & (1 << i))) in dsa_switch_setup() 219 slave_dev = dsa_slave_create(ds, parent, i, pd->port_names[i]); in dsa_switch_setup() [all …]
|
/net/netlink/ |
D | genetlink.c | 114 int i; in genl_family_find_byname() local 116 for (i = 0; i < GENL_FAM_TAB_SIZE; i++) in genl_family_find_byname() 117 list_for_each_entry(f, genl_family_chain(i), family_list) in genl_family_find_byname() 126 int i; in genl_get_cmd() local 128 for (i = 0; i < family->n_ops; i++) in genl_get_cmd() 129 if (family->ops[i].cmd == cmd) in genl_get_cmd() 130 return &family->ops[i]; in genl_get_cmd() 141 int i; in genl_generate_id() local 143 for (i = 0; i <= GENL_MAX_ID - GENL_MIN_ID; i++) { in genl_generate_id() 159 int i; in genl_allocate_reserve_groups() local [all …]
|
/net/tipc/ |
D | bearer.c | 61 u32 i; in tipc_media_find() local 63 for (i = 0; media_info_array[i] != NULL; i++) { in tipc_media_find() 64 if (!strcmp(media_info_array[i]->name, name)) in tipc_media_find() 67 return media_info_array[i]; in tipc_media_find() 75 u32 i; in media_find_id() local 77 for (i = 0; media_info_array[i] != NULL; i++) { in media_find_id() 78 if (media_info_array[i]->type_id == type) in media_find_id() 81 return media_info_array[i]; in media_find_id() 98 u32 i; in tipc_media_addr_printf() local 101 for (i = 0; i < sizeof(a->value); i++) in tipc_media_addr_printf() [all …]
|
/net/bridge/netfilter/ |
D | ebtables.c | 111 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/ |
D | xfrm_algo.c | 625 int i, status; in xfrm_find_algo() local 627 for (i = 0; i < algo_list->entries; i++) { in xfrm_find_algo() 628 if (!match(list + i, data)) in xfrm_find_algo() 631 if (list[i].available) in xfrm_find_algo() 632 return &list[i]; in xfrm_find_algo() 637 status = crypto_has_alg(list[i].name, algo_list->type, in xfrm_find_algo() 642 list[i].available = status; in xfrm_find_algo() 643 return &list[i]; in xfrm_find_algo() 757 int i, status; in xfrm_probe_algs() local 761 for (i = 0; i < aalg_entries(); i++) { in xfrm_probe_algs() [all …]
|
/net/wireless/ |
D | wext-spy.c | 53 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 …]
|