Home
last modified time | relevance | path

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

12345

/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.c39 ah_esp_conn_fill_param_proto(struct netns_ipvs *ipvs, int af,
44 ip_vs_conn_fill_param(ipvs, af, IPPROTO_UDP, in ah_esp_conn_fill_param_proto()
48 ip_vs_conn_fill_param(ipvs, af, IPPROTO_UDP, in ah_esp_conn_fill_param_proto()
54 ah_esp_conn_in_get(struct netns_ipvs *ipvs, int af, const struct sk_buff *skb,
60 ah_esp_conn_fill_param_proto(ipvs, af, iph, &p); in ah_esp_conn_in_get()
71 IP_VS_DBG_ADDR(af, &iph->saddr), in ah_esp_conn_in_get()
72 IP_VS_DBG_ADDR(af, &iph->daddr)); in ah_esp_conn_in_get()
80 ah_esp_conn_out_get(struct netns_ipvs *ipvs, int af, const struct sk_buff *skb,
86 ah_esp_conn_fill_param_proto(ipvs, af, iph, &p); in ah_esp_conn_out_get()
93 IP_VS_DBG_ADDR(af, in ah_esp_conn_out_get()
40 ah_esp_conn_fill_param_proto(struct netns_ipvs * ipvs,int af,const struct ip_vs_iphdr * iph,struct ip_vs_conn_param * p) ah_esp_conn_fill_param_proto() argument
55 ah_esp_conn_in_get(struct netns_ipvs * ipvs,int af,const struct sk_buff * skb,const struct ip_vs_iphdr * iph) ah_esp_conn_in_get() argument
81 ah_esp_conn_out_get(struct netns_ipvs * ipvs,int af,const struct sk_buff * skb,const struct ip_vs_iphdr * iph) ah_esp_conn_out_get() argument
103 ah_esp_conn_schedule(struct netns_ipvs * ipvs,int af,struct sk_buff * skb,struct ip_vs_proto_data * pd,int * verdict,struct ip_vs_conn ** cpp,struct ip_vs_iphdr * iph) ah_esp_conn_schedule() argument
[all...]
H A Dip_vs_proto_udp.c27 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, udphoff)) in udp_snat_handler()
[all …]
H A Dip_vs_conn.c106 static unsigned int ip_vs_conn_hashkey(struct netns_ipvs *ipvs, int af, unsigned int proto, in ip_vs_conn_hashkey() argument
111 if (af == AF_INET6) in ip_vs_conn_hashkey()
139 return ip_vs_conn_hashkey(p->ipvs, p->af, p->protocol, addr, port); in ip_vs_conn_hashkey_param()
146 ip_vs_conn_fill_param(cp->ipvs, cp->af, cp->protocol, in ip_vs_conn_hashkey_conn()
273 cp->af == p->af && in __ip_vs_conn_in_get()
274 ip_vs_addr_equal(p->af, p->caddr, &cp->caddr) && in __ip_vs_conn_in_get()
275 ip_vs_addr_equal(p->af, p->vaddr, &cp->vaddr) && in __ip_vs_conn_in_get()
305 IP_VS_DBG_ADDR(p->af, p->caddr), ntohs(p->cport), in ip_vs_conn_in_get()
306 IP_VS_DBG_ADDR(p->af, p->vaddr), ntohs(p->vport), in ip_vs_conn_in_get()
314 int af, const struct sk_buff *skb, in ip_vs_conn_fill_param_proto() argument
[all …]
H A Dip_vs_proto_tcp.c31 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, tcphoff)) in tcp_snat_handler()
[all …]
H A Dip_vs_lblc.c89 int af; /* address family */ member
148 ip_vs_lblc_hashkey(int af, const union nf_inet_addr *addr) in ip_vs_lblc_hashkey() argument
153 if (af == AF_INET6) in ip_vs_lblc_hashkey()
168 unsigned int hash = ip_vs_lblc_hashkey(en->af, &en->addr); in ip_vs_lblc_hash()
177 ip_vs_lblc_get(int af, struct ip_vs_lblc_table *tbl, in ip_vs_lblc_get() argument
180 unsigned int hash = ip_vs_lblc_hashkey(af, addr); in ip_vs_lblc_get()
184 if (ip_vs_addr_equal(af, &en->addr, addr)) in ip_vs_lblc_get()
197 u16 af, struct ip_vs_dest *dest) in ip_vs_lblc_new() argument
201 en = ip_vs_lblc_get(af, tbl, daddr); in ip_vs_lblc_new()
211 en->af = af; in ip_vs_lblc_new()
[all …]
H A Dip_vs_lblcr.c199 IP_VS_DBG_ADDR(least->af, &least->addr), in ip_vs_dest_set_min()
245 IP_VS_DBG_ADDR(most->af, &most->addr), ntohs(most->port), in ip_vs_dest_set_max()
259 int af; /* address family */ member
311 ip_vs_lblcr_hashkey(int af, const union nf_inet_addr *addr) in ip_vs_lblcr_hashkey() argument
316 if (af == AF_INET6) in ip_vs_lblcr_hashkey()
331 unsigned int hash = ip_vs_lblcr_hashkey(en->af, &en->addr); in ip_vs_lblcr_hash()
340 ip_vs_lblcr_get(int af, struct ip_vs_lblcr_table *tbl, in ip_vs_lblcr_get() argument
343 unsigned int hash = ip_vs_lblcr_hashkey(af, addr); in ip_vs_lblcr_get()
347 if (ip_vs_addr_equal(af, &en->addr, addr)) in ip_vs_lblcr_get()
360 u16 af, struct ip_vs_dest *dest) in ip_vs_lblcr_new() argument
[all …]
H A Dip_vs_sh.c83 ip_vs_sh_hashkey(int af, const union nf_inet_addr *addr, in ip_vs_sh_hashkey() argument
89 if (af == AF_INET6) in ip_vs_sh_hashkey()
106 unsigned int hash = ip_vs_sh_hashkey(svc->af, addr, port, 0); in ip_vs_sh_get()
128 ihash = ip_vs_sh_hashkey(svc->af, addr, port, 0); in ip_vs_sh_get_fallback()
136 IP_VS_DBG_ADDR(dest->af, &dest->addr), ntohs(dest->port)); in ip_vs_sh_get_fallback()
143 hash = ip_vs_sh_hashkey(svc->af, addr, port, roffset); in ip_vs_sh_get_fallback()
151 IP_VS_DBG_ADDR(dest->af, &dest->addr), in ip_vs_sh_get_fallback()
190 i, IP_VS_DBG_ADDR(dest->af, &dest->addr), in ip_vs_sh_reassign()
336 IP_VS_DBG_ADDR(svc->af, hash_addr), in ip_vs_sh_schedule()
337 IP_VS_DBG_ADDR(dest->af, &dest->addr), in ip_vs_sh_schedule()
H A Dip_vs_ctl.c313 ip_vs_svc_hashkey(struct netns_ipvs *ipvs, int af, unsigned int proto, in ip_vs_svc_hashkey() argument
321 if (af == AF_INET6) in ip_vs_svc_hashkey()
359 hash = ip_vs_svc_hashkey(svc->ipvs, svc->af, svc->protocol, in ip_vs_svc_hash()
407 __ip_vs_service_find(struct netns_ipvs *ipvs, int af, __u16 protocol, in __ip_vs_service_find() argument
414 hash = ip_vs_svc_hashkey(ipvs, af, protocol, vaddr, vport); in __ip_vs_service_find()
417 if ((svc->af == af) in __ip_vs_service_find()
418 && ip_vs_addr_equal(af, &svc->addr, vaddr) in __ip_vs_service_find()
435 __ip_vs_svc_fwm_find(struct netns_ipvs *ipvs, int af, __u32 fwmark) in __ip_vs_svc_fwm_find() argument
444 if (svc->fwmark == fwmark && svc->af == af in __ip_vs_svc_fwm_find()
456 ip_vs_service_find(struct netns_ipvs *ipvs, int af, __u32 fwmark, __u16 protocol, in ip_vs_service_find() argument
[all …]
H A Dip_vs_dh.c70 static inline unsigned int ip_vs_dh_hashkey(int af, const union nf_inet_addr *addr) in ip_vs_dh_hashkey() argument
75 if (af == AF_INET6) in ip_vs_dh_hashkey()
87 ip_vs_dh_get(int af, struct ip_vs_dh_state *s, const union nf_inet_addr *addr) in ip_vs_dh_get() argument
89 return rcu_dereference(s->buckets[ip_vs_dh_hashkey(af, addr)].dest); in ip_vs_dh_get()
221 dest = ip_vs_dh_get(svc->af, s, &iph->daddr); in ip_vs_dh_schedule()
231 IP_VS_DBG_ADDR(svc->af, &iph->daddr), in ip_vs_dh_schedule()
232 IP_VS_DBG_ADDR(dest->af, &dest->addr), in ip_vs_dh_schedule()
H A Dip_vs_mh.c88 ip_vs_mh_hashkey(int af, const union nf_inet_addr *addr, in ip_vs_mh_hashkey() argument
95 if (af == AF_INET6) in ip_vs_mh_hashkey()
142 ds->offset = ip_vs_mh_hashkey(svc->af, &dest->addr, in ip_vs_mh_permutate()
145 ds->skip = ip_vs_mh_hashkey(svc->af, &dest->addr, in ip_vs_mh_permutate()
237 unsigned int hash = ip_vs_mh_hashkey(svc->af, addr, port, &s->hash1, 0) in ip_vs_mh_get()
254 ihash = ip_vs_mh_hashkey(svc->af, addr, port, in ip_vs_mh_get_fallback()
263 IP_VS_DBG_ADDR(dest->af, &dest->addr), ntohs(dest->port)); in ip_vs_mh_get_fallback()
270 hash = ip_vs_mh_hashkey(svc->af, addr, port, &s->hash1, in ip_vs_mh_get_fallback()
279 IP_VS_DBG_ADDR(dest->af, &dest->addr), in ip_vs_mh_get_fallback()
309 IP_VS_DBG_ADDR(svc->af, &svc->addr), in ip_vs_mh_reassign()
[all …]
H A Dip_vs_pe_sip.c73 retc = ip_vs_fill_iph_skb(p->af, skb, false, &iph); in ip_vs_sip_fill_param()
112 if (ct->af == p->af && in ip_vs_sip_ct_match()
113 ip_vs_addr_equal(p->af, p->caddr, &ct->caddr) && in ip_vs_sip_ct_match()
116 ip_vs_addr_equal(p->protocol == IPPROTO_IP ? AF_UNSPEC : p->af, in ip_vs_sip_ct_match()
128 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/include/linux/netfilter/
H A Dx_tables.h228 u_int8_t af; /* address/protocol family */ member
309 struct xt_match *xt_find_match(u8 af, const char *name, u8 revision);
310 struct xt_match *xt_request_find_match(u8 af, const char *name, u8 revision);
311 struct xt_target *xt_request_find_target(u8 af, const char *name, u8 revision);
312 int xt_find_revision(u8 af, const char *name, u8 revision, int target,
315 struct xt_table *xt_find_table(struct net *net, u8 af, const char *name);
316 struct xt_table *xt_find_table_lock(struct net *net, u_int8_t af,
318 struct xt_table *xt_request_find_table_lock(struct net *net, u_int8_t af,
322 int xt_proto_init(struct net *net, u_int8_t af);
323 void xt_proto_fini(struct net *net, u_int8_t af);
[all …]
/linux/fs/afs/
H A Dfile.c85 int afs_cache_wb_key(struct afs_vnode *vnode, struct afs_file *af) in afs_cache_wb_key() argument
93 wbk->key = af->key; in afs_cache_wb_key()
104 af->wb = wbk; in afs_cache_wb_key()
110 af->wb = p; in afs_cache_wb_key()
121 struct afs_file *af; in afs_open() local
133 af = kzalloc_obj(*af); in afs_open()
134 if (!af) { in afs_open()
138 af->key = key; in afs_open()
145 ret = afs_cache_wb_key(vnode, af); in afs_open()
155 file->private_data = af; in afs_open()
[all …]
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_fence.c92 static void amdgpu_fence_save_fence_wptr_start(struct amdgpu_fence *af) in amdgpu_fence_save_fence_wptr_start() argument
94 af->fence_wptr_start = af->ring->wptr; in amdgpu_fence_save_fence_wptr_start()
97 static void amdgpu_fence_save_fence_wptr_end(struct amdgpu_fence *af) in amdgpu_fence_save_fence_wptr_end() argument
99 af->fence_wptr_end = af->ring->wptr; in amdgpu_fence_save_fence_wptr_end()
112 int amdgpu_fence_emit(struct amdgpu_ring *ring, struct amdgpu_fence *af, in amdgpu_fence_emit() argument
121 fence = &af->base; in amdgpu_fence_emit()
122 af->ring = ring; in amdgpu_fence_emit()
129 amdgpu_fence_save_fence_wptr_start(af); in amdgpu_fence_emit()
132 amdgpu_fence_save_fence_wptr_end(af); in amdgpu_fence_emit()
133 amdgpu_fence_save_wptr(af); in amdgpu_fence_emit()
[all …]
H A Damdgpu_ib.c131 struct amdgpu_fence *af; in amdgpu_ib_schedule() local
157 af = job->hw_fence; in amdgpu_ib_schedule()
162 af->context = fence_ctx; in amdgpu_ib_schedule()
172 af = kzalloc_obj(*af, GFP_ATOMIC); in amdgpu_ib_schedule()
173 if (!af) in amdgpu_ib_schedule()
300 r = amdgpu_fence_emit(ring, af, fence_flags); in amdgpu_ib_schedule()
308 *f = &af->base; in amdgpu_ib_schedule()
332 amdgpu_fence_save_wptr(af); in amdgpu_ib_schedule()
341 kfree(af); in amdgpu_ib_schedule()
/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.c1425 struct available_var_finder *af = data; in collect_variables_cb() local
1430 vl = &af->vls[af->nvls - 1]; in collect_variables_cb()
1435 ret = convert_variable_location(die_mem, af->pf.addr, in collect_variables_cb()
1436 af->pf.fb_ops, &af->pf.sp_die, in collect_variables_cb()
1437 &af->pf, /*tvar=*/NULL); in collect_variables_cb()
1440 bool externs = !af->child; in collect_variables_cb()
1461 ret2 = die_get_var_range(&af->pf.sp_die, in collect_variables_cb()
1474 if (af->child && dwarf_haspc(die_mem, af->pf.addr)) in collect_variables_cb()
1484 static bool available_var_finder_overlap(struct available_var_finder *af) in available_var_finder_overlap() argument
1488 for (i = 0; i < af->nvls; i++) { in available_var_finder_overlap()
[all …]
/linux/arch/arm/boot/dts/intel/pxa/
H A Dpxa2xx.dtsi11 #define PMMUX(func, pin, af) \ argument
14 function = #af; \
16 #define PMMUX_LPM_LOW(func, pin, af) \ argument
19 function = #af; \
22 #define PMMUX_LPM_HIGH(func, pin, af) \ argument
25 function = #af; \

12345