Home
last modified time | relevance | path

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

/linux-6.1.9/net/caif/
Dcfmuxl.c25 struct cflayer layer;
28 struct cflayer *up_cache[UP_CACHE_SIZE];
29 struct cflayer *dn_cache[DN_CACHE_SIZE];
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,
46 static struct cflayer *get_up(struct cfmuxl *muxl, u16 id);
48 struct cflayer *cfmuxl_create(void) in cfmuxl_create()
65 int cfmuxl_set_dnlayer(struct cflayer *layr, struct cflayer *dn, u8 phyid) in cfmuxl_set_dnlayer()
75 static struct cflayer *get_from_id(struct list_head *list, u16 id) in get_from_id()
[all …]
Dcffrml.c23 struct cflayer 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,
35 struct cflayer *cffrml_create(u16 phyid, bool use_fcs) in cffrml_create()
54 return (struct cflayer *) this; in cffrml_create()
57 void cffrml_free(struct cflayer *layer) in cffrml_free()
64 void cffrml_set_uplayer(struct cflayer *this, struct cflayer *up) in cffrml_set_uplayer()
69 void cffrml_set_dnlayer(struct cflayer *this, struct cflayer *dn) in cffrml_set_dnlayer()
82 static int cffrml_receive(struct cflayer *layr, struct cfpkt *pkt) in cffrml_receive()
[all …]
Dcfcnfg.c34 struct cflayer *frm_layer;
36 struct cflayer *phy_layer;
56 struct cflayer layer;
57 struct cflayer *ctrl;
58 struct cflayer *mux;
63 static void cfcnfg_linkup_rsp(struct cflayer *layer, u8 channel_id,
65 struct cflayer *adapt_layer);
66 static void cfcnfg_linkdestroy_rsp(struct cflayer *layer, u8 channel_id);
67 static void cfcnfg_reject_rsp(struct cflayer *layer, u8 channel_id,
68 struct cflayer *adapt_layer);
[all …]
Dcfserl.c22 struct cflayer layer;
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,
34 void cfserl_release(struct cflayer *layer) in cfserl_release()
39 struct cflayer *cfserl_create(int instance, bool use_stx) in cfserl_create()
54 static int cfserl_receive(struct cflayer *l, struct cfpkt *newpkt) in cfserl_receive()
179 static int cfserl_transmit(struct cflayer *layer, struct cfpkt *newpkt) in cfserl_transmit()
188 static void cfserl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl, in cfserl_ctrlcmd()
Dcfdbgl.c17 static int cfdbgl_receive(struct cflayer *layr, struct cfpkt *pkt);
18 static int cfdbgl_transmit(struct cflayer *layr, struct cfpkt *pkt);
20 struct cflayer *cfdbgl_create(u8 channel_id, struct dev_info *dev_info) in cfdbgl_create()
33 static int cfdbgl_receive(struct cflayer *layr, struct cfpkt *pkt) in cfdbgl_receive()
38 static int cfdbgl_transmit(struct cflayer *layr, struct cfpkt *pkt) in cfdbgl_transmit()
Dcfsrvl.c27 static void cfservl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl, in cfservl_ctrlcmd()
94 static int cfservl_modemcmd(struct cflayer *layr, enum caif_modemcmd ctrl) in cfservl_modemcmd()
154 static void cfsrvl_release(struct cflayer *layer) in cfsrvl_release()
186 u8 cfsrvl_getphyid(struct cflayer *layer) in cfsrvl_getphyid()
192 bool cfsrvl_phyid_match(struct cflayer *layer, int phyid) in cfsrvl_phyid_match()
198 void caif_free_client(struct cflayer *adap_layer) in caif_free_client()
208 void caif_client_register_refcnt(struct cflayer *adapt_layer, in caif_client_register_refcnt()
209 void (*hold)(struct cflayer *lyr), in caif_client_register_refcnt()
210 void (*put)(struct cflayer *lyr)) in caif_client_register_refcnt()
Dcfvidl.c19 static int cfvidl_receive(struct cflayer *layr, struct cfpkt *pkt);
20 static int cfvidl_transmit(struct cflayer *layr, struct cfpkt *pkt);
22 struct cflayer *cfvidl_create(u8 channel_id, struct dev_info *dev_info) in cfvidl_create()
36 static int cfvidl_receive(struct cflayer *layr, struct cfpkt *pkt) in cfvidl_receive()
47 static int cfvidl_transmit(struct cflayer *layr, struct cfpkt *pkt) in cfvidl_transmit()
Dcaif_usb.c32 struct cflayer layer;
38 static int cfusbl_receive(struct cflayer *layr, struct cfpkt *pkt) in cfusbl_receive()
48 static int cfusbl_transmit(struct cflayer *layr, struct cfpkt *pkt) in cfusbl_transmit()
77 static void cfusbl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl, in cfusbl_ctrlcmd()
84 static struct cflayer *cfusbl_create(int phyid, const u8 ethaddr[ETH_ALEN], in cfusbl_create()
115 return (struct cflayer *) this; in cfusbl_create()
118 static void cfusbl_release(struct cflayer *layer) in cfusbl_release()
132 struct cflayer *layer, *link_support; in cfusbl_device_notify()
Dcfctrl.c30 static int cfctrl_recv(struct cflayer *layr, struct cfpkt *pkt);
31 static void cfctrl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl,
35 struct cflayer *cfctrl_create(void) in cfctrl_create()
60 void cfctrl_remove(struct cflayer *layer) in cfctrl_remove()
163 struct cfctrl_rsp *cfctrl_get_respfuncs(struct cflayer *layer) in cfctrl_get_respfuncs()
176 void cfctrl_enum_req(struct cflayer *layer, u8 physlinkid) in cfctrl_enum_req()
180 struct cflayer *dn = cfctrl->serv.layer.dn; in cfctrl_enum_req()
199 int cfctrl_linkup_request(struct cflayer *layer, in cfctrl_linkup_request()
201 struct cflayer *user_layer) in cfctrl_linkup_request()
211 struct cflayer *dn = cfctrl->serv.layer.dn; in cfctrl_linkup_request()
[all …]
Dcfdgml.c24 static int cfdgml_receive(struct cflayer *layr, struct cfpkt *pkt);
25 static int cfdgml_transmit(struct cflayer *layr, struct cfpkt *pkt);
27 struct cflayer *cfdgml_create(u8 channel_id, struct dev_info *dev_info) in cfdgml_create()
40 static int cfdgml_receive(struct cflayer *layr, struct cfpkt *pkt) in cfdgml_receive()
81 static int cfdgml_transmit(struct cflayer *layr, struct cfpkt *pkt) in cfdgml_transmit()
Dcfveil.c23 static int cfvei_receive(struct cflayer *layr, struct cfpkt *pkt);
24 static int cfvei_transmit(struct cflayer *layr, struct cfpkt *pkt);
26 struct cflayer *cfvei_create(u8 channel_id, struct dev_info *dev_info) in cfvei_create()
39 static int cfvei_receive(struct cflayer *layr, struct cfpkt *pkt) in cfvei_receive()
75 static int cfvei_transmit(struct cflayer *layr, struct cfpkt *pkt) in cfvei_transmit()
Dcfutill.c24 static int cfutill_receive(struct cflayer *layr, struct cfpkt *pkt);
25 static int cfutill_transmit(struct cflayer *layr, struct cfpkt *pkt);
27 struct cflayer *cfutill_create(u8 channel_id, struct dev_info *dev_info) in cfutill_create()
40 static int cfutill_receive(struct cflayer *layr, struct cfpkt *pkt) in cfutill_receive()
78 static int cfutill_transmit(struct cflayer *layr, struct cfpkt *pkt) in cfutill_transmit()
Dcfrfml.c21 static int cfrfml_receive(struct cflayer *layr, struct cfpkt *pkt);
22 static int cfrfml_transmit(struct cflayer *layr, struct cfpkt *pkt);
34 static void cfrfml_release(struct cflayer *layer) in cfrfml_release()
45 struct cflayer *cfrfml_create(u8 channel_id, struct dev_info *dev_info, in cfrfml_create()
97 static int cfrfml_receive(struct cflayer *layr, struct cfpkt *pkt) in cfrfml_receive()
213 static int cfrfml_transmit(struct cflayer *layr, struct cfpkt *pkt) in cfrfml_transmit()
Dcaif_dev.c34 struct cflayer layer;
167 static int transmit(struct cflayer *layer, struct cfpkt *pkt) in transmit()
312 struct cflayer *link_support, int head_room, in caif_enroll_dev()
313 struct cflayer **layer, in caif_enroll_dev()
370 struct cflayer *layer, *link_support; in caif_device_notify()
Dchnl_net.c45 struct cflayer chnl;
56 static int chnl_recv_cb(struct cflayer *layr, struct cfpkt *pkt) in chnl_recv_cb()
135 static void chnl_hold(struct cflayer *lyr) in chnl_hold()
141 static void chnl_put(struct cflayer *lyr) in chnl_put()
147 static void chnl_flowctrl_cb(struct cflayer *layr, enum caif_ctrlcmd flow, in chnl_flowctrl_cb()
Dcaif_socket.c49 struct cflayer layer;
160 static int caif_sktrecv_cb(struct cflayer *layr, struct cfpkt *pkt) in caif_sktrecv_cb()
176 static void cfsk_hold(struct cflayer *layr) in cfsk_hold()
182 static void cfsk_put(struct cflayer *layr) in cfsk_put()
189 static void caif_ctrl_cb(struct cflayer *layr, in caif_ctrl_cb()
/linux-6.1.9/include/net/caif/
Dcfsrvl.h16 struct cflayer layer;
21 void (*release)(struct cflayer *layer);
23 void (*hold)(struct cflayer *lyr);
24 void (*put)(struct cflayer *lyr);
28 struct cflayer *cfvei_create(u8 linkid, struct dev_info *dev_info);
29 struct cflayer *cfdgml_create(u8 linkid, struct dev_info *dev_info);
30 struct cflayer *cfutill_create(u8 linkid, struct dev_info *dev_info);
31 struct cflayer *cfvidl_create(u8 linkid, struct dev_info *dev_info);
32 struct cflayer *cfrfml_create(u8 linkid, struct dev_info *dev_info,
34 struct cflayer *cfdbgl_create(u8 linkid, struct dev_info *dev_info);
[all …]
Dcfctrl.h43 void (*linksetup_rsp)(struct cflayer *layer, u8 linkid,
45 struct cflayer *adapt_layer);
46 void (*linkdestroy_rsp)(struct cflayer *layer, u8 linkid);
53 void (*reject_rsp)(struct cflayer *layer, u8 linkid,
54 struct cflayer *client_layer);
97 struct cflayer *client_layer;
118 void cfctrl_enum_req(struct cflayer *cfctrl, u8 physlinkid);
119 int cfctrl_linkup_request(struct cflayer *cfctrl,
121 struct cflayer *user_layer);
122 int cfctrl_linkdown_req(struct cflayer *cfctrl, u8 linkid,
[all …]
Dcffrml.h13 struct cflayer *cffrml_create(u16 phyid, bool use_fcs);
14 void cffrml_free(struct cflayer *layr);
15 void cffrml_set_uplayer(struct cflayer *this, struct cflayer *up);
16 void cffrml_set_dnlayer(struct cflayer *this, struct cflayer *dn);
17 void cffrml_put(struct cflayer *layr);
18 void cffrml_hold(struct cflayer *layr);
19 int cffrml_refcnt_read(struct cflayer *layr);
Dcfmuxl.h14 struct cflayer *cfmuxl_create(void);
15 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);
Dcaif_layer.h12 struct cflayer;
148 struct cflayer { struct
149 struct cflayer *up; argument
150 struct cflayer *dn; argument
179 int (*receive)(struct cflayer *layr, struct cfpkt *cfpkt); argument
206 int (*transmit) (struct cflayer *layr, struct cfpkt *cfpkt); argument
217 void (*ctrlcmd) (struct cflayer *layr, enum caif_ctrlcmd ctrl, argument
229 int (*modemcmd) (struct cflayer *layr, enum caif_modemcmd ctrl); argument
240 #define layer_set_up(layr, above) ((layr)->up = (struct cflayer *)(above)) argument
247 #define layer_set_dn(layr, below) ((layr)->dn = (struct cflayer *)(below))
Dcaif_dev.h69 struct cflayer *client_layer, int *ifindex,
77 int caif_disconnect_client(struct net *net, struct cflayer *client_layer);
94 void caif_client_register_refcnt(struct cflayer *adapt_layer,
95 void (*hold)(struct cflayer *lyr),
96 void (*put)(struct cflayer *lyr));
106 void caif_free_client(struct cflayer *adap_layer);
123 struct cflayer *link_support, int head_room,
124 struct cflayer **layer, int (**rcv_func)(
Dcfcnfg.h67 struct net_device *dev, struct cflayer *phy_layer,
69 struct cflayer *link_support,
79 int cfcnfg_del_phy_layer(struct cfcnfg *cnfg, struct cflayer *phy_layer);
87 int cfcnfg_set_phy_state(struct cfcnfg *cnfg, struct cflayer *phy_layer,
Dcfserl.h11 struct cflayer *cfserl_create(int instance, bool use_stx);
12 void cfserl_release(struct cflayer *layer);
/linux-6.1.9/Documentation/networking/caif/
Dlinux_caif.rst161 - All layers embed the same structure "struct cflayer"
181 'struct cflayer', just like the CAIF Core protocol stack.
183 'struct cflayer', just like the rest of the CAIF stack. In this way, transmit and