Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
crystalhd_hw.c File Reference
#include "crystalhd.h"
#include <linux/pci.h>
#include <linux/slab.h>
#include <linux/delay.h>

Go to the source code of this file.

Macros

#define crystalhd_hw_delete_ioq(adp, q)
 
#define crystalhd_hw_create_ioq(sts, hw, q, cb)
 

Functions

enum BC_STATUS crystalhd_download_fw (struct crystalhd_adp *adp, void *buffer, uint32_t sz)
 
enum BC_STATUS crystalhd_do_fw_cmd (struct crystalhd_hw *hw, struct BC_FW_CMD *fw_cmd)
 
bool crystalhd_hw_interrupt (struct crystalhd_adp *adp, struct crystalhd_hw *hw)
 
enum BC_STATUS crystalhd_hw_open (struct crystalhd_hw *hw, struct crystalhd_adp *adp)
 
enum BC_STATUS crystalhd_hw_close (struct crystalhd_hw *hw)
 
enum BC_STATUS crystalhd_hw_setup_dma_rings (struct crystalhd_hw *hw)
 
enum BC_STATUS crystalhd_hw_free_dma_rings (struct crystalhd_hw *hw)
 
enum BC_STATUS crystalhd_hw_post_tx (struct crystalhd_hw *hw, struct crystalhd_dio_req *ioreq, hw_comp_callback call_back, wait_queue_head_t *cb_event, uint32_t *list_id, uint8_t data_flags)
 
enum BC_STATUS crystalhd_hw_cancel_tx (struct crystalhd_hw *hw, uint32_t list_id)
 
enum BC_STATUS crystalhd_hw_add_cap_buffer (struct crystalhd_hw *hw, struct crystalhd_dio_req *ioreq, bool en_post)
 
enum BC_STATUS crystalhd_hw_get_cap_buffer (struct crystalhd_hw *hw, struct BC_PIC_INFO_BLOCK *pib, struct crystalhd_dio_req **ioreq)
 
enum BC_STATUS crystalhd_hw_start_capture (struct crystalhd_hw *hw)
 
enum BC_STATUS crystalhd_hw_stop_capture (struct crystalhd_hw *hw)
 
enum BC_STATUS crystalhd_hw_pause (struct crystalhd_hw *hw)
 
enum BC_STATUS crystalhd_hw_unpause (struct crystalhd_hw *hw)
 
enum BC_STATUS crystalhd_hw_suspend (struct crystalhd_hw *hw)
 
void crystalhd_hw_stats (struct crystalhd_hw *hw, struct crystalhd_hw_stats *stats)
 
enum BC_STATUS crystalhd_hw_set_core_clock (struct crystalhd_hw *hw)
 

Macro Definition Documentation

#define crystalhd_hw_create_ioq (   sts,
  hw,
  q,
  cb 
)
Value:
do { \
sts = crystalhd_create_dioq(hw->adp, &q, cb, hw); \
if (sts != BC_STS_SUCCESS) \
goto hw_create_ioq_err; \
} while (0)

Definition at line 444 of file crystalhd_hw.c.

#define crystalhd_hw_delete_ioq (   adp,
  q 
)
Value:
if (q) { \
crystalhd_delete_dioq(adp, q); \
q = NULL; \
}

Definition at line 425 of file crystalhd_hw.c.

Function Documentation

enum BC_STATUS crystalhd_do_fw_cmd ( struct crystalhd_hw hw,
struct BC_FW_CMD fw_cmd 
)

Definition at line 1716 of file crystalhd_hw.c.

enum BC_STATUS crystalhd_download_fw ( struct crystalhd_adp adp,
void buffer,
uint32_t  sz 
)

Definition at line 1625 of file crystalhd_hw.c.

enum BC_STATUS crystalhd_hw_add_cap_buffer ( struct crystalhd_hw hw,
struct crystalhd_dio_req ioreq,
bool  en_post 
)

Definition at line 2136 of file crystalhd_hw.c.

enum BC_STATUS crystalhd_hw_cancel_tx ( struct crystalhd_hw hw,
uint32_t  list_id 
)

Definition at line 2123 of file crystalhd_hw.c.

enum BC_STATUS crystalhd_hw_close ( struct crystalhd_hw hw)

Definition at line 1887 of file crystalhd_hw.c.

enum BC_STATUS crystalhd_hw_free_dma_rings ( struct crystalhd_hw hw)

Definition at line 1978 of file crystalhd_hw.c.

enum BC_STATUS crystalhd_hw_get_cap_buffer ( struct crystalhd_hw hw,
struct BC_PIC_INFO_BLOCK pib,
struct crystalhd_dio_req **  ioreq 
)

Definition at line 2176 of file crystalhd_hw.c.

bool crystalhd_hw_interrupt ( struct crystalhd_adp adp,
struct crystalhd_hw hw 
)

Definition at line 1796 of file crystalhd_hw.c.

enum BC_STATUS crystalhd_hw_open ( struct crystalhd_hw hw,
struct crystalhd_adp adp 
)

Definition at line 1855 of file crystalhd_hw.c.

enum BC_STATUS crystalhd_hw_pause ( struct crystalhd_hw hw)

Definition at line 2257 of file crystalhd_hw.c.

enum BC_STATUS crystalhd_hw_post_tx ( struct crystalhd_hw hw,
struct crystalhd_dio_req ioreq,
hw_comp_callback  call_back,
wait_queue_head_t cb_event,
uint32_t list_id,
uint8_t  data_flags 
)

Definition at line 2016 of file crystalhd_hw.c.

enum BC_STATUS crystalhd_hw_set_core_clock ( struct crystalhd_hw hw)

Definition at line 2326 of file crystalhd_hw.c.

enum BC_STATUS crystalhd_hw_setup_dma_rings ( struct crystalhd_hw hw)

Definition at line 1904 of file crystalhd_hw.c.

enum BC_STATUS crystalhd_hw_start_capture ( struct crystalhd_hw hw)

Definition at line 2212 of file crystalhd_hw.c.

Definition at line 2308 of file crystalhd_hw.c.

enum BC_STATUS crystalhd_hw_stop_capture ( struct crystalhd_hw hw)

Definition at line 2237 of file crystalhd_hw.c.

enum BC_STATUS crystalhd_hw_suspend ( struct crystalhd_hw hw)

Definition at line 2285 of file crystalhd_hw.c.

enum BC_STATUS crystalhd_hw_unpause ( struct crystalhd_hw hw)

Definition at line 2269 of file crystalhd_hw.c.