Lines Matching refs:parm
287 static inline int __iucv_call_b2f0(int command, union iucv_param *parm) in __iucv_call_b2f0() argument
297 : [cc] "=&d" (cc), "+m" (*parm) in __iucv_call_b2f0()
299 [reg1] "d" ((unsigned long)parm) in __iucv_call_b2f0()
304 static inline int iucv_call_b2f0(int command, union iucv_param *parm) in iucv_call_b2f0() argument
308 ccode = __iucv_call_b2f0(command, parm); in iucv_call_b2f0()
309 return ccode == 1 ? parm->ctrl.iprcode : ccode; in iucv_call_b2f0()
364 union iucv_param *parm; in iucv_allow_cpu() local
375 parm = iucv_param_irq[cpu]; in iucv_allow_cpu()
376 memset(parm, 0, sizeof(union iucv_param)); in iucv_allow_cpu()
377 parm->set_mask.ipmask = 0xf8; in iucv_allow_cpu()
378 iucv_call_b2f0(IUCV_SETMASK, parm); in iucv_allow_cpu()
389 memset(parm, 0, sizeof(union iucv_param)); in iucv_allow_cpu()
390 parm->set_mask.ipmask = 0xf8; in iucv_allow_cpu()
391 iucv_call_b2f0(IUCV_SETCONTROLMASK, parm); in iucv_allow_cpu()
405 union iucv_param *parm; in iucv_block_cpu() local
408 parm = iucv_param_irq[cpu]; in iucv_block_cpu()
409 memset(parm, 0, sizeof(union iucv_param)); in iucv_block_cpu()
410 iucv_call_b2f0(IUCV_SETMASK, parm); in iucv_block_cpu()
425 union iucv_param *parm; in iucv_declare_cpu() local
432 parm = iucv_param_irq[cpu]; in iucv_declare_cpu()
433 memset(parm, 0, sizeof(union iucv_param)); in iucv_declare_cpu()
434 parm->db.ipbfadr1 = virt_to_phys(iucv_irq_data[cpu]); in iucv_declare_cpu()
435 rc = iucv_call_b2f0(IUCV_DECLARE_BUFFER, parm); in iucv_declare_cpu()
480 union iucv_param *parm; in iucv_retrieve_cpu() local
489 parm = iucv_param_irq[cpu]; in iucv_retrieve_cpu()
490 iucv_call_b2f0(IUCV_RETRIEVE_BUFFER, parm); in iucv_retrieve_cpu()
658 union iucv_param *parm; in iucv_sever_pathid() local
660 parm = iucv_param_irq[smp_processor_id()]; in iucv_sever_pathid()
661 memset(parm, 0, sizeof(union iucv_param)); in iucv_sever_pathid()
663 memcpy(parm->ctrl.ipuser, userdata, sizeof(parm->ctrl.ipuser)); in iucv_sever_pathid()
664 parm->ctrl.ippathid = pathid; in iucv_sever_pathid()
665 return iucv_call_b2f0(IUCV_SEVER, parm); in iucv_sever_pathid()
821 union iucv_param *parm; in iucv_path_accept() local
830 parm = iucv_param[smp_processor_id()]; in iucv_path_accept()
831 memset(parm, 0, sizeof(union iucv_param)); in iucv_path_accept()
832 parm->ctrl.ippathid = path->pathid; in iucv_path_accept()
833 parm->ctrl.ipmsglim = path->msglim; in iucv_path_accept()
835 memcpy(parm->ctrl.ipuser, userdata, sizeof(parm->ctrl.ipuser)); in iucv_path_accept()
836 parm->ctrl.ipflags1 = path->flags; in iucv_path_accept()
838 rc = iucv_call_b2f0(IUCV_ACCEPT, parm); in iucv_path_accept()
841 path->msglim = parm->ctrl.ipmsglim; in iucv_path_accept()
842 path->flags = parm->ctrl.ipflags1; in iucv_path_accept()
869 union iucv_param *parm; in iucv_path_connect() local
878 parm = iucv_param[smp_processor_id()]; in iucv_path_connect()
879 memset(parm, 0, sizeof(union iucv_param)); in iucv_path_connect()
880 parm->ctrl.ipmsglim = path->msglim; in iucv_path_connect()
881 parm->ctrl.ipflags1 = path->flags; in iucv_path_connect()
883 memcpy(parm->ctrl.ipvmid, userid, sizeof(parm->ctrl.ipvmid)); in iucv_path_connect()
884 ASCEBC(parm->ctrl.ipvmid, sizeof(parm->ctrl.ipvmid)); in iucv_path_connect()
885 EBC_TOUPPER(parm->ctrl.ipvmid, sizeof(parm->ctrl.ipvmid)); in iucv_path_connect()
888 memcpy(parm->ctrl.iptarget, system, in iucv_path_connect()
889 sizeof(parm->ctrl.iptarget)); in iucv_path_connect()
890 ASCEBC(parm->ctrl.iptarget, sizeof(parm->ctrl.iptarget)); in iucv_path_connect()
891 EBC_TOUPPER(parm->ctrl.iptarget, sizeof(parm->ctrl.iptarget)); in iucv_path_connect()
894 memcpy(parm->ctrl.ipuser, userdata, sizeof(parm->ctrl.ipuser)); in iucv_path_connect()
896 rc = iucv_call_b2f0(IUCV_CONNECT, parm); in iucv_path_connect()
898 if (parm->ctrl.ippathid < iucv_max_pathid) { in iucv_path_connect()
899 path->pathid = parm->ctrl.ippathid; in iucv_path_connect()
900 path->msglim = parm->ctrl.ipmsglim; in iucv_path_connect()
901 path->flags = parm->ctrl.ipflags1; in iucv_path_connect()
907 iucv_sever_pathid(parm->ctrl.ippathid, in iucv_path_connect()
930 union iucv_param *parm; in iucv_path_quiesce() local
938 parm = iucv_param[smp_processor_id()]; in iucv_path_quiesce()
939 memset(parm, 0, sizeof(union iucv_param)); in iucv_path_quiesce()
941 memcpy(parm->ctrl.ipuser, userdata, sizeof(parm->ctrl.ipuser)); in iucv_path_quiesce()
942 parm->ctrl.ippathid = path->pathid; in iucv_path_quiesce()
943 rc = iucv_call_b2f0(IUCV_QUIESCE, parm); in iucv_path_quiesce()
962 union iucv_param *parm; in iucv_path_resume() local
970 parm = iucv_param[smp_processor_id()]; in iucv_path_resume()
971 memset(parm, 0, sizeof(union iucv_param)); in iucv_path_resume()
973 memcpy(parm->ctrl.ipuser, userdata, sizeof(parm->ctrl.ipuser)); in iucv_path_resume()
974 parm->ctrl.ippathid = path->pathid; in iucv_path_resume()
975 rc = iucv_call_b2f0(IUCV_RESUME, parm); in iucv_path_resume()
1025 union iucv_param *parm; in iucv_message_purge() local
1033 parm = iucv_param[smp_processor_id()]; in iucv_message_purge()
1034 memset(parm, 0, sizeof(union iucv_param)); in iucv_message_purge()
1035 parm->purge.ippathid = path->pathid; in iucv_message_purge()
1036 parm->purge.ipmsgid = msg->id; in iucv_message_purge()
1037 parm->purge.ipsrccls = srccls; in iucv_message_purge()
1038 parm->purge.ipflags1 = IUCV_IPSRCCLS | IUCV_IPFGMID | IUCV_IPFGPID; in iucv_message_purge()
1039 rc = iucv_call_b2f0(IUCV_PURGE, parm); in iucv_message_purge()
1041 msg->audit = (*(u32 *) &parm->purge.ipaudit) >> 8; in iucv_message_purge()
1042 msg->tag = parm->purge.ipmsgtag; in iucv_message_purge()
1115 union iucv_param *parm; in __iucv_message_receive() local
1124 parm = iucv_param[smp_processor_id()]; in __iucv_message_receive()
1125 memset(parm, 0, sizeof(union iucv_param)); in __iucv_message_receive()
1126 parm->db.ipbfadr1 = (u32)(addr_t) buffer; in __iucv_message_receive()
1127 parm->db.ipbfln1f = (u32) size; in __iucv_message_receive()
1128 parm->db.ipmsgid = msg->id; in __iucv_message_receive()
1129 parm->db.ippathid = path->pathid; in __iucv_message_receive()
1130 parm->db.iptrgcls = msg->class; in __iucv_message_receive()
1131 parm->db.ipflags1 = (flags | IUCV_IPFGPID | in __iucv_message_receive()
1133 rc = iucv_call_b2f0(IUCV_RECEIVE, parm); in __iucv_message_receive()
1135 msg->flags = parm->db.ipflags1; in __iucv_message_receive()
1137 *residual = parm->db.ipbfln1f; in __iucv_message_receive()
1188 union iucv_param *parm; in iucv_message_reject() local
1196 parm = iucv_param[smp_processor_id()]; in iucv_message_reject()
1197 memset(parm, 0, sizeof(union iucv_param)); in iucv_message_reject()
1198 parm->db.ippathid = path->pathid; in iucv_message_reject()
1199 parm->db.ipmsgid = msg->id; in iucv_message_reject()
1200 parm->db.iptrgcls = msg->class; in iucv_message_reject()
1201 parm->db.ipflags1 = (IUCV_IPTRGCLS | IUCV_IPFGMID | IUCV_IPFGPID); in iucv_message_reject()
1202 rc = iucv_call_b2f0(IUCV_REJECT, parm); in iucv_message_reject()
1227 union iucv_param *parm; in iucv_message_reply() local
1235 parm = iucv_param[smp_processor_id()]; in iucv_message_reply()
1236 memset(parm, 0, sizeof(union iucv_param)); in iucv_message_reply()
1238 parm->dpl.ippathid = path->pathid; in iucv_message_reply()
1239 parm->dpl.ipflags1 = flags; in iucv_message_reply()
1240 parm->dpl.ipmsgid = msg->id; in iucv_message_reply()
1241 parm->dpl.iptrgcls = msg->class; in iucv_message_reply()
1242 memcpy(parm->dpl.iprmmsg, reply, min_t(size_t, size, 8)); in iucv_message_reply()
1244 parm->db.ipbfadr1 = (u32)(addr_t) reply; in iucv_message_reply()
1245 parm->db.ipbfln1f = (u32) size; in iucv_message_reply()
1246 parm->db.ippathid = path->pathid; in iucv_message_reply()
1247 parm->db.ipflags1 = flags; in iucv_message_reply()
1248 parm->db.ipmsgid = msg->id; in iucv_message_reply()
1249 parm->db.iptrgcls = msg->class; in iucv_message_reply()
1251 rc = iucv_call_b2f0(IUCV_REPLY, parm); in iucv_message_reply()
1278 union iucv_param *parm; in __iucv_message_send() local
1285 parm = iucv_param[smp_processor_id()]; in __iucv_message_send()
1286 memset(parm, 0, sizeof(union iucv_param)); in __iucv_message_send()
1289 parm->dpl.ippathid = path->pathid; in __iucv_message_send()
1290 parm->dpl.ipflags1 = flags | IUCV_IPNORPY; in __iucv_message_send()
1291 parm->dpl.iptrgcls = msg->class; in __iucv_message_send()
1292 parm->dpl.ipsrccls = srccls; in __iucv_message_send()
1293 parm->dpl.ipmsgtag = msg->tag; in __iucv_message_send()
1294 memcpy(parm->dpl.iprmmsg, buffer, 8); in __iucv_message_send()
1296 parm->db.ipbfadr1 = (u32)(addr_t) buffer; in __iucv_message_send()
1297 parm->db.ipbfln1f = (u32) size; in __iucv_message_send()
1298 parm->db.ippathid = path->pathid; in __iucv_message_send()
1299 parm->db.ipflags1 = flags | IUCV_IPNORPY; in __iucv_message_send()
1300 parm->db.iptrgcls = msg->class; in __iucv_message_send()
1301 parm->db.ipsrccls = srccls; in __iucv_message_send()
1302 parm->db.ipmsgtag = msg->tag; in __iucv_message_send()
1304 rc = iucv_call_b2f0(IUCV_SEND, parm); in __iucv_message_send()
1306 msg->id = parm->db.ipmsgid; in __iucv_message_send()
1365 union iucv_param *parm; in iucv_message_send2way() local
1373 parm = iucv_param[smp_processor_id()]; in iucv_message_send2way()
1374 memset(parm, 0, sizeof(union iucv_param)); in iucv_message_send2way()
1376 parm->dpl.ippathid = path->pathid; in iucv_message_send2way()
1377 parm->dpl.ipflags1 = path->flags; /* priority message */ in iucv_message_send2way()
1378 parm->dpl.iptrgcls = msg->class; in iucv_message_send2way()
1379 parm->dpl.ipsrccls = srccls; in iucv_message_send2way()
1380 parm->dpl.ipmsgtag = msg->tag; in iucv_message_send2way()
1381 parm->dpl.ipbfadr2 = (u32)(addr_t) answer; in iucv_message_send2way()
1382 parm->dpl.ipbfln2f = (u32) asize; in iucv_message_send2way()
1383 memcpy(parm->dpl.iprmmsg, buffer, 8); in iucv_message_send2way()
1385 parm->db.ippathid = path->pathid; in iucv_message_send2way()
1386 parm->db.ipflags1 = path->flags; /* priority message */ in iucv_message_send2way()
1387 parm->db.iptrgcls = msg->class; in iucv_message_send2way()
1388 parm->db.ipsrccls = srccls; in iucv_message_send2way()
1389 parm->db.ipmsgtag = msg->tag; in iucv_message_send2way()
1390 parm->db.ipbfadr1 = (u32)(addr_t) buffer; in iucv_message_send2way()
1391 parm->db.ipbfln1f = (u32) size; in iucv_message_send2way()
1392 parm->db.ipbfadr2 = (u32)(addr_t) answer; in iucv_message_send2way()
1393 parm->db.ipbfln2f = (u32) asize; in iucv_message_send2way()
1395 rc = iucv_call_b2f0(IUCV_SEND, parm); in iucv_message_send2way()
1397 msg->id = parm->db.ipmsgid; in iucv_message_send2way()