Home
last modified time | relevance | path

Searched refs:af (Results 1 – 25 of 129) sorted by relevance

123456

/linux/drivers/media/platform/ti/omap3isp/
H A Disph3a_af.c26 static void h3a_af_setup_regs(struct ispstat *af, void *priv) in h3a_af_setup_regs() argument
38 if (af->state == ISPSTAT_DISABLED) in h3a_af_setup_regs()
41 isp_reg_writel(af->isp, af->active_buf->dma_addr, OMAP3_ISP_IOMEM_H3A, in h3a_af_setup_regs()
44 if (!af->update) in h3a_af_setup_regs()
51 isp_reg_writel(af->isp, pax1, OMAP3_ISP_IOMEM_H3A, ISPH3A_AFPAX1); in h3a_af_setup_regs()
60 isp_reg_writel(af->isp, pax2, OMAP3_ISP_IOMEM_H3A, ISPH3A_AFPAX2); in h3a_af_setup_regs()
67 isp_reg_writel(af->isp, paxstart, OMAP3_ISP_IOMEM_H3A, in h3a_af_setup_regs()
71 isp_reg_writel(af->isp, conf->iir.h_start, in h3a_af_setup_regs()
82 isp_reg_writel(af->isp, coef, OMAP3_ISP_IOMEM_H3A, in h3a_af_setup_regs()
91 isp_reg_writel(af->isp, coef, OMAP3_ISP_IOMEM_H3A, in h3a_af_setup_regs()
[all …]
/linux/net/netfilter/
H A Dx_tables.c91 u_int8_t af = target->family; in xt_register_target() local
93 mutex_lock(&xt[af].mutex); in xt_register_target()
94 list_add(&target->list, &xt[af].target); in xt_register_target()
95 mutex_unlock(&xt[af].mutex); in xt_register_target()
103 u_int8_t af = target->family; in xt_unregister_target() local
105 mutex_lock(&xt[af].mutex); in xt_unregister_target()
107 mutex_unlock(&xt[af].mutex); in xt_unregister_target()
141 u_int8_t af = match->family; in xt_register_match() local
143 mutex_lock(&xt[af].mutex); in xt_register_match()
144 list_add(&match->list, &xt[af].match); in xt_register_match()
[all …]
/linux/net/netfilter/ipvs/
H A Dip_vs_proto_ah_esp.c40 ah_esp_conn_fill_param_proto(struct netns_ipvs *ipvs, int af, in ah_esp_conn_fill_param_proto() argument
45 ip_vs_conn_fill_param(ipvs, af, IPPROTO_UDP, in ah_esp_conn_fill_param_proto()
49 ip_vs_conn_fill_param(ipvs, af, IPPROTO_UDP, in ah_esp_conn_fill_param_proto()
55 ah_esp_conn_in_get(struct netns_ipvs *ipvs, int af, const struct sk_buff *skb, in ah_esp_conn_in_get() argument
61 ah_esp_conn_fill_param_proto(ipvs, af, iph, &p); in ah_esp_conn_in_get()
72 IP_VS_DBG_ADDR(af, &iph->saddr), in ah_esp_conn_in_get()
73 IP_VS_DBG_ADDR(af, &iph->daddr)); in ah_esp_conn_in_get()
81 ah_esp_conn_out_get(struct netns_ipvs *ipvs, int af, const struct sk_buff *skb, in ah_esp_conn_out_get() argument
87 ah_esp_conn_fill_param_proto(ipvs, af, iph, &p); in ah_esp_conn_out_get()
94 IP_VS_DBG_ADDR(af, &iph->saddr), in ah_esp_conn_out_get()
[all …]
H A Dip_vs_proto_udp.c28 udp_csum_check(int af, struct sk_buff *skb, struct ip_vs_protocol *pp);
31 udp_conn_schedule(struct netns_ipvs *ipvs, int af, struct sk_buff *skb, in udp_conn_schedule() argument
56 svc = ip_vs_service_find(ipvs, af, skb->mark, iph->protocol, in udp_conn_schedule()
59 svc = ip_vs_service_find(ipvs, af, skb->mark, iph->protocol, in udp_conn_schedule()
93 udp_fast_csum_update(int af, struct udphdr *uhdr, in udp_fast_csum_update() argument
99 if (af == AF_INET6) in udp_fast_csum_update()
115 udp_partial_csum_update(int af, struct udphdr *uhdr, in udp_partial_csum_update() argument
121 if (af == AF_INET6) in udp_partial_csum_update()
145 if (cp->af == AF_INET6 && iph->fragoffs) in udp_snat_handler()
158 if (!udp_csum_check(cp->af, skb, pp)) in udp_snat_handler()
[all …]
H A Dip_vs_ftp.c100 __u16 af, char **start, char **end) in ip_vs_ftp_get_addrport() argument
190 if (af == AF_INET6 && *s != '2') in ip_vs_ftp_get_addrport()
192 if (af == AF_INET && *s != '1') in ip_vs_ftp_get_addrport()
202 if (af == AF_INET6) { in ip_vs_ftp_get_addrport()
284 &from, &port, cp->af, in ip_vs_ftp_out()
305 &from, &port, cp->af, in ip_vs_ftp_out()
310 IP_VS_DBG_ADDR(cp->af, &from), ntohs(port), in ip_vs_ftp_out()
311 IP_VS_DBG_ADDR(cp->af, &cp->caddr), 0); in ip_vs_ftp_out()
320 ip_vs_conn_fill_param(cp->ipvs, cp->af, in ip_vs_ftp_out()
329 cp->af, ipvsh->protocol, &cp->caddr, in ip_vs_ftp_out()
[all …]
H A Dip_vs_conn.c107 static unsigned int ip_vs_conn_hashkey(struct netns_ipvs *ipvs, int af, unsigned int proto, in ip_vs_conn_hashkey() argument
112 if (af == AF_INET6) in ip_vs_conn_hashkey()
140 return ip_vs_conn_hashkey(p->ipvs, p->af, p->protocol, addr, port); in ip_vs_conn_hashkey_param()
147 ip_vs_conn_fill_param(cp->ipvs, cp->af, cp->protocol, in ip_vs_conn_hashkey_conn()
274 cp->af == p->af && in __ip_vs_conn_in_get()
275 ip_vs_addr_equal(p->af, p->caddr, &cp->caddr) && in __ip_vs_conn_in_get()
276 ip_vs_addr_equal(p->af, p->vaddr, &cp->vaddr) && in __ip_vs_conn_in_get()
306 IP_VS_DBG_ADDR(p->af, p->caddr), ntohs(p->cport), in ip_vs_conn_in_get()
307 IP_VS_DBG_ADDR(p->af, p->vaddr), ntohs(p->vport), in ip_vs_conn_in_get()
315 int af, const struct sk_buff *skb, in ip_vs_conn_fill_param_proto() argument
[all …]
H A Dip_vs_core.c236 ip_vs_conn_fill_param(svc->ipvs, svc->af, protocol, caddr, cport, vaddr, in ip_vs_conn_fill_param_persist()
279 if (svc->af == AF_INET6) in ip_vs_sched_persist()
288 IP_VS_DBG_ADDR(svc->af, src_addr), ntohs(src_port), in ip_vs_sched_persist()
289 IP_VS_DBG_ADDR(svc->af, dst_addr), ntohs(dst_port), in ip_vs_sched_persist()
290 IP_VS_DBG_ADDR(svc->af, &snet)); in ip_vs_sched_persist()
371 ct = ip_vs_conn_new(&param, dest->af, &dest->addr, dport, in ip_vs_sched_persist()
397 ip_vs_conn_fill_param(svc->ipvs, svc->af, iph->protocol, src_addr, in ip_vs_sched_persist()
400 cp = ip_vs_conn_new(&param, dest->af, &dest->addr, dport, flags, dest, in ip_vs_sched_persist()
480 IP_VS_DBG_PKT(12, svc->af, pp, skb, iph->off, in ip_vs_schedule()
492 svc->af, skb, iph); in ip_vs_schedule()
[all …]
H A Dip_vs_proto_tcp.c32 tcp_csum_check(int af, struct sk_buff *skb, struct ip_vs_protocol *pp);
35 tcp_conn_schedule(struct netns_ipvs *ipvs, int af, struct sk_buff *skb, in tcp_conn_schedule() argument
68 svc = ip_vs_service_find(ipvs, af, skb->mark, iph->protocol, in tcp_conn_schedule()
71 svc = ip_vs_service_find(ipvs, af, skb->mark, iph->protocol, in tcp_conn_schedule()
105 tcp_fast_csum_update(int af, struct tcphdr *tcph, in tcp_fast_csum_update() argument
111 if (af == AF_INET6) in tcp_fast_csum_update()
126 tcp_partial_csum_update(int af, struct tcphdr *tcph, in tcp_partial_csum_update() argument
132 if (af == AF_INET6) in tcp_partial_csum_update()
156 if (cp->af == AF_INET6 && iph->fragoffs) in tcp_snat_handler()
169 if (!tcp_csum_check(cp->af, skb, pp)) in tcp_snat_handler()
[all …]
H A Dip_vs_lblc.c90 int af; /* address family */ member
149 ip_vs_lblc_hashkey(int af, const union nf_inet_addr *addr) in ip_vs_lblc_hashkey() argument
154 if (af == AF_INET6) in ip_vs_lblc_hashkey()
169 unsigned int hash = ip_vs_lblc_hashkey(en->af, &en->addr); in ip_vs_lblc_hash()
178 ip_vs_lblc_get(int af, struct ip_vs_lblc_table *tbl, in ip_vs_lblc_get() argument
181 unsigned int hash = ip_vs_lblc_hashkey(af, addr); in ip_vs_lblc_get()
185 if (ip_vs_addr_equal(af, &en->addr, addr)) in ip_vs_lblc_get()
198 u16 af, struct ip_vs_dest *dest) in ip_vs_lblc_new() argument
202 en = ip_vs_lblc_get(af, tbl, daddr); in ip_vs_lblc_new()
212 en->af = af; in ip_vs_lblc_new()
[all …]
H A Dip_vs_lblcr.c200 IP_VS_DBG_ADDR(least->af, &least->addr), in ip_vs_dest_set_min()
246 IP_VS_DBG_ADDR(most->af, &most->addr), ntohs(most->port), in ip_vs_dest_set_max()
260 int af; /* address family */ member
312 ip_vs_lblcr_hashkey(int af, const union nf_inet_addr *addr) in ip_vs_lblcr_hashkey() argument
317 if (af == AF_INET6) in ip_vs_lblcr_hashkey()
332 unsigned int hash = ip_vs_lblcr_hashkey(en->af, &en->addr); in ip_vs_lblcr_hash()
341 ip_vs_lblcr_get(int af, struct ip_vs_lblcr_table *tbl, in ip_vs_lblcr_get() argument
344 unsigned int hash = ip_vs_lblcr_hashkey(af, addr); in ip_vs_lblcr_get()
348 if (ip_vs_addr_equal(af, &en->addr, addr)) in ip_vs_lblcr_get()
361 u16 af, struct ip_vs_dest *dest) in ip_vs_lblcr_new() argument
[all …]
H A Dip_vs_sh.c84 ip_vs_sh_hashkey(int af, const union nf_inet_addr *addr, in ip_vs_sh_hashkey() argument
90 if (af == AF_INET6) in ip_vs_sh_hashkey()
107 unsigned int hash = ip_vs_sh_hashkey(svc->af, addr, port, 0); in ip_vs_sh_get()
129 ihash = ip_vs_sh_hashkey(svc->af, addr, port, 0); in ip_vs_sh_get_fallback()
137 IP_VS_DBG_ADDR(dest->af, &dest->addr), ntohs(dest->port)); in ip_vs_sh_get_fallback()
144 hash = ip_vs_sh_hashkey(svc->af, addr, port, roffset); in ip_vs_sh_get_fallback()
152 IP_VS_DBG_ADDR(dest->af, &dest->addr), in ip_vs_sh_get_fallback()
191 i, IP_VS_DBG_ADDR(dest->af, &dest->addr), in ip_vs_sh_reassign()
337 IP_VS_DBG_ADDR(svc->af, hash_addr), in ip_vs_sh_schedule()
338 IP_VS_DBG_ADDR(dest->af, &dest->addr), in ip_vs_sh_schedule()
H A Dip_vs_dh.c71 static inline unsigned int ip_vs_dh_hashkey(int af, const union nf_inet_addr *addr) in ip_vs_dh_hashkey() argument
76 if (af == AF_INET6) in ip_vs_dh_hashkey()
88 ip_vs_dh_get(int af, struct ip_vs_dh_state *s, const union nf_inet_addr *addr) in ip_vs_dh_get() argument
90 return rcu_dereference(s->buckets[ip_vs_dh_hashkey(af, addr)].dest); in ip_vs_dh_get()
222 dest = ip_vs_dh_get(svc->af, s, &iph->daddr); in ip_vs_dh_schedule()
232 IP_VS_DBG_ADDR(svc->af, &iph->daddr), in ip_vs_dh_schedule()
233 IP_VS_DBG_ADDR(dest->af, &dest->addr), in ip_vs_dh_schedule()
H A Dip_vs_mh.c89 ip_vs_mh_hashkey(int af, const union nf_inet_addr *addr, in ip_vs_mh_hashkey() argument
96 if (af == AF_INET6) in ip_vs_mh_hashkey()
143 ds->offset = ip_vs_mh_hashkey(svc->af, &dest->addr, in ip_vs_mh_permutate()
146 ds->skip = ip_vs_mh_hashkey(svc->af, &dest->addr, in ip_vs_mh_permutate()
238 unsigned int hash = ip_vs_mh_hashkey(svc->af, addr, port, &s->hash1, 0) in ip_vs_mh_get()
255 ihash = ip_vs_mh_hashkey(svc->af, addr, port, in ip_vs_mh_get_fallback()
264 IP_VS_DBG_ADDR(dest->af, &dest->addr), ntohs(dest->port)); in ip_vs_mh_get_fallback()
271 hash = ip_vs_mh_hashkey(svc->af, addr, port, &s->hash1, in ip_vs_mh_get_fallback()
280 IP_VS_DBG_ADDR(dest->af, &dest->addr), in ip_vs_mh_get_fallback()
311 IP_VS_DBG_ADDR(svc->af, &svc->addr), in ip_vs_mh_reassign()
[all …]
H A Dip_vs_pe_sip.c74 retc = ip_vs_fill_iph_skb(p->af, skb, false, &iph); in ip_vs_sip_fill_param()
113 if (ct->af == p->af && in ip_vs_sip_ct_match()
114 ip_vs_addr_equal(p->af, p->caddr, &ct->caddr) && in ip_vs_sip_ct_match()
117 ip_vs_addr_equal(p->protocol == IPPROTO_IP ? AF_UNSPEC : p->af, in ip_vs_sip_ct_match()
129 IP_VS_DBG_ADDR(p->af, p->vaddr), ntohs(p->vport), in ip_vs_sip_ct_match()
/linux/net/sctp/
H A Dbind_addr.c222 struct sctp_af *af; in sctp_bind_addrs_to_raw() local
247 af = sctp_get_af_specific(addr->a.v4.sin_family); in sctp_bind_addrs_to_raw()
248 len = af->to_addr_param(&addr->a, &rawaddr); in sctp_bind_addrs_to_raw()
271 struct sctp_af *af; in sctp_raw_to_bind_addrs() local
278 af = sctp_get_af_specific(param_type2af(param->type)); in sctp_raw_to_bind_addrs()
279 if (unlikely(!af) || in sctp_raw_to_bind_addrs()
280 !af->from_addr_param(&addr, rawaddr, htons(port), 0)) { in sctp_raw_to_bind_addrs()
346 if (sp->pf->af->cmp_addr(&laddr->a, &laddr2->a) && in sctp_bind_addrs_check()
404 struct sctp_af *af; in sctp_bind_addr_state() local
406 af = sctp_get_af_specific(addr->sa.sa_family); in sctp_bind_addr_state()
[all …]
H A Dinput.c99 struct sctp_af *af; in sctp_rcv() local
139 af = sctp_get_af_specific(family); in sctp_rcv()
140 if (unlikely(!af)) in sctp_rcv()
142 SCTP_INPUT_CB(skb)->af = af; in sctp_rcv()
145 af->from_skb(&src, skb, 1); in sctp_rcv()
146 af->from_skb(&dest, skb, 0); in sctp_rcv()
147 dif = af->skb_iif(skb); in sctp_rcv()
148 sdif = af->skb_sdif(skb); in sctp_rcv()
161 if (!af->addr_valid(&src, NULL, skb) || in sctp_rcv()
162 !af->addr_valid(&dest, NULL, skb)) in sctp_rcv()
[all …]
/linux/tools/testing/selftests/net/
H A Dsk_so_peek_off.c13 static char *afstr(int af, int proto) in afstr() argument
16 return af == AF_INET ? "TCP/IPv4" : "TCP/IPv6"; in afstr()
18 return af == AF_INET ? "UDP/IPv4" : "UDP/IPv6"; in afstr()
21 int sk_peek_offset_probe(sa_family_t af, int proto) in sk_peek_offset_probe() argument
28 s = socket(af, type, proto); in sk_peek_offset_probe()
35 printf("%s does not support SO_PEEK_OFF\n", afstr(af, proto)); in sk_peek_offset_probe()
57 static int sk_peek_offset_test(sa_family_t af, int proto) in sk_peek_offset_test() argument
73 a.sa.sa_family = af; in sk_peek_offset_test()
75 s[0] = recv_sock = socket(af, type, proto); in sk_peek_offset_test()
76 s[1] = socket(af, type, proto); in sk_peek_offset_test()
[all …]
/linux/include/net/
H A Dip_vs.h71 ip_vs_fill_iph_skb_off(int af, const struct sk_buff *skb, int offset, in ip_vs_fill_iph_skb_off() argument
78 if (af == AF_INET6) { in ip_vs_fill_iph_skb_off()
115 ip_vs_fill_iph_skb_icmp(int af, const struct sk_buff *skb, int offset, in ip_vs_fill_iph_skb_icmp() argument
123 return ip_vs_fill_iph_skb_off(af, skb, offset, hdr_flags, iphdr); in ip_vs_fill_iph_skb_icmp()
127 ip_vs_fill_iph_skb(int af, const struct sk_buff *skb, bool inverse, in ip_vs_fill_iph_skb() argument
135 return ip_vs_fill_iph_skb_off(af, skb, skb_network_offset(skb), in ip_vs_fill_iph_skb()
151 static inline void ip_vs_addr_copy(int af, union nf_inet_addr *dst, in ip_vs_addr_copy() argument
155 if (af == AF_INET6) in ip_vs_addr_copy()
162 static inline void ip_vs_addr_set(int af, union nf_inet_addr *dst, in ip_vs_addr_set() argument
166 if (af == AF_INET6) { in ip_vs_addr_set()
[all …]
/linux/drivers/pinctrl/nomadik/
H A Dpinctrl-abx500.c250 struct alternate_functions af = pct->soc->alternate_functions[gpio]; in abx500_set_mode() local
263 if (((alt_setting == ABX500_ALT_A) && (af.gpiosel_bit == UNUSED)) || in abx500_set_mode()
264 ((alt_setting == ABX500_ALT_B) && (af.alt_bit1 == UNUSED)) || in abx500_set_mode()
265 ((alt_setting == ABX500_ALT_C) && (af.alt_bit2 == UNUSED))) { in abx500_set_mode()
283 if (af.alt_bit1 != UNUSED) in abx500_set_mode()
298 if (af.alt_bit1 != UNUSED) { in abx500_set_mode()
306 af.alt_bit1, in abx500_set_mode()
307 !!(af.alta_val & BIT(0))); in abx500_set_mode()
311 if (af.alt_bit2 != UNUSED) in abx500_set_mode()
314 af.alt_bit2, in abx500_set_mode()
[all …]
/linux/include/linux/netfilter/
H A Dx_tables.h238 u_int8_t af; /* address/protocol family */ member
319 struct xt_match *xt_find_match(u8 af, const char *name, u8 revision);
320 struct xt_match *xt_request_find_match(u8 af, const char *name, u8 revision);
321 struct xt_target *xt_request_find_target(u8 af, const char *name, u8 revision);
322 int xt_find_revision(u8 af, const char *name, u8 revision, int target,
325 struct xt_table *xt_find_table(struct net *net, u8 af, const char *name);
326 struct xt_table *xt_find_table_lock(struct net *net, u_int8_t af,
328 struct xt_table *xt_request_find_table_lock(struct net *net, u_int8_t af,
332 int xt_proto_init(struct net *net, u_int8_t af);
333 void xt_proto_fini(struct net *net, u_int8_t af);
[all …]
/linux/fs/afs/
H A Dfile.c93 int afs_cache_wb_key(struct afs_vnode *vnode, struct afs_file *af) in afs_cache_wb_key() argument
101 wbk->key = af->key; in afs_cache_wb_key()
112 af->wb = wbk; in afs_cache_wb_key()
118 af->wb = p; in afs_cache_wb_key()
129 struct afs_file *af; in afs_open() local
141 af = kzalloc(sizeof(*af), GFP_KERNEL); in afs_open()
142 if (!af) { in afs_open()
146 af->key = key; in afs_open()
153 ret = afs_cache_wb_key(vnode, af); in afs_open()
163 file->private_data = af; in afs_open()
[all …]
/linux/sound/soc/codecs/
H A Dwm8737.c332 u16 af = 0; in wm8737_hw_params() local
359 af |= 0x8; in wm8737_hw_params()
362 af |= 0x10; in wm8737_hw_params()
365 af |= 0x18; in wm8737_hw_params()
371 snd_soc_component_update_bits(component, WM8737_AUDIO_FORMAT, WM8737_WL_MASK, af); in wm8737_hw_params()
404 u16 af = 0; in wm8737_set_dai_fmt() local
408 af |= WM8737_MS; in wm8737_set_dai_fmt()
418 af |= 0x2; in wm8737_set_dai_fmt()
423 af |= 0x1; in wm8737_set_dai_fmt()
426 af |= 0x3; in wm8737_set_dai_fmt()
[all …]
/linux/lib/zlib_dfltcc/
H A Ddfltcc.c30 memmove(&dfltcc_state->af, &dfltcc_state->param, sizeof(dfltcc_state->af)); in dfltcc_reset_state()
32 memset(&dfltcc_state->af, 0, sizeof(dfltcc_state->af)); in dfltcc_reset_state()
/linux/include/linux/soc/pxa/
H A Dmfp.h405 #define MFP_CFG(pin, af) \ argument
407 (MFP_PIN(MFP_PIN_##pin) | MFP_##af))
409 #define MFP_CFG_DRV(pin, af, drv) \ argument
411 (MFP_PIN(MFP_PIN_##pin) | MFP_##af | MFP_##drv))
413 #define MFP_CFG_LPM(pin, af, lpm) \ argument
415 (MFP_PIN(MFP_PIN_##pin) | MFP_##af | MFP_LPM_##lpm))
417 #define MFP_CFG_X(pin, af, drv, lpm) \ argument
419 (MFP_PIN(MFP_PIN_##pin) | MFP_##af | MFP_##drv | MFP_LPM_##lpm))
/linux/tools/perf/util/
H A Dprobe-finder.c1394 struct available_var_finder *af = data; in collect_variables_cb()
1399 vl = &af->vls[af->nvls - 1]; in collect_variables_cb()
1404 ret = convert_variable_location(die_mem, af->pf.addr, in collect_variables_cb()
1405 af->pf.fb_ops, &af->pf.sp_die, in collect_variables_cb()
1406 &af->pf, /*tvar=*/NULL); in collect_variables_cb()
1409 bool externs = !af->child; in collect_variables_cb()
1430 ret2 = die_get_var_range(&af->pf.sp_die, in collect_variables_cb()
1443 if (af in collect_variables_cb()
1395 struct available_var_finder *af = data; collect_variables_cb() local
1454 available_var_finder_overlap(struct available_var_finder * af) available_var_finder_overlap() argument
1469 struct available_var_finder *af = add_available_vars() local
1532 struct available_var_finder af = { debuginfo__find_available_vars_at() local
[all...]

123456