Home
last modified time | relevance | path

Searched refs:ctl1 (Results 1 – 10 of 10) sorted by relevance

/linux-6.1.9/drivers/gpu/drm/i915/display/
Ddvo_tfp410.c240 u8 ctl1; in tfp410_dpms() local
242 if (!tfp410_readb(dvo, TFP410_CTL_1, &ctl1)) in tfp410_dpms()
246 ctl1 |= TFP410_CTL_1_PD; in tfp410_dpms()
248 ctl1 &= ~TFP410_CTL_1_PD; in tfp410_dpms()
250 tfp410_writeb(dvo, TFP410_CTL_1, ctl1); in tfp410_dpms()
255 u8 ctl1; in tfp410_get_hw_state() local
257 if (!tfp410_readb(dvo, TFP410_CTL_1, &ctl1)) in tfp410_get_hw_state()
260 if (ctl1 & TFP410_CTL_1_PD) in tfp410_get_hw_state()
/linux-6.1.9/drivers/mtd/nand/raw/
Dcafe_nand.c65 uint32_t ctl1; member
166 uint32_t ctl1; in cafe_nand_cmdfunc() local
175 ctl1 = cafe->ctl1; in cafe_nand_cmdfunc()
178 cafe->ctl1, cafe->nr_data); in cafe_nand_cmdfunc()
212 ctl1 = 0x80000000 | command | (cafe->ctl1 & CTRL1_CHIPSELECT); in cafe_nand_cmdfunc()
216 ctl1 |= (1<<26); /* rd */ in cafe_nand_cmdfunc()
223 ctl1 |= 1<<26; /* rd */ in cafe_nand_cmdfunc()
227 ctl1 |= 1<<25; /* wr */ in cafe_nand_cmdfunc()
231 ctl1 |= ((adrbytes-1)|8) << 27; in cafe_nand_cmdfunc()
236 cafe->ctl1 = ctl1; in cafe_nand_cmdfunc()
[all …]
/linux-6.1.9/drivers/rtc/
Drtc-rzn1.c171 u32 ctl1 = readl(rtc->base + RZN1_RTC_CTL1); in rzn1_rtc_alarm_irq_enable() local
174 ctl1 |= RZN1_RTC_CTL1_ALME; in rzn1_rtc_alarm_irq_enable()
176 ctl1 &= ~RZN1_RTC_CTL1_ALME; in rzn1_rtc_alarm_irq_enable()
178 writel(ctl1, rtc->base + RZN1_RTC_CTL1); in rzn1_rtc_alarm_irq_enable()
189 u32 ctl1; in rzn1_rtc_read_alarm() local
211 ctl1 = readl(rtc->base + RZN1_RTC_CTL1); in rzn1_rtc_read_alarm()
212 alrm->enabled = !!(ctl1 & RZN1_RTC_CTL1_ALME); in rzn1_rtc_read_alarm()
/linux-6.1.9/drivers/net/wireless/ath/ath9k/
Dar9002_mac.c215 u32 ctl1, ctl6; in ar9002_set_txdesc() local
226 ctl1 = i->buf_len[0] | (i->is_last ? 0 : AR_TxMore); in ar9002_set_txdesc()
256 WRITE_ONCE(ads->ds_ctl1, ctl1); in ar9002_set_txdesc()
261 ctl1 |= (i->keyix != ATH9K_TXKEYIX_INVALID ? SM(i->keyix, AR_DestIdx) : 0) in ar9002_set_txdesc()
272 ctl1 |= AR_IsAggr | AR_MoreAggr; in ar9002_set_txdesc()
276 ctl1 |= AR_IsAggr; in ar9002_set_txdesc()
292 WRITE_ONCE(ads->ds_ctl1, ctl1); in ar9002_set_txdesc()
/linux-6.1.9/drivers/pci/pcie/
Daspm.c473 static void aspm_program_l1ss(struct pci_dev *dev, u32 ctl1, u32 ctl2) in aspm_program_l1ss() argument
489 l1_2_enable = ctl1 & PCI_L1SS_CTL1_L1_2_MASK; in aspm_program_l1ss()
490 ctl1 &= ~PCI_L1SS_CTL1_L1_2_MASK; in aspm_program_l1ss()
492 pci_write_config_dword(dev, l1ss + PCI_L1SS_CTL1, ctl1); in aspm_program_l1ss()
495 ctl1 | l1_2_enable); in aspm_program_l1ss()
505 u32 ctl1 = 0, ctl2 = 0; in aspm_calc_l1ss_info() local
543 ctl1 |= t_common_mode << 8 | scale << 29 | value << 16; in aspm_calc_l1ss_info()
551 if (ctl1 == pctl1 && ctl1 == cctl1 && in aspm_calc_l1ss_info()
558 pctl1 |= (ctl1 & (PCI_L1SS_CTL1_CM_RESTORE_TIME | in aspm_calc_l1ss_info()
566 cctl1 |= (ctl1 & (PCI_L1SS_CTL1_CM_RESTORE_TIME | in aspm_calc_l1ss_info()
[all …]
/linux-6.1.9/drivers/net/ethernet/broadcom/
Dbgmac.c116 u32 ctl1; in bgmac_dma_tx_add_buf() local
121 ctl1 = len & BGMAC_DESC_CTL1_LEN; in bgmac_dma_tx_add_buf()
128 dma_desc->ctl1 = cpu_to_le32(ctl1); in bgmac_dma_tx_add_buf()
217 u32 ctl1 = le32_to_cpu(ring->cpu_base[index].ctl1); in bgmac_dma_tx_add() local
218 int len = ctl1 & BGMAC_DESC_CTL1_LEN; in bgmac_dma_tx_add()
251 u32 ctl0, ctl1; in bgmac_dma_tx_free() local
258 ctl1 = le32_to_cpu(ring->cpu_base[slot_idx].ctl1); in bgmac_dma_tx_free()
259 len = ctl1 & BGMAC_DESC_CTL1_LEN; in bgmac_dma_tx_free()
381 u32 ctl0 = 0, ctl1 = 0; in bgmac_dma_rx_setup_desc() local
385 ctl1 |= BGMAC_RX_BUF_SIZE & BGMAC_DESC_CTL1_LEN; in bgmac_dma_rx_setup_desc()
[all …]
Dbgmac.h402 __le32 ctl1; member
/linux-6.1.9/drivers/net/can/mscan/
Dmscan.c627 u8 ctl1; in register_mscandev() local
629 ctl1 = in_8(&regs->canctl1); in register_mscandev()
631 ctl1 |= MSCAN_CLKSRC; in register_mscandev()
633 ctl1 &= ~MSCAN_CLKSRC; in register_mscandev()
637 ctl1 |= MSCAN_BORM; /* bus-off recovery upon request */ in register_mscandev()
640 ctl1 |= MSCAN_CANE; in register_mscandev()
641 out_8(&regs->canctl1, ctl1); in register_mscandev()
/linux-6.1.9/drivers/net/wireless/broadcom/b43/
Ddma.c184 u32 ctl0 = 0, ctl1 = 0; in op64_fill_descriptor() local
203 ctl1 |= bufsize & B43_DMA64_DCTL1_BYTECNT; in op64_fill_descriptor()
204 ctl1 |= (addrext << B43_DMA64_DCTL1_ADDREXT_SHIFT) in op64_fill_descriptor()
208 desc->dma64.control1 = cpu_to_le32(ctl1); in op64_fill_descriptor()
/linux-6.1.9/drivers/net/dsa/mv88e6xxx/
Dchip.c157 u16 ctl1; in mv88e6xxx_g1_irq_thread_work() local
178 err = mv88e6xxx_g1_read(chip, MV88E6XXX_G1_CTL1, &ctl1); in mv88e6xxx_g1_irq_thread_work()
186 ctl1 &= GENMASK(chip->g1_irq.nirqs, 0); in mv88e6xxx_g1_irq_thread_work()
187 } while (reg & ctl1); in mv88e6xxx_g1_irq_thread_work()