/illumos-gate/usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/ |
H A D | fru_access.c | 292 seghdr->offset = seg_layout->offset; in copy_segment_layout() 437 offset_tbl[cnt].offset = segment->offset; in build_offset_tbl() 971 section->offset = sec_obj->section.offset; in get_section() 1254 segment->offset = seg_object->u.seg_obj->segment.offset; in fru_get_segments() 1289 int offset; in fru_add_segment() local 1349 offset = sec_hash->u.sec_obj->section.offset; in fru_add_segment() 1855 int offset = 0; in get_checksum_crc() local 1912 offset); in get_dev_or_buffered_packets() 1995 offset); in get_dev_or_buffered_packets() 2022 offset = seg_hash->u.seg_obj->segment.offset; in get_dev_or_buffered_packets() [all …]
|
/illumos-gate/usr/src/cmd/sendmail/libsmutil/ |
H A D | safefile.c | 401 int offset; 416 if (level < 0 || offset < 0 || offset > strlen(fn)) 434 p = s + offset; 508 offset = 0; 514 while (s[offset] == buf[offset] && 516 offset++; 518 if (s[offset] == '\0' && buf[offset] == '\0') 525 if (offset > 0) 526 offset--; 535 offset--; [all …]
|
/illumos-gate/usr/src/lib/libslp/javalib/com/sun/slp/ |
H A D | AttributePattern.java | 137 int offset = 0, len = cstring.length(); in match() local 156 if ((offset = cstring.indexOf(p.pattern, offset)) == -1) { in match() 164 offset += p.pattern.length(); in match() 168 if (offset >= len) { in match() 202 if (!cstring.regionMatches(offset, in match() 215 offset += p.pattern.length(); in match() 217 if (offset >= len) { in match()
|
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/ |
H A D | lm_nvram.c | 278 u32_t offset, in nvram_read_dword() argument 343 u32_t offset, in nvram_write_dword() argument 405 u32_t offset, in lm_nvram_read() argument 414 DbgMessage(pdev, VERBOSEnv, "offset %d size %d\n",offset,buf_size); in lm_nvram_read() 416 if((buf_size & 0x03) || (offset & 0x03)) in lm_nvram_read() 424 if(offset + buf_size > pdev->hw_info.flash_spec.total_size) in lm_nvram_read() 453 offset += sizeof(u32_t); in lm_nvram_read() 482 u32_t offset, in lm_nvram_write() argument 493 if(offset & 0x03) in lm_nvram_write() 500 if(offset + buf_size > pdev->hw_info.flash_spec.total_size) in lm_nvram_write() [all …]
|
H A D | hw_debug.h | 117 #define IDLE_CHK_1(chip_mask, offset, condition, severity, fail_msg) \ argument 120 val = REG_RD(pdev, offset); \ 128 #define IDLE_CHK_2(chip_mask, offset, loop, inc, condition, severity, fail_msg) \ argument 132 val = REG_RD(pdev, offset + i*(inc)); \ 170 val = REG_RD(pdev, offset);\ 176 #define IDLE_CHK_6(chip_mask, offset, loop, inc, severity) \ argument 182 val1 = REG_RD(pdev, offset + i*(inc)); \ 183 val2 = REG_RD(pdev, offset + i*(inc) + 4); \ 222 val2 = REG_RD(pdev, offset + i*4); \ 231 #define IDLE_CHK_8(chip_mask, offset, condition, severity, fail_msg) \ argument [all …]
|
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | fsys_vstafs.c | 190 int size, ret = 0, offset, curr_len = 0; in vstafs_read() local 204 offset = filepos + VSTAFS_START_DATA; in vstafs_read() 206 curr_len = a[0].a_len * 512 - offset - filepos; in vstafs_read() 211 offset = filepos - ext_size; in vstafs_read() 216 offset -= ext_size; in vstafs_read() 219 while (extent < FILE_INFO->extents && offset>ext_size); in vstafs_read() 224 offset = VSTAFS_START_DATA; in vstafs_read() 226 curr_len = a[0].a_len * 512 - offset; in vstafs_read() 245 devread (a[curr_ext].a_start,offset, curr_len, curr_pos); in vstafs_read() 246 offset = 0; in vstafs_read()
|
H A D | fsys_xfs.c | 30 xfs_fileoff_t offset; member 173 return (key >= offset) ? (key < offset + len ? 1 : 0) : 0; in isinxt() 208 int offset; in di_read() local 213 offset = ino2offset (ino); in di_read() 280 xad.offset = xt_offset (xfs.xt); in next_extent() 296 xfs_fileoff_t offset;; in xfs_dabread() local 300 offset = xad->offset; in xfs_dabread() 490 xfs_fileoff_t endofprev, endofcur, offset; in xfs_read() local 505 offset = xad->offset; in xfs_read() 520 } else if (offset > endofprev) { in xfs_read() [all …]
|
/illumos-gate/usr/src/uts/common/crypto/io/ |
H A D | md5_mod.c | 352 offset, length); in md5_digest_update_uio() 355 offset, cur_len); in md5_digest_update_uio() 359 offset = 0; in md5_digest_update_uio() 409 if (offset + digest_len <= in md5_digest_final_uio() 446 offset, length); in md5_digest_final_uio() 454 offset = 0; in md5_digest_final_uio() 503 offset = 0; in md5_digest_update_mblk() 585 offset = 0; in md5_digest_final_mblk() 1353 offset, length); in md5_mac_verify_atomic() 1365 offset = 0; in md5_mac_verify_atomic() [all …]
|
H A D | sha1_mod.c | 267 off_t offset = data->cd_offset; in sha1_digest_update_uio() local 297 offset, length); in sha1_digest_update_uio() 305 offset = 0; in sha1_digest_update_uio() 355 if (offset + digest_len <= in sha1_digest_final_uio() 392 offset, length); in sha1_digest_final_uio() 400 offset = 0; in sha1_digest_final_uio() 449 offset = 0; in sha1_digest_update_mblk() 531 offset = 0; in sha1_digest_final_mblk() 1394 offset, length); in sha1_mac_verify_atomic() 1406 offset = 0; in sha1_mac_verify_atomic() [all …]
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | allocate.c | 102 unsigned int offset, chunking = desc->chunking; in allocate() local 112 offset = offsetof(struct allocation_blob, data); in allocate() 113 offset = (offset + alignment - 1) & ~(alignment-1); in allocate() 114 blob->left = chunking - offset; in allocate() 115 blob->offset = offset - offsetof(struct allocation_blob, data); in allocate() 117 retval = blob->data + blob->offset; in allocate() 118 blob->offset += size; in allocate()
|
/illumos-gate/usr/src/uts/common/io/nxge/npi/ |
H A D | npi_vir.c | 158 ldv, offset, in npi_vir_dump_ldgnum() 172 uint64_t value, offset; in npi_vir_dump_ldsv() local 187 ldg, offset, in npi_vir_dump_ldsv() 217 ldv, offset, in npi_vir_dump_imask0() 231 ldv, offset, in npi_vir_dump_imask0() 261 ldg, offset, in npi_vir_dump_sid() 811 int offset; in npi_fzc_dma_bind_get() local 960 uint64_t offset; in npi_ldsv_get() local 1018 uint64_t offset; in npi_ldsv_ld_get() local 1147 uint64_t offset; in npi_intr_mask_set() local [all …]
|
/illumos-gate/usr/src/lib/libfru/libfruraw/ |
H A D | raw_access.c | 409 seghdr->offset = BE_16(seg_layout->offset); in copy_segment_layout() 545 segment->offset = seg_object->u.seg_obj->segment.offset; in fru_get_segments() 613 section->offset = sec_obj->section.offset; in get_section() 738 int offset = 0; in get_checksum_crc() local 867 offset += tag_size; in get_packets() 885 offset += paylen; in get_packets() 893 offset); in get_packets() 907 offset = seg_hash->u.seg_obj->segment.offset; in get_packets() 971 uint16_t offset; in fru_get_num_packets() local 993 offset = segment_object->segment.offset; in fru_get_num_packets() [all …]
|
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/chip/ |
H A D | chip_label.c | 119 uint32_t offset; in simple_dimm_label() local 142 (topo_node_instance(node) + offset)); in simple_dimm_label() 181 uint32_t offset, dimms_per_chip; in simple_dimm_label_mp() local 219 (topo_node_instance(node) + offset)); in simple_dimm_label_mp() 266 uint32_t offset; in seq_dimm_label() local 344 uint32_t offset; in simple_chip_label() local 367 (topo_node_instance(node) + offset)); in simple_chip_label() 401 uint32_t offset; in fsb2_chip_label() local 675 uint32_t offset; in simple_cs_label_mp() local 700 + topo_node_instance(chan) + offset; in simple_cs_label_mp() [all …]
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | ctxop.c | 43 int offset; in ctxop_walk_init() local 51 offset = mdb_ctf_offsetof_by_name("kthread_t", "t_ctx"); in ctxop_walk_init() 52 if (offset == -1) in ctxop_walk_init() 56 wsp->walk_addr + offset) != sizeof (addr)) { in ctxop_walk_init() 68 offset = mdb_ctf_offsetof_by_name("struct ctxop", "next"); in ctxop_walk_init() 69 if (offset == -1) in ctxop_walk_init() 74 priv->cws_next_offset = (uint_t)offset; in ctxop_walk_init()
|
/illumos-gate/usr/src/common/lzma/ |
H A D | LzFind.c | 481 UInt32 offset; in Bt2_MatchFinder_GetMatches() local 486 offset = 0; in Bt2_MatchFinder_GetMatches() 492 UInt32 offset; in Bt3Zip_MatchFinder_GetMatches() local 497 offset = 0; in Bt3Zip_MatchFinder_GetMatches() 516 offset = 0; in Bt3_MatchFinder_GetMatches() 524 offset = 2; in Bt3_MatchFinder_GetMatches() 550 offset = 0; in Bt4_MatchFinder_GetMatches() 555 offset = 2; in Bt4_MatchFinder_GetMatches() 561 offset += 2; in Bt4_MatchFinder_GetMatches() 597 offset = 0; in Hc4_MatchFinder_GetMatches() [all …]
|
/illumos-gate/usr/src/cmd/sendmail/db/log/ |
H A D | log_get.c | 64 if (ret == 0 && alsn->offset == 0) { 122 nlsn.offset += dblp->c_len; 140 nlsn.offset = 0; 147 if (nlsn.offset == 0) { 153 nlsn.offset = dblp->c_off; 155 nlsn.offset = dblp->c_off; 161 nlsn.offset = lp->lsn.offset - lp->len; 171 (nlsn.file == lp->lsn.file && nlsn.offset >= lp->lsn.offset)) 181 if (nlsn.file == lp->lsn.file && nlsn.offset >= lp->w_off) { 183 p = lp->buf + (nlsn.offset - lp->w_off); [all …]
|
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | roff_term.c | 72 p->tcol->offset = p->tcol->rmargin; in roff_term_pre_br() 166 p->tcol->offset -= pouse; in roff_term_pre_po() 184 po < -(int)p->tcol->offset ? -(int)p->tcol->offset : po; in roff_term_pre_po() 185 p->tcol->offset += pouse; in roff_term_pre_po() 246 if (p->tcol->offset + len <= maxoff) in roff_term_pre_ti() 248 else if (p->tcol->offset < maxoff) in roff_term_pre_ti() 249 p->ti = maxoff - p->tcol->offset; in roff_term_pre_ti() 254 if ((size_t)len < p->tcol->offset) in roff_term_pre_ti() 257 p->ti = -p->tcol->offset; in roff_term_pre_ti() 262 p->ti = len - p->tcol->offset; in roff_term_pre_ti() [all …]
|
/illumos-gate/usr/src/uts/common/io/qede/579xx/drivers/ecore/ |
H A D | ecore_init_ops.h | 105 #define STORE_RT_REG(hwfn, offset, val) \ argument 106 ecore_init_store_rt_reg(hwfn, offset, val) 108 #define OVERWRITE_RT_REG(hwfn, offset, val) \ argument 109 ecore_init_store_rt_reg(hwfn, offset, val) 126 #define STORE_RT_REG_AGG(hwfn, offset, val) \ argument 127 ecore_init_store_rt_agg(hwfn, offset, (u32*)&val, sizeof(val))
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | ctf.h | 220 #define CTF_TYPE_NAME(stid, offset) \ argument 221 (((stid) << 31) | ((offset) & 0x7fffffff)) 282 #define CTF_INT_DATA(encoding, offset, bits) \ argument 283 (((encoding) << 24) | ((offset) << 16) | (bits)) 298 #define CTF_FP_DATA(encoding, offset, bits) \ argument 299 (((encoding) << 24) | ((offset) << 16) | (bits)) 348 #define CTF_OFFSET_TO_LMEMHI(offset) ((uint32_t)((uint64_t)(offset) >> 32)) argument 349 #define CTF_OFFSET_TO_LMEMLO(offset) ((uint32_t)(offset)) argument
|
/illumos-gate/usr/src/test/smbclient-tests/cmd/no_close/ |
H A D | no_close.c | 38 off_t offset; in main() local 75 for (i = 0, offset = 0; i < 4; i++, offset += blksize) { in main() 76 memset(file_addr + offset, c[i], blksize); in main() 78 memset(file_addr + offset, c[i], filesize - offset); in main()
|
/illumos-gate/usr/src/uts/common/sys/ib/adapters/hermon/ |
H A D | hermon_wr.h | 109 #define HERMON_SPECIAL_QP_DRMAD_GET_MGMTCLASS(mgmtclass, offset, va, len) \ argument 110 if (((mgmtclass) == NULL) && ((offset) + (len) > 1)) { \ 111 (mgmtclass) = &((uint8_t *)(uintptr_t)(va))[1 - (offset)]; \ 113 #define HERMON_SPECIAL_QP_DRMAD_GET_HOPPOINTER(hp, offset, va, len) \ argument 115 ((offset) + (len) > 6)) { \ 116 (hp) = &((uint8_t *)(uintptr_t)(va))[6 - (offset)]; \ 118 #define HERMON_SPECIAL_QP_DRMAD_GET_HOPCOUNT(hc, offset, va, len) \ argument 120 ((offset) + (len) > 7)) { \ 121 (hc) = &((uint8_t *)(uintptr_t)(va))[7 - (offset)]; \
|
/illumos-gate/usr/src/cmd/ndmpd/tlm/ |
H A D | tlm_hardlink.c | 121 unsigned long long *offset, char **path) in hardlink_q_get() argument 140 if (offset) in hardlink_q_get() 141 *offset = hl->offset; in hardlink_q_get() 159 unsigned long long offset, char *path, int is_tmp_file) in hardlink_q_add() argument 182 hl->offset = offset; in hardlink_q_add() 212 hl->inode, hl->offset, hl->path? hl->path : "--", in hardlink_q_dump()
|
/illumos-gate/usr/src/uts/common/fs/ufs/ |
H A D | ufs_extvnops.c | 62 u_offset_t offset, in ufs_rdwr_data() argument 234 u_offset_t offset, in ufs_alloc_data() argument 288 uoff = offset; in ufs_alloc_data() 289 io_off = offset; in ufs_alloc_data() 336 fdb_add_hole(fdbp, uoff - offset, in ufs_alloc_data() 351 bp = fdb_iosetup(fdbp, uoff - offset, in ufs_alloc_data() 381 ip->i_size - offset, in ufs_alloc_data() 423 bp = fdb_iosetup(fdbp, uoff - offset, in ufs_alloc_data() 465 fdb_add_hole(fdbp, uoff - offset, in ufs_alloc_data() 487 *len = (size_t)(roundup(offset + *len, fs->fs_fsize) - offset); in ufs_alloc_data() [all …]
|
/illumos-gate/usr/src/cmd/bhyve/ |
H A D | pci_emul.c | 517 uint64_t offset; in pci_emul_io_handler() local 530 offset, bytes); in pci_emul_io_handler() 546 uint64_t offset; in pci_emul_mem_handler() local 570 offset, 4); in pci_emul_mem_handler() 575 offset, size); in pci_emul_mem_handler() 1212 off = offset - capoff; in msixcap_cfgwrite() 1328 if (offset >= capoff && offset < nextoff) in pci_emul_capwrite() 1343 if (offset == capoff || offset == capoff + 1) { in pci_emul_capwrite() 1346 offset += 2; in pci_emul_capwrite() 1374 if (offset >= CAP_START_OFFSET && offset <= pi->pi_capend) in pci_emul_iscap() [all …]
|
/illumos-gate/usr/src/uts/common/io/sfxge/common/ |
H A D | efx_rx.c | 764 unsigned int offset; in siena_rx_scale_key_set() local 772 offset > 0 && byte < n; in siena_rx_scale_key_set() 773 --offset) in siena_rx_scale_key_set() 784 --offset) { in siena_rx_scale_key_set() 801 --offset) in siena_rx_scale_key_set() 811 --offset) in siena_rx_scale_key_set() 821 --offset) in siena_rx_scale_key_set() 833 --offset) { in siena_rx_scale_key_set() 845 --offset) { in siena_rx_scale_key_set() 857 --offset) { in siena_rx_scale_key_set() [all …]
|