/linux/drivers/video/fbdev/omap/ |
A D | lcd_mipid.c | 151 set_data_lines(md, md->panel.data_lines); in send_init_string() 157 md->hw_guard_end = jiffies + md->hw_guard_wait; in hw_guard_start() 395 md->esd_check(md); in mipid_esd_work() 411 md->enabled = 1; in mipid_enable() 440 md->enabled = 0; in mipid_disable() 468 md->enabled = panel_enabled(md); in mipid_init() 470 if (md->enabled) in mipid_init() 543 md->panel.name, md->revision, md->panel.data_lines); in mipid_detect() 553 md = kzalloc(sizeof(*md), GFP_KERNEL); in mipid_spi_probe() 560 md->spi = spi; in mipid_spi_probe() [all …]
|
/linux/drivers/md/ |
A D | dm.c | 489 struct mapped_device *md = io->md; in start_io_acct() local 535 io->md = md; in alloc_io() 590 queue_work(md->wq, &md->work); in queue_io() 791 struct mapped_device *md = io->md; in dm_io_dec_pending() local 929 struct mapped_device *md = io->md; in clone_endio() local 1205 struct mapped_device *md = io->md; in __map_bio() local 1767 md->queue = md->disk->queue; in alloc_dev() 1782 md->disk->queue = md->queue; in alloc_dev() 1783 md->disk->private_data = md; in alloc_dev() 1787 md->dax_dev = alloc_dax(md, md->disk->disk_name, in alloc_dev() [all …]
|
A D | dm-era-target.c | 404 md->writeset_tree_info.tm = md->tm; in setup_writeset_tree_info() 440 &md->tm, &md->sm); in create_fresh_metadata() 584 &md->tm, &md->sm); in open_metadata() 806 md->current_writeset = &md->writesets[0]; in metadata_open() 884 r = dm_bitset_flush(&md->bitset_info, md->current_writeset->md.root, in metadata_era_archive() 885 &md->current_writeset->md.root); in metadata_era_archive() 891 ws_pack(&md->current_writeset->md, &value); in metadata_era_archive() 912 &md->writesets[1] : &md->writesets[0]; in next_writeset() 974 r = dm_bitset_flush(&md->bitset_info, md->current_writeset->md.root, in metadata_commit() 975 &md->current_writeset->md.root); in metadata_commit() [all …]
|
A D | dm-ima.c | 121 dev_name, dev_uuid, md->disk->major, md->disk->first_minor, in dm_ima_alloc_and_copy_device_data() 172 memset(&(md->ima), 0, sizeof(md->ima)); in dm_ima_reset_data() 343 if (table->md->ima.active_table.hash != table->md->ima.inactive_table.hash) in dm_ima_measure_on_table_load() 395 if (md->ima.active_table.hash != md->ima.inactive_table.hash) in dm_ima_measure_on_device_resume() 410 md->ima.active_table.hash = md->ima.inactive_table.hash; in dm_ima_measure_on_device_resume() 411 md->ima.active_table.hash_len = md->ima.inactive_table.hash_len; in dm_ima_measure_on_device_resume() 421 md->ima.active_table.num_targets = md->ima.inactive_table.num_targets; in dm_ima_measure_on_device_resume() 597 if (md->ima.active_table.hash != md->ima.inactive_table.hash) in dm_ima_measure_on_device_remove() 668 md->ima.inactive_table.hash != md->ima.active_table.hash) in dm_ima_measure_on_table_clear() 683 md->ima.inactive_table.hash = md->ima.active_table.hash; in dm_ima_measure_on_table_clear() [all …]
|
A D | dm-rq.c | 148 dm_put(md); in rq_completed() 159 struct mapped_device *md = tio->md; in dm_end_request() local 189 struct mapped_device *md = tio->md; in dm_requeue_original_request() local 260 struct mapped_device *md = tio->md; in dm_softirq_done() local 356 tio->md = md; in init_tio() 381 struct mapped_device *md = tio->md; in map_request() local 461 dm_get(md); in dm_start_request() 474 tio->md = md; in dm_mq_init_request() 489 struct mapped_device *md = tio->md; in dm_mq_queue_rq() local 549 md->tag_set->numa_node = md->numa_node_id; in dm_mq_init_request_queue() [all …]
|
A D | dm-zone.c | 62 if (dm_suspended_md(md)) in dm_blk_report_zones() 152 kvfree(md->zwp_offset); in dm_cleanup_zoned_dev() 153 md->zwp_offset = NULL; in dm_cleanup_zoned_dev() 154 md->nr_zones = 0; in dm_cleanup_zoned_dev() 205 if (!md->zwp_offset) { in dm_zone_revalidate_cb() 206 md->zwp_offset = in dm_zone_revalidate_cb() 209 if (!md->zwp_offset) in dm_zone_revalidate_cb() 242 if (md->nr_zones) in dm_revalidate_zones() 298 struct mapped_device *md = t->md; in dm_set_zones_restrictions() local 524 struct mapped_device *md = io->md; in dm_zone_map_bio() local [all …]
|
A D | dm-ioctl.c | 185 if (!md) in __get_dev_cell() 228 hc->md = md; in alloc_cell() 333 md = hc->md; in dm_hash_remove_all() 487 md = hc->md; in dm_hash_rename() 774 if (!hc || hc->md != md) { in dm_get_inactive_table() 939 md = hc->md; in find_device() 961 md = hc->md; in dev_remove() 1135 md = hc->md; in do_resume() 1472 if (!hc || hc->md != md) { in table_load() 1531 md = hc->md; in table_clear() [all …]
|
A D | dm.h | 81 void dm_lock_md_type(struct mapped_device *md); 82 void dm_unlock_md_type(struct mapped_device *md); 144 int dm_deleting_md(struct mapped_device *md); 149 int dm_suspended_md(struct mapped_device *md); 158 void dm_internal_resume(struct mapped_device *md); 180 int dm_sysfs_init(struct mapped_device *md); 181 void dm_sysfs_exit(struct mapped_device *md); 202 void dm_destroy(struct mapped_device *md); 204 int dm_open_count(struct mapped_device *md); 207 int dm_request_based(struct mapped_device *md); [all …]
|
A 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/drivers/net/mdio/ |
A D | mdio-mux-bcm-iproc.c | 67 if (md->core_clk) { in mdio_mux_iproc_config() 185 md = devm_kzalloc(&pdev->dev, sizeof(*md), GFP_KERNEL); in mdio_mux_iproc_probe() 186 if (!md) in mdio_mux_iproc_probe() 188 md->dev = &pdev->dev; in mdio_mux_iproc_probe() 191 if (IS_ERR(md->base)) in mdio_mux_iproc_probe() 203 if (!md->mii_bus) { in mdio_mux_iproc_probe() 211 md->core_clk = NULL; in mdio_mux_iproc_probe() 221 bus = md->mii_bus; in mdio_mux_iproc_probe() 222 bus->priv = md; in mdio_mux_iproc_probe() 239 rc = mdio_mux_init(md->dev, md->dev->of_node, mdio_mux_iproc_switch_fn, in mdio_mux_iproc_probe() [all …]
|
A D | mdio-mux-bcm6368.c | 48 if (md->ext_phy) in bcm6368_mdiomux_read() 69 if (md->ext_phy) in bcm6368_mdiomux_write() 96 md = devm_kzalloc(&pdev->dev, sizeof(*md), GFP_KERNEL); in bcm6368_mdiomux_probe() 97 if (!md) in bcm6368_mdiomux_probe() 110 if (!md->base) { in bcm6368_mdiomux_probe() 116 if (!md->mii_bus) { in bcm6368_mdiomux_probe() 121 bus = md->mii_bus; in bcm6368_mdiomux_probe() 122 bus->priv = md; in bcm6368_mdiomux_probe() 139 rc = mdio_mux_init(md->dev, md->dev->of_node, in bcm6368_mdiomux_probe() 140 bcm6368_mdiomux_switch_fn, &md->mux_handle, md, in bcm6368_mdiomux_probe() [all …]
|
/linux/arch/ia64/kernel/ |
A D | efi.c | 304 return (md->phys_addr + efi_md_size(md)); in efi_md_end() 376 md = p; in efi_get_pal_addr() 420 md->phys_addr + efi_md_size(md), in efi_get_pal_addr() 615 md = p; in efi_enter_virtual_mode() 622 md->virt_addr = (u64) __va(md->phys_addr); in efi_enter_virtual_mode() 627 md->virt_addr = ia64_remap(md->phys_addr, in efi_enter_virtual_mode() 640 md->virt_addr = ia64_remap(md->phys_addr, in efi_enter_virtual_mode() 713 for (md = kern_memmap; md->start != ~0UL; md++) { in kern_memory_descriptor() 767 if (md) in efi_mem_type() 777 if (md) in efi_mem_attributes() [all …]
|
/linux/drivers/soundwire/ |
A D | master.c | 65 md->bus->prop.clk_freq[i]); in clock_frequencies_show() 107 kfree(md); in sdw_master_device_release() 136 md = kzalloc(sizeof(*md), GFP_KERNEL); in sdw_master_device_add() 137 if (!md) in sdw_master_device_add() 140 md->dev.bus = &sdw_bus_type; in sdw_master_device_add() 142 md->dev.parent = parent; in sdw_master_device_add() 145 md->dev.fwnode = fwnode; in sdw_master_device_add() 157 put_device(&md->dev); in sdw_master_device_add() 162 md->bus = bus; in sdw_master_device_add() 163 bus->dev = &md->dev; in sdw_master_device_add() [all …]
|
/linux/drivers/clk/qcom/ |
A D | clk-regmap-mux-div.c | 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() 65 regmap_read(md->clkr.regmap, CMD_RCGR + md->reg_offset, &val); in mux_div_get_src_div() 72 regmap_read(md->clkr.regmap, CFG_RCGR + md->reg_offset, &val); in mux_div_get_src_div() 156 md->div = best_div; in __mux_div_set_rate_and_parent() 157 md->src = best_src; in __mux_div_set_rate_and_parent() [all …]
|
/linux/drivers/rapidio/devices/ |
A D | rio_mport_cdev.c | 383 map->md = md; in rio_mport_create_outbound_mapping() 462 struct mport_dev *md = priv->md; in rio_mport_obw_free() local 497 struct mport_dev *md = priv->md; in maint_hdid_set() local 519 struct mport_dev *md = priv->md; in maint_comptag_set() local 814 struct mport_dev *md = priv->md; in rio_dma_transfer() local 1105 map->md = md; in rio_mport_create_dma_mapping() 1118 struct mport_dev *md = priv->md; in rio_mport_alloc_dma() local 1145 struct mport_dev *md = priv->md; in rio_mport_free_dma() local 1232 map->md = md; in rio_mport_create_inbound_mapping() 1960 md = priv->md; in mport_cdev_release_dma() [all …]
|
/linux/arch/x86/platform/efi/ |
A D | efi.c | 110 efi_memory_desc_t *md; in efi_find_mirror() local 140 efi_memory_desc_t *md; in do_add_efi_memmap() local 150 switch (md->type) { in do_add_efi_memmap() 262 u64 end = (md->num_pages << EFI_PAGE_SHIFT) + md->phys_addr - 1; in efi_memmap_entry_valid() 336 md->phys_addr, in efi_print_memmap() 337 md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT) - 1, in efi_print_memmap() 510 prev_md = md; in efi_merge_regions() 516 prev_md = md; in efi_merge_regions() 525 md->attribute = 0; in efi_merge_regions() 528 prev_md = md; in efi_merge_regions() [all …]
|
/linux/arch/arm64/kernel/ |
A D | efi.c | 22 u64 attr = md->attribute; in create_mapping_protection() 23 u32 type = md->type; in create_mapping_protection() 66 if (!PAGE_ALIGNED(md->phys_addr) || in efi_create_mapping() 80 create_pgd_mapping(mm, md->phys_addr, md->virt_addr, in efi_create_mapping() 81 md->num_pages << EFI_PAGE_SHIFT, in efi_create_mapping() 88 efi_memory_desc_t *md = data; in set_permissions() local 91 if (md->attribute & EFI_MEMORY_RO) in set_permissions() 93 if (md->attribute & EFI_MEMORY_XP) in set_permissions() 100 efi_memory_desc_t *md) in efi_set_mapping_permissions() argument 113 md->num_pages << EFI_PAGE_SHIFT, in efi_set_mapping_permissions() [all …]
|
/linux/drivers/dma/ |
A D | uniphier-mdmac.c | 114 sg = &md->sgl[md->sg_cur]; in uniphier_mdmac_handle() 150 if (md) in uniphier_mdmac_start() 203 md = mc->md; in uniphier_mdmac_interrupt() 204 if (!md) in uniphier_mdmac_interrupt() 209 if (md->sg_cur >= md->sg_len) { in uniphier_mdmac_interrupt() 212 if (!md) in uniphier_mdmac_interrupt() 241 md = kzalloc(sizeof(*md), GFP_NOWAIT); in uniphier_mdmac_prep_slave_sg() 242 if (!md) in uniphier_mdmac_prep_slave_sg() 304 if (mc->md && mc->md->vd.tx.cookie == cookie) { in uniphier_mdmac_tx_status() 308 md = mc->md; in uniphier_mdmac_tx_status() [all …]
|
A D | milbeaut-hdmac.c | 122 sg = &md->sgl[md->sg_cur]; in milbeaut_chan_start() 167 if (md) in milbeaut_hdmac_start() 187 md = mc->md; in milbeaut_hdmac_interrupt() 188 if (!md) in milbeaut_hdmac_interrupt() 193 if (md->sg_cur >= md->sg_len) { in milbeaut_hdmac_interrupt() 268 md = kzalloc(sizeof(*md), GFP_NOWAIT); in milbeaut_hdmac_prep_slave_sg() 269 if (!md) in milbeaut_hdmac_prep_slave_sg() 345 if (mc->md && mc->md->vd.tx.cookie == cookie) { in milbeaut_hdmac_tx_status() 349 md = mc->md; in milbeaut_hdmac_tx_status() 350 sg = &md->sgl[md->sg_cur]; in milbeaut_hdmac_tx_status() [all …]
|
/linux/drivers/mmc/core/ |
A D | block.c | 188 if (md && !kref_get_unless_zero(&md->kref)) in mmc_blk_get() 192 return md; in mmc_blk_get() 214 kfree(md); in mmc_blk_kref_release() 366 if (md) { in mmc_blk_open() 810 if (!md) in mmc_blk_alternative_gpt_sector() 2378 md->disk = mmc_init_queue(&md->queue, card); in mmc_blk_alloc_req() 2388 md->queue.blkdata = md; in mmc_blk_alloc_req() 2395 md->disk->private_data = md; in mmc_blk_alloc_req() 2620 rpmb->md = md; in mmc_blk_alloc_rpmb_part() 2952 if (md->part_curr != md->part_type) { in mmc_blk_remove() [all …]
|
/linux/arch/riscv/kernel/ |
A D | efi.c | 21 u64 attr = md->attribute; in efimem_to_pgprot_map() 22 u32 type = md->type; in efimem_to_pgprot_map() 53 for (i = 0; i < md->num_pages; i++) 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() 71 if (md->attribute & EFI_MEMORY_XP) { in set_permissions() 81 efi_memory_desc_t *md) in efi_set_mapping_permissions() argument 93 return apply_to_page_range(mm, md->virt_addr, in efi_set_mapping_permissions() 94 md->num_pages << EFI_PAGE_SHIFT, in efi_set_mapping_permissions() [all …]
|
/linux/arch/arm/kernel/ |
A 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() 48 .virtual = md->virt_addr, in efi_create_mapping() 49 .pfn = __phys_to_pfn(md->phys_addr), in efi_create_mapping() 58 if (md->attribute & EFI_MEMORY_WB) in efi_create_mapping() 60 else if (md->attribute & EFI_MEMORY_WT) in efi_create_mapping() [all …]
|
/linux/drivers/firmware/efi/ |
A D | memmap.c | 320 md = new; in efi_memmap_insert() 322 end = md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT) - 1; in efi_memmap_insert() 331 md->num_pages = (m_end - md->phys_addr + 1) >> in efi_memmap_insert() 336 md = new; in efi_memmap_insert() 338 md->num_pages = (end - md->phys_addr + 1) >> in efi_memmap_insert() 344 md->num_pages = (m_start - md->phys_addr) >> in efi_memmap_insert() 349 md = new; in efi_memmap_insert() 357 md = new; in efi_memmap_insert() 366 md->num_pages = (m_start - md->phys_addr) >> in efi_memmap_insert() 371 md = new; in efi_memmap_insert() [all …]
|
A D | efi-init.c | 39 efi_memory_desc_t *md; in efi_to_phys() local 41 for_each_efi_memory_desc(md) { in efi_to_phys() 44 if (md->virt_addr == 0) in efi_to_phys() 47 if (md->virt_addr <= addr && in efi_to_phys() 48 (addr - md->virt_addr) < (md->num_pages << EFI_PAGE_SHIFT)) in efi_to_phys() 49 return md->phys_addr + addr - md->virt_addr; in efi_to_phys() 136 switch (md->type) { in is_usable_memory() 167 efi_memory_desc_t *md; in reserve_regions() local 182 paddr = md->phys_addr; in reserve_regions() 183 npages = md->num_pages; in reserve_regions() [all …]
|
/linux/drivers/video/fbdev/matrox/ |
A D | matroxfb_maven.c | 490 g = maven_compute_gamma(md); in maven_init_TVdata() 770 maven_init_TVdata(md, m); in maven_compute_timming() 1127 maven_set_reg(md->client, 0x93, maven_compute_deflicker(md)); in maven_set_control() 1165 return maven_resync(md); in maven_out_start() 1207 md->primary_head = minfo; in maven_init_client() 1208 md->client = clnt; in maven_init_client() 1212 minfo->outputs[1].data = md; in maven_init_client() 1216 md->version = MGATVO_B; in maven_init_client() 1219 md->version = MGATVO_C; in maven_init_client() 1238 if (md->primary_head) { in maven_shutdown_client() [all …]
|