Lines Matching refs:base_socket_id
157 if (cfg->sockets[i].id < cfg->base_socket_id) { in modem_socket_get()
176 cfg->sockets[i].id = (cfg->assign_id) ? (i + cfg->base_socket_id) : in modem_socket_get()
177 (cfg->base_socket_id + cfg->sockets_len); in modem_socket_get()
207 if (id < cfg->base_socket_id) { in modem_socket_from_id()
227 return modem_socket_from_id(cfg, cfg->base_socket_id + cfg->sockets_len); in modem_socket_from_newid()
240 sock->id = cfg->base_socket_id - 1; in modem_socket_put()
415 size_t sockets_len, int base_socket_id, bool assign_id, in modem_socket_init() argument
426 cfg->base_socket_id = base_socket_id; in modem_socket_init()
448 if (cfg->assign_id == false && sock->id == (cfg->base_socket_id + cfg->sockets_len)) { in modem_socket_is_allocated()
460 if ((cfg->base_socket_id <= sock->id) && in modem_socket_id_is_assigned()
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()