/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | svcctl_svc.c | 333 struct svcctl_Close *param = arg; in svcctl_s_Close() local 334 ndr_hdid_t *id = (ndr_hdid_t *)¶m->handle; in svcctl_s_Close() 338 bzero(¶m->result_handle, sizeof (svcctl_handle_t)); in svcctl_s_Close() 339 param->status = ERROR_SUCCESS; in svcctl_s_Close() 349 struct svcctl_ControlService *param = arg; in svcctl_s_ControlService() local 350 ndr_hdid_t *id = (ndr_hdid_t *)¶m->service_handle; in svcctl_s_ControlService() 358 bzero(param, sizeof (struct svcctl_ControlService)); in svcctl_s_ControlService() 359 param->status = ERROR_INVALID_HANDLE; in svcctl_s_ControlService() 366 bzero(param, sizeof (struct svcctl_ControlService)); in svcctl_s_ControlService() 367 param->status = ERROR_INVALID_HANDLE; in svcctl_s_ControlService() [all …]
|
H A D | samr_svc.c | 248 struct samr_Connect *param = arg; in samr_s_Connect() local 253 bcopy(id, ¶m->handle, sizeof (samr_handle_t)); in samr_s_Connect() 254 param->status = 0; in samr_s_Connect() 256 bzero(¶m->handle, sizeof (samr_handle_t)); in samr_s_Connect() 257 param->status = NT_SC_ERROR(NT_STATUS_NO_MEMORY); in samr_s_Connect() 272 struct samr_CloseHandle *param = arg; in samr_s_CloseHandle() local 273 ndr_hdid_t *id = (ndr_hdid_t *)¶m->handle; in samr_s_CloseHandle() 277 bzero(¶m->result_handle, sizeof (samr_handle_t)); in samr_s_CloseHandle() 278 param->status = 0; in samr_s_CloseHandle() 288 struct samr_QuerySecObject *param = arg; in samr_s_QuerySecObject() local [all …]
|
H A D | lsar_svc.c | 164 struct mslsa_OpenPolicy2 *param = arg; in lsarpc_s_OpenDomainHandle() local 168 bcopy(id, ¶m->domain_handle, sizeof (mslsa_handle_t)); in lsarpc_s_OpenDomainHandle() 169 param->status = NT_STATUS_SUCCESS; in lsarpc_s_OpenDomainHandle() 171 bzero(¶m->domain_handle, sizeof (mslsa_handle_t)); in lsarpc_s_OpenDomainHandle() 172 param->status = NT_SC_ERROR(NT_STATUS_NO_MEMORY); in lsarpc_s_OpenDomainHandle() 189 struct mslsa_CloseHandle *param = arg; in lsarpc_s_CloseHandle() local 190 ndr_hdid_t *id = (ndr_hdid_t *)¶m->handle; in lsarpc_s_CloseHandle() 194 bzero(¶m->result_handle, sizeof (param->result_handle)); in lsarpc_s_CloseHandle() 195 param->status = NT_STATUS_SUCCESS; in lsarpc_s_CloseHandle() 206 struct mslsa_QuerySecurityObject *param = arg; in lsarpc_s_QuerySecurityObject() local [all …]
|
H A D | spoolss_svc.c | 230 struct spoolss_OpenPrinter *param = arg; in spoolss_s_OpenPrinter() local 231 char *name = (char *)param->printer_name; in spoolss_s_OpenPrinter() 236 bzero(¶m->handle, sizeof (spoolss_handle_t)); in spoolss_s_OpenPrinter() 237 param->status = ERROR_INVALID_PRINTER_NAME; in spoolss_s_OpenPrinter() 245 bzero(¶m->handle, sizeof (spoolss_handle_t)); in spoolss_s_OpenPrinter() 246 param->status = ERROR_NOT_ENOUGH_MEMORY; in spoolss_s_OpenPrinter() 250 bcopy(id, ¶m->handle, sizeof (spoolss_handle_t)); in spoolss_s_OpenPrinter() 251 param->status = 0; in spoolss_s_OpenPrinter() 259 struct spoolss_StartPagePrinter *param = arg; in spoolss_s_StartPagePrinter() local 261 param->status = ERROR_SUCCESS; in spoolss_s_StartPagePrinter() [all …]
|
H A D | winreg_svc.c | 317 struct winreg_OpenHKCR *param = arg; in winreg_s_OpenHK() local 323 bzero(¶m->handle, sizeof (winreg_handle_t)); in winreg_s_OpenHK() 324 param->status = ERROR_ACCESS_DENIED; in winreg_s_OpenHK() 326 bcopy(id, ¶m->handle, sizeof (winreg_handle_t)); in winreg_s_OpenHK() 327 param->status = ERROR_SUCCESS; in winreg_s_OpenHK() 345 struct winreg_Close *param = arg; in winreg_s_Close() local 346 ndr_hdid_t *id = (ndr_hdid_t *)¶m->handle; in winreg_s_Close() 352 bzero(¶m->result_handle, sizeof (winreg_handle_t)); in winreg_s_Close() 353 param->status = ERROR_SUCCESS; in winreg_s_Close() 397 struct winreg_CreateKey *param = arg; in winreg_s_CreateKey() local [all …]
|
H A D | srvsvc_svc.c | 254 srvsvc_NetConnectEnum_t *param = arg; in srvsvc_s_NetConnectEnum() local 266 qualifier = (char *)param->qualifier; in srvsvc_s_NetConnectEnum() 273 param->total_entries = srvsvc_open_connections(qualtype, qualifier); in srvsvc_s_NetConnectEnum() 274 if (param->total_entries == 0) { in srvsvc_s_NetConnectEnum() 275 bzero(param, sizeof (srvsvc_NetConnectEnum_t)); in srvsvc_s_NetConnectEnum() 276 param->status = ERROR_SUCCESS; in srvsvc_s_NetConnectEnum() 282 se.se_level = param->info.level; in srvsvc_s_NetConnectEnum() 283 se.se_ntotal = param->total_entries; in srvsvc_s_NetConnectEnum() 286 if (param->pref_max_len == SMB_SRVSVC_MAXPREFLEN || in srvsvc_s_NetConnectEnum() 287 param->pref_max_len > SMB_SRVSVC_MAXBUFLEN) in srvsvc_s_NetConnectEnum() [all …]
|
H A D | netdfs.c | 171 struct netdfs_getver *param = arg; in netdfs_s_getver() local 173 param->version = DFS_MANAGER_VERSION_NT4; in netdfs_s_getver() 186 netdfs_add_t *param = arg; in netdfs_s_add() local 189 const char *uncpath = (const char *)param->dfs_path; in netdfs_s_add() 194 param->status = ERROR_ACCESS_DENIED; in netdfs_s_add() 198 if (param->server == NULL || param->share == NULL) { in netdfs_s_add() 199 param->status = ERROR_INVALID_PARAMETER; in netdfs_s_add() 203 switch (param->flags) { in netdfs_s_add() 210 param->status = ERROR_INVALID_PARAMETER; in netdfs_s_add() 216 param->status = status; in netdfs_s_add() [all …]
|
H A D | eventlog_svc.c | 267 struct logr_EventLogClose *param = arg; in logr_s_EventLogClose() local 268 ndr_hdid_t *id = (ndr_hdid_t *)¶m->handle; in logr_s_EventLogClose() 272 bzero(¶m->result_handle, sizeof (logr_handle_t)); in logr_s_EventLogClose() 273 param->status = NT_SC_ERROR(NT_STATUS_INVALID_HANDLE); in logr_s_EventLogClose() 279 bzero(¶m->result_handle, sizeof (logr_handle_t)); in logr_s_EventLogClose() 280 param->status = NT_STATUS_SUCCESS; in logr_s_EventLogClose() 294 struct logr_EventLogOpen *param = arg; in logr_s_EventLogOpen() local 300 bzero(¶m->handle, sizeof (logr_handle_t)); in logr_s_EventLogOpen() 301 param->status = NT_SC_ERROR(NT_STATUS_ACCESS_DENIED); in logr_s_EventLogOpen() 305 if (param->log_name.length != 0) in logr_s_EventLogOpen() [all …]
|
H A D | wkssvc_svc.c | 72 struct mslm_NetWkstaGetInfo *param = arg; in wkssvc_s_NetWkstaGetInfo() local 92 bzero(param, sizeof (struct mslm_NetWkstaGetInfo)); in wkssvc_s_NetWkstaGetInfo() 93 param->status = ERROR_NOT_ENOUGH_MEMORY; in wkssvc_s_NetWkstaGetInfo() 99 param->result.level = param->level; in wkssvc_s_NetWkstaGetInfo() 100 param->result.bufptr.nullptr = (void *)rb; in wkssvc_s_NetWkstaGetInfo() 102 switch (param->level) { in wkssvc_s_NetWkstaGetInfo() 152 param->result.bufptr.nullptr = 0; in wkssvc_s_NetWkstaGetInfo() 158 bzero(param, sizeof (struct mslm_NetWkstaGetInfo)); in wkssvc_s_NetWkstaGetInfo() 159 param->status = status; in wkssvc_s_NetWkstaGetInfo() 171 struct mslm_NetWkstaTransportEnum *param = arg; in wkssvc_s_NetWkstaTransportEnum() local [all …]
|
H A D | mlsvc_netr.c | 96 struct netr_ServerReqChallenge *param = arg; in netr_s_ServerReqChallenge() local 98 bzero(param, sizeof (struct netr_ServerReqChallenge)); in netr_s_ServerReqChallenge() 99 param->status = NT_SC_ERROR(NT_STATUS_ACCESS_DENIED); in netr_s_ServerReqChallenge() 110 struct netr_ServerAuthenticate2 *param = arg; in netr_s_ServerAuthenticate2() local 112 bzero(param, sizeof (struct netr_ServerAuthenticate2)); in netr_s_ServerAuthenticate2() 113 param->status = NT_SC_ERROR(NT_STATUS_ACCESS_DENIED); in netr_s_ServerAuthenticate2() 124 struct netr_PasswordSet *param = arg; in netr_s_ServerPasswordSet() local 126 bzero(param, sizeof (struct netr_PasswordSet)); in netr_s_ServerPasswordSet() 127 param->status = NT_SC_ERROR(NT_STATUS_ACCESS_DENIED); in netr_s_ServerPasswordSet() 138 struct netr_SamLogon *param = arg; in netr_s_SamLogon() local [all …]
|
/illumos-gate/usr/src/lib/libpkg/common/ |
H A D | ckparam.c | 47 static int proc_name(char *param, char *value); 48 static int proc_arch(char *param, char *value); 49 static int proc_version(char *param, char *value); 50 static int proc_category(char *param, char *value); 51 static int bad_first_char(char *param, char *value); 52 static int not_alnum(char *param, char *pt); 53 static int not_ascii(char *param, char *pt); 54 static int too_long(char *param, char *pt, int len); 55 static int isnull(char *param, char *pt); 58 ckparam(char *param, char *val) in ckparam() argument [all …]
|
/illumos-gate/usr/src/cmd/bhyve/common/ |
H A D | hda_reg.h | 312 #define HDA_CMD_SET_CONV_STREAM_CHAN_STREAM(param) \ argument 313 (((param) << HDA_CMD_CONV_STREAM_CHAN_STREAM_SHIFT) & \ 315 #define HDA_CMD_SET_CONV_STREAM_CHAN_CHAN(param) \ argument 316 (((param) << HDA_CMD_CONV_STREAM_CHAN_CHAN_SHIFT) & \ 369 #define HDA_CMD_SET_PIN_WIDGET_CTRL_VREF_ENABLE(param) \ argument 370 (((param) << HDA_CMD_SET_PIN_WIDGET_CTRL_VREF_ENABLE_SHIFT) & \ 406 #define HDA_CMD_SET_UNSOLICITED_RESPONSE_TAG(param) \ argument 407 (((param) << HDA_CMD_SET_UNSOLICITED_RESPONSE_TAG_SHIFT) & \ 770 #define HDA_PARAM_VENDOR_ID_VENDOR_ID(param) \ argument 771 (((param) & HDA_PARAM_VENDOR_ID_VENDOR_ID_MASK) >> \ [all …]
|
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_write.c | 50 smb_rw_param_t *param; in smb_pre_write() local 55 param = kmem_zalloc(sizeof (smb_rw_param_t), KM_SLEEP); in smb_pre_write() 56 sr->arg.rw = param; in smb_pre_write() 57 param->rw_magic = SMB_RW_MAGIC; in smb_pre_write() 61 param->rw_count = (uint32_t)count; in smb_pre_write() 62 param->rw_offset = (uint64_t)off; in smb_pre_write() 63 param->rw_vdb.vdb_uio.uio_loffset = (offset_t)param->rw_offset; in smb_pre_write() 81 smb_rw_param_t *param = sr->arg.rw; in smb_com_write() local 92 if (param->rw_count == 0) { in smb_com_write() 93 rc = smb_write_truncate(sr, param); in smb_com_write() [all …]
|
H A D | smb_read.c | 60 smb_rw_param_t *param; in smb_pre_read() local 66 param = kmem_zalloc(sizeof (smb_rw_param_t), KM_SLEEP); in smb_pre_read() 67 sr->arg.rw = param; in smb_pre_read() 72 param->rw_offset = (uint64_t)off_low; in smb_pre_read() 73 param->rw_count = (uint32_t)count; in smb_pre_read() 74 param->rw_mincnt = 0; in smb_pre_read() 92 smb_rw_param_t *param = sr->arg.rw; in smb_com_read() local 104 if (param->rw_count > SMB_CORE_READ_MAX) in smb_com_read() 105 param->rw_count = SMB_CORE_READ_MAX; in smb_com_read() 107 if ((rc = smb_common_read(sr, param)) != 0) { in smb_com_read() [all …]
|
/illumos-gate/usr/src/lib/udapl/udapl_tavor/common/ |
H A D | dapl_ep_free.c | 72 DAT_EP_PARAM *param; in dapl_ep_free() local 78 param = &ep_ptr->param; in dapl_ep_free() 85 ep_ptr->param.ep_state == DAT_EP_STATE_DISCONNECTED)) { in dapl_ep_free() 91 if (ep_ptr->param.ep_state == DAT_EP_STATE_RESERVED || in dapl_ep_free() 92 ep_ptr->param.ep_state == DAT_EP_STATE_PASSIVE_CONNECTION_PENDING || in dapl_ep_free() 93 ep_ptr->param.ep_state == in dapl_ep_free() 97 ep_ptr->param.ep_state, ep_ptr); in dapl_ep_free() 116 if (ep_ptr->param.ep_state == DAT_EP_STATE_CONNECTED || in dapl_ep_free() 117 ep_ptr->param.ep_state == DAT_EP_STATE_ACTIVE_CONNECTION_PENDING || in dapl_ep_free() 118 ep_ptr->param.ep_state == DAT_EP_STATE_COMPLETION_PENDING || in dapl_ep_free() [all …]
|
H A D | dapl_cr_accept.c | 100 cr_ptr->param.local_ep_handle != NULL)) { in dapl_cr_accept() 124 ep_handle = cr_ptr->param.local_ep_handle; in dapl_cr_accept() 125 if ((((DAPL_EP *) ep_handle)->param.ep_state != in dapl_cr_accept() 127 (((DAPL_EP *)ep_handle)->param.ep_state != in dapl_cr_accept() 133 if (((DAPL_EP *)ep_handle)->param.ep_state != in dapl_cr_accept() 153 if ((ep_ptr->param.pz_handle == NULL) || in dapl_cr_accept() 154 DAPL_BAD_HANDLE(ep_ptr->param.pz_handle, DAPL_MAGIC_PZ) || in dapl_cr_accept() 155 (ep_ptr->param.connect_evd_handle == NULL) || in dapl_cr_accept() 156 DAPL_BAD_HANDLE(ep_ptr->param.connect_evd_handle, DAPL_MAGIC_EVD) || in dapl_cr_accept() 157 !(((DAPL_EVD *)ep_ptr->param.connect_evd_handle)->evd_flags & in dapl_cr_accept() [all …]
|
H A D | dapl_rmr_bind.c | 112 if (DAT_EP_STATE_CONNECTED != ep_ptr->param.ep_state) { in dapli_rmr_bind_fuse() 119 dapl_mr_get_address(lmr->param.region_desc, lmr->param.mem_type), in dapli_rmr_bind_fuse() 120 lmr->param.length, in dapli_rmr_bind_fuse() 129 if ((ep_ptr->param.pz_handle != lmr->param.pz_handle) || in dapli_rmr_bind_fuse() 130 (ep_ptr->param.pz_handle != rmr->param.pz_handle)) { in dapli_rmr_bind_fuse() 136 ep_ptr->param.ep_attr.request_completion_flags, completion_flags) || in dapli_rmr_bind_fuse() 138 ep_ptr->param.ep_attr.request_completion_flags, completion_flags) || in dapli_rmr_bind_fuse() 141 ep_ptr->param.ep_attr.request_completion_flags, completion_flags)) { in dapli_rmr_bind_fuse() 172 rmr->param.mem_priv = mem_priv; in dapli_rmr_bind_fuse() 173 rmr->param.lmr_triplet = *lmr_triplet; in dapli_rmr_bind_fuse() [all …]
|
H A D | dapl_ep_connect.c | 118 if (DAPL_BAD_HANDLE(ep_ptr->param.connect_evd_handle, DAPL_MAGIC_EVD)) { in dapl_ep_connect() 139 if (ep_ptr->param.pz_handle == NULL || in dapl_ep_connect() 140 DAPL_BAD_HANDLE(ep_ptr->param.pz_handle, DAPL_MAGIC_PZ)) { in dapl_ep_connect() 196 if (ep_ptr->param.pz_handle == NULL || in dapl_ep_connect() 197 DAPL_BAD_HANDLE(ep_ptr->param.pz_handle, DAPL_MAGIC_PZ) || in dapl_ep_connect() 198 ep_ptr->param.connect_evd_handle == NULL || in dapl_ep_connect() 199 DAPL_BAD_HANDLE(ep_ptr->param.connect_evd_handle, in dapl_ep_connect() 201 !(((DAPL_EVD *)ep_ptr->param.connect_evd_handle)->evd_flags & in dapl_ep_connect() 203 (ep_ptr->param.recv_evd_handle != DAT_HANDLE_NULL && in dapl_ep_connect() 204 (DAPL_BAD_HANDLE(ep_ptr->param.recv_evd_handle, in dapl_ep_connect() [all …]
|
/illumos-gate/usr/src/tools/smatch/src/validation/doc/ |
H A D | cdoc.cdoc | 7 int a(int param, int arg); 12 int b(int param, int arg); 18 int c(int param, int arg); 24 int d(int param, int arg); 31 int e(int param, int arg); 35 // @param: desc param 39 int f(int param, int arg); 44 // @param: desc param 49 int g(int param, int arg); 53 // @return: ``1`` if @param is zero, [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/ilbd/ilb/ |
H A D | ilb_probe.c | 169 parse_probe_param(char *argv[], probe_param_t *param) in parse_probe_param() argument 176 param->probe = ping_probe; in parse_probe_param() 182 param->probe = tcp_probe; in parse_probe_param() 183 param->proto = IPPROTO_TCP; in parse_probe_param() 185 param->probe = udp_probe; in parse_probe_param() 186 param->proto = IPPROTO_UDP; in parse_probe_param() 193 if (inet_pton(AF_INET6, argv[1], ¶m->vip) == 0) in parse_probe_param() 198 IN6_INADDR_TO_V4MAPPED(&v4addr, ¶m->vip); in parse_probe_param() 209 if (inet_pton(AF_INET6, argv[2], ¶m->srv_addr) == 0) in parse_probe_param() 214 IN6_INADDR_TO_V4MAPPED(&v4addr, ¶m->srv_addr); in parse_probe_param() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/sbin/dhcpagent/ |
H A D | defaults.c | 82 char *param, *pastv6, *value, *end; in df_build_cache() local 115 if ((param = strchr(entry, '.')) == NULL) { in df_build_cache() 116 pastv6 = param = entry; in df_build_cache() 118 pastv6 = ++param; in df_build_cache() 119 if (strncasecmp(param, "v6.", 3) == 0) in df_build_cache() 135 for (; *param != '\0'; param++) in df_build_cache() 136 *param = toupper(*param); in df_build_cache() 165 df_get_string(const char *if_name, boolean_t isv6, uint_t param) in df_get_string() argument 175 if (param >= (sizeof (defaults) / sizeof (*defaults))) in df_get_string() 184 return (defaults[param].df_default); in df_get_string() [all …]
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | smatch_untracked_param.c | 44 typedef void (untracked_hook)(struct expression *call, int param); 51 void add_untracked_param_hook(void (func)(struct expression *call, int param)) in add_untracked_param_hook() argument 58 static void call_untracked_callbacks(struct expression *expr, int param) in call_untracked_callbacks() argument 63 (*fn)(expr, param); in call_untracked_callbacks() 67 void add_lost_param_hook(void (func)(struct expression *call, int param)) in add_lost_param_hook() argument 74 static void call_lost_callbacks(struct expression *expr, int param) in call_lost_callbacks() argument 79 (*fn)(expr, param); in call_lost_callbacks() 83 static void assume_tracked(struct expression *call_expr, int param, char *key, char *value) in assume_tracked() argument 88 static char *get_array_from_key(struct expression *expr, int param, const char *key, struct symbol … in get_array_from_key() argument 92 arg = get_argument_from_call_expr(expr->args, param); in get_array_from_key() [all …]
|
/illumos-gate/usr/src/test/crypto-tests/tests/modes/aes/ccm/ |
H A D | aes_ccm.c | 41 uint64_t param[PARAM_SIZE_64]; in main() local 53 bzero(param, sizeof (param)); in main() 54 ccm_init_params(param, DATALEN[i] - AUTHLEN[i], NONCE[i], in main() 57 args.param = param; in main() 60 VERIFY3U(args.plen, <=, sizeof (param)); in main() 73 bzero(param, sizeof (param)); in main() 74 ccm_init_params(param, DATALEN[i] - AUTHLEN[i], NONCE[i], in main() 77 args.param = param; in main() 80 VERIFY3U(args.plen, <=, sizeof (param)); in main() 95 bzero(param, sizeof (param)); in main() [all …]
|
/illumos-gate/usr/src/uts/common/io/1394/targets/dcam1394/ |
H A D | dcam_param.c | 64 uint_t param, presence, subparam; in param_attr_init() local 73 param = DCAM1394_PARAM_CAP_POWER_CTRL; in param_attr_init() 76 param_attr_set(param_attr, param, subparam, attr_bmap); in param_attr_init() 81 param = DCAM1394_PARAM_CAP_VID_MODE; in param_attr_init() 86 param_attr_set(param_attr, param, subparam, attr_bmap); in param_attr_init() 94 for (param = DCAM1394_PARAM_CAP_FRAME_RATE_VID_MODE_0; in param_attr_init() 95 param <= DCAM1394_PARAM_CAP_FRAME_RATE_VID_MODE_5; param++) { in param_attr_init() 99 param_attr_set(param_attr, param, subparam, attr_bmap); in param_attr_init() 106 param = DCAM1394_PARAM_POWER; in param_attr_init() 115 param_attr_set(param_attr, param, subparam, attr_bmap); in param_attr_init() [all …]
|
/illumos-gate/usr/src/test/crypto-tests/tests/modes/aes/gcm/ |
H A D | aes_gcm.c | 38 CK_AES_GCM_PARAMS param = { in main() local 44 .param = ¶m, in main() 45 .plen = sizeof (param), in main() 57 param.pIv = IV[i]; in main() 58 param.ulIvLen = IVLEN[i]; in main() 59 param.ulIvBits = IVLEN[i]*8; in main() 60 param.pAAD = AUTH[i]; in main() 61 param.ulAADLen = AUTHLEN[i]; in main() 77 param.pIv = IV[i]; in main() 78 param.ulIvLen = IVLEN[i]; in main() [all …]
|