Home
last modified time | relevance | path

Searched refs:array (Results 1 – 13 of 13) sorted by relevance

/net/netfilter/
Dnf_conntrack_ftp.c119 static int try_number(const char *data, size_t dlen, u_int32_t array[], in try_number() argument
124 memset(array, 0, sizeof(array[0])*array_size); in try_number()
129 array[i] = array[i]*10 + *data - '0'; in try_number()
154 u_int32_t array[6]; in try_rfc959() local
156 length = try_number(data, dlen, array, 6, ',', term); in try_rfc959()
160 cmd->u3.ip = htonl((array[0] << 24) | (array[1] << 16) | in try_rfc959()
161 (array[2] << 8) | array[3]); in try_rfc959()
162 cmd->u.tcp.port = htons((array[4] << 8) | array[5]); in try_rfc959()
220 u_int32_t array[4]; in try_eprt() local
223 length = try_number(data + 3, dlen - 3, array, 4, '.', delim); in try_eprt()
[all …]
/net/8021q/
Dvlan.h132 struct net_device **array; in __vlan_group_get_device() local
134 array = vg->vlan_devices_arrays[pidx] in __vlan_group_get_device()
136 return array ? array[vlan_id % VLAN_GROUP_ARRAY_PART_LEN] : NULL; in __vlan_group_get_device()
150 struct net_device **array; in vlan_group_set_device() local
153 array = vg->vlan_devices_arrays[vlan_proto_idx(vlan_proto)] in vlan_group_set_device()
155 array[vlan_id % VLAN_GROUP_ARRAY_PART_LEN] = dev; in vlan_group_set_device()
Dvlan.c57 struct net_device **array; in vlan_group_prealloc_vid() local
65 array = vg->vlan_devices_arrays[pidx][vidx]; in vlan_group_prealloc_vid()
66 if (array != NULL) in vlan_group_prealloc_vid()
70 array = kzalloc(size, GFP_KERNEL); in vlan_group_prealloc_vid()
71 if (array == NULL) in vlan_group_prealloc_vid()
74 vg->vlan_devices_arrays[pidx][vidx] = array; in vlan_group_prealloc_vid()
/net/irda/
Dqos.c167 static inline int value_index(__u32 value, __u32 *array, int size) in value_index() argument
172 if (array[i] == value) in value_index()
183 static inline __u32 index_value(int index, __u32 *array) in index_value() argument
185 return array[index]; in index_value()
225 static inline int value_lower_bits(__u32 value, __u32 *array, int size, __u16 *field) in value_lower_bits() argument
236 if (array[i] >= value) in value_lower_bits()
251 static inline int value_highest_bit(__u32 value, __u32 *array, int size, __u16 *field) in value_highest_bit() argument
259 if (array[i] <= value) in value_highest_bit()
/net/ipv6/
Daddrconf.c4228 __s32 *array, int bytes) in ipv6_store_devconf() argument
4232 memset(array, 0, bytes); in ipv6_store_devconf()
4233 array[DEVCONF_FORWARDING] = cnf->forwarding; in ipv6_store_devconf()
4234 array[DEVCONF_HOPLIMIT] = cnf->hop_limit; in ipv6_store_devconf()
4235 array[DEVCONF_MTU6] = cnf->mtu6; in ipv6_store_devconf()
4236 array[DEVCONF_ACCEPT_RA] = cnf->accept_ra; in ipv6_store_devconf()
4237 array[DEVCONF_ACCEPT_REDIRECTS] = cnf->accept_redirects; in ipv6_store_devconf()
4238 array[DEVCONF_AUTOCONF] = cnf->autoconf; in ipv6_store_devconf()
4239 array[DEVCONF_DAD_TRANSMITS] = cnf->dad_transmits; in ipv6_store_devconf()
4240 array[DEVCONF_RTR_SOLICITS] = cnf->rtr_solicits; in ipv6_store_devconf()
[all …]
/net/netfilter/ipvs/
Dip_vs_sync.c1703 struct task_struct **array = NULL, *task; in start_sync_thread() local
1759 array = kzalloc(count * sizeof(struct task_struct *), in start_sync_thread()
1761 if (!array) in start_sync_thread()
1800 array[id] = task; in start_sync_thread()
1806 ipvs->backup_threads = array; in start_sync_thread()
1830 kthread_stop(array[count]); in start_sync_thread()
1832 kfree(array); in start_sync_thread()
1846 struct task_struct **array; in stop_sync_thread() local
1887 array = ipvs->backup_threads; in stop_sync_thread()
1893 task_pid_nr(array[id])); in stop_sync_thread()
[all …]
/net/rds/
Daf_rds.c43 char *rds_str_array(char **array, size_t elements, size_t index) in rds_str_array() argument
45 if ((index < elements) && array[index]) in rds_str_array()
46 return array[index]; in rds_str_array()
Drds.h578 char *rds_str_array(char **array, size_t elements, size_t index);
/net/dccp/
Dfeat.c1035 static u8 dccp_feat_prefer(u8 preferred_value, u8 *array, u8 array_len) in dccp_feat_prefer() argument
1039 if (array != NULL) { in dccp_feat_prefer()
1041 if (array[i] == preferred_value) { in dccp_feat_prefer()
1042 array[i] = array[0]; in dccp_feat_prefer()
1046 array[0] = preferred_value; in dccp_feat_prefer()
/net/ipv4/
Dcipso_ipv4.c1149 u16 array[CIPSO_V4_TAG_RNG_CAT_MAX * 2]; in cipso_v4_map_cat_rng_hton() local
1166 array[array_cnt++] = iter; in cipso_v4_map_cat_rng_hton()
1175 array[array_cnt++] = iter; in cipso_v4_map_cat_rng_hton()
1179 *((__be16 *)&net_cat[iter]) = htons(array[--array_cnt]); in cipso_v4_map_cat_rng_hton()
1182 if (array[array_cnt] != 0) { in cipso_v4_map_cat_rng_hton()
1183 *((__be16 *)&net_cat[iter]) = htons(array[array_cnt]); in cipso_v4_map_cat_rng_hton()
/net/sunrpc/
Dauth.c210 rpcauth_list_flavors(rpc_authflavor_t *array, int size) in rpcauth_list_flavors() argument
229 array[result++] = ops->au_flavor; in rpcauth_list_flavors()
242 array[result++] = pseudos[i]; in rpcauth_list_flavors()
/net/iucv/
Diucv.c1115 struct iucv_array *array; in iucv_message_receive_iprmdata() local
1129 for (array = buffer; size > 0; array++) { in iucv_message_receive_iprmdata()
1130 copy = min_t(size_t, size, array->length); in iucv_message_receive_iprmdata()
1131 memcpy((u8 *)(addr_t) array->address, in iucv_message_receive_iprmdata()
/net/irda/irlan/
Dirlan_common.c982 int irlan_insert_array_param(struct sk_buff *skb, char *name, __u8 *array, in irlan_insert_array_param() argument
985 return __irlan_insert_param(skb, name, IRLAN_ARRAY, 0, 0, array, in irlan_insert_array_param()