layr 179 include/net/caif/caif_layer.h int (*receive)(struct cflayer *layr, struct cfpkt *cfpkt); layr 206 include/net/caif/caif_layer.h int (*transmit) (struct cflayer *layr, struct cfpkt *cfpkt); layr 217 include/net/caif/caif_layer.h void (*ctrlcmd) (struct cflayer *layr, enum caif_ctrlcmd ctrl, layr 229 include/net/caif/caif_layer.h int (*modemcmd) (struct cflayer *layr, enum caif_modemcmd ctrl); layr 240 include/net/caif/caif_layer.h #define layer_set_up(layr, above) ((layr)->up = (struct cflayer *)(above)) layr 247 include/net/caif/caif_layer.h #define layer_set_dn(layr, below) ((layr)->dn = (struct cflayer *)(below)) layr 127 include/net/caif/cfctrl.h int cfctrl_cancel_req(struct cflayer *layr, struct cflayer *adap_layer); layr 128 include/net/caif/cfctrl.h void cfctrl_remove(struct cflayer *layr); layr 14 include/net/caif/cffrml.h void cffrml_free(struct cflayer *layr); layr 17 include/net/caif/cffrml.h void cffrml_put(struct cflayer *layr); layr 18 include/net/caif/cffrml.h void cffrml_hold(struct cflayer *layr); layr 19 include/net/caif/cffrml.h int cffrml_refcnt_read(struct cflayer *layr); layr 15 include/net/caif/cfmuxl.h int cfmuxl_set_uplayer(struct cflayer *layr, struct cflayer *up, u8 linkid); layr 16 include/net/caif/cfmuxl.h struct cflayer *cfmuxl_remove_dnlayer(struct cflayer *layr, u8 phyid); layr 17 include/net/caif/cfmuxl.h int cfmuxl_set_dnlayer(struct cflayer *layr, struct cflayer *up, u8 phyid); layr 18 include/net/caif/cfmuxl.h struct cflayer *cfmuxl_remove_uplayer(struct cflayer *layr, u8 linkid); layr 36 include/net/caif/cfsrvl.h void cfsrvl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl, layr 48 include/net/caif/cfsrvl.h static inline void cfsrvl_get(struct cflayer *layr) layr 50 include/net/caif/cfsrvl.h struct cfsrvl *s = container_of(layr, struct cfsrvl, layer); layr 51 include/net/caif/cfsrvl.h if (layr == NULL || layr->up == NULL || s->hold == NULL) layr 54 include/net/caif/cfsrvl.h s->hold(layr->up); layr 57 include/net/caif/cfsrvl.h static inline void cfsrvl_put(struct cflayer *layr) layr 59 include/net/caif/cfsrvl.h struct cfsrvl *s = container_of(layr, struct cfsrvl, layer); layr 60 include/net/caif/cfsrvl.h if (layr == NULL || layr->up == NULL || s->hold == NULL) layr 63 include/net/caif/cfsrvl.h s->put(layr->up); layr 165 net/caif/caif_socket.c static int caif_sktrecv_cb(struct cflayer *layr, struct cfpkt *pkt) layr 170 net/caif/caif_socket.c cf_sk = container_of(layr, struct caifsock, layer); layr 181 net/caif/caif_socket.c static void cfsk_hold(struct cflayer *layr) layr 183 net/caif/caif_socket.c struct caifsock *cf_sk = container_of(layr, struct caifsock, layer); layr 187 net/caif/caif_socket.c static void cfsk_put(struct cflayer *layr) layr 189 net/caif/caif_socket.c struct caifsock *cf_sk = container_of(layr, struct caifsock, layer); layr 194 net/caif/caif_socket.c static void caif_ctrl_cb(struct cflayer *layr, layr 198 net/caif/caif_socket.c struct caifsock *cf_sk = container_of(layr, struct caifsock, layer); layr 38 net/caif/caif_usb.c static int cfusbl_receive(struct cflayer *layr, struct cfpkt *pkt) layr 45 net/caif/caif_usb.c return layr->up->receive(layr->up, pkt); layr 48 net/caif/caif_usb.c static int cfusbl_transmit(struct cflayer *layr, struct cfpkt *pkt) layr 54 net/caif/caif_usb.c struct cfusbl *usbl = container_of(layr, struct cfusbl, layer); layr 74 net/caif/caif_usb.c return layr->dn->transmit(layr->dn, pkt); layr 77 net/caif/caif_usb.c static void cfusbl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl, layr 80 net/caif/caif_usb.c if (layr->up && layr->up->ctrlcmd) layr 81 net/caif/caif_usb.c layr->up->ctrlcmd(layr->up, ctrl, layr->id); layr 24 net/caif/cfcnfg.c #define container_obj(layr) container_of(layr, struct cfcnfg, layer) layr 17 net/caif/cfctrl.c #define container_obj(layr) container_of(layr, struct cfctrl, serv.layer) layr 30 net/caif/cfctrl.c static int cfctrl_recv(struct cflayer *layr, struct cfpkt *pkt); layr 31 net/caif/cfctrl.c static void cfctrl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl, layr 331 net/caif/cfctrl.c int cfctrl_cancel_req(struct cflayer *layr, struct cflayer *adap_layer) layr 334 net/caif/cfctrl.c struct cfctrl *ctrl = container_obj(layr); layr 551 net/caif/cfctrl.c static void cfctrl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl, layr 554 net/caif/cfctrl.c struct cfctrl *this = container_obj(layr); layr 15 net/caif/cfdbgl.c #define container_obj(layr) ((struct cfsrvl *) layr) layr 17 net/caif/cfdbgl.c static int cfdbgl_receive(struct cflayer *layr, struct cfpkt *pkt); layr 18 net/caif/cfdbgl.c static int cfdbgl_transmit(struct cflayer *layr, struct cfpkt *pkt); layr 33 net/caif/cfdbgl.c static int cfdbgl_receive(struct cflayer *layr, struct cfpkt *pkt) layr 35 net/caif/cfdbgl.c return layr->up->receive(layr->up, pkt); layr 38 net/caif/cfdbgl.c static int cfdbgl_transmit(struct cflayer *layr, struct cfpkt *pkt) layr 40 net/caif/cfdbgl.c struct cfsrvl *service = container_obj(layr); layr 54 net/caif/cfdbgl.c return layr->dn->transmit(layr->dn, pkt); layr 17 net/caif/cfdgml.c #define container_obj(layr) ((struct cfsrvl *) layr) layr 24 net/caif/cfdgml.c static int cfdgml_receive(struct cflayer *layr, struct cfpkt *pkt); layr 25 net/caif/cfdgml.c static int cfdgml_transmit(struct cflayer *layr, struct cfpkt *pkt); layr 40 net/caif/cfdgml.c static int cfdgml_receive(struct cflayer *layr, struct cfpkt *pkt) layr 45 net/caif/cfdgml.c caif_assert(layr->up != NULL); layr 46 net/caif/cfdgml.c caif_assert(layr->receive != NULL); layr 47 net/caif/cfdgml.c caif_assert(layr->ctrlcmd != NULL); layr 61 net/caif/cfdgml.c ret = layr->up->receive(layr->up, pkt); layr 67 net/caif/cfdgml.c layr->ctrlcmd(layr, CAIF_CTRLCMD_FLOW_OFF_IND, 0); layr 71 net/caif/cfdgml.c layr->ctrlcmd(layr, CAIF_CTRLCMD_FLOW_ON_IND, 0); layr 81 net/caif/cfdgml.c static int cfdgml_transmit(struct cflayer *layr, struct cfpkt *pkt) layr 86 net/caif/cfdgml.c struct cfsrvl *service = container_obj(layr); layr 112 net/caif/cfdgml.c return layr->dn->transmit(layr->dn, pkt); layr 20 net/caif/cffrml.c #define container_obj(layr) container_of(layr, struct cffrml, layer) layr 28 net/caif/cffrml.c static int cffrml_receive(struct cflayer *layr, struct cfpkt *pkt); layr 29 net/caif/cffrml.c static int cffrml_transmit(struct cflayer *layr, struct cfpkt *pkt); layr 30 net/caif/cffrml.c static void cffrml_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl, layr 82 net/caif/cffrml.c static int cffrml_receive(struct cflayer *layr, struct cfpkt *pkt) layr 89 net/caif/cffrml.c this = container_obj(layr); layr 128 net/caif/cffrml.c if (layr->up == NULL) { layr 134 net/caif/cffrml.c return layr->up->receive(layr->up, pkt); layr 137 net/caif/cffrml.c static int cffrml_transmit(struct cflayer *layr, struct cfpkt *pkt) layr 143 net/caif/cffrml.c struct cffrml *this = container_obj(layr); layr 161 net/caif/cffrml.c if (layr->dn == NULL) { layr 166 net/caif/cffrml.c return layr->dn->transmit(layr->dn, pkt); layr 169 net/caif/cffrml.c static void cffrml_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl, layr 172 net/caif/cffrml.c if (layr->up && layr->up->ctrlcmd) layr 173 net/caif/cffrml.c layr->up->ctrlcmd(layr->up, ctrl, layr->id); layr 176 net/caif/cffrml.c void cffrml_put(struct cflayer *layr) layr 178 net/caif/cffrml.c struct cffrml *this = container_obj(layr); layr 179 net/caif/cffrml.c if (layr != NULL && this->pcpu_refcnt != NULL) layr 183 net/caif/cffrml.c void cffrml_hold(struct cflayer *layr) layr 185 net/caif/cffrml.c struct cffrml *this = container_obj(layr); layr 186 net/caif/cffrml.c if (layr != NULL && this->pcpu_refcnt != NULL) layr 190 net/caif/cffrml.c int cffrml_refcnt_read(struct cflayer *layr) layr 193 net/caif/cffrml.c struct cffrml *this = container_obj(layr); layr 18 net/caif/cfmuxl.c #define container_obj(layr) container_of(layr, struct cfmuxl, layer) layr 42 net/caif/cfmuxl.c static int cfmuxl_receive(struct cflayer *layr, struct cfpkt *pkt); layr 43 net/caif/cfmuxl.c static int cfmuxl_transmit(struct cflayer *layr, struct cfpkt *pkt); layr 44 net/caif/cfmuxl.c static void cfmuxl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl, layr 65 net/caif/cfmuxl.c int cfmuxl_set_dnlayer(struct cflayer *layr, struct cflayer *dn, u8 phyid) layr 67 net/caif/cfmuxl.c struct cfmuxl *muxl = (struct cfmuxl *) layr; layr 86 net/caif/cfmuxl.c int cfmuxl_set_uplayer(struct cflayer *layr, struct cflayer *up, u8 linkid) layr 88 net/caif/cfmuxl.c struct cfmuxl *muxl = container_obj(layr); layr 104 net/caif/cfmuxl.c struct cflayer *cfmuxl_remove_dnlayer(struct cflayer *layr, u8 phyid) layr 106 net/caif/cfmuxl.c struct cfmuxl *muxl = container_obj(layr); layr 151 net/caif/cfmuxl.c struct cflayer *cfmuxl_remove_uplayer(struct cflayer *layr, u8 id) layr 154 net/caif/cfmuxl.c struct cfmuxl *muxl = container_obj(layr); layr 174 net/caif/cfmuxl.c static int cfmuxl_receive(struct cflayer *layr, struct cfpkt *pkt) layr 177 net/caif/cfmuxl.c struct cfmuxl *muxl = container_obj(layr); layr 211 net/caif/cfmuxl.c static int cfmuxl_transmit(struct cflayer *layr, struct cfpkt *pkt) layr 213 net/caif/cfmuxl.c struct cfmuxl *muxl = container_obj(layr); layr 246 net/caif/cfmuxl.c static void cfmuxl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl, layr 249 net/caif/cfmuxl.c struct cfmuxl *muxl = container_obj(layr); layr 260 net/caif/cfmuxl.c cfmuxl_remove_uplayer(layr, layer->id); layr 17 net/caif/cfrfml.c #define container_obj(layr) container_of(layr, struct cfrfml, serv.layer) layr 21 net/caif/cfrfml.c static int cfrfml_receive(struct cflayer *layr, struct cfpkt *pkt); layr 22 net/caif/cfrfml.c static int cfrfml_transmit(struct cflayer *layr, struct cfpkt *pkt); layr 97 net/caif/cfrfml.c static int cfrfml_receive(struct cflayer *layr, struct cfpkt *pkt) layr 106 net/caif/cfrfml.c caif_assert(layr->up != NULL); layr 107 net/caif/cfrfml.c caif_assert(layr->receive != NULL); layr 108 net/caif/cfrfml.c rfml = container_obj(layr); layr 183 net/caif/cfrfml.c layr->up->ctrlcmd(layr->up, CAIF_CTRLCMD_REMOTE_SHUTDOWN_IND, layr 213 net/caif/cfrfml.c static int cfrfml_transmit(struct cflayer *layr, struct cfpkt *pkt) layr 220 net/caif/cfrfml.c struct cfrfml *rfml = container_obj(layr); layr 222 net/caif/cfrfml.c caif_assert(layr->dn != NULL); layr 223 net/caif/cfrfml.c caif_assert(layr->dn->transmit != NULL); layr 288 net/caif/cfrfml.c layr->up->ctrlcmd(layr->up, CAIF_CTRLCMD_REMOTE_SHUTDOWN_IND, layr 16 net/caif/cfserl.c #define container_obj(layr) ((struct cfserl *) layr) layr 29 net/caif/cfserl.c static int cfserl_receive(struct cflayer *layr, struct cfpkt *pkt); layr 30 net/caif/cfserl.c static int cfserl_transmit(struct cflayer *layr, struct cfpkt *pkt); layr 31 net/caif/cfserl.c static void cfserl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl, layr 51 net/caif/cfserl.c struct cfserl *layr = container_obj(l); layr 62 net/caif/cfserl.c spin_lock(&layr->sync); layr 64 net/caif/cfserl.c if (layr->incomplete_frm != NULL) { layr 65 net/caif/cfserl.c layr->incomplete_frm = layr 66 net/caif/cfserl.c cfpkt_append(layr->incomplete_frm, newpkt, expectlen); layr 67 net/caif/cfserl.c pkt = layr->incomplete_frm; layr 69 net/caif/cfserl.c spin_unlock(&layr->sync); layr 75 net/caif/cfserl.c layr->incomplete_frm = NULL; layr 79 net/caif/cfserl.c if (layr->usestx) { layr 88 net/caif/cfserl.c layr->incomplete_frm = NULL; layr 89 net/caif/cfserl.c spin_unlock(&layr->sync); layr 104 net/caif/cfserl.c if (layr->usestx) layr 106 net/caif/cfserl.c layr->incomplete_frm = pkt; layr 107 net/caif/cfserl.c spin_unlock(&layr->sync); layr 122 net/caif/cfserl.c if (!layr->usestx) { layr 125 net/caif/cfserl.c layr->incomplete_frm = NULL; layr 127 net/caif/cfserl.c spin_unlock(&layr->sync); layr 135 net/caif/cfserl.c if (layr->usestx) layr 137 net/caif/cfserl.c layr->incomplete_frm = pkt; layr 138 net/caif/cfserl.c spin_unlock(&layr->sync); layr 152 net/caif/cfserl.c spin_unlock(&layr->sync); layr 153 net/caif/cfserl.c ret = layr->layer.up->receive(layr->layer.up, pkt); layr 154 net/caif/cfserl.c spin_lock(&layr->sync); layr 156 net/caif/cfserl.c if (layr->usestx) { layr 171 net/caif/cfserl.c spin_unlock(&layr->sync); layr 177 net/caif/cfserl.c struct cfserl *layr = container_obj(layer); layr 179 net/caif/cfserl.c if (layr->usestx) layr 184 net/caif/cfserl.c static void cfserl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl, layr 187 net/caif/cfserl.c layr->up->ctrlcmd(layr->up, ctrl, phyid); layr 26 net/caif/cfsrvl.c #define container_obj(layr) container_of(layr, struct cfsrvl, layer) layr 28 net/caif/cfsrvl.c static void cfservl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl, layr 31 net/caif/cfsrvl.c struct cfsrvl *service = container_obj(layr); layr 33 net/caif/cfsrvl.c if (layr->up == NULL || layr->up->ctrlcmd == NULL) layr 39 net/caif/cfsrvl.c layr->up->ctrlcmd(layr->up, ctrl, phyid); layr 44 net/caif/cfsrvl.c layr->up->ctrlcmd(layr->up, ctrl, phyid); layr 50 net/caif/cfsrvl.c layr->up->ctrlcmd(layr->up, layr 58 net/caif/cfsrvl.c layr->up->ctrlcmd(layr->up, layr 66 net/caif/cfsrvl.c layr->up->ctrlcmd(layr->up, layr 73 net/caif/cfsrvl.c layr->up->ctrlcmd(layr->up, layr 80 net/caif/cfsrvl.c layr->up->ctrlcmd(layr->up, layr 84 net/caif/cfsrvl.c layr->up->ctrlcmd(layr->up, ctrl, phyid); layr 89 net/caif/cfsrvl.c layr->up->ctrlcmd(layr->up, ctrl, phyid); layr 95 net/caif/cfsrvl.c static int cfservl_modemcmd(struct cflayer *layr, enum caif_modemcmd ctrl) layr 97 net/caif/cfsrvl.c struct cfsrvl *service = container_obj(layr); layr 99 net/caif/cfsrvl.c caif_assert(layr != NULL); layr 100 net/caif/cfsrvl.c caif_assert(layr->dn != NULL); layr 101 net/caif/cfsrvl.c caif_assert(layr->dn->transmit != NULL); layr 126 net/caif/cfsrvl.c return layr->dn->transmit(layr->dn, pkt); layr 147 net/caif/cfsrvl.c return layr->dn->transmit(layr->dn, pkt); layr 17 net/caif/cfutill.c #define container_obj(layr) ((struct cfsrvl *) layr) layr 24 net/caif/cfutill.c static int cfutill_receive(struct cflayer *layr, struct cfpkt *pkt); layr 25 net/caif/cfutill.c static int cfutill_transmit(struct cflayer *layr, struct cfpkt *pkt); layr 40 net/caif/cfutill.c static int cfutill_receive(struct cflayer *layr, struct cfpkt *pkt) layr 43 net/caif/cfutill.c struct cfsrvl *service = container_obj(layr); layr 44 net/caif/cfutill.c caif_assert(layr != NULL); layr 45 net/caif/cfutill.c caif_assert(layr->up != NULL); layr 46 net/caif/cfutill.c caif_assert(layr->up->receive != NULL); layr 47 net/caif/cfutill.c caif_assert(layr->up->ctrlcmd != NULL); layr 56 net/caif/cfutill.c return layr->up->receive(layr->up, pkt); layr 58 net/caif/cfutill.c layr->ctrlcmd(layr, CAIF_CTRLCMD_FLOW_OFF_IND, 0); layr 62 net/caif/cfutill.c layr->ctrlcmd(layr, CAIF_CTRLCMD_FLOW_ON_IND, 0); layr 67 net/caif/cfutill.c layr->ctrlcmd(layr, CAIF_CTRLCMD_REMOTE_SHUTDOWN_IND, 0); layr 78 net/caif/cfutill.c static int cfutill_transmit(struct cflayer *layr, struct cfpkt *pkt) layr 83 net/caif/cfutill.c struct cfsrvl *service = container_obj(layr); layr 84 net/caif/cfutill.c caif_assert(layr != NULL); layr 85 net/caif/cfutill.c caif_assert(layr->dn != NULL); layr 86 net/caif/cfutill.c caif_assert(layr->dn->transmit != NULL); layr 103 net/caif/cfutill.c return layr->dn->transmit(layr->dn, pkt); layr 21 net/caif/cfveil.c #define container_obj(layr) container_of(layr, struct cfsrvl, layer) layr 23 net/caif/cfveil.c static int cfvei_receive(struct cflayer *layr, struct cfpkt *pkt); layr 24 net/caif/cfveil.c static int cfvei_transmit(struct cflayer *layr, struct cfpkt *pkt); layr 39 net/caif/cfveil.c static int cfvei_receive(struct cflayer *layr, struct cfpkt *pkt) layr 43 net/caif/cfveil.c caif_assert(layr->up != NULL); layr 44 net/caif/cfveil.c caif_assert(layr->receive != NULL); layr 45 net/caif/cfveil.c caif_assert(layr->ctrlcmd != NULL); layr 55 net/caif/cfveil.c ret = layr->up->receive(layr->up, pkt); layr 58 net/caif/cfveil.c layr->ctrlcmd(layr, CAIF_CTRLCMD_FLOW_OFF_IND, 0); layr 62 net/caif/cfveil.c layr->ctrlcmd(layr, CAIF_CTRLCMD_FLOW_ON_IND, 0); layr 75 net/caif/cfveil.c static int cfvei_transmit(struct cflayer *layr, struct cfpkt *pkt) layr 80 net/caif/cfveil.c struct cfsrvl *service = container_obj(layr); layr 83 net/caif/cfveil.c caif_assert(layr->dn != NULL); layr 84 net/caif/cfveil.c caif_assert(layr->dn->transmit != NULL); layr 97 net/caif/cfveil.c return layr->dn->transmit(layr->dn, pkt); layr 17 net/caif/cfvidl.c #define container_obj(layr) ((struct cfsrvl *) layr) layr 19 net/caif/cfvidl.c static int cfvidl_receive(struct cflayer *layr, struct cfpkt *pkt); layr 20 net/caif/cfvidl.c static int cfvidl_transmit(struct cflayer *layr, struct cfpkt *pkt); layr 36 net/caif/cfvidl.c static int cfvidl_receive(struct cflayer *layr, struct cfpkt *pkt) layr 44 net/caif/cfvidl.c return layr->up->receive(layr->up, pkt); layr 47 net/caif/cfvidl.c static int cfvidl_transmit(struct cflayer *layr, struct cfpkt *pkt) layr 49 net/caif/cfvidl.c struct cfsrvl *service = container_obj(layr); layr 64 net/caif/cfvidl.c return layr->dn->transmit(layr->dn, pkt); layr 70 net/caif/chnl_net.c static int chnl_recv_cb(struct cflayer *layr, struct cfpkt *pkt) layr 78 net/caif/chnl_net.c priv = container_of(layr, struct chnl_net, chnl); layr 166 net/caif/chnl_net.c static void chnl_flowctrl_cb(struct cflayer *layr, enum caif_ctrlcmd flow, layr 169 net/caif/chnl_net.c struct chnl_net *priv = container_of(layr, struct chnl_net, chnl);