Home
last modified time | relevance | path

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

123

/linux/tools/perf/arch/x86/util/
H A 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/tools/perf/util/
H A Dmem-info.h18 struct mem_info *mem_info__clone(struct mem_info *mi);
19 struct mem_info *mem_info__get(struct mem_info *mi);
20 void mem_info__put(struct mem_info *mi);
22 static inline void __mem_info__zput(struct mem_info **mi) in __mem_info__zput() argument
24 mem_info__put(*mi); in __mem_info__zput()
25 *mi = NULL; in __mem_info__zput()
28 #define mem_info__zput(mi) __mem_info__zput(&mi) argument
30 static inline struct addr_map_symbol *mem_info__iaddr(struct mem_info *mi) in mem_info__iaddr() argument
32 return &RC_CHK_ACCESS(mi)->iaddr; in mem_info__iaddr()
35 static inline struct addr_map_symbol *mem_info__daddr(struct mem_info *mi) in mem_info__daddr() argument
[all …]
H A Dmem-info.c5 struct mem_info *mem_info__get(struct mem_info *mi) in mem_info__get() argument
9 if (RC_CHK_GET(result, mi)) in mem_info__get()
10 refcount_inc(mem_info__refcnt(mi)); in mem_info__get()
15 void mem_info__put(struct mem_info *mi) in mem_info__put() argument
17 if (mi && refcount_dec_and_test(mem_info__refcnt(mi))) { in mem_info__put()
18 addr_map_symbol__exit(mem_info__iaddr(mi)); in mem_info__put()
19 addr_map_symbol__exit(mem_info__daddr(mi)); in mem_info__put()
20 RC_CHK_FREE(mi); in mem_info__put()
22 RC_CHK_PUT(mi); in mem_info__put()
29 RC_STRUCT(mem_info) *mi = zalloc(sizeof(*mi)); in mem_info__new()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dmapping.c47 struct mapping_item *mi; in mapping_add() local
54 hash_for_each_possible(ctx->ht, mi, node, hash_key) { in mapping_add()
55 if (!memcmp(data, mi->data, ctx->data_size)) in mapping_add()
59 mi = kzalloc(sizeof(*mi) + ctx->data_size, GFP_KERNEL); in mapping_add()
60 if (!mi) in mapping_add()
63 memcpy(mi->data, data, ctx->data_size); in mapping_add()
64 hash_add(ctx->ht, &mi->node, hash_key); in mapping_add()
66 err = xa_alloc(&ctx->xarray, &mi->id, mi, XA_LIMIT(1, ctx->max_id), in mapping_add()
71 ++mi->cnt; in mapping_add()
72 *id = mi->id; in mapping_add()
[all …]
/linux/drivers/net/mctp/
H A Dmctp-i3c.c100 static int mctp_i3c_read(struct mctp_i3c_device *mi) in mctp_i3c_read() argument
102 struct i3c_xfer xfer = { .rnw = 1, .len = mi->mrl }; in mctp_i3c_read()
103 struct net_device_stats *stats = &mi->mbus->ndev->stats; in mctp_i3c_read()
110 skb = netdev_alloc_skb(mi->mbus->ndev, in mctp_i3c_read()
111 mi->mrl + sizeof(struct mctp_i3c_internal_hdr)); in mctp_i3c_read()
122 put_unaligned_be48(mi->pid, ihdr->source); in mctp_i3c_read()
123 put_unaligned_be48(mi->mbus->pid, ihdr->dest); in mctp_i3c_read()
126 xfer.data.in = skb_put(skb, mi->mrl); in mctp_i3c_read()
129 mutex_lock(&mi->lock); in mctp_i3c_read()
130 rc = i3c_device_do_xfers(mi->i3c, &xfer, 1, I3C_SDR); in mctp_i3c_read()
[all …]
/linux/net/mac80211/
H A 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/mm/
H A Dnuma_memblks.c121 struct numa_meminfo *mi) in numa_set_distance()
141 if (mi->nr_blks >= NR_NODE_MEMBLKS) { in numa_add_memblk_to()
146 mi->blk[mi->nr_blks].start = start; in numa_add_memblk_to()
147 mi->blk[mi->nr_blks].end = end; in numa_add_memblk_to()
148 mi->blk[mi->nr_blks].nid = nid; in numa_add_memblk_to()
149 mi->nr_blks++; in numa_add_memblk_to()
156 * @mi in numa_add_memblk_to()
24 numa_nodemask_from_meminfo(nodemask_t * nodemask,const struct numa_meminfo * mi) numa_nodemask_from_meminfo() argument
136 numa_add_memblk_to(int nid,u64 start,u64 end,struct numa_meminfo * mi) numa_add_memblk_to() argument
169 numa_remove_memblk_from(int idx,struct numa_meminfo * mi) numa_remove_memblk_from() argument
237 numa_cleanup_meminfo(struct numa_meminfo * mi) numa_cleanup_meminfo() argument
398 numa_register_meminfo(struct numa_meminfo * mi) numa_register_meminfo() argument
512 struct numa_meminfo *mi = &numa_meminfo; numa_fill_memblks() local
560 meminfo_to_nid(struct numa_meminfo * mi,u64 start) meminfo_to_nid() argument
[all...]
/linux/fs/ntfs3/
H A Drecord.c34 static __le16 mi_new_attt_id(struct ntfs_inode *ni, 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(ni, 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 …]
H A 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, &ni->mi, NULL, ATTR_STD, NULL, 0, NULL); in ni_std()
[all …]
H A Dattrib.c81 err = run_unpack_ex(run, ni->mi.sbi, ni->mi.rno, svcn, evcn, in attr_load_runs()
255 struct ATTR_LIST_ENTRY *le, struct mft_inode *mi, in attr_make_nonresident() argument
273 sbi = mi->sbi; in attr_make_nonresident()
274 rec = mi->mrec; in attr_make_nonresident()
341 mi->dirty = true; in attr_make_nonresident()
368 mi->dirty = true; in attr_make_nonresident()
383 struct ATTR_LIST_ENTRY *le, struct mft_inode *mi, in attr_set_size_res() argument
387 struct ntfs_sb_info *sbi = mi->sbi; in attr_set_size_res()
388 struct MFT_REC *rec = mi->mrec; in attr_set_size_res()
401 return attr_make_nonresident(ni, attr, le, mi, new_size, in attr_set_size_res()
[all …]
H A Dntfs_fs.h361 struct mft_inode mi; // base record member
466 struct ATTR_LIST_ENTRY *le, struct mft_inode *mi,
571 void ni_remove_mi(struct ntfs_inode *ni, struct mft_inode *mi);
575 int ni_load_mi_ex(struct ntfs_inode *ni, CLST rno, struct mft_inode **mi);
577 struct mft_inode **mi);
582 struct mft_inode **mi);
585 struct mft_inode **mi);
587 bool ni_add_subrecord(struct ntfs_inode *ni, CLST rno, struct mft_inode **mi);
597 struct mft_inode **mi, struct ATTR_LIST_ENTRY **le);
600 struct ATTRIB **new_attr, struct mft_inode **mi,
[all …]
H A Dattrlist.c89 err = run_unpack_ex(&ni->attr_list.run, ni->mi.sbi, ni->mi.rno, in ntfs_load_attr_list()
112 err = ntfs_read_run_nb(ni->mi.sbi, &ni->attr_list.run, 0, le, in ntfs_load_attr_list()
226 name_len, ni->mi.sbi->upcase, in al_find_ex()
279 name_len, ni->mi.sbi->upcase, in al_find_le_to_insert()
366 err = ntfs_sb_write_run(ni->mi.sbi, &al->run, 0, al->le, in al_add_le()
426 err = ntfs_sb_write_run(ni->mi.sbi, &al->run, 0, al->le, in al_update()
434 ni->mi.dirty = true; in al_update()
H A Dxattr.c77 struct ntfs_sb_info *sbi = ni->mi.sbi; in ntfs_read_ea()
226 ntfs_set_state(ni->mi.sbi, NTFS_DIRTY_ERROR); in ntfs_list_ea()
322 struct ntfs_sb_info *sbi = ni->mi.sbi; in ntfs_set_ea()
333 struct mft_inode *mi; in ntfs_set_ea() local
471 attr = ni_find_attr(ni, NULL, &le, ATTR_EA_INFO, NULL, 0, NULL, &mi); in ntfs_set_ea()
479 ni_remove_attr_le(ni, attr, mi, le); in ntfs_set_ea()
487 mi->dirty = true; in ntfs_set_ea()
491 attr = ni_find_attr(ni, NULL, &le, ATTR_EA, NULL, 0, NULL, &mi); in ntfs_set_ea()
499 ni_remove_attr_le(ni, attr, mi, le); in ntfs_set_ea()
516 mi->dirty = true; in ntfs_set_ea()
[all …]
H A Dindex.c196 struct mft_inode *mi; member
209 struct ntfs_sb_info *sbi = ni->mi.sbi; in bmp_buf_get()
220 &vcn, &bbuf->mi); in bmp_buf_get()
291 bbuf->mi->dirty = true; in bmp_buf_put()
300 bbuf->mi->dirty = true; in bmp_buf_put()
364 struct ntfs_sb_info *sbi = ni->mi.sbi; in scan_nres_bitmap()
986 err = ntfs_get_bh(ni->mi.sbi, &indx->alloc_run, vbo, bytes, &r->nb); in indx_new()
1026 struct ATTRIB **attr, struct mft_inode **mi) in indx_get_root() argument
1034 mi); in indx_get_root()
1058 return ntfs_write_bh(ni->mi.sbi, &ib->rhdr, &node->nb, sync); in indx_write()
[all …]
/linux/arch/x86/boot/
H A 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 …]
H A 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()
H A 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/include/net/tc_act/
H A Dtc_ife.h42 int (*get)(struct sk_buff *skb, struct tcf_meta_info *mi);
51 int ife_get_meta_u32(struct sk_buff *skb, struct tcf_meta_info *mi);
52 int ife_get_meta_u16(struct sk_buff *skb, struct tcf_meta_info *mi);
53 int ife_alloc_meta_u32(struct tcf_meta_info *mi, void *metaval, gfp_t gfp);
54 int ife_alloc_meta_u16(struct tcf_meta_info *mi, void *metaval, gfp_t gfp);
55 int ife_check_meta_u32(u32 metaval, struct tcf_meta_info *mi);
56 int ife_check_meta_u16(u16 metaval, struct tcf_meta_info *mi);
57 int ife_encode_meta_u32(u32 metaval, void *skbdata, struct tcf_meta_info *mi);
60 int ife_encode_meta_u16(u16 metaval, void *skbdata, struct tcf_meta_info *mi);
61 void ife_release_meta_gen(struct tcf_meta_info *mi);
/linux/net/sched/
H A Dact_ife.c44 int ife_encode_meta_u16(u16 metaval, void *skbdata, struct tcf_meta_info *mi) in ife_encode_meta_u16() argument
48 if (mi->metaval) in ife_encode_meta_u16()
49 edata = *(u16 *)mi->metaval; in ife_encode_meta_u16()
57 return ife_tlv_meta_encode(skbdata, mi->metaid, 2, &edata); in ife_encode_meta_u16()
61 int ife_get_meta_u32(struct sk_buff *skb, struct tcf_meta_info *mi) in ife_get_meta_u32() argument
63 if (mi->metaval) in ife_get_meta_u32()
64 return nla_put_u32(skb, mi->metaid, *(u32 *)mi->metaval); in ife_get_meta_u32()
66 return nla_put(skb, mi->metaid, 0, NULL); in ife_get_meta_u32()
70 int ife_check_meta_u32(u32 metaval, struct tcf_meta_info *mi) in ife_check_meta_u32() argument
79 ife_check_meta_u16(u16 metaval,struct tcf_meta_info * mi) ife_check_meta_u16() argument
88 ife_encode_meta_u32(u32 metaval,void * skbdata,struct tcf_meta_info * mi) ife_encode_meta_u32() argument
105 ife_get_meta_u16(struct sk_buff * skb,struct tcf_meta_info * mi) ife_get_meta_u16() argument
114 ife_alloc_meta_u32(struct tcf_meta_info * mi,void * metaval,gfp_t gfp) ife_alloc_meta_u32() argument
124 ife_alloc_meta_u16(struct tcf_meta_info * mi,void * metaval,gfp_t gfp) ife_alloc_meta_u16() argument
134 ife_release_meta_gen(struct tcf_meta_info * mi) ife_release_meta_gen() argument
299 struct tcf_meta_info *mi = NULL; __add_metainfo() local
[all...]
/linux/drivers/crypto/allwinner/sun4i-ss/
H A 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 …]
H A 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/drivers/video/fbdev/mmp/panel/
H A 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/lib/
H A Ddecompress_unlzma.c353 int mi = 1; in process_bit0() local
369 prob_lit = prob + 0x100 + bit + mi; in process_bit0()
370 if (rc_get_bit(rc, prob_lit, &mi)) { in process_bit0()
377 } while (mi < 0x100); in process_bit0()
379 while (mi < 0x100) { in process_bit0()
380 uint16_t *prob_lit = prob + mi; in process_bit0()
381 rc_get_bit(rc, prob_lit, &mi); in process_bit0()
390 return write_byte(wr, mi); in process_bit0()
500 int i, mi; in process_bit1() local
517 mi = 1; in process_bit1()
[all …]
/linux/drivers/cxl/core/
H A Dregs.c219 struct mapinfo *mi = &mapinfo[i]; in cxl_map_component_regs() local
223 if (!mi->rmap->valid) in cxl_map_component_regs()
225 if (!test_bit(mi->rmap->id, &map_mask)) in cxl_map_component_regs()
227 addr = map->resource + mi->rmap->offset; in cxl_map_component_regs()
228 length = mi->rmap->size; in cxl_map_component_regs()
229 *(mi->addr) = devm_cxl_iomap_block(host, addr, length); in cxl_map_component_regs()
230 if (!*(mi->addr)) in cxl_map_component_regs()
254 struct mapinfo *mi = &mapinfo[i]; in cxl_map_device_regs() local
258 if (!mi->rmap->valid) in cxl_map_device_regs()
261 addr = phys_addr + mi->rmap->offset; in cxl_map_device_regs()
[all …]
/linux/tools/perf/tests/
H A Dmem.c16 struct mem_info *mi = mem_info__new(); in check()
19 TEST_ASSERT_VAL("Memory allocation failed", mi); in check()
20 *mem_info__data_src(mi) = data_src; in check()
21 n = perf_mem__snp_scnprintf(out, sizeof out, mi); in check()
22 n += perf_mem__lvl_scnprintf(out + n, sizeof out - n, mi); in check()
23 mem_info__put(mi); in check()
15 struct mem_info mi = { .data_src = data_src }; check() local

123