Lines Matching refs:sockets_len
156 for (i = 0; i < cfg->sockets_len; i++) { in modem_socket_get()
162 if (i >= cfg->sockets_len) { in modem_socket_get()
177 (cfg->base_socket_id + cfg->sockets_len); in modem_socket_get()
191 for (i = 0; i < cfg->sockets_len; i++) { in modem_socket_from_fd()
213 for (i = 0; i < cfg->sockets_len; i++) { in modem_socket_from_id()
227 return modem_socket_from_id(cfg, cfg->base_socket_id + cfg->sockets_len); in modem_socket_from_newid()
415 size_t sockets_len, int base_socket_id, bool assign_id, in modem_socket_init() argument
419 if (cfg == NULL || sockets == NULL || sockets_len < 1 || vtable == NULL) { in modem_socket_init()
425 cfg->sockets_len = sockets_len; in modem_socket_init()
432 for (int i = 0; i < cfg->sockets_len; i++) { in modem_socket_init()
448 if (cfg->assign_id == false && sock->id == (cfg->base_socket_id + cfg->sockets_len)) { in modem_socket_is_allocated()
461 (sock->id < (cfg->base_socket_id + cfg->sockets_len))) { in modem_socket_id_is_assigned()
481 if (id < cfg->base_socket_id || (cfg->base_socket_id + cfg->sockets_len) <= id) { in modem_socket_id_assign()