/kernel/linux/linux-5.10/drivers/video/fbdev/omap/ |
D | lcd_mipid.c | 54 static void mipid_transfer(struct mipid_device *md, int cmd, const u8 *wbuf, in mipid_transfer() argument 62 BUG_ON(md->spi == NULL); in mipid_transfer() 103 r = spi_sync(md->spi, &m); in mipid_transfer() 105 dev_dbg(&md->spi->dev, "spi_sync %d\n", r); in mipid_transfer() 111 static inline void mipid_cmd(struct mipid_device *md, int cmd) in mipid_cmd() argument 113 mipid_transfer(md, cmd, NULL, 0, NULL, 0); in mipid_cmd() 116 static inline void mipid_write(struct mipid_device *md, in mipid_write() argument 119 mipid_transfer(md, reg, buf, len, NULL, 0); in mipid_write() 122 static inline void mipid_read(struct mipid_device *md, in mipid_read() argument 125 mipid_transfer(md, reg, NULL, 0, buf, len); in mipid_read() [all …]
|
/kernel/linux/linux-5.10/drivers/md/ |
D | dm.c | 97 struct mapped_device *md; member 338 int dm_deleting_md(struct mapped_device *md) in dm_deleting_md() argument 340 return test_bit(DMF_DELETING, &md->flags); in dm_deleting_md() 345 struct mapped_device *md; in dm_blk_open() local 349 md = bdev->bd_disk->private_data; in dm_blk_open() 350 if (!md) in dm_blk_open() 353 if (test_bit(DMF_FREEING, &md->flags) || in dm_blk_open() 354 dm_deleting_md(md)) { in dm_blk_open() 355 md = NULL; in dm_blk_open() 359 dm_get(md); in dm_blk_open() [all …]
|
D | dm-era-target.c | 34 struct writeset_metadata md; member 94 ws->md.nr_bits = nr_blocks; in writeset_init() 95 r = setup_on_disk_bitset(info, ws->md.nr_bits, &ws->md.root); in writeset_init() 139 r = dm_bitset_set_bit(info, ws->md.root, block, &ws->md.root); in writeset_test_and_set() 301 static int superblock_read_lock(struct era_metadata *md, in superblock_read_lock() argument 304 return dm_bm_read_lock(md->bm, SUPERBLOCK_LOCATION, in superblock_read_lock() 308 static int superblock_lock_zero(struct era_metadata *md, in superblock_lock_zero() argument 311 return dm_bm_write_lock_zero(md->bm, SUPERBLOCK_LOCATION, in superblock_lock_zero() 315 static int superblock_lock(struct era_metadata *md, in superblock_lock() argument 318 return dm_bm_write_lock(md->bm, SUPERBLOCK_LOCATION, in superblock_lock() [all …]
|
D | dm-rq.c | 19 struct mapped_device *md; member 60 int dm_request_based(struct mapped_device *md) in dm_request_based() argument 62 return queue_is_mq(md->queue); in dm_request_based() 128 static void rq_end_stats(struct mapped_device *md, struct request *orig) in rq_end_stats() argument 130 if (unlikely(dm_stats_used(&md->stats))) { in rq_end_stats() 133 dm_stats_account_io(&md->stats, rq_data_dir(orig), in rq_end_stats() 144 static void rq_completed(struct mapped_device *md) in rq_completed() argument 149 dm_put(md); in rq_completed() 160 struct mapped_device *md = tio->md; in dm_end_request() local 166 rq_end_stats(md, rq); in dm_end_request() [all …]
|
D | dm-ioctl.c | 44 struct mapped_device *md; member 119 dm_get(hc->md); in __get_name_cell() 133 dm_get(hc->md); in __get_uuid_cell() 142 struct mapped_device *md; in __get_dev_cell() local 145 md = dm_get_md(huge_decode_dev(dev)); in __get_dev_cell() 146 if (!md) in __get_dev_cell() 149 hc = dm_get_mdptr(md); in __get_dev_cell() 151 dm_put(md); in __get_dev_cell() 162 struct mapped_device *md) in alloc_cell() argument 190 hc->md = md; in alloc_cell() [all …]
|
D | dm.h | 79 void dm_lock_md_type(struct mapped_device *md); 80 void dm_unlock_md_type(struct mapped_device *md); 81 void dm_set_md_type(struct mapped_device *md, enum dm_queue_mode type); 82 enum dm_queue_mode dm_get_md_type(struct mapped_device *md); 83 struct target_type *dm_get_immutable_target_type(struct mapped_device *md); 85 int dm_setup_md_queue(struct mapped_device *md, struct dm_table *t); 118 int dm_deleting_md(struct mapped_device *md); 123 int dm_suspended_md(struct mapped_device *md); 128 int dm_suspended_internally_md(struct mapped_device *md); 129 void dm_internal_suspend_fast(struct mapped_device *md); [all …]
|
D | dm-sysfs.c | 26 struct mapped_device *md; in dm_attr_show() local 33 md = dm_get_from_kobject(kobj); in dm_attr_show() 34 if (!md) in dm_attr_show() 37 ret = dm_attr->show(md, page); in dm_attr_show() 38 dm_put(md); in dm_attr_show() 51 struct mapped_device *md; in dm_attr_store() local 58 md = dm_get_from_kobject(kobj); in dm_attr_store() 59 if (!md) in dm_attr_store() 62 ret = dm_attr->store(md, page, count); in dm_attr_store() 63 dm_put(md); in dm_attr_store() [all …]
|
/kernel/linux/linux-5.10/drivers/net/mdio/ |
D | mdio-mux-bcm-iproc.c | 57 static void mdio_mux_iproc_config(struct iproc_mdiomux_desc *md) in mdio_mux_iproc_config() argument 63 val = readl(md->base + MDIO_SCAN_CTRL_OFFSET); in mdio_mux_iproc_config() 65 writel(val, md->base + MDIO_SCAN_CTRL_OFFSET); in mdio_mux_iproc_config() 67 if (md->core_clk) { in mdio_mux_iproc_config() 71 divisor = clk_get_rate(md->core_clk) / MDIO_OPERATING_FREQUENCY; in mdio_mux_iproc_config() 75 writel(val, md->base + MDIO_RATE_ADJ_EXT_OFFSET); in mdio_mux_iproc_config() 76 writel(val, md->base + MDIO_RATE_ADJ_INT_OFFSET); in mdio_mux_iproc_config() 136 struct iproc_mdiomux_desc *md = bus->priv; in iproc_mdiomux_read() local 139 ret = start_miim_ops(md->base, phyid, reg, 0, MDIO_CTRL_READ_OP); in iproc_mdiomux_read() 149 struct iproc_mdiomux_desc *md = bus->priv; in iproc_mdiomux_write() local [all …]
|
/kernel/linux/linux-5.10/drivers/soundwire/ |
D | master.c | 42 struct sdw_master_device *md = dev_to_sdw_master_device(dev); \ 43 return sprintf(buf, format_string, md->bus->prop.field); \ 59 struct sdw_master_device *md = dev_to_sdw_master_device(dev); in clock_frequencies_show() local 63 for (i = 0; i < md->bus->prop.num_clk_freq; i++) in clock_frequencies_show() 65 md->bus->prop.clk_freq[i]); in clock_frequencies_show() 75 struct sdw_master_device *md = dev_to_sdw_master_device(dev); in clock_gears_show() local 79 for (i = 0; i < md->bus->prop.num_clk_gears; i++) in clock_gears_show() 81 md->bus->prop.clk_gears[i]); in clock_gears_show() 105 struct sdw_master_device *md = dev_to_sdw_master_device(dev); in sdw_master_device_release() local 107 kfree(md); in sdw_master_device_release() [all …]
|
/kernel/linux/linux-5.10/drivers/clk/qcom/ |
D | clk-regmap-mux-div.c | 23 int mux_div_set_src_div(struct clk_regmap_mux_div *md, u32 src, u32 div) in mux_div_set_src_div() argument 27 const char *name = clk_hw_get_name(&md->clkr.hw); in mux_div_set_src_div() 29 val = (div << md->hid_shift) | (src << md->src_shift); in mux_div_set_src_div() 30 mask = ((BIT(md->hid_width) - 1) << md->hid_shift) | in mux_div_set_src_div() 31 ((BIT(md->src_width) - 1) << md->src_shift); in mux_div_set_src_div() 33 ret = regmap_update_bits(md->clkr.regmap, CFG_RCGR + md->reg_offset, in mux_div_set_src_div() 38 ret = regmap_update_bits(md->clkr.regmap, CMD_RCGR + md->reg_offset, in mux_div_set_src_div() 45 ret = regmap_read(md->clkr.regmap, CMD_RCGR + md->reg_offset, in mux_div_set_src_div() 59 static void mux_div_get_src_div(struct clk_regmap_mux_div *md, u32 *src, in mux_div_get_src_div() argument 63 const char *name = clk_hw_get_name(&md->clkr.hw); in mux_div_get_src_div() [all …]
|
/kernel/linux/linux-5.10/arch/ia64/kernel/ |
D | efi.c | 267 is_memory_available (efi_memory_desc_t *md) in is_memory_available() argument 269 if (!(md->attribute & EFI_MEMORY_WB)) in is_memory_available() 272 switch (md->type) { in is_memory_available() 291 #define efi_md_size(md) (md->num_pages << EFI_PAGE_SHIFT) argument 300 efi_md_end(efi_memory_desc_t *md) in efi_md_end() argument 302 return (md->phys_addr + efi_md_size(md)); in efi_md_end() 306 efi_wb(efi_memory_desc_t *md) in efi_wb() argument 308 return (md->attribute & EFI_MEMORY_WB); in efi_wb() 312 efi_uc(efi_memory_desc_t *md) in efi_uc() argument 314 return (md->attribute & EFI_MEMORY_UC); in efi_uc() [all …]
|
/kernel/linux/linux-5.10/arch/mips/pci/ |
D | msi-xlp.c | 134 struct xlp_msi_data *md = irq_data_get_irq_chip_data(d); in xlp_msi_enable() local 139 spin_lock_irqsave(&md->msi_lock, flags); in xlp_msi_enable() 140 md->msi_enabled_mask |= 1u << vec; in xlp_msi_enable() 142 nlm_write_reg(md->lnkbase, PCIE_9XX_MSI_EN, in xlp_msi_enable() 143 md->msi_enabled_mask); in xlp_msi_enable() 145 nlm_write_reg(md->lnkbase, PCIE_MSI_EN, md->msi_enabled_mask); in xlp_msi_enable() 146 spin_unlock_irqrestore(&md->msi_lock, flags); in xlp_msi_enable() 151 struct xlp_msi_data *md = irq_data_get_irq_chip_data(d); in xlp_msi_disable() local 156 spin_lock_irqsave(&md->msi_lock, flags); in xlp_msi_disable() 157 md->msi_enabled_mask &= ~(1u << vec); in xlp_msi_disable() [all …]
|
/kernel/linux/linux-5.10/arch/arm64/kernel/ |
D | efi.c | 20 static __init pteval_t create_mapping_protection(efi_memory_desc_t *md) in create_mapping_protection() argument 22 u64 attr = md->attribute; in create_mapping_protection() 23 u32 type = md->type; in create_mapping_protection() 28 if (WARN_ONCE(!PAGE_ALIGNED(md->phys_addr), in create_mapping_protection() 59 int __init efi_create_mapping(struct mm_struct *mm, efi_memory_desc_t *md) in efi_create_mapping() argument 61 pteval_t prot_val = create_mapping_protection(md); in efi_create_mapping() 62 bool page_mappings_only = (md->type == EFI_RUNTIME_SERVICES_CODE || in efi_create_mapping() 63 md->type == EFI_RUNTIME_SERVICES_DATA); in efi_create_mapping() 65 if (!PAGE_ALIGNED(md->phys_addr) || in efi_create_mapping() 66 !PAGE_ALIGNED(md->num_pages << EFI_PAGE_SHIFT)) { in efi_create_mapping() [all …]
|
/kernel/linux/linux-5.10/drivers/rapidio/devices/ |
D | rio_mport_cdev.c | 123 struct mport_dev *md; member 199 struct mport_dev *md; member 261 struct rio_mport *mport = priv->md->mport; in rio_mport_maint_rd() 306 struct rio_mport *mport = priv->md->mport; in rio_mport_maint_wr() 359 rio_mport_create_outbound_mapping(struct mport_dev *md, struct file *filp, in rio_mport_create_outbound_mapping() argument 363 struct rio_mport *mport = md->mport; in rio_mport_create_outbound_mapping() 383 map->md = md; in rio_mport_create_outbound_mapping() 385 list_add_tail(&map->node, &md->mappings); in rio_mport_create_outbound_mapping() 393 rio_mport_get_outbound_mapping(struct mport_dev *md, struct file *filp, in rio_mport_get_outbound_mapping() argument 400 mutex_lock(&md->buf_mutex); in rio_mport_get_outbound_mapping() [all …]
|
/kernel/linux/linux-5.10/arch/x86/platform/efi/ |
D | efi.c | 110 efi_memory_desc_t *md; in efi_find_mirror() local 116 for_each_efi_memory_desc(md) { in efi_find_mirror() 117 unsigned long long start = md->phys_addr; in efi_find_mirror() 118 unsigned long long size = md->num_pages << EFI_PAGE_SHIFT; in efi_find_mirror() 121 if (md->attribute & EFI_MEMORY_MORE_RELIABLE) { in efi_find_mirror() 140 efi_memory_desc_t *md; in do_add_efi_memmap() local 145 for_each_efi_memory_desc(md) { in do_add_efi_memmap() 146 unsigned long long start = md->phys_addr; in do_add_efi_memmap() 147 unsigned long long size = md->num_pages << EFI_PAGE_SHIFT; in do_add_efi_memmap() 150 switch (md->type) { in do_add_efi_memmap() [all …]
|
D | efi_32.c | 36 void __init efi_map_region(efi_memory_desc_t *md) in efi_map_region() argument 42 start_pfn = PFN_DOWN(md->phys_addr); in efi_map_region() 43 size = md->num_pages << PAGE_SHIFT; in efi_map_region() 44 end = md->phys_addr + size; in efi_map_region() 48 va = __va(md->phys_addr); in efi_map_region() 50 if (!(md->attribute & EFI_MEMORY_WB)) in efi_map_region() 51 set_memory_uc((unsigned long)va, md->num_pages); in efi_map_region() 53 va = ioremap_cache(md->phys_addr, size); in efi_map_region() 56 md->virt_addr = (unsigned long)va; in efi_map_region() 58 pr_err("ioremap of 0x%llX failed!\n", md->phys_addr); in efi_map_region() [all …]
|
/kernel/linux/linux-5.10/arch/arm/kernel/ |
D | efi.c | 13 efi_memory_desc_t *md = data; in set_permissions() local 16 if (md->attribute & EFI_MEMORY_RO) in set_permissions() 18 if (md->attribute & EFI_MEMORY_XP) in set_permissions() 25 efi_memory_desc_t *md) in efi_set_mapping_permissions() argument 29 base = md->virt_addr; in efi_set_mapping_permissions() 30 size = md->num_pages << EFI_PAGE_SHIFT; in efi_set_mapping_permissions() 40 return apply_to_page_range(mm, base, size, set_permissions, md); in efi_set_mapping_permissions() 45 int __init efi_create_mapping(struct mm_struct *mm, efi_memory_desc_t *md) in efi_create_mapping() argument 48 .virtual = md->virt_addr, in efi_create_mapping() 49 .pfn = __phys_to_pfn(md->phys_addr), in efi_create_mapping() [all …]
|
/kernel/linux/linux-5.10/arch/riscv/kernel/ |
D | efi.c | 19 static __init pgprot_t efimem_to_pgprot_map(efi_memory_desc_t *md) in efimem_to_pgprot_map() argument 21 u64 attr = md->attribute; in efimem_to_pgprot_map() 22 u32 type = md->type; in efimem_to_pgprot_map() 46 int __init efi_create_mapping(struct mm_struct *mm, efi_memory_desc_t *md) in efi_create_mapping() argument 48 pgprot_t prot = __pgprot(pgprot_val(efimem_to_pgprot_map(md)) & in efi_create_mapping() 53 for (i = 0; i < md->num_pages; i++) in efi_create_mapping() 54 create_pgd_mapping(mm->pgd, md->virt_addr + i * PAGE_SIZE, in efi_create_mapping() 55 md->phys_addr + i * PAGE_SIZE, in efi_create_mapping() 62 efi_memory_desc_t *md = data; in set_permissions() local 66 if (md->attribute & EFI_MEMORY_RO) { in set_permissions() [all …]
|
/kernel/linux/linux-5.10/drivers/dma/ |
D | uniphier-mdmac.c | 62 struct uniphier_mdmac_desc *md; member 94 mc->md = NULL; in uniphier_mdmac_next_desc() 100 mc->md = to_uniphier_mdmac_desc(vd); in uniphier_mdmac_next_desc() 102 return mc->md; in uniphier_mdmac_next_desc() 107 struct uniphier_mdmac_desc *md) in uniphier_mdmac_handle() argument 114 sg = &md->sgl[md->sg_cur]; in uniphier_mdmac_handle() 116 if (md->dir == DMA_MEM_TO_DEV) { in uniphier_mdmac_handle() 147 struct uniphier_mdmac_desc *md; in uniphier_mdmac_start() local 149 md = uniphier_mdmac_next_desc(mc); in uniphier_mdmac_start() 150 if (md) in uniphier_mdmac_start() [all …]
|
D | milbeaut-hdmac.c | 70 struct milbeaut_hdmac_desc *md; member 103 mc->md = NULL; in milbeaut_hdmac_next_desc() 109 mc->md = to_milbeaut_hdmac_desc(vd); in milbeaut_hdmac_next_desc() 111 return mc->md; in milbeaut_hdmac_next_desc() 116 struct milbeaut_hdmac_desc *md) in milbeaut_chan_start() argument 122 sg = &md->sgl[md->sg_cur]; in milbeaut_chan_start() 126 if (md->dir == DMA_MEM_TO_DEV) { in milbeaut_chan_start() 164 struct milbeaut_hdmac_desc *md; in milbeaut_hdmac_start() local 166 md = milbeaut_hdmac_next_desc(mc); in milbeaut_hdmac_start() 167 if (md) in milbeaut_hdmac_start() [all …]
|
/kernel/linux/linux-5.10/drivers/mmc/core/ |
D | block.c | 159 struct mmc_blk_data *md; member 178 struct mmc_blk_data *md; in mmc_blk_get() local 181 md = disk->private_data; in mmc_blk_get() 182 if (md && md->usage == 0) in mmc_blk_get() 183 md = NULL; in mmc_blk_get() 184 if (md) in mmc_blk_get() 185 md->usage++; in mmc_blk_get() 188 return md; in mmc_blk_get() 197 static void mmc_blk_put(struct mmc_blk_data *md) in mmc_blk_put() argument 200 md->usage--; in mmc_blk_put() [all …]
|
/kernel/uniproton/ |
D | README.md | 13 [源码目录介绍](./doc/design/architecture_design.md) 17 [hello word示例](./doc/getting_started.md) 21 [编译步骤](./doc/UniProton_build.md) 26 - [任务](./doc/design/task.md) 27 - [中断](./doc/design/hwi.md) 28 - [事件](./doc/design/event.md) 29 - [队列](./doc/design/queue.md) 30 - [信号量](./doc/design/sem.md) 31 - [内存管理](./doc/design/mem.md) 32 - [软件定时器](./doc/design/timer.md) [all …]
|
/kernel/linux/linux-5.10/drivers/firmware/efi/ |
D | memmap.c | 250 int __init efi_memmap_split_count(efi_memory_desc_t *md, struct range *range) in efi_memmap_split_count() argument 256 start = md->phys_addr; in efi_memmap_split_count() 257 end = start + (md->num_pages << EFI_PAGE_SHIFT) - 1; in efi_memmap_split_count() 294 efi_memory_desc_t *md; in efi_memmap_insert() local 320 md = new; in efi_memmap_insert() 321 start = md->phys_addr; in efi_memmap_insert() 322 end = md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT) - 1; in efi_memmap_insert() 325 md->attribute |= m_attr; in efi_memmap_insert() 330 md->attribute |= m_attr; in efi_memmap_insert() 331 md->num_pages = (m_end - md->phys_addr + 1) >> in efi_memmap_insert() [all …]
|
D | memattr.c | 60 efi_memory_desc_t *md; in entry_is_valid() local 84 for_each_efi_memory_desc(md) { in entry_is_valid() 85 u64 md_paddr = md->phys_addr; in entry_is_valid() 86 u64 md_size = md->num_pages << EFI_PAGE_SHIFT; in entry_is_valid() 88 if (!(md->attribute & EFI_MEMORY_RUNTIME)) in entry_is_valid() 90 if (md->virt_addr == 0 && md->phys_addr != 0) { in entry_is_valid() 107 if (md->type != in->type) { in entry_is_valid() 112 out->virt_addr = in_paddr + (md->virt_addr - md_paddr); in entry_is_valid() 157 efi_memory_desc_t md; in efi_memattr_apply_permissions() local 163 &md); in efi_memattr_apply_permissions() [all …]
|
/kernel/linux/linux-5.10/drivers/firmware/efi/libstub/ |
D | randomalloc.c | 17 static unsigned long get_entry_num_slots(efi_memory_desc_t *md, in get_entry_num_slots() argument 24 if (md->type != EFI_CONVENTIONAL_MEMORY) in get_entry_num_slots() 28 (md->attribute & EFI_MEMORY_SP)) in get_entry_num_slots() 31 region_end = min(md->phys_addr + md->num_pages * EFI_PAGE_SIZE - 1, in get_entry_num_slots() 36 first_slot = round_up(md->phys_addr, align); in get_entry_num_slots() 51 #define MD_NUM_SLOTS(md) ((md)->virt_addr) argument 83 efi_memory_desc_t *md = (void *)memory_map + map_offset; in efi_random_alloc() local 86 slots = get_entry_num_slots(md, size, ilog2(align)); in efi_random_alloc() 87 MD_NUM_SLOTS(md) = slots; in efi_random_alloc() 106 efi_memory_desc_t *md = (void *)memory_map + map_offset; in efi_random_alloc() local [all …]
|