Searched refs:seg (Results 1 - 25 of 122) sorted by relevance

12345

/vbox/src/libs/xpcom18a4/nsprpub/pr/src/md/windows/
H A Dw16mem.c52 PRStatus _MD_AllocSegment(PRSegment *seg, PRUint32 size, void *vaddr) argument
54 PR_ASSERT(seg != 0);
62 seg->vaddr = (char *)malloc(size);
64 if (seg->vaddr == NULL) {
68 seg->size = size;
77 void _MD_FreeSegment(PRSegment *seg) argument
79 PR_ASSERT((seg->flags & _PR_SEG_VM) == 0);
81 if (seg->vaddr != NULL)
82 free( seg->vaddr );
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/memory/
H A Dprseg.c64 PRSegment *seg; local
67 seg = PR_NEWZAP(PRSegment);
69 if (seg) {
75 if (_PR_MD_ALLOC_SEGMENT(seg, size, vaddr) != PR_SUCCESS) {
76 PR_DELETE(seg);
81 return seg;
87 void _PR_DestroySegment(PRSegment *seg) argument
89 _PR_MD_FREE_SEGMENT(seg);
90 PR_DELETE(seg);
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/md/beos/
H A Dbmemory.c41 PR_EXTERN(PRStatus) _PR_MD_ALLOC_SEGMENT(PRSegment *seg, PRUint32 size, void *vaddr);
42 PR_EXTERN(void) _PR_MD_FREE_SEGMENT(PRSegment *seg);
H A Dbseg.c46 _MD_alloc_segment (PRSegment *seg, PRUint32 size, void *vaddr)
52 _MD_free_segment (PRSegment *seg) argument
/vbox/src/VBox/Devices/Network/lwip/src/core/
H A Dtcp_out.c59 static void tcp_output_segment(struct tcp_seg *seg, struct tcp_pcb *pcb);
121 struct tcp_seg *seg, *useg, *queue; local
165 useg = queue = seg = NULL;
174 seg = memp_malloc(MEMP_TCP_SEG);
175 if (seg == NULL) {
179 seg->next = NULL;
180 seg->p = NULL;
184 queue = seg;
190 useg->next = seg;
193 useg = seg;
379 struct tcp_seg *seg, *useg; local
519 tcp_output_segment(struct tcp_seg *seg, struct tcp_pcb *pcb) argument
621 struct tcp_seg *seg; local
650 struct tcp_seg *seg; local
[all...]
/vbox/src/VBox/Devices/PC/ipxe/src/arch/i386/include/
H A Dlibkir.h98 #define put_real_kir_const_off( var, seg, off ) \
104 : "r,r" ( var ), "rm,rm" ( seg ), "i,!r" ( off ) \
107 #define put_real_kir_nonconst_off( var, seg, off ) \
113 : "r" ( var ), "rm" ( seg ), "r" ( off ) \
116 #define put_real_kir( var, seg, off ) \
119 put_real_kir_const_off ( var, seg, off ); \
121 put_real_kir_nonconst_off ( var, seg, off ); \
124 #define get_real_kir_const_off( var, seg, off ) \
130 : "rm,rm" ( seg ), "i,!r" ( off ) \
133 #define get_real_kir_nonconst_off( var, seg, of
[all...]
/vbox/src/VBox/Devices/Network/lwip-new/src/core/
H A Dtcp_out.c66 #define TCP_DATA_COPY(dst, src, len, seg) do { \
68 len, &seg->chksum, &seg->chksum_swapped); \
69 seg->flags |= TF_SEG_DATA_CHECKSUMMED; } while(0)
73 #define TCP_DATA_COPY(dst, src, len, seg) MEMCPY(dst, src, len)
84 static void tcp_output_segment(struct tcp_seg *seg, struct tcp_pcb *pcb);
164 struct tcp_seg *seg; local
167 if ((seg = (struct tcp_seg *)memp_malloc(MEMP_TCP_SEG)) == NULL) {
172 seg->flags = optflags;
173 seg
360 struct tcp_seg *last_unsent = NULL, *seg = NULL, *prev_seg = NULL, *queue = NULL; local
728 struct tcp_seg *seg; local
908 struct tcp_seg *seg, *useg; local
1060 tcp_output_segment(struct tcp_seg *seg, struct tcp_pcb *pcb) argument
1255 struct tcp_seg *seg; local
1296 struct tcp_seg *seg; local
1440 struct tcp_seg *seg; local
[all...]
/vbox/src/VBox/Additions/WINNT/Graphics/Wine/include/wine/
H A Dlibrary.h174 # define __DEFINE_GET_SEG(seg) \
175 static inline unsigned short wine_get_##seg(void); \
176 static inline unsigned short wine_get_##seg(void) \
177 { unsigned short res; __asm__ __volatile__("movw %%" #seg ",%w0" : "=r"(res)); return res; }
178 # define __DEFINE_SET_SEG(seg) \
179 static inline void wine_set_##seg(int val); \
180 static inline void wine_set_##seg(int val) { __asm__("movw %w0,%%" #seg : : "r" (val)); }
182 # define __DEFINE_GET_SEG(seg) \
183 extern inline unsigned short wine_get_##seg(voi
[all...]
/vbox/src/VBox/Devices/PC/BIOS/
H A Dbios.c51 uint8_t read_byte(uint16_t seg, uint16_t offset) argument
53 return( *(seg:>(uint8_t *)offset) );
56 void write_byte(uint16_t seg, uint16_t offset, uint8_t data) argument
58 *(seg:>(uint8_t *)offset) = data;
61 uint16_t read_word(uint16_t seg, uint16_t offset) argument
63 return( *(seg:>(uint16_t *)offset) );
66 void write_word(uint16_t seg, uint16_t offset, uint16_t data) argument
68 *(seg:>(uint16_t *)offset) = data;
71 uint32_t read_dword(uint16_t seg, uint16_t offset) argument
73 return( *(seg
76 write_dword(uint16_t seg, uint16_t offset, uint32_t data) argument
[all...]
H A Dinlines.h28 extern uint8_t read_byte(uint16_t seg, uint16_t offset);
29 extern uint16_t read_word(uint16_t seg, uint16_t offset);
30 extern uint32_t read_dword(uint16_t seg, uint16_t offset);
31 extern void write_byte(uint16_t seg, uint16_t offset, uint8_t data);
32 extern void write_word(uint16_t seg, uint16_t offset, uint16_t data);
33 extern void write_dword(uint16_t seg, uint16_t offset, uint32_t data);
/vbox/src/libs/xpcom18a4/xpcom/io/
H A DnsSegmentedBuffer.cpp103 char* seg = (char*)mSegAllocator->Alloc(mSegmentSize); local
104 if (seg == nsnull) {
107 mSegmentArray[mLastSegmentIndex] = seg;
109 return seg;
177 char* seg; local
179 seg = buf->AppendNewSegment();
180 NS_ASSERTION(seg, "AppendNewSegment failed");
181 seg = buf->AppendNewSegment();
182 NS_ASSERTION(seg, "AppendNewSegment failed");
183 seg
[all...]
/vbox/src/VBox/Devices/Graphics/shaderlib/wine/include/wine/
H A Dlibrary.h174 # define __DEFINE_GET_SEG(seg) \
175 static FORCEINLINE unsigned short wine_get_##seg(void) \
176 { unsigned short res; __asm__ __volatile__("movw %%" #seg ",%w0" : "=r"(res)); return res; }
177 # define __DEFINE_SET_SEG(seg) \
178 static FORCEINLINE void wine_set_##seg(int val) \
179 { __asm__("movw %w0,%%" #seg : : "r" (val)); }
181 # define __DEFINE_GET_SEG(seg) \
182 static inline unsigned short wine_get_##seg(void) \
183 { unsigned short res; __asm { mov res, seg } return res; }
184 # define __DEFINE_SET_SEG(seg) \
[all...]
/vbox/src/recompiler/tests/
H A Dqruncom.c100 static inline uint8_t *seg_to_linear(unsigned int seg, unsigned int reg) argument
102 return (uint8_t *)((seg << 4) + (reg & 0xffff));
124 int fd, ret, seg; local
182 seg = (COM_BASE_ADDR - 0x100) >> 4;
184 cpu_x86_load_seg_cache(env, R_CS, seg,
185 (seg << 4), 0xffff, 0);
186 cpu_x86_load_seg_cache(env, R_SS, seg,
187 (seg << 4), 0xffff, 0);
188 cpu_x86_load_seg_cache(env, R_DS, seg,
189 (seg <<
[all...]
H A Druncom.c41 static inline uint8_t *seg_to_linear(unsigned int seg, unsigned int reg) argument
43 return (uint8_t *)((seg << 4) + (reg & 0xffff));
76 int fd, ret, seg; local
121 seg = (COM_BASE_ADDR - 0x100) >> 4;
122 r->cs = seg;
123 r->ss = seg;
124 r->ds = seg;
125 r->es = seg;
126 r->fs = seg;
127 r->gs = seg;
[all...]
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/threads/combined/
H A Dprustack.c103 _PR_DestroySegment(ts->seg);
151 ts->seg = _PR_NewSegment(ts->allocSize, 0);
152 if (!ts->seg) {
159 ts->allocBase = (char*)ts->seg->vaddr;
/vbox/src/VBox/Devices/Graphics/BIOS/
H A Dinlines.h28 extern uint8_t read_byte(uint16_t seg, uint16_t offset);
29 extern uint16_t read_word(uint16_t seg, uint16_t offset);
30 extern uint32_t read_dword(uint16_t seg, uint16_t offset);
31 extern void write_byte(uint16_t seg, uint16_t offset, uint8_t data);
32 extern void write_word(uint16_t seg, uint16_t offset, uint16_t data);
33 extern void write_dword(uint16_t seg, uint16_t offset, uint32_t data);
100 extern void memsetb(uint16_t seg, uint16_t offset, uint16_t value, uint16_t count);
109 extern void memsetw(uint16_t seg, uint16_t offset, uint16_t value, uint16_t count);
/vbox/src/VBox/Additions/x11/x11include/xorg-server-1.16.0/
H A Dregs.h177 #define R_CS seg.CS
178 #define R_DS seg.DS
179 #define R_SS seg.SS
180 #define R_ES seg.ES
181 #define R_FS seg.FS
182 #define R_GS seg.GS
274 struct i386_segment_regs seg; member in struct:__anon6844
/vbox/src/VBox/Additions/x11/x11include/xorg-server-1.17.1/
H A Dregs.h177 #define R_CS seg.CS
178 #define R_DS seg.DS
179 #define R_SS seg.SS
180 #define R_ES seg.ES
181 #define R_FS seg.FS
182 #define R_GS seg.GS
274 struct i386_segment_regs seg; member in struct:__anon7163
/vbox/src/VBox/Additions/x11/x11include/xorg-server-1.3.0.0/
H A Dregs.h166 #define R_CS seg.CS
167 #define R_DS seg.DS
168 #define R_SS seg.SS
169 #define R_ES seg.ES
170 #define R_FS seg.FS
171 #define R_GS seg.GS
263 struct i386_segment_regs seg; member in struct:__anon7471
/vbox/src/VBox/Additions/x11/x11include/xorg-server-1.4.2/
H A Dregs.h166 #define R_CS seg.CS
167 #define R_DS seg.DS
168 #define R_SS seg.SS
169 #define R_ES seg.ES
170 #define R_FS seg.FS
171 #define R_GS seg.GS
263 struct i386_segment_regs seg; member in struct:__anon7846
/vbox/src/VBox/Additions/x11/x11include/xorg-server-1.5.3/
H A Dregs.h166 #define R_CS seg.CS
167 #define R_DS seg.DS
168 #define R_SS seg.SS
169 #define R_ES seg.ES
170 #define R_FS seg.FS
171 #define R_GS seg.GS
263 struct i386_segment_regs seg; member in struct:__anon8198
/vbox/src/VBox/Additions/x11/x11include/xorg-server-1.6.5/
H A Dregs.h166 #define R_CS seg.CS
167 #define R_DS seg.DS
168 #define R_SS seg.SS
169 #define R_ES seg.ES
170 #define R_FS seg.FS
171 #define R_GS seg.GS
263 struct i386_segment_regs seg; member in struct:__anon8515
/vbox/src/VBox/Additions/x11/x11include/xorg-server-1.7.7/
H A Dregs.h166 #define R_CS seg.CS
167 #define R_DS seg.DS
168 #define R_SS seg.SS
169 #define R_ES seg.ES
170 #define R_FS seg.FS
171 #define R_GS seg.GS
263 struct i386_segment_regs seg; member in struct:__anon8834
/vbox/src/VBox/Additions/x11/x11include/xorg-server-1.8.0/
H A Dregs.h166 #define R_CS seg.CS
167 #define R_DS seg.DS
168 #define R_SS seg.SS
169 #define R_ES seg.ES
170 #define R_FS seg.FS
171 #define R_GS seg.GS
263 struct i386_segment_regs seg; member in struct:__anon9148
/vbox/src/VBox/Additions/x11/x11include/xorg-server-1.9.0/
H A Dregs.h166 #define R_CS seg.CS
167 #define R_DS seg.DS
168 #define R_SS seg.SS
169 #define R_ES seg.ES
170 #define R_FS seg.FS
171 #define R_GS seg.GS
263 struct i386_segment_regs seg; member in struct:__anon9468

Completed in 146 milliseconds

12345