Lines Matching refs:sockets
52 struct sal_socket **sockets; member
146 socket_table.sockets = rt_calloc(1, cn * sizeof(struct sal_socket *)); in sal_init()
147 if (socket_table.sockets == RT_NULL) in sal_init()
361 RT_ASSERT(st->sockets[socket]->magic == SAL_SOCKET_MAGIC); in sal_get_socket()
363 return st->sockets[socket]; in sal_get_socket()
408 if (socket_table.sockets[idx] && socket_table.sockets[idx]->netdev == netdev) in sal_netdev_cleanup()
496 if (st->sockets[idx] == RT_NULL) in socket_alloc()
506 struct sal_socket **sockets; in socket_alloc() local
512 sockets = rt_realloc(st->sockets, cnt * sizeof(struct sal_socket *)); in socket_alloc()
513 if (sockets == RT_NULL) in socket_alloc()
519 sockets[index] = RT_NULL; in socket_alloc()
522 st->sockets = sockets; in socket_alloc()
527 if (idx < (int) st->max_socket && st->sockets[idx] == RT_NULL) in socket_alloc()
529 st->sockets[idx] = rt_calloc(1, sizeof(struct sal_socket)); in socket_alloc()
530 if (st->sockets[idx] == RT_NULL) in socket_alloc()
544 sock = st->sockets[idx]; in socket_free()
545 st->sockets[idx] = RT_NULL; in socket_free()
567 sock = st->sockets[idx]; in socket_new()