Searched refs:need (Results 1 - 15 of 15) sorted by relevance

/macosx-10.5.8/xnu-1228.15.4/bsd/kern/
H A Dmcache.c73 /* Allocate extra in case we need to manually align the pointer */
426 unsigned int need = num; local
458 objs = MIN((unsigned int)ccp->cc_objs, need);
468 if ((need -= objs) == 0) {
516 need -= (*cp->mc_slab_alloc)(cp->mc_private, &list, need, wait);
522 if (need > 0) {
538 return (num - need);
556 if (n != (num - need)) {
559 (void *)cp, num - need,
858 unsigned int need = num; local
[all...]
H A Duipc_mbuf.c1418 unsigned int need = num; local
1422 ASSERT(need > 0);
1431 if (--need == 0) {
1475 mbuf_sleep(class, need, wait))
1482 m_alloc_cnt(class) += num - need;
1485 return (num - need);
1490 * layer when one or more elements need to be returned to the appropriate
1601 unsigned int need = num; local
1607 VERIFY(need > 0);
1646 if (--need
[all...]
/macosx-10.5.8/xnu-1228.15.4/osfmk/ppc/
H A Dsavearea_asm.s381 lwz r5,SACvrswap+4(r5) ; Get the virtual to real translation (only need low word)
469 ble-- saveGet64GetGlobal ; We are too low and need to grow list...
498 subfic r5,r8,LocalSaveTarget ; Get the number of saveareas we need to grab to get to target
610 ble- saveGet32GetGlobal ; We are too low and need to grow list...
638 subfic r5,r8,LocalSaveTarget ; Get the number of saveareas we need to grab to get to target
985 lwz r8,SVadjust(0) ; How many do we need to clear out?
987 neg. r8,r8 ; Get the actual we need to toss (adjust is neg if too many)
992 save_trim_free1: ; by the time we were called, no need to trim anymore
993 stw r3,SVlock(0) ; Quick unlock (no need for sync or to set adjust, nothing changed)
1002 addi r1,r1,(FM_ALIGN(16)+FM_SIZE); Pop stack - have not trashed register so no need t
[all...]
H A Dlowmem_vectors.s397 * need to set sprg2 before returning.
811 andi. r11,r11,bbNoMachSC|bbPreemptive ; Clear what we do not need
934 cmplw r24,r22 ; Do we need to wrap the trace table?
1071 cmplw r24,r22 ; Do we need to wrap the trace table?
1248 la r1,saver4(r13) ; Point to the next line in case we need it
1311 bne- getTB ; Yeah, need to get it again...
1486 cmplw r22,r26 ; Do we need to wrap the trace table?
1815 cmplw r22,r26 ; Do we need to wrap the trace table?
1842 ld r0,saver0(r13) ; Get back interrupt time R0 (we need this whether we trace or not)
1910 ; We need t
[all...]
H A Dmachine_routines_asm.s203 ; We need to insure that there is no more than 1 BAT register that
886 bne-- yesnap ; Yeah, need to get it again...
923 ; So, make sure everything we need there is already set up...
957 bt pfNoMSRirb,miNoMSR ; Jump if we need to use SC for this...
1026 * There is one bit of hackery in here: we need to enable for
1095 ; Note that we need translation off before we set the HID to sleep. Otherwise
1180 * check if the cache is on, if so, we need to flush the contents to memory.
1275 beq- cinoL1 ; No, no need to flush...
1292 ; We need to either make this very complicated or to use ROM for
1296 ; during the flush. So, we either need t
[all...]
H A Dcswtch.s82 * we do not need to save callee save registers.
308 ; killing off the old context of the new guy so we need to pop off
328 * We need to do the following contortions because we need to keep
329 * the LR clean. And because we need to manipulate the savearea chain
431 ; It looks like we need to save this one.
650 ; Note that now that we have the lock, we need to check if anything changed.
718 ; Check if we need to fill the registers with junk, because this level has
983 ; Note that we need to choke in this code rather than panic because there is no
1039 li r0,0 ; Clear this just in case we need i
[all...]
H A Dhw_exception.s87 * another trap is taken. We need at least enough space for a saved state
154 /* If debugging, we need two frames, the first being a dummy
156 * that which the C routine below will need
406 /* If debugging, we need two frames, the first being a dummy
408 * that which the C routine below will need
492 ; NOTE: Both R16 (thread) and R30 (savearea) need to be preserved over this call!!!!
718 * need to figure out why we got an KERN_INVALID_ARG
846 mr r3,r30 ; Copy pcb pointer into r3 in case we need it
980 /* If debugging, we need two frames, the first being a dummy
982 * that which the C routine below will need
[all...]
H A Dvmachmon_asm.s398 li r0,0 ; Get a 0 in case we need to trash redrive
406 ; either is true. They need to either reset the timer (i.e. set timer
435 ; Special note: we need to intercept any attempt to launch a guest into a non-existent address space.
502 ; Note that we need to revisit this when we move the virtual machines to the task because
516 stw r20,saveexception(r30) ; Say we need to emulate a DSI
817 ; in an alternate context. Because this is called from C we need to save
1200 ; Do we really need to pass parameters back here????
1646 ; Do we really need to pass parameters back here????
1686 stw r4,saveexception(r30) ; Say we need to emulate a DSI
1729 stw r4,saveexception(r30) ; Say we need t
[all...]
H A DEmulate.s88 dssall ; We need to kill streams because we are going to flip to problem state
201 ; alignment. We decode the DSISR to figure out what we need to do.
284 stw r11,emfp0+4(r31) ; Save the second half, just in case we need it
1022 lis r11,hi16(srr1clr) ; Get the bits we need to clear
H A Dhw_vm.s249 ; Since we could not promote our lock, we need to convert to it.
251 ; exclusive. Since we release the lock, we need to do the look up
616 ; Since we could not promote our lock, we need to convert to it.
618 ; exclusive. Since we release the lock, we need to do the look up
656 ; Here is also where we need to split 32- and 64-bit processing
671 crorc cr0_eq,cr1_eq,cr0_lt ; No need to look at PTE if none or a special mapping
686 bl mapLockPteg ; Go lock up the PTEG (Note: we need to save R6 to set PCA)
695 beq- hrmUlckPCA32 ; Pte is gone, no need to invalidate...
736 ; But first, we need to make sure no one else is using this
778 hrmPerm: li r8,-4096 ; Get the value we need t
[all...]
H A DFirmware.s2414 mtspr hid1,r0 ; We need to do it twice
2440 rlwinm. r0,r0,pfSCOMFixUpb+1,31,31 ; Set shift if we need a fix me up
/macosx-10.5.8/xnu-1228.15.4/libkern/
H A Dzlib.c106 "need dictionary", /* Z_NEED_DICT 2 */
681 need_more, /* block not completed, need more input or more output */
683 finish_started, /* finish started, need only more output at next deflate */
1372 Assert((ulg)s->strstart <= s->window_size-MIN_LOOKAHEAD, "need lookahead");
1482 Assert((ulg)s->strstart <= s->window_size-MIN_LOOKAHEAD, "need lookahead");
1744 * at the end of the input file. We need MAX_MATCH bytes
1840 * at the end of the input file. We need MAX_MATCH bytes
2038 * need for the L_CODES extra codes used during heap construction. However
2673 * Generate the codes for a given tree and bit counts (which need not be
3405 uLong need; /* strea member in struct:inflate_state::__anon609::__anon610
5033 uInt need; /* bits needed */ member in struct:inflate_codes_state::__anon618::__anon619
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/nfs/
H A Dnfs_subs.c545 uint32_t left, need, mblen, cplen, padlen; local
572 /* we need (len - left) more bytes */
575 need = len - left;
577 if (need > mbuf_trailingspace(mbcur)) {
633 * move the next "need" bytes into the current
638 mbuf_setlen(mbcur, mbuf_len(mbcur) + need);
643 while (need && mb) {
644 /* copy as much as we need/can */
647 cplen = MIN(mblen, need);
656 mbuf_setlen(mbcur, mbuf_len(mbcur) - need);
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/ppc/
H A Dxsumas.s228 add r2,r2,r7 ; note no need for "adde"
/macosx-10.5.8/xnu-1228.15.4/bsd/net/
H A Dif_bond.c1617 /* XXX need to take a reference on bond_ifp */
1827 /* XXX need to take a reference on bond_ifp */
2185 /* check if we need to generate a link status event */
2332 /* check if we need to generate a link status event */
2495 /* check if we need to generate a link status event */
3025 /* XXX need to take a reference on bond_ifp */
3376 int need = 0; local
3380 need = bond->ifb_max_active;
3392 if (need > 0) {
3394 need
[all...]

Completed in 282 milliseconds