/linux/tools/perf/arch/x86/util/ |
A D | machine.c | 28 if (mi->cnt >= mi->max_cnt) { in add_extra_kernel_map() 32 mi->max_cnt = mi->max_cnt ? mi->max_cnt * 2 : 32; in add_extra_kernel_map() 34 buf = realloc(mi->maps, sz); in add_extra_kernel_map() 37 mi->maps = buf; in add_extra_kernel_map() 40 mi->maps[mi->cnt].start = start; in add_extra_kernel_map() 41 mi->maps[mi->cnt].end = end; in add_extra_kernel_map() 42 mi->maps[mi->cnt].pgoff = pgoff; in add_extra_kernel_map() 43 strlcpy(mi->maps[mi->cnt].name, name, KMAP_NAME_LEN); in add_extra_kernel_map() 45 mi->cnt += 1; in add_extra_kernel_map() 87 if (!mi.entry_trampoline) in machine__create_extra_kernel_maps() [all …]
|
/linux/net/mac80211/ |
A D | rc80211_minstrel_ht.c | 1002 mi->avg_ampdu_len = minstrel_ewma(mi->avg_ampdu_len, in minstrel_ht_update_stats() 1003 MINSTREL_FRAC(mi->ampdu_len, mi->ampdu_packets), in minstrel_ht_update_stats() 1236 rate = minstrel_get_ratestats(mi, mi->max_tp_rate[0]); in minstrel_ht_tx_status() 1239 minstrel_downgrade_rate(mi, &mi->max_tp_rate[0], true); in minstrel_ht_tx_status() 1243 rate2 = minstrel_get_ratestats(mi, mi->max_tp_rate[1]); in minstrel_ht_tx_status() 1246 minstrel_downgrade_rate(mi, &mi->max_tp_rate[1], false); in minstrel_ht_tx_status() 1411 (minstrel_ht_get_prob_avg(mi, mi->max_tp_rate[0]) < in minstrel_ht_get_max_amsdu_len() 1439 minstrel_ht_set_rate(mp, mi, rates, i++, mi->max_tp_rate[0]); in minstrel_ht_update_rates() 1599 memset(mi, 0, sizeof(*mi)); in minstrel_ht_update_caps() 1601 mi->sta = sta; in minstrel_ht_update_caps() [all …]
|
A D | rc80211_minstrel_ht_debugfs.c | 56 if (!mi->supported[i]) in minstrel_ht_stats_dump() 74 if (!(mi->supported[i] & BIT(j))) in minstrel_ht_stats_dump() 173 max(0, (int) mi->total_packets - (int) mi->sample_packets), in minstrel_ht_stats_open() 174 mi->sample_packets); in minstrel_ht_stats_open() 175 if (mi->avg_ampdu_len) in minstrel_ht_stats_open() 177 MINSTREL_TRUNC(mi->avg_ampdu_len), in minstrel_ht_stats_open() 202 if (!mi->supported[i]) in minstrel_ht_stats_csv_dump() 220 if (!(mi->supported[i] & BIT(j))) in minstrel_ht_stats_csv_dump() 283 max(0, (int) mi->total_packets - in minstrel_ht_stats_csv_dump() 284 (int) mi->sample_packets), in minstrel_ht_stats_csv_dump() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
A D | mapping.c | 57 mi = kzalloc(sizeof(*mi) + ctx->data_size, GFP_KERNEL); in mapping_add() 58 if (!mi) in mapping_add() 64 err = xa_alloc(&ctx->xarray, &mi->id, mi, XA_LIMIT(1, ctx->max_id), in mapping_add() 69 ++mi->cnt; in mapping_add() 70 *id = mi->id; in mapping_add() 77 hash_del(&mi->node); in mapping_add() 78 kfree(mi); in mapping_add() 89 kfree_rcu(mi, rcu); in mapping_remove_and_free() 117 if (!mi) in mapping_remove() 121 if (--mi->cnt > 0) in mapping_remove() [all …]
|
/linux/fs/ntfs3/ |
A D | record.c | 91 *mi = m; in mi_get() 97 mi_clear(mi); in mi_put() 98 kfree(mi); in mi_put() 103 mi->sbi = sbi; in mi_init() 104 mi->rno = rno; in mi_init() 106 if (!mi->mrec) in mi_init() 325 if (!mi->dirty) in mi_write() 328 sbi = mi->sbi; in mi_write() 329 rec = mi->mrec; in mi_write() 355 rec = mi->mrec; in mi_format_new() [all …]
|
A D | frecord.c | 35 return mi; in ni_ins_mi() 59 ni_ins_mi(ni, &ni->mi_tree, mi->rno, &mi->node); in ni_add_mi() 154 if (mi) in ni_load_mi_ex() 168 *mi = &ni->mi; in ni_load_mi() 174 *mi = &ni->mi; in ni_load_mi() 197 if (mi) in ni_find_attr() 198 *mi = &ni->mi; in ni_find_attr() 233 if (mi) in ni_find_attr() 255 if (mi) in ni_enum_attr_ex() 256 *mi = &ni->mi; in ni_enum_attr_ex() [all …]
|
A D | attrib.c | 104 err = run_unpack_ex(run, ni->mi.sbi, ni->mi.rno, svcn, evcn, in attr_load_runs() 252 sbi = mi->sbi; in attr_make_nonresident() 475 mi = mi_b; in attr_set_size() 482 &mi); in attr_set_size() 741 mi = mi_b; in attr_set_size() 875 mi = mi_b; in attr_data_get_block() 879 &mi); in attr_data_get_block() 1480 mi = mi_b; in attr_allocate_frame() 1750 mi = mi_b; in attr_collapse_range() 1815 &mi); in attr_collapse_range() [all …]
|
A D | ntfs_fs.h | 509 struct mft_inode **mi); 514 struct mft_inode **mi); 517 struct mft_inode **mi); 532 struct mft_inode **mi); 543 struct mft_inode **mi, 546 struct mft_inode **mi, 752 if (ref->seq != mi->mrec->seq) in mi_is_ref() 770 ref->seq = mi->mrec->seq; in mi_get_ref() 1100 nb_put(&mi->nb); in mi_clear() 1101 kfree(mi->mrec); in mi_clear() [all …]
|
/linux/arch/x86/mm/ |
A D | numa.c | 144 mi->blk[mi->nr_blks].start = start; in numa_add_memblk_to() 145 mi->blk[mi->nr_blks].end = end; in numa_add_memblk_to() 146 mi->blk[mi->nr_blks].nid = nid; in numa_add_memblk_to() 147 mi->nr_blks++; in numa_add_memblk_to() 161 mi->nr_blks--; in numa_remove_memblk_from() 162 memmove(&mi->blk[idx], &mi->blk[idx + 1], in numa_remove_memblk_from() 163 (mi->nr_blks - idx) * sizeof(mi->blk[0])); in numa_remove_memblk_from() 324 for (i = mi->nr_blks; i < ARRAY_SIZE(mi->blk); i++) { in numa_cleanup_meminfo() 325 mi->blk[i].start = mi->blk[i].end = 0; in numa_cleanup_meminfo() 341 if (mi->blk[i].start != mi->blk[i].end && in numa_nodemask_from_meminfo() [all …]
|
/linux/arch/x86/boot/ |
A D | video-mode.c | 55 struct mode_info *mi; in mode_defined() local 59 mi = card->modes; in mode_defined() 60 for (i = 0; i < card->nmodes; i++, mi++) { in mode_defined() 61 if (mi->mode == mode) in mode_defined() 74 struct mode_info *mi; in raw_set_mode() local 82 mi = card->modes; in raw_set_mode() 84 int visible = mi->x || mi->y; in raw_set_mode() 87 mode == mi->mode || in raw_set_mode() 88 mode == (mi->y << 8)+mi->x) { in raw_set_mode() 89 *real_mode = mi->mode; in raw_set_mode() [all …]
|
A D | video.c | 140 struct mode_info *mi; in display_menu() local 162 mi = card->modes; in display_menu() 163 for (i = 0; i < card->nmodes; i++, mi++) { in display_menu() 165 int visible = mi->x && mi->y; in display_menu() 166 u16 mode_id = mi->mode ? mi->mode : in display_menu() 167 (mi->y << 8)+mi->x; in display_menu() 172 if (mi->depth) in display_menu() 173 sprintf(resbuf, "%dx%d", mi->y, mi->depth); in display_menu() 175 sprintf(resbuf, "%d", mi->y); in display_menu() 178 ch, mode_id, mi->x, resbuf, card->card_name); in display_menu()
|
A D | video-bios.c | 24 static int bios_set_mode(struct mode_info *mi) in bios_set_mode() argument 26 return set_bios_mode(mi->mode - VIDEO_FIRST_BIOS); in bios_set_mode() 70 struct mode_info *mi; in bios_probe() local 105 mi = GET_HEAP(struct mode_info, 1); in bios_probe() 106 mi->mode = VIDEO_FIRST_BIOS+mode; in bios_probe() 107 mi->depth = 0; /* text */ in bios_probe() 108 mi->x = rdfs16(0x44a); in bios_probe() 109 mi->y = rdfs8(0x484)+1; in bios_probe()
|
A D | video-vesa.c | 36 struct mode_info *mi; in vesa_probe() local 76 mi = GET_HEAP(struct mode_info, 1); in vesa_probe() 77 mi->mode = mode + VIDEO_FIRST_VESA; in vesa_probe() 78 mi->depth = 0; /* text */ in vesa_probe() 79 mi->x = vminfo.h_res; in vesa_probe() 80 mi->y = vminfo.v_res; in vesa_probe() 91 mi = GET_HEAP(struct mode_info, 1); in vesa_probe() 92 mi->mode = mode + VIDEO_FIRST_VESA; in vesa_probe() 93 mi->depth = vminfo.bpp; in vesa_probe() 94 mi->x = vminfo.h_res; in vesa_probe() [all …]
|
/linux/include/net/tc_act/ |
A D | tc_ife.h | 44 int (*get)(struct sk_buff *skb, struct tcf_meta_info *mi); 53 int ife_get_meta_u32(struct sk_buff *skb, struct tcf_meta_info *mi); 54 int ife_get_meta_u16(struct sk_buff *skb, struct tcf_meta_info *mi); 55 int ife_alloc_meta_u32(struct tcf_meta_info *mi, void *metaval, gfp_t gfp); 56 int ife_alloc_meta_u16(struct tcf_meta_info *mi, void *metaval, gfp_t gfp); 57 int ife_check_meta_u32(u32 metaval, struct tcf_meta_info *mi); 58 int ife_check_meta_u16(u16 metaval, struct tcf_meta_info *mi); 59 int ife_encode_meta_u32(u32 metaval, void *skbdata, struct tcf_meta_info *mi); 62 int ife_encode_meta_u16(u16 metaval, void *skbdata, struct tcf_meta_info *mi); 63 void ife_release_meta_gen(struct tcf_meta_info *mi);
|
/linux/net/sched/ |
A D | act_ife.c | 48 if (mi->metaval) in ife_encode_meta_u16() 63 if (mi->metaval) in ife_get_meta_u32() 64 return nla_put_u32(skb, mi->metaid, *(u32 *)mi->metaval); in ife_get_meta_u32() 92 if (mi->metaval) in ife_encode_meta_u32() 107 if (mi->metaval) in ife_get_meta_u16() 108 return nla_put_u16(skb, mi->metaid, *(u16 *)mi->metaval); in ife_get_meta_u16() 117 if (!mi->metaval) in ife_alloc_meta_u32() 302 mi = kzalloc(sizeof(*mi), atomic ? GFP_ATOMIC : GFP_KERNEL); in __add_metainfo() 303 if (!mi) in __add_metainfo() 307 mi->ops = ops; in __add_metainfo() [all …]
|
/linux/fs/nilfs2/ |
A D | mdt.c | 447 struct nilfs_mdt_info *mi; in nilfs_mdt_init() local 449 mi = kzalloc(max(sizeof(*mi), objsz), GFP_NOFS); in nilfs_mdt_init() 450 if (!mi) in nilfs_mdt_init() 453 init_rwsem(&mi->mi_sem); in nilfs_mdt_init() 454 inode->i_private = mi; in nilfs_mdt_init() 515 mi->mi_shadow = shadow; in nilfs_mdt_setup_shadow_map() 618 down_write(&mi->mi_sem); in nilfs_mdt_restore_from_shadow_map() 620 if (mi->mi_palloc_cache) in nilfs_mdt_restore_from_shadow_map() 631 up_write(&mi->mi_sem); in nilfs_mdt_restore_from_shadow_map() 643 down_write(&mi->mi_sem); in nilfs_mdt_clear_shadow_map() [all …]
|
/linux/drivers/crypto/allwinner/sun4i-ss/ |
A D | sun4i-ss-hash.c | 199 struct sg_mapping_iter mi; in sun4i_hash() local 274 sg_miter_next(&mi); in sun4i_hash() 283 if (op->len || (mi.length - in_i) < 4) { in sun4i_hash() 297 if (in_i == mi.length) { in sun4i_hash() 298 sg_miter_next(&mi); in sun4i_hash() 310 if (mi.length - in_i > 3 && i < end) { in sun4i_hash() 325 if (in_i == mi.length) { in sun4i_hash() 326 sg_miter_next(&mi); in sun4i_hash() 345 if (in_i == mi.length) { in sun4i_hash() 346 sg_miter_next(&mi); in sun4i_hash() [all …]
|
A D | sun4i-ss-cipher.c | 36 struct sg_mapping_iter mi, mo; in sun4i_ss_opti_poll() local 86 sg_miter_skip(&mi, pi); in sun4i_ss_opti_poll() 88 if (!miter_err || !mi.addr) { in sun4i_ss_opti_poll() 100 if (oi == mi.length) { in sun4i_ss_opti_poll() 101 pi += mi.length; in sun4i_ss_opti_poll() 104 sg_miter_stop(&mi); in sun4i_ss_opti_poll() 203 struct sg_mapping_iter mi, mo; in sun4i_ss_cipher_poll() local 281 sg_miter_skip(&mi, pi); in sun4i_ss_cipher_poll() 319 if (oi == mi.length) { in sun4i_ss_cipher_poll() 320 pi += mi.length; in sun4i_ss_cipher_poll() [all …]
|
/linux/drivers/uio/ |
A D | uio.c | 285 int mi, pi; in uio_dev_add_attributes() local 293 for (mi = 0; mi < MAX_UIO_MAPS; mi++) { in uio_dev_add_attributes() 294 mem = &idev->info->mem[mi]; in uio_dev_add_attributes() 364 mi--; in uio_dev_add_attributes() 366 for (; mi >= 0; mi--) { in uio_dev_add_attributes() 367 mem = &idev->info->mem[mi]; in uio_dev_add_attributes() 674 int mi; in uio_vma_fault() local 683 if (mi < 0) { in uio_vma_fault() 731 if (mi < 0) in uio_mmap_physical() 764 int mi; in uio_mmap() local [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/dce/ |
A D | dce_mem_input.c | 134 struct mem_input *mi, in dce_mi_program_pte_vm() argument 139 struct dce_mem_input *dce_mi = TO_DCE_MEM_INPUT(mi); in dce_mi_program_pte_vm() 313 struct mem_input *mi, in dce_mi_program_display_marks() argument 320 struct dce_mem_input *dce_mi = TO_DCE_MEM_INPUT(mi); in dce_mi_program_display_marks() 340 struct mem_input *mi, in dce60_mi_program_display_marks() argument 347 struct dce_mem_input *dce_mi = TO_DCE_MEM_INPUT(mi); in dce60_mi_program_display_marks() 373 struct dce_mem_input *dce_mi = TO_DCE_MEM_INPUT(mi); in dce112_mi_program_display_marks() 631 struct mem_input *mi, in dce_mi_program_surface_config() argument 652 struct mem_input *mi, in dce60_mi_program_surface_config() argument 719 struct mem_input *mi, in dce_mi_allocate_dmif() argument [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/dce60/ |
A D | dce60_hw_sequencer.c | 273 struct mem_input *mi = pipe_ctx->plane_res.mi; in dce60_program_front_end_for_pipe() local 286 dce_enable_fe_clock(dc->hwseq, mi->inst, true); in dce60_program_front_end_for_pipe() 316 mi->funcs->mem_input_program_surface_config( in dce60_program_front_end_for_pipe() 317 mi, in dce60_program_front_end_for_pipe() 324 if (mi->funcs->set_blank) in dce60_program_front_end_for_pipe() 325 mi->funcs->set_blank(mi, pipe_ctx->plane_state->visible); in dce60_program_front_end_for_pipe() 328 mi->funcs->mem_input_program_pte_vm( in dce60_program_front_end_for_pipe() 329 pipe_ctx->plane_res.mi, in dce60_program_front_end_for_pipe() 402 pipe_ctx->plane_res.mi->funcs->allocate_mem_input( in dce60_apply_ctx_for_surface() 403 pipe_ctx->plane_res.mi, in dce60_apply_ctx_for_surface()
|
/linux/drivers/video/fbdev/ |
A D | pxa168fb.c | 372 x |= mi->gpio_output_data << 20; in set_dumb_panel_control() 373 x |= mi->gpio_output_mask << 12; in set_dumb_panel_control() 595 struct pxa168fb_mach_info *mi; in pxa168fb_probe() local 602 mi = dev_get_platdata(&pdev->dev); in pxa168fb_probe() 603 if (mi == NULL) { in pxa168fb_probe() 636 fbi->panel_rbswap = mi->panel_rbswap; in pxa168fb_probe() 638 fbi->active = mi->active; in pxa168fb_probe() 646 strlcpy(info->fix.id, mi->id, 16); in pxa168fb_probe() 686 set_mode(fbi, &info->var, mi->modes, mi->pix_fmt, 1); in pxa168fb_probe() 688 fb_videomode_to_modelist(mi->modes, mi->num_modes, &info->modelist); in pxa168fb_probe() [all …]
|
/linux/lib/ |
A D | decompress_unlzma.c | 351 int mi = 1; in process_bit0() local 375 } while (mi < 0x100); in process_bit0() 377 while (mi < 0x100) { in process_bit0() 388 return write_byte(wr, mi); in process_bit0() 498 int i, mi; in process_bit1() local 515 mi = 1; in process_bit1() 517 if (rc_get_bit(rc, prob + mi, &mi)) in process_bit1() 552 int i, mi; in unlzma() local 591 mi = 0; in unlzma() 594 mi++; in unlzma() [all …]
|
/linux/drivers/video/fbdev/mmp/panel/ |
A D | tpo_tj032md01bw.c | 128 struct mmp_mach_panel_info *mi; in tpohvga_probe() local 133 mi = spi->dev.platform_data; in tpohvga_probe() 134 if (mi == NULL) { in tpohvga_probe() 152 plat_data->plat_onoff = mi->plat_set_onoff; in tpohvga_probe() 154 panel_tpohvga.plat_path_name = mi->plat_path_name; in tpohvga_probe()
|
/linux/arch/xtensa/kernel/ |
A D | setup.c | 103 struct bp_meminfo *mi = (struct bp_meminfo *)(tag->data); in parse_tag_mem() local 105 if (mi->type != MEMORY_TYPE_CONVENTIONAL) in parse_tag_mem() 108 return memblock_add(mi->start, mi->end - mi->start); in parse_tag_mem() 117 struct bp_meminfo *mi = (struct bp_meminfo *)(tag->data); in parse_tag_initrd() local 119 initrd_start = (unsigned long)__va(mi->start); in parse_tag_initrd() 120 initrd_end = (unsigned long)__va(mi->end); in parse_tag_initrd()
|