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
SuperrSonic
WiiMC-SS
source/mplayer/libmpcodecs/vf_screenshot.c
query_format
static int query_format(struct vf_instance *vf, unsigned int fmt) { switch(fmt){ case IMGFMT_YV12: case IMGFMT_I420: case IMGFMT_IYUV: case IMGFMT_UYVY: case IMGFMT_YUY2: case IMGFMT_BGR32: case IMGFMT_BGR24: case IMGFMT_BGR16: case IMGFMT_BGR15: case IMGFMT_BGR12: case IMGFMT_RGB32: case IMGFMT_RGB24: case IMGFMT_Y800: case IMGFMT_Y8: case IMGFMT_YVU9: case IMGFMT_IF09: case IMGFMT_444P: case IMGFMT_422P: case IMGFMT_411P: return vf_next_query_format(vf, fmt); } return 0; }
static void write_png(struct vf_priv_s *priv); static int fexists(char *fname); static void gen_fname(struct vf_priv_s* priv); static void scale_image(struct vf_priv_s* priv, mp_image_t *mpi); static void start_slice(struct vf_instance *vf, mp_image_t *mpi); static void get_image(struct vf_instance *vf, mp_image_t *mpi); static int put_image(struct vf_instance *vf, mp_image_t *mpi, double pts); static int control (vf_instance_t *vf, int request, void *data); static void uninit(vf_instance_t *vf); static int vf_open(vf_instance_t *vf, char *args);
dbd4be5eddf0587da61d1be41cc4d46fcb0977cb0a2ee7fd2bba44c4ab7aa6fb
601
Lydux
gcc-4.6.2-human68k
build_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/gcc-linaro-4.6-2012.12/libobjc/exception.c
void objc_exception_throw
void objc_exception_throw (id exception) { struct ObjcException *header = calloc (1, sizeof (*header)); memcpy (&header->base.exception_class, &__objc_exception_class, sizeof (__objc_exception_class)); header->base.exception_cleanup = __objc_exception_cleanup; header->value = exception; #ifdef SJLJ_EXCEPTIONS _Unwind_SjLj_RaiseException (&header->base); #else _Unwind_RaiseException (&header->base); #endif if (__objc_uncaught_exception_handler != 0) { (*__objc_uncaught_exception_handler) (exception); } if (_objc_unexpected_exception != 0) { (*_objc_unexpected_exception) (exception); } abort (); }
d21630f3c25e3d89533d4fbf10a2106578399469c7019142c2a839809b70b77a
665
xuminic
ezthumb
external/iup/srccontrols/matrix/iupmatrix.c
iMatrixSetLimitExpandAttrib
static int iMatrixSetLimitExpandAttrib(Ihandle* ih, const char* value) { if (ih->handle) return 0; ih->data->limit_expand = iupStrBoolean(value); return 0; }
int iupMatrixIsValid(Ihandle* ih, int check_cells); static char* iMatrixGetOriginAttrib(Ihandle* ih); static char* iMatrixGetOriginOffsetAttrib(Ihandle* ih); static int iMatrixSetOriginAttrib(Ihandle* ih, const char* value); static int iMatrixSetShowAttrib(Ihandle* ih, const char* value); static int iMatrixSetFocusCellAttrib(Ihandle* ih, const char* value); static char* iMatrixGetFocusCellAttrib(Ihandle* ih); static int iMatrixSetUseTitleSizeAttrib(Ihandle* ih, const char* value); static char* iMatrixGetUseTitleSizeAttrib(Ihandle* ih); static char* iMatrixGetLimitExpandAttrib(Ihandle* ih); static int iMatrixSetHiddenTextMarksAttrib(Ihandle* ih, const char* value); static char* iMatrixGetHiddenTextMarksAttrib(Ihandle* ih); static int iMatrixSetValueAttrib(Ihandle* ih, const char* value); static char* iMatrixGetValueAttrib(Ihandle* ih); static int iMatrixSetCaretAttrib(Ihandle* ih, const char* value); static int iMatrixSetInsertAttrib(Ihandle* ih, const char* value); static char* iMatrixGetCaretAttrib(Ihandle* ih); static int iMatrixSetSelectionAttrib(Ihandle* ih, const char* value); static char* iMatrixGetSelectionAttrib(Ihandle* ih); static int iMatrixSetMultilineAttrib(Ihandle* ih, const char* value); static char* iMatrixGetMultilineAttrib(Ihandle* ih); static char* iMatrixGetCountAttrib(Ihandle* ih); static char* iMatrixGetNumLinAttrib(Ihandle* ih); static char* iMatrixGetNumColAttrib(Ihandle* ih); static int iMatrixSetMarkModeAttrib(Ihandle* ih, const char* value); static char* iMatrixGetMarkModeAttrib(Ihandle* ih); static int iMatrixSetMarkAreaAttrib(Ihandle* ih, const char* value); static char* iMatrixGetMarkAreaAttrib(Ihandle* ih); static int iMatrixSetMarkMultipleAttrib(Ihandle* ih, const char* value); static char* iMatrixGetMarkMultipleAttrib(Ihandle* ih); static int iMatrixSetEditHideOnFocusAttrib(Ihandle* ih, const char* value); static char* iMatrixGetEditHideOnFocusAttrib(Ihandle* ih); static char* iMatrixGetEditCellAttrib(Ihandle* ih); static char* iMatrixGetEditTextAttrib(Ihandle* ih); static int iMatrixSetEditModeAttrib(Ihandle* ih, const char* value); static char* iMatrixGetEditModeAttrib(Ihandle* ih); static char* iMatrixGetEditingAttrib(Ihandle* ih); static int iMatrixSetEditNextAttrib(Ihandle* ih, const char* value); static char* iMatrixGetEditNextAttrib(Ihandle* ih); static int iMatrixHasColWidth(Ihandle* ih, int col); static int iMatrixHasLineHeight(Ihandle* ih, int lin); static void iMatrixFitLines(Ihandle* ih, int height); static void iMatrixFitColumns(Ihandle* ih, int width); static int iMatrixSetFitToSizeAttrib(Ihandle* ih, const char* value); static void iMatrixFitColText(Ihandle* ih, int col); static void iMatrixFitLineText(Ihandle* ih, int line); static int iMatrixSetFitToTextAttrib(Ihandle* ih, const char* value); static int iMatrixSetNumColNoScrollAttrib(Ihandle* ih, const char* value); static int iMatrixSetNumLinNoScrollAttrib(Ihandle* ih, const char* value); static char* iMatrixGetNumColNoScrollAttrib(Ihandle* ih); static char* iMatrixGetNumLinNoScrollAttrib(Ihandle* ih); static int iMatrixSetCopyLinAttrib(Ihandle* ih, int from_lin, const char* value); static int iMatrixSetCopyColAttrib(Ihandle* ih, int from_col, const char* value); static int iMatrixSetMoveColAttrib(Ihandle* ih, int from_col, const char* value); static int iMatrixSetMoveLinAttrib(Ihandle* ih, int from_lin, const char* value); static int iMatrixSetSizeAttrib(Ihandle* ih, int pos, const char* value); static char* iMatrixGetWidthAttrib(Ihandle* ih, int col); static char* iMatrixGetHeightAttrib(Ihandle* ih, int lin); static char* iMatrixGetRasterWidthAttrib(Ihandle* ih, int col); static char* iMatrixGetRasterHeightAttrib(Ihandle* ih, int lin); static char* iMatrixGetAlignmentAttrib(Ihandle* ih, int col); static int iMatrixSetIdValueAttrib(Ihandle* ih, int lin, int col, const char* value); static char* iMatrixGetIdValueAttrib(Ihandle* ih, int lin, int col); static char* iMatrixGetCellAttrib(Ihandle* ih, int lin, int col); static char* iMatrixGetCellOffsetAttrib(Ihandle* ih, int lin, int col); static char* iMatrixGetCellSizeAttrib(Ihandle* ih, int lin, int col); static int iMatrixSetNeedRedraw(Ihandle* ih); static void iMatrixClearAttrib(Ihandle* ih, unsigned char *flags, int lin, int col); static int iMatrixSetClearAttribAttrib(Ihandle* ih, int lin, int col, const char* value); static int iMatrixSetClearValueAttrib(Ihandle* ih, int lin, int col, const char* value); static int iMatrixSetShowFillValueAttrib(Ihandle* ih, const char* value); static char* iMatrixGetShowFillValueAttrib(Ihandle* ih); static int iMatrixSetFlagsAttrib(Ihandle* ih, int lin, int col, const char* value, unsigned char attr); static int iMatrixSetBgColorAttrib(Ihandle* ih, int lin, int col, const char* value); static int iMatrixSetFgColorAttrib(Ihandle* ih, int lin, int col, const char* value); static int iMatrixSetTypeAttrib(Ihandle* ih, int lin, int col, const char* value); static int iMatrixSetFontStyleAttrib(Ihandle* ih, int lin, int col, const char* value); static char* iMatrixGetFontStyleAttrib(Ihandle* ih, int lin, int col); static int iMatrixSetFontSizeAttrib(Ihandle* ih, int lin, int col, const char* value); static char* iMatrixGetFontSizeAttrib(Ihandle* ih, int lin, int col); static int iMatrixSetFontAttrib(Ihandle* ih, int lin, int col, const char* value); static char* iMatrixGetFontAttrib(Ihandle* ih, int lin, int col); static int iMatrixSetFrameHorizColorAttrib(Ihandle* ih, int lin, int col, const char* value); static int iMatrixSetFrameVertColorAttrib(Ihandle* ih, int lin, int col, const char* value); static char* iMatrixGetBgColorAttrib(Ihandle* ih, int lin, int col); static char* iMatrixGetCellBgColorAttrib(Ihandle* ih, int lin, int col); static char* iMatrixGetCellFgColorAttrib(Ihandle* ih, int lin, int col); static void iMatrixConvertLinColToPos(Ihandle* ih, int lin, int col, int *pos); static void iMatrixConvertPosToLinCol(Ihandle* ih, int pos, int *lin, int *col); static int iMatrixConvertXYToPos(Ihandle* ih, int x, int y); static char* iMatrixGetNumColVisibleAttrib(Ihandle* ih); static char* iMatrixGetNumLinVisibleAttrib(Ihandle* ih); static int iMatrixSetActiveAttrib(Ihandle* ih, const char* value); static int iMatrixSetVisibleAttrib(Ihandle* ih, const char* value); static int iMatrixFocus_CB(Ihandle* ih, int focus); static int iMatrixResize_CB(Ihandle* ih); static int iMatrixRedraw_CB(Ihandle* ih); static int iMatrixCreateMethod(Ihandle* ih, void **params); static int iMatrixMapMethod(Ihandle* ih); static void iMatrixUnMapMethod(Ihandle* ih); static int iMatrixGetNaturalWidth(Ihandle* ih, int *full_width); static int iMatrixGetNaturalHeight(Ihandle* ih, int *full_height); static void iMatrixComputeNaturalSizeMethod(Ihandle* ih, int *w, int *h, int *children_expand); static void iMatrixCreateCursor(void); static void iMatrixSetClassUpdate(Iclass* ic); s* iupMatrixNewClass(void); le* IupMatrix(const char* action);
5c7da4b315617f5ff88049f888d562315d2f17a9cca5fb53e970fc6599b12807
173
abgoyal
alcatel_ot_4020D_kernel
drivers/net/wireless/trout/mac/src/Core/AP/wlan_rx_data_ap.c
wlan_to_wlan
void wlan_to_wlan(msdu_indicate_t *msdu, CIPHER_T ct, UWORD8 key_type, UWORD8 key_index, TYPESUBTYPE_T frm_type, asoc_entry_t *ae, BOOL_T use_same_buffer) { UWORD8 q_num = 0; UWORD8 tx_rate = 0; UWORD8 pream = 0; UWORD8 service_class= 0; UWORD8 *mac_hdr = 0; UWORD8 *tx_dscr = 0; UWORD16 mac_hdr_len = 0; void *amsdu_ctxt = NULL; UWORD8 is_amsdu = 0; BOOL_T is_qos = BFALSE; BOOL_T is_htc = BFALSE; msdu_desc_t *buff_desc = &(msdu->frame_desc); UWORD32 phy_tx_mode = 0; UWORD32 sta_index = INVALID_ID; buffer_desc_t buffer_desc = {0}; UWORD32 retry_set[2] = {0}; #ifdef DEBUG_MODE g_mac_stats.w2w++; #endif q_num = get_w2w_txq_num_ap(msdu->priority); if(ae != NULL) sta_index = ae->sta_index; if(is_txq_full(q_num, sta_index) == BTRUE) { return; } if(use_same_buffer == BTRUE) { mem_add_users(g_shared_pkt_mem_handle, buff_desc->buffer_addr, 1); buffer_desc.buff_hdl = buff_desc->buffer_addr; buffer_desc.data_offset = buff_desc->data_offset; buffer_desc.data_length = buff_desc->data_len; } else { UWORD8 *out_data = 0; out_data = (UWORD8*)pkt_mem_alloc(MEM_PRI_TX); if(out_data == NULL) return; buffer_desc.buff_hdl = out_data; buffer_desc.data_offset = MAX_MAC_HDR_LEN; buffer_desc.data_length = buff_desc->data_len; if(buffer_desc.data_offset + buff_desc->data_len > SHARED_PKT_MEM_BUFFER_SIZE){ printk("@@@:BUG! bad memcpy offset:%d, len:%d\n", buffer_desc.data_offset, buff_desc->data_len); } memcpy(buffer_desc.buff_hdl + buffer_desc.data_offset, buff_desc->buffer_addr + buff_desc->data_offset, buff_desc->data_len); } if(is_group(msdu->da) == BTRUE) { tx_rate = get_max_basic_rate(); pream = 1; service_class = BCAST_NO_ACK; update_retry_rate_set(0, tx_rate, 0, retry_set); } else { if(!ae) printk("@@@:BUG ae==NULL to get rate\n"); tx_rate = get_tx_rate_to_sta(ae); pream = get_preamble(tx_rate); service_class = g_ack_policy; update_retry_rate_set(1, tx_rate, ae, retry_set); } #ifdef TX_MACHDR_IN_DSCR_MEM amsdu_ctxt = get_amsdu_handle(msdu->da, msdu->priority, q_num, ae, buff_desc->data_len, 1, tx_rate); #endif is_amsdu = (amsdu_ctxt != NULL); if((0 == is_amsdu) || (NULL == amsdu_get_tx_dscr(amsdu_ctxt))) { is_qos = is_qos_required(sta_index); is_htc = is_htc_capable(ae); tx_dscr = create_default_tx_dscr(is_qos, msdu->priority, is_amsdu); if(tx_dscr == NULL) { if(is_amsdu == 1) { free_amsdu_handle(amsdu_ctxt); is_amsdu = 0; amsdu_ctxt = NULL; tx_dscr = create_default_tx_dscr(is_qos, msdu->priority, is_amsdu); } if(tx_dscr == NULL) { if(g_mac_net_stats) g_mac_net_stats->tx_dropped++; pkt_mem_free(buffer_desc.buff_hdl); return; } } if(1 == is_amsdu) amsdu_set_tx_dscr(amsdu_ctxt, tx_dscr); #ifdef TX_MACHDR_IN_DSCR_MEM mac_hdr = mem_alloc(g_shared_dscr_mem_handle, MAX_MAC_HDR_LEN); if(NULL == mac_hdr) { free_tx_dscr((UWORD32 *)tx_dscr); if(g_mac_net_stats) g_mac_net_stats->tx_dropped++; pkt_mem_free(buffer_desc.buff_hdl); free_amsdu_handle(amsdu_ctxt); return; } #else mac_hdr = buffer_desc.buff_hdl + buffer_desc.data_offset - MAX_MAC_HDR_LEN; #endif mac_hdr_len = set_mac_hdr_prot(mac_hdr, msdu->priority, service_class, is_qos, is_htc, is_amsdu); set_from_ds(mac_hdr, 1); if(ct != NO_ENCRYP) set_wep(mac_hdr, 1); set_address1(mac_hdr, msdu->da); set_address2(mac_hdr, mget_bssid()); set_address3(mac_hdr, msdu->sa); set_tx_dscr_buffer_addr((UWORD32 *)tx_dscr, (UWORD32)mac_hdr); set_tx_dscr_mh_len((UWORD32 *)tx_dscr, mac_hdr_len); set_tx_dscr_mh_offset((UWORD32 *)tx_dscr, 0); phy_tx_mode = get_dscr_phy_tx_mode(tx_rate, pream, (void *)ae); set_tx_params(tx_dscr, tx_rate, pream, service_class, phy_tx_mode, retry_set); set_tx_dscr_q_num((UWORD32 *)tx_dscr, q_num); set_tx_security(tx_dscr, ct, key_type, key_index); set_ht_ps_params(tx_dscr, (void *)ae, tx_rate); set_ht_ra_lut_index(tx_dscr, get_ht_handle_entry((void *)ae), msdu->priority, tx_rate); } else tx_dscr = amsdu_get_tx_dscr(amsdu_ctxt); set_submsdu_info(tx_dscr, &buffer_desc, 1, buffer_desc.data_length, mac_hdr_len, msdu->sa, msdu->da, amsdu_ctxt); update_tx_dscr_tsf_ts((UWORD32 *)tx_dscr); if(BTRUE == is_tx_ready(amsdu_ctxt)) { if(BTRUE == tx_data_packet((UWORD8 *)ae, msdu->da, msdu->priority, q_num, tx_dscr, amsdu_ctxt)) { if(is_group(msdu->da) == BTRUE) { g_num_mc_bc_qd_pkt++; } else { ae->num_qd_pkt++; } } } }
void ap_enabled_rx_data(mac_struct_t *mac, UWORD8 *msg); void msdu_indicate_ap(msdu_indicate_t *msdu);
3c83c20cfb78ffe816d2e85cb8b5c7a937ee9c7719a6b8ee6bb89d93f2e1f0d0
6,217
acmorrow
mongo-c-driver
src/libmongoc/tests/test-mongoc-client-session.c
void test_gridfs_find
static void test_gridfs_find (session_test_t *test) { mongoc_gridfs_t *gfs; bson_error_t error; mongoc_gridfs_file_list_t *list; mongoc_gridfs_file_t *f; mongoc_client_set_apm_callbacks (test->client, NULL, NULL); gfs = mongoc_client_get_gridfs (test->client, "test", NULL, &error); ASSERT_OR_PRINT (gfs, error); set_session_test_callbacks (test); list = mongoc_gridfs_find_with_opts (gfs, tmp_bson ("{}"), &test->opts); f = mongoc_gridfs_file_list_next (list); test->succeeded = !mongoc_gridfs_file_list_error (list, &test->error); if (f) { mongoc_gridfs_file_destroy (f); } mongoc_gridfs_file_list_destroy (list); mongoc_gridfs_destroy (gfs); }
48c385eeb34e03472b6b90ccdbbdf6202a45657aa01a99f8a68ea9e4fadaee0a
706
Troj80
T.J.T-Kernel-vivo
net/ipv6/addrconf.c
inet6_ifla6_size
static inline size_t inet6_ifla6_size(void) { return nla_total_size(4) + nla_total_size(sizeof(struct ifla_cacheinfo)) + nla_total_size(DEVCONF_MAX * 4) + nla_total_size(IPSTATS_MIB_MAX * 8) + nla_total_size(ICMP6_MIB_MAX * 8); }
static inline u32 cstamp_delta(unsigned long cstamp); static inline void addrconf_sysctl_register(struct inet6_dev *idev); static inline void addrconf_sysctl_unregister(struct inet6_dev *idev); static inline bool addrconf_qdisc_ok(const struct net_device *dev); static inline int addrconf_is_prefix_route(const struct rt6_info *rt); static void addrconf_del_timer(struct inet6_ifaddr *ifp); static int snmp6_alloc_dev(struct inet6_dev *idev); static void snmp6_free_dev(struct inet6_dev *idev); void in6_dev_finish_destroy(struct inet6_dev *idev); static struct inet6_dev * ipv6_add_dev(struct net_device *dev); static struct inet6_dev * ipv6_find_idev(struct net_device *dev); static void dev_forward_change(struct inet6_dev *idev); static void addrconf_forward_change(struct net *net, __s32 newf); static int addrconf_fixup_forwarding(struct ctl_table *table, int *p, int old); void inet6_ifa_finish_destroy(struct inet6_ifaddr *ifp); static u32 ipv6_addr_hash(const struct in6_addr *addr); static void ipv6_del_addr(struct inet6_ifaddr *ifp); static int ipv6_create_tempaddr(struct inet6_ifaddr *ifp, struct inet6_ifaddr *ift); static inline int ipv6_saddr_preferred(int type); static int ipv6_count_addresses(struct inet6_dev *idev); int ipv6_chk_prefix(const struct in6_addr *addr, struct net_device *dev); static void addrconf_dad_stop(struct inet6_ifaddr *ifp, int dad_failed); static int addrconf_dad_end(struct inet6_ifaddr *ifp); void addrconf_dad_failure(struct inet6_ifaddr *ifp); void addrconf_join_solict(struct net_device *dev, const struct in6_addr *addr); void addrconf_leave_solict(struct inet6_dev *idev, const struct in6_addr *addr); static void addrconf_join_anycast(struct inet6_ifaddr *ifp); static void addrconf_leave_anycast(struct inet6_ifaddr *ifp); static int addrconf_ifid_eui48(u8 *eui, struct net_device *dev); static int addrconf_ifid_arcnet(u8 *eui, struct net_device *dev); static int addrconf_ifid_infiniband(u8 *eui, struct net_device *dev); static int __ipv6_isatap_ifid(u8 *eui, __be32 addr); static int addrconf_ifid_sit(u8 *eui, struct net_device *dev); static int ipv6_generate_eui64(u8 *eui, struct net_device *dev); static int ipv6_inherit_eui64(u8 *eui, struct inet6_dev *idev); static int __ipv6_regen_rndid(struct inet6_dev *idev); static void ipv6_regen_rndid(unsigned long data); static int __ipv6_try_regen_rndid(struct inet6_dev *idev, struct in6_addr *tmpaddr); static void addrconf_add_mroute(struct net_device *dev); static void sit_route_add(struct net_device *dev); static void addrconf_add_lroute(struct net_device *dev); static struct inet6_dev *addrconf_add_dev(struct net_device *dev); void addrconf_prefix_rcv(struct net_device *dev, u8 *opt, int len); int addrconf_set_dstaddr(struct net *net, void __user *arg); int addrconf_add_ifaddr(struct net *net, void __user *arg); int addrconf_del_ifaddr(struct net *net, void __user *arg); static void sit_add_v4_addrs(struct inet6_dev *idev); static void init_loopback(struct net_device *dev); static void addrconf_add_linklocal(struct inet6_dev *idev, const struct in6_addr *addr); static void addrconf_dev_config(struct net_device *dev); static void addrconf_sit_config(struct net_device *dev); static void ip6_tnl_add_linklocal(struct inet6_dev *idev); static void addrconf_ip6_tnl_config(struct net_device *dev); static void addrconf_type_change(struct net_device *dev, unsigned long event); static int addrconf_ifdown(struct net_device *dev, int how); static void addrconf_rs_timer(unsigned long data); static void addrconf_dad_kick(struct inet6_ifaddr *ifp); static void addrconf_dad_start(struct inet6_ifaddr *ifp, u32 flags); static void addrconf_dad_timer(unsigned long data); static void addrconf_dad_completed(struct inet6_ifaddr *ifp); static void addrconf_dad_run(struct inet6_dev *idev); static struct inet6_ifaddr *if6_get_first(struct seq_file *seq); static struct inet6_ifaddr *if6_get_idx(struct seq_file *seq, loff_t pos); __acquires(rcu_bh); static void *if6_seq_next(struct seq_file *seq, void *v, loff_t *pos); __releases(rcu_bh); static int if6_seq_show(struct seq_file *seq, void *v); static int if6_seq_open(struct inode *inode, struct file *file); static int __net_init if6_proc_net_init(struct net *net); static void __net_exit if6_proc_net_exit(struct net *net); int __init if6_proc_init(void); void if6_proc_exit(void); int ipv6_chk_home_addr(struct net *net, const struct in6_addr *addr); static void addrconf_verify(unsigned long foo); static struct in6_addr *extract_addr(struct nlattr *addr, struct nlattr *local); static inline int rt_scope(int ifa_scope); static inline int inet6_ifaddr_msgsize(void); static int inet6_dump_ifaddr(struct sk_buff *skb, struct netlink_callback *cb); static int inet6_dump_ifmcaddr(struct sk_buff *skb, struct netlink_callback *cb); static int inet6_dump_ifacaddr(struct sk_buff *skb, struct netlink_callback *cb); static void inet6_ifa_notify(int event, struct inet6_ifaddr *ifa); static inline size_t inet6_if_nlmsg_size(void); static int inet6_fill_ifla6_attrs(struct sk_buff *skb, struct inet6_dev *idev); static size_t inet6_get_link_af_size(const struct net_device *dev); static int inet6_fill_link_af(struct sk_buff *skb, const struct net_device *dev); static int inet6_dump_ifinfo(struct sk_buff *skb, struct netlink_callback *cb); void inet6_ifinfo_notify(int event, struct inet6_dev *idev); static inline size_t inet6_prefix_nlmsg_size(void); static void __ipv6_ifa_notify(int event, struct inet6_ifaddr *ifp); static void ipv6_ifa_notify(int event, struct inet6_ifaddr *ifp); static void dev_disable_change(struct inet6_dev *idev); static void addrconf_disable_change(struct net *net, __s32 newf); static int addrconf_disable_ipv6(struct ctl_table *table, int *p, int old); static void __addrconf_sysctl_unregister(struct ipv6_devconf *p); static void addrconf_sysctl_register(struct inet6_dev *idev); static void addrconf_sysctl_unregister(struct inet6_dev *idev); static int __net_init addrconf_init_net(struct net *net); static void __net_exit addrconf_exit_net(struct net *net); int register_inet6addr_notifier(struct notifier_block *nb); int unregister_inet6addr_notifier(struct notifier_block *nb); int __init addrconf_init(void); void addrconf_cleanup(void);
d7ed96459573fa3795f3ac7c893d7949e70dc092036b532d25d96eaa220e4a71
238
DHOMD
amlogic_kernel_playground
drivers/amlogic/demod/nxp/tmbslNT220x.c
tmErrorCode_t tmbslNT220xGetIRQWait
tmErrorCode_t tmbslNT220xGetIRQWait ( tmUnitSelect_t tUnit, Bool* pbWait ) { ptmNT220xObject_t pObj = Null; tmErrorCode_t err = TM_OK; if(pbWait == Null) err = NT220x_ERR_BAD_PARAMETER; if(err == TM_OK) { err = NT220xGetInstance(tUnit, &pObj); tmASSERTExT(err, TM_OK, (DEBUGLVL_ERROR, "NT220xGetInstance(0x%08X) failed.", tUnit)); } if(err == TM_OK) { err = NT220xMutexAcquire(pObj, NT220x_MUTEX_TIMEOUT); } if(err == TM_OK) { err = tmddNT220xGetIRQWait(tUnit, pbWait); tmASSERTExT(err, TM_OK, (DEBUGLVL_ERROR, "tmddNT220xGetIRQWait(0x%08X) failed.", tUnit)); (void)NT220xMutexRelease(pObj); } return err; }
760f972c2df8c70b1b9ce17d0397b3e28355560ecfa822463a161d46fdb7a9e2
753
CastMi
iverilog
ivlpp/main.c
main
int main(int argc, char*argv[]) { int opt, idx; unsigned lp; const char*flist_path = 0; unsigned flag_errors = 0; char*out_path = 0; FILE*out; char*precomp_out_path = 0; FILE*precomp_out = NULL; define_macro("begin_keywords", "`begin_keywords", 1, 0); define_macro("celldefine", "`celldefine", 1, 0); define_macro("default_nettype", "`default_nettype", 1, 0); define_macro("end_keywords", "`end_keywords", 1, 0); define_macro("endcelldefine", "`endcelldefine", 1, 0); define_macro("line", "`line", 1, 0); define_macro("nounconnected_drive", "`nounconnected_drive", 1, 0); define_macro("pragma", "`pragma", 1, 0); define_macro("resetall", "`resetall", 1, 0); define_macro("timescale", "`timescale", 1, 0); define_macro("unconnected_drive", "`unconnected_drive", 1, 0); define_macro("default_decay_time", "`default_decay_time", 1, 0); define_macro("default_trireg_strength", "`default_trireg_strength", 1, 0); define_macro("delay_mode_distributed", "`delay_mode_distributed", 1, 0); define_macro("delay_mode_path", "`delay_mode_path", 1, 0); define_macro("delay_mode_unit", "`delay_mode_unit", 1, 0); define_macro("delay_mode_zero", "`delay_mode_zero", 1, 0); define_macro("disable_portfaults", "`disable_portfaults", 1, 0); define_macro("enable_portfaults", "`enable_portfaults", 1, 0); define_macro("endprotect", "`endprotect", 1, 0); define_macro("nosuppress_faults", "`nosuppress_faults", 1, 0); define_macro("protect", "`protect", 1, 0); define_macro("suppress_faults", "`suppress_faults", 1, 0); define_macro("uselib", "`uselib", 1, 0); include_cnt = 2; include_dir = malloc(include_cnt*sizeof(char*)); include_dir[0] = 0; include_dir[1] = strdup("."); while ((opt=getopt(argc, argv, "F:f:K:Lo:p:P:vV")) != EOF) switch (opt) { case 'F': flist_read_flags(optarg); break; case 'f': if (flist_path) { fprintf(stderr, "%s: duplicate -f flag\n", argv[0]); flag_errors += 1; } flist_path = optarg; break; case 'K': { char*buf = malloc(strlen(optarg) + 2); buf[0] = '`'; strcpy(buf+1, optarg); define_macro(optarg, buf, 1, 0); free(buf); break; } case 'L': line_direct_flag = 1; break; case 'o': if (out_path) { fprintf(stderr, "duplicate -o flag.\n"); } else { out_path = optarg; } break; case 'p': if (precomp_out_path) { fprintf(stderr, "duplicate -p flag.\n"); } else { precomp_out_path = optarg; } break; case 'P': { FILE*src = fopen(optarg, "rb"); if (src == 0) { perror(optarg); exit(1); } load_precompiled_defines(src); fclose(src); break; } case 'v': fprintf(stderr, "Icarus Verilog Preprocessor version " VERSION " (" VERSION_TAG ")\n\n"); fprintf(stderr, "%s\n\n", COPYRIGHT); fputs(NOTICE, stderr); verbose_flag = 1; break; case 'V': fprintf(stdout, "Icarus Verilog Preprocessor version " VERSION " (" VERSION_TAG ")\n\n"); fprintf(stdout, "%s\n", COPYRIGHT); fputs(NOTICE, stdout); return 0; default: flag_errors += 1; break; } if (flag_errors) { fprintf(stderr, "\nUsage: %s [-v][-L][-F<fil>][-f<fil>] <file>...\n" " -F<fil> - Get defines and includes from file\n" " -f<fil> - Read the sources listed in the file\n" " -K<def> - Define a keyword macro that I just pass\n" " -L - Emit line number directives\n" " -o<fil> - Send the output to <fil>\n" " -p<fil> - Write precompiled defines to <fil>\n" " -P<fil> - Read precompiled defines from <fil>\n" " -v - Verbose\n" " -V - Print version information and quit\n", argv[0]); return flag_errors; } for (idx = optind ; idx < argc ; idx += 1) add_source_file(argv[idx]); if (flist_path) { int rc = flist_read_names(flist_path); if (rc != 0) return rc; } if (out_path) { out = fopen(out_path, "w"); if (out == 0) { perror(out_path); exit(1); } } else { out = stdout; } if (precomp_out_path) { precomp_out = fopen(precomp_out_path, "wb"); if (precomp_out == 0) { if (out_path) fclose(out); perror(precomp_out_path); exit(1); } } if (dep_path) { depend_file = fopen(dep_path, "a"); if (depend_file == 0) { if (out_path) fclose(out); if (precomp_out) fclose(precomp_out); perror(dep_path); exit(1); } } if (source_cnt == 0) { fprintf(stderr, "%s: No input files given.\n", argv[0]); if (out_path) fclose(out); if (depend_file) fclose(depend_file); if (precomp_out) fclose(precomp_out); return 1; } if (vhdlpp_work == 0) { vhdlpp_work = strdup("ivl_vhdl_work"); } reset_lexor(out, source_list); if (yylex()) { if (out_path) fclose(out); if (depend_file) fclose(depend_file); if (precomp_out) fclose(precomp_out); return -1; } destroy_lexor(); if (depend_file) fclose(depend_file); if (precomp_out) { dump_precompiled_defines(precomp_out); fclose(precomp_out); } if (out_path) fclose(out); for (lp = 0; lp < source_cnt; lp += 1) { free(source_list[lp]); } free(source_list); for (lp = 0; lp < include_cnt; lp += 1) { free(include_dir[lp]); } free(include_dir); for (lp = 0; lp < vhdlpp_libdir_cnt; lp += 1) { free(vhdlpp_libdir[lp]); } free(vhdlpp_libdir); free(vhdlpp_path); free(vhdlpp_work); free_macros(); return error_count; }
void add_source_file(const char*name); static int flist_read_flags(const char*path); static int flist_read_names(const char*path);
cd4366d01efe3f4f20b401a88620ea5ae4e0550c1f7d1f7edb91b0d5af0d2f40
6,169
Gurgel100
gcc
gcc/cp/name-lookup.c
void poplevel_class
void poplevel_class (void) { cp_binding_level *level = class_binding_level; cp_class_binding *cb; size_t i; tree shadowed; bool subtime = timevar_cond_start (TV_NAME_LOOKUP); gcc_assert (level != 0); if (current_class_depth == 1) previous_class_level = level; for (shadowed = level->type_shadowed; shadowed; shadowed = TREE_CHAIN (shadowed)) SET_IDENTIFIER_TYPE_VALUE (TREE_PURPOSE (shadowed), TREE_VALUE (shadowed)); if (level->class_shadowed) { FOR_EACH_VEC_ELT (*level->class_shadowed, i, cb) { IDENTIFIER_BINDING (cb->identifier) = cb->base->previous; cxx_binding_free (cb->base); } ggc_free (level->class_shadowed); level->class_shadowed = NULL; } gcc_assert (current_binding_level == level); leave_scope (); timevar_cond_stop (TV_NAME_LOOKUP, subtime); }
bool seen_p (tree scope); static bool found_p (tree scope); static void mark_found (tree scope); bool see_and_mark (tree scope); using_queue *queue_usings (using_queue *queue, int depth, vec<tree, va_gc> *usings); tree lookup_qualified_name (tree t, const char *p, LOOK_want w, bool c);
8744cef6bc9169f53cc016893ae620efd0fcbfa1d04d833ce4b36c95e071ce59
857
BPI-SINOVOIP
BPI-Mainline-kernel
linux-4.19/arch/x86/kvm/vmx.c
evmcs_write16
static inline void evmcs_write16(unsigned long field, u16 value) { u16 clean_field; int offset = get_evmcs_offset(field, &clean_field); if (offset < 0) return; *(u16 *)((char *)current_evmcs + offset) = value; current_evmcs->hv_clean_fields &= ~clean_field; }
static int vmx_setup_l1d_flush(enum vmx_l1d_flush_state l1tf); static int vmentry_l1d_flush_parse(const char *s); static int vmentry_l1d_flush_set(const char *s, const struct kernel_param *kp); static int vmentry_l1d_flush_get(char *s, const struct kernel_param *kp); static inline void vmx_check_vmcs12_offsets(void); static bool pi_test_and_set_on(struct pi_desc *pi_desc); static bool pi_test_and_clear_on(struct pi_desc *pi_desc); static int pi_test_and_set_pir(int vector, struct pi_desc *pi_desc); static inline void pi_clear_sn(struct pi_desc *pi_desc); static inline void pi_set_sn(struct pi_desc *pi_desc); static inline void pi_clear_on(struct pi_desc *pi_desc); static inline int pi_test_on(struct pi_desc *pi_desc); static inline int pi_test_sn(struct pi_desc *pi_desc); static inline struct kvm_vmx *to_kvm_vmx(struct kvm *kvm); static inline struct vcpu_vmx *to_vmx(struct kvm_vcpu *vcpu); static struct pi_desc *vcpu_to_pi_desc(struct kvm_vcpu *vcpu); static inline short vmcs_field_to_offset(unsigned long field); static inline struct vmcs12 *get_vmcs12(struct kvm_vcpu *vcpu); static inline struct vmcs12 *get_shadow_vmcs12(struct kvm_vcpu *vcpu); static inline void evmcs_write64(unsigned long field, u64 value); static inline void evmcs_write32(unsigned long field, u32 value); static inline u64 evmcs_read64(unsigned long field); static inline u32 evmcs_read32(unsigned long field); static inline u16 evmcs_read16(unsigned long field); static inline void evmcs_touch_msr_bitmap(void); static void evmcs_load(u64 phys_addr); static void evmcs_sanitize_exec_ctrls(struct vmcs_config *vmcs_conf); static void check_ept_pointer_match(struct kvm *kvm); static int vmx_hv_remote_flush_tlb(struct kvm *kvm); static inline bool is_exception_n(u32 intr_info, u8 vector); static inline bool is_debug(u32 intr_info); static inline bool is_breakpoint(u32 intr_info); static inline bool is_page_fault(u32 intr_info); static inline bool is_no_device(u32 intr_info); static inline bool is_invalid_opcode(u32 intr_info); static inline bool is_gp_fault(u32 intr_info); static inline bool is_external_interrupt(u32 intr_info); static inline bool is_machine_check(u32 intr_info); static inline bool is_icebp(u32 intr_info); static inline bool cpu_has_vmx_msr_bitmap(void); static inline bool cpu_has_vmx_tpr_shadow(void); static inline bool cpu_need_tpr_shadow(struct kvm_vcpu *vcpu); static inline bool cpu_has_secondary_exec_ctrls(void); static inline bool cpu_has_vmx_virtualize_apic_accesses(void); static inline bool cpu_has_vmx_virtualize_x2apic_mode(void); static inline bool cpu_has_vmx_apic_register_virt(void); static inline bool cpu_has_vmx_virtual_intr_delivery(void); static inline bool cpu_has_vmx_encls_vmexit(void); static inline bool cpu_has_broken_vmx_preemption_timer(void); static inline bool cpu_has_vmx_preemption_timer(void); static inline bool cpu_has_vmx_posted_intr(void); static inline bool cpu_has_vmx_apicv(void); static inline bool cpu_has_vmx_flexpriority(void); static inline bool cpu_has_vmx_ept_execute_only(void); static inline bool cpu_has_vmx_ept_2m_page(void); static inline bool cpu_has_vmx_ept_1g_page(void); static inline bool cpu_has_vmx_ept_4levels(void); static inline bool cpu_has_vmx_ept_mt_wb(void); static inline bool cpu_has_vmx_ept_5levels(void); static inline bool cpu_has_vmx_ept_ad_bits(void); static inline bool cpu_has_vmx_invept_context(void); static inline bool cpu_has_vmx_invept_global(void); static inline bool cpu_has_vmx_invvpid_individual_addr(void); static inline bool cpu_has_vmx_invvpid_single(void); static inline bool cpu_has_vmx_invvpid_global(void); static inline bool cpu_has_vmx_invvpid(void); static inline bool cpu_has_vmx_ept(void); static inline bool cpu_has_vmx_unrestricted_guest(void); static inline bool cpu_has_vmx_ple(void); static inline bool cpu_has_vmx_basic_inout(void); static inline bool cpu_need_virtualize_apic_accesses(struct kvm_vcpu *vcpu); static inline bool cpu_has_vmx_vpid(void); static inline bool cpu_has_vmx_rdtscp(void); static inline bool cpu_has_vmx_invpcid(void); static inline bool cpu_has_virtual_nmis(void); static inline bool cpu_has_vmx_wbinvd_exit(void); static inline bool cpu_has_vmx_shadow_vmcs(void); static inline bool cpu_has_vmx_pml(void); static inline bool cpu_has_vmx_tsc_scaling(void); static inline bool cpu_has_vmx_vmfunc(void); static bool vmx_umip_emulated(void); static inline bool report_flexpriority(void); static inline unsigned nested_cpu_vmx_misc_cr3_count(struct kvm_vcpu *vcpu); static inline bool nested_cpu_has_vmwrite_any_field(struct kvm_vcpu *vcpu); static inline bool nested_cpu_has_zero_length_injection(struct kvm_vcpu *vcpu); static inline bool nested_cpu_supports_monitor_trap_flag(struct kvm_vcpu *vcpu); static inline bool nested_cpu_has_vmx_shadow_vmcs(struct kvm_vcpu *vcpu); static inline bool nested_cpu_has(struct vmcs12 *vmcs12, u32 bit); static inline bool nested_cpu_has2(struct vmcs12 *vmcs12, u32 bit); static inline bool nested_cpu_has_preemption_timer(struct vmcs12 *vmcs12); static inline bool nested_cpu_has_nmi_exiting(struct vmcs12 *vmcs12); static inline bool nested_cpu_has_virtual_nmis(struct vmcs12 *vmcs12); static inline int nested_cpu_has_ept(struct vmcs12 *vmcs12); static inline bool nested_cpu_has_xsaves(struct vmcs12 *vmcs12); static inline bool nested_cpu_has_pml(struct vmcs12 *vmcs12); static inline bool nested_cpu_has_virt_x2apic_mode(struct vmcs12 *vmcs12); static inline bool nested_cpu_has_vpid(struct vmcs12 *vmcs12); static inline bool nested_cpu_has_apic_reg_virt(struct vmcs12 *vmcs12); static inline bool nested_cpu_has_vid(struct vmcs12 *vmcs12); static inline bool nested_cpu_has_posted_intr(struct vmcs12 *vmcs12); static inline bool nested_cpu_has_vmfunc(struct vmcs12 *vmcs12); static inline bool nested_cpu_has_eptp_switching(struct vmcs12 *vmcs12); static inline bool nested_cpu_has_shadow_vmcs(struct vmcs12 *vmcs12); static inline bool is_nmi(u32 intr_info); static int __find_msr_index(struct vcpu_vmx *vmx, u32 msr); static inline void __invvpid(int ext, u16 vpid, gva_t gva); static inline void __invept(int ext, u64 eptp, gpa_t gpa); static struct shared_msr_entry *find_msr_entry(struct vcpu_vmx *vmx, u32 msr); static void vmcs_clear(struct vmcs *vmcs); static inline void loaded_vmcs_init(struct loaded_vmcs *loaded_vmcs); static void vmcs_load(struct vmcs *vmcs); static inline void crash_enable_local_vmclear(int cpu); static inline void crash_disable_local_vmclear(int cpu); static inline int crash_local_vmclear_enabled(int cpu); static void crash_vmclear_local_loaded_vmcss(void); static void __loaded_vmcs_clear(void *arg); static void loaded_vmcs_clear(struct loaded_vmcs *loaded_vmcs); static inline bool vpid_sync_vcpu_addr(int vpid, gva_t addr); static inline void vpid_sync_vcpu_single(int vpid); static inline void vpid_sync_vcpu_global(void); static inline void vpid_sync_context(int vpid); static inline void ept_sync_global(void); static inline void ept_sync_context(u64 eptp); static __always_inline void vmcs_check16(unsigned long field); static __always_inline void vmcs_check32(unsigned long field); static __always_inline void vmcs_check64(unsigned long field); static __always_inline void vmcs_checkl(unsigned long field); long __vmcs_readl(unsigned long field); static __always_inline u16 vmcs_read16(unsigned long field); static __always_inline u32 vmcs_read32(unsigned long field); static __always_inline u64 vmcs_read64(unsigned long field); long vmcs_readl(unsigned long field); static noinline void vmwrite_error(unsigned long field, unsigned long value); static __always_inline void __vmcs_writel(unsigned long field, unsigned long value); static __always_inline void vmcs_write16(unsigned long field, u16 value); static __always_inline void vmcs_write32(unsigned long field, u32 value); static __always_inline void vmcs_write64(unsigned long field, u64 value); static __always_inline void vmcs_writel(unsigned long field, unsigned long value); static __always_inline void vmcs_clear_bits(unsigned long field, u32 mask); static __always_inline void vmcs_set_bits(unsigned long field, u32 mask); static inline void vm_entry_controls_reset_shadow(struct vcpu_vmx *vmx); static inline void vm_entry_controls_init(struct vcpu_vmx *vmx, u32 val); static inline void vm_entry_controls_set(struct vcpu_vmx *vmx, u32 val); static inline u32 vm_entry_controls_get(struct vcpu_vmx *vmx); static inline void vm_entry_controls_setbit(struct vcpu_vmx *vmx, u32 val); static inline void vm_entry_controls_clearbit(struct vcpu_vmx *vmx, u32 val); static inline void vm_exit_controls_reset_shadow(struct vcpu_vmx *vmx); static inline void vm_exit_controls_init(struct vcpu_vmx *vmx, u32 val); static inline void vm_exit_controls_set(struct vcpu_vmx *vmx, u32 val); static inline u32 vm_exit_controls_get(struct vcpu_vmx *vmx); static inline void vm_exit_controls_setbit(struct vcpu_vmx *vmx, u32 val); static inline void vm_exit_controls_clearbit(struct vcpu_vmx *vmx, u32 val); static void vmx_segment_cache_clear(struct vcpu_vmx *vmx); static u16 vmx_read_guest_seg_selector(struct vcpu_vmx *vmx, unsigned seg); static ulong vmx_read_guest_seg_base(struct vcpu_vmx *vmx, unsigned seg); static u32 vmx_read_guest_seg_limit(struct vcpu_vmx *vmx, unsigned seg); static u32 vmx_read_guest_seg_ar(struct vcpu_vmx *vmx, unsigned seg); static void update_exception_bitmap(struct kvm_vcpu *vcpu); static bool msr_write_intercepted(struct kvm_vcpu *vcpu, u32 msr); static bool msr_write_intercepted_l01(struct kvm_vcpu *vcpu, u32 msr); static int find_msr(struct vmx_msrs *m, unsigned int msr); static void clear_atomic_switch_msr(struct vcpu_vmx *vmx, unsigned msr); static bool update_transition_efer(struct vcpu_vmx *vmx, int efer_offset); static unsigned long segment_base(u16 selector); static void vmx_prepare_switch_to_guest(struct kvm_vcpu *vcpu); static void vmx_prepare_switch_to_host(struct vcpu_vmx *vmx); static u64 vmx_read_guest_kernel_gs_base(struct vcpu_vmx *vmx); static void vmx_write_guest_kernel_gs_base(struct vcpu_vmx *vmx, u64 data); static void vmx_vcpu_pi_load(struct kvm_vcpu *vcpu, int cpu); static void decache_tsc_multiplier(struct vcpu_vmx *vmx); static void vmx_vcpu_load(struct kvm_vcpu *vcpu, int cpu); static void vmx_vcpu_pi_put(struct kvm_vcpu *vcpu); static void vmx_vcpu_put(struct kvm_vcpu *vcpu); static bool emulation_required(struct kvm_vcpu *vcpu); static inline unsigned long nested_read_cr0(struct vmcs12 *fields); static inline unsigned long nested_read_cr4(struct vmcs12 *fields); static unsigned long vmx_get_rflags(struct kvm_vcpu *vcpu); static void vmx_set_rflags(struct kvm_vcpu *vcpu, unsigned long rflags); static u32 vmx_get_interrupt_shadow(struct kvm_vcpu *vcpu); static void vmx_set_interrupt_shadow(struct kvm_vcpu *vcpu, int mask); static void skip_emulated_instruction(struct kvm_vcpu *vcpu); static int nested_vmx_check_exception(struct kvm_vcpu *vcpu, unsigned long *exit_qual); static void vmx_clear_hlt(struct kvm_vcpu *vcpu); static void vmx_queue_exception(struct kvm_vcpu *vcpu); static bool vmx_rdtscp_supported(void); static bool vmx_invpcid_supported(void); static void move_msr_up(struct vcpu_vmx *vmx, int from, int to); static void setup_msrs(struct vcpu_vmx *vmx); static u64 vmx_read_l1_tsc_offset(struct kvm_vcpu *vcpu); static void vmx_write_tsc_offset(struct kvm_vcpu *vcpu, u64 offset); static inline bool nested_vmx_allowed(struct kvm_vcpu *vcpu); static inline bool fixed_bits_valid(u64 val, u64 fixed0, u64 fixed1); static inline bool vmx_control_verify(u32 control, u32 low, u32 high); static inline u64 vmx_control_msr(u32 low, u32 high); static bool is_bitwise_subset(u64 superset, u64 subset, u64 mask); static int vmx_restore_vmx_basic(struct vcpu_vmx *vmx, u64 data); static int vmx_restore_vmx_misc(struct vcpu_vmx *vmx, u64 data); static int vmx_restore_vmx_ept_vpid_cap(struct vcpu_vmx *vmx, u64 data); static int vmx_restore_fixed0_msr(struct vcpu_vmx *vmx, u32 msr_index, u64 data); static int vmx_set_vmx_msr(struct kvm_vcpu *vcpu, u32 msr_index, u64 data); static int vmx_get_vmx_msr(struct nested_vmx_msrs *msrs, u32 msr_index, u64 *pdata); static int vmx_get_msr_feature(struct kvm_msr_entry *msr); static int vmx_get_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info); static int vmx_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info); static void vmx_cache_reg(struct kvm_vcpu *vcpu, enum kvm_reg reg); static __init int cpu_has_kvm_support(void); static __init int vmx_disabled_by_bios(void); static int hardware_enable(void); static void vmclear_local_loaded_vmcss(void); static void kvm_cpu_vmxoff(void); static void hardware_disable(void); static __init bool allow_1_setting(u32 msr, u32 ctl); static __init int setup_vmcs_config(struct vmcs_config *vmcs_conf); static struct vmcs *alloc_vmcs_cpu(bool shadow, int cpu); static void free_vmcs(struct vmcs *vmcs); static void free_loaded_vmcs(struct loaded_vmcs *loaded_vmcs); static struct vmcs *alloc_vmcs(bool shadow); static int alloc_loaded_vmcs(struct loaded_vmcs *loaded_vmcs); static void free_kvm_area(void); static inline int vmcs_field_width(unsigned long field); static inline int vmcs_field_readonly(unsigned long field); static void init_vmcs_shadow_fields(void); static __init int alloc_kvm_area(void); static void enter_pmode(struct kvm_vcpu *vcpu); static void fix_rmode_seg(int seg, struct kvm_segment *save); static void enter_rmode(struct kvm_vcpu *vcpu); static void vmx_set_efer(struct kvm_vcpu *vcpu, u64 efer); static void enter_lmode(struct kvm_vcpu *vcpu); static void exit_lmode(struct kvm_vcpu *vcpu); static void vmx_flush_tlb(struct kvm_vcpu *vcpu, bool invalidate_gpa); static void vmx_flush_tlb_gva(struct kvm_vcpu *vcpu, gva_t addr); static void vmx_decache_cr0_guest_bits(struct kvm_vcpu *vcpu); static void vmx_decache_cr3(struct kvm_vcpu *vcpu); static void vmx_decache_cr4_guest_bits(struct kvm_vcpu *vcpu); static void ept_load_pdptrs(struct kvm_vcpu *vcpu); static void ept_save_pdptrs(struct kvm_vcpu *vcpu); static bool nested_guest_cr0_valid(struct kvm_vcpu *vcpu, unsigned long val); static bool nested_host_cr0_valid(struct kvm_vcpu *vcpu, unsigned long val); static bool nested_cr4_valid(struct kvm_vcpu *vcpu, unsigned long val); static void vmx_set_cr0(struct kvm_vcpu *vcpu, unsigned long cr0); static int get_ept_level(struct kvm_vcpu *vcpu); static u64 construct_eptp(struct kvm_vcpu *vcpu, unsigned long root_hpa); static void vmx_set_cr3(struct kvm_vcpu *vcpu, unsigned long cr3); static int vmx_set_cr4(struct kvm_vcpu *vcpu, unsigned long cr4); static u64 vmx_get_segment_base(struct kvm_vcpu *vcpu, int seg); static int vmx_get_cpl(struct kvm_vcpu *vcpu); static u32 vmx_segment_access_rights(struct kvm_segment *var); static void vmx_get_cs_db_l_bits(struct kvm_vcpu *vcpu, int *db, int *l); static void vmx_get_idt(struct kvm_vcpu *vcpu, struct desc_ptr *dt); static void vmx_set_idt(struct kvm_vcpu *vcpu, struct desc_ptr *dt); static void vmx_get_gdt(struct kvm_vcpu *vcpu, struct desc_ptr *dt); static void vmx_set_gdt(struct kvm_vcpu *vcpu, struct desc_ptr *dt); static bool rmode_segment_valid(struct kvm_vcpu *vcpu, int seg); static bool code_segment_valid(struct kvm_vcpu *vcpu); static bool stack_segment_valid(struct kvm_vcpu *vcpu); static bool data_segment_valid(struct kvm_vcpu *vcpu, int seg); static bool tr_valid(struct kvm_vcpu *vcpu); static bool ldtr_valid(struct kvm_vcpu *vcpu); static bool cs_ss_rpl_check(struct kvm_vcpu *vcpu); static bool guest_state_valid(struct kvm_vcpu *vcpu); static bool page_address_valid(struct kvm_vcpu *vcpu, gpa_t gpa); static int init_rmode_tss(struct kvm *kvm); static int init_rmode_identity_map(struct kvm *kvm); static void seg_setup(int seg); static int alloc_apic_access_page(struct kvm *kvm); static int allocate_vpid(void); static void free_vpid(int vpid); static u8 vmx_msr_bitmap_mode(struct kvm_vcpu *vcpu); static void vmx_update_msr_bitmap(struct kvm_vcpu *vcpu); static bool vmx_get_enable_apicv(struct kvm_vcpu *vcpu); static void nested_mark_vmcs12_pages_dirty(struct kvm_vcpu *vcpu); static void vmx_complete_nested_posted_interrupt(struct kvm_vcpu *vcpu); static u8 vmx_get_rvi(void); static bool vmx_guest_apic_has_interrupt(struct kvm_vcpu *vcpu); static void vmx_deliver_posted_interrupt(struct kvm_vcpu *vcpu, int vector); static void vmx_set_constant_host_state(struct vcpu_vmx *vmx); static void set_cr4_guest_host_mask(struct vcpu_vmx *vmx); static u32 vmx_pin_based_exec_ctrl(struct vcpu_vmx *vmx); static void vmx_refresh_apicv_exec_ctrl(struct kvm_vcpu *vcpu); static u32 vmx_exec_control(struct vcpu_vmx *vmx); static bool vmx_rdrand_supported(void); static bool vmx_rdseed_supported(void); static void vmx_compute_secondary_exec_control(struct vcpu_vmx *vmx); static void ept_set_mmio_spte_mask(void); static void vmx_vcpu_setup(struct vcpu_vmx *vmx); static void vmx_vcpu_reset(struct kvm_vcpu *vcpu, bool init_event); static bool nested_exit_on_intr(struct kvm_vcpu *vcpu); static bool nested_exit_intr_ack_set(struct kvm_vcpu *vcpu); static bool nested_exit_on_nmi(struct kvm_vcpu *vcpu); static void enable_irq_window(struct kvm_vcpu *vcpu); static void enable_nmi_window(struct kvm_vcpu *vcpu); static void vmx_inject_irq(struct kvm_vcpu *vcpu); static void vmx_inject_nmi(struct kvm_vcpu *vcpu); static bool vmx_get_nmi_mask(struct kvm_vcpu *vcpu); static void vmx_set_nmi_mask(struct kvm_vcpu *vcpu, bool masked); static int vmx_nmi_allowed(struct kvm_vcpu *vcpu); static int vmx_interrupt_allowed(struct kvm_vcpu *vcpu); static int vmx_set_tss_addr(struct kvm *kvm, unsigned int addr); static int vmx_set_identity_map_addr(struct kvm *kvm, u64 ident_addr); static bool rmode_exception(struct kvm_vcpu *vcpu, int vec); static void kvm_machine_check(void); static int handle_machine_check(struct kvm_vcpu *vcpu); static int handle_exception(struct kvm_vcpu *vcpu); static int handle_external_interrupt(struct kvm_vcpu *vcpu); static int handle_triple_fault(struct kvm_vcpu *vcpu); static int handle_io(struct kvm_vcpu *vcpu); static int handle_set_cr0(struct kvm_vcpu *vcpu, unsigned long val); static int handle_set_cr4(struct kvm_vcpu *vcpu, unsigned long val); static int handle_desc(struct kvm_vcpu *vcpu); static int handle_cr(struct kvm_vcpu *vcpu); static int handle_dr(struct kvm_vcpu *vcpu); static u64 vmx_get_dr6(struct kvm_vcpu *vcpu); static void vmx_set_dr6(struct kvm_vcpu *vcpu, unsigned long val); static void vmx_sync_dirty_debug_regs(struct kvm_vcpu *vcpu); static void vmx_set_dr7(struct kvm_vcpu *vcpu, unsigned long val); static int handle_cpuid(struct kvm_vcpu *vcpu); static int handle_rdmsr(struct kvm_vcpu *vcpu); static int handle_wrmsr(struct kvm_vcpu *vcpu); static int handle_tpr_below_threshold(struct kvm_vcpu *vcpu); static int handle_interrupt_window(struct kvm_vcpu *vcpu); static int handle_halt(struct kvm_vcpu *vcpu); static int handle_vmcall(struct kvm_vcpu *vcpu); static int handle_invd(struct kvm_vcpu *vcpu); static int handle_invlpg(struct kvm_vcpu *vcpu); static int handle_rdpmc(struct kvm_vcpu *vcpu); static int handle_wbinvd(struct kvm_vcpu *vcpu); static int handle_xsetbv(struct kvm_vcpu *vcpu); static int handle_xsaves(struct kvm_vcpu *vcpu); static int handle_xrstors(struct kvm_vcpu *vcpu); static int handle_apic_access(struct kvm_vcpu *vcpu); static int handle_apic_eoi_induced(struct kvm_vcpu *vcpu); static int handle_apic_write(struct kvm_vcpu *vcpu); static int handle_task_switch(struct kvm_vcpu *vcpu); static int handle_ept_violation(struct kvm_vcpu *vcpu); static int handle_ept_misconfig(struct kvm_vcpu *vcpu); static int handle_nmi_window(struct kvm_vcpu *vcpu); static int handle_invalid_guest_state(struct kvm_vcpu *vcpu); static void grow_ple_window(struct kvm_vcpu *vcpu); static void shrink_ple_window(struct kvm_vcpu *vcpu); static void wakeup_handler(void); static void vmx_enable_tdp(void); static __init int hardware_setup(void); static __exit void hardware_unsetup(void); static int handle_pause(struct kvm_vcpu *vcpu); static int handle_nop(struct kvm_vcpu *vcpu); static int handle_mwait(struct kvm_vcpu *vcpu); static int handle_invalid_op(struct kvm_vcpu *vcpu); static int handle_monitor_trap(struct kvm_vcpu *vcpu); static int handle_monitor(struct kvm_vcpu *vcpu); static void nested_vmx_succeed(struct kvm_vcpu *vcpu); static void nested_vmx_failInvalid(struct kvm_vcpu *vcpu); static void nested_vmx_abort(struct kvm_vcpu *vcpu, u32 indicator); static enum hrtimer_restart vmx_preemption_timer_fn(struct hrtimer *timer); static int nested_vmx_get_vmptr(struct kvm_vcpu *vcpu, gpa_t *vmpointer); static struct vmcs *alloc_shadow_vmcs(struct kvm_vcpu *vcpu); static int enter_vmx_operation(struct kvm_vcpu *vcpu); static int handle_vmon(struct kvm_vcpu *vcpu); static int nested_vmx_check_permission(struct kvm_vcpu *vcpu); static void vmx_disable_shadow_vmcs(struct vcpu_vmx *vmx); static inline void nested_release_vmcs12(struct vcpu_vmx *vmx); static void free_nested(struct vcpu_vmx *vmx); static int handle_vmoff(struct kvm_vcpu *vcpu); static int handle_vmclear(struct kvm_vcpu *vcpu); static int handle_vmlaunch(struct kvm_vcpu *vcpu); static int handle_vmresume(struct kvm_vcpu *vcpu); static void copy_shadow_to_vmcs12(struct vcpu_vmx *vmx); static void copy_vmcs12_to_shadow(struct vcpu_vmx *vmx); static int nested_vmx_check_vmcs12(struct kvm_vcpu *vcpu); static int handle_vmread(struct kvm_vcpu *vcpu); static int handle_vmwrite(struct kvm_vcpu *vcpu); static void set_current_vmptr(struct vcpu_vmx *vmx, gpa_t vmptr); static int handle_vmptrld(struct kvm_vcpu *vcpu); static int handle_vmptrst(struct kvm_vcpu *vcpu); static int handle_invept(struct kvm_vcpu *vcpu); static int handle_invvpid(struct kvm_vcpu *vcpu); static int handle_invpcid(struct kvm_vcpu *vcpu); static int handle_pml_full(struct kvm_vcpu *vcpu); static int handle_preemption_timer(struct kvm_vcpu *vcpu); static bool valid_ept_address(struct kvm_vcpu *vcpu, u64 address); static int handle_vmfunc(struct kvm_vcpu *vcpu); static int handle_encls(struct kvm_vcpu *vcpu); static bool nested_vmx_exit_reflected(struct kvm_vcpu *vcpu, u32 exit_reason); static int nested_vmx_reflect_vmexit(struct kvm_vcpu *vcpu, u32 exit_reason); static void vmx_get_exit_info(struct kvm_vcpu *vcpu, u64 *info1, u64 *info2); static void vmx_destroy_pml_buffer(struct vcpu_vmx *vmx); static void vmx_flush_pml_buffer(struct kvm_vcpu *vcpu); static void kvm_flush_pml_buffers(struct kvm *kvm); static void vmx_dump_sel(char *name, uint32_t sel); static void vmx_dump_dtsel(char *name, uint32_t limit); static void dump_vmcs(void); static int vmx_handle_exit(struct kvm_vcpu *vcpu); static void vmx_l1d_flush(struct kvm_vcpu *vcpu); static void update_cr8_intercept(struct kvm_vcpu *vcpu, int tpr, int irr); static void vmx_set_virtual_apic_mode(struct kvm_vcpu *vcpu); static void vmx_set_apic_access_page_addr(struct kvm_vcpu *vcpu, hpa_t hpa); static void vmx_hwapic_isr_update(struct kvm_vcpu *vcpu, int max_isr); static void vmx_set_rvi(int vector); static void vmx_hwapic_irr_update(struct kvm_vcpu *vcpu, int max_irr); static int vmx_sync_pir_to_irr(struct kvm_vcpu *vcpu); static u8 vmx_has_apicv_interrupt(struct kvm_vcpu *vcpu); static void vmx_load_eoi_exitmap(struct kvm_vcpu *vcpu, u64 *eoi_exit_bitmap); static void vmx_apicv_post_state_restore(struct kvm_vcpu *vcpu); static void vmx_complete_atomic_exit(struct vcpu_vmx *vmx); static void vmx_handle_external_intr(struct kvm_vcpu *vcpu); static bool vmx_has_emulated_msr(int index); static bool vmx_mpx_supported(void); static bool vmx_xsaves_supported(void); static void vmx_recover_nmi_blocking(struct vcpu_vmx *vmx); static void vmx_complete_interrupts(struct vcpu_vmx *vmx); static void vmx_cancel_injection(struct kvm_vcpu *vcpu); static void atomic_switch_perf_msrs(struct vcpu_vmx *vmx); static void vmx_arm_hv_timer(struct vcpu_vmx *vmx, u32 val); static void vmx_update_hv_timer(struct kvm_vcpu *vcpu); static struct kvm *vmx_vm_alloc(void); static void vmx_vm_free(struct kvm *kvm); static void vmx_switch_vmcs(struct kvm_vcpu *vcpu, struct loaded_vmcs *vmcs); static void vmx_free_vcpu_nested(struct kvm_vcpu *vcpu); static void vmx_free_vcpu(struct kvm_vcpu *vcpu); static struct kvm_vcpu *vmx_create_vcpu(struct kvm *kvm, unsigned int id); static int vmx_vm_init(struct kvm *kvm); static void __init vmx_check_processor_compat(void *rtn); static u64 vmx_get_mt_mask(struct kvm_vcpu *vcpu, gfn_t gfn, bool is_mmio); static int vmx_get_lpage_level(void); static void vmcs_set_secondary_exec_control(u32 new_ctl); static void nested_vmx_cr_fixed1_bits_update(struct kvm_vcpu *vcpu); static void nested_vmx_entry_exit_ctls_update(struct kvm_vcpu *vcpu); static void vmx_cpuid_update(struct kvm_vcpu *vcpu); static void vmx_set_supported_cpuid(u32 func, struct kvm_cpuid_entry2 *entry); static bool nested_ept_ad_enabled(struct kvm_vcpu *vcpu); static unsigned long nested_ept_get_cr3(struct kvm_vcpu *vcpu); static int nested_ept_init_mmu_context(struct kvm_vcpu *vcpu); static void nested_ept_uninit_mmu_context(struct kvm_vcpu *vcpu); static void nested_get_vmcs12_pages(struct kvm_vcpu *vcpu); static void vmx_start_preemption_timer(struct kvm_vcpu *vcpu); static u32 nested_vmx_load_msr(struct kvm_vcpu *vcpu, u64 gpa, u32 count); static int nested_vmx_store_msr(struct kvm_vcpu *vcpu, u64 gpa, u32 count); static bool nested_cr3_valid(struct kvm_vcpu *vcpu, unsigned long val); static void prepare_vmcs02_full(struct kvm_vcpu *vcpu, struct vmcs12 *vmcs12); static int nested_vmx_check_nmi_controls(struct vmcs12 *vmcs12); static int check_vmentry_prereqs(struct kvm_vcpu *vcpu, struct vmcs12 *vmcs12); static int enter_vmx_non_root_mode(struct kvm_vcpu *vcpu, u32 *exit_qual); static int nested_vmx_run(struct kvm_vcpu *vcpu, bool launch); static int vmx_check_nested_events(struct kvm_vcpu *vcpu, bool external_intr); static void vmx_request_immediate_exit(struct kvm_vcpu *vcpu); static u32 vmx_get_preemption_timer_value(struct kvm_vcpu *vcpu); static void sync_vmcs12(struct kvm_vcpu *vcpu, struct vmcs12 *vmcs12); static void vmx_leave_nested(struct kvm_vcpu *vcpu); static int vmx_set_hv_timer(struct kvm_vcpu *vcpu, u64 guest_deadline_tsc); static void vmx_cancel_hv_timer(struct kvm_vcpu *vcpu); static void vmx_sched_in(struct kvm_vcpu *vcpu, int cpu); static void vmx_flush_log_dirty(struct kvm *kvm); static int vmx_write_pml_buffer(struct kvm_vcpu *vcpu); static void __pi_post_block(struct kvm_vcpu *vcpu); static int pi_pre_block(struct kvm_vcpu *vcpu); static int vmx_pre_block(struct kvm_vcpu *vcpu); static void pi_post_block(struct kvm_vcpu *vcpu); static void vmx_post_block(struct kvm_vcpu *vcpu); static void vmx_setup_mce(struct kvm_vcpu *vcpu); static int vmx_smi_allowed(struct kvm_vcpu *vcpu); static int vmx_pre_enter_smm(struct kvm_vcpu *vcpu, char *smstate); static int vmx_pre_leave_smm(struct kvm_vcpu *vcpu, u64 smbase); static int enable_smi_window(struct kvm_vcpu *vcpu); static void vmx_cleanup_l1d_flush(void); static void vmx_exit(void); static int __init vmx_init(void);
85d999fb6e4efdb06ba3c8bb7e0b4d0710b88185e21a0719447d2c7f5bd25bb0
269
xaxaxa
linux-3.13-socfpga-vserver-aufs
net/ipv6/ndisc.c
ndisc_cleanup
void ndisc_cleanup(void) { #ifdef CONFIG_SYSCTL neigh_sysctl_unregister(&nd_tbl.parms); #endif neigh_table_clear(&nd_tbl); unregister_pernet_subsys(&ndisc_net_ops); }
static void ndisc_fill_addr_option(struct sk_buff *skb, int type, void *data); static inline int ndisc_is_useropt(struct nd_opt_hdr *opt); int ndisc_mc_map(const struct in6_addr *addr, char *buf, struct net_device *dev, int dir); static int ndisc_constructor(struct neighbour *neigh); static int pndisc_constructor(struct pneigh_entry *n); static void pndisc_destructor(struct pneigh_entry *n); static void ndisc_send_unsol_na(struct net_device *dev); static void ndisc_error_report(struct neighbour *neigh, struct sk_buff *skb); static void ndisc_solicit(struct neighbour *neigh, struct sk_buff *skb); static void ndisc_recv_ns(struct sk_buff *skb); static void ndisc_recv_na(struct sk_buff *skb); static void ndisc_recv_rs(struct sk_buff *skb); static void ndisc_ra_useropt(struct sk_buff *ra, struct nd_opt_hdr *opt); static void ndisc_router_discovery(struct sk_buff *skb); static void ndisc_redirect_rcv(struct sk_buff *skb); void ndisc_send_redirect(struct sk_buff *skb, const struct in6_addr *target); static void pndisc_redo(struct sk_buff *skb); static bool ndisc_suppress_frag_ndisc(struct sk_buff *skb); int ndisc_rcv(struct sk_buff *skb); static int ndisc_netdev_event(struct notifier_block *this, unsigned long event, void *ptr); int ndisc_ifinfo_sysctl_change(struct ctl_table *ctl, int write, void __user *buffer, size_t *lenp, loff_t *ppos); static int __net_init ndisc_net_init(struct net *net); static void __net_exit ndisc_net_exit(struct net *net); int __init ndisc_init(void); int __init ndisc_late_init(void); void ndisc_late_cleanup(void);
704161853ed80eb610e928fbba703c30cc1bd50a4ada576aa39b36e150ec93b5
170
drone-asobi
cvbebop
ARSDK3_Bebop2/Sources/ARCOMMANDS_Filter.c
ARCOMMANDS_Filter_SetARDrone3GPSSettingsStateHomeChangedBehavior
eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3GPSSettingsStateHomeChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior) { eARCOMMANDS_FILTER_ERROR retError = ARCOMMANDS_FILTER_OK; if (filter == NULL) { retError = ARCOMMANDS_FILTER_ERROR_BAD_FILTER; } if ((behavior != ARCOMMANDS_FILTER_STATUS_ALLOWED) && (behavior != ARCOMMANDS_FILTER_STATUS_BLOCKED)) { retError = ARCOMMANDS_FILTER_ERROR_BAD_STATUS; } if (retError == ARCOMMANDS_FILTER_OK) { filter->CmdARDrone3GPSSettingsStateHomeChangedBehavior = behavior; } return retError; }
ARCOMMANDS_Filter_t* ARCOMMANDS_Filter_NewFilter (eARCOMMANDS_FILTER_STATUS defaultBehavior, eARCOMMANDS_FILTER_ERROR *error); void ARCOMMANDS_Filter_DeleteFilter (ARCOMMANDS_Filter_t **filter); eARCOMMANDS_FILTER_STATUS ARCOMMANDS_Filter_FilterCommand (ARCOMMANDS_Filter_t *filter, uint8_t *buffer, uint32_t len, eARCOMMANDS_FILTER_ERROR *error); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetGenericBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetGenericDefaultBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3Behavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3AnimationsBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3CameraBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3MediaRecordBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3MediaRecordStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3MediaRecordEventBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingEventBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3NetworkBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3NetworkStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingSettingsBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingSettingsStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3SpeedSettingsBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3SpeedSettingsStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3NetworkSettingsBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3NetworkSettingsStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3SettingsStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PictureSettingsBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PictureSettingsStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3MediaStreamingBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3MediaStreamingStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3GPSSettingsBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3GPSSettingsStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3CameraStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3AntiflickeringBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3AntiflickeringStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3GPSStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PROStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingFlatTrimBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingTakeOffBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingPCMDBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingLandingBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingEmergencyBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingNavigateHomeBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingAutoTakeOffModeBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingMoveByBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingUserTakeOffBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingCircleBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3AnimationsFlipBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3CameraOrientationBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3MediaRecordPictureBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3MediaRecordVideoBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3MediaRecordPictureV2Behavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3MediaRecordVideoV2Behavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3NetworkWifiScanBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3NetworkWifiAuthChannelBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingSettingsMaxAltitudeBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingSettingsMaxTiltBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingSettingsAbsolutControlBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingSettingsMaxDistanceBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingSettingsNoFlyOverMaxDistanceBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingSettingsSetAutonomousFlightMaxHorizontalSpeedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingSettingsSetAutonomousFlightMaxVerticalSpeedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingSettingsSetAutonomousFlightMaxHorizontalAccelerationBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingSettingsSetAutonomousFlightMaxVerticalAccelerationBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingSettingsSetAutonomousFlightMaxRotationSpeedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingSettingsBankedTurnBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingSettingsMinAltitudeBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingSettingsCirclingDirectionBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingSettingsCirclingRadiusBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingSettingsCirclingAltitudeBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingSettingsPitchModeBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3SpeedSettingsMaxVerticalSpeedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3SpeedSettingsMaxRotationSpeedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3SpeedSettingsHullProtectionBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3SpeedSettingsOutdoorBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3SpeedSettingsMaxPitchRollRotationSpeedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3NetworkSettingsWifiSelectionBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3NetworkSettingsWifiSecurityBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PictureSettingsPictureFormatSelectionBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PictureSettingsAutoWhiteBalanceSelectionBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PictureSettingsExpositionSelectionBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PictureSettingsSaturationSelectionBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PictureSettingsTimelapseSelectionBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PictureSettingsVideoAutorecordSelectionBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PictureSettingsVideoStabilizationModeBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PictureSettingsVideoRecordingModeBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PictureSettingsVideoFramerateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PictureSettingsVideoResolutionsBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3MediaStreamingVideoEnableBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3MediaStreamingVideoStreamModeBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3GPSSettingsSetHomeBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3GPSSettingsResetHomeBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3GPSSettingsSendControllerGPSBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3GPSSettingsHomeTypeBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3GPSSettingsReturnHomeDelayBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3AntiflickeringElectricFrequencyBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3AntiflickeringSetModeBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3MediaRecordStatePictureStateChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3MediaRecordStateVideoStateChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3MediaRecordStatePictureStateChangedV2Behavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3MediaRecordStateVideoStateChangedV2Behavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3MediaRecordStateVideoResolutionStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3MediaRecordEventPictureEventChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3MediaRecordEventVideoEventChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingStateFlatTrimChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingStateFlyingStateChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingStateAlertStateChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingStateNavigateHomeStateChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingStatePositionChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingStateSpeedChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingStateAttitudeChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingStateAutoTakeOffModeChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingStateAltitudeChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingStateGpsLocationChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingStateLandingStateChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingEventMoveByEndBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3NetworkStateWifiScanListChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3NetworkStateAllWifiScanChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3NetworkStateWifiAuthChannelListChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3NetworkStateAllWifiAuthChannelChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingSettingsStateMaxAltitudeChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingSettingsStateMaxTiltChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingSettingsStateAbsolutControlChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingSettingsStateMaxDistanceChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingSettingsStateNoFlyOverMaxDistanceChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingSettingsStateAutonomousFlightMaxHorizontalSpeedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingSettingsStateAutonomousFlightMaxVerticalSpeedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingSettingsStateAutonomousFlightMaxHorizontalAccelerationBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingSettingsStateAutonomousFlightMaxVerticalAccelerationBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingSettingsStateAutonomousFlightMaxRotationSpeedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingSettingsStateBankedTurnChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingSettingsStateMinAltitudeChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingSettingsStateCirclingDirectionChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingSettingsStateCirclingRadiusChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingSettingsStateCirclingAltitudeChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PilotingSettingsStatePitchModeChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3SpeedSettingsStateMaxVerticalSpeedChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3SpeedSettingsStateMaxRotationSpeedChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3SpeedSettingsStateHullProtectionChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3SpeedSettingsStateOutdoorChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3SpeedSettingsStateMaxPitchRollRotationSpeedChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3NetworkSettingsStateWifiSelectionChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3NetworkSettingsStateWifiSecurityChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3NetworkSettingsStateWifiSecurityBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3SettingsStateProductMotorVersionListChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3SettingsStateProductGPSVersionChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3SettingsStateMotorErrorStateChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3SettingsStateMotorSoftwareVersionChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3SettingsStateMotorFlightsStatusChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3SettingsStateMotorErrorLastErrorChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3SettingsStateP7IDBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3SettingsStateCPUIDBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PictureSettingsStatePictureFormatChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PictureSettingsStateAutoWhiteBalanceChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PictureSettingsStateExpositionChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PictureSettingsStateSaturationChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PictureSettingsStateTimelapseChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PictureSettingsStateVideoAutorecordChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PictureSettingsStateVideoStabilizationModeChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PictureSettingsStateVideoRecordingModeChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PictureSettingsStateVideoFramerateChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PictureSettingsStateVideoResolutionsChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3MediaStreamingStateVideoEnableChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3MediaStreamingStateVideoStreamModeChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3GPSSettingsStateResetHomeChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3GPSSettingsStateGPSFixStateChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3GPSSettingsStateGPSUpdateStateChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3GPSSettingsStateHomeTypeChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3GPSSettingsStateReturnHomeDelayChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3CameraStateOrientationBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3CameraStateDefaultCameraOrientationBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3AntiflickeringStateElectricFrequencyChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3AntiflickeringStateModeChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3GPSStateNumberOfSatelliteChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3GPSStateHomeTypeAvailabilityChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3GPSStateHomeTypeChosenChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetARDrone3PROStateFeaturesBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonNetworkBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonNetworkEventBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonSettingsBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonSettingsStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonCommonBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonCommonStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonOverHeatBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonOverHeatStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonControllerBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonWifiSettingsBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonWifiSettingsStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonMavlinkBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonMavlinkStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonCalibrationBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonCalibrationStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonCameraSettingsStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonGPSBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonFlightPlanStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonFlightPlanEventBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonARLibsVersionsStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonAudioBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonAudioStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonHeadlightsBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonHeadlightsStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonAnimationsBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonAnimationsStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonAccessoryBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonAccessoryStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonChargerBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonChargerStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonRunStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonNetworkDisconnectBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonSettingsAllSettingsBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonSettingsResetBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonSettingsProductNameBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonSettingsCountryBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonSettingsAutoCountryBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonCommonAllStatesBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonCommonCurrentDateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonCommonCurrentTimeBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonCommonRebootBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonOverHeatSwitchOffBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonOverHeatVentilateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonControllerIsPilotingBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonWifiSettingsOutdoorSettingBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonMavlinkStartBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonMavlinkPauseBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonMavlinkStopBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonCalibrationMagnetoCalibrationBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonCalibrationPitotCalibrationBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonGPSControllerPositionForRunBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonAudioControllerReadyForStreamingBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonHeadlightsIntensityBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonAnimationsStartAnimationBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonAnimationsStopAnimationBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonAnimationsStopAllAnimationsBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonAccessoryConfigBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonChargerSetMaxChargeRateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonNetworkEventDisconnectionBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonSettingsStateAllSettingsChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonSettingsStateResetChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonSettingsStateProductNameChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonSettingsStateProductVersionChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonSettingsStateProductSerialHighChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonSettingsStateProductSerialLowChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonSettingsStateCountryChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonSettingsStateAutoCountryChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonCommonStateAllStatesChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonCommonStateBatteryStateChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonCommonStateMassStorageStateListChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonCommonStateMassStorageInfoStateListChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonCommonStateCurrentDateChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonCommonStateCurrentTimeChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonCommonStateMassStorageInfoRemainingListChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonCommonStateWifiSignalChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonCommonStateSensorsStatesListChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonCommonStateProductModelBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonCommonStateCountryListKnownBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonCommonStateDeprecatedMassStorageContentChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonCommonStateMassStorageContentBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonCommonStateMassStorageContentForCurrentRunBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonOverHeatStateOverHeatChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonOverHeatStateOverHeatRegulationChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonWifiSettingsStateOutdoorSettingsChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonMavlinkStateMavlinkFilePlayingStateChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonMavlinkStateMavlinkPlayErrorStateChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonCalibrationStateMagnetoCalibrationStateChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonCalibrationStateMagnetoCalibrationRequiredStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonCalibrationStateMagnetoCalibrationAxisToCalibrateChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonCalibrationStateMagnetoCalibrationStartedChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonCalibrationStatePitotCalibrationStateChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonCameraSettingsStateCameraSettingsChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonFlightPlanStateAvailabilityStateChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonFlightPlanStateComponentStateListChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonFlightPlanStateLockStateChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonFlightPlanEventStartingErrorEventBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonFlightPlanEventSpeedBridleEventBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonARLibsVersionsStateControllerLibARCommandsVersionBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonARLibsVersionsStateSkyControllerLibARCommandsVersionBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonARLibsVersionsStateDeviceLibARCommandsVersionBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonAudioStateAudioStreamingRunningBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonHeadlightsStateIntensityChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonAnimationsStateListBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonAccessoryStateSupportedAccessoriesListChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonAccessoryStateAccessoryConfigChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonAccessoryStateAccessoryConfigModificationEnabledBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonChargerStateMaxChargeRateChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonChargerStateCurrentChargeStateChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonChargerStateLastChargeRateChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonChargerStateChargingInfoBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetCommonRunStateRunIdChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetControllerInfoBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetControllerInfoGpsBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetControllerInfoBarometerBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetDebugBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetDebugGetAllSettingsBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetDebugSetSettingBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetDebugSettingsInfoBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetDebugSettingsListBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetDroneManagerBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetDroneManagerDiscoverDronesBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetDroneManagerConnectBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetDroneManagerForgetBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetDroneManagerDroneListItemBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetDroneManagerConnectionStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetDroneManagerAuthenticationFailedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetDroneManagerConnectionRefusedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoPilotingBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoPilotingStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoAnimationsBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoAnimationsStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoSettingsStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoMediaRecordBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoMediaRecordStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoMediaRecordEventBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoNetworkSettingsBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoNetworkSettingsStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoNetworkBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoNetworkStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoAudioSettingsBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoAudioSettingsStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoRoadPlanBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoRoadPlanStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoSpeedSettingsBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoSpeedSettingsStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoMediaStreamingBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoMediaStreamingStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoVideoSettingsBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoVideoSettingsStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoPilotingPCMDBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoPilotingPostureBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoPilotingAddCapOffsetBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoAnimationsJumpStopBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoAnimationsJumpCancelBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoAnimationsJumpLoadBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoAnimationsJumpBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoAnimationsSimpleAnimationBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoMediaRecordPictureBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoMediaRecordVideoBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoMediaRecordPictureV2Behavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoMediaRecordVideoV2Behavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoNetworkSettingsWifiSelectionBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoNetworkWifiScanBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoNetworkWifiAuthChannelBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoAudioSettingsMasterVolumeBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoAudioSettingsThemeBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoRoadPlanAllScriptsMetadataBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoRoadPlanScriptUploadedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoRoadPlanScriptDeleteBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoRoadPlanPlayScriptBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoSpeedSettingsOutdoorBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoMediaStreamingVideoEnableBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoVideoSettingsAutorecordBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoPilotingStatePostureChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoPilotingStateAlertStateChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoPilotingStateSpeedChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoAnimationsStateJumpLoadChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoAnimationsStateJumpTypeChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoAnimationsStateJumpMotorProblemChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoSettingsStateProductGPSVersionChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoMediaRecordStatePictureStateChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoMediaRecordStateVideoStateChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoMediaRecordStatePictureStateChangedV2Behavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoMediaRecordStateVideoStateChangedV2Behavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoMediaRecordEventPictureEventChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoMediaRecordEventVideoEventChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoNetworkSettingsStateWifiSelectionChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoNetworkStateWifiScanListChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoNetworkStateAllWifiScanChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoNetworkStateWifiAuthChannelListChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoNetworkStateAllWifiAuthChannelChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoNetworkStateLinkQualityChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoAudioSettingsStateMasterVolumeChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoAudioSettingsStateThemeChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoRoadPlanStateScriptMetadataListChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoRoadPlanStateAllScriptsMetadataChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoRoadPlanStateScriptUploadChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoRoadPlanStateScriptDeleteChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoRoadPlanStatePlayScriptChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoSpeedSettingsStateOutdoorChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoMediaStreamingStateVideoEnableChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetJumpingSumoVideoSettingsStateAutorecordChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMapperBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMapperGrabBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMapperMapButtonActionBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMapperMapAxisActionBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMapperResetMappingBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMapperSetExpoBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMapperSetInvertedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMapperGrabStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMapperGrabButtonEventBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMapperGrabAxisEventBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMapperButtonMappingItemBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMapperAxisMappingItemBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMapperApplicationAxisEventBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMapperApplicationButtonEventBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMapperExpoMapItemBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMapperInvertedMapItemBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDroneBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDronePilotingBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDronePilotingStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDroneAnimationsBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDroneMediaRecordBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDroneMediaRecordStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDroneMediaRecordEventBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDronePilotingSettingsBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDronePilotingSettingsStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDroneSpeedSettingsBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDroneSpeedSettingsStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDroneSettingsBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDroneSettingsStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDroneFloodControlStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDroneGPSBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDroneConfigurationBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDroneUsbAccessoryStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDroneUsbAccessoryBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDroneRemoteControllerBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDroneNavigationDataStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDronePilotingFlatTrimBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDronePilotingTakeOffBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDronePilotingPCMDBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDronePilotingLandingBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDronePilotingEmergencyBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDronePilotingAutoTakeOffModeBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDronePilotingFlyingModeBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDronePilotingPlaneGearBoxBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDroneAnimationsFlipBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDroneAnimationsCapBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDroneMediaRecordPictureBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDroneMediaRecordPictureV2Behavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDronePilotingSettingsMaxAltitudeBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDronePilotingSettingsMaxTiltBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDronePilotingSettingsPlaneModePitchBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDroneSpeedSettingsMaxVerticalSpeedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDroneSpeedSettingsMaxRotationSpeedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDroneSpeedSettingsWheelsBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDroneSpeedSettingsMaxHorizontalSpeedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDroneSpeedSettingsMaxPlaneModeRotationSpeedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDroneSettingsCutOutModeBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDroneGPSControllerLatitudeForRunBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDroneGPSControllerLongitudeForRunBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDroneConfigurationControllerTypeBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDroneConfigurationControllerNameBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDroneUsbAccessoryLightControlBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDroneUsbAccessoryClawControlBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDroneUsbAccessoryGunControlBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDroneRemoteControllerSetPairedRemoteBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDronePilotingStateFlatTrimChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDronePilotingStateFlyingStateChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDronePilotingStateAlertStateChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDronePilotingStateAutoTakeOffModeChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDronePilotingStateFlyingModeChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDronePilotingStatePlaneGearBoxChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDroneMediaRecordStatePictureStateChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDroneMediaRecordStatePictureStateChangedV2Behavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDroneMediaRecordEventPictureEventChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDronePilotingSettingsStateMaxAltitudeChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDronePilotingSettingsStateMaxTiltChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDronePilotingSettingsStatePlaneModePitchChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDroneSpeedSettingsStateMaxVerticalSpeedChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDroneSpeedSettingsStateMaxRotationSpeedChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDroneSpeedSettingsStateWheelsChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDroneSpeedSettingsStateMaxHorizontalSpeedChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDroneSpeedSettingsStateMaxPlaneModeRotationSpeedChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDroneSettingsStateProductMotorsVersionChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDroneSettingsStateProductInertialVersionChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDroneSettingsStateCutOutModeChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDroneFloodControlStateFloodControlChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDroneUsbAccessoryStateLightStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDroneUsbAccessoryStateClawStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDroneUsbAccessoryStateGunStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetMiniDroneNavigationDataStateDronePositionBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetPowerupBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetPowerupPilotingBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetPowerupPilotingStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetPowerupPilotingSettingsBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetPowerupPilotingSettingsStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetPowerupMediaRecordBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetPowerupMediaRecordStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetPowerupMediaRecordEventBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetPowerupNetworkSettingsBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetPowerupNetworkSettingsStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetPowerupNetworkBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetPowerupNetworkStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetPowerupMediaStreamingBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetPowerupMediaStreamingStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetPowerupVideoSettingsBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetPowerupVideoSettingsStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetPowerupSoundsBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetPowerupSoundsStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetPowerupPilotingPCMDBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetPowerupPilotingUserTakeOffBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetPowerupPilotingMotorModeBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetPowerupPilotingSettingsSetBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetPowerupMediaRecordPictureV2Behavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetPowerupMediaRecordVideoV2Behavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetPowerupNetworkSettingsWifiSelectionBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetPowerupNetworkWifiScanBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetPowerupNetworkWifiAuthChannelBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetPowerupMediaStreamingVideoEnableBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetPowerupVideoSettingsAutorecordBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetPowerupVideoSettingsVideoModeBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetPowerupSoundsBuzzBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetPowerupPilotingStateAlertStateChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetPowerupPilotingStateFlyingStateChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetPowerupPilotingStateMotorModeChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetPowerupPilotingStateAttitudeChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetPowerupPilotingStateAltitudeChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetPowerupPilotingSettingsStateSettingChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetPowerupMediaRecordStatePictureStateChangedV2Behavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetPowerupMediaRecordStateVideoStateChangedV2Behavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetPowerupMediaRecordEventPictureEventChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetPowerupMediaRecordEventVideoEventChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetPowerupNetworkSettingsStateWifiSelectionChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetPowerupNetworkStateWifiScanListChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetPowerupNetworkStateAllWifiScanChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetPowerupNetworkStateWifiAuthChannelListChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetPowerupNetworkStateAllWifiAuthChannelChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetPowerupNetworkStateLinkQualityChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetPowerupMediaStreamingStateVideoEnableChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetPowerupVideoSettingsStateAutorecordChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetPowerupVideoSettingsStateVideoModeChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetPowerupSoundsStateBuzzChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetProBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetProProBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetProProStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetProProEventBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetProProBoughtFeaturesBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetProProResponseBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetProProActivateFeaturesBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetProProStateSupportedFeaturesBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetProProStateFeaturesActivatedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetProProEventChallengeEventBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetRcBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetRcMonitorChannelsBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetRcStartCalibrationBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetRcInvertChannelBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetRcAbortCalibrationBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetRcResetCalibrationBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetRcReceiverStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetRcChannelsMonitorStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetRcChannelValueBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetRcCalibrationStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetRcReceiverQualityBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerWifiStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerWifiBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerDeviceBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerDeviceStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerSettingsBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerSettingsStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerCommonBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerCommonStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerSkyControllerStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerAccessPointSettingsBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerAccessPointSettingsStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerCameraBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerGamepadInfosBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerGamepadInfosStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerButtonMappingsBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerButtonMappingsStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerAxisMappingsBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerAxisMappingsStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerAxisFiltersBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerAxisFiltersStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerCoPilotingBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerCoPilotingStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerCalibrationBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerCalibrationStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerButtonEventsBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerFactoryBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerWifiRequestWifiListBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerWifiRequestCurrentWifiBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerWifiConnectToWifiBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerWifiForgetWifiBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerWifiWifiAuthChannelBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerDeviceRequestDeviceListBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerDeviceRequestCurrentDeviceBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerDeviceConnectToDeviceBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerSettingsAllSettingsBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerSettingsResetBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerCommonAllStatesBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerAccessPointSettingsAccessPointSSIDBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerAccessPointSettingsAccessPointChannelBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerAccessPointSettingsWifiSelectionBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerCameraResetOrientationBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerGamepadInfosGetGamepadControlsBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerButtonMappingsGetCurrentButtonMappingsBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerButtonMappingsGetAvailableButtonMappingsBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerButtonMappingsSetButtonMappingBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerButtonMappingsDefaultButtonMappingBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerAxisMappingsGetCurrentAxisMappingsBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerAxisMappingsGetAvailableAxisMappingsBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerAxisMappingsSetAxisMappingBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerAxisMappingsDefaultAxisMappingBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerAxisFiltersGetCurrentAxisFiltersBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerAxisFiltersGetPresetAxisFiltersBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerAxisFiltersSetAxisFilterBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerAxisFiltersDefaultAxisFiltersBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerCoPilotingSetPilotingSourceBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerCalibrationEnableMagnetoCalibrationQualityUpdatesBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerFactoryResetBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerWifiStateWifiListBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerWifiStateConnexionChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerWifiStateWifiAuthChannelListChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerWifiStateAllWifiAuthChannelChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerWifiStateWifiSignalChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerDeviceStateDeviceListBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerDeviceStateConnexionChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerSettingsStateAllSettingsChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerSettingsStateResetChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerSettingsStateProductSerialChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerSettingsStateProductVariantChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerSettingsStateProductVersionChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerCommonStateAllStatesChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerSkyControllerStateBatteryChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerSkyControllerStateGpsFixChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerSkyControllerStateGpsPositionChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerSkyControllerStateBatteryStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerSkyControllerStateAttitudeChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerAccessPointSettingsStateAccessPointSSIDChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerAccessPointSettingsStateAccessPointChannelChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerAccessPointSettingsStateWifiSelectionChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerGamepadInfosStateGamepadControlBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerGamepadInfosStateAllGamepadControlsSentBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerButtonMappingsStateCurrentButtonMappingsBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerButtonMappingsStateAllCurrentButtonMappingsSentBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerButtonMappingsStateAvailableButtonMappingsBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerButtonMappingsStateAllAvailableButtonsMappingsSentBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerAxisMappingsStateCurrentAxisMappingsBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerAxisMappingsStateAllCurrentAxisMappingsSentBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerAxisMappingsStateAvailableAxisMappingsBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerAxisMappingsStateAllAvailableAxisMappingsSentBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerAxisFiltersStateCurrentAxisFiltersBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerAxisFiltersStateAllCurrentFiltersSentBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerAxisFiltersStatePresetAxisFiltersBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerAxisFiltersStateAllPresetFiltersSentBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerCoPilotingStatePilotingSourceBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerCalibrationStateMagnetoCalibrationStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerCalibrationStateMagnetoCalibrationQualityUpdatesStateBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetSkyControllerButtonEventsSettingsBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetUnknownFeature1Behavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetUnknownFeature1GeographicRunBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetUnknownFeature1RelativeRunBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetUnknownFeature1LookAtRunBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetUnknownFeature1SpiralAnimRunBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetUnknownFeature1SwingAnimRunBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetUnknownFeature1BoomerangAnimRunBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetUnknownFeature1CandleAnimRunBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetUnknownFeature1DollySlideAnimRunBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetUnknownFeature1UserFramingPositionBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetUnknownFeature1UserGPSDataBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetUnknownFeature1UserBaroDataBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetUnknownFeature1LynxDetectionBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetUnknownFeature1AvailabilityBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetUnknownFeature1RunBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetUnknownFeature1GeographicConfigChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetUnknownFeature1RelativeConfigChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetUnknownFeature1AnimRunBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetUnknownFeature1SpiralAnimConfigChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetUnknownFeature1SwingAnimConfigChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetUnknownFeature1BoomerangAnimConfigChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetUnknownFeature1CandleAnimConfigChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetUnknownFeature1DollySlideAnimConfigChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetUnknownFeature1UserFramingPositionChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetWifiBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetWifiScanBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetWifiUpdateAuthorizedChannelsBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetWifiSetApChannelBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetWifiSetSecurityBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetWifiSetCountryBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetWifiSetEnvironmentBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetWifiScannedItemBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetWifiAuthorizedChannelBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetWifiApChannelChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetWifiSecurityChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetWifiCountryChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetWifiEnvironmentChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior); eARCOMMANDS_FILTER_ERROR ARCOMMANDS_Filter_SetWifiRssiChangedBehavior (ARCOMMANDS_Filter_t *filter, eARCOMMANDS_FILTER_STATUS behavior);
adfff36d8c8efeed1b31ac93e771c4d250986db7c84fb60a7920194833caefe1
651
ircncl
linux-grsec-incremental
net/ipv6/ip6_gre.c
ip6gre_rcv
static int ip6gre_rcv(struct sk_buff *skb) { const struct ipv6hdr *ipv6h; u8 *h; __be16 flags; __sum16 csum = 0; __be32 key = 0; u32 seqno = 0; struct ip6_tnl *tunnel; int offset = 4; __be16 gre_proto; int err; if (!pskb_may_pull(skb, sizeof(struct in6_addr))) goto drop; ipv6h = ipv6_hdr(skb); h = skb->data; flags = *(__be16 *)h; if (flags&(GRE_CSUM|GRE_KEY|GRE_ROUTING|GRE_SEQ|GRE_VERSION)) { if (flags&(GRE_VERSION|GRE_ROUTING)) goto drop; if (flags&GRE_CSUM) { switch (skb->ip_summed) { case CHECKSUM_COMPLETE: csum = csum_fold(skb->csum); if (!csum) break; case CHECKSUM_NONE: skb->csum = 0; csum = __skb_checksum_complete(skb); skb->ip_summed = CHECKSUM_COMPLETE; } offset += 4; } if (flags&GRE_KEY) { key = *(__be32 *)(h + offset); offset += 4; } if (flags&GRE_SEQ) { seqno = ntohl(*(__be32 *)(h + offset)); offset += 4; } } gre_proto = *(__be16 *)(h + 2); tunnel = ip6gre_tunnel_lookup(skb->dev, &ipv6h->saddr, &ipv6h->daddr, key, gre_proto); if (tunnel) { struct pcpu_sw_netstats *tstats; if (!xfrm6_policy_check(NULL, XFRM_POLICY_IN, skb)) goto drop; if (!ip6_tnl_rcv_ctl(tunnel, &ipv6h->daddr, &ipv6h->saddr)) { tunnel->dev->stats.rx_dropped++; goto drop; } skb->protocol = gre_proto; if (flags == 0 && gre_proto == htons(ETH_P_WCCP)) { skb->protocol = htons(ETH_P_IPV6); if ((*(h + offset) & 0xF0) != 0x40) offset += 4; } skb->mac_header = skb->network_header; __pskb_pull(skb, offset); skb_postpull_rcsum(skb, skb_transport_header(skb), offset); if (((flags&GRE_CSUM) && csum) || (!(flags&GRE_CSUM) && tunnel->parms.i_flags&GRE_CSUM)) { tunnel->dev->stats.rx_crc_errors++; tunnel->dev->stats.rx_errors++; goto drop; } if (tunnel->parms.i_flags&GRE_SEQ) { if (!(flags&GRE_SEQ) || (tunnel->i_seqno && (s32)(seqno - tunnel->i_seqno) < 0)) { tunnel->dev->stats.rx_fifo_errors++; tunnel->dev->stats.rx_errors++; goto drop; } tunnel->i_seqno = seqno + 1; } if (tunnel->dev->type == ARPHRD_ETHER) { if (!pskb_may_pull(skb, ETH_HLEN)) { tunnel->dev->stats.rx_length_errors++; tunnel->dev->stats.rx_errors++; goto drop; } ipv6h = ipv6_hdr(skb); skb->protocol = eth_type_trans(skb, tunnel->dev); skb_postpull_rcsum(skb, eth_hdr(skb), ETH_HLEN); } __skb_tunnel_rx(skb, tunnel->dev, tunnel->net); skb_reset_network_header(skb); err = IP6_ECN_decapsulate(ipv6h, skb); if (unlikely(err)) { if (log_ecn_error) net_info_ratelimited("non-ECT from %pI6 with dsfield=%#x\n", &ipv6h->saddr, ipv6_get_dsfield(ipv6h)); if (err > 1) { ++tunnel->dev->stats.rx_frame_errors; ++tunnel->dev->stats.rx_errors; goto drop; } } tstats = this_cpu_ptr(tunnel->dev->tstats); u64_stats_update_begin(&tstats->syncp); tstats->rx_packets++; tstats->rx_bytes += skb->len; u64_stats_update_end(&tstats->syncp); netif_rx(skb); return 0; } icmpv6_send(skb, ICMPV6_DEST_UNREACH, ICMPV6_PORT_UNREACH, 0); drop: kfree_skb(skb); return 0; }
static u32 HASH_ADDR(const struct in6_addr *addr); static void ip6gre_tunnel_link(struct ip6gre_net *ign, struct ip6_tnl *t); static void ip6gre_tunnel_unlink(struct ip6gre_net *ign, struct ip6_tnl *t); static void ip6gre_tunnel_uninit(struct net_device *dev); static void init_tel_txopt(struct ipv6_tel_txoption *opt, __u8 encap_limit); static inline int ip6gre_xmit_ipv4(struct sk_buff *skb, struct net_device *dev); static inline int ip6gre_xmit_ipv6(struct sk_buff *skb, struct net_device *dev); static int ip6gre_xmit_other(struct sk_buff *skb, struct net_device *dev); static void ip6gre_tnl_link_config(struct ip6_tnl *t, int set_mtu); static int ip6gre_tunnel_change_mtu(struct net_device *dev, int new_mtu); static void ip6gre_dev_free(struct net_device *dev); static void ip6gre_tunnel_setup(struct net_device *dev); static int ip6gre_tunnel_init(struct net_device *dev); static void ip6gre_fb_tunnel_init(struct net_device *dev); static int __net_init ip6gre_init_net(struct net *net); static void __net_exit ip6gre_exit_net(struct net *net); static int ip6gre_tunnel_validate(struct nlattr *tb[], struct nlattr *data[]); static int ip6gre_tap_validate(struct nlattr *tb[], struct nlattr *data[]); static int ip6gre_tap_init(struct net_device *dev); static void ip6gre_tap_setup(struct net_device *dev); static void ip6gre_dellink(struct net_device *dev, struct list_head *head); static size_t ip6gre_get_size(const struct net_device *dev); static int ip6gre_fill_info(struct sk_buff *skb, const struct net_device *dev); static int __init ip6gre_init(void); static void __exit ip6gre_fini(void);
a259c4836f89d5a73ffb2f87aaeebfa262606769b941d8c4cb3da7dc8b681243
3,167
Bytewerk
uClinux-ipcam
client/src_initrd/tinylogin/sha1.c
*sprint_sha1_hash
char *sprint_sha1_hash(int *hashval) { int x = 0; char *out = NULL; if ((out = malloc(43)) == NULL) return NULL; memset(out, 0x00, 43); strcpy(out, "$2$"); for (x = 0; x < 5; x++) { sprintf(out + (x * 8) + 3, "%08x", hashval[x]); } out[43] = 0; return out; }
void sha_hash(int *data, int *hash); void sha_init(int *hash); void do_sha_hash(int *hashval, int *pw); char *sha1_crypt(const char *pw);
5f463e81f5f7b48fe9e5b12e4ce68de7cfd0862b909f7604f3d2dc0f14b7e02a
273
amuaddib
qemu_scratch
qtest.c
qtest_process_command
static void qtest_process_command(CharDriverState *chr, gchar **words) { const gchar *command; g_assert(words); command = words[0]; if (qtest_log_fp) { qemu_timeval tv; int i; qtest_get_time(&tv); fprintf(qtest_log_fp, "[R +" FMT_timeval "]", tv.tv_sec, (long) tv.tv_usec); for (i = 0; words[i]; i++) { fprintf(qtest_log_fp, " %s", words[i]); } fprintf(qtest_log_fp, "\n"); } g_assert(command); if (strcmp(words[0], "irq_intercept_out") == 0 || strcmp(words[0], "irq_intercept_in") == 0) { DeviceState *dev; int id; g_assert(words[1]); dev = DEVICE(object_resolve_path(words[1], NULL)); if (!dev) { qtest_send_prefix(chr); qtest_send(chr, "FAIL Unknown device\n"); return; } g_assert(words[2]); id = strtoul(words[2], NULL, 0); if (irq_intercept_dev == dev) { qtest_send_prefix(chr); qtest_send(chr, "OK\n"); return; } if (words[0][14] == 'o') { qemu_irq_intercept_out(&dev->gpio_out, qtest_irq_handler, id, dev->num_gpio_out); } else { qemu_irq_intercept_in(dev->gpio_in, qtest_irq_handler, id, dev->num_gpio_in); } irq_intercept_dev = dev; qtest_send_prefix(chr); qtest_send(chr, "OK\n"); } else if (strcmp(words[0], "set_irq_in") == 0) { DeviceState *dev; qemu_irq irq; unsigned n, level; g_assert(words[1]); dev = DEVICE(object_resolve_path(words[1], NULL)); if (!dev) { qtest_send_prefix(chr); qtest_send(chr, "FAIL Unknown device\n"); return; } g_assert(words[2]); n = strtoul(words[2], NULL, 0); irq = qdev_get_gpio_in(dev, n); g_assert(words[3]); if (strcmp(words[3], "raise") == 0) { level = 1; } else { level = 0; } qemu_set_irq(irq, level); qtest_send(chr, "OK\n"); } else if (strcmp(words[0], "outb") == 0 || strcmp(words[0], "outw") == 0 || strcmp(words[0], "outl") == 0) { uint16_t addr; uint32_t value; g_assert(words[1] && words[2]); addr = strtoul(words[1], NULL, 0); value = strtoul(words[2], NULL, 0); if (words[0][3] == 'b') { cpu_outb(addr, value); } else if (words[0][3] == 'w') { cpu_outw(addr, value); } else if (words[0][3] == 'l') { cpu_outl(addr, value); } qtest_send_prefix(chr); qtest_send(chr, "OK\n"); } else if (strcmp(words[0], "inb") == 0 || strcmp(words[0], "inw") == 0 || strcmp(words[0], "inl") == 0) { uint16_t addr; uint32_t value = -1U; g_assert(words[1]); addr = strtoul(words[1], NULL, 0); if (words[0][2] == 'b') { value = cpu_inb(addr); } else if (words[0][2] == 'w') { value = cpu_inw(addr); } else if (words[0][2] == 'l') { value = cpu_inl(addr); } qtest_send_prefix(chr); qtest_send(chr, "OK 0x%04x\n", value); } else if (strcmp(words[0], "writeb") == 0 || strcmp(words[0], "writew") == 0 || strcmp(words[0], "writel") == 0 || strcmp(words[0], "writeq") == 0) { uint64_t addr; uint64_t value; g_assert(words[1] && words[2]); addr = strtoull(words[1], NULL, 0); value = strtoull(words[2], NULL, 0); if (words[0][5] == 'b') { uint8_t data = value; cpu_physical_memory_write(addr, &data, 1); } else if (words[0][5] == 'w') { uint16_t data = value; tswap16s(&data); cpu_physical_memory_write(addr, &data, 2); } else if (words[0][5] == 'l') { uint32_t data = value; tswap32s(&data); cpu_physical_memory_write(addr, &data, 4); } else if (words[0][5] == 'q') { uint64_t data = value; tswap64s(&data); cpu_physical_memory_write(addr, &data, 8); } qtest_send_prefix(chr); qtest_send(chr, "OK\n"); } else if (strcmp(words[0], "readb") == 0 || strcmp(words[0], "readw") == 0 || strcmp(words[0], "readl") == 0 || strcmp(words[0], "readq") == 0) { uint64_t addr; uint64_t value = UINT64_C(-1); g_assert(words[1]); addr = strtoull(words[1], NULL, 0); if (words[0][4] == 'b') { uint8_t data; cpu_physical_memory_read(addr, &data, 1); value = data; } else if (words[0][4] == 'w') { uint16_t data; cpu_physical_memory_read(addr, &data, 2); value = tswap16(data); } else if (words[0][4] == 'l') { uint32_t data; cpu_physical_memory_read(addr, &data, 4); value = tswap32(data); } else if (words[0][4] == 'q') { cpu_physical_memory_read(addr, &value, 8); tswap64s(&value); } qtest_send_prefix(chr); qtest_send(chr, "OK 0x%016" PRIx64 "\n", value); } else if (strcmp(words[0], "read") == 0) { uint64_t addr, len, i; uint8_t *data; g_assert(words[1] && words[2]); addr = strtoull(words[1], NULL, 0); len = strtoull(words[2], NULL, 0); data = g_malloc(len); cpu_physical_memory_read(addr, data, len); qtest_send_prefix(chr); qtest_send(chr, "OK 0x"); for (i = 0; i < len; i++) { qtest_send(chr, "%02x", data[i]); } qtest_send(chr, "\n"); g_free(data); } else if (strcmp(words[0], "write") == 0) { uint64_t addr, len, i; uint8_t *data; size_t data_len; g_assert(words[1] && words[2] && words[3]); addr = strtoull(words[1], NULL, 0); len = strtoull(words[2], NULL, 0); data_len = strlen(words[3]); if (data_len < 3) { qtest_send(chr, "ERR invalid argument size\n"); return; } data = g_malloc(len); for (i = 0; i < len; i++) { if ((i * 2 + 4) <= data_len) { data[i] = hex2nib(words[3][i * 2 + 2]) << 4; data[i] |= hex2nib(words[3][i * 2 + 3]); } else { data[i] = 0; } } cpu_physical_memory_write(addr, data, len); g_free(data); qtest_send_prefix(chr); qtest_send(chr, "OK\n"); } else if (strcmp(words[0], "clock_step") == 0) { int64_t ns; if (words[1]) { ns = strtoll(words[1], NULL, 0); } else { ns = qemu_clock_deadline(vm_clock); } qtest_clock_warp(qemu_get_clock_ns(vm_clock) + ns); qtest_send_prefix(chr); qtest_send(chr, "OK %"PRIi64"\n", (int64_t)qemu_get_clock_ns(vm_clock)); } else if (strcmp(words[0], "clock_set") == 0) { int64_t ns; g_assert(words[1]); ns = strtoll(words[1], NULL, 0); qtest_clock_warp(ns); qtest_send_prefix(chr); qtest_send(chr, "OK %"PRIi64"\n", (int64_t)qemu_get_clock_ns(vm_clock)); } else { qtest_send_prefix(chr); qtest_send(chr, "FAIL Unknown command `%s'\n", words[0]); } }
static int hex2nib(char ch); static void qtest_get_time(qemu_timeval *tv); static void qtest_send_prefix(CharDriverState *chr); static void GCC_FMT_ATTR(2, 3); static void qtest_irq_handler(void *opaque, int n, int level); static void qtest_process_inbuf(CharDriverState *chr, GString *inbuf); static void qtest_read(void *opaque, const uint8_t *buf, int size); static int qtest_can_read(void *opaque); static void qtest_event(void *opaque, int event); int qtest_init(void);
3f39ec645b4e82338fcfed67a6198ace5bfa3c158e0e0ff4cc4f0c69a6808f3d
7,539
cpopescu
whispermedialib
third-party/gstreamer/gstreamer/win32/common/gstenumtypes.c
void register_gst_element_flags
static void register_gst_element_flags (GType * id) { static const GFlagsValue values[] = { {C_FLAGS (GST_ELEMENT_LOCKED_STATE), "GST_ELEMENT_LOCKED_STATE", "locked-state"}, {C_FLAGS (GST_ELEMENT_IS_SINK), "GST_ELEMENT_IS_SINK", "is-sink"}, {C_FLAGS (GST_ELEMENT_UNPARENTING), "GST_ELEMENT_UNPARENTING", "unparenting"}, {C_FLAGS (GST_ELEMENT_FLAG_LAST), "GST_ELEMENT_FLAG_LAST", "flag-last"}, {0, NULL, NULL} }; *id = g_flags_register_static ("GstElementFlags", values); }
4b6c6c8f9534c701cfdfad4bf6354894579b408312f555b751c286e84bdaba19
515
NicolasDichtel
linux
net/sunrpc/xprt.c
xprt_retry_reserve
void xprt_retry_reserve(struct rpc_task *task) { struct rpc_xprt *xprt = task->tk_xprt; task->tk_status = 0; if (task->tk_rqstp != NULL) return; task->tk_timeout = 0; task->tk_status = -EAGAIN; xprt_do_reserve(xprt, task); }
int xprt_register_transport(struct xprt_class *transport); int xprt_unregister_transport(struct xprt_class *transport); int xprt_load_transport(const char *transport_name); static void xprt_clear_locked(struct rpc_xprt *xprt); int xprt_reserve_xprt(struct rpc_xprt *xprt, struct rpc_task *task); int xprt_reserve_xprt_cong(struct rpc_xprt *xprt, struct rpc_task *task); static inline int xprt_lock_write(struct rpc_xprt *xprt, struct rpc_task *task); static bool __xprt_lock_write_func(struct rpc_task *task, void *data); static void __xprt_lock_write_next(struct rpc_xprt *xprt); static void __xprt_lock_write_next_cong(struct rpc_xprt *xprt); void xprt_release_xprt(struct rpc_xprt *xprt, struct rpc_task *task); void xprt_release_xprt_cong(struct rpc_xprt *xprt, struct rpc_task *task); static inline void xprt_release_write(struct rpc_xprt *xprt, struct rpc_task *task); void xprt_release_rqst_cong(struct rpc_task *task); void xprt_adjust_cwnd(struct rpc_xprt *xprt, struct rpc_task *task, int result); void xprt_wake_pending_tasks(struct rpc_xprt *xprt, int status); void xprt_wait_for_buffer_space(struct rpc_xprt *xprt); bool xprt_write_space(struct rpc_xprt *xprt); void xprt_set_retrans_timeout_def(struct rpc_task *task); void xprt_set_retrans_timeout_rtt(struct rpc_task *task); static void xprt_reset_majortimeo(struct rpc_rqst *req); int xprt_adjust_timeout(struct rpc_rqst *req); static void xprt_autoclose(struct work_struct *work); void xprt_disconnect_done(struct rpc_xprt *xprt); void xprt_force_disconnect(struct rpc_xprt *xprt); void xprt_conditional_disconnect(struct rpc_xprt *xprt, unsigned int cookie); void xprt_unlock_connect(struct rpc_xprt *xprt, void *cookie); void xprt_connect(struct rpc_task *task); static void xprt_connect_status(struct rpc_task *task); struct rpc_rqst *xprt_lookup_rqst(struct rpc_xprt *xprt, __be32 xid); void xprt_pin_rqst(struct rpc_rqst *req); void xprt_unpin_rqst(struct rpc_rqst *req); static void xprt_wait_on_pinned_rqst(struct rpc_rqst *req); void xprt_update_rtt(struct rpc_task *task); void xprt_complete_rqst(struct rpc_task *task, int copied); static void xprt_timer(struct rpc_task *task); void xprt_request_wait_receive(struct rpc_task *task); bool xprt_prepare_transmit(struct rpc_task *task); void xprt_end_transmit(struct rpc_task *task); static void xprt_add_backlog(struct rpc_xprt *xprt, struct rpc_task *task); static void xprt_wake_up_backlog(struct rpc_xprt *xprt); static bool xprt_throttle_congested(struct rpc_xprt *xprt, struct rpc_task *task); static struct rpc_rqst *xprt_dynamic_alloc_slot(struct rpc_xprt *xprt); static bool xprt_dynamic_free_slot(struct rpc_xprt *xprt, struct rpc_rqst *req); void xprt_alloc_slot(struct rpc_xprt *xprt, struct rpc_task *task); void xprt_free_slot(struct rpc_xprt *xprt, struct rpc_rqst *req); static void xprt_free_all_slots(struct rpc_xprt *xprt); void xprt_free(struct rpc_xprt *xprt); void xprt_reserve(struct rpc_task *task); void xprt_release(struct rpc_task *task); static void xprt_init(struct rpc_xprt *xprt, struct net *net); struct rpc_xprt *xprt_create_transport(struct xprt_create *args); static void xprt_destroy_cb(struct work_struct *work); static void xprt_destroy(struct rpc_xprt *xprt); static void xprt_destroy_kref(struct kref *kref); struct rpc_xprt *xprt_get(struct rpc_xprt *xprt); void xprt_put(struct rpc_xprt *xprt);
fdee6681dae7d66e2006cb8b2802ff27ccf6c4bc6cca023129e7cd845c5172bf
235
CyanogenMod
android_kernel_zte_msm8994
drivers/power/qpnp-smbcharger.c
smbchg_fastchg_current_comp_set
smbchg_fastchg_current_comp_set(struct smbchg_chip *chip, int comp_current) { int rc; u8 i; for (i = 0; i < ARRAY_SIZE(fcc_comp_table); i++) if (comp_current == fcc_comp_table[i]) break; if (i >= ARRAY_SIZE(fcc_comp_table)) return -EINVAL; rc = smbchg_sec_masked_write(chip, chip->chgr_base + FCC_CMP_CFG, FCC_COMP_MASK, i); if (rc) dev_err(chip->dev, "Couldn't set fastchg current comp rc = %d\n", rc); return rc; } #define FV
smbchg_read(struct smbchg_chip *chip, u8 *val, u16 addr, int count); smbchg_write(struct smbchg_chip *chip, u8 *val, u16 addr, int count); smbchg_masked_write_raw(struct smbchg_chip *chip, u16 base, u8 mask, u8 val); smbchg_masked_write(struct smbchg_chip *chip, u16 base, u8 mask, u8 val); smbchg_sec_masked_write(struct smbchg_chip *chip, u16 base, u8 mask, u8 val); smbchg_stay_awake(struct smbchg_chip *chip, int reason); smbchg_relax(struct smbchg_chip *chip, int reason); pwr_path_type smbchg_get_pwr_path(struct smbchg_chip *chip); is_otg_present(struct smbchg_chip *chip); is_dc_present(struct smbchg_chip *chip); is_usb_present(struct smbchg_chip *chip); get_type(u8 type_reg); ne char *get_usb_type_name(int type); ne enum power_supply_type get_usb_supply_type(int type); get_prop_batt_status(struct smbchg_chip *chip); get_prop_batt_present(struct smbchg_chip *chip); get_prop_charge_type(struct smbchg_chip *chip); set_property_on_fg(struct smbchg_chip *chip, enum power_supply_property prop, int val); get_property_from_fg(struct smbchg_chip *chip, enum power_supply_property prop, int *val); get_prop_batt_capacity(struct smbchg_chip *chip); get_prop_batt_temp(struct smbchg_chip *chip); get_prop_batt_current_now(struct smbchg_chip *chip); get_prop_batt_voltage_now(struct smbchg_chip *chip); get_prop_batt_voltage_max_design(struct smbchg_chip *chip); get_prop_batt_health(struct smbchg_chip *chip); calc_thermal_limited_current(struct smbchg_chip *chip, int current_ma); smbchg_charging_en(struct smbchg_chip *chip, bool en); smbchg_usb_suspend(struct smbchg_chip *chip, bool suspend); smbchg_dc_suspend(struct smbchg_chip *chip, bool suspend); smbchg_set_dc_current_max(struct smbchg_chip *chip, int current_ma); ct power_supply *get_parallel_psy(struct smbchg_chip *chip); smbchg_usb_update_online_work(struct work_struct *work); smbchg_primary_usb_is_en(struct smbchg_chip *chip, enum enable_reason reason); smcghg_is_battchg_en(struct smbchg_chip *chip, enum battchg_enable_reason reason); smbchg_battchg_en(struct smbchg_chip *chip, bool enable, enum battchg_enable_reason reason, bool *changed); smbchg_primary_usb_en(struct smbchg_chip *chip, bool enable, enum enable_reason reason, bool *changed); smbchg_dc_en(struct smbchg_chip *chip, bool enable, enum enable_reason reason); smbchg_set_high_usb_chg_current(struct smbchg_chip *chip, int current_ma); smbchg_set_usb_current_max(struct smbchg_chip *chip, int current_ma); smbchg_get_min_parallel_current_ma(struct smbchg_chip *chip); smbchg_is_parallel_usb_ok(struct smbchg_chip *chip); smbchg_set_fastchg_current_raw(struct smbchg_chip *chip, int current_ma); smbchg_set_fastchg_current(struct smbchg_chip *chip, int current_ma); smbchg_parallel_usb_charging_en(struct smbchg_chip *chip, bool en); smbchg_sw_esr_pulse_en(struct smbchg_chip *chip, bool en); smbchg_rerun_aicl(struct smbchg_chip *chip); taper_irq_en(struct smbchg_chip *chip, bool en); smbchg_parallel_usb_disable(struct smbchg_chip *chip); smbchg_parallel_usb_taper(struct smbchg_chip *chip); smbchg_is_aicl_complete(struct smbchg_chip *chip); smbchg_get_aicl_level_ma(struct smbchg_chip *chip); smbchg_parallel_usb_enable(struct smbchg_chip *chip); smbchg_parallel_usb_en_work(struct work_struct *work); smbchg_parallel_usb_check_ok(struct smbchg_chip *chip); smbchg_usb_en(struct smbchg_chip *chip, bool enable, enum enable_reason reason); smbchg_set_fastchg_current_user(struct smbchg_chip *chip, int current_ma); ct ilim_entry *smbchg_wipower_find_entry(struct smbchg_chip *chip, struct ilim_map *map, int uv); smbchg_dcin_ilim_config(struct smbchg_chip *chip, int offset, int ma); smbchg_wipower_ilim_config(struct smbchg_chip *chip, struct ilim_entry *ilim); smbchg_wipower_dcin_btm_configure(struct smbchg_chip *chip, struct ilim_entry *ilim); smbchg_wipower_icl_configure(struct smbchg_chip *chip, int dcin_uv, bool div2); smbchg_wipower_icl_deconfigure(struct smbchg_chip *chip); __smbchg_wipower_check(struct smbchg_chip *chip); smbchg_wipower_check(struct smbchg_chip *chip); btm_notify_dcin(enum qpnp_tm_state state, void *ctx); force_dcin_icl_write(void *data, u64 val); smbchg_set_thermal_limited_dc_current_max(struct smbchg_chip *chip, int current_ma); smbchg_set_thermal_limited_usb_current_max(struct smbchg_chip *chip, int current_ma); smbchg_system_temp_level_set(struct smbchg_chip *chip, int lvl_sel); smbchg_calc_max_flash_current(struct smbchg_chip *chip); smbchg_float_voltage_comp_set(struct smbchg_chip *chip, int code); smbchg_float_voltage_set(struct smbchg_chip *chip, int vfloat_mv); smbchg_float_voltage_get(struct smbchg_chip *chip); smbchg_safety_timer_enable(struct smbchg_chip *chip, bool enable); smbchg_otg_pulse_skip_enable(struct smbchg_chip *chip, bool enable); smbchg_battery_is_writeable(struct power_supply *psy, enum power_supply_property prop); smbchg_dc_is_writeable(struct power_supply *psy, enum power_supply_property prop); smbchg_vfloat_adjust_check(struct smbchg_chip *chip); smbchg_is_input_current_limited(struct smbchg_chip *chip); smbchg_cc_esr_wa_check(struct smbchg_chip *chip); smbchg_soc_changed(struct smbchg_chip *chip); smbchg_hw_aicl_rerun_en(struct smbchg_chip *chip, bool en); smbchg_aicl_config(struct smbchg_chip *chip); smbchg_aicl_deglitch_wa_check(struct smbchg_chip *chip); smbchg_config_chg_battery_type(struct smbchg_chip *chip); check_battery_type(struct smbchg_chip *chip); smbchg_external_power_changed(struct power_supply *psy); smbchg_otg_regulator_enable(struct regulator_dev *rdev); smbchg_otg_regulator_disable(struct regulator_dev *rdev); smbchg_otg_regulator_is_enable(struct regulator_dev *rdev); smbchg_external_otg_regulator_enable(struct regulator_dev *rdev); smbchg_external_otg_regulator_disable(struct regulator_dev *rdev); smbchg_external_otg_regulator_is_enable(struct regulator_dev *rdev); smbchg_regulator_init(struct smbchg_chip *chip); smbchg_regulator_deinit(struct smbchg_chip *chip); smbchg_low_icl_wa_check(struct smbchg_chip *chip); smbchg_trim_add_steps(int prev_trim, int delta_steps); smbchg_adjust_vfloat_mv_trim(struct smbchg_chip *chip, int delta_mv); smbchg_vfloat_adjust_work(struct work_struct *work); smbchg_charging_status_change(struct smbchg_chip *chip); eturn_t batt_hot_handler(int irq, void *_chip); eturn_t batt_cold_handler(int irq, void *_chip); eturn_t batt_warm_handler(int irq, void *_chip); eturn_t batt_cool_handler(int irq, void *_chip); eturn_t batt_pres_handler(int irq, void *_chip); eturn_t vbat_low_handler(int irq, void *_chip); eturn_t chg_error_handler(int irq, void *_chip); eturn_t fastchg_handler(int irq, void *_chip); eturn_t chg_hot_handler(int irq, void *_chip); smbchg_hvdcp_det_work(struct work_struct *work); eturn_t chg_term_handler(int irq, void *_chip); eturn_t taper_handler(int irq, void *_chip); eturn_t recharge_handler(int irq, void *_chip); eturn_t safety_timeout_handler(int irq, void *_chip); eturn_t power_ok_handler(int irq, void *_chip); eturn_t dcin_uv_handler(int irq, void *_chip); handle_usb_removal(struct smbchg_chip *chip); is_src_detect_high(struct smbchg_chip *chip); read_usb_type(struct smbchg_chip *chip, char **usb_type_name, enum power_supply_type *usb_supply_type); handle_usb_insertion(struct smbchg_chip *chip); _usb_status(struct smbchg_chip *chip, bool usb_present, bool force); eturn_t usbin_ov_handler(int irq, void *_chip); eturn_t usbin_uv_handler(int irq, void *_chip); eturn_t src_detect_handler(int irq, void *_chip); eturn_t otg_oc_handler(int irq, void *_chip); eturn_t otg_fail_handler(int irq, void *_chip); get_current_time(unsigned long *now_tm_sec); increment_aicl_count(struct smbchg_chip *chip); eturn_t aicl_done_handler(int irq, void *_chip); eturn_t usbid_change_handler(int irq, void *_chip); determine_initial_status(struct smbchg_chip *chip); ne int get_bpd(const char *name); smbchg_hw_init(struct smbchg_chip *chip); smb_parse_wipower_map_dt(struct smbchg_chip *chip, struct ilim_map *map, char *property); smb_parse_wipower_dt(struct smbchg_chip *chip); smb_parse_dt(struct smbchg_chip *chip); smbchg_request_irqs(struct smbchg_chip *chip); smbchg_parse_peripherals(struct smbchg_chip *chip); ne void dump_reg(struct smbchg_chip *chip, u16 addr, const char *name); dump_regs(struct smbchg_chip *chip); create_debugfs_entries(struct smbchg_chip *chip); print_battery_information(struct smbchg_chip *chip); power_debug_work_func(struct work_struct *work); power_debug_work_control(int on); e_t po_info_show(struct device *dev, struct device_attribute *attr, char *buf); e_t po_info_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count); e_t clock_dump_show(struct device *dev, struct device_attribute *attr, char *buf); power_debug_init(struct smbchg_chip *chip); get_prop_pmic_temp(struct smbchg_chip *chip); get_prop_charger_voltage_now(struct smbchg_chip *chip); _xcharge_mode_en(struct smbchg_chip *chip ,bool xcharge_mode_en); smbchg_check_the_usb_current(struct smbchg_chip *chip); eoc_work(struct work_struct *work); start_eoc_work(struct smbchg_chip *chip); smbchg_probe(struct spmi_device *spmi); smbchg_remove(struct spmi_device *spmi); __init smbchg_init(void); __exit smbchg_exit(void);
0986c8b2022a6aa6a9dfd877439060884eeac2807229ff1cbb5ef9930b34944c
460
jmvalin
aom
vp10/encoder/encodeframe.c
encode_frame_internal
static void encode_frame_internal(VP10_COMP *cpi) { ThreadData *const td = &cpi->td; MACROBLOCK *const x = &td->mb; VP10_COMMON *const cm = &cpi->common; MACROBLOCKD *const xd = &x->e_mbd; RD_COUNTS *const rdc = &cpi->td.rd_counts; int i; xd->mi = cm->mi_grid_visible; xd->mi[0] = cm->mi; vp10_zero(*td->counts); vp10_zero(rdc->coef_counts); vp10_zero(rdc->comp_pred_diff); vp10_zero(rdc->filter_diff); rdc->m_search_count = 0; rdc->ex_search_count = 0; for (i = 0; i < MAX_SEGMENTS; ++i) { const int qindex = CONFIG_MISC_FIXES && cm->seg.enabled ? vp10_get_qindex(&cm->seg, i, cm->base_qindex) : cm->base_qindex; xd->lossless[i] = qindex == 0 && cm->y_dc_delta_q == 0 && cm->uv_dc_delta_q == 0 && cm->uv_ac_delta_q == 0; } if (!cm->seg.enabled && xd->lossless[0]) x->optimize = 0; cm->tx_mode = select_tx_mode(cpi, xd); vp10_frame_init_quantizer(cpi); vp10_initialize_rd_consts(cpi); vp10_initialize_me_consts(cpi, x, cm->base_qindex); init_encode_frame_mb_context(cpi); cm->use_prev_frame_mvs = !cm->error_resilient_mode && cm->width == cm->last_width && cm->height == cm->last_height && !cm->intra_only && cm->last_show_frame; cm->prev_mi = cm->use_prev_frame_mvs ? cm->prev_mip + cm->mi_stride + 1 : NULL; x->quant_fp = cpi->sf.use_quant_fp; vp10_zero(x->skip_txfm); { struct vpx_usec_timer emr_timer; vpx_usec_timer_start(&emr_timer); #if CONFIG_FP_MB_STATS if (cpi->use_fp_mb_stats) { input_fpmb_stats(&cpi->twopass.firstpass_mb_stats, cm, &cpi->twopass.this_frame_mb_stats); } #endif if (VPXMIN(cpi->oxcf.max_threads, 1 << cm->log2_tile_cols) > 1) vp10_encode_tiles_mt(cpi); else encode_tiles(cpi); vpx_usec_timer_mark(&emr_timer); cpi->time_encode_sb_row += vpx_usec_timer_elapsed(&emr_timer); } #if 0 cpi->last_frame_distortion = cpi->frame_distortion; #endif }
static void tree_to_node(void *data, BLOCK_SIZE bsize, variance_node *node); static void fill_variance(int64_t s2, int64_t s, int c, var *v); static void get_variance(var *v); static void sum_2_variances(const var *a, const var *b, var *r); static void fill_variance_tree(void *data, BLOCK_SIZE bsize); static void set_vbp_thresholds(VP10_COMP *cpi, int64_t thresholds[], int q); void vp10_set_variance_partition_thresholds(VP10_COMP *cpi, int q); static void update_stats(VP10_COMMON *cm, ThreadData *td); static INLINE void store_pred_mv(MACROBLOCK *x, PICK_MODE_CONTEXT *ctx); static INLINE void load_pred_mv(MACROBLOCK *x, PICK_MODE_CONTEXT *ctx); static INLINE MOTION_DIRECTION get_motion_direction_fp(uint8_t fp_byte); static void init_encode_frame_mb_context(VP10_COMP *cpi); static int check_dual_ref_flags(VP10_COMP *cpi); static void reset_skip_tx_size(VP10_COMMON *cm, TX_SIZE max_tx_size); static MV_REFERENCE_FRAME get_frame_type(const VP10_COMP *cpi); static TX_MODE select_tx_mode(const VP10_COMP *cpi, MACROBLOCKD *const xd); void vp10_init_tile_data(VP10_COMP *cpi); static void encode_tiles(VP10_COMP *cpi); void vp10_encode_frame(VP10_COMP *cpi);
dd71d55169251a44ec543346a09bf8cf255204fafafa2ed442dc5c32fd8ba32d
2,042
koura-h
compostela
aggregator/main.c
void _dump
void _dump(sc_log_message* msg) { az_log(LOG_DEBUG, ">>>DATA"); fwrite(&msg->content, msg->content_length, 1, stderr); az_log(LOG_DEBUG, "<<<DATA"); }
d14b46c31e588ecc3be38e1a42647259dcebae7e09756c829fe0a7bc09d50759
169
PlanTool
plantool
code/Deterministic/SGplan/seq-sat-sgplan6/Metric-FF/dis_producible.c
solve_producible_variables_relax
int solve_producible_variables_relax(dis_State *S, int nr_g, int *goal, int nr_f, int *goalf, float *value) { dis_State S1; int i, relax_plan_length, h, x, *done, *relax_plan; int saved_gnum_flogic_goal, saved_gnum_fnumeric_goal; int *saved_gflogic_goal, *saved_gfnumeric_goal_fl; float *saved_gfnumeric_goal_c; dis_Comparator *saved_gfnumeric_goal_comp; save_goals(&saved_gnum_flogic_goal, &saved_gflogic_goal, &saved_gnum_fnumeric_goal, &saved_gfnumeric_goal_fl, &saved_gfnumeric_goal_c, &saved_gfnumeric_goal_comp, dis_gnum_flogic_goal, dis_gflogic_goal, dis_gnum_fnumeric_goal, dis_gfnumeric_goal_fl, dis_gfnumeric_goal_c, dis_gfnumeric_goal_comp); dis_gnum_flogic_goal = nr_g; for (i=0;i<nr_g;i++) dis_gflogic_goal[i] = goal[i]; dis_gnum_fnumeric_goal = nr_f; for (i=0;i<nr_f;i++) { dis_gfnumeric_goal_comp[i] = GEQ; dis_gfnumeric_goal_fl[i] = goalf[i]; dis_gfnumeric_goal_c[i] = value[i]; } dis_red_space = 2; h = dis_get_1P(S); dis_red_space = 0; restore_goals(&dis_gnum_flogic_goal, dis_gflogic_goal, &dis_gnum_fnumeric_goal, dis_gfnumeric_goal_fl, dis_gfnumeric_goal_c, dis_gfnumeric_goal_comp, saved_gnum_flogic_goal, saved_gflogic_goal, saved_gnum_fnumeric_goal, saved_gfnumeric_goal_fl, saved_gfnumeric_goal_c, saved_gfnumeric_goal_comp); if (h == 0) return 0; if (h == dis_INFINITY) return -1; dis_make_state(&S1, dis_gnum_ft_conn, dis_gnum_fl_conn); relax_plan = (int *) malloc(relax_lnum_used_O*sizeof(int)); done = (int *) calloc(relax_lnum_used_O, sizeof(int)); relax_plan_length = relax_lnum_used_O; for (i=0;i<relax_plan_length;i++) relax_plan[relax_plan_length-i-1] = relax_lused_O[i]; x = 1; while (x) { x = 0; for (i=0;i<relax_plan_length;i++) if (!done[i] ) if (is_applicable(S, relax_plan[i])) { done[i] = x = 1; dis_result_to_dest(&S1, S, relax_plan[i], -1); if (producible_solution_length > dis_MAX_PLAN_LENGTH - 1) { fprintf(stderr, "LONG\n"); return -1; } producible_solution[producible_solution_length++] = relax_plan[i]; dis_source_to_dest(S, &S1); } } xfree(done); xfree(relax_plan); dis_destroy_state(&S1); return 1; }
int solve_subproblem(int h, int b, int r, int g_w, int h_w, int o); void relax_producible_variables(dis_State *new, dis_State *old, float *relaxv); int solve_producible_variables(dis_State *S, int nr_g, int *goal, int nr_f, int *goalf, float *value); void set_bvar_init(dis_State *S); int psearch(); int producible_main(); void print_producible_variables(); void detect_producible_variables();
ee56f5cd879ff58e29a00ff679b9d12f68ccc40b26ef416dc1ae15c4dcf81ad6
2,297
brho
plan9
sys/src/cmd/fossil/cache.c
void cacheFlush
void cacheFlush(Cache *c, int wait) { vtLock(c->lk); if(wait){ while(c->ndirty){ vtWakeup(c->flush); vtSleep(c->flushwait); } }else if(c->ndirty) vtWakeup(c->flush); vtUnlock(c->lk); }
aaffe4f211c1899613f95d87ae0426e4d3e4c32e482c85d8e14cd8607579be9d
212
MultiNet-80211
Hostapd
wpa_supplicant/ctrl_iface_unix.c
wpa_supplicant_ctrl_iface_level
static int wpa_supplicant_ctrl_iface_level(struct ctrl_iface_priv *priv, struct sockaddr_un *from, socklen_t fromlen, char *level) { struct wpa_ctrl_dst *dst; wpa_printf(MSG_DEBUG, "CTRL_IFACE LEVEL %s", level); dl_list_for_each(dst, &priv->ctrl_dst, struct wpa_ctrl_dst, list) { if (fromlen == dst->addrlen && os_memcmp(from->sun_path, dst->addr.sun_path, fromlen - offsetof(struct sockaddr_un, sun_path)) == 0) { wpa_hexdump(MSG_DEBUG, "CTRL_IFACE changed monitor " "level", (u8 *) from->sun_path, fromlen - offsetof(struct sockaddr_un, sun_path)); dst->debug_level = atoi(level); return 0; } } return -1; }
static char * wpa_supplicant_ctrl_iface_path(struct wpa_supplicant *wpa_s); void wpa_supplicant_ctrl_iface_deinit(struct ctrl_iface_priv *priv); void wpa_supplicant_ctrl_iface_wait(struct ctrl_iface_priv *priv);
bbc6893e94c1c24a9d527b52a24b20158017271456e82c0d5cb9c4a0f2642764
724
mete0r
hypua2jamo
src/hypua2jamo-c/d2c.c
hypua_d2c_ucs4_calcsize
int hypua_d2c_ucs4_calcsize(const uint32_t *src, int srclen) { int dstlen = 0; struct Decoder decoder; hypua_decoder_init_d2c(&decoder); dstlen += hypua_decoder_calcsize_ucs4(&decoder, src, srclen); dstlen += hypua_decoder_calcsize_flush(&decoder); return dstlen; }
void hypua_decoder_init_d2c(void *decoder); int hypua_d2c_ucs2_calcsize(const uint16_t *src, int srclen); int hypua_d2c_ucs2_decode(const uint16_t *src, int srclen, uint16_t *dst); int hypua_d2c_ucs4_decode(const uint32_t *src, int srclen, uint32_t *dst);
341f1062068b0db231236e3ea7e8740038b3f747989d43398e6cbbc44842f562
272
bhull2010
compizfusion-plugins-extra-packages
src/3d/3d.c
void tdDonePaintScreen
static void tdDonePaintScreen (CompScreen *s) { TD_SCREEN (s); if (tds->active && tds->damage) { tds->damage = FALSE; damageScreen (s); } UNWRAP (tds, s, donePaintScreen); (*s->donePaintScreen) (s); WRAP (tds, s, donePaintScreen, tdDonePaintScreen); }
caa69b9a68a30ddfbeef38fa6b84641636520061a587f896d8ea9081e9379d00
284
FriendSoftwareLabs
friendup
lib/tls/openssl/openssl-server.c
int lws_tls_server_vhost_backend_init
int lws_tls_server_vhost_backend_init(const struct lws_context_creation_info *info, struct lws_vhost *vhost, struct lws *wsi) { unsigned long error; SSL_METHOD *method = (SSL_METHOD *)SSLv23_server_method(); if (!method) { error = ERR_get_error(); lwsl_err("problem creating ssl method %lu: %s\n", error, ERR_error_string(error, (char *)vhost->context->pt[0].serv_buf)); return 1; } vhost->tls.ssl_ctx = SSL_CTX_new(method); if (!vhost->tls.ssl_ctx) { error = ERR_get_error(); lwsl_err("problem creating ssl context %lu: %s\n", error, ERR_error_string(error, (char *)vhost->context->pt[0].serv_buf)); return 1; } SSL_CTX_set_ex_data(vhost->tls.ssl_ctx, openssl_SSL_CTX_private_data_index, (char *)vhost->context); SSL_CTX_set_options(vhost->tls.ssl_ctx, SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3); #ifdef SSL_OP_NO_COMPRESSION SSL_CTX_set_options(vhost->tls.ssl_ctx, SSL_OP_NO_COMPRESSION); #endif SSL_CTX_set_options(vhost->tls.ssl_ctx, SSL_OP_SINGLE_DH_USE); SSL_CTX_set_options(vhost->tls.ssl_ctx, SSL_OP_CIPHER_SERVER_PREFERENCE); if (info->ssl_cipher_list) SSL_CTX_set_cipher_list(vhost->tls.ssl_ctx, info->ssl_cipher_list); #if defined(LWS_HAVE_SSL_CTX_set_ciphersuites) if (info->tls1_3_plus_cipher_list) SSL_CTX_set_ciphersuites(vhost->tls.ssl_ctx, info->tls1_3_plus_cipher_list); #endif #if !defined(OPENSSL_NO_TLSEXT) SSL_CTX_set_tlsext_servername_callback(vhost->tls.ssl_ctx, lws_ssl_server_name_cb); SSL_CTX_set_tlsext_servername_arg(vhost->tls.ssl_ctx, vhost->context); #endif if (info->ssl_ca_filepath && !SSL_CTX_load_verify_locations(vhost->tls.ssl_ctx, info->ssl_ca_filepath, NULL)) { lwsl_err("%s: SSL_CTX_load_verify_locations unhappy\n", __func__); } if (info->ssl_options_set) SSL_CTX_set_options(vhost->tls.ssl_ctx, info->ssl_options_set); #if (OPENSSL_VERSION_NUMBER >= 0x009080df) && !defined(USE_WOLFSSL) if (info->ssl_options_clear) SSL_CTX_clear_options(vhost->tls.ssl_ctx, info->ssl_options_clear); #endif lwsl_info(" SSL options 0x%lX\n", (unsigned long)SSL_CTX_get_options(vhost->tls.ssl_ctx)); if (!vhost->tls.use_ssl || (!info->ssl_cert_filepath && !info->server_ssl_cert_mem)) return 0; lws_ssl_bind_passphrase(vhost->tls.ssl_ctx, 0, info); return lws_tls_server_certs_load(vhost, wsi, info->ssl_cert_filepath, info->ssl_private_key_filepath, info->server_ssl_cert_mem, info->server_ssl_cert_mem_len, info->server_ssl_private_key_mem, info->server_ssl_private_key_mem_len); }
2d5ab89c1e0bcd9d62b2c35f7198dede60708ba8ac2db2ffc79e66cb9b9877b2
2,604
stanford-mast
reflex
dp/net/tcp_api.c
*handle_to_tcpapi
static inline struct tcpapi_pcb *handle_to_tcpapi(hid_t handle, struct eth_fg **new_cur_fg) { struct mempool *p; struct tcpapi_pcb *api; int fg = ((handle >> 48) & 0xffff); unsigned long idx = (handle & 0xffffffffffff); if (unlikely(fg >= ETH_MAX_TOTAL_FG + NCPU)) return NULL; if (unlikely(idx >= MAX_PCBS)) return NULL; *new_cur_fg = fgs[fg]; eth_fg_set_current(fgs[fg]); p = &percpu_get(pcb_mempool); api = (struct tcpapi_pcb *) percpu_get(handle2pcb_array[idx]) MEMPOOL_SANITY_ACCESS(api); percpu_get(syscall_cookie) = api->cookie; return api; }
static inline hid_t tcpapi_to_handle(struct eth_fg *cur_fg, struct tcpapi_pcb *pcb); static void recv_a_pbuf(struct tcpapi_pcb *api, struct pbuf *p); long bsys_tcp_accept(hid_t handle, unsigned long cookie); long bsys_tcp_reject(hid_t handle); ssize_t bsys_tcp_send(hid_t handle, void *addr, size_t len); long bsys_tcp_recv_done(hid_t handle, size_t len); long bsys_tcp_close(hid_t handle); static void mark_dead(struct tcpapi_pcb *api, unsigned long cookie); static err_t on_recv(void *arg, struct tcp_pcb *pcb, struct pbuf *p, err_t err); static void on_err(void *arg, err_t err); static err_t on_sent(void *arg, struct tcp_pcb *pcb, u16_t len); static err_t on_accept(struct eth_fg *cur_fg, void *arg, struct tcp_pcb *pcb, err_t err); static err_t on_connected(void *arg, struct tcp_pcb *pcb, err_t err); static uint32_t compute_toeplitz_hash(const uint8_t *key, uint32_t src_addr, uint32_t dst_addr, uint16_t src_port, uint16_t dst_port); static void remove_fdir_filter(struct ip_tuple *id); static struct eth_fg *get_port_with_fdir(struct ip_tuple *id); struct eth_fg *get_local_port_and_set_queue(struct ip_tuple *id); long bsys_tcp_connect(struct ip_tuple __user *id, unsigned long cookie); int tcp_output_packet(struct eth_fg *cur_fg, struct tcp_pcb *pcb, struct pbuf *p); int tcp_api_init(void); int tcp_api_init_cpu(void); int tcp_api_init_fg(void);
311b02a6ad9e26a42fd7195906ebcae6558c76a3b8d5b8fb001bfd3cf4179611
588
ecrc
girih
pluto_examples/gen_kernels/lbpar_3d7pt_var32_32_4_128/3d7pt_var.c
main
int main(int argc, char *argv[]) { int t, i, j, k, m, test; int Nx, Ny, Nz, Nt; if (argc > 3) { Nx = atoi(argv[1])+2; Ny = atoi(argv[2])+2; Nz = atoi(argv[3])+2; } if (argc > 4) Nt = atoi(argv[4]); double ****A = (double ****) malloc(sizeof(double***)*2); for(m=0; m<2;m++){ A[m] = (double ***) malloc(sizeof(double**)*Nz); for(i=0; i<Nz; i++){ A[m][i] = (double**) malloc(sizeof(double*)*Ny); for(j=0;j<Ny;j++){ A[m][i][j] = (double*) malloc(sizeof(double)*Nx); } } } double ****coef = (double ****) malloc(sizeof(double***)*7); for(m=0; m<7;m++){ coef[m] = (double ***) malloc(sizeof(double**)*Nz); for(i=0; i<Nz; i++){ coef[m][i] = (double**) malloc(sizeof(double*)*Ny); for(j=0;j<Ny;j++){ coef[m][i][j] = (double*) malloc(sizeof(double)*Nx); } } } int *tile_size = (int*) malloc(sizeof(int)); tile_size[0] = -1; tile_size = (int*) realloc((void *)tile_size, sizeof(int)*5); tile_size[0] = 32; tile_size[1] = 32; tile_size[2] = 4; tile_size[3] = 128; tile_size[4] = -1; int ts_return = -1; struct timeval start, end, result; double tdiff = 0.0, min_tdiff=1.e100; const int BASE = 1024; srand(42); for (i = 1; i < Nz; i++) { for (j = 1; j < Ny; j++) { for (k = 1; k < Nx; k++) { A[0][i][j][k] = 1.0 * (rand() % BASE); } } } for (m=0; m<7; m++) { for (i=1; i<Nz; i++) { for (j=1; j<Ny; j++) { for (k=1; k<Nx; k++) { coef[m][i][j][k] = 1.0 * (rand() % BASE); } } } } #ifdef LIKWID_PERFMON LIKWID_MARKER_INIT; #pragma omp parallel { LIKWID_MARKER_THREADINIT; #pragma omp barrier LIKWID_MARKER_START("calc"); } #endif int num_threads = 1; #if defined(_OPENMP) num_threads = omp_get_max_threads(); #endif for(test=0; test<TESTS; test++){ gettimeofday(&start, 0); #pragma scop for (t = 0; t < Nt-1; t++) { for (i = 1; i < Nz-1; i++) { for (j = 1; j < Ny-1; j++) { for (k = 1; k < Nx-1; k++) { A[(t+1)%2][i][j][k] = coef[0][i][j][k] * A[t%2][i ][j ][k ] + coef[1][i][j][k] * A[t%2][i-1][j ][k ] + coef[2][i][j][k] * A[t%2][i ][j-1][k ] + coef[3][i][j][k] * A[t%2][i ][j ][k-1] + coef[4][i][j][k] * A[t%2][i+1][j ][k ] + coef[5][i][j][k] * A[t%2][i ][j+1][k ] + coef[6][i][j][k] * A[t%2][i ][j ][k+1]; } } } } #pragma endscop gettimeofday(&end, 0); ts_return = timeval_subtract(&result, &end, &start); tdiff = (double) (result.tv_sec + result.tv_usec * 1.0e-6); min_tdiff = min(min_tdiff, tdiff); printf("Rank 0 TEST# %d time: %f\n", test, tdiff); } PRINT_RESULTS(1, "variable no-symmetry") #ifdef LIKWID_PERFMON #pragma omp parallel { LIKWID_MARKER_STOP("calc"); } LIKWID_MARKER_CLOSE; #endif for(i=0; i<Nz; i++){ for(j=0;j<Ny;j++){ free(A[0][i][j]); free(A[1][i][j]); } free(A[0][i]); free(A[1][i]); } free(A[0]); free(A[1]); for(m=0; m<7;m++){ for(i=0; i<Nz; i++){ for(j=0;j<Ny;j++){ free(coef[m][i][j]); } free(coef[m][i]); } free(coef[m]); } return 0; }
int timeval_subtract(struct timeval *result, struct timeval *x, struct timeval *y);
3723be20940f0a763a5792d286318dd4c0dc0fd05e400228fa15ae7392e9f788
3,644
geomview
gv2
glTrace/glTrace.c
trace_glEdgeFlag
void trace_glEdgeFlag( GLboolean flag ) { printf("%20s(", "glEdgeFlag"); printf("%10s = 0X%x", "flag", flag); printf(");\n"); glEdgeFlag ( flag ); }
void trace_glClearIndex( GLfloat c ); void trace_glClearColor( GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha ); void trace_glClear( GLbitfield mask ); void trace_glIndexMask( GLuint mask ); void trace_glColorMask( GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha ); void trace_glAlphaFunc( GLenum func, GLclampf ref ); void trace_glBlendFunc( GLenum sfactor, GLenum dfactor ); void trace_glLogicOp( GLenum opcode ); void trace_glCullFace( GLenum mode ); void trace_glFrontFace( GLenum mode ); void trace_glPointSize( GLfloat size ); void trace_glLineWidth( GLfloat width ); void trace_glLineStipple( GLint factor, GLushort pattern ); void trace_glPolygonMode( GLenum face, GLenum mode ); void trace_glPolygonOffset( GLfloat factor, GLfloat units ); void trace_glPolygonStipple( const GLubyte * mask ); void trace_glGetPolygonStipple( GLubyte * mask ); void trace_glEdgeFlagv( const GLboolean * flag ); void trace_glScissor( GLint x, GLint y, GLsizei width, GLsizei height ); void trace_glClipPlane( GLenum plane, const GLdouble * equation ); void trace_glGetClipPlane( GLenum plane, GLdouble * equation ); void trace_glDrawBuffer( GLenum mode ); void trace_glReadBuffer( GLenum mode ); void trace_glEnable( GLenum cap ); void trace_glDisable( GLenum cap ); GLboolean trace_glIsEnabled( GLenum cap ); void trace_glEnableClientState( GLenum cap ); void trace_glDisableClientState( GLenum cap ); void trace_glGetBooleanv( GLenum pname, GLboolean * params ); void trace_glGetDoublev( GLenum pname, GLdouble * params ); void trace_glGetFloatv( GLenum pname, GLfloat * params ); void trace_glGetIntegerv( GLenum pname, GLint * params ); void trace_glPushAttrib( GLbitfield mask ); void trace_glPopAttrib( void ); void trace_glPushClientAttrib( GLbitfield mask ); void trace_glPopClientAttrib( void ); GLint trace_glRenderMode( GLenum mode ); GLenum trace_glGetError( void ); void trace_glFinish( void ); void trace_glFlush( void ); void trace_glHint( GLenum target, GLenum mode ); void trace_glClearDepth( GLclampd depth ); void trace_glDepthFunc( GLenum func ); void trace_glDepthMask( GLboolean flag ); void trace_glDepthRange( GLclampd near_val, GLclampd far_val ); void trace_glClearAccum( GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha ); void trace_glAccum( GLenum op, GLfloat value ); void trace_glMatrixMode( GLenum mode ); void trace_glOrtho( GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble near_val, GLdouble far_val ); void trace_glFrustum( GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble near_val, GLdouble far_val ); void trace_glViewport( GLint x, GLint y, GLsizei width, GLsizei height ); void trace_glPushMatrix( void ); void trace_glPopMatrix( void ); void trace_glLoadIdentity( void ); void trace_glLoadMatrixd( const GLdouble * m ); void trace_glLoadMatrixf( const GLfloat * m ); void trace_glMultMatrixd( const GLdouble * m ); void trace_glMultMatrixf( const GLfloat * m ); void trace_glRotated( GLdouble angle, GLdouble x, GLdouble y, GLdouble z ); void trace_glRotatef( GLfloat angle, GLfloat x, GLfloat y, GLfloat z ); void trace_glScaled( GLdouble x, GLdouble y, GLdouble z ); void trace_glScalef( GLfloat x, GLfloat y, GLfloat z ); void trace_glTranslated( GLdouble x, GLdouble y, GLdouble z ); void trace_glTranslatef( GLfloat x, GLfloat y, GLfloat z ); GLboolean trace_glIsList( GLuint list ); void trace_glDeleteLists( GLuint list, GLsizei range ); GLuint trace_glGenLists( GLsizei range ); void trace_glNewList( GLuint list, GLenum mode ); void trace_glEndList( void ); void trace_glCallList( GLuint list ); void trace_glCallLists( GLsizei n, GLenum type, const GLvoid * lists ); void trace_glListBase( GLuint base ); void trace_glBegin( GLenum mode ); void trace_glEnd( void ); void trace_glVertex2d( GLdouble x, GLdouble y ); void trace_glVertex2f( GLfloat x, GLfloat y ); void trace_glVertex2i( GLint x, GLint y ); void trace_glVertex2s( GLshort x, GLshort y ); void trace_glVertex3d( GLdouble x, GLdouble y, GLdouble z ); void trace_glVertex3f( GLfloat x, GLfloat y, GLfloat z ); void trace_glVertex3i( GLint x, GLint y, GLint z ); void trace_glVertex3s( GLshort x, GLshort y, GLshort z ); void trace_glVertex4d( GLdouble x, GLdouble y, GLdouble z, GLdouble w ); void trace_glVertex4f( GLfloat x, GLfloat y, GLfloat z, GLfloat w ); void trace_glVertex4i( GLint x, GLint y, GLint z, GLint w ); void trace_glVertex4s( GLshort x, GLshort y, GLshort z, GLshort w ); void trace_glVertex2dv( const GLdouble * v ); void trace_glVertex2fv( const GLfloat * v ); void trace_glVertex2iv( const GLint * v ); void trace_glVertex2sv( const GLshort * v ); void trace_glVertex3dv( const GLdouble * v ); void trace_glVertex3fv( const GLfloat * v ); void trace_glVertex3iv( const GLint * v ); void trace_glVertex3sv( const GLshort * v ); void trace_glVertex4dv( const GLdouble * v ); void trace_glVertex4fv( const GLfloat * v ); void trace_glVertex4iv( const GLint * v ); void trace_glVertex4sv( const GLshort * v ); void trace_glNormal3b( GLbyte nx, GLbyte ny, GLbyte nz ); void trace_glNormal3d( GLdouble nx, GLdouble ny, GLdouble nz ); void trace_glNormal3f( GLfloat nx, GLfloat ny, GLfloat nz ); void trace_glNormal3i( GLint nx, GLint ny, GLint nz ); void trace_glNormal3s( GLshort nx, GLshort ny, GLshort nz ); void trace_glNormal3bv( const GLbyte * v ); void trace_glNormal3dv( const GLdouble * v ); void trace_glNormal3fv( const GLfloat * v ); void trace_glNormal3iv( const GLint * v ); void trace_glNormal3sv( const GLshort * v ); void trace_glIndexd( GLdouble c ); void trace_glIndexf( GLfloat c ); void trace_glIndexi( GLint c ); void trace_glIndexs( GLshort c ); void trace_glIndexub( GLubyte c ); void trace_glIndexdv( const GLdouble * c ); void trace_glIndexfv( const GLfloat * c ); void trace_glIndexiv( const GLint * c ); void trace_glIndexsv( const GLshort * c ); void trace_glIndexubv( const GLubyte * c ); void trace_glColor3b( GLbyte red, GLbyte green, GLbyte blue ); void trace_glColor3d( GLdouble red, GLdouble green, GLdouble blue ); void trace_glColor3f( GLfloat red, GLfloat green, GLfloat blue ); void trace_glColor3i( GLint red, GLint green, GLint blue ); void trace_glColor3s( GLshort red, GLshort green, GLshort blue ); void trace_glColor3ub( GLubyte red, GLubyte green, GLubyte blue ); void trace_glColor3ui( GLuint red, GLuint green, GLuint blue ); void trace_glColor3us( GLushort red, GLushort green, GLushort blue ); void trace_glColor4b( GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha ); void trace_glColor4d( GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha ); void trace_glColor4f( GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha ); void trace_glColor4i( GLint red, GLint green, GLint blue, GLint alpha ); void trace_glColor4s( GLshort red, GLshort green, GLshort blue, GLshort alpha ); void trace_glColor4ub( GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha ); void trace_glColor4ui( GLuint red, GLuint green, GLuint blue, GLuint alpha ); void trace_glColor4us( GLushort red, GLushort green, GLushort blue, GLushort alpha ); void trace_glColor3bv( const GLbyte * v ); void trace_glColor3dv( const GLdouble * v ); void trace_glColor3fv( const GLfloat * v ); void trace_glColor3iv( const GLint * v ); void trace_glColor3sv( const GLshort * v ); void trace_glColor3ubv( const GLubyte * v ); void trace_glColor3uiv( const GLuint * v ); void trace_glColor3usv( const GLushort * v ); void trace_glColor4bv( const GLbyte * v ); void trace_glColor4dv( const GLdouble * v ); void trace_glColor4fv( const GLfloat * v ); void trace_glColor4iv( const GLint * v ); void trace_glColor4sv( const GLshort * v ); void trace_glColor4ubv( const GLubyte * v ); void trace_glColor4uiv( const GLuint * v ); void trace_glColor4usv( const GLushort * v ); void trace_glTexCoord1d( GLdouble s ); void trace_glTexCoord1f( GLfloat s ); void trace_glTexCoord1i( GLint s ); void trace_glTexCoord1s( GLshort s ); void trace_glTexCoord2d( GLdouble s, GLdouble t ); void trace_glTexCoord2f( GLfloat s, GLfloat t ); void trace_glTexCoord2i( GLint s, GLint t ); void trace_glTexCoord2s( GLshort s, GLshort t ); void trace_glTexCoord3d( GLdouble s, GLdouble t, GLdouble r ); void trace_glTexCoord3f( GLfloat s, GLfloat t, GLfloat r ); void trace_glTexCoord3i( GLint s, GLint t, GLint r ); void trace_glTexCoord3s( GLshort s, GLshort t, GLshort r ); void trace_glTexCoord4d( GLdouble s, GLdouble t, GLdouble r, GLdouble q ); void trace_glTexCoord4f( GLfloat s, GLfloat t, GLfloat r, GLfloat q ); void trace_glTexCoord4i( GLint s, GLint t, GLint r, GLint q ); void trace_glTexCoord4s( GLshort s, GLshort t, GLshort r, GLshort q ); void trace_glTexCoord1dv( const GLdouble * v ); void trace_glTexCoord1fv( const GLfloat * v ); void trace_glTexCoord1iv( const GLint * v ); void trace_glTexCoord1sv( const GLshort * v ); void trace_glTexCoord2dv( const GLdouble * v ); void trace_glTexCoord2fv( const GLfloat * v ); void trace_glTexCoord2iv( const GLint * v ); void trace_glTexCoord2sv( const GLshort * v ); void trace_glTexCoord3dv( const GLdouble * v ); void trace_glTexCoord3fv( const GLfloat * v ); void trace_glTexCoord3iv( const GLint * v ); void trace_glTexCoord3sv( const GLshort * v ); void trace_glTexCoord4dv( const GLdouble * v ); void trace_glTexCoord4fv( const GLfloat * v ); void trace_glTexCoord4iv( const GLint * v ); void trace_glTexCoord4sv( const GLshort * v ); void trace_glRasterPos2d( GLdouble x, GLdouble y ); void trace_glRasterPos2f( GLfloat x, GLfloat y ); void trace_glRasterPos2i( GLint x, GLint y ); void trace_glRasterPos2s( GLshort x, GLshort y ); void trace_glRasterPos3d( GLdouble x, GLdouble y, GLdouble z ); void trace_glRasterPos3f( GLfloat x, GLfloat y, GLfloat z ); void trace_glRasterPos3i( GLint x, GLint y, GLint z ); void trace_glRasterPos3s( GLshort x, GLshort y, GLshort z ); void trace_glRasterPos4d( GLdouble x, GLdouble y, GLdouble z, GLdouble w ); void trace_glRasterPos4f( GLfloat x, GLfloat y, GLfloat z, GLfloat w ); void trace_glRasterPos4i( GLint x, GLint y, GLint z, GLint w ); void trace_glRasterPos4s( GLshort x, GLshort y, GLshort z, GLshort w ); void trace_glRasterPos2dv( const GLdouble * v ); void trace_glRasterPos2fv( const GLfloat * v ); void trace_glRasterPos2iv( const GLint * v ); void trace_glRasterPos2sv( const GLshort * v ); void trace_glRasterPos3dv( const GLdouble * v ); void trace_glRasterPos3fv( const GLfloat * v ); void trace_glRasterPos3iv( const GLint * v ); void trace_glRasterPos3sv( const GLshort * v ); void trace_glRasterPos4dv( const GLdouble * v ); void trace_glRasterPos4fv( const GLfloat * v ); void trace_glRasterPos4iv( const GLint * v ); void trace_glRasterPos4sv( const GLshort * v ); void trace_glRectd( GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2 ); void trace_glRectf( GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2 ); void trace_glRecti( GLint x1, GLint y1, GLint x2, GLint y2 ); void trace_glRects( GLshort x1, GLshort y1, GLshort x2, GLshort y2 ); void trace_glRectdv( const GLdouble * v1, const GLdouble * v2 ); void trace_glRectfv( const GLfloat * v1, const GLfloat * v2 ); void trace_glRectiv( const GLint * v1, const GLint * v2 ); void trace_glRectsv( const GLshort * v1, const GLshort * v2 ); void trace_glVertexPointer( GLint size, GLenum type, GLsizei stride, const GLvoid * ptr ); void trace_glNormalPointer( GLenum type, GLsizei stride, const GLvoid * ptr ); void trace_glColorPointer( GLint size, GLenum type, GLsizei stride, const GLvoid * ptr ); void trace_glIndexPointer( GLenum type, GLsizei stride, const GLvoid * ptr ); void trace_glTexCoordPointer( GLint size, GLenum type, GLsizei stride, const GLvoid * ptr ); void trace_glEdgeFlagPointer( GLsizei stride, const GLvoid * ptr ); void trace_glGetPointerv( GLenum pname, void ** params ); void trace_glArrayElement( GLint i ); void trace_glDrawArrays( GLenum mode, GLint first, GLsizei count ); void trace_glDrawElements( GLenum mode, GLsizei count, GLenum type, const GLvoid * indices ); void trace_glInterleavedArrays( GLenum format, GLsizei stride, const GLvoid * pointer ); void trace_glShadeModel( GLenum mode ); void trace_glLightf( GLenum light, GLenum pname, GLfloat param ); void trace_glLighti( GLenum light, GLenum pname, GLint param ); void trace_glLightfv( GLenum light, GLenum pname, const GLfloat * params ); void trace_glLightiv( GLenum light, GLenum pname, const GLint * params ); void trace_glGetLightfv( GLenum light, GLenum pname, GLfloat * params ); void trace_glGetLightiv( GLenum light, GLenum pname, GLint * params ); void trace_glLightModelf( GLenum pname, GLfloat param ); void trace_glLightModeli( GLenum pname, GLint param ); void trace_glLightModelfv( GLenum pname, const GLfloat * params ); void trace_glLightModeliv( GLenum pname, const GLint * params ); void trace_glMaterialf( GLenum face, GLenum pname, GLfloat param ); void trace_glMateriali( GLenum face, GLenum pname, GLint param ); void trace_glMaterialfv( GLenum face, GLenum pname, const GLfloat * params ); void trace_glMaterialiv( GLenum face, GLenum pname, const GLint * params ); void trace_glGetMaterialfv( GLenum face, GLenum pname, GLfloat * params ); void trace_glGetMaterialiv( GLenum face, GLenum pname, GLint * params ); void trace_glColorMaterial( GLenum face, GLenum mode ); void trace_glPixelZoom( GLfloat xfactor, GLfloat yfactor ); void trace_glPixelStoref( GLenum pname, GLfloat param ); void trace_glPixelStorei( GLenum pname, GLint param ); void trace_glPixelTransferf( GLenum pname, GLfloat param ); void trace_glPixelTransferi( GLenum pname, GLint param ); void trace_glPixelMapfv( GLenum map, GLint mapsize, const GLfloat * values ); void trace_glPixelMapuiv( GLenum map, GLint mapsize, const GLuint * values ); void trace_glPixelMapusv( GLenum map, GLint mapsize, const GLushort * values ); void trace_glGetPixelMapfv( GLenum map, GLfloat * values ); void trace_glGetPixelMapuiv( GLenum map, GLuint * values ); void trace_glGetPixelMapusv( GLenum map, GLushort * values ); void trace_glBitmap( GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte * bitmap ); void trace_glReadPixels( GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid * pixels ); void trace_glDrawPixels( GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid * pixels ); void trace_glCopyPixels( GLint x, GLint y, GLsizei width, GLsizei height, GLenum type ); void trace_glStencilFunc( GLenum func, GLint ref, GLuint mask ); void trace_glStencilMask( GLuint mask ); void trace_glStencilOp( GLenum fail, GLenum zfail, GLenum zpass ); void trace_glClearStencil( GLint s ); void trace_glTexGend( GLenum coord, GLenum pname, GLdouble param ); void trace_glTexGenf( GLenum coord, GLenum pname, GLfloat param ); void trace_glTexGeni( GLenum coord, GLenum pname, GLint param ); void trace_glTexGendv( GLenum coord, GLenum pname, const GLdouble * params ); void trace_glTexGenfv( GLenum coord, GLenum pname, const GLfloat * params ); void trace_glTexGeniv( GLenum coord, GLenum pname, const GLint * params ); void trace_glGetTexGendv( GLenum coord, GLenum pname, GLdouble * params ); void trace_glGetTexGenfv( GLenum coord, GLenum pname, GLfloat * params ); void trace_glGetTexGeniv( GLenum coord, GLenum pname, GLint * params ); void trace_glTexEnvf( GLenum target, GLenum pname, GLfloat param ); void trace_glTexEnvi( GLenum target, GLenum pname, GLint param ); void trace_glTexEnvfv( GLenum target, GLenum pname, const GLfloat * params ); void trace_glTexEnviv( GLenum target, GLenum pname, const GLint * params ); void trace_glGetTexEnvfv( GLenum target, GLenum pname, GLfloat * params ); void trace_glGetTexEnviv( GLenum target, GLenum pname, GLint * params ); void trace_glTexParameterf( GLenum target, GLenum pname, GLfloat param ); void trace_glTexParameteri( GLenum target, GLenum pname, GLint param ); void trace_glTexParameterfv( GLenum target, GLenum pname, const GLfloat * params ); void trace_glTexParameteriv( GLenum target, GLenum pname, const GLint * params ); void trace_glGetTexParameterfv( GLenum target, GLenum pname, GLfloat * params ); void trace_glGetTexParameteriv( GLenum target, GLenum pname, GLint * params ); void trace_glGetTexLevelParameterfv( GLenum target, GLint level, GLenum pname, GLfloat * params ); void trace_glGetTexLevelParameteriv( GLenum target, GLint level, GLenum pname, GLint * params ); void trace_glTexImage1D( GLenum target, GLint level, GLint internalFormat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid * pixels ); void trace_glTexImage2D( GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid * pixels ); void trace_glGetTexImage( GLenum target, GLint level, GLenum format, GLenum type, GLvoid * pixels ); void trace_glGenTextures( GLsizei n, GLuint * textures ); void trace_glDeleteTextures( GLsizei n, const GLuint * textures ); void trace_glBindTexture( GLenum target, GLuint texture ); void trace_glPrioritizeTextures( GLsizei n, const GLuint * textures, const GLclampf * priorities ); GLboolean trace_glAreTexturesResident( GLsizei n, const GLuint * textures, GLboolean * residences ); GLboolean trace_glIsTexture( GLuint texture ); void trace_glTexSubImage1D( GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid * pixels ); void trace_glTexSubImage2D( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid * pixels ); void trace_glCopyTexImage1D( GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border ); void trace_glCopyTexImage2D( GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border ); void trace_glCopyTexSubImage1D( GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width ); void trace_glCopyTexSubImage2D( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height ); void trace_glMap1d( GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble * points ); void trace_glMap1f( GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat * points ); void trace_glMap2d( GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble * points ); void trace_glMap2f( GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat * points ); void trace_glGetMapdv( GLenum target, GLenum query, GLdouble * v ); void trace_glGetMapfv( GLenum target, GLenum query, GLfloat * v ); void trace_glGetMapiv( GLenum target, GLenum query, GLint * v ); void trace_glEvalCoord1d( GLdouble u ); void trace_glEvalCoord1f( GLfloat u ); void trace_glEvalCoord1dv( const GLdouble * u ); void trace_glEvalCoord1fv( const GLfloat * u ); void trace_glEvalCoord2d( GLdouble u, GLdouble v ); void trace_glEvalCoord2f( GLfloat u, GLfloat v ); void trace_glEvalCoord2dv( const GLdouble * u ); void trace_glEvalCoord2fv( const GLfloat * u ); void trace_glMapGrid1d( GLint un, GLdouble u1, GLdouble u2 ); void trace_glMapGrid1f( GLint un, GLfloat u1, GLfloat u2 ); void trace_glMapGrid2d( GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2 ); void trace_glMapGrid2f( GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2 ); void trace_glEvalPoint1( GLint i ); void trace_glEvalPoint2( GLint i, GLint j ); void trace_glEvalMesh1( GLenum mode, GLint i1, GLint i2 ); void trace_glEvalMesh2( GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2 ); void trace_glFogf( GLenum pname, GLfloat param ); void trace_glFogi( GLenum pname, GLint param ); void trace_glFogfv( GLenum pname, const GLfloat * params ); void trace_glFogiv( GLenum pname, const GLint * params ); void trace_glFeedbackBuffer( GLsizei size, GLenum type, GLfloat * buffer ); void trace_glPassThrough( GLfloat token ); void trace_glSelectBuffer( GLsizei size, GLuint * buffer ); void trace_glInitNames( void ); void trace_glLoadName( GLuint name ); void trace_glPushName( GLuint name ); void trace_glPopName( void ); void trace_glDrawRangeElements( GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid * indices ); void trace_glTexImage3D( GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid * pixels ); void trace_glTexSubImage3D( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid * pixels ); void trace_glCopyTexSubImage3D( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height ); void trace_glColorTable( GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid * table ); void trace_glColorSubTable( GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid * data ); void trace_glColorTableParameteriv( GLenum target, GLenum pname, const GLint * params ); void trace_glColorTableParameterfv( GLenum target, GLenum pname, const GLfloat * params ); void trace_glCopyColorSubTable( GLenum target, GLsizei start, GLint x, GLint y, GLsizei width ); void trace_glCopyColorTable( GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width ); void trace_glGetColorTable( GLenum target, GLenum format, GLenum type, GLvoid * table ); void trace_glGetColorTableParameterfv( GLenum target, GLenum pname, GLfloat * params ); void trace_glGetColorTableParameteriv( GLenum target, GLenum pname, GLint * params ); void trace_glBlendEquation( GLenum mode ); void trace_glBlendColor( GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha ); void trace_glHistogram( GLenum target, GLsizei width, GLenum internalformat, GLboolean sink ); void trace_glResetHistogram( GLenum target ); void trace_glGetHistogram( GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid * values ); void trace_glGetHistogramParameterfv( GLenum target, GLenum pname, GLfloat * params ); void trace_glGetHistogramParameteriv( GLenum target, GLenum pname, GLint * params ); void trace_glMinmax( GLenum target, GLenum internalformat, GLboolean sink ); void trace_glResetMinmax( GLenum target ); void trace_glGetMinmax( GLenum target, GLboolean reset, GLenum format, GLenum types, GLvoid * values ); void trace_glGetMinmaxParameterfv( GLenum target, GLenum pname, GLfloat * params ); void trace_glGetMinmaxParameteriv( GLenum target, GLenum pname, GLint * params ); void trace_glConvolutionFilter1D( GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid * image ); void trace_glConvolutionFilter2D( GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid * image ); void trace_glConvolutionParameterf( GLenum target, GLenum pname, GLfloat params ); void trace_glConvolutionParameterfv( GLenum target, GLenum pname, const GLfloat * params ); void trace_glConvolutionParameteri( GLenum target, GLenum pname, GLint params ); void trace_glConvolutionParameteriv( GLenum target, GLenum pname, const GLint * params ); void trace_glCopyConvolutionFilter1D( GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width ); void trace_glCopyConvolutionFilter2D( GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height ); void trace_glGetConvolutionFilter( GLenum target, GLenum format, GLenum type, GLvoid * image ); void trace_glGetConvolutionParameterfv( GLenum target, GLenum pname, GLfloat * params ); void trace_glGetConvolutionParameteriv( GLenum target, GLenum pname, GLint * params ); void trace_glSeparableFilter2D( GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid * row, const GLvoid * column ); void trace_glGetSeparableFilter( GLenum target, GLenum format, GLenum type, GLvoid * row, GLvoid * column, GLvoid * span ); void trace_glActiveTextureARB( GLenum texture ); void trace_glClientActiveTextureARB( GLenum texture ); void trace_glMultiTexCoord1dARB( GLenum target, GLdouble s ); void trace_glMultiTexCoord1dvARB( GLenum target, const GLdouble * v ); void trace_glMultiTexCoord1fARB( GLenum target, GLfloat s ); void trace_glMultiTexCoord1fvARB( GLenum target, const GLfloat * v ); void trace_glMultiTexCoord1iARB( GLenum target, GLint s ); void trace_glMultiTexCoord1ivARB( GLenum target, const GLint * v ); void trace_glMultiTexCoord1sARB( GLenum target, GLshort s ); void trace_glMultiTexCoord1svARB( GLenum target, const GLshort * v ); void trace_glMultiTexCoord2dARB( GLenum target, GLdouble s, GLdouble t ); void trace_glMultiTexCoord2dvARB( GLenum target, const GLdouble * v ); void trace_glMultiTexCoord2fARB( GLenum target, GLfloat s, GLfloat t ); void trace_glMultiTexCoord2fvARB( GLenum target, const GLfloat * v ); void trace_glMultiTexCoord2iARB( GLenum target, GLint s, GLint t ); void trace_glMultiTexCoord2ivARB( GLenum target, const GLint * v ); void trace_glMultiTexCoord2sARB( GLenum target, GLshort s, GLshort t ); void trace_glMultiTexCoord2svARB( GLenum target, const GLshort * v ); void trace_glMultiTexCoord3dARB( GLenum target, GLdouble s, GLdouble t, GLdouble r ); void trace_glMultiTexCoord3dvARB( GLenum target, const GLdouble * v ); void trace_glMultiTexCoord3fARB( GLenum target, GLfloat s, GLfloat t, GLfloat r ); void trace_glMultiTexCoord3fvARB( GLenum target, const GLfloat * v ); void trace_glMultiTexCoord3iARB( GLenum target, GLint s, GLint t, GLint r ); void trace_glMultiTexCoord3ivARB( GLenum target, const GLint * v ); void trace_glMultiTexCoord3sARB( GLenum target, GLshort s, GLshort t, GLshort r ); void trace_glMultiTexCoord3svARB( GLenum target, const GLshort * v ); void trace_glMultiTexCoord4dARB( GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q ); void trace_glMultiTexCoord4dvARB( GLenum target, const GLdouble * v ); void trace_glMultiTexCoord4fARB( GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q ); void trace_glMultiTexCoord4fvARB( GLenum target, const GLfloat * v ); void trace_glMultiTexCoord4iARB( GLenum target, GLint s, GLint t, GLint r, GLint q ); void trace_glMultiTexCoord4ivARB( GLenum target, const GLint * v ); void trace_glMultiTexCoord4sARB( GLenum target, GLshort s, GLshort t, GLshort r, GLshort q ); void trace_glMultiTexCoord4svARB( GLenum target, const GLshort * v );
6dca3e7a076fe0262107b7bc91f92bcd86f4eacd8153cf67e942f11547e794f6
157
pompp
slurm-power-management
slurm/src/common/slurm_protocol_defs.c
*slurm_ctime
extern char *slurm_ctime(const time_t *timep) { static char time_str[25]; strftime(time_str, sizeof(time_str), "%a %b %d %T %Y", localtime(timep)); return time_str; }
extern void slurm_msg_t_init(slurm_msg_t *msg); extern void slurm_msg_t_copy(slurm_msg_t *dest, slurm_msg_t *src); extern void slurm_destroy_char(void *object); extern void slurm_destroy_uint32_ptr(void *object); extern char *slurm_add_slash_to_quotes(char *str); extern int slurm_addto_char_list(List char_list, char *names); extern int slurm_sort_char_list_asc(void *v1, void *v2); extern int slurm_sort_char_list_desc(void *v1, void *v2); extern void slurm_free_last_update_msg(last_update_msg_t * msg); extern void slurm_free_reboot_msg(reboot_msg_t * msg); extern void slurm_free_shutdown_msg(shutdown_msg_t * msg); extern void slurm_free_job_alloc_info_msg(job_alloc_info_msg_t * msg); extern void slurm_free_return_code_msg(return_code_msg_t * msg); extern void slurm_free_job_id_msg(job_id_msg_t * msg); extern void slurm_free_job_user_id_msg(job_user_id_msg_t * msg); extern void slurm_free_job_step_id_msg(job_step_id_msg_t * msg); extern void slurm_free_job_id_request_msg(job_id_request_msg_t * msg); extern void slurm_free_update_step_msg(step_update_request_msg_t * msg); extern void slurm_free_job_id_response_msg(job_id_response_msg_t * msg); extern void slurm_free_job_step_kill_msg(job_step_kill_msg_t * msg); extern void slurm_free_job_info_request_msg(job_info_request_msg_t *msg); extern void slurm_free_job_step_info_request_msg(job_step_info_request_msg_t *msg); extern void slurm_free_node_info_request_msg(node_info_request_msg_t *msg); extern void slurm_free_node_info_single_msg(node_info_single_msg_t *msg); extern void slurm_free_part_info_request_msg(part_info_request_msg_t *msg); extern void slurm_free_job_desc_msg(job_desc_msg_t * msg); extern void slurm_free_prolog_launch_msg(prolog_launch_msg_t * msg); extern void slurm_free_job_launch_msg(batch_job_launch_msg_t * msg); extern void slurm_free_job_info(job_info_t * job); extern void slurm_free_job_info_members(job_info_t * job); extern void slurm_free_update_front_end_msg(update_front_end_msg_t * msg); extern void slurm_free_update_node_msg(update_node_msg_t * msg); extern void slurm_free_update_part_msg(update_part_msg_t * msg); extern void slurm_free_delete_part_msg(delete_part_msg_t * msg); extern void slurm_free_resv_desc_msg(resv_desc_msg_t * msg); extern void slurm_free_resv_name_msg(reservation_name_msg_t * msg); extern void slurm_free_resv_info_request_msg(resv_info_request_msg_t * msg); extern void slurm_free_kill_job_msg(kill_job_msg_t * msg); extern void slurm_free_signal_job_msg(signal_job_msg_t * msg); extern void slurm_free_update_job_time_msg(job_time_msg_t * msg); extern void slurm_free_task_exit_msg(task_exit_msg_t * msg); extern void slurm_free_launch_tasks_request_msg(launch_tasks_request_msg_t * msg); extern void slurm_free_kill_tasks_msg(kill_tasks_msg_t * msg); extern void slurm_free_checkpoint_tasks_msg(checkpoint_tasks_msg_t * msg); extern void slurm_free_epilog_complete_msg(epilog_complete_msg_t * msg); extern void slurm_free_srun_exec_msg(srun_exec_msg_t *msg); extern void slurm_free_srun_ping_msg(srun_ping_msg_t * msg); extern void slurm_free_srun_node_fail_msg(srun_node_fail_msg_t * msg); extern void slurm_free_srun_step_missing_msg(srun_step_missing_msg_t * msg); extern void slurm_free_srun_timeout_msg(srun_timeout_msg_t * msg); extern void slurm_free_srun_user_msg(srun_user_msg_t * user_msg); extern void slurm_free_checkpoint_msg(checkpoint_msg_t *msg); extern void slurm_free_checkpoint_comp_msg(checkpoint_comp_msg_t *msg); extern void slurm_free_checkpoint_task_comp_msg(checkpoint_task_comp_msg_t *msg); extern void slurm_free_checkpoint_resp_msg(checkpoint_resp_msg_t *msg); extern void slurm_free_suspend_msg(suspend_msg_t *msg); extern void slurm_free_suspend_int_msg(suspend_int_msg_t *msg); extern void slurm_free_stats_response_msg(stats_info_response_msg_t *msg); extern void slurm_free_spank_env_request_msg(spank_env_request_msg_t *msg); extern void slurm_free_spank_env_responce_msg(spank_env_responce_msg_t *msg); extern void slurm_free_job_array_resp(job_array_resp_msg_t *msg); extern char *job_reason_string(enum job_state_reason inx); extern void slurm_free_get_kvs_msg(kvs_get_msg_t *msg); extern void slurm_free_will_run_response_msg(will_run_response_msg_t *msg); inline void slurm_free_forward_data_msg(forward_data_msg_t *msg); extern void slurm_free_ping_slurmd_resp(ping_slurmd_resp_msg_t *msg); extern char *preempt_mode_string(uint16_t preempt_mode); extern uint16_t preempt_mode_num(const char *preempt_mode); extern char *log_num2string(uint16_t inx); extern uint16_t log_string2num(char *name); extern char *job_state_string(uint16_t inx); extern char *job_state_string_compact(uint16_t inx); static bool _job_name_test(int state_num, const char *state_name); extern int job_state_num(const char *state_name); extern char *trigger_res_type(uint16_t res_type); extern char *health_check_node_state_str(uint32_t node_state); extern char *trigger_type(uint32_t trig_type); extern char *reservation_flags_string(uint32_t flags); extern char *priority_flags_string(uint16_t priority_flags); extern char *node_state_string(uint32_t inx); extern char *node_state_string_compact(uint32_t inx); extern void private_data_string(uint16_t private_data, char *str, int str_len); extern void accounting_enforce_string(uint16_t enforce, char *str, int str_len); extern char *conn_type_string(enum connection_type conn_type); extern char *conn_type_string_full(uint16_t *conn_type); extern char* node_use_string(enum node_use_type node_use); extern char *bg_block_state_string(uint16_t state); extern char *cray_nodelist2nids(hostlist_t hl_in, char *nodelist); extern void slurm_free_sbcast_cred_msg(job_sbcast_cred_msg_t * msg); extern void slurm_free_submit_response_response_msg(submit_response_msg_t * msg); extern void slurm_free_ctl_conf(slurm_ctl_conf_info_msg_t * config_ptr); extern void slurm_free_slurmd_status(slurmd_status_t* slurmd_status_ptr); extern void slurm_free_job_info_msg(job_info_msg_t * job_buffer_ptr); static void _free_all_job_info(job_info_msg_t *msg); static void _free_all_step_info (job_step_info_response_msg_t *msg); extern void slurm_free_job_step_info_members (job_step_info_t * msg); extern void slurm_free_front_end_info_msg(front_end_info_msg_t * msg); static void _free_all_front_end_info(front_end_info_msg_t *msg); extern void slurm_free_front_end_info_members(front_end_info_t * front_end); extern void slurm_free_node_info_msg(node_info_msg_t * msg); static void _free_all_node_info(node_info_msg_t *msg); extern void slurm_free_node_info_members(node_info_t * node); extern void slurm_free_partition_info_msg(partition_info_msg_t * msg); static void _free_all_partitions(partition_info_msg_t *msg); extern void slurm_free_partition_info_members(partition_info_t * part); extern void slurm_free_reservation_info_msg(reserve_info_msg_t * msg); static void _free_all_reservations(reserve_info_msg_t *msg); extern void slurm_free_reserve_info_members(reserve_info_t * resv); extern void slurm_free_topo_info_msg(topo_info_response_msg_t *msg); extern void slurm_free_file_bcast_msg(file_bcast_msg_t *msg); extern void slurm_free_step_complete_msg(step_complete_msg_t *msg); extern void slurm_free_job_step_stat(void *object); extern void slurm_free_job_step_pids(void *object); extern void slurm_free_block_job_info(void *object); extern void slurm_free_block_info_members(block_info_t *block_info); extern void slurm_free_block_info(block_info_t *block_info); extern void slurm_free_block_info_msg(block_info_msg_t *block_info_msg); extern void slurm_free_trigger_msg(trigger_info_msg_t *msg); extern void slurm_free_set_debug_flags_msg(set_debug_flags_msg_t *msg); extern void slurm_free_set_debug_level_msg(set_debug_level_msg_t *msg); extern void slurm_destroy_association_shares_object(void *object); extern void slurm_free_shares_request_msg(shares_request_msg_t *msg); extern void slurm_free_shares_response_msg(shares_response_msg_t *msg); inline void slurm_free_stats_info_request_msg(stats_info_request_msg_t *msg); extern void slurm_destroy_priority_factors_object(void *object); extern void slurm_free_accounting_update_msg(accounting_update_msg_t *msg); extern int slurm_free_msg_data(slurm_msg_type_t type, void *data); extern uint32_t slurm_get_return_code(slurm_msg_type_t type, void *data); extern void slurm_free_job_notify_msg(job_notify_msg_t * msg); extern char *slurm_ctime_r(const time_t *timep, char *time_str); extern void slurm_free_license_info_request_msg(license_info_request_msg_t *msg);
0d1ef6e455073ff9473ce27cc73d5fb1aad363098771cbbfeaa177b4aad9e2bb
175
786228836
linux
ECE695-Spring17/t3-scheduler/linux-4.10.6/drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c
* nvkm_perfsig_find
static struct nvkm_perfsig * nvkm_perfsig_find(struct nvkm_pm *pm, u8 di, u8 si, struct nvkm_perfdom **pdom) { struct nvkm_perfdom *dom = *pdom; if (dom == NULL) { dom = nvkm_perfdom_find(pm, di); if (dom == NULL) return NULL; *pdom = dom; } if (!dom->signal[si].name) return NULL; return &dom->signal[si]; }
00f54194d4836d7432d9c9093b0e1fb82eb175f05d2072d0e74dcc0769bcbba4
327
AlexandreBiguet
NJLlikeModels
Njl-clib/model/pnjl64A/p64A_inv.c
pv_d3i1dx3
double pv_d3i1dx3 ( double x , double x2 , double E3 , double E5) { return ONE_OVER_4PI_2 * ( 3. / (x*E3) - (2. + 5*x2)/(x*E5) ) ; }
int p64A_inverse_exists( Model_param_t *Mp, double fp, double s, double *al_crit ); int p64A_inverse ( Model_param_t *Mp, double mp, double fp, double s_vac, double alphac ); int p64A_direct_o ( Model_param_t *Mp, double s_vac, double *m_vac, double *ms, double *gpi ); double pv_i1 ( double x , double x2 , double E); double pv_di1dx ( double x , double E ); double pv_d2i1dx2 ( double x , double E , double E3); double pv_i2 ( double x , double E ); double pv_di2dx ( double x , double E3 ); double pv_d2i2dx2 ( double x2 , double E3 , double E5 ); double pv_d3i2dx3 ( double x2 , double x3 , double x4 , double E5 , double E7 ); double get_coupling_cst ( double x , double x0 , double i1 ); double get_Lambda ( double phi , double i2 , double x ); double get_x0( double phi2_over_mu2 , double i1 , double i2 , double x); double x_Galpha ( Model_param_t *Mp, double alpha , double *bounds ); double xmax_Galpha ( Model_param_t *Mp, double alpha , double * bounds ); double alpha_c ( Model_param_t *Mp ); double dGalphadx ( double alpha , double x ); double Galpha(double alpha , double x);
4aa77eb0e84974e1e7cfaed442e1b2213d549af7b4b1b303aad3b263610ed2ad
139
ADVANSEE
0066_linux
drivers/char/fsl_otp.c
otp_remove
static int otp_remove(struct platform_device *pdev) { struct mxc_otp_platform_data *pdata; pdata = pdev->dev.platform_data; if (pdata == NULL) return -ENODEV; kobject_put(otp_kobj); otp_kobj = NULL; free_otp_attr(); unmap_ocotp_addr(); if (pdata->clock_name) { clk_disable(otp_clk); clk_put(otp_clk); } return 0; }
static inline unsigned int get_reg_index(struct kobj_attribute *tmp); static int otp_wait_busy(u32 flags); static int otp_write_bits(int addr, u32 data, u32 magic); static void free_otp_attr(void); static int __init alloc_otp_attr(struct mxc_otp_platform_data *pdata); static int __devinit fsl_otp_probe(struct platform_device *pdev); static int __init fsl_otp_init(void); static void __exit fsl_otp_exit(void);
70a1be980eef086cd02edad1c77dc596e1e62e4e1e46e5d226b9f6215835768b
336
EPDCenter
android_kernel_rockchip
drivers/video/rockchip/rga2/rga2_drv.c
rga2_convert_dma_buf
static int rga2_convert_dma_buf(struct rga2_req *req) { struct ion_handle *hdl; ion_phys_addr_t phy_addr; size_t len; int ret; if(req->src.yrgb_addr) { hdl = ion_import_dma_buf(rga2_drvdata->ion_client, req->src.yrgb_addr); if (IS_ERR(hdl)) { ret = PTR_ERR(hdl); printk("RGA2 ERROR ion buf handle\n"); return ret; } ion_phys(rga2_drvdata->ion_client, hdl, &phy_addr, &len); req->src.yrgb_addr = phy_addr; req->src.uv_addr = req->src.yrgb_addr + (req->src.vir_w * req->src.vir_h); req->src.v_addr = req->src.uv_addr + (req->src.vir_w * req->src.vir_h)/4; ion_free(rga2_drvdata->ion_client, hdl); } else { req->src.yrgb_addr = req->src.uv_addr; req->src.uv_addr = req->src.yrgb_addr + (req->src.vir_w * req->src.vir_h); req->src.v_addr = req->src.uv_addr + (req->src.vir_w * req->src.vir_h)/4; } if(req->dst.yrgb_addr) { hdl = ion_import_dma_buf(rga2_drvdata->ion_client, req->dst.yrgb_addr); if (IS_ERR(hdl)) { ret = PTR_ERR(hdl); printk("RGA2 ERROR ion buf handle\n"); return ret; } ion_phys(rga2_drvdata->ion_client, hdl, &phy_addr, &len); req->dst.yrgb_addr = phy_addr; req->dst.uv_addr = req->dst.yrgb_addr + (req->dst.vir_w * req->dst.vir_h); req->dst.v_addr = req->dst.uv_addr + (req->dst.vir_w * req->dst.vir_h)/4; ion_free(rga2_drvdata->ion_client, hdl); } else { req->dst.yrgb_addr = req->dst.uv_addr; req->dst.uv_addr = req->dst.yrgb_addr + (req->dst.vir_w * req->dst.vir_h); req->dst.v_addr = req->dst.uv_addr + (req->dst.vir_w * req->dst.vir_h)/4; } return 0; }
static void print_info(struct rga2_req *req); static inline void rga2_write(u32 b, u32 r); static inline u32 rga2_read(u32 r); static void rga2_soft_reset(void); static void rga2_dump(void); static inline void rga2_queue_power_off_work(void); static void rga2_power_on(void); static void rga2_power_off(void); static void rga2_power_off_work(struct work_struct *work); static int rga2_flush(rga2_session *session, unsigned long arg); static int rga2_get_result(rga2_session *session, unsigned long arg); static int rga2_check_param(const struct rga2_req *req); static void rga2_copy_reg(struct rga2_reg *reg, uint32_t offset); static struct rga2_reg * rga2_reg_init(rga2_session *session, struct rga2_req *req); static void rga2_reg_deinit(struct rga2_reg *reg); static void rga2_reg_from_wait_to_run(struct rga2_reg *reg); static void rga2_service_session_clear(rga2_session *session); static void rga2_try_set_reg(void); static void rga2_del_running_list(void); static void rga2_del_running_list_timeout(void); static int rga2_blit(rga2_session *session, struct rga2_req *req); static int rga2_blit_async(rga2_session *session, struct rga2_req *req); static int rga2_blit_sync(rga2_session *session, struct rga2_req *req); static long rga_ioctl(struct file *file, uint32_t cmd, unsigned long arg); long rga_ioctl_kernel(struct rga_req *req); static int rga2_open(struct inode *inode, struct file *file); static int rga2_release(struct inode *inode, struct file *file); tic irqreturn_t rga2_irq_thread(int irq, void *dev_id); tic irqreturn_t rga2_irq(int irq, void *dev_id); tic int rga2_drv_probe(struct platform_device *pdev); tic int rga2_drv_remove(struct platform_device *pdev); tic int __init rga2_init(void); tic void __exit rga2_exit(void); d rga2_test_0(void);
2a650600c20f4315d583b8248ba4045be1342b0d09739bc88fa7b690d00d32a5
1,807
OpenVnmrJ
OpenVnmrJ
src/vwauto/qspiObj.c
qspiMsgDone
void qspiMsgDone(QSPI_ID pQspiId) { *M332_QSM_SPSR &= ~QSM_SPSR_SPIF; semGive(pQspiId->pQspiSEMBid); pQspiId->qspispif = TRUE; pQspiId->qspicount ++; #ifdef INSTRUMENT wvEvent(EVENT_QSPI_MSG_DONE,NULL,NULL); #endif return; }
void qspiStartWaitForStop(int numberOfCommands); int qspiStatus(int PCSno, int spcr0); QSPI_ID qspiCreate(); int qspiDelete(); void qspiItrpEnable(); void qspiItrpDisable(); void qspiReset(); short qspiStatReg(); short qspiCntrlReg(Q); short qspiIntrpMask(); void qspiShow();
0c1fd2ef1c34434d267ac6365cafcccbbe0eee7a72af16c01b89479fe396f64d
256
WhiteBearSolutions
WBSAirback
packages/wbsairback-mhvtl/wbsairback-mhvtl-0.18/usr/smc.c
smc_initialize_element_status_with_range
uint8_t smc_initialize_element_status_with_range(struct scsi_cmd *cmd) { uint8_t *sam_stat = &cmd->dbuf_p->sam_stat; MHVTL_DBG(1, "%s (%ld) **", "INITIALIZE ELEMENT RANGE", (long)cmd->dbuf_p->serialNo); if (!cmd->lu->online) { mkSenseBuf(NOT_READY, NO_ADDITIONAL_SENSE, sam_stat); return SAM_STAT_CHECK_CONDITION; } sleep(1); return SAM_STAT_GOOD; }
uint8_t smc_allow_removal(struct scsi_cmd *cmd); uint8_t smc_initialize_element_status(struct scsi_cmd *cmd); static int slot_type(struct smc_priv *smc_p, int addr); static struct s_info *slot2struct(struct smc_priv *smc_p, int addr); static struct d_info *drive2struct(struct smc_priv *smc_p, int addr); int slotOccupied(struct s_info *s); static int driveOccupied(struct d_info *d); void setImpExpStatus(struct s_info *s, int flg); void setFullStatus(struct s_info *s, int flg); void setSlotEmpty(struct s_info *s); static void setDriveEmpty(struct d_info *d); void setSlotFull(struct s_info *s); void setDriveFull(struct d_info *d); static int is_map_slot(struct s_info *s); static int map_access_ok(struct smc_priv *smc_p, struct s_info *s); static void decode_element_status(struct smc_priv *smc_p, uint8_t *p); static int determine_element_sz(struct scsi_cmd *cmd, int type); static int fill_element_descriptor(struct scsi_cmd *cmd, uint8_t *p, int addr); uint8_t smc_read_element_status(struct scsi_cmd *cmd); static int check_tape_load(char *pcl); static void move_cart(struct s_info *src, struct s_info *dest); static int valid_slot(struct smc_priv *smc_p, int addr); uint8_t smc_move_medium(struct scsi_cmd *cmd); uint8_t smc_rezero(struct scsi_cmd *cmd); uint8_t smc_open_close_import_export_element(struct scsi_cmd *cmd);
4aedd79867d08652af15136dddbce3f43d8b56315dacf3bb032ac753b3ab4ad1
366
supercairos
android_kernel_doro_msm8916_2
drivers/staging/prima/CORE/HDD/src/wlan_hdd_softap_tx_rx.c
hdd_softap_stats
struct net_device_stats* hdd_softap_stats(struct net_device *dev) { hdd_adapter_t* priv = netdev_priv(dev); return &priv->stats; }
static void hdd_softap_dump_sk_buff(struct sk_buff * skb); void hdd_softap_traffic_monitor_timeout_handler( void *pUsrData ); VOS_STATUS hdd_start_trafficMonitor( hdd_adapter_t *pAdapter ); VOS_STATUS hdd_stop_trafficMonitor( hdd_adapter_t *pAdapter ); static VOS_STATUS hdd_softap_flush_tx_queues( hdd_adapter_t *pAdapter ); int hdd_softap_hard_start_xmit(struct sk_buff *skb, struct net_device *dev); void hdd_softap_tx_timeout(struct net_device *dev); VOS_STATUS hdd_softap_init_tx_rx( hdd_adapter_t *pAdapter ); VOS_STATUS hdd_softap_deinit_tx_rx( hdd_adapter_t *pAdapter ); static VOS_STATUS hdd_softap_flush_tx_queues_sta( hdd_adapter_t *pAdapter, v_U8_t STAId ); VOS_STATUS hdd_softap_init_tx_rx_sta( hdd_adapter_t *pAdapter, v_U8_t STAId, v_MACADDR_t *pmacAddrSTA); VOS_STATUS hdd_softap_deinit_tx_rx_sta ( hdd_adapter_t *pAdapter, v_U8_t STAId ); VOS_STATUS hdd_softap_disconnect_tx_rx( hdd_adapter_t *pAdapter ); VOS_STATUS hdd_softap_DeregisterSTA( hdd_adapter_t *pAdapter, tANI_U8 staId ); VOS_STATUS hdd_softap_Register_BC_STA( hdd_adapter_t *pAdapter, v_BOOL_t fPrivacyBit); VOS_STATUS hdd_softap_Deregister_BC_STA( hdd_adapter_t *pAdapter); VOS_STATUS hdd_softap_stop_bss( hdd_adapter_t *pAdapter); VOS_STATUS hdd_softap_change_STA_state( hdd_adapter_t *pAdapter, v_MACADDR_t *pDestMacAddress, WLANTL_STAStateType state); VOS_STATUS hdd_softap_GetStaId(hdd_adapter_t *pAdapter, v_MACADDR_t *pMacAddress, v_U8_t *staId); VOS_STATUS hdd_softap_GetConnectedStaId(hdd_adapter_t *pAdapter, v_U8_t *staId);
d04f14c1c12542c1f87ae648e272642bb4d1388b26493a76fb0890cc910e24cf
141
UpgradeAndroid
telechips
drivers/char/tcc_mem.c
tmem_mmap
static int tmem_mmap(struct file *file, struct vm_area_struct *vma) { size_t size = vma->vm_end - vma->vm_start; if(range_is_allowed(vma->vm_pgoff, size) < 0){ printk(KERN_ERR "tmem: this address is not allowed \n"); return -EPERM; } vma->vm_page_prot = phys_mem_access_prot(file, vma->vm_pgoff, size, vma->vm_page_prot); vma->vm_ops = &tmem_mmap_ops; if (remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff, size, vma->vm_page_prot)) { printk(KERN_ERR "tmem: remap_pfn_range failed \n"); return -EAGAIN; } return 0; }
int tccxxx_sync_player(int sync); int tccxxx_get_pmap(const char *name, pmap_t *mem); static int tmem_open(struct inode *inode, struct file *filp); static int tmem_release(struct inode *inode, struct file *filp); static void mmap_mem_open(struct vm_area_struct *vma); static void mmap_mem_close(struct vm_area_struct *vma); static inline int uncached_access(struct file *file, unsigned long addr); int range_is_allowed(unsigned long pfn, unsigned long size); static void __exit tmem_cleanup(void); static int __init tmem_init(void);
27dd04dbcff0ac4c14bd3767f9018c66315c91a6f863ae62756456972170c5f5
566
opopqoqo
apqa
source/triangle6f.c
t6fTranslate
void t6fTranslate(triangle6f* t,const v3f* u){ for(v6f* P=t->data;P<t->data+3;P++){ v3fAdd(&P->coord,u); } }
triangle6f t6fFlipped(const triangle6f* t); void t6fTransform(triangle6f* t, const m4f* matrix); void t6fZero(triangle6f* t); void t6fMakeSharpEdges(triangle6f* t); bool t6fIsDegenerate(const triangle6f* t); bool t6fIsInvalid(const triangle6f* t); v3f t6fNormal(const triangle6f* t); bool t6fIsZero(const triangle6f* t); float t6fArea(const triangle6f* t); v3f t6fVector(const triangle6f* t,int i); void t6fPrint(const triangle6f* tri); void t6fAssert(const triangle6f* t); void t6fAssertEquals(const triangle6f* A,const triangle6f* B);
bbb9f59ece37a58959162f2c507ce7b145d7632c279b0f2f225796905a81f36f
121
wuyou33
QCopterFlightControl
Software/TEST_QCopterFC_FLASH/Program/Dirvers/stm32f4_flash.c
&&
FLASH_SECTOR_1) && (Address < FLASH_SECTOR_2)) Sector = FLASH_Sector_1; else if((Address >= FLASH_SECTOR_2) && (Address < FLASH_SECTOR_3)) Sector = FLASH_Sector_2; else if((Address >= FLASH_SECTOR_3) && (Address < FLASH_SECTOR_4)) Sector = FLASH_Sector_3; else if((Address >= FLASH_SECTOR_4) && (Address < FLASH_SECTOR_5)) Sector = FLASH_Sector_4; else if((Address >= FLASH_SECTOR_5) && (Address < FLASH_SECTOR_6)) Sector = FLASH_Sector_5; else if((Address >= FLASH_SECTOR_6) && (Address < FLASH_SECTOR_7)) Sector = FLASH_Sector_6; else if((Address >= FLASH_SECTOR_7) && (Address < FLASH_SECTOR_8)) Sector = FLASH_Sector_7; else if((Address >= FLASH_SECTOR_8) && (Address < FLASH_SECTOR_9)) Sector = FLASH_Sector_8; else if((Address >= FLASH_SECTOR_9) && (Address < FLASH_SECTOR_10)) Sector = FLASH_Sector_9; else if((Address >= FLASH_SECTOR_10) && (Address < FLASH_SECTOR_11)) Sector = FLASH_Sector_10; else Sector = FLASH_Sector_11; return Sector; } /*================================================================
u32 WriteAddr, uc8 *WriteData, u32 DataLen ); riteData, u32 DataLen ); unt<DataLen); dData[Count] = (u16); u32*); H_FLAG_WRPERR | FLASH_FLAG_PGAERR | FLASH_FLAG_PGPERR | FLASH_FLAG_PGSERR); FLASH_ClearFlag(FLASH_FLAG_EOP | FLASH_FLAG_OPERR | FLASH_FLAG_WRPERR | FLASH_FLAG_PGAERR | FLASH_FLAG_PGPERR | FLASH_FLAG_PGSERR);
6a742a1f79f6d1c9de6aa21751b447b45f78e40869536363ff7a17a812b3160a
1,099
sleekmason
LG-V510-Kitkat
arch/arm/mach-msm/lge/palman/board-palman-display.c
hdmi_core_power
static int hdmi_core_power(int on, int show) { static struct regulator *reg_8921_lvs7; static int prev_on; int rc; if (on == prev_on) return 0; if (!reg_8921_lvs7) { reg_8921_lvs7 = regulator_get(&hdmi_msm_device.dev, "hdmi_vdda"); if (IS_ERR(reg_8921_lvs7)) { pr_err("could not get reg_8921_lvs7, rc = %ld\n", PTR_ERR(reg_8921_lvs7)); reg_8921_lvs7 = NULL; return -ENODEV; } } if (on) { rc = regulator_enable(reg_8921_lvs7); if (rc) { pr_err("'%s' regulator enable failed, rc=%d\n", "hdmi_vdda", rc); goto error1; } } else { rc = regulator_disable(reg_8921_lvs7); if (rc) { pr_err("disable reg_8921_l23 failed, rc=%d\n", rc); return -ENODEV; } pr_debug("%s(off): success\n", __func__); } prev_on = on; return 0; error1: return rc; }
static int msm_fb_detect_panel(const char *name); void __init apq8064_allocate_fb_region(void); void __init apq8064_mdp_writeback(struct memtype_reserve* reserve_table); int kcal_set_values(int kcal_r, int kcal_g, int kcal_b); static int kcal_get_values(int *kcal_r, int *kcal_g, int *kcal_b); static int kcal_refresh_values(void); static char wfd_check_mdp_iommu_split_domain(void); static int mipi_dsi_panel_power(int on); static char mipi_dsi_splash_is_enabled(void); static int hdmi_panel_power(int on); static int hdmi_enable_5v(int on); static int hdmi_gpio_config(int on); static int hdmi_cec_power(int on); static int mipi_lgit_backlight_level(int level, int max, int min); void __init apq8064_init_fb(void); void __init register_i2c_backlight_devices(void);
c9e3fbbfc01762df275ca24ef68d6f123ab6a7472b01754cceecdeef8082d45b
815
longsleep
ec
common/usb_pd_protocol.c
pd_dr_swap
static void pd_dr_swap(int port) { pd[port].data_role = !pd[port].data_role; pd_execute_data_swap(port, pd[port].data_role); pd[port].flags |= PD_FLAGS_DATA_SWAPPED; }
int pd_is_connected(int port); static inline void set_state(int port, enum pd_states next_state); static void inc_id(int port); static inline int encode_short(int port, int off, uint16_t val16); int encode_word(int port, int off, uint32_t val32); void send_hard_reset(int port); static int send_control(int port, int type); static void send_goodcrc(int port, int id); static int send_source_cap(int port); static void send_sink_cap(int port); static int send_request(int port, uint32_t rdo); static int send_bist_cmd(int port); static void bist_mode_2_tx(int port); static void bist_mode_2_rx(int port); static void handle_vdm_request(int port, int cnt, uint32_t *payload); static void execute_hard_reset(int port); static void execute_soft_reset(int port); void pd_soft_reset(void); static void pd_store_src_cap(int port, int cnt, uint32_t *src_caps); static void pd_send_request_msg(int port, enum pd_request_types request); static void pd_update_pdo_flags(int port, uint32_t pdo); void pd_request_power_swap(int port); void pd_request_data_swap(int port); static inline int decode_short(int port, int off, uint16_t *val16); static inline int decode_word(int port, int off, uint32_t *val32); static int count_set_bits(int n); static void analyze_rx_bist(int port); static int analyze_rx(int port, uint32_t *payload); static void pd_vdm_send_state_machine(int port); static inline void pd_dev_dump_info(uint16_t dev_id, uint8_t *hash); void pd_dev_store_rw_hash(int port, uint16_t dev_id, uint32_t *rw_hash); void pd_set_dual_role(enum pd_dual_role_states state); int pd_get_role(int port); static int pd_is_power_swapping(int port); int pd_get_polarity(int port); int pd_get_partner_dualrole_capable(int port); int pd_get_partner_data_swap_capable(int port); void pd_comm_enable(int enable); void pd_ping_enable(int port, int enable); static inline int get_typec_current_limit(int cc_voltage); void pd_set_new_power_request(int port); void pd_task(void);
92cf6263bdd01672c9c8377c9f9e8587782a021f22fb55c0d77764555c36bfec
171
fohr
castle
kernel/castle_da.c
castle_da_cts_proxy_invalidate
static void castle_da_cts_proxy_invalidate(struct castle_double_array *da) { struct castle_da_cts_proxy *proxy = NULL; write_lock(&da->lock); proxy = da->cts_proxy; if (proxy) da->cts_proxy = NULL; write_unlock(&da->lock); if (proxy) { castle_printk(LOG_DEBUG, "%s: Putting proxy=%p, da=%p, da_id=%d\n", __FUNCTION__, proxy, da, da->id); castle_da_cts_proxy_put(proxy); } }
static inline int castle_da_growing_rw_test_and_set(struct castle_double_array *da); static inline int castle_da_growing_rw_test(struct castle_double_array *da); static inline void castle_da_growing_rw_clear(struct castle_double_array *da); static inline int castle_da_deleted(struct castle_double_array *da); static inline void castle_da_deleted_set(struct castle_double_array *da); static void castle_da_merge_debug_lock_state_query(struct castle_da_merge *merge); static void castle_ct_immut_iter_next_node(c_immut_iter_t *iter); static int castle_ct_immut_iter_prep_next(c_immut_iter_t *iter); static int castle_ct_immut_iter_has_next(c_immut_iter_t *iter); static void castle_ct_immut_iter_cancel(c_immut_iter_t *iter); static void castle_ct_modlist_iter_free(c_modlist_iter_t *iter); static int castle_ct_modlist_iter_has_next(c_modlist_iter_t *iter); static int castle_ct_modlist_iter_prep_next(c_modlist_iter_t *iter); static void castle_ct_modlist_iter_next_node(c_immut_iter_t *immut_iter); static void castle_ct_modlist_iter_fill(c_modlist_iter_t *iter); static void castle_ct_modlist_iter_mergesort(c_modlist_iter_t *iter); static void castle_ct_modlist_iter_init(c_modlist_iter_t *iter); static struct component_iterator* castle_ct_merge_iter_rbtree_min_del(c_merged_iter_t *iter); void castle_iterator_sync_end_io(void *iter, int err); int castle_iterator_has_next_sync(struct castle_iterator_type *iter_type, void *iter); static int castle_ct_merged_iter_prep_next(c_merged_iter_t *iter); static void castle_ct_merged_iter_end_io(void *rq_iter, int err); static int castle_ct_merged_iter_has_next(c_merged_iter_t *iter); static c_val_tup_t castle_ct_merged_iter_counter_reduce(struct component_iterator *iter); static c_val_tup_t castle_ct_merged_iter_timestamp_select(struct component_iterator *iter); static void castle_ct_merged_iter_cancel(c_merged_iter_t *iter); static int castle_da_rq_iter_prep_next(c_da_rq_iter_t *iter); static int castle_da_rq_iter_has_next(c_da_rq_iter_t *iter); static void castle_da_rq_iter_end_io(void *merged_iter, int err); static void castle_da_rq_iter_skip(c_da_rq_iter_t *iter, void *key); void castle_da_rq_iter_cancel(c_da_rq_iter_t *iter); static void _castle_da_rq_iter_init(c_da_rq_iter_t *iter); inline void castle_da_rq_iter_relevant_ct_cb(void *private, int key_exists); static struct castle_iterator_type* castle_da_iter_type_get(struct castle_component_tree *ct); static int castle_da_iterators_create(struct castle_da_merge *merge); static int castle_da_no_disk_space(struct castle_double_array *da); static void castle_da_lfs_victim_count_inc(struct castle_double_array *da); static void castle_da_lfs_ct_reset(struct castle_da_lfs_ct_t *lfs); static void castle_da_lfs_ct_cleanup(struct castle_da_lfs_ct_t *lfs); static void castle_da_lfs_all_rwcts_callback(void *data); static void castle_da_lfs_rwct_callback(void *data); static void castle_da_lfs_merge_ct_callback(void *data); static void castle_da_lfs_merge_ct_growable_callback(void *data); static void castle_da_merge_res_pool_attach(struct castle_da_merge *merge); static void castle_da_merge_res_pool_detach(struct castle_da_merge *merge, int err); static int castle_da_merge_extents_alloc(struct castle_da_merge *merge); static int castle_immut_tree_nodes_complete(struct castle_immut_tree_construct *tree_constr); static void castle_immut_tree_complete(struct castle_immut_tree_construct *tree_constr); static void castle_da_merge_serdes_dealloc(struct castle_da_merge *merge); static void castle_da_merge_sysfs_cleanup(struct castle_da_merge *merge, int err); void castle_ct_dealloc(struct castle_component_tree *ct); static void castle_da_merge_cts_release(struct castle_da_merge *merge, int err); static void castle_da_merge_trees_cleanup(struct castle_da_merge *merge, int err); static void castle_da_merge_partial_merge_cleanup(struct castle_da_merge *merge); static void castle_immut_tree_constr_dealloc(struct castle_immut_tree_construct *constr); static void castle_da_merge_dealloc(struct castle_da_merge *merge, int err, int locked); static int castle_da_merge_space_reserve(struct castle_da_merge *merge, c_val_tup_t cvt); static void castle_merge_sleep_prepare(struct castle_da_merge *merge); static void castle_merge_sleep_return(struct castle_da_merge *merge); int check_dext_list(c_ext_id_t ext_id, c_ext_id_t *list, uint32_t size); static unsigned int castle_da_merge_top_level_check(struct castle_da_merge *merge); static int castle_da_merge_init(struct castle_da_merge *merge, void *unused); static int castle_da_merge_serdes_live_to_chkpnt_cp(struct castle_da_merge *merge, void *null); void castle_da_merge_mstore_package_check_free(struct castle_da_merge_mstore_package *m); static void castle_da_merge_serialise(struct castle_da_merge *merge, int using_tvr, int tvr_new_key); static int castle_da_merge_do(struct castle_da_merge *merge, uint64_t nr_bytes); static int castle_da_l1_merge_trigger(struct castle_double_array *da, int nr_trees); static int castle_da_l1_merge_run(void *da_p); static int castle_da_merge_start(struct castle_double_array *da, void *unused); static int castle_da_merge_stop(struct castle_double_array *da, void *unused); static int castle_da_merge_restart(struct castle_double_array *da, void *unused); static void castle_da_merges_print(struct castle_double_array *da); int castle_double_array_key_cpu_index(c_vl_bkey_t *key); int castle_double_array_request_cpu(int cpu_index); int castle_double_array_request_cpus(void); static int castle_da_wait_queue_create(struct castle_double_array *da, void *unused); int castle_da_read_rate_set(c_da_t da_id, uint32_t read_rate); static void castle_da_inserts_enable(unsigned long data); static int _castle_da_inserts_enable(struct castle_double_array *da, void *unused); void castle_double_array_inserts_enable(void); void castle_da_write_rate_check(struct castle_double_array *da, uint32_t nr_bytes); int castle_da_insert_rate_set(c_da_t da_id, uint32_t insert_rate); static void castle_da_dealloc(struct castle_double_array *da); static struct castle_double_array* castle_da_alloc(c_da_t da_id, c_da_opts_t opts); struct castle_component_tree* castle_component_tree_get(tree_seq_t seq); static void __castle_ct_large_obj_remove(struct list_head *lh); static void castle_ct_large_objs_remove(struct list_head *lo_list_head); void castle_data_extent_update(c_ext_id_t ext_id, uint64_t length, int op); struct castle_data_extent * castle_data_extent_get(c_ext_id_t ext_id); static void castle_data_extent_stats_commit(struct castle_component_tree *ct); static void castle_ct_stats_commit(struct castle_component_tree *ct); static int castle_data_ext_remove(struct castle_data_extent *data_ext, void *unused); void castle_ct_data_ext_link(c_ext_id_t ext_id, struct castle_component_tree *ct); static void castle_data_ext_unlink(c_ext_id_t ext_id); static void castle_ct_data_exts_unlink(struct castle_component_tree *ct); static int castle_data_ext_check_orphan(struct castle_data_extent *data_ext, void *unused); static void castle_data_ext_check_orphans(void); static int castle_data_exts_maps_read(void); static int castle_data_exts_read(void); void castle_ct_get(struct castle_component_tree *ct, int rw); void castle_ct_put(struct castle_component_tree *ct, int rw); void castle_ct_and_exts_put(struct castle_component_tree *ct, c_ct_ext_ref_t *refs); static int castle_da_level0_force_promote(struct castle_double_array *da, void *unused); static void __castle_da_level0_modified_promote(struct work_struct *work); static int castle_da_level0_modified_promote(struct castle_double_array *da, void *counter); static struct castle_component_tree * castle_da_ct_unmarshall(struct castle_clist_entry *ctm); static int _castle_da_merge_dealloc(struct castle_da_merge *merge, void *unused); static void castle_merge_hash_destroy(void); static int castle_da_hash_dealloc(struct castle_double_array *da, void *unused); static void castle_da_hash_destroy(void); static void castle_ct_hash_destroy(void); static void castle_data_exts_hash_destroy(void); uint32_t castle_da_count(void); static int castle_da_writeback(struct castle_double_array *da, void *mstores_p); static int castle_da_merge_writeback(struct castle_da_merge *merge, void *mstores_p); void castle_double_arrays_writeback(void); void castle_double_arrays_pre_writeback(void); static int castle_da_rwct_init(struct castle_double_array *da, void *unused); int castle_double_array_start(void); static int _castle_sysfs_ct_add(struct castle_component_tree *ct, void *_unused); static int castle_da_merge_deser_mstore_outtree_recover(void); static int castle_da_merge_deser_intrees_attach(void); static int castle_da_ct_read(void); int castle_double_array_read(void); tree_seq_t castle_da_next_ct_seq(void); int castle_double_array_make(c_da_t da_id, c_ver_t root_version, c_da_opts_t opts); static void castle_da_bvec_queue(struct castle_double_array *da, c_bvec_t *c_bvec); static void castle_da_queue_kick(struct work_struct *work); static void castle_da_queues_kick(struct castle_double_array *da); static size_t castle_da_cts_proxy_keys_size(struct castle_double_array *da); static inline int castle_da_cts_proxy_extents(struct castle_double_array *da); static struct castle_da_cts_proxy* castle_da_cts_proxy_create(struct castle_double_array *da); static struct castle_da_cts_proxy* castle_da_cts_proxy_get(struct castle_double_array *da); static inline void _castle_da_cts_proxy_put(struct castle_da_cts_proxy *proxy); void castle_da_cts_proxy_put(struct castle_da_cts_proxy *proxy); static inline int _castle_da_cts_proxy_all_invalidate(struct castle_double_array *da, void *private); static void castle_da_cts_proxy_all_invalidate(void); static void castle_da_cts_proxy_timeout(void *unused); static void castle_da_cts_proxy_timer_fire(unsigned long first); c_chk_cnt_t castle_double_array_size_get(struct castle_double_array *da); inline void castle_da_bloom_submit_cb(void *private, int key_exists); static inline void _castle_da_bloom_submit(void *data); void castle_da_bloom_submit(c_bvec_t *c_bvec, int go_async); void castle_da_next_ct_read(c_bvec_t *c_bvec); static void castle_da_ct_read_complete(c_bvec_t *c_bvec, int err, c_val_tup_t cvt); static void castle_da_ct_write_complete(c_bvec_t *c_bvec, int err, c_val_tup_t cvt); static void castle_da_write_bvec_start(struct castle_double_array *da, c_bvec_t *c_bvec); static void castle_da_read_bvec_start(struct castle_double_array *da, c_bvec_t *c_bvec); struct castle_btree_type *castle_double_array_btree_type_get(struct castle_attachment *att); uint8_t castle_da_user_timestamping_check(struct castle_double_array *da); uint8_t castle_attachment_user_timestamping_check(struct castle_attachment *att); void castle_double_array_submit(c_bvec_t *c_bvec); static void castle_da_reserve(struct castle_double_array *da, c_bvec_t *c_bvec); void castle_double_array_unreserve(c_bvec_t *c_bvec); void castle_double_array_queue(c_bvec_t *c_bvec); int castle_double_array_init(void); void castle_double_array_merges_fini(void); void castle_double_array_fini(void); static int castle_da_merge_check(struct castle_da_merge *merge, void *da); void castle_da_destroy_complete(struct castle_double_array *da); static void castle_da_get(struct castle_double_array *da); static void castle_da_put(struct castle_double_array *da); static void castle_da_put_locked(struct castle_double_array *da); int castle_double_array_alive(c_da_t da_id); static struct castle_double_array *castle_da_ptr_get(c_da_t da_id, int attach); struct castle_double_array *castle_double_array_get(c_da_t da_id); void castle_double_array_put(struct castle_double_array *da); int castle_double_array_prefetch(struct castle_double_array *da); int castle_double_array_destroy(c_da_t da_id); static int __castle_da_threads_priority_set(struct castle_double_array *da, void *_value); void castle_da_threads_priority_set(int nice_value); static int castle_merge_run(void *_data); static int castle_merge_thread_create(c_thread_id_t *thread_id, struct castle_double_array *da); int castle_merge_start(c_merge_cfg_t *merge_cfg, c_merge_id_t *merge_id, int level); int castle_merge_do_work(c_merge_id_t merge_id, c_work_size_t work_size, c_work_id_t *work_id); int castle_merge_stop(c_merge_id_t merge_id); static int castle_merge_thread_attach(c_merge_id_t merge_id, c_thread_id_t thread_id); int castle_da_vertree_tdp_set(c_da_t da_id, uint64_t seconds); castle_user_timestamp_t castle_da_min_ts_cts_exclude_this_merge_get(struct castle_da_merge *merge); void castle_da_in_stream_complete(struct castle_immut_tree_construct *constr, int err); static struct castle_component_tree * castle_da_barrier_ct_create(struct castle_double_array *da); static int castle_da_inc_backup_needed(struct castle_component_tree *ct); static int castle_da_incremental_backup_start(struct castle_double_array *da); static int castle_da_incremental_backup_finish(struct castle_double_array *da, int err);
7cc5376a738d64b793bb2d8058240f55a0849e39908c353a4c79c9b9984bc8d8
448
scs
uclinux
user/snort/src/pcrm.c
prmNewMap
PORT_RULE_MAP * prmNewMap( ) { PORT_RULE_MAP * p; p = (PORT_RULE_MAP *)calloc(1, sizeof(PORT_RULE_MAP) ); return p; }
BYTE_RULE_MAP * prmNewByteMap( ); static void prmxFreeGroup(PORT_GROUP *pg); void prmFreeMap( PORT_RULE_MAP * p ); void prmFreeByteMap( BYTE_RULE_MAP * p ); static int prmxAddPortRule( PORT_GROUP *p, RULE_PTR rd ); static int prmxAddPortRuleUri( PORT_GROUP *p, RULE_PTR rd ); static int prmxAddPortRuleNC( PORT_GROUP *p, RULE_PTR rd ); void prmAddNotNode( PORT_GROUP * pg, int id ); RULE_PTR prmGetFirstRule( PORT_GROUP * pg ); RULE_PTR prmGetNextRule( PORT_GROUP * pg ); RULE_PTR prmGetFirstRuleUri( PORT_GROUP * pg ); RULE_PTR prmGetNextRuleUri( PORT_GROUP * pg ); RULE_PTR prmGetFirstRuleNC( PORT_GROUP * pg ); RULE_PTR prmGetNextRuleNC( PORT_GROUP * pg ); int prmAddRule( PORT_RULE_MAP * p, int dport, int sport, RULE_PTR rd ); int prmAddByteRule( BYTE_RULE_MAP * p, int dport, RULE_PTR rd ); int prmAddRuleUri( PORT_RULE_MAP * p, int dport, int sport, RULE_PTR rd ); int prmAddRuleNC( PORT_RULE_MAP * p, int dport, int sport, RULE_PTR rd ); int prmAddByteRuleNC( BYTE_RULE_MAP * p, int dport, RULE_PTR rd ); int prmFindRuleGroup( PORT_RULE_MAP * p, int dport, int sport, PORT_GROUP ** src, PORT_GROUP **dst , PORT_GROUP ** gen); int prmFindByteRuleGroup( BYTE_RULE_MAP * p, int dport, PORT_GROUP **dst , PORT_GROUP ** gen); PORT_GROUP * prmFindDstRuleGroup( PORT_RULE_MAP * p, int port ); PORT_GROUP * prmFindSrcRuleGroup( PORT_RULE_MAP * p, int port ); int prmSetGroupPatData( PORT_GROUP * pg, void * data ); void * prmGetGroupPatData( PORT_GROUP * pg ); int prmCompileGroups( PORT_RULE_MAP * p ); int prmCompileByteGroups( BYTE_RULE_MAP * p ); int prmShowStats( PORT_RULE_MAP * p ); int prmShowEventStats( PORT_RULE_MAP * p );
778ced71646a433c54adb48d121eb5bc6e673f5a654de41222739654b4841e3e
132
akabe
gsl-ocaml
lib/mlgsl_blas_float.c
ml_gsl_blas_ssymv_bc
CAMLprim value ml_gsl_blas_ssymv_bc(value *argv, int argc) { return ml_gsl_blas_ssymv(argv[0], argv[1], argv[2], argv[3], argv[4], argv[5]); }
CAMLprim value ml_gsl_blas_sdsdot(value alpha, value X, value Y); CAMLprim value ml_gsl_blas_dsdot(value X, value Y); CAMLprim value ml_gsl_blas_sdot(value X, value Y); CAMLprim value ml_gsl_blas_snrm2(value X); CAMLprim value ml_gsl_blas_sasum(value X); CAMLprim value ml_gsl_blas_isamax(value X); CAMLprim value ml_gsl_blas_sswap(value X, value Y); CAMLprim value ml_gsl_blas_scopy(value X, value Y); CAMLprim value ml_gsl_blas_saxpy(value alpha, value X, value Y); CAMLprim value ml_gsl_blas_srot(value X, value Y, value c, value s); CAMLprim value ml_gsl_blas_sscal(value alpha, value X); CAMLprim value ml_gsl_blas_sgemv(value transa, value alpha, value A, value X, value beta, value Y); CAMLprim value ml_gsl_blas_sgemv_bc(value *argv, int argc); CAMLprim value ml_gsl_blas_strmv(value uplo, value transa, value diag, value A, value X); CAMLprim value ml_gsl_blas_strsv(value uplo, value transa, value diag, value A, value X); CAMLprim value ml_gsl_blas_ssymv(value uplo, value alpha, value A, value X, value beta, value Y); CAMLprim value ml_gsl_blas_sger(value alpha, value X, value Y, value A); CAMLprim value ml_gsl_blas_ssyr(value uplo ,value alpha, value X, value A); CAMLprim value ml_gsl_blas_ssyr2(value uplo ,value alpha, value X, value Y, value A); CAMLprim value ml_gsl_blas_sgemm_bc(value *argv, int argc); CAMLprim value ml_gsl_blas_ssymm_bc(value *argv, int argc); CAMLprim value ml_gsl_blas_ssyrk(value uplo, value trans, value alpha, value A, value beta, value C); CAMLprim value ml_gsl_blas_ssyrk_bc(value *argv, int argc); CAMLprim value ml_gsl_blas_ssyr2k(value uplo, value trans, value alpha, value A, value B, value beta, value C); CAMLprim value ml_gsl_blas_ssyr2k_bc(value *argv, int argc); CAMLprim value ml_gsl_blas_strmm_bc(value *argv, int argc); CAMLprim value ml_gsl_blas_strsm_bc(value *argv, int argc);
7d2e1a80fa77c53f23754bc21805b6898c6de344f069724fe886ca129b46da32
151
GreenJoey
My-Simple-Programs
c/pthreads/example1.c
*hello
void *hello(void *id){ pid_t tid = (pid_t) pthread_self(); pid_t pid = getpid(); printf("Hello from Thread %u with Thread ID %u of Program %d\n", *(int *)id, tid, pid); pthread_exit(0); return NULL; }
int main();
0dac5e14aaf45d79826a1de7cad6d5d098f6efb5e70ced4bef49225f4709cb66
234
Lachann
gst-plugins-bad
ext/gl/effects/gstgleffectxray.c
void gst_gl_effects_xray_step_two
static void gst_gl_effects_xray_step_two (gint width, gint height, guint texture, gpointer data) { GstGLShader *shader; GstGLEffects *effects = GST_GL_EFFECTS (data); GstGLFilter *filter = GST_GL_FILTER (effects); GstGLContext *context = filter->context; GstGLFuncs *gl = context->gl_vtable; shader = g_hash_table_lookup (effects->shaderstable, "xray1"); if (!shader) { shader = gst_gl_shader_new (context); g_hash_table_insert (effects->shaderstable, (gchar *) "xray1", shader); } if (!kernel_ready) { fill_gaussian_kernel (gauss_kernel, 7, 1.5); kernel_ready = TRUE; } if (!gst_gl_shader_compile_and_check (shader, hconv7_fragment_source, GST_GL_SHADER_FRAGMENT_SOURCE)) { gst_gl_context_set_error (context, "Failed to initialize hconv7 shader"); GST_ELEMENT_ERROR (effects, RESOURCE, NOT_FOUND, ("%s", gst_gl_context_get_error ()), (NULL)); return; } gl->MatrixMode (GL_PROJECTION); gl->LoadIdentity (); gst_gl_shader_use (shader); gl->ActiveTexture (GL_TEXTURE1); gl->Enable (GL_TEXTURE_2D); gl->BindTexture (GL_TEXTURE_2D, texture); gl->Disable (GL_TEXTURE_2D); gst_gl_shader_set_uniform_1i (shader, "tex", 1); gst_gl_shader_set_uniform_1fv (shader, "kernel", 9, gauss_kernel); gst_gl_shader_set_uniform_1f (shader, "width", width); gst_gl_filter_draw_texture (filter, texture, width, height); }
6508c4970d704f4bbf114849e687681f73f61e2520bef03ccae7c1d4e58ecb52
1,406
anomalchik
android_kernel_xiaomi
alps/kernel-3.10/drivers/misc/mediatek/connectivity/combo/drv_wlan/mt6630/wlan/common/wlan_lib.c
WLAN_STATUS wlanImageSectionDownloadStage
static WLAN_STATUS wlanImageSectionDownloadStage(IN P_ADAPTER_T prAdapter, IN PVOID pvFwImageMapFile, IN UINT_32 index, IN UINT_32 u4FwImageFileLength, IN BOOLEAN fgValidHead, IN UINT_32 u4FwLoadAddr) { #if CFG_ENABLE_FW_DOWNLOAD UINT_32 u4ImgSecSize; #if CFG_ENABLE_FW_DIVIDED_DOWNLOAD UINT_32 j; P_FIRMWARE_DIVIDED_DOWNLOAD_T prFwHead; WLAN_STATUS u4Status = WLAN_STATUS_SUCCESS; #endif #endif #if CFG_ENABLE_FW_DOWNLOAD #if defined(MT6630) #if CFG_ENABLE_FW_DIVIDED_DOWNLOAD prFwHead = (P_FIRMWARE_DIVIDED_DOWNLOAD_T) pvFwImageMapFile; do { if (fgValidHead == TRUE) { if (wlanImageSectionConfig(prAdapter, prFwHead->arSection[index].u4DestAddr, prFwHead->arSection[index].u4Length, index == 0 ? TRUE : FALSE) != WLAN_STATUS_SUCCESS) { DBGLOG(INIT, ERROR, ("Firmware download configuration failed!\n")); u4Status = WLAN_STATUS_FAILURE; break; } else { for (j = 0; j < prFwHead->arSection[index].u4Length; j += CMD_PKT_SIZE_FOR_IMAGE) { if (j + CMD_PKT_SIZE_FOR_IMAGE < prFwHead->arSection[index].u4Length) u4ImgSecSize = CMD_PKT_SIZE_FOR_IMAGE; else u4ImgSecSize = prFwHead->arSection[index].u4Length - j; if (wlanImageSectionDownload(prAdapter, u4ImgSecSize, (PUINT_8) pvFwImageMapFile + prFwHead->arSection[index].u4Offset + j) != WLAN_STATUS_SUCCESS) { DBGLOG(INIT, ERROR, ("Firmware scatter download failed!\n")); u4Status = WLAN_STATUS_FAILURE; break; } } if (u4Status == WLAN_STATUS_FAILURE) { break; } } } else { if (wlanImageSectionConfig(prAdapter, u4FwLoadAddr, u4FwImageFileLength, TRUE) != WLAN_STATUS_SUCCESS) { DBGLOG(INIT, ERROR, ("Firmware download configuration failed!\n")); u4Status = WLAN_STATUS_FAILURE; break; } else { for (j = 0; j < u4FwImageFileLength; j += CMD_PKT_SIZE_FOR_IMAGE) { if (j + CMD_PKT_SIZE_FOR_IMAGE < u4FwImageFileLength) u4ImgSecSize = CMD_PKT_SIZE_FOR_IMAGE; else u4ImgSecSize = u4FwImageFileLength - j; if (wlanImageSectionDownload(prAdapter, u4ImgSecSize, (PUINT_8)pvFwImageMapFile + j) != WLAN_STATUS_SUCCESS) { DBGLOG(INIT, ERROR, ("Firmware scatter download failed!\n")); u4Status = WLAN_STATUS_FAILURE; break; } } } } } while (0); return u4Status; #endif #endif #endif }
BOOLEAN wlanIsHandlerNeedHwAccess(IN PFN_OID_HANDLER_FUNC pfnOidHandler, IN BOOLEAN fgSetInfo); VOID wlanCardEjected(IN P_ADAPTER_T prAdapter); P_ADAPTER_T wlanAdapterCreate(IN P_GLUE_INFO_T prGlueInfo); VOID wlanAdapterDestroy(IN P_ADAPTER_T prAdapter); WLAN_STATUS wlanAdapterStop(IN P_ADAPTER_T prAdapter); BOOL wlanISR(IN P_ADAPTER_T prAdapter, IN BOOLEAN fgGlobalIntrCtrl); VOID wlanIST(IN P_ADAPTER_T prAdapter); WLAN_STATUS wlanProcessCommandQueue(IN P_ADAPTER_T prAdapter, IN P_QUE_T prCmdQue); WLAN_STATUS wlanSendCommand(IN P_ADAPTER_T prAdapter, IN P_CMD_INFO_T prCmdInfo); WLAN_STATUS wlanSendCommandMthread(IN P_ADAPTER_T prAdapter, IN P_CMD_INFO_T prCmdInfo); WLAN_STATUS wlanTxCmdMthread(IN P_ADAPTER_T prAdapter); WLAN_STATUS wlanTxCmdDoneMthread(IN P_ADAPTER_T prAdapter); VOID wlanClearTxCommandQueue(IN P_ADAPTER_T prAdapter); VOID wlanClearTxCommandDoneQueue(IN P_ADAPTER_T prAdapter); VOID wlanClearDataQueue(IN P_ADAPTER_T prAdapter); VOID wlanClearRxToOsQueue(IN P_ADAPTER_T prAdapter); VOID wlanReleasePendingOid(IN P_ADAPTER_T prAdapter, IN ULONG ulParamPtr); VOID wlanReleasePendingCMDbyBssIdx(IN P_ADAPTER_T prAdapter, IN UINT_8 ucBssIndex); VOID wlanReturnPacketDelaySetupTimeout(IN P_ADAPTER_T prAdapter, IN ULONG ulParamPtr); VOID wlanReturnPacket(IN P_ADAPTER_T prAdapter, IN PVOID pvPacket); BOOLEAN wlanQueryWapiMode(IN P_ADAPTER_T prAdapter); VOID wlanSetPromiscuousMode(IN P_ADAPTER_T prAdapter, IN BOOLEAN fgEnablePromiscuousMode); VOID wlanRxSetBroadcast(IN P_ADAPTER_T prAdapter, IN BOOLEAN fgEnableBroadcast); WLAN_STATUS wlanSendNicPowerCtrlCmd(IN P_ADAPTER_T prAdapter, IN UINT_8 ucPowerMode); BOOLEAN wlanIsHandlerAllowedInRFTest(IN PFN_OID_HANDLER_FUNC pfnOidHandler, IN BOOLEAN fgSetInfo); WLAN_STATUS wlanImageQueryStatus(IN P_ADAPTER_T prAdapter); WLAN_STATUS wlanImageSectionDownloadStatus(IN P_ADAPTER_T prAdapter, IN UINT_8 ucCmdSeqNum); UINT_32 wlanCRC32(PUINT_8 buf, UINT_32 len); WLAN_STATUS wlanProcessQueuedSwRfb(IN P_ADAPTER_T prAdapter, IN P_SW_RFB_T prSwRfbListHead); WLAN_STATUS wlanProcessQueuedMsduInfo(IN P_ADAPTER_T prAdapter, IN P_MSDU_INFO_T prMsduInfoListHead); BOOLEAN wlanoidTimeoutCheck(IN P_ADAPTER_T prAdapter, IN PFN_OID_HANDLER_FUNC pfnOidHandler); VOID wlanoidClearTimeoutCheck(IN P_ADAPTER_T prAdapter); WLAN_STATUS wlanUpdateNetworkAddress(IN P_ADAPTER_T prAdapter); WLAN_STATUS wlanUpdateBasicConfig(IN P_ADAPTER_T prAdapter); BOOLEAN wlanQueryTestMode(IN P_ADAPTER_T prAdapter); BOOLEAN wlanProcessTxFrame(IN P_ADAPTER_T prAdapter, IN P_NATIVE_PACKET prPacket); BOOLEAN wlanProcessSecurityFrame(IN P_ADAPTER_T prAdapter, IN P_NATIVE_PACKET prPacket); VOID wlanSecurityFrameTxTimeout(IN P_ADAPTER_T prAdapter, IN P_CMD_INFO_T prCmdInfo); VOID wlanClearScanningResult(IN P_ADAPTER_T prAdapter); VOID wlanClearBssInScanningResult(IN P_ADAPTER_T prAdapter, IN PUINT_8 arBSSID); VOID wlanEnableP2pFunction(IN P_ADAPTER_T prAdapter); VOID wlanEnableATGO(IN P_ADAPTER_T prAdapter); WLAN_STATUS wlanQueryNicCapability(IN P_ADAPTER_T prAdapter); static INT_32 wlanChangeCodeWord(INT_32 au4Input); WLAN_STATUS wlanQueryPdMcr(IN P_ADAPTER_T prAdapter, P_PARAM_MCR_RW_STRUC_T prMcrRdInfo); static INT_32 wlanIntRound(INT_32 au4Input); static INT_32 wlanCal6628EfuseForm(IN P_ADAPTER_T prAdapter, INT_32 au4Input); static VOID wlanChangeNvram6620to6628(PUINT_8 pucEFUSE); WLAN_STATUS wlanLoadManufactureData_5G(IN P_ADAPTER_T prAdapter, IN P_REG_INFO_T prRegInfo); WLAN_STATUS wlanLoadManufactureData(IN P_ADAPTER_T prAdapter, IN P_REG_INFO_T prRegInfo); BOOLEAN wlanResetMediaStreamMode(IN P_ADAPTER_T prAdapter); WLAN_STATUS wlanTimerTimeoutCheck(IN P_ADAPTER_T prAdapter); WLAN_STATUS wlanProcessMboxMessage(IN P_ADAPTER_T prAdapter); WLAN_STATUS wlanEnqueueTxPacket(IN P_ADAPTER_T prAdapter, IN P_NATIVE_PACKET prNativePacket); WLAN_STATUS wlanFlushTxPendingPackets(IN P_ADAPTER_T prAdapter); WLAN_STATUS wlanTxPendingPackets(IN P_ADAPTER_T prAdapter, IN OUT PBOOLEAN pfgHwAccess); WLAN_STATUS wlanAcquirePowerControl(IN P_ADAPTER_T prAdapter); WLAN_STATUS wlanReleasePowerControl(IN P_ADAPTER_T prAdapter); UINT_32 wlanGetTxPendingFrameCount(IN P_ADAPTER_T prAdapter); ENUM_ACPI_STATE_T wlanGetAcpiState(IN P_ADAPTER_T prAdapter); VOID wlanSetAcpiState(IN P_ADAPTER_T prAdapter, IN ENUM_ACPI_STATE_T ePowerState); UINT_8 wlanGetEcoVersion(IN P_ADAPTER_T prAdapter); VOID wlanDefTxPowerCfg(IN P_ADAPTER_T prAdapter); UINT_8 wlanGetChannelNumberByNetwork(IN P_ADAPTER_T prAdapter, IN UINT_8 ucBssIndex); WLAN_STATUS wlanCheckSystemConfiguration(IN P_ADAPTER_T prAdapter); VOID wlanQueryNicResourceInformation(IN P_ADAPTER_T prAdapter); UINT_8 wlanGetBssIdxByNetInterface(IN P_GLUE_INFO_T prGlueInfo, IN PVOID pvNetInterface); PVOID wlanGetNetInterfaceByBssIdx(IN P_GLUE_INFO_T prGlueInfo, IN UINT_8 ucBssIndex); UINT_8 wlanGetAisBssIndex(IN P_ADAPTER_T prAdapter); VOID wlanInitFeatureOption(IN P_ADAPTER_T prAdapter); P_WLAN_CFG_ENTRY_T wlanCfgGetEntry(IN P_ADAPTER_T prAdapter, const PCHAR pucKey); UINT_32 wlanCfgGetUint32(IN P_ADAPTER_T prAdapter, const PCHAR pucKey, UINT_32 u4ValueDef); INT_32 wlanCfgGetInt32(IN P_ADAPTER_T prAdapter, const PCHAR pucKey, INT_32 i4ValueDef); WLAN_STATUS wlanCfgSetUint32(IN P_ADAPTER_T prAdapter, const PCHAR pucKey, UINT_32 u4Value); INT_32 wlanCfgFindNextToken(struct WLAN_CFG_PARSE_STATE_S *state); WLAN_STATUS wlanCfgParse(IN P_ADAPTER_T prAdapter, PUINT_8 pucConfigBuf, UINT_32 u4ConfigBufLen); INT_32 wlanHexToNum(CHAR c); INT_32 wlanHexToByte(PCHAR hex); INT_32 wlanHwAddrToBin(PCHAR txt, UINT_8 *addr); BOOLEAN wlanIsChipNoAck(IN P_ADAPTER_T prAdapter);
f6b50db37d2c0470b1624ca0be35cea32b97130cce3e36daa7db27d3258816cf
2,590
Lrakulka
Double_Bottom_USB_Stick
Src/sd_io_controller.c
cipherXOR
void cipherXOR(BYTE *buff, const char *key, const uint32_t size) { uint16_t keyLength = strlen(key) / 4; for (uint32_t i = 0; i < size / 4; ++i) { ((int32_t*) buff)[i] ^= ((int32_t *) key)[i % keyLength]; } }
DSTATUS SD_initialize(BYTE lun); DSTATUS SD_status(BYTE lun); DRESULT SD_read(BYTE lun, BYTE *buff, DWORD sector, UINT count); DRESULT SD_write(BYTE lun, const BYTE *buff, DWORD sector, UINT count); DRESULT SD_ioctl(BYTE lun, BYTE cmd, void *buff); int8_t currentPartitionCapacity(uint32_t *block_num, uint16_t *block_size); int8_t currentPartitionRead(BYTE *buff, DWORD sector, UINT count); int8_t currentPartitionWrite(BYTE *buff, DWORD sector, UINT count); int8_t currentPartitionInit(void); int8_t currentPartitionisReady(void); int8_t currentPartitionIsWriteProtected(void); int8_t currentPartitionMaxLun(void); DSTATUS initSDCard(void); uint8_t changePartition(const char *partName, const char *partKey); uint8_t setConf(PartitionsStructure *oldConf, const PartitionsStructure *newConf); uint8_t saveConf(const PartitionsStructure *partitionsStructure); uint8_t loadConf(PartitionsStructure *partitionsStructure, const char *rootKey); uint8_t checkNewPartitionsStructure(const PartitionsStructure *partitionStructure); uint8_t initStartConf(); DWORD getPartitionSector(DWORD sector); uint8_t isPartitionContainsMemorySectors(DWORD shiftedSector, UINT count); Partition* getPartition(); void decryptMemoryAES(BYTE *buff, const char *key, const uint32_t size); void encryptMemoryAES(BYTE *buff, const char *key, const uint32_t size); void createKeyWithSpecLength(const char *keyIn, char *keyOut, const uint16_t keyOutLength); void decryptMemory(BYTE *buff, const char *key, const uint32_t size); void encryptMemory(BYTE *buff, const char *key, const uint32_t size); void resetTimerInerrupt(void);
23772c9759877cd9e8195b62945b235aab34283f16b5e4c37f3c5469f88cf073
221
PatchyFog
lighttpd1.4-mbedtls
src/mod_fastcgi.c
SUBREQUEST_FUNC
SUBREQUEST_FUNC(mod_fastcgi_handle_subrequest) { plugin_data *p = p_d; handler_ctx *hctx = con->plugin_ctx[p->id]; if (NULL == hctx) return HANDLER_GO_ON; if (con->mode != p->id) return HANDLER_GO_ON; if ((con->conf.stream_response_body & FDEVENT_STREAM_RESPONSE_BUFMIN) && con->file_started) { if (chunkqueue_length(con->write_queue) > 65536 - 4096) { fdevent_event_clr(srv->ev, &(hctx->fde_ndx), hctx->fd, FDEVENT_IN); } else if (!(fdevent_event_get_interest(srv->ev, hctx->fd) & FDEVENT_IN)) { handler_t rc = fcgi_recv_response(srv, hctx); if (rc != HANDLER_GO_ON) return rc; fdevent_event_add(srv->ev, &(hctx->fde_ndx), hctx->fd, FDEVENT_IN); } } if (hctx->fcgi_mode != FCGI_AUTHORIZER && (0 == hctx->wb->bytes_in ? con->state == CON_STATE_READ_POST : (hctx->wb->bytes_in < hctx->wb_reqlen || hctx->wb_reqlen < 0))) { if (hctx->wb->bytes_in - hctx->wb->bytes_out > 65536 - 4096) { if (con->conf.stream_request_body & FDEVENT_STREAM_REQUEST_BUFMIN) { con->conf.stream_request_body &= ~FDEVENT_STREAM_REQUEST_POLLIN; } if (0 != hctx->wb->bytes_in) return HANDLER_WAIT_FOR_EVENT; } else { handler_t r = connection_handle_read_post_state(srv, con); chunkqueue *req_cq = con->request_content_queue; #if 0 if (hctx->wb_reqlen < -1 && con->request.content_length >= 0) { hctx->wb_reqlen = -hctx->wb_reqlen + con->request.content_length; fcgi_stdin_append(srv, con, hctx, hctx->request_id); } #endif if (0 != hctx->wb->bytes_in && !chunkqueue_is_empty(req_cq)) { fcgi_stdin_append(srv, con, hctx, hctx->request_id); if (fdevent_event_get_interest(srv->ev, hctx->fd) & FDEVENT_OUT) { return (r == HANDLER_GO_ON) ? HANDLER_WAIT_FOR_EVENT : r; } } if (r != HANDLER_GO_ON) return r; if (-1 == con->request.content_length) { return connection_handle_read_post_error(srv, con, 411); } } } return ((0 == hctx->wb->bytes_in || !chunkqueue_is_empty(hctx->wb)) && hctx->state != FCGI_STATE_CONNECT_DELAYED) ? fcgi_send_request(srv, hctx) : HANDLER_WAIT_FOR_EVENT; }
static void reset_signals(void); static void fastcgi_status_copy_procname(buffer *b, fcgi_extension_host *host, fcgi_proc *proc); static void fcgi_proc_load_inc(server *srv, handler_ctx *hctx); static void fcgi_proc_load_dec(server *srv, handler_ctx *hctx); static void fcgi_host_assign(server *srv, handler_ctx *hctx, fcgi_extension_host *host); static void fcgi_host_reset(server *srv, handler_ctx *hctx); static int fastcgi_status_init(server *srv, buffer *b, fcgi_extension_host *host, fcgi_proc *proc); static handler_ctx * handler_ctx_init(void); static void handler_ctx_free(handler_ctx *hctx); static void handler_ctx_clear(handler_ctx *hctx); static fcgi_proc *fastcgi_process_init(void); static void fastcgi_process_free(fcgi_proc *f); static fcgi_extension_host *fastcgi_host_init(void); static void fastcgi_host_free(fcgi_extension_host *h); static fcgi_exts *fastcgi_extensions_init(void); static void fastcgi_extensions_free(fcgi_exts *f); static int fastcgi_extension_insert(fcgi_exts *ext, buffer *key, fcgi_extension_host *fh); static void fcgi_proc_set_state(fcgi_extension_host *host, fcgi_proc *proc, int state); static void fcgi_proc_disable(server *srv, fcgi_extension_host *host, fcgi_proc *proc, handler_ctx *hctx); static void fcgi_proc_check_enable(server *srv, fcgi_extension_host *host, fcgi_proc *proc); static int fcgi_proc_waitpid(server *srv, fcgi_extension_host *host, fcgi_proc *proc); INIT_FUNC(mod_fastcgi_init); FREE_FUNC(mod_fastcgi_free); static int env_add(char_array *env, const char *key, size_t key_len, const char *val, size_t val_len); static int parse_binpath(char_array *env, buffer *b); static fcgi_extension_host * unixsocket_is_dup(plugin_data *p, size_t used, buffer *unixsocket); SETDEFAULTS_FUNC(mod_fastcgi_set_defaults); static int fcgi_set_state(server *srv, handler_ctx *hctx, fcgi_connection_state_t state); static void fcgi_backend_close(server *srv, handler_ctx *hctx); static fcgi_extension_host * fcgi_extension_host_get(server *srv, connection *con, plugin_data *p, fcgi_extension *extension); static void fcgi_connection_close(server *srv, handler_ctx *hctx); static handler_t fcgi_reconnect(server *srv, handler_ctx *hctx); static handler_t fcgi_connection_reset(server *srv, connection *con, void *p_d); static int fcgi_env_add(void *venv, const char *key, size_t key_len, const char *val, size_t val_len); static int fcgi_header(FCGI_Header * header, unsigned char type, int request_id, int contentLength, unsigned char paddingLength); static connection_result_t fcgi_establish_connection(server *srv, handler_ctx *hctx); static void fcgi_stdin_append(server *srv, connection *con, handler_ctx *hctx, int request_id); static int fcgi_create_env(server *srv, handler_ctx *hctx, int request_id); static int fastcgi_get_packet(server *srv, handler_ctx *hctx, fastcgi_response_packet *packet); static handler_t fcgi_recv_parse(server *srv, connection *con, struct http_response_opts_t *opts, buffer *b, size_t n); static int fcgi_restart_dead_procs(server *srv, plugin_data *p, fcgi_extension_host *host); static handler_t fcgi_write_request(server *srv, handler_ctx *hctx); static handler_t fcgi_send_request(server *srv, handler_ctx *hctx); static handler_t fcgi_recv_response(server *srv, handler_ctx *hctx); static handler_t fcgi_handle_fdevent(server *srv, void *ctx, int revents); static int fcgi_patch_connection(server *srv, connection *con, plugin_data *p); static handler_t fcgi_check_extension(server *srv, connection *con, void *p_d, int uri_path_handler); static handler_t fcgi_check_extension_1(server *srv, connection *con, void *p_d); static handler_t fcgi_check_extension_2(server *srv, connection *con, void *p_d); TRIGGER_FUNC(mod_fastcgi_handle_trigger); int mod_fastcgi_plugin_init(plugin *p);
cb40a091adc45cb2fcc4374aa5e7f4d9daf38555600d761066f897ce246cf933
2,160
alishakiba
libflame
src/map/lapack2flamec/f2c/c/sormr3.c
sormr3_
int sormr3_(char *side, char *trans, integer *m, integer *n, integer *k, integer *l, real *a, integer *lda, real *tau, real *c__, integer *ldc, real *work, integer *info) { integer a_dim1, a_offset, c_dim1, c_offset, i__1, i__2; integer i__, i1, i2, i3, ja, ic, jc, mi, ni, nq; logical left; extern logical lsame_(char *, char *); extern int slarz_(char *, integer *, integer *, integer * , real *, integer *, real *, real *, integer *, real *), xerbla_(char *, integer *); logical notran; a_dim1 = *lda; a_offset = 1 + a_dim1; a -= a_offset; --tau; c_dim1 = *ldc; c_offset = 1 + c_dim1; c__ -= c_offset; --work; *info = 0; left = lsame_(side, "L"); notran = lsame_(trans, "N"); if (left) { nq = *m; } else { nq = *n; } if (! left && ! lsame_(side, "R")) { *info = -1; } else if (! notran && ! lsame_(trans, "T")) { *info = -2; } else if (*m < 0) { *info = -3; } else if (*n < 0) { *info = -4; } else if (*k < 0 || *k > nq) { *info = -5; } else if (*l < 0 || left && *l > *m || ! left && *l > *n) { *info = -6; } else if (*lda < max(1,*k)) { *info = -8; } else if (*ldc < max(1,*m)) { *info = -11; } if (*info != 0) { i__1 = -(*info); xerbla_("SORMR3", &i__1); return 0; } if (*m == 0 || *n == 0 || *k == 0) { return 0; } if (left && ! notran || ! left && notran) { i1 = 1; i2 = *k; i3 = 1; } else { i1 = *k; i2 = 1; i3 = -1; } if (left) { ni = *n; ja = *m - *l + 1; jc = 1; } else { mi = *m; ja = *n - *l + 1; ic = 1; } i__1 = i2; i__2 = i3; for (i__ = i1; i__2 < 0 ? i__ >= i__1 : i__ <= i__1; i__ += i__2) { if (left) { mi = *m - i__ + 1; ic = i__; } else { ni = *n - i__ + 1; jc = i__; } slarz_(side, &mi, &ni, l, &a[i__ + ja * a_dim1], lda, &tau[i__], &c__[ ic + jc * c_dim1], ldc, &work[1]); } return 0; }
d6341ee1f0a429fab6a6c9c6fac2ab0883af03c0175e9cf9151f3f9cbb3c2267
2,542
siddharudh
mlt
src/modules/gtk2/producer_pixbuf.c
refresh_length
static void refresh_length( mlt_properties properties, producer_pixbuf self ) { if ( self->count > mlt_properties_get_int( properties, "length" ) || mlt_properties_get_int( properties, "autolength" ) ) { int ttl = mlt_properties_get_int( properties, "ttl" ); mlt_position length = self->count * ttl; mlt_properties_set_position( properties, "length", length ); mlt_properties_set_position( properties, "out", length - 1 ); } }
static void on_property_changed( mlt_service owner, mlt_producer producer, char *name ); mlt_producer producer_pixbuf_init( char *filename ); static int load_svg( producer_pixbuf self, mlt_properties properties, const char *filename ); static int load_sequence_sprintf( producer_pixbuf self, mlt_properties properties, const char *filename ); static int load_sequence_deprecated( producer_pixbuf self, mlt_properties properties, const char *filename ); static int load_sequence_querystring( producer_pixbuf self, mlt_properties properties, const char *filename ); static int load_folder( producer_pixbuf self, mlt_properties properties, const char *filename ); static void load_filenames( producer_pixbuf self, mlt_properties properties ); static GdkPixbuf* reorient_with_exif( producer_pixbuf self, int image_idx, GdkPixbuf *pixbuf ); static int refresh_pixbuf( producer_pixbuf self, mlt_frame frame ); static void refresh_image( producer_pixbuf self, mlt_frame frame, mlt_image_format format, int width, int height ); static int producer_get_image( mlt_frame frame, uint8_t **buffer, mlt_image_format *format, int *width, int *height, int writable ); static int producer_get_frame( mlt_producer producer, mlt_frame_ptr frame, int index ); static void producer_close( mlt_producer parent );
a94b8af1c4d654f7acc5a33503eed3bfac3b441be85833f708f1b64fe23d7c11
444
romanalexander
Trickles
drivers/mtd/maps/impa7.c
impa7_write16
void impa7_write16(struct map_info *map, __u16 d, unsigned long adr) { __raw_writew(d, map->map_priv_1 + adr); mb(); }
__u8 impa7_read8(struct map_info *map, unsigned long ofs); __u16 impa7_read16(struct map_info *map, unsigned long ofs); __u32 impa7_read32(struct map_info *map, unsigned long ofs); void impa7_copy_from(struct map_info *map, void *to, unsigned long from, ssize_t len); void impa7_write8(struct map_info *map, __u8 d, unsigned long adr); void impa7_write32(struct map_info *map, __u32 d, unsigned long adr); void impa7_copy_to(struct map_info *map, unsigned long to, const void *from, ssize_t len); int __init init_impa7(void); static void __exit cleanup_impa7(void);
507c4722519e98aeda8cbfc987bd8a2bbfe4e10d655525c675ce3d0e23808938
121
MECTsrl
ATCMcontrol_RunTimeSystem
vmLib/libModbus.c
_sleep_response_timeout
tatic void _sleep_response_timeout(modbus_t *ctx) { #ifdef _WIN32 Sleep((ctx->response_timeout.tv_sec * 1000) + (ctx->response_timeout.tv_usec / 1000)); #else register u_int32_t delay_ms; delay_ms = ctx->response_timeout.tv_sec * 1000 + ctx->response_timeout.tv_usec / 1000; osSleep(delay_ms); #endif }
onst char *modbus_strerror(int errnum); oid _error_print(modbus_t *ctx, const char *context, int line); nt modbus_flush(modbus_t *ctx); tatic unsigned int compute_response_length_from_request(modbus_t *ctx, uint8_t *req); tatic int send_msg(modbus_t *ctx, uint8_t *msg, int msg_length); nt modbus_send_raw_request(modbus_t *ctx, uint8_t *raw_req, int raw_req_length); tatic uint8_t compute_meta_length_after_function(int function, msg_type_t msg_type); tatic int compute_data_length_after_meta(modbus_t *ctx, uint8_t *msg, msg_type_t msg_type); nt modbus_receive(modbus_t *ctx, uint8_t *req); nt modbus_receive_confirmation(modbus_t *ctx, uint8_t *rsp); tatic int check_confirmation(modbus_t *ctx, uint8_t *req, uint8_t *rsp, int rsp_length); tatic int response_exception(modbus_t *ctx, sft_t *sft, int exception_code, uint8_t *rsp); nt modbus_reply(modbus_t *ctx, const uint8_t *req, int req_length, modbus_mapping_t *mb_mapping); nt modbus_reply_exception(modbus_t *ctx, const uint8_t *req, unsigned int exception_code); tatic int read_io_status(modbus_t *ctx, int function, int addr, int nb, uint8_t *dest); nt modbus_read_bits(modbus_t *ctx, int addr, int nb, uint8_t *dest); nt modbus_read_input_bits(modbus_t *ctx, int addr, int nb, uint8_t *dest); tatic int read_registers(modbus_t *ctx, int function, int addr, int nb, uint16_t *dest); nt modbus_read_registers(modbus_t *ctx, int addr, int nb, uint16_t *dest); nt modbus_read_input_registers(modbus_t *ctx, int addr, int nb, uint16_t *dest); tatic int write_single(modbus_t *ctx, int function, int addr, int value); nt modbus_write_bit(modbus_t *ctx, int addr, int status); nt modbus_write_register(modbus_t *ctx, int addr, int value); nt modbus_write_bits(modbus_t *ctx, int addr, int nb, const uint8_t *src); nt modbus_write_registers(modbus_t *ctx, int addr, int nb, const uint16_t *src); nt modbus_mask_write_register(modbus_t *ctx, int addr, uint16_t and_mask, uint16_t or_mask); nt modbus_report_slave_id(modbus_t *ctx, uint8_t *dest); oid _modbus_init_common(modbus_t *ctx); nt modbus_set_slave(modbus_t *ctx, int slave); nt modbus_set_error_recovery(modbus_t *ctx, modbus_error_recovery_mode error_recovery); oid modbus_set_socket(modbus_t *ctx, int socket); nt modbus_get_socket(modbus_t *ctx); oid modbus_get_response_timeout(modbus_t *ctx, struct timeval *timeout); oid modbus_set_response_timeout(modbus_t *ctx, const struct timeval *timeout); oid modbus_get_byte_timeout(modbus_t *ctx, struct timeval *timeout); oid modbus_set_byte_timeout(modbus_t *ctx, const struct timeval *timeout); nt modbus_get_header_length(modbus_t *ctx); nt modbus_connect(modbus_t *ctx); oid modbus_close(modbus_t *ctx); oid modbus_free(modbus_t *ctx); oid modbus_set_debug(modbus_t *ctx, int boolean); odbus_mapping_t* modbus_mapping_new(int nb_bits, int nb_input_bits, int nb_registers, int nb_input_registers); oid modbus_mapping_free(modbus_mapping_t *mb_mapping); ize_t strlcpy(char *dest, const char *src, size_t dest_size); oid modbus_set_bits_from_byte(uint8_t *dest, int index, const uint8_t value); oid modbus_set_bits_from_bytes(uint8_t *dest, int index, unsigned int nb_bits, const uint8_t *tab_byte); int8_t modbus_get_byte_from_bits(const uint8_t *src, int index, unsigned int nb_bits); loat modbus_get_float(const uint16_t *src); loat modbus_get_float_dcba(const uint16_t *src); loat modbus_get_float_badc(const uint16_t *src); loat modbus_get_float_cdab(const uint16_t *src); oid modbus_set_float(float f, uint16_t *dest); oid modbus_set_float_dcba(float f, uint16_t *dest); oid modbus_set_float_badc(float f, uint16_t *dest); oid modbus_set_float_cdab(float f, uint16_t *dest); tatic int _modbus_set_slave(modbus_t *ctx, int slave); tatic int _modbus_rtu_build_response_basis(sft_t *sft, uint8_t *rsp); tatic uint16_t crc16(uint8_t *buffer, uint16_t buffer_length); tatic int _modbus_rtu_prepare_response_tid(__attribute((unused); tatic int _modbus_rtu_send_msg_pre(uint8_t *req, int req_length); tatic void win32_ser_init(struct win32_ser *ws); tatic int win32_ser_select(struct win32_ser *ws, int max_len, struct timeval *tv); tatic int win32_ser_read(struct win32_ser *ws, uint8_t *p_msg, unsigned int max_len); tatic void _modbus_rtu_ioctl_rts(int fd, int on); tatic int _modbus_rtu_receive(modbus_t *ctx, uint8_t *req); tatic ssize_t _modbus_rtu_recv(modbus_t *ctx, uint8_t *rsp, int rsp_length); tatic int _modbus_rtu_pre_check_confirmation(modbus_t *ctx, const uint8_t *req, uint8_t *rsp, __attribute__((unused); tatic int _modbus_rtu_check_integrity(modbus_t *ctx, uint8_t *msg, const int msg_length); tatic int _modbus_rtu_connect(modbus_t *ctx); nt modbus_rtu_set_serial_mode(modbus_t *ctx, int mode); nt modbus_rtu_get_serial_mode(modbus_t *ctx); nt modbus_rtu_set_rts(modbus_t *ctx, int mode); nt modbus_rtu_get_rts(modbus_t *ctx); tatic void _modbus_rtu_close(modbus_t *ctx); tatic int _modbus_rtu_flush(modbus_t *ctx); tatic int _modbus_rtu_select(modbus_t *ctx, fd_set *rset, struct timeval *tv, __attribute__((unused); tatic void _modbus_rtu_free(modbus_t *ctx); tatic int _modbus_tcp_init_win32(void); tatic int _modbus_tcprtu_build_response_basis(sft_t *sft, uint8_t *rsp); tatic int _modbus_tcprtu_prepare_response_tid(__attribute__((unused); tatic int _modbus_tcprtu_send_msg_pre(uint8_t *req, int req_length); tatic ssize_t _modbus_tcprtu_send(modbus_t *ctx, const uint8_t *req, int req_length); tatic int _modbus_tcprtu_flush(modbus_t *ctx); tatic int _modbus_tcprtu_receive(modbus_t *ctx, uint8_t *req); tatic ssize_t _modbus_tcprtu_recv(modbus_t *ctx, uint8_t *rsp, int rsp_length); tatic int _modbus_tcprtu_check_integrity(modbus_t *ctx, uint8_t *msg, const int msg_length); tatic int _modbus_tcprtu_pre_check_confirmation(modbus_t *ctx, const uint8_t *req, uint8_t *rsp, __attribute__((unused); tatic int _modbus_tcp_set_ipv4_options(int s); tatic int _modbus_tcprtu_connect(modbus_t *ctx); tatic void _modbus_tcprtu_close(modbus_t *ctx); nt modbus_tcprtu_listen(modbus_t *ctx, int nb_connection); nt modbus_tcprtu_accept(modbus_t *ctx, int *socket); tatic int _modbus_tcprtu_select(modbus_t *ctx, fd_set *rset, struct timeval *tv, __attribute__((unused); tatic void _modbus_tcprtu_free(modbus_t *ctx); odbus_t* modbus_new_tcprtu(const char *ip, int port); tatic int _modbus_tcp_build_response_basis(sft_t *sft, uint8_t *rsp); tatic int _modbus_tcp_prepare_response_tid(const uint8_t *req, __attribute__((unused); tatic int _modbus_tcp_send_msg_pre(uint8_t *req, int req_length); tatic ssize_t _modbus_tcp_send(modbus_t *ctx, const uint8_t *req, int req_length); tatic int _modbus_tcp_receive(modbus_t *ctx, uint8_t *req); tatic ssize_t _modbus_tcp_recv(modbus_t *ctx, uint8_t *rsp, int rsp_length); tatic int _modbus_tcp_check_integrity(__attribute__((unused); tatic int _modbus_tcp_pre_check_confirmation(modbus_t *ctx, const uint8_t *req, uint8_t *rsp, __attribute__((unused); tatic int _modbus_tcp_connect(modbus_t *ctx); tatic int _modbus_tcp_pi_connect(modbus_t *ctx); tatic void _modbus_tcp_close(modbus_t *ctx); tatic int _modbus_tcp_flush(modbus_t *ctx); nt modbus_tcp_listen(modbus_t *ctx, int nb_connection); nt modbus_tcp_pi_listen(modbus_t *ctx, int nb_connection); nt modbus_tcp_accept(modbus_t *ctx, int *socket); nt modbus_tcp_pi_accept(modbus_t *ctx, int *socket); tatic int _modbus_tcp_select(modbus_t *ctx, fd_set *rset, struct timeval *tv, __attribute__((unused); tatic void _modbus_tcp_free(modbus_t *ctx); odbus_t* modbus_new_tcp(const char *ip, int port); odbus_t* modbus_new_tcp_pi(const char *node, const char *service); odbus_t * mb_get_context(char *label); oid mb_set_slave(STDLIBFUNCALL); oid mb_get_response_timeout(STDLIBFUNCALL); oid mb_set_response_timeout(STDLIBFUNCALL); oid mb_get_byte_timeout(STDLIBFUNCALL); oid mb_set_byte_timeout(STDLIBFUNCALL); oid mb_get_header_length(STDLIBFUNCALL); oid mb_connect(STDLIBFUNCALL); oid mb_close(STDLIBFUNCALL); oid mb_free(STDLIBFUNCALL); oid mb_flush(STDLIBFUNCALL); oid mb_read_bits(STDLIBFUNCALL); oid mb_read_input_bits(STDLIBFUNCALL); oid mb_read_registers(STDLIBFUNCALL); oid mb_read_input_registers(STDLIBFUNCALL); oid mb_write_bit(STDLIBFUNCALL); oid mb_write_register(STDLIBFUNCALL); oid mb_write_bits(STDLIBFUNCALL); oid mb_write_registers(STDLIBFUNCALL); oid mb_mask_write_register(STDLIBFUNCALL); oid mb_write_and_read_registers(STDLIBFUNCALL); oid mb_report_slave_id(STDLIBFUNCALL); oid mb_new_tcp(STDLIBFUNCALL); oid mb_tcp_listen(STDLIBFUNCALL); oid mb_tcp_accept(STDLIBFUNCALL); oid mb_new_tcp_pi(STDLIBFUNCALL); oid mb_tcp_pi_listen(STDLIBFUNCALL); oid mb_tcp_pi_accept(STDLIBFUNCALL); oid mb_new_tcprtu(STDLIBFUNCALL); oid mb_tcprtu_listen(STDLIBFUNCALL); oid mb_tcprtu_accept(STDLIBFUNCALL); oid mb_new_rtu(STDLIBFUNCALL); oid mb_rtu_set_serial_mode(STDLIBFUNCALL); oid mb_rtu_get_serial_mode(STDLIBFUNCALL); oid mb_rtu_get_rts(STDLIBFUNCALL); oid mb_rtu_set_rts(STDLIBFUNCALL); oid mb_set_bits_from_byte(STDLIBFUNCALL); oid mb_set_bits_from_bytes(STDLIBFUNCALL); oid mb_get_byte_from_bits(STDLIBFUNCALL); oid mb_get_float(STDLIBFUNCALL); oid mb_get_float_dcba(STDLIBFUNCALL); oid mb_get_float_badc(STDLIBFUNCALL); oid mb_get_float_cdab(STDLIBFUNCALL); oid mb_set_float(STDLIBFUNCALL); oid mb_set_float_dcba(STDLIBFUNCALL); oid mb_set_float_badc(STDLIBFUNCALL); oid mb_set_float_cdab(STDLIBFUNCALL); oid mb_set_error_recovery(STDLIBFUNCALL);
2ed5673629c719b8e9a37dd839e57641f4763838745f81f2b2e1cdbe642f9ebf
323
syndicut
libvirt
.pc/ubuntu/xen-xend-shutdown-detection.patch/src/xen/xend_internal.c
virDomainDefPtr xenDaemonDomainFetch
virDomainDefPtr xenDaemonDomainFetch(virConnectPtr conn, int domid, const char *name, const char *cpus) { struct sexpr *root; xenUnifiedPrivatePtr priv; virDomainDefPtr def; int id; char * tty; int vncport; if (name) root = sexpr_get(conn, "/xend/domain/%s?detail=1", name); else root = sexpr_get(conn, "/xend/domain/%d?detail=1", domid); if (root == NULL) return (NULL); priv = (xenUnifiedPrivatePtr) conn->privateData; id = xenGetDomIdFromSxpr(root, priv->xendConfigVersion); xenUnifiedLock(priv); tty = xenStoreDomainGetConsolePath(conn, id); vncport = xenStoreDomainGetVNCPort(conn, id); xenUnifiedUnlock(priv); if (!(def = xenParseSxpr(root, priv->xendConfigVersion, cpus, tty, vncport))) goto cleanup; cleanup: sexpr_free(root); return (def); }
static int ATTRIBUTE_NONNULL (2); static int ATTRIBUTE_NONNULL(3); struct sexpr *root); virDomainPtr xenDaemonDomainDefineXML(virConnectPtr conn, const char *xmlDesc); int xenDaemonDomainCreate(virDomainPtr domain); int xenDaemonDomainUndefine(virDomainPtr domain);
ccf341bece48f4673712fd5dc83f82bdcdec081a1f44434f6a5217c55da8f987
1,039
ropelinen
rasterizer
src/software_rasterizer/demo/osal_win.c
get_time
uint64_t get_time(void) { LARGE_INTEGER time; QueryPerformanceCounter(&time); return time.QuadPart; }
int c99_vsnprintf(char *outBuf, size_t size, const char *format, va_list ap); int c99_snprintf(char *outBuf, size_t size, const char *format, ...); void error_popup(const char *msg, const bool kill_program); void create_window(struct api_info *api_info, HINSTANCE hInstance, struct renderer_info *renderer_info); void renderer_initialize(struct renderer_info *info, unsigned int width, unsigned int height); void renderer_destroy(struct renderer_info *info); bool event_loop(void); void finish_drawing(struct api_info *api_info); void *get_backbuffer(struct renderer_info *info); uint32_t get_blit_duration_ms(struct renderer_info *info); struct vec2_int get_backbuffer_size(struct renderer_info *info); void renderer_clear_backbuffer(struct renderer_info *info, const uint32_t color); uint64_t get_time_microseconds(const uint64_t time); unsigned int get_logical_core_count(void); bool uint64_to_string(const uint64_t value, char *buffer, const size_t buffer_size); bool float_to_string(const float value, char *buffer, const size_t buffer_size); DWORD WINAPI thread_func(LPVOID lpParam); struct thread *thread_create(const int core_id); void thread_destroy(struct thread **thread); bool thread_set_task(struct thread *thread, void(*func); bool thread_has_task(struct thread *thread); void thread_wait_for_task(struct thread *thread); uint8_t get_virtual_key_code(enum keycodes keycode); bool is_key_down(struct api_info *api_info, enum keycodes keycode); static LRESULT CALLBACK WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam); int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow);
b341b998e0d071df5a8372b7120122dc2805d24ded701d033a83e241010b7c14
105
justsoso8
kernel_zte_n780
drivers/i2c/chips/adxl34x.c
adxl34x_i2c_init
static int __init adxl34x_i2c_init(void) { #ifdef CONFIG_MACH_BLADE blade_board_id = get_zte_board_id_type(); #endif pr_info("[@gsensor]G-sensor driver: init\n"); return i2c_add_driver(&adxl34x_driver); }
static int adxl34x_i2c_read(struct i2c_client *client, unsigned char reg); static int adxl34x_hw_init(void); static int adxl34x_get_triple(short *buffer); static void adxl34x_disable(struct adxl34x *ac); static void adxl34x_enable(struct adxl34x *ac); static int adxl34x_set_mode(short mode); static int adxl34x_open(struct inode *inode, struct file *file); static int adxl34x_release(struct inode *inode, struct file *file); static void adxl34x_early_suspend(struct early_suspend *handler); static void adxl34x_late_resume(struct early_suspend *handler); static int adxl34x_i2c_remove(struct i2c_client *client); static void __exit adxl34x_i2c_exit(void);
2c46904e90e9c878886b39fbb6c8f597d349ad3fe2af49d4cf60641f5b4ab8b2
208
Philippe12
linux-3.4-a20
drivers/video/sun7i/disp/dev_fb.c
Fb_map_video_memory
static int __init Fb_map_video_memory(struct fb_info *info) { #ifndef FB_RESERVED_MEM unsigned map_size = PAGE_ALIGN(info->fix.smem_len); struct page *page; page = alloc_pages(GFP_KERNEL,get_order(map_size)); if(page != NULL) { info->screen_base = page_address(page); info->fix.smem_start = virt_to_phys(info->screen_base); memset(info->screen_base,0,info->fix.smem_len); __inf("Fb_map_video_memory, pa=0x%08lx size:0x%x\n",info->fix.smem_start, info->fix.smem_len); return 0; } else { __wrn("alloc_pages fail!\n"); return -ENOMEM; } #else info->screen_base = (char __iomem *)disp_malloc(info->fix.smem_len, &info->fix.smem_start); if(info->screen_base) { __inf("Fb_map_video_memory, pa=0x%x size:0x%x\n",info->fix.smem_start, info->fix.smem_len); memset(info->screen_base,0,info->fix.smem_len); global_fb_addr.fb_paddr=info->fix.smem_start; global_fb_addr.fb_size=info->fix.smem_len; return 0; }else { __wrn("disp_malloc fail!\n"); return -ENOMEM; } #endif }
__s32 parser_disp_init_para(__disp_init_t * init_para); __s32 fb_draw_colorbar(__u32 base, __u32 width, __u32 height, struct fb_var_screeninfo *var); __s32 fb_draw_gray_pictures(__u32 base, __u32 width, __u32 height, struct fb_var_screeninfo *var); static inline void Fb_unmap_video_memory(struct fb_info *info); void sun7i_get_fb_addr_para(struct __fb_addr_para *fb_addr_para); __s32 disp_fb_to_var(__disp_pixel_fmt_t format, __disp_pixel_seq_t seq, __bool br_swap, struct fb_var_screeninfo *var); __s32 var_to_disp_fb(__disp_fb_t *fb, struct fb_var_screeninfo *var, struct fb_fix_screeninfo * fix); static int Fb_open(struct fb_info *info, int user); static int Fb_release(struct fb_info *info, int user); static int Fb_wait_for_vsync(struct fb_info *info); static int Fb_pan_display(struct fb_var_screeninfo *var,struct fb_info *info); static int Fb_check_var(struct fb_var_screeninfo *var, struct fb_info *info); static int Fb_set_par(struct fb_info *info); static int Fb_setcolreg(unsigned regno,unsigned red, unsigned green, unsigned blue,unsigned transp, struct fb_info *info); static int Fb_setcmap(struct fb_cmap *cmap, struct fb_info *info); int Fb_blank(int blank_mode, struct fb_info *info); static int Fb_cursor(struct fb_info *info, struct fb_cursor *cursor); __s32 DRV_disp_int_process(__u32 sel); __s32 DRV_disp_vsync_event(__u32 sel); static void send_vsync_work_0(struct work_struct *work); static void send_vsync_work_1(struct work_struct *work); static int dispc_update_regs(setup_dispc_data_t *psDispcData); static void hwc_commit_work(struct work_struct *work); int hwc_commit(int sel, setup_dispc_data_t *disp_data); static int Fb_ioctl(struct fb_info *info, unsigned int cmd,unsigned long arg); static unsigned long GCD(unsigned long x, unsigned long y); static unsigned long LCM(unsigned long x, unsigned long y); static inline unsigned long RoundUpToMultiple(unsigned long x, unsigned long y); __s32 Display_Fb_Request(__u32 fb_id, __disp_fb_create_para_t *fb_para); __s32 Display_Fb_Release(__u32 fb_id); __s32 Display_Fb_get_para(__u32 fb_id, __disp_fb_create_para_t *fb_para); __s32 Display_get_disp_init_para(__disp_init_t * init_para); __s32 Display_set_fb_timming(__u32 sel); __s32 Fb_Init(__u32 from); __s32 Fb_Exit(void);
e07d409045618268aa845224993190c24017e20160e7bcb6236f414c1aff7090
1,075
OpenVnmrJ
OpenVnmrJ
src/ib/polygon.c
void Polygon::update_data_coords
void Polygon::update_data_coords() { int i; delete[] points_on_data; points_on_data = new Fpoint[npnts]; for (i=0; i<npnts; i++){ points_on_data[i].x = xpix_to_data(pnt[i].x); points_on_data[i].y = ypix_to_data(pnt[i].y); } if (npnts){ build_ydataedge(); } }
static char *Sid();
54687afe6829d8a531b0bdac81e97d15739ec9fe81f195cdfb9cf91a0848f0c9
301
JianpingZeng
xcc
xcc/test/juliet/testcases/CWE78_OS_Command_Injection/s04/CWE78_OS_Command_Injection__char_listen_socket_system_54a.c
main
int main(int argc, char * argv[]) { srand( (unsigned)time(NULL) ); #ifndef OMITGOOD printLine("Calling good()..."); CWE78_OS_Command_Injection__char_listen_socket_system_54_good(); printLine("Finished good()"); #endif #ifndef OMITBAD printLine("Calling bad()..."); CWE78_OS_Command_Injection__char_listen_socket_system_54_bad(); printLine("Finished bad()"); #endif return 0; }
void CWE78_OS_Command_Injection__char_listen_socket_system_54_bad(); static void goodG2B(); void CWE78_OS_Command_Injection__char_listen_socket_system_54_good();
8528fc20dc8dc22be6bde5b4411ddf8538aa17fd75c63fa985b3f86ddbb627d5
434
tanakamura
meadow
src/cm.c
void cmcostinit
void cmcostinit () { char *p; #define COST(x,e) (x ? (cost = 0, tputs (x, 1, e), cost) : BIG) #define CMCOST(x,e) ((x == 0) ? BIG : (p = tgoto(x, 0, 0), COST(p ,e))) Wcm.cc_up = COST (Wcm.cm_up, evalcost); Wcm.cc_down = COST (Wcm.cm_down, evalcost); Wcm.cc_left = COST (Wcm.cm_left, evalcost); Wcm.cc_right = COST (Wcm.cm_right, evalcost); Wcm.cc_home = COST (Wcm.cm_home, evalcost); Wcm.cc_cr = COST (Wcm.cm_cr, evalcost); Wcm.cc_ll = COST (Wcm.cm_ll, evalcost); Wcm.cc_tab = Wcm.cm_tabwidth ? COST (Wcm.cm_tab, evalcost) : BIG; Wcm.cc_abs = CMCOST (Wcm.cm_abs, evalcost); Wcm.cc_habs = CMCOST (Wcm.cm_habs, evalcost); Wcm.cc_vabs = CMCOST (Wcm.cm_vabs, evalcost); #undef CMCOST #undef COST }
657826c1f33a03737478593478d8a7fddb50e4ad807a3619ac50b593fbfacc98
782
cpopescu
whispermedialib
gst-libs/gst/rtp/gstrtpbuffer.c
guint16 gst_rtp_buffer_list_get_seq
guint16 gst_rtp_buffer_list_get_seq (GstBufferList * list) { GstBuffer *buffer; buffer = gst_buffer_list_get (list, 0, 0); g_return_val_if_fail (buffer != NULL, 0); return g_ntohl (GST_RTP_HEADER_SEQ (GST_BUFFER_DATA (buffer))); }
4a8361db0e65aec12c268a9289455d244cc525cbc84f7f07b2cba5feba347bce
241
PrestigeMod
SHV-E210S
drivers/gpu/drm/exynos/exynos_drm_fimc.c
fimc_src_set_fmt_order
static int fimc_src_set_fmt_order(struct fimc_context *ctx, u32 fmt) { struct exynos_drm_ippdrv *ippdrv = &ctx->ippdrv; u32 cfg; DRM_DEBUG_KMS("%s:fmt[0x%x]\n", __func__, fmt); cfg = fimc_read(EXYNOS_CISCCTRL); cfg &= ~EXYNOS_CISCCTRL_INRGB_FMT_RGB_MASK; switch (fmt) { case DRM_FORMAT_RGB565: cfg |= EXYNOS_CISCCTRL_INRGB_FMT_RGB565; fimc_write(cfg, EXYNOS_CISCCTRL); return 0; case DRM_FORMAT_RGB888: case DRM_FORMAT_XRGB8888: cfg |= EXYNOS_CISCCTRL_INRGB_FMT_RGB888; fimc_write(cfg, EXYNOS_CISCCTRL); return 0; default: break; } cfg = fimc_read(EXYNOS_MSCTRL); cfg &= ~(EXYNOS_MSCTRL_ORDER2P_SHIFT_MASK | EXYNOS_MSCTRL_C_INT_IN_2PLANE | EXYNOS_MSCTRL_ORDER422_YCBYCR); switch (fmt) { case DRM_FORMAT_YUYV: cfg |= EXYNOS_MSCTRL_ORDER422_YCBYCR; break; case DRM_FORMAT_YVYU: cfg |= EXYNOS_MSCTRL_ORDER422_YCRYCB; break; case DRM_FORMAT_UYVY: cfg |= EXYNOS_MSCTRL_ORDER422_CBYCRY; break; case DRM_FORMAT_VYUY: case DRM_FORMAT_YUV444: cfg |= EXYNOS_MSCTRL_ORDER422_CRYCBY; break; case DRM_FORMAT_NV21: case DRM_FORMAT_NV61: cfg |= (EXYNOS_MSCTRL_ORDER2P_LSB_CRCB | EXYNOS_MSCTRL_C_INT_IN_2PLANE); break; case DRM_FORMAT_YUV422: case DRM_FORMAT_YUV420: case DRM_FORMAT_YVU420: cfg |= EXYNOS_MSCTRL_C_INT_IN_3PLANE; break; case DRM_FORMAT_NV12: case DRM_FORMAT_NV12M: case DRM_FORMAT_NV16: cfg |= (EXYNOS_MSCTRL_ORDER2P_LSB_CBCR | EXYNOS_MSCTRL_C_INT_IN_2PLANE); break; default: dev_err(ippdrv->dev, "inavlid source yuv order 0x%x.\n", fmt); return -EINVAL; } fimc_write(cfg, EXYNOS_MSCTRL); return 0; }
static void fimc_sw_reset(struct fimc_context *ctx, bool pattern); static void fimc_set_camblk_fimd0_wb(struct fimc_context *ctx); static void fimc_set_type_ctrl(struct fimc_context *ctx, enum fimc_wb wb); static void fimc_handle_jpeg(struct fimc_context *ctx, bool enable); static void fimc_clear_irq(struct fimc_context *ctx); static bool fimc_check_ovf(struct fimc_context *ctx); static int fimc_get_pf(struct fimc_context *ctx, bool present); static void fimc_handle_lastend(struct fimc_context *ctx, bool enable); static int fimc_src_set_fmt(struct device *dev, u32 fmt); static int fimc_get_ratio_shift(u32 src, u32 dst, u32 *ratio, u32 *shift); static void fimc_set_scaler(struct fimc_context *ctx, struct fimc_scaler *sc); static int fimc_dst_set_fmt_order(struct fimc_context *ctx, u32 fmt); static int fimc_dst_set_fmt(struct device *dev, u32 fmt); static int fimc_power_on(struct fimc_context *ctx, bool enable); static irqreturn_t fimc_irq_handler(int irq, void *dev_id); static int fimc_ippdrv_reset(struct device *dev); static int fimc_ippdrv_start(struct device *dev, enum drm_exynos_ipp_cmd cmd); static void fimc_ippdrv_stop(struct device *dev, enum drm_exynos_ipp_cmd cmd); static int __devinit fimc_probe(struct platform_device *pdev); static int __devexit fimc_remove(struct platform_device *pdev); static int fimc_suspend(struct device *dev); static int fimc_resume(struct device *dev); static int fimc_runtime_suspend(struct device *dev); static int fimc_runtime_resume(struct device *dev);
babd9450427f30fe65b585d071a38d40c5cb8dee43c8dc46275d6c8292804adf
1,605
Dopi
JetPlatform_external_alsa-utils
amixer/amixer.c
cset
static int cset(int argc, char *argv[], int roflag, int keep_handle) { int err; static snd_ctl_t *handle = NULL; snd_ctl_elem_info_t *info; snd_ctl_elem_id_t *id; snd_ctl_elem_value_t *control; char *ptr; unsigned int idx, count; long tmp; snd_ctl_elem_type_t type; snd_ctl_elem_info_alloca(&info); snd_ctl_elem_id_alloca(&id); snd_ctl_elem_value_alloca(&control); if (argc < 1) { fprintf(stderr, "Specify a full control identifier: [[iface=<iface>,][name='name',][index=<index>,][device=<device>,][subdevice=<subdevice>]]|[numid=<numid>]\n"); return -EINVAL; } if (parse_control_id(argv[0], id)) { fprintf(stderr, "Wrong control identifier: %s\n", argv[0]); return -EINVAL; } if (debugflag) { printf("VERIFY ID: "); show_control_id(id); printf("\n"); } if (handle == NULL && (err = snd_ctl_open(&handle, card, 0)) < 0) { error("Control %s open error: %s\n", card, snd_strerror(err)); return err; } snd_ctl_elem_info_set_id(info, id); if ((err = snd_ctl_elem_info(handle, info)) < 0) { if (ignore_error) return 0; error("Cannot find the given element from control %s\n", card); if (! keep_handle) { snd_ctl_close(handle); handle = NULL; } return err; } snd_ctl_elem_info_get_id(info, id); type = snd_ctl_elem_info_get_type(info); count = snd_ctl_elem_info_get_count(info); snd_ctl_elem_value_set_id(control, id); if (!roflag) { ptr = argv[1]; for (idx = 0; idx < count && idx < 128 && ptr && *ptr; idx++) { switch (type) { case SND_CTL_ELEM_TYPE_BOOLEAN: tmp = 0; if (!strncasecmp(ptr, "on", 2) || !strncasecmp(ptr, "up", 2)) { tmp = 1; ptr += 2; } else if (!strncasecmp(ptr, "yes", 3)) { tmp = 1; ptr += 3; } else if (!strncasecmp(ptr, "toggle", 6)) { tmp = snd_ctl_elem_value_get_boolean(control, idx); tmp = tmp > 0 ? 0 : 1; ptr += 6; } else if (isdigit(*ptr)) { tmp = atoi(ptr) > 0 ? 1 : 0; while (isdigit(*ptr)) ptr++; } else { while (*ptr && *ptr != ',') ptr++; } snd_ctl_elem_value_set_boolean(control, idx, tmp); break; case SND_CTL_ELEM_TYPE_INTEGER: tmp = get_integer(&ptr, snd_ctl_elem_info_get_min(info), snd_ctl_elem_info_get_max(info)); snd_ctl_elem_value_set_integer(control, idx, tmp); break; case SND_CTL_ELEM_TYPE_INTEGER64: tmp = get_integer64(&ptr, snd_ctl_elem_info_get_min64(info), snd_ctl_elem_info_get_max64(info)); snd_ctl_elem_value_set_integer64(control, idx, tmp); break; case SND_CTL_ELEM_TYPE_ENUMERATED: tmp = get_ctl_enum_item_index(handle, info, &ptr); if (tmp < 0) tmp = get_integer(&ptr, 0, snd_ctl_elem_info_get_items(info) - 1); snd_ctl_elem_value_set_enumerated(control, idx, tmp); break; case SND_CTL_ELEM_TYPE_BYTES: tmp = get_integer(&ptr, 0, 255); snd_ctl_elem_value_set_byte(control, idx, tmp); break; default: break; } if (!strchr(argv[1], ',')) ptr = argv[1]; else if (*ptr == ',') ptr++; } if ((err = snd_ctl_elem_write(handle, control)) < 0) { if (!ignore_error) error("Control %s element write error: %s\n", card, snd_strerror(err)); if (!keep_handle) { snd_ctl_close(handle); handle = NULL; } return ignore_error ? 0 : err; } } if (! keep_handle) { snd_ctl_close(handle); handle = NULL; } if (!quiet) { snd_hctl_t *hctl; snd_hctl_elem_t *elem; if ((err = snd_hctl_open(&hctl, card, 0)) < 0) { error("Control %s open error: %s\n", card, snd_strerror(err)); return err; } if ((err = snd_hctl_load(hctl)) < 0) { error("Control %s load error: %s\n", card, snd_strerror(err)); return err; } elem = snd_hctl_find_elem(hctl, id); if (elem) show_control(" ", elem, LEVEL_BASIC | LEVEL_ID); else printf("Could not find the specified element\n"); snd_hctl_close(hctl); } return 0; }
static void error(const char *fmt,...); static int help(void); static int info(void); static const char *control_iface(snd_ctl_elem_id_t *id); static const char *control_type(snd_ctl_elem_info_t *info); static const char *control_access(snd_ctl_elem_info_t *info); static int convert_range(int val, int omin, int omax, int nmin, int nmax); static int convert_db_range(int val, int omin, int omax, int nmin, int nmax); static int convert_prange(int val, int min, int max); static const char *get_percent(int val, int min, int max); static const char *get_percent1(int val, int min, int max, int min_dB, int max_dB); static long get_integer(char **ptr, long min, long max); static long get_integer64(char **ptr, long long min, long long max); static int get_bool_simple(char **ptr, char *str, int invert, int orig); static int simple_skip_word(char **ptr, char *str); static void show_control_id(snd_ctl_elem_id_t *id); static void print_spaces(unsigned int spaces); static void print_dB(long dB); static void decode_tlv(unsigned int spaces, unsigned int *tlv, unsigned int tlv_size); static int controls(int level); static int show_selem(snd_mixer_t *handle, snd_mixer_selem_id_t *id, const char *space, int level); static int selems(int level); static int parse_control_id(const char *str, snd_ctl_elem_id_t *id); static int parse_simple_id(const char *str, snd_mixer_selem_id_t *sid); static unsigned int channels_mask(char **arg, unsigned int def); static unsigned int dir_mask(char **arg, unsigned int def); static int get_enum_item_index(snd_mixer_elem_t *elem, char **ptrp); static int sset_enum(snd_mixer_elem_t *elem, unsigned int argc, char **argv); static int sset_channels(snd_mixer_elem_t *elem, unsigned int argc, char **argv); static int sset(unsigned int argc, char *argv[], int roflag, int keep_handle); static void events_info(snd_hctl_elem_t *helem); static void events_value(snd_hctl_elem_t *helem); static void events_remove(snd_hctl_elem_t *helem); static int element_callback(snd_hctl_elem_t *elem, unsigned int mask); static void events_add(snd_hctl_elem_t *helem); static int events(int argc ATTRIBUTE_UNUSED, char *argv[] ATTRIBUTE_UNUSED); static void sevents_value(snd_mixer_selem_id_t *sid); static void sevents_info(snd_mixer_selem_id_t *sid); static void sevents_remove(snd_mixer_selem_id_t *sid); static int melem_event(snd_mixer_elem_t *elem, unsigned int mask); static void sevents_add(snd_mixer_elem_t *elem); static int sevents(int argc ATTRIBUTE_UNUSED, char *argv[] ATTRIBUTE_UNUSED); static int split_line(char *buf, char **token, int max_token); static int exec_stdin(void); int main(int argc, char *argv[]);
f94945c8cd8c77c1f530ff9b3cbfb20712f74aec3ac0a3474789029a52851147
3,909
ldotlopez
eina
lomo/lomo-player.c
gint lomo_player_queue
gint lomo_player_queue(LomoPlayer *self, gint index) { g_return_val_if_fail(LOMO_IS_PLAYER(self), -1); g_return_val_if_fail((index >= 0) && (index < lomo_player_get_n_streams(self)), -1); LomoPlayerPrivate *priv = self->priv; LomoStream *stream = lomo_playlist_get_nth_stream(priv->playlist, index); g_return_val_if_fail(stream != NULL, -1); gint ret = -1; if (player_run_hooks(self, LOMO_PLAYER_HOOK_QUEUE, &ret, stream, g_queue_get_length(priv->queue))) return ret; g_queue_push_tail(priv->queue, stream); gint queue_index = g_queue_get_length(priv->queue) - 1; g_signal_emit(G_OBJECT(self), player_signals[QUEUE], 0, stream, index, queue_index); return queue_index; }
GEL_DEFINE_QUARK_FUNC(player); gboolean lomo_player_get_random(LomoPlayer *self); gint lomo_player_get_previous(LomoPlayer *self); gint lomo_player_get_next(LomoPlayer *self); gboolean lomo_player_seek(LomoPlayer *self, LomoFormat format, gint64 val);
e16238b525f05eddecf7dbf68ee3558488ca79a5ff78e31d1baf805bbe8dfa87
694
adjih
openlab
appli/examples/tdma/example_tdma_node_cb.c
pkt_sent
static void pkt_sent(void *arg, enum tdma_result res) { (void) res; log_printf("Packet sending result %d\n", res); packet_free((packet_t *) arg); }
int main(); static void pkt_tick(handler_arg_t arg); static void pkt_received(packet_t *packet, uint16_t src); static void slot_callback(uint8_t id, uint32_t time); static void slot_callback_print(handler_arg_t arg);
1b68b562aaae34ec24839197b1e7a04dde3785c3c3b4b63bd5ef1356bffde2c0
174
aguirrem
skyeye
arch/x86/plex86/kernel/host-beos.c
status_t driver_close
static status_t driver_close(void *cookie) { return B_OK; }
28f2544e597c1d9f56cf15902c43a7b60e46a5d7330842ec7497fd9bfc637dad
61
Distrotech
glib-networking
tls/gnutls/gtlsclientconnection-gnutls.c
void g_tls_client_connection_gnutls_init
static void g_tls_client_connection_gnutls_init (GTlsClientConnectionGnutls *gnutls) { gnutls_certificate_credentials_t creds; gnutls->priv = G_TYPE_INSTANCE_GET_PRIVATE (gnutls, G_TYPE_TLS_CLIENT_CONNECTION_GNUTLS, GTlsClientConnectionGnutlsPrivate); creds = g_tls_connection_gnutls_get_credentials (G_TLS_CONNECTION_GNUTLS (gnutls)); gnutls_certificate_set_retrieve_function (creds, g_tls_client_connection_gnutls_retrieve_function); }
ca2eb5c7f80755a2191be789e6e817cfcdedce984e0066b684cfb37ec3fdd3a6
448
BhallaLab
moose-full
dependencies/libsbml-5.9.0/src/sbml/math/test/TestL3FormulaParserC.c
END_TEST START_TEST
END_TEST START_TEST (test_SBML_C_parseL3Formula_4) { ASTNode_t *r = SBML_parseL3Formula("foo"); fail_unless( ASTNode_getType(r) == AST_NAME , NULL ); fail_unless( !strcmp(ASTNode_getName(r), "foo") , NULL ); fail_unless( ASTNode_getNumChildren(r) == 0 , NULL ); ASTNode_free(r); }
START_TEST (test_SBML_C_parseL3Formula_1);
f141f5360db3bca61e0a19963714732b19f5c09594003489753b7b4d0d54e97d
304
chitwanix
nemo
libnemo-private/nemo-clipboard-monitor.c
* nemo_clipboard_info_new
static NemoClipboardInfo * nemo_clipboard_info_new (GList *files, gboolean cut) { NemoClipboardInfo *info; info = g_slice_new0 (NemoClipboardInfo); info->files = nemo_file_list_copy (files); info->cut = cut; return info; }
2fb39f0efb88bed8a797289e56d7110f27f23fd5a18f2354806fd1ed079e95bb
259
kkaaii
c
ioccc/2000/mkentry.c
void output_entry
void output_entry(FILE *output, char *oname) { char title[MAX_TITLE_LEN+1+1]; char buf[MAX_COL+1+1]; int entry=0; int ret; int ok_line=0; char skip; time_t epoch_sec; char *p; fprintf(output, "---entry---\n"); check_io(output, oname, EOF_NOT_OK); fprintf(output, "rule:\t%d\n", RULE_YEAR); check_io(output, oname, EOF_NOT_OK); printf("Is this a fix, update or resubmittion to a "); printf("previous entry (enter y or n)? "); while (get_line(buf, 1+1, 0) <= 0 || !(buf[0]=='y' || buf[0]=='n')) { printf("\nplease answer y or n: "); } if (buf[0] == 'y') { fprintf(output, "fix:\ty\n"); check_io(output, oname, EOF_NOT_OK); printf("\nBe sure that the title and entry number that you give\n"); printf("are the same of as the entry you are replacing\n"); } else { fprintf(output, "fix:\tn\n"); check_io(output, oname, EOF_NOT_OK); } printf("\nThe first character of your title should match [a-zA-Z0-9_=]\n"); printf("The next 0 to %d characters should match [a-zA-Z0-9_=+-]\n\n", MAX_TITLE_LEN-1); printf("It is suggested, but not required, that the title should\n"); printf("incorporate your username; in the\n"); printf("case of multiple authors, consider using parts of the usernames\n"); printf("of the authors.\n\n"); printf("enter your title: "); do { if ((ok_line = get_line(title, MAX_TITLE_LEN+1, MAX_COL-9)) <= 0) { printf("\ntitle is too long, please re-enter: "); continue; } if (!isascii((int)title[0]) || !(isalnum((int)title[0]) || title[0] == '_' || title[0] == '=')) { printf("\ninvalid first character in the title\n\n"); printf("enter your title: "); ok_line = 0; } else { for (p=(&title[1]); *p != '\0' && *p != '\n'; ++p) { if (!isascii((int)*p) || !(isalnum((int)*p) || *p == '_' || *p == '=' || *p == '+' || *p == '-')) { printf("\ninvalid character in the title\n\n"); printf("enter your title: "); ok_line = 0; } } } } while (ok_line <= 0); fprintf(output, "title:\t%s", title); check_io(output, oname, EOF_NOT_OK); printf("\nEach person may submit up to %d entries per year.\n\n", MAX_ENTRY); printf("enter an entry number from 0 to %d inclusive: ", MAX_ENTRY-1); do { fflush(stdout); ret = fscanf(stdin, "%d[\n]", &entry); check_io(stdin, "stdin", EOF_NOT_OK); do { skip = fgetc(stdin); check_io(stdin, "stdin", EOF_NOT_OK); if (skip != '\n') { entry = -1; } } while (skip != '\n'); if (ret != 1 || entry < 0 || entry > MAX_ENTRY-1) { printf( "\nThe entry number must be between 0 and %d inclusive\n\n", MAX_ENTRY-1); printf("enter the entry number: "); } } while (ret != 1 || entry < 0 || entry > MAX_ENTRY-1); fprintf(output, "entry:\t%d\n", entry); check_io(output, oname, EOF_NOT_OK); epoch_sec = time(NULL); fprintf(output, "date:\t%s", asctime(gmtime(&epoch_sec))); check_io(output, oname, EOF_NOT_OK); printf( "\nEnter the machine(s) and OS(s) under which your entry was tested.\n"); output_till_dot(output, oname, "host:"); }
163ae979bc2d22e33a332c1699ed4378c5dd29f6bbe11f63f85248a5aa13f440
3,267
gpertea
stringtie
htslib/vcf.c
*bcf_hdr_merge
bcf_hdr_t *bcf_hdr_merge(bcf_hdr_t *dst, const bcf_hdr_t *src) { if ( !dst ) { dst = bcf_hdr_init("r"); kstring_t htxt = {0,0,0}; if (bcf_hdr_format(src, 0, &htxt) < 0) { free(htxt.s); return NULL; } if ( bcf_hdr_parse(dst, htxt.s) < 0 ) { bcf_hdr_destroy(dst); dst = NULL; } free(htxt.s); return dst; } int i, ndst_ori = dst->nhrec, need_sync = 0, ret = 0, res; for (i=0; i<src->nhrec; i++) { if ( src->hrec[i]->type==BCF_HL_GEN && src->hrec[i]->value ) { int j; for (j=0; j<ndst_ori; j++) { if ( dst->hrec[j]->type!=BCF_HL_GEN ) continue; if ( !strcmp(src->hrec[i]->key,dst->hrec[j]->key) ) break; } if ( j>=ndst_ori ) { res = bcf_hdr_add_hrec(dst, bcf_hrec_dup(src->hrec[i])); if (res < 0) return NULL; need_sync += res; } } else if ( src->hrec[i]->type==BCF_HL_STR ) { int j = bcf_hrec_find_key(src->hrec[i],"ID"); if ( j>=0 ) { bcf_hrec_t *rec = bcf_hdr_get_hrec(dst, src->hrec[i]->type, "ID", src->hrec[i]->vals[j], src->hrec[i]->key); if ( !rec ) { res = bcf_hdr_add_hrec(dst, bcf_hrec_dup(src->hrec[i])); if (res < 0) return NULL; need_sync += res; } } } else { int j = bcf_hrec_find_key(src->hrec[i],"ID"); assert( j>=0 ); bcf_hrec_t *rec = bcf_hdr_get_hrec(dst, src->hrec[i]->type, "ID", src->hrec[i]->vals[j], NULL); if ( !rec ) { res = bcf_hdr_add_hrec(dst, bcf_hrec_dup(src->hrec[i])); if (res < 0) return NULL; need_sync += res; } else if ( src->hrec[i]->type==BCF_HL_INFO || src->hrec[i]->type==BCF_HL_FMT ) { vdict_t *d_src = (vdict_t*)src->dict[BCF_DT_ID]; vdict_t *d_dst = (vdict_t*)dst->dict[BCF_DT_ID]; khint_t k_src = kh_get(vdict, d_src, src->hrec[i]->vals[0]); khint_t k_dst = kh_get(vdict, d_dst, src->hrec[i]->vals[0]); if ( (kh_val(d_src,k_src).info[rec->type]>>8 & 0xf) != (kh_val(d_dst,k_dst).info[rec->type]>>8 & 0xf) ) { hts_log_warning("Trying to combine \"%s\" tag definitions of different lengths", src->hrec[i]->vals[0]); ret |= 1; } if ( (kh_val(d_src,k_src).info[rec->type]>>4 & 0xf) != (kh_val(d_dst,k_dst).info[rec->type]>>4 & 0xf) ) { hts_log_warning("Trying to combine \"%s\" tag definitions of different types", src->hrec[i]->vals[0]); ret |= 1; } } } } if ( need_sync ) { if (bcf_hdr_sync(dst) < 0) return NULL; } return dst; }
static char *find_chrom_header_line(char *s); static int bcf_hdr_add_sample_len(bcf_hdr_t *h, const char *s, size_t len); int bcf_hdr_add_sample(bcf_hdr_t *h, const char *s); int HTS_RESULT_USED bcf_hdr_parse_sample_line(bcf_hdr_t *h, const char *str); int bcf_hdr_sync(bcf_hdr_t *h); void bcf_hrec_destroy(bcf_hrec_t *hrec); bcf_hrec_t *bcf_hrec_dup(bcf_hrec_t *hrec); void bcf_hrec_debug(FILE *fp, bcf_hrec_t *hrec); void bcf_header_debug(bcf_hdr_t *hdr); int bcf_hrec_add_key(bcf_hrec_t *hrec, const char *str, size_t len); int bcf_hrec_set_val(bcf_hrec_t *hrec, int i, const char *str, size_t len, int is_quoted); int hrec_add_idx(bcf_hrec_t *hrec, int idx); int bcf_hrec_find_key(bcf_hrec_t *hrec, const char *key); static inline int is_escaped(const char *min, const char *str); bcf_hrec_t *bcf_hdr_parse_line(const bcf_hdr_t *h, const char *line, int *len); static int bcf_hdr_set_idx(bcf_hdr_t *hdr, int dict_type, const char *tag, bcf_idinfo_t *idinfo); static int bcf_hdr_register_hrec(bcf_hdr_t *hdr, bcf_hrec_t *hrec); int bcf_hdr_add_hrec(bcf_hdr_t *hdr, bcf_hrec_t *hrec); bcf_hrec_t *bcf_hdr_get_hrec(const bcf_hdr_t *hdr, int type, const char *key, const char *value, const char *str_class); void bcf_hdr_check_sanity(bcf_hdr_t *hdr); int bcf_hdr_parse(bcf_hdr_t *hdr, char *htxt); int bcf_hdr_append(bcf_hdr_t *hdr, const char *line); void bcf_hdr_remove(bcf_hdr_t *hdr, int type, const char *key); int bcf_hdr_printf(bcf_hdr_t *hdr, const char *fmt, ...); const char *bcf_hdr_get_version(const bcf_hdr_t *hdr); int bcf_hdr_set_version(bcf_hdr_t *hdr, const char *version); bcf_hdr_t *bcf_hdr_init(const char *mode); void bcf_hdr_destroy(bcf_hdr_t *h); bcf_hdr_t *bcf_hdr_read(htsFile *hfp); int bcf_hdr_write(htsFile *hfp, bcf_hdr_t *h); bcf1_t *bcf_init(); void bcf_clear(bcf1_t *v); void bcf_empty(bcf1_t *v); void bcf_destroy(bcf1_t *v); static inline int bcf_read1_core(BGZF *fp, bcf1_t *v); static const char *get_type_name(int type); static int bcf_record_check(const bcf_hdr_t *hdr, bcf1_t *rec); int bcf_subset_format(const bcf_hdr_t *hdr, bcf1_t *rec); int bcf_read(htsFile *fp, const bcf_hdr_t *h, bcf1_t *v); int bcf_readrec(BGZF *fp, void *null, void *vv, int *tid, hts_pos_t *beg, hts_pos_t *end); static inline int bcf1_sync_id(bcf1_t *line, kstring_t *str); static inline int bcf1_sync_alleles(bcf1_t *line, kstring_t *str); static inline int bcf1_sync_filter(bcf1_t *line, kstring_t *str); static inline int bcf1_sync_info(bcf1_t *line, kstring_t *str); static int bcf1_sync(bcf1_t *line); bcf1_t *bcf_copy(bcf1_t *dst, bcf1_t *src); bcf1_t *bcf_dup(bcf1_t *src); int bcf_write(htsFile *hfp, bcf_hdr_t *h, bcf1_t *v); static int add_missing_contig_hrec(bcf_hdr_t *h, const char *name); bcf_hdr_t *vcf_hdr_read(htsFile *fp); int bcf_hdr_set(bcf_hdr_t *hdr, const char *fname); static int _bcf_hrec_format(const bcf_hrec_t *hrec, int is_bcf, kstring_t *str); int bcf_hrec_format(const bcf_hrec_t *hrec, kstring_t *str); int bcf_hdr_format(const bcf_hdr_t *hdr, int is_bcf, kstring_t *str); char *bcf_hdr_fmt_text(const bcf_hdr_t *hdr, int is_bcf, int *len); const char **bcf_hdr_seqnames(const bcf_hdr_t *h, int *n); int vcf_hdr_write(htsFile *fp, const bcf_hdr_t *h); int bcf_enc_vint(kstring_t *s, int n, int32_t *a, int wsize); static int bcf_enc_long1(kstring_t *s, int64_t x); static inline int serialize_float_array(kstring_t *s, size_t n, const float *a); int bcf_enc_vfloat(kstring_t *s, int n, float *a); int bcf_enc_vchar(kstring_t *s, int l, const char *a); int bcf_fmt_array(kstring_t *s, int n, int type, void *data); uint8_t *bcf_fmt_sized_array(kstring_t *s, uint8_t *ptr); static inline int align_mem(kstring_t *s); static int vcf_parse_format(kstring_t *s, const bcf_hdr_t *h, bcf1_t *v, char *p, char *q); static khint_t fix_chromosome(const bcf_hdr_t *h, vdict_t *d, const char *p); static int vcf_parse_filter(kstring_t *str, const bcf_hdr_t *h, bcf1_t *v, char *p, char *q); static int vcf_parse_info(kstring_t *str, const bcf_hdr_t *h, bcf1_t *v, char *p, char *q); int vcf_parse(kstring_t *s, const bcf_hdr_t *h, bcf1_t *v); int vcf_open_mode(char *mode, const char *fn, const char *format); int vcf_read(htsFile *fp, const bcf_hdr_t *h, bcf1_t *v); static inline uint8_t *bcf_unpack_fmt_core1(uint8_t *ptr, int n_sample, bcf_fmt_t *fmt); static inline uint8_t *bcf_unpack_info_core1(uint8_t *ptr, bcf_info_t *info); int bcf_unpack(bcf1_t *b, int which); int vcf_format(const bcf_hdr_t *h, const bcf1_t *v, kstring_t *s); int vcf_write_line(htsFile *fp, kstring_t *line); int vcf_write(htsFile *fp, const bcf_hdr_t *h, bcf1_t *v); int bcf_hdr_id2int(const bcf_hdr_t *h, int which, const char *id); hts_idx_t *bcf_index(htsFile *fp, int min_shift); hts_idx_t *bcf_index_load2(const char *fn, const char *fnidx); hts_idx_t *bcf_index_load3(const char *fn, const char *fnidx, int flags); int bcf_index_build3(const char *fn, const char *fnidx, int min_shift, int n_threads); int bcf_index_build2(const char *fn, const char *fnidx, int min_shift); int bcf_index_build(const char *fn, int min_shift); static int vcf_idx_init(htsFile *fp, bcf_hdr_t *h, int min_shift, const char *fnidx); int bcf_idx_init(htsFile *fp, bcf_hdr_t *h, int min_shift, const char *fnidx); int bcf_idx_save(htsFile *fp); int bcf_hdr_combine(bcf_hdr_t *dst, const bcf_hdr_t *src); int bcf_translate(const bcf_hdr_t *dst_hdr, bcf_hdr_t *src_hdr, bcf1_t *line); bcf_hdr_t *bcf_hdr_dup(const bcf_hdr_t *hdr); bcf_hdr_t *bcf_hdr_subset(const bcf_hdr_t *h0, int n, char *const* samples, int *imap); int bcf_hdr_set_samples(bcf_hdr_t *hdr, const char *samples, int is_file); int bcf_subset(const bcf_hdr_t *h, bcf1_t *v, int n, int *imap); int bcf_is_snp(bcf1_t *v); static void bcf_set_variant_type(const char *ref, const char *alt, bcf_variant_t *var); static int bcf_set_variant_types(bcf1_t *b); int bcf_get_variant_types(bcf1_t *rec); int bcf_get_variant_type(bcf1_t *rec, int ith_allele); int bcf_update_info(const bcf_hdr_t *hdr, bcf1_t *line, const char *key, const void *values, int n, int type); int bcf_update_format_string(const bcf_hdr_t *hdr, bcf1_t *line, const char *key, const char **values, int n); int bcf_update_format(const bcf_hdr_t *hdr, bcf1_t *line, const char *key, const void *values, int n, int type); int bcf_update_filter(const bcf_hdr_t *hdr, bcf1_t *line, int *flt_ids, int n); int bcf_add_filter(const bcf_hdr_t *hdr, bcf1_t *line, int flt_id); int bcf_remove_filter(const bcf_hdr_t *hdr, bcf1_t *line, int flt_id, int pass); int bcf_has_filter(const bcf_hdr_t *hdr, bcf1_t *line, char *filter); static inline int _bcf1_sync_alleles(const bcf_hdr_t *hdr, bcf1_t *line, int nals); int bcf_update_alleles(const bcf_hdr_t *hdr, bcf1_t *line, const char **alleles, int nals); int bcf_update_alleles_str(const bcf_hdr_t *hdr, bcf1_t *line, const char *alleles_string); int bcf_update_id(const bcf_hdr_t *hdr, bcf1_t *line, const char *id); int bcf_add_id(const bcf_hdr_t *hdr, bcf1_t *line, const char *id); bcf_fmt_t *bcf_get_fmt(const bcf_hdr_t *hdr, bcf1_t *line, const char *key); bcf_info_t *bcf_get_info(const bcf_hdr_t *hdr, bcf1_t *line, const char *key); bcf_fmt_t *bcf_get_fmt_id(bcf1_t *line, const int id); bcf_info_t *bcf_get_info_id(bcf1_t *line, const int id); int bcf_get_info_values(const bcf_hdr_t *hdr, bcf1_t *line, const char *tag, void **dst, int *ndst, int type); int bcf_get_format_string(const bcf_hdr_t *hdr, bcf1_t *line, const char *tag, char ***dst, int *ndst); int bcf_get_format_values(const bcf_hdr_t *hdr, bcf1_t *line, const char *tag, void **dst, int *ndst, int type);
3f69dd383337f2317357ef70f0a0da2b1ac3f7f0e9440b2190a8f188c853de81
3,251
AshishNamdev
linux
net/rds/recv.c
rds_cmsg_recv
static int rds_cmsg_recv(struct rds_incoming *inc, struct msghdr *msg, struct rds_sock *rs) { int ret = 0; if (inc->i_rdma_cookie) { ret = put_cmsg(msg, SOL_RDS, RDS_CMSG_RDMA_DEST, sizeof(inc->i_rdma_cookie), &inc->i_rdma_cookie); if (ret) goto out; } if ((inc->i_rx_tstamp.tv_sec != 0) && sock_flag(rds_rs_to_sk(rs), SOCK_RCVTSTAMP)) { ret = put_cmsg(msg, SOL_SOCKET, SCM_TIMESTAMP, sizeof(struct timeval), &inc->i_rx_tstamp); if (ret) goto out; } if (rs->rs_rx_traces) { struct rds_cmsg_rx_trace t; int i, j; inc->i_rx_lat_trace[RDS_MSG_RX_CMSG] = local_clock(); t.rx_traces = rs->rs_rx_traces; for (i = 0; i < rs->rs_rx_traces; i++) { j = rs->rs_rx_trace[i]; t.rx_trace_pos[i] = j; t.rx_trace[i] = inc->i_rx_lat_trace[j + 1] - inc->i_rx_lat_trace[j]; } ret = put_cmsg(msg, SOL_RDS, RDS_CMSG_RXPATH_LATENCY, sizeof(t), &t); if (ret) goto out; } out: return ret; }
static void rds_inc_addref(struct rds_incoming *inc); void rds_inc_put(struct rds_incoming *inc); static void rds_recv_incoming_exthdrs(struct rds_incoming *inc, struct rds_sock *rs); static void rds_start_mprds(struct rds_connection *conn); static int rds_next_incoming(struct rds_sock *rs, struct rds_incoming **inc); int rds_notify_queue_get(struct rds_sock *rs, struct msghdr *msghdr); static int rds_notify_cong(struct rds_sock *rs, struct msghdr *msghdr); void rds_clear_recv_queue(struct rds_sock *rs);
a1bd8083708b0be874f66d1368a6e1d17f4953557d14e4b625076f8d69809e58
974
dspdaemon
dspd
modules/io_osscuse.c
nctl_mix_write
static int32_t nctl_mix_write(struct dspd_rctx *context, uint32_t req, const void *inbuf, size_t inbufsize, void *outbuf, size_t outbufsize) { const struct oss_mixer_value *in = inbuf; struct oss_mixer_value *out = outbuf; int32_t idx = nctl_getdev(context, in->dev); struct dspd_mix_val cmd; size_t len; int32_t ctrl; struct dspd_mix_info info; int32_t ret; int channels; struct dspd_mix_range r; int shift = 0; int mask = 0xFFFFFFFF; if ( idx < 0 ) return dspd_req_reply_err(context, 0, ENODEV); ctrl = in->ctrl - 1; ret = oss_mixer_ctl(&dspd_dctx, idx, DSPD_SCTL_SERVER_MIXER_ELEM_INFO, &ctrl, sizeof(ctrl), &info, sizeof(info), &len); if ( ret == 0 ) { channels = ctrl_channels(&info); if ( channels == 2 || channels == 1 ) { ret = get_range(idx, ctrl, check_type(&info), &r); if ( ret == 0 ) { if ( r.min == 0 && r.max == 255 ) { if ( channels == 2 ) shift = 8; mask = 0xFF; } else if ( r.min == 0 && r.max == 32767 ) { if ( channels == 2 ) shift = 16; mask = 0xFFFF; } else { channels = 1; } } } } if ( ret == 0 ) { memset(&cmd, 0, sizeof(cmd)); cmd.index = ctrl; cmd.type = check_type(&info); cmd.tstamp = (unsigned int)in->timestamp; cmd.flags = DSPD_CTRLF_TSTAMP_32BIT; if ( channels == 2 || channels == 1 ) { cmd.value = in->value & mask; cmd.channel = first_channel(&info); if ( cmd.channel == -1 ) cmd.channel = 0; } else { cmd.channel = -1; cmd.value = in->value; } get_range(idx, ctrl, check_type(&info), &r); ret = oss_mixer_ctl(&dspd_dctx, idx, DSPD_SCTL_SERVER_MIXER_SETVAL, &cmd, sizeof(cmd), NULL, 0, &len); if ( ret == 0 && channels == 2 ) { cmd.value = in->value >> shift; cmd.channel = last_channel(&info); ret = oss_mixer_ctl(&dspd_dctx, idx, DSPD_SCTL_SERVER_MIXER_SETVAL, &cmd, sizeof(cmd), NULL, 0, &len); } } dspd_daemon_unref(idx); if ( ret == 0 ) { memset(out, 0, sizeof(*out)); out->dev = in->dev; out->ctrl = in->ctrl; out->value = in->value; out->timestamp = cmd.tstamp; ret = dspd_req_reply_buf(context, 0, out, sizeof(*out)); } else { ret = dspd_req_reply_err(context, 0, ret); } return ret; }
static int32_t dsp_commit_params(struct oss_cdev_client *cli); void dsp_read(struct oss_cdev_client *cli, size_t size, off_t off, int flags); static void dsp_poll(struct oss_cdev_client *cli, uint64_t ph); static void dsp_release(struct oss_cdev_client *cli); static int check_policy(struct dsp_data *dsp, unsigned int policy, int32_t *fragsize, int32_t *bufsize); static int32_t find_oss_channel(uint8_t channel); static int32_t find_dspd_channel(uint8_t channel); static int32_t nctl_getdev(struct dspd_rctx *ctx, int dev); static int get_range(int devidx, int ctrlidx, int type, struct dspd_mix_range *r); static int ctrl_channels(struct dspd_mix_info *info); static int check_type(const struct dspd_mix_info *info); static int first_channel(struct dspd_mix_info *info); static int last_channel(struct dspd_mix_info *info); static int insert_str(oss_mixer_enuminfo *ei, const char *str, int index); static int count_bits(uint32_t val); static struct oss_mix_elem *get_element(struct oss_legacy_mixer_table *tbl, int oss_idx); static int32_t get_current_recsrc(struct oss_cdev_client *cli, int32_t *val); static int32_t set_rec_bit(struct oss_cdev_client *cli, const struct oss_mix_elem *elem, int32_t index, int32_t *val); static int32_t set_current_recsrc(struct oss_cdev_client *cli, int32_t val); static int first_bit(int mask); static int last_bit(int mask); static const struct dspd_ioctl_info *get_ioctl_handlers(int request); void oss_delete_legacy_mixer_assignments(struct oss_legacy_mixer_table *table); int oss_new_legacy_mixer_assignments(int32_t device, struct oss_legacy_mixer_table **table);
8544c95a4586f3619b797e423478e442f6c7f985f22232cbb503958fa9f7ee59
2,552
xianggong
multi2sim42
src/arch/southern-islands/emu/machine.c
si_isa_TBUFFER_LOAD_FORMAT_X_impl
d si_isa_TBUFFER_LOAD_FORMAT_X_impl(struct si_work_item_t *work_item, struct si_inst_t *inst) { assert(!INST.addr64); assert(!INST.tfe); assert(!INST.slc); struct si_buffer_desc_t buf_desc; union si_reg_t value; int elem_size; int num_elems; int bytes_to_read; unsigned int addr; unsigned int base; unsigned int mem_offset = 0; unsigned int inst_offset = 0; unsigned int off_vgpr = 0; unsigned int stride = 0; unsigned int idx_vgpr = 0; elem_size = si_isa_get_elem_size(INST.dfmt); num_elems = si_isa_get_num_elems(INST.dfmt); bytes_to_read = elem_size * num_elems; assert(num_elems == 1); assert(elem_size == 4); si_isa_read_buf_res(work_item, &buf_desc, INST.srsrc * 4); base = buf_desc.base_addr; mem_offset = si_isa_read_sreg(work_item, INST.soffset); inst_offset = INST.offset; stride = buf_desc.stride; if (!INST.idxen && INST.offen) { off_vgpr = si_isa_read_vreg(work_item, INST.vaddr); } else if (INST.idxen && !INST.offen) { idx_vgpr = si_isa_read_vreg(work_item, INST.vaddr); } else if (INST.idxen && INST.offen) { idx_vgpr = si_isa_read_vreg(work_item, INST.vaddr); off_vgpr = si_isa_read_vreg(work_item, INST.vaddr + 1); } if (idx_vgpr && !stride) { fatal("%s: the buffer descriptor is probably not correct", __FUNCTION__); } addr = base + mem_offset + inst_offset + off_vgpr + stride * (idx_vgpr + 0 ); mem_read(si_emu->global_mem, addr, bytes_to_read, &value); si_isa_write_vreg(work_item, INST.vdata, value.as_uint); work_item->global_mem_access_addr = addr; work_item->global_mem_access_size = bytes_to_read; if (debug_status(si_isa_debug_category)) { si_isa_debug("t%d: V%u<=(%u)(%u,%gf) ", work_item->id, INST.vdata, addr, value.as_uint, value.as_float); if (INST.offen) si_isa_debug("offen "); if (INST.idxen) si_isa_debug("idxen "); si_isa_debug("%u,%u,%u,%u,%u,%u ", base, mem_offset, inst_offset, off_vgpr, idx_vgpr, stride); } } #un
oid si_isa_DS_READ_U8_impl(struct si_work_item_t *work_item, struct si_inst_t *inst); oid si_isa_DS_READ_I16_impl(struct si_work_item_t *work_item, struct si_inst_t *inst); d si_isa_DS_READ_U16_impl(struct si_work_item_t *work_item, struct si_inst_t *inst); d si_isa_BUFFER_LOAD_SBYTE_impl(struct si_work_item_t *work_item, struct si_inst_t *inst); d si_isa_BUFFER_LOAD_DWORD_impl(struct si_work_item_t *work_item, struct si_inst_t *inst); d si_isa_BUFFER_STORE_BYTE_impl(struct si_work_item_t *work_item, struct si_inst_t *inst); d si_isa_BUFFER_STORE_DWORD_impl(struct si_work_item_t *work_item, struct si_inst_t *inst); d si_isa_BUFFER_ATOMIC_ADD_impl(struct si_work_item_t *work_item, struct si_inst_t *inst); d si_isa_TBUFFER_LOAD_FORMAT_XY_impl(struct si_work_item_t *work_item, struct si_inst_t *inst); d si_isa_TBUFFER_LOAD_FORMAT_XYZW_impl(struct si_work_item_t *work_item, struct si_inst_t *inst); d si_isa_TBUFFER_STORE_FORMAT_X_impl(struct si_work_item_t *work_item, struct si_inst_t *inst); d si_isa_TBUFFER_STORE_FORMAT_XY_impl(struct si_work_item_t *work_item, struct si_inst_t *inst); d si_isa_TBUFFER_STORE_FORMAT_XYZW_impl(struct si_work_item_t *work_item, struct si_inst_t *inst); d si_isa_IMAGE_STORE_impl(struct si_work_item_t *work_item, struct si_inst_t *inst); d si_isa_IMAGE_SAMPLE_impl(struct si_work_item_t *work_item, struct si_inst_t *inst); d si_isa_EXPORT_impl(struct si_work_item_t *work_item, struct si_inst_t *inst);
07e499f60b2e3eacbc4016600576e5d017f7d6233de21a5e7b1a82d984259054
2,096
Anik1199
android_kernel_mediatek_sprout
drivers/misc/mediatek/masp/mt6582/asf/core/sec_boot_lib.c
img_hash_compute
void img_hash_compute (uchar *buf, uint32 size) { SEC_ASSERT(0); }
void * mcpy(void *dest, const void *src, int cnt); int mcmp (const void *cs, const void *ct, int cnt); void dump_buf(uchar* buf, uint32 len); void img_hash_dump (uchar *buf, uint32 size); uint32 img_hash_update (char* part_name); uint32 img_hash_check (char* part_name); char* asf_get_build_info(void);
da042f8581cd56f51c9cb6174aba02e144e7d9d2a90529246b97ebb4048ec807
71
0x7678
SJKernel-gn2
.fr-M0hgqN/drivers/media/video/gspca/w996Xcf.c
w9968cf_stop0
static void w9968cf_stop0(struct sd *sd) { reg_w(sd, 0x39, 0x0000); reg_w(sd, 0x16, 0x0000); }
static void w9968cf_write_fsb(struct sd *sd, u16* data); static void w9968cf_write_sb(struct sd *sd, u16 value); static int w9968cf_read_sb(struct sd *sd); static void w9968cf_upload_quantizationtables(struct sd *sd); static void w9968cf_smbus_start(struct sd *sd); static void w9968cf_smbus_stop(struct sd *sd); static void w9968cf_smbus_write_byte(struct sd *sd, u8 v); static void w9968cf_smbus_read_byte(struct sd *sd, u8 *v); static void w9968cf_smbus_write_nack(struct sd *sd); static void w9968cf_smbus_read_ack(struct sd *sd); static void w9968cf_i2c_w(struct sd *sd, u8 reg, u8 value); static int w9968cf_i2c_r(struct sd *sd, u8 reg); static void w9968cf_configure(struct sd *sd); static void w9968cf_init(struct sd *sd); static void w9968cf_set_crop_window(struct sd *sd); static void w9968cf_mode_init_regs(struct sd *sd);
c6d461a2a05f7f5b0fc823e1c7b0e77fdc382291220421d4945491696c766f91
101
krzychb
rtd-test-bed
tools/unit-test-app/components/test_utils/test_utils.c
test_utils_get_leak_level
size_t test_utils_get_leak_level(esp_type_leak_t type_of_leak, esp_comp_leak_t component) { size_t leak_level = 0; if (type_of_leak >= TYPE_LEAK_MAX || component > COMP_LEAK_ALL) { leak_level = 0; } else { if (component == COMP_LEAK_ALL) { for (int comp = 0; comp < COMP_LEAK_ALL; ++comp) { leak_level += test_unity_leak_level[type_of_leak][comp]; } } else { leak_level = test_unity_leak_level[type_of_leak][component]; } } return leak_level; }
const esp_partition_t *get_test_data_partition(); void test_case_uses_tcpip(); static void wait_user_control(char* parameter_buf, uint8_t buf_len); void unity_wait_for_signal_param(const char* signal_name, char* parameter_buf, uint8_t buf_len); void unity_send_signal_param(const char* signal_name, const char *parameter); bool unity_util_convert_mac_from_string(const char* mac_str, uint8_t *mac_addr); esp_err_t test_utils_set_leak_level(size_t leak_level, esp_type_leak_t type_of_leak, esp_comp_leak_t component);
c56e3b3fe1da328b46cece1e9ae96c0215edc31c92e00701cc682e9a51c474ab
549
aliaspider
RetroArch
audio/drivers/sdl_audio.c
sdl_audio_start
static bool sdl_audio_start(void *data, bool is_shutdown) { sdl_audio_t *sdl = (sdl_audio_t*)data; sdl->is_paused = false; SDL_PauseAudio(0); return true; }
static void sdl_audio_cb(void *data, Uint8 *stream, int len); static INLINE int find_num_frames(int rate, int latency); static ssize_t sdl_audio_write(void *data, const void *buf, size_t size); static bool sdl_audio_stop(void *data); static bool sdl_audio_alive(void *data); static void sdl_audio_set_nonblock_state(void *data, bool state); static void sdl_audio_free(void *data); static bool sdl_audio_use_float(void *data); static size_t sdl_audio_write_avail(void *data);
93ab1d59d643296f1463fcf8b8b098b22029419f5e1e71de216ab562d0d31c98
170
Luke-Nukem
mame-144-vector_mod
mame/src/emu/machine/pci.c
DEVICE_GET_INFO
DEVICE_GET_INFO( pci_bus ) { switch (state) { case DEVINFO_INT_TOKEN_BYTES: info->i = sizeof(pci_bus_state); break; case DEVINFO_INT_INLINE_CONFIG_BYTES: info->i = sizeof(pci_bus_config); break; case DEVINFO_FCT_START: info->start = DEVICE_START_NAME(pci_bus); break; case DEVINFO_FCT_RESET: info->reset = DEVICE_RESET_NAME(pci_bus);break; case DEVINFO_STR_NAME: strcpy(info->s, "PCI Bus"); break; case DEVINFO_STR_FAMILY: strcpy(info->s, "Peripherial Bus"); break; case DEVINFO_STR_VERSION: strcpy(info->s, "1.0"); break; case DEVINFO_STR_SOURCE_FILE: strcpy(info->s, __FILE__); break; case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright Nicola Salmoria and the MAME Team"); break; } }
INLINE pci_bus_state *get_safe_token(device_t *device); READ32_DEVICE_HANDLER( pci_32le_r ); static pci_bus_state *pci_search_bustree(int busnum, int devicenum, pci_bus_state *pcibus); WRITE32_DEVICE_HANDLER( pci_32le_w ); int pci_add_sibling( running_machine &machine, char *pcitag, char *sibling ); static void pci_bus_postload(pci_bus_state *pcibus); static DEVICE_START( pci_bus ); static DEVICE_RESET( pci_bus );
3ced2db8b332e4154309f2c00bb29a17465102a739db76e9998f272e2eaa6c05
780
BPI-SINOVOIP
BPI-Mainline-kernel
linux-5.4/tools/lib/subcmd/parse-options.c
get_value
static int get_value(struct parse_opt_ctx_t *p, const struct option *opt, int flags) { const char *s, *arg = NULL; const int unset = flags & OPT_UNSET; int err; if (unset && p->opt) return opterror(opt, "takes no value", flags); if (unset && (opt->flags & PARSE_OPT_NONEG)) return opterror(opt, "isn't available", flags); if (opt->flags & PARSE_OPT_DISABLED) return opterror(opt, "is not usable", flags); if (opt->flags & PARSE_OPT_EXCLUSIVE) { if (p->excl_opt && p->excl_opt != opt) { char msg[128]; if (((flags & OPT_SHORT) && p->excl_opt->short_name) || p->excl_opt->long_name == NULL) { snprintf(msg, sizeof(msg), "cannot be used with switch `%c'", p->excl_opt->short_name); } else { snprintf(msg, sizeof(msg), "cannot be used with %s", p->excl_opt->long_name); } opterror(opt, msg, flags); return -3; } p->excl_opt = opt; } if (!(flags & OPT_SHORT) && p->opt) { switch (opt->type) { case OPTION_CALLBACK: if (!(opt->flags & PARSE_OPT_NOARG)) break; case OPTION_BOOLEAN: case OPTION_INCR: case OPTION_BIT: case OPTION_SET_UINT: case OPTION_SET_PTR: return opterror(opt, "takes no value", flags); case OPTION_END: case OPTION_ARGUMENT: case OPTION_GROUP: case OPTION_STRING: case OPTION_INTEGER: case OPTION_UINTEGER: case OPTION_LONG: case OPTION_ULONG: case OPTION_U64: default: break; } } if (opt->flags & PARSE_OPT_NOBUILD) { char reason[128]; bool noarg = false; err = snprintf(reason, sizeof(reason), opt->flags & PARSE_OPT_CANSKIP ? "is being ignored because %s " : "is not available because %s", opt->build_opt); reason[sizeof(reason) - 1] = '\0'; if (err < 0) strncpy(reason, opt->flags & PARSE_OPT_CANSKIP ? "is being ignored" : "is not available", sizeof(reason)); if (!(opt->flags & PARSE_OPT_CANSKIP)) return opterror(opt, reason, flags); err = 0; if (unset) noarg = true; if (opt->flags & PARSE_OPT_NOARG) noarg = true; if (opt->flags & PARSE_OPT_OPTARG && !p->opt) noarg = true; switch (opt->type) { case OPTION_BOOLEAN: case OPTION_INCR: case OPTION_BIT: case OPTION_SET_UINT: case OPTION_SET_PTR: case OPTION_END: case OPTION_ARGUMENT: case OPTION_GROUP: noarg = true; break; case OPTION_CALLBACK: case OPTION_STRING: case OPTION_INTEGER: case OPTION_UINTEGER: case OPTION_LONG: case OPTION_ULONG: case OPTION_U64: default: break; } if (!noarg) err = get_arg(p, opt, flags, NULL); if (err) return err; optwarning(opt, reason, flags); return 0; } switch (opt->type) { case OPTION_BIT: if (unset) *(int *)opt->value &= ~opt->defval; else *(int *)opt->value |= opt->defval; return 0; case OPTION_BOOLEAN: *(bool *)opt->value = unset ? false : true; if (opt->set) *(bool *)opt->set = true; return 0; case OPTION_INCR: *(int *)opt->value = unset ? 0 : *(int *)opt->value + 1; return 0; case OPTION_SET_UINT: *(unsigned int *)opt->value = unset ? 0 : opt->defval; return 0; case OPTION_SET_PTR: *(void **)opt->value = unset ? NULL : (void *)opt->defval; return 0; case OPTION_STRING: err = 0; if (unset) *(const char **)opt->value = NULL; else if (opt->flags & PARSE_OPT_OPTARG && !p->opt) *(const char **)opt->value = (const char *)opt->defval; else err = get_arg(p, opt, flags, (const char **)opt->value); if (opt->set) *(bool *)opt->set = true; if (opt->flags & PARSE_OPT_NOEMPTY) { const char *val = *(const char **)opt->value; if (!val) return err; if (val[0] == '\0') { *(const char **)opt->value = NULL; return 0; } } return err; case OPTION_CALLBACK: if (unset) return (*opt->callback)(opt, NULL, 1) ? (-1) : 0; if (opt->flags & PARSE_OPT_NOARG) return (*opt->callback)(opt, NULL, 0) ? (-1) : 0; if (opt->flags & PARSE_OPT_OPTARG && !p->opt) return (*opt->callback)(opt, NULL, 0) ? (-1) : 0; if (get_arg(p, opt, flags, &arg)) return -1; return (*opt->callback)(opt, arg, 0) ? (-1) : 0; case OPTION_INTEGER: if (unset) { *(int *)opt->value = 0; return 0; } if (opt->flags & PARSE_OPT_OPTARG && !p->opt) { *(int *)opt->value = opt->defval; return 0; } if (get_arg(p, opt, flags, &arg)) return -1; *(int *)opt->value = strtol(arg, (char **)&s, 10); if (*s) return opterror(opt, "expects a numerical value", flags); return 0; case OPTION_UINTEGER: if (unset) { *(unsigned int *)opt->value = 0; return 0; } if (opt->flags & PARSE_OPT_OPTARG && !p->opt) { *(unsigned int *)opt->value = opt->defval; return 0; } if (get_arg(p, opt, flags, &arg)) return -1; if (arg[0] == '-') return opterror(opt, "expects an unsigned numerical value", flags); *(unsigned int *)opt->value = strtol(arg, (char **)&s, 10); if (*s) return opterror(opt, "expects a numerical value", flags); return 0; case OPTION_LONG: if (unset) { *(long *)opt->value = 0; return 0; } if (opt->flags & PARSE_OPT_OPTARG && !p->opt) { *(long *)opt->value = opt->defval; return 0; } if (get_arg(p, opt, flags, &arg)) return -1; *(long *)opt->value = strtol(arg, (char **)&s, 10); if (*s) return opterror(opt, "expects a numerical value", flags); return 0; case OPTION_ULONG: if (unset) { *(unsigned long *)opt->value = 0; return 0; } if (opt->flags & PARSE_OPT_OPTARG && !p->opt) { *(unsigned long *)opt->value = opt->defval; return 0; } if (get_arg(p, opt, flags, &arg)) return -1; *(unsigned long *)opt->value = strtoul(arg, (char **)&s, 10); if (*s) return opterror(opt, "expects a numerical value", flags); return 0; case OPTION_U64: if (unset) { *(u64 *)opt->value = 0; return 0; } if (opt->flags & PARSE_OPT_OPTARG && !p->opt) { *(u64 *)opt->value = opt->defval; return 0; } if (get_arg(p, opt, flags, &arg)) return -1; if (arg[0] == '-') return opterror(opt, "expects an unsigned numerical value", flags); *(u64 *)opt->value = strtoull(arg, (char **)&s, 10); if (*s) return opterror(opt, "expects a numerical value", flags); return 0; case OPTION_END: case OPTION_ARGUMENT: case OPTION_GROUP: default: die("should not happen, someone must be hit on the forehead"); } }
static int opterror(const struct option *opt, const char *reason, int flags); static const char *skip_prefix(const char *str, const char *prefix); static void optwarning(const struct option *opt, const char *reason, int flags); static int parse_short_opt(struct parse_opt_ctx_t *p, const struct option *options); static void check_typos(const char *arg, const struct option *options); static int parse_options_end(struct parse_opt_ctx_t *ctx); static void print_option_help(const struct option *opts, int full); static int option__cmp(const void *va, const void *vb); static struct option *options__order(const struct option *opts); static bool option__in_argv(const struct option *opt, const struct parse_opt_ctx_t *ctx);
a1861895f8b71c4d07f647f4985b7158f18729a6daf8c58951b932b5fb9f652c
6,353
OpenVnmrJ
OpenVnmrJ
src/biopack/psglib/ghn_Jnco_2DS3.c
pulsesequence
void pulsesequence() { char f1180[MAXSTR],satmode[MAXSTR],abfilter[MAXSTR]; int phase,t1_counter,icosel,ni,first_FID; double tauhn, taunco, tau1, jhn = getval("jhn"), jnco = getval("jnco"), pw180offca = getval("pw180offca"), pw90onco, pw180onco, pwN = getval("pwN"), pwC = getval("pwC"), pwHs = getval("pwHs"), satpwr = getval("satpwr"), pwClvl = getval("pwClvl"), pwNlvl = getval("pwNlvl"), rf90onco, rf180onco, rf180offca, compH = getval("compH"), compC = getval("compC"), sw1 = getval("sw1"), dof = getval("dof"), kappa, dofca, tpwrsf_d = getval("tpwrsf_d"), tpwrsf_u = getval("tpwrsf_u"), tpwrs, gstab = getval("gstab"), gt0 = getval("gt0"), gt1 = getval("gt1"), gt3 = getval("gt3"), gt5 = getval("gt5"), gzlvl0 = getval("gzlvl0"), gzlvl1 = getval("gzlvl1"), gzlvl2 = getval("gzlvl2"), gzlvl3 = getval("gzlvl3"), gzlvl5 = getval("gzlvl5"); tpwrs = tpwr - 20.0*log10(pwHs/(compH*pw*1.69)); tpwrs = (int) (tpwrs); rf180offca = (compC*4095.0*pwC*2.0)/pw180offca; rf180offca = (int) (rf180offca + 0.5); ni = getval("ni"); phase = (int) (getval("phase") + 0.5); getstr("satmode",satmode); getstr("f1180",f1180); getstr("abfilter",abfilter); if (dm[A] == 'y') { printf("incorrect Dec1 decoupler flags! "); psg_abort(1); } if (dm2[A] == 'y') { printf("incorrect Dec2 decoupler flags! "); psg_abort(1); } if ( satpwr > 8 ) { printf("satpwr too large !!! "); psg_abort(1); } if ( dpwr > 50 ) { printf("don't fry the probe, dpwr too large! "); psg_abort(1); } if ( dpwr2 > 50 ) { printf("don't fry the probe, dpwr2 too large! "); psg_abort(1); } settable(t1, 2, phi1); settable(t2, 1, phi2); settable(t3, 1, phi3); settable(t4, 1, phi4); settable(t5, 4, phi5); settable(t7, 4, phi7); tauhn = 1/(4.0*95.0); taunco = 1/(4.0*15.0); tauhn = ((jhn != 0.0) ? 1/(4*(jhn)) : 2.25e-3); taunco = ((jnco !=0.0) ? 1/(4*(jnco)) : 16.6e-3); kappa=(gt1 +gstab + (4.0/PI)*pwN + WFG_START_DELAY + pw180offca)/(0.5*ni/sw1)-0.001; if (kappa > 1.0) { kappa=1.0-0.01; } if (ix == 1) printf("semi-constant-time factor %4.6f\n",kappa); dofca = dof - 118.0*dfrq; if((getval("arraydim") < 1.5) || (ix==1)) first_FID = 1; else first_FID = 0; pw90onco = sqrt(15.0)/(4.0*118.0*dfrq); rf90onco = (compC*4095.0*pwC)/pw90onco; rf90onco = (int) (rf90onco + 0.5); if(rf90onco > 4095.0) { if(first_FID) printf("insufficient power for pw90onco -> rf90onco (%.0f)\n", rf90onco); rf90onco = 4095.0; pw90onco = pwC; } pw180onco = sqrt(3.0)/(2.0*118.0*dfrq); rf180onco = (compC*4095.0*pwC*2.0)/pw180onco; rf180onco = (int) (rf180onco + 0.5); if(rf180onco > 4095.0) { if(first_FID) printf("insufficient power for pw180onco -> rf180onco (%.0f)\n", rf180onco); rf180onco = 4095.0; pw180onco = pwC*2.0; } pw180offca = pw180onco; rf180offca = rf180onco; if (phase == 1) { icosel = 1; tsadd(t2, 2, 4); tsadd(t3, 2, 4); } else icosel = -1; if(ix == 1) d2_init = d2; t1_counter = (int) ( (d2-d2_init)*sw1 + 0.5); if(t1_counter %2) { tsadd(t1, 2, 4); tsadd(t7, 2, 4); } tau1 = d2; if (f1180[A] == 'y') tau1 += ( 1.0/(2.0*sw1)); tau1 = tau1/2.0; status(A); obspower(satpwr); decpower(pwClvl); decpwrf(rf180onco); dec2power(pwNlvl); obsoffset(tof); decoffset(dof); dec2offset(dof2); if (satmode[0] == 'y') { rgpulse(d1,zero,rof1,rof1); obspower(tpwr); } else { obspower(tpwr); delay(d1); } if (tpwrsf_d<4095.0) tpwrs=tpwrs+6.0; rcvroff(); dec2phase(zero); obspwrf(tpwrsf_d); obspower(tpwrs); shaped_pulse("H2Osinc_d", pwHs, one, rof1, rof1); obspower(tpwr); obspwrf(4095.0); rgpulse(pw,zero,rof1,0.0); zgradpulse(gzlvl0,gt0); delay(gstab); delay(tauhn - gt0 - gstab); sim3pulse(2.0*pw,0.0,2.0*pwN,zero,zero,zero,rof1,rof1); delay(tauhn - gt0 - gstab); zgradpulse(gzlvl0,gt0); delay(gstab -rof1); dec2phase(zero); rgpulse(pw,three,rof1,0.0); zgradpulse(gzlvl3,gt3); delay(gstab); dec2rgpulse(pwN,zero,0.0,0.0); if (abfilter[0] == 'b') { zgradpulse(gzlvl5*1.2,gt5); delay(gstab); delay(0.5*taunco - gt5 - gstab); sim3pulse(0.0*pw,0.0*pw180onco,0.0,zero,zero,zero,rof1,rof1); delay(0.5*taunco - gt5 - gstab); zgradpulse(gzlvl5*1.2,gt5); dec2phase(t4); delay(gstab); sim3pulse(0.0,pw180onco,2.0*pwN,zero,zero,t4,rof1,rof1); zgradpulse(gzlvl5*1.2,gt5); delay(gstab); delay(0.5*taunco - gt5 - gstab); sim3pulse(0.0*pw,0.0*pw180onco,0.0,zero,zero,zero,rof1,rof1); delay(0.5*taunco - gt5 - gstab - POWER_DELAY); decpwrf(rf180offca); zgradpulse(gzlvl5*1.2,gt5); delay(gstab); dec2phase(one); dec2rgpulse(pwN,one,0.0,0.0); } if (abfilter[0] == 'a') { zgradpulse(gzlvl5*1.2,gt5); delay(gstab); delay(0.5*taunco - gt5 - gstab - 0.5*pw180onco); sim3pulse(0.0*pw,pw180onco,0.0,zero,zero,zero,rof1,rof1); delay(0.5*taunco - gt5 - gstab - 0.5*pw180onco); zgradpulse(gzlvl5*1.2,gt5); dec2phase(t4); delay(gstab); sim3pulse(0.0,0.0,2.0*pwN,zero,zero,t4,rof1,rof1); zgradpulse(gzlvl5*1.2,gt5); delay(gstab); delay(0.5*taunco - gt5 - gstab - 0.5*pw180onco); sim3pulse(0.0*pw,pw180onco,0.0,zero,zero,zero,rof1,rof1); delay(0.5*taunco - gt5 - gstab - 0.5*pw180onco - POWER_DELAY); decpwrf(rf180offca); zgradpulse(gzlvl5*1.2,gt5); delay(gstab); decphase(t5); dec2phase(zero); dec2rgpulse(pwN,zero,0.0,0.0); } zgradpulse(gzlvl3*1.3,gt3); delay(gstab); dec2rgpulse(pwN,t1,0.0,0.0); delay(tau1); decshaped_pulse("offC3",pw180offca,t5,0.0,0.0); delay((1-kappa)*tau1); zgradpulse(gzlvl1,gt1); delay(gstab); dec2phase(zero); dec2rgpulse(2.0*pwN,zero,0.0,0.0); delay(gt1 + gstab + (4.0/PI)*pwN + WFG_START_DELAY + pw180offca - kappa*tau1); sim3pulse(pw,0.0,0.0,t2,zero,zero,rof1,rof1); zgradpulse(gzlvl5,gt5); delay(gstab); delay(tauhn - gt5 - gstab); sim3pulse(2.0*pw,0.0,2.0*pwN,zero,zero,zero,rof1,rof1); txphase(zero); dec2phase(zero); delay(tauhn - gt5 - gstab); zgradpulse(gzlvl5,gt5); delay(gstab); txphase(one); sim3pulse(pw,0.0,pwN,one,zero,zero,rof1,rof1); obspower(tpwrs); obspwrf(tpwrsf_u); shaped_pulse("H2Osinc_u", pwHs, t2, rof1, 0.0); obspower(tpwr); obspwrf(4095.0); dec2phase(zero); zgradpulse(gzlvl5*0.8,gt5); delay(gstab); delay(tauhn -gt5 -gstab -2.0*POWER_DELAY -pwHs -WFG_START_DELAY); sim3pulse(2.0*pw,0.0,2.0*pwN,zero,zero,zero,rof1,rof1); txphase(zero); dec2phase(t3); delay(tauhn - gt5 - gstab - 2.0*POWER_DELAY); zgradpulse(gzlvl5*0.8,gt5); delay(gstab); dec2rgpulse(pwN,t3,0.0,0.0); decpower(dpwr); dec2power(dpwr2); delay((gt1/10.0) + gstab - 2.0*POWER_DELAY); rgpulse(2.0*pw, zero, 0.0, 0.0); zgradpulse(gzlvl2*icosel,gt1*0.1); delay(gstab); setreceiver(t7); }
3a9d4822ad96b9c0d2930035ed5564ac5e74d9e735b4212afd880203a71f1581
8,637
rasmus-toftdahl-olesen
sequanto-automation
server/c/examples/type_tests.c
setup
void setup ( void ) { SequantoAutomation::init(); type_test_init(); }
void type_test_init( void ); void type_test_reset ( void ); signed long type_test_signed_long_get ( void ); void type_test_signed_long_set ( signed long _value ); long type_test_long_get ( void ); void type_test_long_set ( long _value ); unsigned long type_test_unsigned_long_get ( void ); void type_test_unsigned_long_set ( unsigned long _value ); signed int type_test_signed_integer_get ( void ); void type_test_signed_integer_set ( signed int _value ); int type_test_integer_get ( void ); void type_test_integer_set ( int _value ); unsigned int type_test_unsigned_integer_get ( void ); void type_test_unsigned_integer_set ( unsigned int _value ); signed short type_test_signed_short_get ( void ); void type_test_signed_short_set ( signed short _value ); short type_test_short_get ( void ); void type_test_short_set ( short _value ); unsigned short type_test_unsigned_short_get ( void ); void type_test_unsigned_short_set ( unsigned short _value ); signed char type_test_signed_char_get ( void ); void type_test_signed_char_set ( signed char _value ); char type_test_char_get ( void ); void type_test_char_set ( char _value ); unsigned char type_test_unsigned_char_get ( void ); void type_test_unsigned_char_set ( unsigned char _value ); int64_t type_test_int64_t_get ( void ); void type_test_int64_t_set ( int64_t _value ); float type_test_float_get ( void ); void type_test_float_set ( float _value ); double type_test_double_get ( void ); void type_test_double_set ( double _value ); SQBool type_test_bool_get ( void ); void type_test_bool_set ( SQBool _value ); bool_t type_test_bool_t_get ( void ); void type_test_bool_t_set ( bool_t _value ); UINT16 type_test_UINT16_get ( void ); void type_test_UINT16_set ( UINT16 _value ); void type_test_SQByteArray_set ( SQByteArray * _value ); void type_test_const_SQByteArray_set ( const SQByteArray * _value ); SQByteArray * type_test_SQByteArray_get ( void ); const SQByteArray * type_test_const_SQByteArray_get ( void ); void loop ( void ); void server_reboot ( void ); int main ( int argc, char * argv[] ); void server_reboot ();
2db71e71641c39cf1c491cc6d901355114639edb6c8b6a448a2276d439e50739
78
0x20c24
linux-psec
linux-3.14.37/net/decnet/sysctl_net_decnet.c
dn_node_address_handler
static int dn_node_address_handler(struct ctl_table *table, int write, void __user *buffer, size_t *lenp, loff_t *ppos) { char addr[DN_ASCBUF_LEN]; size_t len; __le16 dnaddr; if (!*lenp || (*ppos && !write)) { *lenp = 0; return 0; } if (write) { len = (*lenp < DN_ASCBUF_LEN) ? *lenp : (DN_ASCBUF_LEN-1); if (copy_from_user(addr, buffer, len)) return -EFAULT; addr[len] = 0; strip_it(addr); if (parse_addr(&dnaddr, addr)) return -EINVAL; dn_dev_devices_off(); decnet_address = dnaddr; dn_dev_devices_on(); *ppos += len; return 0; } dn_addr2asc(le16_to_cpu(decnet_address), addr); len = strlen(addr); addr[len++] = '\n'; if (len > *lenp) len = *lenp; if (len > sizeof addr || copy_to_user(buffer, addr, len)) return -EFAULT; *lenp = len; *ppos += len; return 0; }
static void strip_it(char *str); static int parse_addr(__le16 *addr, char *str); void dn_register_sysctl(void); void dn_unregister_sysctl(void); void dn_unregister_sysctl(void); void dn_register_sysctl(void);
e83797595b1d107f22db26222e12d12810a994e06b9f4e069c9b7d68247b4262
833
SRI-CSL
yices2
src/terms/full_subst.c
full_subst_bveq
static term_t full_subst_bveq(full_subst_t *subst, composite_term_t *eq) { term_t a, b; assert(eq->arity == 2); a = full_subst(subst, eq->arg[0]); b = full_subst(subst, eq->arg[1]); return mk_bveq(subst->mngr, a, b); }
void init_full_subst(full_subst_t *subst, term_manager_t *mngr); void delete_full_subst(full_subst_t *subst); static bool good_map_types(full_subst_t *subst, term_t x, term_t t); term_t full_subst_get_map(full_subst_t *subst, term_t x); void full_subst_add_map(full_subst_t *subst, term_t x, term_t t); static void full_subst_remove_map(full_subst_t *subst, term_t x); static bool fsubst_visit_composite(full_subst_t *subst, composite_term_t *c); static bool fsubst_visit_pprod(full_subst_t *subst, pprod_t *p); static bool fsubst_visit_arith_poly(full_subst_t *subst, polynomial_t *p); static bool fsubst_visit_bv_poly(full_subst_t *subst, bvpoly_t *p); static bool fsubst_visit_bv64_poly(full_subst_t *subst, bvpoly64_t *p); static bool fsubst_explore(full_subst_t *subst, int32_t i); static bool fsubst_visit(full_subst_t *subst, term_t t); bool full_subst_check_map(full_subst_t *subst, term_t x, term_t t); bool full_subst_check_deps(full_subst_t *subst, term_t x, uint32_t n, term_t *a); static void collect_map(void *aux, const int_hmap_pair_t *p); void full_subst_remove_cycles(full_subst_t *subst); void full_subst_clear_cache(full_subst_t *subst); static term_t cached_full_subst(full_subst_t *subst, term_t t); static void full_subst_cache_result(full_subst_t *subst, term_t t, term_t s); static term_t *full_subst_children(full_subst_t *subst, composite_term_t *d); static term_t full_subst_arith_eq(full_subst_t *subst, term_t t); static term_t full_subst_arith_ge(full_subst_t *subst, term_t t); static term_t full_subst_arith_root_atom(full_subst_t *subst, root_atom_t* r); static term_t full_subst_arith_is_int(full_subst_t *subst, term_t t); static term_t full_subst_arith_floor(full_subst_t *subst, term_t t); static term_t full_subst_arith_ceil(full_subst_t *subst, term_t t); static term_t full_subst_arith_abs(full_subst_t *subst, term_t t); static term_t full_subst_ite(full_subst_t *subst, composite_term_t *ite); static term_t full_subst_app(full_subst_t *subst, composite_term_t *app); static term_t full_subst_update(full_subst_t *subst, composite_term_t *update); static term_t full_subst_tuple(full_subst_t *subst, composite_term_t *tuple); static term_t full_subst_eq(full_subst_t *subst, composite_term_t *eq); static term_t full_subst_distinct(full_subst_t *subst, composite_term_t *distinct); static term_t full_subst_forall(full_subst_t *subst, composite_term_t *forall); static term_t full_subst_lambda(full_subst_t *subst, composite_term_t *lambda); static term_t full_subst_or(full_subst_t *subst, composite_term_t *or); static term_t full_subst_xor(full_subst_t *subst, composite_term_t *xor); static term_t full_subst_arith_bineq(full_subst_t *subst, composite_term_t *eq); static term_t full_subst_arith_rdiv(full_subst_t *subst, composite_term_t *div); static term_t full_subst_arith_idiv(full_subst_t *subst, composite_term_t *div); static term_t full_subst_arith_mod(full_subst_t *subst, composite_term_t *mod); static term_t full_subst_arith_divides(full_subst_t *subst, composite_term_t *divides); static term_t full_subst_bvarray(full_subst_t *subst, composite_term_t *bvarray); static term_t full_subst_bvdiv(full_subst_t *subst, composite_term_t *div); static term_t full_subst_bvrem(full_subst_t *subst, composite_term_t *rem); static term_t full_subst_bvsdiv(full_subst_t *subst, composite_term_t *sdiv); static term_t full_subst_bvsrem(full_subst_t *subst, composite_term_t *srem); static term_t full_subst_bvsmod(full_subst_t *subst, composite_term_t *smod); static term_t full_subst_bvshl(full_subst_t *subst, composite_term_t *shl); static term_t full_subst_bvlshr(full_subst_t *subst, composite_term_t *lshr); static term_t full_subst_bvashr(full_subst_t *subst, composite_term_t *ashr); static term_t full_subst_bvge(full_subst_t *subst, composite_term_t *ge); static term_t full_subst_bvsge(full_subst_t *subst, composite_term_t *sge); static term_t full_subst_select(full_subst_t *subst, select_term_t *select); static term_t full_subst_bit(full_subst_t *subst, select_term_t *bit); static bool pprod_degree_overflows(term_table_t *tbl, pprod_t *p, uint32_t n, term_t *a); static bool term_is_zero(term_table_t *tbl, term_t t); static term_t full_subst_pprod(full_subst_t *subst, pprod_t *p); static term_t full_subst_poly(full_subst_t *subst, polynomial_t *p); static term_t full_subst_bvpoly64(full_subst_t *subst, bvpoly64_t *p); static term_t full_subst_bvpoly(full_subst_t *subst, bvpoly_t *p); static term_t full_subst_composite(full_subst_t *subst, term_t t); static term_t full_subst(full_subst_t *subst, term_t t); term_t full_subst_apply(full_subst_t *subst, term_t t);
18baa56b86d83f3a97c45911aa0558b8f125414ff1465edec3641f601469932a
230
kernel-digger
mt7601u
DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/common/cmm_info.c
assoc_ht_info_debugshow
void assoc_ht_info_debugshow(IN PRTMP_ADAPTER pAd, IN MAC_TABLE_ENTRY * pEntry, IN UCHAR ht_cap_len, IN HT_CAPABILITY_IE * pHTCapability) { HT_CAP_INFO *pHTCap; HT_CAP_PARM *pHTCapParm; EXT_HT_CAP_INFO *pExtHT; #ifdef TXBF_SUPPORT HT_BF_CAP *pBFCap; #endif if (pHTCapability && (ht_cap_len > 0)) { pHTCap = &pHTCapability->HtCapInfo; pHTCapParm = &pHTCapability->HtCapParm; pExtHT = &pHTCapability->ExtHtCapInfo; #ifdef TXBF_SUPPORT pBFCap = &pHTCapability->TxBFCap; #endif DBGPRINT(RT_DEBUG_TRACE, ("Peer - 11n HT Info\n")); DBGPRINT(RT_DEBUG_TRACE, ("\tHT Cap Info: \n")); DBGPRINT(RT_DEBUG_TRACE, ("\t\t AdvCode(%d), BW(%d), MIMOPS(%d), GF(%d), ShortGI_20(%d), ShortGI_40(%d)\n", pHTCap->AdvCoding, pHTCap->ChannelWidth, pHTCap->MimoPs, pHTCap->GF, pHTCap->ShortGIfor20, pHTCap->ShortGIfor40)); DBGPRINT(RT_DEBUG_TRACE, ("\t\t TxSTBC(%d), RxSTBC(%d), DelayedBA(%d), A-MSDU(%d), CCK_40(%d)\n", pHTCap->TxSTBC, pHTCap->RxSTBC, pHTCap->DelayedBA, pHTCap->AMsduSize, pHTCap->CCKmodein40)); DBGPRINT(RT_DEBUG_TRACE, ("\t\t PSMP(%d), Forty_Mhz_Intolerant(%d), L-SIG(%d)\n", pHTCap->PSMP, pHTCap->Forty_Mhz_Intolerant, pHTCap->LSIGTxopProSup)); DBGPRINT(RT_DEBUG_TRACE, ("\tHT Parm Info: \n")); DBGPRINT(RT_DEBUG_TRACE, ("\t\t MaxRx A-MPDU Factor(%d), MPDU Density(%d)\n", pHTCapParm->MaxRAmpduFactor, pHTCapParm->MpduDensity)); DBGPRINT(RT_DEBUG_TRACE, ("\tHT MCS set: \n")); DBGPRINT(RT_DEBUG_TRACE, ("\t\t RxMCS(%02x %02x %02x %02x %02x) MaxRxMbps(%d) TxMCSSetDef(%02x)\n", pHTCapability->MCSSet[0], pHTCapability->MCSSet[1], pHTCapability->MCSSet[2], pHTCapability->MCSSet[3], pHTCapability->MCSSet[4], (pHTCapability->MCSSet[11] << 8) + pHTCapability->MCSSet[10], pHTCapability->MCSSet[12])); DBGPRINT(RT_DEBUG_TRACE, ("\tExt HT Cap Info: \n")); DBGPRINT(RT_DEBUG_TRACE, ("\t\t PCO(%d), TransTime(%d), MCSFeedback(%d), +HTC(%d), RDG(%d)\n", pExtHT->Pco, pExtHT->TranTime, pExtHT->MCSFeedback, pExtHT->PlusHTC, pExtHT->RDGSupport)); #ifdef TXBF_SUPPORT DBGPRINT(RT_DEBUG_TRACE, ("\tTX BF Cap: \n")); DBGPRINT(RT_DEBUG_TRACE, ("\t\t ImpRxCap(%d), RXStagSnd(%d), TXStagSnd(%d), RxNDP(%d), TxNDP(%d) ImpTxCap(%d)\n", pBFCap->TxBFRecCapable, pBFCap->RxSoundCapable, pBFCap->TxSoundCapable, pBFCap->RxNDPCapable, pBFCap->TxNDPCapable, pBFCap->ImpTxBFCapable)); DBGPRINT(RT_DEBUG_TRACE, ("\t\t Calibration(%d), ExpCSICapable(%d), ExpComSteerCapable(%d), ExpCSIFbk(%d), ExpNoComBF(%d) ExpComBF(%d)\n", pBFCap->Calibration, pBFCap->ExpCSICapable, pBFCap->ExpComSteerCapable, pBFCap->ExpCSIFbk, pBFCap->ExpNoComBF, pBFCap->ExpComBF)); DBGPRINT(RT_DEBUG_TRACE, ("\t\t MinGrouping(%d), CSIBFAntSup(%d), NoComSteerBFAntSup(%d), ComSteerBFAntSup(%d), CSIRowBFSup(%d) ChanEstimation(%d)\n", pBFCap->MinGrouping, pBFCap->CSIBFAntSup, pBFCap->NoComSteerBFAntSup, pBFCap->ComSteerBFAntSup, pBFCap->CSIRowBFSup, pBFCap->ChanEstimation)); #endif DBGPRINT(RT_DEBUG_TRACE, ("\nPeer - MODE=%d, BW=%d, MCS=%d, ShortGI=%d, MaxRxFactor=%d, MpduDensity=%d, MIMOPS=%d, AMSDU=%d\n", pEntry->HTPhyMode.field.MODE, pEntry->HTPhyMode.field.BW, pEntry->HTPhyMode.field.MCS, pEntry->HTPhyMode.field.ShortGI, pEntry->MaxRAmpduFactor, pEntry->MpduDensity, pEntry->MmpsMode, pEntry->AMsduSize)); #ifdef DOT11N_DRAFT3 DBGPRINT(RT_DEBUG_TRACE, ("\tExt Cap Info: \n")); DBGPRINT(RT_DEBUG_TRACE, ("\t\tBss2040CoexistMgmt=%d\n", pEntry->BSS2040CoexistenceMgmtSupport)); #endif } }
INT Set_DriverVersion_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_CountryRegion_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_CountryRegionABand_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_WirelessMode_Proc(RTMP_ADAPTER * pAd, PSTRING arg); INT Set_Channel_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_ShortSlot_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_TxPower_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_BGProtection_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_TxPreamble_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_RTSThreshold_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_FragThreshold_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_TxBurst_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_PktAggregate_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_INF_AMAZON_SE_PPA_Proc(IN PRTMP_ADAPTER pAd, IN PUCHAR arg); INT Set_IEEE80211H_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_ExtCountryCode_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_ExtDfsType_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_ChannelListAdd_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_ChannelListShow_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_ChannelListDel_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_Debug_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_DebugFunc_Proc(IN RTMP_ADAPTER * pAd, IN PSTRING arg); INT Show_DescInfo_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_ResetStatCounter_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); BOOLEAN RTMPCheckStrPrintAble(IN CHAR * pInPutStr, IN UCHAR strLen); VOID RTMPSetDesiredRates(IN PRTMP_ADAPTER pAdapter, IN LONG Rates); NDIS_STATUS RTMPWPARemoveKeyProc(IN PRTMP_ADAPTER pAd, IN PVOID pBuf); VOID RTMPWPARemoveAllKeys(IN PRTMP_ADAPTER pAd); VOID RTMPSetPhyMode(IN RTMP_ADAPTER * pAd, IN ULONG phymode); PSTRING GetEncryptType(CHAR enc); PSTRING GetAuthMode(CHAR auth); INT Set_BASetup_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_BADecline_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_BAOriTearDown_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_BARecTearDown_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_HtBw_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_HtMcs_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_HtGi_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_HtTxBASize_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_HtDisallowTKIP_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_HtOpMode_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_HtStbc_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_HtHtc_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_HtExtcha_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_HtMpduDensity_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_HtBaWinSize_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_HtRdg_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_HtLinkAdapt_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_HtAmsdu_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_HtAutoBa_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_HtProtect_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_SendPSMPAction_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_HtMIMOPSmode_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_ForceShortGI_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_ForceGF_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_HtMimoPs_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_HT_BssCoex_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING pParam); INT Set_HT_BssCoexApCntThr_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING pParam); INT Set_VhtBw_Proc(IN RTMP_ADAPTER * pAd, IN PSTRING arg); INT Set_VhtStbc_Proc(IN RTMP_ADAPTER * pAd, IN PSTRING arg); INT Set_FixedTxMode_Proc(RTMP_ADAPTER * pAd, PSTRING arg); INT Set_OpMode_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); void dbQueueInit(void); void dbQueueEnqueue(UCHAR type, UCHAR * data); void dbQueueEnqueueTxFrame(UCHAR * pTxWI, UCHAR * pHeader_802_11); void dbQueueEnqueueRxFrame(UCHAR * pRxWI, UCHAR * pHeader_802_11, ULONG flags); static void dbQueueDisplayPHY(USHORT phyRate); static void dbQueueDump(IN PRTMP_ADAPTER pAd, BOOLEAN decode); INT Set_DebugQueue_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_StreamMode_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_StreamModeMac_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_StreamModeMCS_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_PreAntSwitch_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_PreAntSwitchRSSI_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_PreAntSwitchTimeout_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_CFOTrack_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_DebugFlags_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_LongRetryLimit_Proc(IN PRTMP_ADAPTER pAdapter, IN PSTRING arg); INT Set_ShortRetryLimit_Proc(IN PRTMP_ADAPTER pAdapter, IN PSTRING arg); INT Set_AutoFallBack_Proc(IN PRTMP_ADAPTER pAdapter, IN PSTRING arg); PSTRING RTMPGetRalinkAuthModeStr(IN NDIS_802_11_AUTHENTICATION_MODE authMode); PSTRING RTMPGetRalinkEncryModeStr(IN USHORT encryMode); INT Show_SSID_Proc(IN PRTMP_ADAPTER pAd, OUT PSTRING pBuf, IN ULONG BufLen); INT Show_TxBurst_Proc(IN PRTMP_ADAPTER pAd, OUT PSTRING pBuf, IN ULONG BufLen); INT Show_TxPower_Proc(IN PRTMP_ADAPTER pAd, OUT PSTRING pBuf, IN ULONG BufLen); INT Show_Channel_Proc(IN PRTMP_ADAPTER pAd, OUT PSTRING pBuf, IN ULONG BufLen); INT Show_HtBw_Proc(IN PRTMP_ADAPTER pAd, OUT PSTRING pBuf, IN ULONG BufLen); INT Show_HtMcs_Proc(IN PRTMP_ADAPTER pAd, OUT PSTRING pBuf, IN ULONG BufLen); INT Show_HtGi_Proc(IN PRTMP_ADAPTER pAd, OUT PSTRING pBuf, IN ULONG BufLen); INT Show_HtOpMode_Proc(IN PRTMP_ADAPTER pAd, OUT PSTRING pBuf, IN ULONG BufLen); INT Show_HtExtcha_Proc(IN PRTMP_ADAPTER pAd, OUT PSTRING pBuf, IN ULONG BufLen); INT Show_HtRdg_Proc(IN PRTMP_ADAPTER pAd, OUT PSTRING pBuf, IN ULONG BufLen); INT Show_HtAmsdu_Proc(IN PRTMP_ADAPTER pAd, OUT PSTRING pBuf, IN ULONG BufLen); INT Show_HtAutoBa_Proc(IN PRTMP_ADAPTER pAd, OUT PSTRING pBuf, IN ULONG BufLen); INT Show_WPAPSK_Proc(IN PRTMP_ADAPTER pAd, OUT PSTRING pBuf, IN ULONG BufLen); INT Show_AuthMode_Proc(IN PRTMP_ADAPTER pAd, OUT PSTRING pBuf, IN ULONG BufLen); INT Show_Key1_Proc(IN PRTMP_ADAPTER pAd, OUT PSTRING pBuf, IN ULONG BufLen); INT Show_Key2_Proc(IN PRTMP_ADAPTER pAd, OUT PSTRING pBuf, IN ULONG BufLen); INT Show_Key3_Proc(IN PRTMP_ADAPTER pAd, OUT PSTRING pBuf, IN ULONG BufLen); INT Show_Key4_Proc(IN PRTMP_ADAPTER pAd, OUT PSTRING pBuf, IN ULONG BufLen); INT Show_PMK_Proc(IN PRTMP_ADAPTER pAd, OUT PSTRING pBuf, IN ULONG BufLen); INT Show_MacTable_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT show_devinfo_proc(RTMP_ADAPTER * pAd, PSTRING arg); INT RTMPIoctlConnStatus(IN PRTMP_ADAPTER pAd, IN PSTRING arg); void getRate(HTTRANSMIT_SETTING HTSetting, ULONG * fLastTxRxRate); INT Set_ReadITxBf_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_ReadETxBf_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_WriteITxBf_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_WriteETxBf_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_StatITxBf_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_StatETxBf_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_TxBfTag_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_InvTxBfTag_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_ITxBfTimeout_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_ETxBfTimeout_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_ETxBfCodebook_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_ETxBfCoefficient_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_ETxBfGrouping_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_ETxBfNoncompress_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_ETxBfIncapable_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_ITxBfDivCal_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_ITxBfLnaCal_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_ITxBfCal_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_ETxBfEnCond_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_NoSndgCntThrd_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_NdpSndgStreams_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_Trigger_Sounding_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_ITxBfEn_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_BurstMode_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT Set_RateAdaptInterval(IN RTMP_ADAPTER * pAd, IN PSTRING arg); INT Set_VcoPeriod_Proc(IN RTMP_ADAPTER * pAd, IN PSTRING arg); INT Set_ModuleTxpower_Proc(IN PRTMP_ADAPTER pAd, IN PSTRING arg); INT set_tx_kickcnt(RTMP_ADAPTER * pAd, PSTRING arg); INT set_data_phy_mode(RTMP_ADAPTER * pAd, PSTRING arg); INT set_data_bw(RTMP_ADAPTER * pAd, PSTRING arg); INT set_data_mcs(RTMP_ADAPTER * pAd, PSTRING arg); INT set_data_gi(RTMP_ADAPTER * pAd, PSTRING arg); INT set_data_basize(RTMP_ADAPTER * pAd, PSTRING arg); INT set_fpga_mode(RTMP_ADAPTER * pAd, PSTRING arg); INT set_force_amsdu(RTMP_ADAPTER * pAd, PSTRING arg); INT set_rf(RTMP_ADAPTER * pAd, PSTRING arg);
16b7acdebf6be699ac2bb3ed46e8c9263cbdedfdc815f608c18444112fabf95e
3,639
seSuperuser
Superuser
Superuser/jni/su/daemon.c
read_int
static int read_int(int fd) { int val; int len = read(fd, &val, sizeof(int)); if (len != sizeof(int)) { LOGE("unable to read int: %d", len); exit(-1); } return val; }
static int recv_fd(int sockfd); static void send_fd(int sockfd, int fd); static void write_int(int fd, int val); static char* read_string(int fd); static void write_string(int fd, char* val); static void mount_emulated_storage(int user_id); static int run_daemon_child(int infd, int outfd, int errfd, int argc, char** argv); static int daemon_accept(int fd); static int copy_file(const char* src, const char* dst, int mode); static void prepare_su_bind(); static void prepare_binds(); static void do_init(); static void prepare(); int run_daemon(); static void sighandler(int sig); static void setup_sighandlers(void); int connect_daemon(int argc, char *argv[], int ppid);
3565148b7cc010802f698112b79164eec71a0652d14f753e4a17fad916f54d66
203
Jackeagle
android_kernel_sony_c2305
drivers/scsi/isci/probe_roms.c
*isci_request_firmware
struct isci_orom *isci_request_firmware(struct pci_dev *pdev, const struct firmware *fw) { struct isci_orom *orom = NULL, *data; int i, j; if (request_firmware(&fw, ISCI_FW_NAME, &pdev->dev) != 0) return NULL; if (fw->size < sizeof(*orom)) goto out; data = (struct isci_orom *)fw->data; if (strncmp(ISCI_ROM_SIG, data->hdr.signature, strlen(ISCI_ROM_SIG)) != 0) goto out; orom = devm_kzalloc(&pdev->dev, fw->size, GFP_KERNEL); if (!orom) goto out; memcpy(orom, fw->data, fw->size); if (is_c0(pdev) || is_c1(pdev)) goto out; for (i = 0; i < ARRAY_SIZE(orom->ctrl); i++) for (j = 0; j < ARRAY_SIZE(orom->ctrl[i].phys); j++) { orom->ctrl[i].phys[j].afe_tx_amp_control0 = 0xe7c03; orom->ctrl[i].phys[j].afe_tx_amp_control1 = 0xe7c03; orom->ctrl[i].phys[j].afe_tx_amp_control2 = 0xe7c03; orom->ctrl[i].phys[j].afe_tx_amp_control3 = 0xe7c03; } out: release_firmware(fw); return orom; }
struct isci_orom *isci_request_oprom(struct pci_dev *pdev); static struct efi *get_efi(void); struct isci_orom *isci_get_efi_var(struct pci_dev *pdev);
319e3e8796323be3a4308c1c7f0da929ef3b3558190057c424ec31b5ff3dac00
976
outlandkarasu
substr
substr.c
et
et(*dest, 0, sizeof(HashEntry)); return R_OK; } Result HashEntryCache_deallocate(HashEntryCache *cache, HashEntry *e) { if(!cache || !e) {
* 入力ファイルを読み込む */ if(readSource(&source, stdin); ; tries); if(entry->length == length && memcmp(entry->p, p, length); ult Hash_clear(Hash *hash);
d64f68c640591db77e9bbc8622ff09ceca426fbada10f2d38d707130bd33dcfb
150
CyanogenMod
android_kernel_samsung_s3ve3g
drivers/usb/core/devio.c
usbdev_log
static int usbdev_log(unsigned int cmd, int ret) { char *cmd_string; switch (cmd) { case USBDEVFS_CONTROL: cmd_string = "CONTROL"; break; case USBDEVFS_BULK: cmd_string = "BULK"; break; case USBDEVFS_RESETEP: cmd_string = "RESETEP"; break; case USBDEVFS_RESET: cmd_string = "RESET"; break; case USBDEVFS_CLEAR_HALT: cmd_string = "CLEAR_HALT"; break; case USBDEVFS_GETDRIVER: cmd_string = "GETDRIVER"; break; case USBDEVFS_CONNECTINFO: cmd_string = "CONNECTINFO"; break; case USBDEVFS_SETINTERFACE: cmd_string = "SETINTERFACE"; break; case USBDEVFS_SETCONFIGURATION: cmd_string = "SETCONFIGURATION"; break; case USBDEVFS_SUBMITURB: cmd_string = "SUBMITURB"; break; case USBDEVFS_DISCARDURB: cmd_string = "DISCARDURB"; break; case USBDEVFS_REAPURB: cmd_string = "REAPURB"; break; case USBDEVFS_REAPURBNDELAY: cmd_string = "REAPURBNDELAY"; break; case USBDEVFS_DISCSIGNAL: cmd_string = "DISCSIGNAL"; break; case USBDEVFS_CLAIMINTERFACE: cmd_string = "CLAIMINTERFACE"; break; case USBDEVFS_RELEASEINTERFACE: cmd_string = "RELEASEINTERFACE"; break; case USBDEVFS_IOCTL: cmd_string = "IOCTL"; break; case USBDEVFS_CLAIM_PORT: cmd_string = "CLAIM_PORT"; break; case USBDEVFS_RELEASE_PORT: cmd_string = "RELEASE_PORT"; break; default: cmd_string = "DEFAULT"; break; } printk(KERN_ERR "%s: %s error ret=%d\n", __func__, cmd_string, ret); return 0; }
static int usbfs_increase_memory_usage(unsigned amount); static void usbfs_decrease_memory_usage(unsigned amount); static int connected(struct dev_state *ps); static loff_t usbdev_lseek(struct file *file, loff_t offset, int orig); static struct async *alloc_async(unsigned int numisoframes); static void free_async(struct async *as); static void async_newpending(struct async *as); static void async_removepending(struct async *as); static struct async *async_getcompleted(struct dev_state *ps); static void async_completed(struct urb *urb); static void destroy_async(struct dev_state *ps, struct list_head *list); static void destroy_all_async(struct dev_state *ps); static void driver_disconnect(struct usb_interface *intf); static int driver_suspend(struct usb_interface *intf, pm_message_t msg); static int driver_resume(struct usb_interface *intf); static int claimintf(struct dev_state *ps, unsigned int ifnum); static int releaseintf(struct dev_state *ps, unsigned int ifnum); static int checkintf(struct dev_state *ps, unsigned int ifnum); static int findintfep(struct usb_device *dev, unsigned int ep); static int match_devt(struct device *dev, void *data); static struct usb_device *usbdev_lookup_by_devt(dev_t devt); static int usbdev_open(struct inode *inode, struct file *file); static int usbdev_release(struct inode *inode, struct file *file); static int proc_control(struct dev_state *ps, void __user *arg); static int proc_bulk(struct dev_state *ps, void __user *arg); static int proc_resetep(struct dev_state *ps, void __user *arg); static int proc_clearhalt(struct dev_state *ps, void __user *arg); static int proc_getdriver(struct dev_state *ps, void __user *arg); static int proc_connectinfo(struct dev_state *ps, void __user *arg); static int proc_resetdevice(struct dev_state *ps); static int proc_setintf(struct dev_state *ps, void __user *arg); static int proc_setconfig(struct dev_state *ps, void __user *arg); static int proc_submiturb(struct dev_state *ps, void __user *arg); static int proc_unlinkurb(struct dev_state *ps, void __user *arg); static int processcompl(struct async *as, void __user * __user *arg); static struct async *reap_as(struct dev_state *ps); static int proc_reapurb(struct dev_state *ps, void __user *arg); static int proc_reapurbnonblock(struct dev_state *ps, void __user *arg); static int proc_disconnectsignal_compat(struct dev_state *ps, void __user *arg); static int proc_submiturb_compat(struct dev_state *ps, void __user *arg); static int processcompl_compat(struct async *as, void __user * __user *arg); static int proc_reapurb_compat(struct dev_state *ps, void __user *arg); static int proc_reapurbnonblock_compat(struct dev_state *ps, void __user *arg); static int proc_disconnectsignal(struct dev_state *ps, void __user *arg); static int proc_claiminterface(struct dev_state *ps, void __user *arg); static int proc_releaseinterface(struct dev_state *ps, void __user *arg); static int proc_ioctl(struct dev_state *ps, struct usbdevfs_ioctl *ctl); static int proc_ioctl_default(struct dev_state *ps, void __user *arg); static int proc_ioctl_compat(struct dev_state *ps, compat_uptr_t arg); static int proc_claim_port(struct dev_state *ps, void __user *arg); static int proc_release_port(struct dev_state *ps, void __user *arg); static void usbdev_remove(struct usb_device *udev); static int usb_classdev_add(struct usb_device *dev); static void usb_classdev_remove(struct usb_device *dev); int __init usb_devio_init(void); void usb_devio_cleanup(void);
4cbf80add5bf49886de03c1fc79e7acdb6fc06c93130254fd8bedab1e0b1be1f
1,446
peteuk
piUAE
src/gayle.c
do_packet_command
static void do_packet_command (struct ide_hdf *ide) { memcpy (ide->scsi->cmd, ide->secbuf, 12); ide->scsi->cmd_len = 12; if (IDE_LOG > 0) { uae_u8 *c = ide->scsi->cmd; write_log (_T("ATASCSI %02x.%02x.%02x.%02x.%02x.%02x.%02x.%02x.%02x.%02x.%02x.%02x\n"), c[0], c[1], c[2], c[3], c[4], c[5], c[6], c[7], c[8], c[9], c[10], c[11]); } ide->direction = 0; scsi_emulate_analyze (ide->scsi); if (ide->scsi->direction <= 0) { ide->scsi->data_len = SECBUF_SIZE; scsi_emulate_cmd (ide->scsi); ide->data_size = ide->scsi->data_len; ide->regs.ide_status = 0; if (ide->scsi->status) { ide->regs.ide_error = (ide->scsi->sense[2] << 4) | 4; atapi_data_done (ide); ide->regs.ide_status |= ATAPI_STATUS_CHK; atapi_set_size (ide); return; } else if (ide->scsi->data_len) { memcpy (ide->secbuf, ide->scsi->buffer, ide->scsi->data_len); ide->regs.ide_nsector = ATAPI_IO; } else { atapi_data_done (ide); } } else { ide->direction = 1; ide->regs.ide_nsector = 0; ide->data_size = ide->scsi->data_len; } ide->packet_state = 2; if (atapi_set_size (ide)) ide->intdrq = true; }
STATIC_INLINE void pw (struct ide_hdf *ide, int offset, uae_u16 w); static void ps (struct ide_hdf *ide, int offset, const TCHAR *src, int max); static void pcmcia_reset (void); static uae_u8 checkpcmciaideirq (void); static bool isdrive (struct ide_hdf *ide); static uae_u8 checkgayleideirq (void); void rethink_gayle (void); static void gayle_cs_change (uae_u8 mask, int onoff); static void card_trigger (int insert); static void write_gayle_cfg (uae_u8 val); static uae_u8 read_gayle_cfg (void); static void write_gayle_irq (uae_u8 val); static uae_u8 read_gayle_irq (void); static void write_gayle_int (uae_u8 val); static uae_u8 read_gayle_int (void); static void write_gayle_cs (uae_u8 val); static uae_u8 read_gayle_cs (void); static void ide_interrupt (struct ide_hdf *ide); static void ide_fast_interrupt (struct ide_hdf *ide); static void ide_interrupt_do (struct ide_hdf *ide); static void ide_fail_err (struct ide_hdf *ide, uae_u8 err); static void ide_fail (struct ide_hdf *ide); static void ide_data_ready (struct ide_hdf *ide); static void ide_recalibrate (struct ide_hdf *ide); static void ide_identify_drive (struct ide_hdf *ide); static void set_signature (struct ide_hdf *ide); static void reset_device (struct ide_hdf *ide, bool both); static void ide_execute_drive_diagnostics (struct ide_hdf *ide, bool irq); static void ide_initialize_drive_parameters (struct ide_hdf *ide); static void ide_set_multiple_mode (struct ide_hdf *ide); static void ide_set_features (struct ide_hdf *ide); static void get_lbachs (struct ide_hdf *ide, uae_u64 *lbap, unsigned int *cyl, unsigned int *head, unsigned int *sec); static int get_nsec (struct ide_hdf *ide); static int dec_nsec (struct ide_hdf *ide, int v); static void put_lbachs (struct ide_hdf *ide, uae_u64 lba, unsigned int cyl, unsigned int head, unsigned int sec, unsigned int inc); static void check_maxtransfer (struct ide_hdf *ide, int state); static void setdrq (struct ide_hdf *ide); static void setbsy (struct ide_hdf *ide); static void process_rw_command (struct ide_hdf *ide); static void process_packet_command (struct ide_hdf *ide); static void atapi_data_done (struct ide_hdf *ide); static bool atapi_set_size (struct ide_hdf *ide); static void atapi_packet (struct ide_hdf *ide); static void do_process_packet_command (struct ide_hdf *ide); static void do_process_rw_command (struct ide_hdf *ide); static void ide_read_sectors (struct ide_hdf *ide, int flags); static void ide_write_sectors (struct ide_hdf *ide, int flags); static void ide_do_command (struct ide_hdf *ide, uae_u8 cmd); static uae_u16 ide_get_data (struct ide_hdf *ide); static void ide_put_data (struct ide_hdf *ide, uae_u16 v); static int get_gayle_ide_reg (uaecptr addr, struct ide_hdf **ide); static uae_u32 ide_read_reg (struct ide_hdf *ide, int ide_reg); static void ide_write_reg (struct ide_hdf *ide, int ide_reg, uae_u32 val); static uae_u32 gayle_read2 (uaecptr addr); static void gayle_write2 (uaecptr addr, uae_u32 val); static int gayle_read (uaecptr addr); static void gayle_write (uaecptr addr, int val); static bool isa4000t (uaecptr *paddr); static uae_u32 REGPARAM2 gayle_lget (uaecptr addr); static uae_u32 REGPARAM2 gayle_wget (uaecptr addr); static uae_u32 REGPARAM2 gayle_bget (uaecptr addr); static void REGPARAM2 gayle_lput (uaecptr addr, uae_u32 value); static void REGPARAM2 gayle_wput (uaecptr addr, uae_u32 value); static void REGPARAM2 gayle_bput (uaecptr addr, uae_u32 value); static void gayle2_write (uaecptr addr, uae_u32 v); static uae_u32 gayle2_read (uaecptr addr); static uae_u32 REGPARAM2 gayle2_lget (uaecptr addr); static uae_u32 REGPARAM2 gayle2_wget (uaecptr addr); static uae_u32 REGPARAM2 gayle2_bget (uaecptr addr); static void REGPARAM2 gayle2_lput (uaecptr addr, uae_u32 value); static void REGPARAM2 gayle2_wput (uaecptr addr, uae_u32 value); static void REGPARAM2 gayle2_bput (uaecptr addr, uae_u32 value); static void mbres_write (uaecptr addr, uae_u32 val, int size); static uae_u32 mbres_read (uaecptr addr, int size); static uae_u32 REGPARAM2 mbres_lget (uaecptr addr); static uae_u32 REGPARAM2 mbres_wget (uaecptr addr); static uae_u32 REGPARAM2 mbres_bget (uaecptr addr); static void REGPARAM2 mbres_lput (uaecptr addr, uae_u32 value); static void REGPARAM2 mbres_wput (uaecptr addr, uae_u32 value); static void REGPARAM2 mbres_bput (uaecptr addr, uae_u32 value); void gayle_hsync (void); static void alloc_ide_mem (struct ide_hdf **ide, int max); static struct ide_hdf *add_ide_unit (int ch, struct uaedev_config_info *ci); static int get_pcmcmia_ide_reg (uaecptr addr, int width, struct ide_hdf **ide); static uae_u32 gayle_attr_read (uaecptr addr); static void gayle_attr_write (uaecptr addr, uae_u32 v); static void initscideattr (int readonly); static void initsramattr (int size, int readonly); static void checkflush (int addr); static int freepcmcia (int reset); static int initpcmcia (const TCHAR *path, int readonly, int type, int reset); static uae_u32 gayle_common_read (uaecptr addr); static void gayle_common_write (uaecptr addr, uae_u32 v); static int REGPARAM2 gayle_common_check (uaecptr addr, uae_u32 size); static uae_u8 *REGPARAM2 gayle_common_xlate (uaecptr addr); static uae_u32 REGPARAM2 gayle_attr_lget (uaecptr addr); static uae_u32 REGPARAM2 gayle_attr_wget (uaecptr addr); static uae_u32 REGPARAM2 gayle_attr_bget (uaecptr addr); static void REGPARAM2 gayle_attr_lput (uaecptr addr, uae_u32 value); static void REGPARAM2 gayle_attr_wput (uaecptr addr, uae_u32 value); static void REGPARAM2 gayle_attr_bput (uaecptr addr, uae_u32 value); static uae_u32 REGPARAM2 gayle_common_lget (uaecptr addr); static uae_u32 REGPARAM2 gayle_common_wget (uaecptr addr); static uae_u32 REGPARAM2 gayle_common_bget (uaecptr addr); static void REGPARAM2 gayle_common_lput (uaecptr addr, uae_u32 value); static void REGPARAM2 gayle_common_wput (uaecptr addr, uae_u32 value); static void REGPARAM2 gayle_common_bput (uaecptr addr, uae_u32 value); void gayle_map_pcmcia (void); static int rl (uae_u8 *p); void gayle_free_units (void); static void dumphdf (struct hardfiledata *hfd); int gayle_add_ide_unit (int ch, struct uaedev_config_info *ci); int gayle_add_pcmcia_sram_unit (const TCHAR *path, int readonly); int gayle_add_pcmcia_ide_unit (const TCHAR *path, int readonly); int gayle_modify_pcmcia_sram_unit (const TCHAR *path, int readonly, int insert); int gayle_modify_pcmcia_ide_unit (const TCHAR *path, int readonly, int insert); static void *ide_thread (void *null); static void initide (void); void gayle_free (void); void gayle_reset (int hardreset); uae_u8 *restore_gayle (uae_u8 *src); uae_u8 *save_gayle (int *len, uae_u8 *dstptr); uae_u8 *save_ide (int num, int *len, uae_u8 *dstptr); uae_u8 *restore_ide (uae_u8 *src);
0f67d52ecbbea1680b8473d4fb764cc783cc202ccb16a9551fb16ce55fb036bc
1,145
bioh4x
NeatFreq
lib/genometools-1.4.1/src/match/firstcodes.c
gt_firstcodes_process_part
static int gt_firstcodes_process_part(GtFirstcodesinfo *fci, const GtEncseq *encseq, GtReadmode readmode, unsigned int kmersize, unsigned int minmatchlength, const GtSuftabparts *suftabparts, unsigned int part, unsigned long maximumspace, #ifndef GT_THREADS_ENABLED GT_UNUSED #endif unsigned int threads, unsigned long suftabentries, bool withsuftabcheck, GtShortreadsortworkinfo **srswtab, GtFirstcodesintervalprocess itvprocess, GtFirstcodesintervalprocess_end itvprocess_end, void *itvprocessdatatab, GtLogger *logger, GtTimer *timer, GtError *err) { unsigned long spaceforbucketprocessing = 0; void *mapptr; bool haserr = false; if (timer != NULL) { gt_timer_show_progress(timer, "to insert suffixes into buckets",stdout); } fci->widthofpart = gt_suftabparts_widthofpart(part,suftabparts); gt_logger_log(logger,"compute part %u (%.2f%% of all candidates)",part, (double) 100.0 * fci->widthofpart/suftabentries); fci->currentminindex = gt_suftabparts_minindex(part,suftabparts); fci->currentmaxindex = gt_suftabparts_maxindex(part,suftabparts); if (fci->mappedallfirstcodes != NULL) { fci->allfirstcodes = (unsigned long *) gt_Sfxmappedrange_map(fci->mappedallfirstcodes, fci->currentminindex, fci->currentmaxindex); GT_FCI_ADDSPLITSPACE(fci->fcsl,"allfirstcodes", (size_t) gt_Sfxmappedrange_size_mapped( fci->mappedallfirstcodes, fci->currentminindex, fci->currentmaxindex)); } gt_assert(fci->mappedleftborder != NULL); mapptr = gt_Sfxmappedrange_map(fci->mappedleftborder, fci->currentminindex, fci->currentmaxindex); gt_firstcodes_leftborder_remap(&fci->tab,(uint32_t *) mapptr); GT_FCI_ADDSPLITSPACE(fci->fcsl,"leftborder", (size_t) gt_Sfxmappedrange_size_mapped( fci->mappedleftborder, fci->currentminindex, fci->currentmaxindex)); if (fci->mappedmarkprefix != NULL) { mapptr = gt_Sfxmappedrange_map(fci->mappedmarkprefix, fci->currentminindex, fci->currentmaxindex); gt_marksubstring_bits_map(fci->buf.markprefix, (GtBitsequence *) mapptr); GT_FCI_ADDSPLITSPACE(fci->fcsl,"markprefix", (size_t) gt_Sfxmappedrange_size_mapped( fci->mappedmarkprefix, fci->currentminindex, fci->currentmaxindex)); } gt_logger_log(logger,"maximum space for part %u: %.2f MB", part,GT_MEGABYTES(gt_firstcodes_spacelog_total(fci->fcsl))); fci->buf.currentmincode = gt_firstcodes_idx2code(fci,fci->currentminindex); fci->buf.currentmaxcode = gt_firstcodes_idx2code(fci,fci->currentmaxindex); gt_spmsuftab_partoffset(fci->spmsuftab, gt_suftabparts_offset(part,suftabparts)); gt_firstcodes_insert_runkmerscan(encseq, kmersize, minmatchlength, &fci->buf); gt_firstcodes_insertsuffixes_flush(fci); if (fci->mappedmarkprefix != NULL) { gt_Sfxmappedrange_unmap(fci->mappedmarkprefix); GT_FCI_SUBTRACTSPLITSPACE(fci->fcsl,"markprefix"); } if (fci->mappedallfirstcodes != NULL) { gt_Sfxmappedrange_unmap(fci->mappedallfirstcodes); GT_FCI_SUBTRACTSPLITSPACE(fci->fcsl,"allfirstcodes"); } if (part == gt_suftabparts_numofparts(suftabparts) - 1) { gt_firstcode_delete_before_end(fci); } if (timer != NULL) { gt_timer_show_progress(timer, "to sort buckets of suffixes",stdout); } if (maximumspace > 0) { if ((unsigned long) gt_firstcodes_spacelog_total(fci->fcsl) < maximumspace) { spaceforbucketprocessing = maximumspace - (unsigned long) gt_firstcodes_spacelog_total(fci->fcsl); gt_log_log("space left for sortremaining: %.2f", GT_MEGABYTES(spaceforbucketprocessing)); } else { spaceforbucketprocessing = 0; } } #ifdef GT_THREADS_ENABLED if (threads > 1U) { if (gt_firstcodes_thread_sortremaining( srswtab, encseq, readmode, fci->spmsuftab, fci->buf.snrp, &fci->tab, fci->currentminindex, fci->currentmaxindex, gt_suftabparts_widthofpart(part,suftabparts), gt_suftabparts_sumofwidth(part,suftabparts), spaceforbucketprocessing, (unsigned long) kmersize, itvprocess, itvprocess_end, itvprocessdatatab, withsuftabcheck, threads, logger, NULL) != 0) { haserr = true; } } else #endif { if (gt_firstcodes_sortremaining(srswtab[0], encseq, readmode, fci->spmsuftab, fci->buf.snrp, &fci->tab, fci->currentminindex, fci->currentmaxindex, gt_suftabparts_sumofwidth(part,suftabparts), spaceforbucketprocessing, (unsigned long) kmersize, itvprocess, itvprocess_end, itvprocessdatatab == NULL ? NULL : ((void **) itvprocessdatatab)[0], withsuftabcheck, err) != 0) { haserr = true; } } if (fci->mappedleftborder != NULL) { gt_Sfxmappedrange_unmap(fci->mappedleftborder); GT_FCI_SUBTRACTSPLITSPACE(fci->fcsl,"leftborder"); } return haserr ? -1 : 0; }
static double gt_firstcodes_round(double d); static void gt_firstcodes_accumulatecounts_flush(void *data); static void gt_firstcodes_insertsuffixes_flush(void *data); static void *gt_firstcodes_thread_caller_sortremaining(void *data); static void gt_firstcode_delete_before_end(GtFirstcodesinfo *fci); void gt_rungetencseqkmers(const GtEncseq *encseq,unsigned int kmersize);
4a3e2de965dfbb4c7cc60c5731e4f47354ba3d7e3e898962cbdec1d6eb0ee2ff
7,588
IxLabs
lguest64
drivers/ntb/ntb_transport.c
ntb_transport_max_size
unsigned int ntb_transport_max_size(struct ntb_transport_qp *qp) { return qp->tx_max_frame - sizeof(struct ntb_payload_header); }
static int ntb_match_bus(struct device *dev, struct device_driver *drv); static int ntb_client_probe(struct device *dev); static int ntb_client_remove(struct device *dev); static int ntb_bus_init(struct ntb_transport *nt); static void ntb_bus_remove(struct ntb_transport *nt); static void ntb_client_release(struct device *dev); void ntb_unregister_client_dev(char *device_name); int ntb_register_client_dev(char *device_name); int ntb_register_client(struct ntb_client *drv); void ntb_unregister_client(struct ntb_client *drv); static int ntb_set_mw(struct ntb_transport *nt, int num_mw, unsigned int size); static void ntb_qp_link_cleanup(struct work_struct *work); static void ntb_qp_link_down(struct ntb_transport_qp *qp); static void ntb_transport_link_cleanup(struct work_struct *work); static void ntb_transport_event_callback(void *data, enum ntb_hw_event event); static void ntb_transport_link_work(struct work_struct *work); static void ntb_qp_link_work(struct work_struct *work); int ntb_transport_init(struct pci_dev *pdev); void ntb_transport_free(void *transport); static int ntb_process_rxc(struct ntb_transport_qp *qp); static void ntb_transport_rx(unsigned long data); static void ntb_transport_rxc_db(void *data, int db_num); static void ntb_send_link_down(struct ntb_transport_qp *qp); void ntb_transport_free_queue(struct ntb_transport_qp *qp); void *ntb_transport_rx_remove(struct ntb_transport_qp *qp, unsigned int *len); void ntb_transport_link_up(struct ntb_transport_qp *qp); void ntb_transport_link_down(struct ntb_transport_qp *qp); bool ntb_transport_link_query(struct ntb_transport_qp *qp); unsigned char ntb_transport_qp_num(struct ntb_transport_qp *qp);
8883c9bfe476c3d38a3890bdf6527ee82d0c1e27d55cded779babb3ed2c21077
131
kosqx
better-bencode
better_bencode/_fast.c
PyMODINIT_FUNC PyInit__fast
PyMODINIT_FUNC PyInit__fast(void) { PyObject *module = PyModule_Create(&better_bencode_fast_module); return add_errors(module); }
static void benc_state_init(struct benc_state* bs); static void benc_state_free(struct benc_state* bs); static void benc_state_flush(struct benc_state* bs); static void benc_state_write_char(struct benc_state* bs, char c); static void benc_state_write_buffer(struct benc_state* bs, char* buff, Py_ssize_t size); static void benc_state_write_format(struct benc_state* bs, const Py_ssize_t limit, const void *format, ...); static int benc_state_read_char(struct benc_state* bs); static PyObject *benc_state_read_pystring(struct benc_state* bs, int size); static void benc_state_references_push(struct benc_state* bs, PyObject *obj); static void benc_state_references_pop(struct benc_state* bs); static int benc_state_references_contains(struct benc_state* bs, PyObject *obj); static int do_dump(struct benc_state *bs, PyObject* obj); static PyObject* dump(PyObject* self, PyObject* args, PyObject* kwargs); static PyObject* dumps(PyObject* self, PyObject* args, PyObject* kwargs); static PyObject *do_load(struct benc_state *bs); static PyObject* load(PyObject* self, PyObject* args); static PyObject* loads(PyObject* self, PyObject* args); static PyObject *add_errors(PyObject *module);
cc0c21ba13ba0c24f5dd2955a6f3746f37bdcda8679edfe764fbf159d97affc6
139
chneukirchen
musl-chris2
src/math/e_acosf.c
float acosf
float acosf(float x) { float z,p,q,r,w,s,c,df; int32_t hx,ix; GET_FLOAT_WORD(hx,x); ix = hx&0x7fffffff; if(ix==0x3f800000) { if(hx>0) return 0.0; else return pi+(float)2.0*pio2_lo; } else if(ix>0x3f800000) { return (x-x)/(x-x); } if(ix<0x3f000000) { if(ix<=0x23000000) return pio2_hi+pio2_lo; z = x*x; p = z*(pS0+z*(pS1+z*(pS2+z*(pS3+z*(pS4+z*pS5))))); q = one+z*(qS1+z*(qS2+z*(qS3+z*qS4))); r = p/q; return pio2_hi - (x - (pio2_lo-x*r)); } else if (hx<0) { z = (one+x)*(float)0.5; p = z*(pS0+z*(pS1+z*(pS2+z*(pS3+z*(pS4+z*pS5))))); q = one+z*(qS1+z*(qS2+z*(qS3+z*qS4))); s = sqrtf(z); r = p/q; w = r*s-pio2_lo; return pi - (float)2.0*(s+w); } else { int32_t idf; z = (one-x)*(float)0.5; s = sqrtf(z); df = s; GET_FLOAT_WORD(idf,df); SET_FLOAT_WORD(df,idf&0xfffff000); c = (z-df*df)/(s+df); p = z*(pS0+z*(pS1+z*(pS2+z*(pS3+z*(pS4+z*pS5))))); q = one+z*(qS1+z*(qS2+z*(qS3+z*qS4))); r = p/q; w = r*s+c; return (float)2.0*(df+w); } }
05c3712c8fd5767c8eee223cda8b481919b2c4408c6f42e15a87fbe992895843
1,445
pnlnum
pnl
src/linalg/vector_source.c
FUNCTION
oid FUNCTION(pnl_vect, map_vect_inplace)(TYPE(PnlVect) *lhs, const TYPE(PnlVect) *rhs, BASE(*f)(BASE, BASE)) { int i; CheckVectMatch(lhs, rhs); for (i = 0 ; i < lhs->size ; i++) { PNL_LET(lhs, i) = (*f)(PNL_GET(lhs, i), PNL_GET(rhs, i)); } }
oid FUNCTION(pnl_vect, init); YPE(PnlVect); YPE(PnlVect); YPE(PnlVect); nt FUNCTION(pnl_vect, eq); nt FUNCTION(pnl_vect, eq_all); YPE(PnlVect); YPE(PnlVect); YPE(PnlVect); YPE(PnlVect); YPE(PnlVect); oid FUNCTION(pnl_vect, extract_subvect_with_ind); oid FUNCTION(pnl_vect, extract_subvect); YPE(PnlVect); YPE(PnlVect); YPE(PnlVect); oid FUNCTION(pnl_vect, extract_submat); YPE(PnlVect); oid FUNCTION(pnl_vect, free); nt FUNCTION(pnl_vect, resize); nt FUNCTION(pnl_vect, resize_from_scalar); nt FUNCTION(pnl_vect, resize_from_ptr); oid FUNCTION(pnl_vect, set_all); oid FUNCTION(pnl_vect, set_zero); YPE(PnlVect); oid FUNCTION(pnl_vect, clone); oid FUNCTION(pnl_vect, set_subblock); oid FUNCTION(pnl_vect, fprint); oid FUNCTION(pnl_vect, print); oid FUNCTION(pnl_vect, fprint_asrow); oid FUNCTION(pnl_vect, print_asrow); oid FUNCTION(pnl_vect, fprint_nsp); oid FUNCTION(pnl_vect, print_nsp); oid FUNCTION(pnl_vect, map_inplace); tatic BASE FUNCTION(, _unary_minus); oid FUNCTION(pnl_vect, minus); tatic double FUNCTION(, _op_sqr_norm); tatic double FUNCTION(, _op_abs); oid FUNCTION(pnl_vect, plus_scalar); oid FUNCTION(pnl_vect, minus_scalar); oid FUNCTION(pnl_vect, mult_scalar); oid FUNCTION(pnl_vect, div_scalar); oid FUNCTION(pnl_vect, map); nt FUNCTION(pnl_vect, find); oid FUNCTION(pnl_vect, map_vect); oid FUNCTION(pnl_vect, plus_vect); oid FUNCTION(pnl_vect, minus_vect); oid FUNCTION(pnl_vect, inv_term); oid FUNCTION(pnl_vect, div_vect_term); oid FUNCTION(pnl_vect, mult_vect_term); ASE FUNCTION(pnl_vect, sum); oid FUNCTION(pnl_vect, cumsum); ASE FUNCTION(pnl_vect, scalar_prod); ASE FUNCTION(pnl_vect, prod); oid FUNCTION(pnl_vect, cumprod); oid FUNCTION(pnl_vect, swap_elements); oid FUNCTION(pnl_vect, reverse); nt FUNCTION(pnl_vect, less); oid FUNCTION(pnl_array, min_index); oid FUNCTION(pnl_array, max_index); oid FUNCTION(pnl_array, minmax_index); ASE FUNCTION(pnl_vect, max); ASE FUNCTION(pnl_vect, min); oid FUNCTION(pnl_vect, minmax); oid FUNCTION(pnl_vect, max_index); oid FUNCTION(pnl_vect, min_index); oid FUNCTION(pnl_vect, minmax_index); tatic int FUNCTION(__pnl, cmp_i); tatic int FUNCTION(__pnl, cmp_d); tatic void FUNCTION(pnl_vect, qsort_aux); oid FUNCTION(pnl_vect, qsort); oid FUNCTION(pnl_vect, qsort_index); nt FUNCTION(pnl_vect,isequal); nt FUNCTION(pnl_vect,isequal_abs); nt FUNCTION(pnl_vect,isequal_rel); oid FUNCTION(pnl_vect, axpby); tatic double FUNCTION(pnl_vect, norm_x); ouble FUNCTION(pnl_vect, norm_two); ouble FUNCTION(pnl_vect, norm_one); ouble FUNCTION(pnl_vect, norm_infty); YPE(PnlVect); YPE(PnlVect); YPE(PnlVect);
999030c35933f5f0159165cdf027eeac468002b320e652bb35cd1a088a783d95
263
fedecamarahalac
fd_lib
src/frand.c
frand_bang
static void frand_bang(t_frand *x) { double t_r, t_a, t_b; t_a = x->a; t_b = x->b; unsigned long int next = x->next; next = next * 1103515245 + 12345; t_r = t_a + ((next/65536) % 32768) * (t_b-t_a) / 32767; x->next = next; x->result = t_r; outlet_float(x->x_outlet0, x->result); }
static void frand_set(t_frand *x, t_symbol *selector, int argcount, t_atom *argvec); static void frand_reset(t_frand *x, t_symbol *selector, t_floatarg f, t_floatarg g); static void frand_seed(t_frand *x, t_floatarg f); static void *frand_new(t_floatarg f, t_floatarg g); void frand_setup(void);
435104c4c65ac440e5d78b4d6f0bd222ebb7890c1d3a6d1d5791fe1a42804b8e
301
autosportlabs
uubt
src/STM32F4-Discovery_FW_V1.0.1/Libraries/STM32_USB_OTG_Driver/src/usb_hcd_int.c
USB_OTG_USBH_handle_port_ISR
static uint32_t USB_OTG_USBH_handle_port_ISR (USB_OTG_CORE_HANDLE *pdev) { USB_OTG_HPRT0_TypeDef hprt0; USB_OTG_HPRT0_TypeDef hprt0_dup; USB_OTG_HCFG_TypeDef hcfg; uint32_t do_reset = 0; uint32_t retval = 0; hcfg.d32 = 0; hprt0.d32 = 0; hprt0_dup.d32 = 0; hprt0.d32 = USB_OTG_READ_REG32(pdev->regs.HPRT0); hprt0_dup.d32 = USB_OTG_READ_REG32(pdev->regs.HPRT0); hprt0_dup.b.prtena = 0; hprt0_dup.b.prtconndet = 0; hprt0_dup.b.prtenchng = 0; hprt0_dup.b.prtovrcurrchng = 0; if (hprt0.b.prtconndet) { pdev->host.port_cb->Connect(pdev); hprt0_dup.b.prtconndet = 1; do_reset = 1; retval |= 1; } if (hprt0.b.prtenchng) { hprt0_dup.b.prtenchng = 1; if (hprt0.b.prtena == 1) { pdev->host.ConnSts = 1; if ((hprt0.b.prtspd == HPRT0_PRTSPD_LOW_SPEED) || (hprt0.b.prtspd == HPRT0_PRTSPD_FULL_SPEED)) { hcfg.d32 = USB_OTG_READ_REG32(&pdev->regs.HREGS->HCFG); if (hprt0.b.prtspd == HPRT0_PRTSPD_LOW_SPEED) { USB_OTG_WRITE_REG32(&pdev->regs.HREGS->HFIR, 6000 ); if (hcfg.b.fslspclksel != HCFG_6_MHZ) { if(pdev->cfg.coreID == USB_OTG_FS_CORE_ID) { USB_OTG_InitFSLSPClkSel(pdev ,HCFG_6_MHZ ); } do_reset = 1; } } else { USB_OTG_WRITE_REG32(&pdev->regs.HREGS->HFIR, 48000 ); if (hcfg.b.fslspclksel != HCFG_48_MHZ) { USB_OTG_InitFSLSPClkSel(pdev ,HCFG_48_MHZ ); do_reset = 1; } } } else { do_reset = 1; } } } if (hprt0.b.prtovrcurrchng) { hprt0_dup.b.prtovrcurrchng = 1; retval |= 1; } if (do_reset) { USB_OTG_ResetPort_I(pdev); } USB_OTG_WRITE_REG32(pdev->regs.HPRT0, hprt0_dup.d32); return retval; }
uint32_t USBH_OTG_ISR_Handler (USB_OTG_CORE_HANDLE *pdev); static uint32_t USB_OTG_USBH_handle_hc_ISR (USB_OTG_CORE_HANDLE *pdev); static uint32_t USB_OTG_USBH_handle_sof_ISR (USB_OTG_CORE_HANDLE *pdev); static uint32_t USB_OTG_USBH_handle_Disconnect_ISR (USB_OTG_CORE_HANDLE *pdev); static uint32_t USB_OTG_USBH_handle_nptxfempty_ISR (USB_OTG_CORE_HANDLE *pdev); static uint32_t USB_OTG_USBH_handle_ptxfempty_ISR (USB_OTG_CORE_HANDLE *pdev); uint32_t USB_OTG_USBH_handle_hc_n_Out_ISR (USB_OTG_CORE_HANDLE *pdev , uint32_t num); uint32_t USB_OTG_USBH_handle_hc_n_In_ISR (USB_OTG_CORE_HANDLE *pdev , uint32_t num); static uint32_t USB_OTG_USBH_handle_rx_qlvl_ISR (USB_OTG_CORE_HANDLE *pdev); static uint32_t USB_OTG_USBH_handle_IncompletePeriodicXfer_ISR (USB_OTG_CORE_HANDLE *pdev);
d8b9c4b148a9b0fc4d387d5970087db94467aac201e4e95fbdf48f616424bd0e
2,077
Gigers
data-struct
Aulas/aula07/teacher_code/minimo.c
Insere
void Insere(int y, celula *p){ celula *nova; nova = malloc(sizeof(celula)); nova->conteudo = y; nova->seg = p->seg; p->seg = nova; }
void Imprima (celula *lst); int randint(int a, int b); celula *Minimo(celula *lst); int main(void);
813d43c234f1ec8341cc0083879cf0d0f03f213880e7cdd1cf9a3d8e3392bcd7
153
CyanogenMod
android_kernel_motorola_apq8084
drivers/staging/qcacld-2.0/CORE/HDD/src/wlan_hdd_ipa.c
hdd_ipa_cleanup
VOS_STATUS hdd_ipa_cleanup(hdd_context_t *hdd_ctx) { struct hdd_ipa_priv *hdd_ipa = hdd_ctx->hdd_ipa; int i; if (!hdd_ipa_is_enabled(hdd_ctx)) return VOS_STATUS_SUCCESS; for (i = 0; i < HDD_IPA_MAX_IFACE; i++) { iface_context = &hdd_ipa->iface_context[i]; vos_spin_lock_destroy(&iface_context->interface_lock); } hdd_ipa_debugfs_remove(hdd_ipa); #ifndef HDD_IPA_USE_IPA_RM_TIMER del_timer(&hdd_ipa->rm_timer); #endif if (hdd_ipa->pending_desc_cnt != 0) { msleep(5); HDD_IPA_LOG(VOS_TRACE_LEVEL_FATAL, "IPA Pending"); } hdd_ipa_rx_pipe_desc_free(); hdd_ipa_teardown_sys_pipe(hdd_ipa); hdd_ipa_destory_rm_resource(hdd_ipa); adf_os_mem_free(hdd_ipa); hdd_ctx->hdd_ipa = NULL; return VOS_STATUS_SUCCESS; }
bool hdd_ipa_is_enabled(hdd_context_t *hdd_ctx); static inline bool hdd_ipa_is_pre_filter_enabled(struct hdd_ipa_priv *hdd_ipa); static inline bool hdd_ipa_is_ipv6_enabled(struct hdd_ipa_priv *hdd_ipa); static inline bool hdd_ipa_is_rm_enabled(struct hdd_ipa_priv *hdd_ipa); static inline struct ipa_tx_data_desc *hdd_ipa_get_desc_from_freeq(void); static bool hdd_ipa_can_send_to_ipa(struct hdd_ipa_priv *hdd_ipa, void *data); static int hdd_ipa_rm_request(struct hdd_ipa_priv *hdd_ipa); static int hdd_ipa_rm_release(struct hdd_ipa_priv *hdd_ipa); static int hdd_ipa_setup_rm(struct hdd_ipa_priv *hdd_ipa); static void hdd_ipa_destory_rm_resource(struct hdd_ipa_priv *hdd_ipa); static void hdd_ipa_rm_timer_handler(unsigned long ptr); static void hdd_ipa_send_skb_to_network(adf_nbuf_t skb, hdd_adapter_t *adapter); static void hdd_ipa_process_evt(int evt, void *priv); static void hdd_ipa_nbuf_cb(adf_nbuf_t skb); static int hdd_ipa_setup_sys_pipe(struct hdd_ipa_priv *hdd_ipa); static void hdd_ipa_teardown_sys_pipe(struct hdd_ipa_priv *hdd_ipa); static void hdd_remove_ipa_header(char *name); static void hdd_ipa_clean_hdr(hdd_adapter_t *adapter); static void hdd_ipa_msg_free_fn(void *buff, uint32_t len, uint32_t type); static void hdd_ipa_rx_pipe_desc_free(void); static int hdd_ipa_rx_pipe_desc_alloc(void); static int hdd_ipa_debugfs_init(struct hdd_ipa_priv *hdd_ipa); static void hdd_ipa_debugfs_remove(struct hdd_ipa_priv *hdd_ipa); VOS_STATUS hdd_ipa_init(hdd_context_t *hdd_ctx);
3b6082d4b8a4f67a964bfb767a3a99d27754848255cccb8c8e76ee7d22f6ec7a
736