/openbmc/linux/drivers/media/platform/amphion/ |
H A D | vpu_cmds.c | 31 u32 id; member 81 static struct vpu_cmd_t *vpu_alloc_cmd(struct vpu_inst *inst, u32 id, void *data) in vpu_alloc_cmd() argument 97 cmd->id = id; in vpu_alloc_cmd() 98 ret = vpu_iface_pack_cmd(inst->core, cmd->pkt, inst->id, id, data); in vpu_alloc_cmd() 100 dev_err(inst->dev, "iface pack cmd %s fail\n", vpu_id_name(id)); in vpu_alloc_cmd() 106 if (vpu_cmd_requests[i].request == id) { in vpu_alloc_cmd() 129 dev_dbg(inst->dev, "[%d]send cmd %s\n", inst->id, vpu_id_name(cmd->id)); in vpu_session_process_cmd() 134 vpu_inst_record_flow(inst, cmd->id); in vpu_session_process_cmd() 136 dev_err(inst->dev, "[%d] iface send cmd %s fail\n", inst->id, vpu_id_name(cmd->id)); in vpu_session_process_cmd() 154 inst->id, vpu_id_name(cmd->id)); in vpu_process_cmd_request() [all …]
|
/openbmc/linux/drivers/counter/ |
H A D | i8254.c | 66 ret = regmap_write(priv->map, I8254_CONTROL_REG, I8254_COUNTER_LATCH(count->id)); in i8254_count_read() 71 ret = regmap_noinc_read(priv->map, I8254_COUNTER_REG(count->id), value, sizeof(value)); in i8254_count_read() 103 switch (synapse->signal->id % I8254_SYNAPSES_PER_COUNT) { in i8254_action_read() 108 switch (priv->out_mode[count->id]) { in i8254_action_read() 132 switch (priv->out_mode[count->id]) { in i8254_count_ceiling_read() 135 *ceiling = (priv->preset[count->id] == 0) ? U16_MAX : priv->preset[count->id]; in i8254_count_ceiling_read() 138 if (priv->preset[count->id] % 2) in i8254_count_ceiling_read() 139 *ceiling = priv->preset[count->id] - 1; in i8254_count_ceiling_read() 140 else if (priv->preset[count->id] == 0) in i8254_count_ceiling_read() 144 *ceiling = priv->preset[count->id]; in i8254_count_ceiling_read() [all …]
|
/openbmc/linux/drivers/pmdomain/tegra/ |
H A D | powergate-bpmp.c | 15 unsigned int id; member 22 unsigned int id; member 32 unsigned int id, u32 state) in tegra_bpmp_powergate_set_state() argument 40 request.id = id; in tegra_bpmp_powergate_set_state() 58 unsigned int id) in tegra_bpmp_powergate_get_state() argument 67 request.id = id; in tegra_bpmp_powergate_get_state() 116 unsigned int id) in tegra_bpmp_powergate_get_name() argument 125 request.id = id; in tegra_bpmp_powergate_get_name() 144 unsigned int id) in tegra_bpmp_powergate_is_powered() argument 146 return tegra_bpmp_powergate_get_state(bpmp, id) != PG_STATE_OFF; in tegra_bpmp_powergate_is_powered() [all …]
|
/openbmc/u-boot/arch/powerpc/cpu/mpc85xx/ |
H A D | liodn.c | 18 liodns[0] = liodn_bases[dpaa_dev].id[0] + liodn_offset; in get_dpaa_liodn() 21 liodns[1] = liodn_bases[dpaa_dev].id[1] + liodn_offset; in get_dpaa_liodn() 33 out_be32((u32 *)reg_off, tbl[i].id[0]); in set_srio_liodn() 37 out_be32((u32 *)reg_off, tbl[i].id[1]); in set_srio_liodn() 50 liodn = (tbl[i].id[0] << 16) | tbl[i].id[1]; in set_liodn() 52 liodn = tbl[i].id[0]; in set_liodn() 67 liodn = (tbl[i].id[0] << 16) | tbl[i].id[1]; in set_fman_liodn() 69 liodn = tbl[i].id[0]; in set_fman_liodn() 87 base = (liodn_bases[FSL_HW_PORTAL_SEC].id[0] << 16) | in setup_sec_liodn_base() 88 liodn_bases[FSL_HW_PORTAL_SEC].id[1]; in setup_sec_liodn_base() [all …]
|
/openbmc/linux/sound/isa/ |
H A D | als100.c | 33 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ variable 45 module_param_array(id, charp, NULL, 0444); 46 MODULE_PARM_DESC(id, "ID string for Avance Logic based soundcard."); 61 { .id = "RWB1688", 65 { .id = "ALS0007", 69 { .id = "ALS0001", 73 { .id = "ALS0110", 77 { .id = "ALS0120", 81 { .id = "ALS0200", 85 { .id = "ALS0200", [all …]
|
/openbmc/linux/arch/mips/cavium-octeon/ |
H A D | smp.c | 144 int id; in octeon_smp_setup() local 153 for (id = 0; id < NR_CPUS; id++) { in octeon_smp_setup() 154 set_cpu_possible(id, id == 0); in octeon_smp_setup() 155 set_cpu_present(id, id == 0); in octeon_smp_setup() 163 for (id = 0; id < NR_CPUS; id++) { in octeon_smp_setup() 164 if ((id != coreid) && cvmx_coremask_is_core_set(&sysinfo->core_mask, id)) { in octeon_smp_setup() 167 __cpu_number_map[id] = cpus; in octeon_smp_setup() 168 __cpu_logical_map[cpus] = id; in octeon_smp_setup() 179 for (id = 0; setup_max_cpus && octeon_bootloader_entry_addr && in octeon_smp_setup() 180 id < num_cores && id < NR_CPUS; id++) { in octeon_smp_setup() [all …]
|
/openbmc/linux/drivers/clk/qcom/ |
H A D | reset.c | 14 static int qcom_reset(struct reset_controller_dev *rcdev, unsigned long id) in qcom_reset() argument 18 rcdev->ops->assert(rcdev, id); in qcom_reset() 19 fsleep(rst->reset_map[id].udelay ?: 1); /* use 1 us as default */ in qcom_reset() 21 rcdev->ops->deassert(rcdev, id); in qcom_reset() 26 unsigned long id, bool assert) in qcom_reset_set_assert() argument 33 map = &rst->reset_map[id]; in qcom_reset_set_assert() 44 static int qcom_reset_assert(struct reset_controller_dev *rcdev, unsigned long id) in qcom_reset_assert() argument 46 return qcom_reset_set_assert(rcdev, id, true); in qcom_reset_assert() 49 static int qcom_reset_deassert(struct reset_controller_dev *rcdev, unsigned long id) in qcom_reset_deassert() argument 51 return qcom_reset_set_assert(rcdev, id, false); in qcom_reset_deassert()
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 219 | 102 iotests.log(vm.qmp('job-complete', id='job0')) 103 iotests.log(vm.qmp('job-finalize', id='job0')) 104 iotests.log(vm.qmp('job-dismiss', id='job0')) 107 iotests.log(vm.qmp('block-job-finalize', id='job0')) 108 iotests.log(vm.qmp('block-job-dismiss', id='job0')) 125 iotests.log(vm.qmp('job-finalize', id='job0')) 126 iotests.log(vm.qmp('job-dismiss', id='job0')) 128 iotests.log(vm.qmp('block-job-finalize', id='job0')) 129 iotests.log(vm.qmp('block-job-dismiss', id='job0')) 132 iotests.log(vm.qmp('job-complete', id='job0')) [all …]
|
/openbmc/u-boot/drivers/remoteproc/ |
H A D | rproc-uclass.c | 207 .id = UCLASS_REMOTEPROC, 275 int rproc_dev_init(int id) in rproc_dev_init() argument 280 ret = uclass_get_device_by_seq(UCLASS_REMOTEPROC, id, &dev); in rproc_dev_init() 283 id, ret); in rproc_dev_init() 294 int rproc_load(int id, ulong addr, ulong size) in rproc_load() argument 301 ret = uclass_get_device_by_seq(UCLASS_REMOTEPROC, id, &dev); in rproc_load() 304 id, ret); in rproc_load() 351 static int _rproc_ops_wrapper(int id, enum rproc_ops op) in _rproc_ops_wrapper() argument 361 ret = uclass_get_device_by_seq(UCLASS_REMOTEPROC, id, &dev); in _rproc_ops_wrapper() 364 id, ret); in _rproc_ops_wrapper() [all …]
|
/openbmc/linux/arch/sh/drivers/ |
H A D | platform_early.c | 11 platform_match_id(const struct platform_device_id *id, in platform_match_id() argument 14 while (id->name[0]) { in platform_match_id() 15 if (strcmp(pdev->name, id->name) == 0) { in platform_match_id() 16 pdev->id_entry = id; in platform_match_id() 17 return id; in platform_match_id() 19 id++; in platform_match_id() 175 sh_early_platform_match(struct sh_early_platform_driver *epdrv, int id) in sh_early_platform_match() argument 181 if (pd->id == id) in sh_early_platform_match() 193 int id) in sh_early_platform_left() argument 199 if (pd->id >= id) in sh_early_platform_left() [all …]
|
/openbmc/linux/arch/powerpc/mm/book3s64/ |
H A D | mmu_context.c | 35 void __init hash__reserve_context_id(int id) in hash__reserve_context_id() argument 37 int result = ida_alloc_range(&mmu_context_ida, id, id, GFP_KERNEL); in hash__reserve_context_id() 39 WARN(result != id, "mmu: Failed to reserve context id %d (rc %d)\n", id, result); in hash__reserve_context_id() 59 int i, id; in realloc_context_ids() local 75 id = hash__alloc_context_id(); in realloc_context_ids() 76 if (id < 0) in realloc_context_ids() 79 ctx->extended_id[i] = id; in realloc_context_ids() 84 return ctx->id; in realloc_context_ids() 92 return id; in realloc_context_ids() 118 if (mm->context.id == 0) { in hash__init_new_context() [all …]
|
/openbmc/linux/drivers/pnp/ |
H A D | core.c | 93 struct pnp_id *id; in pnp_free_ids() local 96 id = dev->id; in pnp_free_ids() 97 while (id) { in pnp_free_ids() 98 next = id->next; in pnp_free_ids() 99 kfree(id); in pnp_free_ids() 100 id = next; in pnp_free_ids() 129 struct pnp_dev *pnp_alloc_dev(struct pnp_protocol *protocol, int id, in pnp_alloc_dev() argument 142 dev->number = id; in pnp_alloc_dev() 205 struct pnp_id *id; in pnp_add_device() local 215 for (id = dev->id; id; id = id->next) in pnp_add_device() [all …]
|
/openbmc/linux/fs/smb/server/ |
H A D | crypto_ctx.c | 39 static struct crypto_aead *alloc_aead(int id) in alloc_aead() argument 43 switch (id) { in alloc_aead() 51 pr_err("Does not support encrypt ahead(id : %d)\n", id); in alloc_aead() 63 static struct shash_desc *alloc_shash_desc(int id) in alloc_shash_desc() argument 68 switch (id) { in alloc_shash_desc() 168 static struct ksmbd_crypto_ctx *____crypto_shash_ctx_find(int id) in ____crypto_shash_ctx_find() argument 172 if (id >= CRYPTO_SHASH_MAX) in ____crypto_shash_ctx_find() 176 if (ctx->desc[id]) in ____crypto_shash_ctx_find() 179 ctx->desc[id] = alloc_shash_desc(id); in ____crypto_shash_ctx_find() 180 if (ctx->desc[id]) in ____crypto_shash_ctx_find() [all …]
|
/openbmc/linux/drivers/reset/ |
H A D | reset-ma35d1.c | 132 u32 id = MA35D1_RESET_CHIP; in ma35d1_restart_handler() local 134 writel_relaxed(BIT(ma35d1_reset_map[id].bit), in ma35d1_restart_handler() 135 data->base + ma35d1_reset_map[id].reg_ofs); in ma35d1_restart_handler() 139 static int ma35d1_reset_update(struct reset_controller_dev *rcdev, unsigned long id, bool assert) in ma35d1_reset_update() argument 145 if (WARN_ON_ONCE(id >= ARRAY_SIZE(ma35d1_reset_map))) in ma35d1_reset_update() 149 reg = readl_relaxed(data->base + ma35d1_reset_map[id].reg_ofs); in ma35d1_reset_update() 151 reg |= BIT(ma35d1_reset_map[id].bit); in ma35d1_reset_update() 153 reg &= ~(BIT(ma35d1_reset_map[id].bit)); in ma35d1_reset_update() 154 writel_relaxed(reg, data->base + ma35d1_reset_map[id].reg_ofs); in ma35d1_reset_update() 160 static int ma35d1_reset_assert(struct reset_controller_dev *rcdev, unsigned long id) in ma35d1_reset_assert() argument [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | libbpf_str.c | 26 int i, n, id; in test_libbpf_bpf_attach_type_str() local 33 id = btf__find_by_name_kind(btf, "bpf_attach_type", BTF_KIND_ENUM); in test_libbpf_bpf_attach_type_str() 34 if (!ASSERT_GT(id, 0, "bpf_attach_type_id")) in test_libbpf_bpf_attach_type_str() 36 t = btf__type_by_id(btf, id); in test_libbpf_bpf_attach_type_str() 71 int i, n, id; in test_libbpf_bpf_link_type_str() local 78 id = btf__find_by_name_kind(btf, "bpf_link_type", BTF_KIND_ENUM); in test_libbpf_bpf_link_type_str() 79 if (!ASSERT_GT(id, 0, "bpf_link_type_id")) in test_libbpf_bpf_link_type_str() 81 t = btf__type_by_id(btf, id); in test_libbpf_bpf_link_type_str() 116 int i, n, id; in test_libbpf_bpf_map_type_str() local 123 id = btf__find_by_name_kind(btf, "bpf_map_type", BTF_KIND_ENUM); in test_libbpf_bpf_map_type_str() [all …]
|
/openbmc/linux/drivers/thermal/ti-soc-thermal/ |
H A D | ti-bandgap.h | 239 int (*register_cooling)(struct ti_bandgap *bgp, int id); 240 int (*unregister_cooling)(struct ti_bandgap *bgp, int id); 331 int (*report_temperature)(struct ti_bandgap *bgp, int id); 332 int (*expose_sensor)(struct ti_bandgap *bgp, int id, char *domain); 333 int (*remove_sensor)(struct ti_bandgap *bgp, int id); 339 int ti_bandgap_read_thot(struct ti_bandgap *bgp, int id, int *thot); 340 int ti_bandgap_write_thot(struct ti_bandgap *bgp, int id, int val); 341 int ti_bandgap_read_tcold(struct ti_bandgap *bgp, int id, int *tcold); 342 int ti_bandgap_write_tcold(struct ti_bandgap *bgp, int id, int val); 343 int ti_bandgap_read_update_interval(struct ti_bandgap *bgp, int id, [all …]
|
/openbmc/u-boot/arch/mips/mach-ath79/ |
H A D | cpu.c | 52 u32 id, major, minor = 0; in mach_cpu_init() local 59 id = readl(base + AR71XX_RESET_REG_REV_ID); in mach_cpu_init() 60 major = id & REV_ID_MAJOR_MASK; in mach_cpu_init() 64 minor = id & AR71XX_REV_ID_MINOR_MASK; in mach_cpu_init() 65 rev = id >> AR71XX_REV_ID_REVISION_SHIFT; in mach_cpu_init() 81 rev = id & AR71XX_REV_ID_REVISION2_MASK; in mach_cpu_init() 84 rev = id & AR71XX_REV_ID_REVISION_MASK; in mach_cpu_init() 96 gd->arch.id = id; in mach_cpu_init() 107 u32 id, rev, ver; in print_cpuinfo() local 118 id = gd->arch.id; in print_cpuinfo() [all …]
|
/openbmc/linux/sound/soc/intel/common/ |
H A D | soc-acpi-intel-cht-match.c | 16 static int cht_surface_quirk_cb(const struct dmi_system_id *id) in cht_surface_quirk_cb() argument 34 .id = "10EC5640", 94 .id = "10WM5102", 148 .id = "193C9890", 155 .id = "10508824", 169 .id = "ESSX8316", 186 .id = "10EC5682", 192 .id = "10EC5651", 199 .id = "14F10720", 206 .id = "104C5122", [all …]
|
/openbmc/linux/include/rdma/ |
H A D | uverbs_named_ioctl.h | 17 #define UVERBS_METHOD(id) _UVERBS_NAME(UVERBS_MODULE_NAME, _method_##id) argument 18 #define UVERBS_HANDLER(id) _UVERBS_NAME(UVERBS_MODULE_NAME, _handler_##id) argument 19 #define UVERBS_OBJECT(id) _UVERBS_NAME(UVERBS_MODULE_NAME, _object_##id) argument 29 .id = _method_id, \ 43 .id = _method_id, \ 53 .id = _object_id, \ 68 .id = _object_id, \ 79 .id = _object_id, \ 91 .id = _method_id, \
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn321/ |
H A D | dcn321_resource.c | 118 #define SR_ARR(reg_name, id)\ argument 119 REG_STRUCT[id].reg_name = BASE(reg ## reg_name ## _BASE_IDX) + \ 121 #define SR_ARR_INIT(reg_name, id, value)\ argument 122 REG_STRUCT[id].reg_name = value 124 #define SRI(reg_name, block, id)\ argument 125 REG_STRUCT.reg_name = BASE(reg ## block ## id ## _ ## reg_name ## _BASE_IDX) + \ 126 reg ## block ## id ## _ ## reg_name 128 #define SRI_ARR(reg_name, block, id)\ argument 129 REG_STRUCT[id].reg_name = BASE(reg ## block ## id ## _ ## reg_name ## _BASE_IDX) + \ 130 reg ## block ## id ## _ ## reg_name [all …]
|
/openbmc/phosphor-logging/extensions/openpower-pels/ |
H A D | log_id.cpp | 39 uint32_t addLogIDPrefix(uint32_t id) in addLogIDPrefix() argument 42 return (id & 0x00FFFFFF) | bmcLogIDPrefix; in addLogIDPrefix() 50 uint32_t id = in getTimeBasedLogID() local 54 return addLogIDPrefix(id); in getTimeBasedLogID() 70 uint32_t id = 0; in generatePELID() local 80 id = startingLogID; in generatePELID() 85 idFile >> id; in generatePELID() 95 if (id == 0x00FFFFFF) in generatePELID() 97 id = startingLogID; in generatePELID() 101 idFile << (id + 1); in generatePELID() [all …]
|
/openbmc/linux/drivers/dio/ |
H A D | dio-driver.c | 32 while (ids->id) { in dio_match_device() 33 if (ids->id == DIO_WILDCARD) 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() 39 if ((ids->id & 0xff) == (d->id & 0xff)) in dio_match_device() 54 const struct dio_device_id *id; in dio_device_probe() local 56 id = dio_match_device(drv->id_table, d); in dio_device_probe() 57 if (id) in dio_device_probe() 58 error = drv->probe(d, id); in dio_device_probe()
|
/openbmc/linux/sound/soc/qcom/qdsp6/ |
H A D | q6afe-dai.c | 42 struct q6afe_slim_cfg *slim = &dai_data->port_config[dai->id].slim; in q6slim_hw_params() 72 struct q6afe_hdmi_cfg *hdmi = &dai_data->port_config[dai->id].hdmi; in q6hdmi_hw_params() 99 struct q6afe_i2s_cfg *i2s = &dai_data->port_config[dai->id].i2s_cfg; in q6i2s_hw_params() 104 i2s->sd_line_mask = dai_data->priv[dai->id].sd_line_mask; in q6i2s_hw_params() 112 struct q6afe_i2s_cfg *i2s = &dai_data->port_config[dai->id].i2s_cfg; in q6i2s_set_fmt() 126 struct q6afe_tdm_cfg *tdm = &dai_data->port_config[dai->id].tdm; in q6tdm_set_tdm_slot() 157 switch (dai->id) { in q6tdm_set_tdm_slot() 162 tdm->slot_mask = ((dai->id & 0x1) ? tx_mask : rx_mask) & cap_mask; in q6tdm_set_tdm_slot() 166 __func__, dai->id); in q6tdm_set_tdm_slot() 179 struct q6afe_tdm_cfg *tdm = &dai_data->port_config[dai->id].tdm; in q6tdm_set_channel_map() [all …]
|
/openbmc/linux/include/net/netfilter/ |
H A D | nf_conntrack_extend.h | 45 static inline bool __nf_ct_ext_exist(const struct nf_ct_ext *ext, u8 id) in __nf_ct_ext_exist() argument 47 return !!ext->offset[id]; in __nf_ct_ext_exist() 50 static inline bool nf_ct_ext_exist(const struct nf_conn *ct, u8 id) in nf_ct_ext_exist() argument 52 return (ct->ext && __nf_ct_ext_exist(ct->ext, id)); in nf_ct_ext_exist() 55 void *__nf_ct_ext_find(const struct nf_ct_ext *ext, u8 id); 57 static inline void *nf_ct_ext_find(const struct nf_conn *ct, u8 id) in nf_ct_ext_find() argument 61 if (!ext || !__nf_ct_ext_exist(ext, id)) in nf_ct_ext_find() 65 return __nf_ct_ext_find(ext, id); in nf_ct_ext_find() 67 return (void *)ct->ext + ct->ext->offset[id]; in nf_ct_ext_find() 71 void *nf_ct_ext_add(struct nf_conn *ct, enum nf_ct_ext_id id, gfp_t gfp);
|
/openbmc/qemu/ebpf/ |
H A D | ebpf.c | 19 int id; member 29 void ebpf_register_binary_data(int id, const void *data, size_t datalen) in ebpf_register_binary_data() argument 36 dataentry->id = id; in ebpf_register_binary_data() 41 const void *ebpf_find_binary_by_id(int id, size_t *sz, Error **errp) in ebpf_find_binary_by_id() argument 45 if (id == it->id) { in ebpf_find_binary_by_id() 51 error_setg(errp, "can't find eBPF object with id: %d", id); in ebpf_find_binary_by_id() 56 EbpfObject *qmp_request_ebpf(EbpfProgramID id, Error **errp) in qmp_request_ebpf() argument 60 const void *data = ebpf_find_binary_by_id(id, &size, errp); in qmp_request_ebpf()
|