/freebsd-current/sys/contrib/ck/include/spinlock/ |
H A D | anderson.h | 48 struct ck_spinlock_anderson_thread *slots; member in struct:ck_spinlock_anderson 59 struct ck_spinlock_anderson_thread *slots, 64 slots[0].locked = false; 65 slots[0].position = 0; 67 slots[i].locked = true; 68 slots[i].position = i; 71 lock->slots = slots; 97 r = ck_pr_load_uint(&lock->slots[position].locked); 111 * to reallocate beginning slots t 58 ck_spinlock_anderson_init(struct ck_spinlock_anderson *lock, struct ck_spinlock_anderson_thread *slots, unsigned int count) argument [all...] |
/freebsd-current/sys/compat/linuxkpi/common/src/ |
H A D | linux_radix.c | 79 node = node->slots[radix_pos(index, height--)]; 81 item = node->slots[radix_pos(index, 0)]; 109 *pppslot = node->slots + pos; 111 next = node->slots[pos]; 145 node = node->slots[radix_pos(index, height--)]; 149 item = node->slots[idx]; 155 node->slots[idx] = NULL; 228 node->slots[0] = root->rnode; 241 if (node->slots[idx] == NULL) 243 node = node->slots[id [all...] |
/freebsd-current/contrib/libarchive/libarchive/ |
H A D | archive_read_set_format.c | 39 int r1, r2, slots, i; local 102 slots = sizeof(a->formats) / sizeof(a->formats[0]); 104 for (i = 0; i < slots; i++, a->format++) {
|
/freebsd-current/sys/dev/sound/pci/ |
H A D | hdsp-pcm.c | 128 hdsp_slot_first(uint32_t slots) argument 130 return (slots & (~(slots - 1))); /* Extract first bit set. */ 134 hdsp_slot_first_row(uint32_t slots) argument 139 ends = slots & (~(slots >> 1)); 140 /* First row of contiguous slots ends in the first row end. */ 141 return (slots & (ends ^ (ends - 1))); 145 hdsp_slot_first_n(uint32_t slots, unsigned int n) argument 147 /* Clear all but the first n slots 158 hdsp_slot_count(uint32_t slots) argument 164 hdsp_slot_offset(uint32_t slots) argument 170 hdsp_slot_channel_offset(uint32_t subset, uint32_t slots) argument 268 uint32_t slot, slots; local 373 uint32_t slot, slots; local 473 buffer_mux_port(uint32_t *dma, uint32_t *pcm, uint32_t subset, uint32_t slots, unsigned int pos, unsigned int samples, unsigned int channels) argument 518 buffer_demux_port(uint32_t *dma, uint32_t *pcm, uint32_t subset, uint32_t slots, unsigned int pos, unsigned int samples, unsigned int channels) argument 555 uint32_t row, slots; local 636 uint32_t slot, slots; local [all...] |
H A D | hdspe-pcm.c | 116 /* Restrict ports to one set with contiguous slots. */ 118 ports = HDSPE_CHAN_AIO_LINE; /* Gap in the AIO slots here. */ 120 ports &= HDSPE_CHAN_AIO_ALL; /* Rest of the AIO slots. */ 122 ports &= HDSPE_CHAN_RAY_ALL; /* All RayDAT slots. */ 177 preceding &= HDSPE_CHAN_AIO_ALL; /* Contiguous AIO slots. */ 179 preceding &= HDSPE_CHAN_RAY_ALL; /* Contiguous RayDAT slots. */ 224 /* Count number of contiguous slots from the first physical port. */ 275 /* Subsequent slots all get the right channel volume. */ 369 /* Iterate through rows of ports with contiguous slots. */ 444 unsigned int samples, unsigned int slots, unsigne 443 buffer_mux_write(uint32_t *dma, uint32_t *pcm, unsigned int pos, unsigned int samples, unsigned int slots, unsigned int channels) argument 462 unsigned int slot_offset, slots; local 489 buffer_demux_read(uint32_t *dma, uint32_t *pcm, unsigned int pos, unsigned int samples, unsigned int slots, unsigned int channels) argument 508 unsigned int slot_offset, slots; local 623 unsigned int offset, slots; local [all...] |
/freebsd-current/sys/dev/evdev/ |
H A D | evdev_mt.c | 82 /* the set of slots with active touches */ 84 /* the set of slots with unsynchronized state */ 86 /* the set of slots to match with active touches */ 91 union evdev_mt_slot slots[]; member in struct:evdev_mt 100 ffc_slot(struct evdev_dev *evdev, slotset_t slots) argument 102 return (ffs(~slots & ((2U << MAXIMAL_MT_SLOT(evdev)) - 1)) - 1); 109 size_t size = offsetof(struct evdev_mt, slots); 110 int slot, slots; local 122 slots = MAXIMAL_MT_SLOT(evdev) + 1; 123 size += sizeof(mt->slots[ [all...] |
/freebsd-current/sys/dev/ena/ |
H A D | ena_netmap.c | 44 struct netmap_slot *slots; member in struct:ena_netmap_ctx 132 "No free slots in netmap ring\n"); 354 __builtin_prefetch(&ctx->slots[ctx->nm_i]); 401 ena_log_nm(adapter->pdev, WARN, "Too many slots per packet\n"); 471 uint16_t slots = 1; local 474 while ((ctx->slots[nm].flags & NS_MOREFRAG) != 0) { 475 slots++; 479 return slots; 483 ena_netmap_packet_len(struct netmap_slot *slots, u_int slot_index, argument 490 nm_slot = &slots[slot_inde 499 ena_netmap_copy_data(struct netmap_adapter *na, struct netmap_slot *slots, u_int slot_index, uint16_t limit, uint16_t bytes_to_copy, void *destination) argument [all...] |
/freebsd-current/tests/sys/mac/bsdextended/ |
H A D | ugidfw_test.c | 200 int count, slots; local 231 * starting, but "slots" is a property of prior runs and so we ignore 243 slots = bsde_get_rule_slots(sizeof(errorstr), errorstr); 244 if (slots == -1)
|
/freebsd-current/sys/dev/sound/macio/ |
H A D | aoa.c | 63 u_int slots; /* # of slots */ member in struct:aoa_dma 79 dma->slots = dma->bufsz / dma->blksz; 81 for (i = 0; i < dma->slots; ++i) { 91 dma->slots + 1 /* branch_slot */ 98 dbdma_insert_branch(dma->channel, dma->slots, 0); 101 dbdma_insert_stop(dma->channel, dma->slots + 1); 293 for (i = 0; i < dma->slots; ++i) 329 dma->slot = (dma->slot + 1) % dma->slots;
|
/freebsd-current/sys/contrib/openzfs/cmd/zed/zed.d/ |
H A D | vdev_attach-led.sh | 33 if [ ! -d /sys/class/enclosure ] && [ ! -d /sys/bus/pci/slots ] ; then 34 # No JBOD enclosure or NVMe slots 138 # like "/sys/bus/pci/slots/0" 147 find /sys/bus/pci/slots -regex '.*/[0-9]+/address$' | \ 153 # /sys/bus/pci/slots/
|
H A D | statechange-led.sh | 33 if [ ! -d /sys/class/enclosure ] && [ ! -d /sys/bus/pci/slots ] ; then 34 # No JBOD enclosure or NVMe slots 138 # like "/sys/bus/pci/slots/0" 147 find /sys/bus/pci/slots -regex '.*/[0-9]+/address$' | \ 153 # /sys/bus/pci/slots/
|
H A D | vdev_clear-led.sh | 33 if [ ! -d /sys/class/enclosure ] && [ ! -d /sys/bus/pci/slots ] ; then 34 # No JBOD enclosure or NVMe slots 138 # like "/sys/bus/pci/slots/0" 147 find /sys/bus/pci/slots -regex '.*/[0-9]+/address$' | \ 153 # /sys/bus/pci/slots/
|
H A D | pool_import-led.sh | 33 if [ ! -d /sys/class/enclosure ] && [ ! -d /sys/bus/pci/slots ] ; then 34 # No JBOD enclosure or NVMe slots 138 # like "/sys/bus/pci/slots/0" 147 find /sys/bus/pci/slots -regex '.*/[0-9]+/address$' | \ 153 # /sys/bus/pci/slots/
|
/freebsd-current/sys/dev/sdhci/ |
H A D | sdhci_pci.c | 162 int num_slots; /* Number of slots on this controller */ 163 struct sdhci_slot slots[6]; member in struct:sdhci_pci_softc 336 int bar, err, rid, slots, i; local 356 /* Read slots info from PCI registers. */ 357 slots = pci_read_config(dev, PCI_SLOT_INFO, 1); 358 bar = PCI_SLOT_INFO_FIRST_BAR(slots); 359 slots = PCI_SLOT_INFO_SLOTS(slots); 360 if (slots > 6 || bar > 5) { 361 device_printf(dev, "Incorrect slots informatio [all...] |
H A D | sdhci_fdt.c | 134 int num_slots; /* Number of slots on this controller*/ 135 struct sdhci_slot slots[MAX_SLOTS]; member in struct:sdhci_fdt_softc 430 sdhci_generic_intr(&sc->slots[i]); 547 /* Allow dts to patch quirks, slots, and max-frequency. */ 550 if ((OF_getencprop(node, "num-slots", &cid, sizeof(cid))) > 0) 569 int err, slots, rid, i, compat; local 620 /* Scan all slots. */ 621 slots = sc->num_slots; /* number of slots determined in probe(). */ 623 for (i = 0; i < slots; [all...] |
/freebsd-current/sys/contrib/openzfs/module/zfs/ |
H A D | dnode.c | 1157 dnode_slots_hold(dnode_children_t *children, int idx, int slots) argument 1159 ASSERT3S(idx + slots, <=, DNODES_PER_BLOCK); 1161 for (int i = idx; i < idx + slots; i++) { 1168 dnode_slots_rele(dnode_children_t *children, int idx, int slots) argument 1170 ASSERT3S(idx + slots, <=, DNODES_PER_BLOCK); 1172 for (int i = idx; i < idx + slots; i++) { 1183 dnode_slots_tryenter(dnode_children_t *children, int idx, int slots) argument 1185 ASSERT3S(idx + slots, <=, DNODES_PER_BLOCK); 1187 for (int i = idx; i < idx + slots; i++) { 1204 dnode_set_slots(dnode_children_t *children, int idx, int slots, voi argument 1215 dnode_check_slots_free(dnode_children_t *children, int idx, int slots) argument 1249 dnode_reclaim_slots(dnode_children_t *children, int idx, int slots) argument 1277 int slots = dn->dn_num_slots - 1; local 1402 dnode_hold_impl(objset_t *os, uint64_t object, int flag, int slots, const void *tag, dnode_t **dnp) argument 1782 dnode_try_claim(objset_t *os, uint64_t object, int slots) argument [all...] |
/freebsd-current/contrib/kyua/drivers/ |
H A D | run_tests.cpp | 279 const std::size_t slots = user_config.lookup< config::positive_int_node >( local 281 INV(slots >= 1); 283 INV(in_flight.size() <= slots); 285 // Spawn as many jobs as needed to fill our execution slots. We do this 288 while (in_flight.size() < slots) { 311 // If there are any used slots, consume any at random and return the 312 // result. We consume slots one at a time to give preference to the
|
/freebsd-current/sys/compat/linuxkpi/common/include/linux/ |
H A D | radix-tree.h | 45 void *slots[RADIX_TREE_MAP_SIZE]; member in struct:radix_tree_node
|
/freebsd-current/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | StackColoring.cpp | 11 // which represent the possible lifetime of stack slots. It attempts to 12 // merge disjoint stack slots and reduce the used stack space. 13 // NOTE: This pass is not StackSlotColoring, which optimizes spill slots. 16 // 1. Allow merging multiple small slots into a single larger slot at different 19 // spill slots. 94 STATISTIC(StackSpaceSaved, "Number of bytes saved due to merging slots."); 102 // Stack Coloring reduces stack usage by merging stack slots when they 127 // stack slots for `x` or `y` are used, and then `x` is only used if `var` 129 // of the stack slots used together, and therefore we can merge them, 168 // L4) on function exit, all stack slots ar 581 isLifetimeStartOrEnd(const MachineInstr &MI, SmallVector<int, 4> &slots, bool &isStart) argument 734 SmallVector<int, 4> slots; local 846 SmallVector<int, 4> slots; local [all...] |
/freebsd-current/sys/powerpc/include/ |
H A D | dbdma.h | 82 bus_dma_tag_t parent_dma, int slots, dbdma_channel_t **chan);
|
/freebsd-current/usr.sbin/ppp/ |
H A D | ipcp.h | 50 int slots; /* Maximum VJ slots */ member in struct:ipcp::__anon6745::__anon6746
|
H A D | ipcp.c | 106 u_char slots; member in struct:compreq 385 prompt_Printf(arg->prompt, " VJ compression: %s (%d slots %s slot " 387 ipcp->cfg.vj.slots, ipcp->cfg.vj.slotcomp ? "with" : "without"); 426 if (!strcasecmp(arg->argv[arg->argn], "slots")) { 427 int slots; local 429 slots = atoi(arg->argv[arg->argn+1]); 430 if (slots < 4 || slots > 16) 432 arg->bundle->ncp.ipcp.cfg.vj.slots = slots; [all...] |
/freebsd-current/sys/netpfil/ipfw/ |
H A D | dn_sched_qfq.c | 163 * Maximum number of consecutive slots occupied by backlogged classes 230 bitmap full_slots; /* non-empty slots */ 233 struct qfq_class *slots[QFQ_MAX_SLOTS]; member in struct:qfq_group 442 cl->next = grp->slots[i]; 443 grp->slots[i] = cl; 453 struct qfq_class **h = &grp->slots[grp->front]; 480 return grp->slots[grp->front]; 486 * move the objects. The mask of occupied slots must be shifted 565 cl = grp->slots[grp->front]; 725 pprev = &grp->slots[ [all...] |
/freebsd-current/usr.bin/netstat/ |
H A D | nhgrp.c | 145 /* slots */ 154 /* TODO: optimize slots calculations */ 155 uint32_t slots = 0; local 158 slots++; 165 xo_emit("{t:nh-slots/%*lu}", wid_nhidx, slots);
|
/freebsd-current/tools/tools/netmap/ |
H A D | lb.c | 111 struct netmap_slot *slots; member in struct:overflow_queue 139 q->slots[q->tail] = *s; 149 struct netmap_slot s = q->slots[q->head]; 485 /* To support packets that span multiple slots (NS_MOREFRAG) we 597 * at least NETMAP_MAX_FRAGS slots in the queue. 766 freeq->slots = calloc(extra_bufs, sizeof(struct netmap_slot)); 767 if (!freeq->slots) { 827 D("successfully opened pipe #%d %s (tx slots: %d)", 841 q->slots = calloc(extra_bufs, sizeof(struct netmap_slot)); 842 if (!q->slots) { [all...] |