| /drivers/gpu/drm/mediatek/ |
| A D | mtk_ddp_comp.h | 115 comp->funcs->power_off(comp->dev); in mtk_ddp_comp_power_off() 131 comp->funcs->clk_disable(comp->dev); in mtk_ddp_comp_clk_disable() 138 if (comp && comp->funcs && comp->funcs->mode_valid) in mtk_ddp_comp_mode_valid() 148 if (comp->funcs && comp->funcs->config) in mtk_ddp_comp_config() 154 if (comp->funcs && comp->funcs->start) in mtk_ddp_comp_start() 155 comp->funcs->start(comp->dev); in mtk_ddp_comp_start() 160 if (comp->funcs && comp->funcs->stop) in mtk_ddp_comp_stop() 161 comp->funcs->stop(comp->dev); in mtk_ddp_comp_stop() 248 comp->funcs->bgclr_in_on(comp->dev); in mtk_ddp_comp_bgclr_in_on() 309 comp->funcs->add(comp->dev, mutex); in mtk_ddp_comp_add() [all …]
|
| A D | mtk_crtc.c | 143 struct mtk_ddp_comp *comp; in mtk_crtc_destroy() local 267 return comp; in mtk_ddp_comp_for_plane() 421 if (comp) in mtk_crtc_ddp_hw_init() 514 if (comp) in mtk_crtc_ddp_config() 538 if (comp) in mtk_crtc_ddp_config() 717 if (comp) in mtk_crtc_plane_check() 928 if (!comp->funcs) in mtk_crtc_num_comp_planes() 1032 if (!comp->dev) { in mtk_crtc_create() 1065 if (comp->funcs) { in mtk_crtc_create() 1066 if (comp->funcs->gamma_set && comp->funcs->gamma_get_lut_size) { in mtk_crtc_create() [all …]
|
| /drivers/net/ethernet/mellanox/mlx5/core/lib/ |
| A D | devcom.c | 115 comp = kzalloc(sizeof(*comp), GFP_KERNEL); in mlx5_devcom_comp_alloc() 116 if (!comp) in mlx5_devcom_comp_alloc() 124 lockdep_set_class(&comp->sem, &comp->lock_key); in mlx5_devcom_comp_alloc() 128 return comp; in mlx5_devcom_comp_alloc() 156 devcom->comp = comp; in devcom_alloc_comp_dev() 169 struct mlx5_devcom_comp *comp = devcom->comp; in devcom_free_comp_dev() local 261 struct mlx5_devcom_comp *comp = devcom->comp; in mlx5_devcom_comp_get_size() local 278 comp = devcom->comp; in mlx5_devcom_send_event() 330 comp = devcom->comp; in mlx5_devcom_for_each_peer_begin() 348 struct mlx5_devcom_comp *comp = devcom->comp; in mlx5_devcom_get_next_peer_data() local [all …]
|
| /drivers/block/zram/ |
| A D | zcomp.c | 58 ret = comp->ops->create_ctx(comp->params, &zstrm->ctx); in zcomp_strm_init() 149 ret = comp->ops->compress(comp->params, &zstrm->ctx, &req); in zcomp_compress() 166 return comp->ops->decompress(comp->params, &zstrm->ctx, &req); in zcomp_decompress() 201 ret = comp->ops->setup_params(comp->params); in zcomp_init() 215 comp->ops->release_params(comp->params); in zcomp_init() 223 comp->ops->release_params(comp->params); in zcomp_destroy() 225 kfree(comp); in zcomp_destroy() 242 if (!comp) in zcomp_create() 247 kfree(comp); in zcomp_create() 253 kfree(comp); in zcomp_create() [all …]
|
| /drivers/clk/actions/ |
| A D | owl-composite.c | 18 struct owl_composite *comp = hw_to_owl_comp(hw); in owl_comp_get_parent() local 20 return owl_mux_helper_get_parent(&comp->common, &comp->mux_hw); in owl_comp_get_parent() 27 return owl_mux_helper_set_parent(&comp->common, &comp->mux_hw, index); in owl_comp_set_parent() 35 owl_gate_set(common, &comp->gate_hw, false); in owl_comp_disable() 43 owl_gate_set(common, &comp->gate_hw, true); in owl_comp_enable() 62 rate = owl_divider_helper_round_rate(&comp->common, &comp->rate.div_hw, in owl_comp_div_determine_rate() 76 return owl_divider_helper_recalc_rate(&comp->common, &comp->rate.div_hw, in owl_comp_div_recalc_rate() 85 return owl_divider_helper_set_rate(&comp->common, &comp->rate.div_hw, in owl_comp_div_set_rate() 96 &comp->rate.factor_hw, in owl_comp_fact_determine_rate() 111 &comp->rate.factor_hw, in owl_comp_fact_recalc_rate() [all …]
|
| /drivers/net/slip/ |
| A D | slhc.c | 102 if (! comp) in slhc_init() 108 if (! comp->rstate) in slhc_init() 116 if (! comp->tstate) in slhc_init() 133 ts = comp->tstate; in slhc_init() 141 return comp; in slhc_init() 146 kfree(comp); in slhc_init() 165 kfree( comp ); in slhc_free() 230 struct cstate *ocs = &(comp->tstate[comp->xmit_oldest]); in slhc_compress() 279 comp->sls_o_tcp++; in slhc_compress() 533 cs = &comp->rstate[comp->recv_current]; in slhc_uncompress() [all …]
|
| /drivers/media/platform/mediatek/mdp/ |
| A D | mtk_mdp_comp.c | 19 if (IS_ERR(comp->clk[i])) in mtk_mdp_comp_clock_on() 25 err, comp->type, i); in mtk_mdp_comp_clock_on() 34 if (IS_ERR(comp->clk[i])) in mtk_mdp_comp_clock_off() 41 struct mtk_mdp_comp *comp, in mtk_mdp_comp_init() argument 47 comp->dev_node = of_node_get(node); in mtk_mdp_comp_init() 48 comp->type = comp_type; in mtk_mdp_comp_init() 51 comp->clk[i] = of_clk_get(node, i); in mtk_mdp_comp_init() 52 if (IS_ERR(comp->clk[i])) { in mtk_mdp_comp_init() 59 if (comp->type != MTK_MDP_RDMA) in mtk_mdp_comp_init() 66 of_node_put(comp->dev_node); in mtk_mdp_comp_init() [all …]
|
| A D | mtk_mdp_core.c | 94 struct mtk_mdp_comp *comp) in mtk_mdp_register_component() argument 96 list_add(&comp->node, &mdp->comp_list); in mtk_mdp_register_component() 100 struct mtk_mdp_comp *comp) in mtk_mdp_unregister_component() argument 102 list_del(&comp->node); in mtk_mdp_unregister_component() 110 struct mtk_mdp_comp *comp, *comp_temp; in mtk_mdp_probe() local 152 comp = devm_kzalloc(dev, sizeof(*comp), GFP_KERNEL); in mtk_mdp_probe() 153 if (!comp) { in mtk_mdp_probe() 165 mtk_mdp_register_component(mdp, comp); in mtk_mdp_probe() 231 mtk_mdp_comp_deinit(dev, comp); in mtk_mdp_probe() 241 struct mtk_mdp_comp *comp, *comp_temp; in mtk_mdp_remove() local [all …]
|
| /drivers/counter/ |
| A D | counter-sysfs.c | 39 struct counter_comp comp; member 202 switch (a->comp.type) { in counter_comp_u32_show() 249 switch (a->comp.type) { in counter_comp_u32_store() 544 counter_attr->comp.type = comp->type; in counter_avail_attr_create() 545 counter_attr->comp.priv = comp->priv; in counter_avail_attr_create() 554 comp->name); in counter_avail_attr_create() 582 counter_attr->comp = *comp; in counter_attr_create() 590 switch (comp->type) { in counter_attr_create() 663 switch (comp->type) { in counter_attr_create() 910 if (!comp.name) in counter_sysfs_synapses_add() [all …]
|
| A D | counter-chrdev.c | 29 struct counter_comp comp; member 50 (comp.action_read || \ 51 comp.device_u8_read || \ 52 comp.count_u8_read || \ 53 comp.signal_u8_read || \ 54 comp.device_u32_read || \ 55 comp.count_u32_read || \ 58 comp.count_u64_read || \ 169 counter_comp_read_is_equal(comp_node->comp, cfg->comp)) { in counter_set_event_node() 527 const struct counter_comp *const comp = &comp_node->comp; in counter_get_data() local [all …]
|
| /drivers/media/platform/mediatek/mdp3/ |
| A D | mtk-mdp3-comp.c | 1574 ret, comp->type, comp->inner_id); in mdp_comp_clock_on() 1586 i, comp->type, comp->inner_id); in mdp_comp_clock_on() 1599 if (comp->comp_dev && is_dma_capable(comp->type)) in mdp_comp_clock_on() 1615 if (comp->comp_dev && is_dma_capable(comp->type)) in mdp_comp_clock_off() 1687 comp->public_id, comp->inner_id, comp->type); in mdp_get_subsys_id() 1750 comp->ops = mdp_comp_ops[comp->type]; in mdp_comp_init() 1798 if (comp->comp_dev && comp->clks) { in mdp_comp_deinit() 1827 mdp->comp[id] = comp; in mdp_comp_create() 1831 dev->of_node->name, comp->type, comp->alias_id, id, comp->inner_id, in mdp_comp_create() 1832 (u32)comp->reg_base, comp->regs); in mdp_comp_create() [all …]
|
| /drivers/most/ |
| A D | core.c | 703 if (c->pipe0.comp == comp) in most_remove_link() 705 if (c->pipe1.comp == comp) in most_remove_link() 1001 if (comp == c->pipe0.comp) in most_get_mbo() 1003 else if (comp == c->pipe1.comp) in most_get_mbo() 1140 if (comp == c->pipe0.comp) in most_start_channel() 1142 if (comp == c->pipe1.comp) in most_start_channel() 1206 if (comp == c->pipe0.comp) in most_stop_channel() 1208 if (comp == c->pipe1.comp) in most_stop_channel() 1238 if (c->pipe0.comp == comp || c->pipe1.comp == comp) in disconnect_channels() 1240 if (c->pipe0.comp == comp) in disconnect_channels() [all …]
|
| A D | most_cdev.c | 28 } comp; variable 94 device_destroy(comp.class, c->devno); in destroy_cdev() 479 static struct cdev_component comp = { variable 495 if (IS_ERR(comp.class)) in most_cdev_init() 496 return PTR_ERR(comp.class); in most_cdev_init() 498 ida_init(&comp.minor_id); in most_cdev_init() 503 comp.major = MAJOR(comp.devno); in most_cdev_init() 517 ida_destroy(&comp.minor_id); in most_cdev_init() 518 class_destroy(comp.class); in most_cdev_init() 534 ida_destroy(&comp.minor_id); in most_cdev_exit() [all …]
|
| /drivers/net/ethernet/amd/pds_core/ |
| A D | adminq.c | 10 union pds_core_notifyq_comp *comp; in pdsc_process_notifyq() local 18 comp = cq_info->comp; in pdsc_process_notifyq() 19 eid = le64_to_cpu(comp->event.eid); in pdsc_process_notifyq() 50 comp = cq_info->comp; in pdsc_process_notifyq() 72 union pds_core_adminq_comp *comp; in pdsc_process_adminq() local 102 comp = cq->info[cq->tail_idx].comp; in pdsc_process_adminq() 108 memcpy(q_info->dest, comp, sizeof(*comp)); in pdsc_process_adminq() 115 comp = cq->info[cq->tail_idx].comp; in pdsc_process_adminq() 202 q_info->dest = comp; in __pdsc_adminq_post() 293 comp, sizeof(*comp), true); in pdsc_adminq_post() [all …]
|
| /drivers/vdpa/pds/ |
| A D | cmds.c | 25 union pds_core_adminq_comp comp = {}; in pds_vdpa_init_hw() local 30 &comp, 0); in pds_vdpa_init_hw() 33 comp.status, ERR_PTR(err)); in pds_vdpa_init_hw() 47 union pds_core_adminq_comp comp = {}; in pds_vdpa_cmd_reset() local 53 comp.status, ERR_PTR(err)); in pds_vdpa_cmd_reset() 94 &comp, 0); in pds_vdpa_cmd_set_mac() 97 mac, comp.status, ERR_PTR(err)); in pds_vdpa_cmd_set_mac() 117 &comp, 0); in pds_vdpa_cmd_set_max_vq_pairs() 151 &comp, 0); in pds_vdpa_cmd_init_vq() 154 qid, comp.status, ERR_PTR(err)); in pds_vdpa_cmd_init_vq() [all …]
|
| /drivers/gpu/drm/omapdrm/dss/ |
| A D | base.c | 190 struct omapdss_comp_node *comp; in omapdss_list_contains() local 193 if (comp->node == node) in omapdss_list_contains() 203 struct omapdss_comp_node *comp; in omapdss_walk_device() local 212 comp = devm_kzalloc(dev, sizeof(*comp), GFP_KERNEL); in omapdss_walk_device() 213 if (comp) { in omapdss_walk_device() 214 comp->node = node; in omapdss_walk_device() 215 comp->dss_core_component = dss_core; in omapdss_walk_device() 216 comp->compat = compat; in omapdss_walk_device() 261 if (comp->dss_core_component) in omapdss_component_is_loaded() 273 struct omapdss_comp_node *comp; in omapdss_stack_is_ready() local [all …]
|
| /drivers/vfio/pci/pds/ |
| A D | cmds.c | 99 union pds_core_adminq_comp comp = {}; in pds_vfio_suspend_wait_device_cmd() local 139 union pds_core_adminq_comp comp = {}; in pds_vfio_suspend_device_cmd() local 173 union pds_core_adminq_comp comp = {}; in pds_vfio_resume_device_cmd() local 189 union pds_core_adminq_comp comp = {}; in pds_vfio_get_lm_state_size_cmd() local 291 union pds_core_adminq_comp comp = {}; in pds_vfio_get_lm_state_cmd() local 329 union pds_core_adminq_comp comp = {}; in pds_vfio_set_lm_state_cmd() local 369 union pds_core_adminq_comp comp = {}; in pds_vfio_send_host_vf_lm_status_cmd() local 397 union pds_core_adminq_comp comp = {}; in pds_vfio_dirty_status_cmd() local 441 union pds_core_adminq_comp comp = {}; in pds_vfio_dirty_enable_cmd() local 463 union pds_core_adminq_comp comp = {}; in pds_vfio_dirty_disable_cmd() local [all …]
|
| /drivers/infiniband/sw/rxe/ |
| A D | rxe_comp.c | 124 qp->comp.timeout = 1; in retransmit_timer() 169 qp->comp.started_retry = 0; in reset_retry_counters() 224 switch (qp->comp.opcode) { in check_ack() 316 qp->comp.psn = pkt->psn; in check_ack() 530 qp->comp.opcode = -1; in complete_wqe() 662 if (qp->comp.timeout) { in rxe_completer() 664 qp->comp.timeout = 0; in rxe_completer() 724 qp->comp.opcode = -1; in rxe_completer() 773 qp->comp.retry_cnt--; in rxe_completer() 780 qp->comp.psn) > 0) { in rxe_completer() [all …]
|
| /drivers/clk/ti/ |
| A D | composite.c | 83 struct component_clk *comp; in _lookup_component() local 86 if (comp->node == node) in _lookup_component() 87 return comp; in _lookup_component() 117 struct component_clk *comp; in _register_composite() local 130 if (!comp) { in _register_composite() 145 cclk->comp_clks[comp->type] = comp; in _register_composite() 153 comp = cclk->comp_clks[i]; in _register_composite() 154 if (!comp) in _register_composite() 156 if (comp->num_parents) { in _register_composite() 157 num_parents = comp->num_parents; in _register_composite() [all …]
|
| /drivers/net/ethernet/mellanox/mlxfw/ |
| A D | mlxfw_fsm.c | 243 comp->index, in mlxfw_flash_component() 244 comp->data_size); in mlxfw_flash_component() 263 comp_name, 0, comp->data_size); in mlxfw_flash_component() 267 block_ptr = comp->data + offset; in mlxfw_flash_component() 280 comp->data_size); in mlxfw_flash_component() 286 comp->index); in mlxfw_flash_component() 323 struct mlxfw_mfa2_component *comp; in mlxfw_flash_components() local 327 if (IS_ERR(comp)) { in mlxfw_flash_components() 328 err = PTR_ERR(comp); in mlxfw_flash_components() 335 comp->index); in mlxfw_flash_components() [all …]
|
| A D | mlxfw_mfa2.c | 498 struct mlxfw_mfa2_component comp; member 535 const struct mlxfw_mfa2_tlv_component_descriptor *comp; in mlxfw_mfa2_file_component_get() local 542 comp = mlxfw_mfa2_file_component_find(mfa2_file, psid, psid_size, in mlxfw_mfa2_file_component_get() 544 if (!comp) in mlxfw_mfa2_file_component_get() 547 cb_offset = (u64) be32_to_cpu(comp->cb_offset_h) << 32 | in mlxfw_mfa2_file_component_get() 548 be32_to_cpu(comp->cb_offset_l); in mlxfw_mfa2_file_component_get() 549 comp_size = be32_to_cpu(comp->size); in mlxfw_mfa2_file_component_get() 555 comp_data->comp.data_size = comp_size; in mlxfw_mfa2_file_component_get() 556 comp_data->comp.index = be16_to_cpu(comp->identifier); in mlxfw_mfa2_file_component_get() 572 return &comp_data->comp; in mlxfw_mfa2_file_component_get() [all …]
|
| /drivers/gpu/drm/panfrost/ |
| A D | panfrost_device.c | 96 for (i = 0; i < pfdev->comp->num_supplies; i++) in panfrost_regulator_init() 100 pfdev->comp->num_supplies, in panfrost_regulator_init() 109 ret = regulator_bulk_enable(pfdev->comp->num_supplies, in panfrost_regulator_init() 158 if (num_domains != pfdev->comp->num_pm_domains) { in panfrost_pm_domain_init() 161 num_domains, pfdev->comp->num_pm_domains); in panfrost_pm_domain_init() 172 pfdev->comp->pm_domain_names[i]); in panfrost_pm_domain_init() 178 pfdev->comp->pm_domain_names[i], i, err); in panfrost_pm_domain_init() 416 if (pfdev->comp->pm_features & BIT(GPU_PM_RT)) { in panfrost_device_runtime_resume() 438 if (pfdev->comp->pm_features & BIT(GPU_PM_RT)) in panfrost_device_runtime_resume() 441 if (pfdev->comp->pm_features & BIT(GPU_PM_RT)) in panfrost_device_runtime_resume() [all …]
|
| /drivers/net/ethernet/pensando/ionic/ |
| A D | ionic_main.c | 236 if (ctx->comp.comp.status || timeout) { in ionic_adminq_check_err() 238 ionic_error_to_errno(ctx->comp.comp.status); in ionic_adminq_check_err() 242 ctx->comp.comp.status, err); in ionic_adminq_check_err() 254 union ionic_notifyq_comp *comp; in ionic_notifyq_service() local 275 comp, sizeof(*comp), true); in ionic_notifyq_service() 297 comp->event.ecode, eid); in ionic_notifyq_service() 308 struct ionic_admin_comp *comp; in ionic_adminq_service() local 327 memcpy(&ctx->comp, comp, sizeof(*comp)); in ionic_adminq_service() 331 &ctx->comp, sizeof(ctx->comp), true); in ionic_adminq_service() 428 ctx->comp.comp.status = IONIC_RC_ERROR; in ionic_adminq_wait() [all …]
|
| /drivers/staging/greybus/ |
| A D | audio_codec.c | 809 struct snd_soc_component *comp; in gbaudio_register_module() local 817 comp = gbcodec->component; in gbaudio_register_module() 846 if (comp->card->instantiated) { in gbaudio_register_module() 847 gbaudio_dapm_link_component_dai_widgets(comp->card, &comp->dapm); in gbaudio_register_module() 854 snd_device_register(comp->card->snd_card, in gbaudio_register_module() 864 if (comp->card->instantiated) in gbaudio_register_module() 961 snd_device_free(comp->card->snd_card, in gbaudio_unregister_module() 1007 info->dev = comp->dev; in gbcodec_probe() 1022 info->component = comp; in gbcodec_probe() 1023 snd_soc_component_set_drvdata(comp, info); in gbcodec_probe() [all …]
|
| /drivers/gpu/drm/nouveau/nvkm/engine/dma/ |
| A D | usernv50.c | 78 u32 user, part, comp, kind; in nv50_dmaobj_new() local 97 args->v0.priv, args->v0.part, args->v0.comp, in nv50_dmaobj_new() 101 comp = args->v0.comp; in nv50_dmaobj_new() 108 comp = NV50_DMA_V0_COMP_NONE; in nv50_dmaobj_new() 113 comp = NV50_DMA_V0_COMP_VM; in nv50_dmaobj_new() 119 if (user > 2 || part > 2 || comp > 3 || kind > 0x7f) in nv50_dmaobj_new() 121 dmaobj->flags0 = (comp << 29) | (kind << 22) | (user << 20) | in nv50_dmaobj_new()
|