/freebsd-11-stable/sys/netgraph/bluetooth/hci/ |
H A D | ng_hci_evnt.c | 86 ng_hci_process_event(ng_hci_unit_p unit, struct mbuf *event) argument 100 __func__, NG_NODE_NAME(unit->node), hdr->event, hdr->length); 126 error = le_event(unit, event); 130 error = inquiry_result(unit, event); 134 error = con_compl(unit, event); 138 error = con_req(unit, event); 142 error = discon_compl(unit, event); 146 error = encryption_change(unit, event); 150 error = read_remote_features_compl(unit, event); 154 error = qos_setup_compl(unit, even 215 ng_hci_send_data(ng_hci_unit_p unit) argument 251 send_data_packets(ng_hci_unit_p unit, int link_type, int limit) argument 349 sync_con_queue(ng_hci_unit_p unit, ng_hci_unit_con_p con, int completed) argument 376 le_advertizing_report(ng_hci_unit_p unit, struct mbuf *event) argument 448 le_connection_complete(ng_hci_unit_p unit, struct mbuf *event) argument 549 le_connection_update(ng_hci_unit_p unit, struct mbuf *event) argument 559 le_event(ng_hci_unit_p unit, struct mbuf *event) argument 594 inquiry_result(ng_hci_unit_p unit, struct mbuf *event) argument 655 con_compl(ng_hci_unit_p unit, struct mbuf *event) argument 781 con_req(ng_hci_unit_p unit, struct mbuf *event) argument 866 discon_compl(ng_hci_unit_p unit, struct mbuf *event) argument 912 encryption_change(ng_hci_unit_p unit, struct mbuf *event) argument 959 read_remote_features_compl(ng_hci_unit_p unit, struct mbuf *event) argument 1012 qos_setup_compl(ng_hci_unit_p unit, struct mbuf *event) argument 1054 hardware_error(ng_hci_unit_p unit, struct mbuf *event) argument 1067 role_change(ng_hci_unit_p unit, struct mbuf *event) argument 1104 num_compl_pkts(ng_hci_unit_p unit, struct mbuf *event) argument 1162 mode_change(ng_hci_unit_p unit, struct mbuf *event) argument 1203 data_buffer_overflow(ng_hci_unit_p unit, struct mbuf *event) argument 1217 read_clock_offset_compl(ng_hci_unit_p unit, struct mbuf *event) argument 1269 qos_violation(ng_hci_unit_p unit, struct mbuf *event) argument 1310 page_scan_mode_change(ng_hci_unit_p unit, struct mbuf *event) argument 1345 page_scan_rep_mode_change(ng_hci_unit_p unit, struct mbuf *event) argument [all...] |
H A D | ng_hci_ulpi.c | 66 ng_hci_lp_con_req(ng_hci_unit_p unit, item_p item, hook_p hook) argument 70 if ((unit->state & NG_HCI_UNIT_READY) != NG_HCI_UNIT_READY) { 72 "%s: %s - unit is not ready, state=%#x\n", 73 __func__, NG_NODE_NAME(unit->node), unit->state); 83 __func__, NG_NODE_NAME(unit->node), 93 return (ng_hci_lp_acl_con_req(unit, item, hook)); 95 if (hook != unit->sco ) { 98 __func__, NG_NODE_NAME(unit->node), hook); 105 return (ng_hci_lp_sco_con_req(unit, ite 121 ng_hci_lp_acl_con_req(ng_hci_unit_p unit, item_p item, hook_p hook) argument 321 ng_hci_lp_sco_con_req(ng_hci_unit_p unit, item_p item, hook_p hook) argument 485 ng_hci_lp_le_con_req(ng_hci_unit_p unit, item_p item, hook_p hook, int link_type) argument 663 ng_hci_lp_discon_req(ng_hci_unit_p unit, item_p item, hook_p hook) argument 756 ng_hci_unit_p unit = con->unit; local 820 ng_hci_unit_p unit = con->unit; local 855 ng_hci_unit_p unit = con->unit; local 899 ng_hci_lp_con_rsp(ng_hci_unit_p unit, item_p item, hook_p hook) argument 1095 ng_hci_unit_p unit = con->unit; local 1151 ng_hci_lp_qos_req(ng_hci_unit_p unit, item_p item, hook_p hook) argument 1266 ng_hci_unit_p unit = con->unit; local 1321 ng_hci_unit_p unit = con->unit; local 1371 ng_hci_unit_p unit = NULL; local [all...] |
/freebsd-11-stable/sys/x86/iommu/ |
H A D | intel_utils.c | 106 dmar_pglvl_supported(struct dmar_unit *unit, int pglvl) argument 113 if ((DMAR_CAP_SAGAW(unit->hw_cap) & sagaw_bits[i].cap) != 0) 148 dmar_maxaddr2mgaw(struct dmar_unit *unit, dmar_gaddr_t maxaddr, bool allow_less) argument 154 (DMAR_CAP_SAGAW(unit->hw_cap) & sagaw_bits[i].cap) != 0) 160 } while ((DMAR_CAP_SAGAW(unit->hw_cap) & sagaw_bits[i].cap) 235 calc_am(struct dmar_unit *unit, dmar_gaddr_t base, dmar_gaddr_t size, argument 241 for (am = DMAR_CAP_MAMV(unit->hw_cap);; am--) { 360 dmar_flush_transl_to_ram(struct dmar_unit *unit, void *dst, size_t sz) argument 363 if (DMAR_IS_COHERENT(unit)) 374 dmar_flush_pte_to_ram(struct dmar_unit *unit, dmar_pte_ argument 381 dmar_flush_ctx_to_ram(struct dmar_unit *unit, dmar_ctx_entry_t *dst) argument 388 dmar_flush_root_to_ram(struct dmar_unit *unit, dmar_root_entry_t *dst) argument 399 dmar_load_root_entry_ptr(struct dmar_unit *unit) argument 425 dmar_inv_ctx_glob(struct dmar_unit *unit) argument 452 dmar_inv_iotlb_glob(struct dmar_unit *unit) argument 473 dmar_flush_write_bufs(struct dmar_unit *unit) argument 492 dmar_enable_translation(struct dmar_unit *unit) argument 505 dmar_disable_translation(struct dmar_unit *unit) argument 518 dmar_load_irt_ptr(struct dmar_unit *unit) argument 540 dmar_enable_ir(struct dmar_unit *unit) argument 554 dmar_disable_ir(struct dmar_unit *unit) argument [all...] |
H A D | intel_dmar.h | 78 * (u) - Protected by dmar unit lock 85 * are protected by owning dmar unit lock, not by the domain lock. 176 int unit; member in struct:dmar_unit 264 bool dmar_pglvl_supported(struct dmar_unit *unit, int pglvl); 266 int dmar_maxaddr2mgaw(struct dmar_unit *unit, dmar_gaddr_t maxaddr, 272 int calc_am(struct dmar_unit *unit, dmar_gaddr_t base, dmar_gaddr_t size, 279 int dmar_load_root_entry_ptr(struct dmar_unit *unit); 280 int dmar_inv_ctx_glob(struct dmar_unit *unit); 281 int dmar_inv_iotlb_glob(struct dmar_unit *unit); 282 int dmar_flush_write_bufs(struct dmar_unit *unit); 388 dmar_read4(const struct dmar_unit *unit, int reg) argument 395 dmar_read8(const struct dmar_unit *unit, int reg) argument 409 dmar_write4(const struct dmar_unit *unit, int reg, uint32_t val) argument 420 dmar_write8(const struct dmar_unit *unit, int reg, uint64_t val) argument [all...] |
/freebsd-11-stable/contrib/ntp/ntpd/ |
H A D | refclock_gpsvme.c | 72 /* clock unit control structure */ 74 short unit; /* NTP refclock unit number */ member in struct:psc_unit 94 int unit, 102 if (unit < 0 || unit > 1) { /* support units 0 and 1 */ 103 msyslog(LOG_ERR, "psc_start: bad unit: %d", unit); 109 snprintf(buf, sizeof(buf), DEVICE, unit); /* dev file name */ 110 fd[unit] 93 psc_start( int unit, struct peer *peer ) argument 143 psc_shutdown( int unit, struct peer *peer ) argument 156 psc_poll( int unit, struct peer *peer ) argument 230 check_leap_sec(struct refclockproc *pp, int unit) argument [all...] |
H A D | refclock_leitch.c | 51 fprintf(stderr, "leitch_send: unit %d send failed\n", A->unit); \ 53 msyslog(LOG_ERR, "leitch_send: unit %d send failed %m",A->unit);} 57 msyslog(LOG_ERR, "leitch_send: unit %d send failed %m",A->unit);} 67 * LEITCH unit control structure 72 u_char unit; member in struct:leitchunit 143 int unit, 149 if (unit > 142 leitch_shutdown( int unit, struct peer *peer ) argument 165 leitch_poll( int unit, struct peer *peer ) argument 196 leitch_control( int unit, const struct refclockstat *in, struct refclockstat *out, struct peer *passed_peer ) argument 238 leitch_start( int unit, struct peer *peer ) argument [all...] |
/freebsd-11-stable/sys/arm/arm/ |
H A D | sc_machdep.c | 46 sc_get_cons_priority(int *unit, int *flags) argument 49 *unit = 0; 61 sc_get_softc(int unit, int flags) argument 65 if (unit < 0) 67 sc = &sc_softcs[unit]; 68 sc->unit = unit;
|
/freebsd-11-stable/sys/powerpc/powerpc/ |
H A D | sc_machdep.c | 46 sc_get_cons_priority(int *unit, int *flags) argument 49 *unit = 0; 61 sc_get_softc(int unit, int flags) argument 65 if (unit < 0) 67 sc = &sc_softcs[unit]; 68 sc->unit = unit;
|
/freebsd-11-stable/sys/mips/mips/ |
H A D | sc_machdep.c | 46 sc_get_cons_priority(int *unit, int *flags) argument 49 *unit = 0; 61 sc_get_softc(int unit, int flags) argument 65 if (unit < 0) 67 sc = &sc_softcs[unit]; 68 sc->unit = unit;
|
/freebsd-11-stable/usr.sbin/mlxcontrol/ |
H A D | command.c | 185 status_print(int unit, void *arg) argument 192 if (mlxd_find_ctrlr(unit, &ctrlr, &sysdrive)) { 193 warnx("couldn't get controller/drive for %s", drivepath(unit)); 214 if ((fd = open(drivepath(unit), 0)) < 0) { 215 warn("can't open %s", drivepath(unit)); 226 printf("%s: online", drivename(unit)); 230 printf("%s: critical", drivename(unit)); 236 printf("%s: offline", drivename(unit)); 242 printf("%s: unknown status 0x%x", drivename(unit), result); 291 controller_print(int unit, voi argument 386 int ch, verbosity = 1, i, unit; local 426 rescan_ctrlr(int unit, void *junk) argument 444 int all = 0, i, ch, unit; local 484 detach_drive(int unit, void *arg) argument 503 int all = 0, i, ch, unit; local 551 int unit, fd, result; local 596 int unit, fd; local 653 int unit, i, ch, fd, cancel = 0; local [all...] |
H A D | interface.c | 47 mlx_foreach(void (*func)(int unit, void *arg), void *arg) argument 64 * Open the controller (unit) and give the fd to (func) along with (arg) 67 mlx_perform(int unit, void (*func)(int fd, void *arg), void *arg) argument 71 if ((fd = open(ctrlrpath(unit), 0)) >= 0) { 81 mlxd_foreach_ctrlr(int unit, void *arg) argument 87 if ((ctrlfd = open(ctrlrpath(unit), 0)) < 0) 91 /* Get the unit number of the next child device */ 97 /* check that we can open this unit */ 108 mlxd_foreach(void (*func)(int unit, void *arg), void *arg) argument 118 * Find the controller that manages the drive (unit), retur 123 int unit; member in struct:__anon8794 129 mlxd_find_ctrlr_search(int unit, void *arg) argument 152 mlxd_find_ctrlr(int unit, int *ctrlr, int *sysdrive) argument 188 mlx_enquiry(int unit, struct mlx_enquiry2 *enq) argument 210 mlx_read_configuration(int unit, struct mlx_core_cfg *cfg) argument 230 mlx_scsi_inquiry(int unit, int channel, int target, char **vendor, char **device, char **revision) argument 275 mlx_get_device_state(int unit, int channel, int target, struct mlx_phys_drv *drv) argument [all...] |
/freebsd-11-stable/sys/dev/dpaa/ |
H A D | if_dtsec_rm.h | 36 int dtsec_rm_fm_port_rx_init(struct dtsec_softc *sc, int unit); 37 int dtsec_rm_fm_port_tx_init(struct dtsec_softc *sc, int unit);
|
/freebsd-11-stable/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_UNITDAT 249 struct t_unitdata *unit = host->unit; local 266 struct t_unitdata *unit = host->unit; local 353 struct t_unitdata *unit; local [all...] |
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ |
H A D | ip_log.c | 517 /* unit(I) - device we are reading from */ 529 ipf_log_items(softc, unit, fin, items, itemsz, types, cnt) 531 int unit; 551 MUTEX_ENTER(&softl->ipl_mutex[unit]); 552 softl->ipl_counter[unit]++; 557 if ((softl->ipl_used[unit] + len) > softl->ipl_logsize) { 558 softl->ipl_logfail[unit]++; 559 MUTEX_EXIT(&softl->ipl_mutex[unit]); 565 softl->ipl_logfail[unit]++; 566 MUTEX_EXIT(&softl->ipl_mutex[unit]); [all...] |
/freebsd-11-stable/contrib/gdb/gdb/ |
H A D | dwarf2-frame.c | 910 /* Address size for this unit - from unit header. */ 1079 read_encoded_value (struct comp_unit *unit, unsigned char encoding, 1100 base = bfd_get_section_vma (unit->bfd, unit->dwarf_frame_section); 1101 base += (buf - unit->dwarf_frame_buffer); 1104 base = unit->dbase; 1107 base = unit->tbase; 1119 offset = buf - unit->dwarf_frame_buffer; 1137 return (base + bfd_get_16 (unit 1071 read_encoded_value(struct comp_unit *unit, unsigned char encoding, char *buf, unsigned int *bytes_read_ptr) argument 1155 find_cie(struct comp_unit *unit, ULONGEST cie_pointer) argument 1171 add_cie(struct comp_unit *unit, struct dwarf2_cie *cie) argument 1214 add_fde(struct comp_unit *unit, struct dwarf2_fde *fde) argument 1232 decode_frame_entry_1(struct comp_unit *unit, char *start, int eh_frame_p) argument 1451 decode_frame_entry(struct comp_unit *unit, char *start, int eh_frame_p) argument 1555 struct comp_unit unit; local [all...] |
/freebsd-11-stable/sys/dev/sound/ |
H A D | unit.c | 36 #include <dev/sound/unit.h> 49 * Maximum unit of soundcards can be tuned through "hw.snd.maxunit", which 71 panic("%s(): Uninitialized sound unit!", __func__); \ 75 ("%s(): Uninitialized sound unit!", \ 106 snd_unit2u(int unit) argument 110 return ((unit >> (snd_c_shift + snd_d_shift)) & MKMASK(u)); 114 snd_unit2d(int unit) argument 118 return ((unit >> snd_c_shift) & MKMASK(d)); 122 snd_unit2c(int unit) argument 126 return (unit [all...] |
/freebsd-11-stable/sys/isa/ |
H A D | syscons_isa.c | 108 *sc_get_softc(int unit, int flags) argument 112 if (unit < 0) 115 /* FIXME: clear if it is wired to another unit! */ 118 sc = device_get_softc(devclass_get_device(sc_devclass, unit)); 122 sc->unit = unit; 156 sc_get_cons_priority(int *unit, int *flags) argument 168 *unit = 0; 174 *unit = -1; 183 /* the user designates this unit t [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | Chrono.h | 79 /// duration_options ::= [unit][show_unit [number_options]] 80 /// unit ::= `h`|`m`|`s`|`ms|`us`|`ns` 95 /// If the unit of the duration type is not one of the units specified above, 97 /// display unit or you request that the unit is not displayed. 100 template <typename Period> struct unit { static const char value[]; }; struct in namespace:llvm::detail 101 template <typename Period> const char unit<Period>::value[] = ""; 103 template <> struct unit<std::ratio<3600>> { static const char value[]; }; struct in namespace:llvm::detail 104 template <> struct unit<std::ratio<60>> { static const char value[]; }; struct in namespace:llvm::detail 105 template <> struct unit<st struct in namespace:llvm::detail 106 template <> struct unit<std::milli> { static const char value[]; }; struct in namespace:llvm::detail 107 template <> struct unit<std::micro> { static const char value[]; }; struct in namespace:llvm::detail 108 template <> struct unit<std::nano> { static const char value[]; }; struct in namespace:llvm::detail 156 StringRef unit; local 164 Stream << " " << unit; local [all...] |
/freebsd-11-stable/lib/libstdbuf/ |
H A D | stdbuf.c | 53 char *unit; local 72 bufsize = strtol(bufmode, &unit, 0); 73 if (errno == EINVAL || errno == ERANGE || unit == bufmode) 76 switch (*unit) { 89 warnx("Unknown suffix '%c' for %s", *unit,
|
/freebsd-11-stable/contrib/ipfilter/lib/ |
H A D | remove_hashnode.c | 19 remove_hashnode(unit, name, node, iocfunc) 20 int unit; 32 op.iplo_unit = unit;
|
H A D | remove_poolnode.c | 19 remove_poolnode(unit, name, node, iocfunc) 20 int unit; 31 op.iplo_unit = unit;
|
/freebsd-11-stable/sys/arm/mv/ |
H A D | mvvar.h | 63 int target; /* Mbus unit ID */ 122 void mv_mask_endpoint_irq(uintptr_t nb, int unit); 123 void mv_unmask_endpoint_irq(uintptr_t nb, int unit); 125 int mv_drbl_get_next_irq(int dir, int unit); 126 void mv_drbl_mask_all(int unit); 127 void mv_drbl_mask_irq(uint32_t irq, int dir, int unit); 128 void mv_drbl_unmask_irq(uint32_t irq, int dir, int unit); 129 void mv_drbl_set_mask(uint32_t val, int dir, int unit); 130 uint32_t mv_drbl_get_mask(int dir, int unit); 131 void mv_drbl_set_cause(uint32_t val, int dir, int unit); [all...] |
/freebsd-11-stable/sys/dev/bktr/ |
H A D | bktr_os.c | 322 unsigned int unit; local 330 unit = device_get_unit(dev); 333 snprintf(bktr->bktr_xname, sizeof(bktr->bktr_xname), "bktr%d",unit); 368 unit, (old_irq & 0xff), (new_irq & 0xff)); 411 printf("bktr%d: i2c_attach: can't attach\n", unit); 425 printf("brooktree%d: PCI bus latency is", unit); 428 unit); 443 common_bktr_attach( bktr, unit, fun, rev ); 446 bktr->bktrdev = make_dev(&bktr_cdevsw, unit, 447 0, 0, 0444, "bktr%d", unit); 542 get_bktr_mem( int unit, unsigned size ) argument 581 int unit; local 681 int unit; local 720 int unit; local 758 int unit; local 797 int unit; local 828 int unit; local 950 int unit; local 1003 int unit; local 1193 int unit; local 1226 int unit; local 1251 int unit; local 1285 int unit; local 1310 int unit; local [all...] |
/freebsd-11-stable/sys/pc98/cbus/ |
H A D | syscons_cbus.c | 87 *sc_get_softc(int unit, int flags) argument 91 if (unit < 0) 94 /* FIXME: clear if it is wired to another unit! */ 97 sc = device_get_softc(devclass_get_device(sc_devclass, unit)); 101 sc->unit = unit; 134 sc_get_cons_priority(int *unit, int *flags) argument 139 *unit = -1; 148 /* the user designates this unit to be the console */ 149 *unit [all...] |
/freebsd-11-stable/contrib/mdocml/ |
H A D | out.h | 41 enum roffscale unit; member in struct:roffsu 50 tbl_sulen sulen; /* calculate scaling unit length */ 58 do { (p)->unit = SCALE_VS; \ 63 do { (p)->unit = SCALE_EN; \
|