/titanic_41/usr/src/cmd/ipf/lib/common/ |
H A D | ntomask.c | 14 int ntomask(v, nbits, ap) in ntomask() argument 15 int v, nbits; in ntomask() 20 if (nbits < 0) 26 if (nbits > 32 || use_inet6 != 0) 28 if (nbits == 0) { 32 mask <<= (32 - nbits); 38 if (nbits > 128) 40 fill6bits(nbits, ap);
|
/titanic_41/usr/src/uts/common/sys/ |
H A D | bitmap.h | 104 #define BT_BITOUL(nbits) \ argument 105 (((nbits) + BT_NBIPUL - 1l) / BT_NBIPUL) 106 #define BT_SIZEOFMAP(nbits) \ argument 107 (BT_BITOUL(nbits) * sizeof (ulong_t)) 116 #define BT_BITOUL32(nbits) \ argument 117 (((nbits) + BT_NBIPUL32 - 1l) / BT_NBIPUL32) 118 #define BT_SIZEOFMAP32(nbits) \ argument 119 (BT_BITOUL32(nbits) * sizeof (uint_t)) 143 extern index_t bt_availbit(ulong_t *bitmap, size_t nbits);
|
/titanic_41/usr/src/cmd/ssh/libssh/common/ |
H A D | kexgexs.c | 52 int min = -1, max = -1, nbits = -1, type; in kexgex_server() local 65 nbits = packet_get_int(); in kexgex_server() 72 nbits = packet_get_int(); in kexgex_server() 82 if (max < min || nbits < min || max < nbits) in kexgex_server() 84 min, nbits, max); in kexgex_server() 87 dh = choose_dh(min, nbits, max); in kexgex_server() 152 min, nbits, max, in kexgex_server()
|
H A D | kexgexc.c | 52 int min, max, nbits; in kexgex_client() local 55 nbits = dh_estimate(kex->we_need * 8); in kexgex_client() 62 packet_put_int(nbits); in kexgex_client() 73 packet_put_int(nbits); in kexgex_client() 78 min, nbits, max); in kexgex_client() 169 min, nbits, max, in kexgex_client()
|
/titanic_41/usr/src/uts/common/io/rtw/ |
H A D | rtwphyio.c | 105 uint_t nbits) in rtw_rf_hostbangbits() argument 111 "%s: %u bits, %08x, %s\n", __func__, nbits, bits, in rtw_rf_hostbangbits() 121 mask = 1 << (nbits - 1); in rtw_rf_hostbangbits() 123 for (i = 0; i < nbits; i++) { in rtw_rf_hostbangbits() 239 uint_t nbits; in rtw_rf_hostwrite() local 248 nbits = 16; in rtw_rf_hostwrite() 256 nbits = 32; in rtw_rf_hostwrite() 267 nbits = 22; in rtw_rf_hostwrite() 277 rtw_rf_hostbangbits(regs, bits, lo_to_hi, nbits); in rtw_rf_hostwrite()
|
/titanic_41/usr/src/uts/sun4u/sunfire/io/ |
H A D | jtag.c | 170 #define jtag_data(reg, nbits) (*(reg) >> (32 - (nbits))) argument 181 #define TAP_SHIFT(reg, data, nbits) \ argument 182 *(reg) = ((data<<16) | ((nbits-1)<<12) | JTAG_SHIFT); \ 192 #define TAP_SHIFT_CONSTANT(reg, val, nbits, status) \ argument 193 status = tap_shift_constant(reg, val, nbits); \ 197 #define TAP_SHIFT_SINGLE(reg, val, nbits, status) \ argument 198 status = tap_shift_single(reg, val, nbits); \ 202 #define TAP_SHIFT_MULTIPLE(reg, in, nbits, out, status) \ argument 203 status = tap_shift_multiple(reg, in, nbits, out); \ 381 static void jtag_bf_zero(u_char *s, int nbits); [all …]
|
/titanic_41/usr/src/uts/common/krtld/ |
H A D | reloc.h | 259 #define REL_ERR_UNNOBITS(lml, file, sym, rtype, nbits) \ argument 263 _kobj_printf(ops, MSG_REL_UNNOBITS, (nbits)) 265 #define REL_ERR_LOSEBITS(lml, file, sym, rtype, uvalue, nbits, off) \ argument 270 _kobj_printf(ops, MSG_REL_LOSEBITS, (int)(nbits)); \ 298 #define REL_ERR_UNNOBITS(lml, file, sym, rtype, nbits) \ argument 301 ((sym) ? demangle(sym) : MSG_INTL(MSG_STR_UNKNOWN)), (nbits))) 303 #define REL_ERR_LOSEBITS(lml, file, sym, rtype, uvalue, nbits, off) \ argument 307 EC_XWORD((uvalue)), (nbits), EC_NATPTR((off))))
|
/titanic_41/usr/src/uts/common/os/ |
H A D | bitmap.c | 52 bt_availbit(ulong_t *bitmap, size_t nbits) in bt_availbit() argument 62 nbits -= 1; in bt_availbit() 63 maxword = nbits >> BT_ULSHIFT; in bt_availbit() 77 maxbit = wx == maxword ? nbits & BT_ULMASK : BT_NBIPUL - 1; in bt_availbit()
|
H A D | errorq.c | 476 errorq_availbit(ulong_t *bitmap, size_t nbits, index_t curindex) in errorq_availbit() argument 482 index_t maxindex = nbits - 1; in errorq_availbit() 505 nbits - (nextword << BT_ULSHIFT))) != -1) in errorq_availbit()
|
/titanic_41/usr/src/uts/common/vm/ |
H A D | hat_refmod.c | 91 uint_t nbits; /* number of bits */ in hat_startstat() local 125 nbits = sizeof (as->a_vbits) * NBBY; in hat_startstat() 126 for (bn = 1, id = 2; bn < (nbits - 1); bn++, id <<= 1) in hat_startstat() 129 if (bn >= (nbits - 1)) { in hat_startstat() 406 uint_t nbits; in hrm_setbits() local 411 nbits = bits << spb; /* bit mask */ in hrm_setbits() 412 hrm->hrm_bits[bo] |= nbits; in hrm_setbits()
|
/titanic_41/usr/src/uts/common/io/dmfe/ |
H A D | dmfe_mii.c | 146 dmfe_poke_mii(dmfe_t *dmfep, uint32_t mii_data, uint_t nbits) in dmfe_poke_mii() argument 152 for (; nbits > 0; mii_data <<= 1, --nbits) { in dmfe_poke_mii() 198 dmfe_mii_command(dmfe_t *dmfep, uint32_t command_word, int nbits) in dmfe_mii_command() argument 204 dmfe_poke_mii(dmfep, command_word, nbits); in dmfe_mii_command()
|
/titanic_41/usr/src/common/mc/mc-amd/ |
H A D | mcamd_rowcol.c | 173 int nbits = bamp->bam_nrows; in iaddr_to_row() local 176 for (abitno = 0; abitno < nbits; abitno++) { in iaddr_to_row() 199 int nbits = bamp->bam_nrows; in row_to_iaddr() local 201 for (abitno = 0; abitno < nbits; abitno++) { in row_to_iaddr() 221 int nbits = bamp->bam_ncols; in iaddr_to_col() local 227 nbits--; in iaddr_to_col() 229 for (abitno = 0; abitno < nbits; abitno++) { in iaddr_to_col() 252 int nbits = bamp->bam_ncols; in col_to_iaddr() local 258 nbits--; in col_to_iaddr() 260 for (abitno = 0; abitno < nbits; abitno++) { in col_to_iaddr()
|
/titanic_41/usr/src/lib/libdtrace/common/ |
H A D | dt_regset.c | 97 ulong_t nbits = drp->dr_size - 1; in dt_regset_alloc() local 98 ulong_t maxw = nbits >> BT_ULSHIFT; in dt_regset_alloc() 107 ulong_t maxb = (wx == maxw) ? nbits & BT_ULMASK : BT_NBIPUL - 1; in dt_regset_alloc()
|
/titanic_41/usr/src/cmd/vi/port/ |
H A D | printf.c | 77 int length,mask1,nbits,n; in viprintf() local 210 nbits = 3; in viprintf() 215 nbits = 4; in viprintf() 225 while (num = (num >> nbits) & mask2); in viprintf()
|
/titanic_41/usr/src/cmd/mdb/intel/modules/amd_opteron/ |
H A D | ao.c | 61 int nbits, i; in ao_nbcfg_describe() local 66 for (nbits = 0, bm = ao_nbcfg_bits, i = 0; in ao_nbcfg_describe() 74 nbits++; in ao_nbcfg_describe()
|
/titanic_41/usr/src/cmd/format/ |
H A D | defect.c | 253 if (def->nbits != UNKNOWN) in pr_defect() 254 fmt_print("%8d", def->nbits); in pr_defect() 422 def.bfi = def.nbits = UNKNOWN; in add_ldef()
|
H A D | menu_defect.c | 289 def.bfi = def.nbits = UNKNOWN; in d_add() 327 def.nbits = input(FIO_INT, "Enter defect's length (in bits)", in d_add() 590 dptr->bfi, dptr->nbits, dptr->sect); in d_dump() 711 &dptr->head, &dptr->bfi, &dptr->nbits, &dptr->sect); in d_load()
|
H A D | defect.h | 59 short nbits; member
|
H A D | ctlr_ata.c | 313 new_defect->nbits = UNKNOWN; in ata_convert_list() 462 if ((dlist->bfi != UNKNOWN) || (dlist->nbits != UNKNOWN)) { in ata_wr_cur()
|
/titanic_41/usr/src/uts/sun4u/io/ |
H A D | mc-us3i.c | 1012 int i, j, nbits, nbanks; in mc_add_xor_banks() local 1038 nbits = 0; in mc_add_xor_banks() 1040 if ((((mask >> i) & 1) == 1) && (nbits < 4)) { in mc_add_xor_banks() 1041 dselect[nbits] = i; in mc_add_xor_banks() 1042 nbits++; in mc_add_xor_banks() 1047 nbanks = 1 << nbits; in mc_add_xor_banks() 1056 for (j = 0; j < nbits; j++) { in mc_add_xor_banks()
|
/titanic_41/usr/src/cmd/localedef/ |
H A D | wide.c | 60 int nbits; member 632 _nbits = mb_encodings[i].nbits; in set_wide_encoding()
|
/titanic_41/usr/src/uts/common/io/audio/drv/audiocmi/ |
H A D | audiocmi.c | 256 #define MASK(nbits) ((1 << (nbits)) - 1) argument 257 #define SCALE(val, nbits) \ argument 258 ((uint8_t)((((val) * MASK(nbits)) / 100)) << (8 - (nbits)))
|
/titanic_41/usr/src/uts/common/io/audio/drv/audiols/ |
H A D | audiols.c | 755 #define MASK(nbits) ((1 << (nbits)) - 1) argument 756 #define SCALE(val, nbits) \ argument 757 ((uint8_t)((((val) * MASK(nbits)) / 100)) << (8 - (nbits)))
|
/titanic_41/usr/src/common/bignum/ |
H A D | bignumimpl.c | 1900 uint32_t nbits; in big_modexp_ncp_int() local 1903 nbits = big_numbits(e); in big_modexp_ncp_int() 1904 if (nbits < 50) { in big_modexp_ncp_int() 1945 bitind = nbits % BIG_CHUNK_SIZE; in big_modexp_ncp_int() 1950 for (i = nbits / BIG_CHUNK_SIZE; i >= 0; i--) { in big_modexp_ncp_int() 2054 uint32_t nbits, groupbits, apowerssize; in big_modexp_ncp_float() local 2071 nbits = big_numbits(e); in big_modexp_ncp_float() 2072 if (nbits < 50) { in big_modexp_ncp_float() 2182 bitind = nbits % BIG_CHUNK_SIZE; in big_modexp_ncp_float() 2187 for (i = nbits / BIG_CHUNK_SIZE; i >= 0; i--) { in big_modexp_ncp_float() [all …]
|
/titanic_41/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/ |
H A D | bnxe_hw_debug.c | 161 static void _val2bits(IN u64_t val, IN u8_t nbits, OUT char *s) in _val2bits() argument 165 DbgBreakIf(nbits > 64); in _val2bits() 167 for(i = 0; i < nbits; ++i) { in _val2bits() 169 s[nbits-1-i] = '0'; in _val2bits() 171 s[nbits-1-i] = '1'; in _val2bits()
|