/freebsd/usr.bin/xargs/ |
H A D | xargs.c | 718 int slot; in pids_add() local 720 slot = findfreeslot(); in pids_add() 721 childpids[slot] = pid; in pids_add() 728 int slot; in pids_remove() local 733 clearslot(slot); in pids_remove() 741 int slot; in findfreeslot() local 745 return (slot); in findfreeslot() 751 int slot; in findslot() local 753 for (slot = 0; slot < maxprocs; slot++) in findslot() 755 return (slot); in findslot() [all …]
|
/freebsd/usr.sbin/bhyve/ |
H A D | pci_xhci.c | 583 assert(slot > 0 && slot <= XHCI_MAX_DEVS); in pci_xhci_get_dev_ctx() 830 *slot = i; in pci_xhci_cmd_enable_slot() 1027 slot)); in pci_xhci_cmd_config_ep() 1376 uint32_t slot; in pci_xhci_complete_commands() local 1405 slot = 0; in pci_xhci_complete_commands() 1917 if (slot == 0 || slot > XHCI_MAX_SLOTS) { in pci_xhci_device_doorbell() 2688 int slot; in pci_xhci_legacy_config() local 2694 slot = 1; in pci_xhci_legacy_config() 2705 slot++; in pci_xhci_legacy_config() 2729 long slot; in pci_xhci_parse_devices() local [all …]
|
/freebsd/contrib/lib9p/ |
H A D | hashtable.c | 142 ssize_t slot = hash % h->ht_nentries; in ht_remove_locked() local 144 entry = &h->ht_entries[slot]; in ht_remove_locked() 176 ssize_t slot; in ht_iter_advance() local 186 slot = iter->htit_slot; in ht_iter_advance() 187 while (++slot < h->ht_nentries) { in ht_iter_advance() 188 next = TAILQ_FIRST(&h->ht_entries[slot].hte_items); in ht_iter_advance() 192 iter->htit_slot = slot; in ht_iter_advance() 207 ssize_t slot; in ht_remove_at_iter() local 219 slot = iter->htit_slot; in ht_remove_at_iter() 221 TAILQ_REMOVE(&h->ht_entries[slot].hte_items, item, hti_link); in ht_remove_at_iter()
|
/freebsd/sys/dev/pci/ |
H A D | pcib_support.c | 58 uint8_t bus, slot, func; in pcib_get_id() local 67 slot = pci_get_slot(dev); in pcib_get_id() 70 *id = (PCI_RID(bus, slot, func)); in pcib_get_id() 75 pcib_decode_rid(device_t pcib, uint16_t rid, int *bus, int *slot, in pcib_decode_rid() argument 80 *slot = PCI_RID2SLOT(rid); in pcib_decode_rid()
|
/freebsd/sys/dev/sdhci/ |
H A D | sdhci.h | 425 int sdhci_init_slot(device_t dev, struct sdhci_slot *slot, int num); 426 void sdhci_start_slot(struct sdhci_slot *slot); 428 void sdhci_finish_data(struct sdhci_slot *slot); 429 int sdhci_cleanup_slot(struct sdhci_slot *slot); 430 int sdhci_generic_suspend(struct sdhci_slot *slot); 431 int sdhci_generic_resume(struct sdhci_slot *slot); 442 void sdhci_generic_intr(struct sdhci_slot *slot); 443 uint32_t sdhci_generic_min_freq(device_t brdev, struct sdhci_slot *slot); 444 bool sdhci_generic_get_card_present(device_t brdev, struct sdhci_slot *slot); 445 void sdhci_generic_set_uhs_timing(device_t brdev, struct sdhci_slot *slot); [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/mmc/ |
H A D | mmc-spi-slot.txt | 1 MMC/SD/SDIO slot directly connected to a SPI bus 11 slot voltage (mV), second cell specifies maximum slot voltage (mV). 19 mmc-slot@0 { 20 compatible = "fsl,mpc8323rdb-mmc-slot", 21 "mmc-spi-slot";
|
H A D | cavium-mmc.txt | 15 mmc-slot 29 - cavium,octeon-6130-mmc-slot : use mmc-slot instead 39 mmc-slot@0 { 40 compatible = "mmc-slot"; 48 mmc-slot@1 { 49 compatible = "mmc-slot";
|
/freebsd/sys/contrib/device-tree/src/powerpc/fsl/ |
H A D | mpc8641_hpcn.dts | 167 /* IDSEL 0x11 func 0 - PCI slot 1 */ 173 /* IDSEL 0x11 func 1 - PCI slot 1 */ 179 /* IDSEL 0x11 func 2 - PCI slot 1 */ 185 /* IDSEL 0x11 func 3 - PCI slot 1 */ 191 /* IDSEL 0x11 func 4 - PCI slot 1 */ 197 /* IDSEL 0x11 func 5 - PCI slot 1 */ 203 /* IDSEL 0x11 func 6 - PCI slot 1 */ 209 /* IDSEL 0x11 func 7 - PCI slot 1 */ 215 /* IDSEL 0x12 func 0 - PCI slot 2 */ 221 /* IDSEL 0x12 func 1 - PCI slot 2 */ [all …]
|
/freebsd/sys/contrib/device-tree/src/arm/intel/ixp/ |
H A D | intel-ixp42x-netgear-wg302v1.dts | 68 <0x0800 0 0 1 &gpio0 8 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 1 is irq 8 */ 69 <0x0800 0 0 2 &gpio0 8 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 1 is irq 8 */ 70 <0x0800 0 0 3 &gpio0 8 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 1 is irq 8 */ 71 <0x0800 0 0 4 &gpio0 8 IRQ_TYPE_LEVEL_LOW>, /* INT D on slot 1 is irq 8 */ 73 <0x1000 0 0 1 &gpio0 9 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 2 is irq 9 */ 74 <0x1000 0 0 2 &gpio0 9 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 2 is irq 9 */ 75 <0x1000 0 0 3 &gpio0 9 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 2 is irq 9 */ 76 <0x1000 0 0 4 &gpio0 9 IRQ_TYPE_LEVEL_LOW>; /* INT D on slot 2 is irq 9 */
|
H A D | intel-ixp42x-gateway-7001.dts | 67 <0x0800 0 0 1 &gpio0 11 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 1 is irq 11 */ 68 <0x0800 0 0 2 &gpio0 11 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 1 is irq 11 */ 69 <0x0800 0 0 3 &gpio0 11 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 1 is irq 11 */ 70 <0x0800 0 0 4 &gpio0 11 IRQ_TYPE_LEVEL_LOW>, /* INT D on slot 1 is irq 11 */ 72 <0x1000 0 0 1 &gpio0 10 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 2 is irq 10 */ 73 <0x1000 0 0 2 &gpio0 10 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 2 is irq 10 */ 74 <0x1000 0 0 3 &gpio0 10 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 2 is irq 10 */ 75 <0x1000 0 0 4 &gpio0 10 IRQ_TYPE_LEVEL_LOW>; /* INT D on slot 2 is irq 10 */
|
H A D | intel-ixp42x-freecom-fsg-3.dts | 172 <0x6000 0 0 1 &gpio0 5 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 12 is irq 5 */ 173 <0x6000 0 0 2 &gpio0 5 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 12 is irq 5 */ 174 <0x6000 0 0 3 &gpio0 5 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 12 is irq 5 */ 175 <0x6000 0 0 4 &gpio0 5 IRQ_TYPE_LEVEL_LOW>, /* INT D on slot 12 is irq 5 */ 177 <0x6800 0 0 1 &gpio0 7 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 13 is irq 7 */ 178 <0x6800 0 0 2 &gpio0 7 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 13 is irq 7 */ 179 <0x6800 0 0 3 &gpio0 7 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 13 is irq 7 */ 180 <0x6800 0 0 4 &gpio0 7 IRQ_TYPE_LEVEL_LOW>, /* INT D on slot 13 is irq 7 */ 182 <0x7000 0 0 1 &gpio0 6 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 14 is irq 6 */ 183 <0x7000 0 0 2 &gpio0 6 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 14 is irq 6 */ [all …]
|
H A D | intel-ixp42x-adi-coyote.dts | 70 <0x0800 0 0 1 &gpio0 6 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 1 is irq 6 */ 71 <0x0800 0 0 2 &gpio0 6 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 1 is irq 6 */ 72 <0x0800 0 0 3 &gpio0 6 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 1 is irq 6 */ 73 <0x0800 0 0 4 &gpio0 6 IRQ_TYPE_LEVEL_LOW>, /* INT D on slot 1 is irq 6 */ 75 <0x1000 0 0 1 &gpio0 11 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 2 is irq 11 */ 76 <0x1000 0 0 2 &gpio0 11 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 2 is irq 11 */ 77 <0x1000 0 0 3 &gpio0 11 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 2 is irq 11 */ 78 <0x1000 0 0 4 &gpio0 11 IRQ_TYPE_LEVEL_LOW>; /* INT D on slot 2 is irq 11 */
|
/freebsd/sys/powerpc/powermac/ |
H A D | uninorthpci.c | 177 uninorth_read_config(device_t dev, u_int bus, u_int slot, u_int func, u_int reg, in uninorth_read_config() argument 189 if (uninorth_enable_config(sc, bus, slot, func, reg) != 0) { in uninorth_read_config() 208 uninorth_write_config(device_t dev, u_int bus, u_int slot, u_int func, in uninorth_write_config() argument 218 if (uninorth_enable_config(sc, bus, slot, func, reg)) { in uninorth_write_config() 235 uninorth_enable_config(struct uninorth_softc *sc, u_int bus, u_int slot, in uninorth_enable_config() argument 242 if (sc->sc_skipslot == slot) in uninorth_enable_config() 256 if (slot < 11) in uninorth_enable_config() 259 cfgval = (1 << slot) | (func << 8) | (reg & 0xfc); in uninorth_enable_config() 261 cfgval = (bus << 16) | (slot << 11) | (func << 8) | in uninorth_enable_config()
|
/freebsd/sys/powerpc/pseries/ |
H A D | mmu_phyp.c | 396 uint64_t slot, junk, k; in mphyp_pte_spillable_ident() local 404 slot = ptegbase + (i + j) % 8; in mphyp_pte_spillable_ident() 405 phyp_pft_hcall(H_READ, 0, slot, 0, 0, &pt.pte_hi, in mphyp_pte_spillable_ident() 412 k = slot; in mphyp_pte_spillable_ident() 439 pvo->pvo_pte.slot &= ~7UL; /* Base slot address */ in mphyp_pte_insert_locked() 443 pvo->pvo_pte.slot = index; in mphyp_pte_insert_locked() 455 pvo->pvo_pte.slot ^= (moea64_pteg_mask << 3); in mphyp_pte_insert_locked() 457 result = phyp_pft_hcall(H_ENTER, 0, pvo->pvo_pte.slot, in mphyp_pte_insert_locked() 460 pvo->pvo_pte.slot = index; in mphyp_pte_insert_locked() 484 pvo->pvo_pte.slot ^= (moea64_pteg_mask << 3); in mphyp_pte_evict_and_insert_locked() [all …]
|
/freebsd/sys/powerpc/aim/ |
H A D | moea64_native.c | 823 uintptr_t slot; in moea64_pte_insert_locked() local 828 slot = moea64_insert_to_pteg_native(insertpt, pvo->pvo_pte.slot, in moea64_pte_insert_locked() 830 if (slot != -1) { in moea64_pte_insert_locked() 831 pvo->pvo_pte.slot = slot; in moea64_pte_insert_locked() 840 pvo->pvo_pte.slot ^= (moea64_pteg_mask << 3); in moea64_pte_insert_locked() 841 slot = moea64_insert_to_pteg_native(insertpt, pvo->pvo_pte.slot, in moea64_pte_insert_locked() 843 if (slot != -1) { in moea64_pte_insert_locked() 844 pvo->pvo_pte.slot = slot; in moea64_pte_insert_locked() 907 moea64_vpn_from_pte(uint64_t ptehi, uintptr_t slot) in moea64_vpn_from_pte() argument 913 slot ^= (moea64_pteg_mask << 3); in moea64_vpn_from_pte() [all …]
|
/freebsd/sys/contrib/ck/src/ |
H A D | ck_hs.c | 667 ck_pr_store_ptr(slot, CK_HS_TOMBSTONE); in ck_hs_fas() 669 ck_pr_store_ptr(slot, insert); in ck_hs_fas() 703 if (slot == NULL && first == NULL) { in ck_hs_apply() 720 ck_pr_store_ptr(slot, CK_HS_TOMBSTONE); in ck_hs_apply() 750 ck_pr_store_ptr(slot, insert); in ck_hs_apply() 775 if (slot == NULL && first == NULL) { in ck_hs_set() 805 ck_pr_store_ptr(slot, insert); in ck_hs_set() 831 if (slot == NULL && first == NULL) { in ck_hs_put_internal() 850 ck_pr_store_ptr(slot, insert); in ck_hs_put_internal() 907 const void **slot, **first, *object; in ck_hs_remove() local [all …]
|
/freebsd/sys/dev/pci/controller/ |
H A D | pci_n1sdp.c | 142 u_int bus, u_int slot, u_int func) in n1sdp_check_bdf() argument 148 bdf = PCIE_ADDR_OFFSET(bus, slot, func, 0); in n1sdp_check_bdf() 237 if (n1sdp_check_bdf(sc, bus, slot, func) == 0) in n1sdp_get_bus_space() 241 if (slot != 0 || func != 0) in n1sdp_get_bus_space() 249 *offset = PCIE_ADDR_OFFSET(bus - sc->acpi.base.bus_start, slot, func, in n1sdp_get_bus_space() 256 n1sdp_pcie_read_config(device_t dev, u_int bus, u_int slot, in n1sdp_pcie_read_config() argument 273 if ((slot > PCI_SLOTMAX) || (func > PCI_FUNCMAX) || in n1sdp_pcie_read_config() 277 if (n1sdp_get_bus_space(dev, bus, slot, func, reg, &t, &h, &offset) !=0) in n1sdp_pcie_read_config() 302 n1sdp_pcie_write_config(device_t dev, u_int bus, u_int slot, in n1sdp_pcie_write_config() argument 319 if ((slot > PCI_SLOTMAX) || (func > PCI_FUNCMAX) || in n1sdp_pcie_write_config() [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/sound/ |
H A D | tas2770.txt | 15 - ti,imon-slot-no:- TDM TX current sense time slot. 16 - ti,vmon-slot-no:- TDM TX voltage sense time slot. 34 ti,imon-slot-no = <0>; 35 ti,vmon-slot-no = <2>;
|
H A D | fsl,qmc-audio.yaml | 96 dai-tdm-slot-num = <4>; 97 dai-tdm-slot-width = <8>; 99 dai-tdm-slot-tx-mask = <0 0 0 1 0 1 0 1 0 1>; 100 dai-tdm-slot-rx-mask = <0 0 0 1 0 1 0 1 0 1>; 111 dai-tdm-slot-num = <4>; 112 dai-tdm-slot-width = <8>; 114 dai-tdm-slot-tx-mask = <0 0 1 0 1 0 1 0 1>; 115 dai-tdm-slot-rx-mask = <0 0 1 0 1 0 1 0 1>;
|
H A D | maxim,max98925.yaml | 28 vmon-slot-no: 35 will be used as interleave slot. 37 imon-slot-no: 68 vmon-slot-no: 72 imon-slot-no: 95 vmon-slot-no = <1>; 96 imon-slot-no = <0>;
|
/freebsd/sys/net/ |
H A D | netmap_user.h | 131 do { (slot)->ptr = ((slot)->ptr & ~(ring)->offset_mask) | \ 138 (NETMAP_BUF(ring, (slot)->buf_idx) + NETMAP_ROFFSET(ring, slot)) 252 struct netmap_slot *slot; member 1073 ring->slot[i].len = rem; in nm_inject() 1074 ring->slot[i].flags = 0; in nm_inject() 1112 struct netmap_slot *slot; in nm_dispatch() local 1117 slot = &ring->slot[i]; in nm_dispatch() 1118 idx = slot->buf_idx; in nm_dispatch() 1122 d->hdr.slot = slot; in nm_dispatch() 1130 slot = &ring->slot[i]; in nm_dispatch() [all …]
|
/freebsd/sys/arm/broadcom/bcm2835/ |
H A D | bcm2835_sdhost.c | 300 __func__, sc, slot); in bcm_sdhost_print_regs() 631 slot->data_done = 1; in bcm_sdhost_intr() 748 slot->data_done = 0; in bcm_sdhost_command() 760 slot->data_done = 1; in bcm_sdhost_command() 769 slot->data_done = 1; in bcm_sdhost_command() 782 __func__, slot->curcmd->flags, slot->data_done); in bcm_sdhost_command() 785 slot->curcmd->error = 0; in bcm_sdhost_command() 803 mtx_unlock(&slot->mtx); in bcm_sdhost_command() 804 sdhci_generic_intr(slot); in bcm_sdhost_command() 805 mtx_lock(&slot->mtx); in bcm_sdhost_command() [all …]
|
/freebsd/sys/amd64/vmm/io/ |
H A D | ppt.c | 122 int bus, slot, func; in ppt_probe() local 128 slot = pci_get_slot(dev); in ppt_probe() 138 else if (vmm_is_pptdev(bus, slot, func)) in ppt_probe() 210 if (bus == b && slot == s && func == f) in ppt_find() 404 error = ppt_find(vm, bus, slot, func, &ppt); in ppt_unassign_device() 423 int bus, slot, func; in ppt_unassign_all() local 430 slot = pci_get_slot(dev); in ppt_unassign_all() 432 vm_unassign_pptdev(vm, bus, slot, func); in ppt_unassign_all() 468 error = ppt_find(vm, bus, slot, func, &ppt); in ppt_map_mmio() 497 error = ppt_find(vm, bus, slot, func, &ppt); in ppt_unmap_mmio() [all …]
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/ObjectFile/ELF/ |
H A D | ELFHeader.cpp | 177 unsigned slot = 0; in GetRelocationJumpSlotType() local 184 slot = R_PPC_JMP_SLOT; in GetRelocationJumpSlotType() 187 slot = R_PPC64_JMP_SLOT; in GetRelocationJumpSlotType() 191 slot = R_386_JUMP_SLOT; in GetRelocationJumpSlotType() 197 slot = R_ARM_JUMP_SLOT; in GetRelocationJumpSlotType() 200 slot = R_HEX_JMP_SLOT; in GetRelocationJumpSlotType() 206 slot = R_MIPS_JUMP_SLOT; in GetRelocationJumpSlotType() 209 slot = R_390_JMP_SLOT; in GetRelocationJumpSlotType() 212 slot = R_RISCV_JUMP_SLOT; in GetRelocationJumpSlotType() 215 slot = R_LARCH_JUMP_SLOT; in GetRelocationJumpSlotType() [all …]
|
/freebsd/usr.sbin/mpsutil/ |
H A D | mps_slot.c | 45 MPS_TABLE(top, slot); 57 U16 slot; in slot_set() local 84 slot = x; in slot_set() 101 if (mps_set_slot_status(fd, htole16(handle), htole16(slot), in slot_set() 113 MPS_COMMAND(slot, set, slot_set, "status <enclosure handle> <slot number> "
|