Home
last modified time | relevance | path

Searched refs:csr (Results 1 – 25 of 82) sorted by relevance

1234

/openbmc/u-boot/drivers/usb/musb/
H A Dmusb_hcd.c40 u16 csr; in write_toggle() local
43 csr = readw(&musbr->txcsr); in write_toggle()
45 if (csr & MUSB_TXCSR_MODE) in write_toggle()
46 csr = MUSB_TXCSR_CLRDATATOG; in write_toggle()
48 csr = 0; in write_toggle()
49 writew(csr, &musbr->txcsr); in write_toggle()
51 csr |= MUSB_TXCSR_H_WR_DATATOGGLE; in write_toggle()
52 writew(csr, &musbr->txcsr); in write_toggle()
53 csr |= (toggle << MUSB_TXCSR_H_DATATOGGLE_SHIFT); in write_toggle()
54 writew(csr, &musbr->txcsr); in write_toggle()
[all …]
H A Dmusb_core.c67 u16 csr; in musb_configure_ep() local
82 csr = readw(&musbr->txcsr); in musb_configure_ep()
85 writew(csr | MUSB_TXCSR_CLRDATATOG, &musbr->txcsr); in musb_configure_ep()
88 if (csr & MUSB_TXCSR_TXPKTRDY) in musb_configure_ep()
89 writew(csr | MUSB_TXCSR_FLUSHFIFO, in musb_configure_ep()
95 csr = readw(&musbr->rxcsr); in musb_configure_ep()
98 writew(csr | MUSB_RXCSR_CLRDATATOG, &musbr->rxcsr); in musb_configure_ep()
101 if (csr & MUSB_RXCSR_RXPKTRDY) in musb_configure_ep()
102 writew(csr | MUSB_RXCSR_FLUSHFIFO, in musb_configure_ep()
/openbmc/qemu/hw/net/
H A Dpcnet.c65 #define CSR_INIT(S) !!(((S)->csr[0])&0x0001)
66 #define CSR_STRT(S) !!(((S)->csr[0])&0x0002)
67 #define CSR_STOP(S) !!(((S)->csr[0])&0x0004)
68 #define CSR_TDMD(S) !!(((S)->csr[0])&0x0008)
69 #define CSR_TXON(S) !!(((S)->csr[0])&0x0010)
70 #define CSR_RXON(S) !!(((S)->csr[0])&0x0020)
71 #define CSR_INEA(S) !!(((S)->csr[0])&0x0040)
72 #define CSR_BSWP(S) !!(((S)->csr[3])&0x0004)
73 #define CSR_LAPPEN(S) !!(((S)->csr[3])&0x0020)
74 #define CSR_DXSUFLO(S) !!(((S)->csr[3])&0x0040)
[all …]
H A Dtulip.c29 uint32_t csr[16]; member
53 VMSTATE_UINT32_ARRAY(csr, TULIPState, 16),
75 if (s->csr[0] & CSR0_DBO) { in tulip_desc_read()
93 if (s->csr[0] & CSR0_DBO) { in tulip_desc_write()
108 uint32_t ie = s->csr[5] & s->csr[7]; in tulip_update_int()
111 s->csr[5] &= ~(CSR5_AIS | CSR5_NIS); in tulip_update_int()
114 s->csr[5] |= CSR5_NIS; in tulip_update_int()
120 s->csr[5] |= CSR5_AIS; in tulip_update_int()
123 assert = s->csr[5] & s->csr[7] & (CSR5_AIS | CSR5_NIS); in tulip_update_int()
124 trace_tulip_irq(s->csr[5], s->csr[7], assert ? "assert" : "deassert"); in tulip_update_int()
[all …]
/openbmc/u-boot/arch/riscv/include/asm/
H A Dcsr.h64 #define xcsr(csr) #csr argument
66 #define csr_swap(csr, val) \ argument
69 __asm__ __volatile__ ("csrrw %0, " xcsr(csr) ", %1" \
75 #define csr_read(csr) \ argument
78 __asm__ __volatile__ ("csrr %0, " xcsr(csr) \
84 #define csr_write(csr, val) \ argument
87 __asm__ __volatile__ ("csrw " xcsr(csr) ", %0" \
92 #define csr_read_set(csr, val) \ argument
95 __asm__ __volatile__ ("csrrs %0, " xcsr(csr) ", %1" \
101 #define csr_set(csr, val) \ argument
[all …]
/openbmc/u-boot/drivers/usb/musb-new/
H A Dmusb_gadget.c319 u16 fifo_count = 0, csr; in txstate() local
338 csr = musb_readw(epio, MUSB_TXCSR); in txstate()
344 if (csr & MUSB_TXCSR_TXPKTRDY) { in txstate()
346 musb_ep->end_point.name, csr); in txstate()
350 if (csr & MUSB_TXCSR_P_SENDSTALL) { in txstate()
352 musb_ep->end_point.name, csr); in txstate()
358 csr); in txstate()
392 csr &= ~(MUSB_TXCSR_AUTOSET in txstate()
394 musb_writew(epio, MUSB_TXCSR, csr in txstate()
396 csr &= ~MUSB_TXCSR_DMAMODE; in txstate()
[all …]
H A Dmusb_gadget_ep0.c245 u16 csr; in service_zero_data_request() local
268 csr = musb_readw(regs, MUSB_TXCSR); in service_zero_data_request()
269 csr |= MUSB_TXCSR_CLRDATATOG | in service_zero_data_request()
271 csr &= ~(MUSB_TXCSR_P_SENDSTALL | in service_zero_data_request()
274 musb_writew(regs, MUSB_TXCSR, csr); in service_zero_data_request()
276 csr = musb_readw(regs, MUSB_RXCSR); in service_zero_data_request()
277 csr |= MUSB_RXCSR_CLRDATATOG | in service_zero_data_request()
279 csr &= ~(MUSB_RXCSR_P_SENDSTALL | in service_zero_data_request()
281 musb_writew(regs, MUSB_RXCSR, csr); in service_zero_data_request()
409 u16 csr; in service_zero_data_request() local
[all …]
H A Dmusb_host.c93 u16 csr; in musb_h_tx_flush_fifo() local
97 csr = musb_readw(epio, MUSB_TXCSR); in musb_h_tx_flush_fifo()
98 while (csr & MUSB_TXCSR_FIFONOTEMPTY) { in musb_h_tx_flush_fifo()
99 if (csr != lastcsr) in musb_h_tx_flush_fifo()
100 dev_dbg(musb->controller, "Host TX FIFONOTEMPTY csr: %02x\n", csr); in musb_h_tx_flush_fifo()
101 lastcsr = csr; in musb_h_tx_flush_fifo()
102 csr |= MUSB_TXCSR_FLUSHFIFO; in musb_h_tx_flush_fifo()
103 musb_writew(epio, MUSB_TXCSR, csr); in musb_h_tx_flush_fifo()
104 csr = musb_readw(epio, MUSB_TXCSR); in musb_h_tx_flush_fifo()
107 ep->epnum, csr)) in musb_h_tx_flush_fifo()
[all …]
/openbmc/u-boot/drivers/usb/gadget/
H A Dat91_udc.c125 u32 csr; in read_fifo() local
137 csr = __raw_readl(creg); in read_fifo()
138 if ((csr & RX_DATA_READY) == 0) in read_fifo()
141 count = (csr & AT91_UDP_RXBYTECNT) >> 16; in read_fifo()
152 csr |= CLR_FX; in read_fifo()
155 csr &= ~(SET_FX | AT91_UDP_RX_DATA_BK0); in read_fifo()
158 csr &= ~(SET_FX | AT91_UDP_RX_DATA_BK1); in read_fifo()
162 csr &= ~(SET_FX | AT91_UDP_RX_DATA_BK0); in read_fifo()
163 __raw_writel(csr, creg); in read_fifo()
185 csr = __raw_readl(creg); in read_fifo()
[all …]
/openbmc/phosphor-certificate-manager/bmc-vmi-ca/
H A Dca_certs_manager.cpp24 sdbusplus::message::object_path CACertMgr::signCSR(std::string csr) in signCSR() argument
29 if (csr.size() > maxCertSize) in signCSR()
33 Argument::ARGUMENT_VALUE(csr.c_str())); in signCSR()
43 id, std::make_unique<Entry>(bus, objPath, id, csr, cert, *this))); in signCSR()
50 Argument::ARGUMENT_VALUE(csr.c_str())); in signCSR()
H A Dca_cert_entry.hpp49 std::string& csr, std::string& cert, CACertMgr& manager) : in Entry() argument
55 this->csr(csr); in Entry()
/openbmc/u-boot/drivers/serial/
H A Datmel_usart.c51 if (!(readl(&usart->csr) & USART3_BIT(TXEMPTY))) in atmel_serial_init_internal()
94 while (!(readl(&usart->csr) & USART3_BIT(TXRDY))); in atmel_serial_putc()
102 while (!(readl(&usart->csr) & USART3_BIT(RXRDY))) in atmel_serial_getc()
110 return (readl(&usart->csr) & USART3_BIT(RXRDY)) != 0; in atmel_serial_tstc()
185 if (!(readl(&priv->usart->csr) & USART3_BIT(RXRDY))) in atmel_serial_getc()
195 if (!(readl(&priv->usart->csr) & USART3_BIT(TXRDY))) in atmel_serial_putc()
206 uint32_t csr = readl(&priv->usart->csr); in atmel_serial_pending() local
209 return csr & USART3_BIT(RXRDY) ? 1 : 0; in atmel_serial_pending()
211 return csr & USART3_BIT(TXEMPTY) ? 0 : 1; in atmel_serial_pending()
316 while (!(readl(&usart->csr) & USART3_BIT(TXRDY))) in _debug_uart_putc()
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-connectivity/freeradius/files/
H A D0012-raddb-certs-Makefile-fix-the-existed-certificate-err.patch9 openssl ca -batch -keyfile ca.key -cert ca.pem -in client.csr -key 'whatever' -out client.crt -ext…
35 @@ -92,7 +92,7 @@ server.csr server.key: server.cnf
38 server.crt: ca.key ca.pem server.csr
39 - $(OPENSSL) ca -batch -keyfile ca.key -cert ca.pem -in server.csr -key $(PASSWORD_CA) -out server…
40 + @[ -f server.crt ] || $(OPENSSL) ca -batch -keyfile ca.key -cert ca.pem -in server.csr -key $(PA…
44 @@ -117,7 +117,7 @@ client.csr client.key: client.cnf
47 client.crt: ca.key ca.pem client.csr
48 - $(OPENSSL) ca -batch -keyfile ca.key -cert ca.pem -in client.csr -key $(PASSWORD_CA) -out client…
49 + @[ -f client.crt ] || $(OPENSSL) ca -batch -keyfile ca.key -cert ca.pem -in client.csr -key $(PA…
H A D0013-raddb-certs-Makefile-fix-the-occasional-verification.patch69 server.csr server.key: server.cnf
70 - $(OPENSSL) req -new -out server.csr -keyout server.key -config ./server.cnf
71 + @[ -f server.csr ] || $(OPENSSL) req -new -out server.csr -keyout server.key -config ./server.cnf
74 server.crt: ca.key ca.pem server.csr
75 …@[ -f server.crt ] || $(OPENSSL) ca -batch -keyfile ca.key -cert ca.pem -in server.csr -key $(PAS…
91 client.csr client.key: client.cnf
92 - $(OPENSSL) req -new -out client.csr -keyout client.key -config ./client.cnf
93 + @[ -f client.csr ] || $(OPENSSL) req -new -out client.csr -keyout client.key -config ./client.cnf
96 client.crt: ca.key ca.pem client.csr
97 …@[ -f client.crt ] || $(OPENSSL) ca -batch -keyfile ca.key -cert ca.pem -in client.csr -key $(PAS…
[all …]
/openbmc/u-boot/drivers/i2c/
H A Dast_i2c.c146 writel(I2CD_M_STOP_CMD, &priv->regs->csr); in ast_i2c_send_stop()
182 writel(I2CD_M_START_CMD | I2CD_M_TX_CMD, &priv->regs->csr); in ast_i2c_start_txn()
201 writel(i2c_cmd, &priv->regs->csr); in ast_i2c_read_data()
228 writel(I2CD_M_TX_CMD, &priv->regs->csr); in ast_i2c_write_data()
244 u32 csr = readl(&regs->csr); in ast_i2c_deblock() local
245 bool sda_high = csr & I2CD_SDA_LINE_STS; in ast_i2c_deblock()
246 bool scl_high = csr & I2CD_SCL_LINE_STS; in ast_i2c_deblock()
254 debug("Unterminated TXN in (%x), sending stop\n", csr); in ast_i2c_deblock()
258 debug("Bus stuck (%x), attempting recovery\n", csr); in ast_i2c_deblock()
259 writel(I2CD_BUS_RECOVER_CMD, &regs->csr); in ast_i2c_deblock()
H A Dfsl_i2c.c308 u32 csr; in i2c_wait() local
313 csr = readb(&base->sr); in i2c_wait()
314 if (!(csr & I2C_SR_MIF)) in i2c_wait()
317 csr = readb(&base->sr); in i2c_wait()
321 if (csr & I2C_SR_MAL) { in i2c_wait()
326 if (!(csr & I2C_SR_MCF)) { in i2c_wait()
331 if (write == I2C_WRITE_BIT && (csr & I2C_SR_RXAK)) { in i2c_wait()
H A Dast2600_i2c.c202 u32 csr = readl(&priv->regs->cmd_sts); in ast2600_i2c_deblock() local
213 csr = readl(&priv->regs->cmd_sts); in ast2600_i2c_deblock()
215 if (!(csr & AST2600_I2CC_SDA_LINE_STS) && in ast2600_i2c_deblock()
216 (csr & AST2600_I2CC_SCL_LINE_STS)) { in ast2600_i2c_deblock()
217 debug("Bus stuck (%x), attempting recovery\n", csr); in ast2600_i2c_deblock()
/openbmc/openbmc-test-automation/openpower/ext_interfaces/
H A Dtest_vmicert_management.robot165 [Documentation] Get multiple concurrent csr requests from multiple admins and verify no errors.
180 …[Documentation] Get multiple concurrent corrupted csr requests from multiple admins and verify no…
243 [Documentation] Get multiple concurrent csr request from non admin users and verify no errors.
259 [Documentation] Get root certificate and send csr request concurrently and
273 [Documentation] Get concurrent root certificate and send csr request
288 [Documentation] Get root certificate and send multiple csr requests concurrently and
305 [Documentation] Get root certificate and send multiple corrupted csr requests concurrently and
306 ... verify gets root certificate and error for corrupted csr requests.
321 [Documentation] Send concurrent csr request and corrupted csr request
322 ... and verify gets certificate for valid csr and error for corrupted csr.
[all …]
/openbmc/qemu/hw/misc/
H A Dnpcm7xx_pwm.c74 uint32_t csr; in npcm7xx_pwm_calculate_freq() local
81 csr = NPCM7XX_CSR(p->module->csr, p->index); in npcm7xx_pwm_calculate_freq()
86 if (csr > 4) { in npcm7xx_pwm_calculate_freq()
89 __func__, csr); in npcm7xx_pwm_calculate_freq()
90 csr = 4; in npcm7xx_pwm_calculate_freq()
93 if (csr < 4) { in npcm7xx_pwm_calculate_freq()
94 freq >>= csr + 1; in npcm7xx_pwm_calculate_freq()
169 uint32_t old_csr = s->csr; in npcm7xx_pwm_write_csr()
172 s->csr = new_csr; in npcm7xx_pwm_write_csr()
324 value = s->csr; in npcm7xx_pwm_read()
[all …]
/openbmc/u-boot/board/freescale/common/
H A Dpixis.h14 u8 csr; member
53 u8 csr; member
80 u8 csr; member
109 u8 csr; member
139 u8 csr; member
/openbmc/qemu/tests/qtest/
H A Dnpcm7xx_pwm-test.c319 static uint32_t pwm_selector(uint32_t csr) in pwm_selector() argument
321 switch (csr) { in pwm_selector()
337 static uint64_t pwm_compute_freq(QTestState *qts, uint32_t ppr, uint32_t csr, in pwm_compute_freq() argument
340 return read_pclk(qts, false) / ((ppr + 1) * pwm_selector(csr) * (cnr + 1)); in pwm_compute_freq()
575 uint32_t ppr, csr, pcr; in test_oneshot() local
584 csr = csr_list[j]; in test_oneshot()
585 pwm_write_csr(qts, td, csr); in test_oneshot()
589 g_assert_cmpuint(pwm_read_csr(qts, td), ==, csr); in test_oneshot()
606 uint32_t ppr, csr, pcr, cnr, cmr; in test_toggle() local
619 csr = csr_list[j]; in test_toggle()
[all …]
/openbmc/u-boot/drivers/net/
H A Daltera_tse.c266 static void msgdma_reset(struct msgdma_csr *csr) in msgdma_reset() argument
272 writel(MSGDMA_CSR_STAT_MASK, &csr->status); in msgdma_reset()
273 writel(MSGDMA_CSR_CTL_RESET, &csr->control); in msgdma_reset()
276 status = readl(&csr->status); in msgdma_reset()
285 writel(MSGDMA_CSR_STAT_MASK, &csr->status); in msgdma_reset()
288 static u32 msgdma_wait(struct msgdma_csr *csr) in msgdma_wait() argument
296 status = readl(&csr->status); in msgdma_wait()
305 writel(MSGDMA_CSR_STAT_MASK, &csr->status); in msgdma_wait()
336 struct msgdma_csr *csr = priv->sgdma_rx; in altera_tse_recv_msgdma() local
340 level = readl(&csr->resp_fill_level); in altera_tse_recv_msgdma()
/openbmc/qemu/hw/timer/
H A Dxilinx_timer.c99 uint32_t csr; in timer_update_irq() local
102 csr = t->timers[i].regs[R_TCSR]; in timer_update_irq()
103 irq |= (csr & TCSR_TINT) && (csr & TCSR_ENIT); in timer_update_irq()
/openbmc/bmcweb/scripts/
H A Dgenerate_auth_certificates.py137 def signCsr(csr, ca_key): argument
138 csr.sign(ca_key, algorithm=hashes.SHA256())
215 def generateServerCert(url, ca_key, ca_cert, csr): argument
218 builder = builder.subject_name(csr.subject)
220 builder = builder.public_key(csr.public_key())
306 csr = x509.load_pem_x509_csr(csrString.encode())
307 if not csr.is_signature_valid:
309 return csr
466 csr = generateCsr(
475 csr,
/openbmc/phosphor-certificate-manager/test/
H A Dcerts_manager_test.cpp217 phosphor::certs::CSR* csr = nullptr) : manager(manager), csr_(csr) in MainApp() argument
240 std::string csr() in csr() function in phosphor::certs::__anone8b85a260111::MainApp
242 return (csr_->csr()); in csr()
1029 CSR csr(bus, objPath.c_str(), csrPath.c_str(), status); in TEST_F() local
1030 MainApp mainApp(&manager, &csr); in TEST_F()
1044 csrData = csr.csr(); in TEST_F()
1056 csrData = csr.csr(); in TEST_F()
1095 CSR csr(bus, objPath.c_str(), csrPath.c_str(), status); in TEST_F() local
1096 MainApp mainApp(&manager, &csr); in TEST_F()
1142 CSR csr(bus, objPath.c_str(), csrPath.c_str(), status); in TEST_F() local
[all …]

1234