Home
last modified time | relevance | path

Searched full:mi (Results 1 – 25 of 173) sorted by relevance

1234567

/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/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.c21 * Set nodes, which have memory in @mi, in *@nodemask.
24 const struct numa_meminfo *mi) in numa_nodemask_from_meminfo() argument
28 for (i = 0; i < ARRAY_SIZE(mi->blk); i++) in numa_nodemask_from_meminfo()
29 if (mi->blk[i].start != mi->blk[i].end && in numa_nodemask_from_meminfo()
30 mi->blk[i].nid != NUMA_NO_NODE) in numa_nodemask_from_meminfo()
31 node_set(mi->blk[i].nid, *nodemask); in numa_nodemask_from_meminfo()
136 struct numa_meminfo *mi) in numa_add_memblk_to() argument
149 if (mi->nr_blks >= NR_NODE_MEMBLKS) { in numa_add_memblk_to()
154 mi->blk[mi->nr_blks].start = start; in numa_add_memblk_to()
155 mi->blk[mi->nr_blks].end = end; in numa_add_memblk_to()
[all …]
/linux/include/net/tc_act/
H A 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/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/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
72 if (metaval || mi->metaval) in ife_check_meta_u32()
[all …]
/linux/arch/x86/crypto/
H A Daes-gcm-vaes-avx2.S143 vpxor \t2, \t1, \t1 // MI = MI_0 + MI_1
149 vpxor \t0, \t1, \t1 // Fold LO into MI (part 1)
150 vpxor \t2, \t1, \t1 // Fold LO into MI (part 2)
156 vpshufd $0x4e, \t1, \t1 // Swap halves of MI
158 vpxor \t1, \dst, \dst // Fold MI into HI (part 1)
159 vpxor \t0, \dst, \dst // Fold MI into HI (part 2)
172 // *unreduced* products to \lo, \mi, and \hi.
173 .macro _ghash_mul_noreduce a, b, lo, mi, hi, t0
177 vpxor \t0, \mi, \mi
179 vpxor \t0, \mi, \mi
[all …]
H A Daes-gcm-aesni-x86_64.S292 // MI = (a_L * b_H) + ((a*x^64)_L * b_L)
309 // Fold MI into HI.
310 pshufd $0x4e, \t0, \t1 // Swap halves of MI
328 // GHASH-multiply \a by \b and add the unreduced product to \lo, \mi, and \hi.
330 // the first call, \lo, \mi, and \hi must be zero. \a_xored must contain the
332 .macro _ghash_mul_noreduce a, a_xored, b, lo, mi, hi, t0
346 // MI += (a_L + a_H) * (b_L + b_H)
348 pxor \t0, \mi
351 // Reduce the product from \lo, \mi, and \hi, and store the result in \dst.
353 .macro _ghash_reduce lo, mi, hi, dst, t0
[all …]
H A Daes-gcm-vaes-avx512.S164 // MI = (a_L * b_H) + (a_H * b_L)
167 // The 256-bit product is x^128*HI + x^64*MI + LO. LO, MI, and HI are 128-bit.
168 // Note that MI "overlaps" with LO and HI. We don't consolidate MI into LO and
186 // We just need to apply this twice: first to fold LO into MI, and second to
187 // fold the updated MI into HI.
197 // MI = (a_L * c_L) + (a_H * b_L)
201 // eliminate the need to fold LO into MI. This would save two instructions,
214 vpxord \t2, \t1, \t1 // MI = MI_0 + MI_1
220 vpternlogd $0x96, \t2, \t0, \t1 // Fold LO into MI
226 vpshufd $0x4e, \t1, \t1 // Swap halves of MI
[all …]
/linux/Documentation/ABI/testing/
H A Dsysfs-bus-iio-sx932412 (DS - data shield), or measured input (MI).
20 `cat in_proximity0_setup` returns "MI,DS,DS".
22 `cat in_proximity1_setup` returns "DS,MI,DS".
24 `cat in_proximity1_setup` returns "DS,DS,MI".
26 `cat in_proximity1_setup` returns "DS,MI,MI".
/linux/lib/crypto/x86/
H A Dpolyval-pclmul-avx.S36 #define MI %xmm14 macro
68 * the 256-bit product into LO, MI, HI.
76 * MI += X_0 * Y_1 + X_1 * Y_0
96 vpxor %xmm2, MI, MI
99 vpxor %xmm3, MI, MI
105 * registers LO, MI, and HI directly rather than XOR'ing into them.
108 vpclmulqdq $0x01, %xmm0, %xmm1, MI
112 vpxor %xmm2, MI, MI
116 * Computes the 256-bit polynomial represented by LO, HI, MI. Stores
121 vpslldq $8, MI, PL
[all …]
/linux/drivers/uio/
H A Duio.c288 int mi, pi; in uio_dev_add_attributes() local
296 for (mi = 0; mi < MAX_UIO_MAPS; mi++) { in uio_dev_add_attributes()
297 mem = &idev->info->mem[mi]; in uio_dev_add_attributes()
317 ret = kobject_add(&map->kobj, idev->map_dir, "map%d", mi); in uio_dev_add_attributes()
367 mi--; in uio_dev_add_attributes()
369 for (; mi >= 0; mi--) { in uio_dev_add_attributes()
370 mem = &idev->info->mem[mi]; in uio_dev_add_attributes()
691 int mi; in uio_vma_fault() local
699 mi = uio_find_mem_index(vmf->vma); in uio_vma_fault()
700 if (mi < 0) { in uio_vma_fault()
[all …]
/linux/fs/nilfs2/
H A Dmdt.c454 struct nilfs_mdt_info *mi; in nilfs_mdt_init() local
456 mi = kzalloc(max(sizeof(*mi), objsz), GFP_NOFS); in nilfs_mdt_init()
457 if (!mi) in nilfs_mdt_init()
460 init_rwsem(&mi->mi_sem); in nilfs_mdt_init()
461 inode->i_private = mi; in nilfs_mdt_init()
509 struct nilfs_mdt_info *mi = NILFS_MDT(inode); in nilfs_mdt_set_entry_size() local
511 mi->mi_entry_size = entry_size; in nilfs_mdt_set_entry_size()
512 mi->mi_entries_per_block = i_blocksize(inode) / entry_size; in nilfs_mdt_set_entry_size()
513 mi->mi_first_entry_offset = DIV_ROUND_UP(header_size, entry_size); in nilfs_mdt_set_entry_size()
526 struct nilfs_mdt_info *mi = NILFS_MDT(inode); in nilfs_mdt_setup_shadow_map() local
[all …]
/linux/drivers/crypto/allwinner/sun4i-ss/
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 …]
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 …]
/linux/drivers/gpu/drm/amd/display/dc/dce/
H A 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/drivers/video/fbdev/
H A 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()
555 struct pxa168fb_mach_info *mi) in pxa168fb_init_mode() argument
593 struct pxa168fb_mach_info *mi; in pxa168fb_probe() local
[all …]
/linux/lib/crypto/arm64/
H A Dpolyval-ce-core.S58 MI .req v21 label
73 * components of the 256-bit product into LO, MI, HI.
81 * MI += (X_0 + X_1) * (Y_0 + Y_1)
105 eor MI.16b, MI.16b, v27.16b
111 * Same as karatsuba1, except overwrites HI, LO, MI rather than XORing into
123 pmull MI.1q, v25.1d, v26.1d
129 * Computes the 256-bit polynomial represented by LO, HI, MI. Stores
136 eor v4.16b, HI.16b, MI.16b
220 eor MI.16b, MI.16b, MI.16b
/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.c218 struct mapinfo *mi = &mapinfo[i]; in cxl_map_component_regs() local
222 if (!mi->rmap->valid) in cxl_map_component_regs()
224 if (!test_bit(mi->rmap->id, &map_mask)) in cxl_map_component_regs()
226 addr = map->resource + mi->rmap->offset; in cxl_map_component_regs()
227 length = mi->rmap->size; in cxl_map_component_regs()
228 *(mi->addr) = devm_cxl_iomap_block(host, addr, length); in cxl_map_component_regs()
229 if (!*(mi->addr)) in cxl_map_component_regs()
253 struct mapinfo *mi = &mapinfo[i]; in cxl_map_device_regs() local
257 if (!mi->rmap->valid) in cxl_map_device_regs()
260 addr = phys_addr + mi->rmap->offset; in cxl_map_device_regs()
[all …]

1234567