Home
last modified time | relevance | path

Searched refs:size (Results 1 – 25 of 468) sorted by relevance

12345678910>>...19

/utopia/UTPA2-700.0.x/modules/msos/msos/linux_kernel/
H A Dmem_priv.h146 cyg_int32 size; member
152 Cyg_Mempool_Implementation__try_alloc(Cyg_Mempool_Implementation* pThis, cyg_int32 size );
161 Cyg_Mempool_Implementation__free( Cyg_Mempool_Implementation* pThis, cyg_uint8 *p, cyg_int32 size );
197 (*roundup)(Cyg_Mempool_Implementation* pThis, cyg_int32 size);
268 Cyg_Mempool_Implementation__roundup( Cyg_Mempool_Implementation* pThis, cyg_int32 size ) in Cyg_Mempool_Implementation__roundup() argument
271 size += sizeof(struct memdq); in Cyg_Mempool_Implementation__roundup()
272 size = (size + pThis->alignment - 1) & -pThis->alignment; in Cyg_Mempool_Implementation__roundup()
273 return size; in Cyg_Mempool_Implementation__roundup()
306 pThis->freemem += dq->size; in Cyg_Mempool_Implementation__insert_free_block()
319 if (dq->next != hdq && (char *)dq + dq->size == (char *)dq->next) { in Cyg_Mempool_Implementation__insert_free_block()
[all …]
H A Dmem_priv.c102 Cyg_Mempool__alloc(Cyg_Mempool* pThis, cyg_int32 size) in Cyg_Mempool__alloc() argument
104 return pThis->mypool.alloc( &pThis->mypool, size ); in Cyg_Mempool__alloc()
109 Cyg_Mempool__alloc(Cyg_Mempool* pThis, cyg_int32 size, cyg_tick_count delay_timeout) in Cyg_Mempool__alloc() argument
111 return pThis->mypool.alloc( &pThis->mypool, size , delay_timeout ); in Cyg_Mempool__alloc()
117 Cyg_Mempool__try_alloc(Cyg_Mempool* pThis, cyg_int32 size) in Cyg_Mempool__try_alloc() argument
119 return pThis->mypool.try_alloc( &pThis->mypool, size ); in Cyg_Mempool__try_alloc()
131 Cyg_Mempool__free( Cyg_Mempool* pThis, cyg_uint8 *p, cyg_int32 size ) in Cyg_Mempool__free() argument
133 return pThis->mypool.free( &pThis->mypool, p, size ); in Cyg_Mempool__free()
159 cyg_int32 size, in cyg_mempool_var_create() argument
168 Cyg_Mempool__Create((Cyg_Mempool*)var->pThis, (cyg_uint8*)base, size, 16); in cyg_mempool_var_create()
[all …]
/utopia/UTPA2-700.0.x/modules/msos/msos/linux_kernel_V2/
H A Dmem_priv.h147 cyg_int32 size; member
153 Cyg_Mempool_Implementation__try_alloc(Cyg_Mempool_Implementation* pThis, cyg_int32 size );
162 Cyg_Mempool_Implementation__free( Cyg_Mempool_Implementation* pThis, cyg_uint8 *p, cyg_int32 size );
198 (*roundup)(Cyg_Mempool_Implementation* pThis, MS_VIRT size);
269 Cyg_Mempool_Implementation__roundup( Cyg_Mempool_Implementation* pThis, MS_VIRT size ) in Cyg_Mempool_Implementation__roundup() argument
272 size += sizeof(struct memdq); in Cyg_Mempool_Implementation__roundup()
273 size = (size + pThis->alignment - 1) & -pThis->alignment; in Cyg_Mempool_Implementation__roundup()
274 return size; in Cyg_Mempool_Implementation__roundup()
307 pThis->freemem += dq->size; in Cyg_Mempool_Implementation__insert_free_block()
320 if (dq->next != hdq && (char *)dq + dq->size == (char *)dq->next) { in Cyg_Mempool_Implementation__insert_free_block()
[all …]
H A Dmem_priv.c102 Cyg_Mempool__alloc(Cyg_Mempool* pThis, cyg_int32 size) in Cyg_Mempool__alloc() argument
104 return pThis->mypool.alloc( &pThis->mypool, size ); in Cyg_Mempool__alloc()
109 Cyg_Mempool__alloc(Cyg_Mempool* pThis, cyg_int32 size, cyg_tick_count delay_timeout) in Cyg_Mempool__alloc() argument
111 return pThis->mypool.alloc( &pThis->mypool, size , delay_timeout ); in Cyg_Mempool__alloc()
117 Cyg_Mempool__try_alloc(Cyg_Mempool* pThis, cyg_int32 size) in Cyg_Mempool__try_alloc() argument
119 return pThis->mypool.try_alloc( &pThis->mypool, size ); in Cyg_Mempool__try_alloc()
131 Cyg_Mempool__free( Cyg_Mempool* pThis, cyg_uint8 *p, cyg_int32 size ) in Cyg_Mempool__free() argument
133 return pThis->mypool.free( &pThis->mypool, p, size ); in Cyg_Mempool__free()
159 cyg_int32 size, in cyg_mempool_var_create() argument
168 Cyg_Mempool__Create((Cyg_Mempool*)var->pThis, (cyg_uint8*)base, size, 16); in cyg_mempool_var_create()
[all …]
/utopia/UTPA2-700.0.x/modules/msos/msos/linux/
H A Dmem_priv.h146 cyg_int32 size; member
152 Cyg_Mempool_Implementation__try_alloc(Cyg_Mempool_Implementation* pThis, cyg_int32 size );
161 Cyg_Mempool_Implementation__free( Cyg_Mempool_Implementation* pThis, cyg_uint8 *p, cyg_int32 size );
197 (*roundup)(Cyg_Mempool_Implementation* pThis, cyg_int32 size);
268 Cyg_Mempool_Implementation__roundup( Cyg_Mempool_Implementation* pThis, cyg_int32 size ) in Cyg_Mempool_Implementation__roundup() argument
271 size += sizeof(struct memdq); in Cyg_Mempool_Implementation__roundup()
272 size = (size + pThis->alignment - 1) & -pThis->alignment; in Cyg_Mempool_Implementation__roundup()
273 return size; in Cyg_Mempool_Implementation__roundup()
303 pThis->freemem += dq->size; in Cyg_Mempool_Implementation__insert_free_block()
319 if ((dq->next != hdq) && ((char *)dq + dq->size == (char *)dq->next)) { in Cyg_Mempool_Implementation__insert_free_block()
[all …]
H A Dmem_priv.c98 Cyg_Mempool__alloc(Cyg_Mempool* pThis, cyg_int32 size) in Cyg_Mempool__alloc() argument
100 return pThis->mypool.alloc( &pThis->mypool, size ); in Cyg_Mempool__alloc()
105 Cyg_Mempool__alloc(Cyg_Mempool* pThis, cyg_int32 size, cyg_tick_count delay_timeout) in Cyg_Mempool__alloc() argument
107 return pThis->mypool.alloc( &pThis->mypool, size , delay_timeout ); in Cyg_Mempool__alloc()
113 Cyg_Mempool__try_alloc(Cyg_Mempool* pThis, cyg_int32 size) in Cyg_Mempool__try_alloc() argument
115 return pThis->mypool.try_alloc( &pThis->mypool, size ); in Cyg_Mempool__try_alloc()
127 Cyg_Mempool__free( Cyg_Mempool* pThis, cyg_uint8 *p, cyg_int32 size ) in Cyg_Mempool__free() argument
129 return pThis->mypool.free( &pThis->mypool, p, size ); in Cyg_Mempool__free()
155 cyg_int32 size, in cyg_mempool_var_create() argument
164 Cyg_Mempool__Create((Cyg_Mempool*)var->pThis, (cyg_uint8*)base, size, 16); in cyg_mempool_var_create()
[all …]
/utopia/UTPA2-700.0.x/modules/msos/msos/ucos/
H A Dmem_priv.h146 cyg_int32 size; member
152 Cyg_Mempool_Implementation__try_alloc(Cyg_Mempool_Implementation* pThis, cyg_int32 size );
161 Cyg_Mempool_Implementation__free( Cyg_Mempool_Implementation* pThis, cyg_uint8 *p, cyg_int32 size );
197 (*roundup)(Cyg_Mempool_Implementation* pThis, cyg_int32 size);
268 Cyg_Mempool_Implementation__roundup( Cyg_Mempool_Implementation* pThis, cyg_int32 size ) in Cyg_Mempool_Implementation__roundup() argument
271 size += sizeof(struct memdq); in Cyg_Mempool_Implementation__roundup()
272 size = (size + pThis->alignment - 1) & -pThis->alignment; in Cyg_Mempool_Implementation__roundup()
273 return size; in Cyg_Mempool_Implementation__roundup()
303 pThis->freemem += dq->size; in Cyg_Mempool_Implementation__insert_free_block()
319 if ((dq->next != hdq) && ((char *)dq + dq->size == (char *)dq->next)) { in Cyg_Mempool_Implementation__insert_free_block()
[all …]
H A Dmem_priv.c98 Cyg_Mempool__alloc(Cyg_Mempool* pThis, cyg_int32 size) in Cyg_Mempool__alloc() argument
100 return pThis->mypool.alloc( &pThis->mypool, size ); in Cyg_Mempool__alloc()
105 Cyg_Mempool__alloc(Cyg_Mempool* pThis, cyg_int32 size, cyg_tick_count delay_timeout) in Cyg_Mempool__alloc() argument
107 return pThis->mypool.alloc( &pThis->mypool, size , delay_timeout ); in Cyg_Mempool__alloc()
113 Cyg_Mempool__try_alloc(Cyg_Mempool* pThis, cyg_int32 size) in Cyg_Mempool__try_alloc() argument
115 return pThis->mypool.try_alloc( &pThis->mypool, size ); in Cyg_Mempool__try_alloc()
127 Cyg_Mempool__free( Cyg_Mempool* pThis, cyg_uint8 *p, cyg_int32 size ) in Cyg_Mempool__free() argument
129 return pThis->mypool.free( &pThis->mypool, p, size ); in Cyg_Mempool__free()
155 cyg_int32 size, in cyg_mempool_var_create() argument
164 Cyg_Mempool__Create((Cyg_Mempool*)var->pThis, (cyg_uint8*)base, size, 16); in cyg_mempool_var_create()
[all …]
/utopia/UTPA2-700.0.x/modules/usb/drv/usb_ecos/usbhost/
H A DdrvEHCIDBG.cpp513 unsigned size = *sizep; in qh_lines() local
540 temp = snprintf (next, size, in qh_lines()
550 size -= temp; in qh_lines()
600 temp = snprintf (next, size, in qh_lines()
609 else if (size < temp) in qh_lines()
610 temp = size; in qh_lines()
611 size -= temp; in qh_lines()
613 if (temp == size) in qh_lines()
617 temp = snprintf (next, size, "\n"); in qh_lines()
620 else if (size < temp) in qh_lines()
[all …]
H A DdrvConfig.c97 …dpoint(struct usb_device *dev, struct usb_host_endpoint *endpoint, unsigned char *buffer, int size) in usb_parse_endpoint() argument
105 if (header->bLength > size) { in usb_parse_endpoint()
148 size -= header->bLength; in usb_parse_endpoint()
153 while ((U32)size >= sizeof(struct usb_descriptor_header)) { in usb_parse_endpoint()
181 size -= header->bLength; in usb_parse_endpoint()
235 …interface(struct usb_device *dev, struct usb_interface *interface, unsigned char *buffer, int size) in usb_parse_interface() argument
267 while (size > 0) { in usb_parse_interface()
311 size -= ifp->desc.bLength; in usb_parse_interface()
316 while ((U32)size >= sizeof(struct usb_descriptor_header)) { in usb_parse_interface()
334 size -= header->bLength; in usb_parse_interface()
[all …]
H A DdrvKernel.c159 int find_next_zero_bit_le (void *p, int size, int offset)
172 for(j=jOffset;j<size/8;j++)
184 return size;
191 U32 find_next_zero_bit(const U32 *addr, U32 size, U32 offset) in find_next_zero_bit() argument
197 if (offset >= size) in find_next_zero_bit()
198 return size; in find_next_zero_bit()
199 size -= result; in find_next_zero_bit()
204 if (size < BITS_PER_LONG) in find_next_zero_bit()
208 size -= BITS_PER_LONG; in find_next_zero_bit()
229 while (size & ~(BITS_PER_LONG-1)) { in find_next_zero_bit()
[all …]
H A DdrvPCIMEM.c117 size_t size, size_t align, size_t allocation) in pci_pool_create() argument
123 if (size == 0) in pci_pool_create()
125 else if (size < align) in pci_pool_create()
126 size = align; in pci_pool_create()
127 else if ((size % align) != 0) { in pci_pool_create()
128 size += align + 1; in pci_pool_create()
129 size &= ~(align - 1); in pci_pool_create()
149 if (PAGE_SIZE < size) in pci_pool_create()
150 allocation = size; in pci_pool_create()
153 } else if (allocation < size) in pci_pool_create()
[all …]
H A DdrvMM.c242 void *ncmem_alloc(dma_addr_t *dma_addr, U32 size) in ncmem_alloc() argument
252 if ( size%PAGE_SIZE != 0) in ncmem_alloc()
253 size = size/PAGE_SIZE +1; in ncmem_alloc()
255 size = size/PAGE_SIZE; in ncmem_alloc()
256 num_of_pages = size/PAGE_SIZE; in ncmem_alloc()
291 …NCM_Dbg("The allocated addr = %p, size = %ld pages = %ld, end of bitmap[%ld]=0x%08lX",retval ,size in ncmem_alloc()
306 void ncmem_free(U32 addr,U32 size) in ncmem_free() argument
312 if ( size%PAGE_SIZE != 0) in ncmem_free()
313 size = size/PAGE_SIZE +1; in ncmem_free()
315 size = size/PAGE_SIZE; in ncmem_free()
[all …]
/utopia/UTPA2-700.0.x/projects/tools/lint/mips-linux-gnu_include/bits/
H A Dstdio.h145 # define fread_unlocked(ptr, size, n, stream) \ argument
146 (__extension__ ((__builtin_constant_p (size) && __builtin_constant_p (n) \
147 && (size_t) (size) * (size_t) (n) <= 8 \
148 && (size_t) (size) != 0) \
152 for (__cnt = (size_t) (size) * (size_t) (n); \
160 ((size_t) (size) * (size_t) (n) - __cnt) \
161 / (size_t) (size); }) \
162 : (((__builtin_constant_p (size) && (size_t) (size) == 0) \
165 ? ((void) (ptr), (void) (stream), (void) (size), \
167 : fread_unlocked (ptr, size, n, stream))))
[all …]
/utopia/UTPA2-700.0.x/modules/usb/drv/usbhost/source4/usb_hid_p4/
H A Ddrvhidcore_4.c152 switch (item->size) { in item_udata_Port4()
164 switch (item->size) { in item_sdata_Port4()
199 item->size = *start++; in fetch_item_Port4()
202 if ((end - start) >= item->size) { in fetch_item_Port4()
204 start += item->size; in fetch_item_Port4()
211 item->size = b & 3; in fetch_item_Port4()
213 switch (item->size) { in fetch_item_Port4()
240 item->size++; in fetch_item_Port4()
316 axis_Port4[axis_idx_Port4].size=parser->global.report_size; in hid_chk_variable_Port4()
318 gOffsetBit_Port4+=axis_Port4[axis_idx_Port4].size; in hid_chk_variable_Port4()
[all …]
/utopia/UTPA2-700.0.x/modules/usb/drv/usbhost/source3/usb_hid_p3/
H A Ddrvhidcore_3.c152 switch (item->size) { in item_udata_Port3()
164 switch (item->size) { in item_sdata_Port3()
199 item->size = *start++; in fetch_item_Port3()
202 if ((end - start) >= item->size) { in fetch_item_Port3()
204 start += item->size; in fetch_item_Port3()
211 item->size = b & 3; in fetch_item_Port3()
213 switch (item->size) { in fetch_item_Port3()
240 item->size++; in fetch_item_Port3()
316 axis_Port3[axis_idx_Port3].size=parser->global.report_size; in hid_chk_variable_Port3()
318 gOffsetBit_Port3+=axis_Port3[axis_idx_Port3].size; in hid_chk_variable_Port3()
[all …]
/utopia/UTPA2-700.0.x/modules/usb/drv/usbhost/source/usb_hid_p1/
H A Ddrvhidcore.c151 switch (item->size) { in item_udata()
163 switch (item->size) { in item_sdata()
198 item->size = *start++; in fetch_item()
201 if ((end - start) >= item->size) { in fetch_item()
203 start += item->size; in fetch_item()
210 item->size = b & 3; in fetch_item()
212 switch (item->size) { in fetch_item()
239 item->size++; in fetch_item()
315 axis[axis_idx].size=parser->global.report_size; in hid_chk_variable()
317 gOffsetBit+=axis[axis_idx].size; in hid_chk_variable()
[all …]
/utopia/UTPA2-700.0.x/modules/usb/drv/usbhost/source2/usb_hid_p2/
H A Ddrvhidcore_2.c151 switch (item->size) { in item_udata_Port2()
163 switch (item->size) { in item_sdata_Port2()
198 item->size = *start++; in fetch_item_Port2()
201 if ((end - start) >= item->size) { in fetch_item_Port2()
203 start += item->size; in fetch_item_Port2()
210 item->size = b & 3; in fetch_item_Port2()
212 switch (item->size) { in fetch_item_Port2()
239 item->size++; in fetch_item_Port2()
315 axis_Port2[axis_idx_Port2].size=parser->global.report_size; in hid_chk_variable_Port2()
317 gOffsetBit_Port2+=axis_Port2[axis_idx_Port2].size; in hid_chk_variable_Port2()
[all …]
/utopia/UTPA2-700.0.x/modules/mfe/api/mfe/
H A DMuxCommon.c153 int len, size, i, allsize; in outbuf_put() local
168 allsize = size = pinfo->size1+pinfo->size2; in outbuf_put()
218 size = pinfo->size1; in outbuf_put()
220 if (len>size) { in outbuf_put()
221 memcpy(write_ptr, buf, size); in outbuf_put()
222 write_ptr += size; in outbuf_put()
227 len = size - len; in outbuf_put()
242 size = pinfo->size2; in outbuf_put()
244 if (len>size) { in outbuf_put()
245 memcpy(write_ptr, buf, size); in outbuf_put()
[all …]
/utopia/UTPA2-700.0.x/modules/dscmb/api/nsk2hdi/
H A Dnsk2hdi_m2m.c90 MS_U32 size; member
621 u32DelayTime = pM2MConfig->size >> 10 ; //100k byte, 1ms in NSKHDI_WriteM2MTest()
634 pTestInput = MApi_NSK2_AllocateMemory(pM2MConfig->size, FALSE); in NSKHDI_WriteM2MTest()
635 pTestOutput = MApi_NSK2_AllocateMemory(pM2MConfig->size, FALSE); in NSKHDI_WriteM2MTest()
637 memcpy(pTestInput, pM2MConfig->pInput,pM2MConfig->size); in NSKHDI_WriteM2MTest()
640 stCfg.stInput.u32Size = pM2MConfig->size; in NSKHDI_WriteM2MTest()
646 stCfg.stOutput.u32Size = pM2MConfig->size; in NSKHDI_WriteM2MTest()
676 memcpy(pM2MConfig->pOutput, pTestOutput,pM2MConfig->size); in NSKHDI_WriteM2MTest()
689 stCfg.stInput.u32Size = pM2MConfig->size; in NSKHDI_WriteM2MTest()
695 stCfg.stOutput.u32Size = pM2MConfig->size; in NSKHDI_WriteM2MTest()
[all …]
/utopia/UTPA2-700.0.x/modules/mfe/drv/mfe/
H A Dmdrv_mfe.c506 bits_info[i].size = bitsframe[index].size; in MDrv_MFE_getbits()
528 MFE_U32 DMAGetFile(char *tmpname, DWORD start, DWORD size, int type, char *Buffer) in DMAGetFile() argument
531 FPGA_MIUReadFile(tmpname, start, size, type, Buffer); in DMAGetFile()
534 addr_phy2log(start), addr_phy2log(start+size)); in DMAGetFile()
539 int DMAPutMem(char *from_ptr, int size, MFE_U32 to_addr, int type) in DMAPutMem() argument
542 FPGA_MIUWrite(from_ptr, size, to_addr, type); in DMAPutMem()
544 memcpy((char *)addr_phy2log(to_addr), from_ptr, size); in DMAPutMem()
548 memcpy((char *)to_addr, from_ptr, size); in DMAPutMem()
555 static void printf_CRC(int order,unsigned int size, unsigned char* crc) in printf_CRC() argument
559 order,size,crc[1],crc[0],crc[3],crc[2],crc[5],crc[4],crc[7],crc[6]); in printf_CRC()
[all …]
/utopia/UTPA2-700.0.x/modules/usb/drv/usb_ecos/newhost/
H A DdrvMM.c249 void *ncmem_alloc(dma_addr_t *dma_addr, U32 size) in ncmem_alloc() argument
259 if ( size%PAGE_SIZE != 0) in ncmem_alloc()
260 size = size/PAGE_SIZE +1; in ncmem_alloc()
262 size = size/PAGE_SIZE; in ncmem_alloc()
263 num_of_pages = size/PAGE_SIZE; in ncmem_alloc()
299 … addr = %p, size = %ld pages = %ld, end of bitmap[%ld]=0x%08lX\n",retval ,size, num_of_pages, map,… in ncmem_alloc()
314 void ncmem_free(U32 addr,U32 size) in ncmem_free() argument
320 if ( size%PAGE_SIZE != 0) in ncmem_free()
321 size = size/PAGE_SIZE +1; in ncmem_free()
323 size = size/PAGE_SIZE; in ncmem_free()
[all …]
/utopia/UTPA2-700.0.x/projects/tools/lint/mips-linux-gnu_include/asm/
H A Dioctl.h57 #define _IOC(dir, type, nr, size) \ argument
61 ((size) << _IOC_SIZESHIFT))
72 #define _IOR(type, nr, size) _IOC(_IOC_READ, (type), (nr), (_IOC_TYPECHECK(size))) argument
73 #define _IOW(type, nr, size) _IOC(_IOC_WRITE, (type), (nr), (_IOC_TYPECHECK(size))) argument
74 #define _IOWR(type, nr, size) _IOC(_IOC_READ|_IOC_WRITE, (type), (nr), (_IOC_TYPECHECK(size))) argument
75 #define _IOR_BAD(type, nr, size) _IOC(_IOC_READ, (type), (nr), sizeof(size)) argument
76 #define _IOW_BAD(type, nr, size) _IOC(_IOC_WRITE, (type), (nr), sizeof(size)) argument
77 #define _IOWR_BAD(type, nr, size) _IOC(_IOC_READ|_IOC_WRITE, (type), (nr), sizeof(size)) argument
/utopia/UTPA2-700.0.x/projects/build/scripts/
H A Dcheckstack.pl128 my $size = $1;
129 $size = hex($size) if ($size =~ /^0x/);
131 if ($size > 0xf0000000) {
132 $size = - $size;
133 $size += 0x80000000;
134 $size += 0x80000000;
136 next if ($size > 0x10000000);
149 next if ($size < 100);
150 push @stack, "$intro$size\n";
153 my $size = "Dynamic ($1)";
[all …]
/utopia/UTPA2-700.0.x/projects/tools/lint/mips-linux-gnu_include/asm-generic/
H A Dioctl.h65 #define _IOC(dir,type,nr,size) \ argument
69 ((size) << _IOC_SIZESHIFT))
80 #define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),(_IOC_TYPECHECK(size))) argument
81 #define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size))) argument
82 #define _IOWR(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size))) argument
83 #define _IOR_BAD(type,nr,size) _IOC(_IOC_READ,(type),(nr),sizeof(size)) argument
84 #define _IOW_BAD(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),sizeof(size)) argument
85 #define _IOWR_BAD(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size)) argument

12345678910>>...19