/openbsd/usr.sbin/mopd/mopd/ |
H A D | process.c | 159 int i, slot; in mopStartLoad() local 164 slot = -1; in mopStartLoad() 170 slot = i; in mopStartLoad() 175 slot = i; in mopStartLoad() 190 dllist[slot].nloadaddr = dllist[slot].loadaddr; in mopStartLoad() 200 dllist[slot].dl_bsz = dllist[slot].dl_bsz - 8; in mopStartLoad() 211 dllist[slot].nloadaddr = dllist[slot].loadaddr + len; in mopStartLoad() 243 slot = -1; in mopNextLoad() 248 slot = i; in mopNextLoad() 256 dllist[slot].loadaddr = dllist[slot].nloadaddr; in mopNextLoad() [all …]
|
/openbsd/sys/arch/hppa/gsc/ |
H A D | gsckbc.c | 461 pckbc_slot_t slot; 481 pckbc_slot_t slot; 505 pckbc_slot_t slot; 512 pa.pa_slot = slot; 557 pckbc_slot_t slot; 567 pckbc_slot_t slot; 595 pckbc_slot_t slot; 604 pckbc_slot_t slot; 635 pckbc_slot_t slot; 709 pckbc_slot_t slot; [all …]
|
/openbsd/usr.bin/sndiod/ |
H A D | dev.h | 56 struct slot { struct 145 struct slot *slot; member 148 struct slot *slot; member 336 void slot_log(struct slot *); 339 void slot_del(struct slot *); 342 void slot_start(struct slot *); 344 void slot_read(struct slot *); 345 void slot_write(struct slot *); 346 void slot_initconv(struct slot *); 347 void slot_attach(struct slot *); [all …]
|
/openbsd/sys/arch/alpha/tc/ |
H A D | tc_3000_500.c | 208 #define INTRLOCK(slot) \ argument 211 #define INTRUNLOCK(slot) \ argument 215 #define INTRLOCK(slot) do { } while (0) argument 218 #define CHECKINTR(slot) \ argument 221 INTRLOCK(slot); \ 225 INTRUNLOCK(slot); \ 309 tc_3000_500_ioslot(slot, flags, set) in tc_3000_500_ioslot() argument 310 u_int32_t slot, flags; in tc_3000_500_ioslot() 319 flags <<= (slot * 3); 334 int slot; in tc_3000_500_activate() local [all …]
|
H A D | tc_3000_300.c | 222 #define INTRLOCK(slot) \ argument 223 if (tc_3000_300_intr[slot].tci_level < IPL_CLOCK) \ 225 #define INTRUNLOCK(slot) \ argument 229 #define INTRLOCK(slot) do { } while (0) argument 230 #define INTRUNLOCK(slot) do { } while (0) argument 232 #define CHECKINTR(slot, flag) \ argument 235 INTRLOCK(slot); \ 236 (*tc_3000_300_intr[slot].tci_func) \ 237 (tc_3000_300_intr[slot].tci_arg); \ 238 tc_3000_300_intr[slot].tci_count.ec_count++; \ [all …]
|
/openbsd/sys/dev/ic/ |
H A D | pckbc.c | 272 pa.pa_slot = slot; in pckbc_attach_slot() 276 if ((found || slot == PCKBC_AUX_SLOT) && !t->t_slotdata[slot]) { in pckbc_attach_slot() 492 slot, t->t_haveaux); in pckbc_flush() 889 pckbc_start(t, slot); in pckbc_cmdresponse() 937 pckbc_start(t, slot); in pckbc_enqueue_cmd() 977 if (slot >= PCKBC_NSLOTS) in pckbc_set_inputhandler() 981 sc->inputarg[slot] = arg; in pckbc_set_inputhandler() 982 sc->subname[slot] = name; in pckbc_set_inputhandler() 1012 pckbc_slot_t slot; in pckbcintr_internal() local 1052 (*sc->inputhandler[slot])(sc->inputarg[slot], in pckbcintr_internal() [all …]
|
H A D | ufshci.c | 576 utrd += slot; in ufshci_utr_cmd_nop() 597 ucd += slot; in ufshci_utr_cmd_nop() 690 ucd += slot; in ufshci_utr_cmd_lun() 800 ucd += slot; in ufshci_utr_cmd_inquiry() 871 return slot; in ufshci_utr_cmd_inquiry() 908 ucd += slot; in ufshci_utr_cmd_capacity16() 983 return slot; in ufshci_utr_cmd_capacity16() 1020 ucd += slot; in ufshci_utr_cmd_capacity() 1094 return slot; in ufshci_utr_cmd_capacity() 1136 ucd += slot; in ufshci_utr_cmd_io() [all …]
|
/openbsd/gnu/llvm/compiler-rt/lib/tsan/rtl/ |
H A D | tsan_rtl.cpp | 246 for (auto& slot : ctx->slots) slot.mtx.Unlock(); in DoReset() local 260 if (slot) { in FindSlotAndLock() 269 if (!slot) in FindSlotAndLock() 277 if (!slot) { in FindSlotAndLock() 287 slot->SetEpoch(slot->thr->fast_state.epoch()); in FindSlotAndLock() 291 return slot; in FindSlotAndLock() 301 thr->slot = slot; in SlotAttachAndLock() 320 TidSlot* slot = thr->slot; in SlotDetachImpl() local 365 TidSlot* slot = thr->slot; in SlotLock() local 812 for (auto& slot : ctx->slots) slot.mtx.Lock(); in ForkBefore() local [all …]
|
/openbsd/sys/arch/alpha/alpha/ |
H A D | db_trace.c | 178 u_long *slot[32]; in db_stack_trace_print() local 180 bzero(slot, sizeof(slot)); in db_stack_trace_print() 192 slot[i] = ®s->tf_regs[0] + in db_stack_trace_print() 229 slot[rega(inst)] = in db_stack_trace_print() 236 slot[rega(inst)] = slot[regc(inst)]; in db_stack_trace_print() 237 slot[regc(inst)] = 0; in db_stack_trace_print() 244 slot[rega(inst)] = 0; in db_stack_trace_print() 247 slot[regc(inst)] = 0; in db_stack_trace_print() 264 if (slot[16 + i]) in db_stack_trace_print() 300 if (slot[26]) in db_stack_trace_print() [all …]
|
/openbsd/sys/uvm/ |
H A D | uvm_amap.c | 482 int slot; in amap_wipeout() local 503 slot = i - 1; in amap_wipeout() 741 int slot; in amap_cow_now() local 757 slot = i - 1; in amap_cow_now() 1154 int slot; in amap_lookup() local 1188 for (i = 0, lcv = slot; lcv < slot + npages; i += n, lcv += n) { in amap_lookups() 1211 int slot; in amap_populate() local 1233 int slot; in amap_add() local 1245 slot = UVM_AMAP_SLOTIDX(slot); in amap_add() 1278 int slot; in amap_unadd() local [all …]
|
/openbsd/sys/scsi/ |
H A D | ses.c | 148 struct ses_slot *slot; in ses_attach() local 197 free(slot, M_DEVBUF, sizeof(*slot)); in ses_attach() 218 struct ses_slot *slot; in ses_detach() local 229 free(slot, M_DEVBUF, sizeof(*slot)); in ses_detach() 443 slot = malloc(sizeof(*slot), M_DEVBUF, in ses_make_sensors() 445 if (slot == NULL) in ses_make_sensors() 499 free(slot, M_DEVBUF, sizeof(*slot)); in ses_make_sensors() 646 if (slot == NULL) { in ses_bio_blink() 652 slot->sl_stat->com, slot->sl_stat->f1, slot->sl_stat->f2, in ses_bio_blink() 653 slot->sl_stat->f3); in ses_bio_blink() [all …]
|
/openbsd/sys/dev/pv/ |
H A D | if_vio.c | 829 int slot, r; in vio_start() local 874 virtio_enqueue(vq, slot, sc->sc_tx_dmamaps[slot], 1); in vio_start() 1019 int slot; in vio_populate_rx_mbufs() local 1041 virtio_enqueue(vq, slot, sc->sc_rx_dmamaps[slot], 0); in vio_populate_rx_mbufs() 1048 virtio_enqueue_p(vq, slot, sc->sc_rx_dmamaps[slot], in vio_populate_rx_mbufs() 1050 virtio_enqueue_p(vq, slot, sc->sc_rx_dmamaps[slot], in vio_populate_rx_mbufs() 1098 int slot, len, bufs_left; in vio_rxeof() local 1238 int slot, len; in vio_txeof() local 1320 int r, slot; in vio_ctrl_rx() local 1421 int r = 0, ret, slot; in vio_ctrleof() local [all …]
|
H A D | virtio.c | 585 s = slot; in virtio_enqueue_reserve() 683 if (slot < 0) in virtio_enqueue_commit() 686 qe1 = &vq->vq_entries[slot]; in virtio_enqueue_commit() 728 s = slot; in virtio_enqueue_abort() 761 slot = 0; in virtio_enqueue_trim() 766 slot++; in virtio_enqueue_trim() 768 vd[slot].flags = 0; in virtio_enqueue_trim() 782 uint16_t slot, usedidx; in virtio_dequeue() local 792 qe = &vq->vq_entries[slot]; in virtio_dequeue() 798 *slotp = slot; in virtio_dequeue() [all …]
|
H A D | viocon.c | 307 int ndone = 0, len, slot; in viocon_tx_drain() local 314 virtio_dequeue_commit(vq, slot); in viocon_tx_drain() 345 int r, slot, ndone = 0; in viocon_rx_fill() local 352 virtio_enqueue_p(vq, slot, vp->vp_dmamap, slot * BUFSIZE, in viocon_rx_fill() 354 virtio_enqueue_commit(vsc, vq, slot, 0); in viocon_rx_fill() 381 int slot, len, i; in viocon_rx_soft() local 387 p = vp->vp_rx_buf + slot * BUFSIZE; in viocon_rx_soft() 390 virtio_dequeue_commit(vq, slot); in viocon_rx_soft() 406 int s, cnt, slot, ret, ndone; in vioconstart() local 428 ret = virtio_enqueue_prep(vq, &slot); in vioconstart() [all …]
|
H A D | vioscsi.c | 186 int slot = vr->vr_qe_index; in vioscsi_scsi_cmd() local 234 virtio_enqueue_trim(vq, slot, nsegs); in vioscsi_scsi_cmd() 349 int r, s, slot; in vioscsi_vq_done() local 357 qe = &vq->vq_entries[slot]; in vioscsi_vq_done() 423 int i, r, nreqs, rsegs, slot; in vioscsi_alloc_reqs() local 455 r = virtio_enqueue_prep(vq, &slot); in vioscsi_alloc_reqs() 466 vd = &vq->vq_desc[slot]; in vioscsi_alloc_reqs() 469 r, vd[r].next, (slot + r + 1)); in vioscsi_alloc_reqs() 470 if (vd[r].next != (slot + r + 1)) in vioscsi_alloc_reqs() 478 vr->vr_qe_index = slot; in vioscsi_alloc_reqs() [all …]
|
/openbsd/gnu/gcc/gcc/ |
H A D | ggc-common.c | 95 (*r->cb) (*slot); in ggc_htab_delete() 267 if (*slot != NULL) in gt_pch_note_object() 275 (*slot)->obj = obj; in gt_pch_note_object() 282 (*slot)->type = type; in gt_pch_note_object() 853 if (*slot) in loc_descriptor() 854 return *slot; in loc_descriptor() 855 *slot = xcalloc (sizeof (**slot), 1); in loc_descriptor() 859 return *slot; in loc_descriptor() 869 PTR *slot; in ggc_record_overhead() local 877 gcc_assert (!*slot); in ggc_record_overhead() [all …]
|
H A D | varray.c | 67 struct varray_descriptor **slot; in varray_descriptor() local 72 slot = (struct varray_descriptor **) in varray_descriptor() 76 if (*slot) in varray_descriptor() 77 return *slot; in varray_descriptor() 78 *slot = xcalloc (sizeof (**slot), 1); in varray_descriptor() 79 (*slot)->name = name; in varray_descriptor() 80 return *slot; in varray_descriptor() 226 print_statistics (void **slot, void *b) in print_statistics() argument 228 struct varray_descriptor *d = (struct varray_descriptor *) *slot; in print_statistics()
|
H A D | cgraph.c | 212 if (*slot) in cgraph_node() 222 *slot = node; in cgraph_node() 243 *slot = node; in cgraph_insert_node_to_hashtable() 345 *slot = e2; in cgraph_edge() 364 void **slot; in cgraph_set_call_stmt() local 370 *slot = e; in cgraph_set_call_stmt() 419 void **slot; in cgraph_create_edge() local 531 void **slot; in cgraph_remove_node() local 855 if (*slot) in cgraph_varpool_node() 856 return *slot; in cgraph_varpool_node() [all …]
|
/openbsd/sys/arch/amd64/amd64/ |
H A D | intr.c | 173 int start, slot, i; in intr_allocate_slot_cpu() local 177 slot = -1; in intr_allocate_slot_cpu() 182 slot = i; in intr_allocate_slot_cpu() 190 slot = i; in intr_allocate_slot_cpu() 194 slot = i; in intr_allocate_slot_cpu() 198 if (slot == -1) { in intr_allocate_slot_cpu() 214 *index = slot; in intr_allocate_slot_cpu() 241 for (slot = 0 ; slot < MAX_INTR_SOURCES ; slot++) { 248 slot = legacy_irq; 328 *index = slot; [all …]
|
/openbsd/sys/dev/tc/ |
H A D | tcds.c | 339 int slot; 349 sc->sc_slots[slot].sc_intrhand = func; 350 sc->sc_slots[slot].sc_intrarg = arg; 353 tcds_scsi_reset(&sc->sc_slots[slot]); 357 tcds_intr_disestablish(tcds, slot) in tcds_intr_disestablish() argument 359 int slot; 365 slot); 368 sc->sc_slots[slot].sc_intrarg = (void *)(u_long)slot; 371 tcds_dma_enable(&sc->sc_slots[slot], 0); 372 tcds_scsi_enable(&sc->sc_slots[slot], 0); [all …]
|
/openbsd/lib/libc/rpc/ |
H A D | svc.c | 134 int slot; in svc_fd_insert() local 158 for (slot = svc_used_pollfd; slot < svc_pollfd_size; slot++) { in svc_fd_insert() 159 svc_pollfd[slot].fd = -1; in svc_fd_insert() 160 svc_pollfd[slot].events = svc_pollfd[slot].revents = 0; in svc_fd_insert() 162 slot = svc_used_pollfd; in svc_fd_insert() 168 slot = svc_used_pollfd; in svc_fd_insert() 187 svc_pollfd[slot].fd = sock; in svc_fd_insert() 191 svc_max_pollfd = slot + 1; in svc_fd_insert() 209 int slot; in svc_fd_remove() local 214 for (slot = 0; slot < svc_max_pollfd; slot++) { in svc_fd_remove() [all …]
|
/openbsd/sys/ufs/ufs/ |
H A D | ufs_dirhash.c | 223 slot = WRAPINCR(slot, dh->dh_hlen); in ufsdirhash_build() 318 int i, slot; in ufsdirhash_lookup() local 386 slot = i; in ufsdirhash_lookup() 392 slot = WRAPINCR(slot, dh->dh_hlen)) { in ufsdirhash_lookup() 597 int slot; in ufsdirhash_add() local 623 slot = WRAPINCR(slot, dh->dh_hlen); in ufsdirhash_add() 642 int slot; in ufsdirhash_remove() local 675 int slot; in ufsdirhash_move() local 910 int slot; in ufsdirhash_findslot() local 919 slot = WRAPINCR(slot, dh->dh_hlen); in ufsdirhash_findslot() [all …]
|
/openbsd/gnu/llvm/lldb/source/Plugins/Process/Windows/Common/ |
H A D | RegisterContextWindows.cpp | 76 bool RegisterContextWindows::AddHardwareBreakpoint(uint32_t slot, in AddHardwareBreakpoint() argument 80 if (slot >= NUM_HARDWARE_BREAKPOINT_SLOTS) in AddHardwareBreakpoint() 99 unsigned shift = 2 * slot; in AddHardwareBreakpoint() 102 (&m_context.Dr0)[slot] = address; in AddHardwareBreakpoint() 104 shift = 18 + 4 * slot; in AddHardwareBreakpoint() 108 shift = 16 + 4 * slot; in AddHardwareBreakpoint() 121 bool RegisterContextWindows::RemoveHardwareBreakpoint(uint32_t slot) { in RemoveHardwareBreakpoint() argument 122 if (slot >= NUM_HARDWARE_BREAKPOINT_SLOTS) in RemoveHardwareBreakpoint() 129 unsigned shift = 2 * slot; in RemoveHardwareBreakpoint()
|
/openbsd/gnu/lib/libiberty/src/ |
H A D | hashtab.c | 443 return slot; in find_empty_slot_for_expand() 456 return slot; in find_empty_slot_for_expand() 679 PTR *slot; in htab_remove_elt_with_hash() local 686 (*htab->del_f) (*slot); in htab_remove_elt_with_hash() 699 if (slot < htab->entries || slot >= htab->entries + htab_size (htab) in htab_clear_slot() 700 || *slot == HTAB_EMPTY_ENTRY || *slot == HTAB_DELETED_ENTRY) in htab_clear_slot() 704 (*htab->del_f) (*slot); in htab_clear_slot() 718 PTR *slot; in htab_traverse_noresize() local 721 slot = htab->entries; in htab_traverse_noresize() 726 PTR x = *slot; in htab_traverse_noresize() [all …]
|
/openbsd/usr.bin/mandoc/ |
H A D | mandoc_xr.c | 40 unsigned int slot; in mandoc_xr_clear() local 44 for (xr = ohash_first(xr_hash, &slot); xr != NULL; in mandoc_xr_clear() 45 xr = ohash_next(xr_hash, &slot)) in mandoc_xr_clear() 68 unsigned int slot; in mandoc_xr_add() local 90 slot = ohash_lookup_memory(xr_hash, xr->hashkey, tsz, hv); in mandoc_xr_add() 91 if ((oxr = ohash_find(xr_hash, slot)) == NULL) { in mandoc_xr_add() 92 ohash_insert(xr_hash, slot, xr); in mandoc_xr_add()
|