Searched refs:ctx (Results 1 - 25 of 114) sorted by relevance

12345

/haiku/src/libs/compat/openbsd_wlan/crypto/
H A Darc4.c24 u_int8_t t = ctx->state[x]; \
25 ctx->state[x] = ctx->state[y]; \
26 ctx->state[y] = t; \
30 rc4_keysetup(struct rc4_ctx *ctx, u_char *key, u_int32_t klen) argument
37 ctx->state[i] = i;
39 y = (key[x] + ctx->state[i] + y) & (RC4STATE - 1);
43 ctx->x = ctx->y = 0;
47 rc4_crypt(struct rc4_ctx *ctx, u_cha argument
62 rc4_getbytes(struct rc4_ctx *ctx, u_char *dst, u_int32_t len) argument
76 rc4_skip(struct rc4_ctx *ctx, u_int32_t len) argument
[all...]
H A Dhmac.c33 HMAC_MD5_Init(HMAC_MD5_CTX *ctx, const u_int8_t *key, u_int key_len) argument
39 MD5Init(&ctx->ctx);
40 MD5Update(&ctx->ctx, key, key_len);
41 MD5Final(ctx->key, &ctx->ctx);
42 ctx->key_len = MD5_DIGEST_LENGTH;
44 bcopy(key, ctx
60 HMAC_MD5_Update(HMAC_MD5_CTX *ctx, const u_int8_t *data, u_int len) argument
66 HMAC_MD5_Final(u_int8_t digest[MD5_DIGEST_LENGTH], HMAC_MD5_CTX *ctx) argument
87 HMAC_SHA1_Init(HMAC_SHA1_CTX *ctx, const u_int8_t *key, u_int key_len) argument
114 HMAC_SHA1_Update(HMAC_SHA1_CTX *ctx, const u_int8_t *data, u_int len) argument
120 HMAC_SHA1_Final(u_int8_t digest[SHA1_DIGEST_LENGTH], HMAC_SHA1_CTX *ctx) argument
141 HMAC_SHA256_Init(HMAC_SHA256_CTX *ctx, const u_int8_t *key, u_int key_len) argument
168 HMAC_SHA256_Update(HMAC_SHA256_CTX *ctx, const u_int8_t *data, u_int len) argument
174 HMAC_SHA256_Final(u_int8_t digest[SHA256_DIGEST_LENGTH], HMAC_SHA256_CTX *ctx) argument
[all...]
H A Dcmac.c44 AES_CMAC_Init(AES_CMAC_CTX *ctx) argument
46 memset(ctx->X, 0, sizeof ctx->X);
47 ctx->M_n = 0;
51 AES_CMAC_SetKey(AES_CMAC_CTX *ctx, const u_int8_t key[AES_CMAC_KEY_LENGTH]) argument
53 AES_Setkey(&ctx->aesctx, key, 16);
57 AES_CMAC_Update(AES_CMAC_CTX *ctx, const u_int8_t *data, u_int len) argument
61 if (ctx->M_n > 0) {
62 mlen = MIN(16 - ctx->M_n, len);
63 memcpy(ctx
84 AES_CMAC_Final(u_int8_t digest[AES_CMAC_DIGEST_LENGTH], AES_CMAC_CTX *ctx) argument
[all...]
H A Dmichael.c57 michael_init(MICHAEL_CTX *ctx) argument
59 bzero(ctx, sizeof(MICHAEL_CTX));
63 michael_update(MICHAEL_CTX *ctx, const u_int8_t *data, u_int len) argument
68 ctx->michael_state |= data[i] << (ctx->michael_count << 3);
69 ctx->michael_count++;
71 if (ctx->michael_count >= MICHAEL_RAW_BLOCK_LENGTH) {
72 ctx->michael_l ^= ctx->michael_state;
73 MICHAEL_BLOCK(ctx
80 michael_final(u_int8_t digest[MICHAEL_DIGEST_LENGTH], MICHAEL_CTX *ctx) argument
92 michael_key(const u_int8_t *key, MICHAEL_CTX *ctx) argument
[all...]
H A Dkey_wrap.c33 aes_key_wrap_set_key(aes_key_wrap_ctx *ctx, const u_int8_t *K, size_t K_len) argument
35 AES_Setkey(&ctx->ctx, K, K_len);
39 aes_key_wrap_set_key_wrap_only(aes_key_wrap_ctx *ctx, const u_int8_t *K, argument
42 AES_Setkey(&ctx->ctx, K, K_len);
46 aes_key_wrap(aes_key_wrap_ctx *ctx, const u_int8_t *P, size_t n, u_int8_t *C) argument
64 AES_Encrypt(&ctx->ctx, (caddr_t)B, (caddr_t)B);
79 aes_key_unwrap(aes_key_wrap_ctx *ctx, cons argument
[all...]
/haiku/src/tests/system/network/tcptester/
H A Dtcptester.cpp33 static int process_command(context *ctx);
36 number(context *ctx) argument
40 while (isdigit(ctx->buffer[ctx->index])) {
42 result += ctx->buffer[ctx->index] - '0';
43 ctx->index++;
51 value(context *ctx) argument
53 if (ctx->buffer[ctx
72 repeat(context *ctx) argument
91 send_packet(context *ctx, size_t bytes) argument
112 process_command(context *ctx) argument
153 read_command(context *ctx) argument
175 context ctx = { *(int *)data, 0 }; local
[all...]
/haiku/src/add-ons/accelerants/radeon_hd/atombios/
H A Datom-bits.h32 #define U8(ptr) get_u8(ctx->ctx->bios,(ptr))
33 #define CU8(ptr) get_u8(ctx->bios,(ptr))
38 #define U16(ptr) get_u16(ctx->ctx->bios,(ptr))
39 #define CU16(ptr) get_u16(ctx->bios,(ptr))
44 #define U32(ptr) get_u32(ctx->ctx->bios,(ptr))
45 #define CU32(ptr) get_u32(ctx->bios,(ptr))
46 #define CSTR(ptr) (((char *)(ctx
[all...]
H A Datom.cpp75 atom_context *ctx; member in struct:__anon424
87 status_t atom_execute_table_locked(atom_context *ctx,
89 status_t atom_execute_table(atom_context *ctx, int index, uint32 *params);
110 atom_iio_execute(atom_context *ctx, int base, uint32 index, uint32 data) argument
119 temp = ctx->card->ioreg_read(CU16(base + 1));
123 (void)ctx->card->reg_read(CU16(base + 1));
124 ctx->card->ioreg_write(CU16(base + 1), temp);
149 temp |= ((ctx->io_attr >> CU8(base + 2))
163 atom_get_src_int(atom_exec_context *ctx, uint8 attr, int *ptr, argument
167 atom_context *gctx = ctx
299 atom_skip_src_int(atom_exec_context *ctx, uint8 attr, int *ptr) argument
337 atom_get_src(atom_exec_context *ctx, uint8 attr, int *ptr) argument
344 atom_get_src_direct(atom_exec_context *ctx, uint8_t align, int *ptr) argument
372 atom_get_dst(atom_exec_context *ctx, int arg, uint8 attr, int *ptr, uint32 *saved, int print) argument
381 atom_skip_dst(atom_exec_context *ctx, int arg, uint8 attr, int *ptr) argument
389 atom_put_dst(atom_exec_context *ctx, int arg, uint8 attr, int *ptr, uint32 val, uint32 saved) argument
496 atom_op_add(atom_exec_context *ctx, int *ptr, int arg) argument
513 atom_op_and(atom_exec_context *ctx, int *ptr, int arg) argument
530 atom_op_beep(atom_exec_context *ctx, int *ptr, int arg) argument
537 atom_op_calltable(atom_exec_context *ctx, int *ptr, int arg) argument
559 atom_op_clear(atom_exec_context *ctx, int *ptr, int arg) argument
573 atom_op_compare(atom_exec_context *ctx, int *ptr, int arg) argument
587 atom_op_delay(atom_exec_context *ctx, int *ptr, int arg) argument
603 atom_op_div(atom_exec_context *ctx, int *ptr, int arg) argument
625 atom_op_div32(atom_exec_context *ctx, int *ptr, int arg) argument
653 atom_op_eot(atom_exec_context *ctx, int *ptr, int arg) argument
660 atom_op_jump(atom_exec_context *ctx, int *ptr, int arg) argument
712 atom_op_mask(atom_exec_context *ctx, int *ptr, int arg) argument
729 atom_op_move(atom_exec_context *ctx, int *ptr, int arg) argument
748 atom_op_mul(atom_exec_context *ctx, int *ptr, int arg) argument
761 atom_op_mul32(atom_exec_context *ctx, int *ptr, int arg) argument
782 atom_op_nop(atom_exec_context *ctx, int *ptr, int arg) argument
789 atom_op_or(atom_exec_context *ctx, int *ptr, int arg) argument
806 atom_op_postcard(atom_exec_context *ctx, int *ptr, int arg) argument
815 atom_op_repeat(atom_exec_context *ctx, int *ptr, int arg) argument
822 atom_op_restorereg(atom_exec_context *ctx, int *ptr, int arg) argument
829 atom_op_savereg(atom_exec_context *ctx, int *ptr, int arg) argument
836 atom_op_setdatablock(atom_exec_context *ctx, int *ptr, int arg) argument
851 atom_op_setfbbase(atom_exec_context *ctx, int *ptr, int arg) argument
860 atom_op_setport(atom_exec_context *ctx, int *ptr, int arg) argument
890 atom_op_setregblock(atom_exec_context *ctx, int *ptr, int arg) argument
897 atom_op_shift_left(atom_exec_context *ctx, int *ptr, int arg) argument
915 atom_op_shift_right(atom_exec_context *ctx, int *ptr, int arg) argument
933 atom_op_shl(atom_exec_context *ctx, int *ptr, int arg) argument
954 atom_op_shr(atom_exec_context *ctx, int *ptr, int arg) argument
976 atom_op_sub(atom_exec_context *ctx, int *ptr, int arg) argument
993 atom_op_switch(atom_exec_context *ctx, int *ptr, int arg) argument
1019 atom_op_test(atom_exec_context *ctx, int *ptr, int arg) argument
1033 atom_op_xor(atom_exec_context *ctx, int *ptr, int arg) argument
1050 atom_op_debug(atom_exec_context *ctx, int *ptr, int arg) argument
1060 atom_op_processds(atom_exec_context *ctx, int *ptr, int arg) argument
1203 atom_execute_table_locked(atom_context *ctx, int index, uint32 * params) argument
1269 atom_execute_table(atom_context *ctx, int index, uint32 *params) argument
1308 atom_index_iio(atom_context *ctx, int base) argument
1324 atom_context *ctx = (atom_context*)malloc(sizeof(atom_context)); local
1380 atom_asic_init(atom_context *ctx) argument
1399 atom_destroy(atom_context *ctx) argument
1412 atom_parse_data_header(atom_context *ctx, int index, uint16 *size, uint8 *frev, uint8 *crev, uint16 *data_start) argument
1434 atom_parse_cmd_header(atom_context *ctx, int index, uint8 * frev, uint8 * crev) argument
1453 atom_allocate_fb_scratch(atom_context *ctx) argument
[all...]
/haiku/src/libs/compat/freebsd_wlan/crypto/rijndael/
H A Drijndael-api.c40 rijndael_set_key(rijndael_ctx *ctx, const u_char *key, int bits) argument
43 ctx->Nr = rijndaelKeySetupEnc(ctx->ek, key, bits);
44 rijndaelKeySetupDec(ctx->dk, key, bits);
48 rijndael_decrypt(const rijndael_ctx *ctx, const u_char *src, u_char *dst) argument
51 rijndaelDecrypt(ctx->dk, ctx->Nr, src, dst);
55 rijndael_encrypt(const rijndael_ctx *ctx, const u_char *src, u_char *dst) argument
58 rijndaelEncrypt(ctx->ek, ctx
[all...]
/haiku/src/add-ons/kernel/file_systems/userlandfs/server/fuse/
H A Dfuse_opt.c97 static int next_arg(struct fuse_opt_context *ctx, const char *opt) argument
99 if (ctx->argctr + 1 >= ctx->argc) {
103 ctx->argctr++;
107 static int add_arg(struct fuse_opt_context *ctx, const char *arg) argument
109 return fuse_opt_add_arg(&ctx->outargs, arg);
132 static int add_opt(struct fuse_opt_context *ctx, const char *opt) argument
134 return fuse_opt_add_opt(&ctx->opts, opt);
137 static int call_proc(struct fuse_opt_context *ctx, const char *arg, int key, argument
143 if (key != FUSE_OPT_KEY_KEEP && ctx
209 process_opt(struct fuse_opt_context *ctx, const struct fuse_opt *opt, unsigned sep, const char *arg, int iso) argument
231 process_opt_sep_arg(struct fuse_opt_context *ctx, const struct fuse_opt *opt, unsigned sep, const char *arg, int iso) argument
255 process_gopt(struct fuse_opt_context *ctx, const char *arg, int iso) argument
275 process_real_option_group(struct fuse_opt_context *ctx, char *opts) argument
293 process_option_group(struct fuse_opt_context *ctx, const char *opts) argument
311 process_one(struct fuse_opt_context *ctx, const char *arg) argument
334 opt_parse(struct fuse_opt_context *ctx) argument
362 struct fuse_opt_context ctx = { local
[all...]
/haiku/headers/private/shared/
H A Dmd5.h40 extern void MD5_Init(MD5_CTX *ctx);
41 extern void MD5_Update(MD5_CTX *ctx, const void *data, unsigned long size);
42 extern void MD5_Final(unsigned char *result, MD5_CTX *ctx);
/haiku/src/kits/shared/
H A Dmd5.cpp79 (ctx->block[(n)] = \
85 (ctx->block[(n)])
95 static const void *body(MD5_CTX *ctx, const void *data, unsigned long size) argument
103 a = ctx->a;
104 b = ctx->b;
105 c = ctx->c;
106 d = ctx->d;
194 ctx->a = a;
195 ctx->b = b;
196 ctx
202 MD5_Init(MD5_CTX *ctx) argument
213 MD5_Update(MD5_CTX *ctx, const void *data, unsigned long size) argument
247 MD5_Final(unsigned char *result, MD5_CTX *ctx) argument
[all...]
/haiku/src/add-ons/kernel/file_systems/ntfs/
H A Dlowntfs.h27 int* ntfs_haiku_get_close_state(struct lowntfs_context *ctx, u64 ino);
28 void ntfs_haiku_put_close_state(struct lowntfs_context *ctx, u64 ino, u64 ghost);
38 u64 ntfs_fuse_inode_lookup(struct lowntfs_context *ctx, u64 parent, const char* name);
40 int ntfs_fuse_getstat(struct lowntfs_context *ctx, struct SECURITY_CONTEXT *scx,
43 int ntfs_fuse_readlink(struct lowntfs_context *ctx, u64 ino, void* buffer, size_t* bufferSize);
46 int ntfs_fuse_write(struct lowntfs_context* ctx, ntfs_inode* ni, const char *buf,
49 int ntfs_fuse_create(struct lowntfs_context *ctx, ino_t parent, const char *name,
61 int ntfs_fuse_rm(struct lowntfs_context *ctx, ino_t parent, const char *name,
64 int ntfs_fuse_release(struct lowntfs_context *ctx, ino_t parent, ino_t ino, int state, u64 ghost);
66 int ntfs_fuse_rename(struct lowntfs_context *ctx, ino_
[all...]
/haiku/src/add-ons/kernel/file_systems/ntfs/utils/
H A Dutils.c450 * @ctx: A search context, created using ntfs_get_attr_search_ctx
461 ATTR_RECORD * find_attribute(const ATTR_TYPES type, ntfs_attr_search_ctx *ctx) argument
463 if (!ctx) {
468 if (ntfs_attr_lookup(type, NULL, 0, 0, 0, NULL, 0, ctx) != 0) {
474 return ctx->attr;
493 ntfs_attr_search_ctx *ctx; local
501 ctx = ntfs_attr_get_search_ctx(NULL, mft);
502 if (!ctx) {
507 rec = find_attribute(type, ctx);
508 ntfs_attr_put_search_ctx(ctx);
534 ntfs_attr_search_ctx *ctx; local
978 struct mft_search_ctx *ctx; local
996 mft_put_search_ctx(struct mft_search_ctx *ctx) argument
1008 mft_next_record(struct mft_search_ctx *ctx) argument
[all...]
/haiku/src/libs/compat/freebsd_iflib/
H A Diflib.c162 static void iflib_tqg_detach(if_ctx_t ctx);
237 iflib_get_softc(if_ctx_t ctx) argument
240 return (ctx->ifc_softc);
244 iflib_get_dev(if_ctx_t ctx) argument
247 return (ctx->ifc_dev);
251 iflib_get_ifp(if_ctx_t ctx) argument
254 return (ctx->ifc_ifp);
258 iflib_get_media(if_ctx_t ctx) argument
261 return (ctx->ifc_mediap);
265 iflib_get_flags(if_ctx_t ctx) argument
271 iflib_set_mac(if_ctx_t ctx, uint8_t mac[ETHER_ADDR_LEN]) argument
278 iflib_get_softc_ctx(if_ctx_t ctx) argument
285 iflib_get_sctx(if_ctx_t ctx) argument
574 iflib_set_detach(if_ctx_t ctx) argument
772 iflib_num_rx_descs(if_ctx_t ctx) argument
782 iflib_num_tx_descs(if_ctx_t ctx) argument
835 if_ctx_t ctx = ifp->if_softc; local
871 if_ctx_t ctx = ifp->if_softc; local
895 if_ctx_t ctx = rxq->ifr_ctx; local
1034 if_ctx_t ctx = ifp->if_softc; local
1205 if_ctx_t ctx = ifp->if_softc; local
1324 if_ctx_t ctx = na->ifp->if_softc; local
1336 iflib_netmap_attach(if_ctx_t ctx) argument
1360 iflib_netmap_txq_init(if_ctx_t ctx, iflib_txq_t txq) argument
1384 iflib_netmap_rxq_init(if_ctx_t ctx, iflib_rxq_t rxq) argument
1402 if_ctx_t ctx = txq->ift_ctx; local
1465 iflib_dma_alloc_align(if_ctx_t ctx, int size, int align, iflib_dma_info_t dma, int mapflags) argument
1522 iflib_dma_alloc(if_ctx_t ctx, int size, iflib_dma_info_t dma, int mapflags) argument
1532 iflib_dma_alloc_multi(if_ctx_t ctx, int *sizes, iflib_dma_info_t *dmalist, int mapflags, int count) argument
1599 if_ctx_t ctx; local
1670 _iflib_irq_alloc(if_ctx_t ctx, if_irq_t irq, int rid, driver_filter_t filter, driver_intr_t handler, void *arg, const char *name) argument
1718 if_ctx_t ctx = txq->ift_ctx; local
1829 iflib_txsd_destroy(if_ctx_t ctx, iflib_txq_t txq, int i) argument
1854 if_ctx_t ctx = txq->ift_ctx; local
1892 iflib_txsd_free(if_ctx_t ctx, iflib_txq_t txq, int i) argument
1919 if_ctx_t ctx = txq->ift_ctx; local
1959 if_ctx_t ctx = rxq->ifr_ctx; local
2078 iflib_fl_refill(if_ctx_t ctx, iflib_fl_t fl, int count) argument
2224 iflib_fl_refill_all(if_ctx_t ctx, iflib_fl_t fl) argument
2251 iflib_in_detach(if_ctx_t ctx) argument
2324 if_ctx_t ctx = rxq->ifr_ctx; local
2430 if_ctx_t ctx = txq->ift_ctx; local
2490 iflib_calc_rx_mbuf_sz(if_ctx_t ctx) argument
2503 iflib_get_rx_mbuf_sz(if_ctx_t ctx) argument
2510 iflib_init_locked(if_ctx_t ctx) argument
2593 if_ctx_t ctx = if_getsoftc(ifp); local
2606 if_ctx_t ctx = if_getsoftc(ifp); local
2615 iflib_stop(if_ctx_t ctx) argument
2981 if_ctx_t ctx = rxq->ifr_ctx; local
3199 if_ctx_t ctx = txq->ift_ctx; local
3509 if_ctx_t ctx; local
3775 if_ctx_t ctx = txq->ift_ctx; local
3834 if_ctx_t ctx = txq->ift_ctx; local
3848 if_ctx_t ctx = txq->ift_ctx; local
4003 if_ctx_t ctx = txq->ift_ctx; local
4043 if_ctx_t ctx = rxq->ifr_ctx; local
4094 if_ctx_t ctx = context; local
4143 if_ctx_t ctx = context; local
4159 if_ctx_t ctx; local
4178 iflib_if_init_locked(if_ctx_t ctx) argument
4187 if_ctx_t ctx = arg; local
4197 if_ctx_t ctx = if_getsoftc(ifp); local
4330 if_ctx_t ctx = if_getsoftc(ifp); local
4359 if_ctx_t ctx = if_getsoftc(ifp); local
4542 if_ctx_t ctx = if_getsoftc(ifp); local
4556 if_ctx_t ctx = if_getsoftc(ifp); local
4581 if_ctx_t ctx = if_getsoftc(ifp); local
4603 if_ctx_t ctx = arg; local
4676 iflib_reset_qvalues(if_ctx_t ctx) argument
4740 iflib_add_pfil(if_ctx_t ctx) argument
4761 iflib_rem_pfil(if_ctx_t ctx) argument
4784 cpuid_advance(if_ctx_t ctx, unsigned int cpuid, unsigned int n) argument
4918 get_cpuid_for_queue(if_ctx_t ctx, unsigned int base_cpuid, unsigned int qid, bool is_tx) argument
4971 get_ctx_core_offset(if_ctx_t ctx) argument
5083 unref_ctx_core_offset(if_ctx_t ctx) argument
5107 if_ctx_t ctx; local
5370 if_ctx_t ctx; local
5569 iflib_pseudo_deregister(if_ctx_t ctx) argument
5602 if_ctx_t ctx; local
5614 iflib_device_deregister(if_ctx_t ctx) argument
5674 iflib_tqg_detach(if_ctx_t ctx) argument
5703 iflib_free_intr_mem(if_ctx_t ctx) argument
5722 if_ctx_t ctx = device_get_softc(dev); local
5730 if_ctx_t ctx = device_get_softc(dev); local
5741 if_ctx_t ctx = device_get_softc(dev); local
5753 if_ctx_t ctx = device_get_softc(dev); local
5770 if_ctx_t ctx = device_get_softc(dev); local
5782 if_ctx_t ctx = device_get_softc(dev); local
5793 if_ctx_t ctx = device_get_softc(dev); local
5892 iflib_register(if_ctx_t ctx) argument
5966 iflib_unregister_vlan_handlers(if_ctx_t ctx) argument
5981 iflib_deregister(if_ctx_t ctx) argument
6006 iflib_queues_alloc(if_ctx_t ctx) argument
6229 iflib_tx_structures_setup(if_ctx_t ctx) argument
6241 iflib_tx_structures_free(if_ctx_t ctx) argument
6262 iflib_rx_structures_setup(if_ctx_t ctx) argument
6308 iflib_rx_structures_free(if_ctx_t ctx) argument
6328 iflib_qset_structures_setup(if_ctx_t ctx) argument
6348 iflib_irq_alloc(if_ctx_t ctx, if_irq_t irq, int rid, driver_filter_t filter, void *filter_arg, driver_intr_t handler, void *arg, const char *name) argument
6357 iflib_irq_set_affinity(if_ctx_t ctx, if_irq_t irq, iflib_intr_type_t type, int qid, struct grouptask *gtask, struct taskqgroup *tqg, void *uniq, const char *name) argument
6382 iflib_irq_alloc_generic(if_ctx_t ctx, if_irq_t irq, int rid, iflib_intr_type_t type, driver_filter_t *filter, void *filter_arg, int qid, const char *name) argument
6470 iflib_softirq_alloc_generic(if_ctx_t ctx, if_irq_t irq, iflib_intr_type_t type, void *arg, int qid, const char *name) argument
6513 iflib_irq_free(if_ctx_t ctx, if_irq_t irq) argument
6529 iflib_legacy_setup(if_ctx_t ctx, driver_filter_t filter, void *filter_arg, int *rid, const char *name) argument
6573 iflib_led_create(if_ctx_t ctx) argument
6581 iflib_tx_intr_deferred(if_ctx_t ctx, int txqid) argument
6588 iflib_rx_intr_deferred(if_ctx_t ctx, int rxqid) argument
6595 iflib_admin_intr_deferred(if_ctx_t ctx) argument
6603 iflib_iov_intr_deferred(if_ctx_t ctx) argument
6618 iflib_config_gtask_init(void *ctx, struct grouptask *gtask, gtask_fn_t *fn, const char *name) argument
6635 iflib_link_state_change(if_ctx_t ctx, int link_state, uint64_t baudrate) argument
6656 iflib_tx_credits_update(if_ctx_t ctx, iflib_txq_t txq) argument
6678 iflib_rxd_avail(if_ctx_t ctx, iflib_rxq_t rxq, qidx_t cidx, qidx_t budget) argument
6691 iflib_add_int_delay_sysctl(if_ctx_t ctx, const char *name, const char *description, if_int_delay_info_t info, int offset, int value) argument
6705 iflib_ctx_lock_get(if_ctx_t ctx) argument
6712 iflib_msix_init(if_ctx_t ctx) argument
6908 if_ctx_t ctx = (void *)arg1; local
6956 iflib_add_device_sysctl_pre(if_ctx_t ctx) argument
7016 iflib_add_device_sysctl_post(if_ctx_t ctx) argument
7179 iflib_request_reset(if_ctx_t ctx) argument
7218 if_ctx_t ctx; local
7231 if_ctx_t ctx; local
7261 if_ctx_t ctx; local
7281 if_ctx_t ctx; local
[all...]
/haiku/src/bin/network/ftpd/
H A Dmd5hl.c24 MD5End(MD5_CTX *ctx, char *buf) argument
34 MD5Final(digest, ctx);
53 MD5_CTX ctx; local
58 MD5Init(&ctx);
79 MD5Update(&ctx, buffer, i);
87 return (MD5End(&ctx, buf));
93 MD5_CTX ctx; local
95 MD5Init(&ctx);
96 MD5Update(&ctx,data,len);
97 return (MD5End(&ctx, bu
[all...]
/haiku/src/system/libnetwork/netresolv/net/
H A Dhesiod.c108 struct hesiod_p *ctx; local
114 ctx = calloc(1, sizeof(struct hesiod_p));
115 if (ctx) {
116 *context = ctx;
129 if (read_config_file(ctx, configname) >= 0) {
141 if (ctx->rhs)
142 free(ctx->rhs);
143 ctx->rhs = malloc(strlen(p) + 2);
144 if (ctx->rhs) {
145 *ctx
176 struct hesiod_p *ctx = (struct hesiod_p *) context; local
194 struct hesiod_p *ctx = (struct hesiod_p *) context; local
272 struct hesiod_p *ctx = (struct hesiod_p *) context; local
313 read_config_file(struct hesiod_p *ctx, const char *filename) argument
[all...]
/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/
H A Defs.c133 ntfs_attr_search_ctx *ctx; local
144 ctx = ntfs_attr_get_search_ctx(ni, NULL);
145 if (!ctx) {
146 ntfs_log_error("Failed to get ctx for efs\n");
152 CASE_SENSITIVE, 0, NULL, 0, ctx)) {
154 a = ctx->attr;
155 na = ntfs_attr_open(ctx->ntfs_ino, AT_DATA,
162 if (na && !(ctx->attr->flags & ATTR_IS_ENCRYPTED)) {
164 && ntfs_attr_make_non_resident(na, ctx)) {
181 ntfs_attr_put_search_ctx(ctx);
317 ntfs_efs_fixup_attribute(ntfs_attr_search_ctx *ctx, ntfs_attr *na) argument
[all...]
H A Defs.h28 int ntfs_efs_fixup_attribute(ntfs_attr_search_ctx *ctx, ntfs_attr *na);
/haiku/src/system/libnetwork/netresolv/dst/
H A Dhmac_link.c84 MD5_CTX *ctx = NULL; local
90 ctx = (MD5_CTX *) malloc(sizeof(*ctx));
92 ctx = (MD5_CTX *) *context;
93 if (ctx == NULL)
99 MD5Init(ctx);
100 MD5Update(ctx, key->hk_ipad, HMAC_LEN);
104 MD5Update(ctx, data, (unsigned int)len);
109 MD5Final(signature, ctx);
112 MD5Init(ctx);
152 MD5_CTX *ctx = NULL; local
214 MD5_CTX ctx; local
[all...]
/haiku/src/system/libnetwork/netresolv/isc/
H A Dev_timers.c160 evContext_p *ctx = opaqueCtx.opaque; local
162 return (ctx->lastEventTime);
193 evContext_p *ctx = opaqueCtx.opaque; local
196 evPrintf(ctx, 1,
197 "evSetTimer(ctx %p, func %p, uap %p, due %ld.%09ld, inter %ld.%09ld)\n",
198 ctx, func, uap,
230 if (heap_insert(ctx->timers, id) < 0)
237 if (ctx->debug > 7) {
238 evPrintf(ctx, 7, "timers after evSetTimer:\n");
239 (void) heap_for_each(ctx
247 evContext_p *ctx = opaqueCtx.opaque; local
283 evContext_p *ctx = opaqueCtx.opaque; local
310 evContext_p *ctx = opaqueCtx.opaque; local
369 evContext_p *ctx = opaqueCtx.opaque; local
407 evContext_p *ctx = opaqueCtx.opaque; local
423 evContext_p *ctx = opaqueCtx.opaque; local
435 evCreateTimers(const evContext_p *ctx) argument
443 evDestroyTimers(const evContext_p *ctx) argument
479 evContext_p *ctx = uap; local
495 evContext_p *ctx = opaqueCtx.opaque; local
[all...]
/haiku/src/libs/compat/freebsd_network/compat/sys/
H A Dsysctl.h125 #define SYSCTL_ADD_OID(ctx, parent, nbr, name, kind, a1, a2, handler, fmt, descr) \
126 sysctl_add_oid(ctx, parent, nbr, name, kind, a1, a2, handler, fmt, \
129 #define SYSCTL_ADD_NODE(ctx, parent, nbr, name, access, handler, descr) \
130 sysctl_add_oid(ctx, parent, nbr, name, CTLTYPE_NODE|(access), \
133 #define SYSCTL_ADD_STRING(ctx, parent, nbr, name, access, arg, len, descr) \
134 sysctl_add_oid(ctx, parent, nbr, name, CTLTYPE_STRING|(access), \
137 #define SYSCTL_ADD_INT(ctx, parent, nbr, name, access, ptr, val, descr) \
138 sysctl_add_oid(ctx, parent, nbr, name, CTLTYPE_INT|(access), \
141 #define SYSCTL_ADD_UINT(ctx, parent, nbr, name, access, ptr, val, descr) \
142 sysctl_add_oid(ctx, paren
[all...]
/haiku/src/libs/compat/freebsd_iflib/compat/net/
H A Diflib_private.h64 int iflib_pseudo_deregister(if_ctx_t ctx);
66 uint32_t iflib_get_flags(if_ctx_t ctx);
67 void iflib_set_detach(if_ctx_t ctx);
68 void iflib_stop(if_ctx_t ctx);
/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/
H A Dif_ath_sysctl.c788 struct sysctl_ctx_list *ctx = device_get_sysctl_ctx(sc->sc_dev); local
791 tree = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "alq",
796 SYSCTL_ADD_STRING(ctx, child, OID_AUTO, "filename",
799 SYSCTL_ADD_PROC(ctx, SYSCTL_CHILDREN(tree), OID_AUTO,
803 SYSCTL_ADD_UINT(ctx, SYSCTL_CHILDREN(tree), OID_AUTO,
807 SYSCTL_ADD_UINT(ctx, SYSCTL_CHILDREN(tree), OID_AUTO,
816 struct sysctl_ctx_list *ctx = device_get_sysctl_ctx(sc->sc_dev); local
820 SYSCTL_ADD_UINT(ctx, SYSCTL_CHILDREN(tree), OID_AUTO,
823 SYSCTL_ADD_UINT(ctx, SYSCTL_CHILDREN(tree), OID_AUTO,
827 SYSCTL_ADD_QUAD(ctx, SYSCTL_CHILDRE
1028 struct sysctl_ctx_list *ctx = device_get_sysctl_ctx(sc->sc_dev); local
1047 struct sysctl_ctx_list *ctx = device_get_sysctl_ctx(sc->sc_dev); local
1067 struct sysctl_ctx_list *ctx = device_get_sysctl_ctx(sc->sc_dev); local
1319 struct sysctl_ctx_list *ctx = device_get_sysctl_ctx(sc->sc_dev); local
[all...]
/haiku/src/add-ons/kernel/drivers/network/ether/intel22x/dev/igc/
H A Dif_igc.c77 static int igc_if_attach_pre(if_ctx_t ctx);
78 static int igc_if_attach_post(if_ctx_t ctx);
79 static int igc_if_detach(if_ctx_t ctx);
80 static int igc_if_shutdown(if_ctx_t ctx);
81 static int igc_if_suspend(if_ctx_t ctx);
82 static int igc_if_resume(if_ctx_t ctx);
84 static int igc_if_tx_queues_alloc(if_ctx_t ctx, caddr_t *vaddrs, uint64_t *paddrs, int ntxqs, int ntxqsets);
85 static int igc_if_rx_queues_alloc(if_ctx_t ctx, caddr_t *vaddrs, uint64_t *paddrs, int nrxqs, int nrxqsets);
86 static void igc_if_queues_free(if_ctx_t ctx);
89 static void igc_if_init(if_ctx_t ctx);
429 igc_set_num_queues(if_ctx_t ctx) argument
453 igc_if_attach_pre(if_ctx_t ctx) argument
672 igc_if_attach_post(if_ctx_t ctx) argument
718 igc_if_detach(if_ctx_t ctx) argument
739 igc_if_shutdown(if_ctx_t ctx) argument
748 igc_if_suspend(if_ctx_t ctx) argument
758 igc_if_resume(if_ctx_t ctx) argument
766 igc_if_mtu_set(if_ctx_t ctx, uint32_t mtu) argument
796 igc_if_init(if_ctx_t ctx) argument
872 if_ctx_t ctx = adapter->ctx; local
907 igc_if_rx_queue_intr_enable(if_ctx_t ctx, uint16_t rxqid) argument
917 igc_if_tx_queue_intr_enable(if_ctx_t ctx, uint16_t txqid) argument
972 if_ctx_t ctx = context; local
988 igc_if_media_status(if_ctx_t ctx, struct ifmediareq *ifmr) argument
1035 igc_if_media_change(if_ctx_t ctx) argument
1079 igc_if_set_promisc(if_ctx_t ctx, int flags) argument
1133 igc_if_multi_set(if_ctx_t ctx) argument
1177 igc_if_timer(if_ctx_t ctx, uint16_t qid) argument
1187 igc_if_update_admin_status(if_ctx_t ctx) argument
1235 igc_if_watchdog_reset(if_ctx_t ctx) argument
1253 igc_if_stop(if_ctx_t ctx) argument
1269 igc_identify_hardware(if_ctx_t ctx) argument
1294 igc_allocate_pci_resources(if_ctx_t ctx) argument
1323 igc_if_msix_intr_assign(if_ctx_t ctx, int msix) argument
1455 igc_free_pci_resources(if_ctx_t ctx) argument
1490 igc_setup_msix(if_ctx_t ctx) argument
1592 igc_reset(if_ctx_t ctx) argument
1763 igc_setup_interface(if_ctx_t ctx) argument
1795 igc_if_tx_queues_alloc(if_ctx_t ctx, caddr_t *vaddrs, uint64_t *paddrs, int ntxqs, int ntxqsets) argument
1844 igc_if_rx_queues_alloc(if_ctx_t ctx, caddr_t *vaddrs, uint64_t *paddrs, int nrxqs, int nrxqsets) argument
1886 igc_if_queues_free(if_ctx_t ctx) argument
1923 igc_initialize_transmit_unit(if_ctx_t ctx) argument
1990 igc_initialize_receive_unit(if_ctx_t ctx) argument
2126 igc_setup_vlan_hw_support(if_ctx_t ctx) argument
2148 igc_if_intr_enable(if_ctx_t ctx) argument
2166 igc_if_intr_disable(if_ctx_t ctx) argument
2233 igc_get_wakeup(if_ctx_t ctx) argument
2250 igc_enable_wakeup(if_ctx_t ctx) argument
2386 igc_if_get_counter(if_ctx_t ctx, ift_counter cnt) argument
2451 struct sysctl_ctx_list *ctx = device_get_sysctl_ctx(dev); local
2901 igc_if_debug(if_ctx_t ctx) argument
[all...]

Completed in 168 milliseconds

12345