Lines Matching refs:set_val
22 #define set_val(addr, val) REG(addr) = (val) macro
23 #define set_bit(addr, val) set_val((addr), (get_val(addr) | (val)))
24 #define clear_bit(addr, val) set_val((addr), (get_val(addr) & ~(val)))
38 set_val(®s->mmcclk, 0); in dmmc_set_clock()
53 set_val(®s->mmcclk, (clkrt | MMCCLK_CLKEN)); in dmmc_set_clock()
166 set_val(®s->mmcim, 0); in dmmc_send_cmd()
173 set_val(®s->mmcfifoctl, in dmmc_send_cmd()
181 set_val(®s->mmcfifoctl, MMCFIFOCTL_FIFOLEV); in dmmc_send_cmd()
183 set_val(®s->mmcfifoctl, in dmmc_send_cmd()
189 set_val(®s->mmctod, 0xFFFF); in dmmc_send_cmd()
190 set_val(®s->mmcnblk, (data->blocks & MMCNBLK_NBLK_MASK)); in dmmc_send_cmd()
191 set_val(®s->mmcblen, (data->blocksize & MMCBLEN_BLEN_MASK)); in dmmc_send_cmd()
199 set_val(®s->mmcdxr, val); in dmmc_send_cmd()
205 set_val(®s->mmcblen, 0); in dmmc_send_cmd()
206 set_val(®s->mmcnblk, 0); in dmmc_send_cmd()
209 set_val(®s->mmctor, 0x1FFF); in dmmc_send_cmd()
212 set_val(®s->mmcarghl, cmd->cmdarg); in dmmc_send_cmd()
213 set_val(®s->mmccmd, cmddata); in dmmc_send_cmd()
299 set_val(®s->mmcdxr, cmddata); in dmmc_send_cmd()
332 set_val(®s->mmcclk, 0x0); in dmmc_init()
333 set_val(®s->mmctor, 0x1FFF); in dmmc_init()
334 set_val(®s->mmctod, 0xFFFF); in dmmc_init()
343 set_val(®s->mmcfifoctl, (MMCFIFOCTL_FIFOLEV | MMCFIFOCTL_FIFORST)); in dmmc_init()
344 set_val(®s->mmcfifoctl, MMCFIFOCTL_FIFOLEV); in dmmc_init()