Home
last modified time | relevance | path

Searched refs:layr (Results 1 – 19 of 19) sorted by relevance

/linux-2.6.39/net/caif/
Dcfserl.c16 #define container_obj(layr) ((struct cfserl *) layr) argument
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,
55 struct cfserl *layr = container_obj(l); in cfserl_receive() local
66 spin_lock(&layr->sync); in cfserl_receive()
68 if (layr->incomplete_frm != NULL) { in cfserl_receive()
69 layr->incomplete_frm = in cfserl_receive()
70 cfpkt_append(layr->incomplete_frm, newpkt, expectlen); in cfserl_receive()
71 pkt = layr->incomplete_frm; in cfserl_receive()
[all …]
Dcfutill.c17 #define container_obj(layr) ((struct cfsrvl *) layr) argument
24 static int cfutill_receive(struct cflayer *layr, struct cfpkt *pkt);
25 static int cfutill_transmit(struct cflayer *layr, struct cfpkt *pkt);
43 static int cfutill_receive(struct cflayer *layr, struct cfpkt *pkt) in cfutill_receive() argument
46 struct cfsrvl *service = container_obj(layr); in cfutill_receive()
47 caif_assert(layr != NULL); in cfutill_receive()
48 caif_assert(layr->up != NULL); in cfutill_receive()
49 caif_assert(layr->up->receive != NULL); in cfutill_receive()
50 caif_assert(layr->up->ctrlcmd != NULL); in cfutill_receive()
59 return layr->up->receive(layr->up, pkt); in cfutill_receive()
[all …]
Dcfsrvl.c23 #define container_obj(layr) container_of(layr, struct cfsrvl, layer) argument
25 static void cfservl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl, in cfservl_ctrlcmd() argument
28 struct cfsrvl *service = container_obj(layr); in cfservl_ctrlcmd()
30 caif_assert(layr->up != NULL); in cfservl_ctrlcmd()
31 caif_assert(layr->up->ctrlcmd != NULL); in cfservl_ctrlcmd()
36 layr->up->ctrlcmd(layr->up, ctrl, phyid); in cfservl_ctrlcmd()
41 layr->up->ctrlcmd(layr->up, ctrl, phyid); in cfservl_ctrlcmd()
47 layr->up->ctrlcmd(layr->up, in cfservl_ctrlcmd()
55 layr->up->ctrlcmd(layr->up, in cfservl_ctrlcmd()
63 layr->up->ctrlcmd(layr->up, in cfservl_ctrlcmd()
[all …]
Dcfveil.c21 #define container_obj(layr) container_of(layr, struct cfsrvl, layer) argument
23 static int cfvei_receive(struct cflayer *layr, struct cfpkt *pkt);
24 static int cfvei_transmit(struct cflayer *layr, struct cfpkt *pkt);
42 static int cfvei_receive(struct cflayer *layr, struct cfpkt *pkt) in cfvei_receive() argument
46 caif_assert(layr->up != NULL); in cfvei_receive()
47 caif_assert(layr->receive != NULL); in cfvei_receive()
48 caif_assert(layr->ctrlcmd != NULL); in cfvei_receive()
58 ret = layr->up->receive(layr->up, pkt); in cfvei_receive()
61 layr->ctrlcmd(layr, CAIF_CTRLCMD_FLOW_OFF_IND, 0); in cfvei_receive()
65 layr->ctrlcmd(layr, CAIF_CTRLCMD_FLOW_ON_IND, 0); in cfvei_receive()
[all …]
Dcfdgml.c17 #define container_obj(layr) ((struct cfsrvl *) layr) argument
24 static int cfdgml_receive(struct cflayer *layr, struct cfpkt *pkt);
25 static int cfdgml_transmit(struct cflayer *layr, struct cfpkt *pkt);
44 static int cfdgml_receive(struct cflayer *layr, struct cfpkt *pkt) in cfdgml_receive() argument
49 caif_assert(layr->up != NULL); in cfdgml_receive()
50 caif_assert(layr->receive != NULL); in cfdgml_receive()
51 caif_assert(layr->ctrlcmd != NULL); in cfdgml_receive()
65 ret = layr->up->receive(layr->up, pkt); in cfdgml_receive()
71 layr->ctrlcmd(layr, CAIF_CTRLCMD_FLOW_OFF_IND, 0); in cfdgml_receive()
75 layr->ctrlcmd(layr, CAIF_CTRLCMD_FLOW_ON_IND, 0); in cfdgml_receive()
[all …]
Dcffrml.c19 #define container_obj(layr) container_of(layr, struct cffrml, layer) argument
26 static int cffrml_receive(struct cflayer *layr, struct cfpkt *pkt);
27 static int cffrml_transmit(struct cflayer *layr, struct cfpkt *pkt);
28 static void cffrml_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl,
70 static int cffrml_receive(struct cflayer *layr, struct cfpkt *pkt) in cffrml_receive() argument
77 this = container_obj(layr); in cffrml_receive()
115 return layr->up->receive(layr->up, pkt); in cffrml_receive()
118 static int cffrml_transmit(struct cflayer *layr, struct cfpkt *pkt) in cffrml_transmit() argument
124 struct cffrml *this = container_obj(layr); in cffrml_transmit()
140 ret = layr->dn->transmit(layr->dn, pkt); in cffrml_transmit()
[all …]
Dcfdbgl.c15 #define container_obj(layr) ((struct cfsrvl *) layr) argument
17 static int cfdbgl_receive(struct cflayer *layr, struct cfpkt *pkt);
18 static int cfdbgl_transmit(struct cflayer *layr, struct cfpkt *pkt);
36 static int cfdbgl_receive(struct cflayer *layr, struct cfpkt *pkt) in cfdbgl_receive() argument
38 return layr->up->receive(layr->up, pkt); in cfdbgl_receive()
41 static int cfdbgl_transmit(struct cflayer *layr, struct cfpkt *pkt) in cfdbgl_transmit() argument
43 struct cfsrvl *service = container_obj(layr); in cfdbgl_transmit()
55 return layr->dn->transmit(layr->dn, pkt); in cfdbgl_transmit()
Dcfvidl.c17 #define container_obj(layr) ((struct cfsrvl *) layr) argument
19 static int cfvidl_receive(struct cflayer *layr, struct cfpkt *pkt);
20 static int cfvidl_transmit(struct cflayer *layr, struct cfpkt *pkt);
39 static int cfvidl_receive(struct cflayer *layr, struct cfpkt *pkt) in cfvidl_receive() argument
47 return layr->up->receive(layr->up, pkt); in cfvidl_receive()
50 static int cfvidl_transmit(struct cflayer *layr, struct cfpkt *pkt) in cfvidl_transmit() argument
52 struct cfsrvl *service = container_obj(layr); in cfvidl_transmit()
63 ret = layr->dn->transmit(layr->dn, pkt); in cfvidl_transmit()
Dcfmuxl.c17 #define container_obj(layr) container_of(layr, struct cfmuxl, layer) argument
41 static int cfmuxl_receive(struct cflayer *layr, struct cfpkt *pkt);
42 static int cfmuxl_transmit(struct cflayer *layr, struct cfpkt *pkt);
43 static void cfmuxl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl,
64 int cfmuxl_set_uplayer(struct cflayer *layr, struct cflayer *up, u8 linkid) in cfmuxl_set_uplayer() argument
66 struct cfmuxl *muxl = container_obj(layr); in cfmuxl_set_uplayer()
74 bool cfmuxl_is_phy_inuse(struct cflayer *layr, u8 phyid) in cfmuxl_is_phy_inuse() argument
78 struct cfmuxl *muxl = container_obj(layr); in cfmuxl_is_phy_inuse()
94 u8 cfmuxl_get_phyid(struct cflayer *layr, u8 channel_id) in cfmuxl_get_phyid() argument
98 struct cfmuxl *muxl = container_obj(layr); in cfmuxl_get_phyid()
[all …]
Dcfrfml.c17 #define container_obj(layr) container_of(layr, struct cfrfml, serv.layer) argument
21 static int cfrfml_receive(struct cflayer *layr, struct cfpkt *pkt);
22 static int cfrfml_transmit(struct cflayer *layr, struct cfpkt *pkt);
100 static int cfrfml_receive(struct cflayer *layr, struct cfpkt *pkt) in cfrfml_receive() argument
109 caif_assert(layr->up != NULL); in cfrfml_receive()
110 caif_assert(layr->receive != NULL); in cfrfml_receive()
111 rfml = container_obj(layr); in cfrfml_receive()
186 layr->up->ctrlcmd(layr->up, CAIF_CTRLCMD_REMOTE_SHUTDOWN_IND, in cfrfml_receive()
211 static int cfrfml_transmit(struct cflayer *layr, struct cfpkt *pkt) in cfrfml_transmit() argument
218 struct cfrfml *rfml = container_obj(layr); in cfrfml_transmit()
[all …]
Dcfctrl.c16 #define container_obj(layr) container_of(layr, struct cfctrl, serv.layer) argument
30 static int cfctrl_recv(struct cflayer *layr, struct cfpkt *pkt);
31 static void cfctrl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl,
359 void cfctrl_cancel_req(struct cflayer *layr, struct cflayer *adap_layer) in cfctrl_cancel_req() argument
362 struct cfctrl *ctrl = container_obj(layr); in cfctrl_cancel_req()
580 static void cfctrl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl, in cfctrl_ctrlcmd() argument
583 struct cfctrl *this = container_obj(layr); in cfctrl_ctrlcmd()
Dchnl_net.c73 static int chnl_recv_cb(struct cflayer *layr, struct cfpkt *pkt) in chnl_recv_cb() argument
76 struct chnl_net *priv = container_of(layr, struct chnl_net, chnl); in chnl_recv_cb()
82 priv = container_of(layr, struct chnl_net, chnl); in chnl_recv_cb()
156 static void chnl_flowctrl_cb(struct cflayer *layr, enum caif_ctrlcmd flow, in chnl_flowctrl_cb() argument
159 struct chnl_net *priv = container_of(layr, struct chnl_net, chnl); in chnl_flowctrl_cb()
Dcaif_dev.c146 static int modemcmd(struct cflayer *layr, enum caif_modemcmd ctrl) in modemcmd() argument
150 caifd = container_of(layr, struct caif_device_entry, layer); in modemcmd()
Dcfcnfg.c27 #define container_obj(layr) container_of(layr, struct cfcnfg, layer) argument
Dcaif_socket.c196 static int caif_sktrecv_cb(struct cflayer *layr, struct cfpkt *pkt) in caif_sktrecv_cb() argument
201 cf_sk = container_of(layr, struct caifsock, layer); in caif_sktrecv_cb()
213 static void caif_ctrl_cb(struct cflayer *layr, in caif_ctrl_cb() argument
217 struct caifsock *cf_sk = container_of(layr, struct caifsock, layer); in caif_ctrl_cb()
/linux-2.6.39/include/net/caif/
Dcaif_layer.h176 int (*receive)(struct cflayer *layr, struct cfpkt *cfpkt);
202 int (*transmit) (struct cflayer *layr, struct cfpkt *cfpkt);
213 void (*ctrlcmd) (struct cflayer *layr, enum caif_ctrlcmd ctrl,
225 int (*modemcmd) (struct cflayer *layr, enum caif_modemcmd ctrl);
238 #define layer_set_up(layr, above) ((layr)->up = (struct cflayer *)(above)) argument
245 #define layer_set_dn(layr, below) ((layr)->dn = (struct cflayer *)(below)) argument
Dcfmuxl.h15 int cfmuxl_set_uplayer(struct cflayer *layr, struct cflayer *up, u8 linkid);
16 struct cflayer *cfmuxl_remove_dnlayer(struct cflayer *layr, u8 phyid);
17 int cfmuxl_set_dnlayer(struct cflayer *layr, struct cflayer *up, u8 phyid);
18 struct cflayer *cfmuxl_remove_uplayer(struct cflayer *layr, u8 linkid);
19 bool cfmuxl_is_phy_inuse(struct cflayer *layr, u8 phyid);
20 u8 cfmuxl_get_phyid(struct cflayer *layr, u8 channel_id);
Dcfsrvl.h42 static inline void cfsrvl_get(struct cflayer *layr) in cfsrvl_get() argument
45 if (layr == NULL) in cfsrvl_get()
47 s = container_of(layr, struct cfsrvl, layer); in cfsrvl_get()
51 static inline void cfsrvl_put(struct cflayer *layr) in cfsrvl_put() argument
54 if (layr == NULL) in cfsrvl_put()
56 s = container_of(layr, struct cfsrvl, layer); in cfsrvl_put()
Dcfctrl.h137 void cfctrl_cancel_req(struct cflayer *layr, struct cflayer *adap_layer);