/openbmc/linux/drivers/video/fbdev/omap/ |
H A D | lcd_mipid.c | 56 static void mipid_transfer(struct mipid_device *md, int cmd, const u8 *wbuf, in mipid_transfer() argument 64 BUG_ON(md->spi == NULL); in mipid_transfer() 105 r = spi_sync(md->spi, &m); in mipid_transfer() 107 dev_dbg(&md->spi->dev, "spi_sync %d\n", r); in mipid_transfer() 113 static inline void mipid_cmd(struct mipid_device *md, int cmd) in mipid_cmd() argument 115 mipid_transfer(md, cmd, NULL, 0, NULL, 0); in mipid_cmd() 118 static inline void mipid_write(struct mipid_device *md, in mipid_write() argument 121 mipid_transfer(md, reg, buf, len, NULL, 0); in mipid_write() 124 static inline void mipid_read(struct mipid_device *md, in mipid_read() argument 127 mipid_transfer(md, reg, NULL, 0, buf, len); in mipid_read() [all …]
|
/openbmc/linux/drivers/md/ |
H A D | dm.c | 308 int dm_deleting_md(struct mapped_device *md) in dm_deleting_md() argument 310 return test_bit(DMF_DELETING, &md->flags); in dm_deleting_md() 315 struct mapped_device *md; in dm_blk_open() local 319 md = disk->private_data; in dm_blk_open() 320 if (!md) in dm_blk_open() 323 if (test_bit(DMF_FREEING, &md->flags) || in dm_blk_open() 324 dm_deleting_md(md)) { in dm_blk_open() 325 md = NULL; in dm_blk_open() 329 dm_get(md); in dm_blk_open() 330 atomic_inc(&md->open_count); in dm_blk_open() [all …]
|
H A D | dm-ima.c | 67 static int dm_ima_alloc_and_copy_name_uuid(struct mapped_device *md, char **dev_name, in dm_ima_alloc_and_copy_name_uuid() argument 83 r = dm_copy_name_and_uuid(md, *dev_name, *dev_uuid); in dm_ima_alloc_and_copy_name_uuid() 102 static int dm_ima_alloc_and_copy_device_data(struct mapped_device *md, char **device_data, in dm_ima_alloc_and_copy_device_data() argument 108 r = dm_ima_alloc_and_copy_name_uuid(md, &dev_name, &dev_uuid, noio); in dm_ima_alloc_and_copy_device_data() 120 dev_name, dev_uuid, md->disk->major, md->disk->first_minor, in dm_ima_alloc_and_copy_device_data() 121 md->disk->minors, num_targets); in dm_ima_alloc_and_copy_device_data() 149 static int dm_ima_alloc_and_copy_capacity_str(struct mapped_device *md, char **capacity_str, in dm_ima_alloc_and_copy_capacity_str() argument 154 capacity = get_capacity(md->disk); in dm_ima_alloc_and_copy_capacity_str() 169 void dm_ima_reset_data(struct mapped_device *md) in dm_ima_reset_data() argument 171 memset(&(md->ima), 0, sizeof(md->ima)); in dm_ima_reset_data() [all …]
|
H A D | dm-era-target.c | 36 struct writeset_metadata md; member 96 ws->md.nr_bits = nr_blocks; in writeset_init() 97 r = setup_on_disk_bitset(info, ws->md.nr_bits, &ws->md.root); in writeset_init() 142 r = dm_bitset_set_bit(info, ws->md.root, block, &ws->md.root); in writeset_test_and_set() 311 static int superblock_read_lock(struct era_metadata *md, in superblock_read_lock() argument 314 return dm_bm_read_lock(md->bm, SUPERBLOCK_LOCATION, in superblock_read_lock() 318 static int superblock_lock_zero(struct era_metadata *md, in superblock_lock_zero() argument 321 return dm_bm_write_lock_zero(md->bm, SUPERBLOCK_LOCATION, in superblock_lock_zero() 325 static int superblock_lock(struct era_metadata *md, in superblock_lock() argument 328 return dm_bm_write_lock(md->bm, SUPERBLOCK_LOCATION, in superblock_lock() [all …]
|
H A D | dm-rq.c | 19 struct mapped_device *md; member 59 int dm_request_based(struct mapped_device *md) in dm_request_based() argument 61 return queue_is_mq(md->queue); in dm_request_based() 127 static void rq_end_stats(struct mapped_device *md, struct request *orig) in rq_end_stats() argument 129 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() 140 * Don't touch any member of the md after calling this function because 141 * the md may be freed in dm_put() at the end of this function. 144 static void rq_completed(struct mapped_device *md) in rq_completed() argument 149 dm_put(md); in rq_completed() [all …]
|
H A D | dm-zone.c | 21 static int dm_blk_do_report_zones(struct mapped_device *md, struct dm_table *t, in dm_blk_do_report_zones() argument 25 struct gendisk *disk = md->disk; in dm_blk_do_report_zones() 59 struct mapped_device *md = disk->private_data; in dm_blk_report_zones() local 63 if (dm_suspended_md(md)) in dm_blk_report_zones() 66 map = dm_get_live_table(md, &srcu_idx); in dm_blk_report_zones() 70 ret = dm_blk_do_report_zones(md, map, sector, nr_zones, cb, data); in dm_blk_report_zones() 72 dm_put_live_table(md, srcu_idx); in dm_blk_report_zones() 125 bool dm_is_zone_write(struct mapped_device *md, struct bio *bio) in dm_is_zone_write() argument 127 struct request_queue *q = md->queue; in dm_is_zone_write() 141 void dm_cleanup_zoned_dev(struct mapped_device *md) in dm_cleanup_zoned_dev() argument [all …]
|
H A D | dm-sysfs.c | 15 ssize_t (*show)(struct mapped_device *md, char *p); 16 ssize_t (*store)(struct mapped_device *md, const char *p, size_t count); 27 struct mapped_device *md; in dm_attr_show() local 34 md = dm_get_from_kobject(kobj); in dm_attr_show() 35 if (!md) in dm_attr_show() 38 ret = dm_attr->show(md, page); in dm_attr_show() 39 dm_put(md); in dm_attr_show() 52 struct mapped_device *md; in dm_attr_store() local 59 md = dm_get_from_kobject(kobj); in dm_attr_store() 60 if (!md) in dm_attr_store() [all …]
|
H A D | dm-ioctl.c | 52 struct mapped_device *md; member 99 dm_get(hc->md); in __get_name_cell() 118 dm_get(hc->md); in __get_uuid_cell() 195 struct mapped_device *md; in __get_dev_cell() local 198 md = dm_get_md(huge_decode_dev(dev)); in __get_dev_cell() 199 if (!md) in __get_dev_cell() 202 hc = dm_get_mdptr(md); in __get_dev_cell() 204 dm_put(md); in __get_dev_cell() 217 struct mapped_device *md) in alloc_cell() argument 244 hc->md = md; in alloc_cell() [all …]
|
/openbmc/linux/drivers/net/wwan/t7xx/ |
H A D | t7xx_modem_ops.c | 82 struct t7xx_modem *md = t7xx_dev->md; in t7xx_pci_mhccif_isr() local 88 ctl = md->fsm_ctl; in t7xx_pci_mhccif_isr() 91 "MHCCIF interrupt received before initializing MD monitor\n"); in t7xx_pci_mhccif_isr() 95 spin_lock_bh(&md->exp_lock); in t7xx_pci_mhccif_isr() 97 md->exp_id |= int_sta; in t7xx_pci_mhccif_isr() 98 if (md->exp_id & D2H_INT_EXCEPTION_INIT) { in t7xx_pci_mhccif_isr() 103 md->exp_id &= ~D2H_INT_EXCEPTION_INIT; in t7xx_pci_mhccif_isr() 106 } else if (md->exp_id & D2H_INT_PORT_ENUM) { in t7xx_pci_mhccif_isr() 107 md->exp_id &= ~D2H_INT_PORT_ENUM; in t7xx_pci_mhccif_isr() 114 if ((md->exp_id & D2H_INT_ASYNC_MD_HK) && !(mask & D2H_INT_ASYNC_MD_HK)) { in t7xx_pci_mhccif_isr() [all …]
|
H A D | t7xx_state_monitor.c | 50 void t7xx_fsm_notifier_register(struct t7xx_modem *md, struct t7xx_fsm_notifier *notifier) in t7xx_fsm_notifier_register() argument 52 struct t7xx_fsm_ctl *ctl = md->fsm_ctl; in t7xx_fsm_notifier_register() 60 void t7xx_fsm_notifier_unregister(struct t7xx_modem *md, struct t7xx_fsm_notifier *notifier) in t7xx_fsm_notifier_unregister() argument 63 struct t7xx_fsm_ctl *ctl = md->fsm_ctl; in t7xx_fsm_notifier_unregister() 74 static void fsm_state_notify(struct t7xx_modem *md, enum md_state state) in fsm_state_notify() argument 76 struct t7xx_fsm_ctl *ctl = md->fsm_ctl; in fsm_state_notify() 96 t7xx_port_proxy_md_status_notify(ctl->md->port_prox, state); in t7xx_fsm_broadcast_state() 97 fsm_state_notify(ctl->md, state); in t7xx_fsm_broadcast_state() 125 struct device *dev = &ctl->md->t7xx_dev->pdev->dev; in fsm_flush_event_cmd_qs() 179 struct device *dev = &ctl->md->t7xx_dev->pdev->dev; in fsm_routine_exception() [all …]
|
/openbmc/phosphor-power/phosphor-regulators/docs/config_file/ |
H A D | action.md | 9 - [presence_detection](presence_detection.md) 10 - [configuration](configuration.md) 11 - [sensor_monitoring](sensor_monitoring.md) 12 - [phase_fault_detection](phase_fault_detection.md) 15 [device](device.md) that contains the regulator operation. However, the device 16 can be changed using the [set_device](set_device.md) action. 23 … of actions | Action type [and](and.md). … 24 …) | [compare_presence](compare_presence.md) | Action type [compare_presence](compa… 25 …es](#notes) | [compare_vpd](compare_vpd.md) | Action type [compare_vpd](… 26 …| [i2c_capture_bytes](i2c_capture_bytes.md) | Action type [i2c_capture_bytes](i2c_ca… [all …]
|
H A D | README.md | 101 - Array of [rules](rule.md) 105 - Array of [chassis](chassis.md) in the system 106 - Array of regulator [devices](device.md) in the chassis 107 - Array of voltage [rails](rail.md) produced by the regulator 115 The config file contains a single JSON [config_file](config_file.md) object at 120 - [action](action.md) 121 - [and](and.md) 122 - [chassis](chassis.md) 123 - [compare_presence](compare_presence.md) 124 - [compare_vpd](compare_vpd.md) [all …]
|
/openbmc/linux/drivers/clk/qcom/ |
H A 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 …]
|
/openbmc/linux/drivers/net/mdio/ |
H A 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_c22() local 139 ret = start_miim_ops(md->base, false, phyid, reg, 0, MDIO_CTRL_READ_OP); in iproc_mdiomux_read_c22() 149 struct iproc_mdiomux_desc *md = bus->priv; in iproc_mdiomux_read_c45() local [all …]
|
H A D | mdio-mux-bcm6368.c | 39 struct bcm6368_mdiomux_desc *md = bus->priv; in bcm6368_mdiomux_read() local 43 __raw_writel(0, md->base + MDIOC_REG); in bcm6368_mdiomux_read() 48 if (md->ext_phy) in bcm6368_mdiomux_read() 51 __raw_writel(reg, md->base + MDIOC_REG); in bcm6368_mdiomux_read() 53 ret = __raw_readw(md->base + MDIOD_REG); in bcm6368_mdiomux_read() 61 struct bcm6368_mdiomux_desc *md = bus->priv; in bcm6368_mdiomux_write() local 64 __raw_writel(0, md->base + MDIOC_REG); in bcm6368_mdiomux_write() 69 if (md->ext_phy) in bcm6368_mdiomux_write() 73 __raw_writel(reg, md->base + MDIOC_REG); in bcm6368_mdiomux_write() 82 struct bcm6368_mdiomux_desc *md = data; in bcm6368_mdiomux_switch_fn() local [all …]
|
/openbmc/linux/drivers/scsi/aic94xx/ |
H A D | aic94xx_dump.c | 24 #define MD(x) (1 << (x)) macro 34 {"LmMnSCBPTR", 0x20, 16, MD(0)|MD(1)|MD(2)|MD(3)|MD(4) }, 35 {"LmMnDDBPTR", 0x22, 16, MD(0)|MD(1)|MD(2)|MD(3)|MD(4) }, 43 {"LmMnDMAERRS", 0x46, 8, MD(0)|MD(1) }, 44 {"LmMnSGDMAERRS", 0x47, 8, MD(0)|MD(1) }, 45 {"LmMnEXPHDRP", 0x48, 8, MD(0) }, 46 {"LmMnSASAALIGN", 0x48, 8, MD(1) }, 47 {"LmMnMSKHDRP", 0x49, 8, MD(0) }, 48 {"LmMnSTPALIGN", 0x49, 8, MD(1) }, 49 {"LmMnRCVHDRP", 0x4A, 8, MD(0) }, [all …]
|
/openbmc/linux/arch/ia64/kernel/ |
H A D | efi.c | 269 is_memory_available (efi_memory_desc_t *md) in is_memory_available() argument 271 if (!(md->attribute & EFI_MEMORY_WB)) in is_memory_available() 274 switch (md->type) { in is_memory_available() 293 #define efi_md_size(md) (md->num_pages << EFI_PAGE_SHIFT) argument 302 efi_md_end(efi_memory_desc_t *md) in efi_md_end() argument 304 return (md->phys_addr + efi_md_size(md)); in efi_md_end() 308 efi_wb(efi_memory_desc_t *md) in efi_wb() argument 310 return (md->attribute & EFI_MEMORY_WB); in efi_wb() 314 efi_uc(efi_memory_desc_t *md) in efi_uc() argument 316 return (md->attribute & EFI_MEMORY_UC); in efi_uc() [all …]
|
/openbmc/linux/drivers/soundwire/ |
H A 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 …]
|
/openbmc/linux/drivers/rapidio/devices/ |
H A D | rio_mport_cdev.c | 123 struct mport_dev *md; member 187 * @md master port character device object 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 [all …]
|
/openbmc/docs/ |
H A D | README.md | 9 The [features](features.md) document lists the project's major features with 22 - [cheatsheet.md](cheatsheet.md): Quick reference for some common development 25 - [CONTRIBUTING.md](CONTRIBUTING.md): Guidelines for contributing to OpenBMC 27 - [development tutorials](development/README.md): Tutorials for getting up to 30 - [kernel-development.md](kernel-development.md): Reference for common kernel 41 - [console.md](console.md): Using the host console 43 - [host-management.md](host-management.md): Performing host management tasks 46 - [rest-api.md](rest-api.md): Introduction to using the OpenBMC REST API 48 - [REDFISH-cheatsheet.md](REDFISH-cheatsheet.md): Quick reference for some 51 - [REST-cheatsheet.md](REST-cheatsheet.md): Quick reference for some common
|
H A D | features.md | 41 https://github.com/openbmc/openbmc-test-automation/blob/master/README.md 42 [bmcweb]: https://github.com/openbmc/bmcweb/blob/master/README.md 44 https://github.com/openbmc/bmcweb/blob/master/DEVELOPING.md#redfish 46 …://github.com/openbmc/phosphor-dbus-interfaces/tree/master/yaml/xyz/openbmc_project/Certs/README.md 48 …/github.com/openbmc/phosphor-dbus-interfaces/blob/master/yaml/xyz/openbmc_project/Chassis/README.md 50 https://github.com/openbmc/phosphor-dbus-interfaces/blob/master/README.md 52 https://github.com/openbmc/docs/blob/master/architecture/object-mapper.md 54 https://github.com/openbmc/entity-manager/blob/master/README.md 56 …openbmc/phosphor-dbus-interfaces/tree/master/yaml/xyz/openbmc_project/Common/FactoryReset/README.md 58 https://github.com/openbmc/docs/blob/master/architecture/code-update/code-update.md [all …]
|
/openbmc/linux/drivers/dma/ |
H A 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 …]
|
H A 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 …]
|
/openbmc/linux/arch/x86/platform/efi/ |
H A D | memmap.c | 115 * @md: EFI memory descriptor to split 121 int __init efi_memmap_split_count(efi_memory_desc_t *md, struct range *range) in efi_memmap_split_count() argument 127 start = md->phys_addr; in efi_memmap_split_count() 128 end = start + (md->num_pages << EFI_PAGE_SHIFT) - 1; in efi_memmap_split_count() 165 efi_memory_desc_t *md; in efi_memmap_insert() local 191 md = new; in efi_memmap_insert() 192 start = md->phys_addr; in efi_memmap_insert() 193 end = md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT) - 1; in efi_memmap_insert() 196 md->attribute |= m_attr; in efi_memmap_insert() 201 md->attribute |= m_attr; in efi_memmap_insert() [all …]
|
/openbmc/linux/arch/arm64/kernel/ |
H A D | efi.c | 17 static bool region_is_misaligned(const efi_memory_desc_t *md) in region_is_misaligned() argument 21 return !PAGE_ALIGNED(md->phys_addr) || in region_is_misaligned() 22 !PAGE_ALIGNED(md->num_pages << EFI_PAGE_SHIFT); in region_is_misaligned() 30 static __init pteval_t create_mapping_protection(efi_memory_desc_t *md) in create_mapping_protection() argument 32 u64 attr = md->attribute; in create_mapping_protection() 33 u32 type = md->type; in create_mapping_protection() 38 if (region_is_misaligned(md)) { in create_mapping_protection() 78 int __init efi_create_mapping(struct mm_struct *mm, efi_memory_desc_t *md) in efi_create_mapping() argument 80 pteval_t prot_val = create_mapping_protection(md); in efi_create_mapping() 81 bool page_mappings_only = (md->type == EFI_RUNTIME_SERVICES_CODE || in efi_create_mapping() [all …]
|