/linux-2.4.37.9/include/asm-ia64/ |
D | mmu_context.h | 66 mm_context_t context = mm->context; in get_mmu_context() local 68 if (context) in get_mmu_context() 69 return context; in get_mmu_context() 74 context = mm->context; in get_mmu_context() 75 if (context == 0) { in get_mmu_context() 78 mm->context = context = ia64_ctx.next++; in get_mmu_context() 82 return context; in get_mmu_context() 92 mm->context = 0; in init_new_context() 103 reload_context (mm_context_t context) in reload_context() argument 109 rid = context << 3; /* make space for encoding the region number */ in reload_context() [all …]
|
/linux-2.4.37.9/drivers/char/drm/ |
D | via_mm.c | 39 int context; member 45 static int add_alloc_set(int context, int type, unsigned int val) in add_alloc_set() argument 51 if (global_ppriv[i].used && global_ppriv[i].context == context) in add_alloc_set() 60 static int del_alloc_set(int context, int type, unsigned int val) in del_alloc_set() argument 65 if (global_ppriv[i].used && global_ppriv[i].context == context) in del_alloc_set() 109 int via_init_context(int context) in via_init_context() argument 114 if (global_ppriv[i].used && (global_ppriv[i].context == context)) in via_init_context() 120 global_ppriv[i].context = context; in via_init_context() 125 i, context); in via_init_context() 139 int via_final_context(int context) in via_final_context() argument [all …]
|
D | drm_lock.h | 48 int DRM(lock_take)(__volatile__ unsigned int *lock, unsigned int context) in DRM() 55 else new = context | _DRM_LOCK_HELD; in DRM() 58 if (_DRM_LOCKING_CONTEXT(old) == context) { in DRM() 60 if (context != DRM_KERNEL_CONTEXT) { in DRM() 62 context); in DRM() 67 if (new == (context | _DRM_LOCK_HELD)) { in DRM() 77 __volatile__ unsigned int *lock, unsigned int context) in DRM() 84 new = context | _DRM_LOCK_HELD; in DRM() 91 __volatile__ unsigned int *lock, unsigned int context) in DRM() 102 if (_DRM_LOCK_IS_HELD(old) && _DRM_LOCKING_CONTEXT(old) != context) { in DRM() [all …]
|
D | sis_mm.c | 44 int context; member 50 static int add_alloc_set(int context, int type, unsigned int val) in add_alloc_set() argument 55 if(global_ppriv[i].used && global_ppriv[i].context == context){ in add_alloc_set() 62 static int del_alloc_set(int context, int type, unsigned int val) in del_alloc_set() argument 66 if(global_ppriv[i].used && global_ppriv[i].context == context){ in del_alloc_set() 91 if(!add_alloc_set(fb.context, VIDEO_TYPE, fb.free)){ in sis_fb_alloc() 124 if(!del_alloc_set(fb.context, VIDEO_TYPE, fb.free)) in sis_fb_free() 186 if(!add_alloc_set(agp.context, AGP_TYPE, agp.free)){ in sisp_agp_alloc() 222 if(!del_alloc_set(agp.context, AGP_TYPE, agp.free)) in sisp_agp_free() 232 int sis_init_context(int context) in sis_init_context() argument [all …]
|
/linux-2.4.37.9/drivers/char/drm-4.0/ |
D | lock.c | 49 int drm_lock_take(__volatile__ unsigned int *lock, unsigned int context) in drm_lock_take() argument 56 else new = context | _DRM_LOCK_HELD; in drm_lock_take() 59 if (_DRM_LOCKING_CONTEXT(old) == context) { in drm_lock_take() 61 if (context != DRM_KERNEL_CONTEXT) { in drm_lock_take() 63 context); in drm_lock_take() 68 if (new == (context | _DRM_LOCK_HELD)) { in drm_lock_take() 78 __volatile__ unsigned int *lock, unsigned int context) in drm_lock_transfer() argument 85 new = context | _DRM_LOCK_HELD; in drm_lock_transfer() 92 __volatile__ unsigned int *lock, unsigned int context) in drm_lock_free() argument 103 if (_DRM_LOCK_IS_HELD(old) && _DRM_LOCKING_CONTEXT(old) != context) { in drm_lock_free() [all …]
|
D | gamma_dma.c | 202 buf->context, buf->idx, length); in gamma_do_dma() 239 if (dev->last_context != buf->context in gamma_do_dma() 240 && !(dev->queuelist[buf->context]->flags in gamma_do_dma() 243 if (drm_context_switch(dev, dev->last_context, buf->context)) { in gamma_do_dma() 442 buf->context = d->context; in gamma_dma_priority() 465 if (dev->last_context != buf->context in gamma_dma_priority() 466 && !(dev->queuelist[buf->context]->flags in gamma_dma_priority() 472 buf->context); in gamma_dma_priority() 485 if (dev->last_context != buf->context) { in gamma_dma_priority() 488 buf->context); in gamma_dma_priority() [all …]
|
D | tdfx_drv.c | 526 if (lock.context == DRM_KERNEL_CONTEXT) { in tdfx_lock() 528 current->pid, lock.context); in tdfx_lock() 533 lock.context, current->pid, dev->lock.hw_lock->lock, in tdfx_lock() 539 if (lock.context < 0 || lock.context >= dev->queue_count) in tdfx_lock() 546 != lock.context) { in tdfx_lock() 549 if (lock.context == tdfx_res_ctx.handle && in tdfx_lock() 554 lock.context, current->pid, j, in tdfx_lock() 572 lock.context)) { in tdfx_lock() 592 if (!ret && dev->last_context != lock.context && in tdfx_lock() 593 lock.context != tdfx_res_ctx.handle && in tdfx_lock() [all …]
|
/linux-2.4.37.9/arch/i386/kernel/ |
D | ldt.c | 26 load_LDT(¤t->active_mm->context); in flush_ldt() 94 init_MUTEX(&mm->context.sem); in init_new_context() 95 mm->context.size = 0; in init_new_context() 97 if (old_mm && old_mm->context.size > 0) { in init_new_context() 98 down(&old_mm->context.sem); in init_new_context() 99 retval = copy_ldt(&mm->context, &old_mm->context); in init_new_context() 100 up(&old_mm->context.sem); in init_new_context() 112 if (mm->context.size) { in destroy_context() 113 if (mm->context.size*LDT_ENTRY_SIZE > PAGE_SIZE) in destroy_context() 114 vfree(mm->context.ldt); in destroy_context() [all …]
|
/linux-2.4.37.9/drivers/usb/ |
D | microtek.c | 196 MTS_DEBUG("transfer = 0x%x context = 0x%x\n",(int)transfer,(int)context ); \ 197 …MTS_DEBUG("status = 0x%x data-length = 0x%x sent = 0x%x\n",(int)transfer->status,(int)context->dat… 198 mts_debug_dump(context->instance);\ 213 struct mts_transfer_context* context = (struct mts_transfer_context*)transfer->context; \ 505 context->instance->usb_dev, in mts_int_submit_urb() 510 context in mts_int_submit_urb() 518 context->srb->result = DID_ERROR << 16; in mts_int_submit_urb() 530 if ( context->final_callback ) in mts_transfer_cleanup() 531 context->final_callback(context->srb); in mts_transfer_cleanup() 539 context->srb->result &= MTS_SCSI_ERR_MASK; in mts_transfer_done() [all …]
|
D | auerchain.c | 36 (struct auerchainelement *) urb->context; in auerchain_complete() 40 urb->context = acep->context; in auerchain_complete() 122 acep->context = urb->context; in auerchain_submit_urb_list() 128 urb->context = acep; in auerchain_submit_urb_list() 195 urb->context = acep->context; in auerchain_unlink_urb() 252 urbp->context = acep->context; in auerchain_unlink_all() 350 struct auerchain_chs *pchs = (struct auerchain_chs *) urb->context; in auerchain_blocking_completion() 371 urb->context = &chs; in auerchain_start_wait_urb()
|
/linux-2.4.37.9/include/asm-m68k/ |
D | mmu_context.h | 19 mm->context = virt_to_phys(mm->pgd); in init_new_context() 28 0x80000000 | _PAGE_TABLE, mm->context in switch_mm_0230() 66 asm volatile ("movec %0,%%urp" : : "r" (mm->context)); in switch_mm_0460() 95 next_mm->context = virt_to_phys(next_mm->pgd); in activate_mm() 108 extern void clear_context(unsigned long context); 113 mm->context = SUN3_INVALID_CONTEXT; in init_new_context() 121 if(mm->context == SUN3_INVALID_CONTEXT) in get_mmu_context() 122 mm->context = get_free_context(mm); in get_mmu_context() 128 if(mm->context != SUN3_INVALID_CONTEXT) in destroy_context() 129 clear_context(mm->context); in destroy_context() [all …]
|
/linux-2.4.37.9/net/sctp/ |
D | hashdriver.c | 63 struct SLA_1_Context context; in sctp_hash_digest() local 109 SLA1_Init(&context); /* init context for 1st in sctp_hash_digest() 112 SLA1_Process(&context, k_ipad, 64); /* start with inner pad */ in sctp_hash_digest() 113 SLA1_Process(&context, text, text_len); /* then text of datagram */ in sctp_hash_digest() 114 SLA1_Final(&context,digest); /* finish up 1st pass */ in sctp_hash_digest() 119 SLA1_Init(&context); /* init context for 2nd in sctp_hash_digest() 122 SLA1_Process(&context, k_opad, 64); /* start with outer pad */ in sctp_hash_digest() 123 SLA1_Process(&context, digest, 20); /* then results of 1st in sctp_hash_digest() 126 SLA1_Final(&context, digest); /* finish up 2nd pass */ in sctp_hash_digest()
|
/linux-2.4.37.9/arch/m68k/sun3/ |
D | mmu_emu.c | 205 void clear_context(unsigned long context) in clear_context() argument 210 if(context) { in clear_context() 211 if(!ctx_alloc[context]) in clear_context() 214 ctx_alloc[context]->context = SUN3_INVALID_CONTEXT; in clear_context() 215 ctx_alloc[context] = (struct mm_struct *)0; in clear_context() 221 sun3_put_context(context); in clear_context() 224 if((pmeg_ctx[i] == context) && (pmeg_alloc[i] == 1)) { in clear_context() 279 inline void mmu_emu_map_pmeg (int context, int vaddr) in mmu_emu_map_pmeg() argument 294 curr_pmeg, context, vaddr); in mmu_emu_map_pmeg() 301 sun3_put_context(context); in mmu_emu_map_pmeg() [all …]
|
/linux-2.4.37.9/fs/xfs/ |
D | xfs_attr.c | 88 STATIC int xfs_attr_leaf_list(xfs_attr_list_context_t *context); 95 STATIC int xfs_attr_node_list(xfs_attr_list_context_t *context); 619 xfs_attr_list_context_t context; in xfs_attr_list() local 645 context.dp = dp = XFS_BHVTOI(bdp); in xfs_attr_list() 646 context.cursor = cursor; in xfs_attr_list() 647 context.count = 0; in xfs_attr_list() 648 context.dupcnt = 0; in xfs_attr_list() 649 context.resynch = 1; in xfs_attr_list() 650 context.flags = flags; in xfs_attr_list() 652 context.bufsize = (bufsize & ~(sizeof(int)-1)); /* align */ in xfs_attr_list() [all …]
|
/linux-2.4.37.9/include/asm-ppc/ |
D | mmu_context.h | 83 extern void set_context(mm_context_t context, pgd_t *pgd); 117 if (mm->context != NO_CONTEXT) in get_mmu_context() 130 mm->context = ctx; in get_mmu_context() 139 #define init_new_context(tsk,mm) (((mm)->context = NO_CONTEXT), 0) 146 if (mm->context != NO_CONTEXT) { in destroy_context() 147 clear_bit(mm->context, context_map); in destroy_context() 148 mm->context = NO_CONTEXT; in destroy_context() 160 set_context(next->context, next->pgd); in switch_mm() 171 set_context(mm->context, mm->pgd); in activate_mm()
|
/linux-2.4.37.9/include/asm-parisc/ |
D | pgalloc.h | 77 if (!mm->context) { in flush_cache_range() 83 if (mm->context == sr3) { in flush_cache_range() 96 if (!vma->vm_mm->context) { in flush_cache_page() 102 if (vma->vm_mm->context == sr3) { in flush_cache_page() 136 static inline void load_context(mm_context_t context) in load_context() argument 138 mtsp(context, 3); in load_context() 140 mtctl(context << 1,8); in load_context() 142 mtctl(context >> (SPACEID_SHIFT - 1),8); in load_context() 170 if (mm->context != 0) in flush_tlb_mm() 171 free_sid(mm->context); in flush_tlb_mm() [all …]
|
D | mmu_context.h | 22 mm->context = alloc_sid(); in init_new_context() 29 free_sid(mm->context); in destroy_context() 30 mm->context = 0; in destroy_context() 38 load_context(next->context); in switch_mm() 54 if (next->context == 0) in activate_mm() 55 next->context = alloc_sid(); in activate_mm()
|
/linux-2.4.37.9/drivers/acpi/events/ |
D | evxface.c | 74 void *context) in acpi_install_fixed_event_handler() argument 103 acpi_gbl_fixed_event_handlers[event].context = context; in acpi_install_fixed_event_handler() 112 acpi_gbl_fixed_event_handlers[event].context = NULL; in acpi_install_fixed_event_handler() 168 acpi_gbl_fixed_event_handlers[event].context = NULL; in acpi_remove_fixed_event_handler() 205 void *context) in acpi_install_notify_handler() argument 257 acpi_gbl_system_notify.context = context; in acpi_install_notify_handler() 262 acpi_gbl_device_notify.context = context; in acpi_install_notify_handler() 327 notify_obj->notify.context = context; in acpi_install_notify_handler() 412 acpi_gbl_system_notify.context = NULL; in acpi_remove_notify_handler() 417 acpi_gbl_device_notify.context = NULL; in acpi_remove_notify_handler() [all …]
|
D | evmisc.c | 222 void *context) in acpi_ev_notify_dispatch() argument 224 union acpi_generic_state *notify_info = (union acpi_generic_state *) context; in acpi_ev_notify_dispatch() 242 global_context = acpi_gbl_system_notify.context; in acpi_ev_notify_dispatch() 250 global_context = acpi_gbl_device_notify.context; in acpi_ev_notify_dispatch() 265 handler_obj->notify.context); in acpi_ev_notify_dispatch() 288 void *context) in acpi_ev_global_lock_thread() argument 321 void *context) in acpi_ev_global_lock_handler() argument 341 acpi_ev_global_lock_thread, context); in acpi_ev_global_lock_handler()
|
/linux-2.4.37.9/include/asm-sparc64/ |
D | mmu_context.h | 50 #define init_new_context(__tsk, __mm) (((__mm)->context = 0UL), 0) 61 if (CTX_VALID((__mm)->context)) { \ 62 unsigned long nr = CTX_HWBITS((__mm)->context); \ 104 : "r" (CTX_HWBITS((__mm)->context)), \ 115 if (CTX_VALID(mm->context)) in switch_mm() 139 __flush_tlb_mm(CTX_HWBITS(mm->context), SECONDARY_CONTEXT); in switch_mm() 151 if (!CTX_VALID(mm->context)) in activate_mm() 159 __flush_tlb_mm(CTX_HWBITS(mm->context), SECONDARY_CONTEXT); in activate_mm()
|
/linux-2.4.37.9/arch/cris/mm/ |
D | tlb.c | 87 int page_id = mm->context; in flush_tlb_mm() 124 int page_id = mm->context; in flush_tlb_page() 166 int page_id = mm->context; in flush_tlb_range() 233 mm->context = NO_CONTEXT; in init_new_context() 256 old_mm->context = NO_CONTEXT; in alloc_context() 261 mm->context = map_replace_ptr; in alloc_context() 277 if(mm->context == NO_CONTEXT) in get_mmu_context() 302 D(printk("switching mmu_context to %d (%p)\n", next->context, next)); in switch_mm() 304 *R_MMU_CONTEXT = IO_FIELD(R_MMU_CONTEXT, page_id, next->context); in switch_mm() 319 if(mm->context != NO_CONTEXT) { in destroy_context() [all …]
|
/linux-2.4.37.9/include/acpi/ |
D | acdebug.h | 190 void *context, 197 void *context, 204 void *context, 211 void *context, 306 void *context); 312 void *context, 379 void *context); 426 void *context,
|
/linux-2.4.37.9/drivers/isdn/hisax/ |
D | st5481_usb.c | 60 ctrl_complete_t complete, void *context) in usb_ctrl_msg() argument 78 ctrl_msg->context = context; in usb_ctrl_msg() 88 ctrl_complete_t complete, void *context) in st5481_usb_device_ctrl_msg() argument 92 value, 0, complete, context); in st5481_usb_device_ctrl_msg() 100 ctrl_complete_t complete, void *context) in st5481_usb_pipe_reset() argument 106 0, pipe, complete, context); in st5481_usb_pipe_reset() 128 struct st5481_adapter *adapter = urb->context; in usb_ctrl_complete() 160 ctrl_msg->complete(ctrl_msg->context); in usb_ctrl_complete() 183 struct st5481_adapter *adapter = urb->context; in usb_int_complete() 387 void *context) in fill_isoc_urb() argument [all …]
|
/linux-2.4.37.9/include/asm-x86_64/ |
D | mmu_context.h | 16 #define init_new_context(tsk,mm) ({ rwlock_init(&(mm)->context.ldtlock); 0; }) 44 if (prev->context.segments != next->context.segments) in switch_mm() 51 set_bit(cpu, &next->context.cpuvalid); in switch_mm() 69 if (!test_and_set_bit(cpu, &next->context.cpuvalid)) in switch_mm()
|
/linux-2.4.37.9/arch/x86_64/kernel/ |
D | ldt.c | 38 if (!mm->context.segments) in read_ldt() 46 if (copy_to_user(ptr, mm->context.segments, size)) in read_ldt() 93 if (!mm->context.segments) { in write_ldt() 100 mm->context.segments = segments; in write_ldt() 101 mm->context.cpuvalid = 1UL << smp_processor_id(); in write_ldt() 105 lp = (__u32 *) ((ldt_info.entry_number << 3) + (char *) mm->context.segments); in write_ldt()
|