/illumos-gate/usr/src/uts/common/io/comstar/lu/stmf_sbd/ |
H A D | sbd.c | 56 extern sbd_status_t sbd_pgr_meta_init(sbd_lu_t *sl); 57 extern sbd_status_t sbd_pgr_meta_load(sbd_lu_t *sl); 58 extern void sbd_pgr_reset(sbd_lu_t *sl); 85 int sbd_import_active_lu(sbd_import_lu_t *ilu, sbd_lu_t *sl, uint32_t *err_ret); 97 sbd_status_t sbd_create_zfs_meta_object(sbd_lu_t *sl); 98 sbd_status_t sbd_open_zfs_meta(sbd_lu_t *sl); 99 sbd_status_t sbd_read_zfs_meta(sbd_lu_t *sl, uint8_t *buf, uint64_t sz, 101 sbd_status_t sbd_write_zfs_meta(sbd_lu_t *sl, uint8_t *buf, uint64_t sz, 103 sbd_status_t sbd_update_zfs_prop(sbd_lu_t *sl); 108 void sbd_close_lu(sbd_lu_t *sl); [all …]
|
H A D | sbd_zvol.c | 107 sbd_zvol_get_volume_params(sbd_lu_t *sl) in sbd_zvol_get_volume_params() argument 111 ret = zvol_get_volume_params(sl->sl_zvol_minor, in sbd_zvol_get_volume_params() 112 &sl->sl_blksize, /* volume block size */ in sbd_zvol_get_volume_params() 113 &sl->sl_max_xfer_len, /* max data chunk size */ in sbd_zvol_get_volume_params() 114 &sl->sl_zvol_minor_hdl, /* minor soft state */ in sbd_zvol_get_volume_params() 115 &sl->sl_zvol_objset_hdl, /* dmu_tx_create */ in sbd_zvol_get_volume_params() 116 &sl->sl_zvol_zil_hdl, /* zil_commit */ in sbd_zvol_get_volume_params() 117 &sl->sl_zvol_rl_hdl, /* locked_range_t */ in sbd_zvol_get_volume_params() 118 &sl->sl_zvol_dn_hdl); /* dmu_buf_hold_array_by_dnode, */ in sbd_zvol_get_volume_params() 122 if (ret == 0 && sl->sl_blksize < MMU_PAGESIZE) { in sbd_zvol_get_volume_params() [all …]
|
H A D | sbd_scsi.c | 125 extern int sbd_pgr_reservation_conflict(scsi_task_t *, struct sbd_lu *sl); 152 sbd_lu_t *sl = (sbd_lu_t *)task->task_lu->lu_provider_private; in sbd_do_read_xfer() local 172 if (sbd_data_read(sl, task, laddr, (uint64_t)iolen, in sbd_do_read_xfer() 231 sbd_lu_t *sl = (sbd_lu_t *)task->task_lu->lu_provider_private; in sbd_do_sgl_read_xfer() local 239 uint64_t blksize = sl->sl_blksize; in sbd_do_sgl_read_xfer() 244 ASSERT(rw_read_held(&sl->sl_access_state_lock)); in sbd_do_sgl_read_xfer() 245 ASSERT((sl->sl_flags & SL_MEDIA_LOADED) != 0); in sbd_do_sgl_read_xfer() 267 max_len = MIN(task->task_max_xfer_len, sl->sl_max_xfer_len); in sbd_do_sgl_read_xfer() 314 nblks = sbd_zvol_numsegs(sl, offset, xfer_len); in sbd_do_sgl_read_xfer() 359 DTRACE_PROBE5(backing__store__read__start, sbd_lu_t *, sl, in sbd_do_sgl_read_xfer() [all …]
|
H A D | ats_copy_mgr.c | 71 sbd_ats_do_handling_before_io(scsi_task_t *task, struct sbd_lu *sl, in sbd_ats_do_handling_before_io() argument 106 mutex_enter(&sl->sl_lock); in sbd_ats_do_handling_before_io() 112 if (list_is_empty(&sl->sl_ats_io_list)) { in sbd_ats_do_handling_before_io() 130 for (ats_state = list_head(&sl->sl_ats_io_list); ats_state != NULL; in sbd_ats_do_handling_before_io() 131 ats_state = list_next(&sl->sl_ats_io_list, ats_state)) { in sbd_ats_do_handling_before_io() 162 if (list_is_empty(&sl->sl_ats_io_list)) { in sbd_ats_do_handling_before_io() 163 list_insert_head(&sl->sl_ats_io_list, ats_state_ret); in sbd_ats_do_handling_before_io() 165 list_insert_tail(&sl->sl_ats_io_list, ats_state_ret); in sbd_ats_do_handling_before_io() 170 mutex_exit(&sl->sl_lock); in sbd_ats_do_handling_before_io() 174 mutex_exit(&sl->sl_lock); in sbd_ats_do_handling_before_io() [all …]
|
H A D | sbd_impl.h | 311 int sbd_zvol_get_volume_params(sbd_lu_t *sl); 312 uint32_t sbd_zvol_numsegs(sbd_lu_t *sl, uint64_t off, uint32_t len); 313 int sbd_zvol_alloc_read_bufs(sbd_lu_t *sl, stmf_data_buf_t *dbuf); 314 void sbd_zvol_rele_read_bufs(sbd_lu_t *sl, stmf_data_buf_t *dbuf); 315 int sbd_zvol_alloc_write_bufs(sbd_lu_t *sl, stmf_data_buf_t *dbuf); 316 void sbd_zvol_rele_write_bufs_abort(sbd_lu_t *sl, stmf_data_buf_t *dbuf); 317 int sbd_zvol_rele_write_bufs(sbd_lu_t *sl, stmf_data_buf_t *dbuf); 318 int sbd_zvol_copy_read(sbd_lu_t *sl, uio_t *uio); 319 int sbd_zvol_copy_write(sbd_lu_t *sl, uio_t *uio, int flags);
|
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | compat_stringlist.c | 46 StringList *sl; in sl_init() local 48 sl = malloc(sizeof(StringList)); in sl_init() 49 if (sl == NULL) in sl_init() 52 sl->sl_cur = 0; in sl_init() 53 sl->sl_max = _SL_CHUNKSIZE; in sl_init() 54 sl->sl_str = reallocarray(NULL, sl->sl_max, sizeof(char *)); in sl_init() 55 if (sl->sl_str == NULL) { in sl_init() 56 free(sl); in sl_init() 57 sl = NULL; in sl_init() 59 return sl; in sl_init() [all …]
|
/illumos-gate/usr/src/cmd/man/ |
H A D | stringlist.c | 45 stringlist *sl; in sl_init() local 47 if ((sl = malloc(sizeof (stringlist))) == NULL) in sl_init() 50 sl->sl_cur = 0; in sl_init() 51 sl->sl_max = _SL_CHUNKSIZE; in sl_init() 52 sl->sl_str = malloc(sl->sl_max * sizeof (char *)); in sl_init() 53 if (sl->sl_str == NULL) in sl_init() 56 return (sl); in sl_init() 60 sl_add(stringlist *sl, char *name) in sl_add() argument 63 if (sl->sl_cur == sl->sl_max - 1) { in sl_add() 64 sl->sl_max += _SL_CHUNKSIZE; in sl_add() [all …]
|
/illumos-gate/usr/src/uts/common/inet/ |
H A D | ip_listutils.h | 49 #define SLIST_IS_EMPTY(sl) (((sl) == NULL) || ((sl)->sl_numsrc == 0)) argument 50 #define SLIST_CNT(sl) (((sl) == NULL) ? 0 : ((sl)->sl_numsrc)) argument 51 #define CLEAR_SLIST(sl) if ((sl) != NULL) (sl)->sl_numsrc = 0 argument 52 #define FREE_SLIST(sl) if ((sl) != NULL) l_free((sl)) argument 53 #define COPY_SLIST(sl, newsl) \ argument 55 (newsl) = l_alloc_copy((sl)); \ 57 l_copy((sl), (newsl))
|
/illumos-gate/usr/src/uts/common/inet/sctp/ |
H A D | sctp_tunables.c | 50 sctp_listener_t *sl; in sctp_listener_conf_get() local 63 for (sl = list_head(&sctps->sctps_listener_conf); sl != NULL; in sctp_listener_conf_get() 64 sl = list_next(&sctps->sctps_listener_conf, sl)) { in sctp_listener_conf_get() 66 nbytes = snprintf(pval, size, "%d:%d", sl->sl_port, in sctp_listener_conf_get() 67 sl->sl_ratio); in sctp_listener_conf_get() 69 nbytes = snprintf(pval, size, ",%d:%d", sl->sl_port, in sctp_listener_conf_get() 70 sl->sl_ratio); in sctp_listener_conf_get() 94 sctp_listener_t *sl; in sctp_listener_conf_add() local 111 for (sl = list_head(&sctps->sctps_listener_conf); sl != NULL; in sctp_listener_conf_add() 112 sl = list_next(&sctps->sctps_listener_conf, sl)) { in sctp_listener_conf_add() [all …]
|
H A D | sctp_misc.c | 115 sctp_listener_t *sl; in sctp_find_listener_conf() local 119 for (sl = list_head(&sctps->sctps_listener_conf); sl != NULL; in sctp_find_listener_conf() 120 sl = list_next(&sctps->sctps_listener_conf, sl)) { in sctp_find_listener_conf() 121 if (sl->sl_port == port) { in sctp_find_listener_conf() 122 ratio = sl->sl_ratio; in sctp_find_listener_conf() 136 sctp_listener_t *sl; in sctp_listener_conf_cleanup() local 139 while ((sl = list_head(&sctps->sctps_listener_conf)) != NULL) { in sctp_listener_conf_cleanup() 140 list_remove(&sctps->sctps_listener_conf, sl); in sctp_listener_conf_cleanup() 141 kmem_free(sl, sizeof (sctp_listener_t)); in sctp_listener_conf_cleanup()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | printf.c | 74 cprintf(const char *fmt, va_list adx, int sl, const char *prefix, in cprintf() argument 98 sl |= SL_CONSONLY; in cprintf() 101 sl = (sl & ~(SL_USER | SL_NOTE)) | SL_LOGONLY; in cprintf() 105 if ((sl & SL_USER) && (MUTEX_HELD(&pidlock) || on_intr)) { in cprintf() 107 sl = sl & ~(SL_USER | SL_LOGONLY) | SL_CONSOLE; in cprintf() 124 if (((sl & SL_CONSONLY) && panicstr) || in cprintf() 140 mp = log_makemsg(mid, sid, level, sl, LOG_KERN, bufp, in cprintf() 143 if ((sl & (SL_CONSOLE | SL_LOGONLY)) == SL_CONSOLE && !on_intr) in cprintf() 148 if (sl & SL_USER) { in cprintf() 348 strlog(short mid, short sid, char level, ushort_t sl, char *fmt, ...) in strlog() argument [all …]
|
/illumos-gate/usr/src/cmd/tbl/ |
H A D | tv.c | 22 int tp=0, sl, ln, pos, epb, ept, vm; in drawvert() local 62 sl = start-1; in drawvert() 63 while (sl>=0 && instead[sl]) sl--; in drawvert() 64 if (sl>=0 && (fullbot[sl] || allh(sl))) in drawvert() 67 if (sl>=0) in drawvert() 68 switch(midbar(sl,c)) in drawvert()
|
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_kutil.c | 819 smb_slist_t *sl, in smb_slist_constructor() argument 823 mutex_init(&sl->sl_mutex, NULL, MUTEX_DEFAULT, NULL); in smb_slist_constructor() 824 cv_init(&sl->sl_cv, NULL, CV_DEFAULT, NULL); in smb_slist_constructor() 825 list_create(&sl->sl_list, size, offset); in smb_slist_constructor() 826 sl->sl_count = 0; in smb_slist_constructor() 827 sl->sl_waiting = B_FALSE; in smb_slist_constructor() 837 smb_slist_t *sl) in smb_slist_destructor() argument 839 VERIFY(sl->sl_count == 0); in smb_slist_destructor() 841 mutex_destroy(&sl->sl_mutex); in smb_slist_destructor() 842 cv_destroy(&sl->sl_cv); in smb_slist_destructor() [all …]
|
/illumos-gate/usr/src/cmd/ndmpd/tlm/ |
H A D | tlm_lib.c | 356 scsi_link_t *sl; in tlm_get_scsi_sasd_entry() local 372 sl = sasd_dev_slink(i); in tlm_get_scsi_sasd_entry() 373 if (!sl) in tlm_get_scsi_sasd_entry() 376 if (dp->td_slink->sl_sa == sl->sl_sa && in tlm_get_scsi_sasd_entry() 377 dp->td_scsi_id == sl->sl_sid && in tlm_get_scsi_sasd_entry() 378 dp->td_lun == sl->sl_lun) { in tlm_get_scsi_sasd_entry() 973 scsi_link_t *sl, *next; in scsi_sasd_attach() local 994 sl = &ssd->ss_slink; in scsi_sasd_attach() 995 sl->sl_type = type; in scsi_sasd_attach() 996 sl->sl_sa = sa; in scsi_sasd_attach() [all …]
|
/illumos-gate/usr/src/lib/libtsol/common/ |
H A D | getplabel.c | 46 bslabel_t *sl; in getplabel() local 48 sl = getzonelabelbyid(zoneid); in getplabel() 49 if (sl == NULL) { in getplabel() 52 *label_p = *sl; in getplabel() 53 free(sl); in getplabel()
|
/illumos-gate/usr/src/cmd/ipf/tools/ |
H A D | ipmon.c | 810 struct ipslog *sl; local 816 sl = (struct ipslog *)((char *)ipl + sizeof(*ipl)); 831 if (sl->isl_type == ISL_NEW) 833 else if (sl->isl_type == ISL_CLONE) 835 else if (sl->isl_type == ISL_EXPIRE) { 836 if ((sl->isl_p == IPPROTO_TCP) && 837 (sl->isl_state[0] > IPF_TCPS_ESTABLISHED || 838 sl->isl_state[1] > IPF_TCPS_ESTABLISHED)) 842 } else if (sl->isl_type == ISL_FLUSH) 844 else if (sl->isl_type == ISL_INTERMEDIATE) [all …]
|
/illumos-gate/usr/src/uts/common/io/ib/mgt/ibcm/ |
H A D | ibcm_path.c | 894 ibcm_saa_path_rec(ibcm_path_tqargs_t *p_arg, ibtl_cm_port_list_t *sl, in ibcm_saa_path_rec() argument 905 p_arg, sl, dinfo, p_arg->flags, *max_count); in ibcm_saa_path_rec() 907 if ((dinfo->num_dest == 0) || (num_path == 0) || (sl == NULL)) { in ibcm_saa_path_rec() 944 retval = ibcm_get_single_pathrec(p_arg, sl, dinfo, idx, in ibcm_saa_path_rec() 976 "Dest%d", sl->p_multi, sl->p_count, unicast_dgid_present); in ibcm_saa_path_rec() 978 if ((sl->p_multi != IBTL_CM_SIMPLE_SETUP) || in ibcm_saa_path_rec() 979 ((unicast_dgid_present == 1) && (sl->p_count == 1))) { in ibcm_saa_path_rec() 984 retval = ibcm_get_single_pathrec(p_arg, sl, dinfo, 0xFF, in ibcm_saa_path_rec() 990 retval = ibcm_get_multi_pathrec(p_arg, sl, dinfo, in ibcm_saa_path_rec() 994 (sl->p_count > 0) && in ibcm_saa_path_rec() [all …]
|
/illumos-gate/usr/src/cmd/sgs/rtld/common/ |
H A D | dlfcns.c | 1069 Slookup sl = *slp; in dlsym_handle() local 1071 sl.sl_flags = (LKUP_FIRST | LKUP_DLSYM | LKUP_SPEC); in dlsym_handle() 1111 sl.sl_imap = nlmp; in dlsym_handle() 1112 if (LM_LOOKUP_SYM(clmp)(&sl, srp, binfo, in_nfavl)) in dlsym_handle() 1132 sl.sl_flags |= LKUP_NODESCENT; in dlsym_handle() 1142 sl.sl_imap = nlmp; in dlsym_handle() 1143 if (elf_lazy_find_sym(&sl, srp, binfo, in dlsym_handle() 1163 sl.sl_imap = nlmp; in dlsym_handle() 1164 if (LM_LOOKUP_SYM(clmp)(&sl, srp, binfo, in_nfavl)) in dlsym_handle() 1192 sl.sl_imap = nlmp; in dlsym_handle() [all …]
|
H A D | analyze.c | 65 Slookup sl; in load_filtees() local 72 SLOOKUP_INIT(sl, 0, lmp, lmp, ld_entry_cnt, 0, 0, 0, 0, 0); in load_filtees() 84 (void) elf_lookup_filtee(&sl, &sr, &binfo, cnt, in load_filtees() 2616 Slookup sl; in lookup_sym_interpose() local 2686 sl = *slp; in lookup_sym_interpose() 2687 sl.sl_imap = lmp; in lookup_sym_interpose() 2694 if (SYMINTP(lmp)(&sl, &sr, binfo, in_nfavl)) { in lookup_sym_interpose() 2719 sl = *slp; in lookup_sym_interpose() 2721 if (((FLAGS(lmp) & MSK_RT_INTPOSE) == 0) || (sl.sl_flags & LKUP_COPY)) in lookup_sym_interpose() 2741 if (callable(clmp, lmp, 0, sl.sl_flags)) { in lookup_sym_interpose() [all …]
|
/illumos-gate/usr/src/cmd/pools/poold/com/sun/solaris/domain/pools/ |
H A D | ResourceMonitor.java | 228 StatisticList sl = (StatisticList) get(keys. in calcDerivedStatistic() local 231 sl.getLast(); in calcDerivedStatistic() 233 sl.get(sl.size() - 2); in calcDerivedStatistic() 234 if (sl.getName().compareTo("idle") == 0) in calcDerivedStatistic() 252 StatisticList sl = (StatisticList) get(name); in resetData() local 253 sl.clear(); in resetData()
|
H A D | SystemMonitor.java | 200 StatisticList sl = new StatisticList( in setResourceMonitors() local 202 mon.put(stats[i], sl); in setResourceMonitors() 282 StatisticList sl; in getNext() local 283 sl = (StatisticList) mon.get(stats[i]); in getNext() 284 sl.add(new UnsignedInt64Statistic( in getNext() 342 StatisticList sl = (StatisticList) itSL.next(); in isValid() local 343 if (sl.getName().compareTo("utilization") == in isValid() 345 if (sl.isValid() == false) in isValid()
|
/illumos-gate/usr/src/lib/libc/port/fp/ |
H A D | cmpdi2.c | 50 return (aa.sl[H] < bb.sl[H] ? 0 : aa.sl[H] > bb.sl[H] ? 2 : in ___cmpdi2()
|
/illumos-gate/usr/src/cmd/lp/lib/lp/ |
H A D | tx.c | 109 m_label_t *sl; in get_peer_label() local 124 sl = ucred_getlabel(uc); in get_peer_label() 131 if (blequal(sl, &admin_low)) { in get_peer_label() 132 sl = &admin_high; in get_peer_label() 137 if (label_to_str(sl, &pslabel, M_INTERNAL, DEF_NAMES) != 0) in get_peer_label()
|
/illumos-gate/usr/src/lib/crypt_modules/bsdmd5/ |
H A D | bsdmd5.c | 77 int sl, l, pl, i; in crypt_genhash_impl() local 95 sl = ep - sp; in crypt_genhash_impl() 106 MD5Update(&ctx, (uchar_t *)sp, sl); in crypt_genhash_impl() 111 MD5Update(&ctx1, sp, sl); in crypt_genhash_impl() 131 (void) strncat(ctbuffer, (const char *)sp, sl); in crypt_genhash_impl() 150 MD5Update(&ctx1, sp, sl); in crypt_genhash_impl()
|
/illumos-gate/usr/src/cmd/ndmpd/ndmp/ |
H A D | ndmpd_scsi.c | 578 scsi_link_t *sl; in scsi_find_sid_lun() local 581 for (sl = sa->sa_link_head.sl_next; sl && sl != &sa->sa_link_head; in scsi_find_sid_lun() 582 sl = sl->sl_next) { in scsi_find_sid_lun() 583 name = sasd_slink_name(sl); in scsi_find_sid_lun() 585 *sid = sl->sl_sid; in scsi_find_sid_lun() 586 *lun = sl->sl_lun; in scsi_find_sid_lun()
|