/illumos-gate/usr/src/cmd/bc/ |
H A D | lib.b.data | 130 auto a, b, c, s, t, y, p, n, i, r 141 if(x>=0) n = (x/(2*p)+1)/2 142 if(x<0) n = (x/(2*p)-1)/2 143 x = x - 4*n*p 144 if(n%2!=0) x = -x 213 define j(n,x){ 219 k = 1.36*x + 1.16*t - n 224 if(n<0){ 225 n= -n 230 for(i=1;i<=n;i++){ [all …]
|
/illumos-gate/usr/src/cmd/bhyve/ |
H A D | block_if.c | 280 ssize_t n; in blockif_proc() local 293 if ((n = preadv(bc->bc_fd, br->br_iov, br->br_iovcnt, in blockif_proc() 297 br->br_resid -= n; in blockif_proc() 304 n = pread(bc->bc_fd, buf, len, br->br_offset + off); in blockif_proc() 305 if (n < 0) { in blockif_proc() 309 len = (size_t)n; in blockif_proc() 334 if ((n = pwritev(bc->bc_fd, br->br_iov, br->br_iovcnt, in blockif_proc() 338 br->br_resid -= n; in blockif_proc() 361 n = pwrite(bc->bc_fd, buf, len, br->br_offset + off); in blockif_proc() 362 if (n < 0) { in blockif_proc() [all …]
|
H A D | gdb.c | 1753 int n; in gdb_readable() local 1755 if (ioctl(fd, FIONREAD, &n) == -1) { in gdb_readable() 1759 assert(n >= 0); in gdb_readable() 1760 pending = n; in gdb_readable()
|
H A D | hdac_reg.h | 81 #define _HDAC_ISDOFFSET(n, iss, oss) (0x80 + ((n) * 0x20)) argument 82 #define _HDAC_ISDCTL(n, iss, oss) (0x00 + _HDAC_ISDOFFSET(n, iss, oss)) argument 83 #define _HDAC_ISDSTS(n, iss, oss) (0x03 + _HDAC_ISDOFFSET(n, iss, oss)) argument 84 #define _HDAC_ISDPICB(n, iss, oss) (0x04 + _HDAC_ISDOFFSET(n, iss, oss)) argument 85 #define _HDAC_ISDCBL(n, iss, oss) (0x08 + _HDAC_ISDOFFSET(n, iss, oss)) argument 86 #define _HDAC_ISDLVI(n, iss, oss) (0x0c + _HDAC_ISDOFFSET(n, iss, oss)) argument 87 #define _HDAC_ISDFIFOD(n, iss, oss) (0x10 + _HDAC_ISDOFFSET(n, iss, oss)) argument 88 #define _HDAC_ISDFMT(n, iss, oss) (0x12 + _HDAC_ISDOFFSET(n, iss, oss)) argument 89 #define _HDAC_ISDBDPL(n, iss, oss) (0x18 + _HDAC_ISDOFFSET(n, iss, oss)) argument 90 #define _HDAC_ISDBDPU(n, iss, oss) (0x1c + _HDAC_ISDOFFSET(n, iss, oss)) argument [all …]
|
H A D | pci_e82545.c | 837 int left, lim, maxpktsz, maxpktdesc, bufsz, i, n, size; in e82545_rx_callback() local 868 for (lim = size / 4; lim > 0 && left >= maxpktdesc; lim -= n) { in e82545_rx_callback() 892 n = (len + bufsz - 1) / bufsz; in e82545_rx_callback() 895 len, n, head); in e82545_rx_callback() 907 n = 0; in e82545_rx_callback() 913 for (i = 0; i < n - 1; i++) { in e82545_rx_callback() 938 head = (head + n) % size; in e82545_rx_callback() 939 left -= n; in e82545_rx_callback()
|
H A D | pci_hda.c | 228 #define HDAC_ISTREAM(n, iss, oss) \ argument 229 [_HDAC_ISDCTL(n, iss, oss)] = hda_set_sdctl, \ 230 [_HDAC_ISDCTL(n, iss, oss) + 2] = hda_set_sdctl2, \ 231 [_HDAC_ISDSTS(n, iss, oss)] = hda_set_sdsts, \ 233 #define HDAC_OSTREAM(n, iss, oss) \ argument 234 [_HDAC_OSDCTL(n, iss, oss)] = hda_set_sdctl, \ 235 [_HDAC_OSDCTL(n, iss, oss) + 2] = hda_set_sdctl2, \ 236 [_HDAC_OSDSTS(n, iss, oss)] = hda_set_sdsts, \
|
H A D | pci_virtio_9p.c | 162 size_t n = preq->vsr_niov - preq->vsr_respidx; in pci_vt9p_get_buffer() local 165 n * sizeof(struct iovec)); in pci_vt9p_get_buffer() 166 *niov = n; in pci_vt9p_get_buffer() 208 int n; in pci_vt9p_notify() local 213 n = vq_getchain(vq, iov, VT9P_MAX_IOV, &req); in pci_vt9p_notify() 214 assert(n >= 1 && n <= VT9P_MAX_IOV); in pci_vt9p_notify() 226 preq->vsr_niov = n; in pci_vt9p_notify() 229 for (int i = 0; i < n; i++) { in pci_vt9p_notify()
|
H A D | pci_virtio_block.c | 285 int i, n; in pci_vtblk_proc() local 293 n = vq_getchain(vq, iov, BLOCKIF_IOV_MAX + 2, &req); in pci_vtblk_proc() 303 assert(n >= 2 && n <= BLOCKIF_IOV_MAX + 2); in pci_vtblk_proc() 309 memcpy(&io->io_req.br_iov, &iov[1], sizeof(struct iovec) * (n - 2)); in pci_vtblk_proc() 310 io->io_req.br_iovcnt = n - 2; in pci_vtblk_proc() 312 io->io_status = (uint8_t *)iov[--n].iov_base; in pci_vtblk_proc() 314 assert(iov[n].iov_len == 1); in pci_vtblk_proc() 330 assert(n == (writeop ? req.readable : req.writable)); in pci_vtblk_proc() 333 for (i = 1; i < n; i++) { in pci_vtblk_proc()
|
H A D | pci_virtio_console.c | 438 int len, n; in pci_vtcon_sock_rx() local 461 n = vq_getchain(vq, &iov, 1, &req); in pci_vtcon_sock_rx() 462 assert(n == 1); in pci_vtcon_sock_rx() 463 len = readv(sock->vss_conn_fd, &iov, n); in pci_vtcon_sock_rx() 599 int n; in pci_vtcon_control_send() local 606 n = vq_getchain(vq, &iov, 1, &req); in pci_vtcon_control_send() 607 assert(n == 1); in pci_vtcon_control_send() 626 int n; in pci_vtcon_notify_tx() local 632 n = vq_getchain(vq, iov, 1, &req); in pci_vtcon_notify_tx() 633 assert(n == 1); in pci_vtcon_notify_tx()
|
H A D | pci_virtio_input.c | 194 const int n = vq_getchain(vq, &iov, 1, &req); in pci_vtinput_notify_statusq() local 195 if (n <= 0) { in pci_vtinput_notify_statusq() 196 WPRINTF(("%s: invalid descriptor: %d", __func__, n)); in pci_vtinput_notify_statusq() 529 const int n = vq_getchain(vq, &iov, 1, &req); in vtinput_eventqueue_send_events() local 530 if (n <= 0) { in vtinput_eventqueue_send_events() 531 WPRINTF(("%s: invalid descriptor: %d", __func__, n)); in vtinput_eventqueue_send_events() 534 if (n != 1) { in vtinput_eventqueue_send_events() 537 __func__, n)); in vtinput_eventqueue_send_events()
|
H A D | pci_virtio_net.c | 277 int n = vq_getchain(vq, riov, VTNET_MAXSEGS - riov_len, in pci_vtnet_rx() local 281 if (n == 0) { in pci_vtnet_rx() 306 if (n == -1) { in pci_vtnet_rx() 316 assert(n >= 1 && riov_len + n <= VTNET_MAXSEGS); in pci_vtnet_rx() 317 riov_len += n; in pci_vtnet_rx() 323 size_t c = count_iov(riov, n); in pci_vtnet_rx() 331 info[n_chains].len = (uint32_t)count_iov(riov, n); in pci_vtnet_rx() 334 riov += n; in pci_vtnet_rx() 452 int n; in pci_vtnet_proctx() local 458 n = vq_getchain(vq, iov, VTNET_MAXSEGS, &req); in pci_vtnet_proctx() [all …]
|
H A D | pci_virtio_rnd.c | 112 int len, n; in pci_vtrnd_notify() local 122 n = vq_getchain(vq, &iov, 1, &req); in pci_vtrnd_notify() 123 assert(n == 1); in pci_vtrnd_notify()
|
H A D | pci_virtio_scsi.c | 584 int iolen, n; in pci_vtscsi_controlq_notify() local 589 n = vq_getchain(vq, iov, VTSCSI_MAXSEG, &req); in pci_vtscsi_controlq_notify() 590 assert(n >= 1 && n <= VTSCSI_MAXSEG); in pci_vtscsi_controlq_notify() 592 bufsize = iov_to_buf(iov, n, &buf); in pci_vtscsi_controlq_notify() 594 buf_to_iov((uint8_t *)buf + bufsize - iolen, iolen, iov, n, in pci_vtscsi_controlq_notify() 620 int n; in pci_vtscsi_requestq_notify() local 626 n = vq_getchain(vq, iov, VTSCSI_MAXSEG, &vireq); in pci_vtscsi_requestq_notify() 627 assert(n >= 1 && n <= VTSCSI_MAXSEG); in pci_vtscsi_requestq_notify()
|
H A D | pci_virtio_viona.c | 419 int n; in pci_viona_control() local 421 n = vq_getchain(vq, iov, VIONA_CTLQ_MAXSEGS, &req); in pci_viona_control() 423 assert(n >= 1 && n <= VIONA_CTLQ_MAXSEGS); in pci_viona_control() 435 if (n < 3 || req.writable != 1 || req.readable + 1 != n || in pci_viona_control() 438 n, req.writable, req.readable); in pci_viona_control() 456 nsiov = n - 2; in pci_viona_control() 474 for (uint_t i = 0; i < n; i++) in pci_viona_control()
|
H A D | pci_xhci.c | 290 #define XHCI_PORTREG_PTR(x,n) &((x)->portregs[(n) - 1]) argument 291 #define XHCI_DEVINST_PTR(x,n) ((x)->devices[(n) - 1]) argument 292 #define XHCI_SLOTDEV_PTR(x,n) ((x)->slots[(n) - 1]) argument
|
H A D | pci_xhci.h | 169 #define XHCI_INCTX_0_DROP_MASK(n) (1U << (n)) argument 171 #define XHCI_INCTX_1_ADD_MASK(n) (1U << (n)) argument
|
H A D | qemu_loader.c | 32 #define strncpy(p, q, n) strncpy((char *)(p), (char *)(q), (n)) argument
|
H A D | smbiostbl.c | 90 uint16_t *n); 383 uint16_t *n); 487 uint16_t *n); 503 uint16_t *n); 544 uint16_t *n); 559 uint16_t *n); 574 uint16_t *n); 616 uint16_t *n) in smbios_generic_initializer() argument 622 entry->handle = *n + 1; in smbios_generic_initializer() 654 (*n)++; in smbios_generic_initializer() [all …]
|
H A D | sockstream.c | 47 ssize_t n; in stream_read() local 52 n = read(fd, p + len, nbytes - len); in stream_read() 53 if (n == 0) in stream_read() 56 if (n < 0) { in stream_read() 59 return (n); in stream_read() 61 len += n; in stream_read() 71 ssize_t n; in stream_write() local 77 n = write(fd, p + len, nbytes - len); in stream_write() 79 n = send(fd, p + len, nbytes - len, MSG_NOSIGNAL); in stream_write() 81 if (n == 0) in stream_write() [all …]
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | Dialers | 47 # \n - send new-line 57 develcon "" "" \pr\ps\c est:\007 \E\D\e \n\007 132 # o4=n\r\c set option 4 to 'n' (don't disconnect on rcvd spaces) 140 att4024 =+-, "" atzod,o12=y,o4=n\r\c \006 atT\T\r\c ed 154 # o4=n, set option 4 to 'n' (don't disconnect on rcvd spaces) 162 att2212c =+-, "" atzod,o12=y,o4=n\r\c \006 atT\T\r\c ed 163 att2212C =+-, "" atzod,o12=y,o4=n\r\c \006 atT\T\r\c ed 203 # o4=n, set option 4 to 'n' (don't disconnect on rcvd spaces) 217 att2224ceo =+-, "" atzod,o12=y,o4=n,\\n3\\c1\\j0\\q0\\g0\r\c \006 atT\T\r\c Connected 218 att2224CEO =+-, "" atzod,o12=y,o4=n,\\n3\\c1\\j0\\q0\\g0\r\c \006 atT\T\r\c Connected [all …]
|
H A D | Grades | 71 low n Any User Any
|
H A D | conn.c | 938 int i, j, n; local 941 n = 0; 943 n++; 946 || (type == P_EVEN && (n&01) != 0) 947 || (type == P_ODD && (n&01) == 0)) 1241 nap(n) in nap() argument 1242 unsigned n; in nap() 1246 if (n==0) 1248 tv.tv_sec = n/60; 1249 tv.tv_usec = ((n%60)*1000000L)/60; [all …]
|
H A D | gename.c | 53 int n; local 62 n = sysseq(sys); 65 pre, SYSNSIZE, sys, grade, syslst[n].job); 68 pre, sys, syslst[n].job & 0xffff, 69 ++syslst[n].subjob & 0xfff); 92 unsigned int n; local 115 if (fscanf(fp, "%4x", &n) != 1) { 116 n = rand(); 127 n = rand(); 130 n++; [all …]
|
H A D | getprm.c | 191 wchar_t *cl, *cr, *n; local 214 for (n=wcbuf ;; n=cl+1) { 215 cl = wcschr(n, (wchar_t)'!'); 218 (void) wcstombs(file, n, MAXFULLNAME); 223 if (cl == n) /* leading ! */ 225 if (WEQUALSN(myname, n, cl - n) && myname[cl - n] == NULLCHAR) 228 (void) wcsncpy(tmpbuf, n, cl-n); 229 tmpbuf[cl-n] = NULLCHAR; 233 if (cl != (cr = wcsrchr(n, (wchar_t)'!'))) {
|
H A D | gtcfile.c | 53 int n; in commitall() local 71 n = retseq(csave[i].sys); in commitall() 73 SYSNSIZE, csave[i].sys, csave[i].grade, n); in commitall()
|