/linux-3.3/drivers/mtd/nand/ |
D | nand_base.c | 7 * Basic support for AG-AND chips is provided. 10 * http://www.linux-mtd.infradead.org/doc/nand.html 13 * 2002-2006 Thomas Gleixner (tglx@linutronix.de) 23 * Check, if mtd->ecctype should be set to MTD_ECC_HW 25 * The AG-AND chips have nice features for speed improvement, 27 * BBT table is not serialized, has to be fixed 96 static int nand_get_device(struct nand_chip *chip, struct mtd_info *mtd, 99 static int nand_do_write_oob(struct mtd_info *mtd, loff_t to, 111 struct nand_chip *chip = mtd->priv; in check_offs_len() local 115 if (ofs & ((1 << chip->phys_erase_shift) - 1)) { in check_offs_len() [all …]
|
/linux-3.3/sound/pci/cs46xx/ |
D | cs46xx_lib.c | 3 * Abramo Bagnara <abramo@alsa-project.org> 8 * - Sometimes the SPDIF input DSP tasks get's unsynchronized 10 * are swapped. To get around this problem when it happens, mute and unmute 12 * - On the Hercules Game Theater XP the amplifier are sometimes turned 16 * - Secondary CODEC on some soundcards 17 * - SPDIF input support for other sample rates then 48khz 18 * - Posibility to mix the SPDIF output with analog sources. 19 * - PCM channels for Center and LFE on secondary codec 23 * multi channel PCM. But known to work. 25 * FINALLY: A credit to the developers Tom and Jordan [all …]
|
/linux-3.3/sound/pci/echoaudio/ |
D | echoaudio_3g.c | 3 Copyright Echo Digital Audio Corporation (c) 1998 - 2004 20 along with this program; if not, write to the Free Software 21 Foundation, Inc., 59 Temple Place - Suite 330, Boston, 22 MA 02111-1307, USA. 26 Translation from C++ and adaptation for use in ALSA-Driver 36 static int check_asic_status(struct echoaudio *chip) in check_asic_status() argument 40 if (wait_handshake(chip)) in check_asic_status() 41 return -EIO; in check_asic_status() 43 chip->comm_page->ext_box_status = cpu_to_le32(E3G_ASIC_NOT_LOADED); in check_asic_status() 44 chip->asic_loaded = FALSE; in check_asic_status() [all …]
|
D | echoaudio_dsp.c | 3 Copyright Echo Digital Audio Corporation (c) 1998 - 2004 20 along with this program; if not, write to the Free Software 21 Foundation, Inc., 59 Temple Place - Suite 330, Boston, 22 MA 02111-1307, USA. 26 Translation from C++ and adaptation for use in ALSA-Driver 35 static int restore_dsp_rettings(struct echoaudio *chip); 38 /* Some vector commands involve the DSP reading or writing data to and from the 39 comm page; if you send one of these commands to the DSP, it will complete the 40 command and then write a non-zero value to the Handshake field in the 41 comm page. This function waits for the handshake to show up. */ [all …]
|
D | layla24_dsp.c | 3 Copyright Echo Digital Audio Corporation (c) 1998 - 2004 19 along with this program; if not, write to the Free Software 20 Foundation, Inc., 59 Temple Place - Suite 330, Boston, 21 MA 02111-1307, USA. 25 Translation from C++ and adaptation for use in ALSA-Driver 31 static int write_control_reg(struct echoaudio *chip, u32 value, char force); 32 static int set_input_clock(struct echoaudio *chip, u16 clock); 33 static int set_professional_spdif(struct echoaudio *chip, char prof); 34 static int set_digital_mode(struct echoaudio *chip, u8 mode); 35 static int load_asic_generic(struct echoaudio *chip, u32 cmd, short asic); [all …]
|
D | mona_dsp.c | 3 Copyright Echo Digital Audio Corporation (c) 1998 - 2004 20 along with this program; if not, write to the Free Software 21 Foundation, Inc., 59 Temple Place - Suite 330, Boston, 22 MA 02111-1307, USA. 26 Translation from C++ and adaptation for use in ALSA-Driver 32 static int write_control_reg(struct echoaudio *chip, u32 value, char force); 33 static int set_input_clock(struct echoaudio *chip, u16 clock); 34 static int set_professional_spdif(struct echoaudio *chip, char prof); 35 static int set_digital_mode(struct echoaudio *chip, u8 mode); 36 static int load_asic_generic(struct echoaudio *chip, u32 cmd, short asic); [all …]
|
D | layla20_dsp.c | 3 Copyright Echo Digital Audio Corporation (c) 1998 - 2004 20 along with this program; if not, write to the Free Software 21 Foundation, Inc., 59 Temple Place - Suite 330, Boston, 22 MA 02111-1307, USA. 26 Translation from C++ and adaptation for use in ALSA-Driver 32 static int read_dsp(struct echoaudio *chip, u32 *data); 33 static int set_professional_spdif(struct echoaudio *chip, char prof); 34 static int load_asic_generic(struct echoaudio *chip, u32 cmd, short asic); 35 static int check_asic_status(struct echoaudio *chip); 36 static int update_flags(struct echoaudio *chip); [all …]
|
D | gina24_dsp.c | 3 Copyright Echo Digital Audio Corporation (c) 1998 - 2004 20 along with this program; if not, write to the Free Software 21 Foundation, Inc., 59 Temple Place - Suite 330, Boston, 22 MA 02111-1307, USA. 26 Translation from C++ and adaptation for use in ALSA-Driver 32 static int write_control_reg(struct echoaudio *chip, u32 value, char force); 33 static int set_input_clock(struct echoaudio *chip, u16 clock); 34 static int set_professional_spdif(struct echoaudio *chip, char prof); 35 static int set_digital_mode(struct echoaudio *chip, u8 mode); 36 static int load_asic_generic(struct echoaudio *chip, u32 cmd, short asic); [all …]
|
/linux-3.3/drivers/staging/rts5139/ |
D | ms_mg.c | 41 int mg_check_int_error(struct rts51x_chip *chip) in mg_check_int_error() argument 45 rts51x_read_register(chip, MS_TRANS_CFG, &value); in mg_check_int_error() 47 TRACE_RET(chip, STATUS_FAIL); in mg_check_int_error() 52 static int mg_send_ex_cmd(struct rts51x_chip *chip, u8 cmd, u8 entry_num) in mg_send_ex_cmd() argument 68 ms_write_bytes(chip, PRO_EX_SET_CMD, 7, WAIT_INT, data, 8); in mg_send_ex_cmd() 73 TRACE_RET(chip, STATUS_FAIL); in mg_send_ex_cmd() 74 retval = mg_check_int_error(chip); in mg_send_ex_cmd() 76 TRACE_RET(chip, STATUS_FAIL); in mg_send_ex_cmd() 81 int mg_set_tpc_para_sub(struct rts51x_chip *chip, int type, u8 mg_entry_num) in mg_set_tpc_para_sub() argument 86 RTS51X_DEBUGP("--%s--\n", __func__); in mg_set_tpc_para_sub() [all …]
|
D | rts51x_card.c | 45 void do_remaining_work(struct rts51x_chip *chip) in do_remaining_work() argument 47 struct sd_info *sd_card = &(chip->sd_card); in do_remaining_work() 48 struct xd_info *xd_card = &(chip->xd_card); in do_remaining_work() 49 struct ms_info *ms_card = &(chip->ms_card); in do_remaining_work() 51 if (chip->card_ready & SD_CARD) { in do_remaining_work() 52 if (sd_card->seq_mode) { in do_remaining_work() 53 RTS51X_SET_STAT(chip, STAT_RUN); in do_remaining_work() 54 sd_card->counter++; in do_remaining_work() 56 sd_card->counter = 0; in do_remaining_work() 60 if (chip->card_ready & XD_CARD) { in do_remaining_work() [all …]
|
D | rts51x.c | 62 MODULE_PARM_DESC(delay_use, "seconds to delay before using a new device"); 76 "seconds to delay before entering selective suspend"); 93 * usb class driver info in order to get a minor number from the usb core, 94 * and to have the device registered with the driver core 107 atomic_set(&intf->pm_usage_cnt, 1); in usb_autopm_enable() 113 atomic_set(&intf->pm_usage_cnt, 0); in usb_autopm_disable() 117 void rts51x_try_to_enter_ss(struct rts51x_chip *chip) in rts51x_try_to_enter_ss() argument 119 RTS51X_DEBUGP("Ready to enter SS state\n"); in rts51x_try_to_enter_ss() 120 usb_autopm_enable(chip->usb->pusb_intf); in rts51x_try_to_enter_ss() 123 void rts51x_try_to_exit_ss(struct rts51x_chip *chip) in rts51x_try_to_exit_ss() argument [all …]
|
/linux-3.3/sound/ppc/ |
D | pmac.c | 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 30 #include <linux/dma-mapping.h> 35 #include <asm/pci-bridge.h> 49 * we will allocate a single 'emergency' dbdma cmd block to use if the 51 * clones, either owing to a bug in dbdma or some interaction between 62 static int snd_pmac_dbdma_alloc(struct snd_pmac *chip, struct pmac_dbdma *rec, int size) in snd_pmac_dbdma_alloc() argument 66 rec->space = dma_alloc_coherent(&chip->pdev->dev, rsize, in snd_pmac_dbdma_alloc() 67 &rec->dma_base, GFP_KERNEL); in snd_pmac_dbdma_alloc() 68 if (rec->space == NULL) in snd_pmac_dbdma_alloc() [all …]
|
/linux-3.3/sound/pcmcia/vx/ |
D | vxp_ops.c | 19 * along with this program; if not, write to the Free Software 20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 53 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip; in vxp_reg_addr() local 54 return chip->port + vxp_reg_offset[reg]; in vxp_reg_addr() 58 * snd_vx_inb - read a byte from the register 61 static unsigned char vxp_inb(struct vx_core *chip, int offset) in vxp_inb() argument 63 return inb(vxp_reg_addr(chip, offset)); in vxp_inb() 67 * snd_vx_outb - write a byte on the register 69 * @val: the value to write 71 static void vxp_outb(struct vx_core *chip, int offset, unsigned char val) in vxp_outb() argument [all …]
|
/linux-3.3/drivers/staging/rts_pstor/ |
D | rtsx_card.c | 1 /* Driver for Realtek PCI-Express card reader 41 void do_remaining_work(struct rtsx_chip *chip) in do_remaining_work() argument 43 struct sd_info *sd_card = &(chip->sd_card); in do_remaining_work() 45 struct xd_info *xd_card = &(chip->xd_card); in do_remaining_work() 47 struct ms_info *ms_card = &(chip->ms_card); in do_remaining_work() 49 if (chip->card_ready & SD_CARD) { in do_remaining_work() 50 if (sd_card->seq_mode) { in do_remaining_work() 51 rtsx_set_stat(chip, RTSX_STAT_RUN); in do_remaining_work() 52 sd_card->cleanup_counter++; in do_remaining_work() 54 sd_card->cleanup_counter = 0; in do_remaining_work() [all …]
|
D | rtsx.c | 1 /* Driver for Realtek PCI-Express card reader 41 MODULE_DESCRIPTION("Realtek PCI-Express card reader driver"); 47 MODULE_PARM_DESC(delay_use, "seconds to delay before using a new device"); 55 MODULE_PARM_DESC(ss_interval, "Interval to enter ss state in seconds"); 77 return "SCSI emulation for PCI-Express Mass Storage devices"; in host_info() 83 * Set the INQUIRY transfer length to 36. We don't use any of in slave_alloc() 87 sdev->inquiry_len = 36; in slave_alloc() 93 /* Scatter-gather buffers (all but the last) must have a length in slave_configure() 95 * would end up being short, causing a premature end to the data in slave_configure() 96 * transfer. Since high-speed bulk pipes have a maxpacket size in slave_configure() [all …]
|
/linux-3.3/drivers/gpio/ |
D | gpio-pch.c | 14 * along with this program; if not, write to the Free Software 15 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. 52 OKISEMI_ML7223m_IOH, /* LAPIS Semiconductor ML7223 IOH PCIe Bus-m */ 53 OKISEMI_ML7223n_IOH /* LAPIS Semiconductor ML7223 IOH PCIe Bus-n */ 64 * struct pch_gpio_reg_data - The register store data. 65 * @ien_reg: To store contents of IEN register. 66 * @imask_reg: To store contents of IMASK register. 67 * @po_reg: To store contents of PO register. 68 * @pm_reg: To store contents of PM register. 69 * @im0_reg: To store contents of IM0 register. [all …]
|
D | gpio-ml-ioh.c | 14 * along with this program; if not, write to the Free Software 15 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. 60 * struct ioh_gpio_reg_data - The register store data. 61 * @ien_reg To store contents of interrupt enable register. 62 * @imask_reg: To store contents of interrupt mask regist 63 * @po_reg: To store contents of PO register. 64 * @pm_reg: To store contents of PM register. 65 * @im0_reg: To store contents of interrupt mode regist0 66 * @im1_reg: To store contents of interrupt mode regist1 67 * @use_sel_reg: To store contents of GPIO_USE_SEL0~3 [all …]
|
/linux-3.3/sound/pci/oxygen/ |
D | oxygen_lib.c | 2 * C-Media CMI8788 driver - main driver module 16 * along with this driver; if not, write to the Free Software 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 36 MODULE_DESCRIPTION("C-Media CMI8788 helper library"); 41 static inline int oxygen_uart_input_ready(struct oxygen *chip) in oxygen_uart_input_ready() argument 43 return !(oxygen_read8(chip, OXYGEN_MPU401 + 1) & MPU401_RX_EMPTY); in oxygen_uart_input_ready() 46 static void oxygen_read_uart(struct oxygen *chip) in oxygen_read_uart() argument 48 if (unlikely(!oxygen_uart_input_ready(chip))) { in oxygen_read_uart() 49 /* no data, but read it anyway to clear the interrupt */ in oxygen_read_uart() 50 oxygen_read8(chip, OXYGEN_MPU401); in oxygen_read_uart() [all …]
|
D | xonar_pcm179x.c | 21 * ------------ 25 * SPI 0 -> 1st PCM1796 (front) 26 * SPI 1 -> 2nd PCM1796 (surround) 27 * SPI 2 -> 3rd PCM1796 (center/LFE) 28 * SPI 4 -> 4th PCM1796 (back) 30 * GPIO 2 -> M0 of CS5381 31 * GPIO 3 -> M1 of CS5381 32 * GPIO 5 <- external power present (D2X only) 33 * GPIO 7 -> ALT 34 * GPIO 8 -> enable output to speakers [all …]
|
D | oxygen_io.c | 2 * C-Media CMI8788 driver - helper functions 16 * along with this driver; if not, write to the Free Software 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 28 u8 oxygen_read8(struct oxygen *chip, unsigned int reg) in oxygen_read8() argument 30 return inb(chip->addr + reg); in oxygen_read8() 34 u16 oxygen_read16(struct oxygen *chip, unsigned int reg) in oxygen_read16() argument 36 return inw(chip->addr + reg); in oxygen_read16() 40 u32 oxygen_read32(struct oxygen *chip, unsigned int reg) in oxygen_read32() argument 42 return inl(chip->addr + reg); in oxygen_read32() 46 void oxygen_write8(struct oxygen *chip, unsigned int reg, u8 value) in oxygen_write8() argument [all …]
|
/linux-3.3/sound/pci/nm256/ |
D | nm256.c | 6 * The original author of OSS nm256 driver wishes to remain anonymous, 7 * so I just put my acknoledgment to him/her here. 23 * along with this program; if not, write to the Free Software 24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 76 MODULE_PARM_DESC(force_ac97, "Force to use AC97 codec for " CARD_NAME " soundcard."); 120 #define NM_ACK_INT(chip, X) snd_nm256_writew(chip, NM_INT_REG, (X) << 1) argument 137 #define NM2_ACK_INT(chip, X) snd_nm256_writel(chip, NM_INT_REG, (X)) argument 189 struct nm256 *chip; member 194 u32 buf; /* offset from chip->buffer */ 228 unsigned int reset_workaround: 1; /* Workaround for some laptops to avoid freeze */ [all …]
|
/linux-3.3/sound/drivers/vx/ |
D | vx_core.c | 19 * along with this program; if not, write to the Free Software 20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 44 * vx_check_reg_bit - wait for the specified bit is set/reset on a register 45 * @reg: register to check 47 * @bit: resultant bit to be checked 48 * @time: time-out of loop in msec 52 int snd_vx_check_reg_bit(struct vx_core *chip, int reg, int mask, int bit, int time) in snd_vx_check_reg_bit() argument 65 if ((snd_vx_inb(chip, reg) & mask) == bit) in snd_vx_check_reg_bit() 69 …eck_reg_bit: timeout, reg=%s, mask=0x%x, val=0x%x\n", reg_names[reg], mask, snd_vx_inb(chip, reg)); in snd_vx_check_reg_bit() 70 return -EIO; in snd_vx_check_reg_bit() [all …]
|
D | vx_pcm.c | 19 * along with this program; if not, write to the Free Software 20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 25 * IBL size, typically 126 samples. at each end of chunk, the end-of-buffer 29 * pipe->transferred is the counter of data which has been already transferred. 30 * if this counter reaches to the period size, snd_pcm_period_elapsed() will 34 * to get a low latency response, we'll check the capture streams at each 36 * data is accumulated to the period size, snd_pcm_period_elapsed() is 39 * the current point of read buffer is kept in pipe->hw_ptr. note that 44 * - linked trigger for full-duplex mode. 45 * - scheduled action on the stream. [all …]
|
/linux-3.3/drivers/char/tpm/ |
D | tpm.c | 10 * Maintained by: <tpmdd-devel@lists.sourceforge.net> 20 * Note, the TPM chip is not interrupt driven (only polling) 22 * calls to msleep. 52 * Bug workaround - some TPM's don't flush the most 54 * with an extend to the selected _unused_ non-volatile pcr. 59 "PCR to use for dummy writes to faciltate flush on suspend."); 67 * of time the chip could take to return the result. The ordinal 71 * from the chip during initialization with a call to tpm_get_timeouts. 336 struct tpm_chip *chip = (struct tpm_chip *) ptr; in user_reader_timeout() local 338 schedule_work(&chip->work); in user_reader_timeout() [all …]
|
/linux-3.3/sound/pci/ |
D | es1968.c | 8 * Rewritted from card-es1938.c source. 24 * along with this program; if not, write to the Free Software 25 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 32 * A working Maestro setup contains the Maestro chip wired to a 39 * to release docs on. Thankfully it isn't required on the Maestro 41 * encoding. The codecs are almost always AC-97 compliant codecs, 43 * part?) wired to them. The only real difference in the Maestro 50 * mixers in the codecs. There are 64 APUs. We assign 6 to each 55 * 3 basic functions. For playback we use them to convert PCM 57 * is handed to the codec. One APU for mono, and a pair for stereo. [all …]
|