/openbmc/linux/tools/perf/pmu-events/ |
H A D | metric.py | 115 def __init__(self, operator: str, lhs: Union[int, float, Expression], 118 self.lhs = _Constify(lhs) 137 other (Expression): is a lhs or rhs operator 154 return (f'{self.Bracket(self.lhs, self.lhs.ToPerfJson())} {self.operator} ' 158 return (f'{self.Bracket(self.lhs, self.lhs.ToPython())} {self.operator} ' 162 lhs = self.lhs.Simplify() 164 if isinstance(lhs, Constant) and isinstance(rhs, Constant): 165 return Constant(ast.literal_eval(lhs + self.operator + rhs)) 167 if isinstance(self.lhs, Constant): 168 if self.operator in ('+', '|') and lhs.value == '0': [all …]
|
/openbmc/qemu/qobject/ |
H A D | qlit.c | 26 static bool qlit_equal_qdict(const QLitObject *lhs, const QDict *qdict) in qlit_equal_qdict() argument 30 for (i = 0; lhs->value.qdict[i].key; i++) { in qlit_equal_qdict() 31 QObject *obj = qdict_get(qdict, lhs->value.qdict[i].key); in qlit_equal_qdict() 33 if (!qlit_equal_qobject(&lhs->value.qdict[i].value, obj)) { in qlit_equal_qdict() 47 static bool qlit_equal_qlist(const QLitObject *lhs, const QList *qlist) in qlit_equal_qlist() argument 55 if (!qlit_equal_qobject(&lhs->value.qlist[i], obj)) { in qlit_equal_qlist() 61 return !e && lhs->value.qlist[i].type == QTYPE_NONE; in qlit_equal_qlist() 64 bool qlit_equal_qobject(const QLitObject *lhs, const QObject *rhs) in qlit_equal_qobject() argument 66 if (!rhs || lhs->type != qobject_type(rhs)) { in qlit_equal_qobject() 70 switch (lhs->type) { in qlit_equal_qobject() [all …]
|
/openbmc/linux/include/linux/ |
H A D | time64.h | 53 * lhs < rhs: return <0 54 * lhs == rhs: return 0 55 * lhs > rhs: return >0 57 static inline int timespec64_compare(const struct timespec64 *lhs, const struct timespec64 *rhs) in timespec64_compare() argument 59 if (lhs->tv_sec < rhs->tv_sec) in timespec64_compare() 61 if (lhs->tv_sec > rhs->tv_sec) in timespec64_compare() 63 return lhs->tv_nsec - rhs->tv_nsec; in timespec64_compare() 68 static inline struct timespec64 timespec64_add(struct timespec64 lhs, in timespec64_add() argument 72 set_normalized_timespec64(&ts_delta, lhs.tv_sec + rhs.tv_sec, in timespec64_add() 73 lhs.tv_nsec + rhs.tv_nsec); in timespec64_add() [all …]
|
H A D | ktime.h | 46 /* Subtract two ktime_t variables. rem = lhs -rhs: */ 47 #define ktime_sub(lhs, rhs) ((lhs) - (rhs)) argument 49 /* Add two ktime_t variables. res = lhs + rhs: */ 50 #define ktime_add(lhs, rhs) ((lhs) + (rhs)) argument 56 #define ktime_add_unsafe(lhs, rhs) ((u64) (lhs) + (rhs)) argument 199 extern ktime_t ktime_add_safe(const ktime_t lhs, const ktime_t rhs);
|
/openbmc/linux/tools/perf/arch/x86/util/ |
H A D | evlist.c | 76 int arch_evlist__cmp(const struct evsel *lhs, const struct evsel *rhs) in arch_evlist__cmp() argument 79 (arch_evsel__must_be_in_group(lhs) || arch_evsel__must_be_in_group(rhs))) { in arch_evlist__cmp() 81 if (strcasestr(lhs->name, "slots") && !strcasestr(lhs->name, "uops_retired.slots")) in arch_evlist__cmp() 86 if (strcasestr(lhs->name, "topdown") && !strcasestr(rhs->name, "topdown")) in arch_evlist__cmp() 88 if (!strcasestr(lhs->name, "topdown") && strcasestr(rhs->name, "topdown")) in arch_evlist__cmp() 93 return lhs->core.idx - rhs->core.idx; in arch_evlist__cmp()
|
/openbmc/qemu/scripts/ |
H A D | minikconf.py | 65 def __init__(self, lhs, rhs): argument 66 self.lhs = lhs 69 return "(%s && %s)" % (self.lhs, self.rhs) 72 self.lhs.add_edges_to(var) 75 return self.lhs.evaluate() and self.rhs.evaluate() 78 def __init__(self, lhs, rhs): argument 79 self.lhs = lhs 82 return "(%s || %s)" % (self.lhs, self.rhs) 85 self.lhs.add_edges_to(var) 88 return self.lhs.evaluate() or self.rhs.evaluate() [all …]
|
/openbmc/pldm/common/test/ |
H A D | mocked_utils.hpp | 11 * @param[in] lhs - left-hand side value 15 inline bool operator==(const DBusMapping& lhs, const DBusMapping& rhs) in operator ==() argument 17 return lhs.objectPath == rhs.objectPath && lhs.interface == rhs.interface && in operator ==() 18 lhs.propertyName == rhs.propertyName && in operator ==() 19 lhs.propertyType == rhs.propertyType; in operator ==()
|
/openbmc/qemu/libdecnumber/ |
H A D | decNumber.c | 157 /* lhs -- left hand side (operand, of an operation) */ 229 static Int decCompare(const decNumber *lhs, const decNumber *rhs, Flag); 280 #define SPECIALARGS ((lhs->bits | rhs->bits) & DECSPECIAL) 927 /* lhs is A */ 934 decNumber * decNumberAdd(decNumber *res, const decNumber *lhs, in decNumberAdd() argument 937 decAddOp(res, lhs, rhs, set, 0, &status); in decNumberAdd() 951 /* lhs is A */ 960 decNumber * decNumberAnd(decNumber *res, const decNumber *lhs, in decNumberAnd() argument 967 if (decCheckOperands(res, lhs, rhs, set)) return res; in decNumberAnd() 970 if (lhs->exponent!=0 || decNumberIsSpecial(lhs) || decNumberIsNegative(lhs) in decNumberAnd() [all …]
|
/openbmc/linux/arch/arm64/kvm/hyp/nvhe/ |
H A D | gen-hyprel.c | 177 #define assert_op(lhs, rhs, fmt, op) \ argument 179 typeof(lhs) _lhs = (lhs); \ 183 fatal_error("assertion " #lhs " " #op " " #rhs \ 184 " failed (lhs=" fmt ", rhs=" fmt \ 189 #define assert_eq(lhs, rhs, fmt) assert_op(lhs, rhs, fmt, ==) argument 190 #define assert_ne(lhs, rhs, fmt) assert_op(lhs, rhs, fmt, !=) argument 191 #define assert_lt(lhs, rhs, fmt) assert_op(lhs, rhs, fmt, <) argument 192 #define assert_ge(lhs, rhs, fmt) assert_op(lhs, rhs, fmt, >=) argument
|
/openbmc/linux/lib/ |
H A D | test_min_heap.c | 14 static __init bool less_than(const void *lhs, const void *rhs) in less_than() argument 16 return *(int *)lhs < *(int *)rhs; in less_than() 19 static __init bool greater_than(const void *lhs, const void *rhs) in greater_than() argument 21 return *(int *)lhs > *(int *)rhs; in greater_than() 24 static __init void swap_ints(void *lhs, void *rhs) in swap_ints() argument 26 int temp = *(int *)lhs; in swap_ints() 28 *(int *)lhs = *(int *)rhs; in swap_ints()
|
H A D | ubsan.h | 127 void __ubsan_handle_divrem_overflow(void *_data, void *lhs, void *rhs); 131 void __ubsan_handle_shift_out_of_bounds(void *_data, void *lhs, void *rhs);
|
/openbmc/linux/tools/perf/util/ |
H A D | expr.y | 128 #define BINARY_OP(RESULT, OP, LHS, RHS) \ 129 if (!compute_ids || (is_const(LHS.val) && is_const(RHS.val))) { \ 130 assert(LHS.ids == NULL); \ 132 if (isnan(LHS.val) || isnan(RHS.val)) { \ 135 RESULT.val = LHS.val OP RHS.val; \ 139 RESULT = union_expr(LHS, RHS); \ 178 * LHS == RHS, so both are an identical constant. No need to 188 * Value is either the LHS or RHS and we need the IF expression 305 /* LHS and/or RHS need computing from event IDs so union. */ 320 /* LHS and/or RHS need computing from event IDs so union. */ [all …]
|
/openbmc/qemu/fsdev/ |
H A D | 9p-marshal.c | 42 void v9fs_string_copy(V9fsString *lhs, V9fsString *rhs) in v9fs_string_copy() argument 44 v9fs_string_free(lhs); in v9fs_string_copy() 45 v9fs_string_sprintf(lhs, "%s", rhs->data); in v9fs_string_copy()
|
/openbmc/linux/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/ |
H A D | input_system.c | 69 csi_cfg_t *const lhs, 74 input_system_source_t *const lhs, 79 input_system_multiplex_t *const lhs, 1655 input_system_source_t *const lhs, in set_source_type() argument 1660 assert(lhs); in set_source_type() 1670 if ((*lhs) == (rhs)) { in set_source_type() 1683 *lhs = rhs; in set_source_type() 1691 csi_cfg_t *const lhs, in set_csi_cfg() argument 1698 assert(lhs); in set_csi_cfg() 1708 if (/*lhs->backend_ch == rhs.backend_ch in set_csi_cfg() [all …]
|
/openbmc/linux/drivers/md/ |
H A D | dm-bio-prison-v2.c | 88 static int cmp_keys(struct dm_cell_key_v2 *lhs, in cmp_keys() argument 91 if (lhs->virtual < rhs->virtual) in cmp_keys() 94 if (lhs->virtual > rhs->virtual) in cmp_keys() 97 if (lhs->dev < rhs->dev) in cmp_keys() 100 if (lhs->dev > rhs->dev) in cmp_keys() 103 if (lhs->block_end <= rhs->block_begin) in cmp_keys() 106 if (lhs->block_begin >= rhs->block_end) in cmp_keys()
|
H A D | dm-bio-prison-v1.c | 96 static int cmp_keys(struct dm_cell_key *lhs, in cmp_keys() argument 99 if (lhs->virtual < rhs->virtual) in cmp_keys() 102 if (lhs->virtual > rhs->virtual) in cmp_keys() 105 if (lhs->dev < rhs->dev) in cmp_keys() 108 if (lhs->dev > rhs->dev) in cmp_keys() 111 if (lhs->block_end <= rhs->block_begin) in cmp_keys() 114 if (lhs->block_begin >= rhs->block_end) in cmp_keys()
|
/openbmc/phosphor-led-manager/manager/ |
H A D | grouplayout.hpp | 28 bool operator()(const Layout::GroupLayout* lhs, in operator ()() 31 return lhs->priority < rhs->priority; in operator ()()
|
/openbmc/openpower-hw-diags/attn/ |
H A D | attn_common.cpp | 211 bool operator<=(const timespec& lhs, const timespec& rhs) in operator <=() argument 213 if (lhs.tv_sec == rhs.tv_sec) in operator <=() 214 return lhs.tv_nsec <= rhs.tv_nsec; in operator <=() 216 return lhs.tv_sec <= rhs.tv_sec; in operator <=()
|
/openbmc/linux/include/linux/ceph/ |
H A D | msgr.h | 90 static inline bool ceph_addr_equal_no_type(const struct ceph_entity_addr *lhs, in ceph_addr_equal_no_type() argument 93 return !memcmp(&lhs->in_addr, &rhs->in_addr, sizeof(lhs->in_addr)) && in ceph_addr_equal_no_type() 94 lhs->nonce == rhs->nonce; in ceph_addr_equal_no_type()
|
/openbmc/qemu/scripts/qapi/ |
H A D | commands.py | 74 lhs = '' 76 lhs = 'retval = ' 94 %(lhs)sqmp_%(name)s(%(args)s&err); 96 name=name, args=argstr, lhs=lhs)
|
/openbmc/phosphor-host-ipmid/include/ipmid/ |
H A D | types.hpp | 148 inline Mutability operator|(Mutability lhs, Mutability rhs) in operator |() argument 151 static_cast<uint8_t>(lhs) | static_cast<uint8_t>(rhs)); in operator |() 154 inline Mutability operator&(Mutability lhs, Mutability rhs) in operator &() argument 157 static_cast<uint8_t>(lhs) & static_cast<uint8_t>(rhs)); in operator &()
|
/openbmc/google-misc/subprojects/ncsid/test/ |
H A D | nic_mock.cpp | 278 auto set_flag_op = [](uint8_t lhs, uint8_t rhs) -> auto { in set_hostless() argument 279 return lhs | rhs; in set_hostless() 282 auto clear_flag_op = [](uint8_t lhs, uint8_t rhs) -> auto { in set_hostless() argument 283 return lhs & ~rhs; in set_hostless()
|
/openbmc/qemu/tests/tcg/openrisc/ |
H A D | test_lx.c | 38 "l.lhs %0, 0x20 + %1\n\t" in main() 42 printf("lhs error, %x\n", a); in main()
|
/openbmc/linux/tools/lib/perf/ |
H A D | cpumap.c | 338 bool perf_cpu_map__equal(const struct perf_cpu_map *lhs, const struct perf_cpu_map *rhs) in perf_cpu_map__equal() argument 342 if (lhs == rhs) in perf_cpu_map__equal() 345 if (!lhs || !rhs) in perf_cpu_map__equal() 348 nr = __perf_cpu_map__nr(lhs); in perf_cpu_map__equal() 353 if (__perf_cpu_map__cpu(lhs, idx).cpu != __perf_cpu_map__cpu(rhs, idx).cpu) in perf_cpu_map__equal()
|
/openbmc/linux/drivers/bluetooth/ |
H A D | hci_mrvl.c | 52 __le16 lhs; member 170 if ((pkt->lhs ^ pkt->rhs) != 0xffff) { in mrvl_recv_fw_req() 184 mrvl->tx_len = le16_to_cpu(pkt->lhs); in mrvl_recv_fw_req() 200 u16 version = le16_to_cpu(pkt->lhs); in mrvl_recv_chip_ver() 203 if ((pkt->lhs ^ pkt->rhs) != 0xffff) { in mrvl_recv_chip_ver()
|