Searched refs:cfpkt (Results 1 - 19 of 19) sorted by relevance

/linux-4.1.27/net/caif/
H A Dcfpkt_skbuff.c13 #include <net/caif/cfpkt.h>
36 struct cfpkt { struct
46 static inline struct cfpkt_priv_data *cfpkt_priv(struct cfpkt *pkt) cfpkt_priv()
51 static inline bool is_erronous(struct cfpkt *pkt) is_erronous()
56 static inline struct sk_buff *pkt_to_skb(struct cfpkt *pkt) pkt_to_skb()
61 static inline struct cfpkt *skb_to_pkt(struct sk_buff *skb) skb_to_pkt()
63 return (struct cfpkt *) skb; skb_to_pkt()
66 struct cfpkt *cfpkt_fromnative(enum caif_direction dir, void *nativepkt) cfpkt_fromnative()
68 struct cfpkt *pkt = skb_to_pkt(nativepkt); cfpkt_fromnative()
74 void *cfpkt_tonative(struct cfpkt *pkt) cfpkt_tonative()
80 static struct cfpkt *cfpkt_create_pfx(u16 len, u16 pfx) cfpkt_create_pfx()
96 inline struct cfpkt *cfpkt_create(u16 len) cfpkt_create()
101 void cfpkt_destroy(struct cfpkt *pkt) cfpkt_destroy()
107 inline bool cfpkt_more(struct cfpkt *pkt) cfpkt_more()
113 int cfpkt_peek_head(struct cfpkt *pkt, void *data, u16 len) cfpkt_peek_head()
124 int cfpkt_extr_head(struct cfpkt *pkt, void *data, u16 len) cfpkt_extr_head()
150 int cfpkt_extr_trail(struct cfpkt *pkt, void *dta, u16 len) cfpkt_extr_trail()
172 int cfpkt_pad_trail(struct cfpkt *pkt, u16 len) cfpkt_pad_trail()
177 int cfpkt_add_body(struct cfpkt *pkt, const void *data, u16 len) cfpkt_add_body()
215 inline int cfpkt_addbdy(struct cfpkt *pkt, u8 data) cfpkt_addbdy()
220 int cfpkt_add_head(struct cfpkt *pkt, const void *data2, u16 len) cfpkt_add_head()
247 inline int cfpkt_add_trail(struct cfpkt *pkt, const void *data, u16 len) cfpkt_add_trail()
252 inline u16 cfpkt_getlen(struct cfpkt *pkt) cfpkt_getlen()
258 int cfpkt_iterate(struct cfpkt *pkt, cfpkt_iterate()
275 int cfpkt_setlen(struct cfpkt *pkt, u16 len) cfpkt_setlen()
299 struct cfpkt *cfpkt_append(struct cfpkt *dstpkt, cfpkt_append()
300 struct cfpkt *addpkt, cfpkt_append()
320 struct cfpkt *tmppkt; cfpkt_append()
340 struct cfpkt *cfpkt_split(struct cfpkt *pkt, u16 pos) cfpkt_split()
344 struct cfpkt *tmppkt; cfpkt_split()
378 bool cfpkt_erroneous(struct cfpkt *pkt) cfpkt_erroneous()
383 struct caif_payload_info *cfpkt_info(struct cfpkt *pkt) cfpkt_info()
389 void cfpkt_set_prio(struct cfpkt *pkt, int prio) cfpkt_set_prio()
H A Dcfdbgl.c13 #include <net/caif/cfpkt.h>
17 static int cfdbgl_receive(struct cflayer *layr, struct cfpkt *pkt);
18 static int cfdbgl_transmit(struct cflayer *layr, struct cfpkt *pkt);
33 static int cfdbgl_receive(struct cflayer *layr, struct cfpkt *pkt) cfdbgl_receive()
38 static int cfdbgl_transmit(struct cflayer *layr, struct cfpkt *pkt) cfdbgl_transmit()
H A Dcfvidl.c15 #include <net/caif/cfpkt.h>
19 static int cfvidl_receive(struct cflayer *layr, struct cfpkt *pkt);
20 static int cfvidl_transmit(struct cflayer *layr, struct cfpkt *pkt);
36 static int cfvidl_receive(struct cflayer *layr, struct cfpkt *pkt) cfvidl_receive()
47 static int cfvidl_transmit(struct cflayer *layr, struct cfpkt *pkt) cfvidl_transmit()
H A Dcfdgml.c14 #include <net/caif/cfpkt.h>
24 static int cfdgml_receive(struct cflayer *layr, struct cfpkt *pkt);
25 static int cfdgml_transmit(struct cflayer *layr, struct cfpkt *pkt);
41 static int cfdgml_receive(struct cflayer *layr, struct cfpkt *pkt) cfdgml_receive()
82 static int cfdgml_transmit(struct cflayer *layr, struct cfpkt *pkt) cfdgml_transmit()
H A Dcfutill.c15 #include <net/caif/cfpkt.h>
24 static int cfutill_receive(struct cflayer *layr, struct cfpkt *pkt);
25 static int cfutill_transmit(struct cflayer *layr, struct cfpkt *pkt);
40 static int cfutill_receive(struct cflayer *layr, struct cfpkt *pkt) cfutill_receive()
78 static int cfutill_transmit(struct cflayer *layr, struct cfpkt *pkt) cfutill_transmit()
H A Dcfveil.c13 #include <net/caif/cfpkt.h>
23 static int cfvei_receive(struct cflayer *layr, struct cfpkt *pkt);
24 static int cfvei_transmit(struct cflayer *layr, struct cfpkt *pkt);
39 static int cfvei_receive(struct cflayer *layr, struct cfpkt *pkt) cfvei_receive()
75 static int cfvei_transmit(struct cflayer *layr, struct cfpkt *pkt) cfvei_transmit()
H A Dcfrfml.c15 #include <net/caif/cfpkt.h>
21 static int cfrfml_receive(struct cflayer *layr, struct cfpkt *pkt);
22 static int cfrfml_transmit(struct cflayer *layr, struct cfpkt *pkt);
26 struct cfpkt *incomplete_frm;
71 static struct cfpkt *rfm_append(struct cfrfml *rfml, char *seghead, rfm_append()
72 struct cfpkt *pkt, int *err) rfm_append()
74 struct cfpkt *tmppkt; rfm_append()
97 static int cfrfml_receive(struct cflayer *layr, struct cfpkt *pkt) cfrfml_receive()
104 struct cfpkt *tmppkt = NULL; cfrfml_receive()
196 static int cfrfml_transmit_segment(struct cfrfml *rfml, struct cfpkt *pkt) cfrfml_transmit_segment()
213 static int cfrfml_transmit(struct cflayer *layr, struct cfpkt *pkt) cfrfml_transmit()
218 struct cfpkt *rearpkt = NULL; cfrfml_transmit()
219 struct cfpkt *frontpkt = pkt; cfrfml_transmit()
H A Dcfserl.c13 #include <net/caif/cfpkt.h>
23 struct cfpkt *incomplete_frm;
29 static int cfserl_receive(struct cflayer *layr, struct cfpkt *pkt);
30 static int cfserl_transmit(struct cflayer *layr, struct cfpkt *pkt);
49 static int cfserl_receive(struct cflayer *l, struct cfpkt *newpkt) cfserl_receive()
53 struct cfpkt *pkt = NULL; cfserl_receive()
54 struct cfpkt *tail_pkt = NULL; cfserl_receive()
175 static int cfserl_transmit(struct cflayer *layer, struct cfpkt *newpkt) cfserl_transmit()
H A Dcffrml.c17 #include <net/caif/cfpkt.h>
28 static int cffrml_receive(struct cflayer *layr, struct cfpkt *pkt);
29 static int cffrml_transmit(struct cflayer *layr, struct cfpkt *pkt);
82 static int cffrml_receive(struct cflayer *layr, struct cfpkt *pkt) cffrml_receive()
137 static int cffrml_transmit(struct cflayer *layr, struct cfpkt *pkt) cffrml_transmit()
H A Dcfctrl.c14 #include <net/caif/cfpkt.h>
23 int cmd, struct cfpkt *pkt){ handle_loop()
28 int cmd, struct cfpkt *pkt);
30 static int cfctrl_recv(struct cflayer *layr, struct cfpkt *pkt);
178 struct cfpkt *pkt; cfctrl_enum_req()
210 struct cfpkt *pkt; cfctrl_linkup_request()
308 struct cfpkt *pkt; cfctrl_linkdown_req()
350 static int cfctrl_recv(struct cflayer *layer, struct cfpkt *pkt) cfctrl_recv()
592 static int handle_loop(struct cfctrl *ctrl, int cmd, struct cfpkt *pkt) handle_loop()
H A Dcfmuxl.c13 #include <net/caif/cfpkt.h>
42 static int cfmuxl_receive(struct cflayer *layr, struct cfpkt *pkt);
43 static int cfmuxl_transmit(struct cflayer *layr, struct cfpkt *pkt);
174 static int cfmuxl_receive(struct cflayer *layr, struct cfpkt *pkt) cfmuxl_receive()
211 static int cfmuxl_transmit(struct cflayer *layr, struct cfpkt *pkt) cfmuxl_transmit()
H A Dcaif_usb.c21 #include <net/caif/cfpkt.h>
39 static int cfusbl_receive(struct cflayer *layr, struct cfpkt *pkt) cfusbl_receive()
49 static int cfusbl_transmit(struct cflayer *layr, struct cfpkt *pkt) cfusbl_transmit()
H A Dcfsrvl.c17 #include <net/caif/cfpkt.h>
109 struct cfpkt *pkt; cfservl_modemcmd()
130 struct cfpkt *pkt; cfservl_modemcmd()
H A Dchnl_net.c23 #include <net/caif/cfpkt.h>
73 static int chnl_recv_cb(struct cflayer *layr, struct cfpkt *pkt) chnl_recv_cb()
220 struct cfpkt *pkt = NULL; chnl_net_start_xmit()
H A Dcaif_dev.c26 #include <net/caif/cfpkt.h>
164 static int transmit(struct cflayer *layer, struct cfpkt *pkt) transmit()
242 struct cfpkt *pkt; receive()
H A Dcaif_socket.c27 #include <net/caif/cfpkt.h>
168 static int caif_sktrecv_cb(struct cflayer *layr, struct cfpkt *pkt) caif_sktrecv_cb()
506 struct cfpkt *pkt; transmit_skb()
H A Dcfcnfg.c15 #include <net/caif/cfpkt.h>
/linux-4.1.27/include/net/caif/
H A Dcfpkt.h11 struct cfpkt;
17 struct cfpkt *cfpkt_create(u16 len);
23 void cfpkt_destroy(struct cfpkt *pkt);
33 int cfpkt_extr_head(struct cfpkt *pkt, void *data, u16 len);
44 int cfpkt_peek_head(struct cfpkt *pkt, void *data, u16 len);
54 int cfpkt_extr_trail(struct cfpkt *pkt, void *data, u16 len);
65 int cfpkt_add_head(struct cfpkt *pkt, const void *data, u16 len);
76 int cfpkt_add_trail(struct cfpkt *pkt, const void *data, u16 len);
86 int cfpkt_pad_trail(struct cfpkt *pkt, u16 len);
95 int cfpkt_addbdy(struct cfpkt *pkt, const u8 data);
105 int cfpkt_add_body(struct cfpkt *pkt, const void *data, u16 len);
112 bool cfpkt_more(struct cfpkt *pkt);
121 bool cfpkt_erroneous(struct cfpkt *pkt);
128 u16 cfpkt_getlen(struct cfpkt *pkt);
136 int cfpkt_setlen(struct cfpkt *pkt, u16 len);
149 struct cfpkt *cfpkt_append(struct cfpkt *dstpkt, struct cfpkt *addpkt,
158 struct cfpkt *cfpkt_split(struct cfpkt *pkt, u16 pos);
174 int cfpkt_iterate(struct cfpkt *pkt,
183 struct cfpkt *cfpkt_fromnative(enum caif_direction dir, void *nativepkt);
189 void *cfpkt_tonative(struct cfpkt *pkt);
196 struct caif_payload_info *cfpkt_info(struct cfpkt *pkt);
203 void cfpkt_set_prio(struct cfpkt *pkt, int prio);
H A Dcaif_layer.h13 struct cfpkt;
158 * - The CAIF packet (cfpkt) ownership is passed to the
177 * @cfpkt: Pointer to CaifPacket to be handled.
179 int (*receive)(struct cflayer *layr, struct cfpkt *cfpkt);
186 * - The CAIF packet (cfpkt) ownership is passed to the
204 * @cfpkt: Pointer to CaifPacket to be handled.
206 int (*transmit) (struct cflayer *layr, struct cfpkt *cfpkt);

Completed in 145 milliseconds