Home
last modified time | relevance | path

Searched refs:slots (Results 1 – 25 of 153) sorted by relevance

1234567

/freebsd/sys/contrib/ck/include/spinlock/
H A Danderson.h48 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/compat/linuxkpi/common/src/
H A Dlinux_radix.c79 node = node->slots[radix_pos(index, height--)]; in radix_tree_lookup()
81 item = node->slots[radix_pos(index, 0)]; in radix_tree_lookup()
109 *pppslot = node->slots + pos; in radix_tree_iter_find()
111 next = node->slots[pos]; in radix_tree_iter_find()
145 node = node->slots[radix_pos(index, height--)]; in radix_tree_delete()
149 item = node->slots[idx]; in radix_tree_delete()
155 node->slots[idx] = NULL; in radix_tree_delete()
228 node->slots[0] = root->rnode; in radix_tree_insert()
241 if (node->slots[idx] == NULL) in radix_tree_insert()
243 node = node->slots[idx]; in radix_tree_insert()
[all …]
/freebsd/sys/dev/sound/pci/
H A Dhdsp-pcm.c128 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 Dhdspe-pcm.c446 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/dev/ena/
H A Dena_netmap.c44 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 Devdev_mt.c91 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/sys/dev/sdhci/
H A Dsdhci_pci.c163 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 Dsdhci_fdt.c135 struct sdhci_slot slots[MAX_SLOTS]; member
430 sdhci_generic_intr(&sc->slots[i]); in sdhci_fdt_intr()
569 int err, slots, rid, i, compat; in sdhci_fdt_attach() local
621 slots = sc->num_slots; /* number of slots determined in probe(). */ in sdhci_fdt_attach()
623 for (i = 0; i < slots; i++) { in sdhci_fdt_attach()
624 slot = &sc->slots[sc->num_slots]; in sdhci_fdt_attach()
658 sdhci_start_slot(&sc->slots[i]); in sdhci_fdt_attach()
675 sdhci_cleanup_slot(&sc->slots[i]); in sdhci_fdt_detach()
/freebsd/sys/dev/sound/macio/
H A Daoa.c63 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 Ddnode.c1187 dnode_slots_hold(dnode_children_t *children, int idx, int slots) in dnode_slots_hold() argument
1189 ASSERT3S(idx + slots, <=, DNODES_PER_BLOCK); in dnode_slots_hold()
1191 for (int i = idx; i < idx + slots; i++) { in dnode_slots_hold()
1198 dnode_slots_rele(dnode_children_t *children, int idx, int slots) in dnode_slots_rele() argument
1200 ASSERT3S(idx + slots, <=, DNODES_PER_BLOCK); in dnode_slots_rele()
1202 for (int i = idx; i < idx + slots; i++) { in dnode_slots_rele()
1213 dnode_slots_tryenter(dnode_children_t *children, int idx, int slots) in dnode_slots_tryenter() argument
1215 ASSERT3S(idx + slots, <=, DNODES_PER_BLOCK); in dnode_slots_tryenter()
1217 for (int i = idx; i < idx + slots; i++) { in dnode_slots_tryenter()
1234 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 Darchive_read_set_format.c39 int r1, r2, slots, i; in archive_read_set_format()
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()
40 int r1, r2, slots, i; archive_read_set_format() local
/freebsd/tests/sys/mac/bsdextended/
H A Dugidfw_test.c200 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 DStackColoring.cpp489 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 Ddn_sched_qfq.c233 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/usr.sbin/ppp/
H A Dipcp.c106 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 Drun_tests.cpp279 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 Dpool_import-led.sh33 if [ ! -d /sys/class/enclosure ] && [ ! -d /sys/bus/pci/slots ] ; then
147 find /sys/bus/pci/slots -regex '.*/[0-9]+/address$' | \
H A Dstatechange-led.sh33 if [ ! -d /sys/class/enclosure ] && [ ! -d /sys/bus/pci/slots ] ; then
147 find /sys/bus/pci/slots -regex '.*/[0-9]+/address$' | \
H A Dvdev_attach-led.sh33 if [ ! -d /sys/class/enclosure ] && [ ! -d /sys/bus/pci/slots ] ; then
147 find /sys/bus/pci/slots -regex '.*/[0-9]+/address$' | \
H A Dvdev_clear-led.sh33 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 DXCoreCallingConv.td18 // 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 DARCCallingConv.td18 // 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
/freebsd/sys/contrib/device-tree/Bindings/sound/
H A Dtdm-slot.txt6 dai-tdm-slot-num : Number of slots in use.
18 to specify an explicit mapping of the channels and the slots. If it's absent
H A Ddavinci-mcasp-audio.txt18 - tdm-slots : Slots for TDM operation. Indicates number of channels transmitted
34 - dismod : Specify the drive on TX pin during inactive slots
78 tdm-slots = <2>;
/freebsd/tools/tools/netmap/
H A Dlb.c111 struct netmap_slot *slots; member
139 q->slots[q->tail] = *s; in oq_enq()
149 struct netmap_slot s = q->slots[q->head]; in oq_deq()
766 freeq->slots = calloc(extra_bufs, sizeof(struct netmap_slot)); in main()
767 if (!freeq->slots) { in main()
841 q->slots = calloc(extra_bufs, sizeof(struct netmap_slot)); in main()
842 if (!q->slots) { in main()
858 free(oq[i].slots); in main()
859 oq[i].slots = NULL; in main()

1234567