• Home
  • Raw
  • Download

Lines Matching refs:func

74 static int sdstd_card_regread(sdioh_info_t *sd, int func, uint32 regaddr,
76 static int sdstd_card_regwrite(sdioh_info_t *sd, int func, uint32 regaddr,
80 static int sdstd_card_buf(sdioh_info_t *sd, int rw, int func, bool fifo,
82 static int sdstd_abort(sdioh_info_t *sd, uint func);
84 static int set_client_block_size(sdioh_info_t *sd, int func, int blocksize);
475 uint func = ((uint32)int_val >> 16); in sdioh_iovar_op() local
479 if (func > si->num_funcs) { in sdioh_iovar_op()
484 switch (func) { in sdioh_iovar_op()
500 bcmerror = set_client_block_size(si, func, blksize); in sdioh_iovar_op()
671 if (sdioh_cfg_read(si, sd_ptr->func, sd_ptr->offset, &data)) { in sdioh_iovar_op()
686 if (sdioh_cfg_write(si, sd_ptr->func, sd_ptr->offset, &data)) { in sdioh_iovar_op()
722 sdioh_cis_read(sdioh_info_t *sd, uint func, uint8 *cisd, uint32 length) in sdioh_cis_read() argument
729 sd_trace(("%s: Func = %d\n", __FUNCTION__, func)); in sdioh_cis_read()
731 if (!sd->func_cis_ptr[func]) { in sdioh_cis_read()
739 offset = sd->func_cis_ptr[func] + count; in sdioh_cis_read()
753 sdioh_request_byte(sdioh_info_t *sd, uint rw, uint func, uint regaddr, uint8 *byte) in sdioh_request_byte() argument
761 cmd_arg = SFIELD(cmd_arg, CMD52_FUNCTION, func); in sdioh_request_byte()
779 __FUNCTION__, GFIELD(rsp5, RSP5_FLAGS), func)); in sdioh_request_byte()
793 sdioh_request_word(sdioh_info_t *sd, uint cmd_type, uint rw, uint func, uint addr, in sdioh_request_word() argument
802 status = sdstd_card_regread(sd, func, addr, nbytes, word); in sdioh_request_word()
808 status = sdstd_card_regwrite(sd, func, addr, nbytes, *word); in sdioh_request_word()
816 sdioh_request_buffer(sdioh_info_t *sd, uint pio_dma, uint fix_inc, uint rw, uint func, in sdioh_request_buffer() argument
829 ASSERT(sd->client_block_size[func]); in sdioh_request_buffer()
846 if (buflen > sd->client_block_size[func]) in sdioh_request_buffer()
847 len = (len/sd->client_block_size[func]) * in sdioh_request_buffer()
848 sd->client_block_size[func]; in sdioh_request_buffer()
849 if ((func == SDIO_FUNC_1) && ((len % 4) == 3) && (rw == SDIOH_WRITE)) { in sdioh_request_buffer()
865 len = MIN(sd->client_block_size[func], buflen); in sdioh_request_buffer()
868 if (sdstd_card_buf(sd, rw, func, fifo, addr, len, (uint32 *)buffer) != SUCCESS) { in sdioh_request_buffer()
874 if ((func == SDIO_FUNC_1) && ((tmplen % 4) == 3) && (rw == SDIOH_WRITE)) { in sdioh_request_buffer()
893 int sdstd_abort(sdioh_info_t *sd, uint func) in sdstd_abort() argument
912 cmd_arg = SFIELD(cmd_arg, CMD52_DATA, func); in sdstd_abort()
1902 uint8 func; in sdstd_card_enablefuncs() local
1912 for (fbraddr = SDIOD_FBR_STARTADDR, func = 1; in sdstd_card_enablefuncs()
1913 func <= sd->num_funcs; func++, fbraddr += SDIOD_FBR_SIZE) { in sdstd_card_enablefuncs()
1914 sd->func_cis_ptr[func] = sdstd_get_cisaddr(sd, SDIOD_FBR_CISPTR_0 + fbraddr); in sdstd_card_enablefuncs()
1916 __FUNCTION__, func, sd->func_cis_ptr[func])); in sdstd_card_enablefuncs()
1929 sdstd_card_regread(sdioh_info_t *sd, int func, uint32 regaddr, int regsize, uint32 *data) in sdstd_card_regread() argument
1938 if ((func == 0) || (regsize == 1)) { in sdstd_card_regread()
1939 cmd_arg = SFIELD(cmd_arg, CMD52_FUNCTION, func); in sdstd_card_regread()
1957 __FUNCTION__, GFIELD(rsp5, RSP5_FLAGS), func)); in sdstd_card_regread()
1967 cmd_arg = SFIELD(cmd_arg, CMD53_FUNCTION, func); in sdstd_card_regread()
1984 __FUNCTION__, GFIELD(rsp5, RSP5_FLAGS), func)); in sdstd_card_regread()
2105 sdstd_card_regwrite(sdioh_info_t *sd, int func, uint32 regaddr, int regsize, uint32 data) in sdstd_card_regwrite() argument
2112 if ((func == 0) || (regsize == 1)) { in sdstd_card_regwrite()
2113 cmd_arg = SFIELD(cmd_arg, CMD52_FUNCTION, func); in sdstd_card_regwrite()
2132 cmd_arg = SFIELD(cmd_arg, CMD53_FUNCTION, func); in sdstd_card_regwrite()
2346 int func; in sdstd_cmd_issue() local
2360 func = GFIELD(cmd_arg, CMD53_FUNCTION); in sdstd_cmd_issue()
2362 sdioh_info->client_block_size[func]); in sdstd_cmd_issue()
2372 if (sdioh_info->client_block_size[func] != blocksize) in sdstd_cmd_issue()
2513 sdstd_card_buf(sdioh_info_t *sd, int rw, int func, bool fifo, uint32 addr, int nbytes, uint32 *data) in sdstd_card_buf() argument
2538 if (nbytes < sd->client_block_size[func]) { in sdstd_card_buf()
2540 nbytes, sd->client_block_size[func])); in sdstd_card_buf()
2546 blocksize = MIN(sd->client_block_size[func], nbytes); in sdstd_card_buf()
2567 cmd_arg = SFIELD(cmd_arg, CMD53_FUNCTION, func); in sdstd_card_buf()
2747 set_client_block_size(sdioh_info_t *sd, int func, int block_size) in set_client_block_size() argument
2753 sd_err(("%s: Setting block size %d, func %d\n", __FUNCTION__, block_size, func)); in set_client_block_size()
2754 sd->client_block_size[func] = block_size; in set_client_block_size()
2757 base = func * SDIOD_FBR_SIZE; in set_client_block_size()