static void
ble_hci_sched_entry_free(struct ble_hci_sched_entry *entry)
{
    int rc;

    rc = os_memblock_put(&ble_hci_sched_entry_pool, entry);
    assert(rc == 0);
}
Example #2
0
int
host_hci_os_event_proc(struct os_event *ev)
{
    os_error_t err;
    int rc;

    rc = host_hci_event_rx(ev->ev_arg);

    /* Free the command buffer */
    err = os_memblock_put(&g_hci_cmd_pool, ev->ev_arg);
    assert(err == OS_OK);

    /* Free the event */
    err = os_memblock_put(&g_hci_os_event_pool, ev);
    assert(err == OS_OK);

    return rc;
}
Example #3
0
static int
nffs_file_free(struct nffs_file *file)
{
    int rc;

    if (file != NULL) {
        rc = os_memblock_put(&nffs_file_pool, file);
        if (rc != 0) {
            return FS_EOS;
        }
    }

    return 0;
}
Example #4
0
static int
nffs_dir_free(struct nffs_dir *dir)
{
    int rc;

    if (dir != NULL) {
        rc = os_memblock_put(&nffs_dir_pool, dir);
        if (rc != 0) {
            return FS_EOS;
        }
    }

    return 0;
}
Example #5
0
/* XXX: For now, put this here */
int
ble_hci_transport_ctlr_event_send(uint8_t *hci_ev)
{
    os_error_t err;
    struct os_event *ev;

    assert(hci_ev != NULL);

    /* Get an event structure off the queue */
    ev = (struct os_event *)os_memblock_get(&g_hci_os_event_pool);
    if (!ev) {
        err = os_memblock_put(&g_hci_cmd_pool, hci_ev);
        assert(err == OS_OK);
        return -1;
    }

    /* Fill out the event and post to Link Layer */
    ev->ev_queued = 0;
    ev->ev_type = BLE_HOST_HCI_EVENT_CTLR_EVENT;
    ev->ev_arg = hci_ev;
    os_eventq_put(&ble_hs_evq, ev);

    return 0;
}
void
nffs_block_entry_free(struct nffs_hash_entry *entry)
{
    assert(nffs_hash_id_is_block(entry->nhe_id));
    os_memblock_put(&nffs_block_entry_pool, entry);
}
Example #7
0
static void
_free_rep(oc_rep_t *rep_value)
{
    os_memblock_put(&oc_rep_objects, rep_value);
}