| /dflybsd-src/contrib/bmake/ |
| H A D | FILES | 73 unit-tests/Makefile 74 unit-tests/Makefile.config.in 75 unit-tests/archive-suffix.exp 76 unit-tests/archive-suffix.mk 77 unit-tests/archive.exp 78 unit-tests/archive.mk 79 unit-tests/cmd-errors-jobs.exp 80 unit-tests/cmd-errors-jobs.mk 81 unit-tests/cmd-errors-lint.exp 82 unit-tests/cmd-errors-lint.mk [all …]
|
| /dflybsd-src/sys/netbt/ |
| H A D | hci_unit.c | 85 struct hci_unit *unit; in hci_attach() local 95 unit = kmalloc(sizeof(struct hci_unit), M_BLUETOOTH, M_ZERO | M_WAITOK); in hci_attach() 96 KKASSERT(unit != NULL); in hci_attach() 98 unit->hci_dev = dev; in hci_attach() 99 unit->hci_if = hci_if; in hci_attach() 100 unit->hci_flags = flags; in hci_attach() 102 lockinit(&unit->hci_devlock, "HCI device lock", 0, 0); in hci_attach() 104 unit->hci_eventq.ifq_maxlen = hci_eventq_max; in hci_attach() 105 unit->hci_aclrxq.ifq_maxlen = hci_aclrxq_max; in hci_attach() 106 unit->hci_scorxq.ifq_maxlen = hci_scorxq_max; in hci_attach() [all …]
|
| H A D | hci_event.c | 161 hci_event(struct mbuf *m, struct hci_unit *unit) in hci_event() argument 174 device_get_nameunit(unit->hci_dev), hci_eventstr(hdr.event)); in hci_event() 178 hci_event_command_status(unit, m); in hci_event() 182 hci_event_command_compl(unit, m); in hci_event() 186 hci_event_num_compl_pkts(unit, m); in hci_event() 190 hci_event_inquiry_result(unit, m); in hci_event() 194 hci_event_rssi_result(unit, m); in hci_event() 198 hci_event_con_compl(unit, m); in hci_event() 202 hci_event_discon_compl(unit, m); in hci_event() 206 hci_event_con_req(unit, m); in hci_event() [all …]
|
| H A D | hci_ioctl.c | 55 struct hci_unit *unit; in hci_dump() local 62 TAILQ_FOREACH(unit, &hci_unit_list, hci_next) { in hci_dump() 65 device_get_nameunit(unit->hci_dev), unit->hci_flags, in hci_dump() 66 unit->hci_num_cmd_pkts, in hci_dump() 67 unit->hci_num_acl_pkts, in hci_dump() 68 unit->hci_num_sco_pkts); in hci_dump() 69 TAILQ_FOREACH(link, &unit->hci_links, hl_next) { in hci_dump() 136 struct hci_unit *unit; in hci_ioctl() local 151 unit = hci_unit_lookup(&btr->btr_bdaddr); in hci_ioctl() 152 if (unit == NULL) in hci_ioctl() [all …]
|
| H A D | hci_misc.c | 57 struct hci_unit *unit; in hci_route_lookup() local 65 TAILQ_FOREACH(unit, &hci_unit_list, hci_next) { in hci_route_lookup() 66 if ((unit->hci_flags & BTF_UP) == 0) in hci_route_lookup() 69 TAILQ_FOREACH(link, &unit->hci_links, hl_next) { in hci_route_lookup() 82 TAILQ_FOREACH(unit, &hci_unit_list, hci_next) { in hci_route_lookup() 83 if ((unit->hci_flags & BTF_UP) == 0) in hci_route_lookup() 86 memo = hci_memo_find(unit, dest); in hci_route_lookup() 95 TAILQ_FOREACH(unit, &hci_unit_list, hci_next) { in hci_route_lookup() 96 if ((unit->hci_flags & BTF_UP) == 0) in hci_route_lookup() 105 bdaddr_copy(src, &unit->hci_bdaddr); in hci_route_lookup() [all …]
|
| /dflybsd-src/sys/netgraph7/bluetooth/hci/ |
| H A D | ng_hci_main.c | 112 ng_hci_unit_p unit = NULL; in ng_hci_constructor() local 114 unit = kmalloc(sizeof(*unit), M_NETGRAPH_HCI, in ng_hci_constructor() 116 if (unit == NULL) in ng_hci_constructor() 119 unit->node = node; in ng_hci_constructor() 120 unit->debug = NG_HCI_WARN_LEVEL; in ng_hci_constructor() 122 unit->link_policy_mask = 0xffff; /* Enable all supported modes */ in ng_hci_constructor() 123 unit->packet_mask = 0xffff; /* Enable all packet types */ in ng_hci_constructor() 124 unit->role_switch = 1; /* Enable role switch (if device supports it) */ in ng_hci_constructor() 134 NG_HCI_BUFF_CMD_SET(unit->buffer, 1); in ng_hci_constructor() 135 NG_HCI_BUFF_ACL_SET(unit->buffer, 1, 17, 1); in ng_hci_constructor() [all …]
|
| H A D | ng_hci_misc.c | 62 ng_hci_mtap(ng_hci_unit_p unit, struct mbuf *m0) in ng_hci_mtap() argument 67 if (unit->raw != NULL && NG_HOOK_IS_VALID(unit->raw)) { in ng_hci_mtap() 70 NG_SEND_DATA_ONLY(error, unit->raw, m); in ng_hci_mtap() 75 __func__, NG_NODE_NAME(unit->node), error); in ng_hci_mtap() 86 ng_hci_unit_p unit = NULL; in ng_hci_node_is_up() local 95 unit = (ng_hci_unit_p) NG_NODE_PRIVATE(node); in ng_hci_node_is_up() 96 if ((unit->state & NG_HCI_UNIT_READY) != NG_HCI_UNIT_READY) in ng_hci_node_is_up() 99 if (hook != unit->acl && hook != unit->sco) in ng_hci_node_is_up() 106 if (hook == unit->acl) { in ng_hci_node_is_up() 107 NG_HCI_BUFF_ACL_SIZE(unit->buffer, ep->pkt_size); in ng_hci_node_is_up() [all …]
|
| H A D | ng_hci_ulpi.c | 65 ng_hci_lp_con_req(ng_hci_unit_p unit, item_p item, hook_p hook) in ng_hci_lp_con_req() argument 67 if ((unit->state & NG_HCI_UNIT_READY) != NG_HCI_UNIT_READY) { in ng_hci_lp_con_req() 70 __func__, NG_NODE_NAME(unit->node), unit->state); in ng_hci_lp_con_req() 80 __func__, NG_NODE_NAME(unit->node), in ng_hci_lp_con_req() 89 return (ng_hci_lp_acl_con_req(unit, item, hook)); in ng_hci_lp_con_req() 91 if (hook != unit->sco) { in ng_hci_lp_con_req() 94 __func__, NG_NODE_NAME(unit->node), hook); in ng_hci_lp_con_req() 101 return (ng_hci_lp_sco_con_req(unit, item, hook)); in ng_hci_lp_con_req() 109 ng_hci_lp_acl_con_req(ng_hci_unit_p unit, item_p item, hook_p hook) in ng_hci_lp_acl_con_req() argument 150 con = ng_hci_con_by_bdaddr(unit, &ep->bdaddr, NG_HCI_LINK_ACL); in ng_hci_lp_acl_con_req() [all …]
|
| H A D | ng_hci_cmds.c | 85 ng_hci_send_command(ng_hci_unit_p unit) in ng_hci_send_command() argument 91 if (unit->state & NG_HCI_UNIT_COMMAND_PENDING) in ng_hci_send_command() 95 NG_HCI_BUFF_CMD_GET(unit->buffer, free); in ng_hci_send_command() 100 if (unit->drv == NULL || NG_HOOK_NOT_VALID(unit->drv)) { in ng_hci_send_command() 103 __func__, NG_NODE_NAME(unit->node), NG_HCI_HOOK_DRV); in ng_hci_send_command() 105 NG_BT_MBUFQ_DRAIN(&unit->cmdq); in ng_hci_send_command() 115 m0 = NG_BT_MBUFQ_FIRST(&unit->cmdq); in ng_hci_send_command() 119 ng_hci_mtap(unit, m0); in ng_hci_send_command() 123 NG_SEND_DATA_ONLY(error, unit->drv, m); in ng_hci_send_command() 130 __func__, NG_NODE_NAME(unit->node), error); in ng_hci_send_command() [all …]
|
| H A D | ng_hci_evnt.c | 87 ng_hci_process_event(ng_hci_unit_p unit, struct mbuf *event) in ng_hci_process_event() argument 101 __func__, NG_NODE_NAME(unit->node), hdr->event, hdr->length); in ng_hci_process_event() 128 error = inquiry_result(unit, event); in ng_hci_process_event() 132 error = con_compl(unit, event); in ng_hci_process_event() 136 error = con_req(unit, event); in ng_hci_process_event() 140 error = discon_compl(unit, event); in ng_hci_process_event() 144 error = encryption_change(unit, event); in ng_hci_process_event() 148 error = read_remote_features_compl(unit, event); in ng_hci_process_event() 152 error = qos_setup_compl(unit, event); in ng_hci_process_event() 156 error = ng_hci_process_command_complete(unit, event); in ng_hci_process_event() [all …]
|
| /dflybsd-src/sys/dev/video/bktr/ |
| H A D | bktr_mem.c | 89 bktr_has_stored_addresses(int unit) in bktr_has_stored_addresses() argument 92 if (unit < 0 || unit >= BKTR_MEM_MAX_DEVICES) { in bktr_has_stored_addresses() 93 kprintf("bktr_mem: Unit number %d invalid\n",unit); in bktr_has_stored_addresses() 97 return memory_list[unit].addresses_stored; in bktr_has_stored_addresses() 103 bktr_store_address(int unit, int type, vm_offset_t addr) in bktr_store_address() argument 106 if (unit < 0 || unit >= BKTR_MEM_MAX_DEVICES) { in bktr_store_address() 108 unit, type, (void *)addr); in bktr_store_address() 114 memory_list[unit].dma_prog = addr; in bktr_store_address() 115 memory_list[unit].addresses_stored = 1; in bktr_store_address() 118 memory_list[unit].odd_dma_prog = addr; in bktr_store_address() [all …]
|
| H A D | bktr_os.c | 204 unsigned int unit; in bktr_attach() local 212 unit = device_get_unit(dev); in bktr_attach() 215 ksnprintf(bktr->bktr_xname, sizeof(bktr->bktr_xname), "bktr%d",unit); in bktr_attach() 252 unit, (old_irq & 0xff), (new_irq & 0xff)); in bktr_attach() 304 kprintf("brooktree%d: PCI bus latency is", unit); in bktr_attach() 307 unit); in bktr_attach() 322 common_bktr_attach( bktr, unit, fun, rev ); in bktr_attach() 325 make_dev(&bktr_ops, unit, 0, 0, 0444, "bktr%d", unit); in bktr_attach() 326 make_dev(&bktr_ops, unit+16, 0, 0, 0444, "tuner%d", unit); in bktr_attach() 327 make_dev(&bktr_ops, unit+32, 0, 0, 0444, "vbi%d" , unit); in bktr_attach() [all …]
|
| /dflybsd-src/sys/net/ |
| H A D | if_clone.c | 64 int unit; in if_clone_create() local 69 if ((err = if_name2unit(name, &unit)) != 0) in if_clone_create() 72 wildcard = (unit < 0); in if_clone_create() 75 if ((err = if_clone_alloc_unit(ifc, &unit)) != 0) { in if_clone_create() 80 ksnprintf(ifname, IFNAMSIZ, "%s%d", ifc->ifc_name, unit); in if_clone_create() 87 if_clone_free_unit(ifc, unit); in if_clone_create() 92 err = if_clone_createif(ifc, unit, params, data); in if_clone_create() 94 if_clone_free_unit(ifc, unit); in if_clone_create() 108 int unit, error; in if_clone_destroy() local 119 unit = ifp->if_dunit; in if_clone_destroy() [all …]
|
| /dflybsd-src/usr.sbin/mlxcontrol/ |
| H A D | command.c | 185 status_print(int unit, void *arg) in status_print() argument 193 if (mlxd_find_ctrlr(unit, &ctrlr, &sysdrive)) { in status_print() 194 warnx("couldn't get controller/drive for %s", drivepath(unit)); in status_print() 215 if ((fd = open(drivepath(unit), 0)) < 0) { in status_print() 216 warn("can't open %s", drivepath(unit)); in status_print() 227 printf("%s: online", drivename(unit)); in status_print() 231 printf("%s: critical", drivename(unit)); in status_print() 237 printf("%s: offline", drivename(unit)); in status_print() 243 printf("%s: unknown status 0x%x", drivename(unit), result); in status_print() 368 controller_print(int unit, void *arg) in controller_print() argument [all …]
|
| H A D | interface.c | 45 mlx_foreach(void (*func)(int unit, void *arg), void *arg) in mlx_foreach() argument 65 mlx_perform(int unit, void (*func)(int fd, void *arg), void *arg) in mlx_perform() argument 69 if ((fd = open(ctrlrpath(unit), 0)) >= 0) { in mlx_perform() 79 mlxd_foreach_ctrlr(int unit, void *arg) in mlxd_foreach_ctrlr() argument 85 if ((ctrlfd = open(ctrlrpath(unit), 0)) < 0) in mlxd_foreach_ctrlr() 106 mlxd_foreach(void (*func)(int unit, void *arg), void *arg) in mlxd_foreach() argument 121 int unit; member 127 mlxd_find_ctrlr_search(int unit, void *arg __unused) in mlxd_find_ctrlr_search() argument 132 if ((fd = open(ctrlrpath(unit), 0)) >= 0) { in mlxd_find_ctrlr_search() 139 if (i == mlxd_find_ctrlr_param.unit) { in mlxd_find_ctrlr_search() [all …]
|
| H A D | util.c | 45 ctrlrpath(int unit) in ctrlrpath() argument 49 sprintf(buf, "%s%s", _PATH_DEV, ctrlrname(unit)); in ctrlrpath() 55 ctrlrname(int unit) in ctrlrname() argument 59 sprintf(buf, "mlx%d", unit); in ctrlrname() 65 drivepath(int unit) in drivepath() argument 69 sprintf(buf, "%s%s", _PATH_DEV, drivename(unit)); in drivepath() 75 drivename(int unit) in drivename() argument 79 sprintf(buf, "mlxd%d", unit); in drivename() 87 int unit; in ctrlrunit() local 89 if (sscanf(str, "mlx%d", &unit) == 1) in ctrlrunit() [all …]
|
| /dflybsd-src/sys/dev/disk/nata/chipsets/ |
| H A D | ata-promise.c | 345 if (ATA_INL(ctlr->r_res1, 0x1c) & (ch->unit ? 0x00004000 : 0x00000400)) { in ata_promise_status() 360 ATA_INB(ctlr->r_res1, 0x11) | (ch->unit ? 0x08 : 0x02)); in ata_promise_dmastart() 361 ATA_OUTL(ctlr->r_res1, ch->unit ? 0x24 : 0x20, in ata_promise_dmastart() 385 ATA_INB(ctlr->r_res1, 0x11) & ~(ch->unit ? 0x08 : 0x02)); in ata_promise_dmastop() 386 ATA_OUTL(ctlr->r_res1, ch->unit ? 0x24 : 0x20, 0); in ata_promise_dmastop() 427 int devno = (ch->unit << 1) + atadev->unit; in ata_promise_setmode() 453 (ch->unit ? 1 << 11 : 1 << 10))) { in ata_promise_setmode() 474 (ch->unit << 7)) & 0x01000000)) { in ata_promise_setmode() 530 ch->r_io[i].offset = offset + 0x0200 + (i << 2) + (ch->unit << 7); in ata_promise_mio_allocate() 533 ch->r_io[ATA_CONTROL].offset = offset + 0x0238 + (ch->unit << 7); in ata_promise_mio_allocate() [all …]
|
| /dflybsd-src/stand/boot/efi/libefi/ |
| H A D | handles.c | 37 int unit; member 49 int idx, unit; in efi_register_handles() local 55 for (unit = 0; idx < nentries; idx++, unit++) { in efi_register_handles() 56 entry[idx].handle = handles[unit]; in efi_register_handles() 58 entry[idx].alias = aliases[unit]; in efi_register_handles() 62 entry[idx].unit = unit; in efi_register_handles() 68 efi_find_handle(struct devsw *dev, int unit) in efi_find_handle() argument 75 if (entry[idx].unit != unit) in efi_find_handle() 83 efi_handle_lookup(EFI_HANDLE h, struct devsw **dev, int *unit, uint64_t *extra) in efi_handle_lookup() argument 92 if (unit != NULL) in efi_handle_lookup() [all …]
|
| /dflybsd-src/sys/vfs/devfs/ |
| H A D | devfs_helper.c | 136 devfs_clone_bitmap_chk(struct devfs_bitmap *bitmap, int unit) in devfs_clone_bitmap_chk() argument 141 chunk = unit / (sizeof(u_long) * 8); in devfs_clone_bitmap_chk() 142 unit -= chunk * (sizeof(u_long) * 8); in devfs_clone_bitmap_chk() 149 res = !((bitmap->bitmap[chunk]) & (1UL << unit)); in devfs_clone_bitmap_chk() 170 devfs_clone_bitmap_set(struct devfs_bitmap *bitmap, int unit) in devfs_clone_bitmap_set() argument 175 chunk = unit / (sizeof(u_long) * 8); in devfs_clone_bitmap_set() 176 unit -= chunk * (sizeof(u_long) * 8); in devfs_clone_bitmap_set() 181 if (bitmap->bitmap[chunk] & (1UL << unit)) { in devfs_clone_bitmap_set() 182 bitmap->bitmap[chunk] &= ~(1UL << unit); in devfs_clone_bitmap_set() 198 devfs_clone_bitmap_put(struct devfs_bitmap *bitmap, int unit) in devfs_clone_bitmap_put() argument [all …]
|
| /dflybsd-src/sys/dev/misc/pcfclock/ |
| H A D | pcfclock.c | 58 #define UNITOSOFTC(unit) \ argument 59 ((struct pcfclock_data *)devclass_get_softc(pcfclock_devclass, (unit))) 60 #define UNITODEVICE(unit) \ argument 61 (devclass_get_device(pcfclock_devclass, (unit))) 129 int unit; in pcfclock_attach() local 131 unit = device_get_unit(dev); in pcfclock_attach() 133 make_dev(&pcfclock_ops, unit, in pcfclock_attach() 134 UID_ROOT, GID_WHEEL, 0444, PCFCLOCK_NAME "%d", unit); in pcfclock_attach() 143 u_int unit = minor(dev); in pcfclock_open() local 144 struct pcfclock_data *sc = UNITOSOFTC(unit); in pcfclock_open() [all …]
|
| /dflybsd-src/contrib/tcp_wrappers/ |
| H A D | tli.c | 93 if (request->client->unit != 0) { 95 client = *(struct sockaddr_storage *) request->client->unit->addr.buf; 98 client = *(struct sockaddr_in *) request->client->unit->addr.buf; 102 if (request->server->unit != 0) { 104 server = *(struct sockaddr_storage *) request->server->unit->addr.buf; 107 server = *(struct sockaddr_in *) request->server->unit->addr.buf; 127 if (request->client->unit != 0) 128 t_free((char *) request->client->unit, T_UNITDATA); 129 if (request->server->unit != 0) 130 t_free((char *) request->server->unit, T_UNITDATA); [all …]
|
| /dflybsd-src/contrib/gdb-7/bfd/ |
| H A D | dwarf2.c | 603 read_indirect_string (struct comp_unit * unit, in read_indirect_string() argument 608 struct dwarf2_debug *stash = unit->stash; in read_indirect_string() 611 if (unit->offset_size == 4) in read_indirect_string() 612 offset = read_4_bytes (unit->abfd, buf); in read_indirect_string() 614 offset = read_8_bytes (unit->abfd, buf); in read_indirect_string() 616 *bytes_read_ptr = unit->offset_size; in read_indirect_string() 618 if (! read_section (unit->abfd, &stash->debug_sections[debug_str], in read_indirect_string() 630 read_address (struct comp_unit *unit, bfd_byte *buf) in read_address() argument 632 int signed_vma = get_elf_backend_data (unit->abfd)->sign_extend_vma; in read_address() 636 switch (unit->addr_size) in read_address() [all …]
|
| /dflybsd-src/contrib/binutils-2.27/bfd/ |
| H A D | dwarf2.c | 658 read_indirect_string (struct comp_unit * unit, in read_indirect_string() argument 664 struct dwarf2_debug *stash = unit->stash; in read_indirect_string() 667 if (buf + unit->offset_size > buf_end) in read_indirect_string() 673 if (unit->offset_size == 4) in read_indirect_string() 674 offset = read_4_bytes (unit->abfd, buf, buf_end); in read_indirect_string() 676 offset = read_8_bytes (unit->abfd, buf, buf_end); in read_indirect_string() 678 *bytes_read_ptr = unit->offset_size; in read_indirect_string() 680 if (! read_section (unit->abfd, &stash->debug_sections[debug_str], in read_indirect_string() 698 read_alt_indirect_string (struct comp_unit * unit, in read_alt_indirect_string() argument 704 struct dwarf2_debug *stash = unit->stash; in read_alt_indirect_string() [all …]
|
| /dflybsd-src/contrib/binutils-2.34/bfd/ |
| H A D | dwarf2.c | 698 read_indirect_string (struct comp_unit * unit, in read_indirect_string() argument 704 struct dwarf2_debug *stash = unit->stash; in read_indirect_string() 705 struct dwarf2_debug_file *file = unit->file; in read_indirect_string() 708 if (buf + unit->offset_size > buf_end) in read_indirect_string() 714 if (unit->offset_size == 4) in read_indirect_string() 715 offset = read_4_bytes (unit->abfd, buf, buf_end); in read_indirect_string() 717 offset = read_8_bytes (unit->abfd, buf, buf_end); in read_indirect_string() 719 *bytes_read_ptr = unit->offset_size; in read_indirect_string() 721 if (! read_section (unit->abfd, &stash->debug_sections[debug_str], in read_indirect_string() 735 read_indirect_line_string (struct comp_unit * unit, in read_indirect_line_string() argument [all …]
|
| /dflybsd-src/share/examples/drivers/ |
| H A D | make_device_driver.sh | 124 int unit = dev->id_unit; 125 sc_p scp = sca[unit]; 128 * Check the unit makes sense. 130 if (unit > N${UPPER}) { 131 printf("bad unit (%d)\n", unit); 135 printf("unit %d already attached\n", unit); 160 * we can also trust the unit number. 165 int unit = dev->id_unit; 166 sc_p scp = sca[unit]; 179 printf("${1}%d failed to allocage driver strorage\n", unit); [all …]
|