Home
last modified time | relevance | path

Searched refs:msgp (Results 1 – 25 of 96) sorted by relevance

1234

/illumos-gate/usr/src/lib/cfgadm_plugins/scsi/SUNW,SPARC-Enterprise/common/
H A Dopl_dev_led.c90 opl_disk_led_control(apid_t *apidp, char **errstring, struct cfga_msg *msgp, in opl_disk_led_control() argument
98 if ((apidp == NULL) || (msgp == NULL) || (scf_disk == NULL)) { in opl_disk_led_control()
149 opl_print_locator(apid_t *apidp, struct cfga_msg *msgp, unsigned char led) in opl_print_locator() argument
153 if ((msgp == NULL) || (msgp->message_routine == NULL)) { in opl_print_locator()
157 cfga_msg(msgp, MSG_LED_HDR, 0); in opl_print_locator()
174 cfga_led_msg(msgp, apidp, LED_STR_LOCATOR, mode); in opl_print_locator()
181 opl_print_led(apid_t *apidp, struct cfga_msg *msgp, unsigned char led) in opl_print_led() argument
185 if ((msgp == NULL) || (msgp->message_routine == NULL)) { in opl_print_led()
189 cfga_msg(msgp, MSG_LED_HDR, 0); in opl_print_led()
206 cfga_led_msg(msgp, apidp, LED_STR_FAULT, mode); in opl_print_led()
[all …]
/illumos-gate/usr/src/lib/libfakekernel/common/
H A Dprintf.c82 char *msgp, *bufend; in fakekernel_cprintf() local
94 msgp = bufp; in fakekernel_cprintf()
95 msgp += snprintf(msgp, bufend - msgp, "[fake_kernel] "); in fakekernel_cprintf()
96 msgp += snprintf(msgp, bufend - msgp, prefix); in fakekernel_cprintf()
97 msgp += vsnprintf(msgp, bufend - msgp, fmt, adx); in fakekernel_cprintf()
98 msgp += snprintf(msgp, bufend - msgp, suffix); in fakekernel_cprintf()
99 len = msgp - bufp; in fakekernel_cprintf()
/illumos-gate/usr/src/uts/common/io/ib/adapters/tavor/
H A Dtavor_agents.c47 ibmf_msg_t *msgp, void *args);
50 ibmf_msg_t *msgp, void *args);
56 ibmf_msg_t *msgp, uint_t port);
160 tavor_agent_request_cb(ibmf_handle_t ibmf_handle, ibmf_msg_t *msgp, in tavor_agent_request_cb() argument
180 (void) ibmf_free_msg(ibmf_handle, &msgp); in tavor_agent_request_cb()
187 cb_args->ahd_ibmfmsg = msgp; in tavor_agent_request_cb()
199 (void) ibmf_free_msg(ibmf_handle, &msgp); in tavor_agent_request_cb()
214 ibmf_msg_t *msgp; in tavor_agent_handle_req() local
224 msgp = agent_args->ahd_ibmfmsg; in tavor_agent_handle_req()
234 recv_msgbufp = &msgp->im_msgbufs_recv; in tavor_agent_handle_req()
[all …]
/illumos-gate/usr/src/lib/libresolv/
H A Dres_comp.c299 _getshort(msgp) in _getshort() argument
300 u_char *msgp; in _getshort()
302 register u_char *p = (u_char *) msgp;
317 _getlong(msgp) in _getlong() argument
318 u_char *msgp; in _getlong()
320 register u_char *p = (u_char *) msgp;
330 putshort(s, msgp) in putshort() argument
332 register u_char *msgp;
335 msgp[1] = s;
336 msgp[0] = s >> 8;
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dprintf.c82 char *body, *msgp, *bufend; in cprintf() local
112 msgp = bufp; in cprintf()
113 body = msgp += snprintf(msgp, bufend - msgp, in cprintf()
116 msgp += snprintf(msgp, bufend - msgp, prefix); in cprintf()
118 msgp += snprintf(msgp, bufend - msgp, "%s%d: ", in cprintf()
120 msgp += vsnprintf(msgp, bufend - msgp, fmt, adx); in cprintf()
121 msgp += snprintf(msgp, bufend - msgp, suffix); in cprintf()
130 if (msgp - bufp >= bufsize && !on_intr) { in cprintf()
132 bufsize = msgp - bufp + 1; in cprintf()
141 MIN(bufsize, msgp - bufp + 1), on_intr); in cprintf()
/illumos-gate/usr/src/uts/common/io/ib/adapters/hermon/
H A Dhermon_agents.c47 ibmf_msg_t *msgp, void *args);
50 ibmf_msg_t *msgp, void *args);
56 ibmf_msg_t *msgp, uint_t port);
160 hermon_agent_request_cb(ibmf_handle_t ibmf_handle, ibmf_msg_t *msgp, in hermon_agent_request_cb() argument
180 (void) ibmf_free_msg(ibmf_handle, &msgp); in hermon_agent_request_cb()
187 cb_args->ahd_ibmfmsg = msgp; in hermon_agent_request_cb()
199 (void) ibmf_free_msg(ibmf_handle, &msgp); in hermon_agent_request_cb()
321 ibmf_msg_t *msgp; in hermon_agent_handle_req() local
335 msgp = agent_args->ahd_ibmfmsg; in hermon_agent_handle_req()
345 recv_msgbufp = &msgp->im_msgbufs_recv; in hermon_agent_handle_req()
[all …]
/illumos-gate/usr/src/lib/librsc/sparc/mpxu/common/
H A Dlibrsc.c559 rscp_send(rscp_msg_t *msgp) in rscp_send() argument
572 if (msgp == NULL) in rscp_send()
579 if (rsc_check_unsupported_cmd(msgp->type) != 0) in rscp_send()
586 if (!rsc_cmd_response_guaranteed(msgp->type)) in rscp_send()
595 req->msg_type = msgp->type; in rscp_send()
596 req->msg_len = msgp->len; in rscp_send()
597 req->msg_buf = msgp->data; in rscp_send()
600 msgp->type)) != NULL) { in rscp_send()
661 rscp_recv(rscp_msg_t *msgp, struct timespec *timeout) in rscp_recv() argument
671 if (msgp == NULL) in rscp_recv()
[all …]
/illumos-gate/usr/src/uts/sun4u/lw8/os/
H A Dlw8_platmod.c1063 sbbc_ecc_mbox_t *msgp; in plat_send_ecc_mailbox_msg() local
1132 msgp = (sbbc_ecc_mbox_t *)kmem_zalloc(sizeof (sbbc_ecc_mbox_t), in plat_send_ecc_mailbox_msg()
1134 if (msgp == NULL) { in plat_send_ecc_mailbox_msg()
1140 msgp->ecc_log_error = log_error; in plat_send_ecc_mailbox_msg()
1142 msgp->ecc_req.msg_type.type = INFO_MBOX; in plat_send_ecc_mailbox_msg()
1143 msgp->ecc_req.msg_type.sub_type = msg_subtype; in plat_send_ecc_mailbox_msg()
1144 msgp->ecc_req.msg_status = 0; in plat_send_ecc_mailbox_msg()
1145 msgp->ecc_req.msg_len = (int)msg_size; in plat_send_ecc_mailbox_msg()
1146 msgp->ecc_req.msg_bytes = 0; in plat_send_ecc_mailbox_msg()
1147 msgp->ecc_req.msg_buf = (caddr_t)kmem_zalloc(msg_size, sleep_flag); in plat_send_ecc_mailbox_msg()
[all …]
/illumos-gate/usr/src/uts/sun4u/serengeti/os/
H A Dserengeti.c1050 sbbc_ecc_mbox_t *msgp; in plat_send_ecc_mailbox_msg() local
1119 msgp = (sbbc_ecc_mbox_t *)kmem_zalloc(sizeof (sbbc_ecc_mbox_t), in plat_send_ecc_mailbox_msg()
1121 if (msgp == NULL) { in plat_send_ecc_mailbox_msg()
1127 msgp->ecc_log_error = log_error; in plat_send_ecc_mailbox_msg()
1129 msgp->ecc_req.msg_type.type = INFO_MBOX; in plat_send_ecc_mailbox_msg()
1130 msgp->ecc_req.msg_type.sub_type = msg_subtype; in plat_send_ecc_mailbox_msg()
1131 msgp->ecc_req.msg_status = 0; in plat_send_ecc_mailbox_msg()
1132 msgp->ecc_req.msg_len = (int)msg_size; in plat_send_ecc_mailbox_msg()
1133 msgp->ecc_req.msg_bytes = 0; in plat_send_ecc_mailbox_msg()
1134 msgp->ecc_req.msg_buf = (caddr_t)kmem_zalloc(msg_size, sleep_flag); in plat_send_ecc_mailbox_msg()
[all …]
/illumos-gate/usr/src/lib/cfgadm_plugins/ccid/common/
H A Dcfga_ccid.c59 struct cfga_confirm *confp, struct cfga_msg *msgp, char **errp, in cfga_ccid_modify() argument
160 struct cfga_confirm *confp, struct cfga_msg *msgp, char **errp, in cfga_change_state() argument
188 (void) cfga_help(msgp, opts, flags); in cfga_change_state()
192 return (cfga_ccid_modify(&modify, ap, confp, msgp, errp, in cfga_change_state()
198 struct cfga_confirm *confp, struct cfga_msg *msgp, char **errp, in cfga_private_func() argument
228 return (cfga_ccid_modify(&modify, ap, confp, msgp, errp, in cfga_private_func()
236 cfga_test(const char *ap, const char *opts, struct cfga_msg *msgp, char **errp, in cfga_test() argument
239 (void) cfga_help(msgp, opts, flags); in cfga_test()
405 cfga_help(struct cfga_msg *msgp, const char *opts, cfga_flags_t flags) in cfga_help() argument
407 (void) (*msgp->message_routine)(msgp, "CCID specific commands:\n"); in cfga_help()
[all …]
/illumos-gate/usr/src/uts/common/io/ib/mgt/ibdma/
H A Dibdma.c59 ibmf_msg_t *msgp, void *args);
60 static void ibdma_create_resp_mad(ibmf_msg_t *msgp);
574 ibdma_create_resp_mad(ibmf_msg_t *msgp) in ibdma_create_resp_mad() argument
579 msgp->im_msgbufs_send.im_bufs_mad_hdr = in ibdma_create_resp_mad()
582 msgp->im_msgbufs_send.im_bufs_cl_hdr = (uchar_t *) in ibdma_create_resp_mad()
583 msgp->im_msgbufs_send.im_bufs_mad_hdr + sizeof (ib_mad_hdr_t); in ibdma_create_resp_mad()
584 msgp->im_msgbufs_send.im_bufs_cl_hdr_len = IBDMA_DM_MAD_HDR_SIZE; in ibdma_create_resp_mad()
585 msgp->im_msgbufs_send.im_bufs_cl_data = in ibdma_create_resp_mad()
586 ((char *)msgp->im_msgbufs_send.im_bufs_cl_hdr + in ibdma_create_resp_mad()
588 msgp->im_msgbufs_send.im_bufs_cl_data_len = in ibdma_create_resp_mad()
[all …]
/illumos-gate/usr/src/uts/common/io/ib/mgt/ibmf/
H A Dibmf_saa_impl.c38 ibmf_saa_impl_new_smlid_retry(saa_port_t *saa_portp, ibmf_msg_t *msgp,
41 ibmf_saa_impl_revert_to_qp1(saa_port_t *saa_portp, ibmf_msg_t *msgp,
44 ibmf_saa_check_sa_and_retry(saa_port_t *saa_portp, ibmf_msg_t *msgp,
48 boolean_t sleep_flag, ibmf_msg_t **msgp, uint32_t *transport_flagsp,
64 ibmf_msg_t *msgp, boolean_t ignore_data, int *status, void **result,
68 static void ibmf_saa_impl_free_msg(ibmf_handle_t ibmf_hdl, ibmf_msg_t *msgp);
74 ibmf_msg_t *msgp);
1350 ibmf_msg_t *msgp; in ibmf_saa_impl_send_request() local
1425 ibmf_status = ibmf_saa_impl_init_msg(trans_info, sleep_flag, &msgp, in ibmf_saa_impl_send_request()
1477 saa_portp->saa_pt_qp_handle, msgp, &ibmf_retrans, in ibmf_saa_impl_send_request()
[all …]
/illumos-gate/usr/src/lib/libc/port/sys/
H A Dmsgsys.c74 __msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg) in __msgrcv() argument
86 msgp, msgsz, msgtyp, msgflg); in __msgrcv()
92 msgp, msgsz, msgtyp, msgflg)); in __msgrcv()
96 __msgsnd(int msqid, const void *msgp, size_t msgsz, int msgflg) in __msgsnd() argument
103 msgp, msgsz, msgflg); in __msgsnd()
108 return (syscall(SYS_msgsys, MSGSND, msqid, msgp, msgsz, msgflg)); in __msgsnd()
/illumos-gate/usr/src/uts/common/sys/ib/adapters/hermon/
H A Dhermon_agents.h103 #define HERMON_IS_SPECIAL_TRAP_MAD(msgp) \ argument
104 ((((msgp)->im_msgbufs_recv.im_bufs_mad_hdr->R_Method & \
106 ((msgp)->im_local_addr.ia_remote_lid == 0))
113 #define HERMON_IS_TRAP_REPRESS_MAD(msgp) \ argument
114 ((((msgp)->im_msgbufs_recv.im_bufs_mad_hdr->R_Method & \
/illumos-gate/usr/src/uts/common/sys/ib/adapters/tavor/
H A Dtavor_agents.h103 #define TAVOR_IS_SPECIAL_TRAP_MAD(msgp) \ argument
104 ((((msgp)->im_msgbufs_recv.im_bufs_mad_hdr->R_Method & \
106 ((msgp)->im_local_addr.ia_remote_lid == 0))
113 #define TAVOR_IS_TRAP_REPRESS_MAD(msgp) \ argument
114 ((((msgp)->im_msgbufs_recv.im_bufs_mad_hdr->R_Method & \
/illumos-gate/usr/src/uts/common/sys/ib/mgt/ibcm/
H A Dibcm_impl.h1218 #define IBCM_OUT_MADP(msgp) (msgp->im_msgbufs_send.im_bufs_mad_hdr) argument
1219 #define IBCM_OUT_HDRP(msgp) ((ib_mad_hdr_t *)IBCM_OUT_MADP(msgp)) argument
1220 #define IBCM_OUT_MSGP(msgp) (msgp->im_msgbufs_send.im_bufs_cl_data) argument
1222 #define IBCM_IN_MADP(msgp) (msgp->im_msgbufs_recv.im_bufs_mad_hdr) argument
1223 #define IBCM_IN_HDRP(msgp) ((ib_mad_hdr_t *)IBCM_IN_MADP(msgp)) argument
1224 #define IBCM_IN_MSGP(msgp) (msgp->im_msgbufs_recv.im_bufs_cl_data) argument
1226 #define IBCM_REJ_PRIV(msgp) &(((ibcm_rej_msg_t *) \ argument
1508 void ibcm_recv_cb(ibmf_handle_t ibmf_handle, ibmf_msg_t *msgp, void *args);
1706 void ibcm_post_rc_mad(ibcm_state_data_t *statep, ibmf_msg_t *msgp,
1710 void ibcm_post_ud_mad(ibcm_ud_state_data_t *ud_statep, ibmf_msg_t *msgp,
[all …]
/illumos-gate/usr/src/cmd/dcs/sparc/sun4u/
H A Drdr_param_types.h89 struct cfga_msg *msgp; member
103 struct cfga_msg *msgp; member
113 struct cfga_msg *msgp; member
146 struct cfga_msg *msgp; member
171 struct cfga_msg *msgp; member
/illumos-gate/usr/src/lib/cfgadm_plugins/sbd/common/
H A Dcfga.c46 struct cfga_msg *msgp, in cfga_change_state() argument
60 if ((a = apd_alloc(ap_id, flags, errstring, msgp, confp)) == NULL) in cfga_change_state()
105 struct cfga_msg *msgp, in cfga_private_func() argument
117 if ((a = apd_alloc(ap_id, flags, errstring, msgp, confp)) == NULL) in cfga_private_func()
139 struct cfga_msg *msgp, in cfga_test() argument
159 if ((a = apd_alloc(ap_id, flags, errstring, msgp, NULL)) == NULL) in cfga_test()
269 cfga_help(struct cfga_msg *msgp, const char *options, cfga_flags_t flags) in cfga_help() argument
271 return (ap_help(msgp, options, flags)); in cfga_help()
/illumos-gate/usr/src/lib/cfgadm_plugins/scsi/common/
H A Dcfga_scsi.c62 struct cfga_msg *msgp, in cfga_change_state() argument
113 struct cfga_msg *msgp, in cfga_private_func() argument
149 args.msgp = msgp; in cfga_private_func()
165 struct cfga_msg *msgp, in cfga_test() argument
279 cfga_help(struct cfga_msg *msgp, const char *options, cfga_flags_t flags) in cfga_help() argument
281 cfga_msg(msgp, MSG_HELP_HDR, MSG_HELP_USAGE, 0); in cfga_help()
/illumos-gate/usr/src/lib/cfgadm_plugins/sysctrl/common/
H A Dcfga.c492 cfga_msg(struct cfga_msg *msgp, ...) in cfga_msg() argument
502 va_start(ap, msgp); in cfga_msg()
528 (*msgp->message_routine)(msgp->appdata_ptr, p); in cfga_msg()
753 dlist_update(int board, int disable, char *dlist, struct cfga_msg *msgp, in dlist_update() argument
788 cfga_msg(msgp, STR_BD, in dlist_update()
792 cfga_msg(msgp, STR_BD, in dlist_update()
806 cfga_msg(msgp, STR_BD, DIAG_WILL_DISABLE, 0); in dlist_update()
813 cfga_msg(msgp, STR_BD, DIAG_WAS_ENABLED, 0); in dlist_update()
874 struct cfga_msg *msgp, in cfga_change_state() argument
953 dlist, msgp, verbose))) { in cfga_change_state()
[all …]
/illumos-gate/usr/src/lib/cfgadm_plugins/shp/common/
H A Dshp.c161 static void cfga_msg(struct cfga_msg *msgp, const char *str);
618 struct cfga_msg *msgp, char **errstring, cfga_flags_t flags) in cfga_change_state() argument
788 struct cfga_msg *msgp) in prt_led_mode() argument
810 cfga_msg(msgp, "Ap_Id\t\t\tLed"); in prt_led_mode()
871 cfga_msg(msgp, line); /* print the message */ in prt_led_mode()
882 struct cfga_msg *msgp, char **errstring, cfga_flags_t flags) in cfga_private_func() argument
985 msgp)); in cfga_private_func()
1009 struct cfga_msg *msgp, char **errstring, cfga_flags_t flags) in cfga_test() argument
1561 cfga_msg(struct cfga_msg *msgp, const char *str) in cfga_msg() argument
1565 if (msgp == NULL || msgp->message_routine == NULL) in cfga_msg()
[all …]
/illumos-gate/usr/src/lib/cfgadm_plugins/ib/common/
H A Dcfga_ib.c862 const char *options, struct cfga_confirm *confp, struct cfga_msg *msgp, in cfga_change_state() argument
875 (void) cfga_help(msgp, options, flags); in cfga_change_state()
1012 (void) cfga_help(msgp, options, flags); in cfga_change_state()
1018 (void) cfga_help(msgp, options, flags); in cfga_change_state()
1050 struct cfga_confirm *confp, struct cfga_msg *msgp, char **errstring, in cfga_private_func() argument
1132 cfga_msg(msgp, msg); in cfga_private_func()
1153 cfga_msg(msgp, msg); in cfga_private_func()
1336 (void) cfga_help(msgp, options, flags); in cfga_private_func()
1346 (void) cfga_help(msgp, options, flags); in cfga_private_func()
1366 (void) cfga_help(msgp, options, flags); in cfga_private_func()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/uwin/
H A Drlib.h61 extern void putlong(u_long l, u_char *msgp);
62 extern void putshort(u_short l, u_char *msgp);
63 extern u_int32_t _getlong(register const u_char *msgp);
64 extern u_int16_t _getshort(register const u_char *msgp);
/illumos-gate/usr/src/lib/cfgadm_plugins/usb/common/
H A Dcfga_usb.c1030 struct cfga_msg *msgp, in cfga_change_state() argument
1047 (void) cfga_help(msgp, options, flags); in cfga_change_state()
1220 (void) cfga_help(msgp, options, flags); in cfga_change_state()
1225 (void) cfga_help(msgp, options, flags); in cfga_change_state()
1243 struct cfga_msg *msgp, in cfga_private_func() argument
1259 (void) cfga_help(msgp, options, flags); in cfga_private_func()
1326 (void) cfga_help(msgp, options, flags); in cfga_private_func()
1336 (void) cfga_help(msgp, in cfga_private_func()
1358 (void) cfga_help(msgp, in cfga_private_func()
1374 (void) cfga_help(msgp, options, flags); in cfga_private_func()
[all …]
/illumos-gate/usr/src/uts/sun4v/io/
H A Dvsw_rxdring.c78 static int vsw_send_msg_shm(vsw_ldc_t *ldcp, void *msgp, int size,
606 vio_dring_msg_t *msgp = &msg; in vsw_ldc_rcv_shm() local
687 msgp->tag.vio_msgtype = VIO_TYPE_DATA; in vsw_ldc_rcv_shm()
688 msgp->tag.vio_subtype = VIO_SUBTYPE_ACK; in vsw_ldc_rcv_shm()
689 msgp->tag.vio_subtype_env = VIO_DRING_DATA; in vsw_ldc_rcv_shm()
690 msgp->dring_ident = ldcp->lane_in.dringp->ident; in vsw_ldc_rcv_shm()
691 msgp->tag.vio_sid = ldcp->local_session; in vsw_ldc_rcv_shm()
692 msgp->dring_process_state = VIO_DP_STOPPED; in vsw_ldc_rcv_shm()
693 msgp->start_idx = VNET_START_IDX_UNSPEC; in vsw_ldc_rcv_shm()
694 msgp->end_idx = end_ix; in vsw_ldc_rcv_shm()
[all …]

1234