type stringclasses 5
values | content stringlengths 9 163k |
|---|---|
functions | int tfa98xx_select_mode(struct tfa98xx *tfa98xx, enum Tfa98xx_Mode mode)
{
struct snd_soc_codec *codec = tfa98xx->codec;
u16 i2s_value, sysctrl_value, temp_value;
u16 bat_volt;
int ret = 0;
int timeoutloop = 100;
pr_debug("%d\n", mode);
if (tfa98xx->rev != REV_TFA9897)
return -EINVAL;
i2s_value = sn... |
functions | int tfa9897_dsp_write_vsfwdelay_table(struct tfa98xx *tfa98xx)
{
return tfa98xx_dsp_set_param(tfa98xx, MODULE_FRAMEWORK,
FW_PARAM_SET_CURRENT_DELAY,
sizeof(vsfwdelay_table),
vsfwdelay_table);
} |
functions | int tfa9897_dsp_write_cvfracdelay_table(struct tfa98xx *tfa98xx)
{
return tfa98xx_dsp_set_param(tfa98xx, MODULE_FRAMEWORK,
FW_PARAM_SET_CURFRAC_DELAY,
sizeof(cvfracdelay_table),
cvfracdelay_table);
} |
functions | int tfa98xx_dsp_write_tables(struct tfa98xx *tfa98xx)
{
int ret = 0;
if (tfa98xx->rev == REV_TFA9897) {
ret = tfa9897_dsp_write_vsfwdelay_table(tfa98xx);
pr_debug("tfa9897_dsp_write_vsfwdelay_table %d\n", ret);
if (!ret) {
ret = tfa9897_dsp_write_cvfracdelay_table(tfa98xx);
pr_debug("tfa9897_dsp_write_cv... |
functions | int tfaRunStartDSP(struct tfa98xx *tfa98xx)
{
int ret;
ret = tfaContWritePatch(tfa98xx);
if (ret) {
pr_err("Error, writing patch failed (%d)\n", ret);
return ret;
} |
functions | int tfaRunColdStartup(struct tfa98xx *tfa98xx)
{
int ret;
pr_debug("\n");
ret = tfa98xx_startup(tfa98xx);
pr_err("tfa98xx_startup %d\n", ret);
if (ret)
return ret;
/* force cold boot */
ret = tfa98xx_coldboot(tfa98xx, 1); /* set ACS */
pr_err("tfa98xx_coldboot %d\n", ret);
if (ret)
return ret;
ret = t... |
functions | int tfaRunSetCalibrateOnce(struct tfa98xx *tfa98xx)
{
struct snd_soc_codec *codec = tfa98xx->codec;
u16 mtp, status;
int tries = 0;
int err = 0;
/* Read MTP Register */
mtp = snd_soc_read(codec, TFA98XX_MTP);
if ((mtp & TFA98XX_MTP_MTPOTC) == 0) {
/* Setting sequence for MTPOTC one time calibration */
s... |
functions | int tfaRunSpeakerBoost(struct tfa98xx *tfa98xx, int force)
{
int ret = 0;
pr_debug("force: %d\n", force);
if (force) {
ret = tfaRunColdStartup(tfa98xx);
if (ret)
return ret;
/* DSP is running now */
} |
functions | int tfaRunSpeakerQuickBoost(struct tfa98xx *tfa98xx, int force)
{
int ret = 0;
tfa98xx_set_mute(tfa98xx, Tfa98xx_Mute_Digital);
pr_debug("force: %d\n", force);
if (force) {
pr_err("%s cold boot force =%d\n",__func__,force);
ret = tfaRunColdStartup(tfa98xx);
if (ret)
return ret;
/* DSP is running no... |
functions | int tfa98xx_dsp_quickstart(struct tfa98xx *tfa98xx, int next_profile, int vstep)
{
int forcecoldboot = coldboot;
int active_profile;
int active_vstep;
int ret = 0;
if (!tfa98xx->profile_count || !tfa98xx->profiles)
return -EINVAL;
if (tfa98xx->dsp_init == TFA98XX_DSP_INIT_RECOVER) {
pr_err("%s Restart for ... |
functions | int tfa98xx_dsp_start(struct tfa98xx *tfa98xx, int next_profile, int vstep)
{
int forcecoldboot = coldboot;
int active_profile;
int active_vstep;
int ret = 0;
if (!tfa98xx->profile_count || !tfa98xx->profiles)
return -EINVAL;
if (tfa98xx->dsp_init == TFA98XX_DSP_INIT_RECOVER) {
pr_warn("Restart for recover... |
functions | int tfa98xx_dsp_stop(struct tfa98xx *tfa98xx)
{
int ret = 0;
pr_debug("Stopping device [%s]\n", tfa98xx->fw.name);
/* tfaRunSpeakerBoost implies unmute */
/* mute + SWS wait */
ret = tfa98xx_mute(tfa98xx);
if (ret)
return ret;
/* powerdown CF */
ret = tfa98xx_powerdown(tfa98xx, 1);
if (ret)
return ret;
... |
defines |
#define DEFAULT_OBSERVER_ADAPTATION_STATE 1.0 |
defines |
#define DEFAULT_ALARM_CODES_VALUE {0x7F00, 0x7F00, 0x7F00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} |
functions | void _cmsAllocAdaptationStateChunk(struct _cmsContext_struct* ctx,
const struct _cmsContext_struct* src)
{
static _cmsAdaptationStateChunkType AdaptationStateChunk = { DEFAULT_OBSERVER_ADAPTATION_STATE } |
functions | CMSEXPORT cmsSetAdaptationStateTHR(cmsContext ContextID, cmsFloat64Number d)
{
cmsFloat64Number prev;
_cmsAdaptationStateChunkType* ptr = (_cmsAdaptationStateChunkType*) _cmsContextGetClientChunk(ContextID, AdaptationStateContext);
// Get previous value for return
prev = ptr ->AdaptationState;
// ... |
functions | CMSEXPORT cmsSetAdaptationState(cmsFloat64Number d)
{
return cmsSetAdaptationStateTHR(NULL, d);
} |
functions | CMSEXPORT cmsSetAlarmCodesTHR(cmsContext ContextID, const cmsUInt16Number AlarmCodesP[cmsMAXCHANNELS])
{
_cmsAlarmCodesChunkType* ContextAlarmCodes = (_cmsAlarmCodesChunkType*) _cmsContextGetClientChunk(ContextID, AlarmCodesContext);
_cmsAssert(ContextAlarmCodes != NULL); // Can't happen
memcpy(ContextAla... |
functions | CMSEXPORT cmsGetAlarmCodesTHR(cmsContext ContextID, cmsUInt16Number AlarmCodesP[cmsMAXCHANNELS])
{
_cmsAlarmCodesChunkType* ContextAlarmCodes = (_cmsAlarmCodesChunkType*) _cmsContextGetClientChunk(ContextID, AlarmCodesContext);
_cmsAssert(ContextAlarmCodes != NULL); // Can't happen
memcpy(AlarmCodesP, Con... |
functions | CMSEXPORT cmsSetAlarmCodes(const cmsUInt16Number NewAlarm[cmsMAXCHANNELS])
{
_cmsAssert(NewAlarm != NULL);
cmsSetAlarmCodesTHR(NULL, NewAlarm);
} |
functions | CMSEXPORT cmsGetAlarmCodes(cmsUInt16Number OldAlarm[cmsMAXCHANNELS])
{
_cmsAssert(OldAlarm != NULL);
cmsGetAlarmCodesTHR(NULL, OldAlarm);
} |
functions | void _cmsAllocAlarmCodesChunk(struct _cmsContext_struct* ctx,
const struct _cmsContext_struct* src)
{
static _cmsAlarmCodesChunkType AlarmCodesChunk = { DEFAULT_ALARM_CODES_VALUE } |
functions | CMSEXPORT cmsDeleteTransform(cmsHTRANSFORM hTransform)
{
_cmsTRANSFORM* p = (_cmsTRANSFORM*) hTransform;
_cmsAssert(p != NULL);
if (p -> GamutCheck)
cmsPipelineFree(p -> GamutCheck);
if (p -> Lut)
cmsPipelineFree(p -> Lut);
if (p ->InputColorant)
cmsFreeNamedColorList(p -... |
functions | CMSEXPORT cmsDoTransform(cmsHTRANSFORM Transform,
const void* InputBuffer,
void* OutputBuffer,
cmsUInt32Number Size)
{
_cmsTRANSFORM* p = (_cmsTRANSFORM*) Transform;
cmsStride stride;
stride.BytesPerLineIn = 0; // ... |
functions | CMSEXPORT cmsDoTransformStride(cmsHTRANSFORM Transform,
const void* InputBuffer,
void* OutputBuffer,
cmsUInt32Number Size, cmsUInt32Number Stride)
{
_cmsTRANSFORM* p = (_cmsTRANSFORM*) Transform;
cmsStride stride;
s... |
functions | CMSEXPORT cmsDoTransformLineStride(cmsHTRANSFORM Transform,
const void* InputBuffer,
void* OutputBuffer,
cmsUInt32Number PixelsPerLine,
cmsUInt32Number LineCount,
cmsUIn... |
functions | void FloatXFORM(_cmsTRANSFORM* p,
const void* in,
void* out,
cmsUInt32Number PixelsPerLine,
cmsUInt32Number LineCount,
const cmsStride* Stride)
{
cmsUInt8Number* accum;
cmsUInt8Number* output;
cmsFloat32Number fIn[cmsMAXCHANNELS... |
functions | void NullFloatXFORM(_cmsTRANSFORM* p,
const void* in,
void* out,
cmsUInt32Number PixelsPerLine,
cmsUInt32Number LineCount,
const cmsStride* Stride)
{
cmsUInt8Number* accum;
cmsUInt8Number* output;
cmsFloat32... |
functions | void NullXFORM(_cmsTRANSFORM* p,
const void* in,
void* out,
cmsUInt32Number PixelsPerLine,
cmsUInt32Number LineCount,
const cmsStride* Stride)
{
cmsUInt8Number* accum;
cmsUInt8Number* output;
cmsUInt16Number wIn[cmsMAXCHANNELS];
... |
functions | void PrecalculatedXFORM(_cmsTRANSFORM* p,
const void* in,
void* out,
cmsUInt32Number PixelsPerLine,
cmsUInt32Number LineCount,
const cmsStride* Stride)
{
register cmsUInt8Number* accum;
regist... |
functions | void TransformOnePixelWithGamutCheck(_cmsTRANSFORM* p,
const cmsUInt16Number wIn[],
cmsUInt16Number wOut[])
{
cmsUInt16Number wOutOfGamut;
p ->GamutCheck ->Eval16Fn(wIn, &wOutOfGamut, p ->GamutCheck ->Data);
if (wOutOfGamut >= 1) {
... |
functions | void PrecalculatedXFORMGamutCheck(_cmsTRANSFORM* p,
const void* in,
void* out,
cmsUInt32Number PixelsPerLine,
cmsUInt32Number LineCount,
const cmsStri... |
functions | void CachedXFORM(_cmsTRANSFORM* p,
const void* in,
void* out,
cmsUInt32Number PixelsPerLine,
cmsUInt32Number LineCount,
const cmsStride* Stride)
{
cmsUInt8Number* accum;
cmsUInt8Number* output;
cmsUInt16Number wIn[cmsMAXCHA... |
functions | void CachedXFORMGamutCheck(_cmsTRANSFORM* p,
const void* in,
void* out,
cmsUInt32Number PixelsPerLine,
cmsUInt32Number LineCount,
const cmsStride* Stride)
{
cmsUInt8Number* accum;
... |
functions | void DupPluginTransformList(struct _cmsContext_struct* ctx,
const struct _cmsContext_struct* src)
{
_cmsTransformPluginChunkType newHead = { NULL } |
functions | nodes
for (entry = head->TransformCollection;
entry != NULL;
entry = entry ->Next) {
_cmsTransformCollection *newEntry = ( _cmsTransformCollection *) _cmsSubAllocDup(ctx ->MemPool, entry, sizeof(_cmsTransformCollection));
if (newEntry == NULL)
return;
... |
functions | void _cmsAllocTransformPluginChunk(struct _cmsContext_struct* ctx,
const struct _cmsContext_struct* src)
{
if (src != NULL) {
// Copy all linked list
DupPluginTransformList(ctx, src);
} |
functions | void _cmsTransform2toTransformAdaptor(struct _cmstransform_struct *CMMcargo,
const void* InputBuffer,
void* OutputBuffer,
cmsUInt32Number PixelsPerLine,
cmsUInt32Number... |
functions | cmsBool _cmsRegisterTransformPlugin(cmsContext ContextID, cmsPluginBase* Data)
{
cmsPluginTransform* Plugin = (cmsPluginTransform*) Data;
_cmsTransformCollection* fl;
_cmsTransformPluginChunkType* ctx = ( _cmsTransformPluginChunkType*) _cmsContextGetClientChunk(ContextID,TransformPlugin);
if (Data == ... |
functions | case
if (Plugin->base.ExpectedVersion < 2080) {
fl->OldXform = TRUE;
} |
functions | CMSEXPORT _cmsSetTransformUserData(struct _cmstransform_struct *CMMcargo, void* ptr, _cmsFreeUserDataFn FreePrivateDataFn)
{
_cmsAssert(CMMcargo != NULL);
CMMcargo ->UserData = ptr;
CMMcargo ->FreeUserData = FreePrivateDataFn;
} |
functions | CMSEXPORT _cmsGetTransformUserData(struct _cmstransform_struct *CMMcargo)
{
_cmsAssert(CMMcargo != NULL);
return CMMcargo ->UserData;
} |
functions | CMSEXPORT _cmsGetTransformFormatters16(struct _cmstransform_struct *CMMcargo, cmsFormatter16* FromInput, cmsFormatter16* ToOutput)
{
_cmsAssert(CMMcargo != NULL);
if (FromInput) *FromInput = CMMcargo ->FromInput;
if (ToOutput) *ToOutput = CMMcargo ->ToOutput;
} |
functions | CMSEXPORT _cmsGetTransformFormattersFloat(struct _cmstransform_struct *CMMcargo, cmsFormatterFloat* FromInput, cmsFormatterFloat* ToOutput)
{
_cmsAssert(CMMcargo != NULL);
if (FromInput) *FromInput = CMMcargo ->FromInputFloat;
if (ToOutput) *ToOutput = CMMcargo ->ToOutputFloat;
} |
functions | itself
if (p->Lut != NULL) {
for (Plugin = ctx->TransformCollection;
Plugin != NULL;
Plugin = Plugin->Next) {
if (Plugin->Factory(&p->xform, &p->UserData, &p->FreeUserData, &p->Lut, InputFormat, OutputFormat, dwFlags)) {
... |
functions | cmsBool GetXFormColorSpaces(cmsUInt32Number nProfiles, cmsHPROFILE hProfiles[], cmsColorSpaceSignature* Input, cmsColorSpaceSignature* Output)
{
cmsColorSpaceSignature ColorSpaceIn, ColorSpaceOut;
cmsColorSpaceSignature PostColorSpace;
cmsUInt32Number i;
if (nProfiles == 0) return FALSE;
if (hProfi... |
functions | cmsBool IsProperColorSpace(cmsColorSpaceSignature Check, cmsUInt32Number dwFormat)
{
int Space1 = (int) T_COLORSPACE(dwFormat);
int Space2 = _cmsLCMScolorSpace(Check);
if (Space1 == PT_ANY) return TRUE;
if (Space1 == Space2) return TRUE;
if (Space1 == PT_LabV2 && Space2 == PT_Lab) return TRUE;
... |
functions | void NormalizeXYZ(cmsCIEXYZ* Dest)
{
while (Dest -> X > 2. &&
Dest -> Y > 2. &&
Dest -> Z > 2.) {
Dest -> X /= 10.;
Dest -> Y /= 10.;
Dest -> Z /= 10.;
} |
functions | void SetWhitePoint(cmsCIEXYZ* wtPt, const cmsCIEXYZ* src)
{
if (src == NULL) {
wtPt ->X = cmsD50X;
wtPt ->Y = cmsD50Y;
wtPt ->Z = cmsD50Z;
} |
functions | CMSEXPORT cmsCreateExtendedTransform(cmsContext ContextID,
cmsUInt32Number nProfiles, cmsHPROFILE hProfiles[],
cmsBool BPC[],
cmsUInt32Number Intents[],
... |
functions | profile
if (dwFlags & cmsFLAGS_GAMUTCHECK) {
if (hGamutProfile == NULL) dwFlags &= ~cmsFLAGS_GAMUTCHECK;
} |
functions | profiles
if (dwFlags & cmsFLAGS_KEEP_SEQUENCE) {
xform ->Sequence = _cmsCompileProfileSequence(ContextID, nProfiles, hProfiles);
} |
functions | CMSEXPORT cmsCreateMultiprofileTransformTHR(cmsContext ContextID,
cmsHPROFILE hProfiles[],
cmsUInt32Number nProfiles,
cmsUInt32Number InputFormat,
... |
functions | CMSEXPORT cmsCreateMultiprofileTransform(cmsHPROFILE hProfiles[],
cmsUInt32Number nProfiles,
cmsUInt32Number InputFormat,
cmsUInt32Number OutputFormat,
... |
functions | CMSEXPORT cmsCreateTransformTHR(cmsContext ContextID,
cmsHPROFILE Input,
cmsUInt32Number InputFormat,
cmsHPROFILE Output,
cmsUInt32Numbe... |
functions | CMSEXPORT cmsCreateTransform(cmsHPROFILE Input,
cmsUInt32Number InputFormat,
cmsHPROFILE Output,
cmsUInt32Number OutputFormat,
... |
functions | CMSEXPORT cmsCreateProofingTransformTHR(cmsContext ContextID,
cmsHPROFILE InputProfile,
cmsUInt32Number InputFormat,
cmsHPROFILE OutputProfile,
... |
functions | CMSEXPORT cmsCreateProofingTransform(cmsHPROFILE InputProfile,
cmsUInt32Number InputFormat,
cmsHPROFILE OutputProfile,
cmsUInt32Number OutputFormat,
... |
functions | CMSEXPORT cmsGetTransformContextID(cmsHTRANSFORM hTransform)
{
_cmsTRANSFORM* xform = (_cmsTRANSFORM*) hTransform;
if (xform == NULL) return NULL;
return xform -> ContextID;
} |
functions | CMSEXPORT cmsGetTransformInputFormat(cmsHTRANSFORM hTransform)
{
_cmsTRANSFORM* xform = (_cmsTRANSFORM*) hTransform;
if (xform == NULL) return 0;
return xform->InputFormat;
} |
functions | CMSEXPORT cmsGetTransformOutputFormat(cmsHTRANSFORM hTransform)
{
_cmsTRANSFORM* xform = (_cmsTRANSFORM*) hTransform;
if (xform == NULL) return 0;
return xform->OutputFormat;
} |
functions | CMSEXPORT cmsChangeBuffersFormat(cmsHTRANSFORM hTransform,
cmsUInt32Number InputFormat,
cmsUInt32Number OutputFormat)
{
_cmsTRANSFORM* xform = (_cmsTRANSFORM*) hTransform;
cmsFormatter16 FromInput, ToOutput;
// We only can a... |
includes |
#include <errno.h> |
includes | #include <stdlib.h> |
functions | void new_session_keyring(void)
{
TEST(keyctl(KEYCTL_JOIN_SESSION_KEYRING, NULL));
if (TST_RET < 0)
tst_brk(TBROK | TTERRNO, "failed to join new session keyring");
} |
functions | void test_update_nonupdatable(const char *type,
const void *payload, size_t plen)
{
key_serial_t keyid;
new_session_keyring();
int is_asymmetric = !strcmp(type, "asymmetric");
TEST(add_key(type, "desc", payload, plen, KEY_SPEC_SESSION_KEYRING));
if (TST_RET < 0) {
if (TST_ERR == EINVAL && is_asymmetr... |
functions | void test_update_setperm_race(void)
{
static const char payload[] = "payload";
key_serial_t keyid;
int i;
new_session_keyring();
TEST(add_key("user", "desc", payload, sizeof(payload),
KEY_SPEC_SESSION_KEYRING));
if (TST_RET < 0) {
tst_res(TFAIL | TTERRNO, "failed to add 'user' key");
return;
} |
functions | void setup(void)
{
fips_enabled = tst_fips_enabled();
} |
functions | void do_test(unsigned int i)
{
/*
* We need to pass check in dns_resolver_preparse(),
* give it dummy server list request.
*/
static char dns_res_payload[] = { 0x00, 0x00, 0x01, 0xff, 0x00 } |
defines |
#define FPS_TAG MKTAG('F', 'P', 'S', 'x') |
functions | int decode_init(AVCodecContext *avctx)
{
FrapsContext * const s = avctx->priv_data;
avctx->coded_frame = (AVFrame*)&s->frame;
avctx->pix_fmt= PIX_FMT_NONE; /* set in decode_frame */
s->avctx = avctx;
s->frame.data[0] = NULL;
s->tmpbuf = NULL;
dsputil_init(&s->dsp, avctx);
return 0;
} |
functions | int huff_cmp(const void *va, const void *vb){
const Node *a = va, *b = vb;
return (a->count - b->count)*256 + a->sym - b->sym;
} |
functions | int fraps2_decode_plane(FrapsContext *s, uint8_t *dst, int stride, int w,
int h, uint8_t *src, int size, int Uoff)
{
int i, j;
GetBitContext gb;
VLC vlc;
Node nodes[512];
for(i = 0; i < 256; i++)
nodes[i].count = bytestream_get_le32(&src);
size -= 1024;
... |
functions | int decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
uint8_t *buf, int buf_size)
{
FrapsContext * const s = avctx->priv_data;
AVFrame *frame = data;
AVFrame * const f = (AVFrame*)&s->frame;
uint32_t header;
unsigned int version,header_si... |
functions | int decode_end(AVCodecContext *avctx)
{
FrapsContext *s = (FrapsContext*)avctx->priv_data;
if (s->frame.data[0])
avctx->release_buffer(avctx, &s->frame);
av_freep(&s->tmpbuf);
return 0;
} |
functions | int
pfm_snb_detect(void *this)
{
int ret;
ret = pfm_intel_x86_detect();
if (ret != PFM_SUCCESS)
return ret;
if (pfm_intel_x86_cfg.family != 6)
return PFM_ERR_NOTSUPP;
switch (pfm_intel_x86_cfg.model) {
case 42: /* Sandy Bridge (Core i7 26xx, 25xx) */
break;
default:
return PFM_ERR_NOTSUPP;
} |
functions | int
pfm_snb_ep_detect(void *this)
{
int ret;
ret = pfm_intel_x86_detect();
if (ret != PFM_SUCCESS)
return ret;
if (pfm_intel_x86_cfg.family != 6)
return PFM_ERR_NOTSUPP;
switch (pfm_intel_x86_cfg.model) {
case 45: /* Sandy Bridge EP */
break;
default:
return PFM_ERR_NOTSUPP;
} |
functions | int
pfm_snb_init(void *this)
{
pfm_intel_x86_cfg.arch_version = 3;
return PFM_SUCCESS;
} |
includes |
#include <linux/init.h> |
includes | #include <linux/kernel.h> |
includes | #include <linux/platform_device.h> |
includes | #include <linux/dma-mapping.h> |
includes | #include <linux/io.h> |
includes | #include <linux/i2c.h> |
includes | #include <linux/i2c/ft5306_touch.h> |
includes | #include <linux/gpio.h> |
includes | #include <linux/delay.h> |
includes | #include <linux/backlight.h> |
includes | #include <linux/mfd/88pm80x.h> |
includes | #include <linux/regulator/machine.h> |
includes | #include <linux/mmc/host.h> |
includes | #include <linux/mmc/sdhci.h> |
includes | #include <linux/mmc/card.h> |
includes | #include <linux/platform_data/pxa_sdhci.h> |
includes | #include <linux/sd8x_rfkill.h> |
includes | #include <linux/regmap.h> |
includes | #include <linux/mfd/88pm80x.h> |
includes | #include <linux/platform_data/mv_usb.h> |
includes | #include <linux/pm_qos.h> |
includes | #include <linux/clk.h> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.