Home
last modified time | relevance | path

Searched refs:offset (Results 126 – 150 of 1848) sorted by relevance

12345678910>>...74

/illumos-gate/usr/src/uts/common/pcmcia/cs/
H A Dcs_stubs.c954 csx_Put8(acc_handle_t handle, uint32_t offset, uint8_t value) in csx_Put8() argument
958 ddi_put8(handle, (uint8_t *)(hp->ah_addr + offset), value); in csx_Put8()
966 ddi_put16(handle, (uint16_t *)(hp->ah_addr + offset), value); in csx_Put16()
986 csx_Get8(acc_handle_t handle, uint32_t offset) in csx_Get8() argument
994 csx_Get16(acc_handle_t handle, uint32_t offset) in csx_Get16() argument
1002 csx_Get32(acc_handle_t handle, uint32_t offset) in csx_Get32() argument
1010 csx_Get64(acc_handle_t handle, uint32_t offset) in csx_Get64() argument
1190 csx_GetHandleOffset(acc_handle_t handle, uint32_t *offset) in csx_GetHandleOffset() argument
1199 *offset = hp->ah_offset; in csx_GetHandleOffset()
1205 csx_SetHandleOffset(acc_handle_t handle, uint32_t offset) in csx_SetHandleOffset() argument
[all …]
/illumos-gate/usr/src/cmd/bhyve/
H A Dpci_xhci.c455 offset = (offset - XHCI_PORTREGS_PORT0) % XHCI_PORTREGS_SETSZ; in pci_xhci_portregs_write()
474 switch (offset) { in pci_xhci_portregs_write()
573 offset)); in pci_xhci_portregs_write()
2019 offset = (offset - sc->dboff) / sizeof(uint32_t); in pci_xhci_dbregs_write()
2029 if (offset == 0) in pci_xhci_dbregs_write()
2056 switch (offset) { in pci_xhci_rtsregs_write()
2161 offset = (offset - XHCI_PORTREGS_PORT0) % XHCI_PORTREGS_SETSZ; in pci_xhci_portregs_read()
2172 switch (offset) { in pci_xhci_portregs_read()
2187 offset)); in pci_xhci_portregs_read()
2365 offset = (offset - XHCI_CAPLEN); in pci_xhci_hostop_read()
[all …]
H A Dpci_lpc.c226 int offset; in lpc_uart_io_handler() local
229 offset = port - sc->iobase; in lpc_uart_io_handler()
234 *eax = uart_read(sc->uart_softc, offset); in lpc_uart_io_handler()
236 uart_write(sc->uart_softc, offset, *eax); in lpc_uart_io_handler()
240 *eax = uart_read(sc->uart_softc, offset); in lpc_uart_io_handler()
243 uart_write(sc->uart_softc, offset, *eax); in lpc_uart_io_handler()
244 uart_write(sc->uart_softc, offset + 1, *eax >> 8); in lpc_uart_io_handler()
250 *eax = uart_read(sc->uart_softc, offset); in lpc_uart_io_handler()
255 uart_write(sc->uart_softc, offset, *eax); in lpc_uart_io_handler()
256 uart_write(sc->uart_softc, offset + 1, *eax >> 8); in lpc_uart_io_handler()
[all …]
H A Dpci_virtio_viona.c824 if (offset >= VIRTIO_PCI_CONFIG_OFF(0)) { in viona_adjust_offset()
830 return (offset); in viona_adjust_offset()
905 tab_index = offset / MSIX_TABLE_ENTRY_SIZE; in pci_viona_msix_update()
983 pci_viona_msix_update(pi, offset); in pci_viona_write()
990 if (offset + size > pci_viona_iosize(pi)) { in pci_viona_write()
992 offset, size); in pci_viona_write()
998 offset = viona_adjust_offset(pi, offset); in pci_viona_write()
1000 switch (offset) { in pci_viona_write()
1093 offset, size); in pci_viona_read()
1099 offset = viona_adjust_offset(pi, offset); in pci_viona_read()
[all …]
/illumos-gate/usr/src/uts/common/io/hxge/
H A Dhpi_vmac.c248 uint64_t offset; in hpi_vmac_clear_rx_int_stat() local
250 offset = VMAC_RX_STAT; in hpi_vmac_clear_rx_int_stat()
251 REG_PIO_WRITE64(handle, offset, HXGE_VMAC_RX_STAT_CLEAR); in hpi_vmac_clear_rx_int_stat()
259 uint64_t offset; in hpi_vmac_clear_tx_int_stat() local
261 offset = VMAC_TX_STAT; in hpi_vmac_clear_tx_int_stat()
271 uint64_t offset; in hpi_pfc_set_rx_int_stat_mask() local
280 offset = VMAC_RX_MSK; in hpi_pfc_set_rx_int_stat_mask()
281 REG_PIO_WRITE64(handle, offset, value); in hpi_pfc_set_rx_int_stat_mask()
290 uint64_t offset; in hpi_pfc_set_tx_int_stat_mask() local
301 offset = VMAC_TX_MSK; in hpi_pfc_set_tx_int_stat_mask()
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Devent_port.c140 uint_t offset; in port_sendn() local
152 for (offset = 0; offset < nent; ) { in port_sendn()
153 lnent = nent - offset; in port_sendn()
154 if (nent - offset > PORT_MAX_LIST) in port_sendn()
157 lnent = nent - offset; in port_sendn()
159 (uintptr_t)&ports[offset], (uintptr_t)&errors[offset], in port_sendn()
168 offset += lnent; in port_sendn()
H A Dposix_fallocate.c55 posix_fallocate(int fd, off_t offset, off_t len) in posix_fallocate() argument
60 if (offset < 0 || len <= 0) in posix_fallocate()
64 lck.l_start = offset; in posix_fallocate()
81 posix_fallocate64(int fd, off64_t offset, off64_t len) in posix_fallocate64() argument
86 if (offset < 0 || len <= 0) in posix_fallocate64()
90 lck.l_start = offset; in posix_fallocate64()
/illumos-gate/usr/src/uts/common/io/igc/core/
H A Digc_phy.c62 u32 IGC_UNUSEDARG offset, u16 IGC_UNUSEDARG *data) in igc_null_read_reg() argument
97 u32 IGC_UNUSEDARG offset, u16 IGC_UNUSEDARG data) in igc_null_write_reg() argument
173 if (offset > MAX_PHY_REG_ADDRESS) { in igc_read_phy_reg_mdic()
182 mdic = ((offset << IGC_MDIC_REG_SHIFT) | in igc_read_phy_reg_mdic()
208 offset, in igc_read_phy_reg_mdic()
232 if (offset > MAX_PHY_REG_ADDRESS) { in igc_write_phy_reg_mdic()
242 (offset << IGC_MDIC_REG_SHIFT) | in igc_write_phy_reg_mdic()
268 offset, in igc_write_phy_reg_mdic()
950 offset = offset & GPY_REG_MASK; in igc_write_phy_reg_gpy()
984 offset = offset & GPY_REG_MASK; in igc_read_phy_reg_gpy()
[all …]
/illumos-gate/usr/src/uts/common/io/nxge/npi/
H A Dnpi_rx_rd32.h114 uint32_t offset, in RXDMA_REG_READ32() argument
118 offset &= DMA_CSR_MASK; in RXDMA_REG_READ32()
119 offset += (((channel << 1) + 1) << DMA_CSR_SLL); in RXDMA_REG_READ32()
121 offset += (channel << DMA_CSR_SLL); in RXDMA_REG_READ32()
124 return (ddi_get32(handle.regh, (uint32_t *)(handle.regp + offset))); in RXDMA_REG_READ32()
H A Dnpi_rxdma.h100 ((offset == SW_OFFSET_NO_OFFSET) || \
101 (offset == SW_OFFSET_64) || \
102 (offset == SW_OFFSET_128))
105 ((offset == SW_OFFSET_NO_OFFSET) || \
106 (offset == SW_OFFSET_64) || \
107 (offset == SW_OFFSET_128) || \
108 (offset == SW_OFFSET_192) || \
109 (offset == SW_OFFSET_256) || \
110 (offset == SW_OFFSET_320) || \
111 (offset == SW_OFFSET_384) || \
[all …]
/illumos-gate/usr/src/uts/common/crypto/io/
H A Dsha2_mod.c296 off_t offset = data->cd_offset; in sha2_digest_update_uio() local
326 offset, length); in sha2_digest_update_uio()
332 offset = 0; in sha2_digest_update_uio()
382 if (offset + digest_len <= in sha2_digest_final_uio()
425 offset, length); in sha2_digest_final_uio()
433 offset = 0; in sha2_digest_final_uio()
482 offset = 0; in sha2_digest_update_mblk()
567 offset = 0; in sha2_digest_final_mblk()
1482 offset, length); in sha2_mac_verify_atomic()
1494 offset = 0; in sha2_mac_verify_atomic()
[all …]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Ddmu.c845 if (offset >= object_size) in dmu_free_long_range_impl()
855 length = object_size - offset; in dmu_free_long_range_impl()
984 ASSERT(offset < UINT64_MAX); in dmu_free_range()
1035 offset += tocpy; in dmu_read_impl()
1080 bufoff = offset - db->db_offset; in dmu_write_impl()
1095 offset += tocpy; in dmu_write_impl()
1194 uint64_t offset, l1span; in dmu_object_remap_indirects() local
1228 offset = 0; in dmu_object_remap_indirects()
1243 offset += l1span; in dmu_object_remap_indirects()
1654 bufoff = offset - db->db_offset; in dmu_write_pages()
[all …]
/illumos-gate/usr/src/test/zfs-tests/cmd/file_trunc/
H A Dfile_trunc.c59 static off_t offset = 0; variable
124 offset = atoi(optarg); in parse_options()
184 if (lseek64(fd, (offset + roffset), SEEK_SET) < 0) { in do_write()
196 if (lseek64(fd, (offset + roffset), SEEK_SET) < 0) { in do_write()
213 "Wrote to offset %lld\n", (offset + roffset)); in do_write()
216 "Read back from offset %lld\n", (offset + roffset)); in do_write()
230 if (ftruncate64(fd, (offset + roffset)) < 0) { in do_trunc()
238 (offset + roffset)); in do_trunc()
/illumos-gate/usr/src/test/smbclient-tests/cmd/file_trunc/
H A Dfile_trunc.c54 static off_t offset = 0; variable
121 offset = atoi(optarg); in parse_options()
181 if (lseek64(fd, (offset + roffset), SEEK_SET) < 0) { in do_write()
193 if (lseek64(fd, (offset + roffset), SEEK_SET) < 0) { in do_write()
210 "Wrote to offset %jd\n", (intmax_t)(offset + roffset)); in do_write()
214 (intmax_t)(offset + roffset)); in do_write()
228 if (ftruncate64(fd, (offset + roffset)) < 0) { in do_trunc()
236 (intmax_t)(offset + roffset)); in do_trunc()
/illumos-gate/usr/src/tools/smatch/src/
H A Dsmatch_container_of.c84 int offset; in print_returns_container_of() local
92 offset = get_offset_from_container_of(expr); in print_returns_container_of()
93 if (offset < 0) in print_returns_container_of()
133 int n, offset; in partial_deref_to_offset_str() local
141 if (offset < 0) in partial_deref_to_offset_str()
398 if (offset == cur) in get_member_from_offset()
454 name = get_name_from_offset(arg, offset); in set_param_value()
465 int offset = 0; in save_vals() local
469 offset = atoi(argv[0]); in save_vals()
476 db_info->prev_offset != offset) { in save_vals()
[all …]
/illumos-gate/usr/src/uts/common/exec/elf/
H A Delf_notes.c330 error = elfnote(vp, &offset, NT_PRPRIV, psize, in write_elfnotes()
343 error = elfnote(vp, &offset, NT_ZONENAME, in write_elfnotes()
413 error = elfnote(vp, &offset, NT_FDINFO, in write_elfnotes()
442 error = elfnote(vp, &offset, NT_FDINFO, in write_elfnotes()
458 error = elfnote(vp, &offset, NT_LDT, ssdsize, in write_elfnotes()
499 error = elfnote(vp, &offset, NT_LWPSINFO, in write_elfnotes()
532 error = elfnote(vp, &offset, NT_LWPSTATUS, in write_elfnotes()
555 error = elfnote(vp, &offset, NT_GWINDOWS, in write_elfnotes()
567 error = elfnote(vp, &offset, NT_ASRS, in write_elfnotes()
577 error = elfnote(vp, &offset, NT_PRXREG, in write_elfnotes()
[all …]
/illumos-gate/usr/src/uts/common/io/bnx/570x/driver/common/lmdev/
H A Dbnx_hw_misc.c64 u32_t offset, in lm_reg_rd_ind() argument
71 REG_WR(pdev, pci_config.pcicfg_reg_window_address, offset); in lm_reg_rd_ind()
92 u32_t offset, in lm_reg_wr_ind() argument
95 DbgBreakIf(offset & 0x3); in lm_reg_wr_ind()
99 REG_WR(pdev, pci_config.pcicfg_reg_window_address, offset); in lm_reg_wr_ind()
116 u32_t offset, in lm_ctx_wr() argument
124 offset += cid_addr; in lm_ctx_wr()
156 REG_WR(pdev, context.ctx_data_adr, offset); in lm_ctx_wr()
172 u32_t offset) in lm_ctx_rd() argument
180 offset += cid_addr; in lm_ctx_rd()
[all …]
/illumos-gate/usr/src/lib/libcurses/screen/
H A Dtiget.ed48 int offset;
51 return (((offset = _tcsearch(tistr, booloffsets, boolnames,
52 _NUMELEMENTS(booloffsets), 0)) == -1) ? -1 : bool_array[offset]);
63 int offset;
66 return (((offset = _tcsearch(tistr, numoffsets, numnames,
67 _NUMELEMENTS(numoffsets), 0)) == -1) ? -2 : num_array[offset]);
78 int offset;
81 return (((offset = _tcsearch(tistr, stroffsets, strnames,
83 str_array[offset]);
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dfsys_jfs.c61 isinxt (s64 key, s64 offset, s64 len) in isinxt() argument
63 return (key >= offset) ? (key < offset + len ? 1 : 0) : 0; in isinxt()
110 s64 offset; in di_read() local
119 offset = offsetXAD (xad); in di_read()
120 if (isinxt (key, offset, lengthXAD (xad))) { in di_read()
232 s64 offset, xadlen; in jfs_read() local
240 offset = offsetXAD (xad); in jfs_read()
243 endofcur = (offset + xadlen) << jfs.l2bsize; in jfs_read()
255 } else if (offset > endofprev) { in jfs_read()
256 toread = ((offset << jfs.l2bsize) >= endpos) in jfs_read()
[all …]
/illumos-gate/usr/src/uts/i86pc/io/gfx_private/
H A Dgfxp_pci.c192 gfxp_pci_read_byte(gfxp_acc_handle_t handle, uint16_t offset) in gfxp_pci_read_byte() argument
204 val = (*pci_getb_func)(bus, dev, func, offset); in gfxp_pci_read_byte()
209 gfxp_pci_read_word(gfxp_acc_handle_t handle, uint16_t offset) in gfxp_pci_read_word() argument
221 val = (*pci_getw_func)(bus, dev, func, offset); in gfxp_pci_read_word()
226 gfxp_pci_read_dword(gfxp_acc_handle_t handle, uint16_t offset) in gfxp_pci_read_dword() argument
238 val = (*pci_getl_func)(bus, dev, func, offset); in gfxp_pci_read_dword()
243 gfxp_pci_write_byte(gfxp_acc_handle_t handle, uint16_t offset, uint8_t value) in gfxp_pci_write_byte() argument
254 (*pci_putb_func)(bus, dev, func, offset, value); in gfxp_pci_write_byte()
258 gfxp_pci_write_word(gfxp_acc_handle_t handle, uint16_t offset, uint16_t value) in gfxp_pci_write_word() argument
269 (*pci_putw_func)(bus, dev, func, offset, value); in gfxp_pci_write_word()
[all …]
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_nt_transact_security.c228 uint32_t offset = SMB_SD_HDRSIZE; in smb_encode_sd() local
237 (void) smb_mbc_encodef(mbc, "l", offset); in smb_encode_sd()
238 offset += smb_sid_len(sd->sd_owner); in smb_encode_sd()
246 (void) smb_mbc_encodef(mbc, "l", offset); in smb_encode_sd()
247 offset += smb_sid_len(sd->sd_group); in smb_encode_sd()
255 offset += smb_acl_len(sd->sd_sacl); in smb_encode_sd()
458 offset += mbc->chain_offset; in smb_decode_sid()
459 bytes_left = mbc->max_bytes - offset; in smb_decode_sid()
510 uint32_t sid_offs = offset; in smb_decode_acl()
514 offset += mbc->chain_offset; in smb_decode_acl()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_whatis.c92 uint_t offset, cur; in mdb_whatis_overlaps() local
151 size_t offset; in mdb_whatis_match() local
176 offset = 0; in mdb_whatis_match()
179 if (offset == 0) { in mdb_whatis_match()
185 offset = (f - w->w_addrs); in mdb_whatis_match()
188 while (offset > 0 && w->w_addrs[offset - 1] >= base) in mdb_whatis_match()
189 offset--; in mdb_whatis_match()
195 for (; offset < w->w_naddrs && ((w->w_addrs[offset] - base) < size); in mdb_whatis_match()
196 offset++) { in mdb_whatis_match()
198 *out = w->w_addrs[offset]; in mdb_whatis_match()
[all …]
/illumos-gate/usr/src/uts/sun4u/io/
H A Disadma.c419 if (IN_CHILD_SPACE(offset)) { /* Pass to parent */ in isadma_get8()
432 if (IN_16BIT_SPACE(offset)) in isadma_get8()
436 if (IS_SEQREG(offset)) in isadma_get8()
460 if (IN_CHILD_SPACE(offset)) { /* Pass to parent */ in isadma_get16()
473 if (!IN_16BIT_SPACE(offset)) in isadma_get16()
518 if (IN_CHILD_SPACE(offset)) { /* Pass to parent */ in isadma_put8()
531 if (END_ISADMA(offset, value)) { in isadma_put8()
541 if (BEGIN_ISADMA(offset, value)) { in isadma_put8()
550 if (IN_16BIT_SPACE(offset)) in isadma_put8()
554 if (IS_SEQREG(offset)) in isadma_put8()
[all …]
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftKeystore.c1363 ulong_t offset = 0; in soft_unpack_object() local
1406 buf += ROUNDUP(offset, 8); in soft_unpack_object()
1425 buf += ROUNDUP(offset, 8); in soft_unpack_object()
1434 buf += ROUNDUP(offset, 8); in soft_unpack_object()
1443 buf += ROUNDUP(offset, 8); in soft_unpack_object()
1462 buf += ROUNDUP(offset, 8); in soft_unpack_object()
1471 buf += ROUNDUP(offset, 8); in soft_unpack_object()
1499 buf += ROUNDUP(offset, 8); in soft_unpack_object()
1508 buf += ROUNDUP(offset, 8); in soft_unpack_object()
1518 buf += ROUNDUP(offset, 8); in soft_unpack_object()
[all …]
/illumos-gate/usr/src/cmd/sendmail/db/os/
H A Dos_seek.c38 off_t offset; local
45 offset = (off_t)pgsize * pageno + relative;
47 offset = -offset;
49 ret = lseek(fd, offset, whence);

12345678910>>...74