Lines Matching refs:addr
331 static int wilc_sdio_write_reg(struct wilc *wilc, u32 addr, u32 data)
339 if (addr >= 0xf0 && addr <= 0xff) { /* only vendor specific registers */
345 cmd.address = addr;
350 "Failed cmd 52, read reg (%08x) ...\n", addr);
357 ret = wilc_sdio_set_func0_csa_address(wilc, addr);
372 "Failed cmd53, write reg (%08x)...\n", addr);
378 static int wilc_sdio_write(struct wilc *wilc, u32 addr, u8 *buf, u32 size)
387 if (addr > 0) {
411 if (addr > 0) {
412 ret = wilc_sdio_set_func0_csa_address(wilc, addr);
419 "Failed cmd53 [%x], block send...\n", addr);
422 if (addr > 0)
423 addr += nblk * block_size;
435 if (addr > 0) {
436 ret = wilc_sdio_set_func0_csa_address(wilc, addr);
443 "Failed cmd53 [%x], bytes send...\n", addr);
451 static int wilc_sdio_read_reg(struct wilc *wilc, u32 addr, u32 *data)
457 if (addr >= 0xf0 && addr <= 0xff) { /* only vendor specific registers */
463 cmd.address = addr;
467 "Failed cmd 52, read reg (%08x) ...\n", addr);
474 ret = wilc_sdio_set_func0_csa_address(wilc, addr);
490 "Failed cmd53, read reg (%08x)...\n", addr);
499 static int wilc_sdio_read(struct wilc *wilc, u32 addr, u8 *buf, u32 size)
508 if (addr > 0) {
532 if (addr > 0) {
533 ret = wilc_sdio_set_func0_csa_address(wilc, addr);
540 "Failed cmd53 [%x], block read...\n", addr);
543 if (addr > 0)
544 addr += nblk * block_size;
556 if (addr > 0) {
557 ret = wilc_sdio_set_func0_csa_address(wilc, addr);
564 "Failed cmd53 [%x], bytes read...\n", addr);