Lines Matching refs:urc_table
619 int at_obj_set_urc_table(at_client_t client, const struct at_urc *urc_table, rt_size_t table_sz) in at_obj_set_urc_table() argument
631 RT_ASSERT(urc_table[idx].cmd_prefix); in at_obj_set_urc_table()
632 RT_ASSERT(urc_table[idx].cmd_suffix); in at_obj_set_urc_table()
637 client->urc_table = (struct at_urc_table *)rt_calloc(1, sizeof(struct at_urc_table)); in at_obj_set_urc_table()
638 if (client->urc_table == RT_NULL) in at_obj_set_urc_table()
643 client->urc_table[0].urc = urc_table; in at_obj_set_urc_table()
644 client->urc_table[0].urc_size = table_sz; in at_obj_set_urc_table()
652 …new_urc_table = (struct at_urc_table *)rt_realloc(client->urc_table, client->urc_table_size * size… in at_obj_set_urc_table()
657 client->urc_table = new_urc_table; in at_obj_set_urc_table()
658 client->urc_table[client->urc_table_size].urc = urc_table; in at_obj_set_urc_table()
659 client->urc_table[client->urc_table_size].urc_size = table_sz; in at_obj_set_urc_table()
720 struct at_urc_table *urc_table = RT_NULL; in get_urc_obj() local
722 if (client->urc_table == RT_NULL) in get_urc_obj()
732 for (j = 0; j < client->urc_table[i].urc_size; j++) in get_urc_obj()
734 urc_table = client->urc_table + i; in get_urc_obj()
735 urc = urc_table->urc + j; in get_urc_obj()