Home
last modified time | relevance | path

Searched refs:first_free (Results 1 – 18 of 18) sorted by relevance

/Linux-v4.19/arch/sparc/lib/
Dbitext.c55 offset = t->first_free; in bit_map_string_get()
85 if (offset == t->first_free) in bit_map_string_get()
86 t->first_free = find_next_zero_bit in bit_map_string_get()
88 t->first_free + len); in bit_map_string_get()
115 if (offset < t->first_free) in bit_map_clear()
116 t->first_free = offset; in bit_map_clear()
/Linux-v4.19/fs/hpfs/
Ddnode.c159 le32_add_cpu(&d->first_free, 4); in set_last_pointer()
160 if (le32_to_cpu(d->first_free) > 2048) { in set_last_pointer()
162 le32_add_cpu(&d->first_free, -4); in set_last_pointer()
198 le32_add_cpu(&d->first_free, d_size); in hpfs_add_de()
211 d->first_free = cpu_to_le32(le32_to_cpu(d->first_free) - le16_to_cpu(de->length)); in hpfs_delete_de()
212 memmove(de, de_next_de(de), le32_to_cpu(d->first_free) + (char *)d - (char *)de); in hpfs_delete_de()
276 if (le32_to_cpu(d->first_free) + de_size(namelen, down_ptr) <= 2048) { in hpfs_add_to_dnode()
300 memcpy(nd, d, le32_to_cpu(d->first_free)); in hpfs_add_to_dnode()
327 memmove((char *)nd + 20, de, le32_to_cpu(nd->first_free) + (char *)nd - (char *)de); in hpfs_add_to_dnode()
328 le32_add_cpu(&nd->first_free, -((char *)de - (char *)nd - 20)); in hpfs_add_to_dnode()
[all …]
Dmap.c187 if (le16_to_cpu(fnode->btree.first_free) != in hpfs_map_fnode()
240 if (le16_to_cpu(anode->btree.first_free) != in hpfs_map_anode()
280 if (le32_to_cpu(dnode->first_free) > 2048) { in hpfs_map_dnode()
281 hpfs_error(s, "dnode %08x has first_free == %08x", secno, le32_to_cpu(dnode->first_free)); in hpfs_map_dnode()
284 for (p = 20; p < le32_to_cpu(dnode->first_free); p += d[p] + (d[p+1] << 8)) { in hpfs_map_dnode()
304 if (p != le32_to_cpu(dnode->first_free)) { in hpfs_map_dnode()
Danode.c135 anode->btree.first_free = btree->first_free; in hpfs_add_sector_to_btree()
141 btree->first_free = cpu_to_le16((char *)&(btree->u.internal[1]) - (char *)btree); in hpfs_add_sector_to_btree()
157 le16_add_cpu(&btree->first_free, 12); in hpfs_add_sector_to_btree()
178 le16_add_cpu(&btree->first_free, 8); in hpfs_add_sector_to_btree()
208 anode->btree.first_free = cpu_to_le16(16); in hpfs_add_sector_to_btree()
241 memcpy(&ranode->btree, btree, le16_to_cpu(btree->first_free)); in hpfs_add_sector_to_btree()
257 btree->first_free = cpu_to_le16((char *)&btree->u.internal[2] - (char *)btree); in hpfs_add_sector_to_btree()
420 btree->first_free = cpu_to_le16(8); in hpfs_truncate_btree()
439 btree->first_free = cpu_to_le16(8 + 8 * btree->n_used_nodes); in hpfs_truncate_btree()
473 btree->first_free = cpu_to_le16(8 + 12 * btree->n_used_nodes); in hpfs_truncate_btree()
Dhpfs_fn.h123 …e->first_free)>=0x14 && le32_to_cpu(dnode->first_free)<=0xa00,("HPFS: dnode_end_de: dnode->first_f… in dnode_end_de()
124 return (void *) dnode + le32_to_cpu(dnode->first_free); in dnode_end_de()
Dhpfs.h283 __le32 first_free; /* offset from start of dnode to member
408 __le16 first_free; /* offset from start of header to member
Dalloc.c445 d->first_free = cpu_to_le32(52); in hpfs_alloc_dnode()
467 f->btree.first_free = cpu_to_le16(8); in hpfs_alloc_fnode()
485 a->btree.first_free = cpu_to_le16(8); in hpfs_alloc_anode()
Dnamei.c88 fnode->btree.first_free = cpu_to_le16(0x14); in hpfs_mkdir()
/Linux-v4.19/drivers/net/ethernet/chelsio/cxgb4/
Dsmt.c68 struct smt_entry *first_free = NULL; in find_or_alloc_smte() local
73 if (!first_free) in find_or_alloc_smte()
74 first_free = e; in find_or_alloc_smte()
86 if (first_free) { in find_or_alloc_smte()
87 e = first_free; in find_or_alloc_smte()
Dl2t.c302 struct l2t_entry *first_free = NULL; in find_or_alloc_l2e() local
306 if (!first_free) in find_or_alloc_l2e()
307 first_free = e; in find_or_alloc_l2e()
317 if (first_free) { in find_or_alloc_l2e()
318 e = first_free; in find_or_alloc_l2e()
/Linux-v4.19/drivers/infiniband/hw/mthca/
Dmthca_srq.c286 srq->first_free = 0; in mthca_alloc_srq()
492 first_ind = srq->first_free; in mthca_tavor_post_srq_recv()
495 ind = srq->first_free; in mthca_tavor_post_srq_recv()
533 srq->first_free = next_ind; in mthca_tavor_post_srq_recv()
549 first_ind = srq->first_free; in mthca_tavor_post_srq_recv()
591 ind = srq->first_free; in mthca_arbel_post_srq_recv()
622 srq->first_free = next_ind; in mthca_arbel_post_srq_recv()
Dmthca_provider.h230 int first_free; member
/Linux-v4.19/arch/sparc/include/asm/
Dbitext.h20 int first_free; member
/Linux-v4.19/mm/
Dpercpu.c417 block->first_free; in pcpu_next_fit_region()
418 *bit_off = pcpu_block_off_to_off(i, block->first_free); in pcpu_next_fit_region()
628 block->first_free = min(block->first_free, start); in pcpu_block_update()
664 pcpu_for_each_unpop_region(alloc_map, rs, re, block->first_free, in pcpu_block_refresh_hint()
707 if (s_off == s_block->first_free) in pcpu_block_update_hint_alloc()
708 s_block->first_free = find_next_zero_bit( in pcpu_block_update_hint_alloc()
735 e_block->first_free = find_next_zero_bit( in pcpu_block_update_hint_alloc()
854 block->first_free = 0; in pcpu_block_update_hint_free()
Dpercpu-internal.h21 int first_free; /* block position of first free */ member
/Linux-v4.19/drivers/tty/vt/
Dkeyboard.c1995 char *first_free, *fj, *fnw; in vt_do_kdgkb_ioctl() local
2041 first_free = funcbufptr + (funcbufsize - funcbufleft); in vt_do_kdgkb_ioctl()
2047 fj = first_free; in vt_do_kdgkb_ioctl()
2052 memmove(fj + delta, fj, first_free - fj); in vt_do_kdgkb_ioctl()
2078 if (first_free > fj) { in vt_do_kdgkb_ioctl()
2079 memmove(fnw + (fj - funcbufptr) + delta, fj, first_free - fj); in vt_do_kdgkb_ioctl()
/Linux-v4.19/fs/btrfs/
Dscrub.c155 int first_free; member
605 sctx->first_free = 0; in scrub_setup_ctx()
2023 sctx->curr = sctx->first_free; in scrub_add_page_to_rd_bio()
2025 sctx->first_free = sctx->bios[sctx->curr]->next_free; in scrub_add_page_to_rd_bio()
2031 wait_event(sctx->list_wait, sctx->first_free != -1); in scrub_add_page_to_rd_bio()
2330 sbio->next_free = sctx->first_free; in scrub_bio_end_io_worker()
2331 sctx->first_free = sbio->index; in scrub_bio_end_io_worker()
/Linux-v4.19/drivers/net/ethernet/qlogic/qed/
Dqed_cxt.c238 u64 first_free; member
956 p_mngr->first_free = (u64) p_mngr->t2[0].p_phys; in qed_cxt_src_t2_alloc()
1740 p_hwfn->p_cxt_mngr->first_free); in qed_src_init_pf()