| /freebsd/sys/contrib/ck/include/spinlock/ |
| H A D | anderson.h | 48 struct ck_spinlock_anderson_thread *slots; member 59 struct ck_spinlock_anderson_thread *slots, in ck_spinlock_anderson_init() argument 64 slots[0].locked = false; in ck_spinlock_anderson_init() 65 slots[0].position = 0; in ck_spinlock_anderson_init() 67 slots[i].locked = true; in ck_spinlock_anderson_init() 68 slots[i].position = i; in ck_spinlock_anderson_init() 71 lock->slots = slots; in ck_spinlock_anderson_init() 97 r = ck_pr_load_uint(&lock->slots[position].locked); in ck_spinlock_anderson_locked() 138 while (ck_pr_load_uint(&lock->slots[position].locked) == true) in ck_spinlock_anderson_lock() 142 ck_pr_store_uint(&lock->slots[position].locked, true); in ck_spinlock_anderson_lock() [all …]
|
| /freebsd/sys/dev/sound/pci/ |
| H A D | hdsp-pcm.c | 128 hdsp_slot_first(uint32_t slots) in hdsp_slot_first() argument 130 return (slots & (~(slots - 1))); /* Extract first bit set. */ in hdsp_slot_first() 134 hdsp_slot_first_row(uint32_t slots) in hdsp_slot_first_row() argument 139 ends = slots & (~(slots >> 1)); in hdsp_slot_first_row() 141 return (slots & (ends ^ (ends - 1))); in hdsp_slot_first_row() 145 hdsp_slot_first_n(uint32_t slots, unsigned int n) in hdsp_slot_first_n() argument 149 if ((slots & slot) && n > 0) in hdsp_slot_first_n() 152 slots &= ~slot; in hdsp_slot_first_n() 154 return (slots); in hdsp_slot_first_n() 158 hdsp_slot_count(uint32_t slots) in hdsp_slot_count() argument [all …]
|
| H A D | hdspe-pcm.c | 446 unsigned int samples, unsigned int slots, unsigned int channels) in buffer_mux_write() argument 451 for (slot = 0; slot < slots; slot++) { in buffer_mux_write() 464 unsigned int slot_offset, slots; in buffer_mux_port() local 477 slots = hdspe_port_slot_width(subset, min(adat_width, pcm_width)); in buffer_mux_port() 480 if (slots == 2) in buffer_mux_port() 482 else if (slots == 4) in buffer_mux_port() 484 else if (slots == 8) in buffer_mux_port() 487 buffer_mux_write(dma, pcm, pos, samples, slots, channels); in buffer_mux_port() 492 unsigned int samples, unsigned int slots, unsigned int channels) in buffer_demux_read() argument 497 for (slot = 0; slot < slots; slot++) { in buffer_demux_read() [all …]
|
| /freebsd/sys/compat/linuxkpi/common/src/ |
| H A D | linux_radix.c | 154 node = node->slots[radix_pos(index, height--)]; in radix_tree_lookup() 156 item = node->slots[radix_pos(index, 0)]; in radix_tree_lookup() 240 *pppslot = node->slots + pos; in radix_tree_iter_find() 242 next = node->slots[pos]; in radix_tree_iter_find() 279 node = node->slots[radix_pos(index, height--)]; in radix_tree_delete() 284 item = node->slots[idx]; in radix_tree_delete() 295 node->slots[idx] = NULL; in radix_tree_delete() 368 node->slots[0] = root->rnode; in radix_tree_insert() 381 if (node->slots[idx] == NULL) in radix_tree_insert() 383 node = node->slots[idx]; in radix_tree_insert() [all …]
|
| /freebsd/sys/dev/ena/ |
| H A D | ena_netmap.c | 44 struct netmap_slot *slots; member 353 __builtin_prefetch(&ctx->slots[ctx->nm_i]); in ena_netmap_tx_frames() 470 uint16_t slots = 1; in ena_netmap_count_slots() local 473 while ((ctx->slots[nm].flags & NS_MOREFRAG) != 0) { in ena_netmap_count_slots() 474 slots++; in ena_netmap_count_slots() 478 return slots; in ena_netmap_count_slots() 482 ena_netmap_packet_len(struct netmap_slot *slots, u_int slot_index, in ena_netmap_packet_len() argument 489 nm_slot = &slots[slot_index]; in ena_netmap_packet_len() 498 ena_netmap_copy_data(struct netmap_adapter *na, struct netmap_slot *slots, in ena_netmap_copy_data() argument 506 nm_slot = &slots[slot_index]; in ena_netmap_copy_data() [all …]
|
| /freebsd/sys/dev/evdev/ |
| H A D | evdev_mt.c | 91 union evdev_mt_slot slots[]; member 100 ffc_slot(struct evdev_dev *evdev, slotset_t slots) in ffc_slot() argument 102 return (ffs(~slots & ((2U << MAXIMAL_MT_SLOT(evdev)) - 1)) - 1); in ffc_slot() 109 size_t size = offsetof(struct evdev_mt, slots); in evdev_mt_init() 110 int slot, slots; in evdev_mt_init() local 122 slots = MAXIMAL_MT_SLOT(evdev) + 1; in evdev_mt_init() 123 size += sizeof(mt->slots[0]) * slots; in evdev_mt_init() 125 size += sizeof(mt->match_slots[0]) * slots; in evdev_mt_init() 126 size += sizeof(mt->matrix[0]) * (slots + 6) * slots; in evdev_mt_init() 134 mt->match_slots = mt->slots + slots; in evdev_mt_init() [all …]
|
| /freebsd/crypto/openssl/ssl/quic/ |
| H A D | quic_reactor_wait_ctx.c | 24 ossl_list_quic_reactor_wait_slot_init(&ctx->slots); in ossl_quic_reactor_wait_ctx_init() 48 OSSL_LIST_FOREACH(slot, quic_reactor_wait_slot, &ctx->slots) in ossl_quic_reactor_wait_ctx_enter() 57 ossl_list_quic_reactor_wait_slot_insert_tail(&ctx->slots, slot); in ossl_quic_reactor_wait_ctx_enter() 69 OSSL_LIST_FOREACH(slot, quic_reactor_wait_slot, &ctx->slots) in ossl_quic_reactor_wait_ctx_leave() 81 OSSL_LIST_FOREACH_DELSAFE(slot, nslot, quic_reactor_wait_slot, &ctx->slots) in ossl_quic_reactor_wait_ctx_cleanup()
|
| /freebsd/sys/dev/sdhci/ |
| H A D | sdhci_pci.c | 163 struct sdhci_slot slots[6]; member 336 int bar, err, rid, slots, i; in sdhci_pci_attach() local 357 slots = pci_read_config(dev, PCI_SLOT_INFO, 1); in sdhci_pci_attach() 358 bar = PCI_SLOT_INFO_FIRST_BAR(slots); in sdhci_pci_attach() 359 slots = PCI_SLOT_INFO_SLOTS(slots); in sdhci_pci_attach() 360 if (slots > 6 || bar > 5) { in sdhci_pci_attach() 362 slots, bar); in sdhci_pci_attach() 378 for (i = 0; i < slots; i++) { in sdhci_pci_attach() 379 slot = &sc->slots[sc->num_slots]; in sdhci_pci_attach() 407 sdhci_start_slot(&sc->slots[i]); in sdhci_pci_attach() [all …]
|
| H A D | sdhci_fdt.c | 333 sdhci_generic_intr(&sc->slots[i]); in sdhci_fdt_intr() 382 int err, slots, rid, i; in sdhci_fdt_attach() local 417 slots = sc->num_slots; /* number of slots determined in probe(). */ in sdhci_fdt_attach() 419 for (i = 0; i < slots; i++) { in sdhci_fdt_attach() 420 slot = &sc->slots[sc->num_slots]; in sdhci_fdt_attach() 453 sdhci_start_slot(&sc->slots[i]); in sdhci_fdt_attach() 470 sdhci_cleanup_slot(&sc->slots[i]); in sdhci_fdt_detach()
|
| /freebsd/sys/dev/sound/macio/ |
| H A D | aoa.c | 63 u_int slots; /* # of slots */ member 79 dma->slots = dma->bufsz / dma->blksz; in aoa_dma_set_program() 81 for (i = 0; i < dma->slots; ++i) { in aoa_dma_set_program() 91 dma->slots + 1 /* branch_slot */ in aoa_dma_set_program() 98 dbdma_insert_branch(dma->channel, dma->slots, 0); in aoa_dma_set_program() 101 dbdma_insert_stop(dma->channel, dma->slots + 1); in aoa_dma_set_program() 293 for (i = 0; i < dma->slots; ++i) in aoa_chan_trigger() 329 dma->slot = (dma->slot + 1) % dma->slots; in aoa_interrupt()
|
| /freebsd/sys/contrib/openzfs/module/zfs/ |
| H A D | dnode.c | 1189 dnode_slots_hold(dnode_children_t *children, int idx, int slots) in dnode_slots_hold() argument 1191 ASSERT3S(idx + slots, <=, DNODES_PER_BLOCK); in dnode_slots_hold() 1193 for (int i = idx; i < idx + slots; i++) { in dnode_slots_hold() 1200 dnode_slots_rele(dnode_children_t *children, int idx, int slots) in dnode_slots_rele() argument 1202 ASSERT3S(idx + slots, <=, DNODES_PER_BLOCK); in dnode_slots_rele() 1204 for (int i = idx; i < idx + slots; i++) { in dnode_slots_rele() 1215 dnode_slots_tryenter(dnode_children_t *children, int idx, int slots) in dnode_slots_tryenter() argument 1217 ASSERT3S(idx + slots, <=, DNODES_PER_BLOCK); in dnode_slots_tryenter() 1219 for (int i = idx; i < idx + slots; i++) { in dnode_slots_tryenter() 1236 dnode_set_slots(dnode_children_t *children, int idx, int slots, void *ptr) in dnode_set_slots() argument [all …]
|
| /freebsd/contrib/libarchive/libarchive/ |
| H A D | archive_read_set_format.c | 39 int r1, r2, slots, i; in archive_read_set_format() local 102 slots = sizeof(a->formats) / sizeof(a->formats[0]); in archive_read_set_format() 104 for (i = 0; i < slots; i++, a->format++) { in archive_read_set_format()
|
| /freebsd/tests/sys/mac/bsdextended/ |
| H A D | ugidfw_test.c | 200 int count, slots; in main() local 243 slots = bsde_get_rule_slots(sizeof(errorstr), errorstr); in main() 244 if (slots == -1) in main()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | StackColoring.cpp | 489 SmallVector<int, 4> &slots, 582 SmallVector<int, 4> &slots, in isLifetimeStartOrEnd() argument 591 slots.push_back(Slot); in isLifetimeStartOrEnd() 610 slots.push_back(Slot); in isLifetimeStartOrEnd() 734 SmallVector<int, 4> slots; in collectMarkers() local 737 slots.clear(); in collectMarkers() 738 if (isLifetimeStartOrEnd(MI, slots, isStart)) { in collectMarkers() 740 assert(slots.size() == 1 && "unexpected: MI ends multiple slots"); in collectMarkers() 741 int Slot = slots[0]; in collectMarkers() 747 for (auto Slot : slots) { in collectMarkers() [all …]
|
| /freebsd/sys/netpfil/ipfw/ |
| H A D | dn_sched_qfq.c | 233 struct qfq_class *slots[QFQ_MAX_SLOTS]; member 442 cl->next = grp->slots[i]; in qfq_slot_insert() 443 grp->slots[i] = cl; in qfq_slot_insert() 453 struct qfq_class **h = &grp->slots[grp->front]; in qfq_front_slot_remove() 480 return grp->slots[grp->front]; in qfq_slot_scan() 565 cl = grp->slots[grp->front]; in qfq_dequeue() 725 pprev = &grp->slots[i]; 732 if (!grp->slots[i]) 776 } else if (!grp->slots[grp->front]) { 864 if (g->slots[j]) in dump_groups() [all …]
|
| /freebsd/contrib/ofed/libbnxtre/ |
| H A D | memory.h | 50 uint32_t slots; member 124 uint32_t slots) in bnxt_re_is_que_full() argument 133 return avail <= (slots + que->diff); in bnxt_re_is_que_full()
|
| H A D | verbs.c | 632 bnxt_re_incr_head(sq, swrid->slots); in bnxt_re_poll_err_scqe() 671 bnxt_re_incr_head(sq, swrid->slots); in bnxt_re_poll_success_scqe() 726 cnt = swque->slots; in bnxt_re_poll_err_rcqe() 795 cnt = swque->slots; in bnxt_re_poll_success_rcqe() 998 bnxt_re_incr_head(que, wrid->slots); in bnxt_re_poll_flush_wcs() 1208 uint32_t slots; in bnxt_re_get_rq_slots() local 1223 slots = (nrwr * wqe_size) / stride; in bnxt_re_get_rq_slots() 1224 return slots; in bnxt_re_get_rq_slots() 1239 uint32_t slots; in bnxt_re_get_sq_slots() local 1264 slots = (nswr * wqe_size) / stride; in bnxt_re_get_sq_slots() [all …]
|
| /freebsd/usr.sbin/ppp/ |
| H A D | ipcp.c | 106 u_char slots; member 387 ipcp->cfg.vj.slots, ipcp->cfg.vj.slotcomp ? "with" : "without"); in ipcp_Show() 427 int slots; in ipcp_vjset() local 429 slots = atoi(arg->argv[arg->argn+1]); in ipcp_vjset() 430 if (slots < 4 || slots > 16) in ipcp_vjset() 432 arg->bundle->ncp.ipcp.cfg.vj.slots = slots; in ipcp_vjset() 459 ipcp->cfg.vj.slots = DEF_VJ_STATES; in ipcp_Init() 587 ((ipcp->cfg.vj.slots - 1) << 8) + in ipcp_Setup() 591 sl_compress_init(&ipcp->vj.cslc, ipcp->cfg.vj.slots - 1); in ipcp_Setup() 782 req.slots = (ipcp->my_compproto >> 8) & 255; in IpcpSendConfigReq() [all …]
|
| /freebsd/contrib/kyua/drivers/ |
| H A D | run_tests.cpp | 279 const std::size_t slots = user_config.lookup< config::positive_int_node >( in drive() local 281 INV(slots >= 1); in drive() 283 INV(in_flight.size() <= slots); in drive() 288 while (in_flight.size() < slots) { in drive()
|
| /freebsd/sys/contrib/openzfs/cmd/zed/zed.d/ |
| H A D | vdev_clear-sync-led.sh | 33 if [ ! -d /sys/class/enclosure ] && [ ! -d /sys/bus/pci/slots ] ; then 147 find /sys/bus/pci/slots -regex '.*/[0-9]+/address$' | \
|
| H A D | vdev_attach-sync-led.sh | 33 if [ ! -d /sys/class/enclosure ] && [ ! -d /sys/bus/pci/slots ] ; then 147 find /sys/bus/pci/slots -regex '.*/[0-9]+/address$' | \
|
| H A D | statechange-sync-led.sh | 33 if [ ! -d /sys/class/enclosure ] && [ ! -d /sys/bus/pci/slots ] ; then 147 find /sys/bus/pci/slots -regex '.*/[0-9]+/address$' | \
|
| H A D | pool_import-sync-led.sh | 33 if [ ! -d /sys/class/enclosure ] && [ ! -d /sys/bus/pci/slots ] ; then 147 find /sys/bus/pci/slots -regex '.*/[0-9]+/address$' | \
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/XCore/ |
| H A D | XCoreCallingConv.td | 18 // Integer values get stored in stack slots that are 4 bytes in 36 // Integer values get stored in stack slots that are 4 bytes in
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/ARC/ |
| H A D | ARCCallingConv.td | 18 // Integer values get stored in stack slots that are 4 bytes in 34 // Integer values get stored in stack slots that are 4 bytes in
|