/linux-6.12.1/tools/perf/arch/x86/util/ |
D | machine.c | 25 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.12.1/net/mac80211/ |
D | rc80211_minstrel_ht.c | 278 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 …]
|
D | rc80211_minstrel_ht_debugfs.c | 36 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.12.1/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | mapping.c | 45 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.12.1/tools/perf/util/ |
D | mem-info.h | 18 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 …]
|
D | mem-info.c | 5 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-6.12.1/fs/ntfs3/ |
D | record.c | 34 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 …]
|
D | frecord.c | 27 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 …]
|
D | attrib.c | 81 err = run_unpack_ex(run, ni->mi.sbi, ni->mi.rno, svcn, evcn, in attr_load_runs() 227 struct ATTR_LIST_ENTRY *le, struct mft_inode *mi, in attr_make_nonresident() argument 245 sbi = mi->sbi; in attr_make_nonresident() 246 rec = mi->mrec; in attr_make_nonresident() 313 mi->dirty = true; in attr_make_nonresident() 340 mi->dirty = true; in attr_make_nonresident() 355 struct ATTR_LIST_ENTRY *le, struct mft_inode *mi, in attr_set_size_res() argument 359 struct ntfs_sb_info *sbi = mi->sbi; in attr_set_size_res() 360 struct MFT_REC *rec = mi->mrec; in attr_set_size_res() 373 return attr_make_nonresident(ni, attr, le, mi, new_size, in attr_set_size_res() [all …]
|
D | ntfs_fs.h | 352 struct mft_inode mi; // base record member 428 struct ATTR_LIST_ENTRY *le, struct mft_inode *mi, 517 void ni_remove_mi(struct ntfs_inode *ni, struct mft_inode *mi); 521 int ni_load_mi_ex(struct ntfs_inode *ni, CLST rno, struct mft_inode **mi); 523 struct mft_inode **mi); 528 struct mft_inode **mi); 531 struct mft_inode **mi); 536 bool ni_add_subrecord(struct ntfs_inode *ni, CLST rno, struct mft_inode **mi); 546 struct mft_inode **mi, struct ATTR_LIST_ENTRY **le); 549 struct ATTRIB **new_attr, struct mft_inode **mi, [all …]
|
/linux-6.12.1/drivers/net/mctp/ |
D | mctp-i3c.c | 100 static int mctp_i3c_read(struct mctp_i3c_device *mi) in mctp_i3c_read() argument 102 struct i3c_priv_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() 128 rc = i3c_device_do_priv_xfers(mi->i3c, &xfer, 1); in mctp_i3c_read() 132 if (WARN_ON_ONCE(xfer.len > mi->mrl)) { in mctp_i3c_read() [all …]
|
/linux-6.12.1/mm/ |
D | numa_memblks.c | 19 * Set nodes, which have memory in @mi, in *@nodemask. 22 const struct numa_meminfo *mi) in numa_nodemask_from_meminfo() argument 26 for (i = 0; i < ARRAY_SIZE(mi->blk); i++) in numa_nodemask_from_meminfo() 27 if (mi->blk[i].start != mi->blk[i].end && in numa_nodemask_from_meminfo() 28 mi->blk[i].nid != NUMA_NO_NODE) in numa_nodemask_from_meminfo() 29 node_set(mi->blk[i].nid, *nodemask); in numa_nodemask_from_meminfo() 134 struct numa_meminfo *mi) in numa_add_memblk_to() argument 147 if (mi->nr_blks >= NR_NODE_MEMBLKS) { in numa_add_memblk_to() 152 mi->blk[mi->nr_blks].start = start; in numa_add_memblk_to() 153 mi->blk[mi->nr_blks].end = end; in numa_add_memblk_to() [all …]
|
/linux-6.12.1/fs/bcachefs/ |
D | sb-members.c | 42 static struct bch_member members_v2_get(struct bch_sb_field_members_v2 *mi, int i) in members_v2_get() argument 44 struct bch_member ret, *p = __bch2_members_v2_get_mut(mi, i); in members_v2_get() 46 memcpy(&ret, p, min_t(size_t, le16_to_cpu(mi->member_bytes), sizeof(ret))); in members_v2_get() 50 static struct bch_member *members_v1_get_mut(struct bch_sb_field_members_v1 *mi, int i) in members_v1_get_mut() argument 52 return (void *) mi->_members + (i * BCH_MEMBER_V1_BYTES); in members_v1_get_mut() 55 static struct bch_member members_v1_get(struct bch_sb_field_members_v1 *mi, int i) in members_v1_get() argument 57 struct bch_member ret, *p = members_v1_get_mut(mi, i); in members_v1_get() 74 struct bch_sb_field_members_v2 *mi = bch2_sb_field_get(c->disk_sb.sb, members_v2); in sb_members_v2_resize_entries() local 76 if (le16_to_cpu(mi->member_bytes) < sizeof(struct bch_member)) { in sb_members_v2_resize_entries() 77 unsigned u64s = DIV_ROUND_UP((sizeof(*mi) + sizeof(mi->_members[0]) * in sb_members_v2_resize_entries() [all …]
|
D | sb-members.h | 11 __bch2_members_v2_get_mut(struct bch_sb_field_members_v2 *mi, unsigned i) in __bch2_members_v2_get_mut() argument 13 return (void *) mi->_members + (i * le16_to_cpu(mi->member_bytes)); in __bch2_members_v2_get_mut() 29 ca->mi.state != BCH_MEMBER_STATE_failed; in bch2_dev_is_readable() 154 (!((1 << ca->mi.state) & state_mask) || in bch2_get_next_online_dev() 182 return b - ca->mi.first_bucket < ca->mi.nbuckets_minus_first; in bucket_valid() 281 (ca->mi.state == BCH_MEMBER_STATE_rw || in bch2_dev_get_ioref() 282 (ca->mi.state == BCH_MEMBER_STATE_ro && rw == READ))) in bch2_dev_get_ioref() 320 static inline struct bch_member_cpu bch2_mi_to_cpu(struct bch_member *mi) in bch2_mi_to_cpu() argument 323 .nbuckets = le64_to_cpu(mi->nbuckets), in bch2_mi_to_cpu() 324 .nbuckets_minus_first = le64_to_cpu(mi->nbuckets) - in bch2_mi_to_cpu() [all …]
|
/linux-6.12.1/include/net/tc_act/ |
D | tc_ife.h | 44 int (*get)(struct sk_buff *skb, struct tcf_meta_info *mi); 53 int ife_get_meta_u32(struct sk_buff *skb, struct tcf_meta_info *mi); 54 int ife_get_meta_u16(struct sk_buff *skb, struct tcf_meta_info *mi); 55 int ife_alloc_meta_u32(struct tcf_meta_info *mi, void *metaval, gfp_t gfp); 56 int ife_alloc_meta_u16(struct tcf_meta_info *mi, void *metaval, gfp_t gfp); 57 int ife_check_meta_u32(u32 metaval, struct tcf_meta_info *mi); 58 int ife_check_meta_u16(u16 metaval, struct tcf_meta_info *mi); 59 int ife_encode_meta_u32(u32 metaval, void *skbdata, struct tcf_meta_info *mi); 62 int ife_encode_meta_u16(u16 metaval, void *skbdata, struct tcf_meta_info *mi); 63 void ife_release_meta_gen(struct tcf_meta_info *mi);
|
/linux-6.12.1/arch/x86/boot/ |
D | video-mode.c | 55 struct mode_info *mi; in mode_defined() local 59 mi = card->modes; in mode_defined() 60 for (i = 0; i < card->nmodes; i++, mi++) { in mode_defined() 61 if (mi->mode == mode) in mode_defined() 74 struct mode_info *mi; in raw_set_mode() local 82 mi = card->modes; in raw_set_mode() 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 …]
|
D | video.c | 140 struct mode_info *mi; in display_menu() local 162 mi = card->modes; in display_menu() 163 for (i = 0; i < card->nmodes; i++, mi++) { in display_menu() 165 int visible = mi->x && mi->y; in display_menu() 166 u16 mode_id = mi->mode ? mi->mode : in display_menu() 167 (mi->y << 8)+mi->x; in display_menu() 172 if (mi->depth) in display_menu() 173 sprintf(resbuf, "%dx%d", mi->y, mi->depth); in display_menu() 175 sprintf(resbuf, "%d", mi->y); in display_menu() 178 ch, mode_id, mi->x, resbuf, card->card_name); in display_menu()
|
D | video-bios.c | 24 static int bios_set_mode(struct mode_info *mi) in bios_set_mode() argument 26 return set_bios_mode(mi->mode - VIDEO_FIRST_BIOS); in bios_set_mode() 70 struct mode_info *mi; in bios_probe() local 105 mi = GET_HEAP(struct mode_info, 1); in bios_probe() 106 mi->mode = VIDEO_FIRST_BIOS+mode; in bios_probe() 107 mi->depth = 0; /* text */ in bios_probe() 108 mi->x = rdfs16(0x44a); in bios_probe() 109 mi->y = rdfs8(0x484)+1; in bios_probe()
|
/linux-6.12.1/net/sched/ |
D | act_ife.c | 44 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-6.12.1/fs/nilfs2/ |
D | mdt.c | 447 struct nilfs_mdt_info *mi; in nilfs_mdt_init() local 449 mi = kzalloc(max(sizeof(*mi), objsz), GFP_NOFS); in nilfs_mdt_init() 450 if (!mi) in nilfs_mdt_init() 453 init_rwsem(&mi->mi_sem); in nilfs_mdt_init() 454 inode->i_private = mi; in nilfs_mdt_init() 502 struct nilfs_mdt_info *mi = NILFS_MDT(inode); in nilfs_mdt_set_entry_size() local 504 mi->mi_entry_size = entry_size; in nilfs_mdt_set_entry_size() 505 mi->mi_entries_per_block = i_blocksize(inode) / entry_size; in nilfs_mdt_set_entry_size() 506 mi->mi_first_entry_offset = DIV_ROUND_UP(header_size, entry_size); in nilfs_mdt_set_entry_size() 517 struct nilfs_mdt_info *mi = NILFS_MDT(inode); in nilfs_mdt_setup_shadow_map() local [all …]
|
/linux-6.12.1/Documentation/ABI/testing/ |
D | sysfs-bus-iio-sx9324 | 12 (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-6.12.1/arch/x86/crypto/ |
D | aes-gcm-aesni-x86_64.S | 292 // 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 …]
|
D | polyval-clmulni_asm.S | 36 #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-6.12.1/drivers/uio/ |
D | uio.c | 288 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-6.12.1/tools/perf/tests/ |
D | mem.c | 16 struct mem_info *mi = mem_info__new(); in check() local 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()
|