Home
last modified time | relevance | path

Searched refs:asoc (Results 1 – 40 of 40) sorted by relevance

/linux-4.1.27/net/sctp/
Dassociola.c58 static void sctp_select_active_and_retran_path(struct sctp_association *asoc);
60 static void sctp_assoc_free_asconf_acks(struct sctp_association *asoc);
61 static void sctp_assoc_free_asconf_queue(struct sctp_association *asoc);
66 static struct sctp_association *sctp_association_init(struct sctp_association *asoc, in sctp_association_init() argument
82 asoc->ep = (struct sctp_endpoint *)ep; in sctp_association_init()
83 asoc->base.sk = (struct sock *)sk; in sctp_association_init()
85 sctp_endpoint_hold(asoc->ep); in sctp_association_init()
86 sock_hold(asoc->base.sk); in sctp_association_init()
89 asoc->base.type = SCTP_EP_TYPE_ASSOCIATION; in sctp_association_init()
92 atomic_set(&asoc->base.refcnt, 1); in sctp_association_init()
[all …]
Dsm_sideeffect.c58 struct sctp_association *asoc,
66 struct sctp_association *asoc,
79 static void sctp_do_ecn_ce_work(struct sctp_association *asoc, in sctp_do_ecn_ce_work() argument
84 asoc->last_ecne_tsn = lowest_tsn; in sctp_do_ecn_ce_work()
85 asoc->need_ecne = 1; in sctp_do_ecn_ce_work()
100 static struct sctp_chunk *sctp_do_ecn_ecne_work(struct sctp_association *asoc, in sctp_do_ecn_ecne_work() argument
116 if (TSN_lt(asoc->last_cwr_tsn, lowest_tsn)) { in sctp_do_ecn_ecne_work()
122 transport = sctp_assoc_lookup_tsn(asoc, lowest_tsn); in sctp_do_ecn_ecne_work()
128 asoc->last_cwr_tsn = lowest_tsn; in sctp_do_ecn_ecne_work()
134 repl = sctp_make_cwr(asoc, asoc->last_cwr_tsn, chunk); in sctp_do_ecn_ecne_work()
[all …]
Dsm_statefuns.c64 const struct sctp_association *asoc,
68 static int sctp_eat_data(const struct sctp_association *asoc,
72 const struct sctp_association *asoc,
76 const struct sctp_association *asoc,
82 const struct sctp_association *asoc,
88 const struct sctp_association *asoc,
94 const struct sctp_association *asoc,
103 const struct sctp_association *asoc,
109 const struct sctp_association *asoc,
118 const struct sctp_association *asoc,
[all …]
Dsm_make_chunk.c64 static struct sctp_chunk *sctp_make_control(const struct sctp_association *asoc,
66 static struct sctp_chunk *sctp_make_data(const struct sctp_association *asoc,
68 static struct sctp_chunk *_sctp_make_chunk(const struct sctp_association *asoc,
71 const struct sctp_association *asoc,
75 static int sctp_process_param(struct sctp_association *asoc,
92 struct sctp_association *asoc = chunk->asoc; in sctp_control_set_owner_w() local
102 skb->sk = asoc ? asoc->base.sk : NULL; in sctp_control_set_owner_w()
217 struct sctp_chunk *sctp_make_init(const struct sctp_association *asoc, in sctp_make_init() argument
221 struct net *net = sock_net(asoc->base.sk); in sctp_make_init()
222 struct sctp_endpoint *ep = asoc->ep; in sctp_make_init()
[all …]
Dauth.c225 const struct sctp_association *asoc, in sctp_auth_make_local_vector() argument
229 (sctp_random_param_t *)asoc->c.auth_random, in sctp_auth_make_local_vector()
230 (sctp_chunks_param_t *)asoc->c.auth_chunks, in sctp_auth_make_local_vector()
231 (sctp_hmac_algo_param_t *)asoc->c.auth_hmacs, in sctp_auth_make_local_vector()
237 const struct sctp_association *asoc, in sctp_auth_make_peer_vector() argument
240 return sctp_auth_make_key_vector(asoc->peer.peer_random, in sctp_auth_make_peer_vector()
241 asoc->peer.peer_chunks, in sctp_auth_make_peer_vector()
242 asoc->peer.peer_hmacs, in sctp_auth_make_peer_vector()
291 const struct sctp_association *asoc, in sctp_auth_asoc_create_secret() argument
315 local_key_vector = sctp_auth_make_local_vector(asoc, gfp); in sctp_auth_asoc_create_secret()
[all …]
Dtransport.c151 sctp_association_put(transport->asoc); in sctp_transport_free()
179 if (transport->asoc) in sctp_transport_destroy()
180 sctp_association_put(transport->asoc); in sctp_transport_destroy()
214 struct sctp_association *asoc) in sctp_transport_set_owner() argument
216 transport->asoc = asoc; in sctp_transport_set_owner()
217 sctp_association_hold(asoc); in sctp_transport_set_owner()
271 struct sctp_association *asoc = transport->asoc; in sctp_transport_route() local
290 if (asoc && (!asoc->peer.primary_path || in sctp_transport_route()
291 (transport == asoc->peer.active_path))) in sctp_transport_route()
293 asoc->base.sk); in sctp_transport_route()
[all …]
Dinput.c110 struct sctp_association *asoc; in sctp_rcv() local
174 asoc = __sctp_rcv_lookup(net, skb, &src, &dest, &transport); in sctp_rcv()
176 if (!asoc) in sctp_rcv()
180 rcvr = asoc ? &asoc->base : &ep->base; in sctp_rcv()
188 if (asoc) { in sctp_rcv()
189 sctp_association_put(asoc); in sctp_rcv()
190 asoc = NULL; in sctp_rcv()
209 if (!asoc) { in sctp_rcv()
224 chunk = sctp_chunkify(skb, asoc, sk); in sctp_rcv()
276 if (asoc) in sctp_rcv()
[all …]
Dsocket.c98 static int sctp_send_asconf(struct sctp_association *asoc,
116 static inline int sctp_wspace(struct sctp_association *asoc) in sctp_wspace() argument
120 if (asoc->ep->sndbuf_policy) in sctp_wspace()
121 amt = asoc->sndbuf_used; in sctp_wspace()
123 amt = sk_wmem_alloc_get(asoc->base.sk); in sctp_wspace()
125 if (amt >= asoc->base.sk->sk_sndbuf) { in sctp_wspace()
126 if (asoc->base.sk->sk_userlocks & SOCK_SNDBUF_LOCK) in sctp_wspace()
129 amt = sk_stream_wspace(asoc->base.sk); in sctp_wspace()
134 amt = asoc->base.sk->sk_sndbuf - amt; in sctp_wspace()
150 struct sctp_association *asoc = chunk->asoc; in sctp_set_owner_w() local
[all …]
Dulpevent.c47 struct sctp_association *asoc);
92 const struct sctp_association *asoc) in sctp_ulpevent_set_owner() argument
99 sctp_association_hold((struct sctp_association *)asoc); in sctp_ulpevent_set_owner()
101 event->asoc = (struct sctp_association *)asoc; in sctp_ulpevent_set_owner()
102 atomic_add(event->rmem_len, &event->asoc->rmem_alloc); in sctp_ulpevent_set_owner()
103 sctp_skb_set_owner_r(skb, asoc->base.sk); in sctp_ulpevent_set_owner()
109 struct sctp_association *asoc = event->asoc; in sctp_ulpevent_release_owner() local
111 atomic_sub(event->rmem_len, &asoc->rmem_alloc); in sctp_ulpevent_release_owner()
112 sctp_association_put(asoc); in sctp_ulpevent_release_owner()
127 const struct sctp_association *asoc, in sctp_ulpevent_make_assoc_change() argument
[all …]
Doutput.c94 chunk = sctp_get_ecne_prepend(packet->transport->asoc); in sctp_packet_config()
111 struct sctp_association *asoc = transport->asoc; in sctp_packet_init() local
120 if (asoc) { in sctp_packet_init()
121 struct sctp_sock *sp = sctp_sk(asoc->base.sk); in sctp_packet_init()
192 struct sctp_association *asoc = pkt->transport->asoc; in sctp_packet_bundle_auth() local
197 if (!asoc) in sctp_packet_bundle_auth()
212 auth = sctp_make_auth(asoc); in sctp_packet_bundle_auth()
235 struct sctp_association *asoc; in sctp_packet_bundle_sack() local
237 asoc = pkt->transport->asoc; in sctp_packet_bundle_sack()
238 timer = &asoc->timers[SCTP_EVENT_TIMEOUT_SACK]; in sctp_packet_bundle_sack()
[all …]
Doutqueue.c200 void sctp_outq_init(struct sctp_association *asoc, struct sctp_outq *q) in sctp_outq_init() argument
204 q->asoc = asoc; in sctp_outq_init()
221 list_for_each_entry(transport, &q->asoc->peer.transport_addr_list, in __sctp_outq_teardown()
277 sctp_outq_init(q->asoc, q); in sctp_outq_teardown()
290 struct net *net = sock_net(q->asoc->base.sk); in sctp_outq_tail()
311 switch (q->asoc->state) { in sctp_outq_tail()
402 q->asoc->peer.rwnd += sctp_data_size(chunk); in sctp_retransmit_mark()
422 q->asoc->peer.rwnd += sctp_data_size(chunk); in sctp_retransmit_mark()
467 struct net *net = sock_net(q->asoc->base.sk); in sctp_retransmit()
477 if (transport == transport->asoc->peer.retran_path) in sctp_retransmit()
[all …]
Dchunk.c93 struct sctp_association *asoc = NULL; in sctp_datamsg_destroy() local
105 asoc = chunk->asoc; in sctp_datamsg_destroy()
109 error = asoc->outqueue.error; in sctp_datamsg_destroy()
111 sp = sctp_sk(asoc->base.sk); in sctp_datamsg_destroy()
124 ev = sctp_ulpevent_make_send_failed(asoc, chunk, sent, in sctp_datamsg_destroy()
127 sctp_ulpq_tail_event(&asoc->ulpq, ev); in sctp_datamsg_destroy()
165 struct sctp_datamsg *sctp_datamsg_from_user(struct sctp_association *asoc, in sctp_datamsg_from_user() argument
198 max_data = (asoc->pathmtu - in sctp_datamsg_from_user()
199 sctp_sk(asoc->base.sk)->pf->af->net_header_len - in sctp_datamsg_from_user()
202 max = asoc->frag_point; in sctp_datamsg_from_user()
[all …]
Dendpointola.c207 struct sctp_association *asoc) in sctp_endpoint_add_asoc() argument
215 if (asoc->temp) in sctp_endpoint_add_asoc()
219 list_add_tail(&asoc->asocs, &ep->asocs); in sctp_endpoint_add_asoc()
325 struct sctp_association *asoc = NULL; in __sctp_endpoint_lookup_assoc() local
354 asoc = tmp; in __sctp_endpoint_lookup_assoc()
361 return asoc; in __sctp_endpoint_lookup_assoc()
370 struct sctp_association *asoc; in sctp_endpoint_lookup_assoc() local
373 asoc = __sctp_endpoint_lookup_assoc(ep, paddr, transport); in sctp_endpoint_lookup_assoc()
376 return asoc; in sctp_endpoint_lookup_assoc()
409 struct sctp_association *asoc; in sctp_endpoint_bh_rcv() local
[all …]
Dulpqueue.c57 struct sctp_association *asoc) in sctp_ulpq_init() argument
61 ulpq->asoc = asoc; in sctp_ulpq_init()
103 event = sctp_ulpevent_make_rcvmsg(chunk->asoc, chunk, gfp); in sctp_ulpq_tail_data()
134 int sctp_clear_pd(struct sock *sk, struct sctp_association *asoc) in sctp_clear_pd() argument
155 if (!skb_queue_empty(&sp->pd_lobby) && asoc) { in sctp_clear_pd()
161 if (event->asoc == asoc) { in sctp_clear_pd()
176 struct sctp_sock *sp = sctp_sk(ulpq->asoc->base.sk); in sctp_ulpq_set_pd()
187 return sctp_clear_pd(ulpq->asoc->base.sk, ulpq->asoc); in sctp_ulpq_clear_pd()
195 struct sock *sk = ulpq->asoc->base.sk; in sctp_ulpq_tail_event()
417 struct sctp_association *asoc; in sctp_ulpq_retrieve_reassembled() local
[all …]
Dprimitive.c53 int sctp_primitive_ ## name(struct net *net, struct sctp_association *asoc, \
62 state = asoc ? asoc->state : SCTP_STATE_CLOSED; \
63 ep = asoc ? asoc->ep : NULL; \
65 error = sctp_do_sm(net, event_type, subtype, state, ep, asoc, \
Dprobe.c132 const struct sctp_association *asoc, in jsctp_sf_eat_sack() argument
143 sp = asoc->peer.primary_path; in jsctp_sf_eat_sack()
146 asoc->peer.port == port || in jsctp_sf_eat_sack()
158 printl("%p %5d %5d %5d %8d %5d ", asoc, in jsctp_sf_eat_sack()
159 ep->base.bind_addr.port, asoc->peer.port, in jsctp_sf_eat_sack()
160 asoc->pathmtu, asoc->peer.rwnd, asoc->unack_data); in jsctp_sf_eat_sack()
162 list_for_each_entry(sp, &asoc->peer.transport_addr_list, in jsctp_sf_eat_sack()
164 if (sp == asoc->peer.primary_path) in jsctp_sf_eat_sack()
Dipv6.c146 struct sctp_association *asoc; in sctp_v6_err() local
160 sk = sctp_err_lookup(net, AF_INET6, skb, sctp_hdr(skb), &asoc, &transport); in sctp_v6_err()
176 sctp_icmp_frag_needed(sk, asoc, transport, ntohl(info)); in sctp_v6_err()
180 sctp_icmp_proto_unreachable(sk, asoc, transport); in sctp_v6_err()
201 sctp_err_finish(sk, asoc); in sctp_v6_err()
232 struct sctp_association *asoc = t->asoc; in sctp_v6_get_dst() local
255 if (asoc) in sctp_v6_get_dst()
256 fl6->fl6_sport = htons(asoc->base.bind_addr.port); in sctp_v6_get_dst()
267 if (!asoc || saddr) in sctp_v6_get_dst()
270 bp = &asoc->base.bind_addr; in sctp_v6_get_dst()
[all …]
Dprotocol.c426 struct sctp_association *asoc = t->asoc; in sctp_v4_get_dst() local
439 if (asoc) { in sctp_v4_get_dst()
440 fl4->flowi4_tos = RT_CONN_FLAGS(asoc->base.sk); in sctp_v4_get_dst()
441 fl4->flowi4_oif = asoc->base.sk->sk_bound_dev_if; in sctp_v4_get_dst()
442 fl4->fl4_sport = htons(asoc->base.bind_addr.port); in sctp_v4_get_dst()
459 if (!asoc || saddr) in sctp_v4_get_dst()
462 bp = &asoc->base.bind_addr; in sctp_v4_get_dst()
473 !asoc->src_out_of_asoc_ok)) in sctp_v4_get_dst()
498 asoc->base.sk->sk_bound_dev_if, in sctp_v4_get_dst()
499 RT_CONN_FLAGS(asoc->base.sk), in sctp_v4_get_dst()
[all …]
Dproc.c123 struct sctp_association *asoc; in sctp_seq_dump_local_addrs() local
130 asoc = sctp_assoc(epb); in sctp_seq_dump_local_addrs()
132 peer = asoc->peer.primary_path; in sctp_seq_dump_local_addrs()
134 WARN(1, "Association %p with NULL primary path!\n", asoc); in sctp_seq_dump_local_addrs()
470 seq_printf(seq, "%d ", tsp->asoc->assoc_id); in sctp_remaddr_seq_show()
Dinqueue.c93 if (chunk->asoc) in sctp_inq_push()
94 chunk->asoc->stats.ipackets++; in sctp_inq_push()
Dtsnmap.c132 trans->asoc->peer.sack_generation; in sctp_tsnmap_mark()
/linux-4.1.27/include/net/sctp/
Dauth.h85 int sctp_auth_asoc_init_active_key(struct sctp_association *asoc, gfp_t gfp);
87 const struct sctp_association *asoc,
90 struct sctp_association *asoc,
95 struct sctp_hmac *sctp_auth_asoc_get_hmac(const struct sctp_association *asoc);
96 void sctp_auth_asoc_set_default_hmac(struct sctp_association *asoc,
98 int sctp_auth_asoc_verify_hmac_id(const struct sctp_association *asoc,
100 int sctp_auth_send_cid(sctp_cid_t chunk, const struct sctp_association *asoc);
101 int sctp_auth_recv_cid(sctp_cid_t chunk, const struct sctp_association *asoc);
102 void sctp_auth_calculate_hmac(const struct sctp_association *asoc,
111 struct sctp_association *asoc,
[all …]
Dulpevent.h50 struct sctp_association *asoc; member
79 const struct sctp_association *asoc,
89 const struct sctp_association *asoc,
97 const struct sctp_association *asoc,
102 const struct sctp_association *asoc,
109 const struct sctp_association *asoc,
114 const struct sctp_association *asoc,
118 const struct sctp_association *asoc, gfp_t gfp);
120 struct sctp_ulpevent *sctp_ulpevent_make_rcvmsg(struct sctp_association *asoc,
125 const struct sctp_association *asoc, __u16 key_id,
[all …]
Dsctp.h109 struct sctp_association *asoc);
142 struct sctp_association *asoc,
228 static inline void sctp_max_rto(struct sctp_association *asoc, in sctp_max_rto() argument
231 if (asoc->stats.max_obs_rto < (__u64)trans->rto) { in sctp_max_rto()
232 asoc->stats.max_obs_rto = trans->rto; in sctp_max_rto()
233 memset(&asoc->stats.obs_rto_ipaddr, 0, in sctp_max_rto()
235 memcpy(&asoc->stats.obs_rto_ipaddr, &trans->ipaddr, in sctp_max_rto()
321 static inline sctp_assoc_t sctp_assoc2id(const struct sctp_association *asoc) in sctp_assoc2id() argument
323 return asoc ? asoc->assoc_id : 0; in sctp_assoc2id()
327 sctp_assoc_to_state(const struct sctp_association *asoc) in sctp_assoc_to_state() argument
[all …]
Dsm.h208 struct sctp_chunk *sctp_make_shutdown(const struct sctp_association *asoc,
210 struct sctp_chunk *sctp_make_shutdown_ack(const struct sctp_association *asoc,
249 struct sctp_chunk *sctp_make_asconf_set_prim(struct sctp_association *asoc,
251 bool sctp_verify_asconf(const struct sctp_association *asoc,
254 struct sctp_chunk *sctp_process_asconf(struct sctp_association *asoc,
256 int sctp_process_asconf_ack(struct sctp_association *asoc,
258 struct sctp_chunk *sctp_make_fwdtsn(const struct sctp_association *asoc,
261 struct sctp_chunk *sctp_make_auth(const struct sctp_association *asoc);
271 struct sctp_association *asoc,
393 const struct sctp_association *asoc) in sctp_vtag_verify() argument
[all …]
Dstructs.h511 struct sctp_association *asoc);
604 struct sctp_association *asoc; member
793 struct sctp_association *asoc; member
1017 struct sctp_association *asoc; member
1279 const struct sctp_association *asoc,
1856 struct sctp_association *asoc; in sctp_assoc() local
1858 asoc = container_of(base, struct sctp_association, base); in sctp_assoc()
1859 return asoc; in sctp_assoc()
1877 int sctp_assoc_lookup_laddr(struct sctp_association *asoc,
1883 void sctp_assoc_del_peer(struct sctp_association *asoc,
[all …]
Dulpqueue.h46 struct sctp_association *asoc; member
73 int sctp_clear_pd(struct sock *sk, struct sctp_association *asoc);
Dcommand.h132 struct sctp_association *asoc; member
173 SCTP_ARG_CONSTRUCTOR(ASOC, struct sctp_association *, asoc) in SCTP_ARG_CONSTRUCTOR()
/linux-4.1.27/Documentation/devicetree/bindings/sound/
Deukrea-tlv320.txt5 - compatible : "eukrea,asoc-tlv320"
21 compatible = "eukrea,asoc-tlv320";
Datmel-wm8904.txt4 - compatible: "atmel,asoc-wm8904"
39 compatible = "atmel,asoc-wm8904";
/linux-4.1.27/sound/soc/fsl/
DMakefile14 snd-soc-fsl-asoc-card-objs := fsl-asoc-card.o
23 obj-$(CONFIG_SND_SOC_FSL_ASOC_CARD) += snd-soc-fsl-asoc-card.o
/linux-4.1.27/arch/powerpc/boot/dts/
Dpcm030.dts108 asoc-platform = <&audioplatform>;
/linux-4.1.27/arch/arm/boot/dts/
Dimx35-eukrea-mbimxsd35-baseboard.dts51 compatible = "eukrea,asoc-tlv320";
Dimx25-eukrea-mbimxsd25-baseboard.dts50 compatible = "eukrea,asoc-tlv320";
Dat91sam9n12ek.dts197 compatible = "atmel,asoc-wm8904";
Dsama5d3xmb.dtsi201 compatible = "atmel,asoc-wm8904";
Dimx51-eukrea-mbimxsd51-baseboard.dts79 compatible = "eukrea,asoc-tlv320";
Dat91-sama5d4ek.dts308 compatible = "atmel,asoc-wm8904";
/linux-4.1.27/include/trace/events/
Dasoc.h2 #define TRACE_SYSTEM asoc
/linux-4.1.27/
DMAINTAINERS10823 T: git git://opensource.wolfsonmicro.com/linux-2.6-asoc