| /linux/tools/perf/ |
| H A D | builtin-top.c | 3 * builtin-top.c 5 * Builtin top command: Display a continuously updated profile of 41 #include "util/top.h" 97 static void perf_top__update_print_entries(struct perf_top *top) in perf_top__update_print_entries() 99 top->print_entries = top->winsize.ws_row - HEADER_LINE_NR; in perf_top__update_print_entries() 107 static void perf_top__resize(struct perf_top *top) in perf_top__resize() 109 get_term_dimensions(&top->winsize); in perf_top__resize() 110 perf_top__update_print_entries(top); in perf_top__resize() 113 static int perf_top__parse_source(struct perf_top *top, struc in perf_top__parse_source() 96 perf_top__update_print_entries(struct perf_top * top) perf_top__update_print_entries() argument 106 perf_top__resize(struct perf_top * top) perf_top__resize() argument 112 perf_top__parse_source(struct perf_top * top,struct hist_entry * he) perf_top__parse_source() argument 198 perf_top__record_precise_ip(struct perf_top * top,struct hist_entry * he,struct perf_sample * sample,struct evsel * evsel,u64 ip) perf_top__record_precise_ip() argument 241 perf_top__show_details(struct perf_top * top) perf_top__show_details() argument 320 perf_top__print_sym_table(struct perf_top * top) perf_top__print_sym_table() argument 394 perf_top__prompt_symbol(struct perf_top * top,const char * msg) perf_top__prompt_symbol() argument 436 perf_top__print_mapped_keys(struct perf_top * top) perf_top__print_mapped_keys() argument 468 perf_top__key_mapped(struct perf_top * top,int c) perf_top__key_mapped() argument 492 perf_top__handle_keypress(struct perf_top * top,int c) perf_top__handle_keypress() argument 618 struct perf_top *top = arg; display_thread_tui() local 679 struct perf_top *top = arg; display_thread() local 733 struct perf_top *top = arg; hist_iter__top_callback() local 751 struct perf_top *top = container_of(tool, struct perf_top, tool); perf_event__process_sample() local 858 perf_top__process_lost(struct perf_top * top,union perf_event * event,struct evsel * evsel) perf_top__process_lost() argument 867 perf_top__process_lost_samples(struct perf_top * top,union perf_event * event,struct evsel * evsel) perf_top__process_lost_samples() argument 878 perf_top__mmap_read_idx(struct perf_top * top,int idx) perf_top__mmap_read_idx() argument 913 perf_top__mmap_read(struct perf_top * top) perf_top__mmap_read() argument 948 perf_top__overwrite_check(struct perf_top * top) perf_top__overwrite_check() argument 993 perf_top_overwrite_fallback(struct perf_top * top,struct evsel * evsel) perf_top_overwrite_fallback() argument 1014 perf_top__start_counters(struct perf_top * top) perf_top__start_counters() argument 1091 rotate_queues(struct perf_top * top) rotate_queues() argument 1105 struct perf_top *top = arg; process_thread() local 1132 should_drop(struct ordered_event * qevent,struct perf_top * top) should_drop() argument 1147 struct perf_top *top = qe->data; deliver_event() local 1231 init_process_thread(struct perf_top * top) init_process_thread() argument 1242 exit_process_thread(struct perf_top * top) exit_process_thread() argument 1250 __cmd_top(struct perf_top * top) __cmd_top() argument 1434 struct perf_top *top = opt->value; parse_percent_limit() local 1446 struct perf_top top = { cmd_top() local [all...] |
| /linux/tools/perf/util/ |
| H A D | top.c | 23 size_t perf_top__header_snprintf(struct perf_top *top, char *bf, size_t size) in perf_top__header_snprintf() argument 28 struct record_opts *opts = &top->record_opts; in perf_top__header_snprintf() 33 if (top->samples) { in perf_top__header_snprintf() 34 samples_per_sec = top->samples / top->delay_secs; in perf_top__header_snprintf() 35 ksamples_per_sec = top->kernel_samples / top->delay_secs; in perf_top__header_snprintf() 36 esamples_percent = (100.0 * top->exact_samples) / top->samples; in perf_top__header_snprintf() 51 top->lost, top->lost_total, top->drop, top->drop_total); in perf_top__header_snprintf() 53 float us_samples_per_sec = top->us_samples / top->delay_secs; in perf_top__header_snprintf() 54 float guest_kernel_samples_per_sec = top->guest_kernel_samples / top->delay_secs; in perf_top__header_snprintf() 55 float guest_us_samples_per_sec = top->guest_us_samples / top->delay_secs; in perf_top__header_snprintf() [all …]
|
| H A D | pstack.c | 16 unsigned short top; member 37 return pstack->top == 0; in pstack__empty() 42 unsigned short i = pstack->top, last_index = pstack->top - 1; in pstack__remove() 50 --pstack->top; in pstack__remove() 59 if (pstack->top == pstack->max_nr_entries) { in pstack__push() 60 pr_err("%s: top=%d, overflow!\n", __func__, pstack->top); in pstack__push() 63 pstack->entries[pstack->top++] = key; in pstack__push() 68 if (pstack->top in pstack__pop() [all...] |
| /linux/drivers/gpu/drm/nouveau/nvkm/subdev/top/ |
| H A D | base.c | 27 nvkm_top_device_new(struct nvkm_top *top) in nvkm_top_device_new() argument 39 list_add_tail(&info->head, &top->device); in nvkm_top_device_new() 47 struct nvkm_top *top = device->top; in nvkm_top_addr() local 50 if (top) { in nvkm_top_addr() 51 list_for_each_entry(info, &top->device, head) { in nvkm_top_addr() 63 struct nvkm_top *top = device->top; in nvkm_top_reset() local 66 if (top) { in nvkm_top_reset() 67 list_for_each_entry(info, &top->device, head) { in nvkm_top_reset() 79 struct nvkm_top *top = device->top; in nvkm_top_intr_mask() local 82 if (top) { in nvkm_top_intr_mask() [all …]
|
| /linux/include/media/ |
| H A D | v4l2-rect.h | 64 if (r->top < boundary->top) in v4l2_rect_map_inside() 65 r->top = boundary->top; in v4l2_rect_map_inside() 68 if (r->top + r->height > boundary->top + boundary->height) in v4l2_rect_map_inside() 69 r->top = boundary->top + boundary->height - r->height; in v4l2_rect_map_inside() 95 return r1->top == r2->top && r1->left == r2->left; in v4l2_rect_same_position() 123 r->top = max(r1->top, r2->top); in v4l2_rect_intersect() 125 bottom = min(r1->top + r1->height, r2->top + r2->height); in v4l2_rect_intersect() 127 r->height = max(0, bottom - r->top); in v4l2_rect_intersect() 149 r->left = r->top = r->width = r->height = 0; in v4l2_rect_scale() 154 r->top = ((r->top - from->top) * to->height) / from->height; in v4l2_rect_scale() [all …]
|
| /linux/drivers/net/ethernet/ibm/ehea/ |
| H A D | ehea_qmr.c | 552 static inline int ehea_init_bmap(struct ehea_bmap *ehea_bmap, int top, int dir) in ehea_init_bmap() argument 554 if (!ehea_bmap->top[top]) { in ehea_init_bmap() 555 ehea_bmap->top[top] = in ehea_init_bmap() 557 if (!ehea_bmap->top[top]) in ehea_init_bmap() 560 return ehea_init_top_bmap(ehea_bmap->top[top], dir); in ehea_init_bmap() 572 int top, dir, idx; in ehea_rebuild_busmap() local 574 for (top = 0; top < EHEA_MAP_ENTRIES; top++) { in ehea_rebuild_busmap() 578 if (!ehea_bmap->top[top]) in ehea_rebuild_busmap() 580 ehea_top = ehea_bmap->top[top]; in ehea_rebuild_busmap() 602 ehea_bmap->top[top] = NULL; in ehea_rebuild_busmap() [all …]
|
| /linux/fs/jfs/ |
| H A D | jfs_btree.h | 106 struct btframe *top; member 112 (btstack)->top = (btstack)->stack 115 ( (btstack)->top == &((btstack)->stack[MAXTREEHEIGHT-1])) 120 (BTSTACK)->top->bn = BN;\ 121 (BTSTACK)->top->index = INDEX;\ 122 ++(BTSTACK)->top;\ 126 ( (btstack)->top == (btstack)->stack ? NULL : --(btstack)->top ) 129 ( (btstack)->top == (btstack)->stack ? NULL : (btstack)->top ) 156 if (! BT_IS_ROOT((BTSTACK)->top->mp))\ 157 release_metapage((BTSTACK)->top->mp);\
|
| /linux/arch/x86/math-emu/ |
| H A D | fpu_tags.c | 20 fpu_tag_word |= 3 << ((top & 7) * 2); in FPU_pop() 21 top++; in FPU_pop() 26 return (fpu_tag_word >> ((top & 7) * 2)) & 3; in FPU_gettag0() 31 return (fpu_tag_word >> (((top + stnr) & 7) * 2)) & 3; in FPU_gettagi() 41 int regnr = top; in FPU_settag0() 49 int regnr = stnr + top; in FPU_settagi() 83 int regnr = (top + stnr) & 7; in FPU_empty_i() 92 return ((fpu_tag_word >> (((top - 1) & 7) * 2)) & 3) != TAG_Empty; in FPU_stackoverflow() 109 int regnr = top; in FPU_copy_to_reg0()
|
| /linux/drivers/media/pci/bt8xx/ |
| H A D | bttv-risc.c | 294 && crop->top == tvnorm->cropcap.defrect.top in bttv_calc_geo() 315 geo->vdelay = crop->top - tvnorm->cropcap.bounds.top + MIN_VDELAY; in bttv_calc_geo() 386 if (btv->curr.top || btv->curr.bottom) in bttv_set_capture_control() 435 btv->cvbi ? (unsigned long long)btv->cvbi->top.dma : 0, in bttv_set_dma() 436 btv->curr.top ? (unsigned long long)btv->curr.top->top.dma : 0, in bttv_set_dma() 529 r = bttv_risc_packed(btv, &buf->top, list, 0, bpl, padding, in bttv_buffer_risc_vbi() 544 if (btv->vbi_fmt.end >= tvnorm->cropcap.bounds.top) in bttv_buffer_risc_vbi() 545 min_vdelay += btv->vbi_fmt.end - tvnorm->cropcap.bounds.top; in bttv_buffer_risc_vbi() 557 struct btcx_riscmem *top; in bttv_buffer_activate_vbi() local 562 top = NULL; in bttv_buffer_activate_vbi() [all …]
|
| /linux/tools/tracing/rtla/src/ |
| H A D | timerlat_top.c | 169 struct osnoise_tool *top; in timerlat_top_handler() 172 top = container_of(trace, struct osnoise_tool, trace); in timerlat_top_handler() local 174 if (!top->params->aa_only) { in timerlat_top_handler() 178 timerlat_top_update(top, cpu, thread, latency); in timerlat_top_handler() 252 static void timerlat_top_header(struct timerlat_params *params, struct osnoise_tool *top) in timerlat_top_bpf_pull_data() 254 struct trace_seq *s = top->trace.seq; in timerlat_top_bpf_pull_data() 258 get_duration(top->start_time, duration, sizeof(duration)); 298 static void timerlat_top_print(struct osnoise_tool *top, int cpu) in timerlat_top_header() 300 struct timerlat_params *params = to_timerlat_params(top->params); 301 struct timerlat_top_data *data = top 260 timerlat_top_header(struct timerlat_params * params,struct osnoise_tool * top) timerlat_top_header() argument 306 timerlat_top_print(struct osnoise_tool * top,int cpu) timerlat_top_print() argument 365 timerlat_top_print_sum(struct osnoise_tool * top,struct timerlat_top_cpu * summary) timerlat_top_print_sum() argument 441 timerlat_print_stats(struct osnoise_tool * top) timerlat_print_stats() argument 805 timerlat_top_apply_config(struct osnoise_tool * top) timerlat_top_apply_config() argument 829 struct osnoise_tool *top; timerlat_init_top() local [all...] |
| /linux/Documentation/admin-guide/cifs/ |
| H A D | winucase_convert.pl | 28 $top[$firstchar][$secondchar] = $uppercase; 32 next if (!$top[$i]); 41 printf("0x%4.4x,", $top[$i][$j] ? $top[$i][$j] : 0); 50 } elsif ($top[$i]) { 56 if ($top[$i]) {
|
| /linux/drivers/media/platform/ti/omap/ |
| H A D | omap_voutlib.c | 53 crop->top = ((pix->height - crop->height) >> 1) & ~1; in omap_vout_default_crop() 78 if (try_win.top < 0) { in omap_vout_try_window() 79 try_win.height += try_win.top; in omap_vout_try_window() 80 try_win.top = 0; in omap_vout_try_window() 88 if (try_win.top + try_win.height > fbuf->fmt.height) in omap_vout_try_window() 89 try_win.height = fbuf->fmt.height - try_win.top; in omap_vout_try_window() 184 if (try_crop.top < 0) { in omap_vout_new_crop() 185 try_crop.height += try_crop.top; in omap_vout_new_crop() 186 try_crop.top = 0; in omap_vout_new_crop() 194 if (try_crop.top + try_crop.height > pix->height) in omap_vout_new_crop() [all …]
|
| /linux/kernel/trace/ |
| H A D | trace_btf.c | 79 int i, top = 0; in btf_find_struct_member() local 95 top < BTF_ANON_STACK_MAX) { in btf_find_struct_member() 96 anon_stack[top].tid = tid; in btf_find_struct_member() 97 anon_stack[top++].offset = in btf_find_struct_member() 109 if (top > 0) { in btf_find_struct_member() 111 tid = anon_stack[--top].tid; in btf_find_struct_member() 112 cur_offset = anon_stack[top].offset; in btf_find_struct_member()
|
| /linux/Documentation/userspace-api/media/v4l/ |
| H A D | field-order.rst | 30 combine to frames. We distinguish between top (aka odd) and bottom (aka 31 even) fields, the *spatial order*: The first line of the top field is 36 whether a frame commences with the top or bottom field is pointless. Any 37 two successive top and bottom, or bottom and top fields yield a valid 42 Counter to intuition the top field is not necessarily the older field. 43 Whether the older field contains the top or bottom lines is a convention 49 bus in the same order they were captured, so if the top field was 50 captured first (is the older field), the top field is also transmitted 93 - Images consist of the top (aka odd) field only. 103 order of the fields (whether the top or bottom field is older) [all …]
|
| /linux/drivers/gpu/drm/qxl/ |
| H A D | qxl_draw.c | 95 drawable->self_bitmap_area.top = 0; in make_drawable() 142 int left, right, top, bottom; in qxl_draw_dirty_fb() local 166 top = clips->y1; in qxl_draw_dirty_fb() 174 top = min_t(int, top, (int)clips_ptr->y1); in qxl_draw_dirty_fb() 179 height = bottom - top; in qxl_draw_dirty_fb() 198 drawable_rect.top = top; in qxl_draw_dirty_fb() 213 top, width, height, depth, stride); in qxl_draw_dirty_fb() 229 drawable->u.copy.src_area.top = 0; in qxl_draw_dirty_fb() 248 rects[i].top = clips_ptr->y1; in qxl_draw_dirty_fb()
|
| /linux/arch/arm64/include/asm/ |
| H A D | rsi.h | 30 phys_addr_t top; in rsi_set_memory_range() local 33 ret = rsi_set_addr_range_state(start, end, state, flags, &top); in rsi_set_memory_range() 34 if (ret || top < start || top > end) in rsi_set_memory_range() 36 start = top; in rsi_set_memory_range()
|
| /linux/drivers/infiniband/hw/vmw_pvrdma/ |
| H A D | pvrdma_doorbell.c | 62 tbl->top = 0; in pvrdma_uar_table_init() 94 tbl->top = (tbl->top + tbl->max) & tbl->mask; in pvrdma_uar_alloc() 104 obj |= tbl->top; in pvrdma_uar_alloc() 125 tbl->top = (tbl->top + tbl->max) & tbl->mask; in pvrdma_uar_free()
|
| /linux/arch/powerpc/xmon/ |
| H A D | ppc-dis.c | 44 unsigned long top = operand->bitm; in operand_value_powerpc() local 47 top |= (top & -top) - 1; in operand_value_powerpc() 48 top &= ~(top >> 1); in operand_value_powerpc() 49 value = (value ^ top) - top; in operand_value_powerpc()
|
| /linux/drivers/md/bcache/ |
| H A D | extents.c | 270 struct btree_iter_set *top = iter->data, *i = top + 1; in bch_extent_sort_fixup() local 276 if (bkey_cmp(top->k, &START_KEY(i->k)) <= 0) in bch_extent_sort_fixup() 281 heap_sift(iter, i - top, bch_extent_sort_cmp); in bch_extent_sort_fixup() 285 if (top->k > i->k) { in bch_extent_sort_fixup() 286 if (bkey_cmp(top->k, i->k) >= 0) in bch_extent_sort_fixup() 289 bch_cut_front(top->k, i->k); in bch_extent_sort_fixup() 291 heap_sift(iter, i - top, bch_extent_sort_cmp); in bch_extent_sort_fixup() 294 BUG_ON(!bkey_cmp(&START_KEY(top->k), &START_KEY(i->k))); in bch_extent_sort_fixup() 296 if (bkey_cmp(i->k, top->k) < 0) { in bch_extent_sort_fixup() 297 bkey_copy(tmp, top->k); in bch_extent_sort_fixup() [all …]
|
| /linux/fs/autofs/ |
| H A D | expire.c | 32 struct dentry *top = dentry; in autofs_mount_busy() local 61 ino = autofs_dentry_ino(top); in autofs_mount_busy() 148 struct dentry *top, in autofs_direct_busy() argument 152 pr_debug("top %p %pd\n", top, top); in autofs_direct_busy() 162 ino = autofs_dentry_ino(top); in autofs_direct_busy() 169 if (!autofs_can_expire(top, timeout, how)) in autofs_direct_busy() 180 struct dentry *top, in autofs_tree_busy() argument 184 struct autofs_info *top_ino = autofs_dentry_ino(top); in autofs_tree_busy() 187 pr_debug("top %p %pd\n", top, top); in autofs_tree_busy() 190 if (!simple_positive(top)) in autofs_tree_busy() [all …]
|
| /linux/tools/perf/ui/ |
| H A D | browser.c | 116 pos = browser->top; in ui_browser__list_head_seek() 135 browser->top = pos; in ui_browser__list_head_seek() 148 nd = browser->top; in ui_browser__rb_tree_seek() 165 browser->top = nd; in ui_browser__rb_tree_seek() 173 if (browser->top == NULL) in ui_browser__rb_tree_refresh() 174 browser->top = rb_first(browser->entries); in ui_browser__rb_tree_refresh() 176 nd = browser->top; in ui_browser__rb_tree_refresh() 392 browser->top = NULL; in ui_browser__update_nr_entries() 516 if (browser->top == NULL || browser->top == browser->entries) in ui_browser__list_head_refresh() 517 browser->top = ui_browser__list_head_filter_entries(browser, head->next); in ui_browser__list_head_refresh() [all …]
|
| /linux/arch/powerpc/mm/ |
| H A D | pgtable_32.c | 96 static void __init __mapin_ram_chunk(unsigned long offset, unsigned long top) in __mapin_ram_chunk() argument 105 for (; s < top; s += PAGE_SIZE) { in __mapin_ram_chunk() 119 phys_addr_t top = min(end, total_lowmem); in mapin_ram() local 121 if (base >= top) in mapin_ram() 123 base = mmu_mapin_ram(base, top); in mapin_ram() 124 __mapin_ram_chunk(base, top); in mapin_ram()
|
| /linux/arch/openrisc/kernel/ |
| H A D | unwinder.c | 22 unsigned long top; member 35 frameinfo->fp > &frameinfo->top)) && in or1k_frameinfo_valid() 70 top); in unwind_stack() 75 next_fp == &frameinfo->top)) { in unwind_stack()
|
| /linux/sound/soc/generic/ |
| H A D | simple-card.c | 132 struct device_node *top = dev->of_node; in simple_parse_convert() 135 simple_util_parse_convert(top, PREFIX, adata); in simple_parse_convert() 182 struct device_node *top = dev->of_node; in simple_link_init() 196 graph_util_parse_link_direction(top, &playback_only, &capture_only); in simple_link_init() 201 of_property_read_u32(top, "mclk-fs", &dai_props->mclk_fs); in simple_link_init() 202 of_property_read_u32(top, PREFIX "mclk-fs", &dai_props->mclk_fs); in simple_link_init() 210 graph_util_parse_trigger_order(priv, top, &trigger_start, &trigger_stop); in simple_link_init() 238 struct device_node *top = dev->of_node; in simple_dai_link_of_dpcm() 287 /* check "prefix" from top node */ in simple_dai_link_of_dpcm() 288 snd_soc_of_parse_node_prefix(top, ccon in simple_dai_link_of_dpcm() 134 struct device_node *top = dev->of_node; simple_parse_convert() local 184 struct device_node *top = dev->of_node; simple_link_init() local 240 struct device_node *top = dev->of_node; simple_dai_link_of_dpcm() local 375 struct device_node *top = dev->of_node; __simple_for_each_link() local 629 struct device_node *top = dev->of_node; simple_get_dais_count() local [all...] |
| /linux/drivers/platform/raspberrypi/vchiq-interface/ |
| H A D | vchiq_debugfs.c | 102 struct dentry *top; in vchiq_debugfs_add_instance() local 107 top = debugfs_create_dir(pidstr, vchiq_dbg_clients); in vchiq_debugfs_add_instance() 109 debugfs_create_file("use_count", 0444, top, instance, in vchiq_debugfs_add_instance() 111 debugfs_create_file("trace", 0644, top, instance, &debugfs_trace_fops); in vchiq_debugfs_add_instance() 113 vchiq_instance_get_debugfs_node(instance)->dentry = top; in vchiq_debugfs_add_instance()
|