Lines Matching refs:cosa_data
113 struct cosa_data *cosa; /* Pointer to the per-card structure */
144 struct cosa_data { struct
217 static struct cosa_data cosa_cards[MAX_CARDS];
276 static void cosa_kick(struct cosa_data *cosa);
323 static int cosa_start(struct cosa_data *cosa, int address);
324 static int cosa_reset(struct cosa_data *cosa);
325 static int cosa_download(struct cosa_data *cosa, void __user *a);
326 static int cosa_readmem(struct cosa_data *cosa, void __user *a);
329 static int download(struct cosa_data *cosa, const char __user *data, int addr, int len);
330 static int startmicrocode(struct cosa_data *cosa, int address);
331 static int readmem(struct cosa_data *cosa, char __user *data, int addr, int len);
332 static int cosa_reset_and_read_id(struct cosa_data *cosa, char *id);
335 static int get_wait_data(struct cosa_data *cosa);
336 static int put_wait_data(struct cosa_data *cosa, int data);
337 static int puthexnumber(struct cosa_data *cosa, int number);
338 static void put_driver_status(struct cosa_data *cosa);
339 static void put_driver_status_nolock(struct cosa_data *cosa);
346 static void debug_data_in(struct cosa_data *cosa, int data);
347 static void debug_data_out(struct cosa_data *cosa, int data);
348 static void debug_data_cmd(struct cosa_data *cosa, int data);
349 static void debug_status_in(struct cosa_data *cosa, int status);
350 static void debug_status_out(struct cosa_data *cosa, int status);
407 struct cosa_data *cosa; in cosa_exit()
443 struct cosa_data *cosa = cosa_cards+nr_cards; in cosa_probe()
446 memset(cosa, 0, sizeof(struct cosa_data)); in cosa_probe()
787 struct cosa_data *cosa = chan->cosa; in cosa_read()
861 struct cosa_data *cosa = chan->cosa; in cosa_write()
935 struct cosa_data *cosa; in cosa_open()
980 struct cosa_data *cosa; in cosa_release()
1010 static inline int cosa_reset(struct cosa_data *cosa) in cosa_reset()
1027 static inline int cosa_download(struct cosa_data *cosa, void __user *arg) in cosa_download()
1066 static inline int cosa_readmem(struct cosa_data *cosa, void __user *arg) in cosa_readmem()
1098 static inline int cosa_start(struct cosa_data *cosa, int address) in cosa_start()
1125 static inline int cosa_getidstr(struct cosa_data *cosa, char __user *string) in cosa_getidstr()
1134 static inline int cosa_gettype(struct cosa_data *cosa, char __user *string) in cosa_gettype()
1142 static int cosa_ioctl_common(struct cosa_data *cosa, in cosa_ioctl_common()
1202 struct cosa_data *cosa; in cosa_chardev_ioctl()
1221 struct cosa_data *cosa = chan->cosa; in cosa_enable_rx()
1229 struct cosa_data *cosa = chan->cosa; in cosa_disable_rx()
1243 struct cosa_data *cosa = chan->cosa; in cosa_start_tx()
1268 static void put_driver_status(struct cosa_data *cosa) in put_driver_status()
1303 static void put_driver_status_nolock(struct cosa_data *cosa) in put_driver_status_nolock()
1336 static void cosa_kick(struct cosa_data *cosa) in cosa_kick()
1398 static int download(struct cosa_data *cosa, const char __user *microcode, int length, int address) in download()
1443 static int startmicrocode(struct cosa_data *cosa, int address) in startmicrocode()
1472 static int readmem(struct cosa_data *cosa, char __user *microcode, int length, int address) in readmem()
1517 static int cosa_reset_and_read_id(struct cosa_data *cosa, char *idstring) in cosa_reset_and_read_id()
1564 static int get_wait_data(struct cosa_data *cosa) in get_wait_data()
1592 static int put_wait_data(struct cosa_data *cosa, int data) in put_wait_data()
1620 static int puthexnumber(struct cosa_data *cosa, int number) in puthexnumber()
1676 static inline void tx_interrupt(struct cosa_data *cosa, int status) in tx_interrupt()
1811 static inline void rx_interrupt(struct cosa_data *cosa, int status) in rx_interrupt()
1898 static inline void eot_interrupt(struct cosa_data *cosa, int status) in eot_interrupt()
1949 struct cosa_data *cosa = cosa_; in cosa_interrupt()
1996 static void debug_status_in(struct cosa_data *cosa, int status) in debug_status_in()
2022 static void debug_status_out(struct cosa_data *cosa, int status) in debug_status_out()
2035 static void debug_data_in(struct cosa_data *cosa, int data) in debug_data_in()
2040 static void debug_data_out(struct cosa_data *cosa, int data) in debug_data_out()
2045 static void debug_data_cmd(struct cosa_data *cosa, int data) in debug_data_cmd()