Lines Matching refs:rw
76 static int sdspi_card_buf(sdioh_info_t *sd, int rw, int func, bool fifo,
565 sdioh_request_byte(sdioh_info_t *sd, uint rw, uint func, uint regaddr, uint8 *byte) in sdioh_request_byte() argument
576 cmd_arg = SFIELD(cmd_arg, CMD52_RW_FLAG, rw == SDIOH_READ ? 0 : 1); in sdioh_request_byte()
578 cmd_arg = SFIELD(cmd_arg, CMD52_DATA, rw == SDIOH_READ ? 0 : *byte); in sdioh_request_byte()
580 sd_trace(("%s: rw=%d, func=%d, regaddr=0x%08x\n", __FUNCTION__, rw, func, regaddr)); in sdioh_request_byte()
597 if (rw == SDIOH_READ) in sdioh_request_byte()
605 sdioh_request_word(sdioh_info_t *sd, uint cmd_type, uint rw, uint func, uint addr, in sdioh_request_word() argument
612 if (rw == SDIOH_READ) in sdioh_request_word()
622 sdioh_request_buffer(sdioh_info_t *sd, uint pio_dma, uint fix_inc, uint rw, uint func, in sdioh_request_buffer() argument
636 __FUNCTION__, rw == SDIOH_READ ? 'R' : 'W', in sdioh_request_buffer()
656 if (sdspi_card_buf(sd, rw, func, fifo, addr, len, (uint32 *)buffer) != SUCCESS) { in sdioh_request_buffer()
1436 sdspi_card_buf(sdioh_info_t *sd, int rw, int func, bool fifo, uint32 addr, int nbytes, uint32 *data) in sdspi_card_buf() argument
1443 bool read = rw == SDIOH_READ ? 1 : 0; in sdspi_card_buf()