Searched refs:offset (Results 151 - 175 of 1646) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/uts/common/io/e1000g/
H A De1000g_osdep.c67 int32_t offset; /* offset to register */ local
76 offset = IGP01E1000_GMII_FIFO;
84 offset = IGP02E1000_PHY_POWER_MGMT;
91 (void) e1000_read_phy_reg(hw, offset, &reg);
98 (void) e1000_write_phy_reg(hw, offset, reg);
103 * config space at offset reg into the capability space.
118 * Write the given 16-bit value to pci-e config space at offset reg into the
133 /* write at given offset into block */
/illumos-gate/usr/src/uts/common/io/e1000api/
H A De1000_nvm.h63 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/cmd/mdb/common/mdb/
H A Dmdb_dump.c51 * field, and offset is the index of the byte that we want highlighted.
52 * If the output isn't MDB_DUMP_ALIGNed, we use offset to adjust the
57 mdb_dump_header(int flags, int pad, int offset) argument
68 if (i == offset && !nalign)
71 mdb_printf("%2x", (i + (nalign * offset)) & 0xf);
77 if (i == offset && !nalign)
80 mdb_printf("%x", (i + (nalign * offset)) & 0xf);
200 uint64_t offset; /* bytes between first position and addr */ local
271 offset = l;
273 offset
[all...]
/illumos-gate/usr/src/uts/common/io/
H A Dpci_cap.c253 uint32_t id, uint16_t base, uint16_t offset)
266 offset += base;
270 data = pci_config_get8(h, offset);
273 data = pci_config_get16(h, offset);
276 data = pci_config_get32(h, offset);
282 PCI_CAP_DBG("pci_cap_get: %p[x%x]=x%x\n", (void *)h, offset, data);
294 uint32_t id, uint16_t base, uint16_t offset,
304 offset += base;
308 pci_config_put8(h, offset, data);
311 pci_config_put16(h, offset, dat
252 pci_cap_get(ddi_acc_handle_t h, pci_cap_config_size_t size, uint32_t id, uint16_t base, uint16_t offset) argument
293 pci_cap_put(ddi_acc_handle_t h, pci_cap_config_size_t size, uint32_t id, uint16_t base, uint16_t offset, uint32_t data) argument
[all...]
/illumos-gate/usr/src/uts/sun4u/io/
H A Dsbbc.c108 static int sbbc_offset_valid(uint32_t offset);
114 off_t offset, off_t len, caddr_t *addrp);
578 /* Adjust our reg property with offset and length */
842 cmn_err(CE_CONT, "?%s%d at %s%d: offset %s\n",
1140 uint64_t offset; local
1161 * Note that I've also added a check to make sure the offset is
1167 !sbbc_offset_valid(sbbcregs.offset)) {
1171 offset = (uint64_t)sbbcsoftp->pci_sbbc_map;
1172 offset += sbbcregs.offset;
1180 uint64_t offset; local
1375 sbbc_offset_valid(uint32_t offset) argument
[all...]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dpriv_str_xlate.c80 char *offset; local
103 while ((offset = strtok_r(NULL, separators, &last)) != NULL) {
107 if (basic != NULL && strcasecmp(offset, "basic") == 0) {
109 } else if (strcasecmp(offset, "none") == 0) {
111 } else if (strcasecmp(offset, "all") == 0) {
113 } else if (strcasecmp(offset, "zone") == 0) {
116 boolean_t neg = (*offset == '-' || *offset == '!');
120 privid = priv_getbyname(offset +
121 ((neg || *offset
[all...]
/illumos-gate/usr/src/cmd/sgs/librtld_db/demo/common/
H A Ddis.c149 ulong_t offset, end; local
155 for (offset = addr, end = addr + num_inst * 4; offset < end;
156 offset += 4) {
160 if (ps_pread(ph, offset, (char *)&instr,
165 instr_str = disassemble(instr, offset, print_address, 0, 0,
168 (void) printf("%-30s: %s\n", print_address(offset), instr_str);
/illumos-gate/usr/src/tools/ctf/dwarf/common/
H A Ddwarf_abbrev.c52 Dwarf_Unsigned offset,
80 if (offset >= dbg->de_debug_abbrev.dss_size) {
102 abbrev_ptr = dbg->de_debug_abbrev.dss_data + offset;
143 *length = abbrev_ptr - dbg->de_debug_abbrev.dss_data - offset;
200 Dwarf_Off * offset, Dwarf_Error * error)
254 if (offset != NULL)
255 *offset = mark_abbrev_ptr - abbrev->ab_dbg->de_debug_abbrev.dss_data;
51 dwarf_get_abbrev(Dwarf_Debug dbg, Dwarf_Unsigned offset, Dwarf_Abbrev * returned_abbrev, Dwarf_Unsigned * length, Dwarf_Unsigned * abbr_count, Dwarf_Error * error) argument
196 dwarf_get_abbrev_entry(Dwarf_Abbrev abbrev, Dwarf_Signed index, Dwarf_Half * returned_attr_num, Dwarf_Signed * form, Dwarf_Off * offset, Dwarf_Error * error) argument
/illumos-gate/usr/src/uts/common/os/
H A Dcompress.c69 * dedicating more bits to offset, fewer to match length. LZJB uses 6 bits
70 * to encode the match length, 10 bits to encode the offset. Since copy-item
76 * byte[0] = ((length - 3) << 2) | (offset >> 8);
77 * byte[1] = (uint8_t)offset;
79 * In our example above, an offset of 6 with length 11 would be encoded as:
84 * Similarly, an offset of 5 with length 10 would be encoded as:
134 int mlen, offset; local
156 offset = (intptr_t)(src - *hp) & OFFSET_MASK;
158 cpy = src - offset;
166 (offset >> NBB
200 int offset = ((src[0] << NBBY) | src[1]) & OFFSET_MASK; local
[all...]
H A Dip_cksum.c72 * For nonSTRUIO_IP mblks, assumes mp->b_rptr+offset is 16 bit aligned.
81 ip_cksum(mblk_t *mp, int offset, uint_t sum) argument
100 w = (ushort_t *)(mp->b_rptr + offset);
106 if ((offset > dp->db_cksumstart) ||
122 if ((mlen = dp->db_cksumstart - offset) < 0)
192 w = (ushort_t *)(mp->b_rptr + offset);
205 if ((offset > dp->db_cksumstart) ||
220 if ((mlen = dp->db_cksumstart - offset) < 0)
354 offset = 0;
385 sctp_cksum(mblk_t *mp, int offset) argument
424 ip_md_cksum(pdesc_t *pd, int offset, uint_t sum) argument
[all...]
/illumos-gate/usr/src/uts/i86pc/io/gfx_private/
H A Dgfx_private.h42 extern int gfxp_ddi_segmap_setup(dev_t dev, off_t offset, struct as *as,
59 extern uint8_t gfxp_pci_read_byte(gfxp_acc_handle_t handle, uint16_t offset);
60 extern uint16_t gfxp_pci_read_word(gfxp_acc_handle_t handle, uint16_t offset);
61 extern uint32_t gfxp_pci_read_dword(gfxp_acc_handle_t handle, uint16_t offset);
62 extern void gfxp_pci_write_byte(gfxp_acc_handle_t handle, uint16_t offset,
64 extern void gfxp_pci_write_word(gfxp_acc_handle_t handle, uint16_t offset,
66 extern void gfxp_pci_write_dword(gfxp_acc_handle_t handle, uint16_t offset,
/illumos-gate/usr/src/uts/common/crypto/io/
H A Dskein_mod.c265 off_t offset = data->cd_offset; local
280 offset >= uio->uio_iov[vec_idx].iov_len;
281 offset -= uio->uio_iov[vec_idx++].iov_len)
285 * The caller specified an offset that is larger than the
295 cur_len = MIN(uio->uio_iov[vec_idx].iov_len - offset, length);
297 + offset, cur_len);
300 offset = 0;
322 off_t offset = digest->cd_offset; local
333 for (vec_idx = 0; offset >= uio->uio_iov[vec_idx].iov_len &&
335 offset
393 off_t offset = data->cd_offset; local
438 off_t offset = digest->cd_offset; local
[all...]
H A Dmd5_mod.c322 off_t offset = data->cd_offset; local
336 offset >= data->cd_uio->uio_iov[vec_idx].iov_len;
337 offset -= data->cd_uio->uio_iov[vec_idx++].iov_len)
341 * The caller specified an offset that is larger than the
352 offset, length);
355 offset, cur_len);
359 offset = 0;
385 off_t offset = digest->cd_offset; local
396 for (vec_idx = 0; offset >= digest->cd_uio->uio_iov[vec_idx].iov_len &&
398 offset
477 off_t offset = data->cd_offset; local
530 off_t offset = digest->cd_offset; local
1324 off_t offset = mac->cd_offset; local
1371 off_t offset = mac->cd_offset; local
[all...]
H A Dsha1_mod.c264 off_t offset = data->cd_offset; local
278 offset >= data->cd_uio->uio_iov[vec_idx].iov_len;
279 offset -= data->cd_uio->uio_iov[vec_idx++].iov_len)
283 * The caller specified an offset that is larger than the
294 offset, length);
297 (uint8_t *)data->cd_uio->uio_iov[vec_idx].iov_base + offset,
302 offset = 0;
328 off_t offset = digest->cd_offset; local
339 for (vec_idx = 0; offset >= digest->cd_uio->uio_iov[vec_idx].iov_len &&
341 offset
420 off_t offset = data->cd_offset; local
473 off_t offset = digest->cd_offset; local
1265 off_t offset = mac->cd_offset; local
1312 off_t offset = mac->cd_offset; local
[all...]
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dfsys_ffs.c101 int bnum, offset, bsize; local
113 offset = ((file_block - NDADDR) % NINDIR (SUPERBLOCK));
116 if (offset + MAPBUF_LEN > SUPERBLOCK->fs_bsize)
117 offset = (SUPERBLOCK->fs_bsize - MAPBUF_LEN) / sizeof (int);
122 offset = 0;
125 if (! devread (bnum, offset * sizeof (int), bsize, (char *) MAPBUF))
136 mapblock_offset = offset;
H A Dfsys_ufs2.c125 int bnum, offset, bsize; local
138 offset = ((file_block - NDADDR) % NINDIR (SUPERBLOCK));
141 if (offset + MAPBUF_LEN > SUPERBLOCK->fs_bsize)
142 offset = (SUPERBLOCK->fs_bsize - MAPBUF_LEN) / sizeof (int);
147 offset = 0;
150 if (! devread (bnum, offset * sizeof (int), bsize, (char *) MAPBUF))
161 mapblock_offset = offset;
/illumos-gate/usr/src/common/atomic/sparcv9/
H A Datomic.s212 and %o0, 0x3, %o4 ! %o4 = byte offset, left-to-right
213 xor %o4, 0x3, %g1 ! %g1 = byte offset, right-to-left
214 sll %g1, 3, %g1 ! %g1 = bit offset, right-to-left
216 sll %o3, %g1, %o3 ! %o3 = shifted to bit offset
217 sll %o1, %g1, %o1 ! %o1 = shifted to bit offset
284 and %o0, 0x2, %o4 ! %o4 = byte offset, left-to-right
285 xor %o4, 0x2, %g1 ! %g1 = byte offset, right-to-left
286 sll %o4, 3, %o4 ! %o4 = bit offset, left-to-right
287 sll %g1, 3, %g1 ! %g1 = bit offset, right-to-left
289 srl %o3, %o4, %o3 ! %o3 = shifted to bit offset
[all...]
/illumos-gate/usr/src/uts/common/io/nxge/npi/
H A Dnpi_rxdma.h40 * Register offset (0x200 bytes for each channel) for receive ring registers.
99 #define RXDMA_BUFF_OFFSET_VALID(offset) \
100 ((offset == SW_OFFSET_NO_OFFSET) || \
101 (offset == SW_OFFSET_64) || \
102 (offset == SW_OFFSET_128))
104 #define RXDMA_RF_BUFF_OFFSET_VALID(offset) \
105 ((offset == SW_OFFSET_NO_OFFSET) || \
106 (offset == SW_OFFSET_64) || \
107 (offset == SW_OFFSET_128) || \
108 (offset
538 uint8_t offset; /* 64 byte offsets */ member in struct:_rdc_desc_cfg_t
[all...]
/illumos-gate/usr/src/boot/sys/boot/usb/
H A Dusb_busdma_loader.c35 * usbd_get_page - lookup DMA-able memory for the given offset
41 usbd_get_page(struct usb_page_cache *pc, usb_frlength_t offset, argument
55 res->buffer = USB_ADD_BYTES(pc->buffer, offset);
57 offset += pc->page_offset_buf;
65 page += (offset / USB_PAGE_SIZE);
67 offset %= USB_PAGE_SIZE;
69 res->length = USB_PAGE_SIZE - offset;
70 res->physaddr = page->physaddr + offset;
73 res->physaddr = page->physaddr + offset;
79 res->buffer = USB_ADD_BYTES(page->buffer, offset);
97 usbd_copy_in(struct usb_page_cache *cache, usb_frlength_t offset, const void *ptr, usb_frlength_t len) argument
121 usbd_copy_out(struct usb_page_cache *cache, usb_frlength_t offset, void *ptr, usb_frlength_t len) argument
145 usbd_frame_zero(struct usb_page_cache *cache, usb_frlength_t offset, usb_frlength_t len) argument
[all...]
/illumos-gate/usr/src/cmd/sendmail/libsmutil/
H A Dsafefile.c386 ** offset -- offset into fn to start checking from.
394 safedirpath(fn, uid, gid, user, flags, level, offset)
401 int offset;
416 if (level < 0 || offset < 0 || offset > strlen(fn))
424 sm_dprintf("safedirpath(%s, uid=%ld, gid=%ld, flags=%lx, level=%d, offset=%d):\n",
425 fn, (long) uid, (long) gid, flags, level, offset);
434 p = s + offset;
508 offset
[all...]
/illumos-gate/usr/src/uts/sun4u/daktari/io/
H A Dhpc3130_dak.c69 #define HPC3130_REG(offset, slot) ((offset) + ((slot)*8))
660 uint8_t offset; local
671 offset = ste->callback_info.offset;
673 unitp->enabled[offset] =
875 /* Pick off pointer to 3130 register offset */
888 "invalid register offset value");
927 * at that point is the device handle and the register offset
932 ste->callback_info.offset
1128 hpc3130_write(i2c_client_hdl_t handle, uint8_t offset, uint8_t port, uint8_t data) argument
1139 hpc3130_read(i2c_client_hdl_t handle, uint8_t offset, uint8_t port, uint8_t *data) argument
1802 hpc3130_verify_slot_power(hpc3130_unit_t *hpc3130_p, i2c_client_hdl_t handle, uint8_t offset, char *phys_slot, boolean_t slot_target_state) argument
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_pf.c90 * offset is the offset in bytes from the beginning
94 int offset; member in struct:__anon9
249 static void pf_check_vlan_tag(uint_t offset);
251 static void pf_emit_load_offset(uint_t offset);
256 static void pf_compare_value_mask_generic(int offset, uint_t len,
262 * instructions to change the offset register. It's used
266 * It's initialized to pf_clear_offset_register because the offset
409 pf_compare_value(int offset, uint_t len, uint_t val) argument
415 if (offset
480 pf_compare_value_v6(int offset, uint_t len, struct in6_addr val) argument
500 pf_compare_value_mask(int offset, uint_t len, uint_t val, int mask) argument
510 pf_compare_value_mask_neq(int offset, uint_t len, uint_t val, int mask) argument
523 pf_compare_value_mask_generic(int offset, uint_t len, uint_t val, int mask, uint_t op) argument
585 pf_compare_zoneid(int offset, uint32_t val) argument
821 pf_compare_address(int offset, uint_t len, uchar_t *addr) argument
987 pf_emit_load_offset(uint_t offset) argument
1034 pf_check_vlan_tag(uint_t offset) argument
[all...]
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dufs_dir.c99 * For ufs we squeeze both the 32 bit inumber and a 32 bit disk offset
100 * into the handle. Note, a 32 bit offset allows a 4GB directory, which
191 off_t endsearch; /* offset to end directory search */
192 off_t offset; local
193 off_t start_off; /* starting offset from middle search */
194 off_t last_offset; /* last offset */
195 int entryoffsetinblock; /* offset of ep in addr's buffer */
352 offset = 0;
360 offset = dp->i_diroff;
361 if (offset > d
1023 off_t offset; /* offset in the directory */ local
1459 off_t offset; local
1777 off_t offset; local
2767 blkatoff( struct inode *ip, off_t offset, char **res, struct fbuf **fbpp) argument
2809 dirmangled( struct inode *dp, struct direct *ep, int entryoffsetinblock, off_t offset) argument
2828 dirbad(struct inode *ip, char *how, off_t offset) argument
[all...]
/illumos-gate/usr/src/lib/libfru/libfruraw/
H A Draw_access.c409 seghdr->offset = BE_16(seg_layout->offset);
545 segment->offset = seg_object->u.seg_obj->segment.offset;
555 raw_memcpy(void *buffer, raw_list_t *rawlist, int offset, int size) argument
557 if (offset + size > rawlist->size) {
558 size = rawlist->size - offset;
561 (void) memcpy(buffer, &rawlist->raw[offset], size);
613 section->offset = sec_obj->section.offset;
738 int offset = 0; local
778 get_packet(raw_list_t *rawlist, void *buffer, int size, int offset) argument
792 get_packets(hash_obj_t *seg_hash, raw_list_t *rawlist, int offset, int length) argument
971 uint16_t offset; local
[all...]
/illumos-gate/usr/src/uts/common/io/drm/
H A Ddrm_bufs.c68 drm_find_map(drm_device_t *dev, u_offset_t offset, int type) argument
73 if ((map->type == type) && ((map->offset == offset) ||
82 int drm_addmap(drm_device_t *dev, unsigned long offset, argument
97 if ((offset & PAGE_MASK) || (size & PAGE_MASK))
99 if (offset + size < offset)
106 map = drm_find_map(dev, offset, type);
119 map->offset = offset;
401 unsigned long offset; local
509 unsigned long offset; local
[all...]

Completed in 157 milliseconds

1234567891011>>