/titanic_50/usr/src/lib/libtecla/common/ |
H A D | freelist.c | 55 static FreeListBlock *_new_FreeListBlock(FreeList *fl); 56 static FreeListBlock *_del_FreeListBlock(FreeListBlock *fl); 57 static void _thread_FreeListBlock(FreeList *fl, FreeListBlock *block); 74 FreeList *fl; /* The new free-list container */ in _new_FreeList() local 93 fl = (FreeList *) malloc(sizeof(FreeList)); in _new_FreeList() 94 if(!fl) { in _new_FreeList() 103 fl->node_size = node_size; in _new_FreeList() 104 fl->blocking_factor = blocking_factor; in _new_FreeList() 105 fl->nbusy = 0; in _new_FreeList() 106 fl->ntotal = 0; in _new_FreeList() [all …]
|
H A D | strngmem.c | 43 FreeList *fl; /* The free-list */ member 85 sm->fl = NULL; in _new_StringMem() 89 sm->fl = _new_FreeList(SM_STRLEN, blocking_factor); in _new_StringMem() 90 if(!sm->fl) in _new_StringMem() 119 if(!force && (sm->nmalloc > 0 || _busy_FreeListNodes(sm->fl) > 0)) { in _del_StringMem() 126 sm->fl = _del_FreeList(sm->fl, force); in _del_StringMem() 159 string = (char *)_new_FreeListNode(sm->fl); in _new_StringMemString() 216 s = (char *) _del_FreeListNode(sm->fl, s); in _del_StringMemString()
|
H A D | freelist.h | 61 void _rst_FreeList(FreeList *fl); 66 FreeList *_del_FreeList(FreeList *fl, int force); 71 long _busy_FreeListNodes(FreeList *fl); 77 long _idle_FreeListNodes(FreeList *fl); 82 void *_new_FreeListNode(FreeList *fl); 87 void *_del_FreeListNode(FreeList *fl, void *object);
|
/titanic_50/usr/src/lib/libbc/libc/sys/common/ |
H A D | flock.c | 35 struct flock fl; local 38 fl.l_whence = 0; 39 fl.l_start = 0; 40 fl.l_len = 0; 41 fl.l_type = 0; 43 fl.l_type |= F_UNLCK; 45 fl.l_type |= F_RDLCK; 47 fl.l_type |= F_WRLCK; 50 return (bc_fcntl(fd, cmd, &fl));
|
H A D | ftruncate.c | 38 struct fl { struct 52 struct fl lck; in ftruncate() argument
|
/titanic_50/usr/src/lib/pkcs11/pkcs11_kernel/common/ |
H A D | kernelSlottable.c | 106 crypto_get_function_list_t fl; in kernel_get_func_list() local 110 (void) memset(&fl, 0, sizeof (fl)); in kernel_get_func_list() 111 fl.fl_provider_id = pslot->sl_provider_id; in kernel_get_func_list() 113 while ((r = ioctl(kernel_fd, CRYPTO_GET_FUNCTION_LIST, &fl)) < 0) { in kernel_get_func_list() 120 if (fl.fl_return_value == 0) { in kernel_get_func_list() 123 rv = crypto2pkcs11_error_number(fl.fl_return_value); in kernel_get_func_list() 132 pslot->sl_func_list = fl.fl_list; in kernel_get_func_list() 135 if (fl.fl_list.prov_is_hash_limited) { in kernel_get_func_list() 137 pslot->sl_hash_max_inlen = fl.fl_list.prov_hash_limit; in kernel_get_func_list() 140 if (fl.fl_list.prov_is_hmac_limited) { in kernel_get_func_list() [all …]
|
/titanic_50/usr/src/ucblib/libucb/port/sys/ |
H A D | flock.c | 45 struct flock fl; in flock() local 50 fl.l_whence = 0; in flock() 51 fl.l_start = 0; in flock() 52 fl.l_len = 0; in flock() 53 fl.l_type = 0; in flock() 63 fl.l_type |= F_UNLCK; in flock() 66 fl.l_type |= F_RDLCK; in flock() 69 fl.l_type |= F_WRLCK; in flock() 76 ret = fcntl(fd, cmd, &fl); in flock()
|
/titanic_50/usr/src/uts/common/fs/ufs/ |
H A D | ufs_log.c | 45 fiolog_t fl; in ufs_fiologenable() local 50 if (ddi_copyin(ufl, &fl, sizeof (fl), flags)) in ufs_fiologenable() 52 error = lufs_enable(vp, &fl, cr); in ufs_fiologenable() 53 if (ddi_copyout(&fl, ufl, sizeof (*ufl), flags)) in ufs_fiologenable() 64 struct fiolog fl; in ufs_fiologdisable() local 69 if (ddi_copyin(ufl, &fl, sizeof (fl), flags)) in ufs_fiologdisable() 71 error = lufs_disable(vp, &fl); in ufs_fiologdisable() 72 if (ddi_copyout(&fl, ufl, sizeof (*ufl), flags)) in ufs_fiologdisable()
|
/titanic_50/usr/src/cmd/tsol/getlabel/ |
H A D | getlabel.c | 48 m_label_t *fl; in get_label() local 51 if ((fl = m_label_alloc(MAC_LABEL)) == NULL) { in get_label() 54 } else if (getlabel(filename, fl) != 0) { in get_label() 56 m_label_free(fl); in get_label() 63 if (label_to_str(fl, &label, M_LABEL, LONG_NAMES) != 0) { in get_label() 66 m_label_free(fl); in get_label() 71 if (label_to_str(fl, &label, M_LABEL, SHORT_NAMES) != 0) { in get_label() 74 m_label_free(fl); in get_label() 79 if (label_to_str(fl, &label, M_LABEL, DEF_NAMES) != 0) { in get_label() 82 m_label_free(fl); in get_label() [all …]
|
/titanic_50/usr/src/uts/common/io/cxgbe/t4nex/ |
H A D | t4_sge.c | 77 static inline void init_fl(struct sge_fl *fl, uint16_t qsize); 81 struct sge_fl *fl, int intr_idx, int cong); 83 struct sge_fl *fl); 125 static int refill_fl(struct adapter *sc, struct sge_fl *fl, int nbufs); 127 static void add_fl_to_sfl(struct adapter *sc, struct sge_fl *fl); 128 static void free_fl_bufs(struct sge_fl *fl); 129 static mblk_t *get_fl_payload(struct sge_fl *fl, uint32_t len_newbuf, 154 static inline void ring_fl_db(struct adapter *sc, struct sge_fl *fl); 456 init_fl(&rxq->fl, p->qsize_rxq / 8); /* 8 bufs in each entry */ in t4_setup_port_queues() 480 init_fl(&ofld_rxq->fl, p->qsize_rxq / 8); in t4_setup_port_queues() [all …]
|
H A D | adapter.h | 239 #define FL_RUNNING_LOW(fl) (fl->cap - fl->needed <= fl->lowat) argument 240 #define FL_NOT_RUNNING_LOW(fl) (fl->cap - fl->needed >= 2 * fl->lowat) argument 321 struct sge_fl fl; member 339 struct sge_fl fl; member 524 #define FL_LOCK(fl) mutex_enter(&(fl)->lock) argument 525 #define FL_UNLOCK(fl) mutex_exit(&(fl)->lock) argument 526 #define FL_LOCK_ASSERT_OWNED(fl) ASSERT(mutex_owned(&(fl)->lock)) argument 527 #define FL_LOCK_ASSERT_NOTOWNED(fl) ASSERT(!mutex_owned(&(fl)->lock)) argument 534 #define RXQ_FL_LOCK(rxq) FL_LOCK(&(rxq)->fl) 535 #define RXQ_FL_UNLOCK(rxq) FL_UNLOCK(&(rxq)->fl) [all …]
|
/titanic_50/usr/src/lib/libresolv2/common/bsd/ |
H A D | ftruncate.c | 50 struct flock fl; in __ftruncate() local 52 fl.l_whence = 0; in __ftruncate() 53 fl.l_len = 0; in __ftruncate() 54 fl.l_start = wantsize; in __ftruncate() 55 fl.l_type = F_WRLCK; in __ftruncate() 56 return (fcntl(fd, F_FREESP, &fl)); in __ftruncate()
|
/titanic_50/usr/src/uts/common/klm/ |
H A D | nlm_service.c | 111 struct flock64 *fl, 126 nlm_init_flock(struct flock64 *fl, struct nlm4_lock *nl, in nlm_init_flock() argument 131 bzero(fl, sizeof (*fl)); in nlm_init_flock() 151 fl->l_type = type; in nlm_init_flock() 152 fl->l_whence = SEEK_SET; in nlm_init_flock() 153 fl->l_start = off; in nlm_init_flock() 154 fl->l_len = len; in nlm_init_flock() 155 fl->l_sysid = host->nh_sysid; in nlm_init_flock() 156 fl->l_pid = nl->svid; in nlm_init_flock() 332 struct flock64 fl; in nlm_do_test() local [all …]
|
/titanic_50/usr/src/cmd/ipf/tools/ |
H A D | ipf.c | 377 int fl = 0, rem; local 383 fl = FLUSH_TABLE_ALL; 385 fl = FLUSH_TABLE_CLOSING; 386 rem = fl; 394 if (ioctl(fd, SIOCIPFL6, &fl) == -1) { 399 if (ioctl(fd, SIOCIPFFL, &fl) == -1) { 407 printf("removed %d filter rules\n", fl); 422 if (ioctl(fd, SIOCIPFFA, &fl) == -1) 431 fl = FR_INQUE; 433 fl = FR_OUTQUE; [all …]
|
/titanic_50/usr/src/test/zfs-tests/cmd/randfree_file/ |
H A D | randfree_file.c | 58 struct flock fl; in main() local 93 fl.l_whence = SEEK_SET; in main() 94 fl.l_start = start_off; in main() 95 fl.l_len = off_len; in main() 96 if (fcntl(fd, F_FREESP, &fl) != 0) { in main()
|
/titanic_50/usr/src/cmd/mdb/intel/kmdb/ |
H A D | kaif.c | 440 kreg_t pc, fl, oldfl, newfl, sp; in kaif_step() local 505 (void) kmdb_dpi_get_register(FLAGS_REG_NAME, &fl); in kaif_step() 506 fl &= ~KREG_EFLAGS_IF_MASK; in kaif_step() 507 (void) kmdb_dpi_set_register(FLAGS_REG_NAME, fl); in kaif_step() 513 (void) kmdb_dpi_get_register(FLAGS_REG_NAME, &fl); in kaif_step() 514 fl |= (1 << KREG_EFLAGS_IF_SHIFT); in kaif_step() 515 (void) kmdb_dpi_set_register(FLAGS_REG_NAME, fl); in kaif_step() 529 (void) kmdb_dpi_get_register(FLAGS_REG_NAME, &fl); in kaif_step() 538 fl = (fl & ~KREG_EFLAGS_IF_MASK) | KREG_EFLAGS_TF_MASK; in kaif_step() 540 if (mdb_tgt_vwrite(mdb.m_target, &fl, sizeof (kreg_t), in kaif_step() [all …]
|
/titanic_50/usr/src/cmd/acct/ |
H A D | acctmerg.c | 54 FILE *fl[NFILE] = {stdin}; variable 110 if ((fl[nfile] = fopen(*argv, "r")) == NULL) { in main() 224 if (fl[i] == NULL) in getnext() 227 if (fscanf(fl[i], in getnext() 241 if (fread(tp, sizeof(*tp), 1, fl[i]) == 1) in getnext() 244 fclose(fl[i]); in getnext() 245 fl[i] = NULL; in getnext()
|
/titanic_50/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | typegraph.c | 2853 findlocks_t *fl) in findlocks_findmutex() argument 2858 mdb_ctf_id_t parent = fl->fl_parent; in findlocks_findmutex() 2859 uintptr_t addr = fl->fl_addr; in findlocks_findmutex() 2860 int kind, depth = fl->fl_depth, i; in findlocks_findmutex() 2921 fl->fl_addr = addr + offs + (i * size); in findlocks_findmutex() 2922 findlocks_findmutex(name, type, 0, fl); in findlocks_findmutex() 2925 fl->fl_addr = addr; in findlocks_findmutex() 2960 if (fl->fl_thread != NULL && owner != fl->fl_thread) in findlocks_findmutex() 2963 if (fl->fl_ndx >= fl->fl_nlocks) { in findlocks_findmutex() 2967 if ((nlocks = (fl->fl_nlocks << 1)) == 0) in findlocks_findmutex() [all …]
|
/titanic_50/usr/src/test/zfs-tests/cmd/mkholes/ |
H A D | mkholes.c | 152 struct flock fl; in main() local 156 fl.l_whence = SEEK_SET; in main() 157 fl.l_start = off; in main() 158 fl.l_len = len; in main() 159 if (fcntl(fd, F_FREESP, &fl) != 0) { in main()
|
/titanic_50/usr/src/lib/auditd_plugins/remote/ |
H A D | audit_remote.c | 465 set_fdfl(int fd, int fl, boolean_t set_fl) in set_fdfl() argument 470 if (!fl || (fl & (fl-1))) { in set_fdfl() 471 DPRINT((dfile, "incorrect flag - %d isn't power of two\n", fl)); in set_fdfl() 481 if (flags & fl) { in set_fdfl() 485 flags |= fl; in set_fdfl() 488 if (~flags & fl) { in set_fdfl() 492 flags &= ~fl; in set_fdfl() 501 DPRINT((dfile, "fd: %d - flag: 0%o was %s\n", fd, fl, in set_fdfl()
|
/titanic_50/usr/src/cmd/mandoc/ |
H A D | man_term.c | 39 int fl; member 242 mt->fl |= MANT_LITERAL; in pre_literal() 244 mt->fl &= ~MANT_LITERAL; in pre_literal() 314 savelit = MANT_LITERAL & mt->fl; in pre_alternate() 315 mt->fl &= ~MANT_LITERAL; in pre_alternate() 320 mt->fl |= MANT_LITERAL; in pre_alternate() 503 if ( ! (MANT_LITERAL & mt->fl)) { in pre_HP() 600 savelit = MANT_LITERAL & mt->fl; in pre_IP() 601 mt->fl &= ~MANT_LITERAL; in pre_IP() 607 mt->fl |= MANT_LITERAL; in pre_IP() [all …]
|
H A D | man_html.c | 45 int fl; member 220 (n->prev != NULL && mh->fl & MANH_LITERAL && in print_man_node() 388 mh->fl &= ~MANH_LITERAL; in man_SH_pre() 407 if ((savelit = mh->fl & MANH_LITERAL)) in man_alt_pre() 410 mh->fl &= ~MANH_LITERAL; in man_alt_pre() 451 mh->fl |= MANH_LITERAL; in man_alt_pre() 472 mh->fl &= ~MANH_LITERAL; in man_SS_pre() 612 mh->fl &= ~MANH_LITERAL; in man_literal_pre() 614 mh->fl |= MANH_LITERAL; in man_literal_pre()
|
/titanic_50/usr/src/uts/common/sys/mpt/ |
H A D | mpi.h | 440 #define MPI_SGE_GET_FLAGS(fl) \ argument 441 (((fl) & ~MPI_SGE_LENGTH_MASK) >> MPI_SGE_FLAGS_SHIFT) 442 #define MPI_SGE_LENGTH(fl) ((fl) & MPI_SGE_LENGTH_MASK) argument 443 #define MPI_SGE_CHAIN_LENGTH(fl) ((fl) & MPI_SGE_CHAIN_LENGTH_MASK) argument
|
/titanic_50/usr/src/cmd/fs.d/ufs/mount/ |
H A D | mount.c | 361 fiolog_t fl; in enable_logging() local 368 fl.nbytes_requested = 0; in enable_logging() 369 fl.nbytes_actual = 0; in enable_logging() 370 fl.error = FIOLOG_ENONE; in enable_logging() 371 ret = ioctl(fd, _FIOLOGENABLE, &fl); in enable_logging() 381 reportlogerror(ret, mp, special, "enable", &fl); in enable_logging() 388 fiolog_t fl; in disable_logging() local 395 fl.error = FIOLOG_ENONE; in disable_logging() 396 ret = ioctl(fd, _FIOLOGDISABLE, &fl); in disable_logging() 406 reportlogerror(ret, mp, special, "disable", &fl); in disable_logging()
|
/titanic_50/usr/src/uts/common/crypto/io/ |
H A D | crypto.c | 648 crypto_build_function_list(crypto_function_list_t *fl, kcf_provider_desc_t *pd) in crypto_build_function_list() argument 668 fl->fl_digest_init = B_TRUE; in crypto_build_function_list() 670 fl->fl_digest = B_TRUE; in crypto_build_function_list() 672 fl->fl_digest_update = B_TRUE; in crypto_build_function_list() 674 fl->fl_digest_key = B_TRUE; in crypto_build_function_list() 676 fl->fl_digest_final = B_TRUE; in crypto_build_function_list() 680 fl->fl_encrypt_init = B_TRUE; in crypto_build_function_list() 682 fl->fl_encrypt = B_TRUE; in crypto_build_function_list() 684 fl->fl_encrypt_update = B_TRUE; in crypto_build_function_list() 686 fl->fl_encrypt_final = B_TRUE; in crypto_build_function_list() [all …]
|