Searched refs:off (Results 1 - 25 of 1526) sorted by relevance

1234567891011>>

/src/sys/dev/fdt/
H A Dfdt_openfirm.c41 int off, depth; local in function:OF_peer
51 off = fdtbus_phandle2offset(phandle);
52 if (off < 0) {
57 for (off = fdt_next_node(fdt_data, off, &depth);
58 off >= 0 && depth >= 0;
59 off = fdt_next_node(fdt_data, off, &depth)) {
61 return fdtbus_offset2phandle(off);
72 int off, dept local in function:OF_child
99 int off; local in function:OF_parent
124 int off, len; local in function:OF_nextprop
174 int off, len; local in function:OF_getprop
234 int off, len; local in function:OF_getproplen
291 int off; local in function:OF_finddevice
309 int off; local in function:OF_package_to_path
[all...]
/src/sys/dev/ic/
H A Dtms320av110var.h84 #define tav_read_byte(ioh, iot, off) bus_space_read_1(ioh, iot, off)
86 #define tav_read_short(ioh, iot, off) ( \
87 bus_space_read_1((ioh), (iot), (off)) | \
88 bus_space_read_1((ioh), (iot), (off)+1) << 8)
90 #define tav_read_long(ioh, iot, off) ( \
91 bus_space_read_1((ioh), (iot), (off)) | \
92 bus_space_read_1((ioh), (iot), (off)+1) << 8 | \
93 bus_space_read_1((ioh), (iot), (off)+2) << 16 | \
94 bus_space_read_1((ioh), (iot), (off)
106 tav_write_short(bus_space_tag_t iot,bus_space_handle_t ioh,bus_size_t off,uint16_t val) argument
[all...]
H A Dawivar.h121 #define awi_read_1(sc, off) ((sc)->sc_chip.sc_ops->read_1)(&sc->sc_chip, off)
122 #define awi_read_2(sc, off) ((sc)->sc_chip.sc_ops->read_2)(&sc->sc_chip, off)
123 #define awi_read_4(sc, off) ((sc)->sc_chip.sc_ops->read_4)(&sc->sc_chip, off)
124 #define awi_read_bytes(sc, off, ptr, len) \
125 ((sc)->sc_chip.sc_ops->read_bytes)(&sc->sc_chip, off, ptr, len)
127 #define awi_write_1(sc, off, val) \
128 ((sc)->sc_chip.sc_ops->write_1)(&sc->sc_chip, off, va
[all...]
H A Dam79c930.c144 io_write_1( struct am79c930_softc *sc, u_int32_t off, u_int8_t val) argument
148 ((off>>8)& 0x7f));
150 bus_space_write_1(sc->sc_iot, sc->sc_ioh, AM79C930_LMA_LO, (off&0xff));
157 io_write_2(struct am79c930_softc *sc, u_int32_t off, u_int16_t val) argument
161 ((off>>8)& 0x7f));
163 bus_space_write_1(sc->sc_iot,sc->sc_ioh,AM79C930_LMA_LO, (off&0xff));
172 io_write_4(struct am79c930_softc *sc, u_int32_t off, u_int32_t val) argument
176 ((off>>8)& 0x7f));
178 bus_space_write_1(sc->sc_iot,sc->sc_ioh,AM79C930_LMA_LO, (off&0xff));
191 io_write_bytes(struct am79c930_softc *sc, u_int32_t off, u_int8_ argument
207 io_read_1(struct am79c930_softc * sc,u_int32_t off) argument
222 io_read_2(struct am79c930_softc * sc,u_int32_t off) argument
239 io_read_4(struct am79c930_softc * sc,u_int32_t off) argument
260 io_read_bytes(struct am79c930_softc * sc,u_int32_t off,u_int8_t * ptr,size_t len) argument
276 mem_write_1(struct am79c930_softc * sc,u_int32_t off,u_int8_t val) argument
282 mem_write_2(struct am79c930_softc * sc,u_int32_t off,u_int16_t val) argument
297 mem_write_4(struct am79c930_softc * sc,u_int32_t off,u_int32_t val) argument
314 mem_write_bytes(struct am79c930_softc * sc,u_int32_t off,u_int8_t * ptr,size_t len) argument
321 mem_read_1(struct am79c930_softc * sc,u_int32_t off) argument
327 mem_read_2(struct am79c930_softc * sc,u_int32_t off) argument
340 mem_read_4(struct am79c930_softc * sc,u_int32_t off) argument
355 mem_read_bytes(struct am79c930_softc * sc,u_int32_t off,u_int8_t * ptr,size_t len) argument
[all...]
/src/sys/opencrypto/
H A Dcriov.c45 int cuio_getindx(struct uio *uio, int loc, int *off);
49 cuio_copydata(struct uio *uio, int off, int len, void *cp) argument
55 if (off < 0)
56 panic("cuio_copydata: off %d < 0", off);
59 while (off > 0) {
62 if (off < iov->iov_len)
64 off -= iov->iov_len;
71 count = uimin(iov->iov_len - off, len);
72 memcpy(cp, (char *)iov->iov_base + off, coun
82 cuio_copyback(struct uio * uio,int off,int len,void * cp) argument
127 cuio_getptr(struct uio * uio,int loc,int * off) argument
152 cuio_apply(struct uio * uio,int off,int len,int (* f)(void *,void *,unsigned int),void * fstate) argument
[all...]
/src/sys/arch/sun3/sun3/
H A Dmm_md.c113 mm_md_mmap(dev_t dev, off_t off, int prot) argument
118 if (off & 0xffff0000)
120 off |= 0xff0000;
123 if (off & 0xff000000)
125 off |= 0xff000000;
128 return (off | PMAP_VME16);
131 if (off & 0xffff0000)
133 off |= 0xff0000;
136 if (off & 0xff000000)
138 off |
[all...]
/src/sys/arch/sun3/sun3x/
H A Dmm_md.c111 mm_md_mmap(dev_t dev, off_t off, int prot) argument
117 if (off & 0xffff0000)
119 off |= 0xff0000;
122 if (off & 0xff000000)
124 off |= 0xff000000;
127 return (off | PMAP_VME16);
130 if (off & 0xffff0000)
132 off |= 0xff0000;
135 if (off & 0xff000000)
137 off |
[all...]
/src/sys/crypto/aes/
H A Daes_ccm_mbuf.c42 aes_ccm_enc_mbuf(struct aes_ccm *C, struct mbuf *m, size_t off, size_t len, argument
48 while (off >= m->m_len) {
51 off -= m->m_len;
54 for (; len > 0; m = m->m_next, off = 0, len -= seglen) {
55 KASSERT(m->m_len >= off);
56 p = mtod(m, uint8_t *) + off;
57 seglen = MIN(m->m_len - off, len);
69 size_t off, len; local in function:aes_ccm_dec_mbuf
79 for (m = m0, off = off0, len = len0;
81 m = m->m_next, off
[all...]
/src/games/backgammon/common_source/
H A Dboard.c90 if (off[1] > i || (off[1] < 0 && off[1] + 15 > i)) {
94 if (off[1] > i + 5 || (off[1] < 0 && off[1] + 15 > i + 5)) {
98 if (off[1] > i + 10 || (off[1] < 0 && off[1] + 15 > i + 10)) {
126 if (off[
[all...]
/src/games/boggle/mkindex/
H A Dmkindex.c58 long off, start; local in function:main
62 off = start = 0L;
72 printf("%c %6ld %6ld\n", prev, start, off - 1);
74 printf("%c %6ld %6ld\n", i, off, off - 1);
76 start = off;
78 off += clen + 1;
80 printf("%c %6ld %6ld\n", prev, start, off - 1);
82 printf("%c %6ld %6ld\n", i, off, off
[all...]
/src/sys/rump/net/lib/libshmif/
H A Dshmif_busops.c63 shmif_busread(struct shmif_mem *busmem, void *dest, uint32_t off, size_t len, argument
68 KASSERT(len < (BUSMEM_DATASIZE/2) && off <= BUSMEM_DATASIZE);
69 chunk = MIN(len, BUSMEM_DATASIZE - off);
70 memcpy(dest, busmem->shm_data + off, chunk);
73 if (off + chunk == BUSMEM_DATASIZE)
77 return (off + chunk) % BUSMEM_DATASIZE;
86 shmif_advancefirst(struct shmif_mem *busmem, uint32_t off, size_t len) argument
89 while (off <= busmem->shm_first + sizeof(struct shmif_pkthdr)
90 && off+len > busmem->shm_first) {
98 shmif_buswrite(struct shmif_mem *busmem, uint32_t off, voi argument
[all...]
/src/sys/arch/sun2/sun2/
H A Dmm_md.c106 mm_md_mmap(dev_t dev, off_t off, int prot) argument
111 if (off & 0xffff0000)
113 off |= 0xff0000;
116 if (off & 0xff000000)
118 return (off | (off & 0x800000 ? PMAP_VME8: PMAP_VME0));
/src/sys/arch/hpcmips/stand/lcboot/
H A Dextern.h83 #define REGWRITE_1(base, off, val) \
84 (__REG_1(MIPS_PHYS_TO_KSEG1((u_int32_t) (base) + (off))) \
86 #define REGWRITE_2(base, off, val) \
87 (__REG_2(MIPS_PHYS_TO_KSEG1((u_int32_t) (base) + (off))) \
89 #define REGWRITE_4(base, off, val) \
90 (__REG_4(MIPS_PHYS_TO_KSEG1((u_int32_t) (base) + (off))) \
93 #define REGREAD_1(base, off) \
94 (__REG_1(MIPS_PHYS_TO_KSEG1((u_int32_t) (base) + (off))))
95 #define REGREAD_2(base, off) \
96 (__REG_2(MIPS_PHYS_TO_KSEG1((u_int32_t) (base) + (off))))
[all...]
/src/sys/uvm/
H A Duvm_aobj.h64 #define uao_find_swslot(obj, off) (__USE(off), 0)
65 #define uao_dropswap(obj, off) /* nothing */
/src/sys/external/isc/atheros_hal/dist/ar5212/
H A Dar5212_eeprom.c36 ar5212EepromRead(struct ath_hal *ah, u_int off, uint16_t *data) argument
38 OS_REG_WRITE(ah, AR_EEPROM_ADDR, off);
45 __func__, off);
/src/sys/arch/sandpoint/stand/altboot/
H A Dmemfs.c40 off_t off; member in struct:memhandle
52 mh->off = 0;
73 memcpy(buf, mh->base + mh->off, size);
74 mh->off += size;
87 memcpy(mh->base + mh->off, buf, size);
88 mh->off += size;
104 mh->off = offset;
107 mh->off += offset;
113 return mh->off;
/src/sys/arch/hpcmips/vr/
H A Dflashvar.h64 #define flash_block_erase(sc, off) (sc)->sc_ops->fo_erase((sc), (off))
65 #define flash_block_write(sc, off) (sc)->sc_ops->fo_write((sc), (off))
/src/sys/dev/mvme/
H A Dmemcvar.h44 #define memc_reg_read(sc, off) \
45 bus_space_read_1((sc)->sc_bust, (sc)->sc_bush, (off))
46 #define memc_reg_write(sc, off, v) \
47 bus_space_write_1((sc)->sc_bust, (sc)->sc_bush, (off), (v))
/src/sys/kern/
H A Duipc_mbufdebug.c103 m_peek_data(const struct mbuf *m, int off, int len, void *vp) argument
108 if (off < 0 || len < 0)
111 while (off > 0) {
114 if (off < m->m_len)
116 off -= m->m_len;
122 count = uimin(m->m_len - off, len);
123 memcpy(cp, mtod(m, char *) + off, count);
126 off = 0;
224 m_examine_ether(const struct mbuf *m, int off, const char *modif, argument
230 pktlen = m_peek_len(m, modif) - off;
288 m_examine_pppoe(const struct mbuf * m,int off,const char * modif,void (* pr)(const char *,...)) argument
370 m_examine_ppp(const struct mbuf * m,int off,const char * modif,void (* pr)(const char *,...)) argument
461 m_examine_arp(const struct mbuf * m,int off,const char * modif,void (* pr)(const char *,...)) argument
561 m_examine_ip(const struct mbuf * m,int off,const char * modif,void (* pr)(const char *,...)) argument
620 m_examine_icmp(const struct mbuf * m,int off,const char * modif,void (* pr)(const char *,...)) argument
666 m_examine_ip6(const struct mbuf * m,int off,const char * modif,void (* pr)(const char *,...)) argument
733 m_examine_icmp6(const struct mbuf * m,int off,const char * modif,void (* pr)(const char *,...)) argument
809 m_examine_tcp(const struct mbuf * m,int off,const char * modif,void (* pr)(const char *,...)) argument
942 m_examine_udp(const struct mbuf * m,int off,const char * modif,void (* pr)(const char *,...)) argument
969 m_examine_hex(const struct mbuf * m,int off,const char * modif,void (* pr)(const char *,...)) argument
[all...]
/src/sys/external/isc/atheros_hal/dist/ar5312/
H A Dar5312_eeprom.c35 ar5312EepromRead(struct ath_hal *ah, u_int off, uint16_t *dataIn) argument
42 for (i=0,offset=2*off; i<2; i++,offset++) {
/src/sys/external/isc/atheros_hal/dist/ar5416/
H A Dar5416_eeprom.c35 ar5416EepromRead(struct ath_hal *ah, u_int off, uint16_t *data) argument
37 (void)OS_REG_READ(ah, AR5416_EEPROM_OFFSET + (off << AR5416_EEPROM_S));
/src/lib/libc/sys/
H A Dfdiscard.c49 fdiscard(int fd, off_t off, off_t len) argument
51 return __fdiscard(fd, 0, off, len);
H A Dposix_fallocate.c49 posix_fallocate(int fd, off_t off, off_t len) argument
51 return __posix_fallocate(fd, 0, off, len);
/src/usr.bin/fincore/
H A Dfincore.c84 off_t off; local in function:fincore
87 for (off = startoff; off < endoff;
88 off += chunk_size, vec += chunk_size / page_size) {
91 chunk_size = MIN((off_t)(1024 * page_size), endoff - off);
93 fd, off);
118 off_t off; local in function:do_file
131 for (off = 0; off < st.st_size; off
[all...]
/src/sys/dev/rasops/
H A Drasops_putchar_width.h74 #define SUBST_STAMP1(off, base) \
75 rp[(off) * 1 + 0] = stamp[base]
77 #define SUBST_GLYPH1(index, nibble, off) \
80 rp[(off) * 1 + 0] = STAMP_READ(so); \
89 #define SUBST_STAMP1(off, base) \
90 rp[(off) * 2 + 0] = rp[(off) * 2 + 1] = stamp[base]
92 #define SUBST_GLYPH1(index, nibble, off) \
95 rp[(off) * 2 + 0] = STAMP_READ(so); \
96 rp[(off) *
[all...]

Completed in 24 milliseconds

1234567891011>>