Home
last modified time | relevance | path

Searched +full:bm +full:- +full:work (Results 1 – 25 of 75) sorted by relevance

123

/openbmc/linux/drivers/power/supply/
H A Dab8500_fg.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) ST-Ericsson AB 2012
5 * Main and Back-up battery management driver.
7 * Note: Backup battery management is required in case of Li-Ion battery and not
37 #include <linux/fixp-arith.h>
39 #include "ab8500-bm.h"
49 /* Currents higher than -500mA (dissipating) will make compensation unstable */
50 #define IGNORE_VBAT_HIGHCUR -500000
63 * struct ab8500_fg_interrupts - ab8500 fg interrupts
158 * struct ab8500_fg - ab8500 FG device information
[all …]
H A Dab8500_chargalg.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) ST-Ericsson SA 2012
34 #include "ab8500-bm.h"
35 #include "ab8500-chargalg.h"
40 /* End-of-charge criteria counter */
169 * struct ab8500_charge_curr_maximization - Charger maximization parameters
197 * struct ab8500_chargalg - ab8500 Charging algorithm device information
200 * @eoc_cnt: counter used to determine end-of_charge
210 * @bm: Platform specific battery management information
215 * @chargalg_wq: work queue for running the charging algorithm
[all …]
H A Dab8500_btemp.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) ST-Ericsson SA 2012
31 #include <linux/fixp-arith.h>
33 #include "ab8500-bm.h"
35 #define BTEMP_THERMAL_LOW_LIMIT -10
51 * struct ab8500_btemp_interrupts - ab8500 interrupts
77 * struct ab8500_btemp - ab8500 BTEMP device information
87 * @bm: Platform specific battery management information
91 * @btemp_wq: Work queue for measuring the temperature periodically
92 * @btemp_periodic_work: Work for measuring the temperature periodically
[all …]
H A Dab8500_bmdata.c1 // SPDX-License-Identifier: GPL-2.0
6 #include "ab8500-bm.h"
48 * temperature values to work. Factory resistance is 300 mOhm and the
57 { .temp = -10, .resistance = 158 /* 445 mOhm */ },
58 { .temp = -20, .resistance = 198 /* 595 mOhm */ },
141 struct ab8500_bm_data *bm) in ab8500_bm_of_probe() argument
144 struct device *dev = &psy->dev; in ab8500_bm_of_probe()
147 ret = power_supply_get_battery_info(psy, &bm->bi); in ab8500_bm_of_probe()
152 bi = bm->bi; in ab8500_bm_of_probe()
155 if (bi->charge_full_design_uah < 0) in ab8500_bm_of_probe()
[all …]
H A Dab8500_charger.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) ST-Ericsson SA 2012
36 #include "ab8500-bm.h"
37 #include "ab8500-chargalg.h"
94 /* Lowest charger voltage is 3.39V -> 0x4E */
112 /* UsbLineStatus register - usb types */
174 * struct ab8500_charger_interrupts - ab8500 interrupts
218 * struct ab8500_charger - ab8500 Charger device information
242 * @bm: Platform specific battery management information
251 * @charger_wq: Work queue for the IRQs and checking HW state
[all …]
/openbmc/linux/arch/mips/math-emu/
H A Ddp_div.c1 // SPDX-License-Identifier: GPL-2.0-only
7 * Copyright (C) 1994-2000 Algorithmics Ltd.
16 u64 bm; in ieee754dp_div() local
113 /* now the dirty work */ in ieee754dp_div()
116 re = xe - ye; in ieee754dp_div()
118 for (bm = DP_MBIT(DP_FBITS + 2); bm; bm >>= 1) { in ieee754dp_div()
120 xm -= ym; in ieee754dp_div()
121 rm |= bm; in ieee754dp_div()
139 re--; in ieee754dp_div()
H A Dsp_div.c1 // SPDX-License-Identifier: GPL-2.0-only
7 * Copyright (C) 1994-2000 Algorithmics Ltd.
16 unsigned int bm; in ieee754sp_div() local
113 /* now the dirty work */ in ieee754sp_div()
116 re = xe - ye; in ieee754sp_div()
118 for (bm = SP_MBIT(SP_FBITS + 2); bm; bm >>= 1) { in ieee754sp_div()
120 xm -= ym; in ieee754sp_div()
121 rm |= bm; in ieee754sp_div()
138 re--; in ieee754sp_div()
/openbmc/linux/arch/arm/boot/dts/marvell/
H A Darmada-38x-solidrun-microsom.dtsi1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
7 #include <dt-bindings/input/input.h>
8 #include <dt-bindings/gpio/gpio.h>
23 internal-regs {
26 * If the rtc doesn't work, run "date reset"
27 * twice in u-boot.
35 &bm {
45 pinctrl-0 = <&ge0_rgmii_pins>;
46 pinctrl-names = "default";
48 phy-mode = "rgmii-id";
[all …]
H A Darmada-385-clearfog-gtr.dtsi1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
5 * Rabeeh Khoury <rabeeh@solid-run.com>, based on Russell King clearfog work
9 SERDES mapping -
10 0. SATA1 on CON18, or optionally mini PCIe CON3 - PCIe0
12 2. SATA0 on CON17, or optionally mini PCIe CON4 - PCIe1
14 4. mini PCIe CON2 - PCIe2
17 USB 2.0 mapping -
18 0. USB 2.0 - 0 USB pins header CON12
19 1. USB 2.0 - 1 mini PCIe CON2
20 2. USB 2.0 - 2 to USB 3.0 connector (used with SERDES #3)
[all …]
H A Darmada-381-netgear-gs110emx.dts1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 /dts-v1/;
5 #include "armada-385.dtsi"
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
14 /* So that mvebu u-boot can update the MAC addresses */
19 stdout-path = "serial0:115200n8";
22 gpio-keys {
23 compatible = "gpio-keys";
24 pinctrl-0 = <&front_button_pins>;
[all …]
/openbmc/linux/drivers/net/ethernet/marvell/
H A Dmvneta_bm.c32 writel(data, priv->reg_base + offset); in mvneta_bm_write()
37 return readl(priv->reg_base + offset); in mvneta_bm_read()
48 /* Clear BM cause register */ in mvneta_bm_pool_enable()
96 (struct mvneta_bm_pool *)hwbm_pool->priv; in mvneta_bm_construct()
97 struct mvneta_bm *priv = bm_pool->priv; in mvneta_bm_construct()
101 * BM hardware expects buf virtual address to be placed in the in mvneta_bm_construct()
105 phys_addr = dma_map_single(&priv->pdev->dev, buf, bm_pool->buf_size, in mvneta_bm_construct()
107 if (unlikely(dma_mapping_error(&priv->pdev->dev, phys_addr))) in mvneta_bm_construct()
108 return -ENOMEM; in mvneta_bm_construct()
119 struct platform_device *pdev = priv->pdev; in mvneta_bm_pool_create()
[all …]
/openbmc/qemu/block/
H A Dbackup.c10 * This work is licensed under the terms of the GNU GPL, version 2 or later.
11 * See the COPYING file in the top-level directory.
22 #include "block/block-copy.h"
23 #include "block/dirty-bitmap.h"
26 #include "sysemu/block-backend.h"
28 #include "qemu/error-report.h"
30 #include "block/copy-before-write.h"
58 BdrvDirtyBitmap *bm; in backup_cleanup_sync_bitmap() local
59 bool sync = (((ret == 0) || (job->bitmap_mode == BITMAP_SYNC_MODE_ALWAYS)) \ in backup_cleanup_sync_bitmap()
60 && (job->bitmap_mode != BITMAP_SYNC_MODE_NEVER)); in backup_cleanup_sync_bitmap()
[all …]
/openbmc/linux/kernel/power/
H A Dsnapshot.c1 // SPDX-License-Identifier: GPL-2.0-only
7 * Copyright (C) 1998-2005 Pavel Machek <pavel@ucw.cz>
119 * from their ->freeze() and ->freeze_noirq() callbacks so that they don't
152 #define LINKED_PAGE_DATA_SIZE (PAGE_SIZE - sizeof(void *))
177 * get_image_page - Allocate a page for a hibernation image.
213 safe_pages_list = safe_pages_list->next; in __get_safe_page()
241 lp->next = safe_pages_list; in recycle_safe_page()
246 * free_image_page - Free a page allocated for hibernation image.
272 struct linked_page *lp = list->next; in free_list_of_pages()
302 ca->chain = NULL; in chain_init()
[all …]
/openbmc/qemu/hw/pci-host/
H A Ddino.c2 * HP-PARISC Dino PCI chipset emulation, as in B160L and similar machines
4 * (C) 2017-2019 by Helge Deller <deller@gmx.de>
6 * This work is licensed under the GNU GPL license version 2 or later.
9 * https://parisc.wiki.kernel.org/images-parisc/9/91/Dino_ers.pdf
10 * https://parisc.wiki.kernel.org/images-parisc/7/70/Dino_3_1_Errata.pdf
20 #include "hw/qdev-properties.h"
21 #include "hw/pci-host/dino.h"
36 tmp = extract32(s->io_control, 7, 2); in gsc_to_pci_forwarding()
38 io_addr_en = s->io_addr_en; in gsc_to_pci_forwarding()
44 MemoryRegion *mem = &s->pci_mem_alias[i]; in gsc_to_pci_forwarding()
[all …]
H A Dppc440_pcix.c2 * Emulation of the ibm,plb-pcix PCI controller
5 * Copyright (c) 2016-2018 BALATON Zoltan
7 * Derived from ppc4xx_pci.c and pci-host/ppce500.c
23 #include "qemu/error-report.h"
28 #include "hw/pci-host/ppc4xx.h"
61 MemoryRegion bm; member
115 MemoryRegion *mem = &s->pim[idx].mr; in ppc440_pcix_update_pim()
120 ppc440_pcix_clear_region(&s->bm, mem); in ppc440_pcix_update_pim()
122 if (!(s->pim[idx].sa & 1)) { in ppc440_pcix_update_pim()
128 size = ~(s->pim[idx].sa & ~7ULL) + 1; in ppc440_pcix_update_pim()
[all …]
/openbmc/linux/drivers/block/drbd/
H A Ddrbd_bitmap.c1 // SPDX-License-Identifier: GPL-2.0-only
7 Copyright (C) 2004-2008, LINBIT Information Technologies GmbH.
8 Copyright (C) 2004-2008, Philipp Reisner <philipp.reisner@linbit.com>.
9 Copyright (C) 2004-2008, Lars Ellenberg <lars.ellenberg@linbit.com>.
39 * 1 << (50 - 12) bits needed
40 * 38 --> we need u64 to index and count bits
41 * 1 << (38 - 3) bitmap bytes needed
42 * 35 --> we still need u64 to index and count bytes
44 * 1 << (35 - 2) 32bit longs needed
45 * 33 --> we'd even need u64 to index and count 32bit long words.
[all …]
/openbmc/linux/fs/reiserfs/
H A Dbitmap.c4 /* Reiserfs block (de)allocator, bitmap-based. */
20 #define SB_ALLOC_OPTS(s) (REISERFS_SB(s)->s_alloc_options.bits)
57 *bmap_nr = block >> (s->s_blocksize_bits + 3); in get_bit_address()
59 *offset = block & ((s->s_blocksize << 3) - 1); in get_bit_address()
68 reiserfs_error(s, "vs-4010", in is_reusable()
81 &REISERFS_SB(s)->s_properties))) { in is_reusable()
82 b_blocknr_t bmap1 = REISERFS_SB(s)->s_sbh->b_blocknr + 1; in is_reusable()
85 reiserfs_error(s, "vs-4019", "bitmap block %lu(%u) " in is_reusable()
92 reiserfs_error(s, "vs-4020", "bitmap block %lu(%u) " in is_reusable()
100 reiserfs_error(s, "vs-4030", "bitmap for requested block " in is_reusable()
[all …]
/openbmc/linux/drivers/firewire/
H A Dcore-card.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (C) 2005-2007 Kristian Hoegsberg <krh@bitplanet.net>
8 #include <linux/crc-itu-t.h>
12 #include <linux/firewire-constants.h>
37 dev_name(card->device), &vaf); \
82 * IEEE-1394 specifies a default SPLIT_TIMEOUT value of 800 cycles (100 ms),
108 BIB_LINK_SPEED(card->link_speed) | in generate_config_rom()
109 BIB_GENERATION(card->config_rom_generation++ % 14 + 2) | in generate_config_rom()
111 BIB_MAX_RECEIVE(card->max_receive) | in generate_config_rom()
113 config_rom[3] = cpu_to_be32(card->guid >> 32); in generate_config_rom()
[all …]
/openbmc/linux/drivers/spi/
H A Dspi-lantiq-ssc.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2011-2015 Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
4 * Copyright (C) 2016 Hauke Mehrtens <hauke@hauke-m.de>
142 #define LTQ_SPI_RXCNT_TODO_M 0xFFFF /* Recevie to-do value */
175 struct work_struct work; member
191 return __raw_readl(spi->regbase + reg); in lantiq_ssc_readl()
197 __raw_writel(val, spi->regbase + reg); in lantiq_ssc_writel()
203 u32 val = __raw_readl(spi->regbase + reg); in lantiq_ssc_maskl()
207 __raw_writel(val, spi->regbase + reg); in lantiq_ssc_maskl()
212 const struct lantiq_ssc_hwcfg *hwcfg = spi->hwcfg; in tx_fifo_level()
[all …]
/openbmc/qemu/include/hw/pci-host/
H A Ddino.h2 * HP-PARISC Dino PCI chipset emulation, as in B160L and similar machines
4 * (C) 2017-2019 by Helge Deller <deller@gmx.de>
6 * This work is licensed under the GNU GPL license version 2 or later.
9 * https://parisc.wiki.kernel.org/images-parisc/9/91/Dino_ers.pdf
10 * https://parisc.wiki.kernel.org/images-parisc/7/70/Dino_3_1_Errata.pdf
18 #define TYPE_DINO_PCI_HOST_BRIDGE "dino-pcihost"
56 #define DINO_IRQS 11 /* bits 0-10 are architected */
80 /* #define xxx 0x080 - bit 7 is "default" */
81 /* #define xxx 0x100 - bit 8 not used */
82 /* #define xxx 0x200 - bit 9 not used */
[all …]
/openbmc/linux/arch/sparc/include/asm/
H A Dviking.h1 /* SPDX-License-Identifier: GPL-2.0 */
18 * -----------------------------------------------------------
19 * |impl-vers| RSV |TC|AC|SP|BM|PC|MBM|SB|IC|DC|PSO|RSV|NF|ME|
20 * -----------------------------------------------------------
21 * 31 24 23-17 16 15 14 13 12 11 10 9 8 7 6-2 1 0
23 * TC: Tablewalk Cacheable -- 0 = Twalks are not cacheable in E-cache
24 * 1 = Twalks are cacheable in E-cache
26 * GNU/Viking will only cache tablewalks in the E-cache (mxcc) if present
28 * for machines lacking an E-cache (ie. in MBUS mode) this bit must
31 * AC: Alternate Cacheable -- 0 = Passthru physical accesses not cacheable
[all …]
/openbmc/linux/drivers/net/ethernet/marvell/mvpp2/
H A Dmvpp2.h1 /* SPDX-License-Identifier: GPL-2.0 */
355 /* Packet Processor per-port counters */
420 /* Per-port registers */
485 /* Per-port XGMAC registers. PPv2.2 and PPv2.3, only for GOP port 0,
486 * relative to port->base.
522 /* SMI registers. PPv2.2 and PPv2.3, relative to priv->iface_base. */
526 /* TAI registers, PPv2.2 only, relative to priv->iface_base */
596 (((index) < (q)->last_desc) ? ((index) + 1) : 0)
714 /* Maximum number of T-CONTs of PON port */
754 #define MVPP2_TX_DESC_ALIGN (MVPP2_DESC_ALIGNED_SIZE - 1)
[all …]
/openbmc/linux/drivers/gpu/drm/imx/ipuv3/
H A Dimx-ldb.c1 // SPDX-License-Identifier: GPL-2.0+
3 * i.MX drm driver - LVDS display bridge
11 #include <linux/media-bus-format.h>
13 #include <linux/mfd/syscon/imx6q-iomuxc-gpr.h>
34 #include "imx-drm.h"
36 #define DRIVER_NAME "imx-ldb"
82 return container_of(c, struct imx_ldb_encoder, connector)->channel; in con_to_imx_ldb_ch()
87 return container_of(e, struct imx_ldb_encoder, encoder)->channel; in enc_to_imx_ldb_ch()
111 struct imx_ldb *ldb = imx_ldb_ch->ldb; in imx_ldb_ch_set_bus_format()
112 int dual = ldb->ldb_ctrl & LDB_SPLIT_MODE_EN; in imx_ldb_ch_set_bus_format()
[all …]
/openbmc/linux/drivers/comedi/
H A Dcomedi_fops.c1 // SPDX-License-Identifier: GPL-2.0+
6 * COMEDI - Linux Control and Measurement Device Interface
7 * Copyright (C) 1997-2007 David A. Schleef <ds@schleef.org>
37 * COMEDI_SRF_RT: DEPRECATED: command is running real-time
41 * COMEDI_SRF_FREE_SPRIV: free s->private on detach
53 * struct comedi_file - Per-file private data for COMEDI device
70 (COMEDI_NUM_MINORS - COMEDI_NUM_BOARD_MINORS)
75 "number of comedi minor devices to reserve for non-auto-configured devices (default 0)"
96 /* Note: indexed by minor - COMEDI_NUM_BOARD_MINORS. */
104 kref_init(&dev->refcount); in comedi_device_init()
[all …]
/openbmc/linux/drivers/net/ethernet/intel/ice/
H A Dice_ddp.c1 // SPDX-License-Identifier: GPL-2.0
26 * ice_verify_pkg - verify package
41 if (pkg->pkg_format_ver.major != ICE_PKG_FMT_VER_MAJ || in ice_verify_pkg()
42 pkg->pkg_format_ver.minor != ICE_PKG_FMT_VER_MNR || in ice_verify_pkg()
43 pkg->pkg_format_ver.update != ICE_PKG_FMT_VER_UPD || in ice_verify_pkg()
44 pkg->pkg_format_ver.draft != ICE_PKG_FMT_VER_DFT) in ice_verify_pkg()
48 seg_count = le32_to_cpu(pkg->seg_count); in ice_verify_pkg()
58 u32 off = le32_to_cpu(pkg->seg_offset[i]); in ice_verify_pkg()
68 if (len < off + le32_to_cpu(seg->seg_size)) in ice_verify_pkg()
76 * ice_free_seg - free package segment pointer
[all …]

123