mi 192 arch/arm/include/asm/assembler.h .irp c,,eq,ne,cs,cc,mi,pl,vs,vc,hi,ls,ge,lt,gt,le,hs,lo mi 449 arch/arm/include/asm/assembler.h .irp c,,eq,ne,cs,cc,mi,pl,vs,vc,hi,ls,ge,lt,gt,le,hs,lo mi 122 arch/arm/mach-mmp/pxa168.h static inline int pxa168_add_fb(struct pxa168fb_mach_info *mi) mi 124 arch/arm/mach-mmp/pxa168.h return pxa_register_device(&pxa168_device_fb, mi, sizeof(*mi)); mi 20 arch/arm/mach-pxa/generic.h mi->bank[__nr].start = (__start), \ mi 21 arch/arm/mach-pxa/generic.h mi->bank[__nr].size = (__size) mi 18 arch/arm/mach-sa1100/generic.h mi->bank[__nr].start = (__start), \ mi 19 arch/arm/mach-sa1100/generic.h mi->bank[__nr].size = (__size) mi 430 arch/ia64/include/asm/pal.h mi : 1, /* More information available mi 31 arch/unicore32/include/asm/memblock.h #define for_each_bank(iter, mi) \ mi 32 arch/unicore32/include/asm/memblock.h for (iter = 0; iter < (mi)->nr_banks; iter++) mi 192 arch/unicore32/kernel/setup.c request_standard_resources(struct meminfo *mi) mi 202 arch/unicore32/kernel/setup.c for (i = 0; i < mi->nr_banks; i++) { mi 203 arch/unicore32/kernel/setup.c if (mi->bank[i].size == 0) mi 212 arch/unicore32/kernel/setup.c res->start = mi->bank[i].start; mi 213 arch/unicore32/kernel/setup.c res->end = mi->bank[i].start + mi->bank[i].size - 1; mi 40 arch/unicore32/mm/init.c struct meminfo *mi = &meminfo; mi 46 arch/unicore32/mm/init.c for_each_bank(i, mi) { mi 47 arch/unicore32/mm/init.c struct membank *bank = &mi->bank[i]; mi 123 arch/unicore32/mm/init.c void __init uc32_memblock_init(struct meminfo *mi) mi 130 arch/unicore32/mm/init.c for (i = 0; i < mi->nr_banks; i++) mi 131 arch/unicore32/mm/init.c memblock_add(mi->bank[i].start, mi->bank[i].size); mi 229 arch/unicore32/mm/init.c static void __init free_unused_memmap(struct meminfo *mi) mi 238 arch/unicore32/mm/init.c for_each_bank(i, mi) { mi 239 arch/unicore32/mm/init.c struct membank *bank = &mi->bank[i]; mi 24 arch/x86/boot/video-bios.c static int bios_set_mode(struct mode_info *mi) mi 26 arch/x86/boot/video-bios.c return set_bios_mode(mi->mode - VIDEO_FIRST_BIOS); mi 70 arch/x86/boot/video-bios.c struct mode_info *mi; mi 105 arch/x86/boot/video-bios.c mi = GET_HEAP(struct mode_info, 1); mi 106 arch/x86/boot/video-bios.c mi->mode = VIDEO_FIRST_BIOS+mode; mi 107 arch/x86/boot/video-bios.c mi->depth = 0; /* text */ mi 108 arch/x86/boot/video-bios.c mi->x = rdfs16(0x44a); mi 109 arch/x86/boot/video-bios.c mi->y = rdfs8(0x484)+1; mi 55 arch/x86/boot/video-mode.c struct mode_info *mi; mi 59 arch/x86/boot/video-mode.c mi = card->modes; mi 60 arch/x86/boot/video-mode.c for (i = 0; i < card->nmodes; i++, mi++) { mi 61 arch/x86/boot/video-mode.c if (mi->mode == mode) mi 74 arch/x86/boot/video-mode.c struct mode_info *mi; mi 82 arch/x86/boot/video-mode.c mi = card->modes; mi 83 arch/x86/boot/video-mode.c for (i = 0; i < card->nmodes; i++, mi++) { mi 84 arch/x86/boot/video-mode.c int visible = mi->x || mi->y; mi 87 arch/x86/boot/video-mode.c mode == mi->mode || mi 88 arch/x86/boot/video-mode.c mode == (mi->y << 8)+mi->x) { mi 89 arch/x86/boot/video-mode.c *real_mode = mi->mode; mi 90 arch/x86/boot/video-mode.c return card->set_mode(mi); mi 36 arch/x86/boot/video-vesa.c struct mode_info *mi; mi 76 arch/x86/boot/video-vesa.c mi = GET_HEAP(struct mode_info, 1); mi 77 arch/x86/boot/video-vesa.c mi->mode = mode + VIDEO_FIRST_VESA; mi 78 arch/x86/boot/video-vesa.c mi->depth = 0; /* text */ mi 79 arch/x86/boot/video-vesa.c mi->x = vminfo.h_res; mi 80 arch/x86/boot/video-vesa.c mi->y = vminfo.v_res; mi 91 arch/x86/boot/video-vesa.c mi = GET_HEAP(struct mode_info, 1); mi 92 arch/x86/boot/video-vesa.c mi->mode = mode + VIDEO_FIRST_VESA; mi 93 arch/x86/boot/video-vesa.c mi->depth = vminfo.bpp; mi 94 arch/x86/boot/video-vesa.c mi->x = vminfo.h_res; mi 95 arch/x86/boot/video-vesa.c mi->y = vminfo.v_res; mi 140 arch/x86/boot/video.c struct mode_info *mi; mi 162 arch/x86/boot/video.c mi = card->modes; mi 163 arch/x86/boot/video.c for (i = 0; i < card->nmodes; i++, mi++) { mi 165 arch/x86/boot/video.c int visible = mi->x && mi->y; mi 166 arch/x86/boot/video.c u16 mode_id = mi->mode ? mi->mode : mi 167 arch/x86/boot/video.c (mi->y << 8)+mi->x; mi 172 arch/x86/boot/video.c if (mi->depth) mi 173 arch/x86/boot/video.c sprintf(resbuf, "%dx%d", mi->y, mi->depth); mi 175 arch/x86/boot/video.c sprintf(resbuf, "%d", mi->y); mi 178 arch/x86/boot/video.c ch, mode_id, mi->x, resbuf, card->card_name); mi 131 arch/x86/mm/numa.c struct numa_meminfo *mi) mi 144 arch/x86/mm/numa.c if (mi->nr_blks >= NR_NODE_MEMBLKS) { mi 149 arch/x86/mm/numa.c mi->blk[mi->nr_blks].start = start; mi 150 arch/x86/mm/numa.c mi->blk[mi->nr_blks].end = end; mi 151 arch/x86/mm/numa.c mi->blk[mi->nr_blks].nid = nid; mi 152 arch/x86/mm/numa.c mi->nr_blks++; mi 164 arch/x86/mm/numa.c void __init numa_remove_memblk_from(int idx, struct numa_meminfo *mi) mi 166 arch/x86/mm/numa.c mi->nr_blks--; mi 167 arch/x86/mm/numa.c memmove(&mi->blk[idx], &mi->blk[idx + 1], mi 168 arch/x86/mm/numa.c (mi->nr_blks - idx) * sizeof(mi->blk[0])); mi 230 arch/x86/mm/numa.c int __init numa_cleanup_meminfo(struct numa_meminfo *mi) mi 237 arch/x86/mm/numa.c for (i = 0; i < mi->nr_blks; i++) { mi 238 arch/x86/mm/numa.c struct numa_memblk *bi = &mi->blk[i]; mi 248 arch/x86/mm/numa.c numa_remove_memblk_from(i--, mi); mi 252 arch/x86/mm/numa.c for (i = 0; i < mi->nr_blks; i++) { mi 253 arch/x86/mm/numa.c struct numa_memblk *bi = &mi->blk[i]; mi 255 arch/x86/mm/numa.c for (j = i + 1; j < mi->nr_blks; j++) { mi 256 arch/x86/mm/numa.c struct numa_memblk *bj = &mi->blk[j]; mi 285 arch/x86/mm/numa.c for (k = 0; k < mi->nr_blks; k++) { mi 286 arch/x86/mm/numa.c struct numa_memblk *bk = &mi->blk[k]; mi 293 arch/x86/mm/numa.c if (k < mi->nr_blks) mi 300 arch/x86/mm/numa.c numa_remove_memblk_from(j--, mi); mi 305 arch/x86/mm/numa.c for (i = mi->nr_blks; i < ARRAY_SIZE(mi->blk); i++) { mi 306 arch/x86/mm/numa.c mi->blk[i].start = mi->blk[i].end = 0; mi 307 arch/x86/mm/numa.c mi->blk[i].nid = NUMA_NO_NODE; mi 317 arch/x86/mm/numa.c const struct numa_meminfo *mi) mi 321 arch/x86/mm/numa.c for (i = 0; i < ARRAY_SIZE(mi->blk); i++) mi 322 arch/x86/mm/numa.c if (mi->blk[i].start != mi->blk[i].end && mi 323 arch/x86/mm/numa.c mi->blk[i].nid != NUMA_NO_NODE) mi 324 arch/x86/mm/numa.c node_set(mi->blk[i].nid, *nodemask); mi 436 arch/x86/mm/numa.c static bool __init numa_meminfo_cover_memory(const struct numa_meminfo *mi) mi 442 arch/x86/mm/numa.c for (i = 0; i < mi->nr_blks; i++) { mi 443 arch/x86/mm/numa.c u64 s = mi->blk[i].start >> PAGE_SHIFT; mi 444 arch/x86/mm/numa.c u64 e = mi->blk[i].end >> PAGE_SHIFT; mi 446 arch/x86/mm/numa.c numaram -= __absent_pages_in_range(mi->blk[i].nid, s, e); mi 527 arch/x86/mm/numa.c static int __init numa_register_memblks(struct numa_meminfo *mi) mi 534 arch/x86/mm/numa.c numa_nodemask_from_meminfo(&node_possible_map, mi); mi 538 arch/x86/mm/numa.c for (i = 0; i < mi->nr_blks; i++) { mi 539 arch/x86/mm/numa.c struct numa_memblk *mb = &mi->blk[i]; mi 566 arch/x86/mm/numa.c if (!numa_meminfo_cover_memory(mi)) mi 574 arch/x86/mm/numa.c for (i = 0; i < mi->nr_blks; i++) { mi 575 arch/x86/mm/numa.c if (nid != mi->blk[i].nid) mi 577 arch/x86/mm/numa.c start = min(mi->blk[i].start, start); mi 578 arch/x86/mm/numa.c end = max(mi->blk[i].end, end); mi 887 arch/x86/mm/numa.c struct numa_meminfo *mi = &numa_meminfo; mi 888 arch/x86/mm/numa.c int nid = mi->blk[0].nid; mi 891 arch/x86/mm/numa.c for (i = 0; i < mi->nr_blks; i++) mi 892 arch/x86/mm/numa.c if (mi->blk[i].start <= start && mi->blk[i].end > start) mi 893 arch/x86/mm/numa.c nid = mi->blk[i].nid; mi 21 arch/x86/mm/numa_emulation.c static int __init emu_find_memblk_by_nid(int nid, const struct numa_meminfo *mi) mi 25 arch/x86/mm/numa_emulation.c for (i = 0; i < mi->nr_blks; i++) mi 26 arch/x86/mm/numa_emulation.c if (mi->blk[i].nid == nid) mi 19 arch/x86/mm/numa_internal.h void __init numa_remove_memblk_from(int idx, struct numa_meminfo *mi); mi 20 arch/x86/mm/numa_internal.h int __init numa_cleanup_meminfo(struct numa_meminfo *mi); mi 103 arch/xtensa/kernel/setup.c struct bp_meminfo *mi = (struct bp_meminfo *)(tag->data); mi 105 arch/xtensa/kernel/setup.c if (mi->type != MEMORY_TYPE_CONVENTIONAL) mi 108 arch/xtensa/kernel/setup.c return memblock_add(mi->start, mi->end - mi->start); mi 117 arch/xtensa/kernel/setup.c struct bp_meminfo *mi = (struct bp_meminfo *)(tag->data); mi 119 arch/xtensa/kernel/setup.c initrd_start = (unsigned long)__va(mi->start); mi 120 arch/xtensa/kernel/setup.c initrd_end = (unsigned long)__va(mi->end); mi 103 block/blk-mq.c struct mq_inflight *mi = priv; mi 108 block/blk-mq.c if (rq->part == mi->part) mi 109 block/blk-mq.c mi->inflight[0]++; mi 117 block/blk-mq.c struct mq_inflight mi = { .part = part, .inflight = inflight, }; mi 120 block/blk-mq.c blk_mq_queue_tag_busy_iter(q, blk_mq_check_inflight, &mi); mi 129 block/blk-mq.c struct mq_inflight *mi = priv; mi 131 block/blk-mq.c if (rq->part == mi->part) mi 132 block/blk-mq.c mi->inflight[rq_data_dir(rq)]++; mi 140 block/blk-mq.c struct mq_inflight mi = { .part = part, .inflight = inflight, }; mi 143 block/blk-mq.c blk_mq_queue_tag_busy_iter(q, blk_mq_check_inflight_rw, &mi); mi 522 drivers/crypto/omap-sham.c struct sg_mapping_iter mi; mi 542 drivers/crypto/omap-sham.c sg_miter_start(&mi, ctx->sg, ctx->sg_len, mi 553 drivers/crypto/omap-sham.c sg_miter_next(&mi); mi 554 drivers/crypto/omap-sham.c mlen = mi.length; mi 560 drivers/crypto/omap-sham.c buffer = mi.addr; mi 569 drivers/crypto/omap-sham.c sg_miter_stop(&mi); mi 33 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c struct sg_mapping_iter mi, mo; mi 58 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c sg_miter_start(&mi, areq->src, sg_nents(areq->src), mi 62 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c sg_miter_next(&mi); mi 64 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c if (!mi.addr || !mo.addr) { mi 76 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c todo = min_t(size_t, todo, (mi.length - oi) / 4); mi 79 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c writesl(ss->base + SS_RXFIFO, mi.addr + oi, todo); mi 82 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c if (oi == mi.length) { mi 83 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c sg_miter_next(&mi); mi 112 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c sg_miter_stop(&mi); mi 166 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c struct sg_mapping_iter mi, mo; mi 220 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c sg_miter_start(&mi, areq->src, sg_nents(areq->src), mi 224 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c sg_miter_next(&mi); mi 226 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c if (!mi.addr || !mo.addr) { mi 245 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c todo = min_t(size_t, todo, (mi.length - oi) / 4); mi 247 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c writesl(ss->base + SS_RXFIFO, mi.addr + oi, mi 260 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c todo = min_t(size_t, todo, mi.length - oi); mi 261 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c memcpy(buf + ob, mi.addr + oi, todo); mi 271 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c if (oi == mi.length) { mi 272 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c sg_miter_next(&mi); mi 283 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c oi, mi.length, ileft, areq->cryptlen, rx_cnt, mi 338 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c sg_miter_stop(&mi); mi 184 drivers/crypto/sunxi-ss/sun4i-ss-hash.c struct sg_mapping_iter mi; mi 257 drivers/crypto/sunxi-ss/sun4i-ss-hash.c sg_miter_start(&mi, areq->src, sg_nents(areq->src), mi 259 drivers/crypto/sunxi-ss/sun4i-ss-hash.c sg_miter_next(&mi); mi 268 drivers/crypto/sunxi-ss/sun4i-ss-hash.c if (op->len || (mi.length - in_i) < 4) { mi 277 drivers/crypto/sunxi-ss/sun4i-ss-hash.c in_r = min_t(size_t, mi.length - in_i, in_r); mi 278 drivers/crypto/sunxi-ss/sun4i-ss-hash.c memcpy(op->buf + op->len, mi.addr + in_i, in_r); mi 282 drivers/crypto/sunxi-ss/sun4i-ss-hash.c if (in_i == mi.length) { mi 283 drivers/crypto/sunxi-ss/sun4i-ss-hash.c sg_miter_next(&mi); mi 295 drivers/crypto/sunxi-ss/sun4i-ss-hash.c if (mi.length - in_i > 3 && i < end) { mi 297 drivers/crypto/sunxi-ss/sun4i-ss-hash.c in_r = min_t(size_t, mi.length - in_i, areq->nbytes - i); mi 298 drivers/crypto/sunxi-ss/sun4i-ss-hash.c in_r = min_t(size_t, ((mi.length - in_i) / 4) * 4, in_r); mi 301 drivers/crypto/sunxi-ss/sun4i-ss-hash.c writesl(ss->base + SS_RXFIFO, mi.addr + in_i, todo); mi 310 drivers/crypto/sunxi-ss/sun4i-ss-hash.c if (in_i == mi.length) { mi 311 drivers/crypto/sunxi-ss/sun4i-ss-hash.c sg_miter_next(&mi); mi 322 drivers/crypto/sunxi-ss/sun4i-ss-hash.c while (i < areq->nbytes && in_i < mi.length && op->len < 64) { mi 325 drivers/crypto/sunxi-ss/sun4i-ss-hash.c in_r = min_t(size_t, mi.length - in_i, in_r); mi 326 drivers/crypto/sunxi-ss/sun4i-ss-hash.c memcpy(op->buf + op->len, mi.addr + in_i, in_r); mi 330 drivers/crypto/sunxi-ss/sun4i-ss-hash.c if (in_i == mi.length) { mi 331 drivers/crypto/sunxi-ss/sun4i-ss-hash.c sg_miter_next(&mi); mi 337 drivers/crypto/sunxi-ss/sun4i-ss-hash.c sg_miter_stop(&mi); mi 523 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c secondary_pipe->plane_res.mi = pool->mis[secondary_pipe->pipe_idx]; mi 1617 drivers/gpu/drm/amd/display/dc/core/dc_resource.c pipe_ctx->plane_res.mi = pool->mis[i]; mi 1887 drivers/gpu/drm/amd/display/dc/core/dc_resource.c pipe_ctx->plane_res.mi = pool->mis[tg_inst]; mi 348 drivers/gpu/drm/amd/display/dc/core/dc_stream.c (!pipe_ctx->plane_res.mi && !pipe_ctx->plane_res.hubp) || mi 134 drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c struct mem_input *mi, mi 139 drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c struct dce_mem_input *dce_mi = TO_DCE_MEM_INPUT(mi); mi 264 drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c struct mem_input *mi, mi 271 drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c struct dce_mem_input *dce_mi = TO_DCE_MEM_INPUT(mi); mi 272 drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c uint32_t stutter_en = mi->ctx->dc->debug.disable_stutter ? 0 : 1; mi 289 drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c static void dce112_mi_program_display_marks(struct mem_input *mi, mi 296 drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c struct dce_mem_input *dce_mi = TO_DCE_MEM_INPUT(mi); mi 297 drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c uint32_t stutter_en = mi->ctx->dc->debug.disable_stutter ? 0 : 1; mi 322 drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c static void dce120_mi_program_display_marks(struct mem_input *mi, mi 329 drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c struct dce_mem_input *dce_mi = TO_DCE_MEM_INPUT(mi); mi 330 drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c uint32_t stutter_en = mi->ctx->dc->debug.disable_stutter ? 0 : 1; mi 505 drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c struct mem_input *mi, mi 513 drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c struct dce_mem_input *dce_mi = TO_DCE_MEM_INPUT(mi); mi 571 drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c struct mem_input *mi, mi 577 drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c struct dce_mem_input *dce_mi = TO_DCE_MEM_INPUT(mi); mi 618 drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c struct mem_input *mi, mi 621 drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c struct dce_mem_input *dce_mi = TO_DCE_MEM_INPUT(mi); mi 1662 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c pipe_ctx->plane_res.mi->funcs->mem_input_program_display_marks( mi 1663 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c pipe_ctx->plane_res.mi, mi 1671 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c pipe_ctx->plane_res.mi->funcs->mem_input_program_chroma_display_marks( mi 1672 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c pipe_ctx->plane_res.mi, mi 1695 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c if (res_ctx->pipe_ctx[i].stream == NULL || res_ctx->pipe_ctx[i].plane_res.mi == NULL) mi 1698 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c res_ctx->pipe_ctx[i].plane_res.mi->funcs->mem_input_program_display_marks( mi 1699 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c res_ctx->pipe_ctx[i].plane_res.mi, mi 1707 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c res_ctx->pipe_ctx[i].plane_res.mi->funcs->mem_input_program_chroma_display_marks( mi 1708 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c res_ctx->pipe_ctx[i].plane_res.mi, mi 1933 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c pipe_ctx_old->plane_res.mi->funcs->free_mem_input( mi 1934 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c pipe_ctx_old->plane_res.mi, dc->current_state->stream_count); mi 2208 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c pipe_ctx->plane_res.mi->funcs->mem_input_program_surface_flip_and_addr( mi 2209 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c pipe_ctx->plane_res.mi, mi 2224 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c pipe_ctx->plane_res.mi->funcs->mem_input_is_flip_pending( mi 2225 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c pipe_ctx->plane_res.mi); mi 2228 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c pipe_ctx->plane_res.mi->current_address = pipe_ctx->plane_res.mi->request_address; mi 2230 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c plane_state->status.current_address = pipe_ctx->plane_res.mi->current_address; mi 2231 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c if (pipe_ctx->plane_res.mi->current_address.type == PLN_ADDR_TYPE_GRPH_STEREO && mi 2466 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c struct mem_input *mi = pipe_ctx->plane_res.mi; mi 2481 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c dce_enable_fe_clock(dc->hwseq, mi->inst, true); mi 2511 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c mi->funcs->mem_input_program_surface_config( mi 2512 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c mi, mi 2519 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c if (mi->funcs->set_blank) mi 2520 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c mi->funcs->set_blank(mi, pipe_ctx->plane_state->visible); mi 2523 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c mi->funcs->mem_input_program_pte_vm( mi 2524 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c pipe_ctx->plane_res.mi, mi 2608 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c pipe_ctx->plane_res.mi->funcs->allocate_mem_input( mi 2609 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c pipe_ctx->plane_res.mi, mi 2639 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c int fe_idx = pipe_ctx->plane_res.mi ? mi 2640 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c pipe_ctx->plane_res.mi->inst : pipe_ctx->pipe_idx; mi 2687 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c struct mem_input *mi = pipe_ctx->plane_res.mi; mi 2707 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c if (mi->funcs->set_cursor_position) mi 2708 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c mi->funcs->set_cursor_position(mi, &pos_cpy, ¶m); mi 2720 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c if (pipe_ctx->plane_res.mi && mi 2721 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c pipe_ctx->plane_res.mi->funcs->set_cursor_attributes) mi 2722 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c pipe_ctx->plane_res.mi->funcs->set_cursor_attributes( mi 2723 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c pipe_ctx->plane_res.mi, attributes); mi 967 drivers/gpu/drm/amd/display/dc/dce110/dce110_mem_input_v.c struct mem_input *mi, mi 978 drivers/gpu/drm/amd/display/dc/dce110/dce110_mem_input_v.c value = dm_read_reg(mi->ctx, addr); mi 985 drivers/gpu/drm/amd/display/dc/dce110/dce110_mem_input_v.c dm_write_reg(mi->ctx, addr, value); mi 988 drivers/gpu/drm/amd/display/dc/dce110/dce110_mem_input_v.c value = dm_read_reg(mi->ctx, addr); mi 995 drivers/gpu/drm/amd/display/dc/dce110/dce110_mem_input_v.c dm_write_reg(mi->ctx, addr, value); mi 999 drivers/gpu/drm/amd/display/dc/dce110/dce110_mem_input_v.c dm_write_reg(mi->ctx, addr, value); mi 1003 drivers/gpu/drm/amd/display/dc/dce110/dce110_mem_input_v.c dm_write_reg(mi->ctx, addr, value); mi 1009 drivers/gpu/drm/amd/display/dc/dce110/dce110_mem_input_v.c struct mem_input *mi, mi 1062 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c pipe_ctx->plane_res.mi = pool->mis[underlay_idx]; mi 1098 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c pipe_ctx->plane_res.mi->funcs->allocate_mem_input(pipe_ctx->plane_res.mi, mi 1733 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c next_odm_pipe->plane_res.mi = pool->mis[next_odm_pipe->pipe_idx]; mi 1813 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c secondary_pipe->plane_res.mi = pool->mis[secondary_pipe->pipe_idx]; mi 260 drivers/gpu/drm/amd/display/dc/inc/core_types.h struct mem_input *mi; mi 166 drivers/gpu/drm/amd/display/dc/inc/hw/mem_input.h void (*set_blank)(struct mem_input *mi, bool blank); mi 167 drivers/gpu/drm/amd/display/dc/inc/hw/mem_input.h void (*set_hubp_blank_en)(struct mem_input *mi, bool blank); mi 97 drivers/infiniband/sw/rxe/rxe_cq.c err = do_mmap_info(rxe, uresp ? &uresp->mi : NULL, udata, mi 125 drivers/infiniband/sw/rxe/rxe_cq.c uresp ? &uresp->mi : NULL, NULL, &cq->cq_lock); mi 130 drivers/infiniband/sw/rxe/rxe_srq.c err = do_mmap_info(rxe, uresp ? &uresp->mi : NULL, udata, q->buf, mi 155 drivers/infiniband/sw/rxe/rxe_srq.c struct mminfo __user *mi = NULL; mi 162 drivers/infiniband/sw/rxe/rxe_srq.c mi = u64_to_user_ptr(ucmd->mmap_info_addr); mi 165 drivers/infiniband/sw/rxe/rxe_srq.c rcv_wqe_size(srq->rq.max_sge), udata, mi, mi 156 drivers/media/usb/usbvision/usbvision.h #define RESTRICT_TO_RANGE(v, mi, ma) \ mi 157 drivers/media/usb/usbvision/usbvision.h { if (((int)v) < (mi)) (v) = (mi); else if ((v) > (ma)) (v) = (ma); } mi 587 drivers/net/wireless/broadcom/b43/main.c u16 lo, mi, hi; mi 590 drivers/net/wireless/broadcom/b43/main.c mi = (value & 0x0000FFFF0000ULL) >> 16; mi 593 drivers/net/wireless/broadcom/b43/main.c b43_shm_write16(dev, B43_SHM_SHARED, B43_SHM_SH_HOSTF2, mi); mi 2649 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c u32 mc, mi; mi 2676 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c mi = bcma_read32(core, D11REGOFFS(macintstatus)); mi 2677 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c if (mi == 0xffffffff) { mi 2683 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c WARN_ON(mi & MI_MACSSPNDD); mi 2717 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c u32 mc, mi; mi 2742 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c mi = bcma_read32(core, D11REGOFFS(macintstatus)); mi 2743 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c WARN_ON(mi & MI_MACSSPNDD); mi 465 drivers/net/wireless/intersil/p54/p54spi.c struct p54_tx_info *mi = (struct p54_tx_info *) info->rate_driver_data; mi 466 drivers/net/wireless/intersil/p54/p54spi.c struct p54s_tx_info *di = (struct p54s_tx_info *) mi->data; mi 469 drivers/net/wireless/intersil/p54/p54spi.c BUILD_BUG_ON(sizeof(*di) > sizeof((mi->data))); mi 1745 drivers/net/wireless/st/cw1200/wsm.h struct wsm_p2p_ps_modeinfo *mi) mi 1748 drivers/net/wireless/st/cw1200/wsm.h mi, sizeof(*mi)); mi 1752 drivers/net/wireless/st/cw1200/wsm.h struct wsm_p2p_ps_modeinfo *mi) mi 1755 drivers/net/wireless/st/cw1200/wsm.h mi, sizeof(*mi)); mi 1054 drivers/nfc/pn533/pn533.c u8 status, ret, mi; mi 1067 drivers/nfc/pn533/pn533.c mi = status & PN533_CMD_MI_MASK; mi 1078 drivers/nfc/pn533/pn533.c if (mi) { mi 1953 drivers/nfc/pn533/pn533.c u8 status, ret, mi; mi 1964 drivers/nfc/pn533/pn533.c mi = status & PN533_CMD_MI_MASK; mi 1977 drivers/nfc/pn533/pn533.c if (mi) { mi 785 drivers/staging/most/usb/usb.c u16 hi, mi, lo, link; mi 793 drivers/staging/most/usb/usb.c if (drci_rd_reg(usb_device, DRCI_REG_HW_ADDR_MI, &mi) < 0) { mi 810 drivers/staging/most/usb/usb.c hw_addr[2] = mi >> 8; mi 811 drivers/staging/most/usb/usb.c hw_addr[3] = mi; mi 1534 drivers/target/target_core_user.c int mi = tcmu_find_mem_index(vmf->vma); mi 1535 drivers/target/target_core_user.c if (mi < 0) mi 1542 drivers/target/target_core_user.c offset = (vmf->pgoff - mi) << PAGE_SHIFT; mi 1546 drivers/target/target_core_user.c addr = (void *)(unsigned long)info->mem[mi].addr + offset; mi 285 drivers/uio/uio.c int mi, pi; mi 293 drivers/uio/uio.c for (mi = 0; mi < MAX_UIO_MAPS; mi++) { mi 294 drivers/uio/uio.c mem = &idev->info->mem[mi]; mi 314 drivers/uio/uio.c ret = kobject_add(&map->kobj, idev->map_dir, "map%d", mi); mi 364 drivers/uio/uio.c mi--; mi 366 drivers/uio/uio.c for (; mi >= 0; mi--) { mi 367 drivers/uio/uio.c mem = &idev->info->mem[mi]; mi 674 drivers/uio/uio.c int mi; mi 682 drivers/uio/uio.c mi = uio_find_mem_index(vmf->vma); mi 683 drivers/uio/uio.c if (mi < 0) { mi 692 drivers/uio/uio.c offset = (vmf->pgoff - mi) << PAGE_SHIFT; mi 694 drivers/uio/uio.c addr = (void *)(unsigned long)idev->info->mem[mi].addr + offset; mi 695 drivers/uio/uio.c if (idev->info->mem[mi].memtype == UIO_MEM_LOGICAL) mi 728 drivers/uio/uio.c int mi = uio_find_mem_index(vma); mi 731 drivers/uio/uio.c if (mi < 0) mi 733 drivers/uio/uio.c mem = idev->info->mem + mi; mi 741 drivers/uio/uio.c if (idev->info->mem[mi].memtype == UIO_MEM_PHYS) mi 764 drivers/uio/uio.c int mi; mi 779 drivers/uio/uio.c mi = uio_find_mem_index(vma); mi 780 drivers/uio/uio.c if (mi < 0) { mi 786 drivers/uio/uio.c actual_pages = ((idev->info->mem[mi].addr & ~PAGE_MASK) mi 787 drivers/uio/uio.c + idev->info->mem[mi].size + PAGE_SIZE -1) >> PAGE_SHIFT; mi 798 drivers/uio/uio.c switch (idev->info->mem[mi].memtype) { mi 605 drivers/usb/misc/sisusbvga/sisusb_init.c unsigned short mi) mi 607 drivers/usb/misc/sisusbvga/sisusb_init.c unsigned short modeflag = SiS_Pr->SiS_EModeIDTable[mi].Ext_ModeFlag; mi 764 drivers/usb/misc/sisusbvga/sisusb_init.c unsigned short mi) mi 772 drivers/usb/misc/sisusbvga/sisusb_init.c data = SiS_Pr->SiS_SModeIDTable[mi].St_ModeFlag; mi 774 drivers/usb/misc/sisusbvga/sisusb_init.c data = SiS_Pr->SiS_EModeIDTable[mi].Ext_ModeFlag; mi 1437 drivers/video/fbdev/fsl-diu-fb.c struct mfb_info *mi = data->fsl_diu_info[i].par; mi 1439 drivers/video/fbdev/fsl-diu-fb.c if (mi->count) mi 542 drivers/video/fbdev/mmp/fb/mmpfb.c struct mmp_buffer_driver_mach_info *mi; mi 547 drivers/video/fbdev/mmp/fb/mmpfb.c mi = pdev->dev.platform_data; mi 548 drivers/video/fbdev/mmp/fb/mmpfb.c if (mi == NULL) { mi 563 drivers/video/fbdev/mmp/fb/mmpfb.c fbi->name = mi->name; mi 564 drivers/video/fbdev/mmp/fb/mmpfb.c fbi->pix_fmt = mi->default_pixfmt; mi 569 drivers/video/fbdev/mmp/fb/mmpfb.c fbi->path = mmp_get_path(mi->path_name); mi 571 drivers/video/fbdev/mmp/fb/mmpfb.c dev_err(&pdev->dev, "can't get the path %s\n", mi->path_name); mi 579 drivers/video/fbdev/mmp/fb/mmpfb.c fbi->overlay = mmp_path_get_overlay(fbi->path, mi->overlay_id); mi 585 drivers/video/fbdev/mmp/fb/mmpfb.c mmp_overlay_set_fetch(fbi->overlay, mi->dmafetch_id); mi 434 drivers/video/fbdev/mmp/hw/mmp_ctrl.c struct mmp_mach_plat_info *mi; mi 456 drivers/video/fbdev/mmp/hw/mmp_ctrl.c mi = pdev->dev.platform_data; mi 457 drivers/video/fbdev/mmp/hw/mmp_ctrl.c if (mi == NULL || !mi->path_num || !mi->paths) { mi 465 drivers/video/fbdev/mmp/hw/mmp_ctrl.c struct_size(ctrl, path_plats, mi->path_num), mi 472 drivers/video/fbdev/mmp/hw/mmp_ctrl.c ctrl->name = mi->name; mi 473 drivers/video/fbdev/mmp/hw/mmp_ctrl.c ctrl->path_num = mi->path_num; mi 507 drivers/video/fbdev/mmp/hw/mmp_ctrl.c ctrl->clk = devm_clk_get(ctrl->dev, mi->clk_name); mi 509 drivers/video/fbdev/mmp/hw/mmp_ctrl.c dev_err(ctrl->dev, "unable to get clk %s\n", mi->clk_name); mi 526 drivers/video/fbdev/mmp/hw/mmp_ctrl.c if (!path_init(path_plat, &mi->paths[i])) { mi 128 drivers/video/fbdev/mmp/panel/tpo_tj032md01bw.c struct mmp_mach_panel_info *mi; mi 133 drivers/video/fbdev/mmp/panel/tpo_tj032md01bw.c mi = spi->dev.platform_data; mi 134 drivers/video/fbdev/mmp/panel/tpo_tj032md01bw.c if (mi == NULL) { mi 152 drivers/video/fbdev/mmp/panel/tpo_tj032md01bw.c plat_data->plat_onoff = mi->plat_set_onoff; mi 154 drivers/video/fbdev/mmp/panel/tpo_tj032md01bw.c panel_tpohvga.plat_path_name = mi->plat_path_name; mi 812 drivers/video/fbdev/omap/omapfb_main.c static int omapfb_setup_mem(struct fb_info *fbi, struct omapfb_mem_info *mi) mi 822 drivers/video/fbdev/omap/omapfb_main.c if (mi->type != OMAPFB_MEMTYPE_SDRAM) mi 825 drivers/video/fbdev/omap/omapfb_main.c size = PAGE_ALIGN(mi->size); mi 831 drivers/video/fbdev/omap/omapfb_main.c if (rg->size != size || rg->type != mi->type) { mi 838 drivers/video/fbdev/omap/omapfb_main.c rg->type = mi->type; mi 856 drivers/video/fbdev/omap/omapfb_main.c r = fbdev->ctrl->setup_mem(plane->idx, size, mi->type, &paddr); mi 888 drivers/video/fbdev/omap/omapfb_main.c static int omapfb_query_mem(struct fb_info *fbi, struct omapfb_mem_info *mi) mi 895 drivers/video/fbdev/omap/omapfb_main.c memset(mi, 0, sizeof(*mi)); mi 896 drivers/video/fbdev/omap/omapfb_main.c mi->size = rg->size; mi 897 drivers/video/fbdev/omap/omapfb_main.c mi->type = rg->type; mi 201 drivers/video/fbdev/omap2/omapfb/dss/apply.c struct omap_overlay_manager_info *mi; mi 213 drivers/video/fbdev/omap2/omapfb/dss/apply.c mi = &mp->user_info; mi 215 drivers/video/fbdev/omap2/omapfb/dss/apply.c mi = &mp->info; mi 231 drivers/video/fbdev/omap2/omapfb/dss/apply.c return dss_mgr_check(mgr, mi, &mp->timings, &mp->lcd_config, ois); mi 202 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c static int omapfb_setup_mem(struct fb_info *fbi, struct omapfb_mem_info *mi) mi 211 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c if (mi->type != OMAPFB_MEMTYPE_SDRAM) mi 214 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c size = PAGE_ALIGN(mi->size); mi 224 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c if (rg->size == size && rg->type == mi->type) mi 249 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c r = omapfb_realloc_fbmem(fbi, size, mi->type); mi 262 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c static int omapfb_query_mem(struct fb_info *fbi, struct omapfb_mem_info *mi) mi 268 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c memset(mi, 0, sizeof(*mi)); mi 270 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c mi->size = rg->size; mi 271 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c mi->type = rg->type; mi 367 drivers/video/fbdev/pxa168fb.c struct pxa168fb_mach_info *mi = dev_get_platdata(fbi->dev); mi 375 drivers/video/fbdev/pxa168fb.c x |= (fbi->is_blanked ? 0x7 : mi->dumb_mode) << 28; mi 376 drivers/video/fbdev/pxa168fb.c x |= mi->gpio_output_data << 20; mi 377 drivers/video/fbdev/pxa168fb.c x |= mi->gpio_output_mask << 12; mi 378 drivers/video/fbdev/pxa168fb.c x |= mi->panel_rgb_reverse_lanes ? 0x00000080 : 0; mi 379 drivers/video/fbdev/pxa168fb.c x |= mi->invert_composite_blank ? 0x00000040 : 0; mi 381 drivers/video/fbdev/pxa168fb.c x |= mi->invert_pix_val_ena ? 0x00000010 : 0; mi 384 drivers/video/fbdev/pxa168fb.c x |= mi->invert_pixclock ? 0x00000002 : 0; mi 561 drivers/video/fbdev/pxa168fb.c struct pxa168fb_mach_info *mi) mi 602 drivers/video/fbdev/pxa168fb.c struct pxa168fb_mach_info *mi; mi 609 drivers/video/fbdev/pxa168fb.c mi = dev_get_platdata(&pdev->dev); mi 610 drivers/video/fbdev/pxa168fb.c if (mi == NULL) { mi 643 drivers/video/fbdev/pxa168fb.c fbi->panel_rbswap = mi->panel_rbswap; mi 645 drivers/video/fbdev/pxa168fb.c fbi->active = mi->active; mi 653 drivers/video/fbdev/pxa168fb.c strlcpy(info->fix.id, mi->id, 16); mi 693 drivers/video/fbdev/pxa168fb.c set_mode(fbi, &info->var, mi->modes, mi->pix_fmt, 1); mi 695 drivers/video/fbdev/pxa168fb.c fb_videomode_to_modelist(mi->modes, mi->num_modes, &info->modelist); mi 700 drivers/video/fbdev/pxa168fb.c pxa168fb_init_mode(info, mi); mi 720 drivers/video/fbdev/pxa168fb.c writel(mi->io_pin_allocation_mode, fbi->reg_base + SPU_IOPAD_CONTROL); mi 157 drivers/virtio/virtio_input.c u32 mi, ma, re, fu, fl; mi 160 drivers/virtio/virtio_input.c virtio_cread(vi->vdev, struct virtio_input_config, u.abs.min, &mi); mi 165 drivers/virtio/virtio_input.c input_set_abs_params(vi->idev, abs, mi, ma, fu, fl); mi 219 drivers/xen/mcelog.c static int convert_log(struct mc_info *mi) mi 228 drivers/xen/mcelog.c x86_mcinfo_lookup(&mic, mi, MC_TYPE_GLOBAL); mi 254 drivers/xen/mcelog.c x86_mcinfo_lookup(&mic, mi, MC_TYPE_BANK); mi 1218 fs/ceph/mds_client.c struct ceph_mds_info *mi; mi 1225 fs/ceph/mds_client.c mi = &mdsc->mdsmap->m_info[mds]; mi 1227 fs/ceph/mds_client.c session->s_mds, mi->num_export_targets); mi 1229 fs/ceph/mds_client.c for (i = 0; i < mi->num_export_targets; i++) { mi 1230 fs/ceph/mds_client.c ts = __open_export_target_session(mdsc, mi->export_targets[i]); mi 49 fs/nilfs2/alloc.c struct nilfs_mdt_info *mi = NILFS_MDT(inode); mi 51 fs/nilfs2/alloc.c mi->mi_bgl = kmalloc(sizeof(*mi->mi_bgl), GFP_NOFS); mi 52 fs/nilfs2/alloc.c if (!mi->mi_bgl) mi 55 fs/nilfs2/alloc.c bgl_lock_init(mi->mi_bgl); mi 59 fs/nilfs2/alloc.c mi->mi_blocks_per_group = mi 61 fs/nilfs2/alloc.c mi->mi_entries_per_block) + 1; mi 66 fs/nilfs2/alloc.c mi->mi_blocks_per_desc_block = mi 68 fs/nilfs2/alloc.c mi->mi_blocks_per_group + 1; mi 30 fs/nilfs2/dat.c struct nilfs_mdt_info mi; mi 498 fs/nilfs2/dat.c lockdep_set_class(&di->mi.mi_sem, &dat_lock_key); mi 25 fs/nilfs2/ifile.c struct nilfs_mdt_info mi; mi 446 fs/nilfs2/mdt.c struct nilfs_mdt_info *mi; mi 448 fs/nilfs2/mdt.c mi = kzalloc(max(sizeof(*mi), objsz), GFP_NOFS); mi 449 fs/nilfs2/mdt.c if (!mi) mi 452 fs/nilfs2/mdt.c init_rwsem(&mi->mi_sem); mi 453 fs/nilfs2/mdt.c inode->i_private = mi; mi 492 fs/nilfs2/mdt.c struct nilfs_mdt_info *mi = NILFS_MDT(inode); mi 494 fs/nilfs2/mdt.c mi->mi_entry_size = entry_size; mi 495 fs/nilfs2/mdt.c mi->mi_entries_per_block = i_blocksize(inode) / entry_size; mi 496 fs/nilfs2/mdt.c mi->mi_first_entry_offset = DIV_ROUND_UP(header_size, entry_size); mi 507 fs/nilfs2/mdt.c struct nilfs_mdt_info *mi = NILFS_MDT(inode); mi 514 fs/nilfs2/mdt.c mi->mi_shadow = shadow; mi 524 fs/nilfs2/mdt.c struct nilfs_mdt_info *mi = NILFS_MDT(inode); mi 526 fs/nilfs2/mdt.c struct nilfs_shadow_map *shadow = mi->mi_shadow; mi 613 fs/nilfs2/mdt.c struct nilfs_mdt_info *mi = NILFS_MDT(inode); mi 615 fs/nilfs2/mdt.c struct nilfs_shadow_map *shadow = mi->mi_shadow; mi 617 fs/nilfs2/mdt.c down_write(&mi->mi_sem); mi 619 fs/nilfs2/mdt.c if (mi->mi_palloc_cache) mi 630 fs/nilfs2/mdt.c up_write(&mi->mi_sem); mi 639 fs/nilfs2/mdt.c struct nilfs_mdt_info *mi = NILFS_MDT(inode); mi 640 fs/nilfs2/mdt.c struct nilfs_shadow_map *shadow = mi->mi_shadow; mi 642 fs/nilfs2/mdt.c down_write(&mi->mi_sem); mi 646 fs/nilfs2/mdt.c up_write(&mi->mi_sem); mi 29 fs/nilfs2/sufile.c struct nilfs_mdt_info mi; mi 2784 fs/quota/dquot.c struct mem_dqinfo *mi; mi 2794 fs/quota/dquot.c mi = sb_dqopt(sb)->info + type; mi 2797 fs/quota/dquot.c if (mi->dqi_flags & DQF_SYS_FILE) mi 2799 fs/quota/dquot.c if (mi->dqi_flags & DQF_ROOT_SQUASH) mi 2803 fs/quota/dquot.c tstate->spc_timelimit = mi->dqi_bgrace; mi 2804 fs/quota/dquot.c tstate->ino_timelimit = mi->dqi_igrace; mi 2817 fs/quota/dquot.c struct mem_dqinfo *mi; mi 2825 fs/quota/dquot.c mi = sb_dqopt(sb)->info + type; mi 2828 fs/quota/dquot.c mi->dqi_format->qf_fmt_id != QFMT_VFS_OLD)) mi 2833 fs/quota/dquot.c mi->dqi_bgrace = ii->i_spc_timelimit; mi 2835 fs/quota/dquot.c mi->dqi_igrace = ii->i_ino_timelimit; mi 2838 fs/quota/dquot.c mi->dqi_flags |= DQF_ROOT_SQUASH; mi 2840 fs/quota/dquot.c mi->dqi_flags &= ~DQF_ROOT_SQUASH; mi 12 include/linux/kdev_t.h #define MKDEV(ma,mi) (((ma) << MINORBITS) | (mi)) mi 44 include/net/tc_act/tc_ife.h int (*get)(struct sk_buff *skb, struct tcf_meta_info *mi); mi 53 include/net/tc_act/tc_ife.h int ife_get_meta_u32(struct sk_buff *skb, struct tcf_meta_info *mi); mi 54 include/net/tc_act/tc_ife.h int ife_get_meta_u16(struct sk_buff *skb, struct tcf_meta_info *mi); mi 55 include/net/tc_act/tc_ife.h int ife_alloc_meta_u32(struct tcf_meta_info *mi, void *metaval, gfp_t gfp); mi 56 include/net/tc_act/tc_ife.h int ife_alloc_meta_u16(struct tcf_meta_info *mi, void *metaval, gfp_t gfp); mi 57 include/net/tc_act/tc_ife.h int ife_check_meta_u32(u32 metaval, struct tcf_meta_info *mi); mi 58 include/net/tc_act/tc_ife.h int ife_check_meta_u16(u16 metaval, struct tcf_meta_info *mi); mi 59 include/net/tc_act/tc_ife.h int ife_encode_meta_u32(u32 metaval, void *skbdata, struct tcf_meta_info *mi); mi 62 include/net/tc_act/tc_ife.h int ife_encode_meta_u16(u16 metaval, void *skbdata, struct tcf_meta_info *mi); mi 63 include/net/tc_act/tc_ife.h void ife_release_meta_gen(struct tcf_meta_info *mi); mi 12 include/uapi/linux/kdev_t.h #define MKDEV(ma,mi) ((ma)<<8 | (mi)) mi 156 include/uapi/rdma/rdma_user_rxe.h struct mminfo mi; mi 160 include/uapi/rdma/rdma_user_rxe.h struct mminfo mi; mi 169 include/uapi/rdma/rdma_user_rxe.h struct mminfo mi; mi 238 include/xen/interface/xen-mca.h struct mc_info *mi, uint16_t type) mi 244 include/xen/interface/xen-mca.h if (!ret || !mi) mi 247 include/xen/interface/xen-mca.h mic = x86_mcinfo_first(mi); mi 248 include/xen/interface/xen-mca.h for (i = 0; i < x86_mcinfo_nentries(mi); i++) { mi 351 lib/decompress_unlzma.c int mi = 1; mi 367 lib/decompress_unlzma.c prob_lit = prob + 0x100 + bit + mi; mi 368 lib/decompress_unlzma.c if (rc_get_bit(rc, prob_lit, &mi)) { mi 375 lib/decompress_unlzma.c } while (mi < 0x100); mi 377 lib/decompress_unlzma.c while (mi < 0x100) { mi 378 lib/decompress_unlzma.c uint16_t *prob_lit = prob + mi; mi 379 lib/decompress_unlzma.c rc_get_bit(rc, prob_lit, &mi); mi 388 lib/decompress_unlzma.c return write_byte(wr, mi); mi 498 lib/decompress_unlzma.c int i, mi; mi 515 lib/decompress_unlzma.c mi = 1; mi 517 lib/decompress_unlzma.c if (rc_get_bit(rc, prob + mi, &mi)) mi 552 lib/decompress_unlzma.c int i, mi; mi 591 lib/decompress_unlzma.c mi = 0; mi 594 lib/decompress_unlzma.c mi++; mi 598 lib/decompress_unlzma.c lp = mi; mi 700 mm/memcontrol.c struct mem_cgroup *mi; mi 707 mm/memcontrol.c for (mi = memcg; mi; mi = parent_mem_cgroup(mi)) mi 708 mm/memcontrol.c atomic_long_add(x, &mi->vmstats[idx]); mi 816 mm/memcontrol.c struct mem_cgroup *mi; mi 823 mm/memcontrol.c for (mi = memcg; mi; mi = parent_mem_cgroup(mi)) mi 824 mm/memcontrol.c atomic_long_add(x, &mi->vmevents[idx]); mi 2309 mm/memcontrol.c struct mem_cgroup *memcg, *mi; mi 2323 mm/memcontrol.c for (mi = memcg; mi; mi = parent_mem_cgroup(mi)) mi 2346 mm/memcontrol.c for (mi = memcg; mi; mi = parent_mem_cgroup(mi)) mi 3476 mm/memcontrol.c struct mem_cgroup *mi; mi 3483 mm/memcontrol.c for (mi = memcg; mi; mi = parent_mem_cgroup(mi)) mi 3485 mm/memcontrol.c atomic_long_add(stat[i], &mi->vmstats[i]); mi 3508 mm/memcontrol.c struct mem_cgroup *mi; mi 3519 mm/memcontrol.c for (mi = memcg; mi; mi = parent_mem_cgroup(mi)) mi 3521 mm/memcontrol.c atomic_long_add(events[i], &mi->vmevents[i]); mi 3919 mm/memcontrol.c struct mem_cgroup *mi; mi 3944 mm/memcontrol.c for (mi = memcg; mi; mi = parent_mem_cgroup(mi)) { mi 3945 mm/memcontrol.c memory = min(memory, mi->memory.max); mi 3946 mm/memcontrol.c memsw = min(memsw, mi->memsw.max); mi 63 net/mac80211/rc80211_minstrel.c rix_to_ndx(struct minstrel_sta_info *mi, int rix) mi 67 net/mac80211/rc80211_minstrel.c if (mi->r[i].rix == rix) mi 93 net/mac80211/rc80211_minstrel.c minstrel_sort_best_tp_rates(struct minstrel_sta_info *mi, int i, u8 *tp_list) mi 97 net/mac80211/rc80211_minstrel.c struct minstrel_rate_stats *cur_mrs = &mi->r[i].stats; mi 100 net/mac80211/rc80211_minstrel.c tmp_mrs = &mi->r[tp_list[j - 1]].stats; mi 101 net/mac80211/rc80211_minstrel.c if (minstrel_get_tp_avg(&mi->r[i], cur_mrs->prob_ewma) <= mi 102 net/mac80211/rc80211_minstrel.c minstrel_get_tp_avg(&mi->r[tp_list[j - 1]], tmp_mrs->prob_ewma)) mi 113 net/mac80211/rc80211_minstrel.c minstrel_set_rate(struct minstrel_sta_info *mi, struct ieee80211_sta_rates *ratetbl, mi 116 net/mac80211/rc80211_minstrel.c struct minstrel_rate *r = &mi->r[idx]; mi 125 net/mac80211/rc80211_minstrel.c minstrel_update_rates(struct minstrel_priv *mp, struct minstrel_sta_info *mi) mi 135 net/mac80211/rc80211_minstrel.c minstrel_set_rate(mi, ratetbl, i++, mi->max_tp_rate[0]); mi 139 net/mac80211/rc80211_minstrel.c minstrel_set_rate(mi, ratetbl, i++, mi->max_tp_rate[1]); mi 144 net/mac80211/rc80211_minstrel.c minstrel_set_rate(mi, ratetbl, i++, mi->max_prob_rate); mi 148 net/mac80211/rc80211_minstrel.c ratetbl->rate[i].idx = mi->lowest_rix; mi 153 net/mac80211/rc80211_minstrel.c rate_control_set_rates(mp->hw, mi->sta, ratetbl); mi 188 net/mac80211/rc80211_minstrel.c minstrel_update_stats(struct minstrel_priv *mp, struct minstrel_sta_info *mi) mi 197 net/mac80211/rc80211_minstrel.c for (i = 0; i < mi->n_rates; i++) { mi 198 net/mac80211/rc80211_minstrel.c struct minstrel_rate *mr = &mi->r[i]; mi 199 net/mac80211/rc80211_minstrel.c struct minstrel_rate_stats *mrs = &mi->r[i].stats; mi 200 net/mac80211/rc80211_minstrel.c struct minstrel_rate_stats *tmp_mrs = &mi->r[tmp_prob_rate].stats; mi 220 net/mac80211/rc80211_minstrel.c minstrel_sort_best_tp_rates(mi, i, tmp_tp_rate); mi 230 net/mac80211/rc80211_minstrel.c tmp_prob_tp = minstrel_get_tp_avg(&mi->r[tmp_prob_rate], mi 241 net/mac80211/rc80211_minstrel.c memcpy(mi->max_tp_rate, tmp_tp_rate, sizeof(mi->max_tp_rate)); mi 242 net/mac80211/rc80211_minstrel.c mi->max_prob_rate = tmp_prob_rate; mi 247 net/mac80211/rc80211_minstrel.c mi->max_tp_rate[0] = mp->fixed_rate_idx; mi 248 net/mac80211/rc80211_minstrel.c mi->max_tp_rate[1] = mp->fixed_rate_idx; mi 249 net/mac80211/rc80211_minstrel.c mi->max_prob_rate = mp->fixed_rate_idx; mi 254 net/mac80211/rc80211_minstrel.c mi->last_stats_update = jiffies; mi 256 net/mac80211/rc80211_minstrel.c minstrel_update_rates(mp, mi); mi 265 net/mac80211/rc80211_minstrel.c struct minstrel_sta_info *mi = priv_sta; mi 276 net/mac80211/rc80211_minstrel.c ndx = rix_to_ndx(mi, ar[i].idx); mi 280 net/mac80211/rc80211_minstrel.c mi->r[ndx].stats.attempts += ar[i].count; mi 283 net/mac80211/rc80211_minstrel.c mi->r[ndx].stats.success += success; mi 287 net/mac80211/rc80211_minstrel.c mi->sample_packets++; mi 289 net/mac80211/rc80211_minstrel.c if (mi->sample_deferred > 0) mi 290 net/mac80211/rc80211_minstrel.c mi->sample_deferred--; mi 292 net/mac80211/rc80211_minstrel.c if (time_after(jiffies, mi->last_stats_update + mi 294 net/mac80211/rc80211_minstrel.c minstrel_update_stats(mp, mi); mi 313 net/mac80211/rc80211_minstrel.c minstrel_get_next_sample(struct minstrel_sta_info *mi) mi 316 net/mac80211/rc80211_minstrel.c sample_ndx = SAMPLE_TBL(mi, mi->sample_row, mi->sample_column); mi 317 net/mac80211/rc80211_minstrel.c mi->sample_row++; mi 318 net/mac80211/rc80211_minstrel.c if ((int) mi->sample_row >= mi->n_rates) { mi 319 net/mac80211/rc80211_minstrel.c mi->sample_row = 0; mi 320 net/mac80211/rc80211_minstrel.c mi->sample_column++; mi 321 net/mac80211/rc80211_minstrel.c if (mi->sample_column >= SAMPLE_COLUMNS) mi 322 net/mac80211/rc80211_minstrel.c mi->sample_column = 0; mi 333 net/mac80211/rc80211_minstrel.c struct minstrel_sta_info *mi = priv_sta; mi 353 net/mac80211/rc80211_minstrel.c mi->total_packets++; mi 365 net/mac80211/rc80211_minstrel.c delta = (mi->total_packets * sampling_ratio / 100) - mi 366 net/mac80211/rc80211_minstrel.c (mi->sample_packets + mi->sample_deferred / 2); mi 369 net/mac80211/rc80211_minstrel.c prev_sample = mi->prev_sample; mi 370 net/mac80211/rc80211_minstrel.c mi->prev_sample = false; mi 374 net/mac80211/rc80211_minstrel.c if (mi->total_packets >= 10000) { mi 375 net/mac80211/rc80211_minstrel.c mi->sample_deferred = 0; mi 376 net/mac80211/rc80211_minstrel.c mi->sample_packets = 0; mi 377 net/mac80211/rc80211_minstrel.c mi->total_packets = 0; mi 378 net/mac80211/rc80211_minstrel.c } else if (delta > mi->n_rates * 2) { mi 388 net/mac80211/rc80211_minstrel.c mi->sample_packets += (delta - mi->n_rates * 2); mi 392 net/mac80211/rc80211_minstrel.c ndx = minstrel_get_next_sample(mi); mi 393 net/mac80211/rc80211_minstrel.c msr = &mi->r[ndx]; mi 394 net/mac80211/rc80211_minstrel.c mr = &mi->r[mi->max_tp_rate[0]]; mi 411 net/mac80211/rc80211_minstrel.c mi->sample_deferred++; mi 416 net/mac80211/rc80211_minstrel.c mi->sample_packets++; mi 425 net/mac80211/rc80211_minstrel.c (mi->r[ndx].stats.prob_ewma > MINSTREL_FRAC(95, 100))) mi 428 net/mac80211/rc80211_minstrel.c mi->prev_sample = true; mi 430 net/mac80211/rc80211_minstrel.c rate->idx = mi->r[ndx].rix; mi 431 net/mac80211/rc80211_minstrel.c rate->count = minstrel_get_retry_count(&mi->r[ndx], info); mi 453 net/mac80211/rc80211_minstrel.c init_sample_table(struct minstrel_sta_info *mi) mi 458 net/mac80211/rc80211_minstrel.c mi->sample_column = 0; mi 459 net/mac80211/rc80211_minstrel.c mi->sample_row = 0; mi 460 net/mac80211/rc80211_minstrel.c memset(mi->sample_table, 0xff, SAMPLE_COLUMNS * mi->n_rates); mi 464 net/mac80211/rc80211_minstrel.c for (i = 0; i < mi->n_rates; i++) { mi 465 net/mac80211/rc80211_minstrel.c new_idx = (i + rnd[i & 7]) % mi->n_rates; mi 466 net/mac80211/rc80211_minstrel.c while (SAMPLE_TBL(mi, new_idx, col) != 0xff) mi 467 net/mac80211/rc80211_minstrel.c new_idx = (new_idx + 1) % mi->n_rates; mi 469 net/mac80211/rc80211_minstrel.c SAMPLE_TBL(mi, new_idx, col) = i; mi 479 net/mac80211/rc80211_minstrel.c struct minstrel_sta_info *mi = priv_sta; mi 486 net/mac80211/rc80211_minstrel.c mi->sta = sta; mi 487 net/mac80211/rc80211_minstrel.c mi->lowest_rix = rate_lowest_index(sband, sta); mi 488 net/mac80211/rc80211_minstrel.c ctl_rate = &sband->bitrates[mi->lowest_rix]; mi 489 net/mac80211/rc80211_minstrel.c mi->sp_ack_dur = ieee80211_frame_duration(sband->band, 10, mi 495 net/mac80211/rc80211_minstrel.c memset(mi->max_tp_rate, 0, sizeof(mi->max_tp_rate)); mi 496 net/mac80211/rc80211_minstrel.c mi->max_prob_rate = 0; mi 499 net/mac80211/rc80211_minstrel.c struct minstrel_rate *mr = &mi->r[n]; mi 500 net/mac80211/rc80211_minstrel.c struct minstrel_rate_stats *mrs = &mi->r[n].stats; mi 528 net/mac80211/rc80211_minstrel.c tx_time = mr->perfect_tx_time + mi->sp_ack_dur; mi 538 net/mac80211/rc80211_minstrel.c tx_time_cts += tx_time_single + mi->sp_ack_dur; mi 539 net/mac80211/rc80211_minstrel.c tx_time_rtscts += tx_time_single + 2 * mi->sp_ack_dur; mi 554 net/mac80211/rc80211_minstrel.c struct minstrel_rate *mr = &mi->r[i]; mi 558 net/mac80211/rc80211_minstrel.c mi->n_rates = n; mi 559 net/mac80211/rc80211_minstrel.c mi->last_stats_update = jiffies; mi 561 net/mac80211/rc80211_minstrel.c init_sample_table(mi); mi 562 net/mac80211/rc80211_minstrel.c minstrel_update_rates(mp, mi); mi 567 net/mac80211/rc80211_minstrel.c struct minstrel_sta_info *mi = priv_sta; mi 569 net/mac80211/rc80211_minstrel.c int idx = mi->max_tp_rate[0]; mi 575 net/mac80211/rc80211_minstrel.c tmp_mrs = &mi->r[idx].stats; mi 576 net/mac80211/rc80211_minstrel.c tmp_cur_tp = minstrel_get_tp_avg(&mi->r[idx], tmp_mrs->prob_ewma) * 10; mi 60 net/mac80211/rc80211_minstrel_debugfs.c struct minstrel_sta_info *mi = inode->i_private; mi 77 net/mac80211/rc80211_minstrel_debugfs.c for (i = 0; i < mi->n_rates; i++) { mi 78 net/mac80211/rc80211_minstrel_debugfs.c struct minstrel_rate *mr = &mi->r[i]; mi 79 net/mac80211/rc80211_minstrel_debugfs.c struct minstrel_rate_stats *mrs = &mi->r[i].stats; mi 81 net/mac80211/rc80211_minstrel_debugfs.c *(p++) = (i == mi->max_tp_rate[0]) ? 'A' : ' '; mi 82 net/mac80211/rc80211_minstrel_debugfs.c *(p++) = (i == mi->max_tp_rate[1]) ? 'B' : ' '; mi 83 net/mac80211/rc80211_minstrel_debugfs.c *(p++) = (i == mi->max_tp_rate[2]) ? 'C' : ' '; mi 84 net/mac80211/rc80211_minstrel_debugfs.c *(p++) = (i == mi->max_tp_rate[3]) ? 'D' : ' '; mi 85 net/mac80211/rc80211_minstrel_debugfs.c *(p++) = (i == mi->max_prob_rate) ? 'P' : ' '; mi 110 net/mac80211/rc80211_minstrel_debugfs.c mi->total_packets - mi->sample_packets, mi 111 net/mac80211/rc80211_minstrel_debugfs.c mi->sample_packets); mi 122 net/mac80211/rc80211_minstrel_debugfs.c struct minstrel_sta_info *mi = inode->i_private; mi 134 net/mac80211/rc80211_minstrel_debugfs.c for (i = 0; i < mi->n_rates; i++) { mi 135 net/mac80211/rc80211_minstrel_debugfs.c struct minstrel_rate *mr = &mi->r[i]; mi 136 net/mac80211/rc80211_minstrel_debugfs.c struct minstrel_rate_stats *mrs = &mi->r[i].stats; mi 138 net/mac80211/rc80211_minstrel_debugfs.c p += sprintf(p, "%s" ,((i == mi->max_tp_rate[0]) ? "A" : "")); mi 139 net/mac80211/rc80211_minstrel_debugfs.c p += sprintf(p, "%s" ,((i == mi->max_tp_rate[1]) ? "B" : "")); mi 140 net/mac80211/rc80211_minstrel_debugfs.c p += sprintf(p, "%s" ,((i == mi->max_tp_rate[2]) ? "C" : "")); mi 141 net/mac80211/rc80211_minstrel_debugfs.c p += sprintf(p, "%s" ,((i == mi->max_tp_rate[3]) ? "D" : "")); mi 142 net/mac80211/rc80211_minstrel_debugfs.c p += sprintf(p, "%s" ,((i == mi->max_prob_rate) ? "P" : "")); mi 163 net/mac80211/rc80211_minstrel_debugfs.c mi->total_packets - mi->sample_packets, mi 164 net/mac80211/rc80211_minstrel_debugfs.c mi->sample_packets); mi 240 net/mac80211/rc80211_minstrel_ht.c minstrel_ht_update_rates(struct minstrel_priv *mp, struct minstrel_ht_sta *mi); mi 302 net/mac80211/rc80211_minstrel_ht.c minstrel_ht_get_stats(struct minstrel_priv *mp, struct minstrel_ht_sta *mi, mi 321 net/mac80211/rc80211_minstrel_ht.c if ((mi->supported[group] & BIT(idx + 4)) && mi 325 net/mac80211/rc80211_minstrel_ht.c return &mi->groups[group].rates[idx]; mi 329 net/mac80211/rc80211_minstrel_ht.c minstrel_get_ratestats(struct minstrel_ht_sta *mi, int index) mi 331 net/mac80211/rc80211_minstrel_ht.c return &mi->groups[index / MCS_GROUP_RATES].rates[index % MCS_GROUP_RATES]; mi 335 net/mac80211/rc80211_minstrel_ht.c minstrel_ht_avg_ampdu_len(struct minstrel_ht_sta *mi) mi 337 net/mac80211/rc80211_minstrel_ht.c if (!mi->avg_ampdu_len) mi 340 net/mac80211/rc80211_minstrel_ht.c return MINSTREL_TRUNC(mi->avg_ampdu_len); mi 348 net/mac80211/rc80211_minstrel_ht.c minstrel_ht_get_tp_avg(struct minstrel_ht_sta *mi, int group, int rate, mi 358 net/mac80211/rc80211_minstrel_ht.c nsecs = 1000 * mi->overhead / minstrel_ht_avg_ampdu_len(mi); mi 383 net/mac80211/rc80211_minstrel_ht.c minstrel_ht_sort_best_tp_rates(struct minstrel_ht_sta *mi, u16 index, mi 392 net/mac80211/rc80211_minstrel_ht.c cur_prob = mi->groups[cur_group].rates[cur_idx].prob_ewma; mi 393 net/mac80211/rc80211_minstrel_ht.c cur_tp_avg = minstrel_ht_get_tp_avg(mi, cur_group, cur_idx, cur_prob); mi 398 net/mac80211/rc80211_minstrel_ht.c tmp_prob = mi->groups[tmp_group].rates[tmp_idx].prob_ewma; mi 399 net/mac80211/rc80211_minstrel_ht.c tmp_tp_avg = minstrel_ht_get_tp_avg(mi, tmp_group, tmp_idx, mi 419 net/mac80211/rc80211_minstrel_ht.c minstrel_ht_set_best_prob_rate(struct minstrel_ht_sta *mi, u16 index) mi 430 net/mac80211/rc80211_minstrel_ht.c mg = &mi->groups[index / MCS_GROUP_RATES]; mi 433 net/mac80211/rc80211_minstrel_ht.c tmp_group = mi->max_prob_rate / MCS_GROUP_RATES; mi 434 net/mac80211/rc80211_minstrel_ht.c tmp_idx = mi->max_prob_rate % MCS_GROUP_RATES; mi 435 net/mac80211/rc80211_minstrel_ht.c tmp_prob = mi->groups[tmp_group].rates[tmp_idx].prob_ewma; mi 436 net/mac80211/rc80211_minstrel_ht.c tmp_tp_avg = minstrel_ht_get_tp_avg(mi, tmp_group, tmp_idx, tmp_prob); mi 440 net/mac80211/rc80211_minstrel_ht.c max_tp_group = mi->max_tp_rate[0] / MCS_GROUP_RATES; mi 447 net/mac80211/rc80211_minstrel_ht.c max_gpr_prob = mi->groups[max_gpr_group].rates[max_gpr_idx].prob_ewma; mi 450 net/mac80211/rc80211_minstrel_ht.c cur_tp_avg = minstrel_ht_get_tp_avg(mi, cur_group, cur_idx, mi 453 net/mac80211/rc80211_minstrel_ht.c mi->max_prob_rate = index; mi 455 net/mac80211/rc80211_minstrel_ht.c max_gpr_tp_avg = minstrel_ht_get_tp_avg(mi, max_gpr_group, mi 462 net/mac80211/rc80211_minstrel_ht.c mi->max_prob_rate = index; mi 476 net/mac80211/rc80211_minstrel_ht.c minstrel_ht_assign_best_tp_rates(struct minstrel_ht_sta *mi, mi 485 net/mac80211/rc80211_minstrel_ht.c tmp_prob = mi->groups[tmp_group].rates[tmp_idx].prob_ewma; mi 486 net/mac80211/rc80211_minstrel_ht.c tmp_cck_tp = minstrel_ht_get_tp_avg(mi, tmp_group, tmp_idx, tmp_prob); mi 490 net/mac80211/rc80211_minstrel_ht.c tmp_prob = mi->groups[tmp_group].rates[tmp_idx].prob_ewma; mi 491 net/mac80211/rc80211_minstrel_ht.c tmp_mcs_tp = minstrel_ht_get_tp_avg(mi, tmp_group, tmp_idx, tmp_prob); mi 495 net/mac80211/rc80211_minstrel_ht.c minstrel_ht_sort_best_tp_rates(mi, tmp_cck_tp_rate[i], mi 507 net/mac80211/rc80211_minstrel_ht.c minstrel_ht_prob_rate_reduce_streams(struct minstrel_ht_sta *mi) mi 513 net/mac80211/rc80211_minstrel_ht.c tmp_max_streams = minstrel_mcs_groups[mi->max_tp_rate[0] / mi 516 net/mac80211/rc80211_minstrel_ht.c mg = &mi->groups[group]; mi 517 net/mac80211/rc80211_minstrel_ht.c if (!mi->supported[group] || group == MINSTREL_CCK_GROUP) mi 521 net/mac80211/rc80211_minstrel_ht.c tmp_prob = mi->groups[group].rates[tmp_idx].prob_ewma; mi 523 net/mac80211/rc80211_minstrel_ht.c if (tmp_tp < minstrel_ht_get_tp_avg(mi, group, tmp_idx, tmp_prob) && mi 525 net/mac80211/rc80211_minstrel_ht.c mi->max_prob_rate = mg->max_group_prob_rate; mi 526 net/mac80211/rc80211_minstrel_ht.c tmp_tp = minstrel_ht_get_tp_avg(mi, group, mi 542 net/mac80211/rc80211_minstrel_ht.c minstrel_ht_probe_group(struct minstrel_ht_sta *mi, const struct mcs_group *tp_group, mi 558 net/mac80211/rc80211_minstrel_ht.c minstrel_ht_find_probe_rates(struct minstrel_ht_sta *mi, u16 *rates, int *n_rates, mi 565 net/mac80211/rc80211_minstrel_ht.c tp_group = &minstrel_mcs_groups[mi->max_tp_rate[0] / MCS_GROUP_RATES]; mi 566 net/mac80211/rc80211_minstrel_ht.c tp_idx = mi->max_tp_rate[0] % MCS_GROUP_RATES; mi 568 net/mac80211/rc80211_minstrel_ht.c max_dur = minstrel_get_duration(mi->max_tp_rate[0]); mi 573 net/mac80211/rc80211_minstrel_ht.c u16 supported = mi->supported[g]; mi 579 net/mac80211/rc80211_minstrel_ht.c if (!minstrel_ht_probe_group(mi, tp_group, tp_idx, group)) mi 592 net/mac80211/rc80211_minstrel_ht.c if (idx == mi->max_tp_rate[0]) mi 603 net/mac80211/rc80211_minstrel_ht.c struct minstrel_ht_sta *mi) mi 625 net/mac80211/rc80211_minstrel_ht.c mrs = minstrel_get_ratestats(mi, mi->max_tp_rate[0]); mi 627 net/mac80211/rc80211_minstrel_ht.c minstrel_ht_find_probe_rates(mi, rates, &n_rates, faster_rate); mi 629 net/mac80211/rc80211_minstrel_ht.c minstrel_ht_find_probe_rates(mi, rates, &n_rates, false); mi 633 net/mac80211/rc80211_minstrel_ht.c int g_idx = mi->max_tp_rate[0] / MCS_GROUP_RATES; mi 634 net/mac80211/rc80211_minstrel_ht.c u16 supported = mi->supported[g_idx]; mi 636 net/mac80211/rc80211_minstrel_ht.c supported >>= mi->max_tp_rate[0] % MCS_GROUP_RATES; mi 641 net/mac80211/rc80211_minstrel_ht.c probe_rate = mi->max_tp_rate[0] + i; mi 656 net/mac80211/rc80211_minstrel_ht.c mi->sample_rate = probe_rate; mi 657 net/mac80211/rc80211_minstrel_ht.c mi->sample_mode = MINSTREL_SAMPLE_ACTIVE; mi 670 net/mac80211/rc80211_minstrel_ht.c minstrel_ht_update_stats(struct minstrel_priv *mp, struct minstrel_ht_sta *mi, mi 679 net/mac80211/rc80211_minstrel_ht.c mi->sample_mode = MINSTREL_SAMPLE_IDLE; mi 682 net/mac80211/rc80211_minstrel_ht.c mi->total_packets_cur = mi->total_packets - mi 683 net/mac80211/rc80211_minstrel_ht.c mi->total_packets_last; mi 684 net/mac80211/rc80211_minstrel_ht.c mi->total_packets_last = mi->total_packets; mi 688 net/mac80211/rc80211_minstrel_ht.c if (mi->total_packets_cur < SAMPLE_SWITCH_THR && mp->sample_switch != 1) mi 691 net/mac80211/rc80211_minstrel_ht.c if (mi->ampdu_packets > 0) { mi 693 net/mac80211/rc80211_minstrel_ht.c mi->avg_ampdu_len = minstrel_ewma(mi->avg_ampdu_len, mi 694 net/mac80211/rc80211_minstrel_ht.c MINSTREL_FRAC(mi->ampdu_len, mi->ampdu_packets), mi 697 net/mac80211/rc80211_minstrel_ht.c mi->avg_ampdu_len = 0; mi 698 net/mac80211/rc80211_minstrel_ht.c mi->ampdu_len = 0; mi 699 net/mac80211/rc80211_minstrel_ht.c mi->ampdu_packets = 0; mi 702 net/mac80211/rc80211_minstrel_ht.c mi->sample_slow = 0; mi 703 net/mac80211/rc80211_minstrel_ht.c mi->sample_count = 0; mi 707 net/mac80211/rc80211_minstrel_ht.c if (mi->supported[MINSTREL_CCK_GROUP]) mi 711 net/mac80211/rc80211_minstrel_ht.c if (mi->supported[MINSTREL_VHT_GROUP_0]) mi 722 net/mac80211/rc80211_minstrel_ht.c mg = &mi->groups[group]; mi 723 net/mac80211/rc80211_minstrel_ht.c if (!mi->supported[group]) mi 726 net/mac80211/rc80211_minstrel_ht.c mi->sample_count++; mi 733 net/mac80211/rc80211_minstrel_ht.c if (!(mi->supported[group] & BIT(i))) mi 743 net/mac80211/rc80211_minstrel_ht.c if (minstrel_ht_get_tp_avg(mi, group, i, cur_prob) == 0) mi 748 net/mac80211/rc80211_minstrel_ht.c minstrel_ht_sort_best_tp_rates(mi, index, mi 751 net/mac80211/rc80211_minstrel_ht.c minstrel_ht_sort_best_tp_rates(mi, index, mi 756 net/mac80211/rc80211_minstrel_ht.c minstrel_ht_sort_best_tp_rates(mi, index, mi 760 net/mac80211/rc80211_minstrel_ht.c minstrel_ht_set_best_prob_rate(mi, index); mi 768 net/mac80211/rc80211_minstrel_ht.c minstrel_ht_assign_best_tp_rates(mi, tmp_mcs_tp_rate, tmp_cck_tp_rate); mi 769 net/mac80211/rc80211_minstrel_ht.c memcpy(mi->max_tp_rate, tmp_mcs_tp_rate, sizeof(mi->max_tp_rate)); mi 772 net/mac80211/rc80211_minstrel_ht.c minstrel_ht_prob_rate_reduce_streams(mi); mi 775 net/mac80211/rc80211_minstrel_ht.c mi->sample_count *= 8; mi 778 net/mac80211/rc80211_minstrel_ht.c minstrel_ht_rate_sample_switch(mp, mi); mi 784 net/mac80211/rc80211_minstrel_ht.c mi->max_tp_rate[i] = mp->fixed_rate_idx; mi 785 net/mac80211/rc80211_minstrel_ht.c mi->max_prob_rate = mp->fixed_rate_idx; mi 786 net/mac80211/rc80211_minstrel_ht.c mi->sample_mode = MINSTREL_SAMPLE_IDLE; mi 791 net/mac80211/rc80211_minstrel_ht.c mi->last_stats_update = jiffies; mi 814 net/mac80211/rc80211_minstrel_ht.c minstrel_set_next_sample_idx(struct minstrel_ht_sta *mi) mi 819 net/mac80211/rc80211_minstrel_ht.c mi->sample_group++; mi 820 net/mac80211/rc80211_minstrel_ht.c mi->sample_group %= ARRAY_SIZE(minstrel_mcs_groups); mi 821 net/mac80211/rc80211_minstrel_ht.c mg = &mi->groups[mi->sample_group]; mi 823 net/mac80211/rc80211_minstrel_ht.c if (!mi->supported[mi->sample_group]) mi 836 net/mac80211/rc80211_minstrel_ht.c minstrel_downgrade_rate(struct minstrel_ht_sta *mi, u16 *idx, bool primary) mi 844 net/mac80211/rc80211_minstrel_ht.c if (!mi->supported[group]) mi 852 net/mac80211/rc80211_minstrel_ht.c *idx = mi->groups[group].max_group_tp_rate[0]; mi 854 net/mac80211/rc80211_minstrel_ht.c *idx = mi->groups[group].max_group_tp_rate[1]; mi 888 net/mac80211/rc80211_minstrel_ht.c struct minstrel_ht_sta *mi = &msp->ht; mi 912 net/mac80211/rc80211_minstrel_ht.c mi->ampdu_packets++; mi 913 net/mac80211/rc80211_minstrel_ht.c mi->ampdu_len += info->status.ampdu_len; mi 915 net/mac80211/rc80211_minstrel_ht.c if (!mi->sample_wait && !mi->sample_tries && mi->sample_count > 0) { mi 916 net/mac80211/rc80211_minstrel_ht.c int avg_ampdu_len = minstrel_ht_avg_ampdu_len(mi); mi 918 net/mac80211/rc80211_minstrel_ht.c mi->sample_wait = 16 + 2 * avg_ampdu_len; mi 919 net/mac80211/rc80211_minstrel_ht.c mi->sample_tries = 1; mi 920 net/mac80211/rc80211_minstrel_ht.c mi->sample_count--; mi 924 net/mac80211/rc80211_minstrel_ht.c mi->sample_packets += info->status.ampdu_len; mi 926 net/mac80211/rc80211_minstrel_ht.c if (mi->sample_mode != MINSTREL_SAMPLE_IDLE) mi 927 net/mac80211/rc80211_minstrel_ht.c rate_sample = minstrel_get_ratestats(mi, mi->sample_rate); mi 934 net/mac80211/rc80211_minstrel_ht.c rate = minstrel_ht_get_stats(mp, mi, &ar[i]); mi 944 net/mac80211/rc80211_minstrel_ht.c switch (mi->sample_mode) { mi 952 net/mac80211/rc80211_minstrel_ht.c mi->sample_mode = MINSTREL_SAMPLE_PENDING; mi 961 net/mac80211/rc80211_minstrel_ht.c minstrel_ht_update_stats(mp, mi, false); mi 971 net/mac80211/rc80211_minstrel_ht.c rate = minstrel_get_ratestats(mi, mi->max_tp_rate[0]); mi 975 net/mac80211/rc80211_minstrel_ht.c minstrel_downgrade_rate(mi, &mi->max_tp_rate[0], true); mi 979 net/mac80211/rc80211_minstrel_ht.c rate2 = minstrel_get_ratestats(mi, mi->max_tp_rate[1]); mi 983 net/mac80211/rc80211_minstrel_ht.c minstrel_downgrade_rate(mi, &mi->max_tp_rate[1], false); mi 988 net/mac80211/rc80211_minstrel_ht.c if (time_after(jiffies, mi->last_stats_update + mi 991 net/mac80211/rc80211_minstrel_ht.c minstrel_ht_update_stats(mp, mi, true); mi 995 net/mac80211/rc80211_minstrel_ht.c minstrel_ht_update_rates(mp, mi); mi 999 net/mac80211/rc80211_minstrel_ht.c minstrel_calc_retransmit(struct minstrel_priv *mp, struct minstrel_ht_sta *mi, mi 1007 net/mac80211/rc80211_minstrel_ht.c unsigned int ampdu_len = minstrel_ht_avg_ampdu_len(mi); mi 1010 net/mac80211/rc80211_minstrel_ht.c mrs = minstrel_get_ratestats(mi, index); mi 1030 net/mac80211/rc80211_minstrel_ht.c overhead = mi->overhead; mi 1031 net/mac80211/rc80211_minstrel_ht.c overhead_rtscts = mi->overhead_rtscts; mi 1056 net/mac80211/rc80211_minstrel_ht.c minstrel_ht_set_rate(struct minstrel_priv *mp, struct minstrel_ht_sta *mi, mi 1064 net/mac80211/rc80211_minstrel_ht.c mrs = minstrel_get_ratestats(mi, index); mi 1066 net/mac80211/rc80211_minstrel_ht.c minstrel_calc_retransmit(mp, mi, index); mi 1091 net/mac80211/rc80211_minstrel_ht.c (mi->sta->smps_mode == IEEE80211_SMPS_DYNAMIC && mi 1102 net/mac80211/rc80211_minstrel_ht.c minstrel_ht_get_prob_ewma(struct minstrel_ht_sta *mi, int rate) mi 1106 net/mac80211/rc80211_minstrel_ht.c return mi->groups[group].rates[rate].prob_ewma; mi 1110 net/mac80211/rc80211_minstrel_ht.c minstrel_ht_get_max_amsdu_len(struct minstrel_ht_sta *mi) mi 1112 net/mac80211/rc80211_minstrel_ht.c int group = mi->max_prob_rate / MCS_GROUP_RATES; mi 1114 net/mac80211/rc80211_minstrel_ht.c int rate = mi->max_prob_rate % MCS_GROUP_RATES; mi 1118 net/mac80211/rc80211_minstrel_ht.c if (mi->groups[group].rates[rate].prob_ewma < MINSTREL_FRAC(50, 100)) mi 1141 net/mac80211/rc80211_minstrel_ht.c (minstrel_ht_get_prob_ewma(mi, mi->max_tp_rate[0]) < mi 1151 net/mac80211/rc80211_minstrel_ht.c if (!mi->sta->vht_cap.vht_supported) mi 1159 net/mac80211/rc80211_minstrel_ht.c minstrel_ht_update_rates(struct minstrel_priv *mp, struct minstrel_ht_sta *mi) mi 1162 net/mac80211/rc80211_minstrel_ht.c u16 first_rate = mi->max_tp_rate[0]; mi 1165 net/mac80211/rc80211_minstrel_ht.c if (mi->sample_mode == MINSTREL_SAMPLE_ACTIVE) mi 1166 net/mac80211/rc80211_minstrel_ht.c first_rate = mi->sample_rate; mi 1173 net/mac80211/rc80211_minstrel_ht.c minstrel_ht_set_rate(mp, mi, rates, i++, first_rate); mi 1177 net/mac80211/rc80211_minstrel_ht.c minstrel_ht_set_rate(mp, mi, rates, i++, mi->max_tp_rate[1]); mi 1181 net/mac80211/rc80211_minstrel_ht.c minstrel_ht_set_rate(mp, mi, rates, i++, mi->max_prob_rate); mi 1184 net/mac80211/rc80211_minstrel_ht.c mi->sta->max_rc_amsdu_len = minstrel_ht_get_max_amsdu_len(mi); mi 1186 net/mac80211/rc80211_minstrel_ht.c rate_control_set_rates(mp->hw, mi->sta, rates); mi 1190 net/mac80211/rc80211_minstrel_ht.c minstrel_get_sample_rate(struct minstrel_priv *mp, struct minstrel_ht_sta *mi) mi 1199 net/mac80211/rc80211_minstrel_ht.c (mi->total_packets_cur >= SAMPLE_SWITCH_THR || mi 1203 net/mac80211/rc80211_minstrel_ht.c if (mi->sample_wait > 0) { mi 1204 net/mac80211/rc80211_minstrel_ht.c mi->sample_wait--; mi 1208 net/mac80211/rc80211_minstrel_ht.c if (!mi->sample_tries) mi 1211 net/mac80211/rc80211_minstrel_ht.c sample_group = mi->sample_group; mi 1212 net/mac80211/rc80211_minstrel_ht.c mg = &mi->groups[sample_group]; mi 1214 net/mac80211/rc80211_minstrel_ht.c minstrel_set_next_sample_idx(mi); mi 1216 net/mac80211/rc80211_minstrel_ht.c if (!(mi->supported[sample_group] & BIT(sample_idx))) mi 1223 net/mac80211/rc80211_minstrel_ht.c if (minstrel_get_duration(mi->max_tp_rate[0]) > mi 1224 net/mac80211/rc80211_minstrel_ht.c minstrel_get_duration(mi->max_tp_rate[1])) { mi 1225 net/mac80211/rc80211_minstrel_ht.c tp_rate1 = mi->max_tp_rate[1]; mi 1226 net/mac80211/rc80211_minstrel_ht.c tp_rate2 = mi->max_tp_rate[0]; mi 1228 net/mac80211/rc80211_minstrel_ht.c tp_rate1 = mi->max_tp_rate[0]; mi 1229 net/mac80211/rc80211_minstrel_ht.c tp_rate2 = mi->max_tp_rate[1]; mi 1237 net/mac80211/rc80211_minstrel_ht.c if (sample_idx == mi->max_tp_rate[0] || sample_idx == mi->max_prob_rate) mi 1247 net/mac80211/rc80211_minstrel_ht.c minstrel_get_duration(mi->max_prob_rate) * 3 < sample_dur) mi 1275 net/mac80211/rc80211_minstrel_ht.c sample_dur >= minstrel_get_duration(mi->max_prob_rate))) { mi 1279 net/mac80211/rc80211_minstrel_ht.c if (mi->sample_slow++ > 2) mi 1282 net/mac80211/rc80211_minstrel_ht.c mi->sample_tries--; mi 1295 net/mac80211/rc80211_minstrel_ht.c struct minstrel_ht_sta *mi = &msp->ht; mi 1303 net/mac80211/rc80211_minstrel_ht.c mi->max_prob_rate / MCS_GROUP_RATES != MINSTREL_CCK_GROUP) mi 1306 net/mac80211/rc80211_minstrel_ht.c info->flags |= mi->tx_flags; mi 1318 net/mac80211/rc80211_minstrel_ht.c sample_idx = minstrel_get_sample_rate(mp, mi); mi 1320 net/mac80211/rc80211_minstrel_ht.c mi->total_packets++; mi 1323 net/mac80211/rc80211_minstrel_ht.c if (mi->total_packets == ~0) { mi 1324 net/mac80211/rc80211_minstrel_ht.c mi->total_packets = 0; mi 1325 net/mac80211/rc80211_minstrel_ht.c mi->sample_packets = 0; mi 1355 net/mac80211/rc80211_minstrel_ht.c minstrel_ht_update_cck(struct minstrel_priv *mp, struct minstrel_ht_sta *mi, mi 1367 net/mac80211/rc80211_minstrel_ht.c mi->cck_supported = 0; mi 1368 net/mac80211/rc80211_minstrel_ht.c mi->cck_supported_short = 0; mi 1373 net/mac80211/rc80211_minstrel_ht.c mi->cck_supported |= BIT(i); mi 1375 net/mac80211/rc80211_minstrel_ht.c mi->cck_supported_short |= BIT(i); mi 1378 net/mac80211/rc80211_minstrel_ht.c mi->supported[MINSTREL_CCK_GROUP] = mi->cck_supported; mi 1388 net/mac80211/rc80211_minstrel_ht.c struct minstrel_ht_sta *mi = &msp->ht; mi 1411 net/mac80211/rc80211_minstrel_ht.c memset(mi, 0, sizeof(*mi)); mi 1413 net/mac80211/rc80211_minstrel_ht.c mi->sta = sta; mi 1414 net/mac80211/rc80211_minstrel_ht.c mi->last_stats_update = jiffies; mi 1417 net/mac80211/rc80211_minstrel_ht.c mi->overhead = ieee80211_frame_duration(sband->band, 0, 60, 1, 1, 0); mi 1418 net/mac80211/rc80211_minstrel_ht.c mi->overhead += ack_dur; mi 1419 net/mac80211/rc80211_minstrel_ht.c mi->overhead_rtscts = mi->overhead + 2 * ack_dur; mi 1421 net/mac80211/rc80211_minstrel_ht.c mi->avg_ampdu_len = MINSTREL_FRAC(1, 1); mi 1425 net/mac80211/rc80211_minstrel_ht.c mi->sample_count = 16; mi 1426 net/mac80211/rc80211_minstrel_ht.c mi->sample_wait = 0; mi 1428 net/mac80211/rc80211_minstrel_ht.c mi->sample_count = 8; mi 1429 net/mac80211/rc80211_minstrel_ht.c mi->sample_wait = 8; mi 1431 net/mac80211/rc80211_minstrel_ht.c mi->sample_tries = 4; mi 1445 net/mac80211/rc80211_minstrel_ht.c mi->tx_flags |= stbc << IEEE80211_TX_CTL_STBC_SHIFT; mi 1447 net/mac80211/rc80211_minstrel_ht.c mi->tx_flags |= IEEE80211_TX_CTL_LDPC; mi 1449 net/mac80211/rc80211_minstrel_ht.c for (i = 0; i < ARRAY_SIZE(mi->groups); i++) { mi 1453 net/mac80211/rc80211_minstrel_ht.c mi->supported[i] = 0; mi 1455 net/mac80211/rc80211_minstrel_ht.c minstrel_ht_update_cck(mp, mi, sband, sta); mi 1484 net/mac80211/rc80211_minstrel_ht.c mi->supported[i] = mcs->rx_mask[nss - 1]; mi 1485 net/mac80211/rc80211_minstrel_ht.c if (mi->supported[i]) mi 1511 net/mac80211/rc80211_minstrel_ht.c mi->supported[i] = minstrel_get_valid_vht_rates(bw, nss, mi 1514 net/mac80211/rc80211_minstrel_ht.c if (mi->supported[i]) mi 1521 net/mac80211/rc80211_minstrel_ht.c mi->supported[MINSTREL_CCK_GROUP] |= mi->cck_supported_short << 4; mi 1524 net/mac80211/rc80211_minstrel_ht.c minstrel_ht_update_stats(mp, mi, true); mi 1525 net/mac80211/rc80211_minstrel_ht.c minstrel_ht_update_rates(mp, mi); mi 1699 net/mac80211/rc80211_minstrel_ht.c struct minstrel_ht_sta *mi = &msp->ht; mi 1705 net/mac80211/rc80211_minstrel_ht.c i = mi->max_tp_rate[0] / MCS_GROUP_RATES; mi 1706 net/mac80211/rc80211_minstrel_ht.c j = mi->max_tp_rate[0] % MCS_GROUP_RATES; mi 1707 net/mac80211/rc80211_minstrel_ht.c prob = mi->groups[i].rates[j].prob_ewma; mi 1710 net/mac80211/rc80211_minstrel_ht.c tp_avg = minstrel_ht_get_tp_avg(mi, i, j, prob) * 10; mi 121 net/mac80211/rc80211_minstrel_ht.h int minstrel_ht_get_tp_avg(struct minstrel_ht_sta *mi, int group, int rate, mi 32 net/mac80211/rc80211_minstrel_ht_debugfs.c minstrel_ht_stats_dump(struct minstrel_ht_sta *mi, int i, char *p) mi 40 net/mac80211/rc80211_minstrel_ht_debugfs.c if (!mi->supported[i]) mi 54 net/mac80211/rc80211_minstrel_ht_debugfs.c struct minstrel_rate_stats *mrs = &mi->groups[i].rates[j]; mi 59 net/mac80211/rc80211_minstrel_ht_debugfs.c if (!(mi->supported[i] & BIT(j))) mi 76 net/mac80211/rc80211_minstrel_ht_debugfs.c *(p++) = (idx == mi->max_tp_rate[0]) ? 'A' : ' '; mi 77 net/mac80211/rc80211_minstrel_ht_debugfs.c *(p++) = (idx == mi->max_tp_rate[1]) ? 'B' : ' '; mi 78 net/mac80211/rc80211_minstrel_ht_debugfs.c *(p++) = (idx == mi->max_tp_rate[2]) ? 'C' : ' '; mi 79 net/mac80211/rc80211_minstrel_ht_debugfs.c *(p++) = (idx == mi->max_tp_rate[3]) ? 'D' : ' '; mi 80 net/mac80211/rc80211_minstrel_ht_debugfs.c *(p++) = (idx == mi->max_prob_rate) ? 'P' : ' '; mi 100 net/mac80211/rc80211_minstrel_ht_debugfs.c tp_max = minstrel_ht_get_tp_avg(mi, i, j, MINSTREL_FRAC(100, 100)); mi 101 net/mac80211/rc80211_minstrel_ht_debugfs.c tp_avg = minstrel_ht_get_tp_avg(mi, i, j, mrs->prob_ewma); mi 124 net/mac80211/rc80211_minstrel_ht_debugfs.c struct minstrel_ht_sta *mi = &msp->ht; mi 150 net/mac80211/rc80211_minstrel_ht_debugfs.c p = minstrel_ht_stats_dump(mi, MINSTREL_CCK_GROUP, p); mi 152 net/mac80211/rc80211_minstrel_ht_debugfs.c p = minstrel_ht_stats_dump(mi, i, p); mi 153 net/mac80211/rc80211_minstrel_ht_debugfs.c for (i++; i < ARRAY_SIZE(mi->groups); i++) mi 154 net/mac80211/rc80211_minstrel_ht_debugfs.c p = minstrel_ht_stats_dump(mi, i, p); mi 158 net/mac80211/rc80211_minstrel_ht_debugfs.c max(0, (int) mi->total_packets - (int) mi->sample_packets), mi 159 net/mac80211/rc80211_minstrel_ht_debugfs.c mi->sample_packets); mi 160 net/mac80211/rc80211_minstrel_ht_debugfs.c if (mi->avg_ampdu_len) mi 162 net/mac80211/rc80211_minstrel_ht_debugfs.c MINSTREL_TRUNC(mi->avg_ampdu_len), mi 163 net/mac80211/rc80211_minstrel_ht_debugfs.c MINSTREL_TRUNC(mi->avg_ampdu_len * 10) % 10); mi 179 net/mac80211/rc80211_minstrel_ht_debugfs.c minstrel_ht_stats_csv_dump(struct minstrel_ht_sta *mi, int i, char *p) mi 187 net/mac80211/rc80211_minstrel_ht_debugfs.c if (!mi->supported[i]) mi 201 net/mac80211/rc80211_minstrel_ht_debugfs.c struct minstrel_rate_stats *mrs = &mi->groups[i].rates[j]; mi 206 net/mac80211/rc80211_minstrel_ht_debugfs.c if (!(mi->supported[i] & BIT(j))) mi 223 net/mac80211/rc80211_minstrel_ht_debugfs.c p += sprintf(p, "%s" ,((idx == mi->max_tp_rate[0]) ? "A" : "")); mi 224 net/mac80211/rc80211_minstrel_ht_debugfs.c p += sprintf(p, "%s" ,((idx == mi->max_tp_rate[1]) ? "B" : "")); mi 225 net/mac80211/rc80211_minstrel_ht_debugfs.c p += sprintf(p, "%s" ,((idx == mi->max_tp_rate[2]) ? "C" : "")); mi 226 net/mac80211/rc80211_minstrel_ht_debugfs.c p += sprintf(p, "%s" ,((idx == mi->max_tp_rate[3]) ? "D" : "")); mi 227 net/mac80211/rc80211_minstrel_ht_debugfs.c p += sprintf(p, "%s" ,((idx == mi->max_prob_rate) ? "P" : "")); mi 245 net/mac80211/rc80211_minstrel_ht_debugfs.c tp_max = minstrel_ht_get_tp_avg(mi, i, j, MINSTREL_FRAC(100, 100)); mi 246 net/mac80211/rc80211_minstrel_ht_debugfs.c tp_avg = minstrel_ht_get_tp_avg(mi, i, j, mrs->prob_ewma); mi 260 net/mac80211/rc80211_minstrel_ht_debugfs.c max(0, (int) mi->total_packets - mi 261 net/mac80211/rc80211_minstrel_ht_debugfs.c (int) mi->sample_packets), mi 262 net/mac80211/rc80211_minstrel_ht_debugfs.c mi->sample_packets, mi 263 net/mac80211/rc80211_minstrel_ht_debugfs.c MINSTREL_TRUNC(mi->avg_ampdu_len), mi 264 net/mac80211/rc80211_minstrel_ht_debugfs.c MINSTREL_TRUNC(mi->avg_ampdu_len * 10) % 10); mi 274 net/mac80211/rc80211_minstrel_ht_debugfs.c struct minstrel_ht_sta *mi = &msp->ht; mi 296 net/mac80211/rc80211_minstrel_ht_debugfs.c p = minstrel_ht_stats_csv_dump(mi, MINSTREL_CCK_GROUP, p); mi 298 net/mac80211/rc80211_minstrel_ht_debugfs.c p = minstrel_ht_stats_csv_dump(mi, i, p); mi 299 net/mac80211/rc80211_minstrel_ht_debugfs.c for (i++; i < ARRAY_SIZE(mi->groups); i++) mi 300 net/mac80211/rc80211_minstrel_ht_debugfs.c p = minstrel_ht_stats_csv_dump(mi, i, p); mi 44 net/sched/act_ife.c int ife_encode_meta_u16(u16 metaval, void *skbdata, struct tcf_meta_info *mi) mi 48 net/sched/act_ife.c if (mi->metaval) mi 49 net/sched/act_ife.c edata = *(u16 *)mi->metaval; mi 57 net/sched/act_ife.c return ife_tlv_meta_encode(skbdata, mi->metaid, 2, &edata); mi 61 net/sched/act_ife.c int ife_get_meta_u32(struct sk_buff *skb, struct tcf_meta_info *mi) mi 63 net/sched/act_ife.c if (mi->metaval) mi 64 net/sched/act_ife.c return nla_put_u32(skb, mi->metaid, *(u32 *)mi->metaval); mi 66 net/sched/act_ife.c return nla_put(skb, mi->metaid, 0, NULL); mi 70 net/sched/act_ife.c int ife_check_meta_u32(u32 metaval, struct tcf_meta_info *mi) mi 72 net/sched/act_ife.c if (metaval || mi->metaval) mi 79 net/sched/act_ife.c int ife_check_meta_u16(u16 metaval, struct tcf_meta_info *mi) mi 81 net/sched/act_ife.c if (metaval || mi->metaval) mi 88 net/sched/act_ife.c int ife_encode_meta_u32(u32 metaval, void *skbdata, struct tcf_meta_info *mi) mi 92 net/sched/act_ife.c if (mi->metaval) mi 93 net/sched/act_ife.c edata = *(u32 *)mi->metaval; mi 101 net/sched/act_ife.c return ife_tlv_meta_encode(skbdata, mi->metaid, 4, &edata); mi 105 net/sched/act_ife.c int ife_get_meta_u16(struct sk_buff *skb, struct tcf_meta_info *mi) mi 107 net/sched/act_ife.c if (mi->metaval) mi 108 net/sched/act_ife.c return nla_put_u16(skb, mi->metaid, *(u16 *)mi->metaval); mi 110 net/sched/act_ife.c return nla_put(skb, mi->metaid, 0, NULL); mi 114 net/sched/act_ife.c int ife_alloc_meta_u32(struct tcf_meta_info *mi, void *metaval, gfp_t gfp) mi 116 net/sched/act_ife.c mi->metaval = kmemdup(metaval, sizeof(u32), gfp); mi 117 net/sched/act_ife.c if (!mi->metaval) mi 124 net/sched/act_ife.c int ife_alloc_meta_u16(struct tcf_meta_info *mi, void *metaval, gfp_t gfp) mi 126 net/sched/act_ife.c mi->metaval = kmemdup(metaval, sizeof(u16), gfp); mi 127 net/sched/act_ife.c if (!mi->metaval) mi 134 net/sched/act_ife.c void ife_release_meta_gen(struct tcf_meta_info *mi) mi 136 net/sched/act_ife.c kfree(mi->metaval); mi 299 net/sched/act_ife.c struct tcf_meta_info *mi = NULL; mi 302 net/sched/act_ife.c mi = kzalloc(sizeof(*mi), atomic ? GFP_ATOMIC : GFP_KERNEL); mi 303 net/sched/act_ife.c if (!mi) mi 306 net/sched/act_ife.c mi->metaid = metaid; mi 307 net/sched/act_ife.c mi->ops = ops; mi 309 net/sched/act_ife.c ret = ops->alloc(mi, metaval, atomic ? GFP_ATOMIC : GFP_KERNEL); mi 311 net/sched/act_ife.c kfree(mi); mi 318 net/sched/act_ife.c list_add_tail(&mi->metalist, &ife->metalist); mi 262 sound/pci/asihpi/asihpi.c u32 h_stream, u32 *mo, u32 *mi) mi 265 sound/pci/asihpi/asihpi.c return hpi_outstream_group_get_map(h_stream, mo, mi); mi 267 sound/pci/asihpi/asihpi.c return hpi_instream_group_get_map(h_stream, mo, mi); mi 25 tools/perf/arch/x86/util/machine.c static int add_extra_kernel_map(struct extra_kernel_map_info *mi, u64 start, mi 28 tools/perf/arch/x86/util/machine.c if (mi->cnt >= mi->max_cnt) { mi 32 tools/perf/arch/x86/util/machine.c mi->max_cnt = mi->max_cnt ? mi->max_cnt * 2 : 32; mi 33 tools/perf/arch/x86/util/machine.c sz = sizeof(struct extra_kernel_map) * mi->max_cnt; mi 34 tools/perf/arch/x86/util/machine.c buf = realloc(mi->maps, sz); mi 37 tools/perf/arch/x86/util/machine.c mi->maps = buf; mi 40 tools/perf/arch/x86/util/machine.c mi->maps[mi->cnt].start = start; mi 41 tools/perf/arch/x86/util/machine.c mi->maps[mi->cnt].end = end; mi 42 tools/perf/arch/x86/util/machine.c mi->maps[mi->cnt].pgoff = pgoff; mi 43 tools/perf/arch/x86/util/machine.c strlcpy(mi->maps[mi->cnt].name, name, KMAP_NAME_LEN); mi 45 tools/perf/arch/x86/util/machine.c mi->cnt += 1; mi 53 tools/perf/arch/x86/util/machine.c struct extra_kernel_map_info *mi = arg; mi 55 tools/perf/arch/x86/util/machine.c if (!mi->entry_trampoline && kallsyms2elf_binding(type) == STB_GLOBAL && mi 57 tools/perf/arch/x86/util/machine.c mi->entry_trampoline = start; mi 64 tools/perf/arch/x86/util/machine.c return add_extra_kernel_map(mi, start, end, 0, name); mi 73 tools/perf/arch/x86/util/machine.c struct extra_kernel_map_info mi = { .cnt = 0, }; mi 83 tools/perf/arch/x86/util/machine.c ret = kallsyms__parse(filename, &mi, find_extra_kernel_maps); mi 87 tools/perf/arch/x86/util/machine.c if (!mi.entry_trampoline) mi 90 tools/perf/arch/x86/util/machine.c for (i = 0; i < mi.cnt; i++) { mi 91 tools/perf/arch/x86/util/machine.c struct extra_kernel_map *xm = &mi.maps[i]; mi 93 tools/perf/arch/x86/util/machine.c xm->pgoff = mi.entry_trampoline; mi 99 tools/perf/arch/x86/util/machine.c machine->trampolines_mapped = mi.cnt; mi 101 tools/perf/arch/x86/util/machine.c free(mi.maps); mi 267 tools/perf/builtin-c2c.c struct mem_info *mi, *mi_dup; mi 281 tools/perf/builtin-c2c.c mi = sample__resolve_mem(sample, &al); mi 282 tools/perf/builtin-c2c.c if (mi == NULL) mi 290 tools/perf/builtin-c2c.c mi_dup = mem_info__get(mi); mi 292 tools/perf/builtin-c2c.c c2c_decode_stats(&stats, mi); mi 295 tools/perf/builtin-c2c.c &al, NULL, NULL, mi, mi 322 tools/perf/builtin-c2c.c mi = mi_dup; mi 329 tools/perf/builtin-c2c.c &al, NULL, NULL, mi, mi 354 tools/perf/builtin-c2c.c mem_info__put(mi); mi 144 tools/perf/builtin-report.c struct mem_info *mi; mi 159 tools/perf/builtin-report.c mi = he->mem_info; mi 160 tools/perf/builtin-report.c err = addr_map_symbol__inc_samples(&mi->daddr, sample, evsel); mi 1670 tools/perf/builtin-script.c struct mem_info mi = { .data_src.val = data_src }; mi 1676 tools/perf/builtin-script.c perf_script__meminfo_scnprintf(decode, 100, &mi); mi 15 tools/perf/tests/mem.c struct mem_info mi = { .data_src = data_src }; mi 19 tools/perf/tests/mem.c n = perf_mem__snp_scnprintf(out, sizeof out, &mi); mi 20 tools/perf/tests/mem.c n += perf_mem__lvl_scnprintf(out + n, sizeof out - n, &mi); mi 677 tools/perf/util/hist.c struct mem_info *mi, mi 710 tools/perf/util/hist.c .mem_info = mi, mi 730 tools/perf/util/hist.c struct mem_info *mi, mi 734 tools/perf/util/hist.c return __hists__add_entry(hists, al, sym_parent, bi, mi, NULL, mi 743 tools/perf/util/hist.c struct mem_info *mi, mi 747 tools/perf/util/hist.c return __hists__add_entry(hists, al, sym_parent, bi, mi, NULL, mi 781 tools/perf/util/hist.c struct mem_info *mi; mi 783 tools/perf/util/hist.c mi = sample__resolve_mem(sample, al); mi 784 tools/perf/util/hist.c if (mi == NULL) mi 787 tools/perf/util/hist.c iter->priv = mi; mi 795 tools/perf/util/hist.c struct mem_info *mi = iter->priv; mi 800 tools/perf/util/hist.c if (mi == NULL) mi 816 tools/perf/util/hist.c he = hists__add_entry(hists, al, iter->parent, NULL, mi, mi 141 tools/perf/util/hist.h struct mem_info *mi, mi 150 tools/perf/util/hist.h struct mem_info *mi, mi 1967 tools/perf/util/machine.c struct mem_info *mi = mem_info__new(); mi 1969 tools/perf/util/machine.c if (!mi) mi 1972 tools/perf/util/machine.c ip__resolve_ams(al->thread, &mi->iaddr, sample->ip); mi 1973 tools/perf/util/machine.c ip__resolve_data(al->thread, al->cpumode, &mi->daddr, mi 1975 tools/perf/util/machine.c mi->data_src.val = sample->data_src; mi 1977 tools/perf/util/machine.c return mi; mi 312 tools/perf/util/mem-events.c int c2c_decode_stats(struct c2c_stats *stats, struct mem_info *mi) mi 314 tools/perf/util/mem-events.c union perf_mem_data_src *data_src = &mi->data_src; mi 315 tools/perf/util/mem-events.c u64 daddr = mi->daddr.addr; mi 413 tools/perf/util/mem-events.c if (!mi->daddr.map || !mi->iaddr.map) { mi 81 tools/perf/util/mem-events.h int c2c_decode_stats(struct c2c_stats *stats, struct mem_info *mi); mi 676 tools/perf/util/scripting-engines/trace-event-python.c struct mem_info mi = { .data_src.val = sample->data_src }; mi 682 tools/perf/util/scripting-engines/trace-event-python.c perf_script__meminfo_scnprintf(decode, 100, &mi); mi 925 tools/perf/util/symbol.c static void add_module(struct module_info *mi, struct rb_root *modules) mi 934 tools/perf/util/symbol.c if (strcmp(mi->name, m->name) < 0) mi 939 tools/perf/util/symbol.c rb_link_node(&mi->rb_node, parent, p); mi 940 tools/perf/util/symbol.c rb_insert_color(&mi->rb_node, modules); mi 945 tools/perf/util/symbol.c struct module_info *mi; mi 949 tools/perf/util/symbol.c mi = rb_entry(next, struct module_info, rb_node); mi 950 tools/perf/util/symbol.c next = rb_next(&mi->rb_node); mi 951 tools/perf/util/symbol.c rb_erase(&mi->rb_node, modules); mi 952 tools/perf/util/symbol.c zfree(&mi->name); mi 953 tools/perf/util/symbol.c free(mi); mi 983 tools/perf/util/symbol.c struct module_info *mi; mi 985 tools/perf/util/symbol.c mi = zalloc(sizeof(struct module_info)); mi 986 tools/perf/util/symbol.c if (!mi) mi 989 tools/perf/util/symbol.c mi->name = strdup(name); mi 990 tools/perf/util/symbol.c mi->start = start; mi 992 tools/perf/util/symbol.c if (!mi->name) { mi 993 tools/perf/util/symbol.c free(mi); mi 997 tools/perf/util/symbol.c add_module(mi, modules); mi 1075 tools/perf/util/symbol.c struct module_info *mi; mi 1083 tools/perf/util/symbol.c mi = find_module(old_map->dso->short_name, &modules); mi 1084 tools/perf/util/symbol.c if (!mi || mi->start != old_map->start) { mi 2353 tools/perf/util/symbol.c struct mem_info *mem_info__get(struct mem_info *mi) mi 2355 tools/perf/util/symbol.c if (mi) mi 2356 tools/perf/util/symbol.c refcount_inc(&mi->refcnt); mi 2357 tools/perf/util/symbol.c return mi; mi 2360 tools/perf/util/symbol.c void mem_info__put(struct mem_info *mi) mi 2362 tools/perf/util/symbol.c if (mi && refcount_dec_and_test(&mi->refcnt)) mi 2363 tools/perf/util/symbol.c free(mi); mi 2368 tools/perf/util/symbol.c struct mem_info *mi = zalloc(sizeof(*mi)); mi 2370 tools/perf/util/symbol.c if (mi) mi 2371 tools/perf/util/symbol.c refcount_set(&mi->refcnt, 1); mi 2372 tools/perf/util/symbol.c return mi; mi 281 tools/perf/util/symbol.h struct mem_info *mem_info__get(struct mem_info *mi); mi 282 tools/perf/util/symbol.h void mem_info__put(struct mem_info *mi); mi 284 tools/perf/util/symbol.h static inline void __mem_info__zput(struct mem_info **mi) mi 286 tools/perf/util/symbol.h mem_info__put(*mi); mi 287 tools/perf/util/symbol.h *mi = NULL; mi 290 tools/perf/util/symbol.h #define mem_info__zput(mi) __mem_info__zput(&mi)