Searched refs:slot (Results 1 - 19 of 19) sorted by relevance

/xnu-2422.115.4/libsyscall/os/
H A Dtsd.h54 _os_tsd_get_direct(unsigned long slot) argument
58 __asm__("mov %%gs:%1, %0" : "=r" (ret) : "m" (*(void **)(slot * sizeof(void *))));
67 _os_tsd_set_direct(unsigned long slot, void* val) argument
70 __asm__("movl %1, %%gs:%0" : "=m" (*(void **)(slot * sizeof(void *))) : "rn" (val));
72 __asm__("movl %1, %%gs:%0" : "=m" (*(void **)(slot * sizeof(void *))) : "ri" (val));
74 __asm__("movq %1, %%gs:%0" : "=m" (*(void **)(slot * sizeof(void *))) : "rn" (val));
/xnu-2422.115.4/bsd/kern/
H A Dtty_conf.c128 int slot = -1; local
134 slot = i;
138 slot = discipline;
141 if (slot != -1 && linesw_p)
142 linesw[slot] = *linesw_p;
144 return slot;
H A Dubc_subr.c545 cs_find_special_slot(const CS_CodeDirectory *cd, uint32_t slot) argument
547 /* there is no zero special slot since that is the first code slot */
548 if (ntohl(cd->nSpecialSlots) < slot || slot == 0)
551 return ((const uint8_t *)cd + ntohl(cd->hashOffset) - (SHA1_RESULTLEN * slot));
/xnu-2422.115.4/security/
H A Dmac_label.c88 mac_label_get(struct label *l, int slot) argument
92 return ((intptr_t) (l->l_perpolicy[slot].l_ptr));
96 mac_label_set(struct label *l, int slot, intptr_t v) argument
100 l->l_perpolicy[slot].l_ptr = (void *) v;
H A Dmac_base.c775 int error, slot, static_entry = 0; local
844 slot = ffs(mac_slot_offsets_free);
845 if (slot == 0) {
849 slot--;
850 mac_slot_offsets_free &= ~(1 << slot);
851 *mpc->mpc_field_off = slot;
2348 intptr_t mac_label_get(struct label *l __unused, int slot __unused)
2353 void mac_label_set(struct label *l __unused, int slot __unused, intptr_t v __unused)
H A Dmac_policy.h6635 any load time flags, and optionally, a pointer to a label slot identifier.
6640 If the label slot identifier (mpc_field_off) is NULL, the Framework
6642 Framework will store the label location (slot) in this field.
6655 int *mpc_field_off; /** label slot */
6782 #define MAC_POLICY_SET(handle, mpops, mpname, mpfullname, lnames, lcount, slot, lflags, rflags) \
6790 .mpc_field_off = slot, \
6823 intptr_t mac_label_get(struct label *l, int slot);
6824 void mac_label_set(struct label *l, int slot, intptr_t v);
/xnu-2422.115.4/osfmk/vm/
H A Dvm_compressor_pager.h85 extern int vm_compressor_put(ppnum_t pn, int *slot, void **current_chead, char *scratch_buf);
86 extern int vm_compressor_get(ppnum_t pn, int *slot, int flags);
87 extern void vm_compressor_free(int *slot);
H A Dvm_compressor.c437 panic("c_seg_validate: no slot backing c_firstemptyslot");
1105 * converting the slot passed into it into
1108 * index the slot points to
1115 /* <csegno=0,indx=0> would mean "empty slot", so use csegno+1 */
2348 /* <csegno=0,indx=0> would mean "empty slot", so use csegno+1 */
2599 vm_compressor_get(ppnum_t pn, int *slot, int flags) argument
2611 retval = c_decompress_page(dst, (c_slot_mapping_t)slot, flags, &zeroslot);
2629 *slot = 0;
2642 vm_compressor_free(int *slot) argument
2646 (void)c_decompress_page(NULL, (c_slot_mapping_t)slot,
2653 vm_compressor_put(ppnum_t pn, int *slot, void **current_chead, char *scratch_buf) argument
[all...]
/xnu-2422.115.4/bsd/vfs/
H A Dvfs_init.c517 * unused slot. If no slots are available, return an
535 int slot; local
539 * Find the next empty slot; we recognize an empty slot by a
545 for (slot = 0; slot < maxvfsslots; slot++) {
546 if (vfsconf[slot].vfc_vfsops == NULL)
549 if (slot == maxvfsslots) {
561 slotp = &vfsconf[slot];
[all...]
/xnu-2422.115.4/bsd/net/pktsched/
H A Dpktsched_cbq.c209 * find a free slot in the class table. if the slot matching
210 * the lower bits of qid is free, use this slot. otherwise,
211 * use the first free slot.
410 * first, try optimistically the slot matching the lower bits of
689 cbq_getqstats_ifclassq(struct ifclassq *ifq, u_int32_t slot, argument
697 if (slot >= IFCQ_SC_MAX)
700 return (cbq_get_class_stats(cbqp, ifq->ifcq_disc_slots[slot].qid,
H A Dpktsched_qfq.c496 * Find a free slot in the class table. If the slot matching
497 * the lower bits of qid is free, use this slot. Otherwise,
498 * use the first free slot.
802 * XXX we should make sure that slot becomes less than 32.
810 u_int64_t slot = (roundedS - grp->qfg_S) >> grp->qfg_slot_shift; local
811 u_int32_t i = (grp->qfg_front + slot) % qif->qif_maxslots;
815 pktsched_bit_set(slot, &grp->qfg_full_slots);
819 * remove the entry from the slot
863 * because we use ffs() to find the first non-empty slot
1930 qfq_getqstats_ifclassq(struct ifclassq *ifq, u_int32_t slot, struct if_ifclassq_stats *ifqs) argument
[all...]
H A Dpktsched_fairq.c1283 fairq_getqstats_ifclassq(struct ifclassq *ifq, u_int32_t slot, argument
1291 if (slot >= IFCQ_SC_MAX)
1294 return (fairq_get_class_stats(fif, ifq->ifcq_disc_slots[slot].qid,
H A Dpktsched_priq.c1167 priq_getqstats_ifclassq(struct ifclassq *ifq, u_int32_t slot, argument
1175 if (slot >= IFCQ_SC_MAX)
1178 return (priq_get_class_stats(pif, ifq->ifcq_disc_slots[slot].qid,
H A Dpktsched_tcq.c1108 tcq_getqstats_ifclassq(struct ifclassq *ifq, u_int32_t slot, argument
1116 if (slot >= IFCQ_SC_MAX)
1119 return (tcq_get_class_stats(tif, ifq->ifcq_disc_slots[slot].qid,
H A Dpktsched_hfsc.c562 * find a free slot in the class table. if the slot matching
563 * the lower bits of qid is free, use this slot. otherwise,
564 * use the first free slot.
722 log(LOG_DEBUG, "%s: %s destroyed qid=%d slot=%d\n",
964 "failed for qid=%d slot=%d, falling back "
1077 log(LOG_DEBUG, "%s: %s purge qid=%d slot=%d "
1153 log(LOG_DEBUG, "%s: %s update qid=%d slot=%d event=%s\n",
1749 log(LOG_WARNING, "%s: %s qid=%d slot=%d eff_rate unknown; "
2002 * first, try optimistically the slot matchin
2049 hfsc_getqstats_ifclassq(struct ifclassq *ifq, u_int32_t slot, struct if_ifclassq_stats *ifqs) argument
[all...]
/xnu-2422.115.4/bsd/nfs/
H A Dnfsnode.h287 int8_t free; /* next unused slot */
732 #define NACCESSVALID(np, slot) (((slot) >= 0) && ((slot) < NFS_ACCESS_CACHE_SIZE) && ((np)->n_accessstamp[(slot)] != ~0))
H A Dnfs_vnops.c452 * Find the slot in the access cache for this UID.
453 * If adding and no existing slot is found, reuse slots in FIFO order.
454 * The index of the next slot to use is kept in the last entry of the n_access array.
459 int slot; local
461 for (slot=0; slot < NFS_ACCESS_CACHE_SIZE; slot++)
462 if (np->n_accessuid[slot] == uid)
464 if (slot == NFS_ACCESS_CACHE_SIZE) {
467 slot
476 int error = 0, lockerror = ENOENT, status, slot; local
560 int error = 0, slot, dorpc; local
[all...]
H A Dnfs4_vnops.c85 int error = 0, lockerror = ENOENT, status, numops, slot; local
159 slot = nfs_node_access_slot(np, uid, 1);
160 np->n_accessuid[slot] = uid;
162 np->n_accessstamp[slot] = now.tv_sec;
163 np->n_access[slot] = access_result;
166 *access = np->n_access[slot];
/xnu-2422.115.4/tools/lldbmacros/
H A Dnet.py1735 slot = -1
1742 slot = int(cmd_args[0])
1744 out_string += "time wait slot size " + str(N_TIME_WAIT_SLOTS) + " cur_tw_slot " + str(int(kern.globals.cur_tw_slot)) + "\n"
1750 if (i == slot or slot == -1):
1756 out_string += " slot " + str(i) + " count " + str(perslot) + "\n"
1758 if (_all or i == slot):

Completed in 285 milliseconds