username
stringlengths
1
36
repo
stringlengths
1
82
path
stringlengths
4
161
function
stringlengths
0
328
code
stringlengths
15
240k
func_defs
stringlengths
0
313k
llvm
stringclasses
1 value
hash
stringlengths
64
64
memory
int64
15
240k
chriskmanx
qmole
QMOLEDEV/vnc-4_1_3-unixsrc/unix/xc/lib/GL/mesa/src/drv/mga/mgatris.c
mga_draw_quad
static void __inline__ mga_draw_quad( mgaContextPtr mmesa, mgaVertexPtr v0, mgaVertexPtr v1, mgaVertexPtr v2, mgaVertexPtr v3 ) { GLuint vertex_size = mmesa->vertex_size; GLuint *vb = mgaAllocDmaLow( mmesa, 6 * 4 * vertex_size ); int j; EMIT_VERT( j, vb, vertex_...
static void init_rast_tab( void ); static void mgaRenderClippedPoly( GLcontext *ctx, const GLuint *elts, GLuint n ); static void mgaRenderClippedLine( GLcontext *ctx, GLuint ii, GLuint jj ); static void mgaChooseRenderState(GLcontext *ctx); static void mgaRunPipeline( GLcontext *ctx ); void mgaRasterPrimitive( GL...
7e6b1dc08c7ef836c483ab960a9c8536da12027fc2e2e9498495320acb0994d2
533
alistairking
wandio
lib/ior-peek.c
peek_peek
static int64_t peek_peek(io_t *io, void *buffer, int64_t len) { int64_t ret = 0; int res = 0; if (DATA(io)->length - DATA(io)->offset < len) { int64_t read_amount = len - (DATA(io)->length - DATA(io)->offset); ...
DLLEXPORT io_t *peek_open(io_t *child); static int64_t refill_buffer(io_t *io, int64_t len); static int64_t peek_read(io_t *io, void *buffer, int64_t len); static void *alignedrealloc(void *old, size_t oldsize, size_t size, int *res); static int64_t peek_tell(io_t *io); static int64_t peek_seek(io_t *io, int64_t ...
dadab1821fca6a485e217f69180fe96d6fe254ea601a2aaa32862ba28aceab52
1,264
garbear
v4l-utils
lib/libdvbv5/dvb-file.c
parse_delsys
int parse_delsys(const char *name) { int i, cnt = 0; for (i = 0; i < ARRAY_SIZE(delivery_system_name); i++) if (delivery_system_name[i] && !strcasecmp(name, delivery_system_name[i])) break; if (i < ARRAY_SIZE(delivery_system_name)) return i; for (i = 0; i < ARRAY_SIZE(alt_names); i++) if (!strc...
static void adjust_delsys(struct dvb_entry *entry); static uint32_t get_compat_format(uint32_t delivery_system); static int fill_entry(struct dvb_entry *entry, char *key, char *value); struct dvb_file *read_dvb_file(const char *fname); int write_dvb_file(const char *fname, struct dvb_file *dvb_file); static char ...
496ebfdcb652d2352fd4d5f14e998c1e25e20a2cf9e89b666ae73e9388183a76
921
jmahler
EECE344-Digital_System_Design
empty_project/Libraries/STM32_TouchSensing_Driver/src/stm32_tsl_services.c
TSL_DeltaCalculation
void TSL_DeltaCalculation(void) { Delta = (int16_t)(pKeyStruct->Channel.Reference - pKeyStruct->Channel.LastMeas); }
void TSL_SetStructPointer(void); void TSL_SCKey_SetIdleState(void); void TSL_SCKey_BackToIdleState(void); void TSL_SCKey_SetPreDetectState(void); void TSL_SCKey_SetDetectedState(void); void TSL_SCKey_SetPostDetectState(void); void TSL_SCKey_BackToDetectedState(void); void TSL_SCKey_SetPreRecalibrationState(void...
df8f52db3784c97363960c19c2a2f7b144760543eb261295cd17c0d2e82ee988
123
odit
rv042
linux/kernel_2.6/linux/fs/openpromfs/inode.c
check_space
static int __init check_space (u16 n) { unsigned long pages; if ((1 << alloced) * PAGE_SIZE < (n + 2) * sizeof(openpromfs_node)) { pages = __get_free_pages (GFP_KERNEL, alloced + 1); if (!pages) return -1; if (nodes) { memcpy ((char *)pages, (char *)nodes, (1 << alloced) * PAGE_SIZE); free_pages...
int property_release (struct inode *inode, struct file *filp); static int lookup_children(u16 n, const char * name, int len); static struct dentry *openpromfs_lookup(struct inode * dir, struct dentry *dentry, struct nameidata *nd); static int openpromfs_readdir(struct file * filp, void * dirent, filldir_t filldir);...
ae08c29502a531e0a2063e35f62dde35f5fa2d2b62efbfbb5bc69cf580e9c6e4
422
sdudley
maximus
install/cvt202.c
CvtParse
static void CvtParse(void) { char szTemp[MAX_CTL_LINE]; char szLine[MAX_CTL_LINE]; char szStrippedLine[MAX_CTL_LINE]; char szKeyword[MAX_CTL_LINE]; int iWord; CVTPARM cp; CVTSTATE csOld; while (fgets(szLine, MAX_CTL_LINE, pfsCur->fpIn)) { pfsCur->iLine++; strcpy(szStrippedLine, szLine); ...
CVTSTATE HandleEventEvent(CVTPARM *pcp); CVTSTATE HandleSystemEnd(CVTPARM *pcp); CVTSTATE HandleSystemFile(CVTPARM *pcp); CVTSTATE HandleMatrixEnd(CVTPARM *pcp); CVTSTATE HandleMenuHeader(CVTPARM *pcp); CVTSTATE HandleHeaderFile(CVTPARM *pcp); CVTSTATE HandleMenuDefault(CVTPARM *pcp); CVTSTATE HandleMenuEnd(CVT...
4e67c5b0e4f883a4ec32b3cc5a6b9ca431e1e14cb829e47a54928372359a2923
1,178
RDemers
org.rd.qtx.toolboxlib
QtxToolboxLib/DecNumber/decBasic.c
decFloatRemainder
decFloat * decFloatRemainder(decFloat *result, const decFloat *dfl, const decFloat *dfr, decContext *set) { return decDivide(result, dfl, dfr, set, REMAINDER); }
static decFloat * decCanonical(decFloat *result, const decFloat *df); decFloat * decFloatCanonical(decFloat *result, const decFloat *df); enum decClass decFloatClass(const decFloat *df); const char *decFloatClassString(const decFloat *df); decFloat * decFloatCopy(decFloat *result, const decFloat *dfl); decFloat *...
f4a4054fc6acb5b78c3c180ff427437e10a44ce732813730b2ad8b5ef92263c4
228
cranes-bill
cedit
plugins/spell/cedit-spell-checker.c
void cedit_spell_checker_get_property
static void cedit_spell_checker_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec) { switch (prop_id) { case PROP_LANGUAGE: default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); } }
4a814fefe4f9256addcbc70ee8b8d21e382f499e295c2af2fb879e12cb4f7947
263
0xD34D
kernel_omap_bowser-common
arch/arm/mach-omap2/omap_hwmod.c
omap_hwmod_disable_wakeup
int omap_hwmod_disable_wakeup(struct omap_hwmod *oh) { unsigned long flags; u32 v; if (!oh->class->sysc || !(oh->class->sysc->sysc_flags & SYSC_HAS_ENAWAKEUP)) return -EINVAL; spin_lock_irqsave(&oh->_lock, flags); v = oh->_sysc_cache; _disable_wakeup(oh, &v); _write_sysconfig(v, oh); omap_hwmod_disable...
static int _update_sysc_cache(struct omap_hwmod *oh); static void _write_sysconfig_raw(u32 v, struct omap_hwmod *oh); static void _write_sysconfig(u32 v, struct omap_hwmod *oh); static int _set_master_standbymode(struct omap_hwmod *oh, u8 standbymode, u32 *v); static int _set_slave_idlemode(struct omap_hwmod *oh...
b60090da6f01cd5737e5df62cb3a7a888668a0302d37f26bd6ccb67fefa0681a
398
SAOImageDS9
SAOImageDS9
ast/src/selectormap.c
Delete
static void Delete( AstObject *obj, int *status ) { AstSelectorMap *this; int i; this = (AstSelectorMap *) obj; for( i = 0; i < this->nreg; i++ ) { this->reg[ i ] = astAnnul( this->reg[ i ] ); } this->reg = astFree( this->reg ); this->nreg = 0; }
static int Equal( AstObject *this_object, AstObject *that_object, int *status ); static size_t GetObjSize( AstObject *this_object, int *status ); void astInitSelectorMapVtab_( AstSelectorMapVtab *vtab, const char *name, int *status ); static void Copy( const AstObject *objin, AstObject *objout, int *status ); sta...
65e3b02b3d03e60b5fe3151740a9d7565960753561809e2ba176f5c0b9d7cf76
303
ntfreak
openocd
src/target/riscv/riscv-013.c
dmi_read
static int dmi_read(struct target *target, uint32_t *value, uint32_t address) { return dmi_op(target, value, NULL, DMI_OP_READ, address, 0, false, true); }
static riscv013_info_t *get_info(const struct target *target); dm013_info_t *get_dm(struct target *target); static uint32_t set_hartsel(uint32_t initial, uint32_t index); static void decode_dmi(char *text, unsigned address, unsigned data); static void dump_field(int idle, const struct scan_field *field); static v...
a27314d950d52cef581f6a6b4a34ebb344f339d18eb4c40837ca405dbcf8bf4b
157
osvx
pmacct
src/sql_handlers.c
count_dst_host_country_handler
void count_dst_host_country_handler(const struct db_cache *cache_elem, const struct insert_data *idata, int num, char **ptr_values, char **ptr_where) { snprintf(*ptr_where, SPACELEFT(where_clause), where[num].string, GeoIP_code_by_id(cache_elem->primitives.dst_ip_country)); snprintf(*ptr_values, SPACELEFT(values_c...
void count_src_mac_handler(const struct db_cache *cache_elem, const struct insert_data *idata, int num, char **ptr_values, char **ptr_where); void count_dst_mac_handler(const struct db_cache *cache_elem, const struct insert_data *idata, int num, char **ptr_values, char **ptr_where); void count_vlan_handler(const str...
ffc048aae33cee4d6345299ad92cf6ea7b8e813f3c798f1aeb97c9a84934a252
481
MattDevo
coreboot
src/lib/ramtest.c
write_phys
static void write_phys(unsigned long addr, u32 value) { #if IS_ENABLED(CONFIG_SSE2) asm volatile( "movnti %1, (%0)" : : "r" (addr), "r" (value) #ifndef __GNUC__ : #endif ); #else volatile unsigned long *ptr; ptr = (void *)addr; *ptr = value; #endif }
static u32 read_phys(unsigned long addr); static void phys_memory_barrier(void); static int ram_bitset_nodie(unsigned long start); void ram_check(unsigned long start, unsigned long stop); int ram_check_nodie(unsigned long start, unsigned long stop); int ram_check_noprint_nodie(unsigned long start, unsigned long s...
9274c8ad3d6e8441fb8ffcfe3a88c40e2452b5ff220c650461faf754bd86c1bc
279
emacs-mirror
emacs
src/keyboard.c
AVOID user_error
static AVOID user_error (const char *msg) { xsignal1 (Quser_error, build_string (msg)); }
FOR_EACH_TAIL_SAFE (event_desc); void init_raw_keybuf_count (void);
fd4814738aed49f5b526ff201f355606604527540ab92b8391da090ad53dd156
92
Angor00
linux-aura-hd-android-2.6.35.3
drivers/mxc/pmic/mc13892/pmic_adc.c
pmic_adc_convert_8x
PMIC_STATUS pmic_adc_convert_8x(t_channel channel, unsigned short *result) { t_adc_param adc_param; int i; PMIC_STATUS ret; if (suspend_flag == 1) return -EBUSY; channel = channel_num[channel]; if (channel == -1) { pr_debug("Wrong channel ID\n"); return PMIC_PARAMETER_ERROR; } mc13892_adc_init_param(&a...
int is_pmic_adc_ready(); static int pmic_adc_suspend(struct platform_device *pdev, pm_message_t state); static int pmic_adc_resume(struct platform_device *pdev); static void callback_tsi(void *unused); static void callback_adcdone(void *unused); static void callback_adcbisdone(void *unused); static int pmic_adc_...
52c7e99c643d98a68e9d7c2a380d8735afd0bb755baf47b0dc8cc45810012e4c
727
ArcticVanguard
navalcombat
navalcombat.c
int genrand
int genrand(int a) { int r = rand(); return r % a; }
float calcforce(float m, float a); void main();
4756f4c4307480b1f10b630917b716946396c53fcb3e1f6df0be9c47d1f3d90a
55
Sidnioulz
Planner
libplanner/mrp-task.c
* mrp_task_set_unit_ivals
GList * mrp_task_set_unit_ivals (MrpTask *task, GList *ivals) { g_return_val_if_fail (MRP_IS_TASK (task), 0); if (task->priv->unit_ivals) { g_list_foreach (task->priv->unit_ivals, (GFunc) g_free, NULL); g_list_free (task->priv->unit_ivals); task->priv->unit_ivals = NULL; } task->priv->unit_ivals = ivals; ...
void mrp_task_set_name (MrpTask *task, const gchar *name); gint mrp_task_get_nres (MrpTask *task);
6bc7a3335a6b4e41df9e2bd4ba157bb9ef8b8ee0ea0ccd3b5c0ee9795af04ab7
352
muggenhor
GNUnet
src/gns/plugin_block_gns.c
* libgnunet_plugin_block_gns_done
void * libgnunet_plugin_block_gns_done (void *cls) { struct GNUNET_TRANSPORT_PluginFunctions *api = cls; GNUNET_free (api); return NULL; }
2eaa960d46cb5b0d18401692cfa1f1d62d8a8efaa50a9ecdd6c76736261542f0
146
hyller
CodeLibrary
ZigBee/Z-Stack 3.0.0/Components/stack/zcl/zcl_green_power.c
gp_CreateNotificationMsgList
void gp_CreateNotificationMsgList( gpNotificationMsg_t **pHead ) { if ( *pHead == NULL ) { *pHead = ( gpNotificationMsg_t* )osal_mem_alloc( sizeof( gpNotificationMsg_t ) ); if ( *pHead != NULL ) { (*pHead)->pNext = NULL; } } return; }
ZStatus_t zclGp_RegisterCmdCallbacks( uint8 endpoint, zclGp_AppCallbacks_t *callbacks ); static zclGp_AppCallbacks_t *zclGp_FindCallbacks( uint8 endpoint ); static ZStatus_t zclGp_HdlIncoming( zclIncoming_t *pInMsg ); static ZStatus_t zclGp_HdlInSpecificCommands( zclIncoming_t *pInMsg ); ZStatus_t zclGp_SendGpNoti...
2c24d58efbfdb8c47f6250c1de31c3950019322378571a3c6a01b1e2f46f12c0
288
371816210
kk44
drivers/usb/dwc_otg/usbdev_rk3026.c
usbdev_init_devices
static int __init usbdev_init_devices(void) { int ret = 0; #ifdef CONFIG_USB20_OTG ret = platform_device_register(&device_usb20_otg); if(ret < 0){ printk("%s: platform_device_register(usb20_otg) failed\n", __func__); return ret; } #endif #ifdef CONFIG_USB20_HOST...
int dwc_otg_check_dpdm(void); void usb20otg_hw_init(void); void usb20otg_phy_suspend(void* pdata, int suspend); void usb20otg_soft_reset(void); void usb20otg_clock_init(void* pdata); void usb20otg_clock_enable(void* pdata, int enable); int usb20otg_get_status(int id); void dwc_otg_uart_mode(void* pdata, int ent...
7efcd89401016d47fadfc2b862de1be382ac9efe436a73a5cef46b4e3e142ecd
402
ORNL-TechInt
lustre
lustre/utils/loadgen.c
loadgen_start_echosrv
static int loadgen_start_echosrv(int argc, char **argv) { char *args[5]; int rc; pthread_mutex_lock(&m_config); args[0] = cmdname; args[1] = "obdecho"; args[2] = args[3] = ecsname; rc = jt_lcfg_attach(4, args); if (rc) { fprin...
static int jt_quit(int argc, char **argv); static int loadgen_usage(int argc, char **argv); static struct kid_t *push_kid(int tnum); static void trigger(int command, int threads, int repeat, int delay); static __inline__ void stop_all(int unused); static void kill_kids(void); static void sig_master(int unused); ...
4816a1fbe94f9168fb55947bad703d633bb4e2e0721fe9d731822b40e58adffa
1,558
alan-mushi
connman-json-client
engine.c
react_to_sig_technology
static void react_to_sig_technology(struct json_object *interface, struct json_object *path, struct json_object *data, const char *sig_name) { char tech_dbus_name[256]; struct json_object *tech, *tech_dict, *val; const char *key; snprintf(tech_dbus_name, 256, "/net/connman/technology/%s", json_object_get_st...
static void engine_commands_cb(struct json_object *data, json_bool is_error); static void engine_agent_cb(struct json_object *data, struct agent_data *request); static void engine_agent_error_cb(struct json_object *data); static int agent_response(struct json_object *data); static int agent_error_response(struct j...
5bb1c09b02bb22932889c7677ac7a051c7c2a7eff4c5ddf1e543b3063cd7eb79
793
vipshop
redis-migrate-tool
src/rmt_redis.c
*sendReplSyncCommand
static char *sendReplSyncCommand(int flags, redis_node *srnode, ...) { tcp_context *tc = srnode->tc; redis_repl *rr = srnode->rr; thread_data *rdata = srnode->read_data; if (flags & SYNC_CMD_WRITE) { char *arg; va_list ap; sds cmd = sdsempty(); va_start(ap,srn...
int redis_replication_init(redis_repl *rr); void redis_replication_deinit(redis_repl *rr); int redis_node_init(redis_node *rnode, const char *addr, redis_group *rgroup); void redis_node_deinit(redis_node *rnode); void redis_group_deinit(redis_group *rgroup); int redis_rdb_init(redis_rdb *rdb, const char *addr, in...
2d4b52dc5392f4aaec4a4dffcee12f4ed95d94ca7aebf645fd8573655f0922ba
1,245
thenickreynolds
pebblesnake
snake.c
pbl_main
void pbl_main(void *params) { PebbleAppHandlers handlers = { .init_handler = &handle_init, .timer_handler = &handle_timer }; app_event_loop(params, &handlers); }
void draw_rect(GContext *ctx, GPoint topLeft, unsigned short width, unsigned short height); GPoint get_point_from_position(Position *pos); void draw_fruit(GContext *ctx); void draw_snake(GContext *ctx); void draw_border(GContext *ctx); void draw(GContext *ctx); unsigned short random(); void gen_fruit_position()...
0f5a1a2d32f213b77bae2d4fbfa51698361322de3a4ac49a8134a3360738971e
176
Rover-Yu
ali_kernel
drivers/ata/ahci.c
*ahci_port_base
static inline void __iomem *ahci_port_base(struct ata_port *ap) { return __ahci_port_base(ap->host, ap->port_no); }
static void ahci_enable_ahci(void __iomem *mmio); static void ahci_restore_initial_config(struct ata_host *host); static unsigned ahci_scr_offset(struct ata_port *ap, unsigned int sc_reg); static int ahci_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val); static int ahci_scr_write(struct ata_link *lin...
120e50f2711a957be8cfa7e2d8a0ef2f223b7b3f3f03901cbbd13d4648be2646
117
Mustaavalkosta
toolchain_gcc-4.8
gcc/config/sh/sh.c
rtx gen_block_redirect
static rtx gen_block_redirect (rtx jump, int addr, int need_block) { int dead = 0; rtx prev = prev_nonnote_insn (jump); rtx dest; if (prev && NONJUMP_INSN_P (prev) && ! INSN_DELETED_P (prev)) { if (INSN_CODE (prev) == CODE_FOR_indirect_jump_scratch) return prev; if (GET_CODE (PATTERN (pre...
56e7d04e1d5a0e828c5df2b25e74bc519dc77687c5b4b4bd971e40cee7ebd945
3,118
Qihoo360
huststore
hustdb/ha/nginx/src/core/cjson_serialization_base.c
cjson_serialize_double
json_t * cjson_serialize_double(const double * obj_val) { return obj_val ? cJSON_CreateNumber(*obj_val) : NULL; }
void json_init_hooks(json_hooks_t* hooks); void * json_malloc(size_t size); void json_free(void * obj); static char * __load_from_file(const char * path); static json_bool_t __save_to_file(const char * data, const char * path); json_bool_t json_is_array(const json_t * json_val); json_bool_t json_is_object(const ...
6e9751a84bcb28b64a877f05d422b101e1d768ab4ce50951fa95d67b0daa3912
115
MobileCloudNetworking
icnaas
csrc/sync/SyncUtil.c
void SyncNoteErr
extern void SyncNoteErr(const char *msg) { char *s = getenv("CCNS_NOTE_ERR"); int useStdErr = 0; if (s != NULL && s[0] != 0) useStdErr = strtol(s, NULL, 10); if (useStdErr > 0) { fprintf(stderr, "**** error in %s\n", msg); fflush(stderr); } }
ea3878f7f268aba08533414843bb0f4fe295f94b14d6928a3196941092ad4421
287
ChibiOS
ChibiOS
test/mfs/source/test/mfs_test_sequence_001.c
mfs_test_001_005_teardown
static void mfs_test_001_005_teardown(void) { mfsStop(&mfs1); }
static void mfs_test_001_001_setup(void); static void mfs_test_001_001_teardown(void); static void mfs_test_001_001_execute(void); static void mfs_test_001_002_setup(void); static void mfs_test_001_002_teardown(void); static void mfs_test_001_002_execute(void); static void mfs_test_001_003_setup(void); static v...
eebd5ec646ee7ce229136ccce1e95472055d00afee86f36876b85da4ce0316dd
66
GenaSG
ET
src/client/cl_ui.c
LAN_GetPing
tatic void LAN_GetPing( int n, char *buf, int buflen, int *pingtime ) { CL_GetPing( n, buf, buflen, pingtime ); }
tatic void GetClientState( uiClientState_t *state ); oid LAN_LoadCachedServers(); oid LAN_SaveServersToCache(); tatic void LAN_ResetPings( int source ); tatic int LAN_AddServer( int source, const char *name, const char *address ); tatic void LAN_RemoveServer( int source, const char *addr ); tatic int LAN_GetServerCount...
60e669b883d65d84788bd3e962f7713656acc1f9f81d72b4227d3c2a33d3c36a
116
polaco1782
quake2
src/game/p_hud.c
DeathmatchScoreboardMessage
void DeathmatchScoreboardMessage (edict_t *ent, edict_t *killer) { char entry[1024]; char string[1400]; int stringlength; int i, j, k; int sorted[MAX_CLIENTS]; int sortedscores[MAX_CLIENTS]; int score, total; int picnum; int x, y; gclient_t *cl; edict_t *cl_ent; char *tag; if (ent->is_bot) re...
void MoveClientToIntermission (edict_t *ent); void BeginIntermission (edict_t *targ); void DeathmatchScoreboard (edict_t *ent); void Cmd_Score_f (edict_t *ent); void HelpComputer (edict_t *ent); void Cmd_Help_f (edict_t *ent); void G_SetStats (edict_t *ent); void G_CheckChaseStats (edict_t *ent); void G_SetSpe...
fce2ee870ae0e76d1ca4539d898ab7962ea309be2d58b4b99be1cc7bbc3dedac
1,723
aceofall
zephyr-iotos
ext/hal/silabs/gecko/emlib/src/em_cmu.c
CMU_HFRCOStartupDelaySet
void CMU_HFRCOStartupDelaySet(uint32_t delay) { EFM_ASSERT(delay <= 31); delay &= _CMU_HFRCOCTRL_SUDELAY_MASK >> _CMU_HFRCOCTRL_SUDELAY_SHIFT; CMU->HFRCOCTRL = (CMU->HFRCOCTRL & ~(_CMU_HFRCOCTRL_SUDELAY_MASK)) | (delay << _CMU_HFRCOCTRL_SUDELAY_SHIFT); }
static uint32_t maxFreqHfle(void); static void setHfLeConfig(uint32_t hfFreq, uint32_t maxLeFreq); static uint32_t getHfLeConfig(void); static uint32_t auxClkGet(void); static uint32_t dbgClkGet(void); static void flashWaitStateControl(uint32_t coreFreq); static void flashWaitStateMax(void); static uint32_t get...
a8f03adb7476d3e86c555f8dd7f962b11d4ae79b9cdda33038f0649f6c2ce90e
288
jrobhoward
SCADAbase
usr.sbin/newsyslog/newsyslog.c
void expand_globs
static void expand_globs(struct cflist *work_p, struct cflist *glob_p) { int gmatch, gres; size_t i; char *mfname; struct conf_entry *dupent, *ent, *globent; glob_t pglob; struct stat st_fm; STAILQ_FOREACH(globent, glob_p, cf_nextp) { gres = glob(globent->log, GLOB_NOCHECK, NULL, &pglob); if (gres != 0)...
a816e913f2c017ca208b636aaf34f4688b531148967221a218e57d0c7e895057
1,303
GabrielGanne
vpp-flowtable
src/vnet/bfd/bfd_udp.c
bfd_udp_add_session
vnet_api_error_t bfd_udp_add_session (u32 sw_if_index, u32 desired_min_tx_us, u32 required_min_rx_us, u8 detect_mult, const ip46_address_t *local_addr, const ip46_address_t *peer_addr) { vnet_api_error_t...
static void bfd_rpc_update_session_cb (const bfd_rpc_update_t *a); static void bfd_rpc_update_session (u32 bs_idx, const bfd_pkt_t *pkt); static bfd_udp_error_t bfd_udp6_scan (vlib_main_t *vm, vlib_buffer_t *b); static clib_error_t *bfd_udp_init (vlib_main_t *vm);
b48a53d2176393179e209e2dd1b0bbbe6bca1ee5b8fd213029f25f724404eca9
902
juddy
edcde
programs/dtsr/dtsrkdump.c
main
int main (int argc, char *argv[]) { int i; int oops; int dotcount; long keycount; long total; char *ptr; int do_objkeys = FALSE; int do_wordkeys = FALSE; char dbpath[2048]; char rcs_revision [8]; char dbname[12]; time_t now; double percent = 0.0; ...
void count_words (int index);
3cd91d9c1cd7bb7e13c8f544dd470f2777d06c49cf1dec4cbd0ac4a2adc60949
8,052
durandj
devkitadv
insight-5.3/gdb/dwarf2read.c
void parse_macro_definition
static void parse_macro_definition (struct macro_source_file *file, int line, const char *body) { const char *p; for (p = body; *p; p++) if (*p == ' ' || *p == '(') break; if (*p == ' ' || *p == '\0') { int name_len = p - body; char *name = co...
bf4138cf96e5c380fc92a4fa6a0e6b4bd11385fb80290ea16683c4bba93d6b8d
2,668
easion
os_sdk
jwm-2.0.1/src/border.c
DestroyBorders
void DestroyBorders() { }
void InitializeBorders(); void StartupBorders(); void ShutdownBorders(); int GetBorderIconSize(); BorderActionType GetBorderActionType(const ClientNode *np, int x, int y); void DrawBorder(const ClientNode *np, const XExposeEvent *expose); void DrawBorderHelper(const ClientNode *np, int drawIcon); int GetButtonC...
f6cd21b8c940d49b8445e4a2578e6b2ef8775fc2dc1ff054870753f4f58fd7cb
26
retrodeluxe
FUZIX
Kernel/platform-rc2014/devtty.c
quart_intr
static uint8_t quart_intr(uint8_t minor) { uint8_t r = in16(QUARTPORT + QUARTREG(ISR1)); if (r & 0x02) { r = in16(QUARTPORT + QUARTREG(RHRA)); tty_inproc(minor, r); } if (r & 0x20) { r = in16(QUARTPORT + QUARTREG(RHRB)); if (minor + 1 <= NUM_DEV_TTY) tty_inproc(minor + 1 , r); } ...
void tty_setup(uint_fast8_t minor, uint_fast8_t flags); int tty_carrier(uint_fast8_t minor); void tty_pollirq(void); void tty_putc(uint_fast8_t minor, uint_fast8_t c); void tty_sleeping(uint_fast8_t minor); ttyready_t tty_writeready(uint_fast8_t minor); void tty_data_consumed(uint_fast8_t minor); void kputchar(...
b7611fba6020a2935c98fabd0614b9c6c1daea60351757061ddda5a6a1000497
747
gatieme
LDD-LinuxDeviceDrivers
books/fengguojin/src/2synchronous/2-1spinlock/spin/spinlock.c
*×¢ÏúÉ豸Çý¶¯*/ unregister_chrdev
*×¢ÏúÉ豸Çý¶¯*/ unregister_chrdev(MAJOR_NUM, "chardev"); } module_init(simple_init); module_exit(simple_exit);
static int simple_open(struct inode *inode, struct file *filp); t inode *inode, struct file *filp); ct file *filp, char *buf, size_t len, loff_t*off); uct file *filp, const char *buf, size_t len,loff_t *off); oid);
7c6057cb1b902f775443fe77e30664f1975da0ef1d405fb42115e661bc2dd9be
129
alishakiba
libflame
src/lapack/inv/tri/un/flamec/FLA_Trinv_un_opt_var1.c
FLA_Trinv_un_ops_var1
FLA_Error FLA_Trinv_un_ops_var1( int mn_A, float* buff_A, int rs_A, int cs_A ) { float alpha11_m1; int i; for ( i = 0; i < mn_A; ++i ) { float* A00 = buff_A + (0 )*cs_A + (0 )*rs_A; float* a01 = buff_A + (i )*cs_A + (0 )*rs_A; float*...
FLA_Error FLA_Trinv_un_opt_var1( FLA_Obj A );
230fbcaa3609c8f86e5b04bd63333238caa24a8c68d319873e6a9984bdae72ce
904
Drusyc
shell
src/readcmd.c
read_word
atic void read_word(char ** cur, char ** cur_buf) { while(1) { char c = **cur; switch (c) { case '\0': case ' ': case '\t': case '<': case '>': case '|': **cur_buf = '\0'; return; case '\'': read_single_quote(cur, cur_buf); break; case '"': read_double_quote(cur, cur_buf); break; ...
atic void memory_error(void); atic void *xmalloc(size_t size); atic void *xrealloc(void *ptr, size_t size); atic char *readline(char *prompt); atic void read_single_quote(char ** cur, char ** cur_buf); atic void read_double_quote(char ** cur, char ** cur_buf); atic char **split_in_words(char *line); atic void freeseq(c...
b4cab62913d141d969e0b87d0daaf453add4b8cc862077aa8453e948539a279f
417
ApisSys
linux-analogdevicesinc-ap6
ECE695-Spring17/t3-scheduler/linux-4.10.6/drivers/rtc/rtc-tegra.c
tegra_rtc_probe
static int __init tegra_rtc_probe(struct platform_device *pdev) { struct tegra_rtc_info *info; struct resource *res; int ret; info = devm_kzalloc(&pdev->dev, sizeof(struct tegra_rtc_info), GFP_KERNEL); if (!info) return -ENOMEM; res = platform_get_resource(pdev, IORESOURCE_MEM, 0); info->rtc_base = devm_i...
static inline u32 tegra_rtc_check_busy(struct tegra_rtc_info *info); static int tegra_rtc_wait_while_busy(struct device *dev); static int tegra_rtc_read_time(struct device *dev, struct rtc_time *tm); static int tegra_rtc_set_time(struct device *dev, struct rtc_time *tm); static int tegra_rtc_read_alarm(struct devi...
b34820ee006332a1c6e20e50b415be458488699fd402f61d95a88169dd3143ac
1,434
pedia
moosefs
mfsmaster/filesystem.c
fs_loadnode
int fs_loadnode(FILE *fd) { uint8_t unodebuff[4+1+2+4+4+4+4+4+4+8+4+2+8*MAX_CHUNKS_PER_FILE+4*65536+4]; const uint8_t *ptr; uint8_t type; uint32_t indx,pleng,ch,sessionids,sessionid; fsnode *p; sessionidrec *sessionidptr; uint32_t nodepos; #ifndef METARESTORE statsrecord *sr; #endif type = fgetc(fd); if (ty...
void fs_stats(uint32_t stats[16]); static inline freenode* freenode_malloc(); static inline void freenode_free(freenode *p); static inline freenode* freenode_malloc(); static inline void freenode_free(freenode* p); static inline sessionidrec* sessionidrec_malloc(); static inline void sessionidrec_free(sessionidr...
41ffb56c3e6daf46c18d6284c0b789b667842615f628aba9ec00b0204ffdc702
3,577
ialexyi
ATE
DRIVERs__PowerSupply__Lambda_Gen/GenPSie.c
GenPSie_selfTest
ViStatus _VI_FUNC GenPSie_selfTest (ViSession instrSession, ViPInt16 testResult, ViChar _VI_FAR testMessage[]) { ViStatus GenPSie_status = VI_SUCCESS; ViChar retStr [BUFFER_SIZE]; ViUInt32 retCnt; G...
ViStatus _VI_FUNC GenPSie_sendCmd (ViSession instrSession, ViString cmdString); ViStatus _VI_FUNC GenPSie_close (ViSession instrSession); ViStatus _VI_FUNC GenPSie_setOvpMaxLevel (ViSession instrSession); ViStatus _VI_FUNC GenPSie_reset (ViSession instrSession); ViStatus _VI_FUNC GenPSie_saveSettings (ViSession in...
1296c6f6351d80ea37a61baacfff2b7b96b9a3c444b771febf44c848e41aa362
721
Rajesh-Sec-Project
simon
hard.d/leds_board/soft/drivers/src_peripherals/stm32f10x_tim.c
TIM_SetIC1Prescaler
void TIM_SetIC1Prescaler(TIM_TypeDef* TIMx, uint16_t TIM_ICPSC) { assert_param(IS_TIM_LIST8_PERIPH(TIMx)); assert_param(IS_TIM_IC_PRESCALER(TIM_ICPSC)); TIMx->CCMR1 &= (uint16_t) ~((uint16_t)TIM_CCMR1_IC1PSC); TIMx->CCMR1 |= TIM_ICPSC; }
void TIM_DeInit(TIM_TypeDef* TIMx); void TIM_TimeBaseInit(TIM_TypeDef* TIMx, TIM_TimeBaseInitTypeDef* TIM_TimeBaseInitStruct); void TIM_OC1Init(TIM_TypeDef* TIMx, TIM_OCInitTypeDef* TIM_OCInitStruct); void TIM_OC2Init(TIM_TypeDef* TIMx, TIM_OCInitTypeDef* TIM_OCInitStruct); void TIM_OC3Init(TIM_TypeDef* TIMx, TIM_...
0ed82c58a9a510bf4a3f5c49d1e90cb56779aba96e047a0f5b9ebb119e0a0d81
272
wayling
xboot-clone
src/arch/arm/mach-mid560/driver/s3c6410-mmc.c
ClearCommandCompleteStatus
static void ClearCommandCompleteStatus(void) { writew(S3C6410_HM_NORINTSTS1, 1 << 0); while (readw(S3C6410_HM_NORINTSTS1) & 0x1) { writew(S3C6410_HM_NORINTSTS1, 1 << 0); } }
static void set_cmd_register (u16_t cmd, u32_t data, u32_t flags); static int wait_for_cmd_done (void); static void ClearErrInterruptStatus(void); static void InterruptEnable(u16_t NormalIntEn, u16_t ErrorIntEn); static void set_hostctl_speed (u8_t mode); static void hsmmc_clock_onoff(bool_t on); static void set...
53583daeff6b093b0ed9bc3cefe4db9a8130578e115bcbef5a066332c4c9630e
179
Cabalist
Mycodo
2.0/mycodo/source/mycodo-1.7.c
CheckTemp
int CheckTemp (void) { if ( temp < minTemp ) { tempState = 1; printf("< minTemp. Heat On."); } else if ( temp >= minTemp && temp < maxTemp) { tempState = 2; printf(">= minTemp. Heat off until < minTemp."); } else if ( temp >= highTemp ) { tempState = 3; printf("> highTemp. Heat Off, All fans On.")...
int main( int argc, char *argv[] ); int readCfg (void); int writeCfg (void); int CheckHum (void); int ChangeRelays (double tdiff, double hdiff);
8b3001cdcb5f48ed486f17d70b7ad2bb2e546a98b833f352f9aedcdde10241bd
477
dduval
kernel-rhel4
drivers/xen/xenbus/xenbus_probe.c
exists_disconnected_device
static int exists_disconnected_device(struct device_driver *drv) { if (xenbus_frontend.error) return xenbus_frontend.error; return bus_for_each_dev(&xenbus_frontend.bus, NULL, drv, is_disconnected_device); }
static int xenbus_match(struct device *_dev, struct device_driver *_drv); static int frontend_bus_id(char bus_id[BUS_ID_SIZE], const char *nodename); static void free_otherend_details(struct xenbus_device *dev); static void free_otherend_watch(struct xenbus_device *dev); static int read_backend_details(struct xenb...
a9d477ab392f8d1bd3586ea11e83c3b689c7706f7079d7533a48e69f9d8a5973
237
jcmcclurg
serverpower
unused/transcoders/libav-11.4/libavcodec/libgsmenc.c
libgsm_encode_init
static av_cold int libgsm_encode_init(AVCodecContext *avctx) { if (avctx->channels > 1) { av_log(avctx, AV_LOG_ERROR, "Mono required for GSM, got %d channels\n", avctx->channels); return -1; } if (avctx->sample_rate != 8000) { av_log(avctx, AV_LOG_ERROR, "Sample rate...
static av_cold int libgsm_encode_close(AVCodecContext *avctx);
4280c5bd0493b2b452c9609a1f589132f4488b48773014755ac124966d6b0fc3
1,257
Denshikobo-Life
bcmlib_for_java
common/bi_common.c
dump_buff
void dump_buff(void) { int i; printf("pid=%d ",pid); printf("w_buff=%08x wp=%d rp=%d \n",w_buff,w_buff->wp,w_buff->rp); printf("r_buff=%08x wp=%d rp=%d \n",r_buff,r_buff->wp,r_buff->rp); for( i=0;i<wp;i++) { printf("%02x ",buff[i]); } printf(" \n"); }
int calc_data_size( struct ring_buff *rb); int calc_rest_size( struct ring_buff *rb); int put_ring_buff(struct ring_buff *rb, char *str, int len ); int get_ring_buff(struct ring_buff *rb, char *buff, int max_len); void init_ring_buff(struct ring_buff *rb, int init_type); void set_ope_code( unsigned char ope_code)...
4325995241b02a6400c685184af2d677efbf547f8ce2868fd7d60ca92e5b2c82
291
scs
uclinux
user/blkfin-apps/vlc/vlc-0.8.6b/src/playlist/playlist.c
playlist_PreparseEnqueueItem
int playlist_PreparseEnqueueItem( playlist_t *p_playlist, playlist_item_t *p_item ) { vlc_mutex_lock( &p_playlist->object_lock ); vlc_mutex_lock( &p_playlist->p_preparse->object_lock ); playlist_PreparseEnqueueItemSub( p_playlist, p_item ); vlc_mutex_unlock( &p_playlist...
playlist_item_t *playlist_RecursiveFindLast(playlist_t *p_playlist, playlist_item_t *p_node ); playlist_t * __playlist_Create ( vlc_object_t *p_parent ); int playlist_Destroy( playlist_t * p_playlist ); int playlist_LockControl( playlist_t * p_playlist, int i_query, ... ); in...
3ceb705c71b926b097fbe56e6c3d9f13b1ea60ccd4029afccde7c217c990b94c
425
sisuani
iaxclient
lib/libiax2/src/iax.c
iax_enable_jitterbuffer
void iax_enable_jitterbuffer(void) { iax_use_jitterbuffer = 1; }
void iax_enable_debug(void); void iax_disable_debug(void); void iax_disable_jitterbuffer(void); void iax_set_private(struct iax_session *s, void *ptr); void *iax_get_private(struct iax_session *s); void iax_set_sendto(struct iax_session *s, iax_sendto_t ptr); static int __debug(const char *file, int lineno, cons...
e1572771bbda6c49fdb68524da23c6bcde97e66275a14b7918cbeb6b9227691d
66
danielgpalmer
linux-picosam9g45
sound/usb/pcm.c
snd_usb_pcm_pointer
static snd_pcm_uframes_t snd_usb_pcm_pointer(struct snd_pcm_substream *substream) { struct snd_usb_substream *subs; unsigned int hwptr_done; subs = (struct snd_usb_substream *)substream->runtime->private_data; spin_lock(&subs->lock); hwptr_done = subs->hwptr_done; substream->runtime->delay = snd_usb_pcm_delay(s...
static int start_endpoints(struct snd_usb_substream *subs); static int activate_endpoints(struct snd_usb_substream *subs); static int deactivate_endpoints(struct snd_usb_substream *subs); static int set_format(struct snd_usb_substream *subs, struct audioformat *fmt); static int snd_usb_hw_free(struct snd_pcm_subst...
d0d80838d7dd0be7f246633816aa1af2fc9776908f2e95cd30ccb651e2503b3c
446
bogus
mydlp-host-win32
libclamav/scanners.c
cli_scanmschm
static int cli_scanmschm(int desc, cli_ctx *ctx) { int ret = CL_CLEAN, rc; chm_metadata_t metadata; char *dir; cli_dbgmsg("in cli_scanmschm()\n"); if(!(dir = cli_gentemp(ctx->engine->tmpdir))) return CL_EMEM; if(mkdir(dir, 0700)) { cli_dbgmsg("CHM: Can't create temporary directory %s\n", dir...
static int cli_unrar_scanmetadata(int desc, unrar_metadata_t *metadata, cli_ctx *ctx, unsigned int files, uint32_t* sfx_check); static int cli_scanrar(int desc, cli_ctx *ctx, off_t sfx_offset, uint32_t *sfx_check); static int cli_scanarj(int desc, cli_ctx *ctx, off_t sfx_offset, uint32_t *sfx_check); static int cli...
8991e47ed1d6d67c38b212f6570940197b51f710ab0dfede1453024dc06cf404
1,209
execunix
vinos
gnu/dist/diffutils/src/context.c
void print_context_header
void print_context_header (struct file_data inf[], bool unidiff) { if (unidiff) { print_context_label ("---", &inf[0], file_label[0]); print_context_label ("+++", &inf[1], file_label[1]); } else { print_context_label ("***", &inf[0], file_label[0]); print_context_label ("---", &...
55e2ab3ec5a26df9c8e325374fc390d63b81a7a129c349c0a29f9db5d5d5e4db
351
Alex-V2
One_M8_4.4.3_kernel
drivers/media/platform/msm/camera_v2/sensor/actuator/LC898111/OisCmd.c
; if
UnDwdVal StTneVal, unsigned char UcTneAxs ) { long SlSetBia ; unsigned short UsSetBia ; unsigned char UcChkFst ; static unsigned short UsTneVax ; UcChkFst = 1 ; if ( UsStpSiz == 1) { UsTneVax = 2 ; if ( ( StTneVal.StDwdVal.UsHigVal + StTneVal.StDwdVal.UsLowVal ) / 2 < BIAS_ADJ_BORDER ) { ...
unsigned short TneRun( void ); unsigned long TnePtp ( unsigned char UcDirSel, unsigned char UcBfrAft ); unsigned char UcTneAxs, UnDwdVal StTneVal ); UnDwdVal StTneVal, unsigned char UcTneAxs ); char UcMesMod ); char UcDirSel, unsigned char UcSwcCon ); unsigned char UcDirSel ); char UcDirSel ); char UcDirSel );...
7c8b50bb0ec6df1d1e22b183b68eb8d1a36b6eb27d4efa34bd02deb6bcee31e3
1,809
ryo-on
vmkdrivers-gpl
vmkdrivers/src_9/drivers/net/nx_nic/unm_nic_main.c
vlan_accel_setup
static void vlan_accel_setup(struct unm_adapter_s *adapter, struct net_device *netdev) { if (adapter->ahw.fw_capabilities_1 & NX_FW_CAPABILITY_FVLANTX) { netdev->features |= NETIF_F_HW_VLAN_RX; netdev->vlan_rx_register = nx_vlan_rx_register; netdev->vlan_rx_kill_vid = nx_rx_kill_vid; netdev->features |= N...
U32 nx_os_free_mem(nx_dev_handle_t handle, void *addr, U32 len, U32 flags); void nx_os_nic_reg_read_w0(nx_dev_handle_t handle, U32 index, U32 * value); void nx_os_nic_reg_write_w0(nx_dev_handle_t handle, U32 index, U32 value); void nx_os_nic_reg_read_w1(nx_dev_handle_t handle, U64 off, U32 * value); void nx_os_nic...
4b8a64253163608e08eb3e5406dfb0da0c65850fa762913e6e98a9ae22598411
413
DmitryADP
diff_qc750
vendor/nvidia/tegra/multimedia-partner/nvmm/nvmm/blocks/super_parser/parser_core/ogg/nvmm_oggframing.c
NvOggSyncPageseek
NvS32 NvOggSyncPageseek(ogg_sync_state *oy,ogg_page *og){ NvOggByteBuffer page; NvS32 bytes,ret=0; NvOggPageRelease(og); bytes=oy->fifo_fill; NvOggbyteInit(&page,oy->fifo_tail); if(oy->headerbytes==0){ if(bytes<27)goto sync_out; if(NvOggbyteRead1(&page,0)!=(NvS32)'O' || ...
static ogg_buffer_state *NvOggBufferCreate(void); void NvOggBufferDestroy(ogg_buffer_state *bs); ogg_buffer *NvFetchBuffer(ogg_buffer_state *bs,NvS32 bytes); ogg_reference *NvFetchRef(ogg_buffer_state *bs); ogg_reference *NvOggBufferAlloc(ogg_buffer_state *bs,NvS32 bytes); void NvOggBufferRealloc(ogg_reference *o...
5d1e012bc925f1dd457c430b001260c69504b0540cb8bfc8a9241d4aa024c29a
2,236
JianpingZeng
xcc
samples/Juliet/testcases/CWE321_Hard_Coded_Cryptographic_Key/CWE321_Hard_Coded_Cryptographic_Key__w32_char_53d.c
CWE321_Hard_Coded_Cryptographic_Key__w32_char_53d_goodG2BSink
void CWE321_Hard_Coded_Cryptographic_Key__w32_char_53d_goodG2BSink(char * cryptoKey) { { HCRYPTPROV hCryptProv; HCRYPTKEY hKey; HCRYPTHASH hHash; char toBeEncrypted[] = "String to be encrypted"; DWORD encryptedLen = strlen(toBeEncrypted)*sizeof(char); BYTE en...
void CWE321_Hard_Coded_Cryptographic_Key__w32_char_53d_badSink(char * cryptoKey);
27139bf8b4b60dd2ad987ee2a9389ce6f5f6cbd40fca5a0ea1922d2604da502a
1,854
yzfcer
wind_os
src/core/wind_mutex.c
rent
rent(); if (!IS_F_MUTEX_LOCKED(mutex)) { SET_F_MUTEX_LOCKED(mutex); mutex->nest ++; mutex->owner = wind_thread_current(); wind_enable_switch(); return W_ERR_OK; } if(thread == mutex->owner) { if(mutex->nest < 65535) mutex->ne...
w_err_t mutex_free(void *mutex); nit(void); ol,sizeof(mutexpool); init(w_mutex_s *mutex,const char *name); NULL,W_NULL); itch(); RN(err == W_ERR_OK, W_ERR_FAIL); ); nd_enable_switch();
82b09a48747cfc25e06c5067c6575f51719b02fd86ee7744581bae96b3a1613a
941
HarryR
ZeroDB
bench/db-bench.c
void db_test_pseudorandom
static void db_test_pseudorandom( benchmark_t* b ) { assert(b != NULL); run_test_rwmix(b, b->entries, bop_read_pseudorand, bop_write_pseudorand); }
DB_OP(count_value);
c9b46888075f7cba7dae7e003eb75afd9f4739c22bd1b402e729f3ff5622f530
150
Blackburn29
PsycoKernel
drivers/mfd/wm8350-core.c
wm8350_phys_read
static int wm8350_phys_read(struct wm8350 *wm8350, u8 reg, int num_regs, u16 *dest) { int i, ret; int bytes = num_regs * 2; dev_dbg(wm8350->dev, "volatile read\n"); ret = wm8350->read_dev(wm8350, reg, bytes, (char *)dest); for (i = reg; i < reg + num_regs; i++) { dest[i - reg] = be16_to_cpu(dest[i -...
static int wm8350_read(struct wm8350 *wm8350, u8 reg, int num_regs, u16 *dest); static inline int is_reg_locked(struct wm8350 *wm8350, u8 reg); static int wm8350_write(struct wm8350 *wm8350, u8 reg, int num_regs, u16 *src); int wm8350_clear_bits(struct wm8350 *wm8350, u16 reg, u16 mask); int wm8350_set_bits(struct...
92875f24e69eac5ec43e6dbaf50cb343dd89ce77deaaac94774962999d2c0df9
424
CEG-ICRISAT
Raspberry
c/htslib-1.2.1/cram/cram_io.c
cram_uncompress_block
int cram_uncompress_block(cram_block *b) { char *uncomp; size_t uncomp_size = 0; if (b->uncomp_size == 0) { b->method = RAW; return 0; } switch (b->method) { case RAW: return 0; case GZIP: uncomp = zlib_mem_inflate((char *)b->data, b->comp_size, &uncomp_size); if (!uncomp) r...
int itf8_decode(cram_fd *fd, int32_t *val_p); int itf8_encode(cram_fd *fd, int32_t val); int itf8_get(char *cp, int32_t *val_p); int itf8_put(char *cp, int32_t val); int ltf8_put(char *cp, int64_t val); int ltf8_get(char *cp, int64_t *val_p); int ltf8_decode(cram_fd *fd, int64_t *val_p); int itf8_put_blk(cram_b...
542d30d1da9f411279d4e9bf0a699250efd0db01ae47d3ee5851de72ed7adfa2
1,866
AndreyPopovNew
asuswrt-merlin-rt-n
linux-2.6.22.19-cs543/scripts/mod/sumversion.c
cpu_to_le32_array
static inline void cpu_to_le32_array(uint32_t *buf, unsigned int words) { while (words--) { *buf = htonl(*buf); buf++; } }
static inline uint32_t lshift(uint32_t x, unsigned int s); static inline uint32_t F(uint32_t x, uint32_t y, uint32_t z); static inline uint32_t G(uint32_t x, uint32_t y, uint32_t z); static inline uint32_t H(uint32_t x, uint32_t y, uint32_t z); static inline void le32_to_cpu_array(uint32_t *buf, unsigned int words...
8020fda37fb37cf8a1f01961b0e20ba7801a15990c01da6fd24126e09d11b6a6
129
matthiasbeyer
linux
drivers/mtd/nand/raw/omap2.c
omap_hwcontrol
atic void omap_hwcontrol(struct nand_chip *chip, int cmd, unsigned int ctrl) { struct omap_nand_info *info = mtd_to_omap(nand_to_mtd(chip)); if (cmd != NAND_CMD_NONE) { if (ctrl & NAND_CLE) writeb(cmd, info->reg.gpmc_nand_command); else if (ctrl & NAND_ALE) writeb(cmd, info->reg.gpmc_nand_address); els...
atic inline struct omap_nand_info *mtd_to_omap(struct mtd_info *mtd); atic int omap_prefetch_enable(int cs, int fifo_th, int dma_mode, unsigned int u32_count, int is_write, struct omap_nand_info *info); atic int omap_prefetch_reset(int cs, struct omap_nand_info *info); atic void omap_read_buf8(struct mtd_info *mtd, u_...
09354f928f23f6de5396c1f42100200a9388c23223192cae3cadac69f7831926
373
SNDBXIE
myway-eathena
src/map/battle.c
battle_getenemy
struct block_list* battle_getenemy(struct block_list *target, int type, int range) { struct block_list *bl_list[24]; int c = 0; memset(bl_list, 0, sizeof(bl_list)); map_foreachinrange(battle_getenemy_sub, target, range, type, bl_list, &c, target); if ( c == 0 ) return NULL; if( c > 24 ) c = 24;...
int battle_getcurrentskill(struct block_list *bl); static int battle_gettargeted_sub(struct block_list *bl, va_list ap); struct block_list* battle_gettargeted(struct block_list *target); int battle_gettarget(struct block_list* bl); static int battle_getenemy_sub(struct block_list *bl, va_list ap); static int batt...
fed3bbcafd7aed8508d8714f4c6c38c2cf3fc0093c4b6402755df468145f4b56
352
GeneAssembly
biosal
engine/thorium/actor.c
thorium_actor_receive_synchronize
static void thorium_actor_receive_synchronize(struct thorium_actor *self, struct thorium_message *message) { #ifdef THORIUM_ACTOR_DEBUG printf("DEBUG56 replying to %i with THORIUM_ACTOR_PRIVATE_SYNCHRONIZE_REPLY\n", thorium_message_source(message)); #endif thorium_message_...
void thorium_actor_destroy(struct thorium_actor *self); int thorium_actor_name(struct thorium_actor *self); thorium_actor_receive_fn_t thorium_actor_get_receive(struct thorium_actor *self); void thorium_actor_set_name(struct thorium_actor *self, int name); void thorium_actor_print(struct thorium_actor *self); tho...
bf56204ab1a95744357c04d0c23b5f65c9f8547c344bc44241c912ff75bb5416
482
angeld29
TF2003-qvm
tools/q3lcc/src/trace.c
tracereturn
static void tracereturn(Symbol printer, Symbol f, Tree e) { appendstr(f->name); appendstr("#"); tracevalue(idtree(frameno), 0); appendstr(" returned"); if (freturn(f->type) != voidtype && e) { appendstr(" "); tracevalue(e, 0); } appendstr("\n"); tracefinis(printer); }
static void appendstr(char *str); static void tracevalue(Tree e, int lev); static void tracefinis(Symbol printer); static void tracecall(Symbol printer, Symbol f, void *ignore); void traceInit(char *arg);
b7418de50fe4e02adb2107d95d5df54c3a14914a2a7753217befcd36c2be65c0
280
cbuehler
gwyddion
modules/file/gxyzffile.c
gboolean gxyzf_export_dialog
static gboolean gxyzf_export_dialog(GXYZExportArgs *args, GwyAppPage pageno, const gchar *title) { GtkWidget *dialog, *vbox, *label, *all_channels; gchar *desc = NULL; gint response; dialog = gtk_dialog_new_with_buttons(_("Export GXYZF"), NULL, 0, ...
GWY_MODULE_QUERY(module_info); static inline void append_double(gdouble *target, const gdouble v);
1265829aba984d2ada1e3c3cb99aa1fd70e72d9899b16108c084023828f3bd0b
2,111
CAAkshay
iOS-MAS-Foundation
Example/Pods/MQTTKit/libmosquitto/send_mosq.c
_mosquitto_send_publish
int _mosquitto_send_publish(struct mosquitto *mosq, uint16_t mid, const char *topic, uint32_t payloadlen, const void *payload, int qos, bool retain, bool dup) { #ifdef WITH_BROKER size_t len; #ifdef WITH_BRIDGE int i; struct _mqtt3_bridge_topic *cur_topic; bool match; int rc; char *mapped_topic = NULL; char *to...
int _mosquitto_send_pingreq(struct mosquitto *mosq); int _mosquitto_send_pingresp(struct mosquitto *mosq); int _mosquitto_send_puback(struct mosquitto *mosq, uint16_t mid); int _mosquitto_send_pubcomp(struct mosquitto *mosq, uint16_t mid); int _mosquitto_send_pubrec(struct mosquitto *mosq, uint16_t mid); int _mos...
d4b931c87eb5e0b7de366f45edc20ded1e2346d4e06ee0119a87ff5310b4b177
2,875
hefen1
chromium
third_party/openssl/openssl/ssl/s3_pkt.c
do_ssl3_write
static int do_ssl3_write(SSL *s, int type, const unsigned char *buf, unsigned int len, int create_empty_fragment) { unsigned char *p,*plen; int i,mac_size,clear=0; int prefix_len=0; int eivlen; long align=0; SSL3_RECORD *wr; SSL3_BUFFER *wb=&(s->s3->wbuf); SSL_SESSION *sess; if (wb->left != 0) ret...
int ssl3_read_n(SSL *s, int n, int max, int extend); static int ssl3_get_record(SSL *s); int ssl3_do_uncompress(SSL *ssl); int ssl3_do_compress(SSL *ssl); int ssl3_write_bytes(SSL *s, int type, const void *buf_, int len); int ssl3_read_bytes(SSL *s, int type, unsigned char *buf, int len, int peek); int ssl3_do_c...
935d92481a9b7a7a1379218b517c02c4c81d70d0e351f8231f039d008b676bdf
3,522
dimkr
xchat
src/fe-gtk/maingui.c
void tree_select_row
static void tree_select_row (GtkWidget * tree, GList * row) { struct tree_data *td; struct session *sess = NULL; struct server *serv = NULL; td = ((struct tree_data *) ((GtkCListRow *) row->data)->data); if (!td) return; if (td->type == TREE_SESSION) { sess = td->data; if (sess->is_tab) { if (main_w...
feb88f0286cf0eb62c22860e76ab0108ed050747ff4686ad21476ad891894b7d
832
CapOM
gst-plugins-bad
ext/ladspa/gstladspasink.c
void ladspa_register_sink_element
void ladspa_register_sink_element (GstPlugin * plugin, GstStructure * ladspa_meta) { GTypeInfo info = { sizeof (GstLADSPASinkClass), (GBaseInitFunc) gst_ladspa_sink_type_base_init, (GBaseFinalizeFunc) gst_ladspa_sink_type_base_finalize, (GClassInitFunc) gst_ladspa_sink_type_class_init, NULL, N...
static gboolean gst_ladspa_sink_type_set_caps (GstBaseSink * base, GstCaps * caps); static gboolean gst_ladspa_sink_type_query (GstBaseSink * base, GstQuery * query); static GstFlowReturn gst_ladspa_sink_type_preroll (GstBaseSink * base, GstBuffer * buffer); static GstFlowReturn gst_ladspa_sink_type_render (GstBaseSink...
ab4a88f919ebd4f4702204c7fefe79b4d2394a06ef10552a823cddfa9553355d
505
briansorahan
libchuck
src/util_sndfile.c
gsm_mult
word gsm_mult ( word a, word b) { if (a == MIN_WORD && b == MIN_WORD) return MAX_WORD; return SASR_L( (longword)a * (longword)b, 15 ); }
word gsm_add ( word a, word b); word gsm_sub ( word a, word b); word gsm_mult_r ( word a, word b); word gsm_abs (word a); longword gsm_L_mult (word a, word b); longword gsm_L_add ( longword a, longword b); longword gsm_L_sub ( longword a, longword b); word gsm_norm (longword a ); longword gsm_L_asl (longword a...
ff985cfe4c01c1fa59ce9c0a6fd5a9c74b42a7bab1243ed0444e2e35e77138de
143
EwoudSmeur
paparazzi
sw/airborne/modules/imu/imu_mpu60x0_i2c.c
imu_mpu_i2c_event
void imu_mpu_i2c_event(void) { uint32_t now_ts = get_sys_time_usec(); mpu60x0_i2c_event(&imu_mpu_i2c.mpu); if (imu_mpu_i2c.mpu.data_available) { RATES_COPY(imu.gyro_unscaled, imu_mpu_i2c.mpu.data_rates.rates); VECT3_COPY(imu.accel_unscaled, imu_mpu_i2c.mpu.data_accel.vect); imu_mpu_i2c.mpu.data_...
void imu_mpu_i2c_init(void); void imu_mpu_i2c_periodic(void);
414285dfa3772c1f2baa8c1cd313d21dbcd4084f35030855c4ad6c7dc6cbf581
529
MasayukiNagase
samples
AllJoyn/Samples/BACnetAdapter/bacnet-stack-0.8.2/ports/atmega8/bv.c
Binary_Value_Present_Value
static BACNET_BINARY_PV Binary_Value_Present_Value( uint32_t object_instance) { BACNET_BINARY_PV value = BINARY_INACTIVE; if (object_instance < MAX_BINARY_VALUES) { value = Present_Value[object_instance]; } return value; }
1c1cfe46fe635c38a39b8b9839ecf1463375226ad503ef95a254440629181b84
253
xiandaicxsj
copyKvm
drivers/video/sis/init301.c
BOOLEAN SiS_IsTVOrYPbPrOrScart
static BOOLEAN SiS_IsTVOrYPbPrOrScart(struct SiS_Private *SiS_Pr) { unsigned short flag; if(SiS_Pr->ChipType >= SIS_315H) { flag = SiS_GetReg(SiS_Pr->SiS_P3d4,0x30); if(flag & SetCRT2ToTV) return TRUE; flag = SiS_GetReg(SiS_Pr->SiS_P3d4,0x38); if(flag & EnableCHYPbPr) return ...
5b521e412eee6cc99bfd5ca72c1628053854585df83c32e16e52cb9e0dd529e5
513
BHSPitMonkey
linwizard-strtrk
drivers/usb/serial/digi_acceleport.c
cond_wait_interruptible_timeout_irqrestore
static long cond_wait_interruptible_timeout_irqrestore( wait_queue_head_t *q, long timeout, spinlock_t *lock, unsigned long flags) { DEFINE_WAIT(wait); prepare_to_wait(q, &wait, TASK_INTERRUPTIBLE); spin_unlock_irqrestore(lock, flags); timeout = schedule_timeout(timeout); finish_wait(q, &wait); return timeou...
static void digi_wakeup_write_lock(struct work_struct *work); static void digi_wakeup_write(struct usb_serial_port *port); static void digi_rx_throttle(struct usb_serial_port *port); static void digi_rx_unthrottle(struct usb_serial_port *port); static void digi_break_ctl(struct usb_serial_port *port, int break_sta...
49f2a9c970ec462c11d2ce91bbf9b2cad028789ad10e07d4472dae14e6023f43
324
justlostintime
gambas
main/gbx/gbx_signal.c
*add_handler
static SIGNAL_HANDLER *add_handler(void) { if (!_handlers) ARRAY_create_inc(&_handlers, 1); return ARRAY_add_void(&_handlers); }
void SIGNAL_install(SIGNAL_HANDLER *handler, int signum, void (*callback); void SIGNAL_uninstall(SIGNAL_HANDLER *handler, int signum); void SIGNAL_previous(SIGNAL_HANDLER *handler, int signum, siginfo_t *info, void *context); static SIGNAL_HANDLER *find_handler(int signum); static void handle_signal(int signum, siginfo...
2c4b62c135b3b1837143127a7775919d2378f9716b8ee3f2f9f221c8f135e015
135
taeguk
OS-pintos
lib_hw1_taeguk/hash.c
void insert_elem
static void insert_elem (struct hash *h, struct list *bucket, struct hash_elem *e) { h->elem_cnt++; list_push_front (bucket, &e->list_elem); }
280cfc5127a1a41f9bcf69311350e446b767bc217f9fb6bf1018658387edd217
148
Peanhua
diamond-girl
src/gfx_image.c
gfx_image_treasure
truct image * gfx_image_treasure(struct treasure * treasure, bool greyscale) { struct image * image; image = NULL; assert(treasure_images != NULL); for(unsigned int i = 0; image == NULL && i < treasure_images->size; i++) { struct treasure_image * ti; ti = treasure_images->data[i]; if(ti-...
ool gfx_image_initialize(void); oid gfx_image_cleanup(void); truct image * gfx_image(enum GFX_IMAGE image_id); truct td_object * gfx_td_object_treasure(struct treasure * treasure);
a19e06e0b289e0c9b6663a89e02192641eeea83ac176dba8fd5cdb5c0c750edd
1,938
ZFine0
kernel_3.4.49
viatelecom/kernel/drivers/audio/cad5000.c
cad5000_driver_exit
static void __exit cad5000_driver_exit(void) { i2c_del_driver(&cad5000_i2c_driver); }
static void cad5000_apll1_enable(struct snd_soc_codec *codec, int enable); static void cad5000_apll2_enable(struct snd_soc_codec *codec, int enable); static inline int get_rate_tbl_idx(int rate); static int cad5000_mute(struct snd_soc_dai *dai, int mute); unsigned int cad5000_clk_i2c_read(struct snd_soc_codec *cod...
53a42659bef57d32ab9b862006e5fd22d66b733722bedc26d01f87f60d3f8f19
90
fabianfreyer
libvirt
src/util/virresctrl.c
int virResctrlLockWrite
static int virResctrlLockWrite(void) { int fd = open(SYSFS_RESCTRL_PATH, O_RDWR | O_CLOEXEC); if (fd < 0) { virReportSystemError(errno, "%s", _("Cannot open resctrl")); return -1; } if (virFileFlock(fd, true, true) < 0) { virReportSystemError(errno, "%s", _("Cannot lock resctr...
c001425a9301de4bb6d480618003577e90b438a6909bb1e0bb907ee4a8ce4783
397
mishamehra
claws-mail
src/plugins/vcalendar/libical/libical/icalderivedproperty.c
icalproperty_new_url
icalproperty* icalproperty_new_url(const char* v) { struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_URL_PROPERTY); icalerror_check_arg_rz( (v!=0),"v"); icalproperty_set_url((icalproperty*)impl,v); return (icalproperty*)impl; }
const char* icalproperty_kind_to_string(icalproperty_kind kind); icalproperty_kind icalproperty_string_to_kind(const char* string); icalvalue_kind icalproperty_value_kind_to_kind(icalvalue_kind kind); icalvalue_kind icalproperty_kind_to_value_kind(icalproperty_kind kind); const char* icalproperty_enum_to_string(in...
e5d9b6655e89c52fba0e06eefb5203a36a123e8702e59bbf2d995b67f2314a09
251
wireshark
wireshark
epan/dissectors/packet-qsig.c
dissect_qsig_sd_KeypadArg_PDU
static int dissect_qsig_sd_KeypadArg_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) { int offset = 0; asn1_ctx_t asn1_ctx; asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); offset = dissect_qsig_sd_KeypadArg(FALSE, tvb, offset, &asn1_ctx, tree, hf_qsig_sd_qsig_sd_Keypad...
static int dissect_qsig_na_NameArg_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_); static int dissect_qsig_cf_ARG_activateDiversionQ_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_); static int dissect_qsig_cf_RES_activateDiversionQ_PDU(tvbuff...
8b3a107eb686a6220e1149f6626f9388e67229557d527d8dd493070abd868c2e
348
nfont
librtas
librtasevent_src/rtas_post.c
print_re_post_scn
int print_re_post_scn(struct scn_header *shdr, int verbosity) { struct rtas_post_scn *post = (struct rtas_post_scn *)shdr; int len = 0; if (shdr->scn_id != RTAS_POST_SCN) { errno = EFAULT; return 0; } len += print_scn_title("Power-On Self Test Section"); if (post->devname...
9d0e287587a2dc699e4e7309b0618c70e23333e058445f6053c05efe4f649045
1,718
spinlock
ucore
x86_64/lab5_mutexsync/proj15/kern/process/proc.c
* alloc_proc
static struct proc_struct * alloc_proc(void) { struct proc_struct *proc = kmalloc(sizeof(struct proc_struct)); if (proc != NULL) { proc->state = PROC_UNINIT; proc->pid = -1; proc->runs = 0; proc->kstack = 0; proc->need_resched = 0; proc->parent = NULL; pr...
6c1bccb0593c118616ba5c266b260a3a1a6cbaeb284a9e00fce76c8f269a5152
840
01org
Igvtg-kernel
3.10/arch/cris/arch-v32/kernel/kgdb.c
* mem2hex
static char * mem2hex(char *buf, unsigned char *mem, int count) { int i; int ch; if (mem == NULL) { for (i = 0; i < count; i++) { *buf++ = '0'; *buf++ = '0'; } } else { for (i = 0; i < count; i++)...
int insn_size(unsigned long pc); void register_fixup(int sigval); static void insert_watchpoint(char type, int addr, int len); static void remove_watchpoint(char type, int addr, int len);
809fd6f11b28984218a2b80b6e53e2a2401aed20c77d8a6d6feaa1d9afff401a
424
Fe-Pi
linux
drivers/media/i2c/tvp5150.c
tvp5150_write
static int tvp5150_write(struct v4l2_subdev *sd, unsigned char addr, unsigned char value) { struct i2c_client *c = v4l2_get_subdevdata(sd); int rc; dev_dbg_lvl(sd->dev, 2, debug, "tvp5150: writing %02x %02x\n", addr, value); rc = i2c_smbus_write_byte_data(c, addr, value); if (rc < 0) dev_err(sd->dev, "i2c...
static inline struct tvp5150 *to_tvp5150(struct v4l2_subdev *sd); static inline struct v4l2_subdev *to_sd(struct v4l2_ctrl *ctrl); static int tvp5150_read(struct v4l2_subdev *sd, unsigned char addr); static int tvp5150_log_status(struct v4l2_subdev *sd); static void tvp5150_selmux(struct v4l2_subdev *sd); static ...
c3b2145d5340ccb38d225303bc5a55d154aa84caf7b8a5d46cc0ec7da74f14dc
364
JosephMcc
muffin
clutter/clutter/clutter-actor.c
clutter_actor_compute_resource_scale
clutter_actor_compute_resource_scale (ClutterActor *self, float *resource_scale) { graphene_rect_t bounding_rect; ClutterActorPrivate *priv = self->priv; if (CLUTTER_ACTOR_IN_DESTRUCTION (self) || CLUTTER_ACTOR_IN_PREF_SIZE (self) || !clutter_actor_is_map...
gchar * _clutter_actor_get_debug_name (ClutterActor *actor); c inline void clutter_actor_verify_map_state (ClutterActor *self); c void _clutter_actor_pop_pick_clip (ClutterActor *self); c void clutter_actor_real_map (ClutterActor *self); clutter_actor_map (ClutterActor *self); ean clutter_actor_is_mapped (ClutterActor...
b0de38dd07b12ec154807bd7113b3665eb0105ea460ed7f27cd6f2d1b6819610
2,427
00wendi00
MyProject
W_eclipse1_3/ch06.Quake/jni/Quake/world.c
*SV_HullForEntity
hull_t *SV_HullForEntity (edict_t *ent, vec3_t mins, vec3_t maxs, vec3_t offset) { model_t *model; vec3_t size; vec3_t hullmins, hullmaxs; hull_t *hull; if (ent->v.solid == SOLID_BSP) { if (ent->v.movetype != MOVETYPE_PUSH) { ED_Print (ent); Sys_Error ("SOLID_BSP without MOVETYPE_PUSH (%s)", E...
void SV_InitBoxHull (void); hull_t *SV_HullForBox (vec3_t mins, vec3_t maxs); areanode_t *SV_CreateAreaNode (int depth, vec3_t mins, vec3_t maxs); void SV_ClearWorld (void); void SV_UnlinkEdict (edict_t *ent); void SV_TouchLinks ( edict_t *ent, areanode_t *node ); void SV_FindTouchedLeafs (edict_t *ent, mnode_t ...
a4a4396b45200e09b60ce79be031378236cfab7101fff3dd0a2f48c7eb9ce7c6
1,150
siebenmann
liferea-cks
src/db.c
db_item_get_duplicates
GSList * db_item_get_duplicates (const gchar *guid) { GSList *duplicates = NULL; sqlite3_stmt *stmt; gint res; debug_start_measurement (DEBUG_DB); stmt = db_get_statement ("duplicatesFindStmt"); res = sqlite3_bind_text (stmt, 1, guid, -1, SQLITE_TRANSIENT); if (SQLITE_OK != res) g_error ("db_item_get_du...
1c028b7e2e28a23c5f5e60609c6c2c74eb3069230569da7b2533950fab335028
649
Thileen
SECLAB_ECC
seclabec.c
hmp_inv
id hmp_inv(bit_32 *a, bit_32 *c){ short carry; short i; bit_32 *q; bit_32 *u; bit_32 *z; bit_32 *tmp1; bit_32 *tmp11; q = calloc(dp->key_size,sizeof(bit_32)); u = calloc(dp->key_size,sizeof(bit_32)); z = calloc(dp->key_size,sizeof(bit_32)); tmp1 = calloc(dp->key_size,sizeof(bit_32)); tmp11 = cal...
it_16 compareAA(bit_32 *a, bit_32 *b, bit_16 len); it_16 compareAI(bit_32 *a, bit_32 b, bit_16 len); it_16 compareP(point *p, point *q); oid cpArray(bit_32 *tmp, bit_32 *c, bit_16 len); oid cpPoint(point *p, point *q); oid cpPointZ(point *p, point *q); it_16 getMSBPos(bit_32 *a, bit_16 len); it_16 getIthBit(bit_32 *a,b...
4525396ef0d3f391a3e9022d9389c598475dfabb96ebaaa4e92d2c799ef96799
809
dbatyai
jerryscript
jerry-ext/handle-scope/handle-scope.c
jerry_value_t jerryx_handle_scope_add_handle_to
jerry_value_t jerryx_handle_scope_add_handle_to (jerryx_handle_t *handle, jerryx_handle_scope scope) { size_t prelist_handle_count = scope->prelist_handle_count; if (prelist_handle_count < JERRYX_HANDLE_PRELIST_SIZE) { ++scope->prelist_handle_count; jerry_value_t jval = handle->jval; jerry_heap_free ...
9f75fbb95a2b40d263dc82953e93f6c939b5299b601f23caa859fd9e80921500
527
bitthunder-toolchain
newlib
newlib/libc/sys/bt/bt_api.c
*BT_GetThreadTag
void *BT_GetThreadTag(void) { return NULL; }
BT_HANDLE BT_Open(const BT_i8 *name, const BT_i8 *mode, BT_ERROR *pError); BT_ERROR BT_CloseHandle(BT_HANDLE h); void *BT_kMalloc(BT_u32 size); void BT_kFree(void *ptr); void BT_kPrint(const char *fmt); BT_ERROR BT_SetFileDescriptor(BT_u32 n, BT_HANDLE h); BT_HANDLE BT_GetFileDescriptor(BT_u32 n, BT_ERROR *pErro...
7ee00278b1d0fef74213b4d971bafc7ae4f807b68b187a5aefcd03a02ac6f01d
46
puppeh
gcc-6502
gcc/caller-save.c
void init_caller_save
void init_caller_save (void) { rtx addr_reg; int offset; rtx address; int i, j; if (caller_save_initialized_p) return; caller_save_initialized_p = true; CLEAR_HARD_REG_SET (no_caller_save_reg_set); for (i = 0; i < FIRST_PSEUDO_REGISTER; i++) { if (call_used_regs[i] && !T...
ed2e0a308c7f1df93d07569239c753a00300cf635fbba80f5c33d8bc7dba539e
2,044
Dennisbonke
DB-OS
kernel/fs/inode.c
_late_init
static void _late_init(void) { printk("[FS]: Making node /proc/inodes..."); proc_create("/proc/inodes", kobj_lru_proc_read, &_proc_inode_lru_info); printk(" ok\n"); }
static bool _inode_page_initialize(void *obj, void *_id, void *data); static void _inode_page_release(void *obj, void *data); static void _inode_create(void *obj); static void _inode_put(void *obj); static ssize_t _inode_proc_lru_read_entry(void *item, size_t off, size_t len, char *buf); static bool _inode_initia...
c1b0336efa2cf01cb861e906193f330f33603148d404ab632e0031484ff7f0c4
170
tyreld
ppc64-diag
lpd/lp_diag.c
int set_attn_indicator
static int set_attn_indicator(struct loc_code *attn_loc, int new_state) { int rc; int state; rc = get_indicator_state(ATTN_INDICATOR, attn_loc, &state); if (rc || state != new_state) { rc = set_indicator_state(ATTN_INDICATOR, attn_loc, new_state); if (rc) indicator_log_write("System Attention Indicator :"...
void resize_handler(int sig);
8dbc868e1d427f24be56ddfee7ec924b62c580fe2a2b6ff254cf67529b363997
508
8l
Bcachefs
drivers/net/wireless/iwlwifi/iwl-agn.c
iwl_set_mode
static int iwl_set_mode(struct iwl_priv *priv, int mode) { iwl_connection_init_rx_config(priv, mode); iwl_set_rxon_chain(priv); memcpy(priv->staging_rxon.node_addr, priv->mac_addr, ETH_ALEN); iwl_clear_stations_table(priv); if (!iwl_is_ready_rf(priv)) return -EAGAIN; iwl_commit_rxon(priv); return 0; }
static int iwl_commit_rxon(struct iwl_priv *priv); void iwl_update_chain_flags(struct iwl_priv *priv); static void iwl_clear_free_frames(struct iwl_priv *priv); static struct iwl_frame *iwl_get_free_frame(struct iwl_priv *priv); static void iwl_free_frame(struct iwl_priv *priv, struct iwl_frame *frame); static in...
23fe3ef9a272a65eb9ffa56f4ab2b382946207ef95f252bbb920e2f033ad000a
319
FeyoMx
MDSdevKernel_a7010
drivers/input/touchscreen/mediatek/ft5446/focaltech_flash.c
fts_5x26_ctpm_fw_upgrade
int fts_5x26_ctpm_fw_upgrade(struct i2c_client *client, u8 *pbt_buf, u32 dw_lenth) { u8 reg_val[4] = {0}; u32 i = 0; u32 packet_number; u32 j; u32 temp; u32 lenght; u8 packet_buf[FTS_PACKET_LENGTH + 6]; u8 auc_i2c_write_buf[10]; u8 bt_ecc; int i_ret = 0; i_ret = HidI2c_To_StdI2c(client); if (i_ret =...
int HidI2c_To_StdI2c(struct i2c_client *client); void fts_update_fw_vendor_id(struct fts_ts_data *data); void fts_update_fw_ver(struct fts_ts_data *data); int fts_ctpm_fw_upgrade_ReadVendorID(struct i2c_client *client, u8 *ucPVendorID); int fts_ctpm_fw_upgrade_ReadProjectCode(struct i2c_client *client, char *pProj...
dfa01b9f4e97431e57ea7e7377c1130577213d0e8e94238642b7a62a11f3c26d
3,768