cec 2713 drivers/atm/he.c static long mcc = 0, oec = 0, dcc = 0, cec = 0; cec 2731 drivers/atm/he.c cec += he_readl(he_dev, CEC); cec 2736 drivers/atm/he.c mcc, oec, dcc, cec); cec 536 drivers/base/power/wakeup.c unsigned int cec; cec 549 drivers/base/power/wakeup.c cec = atomic_inc_return(&combined_event_count); cec 551 drivers/base/power/wakeup.c trace_wakeup_source_activate(ws->name, cec); cec 641 drivers/base/power/wakeup.c unsigned int cnt, inpr, cec; cec 679 drivers/base/power/wakeup.c cec = atomic_add_return(MAX_IN_PROGRESS, &combined_event_count); cec 680 drivers/base/power/wakeup.c trace_wakeup_source_deactivate(ws->name, cec); cec 67 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c static void dw_hdmi_write(struct dw_hdmi_cec *cec, u8 val, int offset) cec 69 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c cec->ops->write(cec->hdmi, val, offset); cec 72 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c static u8 dw_hdmi_read(struct dw_hdmi_cec *cec, int offset) cec 74 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c return cec->ops->read(cec->hdmi, offset); cec 79 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c struct dw_hdmi_cec *cec = cec_get_drvdata(adap); cec 82 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c cec->addresses = 0; cec 84 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c cec->addresses |= BIT(logical_addr) | BIT(15); cec 86 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c dw_hdmi_write(cec, cec->addresses & 255, HDMI_CEC_ADDR_L); cec 87 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c dw_hdmi_write(cec, cec->addresses >> 8, HDMI_CEC_ADDR_H); cec 95 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c struct dw_hdmi_cec *cec = cec_get_drvdata(adap); cec 112 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c dw_hdmi_write(cec, msg->msg[i], HDMI_CEC_TX_DATA0 + i); cec 114 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c dw_hdmi_write(cec, msg->len, HDMI_CEC_TX_CNT); cec 115 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c dw_hdmi_write(cec, ctrl | CEC_CTRL_START, HDMI_CEC_CTRL); cec 123 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c struct dw_hdmi_cec *cec = cec_get_drvdata(adap); cec 124 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c unsigned int stat = dw_hdmi_read(cec, HDMI_IH_CEC_STAT0); cec 130 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c dw_hdmi_write(cec, stat, HDMI_IH_CEC_STAT0); cec 133 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c cec->tx_status = CEC_TX_STATUS_ERROR; cec 134 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c cec->tx_done = true; cec 137 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c cec->tx_status = CEC_TX_STATUS_OK; cec 138 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c cec->tx_done = true; cec 141 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c cec->tx_status = CEC_TX_STATUS_NACK; cec 142 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c cec->tx_done = true; cec 149 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c len = dw_hdmi_read(cec, HDMI_CEC_RX_CNT); cec 150 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c if (len > sizeof(cec->rx_msg.msg)) cec 151 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c len = sizeof(cec->rx_msg.msg); cec 154 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c cec->rx_msg.msg[i] = cec 155 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c dw_hdmi_read(cec, HDMI_CEC_RX_DATA0 + i); cec 157 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c dw_hdmi_write(cec, 0, HDMI_CEC_LOCK); cec 159 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c cec->rx_msg.len = len; cec 161 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c cec->rx_done = true; cec 172 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c struct dw_hdmi_cec *cec = cec_get_drvdata(adap); cec 174 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c if (cec->tx_done) { cec 175 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c cec->tx_done = false; cec 176 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c cec_transmit_attempt_done(adap, cec->tx_status); cec 178 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c if (cec->rx_done) { cec 179 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c cec->rx_done = false; cec 181 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c cec_received_msg(adap, &cec->rx_msg); cec 188 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c struct dw_hdmi_cec *cec = cec_get_drvdata(adap); cec 191 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c dw_hdmi_write(cec, ~0, HDMI_CEC_MASK); cec 192 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c dw_hdmi_write(cec, ~0, HDMI_IH_MUTE_CEC_STAT0); cec 193 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c dw_hdmi_write(cec, 0, HDMI_CEC_POLARITY); cec 195 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c cec->ops->disable(cec->hdmi); cec 199 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c dw_hdmi_write(cec, 0, HDMI_CEC_CTRL); cec 200 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c dw_hdmi_write(cec, ~0, HDMI_IH_CEC_STAT0); cec 201 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c dw_hdmi_write(cec, 0, HDMI_CEC_LOCK); cec 203 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c dw_hdmi_cec_log_addr(cec->adap, CEC_LOG_ADDR_INVALID); cec 205 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c cec->ops->enable(cec->hdmi); cec 209 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c dw_hdmi_write(cec, irqs, HDMI_CEC_POLARITY); cec 210 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c dw_hdmi_write(cec, ~irqs, HDMI_CEC_MASK); cec 211 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c dw_hdmi_write(cec, ~irqs, HDMI_IH_MUTE_CEC_STAT0); cec 224 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c struct dw_hdmi_cec *cec = data; cec 226 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c cec_delete_adapter(cec->adap); cec 232 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c struct dw_hdmi_cec *cec; cec 243 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c cec = devm_kzalloc(&pdev->dev, sizeof(*cec), GFP_KERNEL); cec 244 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c if (!cec) cec 247 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c cec->irq = data->irq; cec 248 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c cec->ops = data->ops; cec 249 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c cec->hdmi = data->hdmi; cec 251 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c platform_set_drvdata(pdev, cec); cec 253 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c dw_hdmi_write(cec, 0, HDMI_CEC_TX_CNT); cec 254 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c dw_hdmi_write(cec, ~0, HDMI_CEC_MASK); cec 255 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c dw_hdmi_write(cec, ~0, HDMI_IH_MUTE_CEC_STAT0); cec 256 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c dw_hdmi_write(cec, 0, HDMI_CEC_POLARITY); cec 258 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c cec->adap = cec_allocate_adapter(&dw_hdmi_cec_ops, cec, "dw_hdmi", cec 262 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c if (IS_ERR(cec->adap)) cec 263 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c return PTR_ERR(cec->adap); cec 266 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c cec->adap->owner = THIS_MODULE; cec 268 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c ret = devm_add_action(&pdev->dev, dw_hdmi_cec_del, cec); cec 270 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c cec_delete_adapter(cec->adap); cec 274 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c ret = devm_request_threaded_irq(&pdev->dev, cec->irq, cec 277 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c "dw-hdmi-cec", cec->adap); cec 281 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c cec->notify = cec_notifier_cec_adap_register(pdev->dev.parent, cec 282 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c NULL, cec->adap); cec 283 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c if (!cec->notify) cec 286 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c ret = cec_register_adapter(cec->adap, pdev->dev.parent); cec 288 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c cec_notifier_cec_adap_unregister(cec->notify); cec 296 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c devm_remove_action(&pdev->dev, dw_hdmi_cec_del, cec); cec 303 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c struct dw_hdmi_cec *cec = platform_get_drvdata(pdev); cec 305 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c cec_notifier_cec_adap_unregister(cec->notify); cec 306 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c cec_unregister_adapter(cec->adap); cec 141 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c struct platform_device *cec; cec 2616 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c struct dw_hdmi_cec_data cec; cec 2852 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c cec.hdmi = hdmi; cec 2853 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c cec.ops = &dw_hdmi_cec_ops; cec 2854 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c cec.irq = irq; cec 2857 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c pdevinfo.data = &cec; cec 2858 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c pdevinfo.size_data = sizeof(cec); cec 2861 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c hdmi->cec = platform_device_register_full(&pdevinfo); cec 2887 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c if (!IS_ERR(hdmi->cec)) cec 2888 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c platform_device_unregister(hdmi->cec); cec 187 drivers/gpu/drm/drm_dp_cec.c struct cec_adapter *adap = aux->cec.adap; cec 210 drivers/gpu/drm/drm_dp_cec.c struct cec_adapter *adap = aux->cec.adap; cec 247 drivers/gpu/drm/drm_dp_cec.c mutex_lock(&aux->cec.lock); cec 248 drivers/gpu/drm/drm_dp_cec.c if (!aux->cec.adap) cec 259 drivers/gpu/drm/drm_dp_cec.c mutex_unlock(&aux->cec.lock); cec 282 drivers/gpu/drm/drm_dp_cec.c cec.unregister_work.work); cec 284 drivers/gpu/drm/drm_dp_cec.c mutex_lock(&aux->cec.lock); cec 285 drivers/gpu/drm/drm_dp_cec.c cec_unregister_adapter(aux->cec.adap); cec 286 drivers/gpu/drm/drm_dp_cec.c aux->cec.adap = NULL; cec 287 drivers/gpu/drm/drm_dp_cec.c mutex_unlock(&aux->cec.lock); cec 316 drivers/gpu/drm/drm_dp_cec.c cancel_delayed_work_sync(&aux->cec.unregister_work); cec 318 drivers/gpu/drm/drm_dp_cec.c mutex_lock(&aux->cec.lock); cec 321 drivers/gpu/drm/drm_dp_cec.c cec_unregister_adapter(aux->cec.adap); cec 322 drivers/gpu/drm/drm_dp_cec.c aux->cec.adap = NULL; cec 331 drivers/gpu/drm/drm_dp_cec.c if (aux->cec.adap) { cec 332 drivers/gpu/drm/drm_dp_cec.c if (aux->cec.adap->capabilities == cec_caps && cec 333 drivers/gpu/drm/drm_dp_cec.c aux->cec.adap->available_log_addrs == num_las) { cec 335 drivers/gpu/drm/drm_dp_cec.c cec_s_phys_addr_from_edid(aux->cec.adap, edid); cec 342 drivers/gpu/drm/drm_dp_cec.c cec_unregister_adapter(aux->cec.adap); cec 346 drivers/gpu/drm/drm_dp_cec.c aux->cec.adap = cec_allocate_adapter(&drm_dp_cec_adap_ops, cec 347 drivers/gpu/drm/drm_dp_cec.c aux, aux->cec.name, cec_caps, cec 349 drivers/gpu/drm/drm_dp_cec.c if (IS_ERR(aux->cec.adap)) { cec 350 drivers/gpu/drm/drm_dp_cec.c aux->cec.adap = NULL; cec 353 drivers/gpu/drm/drm_dp_cec.c if (cec_register_adapter(aux->cec.adap, aux->cec.parent)) { cec 354 drivers/gpu/drm/drm_dp_cec.c cec_delete_adapter(aux->cec.adap); cec 355 drivers/gpu/drm/drm_dp_cec.c aux->cec.adap = NULL; cec 362 drivers/gpu/drm/drm_dp_cec.c cec_s_phys_addr_from_edid(aux->cec.adap, edid); cec 365 drivers/gpu/drm/drm_dp_cec.c mutex_unlock(&aux->cec.lock); cec 378 drivers/gpu/drm/drm_dp_cec.c cancel_delayed_work_sync(&aux->cec.unregister_work); cec 380 drivers/gpu/drm/drm_dp_cec.c mutex_lock(&aux->cec.lock); cec 381 drivers/gpu/drm/drm_dp_cec.c if (!aux->cec.adap) cec 384 drivers/gpu/drm/drm_dp_cec.c cec_phys_addr_invalidate(aux->cec.adap); cec 398 drivers/gpu/drm/drm_dp_cec.c schedule_delayed_work(&aux->cec.unregister_work, cec 402 drivers/gpu/drm/drm_dp_cec.c mutex_unlock(&aux->cec.lock); cec 420 drivers/gpu/drm/drm_dp_cec.c WARN_ON(aux->cec.adap); cec 423 drivers/gpu/drm/drm_dp_cec.c aux->cec.name = name; cec 424 drivers/gpu/drm/drm_dp_cec.c aux->cec.parent = parent; cec 425 drivers/gpu/drm/drm_dp_cec.c INIT_DELAYED_WORK(&aux->cec.unregister_work, cec 436 drivers/gpu/drm/drm_dp_cec.c if (!aux->cec.adap) cec 438 drivers/gpu/drm/drm_dp_cec.c cancel_delayed_work_sync(&aux->cec.unregister_work); cec 439 drivers/gpu/drm/drm_dp_cec.c cec_unregister_adapter(aux->cec.adap); cec 440 drivers/gpu/drm/drm_dp_cec.c aux->cec.adap = NULL; cec 1096 drivers/gpu/drm/drm_dp_helper.c mutex_init(&aux->cec.lock); cec 50 drivers/gpu/drm/i2c/tda998x_drv.c struct i2c_client *cec; cec 789 drivers/gpu/drm/i2c/tda998x_drv.c u8 sta, cec, lvl, flag0, flag1, flag2; cec 794 drivers/gpu/drm/i2c/tda998x_drv.c cec = cec_read(priv, REG_CEC_RXSHPDINT); cec 801 drivers/gpu/drm/i2c/tda998x_drv.c sta, cec, lvl, flag0, flag1, flag2); cec 803 drivers/gpu/drm/i2c/tda998x_drv.c if (cec & CEC_RXSHPDINT_HPD) { cec 1791 drivers/gpu/drm/i2c/tda998x_drv.c i2c_unregister_device(priv->cec); cec 1946 drivers/gpu/drm/i2c/tda998x_drv.c priv->cec = i2c_new_device(client->adapter, &cec_info); cec 1947 drivers/gpu/drm/i2c/tda998x_drv.c if (!priv->cec) { cec 59 drivers/gpu/drm/mediatek/mtk_cec.c static void mtk_cec_clear_bits(struct mtk_cec *cec, unsigned int offset, cec 62 drivers/gpu/drm/mediatek/mtk_cec.c void __iomem *reg = cec->regs + offset; cec 70 drivers/gpu/drm/mediatek/mtk_cec.c static void mtk_cec_set_bits(struct mtk_cec *cec, unsigned int offset, cec 73 drivers/gpu/drm/mediatek/mtk_cec.c void __iomem *reg = cec->regs + offset; cec 81 drivers/gpu/drm/mediatek/mtk_cec.c static void mtk_cec_mask(struct mtk_cec *cec, unsigned int offset, cec 84 drivers/gpu/drm/mediatek/mtk_cec.c u32 tmp = readl(cec->regs + offset) & ~mask; cec 87 drivers/gpu/drm/mediatek/mtk_cec.c writel(val, cec->regs + offset); cec 94 drivers/gpu/drm/mediatek/mtk_cec.c struct mtk_cec *cec = dev_get_drvdata(dev); cec 97 drivers/gpu/drm/mediatek/mtk_cec.c spin_lock_irqsave(&cec->lock, flags); cec 98 drivers/gpu/drm/mediatek/mtk_cec.c cec->hdmi_dev = hdmi_dev; cec 99 drivers/gpu/drm/mediatek/mtk_cec.c cec->hpd_event = hpd_event; cec 100 drivers/gpu/drm/mediatek/mtk_cec.c spin_unlock_irqrestore(&cec->lock, flags); cec 105 drivers/gpu/drm/mediatek/mtk_cec.c struct mtk_cec *cec = dev_get_drvdata(dev); cec 108 drivers/gpu/drm/mediatek/mtk_cec.c status = readl(cec->regs + RX_EVENT); cec 113 drivers/gpu/drm/mediatek/mtk_cec.c static void mtk_cec_htplg_irq_init(struct mtk_cec *cec) cec 115 drivers/gpu/drm/mediatek/mtk_cec.c mtk_cec_mask(cec, CEC_CKGEN, 0 | CEC_32K_PDN, PDN | CEC_32K_PDN); cec 116 drivers/gpu/drm/mediatek/mtk_cec.c mtk_cec_set_bits(cec, RX_GEN_WD, HDMI_PORD_INT_32K_CLR | cec 118 drivers/gpu/drm/mediatek/mtk_cec.c mtk_cec_mask(cec, RX_GEN_WD, 0, HDMI_PORD_INT_32K_CLR | RX_INT_32K_CLR | cec 123 drivers/gpu/drm/mediatek/mtk_cec.c static void mtk_cec_htplg_irq_enable(struct mtk_cec *cec) cec 125 drivers/gpu/drm/mediatek/mtk_cec.c mtk_cec_set_bits(cec, RX_EVENT, HDMI_PORD_INT_EN | HDMI_HTPLG_INT_EN); cec 128 drivers/gpu/drm/mediatek/mtk_cec.c static void mtk_cec_htplg_irq_disable(struct mtk_cec *cec) cec 130 drivers/gpu/drm/mediatek/mtk_cec.c mtk_cec_clear_bits(cec, RX_EVENT, HDMI_PORD_INT_EN | HDMI_HTPLG_INT_EN); cec 133 drivers/gpu/drm/mediatek/mtk_cec.c static void mtk_cec_clear_htplg_irq(struct mtk_cec *cec) cec 135 drivers/gpu/drm/mediatek/mtk_cec.c mtk_cec_set_bits(cec, TR_CONFIG, CLEAR_CEC_IRQ); cec 136 drivers/gpu/drm/mediatek/mtk_cec.c mtk_cec_set_bits(cec, NORMAL_INT_CTRL, HDMI_HTPLG_INT_CLR | cec 138 drivers/gpu/drm/mediatek/mtk_cec.c mtk_cec_set_bits(cec, RX_GEN_WD, HDMI_PORD_INT_32K_CLR | cec 141 drivers/gpu/drm/mediatek/mtk_cec.c mtk_cec_clear_bits(cec, NORMAL_INT_CTRL, HDMI_HTPLG_INT_CLR | cec 143 drivers/gpu/drm/mediatek/mtk_cec.c mtk_cec_clear_bits(cec, TR_CONFIG, CLEAR_CEC_IRQ); cec 144 drivers/gpu/drm/mediatek/mtk_cec.c mtk_cec_clear_bits(cec, RX_GEN_WD, HDMI_PORD_INT_32K_CLR | cec 148 drivers/gpu/drm/mediatek/mtk_cec.c static void mtk_cec_hpd_event(struct mtk_cec *cec, bool hpd) cec 154 drivers/gpu/drm/mediatek/mtk_cec.c spin_lock_irqsave(&cec->lock, flags); cec 155 drivers/gpu/drm/mediatek/mtk_cec.c hpd_event = cec->hpd_event; cec 156 drivers/gpu/drm/mediatek/mtk_cec.c hdmi_dev = cec->hdmi_dev; cec 157 drivers/gpu/drm/mediatek/mtk_cec.c spin_unlock_irqrestore(&cec->lock, flags); cec 166 drivers/gpu/drm/mediatek/mtk_cec.c struct mtk_cec *cec = dev_get_drvdata(dev); cec 169 drivers/gpu/drm/mediatek/mtk_cec.c mtk_cec_clear_htplg_irq(cec); cec 172 drivers/gpu/drm/mediatek/mtk_cec.c if (cec->hpd != hpd) { cec 174 drivers/gpu/drm/mediatek/mtk_cec.c cec->hpd, hpd); cec 175 drivers/gpu/drm/mediatek/mtk_cec.c cec->hpd = hpd; cec 176 drivers/gpu/drm/mediatek/mtk_cec.c mtk_cec_hpd_event(cec, hpd); cec 184 drivers/gpu/drm/mediatek/mtk_cec.c struct mtk_cec *cec; cec 188 drivers/gpu/drm/mediatek/mtk_cec.c cec = devm_kzalloc(dev, sizeof(*cec), GFP_KERNEL); cec 189 drivers/gpu/drm/mediatek/mtk_cec.c if (!cec) cec 192 drivers/gpu/drm/mediatek/mtk_cec.c platform_set_drvdata(pdev, cec); cec 193 drivers/gpu/drm/mediatek/mtk_cec.c spin_lock_init(&cec->lock); cec 196 drivers/gpu/drm/mediatek/mtk_cec.c cec->regs = devm_ioremap_resource(dev, res); cec 197 drivers/gpu/drm/mediatek/mtk_cec.c if (IS_ERR(cec->regs)) { cec 198 drivers/gpu/drm/mediatek/mtk_cec.c ret = PTR_ERR(cec->regs); cec 203 drivers/gpu/drm/mediatek/mtk_cec.c cec->clk = devm_clk_get(dev, NULL); cec 204 drivers/gpu/drm/mediatek/mtk_cec.c if (IS_ERR(cec->clk)) { cec 205 drivers/gpu/drm/mediatek/mtk_cec.c ret = PTR_ERR(cec->clk); cec 210 drivers/gpu/drm/mediatek/mtk_cec.c cec->irq = platform_get_irq(pdev, 0); cec 211 drivers/gpu/drm/mediatek/mtk_cec.c if (cec->irq < 0) { cec 212 drivers/gpu/drm/mediatek/mtk_cec.c dev_err(dev, "Failed to get cec irq: %d\n", cec->irq); cec 213 drivers/gpu/drm/mediatek/mtk_cec.c return cec->irq; cec 216 drivers/gpu/drm/mediatek/mtk_cec.c ret = devm_request_threaded_irq(dev, cec->irq, NULL, cec 225 drivers/gpu/drm/mediatek/mtk_cec.c ret = clk_prepare_enable(cec->clk); cec 231 drivers/gpu/drm/mediatek/mtk_cec.c mtk_cec_htplg_irq_init(cec); cec 232 drivers/gpu/drm/mediatek/mtk_cec.c mtk_cec_htplg_irq_enable(cec); cec 239 drivers/gpu/drm/mediatek/mtk_cec.c struct mtk_cec *cec = platform_get_drvdata(pdev); cec 241 drivers/gpu/drm/mediatek/mtk_cec.c mtk_cec_htplg_irq_disable(cec); cec 242 drivers/gpu/drm/mediatek/mtk_cec.c clk_disable_unprepare(cec->clk); cec 124 drivers/gpu/drm/tegra/drm.h struct cec_notifier *cec; cec 36 drivers/gpu/drm/tegra/output.c cec_notifier_set_phys_addr_from_edid(output->cec, edid); cec 66 drivers/gpu/drm/tegra/output.c cec_notifier_phys_addr_invalidate(output->cec); cec 166 drivers/gpu/drm/tegra/output.c output->cec = cec_notifier_get(output->dev); cec 167 drivers/gpu/drm/tegra/output.c if (!output->cec) cec 175 drivers/gpu/drm/tegra/output.c if (output->cec) cec 176 drivers/gpu/drm/tegra/output.c cec_notifier_put(output->cec); cec 34 drivers/media/platform/cec-gpio/cec-gpio.c struct cec_gpio *cec = cec_get_drvdata(adap); cec 36 drivers/media/platform/cec-gpio/cec-gpio.c if (cec->cec_is_low) cec 38 drivers/media/platform/cec-gpio/cec-gpio.c return gpiod_get_value(cec->cec_gpio); cec 43 drivers/media/platform/cec-gpio/cec-gpio.c struct cec_gpio *cec = cec_get_drvdata(adap); cec 45 drivers/media/platform/cec-gpio/cec-gpio.c if (!cec->cec_is_low) cec 47 drivers/media/platform/cec-gpio/cec-gpio.c cec->cec_is_low = false; cec 48 drivers/media/platform/cec-gpio/cec-gpio.c gpiod_set_value(cec->cec_gpio, 1); cec 53 drivers/media/platform/cec-gpio/cec-gpio.c struct cec_gpio *cec = cec_get_drvdata(adap); cec 55 drivers/media/platform/cec-gpio/cec-gpio.c if (cec->cec_is_low) cec 57 drivers/media/platform/cec-gpio/cec-gpio.c cec->cec_is_low = true; cec 58 drivers/media/platform/cec-gpio/cec-gpio.c gpiod_set_value(cec->cec_gpio, 0); cec 63 drivers/media/platform/cec-gpio/cec-gpio.c struct cec_gpio *cec = priv; cec 65 drivers/media/platform/cec-gpio/cec-gpio.c cec_queue_pin_hpd_event(cec->adap, cec->hpd_is_high, cec->hpd_ts); cec 71 drivers/media/platform/cec-gpio/cec-gpio.c struct cec_gpio *cec = priv; cec 72 drivers/media/platform/cec-gpio/cec-gpio.c bool is_high = gpiod_get_value(cec->v5_gpio); cec 74 drivers/media/platform/cec-gpio/cec-gpio.c if (is_high == cec->v5_is_high) cec 76 drivers/media/platform/cec-gpio/cec-gpio.c cec->v5_ts = ktime_get(); cec 77 drivers/media/platform/cec-gpio/cec-gpio.c cec->v5_is_high = is_high; cec 83 drivers/media/platform/cec-gpio/cec-gpio.c struct cec_gpio *cec = priv; cec 85 drivers/media/platform/cec-gpio/cec-gpio.c cec_queue_pin_5v_event(cec->adap, cec->v5_is_high, cec->v5_ts); cec 91 drivers/media/platform/cec-gpio/cec-gpio.c struct cec_gpio *cec = priv; cec 92 drivers/media/platform/cec-gpio/cec-gpio.c bool is_high = gpiod_get_value(cec->hpd_gpio); cec 94 drivers/media/platform/cec-gpio/cec-gpio.c if (is_high == cec->hpd_is_high) cec 96 drivers/media/platform/cec-gpio/cec-gpio.c cec->hpd_ts = ktime_get(); cec 97 drivers/media/platform/cec-gpio/cec-gpio.c cec->hpd_is_high = is_high; cec 103 drivers/media/platform/cec-gpio/cec-gpio.c struct cec_gpio *cec = priv; cec 105 drivers/media/platform/cec-gpio/cec-gpio.c cec_pin_changed(cec->adap, gpiod_get_value(cec->cec_gpio)); cec 111 drivers/media/platform/cec-gpio/cec-gpio.c struct cec_gpio *cec = cec_get_drvdata(adap); cec 113 drivers/media/platform/cec-gpio/cec-gpio.c enable_irq(cec->cec_irq); cec 119 drivers/media/platform/cec-gpio/cec-gpio.c struct cec_gpio *cec = cec_get_drvdata(adap); cec 121 drivers/media/platform/cec-gpio/cec-gpio.c disable_irq(cec->cec_irq); cec 126 drivers/media/platform/cec-gpio/cec-gpio.c struct cec_gpio *cec = cec_get_drvdata(adap); cec 128 drivers/media/platform/cec-gpio/cec-gpio.c seq_printf(file, "mode: %s\n", cec->cec_is_low ? "low-drive" : "read"); cec 129 drivers/media/platform/cec-gpio/cec-gpio.c seq_printf(file, "using irq: %d\n", cec->cec_irq); cec 130 drivers/media/platform/cec-gpio/cec-gpio.c if (cec->hpd_gpio) cec 132 drivers/media/platform/cec-gpio/cec-gpio.c cec->hpd_is_high ? "high" : "low"); cec 133 drivers/media/platform/cec-gpio/cec-gpio.c if (cec->v5_gpio) cec 135 drivers/media/platform/cec-gpio/cec-gpio.c cec->v5_is_high ? "high" : "low"); cec 140 drivers/media/platform/cec-gpio/cec-gpio.c struct cec_gpio *cec = cec_get_drvdata(adap); cec 142 drivers/media/platform/cec-gpio/cec-gpio.c if (!cec->hpd_gpio) cec 144 drivers/media/platform/cec-gpio/cec-gpio.c return gpiod_get_value(cec->hpd_gpio); cec 149 drivers/media/platform/cec-gpio/cec-gpio.c struct cec_gpio *cec = cec_get_drvdata(adap); cec 151 drivers/media/platform/cec-gpio/cec-gpio.c if (!cec->v5_gpio) cec 153 drivers/media/platform/cec-gpio/cec-gpio.c return gpiod_get_value(cec->v5_gpio); cec 176 drivers/media/platform/cec-gpio/cec-gpio.c struct cec_gpio *cec; cec 179 drivers/media/platform/cec-gpio/cec-gpio.c cec = devm_kzalloc(dev, sizeof(*cec), GFP_KERNEL); cec 180 drivers/media/platform/cec-gpio/cec-gpio.c if (!cec) cec 183 drivers/media/platform/cec-gpio/cec-gpio.c cec->dev = dev; cec 185 drivers/media/platform/cec-gpio/cec-gpio.c cec->cec_gpio = devm_gpiod_get(dev, "cec", GPIOD_OUT_HIGH_OPEN_DRAIN); cec 186 drivers/media/platform/cec-gpio/cec-gpio.c if (IS_ERR(cec->cec_gpio)) cec 187 drivers/media/platform/cec-gpio/cec-gpio.c return PTR_ERR(cec->cec_gpio); cec 188 drivers/media/platform/cec-gpio/cec-gpio.c cec->cec_irq = gpiod_to_irq(cec->cec_gpio); cec 190 drivers/media/platform/cec-gpio/cec-gpio.c cec->hpd_gpio = devm_gpiod_get_optional(dev, "hpd", GPIOD_IN); cec 191 drivers/media/platform/cec-gpio/cec-gpio.c if (IS_ERR(cec->hpd_gpio)) cec 192 drivers/media/platform/cec-gpio/cec-gpio.c return PTR_ERR(cec->hpd_gpio); cec 194 drivers/media/platform/cec-gpio/cec-gpio.c cec->v5_gpio = devm_gpiod_get_optional(dev, "v5", GPIOD_IN); cec 195 drivers/media/platform/cec-gpio/cec-gpio.c if (IS_ERR(cec->v5_gpio)) cec 196 drivers/media/platform/cec-gpio/cec-gpio.c return PTR_ERR(cec->v5_gpio); cec 198 drivers/media/platform/cec-gpio/cec-gpio.c cec->adap = cec_pin_allocate_adapter(&cec_gpio_pin_ops, cec 199 drivers/media/platform/cec-gpio/cec-gpio.c cec, pdev->name, CEC_CAP_DEFAULTS | CEC_CAP_PHYS_ADDR | cec 201 drivers/media/platform/cec-gpio/cec-gpio.c if (IS_ERR(cec->adap)) cec 202 drivers/media/platform/cec-gpio/cec-gpio.c return PTR_ERR(cec->adap); cec 204 drivers/media/platform/cec-gpio/cec-gpio.c ret = devm_request_irq(dev, cec->cec_irq, cec_gpio_irq_handler, cec 206 drivers/media/platform/cec-gpio/cec-gpio.c cec->adap->name, cec); cec 210 drivers/media/platform/cec-gpio/cec-gpio.c cec_gpio_disable_irq(cec->adap); cec 212 drivers/media/platform/cec-gpio/cec-gpio.c if (cec->hpd_gpio) { cec 213 drivers/media/platform/cec-gpio/cec-gpio.c cec->hpd_irq = gpiod_to_irq(cec->hpd_gpio); cec 214 drivers/media/platform/cec-gpio/cec-gpio.c ret = devm_request_threaded_irq(dev, cec->hpd_irq, cec 219 drivers/media/platform/cec-gpio/cec-gpio.c "hpd-gpio", cec); cec 224 drivers/media/platform/cec-gpio/cec-gpio.c if (cec->v5_gpio) { cec 225 drivers/media/platform/cec-gpio/cec-gpio.c cec->v5_irq = gpiod_to_irq(cec->v5_gpio); cec 226 drivers/media/platform/cec-gpio/cec-gpio.c ret = devm_request_threaded_irq(dev, cec->v5_irq, cec 231 drivers/media/platform/cec-gpio/cec-gpio.c "v5-gpio", cec); cec 236 drivers/media/platform/cec-gpio/cec-gpio.c ret = cec_register_adapter(cec->adap, &pdev->dev); cec 238 drivers/media/platform/cec-gpio/cec-gpio.c cec_delete_adapter(cec->adap); cec 242 drivers/media/platform/cec-gpio/cec-gpio.c platform_set_drvdata(pdev, cec); cec 248 drivers/media/platform/cec-gpio/cec-gpio.c struct cec_gpio *cec = platform_get_drvdata(pdev); cec 250 drivers/media/platform/cec-gpio/cec-gpio.c cec_unregister_adapter(cec->adap); cec 16 drivers/media/platform/s5p-cec/exynos_hdmi_cec.h void s5p_cec_set_divider(struct s5p_cec_dev *cec); cec 17 drivers/media/platform/s5p-cec/exynos_hdmi_cec.h void s5p_cec_enable_rx(struct s5p_cec_dev *cec); cec 18 drivers/media/platform/s5p-cec/exynos_hdmi_cec.h void s5p_cec_mask_rx_interrupts(struct s5p_cec_dev *cec); cec 19 drivers/media/platform/s5p-cec/exynos_hdmi_cec.h void s5p_cec_unmask_rx_interrupts(struct s5p_cec_dev *cec); cec 20 drivers/media/platform/s5p-cec/exynos_hdmi_cec.h void s5p_cec_mask_tx_interrupts(struct s5p_cec_dev *cec); cec 21 drivers/media/platform/s5p-cec/exynos_hdmi_cec.h void s5p_cec_unmask_tx_interrupts(struct s5p_cec_dev *cec); cec 22 drivers/media/platform/s5p-cec/exynos_hdmi_cec.h void s5p_cec_reset(struct s5p_cec_dev *cec); cec 23 drivers/media/platform/s5p-cec/exynos_hdmi_cec.h void s5p_cec_tx_reset(struct s5p_cec_dev *cec); cec 24 drivers/media/platform/s5p-cec/exynos_hdmi_cec.h void s5p_cec_rx_reset(struct s5p_cec_dev *cec); cec 25 drivers/media/platform/s5p-cec/exynos_hdmi_cec.h void s5p_cec_threshold(struct s5p_cec_dev *cec); cec 26 drivers/media/platform/s5p-cec/exynos_hdmi_cec.h void s5p_cec_copy_packet(struct s5p_cec_dev *cec, char *data, cec 28 drivers/media/platform/s5p-cec/exynos_hdmi_cec.h void s5p_cec_set_addr(struct s5p_cec_dev *cec, u32 addr); cec 29 drivers/media/platform/s5p-cec/exynos_hdmi_cec.h u32 s5p_cec_get_status(struct s5p_cec_dev *cec); cec 30 drivers/media/platform/s5p-cec/exynos_hdmi_cec.h void s5p_clr_pending_tx(struct s5p_cec_dev *cec); cec 31 drivers/media/platform/s5p-cec/exynos_hdmi_cec.h void s5p_clr_pending_rx(struct s5p_cec_dev *cec); cec 32 drivers/media/platform/s5p-cec/exynos_hdmi_cec.h void s5p_cec_get_rx_buf(struct s5p_cec_dev *cec, u32 size, u8 *buffer); cec 23 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c void s5p_cec_set_divider(struct s5p_cec_dev *cec) cec 30 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c if (regmap_read(cec->pmu, EXYNOS_HDMI_PHY_CONTROL, ®)) { cec 31 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c dev_err(cec->dev, "failed to read phy control\n"); cec 37 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c if (regmap_write(cec->pmu, EXYNOS_HDMI_PHY_CONTROL, reg)) { cec 38 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c dev_err(cec->dev, "failed to write phy control\n"); cec 44 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c writeb(0x0, cec->reg + S5P_CEC_DIVISOR_3); cec 45 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c writeb(0x0, cec->reg + S5P_CEC_DIVISOR_2); cec 46 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c writeb(0x0, cec->reg + S5P_CEC_DIVISOR_1); cec 47 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c writeb(div_val, cec->reg + S5P_CEC_DIVISOR_0); cec 50 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c void s5p_cec_enable_rx(struct s5p_cec_dev *cec) cec 54 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c reg = readb(cec->reg + S5P_CEC_RX_CTRL); cec 56 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c writeb(reg, cec->reg + S5P_CEC_RX_CTRL); cec 59 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c void s5p_cec_mask_rx_interrupts(struct s5p_cec_dev *cec) cec 63 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c reg = readb(cec->reg + S5P_CEC_IRQ_MASK); cec 66 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c writeb(reg, cec->reg + S5P_CEC_IRQ_MASK); cec 69 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c void s5p_cec_unmask_rx_interrupts(struct s5p_cec_dev *cec) cec 73 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c reg = readb(cec->reg + S5P_CEC_IRQ_MASK); cec 76 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c writeb(reg, cec->reg + S5P_CEC_IRQ_MASK); cec 79 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c void s5p_cec_mask_tx_interrupts(struct s5p_cec_dev *cec) cec 83 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c reg = readb(cec->reg + S5P_CEC_IRQ_MASK); cec 86 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c writeb(reg, cec->reg + S5P_CEC_IRQ_MASK); cec 89 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c void s5p_cec_unmask_tx_interrupts(struct s5p_cec_dev *cec) cec 93 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c reg = readb(cec->reg + S5P_CEC_IRQ_MASK); cec 96 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c writeb(reg, cec->reg + S5P_CEC_IRQ_MASK); cec 99 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c void s5p_cec_reset(struct s5p_cec_dev *cec) cec 103 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c writeb(S5P_CEC_RX_CTRL_RESET, cec->reg + S5P_CEC_RX_CTRL); cec 104 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c writeb(S5P_CEC_TX_CTRL_RESET, cec->reg + S5P_CEC_TX_CTRL); cec 106 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c reg = readb(cec->reg + 0xc4); cec 108 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c writeb(reg, cec->reg + 0xc4); cec 111 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c void s5p_cec_tx_reset(struct s5p_cec_dev *cec) cec 113 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c writeb(S5P_CEC_TX_CTRL_RESET, cec->reg + S5P_CEC_TX_CTRL); cec 116 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c void s5p_cec_rx_reset(struct s5p_cec_dev *cec) cec 120 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c writeb(S5P_CEC_RX_CTRL_RESET, cec->reg + S5P_CEC_RX_CTRL); cec 122 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c reg = readb(cec->reg + 0xc4); cec 124 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c writeb(reg, cec->reg + 0xc4); cec 127 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c void s5p_cec_threshold(struct s5p_cec_dev *cec) cec 129 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c writeb(CEC_FILTER_THRESHOLD, cec->reg + S5P_CEC_RX_FILTER_TH); cec 130 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c writeb(0, cec->reg + S5P_CEC_RX_FILTER_CTRL); cec 133 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c void s5p_cec_copy_packet(struct s5p_cec_dev *cec, char *data, cec 140 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c writeb(data[i], cec->reg + (S5P_CEC_TX_BUFF0 + (i * 4))); cec 144 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c writeb(count, cec->reg + S5P_CEC_TX_BYTES); cec 145 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c reg = readb(cec->reg + S5P_CEC_TX_CTRL); cec 151 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c dev_dbg(cec->dev, "Broadcast"); cec 154 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c dev_dbg(cec->dev, "No Broadcast"); cec 158 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c writeb(reg, cec->reg + S5P_CEC_TX_CTRL); cec 159 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c dev_dbg(cec->dev, "cec-tx: cec count (%zu): %*ph", count, cec 163 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c void s5p_cec_set_addr(struct s5p_cec_dev *cec, u32 addr) cec 165 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c writeb(addr & 0x0F, cec->reg + S5P_CEC_LOGIC_ADDR); cec 168 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c u32 s5p_cec_get_status(struct s5p_cec_dev *cec) cec 172 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c status = readb(cec->reg + S5P_CEC_STATUS_0) & 0xf; cec 173 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c status |= (readb(cec->reg + S5P_CEC_TX_STAT1) & 0xf) << 4; cec 174 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c status |= readb(cec->reg + S5P_CEC_STATUS_1) << 8; cec 175 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c status |= readb(cec->reg + S5P_CEC_STATUS_2) << 16; cec 176 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c status |= readb(cec->reg + S5P_CEC_STATUS_3) << 24; cec 178 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c dev_dbg(cec->dev, "status = 0x%x!\n", status); cec 183 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c void s5p_clr_pending_tx(struct s5p_cec_dev *cec) cec 186 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c cec->reg + S5P_CEC_IRQ_CLEAR); cec 189 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c void s5p_clr_pending_rx(struct s5p_cec_dev *cec) cec 192 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c cec->reg + S5P_CEC_IRQ_CLEAR); cec 195 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c void s5p_cec_get_rx_buf(struct s5p_cec_dev *cec, u32 size, u8 *buffer) cec 201 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c buffer[i] = readb(cec->reg + S5P_CEC_RX_BUFF0 + (i * 4)); cec 205 drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c dev_dbg(cec->dev, "cec-rx: cec size(%d): %s", size, debug); cec 38 drivers/media/platform/s5p-cec/s5p_cec.c struct s5p_cec_dev *cec = cec_get_drvdata(adap); cec 41 drivers/media/platform/s5p-cec/s5p_cec.c pm_runtime_get_sync(cec->dev); cec 43 drivers/media/platform/s5p-cec/s5p_cec.c s5p_cec_reset(cec); cec 45 drivers/media/platform/s5p-cec/s5p_cec.c s5p_cec_set_divider(cec); cec 46 drivers/media/platform/s5p-cec/s5p_cec.c s5p_cec_threshold(cec); cec 48 drivers/media/platform/s5p-cec/s5p_cec.c s5p_cec_unmask_tx_interrupts(cec); cec 49 drivers/media/platform/s5p-cec/s5p_cec.c s5p_cec_unmask_rx_interrupts(cec); cec 50 drivers/media/platform/s5p-cec/s5p_cec.c s5p_cec_enable_rx(cec); cec 52 drivers/media/platform/s5p-cec/s5p_cec.c s5p_cec_mask_tx_interrupts(cec); cec 53 drivers/media/platform/s5p-cec/s5p_cec.c s5p_cec_mask_rx_interrupts(cec); cec 54 drivers/media/platform/s5p-cec/s5p_cec.c pm_runtime_disable(cec->dev); cec 62 drivers/media/platform/s5p-cec/s5p_cec.c struct s5p_cec_dev *cec = cec_get_drvdata(adap); cec 64 drivers/media/platform/s5p-cec/s5p_cec.c s5p_cec_set_addr(cec, addr); cec 71 drivers/media/platform/s5p-cec/s5p_cec.c struct s5p_cec_dev *cec = cec_get_drvdata(adap); cec 77 drivers/media/platform/s5p-cec/s5p_cec.c s5p_cec_copy_packet(cec, msg->msg, msg->len, max(1, attempts - 1)); cec 83 drivers/media/platform/s5p-cec/s5p_cec.c struct s5p_cec_dev *cec = priv; cec 86 drivers/media/platform/s5p-cec/s5p_cec.c status = s5p_cec_get_status(cec); cec 88 drivers/media/platform/s5p-cec/s5p_cec.c dev_dbg(cec->dev, "irq received\n"); cec 92 drivers/media/platform/s5p-cec/s5p_cec.c dev_dbg(cec->dev, "CEC_STATUS_TX_NACK set\n"); cec 93 drivers/media/platform/s5p-cec/s5p_cec.c cec->tx = STATE_NACK; cec 95 drivers/media/platform/s5p-cec/s5p_cec.c dev_dbg(cec->dev, "CEC_STATUS_TX_ERROR set\n"); cec 96 drivers/media/platform/s5p-cec/s5p_cec.c cec->tx = STATE_ERROR; cec 98 drivers/media/platform/s5p-cec/s5p_cec.c dev_dbg(cec->dev, "CEC_STATUS_TX_DONE\n"); cec 99 drivers/media/platform/s5p-cec/s5p_cec.c cec->tx = STATE_DONE; cec 101 drivers/media/platform/s5p-cec/s5p_cec.c s5p_clr_pending_tx(cec); cec 106 drivers/media/platform/s5p-cec/s5p_cec.c dev_dbg(cec->dev, "CEC_STATUS_RX_ERROR set\n"); cec 107 drivers/media/platform/s5p-cec/s5p_cec.c s5p_cec_rx_reset(cec); cec 108 drivers/media/platform/s5p-cec/s5p_cec.c s5p_cec_enable_rx(cec); cec 110 drivers/media/platform/s5p-cec/s5p_cec.c dev_dbg(cec->dev, "CEC_STATUS_RX_DONE set\n"); cec 111 drivers/media/platform/s5p-cec/s5p_cec.c if (cec->rx != STATE_IDLE) cec 112 drivers/media/platform/s5p-cec/s5p_cec.c dev_dbg(cec->dev, "Buffer overrun (worker did not process previous message)\n"); cec 113 drivers/media/platform/s5p-cec/s5p_cec.c cec->rx = STATE_BUSY; cec 114 drivers/media/platform/s5p-cec/s5p_cec.c cec->msg.len = status >> 24; cec 115 drivers/media/platform/s5p-cec/s5p_cec.c cec->msg.rx_status = CEC_RX_STATUS_OK; cec 116 drivers/media/platform/s5p-cec/s5p_cec.c s5p_cec_get_rx_buf(cec, cec->msg.len, cec 117 drivers/media/platform/s5p-cec/s5p_cec.c cec->msg.msg); cec 118 drivers/media/platform/s5p-cec/s5p_cec.c cec->rx = STATE_DONE; cec 119 drivers/media/platform/s5p-cec/s5p_cec.c s5p_cec_enable_rx(cec); cec 122 drivers/media/platform/s5p-cec/s5p_cec.c s5p_clr_pending_rx(cec); cec 129 drivers/media/platform/s5p-cec/s5p_cec.c struct s5p_cec_dev *cec = priv; cec 131 drivers/media/platform/s5p-cec/s5p_cec.c dev_dbg(cec->dev, "irq processing thread\n"); cec 132 drivers/media/platform/s5p-cec/s5p_cec.c switch (cec->tx) { cec 134 drivers/media/platform/s5p-cec/s5p_cec.c cec_transmit_done(cec->adap, CEC_TX_STATUS_OK, 0, 0, 0, 0); cec 135 drivers/media/platform/s5p-cec/s5p_cec.c cec->tx = STATE_IDLE; cec 138 drivers/media/platform/s5p-cec/s5p_cec.c cec_transmit_done(cec->adap, cec 141 drivers/media/platform/s5p-cec/s5p_cec.c cec->tx = STATE_IDLE; cec 144 drivers/media/platform/s5p-cec/s5p_cec.c cec_transmit_done(cec->adap, cec 147 drivers/media/platform/s5p-cec/s5p_cec.c cec->tx = STATE_IDLE; cec 150 drivers/media/platform/s5p-cec/s5p_cec.c dev_err(cec->dev, "state set to busy, this should not occur here\n"); cec 156 drivers/media/platform/s5p-cec/s5p_cec.c switch (cec->rx) { cec 158 drivers/media/platform/s5p-cec/s5p_cec.c cec_received_msg(cec->adap, &cec->msg); cec 159 drivers/media/platform/s5p-cec/s5p_cec.c cec->rx = STATE_IDLE; cec 179 drivers/media/platform/s5p-cec/s5p_cec.c struct s5p_cec_dev *cec; cec 188 drivers/media/platform/s5p-cec/s5p_cec.c cec = devm_kzalloc(&pdev->dev, sizeof(*cec), GFP_KERNEL); cec 189 drivers/media/platform/s5p-cec/s5p_cec.c if (!cec) cec 192 drivers/media/platform/s5p-cec/s5p_cec.c cec->dev = dev; cec 194 drivers/media/platform/s5p-cec/s5p_cec.c cec->irq = platform_get_irq(pdev, 0); cec 195 drivers/media/platform/s5p-cec/s5p_cec.c if (cec->irq < 0) cec 196 drivers/media/platform/s5p-cec/s5p_cec.c return cec->irq; cec 198 drivers/media/platform/s5p-cec/s5p_cec.c ret = devm_request_threaded_irq(dev, cec->irq, s5p_cec_irq_handler, cec 199 drivers/media/platform/s5p-cec/s5p_cec.c s5p_cec_irq_handler_thread, 0, pdev->name, cec); cec 203 drivers/media/platform/s5p-cec/s5p_cec.c cec->clk = devm_clk_get(dev, "hdmicec"); cec 204 drivers/media/platform/s5p-cec/s5p_cec.c if (IS_ERR(cec->clk)) cec 205 drivers/media/platform/s5p-cec/s5p_cec.c return PTR_ERR(cec->clk); cec 207 drivers/media/platform/s5p-cec/s5p_cec.c cec->pmu = syscon_regmap_lookup_by_phandle(dev->of_node, cec 209 drivers/media/platform/s5p-cec/s5p_cec.c if (IS_ERR(cec->pmu)) cec 213 drivers/media/platform/s5p-cec/s5p_cec.c cec->reg = devm_ioremap_resource(dev, res); cec 214 drivers/media/platform/s5p-cec/s5p_cec.c if (IS_ERR(cec->reg)) cec 215 drivers/media/platform/s5p-cec/s5p_cec.c return PTR_ERR(cec->reg); cec 217 drivers/media/platform/s5p-cec/s5p_cec.c cec->adap = cec_allocate_adapter(&s5p_cec_adap_ops, cec, CEC_NAME, cec 220 drivers/media/platform/s5p-cec/s5p_cec.c ret = PTR_ERR_OR_ZERO(cec->adap); cec 224 drivers/media/platform/s5p-cec/s5p_cec.c cec->notifier = cec_notifier_cec_adap_register(hdmi_dev, NULL, cec 225 drivers/media/platform/s5p-cec/s5p_cec.c cec->adap); cec 226 drivers/media/platform/s5p-cec/s5p_cec.c if (!cec->notifier) { cec 231 drivers/media/platform/s5p-cec/s5p_cec.c ret = cec_register_adapter(cec->adap, &pdev->dev); cec 235 drivers/media/platform/s5p-cec/s5p_cec.c platform_set_drvdata(pdev, cec); cec 242 drivers/media/platform/s5p-cec/s5p_cec.c cec_notifier_cec_adap_unregister(cec->notifier); cec 245 drivers/media/platform/s5p-cec/s5p_cec.c cec_delete_adapter(cec->adap); cec 251 drivers/media/platform/s5p-cec/s5p_cec.c struct s5p_cec_dev *cec = platform_get_drvdata(pdev); cec 253 drivers/media/platform/s5p-cec/s5p_cec.c cec_notifier_cec_adap_unregister(cec->notifier); cec 254 drivers/media/platform/s5p-cec/s5p_cec.c cec_unregister_adapter(cec->adap); cec 261 drivers/media/platform/s5p-cec/s5p_cec.c struct s5p_cec_dev *cec = dev_get_drvdata(dev); cec 263 drivers/media/platform/s5p-cec/s5p_cec.c clk_disable_unprepare(cec->clk); cec 269 drivers/media/platform/s5p-cec/s5p_cec.c struct s5p_cec_dev *cec = dev_get_drvdata(dev); cec 272 drivers/media/platform/s5p-cec/s5p_cec.c ret = clk_prepare_enable(cec->clk); cec 107 drivers/media/platform/seco-cec/seco-cec.c struct secocec_data *cec = cec_get_drvdata(adap); cec 108 drivers/media/platform/seco-cec/seco-cec.c struct device *dev = cec->dev; cec 256 drivers/media/platform/seco-cec/seco-cec.c struct secocec_data *cec = cec_get_drvdata(adap); cec 257 drivers/media/platform/seco-cec/seco-cec.c struct device *dev = cec->dev; cec 319 drivers/media/platform/seco-cec/seco-cec.c cec_received_msg(cec->cec_adap, &msg); cec 349 drivers/media/platform/seco-cec/seco-cec.c struct secocec_data *cec = priv; cec 350 drivers/media/platform/seco-cec/seco-cec.c struct device *dev = cec->dev; cec 355 drivers/media/platform/seco-cec/seco-cec.c cec->ir = devm_rc_allocate_device(dev, RC_DRIVER_SCANCODE); cec 356 drivers/media/platform/seco-cec/seco-cec.c if (!cec->ir) cec 359 drivers/media/platform/seco-cec/seco-cec.c snprintf(cec->ir_input_phys, sizeof(cec->ir_input_phys), cec 362 drivers/media/platform/seco-cec/seco-cec.c cec->ir->device_name = dev_name(dev); cec 363 drivers/media/platform/seco-cec/seco-cec.c cec->ir->input_phys = cec->ir_input_phys; cec 364 drivers/media/platform/seco-cec/seco-cec.c cec->ir->input_id.bustype = BUS_HOST; cec 365 drivers/media/platform/seco-cec/seco-cec.c cec->ir->input_id.vendor = 0; cec 366 drivers/media/platform/seco-cec/seco-cec.c cec->ir->input_id.product = 0; cec 367 drivers/media/platform/seco-cec/seco-cec.c cec->ir->input_id.version = 1; cec 368 drivers/media/platform/seco-cec/seco-cec.c cec->ir->driver_name = SECOCEC_DEV_NAME; cec 369 drivers/media/platform/seco-cec/seco-cec.c cec->ir->allowed_protocols = RC_PROTO_BIT_RC5; cec 370 drivers/media/platform/seco-cec/seco-cec.c cec->ir->priv = cec; cec 371 drivers/media/platform/seco-cec/seco-cec.c cec->ir->map_name = RC_MAP_HAUPPAUGE; cec 372 drivers/media/platform/seco-cec/seco-cec.c cec->ir->timeout = MS_TO_NS(100); cec 395 drivers/media/platform/seco-cec/seco-cec.c status = devm_rc_register_device(dev, cec->ir); cec 399 drivers/media/platform/seco-cec/seco-cec.c cec->ir = NULL; cec 417 drivers/media/platform/seco-cec/seco-cec.c struct secocec_data *cec = priv; cec 418 drivers/media/platform/seco-cec/seco-cec.c struct device *dev = cec->dev; cec 421 drivers/media/platform/seco-cec/seco-cec.c if (!cec->ir) cec 432 drivers/media/platform/seco-cec/seco-cec.c rc_keydown(cec->ir, RC_PROTO_RC5, RC_SCANCODE_RC5(addr, key), toggle); cec 456 drivers/media/platform/seco-cec/seco-cec.c struct secocec_data *cec = priv; cec 457 drivers/media/platform/seco-cec/seco-cec.c struct device *dev = cec->dev; cec 473 drivers/media/platform/seco-cec/seco-cec.c secocec_rx_done(cec->cec_adap, cec_val); cec 476 drivers/media/platform/seco-cec/seco-cec.c secocec_tx_done(cec->cec_adap, cec_val); cec 489 drivers/media/platform/seco-cec/seco-cec.c secocec_ir_rx(cec); cec 134 drivers/media/platform/sti/cec/stih-cec.c struct stih_cec *cec = cec_get_drvdata(adap); cec 138 drivers/media/platform/sti/cec/stih-cec.c unsigned long clk_freq = clk_get_rate(cec->clk); cec 141 drivers/media/platform/sti/cec/stih-cec.c writel(cec_clk_div, cec->regs + CEC_CLK_DIV); cec 145 drivers/media/platform/sti/cec/stih-cec.c cec->regs + CEC_BIT_TOUT_THRESH); cec 149 drivers/media/platform/sti/cec/stih-cec.c cec->regs + CEC_BIT_PULSE_THRESH); cec 152 drivers/media/platform/sti/cec/stih-cec.c writel(BIT(5) | BIT(7), cec->regs + CEC_TX_CTRL); cec 156 drivers/media/platform/sti/cec/stih-cec.c cec->regs + CEC_DATA_ARRAY_CTRL); cec 160 drivers/media/platform/sti/cec/stih-cec.c cec->regs + CEC_CTRL); cec 163 drivers/media/platform/sti/cec/stih-cec.c writel(0, cec->regs + CEC_ADDR_TABLE); cec 166 drivers/media/platform/sti/cec/stih-cec.c writel(0x0, cec->regs + CEC_STATUS); cec 172 drivers/media/platform/sti/cec/stih-cec.c cec->regs + CEC_IRQ_CTRL); cec 176 drivers/media/platform/sti/cec/stih-cec.c writel(0, cec->regs + CEC_ADDR_TABLE); cec 179 drivers/media/platform/sti/cec/stih-cec.c writel(0x0, cec->regs + CEC_STATUS); cec 182 drivers/media/platform/sti/cec/stih-cec.c writel(0, cec->regs + CEC_IRQ_CTRL); cec 190 drivers/media/platform/sti/cec/stih-cec.c struct stih_cec *cec = cec_get_drvdata(adap); cec 191 drivers/media/platform/sti/cec/stih-cec.c u32 reg = readl(cec->regs + CEC_ADDR_TABLE); cec 198 drivers/media/platform/sti/cec/stih-cec.c writel(reg, cec->regs + CEC_ADDR_TABLE); cec 206 drivers/media/platform/sti/cec/stih-cec.c struct stih_cec *cec = cec_get_drvdata(adap); cec 211 drivers/media/platform/sti/cec/stih-cec.c writeb(msg->msg[i], cec->regs + CEC_TX_DATA_BASE + i); cec 218 drivers/media/platform/sti/cec/stih-cec.c msg->len, cec->regs + CEC_TX_ARRAY_CTRL); cec 223 drivers/media/platform/sti/cec/stih-cec.c static void stih_tx_done(struct stih_cec *cec, u32 status) cec 226 drivers/media/platform/sti/cec/stih-cec.c cec_transmit_attempt_done(cec->adap, CEC_TX_STATUS_ERROR); cec 231 drivers/media/platform/sti/cec/stih-cec.c cec_transmit_attempt_done(cec->adap, CEC_TX_STATUS_ARB_LOST); cec 236 drivers/media/platform/sti/cec/stih-cec.c cec_transmit_attempt_done(cec->adap, CEC_TX_STATUS_NACK); cec 240 drivers/media/platform/sti/cec/stih-cec.c cec_transmit_attempt_done(cec->adap, CEC_TX_STATUS_OK); cec 243 drivers/media/platform/sti/cec/stih-cec.c static void stih_rx_done(struct stih_cec *cec, u32 status) cec 254 drivers/media/platform/sti/cec/stih-cec.c msg.len = readl(cec->regs + CEC_DATA_ARRAY_STATUS) & 0x1f; cec 263 drivers/media/platform/sti/cec/stih-cec.c msg.msg[i] = readl(cec->regs + CEC_RX_DATA_BASE + i); cec 265 drivers/media/platform/sti/cec/stih-cec.c cec_received_msg(cec->adap, &msg); cec 270 drivers/media/platform/sti/cec/stih-cec.c struct stih_cec *cec = priv; cec 272 drivers/media/platform/sti/cec/stih-cec.c if (cec->irq_status & CEC_TX_DONE_STS) cec 273 drivers/media/platform/sti/cec/stih-cec.c stih_tx_done(cec, cec->irq_status); cec 275 drivers/media/platform/sti/cec/stih-cec.c if (cec->irq_status & CEC_RX_DONE_STS) cec 276 drivers/media/platform/sti/cec/stih-cec.c stih_rx_done(cec, cec->irq_status); cec 278 drivers/media/platform/sti/cec/stih-cec.c cec->irq_status = 0; cec 285 drivers/media/platform/sti/cec/stih-cec.c struct stih_cec *cec = priv; cec 287 drivers/media/platform/sti/cec/stih-cec.c cec->irq_status = readl(cec->regs + CEC_STATUS); cec 288 drivers/media/platform/sti/cec/stih-cec.c writel(cec->irq_status, cec->regs + CEC_STATUS); cec 303 drivers/media/platform/sti/cec/stih-cec.c struct stih_cec *cec; cec 312 drivers/media/platform/sti/cec/stih-cec.c cec = devm_kzalloc(dev, sizeof(*cec), GFP_KERNEL); cec 313 drivers/media/platform/sti/cec/stih-cec.c if (!cec) cec 316 drivers/media/platform/sti/cec/stih-cec.c cec->dev = dev; cec 319 drivers/media/platform/sti/cec/stih-cec.c cec->regs = devm_ioremap_resource(dev, res); cec 320 drivers/media/platform/sti/cec/stih-cec.c if (IS_ERR(cec->regs)) cec 321 drivers/media/platform/sti/cec/stih-cec.c return PTR_ERR(cec->regs); cec 323 drivers/media/platform/sti/cec/stih-cec.c cec->irq = platform_get_irq(pdev, 0); cec 324 drivers/media/platform/sti/cec/stih-cec.c if (cec->irq < 0) cec 325 drivers/media/platform/sti/cec/stih-cec.c return cec->irq; cec 327 drivers/media/platform/sti/cec/stih-cec.c ret = devm_request_threaded_irq(dev, cec->irq, stih_cec_irq_handler, cec 329 drivers/media/platform/sti/cec/stih-cec.c pdev->name, cec); cec 333 drivers/media/platform/sti/cec/stih-cec.c cec->clk = devm_clk_get(dev, "cec-clk"); cec 334 drivers/media/platform/sti/cec/stih-cec.c if (IS_ERR(cec->clk)) { cec 336 drivers/media/platform/sti/cec/stih-cec.c return PTR_ERR(cec->clk); cec 339 drivers/media/platform/sti/cec/stih-cec.c cec->adap = cec_allocate_adapter(&sti_cec_adap_ops, cec, CEC_NAME, cec 343 drivers/media/platform/sti/cec/stih-cec.c ret = PTR_ERR_OR_ZERO(cec->adap); cec 347 drivers/media/platform/sti/cec/stih-cec.c cec->notifier = cec_notifier_cec_adap_register(hdmi_dev, NULL, cec 348 drivers/media/platform/sti/cec/stih-cec.c cec->adap); cec 349 drivers/media/platform/sti/cec/stih-cec.c if (!cec->notifier) { cec 354 drivers/media/platform/sti/cec/stih-cec.c ret = cec_register_adapter(cec->adap, &pdev->dev); cec 358 drivers/media/platform/sti/cec/stih-cec.c platform_set_drvdata(pdev, cec); cec 362 drivers/media/platform/sti/cec/stih-cec.c cec_notifier_cec_adap_unregister(cec->notifier); cec 365 drivers/media/platform/sti/cec/stih-cec.c cec_delete_adapter(cec->adap); cec 371 drivers/media/platform/sti/cec/stih-cec.c struct stih_cec *cec = platform_get_drvdata(pdev); cec 373 drivers/media/platform/sti/cec/stih-cec.c cec_notifier_cec_adap_unregister(cec->notifier); cec 374 drivers/media/platform/sti/cec/stih-cec.c cec_unregister_adapter(cec->adap); cec 80 drivers/media/platform/stm32/stm32-cec.c static void cec_hw_init(struct stm32_cec *cec) cec 82 drivers/media/platform/stm32/stm32-cec.c regmap_update_bits(cec->regmap, CEC_CR, TXEOM | TXSOM | CECEN, 0); cec 84 drivers/media/platform/stm32/stm32-cec.c regmap_update_bits(cec->regmap, CEC_IER, ALL_TX_IT | ALL_RX_IT, cec 87 drivers/media/platform/stm32/stm32-cec.c regmap_update_bits(cec->regmap, CEC_CFGR, FULL_CFG, FULL_CFG); cec 90 drivers/media/platform/stm32/stm32-cec.c static void stm32_tx_done(struct stm32_cec *cec, u32 status) cec 93 drivers/media/platform/stm32/stm32-cec.c cec_transmit_done(cec->adap, CEC_TX_STATUS_ERROR, cec 99 drivers/media/platform/stm32/stm32-cec.c cec_transmit_done(cec->adap, CEC_TX_STATUS_ARB_LOST, cec 105 drivers/media/platform/stm32/stm32-cec.c cec_transmit_done(cec->adap, CEC_TX_STATUS_NACK, cec 110 drivers/media/platform/stm32/stm32-cec.c if (cec->irq_status & TXBR) { cec 112 drivers/media/platform/stm32/stm32-cec.c if (cec->tx_cnt < cec->tx_msg.len) cec 113 drivers/media/platform/stm32/stm32-cec.c regmap_write(cec->regmap, CEC_TXDR, cec 114 drivers/media/platform/stm32/stm32-cec.c cec->tx_msg.msg[cec->tx_cnt++]); cec 117 drivers/media/platform/stm32/stm32-cec.c if (cec->tx_cnt == cec->tx_msg.len) cec 118 drivers/media/platform/stm32/stm32-cec.c regmap_update_bits(cec->regmap, CEC_CR, TXEOM, TXEOM); cec 121 drivers/media/platform/stm32/stm32-cec.c if (cec->irq_status & TXEND) cec 122 drivers/media/platform/stm32/stm32-cec.c cec_transmit_done(cec->adap, CEC_TX_STATUS_OK, 0, 0, 0, 0); cec 125 drivers/media/platform/stm32/stm32-cec.c static void stm32_rx_done(struct stm32_cec *cec, u32 status) cec 127 drivers/media/platform/stm32/stm32-cec.c if (cec->irq_status & (RXACKE | RXOVR)) { cec 128 drivers/media/platform/stm32/stm32-cec.c cec->rx_msg.len = 0; cec 132 drivers/media/platform/stm32/stm32-cec.c if (cec->irq_status & RXBR) { cec 135 drivers/media/platform/stm32/stm32-cec.c regmap_read(cec->regmap, CEC_RXDR, &val); cec 136 drivers/media/platform/stm32/stm32-cec.c cec->rx_msg.msg[cec->rx_msg.len++] = val & 0xFF; cec 139 drivers/media/platform/stm32/stm32-cec.c if (cec->irq_status & RXEND) { cec 140 drivers/media/platform/stm32/stm32-cec.c cec_received_msg(cec->adap, &cec->rx_msg); cec 141 drivers/media/platform/stm32/stm32-cec.c cec->rx_msg.len = 0; cec 147 drivers/media/platform/stm32/stm32-cec.c struct stm32_cec *cec = arg; cec 149 drivers/media/platform/stm32/stm32-cec.c if (cec->irq_status & ALL_TX_IT) cec 150 drivers/media/platform/stm32/stm32-cec.c stm32_tx_done(cec, cec->irq_status); cec 152 drivers/media/platform/stm32/stm32-cec.c if (cec->irq_status & ALL_RX_IT) cec 153 drivers/media/platform/stm32/stm32-cec.c stm32_rx_done(cec, cec->irq_status); cec 155 drivers/media/platform/stm32/stm32-cec.c cec->irq_status = 0; cec 162 drivers/media/platform/stm32/stm32-cec.c struct stm32_cec *cec = arg; cec 164 drivers/media/platform/stm32/stm32-cec.c regmap_read(cec->regmap, CEC_ISR, &cec->irq_status); cec 166 drivers/media/platform/stm32/stm32-cec.c regmap_update_bits(cec->regmap, CEC_ISR, cec 175 drivers/media/platform/stm32/stm32-cec.c struct stm32_cec *cec = adap->priv; cec 179 drivers/media/platform/stm32/stm32-cec.c ret = clk_enable(cec->clk_cec); cec 181 drivers/media/platform/stm32/stm32-cec.c dev_err(cec->dev, "fail to enable cec clock\n"); cec 183 drivers/media/platform/stm32/stm32-cec.c clk_enable(cec->clk_hdmi_cec); cec 184 drivers/media/platform/stm32/stm32-cec.c regmap_update_bits(cec->regmap, CEC_CR, CECEN, CECEN); cec 186 drivers/media/platform/stm32/stm32-cec.c clk_disable(cec->clk_cec); cec 187 drivers/media/platform/stm32/stm32-cec.c clk_disable(cec->clk_hdmi_cec); cec 188 drivers/media/platform/stm32/stm32-cec.c regmap_update_bits(cec->regmap, CEC_CR, CECEN, 0); cec 196 drivers/media/platform/stm32/stm32-cec.c struct stm32_cec *cec = adap->priv; cec 201 drivers/media/platform/stm32/stm32-cec.c regmap_read_poll_timeout(cec->regmap, CEC_CR, val, !(val & TXSOM), cec 203 drivers/media/platform/stm32/stm32-cec.c regmap_update_bits(cec->regmap, CEC_CR, CECEN, 0); cec 206 drivers/media/platform/stm32/stm32-cec.c regmap_update_bits(cec->regmap, CEC_CFGR, OAR, 0); cec 208 drivers/media/platform/stm32/stm32-cec.c regmap_update_bits(cec->regmap, CEC_CFGR, oar, oar); cec 210 drivers/media/platform/stm32/stm32-cec.c regmap_update_bits(cec->regmap, CEC_CR, CECEN, CECEN); cec 218 drivers/media/platform/stm32/stm32-cec.c struct stm32_cec *cec = adap->priv; cec 221 drivers/media/platform/stm32/stm32-cec.c cec->tx_msg = *msg; cec 222 drivers/media/platform/stm32/stm32-cec.c cec->tx_cnt = 0; cec 228 drivers/media/platform/stm32/stm32-cec.c if (cec->tx_msg.len == 1) cec 229 drivers/media/platform/stm32/stm32-cec.c regmap_update_bits(cec->regmap, CEC_CR, TXEOM, TXEOM); cec 232 drivers/media/platform/stm32/stm32-cec.c regmap_update_bits(cec->regmap, CEC_CR, TXSOM, TXSOM); cec 235 drivers/media/platform/stm32/stm32-cec.c regmap_write(cec->regmap, CEC_TXDR, cec->tx_msg.msg[0]); cec 236 drivers/media/platform/stm32/stm32-cec.c cec->tx_cnt++; cec 259 drivers/media/platform/stm32/stm32-cec.c struct stm32_cec *cec; cec 263 drivers/media/platform/stm32/stm32-cec.c cec = devm_kzalloc(&pdev->dev, sizeof(*cec), GFP_KERNEL); cec 264 drivers/media/platform/stm32/stm32-cec.c if (!cec) cec 267 drivers/media/platform/stm32/stm32-cec.c cec->dev = &pdev->dev; cec 274 drivers/media/platform/stm32/stm32-cec.c cec->regmap = devm_regmap_init_mmio_clk(&pdev->dev, "cec", mmio, cec 277 drivers/media/platform/stm32/stm32-cec.c if (IS_ERR(cec->regmap)) cec 278 drivers/media/platform/stm32/stm32-cec.c return PTR_ERR(cec->regmap); cec 280 drivers/media/platform/stm32/stm32-cec.c cec->irq = platform_get_irq(pdev, 0); cec 281 drivers/media/platform/stm32/stm32-cec.c if (cec->irq < 0) cec 282 drivers/media/platform/stm32/stm32-cec.c return cec->irq; cec 284 drivers/media/platform/stm32/stm32-cec.c ret = devm_request_threaded_irq(&pdev->dev, cec->irq, cec 288 drivers/media/platform/stm32/stm32-cec.c pdev->name, cec); cec 292 drivers/media/platform/stm32/stm32-cec.c cec->clk_cec = devm_clk_get(&pdev->dev, "cec"); cec 293 drivers/media/platform/stm32/stm32-cec.c if (IS_ERR(cec->clk_cec)) { cec 295 drivers/media/platform/stm32/stm32-cec.c return PTR_ERR(cec->clk_cec); cec 298 drivers/media/platform/stm32/stm32-cec.c ret = clk_prepare(cec->clk_cec); cec 304 drivers/media/platform/stm32/stm32-cec.c cec->clk_hdmi_cec = devm_clk_get(&pdev->dev, "hdmi-cec"); cec 305 drivers/media/platform/stm32/stm32-cec.c if (!IS_ERR(cec->clk_hdmi_cec)) { cec 306 drivers/media/platform/stm32/stm32-cec.c ret = clk_prepare(cec->clk_hdmi_cec); cec 317 drivers/media/platform/stm32/stm32-cec.c cec->adap = cec_allocate_adapter(&stm32_cec_adap_ops, cec, cec 319 drivers/media/platform/stm32/stm32-cec.c ret = PTR_ERR_OR_ZERO(cec->adap); cec 323 drivers/media/platform/stm32/stm32-cec.c ret = cec_register_adapter(cec->adap, &pdev->dev); cec 325 drivers/media/platform/stm32/stm32-cec.c cec_delete_adapter(cec->adap); cec 329 drivers/media/platform/stm32/stm32-cec.c cec_hw_init(cec); cec 331 drivers/media/platform/stm32/stm32-cec.c platform_set_drvdata(pdev, cec); cec 338 drivers/media/platform/stm32/stm32-cec.c struct stm32_cec *cec = platform_get_drvdata(pdev); cec 340 drivers/media/platform/stm32/stm32-cec.c clk_unprepare(cec->clk_cec); cec 341 drivers/media/platform/stm32/stm32-cec.c clk_unprepare(cec->clk_hdmi_cec); cec 343 drivers/media/platform/stm32/stm32-cec.c cec_unregister_adapter(cec->adap); cec 52 drivers/media/platform/tegra-cec/tegra_cec.c static inline u32 cec_read(struct tegra_cec *cec, u32 reg) cec 54 drivers/media/platform/tegra-cec/tegra_cec.c return readl(cec->cec_base + reg); cec 57 drivers/media/platform/tegra-cec/tegra_cec.c static inline void cec_write(struct tegra_cec *cec, u32 reg, u32 val) cec 59 drivers/media/platform/tegra-cec/tegra_cec.c writel(val, cec->cec_base + reg); cec 62 drivers/media/platform/tegra-cec/tegra_cec.c static void tegra_cec_error_recovery(struct tegra_cec *cec) cec 66 drivers/media/platform/tegra-cec/tegra_cec.c hw_ctrl = cec_read(cec, TEGRA_CEC_HW_CONTROL); cec 67 drivers/media/platform/tegra-cec/tegra_cec.c cec_write(cec, TEGRA_CEC_HW_CONTROL, 0); cec 68 drivers/media/platform/tegra-cec/tegra_cec.c cec_write(cec, TEGRA_CEC_INT_STAT, 0xffffffff); cec 69 drivers/media/platform/tegra-cec/tegra_cec.c cec_write(cec, TEGRA_CEC_HW_CONTROL, hw_ctrl); cec 75 drivers/media/platform/tegra-cec/tegra_cec.c struct tegra_cec *cec = dev_get_drvdata(dev); cec 77 drivers/media/platform/tegra-cec/tegra_cec.c if (cec->tx_done) { cec 78 drivers/media/platform/tegra-cec/tegra_cec.c cec_transmit_attempt_done(cec->adap, cec->tx_status); cec 79 drivers/media/platform/tegra-cec/tegra_cec.c cec->tx_done = false; cec 81 drivers/media/platform/tegra-cec/tegra_cec.c if (cec->rx_done) { cec 84 drivers/media/platform/tegra-cec/tegra_cec.c msg.len = cec->rx_buf_cnt; cec 85 drivers/media/platform/tegra-cec/tegra_cec.c memcpy(msg.msg, cec->rx_buf, msg.len); cec 86 drivers/media/platform/tegra-cec/tegra_cec.c cec_received_msg(cec->adap, &msg); cec 87 drivers/media/platform/tegra-cec/tegra_cec.c cec->rx_done = false; cec 88 drivers/media/platform/tegra-cec/tegra_cec.c cec->rx_buf_cnt = 0; cec 96 drivers/media/platform/tegra-cec/tegra_cec.c struct tegra_cec *cec = dev_get_drvdata(dev); cec 99 drivers/media/platform/tegra-cec/tegra_cec.c status = cec_read(cec, TEGRA_CEC_INT_STAT); cec 100 drivers/media/platform/tegra-cec/tegra_cec.c mask = cec_read(cec, TEGRA_CEC_INT_MASK); cec 110 drivers/media/platform/tegra-cec/tegra_cec.c tegra_cec_error_recovery(cec); cec 111 drivers/media/platform/tegra-cec/tegra_cec.c cec_write(cec, TEGRA_CEC_INT_MASK, cec 114 drivers/media/platform/tegra-cec/tegra_cec.c cec->tx_done = true; cec 115 drivers/media/platform/tegra-cec/tegra_cec.c cec->tx_status = CEC_TX_STATUS_ERROR; cec 121 drivers/media/platform/tegra-cec/tegra_cec.c tegra_cec_error_recovery(cec); cec 122 drivers/media/platform/tegra-cec/tegra_cec.c cec_write(cec, TEGRA_CEC_INT_MASK, cec 125 drivers/media/platform/tegra-cec/tegra_cec.c cec->tx_done = true; cec 127 drivers/media/platform/tegra-cec/tegra_cec.c cec->tx_status = CEC_TX_STATUS_LOW_DRIVE; cec 129 drivers/media/platform/tegra-cec/tegra_cec.c cec->tx_status = CEC_TX_STATUS_ARB_LOST; cec 134 drivers/media/platform/tegra-cec/tegra_cec.c cec_write(cec, TEGRA_CEC_INT_STAT, cec 138 drivers/media/platform/tegra-cec/tegra_cec.c tegra_cec_error_recovery(cec); cec 140 drivers/media/platform/tegra-cec/tegra_cec.c cec->tx_done = true; cec 141 drivers/media/platform/tegra-cec/tegra_cec.c cec->tx_status = CEC_TX_STATUS_NACK; cec 143 drivers/media/platform/tegra-cec/tegra_cec.c cec->tx_done = true; cec 144 drivers/media/platform/tegra-cec/tegra_cec.c cec->tx_status = CEC_TX_STATUS_OK; cec 153 drivers/media/platform/tegra-cec/tegra_cec.c if (cec->tx_buf_cur == cec->tx_buf_cnt) { cec 154 drivers/media/platform/tegra-cec/tegra_cec.c cec_write(cec, TEGRA_CEC_INT_MASK, cec 157 drivers/media/platform/tegra-cec/tegra_cec.c cec_write(cec, TEGRA_CEC_TX_REGISTER, cec 158 drivers/media/platform/tegra-cec/tegra_cec.c cec->tx_buf[cec->tx_buf_cur++]); cec 159 drivers/media/platform/tegra-cec/tegra_cec.c cec_write(cec, TEGRA_CEC_INT_STAT, cec 165 drivers/media/platform/tegra-cec/tegra_cec.c cec_write(cec, TEGRA_CEC_INT_STAT, cec 167 drivers/media/platform/tegra-cec/tegra_cec.c cec->rx_done = false; cec 168 drivers/media/platform/tegra-cec/tegra_cec.c cec->rx_buf_cnt = 0; cec 173 drivers/media/platform/tegra-cec/tegra_cec.c cec_write(cec, TEGRA_CEC_INT_STAT, cec 175 drivers/media/platform/tegra-cec/tegra_cec.c v = cec_read(cec, TEGRA_CEC_RX_REGISTER); cec 176 drivers/media/platform/tegra-cec/tegra_cec.c if (cec->rx_buf_cnt < CEC_MAX_MSG_SIZE) cec 177 drivers/media/platform/tegra-cec/tegra_cec.c cec->rx_buf[cec->rx_buf_cnt++] = v & 0xff; cec 179 drivers/media/platform/tegra-cec/tegra_cec.c cec->rx_done = true; cec 189 drivers/media/platform/tegra-cec/tegra_cec.c struct tegra_cec *cec = adap->priv; cec 191 drivers/media/platform/tegra-cec/tegra_cec.c cec->rx_buf_cnt = 0; cec 192 drivers/media/platform/tegra-cec/tegra_cec.c cec->tx_buf_cnt = 0; cec 193 drivers/media/platform/tegra-cec/tegra_cec.c cec->tx_buf_cur = 0; cec 195 drivers/media/platform/tegra-cec/tegra_cec.c cec_write(cec, TEGRA_CEC_HW_CONTROL, 0); cec 196 drivers/media/platform/tegra-cec/tegra_cec.c cec_write(cec, TEGRA_CEC_INT_MASK, 0); cec 197 drivers/media/platform/tegra-cec/tegra_cec.c cec_write(cec, TEGRA_CEC_INT_STAT, 0xffffffff); cec 198 drivers/media/platform/tegra-cec/tegra_cec.c cec_write(cec, TEGRA_CEC_SW_CONTROL, 0); cec 203 drivers/media/platform/tegra-cec/tegra_cec.c cec_write(cec, TEGRA_CEC_INPUT_FILTER, (1U << 31) | 0x20); cec 205 drivers/media/platform/tegra-cec/tegra_cec.c cec_write(cec, TEGRA_CEC_RX_TIMING_0, cec 211 drivers/media/platform/tegra-cec/tegra_cec.c cec_write(cec, TEGRA_CEC_RX_TIMING_1, cec 217 drivers/media/platform/tegra-cec/tegra_cec.c cec_write(cec, TEGRA_CEC_RX_TIMING_2, cec 220 drivers/media/platform/tegra-cec/tegra_cec.c cec_write(cec, TEGRA_CEC_TX_TIMING_0, cec 226 drivers/media/platform/tegra-cec/tegra_cec.c cec_write(cec, TEGRA_CEC_TX_TIMING_1, cec 232 drivers/media/platform/tegra-cec/tegra_cec.c cec_write(cec, TEGRA_CEC_TX_TIMING_2, cec 237 drivers/media/platform/tegra-cec/tegra_cec.c cec_write(cec, TEGRA_CEC_INT_MASK, cec 246 drivers/media/platform/tegra-cec/tegra_cec.c cec_write(cec, TEGRA_CEC_HW_CONTROL, TEGRA_CEC_HWCTRL_TX_RX_MODE); cec 252 drivers/media/platform/tegra-cec/tegra_cec.c struct tegra_cec *cec = adap->priv; cec 253 drivers/media/platform/tegra-cec/tegra_cec.c u32 state = cec_read(cec, TEGRA_CEC_HW_CONTROL); cec 260 drivers/media/platform/tegra-cec/tegra_cec.c cec_write(cec, TEGRA_CEC_HW_CONTROL, state); cec 267 drivers/media/platform/tegra-cec/tegra_cec.c struct tegra_cec *cec = adap->priv; cec 268 drivers/media/platform/tegra-cec/tegra_cec.c u32 reg = cec_read(cec, TEGRA_CEC_HW_CONTROL); cec 274 drivers/media/platform/tegra-cec/tegra_cec.c cec_write(cec, TEGRA_CEC_HW_CONTROL, reg); cec 282 drivers/media/platform/tegra-cec/tegra_cec.c struct tegra_cec *cec = adap->priv; cec 290 drivers/media/platform/tegra-cec/tegra_cec.c cec->tx_buf_cur = 0; cec 291 drivers/media/platform/tegra-cec/tegra_cec.c cec->tx_buf_cnt = msg->len; cec 294 drivers/media/platform/tegra-cec/tegra_cec.c cec->tx_buf[i] = mode | msg->msg[i]; cec 296 drivers/media/platform/tegra-cec/tegra_cec.c cec->tx_buf[i] |= TEGRA_CEC_TX_REG_START_BIT; cec 298 drivers/media/platform/tegra-cec/tegra_cec.c cec->tx_buf[i] |= TEGRA_CEC_TX_REG_EOM; cec 300 drivers/media/platform/tegra-cec/tegra_cec.c cec->tx_buf[i] |= TEGRA_CEC_TX_REG_RETRY; cec 303 drivers/media/platform/tegra-cec/tegra_cec.c mask = cec_read(cec, TEGRA_CEC_INT_MASK); cec 304 drivers/media/platform/tegra-cec/tegra_cec.c cec_write(cec, TEGRA_CEC_INT_MASK, cec 320 drivers/media/platform/tegra-cec/tegra_cec.c struct tegra_cec *cec; cec 329 drivers/media/platform/tegra-cec/tegra_cec.c cec = devm_kzalloc(&pdev->dev, sizeof(struct tegra_cec), GFP_KERNEL); cec 331 drivers/media/platform/tegra-cec/tegra_cec.c if (!cec) cec 349 drivers/media/platform/tegra-cec/tegra_cec.c cec->tegra_cec_irq = platform_get_irq(pdev, 0); cec 351 drivers/media/platform/tegra-cec/tegra_cec.c if (cec->tegra_cec_irq <= 0) cec 354 drivers/media/platform/tegra-cec/tegra_cec.c cec->cec_base = devm_ioremap_nocache(&pdev->dev, res->start, cec 357 drivers/media/platform/tegra-cec/tegra_cec.c if (!cec->cec_base) { cec 362 drivers/media/platform/tegra-cec/tegra_cec.c cec->clk = devm_clk_get(&pdev->dev, "cec"); cec 364 drivers/media/platform/tegra-cec/tegra_cec.c if (IS_ERR_OR_NULL(cec->clk)) { cec 369 drivers/media/platform/tegra-cec/tegra_cec.c clk_prepare_enable(cec->clk); cec 372 drivers/media/platform/tegra-cec/tegra_cec.c cec->dev = &pdev->dev; cec 374 drivers/media/platform/tegra-cec/tegra_cec.c platform_set_drvdata(pdev, cec); cec 376 drivers/media/platform/tegra-cec/tegra_cec.c ret = devm_request_threaded_irq(&pdev->dev, cec->tegra_cec_irq, cec 386 drivers/media/platform/tegra-cec/tegra_cec.c cec->adap = cec_allocate_adapter(&tegra_cec_ops, cec, TEGRA_CEC_NAME, cec 390 drivers/media/platform/tegra-cec/tegra_cec.c if (IS_ERR(cec->adap)) { cec 396 drivers/media/platform/tegra-cec/tegra_cec.c cec->notifier = cec_notifier_cec_adap_register(hdmi_dev, NULL, cec 397 drivers/media/platform/tegra-cec/tegra_cec.c cec->adap); cec 398 drivers/media/platform/tegra-cec/tegra_cec.c if (!cec->notifier) { cec 403 drivers/media/platform/tegra-cec/tegra_cec.c ret = cec_register_adapter(cec->adap, &pdev->dev); cec 412 drivers/media/platform/tegra-cec/tegra_cec.c cec_notifier_cec_adap_unregister(cec->notifier); cec 414 drivers/media/platform/tegra-cec/tegra_cec.c cec_delete_adapter(cec->adap); cec 416 drivers/media/platform/tegra-cec/tegra_cec.c clk_disable_unprepare(cec->clk); cec 422 drivers/media/platform/tegra-cec/tegra_cec.c struct tegra_cec *cec = platform_get_drvdata(pdev); cec 424 drivers/media/platform/tegra-cec/tegra_cec.c clk_disable_unprepare(cec->clk); cec 426 drivers/media/platform/tegra-cec/tegra_cec.c cec_notifier_cec_adap_unregister(cec->notifier); cec 427 drivers/media/platform/tegra-cec/tegra_cec.c cec_unregister_adapter(cec->adap); cec 435 drivers/media/platform/tegra-cec/tegra_cec.c struct tegra_cec *cec = platform_get_drvdata(pdev); cec 437 drivers/media/platform/tegra-cec/tegra_cec.c clk_disable_unprepare(cec->clk); cec 445 drivers/media/platform/tegra-cec/tegra_cec.c struct tegra_cec *cec = platform_get_drvdata(pdev); cec 449 drivers/media/platform/tegra-cec/tegra_cec.c clk_prepare_enable(cec->clk); cec 16 drivers/media/rc/keymaps/rc-cec.c static struct rc_map_table cec[] = { cec 157 drivers/media/rc/keymaps/rc-cec.c .scan = cec, cec 158 drivers/media/rc/keymaps/rc-cec.c .size = ARRAY_SIZE(cec), cec 1462 drivers/pinctrl/tegra/pinctrl-tegra114.c FUNCTION(cec), cec 1822 drivers/pinctrl/tegra/pinctrl-tegra114.c DRV_PINGROUP(cec, 0x938, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2, N), cec 1622 drivers/pinctrl/tegra/pinctrl-tegra124.c FUNCTION(cec), cec 2030 drivers/pinctrl/tegra/pinctrl-tegra124.c DRV_PINGROUP(cec, 0x938, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2, N), cec 1198 drivers/pinctrl/tegra/pinctrl-tegra210.c FUNCTION(cec), cec 2020 drivers/pinctrl/tegra/pinctrl-tegra30.c FUNCTION(cec), cec 2433 drivers/pinctrl/tegra/pinctrl-tegra30.c DRV_PINGROUP(cec, 0x938, 2, 3, 4, 12, 5, 20, 5, 28, 2, 30, 2), cec 2221 drivers/video/fbdev/aty/radeon_pm.c u32 cgc, cec, c2gc; cec 2428 drivers/video/fbdev/aty/radeon_pm.c cec = INREG(CRTC_EXT_CNTL); cec 2488 drivers/video/fbdev/aty/radeon_pm.c OUTREG(CRTC_EXT_CNTL, cec); cec 1311 include/drm/drm_dp_helper.h struct drm_dp_aux_cec cec;