Home
last modified time | relevance | path

Searched refs:comp (Results 1 – 25 of 271) sorted by relevance

1234567891011

/drivers/gpu/drm/mediatek/
Dmtk_drm_ddp_comp.h42 void (*config)(struct mtk_ddp_comp *comp, unsigned int w,
45 void (*start)(struct mtk_ddp_comp *comp);
46 void (*stop)(struct mtk_ddp_comp *comp);
47 void (*enable_vblank)(struct mtk_ddp_comp *comp, struct drm_crtc *crtc);
48 void (*disable_vblank)(struct mtk_ddp_comp *comp);
49 unsigned int (*supported_rotations)(struct mtk_ddp_comp *comp);
50 unsigned int (*layer_nr)(struct mtk_ddp_comp *comp);
51 int (*layer_check)(struct mtk_ddp_comp *comp,
54 void (*layer_config)(struct mtk_ddp_comp *comp, unsigned int idx,
57 void (*gamma_set)(struct mtk_ddp_comp *comp,
[all …]
Dmtk_drm_ddp_comp.c91 struct mtk_ddp_comp *comp, unsigned int offset) in mtk_ddp_write() argument
95 cmdq_pkt_write(cmdq_pkt, comp->subsys, in mtk_ddp_write()
96 comp->regs_pa + offset, value); in mtk_ddp_write()
99 writel(value, comp->regs + offset); in mtk_ddp_write()
103 struct mtk_ddp_comp *comp, in mtk_ddp_write_relaxed() argument
108 cmdq_pkt_write(cmdq_pkt, comp->subsys, in mtk_ddp_write_relaxed()
109 comp->regs_pa + offset, value); in mtk_ddp_write_relaxed()
112 writel_relaxed(value, comp->regs + offset); in mtk_ddp_write_relaxed()
117 struct mtk_ddp_comp *comp, in mtk_ddp_write_mask() argument
123 cmdq_pkt_write_mask(cmdq_pkt, comp->subsys, in mtk_ddp_write_mask()
[all …]
Dmtk_disp_ovl.c77 static inline struct mtk_disp_ovl *comp_to_ovl(struct mtk_ddp_comp *comp) in comp_to_ovl() argument
79 return container_of(comp, struct mtk_disp_ovl, ddp_comp); in comp_to_ovl()
98 static void mtk_ovl_enable_vblank(struct mtk_ddp_comp *comp, in mtk_ovl_enable_vblank() argument
101 struct mtk_disp_ovl *ovl = comp_to_ovl(comp); in mtk_ovl_enable_vblank()
104 writel(0x0, comp->regs + DISP_REG_OVL_INTSTA); in mtk_ovl_enable_vblank()
105 writel_relaxed(OVL_FME_CPL_INT, comp->regs + DISP_REG_OVL_INTEN); in mtk_ovl_enable_vblank()
108 static void mtk_ovl_disable_vblank(struct mtk_ddp_comp *comp) in mtk_ovl_disable_vblank() argument
110 struct mtk_disp_ovl *ovl = comp_to_ovl(comp); in mtk_ovl_disable_vblank()
113 writel_relaxed(0x0, comp->regs + DISP_REG_OVL_INTEN); in mtk_ovl_disable_vblank()
116 static void mtk_ovl_start(struct mtk_ddp_comp *comp) in mtk_ovl_start() argument
[all …]
Dmtk_disp_rdma.c68 static inline struct mtk_disp_rdma *comp_to_rdma(struct mtk_ddp_comp *comp) in comp_to_rdma() argument
70 return container_of(comp, struct mtk_disp_rdma, ddp_comp); in comp_to_rdma()
89 static void rdma_update_bits(struct mtk_ddp_comp *comp, unsigned int reg, in rdma_update_bits() argument
92 unsigned int tmp = readl(comp->regs + reg); in rdma_update_bits()
95 writel(tmp, comp->regs + reg); in rdma_update_bits()
98 static void mtk_rdma_enable_vblank(struct mtk_ddp_comp *comp, in mtk_rdma_enable_vblank() argument
101 struct mtk_disp_rdma *rdma = comp_to_rdma(comp); in mtk_rdma_enable_vblank()
104 rdma_update_bits(comp, DISP_REG_RDMA_INT_ENABLE, RDMA_FRAME_END_INT, in mtk_rdma_enable_vblank()
108 static void mtk_rdma_disable_vblank(struct mtk_ddp_comp *comp) in mtk_rdma_disable_vblank() argument
110 struct mtk_disp_rdma *rdma = comp_to_rdma(comp); in mtk_rdma_disable_vblank()
[all …]
Dmtk_disp_color.c20 #define DISP_COLOR_START(comp) ((comp)->data->color_offset) argument
21 #define DISP_COLOR_WIDTH(comp) (DISP_COLOR_START(comp) + 0x50) argument
22 #define DISP_COLOR_HEIGHT(comp) (DISP_COLOR_START(comp) + 0x54) argument
42 static inline struct mtk_disp_color *comp_to_color(struct mtk_ddp_comp *comp) in comp_to_color() argument
44 return container_of(comp, struct mtk_disp_color, ddp_comp); in comp_to_color()
47 static void mtk_color_config(struct mtk_ddp_comp *comp, unsigned int w, in mtk_color_config() argument
51 struct mtk_disp_color *color = comp_to_color(comp); in mtk_color_config()
53 mtk_ddp_write(cmdq_pkt, w, comp, DISP_COLOR_WIDTH(color)); in mtk_color_config()
54 mtk_ddp_write(cmdq_pkt, h, comp, DISP_COLOR_HEIGHT(color)); in mtk_color_config()
57 static void mtk_color_start(struct mtk_ddp_comp *comp) in mtk_color_start() argument
[all …]
Dmtk_drm_crtc.c172 struct mtk_ddp_comp *comp = mtk_crtc->ddp_comp[0]; in mtk_drm_crtc_enable_vblank() local
174 mtk_ddp_comp_enable_vblank(comp, &mtk_crtc->base); in mtk_drm_crtc_enable_vblank()
182 struct mtk_ddp_comp *comp = mtk_crtc->ddp_comp[0]; in mtk_drm_crtc_disable_vblank() local
184 mtk_ddp_comp_disable_vblank(comp); in mtk_drm_crtc_disable_vblank()
221 struct mtk_ddp_comp *comp; in mtk_drm_ddp_comp_for_plane() local
226 comp = mtk_crtc->ddp_comp[i]; in mtk_drm_ddp_comp_for_plane()
227 if (local_index < (count + mtk_ddp_comp_layer_nr(comp))) { in mtk_drm_ddp_comp_for_plane()
229 return comp; in mtk_drm_ddp_comp_for_plane()
231 count += mtk_ddp_comp_layer_nr(comp); in mtk_drm_ddp_comp_for_plane()
306 struct mtk_ddp_comp *comp = mtk_crtc->ddp_comp[i]; in mtk_crtc_ddp_hw_init() local
[all …]
/drivers/clk/actions/
Dowl-composite.c18 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()
25 struct owl_composite *comp = hw_to_owl_comp(hw); in owl_comp_set_parent() local
27 return owl_mux_helper_set_parent(&comp->common, &comp->mux_hw, index); in owl_comp_set_parent()
32 struct owl_composite *comp = hw_to_owl_comp(hw); in owl_comp_disable() local
33 struct owl_clk_common *common = &comp->common; in owl_comp_disable()
35 owl_gate_set(common, &comp->gate_hw, false); in owl_comp_disable()
40 struct owl_composite *comp = hw_to_owl_comp(hw); in owl_comp_enable() local
41 struct owl_clk_common *common = &comp->common; in owl_comp_enable()
43 owl_gate_set(common, &comp->gate_hw, true); in owl_comp_enable()
[all …]
/drivers/media/platform/mtk-mdp/
Dmtk_mdp_comp.c17 void mtk_mdp_comp_clock_on(struct device *dev, struct mtk_mdp_comp *comp) in mtk_mdp_comp_clock_on() argument
21 if (comp->larb_dev) { in mtk_mdp_comp_clock_on()
22 err = mtk_smi_larb_get(comp->larb_dev); in mtk_mdp_comp_clock_on()
26 err, comp->type); in mtk_mdp_comp_clock_on()
29 for (i = 0; i < ARRAY_SIZE(comp->clk); i++) { in mtk_mdp_comp_clock_on()
30 if (IS_ERR(comp->clk[i])) in mtk_mdp_comp_clock_on()
32 err = clk_prepare_enable(comp->clk[i]); in mtk_mdp_comp_clock_on()
36 err, comp->type, i); in mtk_mdp_comp_clock_on()
40 void mtk_mdp_comp_clock_off(struct device *dev, struct mtk_mdp_comp *comp) in mtk_mdp_comp_clock_off() argument
44 for (i = 0; i < ARRAY_SIZE(comp->clk); i++) { in mtk_mdp_comp_clock_off()
[all …]
Dmtk_mdp_core.c95 struct mtk_mdp_comp *comp) in mtk_mdp_register_component() argument
97 list_add(&comp->node, &mdp->comp_list); in mtk_mdp_register_component()
101 struct mtk_mdp_comp *comp) in mtk_mdp_unregister_component() argument
103 list_del(&comp->node); in mtk_mdp_unregister_component()
111 struct mtk_mdp_comp *comp, *comp_temp; in mtk_mdp_probe() local
153 comp = devm_kzalloc(dev, sizeof(*comp), GFP_KERNEL); in mtk_mdp_probe()
154 if (!comp) { in mtk_mdp_probe()
160 ret = mtk_mdp_comp_init(dev, node, comp, comp_type); in mtk_mdp_probe()
166 mtk_mdp_register_component(mdp, comp); in mtk_mdp_probe()
230 list_for_each_entry_safe(comp, comp_temp, &mdp->comp_list, node) { in mtk_mdp_probe()
[all …]
/drivers/block/zram/
Dzcomp.c47 static int zcomp_strm_init(struct zcomp_strm *zstrm, struct zcomp *comp) in zcomp_strm_init() argument
49 zstrm->tfm = crypto_alloc_comp(comp->name, 0, 0); in zcomp_strm_init()
62 bool zcomp_available_algorithm(const char *comp) in zcomp_available_algorithm() argument
71 return crypto_has_comp(comp, 0, 0) == 1; in zcomp_available_algorithm()
75 ssize_t zcomp_available_show(const char *comp, char *buf) in zcomp_available_show() argument
82 if (!strcmp(comp, backends[i])) { in zcomp_available_show()
96 if (!known_algorithm && crypto_has_comp(comp, 0, 0) == 1) in zcomp_available_show()
98 "[%s] ", comp); in zcomp_available_show()
104 struct zcomp_strm *zcomp_stream_get(struct zcomp *comp) in zcomp_stream_get() argument
106 local_lock(&comp->stream->lock); in zcomp_stream_get()
[all …]
Dzcomp.h27 ssize_t zcomp_available_show(const char *comp, char *buf);
28 bool zcomp_available_algorithm(const char *comp);
30 struct zcomp *zcomp_create(const char *comp);
31 void zcomp_destroy(struct zcomp *comp);
33 struct zcomp_strm *zcomp_stream_get(struct zcomp *comp);
34 void zcomp_stream_put(struct zcomp *comp);
42 bool zcomp_set_max_streams(struct zcomp *comp, int num_strm);
/drivers/net/slip/
Dslhc.c96 struct slcompress *comp; in slhc_init() local
101 comp = kzalloc(sizeof(struct slcompress), GFP_KERNEL); in slhc_init()
102 if (! comp) in slhc_init()
107 comp->rstate = kzalloc(rsize, GFP_KERNEL); in slhc_init()
108 if (! comp->rstate) in slhc_init()
110 comp->rslot_limit = rslots - 1; in slhc_init()
115 comp->tstate = kzalloc(tsize, GFP_KERNEL); in slhc_init()
116 if (! comp->tstate) in slhc_init()
118 comp->tslot_limit = tslots - 1; in slhc_init()
121 comp->xmit_oldest = 0; in slhc_init()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/lib/
Ddevcom.c10 #define devcom_for_each_component(priv, comp, iter) \ argument
12 comp = &(priv)->components[iter], iter < MLX5_DEVCOM_NUM_COMPONENTS; \
39 struct mlx5_devcom_component *comp; in mlx5_devcom_list_alloc() local
47 devcom_for_each_component(priv, comp, i) in mlx5_devcom_list_alloc()
48 init_rwsem(&comp->sem); in mlx5_devcom_list_alloc()
165 struct mlx5_devcom_component *comp; in mlx5_devcom_register_component() local
172 comp = &devcom->priv->components[id]; in mlx5_devcom_register_component()
173 down_write(&comp->sem); in mlx5_devcom_register_component()
174 comp->handler = handler; in mlx5_devcom_register_component()
175 comp->device[devcom->idx].data = data; in mlx5_devcom_register_component()
[all …]
/drivers/most/
Dcore.c33 struct most_component *comp; member
450 struct most_component *comp; in match_component() local
452 list_for_each_entry(comp, &comp_list, list) { in match_component()
453 if (!strcmp(comp->name, name)) in match_component()
454 return comp; in match_component()
473 if (c->pipe0.comp) { in print_links()
477 c->pipe0.comp->name, in print_links()
481 if (c->pipe1.comp) { in print_links()
485 c->pipe1.comp->name, in print_links()
517 struct most_component *comp; in components_show() local
[all …]
Dmost_cdev.c28 } comp; variable
52 return channel_has_mbo(c->iface, c->channel_id, &comp.cc) > 0; in ch_has_mbo()
58 *mbo = most_get_mbo(c->iface, c->channel_id, &comp.cc); in ch_get_mbo()
87 most_stop_channel(c->iface, c->channel_id, &comp.cc); in stop_channel()
94 device_destroy(comp.class, c->devno); in destroy_cdev()
103 ida_simple_remove(&comp.minor_id, MINOR(c->devno)); in destroy_channel()
143 ret = most_start_channel(c->iface, c->channel_id, &comp.cc); in comp_open()
427 current_minor = ida_simple_get(&comp.minor_id, 0, 0, GFP_KERNEL); in comp_probe()
437 c->devno = MKDEV(comp.major, current_minor); in comp_probe()
457 c->dev = device_create(comp.class, NULL, c->devno, NULL, "%s", name); in comp_probe()
[all …]
/drivers/infiniband/sw/rxe/
Drxe_comp.c117 qp->comp.timeout = 1; in retransmit_timer()
118 rxe_run_task(&qp->comp.task, 1); in retransmit_timer()
132 rxe_run_task(&qp->comp.task, must_sched); in rxe_comp_queue_pkt()
165 qp->comp.retry_cnt = qp->attr.retry_cnt; in reset_retry_counters()
166 qp->comp.rnr_retry = qp->attr.rnr_retry; in reset_retry_counters()
167 qp->comp.started_retry = 0; in reset_retry_counters()
193 diff = psn_compare(pkt->psn, qp->comp.psn); in check_psn()
218 switch (qp->comp.opcode) { in check_ack()
299 if (psn_compare(pkt->psn, qp->comp.psn) > 0) { in check_ack()
302 qp->comp.psn = pkt->psn; in check_ack()
[all …]
/drivers/clk/ti/
Dcomposite.c91 struct component_clk *comp; in _lookup_component() local
93 list_for_each_entry(comp, &component_clks, link) { in _lookup_component()
94 if (comp->node == node) in _lookup_component()
95 return comp; in _lookup_component()
125 struct component_clk *comp; in _register_composite() local
137 comp = _lookup_component(cclk->comp_nodes[i]); in _register_composite()
138 if (!comp) { in _register_composite()
147 if (cclk->comp_clks[comp->type] != NULL) { in _register_composite()
149 node, component_clk_types[comp->type]); in _register_composite()
153 cclk->comp_clks[comp->type] = comp; in _register_composite()
[all …]
/drivers/gpu/drm/omapdrm/dss/
Dbase.c278 struct omapdss_comp_node *comp; in omapdss_list_contains() local
280 list_for_each_entry(comp, &omapdss_comp_list, list) { in omapdss_list_contains()
281 if (comp->node == node) in omapdss_list_contains()
291 struct omapdss_comp_node *comp; in omapdss_walk_device() local
300 comp = devm_kzalloc(dev, sizeof(*comp), GFP_KERNEL); in omapdss_walk_device()
301 if (comp) { in omapdss_walk_device()
302 comp->node = node; in omapdss_walk_device()
303 comp->dss_core_component = dss_core; in omapdss_walk_device()
304 comp->compat = compat; in omapdss_walk_device()
305 list_add(&comp->list, &omapdss_comp_list); in omapdss_walk_device()
[all …]
/drivers/video/fbdev/core/
Dsyscopyarea.c44 *dst = comp(*src, *dst, first); in bitcpy()
49 *dst = comp(*src, *dst, first); in bitcpy()
73 *dst = comp(*src, *dst, last); in bitcpy()
89 *dst = comp(*src << left, *dst, first); in bitcpy()
92 *dst = comp(*src >> right, *dst, first); in bitcpy()
97 *dst = comp(d0 >> right | d1 << left, *dst, in bitcpy()
112 *dst = comp(d0 << left, *dst, first); in bitcpy()
118 *dst = comp(d0 >> right | d1 << left, *dst, in bitcpy()
159 *dst = comp(d0, *dst, last); in bitcpy()
193 *dst = comp(*src, *dst, last); in bitcpy_rev()
[all …]
/drivers/net/ethernet/mellanox/mlxfw/
Dmlxfw_fsm.c209 struct mlxfw_mfa2_component *comp, in mlxfw_flash_component() argument
222 sprintf(comp_name, "%u", comp->index); in mlxfw_flash_component()
224 err = mlxfw_dev->ops->component_query(mlxfw_dev, comp->index, in mlxfw_flash_component()
233 if (comp->data_size > comp_max_size) { in mlxfw_flash_component()
245 comp->index, in mlxfw_flash_component()
246 comp->data_size); in mlxfw_flash_component()
265 comp_name, 0, comp->data_size); in mlxfw_flash_component()
267 offset < MLXFW_ALIGN_UP(comp->data_size, comp_align_bits); in mlxfw_flash_component()
269 block_ptr = comp->data + offset; in mlxfw_flash_component()
270 block_size = (u16) min_t(u32, comp->data_size - offset, in mlxfw_flash_component()
[all …]
Dmlxfw_mfa2.c498 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()
571 comp_data->comp.data = comp_data->buff + mlxfw_mfa2_comp_magic_len; in mlxfw_mfa2_file_component_get()
[all …]
/drivers/staging/rtl8723bs/hal/
Dodm_debug.h99 #define ODM_RT_TRACE(pDM_Odm, comp, level, fmt)\ argument
102 (comp & pDM_Odm->DebugComponents) &&\
110 #define ODM_RT_TRACE_F(pDM_Odm, comp, level, fmt)\ argument
113 (comp & pDM_Odm->DebugComponents) &&\
138 #define ODM_PRINT_ADDR(pDM_Odm, comp, level, title_str, ptr)\ argument
141 (comp & pDM_Odm->DebugComponents) &&\
155 #define ODM_RT_TRACE(pDM_Odm, comp, level, fmt) no_printk fmt argument
156 #define ODM_RT_TRACE_F(pDM_Odm, comp, level, fmt) no_printk fmt argument
161 #define ODM_PRINT_ADDR(pDM_Odm, comp, level, title_str, ptr) \ argument
/drivers/staging/greybus/
Daudio_codec.c831 struct snd_soc_component *comp; in gbaudio_register_module() local
840 comp = gbcodec->component; in gbaudio_register_module()
841 card = comp->card->snd_card; in gbaudio_register_module()
853 ret = gbaudio_init_jack(module, comp->card); in gbaudio_register_module()
860 snd_soc_dapm_new_controls(&comp->dapm, module->dapm_widgets, in gbaudio_register_module()
863 snd_soc_add_component_controls(comp, module->controls, in gbaudio_register_module()
866 snd_soc_dapm_add_routes(&comp->dapm, module->dapm_routes, in gbaudio_register_module()
870 if (comp->card->instantiated) { in gbaudio_register_module()
871 gbaudio_dapm_link_component_dai_widgets(comp->card, in gbaudio_register_module()
872 &comp->dapm); in gbaudio_register_module()
[all …]
/drivers/gpu/drm/i915/display/
Dintel_hdcp.c1019 struct i915_hdcp_comp_master *comp; in hdcp2_prepare_ake_init() local
1023 comp = dev_priv->hdcp_master; in hdcp2_prepare_ake_init()
1025 if (!comp || !comp->ops) { in hdcp2_prepare_ake_init()
1030 ret = comp->ops->initiate_hdcp2_session(comp->mei_dev, data, ake_data); in hdcp2_prepare_ake_init()
1048 struct i915_hdcp_comp_master *comp; in hdcp2_verify_rx_cert_prepare_km() local
1052 comp = dev_priv->hdcp_master; in hdcp2_verify_rx_cert_prepare_km()
1054 if (!comp || !comp->ops) { in hdcp2_verify_rx_cert_prepare_km()
1059 ret = comp->ops->verify_receiver_cert_prepare_km(comp->mei_dev, data, in hdcp2_verify_rx_cert_prepare_km()
1075 struct i915_hdcp_comp_master *comp; in hdcp2_verify_hprime() local
1079 comp = dev_priv->hdcp_master; in hdcp2_verify_hprime()
[all …]
/drivers/gpu/drm/nouveau/nvkm/engine/dma/
Dusernv50.c78 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()

1234567891011