| /utopia/UTPA2-700.0.x/projects/build/scripts/kconfig/ |
| H A D | confdata.c | 128 sym->flags |= def_flags; in conf_set_sym_val() 134 sym->flags |= def_flags; in conf_set_sym_val() 139 sym->flags |= def_flags; in conf_set_sym_val() 170 sym->flags |= def_flags; in conf_set_sym_val() 230 sym->flags |= SYMBOL_CHANGED; in conf_read_simple() 231 sym->flags &= ~(def_flags|SYMBOL_VALID); in conf_read_simple() 233 sym->flags |= def_flags; in conf_read_simple() 269 if (sym->flags & def_flags) { in conf_read_simple() 276 sym->flags |= def_flags; in conf_read_simple() 303 if (sym->flags & def_flags) { in conf_read_simple() [all …]
|
| H A D | symbol.c | 18 .flags = SYMBOL_CONST|SYMBOL_VALID, 22 .flags = SYMBOL_CONST|SYMBOL_VALID, 26 .flags = SYMBOL_CONST|SYMBOL_VALID, 30 .flags = SYMBOL_VALID, 60 sym->flags |= SYMBOL_AUTO; in sym_init() 295 if (sym->flags & SYMBOL_VALID) in sym_calc_value() 297 sym->flags |= SYMBOL_VALID; in sym_calc_value() 317 sym->flags &= ~SYMBOL_WRITE; in sym_calc_value() 335 sym->flags |= SYMBOL_WRITE; in sym_calc_value() 343 sym->flags |= SYMBOL_WRITE; in sym_calc_value() [all …]
|
| /utopia/UTPA2-700.0.x/modules/msos/msos/linux_kernel_V2/ |
| H A D | MsOS_linux_kernel.c | 304 #define SEMA_MUTEX_LOCK(flags) spin_lock_irqsave(&_MsOS_Semaphore_Mutex, flags) argument 305 #define SEMA_MUTEX_UNLOCK(flags) spin_unlock_irqrestore(&_MsOS_Semaphore_Mutex, flags) argument 322 #define EVENT_MUTEX_LOCK(flags) spin_lock_irqsave(&_MsOS_EventGroup_Mutex,flags) argument 323 #define EVENT_MUTEX_UNLOCK(flags) spin_unlock_irqrestore(&_MsOS_EventGroup_Mutex, flags) argument 363 #define TIMER_MUTEX_LOCK(flags) spin_lock_irqsave(&_MsOS_Timer_Mutex, flags) argument 364 #define TIMER_MUTEX_UNLOCK(flags) spin_unlock_irqrestore(&_MsOS_Timer_Mutex, flags) argument 1429 unsigned long flags; in MsOS_CreateSemaphore() local 1432 SEMA_MUTEX_LOCK(flags); in MsOS_CreateSemaphore() 1448 SEMA_MUTEX_UNLOCK(flags); in MsOS_CreateSemaphore() 1456 SEMA_MUTEX_UNLOCK(flags); in MsOS_CreateSemaphore() [all …]
|
| H A D | drvCMAPool.c | 248 int flags=O_RDWR; in MApi_CMA_Pool_Init() local 252 _fileCMAPool = filp_open( "/dev/cmapool", flags, 0); in MApi_CMA_Pool_Init() 263 heap_info.flags = Init_Param->flags; in MApi_CMA_Pool_Init() 266 heap_info.flags |= CMA_FLAG_MAP_KERNEL; in MApi_CMA_Pool_Init() 268 …]heap_info heap_id:%x, flags:%llx \n",__FUNCTION__,__LINE__,Init_Param->heap_id,Init_Param->flags); in MApi_CMA_Pool_Init() 289 if(!(Init_Param->flags & CMA_FLAG_MAP_VMA)) in MApi_CMA_Pool_Init() 321 if(Init_Param->flags & CMA_FLAG_CACHED) in MApi_CMA_Pool_Init() 368 alloc_args.flags = alloc_param->flags; in MApi_CMA_Pool_GetMem() 372 alloc_args.flags |= CMA_FLAG_MAP_KERNEL; in MApi_CMA_Pool_GetMem() 375 …__,alloc_param->pool_handle_id,alloc_param->offset_in_pool,alloc_param->length,alloc_param->flags); in MApi_CMA_Pool_GetMem() [all …]
|
| H A D | drvIPAPool.c | 294 if (in_interrupt() || (current->flags & PF_KTHREAD)) in MApi_IPA_Pool_Init() 323 int flags=O_RDWR; in MApi_IPA_Pool_Init() local 327 _fileIPAPool = filp_open( "/dev/ipapool", flags, 0); in MApi_IPA_Pool_Init() 468 if (in_interrupt() || (current->flags & PF_KTHREAD)) in MApi_IPA_Pool_GetMem() 515 if (in_interrupt() || (current->flags & PF_KTHREAD)) in MApi_IPA_Pool_PutMem() 565 if (in_interrupt() || (current->flags & PF_KTHREAD)) in MApi_IPA_Pool_Release() 675 if (in_interrupt() || (current->flags & PF_KTHREAD)) 774 if (in_interrupt() || (current->flags & PF_KTHREAD)) 852 if (in_interrupt() || (current->flags & PF_KTHREAD)) in MApi_IPA_Pool_MapKerVA() 954 if (in_interrupt() || (current->flags & PF_KTHREAD)) in MApi_IPA_Pool_UnmapKerVA() [all …]
|
| /utopia/UTPA2-700.0.x/modules/usb/drv/usb_ecos/usbhost/ |
| H A D | drvHCD.c | 371 if (hcd->driver->flags & HCD_USB2) in rh_call_control() 373 else if (hcd->driver->flags & HCD_USB11) in rh_call_control() 410 if (hcd->driver->flags & HCD_USB2) { in rh_call_control() 545 local_irq_save (flags); in rh_call_control() 547 local_irq_restore (flags); in rh_call_control() 640 local_irq_save (flags); in rh_report_status() 649 local_irq_restore (flags); in rh_report_status() 677 local_irq_restore (flags); in rh_report_status() 705 U32 flags; in rh_urb_enqueue() local 707 spin_lock_irqsave (&hcd_data_lock, flags); in rh_urb_enqueue() [all …]
|
| H A D | drvHub.c | 841 U32 flags; in hub_irq() local 947 spin_lock_irqsave(&hub_event_lock, flags); in hub_irq() 961 spin_unlock_irqrestore(&hub_event_lock, flags); in hub_irq() 1186 U32 flags; in hub_tt_kevent() local 1188 spin_lock_irqsave (&hub->tt.lock, flags); in hub_tt_kevent() 1256 spin_unlock_irqrestore (&hub->tt.lock, flags); in hub_tt_kevent() 1259 spin_lock_irqsave (&hub->tt.lock, flags); in hub_tt_kevent() 1267 spin_unlock_irqrestore (&hub->tt.lock, flags); in hub_tt_kevent() 1272 U32 flags; in usb_hub_tt_clear_buffer() local 1439 spin_lock_irqsave (&utt->lock, flags); in usb_hub_tt_clear_buffer() [all …]
|
| H A D | drvMM.c | 173 U32 flags; in ncmem_alloc_page() local 175 spin_lock_irqsave (&pool->lock, flags); in ncmem_alloc_page() 200 spin_unlock_irqrestore (&pool->lock, flags); in ncmem_alloc_page() 217 U32 flags; in ncmem_free_page() local 224 spin_lock_irqsave (NULL, flags); in ncmem_free_page() 227 spin_unlock_irqrestore (&pool->lock, flags); in ncmem_free_page() 244 U32 flags; in ncmem_alloc() local 257 spin_lock_irqsave (&pool->lock, flags); in ncmem_alloc() 290 spin_unlock_irqrestore (&pool->lock, flags); in ncmem_alloc() 308 U32 flags; in ncmem_free() local [all …]
|
| H A D | drvPCIMEM.c | 246 U32 flags; in pci_pool_alloc() local 254 spin_lock_irqsave (&pool->lock, flags); in pci_pool_alloc() 336 spin_unlock_irqrestore (&pool->lock, flags); in pci_pool_alloc() 354 U32 flags; in pci_pool_destroy() local 355 spin_lock_irqsave (&pool->lock, flags); in pci_pool_destroy() 389 spin_unlock_irqrestore (&pool->lock, flags); in pci_pool_destroy() 413 U32 flags; in pool_find_page() local 417 spin_lock_irqsave (&pool->lock, flags); in pool_find_page() 447 spin_unlock_irqrestore (&pool->lock, flags); in pool_find_page() 472 U32 flags; in pci_pool_free() local [all …]
|
| H A D | drvEhciHcd.c | 682 U32 flags; in ehci_hub_status_data() local 743 spin_lock_irqsave (&ehci->lock, flags); in ehci_hub_status_data() 976 spin_unlock_irqrestore (&ehci->lock, flags); in ehci_hub_status_data() 1263 U32 flags; in ehci_hub_control() local 1320 spin_lock_irqsave (&ehci->lock, flags); in ehci_hub_control() 1877 spin_unlock_irqrestore (&ehci->lock, flags); in ehci_hub_control() 3561 int flags in qh_urb_transaction() argument 3665 qtd = ehci_qtd_alloc (ehci, flags); in qh_urb_transaction() 3781 qtd = ehci_qtd_alloc (ehci, flags); in qh_urb_transaction() 3983 qtd = ehci_qtd_alloc (ehci, flags); in qh_urb_transaction() [all …]
|
| H A D | drvTransport.c | 281 if (us->flags & DONT_SUBMIT) in usb_stor_msg_common() 317 set_bit(US_FLIDX_URB_ACTIVE, &us->flags, U32); in usb_stor_msg_common() 320 if (us->flags & DONT_SUBMIT) { in usb_stor_msg_common() 323 if (test_and_clear_bit(US_FLIDX_URB_ACTIVE, &us->flags)) { in usb_stor_msg_common() 350 clear_bit(US_FLIDX_URB_ACTIVE, &us->flags, U32); in usb_stor_msg_common() 644 clear_bit(US_FLIDX_URB_ACTIVE, &us->flags, U32); in usb_stor_bulk_transfer_async_wait() 660 set_bit(US_FLIDX_URB_ACTIVE, &us->flags, U32); in usb_stor_bulk_transfer_async_send() 685 if (us->flags & DONT_SUBMIT) 699 set_bit(US_FLIDX_SG_ACTIVE, &us->flags); 702 if (us->flags & DONT_SUBMIT) { [all …]
|
| H A D | drvEHCI_MEM.cxx | 115 static struct ehci_qtd *ehci_qtd_alloc (struct ehci_hcd *ehci, int flags) in ehci_qtd_alloc() argument 120 qtd = (struct ehci_qtd*) pci_pool_alloc (ehci->qtd_pool, flags, &dma); in ehci_qtd_alloc() 150 static struct ehci_qh *ehci_qh_alloc (struct ehci_hcd *ehci, int flags) in ehci_qh_alloc() argument 157 pci_pool_alloc (ehci->qh_pool, flags, &dma); in ehci_qh_alloc() 170 qh->dummy = ehci_qtd_alloc (ehci, flags); in ehci_qh_alloc() 282 static int ehci_mem_init (struct ehci_hcd *ehci, int flags) in ehci_mem_init() argument 308 ehci->async = ehci_qh_alloc (ehci, flags); in ehci_mem_init() 358 ehci->pshadow = (union ehci_shadow *) kmalloc (ehci->periodic_size * sizeof (void *), flags); in ehci_mem_init()
|
| /utopia/UTPA2-700.0.x/projects/build/scripts/coccinelle/locks/ |
| H A D | flags.cocci | 1 /// Find nested lock+irqsave functions that use the same flags variables 16 expression lock1,lock2,flags; 21 spin_lock_irqsave@p1(lock1,flags) 23 read_lock_irqsave@p1(lock1,flags) 25 write_lock_irqsave@p1(lock1,flags) 27 ... when != flags 29 spin_lock_irqsave(lock1,flags) 31 read_lock_irqsave(lock1,flags) 33 write_lock_irqsave(lock1,flags) 35 spin_lock_irqsave@p2(lock2,flags) [all …]
|
| /utopia/UTPA2-700.0.x/modules/irq/hal/k6/irq/ |
| H A D | halIRQ.c | 803 #define IRQ_MUTEX_LOCK(flags) spin_lock_irqsave(&_HAL_IRQ_Mutex, flags) argument 805 #define IRQ_MUTEX_UNLOCK(flags) spin_unlock_irqrestore(&_HAL_IRQ_Mutex, flags) argument 819 unsigned long flags; in CHIP_InitISR() local 820 IRQ_MUTEX_LOCK(flags); in CHIP_InitISR() 823 IRQ_MUTEX_UNLOCK(flags); in CHIP_InitISR() 830 IRQ_MUTEX_UNLOCK(flags); in CHIP_InitISR() 837 unsigned long flags; in CHIP_EnableIRQ() local 839 IRQ_MUTEX_LOCK(flags); in CHIP_EnableIRQ() 846 IRQ_MUTEX_UNLOCK(flags); in CHIP_EnableIRQ() 849 IRQ_MUTEX_UNLOCK(flags); in CHIP_EnableIRQ() [all …]
|
| /utopia/UTPA2-700.0.x/modules/irq/hal/k6lite/irq/ |
| H A D | halIRQ.c | 803 #define IRQ_MUTEX_LOCK(flags) spin_lock_irqsave(&_HAL_IRQ_Mutex, flags) argument 805 #define IRQ_MUTEX_UNLOCK(flags) spin_unlock_irqrestore(&_HAL_IRQ_Mutex, flags) argument 819 unsigned long flags; in CHIP_InitISR() local 820 IRQ_MUTEX_LOCK(flags); in CHIP_InitISR() 823 IRQ_MUTEX_UNLOCK(flags); in CHIP_InitISR() 830 IRQ_MUTEX_UNLOCK(flags); in CHIP_InitISR() 837 unsigned long flags; in CHIP_EnableIRQ() local 839 IRQ_MUTEX_LOCK(flags); in CHIP_EnableIRQ() 846 IRQ_MUTEX_UNLOCK(flags); in CHIP_EnableIRQ() 849 IRQ_MUTEX_UNLOCK(flags); in CHIP_EnableIRQ() [all …]
|
| /utopia/UTPA2-700.0.x/modules/msos/msos/linux/ |
| H A D | drvCMAPool.c | 248 heap_info.flags = Init_Param->flags; in MApi_CMA_Pool_Init() 263 if(!(Init_Param->flags & CMA_FLAG_MAP_VMA)) in MApi_CMA_Pool_Init() 301 if(Init_Param->flags & CMA_FLAG_CACHED) in MApi_CMA_Pool_Init() 346 alloc_args.flags = alloc_param->flags; in MApi_CMA_Pool_GetMem() 351 …ong long)alloc_args.offset_in_heap, (unsigned long)alloc_args.length, (ptrdiff_t)alloc_args.flags); in MApi_CMA_Pool_GetMem() 356 if(alloc_args.flags & CMA_FLAG_VIRT_ADDR) in MApi_CMA_Pool_GetMem() 482 vma_valid_args.flags = vma_valid_Param->flags; in CMA_Pool_CMA_Heap_Get_User_VA() 486 …kernel mode get user va fail: heap_id %u,flags %u\n", vma_valid_args.heap_id,vma_valid_args.flags); in CMA_Pool_CMA_Heap_Get_User_VA() 508 mmap_user_va_page_args.flags = mmap_user_va_page->flags; in CMA_Pool_CMA_Mmap_User_VA_Page() 511 …va page fail: heap_id %u,flags %u\n", mmap_user_va_page_args.heap_id,mmap_user_va_page_args.flags); in CMA_Pool_CMA_Mmap_User_VA_Page() [all …]
|
| /utopia/UTPA2-700.0.x/projects/build/scripts/dtc/ |
| H A D | flattree.c | 36 int flags; member 268 if (vi->flags & FTF_FULLPATH) in flatten_tree() 287 if ((vi->flags & FTF_VARALIGN) && (prop->val.len >= 8)) in flatten_tree() 294 if ((vi->flags & FTF_NAMEPROPS) && !seen_name_prop) { in flatten_tree() 299 if ((vi->flags & FTF_VARALIGN) && ((tree->basenamelen+1) >= 8)) in flatten_tree() 358 if (vi->flags & FTF_BOOTCPUID) in make_fdt_header() 360 if (vi->flags & FTF_STRTABSIZE) in make_fdt_header() 362 if (vi->flags & FTF_STRUCTSIZE) in make_fdt_header() 498 if (vi->flags & FTF_BOOTCPUID) { in dt_to_asm() 503 if (vi->flags & FTF_STRTABSIZE) { in dt_to_asm() [all …]
|
| /utopia/UTPA2-700.0.x/modules/graphic/api/gfx/ |
| H A D | mapiGFX.c | 557 MS_U32 flags = 0; in GFX_RectBltFlags() local 562 flags |= E_GE_FLAG_BLT_ITALIC; in GFX_RectBltFlags() 566 flags |= E_GE_FLAG_BLT_MIRROR_H; in GFX_RectBltFlags() 570 flags |= E_GE_FLAG_BLT_MIRROR_V; in GFX_RectBltFlags() 574 flags |= E_GE_FLAG_BLT_DST_MIRROR_H; in GFX_RectBltFlags() 578 flags |= E_GE_FLAG_BLT_DST_MIRROR_V; in GFX_RectBltFlags() 583 flags |= E_GE_FLAG_BLT_ROTATE_90; in GFX_RectBltFlags() 586 flags |= E_GE_FLAG_BLT_ROTATE_180; in GFX_RectBltFlags() 589 flags |= E_GE_FLAG_BLT_ROTATE_270; in GFX_RectBltFlags() 596 flags |= E_GE_FLAG_STRETCH_NEAREST; in GFX_RectBltFlags() [all …]
|
| /utopia/UTPA2-700.0.x/modules/usb/drv/usb_ecos/newhost/ |
| H A D | drvHub.c | 150 U32 flags; in ms_hub_irq() local 176 osapi_spin_lock_irqsave(&hub_event_lock, flags); in ms_hub_irq() 184 osapi_spin_unlock_irqrestore(&hub_event_lock, flags); in ms_hub_irq() 445 U32 flags; in ms_hub_disconnect() local 450 osapi_spin_lock_irqsave(&hub_event_lock, flags); in ms_hub_disconnect() 460 osapi_spin_unlock_irqrestore(&hub_event_lock, flags); in ms_hub_disconnect() 816 unsigned long flags; in ms_usb_set_device_state() local 818 osapi_spin_lock_irqsave(&device_state_lock, flags); in ms_usb_set_device_state() 825 osapi_spin_unlock_irqrestore(&device_state_lock, flags); in ms_usb_set_device_state() 1273 U32 flags; in ms_hub_events() local [all …]
|
| H A D | drvMM.c | 179 U32 flags; in ncmem_alloc_page() local 181 osapi_spin_lock_irqsave (&pool->lock, flags); in ncmem_alloc_page() 207 osapi_spin_unlock_irqrestore (&pool->lock, flags); in ncmem_alloc_page() 224 U32 flags; in ncmem_free_page() local 231 osapi_spin_lock_irqsave (NULL, flags); in ncmem_free_page() 234 osapi_spin_unlock_irqrestore (&pool->lock, flags); in ncmem_free_page() 251 U32 flags; in ncmem_alloc() local 264 osapi_spin_lock_irqsave (&pool->lock, flags); in ncmem_alloc() 298 osapi_spin_unlock_irqrestore (&pool->lock, flags); in ncmem_alloc() 316 U32 flags; in ncmem_free() local [all …]
|
| H A D | drvBulktran.c | 185 if (ms_us->flags & MS_FIX_CAPACITY) in ms_usb_transparent_scsi_command() 371 if (ptr->flags & NO_SUBMIT) in ms_usb_msg_common() 401 ms_set_bit(MS_IDX_URB_ACTIVE, &ptr->flags, U32); in ms_usb_msg_common() 402 if (ptr->flags & NO_SUBMIT) in ms_usb_msg_common() 404 if (ms_test_and_clear_bit(MS_IDX_URB_ACTIVE, &ptr->flags)) in ms_usb_msg_common() 425 ms_clear_bit(MS_IDX_URB_ACTIVE, &ptr->flags, U32); in ms_usb_msg_common() 578 if (ms_test_bit(MS_IDX_DISCONNECTING, &pUsdata->flags)) { in ms_us_port_reset() 692 if (!(pUsdata->flags & MS_SCM_MULT_TARG)) in ms_usb_invoke_transport() 718 ms_set_bit(MS_IDX_RESETTING, &pUsdata->flags, U32); in ms_usb_invoke_transport() 719 ms_clear_bit(MS_IDX_ABORTING, &pUsdata->flags, U32); in ms_usb_invoke_transport() [all …]
|
| /utopia/UTPA2-700.0.x/modules/dmx/drv/tsp4/ |
| H A D | drvTSP2.c | 193 #define TSP_FLAG_GetModeFlags(idx ,flags) { flags = _s32ModeFlags[idx] ; } argument 1574 MS_U32 flags; // dummy in _TSP_PROC_CrcErr() local 1576 TSP_FLAG_GetCrcErr(u32FltId, &flags, TSP_OS_EVENT_OR_CLEAR); // if TSP not enable in _TSP_PROC_CrcErr() 1611 MS_U32 flags; // dummy in _TSP_PROC_SecOvf() local 1623 TSP_FLAG_GetFltDis(u32FltId, &flags, TSP_OS_EVENT_OR_CLEAR); in _TSP_PROC_SecOvf() 1663 MS_U32 flags; in _TSP_PROC_SecRdy() local 1675 TSP_FLAG_GetSecRdy(u32FltId, &flags, TSP_OS_EVENT_OR_CLEAR); // clear for next incoming in _TSP_PROC_SecRdy() 1683 for(flags = 0 ; flags < 10 ; flags ++) in _TSP_PROC_SecRdy() 1728 …if (TSP_FLAG_GetSecOvf(u32FltId,&flags,TSP_OS_EVENT_OR)||TSP_FLAG_GetCrcErr(u32FltId,&flags,TSP_OS… in _TSP_PROC_SecRdy() 1753 if (TSP_FLAG_GetFltDis(u32FltId, &flags, TSP_OS_EVENT_OR_CLEAR)) in _TSP_PROC_SecRdy() [all …]
|
| /utopia/UTPA2-700.0.x/modules/graphic/drv/ge/ |
| H A D | drvGE.c | 2193 …x, GE_BufFmt src_fmt, MS_U16 pix_width, MS_U16 pix_height, MS_PHY addr, MS_U16 pitch, MS_U32 flags) in MDrv_GE_SetSrcBuffer() argument 2309 if (flags & E_GE_FLAG_BUF_TILE) in MDrv_GE_SetSrcBuffer() 2366 …x, GE_BufFmt dst_fmt, MS_U16 pix_width, MS_U16 pix_height, MS_PHY addr, MS_U16 pitch, MS_U32 flags) in MDrv_GE_SetDstBuffer() argument 2480 if (flags & E_GE_FLAG_BUF_TILE) in MDrv_GE_SetDstBuffer() 2507 …GE_Rect *pSrc1Rect, GE_Rect *pDestRect, MS_PHY addr, MS_U16 pitch, MS_U32 flags, GE_ScaleInfo* sca… in MDrv_GE_BitBltByTwoSourceBuffer() argument 2544 if(flags & E_GE_FLAG_BLT_STRETCH) in MDrv_GE_BitBltByTwoSourceBuffer() 2615 ret = MDrv_GE_BitBltEX(pGECtx, &src, &dst, flags, scaleinfo); in MDrv_GE_BitBltByTwoSourceBuffer() 2634 …ntext *pGECtx, GE_Point *v0, GE_Point *v1, MS_U32 color, MS_U32 color2, MS_U32 flags, MS_U32 width) in MDrv_GE_DrawLine() argument 2742 if (flags & E_GE_FLAG_LINE_GRADIENT) in MDrv_GE_DrawLine() 2911 …sult MDrv_GE_FillRect(GE_Context *pGECtx, GE_Rect *rect, MS_U32 color, MS_U32 color2, MS_U32 flags) in MDrv_GE_FillRect() argument [all …]
|
| /utopia/UTPA2-700.0.x/modules/msos/hal/mustang/msos/nuttx/ |
| H A D | hal_dcache.c | 105 __attribute__((always_inline)) static inline void local_irq_restore(unsigned long flags) in local_irq_restore() argument 107 asm volatile("l.mtspr r0,%0,%1" :: "r"(flags), "i"(SPR_SR)); in local_irq_restore() 110 #define local_irq_save(flags) \ argument 113 asm volatile("l.mfspr %0,r0,%1" : "=r"(flags) : "i"(SPR_SR)); \ 114 sr= flags & ~(SPR_SR_TEE | SPR_SR_IEE); \ 561 int flags; in Hal_Dcache_Flush() local 563 local_irq_save(flags); in Hal_Dcache_Flush() 565 local_irq_restore(flags); in Hal_Dcache_Flush()
|
| /utopia/UTPA2-700.0.x/modules/msos/hal/mooney/msos/nuttx/ |
| H A D | hal_dcache.c | 105 __attribute__((always_inline)) static inline void local_irq_restore(unsigned long flags) in local_irq_restore() argument 107 asm volatile("l.mtspr r0,%0,%1" :: "r"(flags), "i"(SPR_SR)); in local_irq_restore() 110 #define local_irq_save(flags) \ argument 113 asm volatile("l.mfspr %0,r0,%1" : "=r"(flags) : "i"(SPR_SR)); \ 114 sr= flags & ~(SPR_SR_TEE | SPR_SR_IEE); \ 561 int flags; in Hal_Dcache_Flush() local 563 local_irq_save(flags); in Hal_Dcache_Flush() 565 local_irq_restore(flags); in Hal_Dcache_Flush()
|