/illumos-gate/usr/src/lib/libdwarf/common/ |
H A D | dwarf_locationop_read.c | 136 Dwarf_Unsigned offset = startoffset_in; in _dwarf_read_loc_expr_op() local 143 if (offset > loc_block->bl_len) { in _dwarf_read_loc_expr_op() 148 if (offset == loc_len) { in _dwarf_read_loc_expr_op() 152 loc_ptr = (Dwarf_Small*)loc_block->bl_data + offset; in _dwarf_read_loc_expr_op() 160 curr_loc->lr_offset = offset; in _dwarf_read_loc_expr_op() 165 offset++; in _dwarf_read_loc_expr_op() 206 offset = offset + leb128_length; in _dwarf_read_loc_expr_op() 249 offset += address_size; in _dwarf_read_loc_expr_op() 263 offset = offset + 1; in _dwarf_read_loc_expr_op() 278 offset = offset + 1; in _dwarf_read_loc_expr_op() [all …]
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/et/ |
H A D | error_message.c | 33 int offset; local 40 offset = (int) l_offset; 44 cp = strerror(offset); 50 if (offset < sys_nerr) 51 return(sys_errlist[offset]); 61 return(ggss_error_table(offset)); 63 return(kadm_error_table(offset)); 65 return(kdb5_error_table(offset)); 67 return(kdc5_error_table(offset)); 69 return(kpws_error_table(offset)); [all …]
|
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/fcoei/ |
H A D | fcoei_lv.c | 842 int offset; in fcoei_initiate_ct_req() local 877 offset = 0; in fcoei_initiate_ct_req() 878 FCOE_V2B_1(ct->ct_rev, FPLD + offset); in fcoei_initiate_ct_req() 880 offset = 1; in fcoei_initiate_ct_req() 881 FCOE_V2B_3(ct->ct_inid, FPLD + offset); in fcoei_initiate_ct_req() 883 offset = 4; in fcoei_initiate_ct_req() 884 FCOE_V2B_1(ct->ct_fcstype, FPLD + offset); in fcoei_initiate_ct_req() 886 offset = 5; in fcoei_initiate_ct_req() 887 FCOE_V2B_1(ct->ct_fcssubtype, FPLD + offset); in fcoei_initiate_ct_req() 889 offset = 6; in fcoei_initiate_ct_req() [all …]
|
H A D | fcoei_eth.c | 217 int offset; in fcoei_process_unsol_xfer_rdy() local 237 offset = FCOE_B2V_4(frm->frm_payload); in fcoei_process_unsol_xfer_rdy() 261 bcopy(offset + (uint8_t *)xch->xch_fpkt->pkt_data, in fcoei_process_unsol_xfer_rdy() 272 FFM_PARAM(offset, nfrm); in fcoei_process_unsol_xfer_rdy() 283 offset += data_size; in fcoei_process_unsol_xfer_rdy() 303 bcopy(offset + (uint8_t *)xch->xch_fpkt->pkt_data, in fcoei_process_unsol_xfer_rdy() 322 FFM_PARAM(offset, nfrm); in fcoei_process_unsol_xfer_rdy() 356 uint32_t offset; in fcoei_process_unsol_els_req() local 404 offset = 4; in fcoei_process_unsol_els_req() 407 offset) = FCOE_B2V_4(frm->frm_payload + offset); in fcoei_process_unsol_els_req() [all …]
|
/illumos-gate/usr/src/cmd/auditstat/ |
H A D | auditstat.c | 127 int offset[12]; /* used to line the header up correctly */ in display_stats() local 132 s->as_generated, &(offset[0]), in display_stats() 133 s->as_nonattrib, &(offset[1]), in display_stats() 134 s->as_kernel, &(offset[2]), in display_stats() 135 s->as_audit, &(offset[3]), in display_stats() 136 s->as_auditctl, &(offset[4]), in display_stats() 137 s->as_enqueue, &(offset[5]), in display_stats() 138 s->as_written, &(offset[6]), in display_stats() 139 s->as_wblocked, &(offset[7]), in display_stats() 140 s->as_rblocked, &(offset[8]), in display_stats() [all …]
|
/illumos-gate/usr/src/uts/common/sys/nxge/ |
H A D | nxge_common_impl.h | 187 #define NXGE_PIO_READ8(handle, devaddr, offset) \ argument 188 (ddi_get8(handle, (uint8_t *)((caddr_t)devaddr + offset))) 190 #define NXGE_PIO_READ16(handle, devaddr, offset) \ argument 191 (ddi_get16(handle, (uint16_t *)((caddr_t)devaddr + offset))) 193 #define NXGE_PIO_READ32(handle, devaddr, offset) \ argument 194 (ddi_get32(handle, (uint32_t *)((caddr_t)devaddr + offset))) 196 #define NXGE_PIO_READ64(handle, devaddr, offset) \ argument 197 (ddi_get64(handle, (uint64_t *)((caddr_t)devaddr + offset))) 199 #define NXGE_PIO_WRITE8(handle, devaddr, offset, data) \ argument 200 (ddi_put8(handle, (uint8_t *)((caddr_t)devaddr + offset), data)) [all …]
|
/illumos-gate/usr/src/uts/common/io/hxge/ |
H A D | hpi_pfc.c | 173 uint64_t offset; in hpi_pfc_set_config() local 175 offset = PFC_CONFIG; in hpi_pfc_set_config() 176 REG_PIO_WRITE64(handle, offset, config.value); in hpi_pfc_set_config() 184 uint64_t offset; in hpi_pfc_get_config() local 186 offset = PFC_CONFIG; in hpi_pfc_get_config() 187 REG_PIO_READ64(handle, offset, &configp->value); in hpi_pfc_get_config() 326 int offset; in hpi_pfc_cfg_vlan_table_clear() local 333 offset = PFC_VLAN_TABLE + i * step; in hpi_pfc_cfg_vlan_table_clear() 334 REG_PIO_WRITE64(handle, offset, table_entry.value); in hpi_pfc_cfg_vlan_table_clear() 343 uint64_t offset; in hpi_pfc_cfg_vlan_table_entry_clear() local [all …]
|
H A D | hxge_common_impl.h | 142 #define HXGE_HPI_PIO_READ32(hpi_handle, offset) \ argument 144 (uint32_t *)(HPI_REGP(hpi_handle) + offset))) 147 #define HXGE_HPI_PIO_READ64(hpi_handle, offset) \ argument 149 (uint64_t *)(HPI_REGP(hpi_handle) + (uint32_t)offset))) 151 #define HXGE_HPI_PIO_READ64(hpi_handle, offset) \ argument 153 (uint64_t *)(HPI_REGP(hpi_handle) + offset))) 158 #define HXGE_HPI_PIO_WRITE32(hpi_handle, offset, data) { \ argument 162 (uint32_t)offset), data); \ 165 #define HXGE_HPI_PIO_WRITE64(hpi_handle, offset, data) { \ argument 169 (uint32_t)offset), data); \ [all …]
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | vuid_store.h | 63 ushort_t offset; /* Offset of value from seg addr */ member 93 #define vuid_set_boolean_bit(seg, offset) \ argument 94 (seg)->booleans[(offset)/BITSPERBYTE] |= \ 95 (1<<((BITSPERBYTE-1)-((offset)%BITSPERBYTE))) 96 #define vuid_clear_boolean_bit(seg, offset) \ argument 97 (seg)->booleans[(offset)/BITSPERBYTE] &= \ 98 (~(1<<((BITSPERBYTE-1)-((offset)%BITSPERBYTE)))) 99 #define vuid_get_boolean_bit(seg, offset) \ argument 100 ((seg)->booleans[(offset)/BITSPERBYTE] & \ 101 (1<<((BITSPERBYTE-1)-((offset)%BITSPERBYTE)))) [all …]
|
/illumos-gate/usr/src/lib/libsocket/inet/ |
H A D | inet6_opt.c | 69 inet6_opt_append(void *extbuf, socklen_t extlen, int offset, uint8_t type, in inet6_opt_append() argument 92 remainder = (offset + 2 + len) % align; in inet6_opt_append() 99 endlen = offset + padbytes + 2 + len; in inet6_opt_append() 108 p = (uint8_t *)extbuf + offset; in inet6_opt_append() 141 inet6_opt_finish(void *extbuf, socklen_t extlen, int offset) in inet6_opt_finish() argument 156 padbytes = 8 - (offset % 8); in inet6_opt_finish() 160 if ((offset + padbytes > extlen) || !extbuf) { in inet6_opt_finish() 164 return (offset + padbytes); in inet6_opt_finish() 168 p = (uint8_t *)extbuf + offset; in inet6_opt_finish() 187 return (offset + padbytes); in inet6_opt_finish() [all …]
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/ |
H A D | asn1.c | 841 CK_ULONG buf_len, offset, len, field_len; in ber_decode_PrivateKeyInfo() local 851 offset = 0; in ber_decode_PrivateKeyInfo() 852 rc = ber_decode_INTEGER(buf + offset, &ver, &len, &field_len); in ber_decode_PrivateKeyInfo() 856 offset += field_len; in ber_decode_PrivateKeyInfo() 858 rc = ber_decode_SEQUENCE(buf + offset, &alg, &len, &field_len); in ber_decode_PrivateKeyInfo() 897 CK_ULONG len, offset; in ber_encode_RSAPrivateKey() local 901 offset = 0; in ber_encode_RSAPrivateKey() 906 offset += len; in ber_encode_RSAPrivateKey() 909 offset += len; in ber_encode_RSAPrivateKey() 912 offset += len; in ber_encode_RSAPrivateKey() [all …]
|
/illumos-gate/usr/src/uts/common/io/qede/579xx/drivers/ecore/ |
H A D | ecore_dbg_fw_funcs.c | 1992 u32 offset = 0; in ecore_dump_str_param() local 1995 offset += ecore_dump_str(char_buf + offset, dump, param_name); in ecore_dump_str_param() 1999 *(char_buf + offset) = 1; in ecore_dump_str_param() 2000 offset++; in ecore_dump_str_param() 2003 offset += ecore_dump_str(char_buf + offset, dump, param_val); in ecore_dump_str_param() 2006 offset += ecore_dump_align(char_buf + offset, dump, offset); in ecore_dump_str_param() 2008 return BYTES_TO_DWORDS(offset); in ecore_dump_str_param() 2020 u32 offset = 0; in ecore_dump_num_param() local 2023 offset += ecore_dump_str(char_buf + offset, dump, param_name); in ecore_dump_num_param() 2027 *(char_buf + offset) = 0; in ecore_dump_num_param() [all …]
|
/illumos-gate/usr/src/common/crypto/modes/ |
H A D | modes.c | 47 offset_t offset; in crypto_init_ptrs() local 58 offset = out->cd_offset; in crypto_init_ptrs() 60 offset >= uiop->uio_iov[vec_idx].iov_len; in crypto_init_ptrs() 61 offset -= uiop->uio_iov[vec_idx++].iov_len) in crypto_init_ptrs() 64 *current_offset = offset; in crypto_init_ptrs() 72 offset = out->cd_offset; in crypto_init_ptrs() 73 for (mp = out->cd_mp; mp != NULL && offset >= MBLKL(mp); in crypto_init_ptrs() 74 offset -= MBLKL(mp), mp = mp->b_cont) in crypto_init_ptrs() 77 *current_offset = offset; in crypto_init_ptrs() 95 offset_t offset; in crypto_get_ptrs() local [all …]
|
/illumos-gate/usr/src/uts/common/io/nxge/npi/ |
H A D | npi_fflp.c | 181 uint64_t offset; in npi_fflp_vlan_tbl_dump() local 193 offset = FFLP_VLAN_OFFSET(vlan_id, FFLP_ENET_VLAN_TBL_REG); in npi_fflp_vlan_tbl_dump() 194 REG_PIO_READ64(handle, offset, &value); in npi_fflp_vlan_tbl_dump() 196 "%x\t %llx\t %llx\n", vlan_id, offset, value)); in npi_fflp_vlan_tbl_dump() 970 uint64_t offset; in npi_fflp_cfg_fcram_partition() local 981 offset = FFLP_PART_OFFSET(partid, FFLP_FLW_PRT_SEL_REG); in npi_fflp_cfg_fcram_partition() 986 REG_PIO_WRITE64(handle, offset, sel.value); in npi_fflp_cfg_fcram_partition() 1009 uint64_t offset; in npi_fflp_cfg_fcram_partition_enable() local 1020 offset = FFLP_PART_OFFSET(partid, FFLP_FLW_PRT_SEL_REG); in npi_fflp_cfg_fcram_partition_enable() 1022 REG_PIO_READ64(handle, offset, &sel.value); in npi_fflp_cfg_fcram_partition_enable() [all …]
|
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | srvsvc_sd.c | 271 int offset, len, i; in srvsvc_sd_set_relative() local 287 offset = sizeof (mslm_security_descriptor_t) - SRVSVC_SD_OFFSET_SZ; in srvsvc_sd_set_relative() 292 msd->offset_owner = offset; in srvsvc_sd_set_relative() 298 bcopy(sd->sd_owner, &sdbuf[offset], len); in srvsvc_sd_set_relative() 299 offset += len; in srvsvc_sd_set_relative() 303 msd->offset_group = offset; in srvsvc_sd_set_relative() 309 bcopy(sd->sd_group, &sdbuf[offset], len); in srvsvc_sd_set_relative() 310 offset += len; in srvsvc_sd_set_relative() 314 msd->offset_sacl = offset; in srvsvc_sd_set_relative() 315 msd->sacl = srvsvc_acl_set_relative(&sdbuf[offset], in srvsvc_sd_set_relative() [all …]
|
/illumos-gate/usr/src/uts/common/io/audio/drv/audiocmi/ |
H A D | audiocmi.h | 288 uint32_t offset; /* in bytes */ member 324 #define GET8(dev, offset) \ argument 325 ddi_get8(dev->acch, (uint8_t *)(dev->regs + (offset))) 326 #define GET16(dev, offset) \ argument 327 ddi_get16(dev->acch, (uint16_t *)(void *)(dev->regs + (offset))) 328 #define GET32(dev, offset) \ argument 329 ddi_get32(dev->acch, (uint32_t *)(void *)(dev->regs + (offset))) 330 #define PUT8(dev, offset, v) \ argument 331 ddi_put8(dev->acch, (uint8_t *)(dev->regs + (offset)), v) 332 #define PUT16(dev, offset, v) \ argument [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/disc/ |
H A D | sfdcdos.c | 83 static struct map *getmapping(Dosdisc_t *dp, Sfoff_t offset, register int whence) in getmapping() argument 85 static struct map *getmapping(dp, offset, whence) in getmapping() 87 Sfoff_t offset; 93 if(offset <= dp->begin) 95 dummy.logical = dummy.physical = offset; 104 while((++mp)->logical && (whence==SEEK_CUR?mp->physical:mp->logical) <= offset); 230 static Sfoff_t cur_offset(Dosdisc_t *dp, Sfoff_t offset,Sfio_t *iop,register int whence) in cur_offset() argument 232 static Sfoff_t cur_offset(dp, offset, iop, whence) in cur_offset() 234 Sfoff_t offset; 245 n = offset - dp->plast; [all …]
|
/illumos-gate/usr/src/cmd/bhyve/common/ |
H A D | pci_emul.h | 66 int (*pe_cfgwrite)(struct pci_devinst *pi, int offset, 68 int (*pe_cfgread)(struct pci_devinst *pi, int offset, 73 uint64_t offset, int size, uint64_t value); 75 uint64_t offset, int size); 240 void pci_emul_capwrite(struct pci_devinst *pi, int offset, int bytes, 258 int pci_emul_msix_twrite(struct pci_devinst *pi, uint64_t offset, int size, 260 uint64_t pci_emul_msix_tread(struct pci_devinst *pi, uint64_t offset, int size); 268 pci_set_cfgdata8(struct pci_devinst *pi, int offset, uint8_t val) in pci_set_cfgdata8() argument 270 assert(offset <= PCI_REGMAX); in pci_set_cfgdata8() 271 *(uint8_t *)(pi->pi_cfgdata + offset) = val; in pci_set_cfgdata8() [all …]
|
/illumos-gate/usr/src/uts/common/io/e1000api/ |
H A D | e1000_phy.h | 39 s32 e1000_null_read_reg(struct e1000_hw *hw, u32 offset, u16 *data); 42 s32 e1000_null_write_reg(struct e1000_hw *hw, u32 offset, u16 data); 73 s32 e1000_read_kmrn_reg_generic(struct e1000_hw *hw, u32 offset, u16 *data); 74 s32 e1000_read_kmrn_reg_locked(struct e1000_hw *hw, u32 offset, u16 *data); 76 s32 e1000_read_phy_reg_igp(struct e1000_hw *hw, u32 offset, u16 *data); 77 s32 e1000_read_phy_reg_igp_locked(struct e1000_hw *hw, u32 offset, u16 *data); 78 s32 e1000_read_phy_reg_m88(struct e1000_hw *hw, u32 offset, u16 *data); 81 s32 e1000_write_kmrn_reg_generic(struct e1000_hw *hw, u32 offset, u16 data); 82 s32 e1000_write_kmrn_reg_locked(struct e1000_hw *hw, u32 offset, u16 data); 83 s32 e1000_write_phy_reg_igp(struct e1000_hw *hw, u32 offset, u16 data); [all …]
|
/illumos-gate/usr/src/uts/common/io/igb/ |
H A D | igb_debug.c | 51 off_t offset; in pci_dump() local 149 offset = cap_ptr; in pci_dump() 153 pci_config_get8(handle, offset)); in pci_dump() 155 next_ptr = pci_config_get8(handle, offset + 1); in pci_dump() 161 pci_config_get16(handle, offset + PCI_PMCAP)); in pci_dump() 164 pci_config_get16(handle, offset + PCI_PMCSR)); in pci_dump() 167 pci_config_get8(handle, offset + PCI_PMCSR_BSE)); in pci_dump() 170 pci_config_get8(handle, offset + PCI_PMDATA)); in pci_dump() 173 offset = next_ptr; in pci_dump() 177 pci_config_get8(handle, offset)); in pci_dump() [all …]
|
/illumos-gate/usr/src/uts/common/io/e1000g/ |
H A D | e1000g_debug.c | 57 uint32_t offset; member 168 int i, ret, sign, size, lines, offset = 0; in eeprom_dump() local 204 if (ret = e1000_read_nvm(hw, offset, WPL, eeprom)) { in eeprom_dump() 212 offset, in eeprom_dump() 215 offset += WPL; in eeprom_dump() 231 int32_t offset[] = in phy_dump() local 243 for (i = 0; i < ((sizeof (offset)) / sizeof (offset[0])); i++) { in phy_dump() 245 stat = e1000_read_phy_reg(hw, offset[i], &value); in phy_dump() 249 offset[i], value); in phy_dump() 253 offset[i], stat); in phy_dump() [all …]
|
/illumos-gate/usr/src/uts/common/io/qede/579xx/hsi/mcp/ |
H A D | nvm_meta.txt | 110 1,name "MAC address" 1,group_name "board" 1,entity_name "func" 1,struct_name "nvm_cfg1" 1,offset 0 … 111 8,name "Board Swap" 8,group_name "board" 8,entity_name "glob" 8,struct_name "nvm_cfg1" 8,offset 0 8… 112 9,name "MF Mode" 9,group_name "board" 9,entity_name "glob" 9,struct_name "nvm_cfg1" 9,offset 4 9,si… 113 10,name "Led Mode" 10,group_name "board" 10,entity_name "port" 10,struct_name "nvm_cfg1" 10,offset … 114 …group_name "board io" 11,entity_name "glob" 11,struct_name "nvm_cfg1" 11,offset 12 11,size 1 11,el… 115 … 12,group_name "pcie" 12,entity_name "glob" 12,struct_name "nvm_cfg1" 12,offset 32 12,size 96 12,e… 116 … 13,group_name "pcie" 13,entity_name "glob" 13,struct_name "nvm_cfg1" 13,offset 128 13,size 32 13,… 117 … 14,group_name "pcie" 14,entity_name "glob" 14,struct_name "nvm_cfg1" 14,offset 160 14,size 128 14… 118 15,name "PCI Gen" 15,group_name "pcie" 15,entity_name "glob" 15,struct_name "nvm_cfg1" 15,offset 28… 119 … 16,group_name "pcie" 16,entity_name "glob" 16,struct_name "nvm_cfg1" 16,offset 290 16,size 1 16,e… [all …]
|
/illumos-gate/usr/src/cmd/truss/ |
H A D | expound.c | 156 show_utimens(private_t *pri, long offset) in show_utimens() argument 163 if (offset == 0) in show_utimens() 167 if (Pread(Proc, &utimbuf, sizeof (utimbuf), offset) in show_utimens() 176 if (Pread(Proc, &utimbuf32, sizeof (utimbuf32), offset) in show_utimens() 203 long offset; in show_timeofday() local 205 if (pri->sys_nargs < 1 || (offset = pri->sys_args[0]) == 0) in show_timeofday() 209 if (Pread(Proc, &tod, sizeof (tod), offset) in show_timeofday() 215 if (Pread(Proc, &tod32, sizeof (tod32), offset) in show_timeofday() 226 show_itimerval(private_t *pri, long offset, const char *name) in show_itimerval() argument 230 if (offset == 0) in show_itimerval() [all …]
|
/illumos-gate/usr/src/uts/common/io/sfxge/common/ |
H A D | efx_vpd.c | 466 unsigned int offset; in efx_vpd_hunk_length() local 470 offset = 0; in efx_vpd_hunk_length() 473 if ((rc = efx_vpd_next_tag(data, size, &offset, in efx_vpd_hunk_length() 476 offset += taglen; in efx_vpd_hunk_length() 481 *lengthp = offset; in efx_vpd_hunk_length() 499 unsigned int offset; in efx_vpd_hunk_verify() local 512 offset = 0; in efx_vpd_hunk_verify() 515 if ((rc = efx_vpd_next_tag(data, size, &offset, in efx_vpd_hunk_verify() 530 if ((rc = efx_vpd_next_keyword(data + offset, in efx_vpd_hunk_verify() 536 for (i = 0; i < offset + pos + 4; i++) in efx_vpd_hunk_verify() [all …]
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | check_index_overflow.c | 28 static int definitely_just_used_as_limiter(struct expression *array, struct expression *offset) in definitely_just_used_as_limiter() argument 33 if (!get_implied_value(offset, &sval)) in definitely_just_used_as_limiter() 180 static int constraint_met(struct expression *array_expr, struct expression *offset) in constraint_met() argument 193 unmet = unmet_constraint(array_expr, offset); in constraint_met() 212 struct expression *offset; in should_warn() local 226 offset = get_array_offset(expr); in should_warn() 227 get_absolute_rl(offset, &abs_rl); in should_warn() 228 fake_get_hard_max(offset, &hard_max); in should_warn() 229 get_fuzzy_max(offset, &fuzzy_max); in should_warn() 231 if (!get_the_max(offset, &max)) in should_warn() [all …]
|