Lines Matching +full:- +full:eproto
1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) ST-Ericsson AB 2010
34 dgm->layer.receive = cfdgml_receive; in cfdgml_create()
35 dgm->layer.transmit = cfdgml_transmit; in cfdgml_create()
36 snprintf(dgm->layer.name, CAIF_LAYER_NAME_SZ, "dgm%d", channel_id); in cfdgml_create()
37 return &dgm->layer; in cfdgml_create()
42 u8 cmd = -1; in cfdgml_receive()
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()
52 return -EPROTO; in cfdgml_receive()
59 return -EPROTO; in cfdgml_receive()
61 ret = layr->up->receive(layr->up, pkt); in cfdgml_receive()
67 layr->ctrlcmd(layr, CAIF_CTRLCMD_FLOW_OFF_IND, 0); in cfdgml_receive()
71 layr->ctrlcmd(layr, CAIF_CTRLCMD_FLOW_ON_IND, 0); in cfdgml_receive()
77 return -EPROTO; in cfdgml_receive()
97 return -EMSGSIZE; in cfdgml_transmit()
101 packet_type = 0x08; /* B9 set - UNCLASSIFIED */ in cfdgml_transmit()
104 /* Add info for MUX-layer to route the packet out. */ in cfdgml_transmit()
106 info->channel_id = service->layer.id; in cfdgml_transmit()
110 info->hdr_len = 4; in cfdgml_transmit()
111 info->dev_info = &service->dev_info; in cfdgml_transmit()
112 return layr->dn->transmit(layr->dn, pkt); in cfdgml_transmit()