Searched refs:type_mid (Results 1 – 2 of 2) sorted by relevance
/Zephyr-latest/drivers/net/ |
D | nsos_adapt.c | 190 static int socket_type_from_nsos_mid(int type_mid, int *type) in socket_type_from_nsos_mid() argument 192 switch (type_mid) { in socket_type_from_nsos_mid() 203 nsi_print_warning("%s: socket type %d not supported\n", __func__, type_mid); in socket_type_from_nsos_mid() 210 static int socket_type_to_nsos_mid(int type, int *type_mid) in socket_type_to_nsos_mid() argument 214 *type_mid = NSOS_MID_SOCK_STREAM; in socket_type_to_nsos_mid() 217 *type_mid = NSOS_MID_SOCK_DGRAM; in socket_type_to_nsos_mid() 220 *type_mid = NSOS_MID_SOCK_RAW; in socket_type_to_nsos_mid() 250 int nsos_adapt_socket(int family_mid, int type_mid, int proto_mid) in nsos_adapt_socket() argument 262 ret = socket_type_from_nsos_mid(type_mid, &type); in nsos_adapt_socket()
|
D | nsos_sockets.c | 125 static int socket_type_to_nsos_mid(int type, int *type_mid) in socket_type_to_nsos_mid() argument 129 *type_mid = NSOS_MID_SOCK_STREAM; in socket_type_to_nsos_mid() 132 *type_mid = NSOS_MID_SOCK_DGRAM; in socket_type_to_nsos_mid() 135 *type_mid = NSOS_MID_SOCK_RAW; in socket_type_to_nsos_mid() 171 int type_mid; in nsos_socket_create() local 181 err = socket_type_to_nsos_mid(type, &type_mid); in nsos_socket_create() 208 sock->poll.mid.fd = nsos_adapt_socket(family_mid, type_mid, proto_mid); in nsos_socket_create() 942 static int socket_type_from_nsos_mid(int type_mid, int *type) in socket_type_from_nsos_mid() argument 944 switch (type_mid) { in socket_type_from_nsos_mid()
|