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 | leds-da9052 | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/leds/leds-da9052.c | 5,085 | utf_8 | 175aa02c29b04bf89a0e3e917787c2a3 | /*
* LED Driver for Dialog DA9052 PMICs.
*
* option) any later version.
*
*/
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/platform_device.h>
#include <linux/leds.h>
#include <linux/workqueue.h>
#include <linux/slab.h>
#include <linux/mfd/da9052/reg.h>
#include <linux/mfd/da9052/da9052.h>
#i... |
google | android | leds-bcm6358 | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/leds/leds-bcm6358.c | 5,849 | utf_8 | e8995288fa2b699cf470687e0acbca4b | /*
* Driver for BCM6358 memory-mapped LEDs, based on leds-syscon.c
*
* option) any later version.
*/
#include <linux/delay.h>
#include <linux/io.h>
#include <linux/leds.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/spinlock.h>
#define BCM6358_REG_MODE 0x0
#de... |
google | android | leds-lp8788 | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/leds/leds-lp8788.c | 4,413 | utf_8 | cc52cc7f311fe98a797c40a21759cb13 | /*
* TI LP8788 MFD - keyled driver
*
*
*/
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/err.h>
#include <linux/platform_device.h>
#include <linux/leds.h>
#include <linux/mutex.h>
#include <linux/mfd/lp8788.h>
#include <linux/mfd/lp8788-isink.h>
#define MAX_BRIGHTNESS LP8788_ISINK_MAX_PWM
#defi... |
google | android | led-core | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/leds/led-core.c | 6,321 | utf_8 | f53de14730577f1f7bdb57156de72bf2 | /*
* LED Class Core
*
*
*/
#include <linux/kernel.h>
#include <linux/leds.h>
#include <linux/list.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/rwsem.h>
#include "leds.h"
DECLARE_RWSEM(leds_list_lock);
static void led_timer_function(unsigned long data)
{
struct led_classdev *led_cdev = (voi... |
google | android | leds-lp3944 | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/leds/leds-lp3944.c | 11,188 | utf_8 | f544cc192be6fc4d4f1151e47c6f65d0 | /*
* leds-lp3944.c - driver for National Semiconductor LP3944 Funlight Chip
*
*
*/
/*
* I2C driver for National Semiconductor LP3944 Funlight Chip
* http://www.national.com/pf/LP/LP3944.html
*
* This helper chip can drive up to 8 leds, with two programmable DIM modes;
* it could even be used as a gpio expander... |
google | android | leds-blinkm | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/leds/leds-blinkm.c | 20,971 | iso_8859_1 | b6db60620b7df1ecefc2439fead59f6a | /*
* leds-blinkm.c
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/jiffies.h>
#include <linux/i2c.h>
#include <linux/err.h>
#include <linux/mutex.h>
#include <linux/sysfs.h>
#include <linux/printk.h>
#include <linux/pm_runtime.h>
#inc... |
google | android | leds-clevo-mail | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/leds/leds-clevo-mail.c | 5,447 | utf_8 | 8ff33382821803cb3b522696aea24b22 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/err.h>
#include <linux/leds.h>
#include <linux/io.h>
#include <linux/dmi.h>
#include <linux/i8042.h>
#define CLEVO_MAIL_LED_OFF 0x0084
#define CLEVO_MAIL_LED_BLINK_1HZ 0x008A
#define CLEVO_MAIL_LED_... |
google | android | leds-ktd2692 | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/leds/leds-ktd2692.c | 12,149 | utf_8 | 8462c2f3dc7886911b1812ac2dccb46c | /*
* LED driver : leds-ktd2692.c
*
*/
#include <linux/delay.h>
#include <linux/err.h>
#include <linux/gpio/consumer.h>
#include <linux/led-class-flash.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/regulator/consumer.h>
#include <linux/w... |
google | android | leds-net48xx | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/leds/leds-net48xx.c | 2,021 | utf_8 | f7e10953e520c55dd345638d0db2e71d | /*
* LEDs driver for Soekris net48xx
*
*/
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/leds.h>
#include <linux/err.h>
#include <linux/io.h>
#include <linux/nsc_gpio.h>
#include <linux/scx200_gpio.h>
#include <linux/module.h>
#define DRVNAME "net48xx-led"
#defin... |
google | android | leds-wm831x-status | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/leds/leds-wm831x-status.c | 7,604 | utf_8 | bb9a3bff94341793aa792f648259a773 | /*
* LED driver for WM831x status LEDs
*
*
*/
#include <linux/kernel.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/leds.h>
#include <linux/err.h>
#include <linux/mfd/wm831x/core.h>
#include <linux/mfd/wm831x/pdata.h>
#include <linux/mfd/wm831x/status.h>
#include <linux/module.h>
stru... |
google | android | leds-lp5523 | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/leds/leds-lp5523.c | 24,431 | utf_8 | 43bbec2166eb51c8d492d416674ea593 | /*
* lp5523.c - LP5523, LP55231 LED Driver
*
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA
*/
#include <linux/delay.h>
#include <linux/firmware.h>
#include <linux/i2c.h>
#include <linux/leds.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/of.h>
#include <linux/p... |
google | android | leds-lm355x | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/leds/leds-lm355x.c | 14,106 | utf_8 | f62613761689684deed23bdecfad0e54 | /*
* Simple driver for Texas Instruments LM355x LED Flash driver chip
*/
#include <linux/module.h>
#include <linux/delay.h>
#include <linux/i2c.h>
#include <linux/gpio.h>
#include <linux/leds.h>
#include <linux/slab.h>
#include <linux/platform_device.h>
#include <linux/fs.h>
#include <linux/regmap.h>
#include <linux/wo... |
google | android | leds-gpio | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/leds/leds-gpio.c | 8,122 | utf_8 | a058612870598d558674e7872b075b39 | /*
* LEDs driver for GPIOs
*
*
*/
#include <linux/err.h>
#include <linux/gpio.h>
#include <linux/gpio/consumer.h>
#include <linux/kernel.h>
#include <linux/leds.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/property.h>
#include <linux/slab.h>
#include <linux/w... |
google | android | leds-cobalt-qube | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/leds/leds-cobalt-qube.c | 1,613 | utf_8 | fff4119ee9301f58e81167a8458e78a6 | /*
*
* Control the Cobalt Qube/RaQ front LED
*/
#include <linux/io.h>
#include <linux/ioport.h>
#include <linux/leds.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/types.h>
#define LED_FRONT_LEFT 0x01
#define LED_FRONT_RIGHT 0x02
static void __iomem *led_port;
static u8 led_value;
st... |
google | android | leds-pca963x | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/leds/leds-pca963x.c | 12,447 | utf_8 | 67f96aae46e81d046a62f0ca82e8f17c | /*
* directory of this archive for more details.
*
* LED driver for the PCA9633 I2C LED driver (7-bit slave address 0x62)
* LED driver for the PCA9634/5 I2C LED driver (7-bit slave address set by hw.)
*
* Note that hardware blinking violates the leds infrastructure driver
* interface since the hardware only supp... |
google | android | leds-lm3642 | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/leds/leds-lm3642.c | 11,893 | utf_8 | 46c96a4a9ca13efa597728c17deded7d | /*
* Simple driver for Texas Instruments LM3642 LED Flash driver chip
*
*/
#include <linux/module.h>
#include <linux/delay.h>
#include <linux/i2c.h>
#include <linux/leds.h>
#include <linux/slab.h>
#include <linux/platform_device.h>
#include <linux/fs.h>
#include <linux/regmap.h>
#include <linux/workqueue.h>
#include <l... |
google | android | leds-tca6507 | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/leds/leds-tca6507.c | 22,237 | utf_8 | 1e1aee4edf7beffca5e575ad29c177f1 | /*
* leds-tca6507
*
* The TCA6507 is a programmable LED controller that can drive 7
* separate lines either by holding them low, or by pulsing them
* with modulated width.
* The modulation can be varied in a simple pattern to produce a
* blink or double-blink.
*
* This driver can configure each line either as ... |
google | android | leds-lp8860 | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/leds/leds-lp8860.c | 12,580 | utf_8 | 6d784bec4b6d0ca322208815d46ee65b | /*
* TI LP8860 4-Channel LED Driver
*
*
*/
#include <linux/i2c.h>
#include <linux/init.h>
#include <linux/leds.h>
#include <linux/regmap.h>
#include <linux/regulator/consumer.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/of.h>
#include <linux/of_gpio.h>
#include <linux/gpio/consumer.h>
#incl... |
google | android | leds-rb532 | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/leds/leds-rb532.c | 1,476 | utf_8 | 9be6bb9e1700396b7721a412f3c3032a | /*
* LEDs driver for the "User LED" on Routerboard532
*
*
* Based on leds-cobalt-qube.c by Florian Fainelly and
* rb-diag.c (my own standalone driver for both LED and
* button of Routerboard532).
*/
#include <linux/leds.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <asm/mach-rc32434/gp... |
google | android | leds-regulator | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/leds/leds-regulator.c | 5,082 | utf_8 | d2edf5bf0a5a10f5cc31ffef18040e72 | /*
* leds-regulator.c - LED class driver for regulator driven LEDs.
*
*
*/
#include <linux/module.h>
#include <linux/err.h>
#include <linux/slab.h>
#include <linux/workqueue.h>
#include <linux/leds.h>
#include <linux/leds-regulator.h>
#include <linux/platform_device.h>
#include <linux/regulator/consumer.h>
#define ... |
google | android | leds-ns2 | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/leds/leds-ns2.c | 10,318 | utf_8 | 4f4bd1d0b48d574af0bdc8938c5efba5 | /*
* leds-ns2.c - Driver for the Network Space v2 (and parents) dual-GPIO LED
*
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <linux/kernel.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/gpio.h>
#include <linux/leds.h>
#include <linux/module.h... |
google | android | leds-netxbig | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/leds/leds-netxbig.c | 14,696 | utf_8 | 112567ef4e567f60a454c532215442c2 | /*
* leds-netxbig.c - Driver for the 2Big and 5Big Network series LEDs
*
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <linux/module.h>
#include <linux/irq.h>
#include <linux/slab.h>
#include <linux/spinlock.h>
#include <linux/platform_device.h>
#include <linux/gpio.h>
#inc... |
google | android | leds-lp55xx-common | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/leds/leds-lp55xx-common.c | 13,956 | utf_8 | cb60890e4c5575143419fdc7581eda60 | /*
* LP5521/LP5523/LP55231/LP5562 Common Driver
*
*
* Derived from leds-lp5521.c, leds-lp5523.c
*/
#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/firmware.h>
#include <linux/i2c.h>
#include <linux/leds.h>
#include <linux/module.h>
#include <linux/platform_data/leds-lp55xx.h>
#include <linux/slab.h... |
google | android | leds-lt3593 | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/leds/leds-lt3593.c | 4,803 | utf_8 | d6ba52c72d27f52592fea21510295077 | /*
* LEDs driver for LT3593 controllers
*
* See the datasheet at http://cds.linear.com/docs/Datasheet/3593f.pdf
*
*/
#include <linux/kernel.h>
#include <linux/platform_device.h>
#include <linux/leds.h>
#include <linux/workqueue.h>
#include <linux/delay.h>
#include <linux/gpio.h>
#include <linux/slab.h>
#include <l... |
google | android | leds-88pm860x | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/leds/leds-88pm860x.c | 6,187 | utf_8 | d681171e4dc46ee6ec730bae6fee4c3e | /*
* LED driver for Marvell 88PM860x
*
*
*/
#include <linux/kernel.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/i2c.h>
#include <linux/leds.h>
#include <linux/slab.h>
#include <linux/workqueue.h>
#include <linux/mfd/88pm860x.h>
#include <linux/module.h>
#define LED_PWM_MASK (0x1F)
#d... |
google | android | leds-gpio-register | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/leds/leds-gpio-register.c | 1,366 | utf_8 | c972958265540cd3f18518deae220aee | /*
*
* Makes a copy of pdata and pdata->leds and registers a new leds-gpio device
* with the result. This allows to have pdata and pdata-leds in .init.rodata
* and so saves some bytes compared to a static struct platform_device with
* static platform data.
*
* Returns the registered device or an error pointer.
... |
google | android | leds-syscon | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/leds/leds-syscon.c | 4,328 | utf_8 | 01f06b1b239bbfb46e9a76af449b29c0 | /*
* Generic Syscon LEDs Driver
*
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*/
#include <linux/io.h>
#include <linux/module.h>
#include <linux/of_device.h>
#include <linux/of_address.h>
#include <linux/platform_device.h>
#include <linux/stat.h>
#include <linux/slab.h>
#include <li... |
google | android | leds-pca9532 | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/leds/leds-pca9532.c | 12,123 | utf_8 | 86efeef8e03799f89276717edf5331f5 | /*
* pca9532.c - 16-bit Led dimmer
*
*
* Datasheet: http://www.nxp.com/documents/data_sheet/PCA9532.pdf
*
*/
#include <linux/module.h>
#include <linux/i2c.h>
#include <linux/slab.h>
#include <linux/leds.h>
#include <linux/input.h>
#include <linux/mutex.h>
#include <linux/workqueue.h>
#include <linux/leds-pca9532.... |
google | android | ledtrig-default-on | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/leds/trigger/ledtrig-default-on.c | 1,080 | utf_8 | 62c3628481201d486bcdac6659eb257b | /*
* LED Kernel Default ON Trigger
*
*
*/
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/leds.h>
#include "../leds.h"
static void defon_trig_activate(struct led_classdev *led_cdev)
{
led_set_brightness_async(led_cdev, led_cdev->max_brightness);
}
static struct led_trigg... |
google | android | ledtrig-cpu | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/leds/trigger/ledtrig-cpu.c | 3,877 | utf_8 | f0acbc172268525e2343871017dbb3af | /*
* ledtrig-cpu.c - LED trigger based on CPU activity
*
* This LED trigger will be registered for each possible CPU and named as
* cpu0, cpu1, cpu2, cpu3, etc.
*
* It can be bound to any LED just like other triggers using either a
* board file or via sysfs interface.
*
* An API named ledtrig_cpu is exported f... |
google | android | ledtrig-timer | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/leds/trigger/ledtrig-timer.c | 3,167 | utf_8 | eb99281f836f8f9c8f2afe4791a2c9f2 | /*
* LED Kernel Timer Trigger
*
*
*/
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/device.h>
#include <linux/ctype.h>
#include <linux/leds.h>
static ssize_t led_delay_on_show(struct device *dev,
struct device_attribute *attr, char *buf)
{
struct led_classdev *led_cde... |
google | android | ledtrig-oneshot | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/leds/trigger/ledtrig-oneshot.c | 5,227 | utf_8 | a42345d51b2200b846c4214d1e3393cd | /*
* One-shot LED Trigger
*
*
*/
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/device.h>
#include <linux/ctype.h>
#include <linux/slab.h>
#include <linux/leds.h>
#include "../leds.h"
#define DEFAULT_DELAY 100
struct oneshot_trig_data {
unsigned int invert;
};
static ss... |
google | android | ledtrig-gpio | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/leds/trigger/ledtrig-gpio.c | 6,288 | utf_8 | d654e6b6213818e9d19cfd3a536b3667 | /*
* ledtrig-gio.c - LED Trigger Based on GPIO events
*
*
*/
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/gpio.h>
#include <linux/interrupt.h>
#include <linux/workqueue.h>
#include <linux/leds.h>
#include <linux/slab.h>
#include "../leds.h"
struct gpio_trig_data {
str... |
google | android | ledtrig-transient | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/leds/trigger/ledtrig-transient.c | 6,615 | utf_8 | 8aac44abd0b58445d7392f6cc2f00b6f | /*
* LED Kernel Transient Trigger
*
*
*/
/*
* Transient trigger allows one shot timer activation. Please refer to
* Documentation/leds/ledtrig-transient.txt for details
*/
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/device.h>
#include <linux/slab.h>
#include <linux/... |
google | android | ledtrig-ide-disk | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/leds/trigger/ledtrig-ide-disk.c | 1,098 | utf_8 | b6ff0079de889a5494ffaf8d98d7ea45 | /*
* LED IDE-Disk Activity Trigger
*
*
*/
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/leds.h>
#define BLINK_DELAY 30
DEFINE_LED_TRIGGER(ledtrig_ide);
static unsigned long ide_blink_delay = BLINK_DELAY;
void ledtrig_ide_activity(void)
{
led_trigger_blink_oneshot(ledtr... |
google | android | ledtrig-camera | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/leds/trigger/ledtrig-camera.c | 1,375 | utf_8 | 026e308533330d7c811a8fac824db515 | /*
* Camera Flash and Torch On/Off Trigger
*
* based on ledtrig-ide-disk.c
*
*
*/
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/leds.h>
DEFINE_LED_TRIGGER(ledtrig_flash);
DEFINE_LED_TRIGGER(ledtrig_torch);
void ledtrig_flash_ctrl(bool on)
{
enum led_brightness brt = ... |
google | android | ledtrig-backlight | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/leds/trigger/ledtrig-backlight.c | 3,833 | utf_8 | 770ab44dd48716dbe39eed94d24b6745 | /*
* Backlight emulation LED trigger
*
*
*/
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/fb.h>
#include <linux/leds.h>
#include "../leds.h"
#define BLANK 1
#define UNBLANK 0
struct bl_trig_notifier {
struct led_classdev *led;
int brightness;... |
google | android | ledtrig-heartbeat | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/leds/trigger/ledtrig-heartbeat.c | 5,415 | utf_8 | 0d33d00788e5a3824f2ac57be83dd552 | /*
* LED Heartbeat Trigger
*
*
*/
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/timer.h>
#include <linux/sched.h>
#include <linux/leds.h>
#include <linux/reboot.h>
#include "../leds.h"
static int panic_heartbeats;
struct heartbeat_trig_data {
un... |
google | android | hsi_boardinfo | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/hsi/hsi_boardinfo.c | 1,870 | utf_8 | ddb3cb27f00cc1b1c7ea5a3a6d5be677 | /*
* HSI clients registration interface
*
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA
*/
#include <linux/hsi/hsi.h>
#include <linux/list.h>
#include <linux/slab.h>
#include "hsi_core.h"
/*
* hsi_board_list is only used internally by the HSI framework.
* No one else is allowed to ... |
google | android | hsi | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/hsi/hsi.c | 18,859 | utf_8 | 87e9253656a65ba740098165b5cc5d5c | /*
* HSI core.
*
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA
*/
#include <linux/hsi/hsi.h>
#include <linux/compiler.h>
#include <linux/list.h>
#include <linux/kobject.h>
#include <linux/slab.h>
#include <linux/string.h>
#include <linux/notifier.h>
#include <linux/of.h>
#include <li... |
google | android | omap_ssi | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/hsi/controllers/omap_ssi.c | 16,774 | utf_8 | e0d889c705db49f1e8d9d47db023b782 | /* OMAP SSI driver.
*
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA
*/
#include <linux/compiler.h>
#include <linux/err.h>
#include <linux/ioport.h>
#include <linux/io.h>
#include <linux/gpio.h>
#include <linux/clk.h>
#include <linux/device.h>
#include <linux/platform_device.h>
#includ... |
google | android | omap_ssi_port | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/hsi/controllers/omap_ssi_port.c | 41,834 | utf_8 | 98685c0d1b2fc8dc0a5865a8fe1ea087 | /* OMAP SSI port driver.
*
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA
*/
#include <linux/platform_device.h>
#include <linux/dma-mapping.h>
#include <linux/pm_runtime.h>
#include <linux/of_gpio.h>
#include <linux/debugfs.h>
#include "omap_ssi_regs.h"
#include "omap_ssi.h"
static inl... |
google | android | cmt_speech | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/hsi/clients/cmt_speech.c | 34,858 | utf_8 | 6980e6c8d1304f9c205b41091637f4ac | /*
* cmt_speech.c - HSI CMT speech driver
*
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA
*/
#include <linux/errno.h>
#include <linux/module.h>
#include <linux/types.h>
#include <linux/init.h>
#include <linux/device.h>
#include <linux/miscdevice.h>
#include <linux/mm.h>
#include <lin... |
google | android | ssi_protocol | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/hsi/clients/ssi_protocol.c | 29,921 | utf_8 | 453d734a417de6ff7a2e47152fcd7d79 | /*
* ssi_protocol.c
*
* Implementation of the SSI McSAAB improved protocol.
*
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA
*/
#include <linux/atomic.h>
#include <linux/clk.h>
#include <linux/device.h>
#include <linux/err.h>
#include <linux/gpio.h>
#include <linux/if_ether.h>
#incl... |
google | android | nokia-modem | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/hsi/clients/nokia-modem.c | 7,883 | utf_8 | d98a9509ca25c8f4d2e92a8f40959836 | /*
* nokia-modem.c
*
* HSI client driver for Nokia N900 modem.
*
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA
*/
#include <linux/gpio/consumer.h>
#include <linux/hsi/hsi.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/of.h>
#include <linux/of_irq.h>
#includ... |
google | android | hsi_char | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/hsi/clients/hsi_char.c | 19,854 | utf_8 | a7e7116203a2f56713b085e0a0b9d401 | /*
* HSI character device driver, implements the character device
* interface.
*
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA
*/
#include <linux/errno.h>
#include <linux/types.h>
#include <linux/atomic.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/module.h>
#... |
google | android | intel_rapl | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/powercap/intel_rapl.c | 41,623 | utf_8 | 4a866c2ea29d38d2f78ba0e65749d326 | /*
* Intel Running Average Power Limit (RAPL) Driver
*
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/list.h>
#include <linux/types.h>
#include <linux/device.h>
#include <linux/slab.h>
#include <linux/log2.h>
#include <linux/bitmap.h>
#include <linu... |
google | android | powercap_sys | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/powercap/powercap_sys.c | 19,421 | utf_8 | 27d112497cd4d326f28ed8629823e421 | /*
* Power capping class
*
*/
#include <linux/module.h>
#include <linux/device.h>
#include <linux/err.h>
#include <linux/slab.h>
#include <linux/powercap.h>
#define to_powercap_zone(n) container_of(n, struct powercap_zone, dev)
#define to_powercap_control_type(n) \
container_of(n, struct powercap_control_type, de... |
google | android | cpuidle-pseries | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/cpuidle/cpuidle-pseries.c | 6,038 | utf_8 | 5cc3db995601ae529cc3b0d9d8d8e28e | /*
* cpuidle-pseries - idle state cpuidle driver.
* Adapted from drivers/idle/intel_idle.c and
* drivers/acpi/processor_idle.c
*
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/moduleparam.h>
#include <linux/cpuidle.h>
#include <linux/cpu.h>
#include <linux/notifi... |
google | android | sysfs | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/cpuidle/sysfs.c | 16,494 | utf_8 | ce5a4224b555ab75140565a39ecb9ea9 | /*
* sysfs.c - sysfs support
*
*/
#include <linux/kernel.h>
#include <linux/cpuidle.h>
#include <linux/sysfs.h>
#include <linux/slab.h>
#include <linux/cpu.h>
#include <linux/completion.h>
#include <linux/capability.h>
#include <linux/device.h>
#include <linux/kobject.h>
#include "cpuidle.h"
static unsigned int sysf... |
google | android | cpuidle-kirkwood | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/cpuidle/cpuidle-kirkwood.c | 2,319 | utf_8 | d94890ab63758f807bd3f791d08f052c | /*
* CPU idle Marvell Kirkwood SoCs
*
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/cpuidle.h>
#include <linux/io.h>
#include <linux/export.h>
#include <asm/cpuidle.h>
#define KIRKWOOD_MAX_STATES 2
static void __iomem *ddr_operation_... |
google | android | cpuidle-big_little | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/cpuidle/cpuidle-big_little.c | 6,828 | utf_8 | b77a46a1d7e5770ea2cab9b23f1431fa | /*
*/
#include <linux/cpuidle.h>
#include <linux/cpu_pm.h>
#include <linux/slab.h>
#include <linux/of.h>
#include <asm/cpu.h>
#include <asm/cputype.h>
#include <asm/cpuidle.h>
#include <asm/mcpm.h>
#include <asm/smp_plat.h>
#include <asm/suspend.h>
#include "dt_idle_states.h"
static int bl_enter_powerdown(struct cpuid... |
google | android | cpuidle-ux500 | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/cpuidle/cpuidle-ux500.c | 3,250 | utf_8 | 5734d7494ac4916dda11c35819a354aa | /*
*/
#include <linux/module.h>
#include <linux/cpuidle.h>
#include <linux/spinlock.h>
#include <linux/atomic.h>
#include <linux/smp.h>
#include <linux/mfd/dbx500-prcmu.h>
#include <linux/platform_data/arm-ux500-pm.h>
#include <linux/platform_device.h>
#include <asm/cpuidle.h>
static atomic_t master = ATOMIC_INIT(0);
... |
google | android | governor | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/cpuidle/governor.c | 2,268 | utf_8 | 880bbfec2c835f8e893b8cc934536209 | /*
* governor.c - governor support
*
*/
#include <linux/mutex.h>
#include <linux/module.h>
#include <linux/cpuidle.h>
#include "cpuidle.h"
LIST_HEAD(cpuidle_governors);
struct cpuidle_governor *cpuidle_curr_governor;
/**
* __cpuidle_find_governor - finds a governor of the specified name
*
* Must be called with cp... |
google | android | cpuidle-mvebu-v7 | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/cpuidle/cpuidle-mvebu-v7.c | 3,370 | utf_8 | af799cc365560c87cb503d8f3af2eb3e | /*
* Marvell Armada 370, 38x and XP SoC cpuidle driver
*
*/
#include <linux/cpu_pm.h>
#include <linux/cpuidle.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/suspend.h>
#include <linux/platform_device.h>
#include <asm/cpuidle.h>
#define MVEBU_V7_FLAG_DEEP_IDLE 0x10000
static int (*mvebu_v7_cpu_sus... |
google | android | cpuidle | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/cpuidle/cpuidle.c | 15,473 | utf_8 | 99e334ef68422558810de73520983c5a | /*
* cpuidle.c - core cpuidle infrastructure
*
*/
#include <linux/clockchips.h>
#include <linux/kernel.h>
#include <linux/mutex.h>
#include <linux/sched.h>
#include <linux/notifier.h>
#include <linux/pm_qos.h>
#include <linux/cpu.h>
#include <linux/cpuidle.h>
#include <linux/ktime.h>
#include <linux/hrtimer.h>
#incl... |
google | android | cpuidle-exynos | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/cpuidle/cpuidle-exynos.c | 3,451 | utf_8 | d78b8d3afd348a933e498e388947738a | /*
*/
#include <linux/cpuidle.h>
#include <linux/cpu_pm.h>
#include <linux/export.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/of.h>
#include <linux/platform_data/cpuidle-exynos.h>
#include <asm/suspend.h>
#include <asm/cpuidle.h>
static atomic_t exynos_idle_barrier;
static struct cpu... |
google | android | cpuidle-zynq | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/cpuidle/cpuidle-zynq.c | 2,093 | utf_8 | 80c3cbf785eb48f2d6bb2bdca60bf5c3 | /*
*
* The cpu idle uses wait-for-interrupt and RAM self refresh in order
* to implement two idle states -
* #1 wait-for-interrupt
* #2 wait-for-interrupt and RAM self refresh
*
*/
#include <linux/init.h>
#include <linux/cpuidle.h>
#include <linux/platform_device.h>
#include <asm/cpuidle.h>
#define ZYNQ_MAX_STAT... |
google | android | cpuidle-powernv | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/cpuidle/cpuidle-powernv.c | 7,352 | utf_8 | c6730135c5e1d1e0e404ee46916eb324 | /*
* cpuidle-powernv - idle state cpuidle driver.
* Adapted from drivers/cpuidle/cpuidle-pseries
*
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/moduleparam.h>
#include <linux/cpuidle.h>
#include <linux/cpu.h>
#include <linux/notifier.h>
#include <linux/clockchips... |
google | android | cpuidle-at91 | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/cpuidle/cpuidle-at91.c | 1,651 | utf_8 | d167847d5fecfa1f53d2f2cb461c1527 | /*
* based on arch/arm/mach-kirkwood/cpuidle.c
*
* CPU idle support for AT91 SoC
*
* warranty of any kind, whether express or implied.
*
* The cpu idle uses wait-for-interrupt and RAM self refresh in order
* to implement two idle states -
* #1 wait-for-interrupt
* #2 wait-for-interrupt and RAM self refresh
*... |
google | android | cpuidle-clps711x | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/cpuidle/cpuidle-clps711x.c | 1,633 | utf_8 | a5aac501c853ac5e61a96c59af4a6ba4 | /*
* CLPS711X CPU idle driver
*
* (at your option) any later version.
*/
#include <linux/cpuidle.h>
#include <linux/err.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#define CLPS711X_CPUIDLE_NAME "clps711x-cpuidle"
static void __iomem *clps711x_halt;
static int clps711x_cpui... |
google | android | coupled | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/cpuidle/coupled.c | 26,644 | utf_8 | c64e012b47bd275508aeaa708fa26e7a | /*
* coupled.c - helper functions to enter the same idle state on multiple cpus
*
* more details.
*/
#include <linux/kernel.h>
#include <linux/cpu.h>
#include <linux/cpuidle.h>
#include <linux/mutex.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/spinlock.h>
#include "cpuidle.h"
/**
* DOC: Coup... |
google | android | cpuidle-arm | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/cpuidle/cpuidle-arm.c | 3,859 | utf_8 | 010178b5f2a79b57b725369300bed326 | /*
* ARM/ARM64 generic CPU idle driver.
*
*/
#define pr_fmt(fmt) "CPUidle arm: " fmt
#include <linux/cpuidle.h>
#include <linux/cpumask.h>
#include <linux/cpu_pm.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/slab.h>
#include <asm/cpuidle.h>
#include "dt_idle_states.h"
/... |
google | android | dt_idle_states | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/cpuidle/dt_idle_states.c | 6,372 | utf_8 | 6713322c23e79a4d4494d60451998438 | /*
* DT idle states parsing code.
*
*/
#define pr_fmt(fmt) "DT idle-states: " fmt
#include <linux/cpuidle.h>
#include <linux/cpumask.h>
#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_device.h>
#include "dt_idle_states.h"
static int init_state_nod... |
google | android | driver | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/cpuidle/driver.c | 9,584 | utf_8 | fb71e34fe61cf60749c2bcc63a15d913 | /*
* driver.c - driver support
*
*/
#include <linux/mutex.h>
#include <linux/module.h>
#include <linux/sched.h>
#include <linux/cpuidle.h>
#include <linux/cpumask.h>
#include <linux/tick.h>
#include "cpuidle.h"
DEFINE_SPINLOCK(cpuidle_driver_lock);
#ifdef CONFIG_CPU_IDLE_MULTIPLE_DRIVERS
static DEFINE_PER_CPU(struct... |
google | android | cpuidle-calxeda | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/cpuidle/cpuidle-calxeda.c | 2,229 | utf_8 | 5071b0858ab5638b20e084b4db0825ff | /*
*/
#include <linux/cpuidle.h>
#include <linux/cpu_pm.h>
#include <linux/init.h>
#include <linux/mm.h>
#include <linux/platform_device.h>
#include <linux/psci.h>
#include <asm/cpuidle.h>
#include <asm/suspend.h>
#include <uapi/linux/psci.h>
#define CALXEDA_IDLE_PARAM \
((0 << PSCI_0_2_POWER_STATE_ID_SHIFT) | \
(0... |
google | android | cpuidle-cps | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/cpuidle/cpuidle-cps.c | 4,506 | utf_8 | 499c09664cd5efa61f71111eeb0635b0 | /*
* option) any later version.
*/
#include <linux/cpu_pm.h>
#include <linux/cpuidle.h>
#include <linux/init.h>
#include <asm/idle.h>
#include <asm/pm-cps.h>
/* Enumeration of the various idle states this driver may enter */
enum cps_idle_state {
STATE_WAIT = 0, /* MIPS wait instruction, coherent */
STATE_NC_WAIT,... |
google | android | ladder | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/cpuidle/governors/ladder.c | 5,159 | utf_8 | a99cbe92372ba4b5a27c0ff7d1023560 | /*
* ladder.c - the residency ladder algorithm
*
*/
#include <linux/kernel.h>
#include <linux/cpuidle.h>
#include <linux/pm_qos.h>
#include <linux/module.h>
#include <linux/jiffies.h>
#include <asm/io.h>
#include <asm/uaccess.h>
#define PROMOTION_COUNT 4
#define DEMOTION_COUNT 1
struct ladder_device_state {
struct ... |
google | android | menu | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/cpuidle/governors/menu.c | 15,004 | utf_8 | 06664f677e5527494d5065e7271ebaac | /*
* menu.c - the menu idle governor
*
*/
#include <linux/kernel.h>
#include <linux/cpuidle.h>
#include <linux/pm_qos.h>
#include <linux/time.h>
#include <linux/ktime.h>
#include <linux/hrtimer.h>
#include <linux/tick.h>
#include <linux/sched.h>
#include <linux/math64.h>
#include <linux/module.h>
/*
* Please note w... |
google | android | vlynq | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/vlynq/vlynq.c | 19,747 | utf_8 | b56f2c6da62773269646450b50052190 | /*
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
* Parts of the VLYNQ specification can be found here:
* http://www.ti.com/litv/pdf/sprue36a
*/
#include <linux/init.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/device.h>
#include <l... |
google | android | 88pm860x_charger | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/88pm860x_charger.c | 19,291 | utf_8 | 0ddda84a3c7a20c82b12604426d5626f | /*
* 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/power_supply.h>
#include <linux/mfd/88pm860x.h>
#include <linux/delay.h>
#include <linux/uaccess.h>
#include <asm/div64.h>
/* bit definitio... |
google | android | max8998_charger | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/max8998_charger.c | 5,564 | utf_8 | b89fcc45fb87fa6781b8164046bf45af | /*
* max8998_charger.c - Power supply consumer driver for the Maxim 8998/LP3974
*
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <linux/err.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/platform_device.h>
#include <linux/power_supply.h>
#include <linux... |
google | android | pmu_battery | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/pmu_battery.c | 5,722 | utf_8 | 386284c67d7f43fa340298c4650c1f3c | /*
* Battery class driver for Apple PMU
*
*/
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/err.h>
#include <linux/power_supply.h>
#include <linux/adb.h>
#include <linux/pmu.h>
#include <linux/slab.h>
static struct pmu_battery_dev {
struct power_supply *bat;
struct power_supply_desc b... |
google | android | intel_mid_battery | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/intel_mid_battery.c | 21,816 | utf_8 | 4fe7df373a4ae6fab33636ef582941c3 | /*
* intel_mid_battery.c - Intel MID PMIC Battery Driver
*
*/
#include <linux/module.h>
#include <linux/init.h>
#include <linux/err.h>
#include <linux/interrupt.h>
#include <linux/workqueue.h>
#include <linux/jiffies.h>
#include <linux/param.h>
#include <linux/device.h>
#include <linux/spi/spi.h>
#include <linux/pla... |
google | android | pm2301_charger | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/pm2301_charger.c | 30,458 | utf_8 | ee2762e8860f7aacc6c94b0854b2ff37 | /*
*/
#include <linux/init.h>
#include <linux/module.h>
#include <linux/device.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/regulator/consumer.h>
#include <linux/err.h>
#include <linux/i2c.h>
#include... |
google | android | max8997_charger | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/max8997_charger.c | 5,459 | utf_8 | ba3088576c34f83999e311e43389ae20 | /*
* max8997_charger.c - Power supply consumer driver for the Maxim 8997/8966
*
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <linux/err.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/platform_device.h>
#include <linux/power_supply.h>
#include <linux/m... |
google | android | jz4740-battery | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/jz4740-battery.c | 10,633 | utf_8 | 99318f48983319fa60eb2dd4ea2ca9d9 | /*
* Battery measurement code for Ingenic JZ SOC.
*
*
*/
#include <linux/interrupt.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/io.h>
#include <linux/delay.h>
#include <linux/err.h>
#include <linux/gpio.h>
#include <linux/mfd/core.... |
google | android | da9052-battery | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/da9052-battery.c | 15,678 | utf_8 | 54e2eeb7fe104c04fde212aaea3cda41 | /*
* Batttery Driver for Dialog DA9052 PMICs
*
* option) any later version.
*/
#include <linux/delay.h>
#include <linux/freezer.h>
#include <linux/fs.h>
#include <linux/jiffies.h>
#include <linux/module.h>
#include <linux/timer.h>
#include <linux/uaccess.h>
#include <linux/platform_device.h>
#include <linux/power_s... |
google | android | bq2415x_charger | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/bq2415x_charger.c | 46,875 | utf_8 | 977f9cf3b7a2461d6ccf0d392201b4d1 | /*
* bq2415x charger driver
*
*
* Datasheets:
* http://www.ti.com/product/bq24150
* http://www.ti.com/product/bq24150a
* http://www.ti.com/product/bq24152
* http://www.ti.com/product/bq24153
* http://www.ti.com/product/bq24153a
* http://www.ti.com/product/bq24155
* http://www.ti.com/product/bq24157s
* http:... |
google | android | ds2781_battery | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/ds2781_battery.c | 21,118 | utf_8 | 6b299f4319bc5e90ba666669837ca3b4 | /*
* 1-wire client/driver for the Maxim/Dallas DS2781 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 | bq24190_charger | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/bq24190_charger.c | 41,423 | utf_8 | 22036dc14be7260a0a0bc5029b5e6b15 | /*
* Driver for the TI bq24190 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/gpio.h>
#include <linux/i2c.h>
#include <linux/powe... |
google | android | axp288_charger | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/axp288_charger.c | 25,631 | utf_8 | eca04b01c7b35dd659995fc3b3ae9217 | /*
* axp288_charger.c - X-power AXP288 PMIC Charger driver
*
*/
#include <linux/module.h>
#include <linux/device.h>
#include <linux/regmap.h>
#include <linux/workqueue.h>
#include <linux/delay.h>
#include <linux/platform_device.h>
#include <linux/usb/otg.h>
#include <linux/notifier.h>
#include <linux/power_supply.h>... |
google | android | da9030_battery | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/da9030_battery.c | 16,264 | utf_8 | 240236da7875d7558832daae436a9ef5 | /*
* Battery charger driver for Dialog Semiconductor DA9030
*
*/
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/types.h>
#include <linux/device.h>
#include <linux/workqueue.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/power_supply.h>
#incl... |
google | android | sbs-battery | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/sbs-battery.c | 25,116 | utf_8 | 7c295147a22d8e6bc390b8d3d4684052 | /*
* Gas Gauge driver for SBS Compliant Batteries
*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#include <linux/init.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/err.h>
#include <linux/power_supply.h>
#include <linux/i2c.h>
#include <linux/slab.h>
#include <linux/int... |
google | android | olpc_battery | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/olpc_battery.c | 16,780 | utf_8 | 0183cd4ea92908cfc0246a62ea49d581 | /*
* Battery driver for One Laptop Per Child board.
*
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/types.h>
#include <linux/err.h>
#include <linux/device.h>
#include <linux/platform_device.h>
#include <linux/power_supply.h>
#include <linux/jiffies.h>
#include <linux/sched.h>
#include <linux... |
google | android | ab8500_btemp | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/ab8500_btemp.c | 32,812 | utf_8 | dc9f2f367b556788ffa53d19bad1684f | /*
*/
#include <linux/init.h>
#include <linux/module.h>
#include <linux/device.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>
#include <linux/jiffies.h>
#inclu... |
google | android | power_supply_sysfs | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/power_supply_sysfs.c | 9,268 | utf_8 | 60463ef0df39c35732782910a99dbfea | /*
* Sysfs interface for the universal power supply monitor class
*
*/
#include <linux/ctype.h>
#include <linux/device.h>
#include <linux/power_supply.h>
#include <linux/slab.h>
#include <linux/stat.h>
#include "power_supply.h"
/*
* This is because the name "current" breaks the device attr macro.
* The "current" ... |
google | android | wm831x_power | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/wm831x_power.c | 17,948 | utf_8 | 1d796c3cde37a476f4c1f31591b5e785 | /*
* PMU driver for Wolfson Microelectronics wm831x PMICs
*
*/
#include <linux/module.h>
#include <linux/err.h>
#include <linux/platform_device.h>
#include <linux/power_supply.h>
#include <linux/slab.h>
#include <linux/mfd/wm831x/core.h>
#include <linux/mfd/wm831x/auxadc.h>
#include <linux/mfd/wm831x/pmu.h>
#include... |
google | android | smb347-charger | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/smb347-charger.c | 32,652 | utf_8 | 7a0f695ea35ab66c7b74749abd8cc8ac | /*
* Summit Microelectronics SMB347 Battery Charger Driver
*
*/
#include <linux/err.h>
#include <linux/gpio.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/i2c.h>
#include <linux/mutex.h>
#include <linux/power_supply.h>
#include <linux/power... |
google | android | ab8500_bmdata | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/ab8500_bmdata.c | 16,933 | utf_8 | 8eeb21fd809570ab9a5e6ef7466dfe75 | #include <linux/export.h>
#include <linux/power_supply.h>
#include <linux/of.h>
#include <linux/mfd/abx500.h>
#include <linux/mfd/abx500/ab8500.h>
#include <linux/mfd/abx500/ab8500-bm.h>
/*
* These are the defined batteries that uses a NTC and ID resistor placed
* inside of the battery pack.
* Note that the res_to_... |
google | android | tosa_battery | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/tosa_battery.c | 12,124 | utf_8 | eef762000dff8b0eea0c9cb32595d06e | /*
* Battery and Power Management code for the Sharp SL-6000x
*
*
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/power_supply.h>
#include <linux/wm97xx.h>
#include <linux/delay.h>
#include <linux/spinlock.h>
#include <linux/interrupt.h>
#include <linux/gpio.h>
#include <asm/mach-types.h>
#in... |
google | android | twl4030_madc_battery | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/twl4030_madc_battery.c | 7,619 | utf_8 | 1a7c7bcb5a57006040f0a711322a42a7 | /*
* Dumb driver for LiIon batteries using TWL4030 madc.
*
*/
#include <linux/module.h>
#include <linux/param.h>
#include <linux/delay.h>
#include <linux/workqueue.h>
#include <linux/platform_device.h>
#include <linux/power_supply.h>
#include <linux/slab.h>
#include <linux/sort.h>
#include <linux/i2c/twl4030-madc.h>... |
google | android | twl4030_charger | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/twl4030_charger.c | 29,939 | utf_8 | 42663192d36e74baca92cda26c9bc00f | /*
* TWL4030/TPS65950 BCI (Battery Charger Interface) driver
*
* (at your option) any later version.
*/
#include <linux/init.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/err.h>
#include <linux/platform_device.h>
#include <linux/interrupt.h>
#include <linux/i2c/twl.h>
#include <linux/power_su... |
google | android | da9150-fg | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/da9150-fg.c | 14,646 | utf_8 | 746cdfc32d144f7b6cdd465a6767b08e | /*
* DA9150 Fuel-Gauge Driver
*
* option) any later version.
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/of.h>
#include <linux/of_platform.h>
#include <linux/slab.h>
#include <linux/interrupt.h>
#include <linux/delay.h>
#include <linux/power_supply.h>
#i... |
google | android | max17040_battery | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/max17040_battery.c | 7,327 | utf_8 | 8df22c31996353d0f4ae00e5fb731f11 | /*
* max17040_battery.c
* fuel-gauge systems for lithium-ion (Li+) batteries
*
*/
#include <linux/module.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/mutex.h>
#include <linux/err.h>
#include <linux/i2c.h>
#include <linux/delay.h>
#include <linux/power_supply.h>
#include <linux/max... |
google | android | gpio-charger | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/gpio-charger.c | 7,521 | utf_8 | 96ecb2e0cca771992df2939b5ccbb0ca | /*
* 675 Mass Ave, Cambridge, MA 02139, USA.
*
*/
#include <linux/device.h>
#include <linux/gpio.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/power_supply.h>
#include <linux/slab.h>
#include <linux/of.h... |
google | android | max77693_charger | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/max77693_charger.c | 19,014 | utf_8 | 4fdc60f51026be592c46fc1c2e27b175 | /*
* max77693_charger.c - Battery charger driver for the Maxim 77693
*
*/
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/power_supply.h>
#include <linux/regmap.h>
#include <linux/mfd/max77693.h>
#include <linux/mfd/max77693-common.h>
#include <linux/mfd/max77693-private.h>
#define MAX77... |
google | android | ds2760_battery | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/ds2760_battery.c | 18,447 | utf_8 | 1e958e887a13028b7c54d208ea9b40ac | /*
* Driver for batteries with DS2760 chips inside.
*
* September 2004
*/
#include <linux/module.h>
#include <linux/param.h>
#include <linux/jiffies.h>
#include <linux/workqueue.h>
#include <linux/pm.h>
#include <linux/slab.h>
#include <linux/platform_device.h>
#include <linux/power_supply.h>
#include "../w1/w1... |
google | android | wm831x_backup | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/wm831x_backup.c | 5,612 | utf_8 | d5f4905ede2f6e6549711a21d8f73980 | /*
* Backup battery driver for Wolfson Microelectronics wm831x PMICs
*
*/
#include <linux/module.h>
#include <linux/err.h>
#include <linux/platform_device.h>
#include <linux/power_supply.h>
#include <linux/slab.h>
#include <linux/mfd/wm831x/core.h>
#include <linux/mfd/wm831x/auxadc.h>
#include <linux/mfd/wm831x/pmu.... |
google | android | power_supply_leds | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/power/power_supply_leds.c | 4,866 | utf_8 | cf2f7047204e5ac703f0e1f1c47aa61b | /*
* LEDs triggers for power supply class
*
*/
#include <linux/kernel.h>
#include <linux/device.h>
#include <linux/power_supply.h>
#include <linux/slab.h>
#include "power_supply.h"
/* Battery specific LEDs triggers. */
static void power_supply_update_bat_leds(struct power_supply *psy)
{
union power_supply_propval ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.