Home
last modified time | relevance | path

Searched refs:next_free (Results 1 – 9 of 9) sorted by relevance

/linux/drivers/md/
H A Ddm-snap-transient.c26 sector_t next_free; member
48 if (size < (tc->next_free + store->chunk_size)) in transient_prepare_exception()
51 e->new_chunk = sector_to_chunk(store, tc->next_free); in transient_prepare_exception()
52 tc->next_free += store->chunk_size; in transient_prepare_exception()
71 *sectors_allocated = ((struct transient_c *) store->context)->next_free; in transient_usage()
84 tc->next_free = 0; in transient_ctr()
H A Ddm-snap-persistent.c154 chunk_t next_free; member
278 chunk_t next_free = ps->next_free; in skip_metadata() local
280 if (sector_div(next_free, stride) == NUM_SNAPSHOT_HDR_CHUNKS) in skip_metadata()
281 ps->next_free++; in skip_metadata()
474 if (ps->next_free <= e.new_chunk) in insert_exceptions()
475 ps->next_free = e.new_chunk + 1; in insert_exceptions()
580 *sectors_allocated = ps->next_free * store->chunk_size; in persistent_usage()
681 if (size < ((ps->next_free + 1) * store->chunk_size)) in persistent_prepare_exception()
684 e->new_chunk = ps->next_free; in persistent_prepare_exception()
690 ps->next_free++; in persistent_prepare_exception()
[all …]
/linux/arch/powerpc/kernel/
H A Drtas_flash.c315 int next_free; in rtas_flash_write() local
336 next_free = fl->num_blocks; in rtas_flash_write()
337 if (next_free == FLASH_BLOCKS_PER_NODE) { in rtas_flash_write()
343 next_free = 0; in rtas_flash_write()
356 fl->blocks[next_free].data = p; in rtas_flash_write()
357 fl->blocks[next_free].length = count; in rtas_flash_write()
/linux/fs/ocfs2/
H A Dalloc.c1603 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_shift_records_right() local
1607 BUG_ON(!next_free); in ocfs2_shift_records_right()
1609 BUG_ON(next_free >= count); in ocfs2_shift_records_right()
1611 num_bytes = sizeof(struct ocfs2_extent_rec) * next_free; in ocfs2_shift_records_right()
1619 int i, insert_index, next_free, has_empty, num_bytes; in ocfs2_rotate_leaf() local
1623 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_rotate_leaf()
1626 BUG_ON(!next_free); in ocfs2_rotate_leaf()
1641 for(i = 0; i < (next_free - 1); i++) in ocfs2_rotate_leaf()
1644 next_free--; in ocfs2_rotate_leaf()
1650 for(i = 0; i < next_free; i++) { in ocfs2_rotate_leaf()
[all …]
H A Dresize.c422 u16 next_free = le16_to_cpu(di->id2.i_chain.cl_next_free_rec); in ocfs2_verify_group_and_input() local
431 else if (next_free != cl_count && next_free != input->chain) in ocfs2_verify_group_and_input()
433 "the add group should be in chain %u\n", next_free); in ocfs2_verify_group_and_input()
H A Dextent_map.c277 int ret, next_free; in ocfs2_last_eb_is_empty() local
301 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_last_eb_is_empty()
303 if (next_free == 0 || in ocfs2_last_eb_is_empty()
304 (next_free == 1 && ocfs2_is_empty_extent(&el->l_recs[0]))) in ocfs2_last_eb_is_empty()
H A Docfs2_trace.h563 int has_empty, int next_free,
566 next_free, l_count),
571 __field(int, next_free)
578 __entry->next_free = next_free;
583 __entry->next_free, __entry->l_count)
/linux/drivers/net/ethernet/mediatek/
H A Dmtk_eth_soc.c1585 itxd = ring->next_free; in mtk_tx_map()
1673 ring->next_free = mtk_qdma_phys_to_virt(ring, txd->txd2); in mtk_tx_map()
1997 txd = ring->next_free; in mtk_xdp_submit_frame()
2048 ring->next_free = mtk_qdma_phys_to_virt(ring, txd->txd2); in mtk_xdp_submit_frame()
2693 ring->next_free = ring->dma; in mtk_tx_alloc()
H A Dmtk_eth_soc.h936 struct mtk_tx_dma *next_free; member