/illumos-gate/usr/src/uts/common/io/comstar/lu/stmf_sbd/ |
H A D | sbd.c | 637 for (sl = sbd_lu_list; sl; sl = sl->sl_next) { in sbd_find_and_lock_lu() 1822 sl->sl_pgr = (sbd_pgr_t *)(sl + 1); in sbd_create_register_lu() 1834 sl->sl_alias = sl->sl_name = sl->sl_meta_filename = p; in sbd_create_register_lu() 1839 sl->sl_alias = sl->sl_name = sl->sl_data_filename; in sbd_create_register_lu() 2196 sl->sl_pgr = (sbd_pgr_t *)(sl + 1); in sbd_create_standby_lu() 2203 sl->sl_name = sl->sl_meta_filename; in sbd_create_standby_lu() 2347 bzero(sl, sizeof (*sl)); in sbd_import_lu() 2349 sl->sl_pgr = (sbd_pgr_t *)(sl + 1); in sbd_import_lu() 2350 sl->sl_meta_filename = ((char *)sl) + sizeof (*sl) + in sbd_import_lu() 2544 sl->sl_data_vp = sl->sl_meta_vp; in sbd_import_lu() [all …]
|
H A D | sbd_zvol.c | 107 sbd_zvol_get_volume_params(sbd_lu_t *sl) in sbd_zvol_get_volume_params() argument 112 &sl->sl_blksize, /* volume block size */ 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() 138 uint64_t blksz = sl->sl_blksize; in sbd_zvol_numsegs() 164 if (len > sl->sl_max_xfer_len) in sbd_zvol_alloc_read_bufs() 251 if (len > sl->sl_max_xfer_len) in sbd_zvol_alloc_write_bufs() 264 blksize = sl->sl_blksize; in sbd_zvol_alloc_write_bufs() 358 sbd_zvol_rele_write_bufs_abort(sl, dbuf); in sbd_zvol_rele_write_bufs() 401 if (len > sl->sl_max_xfer_len) in sbd_zvol_copy_read() [all …]
|
H A D | sbd_scsi.c | 1910 s = sl->sl_lu_size >> sl->sl_data_blocksize_shift; in sbd_handle_read_capacity() 2062 if ((sl->sl_flags & in sbd_handle_mode_sense() 2069 if ((sl->sl_flags & in sbd_handle_mode_sense() 2978 if (sl->sl_mgmt_url) { in sbd_handle_inquiry() 3027 bcopy(sl->sl_serial_no, p + 4, sl->sl_serial_no_size); in sbd_handle_inquiry() 3143 s = sl->sl_lu_size >> sl->sl_data_blocksize_shift; in sbd_handle_inquiry() 3297 sl->sl_it_list = it; in sbd_new_task() 3940 sbd_pgr_reset(sl); in sbd_ctl() 3981 sbd_pgr_reset(sl); in sbd_lu_reset_state() 4001 if ((sl->sl_data_vtype == VREG) || (sl->sl_data_vtype == VBLK)) { in sbd_flush_data_cache() [all …]
|
H A D | ats_copy_mgr.c | 106 mutex_enter(&sl->sl_lock); 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() 203 mutex_enter(&sl->sl_lock); in sbd_ats_remove_by_task() 205 mutex_exit(&sl->sl_lock); in sbd_ats_remove_by_task() 221 mutex_exit(&sl->sl_lock); in sbd_ats_remove_by_task() 237 addr <<= sl->sl_data_blocksize_shift; in sbd_compare_and_write() 238 len <<= sl->sl_data_blocksize_shift; in sbd_compare_and_write() 515 addr <<= sl->sl_data_blocksize_shift; in sbd_handle_ats() 516 len <<= sl->sl_data_blocksize_shift; in sbd_handle_ats() [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 49 if (sl == NULL) in sl_init() 54 sl->sl_str = reallocarray(NULL, sl->sl_max, sizeof(char *)); in sl_init() 56 free(sl); in sl_init() 57 sl = NULL; in sl_init() 59 return sl; in sl_init() 69 if (sl->sl_cur == sl->sl_max - 1) { in sl_add() 79 sl->sl_str[sl->sl_cur++] = name; in sl_add() 100 free(sl); in sl_free() 129 sl->sl_str[j - 1] = sl->sl_str[j]; in sl_delete() [all …]
|
/illumos-gate/usr/src/cmd/man/ |
H A D | stringlist.c | 45 stringlist *sl; in sl_init() local 50 sl->sl_cur = 0; in sl_init() 52 sl->sl_str = malloc(sl->sl_max * sizeof (char *)); in sl_init() 56 return (sl); in sl_init() 63 if (sl->sl_cur == sl->sl_max - 1) { in sl_add() 65 sl->sl_str = realloc(sl->sl_str, sl->sl_max * sizeof (char *)); in sl_add() 69 sl->sl_str[sl->sl_cur++] = name; in sl_add() 80 if (sl == NULL) in sl_free() 82 if (sl->sl_str) { in sl_free() 86 free(sl->sl_str); in sl_free() [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() 67 sl->sl_ratio); 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() 142 sctp_listener_t *sl; in sctp_listener_conf_del() local 154 for (sl = list_head(&sctps->sctps_listener_conf); sl != NULL; in sctp_listener_conf_del() [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/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/os/ |
H A D | printf.c | 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() 148 if (sl & SL_USER) { in cprintf() 349 if (sl & log_global.lz_active) { in strlog() 352 cprintf(fmt, adx, sl, "", "", caller(), mid, sid, level, in strlog() 362 if (sl & log_global.lz_active) in vstrlog() [all …]
|
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_kutil.c | 825 smb_slist_t *sl, in smb_slist_constructor() argument 832 sl->sl_count = 0; in smb_slist_constructor() 843 smb_slist_t *sl) in smb_slist_destructor() argument 869 smb_slist_t *sl, in smb_slist_insert_head() argument 874 ++sl->sl_count; in smb_slist_insert_head() 890 ++sl->sl_count; in smb_slist_insert_tail() 906 if ((--sl->sl_count == 0) && (sl->sl_waiting)) { in smb_slist_remove() 927 rv = sl->sl_count; in smb_slist_move_tail() 930 sl->sl_count = 0; in smb_slist_move_tail() 977 cv_wait(&sl->sl_cv, &sl->sl_mutex); in smb_slist_wait_for_empty() [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/ndmpd/tlm/ |
H A D | tlm_lib.c | 356 scsi_link_t *sl; in tlm_get_scsi_sasd_entry() local 373 if (!sl) in tlm_get_scsi_sasd_entry() 995 sl->sl_type = type; in scsi_sasd_attach() 996 sl->sl_sa = sa; in scsi_sasd_attach() 997 sl->sl_lun = lun; in scsi_sasd_attach() 998 sl->sl_sid = sid; in scsi_sasd_attach() 1004 sl->sl_next = next; in scsi_sasd_attach() 1114 for (sl = sh->sl_next; sl != sh; sl = sl->sl_next) in scsi_get_devtype() 1115 if (sl->sl_sid == sid && sl->sl_lun == lun) in scsi_get_devtype() 1133 for (sl = sh->sl_next; sl != sh; sl = sl->sl_next) in scsi_dev_exists() [all …]
|
/illumos-gate/usr/src/cmd/ipf/tools/ |
H A D | ipmon.c | 856 if (sl->isl_p == IPPROTO_TCP || sl->isl_p == IPPROTO_UDP) { 858 hostname(res, sl->isl_v, (u_32_t *)&sl->isl_src), 862 hostname(res, sl->isl_v, (u_32_t *)&sl->isl_dst), 869 hostname(res, sl->isl_v, (u_32_t *)&sl->isl_dst), 876 hostname(res, sl->isl_v, (u_32_t *)&sl->isl_dst), 880 hostname(res, sl->isl_v, (u_32_t *)&sl->isl_src)); 883 hostname(res, sl->isl_v, (u_32_t *)&sl->isl_dst), 905 sl->isl_pkts[0], sl->isl_bytes[0], 906 sl->isl_pkts[1], sl->isl_bytes[1], 907 sl->isl_pkts[2], sl->isl_bytes[2], [all …]
|
/illumos-gate/usr/src/uts/common/io/ib/mgt/ibcm/ |
H A D | ibcm_path.c | 976 "Dest%d", sl->p_multi, sl->p_count, unicast_dgid_present); in ibcm_saa_path_rec() 1323 sl, NULL, in ibcm_get_single_pathrec() 1401 sgid_cnt = sl->p_count; in ibcm_get_multi_pathrec() 1744 sl, NULL, in ibcm_get_multi_pathrec() 2007 sl++; in ibcm_saa_get_agid() 3062 "#Dest=%d, #Path %d", sl->p_multi, sl->p_count, dinfo->num_dest, in ibcm_saa_ip_pr() 3330 sl, NULL, in ibcm_get_ip_spr() 3798 "DGID0: %llX:%llX", sl->p_sgid.gid_prefix, sl->p_sgid.gid_guid, in ibcm_process_get_ip_paths() 3869 sl->p_hca_guid, sl->p_port_num); in ibcm_process_get_ip_paths() 3897 sl[i].p_hca_guid, sl[i].p_port_num); in ibcm_process_get_ip_paths() [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/cmd/sgs/rtld/common/ |
H A D | dlfcns.c | 1069 Slookup sl = *slp; in dlsym_handle() local 1111 sl.sl_imap = nlmp; in dlsym_handle() 1163 sl.sl_imap = nlmp; in dlsym_handle() 1230 Slookup sl; in dlsym_core() local 1267 sl.sl_imap = hlmp; in dlsym_core() 1298 sl.sl_rsymndx = 0; in dlsym_core() 1299 sl.sl_rsym = NULL; in dlsym_core() 1328 sl.sl_imap = clmp; in dlsym_core() 1342 sl.sl_imap = hlmp; in dlsym_core() 1361 sl.sl_imap = hlmp; in dlsym_core() [all …]
|
H A D | analyze.c | 65 Slookup sl; in load_filtees() local 2616 Slookup sl; in lookup_sym_interpose() local 2686 sl = *slp; in lookup_sym_interpose() 2687 sl.sl_imap = lmp; in lookup_sym_interpose() 2719 sl = *slp; in lookup_sym_interpose() 2751 sl.sl_imap = lmp; in lookup_sym_interpose() 2790 Slookup sl; in lookup_sym_direct() local 2821 sl = *slp; in lookup_sym_direct() 2950 Slookup sl; in _lookup_sym() local 3049 sl = *slp; in _lookup_sym() [all …]
|
/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()
|