/linux/net/caif/ |
H A D | cfmuxl.c | 25 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 …]
|
H A D | cffrml.c | 23 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 …]
|
H A D | cfcnfg.c | 34 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 …]
|
H A D | cfserl.c | 22 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()
|
H A D | cfdbgl.c | 17 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()
|
H A D | cfvidl.c | 19 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()
|
H A D | caif_usb.c | 33 struct cflayer layer; 39 static int cfusbl_receive(struct cflayer *layr, struct cfpkt *pkt) in cfusbl_receive() 49 static int cfusbl_transmit(struct cflayer *layr, struct cfpkt *pkt) in cfusbl_transmit() 78 static void cfusbl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl, in cfusbl_ctrlcmd() 85 static struct cflayer *cfusbl_create(int phyid, const u8 ethaddr[ETH_ALEN], in cfusbl_create() 116 return (struct cflayer *) this; in cfusbl_create() 119 static void cfusbl_release(struct cflayer *layer) in cfusbl_release() 133 struct cflayer *layer, *link_support; in cfusbl_device_notify()
|
H A D | cfctrl.c | 30 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() 204 struct cflayer *dn = cfctrl->serv.layer.dn; in cfctrl_linkup_request() [all …]
|
H A D | cfdgml.c | 24 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()
|
H A D | cfveil.c | 23 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()
|
H A D | cfutill.c | 24 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()
|
H A D | cfrfml.c | 21 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()
|
H A D | chnl_net.c | 46 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()
|
H A D | caif_dev.c | 35 struct cflayer layer; 168 static int transmit(struct cflayer *layer, struct cfpkt *pkt) in transmit() 313 struct cflayer *link_support, int head_room, in caif_enroll_dev() 314 struct cflayer **layer, in caif_enroll_dev() 371 struct cflayer *layer, *link_support; in caif_device_notify()
|
H A D | caif_socket.c | 50 struct cflayer layer; 161 static int caif_sktrecv_cb(struct cflayer *layr, struct cfpkt *pkt) in caif_sktrecv_cb() 177 static void cfsk_hold(struct cflayer *layr) in cfsk_hold() 183 static void cfsk_put(struct cflayer *layr) in cfsk_put() 190 static void caif_ctrl_cb(struct cflayer *layr, in caif_ctrl_cb()
|
/linux/include/net/caif/ |
H A D | cfctrl.h | 43 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 …]
|
H A D | cffrml.h | 13 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);
|
H A D | cfmuxl.h | 14 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);
|
H A D | caif_layer.h | 12 struct cflayer; 146 struct cflayer { struct 147 struct cflayer *up; argument 148 struct cflayer *dn; argument 177 int (*receive)(struct cflayer *layr, struct cfpkt *cfpkt); argument 204 int (*transmit) (struct cflayer *layr, struct cfpkt *cfpkt); argument 215 void (*ctrlcmd) (struct cflayer *layr, enum caif_ctrlcmd ctrl, argument 227 int (*modemcmd) (struct cflayer *layr, enum caif_modemcmd ctrl); argument 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))
|
H A D | caif_dev.h | 69 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)(
|
H A D | cfcnfg.h | 67 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,
|
H A D | cfserl.h | 11 struct cflayer *cfserl_create(int instance, bool use_stx); 12 void cfserl_release(struct cflayer *layer);
|
/linux/Documentation/networking/caif/ |
H A D | linux_caif.rst | 161 - 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
|