Home
last modified time | relevance | path

Searched refs:layr (Results 1 - 25 of 40) sorted by relevance

12

/kernel/linux/linux-5.10/net/caif/
H A Dcfserl.c16 #define container_obj(layr) ((struct cfserl *) layr)
29 static int cfserl_receive(struct cflayer *layr, struct cfpkt *pkt);
30 static int cfserl_transmit(struct cflayer *layr, struct cfpkt *pkt);
31 static void cfserl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl,
56 struct cfserl *layr = container_obj(l); in cfserl_receive() local
67 spin_lock(&layr->sync); in cfserl_receive()
69 if (layr->incomplete_frm != NULL) { in cfserl_receive()
70 layr->incomplete_frm = in cfserl_receive()
71 cfpkt_append(layr in cfserl_receive()
182 struct cfserl *layr = container_obj(layer); cfserl_transmit() local
189 cfserl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl, int phyid) cfserl_ctrlcmd() argument
[all...]
H A Dcfutill.c17 #define container_obj(layr) ((struct cfsrvl *) layr)
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) in cfutill_receive() argument
43 struct cfsrvl *service = container_obj(layr); in cfutill_receive()
44 caif_assert(layr != NULL); in cfutill_receive()
45 caif_assert(layr->up != NULL); in cfutill_receive()
46 caif_assert(layr->up->receive != NULL); in cfutill_receive()
47 caif_assert(layr in cfutill_receive()
78 cfutill_transmit(struct cflayer *layr, struct cfpkt *pkt) cfutill_transmit() argument
[all...]
H A Dcfsrvl.c25 #define container_obj(layr) container_of(layr, struct cfsrvl, layer)
27 static void cfservl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl, in cfservl_ctrlcmd() argument
30 struct cfsrvl *service = container_obj(layr); in cfservl_ctrlcmd()
32 if (layr->up == NULL || layr->up->ctrlcmd == NULL) in cfservl_ctrlcmd()
38 layr->up->ctrlcmd(layr->up, ctrl, phyid); in cfservl_ctrlcmd()
43 layr->up->ctrlcmd(layr in cfservl_ctrlcmd()
94 cfservl_modemcmd(struct cflayer *layr, enum caif_modemcmd ctrl) cfservl_modemcmd() argument
[all...]
H A Dcffrml.c20 #define container_obj(layr) container_of(layr, struct cffrml, layer)
28 static int cffrml_receive(struct cflayer *layr, struct cfpkt *pkt);
29 static int cffrml_transmit(struct cflayer *layr, struct cfpkt *pkt);
30 static void cffrml_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl,
82 static int cffrml_receive(struct cflayer *layr, struct cfpkt *pkt) in cffrml_receive() argument
89 this = container_obj(layr); in cffrml_receive()
128 if (layr->up == NULL) { in cffrml_receive()
134 return layr->up->receive(layr in cffrml_receive()
137 cffrml_transmit(struct cflayer *layr, struct cfpkt *pkt) cffrml_transmit() argument
169 cffrml_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl, int phyid) cffrml_ctrlcmd() argument
176 cffrml_put(struct cflayer *layr) cffrml_put() argument
183 cffrml_hold(struct cflayer *layr) cffrml_hold() argument
190 cffrml_refcnt_read(struct cflayer *layr) cffrml_refcnt_read() argument
[all...]
H A Dcfveil.c21 #define container_obj(layr) container_of(layr, struct cfsrvl, layer)
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) in cfvei_receive() argument
43 caif_assert(layr->up != NULL); in cfvei_receive()
44 caif_assert(layr->receive != NULL); in cfvei_receive()
45 caif_assert(layr->ctrlcmd != NULL); in cfvei_receive()
55 ret = layr->up->receive(layr in cfvei_receive()
75 cfvei_transmit(struct cflayer *layr, struct cfpkt *pkt) cfvei_transmit() argument
[all...]
H A Dcfdgml.c17 #define container_obj(layr) ((struct cfsrvl *) layr)
24 static int cfdgml_receive(struct cflayer *layr, struct cfpkt *pkt);
25 static int cfdgml_transmit(struct cflayer *layr, struct cfpkt *pkt);
40 static int cfdgml_receive(struct cflayer *layr, struct cfpkt *pkt) in cfdgml_receive() argument
45 caif_assert(layr->up != NULL); in cfdgml_receive()
46 caif_assert(layr->receive != NULL); in cfdgml_receive()
47 caif_assert(layr->ctrlcmd != NULL); in cfdgml_receive()
61 ret = layr->up->receive(layr in cfdgml_receive()
81 cfdgml_transmit(struct cflayer *layr, struct cfpkt *pkt) cfdgml_transmit() argument
[all...]
H A Dcfvidl.c17 #define container_obj(layr) ((struct cfsrvl *) layr)
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) in cfvidl_receive() argument
44 return layr->up->receive(layr->up, pkt); in cfvidl_receive()
47 static int cfvidl_transmit(struct cflayer *layr, struct cfpkt *pkt) in cfvidl_transmit() argument
49 struct cfsrvl *service = container_obj(layr); in cfvidl_transmit()
64 return layr in cfvidl_transmit()
[all...]
H A Dcfdbgl.c15 #define container_obj(layr) ((struct cfsrvl *) layr)
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) in cfdbgl_receive() argument
35 return layr->up->receive(layr->up, pkt); in cfdbgl_receive()
38 static int cfdbgl_transmit(struct cflayer *layr, struct cfpkt *pkt) in cfdbgl_transmit() argument
40 struct cfsrvl *service = container_obj(layr); in cfdbgl_transmit()
54 return layr in cfdbgl_transmit()
[all...]
H A Dcfmuxl.c18 #define container_obj(layr) container_of(layr, struct cfmuxl, layer)
42 static int cfmuxl_receive(struct cflayer *layr, struct cfpkt *pkt);
43 static int cfmuxl_transmit(struct cflayer *layr, struct cfpkt *pkt);
44 static void cfmuxl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl,
65 int cfmuxl_set_dnlayer(struct cflayer *layr, struct cflayer *dn, u8 phyid) in cfmuxl_set_dnlayer() argument
67 struct cfmuxl *muxl = (struct cfmuxl *) layr; in cfmuxl_set_dnlayer()
86 int cfmuxl_set_uplayer(struct cflayer *layr, struct cflayer *up, u8 linkid) in cfmuxl_set_uplayer() argument
88 struct cfmuxl *muxl = container_obj(layr); in cfmuxl_set_uplayer()
104 struct cflayer *cfmuxl_remove_dnlayer(struct cflayer *layr, u argument
151 cfmuxl_remove_uplayer(struct cflayer *layr, u8 id) cfmuxl_remove_uplayer() argument
174 cfmuxl_receive(struct cflayer *layr, struct cfpkt *pkt) cfmuxl_receive() argument
211 cfmuxl_transmit(struct cflayer *layr, struct cfpkt *pkt) cfmuxl_transmit() argument
246 cfmuxl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl, int phyid) cfmuxl_ctrlcmd() argument
[all...]
H A Dcaif_usb.c38 static int cfusbl_receive(struct cflayer *layr, struct cfpkt *pkt) in cfusbl_receive() argument
45 return layr->up->receive(layr->up, pkt); in cfusbl_receive()
48 static int cfusbl_transmit(struct cflayer *layr, struct cfpkt *pkt) in cfusbl_transmit() argument
54 struct cfusbl *usbl = container_of(layr, struct cfusbl, layer); in cfusbl_transmit()
74 return layr->dn->transmit(layr->dn, pkt); in cfusbl_transmit()
77 static void cfusbl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl, in cfusbl_ctrlcmd() argument
80 if (layr->up && layr in cfusbl_ctrlcmd()
[all...]
H A Dcfrfml.c17 #define container_obj(layr) container_of(layr, struct cfrfml, serv.layer)
21 static int cfrfml_receive(struct cflayer *layr, struct cfpkt *pkt);
22 static int cfrfml_transmit(struct cflayer *layr, struct cfpkt *pkt);
97 static int cfrfml_receive(struct cflayer *layr, struct cfpkt *pkt) in cfrfml_receive() argument
106 caif_assert(layr->up != NULL); in cfrfml_receive()
107 caif_assert(layr->receive != NULL); in cfrfml_receive()
108 rfml = container_obj(layr); in cfrfml_receive()
183 layr->up->ctrlcmd(layr in cfrfml_receive()
213 cfrfml_transmit(struct cflayer *layr, struct cfpkt *pkt) cfrfml_transmit() argument
[all...]
/kernel/linux/linux-6.6/net/caif/
H A Dcfserl.c16 #define container_obj(layr) ((struct cfserl *) layr)
29 static int cfserl_receive(struct cflayer *layr, struct cfpkt *pkt);
30 static int cfserl_transmit(struct cflayer *layr, struct cfpkt *pkt);
31 static void cfserl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl,
56 struct cfserl *layr = container_obj(l); in cfserl_receive() local
67 spin_lock(&layr->sync); in cfserl_receive()
69 if (layr->incomplete_frm != NULL) { in cfserl_receive()
70 layr->incomplete_frm = in cfserl_receive()
71 cfpkt_append(layr in cfserl_receive()
181 struct cfserl *layr = container_obj(layer); cfserl_transmit() local
188 cfserl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl, int phyid) cfserl_ctrlcmd() argument
[all...]
H A Dcfutill.c17 #define container_obj(layr) ((struct cfsrvl *) layr)
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) in cfutill_receive() argument
43 struct cfsrvl *service = container_obj(layr); in cfutill_receive()
44 caif_assert(layr != NULL); in cfutill_receive()
45 caif_assert(layr->up != NULL); in cfutill_receive()
46 caif_assert(layr->up->receive != NULL); in cfutill_receive()
47 caif_assert(layr in cfutill_receive()
78 cfutill_transmit(struct cflayer *layr, struct cfpkt *pkt) cfutill_transmit() argument
[all...]
H A Dcfsrvl.c25 #define container_obj(layr) container_of(layr, struct cfsrvl, layer)
27 static void cfservl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl, in cfservl_ctrlcmd() argument
30 struct cfsrvl *service = container_obj(layr); in cfservl_ctrlcmd()
32 if (layr->up == NULL || layr->up->ctrlcmd == NULL) in cfservl_ctrlcmd()
38 layr->up->ctrlcmd(layr->up, ctrl, phyid); in cfservl_ctrlcmd()
43 layr->up->ctrlcmd(layr in cfservl_ctrlcmd()
94 cfservl_modemcmd(struct cflayer *layr, enum caif_modemcmd ctrl) cfservl_modemcmd() argument
[all...]
H A Dcffrml.c20 #define container_obj(layr) container_of(layr, struct cffrml, layer)
28 static int cffrml_receive(struct cflayer *layr, struct cfpkt *pkt);
29 static int cffrml_transmit(struct cflayer *layr, struct cfpkt *pkt);
30 static void cffrml_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl,
82 static int cffrml_receive(struct cflayer *layr, struct cfpkt *pkt) in cffrml_receive() argument
89 this = container_obj(layr); in cffrml_receive()
128 if (layr->up == NULL) { in cffrml_receive()
134 return layr->up->receive(layr in cffrml_receive()
137 cffrml_transmit(struct cflayer *layr, struct cfpkt *pkt) cffrml_transmit() argument
169 cffrml_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl, int phyid) cffrml_ctrlcmd() argument
176 cffrml_put(struct cflayer *layr) cffrml_put() argument
183 cffrml_hold(struct cflayer *layr) cffrml_hold() argument
190 cffrml_refcnt_read(struct cflayer *layr) cffrml_refcnt_read() argument
[all...]
H A Dcfveil.c21 #define container_obj(layr) container_of(layr, struct cfsrvl, layer)
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) in cfvei_receive() argument
43 caif_assert(layr->up != NULL); in cfvei_receive()
44 caif_assert(layr->receive != NULL); in cfvei_receive()
45 caif_assert(layr->ctrlcmd != NULL); in cfvei_receive()
55 ret = layr->up->receive(layr in cfvei_receive()
75 cfvei_transmit(struct cflayer *layr, struct cfpkt *pkt) cfvei_transmit() argument
[all...]
H A Dcfdgml.c17 #define container_obj(layr) ((struct cfsrvl *) layr)
24 static int cfdgml_receive(struct cflayer *layr, struct cfpkt *pkt);
25 static int cfdgml_transmit(struct cflayer *layr, struct cfpkt *pkt);
40 static int cfdgml_receive(struct cflayer *layr, struct cfpkt *pkt) in cfdgml_receive() argument
45 caif_assert(layr->up != NULL); in cfdgml_receive()
46 caif_assert(layr->receive != NULL); in cfdgml_receive()
47 caif_assert(layr->ctrlcmd != NULL); in cfdgml_receive()
61 ret = layr->up->receive(layr in cfdgml_receive()
81 cfdgml_transmit(struct cflayer *layr, struct cfpkt *pkt) cfdgml_transmit() argument
[all...]
H A Dcfvidl.c17 #define container_obj(layr) ((struct cfsrvl *) layr)
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) in cfvidl_receive() argument
44 return layr->up->receive(layr->up, pkt); in cfvidl_receive()
47 static int cfvidl_transmit(struct cflayer *layr, struct cfpkt *pkt) in cfvidl_transmit() argument
49 struct cfsrvl *service = container_obj(layr); in cfvidl_transmit()
64 return layr in cfvidl_transmit()
[all...]
H A Dcfdbgl.c15 #define container_obj(layr) ((struct cfsrvl *) layr)
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) in cfdbgl_receive() argument
35 return layr->up->receive(layr->up, pkt); in cfdbgl_receive()
38 static int cfdbgl_transmit(struct cflayer *layr, struct cfpkt *pkt) in cfdbgl_transmit() argument
40 struct cfsrvl *service = container_obj(layr); in cfdbgl_transmit()
54 return layr in cfdbgl_transmit()
[all...]
H A Dcfmuxl.c18 #define container_obj(layr) container_of(layr, struct cfmuxl, layer)
42 static int cfmuxl_receive(struct cflayer *layr, struct cfpkt *pkt);
43 static int cfmuxl_transmit(struct cflayer *layr, struct cfpkt *pkt);
44 static void cfmuxl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl,
65 int cfmuxl_set_dnlayer(struct cflayer *layr, struct cflayer *dn, u8 phyid) in cfmuxl_set_dnlayer() argument
67 struct cfmuxl *muxl = (struct cfmuxl *) layr; in cfmuxl_set_dnlayer()
86 int cfmuxl_set_uplayer(struct cflayer *layr, struct cflayer *up, u8 linkid) in cfmuxl_set_uplayer() argument
88 struct cfmuxl *muxl = container_obj(layr); in cfmuxl_set_uplayer()
104 struct cflayer *cfmuxl_remove_dnlayer(struct cflayer *layr, u argument
151 cfmuxl_remove_uplayer(struct cflayer *layr, u8 id) cfmuxl_remove_uplayer() argument
174 cfmuxl_receive(struct cflayer *layr, struct cfpkt *pkt) cfmuxl_receive() argument
211 cfmuxl_transmit(struct cflayer *layr, struct cfpkt *pkt) cfmuxl_transmit() argument
246 cfmuxl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl, int phyid) cfmuxl_ctrlcmd() argument
[all...]
H A Dcaif_usb.c38 static int cfusbl_receive(struct cflayer *layr, struct cfpkt *pkt) in cfusbl_receive() argument
45 return layr->up->receive(layr->up, pkt); in cfusbl_receive()
48 static int cfusbl_transmit(struct cflayer *layr, struct cfpkt *pkt) in cfusbl_transmit() argument
54 struct cfusbl *usbl = container_of(layr, struct cfusbl, layer); in cfusbl_transmit()
74 return layr->dn->transmit(layr->dn, pkt); in cfusbl_transmit()
77 static void cfusbl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl, in cfusbl_ctrlcmd() argument
80 if (layr->up && layr in cfusbl_ctrlcmd()
[all...]
/kernel/linux/linux-5.10/include/net/caif/
H A Dcfsrvl.h36 void cfsrvl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl,
48 static inline void cfsrvl_get(struct cflayer *layr) in cfsrvl_get() argument
50 struct cfsrvl *s = container_of(layr, struct cfsrvl, layer); in cfsrvl_get()
51 if (layr == NULL || layr->up == NULL || s->hold == NULL) in cfsrvl_get()
54 s->hold(layr->up); in cfsrvl_get()
57 static inline void cfsrvl_put(struct cflayer *layr) in cfsrvl_put() argument
59 struct cfsrvl *s = container_of(layr, struct cfsrvl, layer); in cfsrvl_put()
60 if (layr == NULL || layr in cfsrvl_put()
[all...]
H A Dcaif_layer.h175 * @layr: Pointer to the current layer the receive function is
179 int (*receive)(struct cflayer *layr, struct cfpkt *cfpkt);
202 * @layr: Pointer to the current layer the receive function
206 int (*transmit) (struct cflayer *layr, struct cfpkt *cfpkt);
213 * @layr: Pointer to the current layer the receive function
217 void (*ctrlcmd) (struct cflayer *layr, enum caif_ctrlcmd ctrl,
225 * @layr: Pointer to the current layer the receive function
229 int (*modemcmd) (struct cflayer *layr, enum caif_modemcmd ctrl);
237 * @layr: Layer where up pointer shall be set.
240 #define layer_set_up(layr, abov
[all...]
/kernel/linux/linux-6.6/include/net/caif/
H A Dcfsrvl.h45 static inline void cfsrvl_get(struct cflayer *layr) in cfsrvl_get() argument
47 struct cfsrvl *s = container_of(layr, struct cfsrvl, layer); in cfsrvl_get()
48 if (layr == NULL || layr->up == NULL || s->hold == NULL) in cfsrvl_get()
51 s->hold(layr->up); in cfsrvl_get()
54 static inline void cfsrvl_put(struct cflayer *layr) in cfsrvl_put() argument
56 struct cfsrvl *s = container_of(layr, struct cfsrvl, layer); in cfsrvl_put()
57 if (layr == NULL || layr->up == NULL || s->hold == NULL) in cfsrvl_put()
60 s->put(layr in cfsrvl_put()
[all...]
H A Dcaif_layer.h175 * @layr: Pointer to the current layer the receive function is
179 int (*receive)(struct cflayer *layr, struct cfpkt *cfpkt);
202 * @layr: Pointer to the current layer the receive function
206 int (*transmit) (struct cflayer *layr, struct cfpkt *cfpkt);
213 * @layr: Pointer to the current layer the receive function
217 void (*ctrlcmd) (struct cflayer *layr, enum caif_ctrlcmd ctrl,
225 * @layr: Pointer to the current layer the receive function
229 int (*modemcmd) (struct cflayer *layr, enum caif_modemcmd ctrl);
237 * @layr: Layer where up pointer shall be set.
240 #define layer_set_up(layr, abov
[all...]

Completed in 7 milliseconds

12