Lines Matching refs:value
34 u32 value = ioread32(fotg210->reg + offset); in fotg210_ack_int() local
36 value &= ~mask; in fotg210_ack_int()
37 iowrite32(value, fotg210->reg + offset); in fotg210_ack_int()
42 u32 value = ioread32(ep->fotg210->reg + FOTG210_DMISGR1); in fotg210_disable_fifo_int() local
45 value |= DMISGR1_MF_IN_INT(ep->epnum - 1); in fotg210_disable_fifo_int()
47 value |= DMISGR1_MF_OUTSPK_INT(ep->epnum - 1); in fotg210_disable_fifo_int()
48 iowrite32(value, ep->fotg210->reg + FOTG210_DMISGR1); in fotg210_disable_fifo_int()
53 u32 value = ioread32(ep->fotg210->reg + FOTG210_DMISGR1); in fotg210_enable_fifo_int() local
56 value &= ~DMISGR1_MF_IN_INT(ep->epnum - 1); in fotg210_enable_fifo_int()
58 value &= ~DMISGR1_MF_OUTSPK_INT(ep->epnum - 1); in fotg210_enable_fifo_int()
59 iowrite32(value, ep->fotg210->reg + FOTG210_DMISGR1); in fotg210_enable_fifo_int()
64 u32 value = ioread32(fotg210->reg + FOTG210_DCFESR); in fotg210_set_cxdone() local
66 value |= DCFESR_CX_DONE; in fotg210_set_cxdone()
67 iowrite32(value, fotg210->reg + FOTG210_DCFESR); in fotg210_set_cxdone()
188 u32 value; in fotg210_reset_tseq() local
199 value = ioread32(reg); in fotg210_reset_tseq()
200 value |= INOUTEPMPSR_RESET_TSEQ; in fotg210_reset_tseq()
201 iowrite32(value, reg); in fotg210_reset_tseq()
203 value = ioread32(reg); in fotg210_reset_tseq()
204 value &= ~INOUTEPMPSR_RESET_TSEQ; in fotg210_reset_tseq()
205 iowrite32(value, reg); in fotg210_reset_tseq()
268 u32 value; in fotg210_enable_dma() local
272 value = ioread32(fotg210->reg + FOTG210_DMACPSR1); in fotg210_enable_dma()
273 value &= ~(DMACPSR1_DMA_LEN(0xFFFF) | DMACPSR1_DMA_TYPE(1)); in fotg210_enable_dma()
274 value |= DMACPSR1_DMA_LEN(len) | DMACPSR1_DMA_TYPE(ep->dir_in); in fotg210_enable_dma()
275 iowrite32(value, fotg210->reg + FOTG210_DMACPSR1); in fotg210_enable_dma()
278 value = ioread32(fotg210->reg + FOTG210_DMATFNR); in fotg210_enable_dma()
280 value |= DMATFNR_ACC_FN(ep->epnum - 1); in fotg210_enable_dma()
282 value |= DMATFNR_ACC_CXF; in fotg210_enable_dma()
283 iowrite32(value, fotg210->reg + FOTG210_DMATFNR); in fotg210_enable_dma()
289 value = ioread32(fotg210->reg + FOTG210_DMISGR2); in fotg210_enable_dma()
290 value &= ~(DMISGR2_MDMA_CMPLT | DMISGR2_MDMA_ERROR); in fotg210_enable_dma()
291 iowrite32(value, fotg210->reg + FOTG210_DMISGR2); in fotg210_enable_dma()
294 value = ioread32(fotg210->reg + FOTG210_DMACPSR1); in fotg210_enable_dma()
295 value |= DMACPSR1_DMA_START; in fotg210_enable_dma()
296 iowrite32(value, fotg210->reg + FOTG210_DMACPSR1); in fotg210_enable_dma()
306 u32 value; in fotg210_wait_dma_done() local
309 value = ioread32(ep->fotg210->reg + FOTG210_DISGR2); in fotg210_wait_dma_done()
310 if ((value & DISGR2_USBRST_INT) || in fotg210_wait_dma_done()
311 (value & DISGR2_DMA_ERROR)) in fotg210_wait_dma_done()
313 } while (!(value & DISGR2_DMA_CMPLT)); in fotg210_wait_dma_done()
319 value = ioread32(ep->fotg210->reg + FOTG210_DMACPSR1); in fotg210_wait_dma_done()
320 value |= DMACPSR1_DMA_ABORT; in fotg210_wait_dma_done()
321 iowrite32(value, ep->fotg210->reg + FOTG210_DMACPSR1); in fotg210_wait_dma_done()
325 value = ioread32(ep->fotg210->reg + in fotg210_wait_dma_done()
327 value |= FIBCR_FFRST; in fotg210_wait_dma_done()
328 iowrite32(value, ep->fotg210->reg + in fotg210_wait_dma_done()
331 value = ioread32(ep->fotg210->reg + FOTG210_DCFESR); in fotg210_wait_dma_done()
332 value |= DCFESR_CX_CLR; in fotg210_wait_dma_done()
333 iowrite32(value, ep->fotg210->reg + FOTG210_DCFESR); in fotg210_wait_dma_done()
397 u32 value = ioread32(ep->fotg210->reg + FOTG210_DMISGR0); in fotg210_ep0_queue() local
399 value &= ~DMISGR0_MCX_OUT_INT; in fotg210_ep0_queue()
400 iowrite32(value, ep->fotg210->reg + FOTG210_DMISGR0); in fotg210_ep0_queue()
458 u32 value; in fotg210_set_epnstall() local
464 value = ioread32(fotg210->reg + FOTG210_DCFESR); in fotg210_set_epnstall()
465 } while (!(value & DCFESR_FIFO_EMPTY(ep->epnum - 1))); in fotg210_set_epnstall()
471 value = ioread32(reg); in fotg210_set_epnstall()
472 value |= INOUTEPMPSR_STL_EP; in fotg210_set_epnstall()
473 iowrite32(value, reg); in fotg210_set_epnstall()
479 u32 value; in fotg210_clear_epnstall() local
485 value = ioread32(reg); in fotg210_clear_epnstall()
486 value &= ~INOUTEPMPSR_STL_EP; in fotg210_clear_epnstall()
487 iowrite32(value, reg); in fotg210_clear_epnstall()
490 static int fotg210_set_halt_and_wedge(struct usb_ep *_ep, int value, int wedge) in fotg210_set_halt_and_wedge() argument
502 if (value) { in fotg210_set_halt_and_wedge()
520 static int fotg210_ep_set_halt(struct usb_ep *_ep, int value) in fotg210_ep_set_halt() argument
522 return fotg210_set_halt_and_wedge(_ep, value, 0); in fotg210_ep_set_halt()
551 u32 value = ioread32(fotg210->reg + FOTG210_TX0BYTE); in fotg210_clear_tx0byte() local
553 value &= ~(TX0BYTE_EP1 | TX0BYTE_EP2 | TX0BYTE_EP3 in fotg210_clear_tx0byte()
555 iowrite32(value, fotg210->reg + FOTG210_TX0BYTE); in fotg210_clear_tx0byte()
560 u32 value = ioread32(fotg210->reg + FOTG210_RX0BYTE); in fotg210_clear_rx0byte() local
562 value &= ~(RX0BYTE_EP1 | RX0BYTE_EP2 | RX0BYTE_EP3 in fotg210_clear_rx0byte()
564 iowrite32(value, fotg210->reg + FOTG210_RX0BYTE); in fotg210_clear_rx0byte()
612 u32 value = ioread32(fotg210->reg + FOTG210_DAR); in fotg210_set_configuration() local
614 value |= DAR_AFT_CONF; in fotg210_set_configuration()
615 iowrite32(value, fotg210->reg + FOTG210_DAR); in fotg210_set_configuration()
620 u32 value = ioread32(fotg210->reg + FOTG210_DAR); in fotg210_set_dev_addr() local
622 value |= (addr & 0x7F); in fotg210_set_dev_addr()
623 iowrite32(value, fotg210->reg + FOTG210_DAR); in fotg210_set_dev_addr()
628 u32 value = ioread32(fotg210->reg + FOTG210_DCFESR); in fotg210_set_cxstall() local
630 value |= DCFESR_CX_STL; in fotg210_set_cxstall()
631 iowrite32(value, fotg210->reg + FOTG210_DCFESR); in fotg210_set_cxstall()
710 u32 value; in fotg210_is_epnstall() local
716 value = ioread32(reg); in fotg210_is_epnstall()
717 return value & INOUTEPMPSR_STL_EP ? 1 : 0; in fotg210_is_epnstall()
780 u32 value = ioread32(fotg210->reg + FOTG210_DMCR); in fotg210_setup_packet() local
781 fotg210->gadget.speed = value & DMCR_HS_EN ? in fotg210_setup_packet()
1009 u32 value; in fotg210_udc_start() local
1027 value = ioread32(fotg210->reg + FOTG210_DMCR); in fotg210_udc_start()
1028 value |= DMCR_CHIP_EN; in fotg210_udc_start()
1029 iowrite32(value, fotg210->reg + FOTG210_DMCR); in fotg210_udc_start()
1032 value = ioread32(fotg210->reg + FOTG210_DMCR); in fotg210_udc_start()
1033 value |= DMCR_GLINT_EN; in fotg210_udc_start()
1034 iowrite32(value, fotg210->reg + FOTG210_DMCR); in fotg210_udc_start()
1041 u32 value; in fotg210_init() local
1057 value = ioread32(fotg210->reg + FOTG210_DMCR); in fotg210_init()
1058 value &= ~DMCR_GLINT_EN; in fotg210_init()
1059 iowrite32(value, fotg210->reg + FOTG210_DMCR); in fotg210_init()
1071 value = ioread32(fotg210->reg + FOTG210_DMISGR0); in fotg210_init()
1072 value |= DMISGR0_MCX_COMEND; in fotg210_init()
1073 iowrite32(value, fotg210->reg + FOTG210_DMISGR0); in fotg210_init()