/illumos-gate/usr/src/common/devid/ |
H A D | devid_scsi.c | 647 size_t offset = 0; in encode_scsi3_page83() local 685 offset = SCMD_INQUIRY_PAGE83_HDR_SIZE; in encode_scsi3_page83() 694 if ((descriptor_bytes_left + offset) > inq83_len) { in encode_scsi3_page83() 719 (size_t)inq83[offset + 3] <= inq83_len)) { in encode_scsi3_page83() 730 switch ((inq83[offset + 1] & 0x3f)) { in encode_scsi3_page83() 732 offset_id_type[SCMD_INQUIRY_VPD_TYPE_T10] = offset; in encode_scsi3_page83() 751 (size_t)inq83[offset + 3]); in encode_scsi3_page83() 754 offset = 0; in encode_scsi3_page83() 764 offset = offset_id_type[idx]; in encode_scsi3_page83() 773 if (offset > 0) { in encode_scsi3_page83() [all …]
|
/illumos-gate/usr/src/boot/efi/loader/ |
H A D | framebuffer.c | 294 ssize_t offset; in efifb_from_uga() local 330 offset = -1; in efifb_from_uga() 340 offset = 0x10000; in efifb_from_uga() 348 offset = 0x0; in efifb_from_uga() 359 efifb->fb_addr += offset; in efifb_from_uga() 360 efifb->fb_size -= offset; in efifb_from_uga() 363 } else if (offset >= 0) { in efifb_from_uga() 409 if (offset == -1) { in efifb_from_uga() 411 } else if (offset > 0) { in efifb_from_uga() 416 offset = 0; in efifb_from_uga() [all …]
|
/illumos-gate/usr/src/common/ficl/softcore/ |
H A D | oo.fr | 223 : addr-units: ( offset size "name" -- offset' ) 228 : chars: \ ( offset nCells "name" -- offset' ) Create n char member. 231 : char: \ ( offset nCells "name" -- offset' ) Create 1 char member. 234 : cells: ( offset nCells "name" -- offset' ) 238 : cell: ( offset nCells "name" -- offset' ) 253 : obj: { offset class meta -- offset' } \ "name" 265 : array: ( offset n class meta "name" -- offset' ) 267 create offset , class , 278 : ref: ( offset class meta "name" -- offset' ) 281 offset cell+ [all …]
|
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | fsys_ufs2.c | 125 int bnum, offset, bsize; in block_map() local 138 offset = ((file_block - NDADDR) % NINDIR (SUPERBLOCK)); in block_map() 141 if (offset + MAPBUF_LEN > SUPERBLOCK->fs_bsize) in block_map() 142 offset = (SUPERBLOCK->fs_bsize - MAPBUF_LEN) / sizeof (int); in block_map() 147 offset = 0; in block_map() 150 if (! devread (bnum, offset * sizeof (int), bsize, (char *) MAPBUF)) in block_map() 161 mapblock_offset = offset; in block_map()
|
/illumos-gate/usr/src/cmd/bhyve/ |
H A D | pci_passthru.c | 369 if (offset < table_offset || in msix_table_read() 394 offset -= table_offset; in msix_table_read() 395 index = offset / MSIX_TABLE_ENTRY_SIZE; in msix_table_read() 399 entry_offset = offset % MSIX_TABLE_ENTRY_SIZE; in msix_table_read() 427 uint64_t offset, int size, uint64_t data) in msix_table_write() argument 443 if (offset < table_offset || in msix_table_write() 466 offset -= table_offset; in msix_table_write() 467 index = offset / MSIX_TABLE_ENTRY_SIZE; in msix_table_write() 1034 pbi.pbi_off = offset; in passthru_write() 1047 val = msix_table_read(sc, offset, size); in passthru_read() [all …]
|
H A D | pci_fbuf.c | 121 pci_fbuf_write(struct pci_devinst *pi, int baridx, uint64_t offset, int size, in pci_fbuf_write() argument 133 offset, size, value)); in pci_fbuf_write() 135 if (offset + size > DMEMSZ) { in pci_fbuf_write() 137 offset, size); in pci_fbuf_write() 141 p = (uint8_t *)&sc->memregs + offset; in pci_fbuf_write() 175 pci_fbuf_read(struct pci_devinst *pi, int baridx, uint64_t offset, int size) in pci_fbuf_read() argument 186 if (offset + size > DMEMSZ) { in pci_fbuf_read() 188 offset, size); in pci_fbuf_read() 192 p = (uint8_t *)&sc->memregs + offset; in pci_fbuf_read() 214 offset, size, value)); in pci_fbuf_read()
|
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/include/ |
H A D | mm_uefi.h | 267 u32_t offset, 272 u32_t offset, 277 u32_t offset, 282 u32_t offset, 287 u32_t offset, 292 u32_t offset, 297 u32_t offset, 302 u32_t offset, 308 u32_t offset,
|
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb2_signing.c | 260 int offset, resid, tlen, rc; in smb2_sign_calc_common() local 276 offset = mbc->chain_offset; in smb2_sign_calc_common() 277 resid = mbc->max_bytes - offset; in smb2_sign_calc_common() 278 if (smb_mbc_peek(mbc, offset, "#c", tlen, tmp_hdr) != 0) in smb2_sign_calc_common() 284 offset += tlen; in smb2_sign_calc_common() 294 while (mbuf != NULL && (offset >= mbuf->m_len)) { in smb2_sign_calc_common() 295 offset -= mbuf->m_len; in smb2_sign_calc_common() 307 tlen = mbuf->m_len - offset; in smb2_sign_calc_common() 311 rc = ops->mac_update(ctx, (uint8_t *)mbuf->m_data + offset, tlen); in smb2_sign_calc_common()
|
/illumos-gate/usr/src/cmd/cmd-inet/lib/nwamd/ |
H A D | logging.c | 59 int offset; in log_format() local 67 offset = snprintf(buf, bufsize, "%d: ", pthread_self()); in log_format() 68 (void) vsnprintf(buf + offset, bufsize - offset, fmt, ap); in log_format()
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/ |
H A D | nvtype.c | 205 if(a>1 && offset) in nv_datasize() 206 *offset = a*((*offset +a-1)/a); in nv_datasize() 630 stakseek(offset); in typeinfo() 715 stakseek(offset); in typeinfo() 739 stakseek(offset); in typeinfo() 856 size_t offset=0; in nv_mktype() local 915 offset = 0; in nv_mktype() 930 offset = roundof(offset,sizeof(char*)); in nv_mktype() 1229 stakseek(offset); in nv_mkinttype() 1411 int offset; member [all …]
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | smatch_buf_comparison.c | 269 struct expression *offset; in array_check() local 283 offset = get_array_offset(expr); in array_check() 371 struct expression *offset; in buf_comparison_index_ok() local 379 offset = get_array_offset(expr); in buf_comparison_index_ok() 399 struct expression *offset; in known_access_ok_numbers() local 404 offset = get_array_offset(expr); in known_access_ok_numbers() 410 get_absolute_max(offset, &max); in known_access_ok_numbers() 419 struct expression *offset; in array_check_data_info() local 436 offset = get_array_offset(expr); in array_check_data_info() 694 struct expression *offset; in set_used() local [all …]
|
/illumos-gate/usr/src/lib/libdwarf/common/ |
H A D | dwarf_stringsection.c | 34 Dwarf_Off offset, in dwarf_get_str() argument 48 if (offset == dbg->de_debug_str.dss_size) { in dwarf_get_str() 53 if (offset > dbg->de_debug_str.dss_size) { in dwarf_get_str() 71 begin = (char *)secptr + offset; in dwarf_get_str()
|
/illumos-gate/usr/src/uts/common/exec/elf/ |
H A D | old_notes.c | 86 write_old_elfnotes(proc_t *p, int sig, vnode_t *vp, offset_t offset, in write_old_elfnotes() argument 115 error = elfnote(vp, &offset, NT_PRPSINFO, sizeof (bigwad->psinfo), in write_old_elfnotes() 120 error = elfnote(vp, &offset, NT_PLATFORM, strlen(platform) + 1, in write_old_elfnotes() 130 error = elfnote(vp, &offset, NT_AUXV, sizeof (bigwad->auxv), in write_old_elfnotes() 169 error = elfnote(vp, &offset, NT_PRSTATUS, in write_old_elfnotes() 177 error = elfnote(vp, &offset, NT_PRFPREG, in write_old_elfnotes()
|
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/fw/ |
H A D | init_defs.h | 71 u32 offset:24; member 77 u32 offset:24; member 83 u32 offset:24; member 89 u32 offset:24; member 101 u32 offset:24; member
|
/illumos-gate/usr/src/test/smbclient-tests/cmd/mkfile_mmap/ |
H A D | mkfile_mmap.c | 48 off_t offset; in main() local 130 offset = i*blksize; in main() 131 if (offset + blksize > filesize) in main() 132 blksize = filesize - offset; in main() 136 PROT_READ | PROT_WRITE, MAP_SHARED, fid, offset); in main()
|
/illumos-gate/usr/src/uts/common/io/e1000api/ |
H A D | e1000_nvm.h | 63 s32 e1000_read_nvm_spi(struct e1000_hw *hw, u16 offset, u16 words, u16 *data); 64 s32 e1000_read_nvm_microwire(struct e1000_hw *hw, u16 offset, 66 s32 e1000_read_nvm_eerd(struct e1000_hw *hw, u16 offset, u16 words, 70 s32 e1000_write_nvm_microwire(struct e1000_hw *hw, u16 offset, 72 s32 e1000_write_nvm_spi(struct e1000_hw *hw, u16 offset, u16 words,
|
/illumos-gate/usr/src/uts/common/io/e1000g/ |
H A D | e1000g_osdep.c | 67 int32_t offset; /* offset to register */ in phy_spd_state() local 76 offset = IGP01E1000_GMII_FIFO; in phy_spd_state() 84 offset = IGP02E1000_PHY_POWER_MGMT; in phy_spd_state() 91 (void) e1000_read_phy_reg(hw, offset, ®); in phy_spd_state() 98 (void) e1000_write_phy_reg(hw, offset, reg); in phy_spd_state()
|
/illumos-gate/usr/src/cmd/audio/utilities/ |
H A D | AudioHdr.cc | 141 off_t offset; in Time_to_Bytes() local 146 offset = (off_t)(0.5 + (sec * in Time_to_Bytes() 151 offset -= (offset % (bytes_per_unit * channels)); in Time_to_Bytes() 152 return (offset); in Time_to_Bytes()
|
/illumos-gate/usr/src/uts/intel/io/pciex/ |
H A D | pcieb_x86.c | 234 uint32_t offset; member 501 reg->offset); in pcieb_intel_serr_workaround() 505 pci_config_put32(cfg_hdl, reg->offset, value); in pcieb_intel_serr_workaround() 507 reg->offset); in pcieb_intel_serr_workaround() 511 reg->offset); in pcieb_intel_serr_workaround() 515 pci_config_put16(cfg_hdl, reg->offset, in pcieb_intel_serr_workaround() 518 reg->offset); in pcieb_intel_serr_workaround() 522 reg->offset); in pcieb_intel_serr_workaround() 526 pci_config_put8(cfg_hdl, reg->offset, in pcieb_intel_serr_workaround() 529 reg->offset); in pcieb_intel_serr_workaround() [all …]
|
/illumos-gate/usr/src/uts/common/io/audio/drv/audiosolo/ |
H A D | audiosolo.c | 149 uint16_t offset; member 778 n = offset >= e->offset ? in solo_aud1_update() 779 offset - e->offset : in solo_aud1_update() 780 offset + SOLO_BUFSZ - e->offset; in solo_aud1_update() 782 e->offset = offset; in solo_aud1_update() 795 e->offset = 0; in solo_aud1_start() 862 n = offset >= e->offset ? in solo_aud2_update() 863 offset - e->offset : in solo_aud2_update() 864 offset + SOLO_BUFFR - e->offset; in solo_aud2_update() 866 e->offset = offset; in solo_aud2_update() [all …]
|
/illumos-gate/usr/src/cmd/logger/ |
H A D | logger.c | 135 ptrdiff_t offset = 0; in main() local 232 offset = 0; in main() 243 offset = 0; in main() 247 offset += len; in main() 257 offset += len; in main() 262 endp - p, len, offset, buflen); in main() 268 p = buf + offset; in main()
|
/illumos-gate/usr/src/lib/libresolv2/common/irs/ |
H A D | lcl_pr.c | 196 int c, bufsiz, offset; in pr_next() local 208 offset = 0; in pr_next() 210 if ((p = fgets(bufp + offset, bufsiz - offset, pvt->fp)) == NULL) { in pr_next() 227 offset = strlen(dbuf); in pr_next() 239 p -= offset; in pr_next() 240 offset = 0; in pr_next()
|
/illumos-gate/usr/src/cmd/th_tools/ |
H A D | th_define.c | 297 else if (e1->offset < e2->offset) in hdl_cmp() 299 else if (e1->offset > e2->offset) in hdl_cmp() 322 else if (e1->offset < e2->offset) in elem_cmp() 324 else if (e1->offset > e2->offset) in elem_cmp() 401 offset = items->offset; in dump_log() 496 edp->offset + item->offset, /* offset into the regset */ in define_one_error() 1259 errdef->offset = hdl->offset; in add_edef() 1422 hp->offset, offset, hp->len, len); in match_hinfo() 1436 (len == 0 || hp->offset < offset + len) && in match_hinfo() 1437 (hp->len == 0 || hp->offset + hp->len > offset)) in match_hinfo() [all …]
|
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlge/ |
H A D | qlge_dbg.c | 268 offset, in ql_dump_buf_8() 274 offset, in ql_dump_buf_8() 280 offset, in ql_dump_buf_8() 286 offset, in ql_dump_buf_8() 292 offset, in ql_dump_buf_8() 298 offset, in ql_dump_buf_8() 304 offset, in ql_dump_buf_8() 310 offset, in ql_dump_buf_8() 336 offset, in ql_dump_buf_16() 1417 " \n", offset, LSW(offset), MSW(offset))); in ql_chip_ioctl() [all …]
|
/illumos-gate/usr/src/uts/common/io/igc/core/ |
H A D | igc_api.c | 241 void igc_write_vfta(struct igc_hw *hw, u32 offset, u32 value) in igc_write_vfta() argument 244 hw->mac.ops.write_vfta(hw, offset, value); in igc_write_vfta() 451 s32 igc_read_phy_reg(struct igc_hw *hw, u32 offset, u16 *data) in igc_read_phy_reg() argument 454 return hw->phy.ops.read_reg(hw, offset, data); in igc_read_phy_reg() 468 s32 igc_write_phy_reg(struct igc_hw *hw, u32 offset, u16 data) in igc_write_phy_reg() argument 471 return hw->phy.ops.write_reg(hw, offset, data); in igc_write_phy_reg() 664 s32 igc_read_nvm(struct igc_hw *hw, u16 offset, u16 words, u16 *data) in igc_read_nvm() argument 667 return hw->nvm.ops.read(hw, offset, words, data); in igc_read_nvm() 682 s32 igc_write_nvm(struct igc_hw *hw, u16 offset, u16 words, u16 *data) in igc_write_nvm() argument 685 return hw->nvm.ops.write(hw, offset, words, data); in igc_write_nvm()
|