/openbmc/linux/tools/perf/util/ |
H A D | expr.y | 25 struct ids { 30 struct hashmap *ids; 39 } ids; 54 %type <ids> expr if_expr 55 %destructor { ids__free($$.ids); } <ids> 79 static struct ids union_expr(struct ids ids1, struct ids ids2) 81 struct ids result = { 83 .ids = ids__union(ids1.ids, ids2.ids), 88 static struct ids handle_id(struct expr_parse_ctx *ctx, char *id, 91 struct ids result; [all …]
|
H A D | expr.c | 83 void ids__free(struct hashmap *ids) in ids__free() argument 88 if (ids == NULL) in ids__free() 91 hashmap__for_each_entry(ids, cur, bkt) { in ids__free() 96 hashmap__free(ids); in ids__free() 99 int ids__insert(struct hashmap *ids, const char *id) in ids__insert() argument 105 ret = hashmap__set(ids, id, data_ptr, &old_key, &old_data); in ids__insert() 151 return ids__insert(ctx->ids, id); in expr__add_id() 175 ret = hashmap__set(ctx->ids, id, data_ptr, &old_key, &old_data); in expr__add_id_val_source_count() 210 ret = hashmap__set(ctx->ids, name, data_ptr, &old_key, &old_data); in expr__add_ref() 225 return hashmap__find(ctx->ids, id, data) ? 0 : -1; in expr__get_id() [all …]
|
/openbmc/linux/ipc/ |
H A D | util.c | 76 int ids; member 115 void ipc_init_ids(struct ipc_ids *ids) in ipc_init_ids() argument 117 ids->in_use = 0; in ipc_init_ids() 118 ids->seq = 0; in ipc_init_ids() 119 init_rwsem(&ids->rwsem); in ipc_init_ids() 120 rhashtable_init(&ids->key_ht, &ipc_kht_params); in ipc_init_ids() 121 idr_init(&ids->ipcs_idr); in ipc_init_ids() 122 ids->max_idx = -1; in ipc_init_ids() 123 ids->last_idx = -1; in ipc_init_ids() 125 ids->next_id = -1; in ipc_init_ids() [all …]
|
H A D | util.h | 113 void ipc_init_ids(struct ipc_ids *ids); 116 int ids, int (*show)(struct seq_file *, void *)); 119 #define ipc_init_proc_interface(path, header, ids, show) do {} while (0) argument 151 static inline int ipc_get_maxidx(struct ipc_ids *ids) in ipc_get_maxidx() argument 153 if (ids->in_use == 0) in ipc_get_maxidx() 156 if (ids->in_use == ipc_mni) in ipc_get_maxidx() 159 return ids->max_idx; in ipc_get_maxidx() 175 struct kern_ipc_perm *ipc_obtain_object_idr(struct ipc_ids *ids, int id); 181 struct ipc_ids *ids, int id, int cmd, 241 struct kern_ipc_perm *ipc_obtain_object_check(struct ipc_ids *ids, int id); [all …]
|
H A D | ipc_sysctl.c | 155 .data = &init_ipc_ns.ids[IPC_SEM_IDS].next_id, 156 .maxlen = sizeof(init_ipc_ns.ids[IPC_SEM_IDS].next_id), 164 .data = &init_ipc_ns.ids[IPC_MSG_IDS].next_id, 165 .maxlen = sizeof(init_ipc_ns.ids[IPC_MSG_IDS].next_id), 173 .data = &init_ipc_ns.ids[IPC_SHM_IDS].next_id, 174 .maxlen = sizeof(init_ipc_ns.ids[IPC_SHM_IDS].next_id), 215 if (((table->data == &ns->ids[IPC_SEM_IDS].next_id) || in ipc_permissions() 216 (table->data == &ns->ids[IPC_MSG_IDS].next_id) || in ipc_permissions() 217 (table->data == &ns->ids[IPC_SHM_IDS].next_id)) && in ipc_permissions() 281 else if (tbl[i].data == &init_ipc_ns.ids[IPC_SEM_IDS].next_id) in setup_ipc_sysctls() [all …]
|
/openbmc/linux/tools/perf/tests/ |
H A D | expr.c | 138 TEST_ASSERT_VAL("find ids", hashmap__size(ctx->ids) == 3); in test__expr() 139 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "BAR", &val_ptr)); in test__expr() 140 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "BAZ", &val_ptr)); in test__expr() 141 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "BOZO", &val_ptr)); in test__expr() 148 TEST_ASSERT_VAL("find ids", hashmap__size(ctx->ids) == 2); in test__expr() 149 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "EVENT1,param=3@", &val_ptr)); in test__expr() 150 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "EVENT2,param=3@", &val_ptr)); in test__expr() 156 TEST_ASSERT_VAL("find ids", hashmap__size(ctx->ids) == 2); in test__expr() 157 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "dash-event1", &val_ptr)); in test__expr() 158 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "dash-event2", &val_ptr)); in test__expr() [all …]
|
/openbmc/linux/drivers/dio/ |
H A D | dio-driver.c | 29 dio_match_device(const struct dio_device_id *ids, in dio_match_device() argument 32 while (ids->id) { in dio_match_device() 33 if (ids->id == DIO_WILDCARD) in dio_match_device() 34 return ids; in dio_match_device() 35 if (DIO_NEEDSSECID(ids->id & 0xff)) { in dio_match_device() 36 if (ids->id == d->id) in dio_match_device() 37 return ids; in dio_match_device() 39 if ((ids->id & 0xff) == (d->id & 0xff)) in dio_match_device() 40 return ids; in dio_match_device() 42 ids++; in dio_match_device() [all …]
|
/openbmc/linux/net/openvswitch/ |
H A D | vport.c | 402 int ovs_vport_set_upcall_portids(struct vport *vport, const struct nlattr *ids) in ovs_vport_set_upcall_portids() argument 406 if (!nla_len(ids) || nla_len(ids) % sizeof(u32)) in ovs_vport_set_upcall_portids() 411 vport_portids = kmalloc(sizeof(*vport_portids) + nla_len(ids), in ovs_vport_set_upcall_portids() 416 vport_portids->n_ids = nla_len(ids) / sizeof(u32); in ovs_vport_set_upcall_portids() 418 nla_memcpy(vport_portids->ids, ids, nla_len(ids)); in ovs_vport_set_upcall_portids() 444 struct vport_portids *ids; in ovs_vport_get_upcall_portids() local 446 ids = rcu_dereference_ovsl(vport->upcall_portids); in ovs_vport_get_upcall_portids() 450 ids->n_ids * sizeof(u32), (void *)ids->ids); in ovs_vport_get_upcall_portids() 452 return nla_put_u32(skb, OVS_VPORT_ATTR_UPCALL_PID, ids->ids[0]); in ovs_vport_get_upcall_portids() 469 struct vport_portids *ids; in ovs_vport_find_upcall_portid() local [all …]
|
/openbmc/qemu/hw/usb/ |
H A D | quirks.c | 19 static bool usb_id_match(const struct usb_device_id *ids, in usb_id_match() argument 25 for (i = 0; ids[i].terminating_entry == 0; i++) { in usb_id_match() 26 if (ids[i].vendor_id == vendor_id && in usb_id_match() 27 ids[i].product_id == product_id && in usb_id_match() 28 (ids[i].interface_protocol_used == 0 || in usb_id_match() 29 (ids[i].interface_class == interface_class && in usb_id_match() 30 ids[i].interface_subclass == interface_subclass && in usb_id_match() 31 ids[i].interface_protocol == interface_protocol))) { in usb_id_match()
|
/openbmc/linux/drivers/regulator/ |
H A D | stpmic1_regulator.c | 198 #define REG_LDO(ids, base) { \ argument 199 .name = #ids, \ 200 .id = STPMIC1_##ids, \ 207 .vsel_reg = ids##_ACTIVE_CR, \ 209 .enable_reg = ids##_ACTIVE_CR, \ 218 #define REG_LDO3(ids, base) { \ argument 219 .name = #ids, \ 220 .id = STPMIC1_##ids, \ 242 #define REG_LDO4(ids, base) { \ argument 243 .name = #ids, \ [all …]
|
H A D | max8907-regulator.c | 46 #define REG_LDO(ids, supply, base, min, max, step) \ argument 47 [MAX8907_##ids] = { \ 48 .name = #ids, \ 50 .id = MAX8907_##ids, \ 63 #define REG_FIXED(ids, supply, voltage) \ argument 64 [MAX8907_##ids] = { \ 65 .name = #ids, \ 67 .id = MAX8907_##ids, \ 75 #define REG_OUT5V(ids, supply, base, voltage) \ argument 76 [MAX8907_##ids] = { \ [all …]
|
/openbmc/linux/drivers/zorro/ |
H A D | zorro-driver.c | 32 zorro_match_device(const struct zorro_device_id *ids, in zorro_match_device() argument 35 while (ids->id) { in zorro_match_device() 36 if (ids->id == ZORRO_WILDCARD || ids->id == z->id) in zorro_match_device() 37 return ids; in zorro_match_device() 38 ids++; in zorro_match_device() 125 const struct zorro_device_id *ids = zorro_drv->id_table; in zorro_bus_match() local 127 if (!ids) in zorro_bus_match() 130 return !!zorro_match_device(ids, z); in zorro_bus_match()
|
/openbmc/linux/arch/arm/boot/dts/nxp/mxs/ |
H A D | imx28.dtsi | 218 fsl,pinmux-ids = < 229 fsl,pinmux-ids = < 240 fsl,pinmux-ids = < 253 fsl,pinmux-ids = < 277 fsl,pinmux-ids = < 287 fsl,pinmux-ids = < 300 fsl,pinmux-ids = < 311 fsl,pinmux-ids = < 324 fsl,pinmux-ids = < 335 fsl,pinmux-ids = < [all …]
|
H A D | imx23.dtsi | 144 fsl,pinmux-ids = < 155 fsl,pinmux-ids = < 168 fsl,pinmux-ids = < 179 fsl,pinmux-ids = < 190 fsl,pinmux-ids = < 216 fsl,pinmux-ids = < 226 fsl,pinmux-ids = < 241 fsl,pinmux-ids = < 261 fsl,pinmux-ids = < 270 fsl,pinmux-ids = < [all …]
|
/openbmc/linux/drivers/pci/ |
H A D | pci-stub.c | 22 static char ids[1024] __initdata; variable 24 module_param_string(ids, ids, sizeof(ids), 0); 25 MODULE_PARM_DESC(ids, "Initial PCI IDs to add to the stub driver, format is " 52 if (ids[0] == '\0') in pci_stub_init() 56 p = ids; in pci_stub_init()
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 142 | 88 ids="node-name=image,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=f… 96 …echo "$hmp_cmds" | run_qemu -drive "$files","$ids",cache.direct=on | grep -e "Cache" -e "[Cc]annot… 98 …echo "$hmp_cmds" | run_qemu -drive "$files","$ids",file.cache.direct=on | grep -e "Cache" -e "[Cc]… 100 …echo "$hmp_cmds" | run_qemu -drive "$files","$ids",backing.cache.direct=on | grep -e "Cache" -e "[… 102 …echo "$hmp_cmds" | run_qemu -drive "$files","$ids",backing.file.cache.direct=on | grep -e "Cache" … 108 …echo "$hmp_cmds" | run_qemu -drive "$files","$ids",cache.writeback=off | grep -e "Cache" -e "[Cc]a… 110 …echo "$hmp_cmds" | run_qemu -drive "$files","$ids",file.cache.writeback=off | grep -e "doesn't" -e… 112 …echo "$hmp_cmds" | run_qemu -drive "$files","$ids",backing.cache.writeback=off | grep -e "doesn't"… 114 …echo "$hmp_cmds" | run_qemu -drive "$files","$ids",backing.file.cache.writeback=off | grep -e "doe… 119 …echo "$hmp_cmds" | run_qemu -drive "$files","$ids",cache.no-flush=on | grep -e "Cache" -e "[Cc]ann… [all …]
|
/openbmc/linux/drivers/nvme/host/ |
H A D | sysfs.c | 52 struct nvme_ns_ids *ids = &head->ids; in wwid_show() local 57 if (!uuid_is_null(&ids->uuid)) in wwid_show() 58 return sysfs_emit(buf, "uuid.%pU\n", &ids->uuid); in wwid_show() 60 if (memchr_inv(ids->nguid, 0, sizeof(ids->nguid))) in wwid_show() 61 return sysfs_emit(buf, "eui.%16phN\n", ids->nguid); in wwid_show() 63 if (memchr_inv(ids->eui64, 0, sizeof(ids->eui64))) in wwid_show() 64 return sysfs_emit(buf, "eui.%8phN\n", ids->eui64); in wwid_show() 82 return sysfs_emit(buf, "%pU\n", dev_to_ns_head(dev)->ids.nguid); in nguid_show() 89 struct nvme_ns_ids *ids = &dev_to_ns_head(dev)->ids; in uuid_show() local 94 if (uuid_is_null(&ids->uuid)) { in uuid_show() [all …]
|
/openbmc/linux/sound/soc/ |
H A D | soc-acpi.c | 134 struct sdw_extended_slave_id *ids, in snd_soc_acpi_sdw_link_slaves_found() argument 151 if (ids[j].link_id == link_id && in snd_soc_acpi_sdw_link_slaves_found() 152 ids[j].id.part_id == part_id && in snd_soc_acpi_sdw_link_slaves_found() 153 ids[j].id.mfg_id == mfg_id && in snd_soc_acpi_sdw_link_slaves_found() 154 ids[j].id.sdw_version == version) in snd_soc_acpi_sdw_link_slaves_found() 161 if (ids[j].link_id != link_id || in snd_soc_acpi_sdw_link_slaves_found() 162 ids[j].id.part_id != part_id || in snd_soc_acpi_sdw_link_slaves_found() 163 ids[j].id.mfg_id != mfg_id || in snd_soc_acpi_sdw_link_slaves_found() 164 ids[j].id.sdw_version != version) in snd_soc_acpi_sdw_link_slaves_found() 183 ids[j].id.unique_id == unique_id) { in snd_soc_acpi_sdw_link_slaves_found()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/diag/ |
H A D | en_tc_tracepoint.c | 7 void put_ids_to_array(int *ids, in put_ids_to_array() argument 14 ids[i] = entries[i].id; in put_ids_to_array() 43 int *ids, in parse_action() argument 50 if (ids[i] < NUM_FLOW_ACTIONS) in parse_action() 51 trace_seq_printf(p, "%s ", FLOWACT2STR[ids[i]]); in parse_action()
|
H A D | en_tc_tracepoint.h | 15 #define __parse_action(ids, num) parse_action(p, ids, num) argument 17 void put_ids_to_array(int *ids, 22 int *ids, 30 __dynamic_array(int, ids, f->rule ? 37 put_ids_to_array(__get_dynamic_array(ids), 43 __parse_action(__get_dynamic_array(ids),
|
/openbmc/linux/drivers/sh/superhyway/ |
H A D | superhyway.c | 124 superhyway_match_id(const struct superhyway_device_id *ids, in superhyway_match_id() argument 127 while (ids->id) { in superhyway_match_id() 128 if (ids->id == dev->id.id) in superhyway_match_id() 129 return ids; in superhyway_match_id() 131 ids++; in superhyway_match_id() 194 const struct superhyway_device_id *ids = shyway_drv->id_table; in superhyway_bus_match() local 196 if (!ids) in superhyway_bus_match() 198 if (superhyway_match_id(ids, shyway_dev)) in superhyway_bus_match()
|
/openbmc/phosphor-logging/test/ |
H A D | extensions_test.cpp | 98 std::vector<uint32_t> ids; in REGISTER_EXTENSION_FUNCTION() local 103 getLogIDWithHwIsolation(ids); in REGISTER_EXTENSION_FUNCTION() 106 EXPECT_EQ(ids.size(), 1); in REGISTER_EXTENSION_FUNCTION() 107 EXPECT_EQ(ids[0], 1); in REGISTER_EXTENSION_FUNCTION() 111 EXPECT_EQ(ids.size(), 2); in REGISTER_EXTENSION_FUNCTION() 112 EXPECT_EQ(ids[1], 2); in REGISTER_EXTENSION_FUNCTION()
|
/openbmc/openbmc/meta-security/recipes-core/packagegroup/ |
H A D | packagegroup-core-security.bb | 13 packagegroup-security-ids \ 23 packagegroup-security-ids \ 70 SUMMARY:packagegroup-security-ids = "Security Intrusion Detection systems" 71 RDEPENDS:packagegroup-security-ids = " \ 78 RDEPENDS:packagegroup-security-ids:remove:powerpc = "suricata" 79 RDEPENDS:packagegroup-security-ids:remove:powerpc64le = "suricata" 80 RDEPENDS:packagegroup-security-ids:remove:powerpc64 = "suricata" 81 RDEPENDS:packagegroup-security-ids:remove:riscv32 = "suricata" 82 RDEPENDS:packagegroup-security-ids:remove:riscv64 = "suricata" 83 RDEPENDS:packagegroup-security-ids:remove:libc-musl = "ossec-hids"
|
/openbmc/u-boot/board/nvidia/nyan-big/ |
H A D | nyan-big.c | 88 static enum periph_id ids[] = { in enable_required_clocks() enum 114 for (i = 0; i < ARRAY_SIZE(ids); i++) in enable_required_clocks() 115 clock_enable(ids[i]); in enable_required_clocks() 117 for (i = 0; i < ARRAY_SIZE(ids); i++) in enable_required_clocks() 118 reset_set_enable(ids[i], 0); in enable_required_clocks()
|
/openbmc/qemu/hw/input/ |
H A D | virtio-input-host.c | 103 struct input_id ids; in virtio_input_host_realize() local 141 if (ioctl(vih->fd, EVIOCGID, &ids) == 0) { in virtio_input_host_realize() 145 id.u.ids.bustype = cpu_to_le16(ids.bustype); in virtio_input_host_realize() 146 id.u.ids.vendor = cpu_to_le16(ids.vendor); in virtio_input_host_realize() 147 id.u.ids.product = cpu_to_le16(ids.product); in virtio_input_host_realize() 148 id.u.ids.version = cpu_to_le16(ids.version); in virtio_input_host_realize()
|