Lines Matching refs:addr
366 static int wilc_sdio_write_reg(struct wilc *wilc, u32 addr, u32 data)
374 if (addr >= 0xf0 && addr <= 0xff) { /* only vendor specific registers */
380 cmd.address = addr;
385 "Failed cmd 52, read reg (%08x) ...\n", addr);
392 ret = wilc_sdio_set_func0_csa_address(wilc, addr);
408 "Failed cmd53, write reg (%08x)...\n", addr);
414 static int wilc_sdio_write(struct wilc *wilc, u32 addr, u8 *buf, u32 size)
423 if (addr > 0) {
448 if (addr > 0) {
449 ret = wilc_sdio_set_func0_csa_address(wilc, addr);
456 "Failed cmd53 [%x], block send...\n", addr);
459 if (addr > 0)
460 addr += nblk * block_size;
472 if (addr > 0) {
473 ret = wilc_sdio_set_func0_csa_address(wilc, addr);
480 "Failed cmd53 [%x], bytes send...\n", addr);
488 static int wilc_sdio_read_reg(struct wilc *wilc, u32 addr, u32 *data)
494 if (addr >= 0xf0 && addr <= 0xff) { /* only vendor specific registers */
500 cmd.address = addr;
504 "Failed cmd 52, read reg (%08x) ...\n", addr);
511 ret = wilc_sdio_set_func0_csa_address(wilc, addr);
528 "Failed cmd53, read reg (%08x)...\n", addr);
537 static int wilc_sdio_read(struct wilc *wilc, u32 addr, u8 *buf, u32 size)
546 if (addr > 0) {
571 if (addr > 0) {
572 ret = wilc_sdio_set_func0_csa_address(wilc, addr);
579 "Failed cmd53 [%x], block read...\n", addr);
582 if (addr > 0)
583 addr += nblk * block_size;
595 if (addr > 0) {
596 ret = wilc_sdio_set_func0_csa_address(wilc, addr);
603 "Failed cmd53 [%x], bytes read...\n", addr);