Lines Matching refs:ipl_info

259 	if (ipl->ipl_info.fcp.opt == DIAG308_IPL_OPT_DUMP)  in get_ipl_type()
264 struct ipl_info ipl_info; variable
265 EXPORT_SYMBOL_GPL(ipl_info);
270 return sprintf(page, "%s\n", ipl_type_str(ipl_info.type)); in ipl_type_show()
284 if ((ipb->ipl_info.ccw.vm_flags & DIAG308_VM_FLAGS_VP_VALID) && in reipl_get_ascii_vmparm()
285 (ipb->ipl_info.ccw.vm_parm_len > 0)) { in reipl_get_ascii_vmparm()
287 len = min_t(size_t, size - 1, ipb->ipl_info.ccw.vm_parm_len); in reipl_get_ascii_vmparm()
288 memcpy(dest, ipb->ipl_info.ccw.vm_parm, len); in reipl_get_ascii_vmparm()
346 count = min(size - 1, scpdata_length(ipb->ipl_info.fcp.scp_data, in reipl_append_ascii_scpdata()
347 ipb->ipl_info.fcp.scp_data_len)); in reipl_append_ascii_scpdata()
353 if (!isascii(ipb->ipl_info.fcp.scp_data[i])) { in reipl_append_ascii_scpdata()
357 if (!has_lowercase && islower(ipb->ipl_info.fcp.scp_data[i])) in reipl_append_ascii_scpdata()
362 memcpy(dest, ipb->ipl_info.fcp.scp_data, count); in reipl_append_ascii_scpdata()
365 dest[i] = tolower(ipb->ipl_info.fcp.scp_data[i]); in reipl_append_ascii_scpdata()
392 switch (ipl_info.type) { in sys_ipl_device_show()
397 return sprintf(page, "0.0.%04x\n", ipl->ipl_info.fcp.devno); in sys_ipl_device_show()
427 unsigned int size = IPL_PARMBLOCK_START->ipl_info.fcp.scp_data_len; in ipl_scp_data_read()
428 void *scp_data = &IPL_PARMBLOCK_START->ipl_info.fcp.scp_data; in ipl_scp_data_read()
445 IPL_PARMBLOCK_START->ipl_info.fcp.wwpn);
447 IPL_PARMBLOCK_START->ipl_info.fcp.lun);
449 IPL_PARMBLOCK_START->ipl_info.fcp.bootprog);
451 IPL_PARMBLOCK_START->ipl_info.fcp.br_lba);
564 else if (ipl_info.type == IPL_TYPE_CCW) in __ipl_run()
565 reipl_ccw_dev(&ipl_info.data.ccw.dev_id); in __ipl_run()
582 switch (ipl_info.type) { in ipl_init()
649 memset(ipb->ipl_info.ccw.vm_parm, 0, DIAG308_VMPARM_SIZE); in reipl_generic_vmparm_store()
650 ipb->ipl_info.ccw.vm_parm_len = ip_len; in reipl_generic_vmparm_store()
652 ipb->ipl_info.ccw.vm_flags |= DIAG308_VM_FLAGS_VP_VALID; in reipl_generic_vmparm_store()
653 memcpy(ipb->ipl_info.ccw.vm_parm, buf, ip_len); in reipl_generic_vmparm_store()
654 ASCEBC(ipb->ipl_info.ccw.vm_parm, ip_len); in reipl_generic_vmparm_store()
656 ipb->ipl_info.ccw.vm_flags &= ~DIAG308_VM_FLAGS_VP_VALID; in reipl_generic_vmparm_store()
703 size_t size = reipl_block_fcp->ipl_info.fcp.scp_data_len; in reipl_fcp_scpdata_read()
704 void *scp_data = reipl_block_fcp->ipl_info.fcp.scp_data; in reipl_fcp_scpdata_read()
725 memcpy(reipl_block_fcp->ipl_info.fcp.scp_data, buf + off, count); in reipl_fcp_scpdata_write()
730 memset(reipl_block_fcp->ipl_info.fcp.scp_data + scpdata_len, in reipl_fcp_scpdata_write()
735 reipl_block_fcp->ipl_info.fcp.scp_data_len = scpdata_len; in reipl_fcp_scpdata_write()
753 reipl_block_fcp->ipl_info.fcp.wwpn);
755 reipl_block_fcp->ipl_info.fcp.lun);
757 reipl_block_fcp->ipl_info.fcp.bootprog);
759 reipl_block_fcp->ipl_info.fcp.br_lba);
761 reipl_block_fcp->ipl_info.fcp.devno);
779 reipl_block_ccw->ipl_info.ccw.devno);
784 memcpy(loadparm, ibp->ipl_info.ccw.load_parm, LOADPARM_LEN); in reipl_get_ascii_loadparm()
819 memset(ipb->ipl_info.ccw.load_parm, ' ', LOADPARM_LEN); in reipl_generic_loadparm_store()
821 memcpy(ipb->ipl_info.ccw.load_parm, buf, lp_len); in reipl_generic_loadparm_store()
822 ASCEBC(ipb->ipl_info.ccw.load_parm, LOADPARM_LEN); in reipl_generic_loadparm_store()
886 memcpy(dst, ipb->ipl_info.ccw.nss_name, NSS_NAME_SIZE); in reipl_get_ascii_nss_name()
914 memset(reipl_block_nss->ipl_info.ccw.nss_name, 0x40, NSS_NAME_SIZE); in reipl_nss_name_store()
916 reipl_block_nss->ipl_info.ccw.vm_flags |= in reipl_nss_name_store()
918 memcpy(reipl_block_nss->ipl_info.ccw.nss_name, buf, nss_len); in reipl_nss_name_store()
919 ASCEBC(reipl_block_nss->ipl_info.ccw.nss_name, nss_len); in reipl_nss_name_store()
920 EBC_TOUPPER(reipl_block_nss->ipl_info.ccw.nss_name, nss_len); in reipl_nss_name_store()
922 reipl_block_nss->ipl_info.ccw.vm_flags &= in reipl_nss_name_store()
1036 pos = sprintf(dst, "IPL %X CLEAR", ipb->ipl_info.ccw.devno); in get_ipl_string()
1057 devid.devno = reipl_block_ccw->ipl_info.ccw.devno; in __reipl_run()
1116 memcpy(ipb->ipl_info.ccw.load_parm, in reipl_block_ccw_fill_parms()
1120 memset(ipb->ipl_info.ccw.load_parm, 0x40, LOADPARM_LEN); in reipl_block_ccw_fill_parms()
1125 (ipl_block.ipl_info.ccw.vm_flags & DIAG308_VM_FLAGS_VP_VALID)) { in reipl_block_ccw_fill_parms()
1127 ipb->ipl_info.ccw.vm_flags |= DIAG308_VM_FLAGS_VP_VALID; in reipl_block_ccw_fill_parms()
1128 ipb->ipl_info.ccw.vm_parm_len = in reipl_block_ccw_fill_parms()
1129 ipl_block.ipl_info.ccw.vm_parm_len; in reipl_block_ccw_fill_parms()
1130 memcpy(ipb->ipl_info.ccw.vm_parm, in reipl_block_ccw_fill_parms()
1131 ipl_block.ipl_info.ccw.vm_parm, DIAG308_VMPARM_SIZE); in reipl_block_ccw_fill_parms()
1154 if (ipl_info.type == IPL_TYPE_NSS) { in reipl_nss_init()
1155 memset(reipl_block_nss->ipl_info.ccw.nss_name, in reipl_nss_init()
1157 memcpy(reipl_block_nss->ipl_info.ccw.nss_name, in reipl_nss_init()
1159 ASCEBC(reipl_block_nss->ipl_info.ccw.nss_name, NSS_NAME_SIZE); in reipl_nss_init()
1160 reipl_block_nss->ipl_info.ccw.vm_flags |= in reipl_nss_init()
1193 if (ipl_info.type == IPL_TYPE_CCW) { in reipl_ccw_init()
1194 reipl_block_ccw->ipl_info.ccw.devno = ipl_devno; in reipl_ccw_init()
1207 if (ipl_info.type == IPL_TYPE_FCP) { in reipl_fcp_init()
1242 if (ipl_info.type == IPL_TYPE_FCP) in reipl_fcp_init()
1249 reipl_block_fcp->ipl_info.fcp.opt = DIAG308_IPL_OPT_IPL; in reipl_fcp_init()
1276 rc = reipl_set_type(ipl_info.type); in reipl_init()
1295 dump_block_fcp->ipl_info.fcp.wwpn);
1297 dump_block_fcp->ipl_info.fcp.lun);
1299 dump_block_fcp->ipl_info.fcp.bootprog);
1301 dump_block_fcp->ipl_info.fcp.br_lba);
1303 dump_block_fcp->ipl_info.fcp.devno);
1322 dump_block_ccw->ipl_info.ccw.devno);
1392 devid.devno = dump_block_ccw->ipl_info.ccw.devno; in __dump_run()
1399 sprintf(buf, "IPL %X", dump_block_ccw->ipl_info.ccw.devno); in __dump_run()
1463 dump_block_fcp->ipl_info.fcp.opt = DIAG308_IPL_OPT_DUMP; in dump_fcp_init()
1886 ipl_info.type = get_ipl_type(); in setup_ipl()
1887 switch (ipl_info.type) { in setup_ipl()
1889 ipl_info.data.ccw.dev_id.devno = ipl_devno; in setup_ipl()
1890 ipl_info.data.ccw.dev_id.ssid = 0; in setup_ipl()
1894 ipl_info.data.fcp.dev_id.devno = in setup_ipl()
1895 IPL_PARMBLOCK_START->ipl_info.fcp.devno; in setup_ipl()
1896 ipl_info.data.fcp.dev_id.ssid = 0; in setup_ipl()
1897 ipl_info.data.fcp.wwpn = IPL_PARMBLOCK_START->ipl_info.fcp.wwpn; in setup_ipl()
1898 ipl_info.data.fcp.lun = IPL_PARMBLOCK_START->ipl_info.fcp.lun; in setup_ipl()
1901 strncpy(ipl_info.data.nss.name, kernel_nss_name, in setup_ipl()
1902 sizeof(ipl_info.data.nss.name)); in setup_ipl()