plateform stringclasses 1
value | repo_name stringclasses 2
values | name stringlengths 1 78 | ext stringclasses 2
values | path stringlengths 15 1.11k | size int64 1 8.55M | source_encoding stringclasses 11
values | md5 stringlengths 32 32 | text stringlengths 0 8.49M |
|---|---|---|---|---|---|---|---|---|
google | android | bq24257_charger | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/bq24257_charger.c | 30,397 | utf_8 | 375fc542007d3d8ea5e016eefeb2264d | /*
* TI BQ24257 charger driver
*
*
* Datasheets:
* http://www.ti.com/product/bq24250
* http://www.ti.com/product/bq24251
* http://www.ti.com/product/bq24257
*/
#include <linux/module.h>
#include <linux/i2c.h>
#include <linux/power_supply.h>
#include <linux/regmap.h>
#include <linux/types.h>
#include <linux/gpio... |
google | android | rt9455_charger | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/rt9455_charger.c | 49,713 | utf_8 | 259bbb26fa8978c1a440cf8a391ebc2c | /*
* Driver for Richtek RT9455WSC battery charger.
*
*/
#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/delay.h>
#include <linux/of_irq.h>
#include <linux/of_device.h>
#include <linux/pm_runtime.h>
#include <linux/power_supply.h>
#include <linux/i2c.h>
#include <linux/acpi.h>
#include <linux/u... |
google | android | lp8727_charger | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/lp8727_charger.c | 14,655 | utf_8 | 0bbd527aac677a302d58cab430c5ed2d | /*
* Driver for LP8727 Micro/Mini USB IC with integrated charger
*
*
*/
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/interrupt.h>
#include <linux/i2c.h>
#include <linux/power_supply.h>
#include <linux/platform_data/lp8727.h>
#include <linux/of.h>
#define LP8788_NUM_INTREGS 2
#define DEFAULT_DEB... |
google | android | ds2780_battery | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/ds2780_battery.c | 21,271 | utf_8 | e4b7fef1d976fa27bca4bed3e0f7e2af | /*
* 1-wire client/driver for the Maxim/Dallas DS2780 Stand-Alone Fuel Gauge IC
*
*
*/
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/param.h>
#include <linux/pm.h>
#include <linux/platform_device.h>
#include <linux/power_supply.h>
#include <linux/idr.h>
#include "../w1/w1.h"
#include "../w1/slav... |
google | android | ab8500_fg | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/ab8500_fg.c | 85,616 | utf_8 | f45dab62697d2a13a512cedfcaf167a9 | /*
*/
#include <linux/init.h>
#include <linux/module.h>
#include <linux/device.h>
#include <linux/interrupt.h>
#include <linux/platform_device.h>
#include <linux/power_supply.h>
#include <linux/kobject.h>
#include <linux/slab.h>
#include <linux/delay.h>
#include <linux/time.h>
#include <linux/time64.h>
#include <linux... |
google | android | max8925_power | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/max8925_power.c | 15,336 | utf_8 | 38692c6500217791b12541ab8219ccc2 | /*
* Battery driver for Maxim MAX8925
*
*/
#include <linux/module.h>
#include <linux/err.h>
#include <linux/slab.h>
#include <linux/of.h>
#include <linux/i2c.h>
#include <linux/interrupt.h>
#include <linux/platform_device.h>
#include <linux/power_supply.h>
#include <linux/mfd/max8925.h>
/* registers in GPM */
#defin... |
google | android | collie_battery | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/collie_battery.c | 10,296 | utf_8 | 2b1ccb6a072c98fb438d51c39b3d4f9c | /*
* Battery and Power Management code for the Sharp SL-5x00
*
*
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/power_supply.h>
#include <linux/delay.h>
#include <linux/spinlock.h>
#include <linux/interrupt.h>
#include <linux/gpio.h>
#include <linux/mfd/ucb1x00.h>
#include <asm/mach/sharpsl_... |
google | android | qcom_smbb | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/qcom_smbb.c | 23,763 | utf_8 | 371e72bbb0b634d55ff5bfd5a43c985d | *
* This driver is for the multi-block Switch-Mode Battery Charger and Boost
* (SMBB) hardware, found in Qualcomm PM8941 PMICs. The charger is an
* integrated, single-cell lithium-ion battery charger.
*
* Sub-components:
* - Charger core
* - Buck
* - DC charge-path
* - USB charge-path
* - Battery inter... |
google | android | apm_power | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/apm_power.c | 10,386 | utf_8 | bcbafc66e72b71a7b917c574dfd605d3 | /*
*/
#include <linux/module.h>
#include <linux/device.h>
#include <linux/power_supply.h>
#include <linux/apm-emulation.h>
#define PSY_PROP(psy, prop, val) (power_supply_get_property(psy, \
POWER_SUPPLY_PROP_##prop, val))
#define _MPSY_PROP(prop, val) (power_supply_get_property(main_battery, \
prop, val))
... |
google | android | bq27xxx_battery | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/bq27xxx_battery.c | 34,556 | utf_8 | d9d815ca3e3bb59ed03af2d92df4f428 | /*
* BQ27xxx battery driver
*
*
* Datasheets:
* http://www.ti.com/product/bq27000
* http://www.ti.com/product/bq27200
* http://www.ti.com/product/bq27010
* http://www.ti.com/product/bq27210
* http://www.ti.com/product/bq27500
* http://www.ti.com/product/bq27510-g3
* http://www.ti.com/product/bq27520-g4
* ht... |
google | android | z2_battery | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/z2_battery.c | 8,218 | utf_8 | dddef09f8c0563b8cc306ef2b65e3061 | /*
* Battery measurement code for Zipit Z2
*
*
*/
#include <linux/module.h>
#include <linux/gpio.h>
#include <linux/i2c.h>
#include <linux/interrupt.h>
#include <linux/irq.h>
#include <linux/power_supply.h>
#include <linux/slab.h>
#include <linux/z2_battery.h>
#define Z2_DEFAULT_NAME "Z2"
struct z2_charger {
struc... |
google | android | bq25890_charger | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/bq25890_charger.c | 25,502 | utf_8 | fd6506ff7372cbe7311e94c7a5746db7 | /*
* TI BQ25890 charger driver
*
*
*/
#include <linux/module.h>
#include <linux/i2c.h>
#include <linux/power_supply.h>
#include <linux/regmap.h>
#include <linux/types.h>
#include <linux/gpio/consumer.h>
#include <linux/interrupt.h>
#include <linux/delay.h>
#include <linux/usb/phy.h>
#include <linux/acpi.h>
#include... |
google | android | generic-adc-battery | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/generic-adc-battery.c | 11,204 | utf_8 | 8b050eda49dd7b5ab689a2d3716f2c23 | /*
* Generic battery driver code using IIO
* more details.
*
*/
#include <linux/interrupt.h>
#include <linux/platform_device.h>
#include <linux/power_supply.h>
#include <linux/gpio.h>
#include <linux/err.h>
#include <linux/timer.h>
#include <linux/jiffies.h>
#include <linux/errno.h>
#include <linux/init.h>
#include... |
google | android | axp288_fuel_gauge | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/axp288_fuel_gauge.c | 31,280 | utf_8 | 77a23da7811efce9ef0034eea7586328 | /*
* axp288_fuel_gauge.c - Xpower AXP288 PMIC Fuel Gauge Driver
*
*
*/
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/device.h>
#include <linux/regmap.h>
#include <linux/jiffies.h>
#include <linux/interrupt.h>
#include <linux/device.h>
#include <linux/workqueue.h>
#include <linux/mfd/axp20x.h>
... |
google | android | max14577_charger | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/max14577_charger.c | 16,845 | utf_8 | 7b54631e8a870364e66ba7686078fa35 | /*
* max14577_charger.c - Battery charger driver for the Maxim 14577/77836
*
*/
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/power_supply.h>
#include <linux/mfd/max14577-private.h>
#include <linux/mfd/max14577.h>
struct max14577_charger {
struct device *dev;
struct max14577 *max14... |
google | android | max17042_battery | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/max17042_battery.c | 27,366 | utf_8 | bcf8818011f4f7da4fd975c3294dd09d | /*
* Fuel gauge driver for Maxim 17042 / 8966 / 8997
* Note that Maxim 8966 and 8997 are mfd and this is its subdevice.
*
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* This driver is based on max17040_battery.c
*/
#include <linux/init.h>
#include <linux/module.h>
#include <linu... |
google | android | s3c_adc_battery | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/s3c_adc_battery.c | 11,623 | utf_8 | 886f09e4ae5eefa3641af7aeb72e73c3 | /*
* iPAQ h1930/h1940/rx1950 battery controller driver
* more details.
*
*/
#include <linux/interrupt.h>
#include <linux/platform_device.h>
#include <linux/power_supply.h>
#include <linux/leds.h>
#include <linux/gpio.h>
#include <linux/err.h>
#include <linux/timer.h>
#include <linux/jiffies.h>
#include <linux/s3c_a... |
google | android | isp1704_charger | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/isp1704_charger.c | 14,004 | ibm852 | 6066b4642093995da90ba7e2c20e8b5c | /*
* ISP1704 USB Charger Detection driver
*
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/err.h>
#include <linux/init.h>
#include <linux/types.h>
#include <linux/device.h>
#include <linux/sysfs.h>
#include <linux/plat... |
google | android | power_supply_core | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/power_supply_core.c | 25,795 | utf_8 | bde6ec21365b78fb5957cd09f21ef0ae | /*
* Universal power supply monitor class
*
*/
#include <linux/module.h>
#include <linux/types.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/device.h>
#include <linux/notifier.h>
#include <linux/err.h>
#include <linux/power_supply.h>
#include <linux/thermal.h>
#include "power_supply.h"
/* expor... |
google | android | tps65217_charger | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/tps65217_charger.c | 6,848 | utf_8 | ff6fb1844ea33bef8a064d483de6dc80 | /*
* Battery charger driver for TI's tps65217
*
*/
/*
* Battery charger driver for TI's tps65217
*/
#include <linux/kernel.h>
#include <linux/kthread.h>
#include <linux/device.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/slab.h... |
google | android | bq24735-charger | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/bq24735-charger.c | 10,063 | utf_8 | 9fd200ee1ba1d655e387cc2a6be21298 | /*
* Battery charger driver for TI BQ24735
*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#include <linux/err.h>
#include <linux/gpio.h>
#include <linux/i2c.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/of.h>
#includ... |
google | android | rt5033_battery | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/rt5033_battery.c | 4,692 | utf_8 | ad6dbb730c33829bbb1b27ae6a4091a2 | /*
* Fuel gauge driver for Richtek RT5033
*
*/
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/power_supply.h>
#include <linux/mfd/rt5033-private.h>
#include <linux/mfd/rt5033.h>
static int rt5033_battery_get_capacity(struct i2c_client *client)
{
struct rt5033_battery *battery = i2c_get... |
google | android | abx500_chargalg | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/abx500_chargalg.c | 62,131 | utf_8 | a25e17962ee7ba48fe97e26e94db47e4 | /*
*/
#include <linux/init.h>
#include <linux/module.h>
#include <linux/device.h>
#include <linux/hrtimer.h>
#include <linux/interrupt.h>
#include <linux/delay.h>
#include <linux/slab.h>
#include <linux/platform_device.h>
#include <linux/power_supply.h>
#include <linux/completion.h>
#include <linux/workqueue.h>
#inclu... |
google | android | ab8500_charger | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/ab8500_charger.c | 104,528 | ibm852 | aea0daeddb1f92f859ad056ab454fdce | /*
*/
#include <linux/init.h>
#include <linux/module.h>
#include <linux/device.h>
#include <linux/interrupt.h>
#include <linux/delay.h>
#include <linux/notifier.h>
#include <linux/slab.h>
#include <linux/platform_device.h>
#include <linux/power_supply.h>
#include <linux/completion.h>
#include <linux/regulator/consumer... |
google | android | 88pm860x_battery | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/88pm860x_battery.c | 25,951 | utf_8 | 4fe37d6f3016b0844c1b10c8d1940aa6 | /*
* Battery driver for Marvell 88PM860x PMIC
*
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/mutex.h>
#include <linux/string.h>
#include <linux/power_supply.h>
#include <linux/mfd/88pm860x.h>
#include <linux/delay.h>
/* bit definiti... |
google | android | lp8788-charger | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/lp8788-charger.c | 18,748 | utf_8 | af1e89255e842f405139e74e21823422 | /*
* TI LP8788 MFD - battery charger driver
*
*
*/
#include <linux/err.h>
#include <linux/iio/consumer.h>
#include <linux/interrupt.h>
#include <linux/irqdomain.h>
#include <linux/mfd/lp8788.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/power_supply.h>
#include <linux/slab.h>
#incl... |
google | android | pda_power | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/pda_power.c | 11,917 | utf_8 | f30c57dcad8892e05b658357fe3a7bbb | /*
* Common power driver for PDAs and phones with one or two external
* power supplies (AC/USB) connected to main and backup batteries,
* and optional builtin charger.
*
*/
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/err.h>
#include <linux/interrupt.h>
#include <linux/notifier.h>
#... |
google | android | wm97xx_battery | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/wm97xx_battery.c | 7,401 | utf_8 | 18dce31e1429bff42ad64b7c9fc64133 | /*
* linux/drivers/power/wm97xx_battery.c
*
* Battery measurement code for WM97xx
*
* based on tosa_battery.c
*
*
*/
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/power_supply.h>
#include <linux/wm97xx.h>
#include <linux/spinlock.h... |
google | android | rx51_battery | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/rx51_battery.c | 8,132 | utf_8 | ad03712bc9c94b84d82f918dcc20626b | /*
* Nokia RX-51 battery driver
*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include <linux/module.h>
#include <linux/param.h>
#include <linux/platform_device.h>
#include <linux/power_supply.h>
#include <linux/slab.h>
#include <linux/i2c/twl4030-madc.h>
#include <linux/iio/consumer.h>
#includ... |
google | android | charger-manager | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/charger-manager.c | 55,647 | utf_8 | 9cd63921643293994eda49d2f793dfaa | /*
**/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/io.h>
#include <linux/module.h>
#include <linux/irq.h>
#include <linux/interrupt.h>
#include <linux/rtc.h>
#include <linux/slab.h>
#include <linux/workqueue.h>
#include <linux/platform_device.h>
#include <linux/power/charger-manager.h>
#include <linux/r... |
google | android | max8903_charger | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/max8903_charger.c | 8,713 | utf_8 | 1449c6fe8a56affd7db7e0e4d82c6088 | /*
* max8903_charger.c - Maxim 8903 USB/Adapter Charger Driver
*
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
#include <linux/gpio.h>
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/power_supply.h>
#include <linux/platform_device.h>... |
google | android | ds2782_battery | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/ds2782_battery.c | 11,220 | utf_8 | 8c263776cdac4afa4312e3600036e490 | /*
* I2C client/driver for the Maxim/Dallas DS2782 Stand-Alone Fuel Gauge IC
*
*
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/swab.h>
#include <linux/i2c.h>
#include <linux/delay.h>
#include <linux/idr.h>
#include <linux/power_supply.h>
#in... |
google | android | pcf50633-charger | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/pcf50633-charger.c | 12,776 | utf_8 | b0fb0e28957622772892809927755819 | /* NXP PCF50633 Main Battery Charger Driver
*
* option) any later version.
*
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/types.h>
#include <linux/device.h>
#include <linux/sysfs.h>
#include <linux/platform_device.h>
#include <linux/power_su... |
google | android | test_power | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/test_power.c | 14,510 | utf_8 | 3533d82e2e181a82723b995a9c32d1b3 | /*
* Power supply driver for testing.
*
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/power_supply.h>
#include <linux/errno.h>
#include <linux/delay.h>
#include <linux/vermagic.h>
enum test_power_id {
TEST_AC,
TEST_BATTERY,
TEST_USB,
TEST_POWER_NUM,
};
static int ac_online = 1;
static ... |
google | android | tps65090-charger | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/tps65090-charger.c | 9,304 | utf_8 | 9eea7c37644089fd456bfa666ce8165e | /*
* Battery charger driver for TI's tps65090
*
*/
#include <linux/delay.h>
#include <linux/err.h>
#include <linux/freezer.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/kernel.h>
#include <linux/kthread.h>
#include <linux/module.h>
#include <linux/of_device.h>
#include <linux/platform_devic... |
google | android | goldfish_battery | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/goldfish_battery.c | 6,349 | utf_8 | 08bd328072845ea8cc81c0a6c3a392f2 | /*
* Power supply driver for the goldfish emulator
*
*/
#include <linux/module.h>
#include <linux/err.h>
#include <linux/platform_device.h>
#include <linux/power_supply.h>
#include <linux/types.h>
#include <linux/pci.h>
#include <linux/interrupt.h>
#include <linux/io.h>
struct goldfish_battery_data {
void __iomem *... |
google | android | ltc2941-battery-gauge | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/ltc2941-battery-gauge.c | 13,367 | utf_8 | 921602252346d65f88a2bdb27b42d3fa | /*
* I2C client/driver for the Linear Technology LTC2941 and LTC2943
* Battery Gas Gauge IC
*
*
* Author: Auryn Verwegen
* Author: Mike Looijmans
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/swab.h>
#include <linux/i2c.h>
#include <linux... |
google | android | wm8350_power | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/wm8350_power.c | 15,260 | utf_8 | 01a0bb8e20da76b5fe6b09ec7c2b0efa | /*
* Battery driver for wm8350 PMIC
*
*/
#include <linux/module.h>
#include <linux/err.h>
#include <linux/platform_device.h>
#include <linux/power_supply.h>
#include <linux/mfd/wm8350/supply.h>
#include <linux/mfd/wm8350/core.h>
#include <linux/mfd/wm8350/comparator.h>
static int wm8350_read_battery_uvolts(struct wm... |
google | android | ipaq_micro_battery | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/ipaq_micro_battery.c | 8,112 | utf_8 | 150747f7df638d2cf0aa8c18f2241ce7 | /*
*
*/
#include <linux/module.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/mfd/ipaq-micro.h>
#include <linux/power_supply.h>
#include <linux/workqueue.h>
#define BATT_PERIOD 100000 /* 100 seconds in milliseconds */
#define MICRO_BATT_CHEM_ALKALINE 0x01
#define MICRO_BATT_CHEM_NICD 0... |
google | android | da9150-charger | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/da9150-charger.c | 17,532 | utf_8 | 08aafc338597336483da11beae9ee00a | /*
* DA9150 Charger Driver
*
* option) any later version.
*/
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/of.h>
#include <linux/of_platform.h>
#include <linux/interrupt.h>
#include <linux/power_supply.h>
#include <linux/notifier.h>
#i... |
google | android | syscon-poweroff | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/reset/syscon-poweroff.c | 2,532 | utf_8 | b67cc0af4f4d6ef9b1769fa4df1863e6 | /*
* Generic Syscon Poweroff Driver
*
*/
#include <linux/kallsyms.h>
#include <linux/delay.h>
#include <linux/io.h>
#include <linux/notifier.h>
#include <linux/mfd/syscon.h>
#include <linux/of_address.h>
#include <linux/of_device.h>
#include <linux/platform_device.h>
#include <linux/pm.h>
#include <linux/regmap.h>
s... |
google | android | zx-reboot | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/reset/zx-reboot.c | 1,785 | utf_8 | 4222cda77dc808a3a40198b153ae35fc | /*
* ZTE zx296702 SoC reset code
*
*/
#include <linux/delay.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/notifier.h>
#include <linux/of_address.h>
#include <linux/platform_device.h>
#include <linux/reboot.h>
static void __iomem *base;
static void __iomem *pcu_base;
static int zx_restart_handler... |
google | android | vexpress-poweroff | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/reset/vexpress-poweroff.c | 3,760 | utf_8 | 0160115d861c777b30a9f76a5e2c1b65 | /*
*/
#include <linux/delay.h>
#include <linux/notifier.h>
#include <linux/of.h>
#include <linux/of_device.h>
#include <linux/platform_device.h>
#include <linux/reboot.h>
#include <linux/stat.h>
#include <linux/vexpress.h>
static void vexpress_reset_do(struct device *dev, const char *what)
{
int err = -ENOENT;
struc... |
google | android | syscon-reboot | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/reset/syscon-reboot.c | 2,486 | utf_8 | 69270ecf871b471f6fd7b5c87d997d8c | /*
* Generic Syscon Reboot Driver
*
*/
#include <linux/delay.h>
#include <linux/io.h>
#include <linux/notifier.h>
#include <linux/mfd/syscon.h>
#include <linux/of_address.h>
#include <linux/of_device.h>
#include <linux/platform_device.h>
#include <linux/reboot.h>
#include <linux/regmap.h>
struct syscon_reboot_contex... |
google | android | xgene-reboot | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/reset/xgene-reboot.c | 2,938 | utf_8 | c7d51be0feea4a599a94346e613893ae | /*
* AppliedMicro X-Gene SoC Reboot Driver
*
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*
* This driver provides system reboot functionality for APM X-Gene SoC.
* For system shutdown, this is board specify. If a board designer
* implements GPIO shutdown, use the gpio-poweroff.c ... |
google | android | axxia-reset | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/reset/axxia-reset.c | 2,698 | utf_8 | 395956e0fad1ee1e5677ac3fd4380644 | /*
* Reset driver for Axxia devices
*
*
*/
#include <linux/init.h>
#include <linux/err.h>
#include <linux/io.h>
#include <linux/kernel.h>
#include <linux/mfd/syscon.h>
#include <linux/module.h>
#include <linux/notifier.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/reboot.h>
#include <l... |
google | android | at91-reset | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/reset/at91-reset.c | 6,991 | utf_8 | bfdbcdbbb64a8aa39f2248dd9f046e0d | /*
* Atmel AT91 SAM9 & SAMA5 SoCs reset code
*
* warranty of any kind, whether express or implied.
*/
#include <linux/clk.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/of_address.h>
#include <linux/platform_device.h>
#include <linux/reboot.h>
#include <soc/at91/at91sam9_ddrsdr.h>
#include <soc/... |
google | android | brcmstb-reboot | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/reset/brcmstb-reboot.c | 3,781 | utf_8 | ee7c67ffbd2ee3161d2600b4e172d01f | /*
*/
#include <linux/bitops.h>
#include <linux/device.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/jiffies.h>
#include <linux/notifier.h>
#include <linux/of_address.h>
#include <linux/of_irq.h>
#include <linux/of_platform.h>
#include <linux/platform_device.h>
#include <lin... |
google | android | st-poweroff | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/reset/st-poweroff.c | 3,774 | utf_8 | 4686202431ffdb99186581bce6cccc83 | /*
*/
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_platform.h>
#include <linux/platform_device.h>
#include <linux/mfd/syscon.h>
#include <linux/reboot.h>
#include <linux/regmap.h>
struct reset_syscfg {
struct regmap *regmap;
/* syscfg used for reset */
unsigned int offset_rst;
unsigned int ma... |
google | android | gpio-restart | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/reset/gpio-restart.c | 4,075 | utf_8 | ee5760985c3fa7965c5d4070333f63e4 | /*
* Toggles a GPIO pin to restart a device
*
*
* Based on the gpio-poweroff driver.
*/
#include <linux/reboot.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/platform_device.h>
#include <linux/gpio/consumer.h>
#include <linux/of_platform.h>
#include <linux/module.h>
s... |
google | android | arm-versatile-reboot | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/reset/arm-versatile-reboot.c | 3,910 | utf_8 | 75d39b06cd8928b86b4f22923fcab60e | /*
*
*/
#include <linux/init.h>
#include <linux/mfd/syscon.h>
#include <linux/reboot.h>
#include <linux/regmap.h>
#include <linux/of.h>
#define INTEGRATOR_HDR_CTRL_OFFSET 0x0C
#define INTEGRATOR_HDR_LOCK_OFFSET 0x14
#define INTEGRATOR_CM_CTRL_RESET (1 << 3)
#define REALVIEW_SYS_LOCK_OFFSET 0x20
#define REALVIEW_SYS_R... |
google | android | at91-poweroff | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/reset/at91-poweroff.c | 4,985 | utf_8 | 8566085f90764322ecfa220676255da3 | /*
* Atmel AT91 SAM9 SoCs reset code
*
* warranty of any kind, whether express or implied.
*/
#include <linux/clk.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/printk.h>
#define AT91_SHDW_CR 0x00 /* Shut Down Control Register */
#define ... |
google | android | imx-snvs-poweroff | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/reset/imx-snvs-poweroff.c | 1,708 | utf_8 | 59a1daf34baf28b654a66d8b21aef5ed | /* Power off driver for i.mx6
*
*/
#include <linux/err.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_address.h>
#include <linux/platform_device.h>
static void __iomem *snvs_base;
static void do_imx_poweroff(void)
{
u32 va... |
google | android | as3722-poweroff | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/reset/as3722-poweroff.c | 2,478 | utf_8 | 5eb74956f08634311deda8b857a89863 | /*
* Power off driver for ams AS3722 device.
*
* more details.
*/
#include <linux/mfd/as3722.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_device.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
struct as3722_poweroff {
struct device *dev;
struct as3722 *as3722;
};
static stru... |
google | android | keystone-reset | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/reset/keystone-reset.c | 4,349 | utf_8 | f557757a3f84f30a7e4d402b83e671be | /*
* TI keystone reboot driver
*
*/
#include <linux/io.h>
#include <linux/module.h>
#include <linux/notifier.h>
#include <linux/reboot.h>
#include <linux/regmap.h>
#include <linux/mfd/syscon.h>
#include <linux/of_platform.h>
#define RSTYPE_RG 0x0
#define RSCTRL_RG 0x4
#define RSCFG_RG 0x8
#define RSISO_RG 0x... |
google | android | qnap-poweroff | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/reset/qnap-poweroff.c | 3,531 | utf_8 | 4cd943b572434b55b86603fea4778f91 | /*
* QNAP Turbo NAS Board power off. Can also be used on Synology devices.
*
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/serial_reg.h>
#include <linux/kallsyms.h>
#include <linux/of.h>
#include <linux/io.h>
#include <linux/clk.h>
#define UART1_REG(x) (bas... |
google | android | restart-poweroff | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/reset/restart-poweroff.c | 1,685 | utf_8 | 973406a56810f013197e1ebd354ecf50 | /*
* Power off by restarting and let u-boot keep hold of the machine
* until the user presses a button for example.
*
*/
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/of_platform.h>
#include <linux/module.h>
#include <linux/reboot.h>
static void restart_powerof... |
google | android | gpio-poweroff | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/reset/gpio-poweroff.c | 2,422 | utf_8 | b2f1e7c7c7d88174bf2642b587167b73 | /*
* Toggles a GPIO pin to power down a device
*
*
*/
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/platform_device.h>
#include <linux/gpio/consumer.h>
#include <linux/of_platform.h>
#include <linux/module.h>
/*
* Hold configuration here, cannot be more than one instanc... |
google | android | msm-poweroff | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/reset/msm-poweroff.c | 2,033 | utf_8 | cb41d10b9da4df8408ad526df9632db8 | *
*/
#include <linux/delay.h>
#include <linux/err.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/io.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/module.h>
#include <linux/reboot.h>
#include <linux/pm.h>
static void __iomem *msm_ps_hold;
static int do_msm_restart(st... |
google | android | rmobile-reset | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/reset/rmobile-reset.c | 2,152 | utf_8 | 8b46ea173b618eba82fa69dc16d19859 | /*
* Renesas R-Mobile Reset Driver
*
* for more details.
*/
#include <linux/io.h>
#include <linux/module.h>
#include <linux/notifier.h>
#include <linux/of_address.h>
#include <linux/platform_device.h>
#include <linux/printk.h>
#include <linux/reboot.h>
/* SYSC Register Bank 2 */
#define RESCNT2 0x20 /* Reset Cont... |
google | android | hisi-reboot | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/reset/hisi-reboot.c | 1,785 | utf_8 | 0855806a81ca475ebaeda734177069f8 | /*
* Hisilicon SoC reset code
*
*/
#include <linux/delay.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/notifier.h>
#include <linux/of_address.h>
#include <linux/platform_device.h>
#include <linux/reboot.h>
#include <asm/proc-fns.h>
static void __iomem *base;
static u32 reboot_offset;
static int ... |
google | android | rockchip-io-domain | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/avs/rockchip-io-domain.c | 10,454 | utf_8 | f49b2788b08c28db1195b4dc1754a1e1 | /*
* Rockchip IO Voltage Domain driver
*
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/err.h>
#include <linux/mfd/syscon.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>
#include <linux/regulator/consumer.h>
#define MAX_SUPPLIES 16
/*
* The max voltage ... |
google | android | smartreflex | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/avs/smartreflex.c | 29,092 | utf_8 | d4797c70e4781b80af9a346765304502 | /*
* OMAP SmartReflex Voltage Control
*
*/
#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/clk.h>
#include <linux/io.h>
#include <linux/debugfs.h>
#include <linux/delay.h>
#include <linux/slab.h>
#include <linux/pm_runtime.h>
#include <linux/power/smartreflex.h>
#define DRIVER_NAME "smartrefle... |
google | android | gntalloc | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/gntalloc.c | 15,675 | utf_8 | 5c22a7277e28c9ef6e33df63f77ba75f | /******************************************************************************
* gntalloc.c
*
* Device for creating grant references (in user-space) that may be shared
* with other domains.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied w... |
google | android | acpi | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/acpi.c | 2,792 | utf_8 | 519eef9e43e8861c68efb88fc336a266 | /******************************************************************************
* acpi.c
* acpi file for domain 0 kernel
*
*/
#include <xen/acpi.h>
#include <xen/interface/platform.h>
#include <asm/xen/hypercall.h>
#include <asm/xen/hypervisor.h>
static int xen_acpi_notify_hypervisor_state(u8 sleep_state,
... |
google | android | biomerge | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/biomerge.c | 609 | utf_8 | a33c76490330ea7c9b61327e334fa936 | #include <linux/bio.h>
#include <linux/io.h>
#include <linux/export.h>
#include <xen/page.h>
bool xen_biovec_phys_mergeable(const struct bio_vec *vec1,
const struct bio_vec *vec2)
{
#if XEN_PAGE_SIZE == PAGE_SIZE
unsigned long bfn1 = pfn_to_bfn(page_to_pfn(vec1->bv_page));
unsigned long bfn2 = pfn_to_bfn(p... |
google | android | dbgp | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/dbgp.c | 1,152 | utf_8 | 0a583d42a95586abcd93b46023bafb44 | #include <linux/pci.h>
#include <linux/usb.h>
#include <linux/usb/ehci_def.h>
#include <linux/usb/hcd.h>
#include <asm/xen/hypercall.h>
#include <xen/interface/physdev.h>
#include <xen/xen.h>
static int xen_dbgp_op(struct usb_hcd *hcd, int op)
{
#ifdef CONFIG_PCI
const struct device *ctrlr = hcd_to_bus(hcd)->controlle... |
google | android | balloon | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/balloon.c | 18,962 | utf_8 | 20d4028c90c34c611692f04770e85f70 | /******************************************************************************
* Xen balloon driver - enables returning/claiming memory to/from Xen.
*
*/
#define pr_fmt(fmt) "xen:" KBUILD_MODNAME ": " fmt
#include <linux/cpu.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/errno.h>
#include <li... |
google | android | pcpu | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/pcpu.c | 9,413 | utf_8 | 945572bf1148cfbf2ffc61ddc2a4d185 | /******************************************************************************
* pcpu.c
* Management physical cpu in dom0, get pcpu info and provide sys interface
*
*/
#define pr_fmt(fmt) "xen_cpu: " fmt
#include <linux/interrupt.h>
#include <linux/spinlock.h>
#include <linux/cpu.h>
#include <linux/stat.h>
#includ... |
google | android | sys-hypervisor | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/sys-hypervisor.c | 12,386 | utf_8 | a4d2a38c90732b05375258e07da3489c | /*
*/
#include <linux/slab.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/kobject.h>
#include <linux/err.h>
#include <asm/xen/hypervisor.h>
#include <asm/xen/hypercall.h>
#include <xen/xen.h>
#include <xen/xenbus.h>
#include <xen/interface/xen.h>
#include <xen/interface/version.h>
#ifdef CONFIG... |
google | android | fallback | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/fallback.c | 1,558 | utf_8 | 1987a009f6098d2d8409d430500c112c | #include <linux/kernel.h>
#include <linux/string.h>
#include <linux/bug.h>
#include <linux/export.h>
#include <asm/hypervisor.h>
#include <asm/xen/hypercall.h>
int xen_event_channel_op_compat(int cmd, void *arg)
{
struct evtchn_op op;
int rc;
op.cmd = cmd;
memcpy(&op.u, arg, sizeof(op.u));
rc = _hypercall1(int, ev... |
google | android | preempt | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/preempt.c | 1,230 | utf_8 | c884045882af311a910433427b9d8e4f | /*
* Preemptible hypercalls
*
*/
#include <linux/sched.h>
#include <xen/xen-ops.h>
#ifndef CONFIG_PREEMPT
/*
* Some hypercalls issued by the toolstack can take many 10s of
* seconds. Allow tasks running hypercalls via the privcmd driver to
* be voluntarily preempted even if full kernel preemption is
* disabled.
... |
google | android | efi | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/efi.c | 11,621 | utf_8 | b9ebb6d9b085096fc55f1768b5c71c21 | /*
* EFI support for Xen.
*
*/
#include <linux/bug.h>
#include <linux/efi.h>
#include <linux/init.h>
#include <linux/string.h>
#include <xen/interface/xen.h>
#include <xen/interface/platform.h>
#include <xen/xen.h>
#include <asm/page.h>
#include <asm/xen/hypercall.h>
#define INIT_EFI_OP(name) \
{.cmd = XENPF_efi_ru... |
google | android | privcmd | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/privcmd.c | 15,376 | utf_8 | 47e9b917e9fa71a7d34060da3d4368ad | /******************************************************************************
* privcmd.c
*
* Interface to privileged domain-0 commands.
*
*/
#define pr_fmt(fmt) "xen:" KBUILD_MODNAME ": " fmt
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/str... |
google | android | pci | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/pci.c | 6,144 | utf_8 | 64f8fe0ec09d952bc0c2e4835076a118 | /*
*/
#include <linux/pci.h>
#include <linux/acpi.h>
#include <linux/pci-acpi.h>
#include <xen/xen.h>
#include <xen/interface/physdev.h>
#include <xen/interface/xen.h>
#include <asm/xen/hypervisor.h>
#include <asm/xen/hypercall.h>
#include "../pci/pci.h"
#ifdef CONFIG_PCI_MMCONFIG
#include <asm/pci_x86.h>
#endif
stati... |
google | android | manage | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/manage.c | 7,377 | utf_8 | 5bd725554cbcd3a31464a294e97b9fa3 | /*
* Handle extern requests for shutdown, reboot and sysrq
*/
#define pr_fmt(fmt) "xen:" KBUILD_MODNAME ": " fmt
#include <linux/kernel.h>
#include <linux/err.h>
#include <linux/slab.h>
#include <linux/reboot.h>
#include <linux/sysrq.h>
#include <linux/stop_machine.h>
#include <linux/freezer.h>
#include <linux/syscor... |
google | android | xen-scsiback | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/xen-scsiback.c | 48,942 | utf_8 | 4ac13e3876b0354d3bdfa9a21a952948 | /*
* Xen SCSI backend driver
*
*/
#define pr_fmt(fmt) "xen-pvscsi: " fmt
#include <stdarg.h>
#include <linux/module.h>
#include <linux/utsname.h>
#include <linux/interrupt.h>
#include <linux/slab.h>
#include <linux/wait.h>
#include <linux/sched.h>
#include <linux/list.h>
#include <linux/gfp.h>
#include <linux/delay.... |
google | android | xen-acpi-pad | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/xen-acpi-pad.c | 4,138 | utf_8 | 6bfa8c01e74b2bccca8d42bfbd7b747f | /*
* xen-acpi-pad.c - Xen pad interface
*
* more details.
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/acpi.h>
#include <xen/interface/version.h>
#include <xen/xen-ops.h>
#include <asm/xen/hypercall.h>
#define ACPI_PROCESSOR_AGGREGATOR_CLASS "acpi... |
google | android | xen-selfballoon | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/xen-selfballoon.c | 18,221 | utf_8 | 7bc6a24aa606332a9c9db470d365f5a2 | /******************************************************************************
* Xen selfballoon driver (and optional frontswap self-shrinking driver)
*
*
* This code complements the cleancache and frontswap patchsets to optimize
* support for Xen Transcendent Memory ("tmem"). The policy it implements
* is rudi... |
google | android | swiotlb-xen | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/swiotlb-xen.c | 19,791 | utf_8 | 3c13bf7e66efbcd076b7d5a96ca3c66f | /*
*
* PV guests under Xen are running in an non-contiguous memory architecture.
*
* When PCI pass-through is utilized, this necessitates an IOMMU for
* translating bus (DMA) to virtual and vice-versa and also providing a
* mechanism to have contiguous pages for device drivers operations (say DMA
* operations).
... |
google | android | xen-acpi-processor | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/xen-acpi-processor.c | 17,165 | utf_8 | a1047b5b3085b3a4bdf2c38100f2c77c | /*
* more details.
*
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/cpumask.h>
#include <linux/cpufreq.h>
#include <linux/freezer.h>
#include <linux/kernel.h>
#include <linux/kthread.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/types.h>
#include <linux/acpi.h>
#include <acpi/p... |
google | android | xen-balloon | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/xen-balloon.c | 6,773 | utf_8 | 3063a6039d8aabfaf6dcbaf5b1c0dadd | /******************************************************************************
* Xen balloon driver - enables returning/claiming memory to/from Xen.
*
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/capability.h>
#include <xen/xen.h>
#include <xen/i... |
google | android | tmem | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/tmem.c | 10,461 | utf_8 | 7711919f023e5e70cd5b693e70322784 | /*
* Xen implementation for transcendent memory (tmem)
*
* Author: Dan Magenheimer
*/
#define pr_fmt(fmt) "xen:" KBUILD_MODNAME ": " fmt
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/init.h>
#include <linux/pagemap.h>
#include <linux/cleancache.h>
#include <linux/front... |
google | android | xen-stub | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/xen-stub.c | 2,857 | utf_8 | 2ce2bd0047fa313c9f0a9cd0d7cb6cc7 | /*
* xen-stub.c - stub drivers to reserve space for Xen
*
* details.
*/
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/export.h>
#include <linux/types.h>
#include <linux/acpi.h>
#include <xen/acpi.h>
#ifdef CONFIG_ACPI
/*--------------------------------------------
stub driver for Xen memory hot... |
google | android | cpu_hotplug | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/cpu_hotplug.c | 2,273 | utf_8 | 05a3883a6e8b30c7fea17ad104f8b64c | #define pr_fmt(fmt) "xen:" KBUILD_MODNAME ": " fmt
#include <linux/notifier.h>
#include <xen/xen.h>
#include <xen/xenbus.h>
#include <asm/xen/hypervisor.h>
#include <asm/cpu.h>
static void enable_hotplug_cpu(int cpu)
{
if (!cpu_present(cpu))
xen_arch_register_cpu(cpu);
set_cpu_present(cpu, true);
}
static voi... |
google | android | xlate_mmu | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/xlate_mmu.c | 5,434 | utf_8 | cbd40781fb523ca43d2c469accff9aac | /*
* MMU operations common to all auto-translated physmap guests.
*
*/
#include <linux/kernel.h>
#include <linux/mm.h>
#include <asm/xen/hypercall.h>
#include <asm/xen/hypervisor.h>
#include <xen/xen.h>
#include <xen/page.h>
#include <xen/interface/xen.h>
#include <xen/interface/memory.h>
typedef void (*xen_gfn_fn_t... |
google | android | mcelog | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/mcelog.c | 10,304 | utf_8 | 69f5f371d32e235c0c14af608e64a5f5 | /******************************************************************************
* mcelog.c
* Driver for receiving and transferring machine check error infomation
*
*/
#define pr_fmt(fmt) "xen_mcelog: " fmt
#include <linux/init.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <l... |
google | android | evtchn | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/evtchn.c | 15,635 | utf_8 | 42e6dd4bf0fe011b5e5db555d9316dd2 | /******************************************************************************
* evtchn.c
*
* Driver for receiving and demuxing event-channel signals.
*
*/
#define pr_fmt(fmt) "xen:" KBUILD_MODNAME ": " fmt
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/slab.h>
#inclu... |
google | android | xen-acpi-memhotplug | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/xen-acpi-memhotplug.c | 12,117 | utf_8 | bee419e59cecba8c596851a769cf16cb | /*
* details.
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/types.h>
#include <linux/acpi.h>
#include <xen/acpi.h>
#include <xen/interface/platform.h>
#include <asm/xen/hypercall.h>
#define PREFIX "ACPI:xen_memory_hotplug:"
s... |
google | android | grant-table | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/grant-table.c | 30,644 | utf_8 | 5c003f28346ae60fe33031595fa267e6 | /******************************************************************************
* grant_table.c
*
* Granting foreign access to our memory reservation.
*
*/
#define pr_fmt(fmt) "xen:" KBUILD_MODNAME ": " fmt
#include <linux/module.h>
#include <linux/sched.h>
#include <linux/mm.h>
#include <linux/slab.h>
#include <l... |
google | android | platform-pci | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/platform-pci.c | 4,811 | utf_8 | a5b240a333b53ab8502ef490e1170126 | /******************************************************************************
* platform-pci.c
*
* Xen platform PCI device driver
* Place - Suite 330, Boston, MA 02111-1307 USA.
*
*/
#include <linux/interrupt.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <xen/platform_pci.h>... |
google | android | features | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/features.c | 762 | utf_8 | dbb108e543e6dabc70077fbe4be6cef1 | /******************************************************************************
* features.c
*
* Xen feature flags.
*
void xen_setup_features(void)
{
struct xen_feature_info fi;
int i, j;
for (i = 0; i < XENFEAT_NR_SUBMAPS; i++) {
fi.submap_idx = i;
if (HYPERVISOR_xen_version(XENVER_get_features, &fi) < 0)
... |
google | android | xen-acpi-cpuhotplug | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/xen-acpi-cpuhotplug.c | 10,930 | utf_8 | 32d3d289c1ae54eb2729743beda74519 | /*
* details.
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/types.h>
#include <linux/cpu.h>
#include <linux/acpi.h>
#include <linux/uaccess.h>
#include <acpi/processor.h>
#include <xen/acpi.h>
#include <xen/interface/platform... |
google | android | gntdev | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/gntdev.c | 23,326 | utf_8 | 80891dbcbd273c333606775bb5c4e78d | /******************************************************************************
* gntdev.c
*
* Device for accessing (in user-space) pages that have been granted by other
* domains.
*
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#undef DEBUG
#define pr_fmt(fmt) "xen:" KBUILD_MODN... |
google | android | events_base | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/events/events_base.c | 38,750 | utf_8 | a86d6f23e4966fdfb42a19ba016ed040 | /*
* Xen event channels
*
* Xen models interrupts with abstract event channels. Because each
* domain gets 1024 event channels, but NR_IRQ is not that large, we
* must dynamically map irqs<->event channels. The event channels
* interface with the rest of the kernel by defining a xen interrupt
* chip. When an ... |
google | android | events_fifo | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/events/events_fifo.c | 11,642 | utf_8 | 49bdc7a75b5c0d5f1b55555fee73c4a2 | /*
* Xen event channels (FIFO-based ABI)
*
*/
#define pr_fmt(fmt) "xen:" KBUILD_MODNAME ": " fmt
#include <linux/linkage.h>
#include <linux/interrupt.h>
#include <linux/irq.h>
#include <linux/module.h>
#include <linux/smp.h>
#include <linux/percpu.h>
#include <linux/cpu.h>
#include <asm/sync_bitops.h>
#include <asm/... |
google | android | events_2l | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/events/events_2l.c | 10,690 | utf_8 | 8a16d7f95127ca9d256186a4b3bc934e | /*
* Xen event channels (2-level ABI)
*
*/
#define pr_fmt(fmt) "xen:" KBUILD_MODNAME ": " fmt
#include <linux/linkage.h>
#include <linux/interrupt.h>
#include <linux/irq.h>
#include <linux/module.h>
#include <asm/sync_bitops.h>
#include <asm/xen/hypercall.h>
#include <asm/xen/hypervisor.h>
#include <xen/xen.h>
#incl... |
google | android | xenstored | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/xenfs/xenstored.c | 1,531 | utf_8 | 903841965c9127597bb40c1b18d7f559 | #include <linux/slab.h>
#include <linux/types.h>
#include <linux/mm.h>
#include <linux/fs.h>
#include <xen/page.h>
#include "xenfs.h"
#include "../xenbus/xenbus_comms.h"
static ssize_t xsd_read(struct file *file, char __user *buf,
size_t size, loff_t *off)
{
const char *str = (const char *)file->private_data... |
google | android | xensyms | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/xenfs/xensyms.c | 3,185 | utf_8 | ca39966f961264beef6e590f453661e7 | #include <linux/module.h>
#include <linux/init.h>
#include <linux/seq_file.h>
#include <linux/fs.h>
#include <linux/mm.h>
#include <linux/proc_fs.h>
#include <linux/slab.h>
#include <xen/interface/platform.h>
#include <asm/xen/hypercall.h>
#include <xen/xen-ops.h>
#include "xenfs.h"
#define XEN_KSYM_NAME_LEN 127 /* H... |
google | android | super | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/xen/xenfs/super.c | 2,554 | utf_8 | d2b091c26e7ccf083d007aab1aa28b34 | /*
* xenfs.c - a filesystem for passing info between the a domain and
* the hypervisor.
*
* 2008-10-07 Alex Zeffertt Replaced /proc/xen/xenbus with xenfs filesystem
* and /proc/xen compatibility mount point.
* Turned xenfs into a loadable module.
*/... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.