Lines Matching refs:sdioh_info_t

60 extern void spi_sendrecv(sdioh_info_t *sd, uint8 *msg_out, uint8 *msg_in, int msglen);
120 static bool bcmspi_test_card(sdioh_info_t *sd);
121 static bool bcmspi_host_device_init_adapt(sdioh_info_t *sd);
122 static int bcmspi_set_highspeed_mode(sdioh_info_t *sd, bool hsmode);
123 static int bcmspi_cmd_issue(sdioh_info_t *sd, bool use_dma, uint32 cmd_arg,
125 static int bcmspi_card_regread(sdioh_info_t *sd, int func, uint32 regaddr,
127 static int bcmspi_card_regwrite(sdioh_info_t *sd, int func, uint32 regaddr,
129 static int bcmspi_card_bytewrite(sdioh_info_t *sd, int func, uint32 regaddr,
131 static int bcmspi_driver_init(sdioh_info_t *sd);
132 static int bcmspi_card_buf(sdioh_info_t *sd, int rw, int func, bool fifo,
134 static int bcmspi_card_regread_fixedaddr(sdioh_info_t *sd, int func, uint32 regaddr, int regsize,
136 static void bcmspi_cmd_getdstatus(sdioh_info_t *sd, uint32 *dstatus_buffer);
137 static int bcmspi_update_stats(sdioh_info_t *sd, uint32 cmd_arg);
142 extern sdioh_info_t *
145 sdioh_info_t *sd; in sdioh_attach()
148 if ((sd = (sdioh_info_t *)MALLOC(osh, sizeof(sdioh_info_t))) == NULL) { in sdioh_attach()
152 bzero((char *)sd, sizeof(sdioh_info_t)); in sdioh_attach()
156 MFREE(sd->osh, sd, sizeof(sdioh_info_t)); in sdioh_attach()
187 MFREE(sd->osh, sd, sizeof(sdioh_info_t)); in sdioh_attach()
198 MFREE(sd->osh, sd, sizeof(sdioh_info_t)); in sdioh_attach()
208 MFREE(sd->osh, sd, sizeof(sdioh_info_t)); in sdioh_attach()
218 sdioh_detach(osl_t *osh, sdioh_info_t *sd) in sdioh_detach()
231 MFREE(sd->osh, sd, sizeof(sdioh_info_t)); in sdioh_detach()
238 sdioh_interrupt_register(sdioh_info_t *sd, sdioh_cb_fn_t fn, void *argh) in sdioh_interrupt_register()
250 sdioh_interrupt_deregister(sdioh_info_t *sd) in sdioh_interrupt_deregister()
262 sdioh_interrupt_query(sdioh_info_t *sd, bool *onoff) in sdioh_interrupt_query()
273 sdioh_interrupt_pending(sdioh_info_t *sd) in sdioh_interrupt_pending()
281 sdioh_get_dstatus(sdioh_info_t *sd) in sdioh_get_dstatus()
287 sdioh_chipinfo(sdioh_info_t *sd, uint32 chip, uint32 chiprev) in sdioh_chipinfo()
294 sdioh_dwordmode(sdioh_info_t *sd, bool set) in sdioh_dwordmode()
323 sdioh_query_iofnum(sdioh_info_t *sd) in sdioh_query_iofnum()
372 sdioh_iovar_op(sdioh_info_t *si, const char *name, in sdioh_iovar_op()
620 sdioh_cfg_read(sdioh_info_t *sd, uint fnc_num, uint32 addr, uint8 *data) in sdioh_cfg_read()
629 sdioh_cfg_write(sdioh_info_t *sd, uint fnc_num, uint32 addr, uint8 *data) in sdioh_cfg_write()
651 sdioh_cis_read(sdioh_info_t *sd, uint func, uint8 *cisd, uint32 length) in sdioh_cis_read()
704 sdioh_request_byte(sdioh_info_t *sd, uint rw, uint func, uint regaddr, uint8 *byte) in sdioh_request_byte()
747 sdioh_request_word(sdioh_info_t *sd, uint cmd_type, uint rw, uint func, uint addr, in sdioh_request_word()
764 sdioh_request_buffer(sdioh_info_t *sd, uint pio_dma, uint fix_inc, uint rw, uint func, in sdioh_request_buffer()
805 bcmspi_card_byterewrite(sdioh_info_t *sd, int func, uint32 regaddr, uint8 byte) in bcmspi_card_byterewrite()
881 bcmspi_prog_resp_delay(sdioh_info_t *sd, int func, uint8 resp_delay) in bcmspi_prog_resp_delay()
908 bcmspi_resync_f1(sdioh_info_t *sd) in bcmspi_resync_f1()
953 bcmspi_update_stats(sdioh_info_t *sd, uint32 cmd_arg) in bcmspi_update_stats()
1024 sdioh_abort(sdioh_info_t *sd, uint func) in sdioh_abort()
1030 sdioh_start(sdioh_info_t *sd, int stage) in sdioh_start()
1036 sdioh_stop(sdioh_info_t *sd) in sdioh_stop()
1042 sdioh_waitlockfree(sdioh_info_t *sd) in sdioh_waitlockfree()
1049 sdioh_test_diag(sdioh_info_t *sd) in sdioh_test_diag()
1060 bcmspi_host_init(sdioh_info_t *sd) in bcmspi_host_init()
1074 get_client_blocksize(sdioh_info_t *sd) in get_client_blocksize()
1104 bcmspi_client_init(sdioh_info_t *sd) in bcmspi_client_init()
1237 bcmspi_set_highspeed_mode(sdioh_info_t *sd, bool hsmode) in bcmspi_set_highspeed_mode()
1306 bcmspi_host_device_init_adapt(sdioh_info_t *sd) in bcmspi_host_device_init_adapt()
1440 bcmspi_test_card(sdioh_info_t *sd) in bcmspi_test_card()
1492 bcmspi_driver_init(sdioh_info_t *sd) in bcmspi_driver_init()
1508 bcmspi_card_regread(sdioh_info_t *sd, int func, uint32 regaddr, int regsize, uint32 *data) in bcmspi_card_regread()
1539 bcmspi_card_regread_fixedaddr(sdioh_info_t *sd, int func, uint32 regaddr, int regsize, uint32 *data) in bcmspi_card_regread_fixedaddr()
1573 bcmspi_card_regwrite(sdioh_info_t *sd, int func, uint32 regaddr, int regsize, uint32 data) in bcmspi_card_regwrite()
1603 bcmspi_card_bytewrite(sdioh_info_t *sd, int func, uint32 regaddr, uint8 *byte) in bcmspi_card_bytewrite()
1631 bcmspi_cmd_getdstatus(sdioh_info_t *sd, uint32 *dstatus_buffer) in bcmspi_cmd_getdstatus()
1638 bcmspi_cmd_issue(sdioh_info_t *sd, bool use_dma, uint32 cmd_arg, in bcmspi_cmd_issue()
1785 bcmspi_card_buf(sdioh_info_t *sd, int rw, int func, bool fifo, in bcmspi_card_buf()
1894 sdioh_sdio_reset(sdioh_info_t *si) in sdioh_sdio_reset()
1901 sdioh_gpioouten(sdioh_info_t *sd, uint32 gpio) in sdioh_gpioouten()
1907 sdioh_gpioout(sdioh_info_t *sd, uint32 gpio, bool enab) in sdioh_gpioout()
1913 sdioh_gpioin(sdioh_info_t *sd, uint32 gpio) in sdioh_gpioin()
1919 sdioh_gpio_init(sdioh_info_t *sd) in sdioh_gpio_init()