Home
last modified time | relevance | path

Searched refs:cr (Results 1 – 25 of 275) sorted by relevance

1234567891011

/kernel/linux/linux-5.10/drivers/target/iscsi/
Discsi_target_erl2.c78 struct iscsi_conn_recovery *cr) in iscsit_attach_active_connection_recovery_entry() argument
81 list_add_tail(&cr->cr_list, &sess->cr_active_list); in iscsit_attach_active_connection_recovery_entry()
89 struct iscsi_conn_recovery *cr) in iscsit_attach_inactive_connection_recovery_entry() argument
92 list_add_tail(&cr->cr_list, &sess->cr_inactive_list); in iscsit_attach_inactive_connection_recovery_entry()
106 struct iscsi_conn_recovery *cr; in iscsit_get_inactive_connection_recovery_entry() local
109 list_for_each_entry(cr, &sess->cr_inactive_list, cr_list) { in iscsit_get_inactive_connection_recovery_entry()
110 if (cr->cid == cid) { in iscsit_get_inactive_connection_recovery_entry()
112 return cr; in iscsit_get_inactive_connection_recovery_entry()
123 struct iscsi_conn_recovery *cr, *cr_tmp; in iscsit_free_connection_recovery_entries() local
126 list_for_each_entry_safe(cr, cr_tmp, &sess->cr_active_list, cr_list) { in iscsit_free_connection_recovery_entries()
[all …]
/kernel/linux/linux-5.10/drivers/crypto/ccp/
Dccp-dev-v3.c74 static int ccp_do_cmd(struct ccp_op *op, u32 *cr, unsigned int cr_count) in ccp_do_cmd() argument
107 iowrite32(*(cr + i), cr_addr); in ccp_do_cmd()
150 u32 cr[6]; in ccp_perform_aes() local
153 cr[0] = (CCP_ENGINE_AES << REQ1_ENGINE_SHIFT) in ccp_perform_aes()
158 cr[1] = op->src.u.dma.length - 1; in ccp_perform_aes()
159 cr[2] = ccp_addr_lo(&op->src.u.dma); in ccp_perform_aes()
160 cr[3] = (op->sb_ctx << REQ4_KSB_SHIFT) in ccp_perform_aes()
163 cr[4] = ccp_addr_lo(&op->dst.u.dma); in ccp_perform_aes()
164 cr[5] = (CCP_MEMTYPE_SYSTEM << REQ6_MEMTYPE_SHIFT) in ccp_perform_aes()
168 cr[0] |= ((0x7f) << REQ1_AES_CFB_SIZE_SHIFT); in ccp_perform_aes()
[all …]
/kernel/linux/linux-5.10/arch/s390/include/asm/
Dctl_reg.h59 static __always_inline void __ctl_set_bit(unsigned int cr, unsigned int bit) in __ctl_set_bit() argument
63 __ctl_store(reg, cr, cr); in __ctl_set_bit()
65 __ctl_load(reg, cr, cr); in __ctl_set_bit()
68 static __always_inline void __ctl_clear_bit(unsigned int cr, unsigned int bit) in __ctl_clear_bit() argument
72 __ctl_store(reg, cr, cr); in __ctl_clear_bit()
74 __ctl_load(reg, cr, cr); in __ctl_clear_bit()
77 void smp_ctl_set_bit(int cr, int bit);
78 void smp_ctl_clear_bit(int cr, int bit);
116 #define ctl_set_bit(cr, bit) smp_ctl_set_bit(cr, bit) argument
117 #define ctl_clear_bit(cr, bit) smp_ctl_clear_bit(cr, bit) argument
/kernel/linux/linux-5.10/arch/parisc/include/asm/
Dspecial_insns.h34 unsigned long cr; \
37 "=r" (cr) \
39 cr; \
42 #define mtctl(gr, cr) \ argument
45 : "r" (gr), "i" (cr) : "memory")
56 unsigned long cr; \
59 "=r" (cr) \
61 cr; \
64 #define mtsp(val, cr) \ argument
66 __asm__ __volatile__("mtsp %%r0,%0" : : "i" (cr) : "memory"); \
[all …]
/kernel/linux/linux-5.10/drivers/clocksource/
Dtimer-fttmr010.c146 u32 cr; in fttmr010_timer_set_next_event() local
159 cr = readl(fttmr010->base + TIMER1_COUNT); in fttmr010_timer_set_next_event()
160 writel(cr + cycles, fttmr010->base + TIMER1_MATCH1); in fttmr010_timer_set_next_event()
164 cr = readl(fttmr010->base + TIMER_CR); in fttmr010_timer_set_next_event()
165 cr |= fttmr010->t1_enable_val; in fttmr010_timer_set_next_event()
166 writel(cr, fttmr010->base + TIMER_CR); in fttmr010_timer_set_next_event()
184 u32 cr; in fttmr010_timer_shutdown() local
187 cr = readl(fttmr010->base + TIMER_CR); in fttmr010_timer_shutdown()
188 cr &= ~fttmr010->t1_enable_val; in fttmr010_timer_shutdown()
189 writel(cr, fttmr010->base + TIMER_CR); in fttmr010_timer_shutdown()
[all …]
/kernel/linux/linux-5.10/arch/ia64/include/asm/native/
Dinst.h12 mov reg = cr.ifa
15 mov reg = cr.itir
18 mov reg = cr.isr
21 mov reg = cr.iha
24 (pred) mov reg = cr.ipsr
27 mov reg = cr.iim
30 mov reg = cr.iip
33 mov reg = cr.ivr
42 mov cr.ifa = reg
45 (pred) mov cr.itir = reg
[all …]
/kernel/linux/linux-5.10/drivers/misc/cxl/
Dsysfs.c508 int cr; member
519 struct afu_config_record *cr = to_cr(kobj); in vendor_show() local
521 return scnprintf(buf, PAGE_SIZE, "0x%.4x\n", cr->vendor); in vendor_show()
527 struct afu_config_record *cr = to_cr(kobj); in device_show() local
529 return scnprintf(buf, PAGE_SIZE, "0x%.4x\n", cr->device); in device_show()
535 struct afu_config_record *cr = to_cr(kobj); in class_show() local
537 return scnprintf(buf, PAGE_SIZE, "0x%.6x\n", cr->class); in class_show()
544 struct afu_config_record *cr = to_cr(kobj); in afu_read_config() local
550 rc = cxl_ops->afu_cr_read64(afu, cr->cr, off & ~0x7, &val); in afu_read_config()
576 struct afu_config_record *cr = to_cr(kobj); in release_afu_config_record() local
[all …]
/kernel/linux/linux-5.10/drivers/i2c/busses/
Di2c-iop3xx.c67 u32 cr = IOP3XX_ICR_GCD | IOP3XX_ICR_SCLEN | IOP3XX_ICR_UE; in iop3xx_i2c_enable() local
86 cr |= IOP3XX_ICR_ALD_IE | IOP3XX_ICR_BERR_IE | in iop3xx_i2c_enable()
89 __raw_writel(cr, iop3xx_adap->ioaddr + CR_OFFSET); in iop3xx_i2c_enable()
95 unsigned long cr = __raw_readl(iop3xx_adap->ioaddr + CR_OFFSET); in iop3xx_i2c_transaction_cleanup() local
97 cr &= ~(IOP3XX_ICR_MSTART | IOP3XX_ICR_TBYTE | in iop3xx_i2c_transaction_cleanup()
100 __raw_writel(cr, iop3xx_adap->ioaddr + CR_OFFSET); in iop3xx_i2c_transaction_cleanup()
231 unsigned long cr = __raw_readl(iop3xx_adap->ioaddr + CR_OFFSET); in iop3xx_i2c_send_target_addr() local
244 cr &= ~(IOP3XX_ICR_MSTOP | IOP3XX_ICR_NACK); in iop3xx_i2c_send_target_addr()
245 cr |= IOP3XX_ICR_MSTART | IOP3XX_ICR_TBYTE; in iop3xx_i2c_send_target_addr()
247 __raw_writel(cr, iop3xx_adap->ioaddr + CR_OFFSET); in iop3xx_i2c_send_target_addr()
[all …]
/kernel/linux/linux-5.10/drivers/media/test-drivers/vicodec/
Dcodec-v4l2-fwht.c113 rf->cr = NULL; in prepare_raw_frame()
120 rf->cr = NULL; in prepare_raw_frame()
124 rf->cr = rf->cb + size / 4; in prepare_raw_frame()
127 rf->cr = rf->luma + size; in prepare_raw_frame()
128 rf->cb = rf->cr + size / 4; in prepare_raw_frame()
132 rf->cr = rf->cb + size / 2; in prepare_raw_frame()
138 rf->cr = rf->cb + 1; in prepare_raw_frame()
143 rf->cr = rf->luma + size; in prepare_raw_frame()
144 rf->cb = rf->cr + 1; in prepare_raw_frame()
148 rf->cr = rf->cb + 2; in prepare_raw_frame()
[all …]
/kernel/linux/linux-5.10/drivers/rtc/
Drtc-ds1374.c193 int cr, sr; in ds1374_read_alarm() local
201 cr = ret = i2c_smbus_read_byte_data(client, DS1374_REG_CR); in ds1374_read_alarm()
218 alarm->enabled = !!(cr & DS1374_REG_CR_WACE); in ds1374_read_alarm()
232 int cr; in ds1374_set_alarm() local
258 ret = cr = i2c_smbus_read_byte_data(client, DS1374_REG_CR); in ds1374_set_alarm()
264 cr &= ~DS1374_REG_CR_WACE; in ds1374_set_alarm()
266 ret = i2c_smbus_write_byte_data(client, DS1374_REG_CR, cr); in ds1374_set_alarm()
275 cr |= DS1374_REG_CR_WACE | DS1374_REG_CR_AIE; in ds1374_set_alarm()
276 cr &= ~DS1374_REG_CR_WDALM; in ds1374_set_alarm()
278 ret = i2c_smbus_write_byte_data(client, DS1374_REG_CR, cr); in ds1374_set_alarm()
[all …]
Drtc-stm32.c97 u16 cr; member
210 unsigned int status, cr; in stm32_rtc_alarm_irq() local
215 cr = readl_relaxed(rtc->base + regs->cr); in stm32_rtc_alarm_irq()
218 (cr & STM32_RTC_CR_ALRAIE)) { in stm32_rtc_alarm_irq()
342 unsigned int alrmar, cr, status; in stm32_rtc_read_alarm() local
345 cr = readl_relaxed(rtc->base + regs->cr); in stm32_rtc_read_alarm()
398 alrm->enabled = (cr & STM32_RTC_CR_ALRAE) ? 1 : 0; in stm32_rtc_read_alarm()
409 unsigned int cr; in stm32_rtc_alarm_irq_enable() local
411 cr = readl_relaxed(rtc->base + regs->cr); in stm32_rtc_alarm_irq_enable()
417 cr |= (STM32_RTC_CR_ALRAIE | STM32_RTC_CR_ALRAE); in stm32_rtc_alarm_irq_enable()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/ni/
Dnixge.c288 u32 cr; in nixge_hw_dma_bd_init() local
344 cr = nixge_dma_read_reg(priv, XAXIDMA_RX_CR_OFFSET); in nixge_hw_dma_bd_init()
346 cr = ((cr & ~XAXIDMA_COALESCE_MASK) | in nixge_hw_dma_bd_init()
349 cr = ((cr & ~XAXIDMA_DELAY_MASK) | in nixge_hw_dma_bd_init()
352 cr |= XAXIDMA_IRQ_ALL_MASK; in nixge_hw_dma_bd_init()
354 nixge_dma_write_reg(priv, XAXIDMA_RX_CR_OFFSET, cr); in nixge_hw_dma_bd_init()
357 cr = nixge_dma_read_reg(priv, XAXIDMA_TX_CR_OFFSET); in nixge_hw_dma_bd_init()
359 cr = (((cr & ~XAXIDMA_COALESCE_MASK)) | in nixge_hw_dma_bd_init()
362 cr = (((cr & ~XAXIDMA_DELAY_MASK)) | in nixge_hw_dma_bd_init()
365 cr |= XAXIDMA_IRQ_ALL_MASK; in nixge_hw_dma_bd_init()
[all …]
/kernel/linux/linux-5.10/arch/arm/mm/
Dcache-feroceon-l2.c243 u32 cr; in flush_and_disable_dcache() local
245 cr = get_cr(); in flush_and_disable_dcache()
246 if (cr & CR_C) { in flush_and_disable_dcache()
251 set_cr(cr & ~CR_C); in flush_and_disable_dcache()
260 u32 cr; in enable_dcache() local
262 cr = get_cr(); in enable_dcache()
263 set_cr(cr | CR_C); in enable_dcache()
273 u32 cr; in invalidate_and_disable_icache() local
275 cr = get_cr(); in invalidate_and_disable_icache()
276 if (cr & CR_I) { in invalidate_and_disable_icache()
[all …]
/kernel/linux/linux-5.10/drivers/tty/serial/
Dfsl_linflexuart.c330 unsigned long cr, ier, cr1; in linflex_setup_watermark() local
337 cr = readl(sport->membase + UARTCR); in linflex_setup_watermark()
338 cr &= ~(LINFLEXD_UARTCR_RXEN | LINFLEXD_UARTCR_TXEN); in linflex_setup_watermark()
339 writel(cr, sport->membase + UARTCR); in linflex_setup_watermark()
365 cr = (LINFLEXD_UARTCR_RXEN | LINFLEXD_UARTCR_TXEN | in linflex_setup_watermark()
368 writel(cr, sport->membase + UARTCR); in linflex_setup_watermark()
420 unsigned long cr, old_cr, cr1; in linflex_set_termios() local
423 cr = readl(port->membase + UARTCR); in linflex_set_termios()
424 old_cr = cr; in linflex_set_termios()
455 cr = old_cr & ~LINFLEXD_UARTCR_WL1 & ~LINFLEXD_UARTCR_WL0; in linflex_set_termios()
[all …]
Dapbuart.c43 unsigned int cr; in apbuart_stop_tx() local
45 cr = UART_GET_CTRL(port); in apbuart_stop_tx()
46 cr &= ~UART_CTRL_TI; in apbuart_stop_tx()
47 UART_PUT_CTRL(port, cr); in apbuart_stop_tx()
52 unsigned int cr; in apbuart_start_tx() local
54 cr = UART_GET_CTRL(port); in apbuart_start_tx()
55 cr |= UART_CTRL_TI; in apbuart_start_tx()
56 UART_PUT_CTRL(port, cr); in apbuart_start_tx()
64 unsigned int cr; in apbuart_stop_rx() local
66 cr = UART_GET_CTRL(port); in apbuart_stop_rx()
[all …]
/kernel/linux/linux-5.10/net/wireless/
Dsme.c258 struct cfg80211_connect_resp_params cr; in cfg80211_conn_work() local
260 memset(&cr, 0, sizeof(cr)); in cfg80211_conn_work()
261 cr.status = -1; in cfg80211_conn_work()
262 cr.bssid = bssid; in cfg80211_conn_work()
263 cr.timeout_reason = treason; in cfg80211_conn_work()
264 __cfg80211_connect_result(wdev->netdev, &cr, false); in cfg80211_conn_work()
367 struct cfg80211_connect_resp_params cr; in cfg80211_sme_rx_auth() local
369 memset(&cr, 0, sizeof(cr)); in cfg80211_sme_rx_auth()
370 cr.status = status_code; in cfg80211_sme_rx_auth()
371 cr.bssid = mgmt->bssid; in cfg80211_sme_rx_auth()
[all …]
/kernel/linux/linux-5.10/arch/csky/abiv2/inc/abi/
Dentry.h22 #define usp cr<14, 1>
207 mfcr \rx, cr<0, 15>
211 mfcr \rx, cr<4, 15>
215 mfcr \rx, cr<8, 15>
219 mfcr \rx, cr<29, 15>
223 mfcr \rx, cr<28, 15>
227 mtcr \rx, cr<4, 15>
231 mtcr \rx, cr<8, 15>
248 mtcr r6, cr<8, 15> /* Set MCIR */
257 mtcr r6, cr<6, 15> /* Set MPR with 4K page size */
[all …]
/kernel/linux/linux-5.10/arch/mips/kernel/
Dirq_txx9.c24 u32 cr[2]; member
45 #define TXx9_IRCR_EDGE(cr) ((cr) & 0x00000002) argument
115 u32 cr; in txx9_irq_set_type() local
130 crp = &txx9_ircptr->cr[(unsigned int)irq_nr / 8]; in txx9_irq_set_type()
131 cr = __raw_readl(crp); in txx9_irq_set_type()
133 cr &= ~(0x3 << ofs); in txx9_irq_set_type()
134 cr |= (mode & 0x3) << ofs; in txx9_irq_set_type()
135 __raw_writel(cr, crp); in txx9_irq_set_type()
167 __raw_writel(0, &txx9_ircptr->cr[i]); in txx9_irq_init()
/kernel/linux/linux-5.10/fs/ntfs/
Dcollate.h15 static inline bool ntfs_is_collation_rule_supported(COLLATION_RULE cr) { in ntfs_is_collation_rule_supported() argument
23 if (unlikely(cr != COLLATION_BINARY && cr != COLLATION_NTOFS_ULONG)) in ntfs_is_collation_rule_supported()
25 i = le32_to_cpu(cr); in ntfs_is_collation_rule_supported()
32 extern int ntfs_collate(ntfs_volume *vol, COLLATION_RULE cr,
/kernel/linux/linux-5.10/drivers/iommu/
Domap-iommu-debug.c135 static ssize_t iotlb_dump_cr(struct omap_iommu *obj, struct cr_regs *cr, in iotlb_dump_cr() argument
138 seq_printf(s, "%08x %08x %01x\n", cr->cam, cr->ram, in iotlb_dump_cr()
139 (cr->cam & MMU_CAM_P) ? 1 : 0); in iotlb_dump_cr()
146 struct cr_regs *cr; in omap_dump_tlb_entries() local
150 cr = kcalloc(num, sizeof(*cr), GFP_KERNEL); in omap_dump_tlb_entries()
151 if (!cr) in omap_dump_tlb_entries()
154 num = __dump_tlb_entries(obj, cr, num); in omap_dump_tlb_entries()
156 iotlb_dump_cr(obj, cr + i, s); in omap_dump_tlb_entries()
157 kfree(cr); in omap_dump_tlb_entries()
/kernel/linux/linux-5.10/drivers/scsi/
DBusLogic.h288 } cr; member
1131 union blogic_cntrl_reg cr; in blogic_busreset() local
1132 cr.all = 0; in blogic_busreset()
1133 cr.cr.bus_reset = true; in blogic_busreset()
1134 outb(cr.all, adapter->io_addr + BLOGIC_CNTRL_REG); in blogic_busreset()
1139 union blogic_cntrl_reg cr; in blogic_intreset() local
1140 cr.all = 0; in blogic_intreset()
1141 cr.cr.int_reset = true; in blogic_intreset()
1142 outb(cr.all, adapter->io_addr + BLOGIC_CNTRL_REG); in blogic_intreset()
1147 union blogic_cntrl_reg cr; in blogic_softreset() local
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/xilinx/
Dxilinx_axienet_main.c241 u32 cr; in axienet_dma_bd_init() local
300 cr = axienet_dma_in32(lp, XAXIDMA_RX_CR_OFFSET); in axienet_dma_bd_init()
302 cr = ((cr & ~XAXIDMA_COALESCE_MASK) | in axienet_dma_bd_init()
305 cr = ((cr & ~XAXIDMA_DELAY_MASK) | in axienet_dma_bd_init()
308 cr |= XAXIDMA_IRQ_ALL_MASK; in axienet_dma_bd_init()
310 axienet_dma_out32(lp, XAXIDMA_RX_CR_OFFSET, cr); in axienet_dma_bd_init()
313 cr = axienet_dma_in32(lp, XAXIDMA_TX_CR_OFFSET); in axienet_dma_bd_init()
315 cr = (((cr & ~XAXIDMA_COALESCE_MASK)) | in axienet_dma_bd_init()
318 cr = (((cr & ~XAXIDMA_DELAY_MASK)) | in axienet_dma_bd_init()
321 cr |= XAXIDMA_IRQ_ALL_MASK; in axienet_dma_bd_init()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/mcde/
Dmcde_display.c193 u32 cr; in mcde_configure_extsrc() local
198 cr = MCDE_EXTSRC0CR; in mcde_configure_extsrc()
202 cr = MCDE_EXTSRC1CR; in mcde_configure_extsrc()
206 cr = MCDE_EXTSRC2CR; in mcde_configure_extsrc()
210 cr = MCDE_EXTSRC3CR; in mcde_configure_extsrc()
214 cr = MCDE_EXTSRC4CR; in mcde_configure_extsrc()
218 cr = MCDE_EXTSRC5CR; in mcde_configure_extsrc()
222 cr = MCDE_EXTSRC6CR; in mcde_configure_extsrc()
226 cr = MCDE_EXTSRC7CR; in mcde_configure_extsrc()
230 cr = MCDE_EXTSRC8CR; in mcde_configure_extsrc()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/
Dcopy-paste.h31 u32 cr; in vas_paste() local
33 cr = 0; in vas_paste()
36 : "=r" (cr) in vas_paste()
41 return (cr >> CR0_SHIFT) & 0xE; in vas_paste()
/kernel/linux/linux-5.10/drivers/spi/
Dspi-sifive.c170 u32 cr; in sifive_spi_prep_transfer() local
174 cr = DIV_ROUND_UP(clk_get_rate(spi->clk) >> 1, t->speed_hz) - 1; in sifive_spi_prep_transfer()
175 cr &= SIFIVE_SPI_SCKDIV_DIV_MASK; in sifive_spi_prep_transfer()
176 sifive_spi_write(spi, SIFIVE_SPI_REG_SCKDIV, cr); in sifive_spi_prep_transfer()
181 cr = SIFIVE_SPI_FMT_LEN(t->bits_per_word); in sifive_spi_prep_transfer()
184 cr |= SIFIVE_SPI_FMT_PROTO_QUAD; in sifive_spi_prep_transfer()
187 cr |= SIFIVE_SPI_FMT_PROTO_DUAL; in sifive_spi_prep_transfer()
190 cr |= SIFIVE_SPI_FMT_PROTO_SINGLE; in sifive_spi_prep_transfer()
194 cr |= SIFIVE_SPI_FMT_ENDIAN; in sifive_spi_prep_transfer()
196 cr |= SIFIVE_SPI_FMT_DIR; in sifive_spi_prep_transfer()
[all …]

1234567891011