Lines Matching refs:dev_comp
309 const struct mtk_i2c_compatible *dev_comp;
543 return readw(i2c->base + i2c->dev_comp->regs[reg]);
549 writew(val, i2c->base + i2c->dev_comp->regs[reg]);
562 if (i2c->dev_comp->apdma_sync) {
587 if (i2c->dev_comp->dcm)
592 if (i2c->dev_comp->ltiming_adjust)
600 if (i2c->dev_comp->timing_adjust) {
609 if (i2c->dev_comp->ltiming_adjust) {
634 if (i2c->dev_comp->dma_sync)
664 if (i2c->dev_comp->ltiming_adjust == 0)
708 if (!i2c->dev_comp->timing_adjust)
711 if (i2c->dev_comp->ltiming_adjust)
716 if (i2c->dev_comp->ltiming_adjust)
751 if (i2c->dev_comp->ltiming_adjust) {
769 if (i2c->dev_comp->ltiming_adjust) {
886 if (i2c->dev_comp->timing_adjust && i2c->dev_comp->ltiming_adjust)
888 else if (i2c->dev_comp->timing_adjust)
918 if (i2c->dev_comp->ltiming_adjust)
934 if (i2c->dev_comp->ltiming_adjust)
975 if (i2c->dev_comp->regs == mt_i2c_regs_v2) {
1020 if (i2c->dev_comp->apdma_sync &&
1067 if (i2c->dev_comp->aux_len_reg) {
1081 if (i2c->dev_comp->apdma_sync) {
1104 if (i2c->dev_comp->max_dma_support > 32) {
1127 if (i2c->dev_comp->max_dma_support > 32) {
1173 if (i2c->dev_comp->max_dma_support > 32) {
1252 i2c->auto_restart = i2c->dev_comp->auto_restart;
1400 i2c->dev_comp = of_device_get_match_data(&pdev->dev);
1406 i2c->adap.quirks = i2c->dev_comp->quirks;
1421 if (i2c->have_pmic && !i2c->dev_comp->pmic_i2c)
1469 if (i2c->dev_comp->max_dma_support > 32) {
1471 DMA_BIT_MASK(i2c->dev_comp->max_dma_support));