Lines Matching +full:- +full:eproto
1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) ST-Ericsson AB 2010
33 vei->layer.receive = cfvei_receive; in cfvei_create()
34 vei->layer.transmit = cfvei_transmit; in cfvei_create()
35 snprintf(vei->layer.name, CAIF_LAYER_NAME_SZ, "vei%d", channel_id); in cfvei_create()
36 return &vei->layer; in cfvei_create()
43 caif_assert(layr->up != NULL); in cfvei_receive()
44 caif_assert(layr->receive != NULL); in cfvei_receive()
45 caif_assert(layr->ctrlcmd != NULL); in cfvei_receive()
51 return -EPROTO; in cfvei_receive()
55 ret = layr->up->receive(layr->up, pkt); in cfvei_receive()
58 layr->ctrlcmd(layr, CAIF_CTRLCMD_FLOW_OFF_IND, 0); in cfvei_receive()
62 layr->ctrlcmd(layr, CAIF_CTRLCMD_FLOW_ON_IND, 0); in cfvei_receive()
71 return -EPROTO; in cfvei_receive()
83 caif_assert(layr->dn != NULL); in cfvei_transmit()
84 caif_assert(layr->dn->transmit != NULL); in cfvei_transmit()
88 ret = -EPROTO; in cfvei_transmit()
92 /* Add info-> for MUX-layer to route the packet out. */ in cfvei_transmit()
94 info->channel_id = service->layer.id; in cfvei_transmit()
95 info->hdr_len = 1; in cfvei_transmit()
96 info->dev_info = &service->dev_info; in cfvei_transmit()
97 return layr->dn->transmit(layr->dn, pkt); in cfvei_transmit()