/openbmc/qemu/block/ |
H A D | qcow2-snapshot.c | 89 QCowSnapshot *sn; in qcow2_do_read_snapshots() local 119 sn = s->snapshots + i; in qcow2_do_read_snapshots() 120 sn->l1_table_offset = be64_to_cpu(h.l1_table_offset); in qcow2_do_read_snapshots() 121 sn->l1_size = be32_to_cpu(h.l1_size); in qcow2_do_read_snapshots() 122 sn->vm_state_size = be32_to_cpu(h.vm_state_size); in qcow2_do_read_snapshots() 123 sn->date_sec = be32_to_cpu(h.date_sec); in qcow2_do_read_snapshots() 124 sn->date_nsec = be32_to_cpu(h.date_nsec); in qcow2_do_read_snapshots() 125 sn->vm_clock_nsec = be64_to_cpu(h.vm_clock_nsec); in qcow2_do_read_snapshots() 126 sn->extra_data_size = be32_to_cpu(h.extra_data_size); in qcow2_do_read_snapshots() 131 if (sn->extra_data_size > QCOW_MAX_SNAPSHOT_EXTRA_DATA) { in qcow2_do_read_snapshots() [all …]
|
H A D | snapshot.c | 56 QEMUSnapshotInfo *sn_tab, *sn; in bdrv_snapshot_find() local 67 sn = &sn_tab[i]; in bdrv_snapshot_find() 68 if (!strcmp(sn->name, name)) { in bdrv_snapshot_find() 69 *sn_info = *sn; in bdrv_snapshot_find() 104 QEMUSnapshotInfo *sn_tab, *sn; in bdrv_snapshot_find_by_id_and_name() local 121 sn = &sn_tab[i]; in bdrv_snapshot_find_by_id_and_name() 122 if (!strcmp(sn->id_str, id) && !strcmp(sn->name, name)) { in bdrv_snapshot_find_by_id_and_name() 123 *sn_info = *sn; in bdrv_snapshot_find_by_id_and_name() 130 sn = &sn_tab[i]; in bdrv_snapshot_find_by_id_and_name() 131 if (!strcmp(sn->id_str, id)) { in bdrv_snapshot_find_by_id_and_name() [all …]
|
/openbmc/linux/arch/mips/math-emu/ |
H A D | ieee754.h | 250 #define ieee754dp_inf(sn) (ieee754dp_spcvals[IEEE754_SPCVAL_PINFINITY+(sn)]) argument 251 #define ieee754dp_zero(sn) (ieee754dp_spcvals[IEEE754_SPCVAL_PZERO+(sn)]) argument 252 #define ieee754dp_one(sn) (ieee754dp_spcvals[IEEE754_SPCVAL_PONE+(sn)]) argument 253 #define ieee754dp_ten(sn) (ieee754dp_spcvals[IEEE754_SPCVAL_PTEN+(sn)]) argument 256 #define ieee754dp_max(sn) (ieee754dp_spcvals[IEEE754_SPCVAL_PMAX+(sn)]) argument 257 #define ieee754dp_min(sn) (ieee754dp_spcvals[IEEE754_SPCVAL_PMIN+(sn)]) argument 258 #define ieee754dp_mind(sn) (ieee754dp_spcvals[IEEE754_SPCVAL_PMIND+(sn)]) argument 262 #define ieee754sp_inf(sn) (ieee754sp_spcvals[IEEE754_SPCVAL_PINFINITY+(sn)]) argument 263 #define ieee754sp_zero(sn) (ieee754sp_spcvals[IEEE754_SPCVAL_PZERO+(sn)]) argument 264 #define ieee754sp_one(sn) (ieee754sp_spcvals[IEEE754_SPCVAL_PONE+(sn)]) argument [all …]
|
H A D | ieee754sp.c | 56 static unsigned int ieee754sp_get_rounding(int sn, unsigned int xm) in ieee754sp_get_rounding() argument 69 if (!sn) /* ?? */ in ieee754sp_get_rounding() 73 if (sn) /* ?? */ in ieee754sp_get_rounding() 83 * sn is sign 87 union ieee754sp ieee754sp_format(int sn, int xe, unsigned int xm) in ieee754sp_format() argument 105 return ieee754sp_zero(sn); in ieee754sp_format() 107 if (sn == 0) in ieee754sp_format() 112 if (sn == 0) in ieee754sp_format() 120 ieee754sp_get_rounding(sn, xm) >> (SP_FBITS + 1 + 3)) in ieee754sp_format() 124 xm = ieee754sp_get_rounding(sn, xm); in ieee754sp_format() [all …]
|
H A D | ieee754dp.c | 56 static u64 ieee754dp_get_rounding(int sn, u64 xm) in ieee754dp_get_rounding() argument 69 if (!sn) /* ?? */ in ieee754dp_get_rounding() 73 if (sn) /* ?? */ in ieee754dp_get_rounding() 83 * sn is sign 87 union ieee754dp ieee754dp_format(int sn, int xe, u64 xm) in ieee754dp_format() argument 105 return ieee754dp_zero(sn); in ieee754dp_format() 107 if (sn == 0) in ieee754dp_format() 112 if (sn == 0) in ieee754dp_format() 120 ieee754dp_get_rounding(sn, xm) >> (DP_FBITS + 1 + 3)) in ieee754dp_format() 124 xm = ieee754dp_get_rounding(sn, xm); in ieee754dp_format() [all …]
|
/openbmc/openbmc/poky/meta/recipes-graphics/startup-notification/startup-notification-0.12/ |
H A D | time_t.patch | 22 libsn/sn-monitor.c | 8 ++++---- 23 libsn/sn-monitor.h | 8 ++++---- 26 diff --git a/libsn/sn-monitor.c b/libsn/sn-monitor.c 28 --- a/libsn/sn-monitor.c 29 +++ b/libsn/sn-monitor.c 52 diff --git a/libsn/sn-monitor.h b/libsn/sn-monitor.h 54 --- a/libsn/sn-monitor.h 55 +++ b/libsn/sn-monitor.h 91 libsn/sn-monitor.h | 1 + 94 diff --git a/libsn/sn-monitor.h b/libsn/sn-monitor.h [all …]
|
/openbmc/ipmitool/lib/ |
H A D | ipmi_kontronoem.c | 217 char *sn; in ipmi_kontron_set_serial_number() local 229 sn = NULL; in ipmi_kontron_set_serial_number() 254 sn = malloc(sn_size + 1); in ipmi_kontron_set_serial_number() 255 if (sn == NULL) { in ipmi_kontron_set_serial_number() 259 memset(sn, 0, sn_size + 1); in ipmi_kontron_set_serial_number() 260 memcpy(sn, rsp->data, sn_size); in ipmi_kontron_set_serial_number() 262 printf("Original serial number is : [%s]\n", sn); in ipmi_kontron_set_serial_number() 274 free(sn); in ipmi_kontron_set_serial_number() 275 sn = NULL; in ipmi_kontron_set_serial_number() 280 free(sn); in ipmi_kontron_set_serial_number() [all …]
|
/openbmc/linux/net/sunrpc/auth_gss/ |
H A D | gss_rpc_upcall.c | 124 void init_gssp_clnt(struct sunrpc_net *sn) in init_gssp_clnt() argument 126 mutex_init(&sn->gssp_lock); in init_gssp_clnt() 127 sn->gssp_clnt = NULL; in init_gssp_clnt() 132 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in set_gssp_clnt() local 136 mutex_lock(&sn->gssp_lock); in set_gssp_clnt() 139 if (sn->gssp_clnt) in set_gssp_clnt() 140 rpc_shutdown_client(sn->gssp_clnt); in set_gssp_clnt() 141 sn->gssp_clnt = clnt; in set_gssp_clnt() 143 mutex_unlock(&sn->gssp_lock); in set_gssp_clnt() 147 void clear_gssp_clnt(struct sunrpc_net *sn) in clear_gssp_clnt() argument [all …]
|
/openbmc/linux/net/sunrpc/ |
H A D | rpcb_clnt.c | 167 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in rpcb_get_local() local 169 spin_lock(&sn->rpcb_clnt_lock); in rpcb_get_local() 170 if (sn->rpcb_users) in rpcb_get_local() 171 sn->rpcb_users++; in rpcb_get_local() 172 cnt = sn->rpcb_users; in rpcb_get_local() 173 spin_unlock(&sn->rpcb_clnt_lock); in rpcb_get_local() 180 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in rpcb_put_local() local 181 struct rpc_clnt *clnt = sn->rpcb_local_clnt; in rpcb_put_local() 182 struct rpc_clnt *clnt4 = sn->rpcb_local_clnt4; in rpcb_put_local() 185 spin_lock(&sn->rpcb_clnt_lock); in rpcb_put_local() [all …]
|
H A D | rpc_pipe.c | 927 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in rpc_add_pipe_dir_object() local 929 mutex_lock(&sn->pipefs_sb_lock); in rpc_add_pipe_dir_object() 931 mutex_unlock(&sn->pipefs_sb_lock); in rpc_add_pipe_dir_object() 950 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in rpc_remove_pipe_dir_object() local 952 mutex_lock(&sn->pipefs_sb_lock); in rpc_remove_pipe_dir_object() 954 mutex_unlock(&sn->pipefs_sb_lock); in rpc_remove_pipe_dir_object() 975 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in rpc_find_or_alloc_pipe_dir_object() local 978 mutex_lock(&sn->pipefs_sb_lock); in rpc_find_or_alloc_pipe_dir_object() 989 mutex_unlock(&sn->pipefs_sb_lock); in rpc_find_or_alloc_pipe_dir_object() 1201 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in rpc_pipefs_init_net() local [all …]
|
H A D | stats.c | 290 struct sunrpc_net *sn; in do_register() local 293 sn = net_generic(net, sunrpc_net_id); in do_register() 294 return proc_create_data(name, 0, sn->proc_net_rpc, proc_ops, data); in do_register() 307 struct sunrpc_net *sn; in rpc_proc_unregister() local 309 sn = net_generic(net, sunrpc_net_id); in rpc_proc_unregister() 310 remove_proc_entry(name, sn->proc_net_rpc); in rpc_proc_unregister() 324 struct sunrpc_net *sn; in svc_proc_unregister() local 326 sn = net_generic(net, sunrpc_net_id); in svc_proc_unregister() 327 remove_proc_entry(name, sn->proc_net_rpc); in svc_proc_unregister() 333 struct sunrpc_net *sn; in rpc_proc_init() local [all …]
|
H A D | svcauth_unix.c | 330 struct sunrpc_net *sn; in svcauth_unix_purge() local 332 sn = net_generic(net, sunrpc_net_id); in svcauth_unix_purge() 333 cache_purge(sn->ip_map_cache); in svcauth_unix_purge() 341 struct sunrpc_net *sn; in ip_map_cached_get() local 347 sn = net_generic(xprt->xpt_net, sunrpc_net_id); in ip_map_cached_get() 348 if (cache_is_expired(sn->ip_map_cache, &ipm->h)) { in ip_map_cached_get() 356 cache_put(&ipm->h, sn->ip_map_cache); in ip_map_cached_get() 379 struct sunrpc_net *sn; in ip_map_cached_put() local 381 sn = net_generic(xprt->xpt_net, sunrpc_net_id); in ip_map_cached_put() 382 cache_put(&ipm->h, sn->ip_map_cache); in ip_map_cached_put() [all …]
|
H A D | sunrpc_syms.c | 36 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in sunrpc_init_net() local 54 INIT_LIST_HEAD(&sn->all_clients); in sunrpc_init_net() 55 spin_lock_init(&sn->rpc_client_lock); in sunrpc_init_net() 56 spin_lock_init(&sn->rpcb_clnt_lock); in sunrpc_init_net() 71 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in sunrpc_exit_net() local 77 WARN_ON_ONCE(!list_empty(&sn->all_clients)); in sunrpc_exit_net()
|
/openbmc/linux/net/smc/ |
H A D | smc_pnet.c | 107 struct smc_net *sn; in smc_pnet_remove_by_pnetid() local 112 sn = net_generic(net, smc_net_id); in smc_pnet_remove_by_pnetid() 113 pnettable = &sn->pnettable; in smc_pnet_remove_by_pnetid() 190 struct smc_net *sn; in smc_pnet_add_by_ndev() local 194 sn = net_generic(net, smc_net_id); in smc_pnet_add_by_ndev() 195 pnettable = &sn->pnettable; in smc_pnet_add_by_ndev() 222 struct smc_net *sn; in smc_pnet_remove_by_ndev() local 226 sn = net_generic(net, smc_net_id); in smc_pnet_remove_by_ndev() 227 pnettable = &sn->pnettable; in smc_pnet_remove_by_ndev() 483 struct smc_net *sn; in smc_pnet_enter() local [all …]
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 057 | 106 for sn in sn_list_result: 107 if sn_expect['name'] == sn['name']: 108 sn_result = sn 131 for sn in sn_list_expect: 132 if sn['id'] == id and sn['name'] == name: 133 sn_expect = sn 141 for sn in sn_list_expect: 142 if sn['id'] == id: 143 sn_expect = sn 150 for sn in sn_list_expect: [all …]
|
/openbmc/phosphor-logging/extensions/openpower-pels/ |
H A D | mtms.hpp | 20 * It holds 8 bytes for the Type+Model, and 12 for the SN. 103 * @return std::array<uint8_t, snSize>& - The SN value 113 * @param[in] sn - The new value 115 void setMachineSerialNumber(const std::array<uint8_t, snSize>& sn) in setMachineSerialNumber() argument 117 _serialNumber = sn; in setMachineSerialNumber() 123 * @return std::string - The SN value 127 std::string sn; in machineSerialNumber() local 132 sn.push_back(_serialNumber[i]); in machineSerialNumber() 134 return sn; in machineSerialNumber()
|
/openbmc/linux/arch/arm/vfp/ |
H A D | vfpsingle.c | 895 vfp_single_multiply_accumulate(int sd, int sn, s32 m, u32 fpscr, u32 negate, char *func) in vfp_single_multiply_accumulate() argument 901 v = vfp_get_float(sn); in vfp_single_multiply_accumulate() 902 pr_debug("VFP: s%u = %08x\n", sn, v); in vfp_single_multiply_accumulate() 933 * sd = sd + (sn * sm) 935 static u32 vfp_single_fmac(int sd, int sn, s32 m, u32 fpscr) in vfp_single_fmac() argument 937 return vfp_single_multiply_accumulate(sd, sn, m, fpscr, 0, "fmac"); in vfp_single_fmac() 941 * sd = sd - (sn * sm) 943 static u32 vfp_single_fnmac(int sd, int sn, s32 m, u32 fpscr) in vfp_single_fnmac() argument 945 return vfp_single_multiply_accumulate(sd, sn, m, fpscr, NEG_MULTIPLY, "fnmac"); in vfp_single_fnmac() 949 * sd = -sd + (sn * sm) [all …]
|
/openbmc/linux/arch/mips/include/asm/sn/sn0/ |
H A D | hub.h | 27 #include <asm/sn/sn0/addrs.h> 28 #include <asm/sn/sn0/hubpi.h> 29 #include <asm/sn/sn0/hubmd.h> 30 #include <asm/sn/sn0/hubio.h> 31 #include <asm/sn/sn0/hubni.h> 32 //#include <asm/sn/sn0/hubcore.h>
|
/openbmc/phosphor-logging/test/openpower-pels/ |
H A D | mtms_test.cpp | 31 std::string sn{"123456789ABC"}; in TEST() local 33 MTMS mtms{tm, sn}; in TEST() 48 std::string sn{"123456789ABCE"}; in TEST() local 50 MTMS mtms{tm, sn}; in TEST() 63 std::string sn{"1234"}; in TEST() local 65 MTMS mtms{tm, sn}; in TEST() 95 std::string sn{"123456789ABC"}; in TEST() local 97 MTMS mtms{tm, sn}; in TEST()
|
/openbmc/linux/arch/mips/sgi-ip27/ |
H A D | ip27-init.c | 21 #include <asm/sn/agent.h> 22 #include <asm/sn/types.h> 23 #include <asm/sn/klconfig.h> 24 #include <asm/sn/ioc3.h> 26 #include <asm/sn/gda.h> 27 #include <asm/sn/intr.h> 32 #include <asm/sn/launch.h> 33 #include <asm/sn/mapped_kernel.h>
|
H A D | ip27-smp.c | 18 #include <asm/sn/agent.h> 19 #include <asm/sn/arch.h> 20 #include <asm/sn/gda.h> 21 #include <asm/sn/intr.h> 22 #include <asm/sn/klconfig.h> 23 #include <asm/sn/launch.h> 24 #include <asm/sn/mapped_kernel.h> 25 #include <asm/sn/types.h>
|
/openbmc/entity-manager/src/entity_manager/ |
H A D | entity_manager.hpp | 69 std::string sn = "Unknown"; in logDeviceAdded() 89 sn = *getSn; in logDeviceRemoved() 93 sn = findSn->dump(); in logDeviceRemoved() 108 type.c_str(), sn.c_str(), "NAME=%s", name.c_str(), NULL); in logDeviceRemoved() 123 std::string sn = "Unknown"; in logDeviceRemoved() 143 sn = *getSn; 147 sn = findSn->dump(); 162 type.c_str(), sn.c_str(), "NAME=%s", name.c_str(), NULL); 42 std::string sn = "Unknown"; logDeviceAdded() local 96 std::string sn = "Unknown"; logDeviceRemoved() local
|
/openbmc/linux/drivers/misc/sgi-xp/ |
H A D | xpc_uv.c | 31 #include <asm/sn/intr.h> 32 #include <asm/sn/sn_sal.h> 79 part_uv = &xpc_partitions[partid].sn.uv; in xpc_setup_partitions_uv() 96 part_uv = &xpc_partitions[partid].sn.uv; in xpc_teardown_partitions_uv() 385 if (part->sn.uv.act_state_req == 0) in xpc_process_activate_IRQ_rcvd_uv() 391 act_state_req = part->sn.uv.act_state_req; in xpc_process_activate_IRQ_rcvd_uv() 392 part->sn.uv.act_state_req = 0; in xpc_process_activate_IRQ_rcvd_uv() 408 XPC_DEACTIVATE_PARTITION(part, part->sn.uv.reason); in xpc_process_activate_IRQ_rcvd_uv() 429 struct xpc_partition_uv *part_uv = &part->sn.uv; in xpc_handle_activate_mq_msg_uv() 680 struct xpc_partition_uv *part_uv = &part->sn.uv; in xpc_send_activate_IRQ_uv() [all …]
|
/openbmc/linux/arch/mips/pci/ |
H A D | pci-ip27.c | 10 #include <asm/sn/addrs.h> 11 #include <asm/sn/types.h> 12 #include <asm/sn/klconfig.h> 13 #include <asm/sn/agent.h> 14 #include <asm/sn/ioc3.h>
|
/openbmc/openbmc-test-automation/lib/ |
H A D | vpd_tool_resource.robot | 14 @{fields} PN SN LocationCode 15 @{vpd_fields} PN SN 35 # [SN]: YL2E32010000 54 … ... '${vpd_field}' == 'SN' xyz.openbmc_project.Inventory.Decorator.Asset SerialNumber 85 ... '${field}' == 'SN' xyz.openbmc_project.Inventory.Decorator.Asset SerialNumber 106 # field VPD component field (e.g. PN, SN) 114 ... '${field}' == 'SN' ${SN_WRITE_VALUE} 126 # field VPD component field (e.g. PN, SN) 137 # field VPD field (e.g. DR, SN, PN) 145 ... '${field}' == 'SN' xyz.openbmc_project.Inventory.Decorator.Asset SerialNumber
|