/illumos-gate/usr/src/uts/common/xen/io/ |
H A D | xenbus_comms.c | 105 return ((prod - cons) <= XENSTORE_RING_SIZE); in check_indexes() 113 if ((XENSTORE_RING_SIZE - (prod - cons)) < *len) in get_output_chunk() 114 *len = XENSTORE_RING_SIZE - (prod - cons); in get_output_chunk() 123 if ((prod - cons) < *len) in get_input_chunk() 124 *len = prod - cons; in get_input_chunk() 134 XENSTORE_RING_IDX cons, prod; in xb_write() local 157 prod = intf->req_prod; in xb_write() 159 if (!check_indexes(cons, prod)) in xb_write() 188 XENSTORE_RING_IDX cons, prod; in xb_read() local 210 prod = intf->rsp_prod; in xb_read() [all …]
|
H A D | xnb.c | 637 (RING_SIZE(_r) - (loop - prod))) ? \ 639 (RING_SIZE(_r) - (loop - prod))) 651 RING_IDX loop, prod, end; in xnb_to_peer() local 685 prod = xnbp->xnb_rx_ring.rsp_prod_pvt; in xnb_to_peer() 757 prod++; in xnb_to_peer() 785 prod = xnbp->xnb_rx_ring.rsp_prod_pvt; in xnb_to_peer() 829 prod++; in xnb_to_peer() 834 xnbp->xnb_rx_ring.rsp_prod_pvt = prod; in xnb_to_peer() 968 RING_IDX loop, prod; in xnb_copy_to_peer() local 1007 prod = xnbp->xnb_rx_ring.rsp_prod_pvt; in xnb_copy_to_peer() [all …]
|
H A D | xencons.c | 543 XENCONS_RING_IDX cons, prod; in xencons_rxint() local 585 prod = ifp->in_prod; in xencons_rxint() 587 cc = prod - cons; in xencons_rxint() 865 XENCONS_RING_IDX cons, prod; in xcasync_start() local 868 prod = ifp->out_prod; in xcasync_start() 871 ifp->out[MASK_XENCONS_IDX(prod++, ifp->out)] = in xcasync_start() 880 ifp->out_prod = prod; in xcasync_start() 1287 XENCONS_RING_IDX prod; in xenconsputchar() local 1309 prod = ifp->out_prod; in xenconsputchar() 1310 ifp->out[MASK_XENCONS_IDX(prod++, ifp->out)] = c; in xenconsputchar() [all …]
|
H A D | xnf.c | 1432 RING_IDX cons, prod, i; in xnf_tx_clean_ring() local 1435 prod = xnfp->xnf_tx_ring.sring->rsp_prod; in xnf_tx_clean_ring() 1441 DTRACE_PROBE2(xnf_tx_clean_range, int, cons, int, prod); in xnf_tx_clean_ring() 1442 for (i = cons; i != prod; i++) { in xnf_tx_clean_ring() 1507 xnfp->xnf_tx_ring.rsp_cons = prod; in xnf_tx_clean_ring() 2271 xnf_rx_one_packet(xnf_t *xnfp, RING_IDX prod, RING_IDX *consp, mblk_t **mpp) in xnf_rx_one_packet() argument 2290 while (cons != prod) { in xnf_rx_one_packet() 2513 RING_IDX prod; in xnf_rx_collect() local 2517 prod = xnfp->xnf_rx_ring.sring->rsp_prod; in xnf_rx_collect() 2523 while (xnfp->xnf_rx_ring.rsp_cons != prod) { in xnf_rx_collect() [all …]
|
/illumos-gate/usr/src/lib/libc/port/fp/ |
H A D | muldi3.c | 104 union uu u, v, low, prod; in ___muldi3() local 132 prod.q = __lmulq(u0, v0); in ___muldi3() 157 prod.ul[H] = high + (negmid ? -mid : mid) + low.ul[L] + in ___muldi3() 159 prod.ul[L] = low.ul[L]; in ___muldi3() 161 return (negall ? -prod.q : prod.q); in ___muldi3() 190 union uu prod; in __lmulq() local 240 prod.ul[H] = prodh; in __lmulq() 241 prod.ul[L] = prodl; in __lmulq() 242 return (prod.q); in __lmulq()
|
/illumos-gate/usr/src/cmd/dispadmin/ |
H A D | subr.c | 106 longlong_t prod; in _hrtnewres() local 216 prod = dint * dto_res; in _hrtnewres() 232 prod = prod + drem; in _hrtnewres() 235 prod = prod + drem; in _hrtnewres() 239 quot = prod / dfrom_res; in _hrtnewres()
|
/illumos-gate/usr/src/cmd/od/ |
H A D | od.c | 85 int prod; /* producer index */ member 378 b->prod &= b->mask; in refill() 379 c = (b->prod + want > (b->mask + 1)) ? in refill() 380 b->mask - b->prod : in refill() 383 n = fread(b->data + b->prod, 1, c, input); in refill() 397 b->prod += n; in refill() 403 b->data[b->prod & b->mask] = 0; in refill() 404 b->prod++; in refill() 405 b->prod &= b->mask; in refill() 860 buffer.prod = 0; in main()
|
/illumos-gate/usr/src/uts/common/io/qede/579xx/drivers/ecore/ |
H A D | ecore_int_api.h | 91 u32 prod = 0; in ecore_sb_update_sb_idx() local 96 prod = OSAL_LE32_TO_CPU(sb_info->sb_virt->prod_index) & in ecore_sb_update_sb_idx() 98 if (sb_info->sb_ack != prod) { in ecore_sb_update_sb_idx() 99 sb_info->sb_ack = prod; in ecore_sb_update_sb_idx()
|
/illumos-gate/usr/src/cmd/priocntl/ |
H A D | subr.c | 580 longlong_t prod; local 689 prod = dint * dto_res; 705 prod = prod + drem; 708 prod = prod + drem; 712 quot = prod / dfrom_res;
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/smbios/ |
H A D | smbios_enum.c | 217 char *type, *manuf = NULL, *prod = NULL, *asset = NULL, *loc = NULL; in smbios_make_dimm() local 238 prod = topo_mod_clean_str(mod, smb_info->smbi_product); in smbios_make_dimm() 332 if (rc == 0 && prod != NULL) in smbios_make_dimm() 334 "product", TOPO_PROP_IMMUTABLE, prod, &err); in smbios_make_dimm() 351 topo_mod_strfree(mod, prod); in smbios_make_dimm() 426 char *manuf = NULL, *prod = NULL, *asset = NULL; in smbios_enum_motherboard() local 447 prod = topo_mod_clean_str(mod, smb_info.smbi_product); in smbios_enum_motherboard() 521 if (rc == 0 && prod != NULL) in smbios_enum_motherboard() 523 TOPO_PROP_MB_PRODUCT, TOPO_PROP_IMMUTABLE, prod, &err); in smbios_enum_motherboard() 575 topo_mod_strfree(mod, prod); in smbios_enum_motherboard()
|
/illumos-gate/usr/src/common/bignum/ |
H A D | bignumimpl.c | 2052 uint32_t *nint, *prod; in big_modexp_ncp_float() local 2084 nint = prod = NULL; in big_modexp_ncp_float() 2167 prod[i] = tmp->value[i]; in big_modexp_ncp_float() 2170 prod[i] = 0; in big_modexp_ncp_float() 2178 prod[i] = 0; in big_modexp_ncp_float() 2192 prod, nlen); in big_modexp_ncp_float() 2207 d16r, prod, nlen); in big_modexp_ncp_float() 2218 d16r, prod, nlen); in big_modexp_ncp_float() 2274 if (prod != NULL) { in big_modexp_ncp_float() 2518 BIGNUM t1, t2, t3, prod; in big_sqrt_pos() local [all …]
|
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/x86pi/ |
H A D | x86pi_subr.c | 180 char *prod = NULL; in x86pi_set_auth() local 220 &prod); in x86pi_set_auth() 221 if (result != 0 || prod == NULL) { in x86pi_set_auth() 227 prod = (char *)hcfmri->product; in x86pi_set_auth() 228 if (prod == NULL) { in x86pi_set_auth() 238 if (prod != NULL) { in x86pi_set_auth() 240 FM_FMRI_AUTH_PRODUCT, TOPO_PROP_IMMUTABLE, prod, in x86pi_set_auth()
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/usb/ |
H A D | topo_usb_metadata.c | 365 char buf[TOPO_USB_META_LINE_MAX], *first, *prod; in topo_usb_load_metadata() local 377 FM_FMRI_AUTH_PRODUCT, &prod, &ret)) != 0) { in topo_usb_load_metadata() 383 if (snprintf(pbuf, sizeof (pbuf), "maps/%s-usb.usbtopo", prod) >= in topo_usb_load_metadata() 387 topo_mod_strfree(mod, prod); in topo_usb_load_metadata() 390 topo_mod_strfree(mod, prod); in topo_usb_load_metadata()
|
H A D | topo_usb.c | 1404 char *vend = NULL, *prod = NULL, *serial = NULL, *speed = NULL; in topo_usb_enum_lport() local 1446 if (di_prop_strings(prop, &prod) != 1) in topo_usb_enum_lport() 1447 prod = NULL; in topo_usb_enum_lport() 1481 topo_inst, NULL, auth, prod, revbuf, serial)) == NULL) { in topo_usb_enum_lport() 1576 if (prod != NULL && topo_prop_set_string(tn, TOPO_PGROUP_USB_PROPS, in topo_usb_enum_lport() 1577 TOPO_PGROUP_USB_PROPS_PNAME, TOPO_PROP_IMMUTABLE, prod, &ret) != in topo_usb_enum_lport()
|
/illumos-gate/usr/src/common/ficl/ |
H A D | double.c | 129 ficl2Unsigned prod; in ficl2IntegerMultiply() local 143 prod = ficl2UnsignedMultiply(x, y); in ficl2IntegerMultiply() 144 FICL_2INTEGER_SET(FICL_2UNSIGNED_GET_HIGH(prod), in ficl2IntegerMultiply() 145 FICL_2UNSIGNED_GET_LOW(prod), result); in ficl2IntegerMultiply()
|
H A D | vm.c | 1485 ficl2Integer prod; in ficlVmInnerLoop() local 1492 prod = ficl2IntegerMultiply(x, y); in ficlVmInnerLoop() 1494 ficl2IntegerDivideSymmetric(prod, z).quotient); in ficlVmInnerLoop() 1500 ficl2Integer prod; in ficlVmInnerLoop() local 1509 prod = ficl2IntegerMultiply(x, y); in ficlVmInnerLoop() 1510 qr = ficl2IntegerDivideSymmetric(prod, z); in ficlVmInnerLoop()
|
/illumos-gate/usr/src/contrib/bhyve/dev/usb/ |
H A D | usbdi.h | 356 #define USB_PRODUCT(prod) \ argument 357 .match_flag_product = 1, .idProduct = (prod) 359 #define USB_VP(vend,prod) \ argument 360 USB_VENDOR(vend), USB_PRODUCT(prod) 362 #define USB_VPI(vend,prod,info) \ argument 363 USB_VENDOR(vend), USB_PRODUCT(prod), USB_DRIVER_INFO(info)
|
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_mod.c | 834 char *prod = NULL; in topo_mod_auth() local 846 FM_FMRI_AUTH_PRODUCT, &prod, &err); in topo_mod_auth() 857 if (prod == NULL) in topo_mod_auth() 858 prod = topo_mod_product(mod); in topo_mod_auth() 870 if (!prod && !server && !csn && !psn) { in topo_mod_auth() 876 if (prod != NULL) { in topo_mod_auth() 877 err |= nvlist_add_string(auth, FM_FMRI_AUTH_PRODUCT, prod); in topo_mod_auth() 878 topo_mod_strfree(mod, prod); in topo_mod_auth()
|
H A D | topo_subr.c | 587 char *prod, *psn, *csn, *server; in topo_pgroup_hcset() local 602 if (nvlist_lookup_string(auth, FM_FMRI_AUTH_PRODUCT, &prod) == in topo_pgroup_hcset() 605 FM_FMRI_AUTH_PRODUCT, TOPO_PROP_IMMUTABLE, prod, in topo_pgroup_hcset()
|
/illumos-gate/usr/src/uts/common/io/yge/ |
H A D | yge.c | 493 int prod; in yge_init_rx_ring() local 502 for (prod = 0; prod < YGE_RX_RING_CNT; prod++) { in yge_init_rx_ring() 504 rxb = &port->p_rx_buf[prod]; in yge_init_rx_ring() 506 PUTADDR(ring, prod, rxb->b_paddr); in yge_init_rx_ring() 1667 int16_t prod; in yge_send() local 1688 prod = port->p_tx_prod; in yge_send() 1690 txb = &port->p_tx_buf[prod]; in yge_send() 1694 PUTADDR(ring, prod, txb->b_paddr); in yge_send() 1696 SYNCENTRY(ring, prod, DDI_DMA_SYNC_FORDEV); in yge_send() 1699 YGE_INC(prod, YGE_TX_RING_CNT); in yge_send() [all …]
|
/illumos-gate/usr/src/lib/fm/libdiagcode/common/ |
H A D | diagcode.c | 1257 unsigned char prod[BITV_MAX_BYTES]; in bitv_mul() local 1265 prod[i] = 0; in bitv_mul() 1285 prod[valbyte + bvbyte] += result & 0xff; in bitv_mul() 1293 bv->v[i] = prod[i]; in bitv_mul()
|
/illumos-gate/usr/src/uts/common/xen/dtrace/ |
H A D | xdt.c | 650 tbuf.meta[i]->cons = tbuf.meta[i]->prod; in xdt_attach_trace_buffers() 1747 uint32_t prod, cons, offset; in xdt_get_first_rec() local 1754 prod = tbuf.meta[cpuid]->prod; in xdt_get_first_rec() 1756 if (prod == cons) in xdt_get_first_rec()
|
/illumos-gate/usr/src/uts/common/io/usb/usba/ |
H A D | usbai_pipe_mgmt.c | 841 const char *prod, *mfg; in usb_pipe_xopen() local 843 prod = usba_device->usb_product_str; in usb_pipe_xopen() 844 if (prod == NULL) in usb_pipe_xopen() 845 prod = "Unknown Device"; in usb_pipe_xopen() 852 "USB device %s %s.", dname, dname, mfg, prod); in usb_pipe_xopen()
|
/illumos-gate/usr/src/uts/common/xen/public/ |
H A D | trace.h | 193 uint32_t prod; /* Offset of next item to be produced by Xen. */ member
|
/illumos-gate/usr/src/uts/common/io/usb/hcd/xhci/ |
H A D | xhci_endpoint.c | 491 const char *prod, *mfg; in xhci_endpoint_setup_context() local 493 prod = xd->xd_usbdev->usb_product_str; in xhci_endpoint_setup_context() 494 if (prod == NULL) in xhci_endpoint_setup_context() 495 prod = "Unknown Device"; in xhci_endpoint_setup_context() 503 ddi_driver_name(xd->xd_usbdev->usb_dip), prod, mfg); in xhci_endpoint_setup_context()
|