Home
last modified time | relevance | path

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

/linux-2.4.37.9/arch/ppc64/lib/
Ddec_and_lock.c34 int newcount; in atomic_dec_and_lock() local
38 newcount = counter - 1; in atomic_dec_and_lock()
39 if (!newcount) in atomic_dec_and_lock()
42 newcount = cmpxchg(&atomic->counter, counter, newcount); in atomic_dec_and_lock()
43 if (newcount == counter) in atomic_dec_and_lock()
/linux-2.4.37.9/arch/ppc/lib/
Ddec_and_lock.c25 int newcount; in atomic_dec_and_lock() local
29 newcount = counter - 1; in atomic_dec_and_lock()
30 if (!newcount) in atomic_dec_and_lock()
33 newcount = cmpxchg(&atomic->counter, counter, newcount); in atomic_dec_and_lock()
34 if (newcount == counter) in atomic_dec_and_lock()
/linux-2.4.37.9/arch/x86_64/lib/
Ddec_and_lock.c16 int newcount; in atomic_dec_and_lock() local
20 newcount = counter-1; in atomic_dec_and_lock()
22 if (!newcount) in atomic_dec_and_lock()
26 :"=a" (newcount) in atomic_dec_and_lock()
27 :"r" (newcount), "m" (atomic->counter), "0" (counter)); in atomic_dec_and_lock()
30 if (newcount != counter) in atomic_dec_and_lock()
/linux-2.4.37.9/arch/i386/lib/
Ddec_and_lock.c16 int newcount; in atomic_dec_and_lock() local
20 newcount = counter-1; in atomic_dec_and_lock()
22 if (!newcount) in atomic_dec_and_lock()
26 :"=a" (newcount) in atomic_dec_and_lock()
27 :"r" (newcount), "m" (atomic->counter), "0" (counter)); in atomic_dec_and_lock()
30 if (newcount != counter) in atomic_dec_and_lock()
/linux-2.4.37.9/fs/ufs/
Dballoc.c225 for (i = oldcount; i < newcount; i++) { \
244 unsigned cgno, oldcount, newcount, tmp, request, i, result; in ufs_new_fragments() local
262 newcount = oldcount + count; in ufs_new_fragments()
324 result = ufs_add_fragments (inode, tmp, oldcount, newcount, err); in ufs_new_fragments()
340 request = newcount; in ufs_new_fragments()
384 if (newcount < request) in ufs_new_fragments()
385 ufs_free_fragments (inode, result + newcount, request - newcount); in ufs_new_fragments()
397 unsigned oldcount, unsigned newcount, int * err) in ufs_add_fragments() argument
406 UFSD(("ENTER, fragment %u, oldcount %u, newcount %u\n", fragment, oldcount, newcount)) in ufs_add_fragments()
411 count = newcount - oldcount; in ufs_add_fragments()
[all …]
/linux-2.4.37.9/fs/ntfs/
Dattr.c376 int i, count, newcount; in ntfs_resize_attr() local
429 newcount = count; in ntfs_resize_attr()
442 newcount = count + rounded; in ntfs_resize_attr()
472 newcount = (newsize + ino->vol->cluster_size - 1) >> in ntfs_resize_attr()
476 attr->allocated = (__s64)newcount << clustersizebits; in ntfs_resize_attr()
/linux-2.4.37.9/drivers/scsi/aic7xxx/
Daic79xx_core.c5597 int newcount; in ahd_alloc_scbs() local
5711 newcount = MIN(scb_data->sense_left, scb_data->scbs_left); in ahd_alloc_scbs()
5712 newcount = MIN(newcount, scb_data->sgs_left); in ahd_alloc_scbs()
5713 newcount = MIN(newcount, (AHD_SCB_MAX_ALLOC - scb_data->numscbs)); in ahd_alloc_scbs()
5714 scb_data->sense_left -= newcount; in ahd_alloc_scbs()
5715 scb_data->scbs_left -= newcount; in ahd_alloc_scbs()
5716 scb_data->sgs_left -= newcount; in ahd_alloc_scbs()
5717 for (i = 0; i < newcount; i++) { in ahd_alloc_scbs()
Daic7xxx_core.c4461 int newcount; in ahc_alloc_scbs() local
4493 newcount = (PAGE_SIZE / (AHC_NSEG * sizeof(struct ahc_dma_seg))); in ahc_alloc_scbs()
4494 newcount = MIN(newcount, (AHC_SCB_MAX_ALLOC - scb_data->numscbs)); in ahc_alloc_scbs()
4495 for (i = 0; i < newcount; i++) { in ahc_alloc_scbs()
/linux-2.4.37.9/fs/xfs/
Dxfs_da_btree.c440 int newcount, error; in xfs_da_node_split() local
450 newcount = 1 + useextra; in xfs_da_node_split()
454 if ((INT_GET(node->hdr.count, ARCH_CONVERT) + newcount) > state->node_ents) { in xfs_da_node_split()