Home
last modified time | relevance | path

Searched refs:mi (Results 1 – 25 of 121) sorted by relevance

12345

/linux-6.1.9/tools/perf/arch/x86/util/
Dmachine.c25 static int add_extra_kernel_map(struct extra_kernel_map_info *mi, u64 start, in add_extra_kernel_map() argument
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()
33 sz = sizeof(struct extra_kernel_map) * mi->max_cnt; 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()
[all …]
/linux-6.1.9/net/mac80211/
Drc80211_minstrel_ht.c278 minstrel_ht_update_rates(struct minstrel_priv *mp, struct minstrel_ht_sta *mi);
370 minstrel_ht_get_stats(struct minstrel_priv *mp, struct minstrel_ht_sta *mi, in minstrel_ht_get_stats() argument
389 if (!(mi->supported[group] & BIT(idx))) in minstrel_ht_get_stats()
396 if ((mi->supported[group] & BIT(idx + 4)) && in minstrel_ht_get_stats()
404 if (rate->idx == mp->ofdm_rates[mi->band][idx]) in minstrel_ht_get_stats()
409 return &mi->groups[group].rates[idx]; in minstrel_ht_get_stats()
416 minstrel_ht_ri_get_stats(struct minstrel_priv *mp, struct minstrel_ht_sta *mi, in minstrel_ht_ri_get_stats() argument
440 if ((mi->supported[group] & BIT(idx + 4)) && in minstrel_ht_ri_get_stats()
441 mi->use_short_preamble) in minstrel_ht_ri_get_stats()
448 if (rate->legacy == minstrel_ofdm_bitrates[ mp->ofdm_rates[mi->band][idx] ]) in minstrel_ht_ri_get_stats()
[all …]
Drc80211_minstrel_ht_debugfs.c36 minstrel_ht_is_sample_rate(struct minstrel_ht_sta *mi, int idx) in minstrel_ht_is_sample_rate() argument
40 for (type = 0; type < ARRAY_SIZE(mi->sample); type++) in minstrel_ht_is_sample_rate()
42 if (mi->sample[type].cur_sample_rates[i] == idx) in minstrel_ht_is_sample_rate()
48 minstrel_ht_stats_dump(struct minstrel_ht_sta *mi, int i, char *p) in minstrel_ht_stats_dump() argument
56 if (!mi->supported[i]) in minstrel_ht_stats_dump()
70 struct minstrel_rate_stats *mrs = &mi->groups[i].rates[j]; in minstrel_ht_stats_dump()
74 if (!(mi->supported[i] & BIT(j))) in minstrel_ht_stats_dump()
94 *(p++) = (idx == mi->max_tp_rate[0]) ? 'A' : ' '; in minstrel_ht_stats_dump()
95 *(p++) = (idx == mi->max_tp_rate[1]) ? 'B' : ' '; in minstrel_ht_stats_dump()
96 *(p++) = (idx == mi->max_tp_rate[2]) ? 'C' : ' '; in minstrel_ht_stats_dump()
[all …]
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/
Dmapping.c45 struct mapping_item *mi; in mapping_add() local
52 hash_for_each_possible(ctx->ht, mi, node, hash_key) { in mapping_add()
53 if (!memcmp(data, mi->data, ctx->data_size)) in mapping_add()
57 mi = kzalloc(sizeof(*mi) + ctx->data_size, GFP_KERNEL); in mapping_add()
58 if (!mi) in mapping_add()
61 memcpy(mi->data, data, ctx->data_size); in mapping_add()
62 hash_add(ctx->ht, &mi->node, hash_key); 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()
[all …]
/linux-6.1.9/fs/ntfs3/
Drecord.c34 static __le16 mi_new_attt_id(struct mft_inode *mi) in mi_new_attt_id() argument
37 struct MFT_REC *rec = mi->mrec; in mi_new_attt_id()
55 attr = mi_enum_attr(mi, attr); in mi_new_attt_id()
58 mi->dirty = true; in mi_new_attt_id()
71 int mi_get(struct ntfs_sb_info *sbi, CLST rno, struct mft_inode **mi) in mi_get() argument
91 *mi = m; in mi_get()
95 void mi_put(struct mft_inode *mi) in mi_put() argument
97 mi_clear(mi); in mi_put()
98 kfree(mi); in mi_put()
101 int mi_init(struct mft_inode *mi, struct ntfs_sb_info *sbi, CLST rno) in mi_init() argument
[all …]
Dfrecord.c27 struct mft_inode *mi; in ni_ins_mi() local
30 mi = rb_entry(pr, struct mft_inode, node); in ni_ins_mi()
31 if (mi->rno > ino) in ni_ins_mi()
33 else if (mi->rno < ino) in ni_ins_mi()
36 return mi; in ni_ins_mi()
58 static void ni_add_mi(struct ntfs_inode *ni, struct mft_inode *mi) in ni_add_mi() argument
60 ni_ins_mi(ni, &ni->mi_tree, mi->rno, &mi->node); in ni_add_mi()
66 void ni_remove_mi(struct ntfs_inode *ni, struct mft_inode *mi) in ni_remove_mi() argument
68 rb_erase(&mi->node, &ni->mi_tree); in ni_remove_mi()
78 attr = mi_find_attr(&ni->mi, NULL, ATTR_STD, NULL, 0, NULL); in ni_std()
[all …]
Dattrib.c108 err = run_unpack_ex(run, ni->mi.sbi, ni->mi.rno, svcn, evcn, in attr_load_runs()
238 struct ATTR_LIST_ENTRY *le, struct mft_inode *mi, in attr_make_nonresident() argument
256 sbi = mi->sbi; in attr_make_nonresident()
257 rec = mi->mrec; in attr_make_nonresident()
321 mi->dirty = true; in attr_make_nonresident()
348 mi->dirty = true; in attr_make_nonresident()
363 struct ATTR_LIST_ENTRY *le, struct mft_inode *mi, in attr_set_size_res() argument
367 struct ntfs_sb_info *sbi = mi->sbi; in attr_set_size_res()
368 struct MFT_REC *rec = mi->mrec; in attr_set_size_res()
381 return attr_make_nonresident(ni, attr, le, mi, new_size, in attr_set_size_res()
[all …]
Dntfs_fs.h341 struct mft_inode mi; // base record member
417 struct ATTR_LIST_ENTRY *le, struct mft_inode *mi,
502 void ni_remove_mi(struct ntfs_inode *ni, struct mft_inode *mi);
506 int ni_load_mi_ex(struct ntfs_inode *ni, CLST rno, struct mft_inode **mi);
508 struct mft_inode **mi);
513 struct mft_inode **mi);
516 struct mft_inode **mi);
521 bool ni_add_subrecord(struct ntfs_inode *ni, CLST rno, struct mft_inode **mi);
531 struct mft_inode **mi, struct ATTR_LIST_ENTRY **le);
534 struct ATTRIB **new_attr, struct mft_inode **mi,
[all …]
/linux-6.1.9/arch/x86/mm/
Dnuma.c126 struct numa_meminfo *mi) in numa_add_memblk_to() argument
139 if (mi->nr_blks >= NR_NODE_MEMBLKS) { in numa_add_memblk_to()
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()
159 void __init numa_remove_memblk_from(int idx, struct numa_meminfo *mi) in numa_remove_memblk_from() argument
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()
[all …]
/linux-6.1.9/arch/x86/boot/
Dvideo-mode.c55 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()
83 for (i = 0; i < card->nmodes; i++, mi++) { 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()
[all …]
Dvideo-bios.c24 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()
Dvideo.c140 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()
Dvideo-vesa.c36 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-6.1.9/include/net/tc_act/
Dtc_ife.h44 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-6.1.9/net/sched/
Dact_ife.c43 int ife_encode_meta_u16(u16 metaval, void *skbdata, struct tcf_meta_info *mi) in ife_encode_meta_u16() argument
47 if (mi->metaval) in ife_encode_meta_u16()
48 edata = *(u16 *)mi->metaval; in ife_encode_meta_u16()
56 return ife_tlv_meta_encode(skbdata, mi->metaid, 2, &edata); in ife_encode_meta_u16()
60 int ife_get_meta_u32(struct sk_buff *skb, struct tcf_meta_info *mi) in ife_get_meta_u32() argument
62 if (mi->metaval) in ife_get_meta_u32()
63 return nla_put_u32(skb, mi->metaid, *(u32 *)mi->metaval); in ife_get_meta_u32()
65 return nla_put(skb, mi->metaid, 0, NULL); in ife_get_meta_u32()
69 int ife_check_meta_u32(u32 metaval, struct tcf_meta_info *mi) in ife_check_meta_u32() argument
71 if (metaval || mi->metaval) in ife_check_meta_u32()
[all …]
/linux-6.1.9/fs/nilfs2/
Dmdt.c449 struct nilfs_mdt_info *mi; in nilfs_mdt_init() local
451 mi = kzalloc(max(sizeof(*mi), objsz), GFP_NOFS); in nilfs_mdt_init()
452 if (!mi) in nilfs_mdt_init()
455 init_rwsem(&mi->mi_sem); in nilfs_mdt_init()
456 inode->i_private = mi; in nilfs_mdt_init()
504 struct nilfs_mdt_info *mi = NILFS_MDT(inode); in nilfs_mdt_set_entry_size() local
506 mi->mi_entry_size = entry_size; in nilfs_mdt_set_entry_size()
507 mi->mi_entries_per_block = i_blocksize(inode) / entry_size; in nilfs_mdt_set_entry_size()
508 mi->mi_first_entry_offset = DIV_ROUND_UP(header_size, entry_size); in nilfs_mdt_set_entry_size()
519 struct nilfs_mdt_info *mi = NILFS_MDT(inode); in nilfs_mdt_setup_shadow_map() local
[all …]
/linux-6.1.9/drivers/crypto/allwinner/sun4i-ss/
Dsun4i-ss-hash.c199 struct sg_mapping_iter mi; in sun4i_hash() local
272 sg_miter_start(&mi, areq->src, sg_nents(areq->src), in sun4i_hash()
274 sg_miter_next(&mi); in sun4i_hash()
283 if (op->len || (mi.length - in_i) < 4) { in sun4i_hash()
292 in_r = min_t(size_t, mi.length - in_i, in_r); in sun4i_hash()
293 memcpy(op->buf + op->len, mi.addr + in_i, in_r); 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()
312 in_r = min_t(size_t, mi.length - in_i, areq->nbytes - i); in sun4i_hash()
[all …]
Dsun4i-ss-cipher.c35 struct sg_mapping_iter mi, mo; in sun4i_ss_opti_poll() local
80 sg_miter_start(&mi, areq->src, sg_nents(areq->src), in sun4i_ss_opti_poll()
83 sg_miter_skip(&mi, pi); in sun4i_ss_opti_poll()
84 miter_err = sg_miter_next(&mi); in sun4i_ss_opti_poll()
85 if (!miter_err || !mi.addr) { in sun4i_ss_opti_poll()
91 todo = min_t(size_t, todo, (mi.length - oi) / 4); in sun4i_ss_opti_poll()
94 writesl(ss->base + SS_RXFIFO, mi.addr + oi, todo); in sun4i_ss_opti_poll()
97 if (oi == mi.length) { in sun4i_ss_opti_poll()
98 pi += mi.length; in sun4i_ss_opti_poll()
101 sg_miter_stop(&mi); in sun4i_ss_opti_poll()
[all …]
/linux-6.1.9/arch/loongarch/kernel/
Dnuma.c184 struct numa_meminfo *mi) in numa_add_memblk_to() argument
197 if (mi->nr_blks >= NR_NODE_MEMBLKS) { in numa_add_memblk_to()
202 mi->blk[mi->nr_blks].start = PFN_ALIGN(start); in numa_add_memblk_to()
203 mi->blk[mi->nr_blks].end = PFN_ALIGN(end - PAGE_SIZE + 1); in numa_add_memblk_to()
204 mi->blk[mi->nr_blks].nid = nid; in numa_add_memblk_to()
205 mi->nr_blks++; in numa_add_memblk_to()
265 static bool __init numa_meminfo_cover_memory(const struct numa_meminfo *mi) in numa_meminfo_cover_memory() argument
271 for (i = 0; i < mi->nr_blks; i++) { in numa_meminfo_cover_memory()
272 u64 s = mi->blk[i].start >> PAGE_SHIFT; in numa_meminfo_cover_memory()
273 u64 e = mi->blk[i].end >> PAGE_SHIFT; in numa_meminfo_cover_memory()
[all …]
/linux-6.1.9/drivers/uio/
Duio.c287 int mi, pi; in uio_dev_add_attributes() local
295 for (mi = 0; mi < MAX_UIO_MAPS; mi++) { in uio_dev_add_attributes()
296 mem = &idev->info->mem[mi]; in uio_dev_add_attributes()
316 ret = kobject_add(&map->kobj, idev->map_dir, "map%d", mi); in uio_dev_add_attributes()
366 mi--; in uio_dev_add_attributes()
368 for (; mi >= 0; mi--) { in uio_dev_add_attributes()
369 mem = &idev->info->mem[mi]; in uio_dev_add_attributes()
676 int mi; in uio_vma_fault() local
684 mi = uio_find_mem_index(vmf->vma); in uio_vma_fault()
685 if (mi < 0) { in uio_vma_fault()
[all …]
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dce/
Ddce_mem_input.c134 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()
321 uint32_t stutter_en = mi->ctx->dc->debug.disable_stutter ? 0 : 1; 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()
348 uint32_t stutter_en = mi->ctx->dc->debug.disable_stutter ? 0 : 1; in dce60_mi_program_display_marks()
366 static void dce112_mi_program_display_marks(struct mem_input *mi, in dce112_mi_program_display_marks() argument
373 struct dce_mem_input *dce_mi = TO_DCE_MEM_INPUT(mi); in dce112_mi_program_display_marks()
[all …]
/linux-6.1.9/drivers/video/fbdev/mmp/panel/
Dtpo_tj032md01bw.c128 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-6.1.9/drivers/gpu/drm/amd/display/dc/dce60/
Ddce60_hw_sequencer.c273 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-6.1.9/drivers/video/fbdev/
Dpxa168fb.c363 struct pxa168fb_mach_info *mi = dev_get_platdata(fbi->dev); in set_dumb_panel_control() local
371 x |= (fbi->is_blanked ? 0x7 : mi->dumb_mode) << 28; in set_dumb_panel_control()
372 x |= mi->gpio_output_data << 20; in set_dumb_panel_control()
373 x |= mi->gpio_output_mask << 12; in set_dumb_panel_control()
374 x |= mi->panel_rgb_reverse_lanes ? 0x00000080 : 0; in set_dumb_panel_control()
375 x |= mi->invert_composite_blank ? 0x00000040 : 0; in set_dumb_panel_control()
377 x |= mi->invert_pix_val_ena ? 0x00000010 : 0; in set_dumb_panel_control()
380 x |= mi->invert_pixclock ? 0x00000002 : 0; in set_dumb_panel_control()
557 struct pxa168fb_mach_info *mi) in pxa168fb_init_mode() argument
595 struct pxa168fb_mach_info *mi; in pxa168fb_probe() local
[all …]
/linux-6.1.9/lib/
Ddecompress_unlzma.c351 int mi = 1; in process_bit0() local
367 prob_lit = prob + 0x100 + bit + mi; in process_bit0()
368 if (rc_get_bit(rc, prob_lit, &mi)) { in process_bit0()
375 } while (mi < 0x100); in process_bit0()
377 while (mi < 0x100) { in process_bit0()
378 uint16_t *prob_lit = prob + mi; in process_bit0()
379 rc_get_bit(rc, prob_lit, &mi); 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()
[all …]

12345