/Linux-v4.19/drivers/video/fbdev/omap/ |
D | lcd_mipid.c | 67 static void mipid_transfer(struct mipid_device *md, int cmd, const u8 *wbuf, in mipid_transfer() argument 75 BUG_ON(md->spi == NULL); in mipid_transfer() 116 r = spi_sync(md->spi, &m); in mipid_transfer() 118 dev_dbg(&md->spi->dev, "spi_sync %d\n", r); in mipid_transfer() 124 static inline void mipid_cmd(struct mipid_device *md, int cmd) in mipid_cmd() argument 126 mipid_transfer(md, cmd, NULL, 0, NULL, 0); in mipid_cmd() 129 static inline void mipid_write(struct mipid_device *md, in mipid_write() argument 132 mipid_transfer(md, reg, buf, len, NULL, 0); in mipid_write() 135 static inline void mipid_read(struct mipid_device *md, in mipid_read() argument 138 mipid_transfer(md, reg, NULL, 0, buf, len); in mipid_read() [all …]
|
/Linux-v4.19/drivers/md/ |
D | dm.c | 94 struct mapped_device *md; member 342 int dm_deleting_md(struct mapped_device *md) in dm_deleting_md() argument 344 return test_bit(DMF_DELETING, &md->flags); in dm_deleting_md() 349 struct mapped_device *md; in dm_blk_open() local 353 md = bdev->bd_disk->private_data; in dm_blk_open() 354 if (!md) in dm_blk_open() 357 if (test_bit(DMF_FREEING, &md->flags) || in dm_blk_open() 358 dm_deleting_md(md)) { in dm_blk_open() 359 md = NULL; in dm_blk_open() 363 dm_get(md); in dm_blk_open() [all …]
|
D | dm-era-target.c | 33 struct writeset_metadata md; member 73 ws->md.nr_bits = nr_blocks; in writeset_alloc() 74 ws->md.root = INVALID_WRITESET_ROOT; in writeset_alloc() 91 memset(ws->bits, 0, bitset_size(ws->md.nr_bits)); in writeset_init() 93 r = setup_on_disk_bitset(info, ws->md.nr_bits, &ws->md.root); in writeset_init() 137 r = dm_bitset_set_bit(info, ws->md.root, block, &ws->md.root); in writeset_test_and_set() 299 static int superblock_read_lock(struct era_metadata *md, in superblock_read_lock() argument 302 return dm_bm_read_lock(md->bm, SUPERBLOCK_LOCATION, in superblock_read_lock() 306 static int superblock_lock_zero(struct era_metadata *md, in superblock_lock_zero() argument 309 return dm_bm_write_lock_zero(md->bm, SUPERBLOCK_LOCATION, in superblock_lock_zero() [all …]
|
D | dm-rq.c | 33 bool dm_use_blk_mq(struct mapped_device *md) in dm_use_blk_mq() argument 35 return md->use_blk_mq; in dm_use_blk_mq() 57 int dm_request_based(struct mapped_device *md) in dm_request_based() argument 59 return queue_is_rq_based(md->queue); in dm_request_based() 164 static void rq_end_stats(struct mapped_device *md, struct request *orig) in rq_end_stats() argument 166 if (unlikely(dm_stats_used(&md->stats))) { in rq_end_stats() 169 dm_stats_account_io(&md->stats, rq_data_dir(orig), in rq_end_stats() 180 static void rq_completed(struct mapped_device *md, int rw, bool run_queue) in rq_completed() argument 182 struct request_queue *q = md->queue; in rq_completed() 185 atomic_dec(&md->pending[rw]); in rq_completed() [all …]
|
D | dm.h | 77 void dm_lock_md_type(struct mapped_device *md); 78 void dm_unlock_md_type(struct mapped_device *md); 79 void dm_set_md_type(struct mapped_device *md, enum dm_queue_mode type); 80 enum dm_queue_mode dm_get_md_type(struct mapped_device *md); 81 struct target_type *dm_get_immutable_target_type(struct mapped_device *md); 83 int dm_setup_md_queue(struct mapped_device *md, struct dm_table *t); 121 int dm_deleting_md(struct mapped_device *md); 126 int dm_suspended_md(struct mapped_device *md); 131 int dm_suspended_internally_md(struct mapped_device *md); 132 void dm_internal_suspend_fast(struct mapped_device *md); [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-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 …]
|
/Linux-v4.19/drivers/net/phy/ |
D | mdio-mux-bcm-iproc.c | 67 static void mdio_mux_iproc_config(struct iproc_mdiomux_desc *md) in mdio_mux_iproc_config() argument 73 val = readl(md->base + MDIO_SCAN_CTRL_OFFSET); in mdio_mux_iproc_config() 75 writel(val, md->base + MDIO_SCAN_CTRL_OFFSET); in mdio_mux_iproc_config() 77 if (md->core_clk) { in mdio_mux_iproc_config() 81 divisor = clk_get_rate(md->core_clk) / MDIO_OPERATING_FREQUENCY; in mdio_mux_iproc_config() 85 writel(val, md->base + MDIO_RATE_ADJ_EXT_OFFSET); in mdio_mux_iproc_config() 86 writel(val, md->base + MDIO_RATE_ADJ_INT_OFFSET); in mdio_mux_iproc_config() 153 struct iproc_mdiomux_desc *md = bus->priv; in iproc_mdiomux_read() local 156 ret = start_miim_ops(md->base, phyid, reg, 0, MDIO_CTRL_READ_OP); in iproc_mdiomux_read() 166 struct iproc_mdiomux_desc *md = bus->priv; in iproc_mdiomux_write() local [all …]
|
/Linux-v4.19/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 …]
|
/Linux-v4.19/arch/ia64/kernel/ |
D | efi.c | 255 is_memory_available (efi_memory_desc_t *md) in is_memory_available() argument 257 if (!(md->attribute & EFI_MEMORY_WB)) in is_memory_available() 260 switch (md->type) { in is_memory_available() 279 #define efi_md_size(md) (md->num_pages << EFI_PAGE_SHIFT) argument 288 efi_md_end(efi_memory_desc_t *md) in efi_md_end() argument 290 return (md->phys_addr + efi_md_size(md)); in efi_md_end() 294 efi_wb(efi_memory_desc_t *md) in efi_wb() argument 296 return (md->attribute & EFI_MEMORY_WB); in efi_wb() 300 efi_uc(efi_memory_desc_t *md) in efi_uc() argument 302 return (md->attribute & EFI_MEMORY_UC); in efi_uc() [all …]
|
/Linux-v4.19/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 …]
|
/Linux-v4.19/tools/perf/util/ |
D | mmap.c | 238 static int __perf_mmap__read_init(struct perf_mmap *md) in __perf_mmap__read_init() argument 240 u64 head = perf_mmap__read_head(md); in __perf_mmap__read_init() 241 u64 old = md->prev; in __perf_mmap__read_init() 242 unsigned char *data = md->base + page_size; in __perf_mmap__read_init() 245 md->start = md->overwrite ? head : old; in __perf_mmap__read_init() 246 md->end = md->overwrite ? old : head; in __perf_mmap__read_init() 248 if (md->start == md->end) in __perf_mmap__read_init() 251 size = md->end - md->start; in __perf_mmap__read_init() 252 if (size > (unsigned long)(md->mask) + 1) { in __perf_mmap__read_init() 253 if (!md->overwrite) { in __perf_mmap__read_init() [all …]
|
/Linux-v4.19/arch/arm64/kernel/ |
D | efi.c | 24 static __init pteval_t create_mapping_protection(efi_memory_desc_t *md) in create_mapping_protection() argument 26 u64 attr = md->attribute; in create_mapping_protection() 27 u32 type = md->type; in create_mapping_protection() 32 if (WARN_ONCE(!PAGE_ALIGNED(md->phys_addr), in create_mapping_protection() 63 int __init efi_create_mapping(struct mm_struct *mm, efi_memory_desc_t *md) in efi_create_mapping() argument 65 pteval_t prot_val = create_mapping_protection(md); in efi_create_mapping() 66 bool page_mappings_only = (md->type == EFI_RUNTIME_SERVICES_CODE || in efi_create_mapping() 67 md->type == EFI_RUNTIME_SERVICES_DATA); in efi_create_mapping() 69 if (!PAGE_ALIGNED(md->phys_addr) || in efi_create_mapping() 70 !PAGE_ALIGNED(md->num_pages << EFI_PAGE_SHIFT)) { in efi_create_mapping() [all …]
|
/Linux-v4.19/arch/x86/platform/efi/ |
D | efi.c | 104 efi_memory_desc_t *md; in efi_find_mirror() local 107 for_each_efi_memory_desc(md) { in efi_find_mirror() 108 unsigned long long start = md->phys_addr; in efi_find_mirror() 109 unsigned long long size = md->num_pages << EFI_PAGE_SHIFT; in efi_find_mirror() 112 if (md->attribute & EFI_MEMORY_MORE_RELIABLE) { in efi_find_mirror() 130 efi_memory_desc_t *md; in do_add_efi_memmap() local 132 for_each_efi_memory_desc(md) { in do_add_efi_memmap() 133 unsigned long long start = md->phys_addr; in do_add_efi_memmap() 134 unsigned long long size = md->num_pages << EFI_PAGE_SHIFT; in do_add_efi_memmap() 137 switch (md->type) { in do_add_efi_memmap() [all …]
|
D | quirks.c | 247 efi_memory_desc_t md; in efi_arch_mem_reserve() local 251 if (efi_mem_desc_lookup(addr, &md) || in efi_arch_mem_reserve() 252 md.type != EFI_BOOT_SERVICES_DATA) { in efi_arch_mem_reserve() 257 if (addr + size > md.phys_addr + (md.num_pages << EFI_PAGE_SHIFT)) { in efi_arch_mem_reserve() 263 if (md.attribute & EFI_MEMORY_RUNTIME) in efi_arch_mem_reserve() 272 mr.attribute = md.attribute | EFI_MEMORY_RUNTIME; in efi_arch_mem_reserve() 274 num_entries = efi_memmap_split_count(&md, &mr.range); in efi_arch_mem_reserve() 320 efi_memory_desc_t *md; in efi_reserve_boot_services() local 322 for_each_efi_memory_desc(md) { in efi_reserve_boot_services() 323 u64 start = md->phys_addr; in efi_reserve_boot_services() [all …]
|
D | efi_64.c | 62 efi_memory_desc_t *md; in early_code_mapping_set_exec() local 68 for_each_efi_memory_desc(md) { in early_code_mapping_set_exec() 69 if (md->type == EFI_RUNTIME_SERVICES_CODE || in early_code_mapping_set_exec() 70 md->type == EFI_BOOT_SERVICES_CODE) in early_code_mapping_set_exec() 71 efi_set_executable(md, executable); in early_code_mapping_set_exec() 411 static void __init __map_region(efi_memory_desc_t *md, u64 va) in __map_region() argument 417 if (!(md->attribute & EFI_MEMORY_WB)) in __map_region() 420 if (sev_active() && md->type != EFI_MEMORY_MAPPED_IO) in __map_region() 423 pfn = md->phys_addr >> PAGE_SHIFT; in __map_region() 424 if (kernel_map_pages_in_pgd(pgd, pfn, va, md->num_pages, flags)) in __map_region() [all …]
|
/Linux-v4.19/drivers/rapidio/devices/ |
D | rio_mport_cdev.c | 127 struct mport_dev *md; member 203 struct mport_dev *md; member 265 struct rio_mport *mport = priv->md->mport; in rio_mport_maint_rd() 310 struct rio_mport *mport = priv->md->mport; in rio_mport_maint_wr() 363 rio_mport_create_outbound_mapping(struct mport_dev *md, struct file *filp, in rio_mport_create_outbound_mapping() argument 367 struct rio_mport *mport = md->mport; in rio_mport_create_outbound_mapping() 387 map->md = md; in rio_mport_create_outbound_mapping() 389 list_add_tail(&map->node, &md->mappings); in rio_mport_create_outbound_mapping() 397 rio_mport_get_outbound_mapping(struct mport_dev *md, struct file *filp, in rio_mport_get_outbound_mapping() argument 404 mutex_lock(&md->buf_mutex); in rio_mport_get_outbound_mapping() [all …]
|
/Linux-v4.19/arch/arm/kernel/ |
D | efi.c | 17 efi_memory_desc_t *md = data; in set_permissions() local 20 if (md->attribute & EFI_MEMORY_RO) in set_permissions() 22 if (md->attribute & EFI_MEMORY_XP) in set_permissions() 29 efi_memory_desc_t *md) in efi_set_mapping_permissions() argument 33 base = md->virt_addr; in efi_set_mapping_permissions() 34 size = md->num_pages << EFI_PAGE_SHIFT; in efi_set_mapping_permissions() 44 return apply_to_page_range(mm, base, size, set_permissions, md); in efi_set_mapping_permissions() 49 int __init efi_create_mapping(struct mm_struct *mm, efi_memory_desc_t *md) in efi_create_mapping() argument 52 .virtual = md->virt_addr, in efi_create_mapping() 53 .pfn = __phys_to_pfn(md->phys_addr), in efi_create_mapping() [all …]
|
/Linux-v4.19/drivers/firmware/efi/ |
D | memmap.c | 214 int __init efi_memmap_split_count(efi_memory_desc_t *md, struct range *range) in efi_memmap_split_count() argument 220 start = md->phys_addr; in efi_memmap_split_count() 221 end = start + (md->num_pages << EFI_PAGE_SHIFT) - 1; in efi_memmap_split_count() 258 efi_memory_desc_t *md; in efi_memmap_insert() local 284 md = new; in efi_memmap_insert() 285 start = md->phys_addr; in efi_memmap_insert() 286 end = md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT) - 1; in efi_memmap_insert() 289 md->attribute |= m_attr; in efi_memmap_insert() 294 md->attribute |= m_attr; in efi_memmap_insert() 295 md->num_pages = (m_end - md->phys_addr + 1) >> in efi_memmap_insert() [all …]
|
D | arm-init.c | 29 static int __init is_memory(efi_memory_desc_t *md) in is_memory() argument 31 if (md->attribute & (EFI_MEMORY_WB|EFI_MEMORY_WT|EFI_MEMORY_WC)) in is_memory() 43 efi_memory_desc_t *md; in efi_to_phys() local 45 for_each_efi_memory_desc(md) { in efi_to_phys() 46 if (!(md->attribute & EFI_MEMORY_RUNTIME)) in efi_to_phys() 48 if (md->virt_addr == 0) in efi_to_phys() 51 if (md->virt_addr <= addr && in efi_to_phys() 52 (addr - md->virt_addr) < (md->num_pages << EFI_PAGE_SHIFT)) in efi_to_phys() 53 return md->phys_addr + addr - md->virt_addr; in efi_to_phys() 160 static __init int is_usable_memory(efi_memory_desc_t *md) in is_usable_memory() argument [all …]
|
D | memattr.c | 62 efi_memory_desc_t *md; in entry_is_valid() local 91 for_each_efi_memory_desc(md) { in entry_is_valid() 92 u64 md_paddr = md->phys_addr; in entry_is_valid() 93 u64 md_size = md->num_pages << EFI_PAGE_SHIFT; in entry_is_valid() 95 if (!(md->attribute & EFI_MEMORY_RUNTIME)) in entry_is_valid() 97 if (md->virt_addr == 0) { in entry_is_valid() 114 if (md->type != in->type) { in entry_is_valid() 119 out->virt_addr = in_paddr + (md->virt_addr - md_paddr); in entry_is_valid() 164 efi_memory_desc_t md; in efi_memattr_apply_permissions() local 170 &md); in efi_memattr_apply_permissions() [all …]
|
/Linux-v4.19/drivers/mmc/core/ |
D | block.c | 161 struct mmc_blk_data *md; member 175 struct mmc_blk_data *md; in mmc_blk_get() local 178 md = disk->private_data; in mmc_blk_get() 179 if (md && md->usage == 0) in mmc_blk_get() 180 md = NULL; in mmc_blk_get() 181 if (md) in mmc_blk_get() 182 md->usage++; in mmc_blk_get() 185 return md; in mmc_blk_get() 194 static void mmc_blk_put(struct mmc_blk_data *md) in mmc_blk_put() argument 197 md->usage--; in mmc_blk_put() [all …]
|
/Linux-v4.19/drivers/video/fbdev/matrox/ |
D | matroxfb_maven.c | 134 static int* get_ctrl_ptr(struct maven_data* md, int idx) { in get_ctrl_ptr() argument 135 return (int*)((char*)(md->primary_head) + maven_controls[idx].control); in get_ctrl_ptr() 339 static unsigned char maven_compute_deflicker (const struct maven_data* md) { in maven_compute_deflicker() argument 342 df = (md->version == MGATVO_B?0x40:0x00); in maven_compute_deflicker() 343 switch (md->primary_head->altout.tvo_params.deflicker) { in maven_compute_deflicker() 357 static void maven_compute_bwlevel (const struct maven_data* md, in maven_compute_bwlevel() argument 359 const int b = md->primary_head->altout.tvo_params.brightness + BLMIN; in maven_compute_bwlevel() 360 const int c = md->primary_head->altout.tvo_params.contrast; in maven_compute_bwlevel() 366 static const struct maven_gamma* maven_compute_gamma (const struct maven_data* md) { in maven_compute_gamma() argument 367 return maven_gamma + md->primary_head->altout.tvo_params.gamma; in maven_compute_gamma() [all …]
|
/Linux-v4.19/tools/testing/selftests/bpf/ |
D | test_tunnel_kern.c | 133 struct erspan_metadata md; in _erspan_set_tunnel() local 149 __builtin_memset(&md, 0, sizeof(md)); in _erspan_set_tunnel() 151 md.version = 1; in _erspan_set_tunnel() 152 md.u.index = bpf_htonl(123); in _erspan_set_tunnel() 157 md.version = 2; in _erspan_set_tunnel() 158 md.u.md2.dir = direction; in _erspan_set_tunnel() 159 md.u.md2.hwid = hwid & 0xf; in _erspan_set_tunnel() 160 md.u.md2.hwid_upper = (hwid >> 4) & 0x3; in _erspan_set_tunnel() 163 ret = bpf_skb_set_tunnel_opt(skb, &md, sizeof(md)); in _erspan_set_tunnel() 177 struct erspan_metadata md; in _erspan_get_tunnel() local [all …]
|
/Linux-v4.19/drivers/firmware/efi/libstub/ |
D | random.c | 43 static unsigned long get_entry_num_slots(efi_memory_desc_t *md, in get_entry_num_slots() argument 50 if (md->type != EFI_CONVENTIONAL_MEMORY) in get_entry_num_slots() 53 region_end = min((u64)ULONG_MAX, md->phys_addr + md->num_pages*EFI_PAGE_SIZE - 1); in get_entry_num_slots() 55 first_slot = round_up(md->phys_addr, align); in get_entry_num_slots() 70 #define MD_NUM_SLOTS(md) ((md)->virt_addr) argument 101 efi_memory_desc_t *md = (void *)memory_map + map_offset; in efi_random_alloc() local 104 slots = get_entry_num_slots(md, size, ilog2(align)); in efi_random_alloc() 105 MD_NUM_SLOTS(md) = slots; in efi_random_alloc() 124 efi_memory_desc_t *md = (void *)memory_map + map_offset; in efi_random_alloc() local 128 if (target_slot >= MD_NUM_SLOTS(md)) { in efi_random_alloc() [all …]
|