Home
last modified time | relevance | path

Searched refs:sn (Results 1 – 25 of 191) sorted by relevance

12345678

/openbmc/qemu/block/
H A Dqcow2-snapshot.c89 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 Dsnapshot.c56 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 Dieee754sp.c56 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()
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()
146 xm = ieee754sp_get_rounding(sn, xm); in ieee754sp_format()
[all …]
H A Dieee754dp.c56 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()
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()
147 xm = ieee754dp_get_rounding(sn, xm); in ieee754dp_format()
[all …]
H A Dieee754.h250 #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 …]
/openbmc/ipmitool/lib/
H A Dipmi_kontronoem.c217 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 Dgss_rpc_upcall.c124 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 …]
H A Dsvcauth_gss.c1172 struct sunrpc_net *sn = net_generic(SVC_NET(rqstp), sunrpc_net_id); in svcauth_gss_legacy_init() local
1203 rsip = rsi_lookup(sn->rsi_cache, &rsikey); in svcauth_gss_legacy_init()
1207 if (cache_check(sn->rsi_cache, &rsip->h, &rqstp->rq_chandle) < 0) in svcauth_gss_legacy_init()
1212 if (!svcauth_gss_proc_init_verf(sn->rsc_cache, rqstp, &rsip->out_handle, in svcauth_gss_legacy_init()
1224 cache_put(&rsip->h, sn->rsi_cache); in svcauth_gss_legacy_init()
1309 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in svcauth_gss_proxy_init() local
1330 status = gss_proxy_save_rsc(sn->rsc_cache, &ud, &handle); in svcauth_gss_proxy_init()
1340 if (!svcauth_gss_proc_init_verf(sn->rsc_cache, rqstp, &cli_handle, in svcauth_gss_proxy_init()
1364 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in set_gss_proxy() local
1368 ret = cmpxchg(&sn->use_gss_proxy, -1, type); in set_gss_proxy()
[all …]
/openbmc/openbmc/poky/meta/recipes-graphics/startup-notification/startup-notification-0.12/
H A Dtime_t.patch22 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/linux/net/sunrpc/
H A Drpcb_clnt.c167 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 Dstats.c290 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 Dsunrpc_syms.c36 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()
H A Drpc_pipe.c927 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 Dsvcauth_unix.c330 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 …]
/openbmc/phosphor-logging/test/openpower-pels/
H A Dmtms_test.cpp31 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/qemu/tests/qemu-iotests/
H A D057106 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/linux/net/smc/
H A Dsmc_pnet.c107 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/linux/arch/arm/vfp/
H A Dvfpsingle.c895 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()
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()
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()
951 static u32 vfp_single_fmsc(int sd, int sn, s32 m, u32 fpscr) in vfp_single_fmsc() argument
953 return vfp_single_multiply_accumulate(sd, sn, m, fpscr, NEG_SUBTRACT, "fmsc"); in vfp_single_fmsc()
959 static u32 vfp_single_fnmsc(int sd, int sn, s32 m, u32 fpscr) in vfp_single_fnmsc() argument
[all …]
/openbmc/linux/drivers/misc/sgi-xp/
H A Dxpc_uv.c79 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()
765 struct xpc_partition_uv *part_uv = &part->sn.uv; in xpc_send_local_activate_IRQ_uv()
819 &xpc_partitions[sn_partition_id].sn.uv.cached_heartbeat; in xpc_setup_rsvd_page_uv()
[all …]
/openbmc/entity-manager/src/
H A Dentity_manager.hpp112 std::string sn = "Unknown"; in logDeviceAdded() local
132 sn = *getSn; in logDeviceAdded()
136 sn = findSn->dump(); in logDeviceAdded()
151 type.c_str(), sn.c_str(), "NAME=%s", name.c_str(), NULL); in logDeviceAdded()
166 std::string sn = "Unknown"; in logDeviceRemoved() local
186 sn = *getSn; in logDeviceRemoved()
190 sn = findSn->dump(); in logDeviceRemoved()
205 type.c_str(), sn.c_str(), "NAME=%s", name.c_str(), NULL); in logDeviceRemoved()
/openbmc/phosphor-logging/extensions/openpower-pels/
H A Dmtms.hpp115 void setMachineSerialNumber(const std::array<uint8_t, snSize>& sn) in setMachineSerialNumber() argument
117 _serialNumber = sn; in setMachineSerialNumber()
127 std::string sn; in machineSerialNumber() local
132 sn.push_back(_serialNumber[i]); in machineSerialNumber()
134 return sn; in machineSerialNumber()
/openbmc/u-boot/arch/arm/mach-snapdragon/
H A Dmisc.c42 char sn[9]; in msm_generate_mac_addr() local
44 snprintf(sn, 8, "%08x", msm_board_serial()); in msm_generate_mac_addr()
50 mac[i + 2] = simple_strtoul(&sn[2 * i], NULL, 16); in msm_generate_mac_addr()
51 sn[2 * i] = 0; in msm_generate_mac_addr()
/openbmc/u-boot/board/CZ.NIC/turris_mox/
H A Dmox_sp.c108 int mbox_sp_get_board_info(u64 *sn, u8 *mac1, u8 *mac2, int *bv, int *ram) in mbox_sp_get_board_info() argument
117 if (sn) { in mbox_sp_get_board_info()
118 *sn = out[1]; in mbox_sp_get_board_info()
119 *sn <<= 32; in mbox_sp_get_board_info()
120 *sn |= out[0]; in mbox_sp_get_board_info()
/openbmc/linux/drivers/block/aoe/
H A Daoenet.c137 int sn; in aoenet_rcv() local
148 sn = sizeof(*h) + sizeof(*ah); in aoenet_rcv()
149 if (skb->len >= sn) { in aoenet_rcv()
150 sn -= skb_headlen(skb); in aoenet_rcv()
151 if (sn > 0 && !__pskb_pull_tail(skb, sn)) in aoenet_rcv()
/openbmc/linux/tools/perf/util/
H A Dstrlist.h35 void strlist__remove(struct strlist *slist, struct str_node *sn);
63 static inline struct str_node *strlist__next(struct str_node *sn) in strlist__next() argument
66 if (!sn) in strlist__next()
68 rn = rb_next(&sn->rb_node); in strlist__next()

12345678