/dragonfly/contrib/bmake/ |
H A D | FILES | 73 unit-tests/Makefile 77 unit-tests/archive.exp 78 unit-tests/archive.mk 92 unit-tests/cmdline.mk 94 unit-tests/comment.mk 187 unit-tests/dep.exp 188 unit-tests/dep.mk 293 unit-tests/dir.exp 294 unit-tests/dir.mk 552 unit-tests/opt.mk [all …]
|
/dragonfly/sys/netbt/ |
H A D | hci_unit.c | 117 return unit; in hci_attach() 153 unit->hci_packet_type = unit->hci_acl_mask; in hci_enable() 156 err = (*unit->hci_if->enable)(unit->hci_dev); in hci_enable() 203 device_set_ivars(unit->hci_bthub, &unit->hci_bdaddr); in hci_enable() 210 (*unit->hci_if->disable)(unit->hci_dev); in hci_enable() 226 device_delete_child(unit->hci_softc, unit->hci_bthub); in hci_disable() 231 (*unit->hci_if->disable)(unit->hci_dev); in hci_disable() 278 return unit; in hci_unit_lookup() 509 (*unit->hci_if->output_cmd)(unit->hci_dev, m); in hci_output_cmd() 522 (*unit->hci_if->output_acl)(unit->hci_dev, m); in hci_output_acl() [all …]
|
H A D | hci_event.c | 281 while (unit->hci_num_cmd_pkts > 0 && !IF_QEMPTY(&unit->hci_cmdwait)) { in hci_event_command_status() 353 while (unit->hci_num_cmd_pkts > 0 && !IF_QEMPTY(&unit->hci_cmdwait)) { in hci_event_command_compl() 419 while (link && (unit->hci_num_acl_pkts > 0 || unit->hci_num_sco_pkts > 0)) { in hci_event_num_compl_pkts() 863 wakeup(unit); in hci_cmd_read_bdaddr() 891 wakeup(unit); in hci_cmd_read_buffer_size() 953 unit->hci_packet_type = unit->hci_acl_mask; in hci_cmd_read_local_features() 979 wakeup(unit); in hci_cmd_read_local_features() 982 device_get_nameunit(unit->hci_dev), unit->hci_lmp_mask, in hci_cmd_read_local_features() 983 unit->hci_acl_mask, unit->hci_sco_mask); in hci_cmd_read_local_features() 1008 wakeup(unit); in hci_cmd_read_local_ver() [all …]
|
H A D | hci_ioctl.c | 55 struct hci_unit *unit; in hci_dump() local 65 device_get_nameunit(unit->hci_dev), unit->hci_flags, in hci_dump() 152 if (unit == NULL) in hci_ioctl() 164 unit = NULL; in hci_ioctl() 182 if (unit == NULL) in hci_ioctl() 193 if (unit) in hci_ioctl() 194 unit = TAILQ_NEXT(unit, hci_next); in hci_ioctl() 254 unit->hci_link_policy &= unit->hci_lmp_mask; in hci_ioctl() 264 unit->hci_packet_type &= unit->hci_acl_mask; in hci_ioctl() 269 (*unit->hci_if->get_stats)(unit->hci_dev, &btr->btr_stats, 0); 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() 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() 120 m0 = LIST_FIRST(&unit->hci_memos); in hci_memo_find() [all …]
|
/dragonfly/sys/netgraph7/bluetooth/hci/ |
H A D | ng_hci_main.c | 114 unit = kmalloc(sizeof(*unit), M_NETGRAPH_HCI, in ng_hci_constructor() 174 bzero(unit, sizeof(*unit)); in ng_hci_shutdown() 318 unit->bdaddr.b[5], unit->bdaddr.b[4], in ng_hci_default_rcvmsg() 319 unit->bdaddr.b[3], unit->bdaddr.b[2], in ng_hci_default_rcvmsg() 320 unit->bdaddr.b[1], unit->bdaddr.b[0], in ng_hci_default_rcvmsg() 361 ng_hci_node_is_up(unit->node, unit->acl, NULL, 0); in ng_hci_default_rcvmsg() 362 ng_hci_node_is_up(unit->node, unit->sco, NULL, 0); in ng_hci_default_rcvmsg() 427 bcopy(&unit->features,rsp->data,sizeof(unit->features)); in ng_hci_default_rcvmsg() 438 bcopy(&unit->stat, rsp->data, sizeof(unit->stat)); in ng_hci_default_rcvmsg() 721 unit->state, unit->acl); in ng_hci_drv_rcvdata() [all …]
|
H A D | ng_hci_misc.c | 67 if (unit->raw != NULL && NG_HOOK_IS_VALID(unit->raw)) { in ng_hci_mtap() 86 ng_hci_unit_p unit = NULL; in ng_hci_node_is_up() local 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() 138 ng_hci_command_untimeout(unit); in ng_hci_unit_clean() 140 NG_BT_MBUFQ_DRAIN(&unit->cmdq); in ng_hci_unit_clean() 141 NG_HCI_BUFF_CMD_SET(unit->buffer, 1); in ng_hci_unit_clean() 167 ng_hci_flush_neighbor_cache(unit); in ng_hci_unit_clean() 263 con->unit = unit; in ng_hci_new_con() 372 ng_callout(&unit->cmd_timo, unit->node, NULL, in ng_hci_command_timeout() [all …]
|
H A D | ng_hci_ulpi.c | 70 __func__, NG_NODE_NAME(unit->node), unit->state); in ng_hci_lp_con_req() 570 ng_hci_unit_p unit = con->unit; in ng_hci_lp_con_cfm() local 600 __func__, NG_NODE_NAME(unit->node), unit->acl); in ng_hci_lp_con_cfm() 623 __func__, NG_NODE_NAME(unit->node), unit->acl); in ng_hci_lp_con_cfm() 638 ng_hci_unit_p unit = con->unit; in ng_hci_lp_con_ind() local 878 ng_hci_unit_p unit = con->unit; in ng_hci_lp_discon_ind() local 924 __func__, NG_NODE_NAME(unit->node), unit->sco); in ng_hci_lp_discon_ind() 1049 ng_hci_unit_p unit = con->unit; in ng_hci_lp_qos_cfm() local 1104 ng_hci_unit_p unit = con->unit; in ng_hci_lp_qos_ind() local 1127 __func__, NG_NODE_NAME(unit->node), unit->acl); in ng_hci_lp_qos_ind() [all …]
|
H A D | ng_hci_cmds.c | 100 if (unit->drv == NULL || NG_HOOK_NOT_VALID(unit->drv)) { in ng_hci_send_command() 119 ng_hci_mtap(unit, m0); in ng_hci_send_command() 249 ng_hci_send_command(unit); in ng_hci_process_command_complete() 314 ng_hci_send_command(unit); in ng_hci_process_command_status() 332 __func__, NG_NODE_NAME(unit->node), unit->state); in complete_command() 690 unit->buffer, in process_info_params() 697 unit->buffer, in process_info_params() 704 ng_hci_node_is_up(unit->node, unit->acl, NULL, 0); in process_info_params() 705 ng_hci_node_is_up(unit->node, unit->sco, NULL, 0); in process_info_params() 720 ng_hci_node_is_up(unit->node, unit->acl, NULL, 0); in process_info_params() [all …]
|
H A D | ng_hci_evnt.c | 132 error = con_compl(unit, event); in ng_hci_process_event() 136 error = con_req(unit, event); in ng_hci_process_event() 297 v = (unit->drv != NULL && NG_HOOK_IS_VALID(unit->drv)); in send_data_packets() 304 unit->state); in send_data_packets() 353 hook = (con->link_type == NG_HCI_LINK_ACL)? unit->acl : unit->sco; in sync_con_queue() 396 n = ng_hci_new_neighbor(unit); in inquiry_result() 533 unit->role_switch) in con_compl() 547 ng_hci_send_command(unit); in con_compl() 929 ng_hci_send_data(unit); in num_compl_pkts() 1098 n = ng_hci_new_neighbor(unit); in page_scan_mode_change() [all …]
|
/dragonfly/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() 106 if (unit < 0 || unit >= BKTR_MEM_MAX_DEVICES) { in bktr_store_address() 108 unit, type, (void *)addr); in bktr_store_address() 122 memory_list[unit].vbidata = addr; in bktr_store_address() 130 memory_list[unit].buf = addr; in bktr_store_address() 135 type, unit, (void *)addr); in bktr_store_address() 146 if (unit < 0 || unit >= BKTR_MEM_MAX_DEVICES) { in bktr_retrieve_address() 148 unit, type); in bktr_retrieve_address() 161 return memory_list[unit].buf; in bktr_retrieve_address() [all …]
|
H A D | bktr_os.c | 307 unit); 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() 410 unit, size); in get_bktr_mem() 439 int unit; in bktr_open() local 540 int unit; in bktr_close() local 580 int unit; in bktr_read() local 620 int unit; in bktr_ioctl() local 659 int unit; in bktr_mmap() local [all …]
|
/dragonfly/sys/net/ |
H A D | if_clone.c | 64 int unit; in if_clone_create() local 72 wildcard = (unit < 0); in if_clone_create() 108 int unit, error; in if_clone_destroy() local 119 unit = ifp->if_dunit; in if_clone_destroy() 145 int unit; in if_clone_attach() local 170 for (unit = 0; unit < ifc->ifc_minifs; unit++) { in if_clone_attach() 248 *unit = -1; in if_name2unit() 261 *unit = (*unit * 10) + (*cp - '0'); in if_name2unit() 320 if (*unit < 0) { in if_clone_alloc_unit() 334 bytoff = *unit >> 3; in if_clone_alloc_unit() [all …]
|
/dragonfly/usr.sbin/mlxcontrol/ |
H A D | command.c | 185 status_print(int unit, void *arg) in status_print() argument 397 unit, model, in controller_print() 490 status_print(unit, &verbosity); in cmd_status() 522 int all = 0, i, ch, unit; in cmd_rescan() local 544 rescan_ctrlr(unit, NULL); in cmd_rescan() 581 int all = 0, i, ch, unit; in cmd_detach() local 598 ma.arg = &unit; in cmd_detach() 603 mlxd_foreach_ctrlr(unit, &ma); in cmd_detach() 629 int unit, fd, result; in cmd_check() local 674 int unit, fd; in cmd_rebuild() local [all …]
|
H A D | interface.c | 69 if ((fd = open(ctrlrpath(unit), 0)) >= 0) { in mlx_perform() 79 mlxd_foreach_ctrlr(int unit, void *arg) in mlxd_foreach_ctrlr() argument 121 int unit; member 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() 140 mlxd_find_ctrlr_param.ctrlr = unit; in mlxd_find_ctrlr_search() 152 mlxd_find_ctrlr_param.unit = unit; in mlxd_find_ctrlr() 197 mlx_perform(unit, mlx_command, &cmd); in mlx_enquiry() 219 mlx_perform(unit, mlx_command, &cmd); in mlx_read_configuration() 259 mlx_perform(unit, mlx_command, &cmd); in mlx_scsi_inquiry() [all …]
|
H A D | util.c | 45 ctrlrpath(int unit) in ctrlrpath() argument 55 ctrlrname(int unit) in ctrlrname() argument 59 sprintf(buf, "mlx%d", unit); in ctrlrname() 65 drivepath(int unit) in drivepath() argument 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() 90 return(unit); in ctrlrunit() 98 int unit; in driveunit() local [all …]
|
/dragonfly/sys/dev/disk/nata/chipsets/ |
H A D | ata-promise.c | 427 int devno = (ch->unit << 1) + atadev->unit; in ata_promise_setmode() 566 int unit, fake_reg; in ata_promise_mio_intr() local 592 for (unit = 0; unit < ctlr->channels; unit++) { in ata_promise_mio_intr() 675 ATA_OUTB(ctlr->r_res2, 0x4e8 + (ch->unit << 8), atadev->unit & 0x0f); in ata_promise_mio_command() 713 ATA_OUTL(ctlr->r_res2, 0xc0260 + (ch->unit << 7), ch->unit + 1); in ata_promise_mio_reset() 933 int unit; in ata_promise_sx4_intr() local 935 for (unit = 0; unit < ctlr->channels; unit++) { in ata_promise_sx4_intr() 936 if (vector & (1 << (unit + 1))) in ata_promise_sx4_intr() 939 if (vector & (1 << (unit + 5))) in ata_promise_sx4_intr() 1031 wordp[0] = htole32(0x14 | ((ch->unit+9)<<16) | ((ch->unit+5)<<24)); in ata_promise_sx4_command() [all …]
|
/dragonfly/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() 92 if (unit != NULL) in efi_handle_lookup() 93 *unit = entry[idx].unit; in efi_handle_lookup() [all …]
|
/dragonfly/sys/vfs/devfs/ |
H A D | devfs_helper.c | 141 chunk = unit / (sizeof(u_long) * 8); in devfs_clone_bitmap_chk() 142 unit -= chunk * (sizeof(u_long) * 8); in devfs_clone_bitmap_chk() 175 chunk = unit / (sizeof(u_long) * 8); in devfs_clone_bitmap_set() 176 unit -= chunk * (sizeof(u_long) * 8); in devfs_clone_bitmap_set() 204 chunk = unit / (sizeof(u_long) * 8); in devfs_clone_bitmap_put() 205 unit -= chunk * (sizeof(u_long) * 8); in devfs_clone_bitmap_put() 223 int unit; in devfs_clone_bitmap_get() local 226 unit = devfs_clone_bitmap_fff(bitmap); in devfs_clone_bitmap_get() 227 if (limit > 0 && unit > limit) { in devfs_clone_bitmap_get() 228 unit = -1; in devfs_clone_bitmap_get() [all …]
|
/dragonfly/sys/dev/misc/pcfclock/ |
H A D | pcfclock.c | 58 #define UNITOSOFTC(unit) \ argument 60 #define UNITODEVICE(unit) \ argument 129 int unit; in pcfclock_attach() local 143 u_int unit = minor(dev); in pcfclock_open() local 165 u_int unit = minor(dev); in pcfclock_close() local 181 u_int unit = minor(dev); in pcfclock_write_cmd() local 201 u_int unit = minor(dev); in pcfclock_display_data() local 210 unit, in pcfclock_display_data() 217 unit); in pcfclock_display_data() 224 u_int unit = minor(dev); in pcfclock_read_data() local [all …]
|
/dragonfly/contrib/tcp_wrappers/ |
H A D | tli.c | 93 if (request->client->unit != 0) { 102 if (request->server->unit != 0) { 127 if (request->client->unit != 0) 129 if (request->server->unit != 0) 168 request->client->unit = client; 184 request->server->unit = server; 249 struct t_unitdata *unit = host->unit; local 252 if (config != 0 && unit != 0 266 struct t_unitdata *unit = host->unit; local 269 if (config != 0 && unit != 0 [all …]
|
/dragonfly/contrib/gdb-7/bfd/ |
H A D | dwarf2.c | 818 if (unit->version == 3 || unit->version == 4) in read_attribute_value() 1645 if (!arange_add (unit, &unit->arange, low_pc, high_pc)) in decode_line_info() 2297 unit->abfd, in scan_unit_for_symbols() 2493 if (!read_rangelist (unit, &unit->arange, attr.u.val)) in parse_comp_unit() 2521 if (!arange_add (unit, &unit->arange, low_pc, high_pc)) in parse_comp_unit() 2526 return unit; in parse_comp_unit() 2540 if (unit->error) in comp_unit_contains_address() 2587 unit->line_table = decode_line_info (unit, stash); in comp_unit_find_nearest_line() 2595 if (unit->first_child_die_ptr < unit->end_ptr in comp_unit_find_nearest_line() 2634 unit->line_table = decode_line_info (unit, stash); in comp_unit_maybe_decode_line_info() [all …]
|
/dragonfly/contrib/binutils-2.27/bfd/ |
H A D | dwarf2.c | 1020 if (unit->version == 3 || unit->version == 4) in read_attribute_value() 1929 if (!arange_add (unit, &unit->arange, low_pc, high_pc)) in decode_line_info() 2320 unit = u; in find_abstract_instance_name() 2867 if (!read_rangelist (unit, &unit->arange, attr.u.val)) in parse_comp_unit() 2913 return unit; in parse_comp_unit() 2972 unit->line_table = decode_line_info (unit, stash); in comp_unit_find_nearest_line() 2980 if (unit->first_child_die_ptr < unit->end_ptr in comp_unit_find_nearest_line() 3018 unit->line_table = decode_line_info (unit, stash); in comp_unit_maybe_decode_line_info() 3026 if (unit->first_child_die_ptr < unit->end_ptr in comp_unit_maybe_decode_line_info() 3817 for (unit = stash->all_comp_units; unit; unit = unit->next_unit) in _bfd_dwarf2_find_symbol_bias() [all …]
|
/dragonfly/contrib/binutils-2.34/bfd/ |
H A D | dwarf2.c | 1177 if (unit->version == 3 || unit->version == 4) in read_attribute_value() 2380 if (!arange_add (unit, &unit->arange, low_pc, high_pc)) in decode_line_info() 2963 unit = unit->stash->alt.all_comp_units; in find_abstract_instance() 2989 u = stash_comp_unit (unit->stash, &unit->stash->f); in find_abstract_instance() 3000 u = stash_comp_unit (unit->stash, &unit->stash->alt); in find_abstract_instance() 3016 unit = u; in find_abstract_instance() 3626 if (!read_rangelist (unit, &unit->arange, attr.u.val)) in parse_comp_unit() 3672 return unit; in parse_comp_unit() 3751 unit->line_table = decode_line_info (unit); in comp_unit_maybe_decode_line_info() 3759 if (unit->first_child_die_ptr < unit->end_ptr in comp_unit_maybe_decode_line_info() [all …]
|
/dragonfly/share/examples/drivers/ |
H A D | make_device_driver.sh | 125 sc_p scp = sca[unit]; 130 if (unit > N${UPPER}) { 166 sc_p scp = sca[unit]; 183 sca[unit] = scp; 230 int unit = UNIT (dev); 231 sc_p scp = sca[unit]; 252 int unit = UNIT (dev); 253 sc_p scp = sca[unit]; 266 int unit = UNIT (dev); 267 sc_p scp = sca[unit]; [all …]
|