Home
last modified time | relevance | path

Searched refs:sd (Results 1 – 25 of 240) sorted by relevance

12345678910

/illumos-gate/usr/src/uts/common/io/rtw/
H A Dsmc93cx6.c73 #define CLOCK_PULSE(sd, rdy) { \ argument
81 while ((SEEPROM_STATUS_INB(sd) & rdy) == 0 && \
85 (void) SEEPROM_INB(sd); /* Clear clock */ \
94 read_seeprom(sd, buf, start_addr, count) in read_seeprom() argument
95 struct seeprom_descriptor *sd; in read_seeprom()
111 temp = sd->sd_MS ^ sd->sd_CS;
112 SEEPROM_OUTB(sd, temp ^ sd->sd_CK);
113 CLOCK_PULSE(sd, sd->sd_RDY);
121 temp ^= sd->sd_DO;
122 SEEPROM_OUTB(sd, temp);
[all …]
H A Dsmc93cx6var.h88 #define SEEPROM_INB(sd) \ argument
89 (((sd)->sd_regsize == 4) \
90 ? ddi_get32((sd)->sd_handle, \
91 (uint32_t *)((uintptr_t)(sd)->sd_base+ \
92 (sd)->sd_control_offset)) \
93 : ddi_get8((sd)->sd_handle, (uint8_t *)((sd)->sd_base+ \
94 (sd)->sd_control_offset)))
96 #define SEEPROM_OUTB(sd, value) { \ argument
97 if ((sd)->sd_regsize == 4) \
98 ddi_put32((sd)->sd_handle, \
[all …]
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_sd.c41 smb_sd_init(smb_sd_t *sd, uint8_t revision) in smb_sd_init() argument
43 bzero(sd, sizeof (smb_sd_t)); in smb_sd_init()
44 sd->sd_revision = revision; in smb_sd_init()
54 smb_sd_term(smb_sd_t *sd) in smb_sd_term() argument
56 ASSERT(sd); in smb_sd_term()
57 ASSERT((sd->sd_control & SE_SELF_RELATIVE) == 0); in smb_sd_term()
59 smb_sid_free(sd->sd_owner); in smb_sd_term()
60 smb_sid_free(sd->sd_group); in smb_sd_term()
61 smb_acl_free(sd->sd_dacl); in smb_sd_term()
62 smb_acl_free(sd->sd_sacl); in smb_sd_term()
[all …]
H A Dsmb_nt_transact_security.c62 smb_sd_t sd; in smb_nt_transact_query_security_info() local
98 status = smb_sd_read(sr, &sd, secinfo); in smb_nt_transact_query_security_info()
104 sdlen = smb_sd_len(&sd, secinfo); in smb_nt_transact_query_security_info()
106 smb_sd_term(&sd); in smb_nt_transact_query_security_info()
123 smb_sd_term(&sd); in smb_nt_transact_query_security_info()
127 smb_encode_sd(&xa->rep_data_mb, &sd, secinfo); in smb_nt_transact_query_security_info()
129 smb_sd_term(&sd); in smb_nt_transact_query_security_info()
155 smb_sd_t sd; in smb_nt_transact_set_security_info() local
196 status = smb_decode_sd(&xa->req_data_mb, &sd); in smb_nt_transact_set_security_info()
202 if (((secinfo & SMB_OWNER_SECINFO) && (sd.sd_owner == NULL)) || in smb_nt_transact_set_security_info()
[all …]
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_sd.c59 smb_sd_init(smb_sd_t *sd, uint8_t revision) in smb_sd_init() argument
61 bzero(sd, sizeof (smb_sd_t)); in smb_sd_init()
62 sd->sd_revision = revision; in smb_sd_init()
72 smb_sd_term(smb_sd_t *sd) in smb_sd_term() argument
74 assert(sd); in smb_sd_term()
75 assert((sd->sd_control & SE_SELF_RELATIVE) == 0); in smb_sd_term()
77 smb_sid_free(sd->sd_owner); in smb_sd_term()
78 smb_sid_free(sd->sd_group); in smb_sd_term()
79 smb_acl_free(sd->sd_dacl); in smb_sd_term()
80 smb_acl_free(sd->sd_sacl); in smb_sd_term()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_strio.c49 str_data_t *sd = io->io_data; in strio_read() local
50 size_t left = sd->str_base + sd->str_len - sd->str_ptr; in strio_read()
54 (void) strncpy(buf, sd->str_ptr, obytes); in strio_read()
55 sd->str_ptr += obytes; in strio_read()
65 str_data_t *sd = io->io_data; in strio_seek() local
73 nptr = sd->str_base + offset; in strio_seek()
76 nptr = sd->str_ptr + offset; in strio_seek()
79 nptr = sd->str_base + sd->str_len + offset; in strio_seek()
85 if (nptr < sd->str_base || nptr > sd->str_ptr + sd->str_len) in strio_seek()
88 sd->str_ptr = nptr; in strio_seek()
[all …]
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/
H A Dsrvsvc_sd.c110 smb_sd_t sd; in srvsvc_sd_set() local
119 smb_sd_init(&sd, 0); in srvsvc_sd_set()
120 status = srvsvc_sd_set_absolute(sdbuf, &sd); in srvsvc_sd_set()
122 smb_sd_term(&sd); in srvsvc_sd_set()
126 status = smb_sd_write(path, &sd, SMB_DACL_SECINFO); in srvsvc_sd_set()
128 smb_sd_term(&sd); in srvsvc_sd_set()
152 smb_sd_t sd; in srvsvc_sd_get() local
160 bzero(&sd, sizeof (smb_sd_t)); in srvsvc_sd_get()
163 status = srvsvc_sd_get_autohome(si, &sd); in srvsvc_sd_get()
169 status = smb_sd_read(path, &sd, SMB_ALL_SECINFO); in srvsvc_sd_get()
[all …]
/illumos-gate/usr/src/uts/common/sys/scsi/conf/
H A Ddevice.h190 int scsi_probe(struct scsi_device *sd, int (*callback)(void));
191 void scsi_unprobe(struct scsi_device *sd);
195 char *scsi_device_unit_address(struct scsi_device *sd);
216 int scsi_device_prop_get_int(struct scsi_device *sd,
221 int scsi_device_prop_lookup_byte_array(struct scsi_device *sd,
223 int scsi_device_prop_lookup_int_array(struct scsi_device *sd,
225 int scsi_device_prop_lookup_string(struct scsi_device *sd,
227 int scsi_device_prop_lookup_string_array(struct scsi_device *sd,
230 int scsi_device_prop_update_byte_array(struct scsi_device *sd,
232 int scsi_device_prop_update_int(struct scsi_device *sd,
[all …]
/illumos-gate/usr/src/uts/common/io/scsi/conf/
H A Dscsi_confsubr.c42 #define FILL_SCSI1_LUN(sd, pkt) \ argument
43 if ((sd->sd_address.a_lun > 0) && \
44 (sd->sd_inq->inq_ansi == 0x1)) { \
46 sd->sd_address.a_lun; \
91 static int check_vpd_page_support8083(struct scsi_device *sd,
93 static int send_scsi_INQUIRY(struct scsi_device *sd,
287 #define ROUTE (&sd->sd_address)
290 scsi_slave_do_rqsense(struct scsi_device *sd, int (*callback)()) in scsi_slave_do_rqsense() argument
321 FILL_SCSI1_LUN(sd, rq_pkt); in scsi_slave_do_rqsense()
357 scsi_slave(struct scsi_device *sd, int (*callback)()) in scsi_slave() argument
[all …]
/illumos-gate/usr/src/cmd/mdb/common/modules/specfs/
H A Dspecfs.c122 snode_cb(uintptr_t addr, const struct snode *snode, snode_cbdata_t *sd) in snode_cb() argument
146 if (sd->sd_major != -1 && sd->sd_major != major) in snode_cb()
149 if (sd->sd_minor != -1 && sd->sd_minor != minor) in snode_cb()
152 if (sd->sd_verbose) { in snode_cb()
167 snode_cbdata_t sd; in snode() local
171 sd.sd_major = -1; in snode()
172 sd.sd_minor = -1; in snode()
173 sd.sd_verbose = !(flags & DCMD_PIPE_OUT); in snode()
181 sd.sd_major = getmajor(dev); in snode()
182 sd.sd_minor = getminor(dev); in snode()
[all …]
/illumos-gate/usr/src/cmd/pools/poold/com/sun/solaris/domain/pools/
H A DStatisticList.java500 private double sd; field in StatisticOperations
528 sd = 0; in calc_sd()
534 sd += java.lang.Math.pow(val.doubleValue() - mean, 2); in calc_sd()
536 sd /= statistics.size(); in calc_sd()
537 sd = java.lang.Math.sqrt(sd); in calc_sd()
554 target -= 3 * sd; in toZoneString()
556 target += 3 * sd; in toZoneString()
563 buf.append("\n\tsd: " + f.format(sd)); in toZoneString()
565 buf.append("\n\t\tC:" + f.format(target - sd)); in toZoneString()
566 buf.append("-" + f.format(target + sd)); in toZoneString()
[all …]
/illumos-gate/usr/src/cmd/sendmail/libmilter/
H A Dlibmilter.h124 # define ValidSocket(sd) ((sd) >= 0) argument
181 # define FD_RD_INIT(sd, rds, excs) \ argument
182 (rds).fd = (sd); \
186 # define FD_WR_INIT(sd, wrs) \ argument
187 (wrs).fd = (sd); \
191 # define FD_IS_RD_EXC(sd, rds, excs) \ argument
194 # define FD_IS_WR_RDY(sd, wrs) \ argument
197 # define FD_IS_RD_RDY(sd, rds, excs) \ argument
200 # define FD_WR_READY(sd, excs, timeout) \ argument
203 # define FD_RD_READY(sd, rds, excs, timeout) \ argument
[all …]
H A Dcomm.c59 mi_rd_cmd(sd, timeout, cmd, rlen, name) in mi_rd_cmd() argument
60 socket_t sd; in mi_rd_cmd()
81 FD_RD_INIT(sd, rds, excs);
82 ret = FD_RD_READY(sd, rds, excs, timeout);
91 if (FD_IS_RD_EXC(sd, rds, excs))
97 len = MI_SOCK_READ(sd, data + i, sizeof data - i);
154 FD_RD_INIT(sd, rds, excs);
155 ret = FD_RD_READY(sd, rds, excs, timeout);
164 if (FD_IS_RD_EXC(sd, rds, excs))
170 len = MI_SOCK_READ(sd, buf + i, expl - i);
[all …]
/illumos-gate/usr/src/uts/common/io/scsi/adapters/scsi_vhci/fops/
H A Dtpgs.c59 std_device_probe(struct scsi_device *sd, struct scsi_inquiry *inq, in std_device_probe() argument
81 if (vhci_tpgs_get_target_fo_mode(sd, &mode, &state, &xlf, &preferred)) { in std_device_probe()
83 "mode: sd(%p)", (void *) sd)); in std_device_probe()
116 std_device_unprobe(struct scsi_device *sd, void *ctpriv) in std_device_unprobe() argument
125 std_activate_explicit(struct scsi_device *sd, int xlf_capable) in std_activate_explicit() argument
137 std_process_cmplt_pkt(struct scsi_device *sd, struct scsi_pkt *pkt, in std_process_cmplt_pkt() argument
188 (void *)sd)); in std_process_cmplt_pkt()
200 " path activation", (void *)sd)); in std_process_cmplt_pkt()
205 "path activation for %p\n", (void *)sd)); in std_process_cmplt_pkt()
211 "path activation for %p\n", (void *)sd)); in std_process_cmplt_pkt()
[all …]
H A Dsym_hds.c60 static int hds_sym_get_opinfo(struct scsi_device *sd,
143 hds_sym_device_probe(struct scsi_device *sd, struct scsi_inquiry *stdinq, in hds_sym_device_probe() argument
213 hds_sym_device_unprobe(struct scsi_device *sd, void *ctpriv) in hds_sym_device_unprobe() argument
228 hds_get_inquiry_vpd_page(struct scsi_device *sd, unsigned char page, in hds_get_inquiry_vpd_page() argument
248 ap = &sd->sd_address; in hds_get_inquiry_vpd_page()
278 hds_sym_get_opinfo(struct scsi_device *sd, struct scsi_path_opinfo *opinfo, in hds_sym_get_opinfo() argument
294 "preferred bit set ", (void*)sd)); in hds_sym_get_opinfo()
299 if (hds_get_inquiry_vpd_page(sd, HDS_INQ_PAGE_E0, inq_vpd_buf, in hds_sym_get_opinfo()
303 "get inquiry Page %x", (void*)sd, HDS_INQ_PAGE_E0)); in hds_sym_get_opinfo()
310 (void*)sd)); in hds_sym_get_opinfo()
[all …]
/illumos-gate/usr/src/common/smbclnt/
H A Dsmbfs_ntacl.c416 smbfs_acl_free_sd(i_ntsd_t *sd) in smbfs_acl_free_sd() argument
419 if (sd == NULL) in smbfs_acl_free_sd()
422 ifree_sid(sd->sd_owner); in smbfs_acl_free_sd()
423 ifree_sid(sd->sd_group); in smbfs_acl_free_sd()
424 ifree_acl(sd->sd_sacl); in smbfs_acl_free_sd()
425 ifree_acl(sd->sd_dacl); in smbfs_acl_free_sd()
427 FREESZ(sd, sizeof (*sd)); in smbfs_acl_free_sd()
441 i_ntsd_t *sd = NULL; in md_get_ntsd() local
446 if ((sd = MALLOC(sizeof (*sd))) == NULL) in md_get_ntsd()
448 bzero(sd, sizeof (*sd)); in md_get_ntsd()
[all …]
/illumos-gate/usr/src/contrib/bhyve/x86/
H A Dsegments.h89 #define USD_GETBASE(sd) (((sd)->sd_lobase) | (sd)->sd_hibase << 24) argument
90 #define USD_SETBASE(sd, b) (sd)->sd_lobase = (b); \ argument
91 (sd)->sd_hibase = ((b) >> 24);
92 #define USD_GETLIMIT(sd) (((sd)->sd_lolimit) | (sd)->sd_hilimit << 16) argument
93 #define USD_SETLIMIT(sd, l) (sd)->sd_lolimit = (l); \ argument
94 (sd)->sd_hilimit = ((l) >> 16);
115 struct segment_descriptor sd; member
139 struct user_segment_descriptor sd; member
/illumos-gate/usr/src/boot/sys/x86/include/
H A Dsegments.h88 #define USD_GETBASE(sd) (((sd)->sd_lobase) | (sd)->sd_hibase << 24) argument
89 #define USD_SETBASE(sd, b) (sd)->sd_lobase = (b); \ argument
90 (sd)->sd_hibase = ((b) >> 24);
91 #define USD_GETLIMIT(sd) (((sd)->sd_lolimit) | (sd)->sd_hilimit << 16) argument
92 #define USD_SETLIMIT(sd, l) (sd)->sd_lolimit = (l); \ argument
93 (sd)->sd_hilimit = ((l) >> 16);
114 struct segment_descriptor sd; member
138 struct user_segment_descriptor sd; member
/illumos-gate/usr/src/uts/common/io/scsi/impl/
H A Dscsi_fm.c50 scsi_fm_init(struct scsi_device *sd) in scsi_fm_init() argument
52 dev_info_t *dip = sd->sd_dev; in scsi_fm_init()
61 sd->sd_fm_capable = ddi_prop_get_int(DDI_DEV_T_ANY, dip, in scsi_fm_init()
73 if (sd->sd_fm_capable != DDI_FM_NOT_CAPABLE) in scsi_fm_init()
74 ddi_fm_init(dip, &sd->sd_fm_capable, NULL); in scsi_fm_init()
81 scsi_fm_fini(struct scsi_device *sd) in scsi_fm_fini() argument
83 dev_info_t *dip = sd->sd_dev; in scsi_fm_fini()
85 if (sd->sd_fm_capable != DDI_FM_NOT_CAPABLE) in scsi_fm_fini()
94 scsi_fm_ereport_post(struct scsi_device *sd, int path_instance, in scsi_fm_ereport_post() argument
99 dev_info_t *dip = sd->sd_dev; in scsi_fm_ereport_post()
/illumos-gate/usr/src/stand/lib/sock/
H A Dsock_test.c155 st_local_socket_close(int sd) in st_local_socket_close() argument
158 return (socket_close(sd)); in st_local_socket_close()
165 st_local_accept(int sd, struct sockaddr *addr, socklen_t *addr_len) in st_local_accept() argument
168 return (accept(sd, addr, addr_len)); in st_local_accept()
175 st_local_bind(int sd, const struct sockaddr *name, socklen_t namelen) in st_local_bind() argument
178 return (bind(sd, name, namelen)); in st_local_bind()
185 st_local_connect(int sd, const struct sockaddr *addr, socklen_t addr_len) in st_local_connect() argument
188 return (connect(sd, addr, addr_len)); in st_local_connect()
195 st_local_listen(int sd, int backlog) in st_local_listen() argument
198 return (listen(sd, backlog)); in st_local_listen()
[all …]
/illumos-gate/usr/src/cmd/rpcsvc/rpc.bootparamd/
H A Dbootparam_ip_route.c71 mibget(int sd) in mibget() argument
97 if (putmsg(sd, &ctlbuf, nilp(struct strbuf), flags) == -1) { in mibget()
111 getcode = getmsg(sd, &ctlbuf, nilp(struct strbuf), &flags); in mibget()
188 getcode = getmsg(sd, nilp(struct strbuf), &databuf, &flags); in mibget()
234 int sd; in get_ip_route() local
251 sd = open("/dev/ip", O_RDWR); in get_ip_route()
252 if (sd == -1) { in get_ip_route()
254 (void) close(sd); in get_ip_route()
260 if ((item_list = mibget(sd)) == nilp(mib_item_t)) { in get_ip_route()
262 (void) close(sd); in get_ip_route()
[all …]
/illumos-gate/usr/src/uts/common/io/scsi/adapters/smrt/
H A Dsmrt_hba.c23 scsi_hba_tran_t *hba_tran, struct scsi_device *sd) in smrt_ctrl_tran_tgt_init() argument
70 scsi_hba_tran_t *hba_tran, struct scsi_device *sd) in smrt_logvol_tran_tgt_init() argument
87 ua = scsi_device_unit_address(sd); in smrt_logvol_tran_tgt_init()
134 smtg->smtg_scsi_dev = sd; in smrt_logvol_tran_tgt_init()
135 VERIFY(sd->sd_dev == tgt_dip); in smrt_logvol_tran_tgt_init()
137 scsi_device_hba_private_set(sd, smtg); in smrt_logvol_tran_tgt_init()
145 scsi_hba_tran_t *hba_tran, struct scsi_device *sd) in smrt_logvol_tran_tgt_free() argument
150 smrt_target_t *smtg = scsi_device_hba_private_get(sd); in smrt_logvol_tran_tgt_free()
153 VERIFY(smtg->smtg_scsi_dev == sd); in smrt_logvol_tran_tgt_free()
160 scsi_device_hba_private_set(sd, NULL); in smrt_logvol_tran_tgt_free()
[all …]
/illumos-gate/usr/src/cmd/refer/
H A Drefer5.c45 char t[100], t1[MXSIG], t2[100], format[10], *sd, *stline; in putsig() local
73 sd = t2; in putsig()
75 int n = strlen(sd) - dtlen; in putsig()
77 sd += n; in putsig()
80 sd = ""; in putsig()
84 sprintf(t, format, t1, sd); in putsig()
88 for (sd = t; *sd; sd++) in putsig()
90 if (*--sd == '-') { in putsig()
92 *sd = 0; in putsig()
107 another = (sd = lookat()) ? prefix(".[", sd) : 0; in putsig()
[all …]
/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Dacl_print.c108 smbfs_acl_print_sd(FILE *fp, i_ntsd_t *sd) in smbfs_acl_print_sd() argument
112 sd->sd_revision, sd->sd_flags); in smbfs_acl_print_sd()
114 fprint_sid(fp, sd->sd_owner); in smbfs_acl_print_sd()
116 fprint_sid(fp, sd->sd_group); in smbfs_acl_print_sd()
118 fprint_ntacl(fp, sd->sd_sacl); in smbfs_acl_print_sd()
120 fprint_ntacl(fp, sd->sd_dacl); in smbfs_acl_print_sd()
/illumos-gate/usr/src/uts/common/sys/scsi/impl/
H A Dtransport.h89 struct scsi_device *sd);
92 struct scsi_device *sd,
99 struct scsi_device *sd);
155 struct scsi_device *sd,
160 struct scsi_device *sd,
384 struct scsi_device *sd,
388 struct scsi_device *sd,
393 struct scsi_device *sd,
398 struct scsi_device *sd,
405 struct scsi_device *sd);
[all …]

12345678910