Searched refs:cur_idx (Results 1 – 8 of 8) sorted by relevance
/arch/powerpc/platforms/pseries/ |
D | dtl.c | 255 u64 cur_idx, last_idx, i; in dtl_file_read() local 270 cur_idx = dtl_current_index(dtl); in dtl_file_read() 273 if (last_idx + dtl->buf_entries <= cur_idx) in dtl_file_read() 274 last_idx = cur_idx - dtl->buf_entries + 1; in dtl_file_read() 276 if (last_idx + n_req > cur_idx) in dtl_file_read() 277 n_req = cur_idx - last_idx; in dtl_file_read()
|
/arch/csky/mm/ |
D | asid.c | 82 static u32 cur_idx = 1; in new_context() local 111 asid = find_next_zero_bit(info->map, NUM_CTXT_ASIDS(info), cur_idx); in new_context() 125 cur_idx = asid; in new_context()
|
/arch/arm64/mm/ |
D | context.c | 136 static u32 cur_idx = 1; in new_context() local 165 asid = find_next_zero_bit(asid_map, NUM_USER_ASIDS, cur_idx); in new_context() 179 cur_idx = asid; in new_context()
|
/arch/arm/mm/ |
D | context.c | 191 static u32 cur_idx = 1; in new_context() local 223 asid = find_next_zero_bit(asid_map, NUM_USER_ASIDS, cur_idx); in new_context() 232 cur_idx = asid; in new_context()
|
/arch/mips/mm/ |
D | context.c | 126 static u32 cur_idx = MMID_KERNEL_WIRED + 1; in get_new_mmid() local 156 mmid = find_next_zero_bit(mmid_map, num_mmids, cur_idx); in get_new_mmid() 172 cur_idx = mmid; in get_new_mmid()
|
/arch/x86/events/intel/ |
D | pt.h | 77 unsigned int cur_idx; member
|
D | pt.c | 782 buf->cur_idx++; in pt_buffer_advance() 784 if (buf->cur_idx == buf->cur->last) { in pt_buffer_advance() 790 buf->cur_idx = 0; in pt_buffer_advance() 809 for (topa_idx = 0; topa_idx < buf->cur_idx; topa_idx++) in pt_update_head() 830 return phys_to_virt(TOPA_ENTRY(buf->cur, buf->cur_idx)->base << TOPA_SHIFT); in pt_buffer_region() 839 return TOPA_ENTRY_SIZE(buf->cur, buf->cur_idx); in pt_buffer_region_size() 917 buf->cur_idx = (offset & 0xffffff80) >> 7; in pt_read_offset() 1119 buf->cur_idx = te - TOPA_ENTRY(buf->cur, 0); in pt_buffer_reset_offsets() 1382 pt_config_buffer(topa_to_page(buf->cur)->table, buf->cur_idx, in intel_pt_interrupt() 1447 pt_config_buffer(topa_to_page(buf->cur)->table, buf->cur_idx, in pt_event_start()
|
/arch/ia64/kernel/ |
D | mca_drv.c | 73 int cur_idx; /* Current index of section pointer list pool */ member 221 {slidx_list_t *hl = &slidx_pool.buffer[slidx_pool.cur_idx]; \ 224 slidx_pool.cur_idx = (slidx_pool.cur_idx + 1)%slidx_pool.max_idx; }
|