Searched refs:amount (Results 1 - 8 of 8) sorted by relevance

/darwin-on-arm/xnu/libkern/gen/
H A DOSAtomicOperations.c154 SInt32 OSAddAtomic(SInt32 amount, volatile SInt32 * value) argument
161 newValue = oldValue + amount;
177 SInt8 OSAddAtomic8(SInt32 amount, volatile SInt8 * value) argument
184 newValue = oldValue + amount;
247 SInt16 OSAddAtomic16(SInt32 amount, volatile SInt16 * value) argument
254 newValue = oldValue + amount;
/darwin-on-arm/xnu/libkern/libkern/
H A DOSAtomic.h229 * The OSAddAtomic function adds the specified amount to the value at the specified address and returns the original value.
232 * @param amount The amount to add.
237 SInt32 amount,
249 * The OSAddAtomic16 function adds the specified amount to the value at the specified address and returns the original value.
252 * @param amount The amount to add.
257 SInt32 amount,
267 * The OSAddAtomic8 function adds the specified amount to the value at the specified address and returns the original value.
270 * @param amount Th
[all...]
/darwin-on-arm/xnu/osfmk/kern/
H A Dledger.h107 ledger_amount_t amount);
109 ledger_amount_t amount);
H A Dledger.c610 ledger_credit(ledger_t ledger, int entry, ledger_amount_t amount) argument
615 if (!ENTRY_VALID(ledger, entry) || (amount < 0))
618 if (amount == 0)
623 old = OSAddAtomic64(amount, &le->le_credit);
624 new = old + amount;
772 ledger_debit(ledger_t ledger, int entry, ledger_amount_t amount) argument
777 if (!ENTRY_VALID(ledger, entry) || (amount < 0))
780 if (amount == 0)
785 old = OSAddAtomic64(amount, &le->le_debit);
786 new = old + amount;
[all...]
/darwin-on-arm/xnu/bsd/kern/
H A Dkpi_mbuf.c361 errno_t mbuf_adjustlen(mbuf_t m, int amount) argument
363 /* Verify m_len will be valid after adding amount */
364 if (amount > 0) {
368 if ((size_t)(amount + used) > mbuf_maxlen(m))
371 else if (-amount > m->m_len) {
375 m->m_len += amount;
526 void mbuf_pkthdr_adjustlen(mbuf_t mbuf, int amount) argument
528 mbuf->m_pkthdr.len += amount;
/darwin-on-arm/xnu/bsd/hfs/
H A Dhfs_btreeio.c53 static int ClearBTNodes(struct vnode *vp, long blksize, off_t offset, off_t amount);
552 ClearBTNodes(struct vnode *vp, long blksize, off_t offset, off_t amount) argument
560 blkcnt = amount / blksize;
/darwin-on-arm/xnu/bsd/sys/
H A Dkpi_mbuf.h737 @discussion Adds amount to the mbuf len. Verifies that the new
739 maximum amount of data that may be stored in the mbuf). This
743 @param amount The number of bytes increment the length by.
746 extern errno_t mbuf_adjustlen(mbuf_t mbuf, int amount);
958 @param amount The number of bytes to adjust the packet header length
961 extern void mbuf_pkthdr_adjustlen(mbuf_t mbuf, int amount);
/darwin-on-arm/xnu/bsd/vfs/
H A Dvfs_vnops.c1627 off_t amount; local
1628 amount = vp->v_un.vu_ubcinfo->ui_size - current_offset;
1629 if (amount > (off_t)INTPTR_MAX) {
1631 } else if (amount < (off_t)INTPTR_MIN) {
1634 return (intptr_t)amount;

Completed in 53 milliseconds