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 | sysfs | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/pwm/sysfs.c | 7,836 | utf_8 | 508c2890e9ab912776d5106186873903 | /*
* A simple sysfs interface for the generic PWM framework
*
*/
#include <linux/device.h>
#include <linux/mutex.h>
#include <linux/err.h>
#include <linux/slab.h>
#include <linux/kdev_t.h>
#include <linux/pwm.h>
struct pwm_export {
struct device child;
struct pwm_device *pwm;
};
static struct pwm_export *child_to_... |
google | android | pwm-bcm2835 | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/pwm/pwm-bcm2835.c | 5,060 | utf_8 | 58ec02b0f2904e0d340639e846e81d7d | /*
*/
#include <linux/clk.h>
#include <linux/err.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/pwm.h>
#define PWM_CONTROL 0x000
#define PWM_CONTROL_SHIFT(x) ((x) * 8)
#define PWM_CONTROL_MASK 0xff
#define PWM_MODE 0x80 /* set timer in PWM... |
google | android | pwm-lp3943 | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/pwm/pwm-lp3943.c | 7,674 | utf_8 | 6988b26b1bbaee1cf4519845cb68277b | /*
* TI/National Semiconductor LP3943 PWM driver
*
*/
#include <linux/err.h>
#include <linux/i2c.h>
#include <linux/mfd/lp3943.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/pwm.h>
#include <linux/slab.h>
#define LP3943_MAX_DUTY 255
#define LP3943_MIN_PERIOD 6250
#define LP3943_MA... |
google | android | pwm-brcmstb | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/pwm/pwm-brcmstb.c | 8,506 | utf_8 | c843610e26924ba683f85bab44c2d1b8 | /*
* Broadcom BCM7038 PWM driver
* Author: Florian Fainelli
*
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/clk.h>
#include <linux/export.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#in... |
google | android | pwm-puv3 | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/pwm/pwm-puv3.c | 3,546 | utf_8 | 309545dcd0bb05b56ad49e0cb9a0c4ab | /*
* linux/arch/unicore32/kernel/pwm.c
*
* Code specific to PKUnity SoC and UniCore ISA
*
*/
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/err.h>
#include <linux/clk.h>
#include <linux/io.h>
#include <linux/pwm.h>
#include <asm/div64.... |
google | android | pwm-atmel-hlcdc | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/pwm/pwm-atmel-hlcdc.c | 7,865 | utf_8 | 5518f77305abd4c8b613eb469a2212f7 | /*
*/
#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/mfd/atmel-hlcdc.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/pwm.h>
#include <linux/regmap.h>
#define ATMEL_HLCDC_PWMCVAL_MASK GENMASK(15, 8)
#define ATMEL_HLCDC_PWMCVAL(x) (((x) << 8) & ATMEL_HLCDC_PWMCVAL_MASK)
... |
google | android | core | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/pwm/core.c | 21,912 | utf_8 | f5a4692568e70eb0cfee51a0a8abd8b4 | /*
* Generic pwmlib implementation
*
*/
#include <linux/module.h>
#include <linux/pwm.h>
#include <linux/radix-tree.h>
#include <linux/list.h>
#include <linux/mutex.h>
#include <linux/err.h>
#include <linux/slab.h>
#include <linux/device.h>
#include <linux/debugfs.h>
#include <linux/seq_file.h>
#include <dt-bindings... |
google | android | pwm-tegra | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/pwm/pwm-tegra.c | 5,940 | utf_8 | 7e01a10c1e0878cea7a178283c0a371d | /*
* drivers/pwm/pwm-tegra.c
*
* Tegra pulse-width-modulation controller driver
*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#include <linux/clk.h>
#include <linux/err.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/pwm.h>
#include <linux/platform_d... |
google | android | pwm-tiecap | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/pwm/pwm-tiecap.c | 8,811 | utf_8 | 63113c6e1ca82f0136dcd798bca9b020 | /*
* ECAP PWM driver
*
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/io.h>
#include <linux/err.h>
#include <linux/clk.h>
#include <linux/pm_runtime.h>
#include <linux/pwm.h>
#include <linux/of_device.h>
#include "pwm-tipwm... |
google | android | pwm-pxa | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/pwm/pwm-pxa.c | 5,586 | utf_8 | afedfc654adf1a658635b23d7cec0993 | /*
* drivers/pwm/pwm-pxa.c
*
* simple driver for PWM (Pulse Width Modulator) controller
*
*/
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/err.h>
#include <linux/clk.h>
#include <linux/io.h>
#include <linux/pwm.h>
#include <linux/of_d... |
google | android | pwm-lpc18xx-sct | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/pwm/pwm-lpc18xx-sct.c | 13,761 | utf_8 | 3a6e702e3b6bc3b8b1680c8092d8c909 | /*
* NXP LPC18xx State Configurable Timer - Pulse Width Modulator driver
*
*
* Notes
* =====
* NXP LPC18xx provides a State Configurable Timer (SCT) which can be configured
* as a Pulse Width Modulator.
*
* SCT supports 16 outputs, 16 events and 16 registers. Each event will be
* triggered when its related re... |
google | android | pwm-rcar | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/pwm/pwm-rcar.c | 6,745 | utf_8 | 2a3ce3ca4ab1805649b2b208e459bfa1 | /*
* R-Car PWM Timer driver
*
*/
#include <linux/clk.h>
#include <linux/err.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/pm_runtime.h>
#include <linux/pwm.h>
#include <linux/slab.h>
#define RCAR_PWM_MAX_DIVISION 24
#define RCAR_PWM_MAX_CY... |
google | android | pwm-atmel | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/pwm/pwm-atmel.c | 10,840 | utf_8 | e13428ad5208fb116b879c5501a3b7af | /*
* Driver for Atmel Pulse Width Modulation Controller
*
*/
#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/err.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/of.h>
#include <linux/of_device.h>
#include <linux/platform_device.h>
#include <linux/pwm.h>
#in... |
google | android | pwm-ab8500 | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/pwm/pwm-ab8500.c | 3,409 | utf_8 | e6b93195b18029d6d4cd50f27dd73ff5 | /*
*/
#include <linux/err.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/pwm.h>
#include <linux/mfd/abx500.h>
#include <linux/mfd/abx500/ab8500.h>
#include <linux/module.h>
/*
* PWM Out generators
* Bank: 0x10
*/
#define AB8500_PWM_OUT_CTRL1_REG 0x60
#define AB8500_PWM_OUT_CTRL2_REG 0... |
google | android | pwm-samsung | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/pwm/pwm-samsung.c | 17,131 | utf_8 | 17f836db2125c41a18e8d6f83c7a810b | /*
*/
#include <linux/bitops.h>
#include <linux/clk.h>
#include <linux/export.h>
#include <linux/err.h>
#include <linux/io.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/pwm.h>
#include <linux/slab.h>
#include <linux/spinlock.h>
#include ... |
google | android | pwm-lpss-platform | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/pwm/pwm-lpss-platform.c | 1,972 | utf_8 | 5ea663978dbef4ef22763eb5f18639ba | /*
* Intel Low Power Subsystem PWM controller driver
*
*/
#include <linux/acpi.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/pm_runtime.h>
#include "pwm-lpss.h"
static int pwm_lpss_probe_platform(struct platform_device *pdev)
{
const struct pwm_lpss_boardi... |
google | android | pwm-crc | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/pwm/pwm-crc.c | 3,642 | utf_8 | 0a763a35f34778390e994d6f5e8e5e00 | /*
*/
#include <linux/platform_device.h>
#include <linux/regmap.h>
#include <linux/mfd/intel_soc_pmic.h>
#include <linux/pwm.h>
#define PWM0_CLK_DIV 0x4B
#define PWM_OUTPUT_ENABLE BIT(7)
#define PWM_DIV_CLK_0 0x00 /* DIVIDECLK = BASECLK */
#define PWM_DIV_CLK_100 0x63 /* DIVIDECLK = BASECLK/100 */
#define PWM_DI... |
google | android | pwm-imx | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/pwm/pwm-imx.c | 8,849 | utf_8 | 0eb81332307f73baeefc50f7b936fbea | /*
* simple driver for PWM (Pulse Width Modulator) controller
*
*/
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/err.h>
#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/io.h>
#include <linux/pwm.h>
#include <linux/of.h>
#... |
google | android | pwm-lpss-pci | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/pwm/pwm-lpss-pci.c | 2,541 | utf_8 | fa0407ef9a852a8c4d1999433c600616 | /*
* Intel Low Power Subsystem PWM controller PCI driver
*
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/pm_runtime.h>
#include "pwm-lpss.h"
static int pwm_lpss_probe_pci(struct pci_dev *pdev,
const struct pci_device_id *id)
{
const struct pwm_lpss_boardinfo ... |
google | android | pwm-twl | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/pwm/pwm-twl.c | 9,127 | utf_8 | becf3a8709804621ab9e4af12150e4a2 | /*
* Driver for TWL4030/6030 Generic Pulse Width Modulator
*
*/
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/pwm.h>
#include <linux/i2c/twl.h>
#include <linux/slab.h>
/*
* This driver handles the PWMs of TWL4030 and TWL6030.
* The TRM names for the PWMs on TWL4... |
google | android | pwm-tipwmss | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/pwm/pwm-tipwmss.c | 3,378 | utf_8 | eca99fbc6b5a4417d44a98ec51ef98ac | /*
* TI PWM Subsystem driver
*
*
*/
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/io.h>
#include <linux/err.h>
#include <linux/pm_runtime.h>
#include <linux/of_device.h>
#include "pwm-tipwmss.h"
#define PWMSS_CLKCONFIG 0x8 /* Clock gating reg */
#define PWMSS_CLKSTATUS 0xc /* Clock ... |
google | android | pwm-sti | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/pwm/pwm-sti.c | 10,262 | utf_8 | 89c5092c76a7e76c7b276104d746bc7d | /*
* PWM device driver for ST SoCs.
* (at your option) any later version.
*/
#include <linux/clk.h>
#include <linux/math64.h>
#include <linux/mfd/syscon.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/pwm.h>
#include <linux/regmap.h>
#include <linux/slab.h>
#incl... |
google | android | pwm-lpss | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/pwm/pwm-lpss.c | 4,555 | utf_8 | a060e08f90445e29e218dbc63ec4240e | /*
* Intel Low Power Subsystem PWM controller driver
*
*/
#include <linux/io.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/pm_runtime.h>
#include "pwm-lpss.h"
#define PWM 0x00000000
#define PWM_ENABLE BIT(31)
#define PWM_SW_UPDATE BIT(30)
#define PWM_BASE_UNIT_SHIFT 8
#define PWM_BAS... |
google | android | pwm-img | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/pwm/pwm-img.c | 8,045 | utf_8 | 35fe3d1b78635026884195f1e994e68f | /*
* Imagination Technologies Pulse Width Modulator driver
*
*/
#include <linux/clk.h>
#include <linux/err.h>
#include <linux/io.h>
#include <linux/mfd/syscon.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_device.h>
#include <linux/platform_device.h>
#include <linux/pwm.h>
#include <linux/regm... |
google | android | pwm-spear | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/pwm/pwm-spear.c | 6,638 | utf_8 | 38b9840e9b8c065c7ad5f233daa46ded | /*
* ST Microelectronics SPEAr Pulse Width Modulator driver
*
* warranty of any kind, whether express or implied.
*/
#include <linux/clk.h>
#include <linux/err.h>
#include <linux/io.h>
#include <linux/ioport.h>
#include <linux/kernel.h>
#include <linux/math64.h>
#include <linux/module.h>
#include <linux/of.h>
#incl... |
google | android | pwm-lpc32xx | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/pwm/pwm-lpc32xx.c | 4,417 | utf_8 | 4a9fedcce6b0d708dbf7d6615c2f05fb | /*
*
*/
#include <linux/clk.h>
#include <linux/err.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>
#include <linux/pwm.h>
#include <linux/slab.h>
struct lpc32xx_pwm_chip {
struct pwm_chip chip;
struct... |
google | android | pwm-jz4740 | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/pwm/pwm-jz4740.c | 4,879 | utf_8 | de0f17d9a215f0da4df638b54a089e4b | /*
* 675 Mass Ave, Cambridge, MA 02139, USA.
*
*/
#include <linux/clk.h>
#include <linux/err.h>
#include <linux/gpio.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/pwm.h>
#include <asm/mach-jz4740/gpio.h>
#include <asm/mach-jz4740/timer.h>
#define NUM_PWM 8... |
google | android | pwm-renesas-tpu | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/pwm/pwm-renesas-tpu.c | 12,200 | utf_8 | 75c832b0306981cf425e541b907f5baf | /*
* R-Mobile TPU PWM driver
*
*/
#include <linux/clk.h>
#include <linux/err.h>
#include <linux/io.h>
#include <linux/init.h>
#include <linux/ioport.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/pm_runtime.h>
#include <linux/pwm.h>
#inc... |
google | android | pwm-fsl-ftm | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/pwm/pwm-fsl-ftm.c | 12,803 | utf_8 | f73e7d63c8edd629874ef4728bb98d41 | /*
* Freescale FlexTimer Module (FTM) PWM Driver
*
* (at your option) any later version.
*/
#include <linux/clk.h>
#include <linux/err.h>
#include <linux/io.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/of_address.h>
#include <linux/platform_device.h>
#include <lin... |
google | android | pwm-mxs | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/pwm/pwm-mxs.c | 4,831 | utf_8 | 160bb02be6e375bcb6c1cd4a5db5bd74 | /*
* http://www.gnu.org/copyleft/gpl.html
*/
#include <linux/clk.h>
#include <linux/err.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>
#include <linux/pwm.h>
#include <linux/slab.h>
#include <linux/stm... |
google | android | pwm-clps711x | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/pwm/pwm-clps711x.c | 4,390 | utf_8 | a62295808515021ef52fd5051e7ea88d | /*
* Cirrus Logic CLPS711X PWM driver
*
* (at your option) any later version.
*/
#include <linux/clk.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/pwm.h>
struct clps711x_chip {
struct pwm_chip chip;
void __iomem *pmpcon;
struct clk *cl... |
google | android | pwm-rockchip | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/pwm/pwm-rockchip.c | 7,260 | utf_8 | 5274dd5c87d10e59efd676760a2719a7 | /*
* PWM driver for Rockchip SoCs
*
*/
#include <linux/clk.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_device.h>
#include <linux/platform_device.h>
#include <linux/pwm.h>
#include <linux/time.h>
#define PWM_CTRL_TIMER_EN (1 << 0)
#define PWM_CTRL_OUTPUT_EN (1 << 3)
#de... |
google | android | pwm-tiehrpwm | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/pwm/pwm-tiehrpwm.c | 16,557 | utf_8 | 480b0b0bc93f044b3009b272194f4796 | /*
* EHRPWM PWM driver
*
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/pwm.h>
#include <linux/io.h>
#include <linux/err.h>
#include <linux/clk.h>
#include <linux/pm_runtime.h>
#include <linux/of_device.h>
#include "pwm-tip... |
google | android | pwm-atmel-tcb | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/pwm/pwm-atmel-tcb.c | 12,031 | utf_8 | 7e80c545421d845f55b821996e6332f9 | /*
*/
#include <linux/module.h>
#include <linux/init.h>
#include <linux/clocksource.h>
#include <linux/clockchips.h>
#include <linux/interrupt.h>
#include <linux/irq.h>
#include <linux/clk.h>
#include <linux/err.h>
#include <linux/ioport.h>
#include <linux/io.h>
#include <linux/platform_device.h>
#include <linux/atmel... |
google | android | pwm-bcm-kona | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/pwm/pwm-bcm-kona.c | 9,740 | utf_8 | 19071a67323eb929812f6c4f6c68e735 | /*
*/
#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/err.h>
#include <linux/io.h>
#include <linux/ioport.h>
#include <linux/math64.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/pwm.h>
#include <linux/slab.h>
#include <linux/types.h>
/*
* The Kon... |
google | android | pwm-mtk-disp | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/pwm/pwm-mtk-disp.c | 6,157 | utf_8 | cc0eaf31c72f20c9007666e2148764d3 | /*
* MediaTek display pulse-width-modulation controller driver.
*/
#include <linux/clk.h>
#include <linux/err.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/pwm.h>
#include <linux/slab.h>
#define DISP_PWM_EN 0x00
#define PWM_ENABLE_MASK BI... |
google | android | pwm-twl-led | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/pwm/pwm-twl-led.c | 8,806 | utf_8 | 31e3f97b4000f5edea0fc05d43e3cfe6 | /*
* Driver for TWL4030/6030 Pulse Width Modulator used as LED driver
*
*/
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/pwm.h>
#include <linux/i2c/twl.h>
#include <linux/slab.h>
/*
* This driver handles the PWM driven LED terminals of TWL4030 and TWL6030.
* To ... |
google | android | pwm-pca9685 | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/pwm/pwm-pca9685.c | 10,064 | utf_8 | f17d5a24d7497db8f2510953d15efbcb | /*
* Driver for PCA9685 16-channel 12-bit PWM LED controller
*
*/
#include <linux/acpi.h>
#include <linux/i2c.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/property.h>
#include <linux/pwm.h>
#include <linux/regmap.h>
#include <linux/slab.h>
#include <linux/delay.h>
/*
* Because the... |
google | android | virtio_mmio | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/virtio/virtio_mmio.c | 19,305 | utf_8 | 2dff5c26d02841dc90763cf81c44f1e3 | /*
* Virtio memory mapped device driver
*
*
* This module allows virtio devices to be used over a virtual, memory mapped
* platform device.
*
* The guest device(s) may be instantiated in one of three equivalent ways:
*
* 1. Static platform device in board's code, eg.:
*
* static struct platform_device v2m_vi... |
google | android | config | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/virtio/config.c | 300 | utf_8 | 5dec543f6a9bb284e8f788c4a67dcac9 | /* Configuration space parsing helpers for virtio.
*
* The configuration is [type][len][... len bytes ...] fields.
*
*/
#include <linux/err.h>
#include <linux/virtio.h>
#include <linux/virtio_config.h>
#include <linux/bug.h> |
google | android | virtio_balloon | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/virtio/virtio_balloon.c | 17,600 | utf_8 | 08695cd44360e347859b74a43041e3bc | /*
* Virtio balloon implementation, inspired by Dor Laor and Marcelo
* Tosatti's implementations.
*
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <linux/virtio.h>
#include <linux/virtio_balloon.h>
#include <linux/swap.h>
#include <linux/kthread.h>
#include <linux/freezer... |
google | android | virtio_ring | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/virtio/virtio_ring.c | 24,461 | utf_8 | 09e95282691caaaed237903bc7e38eba | /* Virtio ring implementation.
*
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <linux/virtio.h>
#include <linux/virtio_ring.h>
#include <linux/virtio_config.h>
#include <linux/device.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/hrtimer.h>
#include <... |
google | android | virtio | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/virtio/virtio.c | 10,559 | utf_8 | f4ba78b998b16ba2f8e42c3dd0a6a4ef | #include <linux/virtio.h>
#include <linux/spinlock.h>
#include <linux/virtio_config.h>
#include <linux/module.h>
#include <linux/idr.h>
#include <uapi/linux/virtio_ids.h>
/* Unique numbering for virtio devices. */
static DEFINE_IDA(virtio_index_ida);
static ssize_t device_show(struct device *_d,
struct device_att... |
google | android | virtio_pci_common | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/virtio/virtio_pci_common.c | 14,879 | utf_8 | 94d52e84de65af25129e6ea1cabbfce7 | /*
* Virtio PCI driver - common functionality for all device versions
*
* This module allows virtio devices to be used over a virtual PCI device.
* This can be used with QEMU based VMMs like KVM or Xen.
*
*
*/
#include "virtio_pci_common.h"
static bool force_legacy = false;
#if IS_ENABLED(CONFIG_VIRTIO_PCI_LEGAC... |
google | android | virtio_pci_modern | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/virtio/virtio_pci_modern.c | 21,472 | utf_8 | e2bd2564afb10b88bf46941fbdd3aaf4 | /*
* Virtio PCI driver - modern (virtio 1.0) device support
*
* This module allows virtio devices to be used over a virtual PCI device.
* This can be used with QEMU based VMMs like KVM or Xen.
*
*
*/
#include <linux/delay.h>
#define VIRTIO_PCI_NO_LEGACY
#include "virtio_pci_common.h"
/*
* Type-safe wrappers for... |
google | android | virtio_input | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/virtio/virtio_input.c | 10,320 | utf_8 | 8e6dc193bfc618878937307017a60b51 | #include <linux/module.h>
#include <linux/virtio.h>
#include <linux/virtio_config.h>
#include <linux/input.h>
#include <uapi/linux/virtio_ids.h>
#include <uapi/linux/virtio_input.h>
struct virtio_input {
struct virtio_device *vdev;
struct input_dev *idev;
char name[64];
char ... |
google | android | virtio_pci_legacy | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/virtio/virtio_pci_legacy.c | 7,654 | utf_8 | 60d863c480c10b625dd1aaf7d3fa2afb | /*
* Virtio PCI driver - legacy device support
*
* This module allows virtio devices to be used over a virtual PCI device.
* This can be used with QEMU based VMMs like KVM or Xen.
*
*
*/
#include "virtio_pci_common.h"
/* virtio config->get_features() implementation */
static u64 vp_get_features(struct virtio_dev... |
google | android | pm_domains | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/soc/rockchip/pm_domains.c | 11,381 | utf_8 | a0f248494fbbf860a843a5a5af6f10e7 | /*
* Rockchip Generic power domain support.
*
*/
#include <linux/io.h>
#include <linux/err.h>
#include <linux/pm_clock.h>
#include <linux/pm_domain.h>
#include <linux/of_address.h>
#include <linux/of_platform.h>
#include <linux/clk.h>
#include <linux/regmap.h>
#include <linux/mfd/syscon.h>
#include <dt-bindings/powe... |
google | android | common | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/soc/tegra/common.c | 794 | utf_8 | a8544f72cc19c3ca4628267c6309884d | /*
*/
#include <linux/of.h>
#include <soc/tegra/common.h>
static const struct of_device_id tegra_machine_match[] = {
{ .compatible = "nvidia,tegra20", },
{ .compatible = "nvidia,tegra30", },
{ .compatible = "nvidia,tegra114", },
{ .compatible = "nvidia,tegra124", },
{ .compatible = "nvidia,tegra132", },
{ .compa... |
google | android | pmc | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/soc/tegra/pmc.c | 28,226 | utf_8 | c812704a74a3a01ed132a311e2150e93 | /*
* drivers/soc/tegra/pmc.c
*
*
*/
#define pr_fmt(fmt) "tegra-pmc: " fmt
#include <linux/kernel.h>
#include <linux/clk.h>
#include <linux/clk/tegra.h>
#include <linux/debugfs.h>
#include <linux/delay.h>
#include <linux/err.h>
#include <linux/export.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/o... |
google | android | speedo-tegra114 | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/soc/tegra/fuse/speedo-tegra114.c | 2,728 | utf_8 | 1770311bd49576c757b21ae522e7bc02 | /*
*/
#include <linux/bug.h>
#include <linux/device.h>
#include <linux/kernel.h>
#include <soc/tegra/fuse.h>
#include "fuse.h"
#define SOC_PROCESS_CORNERS 2
#define CPU_PROCESS_CORNERS 2
enum {
THRESHOLD_INDEX_0,
THRESHOLD_INDEX_1,
THRESHOLD_INDEX_COUNT,
};
static const u32 __initconst soc_process_speedos[][SOC_PRO... |
google | android | fuse-tegra20 | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/soc/tegra/fuse/fuse-tegra20.c | 4,528 | utf_8 | c5a09ec0809fea9b0daa95b07e31ab2d | /*
*
* Based on drivers/misc/eeprom/sunxi_sid.c
*/
#include <linux/device.h>
#include <linux/clk.h>
#include <linux/completion.h>
#include <linux/dmaengine.h>
#include <linux/dma-mapping.h>
#include <linux/err.h>
#include <linux/io.h>
#include <linux/kernel.h>
#include <linux/kobject.h>
#include <linux/of_device.h>
... |
google | android | fuse-tegra | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/soc/tegra/fuse/fuse-tegra.c | 7,689 | utf_8 | c4ba18d1b137f9dc2a5f3c6268d7978e | /*
*
*/
#include <linux/clk.h>
#include <linux/device.h>
#include <linux/kobject.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/of.h>
#include <linux/of_address.h>
#include <linux/io.h>
#include <soc/tegra/common.h>
#include <soc/tegra/fuse.h>
#include "fuse.h"
struct tegra_sku_info t... |
google | android | fuse-tegra30 | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/soc/tegra/fuse/fuse-tegra30.c | 4,405 | utf_8 | a0ccfc34e5b8a5812d365d15f59399a1 | /*
*
*/
#include <linux/device.h>
#include <linux/clk.h>
#include <linux/err.h>
#include <linux/io.h>
#include <linux/kernel.h>
#include <linux/of_device.h>
#include <linux/of_address.h>
#include <linux/platform_device.h>
#include <linux/random.h>
#include <soc/tegra/fuse.h>
#include "fuse.h"
#define FUSE_BEGIN 0x100... |
google | android | speedo-tegra30 | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/soc/tegra/fuse/speedo-tegra30.c | 7,363 | utf_8 | 3eda7d7538f8a3720f55fa45ad1c24c3 | /*
*/
#include <linux/bug.h>
#include <linux/device.h>
#include <linux/kernel.h>
#include <soc/tegra/fuse.h>
#include "fuse.h"
#define SOC_PROCESS_CORNERS 1
#define CPU_PROCESS_CORNERS 6
#define FUSE_SPEEDO_CALIB_0 0x14
#define FUSE_PACKAGE_INFO 0XFC
#define FUSE_TEST_PROG_VER 0X28
#define G_SPEEDO_BIT_MINUS1 58
#defi... |
google | android | speedo-tegra210 | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/soc/tegra/fuse/speedo-tegra210.c | 5,250 | utf_8 | 569bcba59880e0951ce11bbccb154c97 | /*
*/
#include <linux/device.h>
#include <linux/kernel.h>
#include <linux/bug.h>
#include <soc/tegra/fuse.h>
#include "fuse.h"
#define CPU_PROCESS_CORNERS 2
#define GPU_PROCESS_CORNERS 2
#define SOC_PROCESS_CORNERS 3
#define FUSE_CPU_SPEEDO_0 0x014
#define FUSE_CPU_SPEEDO_1 0x02c
#define FUSE_CPU_SPEEDO_2 0x030
#defin... |
google | android | tegra-apbmisc | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/soc/tegra/fuse/tegra-apbmisc.c | 4,428 | utf_8 | d3c8b805d47e750d53c83117d56b7fb1 | /*
*
*/
#include <linux/kernel.h>
#include <linux/of.h>
#include <linux/of_address.h>
#include <linux/io.h>
#include <soc/tegra/fuse.h>
#include <soc/tegra/common.h>
#include "fuse.h"
#define FUSE_SKU_INFO 0x10
#define PMC_STRAPPING_OPT_A_RAM_CODE_SHIFT 4
#define PMC_STRAPPING_OPT_A_RAM_CODE_MASK_LONG \
(0xf << PMC_... |
google | android | speedo-tegra124 | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/soc/tegra/fuse/speedo-tegra124.c | 4,365 | utf_8 | 06b595dc6a4bc2aba6ce68fdb77aea04 | /*
*/
#include <linux/device.h>
#include <linux/kernel.h>
#include <linux/bug.h>
#include <soc/tegra/fuse.h>
#include "fuse.h"
#define CPU_PROCESS_CORNERS 2
#define GPU_PROCESS_CORNERS 2
#define SOC_PROCESS_CORNERS 2
#define FUSE_CPU_SPEEDO_0 0x14
#define FUSE_CPU_SPEEDO_1 0x2c
#define FUSE_CPU_SPEEDO_2 0x30
#define F... |
google | android | speedo-tegra20 | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/soc/tegra/fuse/speedo-tegra20.c | 3,146 | utf_8 | 25545857949660d6b038ae018930adb5 | /*
*/
#include <linux/bug.h>
#include <linux/device.h>
#include <linux/kernel.h>
#include <soc/tegra/fuse.h>
#include "fuse.h"
#define CPU_SPEEDO_LSBIT 20
#define CPU_SPEEDO_MSBIT 29
#define CPU_SPEEDO_REDUND_LSBIT 30
#define CPU_SPEEDO_REDUND_MSBIT 39
#define CPU_SPEEDO_REDUND_OFFS (CPU_SPEEDO_REDUND_MSBIT - CPU_... |
google | android | common | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/soc/brcmstb/common.c | 872 | utf_8 | 6b8cca69aaaeeaf8f83724bafea22c26 | /*
*/
#include <linux/of.h>
#include <soc/brcmstb/common.h>
static const struct of_device_id brcmstb_machine_match[] = {
{ .compatible = "brcm,brcmstb", },
{ }
};
bool soc_is_brcmstb(void)
{
struct device_node *root;
root = of_find_node_by_path("/");
if (!root)
return false;
return of_match_node(brcmstb_machin... |
google | android | biuctrl | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/soc/brcmstb/biuctrl.c | 2,864 | utf_8 | bdb294add2b9317fbaeb4d4e0bcb8340 | /*
* Broadcom STB SoCs Bus Unit Interface controls
*
*/
#define pr_fmt(fmt) "brcmstb: " KBUILD_MODNAME ": " fmt
#include <linux/kernel.h>
#include <linux/io.h>
#include <linux/of_address.h>
#include <linux/syscore_ops.h>
#define CPU_CREDIT_REG_OFFSET 0x184
#define CPU_CREDIT_REG_MCPx_WR_PAIRING_EN_MASK 0x70000000... |
google | android | sunxi_sram | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/soc/sunxi/sunxi_sram.c | 6,338 | utf_8 | 5bbacfbee1ebd5d769b94c81846b57aa | /*
* Allwinner SoCs SRAM Controller Driver
*
* warranty of any kind, whether express or implied.
*/
#include <linux/debugfs.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_address.h>
#include <linux/of_device.h>
#include <linux/platform_device.h>
#include <linux/soc/sunxi... |
google | android | knav_qmss_acc | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/soc/ti/knav_qmss_acc.c | 16,342 | utf_8 | fa662a72b088d89e52a851a9431e7fce | /*
* Keystone accumulator queue manager
*
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/device.h>
#include <linux/io.h>
#include <linux/interrupt.h>
#include <linux/bitops.h>
#include <linux/slab.h>
#include <linux/spinlock.h>
#include <linux/soc/ti/knav_qmss.h>
#include <linux/platform_devi... |
google | android | knav_dma | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/soc/ti/knav_dma.c | 20,947 | utf_8 | f0aa09af6c1c0e33627ae3a02c592598 | /*
*/
#include <linux/io.h>
#include <linux/sched.h>
#include <linux/module.h>
#include <linux/dma-direction.h>
#include <linux/interrupt.h>
#include <linux/pm_runtime.h>
#include <linux/of_dma.h>
#include <linux/of_address.h>
#include <linux/platform_device.h>
#include <linux/soc/ti/knav_dma.h>
#include <linux/debugf... |
google | android | knav_qmss_queue | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/soc/ti/knav_qmss_queue.c | 46,454 | utf_8 | d9f568a4a7e7d277b0121378090341bd | /*
* Keystone Queue Manager subsystem driver
*
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/device.h>
#include <linux/clk.h>
#include <linux/io.h>
#include <linux/interrupt.h>
#include <linux/bitops.h>
#include <linux/slab.h>
#include <linux/spinlock.h>
#include <linux/platform_device.h>
#i... |
google | android | mtk-scpsys | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/soc/mediatek/mtk-scpsys.c | 12,802 | utf_8 | b6a5562581e2131191c87ba49815005b | /*
*/
#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/io.h>
#include <linux/kernel.h>
#include <linux/mfd/syscon.h>
#include <linux/module.h>
#include <linux/of_device.h>
#include <linux/platform_device.h>
#include <linux/pm_domain.h>
#include <linux/regmap.h>
#include <linux/soc/mediatek/infracfg.h>
#... |
google | android | mtk-infracfg | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/soc/mediatek/mtk-infracfg.c | 2,234 | utf_8 | 8a8984e875e08dab8e5ccc7bdc6f9217 | /*
*/
#include <linux/export.h>
#include <linux/jiffies.h>
#include <linux/regmap.h>
#include <linux/soc/mediatek/infracfg.h>
#include <asm/processor.h>
#define INFRA_TOPAXI_PROTECTEN 0x0220
#define INFRA_TOPAXI_PROTECTSTA1 0x0228
/**
* mtk_infracfg_set_bus_protection - enable bus protection
*
* This function enab... |
google | android | mtk-pmic-wrap | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/soc/mediatek/mtk-pmic-wrap.c | 24,551 | utf_8 | 6c1b03ea1336808bd6f99b0b164a6880 | /*
*/
#include <linux/clk.h>
#include <linux/interrupt.h>
#include <linux/io.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/of_device.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>
#include <linux/reset.h>
#define PWRAP_MT8135_BRIDGE_IORD_ARB_EN 0x4
#define PWRAP_MT8135_BRIDGE... |
google | android | soc-realview | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/soc/versatile/soc-realview.c | 3,861 | utf_8 | ec3229ae01b4663123c8b7a6e34421a6 | /*
*
*/
#include <linux/init.h>
#include <linux/io.h>
#include <linux/slab.h>
#include <linux/sys_soc.h>
#include <linux/platform_device.h>
#include <linux/mfd/syscon.h>
#include <linux/regmap.h>
#include <linux/of.h>
/* System ID in syscon */
#define REALVIEW_SYS_ID_OFFSET 0x00
static const struct of_device_id realv... |
google | android | soc-integrator | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/soc/versatile/soc-integrator.c | 3,972 | utf_8 | a7064296e6bf4d5bd1478205166731be | /*
*
*/
#include <linux/init.h>
#include <linux/io.h>
#include <linux/slab.h>
#include <linux/sys_soc.h>
#include <linux/platform_device.h>
#include <linux/mfd/syscon.h>
#include <linux/regmap.h>
#include <linux/of.h>
#define INTEGRATOR_HDR_ID_OFFSET 0x00
static u32 integrator_coreid;
static const struct of_device_id... |
google | android | pmu | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/soc/dove/pmu.c | 10,467 | utf_8 | 7a0fad538a960a2b2ca8b798d442e11d | /*
* Marvell Dove PMU support
*/
#include <linux/io.h>
#include <linux/irq.h>
#include <linux/irqdomain.h>
#include <linux/of.h>
#include <linux/of_irq.h>
#include <linux/of_address.h>
#include <linux/platform_device.h>
#include <linux/pm_domain.h>
#include <linux/reset.h>
#include <linux/reset-controller.h>
#include... |
google | android | smem | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/soc/qcom/smem.c | 20,936 | utf_8 | db9dafe643bc73ac1b934120f472c727 | /*
*/
#include <linux/hwspinlock.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_address.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/soc/qcom/smem.h>
/*
* The Qualcomm shared memory system is a allocate only heap structure that
* consists ... |
google | android | smd-rpm | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/soc/qcom/smd-rpm.c | 6,307 | utf_8 | 17901120bab51ff0d5728ee459736574 | /*
*/
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/of_platform.h>
#include <linux/io.h>
#include <linux/interrupt.h>
#include <linux/slab.h>
#include <linux/soc/qcom/smd.h>
#include <linux/soc/qcom/smd-rpm.h>
#define RPM_REQUEST_TIMEOUT (5 * HZ)
/**
* struct qcom_smd_rpm - state of... |
google | android | smd | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/soc/qcom/smd.c | 35,535 | utf_8 | 3a37bda1e532836a00527dd69065fa64 | /*
*/
#include <linux/interrupt.h>
#include <linux/io.h>
#include <linux/mfd/syscon.h>
#include <linux/module.h>
#include <linux/of_irq.h>
#include <linux/of_platform.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/soc/qcom/smd.h>
#includ... |
google | android | spm | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/soc/qcom/spm.c | 9,830 | utf_8 | baaec1fa967651a2575f75d776977b0d | /*
*/
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/slab.h>
#include <linux/of.h>
#include <linux/of_address.h>
#include <linux/of_device.h>
#include <linux/err.h>
#include <linux/platform_device.h>
#include <linux/cpuidle.h>
#include <linux/cpu_pm.h>... |
google | android | qcom_gsbi | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/soc/qcom/qcom_gsbi.c | 6,540 | utf_8 | 1eba1f65e16eb078db855db3bf599af7 | /*
*/
#include <linux/clk.h>
#include <linux/err.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_platform.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>
#include <linux/mfd/syscon.h>
#include <dt-bindings/soc/qcom,gsbi.h>
#define GSBI_CTRL_REG 0x0000
#defin... |
google | android | pm_runtime | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/sh/pm_runtime.c | 1,241 | utf_8 | a844f78d8e93f12287cfa09ae5cf6cde | /*
* Runtime PM support code
*
* for more details.
*/
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/io.h>
#include <linux/pm_runtime.h>
#include <linux/pm_domain.h>
#include <linux/pm_clock.h>
#include <linux/platform_device.h>
#include <linux/clk.h>
#include <linux/sh_clk.h>
#include <linux/bit... |
google | android | maple | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/sh/maple/maple.c | 21,950 | utf_8 | f41d2af4e0f68802a96f22b221ba9933 | /*
* Core maple bus functionality
*
* for more details.
*/
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/device.h>
#include <linux/interrupt.h>
#include <linux/list.h>
#include <linux/io.h>
#include <linux/slab.h>
#include <linux/maple.h>
#include <linux/dma-mapping.h>
#include <linux/delay.h>
#... |
google | android | balancing | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/sh/intc/balancing.c | 2,327 | utf_8 | ec3a5d0b93fa018686efef1a861fd99b | /*
* Support for hardware-managed IRQ auto-distribution.
*
* for more details.
*/
#include "internals.h"
static unsigned long dist_handle[INTC_NR_IRQS];
void intc_balancing_enable(unsigned int irq)
{
struct intc_desc_int *d = get_intc_desc(irq);
unsigned long handle = dist_handle[irq];
unsigned long addr;
if (i... |
google | android | userimask | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/sh/intc/userimask.c | 2,099 | utf_8 | 749ccc31eeedd4abd537a5fe6bca860e | /*
* Support for hardware-assisted userspace interrupt masking.
*
* for more details.
*/
#define pr_fmt(fmt) "intc: " fmt
#include <linux/errno.h>
#include <linux/device.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/stat.h>
#include <asm/sizes.h>
#include "internals.h"
static void __iomem *uimask... |
google | android | access | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/sh/intc/access.c | 6,629 | utf_8 | 6855e543a3833af760ceeb53fb13461c | /*
* Common INTC2 register accessors
*
* for more details.
*/
#include <linux/io.h>
#include "internals.h"
unsigned long intc_phys_to_virt(struct intc_desc_int *d, unsigned long address)
{
struct intc_window *window;
int k;
/* scan through physical windows and convert address */
for (k = 0; k < d->nr_windows; k... |
google | android | core | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/sh/intc/core.c | 12,263 | utf_8 | 0a0ba391e91a216058d09e1782f6be3c | /*
* Shared interrupt handling code for IPR and INTC2 types of IRQs.
*
* for more details.
*/
#define pr_fmt(fmt) "intc: " fmt
#include <linux/init.h>
#include <linux/irq.h>
#include <linux/io.h>
#include <linux/slab.h>
#include <linux/stat.h>
#include <linux/interrupt.h>
#include <linux/sh_intc.h>
#include <linux/... |
google | android | virq | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/sh/intc/virq.c | 6,409 | utf_8 | 057f7787b5dd00cc506fd3a0a8e7a2ba | /*
* Support for virtual IRQ subgroups.
*
* for more details.
*/
#define pr_fmt(fmt) "intc: " fmt
#include <linux/slab.h>
#include <linux/irq.h>
#include <linux/list.h>
#include <linux/radix-tree.h>
#include <linux/spinlock.h>
#include <linux/export.h>
#include "internals.h"
static struct intc_map_entry intc_irq_xl... |
google | android | chip | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/sh/intc/chip.c | 5,549 | utf_8 | ca1d64c4454e9b5c630e28366cad969f | /*
* IRQ chip definitions for INTC IRQs.
*
* for more details.
*/
#include <linux/cpumask.h>
#include <linux/bsearch.h>
#include <linux/io.h>
#include "internals.h"
void _intc_enable(struct irq_data *data, unsigned long handle)
{
unsigned int irq = data->irq;
struct intc_desc_int *d = get_intc_desc(irq);
unsigne... |
google | android | virq-debugfs | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/sh/intc/virq-debugfs.c | 1,519 | utf_8 | 1181a491473f1b7718717e9a30b8eb18 | /*
* Support for virtual IRQ subgroups debugfs mapping.
*
* for more details.
*/
#include <linux/seq_file.h>
#include <linux/fs.h>
#include <linux/init.h>
#include <linux/irq.h>
#include <linux/debugfs.h>
#include "internals.h"
static int intc_irq_xlate_debug(struct seq_file *m, void *priv)
{
int i;
seq_printf(m,... |
google | android | irqdomain | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/sh/intc/irqdomain.c | 1,924 | utf_8 | bee34b636715ecfad91446f1bc9b6faa | /*
* IRQ domain support for SH INTC subsystem
*
* for more details.
*/
#define pr_fmt(fmt) "intc: " fmt
#include <linux/irqdomain.h>
#include <linux/sh_intc.h>
#include <linux/export.h>
#include "internals.h"
/**
* intc_irq_domain_evt_xlate() - Generic xlate for vectored IRQs.
*
* This takes care of exception ve... |
google | android | handle | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/sh/intc/handle.c | 7,013 | utf_8 | 0f8a817c6dfe096e3b1677c3e996e95d | /*
* Shared interrupt handling code for IPR and INTC2 types of IRQs.
*
* for more details.
*/
#include <linux/init.h>
#include <linux/irq.h>
#include <linux/spinlock.h>
#include "internals.h"
static unsigned long ack_handle[INTC_NR_IRQS];
static intc_enum __init intc_grp_id(struct intc_desc *desc,
intc_enum... |
google | android | superhyway-sysfs | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/sh/superhyway/superhyway-sysfs.c | 1,340 | utf_8 | 0254d522a39f8b6f128b0d6102c63210 | /*
* drivers/sh/superhyway/superhyway-sysfs.c
*
* SuperHyway Bus sysfs interface
*
* for more details.
*/
#include <linux/kernel.h>
#include <linux/device.h>
#include <linux/types.h>
#include <linux/superhyway.h>
#define superhyway_ro_attr(name, fmt, field) \
static ssize_t name##_show(struct device *dev, stru... |
google | android | superhyway | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/sh/superhyway/superhyway.c | 6,126 | utf_8 | 9ad1e69ea4556ff594e734569e03aa40 | /*
* drivers/sh/superhyway/superhyway.c
*
* SuperHyway Bus Driver
*
* for more details.
*/
#include <linux/kernel.h>
#include <linux/device.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/types.h>
#include <linux/list.h>
#include <linux/superhyway.h>
#include <linux/string.h>
#include <linux/... |
google | android | core | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/sh/clk/core.c | 14,812 | utf_8 | f15d888b84d31cfbbc55c1d876a3b31e | /*
* SuperH clock framework
*
* for more details.
*/
#define pr_fmt(fmt) "clock: " fmt
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/list.h>
#include <linux/syscore_ops.h>
#include <linux/seq_file.h>
#include <linux/err.h>
#include <linux/io.h>
... |
google | android | cpg | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/sh/clk/cpg.c | 11,216 | utf_8 | 459e74d10f2a129ee045a3c3f2419a74 | /*
* Helper routines for SuperH Clock Pulse Generator blocks (CPG).
*
* for more details.
*/
#include <linux/clk.h>
#include <linux/compiler.h>
#include <linux/slab.h>
#include <linux/io.h>
#include <linux/sh_clk.h>
#define CPG_CKSTP_BIT BIT(8)
static unsigned int sh_clk_read(struct clk *clk)
{
if (clk->flags & CL... |
google | android | ab8500-sysctrl | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/mfd/ab8500-sysctrl.c | 4,427 | utf_8 | 5f32405a9244c20407bda198e9b0f632 | /*
*/
#include <linux/err.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/pm.h>
#include <linux/reboot.h>
#include <linux/signal.h>
#include <linux/power_supply.h>
#include <linux/mfd/abx500.h>
#include <linux/mfd/abx500/ab8500.h>
#include <linux/mfd/abx500/ab8500-sysctrl.h>
/* RtcCtrl ... |
google | android | ipaq-micro | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/mfd/ipaq-micro.c | 11,622 | utf_8 | 6ba74150e0d07434ca3dc82d95191bea | /*
* Compaq iPAQ h3xxx Atmel microcontroller companion support
*
* This is an Atmel AT90LS8535 with a special flashed-in firmware that
* implements the special protocol used by this driver.
*
* based on previous kernel 2.4 version by Andrew Christian
*/
#include <linux/module.h>
#include <linux/init.h>
#include ... |
google | android | stmpe-spi | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/mfd/stmpe-spi.c | 3,639 | utf_8 | ed5242edc9bc3d78a94bbb4afabf6b49 | /*
* ST Microelectronics MFD: stmpe's spi client specific driver
*
*/
#include <linux/spi/spi.h>
#include <linux/interrupt.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/types.h>
#include "stmpe.h"
#define READ_CMD (1 << 7)
static int spi_reg_read(struct stmpe *stmpe, u8... |
google | android | as3711 | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/mfd/as3711.c | 6,188 | utf_8 | 5e492aaaeccb1b90554d0fca153ecd98 | /*
* AS3711 PMIC MFC driver
*
*/
#include <linux/device.h>
#include <linux/err.h>
#include <linux/i2c.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/mfd/as3711.h>
#include <linux/mfd/core.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/regmap.h>
#include <linux/slab.h>
enum {... |
google | android | stmpe-i2c | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/mfd/stmpe-i2c.c | 3,622 | utf_8 | c3d8252fe746d69f3d3862194a51820a | /*
* ST Microelectronics MFD: stmpe's i2c client specific driver
*
*/
#include <linux/i2c.h>
#include <linux/interrupt.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/types.h>
#include <linux/of_device.h>
#include "stmpe.h"
static int i2c_reg_read(struct stmpe *stmpe, u8 reg)
{
struct i2c_cli... |
google | android | cros_ec | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/mfd/cros_ec.c | 3,821 | utf_8 | bc8c844a1e288e7a30f6f8ba3390f0f4 | /*
* ChromeOS EC multi-function device
*
*
* The ChromeOS EC multi function device is used to mux all the requests
* to the EC device for its multiple features: keyboard controller,
* battery charging and regulator control, firmware update.
*/
#include <linux/of_platform.h>
#include <linux/interrupt.h>
#include ... |
google | android | adp5520 | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/mfd/adp5520.c | 8,530 | utf_8 | 69a2e1e5d18a9f5ab8ec645309414c42 | /*
* Base driver for Analog Devices ADP5520/ADP5501 MFD PMICs
* LCD Backlight: drivers/video/backlight/adp5520_bl
* LEDs : drivers/led/leds-adp5520
* GPIO : drivers/gpio/adp5520-gpio (ADP5520 only)
* Keys : drivers/input/keyboard/adp5520-keys (ADP5520 only)
*
*/
#include <linux/kernel.h>
#include <linux/modul... |
google | android | abx500-core | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/mfd/abx500-core.c | 3,949 | utf_8 | cb02db7b94861a8e7fd171ec07b04e27 | /*
*/
#include <linux/list.h>
#include <linux/slab.h>
#include <linux/err.h>
#include <linux/module.h>
#include <linux/mfd/abx500.h>
static LIST_HEAD(abx500_list);
struct abx500_device_entry {
struct list_head list;
struct abx500_ops ops;
struct device *dev;
};
static void lookup_ops(struct device *dev, struct abx5... |
google | android | cs5535-mfd | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/mfd/cs5535-mfd.c | 4,811 | utf_8 | afd1e96a8c7181386f442bd74e806416 | /*
* cs5535-mfd.c - core MFD driver for CS5535/CS5536 southbridges
*
* The CS5535 and CS5536 has an ISA bridge on the PCI bus that is
* used for accessing GPIOs, MFGPTs, ACPI, etc. Each subdevice has
* an IO range that's specified in a single BAR. The BAR order is
* hardcoded in the CS553x specifications.
*
*... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.