card 14 arch/arm/mach-omap2/hsmmc.h void (*init_card)(struct mmc_card *card); card 456 arch/ia64/include/asm/sal.h card : 1, card 475 arch/ia64/include/asm/sal.h u16 card; card 68 arch/s390/include/uapi/asm/pkey.h __u16 card; card 873 arch/sh/boards/mach-ecovec24/setup.c .card = "FSIB-DA7210", card 304 arch/sh/boards/mach-se/7724/setup.c .card = "FSIA-AK4642", card 33 arch/x86/boot/video-mode.c struct card_info *card; card 41 arch/x86/boot/video-mode.c for (card = video_cards; card < video_cards_end; card++) { card 42 arch/x86/boot/video-mode.c if (card->unsafe == unsafe) { card 43 arch/x86/boot/video-mode.c if (card->probe) card 44 arch/x86/boot/video-mode.c card->nmodes = card->probe(); card 46 arch/x86/boot/video-mode.c card->nmodes = 0; card 54 arch/x86/boot/video-mode.c struct card_info *card; card 58 arch/x86/boot/video-mode.c for (card = video_cards; card < video_cards_end; card++) { card 59 arch/x86/boot/video-mode.c mi = card->modes; card 60 arch/x86/boot/video-mode.c for (i = 0; i < card->nmodes; i++, mi++) { card 73 arch/x86/boot/video-mode.c struct card_info *card; card 81 arch/x86/boot/video-mode.c for (card = video_cards; card < video_cards_end; card++) { card 82 arch/x86/boot/video-mode.c mi = card->modes; card 83 arch/x86/boot/video-mode.c for (i = 0; i < card->nmodes; i++, mi++) { card 90 arch/x86/boot/video-mode.c return card->set_mode(mi); card 99 arch/x86/boot/video-mode.c for (card = video_cards; card < video_cards_end; card++) { card 100 arch/x86/boot/video-mode.c if (mode >= card->xmode_first && card 101 arch/x86/boot/video-mode.c mode < card->xmode_first+card->xmode_n) { card 105 arch/x86/boot/video-mode.c return card->set_mode(&mix); card 139 arch/x86/boot/video.c struct card_info *card; card 148 arch/x86/boot/video.c for (card = video_cards; card < video_cards_end; card++) card 149 arch/x86/boot/video.c nmodes += card->nmodes; card 161 arch/x86/boot/video.c for (card = video_cards; card < video_cards_end; card++) { card 162 arch/x86/boot/video.c mi = card->modes; card 163 arch/x86/boot/video.c for (i = 0; i < card->nmodes; i++, mi++) { card 178 arch/x86/boot/video.c ch, mode_id, mi->x, resbuf, card->card_name); card 161 drivers/atm/idt77252.c waitfor_idle(struct idt77252_dev *card) card 171 drivers/atm/idt77252.c read_sram(struct idt77252_dev *card, unsigned long addr) card 176 drivers/atm/idt77252.c spin_lock_irqsave(&card->cmd_lock, flags); card 178 drivers/atm/idt77252.c waitfor_idle(card); card 180 drivers/atm/idt77252.c spin_unlock_irqrestore(&card->cmd_lock, flags); card 185 drivers/atm/idt77252.c write_sram(struct idt77252_dev *card, unsigned long addr, u32 value) card 190 drivers/atm/idt77252.c (((addr > card->tst[0] + card->tst_size - 2) && card 191 drivers/atm/idt77252.c (addr < card->tst[0] + card->tst_size)) || card 192 drivers/atm/idt77252.c ((addr > card->tst[1] + card->tst_size - 2) && card 193 drivers/atm/idt77252.c (addr < card->tst[1] + card->tst_size)))) { card 195 drivers/atm/idt77252.c card->name, addr, value); card 198 drivers/atm/idt77252.c spin_lock_irqsave(&card->cmd_lock, flags); card 201 drivers/atm/idt77252.c waitfor_idle(card); card 202 drivers/atm/idt77252.c spin_unlock_irqrestore(&card->cmd_lock, flags); card 208 drivers/atm/idt77252.c struct idt77252_dev *card = dev; card 212 drivers/atm/idt77252.c if (!card) { card 217 drivers/atm/idt77252.c spin_lock_irqsave(&card->cmd_lock, flags); card 219 drivers/atm/idt77252.c waitfor_idle(card); card 221 drivers/atm/idt77252.c spin_unlock_irqrestore(&card->cmd_lock, flags); card 228 drivers/atm/idt77252.c struct idt77252_dev *card = dev; card 231 drivers/atm/idt77252.c if (!card) { card 236 drivers/atm/idt77252.c spin_lock_irqsave(&card->cmd_lock, flags); card 239 drivers/atm/idt77252.c waitfor_idle(card); card 240 drivers/atm/idt77252.c spin_unlock_irqrestore(&card->cmd_lock, flags); card 350 drivers/atm/idt77252.c idt77252_read_gp(struct idt77252_dev *card) card 362 drivers/atm/idt77252.c idt77252_write_gp(struct idt77252_dev *card, u32 value) card 372 drivers/atm/idt77252.c spin_lock_irqsave(&card->cmd_lock, flags); card 373 drivers/atm/idt77252.c waitfor_idle(card); card 375 drivers/atm/idt77252.c spin_unlock_irqrestore(&card->cmd_lock, flags); card 379 drivers/atm/idt77252.c idt77252_eeprom_read_status(struct idt77252_dev *card) card 385 drivers/atm/idt77252.c gp = idt77252_read_gp(card) & ~(SAR_GP_EESCLK|SAR_GP_EECS|SAR_GP_EEDO); card 388 drivers/atm/idt77252.c idt77252_write_gp(card, gp | rdsrtab[i]); card 391 drivers/atm/idt77252.c idt77252_write_gp(card, gp | SAR_GP_EECS); card 398 drivers/atm/idt77252.c idt77252_write_gp(card, gp | clktab[j++]); card 401 drivers/atm/idt77252.c byte |= idt77252_read_gp(card) & SAR_GP_EEDI ? 1 : 0; card 403 drivers/atm/idt77252.c idt77252_write_gp(card, gp | clktab[j++]); card 406 drivers/atm/idt77252.c idt77252_write_gp(card, gp | SAR_GP_EECS); card 413 drivers/atm/idt77252.c idt77252_eeprom_read_byte(struct idt77252_dev *card, u8 offset) card 419 drivers/atm/idt77252.c gp = idt77252_read_gp(card) & ~(SAR_GP_EESCLK|SAR_GP_EECS|SAR_GP_EEDO); card 422 drivers/atm/idt77252.c idt77252_write_gp(card, gp | rdtab[i]); card 425 drivers/atm/idt77252.c idt77252_write_gp(card, gp | SAR_GP_EECS); card 429 drivers/atm/idt77252.c idt77252_write_gp(card, gp | clktab[j++] | card 433 drivers/atm/idt77252.c idt77252_write_gp(card, gp | clktab[j++] | card 439 drivers/atm/idt77252.c idt77252_write_gp(card, gp | SAR_GP_EECS); card 446 drivers/atm/idt77252.c idt77252_write_gp(card, gp | clktab[j++]); card 449 drivers/atm/idt77252.c byte |= idt77252_read_gp(card) & SAR_GP_EEDI ? 1 : 0; card 451 drivers/atm/idt77252.c idt77252_write_gp(card, gp | clktab[j++]); card 454 drivers/atm/idt77252.c idt77252_write_gp(card, gp | SAR_GP_EECS); card 461 drivers/atm/idt77252.c idt77252_eeprom_write_byte(struct idt77252_dev *card, u8 offset, u8 data) card 466 drivers/atm/idt77252.c gp = idt77252_read_gp(card) & ~(SAR_GP_EESCLK|SAR_GP_EECS|SAR_GP_EEDO); card 469 drivers/atm/idt77252.c idt77252_write_gp(card, gp | wrentab[i]); card 472 drivers/atm/idt77252.c idt77252_write_gp(card, gp | SAR_GP_EECS); card 476 drivers/atm/idt77252.c idt77252_write_gp(card, gp | wrtab[i]); card 479 drivers/atm/idt77252.c idt77252_write_gp(card, gp | SAR_GP_EECS); card 483 drivers/atm/idt77252.c idt77252_write_gp(card, gp | clktab[j++] | card 487 drivers/atm/idt77252.c idt77252_write_gp(card, gp | clktab[j++] | card 493 drivers/atm/idt77252.c idt77252_write_gp(card, gp | SAR_GP_EECS); card 497 drivers/atm/idt77252.c idt77252_write_gp(card, gp | clktab[j++] | card 501 drivers/atm/idt77252.c idt77252_write_gp(card, gp | clktab[j++] | card 507 drivers/atm/idt77252.c idt77252_write_gp(card, gp | SAR_GP_EECS); card 512 drivers/atm/idt77252.c idt77252_eeprom_init(struct idt77252_dev *card) card 516 drivers/atm/idt77252.c gp = idt77252_read_gp(card) & ~(SAR_GP_EESCLK|SAR_GP_EECS|SAR_GP_EEDO); card 518 drivers/atm/idt77252.c idt77252_write_gp(card, gp | SAR_GP_EECS | SAR_GP_EESCLK); card 520 drivers/atm/idt77252.c idt77252_write_gp(card, gp | SAR_GP_EECS); card 522 drivers/atm/idt77252.c idt77252_write_gp(card, gp | SAR_GP_EECS | SAR_GP_EESCLK); card 524 drivers/atm/idt77252.c idt77252_write_gp(card, gp | SAR_GP_EECS); card 532 drivers/atm/idt77252.c dump_tct(struct idt77252_dev *card, int index) card 537 drivers/atm/idt77252.c tct = (unsigned long) (card->tct_base + index * SAR_SRAM_TCT_SIZE); card 539 drivers/atm/idt77252.c printk("%s: TCT %x:", card->name, index); card 541 drivers/atm/idt77252.c printk(" %08x", read_sram(card, tct + i)); card 547 drivers/atm/idt77252.c idt77252_tx_dump(struct idt77252_dev *card) card 554 drivers/atm/idt77252.c for (i = 0; i < card->tct_size; i++) { card 555 drivers/atm/idt77252.c vc = card->vcs[i]; card 568 drivers/atm/idt77252.c printk("%s: Connection %d:\n", card->name, vc->index); card 569 drivers/atm/idt77252.c dump_tct(card, vc->index); card 582 drivers/atm/idt77252.c sb_pool_add(struct idt77252_dev *card, struct sk_buff *skb, int queue) card 584 drivers/atm/idt77252.c struct sb_pool *pool = &card->sbpool[queue]; card 602 drivers/atm/idt77252.c sb_pool_remove(struct idt77252_dev *card, struct sk_buff *skb) card 617 drivers/atm/idt77252.c card->sbpool[queue].skb[index] = NULL; card 621 drivers/atm/idt77252.c sb_pool_skb(struct idt77252_dev *card, u32 handle) card 633 drivers/atm/idt77252.c return card->sbpool[queue].skb[index]; card 637 drivers/atm/idt77252.c alloc_scq(struct idt77252_dev *card, int class) card 644 drivers/atm/idt77252.c scq->base = dma_alloc_coherent(&card->pcidev->dev, SCQ_SIZE, card 668 drivers/atm/idt77252.c free_scq(struct idt77252_dev *card, struct scq_info *scq) card 673 drivers/atm/idt77252.c dma_free_coherent(&card->pcidev->dev, SCQ_SIZE, card 677 drivers/atm/idt77252.c dma_unmap_single(&card->pcidev->dev, IDT77252_PRV_PADDR(skb), card 688 drivers/atm/idt77252.c dma_unmap_single(&card->pcidev->dev, IDT77252_PRV_PADDR(skb), card 703 drivers/atm/idt77252.c push_on_scq(struct idt77252_dev *card, struct vc_map *vc, struct sk_buff *skb) card 710 drivers/atm/idt77252.c TXPRINTK("%s: SCQ: next 0x%p\n", card->name, scq->next); card 756 drivers/atm/idt77252.c write_sram(card, scq->scd, card 771 drivers/atm/idt77252.c card->name, atomic_read(&scq->used), card 772 drivers/atm/idt77252.c read_sram(card, scq->scd + 1), scq->next); card 779 drivers/atm/idt77252.c card->name, vc->tx_vcc->vpi, vc->tx_vcc->vci); card 781 drivers/atm/idt77252.c idt77252_tx_dump(card); card 791 drivers/atm/idt77252.c drain_scq(struct idt77252_dev *card, struct vc_map *vc) card 798 drivers/atm/idt77252.c card->name, atomic_read(&scq->used), scq->next); card 802 drivers/atm/idt77252.c TXPRINTK("%s: freeing skb at %p.\n", card->name, skb); card 804 drivers/atm/idt77252.c dma_unmap_single(&card->pcidev->dev, IDT77252_PRV_PADDR(skb), card 821 drivers/atm/idt77252.c if (push_on_scq(card, vc, skb)) { card 830 drivers/atm/idt77252.c queue_skb(struct idt77252_dev *card, struct vc_map *vc, card 840 drivers/atm/idt77252.c printk("%s: invalid skb->len (%d)\n", card->name, skb->len); card 845 drivers/atm/idt77252.c card->name, skb->len); card 850 drivers/atm/idt77252.c IDT77252_PRV_PADDR(skb) = dma_map_single(&card->pcidev->dev, skb->data, card 866 drivers/atm/idt77252.c vc = card->vcs[0]; card 872 drivers/atm/idt77252.c printk("%s: Trying to transmit on reserved VC\n", card->name); card 908 drivers/atm/idt77252.c printk("%s: Traffic type not supported.\n", card->name); card 918 drivers/atm/idt77252.c if (push_on_scq(card, vc, skb)) { card 928 drivers/atm/idt77252.c dma_unmap_single(&card->pcidev->dev, IDT77252_PRV_PADDR(skb), card 934 drivers/atm/idt77252.c get_free_scd(struct idt77252_dev *card, struct vc_map *vc) card 938 drivers/atm/idt77252.c for (i = 0; i < card->scd_size; i++) { card 939 drivers/atm/idt77252.c if (!card->scd2vc[i]) { card 940 drivers/atm/idt77252.c card->scd2vc[i] = vc; card 942 drivers/atm/idt77252.c return card->scd_base + i * SAR_SRAM_SCD_SIZE; card 949 drivers/atm/idt77252.c fill_scd(struct idt77252_dev *card, struct scq_info *scq, int class) card 951 drivers/atm/idt77252.c write_sram(card, scq->scd, scq->paddr); card 952 drivers/atm/idt77252.c write_sram(card, scq->scd + 1, 0x00000000); card 953 drivers/atm/idt77252.c write_sram(card, scq->scd + 2, 0xffffffff); card 954 drivers/atm/idt77252.c write_sram(card, scq->scd + 3, 0x00000000); card 958 drivers/atm/idt77252.c clear_scd(struct idt77252_dev *card, struct scq_info *scq, int class) card 970 drivers/atm/idt77252.c init_rsq(struct idt77252_dev *card) card 974 drivers/atm/idt77252.c card->rsq.base = dma_alloc_coherent(&card->pcidev->dev, RSQSIZE, card 975 drivers/atm/idt77252.c &card->rsq.paddr, GFP_KERNEL); card 976 drivers/atm/idt77252.c if (card->rsq.base == NULL) { card 977 drivers/atm/idt77252.c printk("%s: can't allocate RSQ.\n", card->name); card 981 drivers/atm/idt77252.c card->rsq.last = card->rsq.base + RSQ_NUM_ENTRIES - 1; card 982 drivers/atm/idt77252.c card->rsq.next = card->rsq.last; card 983 drivers/atm/idt77252.c for (rsqe = card->rsq.base; rsqe <= card->rsq.last; rsqe++) card 986 drivers/atm/idt77252.c writel((unsigned long) card->rsq.last - (unsigned long) card->rsq.base, card 988 drivers/atm/idt77252.c writel(card->rsq.paddr, SAR_REG_RSQB); card 990 drivers/atm/idt77252.c IPRINTK("%s: RSQ base at 0x%lx (0x%x).\n", card->name, card 991 drivers/atm/idt77252.c (unsigned long) card->rsq.base, card 994 drivers/atm/idt77252.c card->name, card 1003 drivers/atm/idt77252.c deinit_rsq(struct idt77252_dev *card) card 1005 drivers/atm/idt77252.c dma_free_coherent(&card->pcidev->dev, RSQSIZE, card 1006 drivers/atm/idt77252.c card->rsq.base, card->rsq.paddr); card 1010 drivers/atm/idt77252.c dequeue_rx(struct idt77252_dev *card, struct rsq_entry *rsqe) card 1024 drivers/atm/idt77252.c card->name); card 1028 drivers/atm/idt77252.c skb = sb_pool_skb(card, le32_to_cpu(rsqe->word_2)); card 1031 drivers/atm/idt77252.c card->name, __func__, card 1042 drivers/atm/idt77252.c card->name, vpi, vci, skb, skb->data); card 1044 drivers/atm/idt77252.c if ((vpi >= (1 << card->vpibits)) || (vci != (vci & card->vcimask))) { card 1046 drivers/atm/idt77252.c card->name, vpi, vci); card 1047 drivers/atm/idt77252.c recycle_rx_skb(card, skb); card 1051 drivers/atm/idt77252.c vc = card->vcs[VPCI2VC(card, vpi, vci)]; card 1054 drivers/atm/idt77252.c card->name, vpi, vci); card 1055 drivers/atm/idt77252.c recycle_rx_skb(card, skb); card 1061 drivers/atm/idt77252.c dma_sync_single_for_cpu(&card->pcidev->dev, IDT77252_PRV_PADDR(skb), card 1075 drivers/atm/idt77252.c card->name); card 1081 drivers/atm/idt77252.c card->name); card 1103 drivers/atm/idt77252.c recycle_rx_skb(card, skb); card 1108 drivers/atm/idt77252.c card->name, vcc->qos.aal); card 1109 drivers/atm/idt77252.c recycle_rx_skb(card, skb); card 1128 drivers/atm/idt77252.c RXPRINTK("%s: PDU has %d bytes.\n", card->name, len); card 1133 drivers/atm/idt77252.c card->name, len, rpp->len, readl(SAR_REG_CDC)); card 1134 drivers/atm/idt77252.c recycle_rx_pool_skb(card, rpp); card 1139 drivers/atm/idt77252.c RXPRINTK("%s: AAL5 CRC error.\n", card->name); card 1140 drivers/atm/idt77252.c recycle_rx_pool_skb(card, rpp); card 1150 drivers/atm/idt77252.c card->name); card 1151 drivers/atm/idt77252.c recycle_rx_pool_skb(card, rpp); card 1156 drivers/atm/idt77252.c recycle_rx_pool_skb(card, rpp); card 1163 drivers/atm/idt77252.c recycle_rx_pool_skb(card, rpp); card 1175 drivers/atm/idt77252.c flush_rx_pool(card, rpp); card 1178 drivers/atm/idt77252.c recycle_rx_skb(card, skb); card 1182 drivers/atm/idt77252.c dma_unmap_single(&card->pcidev->dev, IDT77252_PRV_PADDR(skb), card 1185 drivers/atm/idt77252.c sb_pool_remove(card, skb); card 1195 drivers/atm/idt77252.c add_rx_skb(card, 3, SAR_FB_SIZE_3, 1); card 1197 drivers/atm/idt77252.c add_rx_skb(card, 2, SAR_FB_SIZE_2, 1); card 1199 drivers/atm/idt77252.c add_rx_skb(card, 1, SAR_FB_SIZE_1, 1); card 1201 drivers/atm/idt77252.c add_rx_skb(card, 0, SAR_FB_SIZE_0, 1); card 1207 drivers/atm/idt77252.c idt77252_rx(struct idt77252_dev *card) card 1211 drivers/atm/idt77252.c if (card->rsq.next == card->rsq.last) card 1212 drivers/atm/idt77252.c rsqe = card->rsq.base; card 1214 drivers/atm/idt77252.c rsqe = card->rsq.next + 1; card 1217 drivers/atm/idt77252.c RXPRINTK("%s: no entry in RSQ.\n", card->name); card 1222 drivers/atm/idt77252.c dequeue_rx(card, rsqe); card 1224 drivers/atm/idt77252.c card->rsq.next = rsqe; card 1225 drivers/atm/idt77252.c if (card->rsq.next == card->rsq.last) card 1226 drivers/atm/idt77252.c rsqe = card->rsq.base; card 1228 drivers/atm/idt77252.c rsqe = card->rsq.next + 1; card 1231 drivers/atm/idt77252.c writel((unsigned long) card->rsq.next - (unsigned long) card->rsq.base, card 1236 drivers/atm/idt77252.c idt77252_rx_raw(struct idt77252_dev *card) card 1244 drivers/atm/idt77252.c if (card->raw_cell_head == NULL) { card 1245 drivers/atm/idt77252.c u32 handle = le32_to_cpu(*(card->raw_cell_hnd + 1)); card 1246 drivers/atm/idt77252.c card->raw_cell_head = sb_pool_skb(card, handle); card 1249 drivers/atm/idt77252.c queue = card->raw_cell_head; card 1256 drivers/atm/idt77252.c dma_sync_single_for_cpu(&card->pcidev->dev, IDT77252_PRV_PADDR(queue), card 1274 drivers/atm/idt77252.c card->name, (header >> 28) & 0x000f, card 1285 drivers/atm/idt77252.c if (vpi >= (1<<card->vpibits) || vci >= (1<<card->vcibits)) { card 1287 drivers/atm/idt77252.c card->name, vpi, vci); card 1291 drivers/atm/idt77252.c vc = card->vcs[VPCI2VC(card, vpi, vci)]; card 1294 drivers/atm/idt77252.c card->name, vpi, vci); card 1302 drivers/atm/idt77252.c card->name, vpi, vci); card 1309 drivers/atm/idt77252.c card->name); card 1316 drivers/atm/idt77252.c card->name); card 1343 drivers/atm/idt77252.c next = sb_pool_skb(card, handle); card 1344 drivers/atm/idt77252.c recycle_rx_skb(card, queue); card 1347 drivers/atm/idt77252.c card->raw_cell_head = next; card 1348 drivers/atm/idt77252.c queue = card->raw_cell_head; card 1349 drivers/atm/idt77252.c dma_sync_single_for_cpu(&card->pcidev->dev, card 1355 drivers/atm/idt77252.c card->raw_cell_head = NULL; card 1357 drivers/atm/idt77252.c card->name); card 1372 drivers/atm/idt77252.c init_tsq(struct idt77252_dev *card) card 1376 drivers/atm/idt77252.c card->tsq.base = dma_alloc_coherent(&card->pcidev->dev, RSQSIZE, card 1377 drivers/atm/idt77252.c &card->tsq.paddr, GFP_KERNEL); card 1378 drivers/atm/idt77252.c if (card->tsq.base == NULL) { card 1379 drivers/atm/idt77252.c printk("%s: can't allocate TSQ.\n", card->name); card 1383 drivers/atm/idt77252.c card->tsq.last = card->tsq.base + TSQ_NUM_ENTRIES - 1; card 1384 drivers/atm/idt77252.c card->tsq.next = card->tsq.last; card 1385 drivers/atm/idt77252.c for (tsqe = card->tsq.base; tsqe <= card->tsq.last; tsqe++) card 1388 drivers/atm/idt77252.c writel(card->tsq.paddr, SAR_REG_TSQB); card 1389 drivers/atm/idt77252.c writel((unsigned long) card->tsq.next - (unsigned long) card->tsq.base, card 1396 drivers/atm/idt77252.c deinit_tsq(struct idt77252_dev *card) card 1398 drivers/atm/idt77252.c dma_free_coherent(&card->pcidev->dev, TSQSIZE, card 1399 drivers/atm/idt77252.c card->tsq.base, card->tsq.paddr); card 1403 drivers/atm/idt77252.c idt77252_tx(struct idt77252_dev *card) card 1410 drivers/atm/idt77252.c if (card->tsq.next == card->tsq.last) card 1411 drivers/atm/idt77252.c tsqe = card->tsq.base; card 1413 drivers/atm/idt77252.c tsqe = card->tsq.next + 1; card 1416 drivers/atm/idt77252.c card->tsq.base, card->tsq.next, card->tsq.last); card 1434 drivers/atm/idt77252.c TXPRINTK("%s: Timer RollOver detected.\n", card->name); card 1444 drivers/atm/idt77252.c card->name, card 1450 drivers/atm/idt77252.c vc = card->vcs[conn & 0x1fff]; card 1453 drivers/atm/idt77252.c card->name, conn & 0x1fff); card 1458 drivers/atm/idt77252.c card->name, vc->index); card 1467 drivers/atm/idt77252.c vc = card->vcs[conn & 0x1fff]; card 1470 drivers/atm/idt77252.c card->name, card 1475 drivers/atm/idt77252.c drain_scq(card, vc); card 1485 drivers/atm/idt77252.c if (vpi >= (1 << card->vpibits) || card 1486 drivers/atm/idt77252.c vci >= (1 << card->vcibits)) { card 1489 drivers/atm/idt77252.c card->name, vpi, vci); card 1493 drivers/atm/idt77252.c vc = card->vcs[VPCI2VC(card, vpi, vci)]; card 1497 drivers/atm/idt77252.c card->name, vpi, vci); card 1501 drivers/atm/idt77252.c drain_scq(card, vc); card 1507 drivers/atm/idt77252.c card->tsq.next = tsqe; card 1508 drivers/atm/idt77252.c if (card->tsq.next == card->tsq.last) card 1509 drivers/atm/idt77252.c tsqe = card->tsq.base; card 1511 drivers/atm/idt77252.c tsqe = card->tsq.next + 1; card 1514 drivers/atm/idt77252.c card->tsq.base, card->tsq.next, card->tsq.last); card 1520 drivers/atm/idt77252.c writel((unsigned long)card->tsq.next - (unsigned long)card->tsq.base, card 1524 drivers/atm/idt77252.c card->index, readl(SAR_REG_TSQH), card 1525 drivers/atm/idt77252.c readl(SAR_REG_TSQT), card->tsq.next); card 1532 drivers/atm/idt77252.c struct idt77252_dev *card = from_timer(card, t, tst_timer); card 1538 drivers/atm/idt77252.c spin_lock_irqsave(&card->tst_lock, flags); card 1540 drivers/atm/idt77252.c base = card->tst[card->tst_index]; card 1541 drivers/atm/idt77252.c idle = card->tst[card->tst_index ^ 1]; card 1543 drivers/atm/idt77252.c if (test_bit(TST_SWITCH_WAIT, &card->tst_state)) { card 1544 drivers/atm/idt77252.c jump = base + card->tst_size - 2; card 1547 drivers/atm/idt77252.c if ((pc ^ idle) & ~(card->tst_size - 1)) { card 1548 drivers/atm/idt77252.c mod_timer(&card->tst_timer, jiffies + 1); card 1552 drivers/atm/idt77252.c clear_bit(TST_SWITCH_WAIT, &card->tst_state); card 1554 drivers/atm/idt77252.c card->tst_index ^= 1; card 1555 drivers/atm/idt77252.c write_sram(card, jump, TSTE_OPC_JMP | (base << 2)); card 1557 drivers/atm/idt77252.c base = card->tst[card->tst_index]; card 1558 drivers/atm/idt77252.c idle = card->tst[card->tst_index ^ 1]; card 1560 drivers/atm/idt77252.c for (e = 0; e < card->tst_size - 2; e++) { card 1561 drivers/atm/idt77252.c if (card->soft_tst[e].tste & TSTE_PUSH_IDLE) { card 1562 drivers/atm/idt77252.c write_sram(card, idle + e, card 1563 drivers/atm/idt77252.c card->soft_tst[e].tste & TSTE_MASK); card 1564 drivers/atm/idt77252.c card->soft_tst[e].tste &= ~(TSTE_PUSH_IDLE); card 1569 drivers/atm/idt77252.c if (test_and_clear_bit(TST_SWITCH_PENDING, &card->tst_state)) { card 1571 drivers/atm/idt77252.c for (e = 0; e < card->tst_size - 2; e++) { card 1572 drivers/atm/idt77252.c if (card->soft_tst[e].tste & TSTE_PUSH_ACTIVE) { card 1573 drivers/atm/idt77252.c write_sram(card, idle + e, card 1574 drivers/atm/idt77252.c card->soft_tst[e].tste & TSTE_MASK); card 1575 drivers/atm/idt77252.c card->soft_tst[e].tste &= ~(TSTE_PUSH_ACTIVE); card 1576 drivers/atm/idt77252.c card->soft_tst[e].tste |= TSTE_PUSH_IDLE; card 1580 drivers/atm/idt77252.c jump = base + card->tst_size - 2; card 1582 drivers/atm/idt77252.c write_sram(card, jump, TSTE_OPC_NULL); card 1583 drivers/atm/idt77252.c set_bit(TST_SWITCH_WAIT, &card->tst_state); card 1585 drivers/atm/idt77252.c mod_timer(&card->tst_timer, jiffies + 1); card 1589 drivers/atm/idt77252.c spin_unlock_irqrestore(&card->tst_lock, flags); card 1593 drivers/atm/idt77252.c __fill_tst(struct idt77252_dev *card, struct vc_map *vc, card 1601 drivers/atm/idt77252.c avail = card->tst_size - 2; card 1603 drivers/atm/idt77252.c if (card->soft_tst[e].vc == NULL) card 1607 drivers/atm/idt77252.c printk("%s: No free TST entries found\n", card->name); card 1612 drivers/atm/idt77252.c card->name, vc ? vc->index : -1, e); card 1620 drivers/atm/idt77252.c idle = card->tst[card->tst_index ^ 1]; card 1626 drivers/atm/idt77252.c if ((cl >= avail) && (card->soft_tst[e].vc == NULL)) { card 1628 drivers/atm/idt77252.c card->soft_tst[e].vc = vc; card 1630 drivers/atm/idt77252.c card->soft_tst[e].vc = (void *)-1; card 1632 drivers/atm/idt77252.c card->soft_tst[e].tste = data; card 1633 drivers/atm/idt77252.c if (timer_pending(&card->tst_timer)) card 1634 drivers/atm/idt77252.c card->soft_tst[e].tste |= TSTE_PUSH_ACTIVE; card 1636 drivers/atm/idt77252.c write_sram(card, idle + e, data); card 1637 drivers/atm/idt77252.c card->soft_tst[e].tste |= TSTE_PUSH_IDLE; card 1640 drivers/atm/idt77252.c cl -= card->tst_size; card 1653 drivers/atm/idt77252.c fill_tst(struct idt77252_dev *card, struct vc_map *vc, int n, unsigned int opc) card 1658 drivers/atm/idt77252.c spin_lock_irqsave(&card->tst_lock, flags); card 1660 drivers/atm/idt77252.c res = __fill_tst(card, vc, n, opc); card 1662 drivers/atm/idt77252.c set_bit(TST_SWITCH_PENDING, &card->tst_state); card 1663 drivers/atm/idt77252.c if (!timer_pending(&card->tst_timer)) card 1664 drivers/atm/idt77252.c mod_timer(&card->tst_timer, jiffies + 1); card 1666 drivers/atm/idt77252.c spin_unlock_irqrestore(&card->tst_lock, flags); card 1671 drivers/atm/idt77252.c __clear_tst(struct idt77252_dev *card, struct vc_map *vc) card 1676 drivers/atm/idt77252.c idle = card->tst[card->tst_index ^ 1]; card 1678 drivers/atm/idt77252.c for (e = 0; e < card->tst_size - 2; e++) { card 1679 drivers/atm/idt77252.c if (card->soft_tst[e].vc == vc) { card 1680 drivers/atm/idt77252.c card->soft_tst[e].vc = NULL; card 1682 drivers/atm/idt77252.c card->soft_tst[e].tste = TSTE_OPC_VAR; card 1683 drivers/atm/idt77252.c if (timer_pending(&card->tst_timer)) card 1684 drivers/atm/idt77252.c card->soft_tst[e].tste |= TSTE_PUSH_ACTIVE; card 1686 drivers/atm/idt77252.c write_sram(card, idle + e, TSTE_OPC_VAR); card 1687 drivers/atm/idt77252.c card->soft_tst[e].tste |= TSTE_PUSH_IDLE; card 1696 drivers/atm/idt77252.c clear_tst(struct idt77252_dev *card, struct vc_map *vc) card 1701 drivers/atm/idt77252.c spin_lock_irqsave(&card->tst_lock, flags); card 1703 drivers/atm/idt77252.c res = __clear_tst(card, vc); card 1705 drivers/atm/idt77252.c set_bit(TST_SWITCH_PENDING, &card->tst_state); card 1706 drivers/atm/idt77252.c if (!timer_pending(&card->tst_timer)) card 1707 drivers/atm/idt77252.c mod_timer(&card->tst_timer, jiffies + 1); card 1709 drivers/atm/idt77252.c spin_unlock_irqrestore(&card->tst_lock, flags); card 1714 drivers/atm/idt77252.c change_tst(struct idt77252_dev *card, struct vc_map *vc, card 1720 drivers/atm/idt77252.c spin_lock_irqsave(&card->tst_lock, flags); card 1722 drivers/atm/idt77252.c __clear_tst(card, vc); card 1723 drivers/atm/idt77252.c res = __fill_tst(card, vc, n, opc); card 1725 drivers/atm/idt77252.c set_bit(TST_SWITCH_PENDING, &card->tst_state); card 1726 drivers/atm/idt77252.c if (!timer_pending(&card->tst_timer)) card 1727 drivers/atm/idt77252.c mod_timer(&card->tst_timer, jiffies + 1); card 1729 drivers/atm/idt77252.c spin_unlock_irqrestore(&card->tst_lock, flags); card 1735 drivers/atm/idt77252.c set_tct(struct idt77252_dev *card, struct vc_map *vc) card 1739 drivers/atm/idt77252.c tct = (unsigned long) (card->tct_base + vc->index * SAR_SRAM_TCT_SIZE); card 1744 drivers/atm/idt77252.c card->name, tct, vc->scq->scd); card 1746 drivers/atm/idt77252.c write_sram(card, tct + 0, TCT_CBR | vc->scq->scd); card 1747 drivers/atm/idt77252.c write_sram(card, tct + 1, 0); card 1748 drivers/atm/idt77252.c write_sram(card, tct + 2, 0); card 1749 drivers/atm/idt77252.c write_sram(card, tct + 3, 0); card 1750 drivers/atm/idt77252.c write_sram(card, tct + 4, 0); card 1751 drivers/atm/idt77252.c write_sram(card, tct + 5, 0); card 1752 drivers/atm/idt77252.c write_sram(card, tct + 6, 0); card 1753 drivers/atm/idt77252.c write_sram(card, tct + 7, 0); card 1758 drivers/atm/idt77252.c card->name, tct, vc->scq->scd); card 1760 drivers/atm/idt77252.c write_sram(card, tct + 0, TCT_UBR | vc->scq->scd); card 1761 drivers/atm/idt77252.c write_sram(card, tct + 1, 0); card 1762 drivers/atm/idt77252.c write_sram(card, tct + 2, TCT_TSIF); card 1763 drivers/atm/idt77252.c write_sram(card, tct + 3, TCT_HALT | TCT_IDLE); card 1764 drivers/atm/idt77252.c write_sram(card, tct + 4, 0); card 1765 drivers/atm/idt77252.c write_sram(card, tct + 5, vc->init_er); card 1766 drivers/atm/idt77252.c write_sram(card, tct + 6, 0); card 1767 drivers/atm/idt77252.c write_sram(card, tct + 7, TCT_FLAG_UBR); card 1786 drivers/atm/idt77252.c idt77252_fbq_level(struct idt77252_dev *card, int queue) card 1792 drivers/atm/idt77252.c idt77252_fbq_full(struct idt77252_dev *card, int queue) card 1798 drivers/atm/idt77252.c push_rx_skb(struct idt77252_dev *card, struct sk_buff *skb, int queue) card 1827 drivers/atm/idt77252.c if (idt77252_fbq_full(card, queue)) card 1835 drivers/atm/idt77252.c spin_lock_irqsave(&card->cmd_lock, flags); card 1836 drivers/atm/idt77252.c writel(handle, card->fbq[queue]); card 1837 drivers/atm/idt77252.c writel(addr, card->fbq[queue]); card 1838 drivers/atm/idt77252.c spin_unlock_irqrestore(&card->cmd_lock, flags); card 1844 drivers/atm/idt77252.c add_rx_skb(struct idt77252_dev *card, int queue, card 1856 drivers/atm/idt77252.c if (sb_pool_add(card, skb, queue)) { card 1861 drivers/atm/idt77252.c paddr = dma_map_single(&card->pcidev->dev, skb->data, card 1866 drivers/atm/idt77252.c if (push_rx_skb(card, skb, queue)) { card 1875 drivers/atm/idt77252.c dma_unmap_single(&card->pcidev->dev, IDT77252_PRV_PADDR(skb), card 1879 drivers/atm/idt77252.c card->sbpool[POOL_QUEUE(handle)].skb[POOL_INDEX(handle)] = NULL; card 1887 drivers/atm/idt77252.c recycle_rx_skb(struct idt77252_dev *card, struct sk_buff *skb) card 1892 drivers/atm/idt77252.c dma_sync_single_for_device(&card->pcidev->dev, IDT77252_PRV_PADDR(skb), card 1896 drivers/atm/idt77252.c err = push_rx_skb(card, skb, POOL_QUEUE(handle)); card 1898 drivers/atm/idt77252.c dma_unmap_single(&card->pcidev->dev, IDT77252_PRV_PADDR(skb), card 1901 drivers/atm/idt77252.c sb_pool_remove(card, skb); card 1907 drivers/atm/idt77252.c flush_rx_pool(struct idt77252_dev *card, struct rx_pool *rpp) card 1914 drivers/atm/idt77252.c recycle_rx_pool_skb(struct idt77252_dev *card, struct rx_pool *rpp) card 1919 drivers/atm/idt77252.c recycle_rx_skb(card, skb); card 1921 drivers/atm/idt77252.c flush_rx_pool(card, rpp); card 1946 drivers/atm/idt77252.c struct idt77252_dev *card = dev->dev_data; card 1951 drivers/atm/idt77252.c printk("%s: NULL connection in send().\n", card->name); card 1957 drivers/atm/idt77252.c printk("%s: Trying to transmit on a non-tx VC.\n", card->name); card 1969 drivers/atm/idt77252.c printk("%s: Unsupported AAL: %d\n", card->name, vcc->qos.aal); card 1976 drivers/atm/idt77252.c printk("%s: No scatter-gather yet.\n", card->name); card 1983 drivers/atm/idt77252.c err = queue_skb(card, vc, skb, oam); card 2002 drivers/atm/idt77252.c struct idt77252_dev *card = dev->dev_data; card 2007 drivers/atm/idt77252.c printk("%s: Out of memory in send_oam().\n", card->name); card 2064 drivers/atm/idt77252.c idt77252_rate_logindex(struct idt77252_dev *card, int pcr) card 2079 drivers/atm/idt77252.c struct idt77252_dev *card = vc->card; card 2099 drivers/atm/idt77252.c lacr = idt77252_rate_logindex(card, cps); card 2137 drivers/atm/idt77252.c idt77252_init_cbr(struct idt77252_dev *card, struct vc_map *vc, card 2147 drivers/atm/idt77252.c card->name); card 2152 drivers/atm/idt77252.c tst_free = card->tst_free; card 2160 drivers/atm/idt77252.c TXPRINTK("%s: CBR target cell rate = %d\n", card->name, tcra); card 2162 drivers/atm/idt77252.c tmpl = (unsigned long) tcra * ((unsigned long) card->tst_size - 2); card 2163 drivers/atm/idt77252.c modl = tmpl % (unsigned long)card->utopia_pcr; card 2165 drivers/atm/idt77252.c tst_entries = (int) (tmpl / card->utopia_pcr); card 2172 drivers/atm/idt77252.c printk("%s: no CBR bandwidth free.\n", card->name); card 2179 drivers/atm/idt77252.c card->name); card 2184 drivers/atm/idt77252.c printk("%s: not enough CBR bandwidth free.\n", card->name); card 2190 drivers/atm/idt77252.c card->tst_free = tst_free - tst_entries; card 2196 drivers/atm/idt77252.c card->name, tst_used, tst_entries); card 2197 drivers/atm/idt77252.c change_tst(card, vc, tst_entries, TSTE_OPC_CBR); card 2201 drivers/atm/idt77252.c OPRINTK("%s: setting %d entries in TST.\n", card->name, tst_entries); card 2202 drivers/atm/idt77252.c fill_tst(card, vc, tst_entries, TSTE_OPC_CBR); card 2207 drivers/atm/idt77252.c idt77252_init_ubr(struct idt77252_dev *card, struct vc_map *vc, card 2227 drivers/atm/idt77252.c tcr = card->link_pcr; card 2232 drivers/atm/idt77252.c vc->init_er = idt77252_rate_logindex(card, tcr); card 2243 drivers/atm/idt77252.c idt77252_init_tx(struct idt77252_dev *card, struct vc_map *vc, card 2266 drivers/atm/idt77252.c vc->scq = alloc_scq(card, vc->class); card 2268 drivers/atm/idt77252.c printk("%s: can't get SCQ.\n", card->name); card 2272 drivers/atm/idt77252.c vc->scq->scd = get_free_scd(card, vc); card 2274 drivers/atm/idt77252.c printk("%s: no SCD available.\n", card->name); card 2275 drivers/atm/idt77252.c free_scq(card, vc->scq); card 2279 drivers/atm/idt77252.c fill_scd(card, vc->scq, vc->class); card 2281 drivers/atm/idt77252.c if (set_tct(card, vc)) { card 2283 drivers/atm/idt77252.c card->name, qos->txtp.traffic_class); card 2285 drivers/atm/idt77252.c card->scd2vc[vc->scd_index] = NULL; card 2286 drivers/atm/idt77252.c free_scq(card, vc->scq); card 2292 drivers/atm/idt77252.c error = idt77252_init_cbr(card, vc, vcc, qos); card 2294 drivers/atm/idt77252.c card->scd2vc[vc->scd_index] = NULL; card 2295 drivers/atm/idt77252.c free_scq(card, vc->scq); card 2304 drivers/atm/idt77252.c error = idt77252_init_ubr(card, vc, vcc, qos); card 2306 drivers/atm/idt77252.c card->scd2vc[vc->scd_index] = NULL; card 2307 drivers/atm/idt77252.c free_scq(card, vc->scq); card 2321 drivers/atm/idt77252.c idt77252_init_rx(struct idt77252_dev *card, struct vc_map *vc, card 2337 drivers/atm/idt77252.c flush_rx_pool(card, &vc->rcv.rx_pool); card 2371 drivers/atm/idt77252.c addr = card->rct_base + (vc->index << 2); card 2373 drivers/atm/idt77252.c OPRINTK("%s: writing RCT at 0x%lx\n", card->name, addr); card 2374 drivers/atm/idt77252.c write_sram(card, addr, rcte); card 2376 drivers/atm/idt77252.c spin_lock_irqsave(&card->cmd_lock, flags); card 2378 drivers/atm/idt77252.c waitfor_idle(card); card 2379 drivers/atm/idt77252.c spin_unlock_irqrestore(&card->cmd_lock, flags); card 2388 drivers/atm/idt77252.c struct idt77252_dev *card = dev->dev_data; card 2399 drivers/atm/idt77252.c if (vpi >= (1 << card->vpibits)) { card 2400 drivers/atm/idt77252.c printk("%s: unsupported VPI: %d\n", card->name, vpi); card 2404 drivers/atm/idt77252.c if (vci >= (1 << card->vcibits)) { card 2405 drivers/atm/idt77252.c printk("%s: unsupported VCI: %d\n", card->name, vci); card 2411 drivers/atm/idt77252.c mutex_lock(&card->mutex); card 2413 drivers/atm/idt77252.c OPRINTK("%s: opening vpi.vci: %d.%d\n", card->name, vpi, vci); card 2421 drivers/atm/idt77252.c printk("%s: Unsupported AAL: %d\n", card->name, vcc->qos.aal); card 2422 drivers/atm/idt77252.c mutex_unlock(&card->mutex); card 2426 drivers/atm/idt77252.c index = VPCI2VC(card, vpi, vci); card 2427 drivers/atm/idt77252.c if (!card->vcs[index]) { card 2428 drivers/atm/idt77252.c card->vcs[index] = kzalloc(sizeof(struct vc_map), GFP_KERNEL); card 2429 drivers/atm/idt77252.c if (!card->vcs[index]) { card 2430 drivers/atm/idt77252.c printk("%s: can't alloc vc in open()\n", card->name); card 2431 drivers/atm/idt77252.c mutex_unlock(&card->mutex); card 2434 drivers/atm/idt77252.c card->vcs[index]->card = card; card 2435 drivers/atm/idt77252.c card->vcs[index]->index = index; card 2437 drivers/atm/idt77252.c spin_lock_init(&card->vcs[index]->lock); card 2439 drivers/atm/idt77252.c vc = card->vcs[index]; card 2444 drivers/atm/idt77252.c card->name, vc->index, vcc->vpi, vcc->vci, card 2458 drivers/atm/idt77252.c printk("%s: %s vci already in use.\n", card->name, card 2460 drivers/atm/idt77252.c mutex_unlock(&card->mutex); card 2465 drivers/atm/idt77252.c error = idt77252_init_tx(card, vc, vcc, &vcc->qos); card 2467 drivers/atm/idt77252.c mutex_unlock(&card->mutex); card 2473 drivers/atm/idt77252.c error = idt77252_init_rx(card, vc, vcc, &vcc->qos); card 2475 drivers/atm/idt77252.c mutex_unlock(&card->mutex); card 2482 drivers/atm/idt77252.c mutex_unlock(&card->mutex); card 2490 drivers/atm/idt77252.c struct idt77252_dev *card = dev->dev_data; card 2496 drivers/atm/idt77252.c mutex_lock(&card->mutex); card 2499 drivers/atm/idt77252.c card->name, vc->index, vcc->vpi, vcc->vci); card 2513 drivers/atm/idt77252.c addr = card->rct_base + vc->index * SAR_SRAM_RCT_SIZE; card 2515 drivers/atm/idt77252.c spin_lock_irqsave(&card->cmd_lock, flags); card 2517 drivers/atm/idt77252.c waitfor_idle(card); card 2518 drivers/atm/idt77252.c spin_unlock_irqrestore(&card->cmd_lock, flags); card 2522 drivers/atm/idt77252.c card->name); card 2524 drivers/atm/idt77252.c recycle_rx_pool_skb(card, &vc->rcv.rx_pool); card 2549 drivers/atm/idt77252.c card->name, atomic_read(&vc->scq->used)); card 2555 drivers/atm/idt77252.c clear_scd(card, vc->scq, vc->class); card 2558 drivers/atm/idt77252.c clear_tst(card, vc); card 2559 drivers/atm/idt77252.c card->tst_free += vc->ntste; card 2563 drivers/atm/idt77252.c card->scd2vc[vc->scd_index] = NULL; card 2564 drivers/atm/idt77252.c free_scq(card, vc->scq); card 2567 drivers/atm/idt77252.c mutex_unlock(&card->mutex); card 2574 drivers/atm/idt77252.c struct idt77252_dev *card = dev->dev_data; card 2578 drivers/atm/idt77252.c mutex_lock(&card->mutex); card 2582 drivers/atm/idt77252.c error = idt77252_init_tx(card, vc, vcc, qos); card 2588 drivers/atm/idt77252.c error = idt77252_init_cbr(card, vc, vcc, qos); card 2594 drivers/atm/idt77252.c error = idt77252_init_ubr(card, vc, vcc, qos); card 2614 drivers/atm/idt77252.c error = idt77252_init_rx(card, vc, vcc, qos); card 2624 drivers/atm/idt77252.c mutex_unlock(&card->mutex); card 2631 drivers/atm/idt77252.c struct idt77252_dev *card = dev->dev_data; card 2638 drivers/atm/idt77252.c return sprintf(page, "TSIF: %lu\n", card->irqstat[15]); card 2640 drivers/atm/idt77252.c return sprintf(page, "TXICP: %lu\n", card->irqstat[14]); card 2642 drivers/atm/idt77252.c return sprintf(page, "TSQF: %lu\n", card->irqstat[12]); card 2644 drivers/atm/idt77252.c return sprintf(page, "TMROF: %lu\n", card->irqstat[11]); card 2646 drivers/atm/idt77252.c return sprintf(page, "PHYI: %lu\n", card->irqstat[10]); card 2648 drivers/atm/idt77252.c return sprintf(page, "FBQ3A: %lu\n", card->irqstat[8]); card 2650 drivers/atm/idt77252.c return sprintf(page, "FBQ2A: %lu\n", card->irqstat[7]); card 2652 drivers/atm/idt77252.c return sprintf(page, "RSQF: %lu\n", card->irqstat[6]); card 2654 drivers/atm/idt77252.c return sprintf(page, "EPDU: %lu\n", card->irqstat[5]); card 2656 drivers/atm/idt77252.c return sprintf(page, "RAWCF: %lu\n", card->irqstat[4]); card 2658 drivers/atm/idt77252.c return sprintf(page, "FBQ1A: %lu\n", card->irqstat[3]); card 2660 drivers/atm/idt77252.c return sprintf(page, "FBQ0A: %lu\n", card->irqstat[2]); card 2662 drivers/atm/idt77252.c return sprintf(page, "RSQAF: %lu\n", card->irqstat[1]); card 2666 drivers/atm/idt77252.c for (i = 0; i < card->tct_size; i++) { card 2672 drivers/atm/idt77252.c vc = card->vcs[i]; card 2686 drivers/atm/idt77252.c tct = (unsigned long) (card->tct_base + i * SAR_SRAM_TCT_SIZE); card 2689 drivers/atm/idt77252.c p += sprintf(p, " %08x", read_sram(card, tct + i)); card 2703 drivers/atm/idt77252.c idt77252_collect_stat(struct idt77252_dev *card) card 2714 drivers/atm/idt77252.c struct idt77252_dev *card = dev_id; card 2721 drivers/atm/idt77252.c if (test_and_set_bit(IDT77252_BIT_INTERRUPT, &card->flags)) { card 2722 drivers/atm/idt77252.c printk("%s: Re-entering irq_handler()\n", card->name); card 2729 drivers/atm/idt77252.c INTPRINTK("%s: TSIF\n", card->name); card 2730 drivers/atm/idt77252.c card->irqstat[15]++; card 2731 drivers/atm/idt77252.c idt77252_tx(card); card 2734 drivers/atm/idt77252.c INTPRINTK("%s: TXICP\n", card->name); card 2735 drivers/atm/idt77252.c card->irqstat[14]++; card 2737 drivers/atm/idt77252.c idt77252_tx_dump(card); card 2741 drivers/atm/idt77252.c INTPRINTK("%s: TSQF\n", card->name); card 2742 drivers/atm/idt77252.c card->irqstat[12]++; card 2743 drivers/atm/idt77252.c idt77252_tx(card); card 2746 drivers/atm/idt77252.c INTPRINTK("%s: TMROF\n", card->name); card 2747 drivers/atm/idt77252.c card->irqstat[11]++; card 2748 drivers/atm/idt77252.c idt77252_collect_stat(card); card 2752 drivers/atm/idt77252.c INTPRINTK("%s: EPDU\n", card->name); card 2753 drivers/atm/idt77252.c card->irqstat[5]++; card 2754 drivers/atm/idt77252.c idt77252_rx(card); card 2757 drivers/atm/idt77252.c INTPRINTK("%s: RSQAF\n", card->name); card 2758 drivers/atm/idt77252.c card->irqstat[1]++; card 2759 drivers/atm/idt77252.c idt77252_rx(card); card 2762 drivers/atm/idt77252.c INTPRINTK("%s: RSQF\n", card->name); card 2763 drivers/atm/idt77252.c card->irqstat[6]++; card 2764 drivers/atm/idt77252.c idt77252_rx(card); card 2767 drivers/atm/idt77252.c INTPRINTK("%s: RAWCF\n", card->name); card 2768 drivers/atm/idt77252.c card->irqstat[4]++; card 2769 drivers/atm/idt77252.c idt77252_rx_raw(card); card 2773 drivers/atm/idt77252.c INTPRINTK("%s: PHYI", card->name); card 2774 drivers/atm/idt77252.c card->irqstat[10]++; card 2775 drivers/atm/idt77252.c if (card->atmdev->phy && card->atmdev->phy->interrupt) card 2776 drivers/atm/idt77252.c card->atmdev->phy->interrupt(card->atmdev); card 2784 drivers/atm/idt77252.c INTPRINTK("%s: FBQA: %04x\n", card->name, stat); card 2787 drivers/atm/idt77252.c card->irqstat[2]++; card 2789 drivers/atm/idt77252.c card->irqstat[3]++; card 2791 drivers/atm/idt77252.c card->irqstat[7]++; card 2793 drivers/atm/idt77252.c card->irqstat[8]++; card 2795 drivers/atm/idt77252.c schedule_work(&card->tqueue); card 2799 drivers/atm/idt77252.c clear_bit(IDT77252_BIT_INTERRUPT, &card->flags); card 2806 drivers/atm/idt77252.c struct idt77252_dev *card = card 2815 drivers/atm/idt77252.c add_rx_skb(card, 0, SAR_FB_SIZE_0, 32); card 2821 drivers/atm/idt77252.c add_rx_skb(card, 1, SAR_FB_SIZE_1, 32); card 2827 drivers/atm/idt77252.c add_rx_skb(card, 2, SAR_FB_SIZE_2, 32); card 2833 drivers/atm/idt77252.c add_rx_skb(card, 3, SAR_FB_SIZE_3, 32); card 2846 drivers/atm/idt77252.c open_card_oam(struct idt77252_dev *card) card 2855 drivers/atm/idt77252.c for (vpi = 0; vpi < (1 << card->vpibits); vpi++) { card 2857 drivers/atm/idt77252.c index = VPCI2VC(card, vpi, vci); card 2861 drivers/atm/idt77252.c printk("%s: can't alloc vc\n", card->name); card 2865 drivers/atm/idt77252.c card->vcs[index] = vc; card 2867 drivers/atm/idt77252.c flush_rx_pool(card, &vc->rcv.rx_pool); card 2874 drivers/atm/idt77252.c addr = card->rct_base + (vc->index << 2); card 2875 drivers/atm/idt77252.c write_sram(card, addr, rcte); card 2877 drivers/atm/idt77252.c spin_lock_irqsave(&card->cmd_lock, flags); card 2880 drivers/atm/idt77252.c waitfor_idle(card); card 2881 drivers/atm/idt77252.c spin_unlock_irqrestore(&card->cmd_lock, flags); card 2889 drivers/atm/idt77252.c close_card_oam(struct idt77252_dev *card) card 2897 drivers/atm/idt77252.c for (vpi = 0; vpi < (1 << card->vpibits); vpi++) { card 2899 drivers/atm/idt77252.c index = VPCI2VC(card, vpi, vci); card 2900 drivers/atm/idt77252.c vc = card->vcs[index]; card 2902 drivers/atm/idt77252.c addr = card->rct_base + vc->index * SAR_SRAM_RCT_SIZE; card 2904 drivers/atm/idt77252.c spin_lock_irqsave(&card->cmd_lock, flags); card 2907 drivers/atm/idt77252.c waitfor_idle(card); card 2908 drivers/atm/idt77252.c spin_unlock_irqrestore(&card->cmd_lock, flags); card 2913 drivers/atm/idt77252.c card->name); card 2915 drivers/atm/idt77252.c recycle_rx_pool_skb(card, &vc->rcv.rx_pool); card 2922 drivers/atm/idt77252.c open_card_ubr0(struct idt77252_dev *card) card 2928 drivers/atm/idt77252.c printk("%s: can't alloc vc\n", card->name); card 2931 drivers/atm/idt77252.c card->vcs[0] = vc; card 2934 drivers/atm/idt77252.c vc->scq = alloc_scq(card, vc->class); card 2936 drivers/atm/idt77252.c printk("%s: can't get SCQ.\n", card->name); card 2940 drivers/atm/idt77252.c card->scd2vc[0] = vc; card 2942 drivers/atm/idt77252.c vc->scq->scd = card->scd_base; card 2944 drivers/atm/idt77252.c fill_scd(card, vc->scq, vc->class); card 2946 drivers/atm/idt77252.c write_sram(card, card->tct_base + 0, TCT_UBR | card->scd_base); card 2947 drivers/atm/idt77252.c write_sram(card, card->tct_base + 1, 0); card 2948 drivers/atm/idt77252.c write_sram(card, card->tct_base + 2, 0); card 2949 drivers/atm/idt77252.c write_sram(card, card->tct_base + 3, 0); card 2950 drivers/atm/idt77252.c write_sram(card, card->tct_base + 4, 0); card 2951 drivers/atm/idt77252.c write_sram(card, card->tct_base + 5, 0); card 2952 drivers/atm/idt77252.c write_sram(card, card->tct_base + 6, 0); card 2953 drivers/atm/idt77252.c write_sram(card, card->tct_base + 7, TCT_FLAG_UBR); card 2961 drivers/atm/idt77252.c idt77252_dev_open(struct idt77252_dev *card) card 2965 drivers/atm/idt77252.c if (!test_bit(IDT77252_BIT_INIT, &card->flags)) { card 2966 drivers/atm/idt77252.c printk("%s: SAR not yet initialized.\n", card->name); card 2990 drivers/atm/idt77252.c if (open_card_oam(card)) { card 2991 drivers/atm/idt77252.c printk("%s: Error initializing OAM.\n", card->name); card 2995 drivers/atm/idt77252.c if (open_card_ubr0(card)) { card 2996 drivers/atm/idt77252.c printk("%s: Error initializing UBR0.\n", card->name); card 3000 drivers/atm/idt77252.c IPRINTK("%s: opened IDT77252 ABR SAR.\n", card->name); card 3006 drivers/atm/idt77252.c struct idt77252_dev *card = dev->dev_data; card 3009 drivers/atm/idt77252.c close_card_oam(card); card 3025 drivers/atm/idt77252.c DIPRINTK("%s: closed IDT77252 ABR SAR.\n", card->name); card 3037 drivers/atm/idt77252.c deinit_card(struct idt77252_dev *card) card 3042 drivers/atm/idt77252.c if (!test_bit(IDT77252_BIT_INIT, &card->flags)) { card 3043 drivers/atm/idt77252.c printk("%s: SAR not yet initialized.\n", card->name); card 3046 drivers/atm/idt77252.c DIPRINTK("idt77252: deinitialize card %u\n", card->index); card 3050 drivers/atm/idt77252.c if (card->atmdev) card 3051 drivers/atm/idt77252.c atm_dev_deregister(card->atmdev); card 3055 drivers/atm/idt77252.c skb = card->sbpool[i].skb[j]; card 3057 drivers/atm/idt77252.c dma_unmap_single(&card->pcidev->dev, card 3062 drivers/atm/idt77252.c card->sbpool[i].skb[j] = NULL; card 3068 drivers/atm/idt77252.c vfree(card->soft_tst); card 3070 drivers/atm/idt77252.c vfree(card->scd2vc); card 3072 drivers/atm/idt77252.c vfree(card->vcs); card 3074 drivers/atm/idt77252.c if (card->raw_cell_hnd) { card 3075 drivers/atm/idt77252.c dma_free_coherent(&card->pcidev->dev, 2 * sizeof(u32), card 3076 drivers/atm/idt77252.c card->raw_cell_hnd, card->raw_cell_paddr); card 3079 drivers/atm/idt77252.c if (card->rsq.base) { card 3080 drivers/atm/idt77252.c DIPRINTK("%s: Release RSQ ...\n", card->name); card 3081 drivers/atm/idt77252.c deinit_rsq(card); card 3084 drivers/atm/idt77252.c if (card->tsq.base) { card 3085 drivers/atm/idt77252.c DIPRINTK("%s: Release TSQ ...\n", card->name); card 3086 drivers/atm/idt77252.c deinit_tsq(card); card 3090 drivers/atm/idt77252.c free_irq(card->pcidev->irq, card); card 3093 drivers/atm/idt77252.c if (card->fbq[i]) card 3094 drivers/atm/idt77252.c iounmap(card->fbq[i]); card 3097 drivers/atm/idt77252.c if (card->membase) card 3098 drivers/atm/idt77252.c iounmap(card->membase); card 3100 drivers/atm/idt77252.c clear_bit(IDT77252_BIT_INIT, &card->flags); card 3101 drivers/atm/idt77252.c DIPRINTK("%s: Card deinitialized.\n", card->name); card 3105 drivers/atm/idt77252.c static void init_sram(struct idt77252_dev *card) card 3109 drivers/atm/idt77252.c for (i = 0; i < card->sramsize; i += 4) card 3110 drivers/atm/idt77252.c write_sram(card, (i >> 2), 0); card 3113 drivers/atm/idt77252.c if (card->sramsize == (512 * 1024)) { card 3114 drivers/atm/idt77252.c card->tct_base = SAR_SRAM_TCT_128_BASE; card 3115 drivers/atm/idt77252.c card->tct_size = (SAR_SRAM_TCT_128_TOP - card->tct_base + 1) card 3117 drivers/atm/idt77252.c card->rct_base = SAR_SRAM_RCT_128_BASE; card 3118 drivers/atm/idt77252.c card->rct_size = (SAR_SRAM_RCT_128_TOP - card->rct_base + 1) card 3120 drivers/atm/idt77252.c card->rt_base = SAR_SRAM_RT_128_BASE; card 3121 drivers/atm/idt77252.c card->scd_base = SAR_SRAM_SCD_128_BASE; card 3122 drivers/atm/idt77252.c card->scd_size = (SAR_SRAM_SCD_128_TOP - card->scd_base + 1) card 3124 drivers/atm/idt77252.c card->tst[0] = SAR_SRAM_TST1_128_BASE; card 3125 drivers/atm/idt77252.c card->tst[1] = SAR_SRAM_TST2_128_BASE; card 3126 drivers/atm/idt77252.c card->tst_size = SAR_SRAM_TST1_128_TOP - card->tst[0] + 1; card 3127 drivers/atm/idt77252.c card->abrst_base = SAR_SRAM_ABRSTD_128_BASE; card 3128 drivers/atm/idt77252.c card->abrst_size = SAR_ABRSTD_SIZE_8K; card 3129 drivers/atm/idt77252.c card->fifo_base = SAR_SRAM_FIFO_128_BASE; card 3130 drivers/atm/idt77252.c card->fifo_size = SAR_RXFD_SIZE_32K; card 3132 drivers/atm/idt77252.c card->tct_base = SAR_SRAM_TCT_32_BASE; card 3133 drivers/atm/idt77252.c card->tct_size = (SAR_SRAM_TCT_32_TOP - card->tct_base + 1) card 3135 drivers/atm/idt77252.c card->rct_base = SAR_SRAM_RCT_32_BASE; card 3136 drivers/atm/idt77252.c card->rct_size = (SAR_SRAM_RCT_32_TOP - card->rct_base + 1) card 3138 drivers/atm/idt77252.c card->rt_base = SAR_SRAM_RT_32_BASE; card 3139 drivers/atm/idt77252.c card->scd_base = SAR_SRAM_SCD_32_BASE; card 3140 drivers/atm/idt77252.c card->scd_size = (SAR_SRAM_SCD_32_TOP - card->scd_base + 1) card 3142 drivers/atm/idt77252.c card->tst[0] = SAR_SRAM_TST1_32_BASE; card 3143 drivers/atm/idt77252.c card->tst[1] = SAR_SRAM_TST2_32_BASE; card 3144 drivers/atm/idt77252.c card->tst_size = (SAR_SRAM_TST1_32_TOP - card->tst[0] + 1); card 3145 drivers/atm/idt77252.c card->abrst_base = SAR_SRAM_ABRSTD_32_BASE; card 3146 drivers/atm/idt77252.c card->abrst_size = SAR_ABRSTD_SIZE_1K; card 3147 drivers/atm/idt77252.c card->fifo_base = SAR_SRAM_FIFO_32_BASE; card 3148 drivers/atm/idt77252.c card->fifo_size = SAR_RXFD_SIZE_4K; card 3152 drivers/atm/idt77252.c for (i = 0; i < card->tct_size; i++) { card 3153 drivers/atm/idt77252.c write_sram(card, i * SAR_SRAM_TCT_SIZE + 0, 0); card 3154 drivers/atm/idt77252.c write_sram(card, i * SAR_SRAM_TCT_SIZE + 1, 0); card 3155 drivers/atm/idt77252.c write_sram(card, i * SAR_SRAM_TCT_SIZE + 2, 0); card 3156 drivers/atm/idt77252.c write_sram(card, i * SAR_SRAM_TCT_SIZE + 3, 0); card 3157 drivers/atm/idt77252.c write_sram(card, i * SAR_SRAM_TCT_SIZE + 4, 0); card 3158 drivers/atm/idt77252.c write_sram(card, i * SAR_SRAM_TCT_SIZE + 5, 0); card 3159 drivers/atm/idt77252.c write_sram(card, i * SAR_SRAM_TCT_SIZE + 6, 0); card 3160 drivers/atm/idt77252.c write_sram(card, i * SAR_SRAM_TCT_SIZE + 7, 0); card 3164 drivers/atm/idt77252.c for (i = 0; i < card->rct_size; i++) { card 3165 drivers/atm/idt77252.c write_sram(card, card->rct_base + i * SAR_SRAM_RCT_SIZE, card 3167 drivers/atm/idt77252.c write_sram(card, card->rct_base + i * SAR_SRAM_RCT_SIZE + 1, card 3169 drivers/atm/idt77252.c write_sram(card, card->rct_base + i * SAR_SRAM_RCT_SIZE + 2, card 3171 drivers/atm/idt77252.c write_sram(card, card->rct_base + i * SAR_SRAM_RCT_SIZE + 3, card 3182 drivers/atm/idt77252.c write_sram(card, card->rt_base + i, log_to_rate[i]); card 3192 drivers/atm/idt77252.c write_sram(card, card->rt_base + 256 + i, tmp); card 3201 drivers/atm/idt77252.c write_sram(card, card->rt_base + 512 + i, tmp); card 3209 drivers/atm/idt77252.c write_sram(card, card->rt_base + 640 + i, tmp); card 3213 drivers/atm/idt77252.c IPRINTK("%s: initialize rate table ...\n", card->name); card 3214 drivers/atm/idt77252.c writel(card->rt_base << 2, SAR_REG_RTBL); card 3217 drivers/atm/idt77252.c IPRINTK("%s: initialize TST ...\n", card->name); card 3218 drivers/atm/idt77252.c card->tst_free = card->tst_size - 2; /* last two are jumps */ card 3220 drivers/atm/idt77252.c for (i = card->tst[0]; i < card->tst[0] + card->tst_size - 2; i++) card 3221 drivers/atm/idt77252.c write_sram(card, i, TSTE_OPC_VAR); card 3222 drivers/atm/idt77252.c write_sram(card, i++, TSTE_OPC_JMP | (card->tst[0] << 2)); card 3224 drivers/atm/idt77252.c write_sram(card, i++, TSTE_OPC_JMP | (card->tst[1] << 2)); card 3226 drivers/atm/idt77252.c for (i = card->tst[1]; i < card->tst[1] + card->tst_size - 2; i++) card 3227 drivers/atm/idt77252.c write_sram(card, i, TSTE_OPC_VAR); card 3228 drivers/atm/idt77252.c write_sram(card, i++, TSTE_OPC_JMP | (card->tst[1] << 2)); card 3230 drivers/atm/idt77252.c write_sram(card, i++, TSTE_OPC_JMP | (card->tst[0] << 2)); card 3233 drivers/atm/idt77252.c card->tst_index = 0; card 3234 drivers/atm/idt77252.c writel(card->tst[0] << 2, SAR_REG_TSTB); card 3237 drivers/atm/idt77252.c IPRINTK("%s: initialize ABRSTD ...\n", card->name); card 3238 drivers/atm/idt77252.c writel(card->abrst_size | (card->abrst_base << 2), card 3241 drivers/atm/idt77252.c IPRINTK("%s: initialize receive fifo ...\n", card->name); card 3242 drivers/atm/idt77252.c writel(card->fifo_size | (card->fifo_base << 2), card 3245 drivers/atm/idt77252.c IPRINTK("%s: SRAM initialization complete.\n", card->name); card 3250 drivers/atm/idt77252.c struct idt77252_dev *card = dev->dev_data; card 3251 drivers/atm/idt77252.c struct pci_dev *pcidev = card->pcidev; card 3263 drivers/atm/idt77252.c if (test_bit(IDT77252_BIT_INIT, &card->flags)) { card 3273 drivers/atm/idt77252.c IPRINTK("%s: Checking PCI retries.\n", card->name); card 3275 drivers/atm/idt77252.c printk("%s: can't read PCI retry timeout.\n", card->name); card 3276 drivers/atm/idt77252.c deinit_card(card); card 3281 drivers/atm/idt77252.c card->name, pci_byte); card 3284 drivers/atm/idt77252.c card->name); card 3285 drivers/atm/idt77252.c deinit_card(card); card 3289 drivers/atm/idt77252.c IPRINTK("%s: Checking PCI TRDY.\n", card->name); card 3291 drivers/atm/idt77252.c printk("%s: can't read PCI TRDY timeout.\n", card->name); card 3292 drivers/atm/idt77252.c deinit_card(card); card 3297 drivers/atm/idt77252.c card->name, pci_byte); card 3299 drivers/atm/idt77252.c printk("%s: can't set PCI TRDY timeout.\n", card->name); card 3300 drivers/atm/idt77252.c deinit_card(card); card 3306 drivers/atm/idt77252.c printk("%s: resetting timer overflow.\n", card->name); card 3309 drivers/atm/idt77252.c IPRINTK("%s: Request IRQ ... ", card->name); card 3311 drivers/atm/idt77252.c card->name, card) != 0) { card 3312 drivers/atm/idt77252.c printk("%s: can't allocate IRQ.\n", card->name); card 3313 drivers/atm/idt77252.c deinit_card(card); card 3322 drivers/atm/idt77252.c IPRINTK("%s: Initializing SRAM\n", card->name); card 3333 drivers/atm/idt77252.c if (card->sramsize == (512 * 1024)) card 3356 drivers/atm/idt77252.c init_sram(card); card 3362 drivers/atm/idt77252.c if (0 != init_tsq(card)) { card 3363 drivers/atm/idt77252.c deinit_card(card); card 3367 drivers/atm/idt77252.c if (0 != init_rsq(card)) { card 3368 drivers/atm/idt77252.c deinit_card(card); card 3372 drivers/atm/idt77252.c card->vpibits = vpibits; card 3373 drivers/atm/idt77252.c if (card->sramsize == (512 * 1024)) { card 3374 drivers/atm/idt77252.c card->vcibits = 10 - card->vpibits; card 3376 drivers/atm/idt77252.c card->vcibits = 9 - card->vpibits; card 3379 drivers/atm/idt77252.c card->vcimask = 0; card 3380 drivers/atm/idt77252.c for (k = 0, i = 1; k < card->vcibits; k++) { card 3381 drivers/atm/idt77252.c card->vcimask |= i; card 3385 drivers/atm/idt77252.c IPRINTK("%s: Setting VPI/VCI mask to zero.\n", card->name); card 3392 drivers/atm/idt77252.c card->raw_cell_hnd = dma_alloc_coherent(&card->pcidev->dev, card 3394 drivers/atm/idt77252.c &card->raw_cell_paddr, card 3396 drivers/atm/idt77252.c if (!card->raw_cell_hnd) { card 3397 drivers/atm/idt77252.c printk("%s: memory allocation failure.\n", card->name); card 3398 drivers/atm/idt77252.c deinit_card(card); card 3401 drivers/atm/idt77252.c writel(card->raw_cell_paddr, SAR_REG_RAWHND); card 3402 drivers/atm/idt77252.c IPRINTK("%s: raw cell handle is at 0x%p.\n", card->name, card 3403 drivers/atm/idt77252.c card->raw_cell_hnd); card 3405 drivers/atm/idt77252.c size = sizeof(struct vc_map *) * card->tct_size; card 3406 drivers/atm/idt77252.c IPRINTK("%s: allocate %d byte for VC map.\n", card->name, size); card 3407 drivers/atm/idt77252.c card->vcs = vzalloc(size); card 3408 drivers/atm/idt77252.c if (!card->vcs) { card 3409 drivers/atm/idt77252.c printk("%s: memory allocation failure.\n", card->name); card 3410 drivers/atm/idt77252.c deinit_card(card); card 3414 drivers/atm/idt77252.c size = sizeof(struct vc_map *) * card->scd_size; card 3416 drivers/atm/idt77252.c card->name, size); card 3417 drivers/atm/idt77252.c card->scd2vc = vzalloc(size); card 3418 drivers/atm/idt77252.c if (!card->scd2vc) { card 3419 drivers/atm/idt77252.c printk("%s: memory allocation failure.\n", card->name); card 3420 drivers/atm/idt77252.c deinit_card(card); card 3424 drivers/atm/idt77252.c size = sizeof(struct tst_info) * (card->tst_size - 2); card 3426 drivers/atm/idt77252.c card->name, size); card 3427 drivers/atm/idt77252.c card->soft_tst = vmalloc(size); card 3428 drivers/atm/idt77252.c if (!card->soft_tst) { card 3429 drivers/atm/idt77252.c printk("%s: memory allocation failure.\n", card->name); card 3430 drivers/atm/idt77252.c deinit_card(card); card 3433 drivers/atm/idt77252.c for (i = 0; i < card->tst_size - 2; i++) { card 3434 drivers/atm/idt77252.c card->soft_tst[i].tste = TSTE_OPC_VAR; card 3435 drivers/atm/idt77252.c card->soft_tst[i].vc = NULL; card 3439 drivers/atm/idt77252.c printk("%s: No LT device defined.\n", card->name); card 3440 drivers/atm/idt77252.c deinit_card(card); card 3444 drivers/atm/idt77252.c printk("%s: LT had no IOCTL function defined.\n", card->name); card 3445 drivers/atm/idt77252.c deinit_card(card); card 3462 drivers/atm/idt77252.c card->link_pcr = (linkrate / 8 / 53); card 3464 drivers/atm/idt77252.c card->name, linkrate, card->link_pcr); card 3467 drivers/atm/idt77252.c card->utopia_pcr = card->link_pcr; card 3469 drivers/atm/idt77252.c card->utopia_pcr = (160000000 / 8 / 54); card 3473 drivers/atm/idt77252.c if (card->utopia_pcr > card->link_pcr) card 3474 drivers/atm/idt77252.c rsvdcr = card->utopia_pcr - card->link_pcr; card 3476 drivers/atm/idt77252.c tmpl = (unsigned long) rsvdcr * ((unsigned long) card->tst_size - 2); card 3477 drivers/atm/idt77252.c modl = tmpl % (unsigned long)card->utopia_pcr; card 3478 drivers/atm/idt77252.c tst_entries = (int) (tmpl / (unsigned long)card->utopia_pcr); card 3481 drivers/atm/idt77252.c card->tst_free -= tst_entries; card 3482 drivers/atm/idt77252.c fill_tst(card, NULL, tst_entries, TSTE_OPC_NULL); card 3485 drivers/atm/idt77252.c idt77252_eeprom_init(card); card 3486 drivers/atm/idt77252.c printk("%s: EEPROM: %02x:", card->name, card 3487 drivers/atm/idt77252.c idt77252_eeprom_read_status(card)); card 3491 drivers/atm/idt77252.c idt77252_eeprom_read_byte(card, i) card 3500 drivers/atm/idt77252.c sprintf(tname, "eth%d", card->index); card 3503 drivers/atm/idt77252.c memcpy(card->atmdev->esi, tmp->dev_addr, 6); card 3505 drivers/atm/idt77252.c printk("%s: ESI %pM\n", card->name, card->atmdev->esi); card 3514 drivers/atm/idt77252.c set_bit(IDT77252_BIT_INIT, &card->flags); card 3516 drivers/atm/idt77252.c XPRINTK("%s: IDT77252 ABR SAR initialization complete.\n", card->name); card 3528 drivers/atm/idt77252.c static int idt77252_preset(struct idt77252_dev *card) card 3537 drivers/atm/idt77252.c card->name); card 3538 drivers/atm/idt77252.c if (pci_read_config_word(card->pcidev, PCI_COMMAND, &pci_command)) { card 3539 drivers/atm/idt77252.c printk("%s: can't read PCI_COMMAND.\n", card->name); card 3540 drivers/atm/idt77252.c deinit_card(card); card 3545 drivers/atm/idt77252.c card->name, pci_command); card 3546 drivers/atm/idt77252.c deinit_card(card); card 3550 drivers/atm/idt77252.c if (pci_write_config_word(card->pcidev, PCI_COMMAND, pci_command)) { card 3551 drivers/atm/idt77252.c printk("%s: can't write PCI_COMMAND.\n", card->name); card 3552 drivers/atm/idt77252.c deinit_card(card); card 3564 drivers/atm/idt77252.c IPRINTK("%s: Software resetted.\n", card->name); card 3569 drivers/atm/idt77252.c static unsigned long probe_sram(struct idt77252_dev *card) card 3597 drivers/atm/idt77252.c struct idt77252_dev *card; card 3612 drivers/atm/idt77252.c card = kzalloc(sizeof(struct idt77252_dev), GFP_KERNEL); card 3613 drivers/atm/idt77252.c if (!card) { card 3618 drivers/atm/idt77252.c card->revision = pcidev->revision; card 3619 drivers/atm/idt77252.c card->index = index; card 3620 drivers/atm/idt77252.c card->pcidev = pcidev; card 3621 drivers/atm/idt77252.c sprintf(card->name, "idt77252-%d", card->index); card 3623 drivers/atm/idt77252.c INIT_WORK(&card->tqueue, idt77252_softint); card 3628 drivers/atm/idt77252.c mutex_init(&card->mutex); card 3629 drivers/atm/idt77252.c spin_lock_init(&card->cmd_lock); card 3630 drivers/atm/idt77252.c spin_lock_init(&card->tst_lock); card 3632 drivers/atm/idt77252.c timer_setup(&card->tst_timer, tst_timer, 0); card 3635 drivers/atm/idt77252.c card->membase = ioremap(membase, 1024); card 3636 drivers/atm/idt77252.c if (!card->membase) { card 3637 drivers/atm/idt77252.c printk("%s: can't ioremap() membase\n", card->name); card 3642 drivers/atm/idt77252.c if (idt77252_preset(card)) { card 3643 drivers/atm/idt77252.c printk("%s: preset failed\n", card->name); card 3651 drivers/atm/idt77252.c printk("%s: can't register atm device\n", card->name); card 3655 drivers/atm/idt77252.c dev->dev_data = card; card 3656 drivers/atm/idt77252.c card->atmdev = dev; card 3661 drivers/atm/idt77252.c printk("%s: can't init SUNI\n", card->name); card 3667 drivers/atm/idt77252.c card->sramsize = probe_sram(card); card 3670 drivers/atm/idt77252.c card->fbq[i] = ioremap(srambase | 0x200000 | (i << 18), 4); card 3671 drivers/atm/idt77252.c if (!card->fbq[i]) { card 3672 drivers/atm/idt77252.c printk("%s: can't ioremap() FBQ%d\n", card->name, i); card 3679 drivers/atm/idt77252.c card->name, ((card->revision > 1) && (card->revision < 25)) ? card 3680 drivers/atm/idt77252.c 'A' + card->revision - 1 : '?', membase, srambase, card 3681 drivers/atm/idt77252.c card->sramsize / 1024); card 3684 drivers/atm/idt77252.c printk("%s: init_card failed\n", card->name); card 3689 drivers/atm/idt77252.c dev->ci_range.vpi_bits = card->vpibits; card 3690 drivers/atm/idt77252.c dev->ci_range.vci_bits = card->vcibits; card 3691 drivers/atm/idt77252.c dev->link_rate = card->link_pcr; card 3696 drivers/atm/idt77252.c if (idt77252_dev_open(card)) { card 3697 drivers/atm/idt77252.c printk("%s: dev_open failed\n", card->name); card 3702 drivers/atm/idt77252.c *last = card; card 3703 drivers/atm/idt77252.c last = &card->next; card 3713 drivers/atm/idt77252.c deinit_card(card); card 3716 drivers/atm/idt77252.c iounmap(card->membase); card 3719 drivers/atm/idt77252.c kfree(card); card 3760 drivers/atm/idt77252.c struct idt77252_dev *card; card 3766 drivers/atm/idt77252.c card = idt77252_chain; card 3767 drivers/atm/idt77252.c dev = card->atmdev; card 3768 drivers/atm/idt77252.c idt77252_chain = card->next; card 3772 drivers/atm/idt77252.c deinit_card(card); card 3773 drivers/atm/idt77252.c pci_disable_device(card->pcidev); card 3774 drivers/atm/idt77252.c kfree(card); card 43 drivers/atm/idt77252.h #define VPCI2VC(card, vpi, vci) \ card 44 drivers/atm/idt77252.h (((vpi) << card->vcibits) | ((vci) & card->vcimask)) card 216 drivers/atm/idt77252.h struct idt77252_dev *card; card 441 drivers/atm/idt77252.h #define SAR_REG_DR0 (card->membase + 0x00) card 442 drivers/atm/idt77252.h #define SAR_REG_DR1 (card->membase + 0x04) card 443 drivers/atm/idt77252.h #define SAR_REG_DR2 (card->membase + 0x08) card 444 drivers/atm/idt77252.h #define SAR_REG_DR3 (card->membase + 0x0C) card 445 drivers/atm/idt77252.h #define SAR_REG_CMD (card->membase + 0x10) card 446 drivers/atm/idt77252.h #define SAR_REG_CFG (card->membase + 0x14) card 447 drivers/atm/idt77252.h #define SAR_REG_STAT (card->membase + 0x18) card 448 drivers/atm/idt77252.h #define SAR_REG_RSQB (card->membase + 0x1C) card 449 drivers/atm/idt77252.h #define SAR_REG_RSQT (card->membase + 0x20) card 450 drivers/atm/idt77252.h #define SAR_REG_RSQH (card->membase + 0x24) card 451 drivers/atm/idt77252.h #define SAR_REG_CDC (card->membase + 0x28) card 452 drivers/atm/idt77252.h #define SAR_REG_VPEC (card->membase + 0x2C) card 453 drivers/atm/idt77252.h #define SAR_REG_ICC (card->membase + 0x30) card 454 drivers/atm/idt77252.h #define SAR_REG_RAWCT (card->membase + 0x34) card 455 drivers/atm/idt77252.h #define SAR_REG_TMR (card->membase + 0x38) card 456 drivers/atm/idt77252.h #define SAR_REG_TSTB (card->membase + 0x3C) card 457 drivers/atm/idt77252.h #define SAR_REG_TSQB (card->membase + 0x40) card 458 drivers/atm/idt77252.h #define SAR_REG_TSQT (card->membase + 0x44) card 459 drivers/atm/idt77252.h #define SAR_REG_TSQH (card->membase + 0x48) card 460 drivers/atm/idt77252.h #define SAR_REG_GP (card->membase + 0x4C) card 461 drivers/atm/idt77252.h #define SAR_REG_VPM (card->membase + 0x50) card 462 drivers/atm/idt77252.h #define SAR_REG_RXFD (card->membase + 0x54) card 463 drivers/atm/idt77252.h #define SAR_REG_RXFT (card->membase + 0x58) card 464 drivers/atm/idt77252.h #define SAR_REG_RXFH (card->membase + 0x5C) card 465 drivers/atm/idt77252.h #define SAR_REG_RAWHND (card->membase + 0x60) card 466 drivers/atm/idt77252.h #define SAR_REG_RXSTAT (card->membase + 0x64) card 467 drivers/atm/idt77252.h #define SAR_REG_ABRSTD (card->membase + 0x68) card 468 drivers/atm/idt77252.h #define SAR_REG_ABRRQ (card->membase + 0x6C) card 469 drivers/atm/idt77252.h #define SAR_REG_VBRRQ (card->membase + 0x70) card 470 drivers/atm/idt77252.h #define SAR_REG_RTBL (card->membase + 0x74) card 471 drivers/atm/idt77252.h #define SAR_REG_MDFCT (card->membase + 0x78) card 472 drivers/atm/idt77252.h #define SAR_REG_TXSTAT (card->membase + 0x7C) card 473 drivers/atm/idt77252.h #define SAR_REG_TCMDQ (card->membase + 0x80) card 474 drivers/atm/idt77252.h #define SAR_REG_IRCP (card->membase + 0x84) card 475 drivers/atm/idt77252.h #define SAR_REG_FBQP0 (card->membase + 0x88) card 476 drivers/atm/idt77252.h #define SAR_REG_FBQP1 (card->membase + 0x8C) card 477 drivers/atm/idt77252.h #define SAR_REG_FBQP2 (card->membase + 0x90) card 478 drivers/atm/idt77252.h #define SAR_REG_FBQP3 (card->membase + 0x94) card 479 drivers/atm/idt77252.h #define SAR_REG_FBQS0 (card->membase + 0x98) card 480 drivers/atm/idt77252.h #define SAR_REG_FBQS1 (card->membase + 0x9C) card 481 drivers/atm/idt77252.h #define SAR_REG_FBQS2 (card->membase + 0xA0) card 482 drivers/atm/idt77252.h #define SAR_REG_FBQS3 (card->membase + 0xA4) card 483 drivers/atm/idt77252.h #define SAR_REG_FBQWP0 (card->membase + 0xA8) card 484 drivers/atm/idt77252.h #define SAR_REG_FBQWP1 (card->membase + 0xAC) card 485 drivers/atm/idt77252.h #define SAR_REG_FBQWP2 (card->membase + 0xB0) card 486 drivers/atm/idt77252.h #define SAR_REG_FBQWP3 (card->membase + 0xB4) card 487 drivers/atm/idt77252.h #define SAR_REG_NOW (card->membase + 0xB8) card 105 drivers/atm/nicstar.c #define CMD_BUSY(card) (readl((card)->membase + STAT) & NS_STAT_CMDBZ) card 120 drivers/atm/nicstar.c static u32 ns_read_sram(ns_dev * card, u32 sram_address); card 121 drivers/atm/nicstar.c static void ns_write_sram(ns_dev * card, u32 sram_address, u32 * value, card 124 drivers/atm/nicstar.c static void ns_init_card_error(ns_dev * card, int error); card 125 drivers/atm/nicstar.c static scq_info *get_scq(ns_dev *card, int size, u32 scd); card 126 drivers/atm/nicstar.c static void free_scq(ns_dev *card, scq_info * scq, struct atm_vcc *vcc); card 131 drivers/atm/nicstar.c static void fill_tst(ns_dev * card, int n, vc_map * vc); card 133 drivers/atm/nicstar.c static int push_scqe(ns_dev * card, vc_map * vc, scq_info * scq, ns_scqe * tbd, card 135 drivers/atm/nicstar.c static void process_tsq(ns_dev * card); card 136 drivers/atm/nicstar.c static void drain_scq(ns_dev * card, scq_info * scq, int pos); card 137 drivers/atm/nicstar.c static void process_rsq(ns_dev * card); card 138 drivers/atm/nicstar.c static void dequeue_rx(ns_dev * card, ns_rsqe * rsqe); card 139 drivers/atm/nicstar.c static void recycle_rx_buf(ns_dev * card, struct sk_buff *skb); card 140 drivers/atm/nicstar.c static void recycle_iovec_rx_bufs(ns_dev * card, struct iovec *iov, int count); card 141 drivers/atm/nicstar.c static void recycle_iov_buf(ns_dev * card, struct sk_buff *iovb); card 142 drivers/atm/nicstar.c static void dequeue_sm_buf(ns_dev * card, struct sk_buff *sb); card 143 drivers/atm/nicstar.c static void dequeue_lg_buf(ns_dev * card, struct sk_buff *lb); card 147 drivers/atm/nicstar.c static void which_list(ns_dev * card, struct sk_buff *skb); card 199 drivers/atm/nicstar.c ns_dev *card = pci_get_drvdata(pcidev); card 205 drivers/atm/nicstar.c i = card->index; card 210 drivers/atm/nicstar.c if (card->atmdev->phy && card->atmdev->phy->stop) card 211 drivers/atm/nicstar.c card->atmdev->phy->stop(card->atmdev); card 214 drivers/atm/nicstar.c writel(0x00000000, card->membase + CFG); card 217 drivers/atm/nicstar.c atm_dev_deregister(card->atmdev); card 224 drivers/atm/nicstar.c PRINTK("nicstar%d: freeing %d huge buffers.\n", i, card->hbpool.count); card 225 drivers/atm/nicstar.c while ((hb = skb_dequeue(&card->hbpool.queue)) != NULL) { card 232 drivers/atm/nicstar.c card->iovpool.count); card 233 drivers/atm/nicstar.c while ((iovb = skb_dequeue(&card->iovpool.queue)) != NULL) { card 238 drivers/atm/nicstar.c while ((lb = skb_dequeue(&card->lbpool.queue)) != NULL) card 240 drivers/atm/nicstar.c while ((sb = skb_dequeue(&card->sbpool.queue)) != NULL) card 242 drivers/atm/nicstar.c free_scq(card, card->scq0, NULL); card 244 drivers/atm/nicstar.c if (card->scd2vc[j] != NULL) card 245 drivers/atm/nicstar.c free_scq(card, card->scd2vc[j]->scq, card->scd2vc[j]->tx_vcc); card 247 drivers/atm/nicstar.c idr_destroy(&card->idr); card 248 drivers/atm/nicstar.c dma_free_coherent(&card->pcidev->dev, NS_RSQSIZE + NS_RSQ_ALIGNMENT, card 249 drivers/atm/nicstar.c card->rsq.org, card->rsq.dma); card 250 drivers/atm/nicstar.c dma_free_coherent(&card->pcidev->dev, NS_TSQSIZE + NS_TSQ_ALIGNMENT, card 251 drivers/atm/nicstar.c card->tsq.org, card->tsq.dma); card 252 drivers/atm/nicstar.c free_irq(card->pcidev->irq, card); card 253 drivers/atm/nicstar.c iounmap(card->membase); card 254 drivers/atm/nicstar.c kfree(card); card 307 drivers/atm/nicstar.c static u32 ns_read_sram(ns_dev * card, u32 sram_address) card 314 drivers/atm/nicstar.c spin_lock_irqsave(&card->res_lock, flags); card 315 drivers/atm/nicstar.c while (CMD_BUSY(card)) ; card 316 drivers/atm/nicstar.c writel(sram_address, card->membase + CMD); card 317 drivers/atm/nicstar.c while (CMD_BUSY(card)) ; card 318 drivers/atm/nicstar.c data = readl(card->membase + DR0); card 319 drivers/atm/nicstar.c spin_unlock_irqrestore(&card->res_lock, flags); card 323 drivers/atm/nicstar.c static void ns_write_sram(ns_dev * card, u32 sram_address, u32 * value, card 331 drivers/atm/nicstar.c spin_lock_irqsave(&card->res_lock, flags); card 332 drivers/atm/nicstar.c while (CMD_BUSY(card)) ; card 334 drivers/atm/nicstar.c writel(*(value++), card->membase + i); card 340 drivers/atm/nicstar.c writel(sram_address, card->membase + CMD); card 341 drivers/atm/nicstar.c spin_unlock_irqrestore(&card->res_lock, flags); card 347 drivers/atm/nicstar.c struct ns_dev *card = NULL; card 361 drivers/atm/nicstar.c ns_init_card_error(card, error); card 368 drivers/atm/nicstar.c ns_init_card_error(card, error); card 372 drivers/atm/nicstar.c card = kmalloc(sizeof(*card), GFP_KERNEL); card 373 drivers/atm/nicstar.c if (!card) { card 378 drivers/atm/nicstar.c ns_init_card_error(card, error); card 381 drivers/atm/nicstar.c cards[i] = card; card 382 drivers/atm/nicstar.c spin_lock_init(&card->int_lock); card 383 drivers/atm/nicstar.c spin_lock_init(&card->res_lock); card 385 drivers/atm/nicstar.c pci_set_drvdata(pcidev, card); card 387 drivers/atm/nicstar.c card->index = i; card 388 drivers/atm/nicstar.c card->atmdev = NULL; card 389 drivers/atm/nicstar.c card->pcidev = pcidev; card 391 drivers/atm/nicstar.c card->membase = ioremap(membase, NS_IOREMAP_SIZE); card 392 drivers/atm/nicstar.c if (!card->membase) { card 395 drivers/atm/nicstar.c ns_init_card_error(card, error); card 398 drivers/atm/nicstar.c PRINTK("nicstar%d: membase at 0x%p.\n", i, card->membase); card 405 drivers/atm/nicstar.c ns_init_card_error(card, error); card 422 drivers/atm/nicstar.c ns_init_card_error(card, error); card 429 drivers/atm/nicstar.c data = readl(card->membase + STAT); card 431 drivers/atm/nicstar.c writel(NS_STAT_TMROF, card->membase + STAT); card 434 drivers/atm/nicstar.c writel(NS_CFG_SWRST, card->membase + CFG); card 436 drivers/atm/nicstar.c writel(0x00000000, card->membase + CFG); card 439 drivers/atm/nicstar.c writel(0x00000008, card->membase + GP); card 441 drivers/atm/nicstar.c writel(0x00000001, card->membase + GP); card 443 drivers/atm/nicstar.c while (CMD_BUSY(card)) ; card 444 drivers/atm/nicstar.c writel(NS_CMD_WRITE_UTILITY | 0x00000100, card->membase + CMD); /* Sync UTOPIA with SAR clock */ card 448 drivers/atm/nicstar.c while (CMD_BUSY(card)) ; card 449 drivers/atm/nicstar.c writel(NS_CMD_READ_UTILITY | 0x00000200, card->membase + CMD); card 450 drivers/atm/nicstar.c while (CMD_BUSY(card)) ; card 451 drivers/atm/nicstar.c data = readl(card->membase + DR0); card 455 drivers/atm/nicstar.c card->max_pcr = ATM_25_PCR; card 456 drivers/atm/nicstar.c while (CMD_BUSY(card)) ; card 457 drivers/atm/nicstar.c writel(0x00000008, card->membase + DR0); card 458 drivers/atm/nicstar.c writel(NS_CMD_WRITE_UTILITY | 0x00000200, card->membase + CMD); card 460 drivers/atm/nicstar.c writel(NS_STAT_SFBQF, card->membase + STAT); card 462 drivers/atm/nicstar.c while (CMD_BUSY(card)) ; card 463 drivers/atm/nicstar.c writel(0x00000022, card->membase + DR0); card 464 drivers/atm/nicstar.c writel(NS_CMD_WRITE_UTILITY | 0x00000202, card->membase + CMD); card 470 drivers/atm/nicstar.c card->max_pcr = ATM_OC3_PCR; card 472 drivers/atm/nicstar.c while (CMD_BUSY(card)) ; card 473 drivers/atm/nicstar.c writel(0x00000002, card->membase + DR0); card 474 drivers/atm/nicstar.c writel(NS_CMD_WRITE_UTILITY | 0x00000205, card->membase + CMD); card 480 drivers/atm/nicstar.c ns_init_card_error(card, error); card 483 drivers/atm/nicstar.c writel(0x00000000, card->membase + GP); card 487 drivers/atm/nicstar.c ns_write_sram(card, 0x1C003, &data, 1); card 489 drivers/atm/nicstar.c ns_write_sram(card, 0x14003, &data, 1); card 490 drivers/atm/nicstar.c if (ns_read_sram(card, 0x14003) == 0x89ABCDEF && card 491 drivers/atm/nicstar.c ns_read_sram(card, 0x1C003) == 0x76543210) card 492 drivers/atm/nicstar.c card->sram_size = 128; card 494 drivers/atm/nicstar.c card->sram_size = 32; card 495 drivers/atm/nicstar.c PRINTK("nicstar%d: %dK x 32bit SRAM size.\n", i, card->sram_size); card 497 drivers/atm/nicstar.c card->rct_size = NS_MAX_RCTSIZE; card 500 drivers/atm/nicstar.c if (card->sram_size == 128) card 505 drivers/atm/nicstar.c if (card->sram_size == 32) { card 509 drivers/atm/nicstar.c card->rct_size = 4096; card 515 drivers/atm/nicstar.c card->vpibits = NS_VPIBITS; card 516 drivers/atm/nicstar.c if (card->rct_size == 4096) card 517 drivers/atm/nicstar.c card->vcibits = 12 - NS_VPIBITS; card 519 drivers/atm/nicstar.c card->vcibits = 14 - NS_VPIBITS; card 523 drivers/atm/nicstar.c nicstar_init_eprom(card->membase); card 526 drivers/atm/nicstar.c writel(0x00000000, card->membase + VPM); card 529 drivers/atm/nicstar.c card->tsq.org = dma_alloc_coherent(&card->pcidev->dev, card 531 drivers/atm/nicstar.c &card->tsq.dma, GFP_KERNEL); card 532 drivers/atm/nicstar.c if (card->tsq.org == NULL) { card 535 drivers/atm/nicstar.c ns_init_card_error(card, error); card 538 drivers/atm/nicstar.c card->tsq.base = PTR_ALIGN(card->tsq.org, NS_TSQ_ALIGNMENT); card 539 drivers/atm/nicstar.c card->tsq.next = card->tsq.base; card 540 drivers/atm/nicstar.c card->tsq.last = card->tsq.base + (NS_TSQ_NUM_ENTRIES - 1); card 542 drivers/atm/nicstar.c ns_tsi_init(card->tsq.base + j); card 543 drivers/atm/nicstar.c writel(0x00000000, card->membase + TSQH); card 544 drivers/atm/nicstar.c writel(ALIGN(card->tsq.dma, NS_TSQ_ALIGNMENT), card->membase + TSQB); card 545 drivers/atm/nicstar.c PRINTK("nicstar%d: TSQ base at 0x%p.\n", i, card->tsq.base); card 548 drivers/atm/nicstar.c card->rsq.org = dma_alloc_coherent(&card->pcidev->dev, card 550 drivers/atm/nicstar.c &card->rsq.dma, GFP_KERNEL); card 551 drivers/atm/nicstar.c if (card->rsq.org == NULL) { card 554 drivers/atm/nicstar.c ns_init_card_error(card, error); card 557 drivers/atm/nicstar.c card->rsq.base = PTR_ALIGN(card->rsq.org, NS_RSQ_ALIGNMENT); card 558 drivers/atm/nicstar.c card->rsq.next = card->rsq.base; card 559 drivers/atm/nicstar.c card->rsq.last = card->rsq.base + (NS_RSQ_NUM_ENTRIES - 1); card 561 drivers/atm/nicstar.c ns_rsqe_init(card->rsq.base + j); card 562 drivers/atm/nicstar.c writel(0x00000000, card->membase + RSQH); card 563 drivers/atm/nicstar.c writel(ALIGN(card->rsq.dma, NS_RSQ_ALIGNMENT), card->membase + RSQB); card 564 drivers/atm/nicstar.c PRINTK("nicstar%d: RSQ base at 0x%p.\n", i, card->rsq.base); card 567 drivers/atm/nicstar.c card->scq1 = NULL; card 568 drivers/atm/nicstar.c card->scq2 = NULL; card 569 drivers/atm/nicstar.c card->scq0 = get_scq(card, VBR_SCQSIZE, NS_VRSCD0); card 570 drivers/atm/nicstar.c if (card->scq0 == NULL) { card 573 drivers/atm/nicstar.c ns_init_card_error(card, error); card 576 drivers/atm/nicstar.c u32d[0] = scq_virt_to_bus(card->scq0, card->scq0->base); card 580 drivers/atm/nicstar.c ns_write_sram(card, NS_VRSCD0, u32d, 4); card 581 drivers/atm/nicstar.c ns_write_sram(card, NS_VRSCD1, u32d, 4); /* These last two won't be used */ card 582 drivers/atm/nicstar.c ns_write_sram(card, NS_VRSCD2, u32d, 4); /* but are initialized, just in case... */ card 583 drivers/atm/nicstar.c card->scq0->scd = NS_VRSCD0; card 584 drivers/atm/nicstar.c PRINTK("nicstar%d: VBR-SCQ0 base at 0x%p.\n", i, card->scq0->base); card 587 drivers/atm/nicstar.c card->tst_addr = NS_TST0; card 588 drivers/atm/nicstar.c card->tst_free_entries = NS_TST_NUM_ENTRIES; card 591 drivers/atm/nicstar.c ns_write_sram(card, NS_TST0 + j, &data, 1); card 593 drivers/atm/nicstar.c ns_write_sram(card, NS_TST0 + NS_TST_NUM_ENTRIES, &data, 1); card 595 drivers/atm/nicstar.c ns_write_sram(card, NS_TST1 + j, &data, 1); card 597 drivers/atm/nicstar.c ns_write_sram(card, NS_TST1 + NS_TST_NUM_ENTRIES, &data, 1); card 599 drivers/atm/nicstar.c card->tste2vc[j] = NULL; card 600 drivers/atm/nicstar.c writel(NS_TST0 << 2, card->membase + TSTB); card 611 drivers/atm/nicstar.c for (j = 0; j < card->rct_size; j++) card 612 drivers/atm/nicstar.c ns_write_sram(card, j * 4, u32d, 4); card 614 drivers/atm/nicstar.c memset(card->vcmap, 0, sizeof(card->vcmap)); card 617 drivers/atm/nicstar.c card->scd2vc[j] = NULL; card 620 drivers/atm/nicstar.c card->sbnr.min = MIN_SB; card 621 drivers/atm/nicstar.c card->sbnr.init = NUM_SB; card 622 drivers/atm/nicstar.c card->sbnr.max = MAX_SB; card 623 drivers/atm/nicstar.c card->lbnr.min = MIN_LB; card 624 drivers/atm/nicstar.c card->lbnr.init = NUM_LB; card 625 drivers/atm/nicstar.c card->lbnr.max = MAX_LB; card 626 drivers/atm/nicstar.c card->iovnr.min = MIN_IOVB; card 627 drivers/atm/nicstar.c card->iovnr.init = NUM_IOVB; card 628 drivers/atm/nicstar.c card->iovnr.max = MAX_IOVB; card 629 drivers/atm/nicstar.c card->hbnr.min = MIN_HB; card 630 drivers/atm/nicstar.c card->hbnr.init = NUM_HB; card 631 drivers/atm/nicstar.c card->hbnr.max = MAX_HB; card 633 drivers/atm/nicstar.c card->sm_handle = NULL; card 634 drivers/atm/nicstar.c card->sm_addr = 0x00000000; card 635 drivers/atm/nicstar.c card->lg_handle = NULL; card 636 drivers/atm/nicstar.c card->lg_addr = 0x00000000; card 638 drivers/atm/nicstar.c card->efbie = 1; /* To prevent push_rxbufs from enabling the interrupt */ card 640 drivers/atm/nicstar.c idr_init(&card->idr); card 643 drivers/atm/nicstar.c skb_queue_head_init(&card->hbpool.queue); card 644 drivers/atm/nicstar.c card->hbpool.count = 0; card 653 drivers/atm/nicstar.c ns_init_card_error(card, error); card 657 drivers/atm/nicstar.c skb_queue_tail(&card->hbpool.queue, hb); card 658 drivers/atm/nicstar.c card->hbpool.count++; card 662 drivers/atm/nicstar.c skb_queue_head_init(&card->lbpool.queue); card 663 drivers/atm/nicstar.c card->lbpool.count = 0; /* Not used */ card 672 drivers/atm/nicstar.c ns_init_card_error(card, error); card 676 drivers/atm/nicstar.c skb_queue_tail(&card->lbpool.queue, lb); card 678 drivers/atm/nicstar.c push_rxbufs(card, lb); card 681 drivers/atm/nicstar.c card->rcbuf = lb; card 682 drivers/atm/nicstar.c card->rawcell = (struct ns_rcqe *) lb->data; card 683 drivers/atm/nicstar.c card->rawch = NS_PRV_DMA(lb); card 688 drivers/atm/nicstar.c ns_stat_lfbqc_get(readl(card->membase + STAT))) < card->lbnr.min) { card 693 drivers/atm/nicstar.c ns_init_card_error(card, error); card 698 drivers/atm/nicstar.c skb_queue_head_init(&card->sbpool.queue); card 699 drivers/atm/nicstar.c card->sbpool.count = 0; /* Not used */ card 708 drivers/atm/nicstar.c ns_init_card_error(card, error); card 712 drivers/atm/nicstar.c skb_queue_tail(&card->sbpool.queue, sb); card 714 drivers/atm/nicstar.c push_rxbufs(card, sb); card 718 drivers/atm/nicstar.c ns_stat_sfbqc_get(readl(card->membase + STAT))) < card->sbnr.min) { card 723 drivers/atm/nicstar.c ns_init_card_error(card, error); card 728 drivers/atm/nicstar.c skb_queue_head_init(&card->iovpool.queue); card 729 drivers/atm/nicstar.c card->iovpool.count = 0; card 738 drivers/atm/nicstar.c ns_init_card_error(card, error); card 742 drivers/atm/nicstar.c skb_queue_tail(&card->iovpool.queue, iovb); card 743 drivers/atm/nicstar.c card->iovpool.count++; card 747 drivers/atm/nicstar.c if (card->rct_size == 4096) card 752 drivers/atm/nicstar.c card->efbie = 1; card 754 drivers/atm/nicstar.c card->intcnt = 0; card 756 drivers/atm/nicstar.c (pcidev->irq, &ns_irq_handler, IRQF_SHARED, "nicstar", card) != 0) { card 759 drivers/atm/nicstar.c ns_init_card_error(card, error); card 764 drivers/atm/nicstar.c card->atmdev = atm_dev_register("nicstar", &card->pcidev->dev, &atm_ops, card 766 drivers/atm/nicstar.c if (card->atmdev == NULL) { card 769 drivers/atm/nicstar.c ns_init_card_error(card, error); card 773 drivers/atm/nicstar.c if (mac[i] == NULL || !mac_pton(mac[i], card->atmdev->esi)) { card 774 drivers/atm/nicstar.c nicstar_read_eprom(card->membase, NICSTAR_EPROM_MAC_ADDR_OFFSET, card 775 drivers/atm/nicstar.c card->atmdev->esi, 6); card 776 drivers/atm/nicstar.c if (ether_addr_equal(card->atmdev->esi, "\x00\x00\x00\x00\x00\x00")) { card 777 drivers/atm/nicstar.c nicstar_read_eprom(card->membase, card 779 drivers/atm/nicstar.c card->atmdev->esi, 6); card 783 drivers/atm/nicstar.c printk("nicstar%d: MAC address %pM\n", i, card->atmdev->esi); card 785 drivers/atm/nicstar.c card->atmdev->dev_data = card; card 786 drivers/atm/nicstar.c card->atmdev->ci_range.vpi_bits = card->vpibits; card 787 drivers/atm/nicstar.c card->atmdev->ci_range.vci_bits = card->vcibits; card 788 drivers/atm/nicstar.c card->atmdev->link_rate = card->max_pcr; card 789 drivers/atm/nicstar.c card->atmdev->phy = NULL; card 792 drivers/atm/nicstar.c if (card->max_pcr == ATM_OC3_PCR) card 793 drivers/atm/nicstar.c suni_init(card->atmdev); card 797 drivers/atm/nicstar.c if (card->max_pcr == ATM_25_PCR) card 798 drivers/atm/nicstar.c idt77105_init(card->atmdev); card 801 drivers/atm/nicstar.c if (card->atmdev->phy && card->atmdev->phy->start) card 802 drivers/atm/nicstar.c card->atmdev->phy->start(card->atmdev); card 806 drivers/atm/nicstar.c NS_CFG_PHYIE, card->membase + CFG); card 813 drivers/atm/nicstar.c static void ns_init_card_error(ns_dev *card, int error) card 816 drivers/atm/nicstar.c writel(0x00000000, card->membase + CFG); card 820 drivers/atm/nicstar.c while ((iovb = skb_dequeue(&card->iovpool.queue)) != NULL) card 825 drivers/atm/nicstar.c while ((sb = skb_dequeue(&card->sbpool.queue)) != NULL) card 827 drivers/atm/nicstar.c free_scq(card, card->scq0, NULL); card 831 drivers/atm/nicstar.c while ((lb = skb_dequeue(&card->lbpool.queue)) != NULL) card 836 drivers/atm/nicstar.c while ((hb = skb_dequeue(&card->hbpool.queue)) != NULL) card 840 drivers/atm/nicstar.c kfree(card->rsq.org); card 843 drivers/atm/nicstar.c kfree(card->tsq.org); card 846 drivers/atm/nicstar.c free_irq(card->pcidev->irq, card); card 849 drivers/atm/nicstar.c iounmap(card->membase); card 852 drivers/atm/nicstar.c pci_disable_device(card->pcidev); card 853 drivers/atm/nicstar.c kfree(card); card 857 drivers/atm/nicstar.c static scq_info *get_scq(ns_dev *card, int size, u32 scd) card 868 drivers/atm/nicstar.c scq->org = dma_alloc_coherent(&card->pcidev->dev, card 878 drivers/atm/nicstar.c dma_free_coherent(&card->pcidev->dev, card 902 drivers/atm/nicstar.c static void free_scq(ns_dev *card, scq_info *scq, struct atm_vcc *vcc) card 933 drivers/atm/nicstar.c dma_free_coherent(&card->pcidev->dev, card 942 drivers/atm/nicstar.c static void push_rxbufs(ns_dev * card, struct sk_buff *skb) card 954 drivers/atm/nicstar.c addr1 = dma_map_single(&card->pcidev->dev, card 964 drivers/atm/nicstar.c card->index); card 967 drivers/atm/nicstar.c stat = readl(card->membase + STAT); card 968 drivers/atm/nicstar.c card->sbfqc = ns_stat_sfbqc_get(stat); card 969 drivers/atm/nicstar.c card->lbfqc = ns_stat_lfbqc_get(stat); card 972 drivers/atm/nicstar.c if (card->sm_addr) { card 973 drivers/atm/nicstar.c addr2 = card->sm_addr; card 974 drivers/atm/nicstar.c handle2 = card->sm_handle; card 975 drivers/atm/nicstar.c card->sm_addr = 0x00000000; card 976 drivers/atm/nicstar.c card->sm_handle = NULL; card 979 drivers/atm/nicstar.c card->sm_addr = addr1; card 980 drivers/atm/nicstar.c card->sm_handle = handle1; card 986 drivers/atm/nicstar.c if (card->lg_addr) { card 987 drivers/atm/nicstar.c addr2 = card->lg_addr; card 988 drivers/atm/nicstar.c handle2 = card->lg_handle; card 989 drivers/atm/nicstar.c card->lg_addr = 0x00000000; card 990 drivers/atm/nicstar.c card->lg_handle = NULL; card 993 drivers/atm/nicstar.c card->lg_addr = addr1; card 994 drivers/atm/nicstar.c card->lg_handle = handle1; card 1001 drivers/atm/nicstar.c if (card->sbfqc >= card->sbnr.max) { card 1002 drivers/atm/nicstar.c skb_unlink(handle1, &card->sbpool.queue); card 1004 drivers/atm/nicstar.c skb_unlink(handle2, &card->sbpool.queue); card 1008 drivers/atm/nicstar.c card->sbfqc += 2; card 1011 drivers/atm/nicstar.c if (card->lbfqc >= card->lbnr.max) { card 1012 drivers/atm/nicstar.c skb_unlink(handle1, &card->lbpool.queue); card 1014 drivers/atm/nicstar.c skb_unlink(handle2, &card->lbpool.queue); card 1018 drivers/atm/nicstar.c card->lbfqc += 2; card 1021 drivers/atm/nicstar.c id1 = idr_alloc(&card->idr, handle1, 0, 0, GFP_ATOMIC); card 1025 drivers/atm/nicstar.c id2 = idr_alloc(&card->idr, handle2, 0, 0, GFP_ATOMIC); card 1029 drivers/atm/nicstar.c spin_lock_irqsave(&card->res_lock, flags); card 1030 drivers/atm/nicstar.c while (CMD_BUSY(card)) ; card 1031 drivers/atm/nicstar.c writel(addr2, card->membase + DR3); card 1032 drivers/atm/nicstar.c writel(id2, card->membase + DR2); card 1033 drivers/atm/nicstar.c writel(addr1, card->membase + DR1); card 1034 drivers/atm/nicstar.c writel(id1, card->membase + DR0); card 1036 drivers/atm/nicstar.c card->membase + CMD); card 1037 drivers/atm/nicstar.c spin_unlock_irqrestore(&card->res_lock, flags); card 1040 drivers/atm/nicstar.c card->index, card 1045 drivers/atm/nicstar.c if (!card->efbie && card->sbfqc >= card->sbnr.min && card 1046 drivers/atm/nicstar.c card->lbfqc >= card->lbnr.min) { card 1047 drivers/atm/nicstar.c card->efbie = 1; card 1048 drivers/atm/nicstar.c writel((readl(card->membase + CFG) | NS_CFG_EFBIE), card 1049 drivers/atm/nicstar.c card->membase + CFG); card 1059 drivers/atm/nicstar.c ns_dev *card; card 1063 drivers/atm/nicstar.c card = (ns_dev *) dev_id; card 1064 drivers/atm/nicstar.c dev = card->atmdev; card 1065 drivers/atm/nicstar.c card->intcnt++; card 1067 drivers/atm/nicstar.c PRINTK("nicstar%d: NICStAR generated an interrupt\n", card->index); card 1069 drivers/atm/nicstar.c spin_lock_irqsave(&card->int_lock, flags); card 1071 drivers/atm/nicstar.c stat_r = readl(card->membase + STAT); card 1075 drivers/atm/nicstar.c TXPRINTK("nicstar%d: TSI interrupt\n", card->index); card 1076 drivers/atm/nicstar.c process_tsq(card); card 1077 drivers/atm/nicstar.c writel(NS_STAT_TSIF, card->membase + STAT); card 1082 drivers/atm/nicstar.c writel(NS_STAT_TXICP, card->membase + STAT); card 1084 drivers/atm/nicstar.c card->index); card 1089 drivers/atm/nicstar.c writel(NS_STAT_TSQF, card->membase + STAT); card 1090 drivers/atm/nicstar.c PRINTK("nicstar%d: TSQ full.\n", card->index); card 1091 drivers/atm/nicstar.c process_tsq(card); card 1096 drivers/atm/nicstar.c writel(NS_STAT_TMROF, card->membase + STAT); card 1097 drivers/atm/nicstar.c PRINTK("nicstar%d: Timer overflow.\n", card->index); card 1102 drivers/atm/nicstar.c writel(NS_STAT_PHYI, card->membase + STAT); card 1103 drivers/atm/nicstar.c PRINTK("nicstar%d: PHY interrupt.\n", card->index); card 1111 drivers/atm/nicstar.c writel(NS_STAT_SFBQF, card->membase + STAT); card 1113 drivers/atm/nicstar.c card->index); card 1118 drivers/atm/nicstar.c writel(NS_STAT_LFBQF, card->membase + STAT); card 1120 drivers/atm/nicstar.c card->index); card 1125 drivers/atm/nicstar.c writel(NS_STAT_RSQF, card->membase + STAT); card 1126 drivers/atm/nicstar.c printk("nicstar%d: RSQ full.\n", card->index); card 1127 drivers/atm/nicstar.c process_rsq(card); card 1132 drivers/atm/nicstar.c RXPRINTK("nicstar%d: End of CS-PDU received.\n", card->index); card 1133 drivers/atm/nicstar.c process_rsq(card); card 1134 drivers/atm/nicstar.c writel(NS_STAT_EOPDU, card->membase + STAT); card 1139 drivers/atm/nicstar.c writel(NS_STAT_RAWCF, card->membase + STAT); card 1142 drivers/atm/nicstar.c card->index); card 1147 drivers/atm/nicstar.c while (readl(card->membase + RAWCT) != card->rawch) { card 1149 drivers/atm/nicstar.c if (ns_rcqe_islast(card->rawcell)) { card 1152 drivers/atm/nicstar.c oldbuf = card->rcbuf; card 1153 drivers/atm/nicstar.c card->rcbuf = idr_find(&card->idr, card 1154 drivers/atm/nicstar.c ns_rcqe_nextbufhandle(card->rawcell)); card 1155 drivers/atm/nicstar.c card->rawch = NS_PRV_DMA(card->rcbuf); card 1156 drivers/atm/nicstar.c card->rawcell = (struct ns_rcqe *) card 1157 drivers/atm/nicstar.c card->rcbuf->data; card 1158 drivers/atm/nicstar.c recycle_rx_buf(card, oldbuf); card 1160 drivers/atm/nicstar.c card->rawch += NS_RCQE_SIZE; card 1161 drivers/atm/nicstar.c card->rawcell++; card 1171 drivers/atm/nicstar.c writel(NS_STAT_SFBQE, card->membase + STAT); card 1173 drivers/atm/nicstar.c card->index); card 1174 drivers/atm/nicstar.c for (i = 0; i < card->sbnr.min; i++) { card 1177 drivers/atm/nicstar.c writel(readl(card->membase + CFG) & card 1178 drivers/atm/nicstar.c ~NS_CFG_EFBIE, card->membase + CFG); card 1179 drivers/atm/nicstar.c card->efbie = 0; card 1183 drivers/atm/nicstar.c skb_queue_tail(&card->sbpool.queue, sb); card 1185 drivers/atm/nicstar.c push_rxbufs(card, sb); card 1187 drivers/atm/nicstar.c card->sbfqc = i; card 1188 drivers/atm/nicstar.c process_rsq(card); card 1196 drivers/atm/nicstar.c writel(NS_STAT_LFBQE, card->membase + STAT); card 1198 drivers/atm/nicstar.c card->index); card 1199 drivers/atm/nicstar.c for (i = 0; i < card->lbnr.min; i++) { card 1202 drivers/atm/nicstar.c writel(readl(card->membase + CFG) & card 1203 drivers/atm/nicstar.c ~NS_CFG_EFBIE, card->membase + CFG); card 1204 drivers/atm/nicstar.c card->efbie = 0; card 1208 drivers/atm/nicstar.c skb_queue_tail(&card->lbpool.queue, lb); card 1210 drivers/atm/nicstar.c push_rxbufs(card, lb); card 1212 drivers/atm/nicstar.c card->lbfqc = i; card 1213 drivers/atm/nicstar.c process_rsq(card); card 1218 drivers/atm/nicstar.c writel(NS_STAT_RSQAF, card->membase + STAT); card 1219 drivers/atm/nicstar.c RXPRINTK("nicstar%d: RSQ almost full.\n", card->index); card 1220 drivers/atm/nicstar.c process_rsq(card); card 1223 drivers/atm/nicstar.c spin_unlock_irqrestore(&card->int_lock, flags); card 1224 drivers/atm/nicstar.c PRINTK("nicstar%d: end of interrupt service\n", card->index); card 1230 drivers/atm/nicstar.c ns_dev *card; card 1245 drivers/atm/nicstar.c card = (ns_dev *) vcc->dev->dev_data; card 1246 drivers/atm/nicstar.c PRINTK("nicstar%d: opening vpi.vci %d.%d \n", card->index, (int)vpi, card 1249 drivers/atm/nicstar.c PRINTK("nicstar%d: unsupported AAL.\n", card->index); card 1253 drivers/atm/nicstar.c vc = &(card->vcmap[vpi << card->vcibits | vci]); card 1262 drivers/atm/nicstar.c printk("nicstar%d: %s vci already in use.\n", card->index, card 1282 drivers/atm/nicstar.c card->index); card 1292 drivers/atm/nicstar.c card->index, vcc->qos.txtp.max_pcr); card 1297 drivers/atm/nicstar.c modl = tmpl % card->max_pcr; card 1299 drivers/atm/nicstar.c n = (int)(tmpl / card->max_pcr); card 1305 drivers/atm/nicstar.c (card->tst_free_entries - card 1309 drivers/atm/nicstar.c card->index); card 1319 drivers/atm/nicstar.c card->index); card 1325 drivers/atm/nicstar.c if (n > (card->tst_free_entries - NS_TST_RESERVED)) { card 1328 drivers/atm/nicstar.c card->index); card 1333 drivers/atm/nicstar.c card->tst_free_entries -= n; card 1336 drivers/atm/nicstar.c card->index, n); card 1338 drivers/atm/nicstar.c if (card->scd2vc[frscdi] == NULL) { card 1339 drivers/atm/nicstar.c card->scd2vc[frscdi] = vc; card 1346 drivers/atm/nicstar.c card->index); card 1347 drivers/atm/nicstar.c card->tst_free_entries += n; card 1355 drivers/atm/nicstar.c scq = get_scq(card, CBR_SCQSIZE, vc->cbr_scd); card 1358 drivers/atm/nicstar.c card->index); card 1359 drivers/atm/nicstar.c card->scd2vc[frscdi] = NULL; card 1360 drivers/atm/nicstar.c card->tst_free_entries += n; card 1370 drivers/atm/nicstar.c ns_write_sram(card, vc->cbr_scd, u32d, 4); card 1372 drivers/atm/nicstar.c fill_tst(card, n, vc); card 1375 drivers/atm/nicstar.c vc->scq = card->scq0; card 1398 drivers/atm/nicstar.c ns_write_sram(card, card 1400 drivers/atm/nicstar.c (vpi << card->vcibits | vci) * card 1413 drivers/atm/nicstar.c ns_dev *card; card 1418 drivers/atm/nicstar.c card = vcc->dev->dev_data; card 1419 drivers/atm/nicstar.c PRINTK("nicstar%d: closing vpi.vci %d.%d \n", card->index, card 1430 drivers/atm/nicstar.c (vcc->vpi << card->vcibits | vcc->vci) * NS_RCT_ENTRY_SIZE; card 1431 drivers/atm/nicstar.c spin_lock_irqsave(&card->res_lock, flags); card 1432 drivers/atm/nicstar.c while (CMD_BUSY(card)) ; card 1434 drivers/atm/nicstar.c card->membase + CMD); card 1435 drivers/atm/nicstar.c spin_unlock_irqrestore(&card->res_lock, flags); card 1442 drivers/atm/nicstar.c stat = readl(card->membase + STAT); card 1443 drivers/atm/nicstar.c card->sbfqc = ns_stat_sfbqc_get(stat); card 1444 drivers/atm/nicstar.c card->lbfqc = ns_stat_lfbqc_get(stat); card 1448 drivers/atm/nicstar.c card->index); card 1450 drivers/atm/nicstar.c recycle_iovec_rx_bufs(card, (struct iovec *)iovb->data, card 1453 drivers/atm/nicstar.c spin_lock_irqsave(&card->int_lock, flags); card 1454 drivers/atm/nicstar.c recycle_iov_buf(card, iovb); card 1455 drivers/atm/nicstar.c spin_unlock_irqrestore(&card->int_lock, flags); card 1504 drivers/atm/nicstar.c ns_write_sram(card, scq->scd, &data, 1); card 1513 drivers/atm/nicstar.c if (card->tste2vc[i] == vc) { card 1514 drivers/atm/nicstar.c ns_write_sram(card, card->tst_addr + i, &data, card 1516 drivers/atm/nicstar.c card->tste2vc[i] = NULL; card 1517 drivers/atm/nicstar.c card->tst_free_entries++; card 1521 drivers/atm/nicstar.c card->scd2vc[(vc->cbr_scd - NS_FRSCD) / NS_FRSCD_SIZE] = NULL; card 1522 drivers/atm/nicstar.c free_scq(card, vc->scq, vcc); card 1528 drivers/atm/nicstar.c scq_info *scq = card->scq0; card 1551 drivers/atm/nicstar.c stat = readl(card->membase + STAT); card 1552 drivers/atm/nicstar.c cfg = readl(card->membase + CFG); card 1556 drivers/atm/nicstar.c card->tsq.base, card->tsq.next, card 1557 drivers/atm/nicstar.c card->tsq.last, readl(card->membase + TSQT)); card 1560 drivers/atm/nicstar.c card->rsq.base, card->rsq.next, card 1561 drivers/atm/nicstar.c card->rsq.last, readl(card->membase + RSQT)); card 1563 drivers/atm/nicstar.c card->efbie ? "enabled" : "disabled"); card 1565 drivers/atm/nicstar.c ns_stat_sfbqc_get(stat), card->sbpool.count, card 1566 drivers/atm/nicstar.c ns_stat_lfbqc_get(stat), card->lbpool.count); card 1568 drivers/atm/nicstar.c card->hbpool.count, card->iovpool.count); card 1573 drivers/atm/nicstar.c static void fill_tst(ns_dev * card, int n, vc_map * vc) card 1584 drivers/atm/nicstar.c new_tst = card->tst_addr; card 1589 drivers/atm/nicstar.c if (card->tste2vc[e] == NULL) card 1593 drivers/atm/nicstar.c printk("nicstar%d: No free TST entries found. \n", card->index); card 1602 drivers/atm/nicstar.c if (cl >= NS_TST_NUM_ENTRIES && card->tste2vc[e] == NULL) { card 1603 drivers/atm/nicstar.c card->tste2vc[e] = vc; card 1604 drivers/atm/nicstar.c ns_write_sram(card, new_tst + e, &data, 1); card 1618 drivers/atm/nicstar.c ns_write_sram(card, new_tst + NS_TST_NUM_ENTRIES, &data, 1); card 1619 drivers/atm/nicstar.c ns_write_sram(card, card->tst_addr + NS_TST_NUM_ENTRIES, &data, 1); card 1620 drivers/atm/nicstar.c card->tst_addr = new_tst; card 1625 drivers/atm/nicstar.c ns_dev *card; card 1632 drivers/atm/nicstar.c card = vcc->dev->dev_data; card 1633 drivers/atm/nicstar.c TXPRINTK("nicstar%d: ns_send() called.\n", card->index); card 1636 drivers/atm/nicstar.c card->index); card 1644 drivers/atm/nicstar.c card->index); card 1652 drivers/atm/nicstar.c card->index); card 1659 drivers/atm/nicstar.c printk("nicstar%d: No scatter-gather yet.\n", card->index); card 1667 drivers/atm/nicstar.c NS_PRV_DMA(skb) = dma_map_single(&card->pcidev->dev, skb->data, card 1704 drivers/atm/nicstar.c scq = card->scq0; card 1707 drivers/atm/nicstar.c if (push_scqe(card, vc, scq, &scqe, skb) != 0) { card 1717 drivers/atm/nicstar.c static int push_scqe(ns_dev * card, vc_map * vc, scq_info * scq, ns_scqe * tbd, card 1731 drivers/atm/nicstar.c printk("nicstar%d: Error pushing TBD.\n", card->index); card 1744 drivers/atm/nicstar.c card->index); card 1752 drivers/atm/nicstar.c card->index, skb, index); card 1754 drivers/atm/nicstar.c card->index, le32_to_cpu(tbd->word_1), le32_to_cpu(tbd->word_2), card 1776 drivers/atm/nicstar.c ns_write_sram(card, scq->scd, &data, 1); card 1779 drivers/atm/nicstar.c card->index); card 1808 drivers/atm/nicstar.c card->index, le32_to_cpu(tsr.word_1), card 1819 drivers/atm/nicstar.c card->index); card 1822 drivers/atm/nicstar.c ns_write_sram(card, scq->scd, &data, 1); card 1829 drivers/atm/nicstar.c static void process_tsq(ns_dev * card) card 1838 drivers/atm/nicstar.c if (card->tsq.next == card->tsq.last) card 1839 drivers/atm/nicstar.c one_ahead = card->tsq.base; card 1841 drivers/atm/nicstar.c one_ahead = card->tsq.next + 1; card 1843 drivers/atm/nicstar.c if (one_ahead == card->tsq.last) card 1844 drivers/atm/nicstar.c two_ahead = card->tsq.base; card 1848 drivers/atm/nicstar.c while (!ns_tsi_isempty(card->tsq.next) || !ns_tsi_isempty(one_ahead) || card 1855 drivers/atm/nicstar.c while (ns_tsi_isempty(card->tsq.next)) { card 1856 drivers/atm/nicstar.c if (card->tsq.next == card->tsq.last) card 1857 drivers/atm/nicstar.c card->tsq.next = card->tsq.base; card 1859 drivers/atm/nicstar.c card->tsq.next++; card 1862 drivers/atm/nicstar.c if (!ns_tsi_tmrof(card->tsq.next)) { card 1863 drivers/atm/nicstar.c scdi = ns_tsi_getscdindex(card->tsq.next); card 1865 drivers/atm/nicstar.c scq = card->scq0; card 1867 drivers/atm/nicstar.c if (card->scd2vc[scdi] == NULL) { card 1870 drivers/atm/nicstar.c card->index); card 1871 drivers/atm/nicstar.c ns_tsi_init(card->tsq.next); card 1874 drivers/atm/nicstar.c scq = card->scd2vc[scdi]->scq; card 1876 drivers/atm/nicstar.c drain_scq(card, scq, ns_tsi_getscqpos(card->tsq.next)); card 1881 drivers/atm/nicstar.c ns_tsi_init(card->tsq.next); card 1882 drivers/atm/nicstar.c previous = card->tsq.next; card 1883 drivers/atm/nicstar.c if (card->tsq.next == card->tsq.last) card 1884 drivers/atm/nicstar.c card->tsq.next = card->tsq.base; card 1886 drivers/atm/nicstar.c card->tsq.next++; card 1888 drivers/atm/nicstar.c if (card->tsq.next == card->tsq.last) card 1889 drivers/atm/nicstar.c one_ahead = card->tsq.base; card 1891 drivers/atm/nicstar.c one_ahead = card->tsq.next + 1; card 1893 drivers/atm/nicstar.c if (one_ahead == card->tsq.last) card 1894 drivers/atm/nicstar.c two_ahead = card->tsq.base; card 1900 drivers/atm/nicstar.c writel(PTR_DIFF(previous, card->tsq.base), card 1901 drivers/atm/nicstar.c card->membase + TSQH); card 1904 drivers/atm/nicstar.c static void drain_scq(ns_dev * card, scq_info * scq, int pos) card 1912 drivers/atm/nicstar.c card->index, scq, pos); card 1914 drivers/atm/nicstar.c printk("nicstar%d: Bad index on drain_scq().\n", card->index); card 1925 drivers/atm/nicstar.c card->index, skb, i); card 1927 drivers/atm/nicstar.c dma_unmap_single(&card->pcidev->dev, card 1946 drivers/atm/nicstar.c static void process_rsq(ns_dev * card) card 1950 drivers/atm/nicstar.c if (!ns_rsqe_valid(card->rsq.next)) card 1953 drivers/atm/nicstar.c dequeue_rx(card, card->rsq.next); card 1954 drivers/atm/nicstar.c ns_rsqe_init(card->rsq.next); card 1955 drivers/atm/nicstar.c previous = card->rsq.next; card 1956 drivers/atm/nicstar.c if (card->rsq.next == card->rsq.last) card 1957 drivers/atm/nicstar.c card->rsq.next = card->rsq.base; card 1959 drivers/atm/nicstar.c card->rsq.next++; card 1960 drivers/atm/nicstar.c } while (ns_rsqe_valid(card->rsq.next)); card 1961 drivers/atm/nicstar.c writel(PTR_DIFF(previous, card->rsq.base), card->membase + RSQH); card 1964 drivers/atm/nicstar.c static void dequeue_rx(ns_dev * card, ns_rsqe * rsqe) card 1977 drivers/atm/nicstar.c stat = readl(card->membase + STAT); card 1978 drivers/atm/nicstar.c card->sbfqc = ns_stat_sfbqc_get(stat); card 1979 drivers/atm/nicstar.c card->lbfqc = ns_stat_lfbqc_get(stat); card 1982 drivers/atm/nicstar.c skb = idr_remove(&card->idr, id); card 1985 drivers/atm/nicstar.c "nicstar%d: skb not found!\n", card->index); card 1988 drivers/atm/nicstar.c dma_sync_single_for_cpu(&card->pcidev->dev, card 1993 drivers/atm/nicstar.c dma_unmap_single(&card->pcidev->dev, card 2000 drivers/atm/nicstar.c if (vpi >= 1UL << card->vpibits || vci >= 1UL << card->vcibits) { card 2002 drivers/atm/nicstar.c card->index, vpi, vci); card 2003 drivers/atm/nicstar.c recycle_rx_buf(card, skb); card 2007 drivers/atm/nicstar.c vc = &(card->vcmap[vpi << card->vcibits | vci]); card 2010 drivers/atm/nicstar.c card->index, vpi, vci); card 2011 drivers/atm/nicstar.c recycle_rx_buf(card, skb); card 2028 drivers/atm/nicstar.c card->index); card 2035 drivers/atm/nicstar.c card->index); card 2055 drivers/atm/nicstar.c recycle_rx_buf(card, skb); card 2062 drivers/atm/nicstar.c iovb = skb_dequeue(&(card->iovpool.queue)); card 2067 drivers/atm/nicstar.c card->index); card 2069 drivers/atm/nicstar.c recycle_rx_buf(card, skb); card 2073 drivers/atm/nicstar.c } else if (--card->iovpool.count < card->iovnr.min) { card 2078 drivers/atm/nicstar.c skb_queue_tail(&card->iovpool.queue, new_iovb); card 2079 drivers/atm/nicstar.c card->iovpool.count++; card 2091 drivers/atm/nicstar.c printk("nicstar%d: received too big AAL5 SDU.\n", card->index); card 2093 drivers/atm/nicstar.c recycle_iovec_rx_bufs(card, (struct iovec *)iovb->data, card 2110 drivers/atm/nicstar.c card->index); card 2111 drivers/atm/nicstar.c which_list(card, skb); card 2113 drivers/atm/nicstar.c recycle_rx_buf(card, skb); card 2115 drivers/atm/nicstar.c recycle_iov_buf(card, iovb); card 2123 drivers/atm/nicstar.c card->index); card 2124 drivers/atm/nicstar.c which_list(card, skb); card 2126 drivers/atm/nicstar.c recycle_iovec_rx_bufs(card, (struct iovec *)iovb->data, card 2129 drivers/atm/nicstar.c recycle_iov_buf(card, iovb); card 2143 drivers/atm/nicstar.c printk("nicstar%d: AAL5 CRC error", card->index); card 2149 drivers/atm/nicstar.c recycle_iovec_rx_bufs(card, (struct iovec *)iovb->data, card 2152 drivers/atm/nicstar.c recycle_iov_buf(card, iovb); card 2161 drivers/atm/nicstar.c push_rxbufs(card, skb); card 2165 drivers/atm/nicstar.c dequeue_sm_buf(card, skb); card 2179 drivers/atm/nicstar.c push_rxbufs(card, sb); card 2183 drivers/atm/nicstar.c dequeue_sm_buf(card, sb); card 2190 drivers/atm/nicstar.c push_rxbufs(card, skb); card 2195 drivers/atm/nicstar.c push_rxbufs(card, skb); card 2198 drivers/atm/nicstar.c dequeue_lg_buf(card, skb); card 2209 drivers/atm/nicstar.c push_rxbufs(card, sb); card 2219 drivers/atm/nicstar.c hb = skb_dequeue(&(card->hbpool.queue)); card 2226 drivers/atm/nicstar.c card->index); card 2228 drivers/atm/nicstar.c recycle_iovec_rx_bufs(card, card 2233 drivers/atm/nicstar.c recycle_iov_buf(card, iovb); card 2235 drivers/atm/nicstar.c } else if (card->hbpool.count < card->hbnr.min) { card 2240 drivers/atm/nicstar.c skb_queue_tail(&card->hbpool. card 2242 drivers/atm/nicstar.c card->hbpool.count++; card 2246 drivers/atm/nicstar.c } else if (--card->hbpool.count < card->hbnr.min) { card 2251 drivers/atm/nicstar.c skb_queue_tail(&card->hbpool.queue, card 2253 drivers/atm/nicstar.c card->hbpool.count++; card 2255 drivers/atm/nicstar.c if (card->hbpool.count < card->hbnr.min) { card 2261 drivers/atm/nicstar.c skb_queue_tail(&card->hbpool. card 2263 drivers/atm/nicstar.c card->hbpool.count++; card 2271 drivers/atm/nicstar.c recycle_iovec_rx_bufs(card, iov, card 2273 drivers/atm/nicstar.c if (card->hbpool.count < card->hbnr.max) { card 2274 drivers/atm/nicstar.c skb_queue_tail(&card->hbpool.queue, hb); card 2275 drivers/atm/nicstar.c card->hbpool.count++; card 2288 drivers/atm/nicstar.c push_rxbufs(card, sb); card 2301 drivers/atm/nicstar.c push_rxbufs(card, lb); card 2307 drivers/atm/nicstar.c card->index); card 2317 drivers/atm/nicstar.c recycle_iov_buf(card, iovb); card 2322 drivers/atm/nicstar.c static void recycle_rx_buf(ns_dev * card, struct sk_buff *skb) card 2326 drivers/atm/nicstar.c card->index); card 2329 drivers/atm/nicstar.c push_rxbufs(card, skb); card 2332 drivers/atm/nicstar.c static void recycle_iovec_rx_bufs(ns_dev * card, struct iovec *iov, int count) card 2335 drivers/atm/nicstar.c recycle_rx_buf(card, (struct sk_buff *)(iov++)->iov_base); card 2338 drivers/atm/nicstar.c static void recycle_iov_buf(ns_dev * card, struct sk_buff *iovb) card 2340 drivers/atm/nicstar.c if (card->iovpool.count < card->iovnr.max) { card 2341 drivers/atm/nicstar.c skb_queue_tail(&card->iovpool.queue, iovb); card 2342 drivers/atm/nicstar.c card->iovpool.count++; card 2347 drivers/atm/nicstar.c static void dequeue_sm_buf(ns_dev * card, struct sk_buff *sb) card 2349 drivers/atm/nicstar.c skb_unlink(sb, &card->sbpool.queue); card 2350 drivers/atm/nicstar.c if (card->sbfqc < card->sbnr.init) { card 2354 drivers/atm/nicstar.c skb_queue_tail(&card->sbpool.queue, new_sb); card 2356 drivers/atm/nicstar.c push_rxbufs(card, new_sb); card 2359 drivers/atm/nicstar.c if (card->sbfqc < card->sbnr.init) card 2364 drivers/atm/nicstar.c skb_queue_tail(&card->sbpool.queue, new_sb); card 2366 drivers/atm/nicstar.c push_rxbufs(card, new_sb); card 2371 drivers/atm/nicstar.c static void dequeue_lg_buf(ns_dev * card, struct sk_buff *lb) card 2373 drivers/atm/nicstar.c skb_unlink(lb, &card->lbpool.queue); card 2374 drivers/atm/nicstar.c if (card->lbfqc < card->lbnr.init) { card 2378 drivers/atm/nicstar.c skb_queue_tail(&card->lbpool.queue, new_lb); card 2380 drivers/atm/nicstar.c push_rxbufs(card, new_lb); card 2383 drivers/atm/nicstar.c if (card->lbfqc < card->lbnr.init) card 2388 drivers/atm/nicstar.c skb_queue_tail(&card->lbpool.queue, new_lb); card 2390 drivers/atm/nicstar.c push_rxbufs(card, new_lb); card 2398 drivers/atm/nicstar.c ns_dev *card; card 2402 drivers/atm/nicstar.c card = (ns_dev *) dev->dev_data; card 2403 drivers/atm/nicstar.c stat = readl(card->membase + STAT); card 2408 drivers/atm/nicstar.c ns_stat_sfbqc_get(stat), card->sbnr.min, card 2409 drivers/atm/nicstar.c card->sbnr.init, card->sbnr.max); card 2412 drivers/atm/nicstar.c ns_stat_lfbqc_get(stat), card->lbnr.min, card 2413 drivers/atm/nicstar.c card->lbnr.init, card->lbnr.max); card 2416 drivers/atm/nicstar.c card->hbpool.count, card->hbnr.min, card 2417 drivers/atm/nicstar.c card->hbnr.init, card->hbnr.max); card 2420 drivers/atm/nicstar.c card->iovpool.count, card->iovnr.min, card 2421 drivers/atm/nicstar.c card->iovnr.init, card->iovnr.max); card 2425 drivers/atm/nicstar.c sprintf(page, "Interrupt counter: %u \n", card->intcnt); card 2426 drivers/atm/nicstar.c card->intcnt = 0; card 2433 drivers/atm/nicstar.c if (card->max_pcr == ATM_25_PCR && !left--) { card 2438 drivers/atm/nicstar.c while (CMD_BUSY(card)) ; card 2440 drivers/atm/nicstar.c card->membase + CMD); card 2441 drivers/atm/nicstar.c while (CMD_BUSY(card)) ; card 2442 drivers/atm/nicstar.c phy_regs[i] = readl(card->membase + DR0) & 0x000000FF; card 2453 drivers/atm/nicstar.c if (card->tste2vc[left + 1] == NULL) card 2457 drivers/atm/nicstar.c card->tste2vc[left + 1]->tx_vcc->vpi, card 2458 drivers/atm/nicstar.c card->tste2vc[left + 1]->tx_vcc->vci); card 2466 drivers/atm/nicstar.c ns_dev *card; card 2471 drivers/atm/nicstar.c card = dev->dev_data; card 2480 drivers/atm/nicstar.c ns_stat_sfbqc_get(readl(card->membase + STAT)); card 2481 drivers/atm/nicstar.c pl.level.min = card->sbnr.min; card 2482 drivers/atm/nicstar.c pl.level.init = card->sbnr.init; card 2483 drivers/atm/nicstar.c pl.level.max = card->sbnr.max; card 2488 drivers/atm/nicstar.c ns_stat_lfbqc_get(readl(card->membase + STAT)); card 2489 drivers/atm/nicstar.c pl.level.min = card->lbnr.min; card 2490 drivers/atm/nicstar.c pl.level.init = card->lbnr.init; card 2491 drivers/atm/nicstar.c pl.level.max = card->lbnr.max; card 2495 drivers/atm/nicstar.c pl.count = card->hbpool.count; card 2496 drivers/atm/nicstar.c pl.level.min = card->hbnr.min; card 2497 drivers/atm/nicstar.c pl.level.init = card->hbnr.init; card 2498 drivers/atm/nicstar.c pl.level.max = card->hbnr.max; card 2502 drivers/atm/nicstar.c pl.count = card->iovpool.count; card 2503 drivers/atm/nicstar.c pl.level.min = card->iovnr.min; card 2504 drivers/atm/nicstar.c pl.level.init = card->iovnr.init; card 2505 drivers/atm/nicstar.c pl.level.max = card->iovnr.max; card 2531 drivers/atm/nicstar.c card->sbnr.min = pl.level.min; card 2532 drivers/atm/nicstar.c card->sbnr.init = pl.level.init; card 2533 drivers/atm/nicstar.c card->sbnr.max = pl.level.max; card 2539 drivers/atm/nicstar.c card->lbnr.min = pl.level.min; card 2540 drivers/atm/nicstar.c card->lbnr.init = pl.level.init; card 2541 drivers/atm/nicstar.c card->lbnr.max = pl.level.max; card 2547 drivers/atm/nicstar.c card->hbnr.min = pl.level.min; card 2548 drivers/atm/nicstar.c card->hbnr.init = pl.level.init; card 2549 drivers/atm/nicstar.c card->hbnr.max = pl.level.max; card 2555 drivers/atm/nicstar.c card->iovnr.min = pl.level.min; card 2556 drivers/atm/nicstar.c card->iovnr.init = pl.level.init; card 2557 drivers/atm/nicstar.c card->iovnr.max = pl.level.max; card 2572 drivers/atm/nicstar.c while (card->sbfqc < card->sbnr.init) { card 2579 drivers/atm/nicstar.c skb_queue_tail(&card->sbpool.queue, sb); card 2581 drivers/atm/nicstar.c push_rxbufs(card, sb); card 2586 drivers/atm/nicstar.c while (card->lbfqc < card->lbnr.init) { card 2593 drivers/atm/nicstar.c skb_queue_tail(&card->lbpool.queue, lb); card 2595 drivers/atm/nicstar.c push_rxbufs(card, lb); card 2600 drivers/atm/nicstar.c while (card->hbpool.count > card->hbnr.init) { card 2603 drivers/atm/nicstar.c spin_lock_irqsave(&card->int_lock, flags); card 2604 drivers/atm/nicstar.c hb = skb_dequeue(&card->hbpool.queue); card 2605 drivers/atm/nicstar.c card->hbpool.count--; card 2606 drivers/atm/nicstar.c spin_unlock_irqrestore(&card->int_lock, flags); card 2610 drivers/atm/nicstar.c card->index); card 2615 drivers/atm/nicstar.c while (card->hbpool.count < card->hbnr.init) { card 2622 drivers/atm/nicstar.c spin_lock_irqsave(&card->int_lock, flags); card 2623 drivers/atm/nicstar.c skb_queue_tail(&card->hbpool.queue, hb); card 2624 drivers/atm/nicstar.c card->hbpool.count++; card 2625 drivers/atm/nicstar.c spin_unlock_irqrestore(&card->int_lock, flags); card 2630 drivers/atm/nicstar.c while (card->iovpool.count > card->iovnr.init) { card 2633 drivers/atm/nicstar.c spin_lock_irqsave(&card->int_lock, flags); card 2634 drivers/atm/nicstar.c iovb = skb_dequeue(&card->iovpool.queue); card 2635 drivers/atm/nicstar.c card->iovpool.count--; card 2636 drivers/atm/nicstar.c spin_unlock_irqrestore(&card->int_lock, flags); card 2640 drivers/atm/nicstar.c card->index); card 2645 drivers/atm/nicstar.c while (card->iovpool.count < card->iovnr.init) { card 2652 drivers/atm/nicstar.c spin_lock_irqsave(&card->int_lock, flags); card 2653 drivers/atm/nicstar.c skb_queue_tail(&card->iovpool.queue, iovb); card 2654 drivers/atm/nicstar.c card->iovpool.count++; card 2655 drivers/atm/nicstar.c spin_unlock_irqrestore(&card->int_lock, flags); card 2669 drivers/atm/nicstar.c printk("nicstar%d: %s == NULL \n", card->index, card 2677 drivers/atm/nicstar.c static void which_list(ns_dev * card, struct sk_buff *skb) card 2686 drivers/atm/nicstar.c ns_dev *card; card 2692 drivers/atm/nicstar.c card = cards[i]; card 2693 drivers/atm/nicstar.c if (!spin_trylock_irqsave(&card->int_lock, flags)) { card 2699 drivers/atm/nicstar.c stat_r = readl(card->membase + STAT); card 2705 drivers/atm/nicstar.c process_tsq(card); card 2706 drivers/atm/nicstar.c process_rsq(card); card 2708 drivers/atm/nicstar.c writel(stat_w, card->membase + STAT); card 2709 drivers/atm/nicstar.c spin_unlock_irqrestore(&card->int_lock, flags); card 2718 drivers/atm/nicstar.c ns_dev *card; card 2721 drivers/atm/nicstar.c card = dev->dev_data; card 2722 drivers/atm/nicstar.c spin_lock_irqsave(&card->res_lock, flags); card 2723 drivers/atm/nicstar.c while (CMD_BUSY(card)) ; card 2724 drivers/atm/nicstar.c writel((u32) value, card->membase + DR0); card 2726 drivers/atm/nicstar.c card->membase + CMD); card 2727 drivers/atm/nicstar.c spin_unlock_irqrestore(&card->res_lock, flags); card 2732 drivers/atm/nicstar.c ns_dev *card; card 2736 drivers/atm/nicstar.c card = dev->dev_data; card 2737 drivers/atm/nicstar.c spin_lock_irqsave(&card->res_lock, flags); card 2738 drivers/atm/nicstar.c while (CMD_BUSY(card)) ; card 2740 drivers/atm/nicstar.c card->membase + CMD); card 2741 drivers/atm/nicstar.c while (CMD_BUSY(card)) ; card 2742 drivers/atm/nicstar.c data = readl(card->membase + DR0) & 0x000000FF; card 2743 drivers/atm/nicstar.c spin_unlock_irqrestore(&card->res_lock, flags); card 67 drivers/atm/solos-pci.c #define RX_BUF(card, nr) ((card->buffers) + (nr)*(card->buffer_size)*2) card 68 drivers/atm/solos-pci.c #define TX_BUF(card, nr) ((card->buffers) + (nr)*(card->buffer_size)*2 + (card->buffer_size)) card 69 drivers/atm/solos-pci.c #define FLASH_BUF ((card->buffers) + 4*(card->buffer_size)*2) card 162 drivers/atm/solos-pci.c static void fpga_queue(struct solos_card *card, int port, struct sk_buff *skb, card 169 drivers/atm/solos-pci.c static int send_command(struct solos_card *card, int dev, const char *buf, size_t size); card 185 drivers/atm/solos-pci.c struct solos_card *card = atmdev->dev_data; card 195 drivers/atm/solos-pci.c dev_warn(&card->dev->dev, "Failed to allocate sk_buff in solos_param_show()\n"); card 214 drivers/atm/solos-pci.c spin_lock_irq(&card->param_queue_lock); card 215 drivers/atm/solos-pci.c list_add(&prm.list, &card->param_queue); card 216 drivers/atm/solos-pci.c spin_unlock_irq(&card->param_queue_lock); card 218 drivers/atm/solos-pci.c fpga_queue(card, prm.port, skb, NULL); card 220 drivers/atm/solos-pci.c wait_event_timeout(card->param_wq, prm.response, 5 * HZ); card 222 drivers/atm/solos-pci.c spin_lock_irq(&card->param_queue_lock); card 224 drivers/atm/solos-pci.c spin_unlock_irq(&card->param_queue_lock); card 240 drivers/atm/solos-pci.c struct solos_card *card = atmdev->dev_data; card 251 drivers/atm/solos-pci.c dev_warn(&card->dev->dev, "Failed to allocate sk_buff in solos_param_store()\n"); card 270 drivers/atm/solos-pci.c spin_lock_irq(&card->param_queue_lock); card 271 drivers/atm/solos-pci.c list_add(&prm.list, &card->param_queue); card 272 drivers/atm/solos-pci.c spin_unlock_irq(&card->param_queue_lock); card 274 drivers/atm/solos-pci.c fpga_queue(card, prm.port, skb, NULL); card 276 drivers/atm/solos-pci.c wait_event_timeout(card->param_wq, prm.response, 5 * HZ); card 278 drivers/atm/solos-pci.c spin_lock_irq(&card->param_queue_lock); card 280 drivers/atm/solos-pci.c spin_unlock_irq(&card->param_queue_lock); card 302 drivers/atm/solos-pci.c dev_warn(&card->dev->dev, "Unexpected parameter response: '%s'\n", card 339 drivers/atm/solos-pci.c static int process_status(struct solos_card *card, int port, struct sk_buff *skb) card 344 drivers/atm/solos-pci.c if (!card->atmdev[port]) card 353 drivers/atm/solos-pci.c dev_warn(&card->dev->dev, "Unexpected status interrupt version\n"); card 357 drivers/atm/solos-pci.c dev_warn(&card->dev->dev, "Unexpected status interrupt version %d\n", card 366 drivers/atm/solos-pci.c dev_dbg(&card->dev->dev, "Status packet indicated Solos error on port %d (starting up?)\n", card 388 drivers/atm/solos-pci.c atm_dev_signal_change(card->atmdev[port], ATM_PHY_SIG_LOST); card 389 drivers/atm/solos-pci.c dev_info(&card->dev->dev, "Port %d: %s\n", port, state_str); card 400 drivers/atm/solos-pci.c dev_info(&card->dev->dev, "Port %d: %s @%d/%d kb/s%s%s%s%s\n", card 404 drivers/atm/solos-pci.c card->atmdev[port]->link_rate = rate_down / 424; card 405 drivers/atm/solos-pci.c atm_dev_signal_change(card->atmdev[port], ATM_PHY_SIG_FOUND); card 410 drivers/atm/solos-pci.c static int process_command(struct solos_card *card, int port, struct sk_buff *skb) card 430 drivers/atm/solos-pci.c spin_lock_irqsave(&card->param_queue_lock, flags); card 431 drivers/atm/solos-pci.c list_for_each_entry(prm, &card->param_queue, list) { card 435 drivers/atm/solos-pci.c wake_up(&card->param_wq); card 440 drivers/atm/solos-pci.c spin_unlock_irqrestore(&card->param_queue_lock, flags); card 448 drivers/atm/solos-pci.c struct solos_card *card = atmdev->dev_data; card 452 drivers/atm/solos-pci.c spin_lock(&card->cli_queue_lock); card 453 drivers/atm/solos-pci.c skb = skb_dequeue(&card->cli_queue[SOLOS_CHAN(atmdev)]); card 454 drivers/atm/solos-pci.c spin_unlock(&card->cli_queue_lock); card 465 drivers/atm/solos-pci.c static int send_command(struct solos_card *card, int dev, const char *buf, size_t size) card 471 drivers/atm/solos-pci.c dev_dbg(&card->dev->dev, "Command is too big. Dropping request\n"); card 476 drivers/atm/solos-pci.c dev_warn(&card->dev->dev, "Failed to allocate sk_buff in send_command()\n"); card 489 drivers/atm/solos-pci.c fpga_queue(card, dev, skb, NULL); card 498 drivers/atm/solos-pci.c struct solos_card *card = atmdev->dev_data; card 501 drivers/atm/solos-pci.c err = send_command(card, SOLOS_CHAN(atmdev), buf, count); card 520 drivers/atm/solos-pci.c struct solos_card *card = dev_get_drvdata(dev); card 526 drivers/atm/solos-pci.c spin_lock_irq(&card->param_queue_lock); card 527 drivers/atm/solos-pci.c data32 = ioread32(card->config_regs + GPIO_STATUS); card 530 drivers/atm/solos-pci.c iowrite32(data32, card->config_regs + GPIO_STATUS); card 533 drivers/atm/solos-pci.c iowrite32(data32, card->config_regs + GPIO_STATUS); card 537 drivers/atm/solos-pci.c spin_unlock_irq(&card->param_queue_lock); card 545 drivers/atm/solos-pci.c struct solos_card *card = dev_get_drvdata(dev); card 548 drivers/atm/solos-pci.c data32 = ioread32(card->config_regs + GPIO_STATUS); card 558 drivers/atm/solos-pci.c struct solos_card *card = dev_get_drvdata(dev); card 561 drivers/atm/solos-pci.c data32 = ioread32(card->config_regs + GPIO_STATUS); card 624 drivers/atm/solos-pci.c static int flash_upgrade(struct solos_card *card, int chip) card 635 drivers/atm/solos-pci.c if (card->atmel_flash) card 642 drivers/atm/solos-pci.c if (card->atmel_flash) card 648 drivers/atm/solos-pci.c if (card->fpga_version > LEGACY_BUFFERS){ card 650 drivers/atm/solos-pci.c if (card->atmel_flash) card 655 drivers/atm/solos-pci.c dev_info(&card->dev->dev, "FPGA version doesn't support" card 661 drivers/atm/solos-pci.c if (card->fpga_version > LEGACY_BUFFERS){ card 663 drivers/atm/solos-pci.c if (card->atmel_flash) card 668 drivers/atm/solos-pci.c dev_info(&card->dev->dev, "FPGA version doesn't support" card 677 drivers/atm/solos-pci.c if (request_firmware(&fw, fw_name, &card->dev->dev)) card 680 drivers/atm/solos-pci.c dev_info(&card->dev->dev, "Flash upgrade starting\n"); card 683 drivers/atm/solos-pci.c iowrite32(DRIVER_VERSION, card->config_regs + DRIVER_VER); card 686 drivers/atm/solos-pci.c dev_info(&card->dev->dev, "Firmware size: %zd\n", fw->size); card 687 drivers/atm/solos-pci.c dev_info(&card->dev->dev, "Number of blocks: %d\n", numblocks); card 689 drivers/atm/solos-pci.c dev_info(&card->dev->dev, "Changing FPGA to Update mode\n"); card 690 drivers/atm/solos-pci.c iowrite32(1, card->config_regs + FPGA_MODE); card 691 drivers/atm/solos-pci.c (void) ioread32(card->config_regs + FPGA_MODE); card 695 drivers/atm/solos-pci.c dev_info(&card->dev->dev, "Set FPGA Flash mode to FPGA Chip Erase\n"); card 697 drivers/atm/solos-pci.c dev_info(&card->dev->dev, "Set FPGA Flash mode to Solos Chip Erase\n"); card 698 drivers/atm/solos-pci.c iowrite32((chip * 2), card->config_regs + FLASH_MODE); card 701 drivers/atm/solos-pci.c iowrite32(1, card->config_regs + WRITE_FLASH); card 702 drivers/atm/solos-pci.c wait_event(card->fw_wq, !ioread32(card->config_regs + FLASH_BUSY)); card 708 drivers/atm/solos-pci.c iowrite32(0, card->config_regs + WRITE_FLASH); card 712 drivers/atm/solos-pci.c iowrite32(((chip * 2) + 1), card->config_regs + FLASH_MODE); card 717 drivers/atm/solos-pci.c if (card->atmel_flash) card 721 drivers/atm/solos-pci.c if(card->fpga_version > LEGACY_BUFFERS) card 724 drivers/atm/solos-pci.c iowrite32(word, RX_BUF(card, 3) + i); card 728 drivers/atm/solos-pci.c iowrite32(offset / blocksize, card->config_regs + FLASH_BLOCK); card 729 drivers/atm/solos-pci.c iowrite32(1, card->config_regs + WRITE_FLASH); card 730 drivers/atm/solos-pci.c wait_event(card->fw_wq, !ioread32(card->config_regs + FLASH_BUSY)); card 734 drivers/atm/solos-pci.c iowrite32(0, card->config_regs + WRITE_FLASH); card 735 drivers/atm/solos-pci.c iowrite32(0, card->config_regs + FPGA_MODE); card 736 drivers/atm/solos-pci.c iowrite32(0, card->config_regs + FLASH_MODE); card 737 drivers/atm/solos-pci.c dev_info(&card->dev->dev, "Returning FPGA to Data mode\n"); card 743 drivers/atm/solos-pci.c struct solos_card *card = dev_id; card 746 drivers/atm/solos-pci.c iowrite32(0, card->config_regs + IRQ_CLEAR); card 749 drivers/atm/solos-pci.c if (card->atmdev[0]) card 750 drivers/atm/solos-pci.c tasklet_schedule(&card->tlet); card 752 drivers/atm/solos-pci.c wake_up(&card->fw_wq); card 759 drivers/atm/solos-pci.c struct solos_card *card = (void *)card_arg; card 769 drivers/atm/solos-pci.c card_flags = fpga_tx(card); card 771 drivers/atm/solos-pci.c for (port = 0; port < card->nr_ports; port++) { card 778 drivers/atm/solos-pci.c if (card->using_dma) { card 779 drivers/atm/solos-pci.c skb = card->rx_skb[port]; card 780 drivers/atm/solos-pci.c card->rx_skb[port] = NULL; card 782 drivers/atm/solos-pci.c dma_unmap_single(&card->dev->dev, SKB_CB(skb)->dma_addr, card 794 drivers/atm/solos-pci.c memcpy_fromio(header, RX_BUF(card, port), sizeof(*header)); card 797 drivers/atm/solos-pci.c if (size > (card->buffer_size - sizeof(*header))){ card 798 drivers/atm/solos-pci.c dev_warn(&card->dev->dev, "Invalid buffer size\n"); card 810 drivers/atm/solos-pci.c dev_warn(&card->dev->dev, "Failed to allocate sk_buff for RX\n"); card 815 drivers/atm/solos-pci.c RX_BUF(card, port) + sizeof(*header), card 819 drivers/atm/solos-pci.c dev_info(&card->dev->dev, "Received: port %d\n", port); card 820 drivers/atm/solos-pci.c dev_info(&card->dev->dev, "size: %d VPI: %d VCI: %d\n", card 828 drivers/atm/solos-pci.c vcc = find_vcc(card->atmdev[port], le16_to_cpu(header->vpi), card 832 drivers/atm/solos-pci.c dev_warn(&card->dev->dev, "Received packet for unknown VPI.VCI %d.%d on port %d\n", card 844 drivers/atm/solos-pci.c if (process_status(card, port, skb) && card 846 drivers/atm/solos-pci.c dev_warn(&card->dev->dev, "Bad status packet of %d bytes on port %d:\n", skb->len, port); card 854 drivers/atm/solos-pci.c if (process_command(card, port, skb)) card 856 drivers/atm/solos-pci.c spin_lock(&card->cli_queue_lock); card 857 drivers/atm/solos-pci.c if (skb_queue_len(&card->cli_queue[port]) > 10) { card 859 drivers/atm/solos-pci.c dev_warn(&card->dev->dev, "Dropping console response on port %d\n", card 863 drivers/atm/solos-pci.c skb_queue_tail(&card->cli_queue[port], skb); card 864 drivers/atm/solos-pci.c spin_unlock(&card->cli_queue_lock); card 869 drivers/atm/solos-pci.c if (card->using_dma && card->atmdev[port] && card 870 drivers/atm/solos-pci.c !card->rx_skb[port]) { card 877 drivers/atm/solos-pci.c dma_map_single(&card->dev->dev, skb->data, card 880 drivers/atm/solos-pci.c card->config_regs + RX_DMA_ADDR(port)); card 881 drivers/atm/solos-pci.c card->rx_skb[port] = skb; card 884 drivers/atm/solos-pci.c dev_warn(&card->dev->dev, "Failed to allocate RX skb"); card 887 drivers/atm/solos-pci.c tasklet_schedule(&card->tlet); card 892 drivers/atm/solos-pci.c iowrite32(rx_done, card->config_regs + FLAGS_ADDR); card 920 drivers/atm/solos-pci.c struct solos_card *card = vcc->dev->dev_data; card 925 drivers/atm/solos-pci.c dev_warn(&card->dev->dev, "Unsupported ATM type %d\n", card 933 drivers/atm/solos-pci.c dev_warn(&card->dev->dev, "Failed to allocate sk_buff in popen()\n"); card 943 drivers/atm/solos-pci.c fpga_queue(card, SOLOS_CHAN(vcc->dev), skb, NULL); card 953 drivers/atm/solos-pci.c struct solos_card *card = vcc->dev->dev_data; card 959 drivers/atm/solos-pci.c spin_lock(&card->tx_queue_lock); card 960 drivers/atm/solos-pci.c skb_queue_walk_safe(&card->tx_queue[port], skb, tmpskb) { card 962 drivers/atm/solos-pci.c skb_unlink(skb, &card->tx_queue[port]); card 966 drivers/atm/solos-pci.c spin_unlock(&card->tx_queue_lock); card 970 drivers/atm/solos-pci.c dev_warn(&card->dev->dev, "Failed to allocate sk_buff in pclose()\n"); card 981 drivers/atm/solos-pci.c fpga_queue(card, port, skb, NULL); card 983 drivers/atm/solos-pci.c if (!wait_event_timeout(card->param_wq, !skb_shared(skb), 5 * HZ)) card 984 drivers/atm/solos-pci.c dev_warn(&card->dev->dev, card 992 drivers/atm/solos-pci.c tasklet_unlock_wait(&card->tlet); card 1028 drivers/atm/solos-pci.c static void fpga_queue(struct solos_card *card, int port, struct sk_buff *skb, card 1036 drivers/atm/solos-pci.c spin_lock_irqsave(&card->tx_queue_lock, flags); card 1037 drivers/atm/solos-pci.c old_len = skb_queue_len(&card->tx_queue[port]); card 1038 drivers/atm/solos-pci.c skb_queue_tail(&card->tx_queue[port], skb); card 1040 drivers/atm/solos-pci.c card->tx_mask |= (1 << port); card 1041 drivers/atm/solos-pci.c spin_unlock_irqrestore(&card->tx_queue_lock, flags); card 1046 drivers/atm/solos-pci.c fpga_tx(card); card 1049 drivers/atm/solos-pci.c static uint32_t fpga_tx(struct solos_card *card) card 1058 drivers/atm/solos-pci.c spin_lock_irqsave(&card->tx_lock, flags); card 1060 drivers/atm/solos-pci.c card_flags = ioread32(card->config_regs + FLAGS_ADDR); card 1068 drivers/atm/solos-pci.c tx_pending = card->tx_mask & ~card_flags; card 1072 drivers/atm/solos-pci.c struct sk_buff *oldskb = card->tx_skb[port]; card 1074 drivers/atm/solos-pci.c dma_unmap_single(&card->dev->dev, SKB_CB(oldskb)->dma_addr, card 1076 drivers/atm/solos-pci.c card->tx_skb[port] = NULL; card 1078 drivers/atm/solos-pci.c spin_lock(&card->tx_queue_lock); card 1079 drivers/atm/solos-pci.c skb = skb_dequeue(&card->tx_queue[port]); card 1081 drivers/atm/solos-pci.c card->tx_mask &= ~(1 << port); card 1082 drivers/atm/solos-pci.c spin_unlock(&card->tx_queue_lock); card 1084 drivers/atm/solos-pci.c if (skb && !card->using_dma) { card 1085 drivers/atm/solos-pci.c memcpy_toio(TX_BUF(card, port), skb->data, skb->len); card 1088 drivers/atm/solos-pci.c } else if (skb && card->using_dma) { card 1090 drivers/atm/solos-pci.c if ((unsigned long)data & card->dma_alignment) { card 1091 drivers/atm/solos-pci.c data = card->dma_bounce + (BUF_SIZE * port); card 1094 drivers/atm/solos-pci.c SKB_CB(skb)->dma_addr = dma_map_single(&card->dev->dev, data, card 1096 drivers/atm/solos-pci.c card->tx_skb[port] = skb; card 1098 drivers/atm/solos-pci.c card->config_regs + TX_DMA_ADDR(port)); card 1110 drivers/atm/solos-pci.c dev_info(&card->dev->dev, "Transmitted: port %d\n", card 1112 drivers/atm/solos-pci.c dev_info(&card->dev->dev, "size: %d VPI: %d VCI: %d\n", card 1125 drivers/atm/solos-pci.c wake_up(&card->param_wq); card 1131 drivers/atm/solos-pci.c iowrite32(tx_started, card->config_regs + FLAGS_ADDR); card 1133 drivers/atm/solos-pci.c spin_unlock_irqrestore(&card->tx_lock, flags); card 1139 drivers/atm/solos-pci.c struct solos_card *card = vcc->dev->dev_data; card 1145 drivers/atm/solos-pci.c dev_warn(&card->dev->dev, "Length of PDU is too large. Dropping PDU.\n"); card 1159 drivers/atm/solos-pci.c dev_warn(&card->dev->dev, "pskb_expand_head failed.\n"); card 1173 drivers/atm/solos-pci.c fpga_queue(card, SOLOS_CHAN(vcc->dev), skb, vcc); card 1199 drivers/atm/solos-pci.c struct solos_card *card; card 1201 drivers/atm/solos-pci.c card = kzalloc(sizeof(*card), GFP_KERNEL); card 1202 drivers/atm/solos-pci.c if (!card) card 1205 drivers/atm/solos-pci.c card->dev = dev; card 1206 drivers/atm/solos-pci.c init_waitqueue_head(&card->fw_wq); card 1207 drivers/atm/solos-pci.c init_waitqueue_head(&card->param_wq); card 1227 drivers/atm/solos-pci.c card->config_regs = pci_iomap(dev, 0, CONFIG_RAM_SIZE); card 1228 drivers/atm/solos-pci.c if (!card->config_regs) { card 1233 drivers/atm/solos-pci.c card->buffers = pci_iomap(dev, 1, DATA_RAM_SIZE); card 1234 drivers/atm/solos-pci.c if (!card->buffers) { card 1241 drivers/atm/solos-pci.c iowrite32(1, card->config_regs + FPGA_MODE); card 1242 drivers/atm/solos-pci.c ioread32(card->config_regs + FPGA_MODE); card 1244 drivers/atm/solos-pci.c iowrite32(0, card->config_regs + FPGA_MODE); card 1245 drivers/atm/solos-pci.c ioread32(card->config_regs + FPGA_MODE); card 1248 drivers/atm/solos-pci.c data32 = ioread32(card->config_regs + FPGA_VER); card 1252 drivers/atm/solos-pci.c card->fpga_version = FPGA_VERSION(major_ver,minor_ver); card 1253 drivers/atm/solos-pci.c if (card->fpga_version > LEGACY_BUFFERS) card 1254 drivers/atm/solos-pci.c card->buffer_size = BUF_SIZE; card 1256 drivers/atm/solos-pci.c card->buffer_size = OLD_BUF_SIZE; card 1270 drivers/atm/solos-pci.c card->atmel_flash = 1; card 1272 drivers/atm/solos-pci.c card->atmel_flash = 0; card 1274 drivers/atm/solos-pci.c data32 = ioread32(card->config_regs + PORTS); card 1275 drivers/atm/solos-pci.c card->nr_ports = (data32 & 0x000000FF); card 1277 drivers/atm/solos-pci.c if (card->fpga_version >= DMA_SUPPORTED) { card 1279 drivers/atm/solos-pci.c card->using_dma = 1; card 1281 drivers/atm/solos-pci.c card->dma_alignment = 3; card 1282 drivers/atm/solos-pci.c card->dma_bounce = kmalloc_array(card->nr_ports, card 1284 drivers/atm/solos-pci.c if (!card->dma_bounce) { card 1285 drivers/atm/solos-pci.c dev_warn(&card->dev->dev, "Failed to allocate DMA bounce buffers\n"); card 1292 drivers/atm/solos-pci.c card->using_dma = 0; card 1294 drivers/atm/solos-pci.c iowrite32(0xF0, card->config_regs + FLAGS_ADDR); card 1297 drivers/atm/solos-pci.c pci_set_drvdata(dev, card); card 1299 drivers/atm/solos-pci.c tasklet_init(&card->tlet, solos_bh, (unsigned long)card); card 1300 drivers/atm/solos-pci.c spin_lock_init(&card->tx_lock); card 1301 drivers/atm/solos-pci.c spin_lock_init(&card->tx_queue_lock); card 1302 drivers/atm/solos-pci.c spin_lock_init(&card->cli_queue_lock); card 1303 drivers/atm/solos-pci.c spin_lock_init(&card->param_queue_lock); card 1304 drivers/atm/solos-pci.c INIT_LIST_HEAD(&card->param_queue); card 1307 drivers/atm/solos-pci.c "solos-pci", card); card 1309 drivers/atm/solos-pci.c dev_dbg(&card->dev->dev, "Failed to request interrupt IRQ: %d\n", dev->irq); card 1313 drivers/atm/solos-pci.c iowrite32(1, card->config_regs + IRQ_EN_ADDR); card 1316 drivers/atm/solos-pci.c flash_upgrade(card, 0); card 1319 drivers/atm/solos-pci.c flash_upgrade(card, 1); card 1322 drivers/atm/solos-pci.c flash_upgrade(card, 2); card 1325 drivers/atm/solos-pci.c flash_upgrade(card, 3); card 1327 drivers/atm/solos-pci.c err = atm_init(card, &dev->dev); card 1331 drivers/atm/solos-pci.c if (card->fpga_version >= DMA_SUPPORTED && card 1332 drivers/atm/solos-pci.c sysfs_create_group(&card->dev->dev.kobj, &gpio_attr_group)) card 1333 drivers/atm/solos-pci.c dev_err(&card->dev->dev, "Could not register parameter group for GPIOs\n"); card 1338 drivers/atm/solos-pci.c iowrite32(0, card->config_regs + IRQ_EN_ADDR); card 1339 drivers/atm/solos-pci.c free_irq(dev->irq, card); card 1340 drivers/atm/solos-pci.c tasklet_kill(&card->tlet); card 1343 drivers/atm/solos-pci.c kfree(card->dma_bounce); card 1344 drivers/atm/solos-pci.c pci_iounmap(dev, card->buffers); card 1346 drivers/atm/solos-pci.c pci_iounmap(dev, card->config_regs); card 1350 drivers/atm/solos-pci.c kfree(card); card 1354 drivers/atm/solos-pci.c static int atm_init(struct solos_card *card, struct device *parent) card 1358 drivers/atm/solos-pci.c for (i = 0; i < card->nr_ports; i++) { card 1362 drivers/atm/solos-pci.c skb_queue_head_init(&card->tx_queue[i]); card 1363 drivers/atm/solos-pci.c skb_queue_head_init(&card->cli_queue[i]); card 1365 drivers/atm/solos-pci.c card->atmdev[i] = atm_dev_register("solos-pci", parent, &fpga_ops, -1, NULL); card 1366 drivers/atm/solos-pci.c if (!card->atmdev[i]) { card 1367 drivers/atm/solos-pci.c dev_err(&card->dev->dev, "Could not register ATM device %d\n", i); card 1368 drivers/atm/solos-pci.c atm_remove(card); card 1371 drivers/atm/solos-pci.c if (device_create_file(&card->atmdev[i]->class_dev, &dev_attr_console)) card 1372 drivers/atm/solos-pci.c dev_err(&card->dev->dev, "Could not register console for ATM device %d\n", i); card 1373 drivers/atm/solos-pci.c if (sysfs_create_group(&card->atmdev[i]->class_dev.kobj, &solos_attr_group)) card 1374 drivers/atm/solos-pci.c dev_err(&card->dev->dev, "Could not register parameter group for ATM device %d\n", i); card 1376 drivers/atm/solos-pci.c dev_info(&card->dev->dev, "Registered ATM device %d\n", card->atmdev[i]->number); card 1378 drivers/atm/solos-pci.c card->atmdev[i]->ci_range.vpi_bits = 8; card 1379 drivers/atm/solos-pci.c card->atmdev[i]->ci_range.vci_bits = 16; card 1380 drivers/atm/solos-pci.c card->atmdev[i]->dev_data = card; card 1381 drivers/atm/solos-pci.c card->atmdev[i]->phy_data = (void *)(unsigned long)i; card 1382 drivers/atm/solos-pci.c atm_dev_signal_change(card->atmdev[i], ATM_PHY_SIG_FOUND); card 1386 drivers/atm/solos-pci.c dev_warn(&card->dev->dev, "Failed to allocate sk_buff in atm_init()\n"); card 1397 drivers/atm/solos-pci.c fpga_queue(card, i, skb, NULL); card 1402 drivers/atm/solos-pci.c static void atm_remove(struct solos_card *card) card 1406 drivers/atm/solos-pci.c for (i = 0; i < card->nr_ports; i++) { card 1407 drivers/atm/solos-pci.c if (card->atmdev[i]) { card 1410 drivers/atm/solos-pci.c dev_info(&card->dev->dev, "Unregistering ATM device %d\n", card->atmdev[i]->number); card 1412 drivers/atm/solos-pci.c sysfs_remove_group(&card->atmdev[i]->class_dev.kobj, &solos_attr_group); card 1413 drivers/atm/solos-pci.c atm_dev_deregister(card->atmdev[i]); card 1415 drivers/atm/solos-pci.c skb = card->rx_skb[i]; card 1417 drivers/atm/solos-pci.c dma_unmap_single(&card->dev->dev, SKB_CB(skb)->dma_addr, card 1421 drivers/atm/solos-pci.c skb = card->tx_skb[i]; card 1423 drivers/atm/solos-pci.c dma_unmap_single(&card->dev->dev, SKB_CB(skb)->dma_addr, card 1427 drivers/atm/solos-pci.c while ((skb = skb_dequeue(&card->tx_queue[i]))) card 1436 drivers/atm/solos-pci.c struct solos_card *card = pci_get_drvdata(dev); card 1439 drivers/atm/solos-pci.c iowrite32(0, card->config_regs + IRQ_EN_ADDR); card 1442 drivers/atm/solos-pci.c iowrite32(1, card->config_regs + FPGA_MODE); card 1443 drivers/atm/solos-pci.c (void)ioread32(card->config_regs + FPGA_MODE); card 1445 drivers/atm/solos-pci.c if (card->fpga_version >= DMA_SUPPORTED) card 1446 drivers/atm/solos-pci.c sysfs_remove_group(&card->dev->dev.kobj, &gpio_attr_group); card 1448 drivers/atm/solos-pci.c atm_remove(card); card 1450 drivers/atm/solos-pci.c free_irq(dev->irq, card); card 1451 drivers/atm/solos-pci.c tasklet_kill(&card->tlet); card 1453 drivers/atm/solos-pci.c kfree(card->dma_bounce); card 1456 drivers/atm/solos-pci.c iowrite32(0, card->config_regs + FPGA_MODE); card 1457 drivers/atm/solos-pci.c (void)ioread32(card->config_regs + FPGA_MODE); card 1459 drivers/atm/solos-pci.c pci_iounmap(dev, card->buffers); card 1460 drivers/atm/solos-pci.c pci_iounmap(dev, card->config_regs); card 1465 drivers/atm/solos-pci.c kfree(card); card 84 drivers/block/rsxx/config.c static int rsxx_save_config(struct rsxx_cardinfo *card) card 89 drivers/block/rsxx/config.c memcpy(&cfg, &card->config, sizeof(cfg)); card 92 drivers/block/rsxx/config.c dev_err(CARD_TO_DEV(card), card 110 drivers/block/rsxx/config.c st = rsxx_creg_write(card, CREG_ADD_CONFIG, sizeof(cfg), &cfg, 1); card 117 drivers/block/rsxx/config.c int rsxx_load_config(struct rsxx_cardinfo *card) card 122 drivers/block/rsxx/config.c st = rsxx_creg_read(card, CREG_ADD_CONFIG, sizeof(card->config), card 123 drivers/block/rsxx/config.c &card->config, 1); card 125 drivers/block/rsxx/config.c dev_err(CARD_TO_DEV(card), card 130 drivers/block/rsxx/config.c config_hdr_be_to_cpu(&card->config.hdr); card 132 drivers/block/rsxx/config.c if (card->config.hdr.version == RSXX_CFG_VERSION) { card 140 drivers/block/rsxx/config.c config_data_swab(&card->config); card 143 drivers/block/rsxx/config.c crc = config_data_crc32(&card->config); card 144 drivers/block/rsxx/config.c if (crc != card->config.hdr.crc) { card 145 drivers/block/rsxx/config.c dev_err(CARD_TO_DEV(card), card 147 drivers/block/rsxx/config.c dev_info(CARD_TO_DEV(card), card 149 drivers/block/rsxx/config.c card->config.hdr.crc, crc); card 154 drivers/block/rsxx/config.c config_data_le_to_cpu(&card->config); card 156 drivers/block/rsxx/config.c } else if (card->config.hdr.version != 0) { card 157 drivers/block/rsxx/config.c dev_err(CARD_TO_DEV(card), card 159 drivers/block/rsxx/config.c card->config.hdr.version); card 166 drivers/block/rsxx/config.c dev_info(CARD_TO_DEV(card), card 168 drivers/block/rsxx/config.c initialize_config(&card->config); card 169 drivers/block/rsxx/config.c st = rsxx_save_config(card); card 174 drivers/block/rsxx/config.c card->config_valid = 1; card 176 drivers/block/rsxx/config.c dev_dbg(CARD_TO_DEV(card), "version: x%08x\n", card 177 drivers/block/rsxx/config.c card->config.hdr.version); card 178 drivers/block/rsxx/config.c dev_dbg(CARD_TO_DEV(card), "crc: x%08x\n", card 179 drivers/block/rsxx/config.c card->config.hdr.crc); card 180 drivers/block/rsxx/config.c dev_dbg(CARD_TO_DEV(card), "block_size: x%08x\n", card 181 drivers/block/rsxx/config.c card->config.data.block_size); card 182 drivers/block/rsxx/config.c dev_dbg(CARD_TO_DEV(card), "stripe_size: x%08x\n", card 183 drivers/block/rsxx/config.c card->config.data.stripe_size); card 184 drivers/block/rsxx/config.c dev_dbg(CARD_TO_DEV(card), "vendor_id: x%08x\n", card 185 drivers/block/rsxx/config.c card->config.data.vendor_id); card 186 drivers/block/rsxx/config.c dev_dbg(CARD_TO_DEV(card), "cache_order: x%08x\n", card 187 drivers/block/rsxx/config.c card->config.data.cache_order); card 188 drivers/block/rsxx/config.c dev_dbg(CARD_TO_DEV(card), "mode: x%08x\n", card 189 drivers/block/rsxx/config.c card->config.data.intr_coal.mode); card 190 drivers/block/rsxx/config.c dev_dbg(CARD_TO_DEV(card), "count: x%08x\n", card 191 drivers/block/rsxx/config.c card->config.data.intr_coal.count); card 192 drivers/block/rsxx/config.c dev_dbg(CARD_TO_DEV(card), "latency: x%08x\n", card 193 drivers/block/rsxx/config.c card->config.data.intr_coal.latency); card 52 drivers/block/rsxx/core.c struct rsxx_cardinfo *card = m->private; card 55 drivers/block/rsxx/core.c ioread32(card->regmap + HWID)); card 57 drivers/block/rsxx/core.c ioread32(card->regmap + SCRATCH)); card 59 drivers/block/rsxx/core.c ioread32(card->regmap + IER)); card 61 drivers/block/rsxx/core.c ioread32(card->regmap + IPR)); card 63 drivers/block/rsxx/core.c ioread32(card->regmap + CREG_CMD)); card 65 drivers/block/rsxx/core.c ioread32(card->regmap + CREG_ADD)); card 67 drivers/block/rsxx/core.c ioread32(card->regmap + CREG_CNT)); card 69 drivers/block/rsxx/core.c ioread32(card->regmap + CREG_STAT)); card 71 drivers/block/rsxx/core.c ioread32(card->regmap + CREG_DATA0)); card 73 drivers/block/rsxx/core.c ioread32(card->regmap + CREG_DATA1)); card 75 drivers/block/rsxx/core.c ioread32(card->regmap + CREG_DATA2)); card 77 drivers/block/rsxx/core.c ioread32(card->regmap + CREG_DATA3)); card 79 drivers/block/rsxx/core.c ioread32(card->regmap + CREG_DATA4)); card 81 drivers/block/rsxx/core.c ioread32(card->regmap + CREG_DATA5)); card 83 drivers/block/rsxx/core.c ioread32(card->regmap + CREG_DATA6)); card 85 drivers/block/rsxx/core.c ioread32(card->regmap + CREG_DATA7)); card 87 drivers/block/rsxx/core.c ioread32(card->regmap + INTR_COAL)); card 89 drivers/block/rsxx/core.c ioread32(card->regmap + HW_ERROR)); card 91 drivers/block/rsxx/core.c ioread32(card->regmap + PCI_DEBUG0)); card 93 drivers/block/rsxx/core.c ioread32(card->regmap + PCI_DEBUG1)); card 95 drivers/block/rsxx/core.c ioread32(card->regmap + PCI_DEBUG2)); card 97 drivers/block/rsxx/core.c ioread32(card->regmap + PCI_DEBUG3)); card 99 drivers/block/rsxx/core.c ioread32(card->regmap + PCI_DEBUG4)); card 101 drivers/block/rsxx/core.c ioread32(card->regmap + PCI_DEBUG5)); card 103 drivers/block/rsxx/core.c ioread32(card->regmap + PCI_DEBUG6)); card 105 drivers/block/rsxx/core.c ioread32(card->regmap + PCI_DEBUG7)); card 107 drivers/block/rsxx/core.c ioread32(card->regmap + PCI_RECONFIG)); card 114 drivers/block/rsxx/core.c struct rsxx_cardinfo *card = m->private; card 117 drivers/block/rsxx/core.c for (i = 0; i < card->n_targets; i++) { card 119 drivers/block/rsxx/core.c i, card->ctrl[i].stats.crc_errors); card 121 drivers/block/rsxx/core.c i, card->ctrl[i].stats.hard_errors); card 123 drivers/block/rsxx/core.c i, card->ctrl[i].stats.soft_errors); card 125 drivers/block/rsxx/core.c i, card->ctrl[i].stats.writes_issued); card 127 drivers/block/rsxx/core.c i, card->ctrl[i].stats.writes_failed); card 129 drivers/block/rsxx/core.c i, card->ctrl[i].stats.reads_issued); card 131 drivers/block/rsxx/core.c i, card->ctrl[i].stats.reads_failed); card 133 drivers/block/rsxx/core.c i, card->ctrl[i].stats.reads_retried); card 135 drivers/block/rsxx/core.c i, card->ctrl[i].stats.discards_issued); card 137 drivers/block/rsxx/core.c i, card->ctrl[i].stats.discards_failed); card 139 drivers/block/rsxx/core.c i, card->ctrl[i].stats.dma_sw_err); card 141 drivers/block/rsxx/core.c i, card->ctrl[i].stats.dma_hw_fault); card 143 drivers/block/rsxx/core.c i, card->ctrl[i].stats.dma_cancelled); card 145 drivers/block/rsxx/core.c i, card->ctrl[i].stats.sw_q_depth); card 147 drivers/block/rsxx/core.c i, atomic_read(&card->ctrl[i].stats.hw_q_depth)); card 166 drivers/block/rsxx/core.c struct rsxx_cardinfo *card = file_inode(fp)->i_private; card 174 drivers/block/rsxx/core.c st = rsxx_creg_read(card, CREG_ADD_CRAM + (u32)*ppos, cnt, buf, 1); card 187 drivers/block/rsxx/core.c struct rsxx_cardinfo *card = file_inode(fp)->i_private; card 195 drivers/block/rsxx/core.c st = rsxx_creg_write(card, CREG_ADD_CRAM + (u32)*ppos, cnt, buf, 1); card 225 drivers/block/rsxx/core.c static void rsxx_debugfs_dev_new(struct rsxx_cardinfo *card) card 231 drivers/block/rsxx/core.c card->debugfs_dir = debugfs_create_dir(card->gendisk->disk_name, NULL); card 232 drivers/block/rsxx/core.c if (IS_ERR_OR_NULL(card->debugfs_dir)) card 236 drivers/block/rsxx/core.c card->debugfs_dir, card, card 242 drivers/block/rsxx/core.c card->debugfs_dir, card, card 248 drivers/block/rsxx/core.c card->debugfs_dir, card, card 259 drivers/block/rsxx/core.c debugfs_remove(card->debugfs_dir); card 261 drivers/block/rsxx/core.c card->debugfs_dir = NULL; card 266 drivers/block/rsxx/core.c static void rsxx_mask_interrupts(struct rsxx_cardinfo *card) card 268 drivers/block/rsxx/core.c card->isr_mask = 0; card 269 drivers/block/rsxx/core.c card->ier_mask = 0; card 289 drivers/block/rsxx/core.c void rsxx_enable_ier(struct rsxx_cardinfo *card, unsigned int intr) card 291 drivers/block/rsxx/core.c if (unlikely(card->halt) || card 292 drivers/block/rsxx/core.c unlikely(card->eeh_state)) card 295 drivers/block/rsxx/core.c __enable_intr(&card->ier_mask, intr); card 296 drivers/block/rsxx/core.c iowrite32(card->ier_mask, card->regmap + IER); card 299 drivers/block/rsxx/core.c void rsxx_disable_ier(struct rsxx_cardinfo *card, unsigned int intr) card 301 drivers/block/rsxx/core.c if (unlikely(card->eeh_state)) card 304 drivers/block/rsxx/core.c __disable_intr(&card->ier_mask, intr); card 305 drivers/block/rsxx/core.c iowrite32(card->ier_mask, card->regmap + IER); card 308 drivers/block/rsxx/core.c void rsxx_enable_ier_and_isr(struct rsxx_cardinfo *card, card 311 drivers/block/rsxx/core.c if (unlikely(card->halt) || card 312 drivers/block/rsxx/core.c unlikely(card->eeh_state)) card 315 drivers/block/rsxx/core.c __enable_intr(&card->isr_mask, intr); card 316 drivers/block/rsxx/core.c __enable_intr(&card->ier_mask, intr); card 317 drivers/block/rsxx/core.c iowrite32(card->ier_mask, card->regmap + IER); card 319 drivers/block/rsxx/core.c void rsxx_disable_ier_and_isr(struct rsxx_cardinfo *card, card 322 drivers/block/rsxx/core.c if (unlikely(card->eeh_state)) card 325 drivers/block/rsxx/core.c __disable_intr(&card->isr_mask, intr); card 326 drivers/block/rsxx/core.c __disable_intr(&card->ier_mask, intr); card 327 drivers/block/rsxx/core.c iowrite32(card->ier_mask, card->regmap + IER); card 332 drivers/block/rsxx/core.c struct rsxx_cardinfo *card = pdata; card 338 drivers/block/rsxx/core.c spin_lock(&card->irq_lock); card 343 drivers/block/rsxx/core.c if (unlikely(card->eeh_state)) card 346 drivers/block/rsxx/core.c isr = ioread32(card->regmap + ISR); card 353 drivers/block/rsxx/core.c dev_info(CARD_TO_DEV(card), card 358 drivers/block/rsxx/core.c isr &= card->isr_mask; card 362 drivers/block/rsxx/core.c for (i = 0; i < card->n_targets; i++) { card 364 drivers/block/rsxx/core.c if (card->ier_mask & CR_INTR_DMA(i)) { card 365 drivers/block/rsxx/core.c rsxx_disable_ier(card, CR_INTR_DMA(i)); card 368 drivers/block/rsxx/core.c queue_work(card->ctrl[i].done_wq, card 369 drivers/block/rsxx/core.c &card->ctrl[i].dma_done_work); card 375 drivers/block/rsxx/core.c queue_work(card->creg_ctrl.creg_wq, card 376 drivers/block/rsxx/core.c &card->creg_ctrl.done_work); card 381 drivers/block/rsxx/core.c queue_work(card->event_wq, &card->event_work); card 382 drivers/block/rsxx/core.c rsxx_disable_ier_and_isr(card, CR_INTR_EVENT); card 387 drivers/block/rsxx/core.c spin_unlock(&card->irq_lock); card 404 drivers/block/rsxx/core.c static void card_state_change(struct rsxx_cardinfo *card, card 409 drivers/block/rsxx/core.c dev_info(CARD_TO_DEV(card), card 411 drivers/block/rsxx/core.c rsxx_card_state_to_str(card->state), card 414 drivers/block/rsxx/core.c card->state = new_state; card 417 drivers/block/rsxx/core.c if (!card->config_valid) card 422 drivers/block/rsxx/core.c dev_crit(CARD_TO_DEV(card), card 430 drivers/block/rsxx/core.c st = rsxx_get_card_size8(card, &card->size8); card 432 drivers/block/rsxx/core.c dev_err(CARD_TO_DEV(card), card 435 drivers/block/rsxx/core.c if (card->config_valid) card 436 drivers/block/rsxx/core.c set_capacity(card->gendisk, card->size8 >> 9); card 440 drivers/block/rsxx/core.c dev_crit(CARD_TO_DEV(card), card 455 drivers/block/rsxx/core.c set_capacity(card->gendisk, 0); card 462 drivers/block/rsxx/core.c struct rsxx_cardinfo *card; card 467 drivers/block/rsxx/core.c card = container_of(work, struct rsxx_cardinfo, event_work); card 469 drivers/block/rsxx/core.c if (unlikely(card->halt)) card 477 drivers/block/rsxx/core.c spin_lock_irqsave(&card->irq_lock, flags); card 478 drivers/block/rsxx/core.c rsxx_enable_ier_and_isr(card, CR_INTR_EVENT); card 479 drivers/block/rsxx/core.c spin_unlock_irqrestore(&card->irq_lock, flags); card 481 drivers/block/rsxx/core.c st = rsxx_get_card_state(card, &state); card 483 drivers/block/rsxx/core.c dev_info(CARD_TO_DEV(card), card 488 drivers/block/rsxx/core.c if (card->state != state) card 489 drivers/block/rsxx/core.c card_state_change(card, state); card 491 drivers/block/rsxx/core.c if (card->creg_ctrl.creg_stats.stat & CREG_STAT_LOG_PENDING) card 492 drivers/block/rsxx/core.c rsxx_read_hw_log(card); card 496 drivers/block/rsxx/core.c static int card_shutdown(struct rsxx_cardinfo *card) card 506 drivers/block/rsxx/core.c st = rsxx_get_card_state(card, &state); card 518 drivers/block/rsxx/core.c st = rsxx_issue_card_cmd(card, CARD_CMD_SHUTDOWN); card 525 drivers/block/rsxx/core.c st = rsxx_get_card_state(card, &state); card 539 drivers/block/rsxx/core.c struct rsxx_cardinfo *card = pci_get_drvdata(dev); card 545 drivers/block/rsxx/core.c card->eeh_state = 1; card 546 drivers/block/rsxx/core.c rsxx_mask_interrupts(card); card 557 drivers/block/rsxx/core.c st = rsxx_eeh_save_issued_dmas(card); card 561 drivers/block/rsxx/core.c rsxx_eeh_save_issued_creg(card); card 563 drivers/block/rsxx/core.c for (i = 0; i < card->n_targets; i++) { card 564 drivers/block/rsxx/core.c if (card->ctrl[i].status.buf) card 565 drivers/block/rsxx/core.c pci_free_consistent(card->dev, STATUS_BUFFER_SIZE8, card 566 drivers/block/rsxx/core.c card->ctrl[i].status.buf, card 567 drivers/block/rsxx/core.c card->ctrl[i].status.dma_addr); card 568 drivers/block/rsxx/core.c if (card->ctrl[i].cmd.buf) card 569 drivers/block/rsxx/core.c pci_free_consistent(card->dev, COMMAND_BUFFER_SIZE8, card 570 drivers/block/rsxx/core.c card->ctrl[i].cmd.buf, card 571 drivers/block/rsxx/core.c card->ctrl[i].cmd.dma_addr); card 579 drivers/block/rsxx/core.c struct rsxx_cardinfo *card = pci_get_drvdata(dev); card 585 drivers/block/rsxx/core.c card->eeh_state = 1; card 586 drivers/block/rsxx/core.c card->halt = 1; card 588 drivers/block/rsxx/core.c for (i = 0; i < card->n_targets; i++) { card 589 drivers/block/rsxx/core.c spin_lock_bh(&card->ctrl[i].queue_lock); card 590 drivers/block/rsxx/core.c cnt = rsxx_cleanup_dma_queue(&card->ctrl[i], card 591 drivers/block/rsxx/core.c &card->ctrl[i].queue, card 593 drivers/block/rsxx/core.c spin_unlock_bh(&card->ctrl[i].queue_lock); card 595 drivers/block/rsxx/core.c cnt += rsxx_dma_cancel(&card->ctrl[i]); card 598 drivers/block/rsxx/core.c dev_info(CARD_TO_DEV(card), card 600 drivers/block/rsxx/core.c cnt, card->ctrl[i].id); card 604 drivers/block/rsxx/core.c static int rsxx_eeh_fifo_flush_poll(struct rsxx_cardinfo *card) card 611 drivers/block/rsxx/core.c status = ioread32(card->regmap + PCI_RECONFIG); card 619 drivers/block/rsxx/core.c dev_warn(CARD_TO_DEV(card), "HW: flash controller timeout\n"); card 652 drivers/block/rsxx/core.c struct rsxx_cardinfo *card = pci_get_drvdata(dev); card 666 drivers/block/rsxx/core.c st = rsxx_eeh_fifo_flush_poll(card); card 670 drivers/block/rsxx/core.c rsxx_dma_queue_reset(card); card 672 drivers/block/rsxx/core.c for (i = 0; i < card->n_targets; i++) { card 673 drivers/block/rsxx/core.c st = rsxx_hw_buffers_init(dev, &card->ctrl[i]); card 678 drivers/block/rsxx/core.c if (card->config_valid) card 679 drivers/block/rsxx/core.c rsxx_dma_configure(card); card 682 drivers/block/rsxx/core.c st = ioread32(card->regmap + ISR); card 684 drivers/block/rsxx/core.c card->eeh_state = 0; card 686 drivers/block/rsxx/core.c spin_lock_irqsave(&card->irq_lock, flags); card 687 drivers/block/rsxx/core.c if (card->n_targets & RSXX_MAX_TARGETS) card 688 drivers/block/rsxx/core.c rsxx_enable_ier_and_isr(card, CR_INTR_ALL_G); card 690 drivers/block/rsxx/core.c rsxx_enable_ier_and_isr(card, CR_INTR_ALL_C); card 691 drivers/block/rsxx/core.c spin_unlock_irqrestore(&card->irq_lock, flags); card 693 drivers/block/rsxx/core.c rsxx_kick_creg_queue(card); card 695 drivers/block/rsxx/core.c for (i = 0; i < card->n_targets; i++) { card 696 drivers/block/rsxx/core.c spin_lock(&card->ctrl[i].queue_lock); card 697 drivers/block/rsxx/core.c if (list_empty(&card->ctrl[i].queue)) { card 698 drivers/block/rsxx/core.c spin_unlock(&card->ctrl[i].queue_lock); card 701 drivers/block/rsxx/core.c spin_unlock(&card->ctrl[i].queue_lock); card 703 drivers/block/rsxx/core.c queue_work(card->ctrl[i].issue_wq, card 704 drivers/block/rsxx/core.c &card->ctrl[i].issue_dma_work); card 712 drivers/block/rsxx/core.c for (i = 0; i < card->n_targets; i++) { card 713 drivers/block/rsxx/core.c if (card->ctrl[i].status.buf) card 714 drivers/block/rsxx/core.c pci_free_consistent(card->dev, card 716 drivers/block/rsxx/core.c card->ctrl[i].status.buf, card 717 drivers/block/rsxx/core.c card->ctrl[i].status.dma_addr); card 718 drivers/block/rsxx/core.c if (card->ctrl[i].cmd.buf) card 719 drivers/block/rsxx/core.c pci_free_consistent(card->dev, card 721 drivers/block/rsxx/core.c card->ctrl[i].cmd.buf, card 722 drivers/block/rsxx/core.c card->ctrl[i].cmd.dma_addr); card 733 drivers/block/rsxx/core.c static int rsxx_compatibility_check(struct rsxx_cardinfo *card) card 737 drivers/block/rsxx/core.c pci_read_config_byte(card->dev, PCI_REVISION_ID, &pci_rev); card 747 drivers/block/rsxx/core.c struct rsxx_cardinfo *card; card 753 drivers/block/rsxx/core.c card = kzalloc(sizeof(*card), GFP_KERNEL); card 754 drivers/block/rsxx/core.c if (!card) card 757 drivers/block/rsxx/core.c card->dev = dev; card 758 drivers/block/rsxx/core.c pci_set_drvdata(dev, card); card 763 drivers/block/rsxx/core.c card->disk_id = st; card 773 drivers/block/rsxx/core.c dev_err(CARD_TO_DEV(card), card 780 drivers/block/rsxx/core.c dev_err(CARD_TO_DEV(card), card 786 drivers/block/rsxx/core.c dev_err(CARD_TO_DEV(card), "BAR0 has length 0!\n"); card 791 drivers/block/rsxx/core.c card->regmap = pci_iomap(dev, 0, 0); card 792 drivers/block/rsxx/core.c if (!card->regmap) { card 793 drivers/block/rsxx/core.c dev_err(CARD_TO_DEV(card), "Failed to map BAR0\n"); card 798 drivers/block/rsxx/core.c spin_lock_init(&card->irq_lock); card 799 drivers/block/rsxx/core.c card->halt = 0; card 800 drivers/block/rsxx/core.c card->eeh_state = 0; card 802 drivers/block/rsxx/core.c spin_lock_irq(&card->irq_lock); card 803 drivers/block/rsxx/core.c rsxx_disable_ier_and_isr(card, CR_INTR_ALL); card 804 drivers/block/rsxx/core.c spin_unlock_irq(&card->irq_lock); card 809 drivers/block/rsxx/core.c dev_warn(CARD_TO_DEV(card), card 814 drivers/block/rsxx/core.c DRIVER_NAME, card); card 816 drivers/block/rsxx/core.c dev_err(CARD_TO_DEV(card), card 822 drivers/block/rsxx/core.c st = rsxx_creg_setup(card); card 824 drivers/block/rsxx/core.c dev_err(CARD_TO_DEV(card), "Failed to setup creg interface.\n"); card 828 drivers/block/rsxx/core.c spin_lock_irq(&card->irq_lock); card 829 drivers/block/rsxx/core.c rsxx_enable_ier_and_isr(card, CR_INTR_CREG); card 830 drivers/block/rsxx/core.c spin_unlock_irq(&card->irq_lock); card 832 drivers/block/rsxx/core.c st = rsxx_compatibility_check(card); card 834 drivers/block/rsxx/core.c dev_warn(CARD_TO_DEV(card), card 841 drivers/block/rsxx/core.c st = rsxx_load_config(card); card 843 drivers/block/rsxx/core.c dev_err(CARD_TO_DEV(card), card 847 drivers/block/rsxx/core.c st = rsxx_get_num_targets(card, &card->n_targets); card 849 drivers/block/rsxx/core.c dev_info(CARD_TO_DEV(card), card 852 drivers/block/rsxx/core.c card->ctrl = kcalloc(card->n_targets, sizeof(*card->ctrl), card 854 drivers/block/rsxx/core.c if (!card->ctrl) { card 859 drivers/block/rsxx/core.c st = rsxx_dma_setup(card); card 861 drivers/block/rsxx/core.c dev_info(CARD_TO_DEV(card), card 867 drivers/block/rsxx/core.c card->event_wq = create_singlethread_workqueue(DRIVER_NAME"_event"); card 868 drivers/block/rsxx/core.c if (!card->event_wq) { card 869 drivers/block/rsxx/core.c dev_err(CARD_TO_DEV(card), "Failed card event setup.\n"); card 873 drivers/block/rsxx/core.c INIT_WORK(&card->event_work, card_event_handler); card 875 drivers/block/rsxx/core.c st = rsxx_setup_dev(card); card 879 drivers/block/rsxx/core.c rsxx_get_card_state(card, &card->state); card 881 drivers/block/rsxx/core.c dev_info(CARD_TO_DEV(card), card 883 drivers/block/rsxx/core.c rsxx_card_state_to_str(card->state)); card 890 drivers/block/rsxx/core.c spin_lock_irq(&card->irq_lock); card 891 drivers/block/rsxx/core.c rsxx_enable_ier_and_isr(card, CR_INTR_EVENT); card 892 drivers/block/rsxx/core.c spin_unlock_irq(&card->irq_lock); card 894 drivers/block/rsxx/core.c if (card->state == CARD_STATE_SHUTDOWN) { card 895 drivers/block/rsxx/core.c st = rsxx_issue_card_cmd(card, CARD_CMD_STARTUP); card 897 drivers/block/rsxx/core.c dev_crit(CARD_TO_DEV(card), card 902 drivers/block/rsxx/core.c dev_info(CARD_TO_DEV(card), card 909 drivers/block/rsxx/core.c rsxx_get_card_state(card, &card->state); card 911 drivers/block/rsxx/core.c (card->state == CARD_STATE_STARTING)); card 913 drivers/block/rsxx/core.c if (card->state == CARD_STATE_STARTING) { card 914 drivers/block/rsxx/core.c dev_warn(CARD_TO_DEV(card), card 916 drivers/block/rsxx/core.c card->size8 = 0; card 918 drivers/block/rsxx/core.c dev_info(CARD_TO_DEV(card), card 920 drivers/block/rsxx/core.c rsxx_card_state_to_str(card->state)); card 921 drivers/block/rsxx/core.c st = rsxx_get_card_size8(card, &card->size8); card 923 drivers/block/rsxx/core.c card->size8 = 0; card 926 drivers/block/rsxx/core.c } else if (card->state == CARD_STATE_GOOD || card 927 drivers/block/rsxx/core.c card->state == CARD_STATE_RD_ONLY_FAULT) { card 928 drivers/block/rsxx/core.c st = rsxx_get_card_size8(card, &card->size8); card 930 drivers/block/rsxx/core.c card->size8 = 0; card 933 drivers/block/rsxx/core.c rsxx_attach_dev(card); card 936 drivers/block/rsxx/core.c rsxx_debugfs_dev_new(card); card 941 drivers/block/rsxx/core.c destroy_workqueue(card->event_wq); card 942 drivers/block/rsxx/core.c card->event_wq = NULL; card 944 drivers/block/rsxx/core.c rsxx_dma_destroy(card); card 947 drivers/block/rsxx/core.c destroy_workqueue(card->creg_ctrl.creg_wq); card 948 drivers/block/rsxx/core.c card->creg_ctrl.creg_wq = NULL; card 950 drivers/block/rsxx/core.c spin_lock_irq(&card->irq_lock); card 951 drivers/block/rsxx/core.c rsxx_disable_ier_and_isr(card, CR_INTR_ALL); card 952 drivers/block/rsxx/core.c spin_unlock_irq(&card->irq_lock); card 953 drivers/block/rsxx/core.c free_irq(dev->irq, card); card 957 drivers/block/rsxx/core.c pci_iounmap(dev, card->regmap); card 964 drivers/block/rsxx/core.c ida_free(&rsxx_disk_ida, card->disk_id); card 966 drivers/block/rsxx/core.c kfree(card); card 973 drivers/block/rsxx/core.c struct rsxx_cardinfo *card = pci_get_drvdata(dev); card 978 drivers/block/rsxx/core.c if (!card) card 981 drivers/block/rsxx/core.c dev_info(CARD_TO_DEV(card), card 984 drivers/block/rsxx/core.c rsxx_detach_dev(card); card 986 drivers/block/rsxx/core.c for (i = 0; i < card->n_targets; i++) { card 987 drivers/block/rsxx/core.c spin_lock_irqsave(&card->irq_lock, flags); card 988 drivers/block/rsxx/core.c rsxx_disable_ier_and_isr(card, CR_INTR_DMA(i)); card 989 drivers/block/rsxx/core.c spin_unlock_irqrestore(&card->irq_lock, flags); card 992 drivers/block/rsxx/core.c st = card_shutdown(card); card 994 drivers/block/rsxx/core.c dev_crit(CARD_TO_DEV(card), "Shutdown failed!\n"); card 997 drivers/block/rsxx/core.c spin_lock_irqsave(&card->irq_lock, flags); card 998 drivers/block/rsxx/core.c rsxx_disable_ier_and_isr(card, CR_INTR_EVENT); card 999 drivers/block/rsxx/core.c spin_unlock_irqrestore(&card->irq_lock, flags); card 1001 drivers/block/rsxx/core.c cancel_work_sync(&card->event_work); card 1003 drivers/block/rsxx/core.c destroy_workqueue(card->event_wq); card 1004 drivers/block/rsxx/core.c rsxx_destroy_dev(card); card 1005 drivers/block/rsxx/core.c rsxx_dma_destroy(card); card 1006 drivers/block/rsxx/core.c destroy_workqueue(card->creg_ctrl.creg_wq); card 1008 drivers/block/rsxx/core.c spin_lock_irqsave(&card->irq_lock, flags); card 1009 drivers/block/rsxx/core.c rsxx_disable_ier_and_isr(card, CR_INTR_ALL); card 1010 drivers/block/rsxx/core.c spin_unlock_irqrestore(&card->irq_lock, flags); card 1013 drivers/block/rsxx/core.c card->halt = 1; card 1015 drivers/block/rsxx/core.c debugfs_remove_recursive(card->debugfs_dir); card 1017 drivers/block/rsxx/core.c free_irq(dev->irq, card); card 1022 drivers/block/rsxx/core.c rsxx_creg_destroy(card); card 1024 drivers/block/rsxx/core.c pci_iounmap(dev, card->regmap); card 1029 drivers/block/rsxx/core.c ida_free(&rsxx_disk_ida, card->disk_id); card 1030 drivers/block/rsxx/core.c kfree(card); card 1041 drivers/block/rsxx/core.c struct rsxx_cardinfo *card = pci_get_drvdata(dev); card 1045 drivers/block/rsxx/core.c if (!card) card 1048 drivers/block/rsxx/core.c dev_info(CARD_TO_DEV(card), "Shutting down PCI-Flash SSD.\n"); card 1050 drivers/block/rsxx/core.c rsxx_detach_dev(card); card 1052 drivers/block/rsxx/core.c for (i = 0; i < card->n_targets; i++) { card 1053 drivers/block/rsxx/core.c spin_lock_irqsave(&card->irq_lock, flags); card 1054 drivers/block/rsxx/core.c rsxx_disable_ier_and_isr(card, CR_INTR_DMA(i)); card 1055 drivers/block/rsxx/core.c spin_unlock_irqrestore(&card->irq_lock, flags); card 1058 drivers/block/rsxx/core.c card_shutdown(card); card 18 drivers/block/rsxx/cregs.c typedef void (*creg_cmd_cb)(struct rsxx_cardinfo *card, card 47 drivers/block/rsxx/cregs.c static int copy_to_creg_data(struct rsxx_cardinfo *card, card 55 drivers/block/rsxx/cregs.c if (unlikely(card->eeh_state)) card 64 drivers/block/rsxx/cregs.c iowrite32be(data[i], card->regmap + CREG_DATA(i)); card 66 drivers/block/rsxx/cregs.c iowrite32(data[i], card->regmap + CREG_DATA(i)); card 73 drivers/block/rsxx/cregs.c static int copy_from_creg_data(struct rsxx_cardinfo *card, card 81 drivers/block/rsxx/cregs.c if (unlikely(card->eeh_state)) card 90 drivers/block/rsxx/cregs.c data[i] = ioread32be(card->regmap + CREG_DATA(i)); card 92 drivers/block/rsxx/cregs.c data[i] = ioread32(card->regmap + CREG_DATA(i)); card 98 drivers/block/rsxx/cregs.c static void creg_issue_cmd(struct rsxx_cardinfo *card, struct creg_cmd *cmd) card 102 drivers/block/rsxx/cregs.c if (unlikely(card->eeh_state)) card 105 drivers/block/rsxx/cregs.c iowrite32(cmd->addr, card->regmap + CREG_ADD); card 106 drivers/block/rsxx/cregs.c iowrite32(cmd->cnt8, card->regmap + CREG_CNT); card 110 drivers/block/rsxx/cregs.c st = copy_to_creg_data(card, cmd->cnt8, card 117 drivers/block/rsxx/cregs.c if (unlikely(card->eeh_state)) card 121 drivers/block/rsxx/cregs.c iowrite32(cmd->op, card->regmap + CREG_CMD); card 124 drivers/block/rsxx/cregs.c static void creg_kick_queue(struct rsxx_cardinfo *card) card 126 drivers/block/rsxx/cregs.c if (card->creg_ctrl.active || list_empty(&card->creg_ctrl.queue)) card 129 drivers/block/rsxx/cregs.c card->creg_ctrl.active = 1; card 130 drivers/block/rsxx/cregs.c card->creg_ctrl.active_cmd = list_first_entry(&card->creg_ctrl.queue, card 132 drivers/block/rsxx/cregs.c list_del(&card->creg_ctrl.active_cmd->list); card 133 drivers/block/rsxx/cregs.c card->creg_ctrl.q_depth--; card 141 drivers/block/rsxx/cregs.c mod_timer(&card->creg_ctrl.cmd_timer, card 144 drivers/block/rsxx/cregs.c creg_issue_cmd(card, card->creg_ctrl.active_cmd); card 147 drivers/block/rsxx/cregs.c static int creg_queue_cmd(struct rsxx_cardinfo *card, card 159 drivers/block/rsxx/cregs.c if (unlikely(card->halt)) card 162 drivers/block/rsxx/cregs.c if (card->creg_ctrl.reset) card 183 drivers/block/rsxx/cregs.c spin_lock_bh(&card->creg_ctrl.lock); card 184 drivers/block/rsxx/cregs.c list_add_tail(&cmd->list, &card->creg_ctrl.queue); card 185 drivers/block/rsxx/cregs.c card->creg_ctrl.q_depth++; card 186 drivers/block/rsxx/cregs.c creg_kick_queue(card); card 187 drivers/block/rsxx/cregs.c spin_unlock_bh(&card->creg_ctrl.lock); card 194 drivers/block/rsxx/cregs.c struct rsxx_cardinfo *card = from_timer(card, t, creg_ctrl.cmd_timer); card 197 drivers/block/rsxx/cregs.c spin_lock(&card->creg_ctrl.lock); card 198 drivers/block/rsxx/cregs.c cmd = card->creg_ctrl.active_cmd; card 199 drivers/block/rsxx/cregs.c card->creg_ctrl.active_cmd = NULL; card 200 drivers/block/rsxx/cregs.c spin_unlock(&card->creg_ctrl.lock); card 203 drivers/block/rsxx/cregs.c card->creg_ctrl.creg_stats.creg_timeout++; card 204 drivers/block/rsxx/cregs.c dev_warn(CARD_TO_DEV(card), card 210 drivers/block/rsxx/cregs.c cmd->cb(card, cmd, -ETIMEDOUT); card 215 drivers/block/rsxx/cregs.c spin_lock(&card->creg_ctrl.lock); card 216 drivers/block/rsxx/cregs.c card->creg_ctrl.active = 0; card 217 drivers/block/rsxx/cregs.c creg_kick_queue(card); card 218 drivers/block/rsxx/cregs.c spin_unlock(&card->creg_ctrl.lock); card 224 drivers/block/rsxx/cregs.c struct rsxx_cardinfo *card; card 228 drivers/block/rsxx/cregs.c card = container_of(work, struct rsxx_cardinfo, card 235 drivers/block/rsxx/cregs.c if (del_timer_sync(&card->creg_ctrl.cmd_timer) == 0) card 236 drivers/block/rsxx/cregs.c card->creg_ctrl.creg_stats.failed_cancel_timer++; card 238 drivers/block/rsxx/cregs.c spin_lock_bh(&card->creg_ctrl.lock); card 239 drivers/block/rsxx/cregs.c cmd = card->creg_ctrl.active_cmd; card 240 drivers/block/rsxx/cregs.c card->creg_ctrl.active_cmd = NULL; card 241 drivers/block/rsxx/cregs.c spin_unlock_bh(&card->creg_ctrl.lock); card 244 drivers/block/rsxx/cregs.c dev_err(CARD_TO_DEV(card), card 249 drivers/block/rsxx/cregs.c card->creg_ctrl.creg_stats.stat = ioread32(card->regmap + CREG_STAT); card 250 drivers/block/rsxx/cregs.c cmd->status = card->creg_ctrl.creg_stats.stat; card 252 drivers/block/rsxx/cregs.c dev_err(CARD_TO_DEV(card), card 266 drivers/block/rsxx/cregs.c unsigned int cnt8 = ioread32(card->regmap + CREG_CNT); card 270 drivers/block/rsxx/cregs.c dev_err(CARD_TO_DEV(card), card 276 drivers/block/rsxx/cregs.c dev_err(CARD_TO_DEV(card), card 282 drivers/block/rsxx/cregs.c st = copy_from_creg_data(card, cnt8, cmd->buf, cmd->stream); card 287 drivers/block/rsxx/cregs.c cmd->cb(card, cmd, st); card 291 drivers/block/rsxx/cregs.c spin_lock_bh(&card->creg_ctrl.lock); card 292 drivers/block/rsxx/cregs.c card->creg_ctrl.active = 0; card 293 drivers/block/rsxx/cregs.c creg_kick_queue(card); card 294 drivers/block/rsxx/cregs.c spin_unlock_bh(&card->creg_ctrl.lock); card 297 drivers/block/rsxx/cregs.c static void creg_reset(struct rsxx_cardinfo *card) card 307 drivers/block/rsxx/cregs.c if (!mutex_trylock(&card->creg_ctrl.reset_lock)) card 310 drivers/block/rsxx/cregs.c card->creg_ctrl.reset = 1; card 311 drivers/block/rsxx/cregs.c spin_lock_irqsave(&card->irq_lock, flags); card 312 drivers/block/rsxx/cregs.c rsxx_disable_ier_and_isr(card, CR_INTR_CREG | CR_INTR_EVENT); card 313 drivers/block/rsxx/cregs.c spin_unlock_irqrestore(&card->irq_lock, flags); card 315 drivers/block/rsxx/cregs.c dev_warn(CARD_TO_DEV(card), card 319 drivers/block/rsxx/cregs.c spin_lock_bh(&card->creg_ctrl.lock); card 320 drivers/block/rsxx/cregs.c list_for_each_entry_safe(cmd, tmp, &card->creg_ctrl.queue, list) { card 322 drivers/block/rsxx/cregs.c card->creg_ctrl.q_depth--; card 324 drivers/block/rsxx/cregs.c cmd->cb(card, cmd, -ECANCELED); card 328 drivers/block/rsxx/cregs.c cmd = card->creg_ctrl.active_cmd; card 329 drivers/block/rsxx/cregs.c card->creg_ctrl.active_cmd = NULL; card 331 drivers/block/rsxx/cregs.c if (timer_pending(&card->creg_ctrl.cmd_timer)) card 332 drivers/block/rsxx/cregs.c del_timer_sync(&card->creg_ctrl.cmd_timer); card 335 drivers/block/rsxx/cregs.c cmd->cb(card, cmd, -ECANCELED); card 338 drivers/block/rsxx/cregs.c card->creg_ctrl.active = 0; card 340 drivers/block/rsxx/cregs.c spin_unlock_bh(&card->creg_ctrl.lock); card 342 drivers/block/rsxx/cregs.c card->creg_ctrl.reset = 0; card 343 drivers/block/rsxx/cregs.c spin_lock_irqsave(&card->irq_lock, flags); card 344 drivers/block/rsxx/cregs.c rsxx_enable_ier_and_isr(card, CR_INTR_CREG | CR_INTR_EVENT); card 345 drivers/block/rsxx/cregs.c spin_unlock_irqrestore(&card->irq_lock, flags); card 347 drivers/block/rsxx/cregs.c mutex_unlock(&card->creg_ctrl.reset_lock); card 357 drivers/block/rsxx/cregs.c static void creg_cmd_done_cb(struct rsxx_cardinfo *card, card 371 drivers/block/rsxx/cregs.c static int __issue_creg_rw(struct rsxx_cardinfo *card, card 388 drivers/block/rsxx/cregs.c st = creg_queue_cmd(card, op, addr, cnt8, buf, stream, creg_cmd_done_cb, card 399 drivers/block/rsxx/cregs.c card->creg_ctrl.q_depth + 20000); card 411 drivers/block/rsxx/cregs.c dev_crit(CARD_TO_DEV(card), card 413 drivers/block/rsxx/cregs.c creg_reset(card); card 427 drivers/block/rsxx/cregs.c ioread32(card->regmap + SCRATCH); card 429 drivers/block/rsxx/cregs.c dev_warn(CARD_TO_DEV(card), card 438 drivers/block/rsxx/cregs.c static int issue_creg_rw(struct rsxx_cardinfo *card, card 455 drivers/block/rsxx/cregs.c st = __issue_creg_rw(card, op, addr, xfer, card 469 drivers/block/rsxx/cregs.c int rsxx_creg_write(struct rsxx_cardinfo *card, card 475 drivers/block/rsxx/cregs.c return issue_creg_rw(card, addr, size8, data, byte_stream, 0); card 478 drivers/block/rsxx/cregs.c int rsxx_creg_read(struct rsxx_cardinfo *card, card 484 drivers/block/rsxx/cregs.c return issue_creg_rw(card, addr, size8, data, byte_stream, 1); card 487 drivers/block/rsxx/cregs.c int rsxx_get_card_state(struct rsxx_cardinfo *card, unsigned int *state) card 489 drivers/block/rsxx/cregs.c return rsxx_creg_read(card, CREG_ADD_CARD_STATE, card 493 drivers/block/rsxx/cregs.c int rsxx_get_card_size8(struct rsxx_cardinfo *card, u64 *size8) card 498 drivers/block/rsxx/cregs.c st = rsxx_creg_read(card, CREG_ADD_CARD_SIZE, card 507 drivers/block/rsxx/cregs.c int rsxx_get_num_targets(struct rsxx_cardinfo *card, card 510 drivers/block/rsxx/cregs.c return rsxx_creg_read(card, CREG_ADD_NUM_TARGETS, card 514 drivers/block/rsxx/cregs.c int rsxx_get_card_capabilities(struct rsxx_cardinfo *card, card 517 drivers/block/rsxx/cregs.c return rsxx_creg_read(card, CREG_ADD_CAPABILITIES, card 521 drivers/block/rsxx/cregs.c int rsxx_issue_card_cmd(struct rsxx_cardinfo *card, u32 cmd) card 523 drivers/block/rsxx/cregs.c return rsxx_creg_write(card, CREG_ADD_CARD_CMD, card 529 drivers/block/rsxx/cregs.c static void hw_log_msg(struct rsxx_cardinfo *card, const char *str, int len) card 545 drivers/block/rsxx/cregs.c dev_emerg(CARD_TO_DEV(card), "HW: %.*s", len, str); card 548 drivers/block/rsxx/cregs.c dev_alert(CARD_TO_DEV(card), "HW: %.*s", len, str); card 551 drivers/block/rsxx/cregs.c dev_crit(CARD_TO_DEV(card), "HW: %.*s", len, str); card 554 drivers/block/rsxx/cregs.c dev_err(CARD_TO_DEV(card), "HW: %.*s", len, str); card 557 drivers/block/rsxx/cregs.c dev_warn(CARD_TO_DEV(card), "HW: %.*s", len, str); card 560 drivers/block/rsxx/cregs.c dev_notice(CARD_TO_DEV(card), "HW: %.*s", len, str); card 563 drivers/block/rsxx/cregs.c dev_info(CARD_TO_DEV(card), "HW: %.*s", len, str); card 566 drivers/block/rsxx/cregs.c dev_dbg(CARD_TO_DEV(card), "HW: %.*s", len, str); card 569 drivers/block/rsxx/cregs.c dev_info(CARD_TO_DEV(card), "HW: %.*s", len, str); card 595 drivers/block/rsxx/cregs.c static void read_hw_log_done(struct rsxx_cardinfo *card, card 613 drivers/block/rsxx/cregs.c log_str = &card->log.buf[card->log.buf_len]; card 614 drivers/block/rsxx/cregs.c cnt = min(cmd->cnt8 - off, LOG_BUF_SIZE8 - card->log.buf_len); card 618 drivers/block/rsxx/cregs.c card->log.buf_len += len; card 625 drivers/block/rsxx/cregs.c (card->log.buf_len == LOG_BUF_SIZE8)) { card 626 drivers/block/rsxx/cregs.c if (card->log.buf_len != 1) /* Don't log blank lines. */ card 627 drivers/block/rsxx/cregs.c hw_log_msg(card, card->log.buf, card 628 drivers/block/rsxx/cregs.c card->log.buf_len); card 629 drivers/block/rsxx/cregs.c card->log.buf_len = 0; card 635 drivers/block/rsxx/cregs.c rsxx_read_hw_log(card); card 638 drivers/block/rsxx/cregs.c int rsxx_read_hw_log(struct rsxx_cardinfo *card) card 642 drivers/block/rsxx/cregs.c st = creg_queue_cmd(card, CREG_OP_READ, CREG_ADD_LOG, card 643 drivers/block/rsxx/cregs.c sizeof(card->log.tmp), card->log.tmp, card 646 drivers/block/rsxx/cregs.c dev_err(CARD_TO_DEV(card), card 653 drivers/block/rsxx/cregs.c static int issue_reg_cmd(struct rsxx_cardinfo *card, card 659 drivers/block/rsxx/cregs.c return __issue_creg_rw(card, op, cmd->addr, cmd->cnt, cmd->data, card 663 drivers/block/rsxx/cregs.c int rsxx_reg_access(struct rsxx_cardinfo *card, card 677 drivers/block/rsxx/cregs.c st = issue_reg_cmd(card, &cmd, read); card 694 drivers/block/rsxx/cregs.c void rsxx_eeh_save_issued_creg(struct rsxx_cardinfo *card) card 698 drivers/block/rsxx/cregs.c cmd = card->creg_ctrl.active_cmd; card 699 drivers/block/rsxx/cregs.c card->creg_ctrl.active_cmd = NULL; card 702 drivers/block/rsxx/cregs.c del_timer_sync(&card->creg_ctrl.cmd_timer); card 704 drivers/block/rsxx/cregs.c spin_lock_bh(&card->creg_ctrl.lock); card 705 drivers/block/rsxx/cregs.c list_add(&cmd->list, &card->creg_ctrl.queue); card 706 drivers/block/rsxx/cregs.c card->creg_ctrl.q_depth++; card 707 drivers/block/rsxx/cregs.c card->creg_ctrl.active = 0; card 708 drivers/block/rsxx/cregs.c spin_unlock_bh(&card->creg_ctrl.lock); card 712 drivers/block/rsxx/cregs.c void rsxx_kick_creg_queue(struct rsxx_cardinfo *card) card 714 drivers/block/rsxx/cregs.c spin_lock_bh(&card->creg_ctrl.lock); card 715 drivers/block/rsxx/cregs.c if (!list_empty(&card->creg_ctrl.queue)) card 716 drivers/block/rsxx/cregs.c creg_kick_queue(card); card 717 drivers/block/rsxx/cregs.c spin_unlock_bh(&card->creg_ctrl.lock); card 721 drivers/block/rsxx/cregs.c int rsxx_creg_setup(struct rsxx_cardinfo *card) card 723 drivers/block/rsxx/cregs.c card->creg_ctrl.active_cmd = NULL; card 725 drivers/block/rsxx/cregs.c card->creg_ctrl.creg_wq = card 727 drivers/block/rsxx/cregs.c if (!card->creg_ctrl.creg_wq) card 730 drivers/block/rsxx/cregs.c INIT_WORK(&card->creg_ctrl.done_work, creg_cmd_done); card 731 drivers/block/rsxx/cregs.c mutex_init(&card->creg_ctrl.reset_lock); card 732 drivers/block/rsxx/cregs.c INIT_LIST_HEAD(&card->creg_ctrl.queue); card 733 drivers/block/rsxx/cregs.c spin_lock_init(&card->creg_ctrl.lock); card 734 drivers/block/rsxx/cregs.c timer_setup(&card->creg_ctrl.cmd_timer, creg_cmd_timed_out, 0); card 739 drivers/block/rsxx/cregs.c void rsxx_creg_destroy(struct rsxx_cardinfo *card) card 746 drivers/block/rsxx/cregs.c spin_lock_bh(&card->creg_ctrl.lock); card 747 drivers/block/rsxx/cregs.c list_for_each_entry_safe(cmd, tmp, &card->creg_ctrl.queue, list) { card 750 drivers/block/rsxx/cregs.c cmd->cb(card, cmd, -ECANCELED); card 756 drivers/block/rsxx/cregs.c dev_info(CARD_TO_DEV(card), card 759 drivers/block/rsxx/cregs.c cmd = card->creg_ctrl.active_cmd; card 760 drivers/block/rsxx/cregs.c card->creg_ctrl.active_cmd = NULL; card 762 drivers/block/rsxx/cregs.c if (timer_pending(&card->creg_ctrl.cmd_timer)) card 763 drivers/block/rsxx/cregs.c del_timer_sync(&card->creg_ctrl.cmd_timer); card 766 drivers/block/rsxx/cregs.c cmd->cb(card, cmd, -ECANCELED); card 767 drivers/block/rsxx/cregs.c dev_info(CARD_TO_DEV(card), card 771 drivers/block/rsxx/cregs.c spin_unlock_bh(&card->creg_ctrl.lock); card 773 drivers/block/rsxx/cregs.c cancel_work_sync(&card->creg_ctrl.done_work); card 59 drivers/block/rsxx/dev.c struct rsxx_cardinfo *card = bdev->bd_disk->private_data; card 63 drivers/block/rsxx/dev.c return rsxx_reg_access(card, (void __user *)arg, 1); card 65 drivers/block/rsxx/dev.c return rsxx_reg_access(card, (void __user *)arg, 0); card 73 drivers/block/rsxx/dev.c struct rsxx_cardinfo *card = bdev->bd_disk->private_data; card 74 drivers/block/rsxx/dev.c u64 blocks = card->size8 >> 9; card 80 drivers/block/rsxx/dev.c if (card->size8) { card 99 drivers/block/rsxx/dev.c static void disk_stats_start(struct rsxx_cardinfo *card, struct bio *bio) card 101 drivers/block/rsxx/dev.c generic_start_io_acct(card->queue, bio_op(bio), bio_sectors(bio), card 102 drivers/block/rsxx/dev.c &card->gendisk->part0); card 105 drivers/block/rsxx/dev.c static void disk_stats_complete(struct rsxx_cardinfo *card, card 109 drivers/block/rsxx/dev.c generic_end_io_acct(card->queue, bio_op(bio), card 110 drivers/block/rsxx/dev.c &card->gendisk->part0, start_time); card 113 drivers/block/rsxx/dev.c static void bio_dma_done_cb(struct rsxx_cardinfo *card, card 123 drivers/block/rsxx/dev.c if (!card->eeh_state && card->gendisk) card 124 drivers/block/rsxx/dev.c disk_stats_complete(card, meta->bio, meta->start_time); card 136 drivers/block/rsxx/dev.c struct rsxx_cardinfo *card = q->queuedata; card 144 drivers/block/rsxx/dev.c if (!card) card 147 drivers/block/rsxx/dev.c if (bio_end_sector(bio) > get_capacity(card->gendisk)) card 150 drivers/block/rsxx/dev.c if (unlikely(card->halt)) card 153 drivers/block/rsxx/dev.c if (unlikely(card->dma_fault)) card 157 drivers/block/rsxx/dev.c dev_err(CARD_TO_DEV(card), "size zero BIO!\n"); card 172 drivers/block/rsxx/dev.c if (!unlikely(card->halt)) card 173 drivers/block/rsxx/dev.c disk_stats_start(card, bio); card 175 drivers/block/rsxx/dev.c dev_dbg(CARD_TO_DEV(card), "BIO[%c]: meta: %p addr8: x%llx size: %d\n", card 179 drivers/block/rsxx/dev.c st = rsxx_dma_queue_bio(card, bio, &bio_meta->pending_dmas, card 196 drivers/block/rsxx/dev.c static bool rsxx_discard_supported(struct rsxx_cardinfo *card) card 200 drivers/block/rsxx/dev.c pci_read_config_byte(card->dev, PCI_REVISION_ID, &pci_rev); card 205 drivers/block/rsxx/dev.c int rsxx_attach_dev(struct rsxx_cardinfo *card) card 207 drivers/block/rsxx/dev.c mutex_lock(&card->dev_lock); card 211 drivers/block/rsxx/dev.c if (card->config_valid) card 212 drivers/block/rsxx/dev.c set_capacity(card->gendisk, card->size8 >> 9); card 214 drivers/block/rsxx/dev.c set_capacity(card->gendisk, 0); card 215 drivers/block/rsxx/dev.c device_add_disk(CARD_TO_DEV(card), card->gendisk, NULL); card 216 drivers/block/rsxx/dev.c card->bdev_attached = 1; card 219 drivers/block/rsxx/dev.c mutex_unlock(&card->dev_lock); card 224 drivers/block/rsxx/dev.c void rsxx_detach_dev(struct rsxx_cardinfo *card) card 226 drivers/block/rsxx/dev.c mutex_lock(&card->dev_lock); card 228 drivers/block/rsxx/dev.c if (card->bdev_attached) { card 229 drivers/block/rsxx/dev.c del_gendisk(card->gendisk); card 230 drivers/block/rsxx/dev.c card->bdev_attached = 0; card 233 drivers/block/rsxx/dev.c mutex_unlock(&card->dev_lock); card 236 drivers/block/rsxx/dev.c int rsxx_setup_dev(struct rsxx_cardinfo *card) card 240 drivers/block/rsxx/dev.c mutex_init(&card->dev_lock); card 245 drivers/block/rsxx/dev.c card->major = register_blkdev(0, DRIVER_NAME); card 246 drivers/block/rsxx/dev.c if (card->major < 0) { card 247 drivers/block/rsxx/dev.c dev_err(CARD_TO_DEV(card), "Failed to get major number\n"); card 251 drivers/block/rsxx/dev.c card->queue = blk_alloc_queue(GFP_KERNEL); card 252 drivers/block/rsxx/dev.c if (!card->queue) { card 253 drivers/block/rsxx/dev.c dev_err(CARD_TO_DEV(card), "Failed queue alloc\n"); card 254 drivers/block/rsxx/dev.c unregister_blkdev(card->major, DRIVER_NAME); card 258 drivers/block/rsxx/dev.c card->gendisk = alloc_disk(blkdev_minors); card 259 drivers/block/rsxx/dev.c if (!card->gendisk) { card 260 drivers/block/rsxx/dev.c dev_err(CARD_TO_DEV(card), "Failed disk alloc\n"); card 261 drivers/block/rsxx/dev.c blk_cleanup_queue(card->queue); card 262 drivers/block/rsxx/dev.c unregister_blkdev(card->major, DRIVER_NAME); card 266 drivers/block/rsxx/dev.c if (card->config_valid) { card 267 drivers/block/rsxx/dev.c blk_size = card->config.data.block_size; card 268 drivers/block/rsxx/dev.c blk_queue_dma_alignment(card->queue, blk_size - 1); card 269 drivers/block/rsxx/dev.c blk_queue_logical_block_size(card->queue, blk_size); card 272 drivers/block/rsxx/dev.c blk_queue_make_request(card->queue, rsxx_make_request); card 273 drivers/block/rsxx/dev.c blk_queue_max_hw_sectors(card->queue, blkdev_max_hw_sectors); card 274 drivers/block/rsxx/dev.c blk_queue_physical_block_size(card->queue, RSXX_HW_BLK_SIZE); card 276 drivers/block/rsxx/dev.c blk_queue_flag_set(QUEUE_FLAG_NONROT, card->queue); card 277 drivers/block/rsxx/dev.c blk_queue_flag_clear(QUEUE_FLAG_ADD_RANDOM, card->queue); card 278 drivers/block/rsxx/dev.c if (rsxx_discard_supported(card)) { card 279 drivers/block/rsxx/dev.c blk_queue_flag_set(QUEUE_FLAG_DISCARD, card->queue); card 280 drivers/block/rsxx/dev.c blk_queue_max_discard_sectors(card->queue, card 282 drivers/block/rsxx/dev.c card->queue->limits.discard_granularity = RSXX_HW_BLK_SIZE; card 283 drivers/block/rsxx/dev.c card->queue->limits.discard_alignment = RSXX_HW_BLK_SIZE; card 286 drivers/block/rsxx/dev.c card->queue->queuedata = card; card 288 drivers/block/rsxx/dev.c snprintf(card->gendisk->disk_name, sizeof(card->gendisk->disk_name), card 289 drivers/block/rsxx/dev.c "rsxx%d", card->disk_id); card 290 drivers/block/rsxx/dev.c card->gendisk->major = card->major; card 291 drivers/block/rsxx/dev.c card->gendisk->first_minor = 0; card 292 drivers/block/rsxx/dev.c card->gendisk->fops = &rsxx_fops; card 293 drivers/block/rsxx/dev.c card->gendisk->private_data = card; card 294 drivers/block/rsxx/dev.c card->gendisk->queue = card->queue; card 299 drivers/block/rsxx/dev.c void rsxx_destroy_dev(struct rsxx_cardinfo *card) card 304 drivers/block/rsxx/dev.c put_disk(card->gendisk); card 305 drivers/block/rsxx/dev.c card->gendisk = NULL; card 307 drivers/block/rsxx/dev.c blk_cleanup_queue(card->queue); card 308 drivers/block/rsxx/dev.c card->queue->queuedata = NULL; card 309 drivers/block/rsxx/dev.c unregister_blkdev(card->major, DRIVER_NAME); card 88 drivers/block/rsxx/dma.c static unsigned int rsxx_addr8_to_laddr(u64 addr8, struct rsxx_cardinfo *card) card 92 drivers/block/rsxx/dma.c tgt_addr8 = ((addr8 >> card->_stripe.upper_shift) & card 93 drivers/block/rsxx/dma.c card->_stripe.upper_mask) | card 94 drivers/block/rsxx/dma.c ((addr8) & card->_stripe.lower_mask); card 99 drivers/block/rsxx/dma.c static unsigned int rsxx_get_dma_tgt(struct rsxx_cardinfo *card, u64 addr8) card 103 drivers/block/rsxx/dma.c tgt = (addr8 >> card->_stripe.target_shift) & card->_stripe.target_mask; card 108 drivers/block/rsxx/dma.c void rsxx_dma_queue_reset(struct rsxx_cardinfo *card) card 111 drivers/block/rsxx/dma.c iowrite32(DMA_QUEUE_RESET, card->regmap + RESET); card 190 drivers/block/rsxx/dma.c static void dma_intr_coal_auto_tune(struct rsxx_cardinfo *card) card 196 drivers/block/rsxx/dma.c if (card->config.data.intr_coal.mode != RSXX_INTR_COAL_AUTO_TUNE || card 197 drivers/block/rsxx/dma.c unlikely(card->eeh_state)) card 200 drivers/block/rsxx/dma.c for (i = 0; i < card->n_targets; i++) card 201 drivers/block/rsxx/dma.c q_depth += atomic_read(&card->ctrl[i].stats.hw_q_depth); card 203 drivers/block/rsxx/dma.c intr_coal = dma_intr_coal_val(card->config.data.intr_coal.mode, card 205 drivers/block/rsxx/dma.c card->config.data.intr_coal.latency); card 206 drivers/block/rsxx/dma.c iowrite32(intr_coal, card->regmap + INTR_COAL); card 213 drivers/block/rsxx/dma.c if (!dma_mapping_error(&ctrl->card->dev->dev, dma->dma_addr)) { card 214 drivers/block/rsxx/dma.c dma_unmap_page(&ctrl->card->dev->dev, dma->dma_addr, card 237 drivers/block/rsxx/dma.c dma->cb(ctrl->card, dma->cb_data, status ? 1 : 0); card 281 drivers/block/rsxx/dma.c dev_dbg(CARD_TO_DEV(ctrl->card), card 295 drivers/block/rsxx/dma.c if (ctrl->card->scrub_hard) { card 328 drivers/block/rsxx/dma.c dev_err(CARD_TO_DEV(ctrl->card), card 349 drivers/block/rsxx/dma.c unlikely(ctrl->card->eeh_state)) card 357 drivers/block/rsxx/dma.c dev_warn(CARD_TO_DEV(ctrl->card), card 363 drivers/block/rsxx/dma.c dev_warn(CARD_TO_DEV(ctrl->card), card 366 drivers/block/rsxx/dma.c ctrl->card->dma_fault = 1; card 376 drivers/block/rsxx/dma.c dev_info(CARD_TO_DEV(ctrl->card), card 392 drivers/block/rsxx/dma.c if (unlikely(ctrl->card->halt) || card 393 drivers/block/rsxx/dma.c unlikely(ctrl->card->eeh_state)) card 419 drivers/block/rsxx/dma.c if (unlikely(ctrl->card->dma_fault)) { card 441 drivers/block/rsxx/dma.c dma->dma_addr = dma_map_page(&ctrl->card->dev->dev, dma->page, card 443 drivers/block/rsxx/dma.c if (dma_mapping_error(&ctrl->card->dev->dev, dma->dma_addr)) { card 464 drivers/block/rsxx/dma.c dev_dbg(CARD_TO_DEV(ctrl->card), card 485 drivers/block/rsxx/dma.c if (unlikely(ctrl->card->eeh_state)) { card 505 drivers/block/rsxx/dma.c if (unlikely(ctrl->card->halt) || card 506 drivers/block/rsxx/dma.c unlikely(ctrl->card->dma_fault) || card 507 drivers/block/rsxx/dma.c unlikely(ctrl->card->eeh_state)) card 527 drivers/block/rsxx/dma.c spin_lock_irqsave(&ctrl->card->irq_lock, flags); card 528 drivers/block/rsxx/dma.c rsxx_disable_ier(ctrl->card, CR_INTR_DMA_ALL); card 529 drivers/block/rsxx/dma.c spin_unlock_irqrestore(&ctrl->card->irq_lock, flags); card 531 drivers/block/rsxx/dma.c dev_err(CARD_TO_DEV(ctrl->card), card 538 drivers/block/rsxx/dma.c dev_dbg(CARD_TO_DEV(ctrl->card), card 563 drivers/block/rsxx/dma.c dma_intr_coal_auto_tune(ctrl->card); card 568 drivers/block/rsxx/dma.c spin_lock_irqsave(&ctrl->card->irq_lock, flags); card 569 drivers/block/rsxx/dma.c rsxx_enable_ier(ctrl->card, CR_INTR_DMA(ctrl->id)); card 570 drivers/block/rsxx/dma.c spin_unlock_irqrestore(&ctrl->card->irq_lock, flags); card 600 drivers/block/rsxx/dma.c static blk_status_t rsxx_queue_discard(struct rsxx_cardinfo *card, card 622 drivers/block/rsxx/dma.c dev_dbg(CARD_TO_DEV(card), "Queuing[D] laddr %x\n", dma->laddr); card 629 drivers/block/rsxx/dma.c static blk_status_t rsxx_queue_dma(struct rsxx_cardinfo *card, card 655 drivers/block/rsxx/dma.c dev_dbg(CARD_TO_DEV(card), card 666 drivers/block/rsxx/dma.c blk_status_t rsxx_dma_queue_bio(struct rsxx_cardinfo *card, card 689 drivers/block/rsxx/dma.c for (i = 0; i < card->n_targets; i++) { card 698 drivers/block/rsxx/dma.c tgt = rsxx_get_dma_tgt(card, addr8); card 699 drivers/block/rsxx/dma.c laddr = rsxx_addr8_to_laddr(addr8, card); card 701 drivers/block/rsxx/dma.c st = rsxx_queue_discard(card, &dma_list[tgt], laddr, card 717 drivers/block/rsxx/dma.c tgt = rsxx_get_dma_tgt(card, addr8); card 718 drivers/block/rsxx/dma.c laddr = rsxx_addr8_to_laddr(addr8, card); card 723 drivers/block/rsxx/dma.c st = rsxx_queue_dma(card, &dma_list[tgt], card 740 drivers/block/rsxx/dma.c for (i = 0; i < card->n_targets; i++) { card 742 drivers/block/rsxx/dma.c spin_lock_bh(&card->ctrl[i].queue_lock); card 743 drivers/block/rsxx/dma.c card->ctrl[i].stats.sw_q_depth += dma_cnt[i]; card 744 drivers/block/rsxx/dma.c list_splice_tail(&dma_list[i], &card->ctrl[i].queue); card 745 drivers/block/rsxx/dma.c spin_unlock_bh(&card->ctrl[i].queue_lock); card 747 drivers/block/rsxx/dma.c queue_work(card->ctrl[i].issue_wq, card 748 drivers/block/rsxx/dma.c &card->ctrl[i].issue_dma_work); card 755 drivers/block/rsxx/dma.c for (i = 0; i < card->n_targets; i++) card 756 drivers/block/rsxx/dma.c rsxx_cleanup_dma_queue(&card->ctrl[i], &dma_list[i], card 847 drivers/block/rsxx/dma.c static int rsxx_dma_stripe_setup(struct rsxx_cardinfo *card, card 851 drivers/block/rsxx/dma.c dev_err(CARD_TO_DEV(card), card 856 drivers/block/rsxx/dma.c card->_stripe.lower_mask = stripe_size8 - 1; card 858 drivers/block/rsxx/dma.c card->_stripe.upper_mask = ~(card->_stripe.lower_mask); card 859 drivers/block/rsxx/dma.c card->_stripe.upper_shift = ffs(card->n_targets) - 1; card 861 drivers/block/rsxx/dma.c card->_stripe.target_mask = card->n_targets - 1; card 862 drivers/block/rsxx/dma.c card->_stripe.target_shift = ffs(stripe_size8) - 1; card 864 drivers/block/rsxx/dma.c dev_dbg(CARD_TO_DEV(card), "_stripe.lower_mask = x%016llx\n", card 865 drivers/block/rsxx/dma.c card->_stripe.lower_mask); card 866 drivers/block/rsxx/dma.c dev_dbg(CARD_TO_DEV(card), "_stripe.upper_shift = x%016llx\n", card 867 drivers/block/rsxx/dma.c card->_stripe.upper_shift); card 868 drivers/block/rsxx/dma.c dev_dbg(CARD_TO_DEV(card), "_stripe.upper_mask = x%016llx\n", card 869 drivers/block/rsxx/dma.c card->_stripe.upper_mask); card 870 drivers/block/rsxx/dma.c dev_dbg(CARD_TO_DEV(card), "_stripe.target_mask = x%016llx\n", card 871 drivers/block/rsxx/dma.c card->_stripe.target_mask); card 872 drivers/block/rsxx/dma.c dev_dbg(CARD_TO_DEV(card), "_stripe.target_shift = x%016llx\n", card 873 drivers/block/rsxx/dma.c card->_stripe.target_shift); card 878 drivers/block/rsxx/dma.c int rsxx_dma_configure(struct rsxx_cardinfo *card) card 882 drivers/block/rsxx/dma.c intr_coal = dma_intr_coal_val(card->config.data.intr_coal.mode, card 883 drivers/block/rsxx/dma.c card->config.data.intr_coal.count, card 884 drivers/block/rsxx/dma.c card->config.data.intr_coal.latency); card 885 drivers/block/rsxx/dma.c iowrite32(intr_coal, card->regmap + INTR_COAL); card 887 drivers/block/rsxx/dma.c return rsxx_dma_stripe_setup(card, card->config.data.stripe_size); card 890 drivers/block/rsxx/dma.c int rsxx_dma_setup(struct rsxx_cardinfo *card) card 896 drivers/block/rsxx/dma.c dev_info(CARD_TO_DEV(card), card 898 drivers/block/rsxx/dma.c card->n_targets); card 901 drivers/block/rsxx/dma.c for (i = 0; i < card->n_targets; i++) card 902 drivers/block/rsxx/dma.c card->ctrl[i].regmap = card->regmap + (i * 4096); card 904 drivers/block/rsxx/dma.c card->dma_fault = 0; card 907 drivers/block/rsxx/dma.c rsxx_dma_queue_reset(card); card 910 drivers/block/rsxx/dma.c for (i = 0; i < card->n_targets; i++) { card 911 drivers/block/rsxx/dma.c st = rsxx_dma_ctrl_init(card->dev, &card->ctrl[i]); card 915 drivers/block/rsxx/dma.c card->ctrl[i].card = card; card 916 drivers/block/rsxx/dma.c card->ctrl[i].id = i; card 919 drivers/block/rsxx/dma.c card->scrub_hard = 1; card 921 drivers/block/rsxx/dma.c if (card->config_valid) card 922 drivers/block/rsxx/dma.c rsxx_dma_configure(card); card 925 drivers/block/rsxx/dma.c for (i = 0; i < card->n_targets; i++) { card 926 drivers/block/rsxx/dma.c spin_lock_irqsave(&card->irq_lock, flags); card 927 drivers/block/rsxx/dma.c rsxx_enable_ier_and_isr(card, CR_INTR_DMA(i)); card 928 drivers/block/rsxx/dma.c spin_unlock_irqrestore(&card->irq_lock, flags); card 934 drivers/block/rsxx/dma.c for (i = 0; i < card->n_targets; i++) { card 935 drivers/block/rsxx/dma.c struct rsxx_dma_ctrl *ctrl = &card->ctrl[i]; card 951 drivers/block/rsxx/dma.c dma_free_coherent(&card->dev->dev, STATUS_BUFFER_SIZE8, card 955 drivers/block/rsxx/dma.c dma_free_coherent(&card->dev->dev, COMMAND_BUFFER_SIZE8, card 982 drivers/block/rsxx/dma.c void rsxx_dma_destroy(struct rsxx_cardinfo *card) card 987 drivers/block/rsxx/dma.c for (i = 0; i < card->n_targets; i++) { card 988 drivers/block/rsxx/dma.c ctrl = &card->ctrl[i]; card 1012 drivers/block/rsxx/dma.c dma_free_coherent(&card->dev->dev, STATUS_BUFFER_SIZE8, card 1014 drivers/block/rsxx/dma.c dma_free_coherent(&card->dev->dev, COMMAND_BUFFER_SIZE8, card 1019 drivers/block/rsxx/dma.c int rsxx_eeh_save_issued_dmas(struct rsxx_cardinfo *card) card 1027 drivers/block/rsxx/dma.c issued_dmas = kcalloc(card->n_targets, sizeof(*issued_dmas), card 1032 drivers/block/rsxx/dma.c for (i = 0; i < card->n_targets; i++) { card 1036 drivers/block/rsxx/dma.c dma = get_tracker_dma(card->ctrl[i].trackers, j); card 1041 drivers/block/rsxx/dma.c card->ctrl[i].stats.writes_issued--; card 1043 drivers/block/rsxx/dma.c card->ctrl[i].stats.discards_issued--; card 1045 drivers/block/rsxx/dma.c card->ctrl[i].stats.reads_issued--; card 1048 drivers/block/rsxx/dma.c dma_unmap_page(&card->dev->dev, dma->dma_addr, card 1056 drivers/block/rsxx/dma.c push_tracker(card->ctrl[i].trackers, j); card 1060 drivers/block/rsxx/dma.c spin_lock_bh(&card->ctrl[i].queue_lock); card 1061 drivers/block/rsxx/dma.c list_splice(&issued_dmas[i], &card->ctrl[i].queue); card 1063 drivers/block/rsxx/dma.c atomic_sub(cnt, &card->ctrl[i].stats.hw_q_depth); card 1064 drivers/block/rsxx/dma.c card->ctrl[i].stats.sw_q_depth += cnt; card 1065 drivers/block/rsxx/dma.c card->ctrl[i].e_cnt = 0; card 1066 drivers/block/rsxx/dma.c spin_unlock_bh(&card->ctrl[i].queue_lock); card 89 drivers/block/rsxx/rsxx_priv.h struct rsxx_cardinfo *card; card 348 drivers/block/rsxx/rsxx_priv.h int rsxx_load_config(struct rsxx_cardinfo *card); card 351 drivers/block/rsxx/rsxx_priv.h void rsxx_enable_ier(struct rsxx_cardinfo *card, unsigned int intr); card 352 drivers/block/rsxx/rsxx_priv.h void rsxx_disable_ier(struct rsxx_cardinfo *card, unsigned int intr); card 353 drivers/block/rsxx/rsxx_priv.h void rsxx_enable_ier_and_isr(struct rsxx_cardinfo *card, card 355 drivers/block/rsxx/rsxx_priv.h void rsxx_disable_ier_and_isr(struct rsxx_cardinfo *card, card 359 drivers/block/rsxx/rsxx_priv.h int rsxx_attach_dev(struct rsxx_cardinfo *card); card 360 drivers/block/rsxx/rsxx_priv.h void rsxx_detach_dev(struct rsxx_cardinfo *card); card 361 drivers/block/rsxx/rsxx_priv.h int rsxx_setup_dev(struct rsxx_cardinfo *card); card 362 drivers/block/rsxx/rsxx_priv.h void rsxx_destroy_dev(struct rsxx_cardinfo *card); card 367 drivers/block/rsxx/rsxx_priv.h typedef void (*rsxx_dma_cb)(struct rsxx_cardinfo *card, card 370 drivers/block/rsxx/rsxx_priv.h int rsxx_dma_setup(struct rsxx_cardinfo *card); card 371 drivers/block/rsxx/rsxx_priv.h void rsxx_dma_destroy(struct rsxx_cardinfo *card); card 378 drivers/block/rsxx/rsxx_priv.h void rsxx_dma_queue_reset(struct rsxx_cardinfo *card); card 379 drivers/block/rsxx/rsxx_priv.h int rsxx_dma_configure(struct rsxx_cardinfo *card); card 380 drivers/block/rsxx/rsxx_priv.h blk_status_t rsxx_dma_queue_bio(struct rsxx_cardinfo *card, card 386 drivers/block/rsxx/rsxx_priv.h int rsxx_eeh_save_issued_dmas(struct rsxx_cardinfo *card); card 387 drivers/block/rsxx/rsxx_priv.h int rsxx_eeh_remap_dmas(struct rsxx_cardinfo *card); card 390 drivers/block/rsxx/rsxx_priv.h int rsxx_creg_write(struct rsxx_cardinfo *card, u32 addr, card 394 drivers/block/rsxx/rsxx_priv.h int rsxx_creg_read(struct rsxx_cardinfo *card, card 399 drivers/block/rsxx/rsxx_priv.h int rsxx_read_hw_log(struct rsxx_cardinfo *card); card 400 drivers/block/rsxx/rsxx_priv.h int rsxx_get_card_state(struct rsxx_cardinfo *card, card 402 drivers/block/rsxx/rsxx_priv.h int rsxx_get_card_size8(struct rsxx_cardinfo *card, u64 *size8); card 403 drivers/block/rsxx/rsxx_priv.h int rsxx_get_num_targets(struct rsxx_cardinfo *card, card 405 drivers/block/rsxx/rsxx_priv.h int rsxx_get_card_capabilities(struct rsxx_cardinfo *card, card 407 drivers/block/rsxx/rsxx_priv.h int rsxx_issue_card_cmd(struct rsxx_cardinfo *card, u32 cmd); card 408 drivers/block/rsxx/rsxx_priv.h int rsxx_creg_setup(struct rsxx_cardinfo *card); card 409 drivers/block/rsxx/rsxx_priv.h void rsxx_creg_destroy(struct rsxx_cardinfo *card); card 412 drivers/block/rsxx/rsxx_priv.h int rsxx_reg_access(struct rsxx_cardinfo *card, card 415 drivers/block/rsxx/rsxx_priv.h void rsxx_eeh_save_issued_creg(struct rsxx_cardinfo *card); card 416 drivers/block/rsxx/rsxx_priv.h void rsxx_kick_creg_queue(struct rsxx_cardinfo *card); card 145 drivers/block/umem.c static void check_batteries(struct cardinfo *card); card 147 drivers/block/umem.c static int get_userbit(struct cardinfo *card, int bit) card 151 drivers/block/umem.c led = readb(card->csr_remap + MEMCTRLCMD_LEDCTRL); card 155 drivers/block/umem.c static int set_userbit(struct cardinfo *card, int bit, unsigned char state) card 159 drivers/block/umem.c led = readb(card->csr_remap + MEMCTRLCMD_LEDCTRL); card 164 drivers/block/umem.c writeb(led, card->csr_remap + MEMCTRLCMD_LEDCTRL); card 172 drivers/block/umem.c static void set_led(struct cardinfo *card, int shift, unsigned char state) card 176 drivers/block/umem.c led = readb(card->csr_remap + MEMCTRLCMD_LEDCTRL); card 183 drivers/block/umem.c writeb(led, card->csr_remap + MEMCTRLCMD_LEDCTRL); card 188 drivers/block/umem.c static void dump_regs(struct cardinfo *card) card 193 drivers/block/umem.c p = card->csr_remap; card 205 drivers/block/umem.c static void dump_dmastat(struct cardinfo *card, unsigned int dmastat) card 207 drivers/block/umem.c dev_printk(KERN_DEBUG, &card->dev->dev, "DMAstat - "); card 249 drivers/block/umem.c static void mm_start_io(struct cardinfo *card) card 260 drivers/block/umem.c page = &card->mm_pages[card->Active]; card 262 drivers/block/umem.c card->Active, page->headcnt, page->cnt - 1); card 271 drivers/block/umem.c set_led(card, LED_REMOVE, LED_ON); card 274 drivers/block/umem.c writel(0, card->csr_remap + DMA_PCI_ADDR); card 275 drivers/block/umem.c writel(0, card->csr_remap + DMA_PCI_ADDR + 4); card 277 drivers/block/umem.c writel(0, card->csr_remap + DMA_LOCAL_ADDR); card 278 drivers/block/umem.c writel(0, card->csr_remap + DMA_LOCAL_ADDR + 4); card 280 drivers/block/umem.c writel(0, card->csr_remap + DMA_TRANSFER_SIZE); card 281 drivers/block/umem.c writel(0, card->csr_remap + DMA_TRANSFER_SIZE + 4); card 283 drivers/block/umem.c writel(0, card->csr_remap + DMA_SEMAPHORE_ADDR); card 284 drivers/block/umem.c writel(0, card->csr_remap + DMA_SEMAPHORE_ADDR + 4); card 288 drivers/block/umem.c card->csr_remap + DMA_DESCRIPTOR_ADDR); card 292 drivers/block/umem.c card->csr_remap + DMA_DESCRIPTOR_ADDR + 4); card 296 drivers/block/umem.c card->csr_remap + DMA_STATUS_CTRL); card 299 drivers/block/umem.c static int add_bio(struct cardinfo *card); card 301 drivers/block/umem.c static void activate(struct cardinfo *card) card 310 drivers/block/umem.c while (add_bio(card)) card 313 drivers/block/umem.c if (card->Active == -1 && card 314 drivers/block/umem.c card->mm_pages[card->Ready].cnt > 0) { card 315 drivers/block/umem.c card->Active = card->Ready; card 316 drivers/block/umem.c card->Ready = 1-card->Ready; card 317 drivers/block/umem.c mm_start_io(card); card 320 drivers/block/umem.c } while (card->Active == -1 && add_bio(card)); card 336 drivers/block/umem.c static int add_bio(struct cardinfo *card) card 345 drivers/block/umem.c bio = card->currentbio; card 346 drivers/block/umem.c if (!bio && card->bio) { card 347 drivers/block/umem.c card->currentbio = card->bio; card 348 drivers/block/umem.c card->current_iter = card->bio->bi_iter; card 349 drivers/block/umem.c card->bio = card->bio->bi_next; card 350 drivers/block/umem.c if (card->bio == NULL) card 351 drivers/block/umem.c card->biotail = &card->bio; card 352 drivers/block/umem.c card->currentbio->bi_next = NULL; card 358 drivers/block/umem.c if (card->mm_pages[card->Ready].cnt >= DESC_PER_PAGE) card 361 drivers/block/umem.c vec = bio_iter_iovec(bio, card->current_iter); card 363 drivers/block/umem.c dma_handle = dma_map_page(&card->dev->dev, card 370 drivers/block/umem.c p = &card->mm_pages[card->Ready]; card 374 drivers/block/umem.c p->iter = card->current_iter; card 384 drivers/block/umem.c desc->local_addr = cpu_to_le64(card->current_iter.bi_sector << 9); card 401 drivers/block/umem.c bio_advance_iter(bio, &card->current_iter, vec.bv_len); card 402 drivers/block/umem.c if (!card->current_iter.bi_size) card 403 drivers/block/umem.c card->currentbio = NULL; card 418 drivers/block/umem.c struct cardinfo *card = (struct cardinfo *)data; card 419 drivers/block/umem.c unsigned int dma_status = card->dma_status; card 421 drivers/block/umem.c spin_lock(&card->lock); card 422 drivers/block/umem.c if (card->Active < 0) card 424 drivers/block/umem.c page = &card->mm_pages[card->Active]; card 448 drivers/block/umem.c dma_unmap_page(&card->dev->dev, desc->data_dma_handle, card 455 drivers/block/umem.c dev_printk(KERN_WARNING, &card->dev->dev, card 459 drivers/block/umem.c dump_dmastat(card, control); card 462 drivers/block/umem.c card->init_size) { card 463 drivers/block/umem.c card->init_size += le32_to_cpu(desc->transfer_size) >> 9; card 464 drivers/block/umem.c if (card->init_size >> 1 >= card->mm_size) { card 465 drivers/block/umem.c dev_printk(KERN_INFO, &card->dev->dev, card 467 drivers/block/umem.c set_userbit(card, MEMORY_INITIALIZED, 1); card 480 drivers/block/umem.c set_led(card, LED_REMOVE, LED_OFF); card 482 drivers/block/umem.c if (card->check_batteries) { card 483 drivers/block/umem.c card->check_batteries = 0; card 484 drivers/block/umem.c check_batteries(card); card 488 drivers/block/umem.c card->Active = -1; card 489 drivers/block/umem.c activate(card); card 493 drivers/block/umem.c mm_start_io(card); card 496 drivers/block/umem.c spin_unlock(&card->lock); card 509 drivers/block/umem.c struct cardinfo *card = cb->data; card 511 drivers/block/umem.c spin_lock_irq(&card->lock); card 512 drivers/block/umem.c activate(card); card 513 drivers/block/umem.c spin_unlock_irq(&card->lock); card 517 drivers/block/umem.c static int mm_check_plugged(struct cardinfo *card) card 519 drivers/block/umem.c return !!blk_check_plugged(mm_unplug, card, sizeof(struct blk_plug_cb)); card 524 drivers/block/umem.c struct cardinfo *card = q->queuedata; card 531 drivers/block/umem.c spin_lock_irq(&card->lock); card 532 drivers/block/umem.c *card->biotail = bio; card 534 drivers/block/umem.c card->biotail = &bio->bi_next; card 535 drivers/block/umem.c if (op_is_sync(bio->bi_opf) || !mm_check_plugged(card)) card 536 drivers/block/umem.c activate(card); card 537 drivers/block/umem.c spin_unlock_irq(&card->lock); card 544 drivers/block/umem.c struct cardinfo *card = (struct cardinfo *) __card; card 550 drivers/block/umem.c dma_status = le32_to_cpu(readl(card->csr_remap + DMA_STATUS_CTRL)); card 558 drivers/block/umem.c if (card->flags & UM_FLAG_NO_BYTE_STATUS) card 560 drivers/block/umem.c card->csr_remap + DMA_STATUS_CTRL); card 563 drivers/block/umem.c card->csr_remap + DMA_STATUS_CTRL + 2); card 571 drivers/block/umem.c stat = readb(card->csr_remap + MEMCTRLCMD_ERRSTATUS); card 573 drivers/block/umem.c data_log1 = le32_to_cpu(readl(card->csr_remap + card 575 drivers/block/umem.c data_log2 = le32_to_cpu(readl(card->csr_remap + card 577 drivers/block/umem.c addr_log1 = le32_to_cpu(readl(card->csr_remap + card 579 drivers/block/umem.c addr_log2 = readb(card->csr_remap + ERROR_ADDR_LOG + 4); card 581 drivers/block/umem.c count = readb(card->csr_remap + ERROR_COUNT); card 582 drivers/block/umem.c syndrome = readb(card->csr_remap + ERROR_SYNDROME); card 583 drivers/block/umem.c check = readb(card->csr_remap + ERROR_CHECK); card 585 drivers/block/umem.c dump_dmastat(card, dma_status); card 588 drivers/block/umem.c dev_printk(KERN_ERR, &card->dev->dev, card 592 drivers/block/umem.c dev_printk(KERN_ERR, &card->dev->dev, card 595 drivers/block/umem.c dev_printk(KERN_ERR, &card->dev->dev, card 598 drivers/block/umem.c dev_printk(KERN_ERR, &card->dev->dev, card 602 drivers/block/umem.c writeb(0, card->csr_remap + ERROR_COUNT); card 606 drivers/block/umem.c dev_printk(KERN_ERR, &card->dev->dev, card 608 drivers/block/umem.c pci_read_config_word(card->dev, PCI_STATUS, &cfg_status); card 609 drivers/block/umem.c pci_write_config_word(card->dev, PCI_STATUS, cfg_status); card 613 drivers/block/umem.c dev_printk(KERN_ERR, &card->dev->dev, card 615 drivers/block/umem.c pci_read_config_word(card->dev, PCI_STATUS, &cfg_status); card 616 drivers/block/umem.c pci_write_config_word(card->dev, PCI_STATUS, cfg_status); card 620 drivers/block/umem.c dev_printk(KERN_ERR, &card->dev->dev, "SYSTEM ERROR\n"); card 621 drivers/block/umem.c pci_read_config_word(card->dev, PCI_STATUS, &cfg_status); card 622 drivers/block/umem.c pci_write_config_word(card->dev, PCI_STATUS, cfg_status); card 626 drivers/block/umem.c dev_printk(KERN_ERR, &card->dev->dev, "TARGET ABORT\n"); card 627 drivers/block/umem.c pci_read_config_word(card->dev, PCI_STATUS, &cfg_status); card 628 drivers/block/umem.c pci_write_config_word(card->dev, PCI_STATUS, cfg_status); card 632 drivers/block/umem.c dev_printk(KERN_ERR, &card->dev->dev, "MASTER ABORT\n"); card 633 drivers/block/umem.c pci_read_config_word(card->dev, PCI_STATUS, &cfg_status); card 634 drivers/block/umem.c pci_write_config_word(card->dev, PCI_STATUS, cfg_status); card 638 drivers/block/umem.c card->dma_status = dma_status; card 639 drivers/block/umem.c tasklet_schedule(&card->tasklet); card 652 drivers/block/umem.c static void set_fault_to_battery_status(struct cardinfo *card) card 654 drivers/block/umem.c if (card->battery[0].good && card->battery[1].good) card 655 drivers/block/umem.c set_led(card, LED_FAULT, LED_OFF); card 656 drivers/block/umem.c else if (card->battery[0].warned || card->battery[1].warned) card 657 drivers/block/umem.c set_led(card, LED_FAULT, LED_ON); card 658 drivers/block/umem.c else if (!card->battery[0].good && !card->battery[1].good) card 659 drivers/block/umem.c set_led(card, LED_FAULT, LED_FLASH_7_0); card 661 drivers/block/umem.c set_led(card, LED_FAULT, LED_FLASH_3_5); card 666 drivers/block/umem.c static int check_battery(struct cardinfo *card, int battery, int status) card 668 drivers/block/umem.c if (status != card->battery[battery].good) { card 669 drivers/block/umem.c card->battery[battery].good = !card->battery[battery].good; card 670 drivers/block/umem.c card->battery[battery].last_change = jiffies; card 672 drivers/block/umem.c if (card->battery[battery].good) { card 673 drivers/block/umem.c dev_printk(KERN_ERR, &card->dev->dev, card 675 drivers/block/umem.c card->battery[battery].warned = 0; card 677 drivers/block/umem.c dev_printk(KERN_ERR, &card->dev->dev, card 681 drivers/block/umem.c } else if (!card->battery[battery].good && card 682 drivers/block/umem.c !card->battery[battery].warned && card 683 drivers/block/umem.c time_after_eq(jiffies, card->battery[battery].last_change + card 685 drivers/block/umem.c dev_printk(KERN_ERR, &card->dev->dev, card 687 drivers/block/umem.c card->battery[battery].warned = 1; card 695 drivers/block/umem.c static void check_batteries(struct cardinfo *card) card 704 drivers/block/umem.c status = readb(card->csr_remap + MEMCTRLSTATUS_BATTERY); card 706 drivers/block/umem.c dev_printk(KERN_DEBUG, &card->dev->dev, card 711 drivers/block/umem.c ret1 = check_battery(card, 0, !(status & BATTERY_1_FAILURE)); card 712 drivers/block/umem.c ret2 = check_battery(card, 1, !(status & BATTERY_2_FAILURE)); card 715 drivers/block/umem.c set_fault_to_battery_status(card); card 724 drivers/block/umem.c struct cardinfo *card = &cards[i]; card 725 drivers/block/umem.c spin_lock_bh(&card->lock); card 726 drivers/block/umem.c if (card->Active >= 0) card 727 drivers/block/umem.c card->check_batteries = 1; card 729 drivers/block/umem.c check_batteries(card); card 730 drivers/block/umem.c spin_unlock_bh(&card->lock); card 758 drivers/block/umem.c struct cardinfo *card = disk->private_data; card 759 drivers/block/umem.c set_capacity(disk, card->mm_size << 1); card 765 drivers/block/umem.c struct cardinfo *card = bdev->bd_disk->private_data; card 766 drivers/block/umem.c int size = card->mm_size * (1024 / MM_HARDSECT); card 788 drivers/block/umem.c struct cardinfo *card = &cards[num_cards]; card 807 drivers/block/umem.c card->dev = dev; card 825 drivers/block/umem.c dev_printk(KERN_ERR, &card->dev->dev, card 830 drivers/block/umem.c card->csr_remap = ioremap_nocache(csr_base, csr_len); card 831 drivers/block/umem.c if (!card->csr_remap) { card 832 drivers/block/umem.c dev_printk(KERN_ERR, &card->dev->dev, card 839 drivers/block/umem.c dev_printk(KERN_INFO, &card->dev->dev, card 841 drivers/block/umem.c csr_base, card->csr_remap, csr_len); card 843 drivers/block/umem.c switch (card->dev->device) { card 845 drivers/block/umem.c card->flags |= UM_FLAG_NO_BYTE_STATUS | UM_FLAG_NO_BATTREG; card 850 drivers/block/umem.c card->flags |= UM_FLAG_NO_BYTE_STATUS; card 855 drivers/block/umem.c card->flags |= UM_FLAG_NO_BYTE_STATUS | card 865 drivers/block/umem.c if (readb(card->csr_remap + MEMCTRLSTATUS_MAGIC) != magic_number) { card 866 drivers/block/umem.c dev_printk(KERN_ERR, &card->dev->dev, "Magic number invalid\n"); card 871 drivers/block/umem.c card->mm_pages[0].desc = dma_alloc_coherent(&card->dev->dev, card 872 drivers/block/umem.c PAGE_SIZE * 2, &card->mm_pages[0].page_dma, GFP_KERNEL); card 873 drivers/block/umem.c card->mm_pages[1].desc = dma_alloc_coherent(&card->dev->dev, card 874 drivers/block/umem.c PAGE_SIZE * 2, &card->mm_pages[1].page_dma, GFP_KERNEL); card 875 drivers/block/umem.c if (card->mm_pages[0].desc == NULL || card 876 drivers/block/umem.c card->mm_pages[1].desc == NULL) { card 877 drivers/block/umem.c dev_printk(KERN_ERR, &card->dev->dev, "alloc failed\n"); card 880 drivers/block/umem.c reset_page(&card->mm_pages[0]); card 881 drivers/block/umem.c reset_page(&card->mm_pages[1]); card 882 drivers/block/umem.c card->Ready = 0; /* page 0 is ready */ card 883 drivers/block/umem.c card->Active = -1; /* no page is active */ card 884 drivers/block/umem.c card->bio = NULL; card 885 drivers/block/umem.c card->biotail = &card->bio; card 886 drivers/block/umem.c spin_lock_init(&card->lock); card 888 drivers/block/umem.c card->queue = blk_alloc_queue_node(GFP_KERNEL, NUMA_NO_NODE); card 889 drivers/block/umem.c if (!card->queue) card 892 drivers/block/umem.c blk_queue_make_request(card->queue, mm_make_request); card 893 drivers/block/umem.c card->queue->queuedata = card; card 895 drivers/block/umem.c tasklet_init(&card->tasklet, process_page, (unsigned long)card); card 897 drivers/block/umem.c card->check_batteries = 0; card 899 drivers/block/umem.c mem_present = readb(card->csr_remap + MEMCTRLSTATUS_MEMORY); card 902 drivers/block/umem.c card->mm_size = 1024 * 128; card 905 drivers/block/umem.c card->mm_size = 1024 * 256; card 908 drivers/block/umem.c card->mm_size = 1024 * 512; card 911 drivers/block/umem.c card->mm_size = 1024 * 1024; card 914 drivers/block/umem.c card->mm_size = 1024 * 2048; card 917 drivers/block/umem.c card->mm_size = 0; card 922 drivers/block/umem.c set_led(card, LED_REMOVE, LED_OFF); card 923 drivers/block/umem.c set_led(card, LED_FAULT, LED_OFF); card 925 drivers/block/umem.c batt_status = readb(card->csr_remap + MEMCTRLSTATUS_BATTERY); card 927 drivers/block/umem.c card->battery[0].good = !(batt_status & BATTERY_1_FAILURE); card 928 drivers/block/umem.c card->battery[1].good = !(batt_status & BATTERY_2_FAILURE); card 929 drivers/block/umem.c card->battery[0].last_change = card->battery[1].last_change = jiffies; card 931 drivers/block/umem.c if (card->flags & UM_FLAG_NO_BATT) card 932 drivers/block/umem.c dev_printk(KERN_INFO, &card->dev->dev, card 933 drivers/block/umem.c "Size %d KB\n", card->mm_size); card 935 drivers/block/umem.c dev_printk(KERN_INFO, &card->dev->dev, card 937 drivers/block/umem.c card->mm_size, card 939 drivers/block/umem.c card->battery[0].good ? "OK" : "FAILURE", card 941 drivers/block/umem.c card->battery[1].good ? "OK" : "FAILURE"); card 943 drivers/block/umem.c set_fault_to_battery_status(card); card 956 drivers/block/umem.c card)) { card 957 drivers/block/umem.c dev_printk(KERN_ERR, &card->dev->dev, card 963 drivers/block/umem.c dev_printk(KERN_INFO, &card->dev->dev, card 966 drivers/block/umem.c pci_set_drvdata(dev, card); card 981 drivers/block/umem.c if (!get_userbit(card, MEMORY_INITIALIZED)) { card 982 drivers/block/umem.c dev_printk(KERN_INFO, &card->dev->dev, card 984 drivers/block/umem.c card->init_size = 0; card 986 drivers/block/umem.c dev_printk(KERN_INFO, &card->dev->dev, card 988 drivers/block/umem.c card->init_size = card->mm_size; card 992 drivers/block/umem.c writeb(EDC_STORE_CORRECT, card->csr_remap + MEMCTRLCMD_ERRCTRL); card 998 drivers/block/umem.c if (card->mm_pages[0].desc) card 999 drivers/block/umem.c dma_free_coherent(&card->dev->dev, PAGE_SIZE * 2, card 1000 drivers/block/umem.c card->mm_pages[0].desc, card 1001 drivers/block/umem.c card->mm_pages[0].page_dma); card 1002 drivers/block/umem.c if (card->mm_pages[1].desc) card 1003 drivers/block/umem.c dma_free_coherent(&card->dev->dev, PAGE_SIZE * 2, card 1004 drivers/block/umem.c card->mm_pages[1].desc, card 1005 drivers/block/umem.c card->mm_pages[1].page_dma); card 1007 drivers/block/umem.c iounmap(card->csr_remap); card 1017 drivers/block/umem.c struct cardinfo *card = pci_get_drvdata(dev); card 1019 drivers/block/umem.c tasklet_kill(&card->tasklet); card 1020 drivers/block/umem.c free_irq(dev->irq, card); card 1021 drivers/block/umem.c iounmap(card->csr_remap); card 1023 drivers/block/umem.c if (card->mm_pages[0].desc) card 1024 drivers/block/umem.c dma_free_coherent(&card->dev->dev, PAGE_SIZE * 2, card 1025 drivers/block/umem.c card->mm_pages[0].desc, card 1026 drivers/block/umem.c card->mm_pages[0].page_dma); card 1027 drivers/block/umem.c if (card->mm_pages[1].desc) card 1028 drivers/block/umem.c dma_free_coherent(&card->dev->dev, PAGE_SIZE * 2, card 1029 drivers/block/umem.c card->mm_pages[1].desc, card 1030 drivers/block/umem.c card->mm_pages[1].page_dma); card 1031 drivers/block/umem.c blk_cleanup_queue(card->queue); card 68 drivers/bluetooth/btmrvl_drv.h void *card; card 169 drivers/bluetooth/btmrvl_drv.h struct btmrvl_private *btmrvl_add_card(void *card); card 247 drivers/bluetooth/btmrvl_main.c struct btmrvl_sdio_card *card = priv->btmrvl_dev.card; card 250 drivers/bluetooth/btmrvl_main.c if (!card->support_pscan_win_report) card 507 drivers/bluetooth/btmrvl_main.c struct btmrvl_sdio_card *card = priv->btmrvl_dev.card; card 512 drivers/bluetooth/btmrvl_main.c if (card->plt_of_node) { card 513 drivers/bluetooth/btmrvl_main.c dt_node = card->plt_of_node; card 719 drivers/bluetooth/btmrvl_main.c struct btmrvl_private *btmrvl_add_card(void *card) card 747 drivers/bluetooth/btmrvl_main.c priv->btmrvl_dev.card = card; card 64 drivers/bluetooth/btmrvl_sdio.c struct btmrvl_sdio_card *card = priv; card 65 drivers/bluetooth/btmrvl_sdio.c struct device *dev = &card->func->dev; card 66 drivers/bluetooth/btmrvl_sdio.c struct btmrvl_plt_wake_cfg *cfg = card->plt_wake_cfg; card 84 drivers/bluetooth/btmrvl_sdio.c struct btmrvl_sdio_card *card) card 95 drivers/bluetooth/btmrvl_sdio.c card->plt_of_node = dev->of_node; card 97 drivers/bluetooth/btmrvl_sdio.c card->plt_wake_cfg = devm_kzalloc(dev, sizeof(*card->plt_wake_cfg), card 99 drivers/bluetooth/btmrvl_sdio.c cfg = card->plt_wake_cfg; card 100 drivers/bluetooth/btmrvl_sdio.c if (cfg && card->plt_of_node) { card 101 drivers/bluetooth/btmrvl_sdio.c cfg->irq_bt = irq_of_parse_and_map(card->plt_of_node, 0); card 108 drivers/bluetooth/btmrvl_sdio.c 0, "bt_wake", card); card 390 drivers/bluetooth/btmrvl_sdio.c static int btmrvl_sdio_get_rx_unit(struct btmrvl_sdio_card *card) card 395 drivers/bluetooth/btmrvl_sdio.c reg = sdio_readb(card->func, card->reg->card_rx_unit, &ret); card 397 drivers/bluetooth/btmrvl_sdio.c card->rx_unit = reg; card 402 drivers/bluetooth/btmrvl_sdio.c static int btmrvl_sdio_read_fw_status(struct btmrvl_sdio_card *card, u16 *dat) card 409 drivers/bluetooth/btmrvl_sdio.c fws0 = sdio_readb(card->func, card->reg->card_fw_status0, &ret); card 413 drivers/bluetooth/btmrvl_sdio.c fws1 = sdio_readb(card->func, card->reg->card_fw_status1, &ret); card 422 drivers/bluetooth/btmrvl_sdio.c static int btmrvl_sdio_read_rx_len(struct btmrvl_sdio_card *card, u16 *dat) card 427 drivers/bluetooth/btmrvl_sdio.c reg = sdio_readb(card->func, card->reg->card_rx_len, &ret); card 429 drivers/bluetooth/btmrvl_sdio.c *dat = (u16) reg << card->rx_unit; card 434 drivers/bluetooth/btmrvl_sdio.c static int btmrvl_sdio_enable_host_int_mask(struct btmrvl_sdio_card *card, card 439 drivers/bluetooth/btmrvl_sdio.c sdio_writeb(card->func, mask, card->reg->host_int_mask, &ret); card 448 drivers/bluetooth/btmrvl_sdio.c static int btmrvl_sdio_disable_host_int_mask(struct btmrvl_sdio_card *card, card 454 drivers/bluetooth/btmrvl_sdio.c host_int_mask = sdio_readb(card->func, card->reg->host_int_mask, &ret); card 460 drivers/bluetooth/btmrvl_sdio.c sdio_writeb(card->func, host_int_mask, card->reg->host_int_mask, &ret); card 469 drivers/bluetooth/btmrvl_sdio.c static int btmrvl_sdio_poll_card_status(struct btmrvl_sdio_card *card, u8 bits) card 476 drivers/bluetooth/btmrvl_sdio.c status = sdio_readb(card->func, card->reg->card_status, &ret); card 493 drivers/bluetooth/btmrvl_sdio.c static int btmrvl_sdio_verify_fw_download(struct btmrvl_sdio_card *card, card 501 drivers/bluetooth/btmrvl_sdio.c sdio_claim_host(card->func); card 502 drivers/bluetooth/btmrvl_sdio.c ret = btmrvl_sdio_read_fw_status(card, &firmwarestat); card 503 drivers/bluetooth/btmrvl_sdio.c sdio_release_host(card->func); card 516 drivers/bluetooth/btmrvl_sdio.c static int btmrvl_sdio_download_helper(struct btmrvl_sdio_card *card) card 526 drivers/bluetooth/btmrvl_sdio.c ret = request_firmware(&fw_helper, card->helper, card 527 drivers/bluetooth/btmrvl_sdio.c &card->func->dev); card 559 drivers/bluetooth/btmrvl_sdio.c ret = btmrvl_sdio_poll_card_status(card, card 584 drivers/bluetooth/btmrvl_sdio.c ret = sdio_writesb(card->func, card->ioport, helperbuf, card 599 drivers/bluetooth/btmrvl_sdio.c ret = sdio_writesb(card->func, card->ioport, helperbuf, card 614 drivers/bluetooth/btmrvl_sdio.c static int btmrvl_sdio_download_fw_w_helper(struct btmrvl_sdio_card *card) card 623 drivers/bluetooth/btmrvl_sdio.c u16 len, blksz_dl = card->sd_blksz_fw_dl; card 626 drivers/bluetooth/btmrvl_sdio.c ret = request_firmware(&fw_firmware, card->firmware, card 627 drivers/bluetooth/btmrvl_sdio.c &card->func->dev); card 655 drivers/bluetooth/btmrvl_sdio.c ret = btmrvl_sdio_poll_card_status(card, card 668 drivers/bluetooth/btmrvl_sdio.c base0 = sdio_readb(card->func, card 669 drivers/bluetooth/btmrvl_sdio.c card->reg->sq_read_base_addr_a0, &ret); card 678 drivers/bluetooth/btmrvl_sdio.c base1 = sdio_readb(card->func, card 679 drivers/bluetooth/btmrvl_sdio.c card->reg->sq_read_base_addr_a1, &ret); card 732 drivers/bluetooth/btmrvl_sdio.c ret = sdio_writesb(card->func, card->ioport, fwbuf, card 738 drivers/bluetooth/btmrvl_sdio.c sdio_writeb(card->func, HOST_CMD53_FIN, card 739 drivers/bluetooth/btmrvl_sdio.c card->reg->cfg, &ret); card 765 drivers/bluetooth/btmrvl_sdio.c struct btmrvl_sdio_card *card = priv->btmrvl_dev.card; card 767 drivers/bluetooth/btmrvl_sdio.c if (!card || !card->func) { card 774 drivers/bluetooth/btmrvl_sdio.c ret = btmrvl_sdio_read_rx_len(card, &buf_len); card 808 drivers/bluetooth/btmrvl_sdio.c ret = sdio_readsb(card->func, payload, card->ioport, card 884 drivers/bluetooth/btmrvl_sdio.c struct btmrvl_sdio_card *card = priv->btmrvl_dev.card; card 891 drivers/bluetooth/btmrvl_sdio.c sdio_claim_host(card->func); card 903 drivers/bluetooth/btmrvl_sdio.c sdio_release_host(card->func); card 908 drivers/bluetooth/btmrvl_sdio.c static int btmrvl_sdio_read_to_clear(struct btmrvl_sdio_card *card, u8 *ireg) card 910 drivers/bluetooth/btmrvl_sdio.c struct btmrvl_adapter *adapter = card->priv->adapter; card 913 drivers/bluetooth/btmrvl_sdio.c ret = sdio_readsb(card->func, adapter->hw_regs, 0, SDIO_BLOCK_SIZE); card 919 drivers/bluetooth/btmrvl_sdio.c *ireg = adapter->hw_regs[card->reg->host_intstatus]; card 920 drivers/bluetooth/btmrvl_sdio.c BT_DBG("hw_regs[%#x]=%#x", card->reg->host_intstatus, *ireg); card 925 drivers/bluetooth/btmrvl_sdio.c static int btmrvl_sdio_write_to_clear(struct btmrvl_sdio_card *card, u8 *ireg) card 929 drivers/bluetooth/btmrvl_sdio.c *ireg = sdio_readb(card->func, card->reg->host_intstatus, &ret); card 943 drivers/bluetooth/btmrvl_sdio.c sdio_writeb(card->func, ~(*ireg) & (DN_LD_HOST_INT_STATUS | card 945 drivers/bluetooth/btmrvl_sdio.c card->reg->host_intstatus, &ret); card 958 drivers/bluetooth/btmrvl_sdio.c struct btmrvl_sdio_card *card; card 963 drivers/bluetooth/btmrvl_sdio.c card = sdio_get_drvdata(func); card 964 drivers/bluetooth/btmrvl_sdio.c if (!card || !card->priv) { card 966 drivers/bluetooth/btmrvl_sdio.c func, card); card 970 drivers/bluetooth/btmrvl_sdio.c priv = card->priv; card 975 drivers/bluetooth/btmrvl_sdio.c if (card->reg->int_read_to_clear) card 976 drivers/bluetooth/btmrvl_sdio.c ret = btmrvl_sdio_read_to_clear(card, &ireg); card 978 drivers/bluetooth/btmrvl_sdio.c ret = btmrvl_sdio_write_to_clear(card, &ireg); card 990 drivers/bluetooth/btmrvl_sdio.c static int btmrvl_sdio_register_dev(struct btmrvl_sdio_card *card) card 996 drivers/bluetooth/btmrvl_sdio.c if (!card || !card->func) { card 1002 drivers/bluetooth/btmrvl_sdio.c func = card->func; card 1020 drivers/bluetooth/btmrvl_sdio.c ret = sdio_set_block_size(card->func, SDIO_BLOCK_SIZE); card 1027 drivers/bluetooth/btmrvl_sdio.c reg = sdio_readb(func, card->reg->io_port_0, &ret); card 1033 drivers/bluetooth/btmrvl_sdio.c card->ioport = reg; card 1035 drivers/bluetooth/btmrvl_sdio.c reg = sdio_readb(func, card->reg->io_port_1, &ret); card 1041 drivers/bluetooth/btmrvl_sdio.c card->ioport |= (reg << 8); card 1043 drivers/bluetooth/btmrvl_sdio.c reg = sdio_readb(func, card->reg->io_port_2, &ret); card 1049 drivers/bluetooth/btmrvl_sdio.c card->ioport |= (reg << 16); card 1051 drivers/bluetooth/btmrvl_sdio.c BT_DBG("SDIO FUNC%d IO port: 0x%x", func->num, card->ioport); card 1053 drivers/bluetooth/btmrvl_sdio.c if (card->reg->int_read_to_clear) { card 1054 drivers/bluetooth/btmrvl_sdio.c reg = sdio_readb(func, card->reg->host_int_rsr, &ret); card 1059 drivers/bluetooth/btmrvl_sdio.c sdio_writeb(func, reg | 0x3f, card->reg->host_int_rsr, &ret); card 1065 drivers/bluetooth/btmrvl_sdio.c reg = sdio_readb(func, card->reg->card_misc_cfg, &ret); card 1070 drivers/bluetooth/btmrvl_sdio.c sdio_writeb(func, reg | 0x10, card->reg->card_misc_cfg, &ret); card 1077 drivers/bluetooth/btmrvl_sdio.c sdio_set_drvdata(func, card); card 1096 drivers/bluetooth/btmrvl_sdio.c static int btmrvl_sdio_unregister_dev(struct btmrvl_sdio_card *card) card 1098 drivers/bluetooth/btmrvl_sdio.c if (card && card->func) { card 1099 drivers/bluetooth/btmrvl_sdio.c sdio_claim_host(card->func); card 1100 drivers/bluetooth/btmrvl_sdio.c sdio_release_irq(card->func); card 1101 drivers/bluetooth/btmrvl_sdio.c sdio_disable_func(card->func); card 1102 drivers/bluetooth/btmrvl_sdio.c sdio_release_host(card->func); card 1103 drivers/bluetooth/btmrvl_sdio.c sdio_set_drvdata(card->func, NULL); card 1109 drivers/bluetooth/btmrvl_sdio.c static int btmrvl_sdio_enable_host_int(struct btmrvl_sdio_card *card) card 1113 drivers/bluetooth/btmrvl_sdio.c if (!card || !card->func) card 1116 drivers/bluetooth/btmrvl_sdio.c sdio_claim_host(card->func); card 1118 drivers/bluetooth/btmrvl_sdio.c ret = btmrvl_sdio_enable_host_int_mask(card, HIM_ENABLE); card 1120 drivers/bluetooth/btmrvl_sdio.c btmrvl_sdio_get_rx_unit(card); card 1122 drivers/bluetooth/btmrvl_sdio.c sdio_release_host(card->func); card 1127 drivers/bluetooth/btmrvl_sdio.c static int btmrvl_sdio_disable_host_int(struct btmrvl_sdio_card *card) card 1131 drivers/bluetooth/btmrvl_sdio.c if (!card || !card->func) card 1134 drivers/bluetooth/btmrvl_sdio.c sdio_claim_host(card->func); card 1136 drivers/bluetooth/btmrvl_sdio.c ret = btmrvl_sdio_disable_host_int_mask(card, HIM_DISABLE); card 1138 drivers/bluetooth/btmrvl_sdio.c sdio_release_host(card->func); card 1146 drivers/bluetooth/btmrvl_sdio.c struct btmrvl_sdio_card *card = priv->btmrvl_dev.card; card 1154 drivers/bluetooth/btmrvl_sdio.c if (!card || !card->func) { card 1173 drivers/bluetooth/btmrvl_sdio.c sdio_claim_host(card->func); card 1177 drivers/bluetooth/btmrvl_sdio.c ret = sdio_writesb(card->func, card->ioport, buf, card 1192 drivers/bluetooth/btmrvl_sdio.c sdio_release_host(card->func); card 1198 drivers/bluetooth/btmrvl_sdio.c static int btmrvl_sdio_download_fw(struct btmrvl_sdio_card *card) card 1204 drivers/bluetooth/btmrvl_sdio.c if (!card || !card->func) { card 1209 drivers/bluetooth/btmrvl_sdio.c if (!btmrvl_sdio_verify_fw_download(card, 1)) { card 1214 drivers/bluetooth/btmrvl_sdio.c sdio_claim_host(card->func); card 1217 drivers/bluetooth/btmrvl_sdio.c fws0 = sdio_readb(card->func, card->reg->card_fw_status0, &ret); card 1229 drivers/bluetooth/btmrvl_sdio.c if (card->helper) { card 1230 drivers/bluetooth/btmrvl_sdio.c ret = btmrvl_sdio_download_helper(card); card 1238 drivers/bluetooth/btmrvl_sdio.c if (btmrvl_sdio_download_fw_w_helper(card)) { card 1249 drivers/bluetooth/btmrvl_sdio.c if (btmrvl_sdio_verify_fw_download(card, pollnum)) { card 1255 drivers/bluetooth/btmrvl_sdio.c sdio_release_host(card->func); card 1260 drivers/bluetooth/btmrvl_sdio.c sdio_release_host(card->func); card 1266 drivers/bluetooth/btmrvl_sdio.c struct btmrvl_sdio_card *card = priv->btmrvl_dev.card; card 1269 drivers/bluetooth/btmrvl_sdio.c if (!card || !card->func) { card 1274 drivers/bluetooth/btmrvl_sdio.c sdio_claim_host(card->func); card 1276 drivers/bluetooth/btmrvl_sdio.c sdio_writeb(card->func, HOST_POWER_UP, card->reg->cfg, &ret); card 1278 drivers/bluetooth/btmrvl_sdio.c sdio_release_host(card->func); card 1287 drivers/bluetooth/btmrvl_sdio.c struct btmrvl_sdio_card *card = priv->btmrvl_dev.card; card 1295 drivers/bluetooth/btmrvl_sdio.c sdio_claim_host(card->func); card 1316 drivers/bluetooth/btmrvl_sdio.c data = sdio_f0_readb(card->func, reg, &ret); card 1318 drivers/bluetooth/btmrvl_sdio.c data = sdio_readb(card->func, reg, &ret); card 1331 drivers/bluetooth/btmrvl_sdio.c sdio_release_host(card->func); card 1339 drivers/bluetooth/btmrvl_sdio.c struct btmrvl_sdio_card *card = priv->btmrvl_dev.card; card 1343 drivers/bluetooth/btmrvl_sdio.c sdio_writeb(card->func, FW_DUMP_HOST_READY, card->reg->fw_dump_ctrl, card 1352 drivers/bluetooth/btmrvl_sdio.c ctrl_data = sdio_readb(card->func, card->reg->fw_dump_ctrl, card 1366 drivers/bluetooth/btmrvl_sdio.c sdio_writeb(card->func, FW_DUMP_HOST_READY, card 1367 drivers/bluetooth/btmrvl_sdio.c card->reg->fw_dump_ctrl, &ret); card 1388 drivers/bluetooth/btmrvl_sdio.c struct btmrvl_sdio_card *card; card 1397 drivers/bluetooth/btmrvl_sdio.c card = sdio_get_drvdata(func); card 1398 drivers/bluetooth/btmrvl_sdio.c priv = card->priv; card 1403 drivers/bluetooth/btmrvl_sdio.c if (!card->supports_fw_dump) { card 1419 drivers/bluetooth/btmrvl_sdio.c sdio_claim_host(card->func); card 1427 drivers/bluetooth/btmrvl_sdio.c reg = card->reg->fw_dump_start; card 1429 drivers/bluetooth/btmrvl_sdio.c dump_num = sdio_readb(card->func, reg, &ret); card 1445 drivers/bluetooth/btmrvl_sdio.c reg = card->reg->fw_dump_start; card 1447 drivers/bluetooth/btmrvl_sdio.c read_reg = sdio_readb(card->func, reg, &ret); card 1458 drivers/bluetooth/btmrvl_sdio.c sdio_writeb(card->func, FW_DUMP_READ_DONE, card 1459 drivers/bluetooth/btmrvl_sdio.c card->reg->fw_dump_ctrl, &ret); card 1493 drivers/bluetooth/btmrvl_sdio.c reg_start = card->reg->fw_dump_start; card 1494 drivers/bluetooth/btmrvl_sdio.c reg_end = card->reg->fw_dump_end; card 1496 drivers/bluetooth/btmrvl_sdio.c *dbg_ptr = sdio_readb(card->func, reg, &ret); card 1521 drivers/bluetooth/btmrvl_sdio.c sdio_release_host(card->func); card 1564 drivers/bluetooth/btmrvl_sdio.c dev_coredumpv(&card->func->dev, fw_dump_data, fw_dump_len, GFP_KERNEL); card 1573 drivers/bluetooth/btmrvl_sdio.c struct btmrvl_sdio_card *card = NULL; card 1578 drivers/bluetooth/btmrvl_sdio.c card = devm_kzalloc(&func->dev, sizeof(*card), GFP_KERNEL); card 1579 drivers/bluetooth/btmrvl_sdio.c if (!card) card 1582 drivers/bluetooth/btmrvl_sdio.c card->func = func; card 1586 drivers/bluetooth/btmrvl_sdio.c card->helper = data->helper; card 1587 drivers/bluetooth/btmrvl_sdio.c card->firmware = data->firmware; card 1588 drivers/bluetooth/btmrvl_sdio.c card->reg = data->reg; card 1589 drivers/bluetooth/btmrvl_sdio.c card->sd_blksz_fw_dl = data->sd_blksz_fw_dl; card 1590 drivers/bluetooth/btmrvl_sdio.c card->support_pscan_win_report = data->support_pscan_win_report; card 1591 drivers/bluetooth/btmrvl_sdio.c card->supports_fw_dump = data->supports_fw_dump; card 1594 drivers/bluetooth/btmrvl_sdio.c if (btmrvl_sdio_register_dev(card) < 0) { card 1600 drivers/bluetooth/btmrvl_sdio.c btmrvl_sdio_disable_host_int(card); card 1602 drivers/bluetooth/btmrvl_sdio.c if (btmrvl_sdio_download_fw(card)) { card 1608 drivers/bluetooth/btmrvl_sdio.c btmrvl_sdio_enable_host_int(card); card 1611 drivers/bluetooth/btmrvl_sdio.c btmrvl_sdio_probe_of(&func->dev, card); card 1613 drivers/bluetooth/btmrvl_sdio.c priv = btmrvl_add_card(card); card 1620 drivers/bluetooth/btmrvl_sdio.c card->priv = priv; card 1636 drivers/bluetooth/btmrvl_sdio.c btmrvl_sdio_disable_host_int(card); card 1638 drivers/bluetooth/btmrvl_sdio.c btmrvl_sdio_unregister_dev(card); card 1644 drivers/bluetooth/btmrvl_sdio.c struct btmrvl_sdio_card *card; card 1647 drivers/bluetooth/btmrvl_sdio.c card = sdio_get_drvdata(func); card 1648 drivers/bluetooth/btmrvl_sdio.c if (card) { card 1653 drivers/bluetooth/btmrvl_sdio.c btmrvl_send_module_cfg_cmd(card->priv, card 1655 drivers/bluetooth/btmrvl_sdio.c btmrvl_sdio_disable_host_int(card); card 1658 drivers/bluetooth/btmrvl_sdio.c card->priv->surprise_removed = true; card 1659 drivers/bluetooth/btmrvl_sdio.c btmrvl_sdio_unregister_dev(card); card 1660 drivers/bluetooth/btmrvl_sdio.c btmrvl_remove_card(card->priv); card 1668 drivers/bluetooth/btmrvl_sdio.c struct btmrvl_sdio_card *card; card 1682 drivers/bluetooth/btmrvl_sdio.c card = sdio_get_drvdata(func); card 1683 drivers/bluetooth/btmrvl_sdio.c if (!card || !card->priv) { card 1693 drivers/bluetooth/btmrvl_sdio.c if (card->plt_wake_cfg && card->plt_wake_cfg->irq_bt >= 0) { card 1694 drivers/bluetooth/btmrvl_sdio.c card->plt_wake_cfg->wake_by_bt = false; card 1695 drivers/bluetooth/btmrvl_sdio.c enable_irq(card->plt_wake_cfg->irq_bt); card 1696 drivers/bluetooth/btmrvl_sdio.c enable_irq_wake(card->plt_wake_cfg->irq_bt); card 1699 drivers/bluetooth/btmrvl_sdio.c priv = card->priv; card 1709 drivers/bluetooth/btmrvl_sdio.c if (card->plt_wake_cfg && card 1710 drivers/bluetooth/btmrvl_sdio.c card->plt_wake_cfg->irq_bt >= 0) { card 1711 drivers/bluetooth/btmrvl_sdio.c disable_irq_wake(card->plt_wake_cfg->irq_bt); card 1712 drivers/bluetooth/btmrvl_sdio.c disable_irq(card->plt_wake_cfg->irq_bt); card 1736 drivers/bluetooth/btmrvl_sdio.c struct btmrvl_sdio_card *card; card 1745 drivers/bluetooth/btmrvl_sdio.c card = sdio_get_drvdata(func); card 1746 drivers/bluetooth/btmrvl_sdio.c if (!card || !card->priv) { card 1754 drivers/bluetooth/btmrvl_sdio.c priv = card->priv; card 1770 drivers/bluetooth/btmrvl_sdio.c if (card->plt_wake_cfg && card->plt_wake_cfg->irq_bt >= 0) { card 1771 drivers/bluetooth/btmrvl_sdio.c disable_irq_wake(card->plt_wake_cfg->irq_bt); card 1772 drivers/bluetooth/btmrvl_sdio.c disable_irq(card->plt_wake_cfg->irq_bt); card 1773 drivers/bluetooth/btmrvl_sdio.c if (card->plt_wake_cfg->wake_by_bt) card 1777 drivers/bluetooth/btmrvl_sdio.c enable_irq(card->plt_wake_cfg->irq_bt); card 285 drivers/bluetooth/btsdio.c !mmc_card_is_removable(func->card->host)) { card 337 drivers/edac/ghes_edac.c p += sprintf(p, "card:%d ", mem_err->card); card 1357 drivers/extcon/extcon-arizona.c if (!arizona->dapm || !arizona->dapm->card) card 28 drivers/firewire/core-card.c void func(const struct fw_card *card, const char *fmt, ...) \ card 37 drivers/firewire/core-card.c dev_name(card->device), &vaf); \ card 90 drivers/firewire/core-card.c static void generate_config_rom(struct fw_card *card, __be32 *config_rom) card 108 drivers/firewire/core-card.c BIB_LINK_SPEED(card->link_speed) | card 109 drivers/firewire/core-card.c BIB_GENERATION(card->config_rom_generation++ % 14 + 2) | card 111 drivers/firewire/core-card.c BIB_MAX_RECEIVE(card->max_receive) | card 113 drivers/firewire/core-card.c config_rom[3] = cpu_to_be32(card->guid >> 32); card 114 drivers/firewire/core-card.c config_rom[4] = cpu_to_be32(card->guid); card 152 drivers/firewire/core-card.c struct fw_card *card; card 154 drivers/firewire/core-card.c list_for_each_entry (card, &card_list, link) { card 155 drivers/firewire/core-card.c generate_config_rom(card, tmp_config_rom); card 156 drivers/firewire/core-card.c card->driver->set_config_rom(card, tmp_config_rom, card 219 drivers/firewire/core-card.c static int reset_bus(struct fw_card *card, bool short_reset) card 224 drivers/firewire/core-card.c return card->driver->update_phy_reg(card, reg, 0, bit); card 227 drivers/firewire/core-card.c void fw_schedule_bus_reset(struct fw_card *card, bool delayed, bool short_reset) card 230 drivers/firewire/core-card.c card->br_short = short_reset; card 233 drivers/firewire/core-card.c fw_card_get(card); card 234 drivers/firewire/core-card.c if (!queue_delayed_work(fw_workqueue, &card->br_work, card 236 drivers/firewire/core-card.c fw_card_put(card); card 242 drivers/firewire/core-card.c struct fw_card *card = container_of(work, struct fw_card, br_work.work); card 245 drivers/firewire/core-card.c if (card->reset_jiffies != 0 && card 246 drivers/firewire/core-card.c time_before64(get_jiffies_64(), card->reset_jiffies + 2 * HZ)) { card 247 drivers/firewire/core-card.c if (!queue_delayed_work(fw_workqueue, &card->br_work, 2 * HZ)) card 248 drivers/firewire/core-card.c fw_card_put(card); card 252 drivers/firewire/core-card.c fw_send_phy_config(card, FW_PHY_CONFIG_NO_NODE_ID, card->generation, card 254 drivers/firewire/core-card.c reset_bus(card, card->br_short); card 255 drivers/firewire/core-card.c fw_card_put(card); card 258 drivers/firewire/core-card.c static void allocate_broadcast_channel(struct fw_card *card, int generation) card 262 drivers/firewire/core-card.c if (!card->broadcast_channel_allocated) { card 263 drivers/firewire/core-card.c fw_iso_resource_manage(card, generation, 1ULL << 31, card 266 drivers/firewire/core-card.c fw_notice(card, "failed to allocate broadcast channel\n"); card 269 drivers/firewire/core-card.c card->broadcast_channel_allocated = true; card 272 drivers/firewire/core-card.c device_for_each_child(card->device, (void *)(long)generation, card 280 drivers/firewire/core-card.c void fw_schedule_bm_work(struct fw_card *card, unsigned long delay) card 282 drivers/firewire/core-card.c fw_card_get(card); card 283 drivers/firewire/core-card.c if (!schedule_delayed_work(&card->bm_work, delay)) card 284 drivers/firewire/core-card.c fw_card_put(card); card 289 drivers/firewire/core-card.c struct fw_card *card = container_of(work, struct fw_card, bm_work.work); card 301 drivers/firewire/core-card.c spin_lock_irq(&card->lock); card 303 drivers/firewire/core-card.c if (card->local_node == NULL) { card 304 drivers/firewire/core-card.c spin_unlock_irq(&card->lock); card 308 drivers/firewire/core-card.c generation = card->generation; card 310 drivers/firewire/core-card.c root_node = card->root_node; card 317 drivers/firewire/core-card.c irm_device = card->irm_node->data; card 326 drivers/firewire/core-card.c irm_id = card->irm_node->node_id; card 327 drivers/firewire/core-card.c local_id = card->local_node->node_id; card 330 drivers/firewire/core-card.c card->reset_jiffies + DIV_ROUND_UP(HZ, 8)); card 332 drivers/firewire/core-card.c if ((is_next_generation(generation, card->bm_generation) && card 333 drivers/firewire/core-card.c !card->bm_abdicate) || card 334 drivers/firewire/core-card.c (card->bm_generation != generation && grace)) { card 347 drivers/firewire/core-card.c if (!card->irm_node->link_on) { card 349 drivers/firewire/core-card.c fw_notice(card, "%s, making local node (%02x) root\n", card 356 drivers/firewire/core-card.c fw_notice(card, "%s, making local node (%02x) root\n", card 364 drivers/firewire/core-card.c spin_unlock_irq(&card->lock); card 366 drivers/firewire/core-card.c rcode = fw_run_transaction(card, TCODE_LOCK_COMPARE_SWAP, card 377 drivers/firewire/core-card.c spin_lock_irq(&card->lock); card 378 drivers/firewire/core-card.c if (rcode == RCODE_COMPLETE && generation == card->generation) card 379 drivers/firewire/core-card.c card->bm_node_id = card 381 drivers/firewire/core-card.c spin_unlock_irq(&card->lock); card 386 drivers/firewire/core-card.c allocate_broadcast_channel(card, generation); card 397 drivers/firewire/core-card.c fw_schedule_bm_work(card, DIV_ROUND_UP(HZ, 8)); card 401 drivers/firewire/core-card.c spin_lock_irq(&card->lock); card 411 drivers/firewire/core-card.c fw_notice(card, "BM lock failed (%s), making local node (%02x) root\n", card 415 drivers/firewire/core-card.c } else if (card->bm_generation != generation) { card 420 drivers/firewire/core-card.c spin_unlock_irq(&card->lock); card 421 drivers/firewire/core-card.c fw_schedule_bm_work(card, DIV_ROUND_UP(HZ, 8)); card 430 drivers/firewire/core-card.c card->bm_generation = generation; card 443 drivers/firewire/core-card.c spin_unlock_irq(&card->lock); card 465 drivers/firewire/core-card.c if (!card->beta_repeaters_present && card 477 drivers/firewire/core-card.c if (card->bm_retries++ < 5 && card 478 drivers/firewire/core-card.c (card->gap_count != gap_count || new_root_id != root_id)) card 481 drivers/firewire/core-card.c spin_unlock_irq(&card->lock); card 484 drivers/firewire/core-card.c fw_notice(card, "phy config: new root=%x, gap_count=%d\n", card 486 drivers/firewire/core-card.c fw_send_phy_config(card, new_root_id, generation, gap_count); card 487 drivers/firewire/core-card.c reset_bus(card, true); card 497 drivers/firewire/core-card.c rcode = fw_run_transaction(card, TCODE_WRITE_QUADLET_REQUEST, card 506 drivers/firewire/core-card.c allocate_broadcast_channel(card, generation); card 511 drivers/firewire/core-card.c fw_card_put(card); card 514 drivers/firewire/core-card.c void fw_card_initialize(struct fw_card *card, card 520 drivers/firewire/core-card.c card->index = atomic_inc_return(&index); card 521 drivers/firewire/core-card.c card->driver = driver; card 522 drivers/firewire/core-card.c card->device = device; card 523 drivers/firewire/core-card.c card->current_tlabel = 0; card 524 drivers/firewire/core-card.c card->tlabel_mask = 0; card 525 drivers/firewire/core-card.c card->split_timeout_hi = DEFAULT_SPLIT_TIMEOUT / 8000; card 526 drivers/firewire/core-card.c card->split_timeout_lo = (DEFAULT_SPLIT_TIMEOUT % 8000) << 19; card 527 drivers/firewire/core-card.c card->split_timeout_cycles = DEFAULT_SPLIT_TIMEOUT; card 528 drivers/firewire/core-card.c card->split_timeout_jiffies = card 530 drivers/firewire/core-card.c card->color = 0; card 531 drivers/firewire/core-card.c card->broadcast_channel = BROADCAST_CHANNEL_INITIAL; card 533 drivers/firewire/core-card.c kref_init(&card->kref); card 534 drivers/firewire/core-card.c init_completion(&card->done); card 535 drivers/firewire/core-card.c INIT_LIST_HEAD(&card->transaction_list); card 536 drivers/firewire/core-card.c INIT_LIST_HEAD(&card->phy_receiver_list); card 537 drivers/firewire/core-card.c spin_lock_init(&card->lock); card 539 drivers/firewire/core-card.c card->local_node = NULL; card 541 drivers/firewire/core-card.c INIT_DELAYED_WORK(&card->br_work, br_work); card 542 drivers/firewire/core-card.c INIT_DELAYED_WORK(&card->bm_work, bm_work); card 546 drivers/firewire/core-card.c int fw_card_add(struct fw_card *card, card 551 drivers/firewire/core-card.c card->max_receive = max_receive; card 552 drivers/firewire/core-card.c card->link_speed = link_speed; card 553 drivers/firewire/core-card.c card->guid = guid; card 557 drivers/firewire/core-card.c generate_config_rom(card, tmp_config_rom); card 558 drivers/firewire/core-card.c ret = card->driver->enable(card, tmp_config_rom, config_rom_length); card 560 drivers/firewire/core-card.c list_add_tail(&card->link, &card_list); card 581 drivers/firewire/core-card.c static int dummy_read_phy_reg(struct fw_card *card, int address) card 586 drivers/firewire/core-card.c static int dummy_update_phy_reg(struct fw_card *card, int address, card 592 drivers/firewire/core-card.c static void dummy_send_request(struct fw_card *card, struct fw_packet *packet) card 594 drivers/firewire/core-card.c packet->callback(packet, card, RCODE_CANCELLED); card 597 drivers/firewire/core-card.c static void dummy_send_response(struct fw_card *card, struct fw_packet *packet) card 599 drivers/firewire/core-card.c packet->callback(packet, card, RCODE_CANCELLED); card 602 drivers/firewire/core-card.c static int dummy_cancel_packet(struct fw_card *card, struct fw_packet *packet) card 607 drivers/firewire/core-card.c static int dummy_enable_phys_dma(struct fw_card *card, card 613 drivers/firewire/core-card.c static struct fw_iso_context *dummy_allocate_iso_context(struct fw_card *card, card 662 drivers/firewire/core-card.c struct fw_card *card = container_of(kref, struct fw_card, kref); card 664 drivers/firewire/core-card.c complete(&card->done); card 668 drivers/firewire/core-card.c void fw_core_remove_card(struct fw_card *card) card 672 drivers/firewire/core-card.c card->driver->update_phy_reg(card, 4, card 674 drivers/firewire/core-card.c fw_schedule_bus_reset(card, false, true); card 677 drivers/firewire/core-card.c list_del_init(&card->link); card 681 drivers/firewire/core-card.c dummy_driver.free_iso_context = card->driver->free_iso_context; card 682 drivers/firewire/core-card.c dummy_driver.stop_iso = card->driver->stop_iso; card 683 drivers/firewire/core-card.c card->driver = &dummy_driver; card 685 drivers/firewire/core-card.c fw_destroy_nodes(card); card 688 drivers/firewire/core-card.c fw_card_put(card); card 689 drivers/firewire/core-card.c wait_for_completion(&card->done); card 691 drivers/firewire/core-card.c WARN_ON(!list_empty(&card->transaction_list)); card 111 drivers/firewire/core-cdev.c struct fw_card *card; card 341 drivers/firewire/core-cdev.c struct fw_card *card = client->device->card; card 343 drivers/firewire/core-cdev.c spin_lock_irq(&card->lock); card 349 drivers/firewire/core-cdev.c event->local_node_id = card->local_node->node_id; card 350 drivers/firewire/core-cdev.c event->bm_node_id = card->bm_node_id; card 351 drivers/firewire/core-cdev.c event->irm_node_id = card->irm_node->node_id; card 352 drivers/firewire/core-cdev.c event->root_node_id = card->root_node->node_id; card 354 drivers/firewire/core-cdev.c spin_unlock_irq(&card->lock); card 439 drivers/firewire/core-cdev.c a->card = client->device->card->index; card 535 drivers/firewire/core-cdev.c static void complete_transaction(struct fw_card *card, int rcode, card 610 drivers/firewire/core-cdev.c fw_send_request(client->device->card, &e->r.transaction, card 659 drivers/firewire/core-cdev.c fw_send_response(r->card, r->request, RCODE_CONFLICT_ERROR); card 661 drivers/firewire/core-cdev.c fw_card_put(r->card); card 665 drivers/firewire/core-cdev.c static void handle_request(struct fw_card *card, struct fw_request *request, card 678 drivers/firewire/core-cdev.c fw_card_get(card); card 685 drivers/firewire/core-cdev.c r->card = card; card 728 drivers/firewire/core-cdev.c req->card = card->index; card 746 drivers/firewire/core-cdev.c fw_send_response(card, request, RCODE_CONFLICT_ERROR); card 748 drivers/firewire/core-cdev.c fw_card_put(card); card 834 drivers/firewire/core-cdev.c fw_send_response(r->card, r->request, a->rcode); card 836 drivers/firewire/core-cdev.c fw_card_put(r->card); card 844 drivers/firewire/core-cdev.c fw_schedule_bus_reset(client->device->card, true, card 992 drivers/firewire/core-cdev.c context = fw_iso_context_create(client->device->card, a->type, card 1009 drivers/firewire/core-cdev.c client->device->card, card 1194 drivers/firewire/core-cdev.c struct fw_card *card = client->device->card; card 1201 drivers/firewire/core-cdev.c cycle_time = card->driver->read_csr(card, CSR_CYCLE_TIME); card 1249 drivers/firewire/core-cdev.c client->device->card->reset_jiffies + HZ)) { card 1268 drivers/firewire/core-cdev.c fw_iso_resource_manage(client->device->card, generation, card 1463 drivers/firewire/core-cdev.c if (a->speed > client->device->card->link_speed || card 1481 drivers/firewire/core-cdev.c struct fw_card *card, int status) card 1509 drivers/firewire/core-cdev.c struct fw_card *card = client->device->card; card 1534 drivers/firewire/core-cdev.c card->driver->send_request(card, &e->p); card 1542 drivers/firewire/core-cdev.c struct fw_card *card = client->device->card; card 1548 drivers/firewire/core-cdev.c spin_lock_irq(&card->lock); card 1550 drivers/firewire/core-cdev.c list_move_tail(&client->phy_receiver_link, &card->phy_receiver_list); card 1553 drivers/firewire/core-cdev.c spin_unlock_irq(&card->lock); card 1558 drivers/firewire/core-cdev.c void fw_cdev_handle_phy_packet(struct fw_card *card, struct fw_packet *p) card 1564 drivers/firewire/core-cdev.c spin_lock_irqsave(&card->lock, flags); card 1566 drivers/firewire/core-cdev.c list_for_each_entry(client, &card->phy_receiver_list, phy_receiver_link) { card 1581 drivers/firewire/core-cdev.c spin_unlock_irqrestore(&card->lock, flags); card 1689 drivers/firewire/core-cdev.c client->device->card, card 1703 drivers/firewire/core-cdev.c fw_iso_buffer_destroy(&client->buffer, client->device->card); card 1742 drivers/firewire/core-cdev.c spin_lock_irq(&client->device->card->lock); card 1744 drivers/firewire/core-cdev.c spin_unlock_irq(&client->device->card->lock); card 1754 drivers/firewire/core-cdev.c fw_iso_buffer_destroy(&client->buffer, client->device->card); card 237 drivers/firewire/core-device.c return device->card->driver->enable_phys_dma(device->card, card 485 drivers/firewire/core-device.c rcode = fw_run_transaction(device->card, card 509 drivers/firewire/core-device.c struct fw_card *card = device->card; card 557 drivers/firewire/core-device.c card->beta_repeaters_present) { card 562 drivers/firewire/core-device.c device->max_speed = card->link_speed; card 607 drivers/firewire/core-device.c fw_err(card, "skipped invalid ROM block %x at %llx\n", card 635 drivers/firewire/core-device.c fw_err(card, card 796 drivers/firewire/core-device.c device->card->reset_jiffies + SHUTDOWN_DELAY) card 797 drivers/firewire/core-device.c && !list_empty(&device->card->link)) { card 821 drivers/firewire/core-device.c struct fw_card *card = device->card; card 829 drivers/firewire/core-device.c spin_lock_irqsave(&card->lock, flags); card 831 drivers/firewire/core-device.c spin_unlock_irqrestore(&card->lock, flags); card 836 drivers/firewire/core-device.c fw_card_put(card); card 881 drivers/firewire/core-device.c struct fw_card *card = new->card; card 888 drivers/firewire/core-device.c spin_lock_irq(&card->lock); /* serialize node access */ card 905 drivers/firewire/core-device.c old->generation = card->generation; card 907 drivers/firewire/core-device.c fw_notice(card, "rediscovered device %s\n", dev_name(dev)); card 912 drivers/firewire/core-device.c if (current_node == card->root_node) card 913 drivers/firewire/core-device.c fw_schedule_bm_work(card, 0); card 918 drivers/firewire/core-device.c spin_unlock_irq(&card->lock); card 928 drivers/firewire/core-device.c struct fw_card *card = device->card; card 932 drivers/firewire/core-device.c if (!card->broadcast_channel_allocated) card 950 drivers/firewire/core-device.c rcode = fw_run_transaction(card, TCODE_READ_QUADLET_REQUEST, card 969 drivers/firewire/core-device.c fw_run_transaction(card, TCODE_WRITE_QUADLET_REQUEST, card 988 drivers/firewire/core-device.c struct fw_card *card = device->card; card 1006 drivers/firewire/core-device.c fw_notice(card, "giving up on node %x: reading config rom failed: %s\n", card 1009 drivers/firewire/core-device.c if (device->node == card->root_node) card 1010 drivers/firewire/core-device.c fw_schedule_bm_work(card, 0); card 1016 drivers/firewire/core-device.c revived_dev = device_find_child(card->device, card 1038 drivers/firewire/core-device.c device->device.parent = card->device; card 1050 drivers/firewire/core-device.c fw_err(card, "failed to add device\n"); card 1071 drivers/firewire/core-device.c fw_notice(card, "created device %s: GUID %08x%08x, S%d00\n", card 1088 drivers/firewire/core-device.c if (device->node == card->root_node) card 1089 drivers/firewire/core-device.c fw_schedule_bm_work(card, 0); card 1133 drivers/firewire/core-device.c struct fw_card *card = device->card; card 1173 drivers/firewire/core-device.c fw_notice(card, "refreshed device %s\n", dev_name(&device->device)); card 1185 drivers/firewire/core-device.c fw_notice(card, "giving up on refresh of device %s: %s\n", card 1192 drivers/firewire/core-device.c if (node_id == card->root_node->node_id) card 1193 drivers/firewire/core-device.c fw_schedule_bm_work(card, 0); card 1203 drivers/firewire/core-device.c void fw_node_event(struct fw_card *card, struct fw_node *node, int event) card 1231 drivers/firewire/core-device.c device->card = fw_card_get(card); card 1234 drivers/firewire/core-device.c device->generation = card->generation; card 1235 drivers/firewire/core-device.c device->is_local = node == card->local_node; card 1265 drivers/firewire/core-device.c device->generation = card->generation; card 1282 drivers/firewire/core-device.c device->generation = card->generation; card 1311 drivers/firewire/core-device.c list_empty(&card->link) ? 0 : SHUTDOWN_DELAY); card 54 drivers/firewire/core-iso.c int fw_iso_buffer_map_dma(struct fw_iso_buffer *buffer, struct fw_card *card, card 63 drivers/firewire/core-iso.c address = dma_map_page(card->device, buffer->pages[i], card 65 drivers/firewire/core-iso.c if (dma_mapping_error(card->device, address)) card 77 drivers/firewire/core-iso.c int fw_iso_buffer_init(struct fw_iso_buffer *buffer, struct fw_card *card, card 86 drivers/firewire/core-iso.c ret = fw_iso_buffer_map_dma(buffer, card, direction); card 88 drivers/firewire/core-iso.c fw_iso_buffer_destroy(buffer, card); card 102 drivers/firewire/core-iso.c struct fw_card *card) card 109 drivers/firewire/core-iso.c dma_unmap_page(card->device, address, card 139 drivers/firewire/core-iso.c struct fw_iso_context *fw_iso_context_create(struct fw_card *card, card 145 drivers/firewire/core-iso.c ctx = card->driver->allocate_iso_context(card, card 150 drivers/firewire/core-iso.c ctx->card = card; card 164 drivers/firewire/core-iso.c ctx->card->driver->free_iso_context(ctx); card 171 drivers/firewire/core-iso.c return ctx->card->driver->start_iso(ctx, cycle, sync, tags); card 177 drivers/firewire/core-iso.c return ctx->card->driver->set_iso_channels(ctx, channels); card 185 drivers/firewire/core-iso.c return ctx->card->driver->queue_iso(ctx, packet, buffer, payload); card 191 drivers/firewire/core-iso.c ctx->card->driver->flush_queue_iso(ctx); card 197 drivers/firewire/core-iso.c return ctx->card->driver->flush_iso_completions(ctx); card 203 drivers/firewire/core-iso.c return ctx->card->driver->stop_iso(ctx); card 211 drivers/firewire/core-iso.c static int manage_bandwidth(struct fw_card *card, int irm_id, int generation, card 229 drivers/firewire/core-iso.c switch (fw_run_transaction(card, TCODE_LOCK_COMPARE_SWAP, card 249 drivers/firewire/core-iso.c static int manage_channel(struct fw_card *card, int irm_id, int generation, card 270 drivers/firewire/core-iso.c switch (fw_run_transaction(card, TCODE_LOCK_COMPARE_SWAP, card 301 drivers/firewire/core-iso.c static void deallocate_channel(struct fw_card *card, int irm_id, card 311 drivers/firewire/core-iso.c manage_channel(card, irm_id, generation, mask, offset, false); card 345 drivers/firewire/core-iso.c void fw_iso_resource_manage(struct fw_card *card, int generation, card 353 drivers/firewire/core-iso.c spin_lock_irq(&card->lock); card 354 drivers/firewire/core-iso.c irm_id = card->irm_node->node_id; card 355 drivers/firewire/core-iso.c spin_unlock_irq(&card->lock); card 358 drivers/firewire/core-iso.c c = manage_channel(card, irm_id, generation, channels_hi, card 362 drivers/firewire/core-iso.c c = manage_channel(card, irm_id, generation, channels_lo, card 376 drivers/firewire/core-iso.c ret = manage_bandwidth(card, irm_id, generation, *bandwidth, allocate); card 382 drivers/firewire/core-iso.c deallocate_channel(card, irm_id, generation, c); card 170 drivers/firewire/core-topology.c static struct fw_node *build_tree(struct fw_card *card, card 194 drivers/firewire/core-topology.c fw_err(card, "inconsistent extended self IDs\n"); card 200 drivers/firewire/core-topology.c fw_err(card, "PHY ID mismatch in self ID: %d != %d\n", card 206 drivers/firewire/core-topology.c fw_err(card, "topology stack underflow\n"); card 222 drivers/firewire/core-topology.c node = fw_node_create(q, port_count, card->color); card 224 drivers/firewire/core-topology.c fw_err(card, "out of memory while building topology\n"); card 228 drivers/firewire/core-topology.c if (phy_id == (card->node_id & 0x3f)) card 260 drivers/firewire/core-topology.c child->color = card->color; card 273 drivers/firewire/core-topology.c fw_err(card, "parent port inconsistency for node %d: " card 300 drivers/firewire/core-topology.c card->root_node = node; card 301 drivers/firewire/core-topology.c card->irm_node = irm_node; card 302 drivers/firewire/core-topology.c card->gap_count = gap_count; card 303 drivers/firewire/core-topology.c card->beta_repeaters_present = beta_repeaters_present; card 308 drivers/firewire/core-topology.c typedef void (*fw_node_callback_t)(struct fw_card * card, card 312 drivers/firewire/core-topology.c static void for_each_fw_node(struct fw_card *card, struct fw_node *root, card 325 drivers/firewire/core-topology.c node->color = card->color; card 331 drivers/firewire/core-topology.c if (child->color == card->color) card 339 drivers/firewire/core-topology.c callback(card, node, parent); card 346 drivers/firewire/core-topology.c static void report_lost_node(struct fw_card *card, card 349 drivers/firewire/core-topology.c fw_node_event(card, node, FW_NODE_DESTROYED); card 353 drivers/firewire/core-topology.c card->bm_retries = 0; card 356 drivers/firewire/core-topology.c static void report_found_node(struct fw_card *card, card 371 drivers/firewire/core-topology.c fw_node_event(card, node, FW_NODE_CREATED); card 374 drivers/firewire/core-topology.c card->bm_retries = 0; card 377 drivers/firewire/core-topology.c void fw_destroy_nodes(struct fw_card *card) card 381 drivers/firewire/core-topology.c spin_lock_irqsave(&card->lock, flags); card 382 drivers/firewire/core-topology.c card->color++; card 383 drivers/firewire/core-topology.c if (card->local_node != NULL) card 384 drivers/firewire/core-topology.c for_each_fw_node(card, card->local_node, report_lost_node); card 385 drivers/firewire/core-topology.c card->local_node = NULL; card 386 drivers/firewire/core-topology.c spin_unlock_irqrestore(&card->lock, flags); card 409 drivers/firewire/core-topology.c static void update_tree(struct fw_card *card, struct fw_node *root) card 416 drivers/firewire/core-topology.c list_add_tail(&card->local_node->link, &list0); card 436 drivers/firewire/core-topology.c node0->color = card->color; card 440 drivers/firewire/core-topology.c node1->color = card->color; card 441 drivers/firewire/core-topology.c fw_node_event(card, node0, event); card 443 drivers/firewire/core-topology.c if (card->root_node == node1) card 444 drivers/firewire/core-topology.c card->root_node = node0; card 445 drivers/firewire/core-topology.c if (card->irm_node == node1) card 446 drivers/firewire/core-topology.c card->irm_node = node0; card 455 drivers/firewire/core-topology.c if (node0->ports[i]->color == card->color) card 467 drivers/firewire/core-topology.c for_each_fw_node(card, node0->ports[i], card 478 drivers/firewire/core-topology.c for_each_fw_node(card, node0->ports[i], card 490 drivers/firewire/core-topology.c static void update_topology_map(struct fw_card *card, card 493 drivers/firewire/core-topology.c int node_count = (card->root_node->node_id & 0x3f) + 1; card 494 drivers/firewire/core-topology.c __be32 *map = card->topology_map; card 497 drivers/firewire/core-topology.c *map++ = cpu_to_be32(be32_to_cpu(card->topology_map[1]) + 1); card 503 drivers/firewire/core-topology.c fw_compute_block_crc(card->topology_map); card 506 drivers/firewire/core-topology.c void fw_core_handle_bus_reset(struct fw_card *card, int node_id, int generation, card 517 drivers/firewire/core-topology.c if (!is_next_generation(generation, card->generation) && card 518 drivers/firewire/core-topology.c card->local_node != NULL) { card 519 drivers/firewire/core-topology.c fw_destroy_nodes(card); card 520 drivers/firewire/core-topology.c card->bm_retries = 0; card 523 drivers/firewire/core-topology.c spin_lock_irqsave(&card->lock, flags); card 525 drivers/firewire/core-topology.c card->broadcast_channel_allocated = card->broadcast_channel_auto_allocated; card 526 drivers/firewire/core-topology.c card->node_id = node_id; card 532 drivers/firewire/core-topology.c card->generation = generation; card 533 drivers/firewire/core-topology.c card->reset_jiffies = get_jiffies_64(); card 534 drivers/firewire/core-topology.c card->bm_node_id = 0xffff; card 535 drivers/firewire/core-topology.c card->bm_abdicate = bm_abdicate; card 536 drivers/firewire/core-topology.c fw_schedule_bm_work(card, 0); card 538 drivers/firewire/core-topology.c local_node = build_tree(card, self_ids, self_id_count); card 540 drivers/firewire/core-topology.c update_topology_map(card, self_ids, self_id_count); card 542 drivers/firewire/core-topology.c card->color++; card 545 drivers/firewire/core-topology.c fw_err(card, "topology build failed\n"); card 547 drivers/firewire/core-topology.c } else if (card->local_node == NULL) { card 548 drivers/firewire/core-topology.c card->local_node = local_node; card 549 drivers/firewire/core-topology.c for_each_fw_node(card, local_node, report_found_node); card 551 drivers/firewire/core-topology.c update_tree(card, local_node); card 554 drivers/firewire/core-topology.c spin_unlock_irqrestore(&card->lock, flags); card 74 drivers/firewire/core-transaction.c struct fw_card *card, int rcode) card 79 drivers/firewire/core-transaction.c spin_lock_irqsave(&card->lock, flags); card 80 drivers/firewire/core-transaction.c list_for_each_entry(t, &card->transaction_list, link) { card 83 drivers/firewire/core-transaction.c spin_unlock_irqrestore(&card->lock, flags); card 87 drivers/firewire/core-transaction.c card->tlabel_mask &= ~(1ULL << t->tlabel); card 91 drivers/firewire/core-transaction.c spin_unlock_irqrestore(&card->lock, flags); card 93 drivers/firewire/core-transaction.c if (&t->link != &card->transaction_list) { card 94 drivers/firewire/core-transaction.c t->callback(card, rcode, NULL, 0, t->callback_data); card 106 drivers/firewire/core-transaction.c int fw_cancel_transaction(struct fw_card *card, card 115 drivers/firewire/core-transaction.c if (card->driver->cancel_packet(card, &transaction->packet) == 0) card 123 drivers/firewire/core-transaction.c return close_transaction(transaction, card, RCODE_CANCELLED); card 130 drivers/firewire/core-transaction.c struct fw_card *card = t->card; card 133 drivers/firewire/core-transaction.c spin_lock_irqsave(&card->lock, flags); card 135 drivers/firewire/core-transaction.c spin_unlock_irqrestore(&card->lock, flags); card 139 drivers/firewire/core-transaction.c card->tlabel_mask &= ~(1ULL << t->tlabel); card 140 drivers/firewire/core-transaction.c spin_unlock_irqrestore(&card->lock, flags); card 142 drivers/firewire/core-transaction.c t->callback(card, RCODE_CANCELLED, NULL, 0, t->callback_data); card 146 drivers/firewire/core-transaction.c struct fw_card *card) card 150 drivers/firewire/core-transaction.c spin_lock_irqsave(&card->lock, flags); card 153 drivers/firewire/core-transaction.c spin_unlock_irqrestore(&card->lock, flags); card 159 drivers/firewire/core-transaction.c jiffies + card->split_timeout_jiffies); card 161 drivers/firewire/core-transaction.c spin_unlock_irqrestore(&card->lock, flags); card 165 drivers/firewire/core-transaction.c struct fw_card *card, int status) card 172 drivers/firewire/core-transaction.c close_transaction(t, card, RCODE_COMPLETE); card 175 drivers/firewire/core-transaction.c start_split_transaction_timeout(t, card); card 180 drivers/firewire/core-transaction.c close_transaction(t, card, RCODE_BUSY); card 183 drivers/firewire/core-transaction.c close_transaction(t, card, RCODE_DATA_ERROR); card 186 drivers/firewire/core-transaction.c close_transaction(t, card, RCODE_TYPE_ERROR); card 193 drivers/firewire/core-transaction.c close_transaction(t, card, status); card 272 drivers/firewire/core-transaction.c static int allocate_tlabel(struct fw_card *card) card 276 drivers/firewire/core-transaction.c tlabel = card->current_tlabel; card 277 drivers/firewire/core-transaction.c while (card->tlabel_mask & (1ULL << tlabel)) { card 279 drivers/firewire/core-transaction.c if (tlabel == card->current_tlabel) card 283 drivers/firewire/core-transaction.c card->current_tlabel = (tlabel + 1) & 0x3f; card 284 drivers/firewire/core-transaction.c card->tlabel_mask |= 1ULL << tlabel; card 337 drivers/firewire/core-transaction.c void fw_send_request(struct fw_card *card, struct fw_transaction *t, int tcode, card 350 drivers/firewire/core-transaction.c spin_lock_irqsave(&card->lock, flags); card 352 drivers/firewire/core-transaction.c tlabel = allocate_tlabel(card); card 354 drivers/firewire/core-transaction.c spin_unlock_irqrestore(&card->lock, flags); card 355 drivers/firewire/core-transaction.c callback(card, RCODE_SEND_ERROR, NULL, 0, callback_data); card 361 drivers/firewire/core-transaction.c t->card = card; card 369 drivers/firewire/core-transaction.c destination_id, card->node_id, generation, card 373 drivers/firewire/core-transaction.c list_add_tail(&t->link, &card->transaction_list); card 375 drivers/firewire/core-transaction.c spin_unlock_irqrestore(&card->lock, flags); card 377 drivers/firewire/core-transaction.c card->driver->send_request(card, &t->packet); card 387 drivers/firewire/core-transaction.c static void transaction_callback(struct fw_card *card, int rcode, card 414 drivers/firewire/core-transaction.c int fw_run_transaction(struct fw_card *card, int tcode, int destination_id, card 424 drivers/firewire/core-transaction.c fw_send_request(card, &t, tcode, destination_id, generation, speed, card 437 drivers/firewire/core-transaction.c struct fw_card *card, int status) card 450 drivers/firewire/core-transaction.c void fw_send_phy_config(struct fw_card *card, card 460 drivers/firewire/core-transaction.c gap_count = card->driver->read_phy_reg(card, 1); card 477 drivers/firewire/core-transaction.c card->driver->send_request(card, &phy_config_packet); card 627 drivers/firewire/core-transaction.c struct fw_card *card, int status) card 728 drivers/firewire/core-transaction.c static u32 compute_split_timeout_timestamp(struct fw_card *card, card 734 drivers/firewire/core-transaction.c cycles = card->split_timeout_cycles; card 744 drivers/firewire/core-transaction.c static struct fw_request *allocate_request(struct fw_card *card, card 775 drivers/firewire/core-transaction.c fw_notice(card, "ERROR - corrupt request received - %08x %08x %08x\n", card 786 drivers/firewire/core-transaction.c compute_split_timeout_timestamp(card, p->timestamp); card 800 drivers/firewire/core-transaction.c void fw_send_response(struct fw_card *card, card 821 drivers/firewire/core-transaction.c card->driver->send_response(card, &request->response); card 835 drivers/firewire/core-transaction.c static void handle_exclusive_region_request(struct fw_card *card, card 853 drivers/firewire/core-transaction.c handler->address_callback(card, request, card 861 drivers/firewire/core-transaction.c fw_send_response(card, request, RCODE_ADDRESS_ERROR); card 864 drivers/firewire/core-transaction.c static void handle_fcp_region_request(struct fw_card *card, card 875 drivers/firewire/core-transaction.c fw_send_response(card, request, RCODE_ADDRESS_ERROR); card 886 drivers/firewire/core-transaction.c fw_send_response(card, request, RCODE_TYPE_ERROR); card 894 drivers/firewire/core-transaction.c handler->address_callback(card, NULL, tcode, card 903 drivers/firewire/core-transaction.c fw_send_response(card, request, RCODE_COMPLETE); card 906 drivers/firewire/core-transaction.c void fw_core_handle_request(struct fw_card *card, struct fw_packet *p) card 915 drivers/firewire/core-transaction.c fw_cdev_handle_phy_packet(card, p); card 919 drivers/firewire/core-transaction.c request = allocate_request(card, p); card 929 drivers/firewire/core-transaction.c handle_exclusive_region_request(card, p, request, offset); card 931 drivers/firewire/core-transaction.c handle_fcp_region_request(card, p, request, offset); card 936 drivers/firewire/core-transaction.c void fw_core_handle_response(struct fw_card *card, struct fw_packet *p) card 949 drivers/firewire/core-transaction.c spin_lock_irqsave(&card->lock, flags); card 950 drivers/firewire/core-transaction.c list_for_each_entry(t, &card->transaction_list, link) { card 953 drivers/firewire/core-transaction.c spin_unlock_irqrestore(&card->lock, flags); card 957 drivers/firewire/core-transaction.c card->tlabel_mask &= ~(1ULL << t->tlabel); card 961 drivers/firewire/core-transaction.c spin_unlock_irqrestore(&card->lock, flags); card 963 drivers/firewire/core-transaction.c if (&t->link == &card->transaction_list) { card 965 drivers/firewire/core-transaction.c fw_notice(card, "unsolicited response (source %x, tlabel %x)\n", card 1003 drivers/firewire/core-transaction.c card->driver->cancel_packet(card, &t->packet); card 1005 drivers/firewire/core-transaction.c t->callback(card, rcode, data, data_length, t->callback_data); card 1039 drivers/firewire/core-transaction.c static void handle_topology_map(struct fw_card *card, struct fw_request *request, card 1047 drivers/firewire/core-transaction.c fw_send_response(card, request, RCODE_TYPE_ERROR); card 1052 drivers/firewire/core-transaction.c fw_send_response(card, request, RCODE_ADDRESS_ERROR); card 1057 drivers/firewire/core-transaction.c memcpy(payload, &card->topology_map[start], length); card 1059 drivers/firewire/core-transaction.c fw_send_response(card, request, RCODE_COMPLETE); card 1071 drivers/firewire/core-transaction.c static void update_split_timeout(struct fw_card *card) card 1075 drivers/firewire/core-transaction.c cycles = card->split_timeout_hi * 8000 + (card->split_timeout_lo >> 19); card 1080 drivers/firewire/core-transaction.c card->split_timeout_cycles = cycles; card 1081 drivers/firewire/core-transaction.c card->split_timeout_jiffies = DIV_ROUND_UP(cycles * HZ, 8000); card 1084 drivers/firewire/core-transaction.c static void handle_registers(struct fw_card *card, struct fw_request *request, card 1096 drivers/firewire/core-transaction.c if (!card->priority_budget_implemented) { card 1115 drivers/firewire/core-transaction.c *data = cpu_to_be32(card->driver->read_csr(card, reg)); card 1117 drivers/firewire/core-transaction.c card->driver->write_csr(card, reg, be32_to_cpu(*data)); card 1124 drivers/firewire/core-transaction.c card->driver->write_csr(card, CSR_STATE_CLEAR, card 1132 drivers/firewire/core-transaction.c *data = cpu_to_be32(card->split_timeout_hi); card 1134 drivers/firewire/core-transaction.c spin_lock_irqsave(&card->lock, flags); card 1135 drivers/firewire/core-transaction.c card->split_timeout_hi = be32_to_cpu(*data) & 7; card 1136 drivers/firewire/core-transaction.c update_split_timeout(card); card 1137 drivers/firewire/core-transaction.c spin_unlock_irqrestore(&card->lock, flags); card 1145 drivers/firewire/core-transaction.c *data = cpu_to_be32(card->split_timeout_lo); card 1147 drivers/firewire/core-transaction.c spin_lock_irqsave(&card->lock, flags); card 1148 drivers/firewire/core-transaction.c card->split_timeout_lo = card 1150 drivers/firewire/core-transaction.c update_split_timeout(card); card 1151 drivers/firewire/core-transaction.c spin_unlock_irqrestore(&card->lock, flags); card 1159 drivers/firewire/core-transaction.c *data = card->maint_utility_register; card 1161 drivers/firewire/core-transaction.c card->maint_utility_register = *data; card 1168 drivers/firewire/core-transaction.c *data = cpu_to_be32(card->broadcast_channel); card 1170 drivers/firewire/core-transaction.c card->broadcast_channel = card 1196 drivers/firewire/core-transaction.c fw_send_response(card, request, rcode); card 1204 drivers/firewire/core-transaction.c static void handle_low_memory(struct fw_card *card, struct fw_request *request, card 1213 drivers/firewire/core-transaction.c fw_send_response(card, request, RCODE_TYPE_ERROR); card 31 drivers/firewire/core.h void fw_err(const struct fw_card *card, const char *fmt, ...); card 33 drivers/firewire/core.h void fw_notice(const struct fw_card *card, const char *fmt, ...); card 60 drivers/firewire/core.h int (*enable)(struct fw_card *card, card 63 drivers/firewire/core.h int (*read_phy_reg)(struct fw_card *card, int address); card 64 drivers/firewire/core.h int (*update_phy_reg)(struct fw_card *card, int address, card 72 drivers/firewire/core.h int (*set_config_rom)(struct fw_card *card, card 75 drivers/firewire/core.h void (*send_request)(struct fw_card *card, struct fw_packet *packet); card 76 drivers/firewire/core.h void (*send_response)(struct fw_card *card, struct fw_packet *packet); card 78 drivers/firewire/core.h int (*cancel_packet)(struct fw_card *card, struct fw_packet *packet); card 88 drivers/firewire/core.h int (*enable_phys_dma)(struct fw_card *card, card 91 drivers/firewire/core.h u32 (*read_csr)(struct fw_card *card, int csr_offset); card 92 drivers/firewire/core.h void (*write_csr)(struct fw_card *card, int csr_offset, u32 value); card 95 drivers/firewire/core.h (*allocate_iso_context)(struct fw_card *card, card 116 drivers/firewire/core.h void fw_card_initialize(struct fw_card *card, card 118 drivers/firewire/core.h int fw_card_add(struct fw_card *card, card 120 drivers/firewire/core.h void fw_core_remove_card(struct fw_card *card); card 122 drivers/firewire/core.h void fw_schedule_bm_work(struct fw_card *card, unsigned long delay); card 130 drivers/firewire/core.h void fw_cdev_handle_phy_packet(struct fw_card *card, struct fw_packet *p); card 153 drivers/firewire/core.h void fw_node_event(struct fw_card *card, struct fw_node *node, int event); card 159 drivers/firewire/core.h int fw_iso_buffer_map_dma(struct fw_iso_buffer *buffer, struct fw_card *card, card 212 drivers/firewire/core.h void fw_core_handle_bus_reset(struct fw_card *card, int node_id, card 214 drivers/firewire/core.h void fw_destroy_nodes(struct fw_card *card); card 243 drivers/firewire/core.h void fw_core_handle_request(struct fw_card *card, struct fw_packet *request); card 244 drivers/firewire/core.h void fw_core_handle_response(struct fw_card *card, struct fw_packet *packet); card 251 drivers/firewire/core.h void fw_send_phy_config(struct fw_card *card, card 168 drivers/firewire/net.c struct fw_card *card; card 515 drivers/firewire/net.c guid = cpu_to_be64(dev->card->guid); card 713 drivers/firewire/net.c static void fwnet_receive_packet(struct fw_card *card, struct fw_request *r, card 738 drivers/firewire/net.c fw_send_response(card, r, rcode); card 792 drivers/firewire/net.c context->card->generation, true); card 933 drivers/firewire/net.c static void fwnet_write_complete(struct fw_card *card, int rcode, card 991 drivers/firewire/net.c generation = dev->card->generation; card 993 drivers/firewire/net.c node_id = dev->card->node_id; card 1011 drivers/firewire/net.c fw_send_request(dev->card, &ptask->transaction, card 1032 drivers/firewire/net.c fw_send_request(dev->card, &ptask->transaction, card 1093 drivers/firewire/net.c fw_iso_buffer_destroy(&dev->broadcast_rcv_buffer, dev->card); card 1126 drivers/firewire/net.c max_receive = 1U << (dev->card->max_receive + 1); card 1136 drivers/firewire/net.c context = fw_iso_context_create(dev->card, FW_ISO_CONTEXT_RECEIVE, card 1138 drivers/firewire/net.c dev->card->link_speed, 8, card 1145 drivers/firewire/net.c retval = fw_iso_buffer_init(&dev->broadcast_rcv_buffer, dev->card, card 1399 drivers/firewire/net.c static struct fwnet_device *fwnet_dev_find(struct fw_card *card) card 1404 drivers/firewire/net.c if (dev->card == card) card 1446 drivers/firewire/net.c struct fw_card *card = device->card; card 1455 drivers/firewire/net.c dev = fwnet_dev_find(card); card 1469 drivers/firewire/net.c SET_NETDEV_DEV(net, card->device); card 1480 drivers/firewire/net.c dev->card = card; card 1499 drivers/firewire/net.c put_unaligned_be64(card->guid, &ha->uc.uniq_id); card 1500 drivers/firewire/net.c ha->uc.max_rec = dev->card->max_receive; card 1501 drivers/firewire/net.c ha->uc.sspd = dev->card->link_speed; card 1513 drivers/firewire/net.c dev_name(card->device)); card 44 drivers/firewire/ohci.c #define ohci_info(ohci, f, args...) dev_info(ohci->card.device, f, ##args) card 45 drivers/firewire/ohci.c #define ohci_notice(ohci, f, args...) dev_notice(ohci->card.device, f, ##args) card 46 drivers/firewire/ohci.c #define ohci_err(ohci, f, args...) dev_err(ohci->card.device, f, ##args) card 179 drivers/firewire/ohci.c struct fw_card card; card 234 drivers/firewire/ohci.c static inline struct fw_ohci *fw_ohci(struct fw_card *card) card 236 drivers/firewire/ohci.c return container_of(card, struct fw_ohci, card); card 627 drivers/firewire/ohci.c static int ohci_read_phy_reg(struct fw_card *card, int addr) card 629 drivers/firewire/ohci.c struct fw_ohci *ohci = fw_ohci(card); card 639 drivers/firewire/ohci.c static int ohci_update_phy_reg(struct fw_card *card, int addr, card 642 drivers/firewire/ohci.c struct fw_ohci *ohci = fw_ohci(card); card 683 drivers/firewire/ohci.c dma_unmap_page(ctx->ohci->card.device, card 780 drivers/firewire/ohci.c dma_sync_single_for_cpu(ctx->ohci->card.device, card 786 drivers/firewire/ohci.c dma_sync_single_for_cpu(ctx->ohci->card.device, card 888 drivers/firewire/ohci.c fw_core_handle_request(&ohci->card, &p); card 890 drivers/firewire/ohci.c fw_core_handle_response(&ohci->card, &p); card 916 drivers/firewire/ohci.c dma_sync_single_for_device(ctx->ohci->card.device, card 986 drivers/firewire/ohci.c dma_addr = dma_map_page(ohci->card.device, ctx->pages[i], card 988 drivers/firewire/ohci.c if (dma_mapping_error(ohci->card.device, dma_addr)) { card 1112 drivers/firewire/ohci.c desc = dma_alloc_coherent(ctx->ohci->card.device, PAGE_SIZE, card 1169 drivers/firewire/ohci.c struct fw_card *card = &ctx->ohci->card; card 1173 drivers/firewire/ohci.c dma_free_coherent(card->device, PAGE_SIZE, desc, card 1370 drivers/firewire/ohci.c payload_bus = dma_map_single(ohci->card.device, card 1374 drivers/firewire/ohci.c if (dma_mapping_error(ohci->card.device, payload_bus)) { card 1402 drivers/firewire/ohci.c dma_unmap_single(ohci->card.device, payload_bus, card 1449 drivers/firewire/ohci.c dma_unmap_single(ohci->card.device, packet->payload_bus, card 1505 drivers/firewire/ohci.c packet->callback(packet, &ohci->card, packet->ack); card 1540 drivers/firewire/ohci.c fw_core_handle_response(&ohci->card, &response); card 1588 drivers/firewire/ohci.c fw_core_handle_response(&ohci->card, &response); card 1597 drivers/firewire/ohci.c packet->callback(packet, &ctx->ohci->card, packet->ack); card 1618 drivers/firewire/ohci.c fw_core_handle_request(&ctx->ohci->card, packet); card 1620 drivers/firewire/ohci.c fw_core_handle_response(&ctx->ohci->card, packet); card 1626 drivers/firewire/ohci.c packet->callback(packet, &ctx->ohci->card, packet->ack); card 1648 drivers/firewire/ohci.c packet->callback(packet, &ctx->ohci->card, packet->ack); card 1847 drivers/firewire/ohci.c reg = ohci_read_phy_reg(&ohci->card, 4); card 1852 drivers/firewire/ohci.c reg = ohci_read_phy_reg(&ohci->card, 1); card 2051 drivers/firewire/ohci.c dma_free_coherent(ohci->card.device, CONFIG_ROM_SIZE, card 2056 drivers/firewire/ohci.c fw_core_handle_bus_reset(&ohci->card, ohci->node_id, generation, card 2265 drivers/firewire/ohci.c static int ohci_enable(struct fw_card *card, card 2268 drivers/firewire/ohci.c struct fw_ohci *ohci = fw_ohci(card); card 2342 drivers/firewire/ohci.c card->broadcast_channel_auto_allocated = true; card 2349 drivers/firewire/ohci.c card->priority_budget_implemented = ohci->pri_req_max != 0; card 2360 drivers/firewire/ohci.c ret = ohci_update_phy_reg(card, 4, 0, PHY_LINK_ACTIVE | PHY_CONTENDER); card 2385 drivers/firewire/ohci.c dma_alloc_coherent(ohci->card.device, CONFIG_ROM_SIZE, card 2438 drivers/firewire/ohci.c fw_schedule_bus_reset(&ohci->card, false, true); card 2443 drivers/firewire/ohci.c static int ohci_set_config_rom(struct fw_card *card, card 2450 drivers/firewire/ohci.c ohci = fw_ohci(card); card 2480 drivers/firewire/ohci.c dma_alloc_coherent(ohci->card.device, CONFIG_ROM_SIZE, card 2515 drivers/firewire/ohci.c dma_free_coherent(ohci->card.device, CONFIG_ROM_SIZE, card 2526 drivers/firewire/ohci.c fw_schedule_bus_reset(&ohci->card, true, true); card 2531 drivers/firewire/ohci.c static void ohci_send_request(struct fw_card *card, struct fw_packet *packet) card 2533 drivers/firewire/ohci.c struct fw_ohci *ohci = fw_ohci(card); card 2538 drivers/firewire/ohci.c static void ohci_send_response(struct fw_card *card, struct fw_packet *packet) card 2540 drivers/firewire/ohci.c struct fw_ohci *ohci = fw_ohci(card); card 2545 drivers/firewire/ohci.c static int ohci_cancel_packet(struct fw_card *card, struct fw_packet *packet) card 2547 drivers/firewire/ohci.c struct fw_ohci *ohci = fw_ohci(card); card 2558 drivers/firewire/ohci.c dma_unmap_single(ohci->card.device, packet->payload_bus, card 2564 drivers/firewire/ohci.c packet->callback(packet, &ohci->card, packet->ack); card 2572 drivers/firewire/ohci.c static int ohci_enable_phys_dma(struct fw_card *card, card 2575 drivers/firewire/ohci.c struct fw_ohci *ohci = fw_ohci(card); card 2612 drivers/firewire/ohci.c static u32 ohci_read_csr(struct fw_card *card, int csr_offset) card 2614 drivers/firewire/ohci.c struct fw_ohci *ohci = fw_ohci(card); card 2663 drivers/firewire/ohci.c static void ohci_write_csr(struct fw_card *card, int csr_offset, u32 value) card 2665 drivers/firewire/ohci.c struct fw_ohci *ohci = fw_ohci(card); card 2780 drivers/firewire/ohci.c dma_sync_single_range_for_cpu(context->ohci->card.device, card 2819 drivers/firewire/ohci.c dma_sync_single_range_for_cpu(context->ohci->card.device, card 2836 drivers/firewire/ohci.c dma_sync_single_range_for_cpu(ctx->context.ohci->card.device, card 2874 drivers/firewire/ohci.c dma_sync_single_range_for_cpu(context->ohci->card.device, card 2932 drivers/firewire/ohci.c static struct fw_iso_context *ohci_allocate_iso_context(struct fw_card *card, card 2935 drivers/firewire/ohci.c struct fw_ohci *ohci = fw_ohci(card); card 3082 drivers/firewire/ohci.c struct fw_ohci *ohci = fw_ohci(base->card); card 3107 drivers/firewire/ohci.c struct fw_ohci *ohci = fw_ohci(base->card); card 3144 drivers/firewire/ohci.c struct fw_ohci *ohci = fw_ohci(base->card); card 3273 drivers/firewire/ohci.c dma_sync_single_range_for_device(ctx->context.ohci->card.device, card 3301 drivers/firewire/ohci.c struct device *device = ctx->context.ohci->card.device; card 3419 drivers/firewire/ohci.c dma_sync_single_range_for_device(ctx->context.ohci->card.device, card 3571 drivers/firewire/ohci.c fw_card_initialize(&ohci->card, &ohci_driver, &dev->dev); card 3629 drivers/firewire/ohci.c ohci->misc_buffer = dma_alloc_coherent(ohci->card.device, card 3704 drivers/firewire/ohci.c err = fw_card_add(&ohci->card, max_receive, link_speed, guid); card 3712 drivers/firewire/ohci.c version >> 16, version & 0xff, ohci->card.index, card 3734 drivers/firewire/ohci.c dma_free_coherent(ohci->card.device, PAGE_SIZE, card 3762 drivers/firewire/ohci.c fw_core_remove_card(&ohci->card); card 3773 drivers/firewire/ohci.c dma_free_coherent(ohci->card.device, CONFIG_ROM_SIZE, card 3776 drivers/firewire/ohci.c dma_free_coherent(ohci->card.device, CONFIG_ROM_SIZE, card 3780 drivers/firewire/ohci.c dma_free_coherent(ohci->card.device, PAGE_SIZE, card 3833 drivers/firewire/ohci.c reg_write(ohci, OHCI1394_GUIDLo, (u32)ohci->card.guid); card 3834 drivers/firewire/ohci.c reg_write(ohci, OHCI1394_GUIDHi, (u32)(ohci->card.guid >> 32)); card 3837 drivers/firewire/ohci.c err = ohci_enable(&ohci->card, NULL, 0); card 405 drivers/firewire/sbp2.c static void sbp2_status_write(struct fw_card *card, struct fw_request *request, card 417 drivers/firewire/sbp2.c fw_send_response(card, request, RCODE_TYPE_ERROR); card 430 drivers/firewire/sbp2.c fw_send_response(card, request, RCODE_COMPLETE); card 453 drivers/firewire/sbp2.c fw_send_response(card, request, RCODE_COMPLETE); card 456 drivers/firewire/sbp2.c static void complete_transaction(struct fw_card *card, int rcode, card 506 drivers/firewire/sbp2.c fw_send_request(device->card, &orb->t, TCODE_WRITE_BLOCK_REQUEST, card 525 drivers/firewire/sbp2.c if (fw_cancel_transaction(device->card, &orb->t) == 0) card 565 drivers/firewire/sbp2.c dma_map_single(device->card->device, &orb->response, card 567 drivers/firewire/sbp2.c if (dma_mapping_error(device->card->device, orb->response_bus)) card 599 drivers/firewire/sbp2.c dma_map_single(device->card->device, &orb->request, card 601 drivers/firewire/sbp2.c if (dma_mapping_error(device->card->device, orb->base.request_bus)) card 632 drivers/firewire/sbp2.c dma_unmap_single(device->card->device, orb->base.request_bus, card 635 drivers/firewire/sbp2.c dma_unmap_single(device->card->device, orb->response_bus, card 650 drivers/firewire/sbp2.c fw_run_transaction(device->card, TCODE_WRITE_QUADLET_REQUEST, card 656 drivers/firewire/sbp2.c static void complete_agent_reset_write_no_wait(struct fw_card *card, card 672 drivers/firewire/sbp2.c fw_send_request(device->card, t, TCODE_WRITE_QUADLET_REQUEST, card 698 drivers/firewire/sbp2.c struct fw_card *card = target_parent_device(tgt)->card; card 705 drivers/firewire/sbp2.c lu->generation != card->generation) { card 722 drivers/firewire/sbp2.c struct fw_card *card = target_parent_device(tgt)->card; card 728 drivers/firewire/sbp2.c if (lu->blocked && lu->generation == card->generation) { card 788 drivers/firewire/sbp2.c fw_run_transaction(device->card, TCODE_WRITE_QUADLET_REQUEST, card 812 drivers/firewire/sbp2.c local_node_id = device->card->node_id; card 878 drivers/firewire/sbp2.c if (generation != device->card->generation) { card 919 drivers/firewire/sbp2.c local_node_id = device->card->node_id; card 932 drivers/firewire/sbp2.c if (generation == device->card->generation || card 1151 drivers/firewire/sbp2.c device->card->device) < 0) card 1175 drivers/firewire/sbp2.c device->card->max_receive - 1); card 1373 drivers/firewire/sbp2.c dma_unmap_single(device->card->device, orb->base.request_bus, card 1375 drivers/firewire/sbp2.c sbp2_unmap_scatterlist(device->card->device, orb); card 1414 drivers/firewire/sbp2.c dma_map_single(device->card->device, orb->page_table, card 1416 drivers/firewire/sbp2.c if (dma_mapping_error(device->card->device, orb->page_table_bus)) card 1476 drivers/firewire/sbp2.c dma_map_single(device->card->device, &orb->request, card 1478 drivers/firewire/sbp2.c if (dma_mapping_error(device->card->device, orb->base.request_bus)) { card 1479 drivers/firewire/sbp2.c sbp2_unmap_scatterlist(device->card->device, orb); card 228 drivers/firmware/efi/cper.c n += scnprintf(msg + n, len - n, "card: %d ", mem->card); card 285 drivers/firmware/efi/cper.c cmem->card = mem->card; card 115 drivers/gpu/drm/amd/amdgpu/atom.c temp = ctx->card->ioreg_read(ctx->card, CU16(base + 1)); card 119 drivers/gpu/drm/amd/amdgpu/atom.c ctx->card->ioreg_write(ctx->card, CU16(base + 1), temp); card 192 drivers/gpu/drm/amd/amdgpu/atom.c val = gctx->card->reg_read(gctx->card, idx); card 317 drivers/gpu/drm/amd/amdgpu/atom.c val = gctx->card->pll_read(gctx->card, idx); card 324 drivers/gpu/drm/amd/amdgpu/atom.c val = gctx->card->mc_read(gctx->card, idx); card 465 drivers/gpu/drm/amd/amdgpu/atom.c gctx->card->reg_write(gctx->card, idx, card 468 drivers/gpu/drm/amd/amdgpu/atom.c gctx->card->reg_write(gctx->card, idx, val); card 543 drivers/gpu/drm/amd/amdgpu/atom.c gctx->card->pll_write(gctx->card, idx, val); card 549 drivers/gpu/drm/amd/amdgpu/atom.c gctx->card->mc_write(gctx->card, idx, val); card 1299 drivers/gpu/drm/amd/amdgpu/atom.c struct atom_context *amdgpu_atom_parse(struct card_info *card, void *bios) card 1310 drivers/gpu/drm/amd/amdgpu/atom.c ctx->card = card; card 128 drivers/gpu/drm/amd/amdgpu/atom.h struct card_info *card; card 117 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c struct snd_card *card; card 522 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c struct snd_card *card; card 537 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c THIS_MODULE, sizeof(struct snd_dw_hdmi), &card); card 541 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c strlcpy(card->driver, DRIVER_NAME, sizeof(card->driver)); card 542 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c strlcpy(card->shortname, "DW-HDMI", sizeof(card->shortname)); card 543 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c snprintf(card->longname, sizeof(card->longname), card 544 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c "%s rev 0x%02x, irq %d", card->shortname, revision, card 547 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c dw = card->private_data; card 548 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c dw->card = card; card 554 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c ret = snd_pcm_new(card, "DW HDMI", 0, 1, 0, &pcm); card 570 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c ret = snd_card_register(card); card 579 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c snd_card_free(card); card 587 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c snd_card_free(dw->card); card 601 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c snd_power_change_state(dw->card, SNDRV_CTL_POWER_D3cold); card 610 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c snd_power_change_state(dw->card, SNDRV_CTL_POWER_D0); card 110 drivers/gpu/drm/radeon/atom.c struct radeon_device *rdev = ctx->card->dev->dev_private; card 119 drivers/gpu/drm/radeon/atom.c temp = ctx->card->ioreg_read(ctx->card, CU16(base + 1)); card 124 drivers/gpu/drm/radeon/atom.c (void)ctx->card->ioreg_read(ctx->card, CU16(base + 1)); card 125 drivers/gpu/drm/radeon/atom.c ctx->card->ioreg_write(ctx->card, CU16(base + 1), temp); card 198 drivers/gpu/drm/radeon/atom.c val = gctx->card->reg_read(gctx->card, idx); card 323 drivers/gpu/drm/radeon/atom.c val = gctx->card->pll_read(gctx->card, idx); card 330 drivers/gpu/drm/radeon/atom.c val = gctx->card->mc_read(gctx->card, idx); card 471 drivers/gpu/drm/radeon/atom.c gctx->card->reg_write(gctx->card, idx, card 474 drivers/gpu/drm/radeon/atom.c gctx->card->reg_write(gctx->card, idx, val); card 549 drivers/gpu/drm/radeon/atom.c gctx->card->pll_write(gctx->card, idx, val); card 555 drivers/gpu/drm/radeon/atom.c gctx->card->mc_write(gctx->card, idx, val); card 1265 drivers/gpu/drm/radeon/atom.c struct atom_context *atom_parse(struct card_info *card, void *bios) card 1277 drivers/gpu/drm/radeon/atom.c ctx->card = card; card 1328 drivers/gpu/drm/radeon/atom.c struct radeon_device *rdev = ctx->card->dev->dev_private; card 125 drivers/gpu/drm/radeon/atom.h struct card_info *card; card 59 drivers/gpu/drm/vc4/vc4_hdmi.c struct snd_soc_card card; card 763 drivers/gpu/drm/vc4/vc4_hdmi.c struct snd_soc_card *card = snd_soc_dai_get_drvdata(dai); card 765 drivers/gpu/drm/vc4/vc4_hdmi.c return snd_soc_card_get_drvdata(card); card 945 drivers/gpu/drm/vc4/vc4_hdmi.c struct snd_soc_card *card = snd_soc_component_get_drvdata(component); card 947 drivers/gpu/drm/vc4/vc4_hdmi.c return snd_soc_card_get_drvdata(card); card 1065 drivers/gpu/drm/vc4/vc4_hdmi.c struct snd_soc_card *card = &hdmi->audio.card; card 1124 drivers/gpu/drm/vc4/vc4_hdmi.c card->dai_link = dai_link; card 1125 drivers/gpu/drm/vc4/vc4_hdmi.c card->num_links = 1; card 1126 drivers/gpu/drm/vc4/vc4_hdmi.c card->name = "vc4-hdmi"; card 1127 drivers/gpu/drm/vc4/vc4_hdmi.c card->dev = dev; card 1136 drivers/gpu/drm/vc4/vc4_hdmi.c snd_soc_card_set_drvdata(card, hdmi); card 1137 drivers/gpu/drm/vc4/vc4_hdmi.c ret = devm_snd_soc_register_card(dev, card); card 66 drivers/hid/hid-prodikeys.c struct snd_card *card; card 604 drivers/hid/hid-prodikeys.c struct snd_card *card; card 626 drivers/hid/hid-prodikeys.c THIS_MODULE, 0, &card); card 632 drivers/hid/hid-prodikeys.c pm->card = card; card 635 drivers/hid/hid-prodikeys.c err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, pm, &ops); card 642 drivers/hid/hid-prodikeys.c strncpy(card->driver, shortname, sizeof(card->driver)); card 643 drivers/hid/hid-prodikeys.c strncpy(card->shortname, shortname, sizeof(card->shortname)); card 644 drivers/hid/hid-prodikeys.c strncpy(card->longname, longname, sizeof(card->longname)); card 647 drivers/hid/hid-prodikeys.c err = snd_rawmidi_new(card, card->shortname, 0, card 655 drivers/hid/hid-prodikeys.c strncpy(rwmidi->name, card->shortname, sizeof(rwmidi->name)); card 697 drivers/hid/hid-prodikeys.c err = snd_card_register(card); card 715 drivers/hid/hid-prodikeys.c if (pm->card) { card 716 drivers/hid/hid-prodikeys.c snd_card_free(pm->card); card 717 drivers/hid/hid-prodikeys.c pm->card = NULL; card 724 drivers/hid/hid-prodikeys.c if (pm->card) { card 734 drivers/hid/hid-prodikeys.c snd_card_disconnect(pm->card); card 735 drivers/hid/hid-prodikeys.c snd_card_free_when_closed(pm->card); card 375 drivers/input/rmi4/rmi_f54.c strlcpy(cap->card, SYNAPTICS_INPUT_DEVICE_NAME, sizeof(cap->card)); card 2409 drivers/input/touchscreen/atmel_mxt_ts.c strlcpy(cap->card, "atmel_mxt_ts touch", sizeof(cap->card)); card 930 drivers/input/touchscreen/sur40.c strlcpy(cap->card, DRIVER_LONG, sizeof(cap->card)); card 138 drivers/isdn/hardware/mISDN/avmfritz.c _set_debug(struct fritzcard *card) card 140 drivers/isdn/hardware/mISDN/avmfritz.c card->isac.dch.debug = debug; card 141 drivers/isdn/hardware/mISDN/avmfritz.c card->bch[0].debug = debug; card 142 drivers/isdn/hardware/mISDN/avmfritz.c card->bch[1].debug = debug; card 149 drivers/isdn/hardware/mISDN/avmfritz.c struct fritzcard *card; card 154 drivers/isdn/hardware/mISDN/avmfritz.c list_for_each_entry(card, &Cards, list) card 155 drivers/isdn/hardware/mISDN/avmfritz.c _set_debug(card); card 1000 drivers/isdn/hardware/mISDN/avmfritz.c release_card(struct fritzcard *card) card 1004 drivers/isdn/hardware/mISDN/avmfritz.c disable_hwirq(card); card 1005 drivers/isdn/hardware/mISDN/avmfritz.c spin_lock_irqsave(&card->lock, flags); card 1006 drivers/isdn/hardware/mISDN/avmfritz.c modehdlc(&card->bch[0], ISDN_P_NONE); card 1007 drivers/isdn/hardware/mISDN/avmfritz.c modehdlc(&card->bch[1], ISDN_P_NONE); card 1008 drivers/isdn/hardware/mISDN/avmfritz.c spin_unlock_irqrestore(&card->lock, flags); card 1009 drivers/isdn/hardware/mISDN/avmfritz.c card->isac.release(&card->isac); card 1010 drivers/isdn/hardware/mISDN/avmfritz.c free_irq(card->irq, card); card 1011 drivers/isdn/hardware/mISDN/avmfritz.c mISDN_freebchannel(&card->bch[1]); card 1012 drivers/isdn/hardware/mISDN/avmfritz.c mISDN_freebchannel(&card->bch[0]); card 1013 drivers/isdn/hardware/mISDN/avmfritz.c mISDN_unregister_device(&card->isac.dch.dev); card 1014 drivers/isdn/hardware/mISDN/avmfritz.c release_region(card->addr, 32); card 1015 drivers/isdn/hardware/mISDN/avmfritz.c pci_disable_device(card->pdev); card 1016 drivers/isdn/hardware/mISDN/avmfritz.c pci_set_drvdata(card->pdev, NULL); card 1018 drivers/isdn/hardware/mISDN/avmfritz.c list_del(&card->list); card 1020 drivers/isdn/hardware/mISDN/avmfritz.c kfree(card); card 1025 drivers/isdn/hardware/mISDN/avmfritz.c setup_instance(struct fritzcard *card) card 1031 drivers/isdn/hardware/mISDN/avmfritz.c snprintf(card->name, MISDN_MAX_IDLEN - 1, "AVM.%d", AVM_cnt + 1); card 1033 drivers/isdn/hardware/mISDN/avmfritz.c list_add_tail(&card->list, &Cards); card 1036 drivers/isdn/hardware/mISDN/avmfritz.c _set_debug(card); card 1037 drivers/isdn/hardware/mISDN/avmfritz.c card->isac.name = card->name; card 1038 drivers/isdn/hardware/mISDN/avmfritz.c spin_lock_init(&card->lock); card 1039 drivers/isdn/hardware/mISDN/avmfritz.c card->isac.hwlock = &card->lock; card 1040 drivers/isdn/hardware/mISDN/avmfritz.c mISDNisac_init(&card->isac, card); card 1042 drivers/isdn/hardware/mISDN/avmfritz.c card->isac.dch.dev.Bprotocols = (1 << (ISDN_P_B_RAW & ISDN_P_B_MASK)) | card 1044 drivers/isdn/hardware/mISDN/avmfritz.c card->isac.dch.dev.D.ctrl = avm_dctrl; card 1046 drivers/isdn/hardware/mISDN/avmfritz.c card->bch[i].nr = i + 1; card 1047 drivers/isdn/hardware/mISDN/avmfritz.c set_channelmap(i + 1, card->isac.dch.dev.channelmap); card 1048 drivers/isdn/hardware/mISDN/avmfritz.c if (AVM_FRITZ_PCIV2 == card->type) card 1052 drivers/isdn/hardware/mISDN/avmfritz.c mISDN_initbchannel(&card->bch[i], MAX_DATA_MEM, minsize); card 1053 drivers/isdn/hardware/mISDN/avmfritz.c card->bch[i].hw = card; card 1054 drivers/isdn/hardware/mISDN/avmfritz.c card->bch[i].ch.send = avm_l2l1B; card 1055 drivers/isdn/hardware/mISDN/avmfritz.c card->bch[i].ch.ctrl = avm_bctrl; card 1056 drivers/isdn/hardware/mISDN/avmfritz.c card->bch[i].ch.nr = i + 1; card 1057 drivers/isdn/hardware/mISDN/avmfritz.c list_add(&card->bch[i].ch.list, &card->isac.dch.dev.bchannels); card 1059 drivers/isdn/hardware/mISDN/avmfritz.c err = setup_fritz(card); card 1062 drivers/isdn/hardware/mISDN/avmfritz.c err = mISDN_register_device(&card->isac.dch.dev, &card->pdev->dev, card 1063 drivers/isdn/hardware/mISDN/avmfritz.c card->name); card 1066 drivers/isdn/hardware/mISDN/avmfritz.c err = init_card(card); card 1072 drivers/isdn/hardware/mISDN/avmfritz.c mISDN_unregister_device(&card->isac.dch.dev); card 1074 drivers/isdn/hardware/mISDN/avmfritz.c release_region(card->addr, 32); card 1076 drivers/isdn/hardware/mISDN/avmfritz.c card->isac.release(&card->isac); card 1077 drivers/isdn/hardware/mISDN/avmfritz.c mISDN_freebchannel(&card->bch[1]); card 1078 drivers/isdn/hardware/mISDN/avmfritz.c mISDN_freebchannel(&card->bch[0]); card 1080 drivers/isdn/hardware/mISDN/avmfritz.c list_del(&card->list); card 1082 drivers/isdn/hardware/mISDN/avmfritz.c kfree(card); card 1090 drivers/isdn/hardware/mISDN/avmfritz.c struct fritzcard *card; card 1092 drivers/isdn/hardware/mISDN/avmfritz.c card = kzalloc(sizeof(struct fritzcard), GFP_KERNEL); card 1093 drivers/isdn/hardware/mISDN/avmfritz.c if (!card) { card 1098 drivers/isdn/hardware/mISDN/avmfritz.c card->type = AVM_FRITZ_PCIV2; card 1100 drivers/isdn/hardware/mISDN/avmfritz.c card->type = AVM_FRITZ_PCI; card 1101 drivers/isdn/hardware/mISDN/avmfritz.c card->pdev = pdev; card 1104 drivers/isdn/hardware/mISDN/avmfritz.c kfree(card); card 1111 drivers/isdn/hardware/mISDN/avmfritz.c card->addr = pci_resource_start(pdev, 1); card 1112 drivers/isdn/hardware/mISDN/avmfritz.c card->irq = pdev->irq; card 1113 drivers/isdn/hardware/mISDN/avmfritz.c pci_set_drvdata(pdev, card); card 1114 drivers/isdn/hardware/mISDN/avmfritz.c err = setup_instance(card); card 1123 drivers/isdn/hardware/mISDN/avmfritz.c struct fritzcard *card = pci_get_drvdata(pdev); card 1125 drivers/isdn/hardware/mISDN/avmfritz.c if (card) card 1126 drivers/isdn/hardware/mISDN/avmfritz.c release_card(card); card 5261 drivers/isdn/hardware/mISDN/hfcmulti.c struct hfc_multi *card = pci_get_drvdata(pdev); card 5270 drivers/isdn/hardware/mISDN/hfcmulti.c if (card) { card 5272 drivers/isdn/hardware/mISDN/hfcmulti.c release_card(card); card 5464 drivers/isdn/hardware/mISDN/hfcmulti.c struct hfc_multi *card, *next; card 5467 drivers/isdn/hardware/mISDN/hfcmulti.c list_for_each_entry_safe(card, next, &HFClist, list) card 5468 drivers/isdn/hardware/mISDN/hfcmulti.c release_card(card); card 2074 drivers/isdn/hardware/mISDN/hfcpci.c setup_card(struct hfc_pci *card) card 2080 drivers/isdn/hardware/mISDN/hfcpci.c card->dch.debug = debug; card 2081 drivers/isdn/hardware/mISDN/hfcpci.c spin_lock_init(&card->lock); card 2082 drivers/isdn/hardware/mISDN/hfcpci.c mISDN_initdchannel(&card->dch, MAX_DFRAME_LEN_L1, ph_state); card 2083 drivers/isdn/hardware/mISDN/hfcpci.c card->dch.hw = card; card 2084 drivers/isdn/hardware/mISDN/hfcpci.c card->dch.dev.Dprotocols = (1 << ISDN_P_TE_S0) | (1 << ISDN_P_NT_S0); card 2085 drivers/isdn/hardware/mISDN/hfcpci.c card->dch.dev.Bprotocols = (1 << (ISDN_P_B_RAW & ISDN_P_B_MASK)) | card 2087 drivers/isdn/hardware/mISDN/hfcpci.c card->dch.dev.D.send = hfcpci_l2l1D; card 2088 drivers/isdn/hardware/mISDN/hfcpci.c card->dch.dev.D.ctrl = hfc_dctrl; card 2089 drivers/isdn/hardware/mISDN/hfcpci.c card->dch.dev.nrbchan = 2; card 2091 drivers/isdn/hardware/mISDN/hfcpci.c card->bch[i].nr = i + 1; card 2092 drivers/isdn/hardware/mISDN/hfcpci.c set_channelmap(i + 1, card->dch.dev.channelmap); card 2093 drivers/isdn/hardware/mISDN/hfcpci.c card->bch[i].debug = debug; card 2094 drivers/isdn/hardware/mISDN/hfcpci.c mISDN_initbchannel(&card->bch[i], MAX_DATA_MEM, poll >> 1); card 2095 drivers/isdn/hardware/mISDN/hfcpci.c card->bch[i].hw = card; card 2096 drivers/isdn/hardware/mISDN/hfcpci.c card->bch[i].ch.send = hfcpci_l2l1B; card 2097 drivers/isdn/hardware/mISDN/hfcpci.c card->bch[i].ch.ctrl = hfc_bctrl; card 2098 drivers/isdn/hardware/mISDN/hfcpci.c card->bch[i].ch.nr = i + 1; card 2099 drivers/isdn/hardware/mISDN/hfcpci.c list_add(&card->bch[i].ch.list, &card->dch.dev.bchannels); card 2101 drivers/isdn/hardware/mISDN/hfcpci.c err = setup_hw(card); card 2105 drivers/isdn/hardware/mISDN/hfcpci.c err = mISDN_register_device(&card->dch.dev, &card->pdev->dev, name); card 2112 drivers/isdn/hardware/mISDN/hfcpci.c mISDN_freebchannel(&card->bch[1]); card 2113 drivers/isdn/hardware/mISDN/hfcpci.c mISDN_freebchannel(&card->bch[0]); card 2114 drivers/isdn/hardware/mISDN/hfcpci.c mISDN_freedchannel(&card->dch); card 2115 drivers/isdn/hardware/mISDN/hfcpci.c kfree(card); card 2213 drivers/isdn/hardware/mISDN/hfcpci.c struct hfc_pci *card; card 2216 drivers/isdn/hardware/mISDN/hfcpci.c card = kzalloc(sizeof(struct hfc_pci), GFP_KERNEL); card 2217 drivers/isdn/hardware/mISDN/hfcpci.c if (!card) { card 2221 drivers/isdn/hardware/mISDN/hfcpci.c card->pdev = pdev; card 2222 drivers/isdn/hardware/mISDN/hfcpci.c card->subtype = m->subtype; card 2225 drivers/isdn/hardware/mISDN/hfcpci.c kfree(card); card 2232 drivers/isdn/hardware/mISDN/hfcpci.c card->irq = pdev->irq; card 2233 drivers/isdn/hardware/mISDN/hfcpci.c pci_set_drvdata(pdev, card); card 2234 drivers/isdn/hardware/mISDN/hfcpci.c err = setup_card(card); card 2243 drivers/isdn/hardware/mISDN/hfcpci.c struct hfc_pci *card = pci_get_drvdata(pdev); card 2245 drivers/isdn/hardware/mISDN/hfcpci.c if (card) card 2246 drivers/isdn/hardware/mISDN/hfcpci.c release_card(card); card 224 drivers/isdn/hardware/mISDN/mISDNinfineon.c _set_debug(struct inf_hw *card) card 226 drivers/isdn/hardware/mISDN/mISDNinfineon.c card->ipac.isac.dch.debug = debug; card 227 drivers/isdn/hardware/mISDN/mISDNinfineon.c card->ipac.hscx[0].bch.debug = debug; card 228 drivers/isdn/hardware/mISDN/mISDNinfineon.c card->ipac.hscx[1].bch.debug = debug; card 235 drivers/isdn/hardware/mISDN/mISDNinfineon.c struct inf_hw *card; card 240 drivers/isdn/hardware/mISDN/mISDNinfineon.c list_for_each_entry(card, &Cards, list) card 241 drivers/isdn/hardware/mISDN/mISDNinfineon.c _set_debug(card); card 853 drivers/isdn/hardware/mISDN/mISDNinfineon.c release_card(struct inf_hw *card) { card 857 drivers/isdn/hardware/mISDN/mISDNinfineon.c spin_lock_irqsave(&card->lock, flags); card 858 drivers/isdn/hardware/mISDN/mISDNinfineon.c disable_hwirq(card); card 859 drivers/isdn/hardware/mISDN/mISDNinfineon.c spin_unlock_irqrestore(&card->lock, flags); card 860 drivers/isdn/hardware/mISDN/mISDNinfineon.c card->ipac.isac.release(&card->ipac.isac); card 861 drivers/isdn/hardware/mISDN/mISDNinfineon.c free_irq(card->irq, card); card 862 drivers/isdn/hardware/mISDN/mISDNinfineon.c mISDN_unregister_device(&card->ipac.isac.dch.dev); card 863 drivers/isdn/hardware/mISDN/mISDNinfineon.c release_io(card); card 865 drivers/isdn/hardware/mISDN/mISDNinfineon.c list_del(&card->list); card 867 drivers/isdn/hardware/mISDN/mISDNinfineon.c switch (card->ci->typ) { card 874 drivers/isdn/hardware/mISDN/mISDNinfineon.c if (card->sc[i]) card 875 drivers/isdn/hardware/mISDN/mISDNinfineon.c release_card(card->sc[i]); card 876 drivers/isdn/hardware/mISDN/mISDNinfineon.c card->sc[i] = NULL; card 880 drivers/isdn/hardware/mISDN/mISDNinfineon.c pci_disable_device(card->pdev); card 881 drivers/isdn/hardware/mISDN/mISDNinfineon.c pci_set_drvdata(card->pdev, NULL); card 884 drivers/isdn/hardware/mISDN/mISDNinfineon.c kfree(card); card 889 drivers/isdn/hardware/mISDN/mISDNinfineon.c setup_instance(struct inf_hw *card) card 894 drivers/isdn/hardware/mISDN/mISDNinfineon.c snprintf(card->name, MISDN_MAX_IDLEN - 1, "%s.%d", card->ci->name, card 897 drivers/isdn/hardware/mISDN/mISDNinfineon.c list_add_tail(&card->list, &Cards); card 900 drivers/isdn/hardware/mISDN/mISDNinfineon.c _set_debug(card); card 901 drivers/isdn/hardware/mISDN/mISDNinfineon.c card->ipac.isac.name = card->name; card 902 drivers/isdn/hardware/mISDN/mISDNinfineon.c card->ipac.name = card->name; card 903 drivers/isdn/hardware/mISDN/mISDNinfineon.c card->ipac.owner = THIS_MODULE; card 904 drivers/isdn/hardware/mISDN/mISDNinfineon.c spin_lock_init(&card->lock); card 905 drivers/isdn/hardware/mISDN/mISDNinfineon.c card->ipac.isac.hwlock = &card->lock; card 906 drivers/isdn/hardware/mISDN/mISDNinfineon.c card->ipac.hwlock = &card->lock; card 907 drivers/isdn/hardware/mISDN/mISDNinfineon.c card->ipac.ctrl = (void *)&inf_ctrl; card 909 drivers/isdn/hardware/mISDN/mISDNinfineon.c err = setup_io(card); card 913 drivers/isdn/hardware/mISDN/mISDNinfineon.c card->ipac.isac.dch.dev.Bprotocols = card 914 drivers/isdn/hardware/mISDN/mISDNinfineon.c mISDNipac_init(&card->ipac, card); card 916 drivers/isdn/hardware/mISDN/mISDNinfineon.c if (card->ipac.isac.dch.dev.Bprotocols == 0) card 919 drivers/isdn/hardware/mISDN/mISDNinfineon.c err = mISDN_register_device(&card->ipac.isac.dch.dev, card 920 drivers/isdn/hardware/mISDN/mISDNinfineon.c &card->pdev->dev, card->name); card 924 drivers/isdn/hardware/mISDN/mISDNinfineon.c err = init_irq(card); card 930 drivers/isdn/hardware/mISDN/mISDNinfineon.c mISDN_unregister_device(&card->ipac.isac.dch.dev); card 932 drivers/isdn/hardware/mISDN/mISDNinfineon.c card->ipac.release(&card->ipac); card 934 drivers/isdn/hardware/mISDN/mISDNinfineon.c release_io(card); card 936 drivers/isdn/hardware/mISDN/mISDNinfineon.c list_del(&card->list); card 1069 drivers/isdn/hardware/mISDN/mISDNinfineon.c struct inf_hw *card; card 1071 drivers/isdn/hardware/mISDN/mISDNinfineon.c card = kzalloc(sizeof(struct inf_hw), GFP_KERNEL); card 1072 drivers/isdn/hardware/mISDN/mISDNinfineon.c if (!card) { card 1076 drivers/isdn/hardware/mISDN/mISDNinfineon.c card->pdev = pdev; card 1079 drivers/isdn/hardware/mISDN/mISDNinfineon.c kfree(card); card 1082 drivers/isdn/hardware/mISDN/mISDNinfineon.c card->ci = get_card_info(ent->driver_data); card 1083 drivers/isdn/hardware/mISDN/mISDNinfineon.c if (!card->ci) { card 1086 drivers/isdn/hardware/mISDN/mISDNinfineon.c kfree(card); card 1091 drivers/isdn/hardware/mISDN/mISDNinfineon.c card->ci->full, pci_name(pdev)); card 1093 drivers/isdn/hardware/mISDN/mISDNinfineon.c card->irq = pdev->irq; card 1094 drivers/isdn/hardware/mISDN/mISDNinfineon.c pci_set_drvdata(pdev, card); card 1095 drivers/isdn/hardware/mISDN/mISDNinfineon.c err = setup_instance(card); card 1098 drivers/isdn/hardware/mISDN/mISDNinfineon.c kfree(card); card 1107 drivers/isdn/hardware/mISDN/mISDNinfineon.c release_card(card); card 1111 drivers/isdn/hardware/mISDN/mISDNinfineon.c sc->irq = card->irq; card 1112 drivers/isdn/hardware/mISDN/mISDNinfineon.c sc->pdev = card->pdev; card 1113 drivers/isdn/hardware/mISDN/mISDNinfineon.c sc->ci = card->ci + i; card 1118 drivers/isdn/hardware/mISDN/mISDNinfineon.c release_card(card); card 1121 drivers/isdn/hardware/mISDN/mISDNinfineon.c card->sc[i - 1] = sc; card 1130 drivers/isdn/hardware/mISDN/mISDNinfineon.c struct inf_hw *card = pci_get_drvdata(pdev); card 1132 drivers/isdn/hardware/mISDN/mISDNinfineon.c if (card) card 1133 drivers/isdn/hardware/mISDN/mISDNinfineon.c release_card(card); card 93 drivers/isdn/hardware/mISDN/netjet.c _set_debug(struct tiger_hw *card) card 95 drivers/isdn/hardware/mISDN/netjet.c card->isac.dch.debug = debug; card 96 drivers/isdn/hardware/mISDN/netjet.c card->bc[0].bch.debug = debug; card 97 drivers/isdn/hardware/mISDN/netjet.c card->bc[1].bch.debug = debug; card 104 drivers/isdn/hardware/mISDN/netjet.c struct tiger_hw *card; card 109 drivers/isdn/hardware/mISDN/netjet.c list_for_each_entry(card, &Cards, list) card 110 drivers/isdn/hardware/mISDN/netjet.c _set_debug(card); card 123 drivers/isdn/hardware/mISDN/netjet.c nj_disable_hwirq(struct tiger_hw *card) card 125 drivers/isdn/hardware/mISDN/netjet.c outb(0, card->base + NJ_IRQMASK0); card 126 drivers/isdn/hardware/mISDN/netjet.c outb(0, card->base + NJ_IRQMASK1); card 133 drivers/isdn/hardware/mISDN/netjet.c struct tiger_hw *card = p; card 136 drivers/isdn/hardware/mISDN/netjet.c card->auxd &= 0xfc; card 137 drivers/isdn/hardware/mISDN/netjet.c card->auxd |= (offset >> 4) & 3; card 138 drivers/isdn/hardware/mISDN/netjet.c outb(card->auxd, card->base + NJ_AUXDATA); card 139 drivers/isdn/hardware/mISDN/netjet.c ret = inb(card->base + NJ_ISAC_OFF + ((offset & 0x0f) << 2)); card 146 drivers/isdn/hardware/mISDN/netjet.c struct tiger_hw *card = p; card 148 drivers/isdn/hardware/mISDN/netjet.c card->auxd &= 0xfc; card 149 drivers/isdn/hardware/mISDN/netjet.c card->auxd |= (offset >> 4) & 3; card 150 drivers/isdn/hardware/mISDN/netjet.c outb(card->auxd, card->base + NJ_AUXDATA); card 151 drivers/isdn/hardware/mISDN/netjet.c outb(value, card->base + NJ_ISAC_OFF + ((offset & 0x0f) << 2)); card 157 drivers/isdn/hardware/mISDN/netjet.c struct tiger_hw *card = p; card 159 drivers/isdn/hardware/mISDN/netjet.c card->auxd &= 0xfc; card 160 drivers/isdn/hardware/mISDN/netjet.c outb(card->auxd, card->base + NJ_AUXDATA); card 161 drivers/isdn/hardware/mISDN/netjet.c insb(card->base + NJ_ISAC_OFF, data, size); card 167 drivers/isdn/hardware/mISDN/netjet.c struct tiger_hw *card = p; card 169 drivers/isdn/hardware/mISDN/netjet.c card->auxd &= 0xfc; card 170 drivers/isdn/hardware/mISDN/netjet.c outb(card->auxd, card->base + NJ_AUXDATA); card 171 drivers/isdn/hardware/mISDN/netjet.c outsb(card->base + NJ_ISAC_OFF, data, size); card 177 drivers/isdn/hardware/mISDN/netjet.c struct tiger_hw *card = bc->bch.hw; card 180 drivers/isdn/hardware/mISDN/netjet.c pr_debug("%s: B%1d fill %02x len %d idx %d/%d\n", card->name, card 181 drivers/isdn/hardware/mISDN/netjet.c bc->bch.nr, fill, cnt, idx, card->send.idx); card 188 drivers/isdn/hardware/mISDN/netjet.c val = card->send.start[idx]; card 191 drivers/isdn/hardware/mISDN/netjet.c card->send.start[idx++] = val; card 192 drivers/isdn/hardware/mISDN/netjet.c if (idx >= card->send.size) card 200 drivers/isdn/hardware/mISDN/netjet.c struct tiger_hw *card = bc->bch.hw; card 202 drivers/isdn/hardware/mISDN/netjet.c pr_debug("%s: B%1d protocol %x-->%x\n", card->name, card 208 drivers/isdn/hardware/mISDN/netjet.c fill_mem(bc, 0, card->send.size, 0xff); card 211 drivers/isdn/hardware/mISDN/netjet.c if ((card->bc[0].bch.state == ISDN_P_NONE) && card 212 drivers/isdn/hardware/mISDN/netjet.c (card->bc[1].bch.state == ISDN_P_NONE)) { card 213 drivers/isdn/hardware/mISDN/netjet.c card->dmactrl = 0; card 214 drivers/isdn/hardware/mISDN/netjet.c outb(card->dmactrl, card->base + NJ_DMACTRL); card 215 drivers/isdn/hardware/mISDN/netjet.c outb(0, card->base + NJ_IRQMASK0); card 227 drivers/isdn/hardware/mISDN/netjet.c bc->free = card->send.size / 2; card 231 drivers/isdn/hardware/mISDN/netjet.c if (!card->dmactrl) { card 232 drivers/isdn/hardware/mISDN/netjet.c card->dmactrl = 1; card 233 drivers/isdn/hardware/mISDN/netjet.c outb(card->dmactrl, card->base + NJ_DMACTRL); card 234 drivers/isdn/hardware/mISDN/netjet.c outb(0x0f, card->base + NJ_IRQMASK0); card 241 drivers/isdn/hardware/mISDN/netjet.c bc->free = card->send.size / 2; card 247 drivers/isdn/hardware/mISDN/netjet.c if (!card->dmactrl) { card 248 drivers/isdn/hardware/mISDN/netjet.c card->dmactrl = 1; card 249 drivers/isdn/hardware/mISDN/netjet.c outb(card->dmactrl, card->base + NJ_DMACTRL); card 250 drivers/isdn/hardware/mISDN/netjet.c outb(0x0f, card->base + NJ_IRQMASK0); card 254 drivers/isdn/hardware/mISDN/netjet.c pr_info("%s: %s protocol %x not handled\n", card->name, card 258 drivers/isdn/hardware/mISDN/netjet.c card->send.dmacur = inl(card->base + NJ_DMA_READ_ADR); card 259 drivers/isdn/hardware/mISDN/netjet.c card->recv.dmacur = inl(card->base + NJ_DMA_WRITE_ADR); card 260 drivers/isdn/hardware/mISDN/netjet.c card->send.idx = (card->send.dmacur - card->send.dmastart) >> 2; card 261 drivers/isdn/hardware/mISDN/netjet.c card->recv.idx = (card->recv.dmacur - card->recv.dmastart) >> 2; card 263 drivers/isdn/hardware/mISDN/netjet.c card->name, __func__, card 264 drivers/isdn/hardware/mISDN/netjet.c inb(card->base + NJ_DMACTRL), card 265 drivers/isdn/hardware/mISDN/netjet.c inb(card->base + NJ_IRQMASK0), card 266 drivers/isdn/hardware/mISDN/netjet.c inb(card->base + NJ_IRQSTAT0), card 267 drivers/isdn/hardware/mISDN/netjet.c card->send.idx, card 268 drivers/isdn/hardware/mISDN/netjet.c card->recv.idx); card 273 drivers/isdn/hardware/mISDN/netjet.c nj_reset(struct tiger_hw *card) card 275 drivers/isdn/hardware/mISDN/netjet.c outb(0xff, card->base + NJ_CTRL); /* Reset On */ card 280 drivers/isdn/hardware/mISDN/netjet.c if (card->typ == NETJET_S_TJ320) /* TJ320 */ card 281 drivers/isdn/hardware/mISDN/netjet.c card->ctrlreg = 0x40; /* Reset Off and status read clear */ card 283 drivers/isdn/hardware/mISDN/netjet.c card->ctrlreg = 0x00; /* Reset Off and status read clear */ card 284 drivers/isdn/hardware/mISDN/netjet.c outb(card->ctrlreg, card->base + NJ_CTRL); card 288 drivers/isdn/hardware/mISDN/netjet.c card->auxd = 0; card 289 drivers/isdn/hardware/mISDN/netjet.c card->dmactrl = 0; card 290 drivers/isdn/hardware/mISDN/netjet.c outb(~NJ_ISACIRQ, card->base + NJ_AUXCTRL); card 291 drivers/isdn/hardware/mISDN/netjet.c outb(NJ_ISACIRQ, card->base + NJ_IRQMASK1); card 292 drivers/isdn/hardware/mISDN/netjet.c outb(card->auxd, card->base + NJ_AUXDATA); card 296 drivers/isdn/hardware/mISDN/netjet.c inittiger(struct tiger_hw *card) card 300 drivers/isdn/hardware/mISDN/netjet.c card->dma_p = pci_alloc_consistent(card->pdev, NJ_DMA_SIZE, card 301 drivers/isdn/hardware/mISDN/netjet.c &card->dma); card 302 drivers/isdn/hardware/mISDN/netjet.c if (!card->dma_p) { card 303 drivers/isdn/hardware/mISDN/netjet.c pr_info("%s: No DMA memory\n", card->name); card 306 drivers/isdn/hardware/mISDN/netjet.c if ((u64)card->dma > 0xffffffff) { card 307 drivers/isdn/hardware/mISDN/netjet.c pr_info("%s: DMA outside 32 bit\n", card->name); card 311 drivers/isdn/hardware/mISDN/netjet.c card->bc[i].hsbuf = kmalloc(NJ_DMA_TXSIZE, GFP_ATOMIC); card 312 drivers/isdn/hardware/mISDN/netjet.c if (!card->bc[i].hsbuf) { card 313 drivers/isdn/hardware/mISDN/netjet.c pr_info("%s: no B%d send buffer\n", card->name, i + 1); card 316 drivers/isdn/hardware/mISDN/netjet.c card->bc[i].hrbuf = kmalloc(NJ_DMA_RXSIZE, GFP_ATOMIC); card 317 drivers/isdn/hardware/mISDN/netjet.c if (!card->bc[i].hrbuf) { card 318 drivers/isdn/hardware/mISDN/netjet.c pr_info("%s: no B%d recv buffer\n", card->name, i + 1); card 322 drivers/isdn/hardware/mISDN/netjet.c memset(card->dma_p, 0xff, NJ_DMA_SIZE); card 324 drivers/isdn/hardware/mISDN/netjet.c card->send.start = card->dma_p; card 325 drivers/isdn/hardware/mISDN/netjet.c card->send.dmastart = (u32)card->dma; card 326 drivers/isdn/hardware/mISDN/netjet.c card->send.dmaend = card->send.dmastart + card 328 drivers/isdn/hardware/mISDN/netjet.c card->send.dmairq = card->send.dmastart + card 330 drivers/isdn/hardware/mISDN/netjet.c card->send.size = NJ_DMA_TXSIZE; card 334 drivers/isdn/hardware/mISDN/netjet.c " size %zu u32\n", card->name, card 335 drivers/isdn/hardware/mISDN/netjet.c card->send.dmastart, card->send.dmairq, card 336 drivers/isdn/hardware/mISDN/netjet.c card->send.dmaend, card->send.start, card->send.size); card 338 drivers/isdn/hardware/mISDN/netjet.c outl(card->send.dmastart, card->base + NJ_DMA_READ_START); card 339 drivers/isdn/hardware/mISDN/netjet.c outl(card->send.dmairq, card->base + NJ_DMA_READ_IRQ); card 340 drivers/isdn/hardware/mISDN/netjet.c outl(card->send.dmaend, card->base + NJ_DMA_READ_END); card 342 drivers/isdn/hardware/mISDN/netjet.c card->recv.start = card->dma_p + (NJ_DMA_SIZE / 2); card 343 drivers/isdn/hardware/mISDN/netjet.c card->recv.dmastart = (u32)card->dma + (NJ_DMA_SIZE / 2); card 344 drivers/isdn/hardware/mISDN/netjet.c card->recv.dmaend = card->recv.dmastart + card 346 drivers/isdn/hardware/mISDN/netjet.c card->recv.dmairq = card->recv.dmastart + card 348 drivers/isdn/hardware/mISDN/netjet.c card->recv.size = NJ_DMA_RXSIZE; card 352 drivers/isdn/hardware/mISDN/netjet.c " size %zu u32\n", card->name, card 353 drivers/isdn/hardware/mISDN/netjet.c card->recv.dmastart, card->recv.dmairq, card 354 drivers/isdn/hardware/mISDN/netjet.c card->recv.dmaend, card->recv.start, card->recv.size); card 356 drivers/isdn/hardware/mISDN/netjet.c outl(card->recv.dmastart, card->base + NJ_DMA_WRITE_START); card 357 drivers/isdn/hardware/mISDN/netjet.c outl(card->recv.dmairq, card->base + NJ_DMA_WRITE_IRQ); card 358 drivers/isdn/hardware/mISDN/netjet.c outl(card->recv.dmaend, card->base + NJ_DMA_WRITE_END); card 365 drivers/isdn/hardware/mISDN/netjet.c struct tiger_hw *card = bc->bch.hw; card 372 drivers/isdn/hardware/mISDN/netjet.c pr_info("%s: B%1d overrun at idx %d\n", card->name, card 384 drivers/isdn/hardware/mISDN/netjet.c card->name, bc->bch.nr, cnt); card 393 drivers/isdn/hardware/mISDN/netjet.c val = card->recv.start[idx++]; card 396 drivers/isdn/hardware/mISDN/netjet.c if (idx >= card->recv.size) card 413 drivers/isdn/hardware/mISDN/netjet.c snprintf(card->log, LOG_SIZE, card 415 drivers/isdn/hardware/mISDN/netjet.c card->name, stat); card 416 drivers/isdn/hardware/mISDN/netjet.c print_hex_dump_bytes(card->log, card 424 drivers/isdn/hardware/mISDN/netjet.c card->name, bc->bch.nr, cnt); card 429 drivers/isdn/hardware/mISDN/netjet.c card->name, bc->bch.nr); card 432 drivers/isdn/hardware/mISDN/netjet.c card->name, bc->bch.nr); card 435 drivers/isdn/hardware/mISDN/netjet.c card->name, bc->bch.nr, bc->bch.maxlen); card 443 drivers/isdn/hardware/mISDN/netjet.c recv_tiger(struct tiger_hw *card, u8 irq_stat) card 446 drivers/isdn/hardware/mISDN/netjet.c int cnt = card->recv.size / 2; card 449 drivers/isdn/hardware/mISDN/netjet.c card->last_is0 &= ~NJ_IRQM0_WR_MASK; card 450 drivers/isdn/hardware/mISDN/netjet.c card->last_is0 |= (irq_stat & NJ_IRQM0_WR_MASK); card 455 drivers/isdn/hardware/mISDN/netjet.c idx = card->recv.size - 1; card 457 drivers/isdn/hardware/mISDN/netjet.c if (test_bit(FLG_ACTIVE, &card->bc[0].bch.Flags)) card 458 drivers/isdn/hardware/mISDN/netjet.c read_dma(&card->bc[0], idx, cnt); card 459 drivers/isdn/hardware/mISDN/netjet.c if (test_bit(FLG_ACTIVE, &card->bc[1].bch.Flags)) card 460 drivers/isdn/hardware/mISDN/netjet.c read_dma(&card->bc[1], idx, cnt); card 465 drivers/isdn/hardware/mISDN/netjet.c resync(struct tiger_ch *bc, struct tiger_hw *card) card 467 drivers/isdn/hardware/mISDN/netjet.c card->send.dmacur = inl(card->base | NJ_DMA_READ_ADR); card 468 drivers/isdn/hardware/mISDN/netjet.c card->send.idx = (card->send.dmacur - card->send.dmastart) >> 2; card 469 drivers/isdn/hardware/mISDN/netjet.c if (bc->free > card->send.size / 2) card 470 drivers/isdn/hardware/mISDN/netjet.c bc->free = card->send.size / 2; card 475 drivers/isdn/hardware/mISDN/netjet.c if (card->send.idx < ((card->send.size / 2) - 1)) card 476 drivers/isdn/hardware/mISDN/netjet.c bc->idx = (card->recv.size / 2) - 1; card 478 drivers/isdn/hardware/mISDN/netjet.c bc->idx = card->recv.size - 1; card 480 drivers/isdn/hardware/mISDN/netjet.c pr_debug("%s: %s B%1d free %d idx %d/%d\n", card->name, card 481 drivers/isdn/hardware/mISDN/netjet.c __func__, bc->bch.nr, bc->free, bc->idx, card->send.idx); card 489 drivers/isdn/hardware/mISDN/netjet.c struct tiger_hw *card = bc->bch.hw; card 496 drivers/isdn/hardware/mISDN/netjet.c pr_debug("%s: %s B%1d %d state %x idx %d/%d\n", card->name, card 498 drivers/isdn/hardware/mISDN/netjet.c bc->idx, card->send.idx); card 500 drivers/isdn/hardware/mISDN/netjet.c resync(bc, card); card 503 drivers/isdn/hardware/mISDN/netjet.c pr_debug("%s: B%1d hdlc encoded %d flags\n", card->name, card 509 drivers/isdn/hardware/mISDN/netjet.c if (bc->idx >= card->send.size) card 511 drivers/isdn/hardware/mISDN/netjet.c v = card->send.start[bc->idx]; card 514 drivers/isdn/hardware/mISDN/netjet.c card->send.start[bc->idx++] = v; card 517 drivers/isdn/hardware/mISDN/netjet.c snprintf(card->log, LOG_SIZE, "B%1d-send %s %d ", card 518 drivers/isdn/hardware/mISDN/netjet.c bc->bch.nr, card->name, count); card 519 drivers/isdn/hardware/mISDN/netjet.c print_hex_dump_bytes(card->log, DUMP_PREFIX_OFFSET, p, count); card 526 drivers/isdn/hardware/mISDN/netjet.c struct tiger_hw *card = bc->bch.hw; card 537 drivers/isdn/hardware/mISDN/netjet.c count = card->send.size >> 1; card 544 drivers/isdn/hardware/mISDN/netjet.c card->name, __func__, bc->bch.nr, count, bc->free, card 546 drivers/isdn/hardware/mISDN/netjet.c bc->idx, card->send.idx); card 550 drivers/isdn/hardware/mISDN/netjet.c resync(bc, card); card 554 drivers/isdn/hardware/mISDN/netjet.c pr_debug("%s: B%1d hdlc encoded %d in %d\n", card->name, card 572 drivers/isdn/hardware/mISDN/netjet.c if (bc->idx >= card->send.size) card 574 drivers/isdn/hardware/mISDN/netjet.c v = card->send.start[bc->idx]; card 577 drivers/isdn/hardware/mISDN/netjet.c card->send.start[bc->idx++] = v; card 581 drivers/isdn/hardware/mISDN/netjet.c if (bc->idx >= card->send.size) card 583 drivers/isdn/hardware/mISDN/netjet.c v = card->send.start[bc->idx]; card 587 drivers/isdn/hardware/mISDN/netjet.c card->send.start[bc->idx++] = v; card 591 drivers/isdn/hardware/mISDN/netjet.c snprintf(card->log, LOG_SIZE, "B%1d-send %s %d ", card 592 drivers/isdn/hardware/mISDN/netjet.c bc->bch.nr, card->name, count); card 593 drivers/isdn/hardware/mISDN/netjet.c print_hex_dump_bytes(card->log, DUMP_PREFIX_OFFSET, p, count); card 625 drivers/isdn/hardware/mISDN/netjet.c send_tiger_bc(struct tiger_hw *card, struct tiger_ch *bc) card 629 drivers/isdn/hardware/mISDN/netjet.c bc->free += card->send.size / 2; card 630 drivers/isdn/hardware/mISDN/netjet.c if (bc->free >= card->send.size) { card 632 drivers/isdn/hardware/mISDN/netjet.c pr_info("%s: B%1d TX underrun state %x\n", card->name, card 636 drivers/isdn/hardware/mISDN/netjet.c bc->free = card->send.size; card 644 drivers/isdn/hardware/mISDN/netjet.c pr_debug("%s: B%1d TX no data free %d idx %d/%d\n", card->name, card 645 drivers/isdn/hardware/mISDN/netjet.c bc->bch.nr, bc->free, bc->idx, card->send.idx); card 648 drivers/isdn/hardware/mISDN/netjet.c if (bc->free == card->send.size) card 655 drivers/isdn/hardware/mISDN/netjet.c send_tiger(struct tiger_hw *card, u8 irq_stat) card 660 drivers/isdn/hardware/mISDN/netjet.c if ((irq_stat & card->last_is0) & NJ_IRQM0_RD_MASK) { card 662 drivers/isdn/hardware/mISDN/netjet.c card->name, irq_stat, card->last_is0); card 665 drivers/isdn/hardware/mISDN/netjet.c card->last_is0 &= ~NJ_IRQM0_RD_MASK; card 666 drivers/isdn/hardware/mISDN/netjet.c card->last_is0 |= (irq_stat & NJ_IRQM0_RD_MASK); card 669 drivers/isdn/hardware/mISDN/netjet.c if (test_bit(FLG_ACTIVE, &card->bc[i].bch.Flags)) card 670 drivers/isdn/hardware/mISDN/netjet.c send_tiger_bc(card, &card->bc[i]); card 677 drivers/isdn/hardware/mISDN/netjet.c struct tiger_hw *card = dev_id; card 680 drivers/isdn/hardware/mISDN/netjet.c spin_lock(&card->lock); card 681 drivers/isdn/hardware/mISDN/netjet.c s0val = inb(card->base | NJ_IRQSTAT0); card 682 drivers/isdn/hardware/mISDN/netjet.c s1val = inb(card->base | NJ_IRQSTAT1); card 685 drivers/isdn/hardware/mISDN/netjet.c spin_unlock(&card->lock); card 688 drivers/isdn/hardware/mISDN/netjet.c pr_debug("%s: IRQSTAT0 %02x IRQSTAT1 %02x\n", card->name, s0val, s1val); card 689 drivers/isdn/hardware/mISDN/netjet.c card->irqcnt++; card 691 drivers/isdn/hardware/mISDN/netjet.c val = ReadISAC_nj(card, ISAC_ISTA); card 693 drivers/isdn/hardware/mISDN/netjet.c mISDNisac_irq(&card->isac, val); card 698 drivers/isdn/hardware/mISDN/netjet.c outb(s0val, card->base | NJ_IRQSTAT0); card 703 drivers/isdn/hardware/mISDN/netjet.c card->recv.dmacur = inl(card->base | NJ_DMA_WRITE_ADR); card 704 drivers/isdn/hardware/mISDN/netjet.c card->recv.idx = (card->recv.dmacur - card->recv.dmastart) >> 2; card 705 drivers/isdn/hardware/mISDN/netjet.c if (card->recv.dmacur < card->recv.dmairq) card 710 drivers/isdn/hardware/mISDN/netjet.c card->send.dmacur = inl(card->base | NJ_DMA_READ_ADR); card 711 drivers/isdn/hardware/mISDN/netjet.c card->send.idx = (card->send.dmacur - card->send.dmastart) >> 2; card 712 drivers/isdn/hardware/mISDN/netjet.c if (card->send.dmacur < card->send.dmairq) card 717 drivers/isdn/hardware/mISDN/netjet.c pr_debug("%s: DMA Status %02x/%02x/%02x %d/%d\n", card->name, card 718 drivers/isdn/hardware/mISDN/netjet.c s1val, s0val, card->last_is0, card 719 drivers/isdn/hardware/mISDN/netjet.c card->recv.idx, card->send.idx); card 721 drivers/isdn/hardware/mISDN/netjet.c if (s0val != card->last_is0) { card 723 drivers/isdn/hardware/mISDN/netjet.c (card->last_is0 & NJ_IRQM0_RD_MASK)) card 725 drivers/isdn/hardware/mISDN/netjet.c send_tiger(card, s0val); card 727 drivers/isdn/hardware/mISDN/netjet.c (card->last_is0 & NJ_IRQM0_WR_MASK)) card 729 drivers/isdn/hardware/mISDN/netjet.c recv_tiger(card, s0val); card 732 drivers/isdn/hardware/mISDN/netjet.c spin_unlock(&card->lock); card 742 drivers/isdn/hardware/mISDN/netjet.c struct tiger_hw *card = bch->hw; card 748 drivers/isdn/hardware/mISDN/netjet.c spin_lock_irqsave(&card->lock, flags); card 754 drivers/isdn/hardware/mISDN/netjet.c spin_unlock_irqrestore(&card->lock, flags); card 757 drivers/isdn/hardware/mISDN/netjet.c spin_lock_irqsave(&card->lock, flags); card 762 drivers/isdn/hardware/mISDN/netjet.c spin_unlock_irqrestore(&card->lock, flags); card 768 drivers/isdn/hardware/mISDN/netjet.c spin_lock_irqsave(&card->lock, flags); card 771 drivers/isdn/hardware/mISDN/netjet.c spin_unlock_irqrestore(&card->lock, flags); card 793 drivers/isdn/hardware/mISDN/netjet.c struct tiger_hw *card = bch->hw; card 797 drivers/isdn/hardware/mISDN/netjet.c pr_debug("%s: %s cmd:%x %p\n", card->name, __func__, cmd, arg); card 802 drivers/isdn/hardware/mISDN/netjet.c spin_lock_irqsave(&card->lock, flags); card 805 drivers/isdn/hardware/mISDN/netjet.c spin_unlock_irqrestore(&card->lock, flags); card 815 drivers/isdn/hardware/mISDN/netjet.c pr_info("%s: %s unknown prim(%x)\n", card->name, __func__, cmd); card 821 drivers/isdn/hardware/mISDN/netjet.c channel_ctrl(struct tiger_hw *card, struct mISDN_ctrl_req *cq) card 835 drivers/isdn/hardware/mISDN/netjet.c ret = card->isac.ctrl(&card->isac, HW_TESTLOOP, cq->channel); card 838 drivers/isdn/hardware/mISDN/netjet.c ret = card->isac.ctrl(&card->isac, HW_TIMER3_VALUE, cq->p1); card 841 drivers/isdn/hardware/mISDN/netjet.c pr_info("%s: %s unknown Op %x\n", card->name, __func__, cq->op); card 849 drivers/isdn/hardware/mISDN/netjet.c open_bchannel(struct tiger_hw *card, struct channel_req *rq) card 857 drivers/isdn/hardware/mISDN/netjet.c bch = &card->bc[rq->adr.channel - 1].bch; card 874 drivers/isdn/hardware/mISDN/netjet.c struct tiger_hw *card = dch->hw; card 878 drivers/isdn/hardware/mISDN/netjet.c pr_debug("%s: %s cmd:%x %p\n", card->name, __func__, cmd, arg); card 883 drivers/isdn/hardware/mISDN/netjet.c err = card->isac.open(&card->isac, rq); card 885 drivers/isdn/hardware/mISDN/netjet.c err = open_bchannel(card, rq); card 889 drivers/isdn/hardware/mISDN/netjet.c pr_info("%s: cannot get module\n", card->name); card 892 drivers/isdn/hardware/mISDN/netjet.c pr_debug("%s: dev(%d) close from %p\n", card->name, dch->dev.id, card 897 drivers/isdn/hardware/mISDN/netjet.c err = channel_ctrl(card, arg); card 901 drivers/isdn/hardware/mISDN/netjet.c card->name, __func__, cmd); card 908 drivers/isdn/hardware/mISDN/netjet.c nj_init_card(struct tiger_hw *card) card 913 drivers/isdn/hardware/mISDN/netjet.c spin_lock_irqsave(&card->lock, flags); card 914 drivers/isdn/hardware/mISDN/netjet.c nj_disable_hwirq(card); card 915 drivers/isdn/hardware/mISDN/netjet.c spin_unlock_irqrestore(&card->lock, flags); card 917 drivers/isdn/hardware/mISDN/netjet.c card->irq = card->pdev->irq; card 918 drivers/isdn/hardware/mISDN/netjet.c if (request_irq(card->irq, nj_irq, IRQF_SHARED, card->name, card)) { card 920 drivers/isdn/hardware/mISDN/netjet.c card->name, card->irq); card 921 drivers/isdn/hardware/mISDN/netjet.c card->irq = -1; card 925 drivers/isdn/hardware/mISDN/netjet.c spin_lock_irqsave(&card->lock, flags); card 926 drivers/isdn/hardware/mISDN/netjet.c nj_reset(card); card 927 drivers/isdn/hardware/mISDN/netjet.c ret = card->isac.init(&card->isac); card 930 drivers/isdn/hardware/mISDN/netjet.c ret = inittiger(card); card 933 drivers/isdn/hardware/mISDN/netjet.c mode_tiger(&card->bc[0], ISDN_P_NONE); card 934 drivers/isdn/hardware/mISDN/netjet.c mode_tiger(&card->bc[1], ISDN_P_NONE); card 936 drivers/isdn/hardware/mISDN/netjet.c spin_unlock_irqrestore(&card->lock, flags); card 942 drivers/isdn/hardware/mISDN/netjet.c nj_release(struct tiger_hw *card) card 947 drivers/isdn/hardware/mISDN/netjet.c if (card->base_s) { card 948 drivers/isdn/hardware/mISDN/netjet.c spin_lock_irqsave(&card->lock, flags); card 949 drivers/isdn/hardware/mISDN/netjet.c nj_disable_hwirq(card); card 950 drivers/isdn/hardware/mISDN/netjet.c mode_tiger(&card->bc[0], ISDN_P_NONE); card 951 drivers/isdn/hardware/mISDN/netjet.c mode_tiger(&card->bc[1], ISDN_P_NONE); card 952 drivers/isdn/hardware/mISDN/netjet.c card->isac.release(&card->isac); card 953 drivers/isdn/hardware/mISDN/netjet.c spin_unlock_irqrestore(&card->lock, flags); card 954 drivers/isdn/hardware/mISDN/netjet.c release_region(card->base, card->base_s); card 955 drivers/isdn/hardware/mISDN/netjet.c card->base_s = 0; card 957 drivers/isdn/hardware/mISDN/netjet.c if (card->irq > 0) card 958 drivers/isdn/hardware/mISDN/netjet.c free_irq(card->irq, card); card 959 drivers/isdn/hardware/mISDN/netjet.c if (card->isac.dch.dev.dev.class) card 960 drivers/isdn/hardware/mISDN/netjet.c mISDN_unregister_device(&card->isac.dch.dev); card 963 drivers/isdn/hardware/mISDN/netjet.c mISDN_freebchannel(&card->bc[i].bch); card 964 drivers/isdn/hardware/mISDN/netjet.c kfree(card->bc[i].hsbuf); card 965 drivers/isdn/hardware/mISDN/netjet.c kfree(card->bc[i].hrbuf); card 967 drivers/isdn/hardware/mISDN/netjet.c if (card->dma_p) card 968 drivers/isdn/hardware/mISDN/netjet.c pci_free_consistent(card->pdev, NJ_DMA_SIZE, card 969 drivers/isdn/hardware/mISDN/netjet.c card->dma_p, card->dma); card 971 drivers/isdn/hardware/mISDN/netjet.c list_del(&card->list); card 973 drivers/isdn/hardware/mISDN/netjet.c pci_clear_master(card->pdev); card 974 drivers/isdn/hardware/mISDN/netjet.c pci_disable_device(card->pdev); card 975 drivers/isdn/hardware/mISDN/netjet.c pci_set_drvdata(card->pdev, NULL); card 976 drivers/isdn/hardware/mISDN/netjet.c kfree(card); card 981 drivers/isdn/hardware/mISDN/netjet.c nj_setup(struct tiger_hw *card) card 983 drivers/isdn/hardware/mISDN/netjet.c card->base = pci_resource_start(card->pdev, 0); card 984 drivers/isdn/hardware/mISDN/netjet.c card->base_s = pci_resource_len(card->pdev, 0); card 985 drivers/isdn/hardware/mISDN/netjet.c if (!request_region(card->base, card->base_s, card->name)) { card 987 drivers/isdn/hardware/mISDN/netjet.c card->name, card->base, card 988 drivers/isdn/hardware/mISDN/netjet.c (u32)(card->base + card->base_s - 1)); card 989 drivers/isdn/hardware/mISDN/netjet.c card->base_s = 0; card 992 drivers/isdn/hardware/mISDN/netjet.c ASSIGN_FUNC(nj, ISAC, card->isac); card 998 drivers/isdn/hardware/mISDN/netjet.c setup_instance(struct tiger_hw *card) card 1003 drivers/isdn/hardware/mISDN/netjet.c snprintf(card->name, MISDN_MAX_IDLEN - 1, "netjet.%d", nj_cnt + 1); card 1005 drivers/isdn/hardware/mISDN/netjet.c list_add_tail(&card->list, &Cards); card 1008 drivers/isdn/hardware/mISDN/netjet.c _set_debug(card); card 1009 drivers/isdn/hardware/mISDN/netjet.c card->isac.name = card->name; card 1010 drivers/isdn/hardware/mISDN/netjet.c spin_lock_init(&card->lock); card 1011 drivers/isdn/hardware/mISDN/netjet.c card->isac.hwlock = &card->lock; card 1012 drivers/isdn/hardware/mISDN/netjet.c mISDNisac_init(&card->isac, card); card 1014 drivers/isdn/hardware/mISDN/netjet.c card->isac.dch.dev.Bprotocols = (1 << (ISDN_P_B_RAW & ISDN_P_B_MASK)) | card 1016 drivers/isdn/hardware/mISDN/netjet.c card->isac.dch.dev.D.ctrl = nj_dctrl; card 1018 drivers/isdn/hardware/mISDN/netjet.c card->bc[i].bch.nr = i + 1; card 1019 drivers/isdn/hardware/mISDN/netjet.c set_channelmap(i + 1, card->isac.dch.dev.channelmap); card 1020 drivers/isdn/hardware/mISDN/netjet.c mISDN_initbchannel(&card->bc[i].bch, MAX_DATA_MEM, card 1022 drivers/isdn/hardware/mISDN/netjet.c card->bc[i].bch.hw = card; card 1023 drivers/isdn/hardware/mISDN/netjet.c card->bc[i].bch.ch.send = nj_l2l1B; card 1024 drivers/isdn/hardware/mISDN/netjet.c card->bc[i].bch.ch.ctrl = nj_bctrl; card 1025 drivers/isdn/hardware/mISDN/netjet.c card->bc[i].bch.ch.nr = i + 1; card 1026 drivers/isdn/hardware/mISDN/netjet.c list_add(&card->bc[i].bch.ch.list, card 1027 drivers/isdn/hardware/mISDN/netjet.c &card->isac.dch.dev.bchannels); card 1028 drivers/isdn/hardware/mISDN/netjet.c card->bc[i].bch.hw = card; card 1030 drivers/isdn/hardware/mISDN/netjet.c err = nj_setup(card); card 1033 drivers/isdn/hardware/mISDN/netjet.c err = mISDN_register_device(&card->isac.dch.dev, &card->pdev->dev, card 1034 drivers/isdn/hardware/mISDN/netjet.c card->name); card 1037 drivers/isdn/hardware/mISDN/netjet.c err = nj_init_card(card); card 1044 drivers/isdn/hardware/mISDN/netjet.c nj_release(card); card 1053 drivers/isdn/hardware/mISDN/netjet.c struct tiger_hw *card; card 1073 drivers/isdn/hardware/mISDN/netjet.c card = kzalloc(sizeof(struct tiger_hw), GFP_KERNEL); card 1074 drivers/isdn/hardware/mISDN/netjet.c if (!card) { card 1079 drivers/isdn/hardware/mISDN/netjet.c card->pdev = pdev; card 1083 drivers/isdn/hardware/mISDN/netjet.c kfree(card); card 1098 drivers/isdn/hardware/mISDN/netjet.c card->typ = NETJET_S_TJ320; card 1100 drivers/isdn/hardware/mISDN/netjet.c card->typ = NETJET_S_TJ300; card 1102 drivers/isdn/hardware/mISDN/netjet.c card->base = pci_resource_start(pdev, 0); card 1103 drivers/isdn/hardware/mISDN/netjet.c card->irq = pdev->irq; card 1104 drivers/isdn/hardware/mISDN/netjet.c pci_set_drvdata(pdev, card); card 1105 drivers/isdn/hardware/mISDN/netjet.c err = setup_instance(card); card 1115 drivers/isdn/hardware/mISDN/netjet.c struct tiger_hw *card = pci_get_drvdata(pdev); card 1117 drivers/isdn/hardware/mISDN/netjet.c if (card) card 1118 drivers/isdn/hardware/mISDN/netjet.c nj_release(card); card 76 drivers/isdn/hardware/mISDN/speedfax.c _set_debug(struct sfax_hw *card) card 78 drivers/isdn/hardware/mISDN/speedfax.c card->isac.dch.debug = debug; card 79 drivers/isdn/hardware/mISDN/speedfax.c card->isar.ch[0].bch.debug = debug; card 80 drivers/isdn/hardware/mISDN/speedfax.c card->isar.ch[1].bch.debug = debug; card 87 drivers/isdn/hardware/mISDN/speedfax.c struct sfax_hw *card; card 92 drivers/isdn/hardware/mISDN/speedfax.c list_for_each_entry(card, &Cards, list) card 93 drivers/isdn/hardware/mISDN/speedfax.c _set_debug(card); card 341 drivers/isdn/hardware/mISDN/speedfax.c release_card(struct sfax_hw *card) { card 344 drivers/isdn/hardware/mISDN/speedfax.c spin_lock_irqsave(&card->lock, flags); card 345 drivers/isdn/hardware/mISDN/speedfax.c disable_hwirq(card); card 346 drivers/isdn/hardware/mISDN/speedfax.c spin_unlock_irqrestore(&card->lock, flags); card 347 drivers/isdn/hardware/mISDN/speedfax.c card->isac.release(&card->isac); card 348 drivers/isdn/hardware/mISDN/speedfax.c free_irq(card->irq, card); card 349 drivers/isdn/hardware/mISDN/speedfax.c card->isar.release(&card->isar); card 350 drivers/isdn/hardware/mISDN/speedfax.c mISDN_unregister_device(&card->isac.dch.dev); card 351 drivers/isdn/hardware/mISDN/speedfax.c release_region(card->cfg, 256); card 352 drivers/isdn/hardware/mISDN/speedfax.c pci_disable_device(card->pdev); card 353 drivers/isdn/hardware/mISDN/speedfax.c pci_set_drvdata(card->pdev, NULL); card 355 drivers/isdn/hardware/mISDN/speedfax.c list_del(&card->list); card 357 drivers/isdn/hardware/mISDN/speedfax.c kfree(card); card 362 drivers/isdn/hardware/mISDN/speedfax.c setup_instance(struct sfax_hw *card) card 368 drivers/isdn/hardware/mISDN/speedfax.c snprintf(card->name, MISDN_MAX_IDLEN - 1, "Speedfax.%d", sfax_cnt + 1); card 370 drivers/isdn/hardware/mISDN/speedfax.c list_add_tail(&card->list, &Cards); card 372 drivers/isdn/hardware/mISDN/speedfax.c _set_debug(card); card 373 drivers/isdn/hardware/mISDN/speedfax.c spin_lock_init(&card->lock); card 374 drivers/isdn/hardware/mISDN/speedfax.c card->isac.hwlock = &card->lock; card 375 drivers/isdn/hardware/mISDN/speedfax.c card->isar.hwlock = &card->lock; card 376 drivers/isdn/hardware/mISDN/speedfax.c card->isar.ctrl = (void *)&sfax_ctrl; card 377 drivers/isdn/hardware/mISDN/speedfax.c card->isac.name = card->name; card 378 drivers/isdn/hardware/mISDN/speedfax.c card->isar.name = card->name; card 379 drivers/isdn/hardware/mISDN/speedfax.c card->isar.owner = THIS_MODULE; card 381 drivers/isdn/hardware/mISDN/speedfax.c err = request_firmware(&firmware, "isdn/ISAR.BIN", &card->pdev->dev); card 384 drivers/isdn/hardware/mISDN/speedfax.c card->name, err); card 389 drivers/isdn/hardware/mISDN/speedfax.c card->name, firmware->size); card 391 drivers/isdn/hardware/mISDN/speedfax.c mISDNisac_init(&card->isac, card); card 393 drivers/isdn/hardware/mISDN/speedfax.c card->isac.dch.dev.D.ctrl = sfax_dctrl; card 394 drivers/isdn/hardware/mISDN/speedfax.c card->isac.dch.dev.Bprotocols = card 395 drivers/isdn/hardware/mISDN/speedfax.c mISDNisar_init(&card->isar, card); card 397 drivers/isdn/hardware/mISDN/speedfax.c set_channelmap(i + 1, card->isac.dch.dev.channelmap); card 398 drivers/isdn/hardware/mISDN/speedfax.c list_add(&card->isar.ch[i].bch.ch.list, card 399 drivers/isdn/hardware/mISDN/speedfax.c &card->isac.dch.dev.bchannels); card 402 drivers/isdn/hardware/mISDN/speedfax.c err = setup_speedfax(card); card 405 drivers/isdn/hardware/mISDN/speedfax.c err = card->isar.init(&card->isar); card 408 drivers/isdn/hardware/mISDN/speedfax.c err = mISDN_register_device(&card->isac.dch.dev, card 409 drivers/isdn/hardware/mISDN/speedfax.c &card->pdev->dev, card->name); card 412 drivers/isdn/hardware/mISDN/speedfax.c err = init_card(card); card 415 drivers/isdn/hardware/mISDN/speedfax.c err = card->isar.firmware(&card->isar, firmware->data, firmware->size); card 422 drivers/isdn/hardware/mISDN/speedfax.c disable_hwirq(card); card 423 drivers/isdn/hardware/mISDN/speedfax.c free_irq(card->irq, card); card 425 drivers/isdn/hardware/mISDN/speedfax.c mISDN_unregister_device(&card->isac.dch.dev); card 427 drivers/isdn/hardware/mISDN/speedfax.c release_region(card->cfg, 256); card 429 drivers/isdn/hardware/mISDN/speedfax.c card->isac.release(&card->isac); card 430 drivers/isdn/hardware/mISDN/speedfax.c card->isar.release(&card->isar); card 433 drivers/isdn/hardware/mISDN/speedfax.c pci_disable_device(card->pdev); card 435 drivers/isdn/hardware/mISDN/speedfax.c list_del(&card->list); card 437 drivers/isdn/hardware/mISDN/speedfax.c kfree(card); card 445 drivers/isdn/hardware/mISDN/speedfax.c struct sfax_hw *card = kzalloc(sizeof(struct sfax_hw), GFP_KERNEL); card 447 drivers/isdn/hardware/mISDN/speedfax.c if (!card) { card 451 drivers/isdn/hardware/mISDN/speedfax.c card->pdev = pdev; card 454 drivers/isdn/hardware/mISDN/speedfax.c kfree(card); card 461 drivers/isdn/hardware/mISDN/speedfax.c card->cfg = pci_resource_start(pdev, 0); card 462 drivers/isdn/hardware/mISDN/speedfax.c card->irq = pdev->irq; card 463 drivers/isdn/hardware/mISDN/speedfax.c pci_set_drvdata(pdev, card); card 464 drivers/isdn/hardware/mISDN/speedfax.c err = setup_instance(card); card 473 drivers/isdn/hardware/mISDN/speedfax.c struct sfax_hw *card = pci_get_drvdata(pdev); card 475 drivers/isdn/hardware/mISDN/speedfax.c if (card) card 476 drivers/isdn/hardware/mISDN/speedfax.c release_card(card); card 80 drivers/isdn/hardware/mISDN/w6692.c _set_debug(struct w6692_hw *card) card 82 drivers/isdn/hardware/mISDN/w6692.c card->dch.debug = debug; card 83 drivers/isdn/hardware/mISDN/w6692.c card->bc[0].bch.debug = debug; card 84 drivers/isdn/hardware/mISDN/w6692.c card->bc[1].bch.debug = debug; card 91 drivers/isdn/hardware/mISDN/w6692.c struct w6692_hw *card; card 96 drivers/isdn/hardware/mISDN/w6692.c list_for_each_entry(card, &Cards, list) card 97 drivers/isdn/hardware/mISDN/w6692.c _set_debug(card); card 114 drivers/isdn/hardware/mISDN/w6692.c ReadW6692(struct w6692_hw *card, u8 offset) card 116 drivers/isdn/hardware/mISDN/w6692.c return inb(card->addr + offset); card 120 drivers/isdn/hardware/mISDN/w6692.c WriteW6692(struct w6692_hw *card, u8 offset, u8 value) card 122 drivers/isdn/hardware/mISDN/w6692.c outb(value, card->addr + offset); card 138 drivers/isdn/hardware/mISDN/w6692.c enable_hwirq(struct w6692_hw *card) card 140 drivers/isdn/hardware/mISDN/w6692.c WriteW6692(card, W_IMASK, card->imask); card 144 drivers/isdn/hardware/mISDN/w6692.c disable_hwirq(struct w6692_hw *card) card 146 drivers/isdn/hardware/mISDN/w6692.c WriteW6692(card, W_IMASK, 0xff); card 152 drivers/isdn/hardware/mISDN/w6692.c W6692Version(struct w6692_hw *card) card 156 drivers/isdn/hardware/mISDN/w6692.c val = ReadW6692(card, W_D_RBCH); card 157 drivers/isdn/hardware/mISDN/w6692.c pr_notice("%s: Winbond W6692 version: %s\n", card->name, card 162 drivers/isdn/hardware/mISDN/w6692.c w6692_led_handler(struct w6692_hw *card, int on) card 164 drivers/isdn/hardware/mISDN/w6692.c if ((!(card->fmask & led)) || card->subtype == W6692_USR) card 167 drivers/isdn/hardware/mISDN/w6692.c card->xdata &= 0xfb; /* LED ON */ card 168 drivers/isdn/hardware/mISDN/w6692.c WriteW6692(card, W_XDATA, card->xdata); card 170 drivers/isdn/hardware/mISDN/w6692.c card->xdata |= 0x04; /* LED OFF */ card 171 drivers/isdn/hardware/mISDN/w6692.c WriteW6692(card, W_XDATA, card->xdata); card 176 drivers/isdn/hardware/mISDN/w6692.c ph_command(struct w6692_hw *card, u8 cmd) card 178 drivers/isdn/hardware/mISDN/w6692.c pr_debug("%s: ph_command %x\n", card->name, cmd); card 179 drivers/isdn/hardware/mISDN/w6692.c WriteW6692(card, W_CIX, cmd); card 183 drivers/isdn/hardware/mISDN/w6692.c W6692_new_ph(struct w6692_hw *card) card 185 drivers/isdn/hardware/mISDN/w6692.c if (card->state == W_L1CMD_RST) card 186 drivers/isdn/hardware/mISDN/w6692.c ph_command(card, W_L1CMD_DRC); card 187 drivers/isdn/hardware/mISDN/w6692.c schedule_event(&card->dch, FLG_PHCHANGE); card 193 drivers/isdn/hardware/mISDN/w6692.c struct w6692_hw *card = dch->hw; card 195 drivers/isdn/hardware/mISDN/w6692.c switch (card->state) { card 235 drivers/isdn/hardware/mISDN/w6692.c card->name, card->state, dch->state); card 238 drivers/isdn/hardware/mISDN/w6692.c pr_debug("%s: TE newstate %02x\n", card->name, dch->state); card 242 drivers/isdn/hardware/mISDN/w6692.c W6692_empty_Dfifo(struct w6692_hw *card, int count) card 244 drivers/isdn/hardware/mISDN/w6692.c struct dchannel *dch = &card->dch; card 247 drivers/isdn/hardware/mISDN/w6692.c pr_debug("%s: empty_Dfifo %d\n", card->name, count); card 249 drivers/isdn/hardware/mISDN/w6692.c dch->rx_skb = mI_alloc_skb(card->dch.maxlen, GFP_ATOMIC); card 251 drivers/isdn/hardware/mISDN/w6692.c pr_info("%s: D receive out of memory\n", card->name); card 252 drivers/isdn/hardware/mISDN/w6692.c WriteW6692(card, W_D_CMDR, W_D_CMDR_RACK); card 257 drivers/isdn/hardware/mISDN/w6692.c pr_debug("%s: empty_Dfifo overrun %d\n", card->name, card 259 drivers/isdn/hardware/mISDN/w6692.c WriteW6692(card, W_D_CMDR, W_D_CMDR_RACK); card 263 drivers/isdn/hardware/mISDN/w6692.c insb(card->addr + W_D_RFIFO, ptr, count); card 264 drivers/isdn/hardware/mISDN/w6692.c WriteW6692(card, W_D_CMDR, W_D_CMDR_RACK); card 266 drivers/isdn/hardware/mISDN/w6692.c snprintf(card->log, 63, "D-recv %s %d ", card 267 drivers/isdn/hardware/mISDN/w6692.c card->name, count); card 268 drivers/isdn/hardware/mISDN/w6692.c print_hex_dump_bytes(card->log, DUMP_PREFIX_OFFSET, ptr, count); card 273 drivers/isdn/hardware/mISDN/w6692.c W6692_fill_Dfifo(struct w6692_hw *card) card 275 drivers/isdn/hardware/mISDN/w6692.c struct dchannel *dch = &card->dch; card 280 drivers/isdn/hardware/mISDN/w6692.c pr_debug("%s: fill_Dfifo\n", card->name); card 292 drivers/isdn/hardware/mISDN/w6692.c outsb(card->addr + W_D_XFIFO, ptr, count); card 293 drivers/isdn/hardware/mISDN/w6692.c WriteW6692(card, W_D_CMDR, cmd); card 295 drivers/isdn/hardware/mISDN/w6692.c pr_debug("%s: fill_Dfifo dbusytimer running\n", card->name); card 301 drivers/isdn/hardware/mISDN/w6692.c snprintf(card->log, 63, "D-send %s %d ", card 302 drivers/isdn/hardware/mISDN/w6692.c card->name, count); card 303 drivers/isdn/hardware/mISDN/w6692.c print_hex_dump_bytes(card->log, DUMP_PREFIX_OFFSET, ptr, count); card 308 drivers/isdn/hardware/mISDN/w6692.c d_retransmit(struct w6692_hw *card) card 310 drivers/isdn/hardware/mISDN/w6692.c struct dchannel *dch = &card->dch; card 321 drivers/isdn/hardware/mISDN/w6692.c W6692_fill_Dfifo(card); card 323 drivers/isdn/hardware/mISDN/w6692.c pr_info("%s: %s without TX_BUSY\n", card->name, __func__); card 326 drivers/isdn/hardware/mISDN/w6692.c W6692_fill_Dfifo(card); card 328 drivers/isdn/hardware/mISDN/w6692.c pr_info("%s: XDU no TX_BUSY\n", card->name); card 330 drivers/isdn/hardware/mISDN/w6692.c W6692_fill_Dfifo(card); card 335 drivers/isdn/hardware/mISDN/w6692.c handle_rxD(struct w6692_hw *card) { card 339 drivers/isdn/hardware/mISDN/w6692.c stat = ReadW6692(card, W_D_RSTA); card 342 drivers/isdn/hardware/mISDN/w6692.c pr_debug("%s: D-channel RDOV\n", card->name); card 344 drivers/isdn/hardware/mISDN/w6692.c card->dch.err_rx++; card 348 drivers/isdn/hardware/mISDN/w6692.c pr_debug("%s: D-channel CRC error\n", card->name); card 350 drivers/isdn/hardware/mISDN/w6692.c card->dch.err_crc++; card 354 drivers/isdn/hardware/mISDN/w6692.c pr_debug("%s: D-channel ABORT\n", card->name); card 356 drivers/isdn/hardware/mISDN/w6692.c card->dch.err_rx++; card 359 drivers/isdn/hardware/mISDN/w6692.c dev_kfree_skb(card->dch.rx_skb); card 360 drivers/isdn/hardware/mISDN/w6692.c card->dch.rx_skb = NULL; card 361 drivers/isdn/hardware/mISDN/w6692.c WriteW6692(card, W_D_CMDR, W_D_CMDR_RACK | W_D_CMDR_RRST); card 363 drivers/isdn/hardware/mISDN/w6692.c count = ReadW6692(card, W_D_RBCL) & (W_D_FIFO_THRESH - 1); card 366 drivers/isdn/hardware/mISDN/w6692.c W6692_empty_Dfifo(card, count); card 367 drivers/isdn/hardware/mISDN/w6692.c recv_Dchannel(&card->dch); card 372 drivers/isdn/hardware/mISDN/w6692.c handle_txD(struct w6692_hw *card) { card 373 drivers/isdn/hardware/mISDN/w6692.c if (test_and_clear_bit(FLG_BUSY_TIMER, &card->dch.Flags)) card 374 drivers/isdn/hardware/mISDN/w6692.c del_timer(&card->dch.timer); card 375 drivers/isdn/hardware/mISDN/w6692.c if (card->dch.tx_skb && card->dch.tx_idx < card->dch.tx_skb->len) { card 376 drivers/isdn/hardware/mISDN/w6692.c W6692_fill_Dfifo(card); card 378 drivers/isdn/hardware/mISDN/w6692.c dev_kfree_skb(card->dch.tx_skb); card 379 drivers/isdn/hardware/mISDN/w6692.c if (get_next_dframe(&card->dch)) card 380 drivers/isdn/hardware/mISDN/w6692.c W6692_fill_Dfifo(card); card 385 drivers/isdn/hardware/mISDN/w6692.c handle_statusD(struct w6692_hw *card) card 387 drivers/isdn/hardware/mISDN/w6692.c struct dchannel *dch = &card->dch; card 390 drivers/isdn/hardware/mISDN/w6692.c exval = ReadW6692(card, W_D_EXIR); card 392 drivers/isdn/hardware/mISDN/w6692.c pr_debug("%s: D_EXIR %02x\n", card->name, exval); card 395 drivers/isdn/hardware/mISDN/w6692.c pr_debug("%s: D-channel underrun/collision\n", card->name); card 399 drivers/isdn/hardware/mISDN/w6692.c d_retransmit(card); card 402 drivers/isdn/hardware/mISDN/w6692.c pr_debug("%s: D-channel RDOV\n", card->name); card 403 drivers/isdn/hardware/mISDN/w6692.c WriteW6692(card, W_D_CMDR, W_D_CMDR_RRST); card 406 drivers/isdn/hardware/mISDN/w6692.c pr_debug("%s: spurious TIN2 interrupt\n", card->name); card 408 drivers/isdn/hardware/mISDN/w6692.c v1 = ReadW6692(card, W_MOSR); card 410 drivers/isdn/hardware/mISDN/w6692.c card->name, v1); card 413 drivers/isdn/hardware/mISDN/w6692.c cir = ReadW6692(card, W_CIR); card 414 drivers/isdn/hardware/mISDN/w6692.c pr_debug("%s: ISC CIR %02X\n", card->name, cir); card 417 drivers/isdn/hardware/mISDN/w6692.c pr_debug("%s: ph_state_change %x -> %x\n", card->name, card 419 drivers/isdn/hardware/mISDN/w6692.c card->state = v1; card 420 drivers/isdn/hardware/mISDN/w6692.c if (card->fmask & led) { card 424 drivers/isdn/hardware/mISDN/w6692.c w6692_led_handler(card, 1); card 427 drivers/isdn/hardware/mISDN/w6692.c w6692_led_handler(card, 0); card 431 drivers/isdn/hardware/mISDN/w6692.c W6692_new_ph(card); card 434 drivers/isdn/hardware/mISDN/w6692.c v1 = ReadW6692(card, W_SQR); card 435 drivers/isdn/hardware/mISDN/w6692.c pr_debug("%s: SCC SQR %02X\n", card->name, v1); card 439 drivers/isdn/hardware/mISDN/w6692.c pr_debug("%s: spurious WEXP interrupt!\n", card->name); card 441 drivers/isdn/hardware/mISDN/w6692.c pr_debug("%s: spurious TEXP interrupt!\n", card->name); card 447 drivers/isdn/hardware/mISDN/w6692.c struct w6692_hw *card = wch->bch.hw; card 451 drivers/isdn/hardware/mISDN/w6692.c pr_debug("%s: empty_Bfifo %d\n", card->name, count); card 453 drivers/isdn/hardware/mISDN/w6692.c pr_debug("%s: empty_Bfifo ISDN_P_NONE\n", card->name); card 470 drivers/isdn/hardware/mISDN/w6692.c card->name, wch->bch.nr, count); card 477 drivers/isdn/hardware/mISDN/w6692.c snprintf(card->log, 63, "B%1d-recv %s %d ", card 478 drivers/isdn/hardware/mISDN/w6692.c wch->bch.nr, card->name, count); card 479 drivers/isdn/hardware/mISDN/w6692.c print_hex_dump_bytes(card->log, DUMP_PREFIX_OFFSET, ptr, count); card 486 drivers/isdn/hardware/mISDN/w6692.c struct w6692_hw *card = wch->bch.hw; card 490 drivers/isdn/hardware/mISDN/w6692.c pr_debug("%s: fill Bfifo\n", card->name); card 508 drivers/isdn/hardware/mISDN/w6692.c pr_debug("%s: fill Bfifo%d/%d\n", card->name, card 521 drivers/isdn/hardware/mISDN/w6692.c snprintf(card->log, 63, "B%1d-send %s %d ", card 522 drivers/isdn/hardware/mISDN/w6692.c wch->bch.nr, card->name, count); card 523 drivers/isdn/hardware/mISDN/w6692.c print_hex_dump_bytes(card->log, DUMP_PREFIX_OFFSET, ptr, count); card 531 drivers/isdn/hardware/mISDN/w6692.c struct w6692_hw *card = wch->bch.hw; card 535 drivers/isdn/hardware/mISDN/w6692.c if ((!(card->fmask & pots)) || card 546 drivers/isdn/hardware/mISDN/w6692.c card->xaddr &= 0xc7; card 548 drivers/isdn/hardware/mISDN/w6692.c card->xaddr &= 0xf8; card 550 drivers/isdn/hardware/mISDN/w6692.c card->xaddr |= val; card 551 drivers/isdn/hardware/mISDN/w6692.c WriteW6692(card, W_XADDR, card->xaddr); card 558 drivers/isdn/hardware/mISDN/w6692.c struct w6692_hw *card = wch->bch.hw; card 560 drivers/isdn/hardware/mISDN/w6692.c if ((!(card->fmask & pots)) || card 566 drivers/isdn/hardware/mISDN/w6692.c card->pctl |= ((wch->bch.nr & 2) ? W_PCTL_PCX : 0); card 567 drivers/isdn/hardware/mISDN/w6692.c WriteW6692(card, W_PCTL, card->pctl); card 575 drivers/isdn/hardware/mISDN/w6692.c struct w6692_hw *card = wch->bch.hw; card 577 drivers/isdn/hardware/mISDN/w6692.c if (!(card->fmask & pots)) card 589 drivers/isdn/hardware/mISDN/w6692.c struct w6692_hw *card; card 591 drivers/isdn/hardware/mISDN/w6692.c card = wch->bch.hw; card 592 drivers/isdn/hardware/mISDN/w6692.c pr_debug("%s: B%d protocol %x-->%x\n", card->name, card 596 drivers/isdn/hardware/mISDN/w6692.c if ((card->fmask & pots) && (wch->b_mode & W_B_MODE_EPCM)) card 624 drivers/isdn/hardware/mISDN/w6692.c pr_info("%s: protocol %x not known\n", card->name, pr); card 648 drivers/isdn/hardware/mISDN/w6692.c W6692B_interrupt(struct w6692_hw *card, int ch) card 650 drivers/isdn/hardware/mISDN/w6692.c struct w6692_ch *wch = &card->bc[ch]; card 655 drivers/isdn/hardware/mISDN/w6692.c pr_debug("%s: B%d EXIR %02x\n", card->name, wch->bch.nr, stat); card 661 drivers/isdn/hardware/mISDN/w6692.c pr_debug("%s: B%d RDOV proto=%x\n", card->name, card 670 drivers/isdn/hardware/mISDN/w6692.c card->name, wch->bch.nr); card 677 drivers/isdn/hardware/mISDN/w6692.c card->name, wch->bch.nr); card 700 drivers/isdn/hardware/mISDN/w6692.c pr_debug("%s: B%d RDOV proto=%x\n", card->name, card 716 drivers/isdn/hardware/mISDN/w6692.c pr_debug("%s: B%d RDOV IRQ proto=%x\n", card->name, card 728 drivers/isdn/hardware/mISDN/w6692.c pr_debug("%s: B%d star %02x\n", card->name, card 732 drivers/isdn/hardware/mISDN/w6692.c pr_warning("%s: B%d XDOW proto=%x\n", card->name, card 750 drivers/isdn/hardware/mISDN/w6692.c pr_warning("%s: B%d XDUN proto=%x\n", card->name, card 769 drivers/isdn/hardware/mISDN/w6692.c struct w6692_hw *card = dev_id; card 772 drivers/isdn/hardware/mISDN/w6692.c spin_lock(&card->lock); card 773 drivers/isdn/hardware/mISDN/w6692.c ista = ReadW6692(card, W_ISTA); card 774 drivers/isdn/hardware/mISDN/w6692.c if ((ista | card->imask) == card->imask) { card 776 drivers/isdn/hardware/mISDN/w6692.c spin_unlock(&card->lock); card 779 drivers/isdn/hardware/mISDN/w6692.c card->irqcnt++; card 780 drivers/isdn/hardware/mISDN/w6692.c pr_debug("%s: ista %02x\n", card->name, ista); card 781 drivers/isdn/hardware/mISDN/w6692.c ista &= ~card->imask; card 783 drivers/isdn/hardware/mISDN/w6692.c W6692B_interrupt(card, 0); card 785 drivers/isdn/hardware/mISDN/w6692.c W6692B_interrupt(card, 1); card 787 drivers/isdn/hardware/mISDN/w6692.c handle_rxD(card); card 789 drivers/isdn/hardware/mISDN/w6692.c W6692_empty_Dfifo(card, W_D_FIFO_THRESH); card 791 drivers/isdn/hardware/mISDN/w6692.c handle_txD(card); card 793 drivers/isdn/hardware/mISDN/w6692.c handle_statusD(card); card 795 drivers/isdn/hardware/mISDN/w6692.c pr_debug("%s: W6692 spurious XINT!\n", card->name); card 797 drivers/isdn/hardware/mISDN/w6692.c spin_unlock(&card->lock); card 805 drivers/isdn/hardware/mISDN/w6692.c struct w6692_hw *card = dch->hw; card 810 drivers/isdn/hardware/mISDN/w6692.c spin_lock_irqsave(&card->lock, flags); card 811 drivers/isdn/hardware/mISDN/w6692.c rbch = ReadW6692(card, W_D_RBCH); card 812 drivers/isdn/hardware/mISDN/w6692.c star = ReadW6692(card, W_D_STAR); card 814 drivers/isdn/hardware/mISDN/w6692.c card->name, rbch, star); card 824 drivers/isdn/hardware/mISDN/w6692.c card->name); card 826 drivers/isdn/hardware/mISDN/w6692.c WriteW6692(card, W_D_CMDR, W_D_CMDR_XRST); card 828 drivers/isdn/hardware/mISDN/w6692.c spin_unlock_irqrestore(&card->lock, flags); card 832 drivers/isdn/hardware/mISDN/w6692.c static void initW6692(struct w6692_hw *card) card 836 drivers/isdn/hardware/mISDN/w6692.c timer_setup(&card->dch.timer, dbusy_timer_handler, 0); card 837 drivers/isdn/hardware/mISDN/w6692.c w6692_mode(&card->bc[0], ISDN_P_NONE); card 838 drivers/isdn/hardware/mISDN/w6692.c w6692_mode(&card->bc[1], ISDN_P_NONE); card 839 drivers/isdn/hardware/mISDN/w6692.c WriteW6692(card, W_D_CTL, 0x00); card 840 drivers/isdn/hardware/mISDN/w6692.c disable_hwirq(card); card 841 drivers/isdn/hardware/mISDN/w6692.c WriteW6692(card, W_D_SAM, 0xff); card 842 drivers/isdn/hardware/mISDN/w6692.c WriteW6692(card, W_D_TAM, 0xff); card 843 drivers/isdn/hardware/mISDN/w6692.c WriteW6692(card, W_D_MODE, W_D_MODE_RACT); card 844 drivers/isdn/hardware/mISDN/w6692.c card->state = W_L1CMD_RST; card 845 drivers/isdn/hardware/mISDN/w6692.c ph_command(card, W_L1CMD_RST); card 846 drivers/isdn/hardware/mISDN/w6692.c ph_command(card, W_L1CMD_ECK); card 848 drivers/isdn/hardware/mISDN/w6692.c card->imask = 0x18; card 849 drivers/isdn/hardware/mISDN/w6692.c WriteW6692(card, W_D_EXIM, 0x00); card 850 drivers/isdn/hardware/mISDN/w6692.c WriteW6692B(&card->bc[0], W_B_EXIM, 0); card 851 drivers/isdn/hardware/mISDN/w6692.c WriteW6692B(&card->bc[1], W_B_EXIM, 0); card 853 drivers/isdn/hardware/mISDN/w6692.c WriteW6692(card, W_D_CMDR, W_D_CMDR_RRST | W_D_CMDR_XRST); card 855 drivers/isdn/hardware/mISDN/w6692.c WriteW6692B(&card->bc[0], W_B_CMDR, W_B_CMDR_RRST | W_B_CMDR_XRST); card 856 drivers/isdn/hardware/mISDN/w6692.c WriteW6692B(&card->bc[1], W_B_CMDR, W_B_CMDR_RRST | W_B_CMDR_XRST); card 858 drivers/isdn/hardware/mISDN/w6692.c if (card->subtype == W6692_USR) { card 863 drivers/isdn/hardware/mISDN/w6692.c card->pctl = 0x80; card 864 drivers/isdn/hardware/mISDN/w6692.c card->xdata = 0; card 865 drivers/isdn/hardware/mISDN/w6692.c WriteW6692(card, W_PCTL, card->pctl); card 866 drivers/isdn/hardware/mISDN/w6692.c WriteW6692(card, W_XDATA, card->xdata); card 868 drivers/isdn/hardware/mISDN/w6692.c card->pctl = W_PCTL_OE5 | W_PCTL_OE4 | W_PCTL_OE2 | card 870 drivers/isdn/hardware/mISDN/w6692.c card->xaddr = 0x00;/* all sw off */ card 871 drivers/isdn/hardware/mISDN/w6692.c if (card->fmask & pots) card 872 drivers/isdn/hardware/mISDN/w6692.c card->xdata |= 0x06; /* POWER UP/ LED OFF / ALAW */ card 873 drivers/isdn/hardware/mISDN/w6692.c if (card->fmask & led) card 874 drivers/isdn/hardware/mISDN/w6692.c card->xdata |= 0x04; /* LED OFF */ card 875 drivers/isdn/hardware/mISDN/w6692.c if ((card->fmask & pots) || (card->fmask & led)) { card 876 drivers/isdn/hardware/mISDN/w6692.c WriteW6692(card, W_PCTL, card->pctl); card 877 drivers/isdn/hardware/mISDN/w6692.c WriteW6692(card, W_XADDR, card->xaddr); card 878 drivers/isdn/hardware/mISDN/w6692.c WriteW6692(card, W_XDATA, card->xdata); card 879 drivers/isdn/hardware/mISDN/w6692.c val = ReadW6692(card, W_XADDR); card 882 drivers/isdn/hardware/mISDN/w6692.c card->name, val); card 888 drivers/isdn/hardware/mISDN/w6692.c reset_w6692(struct w6692_hw *card) card 890 drivers/isdn/hardware/mISDN/w6692.c WriteW6692(card, W_D_CTL, W_D_CTL_SRST); card 892 drivers/isdn/hardware/mISDN/w6692.c WriteW6692(card, W_D_CTL, 0); card 896 drivers/isdn/hardware/mISDN/w6692.c init_card(struct w6692_hw *card) card 901 drivers/isdn/hardware/mISDN/w6692.c spin_lock_irqsave(&card->lock, flags); card 902 drivers/isdn/hardware/mISDN/w6692.c disable_hwirq(card); card 903 drivers/isdn/hardware/mISDN/w6692.c spin_unlock_irqrestore(&card->lock, flags); card 904 drivers/isdn/hardware/mISDN/w6692.c if (request_irq(card->irq, w6692_irq, IRQF_SHARED, card->name, card)) { card 905 drivers/isdn/hardware/mISDN/w6692.c pr_info("%s: couldn't get interrupt %d\n", card->name, card 906 drivers/isdn/hardware/mISDN/w6692.c card->irq); card 910 drivers/isdn/hardware/mISDN/w6692.c spin_lock_irqsave(&card->lock, flags); card 911 drivers/isdn/hardware/mISDN/w6692.c initW6692(card); card 912 drivers/isdn/hardware/mISDN/w6692.c enable_hwirq(card); card 913 drivers/isdn/hardware/mISDN/w6692.c spin_unlock_irqrestore(&card->lock, flags); card 917 drivers/isdn/hardware/mISDN/w6692.c pr_notice("%s: IRQ %d count %d\n", card->name, card 918 drivers/isdn/hardware/mISDN/w6692.c card->irq, card->irqcnt); card 919 drivers/isdn/hardware/mISDN/w6692.c if (!card->irqcnt) { card 921 drivers/isdn/hardware/mISDN/w6692.c card->name, card->irq, 3 - cnt); card 922 drivers/isdn/hardware/mISDN/w6692.c reset_w6692(card); card 926 drivers/isdn/hardware/mISDN/w6692.c free_irq(card->irq, card); card 935 drivers/isdn/hardware/mISDN/w6692.c struct w6692_hw *card = bch->hw; card 942 drivers/isdn/hardware/mISDN/w6692.c spin_lock_irqsave(&card->lock, flags); card 948 drivers/isdn/hardware/mISDN/w6692.c spin_unlock_irqrestore(&card->lock, flags); card 951 drivers/isdn/hardware/mISDN/w6692.c spin_lock_irqsave(&card->lock, flags); card 956 drivers/isdn/hardware/mISDN/w6692.c spin_unlock_irqrestore(&card->lock, flags); card 962 drivers/isdn/hardware/mISDN/w6692.c spin_lock_irqsave(&card->lock, flags); card 965 drivers/isdn/hardware/mISDN/w6692.c spin_unlock_irqrestore(&card->lock, flags); card 972 drivers/isdn/hardware/mISDN/w6692.c card->name, __func__, hh->prim, hh->id); card 987 drivers/isdn/hardware/mISDN/w6692.c open_bchannel(struct w6692_hw *card, struct channel_req *rq) card 995 drivers/isdn/hardware/mISDN/w6692.c bch = &card->bc[rq->adr.channel - 1].bch; card 1004 drivers/isdn/hardware/mISDN/w6692.c channel_ctrl(struct w6692_hw *card, struct mISDN_ctrl_req *cq) card 1013 drivers/isdn/hardware/mISDN/w6692.c ret = l1_event(card->dch.l1, HW_TIMER3_VALUE | (cq->p1 & 0xff)); card 1016 drivers/isdn/hardware/mISDN/w6692.c pr_info("%s: unknown CTRL OP %x\n", card->name, cq->op); card 1028 drivers/isdn/hardware/mISDN/w6692.c struct w6692_hw *card = bch->hw; card 1032 drivers/isdn/hardware/mISDN/w6692.c pr_debug("%s: %s cmd:%x %p\n", card->name, __func__, cmd, arg); card 1037 drivers/isdn/hardware/mISDN/w6692.c spin_lock_irqsave(&card->lock, flags); card 1040 drivers/isdn/hardware/mISDN/w6692.c spin_unlock_irqrestore(&card->lock, flags); card 1051 drivers/isdn/hardware/mISDN/w6692.c card->name, __func__, cmd); card 1061 drivers/isdn/hardware/mISDN/w6692.c struct w6692_hw *card = container_of(dch, struct w6692_hw, dch); card 1069 drivers/isdn/hardware/mISDN/w6692.c spin_lock_irqsave(&card->lock, flags); card 1073 drivers/isdn/hardware/mISDN/w6692.c W6692_fill_Dfifo(card); card 1075 drivers/isdn/hardware/mISDN/w6692.c spin_unlock_irqrestore(&card->lock, flags); card 1078 drivers/isdn/hardware/mISDN/w6692.c spin_unlock_irqrestore(&card->lock, flags); card 1097 drivers/isdn/hardware/mISDN/w6692.c struct w6692_hw *card = container_of(dch, struct w6692_hw, dch); card 1100 drivers/isdn/hardware/mISDN/w6692.c pr_debug("%s: cmd(%x) state(%02x)\n", card->name, cmd, card->state); card 1103 drivers/isdn/hardware/mISDN/w6692.c spin_lock_irqsave(&card->lock, flags); card 1104 drivers/isdn/hardware/mISDN/w6692.c ph_command(card, W_L1CMD_AR8); card 1105 drivers/isdn/hardware/mISDN/w6692.c spin_unlock_irqrestore(&card->lock, flags); card 1108 drivers/isdn/hardware/mISDN/w6692.c spin_lock_irqsave(&card->lock, flags); card 1109 drivers/isdn/hardware/mISDN/w6692.c ph_command(card, W_L1CMD_AR10); card 1110 drivers/isdn/hardware/mISDN/w6692.c spin_unlock_irqrestore(&card->lock, flags); card 1113 drivers/isdn/hardware/mISDN/w6692.c spin_lock_irqsave(&card->lock, flags); card 1114 drivers/isdn/hardware/mISDN/w6692.c if (card->state != W_L1IND_DRD) card 1115 drivers/isdn/hardware/mISDN/w6692.c ph_command(card, W_L1CMD_RST); card 1116 drivers/isdn/hardware/mISDN/w6692.c ph_command(card, W_L1CMD_ECK); card 1117 drivers/isdn/hardware/mISDN/w6692.c spin_unlock_irqrestore(&card->lock, flags); card 1135 drivers/isdn/hardware/mISDN/w6692.c spin_lock_irqsave(&card->lock, flags); card 1136 drivers/isdn/hardware/mISDN/w6692.c ph_command(card, W_L1CMD_ECK); card 1137 drivers/isdn/hardware/mISDN/w6692.c spin_unlock_irqrestore(&card->lock, flags); card 1150 drivers/isdn/hardware/mISDN/w6692.c pr_debug("%s: %s unknown command %x\n", card->name, card 1158 drivers/isdn/hardware/mISDN/w6692.c open_dchannel(struct w6692_hw *card, struct channel_req *rq, void *caller) card 1160 drivers/isdn/hardware/mISDN/w6692.c pr_debug("%s: %s dev(%d) open from %p\n", card->name, __func__, card 1161 drivers/isdn/hardware/mISDN/w6692.c card->dch.dev.id, caller); card 1167 drivers/isdn/hardware/mISDN/w6692.c rq->ch = &card->dch.dev.D; card 1169 drivers/isdn/hardware/mISDN/w6692.c if (card->dch.state == 7) card 1180 drivers/isdn/hardware/mISDN/w6692.c struct w6692_hw *card = container_of(dch, struct w6692_hw, dch); card 1184 drivers/isdn/hardware/mISDN/w6692.c pr_debug("%s: DCTRL: %x %p\n", card->name, cmd, arg); card 1189 drivers/isdn/hardware/mISDN/w6692.c err = open_dchannel(card, rq, __builtin_return_address(0)); card 1191 drivers/isdn/hardware/mISDN/w6692.c err = open_bchannel(card, rq); card 1195 drivers/isdn/hardware/mISDN/w6692.c pr_info("%s: cannot get module\n", card->name); card 1198 drivers/isdn/hardware/mISDN/w6692.c pr_debug("%s: dev(%d) close from %p\n", card->name, card 1203 drivers/isdn/hardware/mISDN/w6692.c err = channel_ctrl(card, arg); card 1206 drivers/isdn/hardware/mISDN/w6692.c pr_debug("%s: unknown DCTRL command %x\n", card->name, cmd); card 1213 drivers/isdn/hardware/mISDN/w6692.c setup_w6692(struct w6692_hw *card) card 1217 drivers/isdn/hardware/mISDN/w6692.c if (!request_region(card->addr, 256, card->name)) { card 1218 drivers/isdn/hardware/mISDN/w6692.c pr_info("%s: config port %x-%x already in use\n", card->name, card 1219 drivers/isdn/hardware/mISDN/w6692.c card->addr, card->addr + 255); card 1222 drivers/isdn/hardware/mISDN/w6692.c W6692Version(card); card 1223 drivers/isdn/hardware/mISDN/w6692.c card->bc[0].addr = card->addr; card 1224 drivers/isdn/hardware/mISDN/w6692.c card->bc[1].addr = card->addr + 0x40; card 1225 drivers/isdn/hardware/mISDN/w6692.c val = ReadW6692(card, W_ISTA); card 1227 drivers/isdn/hardware/mISDN/w6692.c pr_notice("%s ISTA=%02x\n", card->name, val); card 1228 drivers/isdn/hardware/mISDN/w6692.c val = ReadW6692(card, W_IMASK); card 1230 drivers/isdn/hardware/mISDN/w6692.c pr_notice("%s IMASK=%02x\n", card->name, val); card 1231 drivers/isdn/hardware/mISDN/w6692.c val = ReadW6692(card, W_D_EXIR); card 1233 drivers/isdn/hardware/mISDN/w6692.c pr_notice("%s D_EXIR=%02x\n", card->name, val); card 1234 drivers/isdn/hardware/mISDN/w6692.c val = ReadW6692(card, W_D_EXIM); card 1236 drivers/isdn/hardware/mISDN/w6692.c pr_notice("%s D_EXIM=%02x\n", card->name, val); card 1237 drivers/isdn/hardware/mISDN/w6692.c val = ReadW6692(card, W_D_RSTA); card 1239 drivers/isdn/hardware/mISDN/w6692.c pr_notice("%s D_RSTA=%02x\n", card->name, val); card 1244 drivers/isdn/hardware/mISDN/w6692.c release_card(struct w6692_hw *card) card 1248 drivers/isdn/hardware/mISDN/w6692.c spin_lock_irqsave(&card->lock, flags); card 1249 drivers/isdn/hardware/mISDN/w6692.c disable_hwirq(card); card 1250 drivers/isdn/hardware/mISDN/w6692.c w6692_mode(&card->bc[0], ISDN_P_NONE); card 1251 drivers/isdn/hardware/mISDN/w6692.c w6692_mode(&card->bc[1], ISDN_P_NONE); card 1252 drivers/isdn/hardware/mISDN/w6692.c if ((card->fmask & led) || card->subtype == W6692_USR) { card 1253 drivers/isdn/hardware/mISDN/w6692.c card->xdata |= 0x04; /* LED OFF */ card 1254 drivers/isdn/hardware/mISDN/w6692.c WriteW6692(card, W_XDATA, card->xdata); card 1256 drivers/isdn/hardware/mISDN/w6692.c spin_unlock_irqrestore(&card->lock, flags); card 1257 drivers/isdn/hardware/mISDN/w6692.c free_irq(card->irq, card); card 1258 drivers/isdn/hardware/mISDN/w6692.c l1_event(card->dch.l1, CLOSE_CHANNEL); card 1259 drivers/isdn/hardware/mISDN/w6692.c mISDN_unregister_device(&card->dch.dev); card 1260 drivers/isdn/hardware/mISDN/w6692.c release_region(card->addr, 256); card 1261 drivers/isdn/hardware/mISDN/w6692.c mISDN_freebchannel(&card->bc[1].bch); card 1262 drivers/isdn/hardware/mISDN/w6692.c mISDN_freebchannel(&card->bc[0].bch); card 1263 drivers/isdn/hardware/mISDN/w6692.c mISDN_freedchannel(&card->dch); card 1265 drivers/isdn/hardware/mISDN/w6692.c list_del(&card->list); card 1267 drivers/isdn/hardware/mISDN/w6692.c pci_disable_device(card->pdev); card 1268 drivers/isdn/hardware/mISDN/w6692.c pci_set_drvdata(card->pdev, NULL); card 1269 drivers/isdn/hardware/mISDN/w6692.c kfree(card); card 1273 drivers/isdn/hardware/mISDN/w6692.c setup_instance(struct w6692_hw *card) card 1278 drivers/isdn/hardware/mISDN/w6692.c snprintf(card->name, MISDN_MAX_IDLEN - 1, "w6692.%d", w6692_cnt + 1); card 1280 drivers/isdn/hardware/mISDN/w6692.c list_add_tail(&card->list, &Cards); card 1282 drivers/isdn/hardware/mISDN/w6692.c card->fmask = (1 << w6692_cnt); card 1283 drivers/isdn/hardware/mISDN/w6692.c _set_debug(card); card 1284 drivers/isdn/hardware/mISDN/w6692.c spin_lock_init(&card->lock); card 1285 drivers/isdn/hardware/mISDN/w6692.c mISDN_initdchannel(&card->dch, MAX_DFRAME_LEN_L1, W6692_ph_bh); card 1286 drivers/isdn/hardware/mISDN/w6692.c card->dch.dev.Dprotocols = (1 << ISDN_P_TE_S0); card 1287 drivers/isdn/hardware/mISDN/w6692.c card->dch.dev.D.send = w6692_l2l1D; card 1288 drivers/isdn/hardware/mISDN/w6692.c card->dch.dev.D.ctrl = w6692_dctrl; card 1289 drivers/isdn/hardware/mISDN/w6692.c card->dch.dev.Bprotocols = (1 << (ISDN_P_B_RAW & ISDN_P_B_MASK)) | card 1291 drivers/isdn/hardware/mISDN/w6692.c card->dch.hw = card; card 1292 drivers/isdn/hardware/mISDN/w6692.c card->dch.dev.nrbchan = 2; card 1294 drivers/isdn/hardware/mISDN/w6692.c mISDN_initbchannel(&card->bc[i].bch, MAX_DATA_MEM, card 1296 drivers/isdn/hardware/mISDN/w6692.c card->bc[i].bch.hw = card; card 1297 drivers/isdn/hardware/mISDN/w6692.c card->bc[i].bch.nr = i + 1; card 1298 drivers/isdn/hardware/mISDN/w6692.c card->bc[i].bch.ch.nr = i + 1; card 1299 drivers/isdn/hardware/mISDN/w6692.c card->bc[i].bch.ch.send = w6692_l2l1B; card 1300 drivers/isdn/hardware/mISDN/w6692.c card->bc[i].bch.ch.ctrl = w6692_bctrl; card 1301 drivers/isdn/hardware/mISDN/w6692.c set_channelmap(i + 1, card->dch.dev.channelmap); card 1302 drivers/isdn/hardware/mISDN/w6692.c list_add(&card->bc[i].bch.ch.list, &card->dch.dev.bchannels); card 1304 drivers/isdn/hardware/mISDN/w6692.c err = setup_w6692(card); card 1307 drivers/isdn/hardware/mISDN/w6692.c err = mISDN_register_device(&card->dch.dev, &card->pdev->dev, card 1308 drivers/isdn/hardware/mISDN/w6692.c card->name); card 1311 drivers/isdn/hardware/mISDN/w6692.c err = init_card(card); card 1314 drivers/isdn/hardware/mISDN/w6692.c err = create_l1(&card->dch, w6692_l1callback); card 1321 drivers/isdn/hardware/mISDN/w6692.c free_irq(card->irq, card); card 1323 drivers/isdn/hardware/mISDN/w6692.c mISDN_unregister_device(&card->dch.dev); card 1325 drivers/isdn/hardware/mISDN/w6692.c release_region(card->addr, 256); card 1327 drivers/isdn/hardware/mISDN/w6692.c mISDN_freebchannel(&card->bc[1].bch); card 1328 drivers/isdn/hardware/mISDN/w6692.c mISDN_freebchannel(&card->bc[0].bch); card 1329 drivers/isdn/hardware/mISDN/w6692.c mISDN_freedchannel(&card->dch); card 1331 drivers/isdn/hardware/mISDN/w6692.c list_del(&card->list); card 1333 drivers/isdn/hardware/mISDN/w6692.c kfree(card); card 1341 drivers/isdn/hardware/mISDN/w6692.c struct w6692_hw *card; card 1344 drivers/isdn/hardware/mISDN/w6692.c card = kzalloc(sizeof(struct w6692_hw), GFP_KERNEL); card 1345 drivers/isdn/hardware/mISDN/w6692.c if (!card) { card 1349 drivers/isdn/hardware/mISDN/w6692.c card->pdev = pdev; card 1350 drivers/isdn/hardware/mISDN/w6692.c card->subtype = m->subtype; card 1353 drivers/isdn/hardware/mISDN/w6692.c kfree(card); card 1360 drivers/isdn/hardware/mISDN/w6692.c card->addr = pci_resource_start(pdev, 1); card 1361 drivers/isdn/hardware/mISDN/w6692.c card->irq = pdev->irq; card 1362 drivers/isdn/hardware/mISDN/w6692.c pci_set_drvdata(pdev, card); card 1363 drivers/isdn/hardware/mISDN/w6692.c err = setup_instance(card); card 1372 drivers/isdn/hardware/mISDN/w6692.c struct w6692_hw *card = pci_get_drvdata(pdev); card 1374 drivers/isdn/hardware/mISDN/w6692.c if (card) card 1375 drivers/isdn/hardware/mISDN/w6692.c release_card(card); card 444 drivers/media/common/saa7146/saa7146_video.c strscpy((char *)cap->card, dev->ext->name, sizeof(cap->card)); card 427 drivers/media/dvb-frontends/rtl2832_sdr.c strscpy(cap->card, dev->vdev.name, sizeof(cap->card)); card 45 drivers/media/firewire/firedtv-fw.c rcode = fw_run_transaction(device->card, tcode, device->node_id, card 142 drivers/media/firewire/firedtv-fw.c ctx->context = fw_iso_context_create(device->card, card 150 drivers/media/firewire/firedtv-fw.c err = fw_iso_buffer_init(&ctx->buffer, device->card, card 176 drivers/media/firewire/firedtv-fw.c fw_iso_buffer_destroy(&ctx->buffer, device->card); card 190 drivers/media/firewire/firedtv-fw.c fw_iso_buffer_destroy(&ctx->buffer, device_of(fdtv)->card); card 195 drivers/media/firewire/firedtv-fw.c static void handle_fcp(struct fw_card *card, struct fw_request *request, card 218 drivers/media/firewire/firedtv-fw.c if (device->card == card && card 574 drivers/media/i2c/video-i2c.c strscpy(vcap->card, data->vdev.name, sizeof(vcap->card)); card 86 drivers/media/pci/bt8xx/bttv-cards.c static unsigned int card[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = UNSET }; card 108 drivers/media/pci/bt8xx/bttv-cards.c module_param_array(card, int, NULL, 0444); card 119 drivers/media/pci/bt8xx/bttv-cards.c MODULE_PARM_DESC(card,"specify TV/grabber card model, see CARDLIST file for a list"); card 2925 drivers/media/pci/bt8xx/bttv-cards.c if (card[btv->c.nr] < bttv_num_tvcards) card 2926 drivers/media/pci/bt8xx/bttv-cards.c btv->c.type=card[btv->c.nr]; card 2931 drivers/media/pci/bt8xx/bttv-cards.c card[btv->c.nr] < bttv_num_tvcards card 4024 drivers/media/pci/bt8xx/bttv-cards.c if (card[btv->c.nr] < bttv_num_tvcards) { card 180 drivers/media/pci/bt8xx/bttv-driver.c static DEVICE_ATTR(card, S_IRUGO, show_card, NULL); card 2445 drivers/media/pci/bt8xx/bttv-driver.c strscpy(cap->card, btv->video_dev.name, sizeof(cap->card)); card 34 drivers/media/pci/bt8xx/bttv-if.c struct pci_dev* bttv_get_pcidev(unsigned int card) card 36 drivers/media/pci/bt8xx/bttv-if.c if (card >= bttv_num) card 38 drivers/media/pci/bt8xx/bttv-if.c if (!bttvs[card]) card 41 drivers/media/pci/bt8xx/bttv-if.c return bttvs[card]->c.pci; card 45 drivers/media/pci/bt8xx/bttv-if.c int bttv_gpio_enable(unsigned int card, unsigned long mask, unsigned long data) card 49 drivers/media/pci/bt8xx/bttv-if.c if (card >= bttv_num) { card 53 drivers/media/pci/bt8xx/bttv-if.c btv = bttvs[card]; card 63 drivers/media/pci/bt8xx/bttv-if.c int bttv_read_gpio(unsigned int card, unsigned long *data) card 67 drivers/media/pci/bt8xx/bttv-if.c if (card >= bttv_num) { card 71 drivers/media/pci/bt8xx/bttv-if.c btv = bttvs[card]; card 85 drivers/media/pci/bt8xx/bttv-if.c int bttv_write_gpio(unsigned int card, unsigned long mask, unsigned long data) card 89 drivers/media/pci/bt8xx/bttv-if.c if (card >= bttv_num) { card 93 drivers/media/pci/bt8xx/bttv-if.c btv = bttvs[card]; card 305 drivers/media/pci/bt8xx/bttv.h extern struct pci_dev* bttv_get_pcidev(unsigned int card); card 311 drivers/media/pci/bt8xx/bttv.h extern int bttv_gpio_enable(unsigned int card, card 317 drivers/media/pci/bt8xx/bttv.h extern int bttv_read_gpio(unsigned int card, unsigned long *data); card 323 drivers/media/pci/bt8xx/bttv.h extern int bttv_write_gpio(unsigned int card, card 44 drivers/media/pci/bt8xx/dvb-bt8xx.c struct dvb_bt8xx_card *card = (struct dvb_bt8xx_card *)data; card 46 drivers/media/pci/bt8xx/dvb-bt8xx.c dprintk("%d\n", card->bt->finished_block); card 48 drivers/media/pci/bt8xx/dvb-bt8xx.c while (card->bt->last_block != card->bt->finished_block) { card 49 drivers/media/pci/bt8xx/dvb-bt8xx.c (card->bt->TS_Size ? dvb_dmx_swfilter_204 : dvb_dmx_swfilter) card 50 drivers/media/pci/bt8xx/dvb-bt8xx.c (&card->demux, card 51 drivers/media/pci/bt8xx/dvb-bt8xx.c &card->bt->buf_cpu[card->bt->last_block * card 52 drivers/media/pci/bt8xx/dvb-bt8xx.c card->bt->block_bytes], card 53 drivers/media/pci/bt8xx/dvb-bt8xx.c card->bt->block_bytes); card 54 drivers/media/pci/bt8xx/dvb-bt8xx.c card->bt->last_block = (card->bt->last_block + 1) % card 55 drivers/media/pci/bt8xx/dvb-bt8xx.c card->bt->block_count; card 62 drivers/media/pci/bt8xx/dvb-bt8xx.c struct dvb_bt8xx_card *card = dvbdmx->priv; card 70 drivers/media/pci/bt8xx/dvb-bt8xx.c mutex_lock(&card->lock); card 71 drivers/media/pci/bt8xx/dvb-bt8xx.c card->nfeeds++; card 72 drivers/media/pci/bt8xx/dvb-bt8xx.c rc = card->nfeeds; card 73 drivers/media/pci/bt8xx/dvb-bt8xx.c if (card->nfeeds == 1) card 74 drivers/media/pci/bt8xx/dvb-bt8xx.c bt878_start(card->bt, card->gpio_mode, card 75 drivers/media/pci/bt8xx/dvb-bt8xx.c card->op_sync_orin, card->irq_err_ignore); card 76 drivers/media/pci/bt8xx/dvb-bt8xx.c mutex_unlock(&card->lock); card 83 drivers/media/pci/bt8xx/dvb-bt8xx.c struct dvb_bt8xx_card *card = dvbdmx->priv; card 90 drivers/media/pci/bt8xx/dvb-bt8xx.c mutex_lock(&card->lock); card 91 drivers/media/pci/bt8xx/dvb-bt8xx.c card->nfeeds--; card 92 drivers/media/pci/bt8xx/dvb-bt8xx.c if (card->nfeeds == 0) card 93 drivers/media/pci/bt8xx/dvb-bt8xx.c bt878_stop(card->bt); card 94 drivers/media/pci/bt8xx/dvb-bt8xx.c mutex_unlock(&card->lock); card 240 drivers/media/pci/bt8xx/dvb-bt8xx.c struct dvb_bt8xx_card *card = fe->dvb->priv; card 242 drivers/media/pci/bt8xx/dvb-bt8xx.c bttv_gpio_enable(card->bttv_nr, 1, 1); /* output */ card 243 drivers/media/pci/bt8xx/dvb-bt8xx.c bttv_write_gpio(card->bttv_nr, 1, 1); /* relay on */ card 250 drivers/media/pci/bt8xx/dvb-bt8xx.c struct dvb_bt8xx_card *card = fe->dvb->priv; card 252 drivers/media/pci/bt8xx/dvb-bt8xx.c bttv_write_gpio(card->bttv_nr, 1, 0); /* relay off */ card 264 drivers/media/pci/bt8xx/dvb-bt8xx.c struct dvb_bt8xx_card *card = (struct dvb_bt8xx_card *) fe->dvb->priv; card 298 drivers/media/pci/bt8xx/dvb-bt8xx.c i2c_transfer(card->i2c_adapter, &msg, 1); card 456 drivers/media/pci/bt8xx/dvb-bt8xx.c struct dvb_bt8xx_card *card = (struct dvb_bt8xx_card *) fe->dvb->priv; card 479 drivers/media/pci/bt8xx/dvb-bt8xx.c i2c_transfer(card->i2c_adapter, &msg, 1); card 581 drivers/media/pci/bt8xx/dvb-bt8xx.c static void frontend_init(struct dvb_bt8xx_card *card, u32 type) card 587 drivers/media/pci/bt8xx/dvb-bt8xx.c card->fe = dvb_attach(mt352_attach, &thomson_dtt7579_config, card->i2c_adapter); card 589 drivers/media/pci/bt8xx/dvb-bt8xx.c if (card->fe == NULL) card 590 drivers/media/pci/bt8xx/dvb-bt8xx.c card->fe = dvb_attach(zl10353_attach, &thomson_dtt7579_zl10353_config, card 591 drivers/media/pci/bt8xx/dvb-bt8xx.c card->i2c_adapter); card 593 drivers/media/pci/bt8xx/dvb-bt8xx.c if (card->fe != NULL) { card 594 drivers/media/pci/bt8xx/dvb-bt8xx.c card->fe->ops.tuner_ops.calc_regs = thomson_dtt7579_tuner_calc_regs; card 595 drivers/media/pci/bt8xx/dvb-bt8xx.c card->fe->ops.info.frequency_min_hz = 174 * MHz; card 596 drivers/media/pci/bt8xx/dvb-bt8xx.c card->fe->ops.info.frequency_max_hz = 862 * MHz; card 601 drivers/media/pci/bt8xx/dvb-bt8xx.c lgdt330x_reset(card); card 602 drivers/media/pci/bt8xx/dvb-bt8xx.c card->fe = dvb_attach(lgdt330x_attach, &tdvs_tua6034_config, card 603 drivers/media/pci/bt8xx/dvb-bt8xx.c 0x0e, card->i2c_adapter); card 604 drivers/media/pci/bt8xx/dvb-bt8xx.c if (card->fe != NULL) { card 605 drivers/media/pci/bt8xx/dvb-bt8xx.c dvb_attach(simple_tuner_attach, card->fe, card 606 drivers/media/pci/bt8xx/dvb-bt8xx.c card->i2c_adapter, 0x61, card 619 drivers/media/pci/bt8xx/dvb-bt8xx.c digitv_alps_tded4_reset(card); card 620 drivers/media/pci/bt8xx/dvb-bt8xx.c card->fe = dvb_attach(nxt6000_attach, &vp3021_alps_tded4_config, card->i2c_adapter); card 621 drivers/media/pci/bt8xx/dvb-bt8xx.c if (card->fe != NULL) { card 622 drivers/media/pci/bt8xx/dvb-bt8xx.c card->fe->ops.tuner_ops.set_params = vp3021_alps_tded4_tuner_set_params; card 628 drivers/media/pci/bt8xx/dvb-bt8xx.c digitv_alps_tded4_reset(card); card 629 drivers/media/pci/bt8xx/dvb-bt8xx.c card->fe = dvb_attach(mt352_attach, &digitv_alps_tded4_config, card->i2c_adapter); card 631 drivers/media/pci/bt8xx/dvb-bt8xx.c if (card->fe != NULL) { card 632 drivers/media/pci/bt8xx/dvb-bt8xx.c card->fe->ops.tuner_ops.calc_regs = digitv_alps_tded4_tuner_calc_regs; card 638 drivers/media/pci/bt8xx/dvb-bt8xx.c card->fe = dvb_attach(sp887x_attach, µtune_mt7202dtf_config, card->i2c_adapter); card 639 drivers/media/pci/bt8xx/dvb-bt8xx.c if (card->fe) { card 640 drivers/media/pci/bt8xx/dvb-bt8xx.c card->fe->ops.tuner_ops.set_params = microtune_mt7202dtf_tuner_set_params; card 645 drivers/media/pci/bt8xx/dvb-bt8xx.c card->fe = dvb_attach(mt352_attach, &advbt771_samsung_tdtc9251dh0_config, card->i2c_adapter); card 646 drivers/media/pci/bt8xx/dvb-bt8xx.c if (card->fe != NULL) { card 647 drivers/media/pci/bt8xx/dvb-bt8xx.c card->fe->ops.tuner_ops.calc_regs = advbt771_samsung_tdtc9251dh0_tuner_calc_regs; card 648 drivers/media/pci/bt8xx/dvb-bt8xx.c card->fe->ops.info.frequency_min_hz = 174 * MHz; card 649 drivers/media/pci/bt8xx/dvb-bt8xx.c card->fe->ops.info.frequency_max_hz = 862 * MHz; card 662 drivers/media/pci/bt8xx/dvb-bt8xx.c state->i2c = card->i2c_adapter; card 663 drivers/media/pci/bt8xx/dvb-bt8xx.c state->bt = card->bt; card 666 drivers/media/pci/bt8xx/dvb-bt8xx.c if (dvb_attach(dst_attach, state, &card->dvb_adapter) == NULL) { card 673 drivers/media/pci/bt8xx/dvb-bt8xx.c card->fe = &state->frontend; card 675 drivers/media/pci/bt8xx/dvb-bt8xx.c dvb_attach(dst_ca_attach, state, &card->dvb_adapter); card 679 drivers/media/pci/bt8xx/dvb-bt8xx.c card->fe = dvb_attach(cx24110_attach, &pctvsat_config, card->i2c_adapter); card 680 drivers/media/pci/bt8xx/dvb-bt8xx.c if (card->fe) { card 681 drivers/media/pci/bt8xx/dvb-bt8xx.c card->fe->ops.tuner_ops.init = pinnsat_tuner_init; card 682 drivers/media/pci/bt8xx/dvb-bt8xx.c card->fe->ops.tuner_ops.sleep = pinnsat_tuner_sleep; card 683 drivers/media/pci/bt8xx/dvb-bt8xx.c card->fe->ops.tuner_ops.set_params = cx24108_tuner_set_params; card 688 drivers/media/pci/bt8xx/dvb-bt8xx.c card->fe = dvb_attach(or51211_attach, &or51211_config, card->i2c_adapter); card 689 drivers/media/pci/bt8xx/dvb-bt8xx.c if (card->fe != NULL) card 690 drivers/media/pci/bt8xx/dvb-bt8xx.c dvb_attach(simple_tuner_attach, card->fe, card 691 drivers/media/pci/bt8xx/dvb-bt8xx.c card->i2c_adapter, 0x61, card 696 drivers/media/pci/bt8xx/dvb-bt8xx.c if (card->fe == NULL) card 698 drivers/media/pci/bt8xx/dvb-bt8xx.c card->bt->dev->vendor, card 699 drivers/media/pci/bt8xx/dvb-bt8xx.c card->bt->dev->device, card 700 drivers/media/pci/bt8xx/dvb-bt8xx.c card->bt->dev->subsystem_vendor, card 701 drivers/media/pci/bt8xx/dvb-bt8xx.c card->bt->dev->subsystem_device); card 703 drivers/media/pci/bt8xx/dvb-bt8xx.c if (dvb_register_frontend(&card->dvb_adapter, card->fe)) { card 705 drivers/media/pci/bt8xx/dvb-bt8xx.c dvb_frontend_detach(card->fe); card 706 drivers/media/pci/bt8xx/dvb-bt8xx.c card->fe = NULL; card 710 drivers/media/pci/bt8xx/dvb-bt8xx.c static int dvb_bt8xx_load_card(struct dvb_bt8xx_card *card, u32 type) card 714 drivers/media/pci/bt8xx/dvb-bt8xx.c result = dvb_register_adapter(&card->dvb_adapter, card->card_name, card 715 drivers/media/pci/bt8xx/dvb-bt8xx.c THIS_MODULE, &card->bt->dev->dev, card 721 drivers/media/pci/bt8xx/dvb-bt8xx.c card->dvb_adapter.priv = card; card 723 drivers/media/pci/bt8xx/dvb-bt8xx.c card->bt->adapter = card->i2c_adapter; card 725 drivers/media/pci/bt8xx/dvb-bt8xx.c memset(&card->demux, 0, sizeof(struct dvb_demux)); card 727 drivers/media/pci/bt8xx/dvb-bt8xx.c card->demux.dmx.capabilities = DMX_TS_FILTERING | DMX_SECTION_FILTERING | DMX_MEMORY_BASED_FILTERING; card 729 drivers/media/pci/bt8xx/dvb-bt8xx.c card->demux.priv = card; card 730 drivers/media/pci/bt8xx/dvb-bt8xx.c card->demux.filternum = 256; card 731 drivers/media/pci/bt8xx/dvb-bt8xx.c card->demux.feednum = 256; card 732 drivers/media/pci/bt8xx/dvb-bt8xx.c card->demux.start_feed = dvb_bt8xx_start_feed; card 733 drivers/media/pci/bt8xx/dvb-bt8xx.c card->demux.stop_feed = dvb_bt8xx_stop_feed; card 734 drivers/media/pci/bt8xx/dvb-bt8xx.c card->demux.write_to_decoder = NULL; card 736 drivers/media/pci/bt8xx/dvb-bt8xx.c result = dvb_dmx_init(&card->demux); card 742 drivers/media/pci/bt8xx/dvb-bt8xx.c card->dmxdev.filternum = 256; card 743 drivers/media/pci/bt8xx/dvb-bt8xx.c card->dmxdev.demux = &card->demux.dmx; card 744 drivers/media/pci/bt8xx/dvb-bt8xx.c card->dmxdev.capabilities = 0; card 746 drivers/media/pci/bt8xx/dvb-bt8xx.c result = dvb_dmxdev_init(&card->dmxdev, &card->dvb_adapter); card 752 drivers/media/pci/bt8xx/dvb-bt8xx.c card->fe_hw.source = DMX_FRONTEND_0; card 754 drivers/media/pci/bt8xx/dvb-bt8xx.c result = card->demux.dmx.add_frontend(&card->demux.dmx, &card->fe_hw); card 760 drivers/media/pci/bt8xx/dvb-bt8xx.c card->fe_mem.source = DMX_MEMORY_FE; card 762 drivers/media/pci/bt8xx/dvb-bt8xx.c result = card->demux.dmx.add_frontend(&card->demux.dmx, &card->fe_mem); card 768 drivers/media/pci/bt8xx/dvb-bt8xx.c result = card->demux.dmx.connect_frontend(&card->demux.dmx, &card->fe_hw); card 774 drivers/media/pci/bt8xx/dvb-bt8xx.c result = dvb_net_init(&card->dvb_adapter, &card->dvbnet, &card->demux.dmx); card 780 drivers/media/pci/bt8xx/dvb-bt8xx.c tasklet_init(&card->bt->tasklet, dvb_bt8xx_task, (unsigned long) card); card 782 drivers/media/pci/bt8xx/dvb-bt8xx.c frontend_init(card, type); card 787 drivers/media/pci/bt8xx/dvb-bt8xx.c card->demux.dmx.disconnect_frontend(&card->demux.dmx); card 789 drivers/media/pci/bt8xx/dvb-bt8xx.c card->demux.dmx.remove_frontend(&card->demux.dmx, &card->fe_mem); card 791 drivers/media/pci/bt8xx/dvb-bt8xx.c card->demux.dmx.remove_frontend(&card->demux.dmx, &card->fe_hw); card 793 drivers/media/pci/bt8xx/dvb-bt8xx.c dvb_dmxdev_release(&card->dmxdev); card 795 drivers/media/pci/bt8xx/dvb-bt8xx.c dvb_dmx_release(&card->demux); card 797 drivers/media/pci/bt8xx/dvb-bt8xx.c dvb_unregister_adapter(&card->dvb_adapter); card 803 drivers/media/pci/bt8xx/dvb-bt8xx.c struct dvb_bt8xx_card *card; card 807 drivers/media/pci/bt8xx/dvb-bt8xx.c if (!(card = kzalloc(sizeof(struct dvb_bt8xx_card), GFP_KERNEL))) card 810 drivers/media/pci/bt8xx/dvb-bt8xx.c mutex_init(&card->lock); card 811 drivers/media/pci/bt8xx/dvb-bt8xx.c card->bttv_nr = sub->core->nr; card 812 drivers/media/pci/bt8xx/dvb-bt8xx.c strscpy(card->card_name, sub->core->v4l2_dev.name, card 813 drivers/media/pci/bt8xx/dvb-bt8xx.c sizeof(card->card_name)); card 814 drivers/media/pci/bt8xx/dvb-bt8xx.c card->i2c_adapter = &sub->core->i2c_adap; card 818 drivers/media/pci/bt8xx/dvb-bt8xx.c card->gpio_mode = 0x0400c060; card 821 drivers/media/pci/bt8xx/dvb-bt8xx.c card->op_sync_orin = BT878_RISC_SYNC_MASK; card 822 drivers/media/pci/bt8xx/dvb-bt8xx.c card->irq_err_ignore = BT878_AFBUS | BT878_AFDSR; card 826 drivers/media/pci/bt8xx/dvb-bt8xx.c card->gpio_mode = 0x0400C060; card 827 drivers/media/pci/bt8xx/dvb-bt8xx.c card->op_sync_orin = BT878_RISC_SYNC_MASK; card 828 drivers/media/pci/bt8xx/dvb-bt8xx.c card->irq_err_ignore = BT878_AFBUS | BT878_AFDSR; card 835 drivers/media/pci/bt8xx/dvb-bt8xx.c card->gpio_mode = 0x0400c060; card 836 drivers/media/pci/bt8xx/dvb-bt8xx.c card->op_sync_orin = BT878_RISC_SYNC_MASK; card 837 drivers/media/pci/bt8xx/dvb-bt8xx.c card->irq_err_ignore = BT878_AFBUS | BT878_AFDSR; card 842 drivers/media/pci/bt8xx/dvb-bt8xx.c card->gpio_mode = (1 << 26) | (1 << 14) | (1 << 5); card 843 drivers/media/pci/bt8xx/dvb-bt8xx.c card->op_sync_orin = BT878_RISC_SYNC_MASK; card 844 drivers/media/pci/bt8xx/dvb-bt8xx.c card->irq_err_ignore = BT878_AFBUS | BT878_AFDSR; card 849 drivers/media/pci/bt8xx/dvb-bt8xx.c card->gpio_mode = 0x0400402B; card 850 drivers/media/pci/bt8xx/dvb-bt8xx.c card->op_sync_orin = BT878_RISC_SYNC_MASK; card 851 drivers/media/pci/bt8xx/dvb-bt8xx.c card->irq_err_ignore = BT878_AFBUS | BT878_AFDSR; card 856 drivers/media/pci/bt8xx/dvb-bt8xx.c card->gpio_mode = 0x2204f2c; card 857 drivers/media/pci/bt8xx/dvb-bt8xx.c card->op_sync_orin = BT878_RISC_SYNC_MASK; card 858 drivers/media/pci/bt8xx/dvb-bt8xx.c card->irq_err_ignore = BT878_APABORT | BT878_ARIPERR | card 874 drivers/media/pci/bt8xx/dvb-bt8xx.c card->gpio_mode = 0x0100EC7B; card 875 drivers/media/pci/bt8xx/dvb-bt8xx.c card->op_sync_orin = BT878_RISC_SYNC_MASK; card 876 drivers/media/pci/bt8xx/dvb-bt8xx.c card->irq_err_ignore = BT878_AFBUS | BT878_AFDSR; card 881 drivers/media/pci/bt8xx/dvb-bt8xx.c kfree(card); card 885 drivers/media/pci/bt8xx/dvb-bt8xx.c dprintk("dvb_bt8xx: identified card%d as %s\n", card->bttv_nr, card->card_name); card 887 drivers/media/pci/bt8xx/dvb-bt8xx.c if (!(bttv_pci_dev = bttv_get_pcidev(card->bttv_nr))) { card 888 drivers/media/pci/bt8xx/dvb-bt8xx.c pr_err("no pci device for card %d\n", card->bttv_nr); card 889 drivers/media/pci/bt8xx/dvb-bt8xx.c kfree(card); card 893 drivers/media/pci/bt8xx/dvb-bt8xx.c if (!(card->bt = dvb_bt8xx_878_match(card->bttv_nr, bttv_pci_dev))) { card 894 drivers/media/pci/bt8xx/dvb-bt8xx.c pr_err("unable to determine DMA core of card %d,\n", card->bttv_nr); card 897 drivers/media/pci/bt8xx/dvb-bt8xx.c kfree(card); card 901 drivers/media/pci/bt8xx/dvb-bt8xx.c mutex_init(&card->bt->gpio_lock); card 902 drivers/media/pci/bt8xx/dvb-bt8xx.c card->bt->bttv_nr = sub->core->nr; card 904 drivers/media/pci/bt8xx/dvb-bt8xx.c if ( (ret = dvb_bt8xx_load_card(card, sub->core->type)) ) { card 905 drivers/media/pci/bt8xx/dvb-bt8xx.c kfree(card); card 909 drivers/media/pci/bt8xx/dvb-bt8xx.c dev_set_drvdata(&sub->dev, card); card 915 drivers/media/pci/bt8xx/dvb-bt8xx.c struct dvb_bt8xx_card *card = dev_get_drvdata(&sub->dev); card 917 drivers/media/pci/bt8xx/dvb-bt8xx.c dprintk("dvb_bt8xx: unloading card%d\n", card->bttv_nr); card 919 drivers/media/pci/bt8xx/dvb-bt8xx.c bt878_stop(card->bt); card 920 drivers/media/pci/bt8xx/dvb-bt8xx.c tasklet_kill(&card->bt->tasklet); card 921 drivers/media/pci/bt8xx/dvb-bt8xx.c dvb_net_release(&card->dvbnet); card 922 drivers/media/pci/bt8xx/dvb-bt8xx.c card->demux.dmx.remove_frontend(&card->demux.dmx, &card->fe_mem); card 923 drivers/media/pci/bt8xx/dvb-bt8xx.c card->demux.dmx.remove_frontend(&card->demux.dmx, &card->fe_hw); card 924 drivers/media/pci/bt8xx/dvb-bt8xx.c dvb_dmxdev_release(&card->dmxdev); card 925 drivers/media/pci/bt8xx/dvb-bt8xx.c dvb_dmx_release(&card->demux); card 926 drivers/media/pci/bt8xx/dvb-bt8xx.c if (card->fe) { card 927 drivers/media/pci/bt8xx/dvb-bt8xx.c dvb_unregister_frontend(card->fe); card 928 drivers/media/pci/bt8xx/dvb-bt8xx.c dvb_frontend_detach(card->fe); card 930 drivers/media/pci/bt8xx/dvb-bt8xx.c dvb_unregister_adapter(&card->dvb_adapter); card 932 drivers/media/pci/bt8xx/dvb-bt8xx.c kfree(card); card 483 drivers/media/pci/cobalt/cobalt-v4l2.c strscpy(vcap->card, "cobalt", sizeof(vcap->card)); card 12 drivers/media/pci/cx18/cx18-alsa-pcm.h void cx18_alsa_announce_pcm_data(struct snd_cx18_card *card, u8 *pcm_data, card 31 drivers/media/pci/cx18/cx18-audio.c in = &cx->card->radio_input; card 33 drivers/media/pci/cx18/cx18-audio.c in = &cx->card->audio_inputs[cx->audio_input]; card 39 drivers/media/pci/cx18/cx18-audio.c err = cx18_call_hw_err(cx, cx->card->hw_audio_ctrl, card 583 drivers/media/pci/cx18/cx18-cards.c cx->card->video_inputs + index; card 609 drivers/media/pci/cx18/cx18-cards.c cx->card->audio_inputs + index; card 329 drivers/media/pci/cx18/cx18-driver.c switch (cx->card->type) { card 369 drivers/media/pci/cx18/cx18-driver.c cx->card = cx18_get_card(CX18_CARD_HVR_1600_S5H1411); card 383 drivers/media/pci/cx18/cx18-driver.c cx->card = cx18_get_card(CX18_CARD_HVR_1600_ESMT); card 396 drivers/media/pci/cx18/cx18-driver.c cx->card = cx18_get_card(CX18_CARD_HVR_1600_ESMT); card 400 drivers/media/pci/cx18/cx18-driver.c cx->v4l2_cap = cx->card->v4l2_capabilities; card 401 drivers/media/pci/cx18/cx18-driver.c cx->card_name = cx->card->name; card 402 drivers/media/pci/cx18/cx18-driver.c cx->card_i2c = cx->card->i2c; card 638 drivers/media/pci/cx18/cx18-driver.c cx->card = cx18_get_card(cx->options.cardtype - 1); card 639 drivers/media/pci/cx18/cx18-driver.c if (cx->card) card 640 drivers/media/pci/cx18/cx18-driver.c CX18_INFO("User specified %s card\n", cx->card->name); card 643 drivers/media/pci/cx18/cx18-driver.c if (!cx->card) { card 645 drivers/media/pci/cx18/cx18-driver.c cx->card = cx18_get_card(CX18_CARD_HVR_1600_ESMT); card 649 drivers/media/pci/cx18/cx18-driver.c if (!cx->card) { card 650 drivers/media/pci/cx18/cx18-driver.c for (i = 0; (cx->card = cx18_get_card(i)); i++) { card 651 drivers/media/pci/cx18/cx18-driver.c if (!cx->card->pci_list) card 653 drivers/media/pci/cx18/cx18-driver.c for (j = 0; cx->card->pci_list[j].device; j++) { card 655 drivers/media/pci/cx18/cx18-driver.c cx->card->pci_list[j].device) card 658 drivers/media/pci/cx18/cx18-driver.c cx->card->pci_list[j].subsystem_vendor) card 661 drivers/media/pci/cx18/cx18-driver.c cx->card->pci_list[j].subsystem_device) card 663 drivers/media/pci/cx18/cx18-driver.c CX18_INFO("Autodetected %s card\n", cx->card->name); card 670 drivers/media/pci/cx18/cx18-driver.c if (!cx->card) { card 671 drivers/media/pci/cx18/cx18-driver.c cx->card = cx18_get_card(CX18_CARD_HVR_1600_ESMT); card 677 drivers/media/pci/cx18/cx18-driver.c CX18_ERR("Defaulting to %s card\n", cx->card->name); card 682 drivers/media/pci/cx18/cx18-driver.c cx->v4l2_cap = cx->card->v4l2_capabilities; card 683 drivers/media/pci/cx18/cx18-driver.c cx->card_name = cx->card->name; card 684 drivers/media/pci/cx18/cx18-driver.c cx->card_i2c = cx->card->i2c; card 776 drivers/media/pci/cx18/cx18-driver.c if (cx->card->video_inputs[i].video_type == 0) card 780 drivers/media/pci/cx18/cx18-driver.c if (cx->card->audio_inputs[i].audio_type == 0) card 786 drivers/media/pci/cx18/cx18-driver.c if (cx->card->video_inputs[i].video_type == card 793 drivers/media/pci/cx18/cx18-driver.c cx->audio_input = cx->card->video_inputs[i].audio_index; card 843 drivers/media/pci/cx18/cx18-driver.c u32 hw = cx->card->hw_all; card 883 drivers/media/pci/cx18/cx18-driver.c if (cx->card->hw_muxer != 0) card 884 drivers/media/pci/cx18/cx18-driver.c cx->sd_extmux = cx18_find_hw(cx, cx->card->hw_muxer); card 981 drivers/media/pci/cx18/cx18-driver.c if (cx->card->hw_all & CX18_HW_GPIO_RESET_CTRL) { card 996 drivers/media/pci/cx18/cx18-driver.c if (cx->card->hw_all & CX18_HW_TVEEPROM) { card 999 drivers/media/pci/cx18/cx18-driver.c const struct cx18_card *orig_card = cx->card; card 1002 drivers/media/pci/cx18/cx18-driver.c if (cx->card != orig_card) { card 1009 drivers/media/pci/cx18/cx18-driver.c if (cx->card->comment) card 1010 drivers/media/pci/cx18/cx18-driver.c CX18_INFO("%s", cx->card->comment); card 1011 drivers/media/pci/cx18/cx18-driver.c if (cx->card->v4l2_capabilities == 0) { card 1031 drivers/media/pci/cx18/cx18-driver.c if ((cx->std & cx->card->tuners[i].std) == 0) card 1033 drivers/media/pci/cx18/cx18-driver.c cx->options.tuner = cx->card->tuners[i].tuner; card 1038 drivers/media/pci/cx18/cx18-driver.c if (cx->options.tuner == -1 && cx->card->tuners[0].std) { card 1039 drivers/media/pci/cx18/cx18-driver.c cx->std = cx->card->tuners[0].std; card 1046 drivers/media/pci/cx18/cx18-driver.c cx->options.tuner = cx->card->tuners[0].tuner; card 1049 drivers/media/pci/cx18/cx18-driver.c cx->options.radio = (cx->card->radio_input.audio_type != 0); card 569 drivers/media/pci/cx18/cx18-driver.h const struct cx18_card *card; /* card information */ card 601 drivers/media/pci/cx18/cx18-driver.h void (*pcm_announce_callback)(struct snd_cx18_card *card, u8 *pcm_data, card 258 drivers/media/pci/cx18/cx18-dvb.c switch (cx->card->type) { card 460 drivers/media/pci/cx18/cx18-dvb.c switch (cx->card->type) { card 324 drivers/media/pci/cx18/cx18-firmware.c cx18_write_reg(cx, cx->card->ddr.chip_config, CX18_DDR_CHIP_CONFIG); card 328 drivers/media/pci/cx18/cx18-firmware.c cx18_write_reg(cx, cx->card->ddr.refresh, CX18_DDR_REFRESH); card 329 drivers/media/pci/cx18/cx18-firmware.c cx18_write_reg(cx, cx->card->ddr.timing1, CX18_DDR_TIMING1); card 330 drivers/media/pci/cx18/cx18-firmware.c cx18_write_reg(cx, cx->card->ddr.timing2, CX18_DDR_TIMING2); card 335 drivers/media/pci/cx18/cx18-firmware.c cx18_write_reg(cx, cx->card->ddr.tune_lane, CX18_DDR_TUNE_LANE); card 336 drivers/media/pci/cx18/cx18-firmware.c cx18_write_reg(cx, cx->card->ddr.initial_emrs, CX18_DDR_INITIAL_EMRS); card 114 drivers/media/pci/cx18/cx18-gpio.c gpio_update(cx, cx->card->gpio_audio_input.mask, card 115 drivers/media/pci/cx18/cx18-gpio.c cx->card->gpio_audio_input.radio); card 124 drivers/media/pci/cx18/cx18-gpio.c switch (cx->card->audio_inputs[cx->audio_input].muxer_input) { card 126 drivers/media/pci/cx18/cx18-gpio.c data = cx->card->gpio_audio_input.linein; card 129 drivers/media/pci/cx18/cx18-gpio.c data = cx->card->gpio_audio_input.tuner; card 137 drivers/media/pci/cx18/cx18-gpio.c data = cx->card->gpio_audio_input.tuner; card 140 drivers/media/pci/cx18/cx18-gpio.c gpio_update(cx, cx->card->gpio_audio_input.mask, data); card 152 drivers/media/pci/cx18/cx18-gpio.c data = cx->card->gpio_audio_input.tuner; card 155 drivers/media/pci/cx18/cx18-gpio.c data = cx->card->gpio_audio_input.linein; card 158 drivers/media/pci/cx18/cx18-gpio.c data = cx->card->gpio_audio_input.radio; card 163 drivers/media/pci/cx18/cx18-gpio.c gpio_update(cx, cx->card->gpio_audio_input.mask, data); card 209 drivers/media/pci/cx18/cx18-gpio.c p = &cx->card->gpio_i2c_slave_reset; card 234 drivers/media/pci/cx18/cx18-gpio.c if (cx->card->tuners[0].tuner == TUNER_XC2028) card 235 drivers/media/pci/cx18/cx18-gpio.c gpio_reset_seq(cx, (1 << cx->card->xceive_pin), 0, card 257 drivers/media/pci/cx18/cx18-gpio.c cx->gpio_dir = cx->card->gpio_init.direction; card 258 drivers/media/pci/cx18/cx18-gpio.c cx->gpio_val = cx->card->gpio_init.initial_value; card 260 drivers/media/pci/cx18/cx18-gpio.c if (cx->card->tuners[0].tuner == TUNER_XC2028) { card 261 drivers/media/pci/cx18/cx18-gpio.c cx->gpio_dir |= 1 << cx->card->xceive_pin; card 262 drivers/media/pci/cx18/cx18-gpio.c cx->gpio_val |= 1 << cx->card->xceive_pin; card 312 drivers/media/pci/cx18/cx18-gpio.c if (cx->card->gpio_i2c_slave_reset.ir_reset_mask == 0) card 331 drivers/media/pci/cx18/cx18-gpio.c cx->card->tuners[0].tuner != TUNER_XC2028) card 391 drivers/media/pci/cx18/cx18-ioctl.c strscpy(vcap->card, cx->card_name, sizeof(vcap->card)); card 500 drivers/media/pci/cx18/cx18-ioctl.c cx->card->video_inputs + inp; card 515 drivers/media/pci/cx18/cx18-ioctl.c cx->audio_input = cx->card->video_inputs[inp].audio_index; card 337 drivers/media/pci/cx18/cx18-streams.c if (cx->card->hw_all & CX18_HW_DVB) { card 361 drivers/media/pci/cx18/cx18-streams.c if (cx->card->video_inputs->video_type == CX18_CARD_INPUT_VID_TUNER) card 17 drivers/media/pci/cx18/cx18-video.c cx->card->video_inputs[inp].video_input, 0, 0); card 1324 drivers/media/pci/cx23885/cx23885-417.c strscpy(cap->card, cx23885_boards[tsport->dev->board].name, card 1325 drivers/media/pci/cx23885/cx23885-417.c sizeof(cap->card)); card 516 drivers/media/pci/cx23885/cx23885-alsa.c err = snd_pcm_new(chip->card, name, device, 0, 1, &pcm); card 536 drivers/media/pci/cx23885/cx23885-alsa.c struct snd_card *card; card 551 drivers/media/pci/cx23885/cx23885-alsa.c THIS_MODULE, sizeof(struct cx23885_audio_dev), &card); card 555 drivers/media/pci/cx23885/cx23885-alsa.c chip = (struct cx23885_audio_dev *) card->private_data; card 558 drivers/media/pci/cx23885/cx23885-alsa.c chip->card = card; card 565 drivers/media/pci/cx23885/cx23885-alsa.c strscpy(card->driver, "CX23885", sizeof(card->driver)); card 566 drivers/media/pci/cx23885/cx23885-alsa.c sprintf(card->shortname, "Conexant CX23885"); card 567 drivers/media/pci/cx23885/cx23885-alsa.c sprintf(card->longname, "%s at %s", card->shortname, dev->name); card 569 drivers/media/pci/cx23885/cx23885-alsa.c err = snd_card_register(card); card 578 drivers/media/pci/cx23885/cx23885-alsa.c snd_card_free(card); card 592 drivers/media/pci/cx23885/cx23885-alsa.c snd_card_free(chip->card); card 833 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_UNKNOWN, card 837 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_HAUPPAUGE_HVR1800lp, card 841 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_HAUPPAUGE_HVR1800, card 845 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_HAUPPAUGE_HVR1800, card 849 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_HAUPPAUGE_HVR1800, card 853 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_HAUPPAUGE_HVR1250, card 857 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_DVICO_FUSIONHDTV_5_EXP, card 861 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_HAUPPAUGE_HVR1500Q, card 865 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_HAUPPAUGE_HVR1500Q, card 869 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_HAUPPAUGE_HVR1500, card 873 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_HAUPPAUGE_HVR1500, card 877 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_HAUPPAUGE_HVR1200, card 881 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_HAUPPAUGE_HVR1200, card 885 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_HAUPPAUGE_HVR1700, card 889 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_HAUPPAUGE_HVR1400, card 893 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_DVICO_FUSIONHDTV_7_DUAL_EXP, card 897 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL_EXP, card 901 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_LEADTEK_WINFAST_PXDVR3200_H, card 905 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_LEADTEK_WINFAST_PXPVR2200, card 909 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_LEADTEK_WINFAST_PXDVR3200_H_XC4000, card 913 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_COMPRO_VIDEOMATE_E650F, card 917 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_TBS_6920, card 921 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_TBS_6980, card 925 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_TBS_6981, card 929 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_TEVII_S470, card 933 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_DVBWORLD_2005, card 937 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_NETUP_DUAL_DVBS2_CI, card 941 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_HAUPPAUGE_HVR1270, card 945 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_HAUPPAUGE_HVR1275, card 949 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_HAUPPAUGE_HVR1275, card 953 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_HAUPPAUGE_HVR1255, card 957 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_HAUPPAUGE_HVR1255_22111, card 961 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_HAUPPAUGE_HVR1210, card 965 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_HAUPPAUGE_HVR1210, card 969 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_HAUPPAUGE_HVR1210, card 973 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_HAUPPAUGE_HVR1210, /* HVR1215 */ card 977 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_HAUPPAUGE_HVR1210, card 981 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_HAUPPAUGE_HVR1255, card 985 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_HAUPPAUGE_HVR1275, card 989 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_HAUPPAUGE_HVR1210, /* HVR1215 */ card 993 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_HAUPPAUGE_HVR1210, card 997 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_HAUPPAUGE_HVR1210, /* HVR1215 */ card 1001 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_MYGICA_X8506, card 1005 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_MAGICPRO_PROHDTVE2, card 1009 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_HAUPPAUGE_HVR1850, card 1013 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_COMPRO_VIDEOMATE_E800, card 1017 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_HAUPPAUGE_HVR1290, card 1021 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_MYGICA_X8558PRO, card 1025 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_LEADTEK_WINFAST_PXTV1200, card 1029 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_GOTVIEW_X5_3D_HYBRID, card 1033 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_NETUP_DUAL_DVB_T_C_CI_RF, card 1037 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_MYGICA_X8507, card 1041 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_TERRATEC_CINERGY_T_PCIE_DUAL, card 1045 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_TEVII_S471, card 1049 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_PROF_8000, card 1053 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_HAUPPAUGE_HVR4400, /* Hauppauge WinTV HVR-4400 (Model 121xxx, Hybrid DVB-T/S2, IR) */ card 1057 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_HAUPPAUGE_HVR4400, /* Hauppauge WinTV HVR-5500 (Model 121xxx, Hybrid DVB-T/C/S2, IR) */ card 1061 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_HAUPPAUGE_STARBURST, /* Hauppauge WinTV Starburst (Model 121x00, DVB-S2, IR) */ card 1065 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_HAUPPAUGE_HVR4400, /* Hauppauge WinTV HVR-5500 (Model 121xxx, Hybrid DVB-T/C/S2, IR) */ card 1069 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_AVERMEDIA_HC81R, card 1073 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_HAUPPAUGE_IMPACTVCBE, card 1077 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_HAUPPAUGE_IMPACTVCBE, card 1081 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL_EXP2, card 1085 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_DVBSKY_T9580, card 1089 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_DVBSKY_T980C, card 1093 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_DVBSKY_S950C, card 1097 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_TT_CT2_4500_CI, card 1101 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_DVBSKY_S950, card 1105 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_DVBSKY_S952, card 1109 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_DVBSKY_T982, card 1113 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_HAUPPAUGE_HVR5525, card 1117 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_VIEWCAST_260E, card 1121 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_VIEWCAST_460E, card 1125 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_HAUPPAUGE_QUADHD_DVB, /* Tuner Pair 1 */ card 1129 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_HAUPPAUGE_QUADHD_DVB, /* Tuner Pair 2 */ card 1133 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_HAUPPAUGE_QUADHD_ATSC, /* Tuner Pair 1 */ card 1137 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_HAUPPAUGE_QUADHD_ATSC, /* Tuner Pair 2 */ card 1141 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_HAUPPAUGE_HVR1265_K4, /* Hauppauge WinTV HVR-1265 (Model 161xx1, Hybrid ATSC/QAM-B) */ card 1145 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_HAUPPAUGE_STARBURST2, card 1149 drivers/media/pci/cx23885/cx23885-cards.c .card = CX23885_BOARD_AVERMEDIA_CE310B, card 51 drivers/media/pci/cx23885/cx23885-core.c static unsigned int card[] = {[0 ... (CX23885_MAXBOARDS - 1)] = UNSET }; card 52 drivers/media/pci/cx23885/cx23885-core.c module_param_array(card, int, NULL, 0444); card 53 drivers/media/pci/cx23885/cx23885-core.c MODULE_PARM_DESC(card, "card type"); card 908 drivers/media/pci/cx23885/cx23885-core.c if (card[dev->nr] < cx23885_bcount) card 909 drivers/media/pci/cx23885/cx23885-core.c dev->board = card[dev->nr]; card 913 drivers/media/pci/cx23885/cx23885-core.c dev->board = cx23885_subids[i].card; card 1001 drivers/media/pci/cx23885/cx23885-core.c dev->board, card[dev->nr] == dev->board ? card 632 drivers/media/pci/cx23885/cx23885-video.c strscpy(cap->card, cx23885_boards[dev->board].name, card 633 drivers/media/pci/cx23885/cx23885-video.c sizeof(cap->card)); card 226 drivers/media/pci/cx23885/cx23885.h u32 card; card 337 drivers/media/pci/cx23885/cx23885.h struct snd_card *card; card 70 drivers/media/pci/cx25821/cx25821-alsa.c struct snd_card *card; card 661 drivers/media/pci/cx25821/cx25821-alsa.c err = snd_pcm_new(chip->card, name, device, 0, 1, &pcm); card 695 drivers/media/pci/cx25821/cx25821-alsa.c struct snd_card *card; card 712 drivers/media/pci/cx25821/cx25821-alsa.c sizeof(struct cx25821_audio_dev), &card); card 719 drivers/media/pci/cx25821/cx25821-alsa.c strscpy(card->driver, "cx25821", sizeof(card->driver)); card 722 drivers/media/pci/cx25821/cx25821-alsa.c chip = card->private_data; card 726 drivers/media/pci/cx25821/cx25821-alsa.c chip->card = card; card 748 drivers/media/pci/cx25821/cx25821-alsa.c strscpy(card->shortname, "cx25821", sizeof(card->shortname)); card 749 drivers/media/pci/cx25821/cx25821-alsa.c sprintf(card->longname, "%s at 0x%lx irq %d", chip->dev->name, card 751 drivers/media/pci/cx25821/cx25821-alsa.c strscpy(card->mixername, "CX25821", sizeof(card->mixername)); card 753 drivers/media/pci/cx25821/cx25821-alsa.c pr_info("%s/%i: ALSA support for cx25821 boards\n", card->driver, card 756 drivers/media/pci/cx25821/cx25821-alsa.c err = snd_card_register(card); card 763 drivers/media/pci/cx25821/cx25821-alsa.c dev->card = card; card 768 drivers/media/pci/cx25821/cx25821-alsa.c snd_card_free(card); card 781 drivers/media/pci/cx25821/cx25821-alsa.c snd_card_free(cxdev->card); card 26 drivers/media/pci/cx25821/cx25821-core.c static unsigned int card[] = {[0 ... (CX25821_MAXBOARDS - 1)] = UNSET }; card 27 drivers/media/pci/cx25821/cx25821-core.c module_param_array(card, int, NULL, 0444); card 28 drivers/media/pci/cx25821/cx25821-core.c MODULE_PARM_DESC(card, "card type"); card 860 drivers/media/pci/cx25821/cx25821-core.c if (dev->nr >= ARRAY_SIZE(card)) { card 861 drivers/media/pci/cx25821/cx25821-core.c CX25821_INFO("dev->nr >= %zd", ARRAY_SIZE(card)); card 927 drivers/media/pci/cx25821/cx25821-core.c dev->board, card[dev->nr] == dev->board ? card 428 drivers/media/pci/cx25821/cx25821-video.c strscpy(cap->card, cx25821_boards[dev->board].name, sizeof(cap->card)); card 234 drivers/media/pci/cx25821/cx25821.h struct snd_card *card; card 63 drivers/media/pci/cx88/cx88-alsa.c struct snd_card *card; card 606 drivers/media/pci/cx88/cx88-alsa.c err = snd_pcm_new(chip->card, name, device, 0, 1, &pcm); card 835 drivers/media/pci/cx88/cx88-alsa.c static void snd_cx88_dev_free(struct snd_card *card) card 837 drivers/media/pci/cx88/cx88-alsa.c struct cx88_audio_dev *chip = card->private_data; card 847 drivers/media/pci/cx88/cx88-alsa.c static int snd_cx88_create(struct snd_card *card, struct pci_dev *pci, card 864 drivers/media/pci/cx88/cx88-alsa.c chip = card->private_data; card 880 drivers/media/pci/cx88/cx88-alsa.c chip->card = card; card 917 drivers/media/pci/cx88/cx88-alsa.c struct snd_card *card; card 931 drivers/media/pci/cx88/cx88-alsa.c sizeof(struct cx88_audio_dev), &card); card 935 drivers/media/pci/cx88/cx88-alsa.c card->private_free = snd_cx88_dev_free; card 937 drivers/media/pci/cx88/cx88-alsa.c err = snd_cx88_create(card, pci, &chip, &core); card 945 drivers/media/pci/cx88/cx88-alsa.c err = snd_ctl_add(card, snd_ctl_new1(&snd_cx88_volume, chip)); card 948 drivers/media/pci/cx88/cx88-alsa.c err = snd_ctl_add(card, snd_ctl_new1(&snd_cx88_dac_switch, chip)); card 951 drivers/media/pci/cx88/cx88-alsa.c err = snd_ctl_add(card, snd_ctl_new1(&snd_cx88_source_switch, chip)); card 957 drivers/media/pci/cx88/cx88-alsa.c err = snd_ctl_add(card, snd_ctl_new1(&snd_cx88_alc_switch, chip)); card 962 drivers/media/pci/cx88/cx88-alsa.c strscpy(card->driver, "CX88x", sizeof(card->driver)); card 963 drivers/media/pci/cx88/cx88-alsa.c sprintf(card->shortname, "Conexant CX%x", pci->device); card 964 drivers/media/pci/cx88/cx88-alsa.c sprintf(card->longname, "%s at %#llx", card 965 drivers/media/pci/cx88/cx88-alsa.c card->shortname, card 967 drivers/media/pci/cx88/cx88-alsa.c strscpy(card->mixername, "CX88", sizeof(card->mixername)); card 970 drivers/media/pci/cx88/cx88-alsa.c card->driver, devno); card 972 drivers/media/pci/cx88/cx88-alsa.c err = snd_card_register(card); card 975 drivers/media/pci/cx88/cx88-alsa.c pci_set_drvdata(pci, card); card 981 drivers/media/pci/cx88/cx88-alsa.c snd_card_free(card); card 990 drivers/media/pci/cx88/cx88-alsa.c struct snd_card *card = pci_get_drvdata(pci); card 992 drivers/media/pci/cx88/cx88-alsa.c snd_card_free(card); card 21 drivers/media/pci/cx88/cx88-cards.c static unsigned int card[] = {[0 ... (CX88_MAXBOARDS - 1)] = UNSET }; card 25 drivers/media/pci/cx88/cx88-cards.c module_param_array(card, int, NULL, 0444); card 29 drivers/media/pci/cx88/cx88-cards.c MODULE_PARM_DESC(card, "card type"); card 2316 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_HAUPPAUGE, card 2320 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_HAUPPAUGE, card 2324 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_GDI, card 2328 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_GDI, card 2332 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_ATI_WONDER_PRO, card 2336 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_ATI_WONDER_PRO, card 2340 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_WINFAST2000XP_EXPERT, card 2344 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_WINFAST2000XP_EXPERT, card 2348 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_WINFAST_DV2000, card 2352 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_LEADTEK_PVR2000, card 2356 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_LEADTEK_PVR2000, card 2360 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_AVERTV_STUDIO_303, card 2364 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_MSI_TVANYWHERE_MASTER, card 2368 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_IODATA_GVVCP3PCI, card 2372 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_ASUS_PVR_416, card 2376 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_KWORLD_DVB_T, card 2380 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q, card 2384 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T, card 2388 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1, card 2392 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_HAUPPAUGE_DVB_T1, card 2396 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_CONEXANT_DVB_T1, card 2400 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_PROVIDEO_PV259, card 2404 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS, card 2408 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_PIXELVIEW, card 2412 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_PCHDTV_HD3000, card 2416 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_DNTV_LIVE_DVB_T, card 2420 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_HAUPPAUGE_ROSLYN, card 2424 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_DIGITALLOGIC_MEC, card 2428 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_IODATA_GVBCTV7E, card 2432 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_ADSTECH_DVB_T_PCI, card 2436 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1, card 2440 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD, card 2444 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_AVERMEDIA_ULTRATV_MC_550, card 2448 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_ATI_HDTVWONDER, card 2452 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_WINFAST_DTV1000, card 2456 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_AVERTV_303, card 2460 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_HAUPPAUGE_NOVASE2_S1, card 2464 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1, card 2468 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1, card 2472 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_KWORLD_DVBS_100, card 2476 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_HAUPPAUGE_HVR1100, card 2480 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_HAUPPAUGE_HVR1100, card 2484 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_HAUPPAUGE_HVR1100LP, card 2488 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_HAUPPAUGE_HVR1100LP, card 2492 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_HAUPPAUGE_DVB_T1, card 2496 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_DNTV_LIVE_DVB_T_PRO, card 2500 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_KWORLD_DVB_T_CX22702, card 2504 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL, card 2508 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL, card 2513 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS, card 2518 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PRO, card 2522 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT, card 2526 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT, card 2530 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID, card 2534 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID, card 2538 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_PCHDTV_HD5500, card 2542 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_KWORLD_MCE200_DELUXE, card 2546 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_DNTV_LIVE_DVB_T_PRO, card 2550 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_PIXELVIEW_PLAYTV_P7000, card 2554 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_NPGTECH_REALTV_TOP10FM, card 2558 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_WINFAST_DTV2000H, card 2562 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_WINFAST_DTV2000H_J, card 2566 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q, card 2570 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_GENIATECH_DVBS, card 2574 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_HAUPPAUGE_HVR3000, card 2578 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_SAMSUNG_SMT_7020, card 2582 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_SAMSUNG_SMT_7020, card 2587 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_ASUS_PVR_416, card 2591 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_TE_DTV_250_OEM_SWANN, card 2595 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_HAUPPAUGE_HVR1300, card 2599 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_HAUPPAUGE_HVR1300, card 2603 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_HAUPPAUGE_HVR1300, card 2607 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_LEADTEK_PVR2000, card 2611 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_KWORLD_DVB_T_CX22702, card 2615 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_HAUPPAUGE_DVB_T1, card 2619 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_HAUPPAUGE_HVR3000, card 2623 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_HAUPPAUGE_HVR3000, card 2627 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_HAUPPAUGE_HVR3000, card 2631 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_KWORLD_DVBS_100, card 2635 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_ADSTECH_PTV_390, card 2639 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_PINNACLE_PCTV_HD_800i, card 2643 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_DVICO_FUSIONHDTV_5_PCI_NANO, card 2647 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_PINNACLE_HYBRID_PCTV, card 2651 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_POWERCOLOR_REAL_ANGEL, card 2655 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_WINFAST_TV2000_XP_GLOBAL, card 2659 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_GENIATECH_X8000_MT, card 2663 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_DVICO_FUSIONHDTV_7_GOLD, card 2667 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_PROLINK_PV_8000GT, card 2671 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_PROLINK_PV_GLOBAL_XTREME, card 2675 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_KWORLD_ATSC_120, card 2679 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_HAUPPAUGE_HVR4000, card 2683 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_HAUPPAUGE_HVR4000, card 2687 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_HAUPPAUGE_HVR4000, card 2691 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_HAUPPAUGE_HVR4000LITE, card 2695 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_HAUPPAUGE_HVR4000LITE, card 2699 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_TEVII_S420, card 2703 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_TEVII_S460, card 2707 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_TEVII_S464, card 2711 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_OMICOM_SS4_PCI, card 2715 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_TBS_8910, card 2719 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_TBS_8920, card 2723 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_PROF_6200, card 2727 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_PROF_7300, card 2731 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_SATTRADE_ST4200, card 2735 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_TERRATEC_CINERGY_HT_PCI_MKII, card 2739 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_HAUPPAUGE_IRONLY, card 2743 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_WINFAST_DTV1800H, card 2748 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_WINFAST_DTV1800H_XC4000, card 2752 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_WINFAST_DTV2000H_PLUS, card 2757 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_LEADTEK_PVR2000, card 2762 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_LEADTEK_PVR2000, card 2767 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_LEADTEK_PVR2000, card 2772 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_LEADTEK_PVR2000, card 2777 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_LEADTEK_PVR2000, card 2782 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_WINFAST_DV2000, card 2787 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_WINFAST_TV2000_XP_GLOBAL, card 2792 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_WINFAST_TV2000_XP_GLOBAL, card 2797 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_WINFAST_TV2000_XP_GLOBAL_6F36, card 2802 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_WINFAST_TV2000_XP_GLOBAL_6F43, card 2806 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_PROF_7301, card 2810 drivers/media/pci/cx88/cx88-cards.c .card = CX88_BOARD_TWINHAN_VP1027_DVBS, card 3732 drivers/media/pci/cx88/cx88-cards.c if (card[core->nr] < ARRAY_SIZE(cx88_boards)) card 3733 drivers/media/pci/cx88/cx88-cards.c core->boardnr = card[core->nr]; card 3737 drivers/media/pci/cx88/cx88-cards.c core->boardnr = cx88_subids[i].card; card 3750 drivers/media/pci/cx88/cx88-cards.c core->boardnr, card[core->nr] == core->boardnr ? card 793 drivers/media/pci/cx88/cx88-video.c strscpy(cap->card, core->board.name, sizeof(cap->card)); card 277 drivers/media/pci/cx88/cx88.h u32 card; card 183 drivers/media/pci/dm1105/dm1105.c static unsigned int card[] = {[0 ... 3] = UNSET }; card 184 drivers/media/pci/dm1105/dm1105.c module_param_array(card, int, NULL, 0444); card 185 drivers/media/pci/dm1105/dm1105.c MODULE_PARM_DESC(card, "card type"); card 206 drivers/media/pci/dm1105/dm1105.c u32 card; card 263 drivers/media/pci/dm1105/dm1105.c .card = DM1105_BOARD_DVBWORLD_2002, card 267 drivers/media/pci/dm1105/dm1105.c .card = DM1105_BOARD_DVBWORLD_2002, card 271 drivers/media/pci/dm1105/dm1105.c .card = DM1105_BOARD_DVBWORLD_2004, card 275 drivers/media/pci/dm1105/dm1105.c .card = DM1105_BOARD_DVBWORLD_2004, card 279 drivers/media/pci/dm1105/dm1105.c .card = DM1105_BOARD_AXESS_DM05, card 979 drivers/media/pci/dm1105/dm1105.c if (dm1105_devcount >= ARRAY_SIZE(card)) card 989 drivers/media/pci/dm1105/dm1105.c if (card[dev->nr] < ARRAY_SIZE(dm1105_boards)) card 990 drivers/media/pci/dm1105/dm1105.c dev->boardnr = card[dev->nr]; card 997 drivers/media/pci/dm1105/dm1105.c dev->boardnr = dm1105_subids[i].card; card 298 drivers/media/pci/dt3155/dt3155.c strscpy(cap->card, DT3155_NAME " frame grabber", sizeof(cap->card)); card 1068 drivers/media/pci/intel/ipu3/ipu3-cio2.c strscpy(cap->card, CIO2_DEVICE_NAME, sizeof(cap->card)); card 1295 drivers/media/pci/ivtv/ivtv-cards.c const struct ivtv_card_video_input *card_input = itv->card->video_inputs + index; card 1320 drivers/media/pci/ivtv/ivtv-cards.c const struct ivtv_card_output *card_output = itv->card->video_outputs + index; card 1322 drivers/media/pci/ivtv/ivtv-cards.c if (index >= itv->card->nof_outputs) card 1334 drivers/media/pci/ivtv/ivtv-cards.c const struct ivtv_card_audio_input *aud_input = itv->card->audio_inputs + index; card 1354 drivers/media/pci/ivtv/ivtv-cards.c if (itv->card->video_outputs == NULL || index != 0) card 432 drivers/media/pci/ivtv/ivtv-driver.c itv->card = ivtv_get_card(IVTV_CARD_PVR_250); card 436 drivers/media/pci/ivtv/ivtv-driver.c itv->card = ivtv_get_card(IVTV_CARD_PVR_350); card 441 drivers/media/pci/ivtv/ivtv-driver.c itv->card = ivtv_get_card(IVTV_CARD_PVR_150); card 448 drivers/media/pci/ivtv/ivtv-driver.c itv->card = ivtv_get_card(IVTV_CARD_PVR_150); card 456 drivers/media/pci/ivtv/ivtv-driver.c itv->card = ivtv_get_card(IVTV_CARD_PVR_350_V1); card 462 drivers/media/pci/ivtv/ivtv-driver.c itv->v4l2_cap = itv->card->v4l2_capabilities; card 463 drivers/media/pci/ivtv/ivtv-driver.c itv->card_name = itv->card->name; card 464 drivers/media/pci/ivtv/ivtv-driver.c itv->card_i2c = itv->card->i2c; card 680 drivers/media/pci/ivtv/ivtv-driver.c if ((itv->card = ivtv_get_card(itv->options.cardtype - 1))) { card 682 drivers/media/pci/ivtv/ivtv-driver.c itv->card->name, chipname); card 686 drivers/media/pci/ivtv/ivtv-driver.c if (itv->card == NULL) { card 690 drivers/media/pci/ivtv/ivtv-driver.c itv->card = ivtv_get_card(itv->has_cx23415 ? IVTV_CARD_PVR_350 : IVTV_CARD_PVR_150); card 695 drivers/media/pci/ivtv/ivtv-driver.c if (itv->card == NULL) { card 696 drivers/media/pci/ivtv/ivtv-driver.c for (i = 0; (itv->card = ivtv_get_card(i)); i++) { card 697 drivers/media/pci/ivtv/ivtv-driver.c if (itv->card->pci_list == NULL) card 699 drivers/media/pci/ivtv/ivtv-driver.c for (j = 0; itv->card->pci_list[j].device; j++) { card 701 drivers/media/pci/ivtv/ivtv-driver.c itv->card->pci_list[j].device) card 704 drivers/media/pci/ivtv/ivtv-driver.c itv->card->pci_list[j].subsystem_vendor) card 707 drivers/media/pci/ivtv/ivtv-driver.c itv->card->pci_list[j].subsystem_device) card 710 drivers/media/pci/ivtv/ivtv-driver.c itv->card->name, chipname); card 717 drivers/media/pci/ivtv/ivtv-driver.c if (itv->card == NULL) { card 718 drivers/media/pci/ivtv/ivtv-driver.c itv->card = ivtv_get_card(IVTV_CARD_PVR_150); card 724 drivers/media/pci/ivtv/ivtv-driver.c IVTV_ERR("Defaulting to %s card\n", itv->card->name); card 729 drivers/media/pci/ivtv/ivtv-driver.c itv->v4l2_cap = itv->card->v4l2_capabilities; card 730 drivers/media/pci/ivtv/ivtv-driver.c itv->card_name = itv->card->name; card 731 drivers/media/pci/ivtv/ivtv-driver.c itv->card_i2c = itv->card->i2c; card 808 drivers/media/pci/ivtv/ivtv-driver.c if (itv->card->video_inputs[i].video_type == 0) card 812 drivers/media/pci/ivtv/ivtv-driver.c if (itv->card->audio_inputs[i].audio_type == 0) card 816 drivers/media/pci/ivtv/ivtv-driver.c if (itv->card->hw_all & IVTV_HW_CX25840) { card 824 drivers/media/pci/ivtv/ivtv-driver.c if (itv->card->video_inputs[i].video_type == card 831 drivers/media/pci/ivtv/ivtv-driver.c itv->audio_input = itv->card->video_inputs[i].audio_index; card 908 drivers/media/pci/ivtv/ivtv-driver.c u32 hw = itv->card->hw_all; card 930 drivers/media/pci/ivtv/ivtv-driver.c if (itv->card->hw_all & IVTV_HW_CX25840) card 932 drivers/media/pci/ivtv/ivtv-driver.c else if (itv->card->hw_all & IVTV_HW_SAA717X) card 934 drivers/media/pci/ivtv/ivtv-driver.c else if (itv->card->hw_all & IVTV_HW_SAA7114) card 938 drivers/media/pci/ivtv/ivtv-driver.c itv->sd_audio = ivtv_find_hw(itv, itv->card->hw_audio_ctrl); card 939 drivers/media/pci/ivtv/ivtv-driver.c itv->sd_muxer = ivtv_find_hw(itv, itv->card->hw_muxer); card 943 drivers/media/pci/ivtv/ivtv-driver.c if (itv->card->type == IVTV_CARD_CX23416GYC) { card 947 drivers/media/pci/ivtv/ivtv-driver.c itv->card = ivtv_get_card(IVTV_CARD_CX23416GYC_NOGRYCS); card 949 drivers/media/pci/ivtv/ivtv-driver.c itv->card = ivtv_get_card(IVTV_CARD_CX23416GYC_NOGR); card 951 drivers/media/pci/ivtv/ivtv-driver.c else if (itv->card->type == IVTV_CARD_GV_MVPRX || card 952 drivers/media/pci/ivtv/ivtv-driver.c itv->card->type == IVTV_CARD_GV_MVPRX2E) { card 1099 drivers/media/pci/ivtv/ivtv-driver.c if (itv->card->hw_all & IVTV_HW_TVEEPROM) { card 1104 drivers/media/pci/ivtv/ivtv-driver.c if (itv->card->comment) card 1105 drivers/media/pci/ivtv/ivtv-driver.c IVTV_INFO("%s", itv->card->comment); card 1106 drivers/media/pci/ivtv/ivtv-driver.c if (itv->card->v4l2_capabilities == 0) { card 1120 drivers/media/pci/ivtv/ivtv-driver.c if ((itv->std & itv->card->tuners[i].std) == 0) card 1122 drivers/media/pci/ivtv/ivtv-driver.c itv->options.tuner = itv->card->tuners[i].tuner; card 1127 drivers/media/pci/ivtv/ivtv-driver.c if (itv->options.tuner == -1 && itv->card->tuners[0].std) { card 1128 drivers/media/pci/ivtv/ivtv-driver.c itv->std = itv->card->tuners[0].std; card 1135 drivers/media/pci/ivtv/ivtv-driver.c itv->options.tuner = itv->card->tuners[0].tuner; card 1138 drivers/media/pci/ivtv/ivtv-driver.c itv->options.radio = (itv->card->radio_input.audio_type != 0); card 1334 drivers/media/pci/ivtv/ivtv-driver.c if (itv->card->hw_all & IVTV_HW_CX25840) card 1360 drivers/media/pci/ivtv/ivtv-driver.c if (itv->card->v4l2_capabilities & V4L2_CAP_VIDEO_OUTPUT) { card 615 drivers/media/pci/ivtv/ivtv-driver.h const struct ivtv_card *card; /* card information */ card 677 drivers/media/pci/ivtv/ivtv-driver.h void (*pcm_announce_callback)(struct snd_ivtv_card *card, u8 *pcm_data, card 276 drivers/media/pci/ivtv/ivtv-firmware.c itv->card->video_outputs[itv->active_output].video_output, card 313 drivers/media/pci/ivtv/ivtv-firmware.c itv->card->video_outputs[itv->active_output].video_output, card 98 drivers/media/pci/ivtv/ivtv-gpio.c if (itv->card->type != IVTV_CARD_PVR_150) card 126 drivers/media/pci/ivtv/ivtv-gpio.c curout &= ~(1 << itv->card->xceive_pin); card 130 drivers/media/pci/ivtv/ivtv-gpio.c curout |= 1 << itv->card->xceive_pin; card 151 drivers/media/pci/ivtv/ivtv-gpio.c mask = itv->card->gpio_audio_freq.mask; card 154 drivers/media/pci/ivtv/ivtv-gpio.c data = itv->card->gpio_audio_freq.f32000; card 157 drivers/media/pci/ivtv/ivtv-gpio.c data = itv->card->gpio_audio_freq.f44100; card 161 drivers/media/pci/ivtv/ivtv-gpio.c data = itv->card->gpio_audio_freq.f48000; card 174 drivers/media/pci/ivtv/ivtv-gpio.c mask = itv->card->gpio_audio_detect.mask; card 188 drivers/media/pci/ivtv/ivtv-gpio.c mask = itv->card->gpio_audio_mode.mask; card 191 drivers/media/pci/ivtv/ivtv-gpio.c data = itv->card->gpio_audio_mode.lang1; card 194 drivers/media/pci/ivtv/ivtv-gpio.c data = itv->card->gpio_audio_mode.lang2; card 197 drivers/media/pci/ivtv/ivtv-gpio.c data = itv->card->gpio_audio_mode.mono; card 202 drivers/media/pci/ivtv/ivtv-gpio.c data = itv->card->gpio_audio_mode.stereo; card 215 drivers/media/pci/ivtv/ivtv-gpio.c mask = itv->card->gpio_audio_input.mask; card 216 drivers/media/pci/ivtv/ivtv-gpio.c data = itv->card->gpio_audio_input.radio; card 230 drivers/media/pci/ivtv/ivtv-gpio.c mask = itv->card->gpio_audio_input.mask; card 233 drivers/media/pci/ivtv/ivtv-gpio.c data = itv->card->gpio_audio_input.tuner; card 236 drivers/media/pci/ivtv/ivtv-gpio.c data = itv->card->gpio_audio_input.linein; card 240 drivers/media/pci/ivtv/ivtv-gpio.c data = itv->card->gpio_audio_input.radio; card 256 drivers/media/pci/ivtv/ivtv-gpio.c mask = itv->card->gpio_audio_mute.mask; card 257 drivers/media/pci/ivtv/ivtv-gpio.c data = ctrl->val ? itv->card->gpio_audio_mute.mute : 0; card 286 drivers/media/pci/ivtv/ivtv-gpio.c mask = itv->card->gpio_video_input.mask; card 288 drivers/media/pci/ivtv/ivtv-gpio.c data = itv->card->gpio_video_input.tuner; card 290 drivers/media/pci/ivtv/ivtv-gpio.c data = itv->card->gpio_video_input.composite; card 292 drivers/media/pci/ivtv/ivtv-gpio.c data = itv->card->gpio_video_input.svideo; card 332 drivers/media/pci/ivtv/ivtv-gpio.c if (itv->card->xceive_pin) card 333 drivers/media/pci/ivtv/ivtv-gpio.c pin = 1 << itv->card->xceive_pin; card 335 drivers/media/pci/ivtv/ivtv-gpio.c if ((itv->card->gpio_init.direction | pin) == 0) card 342 drivers/media/pci/ivtv/ivtv-gpio.c write_reg(itv->card->gpio_init.initial_value | pin, IVTV_REG_GPIO_OUT); card 343 drivers/media/pci/ivtv/ivtv-gpio.c write_reg(itv->card->gpio_init.direction | pin, IVTV_REG_GPIO_DIR); card 739 drivers/media/pci/ivtv/ivtv-ioctl.c strscpy(vcap->card, itv->card_name, sizeof(vcap->card)); card 793 drivers/media/pci/ivtv/ivtv-ioctl.c if (itv->card->video_outputs == NULL || vout->index != 0) card 1005 drivers/media/pci/ivtv/ivtv-ioctl.c itv->audio_input = itv->card->video_inputs[inp].audio_index; card 1007 drivers/media/pci/ivtv/ivtv-ioctl.c if (itv->card->video_inputs[inp].video_type == IVTV_CARD_INPUT_VID_TUNER) card 1040 drivers/media/pci/ivtv/ivtv-ioctl.c if (outp >= itv->card->nof_outputs) card 1053 drivers/media/pci/ivtv/ivtv-ioctl.c itv->card->video_outputs[outp].video_output, 0); card 29 drivers/media/pci/ivtv/ivtv-routing.c in = &itv->card->radio_input; card 31 drivers/media/pci/ivtv/ivtv-routing.c in = &itv->card->audio_inputs[itv->audio_input]; card 35 drivers/media/pci/ivtv/ivtv-routing.c if (itv->card->hw_muxer & IVTV_HW_M52790) card 42 drivers/media/pci/ivtv/ivtv-routing.c if (itv->card->hw_audio & IVTV_HW_MSP34XX) card 44 drivers/media/pci/ivtv/ivtv-routing.c ivtv_call_hw(itv, itv->card->hw_audio, audio, s_routing, card 57 drivers/media/pci/ivtv/ivtv-routing.c itv->card->video_inputs[inp].video_input, 0, 0); card 59 drivers/media/pci/ivtv/ivtv-routing.c type = itv->card->video_inputs[inp].video_type; card 69 drivers/media/pci/ivtv/ivtv-routing.c if (itv->card->hw_video & IVTV_HW_GPIO) card 73 drivers/media/pci/ivtv/ivtv-routing.c if (itv->card->hw_video & IVTV_HW_UPD64031A) { card 82 drivers/media/pci/ivtv/ivtv-routing.c input |= itv->card->gr_config; card 88 drivers/media/pci/ivtv/ivtv-routing.c if (itv->card->hw_video & IVTV_HW_UPD6408X) { card 96 drivers/media/pci/ivtv/ivtv-routing.c else if (itv->card->hw_video & IVTV_HW_UPD64031A) { card 100 drivers/media/pci/ivtv/ivtv-routing.c itv->card->type == IVTV_CARD_CX23416GYC) { card 577 drivers/media/pci/ivtv/ivtv-streams.c if (itv->card->hw_all & (IVTV_HW_SAA7115 | IVTV_HW_SAA717X)) card 579 drivers/media/pci/ivtv/ivtv-streams.c else if (itv->card->hw_all & IVTV_HW_SAA7114) card 1014 drivers/media/pci/meye/meye.c strscpy(cap->card, "meye", sizeof(cap->card)); card 585 drivers/media/pci/ngene/ngene.h struct snd_card *card; card 48 drivers/media/pci/saa7134/saa7134-alsa.c struct snd_card *card; card 471 drivers/media/pci/saa7134/saa7134-alsa.c snd_ctl_notify(chip->card, card 476 drivers/media/pci/saa7134/saa7134-alsa.c snd_ctl_notify(chip->card, card 890 drivers/media/pci/saa7134/saa7134-alsa.c if ((err = snd_pcm_new(saa7134->card, "SAA7134 PCM", device, 0, 1, &pcm)) < 0) card 1063 drivers/media/pci/saa7134/saa7134-alsa.c struct snd_card *card = chip->card; card 1068 drivers/media/pci/saa7134/saa7134-alsa.c strscpy(card->mixername, "SAA7134 Mixer", sizeof(card->mixername)); card 1073 drivers/media/pci/saa7134/saa7134-alsa.c err = snd_ctl_add(card, kcontrol); card 1083 drivers/media/pci/saa7134/saa7134-alsa.c err = snd_ctl_add(card, kcontrol); card 1092 drivers/media/pci/saa7134/saa7134-alsa.c static void snd_saa7134_free(struct snd_card * card) card 1094 drivers/media/pci/saa7134/saa7134-alsa.c snd_card_saa7134_t *chip = card->private_data; card 1117 drivers/media/pci/saa7134/saa7134-alsa.c struct snd_card *card; card 1128 drivers/media/pci/saa7134/saa7134-alsa.c THIS_MODULE, sizeof(snd_card_saa7134_t), &card); card 1132 drivers/media/pci/saa7134/saa7134-alsa.c strscpy(card->driver, "SAA7134", sizeof(card->driver)); card 1136 drivers/media/pci/saa7134/saa7134-alsa.c card->private_free = snd_saa7134_free; card 1137 drivers/media/pci/saa7134/saa7134-alsa.c chip = card->private_data; card 1144 drivers/media/pci/saa7134/saa7134-alsa.c chip->card = card; card 1172 drivers/media/pci/saa7134/saa7134-alsa.c strscpy(card->shortname, "SAA7134", sizeof(card->shortname)); card 1173 drivers/media/pci/saa7134/saa7134-alsa.c sprintf(card->longname, "%s at 0x%lx irq %d", card 1177 drivers/media/pci/saa7134/saa7134-alsa.c dev->name, card->longname, index[devnum]); card 1179 drivers/media/pci/saa7134/saa7134-alsa.c if ((err = snd_card_register(card)) == 0) { card 1180 drivers/media/pci/saa7134/saa7134-alsa.c snd_saa7134_cards[devnum] = card; card 1185 drivers/media/pci/saa7134/saa7134-alsa.c snd_card_free(card); card 7581 drivers/media/pci/saa7134/saa7134-cards.c dev->name, card(dev).name, dev->name, dev->name); card 66 drivers/media/pci/saa7134/saa7134-core.c static unsigned int card[] = {[0 ... (SAA7134_MAXBOARDS - 1)] = UNSET }; card 73 drivers/media/pci/saa7134/saa7134-core.c module_param_array(card, int, NULL, 0444); card 79 drivers/media/pci/saa7134/saa7134-core.c MODULE_PARM_DESC(card, "card type"); card 1105 drivers/media/pci/saa7134/saa7134-core.c if ((unsigned)card[dev->nr] < saa7134_bcount) card 1106 drivers/media/pci/saa7134/saa7134-core.c dev->board = card[dev->nr]; card 1113 drivers/media/pci/saa7134/saa7134-core.c dev->autodetected = card[dev->nr] != dev->board; card 181 drivers/media/pci/saa7134/saa7134-tvaudio.c (dev->automute && (&card(dev).radio) != in)); card 182 drivers/media/pci/saa7134/saa7134-tvaudio.c if (card(dev).mute.type) { card 188 drivers/media/pci/saa7134/saa7134-tvaudio.c in = &card(dev).mute; card 230 drivers/media/pci/saa7134/saa7134-tvaudio.c if (0 == card(dev).gpiomask) card 233 drivers/media/pci/saa7134/saa7134-tvaudio.c mask = card(dev).gpiomask; card 743 drivers/media/pci/saa7134/saa7134-tvaudio.c if (0 != card(dev).gpiomask) { card 744 drivers/media/pci/saa7134/saa7134-tvaudio.c mask = card(dev).gpiomask; card 746 drivers/media/pci/saa7134/saa7134-tvaudio.c if (card(dev).mute.type && dev->ctl_mute) card 747 drivers/media/pci/saa7134/saa7134-tvaudio.c in = &card(dev).mute; card 781 drivers/media/pci/saa7134/saa7134-tvaudio.c } else if (&card(dev).radio == dev->input) { card 1139 drivers/media/pci/saa7134/saa7134-video.c saa7134_tvaudio_setinput(dev, &card(dev).radio); card 1480 drivers/media/pci/saa7134/saa7134-video.c strscpy(cap->card, saa7134_boards[dev->board].name, card 1481 drivers/media/pci/saa7134/saa7134-video.c sizeof(cap->card)); card 637 drivers/media/pci/saa7164/saa7164-cards.c .card = SAA7164_BOARD_HAUPPAUGE_HVR2250, card 641 drivers/media/pci/saa7164/saa7164-cards.c .card = SAA7164_BOARD_HAUPPAUGE_HVR2250, card 645 drivers/media/pci/saa7164/saa7164-cards.c .card = SAA7164_BOARD_HAUPPAUGE_HVR2200, card 649 drivers/media/pci/saa7164/saa7164-cards.c .card = SAA7164_BOARD_HAUPPAUGE_HVR2200_2, card 653 drivers/media/pci/saa7164/saa7164-cards.c .card = SAA7164_BOARD_HAUPPAUGE_HVR2200_3, card 657 drivers/media/pci/saa7164/saa7164-cards.c .card = SAA7164_BOARD_HAUPPAUGE_HVR2250_3, card 661 drivers/media/pci/saa7164/saa7164-cards.c .card = SAA7164_BOARD_HAUPPAUGE_HVR2250_2, card 665 drivers/media/pci/saa7164/saa7164-cards.c .card = SAA7164_BOARD_HAUPPAUGE_HVR2250_2, card 669 drivers/media/pci/saa7164/saa7164-cards.c .card = SAA7164_BOARD_HAUPPAUGE_HVR2200_4, card 673 drivers/media/pci/saa7164/saa7164-cards.c .card = SAA7164_BOARD_HAUPPAUGE_HVR2200_5, card 677 drivers/media/pci/saa7164/saa7164-cards.c .card = SAA7164_BOARD_HAUPPAUGE_HVR2255, card 684 drivers/media/pci/saa7164/saa7164-cards.c .card = SAA7164_BOARD_HAUPPAUGE_HVR2205, card 688 drivers/media/pci/saa7164/saa7164-cards.c .card = SAA7164_BOARD_HAUPPAUGE_HVR2205, card 57 drivers/media/pci/saa7164/saa7164-core.c static unsigned int card[] = {[0 ... (SAA7164_MAXBOARDS - 1)] = UNSET }; card 58 drivers/media/pci/saa7164/saa7164-core.c module_param_array(card, int, NULL, 0444); card 59 drivers/media/pci/saa7164/saa7164-core.c MODULE_PARM_DESC(card, "card type"); card 961 drivers/media/pci/saa7164/saa7164-core.c if (card[dev->nr] < saa7164_bcount) card 962 drivers/media/pci/saa7164/saa7164-core.c dev->board = card[dev->nr]; card 968 drivers/media/pci/saa7164/saa7164-core.c dev->board = saa7164_subids[i].card; card 1021 drivers/media/pci/saa7164/saa7164-core.c dev->board, card[dev->nr] == dev->board ? card 491 drivers/media/pci/saa7164/saa7164-encoder.c strscpy(cap->card, saa7164_boards[dev->board].name, card 492 drivers/media/pci/saa7164/saa7164-encoder.c sizeof(cap->card)); card 202 drivers/media/pci/saa7164/saa7164-vbi.c strscpy(cap->card, saa7164_boards[dev->board].name, card 203 drivers/media/pci/saa7164/saa7164-vbi.c sizeof(cap->card)); card 174 drivers/media/pci/saa7164/saa7164.h u32 card; card 332 drivers/media/pci/solo6x10/solo6x10-g723.c struct snd_card *card = solo_dev->snd_card; card 338 drivers/media/pci/solo6x10/solo6x10-g723.c ret = snd_pcm_new(card, card->driver, 0, 0, solo_dev->nr_chans, card 348 drivers/media/pci/solo6x10/solo6x10-g723.c strscpy(pcm->name, card->shortname, sizeof(pcm->name)); card 368 drivers/media/pci/solo6x10/solo6x10-g723.c struct snd_card *card; card 384 drivers/media/pci/solo6x10/solo6x10-g723.c card = solo_dev->snd_card; card 386 drivers/media/pci/solo6x10/solo6x10-g723.c strscpy(card->driver, SOLO6X10_NAME, sizeof(card->driver)); card 387 drivers/media/pci/solo6x10/solo6x10-g723.c strscpy(card->shortname, "SOLO-6x10 Audio", sizeof(card->shortname)); card 388 drivers/media/pci/solo6x10/solo6x10-g723.c sprintf(card->longname, "%s on %s IRQ %d", card->shortname, card 391 drivers/media/pci/solo6x10/solo6x10-g723.c ret = snd_device_new(card, SNDRV_DEV_LOWLEVEL, solo_dev, &ops); card 396 drivers/media/pci/solo6x10/solo6x10-g723.c strscpy(card->mixername, "SOLO-6x10", sizeof(card->mixername)); card 400 drivers/media/pci/solo6x10/solo6x10-g723.c ret = snd_ctl_add(card, snd_ctl_new1(&kctl, solo_dev)); card 408 drivers/media/pci/solo6x10/solo6x10-g723.c ret = snd_card_register(card); card 419 drivers/media/pci/solo6x10/solo6x10-g723.c snd_card_free(card); card 770 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c snprintf(cap->card, sizeof(cap->card), "Softlogic 6x10 Enc %d", card 378 drivers/media/pci/solo6x10/solo6x10-v4l2.c strscpy(cap->card, "Softlogic 6x10", sizeof(cap->card)); card 407 drivers/media/pci/sta2x11/sta2x11_vip.c strscpy(cap->card, KBUILD_MODNAME, sizeof(cap->card)); card 83 drivers/media/pci/ttpci/budget-core.c switch(budget->card->type) { card 417 drivers/media/pci/ttpci/budget-core.c budget->card = bi; card 420 drivers/media/pci/ttpci/budget-core.c switch(budget->card->type) { card 469 drivers/media/pci/ttpci/budget-core.c ret = dvb_register_adapter(&budget->dvb_adapter, budget->card->name, card 493 drivers/media/pci/ttpci/budget-core.c strscpy(budget->i2c_adap.name, budget->card->name, card 497 drivers/media/pci/ttpci/budget-core.c strscpy(budget->i2c_adap.name, budget->card->name, card 47 drivers/media/pci/ttpci/budget.h struct budget_info *card; card 605 drivers/media/pci/tw5864/tw5864-video.c snprintf(cap->card, sizeof(cap->card), "TW5864 Encoder %d", card 51 drivers/media/pci/tw68/tw68-core.c static unsigned int card[] = {[0 ... (TW68_MAXBOARDS - 1)] = UNSET }; card 52 drivers/media/pci/tw68/tw68-core.c module_param_array(card, int, NULL, 0444); card 53 drivers/media/pci/tw68/tw68-core.c MODULE_PARM_DESC(card, "card type"); card 718 drivers/media/pci/tw68/tw68-video.c strscpy(cap->card, "Techwell Capture Card", card 719 drivers/media/pci/tw68/tw68-video.c sizeof(cap->card)); card 282 drivers/media/pci/tw686x/tw686x-audio.c struct snd_card *card = dev->snd_card; card 288 drivers/media/pci/tw686x/tw686x-audio.c err = snd_pcm_new(card, card->driver, 0, 0, max_channels(dev), &pcm); card 378 drivers/media/pci/tw686x/tw686x-audio.c struct snd_card *card; card 386 drivers/media/pci/tw686x/tw686x-audio.c THIS_MODULE, 0, &card); card 390 drivers/media/pci/tw686x/tw686x-audio.c dev->snd_card = card; card 391 drivers/media/pci/tw686x/tw686x-audio.c strscpy(card->driver, "tw686x", sizeof(card->driver)); card 392 drivers/media/pci/tw686x/tw686x-audio.c strscpy(card->shortname, "tw686x", sizeof(card->shortname)); card 393 drivers/media/pci/tw686x/tw686x-audio.c strscpy(card->longname, pci_name(pci_dev), sizeof(card->longname)); card 394 drivers/media/pci/tw686x/tw686x-audio.c snd_card_set_dev(card, &pci_dev->dev); card 413 drivers/media/pci/tw686x/tw686x-audio.c err = snd_card_register(card); card 423 drivers/media/pci/tw686x/tw686x-audio.c snd_card_free(card); card 765 drivers/media/pci/tw686x/tw686x-video.c strscpy(cap->card, dev->name, sizeof(cap->card)); card 1400 drivers/media/platform/am437x/am437x-vpfe.c strscpy(cap->card, "TI AM437x VPFE", sizeof(cap->card)); card 987 drivers/media/platform/aspeed-video.c strscpy(cap->card, "Aspeed Video Engine", sizeof(cap->card)); card 916 drivers/media/platform/atmel/atmel-isc-base.c strscpy(cap->card, "Atmel Image Sensor Controller", sizeof(cap->card)); card 656 drivers/media/platform/atmel/atmel-isi.c strscpy(cap->card, "Atmel Image Sensor Interface", sizeof(cap->card)); card 390 drivers/media/platform/coda/coda-common.c strscpy(cap->card, coda_product_name(ctx->dev->devtype->product), card 391 drivers/media/platform/coda/coda-common.c sizeof(cap->card)); card 636 drivers/media/platform/davinci/vpbe_display.c strscpy(cap->card, vpbe_dev->cfg->module_name, sizeof(cap->card)); card 852 drivers/media/platform/davinci/vpfe_capture.c strscpy(cap->card, vpfe_dev->cfg->card_name, sizeof(cap->card)); card 1083 drivers/media/platform/davinci/vpif_capture.c strscpy(cap->card, config->card_name, sizeof(cap->card)); card 590 drivers/media/platform/davinci/vpif_display.c strscpy(cap->card, config->card_name, sizeof(cap->card)); card 294 drivers/media/platform/exynos-gsc/gsc-m2m.c strscpy(cap->card, GSC_MODULE_NAME " gscaler", sizeof(cap->card)); card 40 drivers/media/platform/exynos4-is/common.c strscpy(cap->card, dev->driver->name, sizeof(cap->card)); card 648 drivers/media/platform/exynos4-is/fimc-lite.c strscpy(cap->card, FIMC_LITE_DRV_NAME, sizeof(cap->card)); card 564 drivers/media/platform/fsl-viu.c strscpy(cap->card, "viu", sizeof(cap->card)); card 1029 drivers/media/platform/imx-pxp.c strscpy(cap->card, MEM2MEM_NAME, sizeof(cap->card)); card 435 drivers/media/platform/m2m-deinterlace.c strscpy(cap->card, MEM2MEM_NAME, sizeof(cap->card)); card 1350 drivers/media/platform/marvell-ccic/mcam-core.c strscpy(cap->card, "marvell_ccic", sizeof(cap->card)); card 90 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c strscpy(cap->card, MTK_JPEG_NAME " decoder", sizeof(cap->card)); card 609 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c strscpy(cap->card, mdp->pdev->name, sizeof(cap->card)); card 634 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c strscpy(cap->card, MTK_PLATFORM_STR, sizeof(cap->card)); card 219 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c strscpy(cap->card, MTK_PLATFORM_STR, sizeof(cap->card)); card 382 drivers/media/platform/mx2_emmaprp.c strscpy(cap->card, MEM2MEM_NAME, sizeof(cap->card)); card 576 drivers/media/platform/omap/omap_vout.c strscpy(cap->card, vout->vfd->name, sizeof(cap->card)); card 655 drivers/media/platform/omap3isp/ispvideo.c strscpy(cap->card, video->video.name, sizeof(cap->card)); card 1994 drivers/media/platform/pxa_camera.c strscpy(cap->card, pxa_cam_driver_description, sizeof(cap->card)); card 525 drivers/media/platform/qcom/camss/camss-video.c strscpy(cap->card, "Qualcomm Camera Subsystem", sizeof(cap->card)); card 374 drivers/media/platform/qcom/venus/vdec.c strscpy(cap->card, "Qualcomm Venus video decoder", sizeof(cap->card)); card 268 drivers/media/platform/qcom/venus/venc.c strscpy(cap->card, "Qualcomm Venus video encoder", sizeof(cap->card)); card 255 drivers/media/platform/rcar-vin/rcar-v4l2.c strscpy(cap->card, "R_Car_VIN", sizeof(cap->card)); card 874 drivers/media/platform/rcar_drif.c strscpy(cap->card, sdr->vdev->name, sizeof(cap->card)); card 1365 drivers/media/platform/rcar_fdp1.c strscpy(cap->card, DRIVER_NAME, sizeof(cap->card)); card 667 drivers/media/platform/rcar_jpu.c strscpy(cap->card, DRV_NAME " encoder", sizeof(cap->card)); card 669 drivers/media/platform/rcar_jpu.c strscpy(cap->card, DRV_NAME " decoder", sizeof(cap->card)); card 1138 drivers/media/platform/renesas-ceu.c strscpy(cap->card, "Renesas CEU", sizeof(cap->card)); card 443 drivers/media/platform/rockchip/rga/rga.c strscpy(cap->card, "rockchip-rga", sizeof(cap->card)); card 641 drivers/media/platform/s3c-camif/camif-capture.c strscpy(cap->card, S3C_CAMIF_DRIVER_NAME, sizeof(cap->card)); card 292 drivers/media/platform/s5p-g2d/g2d.c strscpy(cap->card, G2D_NAME, sizeof(cap->card)); card 1252 drivers/media/platform/s5p-jpeg/jpeg-core.c strscpy(cap->card, S5P_JPEG_M2M_NAME " encoder", card 1253 drivers/media/platform/s5p-jpeg/jpeg-core.c sizeof(cap->card)); card 1257 drivers/media/platform/s5p-jpeg/jpeg-core.c strscpy(cap->card, S5P_JPEG_M2M_NAME " decoder", card 1258 drivers/media/platform/s5p-jpeg/jpeg-core.c sizeof(cap->card)); card 257 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c strscpy(cap->card, dev->vfd_dec->name, sizeof(cap->card)); card 1305 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c strscpy(cap->card, dev->vfd_enc->name, sizeof(cap->card)); card 349 drivers/media/platform/sh_veu.c strscpy(cap->card, "sh-mobile VEU", sizeof(cap->card)); card 375 drivers/media/platform/sh_vou.c strscpy(cap->card, "SuperH VOU", sizeof(cap->card)); card 691 drivers/media/platform/sti/bdisp/bdisp-v4l2.c strscpy(cap->card, bdisp->pdev->name, sizeof(cap->card)); card 389 drivers/media/platform/sti/delta/delta-v4l2.c strscpy(cap->card, delta->vdev->name, sizeof(cap->card)); card 261 drivers/media/platform/sti/hva/hva-v4l2.c strscpy(cap->card, hva->vdev->name, sizeof(cap->card)); card 1324 drivers/media/platform/stm32/stm32-dcmi.c strscpy(cap->card, "STM32 Camera Memory Interface", card 1325 drivers/media/platform/stm32/stm32-dcmi.c sizeof(cap->card)); card 59 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c strscpy(cap->card, "sun4i-csi", sizeof(cap->card)); card 320 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c strscpy(cap->card, video->vdev.name, sizeof(cap->card)); card 910 drivers/media/platform/ti-vpe/cal.c strscpy(cap->card, CAL_MODULE_NAME, sizeof(cap->card)); card 1495 drivers/media/platform/ti-vpe/vpe.c strscpy(cap->card, VPE_MODULE_NAME, sizeof(cap->card)); card 919 drivers/media/platform/via-camera.c strscpy(cap->card, "via-camera", sizeof(cap->card)); card 708 drivers/media/platform/vicodec/vicodec-core.c strscpy(cap->card, VICODEC_NAME, sizeof(cap->card)); card 663 drivers/media/platform/vim2m.c strscpy(cap->card, MEM2MEM_NAME, sizeof(cap->card)); card 64 drivers/media/platform/vimc/vimc-capture.c strscpy(cap->card, KBUILD_MODNAME, sizeof(cap->card)); card 201 drivers/media/platform/vivid/vivid-core.c strscpy(cap->card, "vivid", sizeof(cap->card)); card 431 drivers/media/platform/vsp1/vsp1_histo.c strscpy(cap->card, histo->video.name, sizeof(cap->card)); card 961 drivers/media/platform/vsp1/vsp1_video.c strscpy(cap->card, video->video.name, sizeof(cap->card)); card 498 drivers/media/platform/xilinx/xilinx-dma.c strscpy(cap->card, dma->video.name, sizeof(cap->card)); card 169 drivers/media/radio/dsbr100.c strscpy(v->card, "D-Link R-100 USB FM Radio", sizeof(v->card)); card 178 drivers/media/radio/radio-aimslab.c .card = "AIMSlab RadioTrack/RadioReveal", card 144 drivers/media/radio/radio-aztech.c .card = "Aztech Radio", card 358 drivers/media/radio/radio-cadet.c strscpy(v->card, "ADS Cadet", sizeof(v->card)); card 316 drivers/media/radio/radio-gemtek.c .card = "GemTek Radio", card 38 drivers/media/radio/radio-isa.c strscpy(v->card, isa->drv->card, sizeof(v->card)); card 265 drivers/media/radio/radio-isa.c drv->card, isa->io); card 286 drivers/media/radio/radio-isa.c v4l2_info(&isa->v4l2_dev, "Removed radio card %s\n", isa->drv->card); card 84 drivers/media/radio/radio-isa.h const char *card; card 169 drivers/media/radio/radio-keene.c strscpy(v->card, "Keene FM Transmitter", sizeof(v->card)); card 192 drivers/media/radio/radio-ma901.c strscpy(v->card, "Masterkit MA901 USB FM Radio", sizeof(v->card)); card 146 drivers/media/radio/radio-maxiradio.c strscpy(dev->tea.card, "Maxi Radio FM2000", sizeof(dev->tea.card)); card 205 drivers/media/radio/radio-miropcm20.c strscpy(v->card, "Miro PCM20", sizeof(v->card)); card 261 drivers/media/radio/radio-mr800.c strscpy(v->card, "AverMedia MR 800 USB FM Radio", sizeof(v->card)); card 185 drivers/media/radio/radio-raremono.c strscpy(v->card, "Thanko's Raremono", sizeof(v->card)); card 126 drivers/media/radio/radio-rtrack2.c .card = "AIMSlab RadioTrack II", card 134 drivers/media/radio/radio-sf16fmi.c strscpy(v->card, "SF16-FMI/FMP/FMD radio", sizeof(v->card)); card 238 drivers/media/radio/radio-sf16fmr2.c strscpy(fmr2->tea.card, card_name, sizeof(fmr2->tea.card)); card 348 drivers/media/radio/radio-shark.c strscpy(shark->tea.card, "Griffin radioSHARK", card 349 drivers/media/radio/radio-shark.c sizeof(shark->tea.card)); card 313 drivers/media/radio/radio-shark2.c strscpy(shark->tea.card, "Griffin radioSHARK2", card 314 drivers/media/radio/radio-shark2.c sizeof(shark->tea.card)); card 336 drivers/media/radio/radio-si476x.c strscpy(capability->card, DRIVER_CARD, sizeof(capability->card)); card 282 drivers/media/radio/radio-tea5764.c strscpy(v->card, dev->name, sizeof(v->card)); card 260 drivers/media/radio/radio-tea5777.c strscpy(v->card, tea->card, sizeof(v->card)); card 261 drivers/media/radio/radio-tea5777.c strlcat(v->card, " TEA5777", sizeof(v->card)); card 67 drivers/media/radio/radio-tea5777.h u8 card[32]; card 153 drivers/media/radio/radio-terratec.c .card = "TerraTec ActiveRadio", card 35 drivers/media/radio/radio-timb.c strscpy(v->card, "Timberdale Radio", sizeof(v->card)); card 226 drivers/media/radio/radio-trust.c .card = "Trust FM Radio", card 155 drivers/media/radio/radio-typhoon.c .card = "Typhoon Radio", card 1282 drivers/media/radio/radio-wl1273.c strscpy(capability->card, "Texas Instruments Wl1273 FM Radio", card 1283 drivers/media/radio/radio-wl1273.c sizeof(capability->card)); card 231 drivers/media/radio/radio-zoltrix.c .card = "Zoltrix Radio Plus", card 225 drivers/media/radio/si470x/radio-si470x-i2c.c strscpy(capability->card, DRIVER_CARD, sizeof(capability->card)); card 514 drivers/media/radio/si470x/radio-si470x-usb.c strscpy(capability->card, DRIVER_CARD, sizeof(capability->card)); card 62 drivers/media/radio/si4713/radio-platform-si4713.c strscpy(capability->card, "Silicon Labs Si4713 Modulator", card 63 drivers/media/radio/si4713/radio-platform-si4713.c sizeof(capability->card)); card 71 drivers/media/radio/si4713/radio-usb-si4713.c strscpy(v->card, "Si4713 FM Transmitter", sizeof(v->card)); card 226 drivers/media/radio/tea575x.c strscpy(v->card, tea->card, sizeof(v->card)); card 227 drivers/media/radio/tea575x.c strlcat(v->card, tea->tea5759 ? " TEA5759" : " TEA5757", sizeof(v->card)); card 194 drivers/media/radio/wl128x/fmdrv.h struct snd_card *card; /* Card which holds FM mixer controls */ card 185 drivers/media/radio/wl128x/fmdrv_v4l2.c strscpy(capability->card, FM_DRV_CARD_SHORT_NAME, card 186 drivers/media/radio/wl128x/fmdrv_v4l2.c sizeof(capability->card)); card 612 drivers/media/usb/airspy/airspy.c strscpy(cap->card, s->vdev.name, sizeof(cap->card)); card 1190 drivers/media/usb/au0828/au0828-video.c strscpy(cap->card, dev->board.name, sizeof(cap->card)); card 216 drivers/media/usb/cpia2/cpia2_v4l.c strscpy(vc->card, "QX5 Microscope", sizeof(vc->card)); card 218 drivers/media/usb/cpia2/cpia2_v4l.c strscpy(vc->card, "CPiA2 Camera", sizeof(vc->card)); card 221 drivers/media/usb/cpia2/cpia2_v4l.c strcat(vc->card, " (672/"); card 224 drivers/media/usb/cpia2/cpia2_v4l.c strcat(vc->card, " (676/"); card 227 drivers/media/usb/cpia2/cpia2_v4l.c strcat(vc->card, " (XXX/"); card 232 drivers/media/usb/cpia2/cpia2_v4l.c strcat(vc->card, "404)"); card 235 drivers/media/usb/cpia2/cpia2_v4l.c strcat(vc->card, "407)"); card 238 drivers/media/usb/cpia2/cpia2_v4l.c strcat(vc->card, "409)"); card 241 drivers/media/usb/cpia2/cpia2_v4l.c strcat(vc->card, "410)"); card 244 drivers/media/usb/cpia2/cpia2_v4l.c strcat(vc->card, "500)"); card 247 drivers/media/usb/cpia2/cpia2_v4l.c strcat(vc->card, "XXX)"); card 642 drivers/media/usb/cx231xx/cx231xx-audio.c struct snd_card *card; card 659 drivers/media/usb/cx231xx/cx231xx-audio.c THIS_MODULE, 0, &card); card 664 drivers/media/usb/cx231xx/cx231xx-audio.c err = snd_pcm_new(card, "Cx231xx Audio", 0, 0, 1, &pcm); card 673 drivers/media/usb/cx231xx/cx231xx-audio.c strscpy(card->driver, "Cx231xx-Audio", sizeof(card->driver)); card 674 drivers/media/usb/cx231xx/cx231xx-audio.c strscpy(card->shortname, "Cx231xx Audio", sizeof(card->shortname)); card 675 drivers/media/usb/cx231xx/cx231xx-audio.c strscpy(card->longname, "Conexant cx231xx Audio", sizeof(card->longname)); card 679 drivers/media/usb/cx231xx/cx231xx-audio.c err = snd_card_register(card); card 683 drivers/media/usb/cx231xx/cx231xx-audio.c adev->sndcard = card; card 733 drivers/media/usb/cx231xx/cx231xx-audio.c snd_card_free(card); card 61 drivers/media/usb/cx231xx/cx231xx-video.c static unsigned int card[] = {[0 ... (CX231XX_MAXBOARDS - 1)] = UNSET }; card 66 drivers/media/usb/cx231xx/cx231xx-video.c module_param_array(card, int, NULL, 0444); card 71 drivers/media/usb/cx231xx/cx231xx-video.c MODULE_PARM_DESC(card, "card type"); card 1561 drivers/media/usb/cx231xx/cx231xx-video.c strscpy(cap->card, cx231xx_boards[dev->model].name, sizeof(cap->card)); card 974 drivers/media/usb/dvb-usb/cxusb-analog.c strscpy(cap->card, "Medion 95700", sizeof(cap->card)); card 660 drivers/media/usb/em28xx/em28xx-audio.c static int em28xx_cvol_new(struct snd_card *card, struct em28xx *dev, card 679 drivers/media/usb/em28xx/em28xx-audio.c err = snd_ctl_add(card, kctl); card 697 drivers/media/usb/em28xx/em28xx-audio.c err = snd_ctl_add(card, kctl); card 904 drivers/media/usb/em28xx/em28xx-audio.c struct snd_card *card; card 927 drivers/media/usb/em28xx/em28xx-audio.c THIS_MODULE, 0, &card); card 932 drivers/media/usb/em28xx/em28xx-audio.c adev->sndcard = card; card 935 drivers/media/usb/em28xx/em28xx-audio.c err = snd_pcm_new(card, "Em28xx Audio", 0, 0, 1, &pcm); card 944 drivers/media/usb/em28xx/em28xx-audio.c strscpy(card->driver, "Em28xx-Audio", sizeof(card->driver)); card 945 drivers/media/usb/em28xx/em28xx-audio.c strscpy(card->shortname, "Em28xx Audio", sizeof(card->shortname)); card 946 drivers/media/usb/em28xx/em28xx-audio.c strscpy(card->longname, "Empia Em28xx Audio", sizeof(card->longname)); card 951 drivers/media/usb/em28xx/em28xx-audio.c em28xx_cvol_new(card, dev, "Video", AC97_VIDEO); card 952 drivers/media/usb/em28xx/em28xx-audio.c em28xx_cvol_new(card, dev, "Line In", AC97_LINE); card 953 drivers/media/usb/em28xx/em28xx-audio.c em28xx_cvol_new(card, dev, "Phone", AC97_PHONE); card 954 drivers/media/usb/em28xx/em28xx-audio.c em28xx_cvol_new(card, dev, "Microphone", AC97_MIC); card 955 drivers/media/usb/em28xx/em28xx-audio.c em28xx_cvol_new(card, dev, "CD", AC97_CD); card 956 drivers/media/usb/em28xx/em28xx-audio.c em28xx_cvol_new(card, dev, "AUX", AC97_AUX); card 957 drivers/media/usb/em28xx/em28xx-audio.c em28xx_cvol_new(card, dev, "PCM", AC97_PCM); card 959 drivers/media/usb/em28xx/em28xx-audio.c em28xx_cvol_new(card, dev, "Master", AC97_MASTER); card 960 drivers/media/usb/em28xx/em28xx-audio.c em28xx_cvol_new(card, dev, "Line", AC97_HEADPHONE); card 961 drivers/media/usb/em28xx/em28xx-audio.c em28xx_cvol_new(card, dev, "Mono", AC97_MASTER_MONO); card 962 drivers/media/usb/em28xx/em28xx-audio.c em28xx_cvol_new(card, dev, "LFE", AC97_CENTER_LFE_MASTER); card 963 drivers/media/usb/em28xx/em28xx-audio.c em28xx_cvol_new(card, dev, "Surround", AC97_SURROUND_MASTER); card 970 drivers/media/usb/em28xx/em28xx-audio.c err = snd_card_register(card); card 981 drivers/media/usb/em28xx/em28xx-audio.c snd_card_free(card); card 54 drivers/media/usb/em28xx/em28xx-cards.c static unsigned int card[] = {[0 ... (EM28XX_MAXBOARDS - 1)] = -1U }; card 55 drivers/media/usb/em28xx/em28xx-cards.c module_param_array(card, int, NULL, 0444); card 56 drivers/media/usb/em28xx/em28xx-cards.c MODULE_PARM_DESC(card, "card type"); card 3861 drivers/media/usb/em28xx/em28xx-cards.c if ((unsigned int)card[nr] < em28xx_bcount) card 3862 drivers/media/usb/em28xx/em28xx-cards.c dev->model = card[nr]; card 1984 drivers/media/usb/em28xx/em28xx-video.c strscpy(cap->card, em28xx_boards[dev->model].name, sizeof(cap->card)); card 280 drivers/media/usb/go7007/go7007-v4l2.c strscpy(cap->card, go->name, sizeof(cap->card)); card 37 drivers/media/usb/go7007/snd-go7007.c struct snd_card *card; card 238 drivers/media/usb/go7007/snd-go7007.c &gosnd->card); card 243 drivers/media/usb/go7007/snd-go7007.c ret = snd_device_new(gosnd->card, SNDRV_DEV_LOWLEVEL, go, card 249 drivers/media/usb/go7007/snd-go7007.c ret = snd_pcm_new(gosnd->card, "go7007", 0, 0, 1, &gosnd->pcm); card 251 drivers/media/usb/go7007/snd-go7007.c snd_card_free(gosnd->card); card 255 drivers/media/usb/go7007/snd-go7007.c strscpy(gosnd->card->driver, "go7007", sizeof(gosnd->card->driver)); card 256 drivers/media/usb/go7007/snd-go7007.c strscpy(gosnd->card->shortname, go->name, sizeof(gosnd->card->shortname)); card 257 drivers/media/usb/go7007/snd-go7007.c strscpy(gosnd->card->longname, gosnd->card->shortname, card 258 drivers/media/usb/go7007/snd-go7007.c sizeof(gosnd->card->longname)); card 264 drivers/media/usb/go7007/snd-go7007.c ret = snd_card_register(gosnd->card); card 266 drivers/media/usb/go7007/snd-go7007.c snd_card_free(gosnd->card); card 284 drivers/media/usb/go7007/snd-go7007.c snd_card_disconnect(gosnd->card); card 285 drivers/media/usb/go7007/snd-go7007.c snd_card_free_when_closed(gosnd->card); card 1195 drivers/media/usb/gspca/gspca.c strscpy((char *)cap->card, gspca_dev->dev->product, card 1196 drivers/media/usb/gspca/gspca.c sizeof(cap->card)); card 1198 drivers/media/usb/gspca/gspca.c snprintf((char *) cap->card, sizeof cap->card, card 907 drivers/media/usb/hackrf/hackrf.c strscpy(cap->card, dev->rx_vdev.name, sizeof(cap->card)); card 585 drivers/media/usb/hdpvr/hdpvr-video.c strscpy(cap->card, "Hauppauge HD PVR", sizeof(cap->card)); card 592 drivers/media/usb/msi2500/msi2500.c strscpy(cap->card, dev->vdev.name, sizeof(cap->card)); card 117 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c strscpy(cap->card, pvr2_hdw_get_desc(hdw), sizeof(cap->card)); card 484 drivers/media/usb/pwc/pwc-v4l.c strscpy(cap->card, pdev->vdev.name, sizeof(cap->card)); card 718 drivers/media/usb/s2255/s2255drv.c strscpy(cap->card, "s2255", sizeof(cap->card)); card 337 drivers/media/usb/stk1160/stk1160-v4l.c strscpy(cap->card, "stk1160", sizeof(cap->card)); card 798 drivers/media/usb/stkwebcam/stk-webcam.c strscpy(cap->card, "stk", sizeof(cap->card)); card 410 drivers/media/usb/tm6000/tm6000-alsa.c struct snd_card *card; card 427 drivers/media/usb/tm6000/tm6000-alsa.c THIS_MODULE, 0, &card); card 432 drivers/media/usb/tm6000/tm6000-alsa.c strscpy(card->driver, "tm6000-alsa", sizeof(card->driver)); card 433 drivers/media/usb/tm6000/tm6000-alsa.c strscpy(card->shortname, "TM5600/60x0", sizeof(card->shortname)); card 434 drivers/media/usb/tm6000/tm6000-alsa.c sprintf(card->longname, "TM5600/60x0 Audio at bus %d device %d", card 440 drivers/media/usb/tm6000/tm6000-alsa.c snd_component_add(card, component); card 449 drivers/media/usb/tm6000/tm6000-alsa.c chip->card = card; card 453 drivers/media/usb/tm6000/tm6000-alsa.c rc = snd_pcm_new(card, "TM6000 Audio", 0, 0, 1, &pcm); card 464 drivers/media/usb/tm6000/tm6000-alsa.c rc = snd_card_register(card); card 468 drivers/media/usb/tm6000/tm6000-alsa.c dprintk(1, "Registered audio driver for %s\n", card->longname); card 476 drivers/media/usb/tm6000/tm6000-alsa.c snd_card_free(card); card 491 drivers/media/usb/tm6000/tm6000-alsa.c if (!chip->card) card 494 drivers/media/usb/tm6000/tm6000-alsa.c snd_card_free(chip->card); card 495 drivers/media/usb/tm6000/tm6000-alsa.c chip->card = NULL; card 47 drivers/media/usb/tm6000/tm6000-cards.c static unsigned int card[] = {[0 ... (TM6000_MAXBOARDS - 1)] = UNSET }; card 49 drivers/media/usb/tm6000/tm6000-cards.c module_param_array(card, int, NULL, 0444); card 1210 drivers/media/usb/tm6000/tm6000-cards.c if (card[nr] < ARRAY_SIZE(tm6000_boards)) card 1211 drivers/media/usb/tm6000/tm6000-cards.c dev->model = card[nr]; card 856 drivers/media/usb/tm6000/tm6000-video.c strscpy(cap->card, "Trident TVMaster TM5600/6000/6010", card 857 drivers/media/usb/tm6000/tm6000-video.c sizeof(cap->card)); card 142 drivers/media/usb/tm6000/tm6000.h struct snd_card *card; card 350 drivers/media/usb/usbtv/usbtv-audio.c struct snd_card *card; card 357 drivers/media/usb/usbtv/usbtv-audio.c THIS_MODULE, 0, &card); card 361 drivers/media/usb/usbtv/usbtv-audio.c strscpy(card->driver, usbtv->dev->driver->name, sizeof(card->driver)); card 362 drivers/media/usb/usbtv/usbtv-audio.c strscpy(card->shortname, "usbtv", sizeof(card->shortname)); card 363 drivers/media/usb/usbtv/usbtv-audio.c snprintf(card->longname, sizeof(card->longname), card 367 drivers/media/usb/usbtv/usbtv-audio.c snd_card_set_dev(card, usbtv->dev); card 369 drivers/media/usb/usbtv/usbtv-audio.c usbtv->snd = card; card 371 drivers/media/usb/usbtv/usbtv-audio.c rv = snd_pcm_new(card, "USBTV Audio", 0, 0, 1, &pcm); card 384 drivers/media/usb/usbtv/usbtv-audio.c rv = snd_card_register(card); card 392 drivers/media/usb/usbtv/usbtv-audio.c snd_card_free(card); card 604 drivers/media/usb/usbtv/usbtv-video.c strscpy(cap->card, "usbtv", sizeof(cap->card)); card 466 drivers/media/usb/usbvision/usbvision-video.c strscpy(vc->card, card 468 drivers/media/usb/usbvision/usbvision-video.c sizeof(vc->card)); card 33 drivers/media/usb/uvc/uvc_metadata.c strscpy(cap->card, vfh->vdev->name, sizeof(cap->card)); card 588 drivers/media/usb/uvc/uvc_v4l2.c strscpy(cap->card, vdev->name, sizeof(cap->card)); card 693 drivers/media/usb/zr364xx/zr364xx.c strscpy(cap->card, cam->udev->product, sizeof(cap->card)); card 215 drivers/media/v4l2-core/v4l2-ioctl.c (int)sizeof(p->card), p->card, card 28 drivers/memstick/core/memstick.c static int memstick_dev_match(struct memstick_dev *card, card 32 drivers/memstick/core/memstick.c if ((id->type == card->id.type) card 33 drivers/memstick/core/memstick.c && (id->category == card->id.category) card 34 drivers/memstick/core/memstick.c && (id->class == card->id.class)) card 43 drivers/memstick/core/memstick.c struct memstick_dev *card = container_of(dev, struct memstick_dev, card 52 drivers/memstick/core/memstick.c if (memstick_dev_match(card, ids)) card 62 drivers/memstick/core/memstick.c struct memstick_dev *card = container_of(dev, struct memstick_dev, card 65 drivers/memstick/core/memstick.c if (add_uevent_var(env, "MEMSTICK_TYPE=%02X", card->id.type)) card 68 drivers/memstick/core/memstick.c if (add_uevent_var(env, "MEMSTICK_CATEGORY=%02X", card->id.category)) card 71 drivers/memstick/core/memstick.c if (add_uevent_var(env, "MEMSTICK_CLASS=%02X", card->id.class)) card 79 drivers/memstick/core/memstick.c struct memstick_dev *card = container_of(dev, struct memstick_dev, card 87 drivers/memstick/core/memstick.c rc = drv->probe(card); card 96 drivers/memstick/core/memstick.c struct memstick_dev *card = container_of(dev, struct memstick_dev, card 103 drivers/memstick/core/memstick.c drv->remove(card); card 104 drivers/memstick/core/memstick.c card->dev.driver = NULL; card 115 drivers/memstick/core/memstick.c struct memstick_dev *card = container_of(dev, struct memstick_dev, card 122 drivers/memstick/core/memstick.c return drv->suspend(card, state); card 128 drivers/memstick/core/memstick.c struct memstick_dev *card = container_of(dev, struct memstick_dev, card 135 drivers/memstick/core/memstick.c return drv->resume(card); card 150 drivers/memstick/core/memstick.c struct memstick_dev *card = container_of(dev, struct memstick_dev, \ card 152 drivers/memstick/core/memstick.c return sprintf(buf, format, card->id.name); \ card 193 drivers/memstick/core/memstick.c struct memstick_dev *card = container_of(dev, struct memstick_dev, card 195 drivers/memstick/core/memstick.c kfree(card); card 198 drivers/memstick/core/memstick.c static int memstick_dummy_check(struct memstick_dev *card) card 233 drivers/memstick/core/memstick.c if (host->card && host->card->next_request) card 234 drivers/memstick/core/memstick.c rc = host->card->next_request(host->card, mrq); card 251 drivers/memstick/core/memstick.c if (host->card) { card 253 drivers/memstick/core/memstick.c reinit_completion(&host->card->mrq_complete); card 324 drivers/memstick/core/memstick.c static int h_memstick_read_dev_id(struct memstick_dev *card, card 330 drivers/memstick/core/memstick.c memstick_init_req(&card->current_mrq, MS_TPC_READ_REG, &id_reg, card 332 drivers/memstick/core/memstick.c *mrq = &card->current_mrq; card 337 drivers/memstick/core/memstick.c card->id.match_flags = MEMSTICK_MATCH_ALL; card 338 drivers/memstick/core/memstick.c card->id.type = id_reg.type; card 339 drivers/memstick/core/memstick.c card->id.category = id_reg.category; card 340 drivers/memstick/core/memstick.c card->id.class = id_reg.class; card 341 drivers/memstick/core/memstick.c dev_dbg(&card->dev, "if_mode = %02x\n", id_reg.if_mode); card 343 drivers/memstick/core/memstick.c complete(&card->mrq_complete); card 348 drivers/memstick/core/memstick.c static int h_memstick_set_rw_addr(struct memstick_dev *card, card 352 drivers/memstick/core/memstick.c memstick_init_req(&card->current_mrq, MS_TPC_SET_RW_REG_ADRS, card 353 drivers/memstick/core/memstick.c (char *)&card->reg_addr, card 354 drivers/memstick/core/memstick.c sizeof(card->reg_addr)); card 355 drivers/memstick/core/memstick.c *mrq = &card->current_mrq; card 358 drivers/memstick/core/memstick.c complete(&card->mrq_complete); card 368 drivers/memstick/core/memstick.c int memstick_set_rw_addr(struct memstick_dev *card) card 370 drivers/memstick/core/memstick.c card->next_request = h_memstick_set_rw_addr; card 371 drivers/memstick/core/memstick.c memstick_new_req(card->host); card 372 drivers/memstick/core/memstick.c wait_for_completion(&card->mrq_complete); card 374 drivers/memstick/core/memstick.c return card->current_mrq.error; card 380 drivers/memstick/core/memstick.c struct memstick_dev *card = kzalloc(sizeof(struct memstick_dev), card 382 drivers/memstick/core/memstick.c struct memstick_dev *old_card = host->card; card 385 drivers/memstick/core/memstick.c if (card) { card 386 drivers/memstick/core/memstick.c card->host = host; card 387 drivers/memstick/core/memstick.c dev_set_name(&card->dev, "%s", dev_name(&host->dev)); card 388 drivers/memstick/core/memstick.c card->dev.parent = &host->dev; card 389 drivers/memstick/core/memstick.c card->dev.bus = &memstick_bus_type; card 390 drivers/memstick/core/memstick.c card->dev.release = memstick_free_card; card 391 drivers/memstick/core/memstick.c card->check = memstick_dummy_check; card 393 drivers/memstick/core/memstick.c card->reg_addr.r_offset = offsetof(struct ms_register, id); card 394 drivers/memstick/core/memstick.c card->reg_addr.r_length = sizeof(id_reg); card 395 drivers/memstick/core/memstick.c card->reg_addr.w_offset = offsetof(struct ms_register, id); card 396 drivers/memstick/core/memstick.c card->reg_addr.w_length = sizeof(id_reg); card 398 drivers/memstick/core/memstick.c init_completion(&card->mrq_complete); card 400 drivers/memstick/core/memstick.c host->card = card; card 401 drivers/memstick/core/memstick.c if (memstick_set_rw_addr(card)) card 404 drivers/memstick/core/memstick.c card->next_request = h_memstick_read_dev_id; card 406 drivers/memstick/core/memstick.c wait_for_completion(&card->mrq_complete); card 408 drivers/memstick/core/memstick.c if (card->current_mrq.error) card 411 drivers/memstick/core/memstick.c host->card = old_card; card 412 drivers/memstick/core/memstick.c return card; card 414 drivers/memstick/core/memstick.c host->card = old_card; card 415 drivers/memstick/core/memstick.c kfree(card); card 433 drivers/memstick/core/memstick.c struct memstick_dev *card; card 438 drivers/memstick/core/memstick.c if (!host->card) { card 441 drivers/memstick/core/memstick.c } else if (host->card->stop) card 442 drivers/memstick/core/memstick.c host->card->stop(host->card); card 444 drivers/memstick/core/memstick.c card = memstick_alloc_card(host); card 446 drivers/memstick/core/memstick.c if (!card) { card 447 drivers/memstick/core/memstick.c if (host->card) { card 448 drivers/memstick/core/memstick.c device_unregister(&host->card->dev); card 449 drivers/memstick/core/memstick.c host->card = NULL; card 453 drivers/memstick/core/memstick.c card->id.type, card->id.category, card->id.class); card 454 drivers/memstick/core/memstick.c if (host->card) { card 455 drivers/memstick/core/memstick.c if (memstick_set_rw_addr(host->card) card 456 drivers/memstick/core/memstick.c || !memstick_dev_match(host->card, &card->id) card 457 drivers/memstick/core/memstick.c || !(host->card->check(host->card))) { card 458 drivers/memstick/core/memstick.c device_unregister(&host->card->dev); card 459 drivers/memstick/core/memstick.c host->card = NULL; card 460 drivers/memstick/core/memstick.c } else if (host->card->start) card 461 drivers/memstick/core/memstick.c host->card->start(host->card); card 464 drivers/memstick/core/memstick.c if (!host->card) { card 465 drivers/memstick/core/memstick.c host->card = card; card 466 drivers/memstick/core/memstick.c if (device_register(&card->dev)) { card 467 drivers/memstick/core/memstick.c put_device(&card->dev); card 468 drivers/memstick/core/memstick.c kfree(host->card); card 469 drivers/memstick/core/memstick.c host->card = NULL; card 472 drivers/memstick/core/memstick.c kfree(card); card 476 drivers/memstick/core/memstick.c if (!host->card) card 550 drivers/memstick/core/memstick.c if (host->card) card 551 drivers/memstick/core/memstick.c device_unregister(&host->card->dev); card 552 drivers/memstick/core/memstick.c host->card = NULL; card 595 drivers/memstick/core/memstick.c if (host->card) card 218 drivers/memstick/core/ms_block.c (struct memstick_dev *card, struct memstick_request **req)) card 220 drivers/memstick/core/ms_block.c struct memstick_dev *card = msb->card; card 227 drivers/memstick/core/ms_block.c memset(&card->current_mrq, 0, sizeof(card->current_mrq)); card 229 drivers/memstick/core/ms_block.c card->next_request = state_func; card 230 drivers/memstick/core/ms_block.c memstick_new_req(card->host); card 231 drivers/memstick/core/ms_block.c wait_for_completion(&card->mrq_complete); card 244 drivers/memstick/core/ms_block.c msb->card->next_request = h_msb_default_bad; card 250 drivers/memstick/core/ms_block.c complete(&msb->card->mrq_complete); card 257 drivers/memstick/core/ms_block.c struct memstick_request *mrq = &msb->card->current_mrq; card 284 drivers/memstick/core/ms_block.c struct memstick_request *req = &msb->card->current_mrq; card 305 drivers/memstick/core/ms_block.c struct memstick_request *req = &msb->card->current_mrq; card 324 drivers/memstick/core/ms_block.c static int h_msb_default_bad(struct memstick_dev *card, card 335 drivers/memstick/core/ms_block.c static int h_msb_read_page(struct memstick_dev *card, card 338 drivers/memstick/core/ms_block.c struct msb_data *msb = memstick_get_drvdata(card); card 339 drivers/memstick/core/ms_block.c struct memstick_request *mrq = *out_mrq = &card->current_mrq; card 471 drivers/memstick/core/ms_block.c static int h_msb_write_block(struct memstick_dev *card, card 474 drivers/memstick/core/ms_block.c struct msb_data *msb = memstick_get_drvdata(card); card 475 drivers/memstick/core/ms_block.c struct memstick_request *mrq = *out_mrq = &card->current_mrq; card 583 drivers/memstick/core/ms_block.c static int h_msb_send_command(struct memstick_dev *card, card 586 drivers/memstick/core/ms_block.c struct msb_data *msb = memstick_get_drvdata(card); card 587 drivers/memstick/core/ms_block.c struct memstick_request *mrq = *out_mrq = &card->current_mrq; card 653 drivers/memstick/core/ms_block.c static int h_msb_reset(struct memstick_dev *card, card 657 drivers/memstick/core/ms_block.c struct msb_data *msb = memstick_get_drvdata(card); card 658 drivers/memstick/core/ms_block.c struct memstick_request *mrq = *out_mrq = &card->current_mrq; card 676 drivers/memstick/core/ms_block.c static int h_msb_parallel_switch(struct memstick_dev *card, card 679 drivers/memstick/core/ms_block.c struct msb_data *msb = memstick_get_drvdata(card); card 680 drivers/memstick/core/ms_block.c struct memstick_request *mrq = *out_mrq = &card->current_mrq; card 681 drivers/memstick/core/ms_block.c struct memstick_host *host = card->host; card 725 drivers/memstick/core/ms_block.c struct memstick_dev *card = msb->card; card 726 drivers/memstick/core/ms_block.c struct memstick_host *host = card->host; card 1690 drivers/memstick/core/ms_block.c static int msb_init_card(struct memstick_dev *card) card 1692 drivers/memstick/core/ms_block.c struct msb_data *msb = memstick_get_drvdata(card); card 1693 drivers/memstick/core/ms_block.c struct memstick_host *host = card->host; card 1699 drivers/memstick/core/ms_block.c if (card->id.class >= MEMSTICK_CLASS_ROM && card 1700 drivers/memstick/core/ms_block.c card->id.class <= MEMSTICK_CLASS_ROM) card 1946 drivers/memstick/core/ms_block.c if (msb && msb->card) card 1959 drivers/memstick/core/ms_block.c msb->card = NULL; card 2000 drivers/memstick/core/ms_block.c struct memstick_dev *card = hctx->queue->queuedata; card 2001 drivers/memstick/core/ms_block.c struct msb_data *msb = memstick_get_drvdata(card); card 2033 drivers/memstick/core/ms_block.c static int msb_check_card(struct memstick_dev *card) card 2035 drivers/memstick/core/ms_block.c struct msb_data *msb = memstick_get_drvdata(card); card 2039 drivers/memstick/core/ms_block.c static void msb_stop(struct memstick_dev *card) card 2041 drivers/memstick/core/ms_block.c struct msb_data *msb = memstick_get_drvdata(card); card 2062 drivers/memstick/core/ms_block.c static void msb_start(struct memstick_dev *card) card 2064 drivers/memstick/core/ms_block.c struct msb_data *msb = memstick_get_drvdata(card); card 2100 drivers/memstick/core/ms_block.c static int msb_init_disk(struct memstick_dev *card) card 2102 drivers/memstick/core/ms_block.c struct msb_data *msb = memstick_get_drvdata(card); card 2107 drivers/memstick/core/ms_block.c msb->disk_id = idr_alloc(&msb_disk_idr, card, 0, 256, GFP_KERNEL); card 2127 drivers/memstick/core/ms_block.c msb->queue->queuedata = card; card 2154 drivers/memstick/core/ms_block.c msb_start(card); card 2155 drivers/memstick/core/ms_block.c device_add_disk(&card->dev, msb->disk, NULL); card 2168 drivers/memstick/core/ms_block.c static int msb_probe(struct memstick_dev *card) card 2176 drivers/memstick/core/ms_block.c memstick_set_drvdata(card, msb); card 2177 drivers/memstick/core/ms_block.c msb->card = card; card 2180 drivers/memstick/core/ms_block.c rc = msb_init_card(card); card 2184 drivers/memstick/core/ms_block.c rc = msb_init_disk(card); card 2186 drivers/memstick/core/ms_block.c card->check = msb_check_card; card 2187 drivers/memstick/core/ms_block.c card->stop = msb_stop; card 2188 drivers/memstick/core/ms_block.c card->start = msb_start; card 2192 drivers/memstick/core/ms_block.c memstick_set_drvdata(card, NULL); card 2198 drivers/memstick/core/ms_block.c static void msb_remove(struct memstick_dev *card) card 2200 drivers/memstick/core/ms_block.c struct msb_data *msb = memstick_get_drvdata(card); card 2204 drivers/memstick/core/ms_block.c msb_stop(card); card 2225 drivers/memstick/core/ms_block.c memstick_set_drvdata(card, NULL); card 2230 drivers/memstick/core/ms_block.c static int msb_suspend(struct memstick_dev *card, pm_message_t state) card 2232 drivers/memstick/core/ms_block.c msb_stop(card); card 2236 drivers/memstick/core/ms_block.c static int msb_resume(struct memstick_dev *card) card 2238 drivers/memstick/core/ms_block.c struct msb_data *msb = memstick_get_drvdata(card); card 2246 drivers/memstick/core/ms_block.c mutex_lock(&card->host->lock); card 2252 drivers/memstick/core/ms_block.c new_msb->card = card; card 2253 drivers/memstick/core/ms_block.c memstick_set_drvdata(card, new_msb); card 2257 drivers/memstick/core/ms_block.c if (msb_init_card(card)) card 2283 drivers/memstick/core/ms_block.c memstick_set_drvdata(card, msb); card 2290 drivers/memstick/core/ms_block.c msb_start(card); card 2291 drivers/memstick/core/ms_block.c mutex_unlock(&card->host->lock); card 147 drivers/memstick/core/ms_block.h struct memstick_dev *card; card 274 drivers/memstick/core/ms_block.h static int h_msb_default_bad(struct memstick_dev *card, card 135 drivers/memstick/core/mspro_block.c struct memstick_dev *card; card 156 drivers/memstick/core/mspro_block.c int (*mrq_handler)(struct memstick_dev *card, card 163 drivers/memstick/core/mspro_block.c void (*setup_transfer)(struct memstick_dev *card, card 177 drivers/memstick/core/mspro_block.c static int mspro_block_complete_req(struct memstick_dev *card, int error); card 189 drivers/memstick/core/mspro_block.c if (msb && msb->card) { card 521 drivers/memstick/core/mspro_block.c static int h_mspro_block_req_init(struct memstick_dev *card, card 524 drivers/memstick/core/mspro_block.c struct mspro_block_data *msb = memstick_get_drvdata(card); card 526 drivers/memstick/core/mspro_block.c *mrq = &card->current_mrq; card 527 drivers/memstick/core/mspro_block.c card->next_request = msb->mrq_handler; card 531 drivers/memstick/core/mspro_block.c static int h_mspro_block_default(struct memstick_dev *card, card 534 drivers/memstick/core/mspro_block.c return mspro_block_complete_req(card, (*mrq)->error); card 537 drivers/memstick/core/mspro_block.c static int h_mspro_block_default_bad(struct memstick_dev *card, card 543 drivers/memstick/core/mspro_block.c static int h_mspro_block_get_ro(struct memstick_dev *card, card 546 drivers/memstick/core/mspro_block.c struct mspro_block_data *msb = memstick_get_drvdata(card); card 556 drivers/memstick/core/mspro_block.c return mspro_block_complete_req(card, (*mrq)->error); card 559 drivers/memstick/core/mspro_block.c static int h_mspro_block_wait_for_ced(struct memstick_dev *card, card 562 drivers/memstick/core/mspro_block.c dev_dbg(&card->dev, "wait for ced: value %x\n", (*mrq)->data[0]); card 571 drivers/memstick/core/mspro_block.c return mspro_block_complete_req(card, (*mrq)->error); card 574 drivers/memstick/core/mspro_block.c static int h_mspro_block_transfer_data(struct memstick_dev *card, card 577 drivers/memstick/core/mspro_block.c struct mspro_block_data *msb = memstick_get_drvdata(card); card 583 drivers/memstick/core/mspro_block.c return mspro_block_complete_req(card, (*mrq)->error); card 602 drivers/memstick/core/mspro_block.c card->next_request = h_mspro_block_default; card 614 drivers/memstick/core/mspro_block.c return mspro_block_complete_req(card, card 617 drivers/memstick/core/mspro_block.c card->next_request card 670 drivers/memstick/core/mspro_block.c static void h_mspro_block_setup_cmd(struct memstick_dev *card, u64 offset, card 673 drivers/memstick/core/mspro_block.c struct mspro_block_data *msb = memstick_get_drvdata(card); card 685 drivers/memstick/core/mspro_block.c card->next_request = h_mspro_block_req_init; card 687 drivers/memstick/core/mspro_block.c memstick_init_req(&card->current_mrq, MS_TPC_WRITE_REG, card 693 drivers/memstick/core/mspro_block.c static int mspro_block_issue_req(struct memstick_dev *card) card 695 drivers/memstick/core/mspro_block.c struct mspro_block_data *msb = memstick_get_drvdata(card); card 725 drivers/memstick/core/mspro_block.c msb->setup_transfer(card, t_off, count); card 732 drivers/memstick/core/mspro_block.c memstick_new_req(card->host); card 737 drivers/memstick/core/mspro_block.c static int mspro_block_complete_req(struct memstick_dev *card, int error) card 739 drivers/memstick/core/mspro_block.c struct mspro_block_data *msb = memstick_get_drvdata(card); card 746 drivers/memstick/core/mspro_block.c dev_dbg(&card->dev, "complete %d, %d\n", msb->block_req ? 1 : 0, card 754 drivers/memstick/core/mspro_block.c if (error || (card->current_mrq.tpc == MSPRO_CMD_STOP)) { card 769 drivers/memstick/core/mspro_block.c dev_dbg(&card->dev, "transferred %x (%d)\n", t_len, error); card 777 drivers/memstick/core/mspro_block.c error = mspro_block_issue_req(card); card 790 drivers/memstick/core/mspro_block.c card->next_request = h_mspro_block_default_bad; card 791 drivers/memstick/core/mspro_block.c complete_all(&card->mrq_complete); card 797 drivers/memstick/core/mspro_block.c static void mspro_block_stop(struct memstick_dev *card) card 799 drivers/memstick/core/mspro_block.c struct mspro_block_data *msb = memstick_get_drvdata(card); card 814 drivers/memstick/core/mspro_block.c wait_for_completion(&card->mrq_complete); card 818 drivers/memstick/core/mspro_block.c static void mspro_block_start(struct memstick_dev *card) card 820 drivers/memstick/core/mspro_block.c struct mspro_block_data *msb = memstick_get_drvdata(card); card 828 drivers/memstick/core/mspro_block.c struct memstick_dev *card = hctx->queue->queuedata; card 829 drivers/memstick/core/mspro_block.c struct mspro_block_data *msb = memstick_get_drvdata(card); card 847 drivers/memstick/core/mspro_block.c if (mspro_block_issue_req(card)) card 856 drivers/memstick/core/mspro_block.c static int mspro_block_wait_for_ced(struct memstick_dev *card) card 858 drivers/memstick/core/mspro_block.c struct mspro_block_data *msb = memstick_get_drvdata(card); card 860 drivers/memstick/core/mspro_block.c card->next_request = h_mspro_block_req_init; card 862 drivers/memstick/core/mspro_block.c memstick_init_req(&card->current_mrq, MS_TPC_GET_INT, NULL, 1); card 863 drivers/memstick/core/mspro_block.c memstick_new_req(card->host); card 864 drivers/memstick/core/mspro_block.c wait_for_completion(&card->mrq_complete); card 865 drivers/memstick/core/mspro_block.c return card->current_mrq.error; card 868 drivers/memstick/core/mspro_block.c static int mspro_block_set_interface(struct memstick_dev *card, card 871 drivers/memstick/core/mspro_block.c struct memstick_host *host = card->host; card 872 drivers/memstick/core/mspro_block.c struct mspro_block_data *msb = memstick_get_drvdata(card); card 880 drivers/memstick/core/mspro_block.c card->next_request = h_mspro_block_req_init; card 882 drivers/memstick/core/mspro_block.c memstick_init_req(&card->current_mrq, MS_TPC_WRITE_REG, ¶m, card 885 drivers/memstick/core/mspro_block.c wait_for_completion(&card->mrq_complete); card 886 drivers/memstick/core/mspro_block.c return card->current_mrq.error; card 889 drivers/memstick/core/mspro_block.c static int mspro_block_switch_interface(struct memstick_dev *card) card 891 drivers/memstick/core/mspro_block.c struct memstick_host *host = card->host; card 892 drivers/memstick/core/mspro_block.c struct mspro_block_data *msb = memstick_get_drvdata(card); card 897 drivers/memstick/core/mspro_block.c rc = mspro_block_set_interface(card, MEMSTICK_SYS_PAR4); card 904 drivers/memstick/core/mspro_block.c dev_name(&card->dev), rc); card 911 drivers/memstick/core/mspro_block.c dev_name(&card->dev)); card 914 drivers/memstick/core/mspro_block.c rc = mspro_block_set_interface(card, MEMSTICK_SYS_PAR8); card 922 drivers/memstick/core/mspro_block.c dev_name(&card->dev)); card 926 drivers/memstick/core/mspro_block.c dev_name(&card->dev), rc); card 929 drivers/memstick/core/mspro_block.c card->next_request = h_mspro_block_req_init; card 931 drivers/memstick/core/mspro_block.c memstick_init_req(&card->current_mrq, MS_TPC_GET_INT, NULL, 1); card 932 drivers/memstick/core/mspro_block.c memstick_new_req(card->host); card 933 drivers/memstick/core/mspro_block.c wait_for_completion(&card->mrq_complete); card 934 drivers/memstick/core/mspro_block.c rc = card->current_mrq.error; card 939 drivers/memstick/core/mspro_block.c dev_name(&card->dev)); card 946 drivers/memstick/core/mspro_block.c rc = memstick_set_rw_addr(card); card 948 drivers/memstick/core/mspro_block.c rc = mspro_block_set_interface(card, msb->system); card 952 drivers/memstick/core/mspro_block.c rc = mspro_block_wait_for_ced(card); card 969 drivers/memstick/core/mspro_block.c static int mspro_block_read_attributes(struct memstick_dev *card) card 971 drivers/memstick/core/mspro_block.c struct mspro_block_data *msb = memstick_get_drvdata(card); card 994 drivers/memstick/core/mspro_block.c msb->setup_transfer(card, attr_offset, attr_len); card 996 drivers/memstick/core/mspro_block.c memstick_new_req(card->host); card 997 drivers/memstick/core/mspro_block.c wait_for_completion(&card->mrq_complete); card 998 drivers/memstick/core/mspro_block.c if (card->current_mrq.error) { card 999 drivers/memstick/core/mspro_block.c rc = card->current_mrq.error; card 1005 drivers/memstick/core/mspro_block.c dev_name(&card->dev), be16_to_cpu(attr->signature)); card 1012 drivers/memstick/core/mspro_block.c dev_name(&card->dev)); card 1042 drivers/memstick/core/mspro_block.c dev_dbg(&card->dev, "adding attribute %d: id %x, address %x, " card 1095 drivers/memstick/core/mspro_block.c dev_dbg(&card->dev, "reading attribute range %x, %x\n", card 1098 drivers/memstick/core/mspro_block.c msb->setup_transfer(card, attr_offset, attr_len); card 1099 drivers/memstick/core/mspro_block.c memstick_new_req(card->host); card 1100 drivers/memstick/core/mspro_block.c wait_for_completion(&card->mrq_complete); card 1101 drivers/memstick/core/mspro_block.c if (card->current_mrq.error) { card 1102 drivers/memstick/core/mspro_block.c rc = card->current_mrq.error; card 1118 drivers/memstick/core/mspro_block.c static int mspro_block_init_card(struct memstick_dev *card) card 1120 drivers/memstick/core/mspro_block.c struct mspro_block_data *msb = memstick_get_drvdata(card); card 1121 drivers/memstick/core/mspro_block.c struct memstick_host *host = card->host; card 1127 drivers/memstick/core/mspro_block.c card->reg_addr.r_offset = offsetof(struct mspro_register, status); card 1128 drivers/memstick/core/mspro_block.c card->reg_addr.r_length = sizeof(struct ms_status_register); card 1129 drivers/memstick/core/mspro_block.c card->reg_addr.w_offset = offsetof(struct mspro_register, param); card 1130 drivers/memstick/core/mspro_block.c card->reg_addr.w_length = sizeof(struct mspro_param_register); card 1132 drivers/memstick/core/mspro_block.c if (memstick_set_rw_addr(card)) card 1138 drivers/memstick/core/mspro_block.c rc = mspro_block_wait_for_ced(card); card 1142 drivers/memstick/core/mspro_block.c rc = mspro_block_switch_interface(card); card 1146 drivers/memstick/core/mspro_block.c dev_dbg(&card->dev, "card activated\n"); card 1150 drivers/memstick/core/mspro_block.c card->next_request = h_mspro_block_req_init; card 1152 drivers/memstick/core/mspro_block.c memstick_init_req(&card->current_mrq, MS_TPC_READ_REG, NULL, card 1154 drivers/memstick/core/mspro_block.c memstick_new_req(card->host); card 1155 drivers/memstick/core/mspro_block.c wait_for_completion(&card->mrq_complete); card 1156 drivers/memstick/core/mspro_block.c if (card->current_mrq.error) card 1157 drivers/memstick/core/mspro_block.c return card->current_mrq.error; card 1159 drivers/memstick/core/mspro_block.c dev_dbg(&card->dev, "card r/w status %d\n", msb->read_only ? 0 : 1); card 1162 drivers/memstick/core/mspro_block.c rc = mspro_block_read_attributes(card); card 1166 drivers/memstick/core/mspro_block.c dev_dbg(&card->dev, "attributes loaded\n"); card 1175 drivers/memstick/core/mspro_block.c static int mspro_block_init_disk(struct memstick_dev *card) card 1177 drivers/memstick/core/mspro_block.c struct mspro_block_data *msb = memstick_get_drvdata(card); card 1203 drivers/memstick/core/mspro_block.c disk_id = idr_alloc(&mspro_block_disk_idr, card, 0, 256, GFP_KERNEL); card 1222 drivers/memstick/core/mspro_block.c msb->queue->queuedata = card; card 1244 drivers/memstick/core/mspro_block.c dev_dbg(&card->dev, "capacity set %ld\n", capacity); card 1246 drivers/memstick/core/mspro_block.c device_add_disk(&card->dev, msb->disk, NULL); card 1274 drivers/memstick/core/mspro_block.c msb->card = NULL; card 1277 drivers/memstick/core/mspro_block.c static int mspro_block_check_card(struct memstick_dev *card) card 1279 drivers/memstick/core/mspro_block.c struct mspro_block_data *msb = memstick_get_drvdata(card); card 1284 drivers/memstick/core/mspro_block.c static int mspro_block_probe(struct memstick_dev *card) card 1292 drivers/memstick/core/mspro_block.c memstick_set_drvdata(card, msb); card 1293 drivers/memstick/core/mspro_block.c msb->card = card; card 1296 drivers/memstick/core/mspro_block.c rc = mspro_block_init_card(card); card 1301 drivers/memstick/core/mspro_block.c rc = sysfs_create_group(&card->dev.kobj, &msb->attr_group); card 1305 drivers/memstick/core/mspro_block.c rc = mspro_block_init_disk(card); card 1307 drivers/memstick/core/mspro_block.c card->check = mspro_block_check_card; card 1308 drivers/memstick/core/mspro_block.c card->stop = mspro_block_stop; card 1309 drivers/memstick/core/mspro_block.c card->start = mspro_block_start; card 1313 drivers/memstick/core/mspro_block.c sysfs_remove_group(&card->dev.kobj, &msb->attr_group); card 1315 drivers/memstick/core/mspro_block.c memstick_set_drvdata(card, NULL); card 1321 drivers/memstick/core/mspro_block.c static void mspro_block_remove(struct memstick_dev *card) card 1323 drivers/memstick/core/mspro_block.c struct mspro_block_data *msb = memstick_get_drvdata(card); card 1332 drivers/memstick/core/mspro_block.c dev_dbg(&card->dev, "mspro block remove\n"); card 1338 drivers/memstick/core/mspro_block.c sysfs_remove_group(&card->dev.kobj, &msb->attr_group); card 1345 drivers/memstick/core/mspro_block.c memstick_set_drvdata(card, NULL); card 1350 drivers/memstick/core/mspro_block.c static int mspro_block_suspend(struct memstick_dev *card, pm_message_t state) card 1352 drivers/memstick/core/mspro_block.c struct mspro_block_data *msb = memstick_get_drvdata(card); card 1364 drivers/memstick/core/mspro_block.c static int mspro_block_resume(struct memstick_dev *card) card 1366 drivers/memstick/core/mspro_block.c struct mspro_block_data *msb = memstick_get_drvdata(card); card 1372 drivers/memstick/core/mspro_block.c struct memstick_host *host = card->host; card 1383 drivers/memstick/core/mspro_block.c new_msb->card = card; card 1384 drivers/memstick/core/mspro_block.c memstick_set_drvdata(card, new_msb); card 1385 drivers/memstick/core/mspro_block.c if (mspro_block_init_card(card)) card 1404 drivers/memstick/core/mspro_block.c memstick_set_drvdata(card, msb); card 136 drivers/memstick/host/rtsx_pci_ms.c struct memstick_dev *card = host->msh->card; card 137 drivers/memstick/host/rtsx_pci_ms.c bool pro_card = card->id.type == MEMSTICK_TYPE_PRO; card 239 drivers/memstick/host/rtsx_usb_ms.c struct memstick_dev *card = host->msh->card; card 248 drivers/memstick/host/rtsx_usb_ms.c if (card->id.type != MEMSTICK_TYPE_PRO) card 256 drivers/memstick/host/rtsx_usb_ms.c if (card->id.type != MEMSTICK_TYPE_PRO) card 266 drivers/memstick/host/rtsx_usb_ms.c if (card->id.type == MEMSTICK_TYPE_PRO) { card 690 drivers/memstick/host/rtsx_usb_ms.c if (host->msh->card || host->power_mode != MEMSTICK_POWER_OFF) card 131 drivers/misc/cardreader/rtl8411.c static int rtl8411_card_power_on(struct rtsx_pcr *pcr, int card) card 169 drivers/misc/cardreader/rtl8411.c static int rtl8411_card_power_off(struct rtsx_pcr *pcr, int card) card 98 drivers/misc/cardreader/rts5209.c static int rts5209_card_power_on(struct rtsx_pcr *pcr, int card) card 107 drivers/misc/cardreader/rts5209.c if ((pcr->flags & PCR_MS_PMOS) && (card == RTSX_MS_CARD)) { card 132 drivers/misc/cardreader/rts5209.c static int rts5209_card_power_off(struct rtsx_pcr *pcr, int card) card 139 drivers/misc/cardreader/rts5209.c if ((pcr->flags & PCR_MS_PMOS) && (card == RTSX_MS_CARD)) { card 157 drivers/misc/cardreader/rts5227.c static int rts5227_card_power_on(struct rtsx_pcr *pcr, int card) card 191 drivers/misc/cardreader/rts5227.c static int rts5227_card_power_off(struct rtsx_pcr *pcr, int card) card 99 drivers/misc/cardreader/rts5229.c static int rts5229_card_power_on(struct rtsx_pcr *pcr, int card) card 123 drivers/misc/cardreader/rts5229.c static int rts5229_card_power_off(struct rtsx_pcr *pcr, int card) card 272 drivers/misc/cardreader/rts5249.c static int rtsx_base_card_power_on(struct rtsx_pcr *pcr, int card) card 299 drivers/misc/cardreader/rts5249.c static int rtsx_base_card_power_off(struct rtsx_pcr *pcr, int card) card 637 drivers/misc/cardreader/rts5249.c static int rts525a_card_power_on(struct rtsx_pcr *pcr, int card) card 641 drivers/misc/cardreader/rts5249.c return rtsx_base_card_power_on(pcr, card); card 192 drivers/misc/cardreader/rts5260.c static int rts5260_card_power_on(struct rtsx_pcr *pcr, int card) card 282 drivers/misc/cardreader/rts5260.c static int rts5260_card_power_off(struct rtsx_pcr *pcr, int card) card 664 drivers/misc/cardreader/rtsx_pcr.c int rtsx_pci_card_pull_ctl_enable(struct rtsx_pcr *pcr, int card) card 668 drivers/misc/cardreader/rtsx_pcr.c if (card == RTSX_SD_CARD) card 670 drivers/misc/cardreader/rtsx_pcr.c else if (card == RTSX_MS_CARD) card 679 drivers/misc/cardreader/rtsx_pcr.c int rtsx_pci_card_pull_ctl_disable(struct rtsx_pcr *pcr, int card) card 683 drivers/misc/cardreader/rtsx_pcr.c if (card == RTSX_SD_CARD) card 685 drivers/misc/cardreader/rtsx_pcr.c else if (card == RTSX_MS_CARD) card 837 drivers/misc/cardreader/rtsx_pcr.c int rtsx_pci_card_power_on(struct rtsx_pcr *pcr, int card) card 840 drivers/misc/cardreader/rtsx_pcr.c return pcr->ops->card_power_on(pcr, card); card 846 drivers/misc/cardreader/rtsx_pcr.c int rtsx_pci_card_power_off(struct rtsx_pcr *pcr, int card) card 849 drivers/misc/cardreader/rtsx_pcr.c return pcr->ops->card_power_off(pcr, card); card 855 drivers/misc/cardreader/rtsx_pcr.c int rtsx_pci_card_exclusive_check(struct rtsx_pcr *pcr, int card) card 866 drivers/misc/cardreader/rtsx_pcr.c if (pcr->card_exist & (~cd_mask[card])) card 488 drivers/misc/cardreader/rtsx_usb.c int rtsx_usb_card_exclusive_check(struct rtsx_ucr *ucr, int card) card 505 drivers/misc/cardreader/rtsx_usb.c if (val & cd_mask[card]) card 80 drivers/misc/cxl/main.c int card, slice, id; card 85 drivers/misc/cxl/main.c idr_for_each_entry(&cxl_adapter_idr, adapter, card) { card 69 drivers/misc/cxl/trace.h __field(u8, card) card 75 drivers/misc/cxl/trace.h __entry->card = ctx->afu->adapter->adapter_num; card 81 drivers/misc/cxl/trace.h __entry->card, card 94 drivers/misc/cxl/trace.h __field(u8, card) card 104 drivers/misc/cxl/trace.h __entry->card = ctx->afu->adapter->adapter_num; card 114 drivers/misc/cxl/trace.h __entry->card, card 135 drivers/misc/cxl/trace.h __field(u8, card) card 144 drivers/misc/cxl/trace.h __entry->card = ctx->afu->adapter->adapter_num; card 153 drivers/misc/cxl/trace.h __entry->card, card 168 drivers/misc/cxl/trace.h __field(u8, card) card 177 drivers/misc/cxl/trace.h __entry->card = ctx->afu->adapter->adapter_num; card 186 drivers/misc/cxl/trace.h __entry->card, card 202 drivers/misc/cxl/trace.h __field(u8, card) card 211 drivers/misc/cxl/trace.h __entry->card = ctx->afu->adapter->adapter_num; card 220 drivers/misc/cxl/trace.h __entry->card, card 235 drivers/misc/cxl/trace.h __field(u8, card) card 242 drivers/misc/cxl/trace.h __entry->card = ctx->afu->adapter->adapter_num; card 249 drivers/misc/cxl/trace.h __entry->card, card 262 drivers/misc/cxl/trace.h __field(u8, card) card 269 drivers/misc/cxl/trace.h __entry->card = ctx->afu->adapter->adapter_num; card 276 drivers/misc/cxl/trace.h __entry->card, card 289 drivers/misc/cxl/trace.h __field(u8, card) card 298 drivers/misc/cxl/trace.h __entry->card = ctx->afu->adapter->adapter_num; card 307 drivers/misc/cxl/trace.h __entry->card, card 322 drivers/misc/cxl/trace.h __field(u8, card) card 330 drivers/misc/cxl/trace.h __entry->card = ctx->afu->adapter->adapter_num; card 338 drivers/misc/cxl/trace.h __entry->card, card 352 drivers/misc/cxl/trace.h __field(u8, card) card 359 drivers/misc/cxl/trace.h __entry->card = ctx->afu->adapter->adapter_num; card 366 drivers/misc/cxl/trace.h __entry->card, card 379 drivers/misc/cxl/trace.h __field(u8, card) card 387 drivers/misc/cxl/trace.h __entry->card = ctx->afu->adapter->adapter_num; card 395 drivers/misc/cxl/trace.h __entry->card, card 409 drivers/misc/cxl/trace.h __field(u8, card) card 415 drivers/misc/cxl/trace.h __entry->card = afu->adapter->adapter_num; card 421 drivers/misc/cxl/trace.h __entry->card, card 433 drivers/misc/cxl/trace.h __field(u8, card) card 440 drivers/misc/cxl/trace.h __entry->card = afu->adapter->adapter_num; card 447 drivers/misc/cxl/trace.h __entry->card, card 469 drivers/misc/cxl/trace.h __entry->card, card 480 drivers/misc/cxl/trace.h __entry->card, card 169 drivers/mmc/core/block.c static inline int mmc_blk_part_switch(struct mmc_card *card, card 212 drivers/mmc/core/block.c struct mmc_card *card = md->queue.card; card 215 drivers/mmc/core/block.c if (card->ext_csd.boot_ro_lock & EXT_CSD_BOOT_WP_B_PERM_WP_EN) card 217 drivers/mmc/core/block.c else if (card->ext_csd.boot_ro_lock & EXT_CSD_BOOT_WP_B_PWR_WP_EN) card 411 drivers/mmc/core/block.c static int ioctl_do_sanitize(struct mmc_card *card) card 415 drivers/mmc/core/block.c if (!mmc_can_sanitize(card)) { card 417 drivers/mmc/core/block.c mmc_hostname(card->host), __func__); card 423 drivers/mmc/core/block.c mmc_hostname(card->host), __func__); card 425 drivers/mmc/core/block.c err = mmc_switch(card, EXT_CSD_CMD_SET_NORMAL, card 431 drivers/mmc/core/block.c mmc_hostname(card->host), __func__, err); card 433 drivers/mmc/core/block.c pr_debug("%s: %s - SANITIZE COMPLETED\n", mmc_hostname(card->host), card 449 drivers/mmc/core/block.c static int card_busy_detect(struct mmc_card *card, unsigned int timeout_ms, card 459 drivers/mmc/core/block.c err = __mmc_send_status(card, &status, 5); card 461 drivers/mmc/core/block.c dev_err(mmc_dev(card->host), card 475 drivers/mmc/core/block.c dev_err(mmc_dev(card->host), card 491 drivers/mmc/core/block.c static int __mmc_blk_ioctl_cmd(struct mmc_card *card, struct mmc_blk_data *md, card 501 drivers/mmc/core/block.c if (!card || !md || !idata) card 536 drivers/mmc/core/block.c mmc_set_data_timeout(&data, card); card 560 drivers/mmc/core/block.c err = mmc_blk_part_switch(card, target_part); card 565 drivers/mmc/core/block.c err = mmc_app_cmd(card->host, card); card 584 drivers/mmc/core/block.c err = ioctl_do_sanitize(card); card 593 drivers/mmc/core/block.c mmc_wait_for_req(card->host, &mrq); card 596 drivers/mmc/core/block.c dev_err(mmc_dev(card->host), "%s: cmd error %d\n", card 601 drivers/mmc/core/block.c dev_err(mmc_dev(card->host), "%s: data error %d\n", card 613 drivers/mmc/core/block.c struct mmc_blk_data *main_md = dev_get_drvdata(&card->dev); card 620 drivers/mmc/core/block.c card->ext_csd.part_config = value; card 638 drivers/mmc/core/block.c err = card_busy_detect(card, MMC_BLK_TIMEOUT_MS, NULL); card 651 drivers/mmc/core/block.c struct mmc_card *card; card 661 drivers/mmc/core/block.c card = md->queue.card; card 662 drivers/mmc/core/block.c if (IS_ERR(card)) { card 663 drivers/mmc/core/block.c err = PTR_ERR(card); card 699 drivers/mmc/core/block.c struct mmc_card *card; card 730 drivers/mmc/core/block.c card = md->queue.card; card 731 drivers/mmc/core/block.c if (IS_ERR(card)) { card 732 drivers/mmc/core/block.c err = PTR_ERR(card); card 836 drivers/mmc/core/block.c static int mmc_blk_part_switch_pre(struct mmc_card *card, card 842 drivers/mmc/core/block.c if (card->ext_csd.cmdq_en) { card 843 drivers/mmc/core/block.c ret = mmc_cmdq_disable(card); card 847 drivers/mmc/core/block.c mmc_retune_pause(card->host); card 853 drivers/mmc/core/block.c static int mmc_blk_part_switch_post(struct mmc_card *card, card 859 drivers/mmc/core/block.c mmc_retune_unpause(card->host); card 860 drivers/mmc/core/block.c if (card->reenable_cmdq && !card->ext_csd.cmdq_en) card 861 drivers/mmc/core/block.c ret = mmc_cmdq_enable(card); card 867 drivers/mmc/core/block.c static inline int mmc_blk_part_switch(struct mmc_card *card, card 871 drivers/mmc/core/block.c struct mmc_blk_data *main_md = dev_get_drvdata(&card->dev); card 876 drivers/mmc/core/block.c if (mmc_card_mmc(card)) { card 877 drivers/mmc/core/block.c u8 part_config = card->ext_csd.part_config; card 879 drivers/mmc/core/block.c ret = mmc_blk_part_switch_pre(card, part_type); card 886 drivers/mmc/core/block.c ret = mmc_switch(card, EXT_CSD_CMD_SET_NORMAL, card 888 drivers/mmc/core/block.c card->ext_csd.part_time); card 890 drivers/mmc/core/block.c mmc_blk_part_switch_post(card, part_type); card 894 drivers/mmc/core/block.c card->ext_csd.part_config = part_config; card 896 drivers/mmc/core/block.c ret = mmc_blk_part_switch_post(card, main_md->part_curr); card 903 drivers/mmc/core/block.c static int mmc_sd_num_wr_blocks(struct mmc_card *card, u32 *written_blocks) card 916 drivers/mmc/core/block.c cmd.arg = card->rca << 16; card 919 drivers/mmc/core/block.c err = mmc_wait_for_cmd(card->host, &cmd, 0); card 922 drivers/mmc/core/block.c if (!mmc_host_is_spi(card->host) && !(cmd.resp[0] & R1_APP_CMD)) card 936 drivers/mmc/core/block.c mmc_set_data_timeout(&data, card); card 947 drivers/mmc/core/block.c mmc_wait_for_req(card->host, &mrq); card 1001 drivers/mmc/core/block.c dev_get_drvdata(&host->card->dev); card 1005 drivers/mmc/core/block.c part_err = mmc_blk_part_switch(host->card, md->part_type); card 1030 drivers/mmc/core/block.c struct mmc_card *card = mq->card; card 1047 drivers/mmc/core/block.c ret = __mmc_blk_ioctl_cmd(card, md, idata[i]); card 1053 drivers/mmc/core/block.c mmc_blk_part_switch(card, 0); card 1056 drivers/mmc/core/block.c ret = mmc_switch(card, EXT_CSD_CMD_SET_NORMAL, EXT_CSD_BOOT_WP, card 1057 drivers/mmc/core/block.c card->ext_csd.boot_ro_lock | card 1059 drivers/mmc/core/block.c card->ext_csd.part_time); card 1064 drivers/mmc/core/block.c card->ext_csd.boot_ro_lock |= card 1068 drivers/mmc/core/block.c ret = mmc_send_status(card, &status); card 1074 drivers/mmc/core/block.c ret = mmc_get_ext_csd(card, ext_csd); card 1089 drivers/mmc/core/block.c struct mmc_card *card = md->queue.card; card 1094 drivers/mmc/core/block.c if (!mmc_can_erase(card)) { card 1104 drivers/mmc/core/block.c if (card->quirks & MMC_QUIRK_INAND_CMD38) { card 1105 drivers/mmc/core/block.c err = mmc_switch(card, EXT_CSD_CMD_SET_NORMAL, card 1107 drivers/mmc/core/block.c card->erase_arg == MMC_TRIM_ARG ? card 1113 drivers/mmc/core/block.c err = mmc_erase(card, from, nr, card->erase_arg); card 1114 drivers/mmc/core/block.c } while (err == -EIO && !mmc_blk_reset(md, card->host, type)); card 1127 drivers/mmc/core/block.c struct mmc_card *card = md->queue.card; card 1132 drivers/mmc/core/block.c if (!(mmc_can_secure_erase_trim(card))) { card 1140 drivers/mmc/core/block.c if (mmc_can_trim(card) && !mmc_erase_group_aligned(card, from, nr)) card 1146 drivers/mmc/core/block.c if (card->quirks & MMC_QUIRK_INAND_CMD38) { card 1147 drivers/mmc/core/block.c err = mmc_switch(card, EXT_CSD_CMD_SET_NORMAL, card 1157 drivers/mmc/core/block.c err = mmc_erase(card, from, nr, arg); card 1166 drivers/mmc/core/block.c if (card->quirks & MMC_QUIRK_INAND_CMD38) { card 1167 drivers/mmc/core/block.c err = mmc_switch(card, EXT_CSD_CMD_SET_NORMAL, card 1175 drivers/mmc/core/block.c err = mmc_erase(card, from, nr, MMC_SECURE_TRIM2_ARG); card 1185 drivers/mmc/core/block.c if (err && !mmc_blk_reset(md, card->host, type)) card 1196 drivers/mmc/core/block.c struct mmc_card *card = md->queue.card; card 1199 drivers/mmc/core/block.c ret = mmc_flush_cache(card); card 1211 drivers/mmc/core/block.c struct mmc_card *card, card 1214 drivers/mmc/core/block.c if (!(card->ext_csd.rel_param & EXT_CSD_WR_REL_PARAM_EN)) { card 1216 drivers/mmc/core/block.c if (!IS_ALIGNED(blk_rq_pos(req), card->ext_csd.rel_sectors)) card 1219 drivers/mmc/core/block.c if (brq->data.blocks > card->ext_csd.rel_sectors) card 1220 drivers/mmc/core/block.c brq->data.blocks = card->ext_csd.rel_sectors; card 1221 drivers/mmc/core/block.c else if (brq->data.blocks < card->ext_csd.rel_sectors) card 1285 drivers/mmc/core/block.c struct mmc_card *card = md->queue.card; card 1330 drivers/mmc/core/block.c if (brq->data.blocks > card->host->max_blk_count) card 1331 drivers/mmc/core/block.c brq->data.blocks = card->host->max_blk_count; card 1339 drivers/mmc/core/block.c if (mmc_host_is_spi(card->host) && (rq_data_dir(req) == READ) && card 1356 drivers/mmc/core/block.c if (card->host->ops->multi_io_quirk) card 1357 drivers/mmc/core/block.c brq->data.blocks = card->host->ops->multi_io_quirk(card, card 1364 drivers/mmc/core/block.c mmc_apply_rel_rw(brq, card, req); card 1372 drivers/mmc/core/block.c do_data_tag = card->ext_csd.data_tag_unit_size && card 1376 drivers/mmc/core/block.c card->ext_csd.data_tag_unit_size); card 1381 drivers/mmc/core/block.c mmc_set_data_timeout(&brq->data, card); card 1419 drivers/mmc/core/block.c struct mmc_host *host = mq->card->host; card 1462 drivers/mmc/core/block.c mmc_put_card(mq->card, &mq->ctx); card 1467 drivers/mmc/core/block.c struct mmc_card *card = mq->card; card 1468 drivers/mmc/core/block.c struct mmc_host *host = card->host; card 1533 drivers/mmc/core/block.c return mmc_blk_cqe_start_req(mq->card->host, mrq); card 1542 drivers/mmc/core/block.c return mmc_blk_cqe_start_req(mq->card->host, &mqrq->brq.mrq); card 1546 drivers/mmc/core/block.c struct mmc_card *card, card 1561 drivers/mmc/core/block.c if (!mmc_card_blockaddr(card)) card 1569 drivers/mmc/core/block.c if (!mmc_host_is_spi(card->host) || card 1600 drivers/mmc/core/block.c (do_rel_wr || !(card->quirks & MMC_QUIRK_BLK_NO_CMD23) || card 1615 drivers/mmc/core/block.c static int mmc_blk_send_stop(struct mmc_card *card, unsigned int timeout) card 1624 drivers/mmc/core/block.c return mmc_wait_for_cmd(card->host, &cmd, 5); card 1627 drivers/mmc/core/block.c static int mmc_blk_fix_state(struct mmc_card *card, struct request *req) card 1631 drivers/mmc/core/block.c unsigned int timeout = mmc_blk_data_timeout_ms(card->host, &brq->data); card 1634 drivers/mmc/core/block.c mmc_retune_hold_now(card->host); card 1636 drivers/mmc/core/block.c mmc_blk_send_stop(card, timeout); card 1638 drivers/mmc/core/block.c err = card_busy_detect(card, timeout, NULL); card 1640 drivers/mmc/core/block.c mmc_retune_release(card->host); card 1652 drivers/mmc/core/block.c struct mmc_card *card = mq->card; card 1653 drivers/mmc/core/block.c struct mmc_host *host = card->host; card 1661 drivers/mmc/core/block.c mmc_blk_rw_rq_prep(mqrq, card, 1, mq); card 1665 drivers/mmc/core/block.c err = mmc_send_status(card, &status); card 1671 drivers/mmc/core/block.c err = mmc_blk_fix_state(card, req); card 1722 drivers/mmc/core/block.c if (mmc_host_is_spi(mq->card->host)) card 1761 drivers/mmc/core/block.c struct mmc_card *card = mq->card; card 1770 drivers/mmc/core/block.c err = __mmc_send_status(card, &status, 0); card 1774 drivers/mmc/core/block.c mmc_retune_release(card->host); card 1781 drivers/mmc/core/block.c err = __mmc_send_status(card, &status, 0); card 1787 drivers/mmc/core/block.c if (err && mmc_detect_card_removed(card->host)) card 1791 drivers/mmc/core/block.c if (!mmc_host_is_spi(mq->card->host) && card 1793 drivers/mmc/core/block.c err = mmc_blk_fix_state(mq->card, req); card 1799 drivers/mmc/core/block.c if (!err && mmc_blk_cmd_started(brq) && mmc_card_sd(card) && card 1801 drivers/mmc/core/block.c if (mmc_sd_num_wr_blocks(card, &blocks)) card 1808 drivers/mmc/core/block.c if (!mmc_host_is_spi(mq->card->host) && card 1809 drivers/mmc/core/block.c err && mmc_blk_reset(md, card->host, type)) { card 1824 drivers/mmc/core/block.c mmc_blk_reset(md, card->host, type); card 1837 drivers/mmc/core/block.c if (!mmc_large_sector(card) && rq_data_dir(req) == READ && card 1853 drivers/mmc/core/block.c static int mmc_blk_card_busy(struct mmc_card *card, struct request *req) card 1859 drivers/mmc/core/block.c if (mmc_host_is_spi(card->host) || rq_data_dir(req) == READ) card 1862 drivers/mmc/core/block.c err = card_busy_detect(card, MMC_BLK_TIMEOUT_MS, &status); card 1874 drivers/mmc/core/block.c if (mmc_card_mmc(card) && status & R1_EXCEPTION_EVENT) card 1903 drivers/mmc/core/block.c if (mmc_card_removed(mq->card)) card 1912 drivers/mmc/core/block.c return mmc_card_mmc(mq->card) && !mmc_host_is_spi(mq->card->host) && card 1921 drivers/mmc/core/block.c mmc_run_bkops(mq->card); card 1938 drivers/mmc/core/block.c struct mmc_host *host = mq->card->host; card 1941 drivers/mmc/core/block.c mmc_blk_card_busy(mq->card, req)) { card 1965 drivers/mmc/core/block.c mmc_put_card(mq->card, &mq->ctx); card 1972 drivers/mmc/core/block.c struct mmc_host *host = mq->card->host; card 1991 drivers/mmc/core/block.c struct mmc_host *host = mq->card->host; card 2010 drivers/mmc/core/block.c if (mmc_host_done_complete(mq->card->host)) card 2046 drivers/mmc/core/block.c struct mmc_host *host = mq->card->host; card 2073 drivers/mmc/core/block.c queue_work(mq->card->complete_wq, &mq->complete_work); card 2136 drivers/mmc/core/block.c struct mmc_host *host = mq->card->host; card 2140 drivers/mmc/core/block.c mmc_blk_rw_rq_prep(mqrq, mq->card, 0, mq); card 2182 drivers/mmc/core/block.c struct mmc_card *card = md->queue.card; card 2183 drivers/mmc/core/block.c struct mmc_host *host = card->host; card 2186 drivers/mmc/core/block.c ret = mmc_blk_part_switch(card, md->part_type); card 2240 drivers/mmc/core/block.c static inline int mmc_blk_readonly(struct mmc_card *card) card 2242 drivers/mmc/core/block.c return mmc_card_readonly(card) || card 2243 drivers/mmc/core/block.c !(card->csd.cmdclass & CCC_BLOCK_WRITE); card 2246 drivers/mmc/core/block.c static struct mmc_blk_data *mmc_blk_alloc_req(struct mmc_card *card, card 2266 drivers/mmc/core/block.c dev_err(mmc_dev(card->host), card 2284 drivers/mmc/core/block.c md->read_only = mmc_blk_readonly(card); card 2296 drivers/mmc/core/block.c ret = mmc_init_queue(&md->queue, card); card 2339 drivers/mmc/core/block.c "mmcblk%u%s", card->host->index, subname ? subname : ""); card 2343 drivers/mmc/core/block.c if (mmc_host_cmd23(card->host)) { card 2344 drivers/mmc/core/block.c if ((mmc_card_mmc(card) && card 2345 drivers/mmc/core/block.c card->csd.mmca_vsn >= CSD_SPEC_VER_3) || card 2346 drivers/mmc/core/block.c (mmc_card_sd(card) && card 2347 drivers/mmc/core/block.c card->scr.cmds & SD_SCR_CMD23_SUPPORT)) card 2351 drivers/mmc/core/block.c if (mmc_card_mmc(card) && card 2353 drivers/mmc/core/block.c ((card->ext_csd.rel_param & EXT_CSD_WR_REL_PARAM_EN) || card 2354 drivers/mmc/core/block.c card->ext_csd.rel_sectors)) { card 2370 drivers/mmc/core/block.c static struct mmc_blk_data *mmc_blk_alloc(struct mmc_card *card) card 2374 drivers/mmc/core/block.c if (!mmc_card_sd(card) && mmc_card_blockaddr(card)) { card 2379 drivers/mmc/core/block.c size = card->ext_csd.sectors; card 2385 drivers/mmc/core/block.c size = (typeof(sector_t))card->csd.capacity card 2386 drivers/mmc/core/block.c << (card->csd.read_blkbits - 9); card 2389 drivers/mmc/core/block.c return mmc_blk_alloc_req(card, &card->dev, size, false, NULL, card 2393 drivers/mmc/core/block.c static int mmc_blk_alloc_part(struct mmc_card *card, card 2404 drivers/mmc/core/block.c part_md = mmc_blk_alloc_req(card, disk_to_dev(md->disk), size, default_ro, card 2414 drivers/mmc/core/block.c part_md->disk->disk_name, mmc_card_id(card), card 2415 drivers/mmc/core/block.c mmc_card_name(card), part_md->part_type, cap_str); card 2503 drivers/mmc/core/block.c static int mmc_blk_alloc_rpmb_part(struct mmc_card *card, card 2526 drivers/mmc/core/block.c "mmcblk%u%s", card->host->index, subname ? subname : ""); card 2533 drivers/mmc/core/block.c rpmb->dev.parent = &card->dev; card 2553 drivers/mmc/core/block.c rpmb_name, mmc_card_id(card), card 2554 drivers/mmc/core/block.c mmc_card_name(card), EXT_CSD_PART_CONFIG_ACC_RPMB, cap_str, card 2577 drivers/mmc/core/block.c static int mmc_blk_alloc_parts(struct mmc_card *card, struct mmc_blk_data *md) card 2581 drivers/mmc/core/block.c if (!mmc_card_mmc(card)) card 2584 drivers/mmc/core/block.c for (idx = 0; idx < card->nr_parts; idx++) { card 2585 drivers/mmc/core/block.c if (card->part[idx].area_type & MMC_BLK_DATA_AREA_RPMB) { card 2592 drivers/mmc/core/block.c ret = mmc_blk_alloc_rpmb_part(card, md, card 2593 drivers/mmc/core/block.c card->part[idx].part_cfg, card 2594 drivers/mmc/core/block.c card->part[idx].size >> 9, card 2595 drivers/mmc/core/block.c card->part[idx].name); card 2598 drivers/mmc/core/block.c } else if (card->part[idx].size) { card 2599 drivers/mmc/core/block.c ret = mmc_blk_alloc_part(card, md, card 2600 drivers/mmc/core/block.c card->part[idx].part_cfg, card 2601 drivers/mmc/core/block.c card->part[idx].size >> 9, card 2602 drivers/mmc/core/block.c card->part[idx].force_ro, card 2603 drivers/mmc/core/block.c card->part[idx].name, card 2604 drivers/mmc/core/block.c card->part[idx].area_type); card 2615 drivers/mmc/core/block.c struct mmc_card *card; card 2623 drivers/mmc/core/block.c card = md->queue.card; card 2627 drivers/mmc/core/block.c card->ext_csd.boot_ro_lockable) card 2638 drivers/mmc/core/block.c static void mmc_blk_remove_parts(struct mmc_card *card, card 2662 drivers/mmc/core/block.c struct mmc_card *card = md->queue.card; card 2675 drivers/mmc/core/block.c card->ext_csd.boot_ro_lockable) { card 2678 drivers/mmc/core/block.c if (card->ext_csd.boot_ro_lock & EXT_CSD_BOOT_WP_B_PWR_WP_DIS) card 2708 drivers/mmc/core/block.c struct mmc_card *card = data; card 2709 drivers/mmc/core/block.c struct mmc_blk_data *md = dev_get_drvdata(&card->dev); card 2737 drivers/mmc/core/block.c struct mmc_card *card = inode->i_private; card 2738 drivers/mmc/core/block.c struct mmc_blk_data *md = dev_get_drvdata(&card->dev); card 2807 drivers/mmc/core/block.c static int mmc_blk_add_debugfs(struct mmc_card *card, struct mmc_blk_data *md) card 2811 drivers/mmc/core/block.c if (!card->debugfs_root) card 2814 drivers/mmc/core/block.c root = card->debugfs_root; card 2816 drivers/mmc/core/block.c if (mmc_card_mmc(card) || mmc_card_sd(card)) { card 2819 drivers/mmc/core/block.c card, card 2825 drivers/mmc/core/block.c if (mmc_card_mmc(card)) { card 2827 drivers/mmc/core/block.c debugfs_create_file("ext_csd", S_IRUSR, root, card, card 2836 drivers/mmc/core/block.c static void mmc_blk_remove_debugfs(struct mmc_card *card, card 2839 drivers/mmc/core/block.c if (!card->debugfs_root) card 2855 drivers/mmc/core/block.c static int mmc_blk_add_debugfs(struct mmc_card *card, struct mmc_blk_data *md) card 2860 drivers/mmc/core/block.c static void mmc_blk_remove_debugfs(struct mmc_card *card, card 2867 drivers/mmc/core/block.c static int mmc_blk_probe(struct mmc_card *card) card 2875 drivers/mmc/core/block.c if (!(card->csd.cmdclass & CCC_BLOCK_READ)) card 2878 drivers/mmc/core/block.c mmc_fixup_device(card, mmc_blk_fixups); card 2880 drivers/mmc/core/block.c card->complete_wq = alloc_workqueue("mmc_complete", card 2882 drivers/mmc/core/block.c if (unlikely(!card->complete_wq)) { card 2887 drivers/mmc/core/block.c md = mmc_blk_alloc(card); card 2894 drivers/mmc/core/block.c md->disk->disk_name, mmc_card_id(card), mmc_card_name(card), card 2897 drivers/mmc/core/block.c if (mmc_blk_alloc_parts(card, md)) card 2900 drivers/mmc/core/block.c dev_set_drvdata(&card->dev, md); card 2911 drivers/mmc/core/block.c mmc_blk_add_debugfs(card, md); card 2913 drivers/mmc/core/block.c pm_runtime_set_autosuspend_delay(&card->dev, 3000); card 2914 drivers/mmc/core/block.c pm_runtime_use_autosuspend(&card->dev); card 2920 drivers/mmc/core/block.c if (card->type != MMC_TYPE_SD_COMBO) { card 2921 drivers/mmc/core/block.c pm_runtime_set_active(&card->dev); card 2922 drivers/mmc/core/block.c pm_runtime_enable(&card->dev); card 2928 drivers/mmc/core/block.c mmc_blk_remove_parts(card, md); card 2933 drivers/mmc/core/block.c static void mmc_blk_remove(struct mmc_card *card) card 2935 drivers/mmc/core/block.c struct mmc_blk_data *md = dev_get_drvdata(&card->dev); card 2937 drivers/mmc/core/block.c mmc_blk_remove_debugfs(card, md); card 2938 drivers/mmc/core/block.c mmc_blk_remove_parts(card, md); card 2939 drivers/mmc/core/block.c pm_runtime_get_sync(&card->dev); card 2941 drivers/mmc/core/block.c mmc_claim_host(card->host); card 2942 drivers/mmc/core/block.c mmc_blk_part_switch(card, md->part_type); card 2943 drivers/mmc/core/block.c mmc_release_host(card->host); card 2945 drivers/mmc/core/block.c if (card->type != MMC_TYPE_SD_COMBO) card 2946 drivers/mmc/core/block.c pm_runtime_disable(&card->dev); card 2947 drivers/mmc/core/block.c pm_runtime_put_noidle(&card->dev); card 2949 drivers/mmc/core/block.c dev_set_drvdata(&card->dev, NULL); card 2950 drivers/mmc/core/block.c destroy_workqueue(card->complete_wq); card 2953 drivers/mmc/core/block.c static int _mmc_blk_suspend(struct mmc_card *card) card 2956 drivers/mmc/core/block.c struct mmc_blk_data *md = dev_get_drvdata(&card->dev); card 2967 drivers/mmc/core/block.c static void mmc_blk_shutdown(struct mmc_card *card) card 2969 drivers/mmc/core/block.c _mmc_blk_suspend(card); card 2975 drivers/mmc/core/block.c struct mmc_card *card = mmc_dev_to_card(dev); card 2977 drivers/mmc/core/block.c return _mmc_blk_suspend(card); card 33 drivers/mmc/core/bus.c struct mmc_card *card = mmc_dev_to_card(dev); card 35 drivers/mmc/core/bus.c switch (card->type) { card 69 drivers/mmc/core/bus.c struct mmc_card *card = mmc_dev_to_card(dev); card 73 drivers/mmc/core/bus.c switch (card->type) { card 96 drivers/mmc/core/bus.c retval = add_uevent_var(env, "MMC_NAME=%s", mmc_card_name(card)); card 112 drivers/mmc/core/bus.c struct mmc_card *card = mmc_dev_to_card(dev); card 114 drivers/mmc/core/bus.c return drv->probe(card); card 120 drivers/mmc/core/bus.c struct mmc_card *card = mmc_dev_to_card(dev); card 122 drivers/mmc/core/bus.c drv->remove(card); card 130 drivers/mmc/core/bus.c struct mmc_card *card = mmc_dev_to_card(dev); card 131 drivers/mmc/core/bus.c struct mmc_host *host = card->host; card 135 drivers/mmc/core/bus.c drv->shutdown(card); card 148 drivers/mmc/core/bus.c struct mmc_card *card = mmc_dev_to_card(dev); card 149 drivers/mmc/core/bus.c struct mmc_host *host = card->host; card 165 drivers/mmc/core/bus.c struct mmc_card *card = mmc_dev_to_card(dev); card 166 drivers/mmc/core/bus.c struct mmc_host *host = card->host; card 182 drivers/mmc/core/bus.c struct mmc_card *card = mmc_dev_to_card(dev); card 183 drivers/mmc/core/bus.c struct mmc_host *host = card->host; card 190 drivers/mmc/core/bus.c struct mmc_card *card = mmc_dev_to_card(dev); card 191 drivers/mmc/core/bus.c struct mmc_host *host = card->host; card 249 drivers/mmc/core/bus.c struct mmc_card *card = mmc_dev_to_card(dev); card 251 drivers/mmc/core/bus.c sdio_free_common_cis(card); card 253 drivers/mmc/core/bus.c kfree(card->info); card 255 drivers/mmc/core/bus.c kfree(card); card 263 drivers/mmc/core/bus.c struct mmc_card *card; card 265 drivers/mmc/core/bus.c card = kzalloc(sizeof(struct mmc_card), GFP_KERNEL); card 266 drivers/mmc/core/bus.c if (!card) card 269 drivers/mmc/core/bus.c card->host = host; card 271 drivers/mmc/core/bus.c device_initialize(&card->dev); card 273 drivers/mmc/core/bus.c card->dev.parent = mmc_classdev(host); card 274 drivers/mmc/core/bus.c card->dev.bus = &mmc_bus_type; card 275 drivers/mmc/core/bus.c card->dev.release = mmc_release_card; card 276 drivers/mmc/core/bus.c card->dev.type = type; card 278 drivers/mmc/core/bus.c return card; card 284 drivers/mmc/core/bus.c int mmc_add_card(struct mmc_card *card) card 298 drivers/mmc/core/bus.c dev_set_name(&card->dev, "%s:%04x", mmc_hostname(card->host), card->rca); card 300 drivers/mmc/core/bus.c switch (card->type) { card 306 drivers/mmc/core/bus.c if (mmc_card_blockaddr(card)) { card 307 drivers/mmc/core/bus.c if (mmc_card_ext_capacity(card)) card 318 drivers/mmc/core/bus.c if (mmc_card_blockaddr(card)) card 326 drivers/mmc/core/bus.c if (mmc_card_uhs(card) && card 327 drivers/mmc/core/bus.c (card->sd_bus_speed < ARRAY_SIZE(uhs_speeds))) card 328 drivers/mmc/core/bus.c uhs_bus_speed_mode = uhs_speeds[card->sd_bus_speed]; card 330 drivers/mmc/core/bus.c if (mmc_host_is_spi(card->host)) { card 332 drivers/mmc/core/bus.c mmc_hostname(card->host), card 333 drivers/mmc/core/bus.c mmc_card_hs(card) ? "high speed " : "", card 334 drivers/mmc/core/bus.c mmc_card_ddr52(card) ? "DDR " : "", card 338 drivers/mmc/core/bus.c mmc_hostname(card->host), card 339 drivers/mmc/core/bus.c mmc_card_uhs(card) ? "ultra high speed " : card 340 drivers/mmc/core/bus.c (mmc_card_hs(card) ? "high speed " : ""), card 341 drivers/mmc/core/bus.c mmc_card_hs400(card) ? "HS400 " : card 342 drivers/mmc/core/bus.c (mmc_card_hs200(card) ? "HS200 " : ""), card 343 drivers/mmc/core/bus.c mmc_card_hs400es(card) ? "Enhanced strobe " : "", card 344 drivers/mmc/core/bus.c mmc_card_ddr52(card) ? "DDR " : "", card 345 drivers/mmc/core/bus.c uhs_bus_speed_mode, type, card->rca); card 349 drivers/mmc/core/bus.c mmc_add_card_debugfs(card); card 351 drivers/mmc/core/bus.c card->dev.of_node = mmc_of_find_child_device(card->host, 0); card 353 drivers/mmc/core/bus.c device_enable_async_suspend(&card->dev); card 355 drivers/mmc/core/bus.c ret = device_add(&card->dev); card 359 drivers/mmc/core/bus.c mmc_card_set_present(card); card 368 drivers/mmc/core/bus.c void mmc_remove_card(struct mmc_card *card) card 370 drivers/mmc/core/bus.c struct mmc_host *host = card->host; card 373 drivers/mmc/core/bus.c mmc_remove_card_debugfs(card); card 381 drivers/mmc/core/bus.c if (mmc_card_present(card)) { card 382 drivers/mmc/core/bus.c if (mmc_host_is_spi(card->host)) { card 384 drivers/mmc/core/bus.c mmc_hostname(card->host)); card 387 drivers/mmc/core/bus.c mmc_hostname(card->host), card->rca); card 389 drivers/mmc/core/bus.c device_del(&card->dev); card 390 drivers/mmc/core/bus.c of_node_put(card->dev.of_node); card 393 drivers/mmc/core/bus.c put_device(&card->dev); card 19 drivers/mmc/core/bus.h struct mmc_card *card = mmc_dev_to_card(dev); \ card 26 drivers/mmc/core/bus.h int mmc_add_card(struct mmc_card *card); card 27 drivers/mmc/core/bus.h void mmc_remove_card(struct mmc_card *card); card 34 drivers/mmc/core/bus.h int (*probe)(struct mmc_card *card); card 35 drivers/mmc/core/bus.h void (*remove)(struct mmc_card *card); card 36 drivers/mmc/core/bus.h void (*shutdown)(struct mmc_card *card); card 62 drivers/mmc/core/card.h void (*vendor_fixup)(struct mmc_card *card, int data); card 128 drivers/mmc/core/card.h #define cid_rev_card(card) \ card 129 drivers/mmc/core/card.h cid_rev(card->cid.hwrev, \ card 130 drivers/mmc/core/card.h card->cid.fwrev, \ card 131 drivers/mmc/core/card.h card->cid.year, \ card 132 drivers/mmc/core/card.h card->cid.month) card 137 drivers/mmc/core/card.h static inline void __maybe_unused add_quirk(struct mmc_card *card, int data) card 139 drivers/mmc/core/card.h card->quirks |= data; card 142 drivers/mmc/core/card.h static inline void __maybe_unused remove_quirk(struct mmc_card *card, int data) card 144 drivers/mmc/core/card.h card->quirks &= ~data; card 147 drivers/mmc/core/card.h static inline void __maybe_unused add_limit_rate_quirk(struct mmc_card *card, card 150 drivers/mmc/core/card.h card->quirk_max_rate = data; card 156 drivers/mmc/core/card.h static inline void __maybe_unused add_quirk_mmc(struct mmc_card *card, int data) card 158 drivers/mmc/core/card.h if (mmc_card_mmc(card)) card 159 drivers/mmc/core/card.h card->quirks |= data; card 162 drivers/mmc/core/card.h static inline void __maybe_unused remove_quirk_mmc(struct mmc_card *card, card 165 drivers/mmc/core/card.h if (mmc_card_mmc(card)) card 166 drivers/mmc/core/card.h card->quirks &= ~data; card 172 drivers/mmc/core/card.h static inline void __maybe_unused add_quirk_sd(struct mmc_card *card, int data) card 174 drivers/mmc/core/card.h if (mmc_card_sd(card)) card 175 drivers/mmc/core/card.h card->quirks |= data; card 178 drivers/mmc/core/card.h static inline void __maybe_unused remove_quirk_sd(struct mmc_card *card, card 181 drivers/mmc/core/card.h if (mmc_card_sd(card)) card 182 drivers/mmc/core/card.h card->quirks &= ~data; card 173 drivers/mmc/core/core.c if (!err || !cmd->retries || mmc_card_removed(host->card)) { card 343 drivers/mmc/core/core.c if (mmc_card_removed(host->card)) card 413 drivers/mmc/core/core.c if (!mmc_interrupt_hpi(host->card)) { card 424 drivers/mmc/core/core.c mmc_card_removed(host->card)) card 665 drivers/mmc/core/core.c void mmc_set_data_timeout(struct mmc_data *data, const struct mmc_card *card) card 672 drivers/mmc/core/core.c if (mmc_card_sdio(card)) { card 681 drivers/mmc/core/core.c mult = mmc_card_sd(card) ? 100 : 10; card 688 drivers/mmc/core/core.c mult <<= card->csd.r2w_factor; card 690 drivers/mmc/core/core.c data->timeout_ns = card->csd.taac_ns * mult; card 691 drivers/mmc/core/core.c data->timeout_clks = card->csd.taac_clks * mult; card 696 drivers/mmc/core/core.c if (mmc_card_sd(card)) { card 700 drivers/mmc/core/core.c if (card->host->ios.clock) card 702 drivers/mmc/core/core.c (card->host->ios.clock / 1000); card 736 drivers/mmc/core/core.c if (mmc_card_long_read_time(card) && data->flags & MMC_DATA_READ) { card 747 drivers/mmc/core/core.c if (mmc_host_is_spi(card->host)) { card 873 drivers/mmc/core/core.c void mmc_get_card(struct mmc_card *card, struct mmc_ctx *ctx) card 875 drivers/mmc/core/core.c pm_runtime_get_sync(&card->dev); card 876 drivers/mmc/core/core.c __mmc_claim_host(card->host, ctx, NULL); card 884 drivers/mmc/core/core.c void mmc_put_card(struct mmc_card *card, struct mmc_ctx *ctx) card 886 drivers/mmc/core/core.c struct mmc_host *host = card->host; card 891 drivers/mmc/core/core.c pm_runtime_mark_last_busy(&card->dev); card 892 drivers/mmc/core/core.c pm_runtime_put_autosuspend(&card->dev); card 937 drivers/mmc/core/core.c int mmc_execute_tuning(struct mmc_card *card) card 939 drivers/mmc/core/core.c struct mmc_host *host = card->host; card 949 drivers/mmc/core/core.c if (mmc_card_mmc(card)) card 1286 drivers/mmc/core/core.c int mmc_select_drive_strength(struct mmc_card *card, unsigned int max_dtr, card 1289 drivers/mmc/core/core.c struct mmc_host *host = card->host; card 1313 drivers/mmc/core/core.c return host->ops->select_drive_strength(card, max_dtr, card 1502 drivers/mmc/core/core.c void mmc_init_erase(struct mmc_card *card) card 1506 drivers/mmc/core/core.c if (is_power_of_2(card->erase_size)) card 1507 drivers/mmc/core/core.c card->erase_shift = ffs(card->erase_size) - 1; card 1509 drivers/mmc/core/core.c card->erase_shift = 0; card 1526 drivers/mmc/core/core.c if (mmc_card_sd(card) && card->ssr.au) { card 1527 drivers/mmc/core/core.c card->pref_erase = card->ssr.au; card 1528 drivers/mmc/core/core.c card->erase_shift = ffs(card->ssr.au) - 1; card 1529 drivers/mmc/core/core.c } else if (card->erase_size) { card 1530 drivers/mmc/core/core.c sz = (card->csd.capacity << (card->csd.read_blkbits - 9)) >> 11; card 1532 drivers/mmc/core/core.c card->pref_erase = 512 * 1024 / 512; card 1534 drivers/mmc/core/core.c card->pref_erase = 1024 * 1024 / 512; card 1536 drivers/mmc/core/core.c card->pref_erase = 2 * 1024 * 1024 / 512; card 1538 drivers/mmc/core/core.c card->pref_erase = 4 * 1024 * 1024 / 512; card 1539 drivers/mmc/core/core.c if (card->pref_erase < card->erase_size) card 1540 drivers/mmc/core/core.c card->pref_erase = card->erase_size; card 1542 drivers/mmc/core/core.c sz = card->pref_erase % card->erase_size; card 1544 drivers/mmc/core/core.c card->pref_erase += card->erase_size - sz; card 1547 drivers/mmc/core/core.c card->pref_erase = 0; card 1550 drivers/mmc/core/core.c static unsigned int mmc_mmc_erase_timeout(struct mmc_card *card, card 1556 drivers/mmc/core/core.c (arg == MMC_TRIM_ARG && card->ext_csd.rev >= 6)) { card 1557 drivers/mmc/core/core.c erase_timeout = card->ext_csd.trim_timeout; card 1558 drivers/mmc/core/core.c } else if (card->ext_csd.erase_group_def & 1) { card 1561 drivers/mmc/core/core.c erase_timeout = card->ext_csd.trim_timeout; card 1563 drivers/mmc/core/core.c erase_timeout = card->ext_csd.hc_erase_timeout; card 1566 drivers/mmc/core/core.c unsigned int mult = (10 << card->csd.r2w_factor); card 1567 drivers/mmc/core/core.c unsigned int timeout_clks = card->csd.taac_clks * mult; card 1571 drivers/mmc/core/core.c if (card->csd.taac_ns < 1000000) card 1572 drivers/mmc/core/core.c timeout_us = (card->csd.taac_ns * mult) / 1000; card 1574 drivers/mmc/core/core.c timeout_us = (card->csd.taac_ns / 1000) * mult; card 1582 drivers/mmc/core/core.c (card->host->ios.clock / 1000); card 1597 drivers/mmc/core/core.c erase_timeout *= card->ext_csd.sec_erase_mult; card 1599 drivers/mmc/core/core.c erase_timeout *= card->ext_csd.sec_trim_mult; card 1608 drivers/mmc/core/core.c if (mmc_host_is_spi(card->host) && erase_timeout < 1000) card 1614 drivers/mmc/core/core.c static unsigned int mmc_sd_erase_timeout(struct mmc_card *card, card 1626 drivers/mmc/core/core.c if (card->ssr.erase_timeout) { card 1628 drivers/mmc/core/core.c erase_timeout = card->ssr.erase_timeout * qty + card 1629 drivers/mmc/core/core.c card->ssr.erase_offset; card 1645 drivers/mmc/core/core.c static unsigned int mmc_erase_timeout(struct mmc_card *card, card 1649 drivers/mmc/core/core.c if (mmc_card_sd(card)) card 1650 drivers/mmc/core/core.c return mmc_sd_erase_timeout(card, arg, qty); card 1652 drivers/mmc/core/core.c return mmc_mmc_erase_timeout(card, arg, qty); card 1655 drivers/mmc/core/core.c static int mmc_do_erase(struct mmc_card *card, unsigned int from, card 1665 drivers/mmc/core/core.c mmc_retune_hold(card->host); card 1683 drivers/mmc/core/core.c if (card->erase_shift) card 1684 drivers/mmc/core/core.c qty += ((to >> card->erase_shift) - card 1685 drivers/mmc/core/core.c (from >> card->erase_shift)) + 1; card 1686 drivers/mmc/core/core.c else if (mmc_card_sd(card)) card 1689 drivers/mmc/core/core.c qty += ((to / card->erase_size) - card 1690 drivers/mmc/core/core.c (from / card->erase_size)) + 1; card 1692 drivers/mmc/core/core.c if (!mmc_card_blockaddr(card)) { card 1697 drivers/mmc/core/core.c if (mmc_card_sd(card)) card 1703 drivers/mmc/core/core.c err = mmc_wait_for_cmd(card->host, &cmd, 0); card 1712 drivers/mmc/core/core.c if (mmc_card_sd(card)) card 1718 drivers/mmc/core/core.c err = mmc_wait_for_cmd(card->host, &cmd, 0); card 1729 drivers/mmc/core/core.c busy_timeout = mmc_erase_timeout(card, arg, qty); card 1738 drivers/mmc/core/core.c if (!(card->host->caps & MMC_CAP_NEED_RSP_BUSY) && card 1739 drivers/mmc/core/core.c card->host->max_busy_timeout && card 1740 drivers/mmc/core/core.c busy_timeout > card->host->max_busy_timeout) { card 1748 drivers/mmc/core/core.c err = mmc_wait_for_cmd(card->host, &cmd, 0); card 1756 drivers/mmc/core/core.c if (mmc_host_is_spi(card->host)) card 1763 drivers/mmc/core/core.c if ((card->host->caps & MMC_CAP_WAIT_WHILE_BUSY) && use_r1b_resp) card 1770 drivers/mmc/core/core.c cmd.arg = card->rca << 16; card 1773 drivers/mmc/core/core.c err = mmc_wait_for_cmd(card->host, &cmd, 0); card 1786 drivers/mmc/core/core.c mmc_hostname(card->host), __func__); card 1800 drivers/mmc/core/core.c mmc_retune_release(card->host); card 1804 drivers/mmc/core/core.c static unsigned int mmc_align_erase_size(struct mmc_card *card, card 1815 drivers/mmc/core/core.c if (is_power_of_2(card->erase_size)) { card 1818 drivers/mmc/core/core.c from_new = round_up(temp, card->erase_size); card 1826 drivers/mmc/core/core.c nr_new = round_down(nr_new, card->erase_size); card 1828 drivers/mmc/core/core.c rem = from_new % card->erase_size; card 1830 drivers/mmc/core/core.c rem = card->erase_size - rem; card 1838 drivers/mmc/core/core.c rem = nr_new % card->erase_size; card 1861 drivers/mmc/core/core.c int mmc_erase(struct mmc_card *card, unsigned int from, unsigned int nr, card 1867 drivers/mmc/core/core.c if (!(card->host->caps & MMC_CAP_ERASE) || card 1868 drivers/mmc/core/core.c !(card->csd.cmdclass & CCC_ERASE)) card 1871 drivers/mmc/core/core.c if (!card->erase_size) card 1874 drivers/mmc/core/core.c if (mmc_card_sd(card) && arg != SD_ERASE_ARG && arg != SD_DISCARD_ARG) card 1877 drivers/mmc/core/core.c if (mmc_card_mmc(card) && (arg & MMC_SECURE_ARGS) && card 1878 drivers/mmc/core/core.c !(card->ext_csd.sec_feature_support & EXT_CSD_SEC_ER_EN)) card 1881 drivers/mmc/core/core.c if (mmc_card_mmc(card) && (arg & MMC_TRIM_ARGS) && card 1882 drivers/mmc/core/core.c !(card->ext_csd.sec_feature_support & EXT_CSD_SEC_GB_CL_EN)) card 1886 drivers/mmc/core/core.c if (from % card->erase_size || nr % card->erase_size) card 1891 drivers/mmc/core/core.c nr = mmc_align_erase_size(card, &from, &to, nr); card 1910 drivers/mmc/core/core.c rem = card->erase_size - (from % card->erase_size); card 1911 drivers/mmc/core/core.c if ((arg & MMC_TRIM_ARGS) && (card->eg_boundary) && (nr > rem)) { card 1912 drivers/mmc/core/core.c err = mmc_do_erase(card, from, from + rem - 1, arg); card 1918 drivers/mmc/core/core.c return mmc_do_erase(card, from, to, arg); card 1922 drivers/mmc/core/core.c int mmc_can_erase(struct mmc_card *card) card 1924 drivers/mmc/core/core.c if ((card->host->caps & MMC_CAP_ERASE) && card 1925 drivers/mmc/core/core.c (card->csd.cmdclass & CCC_ERASE) && card->erase_size) card 1931 drivers/mmc/core/core.c int mmc_can_trim(struct mmc_card *card) card 1933 drivers/mmc/core/core.c if ((card->ext_csd.sec_feature_support & EXT_CSD_SEC_GB_CL_EN) && card 1934 drivers/mmc/core/core.c (!(card->quirks & MMC_QUIRK_TRIM_BROKEN))) card 1940 drivers/mmc/core/core.c int mmc_can_discard(struct mmc_card *card) card 1946 drivers/mmc/core/core.c if (card->ext_csd.feature_support & MMC_DISCARD_FEATURE) card 1952 drivers/mmc/core/core.c int mmc_can_sanitize(struct mmc_card *card) card 1954 drivers/mmc/core/core.c if (!mmc_can_trim(card) && !mmc_can_erase(card)) card 1956 drivers/mmc/core/core.c if (card->ext_csd.sec_feature_support & EXT_CSD_SEC_SANITIZE) card 1962 drivers/mmc/core/core.c int mmc_can_secure_erase_trim(struct mmc_card *card) card 1964 drivers/mmc/core/core.c if ((card->ext_csd.sec_feature_support & EXT_CSD_SEC_ER_EN) && card 1965 drivers/mmc/core/core.c !(card->quirks & MMC_QUIRK_SEC_ERASE_TRIM_BROKEN)) card 1971 drivers/mmc/core/core.c int mmc_erase_group_aligned(struct mmc_card *card, unsigned int from, card 1974 drivers/mmc/core/core.c if (!card->erase_size) card 1976 drivers/mmc/core/core.c if (from % card->erase_size || nr % card->erase_size) card 1982 drivers/mmc/core/core.c static unsigned int mmc_do_calc_max_discard(struct mmc_card *card, card 1985 drivers/mmc/core/core.c struct mmc_host *host = card->host; card 1991 drivers/mmc/core/core.c if (card->erase_shift) { card 1992 drivers/mmc/core/core.c max_qty = UINT_MAX >> card->erase_shift; card 1993 drivers/mmc/core/core.c min_qty = card->pref_erase >> card->erase_shift; card 1994 drivers/mmc/core/core.c } else if (mmc_card_sd(card)) { card 1996 drivers/mmc/core/core.c min_qty = card->pref_erase; card 1998 drivers/mmc/core/core.c max_qty = UINT_MAX / card->erase_size; card 1999 drivers/mmc/core/core.c min_qty = card->pref_erase / card->erase_size; card 2018 drivers/mmc/core/core.c timeout = mmc_erase_timeout(card, arg, qty + x); card 2045 drivers/mmc/core/core.c card->eg_boundary = 1; card 2050 drivers/mmc/core/core.c if (card->erase_shift) card 2051 drivers/mmc/core/core.c max_discard = qty << card->erase_shift; card 2052 drivers/mmc/core/core.c else if (mmc_card_sd(card)) card 2055 drivers/mmc/core/core.c max_discard = qty * card->erase_size; card 2060 drivers/mmc/core/core.c unsigned int mmc_calc_max_discard(struct mmc_card *card) card 2062 drivers/mmc/core/core.c struct mmc_host *host = card->host; card 2070 drivers/mmc/core/core.c if (mmc_card_mmc(card) && !(card->ext_csd.erase_group_def & 1)) card 2071 drivers/mmc/core/core.c return card->pref_erase; card 2073 drivers/mmc/core/core.c max_discard = mmc_do_calc_max_discard(card, MMC_ERASE_ARG); card 2074 drivers/mmc/core/core.c if (mmc_can_trim(card)) { card 2075 drivers/mmc/core/core.c max_trim = mmc_do_calc_max_discard(card, MMC_TRIM_ARG); card 2078 drivers/mmc/core/core.c } else if (max_discard < card->erase_size) { card 2088 drivers/mmc/core/core.c bool mmc_card_is_blockaddr(struct mmc_card *card) card 2090 drivers/mmc/core/core.c return card ? mmc_card_blockaddr(card) : false; card 2094 drivers/mmc/core/core.c int mmc_set_blocklen(struct mmc_card *card, unsigned int blocklen) card 2098 drivers/mmc/core/core.c if (mmc_card_blockaddr(card) || mmc_card_ddr52(card) || card 2099 drivers/mmc/core/core.c mmc_card_hs400(card) || mmc_card_hs400es(card)) card 2105 drivers/mmc/core/core.c return mmc_wait_for_cmd(card->host, &cmd, 5); card 2122 drivers/mmc/core/core.c if (!host->card) card 2146 drivers/mmc/core/core.c if (!host->card) card 2216 drivers/mmc/core/core.c if (!host->card || mmc_card_removed(host->card)) card 2234 drivers/mmc/core/core.c mmc_card_set_removed(host->card); card 2243 drivers/mmc/core/core.c struct mmc_card *card = host->card; card 2248 drivers/mmc/core/core.c if (!card) card 2254 drivers/mmc/core/core.c ret = mmc_card_removed(card); card 40 drivers/mmc/core/core.h void mmc_init_erase(struct mmc_card *card); card 53 drivers/mmc/core/core.h int mmc_select_drive_strength(struct mmc_card *card, unsigned int max_dtr, card 89 drivers/mmc/core/core.h void mmc_add_card_debugfs(struct mmc_card *card); card 90 drivers/mmc/core/core.h void mmc_remove_card_debugfs(struct mmc_card *card); card 92 drivers/mmc/core/core.h int mmc_execute_tuning(struct mmc_card *card); card 93 drivers/mmc/core/core.h int mmc_hs200_to_hs400(struct mmc_card *card); card 94 drivers/mmc/core/core.h int mmc_hs400_to_hs200(struct mmc_card *card); card 109 drivers/mmc/core/core.h int mmc_erase(struct mmc_card *card, unsigned int from, unsigned int nr, card 111 drivers/mmc/core/core.h int mmc_can_erase(struct mmc_card *card); card 112 drivers/mmc/core/core.h int mmc_can_trim(struct mmc_card *card); card 113 drivers/mmc/core/core.h int mmc_can_discard(struct mmc_card *card); card 114 drivers/mmc/core/core.h int mmc_can_sanitize(struct mmc_card *card); card 115 drivers/mmc/core/core.h int mmc_can_secure_erase_trim(struct mmc_card *card); card 116 drivers/mmc/core/core.h int mmc_erase_group_aligned(struct mmc_card *card, unsigned int from, card 118 drivers/mmc/core/core.h unsigned int mmc_calc_max_discard(struct mmc_card *card); card 120 drivers/mmc/core/core.h int mmc_set_blocklen(struct mmc_card *card, unsigned int blocklen); card 125 drivers/mmc/core/core.h void mmc_get_card(struct mmc_card *card, struct mmc_ctx *ctx); card 126 drivers/mmc/core/core.h void mmc_put_card(struct mmc_card *card, struct mmc_ctx *ctx); card 150 drivers/mmc/core/debugfs.c str = mmc_card_hs400es(host->card) ? card 252 drivers/mmc/core/debugfs.c void mmc_add_card_debugfs(struct mmc_card *card) card 254 drivers/mmc/core/debugfs.c struct mmc_host *host = card->host; card 260 drivers/mmc/core/debugfs.c root = debugfs_create_dir(mmc_card_id(card), host->debugfs_root); card 261 drivers/mmc/core/debugfs.c card->debugfs_root = root; card 263 drivers/mmc/core/debugfs.c debugfs_create_x32("state", S_IRUSR, root, &card->state); card 266 drivers/mmc/core/debugfs.c void mmc_remove_card_debugfs(struct mmc_card *card) card 268 drivers/mmc/core/debugfs.c debugfs_remove_recursive(card->debugfs_root); card 269 drivers/mmc/core/debugfs.c card->debugfs_root = NULL; card 130 drivers/mmc/core/host.c if (!host->need_retune || host->doing_retune || !host->card) card 138 drivers/mmc/core/host.c err = mmc_hs400_to_hs200(host->card); card 145 drivers/mmc/core/host.c err = mmc_execute_tuning(host->card); card 150 drivers/mmc/core/host.c err = mmc_hs200_to_hs400(host->card); card 60 drivers/mmc/core/host.h static inline bool mmc_card_hs200(struct mmc_card *card) card 62 drivers/mmc/core/host.h return card->host->ios.timing == MMC_TIMING_MMC_HS200; card 65 drivers/mmc/core/host.h static inline bool mmc_card_ddr52(struct mmc_card *card) card 67 drivers/mmc/core/host.h return card->host->ios.timing == MMC_TIMING_MMC_DDR52; card 70 drivers/mmc/core/host.h static inline bool mmc_card_hs400(struct mmc_card *card) card 72 drivers/mmc/core/host.h return card->host->ios.timing == MMC_TIMING_MMC_HS400; card 75 drivers/mmc/core/host.h static inline bool mmc_card_hs400es(struct mmc_card *card) card 77 drivers/mmc/core/host.h return card->host->ios.enhanced_strobe; card 68 drivers/mmc/core/mmc.c static int mmc_decode_cid(struct mmc_card *card) card 70 drivers/mmc/core/mmc.c u32 *resp = card->raw_cid; card 76 drivers/mmc/core/mmc.c switch (card->csd.mmca_vsn) { card 79 drivers/mmc/core/mmc.c card->cid.manfid = UNSTUFF_BITS(resp, 104, 24); card 80 drivers/mmc/core/mmc.c card->cid.prod_name[0] = UNSTUFF_BITS(resp, 96, 8); card 81 drivers/mmc/core/mmc.c card->cid.prod_name[1] = UNSTUFF_BITS(resp, 88, 8); card 82 drivers/mmc/core/mmc.c card->cid.prod_name[2] = UNSTUFF_BITS(resp, 80, 8); card 83 drivers/mmc/core/mmc.c card->cid.prod_name[3] = UNSTUFF_BITS(resp, 72, 8); card 84 drivers/mmc/core/mmc.c card->cid.prod_name[4] = UNSTUFF_BITS(resp, 64, 8); card 85 drivers/mmc/core/mmc.c card->cid.prod_name[5] = UNSTUFF_BITS(resp, 56, 8); card 86 drivers/mmc/core/mmc.c card->cid.prod_name[6] = UNSTUFF_BITS(resp, 48, 8); card 87 drivers/mmc/core/mmc.c card->cid.hwrev = UNSTUFF_BITS(resp, 44, 4); card 88 drivers/mmc/core/mmc.c card->cid.fwrev = UNSTUFF_BITS(resp, 40, 4); card 89 drivers/mmc/core/mmc.c card->cid.serial = UNSTUFF_BITS(resp, 16, 24); card 90 drivers/mmc/core/mmc.c card->cid.month = UNSTUFF_BITS(resp, 12, 4); card 91 drivers/mmc/core/mmc.c card->cid.year = UNSTUFF_BITS(resp, 8, 4) + 1997; card 97 drivers/mmc/core/mmc.c card->cid.manfid = UNSTUFF_BITS(resp, 120, 8); card 98 drivers/mmc/core/mmc.c card->cid.oemid = UNSTUFF_BITS(resp, 104, 16); card 99 drivers/mmc/core/mmc.c card->cid.prod_name[0] = UNSTUFF_BITS(resp, 96, 8); card 100 drivers/mmc/core/mmc.c card->cid.prod_name[1] = UNSTUFF_BITS(resp, 88, 8); card 101 drivers/mmc/core/mmc.c card->cid.prod_name[2] = UNSTUFF_BITS(resp, 80, 8); card 102 drivers/mmc/core/mmc.c card->cid.prod_name[3] = UNSTUFF_BITS(resp, 72, 8); card 103 drivers/mmc/core/mmc.c card->cid.prod_name[4] = UNSTUFF_BITS(resp, 64, 8); card 104 drivers/mmc/core/mmc.c card->cid.prod_name[5] = UNSTUFF_BITS(resp, 56, 8); card 105 drivers/mmc/core/mmc.c card->cid.prv = UNSTUFF_BITS(resp, 48, 8); card 106 drivers/mmc/core/mmc.c card->cid.serial = UNSTUFF_BITS(resp, 16, 32); card 107 drivers/mmc/core/mmc.c card->cid.month = UNSTUFF_BITS(resp, 12, 4); card 108 drivers/mmc/core/mmc.c card->cid.year = UNSTUFF_BITS(resp, 8, 4) + 1997; card 113 drivers/mmc/core/mmc.c mmc_hostname(card->host), card->csd.mmca_vsn); card 120 drivers/mmc/core/mmc.c static void mmc_set_erase_size(struct mmc_card *card) card 122 drivers/mmc/core/mmc.c if (card->ext_csd.erase_group_def & 1) card 123 drivers/mmc/core/mmc.c card->erase_size = card->ext_csd.hc_erase_size; card 125 drivers/mmc/core/mmc.c card->erase_size = card->csd.erase_size; card 127 drivers/mmc/core/mmc.c mmc_init_erase(card); card 133 drivers/mmc/core/mmc.c static int mmc_decode_csd(struct mmc_card *card) card 135 drivers/mmc/core/mmc.c struct mmc_csd *csd = &card->csd; card 137 drivers/mmc/core/mmc.c u32 *resp = card->raw_csd; card 147 drivers/mmc/core/mmc.c mmc_hostname(card->host), csd->structure); card 185 drivers/mmc/core/mmc.c static void mmc_select_card_type(struct mmc_card *card) card 187 drivers/mmc/core/mmc.c struct mmc_host *host = card->host; card 188 drivers/mmc/core/mmc.c u8 card_type = card->ext_csd.raw_card_type; card 242 drivers/mmc/core/mmc.c card->ext_csd.strobe_support && card 246 drivers/mmc/core/mmc.c card->ext_csd.hs_max_dtr = hs_max_dtr; card 247 drivers/mmc/core/mmc.c card->ext_csd.hs200_max_dtr = hs200_max_dtr; card 248 drivers/mmc/core/mmc.c card->mmc_avail_type = avail_type; card 251 drivers/mmc/core/mmc.c static void mmc_manage_enhanced_area(struct mmc_card *card, u8 *ext_csd) card 258 drivers/mmc/core/mmc.c card->ext_csd.enhanced_area_offset = -EINVAL; card 259 drivers/mmc/core/mmc.c card->ext_csd.enhanced_area_size = -EINVAL; card 268 drivers/mmc/core/mmc.c if (card->ext_csd.partition_setting_completed) { card 277 drivers/mmc/core/mmc.c card->ext_csd.enhanced_area_offset = card 282 drivers/mmc/core/mmc.c if (mmc_card_blockaddr(card)) card 283 drivers/mmc/core/mmc.c card->ext_csd.enhanced_area_offset <<= 9; card 287 drivers/mmc/core/mmc.c card->ext_csd.enhanced_area_size = card 290 drivers/mmc/core/mmc.c card->ext_csd.enhanced_area_size *= card 292 drivers/mmc/core/mmc.c card->ext_csd.enhanced_area_size <<= 9; card 295 drivers/mmc/core/mmc.c mmc_hostname(card->host)); card 300 drivers/mmc/core/mmc.c static void mmc_part_add(struct mmc_card *card, unsigned int size, card 304 drivers/mmc/core/mmc.c card->part[card->nr_parts].size = size; card 305 drivers/mmc/core/mmc.c card->part[card->nr_parts].part_cfg = part_cfg; card 306 drivers/mmc/core/mmc.c sprintf(card->part[card->nr_parts].name, name, idx); card 307 drivers/mmc/core/mmc.c card->part[card->nr_parts].force_ro = ro; card 308 drivers/mmc/core/mmc.c card->part[card->nr_parts].area_type = area_type; card 309 drivers/mmc/core/mmc.c card->nr_parts++; card 312 drivers/mmc/core/mmc.c static void mmc_manage_gp_partitions(struct mmc_card *card, u8 *ext_csd) card 335 drivers/mmc/core/mmc.c if (card->ext_csd.partition_setting_completed == 0) { card 337 drivers/mmc/core/mmc.c mmc_hostname(card->host)); card 348 drivers/mmc/core/mmc.c mmc_part_add(card, part_size << 19, card 362 drivers/mmc/core/mmc.c static int mmc_decode_ext_csd(struct mmc_card *card, u8 *ext_csd) card 370 drivers/mmc/core/mmc.c card->ext_csd.raw_ext_csd_structure = ext_csd[EXT_CSD_STRUCTURE]; card 371 drivers/mmc/core/mmc.c if (card->csd.structure == 3) { card 372 drivers/mmc/core/mmc.c if (card->ext_csd.raw_ext_csd_structure > 2) { card 374 drivers/mmc/core/mmc.c "version %d\n", mmc_hostname(card->host), card 375 drivers/mmc/core/mmc.c card->ext_csd.raw_ext_csd_structure); card 381 drivers/mmc/core/mmc.c np = mmc_of_find_child_device(card->host, 0); card 391 drivers/mmc/core/mmc.c card->ext_csd.rev = ext_csd[EXT_CSD_REV]; card 394 drivers/mmc/core/mmc.c mmc_fixup_device(card, mmc_ext_csd_fixups); card 396 drivers/mmc/core/mmc.c card->ext_csd.raw_sectors[0] = ext_csd[EXT_CSD_SEC_CNT + 0]; card 397 drivers/mmc/core/mmc.c card->ext_csd.raw_sectors[1] = ext_csd[EXT_CSD_SEC_CNT + 1]; card 398 drivers/mmc/core/mmc.c card->ext_csd.raw_sectors[2] = ext_csd[EXT_CSD_SEC_CNT + 2]; card 399 drivers/mmc/core/mmc.c card->ext_csd.raw_sectors[3] = ext_csd[EXT_CSD_SEC_CNT + 3]; card 400 drivers/mmc/core/mmc.c if (card->ext_csd.rev >= 2) { card 401 drivers/mmc/core/mmc.c card->ext_csd.sectors = card 408 drivers/mmc/core/mmc.c if (card->ext_csd.sectors > (2u * 1024 * 1024 * 1024) / 512) card 409 drivers/mmc/core/mmc.c mmc_card_set_blockaddr(card); card 412 drivers/mmc/core/mmc.c card->ext_csd.strobe_support = ext_csd[EXT_CSD_STROBE_SUPPORT]; card 413 drivers/mmc/core/mmc.c card->ext_csd.raw_card_type = ext_csd[EXT_CSD_CARD_TYPE]; card 414 drivers/mmc/core/mmc.c mmc_select_card_type(card); card 416 drivers/mmc/core/mmc.c card->ext_csd.raw_s_a_timeout = ext_csd[EXT_CSD_S_A_TIMEOUT]; card 417 drivers/mmc/core/mmc.c card->ext_csd.raw_erase_timeout_mult = card 419 drivers/mmc/core/mmc.c card->ext_csd.raw_hc_erase_grp_size = card 421 drivers/mmc/core/mmc.c if (card->ext_csd.rev >= 3) { card 423 drivers/mmc/core/mmc.c card->ext_csd.part_config = ext_csd[EXT_CSD_PART_CONFIG]; card 426 drivers/mmc/core/mmc.c card->ext_csd.part_time = 10 * ext_csd[EXT_CSD_PART_SWITCH_TIME]; card 428 drivers/mmc/core/mmc.c if (card->ext_csd.part_time && card 429 drivers/mmc/core/mmc.c card->ext_csd.part_time < MMC_MIN_PART_SWITCH_TIME) card 430 drivers/mmc/core/mmc.c card->ext_csd.part_time = MMC_MIN_PART_SWITCH_TIME; card 434 drivers/mmc/core/mmc.c card->ext_csd.sa_timeout = card 436 drivers/mmc/core/mmc.c card->ext_csd.erase_group_def = card 438 drivers/mmc/core/mmc.c card->ext_csd.hc_erase_timeout = 300 * card 440 drivers/mmc/core/mmc.c card->ext_csd.hc_erase_size = card 443 drivers/mmc/core/mmc.c card->ext_csd.rel_sectors = ext_csd[EXT_CSD_REL_WR_SEC_C]; card 449 drivers/mmc/core/mmc.c if (ext_csd[EXT_CSD_BOOT_MULT] && mmc_boot_partition_access(card->host)) { card 452 drivers/mmc/core/mmc.c mmc_part_add(card, part_size, card 460 drivers/mmc/core/mmc.c card->ext_csd.raw_hc_erase_gap_size = card 462 drivers/mmc/core/mmc.c card->ext_csd.raw_sec_trim_mult = card 464 drivers/mmc/core/mmc.c card->ext_csd.raw_sec_erase_mult = card 466 drivers/mmc/core/mmc.c card->ext_csd.raw_sec_feature_support = card 468 drivers/mmc/core/mmc.c card->ext_csd.raw_trim_mult = card 470 drivers/mmc/core/mmc.c card->ext_csd.raw_partition_support = ext_csd[EXT_CSD_PARTITION_SUPPORT]; card 471 drivers/mmc/core/mmc.c card->ext_csd.raw_driver_strength = ext_csd[EXT_CSD_DRIVER_STRENGTH]; card 472 drivers/mmc/core/mmc.c if (card->ext_csd.rev >= 4) { card 475 drivers/mmc/core/mmc.c card->ext_csd.partition_setting_completed = 1; card 477 drivers/mmc/core/mmc.c card->ext_csd.partition_setting_completed = 0; card 479 drivers/mmc/core/mmc.c mmc_manage_enhanced_area(card, ext_csd); card 481 drivers/mmc/core/mmc.c mmc_manage_gp_partitions(card, ext_csd); card 483 drivers/mmc/core/mmc.c card->ext_csd.sec_trim_mult = card 485 drivers/mmc/core/mmc.c card->ext_csd.sec_erase_mult = card 487 drivers/mmc/core/mmc.c card->ext_csd.sec_feature_support = card 489 drivers/mmc/core/mmc.c card->ext_csd.trim_timeout = 300 * card 497 drivers/mmc/core/mmc.c card->ext_csd.boot_ro_lock = ext_csd[EXT_CSD_BOOT_WP]; card 498 drivers/mmc/core/mmc.c card->ext_csd.boot_ro_lockable = true; card 501 drivers/mmc/core/mmc.c card->ext_csd.raw_pwr_cl_52_195 = card 503 drivers/mmc/core/mmc.c card->ext_csd.raw_pwr_cl_26_195 = card 505 drivers/mmc/core/mmc.c card->ext_csd.raw_pwr_cl_52_360 = card 507 drivers/mmc/core/mmc.c card->ext_csd.raw_pwr_cl_26_360 = card 509 drivers/mmc/core/mmc.c card->ext_csd.raw_pwr_cl_200_195 = card 511 drivers/mmc/core/mmc.c card->ext_csd.raw_pwr_cl_200_360 = card 513 drivers/mmc/core/mmc.c card->ext_csd.raw_pwr_cl_ddr_52_195 = card 515 drivers/mmc/core/mmc.c card->ext_csd.raw_pwr_cl_ddr_52_360 = card 517 drivers/mmc/core/mmc.c card->ext_csd.raw_pwr_cl_ddr_200_360 = card 521 drivers/mmc/core/mmc.c if (card->ext_csd.rev >= 5) { card 523 drivers/mmc/core/mmc.c if (card->cid.year < 2010) card 524 drivers/mmc/core/mmc.c card->cid.year += 16; card 528 drivers/mmc/core/mmc.c card->ext_csd.bkops = 1; card 529 drivers/mmc/core/mmc.c card->ext_csd.man_bkops_en = card 532 drivers/mmc/core/mmc.c card->ext_csd.raw_bkops_status = card 534 drivers/mmc/core/mmc.c if (card->ext_csd.man_bkops_en) card 536 drivers/mmc/core/mmc.c mmc_hostname(card->host)); card 537 drivers/mmc/core/mmc.c card->ext_csd.auto_bkops_en = card 540 drivers/mmc/core/mmc.c if (card->ext_csd.auto_bkops_en) card 542 drivers/mmc/core/mmc.c mmc_hostname(card->host)); card 546 drivers/mmc/core/mmc.c if (!mmc_card_broken_hpi(card) && card 548 drivers/mmc/core/mmc.c card->ext_csd.hpi = 1; card 550 drivers/mmc/core/mmc.c card->ext_csd.hpi_cmd = MMC_STOP_TRANSMISSION; card 552 drivers/mmc/core/mmc.c card->ext_csd.hpi_cmd = MMC_SEND_STATUS; card 557 drivers/mmc/core/mmc.c card->ext_csd.out_of_int_time = card 561 drivers/mmc/core/mmc.c card->ext_csd.rel_param = ext_csd[EXT_CSD_WR_REL_PARAM]; card 562 drivers/mmc/core/mmc.c card->ext_csd.rst_n_function = ext_csd[EXT_CSD_RST_N_FUNCTION]; card 567 drivers/mmc/core/mmc.c card->ext_csd.raw_rpmb_size_mult = ext_csd[EXT_CSD_RPMB_MULT]; card 568 drivers/mmc/core/mmc.c if (ext_csd[EXT_CSD_RPMB_MULT] && mmc_host_cmd23(card->host)) { card 569 drivers/mmc/core/mmc.c mmc_part_add(card, ext_csd[EXT_CSD_RPMB_MULT] << 17, card 576 drivers/mmc/core/mmc.c card->ext_csd.raw_erased_mem_count = ext_csd[EXT_CSD_ERASED_MEM_CONT]; card 578 drivers/mmc/core/mmc.c card->erased_byte = 0xFF; card 580 drivers/mmc/core/mmc.c card->erased_byte = 0x0; card 583 drivers/mmc/core/mmc.c card->ext_csd.generic_cmd6_time = DEFAULT_CMD6_TIMEOUT_MS; card 584 drivers/mmc/core/mmc.c if (card->ext_csd.rev >= 6) { card 585 drivers/mmc/core/mmc.c card->ext_csd.feature_support |= MMC_DISCARD_FEATURE; card 587 drivers/mmc/core/mmc.c card->ext_csd.generic_cmd6_time = 10 * card 589 drivers/mmc/core/mmc.c card->ext_csd.power_off_longtime = 10 * card 592 drivers/mmc/core/mmc.c card->ext_csd.cache_size = card 599 drivers/mmc/core/mmc.c card->ext_csd.data_sector_size = 4096; card 601 drivers/mmc/core/mmc.c card->ext_csd.data_sector_size = 512; card 605 drivers/mmc/core/mmc.c card->ext_csd.data_tag_unit_size = card 607 drivers/mmc/core/mmc.c (card->ext_csd.data_sector_size); card 609 drivers/mmc/core/mmc.c card->ext_csd.data_tag_unit_size = 0; card 612 drivers/mmc/core/mmc.c card->ext_csd.max_packed_writes = card 614 drivers/mmc/core/mmc.c card->ext_csd.max_packed_reads = card 617 drivers/mmc/core/mmc.c card->ext_csd.data_sector_size = 512; card 621 drivers/mmc/core/mmc.c if (card->ext_csd.rev >= 7) { card 622 drivers/mmc/core/mmc.c memcpy(card->ext_csd.fwrev, &ext_csd[EXT_CSD_FIRMWARE_VERSION], card 624 drivers/mmc/core/mmc.c card->ext_csd.ffu_capable = card 628 drivers/mmc/core/mmc.c card->ext_csd.pre_eol_info = ext_csd[EXT_CSD_PRE_EOL_INFO]; card 629 drivers/mmc/core/mmc.c card->ext_csd.device_life_time_est_typ_a = card 631 drivers/mmc/core/mmc.c card->ext_csd.device_life_time_est_typ_b = card 636 drivers/mmc/core/mmc.c if (card->ext_csd.rev >= 8) { card 637 drivers/mmc/core/mmc.c card->ext_csd.cmdq_support = ext_csd[EXT_CSD_CMDQ_SUPPORT] & card 639 drivers/mmc/core/mmc.c card->ext_csd.cmdq_depth = (ext_csd[EXT_CSD_CMDQ_DEPTH] & card 642 drivers/mmc/core/mmc.c if (card->ext_csd.cmdq_depth <= 2) { card 643 drivers/mmc/core/mmc.c card->ext_csd.cmdq_support = false; card 644 drivers/mmc/core/mmc.c card->ext_csd.cmdq_depth = 0; card 646 drivers/mmc/core/mmc.c if (card->ext_csd.cmdq_support) { card 648 drivers/mmc/core/mmc.c mmc_hostname(card->host), card 649 drivers/mmc/core/mmc.c card->ext_csd.cmdq_depth); card 656 drivers/mmc/core/mmc.c static int mmc_read_ext_csd(struct mmc_card *card) card 661 drivers/mmc/core/mmc.c if (!mmc_can_ext_csd(card)) card 664 drivers/mmc/core/mmc.c err = mmc_get_ext_csd(card, &ext_csd); card 677 drivers/mmc/core/mmc.c if (card->csd.capacity == (4096 * 512)) { card 679 drivers/mmc/core/mmc.c mmc_hostname(card->host)); card 682 drivers/mmc/core/mmc.c mmc_hostname(card->host)); card 689 drivers/mmc/core/mmc.c err = mmc_decode_ext_csd(card, ext_csd); card 694 drivers/mmc/core/mmc.c static int mmc_compare_ext_csds(struct mmc_card *card, unsigned bus_width) card 702 drivers/mmc/core/mmc.c err = mmc_get_ext_csd(card, &bw_ext_csd); card 707 drivers/mmc/core/mmc.c err = !((card->ext_csd.raw_partition_support == card 709 drivers/mmc/core/mmc.c (card->ext_csd.raw_erased_mem_count == card 711 drivers/mmc/core/mmc.c (card->ext_csd.rev == card 713 drivers/mmc/core/mmc.c (card->ext_csd.raw_ext_csd_structure == card 715 drivers/mmc/core/mmc.c (card->ext_csd.raw_card_type == card 717 drivers/mmc/core/mmc.c (card->ext_csd.raw_s_a_timeout == card 719 drivers/mmc/core/mmc.c (card->ext_csd.raw_hc_erase_gap_size == card 721 drivers/mmc/core/mmc.c (card->ext_csd.raw_erase_timeout_mult == card 723 drivers/mmc/core/mmc.c (card->ext_csd.raw_hc_erase_grp_size == card 725 drivers/mmc/core/mmc.c (card->ext_csd.raw_sec_trim_mult == card 727 drivers/mmc/core/mmc.c (card->ext_csd.raw_sec_erase_mult == card 729 drivers/mmc/core/mmc.c (card->ext_csd.raw_sec_feature_support == card 731 drivers/mmc/core/mmc.c (card->ext_csd.raw_trim_mult == card 733 drivers/mmc/core/mmc.c (card->ext_csd.raw_sectors[0] == card 735 drivers/mmc/core/mmc.c (card->ext_csd.raw_sectors[1] == card 737 drivers/mmc/core/mmc.c (card->ext_csd.raw_sectors[2] == card 739 drivers/mmc/core/mmc.c (card->ext_csd.raw_sectors[3] == card 741 drivers/mmc/core/mmc.c (card->ext_csd.raw_pwr_cl_52_195 == card 743 drivers/mmc/core/mmc.c (card->ext_csd.raw_pwr_cl_26_195 == card 745 drivers/mmc/core/mmc.c (card->ext_csd.raw_pwr_cl_52_360 == card 747 drivers/mmc/core/mmc.c (card->ext_csd.raw_pwr_cl_26_360 == card 749 drivers/mmc/core/mmc.c (card->ext_csd.raw_pwr_cl_200_195 == card 751 drivers/mmc/core/mmc.c (card->ext_csd.raw_pwr_cl_200_360 == card 753 drivers/mmc/core/mmc.c (card->ext_csd.raw_pwr_cl_ddr_52_195 == card 755 drivers/mmc/core/mmc.c (card->ext_csd.raw_pwr_cl_ddr_52_360 == card 757 drivers/mmc/core/mmc.c (card->ext_csd.raw_pwr_cl_ddr_200_360 == card 767 drivers/mmc/core/mmc.c MMC_DEV_ATTR(cid, "%08x%08x%08x%08x\n", card->raw_cid[0], card->raw_cid[1], card 768 drivers/mmc/core/mmc.c card->raw_cid[2], card->raw_cid[3]); card 769 drivers/mmc/core/mmc.c MMC_DEV_ATTR(csd, "%08x%08x%08x%08x\n", card->raw_csd[0], card->raw_csd[1], card 770 drivers/mmc/core/mmc.c card->raw_csd[2], card->raw_csd[3]); card 771 drivers/mmc/core/mmc.c MMC_DEV_ATTR(date, "%02d/%04d\n", card->cid.month, card->cid.year); card 772 drivers/mmc/core/mmc.c MMC_DEV_ATTR(erase_size, "%u\n", card->erase_size << 9); card 773 drivers/mmc/core/mmc.c MMC_DEV_ATTR(preferred_erase_size, "%u\n", card->pref_erase << 9); card 774 drivers/mmc/core/mmc.c MMC_DEV_ATTR(ffu_capable, "%d\n", card->ext_csd.ffu_capable); card 775 drivers/mmc/core/mmc.c MMC_DEV_ATTR(hwrev, "0x%x\n", card->cid.hwrev); card 776 drivers/mmc/core/mmc.c MMC_DEV_ATTR(manfid, "0x%06x\n", card->cid.manfid); card 777 drivers/mmc/core/mmc.c MMC_DEV_ATTR(name, "%s\n", card->cid.prod_name); card 778 drivers/mmc/core/mmc.c MMC_DEV_ATTR(oemid, "0x%04x\n", card->cid.oemid); card 779 drivers/mmc/core/mmc.c MMC_DEV_ATTR(prv, "0x%x\n", card->cid.prv); card 780 drivers/mmc/core/mmc.c MMC_DEV_ATTR(rev, "0x%x\n", card->ext_csd.rev); card 781 drivers/mmc/core/mmc.c MMC_DEV_ATTR(pre_eol_info, "0x%02x\n", card->ext_csd.pre_eol_info); card 783 drivers/mmc/core/mmc.c card->ext_csd.device_life_time_est_typ_a, card 784 drivers/mmc/core/mmc.c card->ext_csd.device_life_time_est_typ_b); card 785 drivers/mmc/core/mmc.c MMC_DEV_ATTR(serial, "0x%08x\n", card->cid.serial); card 787 drivers/mmc/core/mmc.c card->ext_csd.enhanced_area_offset); card 788 drivers/mmc/core/mmc.c MMC_DEV_ATTR(enhanced_area_size, "%u\n", card->ext_csd.enhanced_area_size); card 789 drivers/mmc/core/mmc.c MMC_DEV_ATTR(raw_rpmb_size_mult, "%#x\n", card->ext_csd.raw_rpmb_size_mult); card 790 drivers/mmc/core/mmc.c MMC_DEV_ATTR(rel_sectors, "%#x\n", card->ext_csd.rel_sectors); card 791 drivers/mmc/core/mmc.c MMC_DEV_ATTR(ocr, "0x%08x\n", card->ocr); card 792 drivers/mmc/core/mmc.c MMC_DEV_ATTR(rca, "0x%04x\n", card->rca); card 793 drivers/mmc/core/mmc.c MMC_DEV_ATTR(cmdq_en, "%d\n", card->ext_csd.cmdq_en); card 799 drivers/mmc/core/mmc.c struct mmc_card *card = mmc_dev_to_card(dev); card 801 drivers/mmc/core/mmc.c if (card->ext_csd.rev < 7) { card 802 drivers/mmc/core/mmc.c return sprintf(buf, "0x%x\n", card->cid.fwrev); card 805 drivers/mmc/core/mmc.c card->ext_csd.fwrev); card 815 drivers/mmc/core/mmc.c struct mmc_card *card = mmc_dev_to_card(dev); card 816 drivers/mmc/core/mmc.c struct mmc_host *host = card->host; card 818 drivers/mmc/core/mmc.c if (card->csd.dsr_imp && host->dsr_req) card 866 drivers/mmc/core/mmc.c static int __mmc_select_powerclass(struct mmc_card *card, card 869 drivers/mmc/core/mmc.c struct mmc_host *host = card->host; card 870 drivers/mmc/core/mmc.c struct mmc_ext_csd *ext_csd = &card->ext_csd; card 920 drivers/mmc/core/mmc.c err = mmc_switch(card, EXT_CSD_CMD_SET_NORMAL, card 923 drivers/mmc/core/mmc.c card->ext_csd.generic_cmd6_time); card 929 drivers/mmc/core/mmc.c static int mmc_select_powerclass(struct mmc_card *card) card 931 drivers/mmc/core/mmc.c struct mmc_host *host = card->host; card 936 drivers/mmc/core/mmc.c if (!mmc_can_ext_csd(card)) card 944 drivers/mmc/core/mmc.c ddr = card->mmc_avail_type & EXT_CSD_CARD_TYPE_DDR_52; card 952 drivers/mmc/core/mmc.c err = __mmc_select_powerclass(card, ext_csd_bits); card 963 drivers/mmc/core/mmc.c static void mmc_set_bus_speed(struct mmc_card *card) card 967 drivers/mmc/core/mmc.c if ((mmc_card_hs200(card) || mmc_card_hs400(card)) && card 968 drivers/mmc/core/mmc.c max_dtr > card->ext_csd.hs200_max_dtr) card 969 drivers/mmc/core/mmc.c max_dtr = card->ext_csd.hs200_max_dtr; card 970 drivers/mmc/core/mmc.c else if (mmc_card_hs(card) && max_dtr > card->ext_csd.hs_max_dtr) card 971 drivers/mmc/core/mmc.c max_dtr = card->ext_csd.hs_max_dtr; card 972 drivers/mmc/core/mmc.c else if (max_dtr > card->csd.max_dtr) card 973 drivers/mmc/core/mmc.c max_dtr = card->csd.max_dtr; card 975 drivers/mmc/core/mmc.c mmc_set_clock(card->host, max_dtr); card 983 drivers/mmc/core/mmc.c static int mmc_select_bus_width(struct mmc_card *card) card 993 drivers/mmc/core/mmc.c struct mmc_host *host = card->host; card 997 drivers/mmc/core/mmc.c if (!mmc_can_ext_csd(card) || card 1017 drivers/mmc/core/mmc.c err = mmc_switch(card, EXT_CSD_CMD_SET_NORMAL, card 1020 drivers/mmc/core/mmc.c card->ext_csd.generic_cmd6_time); card 1033 drivers/mmc/core/mmc.c err = mmc_compare_ext_csds(card, bus_width); card 1035 drivers/mmc/core/mmc.c err = mmc_bus_test(card, bus_width); card 1052 drivers/mmc/core/mmc.c static int mmc_select_hs(struct mmc_card *card) card 1056 drivers/mmc/core/mmc.c err = __mmc_switch(card, EXT_CSD_CMD_SET_NORMAL, card 1058 drivers/mmc/core/mmc.c card->ext_csd.generic_cmd6_time, MMC_TIMING_MMC_HS, card 1062 drivers/mmc/core/mmc.c mmc_hostname(card->host), err); card 1070 drivers/mmc/core/mmc.c static int mmc_select_hs_ddr(struct mmc_card *card) card 1072 drivers/mmc/core/mmc.c struct mmc_host *host = card->host; card 1076 drivers/mmc/core/mmc.c if (!(card->mmc_avail_type & EXT_CSD_CARD_TYPE_DDR_52)) card 1086 drivers/mmc/core/mmc.c err = __mmc_switch(card, EXT_CSD_CMD_SET_NORMAL, card 1089 drivers/mmc/core/mmc.c card->ext_csd.generic_cmd6_time, card 1123 drivers/mmc/core/mmc.c if (card->mmc_avail_type & EXT_CSD_CARD_TYPE_DDR_1_2V) { card 1129 drivers/mmc/core/mmc.c if (card->mmc_avail_type & EXT_CSD_CARD_TYPE_DDR_1_8V && card 1140 drivers/mmc/core/mmc.c static int mmc_select_hs400(struct mmc_card *card) card 1142 drivers/mmc/core/mmc.c struct mmc_host *host = card->host; card 1150 drivers/mmc/core/mmc.c if (!(card->mmc_avail_type & EXT_CSD_CARD_TYPE_HS400 && card 1156 drivers/mmc/core/mmc.c err = __mmc_switch(card, EXT_CSD_CMD_SET_NORMAL, card 1158 drivers/mmc/core/mmc.c card->ext_csd.generic_cmd6_time, 0, card 1167 drivers/mmc/core/mmc.c mmc_set_timing(card->host, MMC_TIMING_MMC_HS); card 1174 drivers/mmc/core/mmc.c max_dtr = card->ext_csd.hs_max_dtr; card 1177 drivers/mmc/core/mmc.c err = mmc_switch_status(card); card 1185 drivers/mmc/core/mmc.c err = mmc_switch(card, EXT_CSD_CMD_SET_NORMAL, card 1188 drivers/mmc/core/mmc.c card->ext_csd.generic_cmd6_time); card 1197 drivers/mmc/core/mmc.c card->drive_strength << EXT_CSD_DRV_STR_SHIFT; card 1198 drivers/mmc/core/mmc.c err = __mmc_switch(card, EXT_CSD_CMD_SET_NORMAL, card 1200 drivers/mmc/core/mmc.c card->ext_csd.generic_cmd6_time, 0, card 1210 drivers/mmc/core/mmc.c mmc_set_bus_speed(card); card 1215 drivers/mmc/core/mmc.c err = mmc_switch_status(card); card 1222 drivers/mmc/core/mmc.c pr_err("%s: %s failed, error %d\n", mmc_hostname(card->host), card 1227 drivers/mmc/core/mmc.c int mmc_hs200_to_hs400(struct mmc_card *card) card 1229 drivers/mmc/core/mmc.c return mmc_select_hs400(card); card 1232 drivers/mmc/core/mmc.c int mmc_hs400_to_hs200(struct mmc_card *card) card 1234 drivers/mmc/core/mmc.c struct mmc_host *host = card->host; card 1240 drivers/mmc/core/mmc.c max_dtr = card->ext_csd.hs_max_dtr; card 1245 drivers/mmc/core/mmc.c err = __mmc_switch(card, EXT_CSD_CMD_SET_NORMAL, EXT_CSD_HS_TIMING, card 1246 drivers/mmc/core/mmc.c val, card->ext_csd.generic_cmd6_time, 0, card 1253 drivers/mmc/core/mmc.c err = mmc_switch_status(card); card 1258 drivers/mmc/core/mmc.c err = __mmc_switch(card, EXT_CSD_CMD_SET_NORMAL, EXT_CSD_BUS_WIDTH, card 1259 drivers/mmc/core/mmc.c EXT_CSD_BUS_WIDTH_8, card->ext_csd.generic_cmd6_time, card 1269 drivers/mmc/core/mmc.c err = mmc_switch_status(card); card 1275 drivers/mmc/core/mmc.c card->drive_strength << EXT_CSD_DRV_STR_SHIFT; card 1276 drivers/mmc/core/mmc.c err = __mmc_switch(card, EXT_CSD_CMD_SET_NORMAL, EXT_CSD_HS_TIMING, card 1277 drivers/mmc/core/mmc.c val, card->ext_csd.generic_cmd6_time, 0, card 1289 drivers/mmc/core/mmc.c err = __mmc_switch_status(card, false); card 1293 drivers/mmc/core/mmc.c mmc_set_bus_speed(card); card 1302 drivers/mmc/core/mmc.c pr_err("%s: %s failed, error %d\n", mmc_hostname(card->host), card 1307 drivers/mmc/core/mmc.c static void mmc_select_driver_type(struct mmc_card *card) card 1310 drivers/mmc/core/mmc.c int fixed_drv_type = card->host->fixed_drv_type; card 1312 drivers/mmc/core/mmc.c card_drv_type = card->ext_csd.raw_driver_strength | card 1319 drivers/mmc/core/mmc.c drive_strength = mmc_select_drive_strength(card, card 1320 drivers/mmc/core/mmc.c card->ext_csd.hs200_max_dtr, card 1323 drivers/mmc/core/mmc.c card->drive_strength = drive_strength; card 1326 drivers/mmc/core/mmc.c mmc_set_driver_type(card->host, drv_type); card 1329 drivers/mmc/core/mmc.c static int mmc_select_hs400es(struct mmc_card *card) card 1331 drivers/mmc/core/mmc.c struct mmc_host *host = card->host; card 1340 drivers/mmc/core/mmc.c if (card->mmc_avail_type & EXT_CSD_CARD_TYPE_HS400_1_2V) card 1343 drivers/mmc/core/mmc.c if (err && card->mmc_avail_type & EXT_CSD_CARD_TYPE_HS400_1_8V) card 1350 drivers/mmc/core/mmc.c err = mmc_select_bus_width(card); card 1359 drivers/mmc/core/mmc.c err = __mmc_switch(card, EXT_CSD_CMD_SET_NORMAL, card 1361 drivers/mmc/core/mmc.c card->ext_csd.generic_cmd6_time, 0, card 1370 drivers/mmc/core/mmc.c err = mmc_switch_status(card); card 1374 drivers/mmc/core/mmc.c mmc_set_clock(host, card->ext_csd.hs_max_dtr); card 1378 drivers/mmc/core/mmc.c err = mmc_switch(card, EXT_CSD_CMD_SET_NORMAL, card 1381 drivers/mmc/core/mmc.c card->ext_csd.generic_cmd6_time); card 1388 drivers/mmc/core/mmc.c mmc_select_driver_type(card); card 1392 drivers/mmc/core/mmc.c card->drive_strength << EXT_CSD_DRV_STR_SHIFT; card 1393 drivers/mmc/core/mmc.c err = __mmc_switch(card, EXT_CSD_CMD_SET_NORMAL, card 1395 drivers/mmc/core/mmc.c card->ext_csd.generic_cmd6_time, 0, card 1411 drivers/mmc/core/mmc.c err = mmc_switch_status(card); card 1418 drivers/mmc/core/mmc.c pr_err("%s: %s failed, error %d\n", mmc_hostname(card->host), card 1430 drivers/mmc/core/mmc.c static int mmc_select_hs200(struct mmc_card *card) card 1432 drivers/mmc/core/mmc.c struct mmc_host *host = card->host; card 1438 drivers/mmc/core/mmc.c if (card->mmc_avail_type & EXT_CSD_CARD_TYPE_HS200_1_2V) card 1441 drivers/mmc/core/mmc.c if (err && card->mmc_avail_type & EXT_CSD_CARD_TYPE_HS200_1_8V) card 1448 drivers/mmc/core/mmc.c mmc_select_driver_type(card); card 1454 drivers/mmc/core/mmc.c err = mmc_select_bus_width(card); card 1457 drivers/mmc/core/mmc.c card->drive_strength << EXT_CSD_DRV_STR_SHIFT; card 1458 drivers/mmc/core/mmc.c err = __mmc_switch(card, EXT_CSD_CMD_SET_NORMAL, card 1460 drivers/mmc/core/mmc.c card->ext_csd.generic_cmd6_time, 0, card 1472 drivers/mmc/core/mmc.c err = __mmc_switch_status(card, false); card 1487 drivers/mmc/core/mmc.c pr_err("%s: %s failed, error %d\n", mmc_hostname(card->host), card 1496 drivers/mmc/core/mmc.c static int mmc_select_timing(struct mmc_card *card) card 1500 drivers/mmc/core/mmc.c if (!mmc_can_ext_csd(card)) card 1503 drivers/mmc/core/mmc.c if (card->mmc_avail_type & EXT_CSD_CARD_TYPE_HS400ES) card 1504 drivers/mmc/core/mmc.c err = mmc_select_hs400es(card); card 1505 drivers/mmc/core/mmc.c else if (card->mmc_avail_type & EXT_CSD_CARD_TYPE_HS200) card 1506 drivers/mmc/core/mmc.c err = mmc_select_hs200(card); card 1507 drivers/mmc/core/mmc.c else if (card->mmc_avail_type & EXT_CSD_CARD_TYPE_HS) card 1508 drivers/mmc/core/mmc.c err = mmc_select_hs(card); card 1518 drivers/mmc/core/mmc.c mmc_set_bus_speed(card); card 1526 drivers/mmc/core/mmc.c static int mmc_hs200_tuning(struct mmc_card *card) card 1528 drivers/mmc/core/mmc.c struct mmc_host *host = card->host; card 1534 drivers/mmc/core/mmc.c if (card->mmc_avail_type & EXT_CSD_CARD_TYPE_HS400 && card 1539 drivers/mmc/core/mmc.c return mmc_execute_tuning(card); card 1551 drivers/mmc/core/mmc.c struct mmc_card *card; card 1600 drivers/mmc/core/mmc.c card = oldcard; card 1605 drivers/mmc/core/mmc.c card = mmc_alloc_card(host, &mmc_type); card 1606 drivers/mmc/core/mmc.c if (IS_ERR(card)) { card 1607 drivers/mmc/core/mmc.c err = PTR_ERR(card); card 1611 drivers/mmc/core/mmc.c card->ocr = ocr; card 1612 drivers/mmc/core/mmc.c card->type = MMC_TYPE_MMC; card 1613 drivers/mmc/core/mmc.c card->rca = 1; card 1614 drivers/mmc/core/mmc.c memcpy(card->raw_cid, cid, sizeof(card->raw_cid)); card 1621 drivers/mmc/core/mmc.c host->ops->init_card(host, card); card 1627 drivers/mmc/core/mmc.c err = mmc_set_relative_addr(card); card 1638 drivers/mmc/core/mmc.c err = mmc_send_csd(card, card->raw_csd); card 1642 drivers/mmc/core/mmc.c err = mmc_decode_csd(card); card 1645 drivers/mmc/core/mmc.c err = mmc_decode_cid(card); card 1654 drivers/mmc/core/mmc.c if (card->csd.dsr_imp && host->dsr_req) card 1661 drivers/mmc/core/mmc.c err = mmc_select_card(card); card 1668 drivers/mmc/core/mmc.c err = mmc_read_ext_csd(card); card 1679 drivers/mmc/core/mmc.c mmc_card_set_blockaddr(card); card 1682 drivers/mmc/core/mmc.c mmc_set_erase_size(card); card 1686 drivers/mmc/core/mmc.c if (card->ext_csd.rev >= 3) { card 1687 drivers/mmc/core/mmc.c err = mmc_switch(card, EXT_CSD_CMD_SET_NORMAL, card 1689 drivers/mmc/core/mmc.c card->ext_csd.generic_cmd6_time); card 1701 drivers/mmc/core/mmc.c card->ext_csd.enhanced_area_offset = -EINVAL; card 1702 drivers/mmc/core/mmc.c card->ext_csd.enhanced_area_size = -EINVAL; card 1704 drivers/mmc/core/mmc.c card->ext_csd.erase_group_def = 1; card 1710 drivers/mmc/core/mmc.c mmc_set_erase_size(card); card 1717 drivers/mmc/core/mmc.c if (card->ext_csd.part_config & EXT_CSD_PART_CONFIG_ACC_MASK) { card 1718 drivers/mmc/core/mmc.c card->ext_csd.part_config &= ~EXT_CSD_PART_CONFIG_ACC_MASK; card 1719 drivers/mmc/core/mmc.c err = mmc_switch(card, EXT_CSD_CMD_SET_NORMAL, EXT_CSD_PART_CONFIG, card 1720 drivers/mmc/core/mmc.c card->ext_csd.part_config, card 1721 drivers/mmc/core/mmc.c card->ext_csd.part_time); card 1729 drivers/mmc/core/mmc.c if (card->ext_csd.rev >= 6) { card 1730 drivers/mmc/core/mmc.c err = mmc_switch(card, EXT_CSD_CMD_SET_NORMAL, card 1733 drivers/mmc/core/mmc.c card->ext_csd.generic_cmd6_time); card 1742 drivers/mmc/core/mmc.c card->ext_csd.power_off_notification = EXT_CSD_POWER_ON; card 1746 drivers/mmc/core/mmc.c if (mmc_can_discard(card)) card 1747 drivers/mmc/core/mmc.c card->erase_arg = MMC_DISCARD_ARG; card 1748 drivers/mmc/core/mmc.c else if (mmc_can_trim(card)) card 1749 drivers/mmc/core/mmc.c card->erase_arg = MMC_TRIM_ARG; card 1751 drivers/mmc/core/mmc.c card->erase_arg = MMC_ERASE_ARG; card 1756 drivers/mmc/core/mmc.c err = mmc_select_timing(card); card 1760 drivers/mmc/core/mmc.c if (mmc_card_hs200(card)) { card 1761 drivers/mmc/core/mmc.c err = mmc_hs200_tuning(card); card 1765 drivers/mmc/core/mmc.c err = mmc_select_hs400(card); card 1768 drivers/mmc/core/mmc.c } else if (!mmc_card_hs400es(card)) { card 1770 drivers/mmc/core/mmc.c err = mmc_select_bus_width(card); card 1771 drivers/mmc/core/mmc.c if (err > 0 && mmc_card_hs(card)) { card 1772 drivers/mmc/core/mmc.c err = mmc_select_hs_ddr(card); card 1781 drivers/mmc/core/mmc.c mmc_select_powerclass(card); card 1786 drivers/mmc/core/mmc.c if (card->ext_csd.hpi) { card 1787 drivers/mmc/core/mmc.c err = mmc_switch(card, EXT_CSD_CMD_SET_NORMAL, card 1789 drivers/mmc/core/mmc.c card->ext_csd.generic_cmd6_time); card 1794 drivers/mmc/core/mmc.c mmc_hostname(card->host)); card 1795 drivers/mmc/core/mmc.c card->ext_csd.hpi_en = 0; card 1798 drivers/mmc/core/mmc.c card->ext_csd.hpi_en = 1; card 1809 drivers/mmc/core/mmc.c if (card->ext_csd.cache_size > 0) { card 1812 drivers/mmc/core/mmc.c timeout_ms = max(card->ext_csd.generic_cmd6_time, timeout_ms); card 1813 drivers/mmc/core/mmc.c err = mmc_switch(card, EXT_CSD_CMD_SET_NORMAL, card 1823 drivers/mmc/core/mmc.c mmc_hostname(card->host), err); card 1824 drivers/mmc/core/mmc.c card->ext_csd.cache_ctrl = 0; card 1827 drivers/mmc/core/mmc.c card->ext_csd.cache_ctrl = 1; card 1835 drivers/mmc/core/mmc.c card->ext_csd.cmdq_en = false; card 1836 drivers/mmc/core/mmc.c if (card->ext_csd.cmdq_support && host->caps2 & MMC_CAP2_CQE) { card 1837 drivers/mmc/core/mmc.c err = mmc_cmdq_enable(card); card 1842 drivers/mmc/core/mmc.c mmc_hostname(card->host)); card 1843 drivers/mmc/core/mmc.c card->ext_csd.cmdq_support = false; card 1844 drivers/mmc/core/mmc.c card->ext_csd.cmdq_depth = 0; card 1853 drivers/mmc/core/mmc.c card->reenable_cmdq = card->ext_csd.cmdq_en; card 1855 drivers/mmc/core/mmc.c if (card->ext_csd.cmdq_en && !host->cqe_enabled) { card 1856 drivers/mmc/core/mmc.c err = host->cqe_ops->cqe_enable(host, card); card 1876 drivers/mmc/core/mmc.c host->card = card; card 1882 drivers/mmc/core/mmc.c mmc_remove_card(card); card 1887 drivers/mmc/core/mmc.c static int mmc_can_sleep(struct mmc_card *card) card 1889 drivers/mmc/core/mmc.c return (card && card->ext_csd.rev >= 3); card 1895 drivers/mmc/core/mmc.c struct mmc_card *card = host->card; card 1896 drivers/mmc/core/mmc.c unsigned int timeout_ms = DIV_ROUND_UP(card->ext_csd.sa_timeout, 10000); card 1907 drivers/mmc/core/mmc.c cmd.arg = card->rca << 16; card 1944 drivers/mmc/core/mmc.c static int mmc_can_poweroff_notify(const struct mmc_card *card) card 1946 drivers/mmc/core/mmc.c return card && card 1947 drivers/mmc/core/mmc.c mmc_card_mmc(card) && card 1948 drivers/mmc/core/mmc.c (card->ext_csd.power_off_notification == EXT_CSD_POWER_ON); card 1951 drivers/mmc/core/mmc.c static int mmc_poweroff_notify(struct mmc_card *card, unsigned int notify_type) card 1953 drivers/mmc/core/mmc.c unsigned int timeout = card->ext_csd.generic_cmd6_time; card 1958 drivers/mmc/core/mmc.c timeout = card->ext_csd.power_off_longtime; card 1960 drivers/mmc/core/mmc.c err = __mmc_switch(card, EXT_CSD_CMD_SET_NORMAL, card 1965 drivers/mmc/core/mmc.c mmc_hostname(card->host), timeout); card 1968 drivers/mmc/core/mmc.c card->ext_csd.power_off_notification = EXT_CSD_NO_POWER_NOTIFICATION; card 1978 drivers/mmc/core/mmc.c mmc_remove_card(host->card); card 1979 drivers/mmc/core/mmc.c host->card = NULL; card 1987 drivers/mmc/core/mmc.c return mmc_send_status(host->card, NULL); card 1997 drivers/mmc/core/mmc.c mmc_get_card(host->card, NULL); card 2004 drivers/mmc/core/mmc.c mmc_put_card(host->card, NULL); card 2024 drivers/mmc/core/mmc.c if (mmc_card_suspended(host->card)) card 2027 drivers/mmc/core/mmc.c err = mmc_flush_cache(host->card); card 2031 drivers/mmc/core/mmc.c if (mmc_can_poweroff_notify(host->card) && card 2033 drivers/mmc/core/mmc.c err = mmc_poweroff_notify(host->card, notify_type); card 2034 drivers/mmc/core/mmc.c else if (mmc_can_sleep(host->card)) card 2041 drivers/mmc/core/mmc.c mmc_card_set_suspended(host->card); card 2057 drivers/mmc/core/mmc.c pm_runtime_disable(&host->card->dev); card 2058 drivers/mmc/core/mmc.c pm_runtime_set_suspended(&host->card->dev); card 2074 drivers/mmc/core/mmc.c if (!mmc_card_suspended(host->card)) card 2077 drivers/mmc/core/mmc.c mmc_power_up(host, host->card->ocr); card 2078 drivers/mmc/core/mmc.c err = mmc_init_card(host, host->card->ocr, host->card); card 2079 drivers/mmc/core/mmc.c mmc_card_clr_suspended(host->card); card 2097 drivers/mmc/core/mmc.c if (mmc_can_poweroff_notify(host->card) && card 2112 drivers/mmc/core/mmc.c pm_runtime_enable(&host->card->dev); card 2149 drivers/mmc/core/mmc.c static int mmc_can_reset(struct mmc_card *card) card 2153 drivers/mmc/core/mmc.c rst_n_function = card->ext_csd.rst_n_function; card 2161 drivers/mmc/core/mmc.c struct mmc_card *card = host->card; card 2167 drivers/mmc/core/mmc.c mmc_flush_cache(host->card); card 2170 drivers/mmc/core/mmc.c mmc_can_reset(card)) { card 2178 drivers/mmc/core/mmc.c mmc_power_cycle(host, card->ocr); card 2181 drivers/mmc/core/mmc.c return mmc_init_card(host, card->ocr, card); card 2245 drivers/mmc/core/mmc.c err = mmc_add_card(host->card); card 2253 drivers/mmc/core/mmc.c mmc_remove_card(host->card); card 2255 drivers/mmc/core/mmc.c host->card = NULL; card 54 drivers/mmc/core/mmc_ops.c int __mmc_send_status(struct mmc_card *card, u32 *status, unsigned int retries) card 60 drivers/mmc/core/mmc_ops.c if (!mmc_host_is_spi(card->host)) card 61 drivers/mmc/core/mmc_ops.c cmd.arg = card->rca << 16; card 64 drivers/mmc/core/mmc_ops.c err = mmc_wait_for_cmd(card->host, &cmd, retries); card 78 drivers/mmc/core/mmc_ops.c int mmc_send_status(struct mmc_card *card, u32 *status) card 80 drivers/mmc/core/mmc_ops.c return __mmc_send_status(card, status, MMC_CMD_RETRIES); card 84 drivers/mmc/core/mmc_ops.c static int _mmc_select_card(struct mmc_host *host, struct mmc_card *card) card 90 drivers/mmc/core/mmc_ops.c if (card) { card 91 drivers/mmc/core/mmc_ops.c cmd.arg = card->rca << 16; card 101 drivers/mmc/core/mmc_ops.c int mmc_select_card(struct mmc_card *card) card 104 drivers/mmc/core/mmc_ops.c return _mmc_select_card(card->host, card); card 213 drivers/mmc/core/mmc_ops.c int mmc_set_relative_addr(struct mmc_card *card) card 218 drivers/mmc/core/mmc_ops.c cmd.arg = card->rca << 16; card 221 drivers/mmc/core/mmc_ops.c return mmc_wait_for_cmd(card->host, &cmd, MMC_CMD_RETRIES); card 248 drivers/mmc/core/mmc_ops.c mmc_send_cxd_data(struct mmc_card *card, struct mmc_host *host, card 285 drivers/mmc/core/mmc_ops.c mmc_set_data_timeout(&data, card); card 297 drivers/mmc/core/mmc_ops.c static int mmc_spi_send_csd(struct mmc_card *card, u32 *csd) card 306 drivers/mmc/core/mmc_ops.c ret = mmc_send_cxd_data(card, card->host, MMC_SEND_CSD, csd_tmp, 16); card 318 drivers/mmc/core/mmc_ops.c int mmc_send_csd(struct mmc_card *card, u32 *csd) card 320 drivers/mmc/core/mmc_ops.c if (mmc_host_is_spi(card->host)) card 321 drivers/mmc/core/mmc_ops.c return mmc_spi_send_csd(card, csd); card 323 drivers/mmc/core/mmc_ops.c return mmc_send_cxd_native(card->host, card->rca << 16, csd, card 356 drivers/mmc/core/mmc_ops.c int mmc_get_ext_csd(struct mmc_card *card, u8 **new_ext_csd) card 361 drivers/mmc/core/mmc_ops.c if (!card || !new_ext_csd) card 364 drivers/mmc/core/mmc_ops.c if (!mmc_can_ext_csd(card)) card 375 drivers/mmc/core/mmc_ops.c err = mmc_send_cxd_data(card, card->host, MMC_SEND_EXT_CSD, ext_csd, card 432 drivers/mmc/core/mmc_ops.c int __mmc_switch_status(struct mmc_card *card, bool crc_err_fatal) card 437 drivers/mmc/core/mmc_ops.c err = mmc_send_status(card, &status); card 443 drivers/mmc/core/mmc_ops.c return mmc_switch_status_error(card->host, status); card 446 drivers/mmc/core/mmc_ops.c int mmc_switch_status(struct mmc_card *card) card 448 drivers/mmc/core/mmc_ops.c return __mmc_switch_status(card, true); card 451 drivers/mmc/core/mmc_ops.c static int mmc_poll_for_busy(struct mmc_card *card, unsigned int timeout_ms, card 454 drivers/mmc/core/mmc_ops.c struct mmc_host *host = card->host; card 486 drivers/mmc/core/mmc_ops.c err = mmc_send_status(card, &status); card 525 drivers/mmc/core/mmc_ops.c int __mmc_switch(struct mmc_card *card, u8 set, u8 index, u8 value, card 529 drivers/mmc/core/mmc_ops.c struct mmc_host *host = card->host; card 583 drivers/mmc/core/mmc_ops.c err = mmc_poll_for_busy(card, timeout_ms, send_status, retry_crc_err); card 593 drivers/mmc/core/mmc_ops.c err = mmc_switch_status(card); card 603 drivers/mmc/core/mmc_ops.c int mmc_switch(struct mmc_card *card, u8 set, u8 index, u8 value, card 606 drivers/mmc/core/mmc_ops.c return __mmc_switch(card, set, index, value, timeout_ms, 0, card 706 drivers/mmc/core/mmc_ops.c mmc_send_bus_test(struct mmc_card *card, struct mmc_host *host, u8 opcode, card 761 drivers/mmc/core/mmc_ops.c mmc_set_data_timeout(&data, card); card 782 drivers/mmc/core/mmc_ops.c int mmc_bus_test(struct mmc_card *card, u8 bus_width) card 799 drivers/mmc/core/mmc_ops.c mmc_send_bus_test(card, card->host, MMC_BUS_TEST_W, width); card 800 drivers/mmc/core/mmc_ops.c return mmc_send_bus_test(card, card->host, MMC_BUS_TEST_R, width); card 803 drivers/mmc/core/mmc_ops.c static int mmc_send_hpi_cmd(struct mmc_card *card, u32 *status) card 809 drivers/mmc/core/mmc_ops.c opcode = card->ext_csd.hpi_cmd; card 816 drivers/mmc/core/mmc_ops.c cmd.arg = card->rca << 16 | 1; card 818 drivers/mmc/core/mmc_ops.c err = mmc_wait_for_cmd(card->host, &cmd, 0); card 821 drivers/mmc/core/mmc_ops.c "HPI command response %#x\n", mmc_hostname(card->host), card 838 drivers/mmc/core/mmc_ops.c int mmc_interrupt_hpi(struct mmc_card *card) card 844 drivers/mmc/core/mmc_ops.c if (!card->ext_csd.hpi_en) { card 845 drivers/mmc/core/mmc_ops.c pr_info("%s: HPI enable bit unset\n", mmc_hostname(card->host)); card 849 drivers/mmc/core/mmc_ops.c err = mmc_send_status(card, &status); card 851 drivers/mmc/core/mmc_ops.c pr_err("%s: Get card status fail\n", mmc_hostname(card->host)); card 870 drivers/mmc/core/mmc_ops.c mmc_hostname(card->host), R1_CURRENT_STATE(status)); card 875 drivers/mmc/core/mmc_ops.c err = mmc_send_hpi_cmd(card, &status); card 879 drivers/mmc/core/mmc_ops.c prg_wait = jiffies + msecs_to_jiffies(card->ext_csd.out_of_int_time); card 881 drivers/mmc/core/mmc_ops.c err = mmc_send_status(card, &status); card 893 drivers/mmc/core/mmc_ops.c int mmc_can_ext_csd(struct mmc_card *card) card 895 drivers/mmc/core/mmc_ops.c return (card && card->csd.mmca_vsn > CSD_SPEC_VER_3); card 898 drivers/mmc/core/mmc_ops.c static int mmc_read_bkops_status(struct mmc_card *card) card 903 drivers/mmc/core/mmc_ops.c err = mmc_get_ext_csd(card, &ext_csd); card 907 drivers/mmc/core/mmc_ops.c card->ext_csd.raw_bkops_status = ext_csd[EXT_CSD_BKOPS_STATUS]; card 908 drivers/mmc/core/mmc_ops.c card->ext_csd.raw_exception_status = ext_csd[EXT_CSD_EXP_EVENTS_STATUS]; card 920 drivers/mmc/core/mmc_ops.c void mmc_run_bkops(struct mmc_card *card) card 924 drivers/mmc/core/mmc_ops.c if (!card->ext_csd.man_bkops_en) card 927 drivers/mmc/core/mmc_ops.c err = mmc_read_bkops_status(card); card 930 drivers/mmc/core/mmc_ops.c mmc_hostname(card->host), err); card 934 drivers/mmc/core/mmc_ops.c if (!card->ext_csd.raw_bkops_status || card 935 drivers/mmc/core/mmc_ops.c card->ext_csd.raw_bkops_status < EXT_CSD_BKOPS_LEVEL_2) card 938 drivers/mmc/core/mmc_ops.c mmc_retune_hold(card->host); card 945 drivers/mmc/core/mmc_ops.c err = mmc_switch(card, EXT_CSD_CMD_SET_NORMAL, card 949 drivers/mmc/core/mmc_ops.c mmc_hostname(card->host), err); card 951 drivers/mmc/core/mmc_ops.c mmc_retune_release(card->host); card 958 drivers/mmc/core/mmc_ops.c int mmc_flush_cache(struct mmc_card *card) card 962 drivers/mmc/core/mmc_ops.c if (mmc_card_mmc(card) && card 963 drivers/mmc/core/mmc_ops.c (card->ext_csd.cache_size > 0) && card 964 drivers/mmc/core/mmc_ops.c (card->ext_csd.cache_ctrl & 1)) { card 965 drivers/mmc/core/mmc_ops.c err = mmc_switch(card, EXT_CSD_CMD_SET_NORMAL, card 969 drivers/mmc/core/mmc_ops.c mmc_hostname(card->host), err); card 976 drivers/mmc/core/mmc_ops.c static int mmc_cmdq_switch(struct mmc_card *card, bool enable) card 981 drivers/mmc/core/mmc_ops.c if (!card->ext_csd.cmdq_support) card 984 drivers/mmc/core/mmc_ops.c err = mmc_switch(card, EXT_CSD_CMD_SET_NORMAL, EXT_CSD_CMDQ_MODE_EN, card 985 drivers/mmc/core/mmc_ops.c val, card->ext_csd.generic_cmd6_time); card 987 drivers/mmc/core/mmc_ops.c card->ext_csd.cmdq_en = enable; card 992 drivers/mmc/core/mmc_ops.c int mmc_cmdq_enable(struct mmc_card *card) card 994 drivers/mmc/core/mmc_ops.c return mmc_cmdq_switch(card, true); card 998 drivers/mmc/core/mmc_ops.c int mmc_cmdq_disable(struct mmc_card *card) card 1000 drivers/mmc/core/mmc_ops.c return mmc_cmdq_switch(card, false); card 16 drivers/mmc/core/mmc_ops.h int mmc_select_card(struct mmc_card *card); card 21 drivers/mmc/core/mmc_ops.h int mmc_set_relative_addr(struct mmc_card *card); card 22 drivers/mmc/core/mmc_ops.h int mmc_send_csd(struct mmc_card *card, u32 *csd); card 23 drivers/mmc/core/mmc_ops.h int __mmc_send_status(struct mmc_card *card, u32 *status, unsigned int retries); card 24 drivers/mmc/core/mmc_ops.h int mmc_send_status(struct mmc_card *card, u32 *status); card 28 drivers/mmc/core/mmc_ops.h int mmc_bus_test(struct mmc_card *card, u8 bus_width); card 29 drivers/mmc/core/mmc_ops.h int mmc_interrupt_hpi(struct mmc_card *card); card 30 drivers/mmc/core/mmc_ops.h int mmc_can_ext_csd(struct mmc_card *card); card 31 drivers/mmc/core/mmc_ops.h int mmc_get_ext_csd(struct mmc_card *card, u8 **new_ext_csd); card 32 drivers/mmc/core/mmc_ops.h int mmc_switch_status(struct mmc_card *card); card 33 drivers/mmc/core/mmc_ops.h int __mmc_switch_status(struct mmc_card *card, bool crc_err_fatal); card 34 drivers/mmc/core/mmc_ops.h int __mmc_switch(struct mmc_card *card, u8 set, u8 index, u8 value, card 37 drivers/mmc/core/mmc_ops.h int mmc_switch(struct mmc_card *card, u8 set, u8 index, u8 value, card 39 drivers/mmc/core/mmc_ops.h void mmc_run_bkops(struct mmc_card *card); card 40 drivers/mmc/core/mmc_ops.h int mmc_flush_cache(struct mmc_card *card); card 41 drivers/mmc/core/mmc_ops.h int mmc_cmdq_enable(struct mmc_card *card); card 42 drivers/mmc/core/mmc_ops.h int mmc_cmdq_disable(struct mmc_card *card); card 115 drivers/mmc/core/mmc_test.c struct mmc_card *card; card 129 drivers/mmc/core/mmc_test.c struct mmc_card *card; card 143 drivers/mmc/core/mmc_test.c struct mmc_card *card; card 179 drivers/mmc/core/mmc_test.c return mmc_set_blocklen(test->card, size); card 182 drivers/mmc/core/mmc_test.c static bool mmc_test_card_cmd23(struct mmc_card *card) card 184 drivers/mmc/core/mmc_test.c return mmc_card_mmc(card) || card 185 drivers/mmc/core/mmc_test.c (mmc_card_sd(card) && card->scr.cmds & SD_SCR_CMD23_SUPPORT); card 191 drivers/mmc/core/mmc_test.c struct mmc_card *card = test->card; card 193 drivers/mmc/core/mmc_test.c if (!mrq->sbc || !mmc_host_cmd23(card->host) || card 194 drivers/mmc/core/mmc_test.c !mmc_test_card_cmd23(card) || !mmc_op_multi(mrq->cmd->opcode) || card 195 drivers/mmc/core/mmc_test.c (card->quirks & MMC_QUIRK_BLK_NO_CMD23)) { card 224 drivers/mmc/core/mmc_test.c if (!mmc_card_blockaddr(test->card)) card 245 drivers/mmc/core/mmc_test.c mmc_set_data_timeout(mrq->data, test->card); card 267 drivers/mmc/core/mmc_test.c cmd.arg = test->card->rca << 16; card 270 drivers/mmc/core/mmc_test.c ret = mmc_wait_for_cmd(test->card->host, &cmd, 0); card 276 drivers/mmc/core/mmc_test.c if (test->card->host->caps & MMC_CAP_WAIT_WHILE_BUSY) card 278 drivers/mmc/core/mmc_test.c mmc_hostname(test->card->host)); card 306 drivers/mmc/core/mmc_test.c mmc_wait_for_req(test->card->host, &mrq); card 570 drivers/mmc/core/mmc_test.c mmc_hostname(test->card->host), sectors, sectors >> 1, card 597 drivers/mmc/core/mmc_test.c mmc_hostname(test->card->host), count, sectors, count, card 609 drivers/mmc/core/mmc_test.c static unsigned int mmc_test_capacity(struct mmc_card *card) card 611 drivers/mmc/core/mmc_test.c if (!mmc_card_sd(card) && mmc_card_blockaddr(card)) card 612 drivers/mmc/core/mmc_test.c return card->ext_csd.sectors; card 614 drivers/mmc/core/mmc_test.c return card->csd.capacity << (card->csd.read_blkbits - 9); card 697 drivers/mmc/core/mmc_test.c mrq->cmd->arg = test->card->rca << 16; card 807 drivers/mmc/core/mmc_test.c struct mmc_host *host = test->card->host; card 899 drivers/mmc/core/mmc_test.c mmc_wait_for_req(test->card->host, &mrq); card 928 drivers/mmc/core/mmc_test.c mmc_wait_for_req(test->card->host, &mrq); card 1075 drivers/mmc/core/mmc_test.c if (test->card->host->max_blk_count == 1) card 1079 drivers/mmc/core/mmc_test.c size = min(size, test->card->host->max_req_size); card 1080 drivers/mmc/core/mmc_test.c size = min(size, test->card->host->max_seg_size); card 1081 drivers/mmc/core/mmc_test.c size = min(size, test->card->host->max_blk_count * 512); card 1096 drivers/mmc/core/mmc_test.c if (test->card->host->max_blk_count == 1) card 1100 drivers/mmc/core/mmc_test.c size = min(size, test->card->host->max_req_size); card 1101 drivers/mmc/core/mmc_test.c size = min(size, test->card->host->max_seg_size); card 1102 drivers/mmc/core/mmc_test.c size = min(size, test->card->host->max_blk_count * 512); card 1117 drivers/mmc/core/mmc_test.c if (!test->card->csd.write_partial) card 1135 drivers/mmc/core/mmc_test.c if (!test->card->csd.read_partial) card 1153 drivers/mmc/core/mmc_test.c if (!test->card->csd.write_partial) card 1171 drivers/mmc/core/mmc_test.c if (!test->card->csd.read_partial) card 1220 drivers/mmc/core/mmc_test.c if (test->card->host->max_blk_count == 1) card 1224 drivers/mmc/core/mmc_test.c size = min(size, test->card->host->max_req_size); card 1225 drivers/mmc/core/mmc_test.c size = min(size, test->card->host->max_seg_size); card 1226 drivers/mmc/core/mmc_test.c size = min(size, test->card->host->max_blk_count * 512); card 1247 drivers/mmc/core/mmc_test.c if (test->card->host->max_blk_count == 1) card 1251 drivers/mmc/core/mmc_test.c size = min(size, test->card->host->max_req_size); card 1252 drivers/mmc/core/mmc_test.c size = min(size, test->card->host->max_seg_size); card 1253 drivers/mmc/core/mmc_test.c size = min(size, test->card->host->max_blk_count * 512); card 1294 drivers/mmc/core/mmc_test.c if (test->card->host->max_blk_count == 1) card 1308 drivers/mmc/core/mmc_test.c if (test->card->host->max_blk_count == 1) card 1345 drivers/mmc/core/mmc_test.c if (test->card->host->max_blk_count == 1) card 1349 drivers/mmc/core/mmc_test.c size = min(size, test->card->host->max_req_size); card 1350 drivers/mmc/core/mmc_test.c size = min(size, test->card->host->max_seg_size); card 1351 drivers/mmc/core/mmc_test.c size = min(size, test->card->host->max_blk_count * 512); card 1367 drivers/mmc/core/mmc_test.c if (test->card->host->max_blk_count == 1) card 1371 drivers/mmc/core/mmc_test.c size = min(size, test->card->host->max_req_size); card 1372 drivers/mmc/core/mmc_test.c size = min(size, test->card->host->max_seg_size); card 1373 drivers/mmc/core/mmc_test.c size = min(size, test->card->host->max_blk_count * 512); card 1389 drivers/mmc/core/mmc_test.c mmc_hostname(test->card->host)); card 1416 drivers/mmc/core/mmc_test.c mmc_hostname(test->card->host)); card 1513 drivers/mmc/core/mmc_test.c if (!mmc_can_erase(test->card)) card 1516 drivers/mmc/core/mmc_test.c return mmc_erase(test->card, t->dev_addr, t->max_sz >> 9, card 1551 drivers/mmc/core/mmc_test.c sz = (unsigned long)test->card->pref_erase << 9; card 1558 drivers/mmc/core/mmc_test.c t->max_segs = test->card->host->max_segs; card 1559 drivers/mmc/core/mmc_test.c t->max_seg_sz = test->card->host->max_seg_size; card 1563 drivers/mmc/core/mmc_test.c if (t->max_tfr >> 9 > test->card->host->max_blk_count) card 1564 drivers/mmc/core/mmc_test.c t->max_tfr = test->card->host->max_blk_count << 9; card 1565 drivers/mmc/core/mmc_test.c if (t->max_tfr > test->card->host->max_req_size) card 1566 drivers/mmc/core/mmc_test.c t->max_tfr = test->card->host->max_req_size; card 1587 drivers/mmc/core/mmc_test.c t->dev_addr = mmc_test_capacity(test->card) / 2; card 1741 drivers/mmc/core/mmc_test.c if (!mmc_can_trim(test->card)) card 1744 drivers/mmc/core/mmc_test.c if (!mmc_can_erase(test->card)) card 1750 drivers/mmc/core/mmc_test.c ret = mmc_erase(test->card, dev_addr, sz >> 9, MMC_TRIM_ARG); card 1758 drivers/mmc/core/mmc_test.c ret = mmc_erase(test->card, dev_addr, sz >> 9, MMC_TRIM_ARG); card 1858 drivers/mmc/core/mmc_test.c if (!mmc_can_trim(test->card)) card 1861 drivers/mmc/core/mmc_test.c if (!mmc_can_erase(test->card)) card 1875 drivers/mmc/core/mmc_test.c ret = mmc_erase(test->card, dev_addr, sz >> 9, card 1908 drivers/mmc/core/mmc_test.c rnd_addr = mmc_test_capacity(test->card) / 4; card 1909 drivers/mmc/core/mmc_test.c range1 = rnd_addr / test->card->pref_erase; card 1922 drivers/mmc/core/mmc_test.c dev_addr = rnd_addr + test->card->pref_erase * ea + card 2010 drivers/mmc/core/mmc_test.c dev_addr = mmc_test_capacity(test->card) / 4; card 2080 drivers/mmc/core/mmc_test.c if (size > mmc_test_capacity(test->card) / 2 * 512) card 2081 drivers/mmc/core/mmc_test.c size = mmc_test_capacity(test->card) / 2 * 512; card 2084 drivers/mmc/core/mmc_test.c dev_addr = mmc_test_capacity(test->card) / 4; card 2096 drivers/mmc/core/mmc_test.c if (mmc_can_erase(test->card) && card 2098 drivers/mmc/core/mmc_test.c ret = mmc_erase(test->card, dev_addr, card 2101 drivers/mmc/core/mmc_test.c ret = mmc_erase(test->card, dev_addr, card 2125 drivers/mmc/core/mmc_test.c void *pre_req = test->card->host->ops->pre_req; card 2126 drivers/mmc/core/mmc_test.c void *post_req = test->card->host->ops->post_req; card 2314 drivers/mmc/core/mmc_test.c struct mmc_card *card = test->card; card 2315 drivers/mmc/core/mmc_test.c struct mmc_host *host = card->host; card 2324 drivers/mmc/core/mmc_test.c if (card->ext_csd.cmdq_en) card 2325 drivers/mmc/core/mmc_test.c mmc_cmdq_disable(card); card 2340 drivers/mmc/core/mmc_test.c if (!mmc_host_is_spi(test->card->host)) card 2341 drivers/mmc/core/mmc_test.c cmd->arg = test->card->rca << 16; card 2344 drivers/mmc/core/mmc_test.c return mmc_wait_for_cmd(test->card->host, cmd, 0); card 2352 drivers/mmc/core/mmc_test.c struct mmc_host *host = test->card->host; card 2419 drivers/mmc/core/mmc_test.c mmc_wait_for_req_done(test->card->host, mrq); card 2438 drivers/mmc/core/mmc_test.c mmc_hostname(test->card->host), status, cmd_ret); card 2451 drivers/mmc/core/mmc_test.c mmc_hostname(test->card->host), count, t->blocks); card 2468 drivers/mmc/core/mmc_test.c if (!(test->card->host->caps & MMC_CAP_CMD_DURING_TFR)) card 2928 drivers/mmc/core/mmc_test.c mmc_hostname(test->card->host), mmc_card_id(test->card)); card 2930 drivers/mmc/core/mmc_test.c mmc_claim_host(test->card->host); card 2939 drivers/mmc/core/mmc_test.c mmc_hostname(test->card->host), i + 1, card 2946 drivers/mmc/core/mmc_test.c mmc_hostname(test->card->host), card 2957 drivers/mmc/core/mmc_test.c gr->card = test->card; card 2974 drivers/mmc/core/mmc_test.c mmc_hostname(test->card->host)); card 2978 drivers/mmc/core/mmc_test.c mmc_hostname(test->card->host)); card 2982 drivers/mmc/core/mmc_test.c mmc_hostname(test->card->host)); card 2986 drivers/mmc/core/mmc_test.c mmc_hostname(test->card->host)); card 2990 drivers/mmc/core/mmc_test.c mmc_hostname(test->card->host), ret); card 3001 drivers/mmc/core/mmc_test.c mmc_hostname(test->card->host), card 3007 drivers/mmc/core/mmc_test.c mmc_release_host(test->card->host); card 3010 drivers/mmc/core/mmc_test.c mmc_hostname(test->card->host)); card 3013 drivers/mmc/core/mmc_test.c static void mmc_test_free_result(struct mmc_card *card) card 3022 drivers/mmc/core/mmc_test.c if (card && gr->card != card) card 3041 drivers/mmc/core/mmc_test.c struct mmc_card *card = (struct mmc_card *)sf->private; card 3049 drivers/mmc/core/mmc_test.c if (gr->card != card) card 3076 drivers/mmc/core/mmc_test.c struct mmc_card *card = (struct mmc_card *)sf->private; card 3093 drivers/mmc/core/mmc_test.c mmc_test_free_result(card); card 3095 drivers/mmc/core/mmc_test.c test->card = card; card 3146 drivers/mmc/core/mmc_test.c static void mmc_test_free_dbgfs_file(struct mmc_card *card) card 3153 drivers/mmc/core/mmc_test.c if (card && df->card != card) card 3163 drivers/mmc/core/mmc_test.c static int __mmc_test_register_dbgfs_file(struct mmc_card *card, card 3169 drivers/mmc/core/mmc_test.c if (card->debugfs_root) card 3170 drivers/mmc/core/mmc_test.c debugfs_create_file(name, mode, card->debugfs_root, card, fops); card 3178 drivers/mmc/core/mmc_test.c df->card = card; card 3185 drivers/mmc/core/mmc_test.c static int mmc_test_register_dbgfs_file(struct mmc_card *card) card 3191 drivers/mmc/core/mmc_test.c ret = __mmc_test_register_dbgfs_file(card, "test", S_IWUSR | S_IRUGO, card 3196 drivers/mmc/core/mmc_test.c ret = __mmc_test_register_dbgfs_file(card, "testlist", S_IRUGO, card 3207 drivers/mmc/core/mmc_test.c static int mmc_test_probe(struct mmc_card *card) card 3211 drivers/mmc/core/mmc_test.c if (!mmc_card_mmc(card) && !mmc_card_sd(card)) card 3214 drivers/mmc/core/mmc_test.c ret = mmc_test_register_dbgfs_file(card); card 3218 drivers/mmc/core/mmc_test.c if (card->ext_csd.cmdq_en) { card 3219 drivers/mmc/core/mmc_test.c mmc_claim_host(card->host); card 3220 drivers/mmc/core/mmc_test.c ret = mmc_cmdq_disable(card); card 3221 drivers/mmc/core/mmc_test.c mmc_release_host(card->host); card 3226 drivers/mmc/core/mmc_test.c dev_info(&card->dev, "Card claimed for testing.\n"); card 3231 drivers/mmc/core/mmc_test.c static void mmc_test_remove(struct mmc_card *card) card 3233 drivers/mmc/core/mmc_test.c if (card->reenable_cmdq) { card 3234 drivers/mmc/core/mmc_test.c mmc_claim_host(card->host); card 3235 drivers/mmc/core/mmc_test.c mmc_cmdq_enable(card); card 3236 drivers/mmc/core/mmc_test.c mmc_release_host(card->host); card 3238 drivers/mmc/core/mmc_test.c mmc_test_free_result(card); card 3239 drivers/mmc/core/mmc_test.c mmc_test_free_dbgfs_file(card); card 3242 drivers/mmc/core/mmc_test.c static void mmc_test_shutdown(struct mmc_card *card) card 63 drivers/mmc/core/queue.c struct mmc_host *host = mq->card->host; card 101 drivers/mmc/core/queue.c struct mmc_host *host = mq->card->host; card 142 drivers/mmc/core/queue.c mmc_get_card(mq->card, &mq->ctx); card 157 drivers/mmc/core/queue.c mmc_put_card(mq->card, &mq->ctx); card 174 drivers/mmc/core/queue.c struct mmc_card *card) card 178 drivers/mmc/core/queue.c max_discard = mmc_calc_max_discard(card); card 184 drivers/mmc/core/queue.c q->limits.discard_granularity = card->pref_erase << 9; card 186 drivers/mmc/core/queue.c if (card->pref_erase > max_discard) card 188 drivers/mmc/core/queue.c if (mmc_can_secure_erase_trim(card)) card 208 drivers/mmc/core/queue.c struct mmc_card *card = mq->card; card 209 drivers/mmc/core/queue.c struct mmc_host *host = card->host; card 246 drivers/mmc/core/queue.c struct mmc_card *card = mq->card; card 247 drivers/mmc/core/queue.c struct mmc_host *host = card->host; card 253 drivers/mmc/core/queue.c if (mmc_card_removed(mq->card)) { card 304 drivers/mmc/core/queue.c mmc_get_card(card, &mq->ctx); card 337 drivers/mmc/core/queue.c mmc_put_card(card, &mq->ctx); card 353 drivers/mmc/core/queue.c static void mmc_setup_queue(struct mmc_queue *mq, struct mmc_card *card) card 355 drivers/mmc/core/queue.c struct mmc_host *host = card->host; card 360 drivers/mmc/core/queue.c if (mmc_can_erase(card)) card 361 drivers/mmc/core/queue.c mmc_queue_setup_discard(mq->queue, card); card 373 drivers/mmc/core/queue.c if (mmc_card_mmc(card)) card 374 drivers/mmc/core/queue.c block_size = card->ext_csd.data_sector_size; card 411 drivers/mmc/core/queue.c int mmc_init_queue(struct mmc_queue *mq, struct mmc_card *card) card 413 drivers/mmc/core/queue.c struct mmc_host *host = card->host; card 416 drivers/mmc/core/queue.c mq->card = card; card 429 drivers/mmc/core/queue.c min_t(int, card->ext_csd.cmdq_depth, host->cqe_qdepth); card 467 drivers/mmc/core/queue.c mmc_setup_queue(mq, card); card 483 drivers/mmc/core/queue.c mmc_claim_host(mq->card->host); card 484 drivers/mmc/core/queue.c mmc_release_host(mq->card->host); card 513 drivers/mmc/core/queue.c mq->card = NULL; card 75 drivers/mmc/core/queue.h struct mmc_card *card; card 148 drivers/mmc/core/quirks.h static inline void mmc_fixup_device(struct mmc_card *card, card 152 drivers/mmc/core/quirks.h u64 rev = cid_rev_card(card); card 156 drivers/mmc/core/quirks.h f->manfid == card->cid.manfid) && card 158 drivers/mmc/core/quirks.h f->oemid == card->cid.oemid) && card 160 drivers/mmc/core/quirks.h !strncmp(f->name, card->cid.prod_name, card 161 drivers/mmc/core/quirks.h sizeof(card->cid.prod_name))) && card 162 drivers/mmc/core/quirks.h (f->cis_vendor == card->cis.vendor || card 164 drivers/mmc/core/quirks.h (f->cis_device == card->cis.device || card 167 drivers/mmc/core/quirks.h f->ext_csd_rev == card->ext_csd.rev) && card 169 drivers/mmc/core/quirks.h dev_dbg(&card->dev, "calling %ps\n", f->vendor_fixup); card 170 drivers/mmc/core/quirks.h f->vendor_fixup(card, f->data); card 72 drivers/mmc/core/sd.c void mmc_decode_cid(struct mmc_card *card) card 74 drivers/mmc/core/sd.c u32 *resp = card->raw_cid; card 80 drivers/mmc/core/sd.c card->cid.manfid = UNSTUFF_BITS(resp, 120, 8); card 81 drivers/mmc/core/sd.c card->cid.oemid = UNSTUFF_BITS(resp, 104, 16); card 82 drivers/mmc/core/sd.c card->cid.prod_name[0] = UNSTUFF_BITS(resp, 96, 8); card 83 drivers/mmc/core/sd.c card->cid.prod_name[1] = UNSTUFF_BITS(resp, 88, 8); card 84 drivers/mmc/core/sd.c card->cid.prod_name[2] = UNSTUFF_BITS(resp, 80, 8); card 85 drivers/mmc/core/sd.c card->cid.prod_name[3] = UNSTUFF_BITS(resp, 72, 8); card 86 drivers/mmc/core/sd.c card->cid.prod_name[4] = UNSTUFF_BITS(resp, 64, 8); card 87 drivers/mmc/core/sd.c card->cid.hwrev = UNSTUFF_BITS(resp, 60, 4); card 88 drivers/mmc/core/sd.c card->cid.fwrev = UNSTUFF_BITS(resp, 56, 4); card 89 drivers/mmc/core/sd.c card->cid.serial = UNSTUFF_BITS(resp, 24, 32); card 90 drivers/mmc/core/sd.c card->cid.year = UNSTUFF_BITS(resp, 12, 8); card 91 drivers/mmc/core/sd.c card->cid.month = UNSTUFF_BITS(resp, 8, 4); card 93 drivers/mmc/core/sd.c card->cid.year += 2000; /* SD cards year offset */ card 99 drivers/mmc/core/sd.c static int mmc_decode_csd(struct mmc_card *card) card 101 drivers/mmc/core/sd.c struct mmc_csd *csd = &card->csd; card 103 drivers/mmc/core/sd.c u32 *resp = card->raw_csd; card 146 drivers/mmc/core/sd.c mmc_card_set_blockaddr(card); card 159 drivers/mmc/core/sd.c mmc_card_set_ext_capacity(card); card 175 drivers/mmc/core/sd.c mmc_hostname(card->host), csd_struct); card 179 drivers/mmc/core/sd.c card->erase_size = csd->erase_size; card 187 drivers/mmc/core/sd.c static int mmc_decode_scr(struct mmc_card *card) card 189 drivers/mmc/core/sd.c struct sd_scr *scr = &card->scr; card 193 drivers/mmc/core/sd.c resp[3] = card->raw_scr[1]; card 194 drivers/mmc/core/sd.c resp[2] = card->raw_scr[0]; card 199 drivers/mmc/core/sd.c mmc_hostname(card->host), scr_struct); card 215 drivers/mmc/core/sd.c card->erased_byte = 0xFF; card 217 drivers/mmc/core/sd.c card->erased_byte = 0x0; card 225 drivers/mmc/core/sd.c pr_err("%s: invalid bus width\n", mmc_hostname(card->host)); card 235 drivers/mmc/core/sd.c static int mmc_read_ssr(struct mmc_card *card) card 243 drivers/mmc/core/sd.c if (!(card->csd.cmdclass & CCC_APP_SPEC)) { card 245 drivers/mmc/core/sd.c mmc_hostname(card->host)); card 249 drivers/mmc/core/sd.c raw_ssr = kmalloc(sizeof(card->raw_ssr), GFP_KERNEL); card 253 drivers/mmc/core/sd.c if (mmc_app_sd_status(card, raw_ssr)) { card 255 drivers/mmc/core/sd.c mmc_hostname(card->host)); card 261 drivers/mmc/core/sd.c card->raw_ssr[i] = be32_to_cpu(raw_ssr[i]); card 269 drivers/mmc/core/sd.c au = UNSTUFF_BITS(card->raw_ssr, 428 - 384, 4); card 271 drivers/mmc/core/sd.c if (au <= 9 || card->scr.sda_spec3) { card 272 drivers/mmc/core/sd.c card->ssr.au = sd_au_size[au]; card 273 drivers/mmc/core/sd.c es = UNSTUFF_BITS(card->raw_ssr, 408 - 384, 16); card 274 drivers/mmc/core/sd.c et = UNSTUFF_BITS(card->raw_ssr, 402 - 384, 6); card 276 drivers/mmc/core/sd.c eo = UNSTUFF_BITS(card->raw_ssr, 400 - 384, 2); card 277 drivers/mmc/core/sd.c card->ssr.erase_timeout = (et * 1000) / es; card 278 drivers/mmc/core/sd.c card->ssr.erase_offset = eo * 1000; card 282 drivers/mmc/core/sd.c mmc_hostname(card->host)); card 289 drivers/mmc/core/sd.c resp[3] = card->raw_ssr[6]; card 291 drivers/mmc/core/sd.c card->erase_arg = (card->scr.sda_specx && discard_support) ? card 300 drivers/mmc/core/sd.c static int mmc_read_switch(struct mmc_card *card) card 305 drivers/mmc/core/sd.c if (card->scr.sda_vsn < SCR_SPEC_VER_1) card 308 drivers/mmc/core/sd.c if (!(card->csd.cmdclass & CCC_SWITCH)) { card 310 drivers/mmc/core/sd.c mmc_hostname(card->host)); card 323 drivers/mmc/core/sd.c err = mmc_sd_switch(card, 0, 0, 0, status); card 333 drivers/mmc/core/sd.c mmc_hostname(card->host)); card 340 drivers/mmc/core/sd.c card->sw_caps.hs_max_dtr = HIGH_SPEED_MAX_DTR; card 342 drivers/mmc/core/sd.c if (card->scr.sda_spec3) { card 343 drivers/mmc/core/sd.c card->sw_caps.sd3_bus_mode = status[13]; card 345 drivers/mmc/core/sd.c card->sw_caps.sd3_drv_type = status[9]; card 346 drivers/mmc/core/sd.c card->sw_caps.sd3_curr_limit = status[7] | status[6] << 8; card 358 drivers/mmc/core/sd.c int mmc_sd_switch_hs(struct mmc_card *card) card 363 drivers/mmc/core/sd.c if (card->scr.sda_vsn < SCR_SPEC_VER_1) card 366 drivers/mmc/core/sd.c if (!(card->csd.cmdclass & CCC_SWITCH)) card 369 drivers/mmc/core/sd.c if (!(card->host->caps & MMC_CAP_SD_HIGHSPEED)) card 372 drivers/mmc/core/sd.c if (card->sw_caps.hs_max_dtr == 0) card 379 drivers/mmc/core/sd.c err = mmc_sd_switch(card, 1, 0, 1, status); card 385 drivers/mmc/core/sd.c mmc_hostname(card->host)); card 397 drivers/mmc/core/sd.c static int sd_select_driver_type(struct mmc_card *card, u8 *status) card 402 drivers/mmc/core/sd.c card->drive_strength = 0; card 404 drivers/mmc/core/sd.c card_drv_type = card->sw_caps.sd3_drv_type | SD_DRIVER_TYPE_B; card 406 drivers/mmc/core/sd.c drive_strength = mmc_select_drive_strength(card, card 407 drivers/mmc/core/sd.c card->sw_caps.uhs_max_dtr, card 411 drivers/mmc/core/sd.c err = mmc_sd_switch(card, 1, 2, drive_strength, status); card 416 drivers/mmc/core/sd.c mmc_hostname(card->host)); card 419 drivers/mmc/core/sd.c card->drive_strength = drive_strength; card 423 drivers/mmc/core/sd.c mmc_set_driver_type(card->host, drv_type); card 428 drivers/mmc/core/sd.c static void sd_update_bus_speed_mode(struct mmc_card *card) card 434 drivers/mmc/core/sd.c if (!mmc_host_uhs(card->host)) { card 435 drivers/mmc/core/sd.c card->sd_bus_speed = 0; card 439 drivers/mmc/core/sd.c if ((card->host->caps & MMC_CAP_UHS_SDR104) && card 440 drivers/mmc/core/sd.c (card->sw_caps.sd3_bus_mode & SD_MODE_UHS_SDR104)) { card 441 drivers/mmc/core/sd.c card->sd_bus_speed = UHS_SDR104_BUS_SPEED; card 442 drivers/mmc/core/sd.c } else if ((card->host->caps & MMC_CAP_UHS_DDR50) && card 443 drivers/mmc/core/sd.c (card->sw_caps.sd3_bus_mode & SD_MODE_UHS_DDR50)) { card 444 drivers/mmc/core/sd.c card->sd_bus_speed = UHS_DDR50_BUS_SPEED; card 445 drivers/mmc/core/sd.c } else if ((card->host->caps & (MMC_CAP_UHS_SDR104 | card 446 drivers/mmc/core/sd.c MMC_CAP_UHS_SDR50)) && (card->sw_caps.sd3_bus_mode & card 448 drivers/mmc/core/sd.c card->sd_bus_speed = UHS_SDR50_BUS_SPEED; card 449 drivers/mmc/core/sd.c } else if ((card->host->caps & (MMC_CAP_UHS_SDR104 | card 451 drivers/mmc/core/sd.c (card->sw_caps.sd3_bus_mode & SD_MODE_UHS_SDR25)) { card 452 drivers/mmc/core/sd.c card->sd_bus_speed = UHS_SDR25_BUS_SPEED; card 453 drivers/mmc/core/sd.c } else if ((card->host->caps & (MMC_CAP_UHS_SDR104 | card 455 drivers/mmc/core/sd.c MMC_CAP_UHS_SDR12)) && (card->sw_caps.sd3_bus_mode & card 457 drivers/mmc/core/sd.c card->sd_bus_speed = UHS_SDR12_BUS_SPEED; card 461 drivers/mmc/core/sd.c static int sd_set_bus_speed_mode(struct mmc_card *card, u8 *status) card 466 drivers/mmc/core/sd.c switch (card->sd_bus_speed) { card 469 drivers/mmc/core/sd.c card->sw_caps.uhs_max_dtr = UHS_SDR104_MAX_DTR; card 473 drivers/mmc/core/sd.c card->sw_caps.uhs_max_dtr = UHS_DDR50_MAX_DTR; card 477 drivers/mmc/core/sd.c card->sw_caps.uhs_max_dtr = UHS_SDR50_MAX_DTR; card 481 drivers/mmc/core/sd.c card->sw_caps.uhs_max_dtr = UHS_SDR25_MAX_DTR; card 485 drivers/mmc/core/sd.c card->sw_caps.uhs_max_dtr = UHS_SDR12_MAX_DTR; card 491 drivers/mmc/core/sd.c err = mmc_sd_switch(card, 1, 0, card->sd_bus_speed, status); card 495 drivers/mmc/core/sd.c if ((status[16] & 0xF) != card->sd_bus_speed) card 497 drivers/mmc/core/sd.c mmc_hostname(card->host)); card 499 drivers/mmc/core/sd.c mmc_set_timing(card->host, timing); card 500 drivers/mmc/core/sd.c mmc_set_clock(card->host, card->sw_caps.uhs_max_dtr); card 531 drivers/mmc/core/sd.c static int sd_set_current_limit(struct mmc_card *card, u8 *status) card 542 drivers/mmc/core/sd.c if ((card->sd_bus_speed != UHS_SDR50_BUS_SPEED) && card 543 drivers/mmc/core/sd.c (card->sd_bus_speed != UHS_SDR104_BUS_SPEED) && card 544 drivers/mmc/core/sd.c (card->sd_bus_speed != UHS_DDR50_BUS_SPEED)) card 551 drivers/mmc/core/sd.c max_current = sd_get_host_max_current(card->host); card 569 drivers/mmc/core/sd.c card->sw_caps.sd3_curr_limit & SD_MAX_CURRENT_800) card 572 drivers/mmc/core/sd.c card->sw_caps.sd3_curr_limit & SD_MAX_CURRENT_600) card 575 drivers/mmc/core/sd.c card->sw_caps.sd3_curr_limit & SD_MAX_CURRENT_400) card 578 drivers/mmc/core/sd.c card->sw_caps.sd3_curr_limit & SD_MAX_CURRENT_200) card 582 drivers/mmc/core/sd.c err = mmc_sd_switch(card, 1, 3, current_limit, status); card 588 drivers/mmc/core/sd.c mmc_hostname(card->host)); card 598 drivers/mmc/core/sd.c static int mmc_sd_init_uhs_card(struct mmc_card *card) card 603 drivers/mmc/core/sd.c if (!(card->csd.cmdclass & CCC_SWITCH)) card 611 drivers/mmc/core/sd.c err = mmc_app_set_bus_width(card, MMC_BUS_WIDTH_4); card 615 drivers/mmc/core/sd.c mmc_set_bus_width(card->host, MMC_BUS_WIDTH_4); card 621 drivers/mmc/core/sd.c sd_update_bus_speed_mode(card); card 624 drivers/mmc/core/sd.c err = sd_select_driver_type(card, status); card 629 drivers/mmc/core/sd.c err = sd_set_current_limit(card, status); card 634 drivers/mmc/core/sd.c err = sd_set_bus_speed_mode(card, status); card 642 drivers/mmc/core/sd.c if (!mmc_host_is_spi(card->host) && card 643 drivers/mmc/core/sd.c (card->host->ios.timing == MMC_TIMING_UHS_SDR50 || card 644 drivers/mmc/core/sd.c card->host->ios.timing == MMC_TIMING_UHS_DDR50 || card 645 drivers/mmc/core/sd.c card->host->ios.timing == MMC_TIMING_UHS_SDR104)) { card 646 drivers/mmc/core/sd.c err = mmc_execute_tuning(card); card 655 drivers/mmc/core/sd.c if (err && card->host->ios.timing == MMC_TIMING_UHS_DDR50) { card 657 drivers/mmc/core/sd.c mmc_hostname(card->host)); card 668 drivers/mmc/core/sd.c MMC_DEV_ATTR(cid, "%08x%08x%08x%08x\n", card->raw_cid[0], card->raw_cid[1], card 669 drivers/mmc/core/sd.c card->raw_cid[2], card->raw_cid[3]); card 670 drivers/mmc/core/sd.c MMC_DEV_ATTR(csd, "%08x%08x%08x%08x\n", card->raw_csd[0], card->raw_csd[1], card 671 drivers/mmc/core/sd.c card->raw_csd[2], card->raw_csd[3]); card 672 drivers/mmc/core/sd.c MMC_DEV_ATTR(scr, "%08x%08x\n", card->raw_scr[0], card->raw_scr[1]); card 675 drivers/mmc/core/sd.c card->raw_ssr[0], card->raw_ssr[1], card->raw_ssr[2], card 676 drivers/mmc/core/sd.c card->raw_ssr[3], card->raw_ssr[4], card->raw_ssr[5], card 677 drivers/mmc/core/sd.c card->raw_ssr[6], card->raw_ssr[7], card->raw_ssr[8], card 678 drivers/mmc/core/sd.c card->raw_ssr[9], card->raw_ssr[10], card->raw_ssr[11], card 679 drivers/mmc/core/sd.c card->raw_ssr[12], card->raw_ssr[13], card->raw_ssr[14], card 680 drivers/mmc/core/sd.c card->raw_ssr[15]); card 681 drivers/mmc/core/sd.c MMC_DEV_ATTR(date, "%02d/%04d\n", card->cid.month, card->cid.year); card 682 drivers/mmc/core/sd.c MMC_DEV_ATTR(erase_size, "%u\n", card->erase_size << 9); card 683 drivers/mmc/core/sd.c MMC_DEV_ATTR(preferred_erase_size, "%u\n", card->pref_erase << 9); card 684 drivers/mmc/core/sd.c MMC_DEV_ATTR(fwrev, "0x%x\n", card->cid.fwrev); card 685 drivers/mmc/core/sd.c MMC_DEV_ATTR(hwrev, "0x%x\n", card->cid.hwrev); card 686 drivers/mmc/core/sd.c MMC_DEV_ATTR(manfid, "0x%06x\n", card->cid.manfid); card 687 drivers/mmc/core/sd.c MMC_DEV_ATTR(name, "%s\n", card->cid.prod_name); card 688 drivers/mmc/core/sd.c MMC_DEV_ATTR(oemid, "0x%04x\n", card->cid.oemid); card 689 drivers/mmc/core/sd.c MMC_DEV_ATTR(serial, "0x%08x\n", card->cid.serial); card 690 drivers/mmc/core/sd.c MMC_DEV_ATTR(ocr, "0x%08x\n", card->ocr); card 691 drivers/mmc/core/sd.c MMC_DEV_ATTR(rca, "0x%04x\n", card->rca); card 698 drivers/mmc/core/sd.c struct mmc_card *card = mmc_dev_to_card(dev); card 699 drivers/mmc/core/sd.c struct mmc_host *host = card->host; card 701 drivers/mmc/core/sd.c if (card->csd.dsr_imp && host->dsr_req) card 809 drivers/mmc/core/sd.c int mmc_sd_get_csd(struct mmc_host *host, struct mmc_card *card) card 816 drivers/mmc/core/sd.c err = mmc_send_csd(card, card->raw_csd); card 820 drivers/mmc/core/sd.c err = mmc_decode_csd(card); card 847 drivers/mmc/core/sd.c int mmc_sd_setup_card(struct mmc_host *host, struct mmc_card *card, card 856 drivers/mmc/core/sd.c err = mmc_app_send_scr(card); card 860 drivers/mmc/core/sd.c err = mmc_decode_scr(card); card 867 drivers/mmc/core/sd.c err = mmc_read_ssr(card); card 872 drivers/mmc/core/sd.c mmc_init_erase(card); card 877 drivers/mmc/core/sd.c err = mmc_read_switch(card); card 904 drivers/mmc/core/sd.c mmc_card_set_readonly(card); card 911 drivers/mmc/core/sd.c unsigned mmc_sd_get_max_clock(struct mmc_card *card) card 915 drivers/mmc/core/sd.c if (mmc_card_hs(card)) { card 916 drivers/mmc/core/sd.c if (max_dtr > card->sw_caps.hs_max_dtr) card 917 drivers/mmc/core/sd.c max_dtr = card->sw_caps.hs_max_dtr; card 918 drivers/mmc/core/sd.c } else if (max_dtr > card->csd.max_dtr) { card 919 drivers/mmc/core/sd.c max_dtr = card->csd.max_dtr; card 925 drivers/mmc/core/sd.c static bool mmc_sd_card_using_v18(struct mmc_card *card) card 933 drivers/mmc/core/sd.c return card->sw_caps.sd3_bus_mode & card 946 drivers/mmc/core/sd.c struct mmc_card *card; card 965 drivers/mmc/core/sd.c card = oldcard; card 970 drivers/mmc/core/sd.c card = mmc_alloc_card(host, &sd_type); card 971 drivers/mmc/core/sd.c if (IS_ERR(card)) card 972 drivers/mmc/core/sd.c return PTR_ERR(card); card 974 drivers/mmc/core/sd.c card->ocr = ocr; card 975 drivers/mmc/core/sd.c card->type = MMC_TYPE_SD; card 976 drivers/mmc/core/sd.c memcpy(card->raw_cid, cid, sizeof(card->raw_cid)); card 983 drivers/mmc/core/sd.c host->ops->init_card(host, card); card 989 drivers/mmc/core/sd.c err = mmc_send_relative_addr(host, &card->rca); card 995 drivers/mmc/core/sd.c err = mmc_sd_get_csd(host, card); card 999 drivers/mmc/core/sd.c mmc_decode_cid(card); card 1006 drivers/mmc/core/sd.c if (card->csd.dsr_imp && host->dsr_req) card 1013 drivers/mmc/core/sd.c err = mmc_select_card(card); card 1018 drivers/mmc/core/sd.c err = mmc_sd_setup_card(host, card, oldcard != NULL); card 1028 drivers/mmc/core/sd.c mmc_sd_card_using_v18(card) && card 1035 drivers/mmc/core/sd.c err = mmc_read_switch(card); card 1039 drivers/mmc/core/sd.c if (mmc_sd_card_using_v18(card)) { card 1041 drivers/mmc/core/sd.c mmc_sd_init_uhs_card(card)) { card 1045 drivers/mmc/core/sd.c mmc_remove_card(card); card 1054 drivers/mmc/core/sd.c err = mmc_sd_init_uhs_card(card); card 1061 drivers/mmc/core/sd.c err = mmc_sd_switch_hs(card); card 1063 drivers/mmc/core/sd.c mmc_set_timing(card->host, MMC_TIMING_SD_HS); card 1070 drivers/mmc/core/sd.c mmc_set_clock(host, mmc_sd_get_max_clock(card)); card 1076 drivers/mmc/core/sd.c (card->scr.bus_widths & SD_SCR_BUS_WIDTH_4)) { card 1077 drivers/mmc/core/sd.c err = mmc_app_set_bus_width(card, MMC_BUS_WIDTH_4); card 1093 drivers/mmc/core/sd.c host->card = card; card 1098 drivers/mmc/core/sd.c mmc_remove_card(card); card 1108 drivers/mmc/core/sd.c mmc_remove_card(host->card); card 1109 drivers/mmc/core/sd.c host->card = NULL; card 1117 drivers/mmc/core/sd.c return mmc_send_status(host->card, NULL); card 1127 drivers/mmc/core/sd.c mmc_get_card(host->card, NULL); card 1134 drivers/mmc/core/sd.c mmc_put_card(host->card, NULL); card 1152 drivers/mmc/core/sd.c if (mmc_card_suspended(host->card)) card 1160 drivers/mmc/core/sd.c mmc_card_set_suspended(host->card); card 1177 drivers/mmc/core/sd.c pm_runtime_disable(&host->card->dev); card 1178 drivers/mmc/core/sd.c pm_runtime_set_suspended(&host->card->dev); card 1194 drivers/mmc/core/sd.c if (!mmc_card_suspended(host->card)) card 1197 drivers/mmc/core/sd.c mmc_power_up(host, host->card->ocr); card 1198 drivers/mmc/core/sd.c err = mmc_sd_init_card(host, host->card->ocr, host->card); card 1199 drivers/mmc/core/sd.c mmc_card_clr_suspended(host->card); card 1211 drivers/mmc/core/sd.c pm_runtime_enable(&host->card->dev); card 1250 drivers/mmc/core/sd.c mmc_power_cycle(host, host->card->ocr); card 1251 drivers/mmc/core/sd.c return mmc_sd_init_card(host, host->card->ocr, host->card); card 1319 drivers/mmc/core/sd.c err = mmc_add_card(host->card); card 1327 drivers/mmc/core/sd.c mmc_remove_card(host->card); card 1328 drivers/mmc/core/sd.c host->card = NULL; card 13 drivers/mmc/core/sd.h int mmc_sd_get_csd(struct mmc_host *host, struct mmc_card *card); card 14 drivers/mmc/core/sd.h void mmc_decode_cid(struct mmc_card *card); card 15 drivers/mmc/core/sd.h int mmc_sd_setup_card(struct mmc_host *host, struct mmc_card *card, card 17 drivers/mmc/core/sd.h unsigned mmc_sd_get_max_clock(struct mmc_card *card); card 18 drivers/mmc/core/sd.h int mmc_sd_switch_hs(struct mmc_card *card); card 21 drivers/mmc/core/sd_ops.c int mmc_app_cmd(struct mmc_host *host, struct mmc_card *card) card 26 drivers/mmc/core/sd_ops.c if (WARN_ON(card && card->host != host)) card 31 drivers/mmc/core/sd_ops.c if (card) { card 32 drivers/mmc/core/sd_ops.c cmd.arg = card->rca << 16; card 51 drivers/mmc/core/sd_ops.c static int mmc_wait_for_app_cmd(struct mmc_host *host, struct mmc_card *card, card 62 drivers/mmc/core/sd_ops.c err = mmc_app_cmd(host, card); card 96 drivers/mmc/core/sd_ops.c int mmc_app_set_bus_width(struct mmc_card *card, int width) card 114 drivers/mmc/core/sd_ops.c return mmc_wait_for_app_cmd(card->host, card, &cmd); card 210 drivers/mmc/core/sd_ops.c int mmc_app_send_scr(struct mmc_card *card) card 221 drivers/mmc/core/sd_ops.c err = mmc_app_cmd(card->host, card); card 228 drivers/mmc/core/sd_ops.c scr = kmalloc(sizeof(card->raw_scr), GFP_KERNEL); card 247 drivers/mmc/core/sd_ops.c mmc_set_data_timeout(&data, card); card 249 drivers/mmc/core/sd_ops.c mmc_wait_for_req(card->host, &mrq); card 251 drivers/mmc/core/sd_ops.c card->raw_scr[0] = be32_to_cpu(scr[0]); card 252 drivers/mmc/core/sd_ops.c card->raw_scr[1] = be32_to_cpu(scr[1]); card 264 drivers/mmc/core/sd_ops.c int mmc_sd_switch(struct mmc_card *card, int mode, int group, card 294 drivers/mmc/core/sd_ops.c mmc_set_data_timeout(&data, card); card 296 drivers/mmc/core/sd_ops.c mmc_wait_for_req(card->host, &mrq); card 306 drivers/mmc/core/sd_ops.c int mmc_app_sd_status(struct mmc_card *card, void *ssr) card 316 drivers/mmc/core/sd_ops.c err = mmc_app_cmd(card->host, card); card 335 drivers/mmc/core/sd_ops.c mmc_set_data_timeout(&data, card); card 337 drivers/mmc/core/sd_ops.c mmc_wait_for_req(card->host, &mrq); card 16 drivers/mmc/core/sd_ops.h int mmc_app_set_bus_width(struct mmc_card *card, int width); card 20 drivers/mmc/core/sd_ops.h int mmc_app_send_scr(struct mmc_card *card); card 21 drivers/mmc/core/sd_ops.h int mmc_sd_switch(struct mmc_card *card, int mode, int group, card 23 drivers/mmc/core/sd_ops.h int mmc_app_sd_status(struct mmc_card *card, void *ssr); card 24 drivers/mmc/core/sd_ops.h int mmc_app_cmd(struct mmc_host *host, struct mmc_card *card); card 35 drivers/mmc/core/sdio.c if (mmc_card_nonstd_func_interface(func->card)) { card 40 drivers/mmc/core/sdio.c ret = mmc_io_rw_direct(func->card, 0, 0, card 48 drivers/mmc/core/sdio.c ret = mmc_io_rw_direct(func->card, 0, 0, card 60 drivers/mmc/core/sdio.c static int sdio_init_func(struct mmc_card *card, unsigned int fn) card 68 drivers/mmc/core/sdio.c func = sdio_alloc_func(card); card 74 drivers/mmc/core/sdio.c if (!(card->quirks & MMC_QUIRK_NONSTD_SDIO)) { card 83 drivers/mmc/core/sdio.c func->vendor = func->card->cis.vendor; card 84 drivers/mmc/core/sdio.c func->device = func->card->cis.device; card 85 drivers/mmc/core/sdio.c func->max_blksize = func->card->cis.blksize; card 88 drivers/mmc/core/sdio.c card->sdio_func[fn - 1] = func; card 101 drivers/mmc/core/sdio.c static int sdio_read_cccr(struct mmc_card *card, u32 ocr) card 109 drivers/mmc/core/sdio.c ret = mmc_io_rw_direct(card, 0, 0, SDIO_CCCR_CCCR, 0, &data); card 117 drivers/mmc/core/sdio.c mmc_hostname(card->host), cccr_vsn); card 121 drivers/mmc/core/sdio.c card->cccr.sdio_vsn = (data & 0xf0) >> 4; card 123 drivers/mmc/core/sdio.c ret = mmc_io_rw_direct(card, 0, 0, SDIO_CCCR_CAPS, 0, &data); card 128 drivers/mmc/core/sdio.c card->cccr.multi_block = 1; card 130 drivers/mmc/core/sdio.c card->cccr.low_speed = 1; card 132 drivers/mmc/core/sdio.c card->cccr.wide_bus = 1; card 135 drivers/mmc/core/sdio.c ret = mmc_io_rw_direct(card, 0, 0, SDIO_CCCR_POWER, 0, &data); card 140 drivers/mmc/core/sdio.c card->cccr.high_power = 1; card 144 drivers/mmc/core/sdio.c ret = mmc_io_rw_direct(card, 0, 0, SDIO_CCCR_SPEED, 0, &speed); card 148 drivers/mmc/core/sdio.c card->scr.sda_spec3 = 0; card 149 drivers/mmc/core/sdio.c card->sw_caps.sd3_bus_mode = 0; card 150 drivers/mmc/core/sdio.c card->sw_caps.sd3_drv_type = 0; card 152 drivers/mmc/core/sdio.c card->scr.sda_spec3 = 1; card 153 drivers/mmc/core/sdio.c ret = mmc_io_rw_direct(card, 0, 0, card 158 drivers/mmc/core/sdio.c if (mmc_host_uhs(card->host)) { card 160 drivers/mmc/core/sdio.c card->sw_caps.sd3_bus_mode card 164 drivers/mmc/core/sdio.c card->sw_caps.sd3_bus_mode card 168 drivers/mmc/core/sdio.c card->sw_caps.sd3_bus_mode card 172 drivers/mmc/core/sdio.c ret = mmc_io_rw_direct(card, 0, 0, card 178 drivers/mmc/core/sdio.c card->sw_caps.sd3_drv_type |= SD_DRIVER_TYPE_A; card 180 drivers/mmc/core/sdio.c card->sw_caps.sd3_drv_type |= SD_DRIVER_TYPE_C; card 182 drivers/mmc/core/sdio.c card->sw_caps.sd3_drv_type |= SD_DRIVER_TYPE_D; card 186 drivers/mmc/core/sdio.c if (!card->sw_caps.sd3_bus_mode) { card 188 drivers/mmc/core/sdio.c card->cccr.high_speed = 1; card 189 drivers/mmc/core/sdio.c card->sw_caps.hs_max_dtr = 50000000; card 191 drivers/mmc/core/sdio.c card->cccr.high_speed = 0; card 192 drivers/mmc/core/sdio.c card->sw_caps.hs_max_dtr = 25000000; card 201 drivers/mmc/core/sdio.c static int sdio_enable_wide(struct mmc_card *card) card 206 drivers/mmc/core/sdio.c if (!(card->host->caps & MMC_CAP_4_BIT_DATA)) card 209 drivers/mmc/core/sdio.c if (card->cccr.low_speed && !card->cccr.wide_bus) card 212 drivers/mmc/core/sdio.c ret = mmc_io_rw_direct(card, 0, 0, SDIO_CCCR_IF, 0, &ctrl); card 218 drivers/mmc/core/sdio.c mmc_hostname(card->host), ctrl); card 224 drivers/mmc/core/sdio.c ret = mmc_io_rw_direct(card, 1, 0, SDIO_CCCR_IF, ctrl, NULL); card 237 drivers/mmc/core/sdio.c static int sdio_disable_cd(struct mmc_card *card) card 242 drivers/mmc/core/sdio.c if (!mmc_card_disable_cd(card)) card 245 drivers/mmc/core/sdio.c ret = mmc_io_rw_direct(card, 0, 0, SDIO_CCCR_IF, 0, &ctrl); card 251 drivers/mmc/core/sdio.c return mmc_io_rw_direct(card, 1, 0, SDIO_CCCR_IF, ctrl, NULL); card 258 drivers/mmc/core/sdio.c static int sdio_disable_wide(struct mmc_card *card) card 263 drivers/mmc/core/sdio.c if (!(card->host->caps & MMC_CAP_4_BIT_DATA)) card 266 drivers/mmc/core/sdio.c if (card->cccr.low_speed && !card->cccr.wide_bus) card 269 drivers/mmc/core/sdio.c ret = mmc_io_rw_direct(card, 0, 0, SDIO_CCCR_IF, 0, &ctrl); card 279 drivers/mmc/core/sdio.c ret = mmc_io_rw_direct(card, 1, 0, SDIO_CCCR_IF, ctrl, NULL); card 283 drivers/mmc/core/sdio.c mmc_set_bus_width(card->host, MMC_BUS_WIDTH_1); card 289 drivers/mmc/core/sdio.c static int sdio_enable_4bit_bus(struct mmc_card *card) card 293 drivers/mmc/core/sdio.c if (card->type == MMC_TYPE_SDIO) card 294 drivers/mmc/core/sdio.c err = sdio_enable_wide(card); card 295 drivers/mmc/core/sdio.c else if ((card->host->caps & MMC_CAP_4_BIT_DATA) && card 296 drivers/mmc/core/sdio.c (card->scr.bus_widths & SD_SCR_BUS_WIDTH_4)) { card 297 drivers/mmc/core/sdio.c err = mmc_app_set_bus_width(card, MMC_BUS_WIDTH_4); card 300 drivers/mmc/core/sdio.c err = sdio_enable_wide(card); card 302 drivers/mmc/core/sdio.c mmc_app_set_bus_width(card, MMC_BUS_WIDTH_1); card 307 drivers/mmc/core/sdio.c mmc_set_bus_width(card->host, MMC_BUS_WIDTH_4); card 318 drivers/mmc/core/sdio.c static int mmc_sdio_switch_hs(struct mmc_card *card, int enable) card 323 drivers/mmc/core/sdio.c if (!(card->host->caps & MMC_CAP_SD_HIGHSPEED)) card 326 drivers/mmc/core/sdio.c if (!card->cccr.high_speed) card 329 drivers/mmc/core/sdio.c ret = mmc_io_rw_direct(card, 0, 0, SDIO_CCCR_SPEED, 0, &speed); card 338 drivers/mmc/core/sdio.c ret = mmc_io_rw_direct(card, 1, 0, SDIO_CCCR_SPEED, speed, NULL); card 348 drivers/mmc/core/sdio.c static int sdio_enable_hs(struct mmc_card *card) card 352 drivers/mmc/core/sdio.c ret = mmc_sdio_switch_hs(card, true); card 353 drivers/mmc/core/sdio.c if (ret <= 0 || card->type == MMC_TYPE_SDIO) card 356 drivers/mmc/core/sdio.c ret = mmc_sd_switch_hs(card); card 358 drivers/mmc/core/sdio.c mmc_sdio_switch_hs(card, false); card 363 drivers/mmc/core/sdio.c static unsigned mmc_sdio_get_max_clock(struct mmc_card *card) card 367 drivers/mmc/core/sdio.c if (mmc_card_hs(card)) { card 376 drivers/mmc/core/sdio.c max_dtr = card->cis.max_dtr; card 379 drivers/mmc/core/sdio.c if (card->type == MMC_TYPE_SD_COMBO) card 380 drivers/mmc/core/sdio.c max_dtr = min(max_dtr, mmc_sd_get_max_clock(card)); card 401 drivers/mmc/core/sdio.c static void sdio_select_driver_type(struct mmc_card *card) card 407 drivers/mmc/core/sdio.c card->drive_strength = 0; card 409 drivers/mmc/core/sdio.c card_drv_type = card->sw_caps.sd3_drv_type | SD_DRIVER_TYPE_B; card 411 drivers/mmc/core/sdio.c drive_strength = mmc_select_drive_strength(card, card 412 drivers/mmc/core/sdio.c card->sw_caps.uhs_max_dtr, card 417 drivers/mmc/core/sdio.c err = mmc_io_rw_direct(card, 0, 0, SDIO_CCCR_DRIVE_STRENGTH, 0, card 426 drivers/mmc/core/sdio.c err = mmc_io_rw_direct(card, 1, 0, SDIO_CCCR_DRIVE_STRENGTH, card 430 drivers/mmc/core/sdio.c card->drive_strength = drive_strength; card 434 drivers/mmc/core/sdio.c mmc_set_driver_type(card->host, drv_type); card 438 drivers/mmc/core/sdio.c static int sdio_set_bus_speed_mode(struct mmc_card *card) card 449 drivers/mmc/core/sdio.c if (!mmc_host_uhs(card->host)) card 454 drivers/mmc/core/sdio.c if ((card->host->caps & MMC_CAP_UHS_SDR104) && card 455 drivers/mmc/core/sdio.c (card->sw_caps.sd3_bus_mode & SD_MODE_UHS_SDR104)) { card 458 drivers/mmc/core/sdio.c card->sw_caps.uhs_max_dtr = UHS_SDR104_MAX_DTR; card 459 drivers/mmc/core/sdio.c card->sd_bus_speed = UHS_SDR104_BUS_SPEED; card 460 drivers/mmc/core/sdio.c } else if ((card->host->caps & MMC_CAP_UHS_DDR50) && card 461 drivers/mmc/core/sdio.c (card->sw_caps.sd3_bus_mode & SD_MODE_UHS_DDR50)) { card 464 drivers/mmc/core/sdio.c card->sw_caps.uhs_max_dtr = UHS_DDR50_MAX_DTR; card 465 drivers/mmc/core/sdio.c card->sd_bus_speed = UHS_DDR50_BUS_SPEED; card 466 drivers/mmc/core/sdio.c } else if ((card->host->caps & (MMC_CAP_UHS_SDR104 | card 467 drivers/mmc/core/sdio.c MMC_CAP_UHS_SDR50)) && (card->sw_caps.sd3_bus_mode & card 471 drivers/mmc/core/sdio.c card->sw_caps.uhs_max_dtr = UHS_SDR50_MAX_DTR; card 472 drivers/mmc/core/sdio.c card->sd_bus_speed = UHS_SDR50_BUS_SPEED; card 473 drivers/mmc/core/sdio.c } else if ((card->host->caps & (MMC_CAP_UHS_SDR104 | card 475 drivers/mmc/core/sdio.c (card->sw_caps.sd3_bus_mode & SD_MODE_UHS_SDR25)) { card 478 drivers/mmc/core/sdio.c card->sw_caps.uhs_max_dtr = UHS_SDR25_MAX_DTR; card 479 drivers/mmc/core/sdio.c card->sd_bus_speed = UHS_SDR25_BUS_SPEED; card 480 drivers/mmc/core/sdio.c } else if ((card->host->caps & (MMC_CAP_UHS_SDR104 | card 482 drivers/mmc/core/sdio.c MMC_CAP_UHS_SDR12)) && (card->sw_caps.sd3_bus_mode & card 486 drivers/mmc/core/sdio.c card->sw_caps.uhs_max_dtr = UHS_SDR12_MAX_DTR; card 487 drivers/mmc/core/sdio.c card->sd_bus_speed = UHS_SDR12_BUS_SPEED; card 490 drivers/mmc/core/sdio.c err = mmc_io_rw_direct(card, 0, 0, SDIO_CCCR_SPEED, 0, &speed); card 496 drivers/mmc/core/sdio.c err = mmc_io_rw_direct(card, 1, 0, SDIO_CCCR_SPEED, speed, NULL); card 500 drivers/mmc/core/sdio.c max_rate = min_not_zero(card->quirk_max_rate, card 501 drivers/mmc/core/sdio.c card->sw_caps.uhs_max_dtr); card 504 drivers/mmc/core/sdio.c mmc_set_timing(card->host, timing); card 505 drivers/mmc/core/sdio.c mmc_set_clock(card->host, max_rate); card 514 drivers/mmc/core/sdio.c static int mmc_sdio_init_uhs_card(struct mmc_card *card) card 518 drivers/mmc/core/sdio.c if (!card->scr.sda_spec3) card 522 drivers/mmc/core/sdio.c err = sdio_enable_4bit_bus(card); card 527 drivers/mmc/core/sdio.c sdio_select_driver_type(card); card 530 drivers/mmc/core/sdio.c err = sdio_set_bus_speed_mode(card); card 538 drivers/mmc/core/sdio.c if (!mmc_host_is_spi(card->host) && card 539 drivers/mmc/core/sdio.c ((card->host->ios.timing == MMC_TIMING_UHS_SDR50) || card 540 drivers/mmc/core/sdio.c (card->host->ios.timing == MMC_TIMING_UHS_SDR104))) card 541 drivers/mmc/core/sdio.c err = mmc_execute_tuning(card); card 547 drivers/mmc/core/sdio.c struct mmc_card *card) card 552 drivers/mmc/core/sdio.c mmc_remove_card(card); card 564 drivers/mmc/core/sdio.c struct mmc_card *card; card 601 drivers/mmc/core/sdio.c card = mmc_alloc_card(host, NULL); card 602 drivers/mmc/core/sdio.c if (IS_ERR(card)) card 603 drivers/mmc/core/sdio.c return PTR_ERR(card); card 606 drivers/mmc/core/sdio.c mmc_sd_get_cid(host, ocr & rocr, card->raw_cid, NULL) == 0) { card 607 drivers/mmc/core/sdio.c card->type = MMC_TYPE_SD_COMBO; card 610 drivers/mmc/core/sdio.c memcmp(card->raw_cid, oldcard->raw_cid, sizeof(card->raw_cid)) != 0)) { card 615 drivers/mmc/core/sdio.c card->type = MMC_TYPE_SDIO; card 627 drivers/mmc/core/sdio.c host->ops->init_card(host, card); card 643 drivers/mmc/core/sdio.c mmc_sdio_resend_if_cond(host, card); card 655 drivers/mmc/core/sdio.c err = mmc_send_relative_addr(host, &card->rca); card 665 drivers/mmc/core/sdio.c oldcard->rca = card->rca; card 671 drivers/mmc/core/sdio.c if (!oldcard && card->type == MMC_TYPE_SD_COMBO) { card 672 drivers/mmc/core/sdio.c err = mmc_sd_get_csd(host, card); card 676 drivers/mmc/core/sdio.c mmc_decode_cid(card); card 683 drivers/mmc/core/sdio.c err = mmc_select_card(card); card 688 drivers/mmc/core/sdio.c if (card->quirks & MMC_QUIRK_NONSTD_SDIO) { card 695 drivers/mmc/core/sdio.c mmc_set_clock(host, card->cis.max_dtr); card 697 drivers/mmc/core/sdio.c if (card->cccr.high_speed) { card 698 drivers/mmc/core/sdio.c mmc_set_timing(card->host, MMC_TIMING_SD_HS); card 702 drivers/mmc/core/sdio.c mmc_remove_card(card); card 704 drivers/mmc/core/sdio.c host->card = card; card 713 drivers/mmc/core/sdio.c err = sdio_read_cccr(card, ocr); card 715 drivers/mmc/core/sdio.c mmc_sdio_resend_if_cond(host, card); card 727 drivers/mmc/core/sdio.c err = sdio_read_common_cis(card); card 732 drivers/mmc/core/sdio.c if (card->cis.vendor == oldcard->cis.vendor && card 733 drivers/mmc/core/sdio.c card->cis.device == oldcard->cis.device) { card 734 drivers/mmc/core/sdio.c mmc_remove_card(card); card 735 drivers/mmc/core/sdio.c card = oldcard; card 741 drivers/mmc/core/sdio.c card->ocr = ocr_card; card 742 drivers/mmc/core/sdio.c mmc_fixup_device(card, sdio_fixup_methods); card 744 drivers/mmc/core/sdio.c if (card->type == MMC_TYPE_SD_COMBO) { card 745 drivers/mmc/core/sdio.c err = mmc_sd_setup_card(host, card, oldcard != NULL); card 752 drivers/mmc/core/sdio.c card->type = MMC_TYPE_SDIO; card 754 drivers/mmc/core/sdio.c card->dev.type = &sd_type; card 760 drivers/mmc/core/sdio.c err = sdio_disable_cd(card); card 766 drivers/mmc/core/sdio.c if ((ocr & R4_18V_PRESENT) && card->sw_caps.sd3_bus_mode) { card 767 drivers/mmc/core/sdio.c err = mmc_sdio_init_uhs_card(card); card 774 drivers/mmc/core/sdio.c err = sdio_enable_hs(card); card 776 drivers/mmc/core/sdio.c mmc_set_timing(card->host, MMC_TIMING_SD_HS); card 783 drivers/mmc/core/sdio.c mmc_set_clock(host, mmc_sdio_get_max_clock(card)); card 788 drivers/mmc/core/sdio.c err = sdio_enable_4bit_bus(card); card 801 drivers/mmc/core/sdio.c host->card = card; card 807 drivers/mmc/core/sdio.c if (oldcard != card) card 808 drivers/mmc/core/sdio.c mmc_remove_card(card); card 835 drivers/mmc/core/sdio.c mmc_send_if_cond(host, host->card->ocr); card 841 drivers/mmc/core/sdio.c return mmc_sdio_init_card(host, host->card->ocr, host->card); card 851 drivers/mmc/core/sdio.c for (i = 0;i < host->card->sdio_funcs;i++) { card 852 drivers/mmc/core/sdio.c if (host->card->sdio_func[i]) { card 853 drivers/mmc/core/sdio.c sdio_remove_func(host->card->sdio_func[i]); card 854 drivers/mmc/core/sdio.c host->card->sdio_func[i] = NULL; card 858 drivers/mmc/core/sdio.c mmc_remove_card(host->card); card 859 drivers/mmc/core/sdio.c host->card = NULL; card 867 drivers/mmc/core/sdio.c return mmc_select_card(host->card); card 879 drivers/mmc/core/sdio.c err = pm_runtime_get_sync(&host->card->dev); card 881 drivers/mmc/core/sdio.c pm_runtime_put_noidle(&host->card->dev); card 907 drivers/mmc/core/sdio.c pm_runtime_put_sync(&host->card->dev); card 929 drivers/mmc/core/sdio.c for (i = 0; i < host->card->sdio_funcs; i++) { card 930 drivers/mmc/core/sdio.c struct sdio_func *func = host->card->sdio_func[i]; card 952 drivers/mmc/core/sdio.c mmc_card_set_suspended(host->card); card 958 drivers/mmc/core/sdio.c sdio_disable_wide(host->card); card 985 drivers/mmc/core/sdio.c mmc_power_up(host, host->card->ocr); card 993 drivers/mmc/core/sdio.c pm_runtime_disable(&host->card->dev); card 994 drivers/mmc/core/sdio.c pm_runtime_set_active(&host->card->dev); card 995 drivers/mmc/core/sdio.c pm_runtime_enable(&host->card->dev); card 1000 drivers/mmc/core/sdio.c err = sdio_enable_4bit_bus(host->card); card 1007 drivers/mmc/core/sdio.c mmc_card_clr_suspended(host->card); card 1039 drivers/mmc/core/sdio.c mmc_power_up(host, host->card->ocr); card 1054 drivers/mmc/core/sdio.c struct mmc_card *card = host->card; card 1061 drivers/mmc/core/sdio.c if (atomic_read(&card->sdio_funcs_probed) > 1) { card 1062 drivers/mmc/core/sdio.c if (mmc_card_removed(card)) card 1065 drivers/mmc/core/sdio.c mmc_card_set_removed(card); card 1074 drivers/mmc/core/sdio.c mmc_power_cycle(host, card->ocr); card 1111 drivers/mmc/core/sdio.c struct mmc_card *card; card 1141 drivers/mmc/core/sdio.c card = host->card; card 1151 drivers/mmc/core/sdio.c pm_runtime_get_noresume(&card->dev); card 1156 drivers/mmc/core/sdio.c err = pm_runtime_set_active(&card->dev); card 1163 drivers/mmc/core/sdio.c pm_runtime_enable(&card->dev); card 1171 drivers/mmc/core/sdio.c card->sdio_funcs = 0; card 1176 drivers/mmc/core/sdio.c for (i = 0; i < funcs; i++, card->sdio_funcs++) { card 1177 drivers/mmc/core/sdio.c err = sdio_init_func(host->card, i + 1); card 1185 drivers/mmc/core/sdio.c pm_runtime_enable(&card->sdio_func[i]->dev); card 1192 drivers/mmc/core/sdio.c err = mmc_add_card(host->card); card 1200 drivers/mmc/core/sdio.c err = sdio_add_func(host->card->sdio_func[i]); card 1206 drivers/mmc/core/sdio.c pm_runtime_put(&card->dev); card 141 drivers/mmc/core/sdio_bus.c atomic_inc(&func->card->sdio_funcs_probed); card 149 drivers/mmc/core/sdio_bus.c if (func->card->host->caps & MMC_CAP_POWER_OFF_CARD) { card 158 drivers/mmc/core/sdio_bus.c if (mmc_card_removed(func->card)) card 173 drivers/mmc/core/sdio_bus.c atomic_dec(&func->card->sdio_funcs_probed); card 174 drivers/mmc/core/sdio_bus.c if (func->card->host->caps & MMC_CAP_POWER_OFF_CARD) card 186 drivers/mmc/core/sdio_bus.c if (func->card->host->caps & MMC_CAP_POWER_OFF_CARD) card 190 drivers/mmc/core/sdio_bus.c atomic_dec(&func->card->sdio_funcs_probed); card 201 drivers/mmc/core/sdio_bus.c if (func->card->host->caps & MMC_CAP_POWER_OFF_CARD) card 205 drivers/mmc/core/sdio_bus.c if (func->card->host->caps & MMC_CAP_POWER_OFF_CARD) card 279 drivers/mmc/core/sdio_bus.c struct sdio_func *sdio_alloc_func(struct mmc_card *card) card 297 drivers/mmc/core/sdio_bus.c func->card = card; card 301 drivers/mmc/core/sdio_bus.c func->dev.parent = &card->dev; card 311 drivers/mmc/core/sdio_bus.c struct mmc_host *host = func->card->host; card 322 drivers/mmc/core/sdio_bus.c struct mmc_host *host = func->card->host; card 334 drivers/mmc/core/sdio_bus.c dev_set_name(&func->dev, "%s:%d", mmc_card_id(func->card), func->num); card 13 drivers/mmc/core/sdio_bus.h struct sdio_func *sdio_alloc_func(struct mmc_card *card); card 23 drivers/mmc/core/sdio_cis.c static int cistpl_vers_1(struct mmc_card *card, struct sdio_func *func, card 63 drivers/mmc/core/sdio_cis.c card->num_info = nr_strings; card 64 drivers/mmc/core/sdio_cis.c card->info = (const char**)buffer; card 70 drivers/mmc/core/sdio_cis.c static int cistpl_manfid(struct mmc_card *card, struct sdio_func *func, card 85 drivers/mmc/core/sdio_cis.c card->cis.vendor = vendor; card 86 drivers/mmc/core/sdio_cis.c card->cis.device = device; card 107 drivers/mmc/core/sdio_cis.c static int cis_tpl_parse(struct mmc_card *card, struct sdio_func *func, card 123 drivers/mmc/core/sdio_cis.c ret = tpl->parse(card, func, buf, size); card 132 drivers/mmc/core/sdio_cis.c mmc_hostname(card->host), tpl_descr, code, size); card 142 drivers/mmc/core/sdio_cis.c static int cistpl_funce_common(struct mmc_card *card, struct sdio_func *func, card 150 drivers/mmc/core/sdio_cis.c card->cis.blksize = buf[1] | (buf[2] << 8); card 153 drivers/mmc/core/sdio_cis.c card->cis.max_dtr = speed_val[(buf[3] >> 3) & 15] * card 159 drivers/mmc/core/sdio_cis.c static int cistpl_funce_func(struct mmc_card *card, struct sdio_func *func, card 173 drivers/mmc/core/sdio_cis.c vsn = func->card->cccr.sdio_vsn; card 178 drivers/mmc/core/sdio_cis.c mmc_hostname(card->host)); card 209 drivers/mmc/core/sdio_cis.c static int cistpl_funce(struct mmc_card *card, struct sdio_func *func, card 215 drivers/mmc/core/sdio_cis.c return cis_tpl_parse(card, func, "CISTPL_FUNCE", card 230 drivers/mmc/core/sdio_cis.c static int sdio_read_cis(struct mmc_card *card, struct sdio_func *func) card 249 drivers/mmc/core/sdio_cis.c ret = mmc_io_rw_direct(card, 0, 0, card 259 drivers/mmc/core/sdio_cis.c prev = &card->tuples; card 267 drivers/mmc/core/sdio_cis.c ret = mmc_io_rw_direct(card, 0, 0, ptr++, 0, &tpl_code); card 279 drivers/mmc/core/sdio_cis.c ret = mmc_io_rw_direct(card, 0, 0, ptr++, 0, &tpl_link); card 292 drivers/mmc/core/sdio_cis.c ret = mmc_io_rw_direct(card, 0, 0, card 303 drivers/mmc/core/sdio_cis.c ret = cis_tpl_parse(card, func, "CIS", card 321 drivers/mmc/core/sdio_cis.c mmc_hostname(card->host), card 344 drivers/mmc/core/sdio_cis.c *prev = card->tuples; card 349 drivers/mmc/core/sdio_cis.c int sdio_read_common_cis(struct mmc_card *card) card 351 drivers/mmc/core/sdio_cis.c return sdio_read_cis(card, NULL); card 354 drivers/mmc/core/sdio_cis.c void sdio_free_common_cis(struct mmc_card *card) card 358 drivers/mmc/core/sdio_cis.c tuple = card->tuples; card 366 drivers/mmc/core/sdio_cis.c card->tuples = NULL; card 373 drivers/mmc/core/sdio_cis.c ret = sdio_read_cis(func->card, func); card 381 drivers/mmc/core/sdio_cis.c get_device(&func->card->dev); card 388 drivers/mmc/core/sdio_cis.c func->vendor = func->card->cis.vendor; card 389 drivers/mmc/core/sdio_cis.c func->device = func->card->cis.device; card 401 drivers/mmc/core/sdio_cis.c while (tuple && tuple != func->card->tuples) { card 413 drivers/mmc/core/sdio_cis.c put_device(&func->card->dev); card 16 drivers/mmc/core/sdio_cis.h int sdio_read_common_cis(struct mmc_card *card); card 17 drivers/mmc/core/sdio_cis.h void sdio_free_common_cis(struct mmc_card *card); card 32 drivers/mmc/core/sdio_io.c mmc_claim_host(func->card->host); card 48 drivers/mmc/core/sdio_io.c mmc_release_host(func->card->host); card 70 drivers/mmc/core/sdio_io.c ret = mmc_io_rw_direct(func->card, 0, 0, SDIO_CCCR_IOEx, 0, ®); card 76 drivers/mmc/core/sdio_io.c ret = mmc_io_rw_direct(func->card, 1, 0, SDIO_CCCR_IOEx, reg, NULL); card 83 drivers/mmc/core/sdio_io.c ret = mmc_io_rw_direct(func->card, 0, 0, SDIO_CCCR_IORx, 0, ®); card 120 drivers/mmc/core/sdio_io.c ret = mmc_io_rw_direct(func->card, 0, 0, SDIO_CCCR_IOEx, 0, ®); card 126 drivers/mmc/core/sdio_io.c ret = mmc_io_rw_direct(func->card, 1, 0, SDIO_CCCR_IOEx, reg, NULL); card 163 drivers/mmc/core/sdio_io.c if (blksz > func->card->host->max_blk_size) card 167 drivers/mmc/core/sdio_io.c blksz = min(func->max_blksize, func->card->host->max_blk_size); card 171 drivers/mmc/core/sdio_io.c ret = mmc_io_rw_direct(func->card, 1, 0, card 176 drivers/mmc/core/sdio_io.c ret = mmc_io_rw_direct(func->card, 1, 0, card 191 drivers/mmc/core/sdio_io.c unsigned mval = func->card->host->max_blk_size; card 193 drivers/mmc/core/sdio_io.c if (mmc_blksz_for_byte_mode(func->card)) card 198 drivers/mmc/core/sdio_io.c if (mmc_card_broken_byte_mode_512(func->card)) card 255 drivers/mmc/core/sdio_io.c if (func->card->cccr.multi_block) { card 326 drivers/mmc/core/sdio_io.c if (func->card->cccr.multi_block && (size > sdio_max_byte_size(func))) { card 329 drivers/mmc/core/sdio_io.c max_blocks = min(func->card->host->max_blk_count, 511u); card 339 drivers/mmc/core/sdio_io.c ret = mmc_io_rw_extended(func->card, write, card 357 drivers/mmc/core/sdio_io.c ret = mmc_io_rw_extended(func->card, write, func->num, addr, card 391 drivers/mmc/core/sdio_io.c ret = mmc_io_rw_direct(func->card, 0, func->num, addr, 0, &val); card 422 drivers/mmc/core/sdio_io.c ret = mmc_io_rw_direct(func->card, 1, func->num, addr, b, NULL); card 447 drivers/mmc/core/sdio_io.c ret = mmc_io_rw_direct(func->card, 1, func->num, addr, card 643 drivers/mmc/core/sdio_io.c ret = mmc_io_rw_direct(func->card, 0, 0, addr, 0, &val); card 678 drivers/mmc/core/sdio_io.c if ((addr < 0xF0 || addr > 0xFF) && (!mmc_card_lenient_fn0(func->card))) { card 684 drivers/mmc/core/sdio_io.c ret = mmc_io_rw_direct(func->card, 1, 0, addr, b, NULL); card 705 drivers/mmc/core/sdio_io.c return func->card->host->pm_caps; card 728 drivers/mmc/core/sdio_io.c host = func->card->host; card 760 drivers/mmc/core/sdio_io.c func->card->host->retune_crc_disable = true; card 772 drivers/mmc/core/sdio_io.c func->card->host->retune_crc_disable = false; card 795 drivers/mmc/core/sdio_io.c mmc_retune_hold_now(func->card->host); card 811 drivers/mmc/core/sdio_io.c mmc_retune_release(func->card->host); card 32 drivers/mmc/core/sdio_irq.c struct mmc_card *card = host->card; card 37 drivers/mmc/core/sdio_irq.c ret = mmc_io_rw_direct(card, 0, 0, SDIO_CCCR_INTx, 0, pending); card 40 drivers/mmc/core/sdio_irq.c mmc_card_id(card), ret); card 44 drivers/mmc/core/sdio_irq.c if (*pending && mmc_card_broken_irq_polling(card) && card 52 drivers/mmc/core/sdio_irq.c mmc_io_rw_direct(card, 0, 0, 0xff, 0, &dummy); card 60 drivers/mmc/core/sdio_irq.c struct mmc_card *card = host->card; card 67 drivers/mmc/core/sdio_irq.c if (mmc_card_suspended(card)) card 78 drivers/mmc/core/sdio_irq.c func = card->sdio_single_irq; card 91 drivers/mmc/core/sdio_irq.c func = card->sdio_func[i - 1]; card 94 drivers/mmc/core/sdio_irq.c mmc_card_id(card)); card 225 drivers/mmc/core/sdio_irq.c static int sdio_card_irq_get(struct mmc_card *card) card 227 drivers/mmc/core/sdio_irq.c struct mmc_host *host = card->host; card 250 drivers/mmc/core/sdio_irq.c static int sdio_card_irq_put(struct mmc_card *card) card 252 drivers/mmc/core/sdio_irq.c struct mmc_host *host = card->host; card 272 drivers/mmc/core/sdio_irq.c static void sdio_single_irq_set(struct mmc_card *card) card 277 drivers/mmc/core/sdio_irq.c card->sdio_single_irq = NULL; card 278 drivers/mmc/core/sdio_irq.c if ((card->host->caps & MMC_CAP_SDIO_IRQ) && card 279 drivers/mmc/core/sdio_irq.c card->host->sdio_irqs == 1) card 280 drivers/mmc/core/sdio_irq.c for (i = 0; i < card->sdio_funcs; i++) { card 281 drivers/mmc/core/sdio_irq.c func = card->sdio_func[i]; card 283 drivers/mmc/core/sdio_irq.c card->sdio_single_irq = func; card 314 drivers/mmc/core/sdio_irq.c ret = mmc_io_rw_direct(func->card, 0, 0, SDIO_CCCR_IENx, 0, ®); card 322 drivers/mmc/core/sdio_irq.c ret = mmc_io_rw_direct(func->card, 1, 0, SDIO_CCCR_IENx, reg, NULL); card 327 drivers/mmc/core/sdio_irq.c ret = sdio_card_irq_get(func->card); card 330 drivers/mmc/core/sdio_irq.c sdio_single_irq_set(func->card); card 354 drivers/mmc/core/sdio_irq.c sdio_card_irq_put(func->card); card 355 drivers/mmc/core/sdio_irq.c sdio_single_irq_set(func->card); card 358 drivers/mmc/core/sdio_irq.c ret = mmc_io_rw_direct(func->card, 0, 0, SDIO_CCCR_IENx, 0, ®); card 368 drivers/mmc/core/sdio_irq.c ret = mmc_io_rw_direct(func->card, 1, 0, SDIO_CCCR_IENx, reg, NULL); card 108 drivers/mmc/core/sdio_ops.c int mmc_io_rw_direct(struct mmc_card *card, int write, unsigned fn, card 111 drivers/mmc/core/sdio_ops.c return mmc_io_rw_direct_host(card->host, write, fn, addr, in, out); card 114 drivers/mmc/core/sdio_ops.c int mmc_io_rw_extended(struct mmc_card *card, int write, unsigned fn, card 123 drivers/mmc/core/sdio_ops.c unsigned int seg_size = card->host->max_seg_size; card 171 drivers/mmc/core/sdio_ops.c mmc_set_data_timeout(&data, card); card 173 drivers/mmc/core/sdio_ops.c mmc_wait_for_req(card->host, &mrq); card 183 drivers/mmc/core/sdio_ops.c if (mmc_host_is_spi(card->host)) { card 19 drivers/mmc/core/sdio_ops.h int mmc_io_rw_direct(struct mmc_card *card, int write, unsigned fn, card 21 drivers/mmc/core/sdio_ops.h int mmc_io_rw_extended(struct mmc_card *card, int write, unsigned fn, card 633 drivers/mmc/host/cavium.c mmc_card_is_blockaddr(mmc->card) ? 1 : 0) | card 640 drivers/mmc/host/cavium.c if (mmc_card_mmc(mmc->card) || (mmc_card_sd(mmc->card) && card 641 drivers/mmc/host/cavium.c (mmc->card->scr.cmds & SD_SCR_CMD23_SUPPORT))) card 660 drivers/mmc/host/cavium.c dev_err(&mmc->card->dev, card 695 drivers/mmc/host/cavium.c if (mmc_card_sd(mmc->card)) card 320 drivers/mmc/host/cqhci.c static int cqhci_enable(struct mmc_host *mmc, struct mmc_card *card) card 328 drivers/mmc/host/cqhci.c cq_host->rca = card->rca; card 1607 drivers/mmc/host/dw_mmc.c static void dw_mci_init_card(struct mmc_host *mmc, struct mmc_card *card) card 1624 drivers/mmc/host/dw_mmc.c if (card->type == MMC_TYPE_SDIO || card 1625 drivers/mmc/host/dw_mmc.c card->type == MMC_TYPE_SD_COMBO) { card 1016 drivers/mmc/host/mmci.c if (host->mmc->card && mmc_card_sdio(host->mmc->card)) { card 277 drivers/mmc/host/mmci_stm32_sdmmc.c if (host->mmc->card && mmc_card_sdio(host->mmc->card) && card 942 drivers/mmc/host/mtk-sd.c if (mmc_card_mmc(host->mmc->card) && mrq->sbc && card 1208 drivers/mmc/host/mtk-sd.c if (mrq->sbc && (!mmc_card_mmc(mmc->card) || card 931 drivers/mmc/host/mxcmmc.c static void mxcmci_init_card(struct mmc_host *host, struct mmc_card *card) card 942 drivers/mmc/host/mxcmmc.c if (is_imx31_mmc(mxcmci) && card->type == MMC_TYPE_SDIO) card 894 drivers/mmc/host/omap.c if (slot->mmc->card == NULL) card 1509 drivers/mmc/host/omap_hsmmc.c static void omap_hsmmc_init_card(struct mmc_host *mmc, struct mmc_card *card) card 1514 drivers/mmc/host/omap_hsmmc.c mmc_pdata(host)->init_card(card); card 1515 drivers/mmc/host/omap_hsmmc.c else if (card->type == MMC_TYPE_SDIO || card 1516 drivers/mmc/host/omap_hsmmc.c card->type == MMC_TYPE_SD_COMBO) { card 1535 drivers/mmc/host/omap_hsmmc.c card->quirks |= MMC_QUIRK_NONSTD_SDIO; card 1536 drivers/mmc/host/omap_hsmmc.c card->cccr.wide_bus = 1; card 1537 drivers/mmc/host/omap_hsmmc.c card->cis.vendor = 0x104c; card 1538 drivers/mmc/host/omap_hsmmc.c card->cis.device = 0x9066; card 1539 drivers/mmc/host/omap_hsmmc.c card->cis.blksize = 512; card 1540 drivers/mmc/host/omap_hsmmc.c card->cis.max_dtr = 24000000; card 1541 drivers/mmc/host/omap_hsmmc.c card->ocr = 0x80; card 1662 drivers/mmc/host/omap_hsmmc.c static int omap_hsmmc_multi_io_quirk(struct mmc_card *card, card 589 drivers/mmc/host/renesas_sdhi_core.c static int renesas_sdhi_multi_io_quirk(struct mmc_card *card, card 432 drivers/mmc/host/rtsx_pci_sdmmc.c struct mmc_card *card = mmc->card; card 435 drivers/mmc/host/rtsx_pci_sdmmc.c int uhs = mmc_card_uhs(card); card 490 drivers/mmc/host/rtsx_pci_sdmmc.c struct mmc_card *card = mmc->card; card 493 drivers/mmc/host/rtsx_pci_sdmmc.c int uhs = mmc_card_uhs(card); card 538 drivers/mmc/host/sdhci-acpi.c static int amd_select_drive_strength(struct mmc_card *card, card 616 drivers/mmc/host/sdhci-of-esdhc.c if (host->mmc->card && mmc_card_sd(host->mmc->card) && card 596 drivers/mmc/host/sdhci-pci-core.c static int intel_select_drive_strength(struct mmc_card *card, card 600 drivers/mmc/host/sdhci-pci-core.c struct sdhci_host *host = mmc_priv(card->host); card 339 drivers/mmc/host/sdhci-xenon.c static void xenon_init_card(struct mmc_host *mmc, struct mmc_card *card) card 346 drivers/mmc/host/sdhci-xenon.c priv->init_card_type = card->type; card 175 drivers/mmc/host/tmio_mmc.h int (*multi_io_quirk)(struct mmc_card *card, card 595 drivers/mmc/host/tmio_mmc_core.c if ((((ireg & TMIO_STAT_CARD_REMOVE) && mmc->card) || card 596 drivers/mmc/host/tmio_mmc_core.c ((ireg & TMIO_STAT_CARD_INSERT) && !mmc->card)) && card 1013 drivers/mmc/host/tmio_mmc_core.c static int tmio_multi_io_quirk(struct mmc_card *card, card 1016 drivers/mmc/host/tmio_mmc_core.c struct tmio_mmc_host *host = mmc_priv(card->host); card 1019 drivers/mmc/host/tmio_mmc_core.c return host->multi_io_quirk(card, direction, blk_size); card 1654 drivers/mmc/host/usdhi6rol0.c !mmc->card) || card 1656 drivers/mmc/host/usdhi6rol0.c mmc->card))) card 726 drivers/mmc/host/vub300.c } else if (vub300->mmc && vub300->mmc->card) { card 1357 drivers/mmc/host/vub300.c struct mmc_card *card = vub300->mmc->card; card 1358 drivers/mmc/host/vub300.c int sdio_funcs = card->sdio_funcs; card 1361 drivers/mmc/host/vub300.c "vub_%04X%04X", card->cis.vendor, card->cis.device); card 1365 drivers/mmc/host/vub300.c struct sdio_func *sf = card->sdio_func[n]; card 1373 drivers/mmc/host/vub300.c retval = request_firmware(&fw, vub300->vub_name, &card->dev); card 1377 drivers/mmc/host/vub300.c retval = request_firmware(&fw, vub300->vub_name, &card->dev); card 1753 drivers/mmc/host/vub300.c if (likely(vub300->vub_name[0]) || !vub300->mmc->card) { card 1759 drivers/mmc/host/vub300.c } else if (0 == vub300->mmc->card->sdio_funcs) { card 2073 drivers/mmc/host/vub300.c static void vub300_init_card(struct mmc_host *mmc, struct mmc_card *card) card 61 drivers/mtd/maps/vmu-flash.c struct memcard *card; card 67 drivers/mtd/maps/vmu-flash.c card = maple_get_drvdata(mdev); card 69 drivers/mtd/maps/vmu-flash.c if (src_ofs >= card->parts[partition].numblocks * card->blocklen) card 72 drivers/mtd/maps/vmu-flash.c num = src_ofs / card->blocklen; card 73 drivers/mtd/maps/vmu-flash.c if (num > card->parts[partition].numblocks) card 81 drivers/mtd/maps/vmu-flash.c vblock->ofs = src_ofs % card->blocklen; card 92 drivers/mtd/maps/vmu-flash.c struct memcard *card; card 95 drivers/mtd/maps/vmu-flash.c card = maple_get_drvdata(mdev); card 98 drivers/mtd/maps/vmu-flash.c if (unlikely(!card->blockread)) card 101 drivers/mtd/maps/vmu-flash.c memcpy(card->blockread, mq->recvbuf->buf + 12, card 102 drivers/mtd/maps/vmu-flash.c card->blocklen/card->readcnt); card 112 drivers/mtd/maps/vmu-flash.c struct memcard *card; card 123 drivers/mtd/maps/vmu-flash.c card = maple_get_drvdata(mdev); card 124 drivers/mtd/maps/vmu-flash.c pcache = card->parts[partition].pcache; card 129 drivers/mtd/maps/vmu-flash.c pcache->buffer = kmalloc(card->blocklen, GFP_KERNEL); card 144 drivers/mtd/maps/vmu-flash.c for (x = 0; x < card->readcnt; x++) { card 159 drivers/mtd/maps/vmu-flash.c blockread = kmalloc(card->blocklen/card->readcnt, GFP_KERNEL); card 165 drivers/mtd/maps/vmu-flash.c card->blockread = blockread; card 184 drivers/mtd/maps/vmu-flash.c card->blockread = NULL; card 188 drivers/mtd/maps/vmu-flash.c card->blockread = NULL; card 205 drivers/mtd/maps/vmu-flash.c memcpy(buf + (card->blocklen/card->readcnt) * x, blockread, card 206 drivers/mtd/maps/vmu-flash.c card->blocklen/card->readcnt); card 208 drivers/mtd/maps/vmu-flash.c memcpy(pcache->buffer + (card->blocklen/card->readcnt) * x, card 209 drivers/mtd/maps/vmu-flash.c card->blockread, card->blocklen/card->readcnt); card 210 drivers/mtd/maps/vmu-flash.c card->blockread = NULL; card 229 drivers/mtd/maps/vmu-flash.c struct memcard *card; card 238 drivers/mtd/maps/vmu-flash.c card = maple_get_drvdata(mdev); card 240 drivers/mtd/maps/vmu-flash.c phaselen = card->blocklen/card->writecnt; card 247 drivers/mtd/maps/vmu-flash.c for (x = 0; x < card->writecnt; x++) { card 291 drivers/mtd/maps/vmu-flash.c return card->blocklen; card 306 drivers/mtd/maps/vmu-flash.c struct memcard *card; card 315 drivers/mtd/maps/vmu-flash.c card = maple_get_drvdata(mdev); card 318 drivers/mtd/maps/vmu-flash.c buf = kmalloc(card->blocklen, GFP_KERNEL); card 354 drivers/mtd/maps/vmu-flash.c struct memcard *card; card 364 drivers/mtd/maps/vmu-flash.c card = maple_get_drvdata(mdev); card 366 drivers/mtd/maps/vmu-flash.c numblocks = card->parts[partition].numblocks; card 367 drivers/mtd/maps/vmu-flash.c if (from + len > numblocks * card->blocklen) card 368 drivers/mtd/maps/vmu-flash.c len = numblocks * card->blocklen - from; card 372 drivers/mtd/maps/vmu-flash.c pcache = card->parts[partition].pcache; card 382 drivers/mtd/maps/vmu-flash.c leftover = card->blocklen - vblock->ofs; card 383 drivers/mtd/maps/vmu-flash.c if (vblock->ofs + len - index < card->blocklen) { card 420 drivers/mtd/maps/vmu-flash.c struct memcard *card; card 430 drivers/mtd/maps/vmu-flash.c card = maple_get_drvdata(mdev); card 432 drivers/mtd/maps/vmu-flash.c numblocks = card->parts[partition].numblocks; card 433 drivers/mtd/maps/vmu-flash.c if (to + len > numblocks * card->blocklen) card 434 drivers/mtd/maps/vmu-flash.c len = numblocks * card->blocklen - to; card 446 drivers/mtd/maps/vmu-flash.c buffer = kmalloc(card->blocklen, GFP_KERNEL); card 464 drivers/mtd/maps/vmu-flash.c } while (vblock->ofs < card->blocklen); card 469 drivers/mtd/maps/vmu-flash.c pcache = card->parts[partition].pcache; card 472 drivers/mtd/maps/vmu-flash.c if (error != card->blocklen) card 503 drivers/mtd/maps/vmu-flash.c struct memcard *card; card 512 drivers/mtd/maps/vmu-flash.c card = maple_get_drvdata(mdev); card 514 drivers/mtd/maps/vmu-flash.c card->tempA = res[12]; card 515 drivers/mtd/maps/vmu-flash.c card->tempB = res[6]; card 518 drivers/mtd/maps/vmu-flash.c "blocks with a root block at %d\n", card->partition, card 519 drivers/mtd/maps/vmu-flash.c card->tempA, card->tempB); card 521 drivers/mtd/maps/vmu-flash.c part_cur = &card->parts[card->partition]; card 522 drivers/mtd/maps/vmu-flash.c part_cur->user_blocks = card->tempA; card 523 drivers/mtd/maps/vmu-flash.c part_cur->root_block = card->tempB; card 524 drivers/mtd/maps/vmu-flash.c part_cur->numblocks = card->tempB + 1; card 530 drivers/mtd/maps/vmu-flash.c mdev->port, mdev->unit, card->partition); card 531 drivers/mtd/maps/vmu-flash.c mtd_cur = &card->mtd[card->partition]; card 535 drivers/mtd/maps/vmu-flash.c mtd_cur->size = part_cur->numblocks * card->blocklen; card 536 drivers/mtd/maps/vmu-flash.c mtd_cur->erasesize = card->blocklen; card 540 drivers/mtd/maps/vmu-flash.c mtd_cur->writesize = card->blocklen; card 547 drivers/mtd/maps/vmu-flash.c mpart->partition = card->partition; card 567 drivers/mtd/maps/vmu-flash.c if (++card->partition < card->partitions) { card 568 drivers/mtd/maps/vmu-flash.c partnum = cpu_to_be32(card->partition << 24); card 579 drivers/mtd/maps/vmu-flash.c for (error = 0; error <= card->partition; error++) { card 580 drivers/mtd/maps/vmu-flash.c kfree(((card->parts)[error]).pcache); card 581 drivers/mtd/maps/vmu-flash.c ((card->parts)[error]).pcache = NULL; card 585 drivers/mtd/maps/vmu-flash.c for (error = 0; error <= card->partition; error++) { card 586 drivers/mtd/maps/vmu-flash.c kfree(((card->mtd)[error]).priv); card 587 drivers/mtd/maps/vmu-flash.c ((card->mtd)[error]).priv = NULL; card 601 drivers/mtd/maps/vmu-flash.c struct memcard *card; card 612 drivers/mtd/maps/vmu-flash.c card = kmalloc(sizeof(struct memcard), GFP_KERNEL); card 613 drivers/mtd/maps/vmu-flash.c if (!card) { card 618 drivers/mtd/maps/vmu-flash.c card->partitions = (basic_flash_data >> 24 & 0xFF) + 1; card 619 drivers/mtd/maps/vmu-flash.c card->blocklen = ((basic_flash_data >> 16 & 0xFF) + 1) << 5; card 620 drivers/mtd/maps/vmu-flash.c card->writecnt = basic_flash_data >> 12 & 0xF; card 621 drivers/mtd/maps/vmu-flash.c card->readcnt = basic_flash_data >> 8 & 0xF; card 622 drivers/mtd/maps/vmu-flash.c card->removeable = basic_flash_data >> 7 & 1; card 624 drivers/mtd/maps/vmu-flash.c card->partition = 0; card 630 drivers/mtd/maps/vmu-flash.c card->parts = kmalloc_array(card->partitions, sizeof(struct vmupart), card 632 drivers/mtd/maps/vmu-flash.c if (!card->parts) { card 637 drivers/mtd/maps/vmu-flash.c card->mtd = kmalloc_array(card->partitions, sizeof(struct mtd_info), card 639 drivers/mtd/maps/vmu-flash.c if (!card->mtd) { card 644 drivers/mtd/maps/vmu-flash.c maple_set_drvdata(mdev, card); card 682 drivers/mtd/maps/vmu-flash.c kfree(card->mtd); card 684 drivers/mtd/maps/vmu-flash.c kfree(card->parts); card 686 drivers/mtd/maps/vmu-flash.c kfree(card); card 693 drivers/mtd/maps/vmu-flash.c struct memcard *card; card 698 drivers/mtd/maps/vmu-flash.c card = maple_get_drvdata(mdev); card 699 drivers/mtd/maps/vmu-flash.c for (x = 0; x < card->partitions; x++) { card 700 drivers/mtd/maps/vmu-flash.c mpart = ((card->mtd)[x]).priv; card 702 drivers/mtd/maps/vmu-flash.c mtd_device_unregister(&((card->mtd)[x])); card 703 drivers/mtd/maps/vmu-flash.c kfree(((card->parts)[x]).name); card 705 drivers/mtd/maps/vmu-flash.c kfree(card->parts); card 706 drivers/mtd/maps/vmu-flash.c kfree(card->mtd); card 707 drivers/mtd/maps/vmu-flash.c kfree(card); card 715 drivers/mtd/maps/vmu-flash.c struct memcard *card; card 719 drivers/mtd/maps/vmu-flash.c card = maple_get_drvdata(mdev); card 720 drivers/mtd/maps/vmu-flash.c for (x = 0; x < card->partitions; x++) { card 721 drivers/mtd/maps/vmu-flash.c mtd = &((card->mtd)[x]); card 69 drivers/net/arcnet/com20020-pci.c struct com20020_dev *card; card 73 drivers/net/arcnet/com20020-pci.c card = container_of(led_cdev, struct com20020_dev, tx_led); card 75 drivers/net/arcnet/com20020-pci.c priv = card->pci_priv; card 78 drivers/net/arcnet/com20020-pci.c outb(!!value, priv->misc + ci->leds[card->index].green); card 84 drivers/net/arcnet/com20020-pci.c struct com20020_dev *card; card 88 drivers/net/arcnet/com20020-pci.c card = container_of(led_cdev, struct com20020_dev, recon_led); card 90 drivers/net/arcnet/com20020-pci.c priv = card->pci_priv; card 93 drivers/net/arcnet/com20020-pci.c outb(!!value, priv->misc + ci->leds[card->index].red); card 158 drivers/net/arcnet/com20020-pci.c struct com20020_dev *card; card 226 drivers/net/arcnet/com20020-pci.c card = devm_kzalloc(&pdev->dev, sizeof(struct com20020_dev), card 228 drivers/net/arcnet/com20020-pci.c if (!card) { card 233 drivers/net/arcnet/com20020-pci.c card->index = i; card 234 drivers/net/arcnet/com20020-pci.c card->pci_priv = priv; card 235 drivers/net/arcnet/com20020-pci.c card->tx_led.brightness_set = led_tx_set; card 236 drivers/net/arcnet/com20020-pci.c card->tx_led.default_trigger = devm_kasprintf(&pdev->dev, card 239 drivers/net/arcnet/com20020-pci.c card->tx_led.name = devm_kasprintf(&pdev->dev, GFP_KERNEL, card 243 drivers/net/arcnet/com20020-pci.c card->tx_led.dev = &dev->dev; card 244 drivers/net/arcnet/com20020-pci.c card->recon_led.brightness_set = led_recon_set; card 245 drivers/net/arcnet/com20020-pci.c card->recon_led.default_trigger = devm_kasprintf(&pdev->dev, card 248 drivers/net/arcnet/com20020-pci.c card->recon_led.name = devm_kasprintf(&pdev->dev, GFP_KERNEL, card 251 drivers/net/arcnet/com20020-pci.c card->recon_led.dev = &dev->dev; card 252 drivers/net/arcnet/com20020-pci.c card->dev = dev; card 254 drivers/net/arcnet/com20020-pci.c ret = devm_led_classdev_register(&pdev->dev, &card->tx_led); card 258 drivers/net/arcnet/com20020-pci.c ret = devm_led_classdev_register(&pdev->dev, &card->recon_led); card 262 drivers/net/arcnet/com20020-pci.c dev_set_drvdata(&dev->dev, card); card 270 drivers/net/arcnet/com20020-pci.c list_add(&card->list, &priv->list_dev); card 284 drivers/net/arcnet/com20020-pci.c struct com20020_dev *card, *tmpcard; card 289 drivers/net/arcnet/com20020-pci.c list_for_each_entry_safe(card, tmpcard, &priv->list_dev, list) { card 290 drivers/net/arcnet/com20020-pci.c struct net_device *dev = card->dev; card 107 drivers/net/can/sja1000/ems_pci.c static u8 ems_pci_v1_readb(struct ems_pci_card *card, unsigned int port) card 109 drivers/net/can/sja1000/ems_pci.c return readb(card->base_addr + (port * 4)); card 125 drivers/net/can/sja1000/ems_pci.c struct ems_pci_card *card = (struct ems_pci_card *)priv->priv; card 129 drivers/net/can/sja1000/ems_pci.c card->conf_addr + PITA2_ICR); card 145 drivers/net/can/sja1000/ems_pci.c struct ems_pci_card *card = (struct ems_pci_card *)priv->priv; card 147 drivers/net/can/sja1000/ems_pci.c writel(PLX_ICSR_ENA_CLR, card->conf_addr + PLX_ICSR); card 174 drivers/net/can/sja1000/ems_pci.c struct ems_pci_card *card = pci_get_drvdata(pdev); card 178 drivers/net/can/sja1000/ems_pci.c for (i = 0; i < card->channels; i++) { card 179 drivers/net/can/sja1000/ems_pci.c dev = card->net_dev[i]; card 189 drivers/net/can/sja1000/ems_pci.c if (card->base_addr != NULL) card 190 drivers/net/can/sja1000/ems_pci.c pci_iounmap(card->pci_dev, card->base_addr); card 192 drivers/net/can/sja1000/ems_pci.c if (card->conf_addr != NULL) card 193 drivers/net/can/sja1000/ems_pci.c pci_iounmap(card->pci_dev, card->conf_addr); card 195 drivers/net/can/sja1000/ems_pci.c kfree(card); card 200 drivers/net/can/sja1000/ems_pci.c static void ems_pci_card_reset(struct ems_pci_card *card) card 203 drivers/net/can/sja1000/ems_pci.c writeb(0, card->base_addr); card 215 drivers/net/can/sja1000/ems_pci.c struct ems_pci_card *card; card 226 drivers/net/can/sja1000/ems_pci.c card = kzalloc(sizeof(struct ems_pci_card), GFP_KERNEL); card 227 drivers/net/can/sja1000/ems_pci.c if (card == NULL) { card 232 drivers/net/can/sja1000/ems_pci.c pci_set_drvdata(pdev, card); card 234 drivers/net/can/sja1000/ems_pci.c card->pci_dev = pdev; card 236 drivers/net/can/sja1000/ems_pci.c card->channels = 0; card 239 drivers/net/can/sja1000/ems_pci.c card->version = 2; /* CPC-PCI v2 */ card 244 drivers/net/can/sja1000/ems_pci.c card->version = 1; /* CPC-PCI v1 */ card 251 drivers/net/can/sja1000/ems_pci.c card->conf_addr = pci_iomap(pdev, 0, conf_size); card 252 drivers/net/can/sja1000/ems_pci.c if (card->conf_addr == NULL) { card 257 drivers/net/can/sja1000/ems_pci.c card->base_addr = pci_iomap(pdev, base_bar, EMS_PCI_BASE_SIZE); card 258 drivers/net/can/sja1000/ems_pci.c if (card->base_addr == NULL) { card 263 drivers/net/can/sja1000/ems_pci.c if (card->version == 1) { card 265 drivers/net/can/sja1000/ems_pci.c writel(PITA2_MISC_CONFIG, card->conf_addr + PITA2_MISC); card 268 drivers/net/can/sja1000/ems_pci.c if (ems_pci_v1_readb(card, 0) != 0x55 || card 269 drivers/net/can/sja1000/ems_pci.c ems_pci_v1_readb(card, 1) != 0xAA || card 270 drivers/net/can/sja1000/ems_pci.c ems_pci_v1_readb(card, 2) != 0x01 || card 271 drivers/net/can/sja1000/ems_pci.c ems_pci_v1_readb(card, 3) != 0xCB || card 272 drivers/net/can/sja1000/ems_pci.c ems_pci_v1_readb(card, 4) != 0x11) { card 280 drivers/net/can/sja1000/ems_pci.c ems_pci_card_reset(card); card 290 drivers/net/can/sja1000/ems_pci.c card->net_dev[i] = dev; card 292 drivers/net/can/sja1000/ems_pci.c priv->priv = card; card 296 drivers/net/can/sja1000/ems_pci.c priv->reg_base = card->base_addr + EMS_PCI_CAN_BASE_OFFSET card 298 drivers/net/can/sja1000/ems_pci.c if (card->version == 1) { card 317 drivers/net/can/sja1000/ems_pci.c if (card->version == 1) card 320 drivers/net/can/sja1000/ems_pci.c card->conf_addr + PITA2_ICR); card 324 drivers/net/can/sja1000/ems_pci.c card->conf_addr + PLX_ICSR); card 335 drivers/net/can/sja1000/ems_pci.c card->channels++; card 84 drivers/net/can/sja1000/ems_pcmcia.c struct ems_pcmcia_card *card = dev_id; card 90 drivers/net/can/sja1000/ems_pcmcia.c if (readw(card->base_addr) != 0xAA55) card 97 drivers/net/can/sja1000/ems_pcmcia.c for (i = 0; i < card->channels; i++) { card 98 drivers/net/can/sja1000/ems_pcmcia.c dev = card->net_dev[i]; card 133 drivers/net/can/sja1000/ems_pcmcia.c struct ems_pcmcia_card *card = pdev->priv; card 137 drivers/net/can/sja1000/ems_pcmcia.c free_irq(pdev->irq, card); card 139 drivers/net/can/sja1000/ems_pcmcia.c for (i = 0; i < card->channels; i++) { card 140 drivers/net/can/sja1000/ems_pcmcia.c dev = card->net_dev[i]; card 150 drivers/net/can/sja1000/ems_pcmcia.c writeb(EMS_CMD_UMAP, card->base_addr); card 151 drivers/net/can/sja1000/ems_pcmcia.c iounmap(card->base_addr); card 152 drivers/net/can/sja1000/ems_pcmcia.c kfree(card); card 165 drivers/net/can/sja1000/ems_pcmcia.c struct ems_pcmcia_card *card; card 169 drivers/net/can/sja1000/ems_pcmcia.c card = kzalloc(sizeof(struct ems_pcmcia_card), GFP_KERNEL); card 170 drivers/net/can/sja1000/ems_pcmcia.c if (!card) card 173 drivers/net/can/sja1000/ems_pcmcia.c pdev->priv = card; card 174 drivers/net/can/sja1000/ems_pcmcia.c card->channels = 0; card 176 drivers/net/can/sja1000/ems_pcmcia.c card->base_addr = ioremap(base, EMS_PCMCIA_MEM_SIZE); card 177 drivers/net/can/sja1000/ems_pcmcia.c if (!card->base_addr) { card 183 drivers/net/can/sja1000/ems_pcmcia.c if (readw(card->base_addr) != 0xAA55) { card 189 drivers/net/can/sja1000/ems_pcmcia.c writeb(EMS_CMD_RESET, card->base_addr); card 192 drivers/net/can/sja1000/ems_pcmcia.c writeb(EMS_CMD_MAP, card->base_addr); card 202 drivers/net/can/sja1000/ems_pcmcia.c card->net_dev[i] = dev; card 204 drivers/net/can/sja1000/ems_pcmcia.c priv->priv = card; card 210 drivers/net/can/sja1000/ems_pcmcia.c priv->reg_base = card->base_addr + EMS_PCMCIA_CAN_BASE_OFFSET + card 229 drivers/net/can/sja1000/ems_pcmcia.c card->channels++; card 239 drivers/net/can/sja1000/ems_pcmcia.c DRV_NAME, card); card 64 drivers/net/can/sja1000/f81601.c struct f81601_pci_card *card = priv->priv; card 67 drivers/net/can/sja1000/f81601.c spin_lock_irqsave(&card->lock, flags); card 70 drivers/net/can/sja1000/f81601.c spin_unlock_irqrestore(&card->lock, flags); card 75 drivers/net/can/sja1000/f81601.c struct f81601_pci_card *card = pci_get_drvdata(pdev); card 79 drivers/net/can/sja1000/f81601.c for (i = 0; i < ARRAY_SIZE(card->net_dev); i++) { card 80 drivers/net/can/sja1000/f81601.c dev = card->net_dev[i]; card 99 drivers/net/can/sja1000/f81601.c struct f81601_pci_card *card; card 111 drivers/net/can/sja1000/f81601.c card = devm_kzalloc(&pdev->dev, sizeof(*card), GFP_KERNEL); card 112 drivers/net/can/sja1000/f81601.c if (!card) card 115 drivers/net/can/sja1000/f81601.c card->dev = pdev; card 116 drivers/net/can/sja1000/f81601.c spin_lock_init(&card->lock); card 118 drivers/net/can/sja1000/f81601.c pci_set_drvdata(pdev, card); card 136 drivers/net/can/sja1000/f81601.c card->addr = pcim_iomap(pdev, 0, pci_resource_len(pdev, 0)); card 138 drivers/net/can/sja1000/f81601.c if (!card->addr) { card 145 drivers/net/can/sja1000/f81601.c count = ARRAY_SIZE(card->net_dev); card 158 drivers/net/can/sja1000/f81601.c priv->priv = card; card 160 drivers/net/can/sja1000/f81601.c priv->reg_base = card->addr + 0x80 * i; card 186 drivers/net/can/sja1000/f81601.c card->net_dev[i] = dev; card 158 drivers/net/can/sja1000/peak_pci.c static inline void pita_set_scl_highz(struct peak_pciec_card *card) card 160 drivers/net/can/sja1000/peak_pci.c u8 gp_outen = readb(card->cfg_base + PITA_GPOEN) & ~PITA_GPIN_SCL; card 161 drivers/net/can/sja1000/peak_pci.c writeb(gp_outen, card->cfg_base + PITA_GPOEN); card 164 drivers/net/can/sja1000/peak_pci.c static inline void pita_set_sda_highz(struct peak_pciec_card *card) card 166 drivers/net/can/sja1000/peak_pci.c u8 gp_outen = readb(card->cfg_base + PITA_GPOEN) & ~PITA_GPIN_SDA; card 167 drivers/net/can/sja1000/peak_pci.c writeb(gp_outen, card->cfg_base + PITA_GPOEN); card 170 drivers/net/can/sja1000/peak_pci.c static void peak_pciec_init_pita_gpio(struct peak_pciec_card *card) card 173 drivers/net/can/sja1000/peak_pci.c pita_set_scl_highz(card); card 174 drivers/net/can/sja1000/peak_pci.c pita_set_sda_highz(card); card 179 drivers/net/can/sja1000/peak_pci.c struct peak_pciec_card *card = (struct peak_pciec_card *)data; card 183 drivers/net/can/sja1000/peak_pci.c gp_out = readb(card->cfg_base + PITA_GPOUT) & ~PITA_GPIN_SDA; card 184 drivers/net/can/sja1000/peak_pci.c writeb(gp_out, card->cfg_base + PITA_GPOUT); card 187 drivers/net/can/sja1000/peak_pci.c gp_outen = readb(card->cfg_base + PITA_GPOEN); card 193 drivers/net/can/sja1000/peak_pci.c writeb(gp_outen, card->cfg_base + PITA_GPOEN); card 198 drivers/net/can/sja1000/peak_pci.c struct peak_pciec_card *card = (struct peak_pciec_card *)data; card 202 drivers/net/can/sja1000/peak_pci.c gp_out = readb(card->cfg_base + PITA_GPOUT) & ~PITA_GPIN_SCL; card 203 drivers/net/can/sja1000/peak_pci.c writeb(gp_out, card->cfg_base + PITA_GPOUT); card 206 drivers/net/can/sja1000/peak_pci.c gp_outen = readb(card->cfg_base + PITA_GPOEN); card 212 drivers/net/can/sja1000/peak_pci.c writeb(gp_outen, card->cfg_base + PITA_GPOEN); card 217 drivers/net/can/sja1000/peak_pci.c struct peak_pciec_card *card = (struct peak_pciec_card *)data; card 220 drivers/net/can/sja1000/peak_pci.c pita_set_sda_highz(card); card 222 drivers/net/can/sja1000/peak_pci.c return (readb(card->cfg_base + PITA_GPIN) & PITA_GPIN_SDA) ? 1 : 0; card 227 drivers/net/can/sja1000/peak_pci.c struct peak_pciec_card *card = (struct peak_pciec_card *)data; card 230 drivers/net/can/sja1000/peak_pci.c pita_set_scl_highz(card); card 232 drivers/net/can/sja1000/peak_pci.c return (readb(card->cfg_base + PITA_GPIN) & PITA_GPIN_SCL) ? 1 : 0; card 238 drivers/net/can/sja1000/peak_pci.c static int peak_pciec_write_pca9553(struct peak_pciec_card *card, card 253 drivers/net/can/sja1000/peak_pci.c if ((offset == 5) && (data == card->led_cache)) card 256 drivers/net/can/sja1000/peak_pci.c ret = i2c_transfer(&card->led_chip, &msg, 1); card 261 drivers/net/can/sja1000/peak_pci.c card->led_cache = data; card 271 drivers/net/can/sja1000/peak_pci.c struct peak_pciec_card *card = card 274 drivers/net/can/sja1000/peak_pci.c u8 new_led = card->led_cache; card 278 drivers/net/can/sja1000/peak_pci.c for (i = 0; i < card->chan_count; i++) { card 283 drivers/net/can/sja1000/peak_pci.c netdev = card->channel[i].netdev; card 294 drivers/net/can/sja1000/peak_pci.c if (netdev->stats.rx_bytes != card->channel[i].prev_rx_bytes) { card 295 drivers/net/can/sja1000/peak_pci.c card->channel[i].prev_rx_bytes = netdev->stats.rx_bytes; card 299 drivers/net/can/sja1000/peak_pci.c if (netdev->stats.tx_bytes != card->channel[i].prev_tx_bytes) { card 300 drivers/net/can/sja1000/peak_pci.c card->channel[i].prev_tx_bytes = netdev->stats.tx_bytes; card 307 drivers/net/can/sja1000/peak_pci.c peak_pciec_write_pca9553(card, 5, new_led); card 311 drivers/net/can/sja1000/peak_pci.c schedule_delayed_work(&card->led_work, HZ); card 317 drivers/net/can/sja1000/peak_pci.c static void peak_pciec_set_leds(struct peak_pciec_card *card, u8 led_mask, u8 s) card 319 drivers/net/can/sja1000/peak_pci.c u8 new_led = card->led_cache; card 323 drivers/net/can/sja1000/peak_pci.c for (i = 0; i < card->chan_count; i++) card 330 drivers/net/can/sja1000/peak_pci.c peak_pciec_write_pca9553(card, 5, new_led); card 336 drivers/net/can/sja1000/peak_pci.c static void peak_pciec_start_led_work(struct peak_pciec_card *card) card 338 drivers/net/can/sja1000/peak_pci.c schedule_delayed_work(&card->led_work, HZ); card 344 drivers/net/can/sja1000/peak_pci.c static void peak_pciec_stop_led_work(struct peak_pciec_card *card) card 346 drivers/net/can/sja1000/peak_pci.c cancel_delayed_work_sync(&card->led_work); card 352 drivers/net/can/sja1000/peak_pci.c static int peak_pciec_init_leds(struct peak_pciec_card *card) card 357 drivers/net/can/sja1000/peak_pci.c err = peak_pciec_write_pca9553(card, 1, 44 / 1); card 362 drivers/net/can/sja1000/peak_pci.c err = peak_pciec_write_pca9553(card, 2, 0x80); card 367 drivers/net/can/sja1000/peak_pci.c err = peak_pciec_write_pca9553(card, 3, 44 / 5); card 372 drivers/net/can/sja1000/peak_pci.c err = peak_pciec_write_pca9553(card, 4, 0x80); card 377 drivers/net/can/sja1000/peak_pci.c return peak_pciec_write_pca9553(card, 5, PCA9553_LS0_INIT); card 383 drivers/net/can/sja1000/peak_pci.c static void peak_pciec_leds_exit(struct peak_pciec_card *card) card 386 drivers/net/can/sja1000/peak_pci.c peak_pciec_write_pca9553(card, 5, PCA9553_LED_OFF_ALL); card 397 drivers/net/can/sja1000/peak_pci.c struct peak_pciec_card *card = chan->pciec_card; card 398 drivers/net/can/sja1000/peak_pci.c int c = (priv->reg_base - card->reg_base) / PEAK_PCI_CHAN_SIZE; card 405 drivers/net/can/sja1000/peak_pci.c peak_pciec_set_leds(card, PCA9553_LED(c), PCA9553_ON); card 409 drivers/net/can/sja1000/peak_pci.c peak_pciec_set_leds(card, PCA9553_LED(c), PCA9553_SLOW); card 410 drivers/net/can/sja1000/peak_pci.c peak_pciec_start_led_work(card); card 433 drivers/net/can/sja1000/peak_pci.c struct peak_pciec_card *card; card 441 drivers/net/can/sja1000/peak_pci.c card = prev_chan->pciec_card; card 442 drivers/net/can/sja1000/peak_pci.c if (!card) card 448 drivers/net/can/sja1000/peak_pci.c card = kzalloc(sizeof(struct peak_pciec_card), GFP_KERNEL); card 449 drivers/net/can/sja1000/peak_pci.c if (!card) card 452 drivers/net/can/sja1000/peak_pci.c card->cfg_base = chan->cfg_base; card 453 drivers/net/can/sja1000/peak_pci.c card->reg_base = priv->reg_base; card 455 drivers/net/can/sja1000/peak_pci.c card->led_chip.owner = THIS_MODULE; card 456 drivers/net/can/sja1000/peak_pci.c card->led_chip.dev.parent = &pdev->dev; card 457 drivers/net/can/sja1000/peak_pci.c card->led_chip.algo_data = &card->i2c_bit; card 458 drivers/net/can/sja1000/peak_pci.c strncpy(card->led_chip.name, "peak_i2c", card 459 drivers/net/can/sja1000/peak_pci.c sizeof(card->led_chip.name)); card 461 drivers/net/can/sja1000/peak_pci.c card->i2c_bit = peak_pciec_i2c_bit_ops; card 462 drivers/net/can/sja1000/peak_pci.c card->i2c_bit.udelay = 10; card 463 drivers/net/can/sja1000/peak_pci.c card->i2c_bit.timeout = HZ; card 464 drivers/net/can/sja1000/peak_pci.c card->i2c_bit.data = card; card 466 drivers/net/can/sja1000/peak_pci.c peak_pciec_init_pita_gpio(card); card 468 drivers/net/can/sja1000/peak_pci.c err = i2c_bit_add_bus(&card->led_chip); card 474 drivers/net/can/sja1000/peak_pci.c err = peak_pciec_init_leds(card); card 480 drivers/net/can/sja1000/peak_pci.c INIT_DELAYED_WORK(&card->led_work, peak_pciec_led_work); card 485 drivers/net/can/sja1000/peak_pci.c chan->pciec_card = card; card 486 drivers/net/can/sja1000/peak_pci.c card->channel[card->chan_count++].netdev = dev; card 491 drivers/net/can/sja1000/peak_pci.c i2c_del_adapter(&card->led_chip); card 494 drivers/net/can/sja1000/peak_pci.c peak_pciec_init_pita_gpio(card); card 495 drivers/net/can/sja1000/peak_pci.c kfree(card); card 500 drivers/net/can/sja1000/peak_pci.c static void peak_pciec_remove(struct peak_pciec_card *card) card 502 drivers/net/can/sja1000/peak_pci.c peak_pciec_stop_led_work(card); card 503 drivers/net/can/sja1000/peak_pci.c peak_pciec_leds_exit(card); card 504 drivers/net/can/sja1000/peak_pci.c i2c_del_adapter(&card->led_chip); card 505 drivers/net/can/sja1000/peak_pci.c peak_pciec_init_pita_gpio(card); card 506 drivers/net/can/sja1000/peak_pci.c kfree(card); card 519 drivers/net/can/sja1000/peak_pci.c static inline void peak_pciec_remove(struct peak_pciec_card *card) card 155 drivers/net/can/sja1000/peak_pcmcia.c static void pcan_set_leds(struct pcan_pccard *card, u8 mask, u8 state); card 160 drivers/net/can/sja1000/peak_pcmcia.c static void pcan_start_led_timer(struct pcan_pccard *card) card 162 drivers/net/can/sja1000/peak_pcmcia.c if (!timer_pending(&card->led_timer)) card 163 drivers/net/can/sja1000/peak_pcmcia.c mod_timer(&card->led_timer, jiffies + HZ); card 169 drivers/net/can/sja1000/peak_pcmcia.c static void pcan_stop_led_timer(struct pcan_pccard *card) card 171 drivers/net/can/sja1000/peak_pcmcia.c del_timer_sync(&card->led_timer); card 187 drivers/net/can/sja1000/peak_pcmcia.c struct pcan_pccard *card = priv->priv; card 188 drivers/net/can/sja1000/peak_pcmcia.c int c = (priv->reg_base - card->ioport_addr) / PCC_CHAN_SIZE; card 195 drivers/net/can/sja1000/peak_pcmcia.c pcan_set_leds(card, PCC_LED(c), PCC_LED_ON); card 199 drivers/net/can/sja1000/peak_pcmcia.c pcan_set_leds(card, PCC_LED(c), PCC_LED_SLOW); card 200 drivers/net/can/sja1000/peak_pcmcia.c pcan_start_led_timer(card); card 212 drivers/net/can/sja1000/peak_pcmcia.c static u8 pcan_read_reg(struct pcan_pccard *card, int port) card 214 drivers/net/can/sja1000/peak_pcmcia.c return ioread8(card->ioport_addr + PCC_COMN_OFF + port); card 220 drivers/net/can/sja1000/peak_pcmcia.c static void pcan_write_reg(struct pcan_pccard *card, int port, u8 v) card 224 drivers/net/can/sja1000/peak_pcmcia.c if (card->ccr == v) card 226 drivers/net/can/sja1000/peak_pcmcia.c card->ccr = v; card 229 drivers/net/can/sja1000/peak_pcmcia.c iowrite8(v, card->ioport_addr + PCC_COMN_OFF + port); card 236 drivers/net/can/sja1000/peak_pcmcia.c static inline int pcan_pccard_present(struct pcan_pccard *card) card 238 drivers/net/can/sja1000/peak_pcmcia.c return ((pcan_read_reg(card, PCC_FW_MAJOR) == card->fw_major) && card 239 drivers/net/can/sja1000/peak_pcmcia.c (pcan_read_reg(card, PCC_FW_MINOR) == card->fw_minor)); card 245 drivers/net/can/sja1000/peak_pcmcia.c static int pcan_wait_spi_busy(struct pcan_pccard *card) card 251 drivers/net/can/sja1000/peak_pcmcia.c while (pcan_read_reg(card, PCC_CSR) & PCC_CSR_SPI_BUSY) { card 263 drivers/net/can/sja1000/peak_pcmcia.c static int pcan_write_eeprom(struct pcan_pccard *card, u16 addr, u8 v) card 269 drivers/net/can/sja1000/peak_pcmcia.c pcan_write_reg(card, PCC_SPI_IR, PCC_EEP_WREN); card 270 drivers/net/can/sja1000/peak_pcmcia.c err = pcan_wait_spi_busy(card); card 277 drivers/net/can/sja1000/peak_pcmcia.c pcan_write_reg(card, PCC_SPI_IR, PCC_EEP_RDSR); card 278 drivers/net/can/sja1000/peak_pcmcia.c err = pcan_wait_spi_busy(card); card 283 drivers/net/can/sja1000/peak_pcmcia.c status = pcan_read_reg(card, PCC_SPI_DIR); card 289 drivers/net/can/sja1000/peak_pcmcia.c dev_err(&card->pdev->dev, card 295 drivers/net/can/sja1000/peak_pcmcia.c pcan_write_reg(card, PCC_SPI_ADR, addr & 0xff); card 296 drivers/net/can/sja1000/peak_pcmcia.c pcan_write_reg(card, PCC_SPI_DOR, v); card 302 drivers/net/can/sja1000/peak_pcmcia.c pcan_write_reg(card, PCC_SPI_IR, PCC_EEP_WRITE(addr)); card 303 drivers/net/can/sja1000/peak_pcmcia.c err = pcan_wait_spi_busy(card); card 310 drivers/net/can/sja1000/peak_pcmcia.c pcan_write_reg(card, PCC_SPI_IR, PCC_EEP_RDSR); card 311 drivers/net/can/sja1000/peak_pcmcia.c err = pcan_wait_spi_busy(card); card 316 drivers/net/can/sja1000/peak_pcmcia.c status = pcan_read_reg(card, PCC_SPI_DIR); card 322 drivers/net/can/sja1000/peak_pcmcia.c dev_err(&card->pdev->dev, card 328 drivers/net/can/sja1000/peak_pcmcia.c pcan_write_reg(card, PCC_SPI_IR, PCC_EEP_WRDI); card 329 drivers/net/can/sja1000/peak_pcmcia.c err = pcan_wait_spi_busy(card); card 336 drivers/net/can/sja1000/peak_pcmcia.c dev_err(&card->pdev->dev, card 342 drivers/net/can/sja1000/peak_pcmcia.c static void pcan_set_leds(struct pcan_pccard *card, u8 led_mask, u8 state) card 344 drivers/net/can/sja1000/peak_pcmcia.c u8 ccr = card->ccr; card 347 drivers/net/can/sja1000/peak_pcmcia.c for (i = 0; i < card->chan_count; i++) card 356 drivers/net/can/sja1000/peak_pcmcia.c pcan_write_reg(card, PCC_CCR, ccr); card 362 drivers/net/can/sja1000/peak_pcmcia.c static inline void pcan_set_can_power(struct pcan_pccard *card, int onoff) card 366 drivers/net/can/sja1000/peak_pcmcia.c err = pcan_write_eeprom(card, 0, !!onoff); card 368 drivers/net/can/sja1000/peak_pcmcia.c dev_err(&card->pdev->dev, card 378 drivers/net/can/sja1000/peak_pcmcia.c struct pcan_pccard *card = from_timer(card, t, led_timer); card 383 drivers/net/can/sja1000/peak_pcmcia.c ccr = card->ccr; card 384 drivers/net/can/sja1000/peak_pcmcia.c for (i = 0; i < card->chan_count; i++) { card 389 drivers/net/can/sja1000/peak_pcmcia.c netdev = card->channel[i].netdev; card 400 drivers/net/can/sja1000/peak_pcmcia.c if (netdev->stats.rx_bytes != card->channel[i].prev_rx_bytes) { card 401 drivers/net/can/sja1000/peak_pcmcia.c card->channel[i].prev_rx_bytes = netdev->stats.rx_bytes; card 405 drivers/net/can/sja1000/peak_pcmcia.c if (netdev->stats.tx_bytes != card->channel[i].prev_tx_bytes) { card 406 drivers/net/can/sja1000/peak_pcmcia.c card->channel[i].prev_tx_bytes = netdev->stats.tx_bytes; card 413 drivers/net/can/sja1000/peak_pcmcia.c pcan_write_reg(card, PCC_CCR, ccr); card 417 drivers/net/can/sja1000/peak_pcmcia.c mod_timer(&card->led_timer, jiffies + HZ); card 425 drivers/net/can/sja1000/peak_pcmcia.c struct pcan_pccard *card = dev_id; card 435 drivers/net/can/sja1000/peak_pcmcia.c for (i = 0; i < card->chan_count; i++) { card 442 drivers/net/can/sja1000/peak_pcmcia.c if (!pcan_pccard_present(card)) { card 451 drivers/net/can/sja1000/peak_pcmcia.c netdev = card->channel[i].netdev; card 467 drivers/net/can/sja1000/peak_pcmcia.c static void pcan_free_channels(struct pcan_pccard *card) card 472 drivers/net/can/sja1000/peak_pcmcia.c for (i = 0; i < card->chan_count; i++) { card 478 drivers/net/can/sja1000/peak_pcmcia.c netdev = card->channel[i].netdev; card 488 drivers/net/can/sja1000/peak_pcmcia.c dev_info(&card->pdev->dev, "%s removed\n", name); card 492 drivers/net/can/sja1000/peak_pcmcia.c if (pcan_pccard_present(card)) { card 493 drivers/net/can/sja1000/peak_pcmcia.c pcan_set_leds(card, led_mask, PCC_LED_OFF); card 494 drivers/net/can/sja1000/peak_pcmcia.c pcan_set_can_power(card, 0); card 514 drivers/net/can/sja1000/peak_pcmcia.c static int pcan_add_channels(struct pcan_pccard *card) card 516 drivers/net/can/sja1000/peak_pcmcia.c struct pcmcia_device *pdev = card->pdev; card 521 drivers/net/can/sja1000/peak_pcmcia.c card->ccr = ~ccr; card 522 drivers/net/can/sja1000/peak_pcmcia.c pcan_write_reg(card, PCC_CCR, ccr); card 528 drivers/net/can/sja1000/peak_pcmcia.c pcan_write_reg(card, PCC_CCR, ccr); card 531 drivers/net/can/sja1000/peak_pcmcia.c for (i = 0; i < ARRAY_SIZE(card->channel); i++) { card 543 drivers/net/can/sja1000/peak_pcmcia.c priv->priv = card; card 549 drivers/net/can/sja1000/peak_pcmcia.c priv->reg_base = card->ioport_addr + PCC_CHAN_OFF(i); card 577 drivers/net/can/sja1000/peak_pcmcia.c card->channel[i].netdev = netdev; card 578 drivers/net/can/sja1000/peak_pcmcia.c card->chan_count++; card 589 drivers/net/can/sja1000/peak_pcmcia.c pcan_write_reg(card, PCC_CCR, ccr); card 609 drivers/net/can/sja1000/peak_pcmcia.c struct pcan_pccard *card = pdev->priv; card 611 drivers/net/can/sja1000/peak_pcmcia.c if (!card) card 614 drivers/net/can/sja1000/peak_pcmcia.c free_irq(pdev->irq, card); card 615 drivers/net/can/sja1000/peak_pcmcia.c pcan_stop_led_timer(card); card 617 drivers/net/can/sja1000/peak_pcmcia.c pcan_free_channels(card); card 619 drivers/net/can/sja1000/peak_pcmcia.c ioport_unmap(card->ioport_addr); card 621 drivers/net/can/sja1000/peak_pcmcia.c kfree(card); card 630 drivers/net/can/sja1000/peak_pcmcia.c struct pcan_pccard *card; card 654 drivers/net/can/sja1000/peak_pcmcia.c card = kzalloc(sizeof(struct pcan_pccard), GFP_KERNEL); card 655 drivers/net/can/sja1000/peak_pcmcia.c if (!card) { card 660 drivers/net/can/sja1000/peak_pcmcia.c card->pdev = pdev; card 661 drivers/net/can/sja1000/peak_pcmcia.c pdev->priv = card; card 664 drivers/net/can/sja1000/peak_pcmcia.c card->ioport_addr = ioport_map(pdev->resource[0]->start, card 666 drivers/net/can/sja1000/peak_pcmcia.c if (!card->ioport_addr) { card 671 drivers/net/can/sja1000/peak_pcmcia.c card->fw_major = pcan_read_reg(card, PCC_FW_MAJOR); card 672 drivers/net/can/sja1000/peak_pcmcia.c card->fw_minor = pcan_read_reg(card, PCC_FW_MINOR); card 677 drivers/net/can/sja1000/peak_pcmcia.c card->fw_major, card->fw_minor); card 680 drivers/net/can/sja1000/peak_pcmcia.c pcan_add_channels(card); card 681 drivers/net/can/sja1000/peak_pcmcia.c if (!card->chan_count) { card 687 drivers/net/can/sja1000/peak_pcmcia.c timer_setup(&card->led_timer, pcan_led_timer, 0); card 690 drivers/net/can/sja1000/peak_pcmcia.c err = request_irq(pdev->irq, &pcan_isr, IRQF_SHARED, PCC_NAME, card); card 697 drivers/net/can/sja1000/peak_pcmcia.c pcan_set_can_power(card, 1); card 703 drivers/net/can/sja1000/peak_pcmcia.c pcan_free_channels(card); card 706 drivers/net/can/sja1000/peak_pcmcia.c ioport_unmap(card->ioport_addr); card 709 drivers/net/can/sja1000/peak_pcmcia.c kfree(card); card 460 drivers/net/can/sja1000/plx_pci.c struct plx_pci_card *card = pci_get_drvdata(pdev); card 463 drivers/net/can/sja1000/plx_pci.c cntrl = ioread32(card->conf_addr + PLX_CNTRL); card 465 drivers/net/can/sja1000/plx_pci.c iowrite32(cntrl, card->conf_addr + PLX_CNTRL); card 468 drivers/net/can/sja1000/plx_pci.c iowrite32(cntrl, card->conf_addr + PLX_CNTRL); card 477 drivers/net/can/sja1000/plx_pci.c struct plx_pci_card *card = pci_get_drvdata(pdev); card 481 drivers/net/can/sja1000/plx_pci.c cntrl = ioread32(card->conf_addr + PLX9056_CNTRL); card 483 drivers/net/can/sja1000/plx_pci.c iowrite32(cntrl, card->conf_addr + PLX9056_CNTRL); card 486 drivers/net/can/sja1000/plx_pci.c iowrite32(cntrl, card->conf_addr + PLX9056_CNTRL); card 490 drivers/net/can/sja1000/plx_pci.c iowrite32(cntrl, card->conf_addr + PLX9056_CNTRL); card 500 drivers/net/can/sja1000/plx_pci.c iowrite32(cntrl, card->conf_addr + PLX9056_CNTRL); card 581 drivers/net/can/sja1000/plx_pci.c struct plx_pci_card *card = pci_get_drvdata(pdev); card 587 drivers/net/can/sja1000/plx_pci.c dev = card->net_dev[i]; card 599 drivers/net/can/sja1000/plx_pci.c card->reset_func(pdev); card 607 drivers/net/can/sja1000/plx_pci.c iowrite32(0x0, card->conf_addr + PLX_INTCSR); card 609 drivers/net/can/sja1000/plx_pci.c iowrite32(0x0, card->conf_addr + PLX9056_INTCSR); card 611 drivers/net/can/sja1000/plx_pci.c if (card->conf_addr) card 612 drivers/net/can/sja1000/plx_pci.c pci_iounmap(pdev, card->conf_addr); card 614 drivers/net/can/sja1000/plx_pci.c kfree(card); card 628 drivers/net/can/sja1000/plx_pci.c struct plx_pci_card *card; card 645 drivers/net/can/sja1000/plx_pci.c card = kzalloc(sizeof(*card), GFP_KERNEL); card 646 drivers/net/can/sja1000/plx_pci.c if (!card) { card 651 drivers/net/can/sja1000/plx_pci.c pci_set_drvdata(pdev, card); card 653 drivers/net/can/sja1000/plx_pci.c card->channels = 0; card 663 drivers/net/can/sja1000/plx_pci.c card->conf_addr = addr + ci->conf_map.offset; card 666 drivers/net/can/sja1000/plx_pci.c card->reset_func = ci->reset_func; card 678 drivers/net/can/sja1000/plx_pci.c card->net_dev[i] = dev; card 680 drivers/net/can/sja1000/plx_pci.c priv->priv = card; card 717 drivers/net/can/sja1000/plx_pci.c card->channels++; card 726 drivers/net/can/sja1000/plx_pci.c card->net_dev[i] = NULL; card 730 drivers/net/can/sja1000/plx_pci.c if (!card->channels) { card 741 drivers/net/can/sja1000/plx_pci.c val = ioread32(card->conf_addr + PLX_INTCSR); card 746 drivers/net/can/sja1000/plx_pci.c iowrite32(val, card->conf_addr + PLX_INTCSR); card 749 drivers/net/can/sja1000/plx_pci.c card->conf_addr + PLX9056_INTCSR); card 23 drivers/net/can/softing/softing.h struct softing *card; card 77 drivers/net/can/softing/softing.h ktime_t softing_raw2ktime(struct softing *card, u32 raw); card 79 drivers/net/can/softing/softing.h int softing_chip_poweron(struct softing *card); card 81 drivers/net/can/softing/softing.h int softing_bootloader_command(struct softing *card, int16_t cmd, card 85 drivers/net/can/softing/softing.h int softing_load_fw(const char *file, struct softing *card, card 89 drivers/net/can/softing/softing.h int softing_load_app_fw(const char *file, struct softing *card); card 95 drivers/net/can/softing/softing.h int softing_enable_irq(struct softing *card, int enable); card 19 drivers/net/can/softing/softing_fw.c static int _softing_fct_cmd(struct softing *card, int16_t cmd, uint16_t vector, card 25 drivers/net/can/softing/softing_fw.c iowrite16(cmd, &card->dpram[DPRAM_FCT_PARAM]); card 26 drivers/net/can/softing/softing_fw.c iowrite8(vector >> 8, &card->dpram[DPRAM_FCT_HOST + 1]); card 27 drivers/net/can/softing/softing_fw.c iowrite8(vector, &card->dpram[DPRAM_FCT_HOST]); card 34 drivers/net/can/softing/softing_fw.c ret = ioread8(&card->dpram[DPRAM_FCT_HOST]) + card 35 drivers/net/can/softing/softing_fw.c (ioread8(&card->dpram[DPRAM_FCT_HOST + 1]) << 8); card 40 drivers/net/can/softing/softing_fw.c return ioread16(&card->dpram[DPRAM_FCT_RESULT]); card 49 drivers/net/can/softing/softing_fw.c dev_alert(&card->pdev->dev, "firmware %s failed (%i)\n", msg, ret); card 53 drivers/net/can/softing/softing_fw.c static int softing_fct_cmd(struct softing *card, int16_t cmd, const char *msg) card 57 drivers/net/can/softing/softing_fw.c ret = _softing_fct_cmd(card, cmd, 0, msg); card 59 drivers/net/can/softing/softing_fw.c dev_alert(&card->pdev->dev, "%s returned %u\n", msg, ret); card 65 drivers/net/can/softing/softing_fw.c int softing_bootloader_command(struct softing *card, int16_t cmd, card 71 drivers/net/can/softing/softing_fw.c iowrite16(RES_NONE, &card->dpram[DPRAM_RECEIPT]); card 72 drivers/net/can/softing/softing_fw.c iowrite16(cmd, &card->dpram[DPRAM_COMMAND]); card 78 drivers/net/can/softing/softing_fw.c ret = ioread16(&card->dpram[DPRAM_RECEIPT]); card 90 drivers/net/can/softing/softing_fw.c dev_alert(&card->pdev->dev, "bootloader %s failed (%i)\n", msg, ret); card 133 drivers/net/can/softing/softing_fw.c int softing_load_fw(const char *file, struct softing *card, card 145 drivers/net/can/softing/softing_fw.c ret = request_firmware(&fw, file, &card->pdev->dev); card 148 drivers/net/can/softing/softing_fw.c dev_dbg(&card->pdev->dev, "%s, firmware(%s) got %u bytes" card 150 drivers/net/can/softing/softing_fw.c card->pdat->name, file, (unsigned int)fw->size, card 201 drivers/net/can/softing/softing_fw.c dev_alert(&card->pdev->dev, "DPRAM readback failed\n"); card 214 drivers/net/can/softing/softing_fw.c dev_info(&card->pdev->dev, "firmware %s failed\n", file); card 218 drivers/net/can/softing/softing_fw.c int softing_load_app_fw(const char *file, struct softing *card) card 228 drivers/net/can/softing/softing_fw.c ret = request_firmware(&fw, file, &card->pdev->dev); card 230 drivers/net/can/softing/softing_fw.c dev_alert(&card->pdev->dev, "request_firmware(%s) got %i\n", card 234 drivers/net/can/softing/softing_fw.c dev_dbg(&card->pdev->dev, "firmware(%s) got %lu bytes\n", card 245 drivers/net/can/softing/softing_fw.c dev_alert(&card->pdev->dev, "firmware starts with type 0x%x\n", card 250 drivers/net/can/softing/softing_fw.c dev_alert(&card->pdev->dev, "firmware string '%.*s' fault\n", card 270 drivers/net/can/softing/softing_fw.c dev_alert(&card->pdev->dev, card 282 drivers/net/can/softing/softing_fw.c memcpy_toio(&card->dpram[card->pdat->app.offs], dat, len); card 283 drivers/net/can/softing/softing_fw.c iowrite32(card->pdat->app.offs + card->pdat->app.addr, card 284 drivers/net/can/softing/softing_fw.c &card->dpram[DPRAM_COMMAND + 2]); card 285 drivers/net/can/softing/softing_fw.c iowrite32(addr, &card->dpram[DPRAM_COMMAND + 6]); card 286 drivers/net/can/softing/softing_fw.c iowrite16(len, &card->dpram[DPRAM_COMMAND + 10]); card 287 drivers/net/can/softing/softing_fw.c iowrite8(1, &card->dpram[DPRAM_COMMAND + 12]); card 288 drivers/net/can/softing/softing_fw.c ret = softing_bootloader_command(card, 1, "loading app."); card 292 drivers/net/can/softing/softing_fw.c rx_sum = ioread16(&card->dpram[DPRAM_RECEIPT + 2]); card 294 drivers/net/can/softing/softing_fw.c dev_alert(&card->pdev->dev, "SRAM seems to be damaged" card 303 drivers/net/can/softing/softing_fw.c iowrite32(start_addr, &card->dpram[DPRAM_COMMAND + 2]); card 304 drivers/net/can/softing/softing_fw.c iowrite8(1, &card->dpram[DPRAM_COMMAND + 6]); card 305 drivers/net/can/softing/softing_fw.c ret = softing_bootloader_command(card, 3, "start app."); card 312 drivers/net/can/softing/softing_fw.c dev_info(&card->pdev->dev, "firmware %s failed\n", file); card 316 drivers/net/can/softing/softing_fw.c static int softing_reset_chip(struct softing *card) card 322 drivers/net/can/softing/softing_fw.c iowrite8(0, &card->dpram[DPRAM_RESET_RX_FIFO]); card 323 drivers/net/can/softing/softing_fw.c iowrite8(0, &card->dpram[DPRAM_RESET_RX_FIFO+1]); card 324 drivers/net/can/softing/softing_fw.c iowrite8(1, &card->dpram[DPRAM_RESET]); card 325 drivers/net/can/softing/softing_fw.c iowrite8(0, &card->dpram[DPRAM_RESET+1]); card 327 drivers/net/can/softing/softing_fw.c ret = softing_fct_cmd(card, 0, "reset_can"); card 334 drivers/net/can/softing/softing_fw.c card->tx.pending = 0; card 338 drivers/net/can/softing/softing_fw.c int softing_chip_poweron(struct softing *card) card 342 drivers/net/can/softing/softing_fw.c ret = _softing_fct_cmd(card, 99, 0x55, "sync-a"); card 346 drivers/net/can/softing/softing_fw.c ret = _softing_fct_cmd(card, 99, 0xaa, "sync-b"); card 350 drivers/net/can/softing/softing_fw.c ret = softing_reset_chip(card); card 354 drivers/net/can/softing/softing_fw.c ret = softing_fct_cmd(card, 43, "get_serial_number"); card 357 drivers/net/can/softing/softing_fw.c card->id.serial = ioread32(&card->dpram[DPRAM_FCT_PARAM]); card 359 drivers/net/can/softing/softing_fw.c ret = softing_fct_cmd(card, 12, "get_version"); card 362 drivers/net/can/softing/softing_fw.c card->id.fw_version = ioread16(&card->dpram[DPRAM_FCT_PARAM + 2]); card 363 drivers/net/can/softing/softing_fw.c card->id.hw_version = ioread16(&card->dpram[DPRAM_FCT_PARAM + 4]); card 364 drivers/net/can/softing/softing_fw.c card->id.license = ioread16(&card->dpram[DPRAM_FCT_PARAM + 6]); card 365 drivers/net/can/softing/softing_fw.c card->id.chip[0] = ioread16(&card->dpram[DPRAM_FCT_PARAM + 8]); card 366 drivers/net/can/softing/softing_fw.c card->id.chip[1] = ioread16(&card->dpram[DPRAM_FCT_PARAM + 10]); card 372 drivers/net/can/softing/softing_fw.c static void softing_initialize_timestamp(struct softing *card) card 376 drivers/net/can/softing/softing_fw.c card->ts_ref = ktime_get(); card 380 drivers/net/can/softing/softing_fw.c do_div(ovf, card->pdat->freq ?: 16); card 382 drivers/net/can/softing/softing_fw.c card->ts_overflow = ktime_add_us(0, ovf); card 385 drivers/net/can/softing/softing_fw.c ktime_t softing_raw2ktime(struct softing *card, u32 raw) card 397 drivers/net/can/softing/softing_fw.c do_div(rawl, card->pdat->freq ?: 16); card 398 drivers/net/can/softing/softing_fw.c target = ktime_add_us(card->ts_ref, rawl); card 400 drivers/net/can/softing/softing_fw.c tmp = ktime_add(target, card->ts_overflow); card 402 drivers/net/can/softing/softing_fw.c card->ts_ref = ktime_add(card->ts_ref, card->ts_overflow); card 404 drivers/net/can/softing/softing_fw.c tmp = ktime_add(target, card->ts_overflow); card 420 drivers/net/can/softing/softing_fw.c struct softing *card; card 429 drivers/net/can/softing/softing_fw.c card = priv->card; card 431 drivers/net/can/softing/softing_fw.c if (!card->fw.up) card 434 drivers/net/can/softing/softing_fw.c ret = mutex_lock_interruptible(&card->fw.lock); card 443 drivers/net/can/softing/softing_fw.c for (j = 0; j < ARRAY_SIZE(card->net); ++j) { card 444 drivers/net/can/softing/softing_fw.c netdev = card->net[j]; card 470 drivers/net/can/softing/softing_fw.c card->tx.pending = 0; card 472 drivers/net/can/softing/softing_fw.c softing_enable_irq(card, 0); card 473 drivers/net/can/softing/softing_fw.c ret = softing_reset_chip(card); card 481 drivers/net/can/softing/softing_fw.c && (softing_error_reporting(card->net[0]) card 482 drivers/net/can/softing/softing_fw.c != softing_error_reporting(card->net[1]))) { card 483 drivers/net/can/softing/softing_fw.c dev_alert(&card->pdev->dev, card 489 drivers/net/can/softing/softing_fw.c netdev = card->net[0]; card 494 drivers/net/can/softing/softing_fw.c iowrite16(bt->brp, &card->dpram[DPRAM_FCT_PARAM + 2]); card 495 drivers/net/can/softing/softing_fw.c iowrite16(bt->sjw, &card->dpram[DPRAM_FCT_PARAM + 4]); card 497 drivers/net/can/softing/softing_fw.c &card->dpram[DPRAM_FCT_PARAM + 6]); card 498 drivers/net/can/softing/softing_fw.c iowrite16(bt->phase_seg2, &card->dpram[DPRAM_FCT_PARAM + 8]); card 500 drivers/net/can/softing/softing_fw.c &card->dpram[DPRAM_FCT_PARAM + 10]); card 501 drivers/net/can/softing/softing_fw.c ret = softing_fct_cmd(card, 1, "initialize_chip[0]"); card 505 drivers/net/can/softing/softing_fw.c iowrite16(0, &card->dpram[DPRAM_FCT_PARAM + 2]); card 506 drivers/net/can/softing/softing_fw.c iowrite16(0, &card->dpram[DPRAM_FCT_PARAM + 4]); card 507 drivers/net/can/softing/softing_fw.c ret = softing_fct_cmd(card, 3, "set_mode[0]"); card 512 drivers/net/can/softing/softing_fw.c iowrite16(0x0000, &card->dpram[DPRAM_FCT_PARAM + 2]); card 513 drivers/net/can/softing/softing_fw.c iowrite16(0x07ff, &card->dpram[DPRAM_FCT_PARAM + 4]); card 515 drivers/net/can/softing/softing_fw.c iowrite16(0x0000, &card->dpram[DPRAM_FCT_PARAM + 6]); card 516 drivers/net/can/softing/softing_fw.c iowrite16(0xffff, &card->dpram[DPRAM_FCT_PARAM + 8]); card 517 drivers/net/can/softing/softing_fw.c iowrite16(0x0000, &card->dpram[DPRAM_FCT_PARAM + 10]); card 518 drivers/net/can/softing/softing_fw.c iowrite16(0x1fff, &card->dpram[DPRAM_FCT_PARAM + 12]); card 519 drivers/net/can/softing/softing_fw.c ret = softing_fct_cmd(card, 7, "set_filter[0]"); card 523 drivers/net/can/softing/softing_fw.c iowrite16(priv->output, &card->dpram[DPRAM_FCT_PARAM + 2]); card 524 drivers/net/can/softing/softing_fw.c ret = softing_fct_cmd(card, 5, "set_output[0]"); card 529 drivers/net/can/softing/softing_fw.c netdev = card->net[1]; card 534 drivers/net/can/softing/softing_fw.c iowrite16(bt->brp, &card->dpram[DPRAM_FCT_PARAM + 2]); card 535 drivers/net/can/softing/softing_fw.c iowrite16(bt->sjw, &card->dpram[DPRAM_FCT_PARAM + 4]); card 537 drivers/net/can/softing/softing_fw.c &card->dpram[DPRAM_FCT_PARAM + 6]); card 538 drivers/net/can/softing/softing_fw.c iowrite16(bt->phase_seg2, &card->dpram[DPRAM_FCT_PARAM + 8]); card 540 drivers/net/can/softing/softing_fw.c &card->dpram[DPRAM_FCT_PARAM + 10]); card 541 drivers/net/can/softing/softing_fw.c ret = softing_fct_cmd(card, 2, "initialize_chip[1]"); card 545 drivers/net/can/softing/softing_fw.c iowrite16(0, &card->dpram[DPRAM_FCT_PARAM + 2]); card 546 drivers/net/can/softing/softing_fw.c iowrite16(0, &card->dpram[DPRAM_FCT_PARAM + 4]); card 547 drivers/net/can/softing/softing_fw.c ret = softing_fct_cmd(card, 4, "set_mode[1]"); card 552 drivers/net/can/softing/softing_fw.c iowrite16(0x0000, &card->dpram[DPRAM_FCT_PARAM + 2]); card 553 drivers/net/can/softing/softing_fw.c iowrite16(0x07ff, &card->dpram[DPRAM_FCT_PARAM + 4]); card 555 drivers/net/can/softing/softing_fw.c iowrite16(0x0000, &card->dpram[DPRAM_FCT_PARAM + 6]); card 556 drivers/net/can/softing/softing_fw.c iowrite16(0xffff, &card->dpram[DPRAM_FCT_PARAM + 8]); card 557 drivers/net/can/softing/softing_fw.c iowrite16(0x0000, &card->dpram[DPRAM_FCT_PARAM + 10]); card 558 drivers/net/can/softing/softing_fw.c iowrite16(0x1fff, &card->dpram[DPRAM_FCT_PARAM + 12]); card 559 drivers/net/can/softing/softing_fw.c ret = softing_fct_cmd(card, 8, "set_filter[1]"); card 563 drivers/net/can/softing/softing_fw.c iowrite16(priv->output, &card->dpram[DPRAM_FCT_PARAM + 2]); card 564 drivers/net/can/softing/softing_fw.c ret = softing_fct_cmd(card, 6, "set_output[1]"); card 581 drivers/net/can/softing/softing_fw.c iowrite16(1, &card->dpram[DPRAM_FCT_PARAM + 2]); card 582 drivers/net/can/softing/softing_fw.c iowrite16(1, &card->dpram[DPRAM_FCT_PARAM + 4]); card 583 drivers/net/can/softing/softing_fw.c iowrite16(1, &card->dpram[DPRAM_FCT_PARAM + 6]); card 584 drivers/net/can/softing/softing_fw.c iowrite16(1, &card->dpram[DPRAM_FCT_PARAM + 8]); card 585 drivers/net/can/softing/softing_fw.c iowrite16(1, &card->dpram[DPRAM_FCT_PARAM + 10]); card 586 drivers/net/can/softing/softing_fw.c iowrite16(1, &card->dpram[DPRAM_FCT_PARAM + 12]); card 587 drivers/net/can/softing/softing_fw.c iowrite16(1, &card->dpram[DPRAM_FCT_PARAM + 14]); card 588 drivers/net/can/softing/softing_fw.c iowrite16(1, &card->dpram[DPRAM_FCT_PARAM + 16]); card 589 drivers/net/can/softing/softing_fw.c iowrite16(1, &card->dpram[DPRAM_FCT_PARAM + 18]); card 590 drivers/net/can/softing/softing_fw.c iowrite16(1, &card->dpram[DPRAM_FCT_PARAM + 20]); card 591 drivers/net/can/softing/softing_fw.c ret = softing_fct_cmd(card, 17, "initialize_interface"); card 595 drivers/net/can/softing/softing_fw.c ret = softing_fct_cmd(card, 36, "enable_fifo"); card 599 drivers/net/can/softing/softing_fw.c ret = softing_fct_cmd(card, 13, "fifo_tx_ack[0]"); card 603 drivers/net/can/softing/softing_fw.c ret = softing_fct_cmd(card, 14, "fifo_tx_ack[1]"); card 607 drivers/net/can/softing/softing_fw.c ret = softing_fct_cmd(card, 11, "start_chip"); card 610 drivers/net/can/softing/softing_fw.c iowrite8(0, &card->dpram[DPRAM_INFO_BUSSTATE]); card 611 drivers/net/can/softing/softing_fw.c iowrite8(0, &card->dpram[DPRAM_INFO_BUSSTATE2]); card 612 drivers/net/can/softing/softing_fw.c if (card->pdat->generation < 2) { card 613 drivers/net/can/softing/softing_fw.c iowrite8(0, &card->dpram[DPRAM_V2_IRQ_TOHOST]); card 618 drivers/net/can/softing/softing_fw.c softing_initialize_timestamp(card); card 628 drivers/net/can/softing/softing_fw.c for (j = 0; j < ARRAY_SIZE(card->net); ++j) { card 631 drivers/net/can/softing/softing_fw.c netdev = card->net[j]; card 646 drivers/net/can/softing/softing_fw.c ret = softing_enable_irq(card, 1); card 650 drivers/net/can/softing/softing_fw.c mutex_unlock(&card->fw.lock); card 655 drivers/net/can/softing/softing_fw.c softing_enable_irq(card, 0); card 656 drivers/net/can/softing/softing_fw.c softing_reset_chip(card); card 657 drivers/net/can/softing/softing_fw.c mutex_unlock(&card->fw.lock); card 659 drivers/net/can/softing/softing_fw.c for (j = 0; j < ARRAY_SIZE(card->net); ++j) { card 660 drivers/net/can/softing/softing_fw.c netdev = card->net[j]; card 671 drivers/net/can/softing/softing_fw.c struct softing *card = priv->card; card 675 drivers/net/can/softing/softing_fw.c return (card->pdat->generation < 2) ? 0xfb : 0xfa; card 30 drivers/net/can/softing/softing_main.c static inline void softing_set_reset_dpram(struct softing *card) card 32 drivers/net/can/softing/softing_main.c if (card->pdat->generation >= 2) { card 33 drivers/net/can/softing/softing_main.c spin_lock_bh(&card->spin); card 34 drivers/net/can/softing/softing_main.c iowrite8(ioread8(&card->dpram[DPRAM_V2_RESET]) & ~1, card 35 drivers/net/can/softing/softing_main.c &card->dpram[DPRAM_V2_RESET]); card 36 drivers/net/can/softing/softing_main.c spin_unlock_bh(&card->spin); card 40 drivers/net/can/softing/softing_main.c static inline void softing_clr_reset_dpram(struct softing *card) card 42 drivers/net/can/softing/softing_main.c if (card->pdat->generation >= 2) { card 43 drivers/net/can/softing/softing_main.c spin_lock_bh(&card->spin); card 44 drivers/net/can/softing/softing_main.c iowrite8(ioread8(&card->dpram[DPRAM_V2_RESET]) | 1, card 45 drivers/net/can/softing/softing_main.c &card->dpram[DPRAM_V2_RESET]); card 46 drivers/net/can/softing/softing_main.c spin_unlock_bh(&card->spin); card 55 drivers/net/can/softing/softing_main.c struct softing *card = priv->card; card 65 drivers/net/can/softing/softing_main.c spin_lock(&card->spin); card 68 drivers/net/can/softing/softing_main.c if (!card->fw.up || card 69 drivers/net/can/softing/softing_main.c (card->tx.pending >= TXMAX) || card 72 drivers/net/can/softing/softing_main.c fifo_wr = ioread8(&card->dpram[DPRAM_TX_WR]); card 73 drivers/net/can/softing/softing_main.c fifo_rd = ioread8(&card->dpram[DPRAM_TX_RD]); card 99 drivers/net/can/softing/softing_main.c memcpy_toio(&card->dpram[DPRAM_TX + DPRAM_TX_SIZE * fifo_wr], card 103 drivers/net/can/softing/softing_main.c iowrite8(fifo_wr, &card->dpram[DPRAM_TX_WR]); card 104 drivers/net/can/softing/softing_main.c card->tx.last_bus = priv->index; card 105 drivers/net/can/softing/softing_main.c ++card->tx.pending; card 114 drivers/net/can/softing/softing_main.c spin_unlock(&card->spin); card 115 drivers/net/can/softing/softing_main.c if (card->tx.pending >= TXMAX) { card 117 drivers/net/can/softing/softing_main.c for (j = 0; j < ARRAY_SIZE(card->net); ++j) { card 118 drivers/net/can/softing/softing_main.c if (card->net[j]) card 119 drivers/net/can/softing/softing_main.c netif_stop_queue(card->net[j]); card 149 drivers/net/can/softing/softing_main.c static int softing_handle_1(struct softing *card) card 163 drivers/net/can/softing/softing_main.c lost_msg = ioread8(&card->dpram[DPRAM_RX_LOST]); card 167 drivers/net/can/softing/softing_main.c iowrite8(0, &card->dpram[DPRAM_RX_LOST]); card 176 drivers/net/can/softing/softing_main.c for (j = 0; j < ARRAY_SIZE(card->net); ++j) { card 177 drivers/net/can/softing/softing_main.c netdev = card->net[j]; card 191 drivers/net/can/softing/softing_main.c fifo_rd = ioread8(&card->dpram[DPRAM_RX_RD]); card 192 drivers/net/can/softing/softing_main.c fifo_wr = ioread8(&card->dpram[DPRAM_RX_WR]); card 199 drivers/net/can/softing/softing_main.c memcpy_fromio(buf, &card->dpram[DPRAM_RX + DPRAM_RX_SIZE*fifo_rd], card 203 drivers/net/can/softing/softing_main.c iowrite8(fifo_rd, &card->dpram[DPRAM_RX_RD]); card 210 drivers/net/can/softing/softing_main.c netdev = card->net[0]; card 212 drivers/net/can/softing/softing_main.c netdev = card->net[1]; card 238 drivers/net/can/softing/softing_main.c iowrite8(state, &card->dpram[priv->index ? card 243 drivers/net/can/softing/softing_main.c ktime = softing_raw2ktime(card, tmp_u32); card 276 drivers/net/can/softing/softing_main.c ktime = softing_raw2ktime(card, tmp_u32); card 293 drivers/net/can/softing/softing_main.c if (card->tx.pending) card 294 drivers/net/can/softing/softing_main.c --card->tx.pending; card 320 drivers/net/can/softing/softing_main.c struct softing *card = (struct softing *)dev_id; card 326 drivers/net/can/softing/softing_main.c spin_lock_bh(&card->spin); card 327 drivers/net/can/softing/softing_main.c while (softing_handle_1(card) > 0) { card 328 drivers/net/can/softing/softing_main.c ++card->irq.svc_count; card 331 drivers/net/can/softing/softing_main.c spin_unlock_bh(&card->spin); card 333 drivers/net/can/softing/softing_main.c offset = card->tx.last_bus; card 334 drivers/net/can/softing/softing_main.c for (j = 0; j < ARRAY_SIZE(card->net); ++j) { card 335 drivers/net/can/softing/softing_main.c if (card->tx.pending >= TXMAX) card 337 drivers/net/can/softing/softing_main.c netdev = card->net[(j + offset + 1) % card->pdat->nbus]; card 358 drivers/net/can/softing/softing_main.c struct softing *card = (struct softing *)dev_id; card 361 drivers/net/can/softing/softing_main.c ir = ioread8(&card->dpram[DPRAM_V2_IRQ_TOHOST]); card 362 drivers/net/can/softing/softing_main.c iowrite8(0, &card->dpram[DPRAM_V2_IRQ_TOHOST]); card 368 drivers/net/can/softing/softing_main.c struct softing *card = (struct softing *)dev_id; card 371 drivers/net/can/softing/softing_main.c ir = ioread8(&card->dpram[DPRAM_IRQ_TOHOST]); card 372 drivers/net/can/softing/softing_main.c iowrite8(0, &card->dpram[DPRAM_IRQ_TOHOST]); card 420 drivers/net/can/softing/softing_main.c int softing_enable_irq(struct softing *card, int enable) card 424 drivers/net/can/softing/softing_main.c if (!card->irq.nr) { card 426 drivers/net/can/softing/softing_main.c } else if (card->irq.requested && !enable) { card 427 drivers/net/can/softing/softing_main.c free_irq(card->irq.nr, card); card 428 drivers/net/can/softing/softing_main.c card->irq.requested = 0; card 429 drivers/net/can/softing/softing_main.c } else if (!card->irq.requested && enable) { card 430 drivers/net/can/softing/softing_main.c ret = request_threaded_irq(card->irq.nr, card 431 drivers/net/can/softing/softing_main.c (card->pdat->generation >= 2) ? card 434 drivers/net/can/softing/softing_main.c dev_name(&card->pdev->dev), card); card 436 drivers/net/can/softing/softing_main.c dev_alert(&card->pdev->dev, card 438 drivers/net/can/softing/softing_main.c card->irq.nr); card 441 drivers/net/can/softing/softing_main.c card->irq.requested = 1; card 446 drivers/net/can/softing/softing_main.c static void softing_card_shutdown(struct softing *card) card 450 drivers/net/can/softing/softing_main.c if (mutex_lock_interruptible(&card->fw.lock)) card 452 drivers/net/can/softing/softing_main.c fw_up = card->fw.up; card 453 drivers/net/can/softing/softing_main.c card->fw.up = 0; card 455 drivers/net/can/softing/softing_main.c if (card->irq.requested && card->irq.nr) { card 456 drivers/net/can/softing/softing_main.c free_irq(card->irq.nr, card); card 457 drivers/net/can/softing/softing_main.c card->irq.requested = 0; card 460 drivers/net/can/softing/softing_main.c if (card->pdat->enable_irq) card 461 drivers/net/can/softing/softing_main.c card->pdat->enable_irq(card->pdev, 0); card 462 drivers/net/can/softing/softing_main.c softing_set_reset_dpram(card); card 463 drivers/net/can/softing/softing_main.c if (card->pdat->reset) card 464 drivers/net/can/softing/softing_main.c card->pdat->reset(card->pdev, 1); card 466 drivers/net/can/softing/softing_main.c mutex_unlock(&card->fw.lock); card 469 drivers/net/can/softing/softing_main.c static int softing_card_boot(struct softing *card) card 476 drivers/net/can/softing/softing_main.c if (mutex_lock_interruptible(&card->fw.lock)) card 478 drivers/net/can/softing/softing_main.c if (card->fw.up) { card 479 drivers/net/can/softing/softing_main.c mutex_unlock(&card->fw.lock); card 483 drivers/net/can/softing/softing_main.c if (card->pdat->enable_irq) card 484 drivers/net/can/softing/softing_main.c card->pdat->enable_irq(card->pdev, 1); card 486 drivers/net/can/softing/softing_main.c softing_set_reset_dpram(card); card 487 drivers/net/can/softing/softing_main.c if (card->pdat->reset) card 488 drivers/net/can/softing/softing_main.c card->pdat->reset(card->pdev, 1); card 489 drivers/net/can/softing/softing_main.c for (j = 0; (j + sizeof(stream)) < card->dpram_size; card 492 drivers/net/can/softing/softing_main.c memcpy_toio(&card->dpram[j], stream, sizeof(stream)); card 495 drivers/net/can/softing/softing_main.c memcpy_fromio(back, &card->dpram[j], sizeof(stream)); card 500 drivers/net/can/softing/softing_main.c dev_alert(&card->pdev->dev, "dpram failed at 0x%04x\n", j); card 506 drivers/net/can/softing/softing_main.c ret = softing_load_fw(card->pdat->boot.fw, card, card->dpram, card 507 drivers/net/can/softing/softing_main.c card->dpram_size, card 508 drivers/net/can/softing/softing_main.c card->pdat->boot.offs - card->pdat->boot.addr); card 512 drivers/net/can/softing/softing_main.c ret = softing_load_fw(card->pdat->load.fw, card, card->dpram, card 513 drivers/net/can/softing/softing_main.c card->dpram_size, card 514 drivers/net/can/softing/softing_main.c card->pdat->load.offs - card->pdat->load.addr); card 518 drivers/net/can/softing/softing_main.c if (card->pdat->reset) card 519 drivers/net/can/softing/softing_main.c card->pdat->reset(card->pdev, 0); card 520 drivers/net/can/softing/softing_main.c softing_clr_reset_dpram(card); card 521 drivers/net/can/softing/softing_main.c ret = softing_bootloader_command(card, 0, "card boot"); card 524 drivers/net/can/softing/softing_main.c ret = softing_load_app_fw(card->pdat->app.fw, card); card 528 drivers/net/can/softing/softing_main.c ret = softing_chip_poweron(card); card 532 drivers/net/can/softing/softing_main.c card->fw.up = 1; card 533 drivers/net/can/softing/softing_main.c mutex_unlock(&card->fw.lock); card 536 drivers/net/can/softing/softing_main.c card->fw.up = 0; card 537 drivers/net/can/softing/softing_main.c if (card->pdat->enable_irq) card 538 drivers/net/can/softing/softing_main.c card->pdat->enable_irq(card->pdev, 0); card 539 drivers/net/can/softing/softing_main.c softing_set_reset_dpram(card); card 540 drivers/net/can/softing/softing_main.c if (card->pdat->reset) card 541 drivers/net/can/softing/softing_main.c card->pdat->reset(card->pdev, 1); card 542 drivers/net/can/softing/softing_main.c mutex_unlock(&card->fw.lock); card 572 drivers/net/can/softing/softing_main.c struct softing *card = priv->card; card 581 drivers/net/can/softing/softing_main.c ret = mutex_lock_interruptible(&card->fw.lock); card 585 drivers/net/can/softing/softing_main.c mutex_unlock(&card->fw.lock); card 589 drivers/net/can/softing/softing_main.c mutex_unlock(&card->fw.lock); card 626 drivers/net/can/softing/softing_main.c static struct net_device *softing_netdev_create(struct softing *card, card 634 drivers/net/can/softing/softing_main.c dev_alert(&card->pdev->dev, "alloc_candev failed\n"); card 639 drivers/net/can/softing/softing_main.c priv->card = card; card 641 drivers/net/can/softing/softing_main.c priv->btr_const.brp_max = card->pdat->max_brp; card 642 drivers/net/can/softing/softing_main.c priv->btr_const.sjw_max = card->pdat->max_sjw; card 647 drivers/net/can/softing/softing_main.c SET_NETDEV_DEV(netdev, &card->pdev->dev); card 686 drivers/net/can/softing/softing_main.c struct softing *card = dev_get_drvdata(dev); \ card 687 drivers/net/can/softing/softing_main.c return sprintf(buf, "%u\n", card->member); \ card 695 drivers/net/can/softing/softing_main.c struct softing *card = dev_get_drvdata(dev); \ card 696 drivers/net/can/softing/softing_main.c return sprintf(buf, "%s\n", card->member); \ card 727 drivers/net/can/softing/softing_main.c struct softing *card = platform_get_drvdata(pdev); card 731 drivers/net/can/softing/softing_main.c softing_card_shutdown(card); card 733 drivers/net/can/softing/softing_main.c for (j = 0; j < ARRAY_SIZE(card->net); ++j) { card 734 drivers/net/can/softing/softing_main.c if (!card->net[j]) card 736 drivers/net/can/softing/softing_main.c softing_netdev_cleanup(card->net[j]); card 737 drivers/net/can/softing/softing_main.c card->net[j] = NULL; card 741 drivers/net/can/softing/softing_main.c iounmap(card->dpram); card 742 drivers/net/can/softing/softing_main.c kfree(card); card 749 drivers/net/can/softing/softing_main.c struct softing *card; card 760 drivers/net/can/softing/softing_main.c if (pdat->nbus > ARRAY_SIZE(card->net)) { card 765 drivers/net/can/softing/softing_main.c card = kzalloc(sizeof(*card), GFP_KERNEL); card 766 drivers/net/can/softing/softing_main.c if (!card) card 768 drivers/net/can/softing/softing_main.c card->pdat = pdat; card 769 drivers/net/can/softing/softing_main.c card->pdev = pdev; card 770 drivers/net/can/softing/softing_main.c platform_set_drvdata(pdev, card); card 771 drivers/net/can/softing/softing_main.c mutex_init(&card->fw.lock); card 772 drivers/net/can/softing/softing_main.c spin_lock_init(&card->spin); card 778 drivers/net/can/softing/softing_main.c card->dpram_phys = pres->start; card 779 drivers/net/can/softing/softing_main.c card->dpram_size = resource_size(pres); card 780 drivers/net/can/softing/softing_main.c card->dpram = ioremap_nocache(card->dpram_phys, card->dpram_size); card 781 drivers/net/can/softing/softing_main.c if (!card->dpram) { card 782 drivers/net/can/softing/softing_main.c dev_alert(&card->pdev->dev, "dpram ioremap failed\n"); card 788 drivers/net/can/softing/softing_main.c card->irq.nr = pres->start; card 791 drivers/net/can/softing/softing_main.c ret = softing_card_boot(card); card 798 drivers/net/can/softing/softing_main.c card->id.freq = card->pdat->freq; card 802 drivers/net/can/softing/softing_main.c dev_alert(&card->pdev->dev, "sysfs failed\n"); card 806 drivers/net/can/softing/softing_main.c for (j = 0; j < ARRAY_SIZE(card->net); ++j) { card 807 drivers/net/can/softing/softing_main.c card->net[j] = netdev = card 808 drivers/net/can/softing/softing_main.c softing_netdev_create(card, card->id.chip[j]); card 815 drivers/net/can/softing/softing_main.c priv = netdev_priv(card->net[j]); card 820 drivers/net/can/softing/softing_main.c card->net[j] = NULL; card 821 drivers/net/can/softing/softing_main.c dev_alert(&card->pdev->dev, card 826 drivers/net/can/softing/softing_main.c dev_info(&card->pdev->dev, "%s ready.\n", card->pdat->name); card 830 drivers/net/can/softing/softing_main.c for (j = 0; j < ARRAY_SIZE(card->net); ++j) { card 831 drivers/net/can/softing/softing_main.c if (!card->net[j]) card 833 drivers/net/can/softing/softing_main.c softing_netdev_cleanup(card->net[j]); card 837 drivers/net/can/softing/softing_main.c softing_card_shutdown(card); card 839 drivers/net/can/softing/softing_main.c iounmap(card->dpram); card 842 drivers/net/can/softing/softing_main.c kfree(card); card 408 drivers/net/ethernet/amd/lance.c int card; card 409 drivers/net/ethernet/amd/lance.c for (card = 0; card < NUM_CARDS; ++card) card 410 drivers/net/ethernet/amd/lance.c if (cards[card].id_offset14 == offset14) card 412 drivers/net/ethernet/amd/lance.c if (card < NUM_CARDS) {/*yes, the first byte matches*/ card 414 drivers/net/ethernet/amd/lance.c for (card = 0; card < NUM_CARDS; ++card) card 415 drivers/net/ethernet/amd/lance.c if ((cards[card].id_offset14 == offset14) && card 416 drivers/net/ethernet/amd/lance.c (cards[card].id_offset15 == offset15)) card 419 drivers/net/ethernet/amd/lance.c if (card < NUM_CARDS) { /*Signature OK*/ card 983 drivers/net/ethernet/dec/tulip/de4x5.c static void srom_repair(struct net_device *dev, int card); card 4133 drivers/net/ethernet/dec/tulip/de4x5.c srom_repair(struct net_device *dev, int card) card 4137 drivers/net/ethernet/dec/tulip/de4x5.c switch(card) { card 113 drivers/net/ethernet/dec/tulip/xircom_cb.c static void xircom_up(struct xircom_private *card); card 118 drivers/net/ethernet/dec/tulip/xircom_cb.c static void investigate_read_descriptor(struct net_device *dev,struct xircom_private *card, int descnr, unsigned int bufferoffset); card 119 drivers/net/ethernet/dec/tulip/xircom_cb.c static void investigate_write_descriptor(struct net_device *dev, struct xircom_private *card, int descnr, unsigned int bufferoffset); card 120 drivers/net/ethernet/dec/tulip/xircom_cb.c static void read_mac_address(struct xircom_private *card); card 121 drivers/net/ethernet/dec/tulip/xircom_cb.c static void transceiver_voodoo(struct xircom_private *card); card 122 drivers/net/ethernet/dec/tulip/xircom_cb.c static void initialize_card(struct xircom_private *card); card 123 drivers/net/ethernet/dec/tulip/xircom_cb.c static void trigger_transmit(struct xircom_private *card); card 124 drivers/net/ethernet/dec/tulip/xircom_cb.c static void trigger_receive(struct xircom_private *card); card 125 drivers/net/ethernet/dec/tulip/xircom_cb.c static void setup_descriptors(struct xircom_private *card); card 126 drivers/net/ethernet/dec/tulip/xircom_cb.c static void remove_descriptors(struct xircom_private *card); card 127 drivers/net/ethernet/dec/tulip/xircom_cb.c static int link_status_changed(struct xircom_private *card); card 128 drivers/net/ethernet/dec/tulip/xircom_cb.c static void activate_receiver(struct xircom_private *card); card 129 drivers/net/ethernet/dec/tulip/xircom_cb.c static void deactivate_receiver(struct xircom_private *card); card 130 drivers/net/ethernet/dec/tulip/xircom_cb.c static void activate_transmitter(struct xircom_private *card); card 131 drivers/net/ethernet/dec/tulip/xircom_cb.c static void deactivate_transmitter(struct xircom_private *card); card 132 drivers/net/ethernet/dec/tulip/xircom_cb.c static void enable_transmit_interrupt(struct xircom_private *card); card 133 drivers/net/ethernet/dec/tulip/xircom_cb.c static void enable_receive_interrupt(struct xircom_private *card); card 134 drivers/net/ethernet/dec/tulip/xircom_cb.c static void enable_link_interrupt(struct xircom_private *card); card 135 drivers/net/ethernet/dec/tulip/xircom_cb.c static void disable_all_interrupts(struct xircom_private *card); card 136 drivers/net/ethernet/dec/tulip/xircom_cb.c static int link_status(struct xircom_private *card); card 312 drivers/net/ethernet/dec/tulip/xircom_cb.c struct xircom_private *card = netdev_priv(dev); card 316 drivers/net/ethernet/dec/tulip/xircom_cb.c pci_iounmap(pdev, card->ioaddr); card 317 drivers/net/ethernet/dec/tulip/xircom_cb.c dma_free_coherent(d, 8192, card->tx_buffer, card->tx_dma_handle); card 318 drivers/net/ethernet/dec/tulip/xircom_cb.c dma_free_coherent(d, 8192, card->rx_buffer, card->rx_dma_handle); card 327 drivers/net/ethernet/dec/tulip/xircom_cb.c struct xircom_private *card = netdev_priv(dev); card 328 drivers/net/ethernet/dec/tulip/xircom_cb.c void __iomem *ioaddr = card->ioaddr; card 332 drivers/net/ethernet/dec/tulip/xircom_cb.c spin_lock(&card->lock); card 338 drivers/net/ethernet/dec/tulip/xircom_cb.c card->tx_buffer[0], card->tx_buffer[4]); card 340 drivers/net/ethernet/dec/tulip/xircom_cb.c card->rx_buffer[0], card->rx_buffer[4]); card 344 drivers/net/ethernet/dec/tulip/xircom_cb.c spin_unlock(&card->lock); card 348 drivers/net/ethernet/dec/tulip/xircom_cb.c if (link_status_changed(card)) { card 351 drivers/net/ethernet/dec/tulip/xircom_cb.c newlink = link_status(card); card 367 drivers/net/ethernet/dec/tulip/xircom_cb.c investigate_write_descriptor(dev,card,i,bufferoffsets[i]); card 369 drivers/net/ethernet/dec/tulip/xircom_cb.c investigate_read_descriptor(dev,card,i,bufferoffsets[i]); card 371 drivers/net/ethernet/dec/tulip/xircom_cb.c spin_unlock(&card->lock); card 378 drivers/net/ethernet/dec/tulip/xircom_cb.c struct xircom_private *card; card 383 drivers/net/ethernet/dec/tulip/xircom_cb.c card = netdev_priv(dev); card 384 drivers/net/ethernet/dec/tulip/xircom_cb.c spin_lock_irqsave(&card->lock,flags); card 388 drivers/net/ethernet/dec/tulip/xircom_cb.c investigate_write_descriptor(dev,card,desc,bufferoffsets[desc]); card 391 drivers/net/ethernet/dec/tulip/xircom_cb.c nextdescriptor = (card->transmit_used +1) % (NUMDESCRIPTORS); card 392 drivers/net/ethernet/dec/tulip/xircom_cb.c desc = card->transmit_used; card 395 drivers/net/ethernet/dec/tulip/xircom_cb.c if (card->tx_buffer[4*desc]==0) { card 399 drivers/net/ethernet/dec/tulip/xircom_cb.c memset(&card->tx_buffer[bufferoffsets[desc]/4],0,1536); card 401 drivers/net/ethernet/dec/tulip/xircom_cb.c &(card->tx_buffer[bufferoffsets[desc] / 4]), card 406 drivers/net/ethernet/dec/tulip/xircom_cb.c card->tx_buffer[4*desc+1] = cpu_to_le32(skb->len); card 408 drivers/net/ethernet/dec/tulip/xircom_cb.c card->tx_buffer[4*desc+1] |= cpu_to_le32(1<<25); card 410 drivers/net/ethernet/dec/tulip/xircom_cb.c card->tx_buffer[4*desc+1] |= cpu_to_le32(0xF0000000); card 412 drivers/net/ethernet/dec/tulip/xircom_cb.c card->tx_skb[desc] = skb; card 416 drivers/net/ethernet/dec/tulip/xircom_cb.c card->tx_buffer[4*desc] = cpu_to_le32(0x80000000); card 417 drivers/net/ethernet/dec/tulip/xircom_cb.c trigger_transmit(card); card 418 drivers/net/ethernet/dec/tulip/xircom_cb.c if (card->tx_buffer[nextdescriptor*4] & cpu_to_le32(0x8000000)) { card 422 drivers/net/ethernet/dec/tulip/xircom_cb.c card->transmit_used = nextdescriptor; card 423 drivers/net/ethernet/dec/tulip/xircom_cb.c spin_unlock_irqrestore(&card->lock,flags); card 429 drivers/net/ethernet/dec/tulip/xircom_cb.c spin_unlock_irqrestore(&card->lock,flags); card 430 drivers/net/ethernet/dec/tulip/xircom_cb.c trigger_transmit(card); card 457 drivers/net/ethernet/dec/tulip/xircom_cb.c struct xircom_private *card; card 460 drivers/net/ethernet/dec/tulip/xircom_cb.c card = netdev_priv(dev); card 464 drivers/net/ethernet/dec/tulip/xircom_cb.c spin_lock_irqsave(&card->lock,flags); card 466 drivers/net/ethernet/dec/tulip/xircom_cb.c disable_all_interrupts(card); card 469 drivers/net/ethernet/dec/tulip/xircom_cb.c deactivate_receiver(card); card 470 drivers/net/ethernet/dec/tulip/xircom_cb.c deactivate_transmitter(card); card 472 drivers/net/ethernet/dec/tulip/xircom_cb.c remove_descriptors(card); card 474 drivers/net/ethernet/dec/tulip/xircom_cb.c spin_unlock_irqrestore(&card->lock,flags); card 476 drivers/net/ethernet/dec/tulip/xircom_cb.c card->open = 0; card 477 drivers/net/ethernet/dec/tulip/xircom_cb.c free_irq(card->pdev->irq, dev); card 497 drivers/net/ethernet/dec/tulip/xircom_cb.c static void initialize_card(struct xircom_private *card) card 499 drivers/net/ethernet/dec/tulip/xircom_cb.c void __iomem *ioaddr = card->ioaddr; card 503 drivers/net/ethernet/dec/tulip/xircom_cb.c spin_lock_irqsave(&card->lock, flags); card 522 drivers/net/ethernet/dec/tulip/xircom_cb.c disable_all_interrupts(card); card 523 drivers/net/ethernet/dec/tulip/xircom_cb.c deactivate_receiver(card); card 524 drivers/net/ethernet/dec/tulip/xircom_cb.c deactivate_transmitter(card); card 526 drivers/net/ethernet/dec/tulip/xircom_cb.c spin_unlock_irqrestore(&card->lock, flags); card 535 drivers/net/ethernet/dec/tulip/xircom_cb.c static void trigger_transmit(struct xircom_private *card) card 537 drivers/net/ethernet/dec/tulip/xircom_cb.c void __iomem *ioaddr = card->ioaddr; card 549 drivers/net/ethernet/dec/tulip/xircom_cb.c static void trigger_receive(struct xircom_private *card) card 551 drivers/net/ethernet/dec/tulip/xircom_cb.c void __iomem *ioaddr = card->ioaddr; card 560 drivers/net/ethernet/dec/tulip/xircom_cb.c static void setup_descriptors(struct xircom_private *card) card 562 drivers/net/ethernet/dec/tulip/xircom_cb.c void __iomem *ioaddr = card->ioaddr; card 566 drivers/net/ethernet/dec/tulip/xircom_cb.c BUG_ON(card->rx_buffer == NULL); card 567 drivers/net/ethernet/dec/tulip/xircom_cb.c BUG_ON(card->tx_buffer == NULL); card 570 drivers/net/ethernet/dec/tulip/xircom_cb.c memset(card->rx_buffer, 0, 128); /* clear the descriptors */ card 574 drivers/net/ethernet/dec/tulip/xircom_cb.c card->rx_buffer[i*4 + 0] = cpu_to_le32(0x80000000); card 576 drivers/net/ethernet/dec/tulip/xircom_cb.c card->rx_buffer[i*4 + 1] = cpu_to_le32(1536); card 578 drivers/net/ethernet/dec/tulip/xircom_cb.c card->rx_buffer[i*4 + 1] |= cpu_to_le32(1 << 25); card 583 drivers/net/ethernet/dec/tulip/xircom_cb.c address = card->rx_dma_handle; card 584 drivers/net/ethernet/dec/tulip/xircom_cb.c card->rx_buffer[i*4 + 2] = cpu_to_le32(address + bufferoffsets[i]); card 586 drivers/net/ethernet/dec/tulip/xircom_cb.c card->rx_buffer[i*4 + 3] = 0; card 591 drivers/net/ethernet/dec/tulip/xircom_cb.c address = card->rx_dma_handle; card 596 drivers/net/ethernet/dec/tulip/xircom_cb.c memset(card->tx_buffer, 0, 128); /* clear the descriptors */ card 600 drivers/net/ethernet/dec/tulip/xircom_cb.c card->tx_buffer[i*4 + 0] = 0x00000000; card 602 drivers/net/ethernet/dec/tulip/xircom_cb.c card->tx_buffer[i*4 + 1] = cpu_to_le32(1536); card 604 drivers/net/ethernet/dec/tulip/xircom_cb.c card->tx_buffer[i*4 + 1] |= cpu_to_le32(1 << 25); card 608 drivers/net/ethernet/dec/tulip/xircom_cb.c address = card->tx_dma_handle; card 609 drivers/net/ethernet/dec/tulip/xircom_cb.c card->tx_buffer[i*4 + 2] = cpu_to_le32(address + bufferoffsets[i]); card 611 drivers/net/ethernet/dec/tulip/xircom_cb.c card->tx_buffer[i*4 + 3] = 0; card 616 drivers/net/ethernet/dec/tulip/xircom_cb.c address = card->tx_dma_handle; card 624 drivers/net/ethernet/dec/tulip/xircom_cb.c static void remove_descriptors(struct xircom_private *card) card 626 drivers/net/ethernet/dec/tulip/xircom_cb.c void __iomem *ioaddr = card->ioaddr; card 640 drivers/net/ethernet/dec/tulip/xircom_cb.c static int link_status_changed(struct xircom_private *card) card 642 drivers/net/ethernet/dec/tulip/xircom_cb.c void __iomem *ioaddr = card->ioaddr; card 662 drivers/net/ethernet/dec/tulip/xircom_cb.c static int transmit_active(struct xircom_private *card) card 664 drivers/net/ethernet/dec/tulip/xircom_cb.c void __iomem *ioaddr = card->ioaddr; card 676 drivers/net/ethernet/dec/tulip/xircom_cb.c static int receive_active(struct xircom_private *card) card 678 drivers/net/ethernet/dec/tulip/xircom_cb.c void __iomem *ioaddr = card->ioaddr; card 696 drivers/net/ethernet/dec/tulip/xircom_cb.c static void activate_receiver(struct xircom_private *card) card 698 drivers/net/ethernet/dec/tulip/xircom_cb.c void __iomem *ioaddr = card->ioaddr; card 706 drivers/net/ethernet/dec/tulip/xircom_cb.c if ((val&2) && (receive_active(card))) card 715 drivers/net/ethernet/dec/tulip/xircom_cb.c if (!receive_active(card)) card 721 drivers/net/ethernet/dec/tulip/xircom_cb.c netdev_err(card->dev, "Receiver failed to deactivate\n"); card 732 drivers/net/ethernet/dec/tulip/xircom_cb.c if (receive_active(card)) card 738 drivers/net/ethernet/dec/tulip/xircom_cb.c netdev_err(card->dev, card 750 drivers/net/ethernet/dec/tulip/xircom_cb.c static void deactivate_receiver(struct xircom_private *card) card 752 drivers/net/ethernet/dec/tulip/xircom_cb.c void __iomem *ioaddr = card->ioaddr; card 762 drivers/net/ethernet/dec/tulip/xircom_cb.c if (!receive_active(card)) card 768 drivers/net/ethernet/dec/tulip/xircom_cb.c netdev_err(card->dev, "Receiver failed to deactivate\n"); card 783 drivers/net/ethernet/dec/tulip/xircom_cb.c static void activate_transmitter(struct xircom_private *card) card 785 drivers/net/ethernet/dec/tulip/xircom_cb.c void __iomem *ioaddr = card->ioaddr; card 793 drivers/net/ethernet/dec/tulip/xircom_cb.c if ((val&(1<<13)) && (transmit_active(card))) card 801 drivers/net/ethernet/dec/tulip/xircom_cb.c if (!transmit_active(card)) card 807 drivers/net/ethernet/dec/tulip/xircom_cb.c netdev_err(card->dev, card 819 drivers/net/ethernet/dec/tulip/xircom_cb.c if (transmit_active(card)) card 825 drivers/net/ethernet/dec/tulip/xircom_cb.c netdev_err(card->dev, card 837 drivers/net/ethernet/dec/tulip/xircom_cb.c static void deactivate_transmitter(struct xircom_private *card) card 839 drivers/net/ethernet/dec/tulip/xircom_cb.c void __iomem *ioaddr = card->ioaddr; card 849 drivers/net/ethernet/dec/tulip/xircom_cb.c if (!transmit_active(card)) card 855 drivers/net/ethernet/dec/tulip/xircom_cb.c netdev_err(card->dev, card 866 drivers/net/ethernet/dec/tulip/xircom_cb.c static void enable_transmit_interrupt(struct xircom_private *card) card 868 drivers/net/ethernet/dec/tulip/xircom_cb.c void __iomem *ioaddr = card->ioaddr; card 882 drivers/net/ethernet/dec/tulip/xircom_cb.c static void enable_receive_interrupt(struct xircom_private *card) card 884 drivers/net/ethernet/dec/tulip/xircom_cb.c void __iomem *ioaddr = card->ioaddr; card 897 drivers/net/ethernet/dec/tulip/xircom_cb.c static void enable_link_interrupt(struct xircom_private *card) card 899 drivers/net/ethernet/dec/tulip/xircom_cb.c void __iomem *ioaddr = card->ioaddr; card 914 drivers/net/ethernet/dec/tulip/xircom_cb.c static void disable_all_interrupts(struct xircom_private *card) card 916 drivers/net/ethernet/dec/tulip/xircom_cb.c void __iomem *ioaddr = card->ioaddr; card 926 drivers/net/ethernet/dec/tulip/xircom_cb.c static void enable_common_interrupts(struct xircom_private *card) card 928 drivers/net/ethernet/dec/tulip/xircom_cb.c void __iomem *ioaddr = card->ioaddr; card 948 drivers/net/ethernet/dec/tulip/xircom_cb.c static int enable_promisc(struct xircom_private *card) card 950 drivers/net/ethernet/dec/tulip/xircom_cb.c void __iomem *ioaddr = card->ioaddr; card 968 drivers/net/ethernet/dec/tulip/xircom_cb.c static int link_status(struct xircom_private *card) card 970 drivers/net/ethernet/dec/tulip/xircom_cb.c void __iomem *ioaddr = card->ioaddr; card 996 drivers/net/ethernet/dec/tulip/xircom_cb.c static void read_mac_address(struct xircom_private *card) card 998 drivers/net/ethernet/dec/tulip/xircom_cb.c void __iomem *ioaddr = card->ioaddr; card 1003 drivers/net/ethernet/dec/tulip/xircom_cb.c spin_lock_irqsave(&card->lock, flags); card 1022 drivers/net/ethernet/dec/tulip/xircom_cb.c card->dev->dev_addr[j] = xr32(CSR9) & 0xff; card 1029 drivers/net/ethernet/dec/tulip/xircom_cb.c spin_unlock_irqrestore(&card->lock, flags); card 1030 drivers/net/ethernet/dec/tulip/xircom_cb.c pr_debug(" %pM\n", card->dev->dev_addr); card 1039 drivers/net/ethernet/dec/tulip/xircom_cb.c static void transceiver_voodoo(struct xircom_private *card) card 1041 drivers/net/ethernet/dec/tulip/xircom_cb.c void __iomem *ioaddr = card->ioaddr; card 1045 drivers/net/ethernet/dec/tulip/xircom_cb.c pci_write_config_dword(card->pdev, PCI_POWERMGMT, 0x0000); card 1047 drivers/net/ethernet/dec/tulip/xircom_cb.c setup_descriptors(card); card 1049 drivers/net/ethernet/dec/tulip/xircom_cb.c spin_lock_irqsave(&card->lock, flags); card 1058 drivers/net/ethernet/dec/tulip/xircom_cb.c spin_unlock_irqrestore(&card->lock, flags); card 1060 drivers/net/ethernet/dec/tulip/xircom_cb.c netif_start_queue(card->dev); card 1064 drivers/net/ethernet/dec/tulip/xircom_cb.c static void xircom_up(struct xircom_private *card) card 1070 drivers/net/ethernet/dec/tulip/xircom_cb.c pci_write_config_dword(card->pdev, PCI_POWERMGMT, 0x0000); card 1072 drivers/net/ethernet/dec/tulip/xircom_cb.c setup_descriptors(card); card 1074 drivers/net/ethernet/dec/tulip/xircom_cb.c spin_lock_irqsave(&card->lock, flags); card 1077 drivers/net/ethernet/dec/tulip/xircom_cb.c enable_link_interrupt(card); card 1078 drivers/net/ethernet/dec/tulip/xircom_cb.c enable_transmit_interrupt(card); card 1079 drivers/net/ethernet/dec/tulip/xircom_cb.c enable_receive_interrupt(card); card 1080 drivers/net/ethernet/dec/tulip/xircom_cb.c enable_common_interrupts(card); card 1081 drivers/net/ethernet/dec/tulip/xircom_cb.c enable_promisc(card); card 1085 drivers/net/ethernet/dec/tulip/xircom_cb.c investigate_read_descriptor(card->dev,card,i,bufferoffsets[i]); card 1088 drivers/net/ethernet/dec/tulip/xircom_cb.c spin_unlock_irqrestore(&card->lock, flags); card 1089 drivers/net/ethernet/dec/tulip/xircom_cb.c trigger_receive(card); card 1090 drivers/net/ethernet/dec/tulip/xircom_cb.c trigger_transmit(card); card 1091 drivers/net/ethernet/dec/tulip/xircom_cb.c netif_start_queue(card->dev); card 1096 drivers/net/ethernet/dec/tulip/xircom_cb.c investigate_read_descriptor(struct net_device *dev, struct xircom_private *card, card 1101 drivers/net/ethernet/dec/tulip/xircom_cb.c status = le32_to_cpu(card->rx_buffer[4*descnr]); card 1123 drivers/net/ethernet/dec/tulip/xircom_cb.c &card->rx_buffer[bufferoffset / 4], card 1133 drivers/net/ethernet/dec/tulip/xircom_cb.c card->rx_buffer[4*descnr] = cpu_to_le32(0x80000000); card 1134 drivers/net/ethernet/dec/tulip/xircom_cb.c trigger_receive(card); card 1142 drivers/net/ethernet/dec/tulip/xircom_cb.c struct xircom_private *card, card 1147 drivers/net/ethernet/dec/tulip/xircom_cb.c status = le32_to_cpu(card->tx_buffer[4*descnr]); card 1151 drivers/net/ethernet/dec/tulip/xircom_cb.c card->tx_buffer[4*descnr] = 0; card 1156 drivers/net/ethernet/dec/tulip/xircom_cb.c if (card->tx_skb[descnr]!=NULL) { card 1157 drivers/net/ethernet/dec/tulip/xircom_cb.c dev->stats.tx_bytes += card->tx_skb[descnr]->len; card 1158 drivers/net/ethernet/dec/tulip/xircom_cb.c dev_kfree_skb_irq(card->tx_skb[descnr]); card 1160 drivers/net/ethernet/dec/tulip/xircom_cb.c card->tx_skb[descnr] = NULL; card 1164 drivers/net/ethernet/dec/tulip/xircom_cb.c card->tx_buffer[4*descnr] = 0; /* descriptor is free again */ card 49 drivers/net/ethernet/toshiba/ps3_gelic_net.c int gelic_card_set_irq_mask(struct gelic_card *card, u64 mask) card 53 drivers/net/ethernet/toshiba/ps3_gelic_net.c status = lv1_net_set_interrupt_mask(bus_id(card), dev_id(card), card 56 drivers/net/ethernet/toshiba/ps3_gelic_net.c dev_info(ctodev(card), card 61 drivers/net/ethernet/toshiba/ps3_gelic_net.c static void gelic_card_rx_irq_on(struct gelic_card *card) card 63 drivers/net/ethernet/toshiba/ps3_gelic_net.c card->irq_mask |= GELIC_CARD_RXINT; card 64 drivers/net/ethernet/toshiba/ps3_gelic_net.c gelic_card_set_irq_mask(card, card->irq_mask); card 66 drivers/net/ethernet/toshiba/ps3_gelic_net.c static void gelic_card_rx_irq_off(struct gelic_card *card) card 68 drivers/net/ethernet/toshiba/ps3_gelic_net.c card->irq_mask &= ~GELIC_CARD_RXINT; card 69 drivers/net/ethernet/toshiba/ps3_gelic_net.c gelic_card_set_irq_mask(card, card->irq_mask); card 72 drivers/net/ethernet/toshiba/ps3_gelic_net.c static void gelic_card_get_ether_port_status(struct gelic_card *card, card 78 drivers/net/ethernet/toshiba/ps3_gelic_net.c lv1_net_control(bus_id(card), dev_id(card), card 81 drivers/net/ethernet/toshiba/ps3_gelic_net.c &card->ether_port_status, &v2); card 84 drivers/net/ethernet/toshiba/ps3_gelic_net.c ether_netdev = card->netdev[GELIC_PORT_ETHERNET_0]; card 85 drivers/net/ethernet/toshiba/ps3_gelic_net.c if (card->ether_port_status & GELIC_LV1_ETHER_LINK_UP) card 104 drivers/net/ethernet/toshiba/ps3_gelic_net.c static int gelic_card_set_link_mode(struct gelic_card *card, int mode) card 109 drivers/net/ethernet/toshiba/ps3_gelic_net.c status = lv1_net_control(bus_id(card), dev_id(card), card 118 drivers/net/ethernet/toshiba/ps3_gelic_net.c card->link_mode = mode; card 129 drivers/net/ethernet/toshiba/ps3_gelic_net.c static void gelic_card_disable_txdmac(struct gelic_card *card) card 134 drivers/net/ethernet/toshiba/ps3_gelic_net.c status = lv1_net_stop_tx_dma(bus_id(card), dev_id(card)); card 136 drivers/net/ethernet/toshiba/ps3_gelic_net.c dev_err(ctodev(card), card 147 drivers/net/ethernet/toshiba/ps3_gelic_net.c static void gelic_card_enable_rxdmac(struct gelic_card *card) card 152 drivers/net/ethernet/toshiba/ps3_gelic_net.c if (gelic_descr_get_status(card->rx_chain.head) != card 155 drivers/net/ethernet/toshiba/ps3_gelic_net.c be32_to_cpu(card->rx_chain.head->dmac_cmd_status)); card 157 drivers/net/ethernet/toshiba/ps3_gelic_net.c be32_to_cpu(card->rx_chain.head->next_descr_addr)); card 159 drivers/net/ethernet/toshiba/ps3_gelic_net.c card->rx_chain.head); card 162 drivers/net/ethernet/toshiba/ps3_gelic_net.c status = lv1_net_start_rx_dma(bus_id(card), dev_id(card), card 163 drivers/net/ethernet/toshiba/ps3_gelic_net.c card->rx_chain.head->bus_addr, 0); card 165 drivers/net/ethernet/toshiba/ps3_gelic_net.c dev_info(ctodev(card), card 176 drivers/net/ethernet/toshiba/ps3_gelic_net.c static void gelic_card_disable_rxdmac(struct gelic_card *card) card 181 drivers/net/ethernet/toshiba/ps3_gelic_net.c status = lv1_net_stop_rx_dma(bus_id(card), dev_id(card)); card 183 drivers/net/ethernet/toshiba/ps3_gelic_net.c dev_err(ctodev(card), card 219 drivers/net/ethernet/toshiba/ps3_gelic_net.c static void gelic_card_reset_chain(struct gelic_card *card, card 236 drivers/net/ethernet/toshiba/ps3_gelic_net.c void gelic_card_up(struct gelic_card *card) card 239 drivers/net/ethernet/toshiba/ps3_gelic_net.c mutex_lock(&card->updown_lock); card 240 drivers/net/ethernet/toshiba/ps3_gelic_net.c if (atomic_inc_return(&card->users) == 1) { card 243 drivers/net/ethernet/toshiba/ps3_gelic_net.c gelic_card_set_irq_mask(card, card->irq_mask); card 245 drivers/net/ethernet/toshiba/ps3_gelic_net.c gelic_card_enable_rxdmac(card); card 247 drivers/net/ethernet/toshiba/ps3_gelic_net.c napi_enable(&card->napi); card 249 drivers/net/ethernet/toshiba/ps3_gelic_net.c mutex_unlock(&card->updown_lock); card 253 drivers/net/ethernet/toshiba/ps3_gelic_net.c void gelic_card_down(struct gelic_card *card) card 257 drivers/net/ethernet/toshiba/ps3_gelic_net.c mutex_lock(&card->updown_lock); card 258 drivers/net/ethernet/toshiba/ps3_gelic_net.c if (atomic_dec_if_positive(&card->users) == 0) { card 260 drivers/net/ethernet/toshiba/ps3_gelic_net.c napi_disable(&card->napi); card 265 drivers/net/ethernet/toshiba/ps3_gelic_net.c mask = card->irq_mask & (GELIC_CARD_WLAN_EVENT_RECEIVED | card 267 drivers/net/ethernet/toshiba/ps3_gelic_net.c gelic_card_set_irq_mask(card, mask); card 269 drivers/net/ethernet/toshiba/ps3_gelic_net.c gelic_card_disable_rxdmac(card); card 270 drivers/net/ethernet/toshiba/ps3_gelic_net.c gelic_card_reset_chain(card, &card->rx_chain, card 271 drivers/net/ethernet/toshiba/ps3_gelic_net.c card->descr + GELIC_NET_TX_DESCRIPTORS); card 273 drivers/net/ethernet/toshiba/ps3_gelic_net.c gelic_card_disable_txdmac(card); card 275 drivers/net/ethernet/toshiba/ps3_gelic_net.c mutex_unlock(&card->updown_lock); card 284 drivers/net/ethernet/toshiba/ps3_gelic_net.c static void gelic_card_free_chain(struct gelic_card *card, card 290 drivers/net/ethernet/toshiba/ps3_gelic_net.c dma_unmap_single(ctodev(card), descr->bus_addr, card 308 drivers/net/ethernet/toshiba/ps3_gelic_net.c static int gelic_card_init_chain(struct gelic_card *card, card 322 drivers/net/ethernet/toshiba/ps3_gelic_net.c dma_map_single(ctodev(card), descr, card 353 drivers/net/ethernet/toshiba/ps3_gelic_net.c dma_unmap_single(ctodev(card), descr->bus_addr, card 369 drivers/net/ethernet/toshiba/ps3_gelic_net.c static int gelic_descr_prepare_rx(struct gelic_card *card, card 376 drivers/net/ethernet/toshiba/ps3_gelic_net.c dev_info(ctodev(card), "%s: ERROR status\n", __func__); card 385 drivers/net/ethernet/toshiba/ps3_gelic_net.c dev_info(ctodev(card), card 400 drivers/net/ethernet/toshiba/ps3_gelic_net.c descr->buf_addr = cpu_to_be32(dma_map_single(ctodev(card), card 407 drivers/net/ethernet/toshiba/ps3_gelic_net.c dev_info(ctodev(card), card 422 drivers/net/ethernet/toshiba/ps3_gelic_net.c static void gelic_card_release_rx_chain(struct gelic_card *card) card 424 drivers/net/ethernet/toshiba/ps3_gelic_net.c struct gelic_descr *descr = card->rx_chain.head; card 428 drivers/net/ethernet/toshiba/ps3_gelic_net.c dma_unmap_single(ctodev(card), card 439 drivers/net/ethernet/toshiba/ps3_gelic_net.c } while (descr != card->rx_chain.head); card 450 drivers/net/ethernet/toshiba/ps3_gelic_net.c static int gelic_card_fill_rx_chain(struct gelic_card *card) card 452 drivers/net/ethernet/toshiba/ps3_gelic_net.c struct gelic_descr *descr = card->rx_chain.head; card 457 drivers/net/ethernet/toshiba/ps3_gelic_net.c ret = gelic_descr_prepare_rx(card, descr); card 462 drivers/net/ethernet/toshiba/ps3_gelic_net.c } while (descr != card->rx_chain.head); card 466 drivers/net/ethernet/toshiba/ps3_gelic_net.c gelic_card_release_rx_chain(card); card 476 drivers/net/ethernet/toshiba/ps3_gelic_net.c static int gelic_card_alloc_rx_skbs(struct gelic_card *card) card 480 drivers/net/ethernet/toshiba/ps3_gelic_net.c chain = &card->rx_chain; card 481 drivers/net/ethernet/toshiba/ps3_gelic_net.c ret = gelic_card_fill_rx_chain(card); card 482 drivers/net/ethernet/toshiba/ps3_gelic_net.c chain->tail = card->rx_top->prev; /* point to the last */ card 493 drivers/net/ethernet/toshiba/ps3_gelic_net.c static void gelic_descr_release_tx(struct gelic_card *card, card 500 drivers/net/ethernet/toshiba/ps3_gelic_net.c dma_unmap_single(ctodev(card), be32_to_cpu(descr->buf_addr), skb->len, card 517 drivers/net/ethernet/toshiba/ps3_gelic_net.c static void gelic_card_stop_queues(struct gelic_card *card) card 519 drivers/net/ethernet/toshiba/ps3_gelic_net.c netif_stop_queue(card->netdev[GELIC_PORT_ETHERNET_0]); card 521 drivers/net/ethernet/toshiba/ps3_gelic_net.c if (card->netdev[GELIC_PORT_WIRELESS]) card 522 drivers/net/ethernet/toshiba/ps3_gelic_net.c netif_stop_queue(card->netdev[GELIC_PORT_WIRELESS]); card 524 drivers/net/ethernet/toshiba/ps3_gelic_net.c static void gelic_card_wake_queues(struct gelic_card *card) card 526 drivers/net/ethernet/toshiba/ps3_gelic_net.c netif_wake_queue(card->netdev[GELIC_PORT_ETHERNET_0]); card 528 drivers/net/ethernet/toshiba/ps3_gelic_net.c if (card->netdev[GELIC_PORT_WIRELESS]) card 529 drivers/net/ethernet/toshiba/ps3_gelic_net.c netif_wake_queue(card->netdev[GELIC_PORT_WIRELESS]); card 538 drivers/net/ethernet/toshiba/ps3_gelic_net.c static void gelic_card_release_tx_chain(struct gelic_card *card, int stop) card 545 drivers/net/ethernet/toshiba/ps3_gelic_net.c for (tx_chain = &card->tx_chain; card 555 drivers/net/ethernet/toshiba/ps3_gelic_net.c dev_info(ctodev(card), card 577 drivers/net/ethernet/toshiba/ps3_gelic_net.c gelic_descr_release_tx(card, tx_chain->tail); card 582 drivers/net/ethernet/toshiba/ps3_gelic_net.c gelic_card_wake_queues(card); card 595 drivers/net/ethernet/toshiba/ps3_gelic_net.c struct gelic_card *card = netdev_card(netdev); card 603 drivers/net/ethernet/toshiba/ps3_gelic_net.c status = lv1_net_remove_multicast_address(bus_id(card), dev_id(card), card 606 drivers/net/ethernet/toshiba/ps3_gelic_net.c dev_err(ctodev(card), card 610 drivers/net/ethernet/toshiba/ps3_gelic_net.c status = lv1_net_add_multicast_address(bus_id(card), dev_id(card), card 613 drivers/net/ethernet/toshiba/ps3_gelic_net.c dev_err(ctodev(card), card 619 drivers/net/ethernet/toshiba/ps3_gelic_net.c status = lv1_net_add_multicast_address(bus_id(card), card 620 drivers/net/ethernet/toshiba/ps3_gelic_net.c dev_id(card), card 623 drivers/net/ethernet/toshiba/ps3_gelic_net.c dev_err(ctodev(card), card 637 drivers/net/ethernet/toshiba/ps3_gelic_net.c status = lv1_net_add_multicast_address(bus_id(card), card 638 drivers/net/ethernet/toshiba/ps3_gelic_net.c dev_id(card), card 641 drivers/net/ethernet/toshiba/ps3_gelic_net.c dev_err(ctodev(card), card 655 drivers/net/ethernet/toshiba/ps3_gelic_net.c struct gelic_card *card; card 662 drivers/net/ethernet/toshiba/ps3_gelic_net.c card = netdev_card(netdev); card 663 drivers/net/ethernet/toshiba/ps3_gelic_net.c gelic_card_down(card); card 676 drivers/net/ethernet/toshiba/ps3_gelic_net.c gelic_card_get_next_tx_descr(struct gelic_card *card) card 678 drivers/net/ethernet/toshiba/ps3_gelic_net.c if (!card->tx_chain.head) card 681 drivers/net/ethernet/toshiba/ps3_gelic_net.c if (card->tx_chain.tail != card->tx_chain.head->next && card 682 drivers/net/ethernet/toshiba/ps3_gelic_net.c gelic_descr_get_status(card->tx_chain.head) == card 684 drivers/net/ethernet/toshiba/ps3_gelic_net.c return card->tx_chain.head; card 764 drivers/net/ethernet/toshiba/ps3_gelic_net.c static int gelic_descr_prepare_tx(struct gelic_card *card, card 770 drivers/net/ethernet/toshiba/ps3_gelic_net.c if (card->vlan_required) { card 776 drivers/net/ethernet/toshiba/ps3_gelic_net.c card->vlan[type].tx); card 782 drivers/net/ethernet/toshiba/ps3_gelic_net.c buf = dma_map_single(ctodev(card), skb->data, skb->len, DMA_TO_DEVICE); card 785 drivers/net/ethernet/toshiba/ps3_gelic_net.c dev_err(ctodev(card), card 799 drivers/net/ethernet/toshiba/ps3_gelic_net.c card->tx_chain.head = descr->next; card 809 drivers/net/ethernet/toshiba/ps3_gelic_net.c static int gelic_card_kick_txdma(struct gelic_card *card, card 814 drivers/net/ethernet/toshiba/ps3_gelic_net.c if (card->tx_dma_progress) card 818 drivers/net/ethernet/toshiba/ps3_gelic_net.c card->tx_dma_progress = 1; card 819 drivers/net/ethernet/toshiba/ps3_gelic_net.c status = lv1_net_start_tx_dma(bus_id(card), dev_id(card), card 822 drivers/net/ethernet/toshiba/ps3_gelic_net.c card->tx_dma_progress = 0; card 823 drivers/net/ethernet/toshiba/ps3_gelic_net.c dev_info(ctodev(card), "lv1_net_start_txdma failed," \ card 839 drivers/net/ethernet/toshiba/ps3_gelic_net.c struct gelic_card *card = netdev_card(netdev); card 844 drivers/net/ethernet/toshiba/ps3_gelic_net.c spin_lock_irqsave(&card->tx_lock, flags); card 846 drivers/net/ethernet/toshiba/ps3_gelic_net.c gelic_card_release_tx_chain(card, 0); card 848 drivers/net/ethernet/toshiba/ps3_gelic_net.c descr = gelic_card_get_next_tx_descr(card); card 853 drivers/net/ethernet/toshiba/ps3_gelic_net.c gelic_card_stop_queues(card); card 854 drivers/net/ethernet/toshiba/ps3_gelic_net.c spin_unlock_irqrestore(&card->tx_lock, flags); card 858 drivers/net/ethernet/toshiba/ps3_gelic_net.c result = gelic_descr_prepare_tx(card, descr, skb); card 866 drivers/net/ethernet/toshiba/ps3_gelic_net.c spin_unlock_irqrestore(&card->tx_lock, flags); card 879 drivers/net/ethernet/toshiba/ps3_gelic_net.c if (gelic_card_kick_txdma(card, descr)) { card 887 drivers/net/ethernet/toshiba/ps3_gelic_net.c gelic_descr_release_tx(card, descr); card 889 drivers/net/ethernet/toshiba/ps3_gelic_net.c card->tx_chain.head = descr; card 892 drivers/net/ethernet/toshiba/ps3_gelic_net.c dev_info(ctodev(card), "%s: kick failure\n", __func__); card 895 drivers/net/ethernet/toshiba/ps3_gelic_net.c spin_unlock_irqrestore(&card->tx_lock, flags); card 909 drivers/net/ethernet/toshiba/ps3_gelic_net.c struct gelic_card *card, card 919 drivers/net/ethernet/toshiba/ps3_gelic_net.c dma_unmap_single(ctodev(card), be32_to_cpu(descr->buf_addr), card 927 drivers/net/ethernet/toshiba/ps3_gelic_net.c dev_info(ctodev(card), "buffer full %x %x %x\n", card 967 drivers/net/ethernet/toshiba/ps3_gelic_net.c static int gelic_card_decode_one_descr(struct gelic_card *card) card 970 drivers/net/ethernet/toshiba/ps3_gelic_net.c struct gelic_descr_chain *chain = &card->rx_chain; card 981 drivers/net/ethernet/toshiba/ps3_gelic_net.c dev_dbg(ctodev(card), "dormant descr? %p\n", descr); card 986 drivers/net/ethernet/toshiba/ps3_gelic_net.c if (card->vlan_required) { card 991 drivers/net/ethernet/toshiba/ps3_gelic_net.c if (card->vlan[i].rx == vid) { card 992 drivers/net/ethernet/toshiba/ps3_gelic_net.c netdev = card->netdev[i]; card 1001 drivers/net/ethernet/toshiba/ps3_gelic_net.c netdev = card->netdev[GELIC_PORT_ETHERNET_0]; card 1006 drivers/net/ethernet/toshiba/ps3_gelic_net.c dev_info(ctodev(card), "dropping RX descriptor with state %x\n", card 1022 drivers/net/ethernet/toshiba/ps3_gelic_net.c dev_info(ctodev(card), "overlength frame\n"); card 1030 drivers/net/ethernet/toshiba/ps3_gelic_net.c dev_dbg(ctodev(card), "RX descriptor with state %x\n", card 1036 drivers/net/ethernet/toshiba/ps3_gelic_net.c gelic_net_pass_skb_up(descr, card, netdev); card 1057 drivers/net/ethernet/toshiba/ps3_gelic_net.c gelic_descr_prepare_rx(card, descr); card 1073 drivers/net/ethernet/toshiba/ps3_gelic_net.c gelic_card_enable_rxdmac(card); card 1088 drivers/net/ethernet/toshiba/ps3_gelic_net.c struct gelic_card *card = container_of(napi, struct gelic_card, napi); card 1092 drivers/net/ethernet/toshiba/ps3_gelic_net.c if (!gelic_card_decode_one_descr(card)) card 1100 drivers/net/ethernet/toshiba/ps3_gelic_net.c gelic_card_rx_irq_on(card); card 1111 drivers/net/ethernet/toshiba/ps3_gelic_net.c struct gelic_card *card = ptr; card 1114 drivers/net/ethernet/toshiba/ps3_gelic_net.c status = card->irq_status; card 1119 drivers/net/ethernet/toshiba/ps3_gelic_net.c status &= card->irq_mask; card 1122 drivers/net/ethernet/toshiba/ps3_gelic_net.c gelic_card_rx_irq_off(card); card 1123 drivers/net/ethernet/toshiba/ps3_gelic_net.c napi_schedule(&card->napi); card 1127 drivers/net/ethernet/toshiba/ps3_gelic_net.c spin_lock_irqsave(&card->tx_lock, flags); card 1128 drivers/net/ethernet/toshiba/ps3_gelic_net.c card->tx_dma_progress = 0; card 1129 drivers/net/ethernet/toshiba/ps3_gelic_net.c gelic_card_release_tx_chain(card, 0); card 1131 drivers/net/ethernet/toshiba/ps3_gelic_net.c gelic_card_kick_txdma(card, card->tx_chain.tail); card 1132 drivers/net/ethernet/toshiba/ps3_gelic_net.c spin_unlock_irqrestore(&card->tx_lock, flags); card 1137 drivers/net/ethernet/toshiba/ps3_gelic_net.c gelic_card_get_ether_port_status(card, 1); card 1142 drivers/net/ethernet/toshiba/ps3_gelic_net.c gelic_wl_interrupt(card->netdev[GELIC_PORT_WIRELESS], status); card 1157 drivers/net/ethernet/toshiba/ps3_gelic_net.c struct gelic_card *card = netdev_card(netdev); card 1159 drivers/net/ethernet/toshiba/ps3_gelic_net.c gelic_card_set_irq_mask(card, 0); card 1161 drivers/net/ethernet/toshiba/ps3_gelic_net.c gelic_card_set_irq_mask(card, card->irq_mask); card 1176 drivers/net/ethernet/toshiba/ps3_gelic_net.c struct gelic_card *card = netdev_card(netdev); card 1178 drivers/net/ethernet/toshiba/ps3_gelic_net.c dev_dbg(ctodev(card), " -> %s %p\n", __func__, netdev); card 1180 drivers/net/ethernet/toshiba/ps3_gelic_net.c gelic_card_up(card); card 1183 drivers/net/ethernet/toshiba/ps3_gelic_net.c gelic_card_get_ether_port_status(card, 1); card 1185 drivers/net/ethernet/toshiba/ps3_gelic_net.c dev_dbg(ctodev(card), " <- %s\n", __func__); card 1199 drivers/net/ethernet/toshiba/ps3_gelic_net.c struct gelic_card *card = netdev_card(netdev); card 1202 drivers/net/ethernet/toshiba/ps3_gelic_net.c gelic_card_get_ether_port_status(card, 0); card 1204 drivers/net/ethernet/toshiba/ps3_gelic_net.c if (card->ether_port_status & GELIC_LV1_ETHER_FULL_DUPLEX) card 1209 drivers/net/ethernet/toshiba/ps3_gelic_net.c switch (card->ether_port_status & GELIC_LV1_ETHER_SPEED_MASK) { card 1230 drivers/net/ethernet/toshiba/ps3_gelic_net.c if (card->link_mode & GELIC_LV1_ETHER_AUTO_NEG) { card 1250 drivers/net/ethernet/toshiba/ps3_gelic_net.c struct gelic_card *card = netdev_card(netdev); card 1278 drivers/net/ethernet/toshiba/ps3_gelic_net.c ret = gelic_card_set_link_mode(card, mode); card 1301 drivers/net/ethernet/toshiba/ps3_gelic_net.c struct gelic_card *card; card 1311 drivers/net/ethernet/toshiba/ps3_gelic_net.c card = netdev_card(netdev); card 1313 drivers/net/ethernet/toshiba/ps3_gelic_net.c status = lv1_net_control(bus_id(card), dev_id(card), card 1324 drivers/net/ethernet/toshiba/ps3_gelic_net.c status = lv1_net_control(bus_id(card), dev_id(card), card 1337 drivers/net/ethernet/toshiba/ps3_gelic_net.c status = lv1_net_control(bus_id(card), dev_id(card), card 1348 drivers/net/ethernet/toshiba/ps3_gelic_net.c status = lv1_net_control(bus_id(card), dev_id(card), card 1383 drivers/net/ethernet/toshiba/ps3_gelic_net.c struct gelic_card *card = card 1385 drivers/net/ethernet/toshiba/ps3_gelic_net.c struct net_device *netdev = card->netdev[GELIC_PORT_ETHERNET_0]; card 1387 drivers/net/ethernet/toshiba/ps3_gelic_net.c dev_info(ctodev(card), "%s:Timed out. Restarting...\n", __func__); card 1399 drivers/net/ethernet/toshiba/ps3_gelic_net.c atomic_dec(&card->tx_timeout_task_counter); card 1410 drivers/net/ethernet/toshiba/ps3_gelic_net.c struct gelic_card *card; card 1412 drivers/net/ethernet/toshiba/ps3_gelic_net.c card = netdev_card(netdev); card 1413 drivers/net/ethernet/toshiba/ps3_gelic_net.c atomic_inc(&card->tx_timeout_task_counter); card 1415 drivers/net/ethernet/toshiba/ps3_gelic_net.c schedule_work(&card->tx_timeout_task); card 1417 drivers/net/ethernet/toshiba/ps3_gelic_net.c atomic_dec(&card->tx_timeout_task_counter); card 1459 drivers/net/ethernet/toshiba/ps3_gelic_net.c int gelic_net_setup_netdev(struct net_device *netdev, struct gelic_card *card) card 1470 drivers/net/ethernet/toshiba/ps3_gelic_net.c status = lv1_net_control(bus_id(card), dev_id(card), card 1475 drivers/net/ethernet/toshiba/ps3_gelic_net.c dev_info(ctodev(card), card 1482 drivers/net/ethernet/toshiba/ps3_gelic_net.c if (card->vlan_required) { card 1497 drivers/net/ethernet/toshiba/ps3_gelic_net.c dev_err(ctodev(card), "%s:Couldn't register %s %d\n", card 1501 drivers/net/ethernet/toshiba/ps3_gelic_net.c dev_info(ctodev(card), "%s: MAC addr %pM\n", card 1517 drivers/net/ethernet/toshiba/ps3_gelic_net.c struct gelic_card *card; card 1536 drivers/net/ethernet/toshiba/ps3_gelic_net.c card = PTR_ALIGN(p, GELIC_ALIGN); card 1537 drivers/net/ethernet/toshiba/ps3_gelic_net.c card->unalign = p; card 1544 drivers/net/ethernet/toshiba/ps3_gelic_net.c kfree(card->unalign); card 1551 drivers/net/ethernet/toshiba/ps3_gelic_net.c port->card = card; card 1555 drivers/net/ethernet/toshiba/ps3_gelic_net.c card->netdev[GELIC_PORT_ETHERNET_0] = *netdev; card 1557 drivers/net/ethernet/toshiba/ps3_gelic_net.c INIT_WORK(&card->tx_timeout_task, gelic_net_tx_timeout_task); card 1558 drivers/net/ethernet/toshiba/ps3_gelic_net.c init_waitqueue_head(&card->waitq); card 1559 drivers/net/ethernet/toshiba/ps3_gelic_net.c atomic_set(&card->tx_timeout_task_counter, 0); card 1560 drivers/net/ethernet/toshiba/ps3_gelic_net.c mutex_init(&card->updown_lock); card 1561 drivers/net/ethernet/toshiba/ps3_gelic_net.c atomic_set(&card->users, 0); card 1563 drivers/net/ethernet/toshiba/ps3_gelic_net.c return card; card 1566 drivers/net/ethernet/toshiba/ps3_gelic_net.c static void gelic_card_get_vlan_info(struct gelic_card *card) card 1587 drivers/net/ethernet/toshiba/ps3_gelic_net.c status = lv1_net_control(bus_id(card), dev_id(card), card 1593 drivers/net/ethernet/toshiba/ps3_gelic_net.c dev_dbg(ctodev(card), card 1596 drivers/net/ethernet/toshiba/ps3_gelic_net.c card->vlan[i].tx = 0; card 1597 drivers/net/ethernet/toshiba/ps3_gelic_net.c card->vlan[i].rx = 0; card 1600 drivers/net/ethernet/toshiba/ps3_gelic_net.c card->vlan[i].tx = (u16)v1; card 1603 drivers/net/ethernet/toshiba/ps3_gelic_net.c status = lv1_net_control(bus_id(card), dev_id(card), card 1609 drivers/net/ethernet/toshiba/ps3_gelic_net.c dev_info(ctodev(card), card 1612 drivers/net/ethernet/toshiba/ps3_gelic_net.c card->vlan[i].tx = 0; card 1613 drivers/net/ethernet/toshiba/ps3_gelic_net.c card->vlan[i].rx = 0; card 1616 drivers/net/ethernet/toshiba/ps3_gelic_net.c card->vlan[i].rx = (u16)v1; card 1618 drivers/net/ethernet/toshiba/ps3_gelic_net.c dev_dbg(ctodev(card), "vlan_id[%d] tx=%02x rx=%02x\n", card 1619 drivers/net/ethernet/toshiba/ps3_gelic_net.c i, card->vlan[i].tx, card->vlan[i].rx); card 1622 drivers/net/ethernet/toshiba/ps3_gelic_net.c if (card->vlan[GELIC_PORT_ETHERNET_0].tx) { card 1623 drivers/net/ethernet/toshiba/ps3_gelic_net.c BUG_ON(!card->vlan[GELIC_PORT_WIRELESS].tx); card 1624 drivers/net/ethernet/toshiba/ps3_gelic_net.c card->vlan_required = 1; card 1626 drivers/net/ethernet/toshiba/ps3_gelic_net.c card->vlan_required = 0; card 1630 drivers/net/ethernet/toshiba/ps3_gelic_net.c card->vlan[GELIC_PORT_WIRELESS].tx = 0; card 1631 drivers/net/ethernet/toshiba/ps3_gelic_net.c card->vlan[GELIC_PORT_WIRELESS].rx = 0; card 1634 drivers/net/ethernet/toshiba/ps3_gelic_net.c dev_info(ctodev(card), "internal vlan %s\n", card 1635 drivers/net/ethernet/toshiba/ps3_gelic_net.c card->vlan_required? "enabled" : "disabled"); card 1642 drivers/net/ethernet/toshiba/ps3_gelic_net.c struct gelic_card *card; card 1668 drivers/net/ethernet/toshiba/ps3_gelic_net.c card = gelic_alloc_card_net(&netdev); card 1669 drivers/net/ethernet/toshiba/ps3_gelic_net.c if (!card) { card 1675 drivers/net/ethernet/toshiba/ps3_gelic_net.c ps3_system_bus_set_drvdata(dev, card); card 1676 drivers/net/ethernet/toshiba/ps3_gelic_net.c card->dev = dev; card 1679 drivers/net/ethernet/toshiba/ps3_gelic_net.c gelic_card_get_vlan_info(card); card 1681 drivers/net/ethernet/toshiba/ps3_gelic_net.c card->link_mode = GELIC_LV1_ETHER_AUTO_NEG; card 1684 drivers/net/ethernet/toshiba/ps3_gelic_net.c result = lv1_net_set_interrupt_status_indicator(bus_id(card), card 1685 drivers/net/ethernet/toshiba/ps3_gelic_net.c dev_id(card), card 1686 drivers/net/ethernet/toshiba/ps3_gelic_net.c ps3_mm_phys_to_lpar(__pa(&card->irq_status)), card 1698 drivers/net/ethernet/toshiba/ps3_gelic_net.c &card->irq); card 1701 drivers/net/ethernet/toshiba/ps3_gelic_net.c dev_info(ctodev(card), card 1707 drivers/net/ethernet/toshiba/ps3_gelic_net.c result = request_irq(card->irq, gelic_card_interrupt, card 1708 drivers/net/ethernet/toshiba/ps3_gelic_net.c 0, netdev->name, card); card 1711 drivers/net/ethernet/toshiba/ps3_gelic_net.c dev_info(ctodev(card), "%s:request_irq failed (%d)\n", card 1717 drivers/net/ethernet/toshiba/ps3_gelic_net.c card->irq_mask = GELIC_CARD_RXINT | GELIC_CARD_TXINT | card 1721 drivers/net/ethernet/toshiba/ps3_gelic_net.c result = gelic_card_init_chain(card, &card->tx_chain, card 1722 drivers/net/ethernet/toshiba/ps3_gelic_net.c card->descr, GELIC_NET_TX_DESCRIPTORS); card 1725 drivers/net/ethernet/toshiba/ps3_gelic_net.c result = gelic_card_init_chain(card, &card->rx_chain, card 1726 drivers/net/ethernet/toshiba/ps3_gelic_net.c card->descr + GELIC_NET_TX_DESCRIPTORS, card 1732 drivers/net/ethernet/toshiba/ps3_gelic_net.c card->tx_top = card->tx_chain.head; card 1733 drivers/net/ethernet/toshiba/ps3_gelic_net.c card->rx_top = card->rx_chain.head; card 1734 drivers/net/ethernet/toshiba/ps3_gelic_net.c dev_dbg(ctodev(card), "descr rx %p, tx %p, size %#lx, num %#x\n", card 1735 drivers/net/ethernet/toshiba/ps3_gelic_net.c card->rx_top, card->tx_top, sizeof(struct gelic_descr), card 1738 drivers/net/ethernet/toshiba/ps3_gelic_net.c result = gelic_card_alloc_rx_skbs(card); card 1742 drivers/net/ethernet/toshiba/ps3_gelic_net.c spin_lock_init(&card->tx_lock); card 1743 drivers/net/ethernet/toshiba/ps3_gelic_net.c card->tx_dma_progress = 0; card 1746 drivers/net/ethernet/toshiba/ps3_gelic_net.c netdev->irq = card->irq; card 1747 drivers/net/ethernet/toshiba/ps3_gelic_net.c SET_NETDEV_DEV(netdev, &card->dev->core); card 1748 drivers/net/ethernet/toshiba/ps3_gelic_net.c gelic_ether_setup_netdev_ops(netdev, &card->napi); card 1749 drivers/net/ethernet/toshiba/ps3_gelic_net.c result = gelic_net_setup_netdev(netdev, card); card 1757 drivers/net/ethernet/toshiba/ps3_gelic_net.c result = gelic_wl_driver_probe(card); card 1768 drivers/net/ethernet/toshiba/ps3_gelic_net.c gelic_card_free_chain(card, card->rx_chain.head); card 1770 drivers/net/ethernet/toshiba/ps3_gelic_net.c gelic_card_free_chain(card, card->tx_chain.head); card 1772 drivers/net/ethernet/toshiba/ps3_gelic_net.c free_irq(card->irq, card); card 1775 drivers/net/ethernet/toshiba/ps3_gelic_net.c ps3_sb_event_receive_port_destroy(dev, card->irq); card 1777 drivers/net/ethernet/toshiba/ps3_gelic_net.c lv1_net_set_interrupt_status_indicator(bus_id(card), card 1778 drivers/net/ethernet/toshiba/ps3_gelic_net.c bus_id(card), card 1798 drivers/net/ethernet/toshiba/ps3_gelic_net.c struct gelic_card *card = ps3_system_bus_get_drvdata(dev); card 1803 drivers/net/ethernet/toshiba/ps3_gelic_net.c gelic_card_set_link_mode(card, GELIC_LV1_ETHER_AUTO_NEG); card 1806 drivers/net/ethernet/toshiba/ps3_gelic_net.c gelic_wl_driver_remove(card); card 1809 drivers/net/ethernet/toshiba/ps3_gelic_net.c gelic_card_set_irq_mask(card, 0); card 1812 drivers/net/ethernet/toshiba/ps3_gelic_net.c gelic_card_disable_rxdmac(card); card 1813 drivers/net/ethernet/toshiba/ps3_gelic_net.c gelic_card_disable_txdmac(card); card 1816 drivers/net/ethernet/toshiba/ps3_gelic_net.c gelic_card_release_tx_chain(card, 1); card 1817 drivers/net/ethernet/toshiba/ps3_gelic_net.c gelic_card_release_rx_chain(card); card 1819 drivers/net/ethernet/toshiba/ps3_gelic_net.c gelic_card_free_chain(card, card->tx_top); card 1820 drivers/net/ethernet/toshiba/ps3_gelic_net.c gelic_card_free_chain(card, card->rx_top); card 1822 drivers/net/ethernet/toshiba/ps3_gelic_net.c netdev0 = card->netdev[GELIC_PORT_ETHERNET_0]; card 1824 drivers/net/ethernet/toshiba/ps3_gelic_net.c free_irq(card->irq, card); card 1826 drivers/net/ethernet/toshiba/ps3_gelic_net.c ps3_sb_event_receive_port_destroy(card->dev, card->irq); card 1828 drivers/net/ethernet/toshiba/ps3_gelic_net.c wait_event(card->waitq, card 1829 drivers/net/ethernet/toshiba/ps3_gelic_net.c atomic_read(&card->tx_timeout_task_counter) == 0); card 1831 drivers/net/ethernet/toshiba/ps3_gelic_net.c lv1_net_set_interrupt_status_indicator(bus_id(card), dev_id(card), card 308 drivers/net/ethernet/toshiba/ps3_gelic_net.h struct gelic_card *card; card 316 drivers/net/ethernet/toshiba/ps3_gelic_net.h return p->card; card 324 drivers/net/ethernet/toshiba/ps3_gelic_net.h return ((struct gelic_port *)netdev_priv(d))->card; card 330 drivers/net/ethernet/toshiba/ps3_gelic_net.h static inline struct device *ctodev(struct gelic_card *card) card 332 drivers/net/ethernet/toshiba/ps3_gelic_net.h return &card->dev->core; card 334 drivers/net/ethernet/toshiba/ps3_gelic_net.h static inline u64 bus_id(struct gelic_card *card) card 336 drivers/net/ethernet/toshiba/ps3_gelic_net.h return card->dev->bus_id; card 338 drivers/net/ethernet/toshiba/ps3_gelic_net.h static inline u64 dev_id(struct gelic_card *card) card 340 drivers/net/ethernet/toshiba/ps3_gelic_net.h return card->dev->dev_id; card 354 drivers/net/ethernet/toshiba/ps3_gelic_net.h int gelic_card_set_irq_mask(struct gelic_card *card, u64 mask); card 356 drivers/net/ethernet/toshiba/ps3_gelic_net.h void gelic_card_up(struct gelic_card *card); card 357 drivers/net/ethernet/toshiba/ps3_gelic_net.h void gelic_card_down(struct gelic_card *card); card 363 drivers/net/ethernet/toshiba/ps3_gelic_net.h int gelic_net_setup_netdev(struct net_device *netdev, struct gelic_card *card); card 145 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c struct gelic_card *card; card 155 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c card = port_to_card(wl_port(wl)); card 168 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c cmd->status = lv1_net_control(bus_id(card), dev_id(card), card 188 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c cmd->status = lv1_net_control(bus_id(card), dev_id(card), card 274 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c struct gelic_card *card = port_to_card(wl_port(wl)); card 279 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c status = lv1_net_control(bus_id(card), dev_id(card), card 2129 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c status = lv1_net_control(bus_id(port->card), dev_id(port->card), card 2283 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c static struct net_device *gelic_wl_alloc(struct gelic_card *card) card 2293 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c pr_debug("%s: netdev =%p card=%p\n", __func__, netdev, card); card 2301 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c port->card = card; card 2437 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c struct gelic_card *card = netdev_card(netdev); card 2441 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c gelic_card_up(card); card 2516 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c struct gelic_card *card = netdev_card(netdev); card 2534 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c gelic_card_down(card); card 2576 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c int gelic_wl_driver_probe(struct gelic_card *card) card 2585 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c if (!card->vlan[GELIC_PORT_WIRELESS].tx) card 2589 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c netdev = gelic_wl_alloc(card); card 2594 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c SET_NETDEV_DEV(netdev, &card->dev->core); card 2598 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c ret = gelic_net_setup_netdev(netdev, card); card 2601 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c card->netdev[GELIC_PORT_WIRELESS] = netdev; card 2604 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c card->irq_mask |= GELIC_CARD_WLAN_EVENT_RECEIVED | card 2607 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c gelic_card_set_irq_mask(card, GELIC_CARD_WLAN_EVENT_RECEIVED | card 2618 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c int gelic_wl_driver_remove(struct gelic_card *card) card 2627 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c if (!card->vlan[GELIC_PORT_WIRELESS].tx) card 2630 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c netdev = card->netdev[GELIC_PORT_WIRELESS]; card 2649 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c card->irq_mask &= ~(GELIC_CARD_WLAN_EVENT_RECEIVED | card 311 drivers/net/ethernet/toshiba/ps3_gelic_wireless.h int gelic_wl_driver_probe(struct gelic_card *card); card 312 drivers/net/ethernet/toshiba/ps3_gelic_wireless.h int gelic_wl_driver_remove(struct gelic_card *card); card 78 drivers/net/ethernet/toshiba/spider_net.c spider_net_read_reg(struct spider_net_card *card, u32 reg) card 84 drivers/net/ethernet/toshiba/spider_net.c return in_be32(card->regs + reg); card 94 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(struct spider_net_card *card, u32 reg, u32 value) card 100 drivers/net/ethernet/toshiba/spider_net.c out_be32(card->regs + reg, value); card 118 drivers/net/ethernet/toshiba/spider_net.c struct spider_net_card *card = netdev_priv(netdev); card 124 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_GPCWOPCMD, writevalue); card 141 drivers/net/ethernet/toshiba/spider_net.c struct spider_net_card *card = netdev_priv(netdev); card 145 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_GPCROPCMD, readvalue); card 151 drivers/net/ethernet/toshiba/spider_net.c readvalue = spider_net_read_reg(card, SPIDER_NET_GPCROPCMD); card 164 drivers/net/ethernet/toshiba/spider_net.c spider_net_setup_aneg(struct spider_net_card *card) card 166 drivers/net/ethernet/toshiba/spider_net.c struct mii_phy *phy = &card->phy; card 170 drivers/net/ethernet/toshiba/spider_net.c bmsr = spider_net_read_phy(card->netdev, phy->mii_id, MII_BMSR); card 171 drivers/net/ethernet/toshiba/spider_net.c estat = spider_net_read_phy(card->netdev, phy->mii_id, MII_ESTATUS); card 199 drivers/net/ethernet/toshiba/spider_net.c spider_net_rx_irq_off(struct spider_net_card *card) card 204 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_GHIINT0MSK, regvalue); card 214 drivers/net/ethernet/toshiba/spider_net.c spider_net_rx_irq_on(struct spider_net_card *card) card 219 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_GHIINT0MSK, regvalue); card 230 drivers/net/ethernet/toshiba/spider_net.c spider_net_set_promisc(struct spider_net_card *card) card 233 drivers/net/ethernet/toshiba/spider_net.c struct net_device *netdev = card->netdev; card 237 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_GMRUAFILnR, 0); card 238 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_GMRUAFILnR + 0x04, 0); card 239 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_GMRUA0FIL15R, card 248 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_GMRUAFILnR, macu); card 249 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_GMRUAFILnR + 0x04, macl); card 250 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_GMRUA0FIL15R, card 274 drivers/net/ethernet/toshiba/spider_net.c spider_net_free_chain(struct spider_net_card *card, card 286 drivers/net/ethernet/toshiba/spider_net.c dma_free_coherent(&card->pdev->dev, chain->num_desc, card 301 drivers/net/ethernet/toshiba/spider_net.c spider_net_init_chain(struct spider_net_card *card, card 312 drivers/net/ethernet/toshiba/spider_net.c chain->hwring = dma_alloc_coherent(&card->pdev->dev, alloc_size, card 351 drivers/net/ethernet/toshiba/spider_net.c spider_net_free_rx_chain_contents(struct spider_net_card *card) card 355 drivers/net/ethernet/toshiba/spider_net.c descr = card->rx_chain.head; card 358 drivers/net/ethernet/toshiba/spider_net.c pci_unmap_single(card->pdev, descr->hwdescr->buf_addr, card 365 drivers/net/ethernet/toshiba/spider_net.c } while (descr != card->rx_chain.head); card 379 drivers/net/ethernet/toshiba/spider_net.c spider_net_prepare_rx_descr(struct spider_net_card *card, card 394 drivers/net/ethernet/toshiba/spider_net.c descr->skb = netdev_alloc_skb(card->netdev, card 397 drivers/net/ethernet/toshiba/spider_net.c if (netif_msg_rx_err(card) && net_ratelimit()) card 398 drivers/net/ethernet/toshiba/spider_net.c dev_err(&card->netdev->dev, card 400 drivers/net/ethernet/toshiba/spider_net.c card->spider_stats.alloc_rx_skb_error++; card 414 drivers/net/ethernet/toshiba/spider_net.c buf = pci_map_single(card->pdev, descr->skb->data, card 416 drivers/net/ethernet/toshiba/spider_net.c if (pci_dma_mapping_error(card->pdev, buf)) { card 419 drivers/net/ethernet/toshiba/spider_net.c if (netif_msg_rx_err(card) && net_ratelimit()) card 420 drivers/net/ethernet/toshiba/spider_net.c dev_err(&card->netdev->dev, "Could not iommu-map rx buffer\n"); card 421 drivers/net/ethernet/toshiba/spider_net.c card->spider_stats.rx_iommu_map_error++; card 442 drivers/net/ethernet/toshiba/spider_net.c spider_net_enable_rxchtails(struct spider_net_card *card) card 445 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_GDADCHA , card 446 drivers/net/ethernet/toshiba/spider_net.c card->rx_chain.tail->bus_addr); card 457 drivers/net/ethernet/toshiba/spider_net.c spider_net_enable_rxdmac(struct spider_net_card *card) card 460 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_GDADMACCNTR, card 472 drivers/net/ethernet/toshiba/spider_net.c spider_net_disable_rxdmac(struct spider_net_card *card) card 474 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_GDADMACCNTR, card 485 drivers/net/ethernet/toshiba/spider_net.c spider_net_refill_rx_chain(struct spider_net_card *card) card 487 drivers/net/ethernet/toshiba/spider_net.c struct spider_net_descr_chain *chain = &card->rx_chain; card 499 drivers/net/ethernet/toshiba/spider_net.c if (spider_net_prepare_rx_descr(card, chain->head)) card 514 drivers/net/ethernet/toshiba/spider_net.c spider_net_alloc_rx_skbs(struct spider_net_card *card) card 516 drivers/net/ethernet/toshiba/spider_net.c struct spider_net_descr_chain *chain = &card->rx_chain; card 529 drivers/net/ethernet/toshiba/spider_net.c if (spider_net_prepare_rx_descr(card, chain->head)) card 536 drivers/net/ethernet/toshiba/spider_net.c spider_net_refill_rx_chain(card); card 537 drivers/net/ethernet/toshiba/spider_net.c spider_net_enable_rxdmac(card); card 541 drivers/net/ethernet/toshiba/spider_net.c spider_net_free_rx_chain_contents(card); card 592 drivers/net/ethernet/toshiba/spider_net.c struct spider_net_card *card = netdev_priv(netdev); card 595 drivers/net/ethernet/toshiba/spider_net.c spider_net_set_promisc(card); card 628 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_GMRMHFILnR + i * 4, reg); card 643 drivers/net/ethernet/toshiba/spider_net.c spider_net_prepare_tx_descr(struct spider_net_card *card, card 646 drivers/net/ethernet/toshiba/spider_net.c struct spider_net_descr_chain *chain = &card->tx_chain; card 652 drivers/net/ethernet/toshiba/spider_net.c buf = pci_map_single(card->pdev, skb->data, skb->len, PCI_DMA_TODEVICE); card 653 drivers/net/ethernet/toshiba/spider_net.c if (pci_dma_mapping_error(card->pdev, buf)) { card 654 drivers/net/ethernet/toshiba/spider_net.c if (netif_msg_tx_err(card) && net_ratelimit()) card 655 drivers/net/ethernet/toshiba/spider_net.c dev_err(&card->netdev->dev, "could not iommu-map packet (%p, %i). " card 657 drivers/net/ethernet/toshiba/spider_net.c card->spider_stats.tx_iommu_map_error++; card 662 drivers/net/ethernet/toshiba/spider_net.c descr = card->tx_chain.head; card 665 drivers/net/ethernet/toshiba/spider_net.c pci_unmap_single(card->pdev, buf, skb->len, PCI_DMA_TODEVICE); card 695 drivers/net/ethernet/toshiba/spider_net.c netif_trans_update(card->netdev); /* set netdev watchdog timer */ card 700 drivers/net/ethernet/toshiba/spider_net.c spider_net_set_low_watermark(struct spider_net_card *card) card 702 drivers/net/ethernet/toshiba/spider_net.c struct spider_net_descr *descr = card->tx_chain.tail; card 711 drivers/net/ethernet/toshiba/spider_net.c while (descr != card->tx_chain.head) { card 720 drivers/net/ethernet/toshiba/spider_net.c if (cnt < card->tx_chain.num_desc/4) card 724 drivers/net/ethernet/toshiba/spider_net.c descr = card->tx_chain.tail; card 730 drivers/net/ethernet/toshiba/spider_net.c spin_lock_irqsave(&card->tx_chain.lock, flags); card 732 drivers/net/ethernet/toshiba/spider_net.c if (card->low_watermark && card->low_watermark != descr) { card 733 drivers/net/ethernet/toshiba/spider_net.c hwdescr = card->low_watermark->hwdescr; card 737 drivers/net/ethernet/toshiba/spider_net.c card->low_watermark = descr; card 738 drivers/net/ethernet/toshiba/spider_net.c spin_unlock_irqrestore(&card->tx_chain.lock, flags); card 755 drivers/net/ethernet/toshiba/spider_net.c spider_net_release_tx_chain(struct spider_net_card *card, int brutal) card 757 drivers/net/ethernet/toshiba/spider_net.c struct net_device *dev = card->netdev; card 758 drivers/net/ethernet/toshiba/spider_net.c struct spider_net_descr_chain *chain = &card->tx_chain; card 796 drivers/net/ethernet/toshiba/spider_net.c if (netif_msg_tx_err(card)) card 797 drivers/net/ethernet/toshiba/spider_net.c dev_err(&card->netdev->dev, "forcing end of tx descriptor " card 819 drivers/net/ethernet/toshiba/spider_net.c pci_unmap_single(card->pdev, buf_addr, skb->len, card 839 drivers/net/ethernet/toshiba/spider_net.c spider_net_kick_tx_dma(struct spider_net_card *card) card 843 drivers/net/ethernet/toshiba/spider_net.c if (spider_net_read_reg(card, SPIDER_NET_GDTDMACCNTR) & card 847 drivers/net/ethernet/toshiba/spider_net.c descr = card->tx_chain.tail; card 851 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_GDTDCHA, card 853 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_GDTDMACCNTR, card 857 drivers/net/ethernet/toshiba/spider_net.c if (descr == card->tx_chain.head) card 863 drivers/net/ethernet/toshiba/spider_net.c mod_timer(&card->tx_timer, jiffies + SPIDER_NET_TX_TIMER); card 877 drivers/net/ethernet/toshiba/spider_net.c struct spider_net_card *card = netdev_priv(netdev); card 879 drivers/net/ethernet/toshiba/spider_net.c spider_net_release_tx_chain(card, 0); card 881 drivers/net/ethernet/toshiba/spider_net.c if (spider_net_prepare_tx_descr(card, skb) != 0) { card 887 drivers/net/ethernet/toshiba/spider_net.c cnt = spider_net_set_low_watermark(card); card 889 drivers/net/ethernet/toshiba/spider_net.c spider_net_kick_tx_dma(card); card 905 drivers/net/ethernet/toshiba/spider_net.c struct spider_net_card *card = from_timer(card, t, tx_timer); card 906 drivers/net/ethernet/toshiba/spider_net.c if ((spider_net_release_tx_chain(card, 0) != 0) && card 907 drivers/net/ethernet/toshiba/spider_net.c (card->netdev->flags & IFF_UP)) { card 908 drivers/net/ethernet/toshiba/spider_net.c spider_net_kick_tx_dma(card); card 909 drivers/net/ethernet/toshiba/spider_net.c netif_wake_queue(card->netdev); card 941 drivers/net/ethernet/toshiba/spider_net.c struct spider_net_card *card) card 945 drivers/net/ethernet/toshiba/spider_net.c struct net_device *netdev = card->netdev; card 978 drivers/net/ethernet/toshiba/spider_net.c static void show_rx_chain(struct spider_net_card *card) card 980 drivers/net/ethernet/toshiba/spider_net.c struct spider_net_descr_chain *chain = &card->rx_chain; card 984 drivers/net/ethernet/toshiba/spider_net.c struct device *dev = &card->netdev->dev; card 998 drivers/net/ethernet/toshiba/spider_net.c curr_desc = spider_net_read_reg(card, SPIDER_NET_GDACTDPA); card 999 drivers/net/ethernet/toshiba/spider_net.c next_desc = spider_net_read_reg(card, SPIDER_NET_GDACNEXTDA); card 1075 drivers/net/ethernet/toshiba/spider_net.c static void spider_net_resync_head_ptr(struct spider_net_card *card) card 1078 drivers/net/ethernet/toshiba/spider_net.c struct spider_net_descr_chain *chain = &card->rx_chain; card 1103 drivers/net/ethernet/toshiba/spider_net.c static int spider_net_resync_tail_ptr(struct spider_net_card *card) card 1105 drivers/net/ethernet/toshiba/spider_net.c struct spider_net_descr_chain *chain = &card->rx_chain; card 1138 drivers/net/ethernet/toshiba/spider_net.c spider_net_decode_one_descr(struct spider_net_card *card) card 1140 drivers/net/ethernet/toshiba/spider_net.c struct net_device *dev = card->netdev; card 1141 drivers/net/ethernet/toshiba/spider_net.c struct spider_net_descr_chain *chain = &card->rx_chain; card 1160 drivers/net/ethernet/toshiba/spider_net.c pci_unmap_single(card->pdev, hw_buf_addr, card 1166 drivers/net/ethernet/toshiba/spider_net.c if (netif_msg_rx_err(card)) card 1175 drivers/net/ethernet/toshiba/spider_net.c if (netif_msg_rx_err(card)) card 1176 drivers/net/ethernet/toshiba/spider_net.c dev_err(&card->netdev->dev, card 1178 drivers/net/ethernet/toshiba/spider_net.c card->spider_stats.rx_desc_unk_state++; card 1184 drivers/net/ethernet/toshiba/spider_net.c if (netif_msg_rx_err(card)) card 1185 drivers/net/ethernet/toshiba/spider_net.c dev_err(&card->netdev->dev, card 1193 drivers/net/ethernet/toshiba/spider_net.c dev_err(&card->netdev->dev, "bad status, cmd_status=x%08x\n", card 1202 drivers/net/ethernet/toshiba/spider_net.c pr_err("which=%ld\n", descr - card->rx_chain.ring); card 1204 drivers/net/ethernet/toshiba/spider_net.c card->spider_stats.rx_desc_error++; card 1209 drivers/net/ethernet/toshiba/spider_net.c spider_net_pass_skb_up(descr, card); card 1215 drivers/net/ethernet/toshiba/spider_net.c if (netif_msg_rx_err(card)) card 1216 drivers/net/ethernet/toshiba/spider_net.c show_rx_chain(card); card 1237 drivers/net/ethernet/toshiba/spider_net.c struct spider_net_card *card = container_of(napi, struct spider_net_card, napi); card 1241 drivers/net/ethernet/toshiba/spider_net.c if (!spider_net_decode_one_descr(card)) card 1247 drivers/net/ethernet/toshiba/spider_net.c if ((packets_done == 0) && (card->num_rx_ints != 0)) { card 1248 drivers/net/ethernet/toshiba/spider_net.c if (!spider_net_resync_tail_ptr(card)) card 1250 drivers/net/ethernet/toshiba/spider_net.c spider_net_resync_head_ptr(card); card 1252 drivers/net/ethernet/toshiba/spider_net.c card->num_rx_ints = 0; card 1254 drivers/net/ethernet/toshiba/spider_net.c spider_net_refill_rx_chain(card); card 1255 drivers/net/ethernet/toshiba/spider_net.c spider_net_enable_rxdmac(card); card 1257 drivers/net/ethernet/toshiba/spider_net.c spider_net_cleanup_tx_ring(&card->tx_timer); card 1263 drivers/net/ethernet/toshiba/spider_net.c spider_net_rx_irq_on(card); card 1264 drivers/net/ethernet/toshiba/spider_net.c card->ignore_rx_ramfull = 0; card 1281 drivers/net/ethernet/toshiba/spider_net.c struct spider_net_card *card = netdev_priv(netdev); card 1291 drivers/net/ethernet/toshiba/spider_net.c regvalue = spider_net_read_reg(card, SPIDER_NET_GMACOPEMD); card 1293 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_GMACOPEMD, regvalue); card 1299 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_GMACUNIMACU, macu); card 1300 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_GMACUNIMACL, macl); card 1303 drivers/net/ethernet/toshiba/spider_net.c regvalue = spider_net_read_reg(card, SPIDER_NET_GMACOPEMD); card 1305 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_GMACOPEMD, regvalue); card 1307 drivers/net/ethernet/toshiba/spider_net.c spider_net_set_promisc(card); card 1324 drivers/net/ethernet/toshiba/spider_net.c struct spider_net_card *card = netdev_priv(netdev); card 1326 drivers/net/ethernet/toshiba/spider_net.c del_timer_sync(&card->aneg_timer); card 1329 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_GMACST, card 1330 drivers/net/ethernet/toshiba/spider_net.c spider_net_read_reg(card, SPIDER_NET_GMACST)); card 1331 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_GMACINTEN, 0); card 1334 drivers/net/ethernet/toshiba/spider_net.c card->aneg_count = 0; card 1335 drivers/net/ethernet/toshiba/spider_net.c card->medium = BCM54XX_COPPER; card 1336 drivers/net/ethernet/toshiba/spider_net.c spider_net_setup_aneg(card); card 1337 drivers/net/ethernet/toshiba/spider_net.c mod_timer(&card->aneg_timer, jiffies + SPIDER_NET_ANEG_TIMER); card 1350 drivers/net/ethernet/toshiba/spider_net.c spider_net_handle_error_irq(struct spider_net_card *card, u32 status_reg, card 1388 drivers/net/ethernet/toshiba/spider_net.c if (netif_msg_intr(card)) card 1389 drivers/net/ethernet/toshiba/spider_net.c dev_err(&card->netdev->dev, "PHY write queue full\n"); card 1460 drivers/net/ethernet/toshiba/spider_net.c if (card->ignore_rx_ramfull == 0) { card 1461 drivers/net/ethernet/toshiba/spider_net.c card->ignore_rx_ramfull = 1; card 1462 drivers/net/ethernet/toshiba/spider_net.c spider_net_resync_head_ptr(card); card 1463 drivers/net/ethernet/toshiba/spider_net.c spider_net_refill_rx_chain(card); card 1464 drivers/net/ethernet/toshiba/spider_net.c spider_net_enable_rxdmac(card); card 1465 drivers/net/ethernet/toshiba/spider_net.c card->num_rx_ints ++; card 1466 drivers/net/ethernet/toshiba/spider_net.c napi_schedule(&card->napi); card 1482 drivers/net/ethernet/toshiba/spider_net.c spider_net_resync_head_ptr(card); card 1483 drivers/net/ethernet/toshiba/spider_net.c spider_net_refill_rx_chain(card); card 1484 drivers/net/ethernet/toshiba/spider_net.c spider_net_enable_rxdmac(card); card 1485 drivers/net/ethernet/toshiba/spider_net.c card->num_rx_ints ++; card 1486 drivers/net/ethernet/toshiba/spider_net.c napi_schedule(&card->napi); card 1496 drivers/net/ethernet/toshiba/spider_net.c spider_net_resync_head_ptr(card); card 1497 drivers/net/ethernet/toshiba/spider_net.c spider_net_refill_rx_chain(card); card 1498 drivers/net/ethernet/toshiba/spider_net.c spider_net_enable_rxdmac(card); card 1499 drivers/net/ethernet/toshiba/spider_net.c card->num_rx_ints ++; card 1500 drivers/net/ethernet/toshiba/spider_net.c napi_schedule(&card->napi); card 1555 drivers/net/ethernet/toshiba/spider_net.c if ((show_error) && (netif_msg_intr(card)) && net_ratelimit()) card 1556 drivers/net/ethernet/toshiba/spider_net.c dev_err(&card->netdev->dev, "Error interrupt, GHIINT0STS = 0x%08x, " card 1561 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_GHIINT1STS, error_reg1); card 1562 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_GHIINT2STS, error_reg2); card 1580 drivers/net/ethernet/toshiba/spider_net.c struct spider_net_card *card = netdev_priv(netdev); card 1583 drivers/net/ethernet/toshiba/spider_net.c status_reg = spider_net_read_reg(card, SPIDER_NET_GHIINT0STS); card 1584 drivers/net/ethernet/toshiba/spider_net.c error_reg1 = spider_net_read_reg(card, SPIDER_NET_GHIINT1STS); card 1585 drivers/net/ethernet/toshiba/spider_net.c error_reg2 = spider_net_read_reg(card, SPIDER_NET_GHIINT2STS); card 1593 drivers/net/ethernet/toshiba/spider_net.c spider_net_rx_irq_off(card); card 1594 drivers/net/ethernet/toshiba/spider_net.c napi_schedule(&card->napi); card 1595 drivers/net/ethernet/toshiba/spider_net.c card->num_rx_ints ++; card 1598 drivers/net/ethernet/toshiba/spider_net.c napi_schedule(&card->napi); card 1604 drivers/net/ethernet/toshiba/spider_net.c spider_net_handle_error_irq(card, status_reg, card 1608 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_GHIINT0STS, status_reg); card 1636 drivers/net/ethernet/toshiba/spider_net.c spider_net_enable_interrupts(struct spider_net_card *card) card 1638 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_GHIINT0MSK, card 1640 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_GHIINT1MSK, card 1642 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_GHIINT2MSK, card 1653 drivers/net/ethernet/toshiba/spider_net.c spider_net_disable_interrupts(struct spider_net_card *card) card 1655 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_GHIINT0MSK, 0); card 1656 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_GHIINT1MSK, 0); card 1657 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_GHIINT2MSK, 0); card 1658 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_GMACINTEN, 0); card 1669 drivers/net/ethernet/toshiba/spider_net.c spider_net_init_card(struct spider_net_card *card) card 1671 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_CKRCTRL, card 1674 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_CKRCTRL, card 1678 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_GMACOPEMD, card 1679 drivers/net/ethernet/toshiba/spider_net.c spider_net_read_reg(card, SPIDER_NET_GMACOPEMD) | 0x4); card 1681 drivers/net/ethernet/toshiba/spider_net.c spider_net_disable_interrupts(card); card 1691 drivers/net/ethernet/toshiba/spider_net.c spider_net_enable_card(struct spider_net_card *card) card 1739 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, regs[i][0], regs[i][1]); card 1745 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, card 1748 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, card 1753 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_GMRUA0FIL15R, 0x08080000); card 1755 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_ECMODE, SPIDER_NET_ECMODE_VALUE); card 1759 drivers/net/ethernet/toshiba/spider_net.c spider_net_enable_rxchtails(card); card 1760 drivers/net/ethernet/toshiba/spider_net.c spider_net_enable_rxdmac(card); card 1762 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_GRXDMAEN, SPIDER_NET_WOL_VALUE); card 1764 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_GMACLENLMT, card 1766 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_GMACOPEMD, card 1769 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_GDTDMACCNTR, card 1782 drivers/net/ethernet/toshiba/spider_net.c spider_net_download_firmware(struct spider_net_card *card, card 1789 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_GSINIT, card 1794 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, card 1797 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_GSnPRGDAT + card 1803 drivers/net/ethernet/toshiba/spider_net.c if (spider_net_read_reg(card, SPIDER_NET_GSINIT)) card 1806 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_GSINIT, card 1839 drivers/net/ethernet/toshiba/spider_net.c spider_net_init_firmware(struct spider_net_card *card) card 1848 drivers/net/ethernet/toshiba/spider_net.c SPIDER_NET_FIRMWARE_NAME, &card->pdev->dev) == 0) { card 1850 drivers/net/ethernet/toshiba/spider_net.c netif_msg_probe(card) ) { card 1851 drivers/net/ethernet/toshiba/spider_net.c dev_err(&card->netdev->dev, card 1856 drivers/net/ethernet/toshiba/spider_net.c err = spider_net_download_firmware(card, firmware->data); card 1866 drivers/net/ethernet/toshiba/spider_net.c dn = pci_device_to_OF_node(card->pdev); card 1875 drivers/net/ethernet/toshiba/spider_net.c netif_msg_probe(card) ) { card 1876 drivers/net/ethernet/toshiba/spider_net.c dev_err(&card->netdev->dev, card 1881 drivers/net/ethernet/toshiba/spider_net.c err = spider_net_download_firmware(card, fw_prop); card 1886 drivers/net/ethernet/toshiba/spider_net.c if (netif_msg_probe(card)) card 1887 drivers/net/ethernet/toshiba/spider_net.c dev_err(&card->netdev->dev, card 1905 drivers/net/ethernet/toshiba/spider_net.c struct spider_net_card *card = netdev_priv(netdev); card 1908 drivers/net/ethernet/toshiba/spider_net.c result = spider_net_init_firmware(card); card 1913 drivers/net/ethernet/toshiba/spider_net.c card->aneg_count = 0; card 1914 drivers/net/ethernet/toshiba/spider_net.c card->medium = BCM54XX_COPPER; card 1915 drivers/net/ethernet/toshiba/spider_net.c spider_net_setup_aneg(card); card 1916 drivers/net/ethernet/toshiba/spider_net.c if (card->phy.def->phy_id) card 1917 drivers/net/ethernet/toshiba/spider_net.c mod_timer(&card->aneg_timer, jiffies + SPIDER_NET_ANEG_TIMER); card 1919 drivers/net/ethernet/toshiba/spider_net.c result = spider_net_init_chain(card, &card->tx_chain); card 1922 drivers/net/ethernet/toshiba/spider_net.c card->low_watermark = NULL; card 1924 drivers/net/ethernet/toshiba/spider_net.c result = spider_net_init_chain(card, &card->rx_chain); card 1929 drivers/net/ethernet/toshiba/spider_net.c result = spider_net_alloc_rx_skbs(card); card 1942 drivers/net/ethernet/toshiba/spider_net.c spider_net_enable_card(card); card 1946 drivers/net/ethernet/toshiba/spider_net.c napi_enable(&card->napi); card 1948 drivers/net/ethernet/toshiba/spider_net.c spider_net_enable_interrupts(card); card 1953 drivers/net/ethernet/toshiba/spider_net.c spider_net_free_rx_chain_contents(card); card 1955 drivers/net/ethernet/toshiba/spider_net.c spider_net_free_chain(card, &card->rx_chain); card 1957 drivers/net/ethernet/toshiba/spider_net.c spider_net_free_chain(card, &card->tx_chain); card 1959 drivers/net/ethernet/toshiba/spider_net.c del_timer_sync(&card->aneg_timer); card 1971 drivers/net/ethernet/toshiba/spider_net.c struct spider_net_card *card = from_timer(card, t, aneg_timer); card 1972 drivers/net/ethernet/toshiba/spider_net.c struct mii_phy *phy = &card->phy; card 1975 drivers/net/ethernet/toshiba/spider_net.c if (card->aneg_count > SPIDER_NET_ANEG_TIMEOUT) { card 1978 drivers/net/ethernet/toshiba/spider_net.c card->netdev->name); card 1980 drivers/net/ethernet/toshiba/spider_net.c switch (card->medium) { card 1985 drivers/net/ethernet/toshiba/spider_net.c card->medium = BCM54XX_FIBER; card 1992 drivers/net/ethernet/toshiba/spider_net.c card->medium = BCM54XX_UNKNOWN; card 1998 drivers/net/ethernet/toshiba/spider_net.c spider_net_setup_aneg(card); card 1999 drivers/net/ethernet/toshiba/spider_net.c card->medium = BCM54XX_COPPER; card 2003 drivers/net/ethernet/toshiba/spider_net.c card->aneg_count = 0; card 2004 drivers/net/ethernet/toshiba/spider_net.c mod_timer(&card->aneg_timer, jiffies + SPIDER_NET_ANEG_TIMER); card 2010 drivers/net/ethernet/toshiba/spider_net.c card->aneg_count++; card 2011 drivers/net/ethernet/toshiba/spider_net.c mod_timer(&card->aneg_timer, jiffies + SPIDER_NET_ANEG_TIMER); card 2018 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_GMACST, card 2019 drivers/net/ethernet/toshiba/spider_net.c spider_net_read_reg(card, SPIDER_NET_GMACST)); card 2020 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_GMACINTEN, 0x4); card 2023 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_GMACMODE, 0x00000001); card 2025 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_GMACMODE, 0); card 2027 drivers/net/ethernet/toshiba/spider_net.c card->aneg_count = 0; card 2030 drivers/net/ethernet/toshiba/spider_net.c card->netdev->name, phy->speed, card 2044 drivers/net/ethernet/toshiba/spider_net.c spider_net_setup_phy(struct spider_net_card *card) card 2046 drivers/net/ethernet/toshiba/spider_net.c struct mii_phy *phy = &card->phy; card 2048 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_GDTDMASEL, card 2050 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_GPCCTRL, card 2053 drivers/net/ethernet/toshiba/spider_net.c phy->dev = card->netdev; card 2059 drivers/net/ethernet/toshiba/spider_net.c id = spider_net_read_phy(card->netdev, phy->mii_id, MII_BMSR); card 2078 drivers/net/ethernet/toshiba/spider_net.c spider_net_workaround_rxramfull(struct spider_net_card *card) card 2083 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_CKRCTRL, card 2089 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_GSnPRGADR + card 2092 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_GSnPRGDAT + card 2098 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_GSINIT, 0x000000fe); card 2101 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_CKRCTRL, card 2114 drivers/net/ethernet/toshiba/spider_net.c struct spider_net_card *card = netdev_priv(netdev); card 2116 drivers/net/ethernet/toshiba/spider_net.c napi_disable(&card->napi); card 2119 drivers/net/ethernet/toshiba/spider_net.c del_timer_sync(&card->tx_timer); card 2120 drivers/net/ethernet/toshiba/spider_net.c del_timer_sync(&card->aneg_timer); card 2122 drivers/net/ethernet/toshiba/spider_net.c spider_net_disable_interrupts(card); card 2126 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_GDTDMACCNTR, card 2130 drivers/net/ethernet/toshiba/spider_net.c spider_net_disable_rxdmac(card); card 2133 drivers/net/ethernet/toshiba/spider_net.c spider_net_release_tx_chain(card, 1); card 2134 drivers/net/ethernet/toshiba/spider_net.c spider_net_free_rx_chain_contents(card); card 2136 drivers/net/ethernet/toshiba/spider_net.c spider_net_free_chain(card, &card->tx_chain); card 2137 drivers/net/ethernet/toshiba/spider_net.c spider_net_free_chain(card, &card->rx_chain); card 2152 drivers/net/ethernet/toshiba/spider_net.c struct spider_net_card *card = card 2154 drivers/net/ethernet/toshiba/spider_net.c struct net_device *netdev = card->netdev; card 2162 drivers/net/ethernet/toshiba/spider_net.c spider_net_workaround_rxramfull(card); card 2163 drivers/net/ethernet/toshiba/spider_net.c spider_net_init_card(card); card 2165 drivers/net/ethernet/toshiba/spider_net.c if (spider_net_setup_phy(card)) card 2169 drivers/net/ethernet/toshiba/spider_net.c spider_net_kick_tx_dma(card); card 2173 drivers/net/ethernet/toshiba/spider_net.c atomic_dec(&card->tx_timeout_task_counter); card 2185 drivers/net/ethernet/toshiba/spider_net.c struct spider_net_card *card; card 2187 drivers/net/ethernet/toshiba/spider_net.c card = netdev_priv(netdev); card 2188 drivers/net/ethernet/toshiba/spider_net.c atomic_inc(&card->tx_timeout_task_counter); card 2190 drivers/net/ethernet/toshiba/spider_net.c schedule_work(&card->tx_timeout_task); card 2192 drivers/net/ethernet/toshiba/spider_net.c atomic_dec(&card->tx_timeout_task_counter); card 2193 drivers/net/ethernet/toshiba/spider_net.c card->spider_stats.tx_timeouts++; card 2236 drivers/net/ethernet/toshiba/spider_net.c spider_net_setup_netdev(struct spider_net_card *card) card 2239 drivers/net/ethernet/toshiba/spider_net.c struct net_device *netdev = card->netdev; card 2244 drivers/net/ethernet/toshiba/spider_net.c SET_NETDEV_DEV(netdev, &card->pdev->dev); card 2246 drivers/net/ethernet/toshiba/spider_net.c pci_set_drvdata(card->pdev, netdev); card 2248 drivers/net/ethernet/toshiba/spider_net.c timer_setup(&card->tx_timer, spider_net_cleanup_tx_ring, 0); card 2249 drivers/net/ethernet/toshiba/spider_net.c netdev->irq = card->pdev->irq; card 2251 drivers/net/ethernet/toshiba/spider_net.c card->aneg_count = 0; card 2252 drivers/net/ethernet/toshiba/spider_net.c timer_setup(&card->aneg_timer, spider_net_link_phy, 0); card 2254 drivers/net/ethernet/toshiba/spider_net.c netif_napi_add(netdev, &card->napi, card 2270 drivers/net/ethernet/toshiba/spider_net.c netdev->irq = card->pdev->irq; card 2271 drivers/net/ethernet/toshiba/spider_net.c card->num_rx_ints = 0; card 2272 drivers/net/ethernet/toshiba/spider_net.c card->ignore_rx_ramfull = 0; card 2274 drivers/net/ethernet/toshiba/spider_net.c dn = pci_device_to_OF_node(card->pdev); card 2284 drivers/net/ethernet/toshiba/spider_net.c if ((result) && (netif_msg_probe(card))) card 2285 drivers/net/ethernet/toshiba/spider_net.c dev_err(&card->netdev->dev, card 2290 drivers/net/ethernet/toshiba/spider_net.c if (netif_msg_probe(card)) card 2291 drivers/net/ethernet/toshiba/spider_net.c dev_err(&card->netdev->dev, card 2296 drivers/net/ethernet/toshiba/spider_net.c if (netif_msg_probe(card)) card 2313 drivers/net/ethernet/toshiba/spider_net.c struct spider_net_card *card; card 2315 drivers/net/ethernet/toshiba/spider_net.c netdev = alloc_etherdev(struct_size(card, darray, card 2320 drivers/net/ethernet/toshiba/spider_net.c card = netdev_priv(netdev); card 2321 drivers/net/ethernet/toshiba/spider_net.c card->netdev = netdev; card 2322 drivers/net/ethernet/toshiba/spider_net.c card->msg_enable = SPIDER_NET_DEFAULT_MSG; card 2323 drivers/net/ethernet/toshiba/spider_net.c INIT_WORK(&card->tx_timeout_task, spider_net_tx_timeout_task); card 2324 drivers/net/ethernet/toshiba/spider_net.c init_waitqueue_head(&card->waitq); card 2325 drivers/net/ethernet/toshiba/spider_net.c atomic_set(&card->tx_timeout_task_counter, 0); card 2327 drivers/net/ethernet/toshiba/spider_net.c card->rx_chain.num_desc = rx_descriptors; card 2328 drivers/net/ethernet/toshiba/spider_net.c card->rx_chain.ring = card->darray; card 2329 drivers/net/ethernet/toshiba/spider_net.c card->tx_chain.num_desc = tx_descriptors; card 2330 drivers/net/ethernet/toshiba/spider_net.c card->tx_chain.ring = card->darray + rx_descriptors; card 2332 drivers/net/ethernet/toshiba/spider_net.c return card; card 2342 drivers/net/ethernet/toshiba/spider_net.c spider_net_undo_pci_setup(struct spider_net_card *card) card 2344 drivers/net/ethernet/toshiba/spider_net.c iounmap(card->regs); card 2345 drivers/net/ethernet/toshiba/spider_net.c pci_release_regions(card->pdev); card 2363 drivers/net/ethernet/toshiba/spider_net.c struct spider_net_card *card; card 2385 drivers/net/ethernet/toshiba/spider_net.c card = spider_net_alloc_card(); card 2386 drivers/net/ethernet/toshiba/spider_net.c if (!card) { card 2391 drivers/net/ethernet/toshiba/spider_net.c card->pdev = pdev; card 2397 drivers/net/ethernet/toshiba/spider_net.c card->netdev->mem_start = mmio_start; card 2398 drivers/net/ethernet/toshiba/spider_net.c card->netdev->mem_end = mmio_start + mmio_len; card 2399 drivers/net/ethernet/toshiba/spider_net.c card->regs = ioremap(mmio_start, mmio_len); card 2401 drivers/net/ethernet/toshiba/spider_net.c if (!card->regs) { card 2407 drivers/net/ethernet/toshiba/spider_net.c return card; card 2430 drivers/net/ethernet/toshiba/spider_net.c struct spider_net_card *card; card 2432 drivers/net/ethernet/toshiba/spider_net.c card = spider_net_setup_pci_dev(pdev); card 2433 drivers/net/ethernet/toshiba/spider_net.c if (!card) card 2436 drivers/net/ethernet/toshiba/spider_net.c spider_net_workaround_rxramfull(card); card 2437 drivers/net/ethernet/toshiba/spider_net.c spider_net_init_card(card); card 2439 drivers/net/ethernet/toshiba/spider_net.c err = spider_net_setup_phy(card); card 2443 drivers/net/ethernet/toshiba/spider_net.c err = spider_net_setup_netdev(card); card 2450 drivers/net/ethernet/toshiba/spider_net.c spider_net_undo_pci_setup(card); card 2451 drivers/net/ethernet/toshiba/spider_net.c free_netdev(card->netdev); card 2469 drivers/net/ethernet/toshiba/spider_net.c struct spider_net_card *card; card 2472 drivers/net/ethernet/toshiba/spider_net.c card = netdev_priv(netdev); card 2474 drivers/net/ethernet/toshiba/spider_net.c wait_event(card->waitq, card 2475 drivers/net/ethernet/toshiba/spider_net.c atomic_read(&card->tx_timeout_task_counter) == 0); card 2480 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_CKRCTRL, card 2482 drivers/net/ethernet/toshiba/spider_net.c spider_net_write_reg(card, SPIDER_NET_CKRCTRL, card 2485 drivers/net/ethernet/toshiba/spider_net.c spider_net_undo_pci_setup(card); card 40 drivers/net/ethernet/toshiba/spider_net_ethtool.c struct spider_net_card *card; card 41 drivers/net/ethernet/toshiba/spider_net_ethtool.c card = netdev_priv(netdev); card 52 drivers/net/ethernet/toshiba/spider_net_ethtool.c cmd->base.speed = card->phy.speed; card 62 drivers/net/ethernet/toshiba/spider_net_ethtool.c struct spider_net_card *card; card 63 drivers/net/ethernet/toshiba/spider_net_ethtool.c card = netdev_priv(netdev); card 71 drivers/net/ethernet/toshiba/spider_net_ethtool.c strlcpy(drvinfo->bus_info, pci_name(card->pdev), card 87 drivers/net/ethernet/toshiba/spider_net_ethtool.c struct spider_net_card *card; card 88 drivers/net/ethernet/toshiba/spider_net_ethtool.c card = netdev_priv(netdev); card 89 drivers/net/ethernet/toshiba/spider_net_ethtool.c return card->msg_enable; card 96 drivers/net/ethernet/toshiba/spider_net_ethtool.c struct spider_net_card *card; card 97 drivers/net/ethernet/toshiba/spider_net_ethtool.c card = netdev_priv(netdev); card 98 drivers/net/ethernet/toshiba/spider_net_ethtool.c card->msg_enable = level; card 115 drivers/net/ethernet/toshiba/spider_net_ethtool.c struct spider_net_card *card = netdev_priv(netdev); card 118 drivers/net/ethernet/toshiba/spider_net_ethtool.c ering->tx_pending = card->tx_chain.num_desc; card 120 drivers/net/ethernet/toshiba/spider_net_ethtool.c ering->rx_pending = card->rx_chain.num_desc; card 136 drivers/net/ethernet/toshiba/spider_net_ethtool.c struct spider_net_card *card = netdev_priv(netdev); card 145 drivers/net/ethernet/toshiba/spider_net_ethtool.c data[7] = card->spider_stats.rx_desc_error; card 146 drivers/net/ethernet/toshiba/spider_net_ethtool.c data[8] = card->spider_stats.tx_timeouts; card 147 drivers/net/ethernet/toshiba/spider_net_ethtool.c data[9] = card->spider_stats.alloc_rx_skb_error; card 148 drivers/net/ethernet/toshiba/spider_net_ethtool.c data[10] = card->spider_stats.rx_iommu_map_error; card 149 drivers/net/ethernet/toshiba/spider_net_ethtool.c data[11] = card->spider_stats.tx_iommu_map_error; card 150 drivers/net/ethernet/toshiba/spider_net_ethtool.c data[12] = card->spider_stats.rx_desc_unk_state; card 162 drivers/net/sb1000.c serial_number = pdev->card->serial; card 83 drivers/net/wan/c101.c #define sca_in(reg, card) readb((card)->win0base + C101_SCA + (reg)) card 84 drivers/net/wan/c101.c #define sca_out(value, reg, card) writeb(value, (card)->win0base + C101_SCA + (reg)) card 85 drivers/net/wan/c101.c #define sca_inw(reg, card) readw((card)->win0base + C101_SCA + (reg)) card 88 drivers/net/wan/c101.c #define sca_outw(value, reg, card) do { \ card 89 drivers/net/wan/c101.c writeb(value & 0xFF, (card)->win0base + C101_SCA + (reg)); \ card 90 drivers/net/wan/c101.c writeb((value >> 8 ) & 0xFF, (card)->win0base + C101_SCA + (reg + 1));\ card 96 drivers/net/wan/c101.c #define winsize(card) (C101_WINDOW_SIZE) card 97 drivers/net/wan/c101.c #define win0base(card) ((card)->win0base) card 98 drivers/net/wan/c101.c #define winbase(card) ((card)->win0base + 0x2000) card 99 drivers/net/wan/c101.c #define get_port(card, port) (card) card 103 drivers/net/wan/c101.c static inline u8 sca_get_page(card_t *card) card 105 drivers/net/wan/c101.c return card->page; card 108 drivers/net/wan/c101.c static inline void openwin(card_t *card, u8 page) card 110 drivers/net/wan/c101.c card->page = page; card 111 drivers/net/wan/c101.c writeb(page, card->win0base + C101_PAGE); card 281 drivers/net/wan/c101.c static void c101_destroy_card(card_t *card) card 283 drivers/net/wan/c101.c readb(card->win0base + C101_PAGE); /* Resets SCA? */ card 285 drivers/net/wan/c101.c if (card->irq) card 286 drivers/net/wan/c101.c free_irq(card->irq, card); card 288 drivers/net/wan/c101.c if (card->win0base) { card 289 drivers/net/wan/c101.c iounmap(card->win0base); card 290 drivers/net/wan/c101.c release_mem_region(card->phy_winbase, C101_MAPPED_RAM_SIZE); card 293 drivers/net/wan/c101.c free_netdev(card->dev); card 295 drivers/net/wan/c101.c kfree(card); card 309 drivers/net/wan/c101.c card_t *card; card 322 drivers/net/wan/c101.c card = kzalloc(sizeof(card_t), GFP_KERNEL); card 323 drivers/net/wan/c101.c if (card == NULL) card 326 drivers/net/wan/c101.c card->dev = alloc_hdlcdev(card); card 327 drivers/net/wan/c101.c if (!card->dev) { card 329 drivers/net/wan/c101.c kfree(card); card 333 drivers/net/wan/c101.c if (request_irq(irq, sca_intr, 0, devname, card)) { card 335 drivers/net/wan/c101.c c101_destroy_card(card); card 338 drivers/net/wan/c101.c card->irq = irq; card 342 drivers/net/wan/c101.c c101_destroy_card(card); card 345 drivers/net/wan/c101.c card->phy_winbase = winbase; card 346 drivers/net/wan/c101.c card->win0base = ioremap(winbase, C101_MAPPED_RAM_SIZE); card 347 drivers/net/wan/c101.c if (!card->win0base) { card 349 drivers/net/wan/c101.c c101_destroy_card(card); card 353 drivers/net/wan/c101.c card->tx_ring_buffers = TX_RING_BUFFERS; card 354 drivers/net/wan/c101.c card->rx_ring_buffers = RX_RING_BUFFERS; card 355 drivers/net/wan/c101.c card->buff_offset = C101_WINDOW_SIZE; /* Bytes 1D00-1FFF reserved */ card 357 drivers/net/wan/c101.c readb(card->win0base + C101_PAGE); /* Resets SCA? */ card 359 drivers/net/wan/c101.c writeb(0, card->win0base + C101_PAGE); card 360 drivers/net/wan/c101.c writeb(0, card->win0base + C101_DTR); /* Power-up for RAM? */ card 362 drivers/net/wan/c101.c sca_init(card, 0); card 364 drivers/net/wan/c101.c dev = port_to_dev(card); card 367 drivers/net/wan/c101.c spin_lock_init(&card->lock); card 375 drivers/net/wan/c101.c card->settings.clock_type = CLOCK_EXT; card 380 drivers/net/wan/c101.c c101_destroy_card(card); card 384 drivers/net/wan/c101.c sca_init_port(card); /* Set up C101 memory */ card 385 drivers/net/wan/c101.c set_carrier(card); card 388 drivers/net/wan/c101.c card->irq, card->tx_ring_buffers, card->rx_ring_buffers); card 390 drivers/net/wan/c101.c *new_card = card; card 391 drivers/net/wan/c101.c new_card = &card->next_card; card 431 drivers/net/wan/c101.c card_t *card = first_card; card 433 drivers/net/wan/c101.c while (card) { card 434 drivers/net/wan/c101.c card_t *ptr = card; card 435 drivers/net/wan/c101.c card = card->next_card; card 425 drivers/net/wan/farsync.c struct fst_card_info *card; /* Card we're associated with */ card 567 drivers/net/wan/farsync.c static void do_bottom_half_tx(struct fst_card_info *card); card 568 drivers/net/wan/farsync.c static void do_bottom_half_rx(struct fst_card_info *card); card 675 drivers/net/wan/farsync.c fst_cpureset(struct fst_card_info *card) card 680 drivers/net/wan/farsync.c if (card->family == FST_FAMILY_TXU) { card 682 drivers/net/wan/farsync.c (card->device, PCI_INTERRUPT_LINE, &interrupt_line_register)) { card 690 drivers/net/wan/farsync.c outw(0x440f, card->pci_conf + CNTRL_9054 + 2); card 691 drivers/net/wan/farsync.c outw(0x040f, card->pci_conf + CNTRL_9054 + 2); card 696 drivers/net/wan/farsync.c outw(0x240f, card->pci_conf + CNTRL_9054 + 2); card 701 drivers/net/wan/farsync.c outw(0x040f, card->pci_conf + CNTRL_9054 + 2); card 704 drivers/net/wan/farsync.c (card->device, PCI_INTERRUPT_LINE, interrupt_line_register)) { card 710 drivers/net/wan/farsync.c regval = inl(card->pci_conf + CNTRL_9052); card 712 drivers/net/wan/farsync.c outl(regval | 0x40000000, card->pci_conf + CNTRL_9052); card 713 drivers/net/wan/farsync.c outl(regval & ~0x40000000, card->pci_conf + CNTRL_9052); card 720 drivers/net/wan/farsync.c fst_cpurelease(struct fst_card_info *card) card 722 drivers/net/wan/farsync.c if (card->family == FST_FAMILY_TXU) { card 726 drivers/net/wan/farsync.c (void) readb(card->mem); card 732 drivers/net/wan/farsync.c outw(0x040e, card->pci_conf + CNTRL_9054 + 2); card 733 drivers/net/wan/farsync.c outw(0x040f, card->pci_conf + CNTRL_9054 + 2); card 735 drivers/net/wan/farsync.c (void) readb(card->ctlmem); card 742 drivers/net/wan/farsync.c fst_clear_intr(struct fst_card_info *card) card 744 drivers/net/wan/farsync.c if (card->family == FST_FAMILY_TXU) { card 745 drivers/net/wan/farsync.c (void) readb(card->ctlmem); card 749 drivers/net/wan/farsync.c outw(0x0543, card->pci_conf + INTCSR_9052); card 756 drivers/net/wan/farsync.c fst_enable_intr(struct fst_card_info *card) card 758 drivers/net/wan/farsync.c if (card->family == FST_FAMILY_TXU) { card 759 drivers/net/wan/farsync.c outl(0x0f0c0900, card->pci_conf + INTCSR_9054); card 761 drivers/net/wan/farsync.c outw(0x0543, card->pci_conf + INTCSR_9052); card 768 drivers/net/wan/farsync.c fst_disable_intr(struct fst_card_info *card) card 770 drivers/net/wan/farsync.c if (card->family == FST_FAMILY_TXU) { card 771 drivers/net/wan/farsync.c outl(0x00000000, card->pci_conf + INTCSR_9054); card 773 drivers/net/wan/farsync.c outw(0x0000, card->pci_conf + INTCSR_9052); card 801 drivers/net/wan/farsync.c fst_init_dma(struct fst_card_info *card) card 806 drivers/net/wan/farsync.c if (card->family == FST_FAMILY_TXU) { card 807 drivers/net/wan/farsync.c pci_set_master(card->device); card 808 drivers/net/wan/farsync.c outl(0x00020441, card->pci_conf + DMAMODE0); card 809 drivers/net/wan/farsync.c outl(0x00020441, card->pci_conf + DMAMODE1); card 810 drivers/net/wan/farsync.c outl(0x0, card->pci_conf + DMATHR); card 817 drivers/net/wan/farsync.c fst_tx_dma_complete(struct fst_card_info *card, struct fst_port_info *port, card 826 drivers/net/wan/farsync.c FST_WRB(card, txDescrRing[port->index][txpos].bits, card 847 drivers/net/wan/farsync.c fst_rx_dma_complete(struct fst_card_info *card, struct fst_port_info *port, card 856 drivers/net/wan/farsync.c skb_put_data(skb, card->rx_dma_handle_host, len); card 859 drivers/net/wan/farsync.c FST_WRB(card, rxDescrRing[pi][rxp].bits, DMA_OWN); card 881 drivers/net/wan/farsync.c fst_rx_dma(struct fst_card_info *card, dma_addr_t dma, u32 mem, int len) card 888 drivers/net/wan/farsync.c if (card->dmarx_in_progress) { card 892 drivers/net/wan/farsync.c outl(dma, card->pci_conf + DMAPADR0); /* Copy to here */ card 893 drivers/net/wan/farsync.c outl(mem, card->pci_conf + DMALADR0); /* from here */ card 894 drivers/net/wan/farsync.c outl(len, card->pci_conf + DMASIZ0); /* for this length */ card 895 drivers/net/wan/farsync.c outl(0x00000000c, card->pci_conf + DMADPR0); /* In this direction */ card 900 drivers/net/wan/farsync.c card->dmarx_in_progress = 1; card 901 drivers/net/wan/farsync.c outb(0x03, card->pci_conf + DMACSR0); /* Start the transfer */ card 908 drivers/net/wan/farsync.c fst_tx_dma(struct fst_card_info *card, dma_addr_t dma, u32 mem, int len) card 915 drivers/net/wan/farsync.c if (card->dmatx_in_progress) { card 919 drivers/net/wan/farsync.c outl(dma, card->pci_conf + DMAPADR1); /* Copy from here */ card 920 drivers/net/wan/farsync.c outl(mem, card->pci_conf + DMALADR1); /* to here */ card 921 drivers/net/wan/farsync.c outl(len, card->pci_conf + DMASIZ1); /* for this length */ card 922 drivers/net/wan/farsync.c outl(0x000000004, card->pci_conf + DMADPR1); /* In this direction */ card 927 drivers/net/wan/farsync.c card->dmatx_in_progress = 1; card 928 drivers/net/wan/farsync.c outb(0x03, card->pci_conf + DMACSR1); /* Start the transfer */ card 938 drivers/net/wan/farsync.c struct fst_card_info *card; card 943 drivers/net/wan/farsync.c card = port->card; card 944 drivers/net/wan/farsync.c spin_lock_irqsave(&card->card_lock, flags); card 945 drivers/net/wan/farsync.c mbval = FST_RDW(card, portMailbox[port->index][0]); card 950 drivers/net/wan/farsync.c spin_unlock_irqrestore(&card->card_lock, flags); card 952 drivers/net/wan/farsync.c spin_lock_irqsave(&card->card_lock, flags); card 959 drivers/net/wan/farsync.c mbval = FST_RDW(card, portMailbox[port->index][0]); card 968 drivers/net/wan/farsync.c FST_WRW(card, portMailbox[port->index][0], cmd); card 976 drivers/net/wan/farsync.c spin_unlock_irqrestore(&card->card_lock, flags); card 984 drivers/net/wan/farsync.c outputs |= FST_RDL(port->card, v24OpSts[port->index]); card 985 drivers/net/wan/farsync.c FST_WRL(port->card, v24OpSts[port->index], outputs); card 994 drivers/net/wan/farsync.c outputs = ~outputs & FST_RDL(port->card, v24OpSts[port->index]); card 995 drivers/net/wan/farsync.c FST_WRL(port->card, v24OpSts[port->index], outputs); card 1011 drivers/net/wan/farsync.c struct fst_card_info *card; card 1014 drivers/net/wan/farsync.c card = port->card; card 1015 drivers/net/wan/farsync.c spin_lock_irqsave(&card->card_lock, flags); card 1019 drivers/net/wan/farsync.c FST_WRW(card, rxDescrRing[pi][i].ladr, (u16) offset); card 1020 drivers/net/wan/farsync.c FST_WRB(card, rxDescrRing[pi][i].hadr, (u8) (offset >> 16)); card 1021 drivers/net/wan/farsync.c FST_WRW(card, rxDescrRing[pi][i].bcnt, cnv_bcnt(LEN_RX_BUFFER)); card 1022 drivers/net/wan/farsync.c FST_WRW(card, rxDescrRing[pi][i].mcnt, LEN_RX_BUFFER); card 1023 drivers/net/wan/farsync.c FST_WRB(card, rxDescrRing[pi][i].bits, DMA_OWN); card 1026 drivers/net/wan/farsync.c spin_unlock_irqrestore(&card->card_lock, flags); card 1039 drivers/net/wan/farsync.c struct fst_card_info *card; card 1042 drivers/net/wan/farsync.c card = port->card; card 1043 drivers/net/wan/farsync.c spin_lock_irqsave(&card->card_lock, flags); card 1047 drivers/net/wan/farsync.c FST_WRW(card, txDescrRing[pi][i].ladr, (u16) offset); card 1048 drivers/net/wan/farsync.c FST_WRB(card, txDescrRing[pi][i].hadr, (u8) (offset >> 16)); card 1049 drivers/net/wan/farsync.c FST_WRW(card, txDescrRing[pi][i].bcnt, 0); card 1050 drivers/net/wan/farsync.c FST_WRB(card, txDescrRing[pi][i].bits, 0); card 1055 drivers/net/wan/farsync.c spin_unlock_irqrestore(&card->card_lock, flags); card 1061 drivers/net/wan/farsync.c fst_intr_te1_alarm(struct fst_card_info *card, struct fst_port_info *port) card 1067 drivers/net/wan/farsync.c los = FST_RDB(card, suStatus.lossOfSignal); card 1068 drivers/net/wan/farsync.c rra = FST_RDB(card, suStatus.receiveRemoteAlarm); card 1069 drivers/net/wan/farsync.c ais = FST_RDB(card, suStatus.alarmIndicationSignal); card 1107 drivers/net/wan/farsync.c fst_intr_ctlchg(struct fst_card_info *card, struct fst_port_info *port) card 1111 drivers/net/wan/farsync.c signals = FST_RDL(card, v24DebouncedSts[port->index]); card 1130 drivers/net/wan/farsync.c fst_log_rx_error(struct fst_card_info *card, struct fst_port_info *port, card 1142 drivers/net/wan/farsync.c card->card_no, port->index, rxp); card 1147 drivers/net/wan/farsync.c card->card_no, port->index); card 1152 drivers/net/wan/farsync.c card->card_no, port->index); card 1157 drivers/net/wan/farsync.c len, card->card_no, port->index); card 1164 drivers/net/wan/farsync.c fst_recover_rx_error(struct fst_card_info *card, struct fst_port_info *port, card 1178 drivers/net/wan/farsync.c FST_WRB(card, rxDescrRing[pi][rxp].bits, DMA_OWN); card 1185 drivers/net/wan/farsync.c dmabits = FST_RDB(card, rxDescrRing[pi][rxp].bits); card 1192 drivers/net/wan/farsync.c FST_WRB(card, rxDescrRing[pi][rxp].bits, DMA_OWN); card 1203 drivers/net/wan/farsync.c fst_intr_rx(struct fst_card_info *card, struct fst_port_info *port) card 1216 drivers/net/wan/farsync.c dmabits = FST_RDB(card, rxDescrRing[pi][rxp].bits); card 1222 drivers/net/wan/farsync.c if (card->dmarx_in_progress) { card 1227 drivers/net/wan/farsync.c len = FST_RDW(card, rxDescrRing[pi][rxp].mcnt); card 1236 drivers/net/wan/farsync.c card->card_no, port->index); card 1238 drivers/net/wan/farsync.c FST_WRB(card, rxDescrRing[pi][rxp].bits, DMA_OWN); card 1251 drivers/net/wan/farsync.c fst_log_rx_error(card, port, dmabits, rxp, len); card 1252 drivers/net/wan/farsync.c fst_recover_rx_error(card, port, dmabits, rxp, len); card 1263 drivers/net/wan/farsync.c FST_WRB(card, rxDescrRing[pi][rxp].bits, DMA_OWN); card 1276 drivers/net/wan/farsync.c if ((len < FST_MIN_DMA_LEN) || (card->family == FST_FAMILY_TXP)) { card 1278 drivers/net/wan/farsync.c card->mem + BUF_OFFSET(rxBuffer[pi][rxp][0]), card 1282 drivers/net/wan/farsync.c FST_WRB(card, rxDescrRing[pi][rxp].bits, DMA_OWN); card 1299 drivers/net/wan/farsync.c card->dma_skb_rx = skb; card 1300 drivers/net/wan/farsync.c card->dma_port_rx = port; card 1301 drivers/net/wan/farsync.c card->dma_len_rx = len; card 1302 drivers/net/wan/farsync.c card->dma_rxpos = rxp; card 1303 drivers/net/wan/farsync.c fst_rx_dma(card, card->rx_dma_handle_card, card 1320 drivers/net/wan/farsync.c do_bottom_half_tx(struct fst_card_info *card) card 1335 drivers/net/wan/farsync.c for (pi = 0, port = card->ports; pi < card->nports; pi++, port++) { card 1340 drivers/net/wan/farsync.c while (!(FST_RDB(card, txDescrRing[pi][port->txpos].bits) & card 1342 drivers/net/wan/farsync.c !(card->dmatx_in_progress)) { card 1348 drivers/net/wan/farsync.c spin_lock_irqsave(&card->card_lock, flags); card 1356 drivers/net/wan/farsync.c spin_unlock_irqrestore(&card->card_lock, flags); card 1361 drivers/net/wan/farsync.c spin_lock_irqsave(&card->card_lock, flags); card 1367 drivers/net/wan/farsync.c spin_unlock_irqrestore(&card->card_lock, flags); card 1372 drivers/net/wan/farsync.c FST_WRW(card, txDescrRing[pi][port->txpos].bcnt, card 1375 drivers/net/wan/farsync.c (card->family == FST_FAMILY_TXP)) { card 1377 drivers/net/wan/farsync.c memcpy_toio(card->mem + card 1382 drivers/net/wan/farsync.c FST_WRB(card, card 1391 drivers/net/wan/farsync.c memcpy(card->tx_dma_handle_host, card 1393 drivers/net/wan/farsync.c card->dma_port_tx = port; card 1394 drivers/net/wan/farsync.c card->dma_len_tx = skb->len; card 1395 drivers/net/wan/farsync.c card->dma_txpos = port->txpos; card 1396 drivers/net/wan/farsync.c fst_tx_dma(card, card 1397 drivers/net/wan/farsync.c card->tx_dma_handle_card, card 1426 drivers/net/wan/farsync.c do_bottom_half_rx(struct fst_card_info *card) card 1434 drivers/net/wan/farsync.c for (pi = 0, port = card->ports; pi < card->nports; pi++, port++) { card 1438 drivers/net/wan/farsync.c while (!(FST_RDB(card, rxDescrRing[pi][port->rxpos].bits) card 1439 drivers/net/wan/farsync.c & DMA_OWN) && !(card->dmarx_in_progress)) { card 1445 drivers/net/wan/farsync.c fst_q_work_item(&fst_work_intq, card->card_no); card 1449 drivers/net/wan/farsync.c fst_intr_rx(card, port); card 1462 drivers/net/wan/farsync.c struct fst_card_info *card = dev_id; card 1476 drivers/net/wan/farsync.c dbg(DBG_INTR, "intr: %d %p\n", card->irq, card); card 1477 drivers/net/wan/farsync.c if (card->state != FST_RUNNING) { card 1479 drivers/net/wan/farsync.c card->card_no, card->state); card 1486 drivers/net/wan/farsync.c fst_clear_intr(card); card 1491 drivers/net/wan/farsync.c fst_clear_intr(card); card 1497 drivers/net/wan/farsync.c if (FST_RDB(card, interruptHandshake) == 1) { card 1500 drivers/net/wan/farsync.c FST_WRB(card, interruptHandshake, 0xEE); card 1502 drivers/net/wan/farsync.c if (card->family == FST_FAMILY_TXU) { card 1506 drivers/net/wan/farsync.c dma_intcsr = inl(card->pci_conf + INTCSR_9054); card 1512 drivers/net/wan/farsync.c outb(0x8, card->pci_conf + DMACSR0); card 1513 drivers/net/wan/farsync.c fst_rx_dma_complete(card, card->dma_port_rx, card 1514 drivers/net/wan/farsync.c card->dma_len_rx, card->dma_skb_rx, card 1515 drivers/net/wan/farsync.c card->dma_rxpos); card 1516 drivers/net/wan/farsync.c card->dmarx_in_progress = 0; card 1524 drivers/net/wan/farsync.c outb(0x8, card->pci_conf + DMACSR1); card 1525 drivers/net/wan/farsync.c fst_tx_dma_complete(card, card->dma_port_tx, card 1526 drivers/net/wan/farsync.c card->dma_len_tx, card->dma_txpos); card 1527 drivers/net/wan/farsync.c card->dmatx_in_progress = 0; card 1535 drivers/net/wan/farsync.c int_retry_count = FST_RDL(card, interruptRetryCount); card 1538 drivers/net/wan/farsync.c card->card_no, int_retry_count); card 1539 drivers/net/wan/farsync.c FST_WRL(card, interruptRetryCount, 0); card 1547 drivers/net/wan/farsync.c fst_q_work_item(&fst_work_intq, card->card_no); card 1551 drivers/net/wan/farsync.c rdidx = FST_RDB(card, interruptEvent.rdindex) & 0x1f; card 1552 drivers/net/wan/farsync.c wridx = FST_RDB(card, interruptEvent.wrindex) & 0x1f; card 1554 drivers/net/wan/farsync.c event = FST_RDB(card, interruptEvent.evntbuff[rdidx]); card 1555 drivers/net/wan/farsync.c port = &card->ports[event & 0x03]; card 1563 drivers/net/wan/farsync.c fst_intr_te1_alarm(card, port); card 1571 drivers/net/wan/farsync.c fst_intr_ctlchg(card, port); card 1592 drivers/net/wan/farsync.c card->card_no, port->index); card 1601 drivers/net/wan/farsync.c card->state = FST_IFAILED; card 1613 drivers/net/wan/farsync.c FST_WRB(card, interruptEvent.rdindex, rdidx); card 1621 drivers/net/wan/farsync.c check_started_ok(struct fst_card_info *card) card 1626 drivers/net/wan/farsync.c if (FST_RDW(card, smcVersion) != SMC_VERSION) { card 1628 drivers/net/wan/farsync.c FST_RDW(card, smcVersion), SMC_VERSION); card 1629 drivers/net/wan/farsync.c card->state = FST_BADVERSION; card 1632 drivers/net/wan/farsync.c if (FST_RDL(card, endOfSmcSignature) != END_SIG) { card 1634 drivers/net/wan/farsync.c card->state = FST_BADVERSION; card 1638 drivers/net/wan/farsync.c if ((i = FST_RDB(card, taskStatus)) == 0x01) { card 1639 drivers/net/wan/farsync.c card->state = FST_RUNNING; card 1642 drivers/net/wan/farsync.c card->state = FST_HALTED; card 1646 drivers/net/wan/farsync.c card->state = FST_HALTED; card 1654 drivers/net/wan/farsync.c if (FST_RDL(card, numberOfPorts) != card->nports) { card 1656 drivers/net/wan/farsync.c card->card_no, card 1657 drivers/net/wan/farsync.c FST_RDL(card, numberOfPorts), card->nports); card 1662 drivers/net/wan/farsync.c set_conf_from_info(struct fst_card_info *card, struct fst_port_info *port, card 1687 drivers/net/wan/farsync.c FST_WRB(card, portConfig[port->index].invertClock, card 1690 drivers/net/wan/farsync.c FST_WRW(card, cardMode, info->cardMode); card 1692 drivers/net/wan/farsync.c FST_WRL(card, suConfig.dataRate, info->lineSpeed); card 1693 drivers/net/wan/farsync.c FST_WRB(card, suConfig.clocking, info->clockSource); card 1701 drivers/net/wan/farsync.c FST_WRB(card, suConfig.framing, my_framing); card 1702 drivers/net/wan/farsync.c FST_WRB(card, suConfig.structure, info->structure); card 1703 drivers/net/wan/farsync.c FST_WRB(card, suConfig.interface, info->interface); card 1704 drivers/net/wan/farsync.c FST_WRB(card, suConfig.coding, info->coding); card 1705 drivers/net/wan/farsync.c FST_WRB(card, suConfig.lineBuildOut, info->lineBuildOut); card 1706 drivers/net/wan/farsync.c FST_WRB(card, suConfig.equalizer, info->equalizer); card 1707 drivers/net/wan/farsync.c FST_WRB(card, suConfig.transparentMode, info->transparentMode); card 1708 drivers/net/wan/farsync.c FST_WRB(card, suConfig.loopMode, info->loopMode); card 1709 drivers/net/wan/farsync.c FST_WRB(card, suConfig.range, info->range); card 1710 drivers/net/wan/farsync.c FST_WRB(card, suConfig.txBufferMode, info->txBufferMode); card 1711 drivers/net/wan/farsync.c FST_WRB(card, suConfig.rxBufferMode, info->rxBufferMode); card 1712 drivers/net/wan/farsync.c FST_WRB(card, suConfig.startingSlot, info->startingSlot); card 1713 drivers/net/wan/farsync.c FST_WRB(card, suConfig.losThreshold, info->losThreshold); card 1715 drivers/net/wan/farsync.c FST_WRB(card, suConfig.enableIdleCode, 1); card 1717 drivers/net/wan/farsync.c FST_WRB(card, suConfig.enableIdleCode, 0); card 1718 drivers/net/wan/farsync.c FST_WRB(card, suConfig.idleCode, info->idleCode); card 1752 drivers/net/wan/farsync.c gather_conf_info(struct fst_card_info *card, struct fst_port_info *port, card 1761 drivers/net/wan/farsync.c info->nports = card->nports; card 1762 drivers/net/wan/farsync.c info->type = card->type; card 1763 drivers/net/wan/farsync.c info->state = card->state; card 1773 drivers/net/wan/farsync.c info->valid = ((card->state == FST_RUNNING) ? FSTVAL_ALL : FSTVAL_CARD) card 1779 drivers/net/wan/farsync.c info->lineInterface = FST_RDW(card, portConfig[i].lineInterface); card 1780 drivers/net/wan/farsync.c info->internalClock = FST_RDB(card, portConfig[i].internalClock); card 1781 drivers/net/wan/farsync.c info->lineSpeed = FST_RDL(card, portConfig[i].lineSpeed); card 1782 drivers/net/wan/farsync.c info->invertClock = FST_RDB(card, portConfig[i].invertClock); card 1783 drivers/net/wan/farsync.c info->v24IpSts = FST_RDL(card, v24IpSts[i]); card 1784 drivers/net/wan/farsync.c info->v24OpSts = FST_RDL(card, v24OpSts[i]); card 1785 drivers/net/wan/farsync.c info->clockStatus = FST_RDW(card, clockStatus[i]); card 1786 drivers/net/wan/farsync.c info->cableStatus = FST_RDW(card, cableStatus); card 1787 drivers/net/wan/farsync.c info->cardMode = FST_RDW(card, cardMode); card 1788 drivers/net/wan/farsync.c info->smcFirmwareVersion = FST_RDL(card, smcFirmwareVersion); card 1795 drivers/net/wan/farsync.c if (card->family == FST_FAMILY_TXU) { card 1812 drivers/net/wan/farsync.c if (card->type == FST_TYPE_TE1) { card 1813 drivers/net/wan/farsync.c info->lineSpeed = FST_RDL(card, suConfig.dataRate); card 1814 drivers/net/wan/farsync.c info->clockSource = FST_RDB(card, suConfig.clocking); card 1815 drivers/net/wan/farsync.c info->framing = FST_RDB(card, suConfig.framing); card 1816 drivers/net/wan/farsync.c info->structure = FST_RDB(card, suConfig.structure); card 1817 drivers/net/wan/farsync.c info->interface = FST_RDB(card, suConfig.interface); card 1818 drivers/net/wan/farsync.c info->coding = FST_RDB(card, suConfig.coding); card 1819 drivers/net/wan/farsync.c info->lineBuildOut = FST_RDB(card, suConfig.lineBuildOut); card 1820 drivers/net/wan/farsync.c info->equalizer = FST_RDB(card, suConfig.equalizer); card 1821 drivers/net/wan/farsync.c info->loopMode = FST_RDB(card, suConfig.loopMode); card 1822 drivers/net/wan/farsync.c info->range = FST_RDB(card, suConfig.range); card 1823 drivers/net/wan/farsync.c info->txBufferMode = FST_RDB(card, suConfig.txBufferMode); card 1824 drivers/net/wan/farsync.c info->rxBufferMode = FST_RDB(card, suConfig.rxBufferMode); card 1825 drivers/net/wan/farsync.c info->startingSlot = FST_RDB(card, suConfig.startingSlot); card 1826 drivers/net/wan/farsync.c info->losThreshold = FST_RDB(card, suConfig.losThreshold); card 1827 drivers/net/wan/farsync.c if (FST_RDB(card, suConfig.enableIdleCode)) card 1828 drivers/net/wan/farsync.c info->idleCode = FST_RDB(card, suConfig.idleCode); card 1832 drivers/net/wan/farsync.c FST_RDL(card, suStatus.receiveBufferDelay); card 1834 drivers/net/wan/farsync.c FST_RDL(card, suStatus.framingErrorCount); card 1836 drivers/net/wan/farsync.c FST_RDL(card, suStatus.codeViolationCount); card 1837 drivers/net/wan/farsync.c info->crcErrorCount = FST_RDL(card, suStatus.crcErrorCount); card 1838 drivers/net/wan/farsync.c info->lineAttenuation = FST_RDL(card, suStatus.lineAttenuation); card 1839 drivers/net/wan/farsync.c info->lossOfSignal = FST_RDB(card, suStatus.lossOfSignal); card 1841 drivers/net/wan/farsync.c FST_RDB(card, suStatus.receiveRemoteAlarm); card 1843 drivers/net/wan/farsync.c FST_RDB(card, suStatus.alarmIndicationSignal); card 1848 drivers/net/wan/farsync.c fst_set_iface(struct fst_card_info *card, struct fst_port_info *port, card 1870 drivers/net/wan/farsync.c FST_WRW(card, portConfig[i].lineInterface, V35); card 1875 drivers/net/wan/farsync.c FST_WRW(card, portConfig[i].lineInterface, V24); card 1880 drivers/net/wan/farsync.c FST_WRW(card, portConfig[i].lineInterface, X21); card 1885 drivers/net/wan/farsync.c FST_WRW(card, portConfig[i].lineInterface, X21D); card 1890 drivers/net/wan/farsync.c FST_WRW(card, portConfig[i].lineInterface, T1); card 1895 drivers/net/wan/farsync.c FST_WRW(card, portConfig[i].lineInterface, E1); card 1908 drivers/net/wan/farsync.c FST_WRB(card, portConfig[i].internalClock, EXTCLK); card 1912 drivers/net/wan/farsync.c FST_WRB(card, portConfig[i].internalClock, INTCLK); card 1918 drivers/net/wan/farsync.c FST_WRL(card, portConfig[i].lineSpeed, sync.clock_rate); card 1923 drivers/net/wan/farsync.c fst_get_iface(struct fst_card_info *card, struct fst_port_info *port, card 1963 drivers/net/wan/farsync.c sync.clock_rate = FST_RDL(card, portConfig[i].lineSpeed); card 1965 drivers/net/wan/farsync.c sync.clock_type = FST_RDB(card, portConfig[i].internalClock) == card 1980 drivers/net/wan/farsync.c struct fst_card_info *card; card 1990 drivers/net/wan/farsync.c card = port->card; card 1997 drivers/net/wan/farsync.c fst_cpureset(card); card 1998 drivers/net/wan/farsync.c card->state = FST_RESET; card 2002 drivers/net/wan/farsync.c fst_cpurelease(card); card 2003 drivers/net/wan/farsync.c card->state = FST_STARTING; card 2034 drivers/net/wan/farsync.c memcpy_toio(card->mem + wrthdr.offset, buf, wrthdr.size); card 2040 drivers/net/wan/farsync.c if (card->state == FST_RESET) { card 2041 drivers/net/wan/farsync.c card->state = FST_DOWNLOAD; card 2050 drivers/net/wan/farsync.c if (card->state == FST_STARTING) { card 2051 drivers/net/wan/farsync.c check_started_ok(card); card 2054 drivers/net/wan/farsync.c if (card->state == FST_RUNNING) { card 2055 drivers/net/wan/farsync.c spin_lock_irqsave(&card->card_lock, flags); card 2056 drivers/net/wan/farsync.c fst_enable_intr(card); card 2057 drivers/net/wan/farsync.c FST_WRB(card, interruptHandshake, 0xEE); card 2058 drivers/net/wan/farsync.c spin_unlock_irqrestore(&card->card_lock, flags); card 2066 drivers/net/wan/farsync.c gather_conf_info(card, port, &info); card 2080 drivers/net/wan/farsync.c if (card->state != FST_RUNNING) { card 2082 drivers/net/wan/farsync.c card->card_no, card->state); card 2089 drivers/net/wan/farsync.c return set_conf_from_info(card, port, &info); card 2094 drivers/net/wan/farsync.c return fst_get_iface(card, port, ifr); card 2103 drivers/net/wan/farsync.c return fst_set_iface(card, port, ifr); card 2137 drivers/net/wan/farsync.c if (port->card->state == FST_RUNNING) { card 2152 drivers/net/wan/farsync.c signals = FST_RDL(port->card, v24DebouncedSts[port->index]); card 2168 drivers/net/wan/farsync.c if (port->card->state == FST_RUNNING) { card 2207 drivers/net/wan/farsync.c struct fst_card_info *card; card 2212 drivers/net/wan/farsync.c card = port->card; card 2214 drivers/net/wan/farsync.c tx_dma_done = inb(card->pci_conf + DMACSR1); card 2215 drivers/net/wan/farsync.c rx_dma_done = inb(card->pci_conf + DMACSR0); card 2218 drivers/net/wan/farsync.c card->dmatx_in_progress, tx_dma_done, card->dmarx_in_progress, card 2245 drivers/net/wan/farsync.c struct fst_card_info *card; card 2248 drivers/net/wan/farsync.c card = port->card; card 2252 drivers/net/wan/farsync.c card->card_no, port->index); card 2263 drivers/net/wan/farsync.c struct fst_card_info *card; card 2269 drivers/net/wan/farsync.c card = port->card; card 2279 drivers/net/wan/farsync.c card->card_no, port->index); card 2297 drivers/net/wan/farsync.c spin_lock_irqsave(&card->card_lock, flags); card 2305 drivers/net/wan/farsync.c spin_unlock_irqrestore(&card->card_lock, flags); card 2322 drivers/net/wan/farsync.c card->card_no, port->index); card 2329 drivers/net/wan/farsync.c spin_lock_irqsave(&card->card_lock, flags); card 2334 drivers/net/wan/farsync.c spin_unlock_irqrestore(&card->card_lock, flags); card 2337 drivers/net/wan/farsync.c fst_q_work_item(&fst_work_txq, card->card_no); card 2361 drivers/net/wan/farsync.c fst_init_card(struct fst_card_info *card) card 2370 drivers/net/wan/farsync.c for (i = 0; i < card->nports; i++) { card 2371 drivers/net/wan/farsync.c err = register_hdlc_device(card->ports[i].dev); card 2376 drivers/net/wan/farsync.c unregister_hdlc_device(card->ports[i].dev); card 2382 drivers/net/wan/farsync.c port_to_dev(&card->ports[0])->name, card 2383 drivers/net/wan/farsync.c port_to_dev(&card->ports[card->nports - 1])->name, card 2384 drivers/net/wan/farsync.c type_strings[card->type], card->irq, card->nports); card 2404 drivers/net/wan/farsync.c struct fst_card_info *card; card 2433 drivers/net/wan/farsync.c card = kzalloc(sizeof(struct fst_card_info), GFP_KERNEL); card 2434 drivers/net/wan/farsync.c if (card == NULL) card 2449 drivers/net/wan/farsync.c card->pci_conf = pci_resource_start(pdev, 1); card 2450 drivers/net/wan/farsync.c card->phys_mem = pci_resource_start(pdev, 2); card 2451 drivers/net/wan/farsync.c card->phys_ctlmem = pci_resource_start(pdev, 3); card 2452 drivers/net/wan/farsync.c if ((card->mem = ioremap(card->phys_mem, FST_MEMSIZE)) == NULL) { card 2457 drivers/net/wan/farsync.c if ((card->ctlmem = ioremap(card->phys_ctlmem, 0x10)) == NULL) { card 2462 drivers/net/wan/farsync.c dbg(DBG_PCI, "kernel mem %p, ctlmem %p\n", card->mem, card->ctlmem); card 2465 drivers/net/wan/farsync.c if (request_irq(pdev->irq, fst_intr, IRQF_SHARED, FST_DEV_NAME, card)) { card 2466 drivers/net/wan/farsync.c pr_err("Unable to register interrupt %d\n", card->irq); card 2472 drivers/net/wan/farsync.c card->irq = pdev->irq; card 2473 drivers/net/wan/farsync.c card->type = ent->driver_data; card 2474 drivers/net/wan/farsync.c card->family = ((ent->driver_data == FST_TYPE_T2P) || card 2479 drivers/net/wan/farsync.c card->nports = 1; card 2481 drivers/net/wan/farsync.c card->nports = ((ent->driver_data == FST_TYPE_T2P) || card 2484 drivers/net/wan/farsync.c card->state = FST_UNINIT; card 2485 drivers/net/wan/farsync.c spin_lock_init ( &card->card_lock ); card 2487 drivers/net/wan/farsync.c for ( i = 0 ; i < card->nports ; i++ ) { card 2488 drivers/net/wan/farsync.c struct net_device *dev = alloc_hdlcdev(&card->ports[i]); card 2492 drivers/net/wan/farsync.c free_netdev(card->ports[i].dev); card 2497 drivers/net/wan/farsync.c card->ports[i].dev = dev; card 2498 drivers/net/wan/farsync.c card->ports[i].card = card; card 2499 drivers/net/wan/farsync.c card->ports[i].index = i; card 2500 drivers/net/wan/farsync.c card->ports[i].run = 0; card 2509 drivers/net/wan/farsync.c dev->mem_start = card->phys_mem card 2511 drivers/net/wan/farsync.c dev->mem_end = card->phys_mem card 2513 drivers/net/wan/farsync.c dev->base_addr = card->pci_conf; card 2514 drivers/net/wan/farsync.c dev->irq = card->irq; card 2523 drivers/net/wan/farsync.c card->device = pdev; card 2525 drivers/net/wan/farsync.c dbg(DBG_PCI, "type %d nports %d irq %d\n", card->type, card 2526 drivers/net/wan/farsync.c card->nports, card->irq); card 2528 drivers/net/wan/farsync.c card->pci_conf, card->phys_mem, card->phys_ctlmem); card 2531 drivers/net/wan/farsync.c fst_cpureset(card); card 2532 drivers/net/wan/farsync.c card->state = FST_RESET; card 2535 drivers/net/wan/farsync.c fst_init_dma(card); card 2538 drivers/net/wan/farsync.c pci_set_drvdata(pdev, card); card 2546 drivers/net/wan/farsync.c fst_card_array[no_of_cards_added] = card; card 2547 drivers/net/wan/farsync.c card->card_no = no_of_cards_added++; /* Record instance and bump it */ card 2548 drivers/net/wan/farsync.c err = fst_init_card(card); card 2551 drivers/net/wan/farsync.c if (card->family == FST_FAMILY_TXU) { card 2555 drivers/net/wan/farsync.c card->rx_dma_handle_host = card 2556 drivers/net/wan/farsync.c pci_alloc_consistent(card->device, FST_MAX_MTU, card 2557 drivers/net/wan/farsync.c &card->rx_dma_handle_card); card 2558 drivers/net/wan/farsync.c if (card->rx_dma_handle_host == NULL) { card 2563 drivers/net/wan/farsync.c card->tx_dma_handle_host = card 2564 drivers/net/wan/farsync.c pci_alloc_consistent(card->device, FST_MAX_MTU, card 2565 drivers/net/wan/farsync.c &card->tx_dma_handle_card); card 2566 drivers/net/wan/farsync.c if (card->tx_dma_handle_host == NULL) { card 2575 drivers/net/wan/farsync.c pci_free_consistent(card->device, FST_MAX_MTU, card 2576 drivers/net/wan/farsync.c card->rx_dma_handle_host, card 2577 drivers/net/wan/farsync.c card->rx_dma_handle_card); card 2579 drivers/net/wan/farsync.c fst_disable_intr(card); card 2580 drivers/net/wan/farsync.c for (i = 0 ; i < card->nports ; i++) card 2581 drivers/net/wan/farsync.c unregister_hdlc_device(card->ports[i].dev); card 2583 drivers/net/wan/farsync.c fst_card_array[card->card_no] = NULL; card 2585 drivers/net/wan/farsync.c for (i = 0 ; i < card->nports ; i++) card 2586 drivers/net/wan/farsync.c free_netdev(card->ports[i].dev); card 2588 drivers/net/wan/farsync.c free_irq(card->irq, card); card 2590 drivers/net/wan/farsync.c iounmap(card->ctlmem); card 2592 drivers/net/wan/farsync.c iounmap(card->mem); card 2598 drivers/net/wan/farsync.c kfree(card); card 2608 drivers/net/wan/farsync.c struct fst_card_info *card; card 2611 drivers/net/wan/farsync.c card = pci_get_drvdata(pdev); card 2613 drivers/net/wan/farsync.c for (i = 0; i < card->nports; i++) { card 2614 drivers/net/wan/farsync.c struct net_device *dev = port_to_dev(&card->ports[i]); card 2618 drivers/net/wan/farsync.c fst_disable_intr(card); card 2619 drivers/net/wan/farsync.c free_irq(card->irq, card); card 2621 drivers/net/wan/farsync.c iounmap(card->ctlmem); card 2622 drivers/net/wan/farsync.c iounmap(card->mem); card 2624 drivers/net/wan/farsync.c if (card->family == FST_FAMILY_TXU) { card 2628 drivers/net/wan/farsync.c pci_free_consistent(card->device, FST_MAX_MTU, card 2629 drivers/net/wan/farsync.c card->rx_dma_handle_host, card 2630 drivers/net/wan/farsync.c card->rx_dma_handle_card); card 2631 drivers/net/wan/farsync.c pci_free_consistent(card->device, FST_MAX_MTU, card 2632 drivers/net/wan/farsync.c card->tx_dma_handle_host, card 2633 drivers/net/wan/farsync.c card->tx_dma_handle_card); card 2635 drivers/net/wan/farsync.c fst_card_array[card->card_no] = NULL; card 56 drivers/net/wan/hd64570.c static inline int sca_intr_status(card_t *card) card 59 drivers/net/wan/hd64570.c u8 isr0 = sca_in(ISR0, card); card 60 drivers/net/wan/hd64570.c u8 isr1 = sca_in(ISR1, card); card 70 drivers/net/wan/hd64570.c if (sca_in(DSR_TX(0), card) & DSR_EOM) card 73 drivers/net/wan/hd64570.c if (sca_in(DSR_TX(1), card) & DSR_EOM) card 149 drivers/net/wan/hd64570.c card_t *card = port_to_card(port); card 157 drivers/net/wan/hd64570.c openwin(card, 0); card 162 drivers/net/wan/hd64570.c u16 buffs = transmit ? card->tx_ring_buffers card 163 drivers/net/wan/hd64570.c : card->rx_ring_buffers; card 178 drivers/net/wan/hd64570.c DSR_RX(phy_node(port)), card); card 181 drivers/net/wan/hd64570.c DCR_RX(phy_node(port)), card); card 184 drivers/net/wan/hd64570.c sca_out(0, dmac + CPB, card); /* pointer base */ card 185 drivers/net/wan/hd64570.c sca_outw(desc_offset(port, 0, transmit), dmac + CDAL, card); card 188 drivers/net/wan/hd64570.c dmac + EDAL, card); card 191 drivers/net/wan/hd64570.c card); card 195 drivers/net/wan/hd64570.c DCR_RX(phy_node(port)), card); card 199 drivers/net/wan/hd64570.c sca_outw(HDLC_MAX_MRU, dmac + BFLL, card); card 201 drivers/net/wan/hd64570.c sca_out(0x14, DMR_RX(phy_node(port)), card); card 203 drivers/net/wan/hd64570.c card); card 205 drivers/net/wan/hd64570.c sca_out(DSR_DE, DSR_RX(phy_node(port)), card); card 208 drivers/net/wan/hd64570.c sca_out(0x14, DMR_TX(phy_node(port)), card); card 210 drivers/net/wan/hd64570.c sca_out(DIR_BOFE, DIR_TX(phy_node(port)), card); card 222 drivers/net/wan/hd64570.c card_t* card = port_to_card(port); card 223 drivers/net/wan/hd64570.c u8 stat = sca_in(msci + ST1, card); /* read MSCI ST1 status */ card 226 drivers/net/wan/hd64570.c sca_out(stat & (ST1_UDRN | ST1_CDCD), msci + ST1, card); card 240 drivers/net/wan/hd64570.c static inline void sca_rx(card_t *card, port_t *port, pkt_desc __iomem *desc, card 258 drivers/net/wan/hd64570.c page = buff / winsize(card); card 259 drivers/net/wan/hd64570.c buff = buff % winsize(card); card 260 drivers/net/wan/hd64570.c maxlen = winsize(card) - buff; card 262 drivers/net/wan/hd64570.c openwin(card, page); card 265 drivers/net/wan/hd64570.c memcpy_fromio(skb->data, winbase(card) + buff, maxlen); card 266 drivers/net/wan/hd64570.c openwin(card, page + 1); card 267 drivers/net/wan/hd64570.c memcpy_fromio(skb->data + maxlen, winbase(card), len - maxlen); card 269 drivers/net/wan/hd64570.c memcpy_fromio(skb->data, winbase(card) + buff, len); card 272 drivers/net/wan/hd64570.c openwin(card, 0); /* select pkt_desc table page back */ card 291 drivers/net/wan/hd64570.c card_t *card = port_to_card(port); card 292 drivers/net/wan/hd64570.c u8 stat = sca_in(DSR_RX(phy_node(port)), card); /* read DMA Status */ card 296 drivers/net/wan/hd64570.c DSR_RX(phy_node(port)), card); card 305 drivers/net/wan/hd64570.c u32 cda = sca_inw(dmac + CDAL, card); card 326 drivers/net/wan/hd64570.c sca_rx(card, port, desc, port->rxin); card 329 drivers/net/wan/hd64570.c sca_outw(desc_off, dmac + EDAL, card); card 334 drivers/net/wan/hd64570.c sca_out(DSR_DE, DSR_RX(phy_node(port)), card); card 343 drivers/net/wan/hd64570.c card_t* card = port_to_card(port); card 348 drivers/net/wan/hd64570.c stat = sca_in(DSR_TX(phy_node(port)), card); /* read DMA Status */ card 352 drivers/net/wan/hd64570.c DSR_TX(phy_node(port)), card); card 358 drivers/net/wan/hd64570.c u32 cda = sca_inw(dmac + CDAL, card); card 376 drivers/net/wan/hd64570.c card_t *card = dev_id; card 380 drivers/net/wan/hd64570.c u8 page = sca_get_page(card); card 382 drivers/net/wan/hd64570.c while((stat = sca_intr_status(card)) != 0) { card 385 drivers/net/wan/hd64570.c port_t *port = get_port(card, i); card 399 drivers/net/wan/hd64570.c openwin(card, page); /* Restore original page */ card 406 drivers/net/wan/hd64570.c card_t* card = port_to_card(port); card 408 drivers/net/wan/hd64570.c u8 md2 = sca_in(msci + MD2, card); card 441 drivers/net/wan/hd64570.c sca_out(port->tmc, msci + TMC, card); card 444 drivers/net/wan/hd64570.c sca_out(port->rxs, msci + RXS, card); card 445 drivers/net/wan/hd64570.c sca_out(port->txs, msci + TXS, card); card 452 drivers/net/wan/hd64570.c sca_out(md2, msci + MD2, card); card 460 drivers/net/wan/hd64570.c card_t* card = port_to_card(port); card 483 drivers/net/wan/hd64570.c sca_out(CMD_RESET, msci + CMD, card); card 484 drivers/net/wan/hd64570.c sca_out(md0, msci + MD0, card); card 485 drivers/net/wan/hd64570.c sca_out(0x00, msci + MD1, card); /* no address field check */ card 486 drivers/net/wan/hd64570.c sca_out(md2, msci + MD2, card); card 487 drivers/net/wan/hd64570.c sca_out(0x7E, msci + IDL, card); /* flag character 0x7E */ card 488 drivers/net/wan/hd64570.c sca_out(CTL_IDLE, msci + CTL, card); card 492 drivers/net/wan/hd64570.c sca_out(0x07, msci + RRC, card); /* +1=RXRDY/DMA activation condition*/ card 493 drivers/net/wan/hd64570.c sca_out(0x10, msci + TRC0, card); /* = TXRDY/DMA activation condition*/ card 494 drivers/net/wan/hd64570.c sca_out(0x14, msci + TRC1, card); /* +1=TXRDY/DMA deactiv condition */ card 503 drivers/net/wan/hd64570.c sca_out(IE0_TXINT | IE0_RXINTA, msci + IE0, card); card 504 drivers/net/wan/hd64570.c sca_out(IE1_UDRN | IE1_CDCD, msci + IE1, card); card 505 drivers/net/wan/hd64570.c sca_out(sca_in(IER0, card) | (phy_node(port) ? 0xC0 : 0x0C), card 506 drivers/net/wan/hd64570.c IER0, card); /* TXINT and RXINT */ card 508 drivers/net/wan/hd64570.c sca_out(sca_in(IER1, card) | (phy_node(port) ? 0xF0 : 0x0F), card 509 drivers/net/wan/hd64570.c IER1, card); card 511 drivers/net/wan/hd64570.c sca_out(port->tmc, msci + TMC, card); /* Restore registers */ card 512 drivers/net/wan/hd64570.c sca_out(port->rxs, msci + RXS, card); card 513 drivers/net/wan/hd64570.c sca_out(port->txs, msci + TXS, card); card 514 drivers/net/wan/hd64570.c sca_out(CMD_TX_ENABLE, msci + CMD, card); card 515 drivers/net/wan/hd64570.c sca_out(CMD_RX_ENABLE, msci + CMD, card); card 524 drivers/net/wan/hd64570.c card_t* card = port_to_card(port); card 529 drivers/net/wan/hd64570.c sca_out(sca_in(IER0, card) & (phy_node(port) ? 0x0F : 0xF0), card 530 drivers/net/wan/hd64570.c IER0, card); card 532 drivers/net/wan/hd64570.c sca_out(sca_in(IER1, card) & (phy_node(port) ? 0x0F : 0xF0), card 533 drivers/net/wan/hd64570.c IER1, card); card 566 drivers/net/wan/hd64570.c card_t *card = port_to_card(port); card 569 drivers/net/wan/hd64570.c u8 page = sca_get_page(card); card 571 drivers/net/wan/hd64570.c openwin(card, 0); card 575 drivers/net/wan/hd64570.c sca_inw(get_dmac_rx(port) + CDAL, card), card 576 drivers/net/wan/hd64570.c sca_inw(get_dmac_rx(port) + EDAL, card), card 577 drivers/net/wan/hd64570.c sca_in(DSR_RX(phy_node(port)), card), port->rxin, card 578 drivers/net/wan/hd64570.c sca_in(DSR_RX(phy_node(port)), card) & DSR_DE ? "" : "in"); card 585 drivers/net/wan/hd64570.c sca_inw(get_dmac_tx(port) + CDAL, card), card 586 drivers/net/wan/hd64570.c sca_inw(get_dmac_tx(port) + EDAL, card), card 587 drivers/net/wan/hd64570.c sca_in(DSR_TX(phy_node(port)), card), port->txin, port->txlast, card 588 drivers/net/wan/hd64570.c sca_in(DSR_TX(phy_node(port)), card) & DSR_DE ? "" : "in"); card 596 drivers/net/wan/hd64570.c sca_in(get_msci(port) + MD0, card), card 597 drivers/net/wan/hd64570.c sca_in(get_msci(port) + MD1, card), card 598 drivers/net/wan/hd64570.c sca_in(get_msci(port) + MD2, card), card 599 drivers/net/wan/hd64570.c sca_in(get_msci(port) + ST0, card), card 600 drivers/net/wan/hd64570.c sca_in(get_msci(port) + ST1, card), card 601 drivers/net/wan/hd64570.c sca_in(get_msci(port) + ST2, card), card 602 drivers/net/wan/hd64570.c sca_in(get_msci(port) + ST3, card), card 603 drivers/net/wan/hd64570.c sca_in(get_msci(port) + FST, card), card 604 drivers/net/wan/hd64570.c sca_in(get_msci(port) + CST0, card), card 605 drivers/net/wan/hd64570.c sca_in(get_msci(port) + CST1, card)); card 607 drivers/net/wan/hd64570.c printk(KERN_DEBUG "ISR: %02x %02x %02x\n", sca_in(ISR0, card), card 608 drivers/net/wan/hd64570.c sca_in(ISR1, card), sca_in(ISR2, card)); card 611 drivers/net/wan/hd64570.c openwin(card, page); /* Restore original page */ card 620 drivers/net/wan/hd64570.c card_t *card = port_to_card(port); card 639 drivers/net/wan/hd64570.c page = buff / winsize(card); card 640 drivers/net/wan/hd64570.c buff = buff % winsize(card); card 641 drivers/net/wan/hd64570.c maxlen = winsize(card) - buff; card 643 drivers/net/wan/hd64570.c openwin(card, page); card 645 drivers/net/wan/hd64570.c memcpy_toio(winbase(card) + buff, skb->data, maxlen); card 646 drivers/net/wan/hd64570.c openwin(card, page + 1); card 647 drivers/net/wan/hd64570.c memcpy_toio(winbase(card), skb->data + maxlen, len - maxlen); card 649 drivers/net/wan/hd64570.c memcpy_toio(winbase(card) + buff, skb->data, len); card 652 drivers/net/wan/hd64570.c openwin(card, 0); /* select pkt_desc table page back */ card 659 drivers/net/wan/hd64570.c get_dmac_tx(port) + EDAL, card); card 661 drivers/net/wan/hd64570.c sca_out(DSR_DE, DSR_TX(phy_node(port)), card); /* Enable TX DMA */ card 675 drivers/net/wan/hd64570.c static u32 sca_detect_ram(card_t *card, u8 __iomem *rambase, u32 ramsize) card 679 drivers/net/wan/hd64570.c u32 size = winsize(card); card 681 drivers/net/wan/hd64570.c openwin(card, (i - 4) / size); /* select last window */ card 686 drivers/net/wan/hd64570.c openwin(card, i / size); card 692 drivers/net/wan/hd64570.c openwin(card, i / size); card 703 drivers/net/wan/hd64570.c static void sca_init(card_t *card, int wait_states) card 705 drivers/net/wan/hd64570.c sca_out(wait_states, WCRL, card); /* Wait Control */ card 706 drivers/net/wan/hd64570.c sca_out(wait_states, WCRM, card); card 707 drivers/net/wan/hd64570.c sca_out(wait_states, WCRH, card); card 709 drivers/net/wan/hd64570.c sca_out(0, DMER, card); /* DMA Master disable */ card 710 drivers/net/wan/hd64570.c sca_out(0x03, PCR, card); /* DMA priority */ card 711 drivers/net/wan/hd64570.c sca_out(0, DSR_RX(0), card); /* DMA disable - to halt state */ card 712 drivers/net/wan/hd64570.c sca_out(0, DSR_TX(0), card); card 713 drivers/net/wan/hd64570.c sca_out(0, DSR_RX(1), card); card 714 drivers/net/wan/hd64570.c sca_out(0, DSR_TX(1), card); card 715 drivers/net/wan/hd64570.c sca_out(DMER_DME, DMER, card); /* DMA Master enable */ card 48 drivers/net/wan/hd64572.c #define sca_in(reg, card) readb(card->scabase + (reg)) card 49 drivers/net/wan/hd64572.c #define sca_out(value, reg, card) writeb(value, card->scabase + (reg)) card 50 drivers/net/wan/hd64572.c #define sca_inw(reg, card) readw(card->scabase + (reg)) card 51 drivers/net/wan/hd64572.c #define sca_outw(value, reg, card) writew(value, card->scabase + (reg)) card 52 drivers/net/wan/hd64572.c #define sca_inl(reg, card) readl(card->scabase + (reg)) card 53 drivers/net/wan/hd64572.c #define sca_outl(value, reg, card) writel(value, card->scabase + (reg)) card 65 drivers/net/wan/hd64572.c sca_outl(sca_inl(IER0, port->card) | card 66 drivers/net/wan/hd64572.c (port->chan ? 0x08002200 : 0x00080022), IER0, port->card); card 71 drivers/net/wan/hd64572.c sca_outl(sca_inl(IER0, port->card) & card 72 drivers/net/wan/hd64572.c (port->chan ? 0x00FF00FF : 0xFF00FF00), IER0, port->card); card 77 drivers/net/wan/hd64572.c u16 rx_buffs = port->card->rx_ring_buffers; card 78 drivers/net/wan/hd64572.c u16 tx_buffs = port->card->tx_ring_buffers; card 95 drivers/net/wan/hd64572.c return (pkt_desc __iomem *)(port->card->rambase + card 102 drivers/net/wan/hd64572.c return port->card->buff_offset + card 109 drivers/net/wan/hd64572.c if (!(sca_in(get_msci(port) + ST3, port->card) & ST3_DCD)) { card 127 drivers/net/wan/hd64572.c card_t *card = port->card; card 136 drivers/net/wan/hd64572.c u16 buffs = transmit ? card->tx_ring_buffers card 137 drivers/net/wan/hd64572.c : card->rx_ring_buffers; card 152 drivers/net/wan/hd64572.c sca_out(0, DSR_RX(port->chan), card); card 153 drivers/net/wan/hd64572.c sca_out(0, DSR_TX(port->chan), card); card 156 drivers/net/wan/hd64572.c sca_out(DCR_ABORT, DCR_RX(port->chan), card); card 157 drivers/net/wan/hd64572.c sca_out(DCR_ABORT, DCR_TX(port->chan), card); card 160 drivers/net/wan/hd64572.c sca_outl(desc_offset(port, 0, 0), dmac_rx + CDAL, card); card 161 drivers/net/wan/hd64572.c sca_outl(desc_offset(port, card->tx_ring_buffers - 1, 0), card 162 drivers/net/wan/hd64572.c dmac_rx + EDAL, card); card 163 drivers/net/wan/hd64572.c sca_outl(desc_offset(port, 0, 1), dmac_tx + CDAL, card); card 164 drivers/net/wan/hd64572.c sca_outl(desc_offset(port, 0, 1), dmac_tx + EDAL, card); card 167 drivers/net/wan/hd64572.c sca_out(DCR_CLEAR_EOF, DCR_RX(port->chan), card); card 168 drivers/net/wan/hd64572.c sca_out(DCR_CLEAR_EOF, DCR_TX(port->chan), card); card 171 drivers/net/wan/hd64572.c sca_outw(HDLC_MAX_MRU, dmac_rx + BFLL, card); /* set buffer length */ card 172 drivers/net/wan/hd64572.c sca_out(0x14, DMR_RX(port->chan), card); /* Chain mode, Multi-frame */ card 173 drivers/net/wan/hd64572.c sca_out(DIR_EOME, DIR_RX(port->chan), card); /* enable interrupts */ card 174 drivers/net/wan/hd64572.c sca_out(DSR_DE, DSR_RX(port->chan), card); /* DMA enable */ card 177 drivers/net/wan/hd64572.c sca_out(0x14, DMR_TX(port->chan), card); /* Chain mode, Multi-frame */ card 178 drivers/net/wan/hd64572.c sca_out(DIR_EOME, DIR_TX(port->chan), card); /* enable interrupts */ card 189 drivers/net/wan/hd64572.c card_t* card = port->card; card 191 drivers/net/wan/hd64572.c if (sca_in(msci + ST1, card) & ST1_CDCD) { card 193 drivers/net/wan/hd64572.c sca_out(ST1_CDCD, msci + ST1, card); card 199 drivers/net/wan/hd64572.c static inline void sca_rx(card_t *card, port_t *port, pkt_desc __iomem *desc, card 215 drivers/net/wan/hd64572.c memcpy_fromio(skb->data, card->rambase + buff, len); card 234 drivers/net/wan/hd64572.c card_t *card = port->card; card 235 drivers/net/wan/hd64572.c u8 stat = sca_in(DSR_RX(port->chan), card); /* read DMA Status */ card 240 drivers/net/wan/hd64572.c DSR_RX(port->chan), card); card 249 drivers/net/wan/hd64572.c u32 cda = sca_inl(dmac + CDAL, card); card 270 drivers/net/wan/hd64572.c sca_rx(card, port, desc, port->rxin); card 275 drivers/net/wan/hd64572.c sca_outl(desc_off, dmac + EDAL, card); card 276 drivers/net/wan/hd64572.c port->rxin = (port->rxin + 1) % card->rx_ring_buffers; card 280 drivers/net/wan/hd64572.c sca_out(DSR_DE, DSR_RX(port->chan), card); card 289 drivers/net/wan/hd64572.c card_t* card = port->card; card 295 drivers/net/wan/hd64572.c stat = sca_in(DSR_TX(port->chan), card); /* read DMA Status */ card 299 drivers/net/wan/hd64572.c DSR_TX(port->chan), card); card 316 drivers/net/wan/hd64572.c port->txlast = (port->txlast + 1) % card->tx_ring_buffers; card 328 drivers/net/wan/hd64572.c u32 isr0 = sca_inl(ISR0, port->card); card 350 drivers/net/wan/hd64572.c card_t *card = dev_id; card 351 drivers/net/wan/hd64572.c u32 isr0 = sca_inl(ISR0, card); card 355 drivers/net/wan/hd64572.c port_t *port = get_port(card, i); card 369 drivers/net/wan/hd64572.c card_t* card = port->card; card 371 drivers/net/wan/hd64572.c u8 md2 = sca_in(msci + MD2, card); card 404 drivers/net/wan/hd64572.c sca_out(port->tmc, msci + TMCR, card); card 405 drivers/net/wan/hd64572.c sca_out(port->tmc, msci + TMCT, card); card 408 drivers/net/wan/hd64572.c sca_out(port->rxs, msci + RXS, card); card 409 drivers/net/wan/hd64572.c sca_out(port->txs, msci + TXS, card); card 416 drivers/net/wan/hd64572.c sca_out(md2, msci + MD2, card); card 424 drivers/net/wan/hd64572.c card_t* card = port->card; card 447 drivers/net/wan/hd64572.c sca_out(CMD_RESET, msci + CMD, card); card 448 drivers/net/wan/hd64572.c sca_out(md0, msci + MD0, card); card 449 drivers/net/wan/hd64572.c sca_out(0x00, msci + MD1, card); /* no address field check */ card 450 drivers/net/wan/hd64572.c sca_out(md2, msci + MD2, card); card 451 drivers/net/wan/hd64572.c sca_out(0x7E, msci + IDL, card); /* flag character 0x7E */ card 453 drivers/net/wan/hd64572.c sca_out(CTL_IDLE | CTL_URCT | CTL_URSKP, msci + CTL, card); card 454 drivers/net/wan/hd64572.c sca_out(0x0F, msci + RNR, card); /* +1=RX DMA activation condition */ card 455 drivers/net/wan/hd64572.c sca_out(0x3C, msci + TFS, card); /* +1 = TX start */ card 456 drivers/net/wan/hd64572.c sca_out(0x38, msci + TCR, card); /* =Critical TX DMA activ condition */ card 457 drivers/net/wan/hd64572.c sca_out(0x38, msci + TNR0, card); /* =TX DMA activation condition */ card 458 drivers/net/wan/hd64572.c sca_out(0x3F, msci + TNR1, card); /* +1=TX DMA deactivation condition*/ card 464 drivers/net/wan/hd64572.c sca_outl(IE0_RXINTA | IE0_CDCD, msci + IE0, card); card 466 drivers/net/wan/hd64572.c sca_out(port->tmc, msci + TMCR, card); card 467 drivers/net/wan/hd64572.c sca_out(port->tmc, msci + TMCT, card); card 468 drivers/net/wan/hd64572.c sca_out(port->rxs, msci + RXS, card); card 469 drivers/net/wan/hd64572.c sca_out(port->txs, msci + TXS, card); card 470 drivers/net/wan/hd64572.c sca_out(CMD_TX_ENABLE, msci + CMD, card); card 471 drivers/net/wan/hd64572.c sca_out(CMD_RX_ENABLE, msci + CMD, card); card 485 drivers/net/wan/hd64572.c sca_out(CMD_RESET, get_msci(port) + CMD, port->card); card 519 drivers/net/wan/hd64572.c card_t *card = port->card; card 523 drivers/net/wan/hd64572.c sca_inl(get_dmac_rx(port) + CDAL, card), card 524 drivers/net/wan/hd64572.c sca_inl(get_dmac_rx(port) + EDAL, card), card 525 drivers/net/wan/hd64572.c sca_in(DSR_RX(port->chan), card), port->rxin, card 526 drivers/net/wan/hd64572.c sca_in(DSR_RX(port->chan), card) & DSR_DE ? "" : "in"); card 527 drivers/net/wan/hd64572.c for (cnt = 0; cnt < port->card->rx_ring_buffers; cnt++) card 533 drivers/net/wan/hd64572.c sca_inl(get_dmac_tx(port) + CDAL, card), card 534 drivers/net/wan/hd64572.c sca_inl(get_dmac_tx(port) + EDAL, card), card 535 drivers/net/wan/hd64572.c sca_in(DSR_TX(port->chan), card), port->txin, port->txlast, card 536 drivers/net/wan/hd64572.c sca_in(DSR_TX(port->chan), card) & DSR_DE ? "" : "in"); card 538 drivers/net/wan/hd64572.c for (cnt = 0; cnt < port->card->tx_ring_buffers; cnt++) card 544 drivers/net/wan/hd64572.c sca_in(get_msci(port) + MD0, card), card 545 drivers/net/wan/hd64572.c sca_in(get_msci(port) + MD1, card), card 546 drivers/net/wan/hd64572.c sca_in(get_msci(port) + MD2, card), card 547 drivers/net/wan/hd64572.c sca_in(get_msci(port) + ST0, card), card 548 drivers/net/wan/hd64572.c sca_in(get_msci(port) + ST1, card), card 549 drivers/net/wan/hd64572.c sca_in(get_msci(port) + ST2, card), card 550 drivers/net/wan/hd64572.c sca_in(get_msci(port) + ST3, card), card 551 drivers/net/wan/hd64572.c sca_in(get_msci(port) + ST4, card), card 552 drivers/net/wan/hd64572.c sca_in(get_msci(port) + FST, card), card 553 drivers/net/wan/hd64572.c sca_in(get_msci(port) + CST0, card), card 554 drivers/net/wan/hd64572.c sca_in(get_msci(port) + CST1, card)); card 556 drivers/net/wan/hd64572.c printk(KERN_DEBUG "ILAR: %02x ISR: %08x %08x\n", sca_in(ILAR, card), card 557 drivers/net/wan/hd64572.c sca_inl(ISR0, card), sca_inl(ISR1, card)); card 565 drivers/net/wan/hd64572.c card_t *card = port->card; card 582 drivers/net/wan/hd64572.c memcpy_toio(card->rambase + buff, skb->data, len); card 587 drivers/net/wan/hd64572.c port->txin = (port->txin + 1) % card->tx_ring_buffers; card 589 drivers/net/wan/hd64572.c get_dmac_tx(port) + EDAL, card); card 591 drivers/net/wan/hd64572.c sca_out(DSR_DE, DSR_TX(port->chan), card); /* Enable TX DMA */ card 604 drivers/net/wan/hd64572.c static u32 sca_detect_ram(card_t *card, u8 __iomem *rambase, u32 ramsize) card 623 drivers/net/wan/hd64572.c static void sca_init(card_t *card, int wait_states) card 625 drivers/net/wan/hd64572.c sca_out(wait_states, WCRL, card); /* Wait Control */ card 626 drivers/net/wan/hd64572.c sca_out(wait_states, WCRM, card); card 627 drivers/net/wan/hd64572.c sca_out(wait_states, WCRH, card); card 629 drivers/net/wan/hd64572.c sca_out(0, DMER, card); /* DMA Master disable */ card 630 drivers/net/wan/hd64572.c sca_out(0x03, PCR, card); /* DMA priority */ card 631 drivers/net/wan/hd64572.c sca_out(0, DSR_RX(0), card); /* DMA disable - to halt state */ card 632 drivers/net/wan/hd64572.c sca_out(0, DSR_TX(0), card); card 633 drivers/net/wan/hd64572.c sca_out(0, DSR_RX(1), card); card 634 drivers/net/wan/hd64572.c sca_out(0, DSR_TX(1), card); card 635 drivers/net/wan/hd64572.c sca_out(DMER_DME, DMER, card); /* DMA Master enable */ card 96 drivers/net/wan/n2.c struct card_s *card; card 132 drivers/net/wan/n2.c #define sca_reg(reg, card) (0x8000 | (card)->io | \ card 134 drivers/net/wan/n2.c #define sca_in(reg, card) inb(sca_reg(reg, card)) card 135 drivers/net/wan/n2.c #define sca_out(value, reg, card) outb(value, sca_reg(reg, card)) card 136 drivers/net/wan/n2.c #define sca_inw(reg, card) inw(sca_reg(reg, card)) card 137 drivers/net/wan/n2.c #define sca_outw(value, reg, card) outw(value, sca_reg(reg, card)) card 139 drivers/net/wan/n2.c #define port_to_card(port) ((port)->card) card 142 drivers/net/wan/n2.c #define winsize(card) (USE_WINDOWSIZE) card 143 drivers/net/wan/n2.c #define winbase(card) ((card)->winbase) card 144 drivers/net/wan/n2.c #define get_port(card, port) ((card)->ports[port].valid ? \ card 145 drivers/net/wan/n2.c &(card)->ports[port] : NULL) card 148 drivers/net/wan/n2.c static __inline__ u8 sca_get_page(card_t *card) card 150 drivers/net/wan/n2.c return inb(card->io + N2_PSR) & PSR_PAGEBITS; card 154 drivers/net/wan/n2.c static __inline__ void openwin(card_t *card, u8 page) card 156 drivers/net/wan/n2.c u8 psr = inb(card->io + N2_PSR); card 157 drivers/net/wan/n2.c outb((psr & ~PSR_PAGEBITS) | page, card->io + N2_PSR); card 166 drivers/net/wan/n2.c card_t *card = port->card; card 167 drivers/net/wan/n2.c int io = card->io; card 201 drivers/net/wan/n2.c sca_out(rxs, msci + RXS, card); card 202 drivers/net/wan/n2.c sca_out(txs, msci + TXS, card); card 211 drivers/net/wan/n2.c int io = port->card->io; card 234 drivers/net/wan/n2.c int io = port->card->io; card 300 drivers/net/wan/n2.c static void n2_destroy_card(card_t *card) card 305 drivers/net/wan/n2.c if (card->ports[cnt].card) { card 306 drivers/net/wan/n2.c struct net_device *dev = port_to_dev(&card->ports[cnt]); card 310 drivers/net/wan/n2.c if (card->irq) card 311 drivers/net/wan/n2.c free_irq(card->irq, card); card 313 drivers/net/wan/n2.c if (card->winbase) { card 314 drivers/net/wan/n2.c iounmap(card->winbase); card 315 drivers/net/wan/n2.c release_mem_region(card->phy_winbase, USE_WINDOWSIZE); card 318 drivers/net/wan/n2.c if (card->io) card 319 drivers/net/wan/n2.c release_region(card->io, N2_IOPORTS); card 320 drivers/net/wan/n2.c if (card->ports[0].dev) card 321 drivers/net/wan/n2.c free_netdev(card->ports[0].dev); card 322 drivers/net/wan/n2.c if (card->ports[1].dev) card 323 drivers/net/wan/n2.c free_netdev(card->ports[1].dev); card 324 drivers/net/wan/n2.c kfree(card); card 337 drivers/net/wan/n2.c card_t *card; card 356 drivers/net/wan/n2.c card = kzalloc(sizeof(card_t), GFP_KERNEL); card 357 drivers/net/wan/n2.c if (card == NULL) card 360 drivers/net/wan/n2.c card->ports[0].dev = alloc_hdlcdev(&card->ports[0]); card 361 drivers/net/wan/n2.c card->ports[1].dev = alloc_hdlcdev(&card->ports[1]); card 362 drivers/net/wan/n2.c if (!card->ports[0].dev || !card->ports[1].dev) { card 364 drivers/net/wan/n2.c n2_destroy_card(card); card 370 drivers/net/wan/n2.c n2_destroy_card(card); card 373 drivers/net/wan/n2.c card->io = io; card 375 drivers/net/wan/n2.c if (request_irq(irq, sca_intr, 0, devname, card)) { card 377 drivers/net/wan/n2.c n2_destroy_card(card); card 380 drivers/net/wan/n2.c card->irq = irq; card 384 drivers/net/wan/n2.c n2_destroy_card(card); card 387 drivers/net/wan/n2.c card->phy_winbase = winbase; card 388 drivers/net/wan/n2.c card->winbase = ioremap(winbase, USE_WINDOWSIZE); card 389 drivers/net/wan/n2.c if (!card->winbase) { card 391 drivers/net/wan/n2.c n2_destroy_card(card); card 413 drivers/net/wan/n2.c n2_destroy_card(card); card 420 drivers/net/wan/n2.c card->ram_size = sca_detect_ram(card, card->winbase, MAX_RAM_SIZE); card 423 drivers/net/wan/n2.c i = card->ram_size / ((valid0 + valid1) * (sizeof(pkt_desc) + card 426 drivers/net/wan/n2.c card->tx_ring_buffers = min(i / 2, MAX_TX_BUFFERS); card 427 drivers/net/wan/n2.c card->rx_ring_buffers = i - card->tx_ring_buffers; card 429 drivers/net/wan/n2.c card->buff_offset = (valid0 + valid1) * sizeof(pkt_desc) * card 430 drivers/net/wan/n2.c (card->tx_ring_buffers + card->rx_ring_buffers); card 433 drivers/net/wan/n2.c card->ram_size / 1024, card->irq, card 434 drivers/net/wan/n2.c card->tx_ring_buffers, card->rx_ring_buffers); card 436 drivers/net/wan/n2.c if (card->tx_ring_buffers < 1) { card 438 drivers/net/wan/n2.c n2_destroy_card(card); card 446 drivers/net/wan/n2.c sca_init(card, 0); card 448 drivers/net/wan/n2.c port_t *port = &card->ports[cnt]; card 470 drivers/net/wan/n2.c port->card = card; card 474 drivers/net/wan/n2.c port->card = NULL; card 475 drivers/net/wan/n2.c n2_destroy_card(card); card 483 drivers/net/wan/n2.c *new_card = card; card 484 drivers/net/wan/n2.c new_card = &card->next_card; card 545 drivers/net/wan/n2.c card_t *card = first_card; card 547 drivers/net/wan/n2.c while (card) { card 548 drivers/net/wan/n2.c card_t *ptr = card; card 549 drivers/net/wan/n2.c card = card->next_card; card 79 drivers/net/wan/pc300too.c struct card_s *card; card 111 drivers/net/wan/pc300too.c #define get_port(card, port) ((port) < (card)->n_ports ? \ card 112 drivers/net/wan/pc300too.c (&(card)->ports[port]) : (NULL)) card 119 drivers/net/wan/pc300too.c card_t *card = port->card; card 120 drivers/net/wan/pc300too.c u32 __iomem * init_ctrl = &card->plxbase->init_ctrl; card 126 drivers/net/wan/pc300too.c port->card); card 151 drivers/net/wan/pc300too.c sca_out(rxs, msci + RXS, card); card 152 drivers/net/wan/pc300too.c sca_out(txs, msci + TXS, card); card 155 drivers/net/wan/pc300too.c if (port->card->type == PC300_RSV) { card 157 drivers/net/wan/pc300too.c writel(card->init_ctrl_value | card 160 drivers/net/wan/pc300too.c writel(card->init_ctrl_value & card 220 drivers/net/wan/pc300too.c if (port->card->type == PC300_X21 && card 225 drivers/net/wan/pc300too.c else if (port->card->type == PC300_RSV && card 230 drivers/net/wan/pc300too.c else if (port->card->type == PC300_RSV && card 263 drivers/net/wan/pc300too.c card_t *card = pci_get_drvdata(pdev); card 266 drivers/net/wan/pc300too.c if (card->ports[i].card) card 267 drivers/net/wan/pc300too.c unregister_hdlc_device(card->ports[i].netdev); card 269 drivers/net/wan/pc300too.c if (card->irq) card 270 drivers/net/wan/pc300too.c free_irq(card->irq, card); card 272 drivers/net/wan/pc300too.c if (card->rambase) card 273 drivers/net/wan/pc300too.c iounmap(card->rambase); card 274 drivers/net/wan/pc300too.c if (card->scabase) card 275 drivers/net/wan/pc300too.c iounmap(card->scabase); card 276 drivers/net/wan/pc300too.c if (card->plxbase) card 277 drivers/net/wan/pc300too.c iounmap(card->plxbase); card 281 drivers/net/wan/pc300too.c if (card->ports[0].netdev) card 282 drivers/net/wan/pc300too.c free_netdev(card->ports[0].netdev); card 283 drivers/net/wan/pc300too.c if (card->ports[1].netdev) card 284 drivers/net/wan/pc300too.c free_netdev(card->ports[1].netdev); card 285 drivers/net/wan/pc300too.c kfree(card); card 298 drivers/net/wan/pc300too.c card_t *card; card 316 drivers/net/wan/pc300too.c card = kzalloc(sizeof(card_t), GFP_KERNEL); card 317 drivers/net/wan/pc300too.c if (card == NULL) { card 322 drivers/net/wan/pc300too.c pci_set_drvdata(pdev, card); card 333 drivers/net/wan/pc300too.c card->plxbase = ioremap(plxphys, PC300_PLX_SIZE); card 336 drivers/net/wan/pc300too.c card->scabase = ioremap(scaphys, PC300_SCA_SIZE); card 339 drivers/net/wan/pc300too.c card->rambase = pci_ioremap_bar(pdev, 3); card 341 drivers/net/wan/pc300too.c if (card->plxbase == NULL || card 342 drivers/net/wan/pc300too.c card->scabase == NULL || card 343 drivers/net/wan/pc300too.c card->rambase == NULL) { card 351 drivers/net/wan/pc300too.c card->init_ctrl_value = readl(&((plx9050 __iomem *)card->scabase)->init_ctrl); card 356 drivers/net/wan/pc300too.c card->type = PC300_TE; /* not fully supported */ card 357 drivers/net/wan/pc300too.c else if (card->init_ctrl_value & PC300_CTYPE_MASK) card 358 drivers/net/wan/pc300too.c card->type = PC300_X21; card 360 drivers/net/wan/pc300too.c card->type = PC300_RSV; card 364 drivers/net/wan/pc300too.c card->n_ports = 1; card 366 drivers/net/wan/pc300too.c card->n_ports = 2; card 368 drivers/net/wan/pc300too.c for (i = 0; i < card->n_ports; i++) card 369 drivers/net/wan/pc300too.c if (!(card->ports[i].netdev = alloc_hdlcdev(&card->ports[i]))) { card 376 drivers/net/wan/pc300too.c p = &card->plxbase->init_ctrl; card 377 drivers/net/wan/pc300too.c writel(card->init_ctrl_value | 0x40000000, p); card 381 drivers/net/wan/pc300too.c writel(card->init_ctrl_value, p); card 386 drivers/net/wan/pc300too.c writel(card->init_ctrl_value | 0x20000000, p); card 390 drivers/net/wan/pc300too.c writel(card->init_ctrl_value, p); card 394 drivers/net/wan/pc300too.c ramsize = sca_detect_ram(card, card->rambase, card 398 drivers/net/wan/pc300too.c card->init_ctrl_value &= ~PC300_CLKSEL_MASK; card 400 drivers/net/wan/pc300too.c card->init_ctrl_value |= PC300_CLKSEL_MASK; card 402 drivers/net/wan/pc300too.c writel(card->init_ctrl_value, &card->plxbase->init_ctrl); card 404 drivers/net/wan/pc300too.c i = ramsize / (card->n_ports * (sizeof(pkt_desc) + HDLC_MAX_MRU)); card 405 drivers/net/wan/pc300too.c card->tx_ring_buffers = min(i / 2, MAX_TX_BUFFERS); card 406 drivers/net/wan/pc300too.c card->rx_ring_buffers = i - card->tx_ring_buffers; card 408 drivers/net/wan/pc300too.c card->buff_offset = card->n_ports * sizeof(pkt_desc) * card 409 drivers/net/wan/pc300too.c (card->tx_ring_buffers + card->rx_ring_buffers); card 412 drivers/net/wan/pc300too.c card->type == PC300_X21 ? "X21" : card 413 drivers/net/wan/pc300too.c card->type == PC300_TE ? "TE" : "RSV", card 415 drivers/net/wan/pc300too.c card->tx_ring_buffers, card->rx_ring_buffers); card 417 drivers/net/wan/pc300too.c if (card->tx_ring_buffers < 1) { card 424 drivers/net/wan/pc300too.c writew(0x0041, &card->plxbase->intr_ctrl_stat); card 427 drivers/net/wan/pc300too.c if (request_irq(pdev->irq, sca_intr, IRQF_SHARED, "pc300", card)) { card 432 drivers/net/wan/pc300too.c card->irq = pdev->irq; card 434 drivers/net/wan/pc300too.c sca_init(card, 0); card 439 drivers/net/wan/pc300too.c sca_out(0x10, BTCR, card); card 441 drivers/net/wan/pc300too.c for (i = 0; i < card->n_ports; i++) { card 442 drivers/net/wan/pc300too.c port_t *port = &card->ports[i]; card 448 drivers/net/wan/pc300too.c dev->irq = card->irq; card 456 drivers/net/wan/pc300too.c port->card = card; card 457 drivers/net/wan/pc300too.c if (card->type == PC300_X21) card 465 drivers/net/wan/pc300too.c port->card = NULL; card 66 drivers/net/wan/pci200syn.c struct card_s *card; card 94 drivers/net/wan/pci200syn.c #define get_port(card, port) (&card->ports[port]) card 95 drivers/net/wan/pci200syn.c #define sca_flush(card) (sca_in(IER0, card)); card 118 drivers/net/wan/pci200syn.c card_t *card = port->card; card 124 drivers/net/wan/pci200syn.c port->card); card 149 drivers/net/wan/pci200syn.c sca_out(rxs, msci + RXS, card); card 150 drivers/net/wan/pci200syn.c sca_out(txs, msci + TXS, card); card 166 drivers/net/wan/pci200syn.c sca_flush(port->card); card 175 drivers/net/wan/pci200syn.c sca_flush(dev_to_port(dev)->card); card 228 drivers/net/wan/pci200syn.c sca_flush(port->card); card 241 drivers/net/wan/pci200syn.c card_t *card = pci_get_drvdata(pdev); card 244 drivers/net/wan/pci200syn.c if (card->ports[i].card) card 245 drivers/net/wan/pci200syn.c unregister_hdlc_device(card->ports[i].netdev); card 247 drivers/net/wan/pci200syn.c if (card->irq) card 248 drivers/net/wan/pci200syn.c free_irq(card->irq, card); card 250 drivers/net/wan/pci200syn.c if (card->rambase) card 251 drivers/net/wan/pci200syn.c iounmap(card->rambase); card 252 drivers/net/wan/pci200syn.c if (card->scabase) card 253 drivers/net/wan/pci200syn.c iounmap(card->scabase); card 254 drivers/net/wan/pci200syn.c if (card->plxbase) card 255 drivers/net/wan/pci200syn.c iounmap(card->plxbase); card 259 drivers/net/wan/pci200syn.c if (card->ports[0].netdev) card 260 drivers/net/wan/pci200syn.c free_netdev(card->ports[0].netdev); card 261 drivers/net/wan/pci200syn.c if (card->ports[1].netdev) card 262 drivers/net/wan/pci200syn.c free_netdev(card->ports[1].netdev); card 263 drivers/net/wan/pci200syn.c kfree(card); card 276 drivers/net/wan/pci200syn.c card_t *card; card 294 drivers/net/wan/pci200syn.c card = kzalloc(sizeof(card_t), GFP_KERNEL); card 295 drivers/net/wan/pci200syn.c if (card == NULL) { card 300 drivers/net/wan/pci200syn.c pci_set_drvdata(pdev, card); card 301 drivers/net/wan/pci200syn.c card->ports[0].netdev = alloc_hdlcdev(&card->ports[0]); card 302 drivers/net/wan/pci200syn.c card->ports[1].netdev = alloc_hdlcdev(&card->ports[1]); card 303 drivers/net/wan/pci200syn.c if (!card->ports[0].netdev || !card->ports[1].netdev) { card 318 drivers/net/wan/pci200syn.c card->plxbase = ioremap(plxphys, PCI200SYN_PLX_SIZE); card 321 drivers/net/wan/pci200syn.c card->scabase = ioremap(scaphys, PCI200SYN_SCA_SIZE); card 324 drivers/net/wan/pci200syn.c card->rambase = pci_ioremap_bar(pdev, 3); card 326 drivers/net/wan/pci200syn.c if (card->plxbase == NULL || card 327 drivers/net/wan/pci200syn.c card->scabase == NULL || card 328 drivers/net/wan/pci200syn.c card->rambase == NULL) { card 335 drivers/net/wan/pci200syn.c p = &card->plxbase->init_ctrl; card 344 drivers/net/wan/pci200syn.c ramsize = sca_detect_ram(card, card->rambase, card 349 drivers/net/wan/pci200syn.c card->tx_ring_buffers = min(i / 2, MAX_TX_BUFFERS); card 350 drivers/net/wan/pci200syn.c card->rx_ring_buffers = i - card->tx_ring_buffers; card 352 drivers/net/wan/pci200syn.c card->buff_offset = 2 * sizeof(pkt_desc) * (card->tx_ring_buffers + card 353 drivers/net/wan/pci200syn.c card->rx_ring_buffers); card 357 drivers/net/wan/pci200syn.c pdev->irq, card->tx_ring_buffers, card->rx_ring_buffers); card 359 drivers/net/wan/pci200syn.c if (card->tx_ring_buffers < 1) { card 366 drivers/net/wan/pci200syn.c p = &card->plxbase->intr_ctrl_stat; card 370 drivers/net/wan/pci200syn.c if (request_irq(pdev->irq, sca_intr, IRQF_SHARED, "pci200syn", card)) { card 375 drivers/net/wan/pci200syn.c card->irq = pdev->irq; card 377 drivers/net/wan/pci200syn.c sca_init(card, 0); card 380 drivers/net/wan/pci200syn.c port_t *port = &card->ports[i]; card 386 drivers/net/wan/pci200syn.c dev->irq = card->irq; card 394 drivers/net/wan/pci200syn.c port->card = card; card 398 drivers/net/wan/pci200syn.c port->card = NULL; card 406 drivers/net/wan/pci200syn.c sca_flush(card); card 56 drivers/net/wan/wanxl.c struct card *card; card 94 drivers/net/wan/wanxl.c return &port->card->status->port_status[port->node]; card 183 drivers/net/wan/wanxl.c pci_unmap_single(port->card->pdev, desc->address, skb->len, card 193 drivers/net/wan/wanxl.c static inline void wanxl_rx_intr(struct card *card) card 196 drivers/net/wan/wanxl.c while (desc = &card->status->rx_descs[card->rx_in], card 198 drivers/net/wan/wanxl.c if ((desc->stat & PACKET_PORT_MASK) > card->n_ports) card 200 drivers/net/wan/wanxl.c pci_name(card->pdev)); card 202 drivers/net/wan/wanxl.c struct sk_buff *skb = card->rx_skbs[card->rx_in]; card 203 drivers/net/wan/wanxl.c struct port *port = &card->ports[desc->stat & card 210 drivers/net/wan/wanxl.c pci_unmap_single(card->pdev, desc->address, card 230 drivers/net/wan/wanxl.c pci_map_single(card->pdev, skb->data, card 233 drivers/net/wan/wanxl.c card->rx_skbs[card->rx_in] = skb; card 237 drivers/net/wan/wanxl.c card->rx_in = (card->rx_in + 1) % RX_QUEUE_LENGTH; card 245 drivers/net/wan/wanxl.c struct card *card = dev_id; card 251 drivers/net/wan/wanxl.c while((stat = readl(card->plx + PLX_DOORBELL_FROM_CARD)) != 0) { card 253 drivers/net/wan/wanxl.c writel(stat, card->plx + PLX_DOORBELL_FROM_CARD); card 255 drivers/net/wan/wanxl.c for (i = 0; i < card->n_ports; i++) { card 257 drivers/net/wan/wanxl.c wanxl_tx_intr(&card->ports[i]); card 259 drivers/net/wan/wanxl.c wanxl_cable_intr(&card->ports[i]); card 262 drivers/net/wan/wanxl.c wanxl_rx_intr(card); card 294 drivers/net/wan/wanxl.c desc->address = pci_map_single(port->card->pdev, skb->data, skb->len, card 299 drivers/net/wan/wanxl.c port->card->plx + PLX_DOORBELL_TO_CARD); card 394 drivers/net/wan/wanxl.c u8 __iomem *dbr = port->card->plx + PLX_DOORBELL_TO_CARD; card 436 drivers/net/wan/wanxl.c port->card->plx + PLX_DOORBELL_TO_CARD); card 454 drivers/net/wan/wanxl.c pci_unmap_single(port->card->pdev, desc->address, card 478 drivers/net/wan/wanxl.c static int wanxl_puts_command(struct card *card, u32 cmd) card 482 drivers/net/wan/wanxl.c writel(cmd, card->plx + PLX_MAILBOX_1); card 484 drivers/net/wan/wanxl.c if (readl(card->plx + PLX_MAILBOX_1) == 0) card 495 drivers/net/wan/wanxl.c static void wanxl_reset(struct card *card) card 497 drivers/net/wan/wanxl.c u32 old_value = readl(card->plx + PLX_CONTROL) & ~PLX_CTL_RESET; card 499 drivers/net/wan/wanxl.c writel(0x80, card->plx + PLX_MAILBOX_0); card 500 drivers/net/wan/wanxl.c writel(old_value | PLX_CTL_RESET, card->plx + PLX_CONTROL); card 501 drivers/net/wan/wanxl.c readl(card->plx + PLX_CONTROL); /* wait for posted write */ card 503 drivers/net/wan/wanxl.c writel(old_value, card->plx + PLX_CONTROL); card 504 drivers/net/wan/wanxl.c readl(card->plx + PLX_CONTROL); /* wait for posted write */ card 511 drivers/net/wan/wanxl.c struct card *card = pci_get_drvdata(pdev); card 514 drivers/net/wan/wanxl.c for (i = 0; i < card->n_ports; i++) { card 515 drivers/net/wan/wanxl.c unregister_hdlc_device(card->ports[i].dev); card 516 drivers/net/wan/wanxl.c free_netdev(card->ports[i].dev); card 520 drivers/net/wan/wanxl.c if (card->irq) card 521 drivers/net/wan/wanxl.c free_irq(card->irq, card); card 523 drivers/net/wan/wanxl.c wanxl_reset(card); card 526 drivers/net/wan/wanxl.c if (card->rx_skbs[i]) { card 527 drivers/net/wan/wanxl.c pci_unmap_single(card->pdev, card 528 drivers/net/wan/wanxl.c card->status->rx_descs[i].address, card 530 drivers/net/wan/wanxl.c dev_kfree_skb(card->rx_skbs[i]); card 533 drivers/net/wan/wanxl.c if (card->plx) card 534 drivers/net/wan/wanxl.c iounmap(card->plx); card 536 drivers/net/wan/wanxl.c if (card->status) card 538 drivers/net/wan/wanxl.c card->status, card->status_address); card 542 drivers/net/wan/wanxl.c kfree(card); card 559 drivers/net/wan/wanxl.c struct card *card; card 601 drivers/net/wan/wanxl.c card = kzalloc(struct_size(card, ports, ports), GFP_KERNEL); card 602 drivers/net/wan/wanxl.c if (card == NULL) { card 608 drivers/net/wan/wanxl.c pci_set_drvdata(pdev, card); card 609 drivers/net/wan/wanxl.c card->pdev = pdev; card 611 drivers/net/wan/wanxl.c card->status = pci_alloc_consistent(pdev, card 613 drivers/net/wan/wanxl.c &card->status_address); card 614 drivers/net/wan/wanxl.c if (card->status == NULL) { card 622 drivers/net/wan/wanxl.c (unsigned long long)card->status_address); card 638 drivers/net/wan/wanxl.c card->plx = ioremap_nocache(plx_phy, 0x70); card 639 drivers/net/wan/wanxl.c if (!card->plx) { card 646 drivers/net/wan/wanxl.c wanxl_reset(card); card 650 drivers/net/wan/wanxl.c while ((stat = readl(card->plx + PLX_MAILBOX_0)) != 0) { card 674 drivers/net/wan/wanxl.c ramsize = readl(card->plx + PLX_MAILBOX_2) & MBX2_MEMSZ_MASK; card 691 drivers/net/wan/wanxl.c if (wanxl_puts_command(card, MBX1_CMD_BSWAP)) { card 699 drivers/net/wan/wanxl.c card->rx_skbs[i] = skb; card 701 drivers/net/wan/wanxl.c card->status->rx_descs[i].address = card 702 drivers/net/wan/wanxl.c pci_map_single(card->pdev, skb->data, card 718 drivers/net/wan/wanxl.c writel(card->status_address + card 719 drivers/net/wan/wanxl.c (void *)&card->status->port_status[i] - card 720 drivers/net/wan/wanxl.c (void *)card->status, mem + PDM_OFFSET + 4 + i * 4); card 721 drivers/net/wan/wanxl.c writel(card->status_address, mem + PDM_OFFSET + 20); card 725 drivers/net/wan/wanxl.c writel(0, card->plx + PLX_MAILBOX_5); card 727 drivers/net/wan/wanxl.c if (wanxl_puts_command(card, MBX1_CMD_ABORTJ)) { card 735 drivers/net/wan/wanxl.c if ((stat = readl(card->plx + PLX_MAILBOX_5)) != 0) card 755 drivers/net/wan/wanxl.c if (request_irq(pdev->irq, wanxl_intr, IRQF_SHARED, "wanXL", card)) { card 761 drivers/net/wan/wanxl.c card->irq = pdev->irq; card 765 drivers/net/wan/wanxl.c struct port *port = &card->ports[i]; card 781 drivers/net/wan/wanxl.c port->card = card; card 791 drivers/net/wan/wanxl.c card->n_ports++; card 797 drivers/net/wan/wanxl.c i ? "," : "", i, card->ports[i].dev->name); card 801 drivers/net/wan/wanxl.c wanxl_cable_intr(&card->ports[i]); /* get carrier status etc.*/ card 94 drivers/net/wireless/ath/ath10k/sdio.c static int ath10k_sdio_func0_cmd52_wr_byte(struct mmc_card *card, card 105 drivers/net/wireless/ath/ath10k/sdio.c return mmc_wait_for_cmd(card->host, &io_cmd, 0); card 108 drivers/net/wireless/ath/ath10k/sdio.c static int ath10k_sdio_func0_cmd52_rd_byte(struct mmc_card *card, card 120 drivers/net/wireless/ath/ath10k/sdio.c ret = mmc_wait_for_cmd(card->host, &io_cmd, 0); card 139 drivers/net/wireless/ath/ath10k/sdio.c ret = ath10k_sdio_func0_cmd52_rd_byte(func->card, card 147 drivers/net/wireless/ath/ath10k/sdio.c ret = ath10k_sdio_func0_cmd52_wr_byte(func->card, card 153 drivers/net/wireless/ath/ath10k/sdio.c func->card, card 161 drivers/net/wireless/ath/ath10k/sdio.c ret = ath10k_sdio_func0_cmd52_wr_byte(func->card, card 170 drivers/net/wireless/ath/ath10k/sdio.c ret = ath10k_sdio_func0_cmd52_rd_byte(func->card, card 176 drivers/net/wireless/ath/ath10k/sdio.c ret = ath10k_sdio_func0_cmd52_wr_byte(func->card, card 186 drivers/net/wireless/ath/ath10k/sdio.c ret = ath10k_sdio_func0_cmd52_rd_byte(func->card, card 193 drivers/net/wireless/ath/ath10k/sdio.c ret = ath10k_sdio_func0_cmd52_wr_byte(func->card, card 1462 drivers/net/wireless/ath/ath10k/sdio.c ret = mmc_hw_reset(ar_sdio->func->card->host); card 136 drivers/net/wireless/ath/ath6kl/sdio.c static int ath6kl_sdio_func0_cmd52_wr_byte(struct mmc_card *card, card 147 drivers/net/wireless/ath/ath6kl/sdio.c return mmc_wait_for_cmd(card->host, &io_cmd, 0); card 316 drivers/net/wireless/ath/ath6kl/sdio.c mmc_set_data_timeout(&data, ar_sdio->func->card); card 325 drivers/net/wireless/ath/ath6kl/sdio.c mmc_wait_for_req(ar_sdio->func->card->host, &mmc_req); card 744 drivers/net/wireless/ath/ath6kl/sdio.c if (ar_sdio->func->card->host->max_segs < MAX_SCATTER_ENTRIES_PER_REQ) { card 746 drivers/net/wireless/ath/ath6kl/sdio.c ar_sdio->func->card->host->max_segs, card 805 drivers/net/wireless/ath/ath6kl/sdio.c ret = ath6kl_sdio_func0_cmd52_wr_byte(func->card, card 923 drivers/net/wireless/ath/ath6kl/sdio.c if (func->card && func->card->host) card 924 drivers/net/wireless/ath/ath6kl/sdio.c func->card->host->pm_flags &= ~MMC_PM_KEEP_POWER; card 441 drivers/net/wireless/atmel/atmel.c void *card; /* Bus dependent structure varies for PCcard */ card 807 drivers/net/wireless/atmel/atmel.c if (priv->card && priv->present_callback && card 808 drivers/net/wireless/atmel/atmel.c !(*priv->present_callback)(priv->card)) { card 1173 drivers/net/wireless/atmel/atmel.c if (priv->card && priv->present_callback && card 1174 drivers/net/wireless/atmel/atmel.c !(*priv->present_callback)(priv->card)) card 1499 drivers/net/wireless/atmel/atmel.c int (*card_present)(void *), void *card) card 1519 drivers/net/wireless/atmel/atmel.c priv->card = card; card 3427 drivers/net/wireless/atmel/atmel.c if (priv->card && priv->present_callback && card 3428 drivers/net/wireless/atmel/atmel.c !(*priv->present_callback)(priv->card)) card 197 drivers/net/wireless/atmel/atmel_cs.c #define PCMCIA_DEVICE_MANF_CARD_INFO(manf, card, info) { \ card 201 drivers/net/wireless/atmel/atmel_cs.c .card_id = (card), \ card 350 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c mmc_set_data_timeout(md, func->card); card 351 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c mmc_wait_for_req(func->card->host, mr); card 759 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c host = func->card->host; card 891 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c pm_runtime_allow(sdiodev->func1->card->host->parent); card 943 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c brcmf_sdiod_host_fixup(sdiodev->func2->card->host); card 1008 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c func->card->quirks |= MMC_QUIRK_LENIENT_FN0; card 1033 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c sdiodev->func1 = func->card->sdio_func[0]; card 40 drivers/net/wireless/intersil/orinoco/airport.c struct airport *card = priv->card; card 56 drivers/net/wireless/intersil/orinoco/airport.c disable_irq(card->irq); card 68 drivers/net/wireless/intersil/orinoco/airport.c struct airport *card = priv->card; card 78 drivers/net/wireless/intersil/orinoco/airport.c enable_irq(card->irq); card 91 drivers/net/wireless/intersil/orinoco/airport.c struct airport *card = priv->card; card 93 drivers/net/wireless/intersil/orinoco/airport.c if (card->ndev_registered) card 95 drivers/net/wireless/intersil/orinoco/airport.c card->ndev_registered = 0; card 97 drivers/net/wireless/intersil/orinoco/airport.c if (card->irq_requested) card 98 drivers/net/wireless/intersil/orinoco/airport.c free_irq(card->irq, priv); card 99 drivers/net/wireless/intersil/orinoco/airport.c card->irq_requested = 0; card 101 drivers/net/wireless/intersil/orinoco/airport.c if (card->vaddr) card 102 drivers/net/wireless/intersil/orinoco/airport.c iounmap(card->vaddr); card 103 drivers/net/wireless/intersil/orinoco/airport.c card->vaddr = NULL; card 124 drivers/net/wireless/intersil/orinoco/airport.c struct airport *card = priv->card; card 131 drivers/net/wireless/intersil/orinoco/airport.c disable_irq(card->irq); card 134 drivers/net/wireless/intersil/orinoco/airport.c macio_get_of_node(card->mdev), 0, 0); card 137 drivers/net/wireless/intersil/orinoco/airport.c macio_get_of_node(card->mdev), 0, 1); card 140 drivers/net/wireless/intersil/orinoco/airport.c enable_irq(card->irq); card 151 drivers/net/wireless/intersil/orinoco/airport.c struct airport *card; card 161 drivers/net/wireless/intersil/orinoco/airport.c priv = alloc_orinocodev(sizeof(*card), &mdev->ofdev.dev, card 167 drivers/net/wireless/intersil/orinoco/airport.c card = priv->card; card 170 drivers/net/wireless/intersil/orinoco/airport.c card->mdev = mdev; card 181 drivers/net/wireless/intersil/orinoco/airport.c card->irq = macio_irq(mdev, 0); card 184 drivers/net/wireless/intersil/orinoco/airport.c card->vaddr = ioremap(phys_addr, AIRPORT_IO_LEN); card 185 drivers/net/wireless/intersil/orinoco/airport.c if (!card->vaddr) { card 190 drivers/net/wireless/intersil/orinoco/airport.c hermes_struct_init(hw, card->vaddr, HERMES_16BIT_REGSPACING); card 200 drivers/net/wireless/intersil/orinoco/airport.c if (request_irq(card->irq, orinoco_interrupt, 0, DRIVER_NAME, priv)) { card 201 drivers/net/wireless/intersil/orinoco/airport.c printk(KERN_ERR PFX "Couldn't get IRQ %d\n", card->irq); card 204 drivers/net/wireless/intersil/orinoco/airport.c card->irq_requested = 1; card 213 drivers/net/wireless/intersil/orinoco/airport.c if (orinoco_if_add(priv, phys_addr, card->irq, NULL) != 0) { card 217 drivers/net/wireless/intersil/orinoco/airport.c card->ndev_registered = 1; card 2176 drivers/net/wireless/intersil/orinoco/main.c priv->card = (void *)((unsigned long)priv card 2179 drivers/net/wireless/intersil/orinoco/main.c priv->card = NULL; card 61 drivers/net/wireless/intersil/orinoco/orinoco.h void *card; /* Pointer to card dependent structure */ card 73 drivers/net/wireless/intersil/orinoco/orinoco_cs.c struct orinoco_pccard *card = priv->card; card 74 drivers/net/wireless/intersil/orinoco/orinoco_cs.c struct pcmcia_device *link = card->p_dev; card 78 drivers/net/wireless/intersil/orinoco/orinoco_cs.c set_bit(0, &card->hard_reset_in_progress); card 85 drivers/net/wireless/intersil/orinoco/orinoco_cs.c clear_bit(0, &card->hard_reset_in_progress); card 98 drivers/net/wireless/intersil/orinoco/orinoco_cs.c struct orinoco_pccard *card; card 100 drivers/net/wireless/intersil/orinoco/orinoco_cs.c priv = alloc_orinocodev(sizeof(*card), &link->dev, card 104 drivers/net/wireless/intersil/orinoco/orinoco_cs.c card = priv->card; card 107 drivers/net/wireless/intersil/orinoco/orinoco_cs.c card->p_dev = link; card 212 drivers/net/wireless/intersil/orinoco/orinoco_cs.c struct orinoco_pccard *card = priv->card; card 217 drivers/net/wireless/intersil/orinoco/orinoco_cs.c if (!test_bit(0, &card->hard_reset_in_progress)) card 226 drivers/net/wireless/intersil/orinoco/orinoco_cs.c struct orinoco_pccard *card = priv->card; card 229 drivers/net/wireless/intersil/orinoco/orinoco_cs.c if (!test_bit(0, &card->hard_reset_in_progress)) card 67 drivers/net/wireless/intersil/orinoco/orinoco_nortel.c struct orinoco_pci_card *card = priv->card; card 70 drivers/net/wireless/intersil/orinoco/orinoco_nortel.c iowrite16(8, card->bridge_io + 2); card 71 drivers/net/wireless/intersil/orinoco/orinoco_nortel.c ioread16(card->attr_io + COR_OFFSET); card 72 drivers/net/wireless/intersil/orinoco/orinoco_nortel.c iowrite16(0x80, card->attr_io + COR_OFFSET); card 76 drivers/net/wireless/intersil/orinoco/orinoco_nortel.c iowrite16(0, card->attr_io + COR_OFFSET); card 77 drivers/net/wireless/intersil/orinoco/orinoco_nortel.c iowrite16(0, card->attr_io + COR_OFFSET); card 81 drivers/net/wireless/intersil/orinoco/orinoco_nortel.c iowrite16(COR_VALUE, card->attr_io + COR_OFFSET); card 82 drivers/net/wireless/intersil/orinoco/orinoco_nortel.c iowrite16(COR_VALUE, card->attr_io + COR_OFFSET); card 85 drivers/net/wireless/intersil/orinoco/orinoco_nortel.c iowrite16(0x228, card->bridge_io + 2); card 90 drivers/net/wireless/intersil/orinoco/orinoco_nortel.c static int orinoco_nortel_hw_init(struct orinoco_pci_card *card) card 96 drivers/net/wireless/intersil/orinoco/orinoco_nortel.c if (ioread16(card->bridge_io) & 1) { card 100 drivers/net/wireless/intersil/orinoco/orinoco_nortel.c iowrite16(0x118, card->bridge_io + 2); card 101 drivers/net/wireless/intersil/orinoco/orinoco_nortel.c iowrite16(0x108, card->bridge_io + 2); card 103 drivers/net/wireless/intersil/orinoco/orinoco_nortel.c iowrite16(0x8, card->bridge_io + 2); card 106 drivers/net/wireless/intersil/orinoco/orinoco_nortel.c if (ioread16(card->bridge_io) & 0x10) card 113 drivers/net/wireless/intersil/orinoco/orinoco_nortel.c if (ioread16(card->attr_io + COR_OFFSET) & 1) { card 117 drivers/net/wireless/intersil/orinoco/orinoco_nortel.c if (ioread16(card->attr_io + COR_OFFSET + 2) & 1) { card 121 drivers/net/wireless/intersil/orinoco/orinoco_nortel.c if (ioread16(card->attr_io + COR_OFFSET + 4) & 1) { card 127 drivers/net/wireless/intersil/orinoco/orinoco_nortel.c iowrite16(COR_VALUE, card->attr_io + COR_OFFSET); card 129 drivers/net/wireless/intersil/orinoco/orinoco_nortel.c reg = ioread16(card->attr_io + COR_OFFSET); card 137 drivers/net/wireless/intersil/orinoco/orinoco_nortel.c iowrite16(1, card->bridge_io + 10); card 146 drivers/net/wireless/intersil/orinoco/orinoco_nortel.c struct orinoco_pci_card *card; card 183 drivers/net/wireless/intersil/orinoco/orinoco_nortel.c priv = alloc_orinocodev(sizeof(*card), &pdev->dev, card 191 drivers/net/wireless/intersil/orinoco/orinoco_nortel.c card = priv->card; card 192 drivers/net/wireless/intersil/orinoco/orinoco_nortel.c card->bridge_io = bridge_io; card 193 drivers/net/wireless/intersil/orinoco/orinoco_nortel.c card->attr_io = attr_io; card 205 drivers/net/wireless/intersil/orinoco/orinoco_nortel.c err = orinoco_nortel_hw_init(card); card 262 drivers/net/wireless/intersil/orinoco/orinoco_nortel.c struct orinoco_pci_card *card = priv->card; card 265 drivers/net/wireless/intersil/orinoco/orinoco_nortel.c iowrite16(0, card->bridge_io + 10); card 272 drivers/net/wireless/intersil/orinoco/orinoco_nortel.c pci_iounmap(pdev, card->attr_io); card 273 drivers/net/wireless/intersil/orinoco/orinoco_nortel.c pci_iounmap(pdev, card->bridge_io); card 118 drivers/net/wireless/intersil/orinoco/orinoco_pci.c struct orinoco_pci_card *card; card 141 drivers/net/wireless/intersil/orinoco/orinoco_pci.c priv = alloc_orinocodev(sizeof(*card), &pdev->dev, card 149 drivers/net/wireless/intersil/orinoco/orinoco_pci.c card = priv->card; card 113 drivers/net/wireless/intersil/orinoco/orinoco_plx.c struct orinoco_pci_card *card = priv->card; card 117 drivers/net/wireless/intersil/orinoco/orinoco_plx.c iowrite8(COR_VALUE | COR_RESET, card->attr_io + COR_OFFSET); card 120 drivers/net/wireless/intersil/orinoco/orinoco_plx.c iowrite8(COR_VALUE, card->attr_io + COR_OFFSET); card 140 drivers/net/wireless/intersil/orinoco/orinoco_plx.c static int orinoco_plx_hw_init(struct orinoco_pci_card *card) card 150 drivers/net/wireless/intersil/orinoco/orinoco_plx.c printk("%02X:", ioread8(card->attr_io + (i << 1))); card 156 drivers/net/wireless/intersil/orinoco/orinoco_plx.c if (cis_magic[i] != ioread8(card->attr_io + (i << 1))) { card 166 drivers/net/wireless/intersil/orinoco/orinoco_plx.c csr_reg = ioread32(card->bridge_io + PLX_INTCSR); card 169 drivers/net/wireless/intersil/orinoco/orinoco_plx.c iowrite32(csr_reg, card->bridge_io + PLX_INTCSR); card 170 drivers/net/wireless/intersil/orinoco/orinoco_plx.c csr_reg = ioread32(card->bridge_io + PLX_INTCSR); card 185 drivers/net/wireless/intersil/orinoco/orinoco_plx.c struct orinoco_pci_card *card; card 222 drivers/net/wireless/intersil/orinoco/orinoco_plx.c priv = alloc_orinocodev(sizeof(*card), &pdev->dev, card 230 drivers/net/wireless/intersil/orinoco/orinoco_plx.c card = priv->card; card 231 drivers/net/wireless/intersil/orinoco/orinoco_plx.c card->bridge_io = bridge_io; card 232 drivers/net/wireless/intersil/orinoco/orinoco_plx.c card->attr_io = attr_io; card 244 drivers/net/wireless/intersil/orinoco/orinoco_plx.c err = orinoco_plx_hw_init(card); card 301 drivers/net/wireless/intersil/orinoco/orinoco_plx.c struct orinoco_pci_card *card = priv->card; card 308 drivers/net/wireless/intersil/orinoco/orinoco_plx.c pci_iounmap(pdev, card->attr_io); card 309 drivers/net/wireless/intersil/orinoco/orinoco_plx.c pci_iounmap(pdev, card->bridge_io); card 63 drivers/net/wireless/intersil/orinoco/orinoco_tmd.c struct orinoco_pci_card *card = priv->card; card 67 drivers/net/wireless/intersil/orinoco/orinoco_tmd.c iowrite8(COR_VALUE | COR_RESET, card->bridge_io); card 70 drivers/net/wireless/intersil/orinoco/orinoco_tmd.c iowrite8(COR_VALUE, card->bridge_io); card 96 drivers/net/wireless/intersil/orinoco/orinoco_tmd.c struct orinoco_pci_card *card; card 126 drivers/net/wireless/intersil/orinoco/orinoco_tmd.c priv = alloc_orinocodev(sizeof(*card), &pdev->dev, card 134 drivers/net/wireless/intersil/orinoco/orinoco_tmd.c card = priv->card; card 135 drivers/net/wireless/intersil/orinoco/orinoco_tmd.c card->bridge_io = bridge_io; card 193 drivers/net/wireless/intersil/orinoco/orinoco_tmd.c struct orinoco_pci_card *card = priv->card; card 199 drivers/net/wireless/intersil/orinoco/orinoco_tmd.c pci_iounmap(pdev, card->bridge_io); card 1197 drivers/net/wireless/intersil/orinoco/orinoco_usb.c struct ezusb_priv *upriv = priv->card; card 1315 drivers/net/wireless/intersil/orinoco/orinoco_usb.c struct ezusb_priv *upriv = priv->card; card 1593 drivers/net/wireless/intersil/orinoco/orinoco_usb.c upriv = priv->card; card 133 drivers/net/wireless/intersil/orinoco/spectrum_cs.c struct orinoco_pccard *card = priv->card; card 134 drivers/net/wireless/intersil/orinoco/spectrum_cs.c struct pcmcia_device *link = card->p_dev; card 145 drivers/net/wireless/intersil/orinoco/spectrum_cs.c struct orinoco_pccard *card = priv->card; card 146 drivers/net/wireless/intersil/orinoco/spectrum_cs.c struct pcmcia_device *link = card->p_dev; card 159 drivers/net/wireless/intersil/orinoco/spectrum_cs.c struct orinoco_pccard *card; card 161 drivers/net/wireless/intersil/orinoco/spectrum_cs.c priv = alloc_orinocodev(sizeof(*card), &link->dev, card 166 drivers/net/wireless/intersil/orinoco/spectrum_cs.c card = priv->card; card 169 drivers/net/wireless/intersil/orinoco/spectrum_cs.c card->p_dev = link; card 46 drivers/net/wireless/marvell/libertas/decl.h struct lbs_private *lbs_add_card(void *card, struct device *dmdev); card 99 drivers/net/wireless/marvell/libertas/dev.h void *card; card 96 drivers/net/wireless/marvell/libertas/if_cs.c static inline unsigned int if_cs_read8(struct if_cs_card *card, uint reg) card 98 drivers/net/wireless/marvell/libertas/if_cs.c unsigned int val = ioread8(card->iobase + reg); card 103 drivers/net/wireless/marvell/libertas/if_cs.c static inline unsigned int if_cs_read16(struct if_cs_card *card, uint reg) card 105 drivers/net/wireless/marvell/libertas/if_cs.c unsigned int val = ioread16(card->iobase + reg); card 111 drivers/net/wireless/marvell/libertas/if_cs.c struct if_cs_card *card, card 119 drivers/net/wireless/marvell/libertas/if_cs.c ioread16_rep(card->iobase + reg, buf, count); card 122 drivers/net/wireless/marvell/libertas/if_cs.c static inline void if_cs_write8(struct if_cs_card *card, uint reg, u8 val) card 126 drivers/net/wireless/marvell/libertas/if_cs.c iowrite8(val, card->iobase + reg); card 129 drivers/net/wireless/marvell/libertas/if_cs.c static inline void if_cs_write16(struct if_cs_card *card, uint reg, u16 val) card 133 drivers/net/wireless/marvell/libertas/if_cs.c iowrite16(val, card->iobase + reg); card 137 drivers/net/wireless/marvell/libertas/if_cs.c struct if_cs_card *card, card 145 drivers/net/wireless/marvell/libertas/if_cs.c iowrite16_rep(card->iobase + reg, buf, count); card 161 drivers/net/wireless/marvell/libertas/if_cs.c static int if_cs_poll_while_fw_download(struct if_cs_card *card, uint addr, u8 reg) card 166 drivers/net/wireless/marvell/libertas/if_cs.c u8 val = if_cs_read8(card, addr); card 324 drivers/net/wireless/marvell/libertas/if_cs.c static inline void if_cs_enable_ints(struct if_cs_card *card) card 326 drivers/net/wireless/marvell/libertas/if_cs.c if_cs_write16(card, IF_CS_HOST_INT_MASK, 0); card 329 drivers/net/wireless/marvell/libertas/if_cs.c static inline void if_cs_disable_ints(struct if_cs_card *card) card 331 drivers/net/wireless/marvell/libertas/if_cs.c if_cs_write16(card, IF_CS_HOST_INT_MASK, IF_CS_BIT_MASK); card 339 drivers/net/wireless/marvell/libertas/if_cs.c struct if_cs_card *card = (struct if_cs_card *)priv->card; card 343 drivers/net/wireless/marvell/libertas/if_cs.c if_cs_disable_ints(card); card 347 drivers/net/wireless/marvell/libertas/if_cs.c u16 status = if_cs_read16(card, IF_CS_CARD_STATUS); card 357 drivers/net/wireless/marvell/libertas/if_cs.c if_cs_write16(card, IF_CS_CMD_LEN, nb); card 359 drivers/net/wireless/marvell/libertas/if_cs.c if_cs_write16_rep(card, IF_CS_CMD, buf, nb / 2); card 362 drivers/net/wireless/marvell/libertas/if_cs.c if_cs_write8(card, IF_CS_CMD, buf[nb-1]); card 366 drivers/net/wireless/marvell/libertas/if_cs.c if_cs_write16(card, IF_CS_HOST_STATUS, IF_CS_BIT_COMMAND); card 370 drivers/net/wireless/marvell/libertas/if_cs.c if_cs_write16(card, IF_CS_HOST_INT_CAUSE, IF_CS_BIT_COMMAND); card 374 drivers/net/wireless/marvell/libertas/if_cs.c if_cs_enable_ints(card); card 383 drivers/net/wireless/marvell/libertas/if_cs.c struct if_cs_card *card = (struct if_cs_card *)priv->card; card 386 drivers/net/wireless/marvell/libertas/if_cs.c if_cs_disable_ints(card); card 388 drivers/net/wireless/marvell/libertas/if_cs.c status = if_cs_read16(card, IF_CS_CARD_STATUS); card 391 drivers/net/wireless/marvell/libertas/if_cs.c if_cs_write16(card, IF_CS_WRITE_LEN, nb); card 394 drivers/net/wireless/marvell/libertas/if_cs.c if_cs_write16_rep(card, IF_CS_WRITE, buf, nb / 2); card 396 drivers/net/wireless/marvell/libertas/if_cs.c if_cs_write8(card, IF_CS_WRITE, buf[nb-1]); card 398 drivers/net/wireless/marvell/libertas/if_cs.c if_cs_write16(card, IF_CS_HOST_STATUS, IF_CS_BIT_TX); card 399 drivers/net/wireless/marvell/libertas/if_cs.c if_cs_write16(card, IF_CS_HOST_INT_CAUSE, IF_CS_BIT_TX); card 400 drivers/net/wireless/marvell/libertas/if_cs.c if_cs_enable_ints(card); card 413 drivers/net/wireless/marvell/libertas/if_cs.c status = if_cs_read16(priv->card, IF_CS_CARD_STATUS); card 420 drivers/net/wireless/marvell/libertas/if_cs.c *len = if_cs_read16(priv->card, IF_CS_RESP_LEN); card 429 drivers/net/wireless/marvell/libertas/if_cs.c if_cs_read16_rep(priv->card, IF_CS_RESP, data, *len/sizeof(u16)); card 431 drivers/net/wireless/marvell/libertas/if_cs.c data[*len-1] = if_cs_read8(priv->card, IF_CS_RESP); card 453 drivers/net/wireless/marvell/libertas/if_cs.c len = if_cs_read16(priv->card, IF_CS_READ_LEN); card 470 drivers/net/wireless/marvell/libertas/if_cs.c if_cs_read16_rep(priv->card, IF_CS_READ, data, len/sizeof(u16)); card 472 drivers/net/wireless/marvell/libertas/if_cs.c data[len-1] = if_cs_read8(priv->card, IF_CS_READ); card 475 drivers/net/wireless/marvell/libertas/if_cs.c if_cs_write16(priv->card, IF_CS_HOST_STATUS, IF_CS_BIT_RX); card 476 drivers/net/wireless/marvell/libertas/if_cs.c if_cs_write16(priv->card, IF_CS_HOST_INT_CAUSE, IF_CS_BIT_RX); card 484 drivers/net/wireless/marvell/libertas/if_cs.c struct if_cs_card *card = data; card 485 drivers/net/wireless/marvell/libertas/if_cs.c struct lbs_private *priv = card->priv; card 489 drivers/net/wireless/marvell/libertas/if_cs.c cause = if_cs_read16(card, IF_CS_CARD_INT_CAUSE); card 499 drivers/net/wireless/marvell/libertas/if_cs.c card->priv->surpriseremoved = 1; card 535 drivers/net/wireless/marvell/libertas/if_cs.c u16 status = if_cs_read16(priv->card, IF_CS_CARD_STATUS); card 536 drivers/net/wireless/marvell/libertas/if_cs.c if_cs_write16(priv->card, IF_CS_HOST_INT_CAUSE, card 542 drivers/net/wireless/marvell/libertas/if_cs.c if_cs_write16(card, IF_CS_CARD_INT_CAUSE, cause & IF_CS_BIT_MASK); card 559 drivers/net/wireless/marvell/libertas/if_cs.c static int if_cs_prog_helper(struct if_cs_card *card, const struct firmware *fw) card 570 drivers/net/wireless/marvell/libertas/if_cs.c if (card->align_regs) card 571 drivers/net/wireless/marvell/libertas/if_cs.c scratch = if_cs_read16(card, IF_CS_SCRATCH) >> 8; card 573 drivers/net/wireless/marvell/libertas/if_cs.c scratch = if_cs_read8(card, IF_CS_SCRATCH); card 604 drivers/net/wireless/marvell/libertas/if_cs.c if_cs_write16(card, IF_CS_CMD_LEN, count); card 608 drivers/net/wireless/marvell/libertas/if_cs.c if_cs_write16_rep(card, IF_CS_CMD, card 616 drivers/net/wireless/marvell/libertas/if_cs.c if_cs_write8(card, IF_CS_HOST_STATUS, IF_CS_BIT_COMMAND); card 622 drivers/net/wireless/marvell/libertas/if_cs.c if_cs_write16(card, IF_CS_HOST_INT_CAUSE, IF_CS_BIT_COMMAND); card 628 drivers/net/wireless/marvell/libertas/if_cs.c ret = if_cs_poll_while_fw_download(card, IF_CS_CARD_STATUS, card 647 drivers/net/wireless/marvell/libertas/if_cs.c static int if_cs_prog_real(struct if_cs_card *card, const struct firmware *fw) card 656 drivers/net/wireless/marvell/libertas/if_cs.c ret = if_cs_poll_while_fw_download(card, IF_CS_SQ_READ_LOW, card 664 drivers/net/wireless/marvell/libertas/if_cs.c len = if_cs_read16(card, IF_CS_SQ_READ_LOW); card 682 drivers/net/wireless/marvell/libertas/if_cs.c if_cs_write16(card, IF_CS_CMD_LEN, len); card 684 drivers/net/wireless/marvell/libertas/if_cs.c if_cs_write16_rep(card, IF_CS_CMD, card 687 drivers/net/wireless/marvell/libertas/if_cs.c if_cs_write8(card, IF_CS_HOST_STATUS, IF_CS_BIT_COMMAND); card 688 drivers/net/wireless/marvell/libertas/if_cs.c if_cs_write16(card, IF_CS_HOST_INT_CAUSE, IF_CS_BIT_COMMAND); card 690 drivers/net/wireless/marvell/libertas/if_cs.c ret = if_cs_poll_while_fw_download(card, IF_CS_CARD_STATUS, card 698 drivers/net/wireless/marvell/libertas/if_cs.c ret = if_cs_poll_while_fw_download(card, IF_CS_SCRATCH, 0x5a); card 710 drivers/net/wireless/marvell/libertas/if_cs.c struct if_cs_card *card = priv->card; card 718 drivers/net/wireless/marvell/libertas/if_cs.c ret = if_cs_prog_helper(card, helper); card 719 drivers/net/wireless/marvell/libertas/if_cs.c if (ret == 0 && (card->model != MODEL_8305)) card 720 drivers/net/wireless/marvell/libertas/if_cs.c ret = if_cs_prog_real(card, mainfw); card 725 drivers/net/wireless/marvell/libertas/if_cs.c ret = request_irq(card->p_dev->irq, if_cs_interrupt, card 726 drivers/net/wireless/marvell/libertas/if_cs.c IRQF_SHARED, DRV_NAME, card); card 736 drivers/net/wireless/marvell/libertas/if_cs.c if_cs_write16(card, IF_CS_CARD_INT_CAUSE, IF_CS_BIT_MASK); card 737 drivers/net/wireless/marvell/libertas/if_cs.c if_cs_enable_ints(card); card 743 drivers/net/wireless/marvell/libertas/if_cs.c free_irq(card->p_dev->irq, card); card 781 drivers/net/wireless/marvell/libertas/if_cs.c struct if_cs_card *card = p_dev->priv; card 783 drivers/net/wireless/marvell/libertas/if_cs.c free_irq(p_dev->irq, card); card 785 drivers/net/wireless/marvell/libertas/if_cs.c if (card->iobase) card 786 drivers/net/wireless/marvell/libertas/if_cs.c ioport_unmap(card->iobase); card 809 drivers/net/wireless/marvell/libertas/if_cs.c struct if_cs_card *card; card 811 drivers/net/wireless/marvell/libertas/if_cs.c card = kzalloc(sizeof(struct if_cs_card), GFP_KERNEL); card 812 drivers/net/wireless/marvell/libertas/if_cs.c if (!card) card 815 drivers/net/wireless/marvell/libertas/if_cs.c card->p_dev = p_dev; card 816 drivers/net/wireless/marvell/libertas/if_cs.c p_dev->priv = card; card 834 drivers/net/wireless/marvell/libertas/if_cs.c card->iobase = ioport_map(p_dev->resource[0]->start, card 836 drivers/net/wireless/marvell/libertas/if_cs.c if (!card->iobase) { card 855 drivers/net/wireless/marvell/libertas/if_cs.c card->align_regs = false; card 857 drivers/net/wireless/marvell/libertas/if_cs.c card->model = get_model(p_dev->manf_id, p_dev->card_id); card 858 drivers/net/wireless/marvell/libertas/if_cs.c if (card->model == MODEL_UNKNOWN) { card 866 drivers/net/wireless/marvell/libertas/if_cs.c prod_id = if_cs_read8(card, IF_CS_PRODUCT_ID); card 867 drivers/net/wireless/marvell/libertas/if_cs.c if (card->model == MODEL_8305) { card 868 drivers/net/wireless/marvell/libertas/if_cs.c card->align_regs = true; card 876 drivers/net/wireless/marvell/libertas/if_cs.c if ((card->model == MODEL_8381) && prod_id < IF_CS_CF8381_B3_REV) { card 882 drivers/net/wireless/marvell/libertas/if_cs.c if ((card->model == MODEL_8385) && prod_id < IF_CS_CF8385_B1_REV) { card 889 drivers/net/wireless/marvell/libertas/if_cs.c priv = lbs_add_card(card, &p_dev->dev); card 896 drivers/net/wireless/marvell/libertas/if_cs.c card->priv = priv; card 897 drivers/net/wireless/marvell/libertas/if_cs.c priv->card = card; card 904 drivers/net/wireless/marvell/libertas/if_cs.c ret = lbs_get_firmware_async(priv, &p_dev->dev, card->model, fw_table, card 916 drivers/net/wireless/marvell/libertas/if_cs.c ioport_unmap(card->iobase); card 926 drivers/net/wireless/marvell/libertas/if_cs.c struct if_cs_card *card = p_dev->priv; card 928 drivers/net/wireless/marvell/libertas/if_cs.c lbs_stop_card(card->priv); card 929 drivers/net/wireless/marvell/libertas/if_cs.c lbs_remove_card(card->priv); card 930 drivers/net/wireless/marvell/libertas/if_cs.c if_cs_disable_ints(card); card 932 drivers/net/wireless/marvell/libertas/if_cs.c kfree(card); card 130 drivers/net/wireless/marvell/libertas/if_sdio.c static void if_sdio_finish_power_on(struct if_sdio_card *card); card 131 drivers/net/wireless/marvell/libertas/if_sdio.c static int if_sdio_power_off(struct if_sdio_card *card); card 143 drivers/net/wireless/marvell/libertas/if_sdio.c static u16 if_sdio_read_scratch(struct if_sdio_card *card, int *err) card 148 drivers/net/wireless/marvell/libertas/if_sdio.c scratch = sdio_readb(card->func, card->scratch_reg, &ret); card 150 drivers/net/wireless/marvell/libertas/if_sdio.c scratch |= sdio_readb(card->func, card->scratch_reg + 1, card 162 drivers/net/wireless/marvell/libertas/if_sdio.c static u8 if_sdio_read_rx_unit(struct if_sdio_card *card) card 167 drivers/net/wireless/marvell/libertas/if_sdio.c rx_unit = sdio_readb(card->func, IF_SDIO_RX_UNIT, &ret); card 175 drivers/net/wireless/marvell/libertas/if_sdio.c static u16 if_sdio_read_rx_len(struct if_sdio_card *card, int *err) card 180 drivers/net/wireless/marvell/libertas/if_sdio.c switch (card->model) { card 183 drivers/net/wireless/marvell/libertas/if_sdio.c rx_len = if_sdio_read_scratch(card, &ret); card 187 drivers/net/wireless/marvell/libertas/if_sdio.c rx_len = sdio_readb(card->func, IF_SDIO_RX_LEN, &ret); card 189 drivers/net/wireless/marvell/libertas/if_sdio.c rx_len <<= card->rx_unit; card 202 drivers/net/wireless/marvell/libertas/if_sdio.c static int if_sdio_handle_cmd(struct if_sdio_card *card, card 205 drivers/net/wireless/marvell/libertas/if_sdio.c struct lbs_private *priv = card->priv; card 233 drivers/net/wireless/marvell/libertas/if_sdio.c static int if_sdio_handle_data(struct if_sdio_card *card, card 256 drivers/net/wireless/marvell/libertas/if_sdio.c lbs_process_rxed_packet(card->priv, skb); card 264 drivers/net/wireless/marvell/libertas/if_sdio.c static int if_sdio_handle_event(struct if_sdio_card *card, card 270 drivers/net/wireless/marvell/libertas/if_sdio.c if (card->model == MODEL_8385) { card 271 drivers/net/wireless/marvell/libertas/if_sdio.c event = sdio_readb(card->func, IF_SDIO_EVENT, &ret); card 290 drivers/net/wireless/marvell/libertas/if_sdio.c lbs_queue_event(card->priv, event & 0xFF); card 297 drivers/net/wireless/marvell/libertas/if_sdio.c static int if_sdio_wait_status(struct if_sdio_card *card, const u8 condition) card 305 drivers/net/wireless/marvell/libertas/if_sdio.c status = sdio_readb(card->func, IF_SDIO_STATUS, &ret); card 317 drivers/net/wireless/marvell/libertas/if_sdio.c static int if_sdio_card_to_host(struct if_sdio_card *card) card 322 drivers/net/wireless/marvell/libertas/if_sdio.c size = if_sdio_read_rx_len(card, &ret); card 333 drivers/net/wireless/marvell/libertas/if_sdio.c ret = if_sdio_wait_status(card, IF_SDIO_IO_RDY); card 342 drivers/net/wireless/marvell/libertas/if_sdio.c chunk = sdio_align_size(card->func, size); card 344 drivers/net/wireless/marvell/libertas/if_sdio.c ret = sdio_readsb(card->func, card->buffer, card->ioport, chunk); card 348 drivers/net/wireless/marvell/libertas/if_sdio.c chunk = card->buffer[0] | (card->buffer[1] << 8); card 349 drivers/net/wireless/marvell/libertas/if_sdio.c type = card->buffer[2] | (card->buffer[3] << 8); card 368 drivers/net/wireless/marvell/libertas/if_sdio.c ret = if_sdio_handle_cmd(card, card->buffer + 4, chunk - 4); card 373 drivers/net/wireless/marvell/libertas/if_sdio.c ret = if_sdio_handle_data(card, card->buffer + 4, chunk - 4); card 378 drivers/net/wireless/marvell/libertas/if_sdio.c ret = if_sdio_handle_event(card, card->buffer + 4, chunk - 4); card 398 drivers/net/wireless/marvell/libertas/if_sdio.c struct if_sdio_card *card; card 403 drivers/net/wireless/marvell/libertas/if_sdio.c card = container_of(work, struct if_sdio_card, packet_worker); card 406 drivers/net/wireless/marvell/libertas/if_sdio.c spin_lock_irqsave(&card->lock, flags); card 407 drivers/net/wireless/marvell/libertas/if_sdio.c packet = card->packets; card 409 drivers/net/wireless/marvell/libertas/if_sdio.c card->packets = packet->next; card 410 drivers/net/wireless/marvell/libertas/if_sdio.c spin_unlock_irqrestore(&card->lock, flags); card 415 drivers/net/wireless/marvell/libertas/if_sdio.c sdio_claim_host(card->func); card 417 drivers/net/wireless/marvell/libertas/if_sdio.c ret = if_sdio_wait_status(card, IF_SDIO_IO_RDY); card 419 drivers/net/wireless/marvell/libertas/if_sdio.c ret = sdio_writesb(card->func, card->ioport, card 426 drivers/net/wireless/marvell/libertas/if_sdio.c sdio_release_host(card->func); card 438 drivers/net/wireless/marvell/libertas/if_sdio.c static int if_sdio_prog_helper(struct if_sdio_card *card, card 454 drivers/net/wireless/marvell/libertas/if_sdio.c sdio_claim_host(card->func); card 456 drivers/net/wireless/marvell/libertas/if_sdio.c ret = sdio_set_block_size(card->func, 32); card 464 drivers/net/wireless/marvell/libertas/if_sdio.c ret = if_sdio_wait_status(card, FW_DL_READY_STATUS); card 480 drivers/net/wireless/marvell/libertas/if_sdio.c ret = sdio_writesb(card->func, card->ioport, card 491 drivers/net/wireless/marvell/libertas/if_sdio.c ret = sdio_writesb(card->func, card->ioport, chunk_buffer, 64); card 502 drivers/net/wireless/marvell/libertas/if_sdio.c req_size = sdio_readb(card->func, IF_SDIO_RD_BASE, &ret); card 506 drivers/net/wireless/marvell/libertas/if_sdio.c req_size |= sdio_readb(card->func, IF_SDIO_RD_BASE + 1, &ret) << 8; card 524 drivers/net/wireless/marvell/libertas/if_sdio.c sdio_release_host(card->func); card 534 drivers/net/wireless/marvell/libertas/if_sdio.c static int if_sdio_prog_real(struct if_sdio_card *card, card 550 drivers/net/wireless/marvell/libertas/if_sdio.c sdio_claim_host(card->func); card 552 drivers/net/wireless/marvell/libertas/if_sdio.c ret = sdio_set_block_size(card->func, 32); card 562 drivers/net/wireless/marvell/libertas/if_sdio.c ret = if_sdio_wait_status(card, FW_DL_READY_STATUS); card 566 drivers/net/wireless/marvell/libertas/if_sdio.c req_size = sdio_readb(card->func, IF_SDIO_RD_BASE, card 571 drivers/net/wireless/marvell/libertas/if_sdio.c req_size |= sdio_readb(card->func, IF_SDIO_RD_BASE + 1, card 618 drivers/net/wireless/marvell/libertas/if_sdio.c ret = sdio_writesb(card->func, card->ioport, card 638 drivers/net/wireless/marvell/libertas/if_sdio.c scratch = if_sdio_read_scratch(card, &ret); card 656 drivers/net/wireless/marvell/libertas/if_sdio.c sdio_release_host(card->func); card 670 drivers/net/wireless/marvell/libertas/if_sdio.c struct if_sdio_card *card = priv->card; card 677 drivers/net/wireless/marvell/libertas/if_sdio.c ret = if_sdio_prog_helper(card, helper); card 683 drivers/net/wireless/marvell/libertas/if_sdio.c ret = if_sdio_prog_real(card, mainfw); card 688 drivers/net/wireless/marvell/libertas/if_sdio.c if_sdio_finish_power_on(card); card 691 drivers/net/wireless/marvell/libertas/if_sdio.c static int if_sdio_prog_firmware(struct if_sdio_card *card) card 699 drivers/net/wireless/marvell/libertas/if_sdio.c sdio_claim_host(card->func); card 700 drivers/net/wireless/marvell/libertas/if_sdio.c sdio_writeb(card->func, 0x00, IF_SDIO_H_INT_MASK, &ret); card 701 drivers/net/wireless/marvell/libertas/if_sdio.c sdio_release_host(card->func); card 703 drivers/net/wireless/marvell/libertas/if_sdio.c sdio_claim_host(card->func); card 704 drivers/net/wireless/marvell/libertas/if_sdio.c scratch = if_sdio_read_scratch(card, &ret); card 705 drivers/net/wireless/marvell/libertas/if_sdio.c sdio_release_host(card->func); card 726 drivers/net/wireless/marvell/libertas/if_sdio.c if_sdio_finish_power_on(card); card 728 drivers/net/wireless/marvell/libertas/if_sdio.c } else if ((card->model == MODEL_8686) && (scratch & 0x7fff)) { card 730 drivers/net/wireless/marvell/libertas/if_sdio.c if_sdio_finish_power_on(card); card 734 drivers/net/wireless/marvell/libertas/if_sdio.c ret = lbs_get_firmware_async(card->priv, &card->func->dev, card->model, card 746 drivers/net/wireless/marvell/libertas/if_sdio.c static void if_sdio_finish_power_on(struct if_sdio_card *card) card 748 drivers/net/wireless/marvell/libertas/if_sdio.c struct sdio_func *func = card->func; card 749 drivers/net/wireless/marvell/libertas/if_sdio.c struct lbs_private *priv = card->priv; card 753 drivers/net/wireless/marvell/libertas/if_sdio.c sdio_set_block_size(card->func, IF_SDIO_BLOCK_SIZE); card 759 drivers/net/wireless/marvell/libertas/if_sdio.c if ((card->model != MODEL_8385) card 760 drivers/net/wireless/marvell/libertas/if_sdio.c && (card->model != MODEL_8686)) card 761 drivers/net/wireless/marvell/libertas/if_sdio.c card->rx_unit = if_sdio_read_rx_unit(card); card 763 drivers/net/wireless/marvell/libertas/if_sdio.c card->rx_unit = 0; card 797 drivers/net/wireless/marvell/libertas/if_sdio.c if (card->model == MODEL_8688) { card 808 drivers/net/wireless/marvell/libertas/if_sdio.c wake_up(&card->pwron_waitq); card 810 drivers/net/wireless/marvell/libertas/if_sdio.c if (!card->started) { card 812 drivers/net/wireless/marvell/libertas/if_sdio.c if_sdio_power_off(card); card 814 drivers/net/wireless/marvell/libertas/if_sdio.c card->started = true; card 829 drivers/net/wireless/marvell/libertas/if_sdio.c static int if_sdio_power_on(struct if_sdio_card *card) card 831 drivers/net/wireless/marvell/libertas/if_sdio.c struct sdio_func *func = card->func; card 832 drivers/net/wireless/marvell/libertas/if_sdio.c struct mmc_host *host = func->card->host; card 844 drivers/net/wireless/marvell/libertas/if_sdio.c if ((card->model == MODEL_8686) && card 849 drivers/net/wireless/marvell/libertas/if_sdio.c func->card->quirks |= MMC_QUIRK_LENIENT_FN0; card 860 drivers/net/wireless/marvell/libertas/if_sdio.c card->ioport = sdio_readb(func, IF_SDIO_IOPORT, &ret); card 864 drivers/net/wireless/marvell/libertas/if_sdio.c card->ioport |= sdio_readb(func, IF_SDIO_IOPORT + 1, &ret) << 8; card 868 drivers/net/wireless/marvell/libertas/if_sdio.c card->ioport |= sdio_readb(func, IF_SDIO_IOPORT + 2, &ret) << 16; card 873 drivers/net/wireless/marvell/libertas/if_sdio.c ret = if_sdio_prog_firmware(card); card 888 drivers/net/wireless/marvell/libertas/if_sdio.c static int if_sdio_power_off(struct if_sdio_card *card) card 890 drivers/net/wireless/marvell/libertas/if_sdio.c struct sdio_func *func = card->func; card 891 drivers/net/wireless/marvell/libertas/if_sdio.c struct lbs_private *priv = card->priv; card 911 drivers/net/wireless/marvell/libertas/if_sdio.c struct if_sdio_card *card; card 916 drivers/net/wireless/marvell/libertas/if_sdio.c card = priv->card; card 928 drivers/net/wireless/marvell/libertas/if_sdio.c size = sdio_align_size(card->func, nb + 4); card 950 drivers/net/wireless/marvell/libertas/if_sdio.c spin_lock_irqsave(&card->lock, flags); card 952 drivers/net/wireless/marvell/libertas/if_sdio.c if (!card->packets) card 953 drivers/net/wireless/marvell/libertas/if_sdio.c card->packets = packet; card 955 drivers/net/wireless/marvell/libertas/if_sdio.c cur = card->packets; card 972 drivers/net/wireless/marvell/libertas/if_sdio.c spin_unlock_irqrestore(&card->lock, flags); card 974 drivers/net/wireless/marvell/libertas/if_sdio.c queue_work(card->workqueue, &card->packet_worker); card 1001 drivers/net/wireless/marvell/libertas/if_sdio.c struct if_sdio_card *card = priv->card; card 1004 drivers/net/wireless/marvell/libertas/if_sdio.c sdio_claim_host(card->func); card 1006 drivers/net/wireless/marvell/libertas/if_sdio.c sdio_writeb(card->func, HOST_POWER_UP, CONFIGURATION_REG, &ret); card 1010 drivers/net/wireless/marvell/libertas/if_sdio.c sdio_release_host(card->func); card 1017 drivers/net/wireless/marvell/libertas/if_sdio.c struct if_sdio_card *card = priv->card; card 1020 drivers/net/wireless/marvell/libertas/if_sdio.c sdio_claim_host(card->func); card 1022 drivers/net/wireless/marvell/libertas/if_sdio.c sdio_writeb(card->func, 0, CONFIGURATION_REG, &ret); card 1026 drivers/net/wireless/marvell/libertas/if_sdio.c sdio_release_host(card->func); card 1054 drivers/net/wireless/marvell/libertas/if_sdio.c struct if_sdio_card *card = priv->card; card 1059 drivers/net/wireless/marvell/libertas/if_sdio.c reset_host = card->func->card->host; card 1065 drivers/net/wireless/marvell/libertas/if_sdio.c struct if_sdio_card *card = priv->card; card 1068 drivers/net/wireless/marvell/libertas/if_sdio.c flush_workqueue(card->workqueue); card 1070 drivers/net/wireless/marvell/libertas/if_sdio.c ret = if_sdio_power_off(card); card 1073 drivers/net/wireless/marvell/libertas/if_sdio.c pm_runtime_put_sync(&card->func->dev); card 1080 drivers/net/wireless/marvell/libertas/if_sdio.c struct if_sdio_card *card = priv->card; card 1084 drivers/net/wireless/marvell/libertas/if_sdio.c pm_runtime_get_sync(&card->func->dev); card 1086 drivers/net/wireless/marvell/libertas/if_sdio.c r = if_sdio_power_on(card); card 1090 drivers/net/wireless/marvell/libertas/if_sdio.c wait_event(card->pwron_waitq, priv->fw_ready); card 1102 drivers/net/wireless/marvell/libertas/if_sdio.c struct if_sdio_card *card; card 1105 drivers/net/wireless/marvell/libertas/if_sdio.c card = sdio_get_drvdata(func); card 1107 drivers/net/wireless/marvell/libertas/if_sdio.c cause = sdio_readb(card->func, IF_SDIO_H_INT_STATUS, &ret); card 1113 drivers/net/wireless/marvell/libertas/if_sdio.c sdio_writeb(card->func, ~cause, IF_SDIO_H_INT_STATUS, &ret); card 1121 drivers/net/wireless/marvell/libertas/if_sdio.c card->priv->is_activity_detected = 1; card 1123 drivers/net/wireless/marvell/libertas/if_sdio.c lbs_host_to_card_done(card->priv); card 1127 drivers/net/wireless/marvell/libertas/if_sdio.c ret = if_sdio_card_to_host(card); card 1136 drivers/net/wireless/marvell/libertas/if_sdio.c struct if_sdio_card *card; card 1142 drivers/net/wireless/marvell/libertas/if_sdio.c for (i = 0;i < func->card->num_info;i++) { card 1143 drivers/net/wireless/marvell/libertas/if_sdio.c if (sscanf(func->card->info[i], card 1146 drivers/net/wireless/marvell/libertas/if_sdio.c if (sscanf(func->card->info[i], card 1149 drivers/net/wireless/marvell/libertas/if_sdio.c if (!strcmp(func->card->info[i], "IBIS Wireless SDIO Card")) { card 1155 drivers/net/wireless/marvell/libertas/if_sdio.c if (i == func->card->num_info) { card 1160 drivers/net/wireless/marvell/libertas/if_sdio.c card = kzalloc(sizeof(struct if_sdio_card), GFP_KERNEL); card 1161 drivers/net/wireless/marvell/libertas/if_sdio.c if (!card) card 1164 drivers/net/wireless/marvell/libertas/if_sdio.c card->func = func; card 1165 drivers/net/wireless/marvell/libertas/if_sdio.c card->model = model; card 1167 drivers/net/wireless/marvell/libertas/if_sdio.c switch (card->model) { card 1169 drivers/net/wireless/marvell/libertas/if_sdio.c card->scratch_reg = IF_SDIO_SCRATCH_OLD; card 1172 drivers/net/wireless/marvell/libertas/if_sdio.c card->scratch_reg = IF_SDIO_SCRATCH; card 1176 drivers/net/wireless/marvell/libertas/if_sdio.c card->scratch_reg = IF_SDIO_FW_STATUS; card 1180 drivers/net/wireless/marvell/libertas/if_sdio.c spin_lock_init(&card->lock); card 1181 drivers/net/wireless/marvell/libertas/if_sdio.c card->workqueue = alloc_workqueue("libertas_sdio", WQ_MEM_RECLAIM, 0); card 1182 drivers/net/wireless/marvell/libertas/if_sdio.c if (unlikely(!card->workqueue)) { card 1186 drivers/net/wireless/marvell/libertas/if_sdio.c INIT_WORK(&card->packet_worker, if_sdio_host_to_card_worker); card 1187 drivers/net/wireless/marvell/libertas/if_sdio.c init_waitqueue_head(&card->pwron_waitq); card 1191 drivers/net/wireless/marvell/libertas/if_sdio.c if (card->model == fw_table[i].model) card 1195 drivers/net/wireless/marvell/libertas/if_sdio.c pr_err("unknown card model 0x%x\n", card->model); card 1200 drivers/net/wireless/marvell/libertas/if_sdio.c sdio_set_drvdata(func, card); card 1205 drivers/net/wireless/marvell/libertas/if_sdio.c model, (unsigned)card->ioport); card 1208 drivers/net/wireless/marvell/libertas/if_sdio.c priv = lbs_add_card(card, &func->dev); card 1214 drivers/net/wireless/marvell/libertas/if_sdio.c card->priv = priv; card 1216 drivers/net/wireless/marvell/libertas/if_sdio.c priv->card = card; card 1224 drivers/net/wireless/marvell/libertas/if_sdio.c priv->is_polling = !(func->card->host->caps & MMC_CAP_SDIO_IRQ); card 1225 drivers/net/wireless/marvell/libertas/if_sdio.c ret = if_sdio_power_on(card); card 1233 drivers/net/wireless/marvell/libertas/if_sdio.c flush_workqueue(card->workqueue); card 1236 drivers/net/wireless/marvell/libertas/if_sdio.c destroy_workqueue(card->workqueue); card 1238 drivers/net/wireless/marvell/libertas/if_sdio.c while (card->packets) { card 1239 drivers/net/wireless/marvell/libertas/if_sdio.c packet = card->packets; card 1240 drivers/net/wireless/marvell/libertas/if_sdio.c card->packets = card->packets->next; card 1244 drivers/net/wireless/marvell/libertas/if_sdio.c kfree(card); card 1251 drivers/net/wireless/marvell/libertas/if_sdio.c struct if_sdio_card *card; card 1254 drivers/net/wireless/marvell/libertas/if_sdio.c card = sdio_get_drvdata(func); card 1259 drivers/net/wireless/marvell/libertas/if_sdio.c if (user_rmmod && (card->model == MODEL_8688)) { card 1269 drivers/net/wireless/marvell/libertas/if_sdio.c if (__lbs_cmd(card->priv, CMD_FUNC_SHUTDOWN, card 1277 drivers/net/wireless/marvell/libertas/if_sdio.c lbs_stop_card(card->priv); card 1278 drivers/net/wireless/marvell/libertas/if_sdio.c lbs_remove_card(card->priv); card 1280 drivers/net/wireless/marvell/libertas/if_sdio.c destroy_workqueue(card->workqueue); card 1282 drivers/net/wireless/marvell/libertas/if_sdio.c while (card->packets) { card 1283 drivers/net/wireless/marvell/libertas/if_sdio.c packet = card->packets; card 1284 drivers/net/wireless/marvell/libertas/if_sdio.c card->packets = card->packets->next; card 1288 drivers/net/wireless/marvell/libertas/if_sdio.c kfree(card); card 1294 drivers/net/wireless/marvell/libertas/if_sdio.c struct if_sdio_card *card = sdio_get_drvdata(func); card 1295 drivers/net/wireless/marvell/libertas/if_sdio.c struct lbs_private *priv = card->priv; card 1306 drivers/net/wireless/marvell/libertas/if_sdio.c if_sdio_power_off(card); card 1326 drivers/net/wireless/marvell/libertas/if_sdio.c if_sdio_power_off(card); card 1352 drivers/net/wireless/marvell/libertas/if_sdio.c struct if_sdio_card *card = sdio_get_drvdata(func); card 1357 drivers/net/wireless/marvell/libertas/if_sdio.c if (card->priv->power_up_on_resume) { card 1358 drivers/net/wireless/marvell/libertas/if_sdio.c if_sdio_power_on(card); card 1359 drivers/net/wireless/marvell/libertas/if_sdio.c wait_event(card->pwron_waitq, card->priv->fw_ready); card 1362 drivers/net/wireless/marvell/libertas/if_sdio.c ret = lbs_resume(card->priv); card 77 drivers/net/wireless/marvell/libertas/if_spi.c static void free_if_spi_card(struct if_spi_card *card) card 82 drivers/net/wireless/marvell/libertas/if_spi.c list_for_each_safe(cursor, next, &card->cmd_packet_list) { card 87 drivers/net/wireless/marvell/libertas/if_spi.c list_for_each_safe(cursor, next, &card->data_packet_list) { card 92 drivers/net/wireless/marvell/libertas/if_spi.c kfree(card); card 129 drivers/net/wireless/marvell/libertas/if_spi.c static void spu_transaction_init(struct if_spi_card *card) card 131 drivers/net/wireless/marvell/libertas/if_spi.c if (!time_after(jiffies, card->prev_xfer_time + 1)) { card 140 drivers/net/wireless/marvell/libertas/if_spi.c static void spu_transaction_finish(struct if_spi_card *card) card 142 drivers/net/wireless/marvell/libertas/if_spi.c card->prev_xfer_time = jiffies; card 149 drivers/net/wireless/marvell/libertas/if_spi.c static int spu_write(struct if_spi_card *card, u16 reg, const u8 *buf, int len) card 165 drivers/net/wireless/marvell/libertas/if_spi.c spu_transaction_init(card); card 177 drivers/net/wireless/marvell/libertas/if_spi.c err = spi_sync(card->spi, &m); card 178 drivers/net/wireless/marvell/libertas/if_spi.c spu_transaction_finish(card); card 182 drivers/net/wireless/marvell/libertas/if_spi.c static inline int spu_write_u16(struct if_spi_card *card, u16 reg, u16 val) card 187 drivers/net/wireless/marvell/libertas/if_spi.c return spu_write(card, reg, (u8 *)&buff, sizeof(u16)); card 202 drivers/net/wireless/marvell/libertas/if_spi.c static int spu_read(struct if_spi_card *card, u16 reg, u8 *buf, int len) card 218 drivers/net/wireless/marvell/libertas/if_spi.c spu_transaction_init(card); card 230 drivers/net/wireless/marvell/libertas/if_spi.c delay = spu_reg_is_port_reg(reg) ? card->spu_port_delay : card 231 drivers/net/wireless/marvell/libertas/if_spi.c card->spu_reg_delay; card 232 drivers/net/wireless/marvell/libertas/if_spi.c if (card->use_dummy_writes) { card 247 drivers/net/wireless/marvell/libertas/if_spi.c err = spi_sync(card->spi, &m); card 248 drivers/net/wireless/marvell/libertas/if_spi.c spu_transaction_finish(card); card 253 drivers/net/wireless/marvell/libertas/if_spi.c static inline int spu_read_u16(struct if_spi_card *card, u16 reg, u16 *val) card 258 drivers/net/wireless/marvell/libertas/if_spi.c ret = spu_read(card, reg, (u8 *)&buf, sizeof(buf)); card 268 drivers/net/wireless/marvell/libertas/if_spi.c static int spu_read_u32(struct if_spi_card *card, u16 reg, u32 *val) card 273 drivers/net/wireless/marvell/libertas/if_spi.c err = spu_read(card, reg, (u8 *)&buf, sizeof(buf)); card 288 drivers/net/wireless/marvell/libertas/if_spi.c static int spu_wait_for_u16(struct if_spi_card *card, u16 reg, card 295 drivers/net/wireless/marvell/libertas/if_spi.c err = spu_read_u16(card, reg, &val); card 318 drivers/net/wireless/marvell/libertas/if_spi.c static int spu_wait_for_u32(struct if_spi_card *card, u32 reg, u32 target) card 323 drivers/net/wireless/marvell/libertas/if_spi.c err = spu_read_u32(card, reg, &val); card 333 drivers/net/wireless/marvell/libertas/if_spi.c static int spu_set_interrupt_mode(struct if_spi_card *card, card 344 drivers/net/wireless/marvell/libertas/if_spi.c err = spu_write_u16(card, IF_SPI_HOST_INT_STATUS_MASK_REG, 0); card 348 drivers/net/wireless/marvell/libertas/if_spi.c err = spu_write_u16(card, IF_SPI_HOST_INT_STATUS_MASK_REG, card 365 drivers/net/wireless/marvell/libertas/if_spi.c err = spu_write_u16(card, IF_SPI_HOST_INT_CTRL_REG, card 373 drivers/net/wireless/marvell/libertas/if_spi.c err = spu_write_u16(card, IF_SPI_HOST_INT_STATUS_MASK_REG, 0); card 380 drivers/net/wireless/marvell/libertas/if_spi.c static int spu_get_chip_revision(struct if_spi_card *card, card 385 drivers/net/wireless/marvell/libertas/if_spi.c err = spu_read_u32(card, IF_SPI_DEVICEID_CTRL_REG, &dev_ctrl); card 393 drivers/net/wireless/marvell/libertas/if_spi.c static int spu_set_bus_mode(struct if_spi_card *card, u16 mode) card 398 drivers/net/wireless/marvell/libertas/if_spi.c err = spu_write_u16(card, IF_SPI_SPU_BUS_MODE_REG, mode); card 402 drivers/net/wireless/marvell/libertas/if_spi.c err = spu_read_u16(card, IF_SPI_SPU_BUS_MODE_REG, &rval); card 412 drivers/net/wireless/marvell/libertas/if_spi.c static int spu_init(struct if_spi_card *card, int use_dummy_writes) card 421 drivers/net/wireless/marvell/libertas/if_spi.c card->use_dummy_writes = 0; card 422 drivers/net/wireless/marvell/libertas/if_spi.c err = spu_set_bus_mode(card, card 428 drivers/net/wireless/marvell/libertas/if_spi.c card->spu_port_delay = 1000; card 429 drivers/net/wireless/marvell/libertas/if_spi.c card->spu_reg_delay = 1000; card 430 drivers/net/wireless/marvell/libertas/if_spi.c err = spu_read_u32(card, IF_SPI_DELAY_READ_REG, &delay); card 433 drivers/net/wireless/marvell/libertas/if_spi.c card->spu_port_delay = delay & 0x0000ffff; card 434 drivers/net/wireless/marvell/libertas/if_spi.c card->spu_reg_delay = (delay & 0xffff0000) >> 16; card 438 drivers/net/wireless/marvell/libertas/if_spi.c card->use_dummy_writes = 1; card 439 drivers/net/wireless/marvell/libertas/if_spi.c err = spu_set_bus_mode(card, card 449 drivers/net/wireless/marvell/libertas/if_spi.c card->spu_port_delay, card->spu_reg_delay); card 457 drivers/net/wireless/marvell/libertas/if_spi.c static int if_spi_prog_helper_firmware(struct if_spi_card *card, card 465 drivers/net/wireless/marvell/libertas/if_spi.c err = spu_set_interrupt_mode(card, 1, 0); card 478 drivers/net/wireless/marvell/libertas/if_spi.c err = spu_write_u16(card, IF_SPI_SCRATCH_1_REG, card 483 drivers/net/wireless/marvell/libertas/if_spi.c err = spu_wait_for_u16(card, IF_SPI_HOST_INT_STATUS_REG, card 497 drivers/net/wireless/marvell/libertas/if_spi.c err = spu_write(card, IF_SPI_CMD_RDWRPORT_REG, card 503 drivers/net/wireless/marvell/libertas/if_spi.c err = spu_write_u16(card, IF_SPI_HOST_INT_STATUS_REG, 0); card 506 drivers/net/wireless/marvell/libertas/if_spi.c err = spu_write_u16(card, IF_SPI_CARD_INT_CAUSE_REG, card 519 drivers/net/wireless/marvell/libertas/if_spi.c err = spu_write_u16(card, IF_SPI_SCRATCH_1_REG, FIRMWARE_DNLD_OK); card 522 drivers/net/wireless/marvell/libertas/if_spi.c err = spu_write_u16(card, IF_SPI_HOST_INT_STATUS_REG, 0); card 525 drivers/net/wireless/marvell/libertas/if_spi.c err = spu_write_u16(card, IF_SPI_CARD_INT_CAUSE_REG, card 538 drivers/net/wireless/marvell/libertas/if_spi.c static int if_spi_prog_main_firmware_check_len(struct if_spi_card *card, card 548 drivers/net/wireless/marvell/libertas/if_spi.c err = spu_wait_for_u16(card, IF_SPI_HOST_INT_STATUS_REG, card 557 drivers/net/wireless/marvell/libertas/if_spi.c err = spu_read_u16(card, IF_SPI_SCRATCH_1_REG, &len); card 576 drivers/net/wireless/marvell/libertas/if_spi.c static int if_spi_prog_main_firmware(struct if_spi_card *card, card 579 drivers/net/wireless/marvell/libertas/if_spi.c struct lbs_private *priv = card->priv; card 585 drivers/net/wireless/marvell/libertas/if_spi.c err = spu_set_interrupt_mode(card, 1, 0); card 589 drivers/net/wireless/marvell/libertas/if_spi.c err = spu_wait_for_u16(card, IF_SPI_SCRATCH_1_REG, 0, 0); card 601 drivers/net/wireless/marvell/libertas/if_spi.c while ((len = if_spi_prog_main_firmware_check_len(card, &crc_err))) { card 628 drivers/net/wireless/marvell/libertas/if_spi.c memset(card->cmd_buffer, 0, len); card 629 drivers/net/wireless/marvell/libertas/if_spi.c memcpy(card->cmd_buffer, fw, bytes); card 631 drivers/net/wireless/marvell/libertas/if_spi.c memcpy(card->cmd_buffer, fw, len); card 633 drivers/net/wireless/marvell/libertas/if_spi.c err = spu_write_u16(card, IF_SPI_HOST_INT_STATUS_REG, 0); card 636 drivers/net/wireless/marvell/libertas/if_spi.c err = spu_write(card, IF_SPI_CMD_RDWRPORT_REG, card 637 drivers/net/wireless/marvell/libertas/if_spi.c card->cmd_buffer, len); card 640 drivers/net/wireless/marvell/libertas/if_spi.c err = spu_write_u16(card, IF_SPI_CARD_INT_CAUSE_REG , card 651 drivers/net/wireless/marvell/libertas/if_spi.c err = spu_wait_for_u32(card, IF_SPI_SCRATCH_4_REG, card 672 drivers/net/wireless/marvell/libertas/if_spi.c static int if_spi_c2h_cmd(struct if_spi_card *card) card 674 drivers/net/wireless/marvell/libertas/if_spi.c struct lbs_private *priv = card->priv; card 695 drivers/net/wireless/marvell/libertas/if_spi.c err = spu_read_u16(card, IF_SPI_SCRATCH_2_REG, &len); card 712 drivers/net/wireless/marvell/libertas/if_spi.c err = spu_read(card, IF_SPI_CMD_RDWRPORT_REG, card 713 drivers/net/wireless/marvell/libertas/if_spi.c card->cmd_buffer, ALIGN(len, 4)); card 721 drivers/net/wireless/marvell/libertas/if_spi.c memcpy(priv->resp_buf[i], card->cmd_buffer, len); card 733 drivers/net/wireless/marvell/libertas/if_spi.c static int if_spi_c2h_data(struct if_spi_card *card) card 735 drivers/net/wireless/marvell/libertas/if_spi.c struct lbs_private *priv = card->priv; card 742 drivers/net/wireless/marvell/libertas/if_spi.c err = spu_read_u16(card, IF_SPI_SCRATCH_1_REG, &len); card 768 drivers/net/wireless/marvell/libertas/if_spi.c err = spu_read(card, IF_SPI_DATA_RDWRPORT_REG, data, ALIGN(len, 4)); card 775 drivers/net/wireless/marvell/libertas/if_spi.c err = lbs_process_rxed_packet(card->priv, skb); card 786 drivers/net/wireless/marvell/libertas/if_spi.c static void if_spi_h2c(struct if_spi_card *card, card 789 drivers/net/wireless/marvell/libertas/if_spi.c struct lbs_private *priv = card->priv; card 808 drivers/net/wireless/marvell/libertas/if_spi.c err = spu_write(card, port_reg, packet->buffer, packet->blen); card 820 drivers/net/wireless/marvell/libertas/if_spi.c static void if_spi_e2h(struct if_spi_card *card) card 824 drivers/net/wireless/marvell/libertas/if_spi.c struct lbs_private *priv = card->priv; card 826 drivers/net/wireless/marvell/libertas/if_spi.c err = spu_read_u32(card, IF_SPI_SCRATCH_3_REG, &cause); card 831 drivers/net/wireless/marvell/libertas/if_spi.c spu_write_u16(card, IF_SPI_HOST_INT_STATUS_REG, card 835 drivers/net/wireless/marvell/libertas/if_spi.c spu_write_u16(card, IF_SPI_CARD_INT_CAUSE_REG, IF_SPI_CIC_HOST_EVENT); card 846 drivers/net/wireless/marvell/libertas/if_spi.c struct if_spi_card *card; card 852 drivers/net/wireless/marvell/libertas/if_spi.c card = container_of(work, struct if_spi_card, packet_work); card 853 drivers/net/wireless/marvell/libertas/if_spi.c priv = card->priv; card 859 drivers/net/wireless/marvell/libertas/if_spi.c err = spu_read_u16(card, IF_SPI_HOST_INT_STATUS_REG, card 867 drivers/net/wireless/marvell/libertas/if_spi.c err = if_spi_c2h_cmd(card); card 872 drivers/net/wireless/marvell/libertas/if_spi.c err = if_spi_c2h_data(card); card 882 drivers/net/wireless/marvell/libertas/if_spi.c (card->priv->psstate != PS_STATE_FULL_POWER && card 891 drivers/net/wireless/marvell/libertas/if_spi.c lbs_host_to_card_done(card->priv); card 895 drivers/net/wireless/marvell/libertas/if_spi.c spin_lock_irqsave(&card->buffer_lock, flags); card 896 drivers/net/wireless/marvell/libertas/if_spi.c if (!list_empty(&card->cmd_packet_list)) { card 897 drivers/net/wireless/marvell/libertas/if_spi.c packet = (struct if_spi_packet *)(card-> card 901 drivers/net/wireless/marvell/libertas/if_spi.c spin_unlock_irqrestore(&card->buffer_lock, flags); card 904 drivers/net/wireless/marvell/libertas/if_spi.c if_spi_h2c(card, packet, MVMS_CMD); card 909 drivers/net/wireless/marvell/libertas/if_spi.c spin_lock_irqsave(&card->buffer_lock, flags); card 910 drivers/net/wireless/marvell/libertas/if_spi.c if (!list_empty(&card->data_packet_list)) { card 911 drivers/net/wireless/marvell/libertas/if_spi.c packet = (struct if_spi_packet *)(card-> card 915 drivers/net/wireless/marvell/libertas/if_spi.c spin_unlock_irqrestore(&card->buffer_lock, flags); card 918 drivers/net/wireless/marvell/libertas/if_spi.c if_spi_h2c(card, packet, MVMS_DAT); card 921 drivers/net/wireless/marvell/libertas/if_spi.c if_spi_e2h(card); card 939 drivers/net/wireless/marvell/libertas/if_spi.c struct if_spi_card *card = priv->card; card 962 drivers/net/wireless/marvell/libertas/if_spi.c spin_lock_irqsave(&card->buffer_lock, flags); card 963 drivers/net/wireless/marvell/libertas/if_spi.c list_add_tail(&packet->list, &card->cmd_packet_list); card 964 drivers/net/wireless/marvell/libertas/if_spi.c spin_unlock_irqrestore(&card->buffer_lock, flags); card 968 drivers/net/wireless/marvell/libertas/if_spi.c spin_lock_irqsave(&card->buffer_lock, flags); card 969 drivers/net/wireless/marvell/libertas/if_spi.c list_add_tail(&packet->list, &card->data_packet_list); card 970 drivers/net/wireless/marvell/libertas/if_spi.c spin_unlock_irqrestore(&card->buffer_lock, flags); card 981 drivers/net/wireless/marvell/libertas/if_spi.c queue_work(card->workqueue, &card->packet_work); card 994 drivers/net/wireless/marvell/libertas/if_spi.c struct if_spi_card *card = dev_id; card 996 drivers/net/wireless/marvell/libertas/if_spi.c queue_work(card->workqueue, &card->packet_work); card 1005 drivers/net/wireless/marvell/libertas/if_spi.c static int if_spi_init_card(struct if_spi_card *card) card 1007 drivers/net/wireless/marvell/libertas/if_spi.c struct lbs_private *priv = card->priv; card 1013 drivers/net/wireless/marvell/libertas/if_spi.c err = spu_init(card, card->pdata->use_dummy_writes); card 1016 drivers/net/wireless/marvell/libertas/if_spi.c err = spu_get_chip_revision(card, &card->card_id, &card->card_rev); card 1020 drivers/net/wireless/marvell/libertas/if_spi.c err = spu_read_u32(card, IF_SPI_SCRATCH_4_REG, &scratch); card 1029 drivers/net/wireless/marvell/libertas/if_spi.c if (card->card_id == fw_table[i].model) card 1034 drivers/net/wireless/marvell/libertas/if_spi.c card->card_id); card 1039 drivers/net/wireless/marvell/libertas/if_spi.c err = lbs_get_firmware(&card->spi->dev, card->card_id, card 1051 drivers/net/wireless/marvell/libertas/if_spi.c card->card_id, card->card_rev, card 1052 drivers/net/wireless/marvell/libertas/if_spi.c card->spi->master->bus_num, card 1053 drivers/net/wireless/marvell/libertas/if_spi.c card->spi->chip_select, card 1054 drivers/net/wireless/marvell/libertas/if_spi.c card->spi->max_speed_hz); card 1055 drivers/net/wireless/marvell/libertas/if_spi.c err = if_spi_prog_helper_firmware(card, helper); card 1058 drivers/net/wireless/marvell/libertas/if_spi.c err = if_spi_prog_main_firmware(card, mainfw); card 1064 drivers/net/wireless/marvell/libertas/if_spi.c err = spu_set_interrupt_mode(card, 0, 1); card 1074 drivers/net/wireless/marvell/libertas/if_spi.c struct if_spi_card *card; card 1076 drivers/net/wireless/marvell/libertas/if_spi.c card = container_of(work, struct if_spi_card, resume_work); card 1078 drivers/net/wireless/marvell/libertas/if_spi.c if (card->suspended) { card 1079 drivers/net/wireless/marvell/libertas/if_spi.c if (card->pdata->setup) card 1080 drivers/net/wireless/marvell/libertas/if_spi.c card->pdata->setup(card->spi); card 1083 drivers/net/wireless/marvell/libertas/if_spi.c if_spi_init_card(card); card 1085 drivers/net/wireless/marvell/libertas/if_spi.c enable_irq(card->spi->irq); card 1088 drivers/net/wireless/marvell/libertas/if_spi.c lbs_resume(card->priv); card 1090 drivers/net/wireless/marvell/libertas/if_spi.c card->suspended = 0; card 1096 drivers/net/wireless/marvell/libertas/if_spi.c struct if_spi_card *card; card 1113 drivers/net/wireless/marvell/libertas/if_spi.c card = kzalloc(sizeof(struct if_spi_card), GFP_KERNEL); card 1114 drivers/net/wireless/marvell/libertas/if_spi.c if (!card) { card 1118 drivers/net/wireless/marvell/libertas/if_spi.c spi_set_drvdata(spi, card); card 1119 drivers/net/wireless/marvell/libertas/if_spi.c card->pdata = pdata; card 1120 drivers/net/wireless/marvell/libertas/if_spi.c card->spi = spi; card 1121 drivers/net/wireless/marvell/libertas/if_spi.c card->prev_xfer_time = jiffies; card 1123 drivers/net/wireless/marvell/libertas/if_spi.c INIT_LIST_HEAD(&card->cmd_packet_list); card 1124 drivers/net/wireless/marvell/libertas/if_spi.c INIT_LIST_HEAD(&card->data_packet_list); card 1125 drivers/net/wireless/marvell/libertas/if_spi.c spin_lock_init(&card->buffer_lock); card 1130 drivers/net/wireless/marvell/libertas/if_spi.c err = if_spi_init_card(card); card 1138 drivers/net/wireless/marvell/libertas/if_spi.c priv = lbs_add_card(card, &spi->dev); card 1143 drivers/net/wireless/marvell/libertas/if_spi.c card->priv = priv; card 1145 drivers/net/wireless/marvell/libertas/if_spi.c priv->card = card; card 1153 drivers/net/wireless/marvell/libertas/if_spi.c card->workqueue = alloc_workqueue("libertas_spi", WQ_MEM_RECLAIM, 0); card 1154 drivers/net/wireless/marvell/libertas/if_spi.c if (!card->workqueue) { card 1158 drivers/net/wireless/marvell/libertas/if_spi.c INIT_WORK(&card->packet_work, if_spi_host_to_card_worker); card 1159 drivers/net/wireless/marvell/libertas/if_spi.c INIT_WORK(&card->resume_work, if_spi_resume_worker); card 1162 drivers/net/wireless/marvell/libertas/if_spi.c IRQF_TRIGGER_FALLING, "libertas_spi", card); card 1183 drivers/net/wireless/marvell/libertas/if_spi.c free_irq(spi->irq, card); card 1185 drivers/net/wireless/marvell/libertas/if_spi.c destroy_workqueue(card->workqueue); card 1189 drivers/net/wireless/marvell/libertas/if_spi.c free_if_spi_card(card); card 1199 drivers/net/wireless/marvell/libertas/if_spi.c struct if_spi_card *card = spi_get_drvdata(spi); card 1200 drivers/net/wireless/marvell/libertas/if_spi.c struct lbs_private *priv = card->priv; card 1204 drivers/net/wireless/marvell/libertas/if_spi.c cancel_work_sync(&card->resume_work); card 1209 drivers/net/wireless/marvell/libertas/if_spi.c free_irq(spi->irq, card); card 1210 drivers/net/wireless/marvell/libertas/if_spi.c destroy_workqueue(card->workqueue); card 1211 drivers/net/wireless/marvell/libertas/if_spi.c if (card->pdata->teardown) card 1212 drivers/net/wireless/marvell/libertas/if_spi.c card->pdata->teardown(spi); card 1213 drivers/net/wireless/marvell/libertas/if_spi.c free_if_spi_card(card); card 1221 drivers/net/wireless/marvell/libertas/if_spi.c struct if_spi_card *card = spi_get_drvdata(spi); card 1223 drivers/net/wireless/marvell/libertas/if_spi.c if (!card->suspended) { card 1224 drivers/net/wireless/marvell/libertas/if_spi.c lbs_suspend(card->priv); card 1225 drivers/net/wireless/marvell/libertas/if_spi.c flush_workqueue(card->workqueue); card 1228 drivers/net/wireless/marvell/libertas/if_spi.c if (card->pdata->teardown) card 1229 drivers/net/wireless/marvell/libertas/if_spi.c card->pdata->teardown(spi); card 1230 drivers/net/wireless/marvell/libertas/if_spi.c card->suspended = 1; card 1239 drivers/net/wireless/marvell/libertas/if_spi.c struct if_spi_card *card = spi_get_drvdata(spi); card 1242 drivers/net/wireless/marvell/libertas/if_spi.c schedule_work(&card->resume_work); card 132 drivers/net/wireless/marvell/libertas/if_usb.c struct if_usb_card *cardp = priv->card; card 728 drivers/net/wireless/marvell/libertas/if_usb.c struct if_usb_card *cardp = priv->card; card 820 drivers/net/wireless/marvell/libertas/if_usb.c struct if_usb_card *cardp = priv->card; card 906 drivers/net/wireless/marvell/libertas/main.c struct lbs_private *lbs_add_card(void *card, struct device *dmdev) card 949 drivers/net/wireless/marvell/libertas/main.c priv->card = card; card 98 drivers/net/wireless/marvell/libertas_tf/if_usb.c struct if_usb_card *cardp = priv->card; card 335 drivers/net/wireless/marvell/libertas_tf/if_usb.c struct if_usb_card *cardp = priv->card; card 715 drivers/net/wireless/marvell/libertas_tf/if_usb.c struct if_usb_card *cardp = priv->card; card 808 drivers/net/wireless/marvell/libertas_tf/if_usb.c struct if_usb_card *cardp = priv->card; card 182 drivers/net/wireless/marvell/libertas_tf/libertas_tf.h void *card; card 488 drivers/net/wireless/marvell/libertas_tf/libertas_tf.h struct lbtf_private *lbtf_add_card(void *card, struct device *dmdev, card 552 drivers/net/wireless/marvell/libertas_tf/main.c struct lbtf_private *lbtf_add_card(void *card, struct device *dmdev, card 569 drivers/net/wireless/marvell/libertas_tf/main.c priv->card = card; card 66 drivers/net/wireless/marvell/mwifiex/main.c static int mwifiex_register(void *card, struct device *dev, card 78 drivers/net/wireless/marvell/mwifiex/main.c adapter->card = card; card 1046 drivers/net/wireless/marvell/mwifiex/main.c struct usb_card_rec *card = adapter->card; card 1051 drivers/net/wireless/marvell/mwifiex/main.c card->mc_resync_flag = true; card 1053 drivers/net/wireless/marvell/mwifiex/main.c if (atomic_read(&card->port[i].tx_data_urb_pending)) { card 1059 drivers/net/wireless/marvell/mwifiex/main.c card->mc_resync_flag = false; card 1114 drivers/net/wireless/marvell/mwifiex/main.c cardp = (struct usb_card_rec *)adapter->card; card 1133 drivers/net/wireless/marvell/mwifiex/main.c sdio_card = (struct sdio_mmc_card *)adapter->card; card 1634 drivers/net/wireless/marvell/mwifiex/main.c mwifiex_add_card(void *card, struct completion *fw_done, card 1640 drivers/net/wireless/marvell/mwifiex/main.c if (mwifiex_register(card, dev, if_ops, (void **)&adapter)) { card 889 drivers/net/wireless/marvell/mwifiex/main.h void *card; card 1482 drivers/net/wireless/marvell/mwifiex/main.h int mwifiex_add_card(void *card, struct completion *fw_done, card 58 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 61 drivers/net/wireless/marvell/mwifiex/pcie.c mapping.addr = pci_map_single(card->dev, skb->data, size, flags); card 62 drivers/net/wireless/marvell/mwifiex/pcie.c if (pci_dma_mapping_error(card->dev, mapping.addr)) { card 74 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 78 drivers/net/wireless/marvell/mwifiex/pcie.c pci_unmap_single(card->dev, mapping.addr, mapping.len, flags); card 86 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 88 drivers/net/wireless/marvell/mwifiex/pcie.c iowrite32(data, card->pci_mmap1 + reg); card 97 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 99 drivers/net/wireless/marvell/mwifiex/pcie.c *data = ioread32(card->pci_mmap1 + reg); card 110 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 112 drivers/net/wireless/marvell/mwifiex/pcie.c *data = ioread8(card->pci_mmap1 + reg); card 123 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 124 drivers/net/wireless/marvell/mwifiex/pcie.c const struct mwifiex_pcie_card_reg *reg = card->pcie.reg; card 129 drivers/net/wireless/marvell/mwifiex/pcie.c if (card->sleep_cookie_vbase) { card 130 drivers/net/wireless/marvell/mwifiex/pcie.c cookie_value = get_unaligned_le32(card->sleep_cookie_vbase); card 153 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = dev_get_drvdata(dev); card 157 drivers/net/wireless/marvell/mwifiex/pcie.c wait_for_completion(&card->fw_done); card 159 drivers/net/wireless/marvell/mwifiex/pcie.c adapter = card->adapter; card 196 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = dev_get_drvdata(dev); card 199 drivers/net/wireless/marvell/mwifiex/pcie.c if (!card->adapter) { card 204 drivers/net/wireless/marvell/mwifiex/pcie.c adapter = card->adapter; card 231 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card; card 237 drivers/net/wireless/marvell/mwifiex/pcie.c card = devm_kzalloc(&pdev->dev, sizeof(*card), GFP_KERNEL); card 238 drivers/net/wireless/marvell/mwifiex/pcie.c if (!card) card 241 drivers/net/wireless/marvell/mwifiex/pcie.c init_completion(&card->fw_done); card 243 drivers/net/wireless/marvell/mwifiex/pcie.c card->dev = pdev; card 247 drivers/net/wireless/marvell/mwifiex/pcie.c card->pcie.reg = data->reg; card 248 drivers/net/wireless/marvell/mwifiex/pcie.c card->pcie.blksz_fw_dl = data->blksz_fw_dl; card 249 drivers/net/wireless/marvell/mwifiex/pcie.c card->pcie.tx_buf_size = data->tx_buf_size; card 250 drivers/net/wireless/marvell/mwifiex/pcie.c card->pcie.can_dump_fw = data->can_dump_fw; card 251 drivers/net/wireless/marvell/mwifiex/pcie.c card->pcie.mem_type_mapping_tbl = data->mem_type_mapping_tbl; card 252 drivers/net/wireless/marvell/mwifiex/pcie.c card->pcie.num_mem_types = data->num_mem_types; card 253 drivers/net/wireless/marvell/mwifiex/pcie.c card->pcie.can_ext_scan = data->can_ext_scan; card 254 drivers/net/wireless/marvell/mwifiex/pcie.c INIT_WORK(&card->work, mwifiex_pcie_work); card 264 drivers/net/wireless/marvell/mwifiex/pcie.c if (mwifiex_add_card(card, &card->fw_done, &pcie_ops, card 278 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card; card 285 drivers/net/wireless/marvell/mwifiex/pcie.c card = pci_get_drvdata(pdev); card 287 drivers/net/wireless/marvell/mwifiex/pcie.c wait_for_completion(&card->fw_done); card 289 drivers/net/wireless/marvell/mwifiex/pcie.c adapter = card->adapter; card 293 drivers/net/wireless/marvell/mwifiex/pcie.c reg = card->pcie.reg; card 322 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card; card 325 drivers/net/wireless/marvell/mwifiex/pcie.c card = pci_get_drvdata(pdev); card 328 drivers/net/wireless/marvell/mwifiex/pcie.c &card->work_flags)) card 329 drivers/net/wireless/marvell/mwifiex/pcie.c schedule_work(&card->work); card 363 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = pci_get_drvdata(pdev); card 364 drivers/net/wireless/marvell/mwifiex/pcie.c struct mwifiex_adapter *adapter = card->adapter; card 377 drivers/net/wireless/marvell/mwifiex/pcie.c clear_bit(MWIFIEX_IFACE_WORK_DEVICE_DUMP, &card->work_flags); card 378 drivers/net/wireless/marvell/mwifiex/pcie.c clear_bit(MWIFIEX_IFACE_WORK_CARD_RESET, &card->work_flags); card 389 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = pci_get_drvdata(pdev); card 390 drivers/net/wireless/marvell/mwifiex/pcie.c struct mwifiex_adapter *adapter = card->adapter; card 458 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 461 drivers/net/wireless/marvell/mwifiex/pcie.c struct sk_buff *cmdrsp = card->cmdrsp_buf; card 464 drivers/net/wireless/marvell/mwifiex/pcie.c pci_dma_sync_single_for_cpu(card->dev, card 476 drivers/net/wireless/marvell/mwifiex/pcie.c pci_dma_sync_single_for_device(card->dev, card 491 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 492 drivers/net/wireless/marvell/mwifiex/pcie.c const struct mwifiex_pcie_card_reg *reg = card->pcie.reg; card 582 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 583 drivers/net/wireless/marvell/mwifiex/pcie.c const struct mwifiex_pcie_card_reg *reg = card->pcie.reg; card 589 drivers/net/wireless/marvell/mwifiex/pcie.c card->tx_buf_list[i] = NULL; card 591 drivers/net/wireless/marvell/mwifiex/pcie.c card->txbd_ring[i] = (void *)card->txbd_ring_vbase + card 593 drivers/net/wireless/marvell/mwifiex/pcie.c desc2 = card->txbd_ring[i]; card 596 drivers/net/wireless/marvell/mwifiex/pcie.c card->txbd_ring[i] = (void *)card->txbd_ring_vbase + card 598 drivers/net/wireless/marvell/mwifiex/pcie.c desc = card->txbd_ring[i]; card 612 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 613 drivers/net/wireless/marvell/mwifiex/pcie.c const struct mwifiex_pcie_card_reg *reg = card->pcie.reg; card 627 drivers/net/wireless/marvell/mwifiex/pcie.c kfree(card->rxbd_ring_vbase); card 643 drivers/net/wireless/marvell/mwifiex/pcie.c card->rx_buf_list[i] = skb; card 645 drivers/net/wireless/marvell/mwifiex/pcie.c card->rxbd_ring[i] = (void *)card->rxbd_ring_vbase + card 647 drivers/net/wireless/marvell/mwifiex/pcie.c desc2 = card->rxbd_ring[i]; card 654 drivers/net/wireless/marvell/mwifiex/pcie.c card->rxbd_ring[i] = (void *)(card->rxbd_ring_vbase + card 656 drivers/net/wireless/marvell/mwifiex/pcie.c desc = card->rxbd_ring[i]; card 672 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 684 drivers/net/wireless/marvell/mwifiex/pcie.c kfree(card->evtbd_ring_vbase); card 692 drivers/net/wireless/marvell/mwifiex/pcie.c kfree(card->evtbd_ring_vbase); card 703 drivers/net/wireless/marvell/mwifiex/pcie.c card->evt_buf_list[i] = skb; card 704 drivers/net/wireless/marvell/mwifiex/pcie.c card->evtbd_ring[i] = (void *)(card->evtbd_ring_vbase + card 706 drivers/net/wireless/marvell/mwifiex/pcie.c desc = card->evtbd_ring[i]; card 720 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 721 drivers/net/wireless/marvell/mwifiex/pcie.c const struct mwifiex_pcie_card_reg *reg = card->pcie.reg; card 729 drivers/net/wireless/marvell/mwifiex/pcie.c desc2 = card->txbd_ring[i]; card 730 drivers/net/wireless/marvell/mwifiex/pcie.c if (card->tx_buf_list[i]) { card 731 drivers/net/wireless/marvell/mwifiex/pcie.c skb = card->tx_buf_list[i]; card 738 drivers/net/wireless/marvell/mwifiex/pcie.c desc = card->txbd_ring[i]; card 739 drivers/net/wireless/marvell/mwifiex/pcie.c if (card->tx_buf_list[i]) { card 740 drivers/net/wireless/marvell/mwifiex/pcie.c skb = card->tx_buf_list[i]; card 747 drivers/net/wireless/marvell/mwifiex/pcie.c card->tx_buf_list[i] = NULL; card 759 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 760 drivers/net/wireless/marvell/mwifiex/pcie.c const struct mwifiex_pcie_card_reg *reg = card->pcie.reg; card 768 drivers/net/wireless/marvell/mwifiex/pcie.c desc2 = card->rxbd_ring[i]; card 769 drivers/net/wireless/marvell/mwifiex/pcie.c if (card->rx_buf_list[i]) { card 770 drivers/net/wireless/marvell/mwifiex/pcie.c skb = card->rx_buf_list[i]; card 777 drivers/net/wireless/marvell/mwifiex/pcie.c desc = card->rxbd_ring[i]; card 778 drivers/net/wireless/marvell/mwifiex/pcie.c if (card->rx_buf_list[i]) { card 779 drivers/net/wireless/marvell/mwifiex/pcie.c skb = card->rx_buf_list[i]; card 786 drivers/net/wireless/marvell/mwifiex/pcie.c card->rx_buf_list[i] = NULL; card 797 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 803 drivers/net/wireless/marvell/mwifiex/pcie.c desc = card->evtbd_ring[i]; card 804 drivers/net/wireless/marvell/mwifiex/pcie.c if (card->evt_buf_list[i]) { card 805 drivers/net/wireless/marvell/mwifiex/pcie.c skb = card->evt_buf_list[i]; card 810 drivers/net/wireless/marvell/mwifiex/pcie.c card->evt_buf_list[i] = NULL; card 821 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 822 drivers/net/wireless/marvell/mwifiex/pcie.c const struct mwifiex_pcie_card_reg *reg = card->pcie.reg; card 829 drivers/net/wireless/marvell/mwifiex/pcie.c card->txbd_wrptr = 0; card 832 drivers/net/wireless/marvell/mwifiex/pcie.c card->txbd_rdptr = 0; card 834 drivers/net/wireless/marvell/mwifiex/pcie.c card->txbd_rdptr |= reg->tx_rollover_ind; card 839 drivers/net/wireless/marvell/mwifiex/pcie.c card->txbd_ring_size = sizeof(struct mwifiex_pfu_buf_desc) * card 842 drivers/net/wireless/marvell/mwifiex/pcie.c card->txbd_ring_size = sizeof(struct mwifiex_pcie_buf_desc) * card 847 drivers/net/wireless/marvell/mwifiex/pcie.c card->txbd_ring_size); card 848 drivers/net/wireless/marvell/mwifiex/pcie.c card->txbd_ring_vbase = pci_alloc_consistent(card->dev, card 849 drivers/net/wireless/marvell/mwifiex/pcie.c card->txbd_ring_size, card 850 drivers/net/wireless/marvell/mwifiex/pcie.c &card->txbd_ring_pbase); card 851 drivers/net/wireless/marvell/mwifiex/pcie.c if (!card->txbd_ring_vbase) { card 854 drivers/net/wireless/marvell/mwifiex/pcie.c card->txbd_ring_size); card 859 drivers/net/wireless/marvell/mwifiex/pcie.c card->txbd_ring_vbase, (unsigned int)card->txbd_ring_pbase, card 860 drivers/net/wireless/marvell/mwifiex/pcie.c (u32)((u64)card->txbd_ring_pbase >> 32), card 861 drivers/net/wireless/marvell/mwifiex/pcie.c card->txbd_ring_size); card 868 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 869 drivers/net/wireless/marvell/mwifiex/pcie.c const struct mwifiex_pcie_card_reg *reg = card->pcie.reg; card 873 drivers/net/wireless/marvell/mwifiex/pcie.c if (card->txbd_ring_vbase) card 874 drivers/net/wireless/marvell/mwifiex/pcie.c pci_free_consistent(card->dev, card->txbd_ring_size, card 875 drivers/net/wireless/marvell/mwifiex/pcie.c card->txbd_ring_vbase, card 876 drivers/net/wireless/marvell/mwifiex/pcie.c card->txbd_ring_pbase); card 877 drivers/net/wireless/marvell/mwifiex/pcie.c card->txbd_ring_size = 0; card 878 drivers/net/wireless/marvell/mwifiex/pcie.c card->txbd_wrptr = 0; card 879 drivers/net/wireless/marvell/mwifiex/pcie.c card->txbd_rdptr = 0 | reg->tx_rollover_ind; card 880 drivers/net/wireless/marvell/mwifiex/pcie.c card->txbd_ring_vbase = NULL; card 881 drivers/net/wireless/marvell/mwifiex/pcie.c card->txbd_ring_pbase = 0; card 891 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 892 drivers/net/wireless/marvell/mwifiex/pcie.c const struct mwifiex_pcie_card_reg *reg = card->pcie.reg; card 899 drivers/net/wireless/marvell/mwifiex/pcie.c card->rxbd_wrptr = 0; card 900 drivers/net/wireless/marvell/mwifiex/pcie.c card->rxbd_rdptr = reg->rx_rollover_ind; card 903 drivers/net/wireless/marvell/mwifiex/pcie.c card->rxbd_ring_size = sizeof(struct mwifiex_pfu_buf_desc) * card 906 drivers/net/wireless/marvell/mwifiex/pcie.c card->rxbd_ring_size = sizeof(struct mwifiex_pcie_buf_desc) * card 911 drivers/net/wireless/marvell/mwifiex/pcie.c card->rxbd_ring_size); card 912 drivers/net/wireless/marvell/mwifiex/pcie.c card->rxbd_ring_vbase = pci_alloc_consistent(card->dev, card 913 drivers/net/wireless/marvell/mwifiex/pcie.c card->rxbd_ring_size, card 914 drivers/net/wireless/marvell/mwifiex/pcie.c &card->rxbd_ring_pbase); card 915 drivers/net/wireless/marvell/mwifiex/pcie.c if (!card->rxbd_ring_vbase) { card 918 drivers/net/wireless/marvell/mwifiex/pcie.c card->rxbd_ring_size); card 924 drivers/net/wireless/marvell/mwifiex/pcie.c card->rxbd_ring_vbase, (u32)card->rxbd_ring_pbase, card 925 drivers/net/wireless/marvell/mwifiex/pcie.c (u32)((u64)card->rxbd_ring_pbase >> 32), card 926 drivers/net/wireless/marvell/mwifiex/pcie.c card->rxbd_ring_size); card 936 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 937 drivers/net/wireless/marvell/mwifiex/pcie.c const struct mwifiex_pcie_card_reg *reg = card->pcie.reg; card 941 drivers/net/wireless/marvell/mwifiex/pcie.c if (card->rxbd_ring_vbase) card 942 drivers/net/wireless/marvell/mwifiex/pcie.c pci_free_consistent(card->dev, card->rxbd_ring_size, card 943 drivers/net/wireless/marvell/mwifiex/pcie.c card->rxbd_ring_vbase, card 944 drivers/net/wireless/marvell/mwifiex/pcie.c card->rxbd_ring_pbase); card 945 drivers/net/wireless/marvell/mwifiex/pcie.c card->rxbd_ring_size = 0; card 946 drivers/net/wireless/marvell/mwifiex/pcie.c card->rxbd_wrptr = 0; card 947 drivers/net/wireless/marvell/mwifiex/pcie.c card->rxbd_rdptr = 0 | reg->rx_rollover_ind; card 948 drivers/net/wireless/marvell/mwifiex/pcie.c card->rxbd_ring_vbase = NULL; card 949 drivers/net/wireless/marvell/mwifiex/pcie.c card->rxbd_ring_pbase = 0; card 959 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 960 drivers/net/wireless/marvell/mwifiex/pcie.c const struct mwifiex_pcie_card_reg *reg = card->pcie.reg; card 967 drivers/net/wireless/marvell/mwifiex/pcie.c card->evtbd_wrptr = 0; card 968 drivers/net/wireless/marvell/mwifiex/pcie.c card->evtbd_rdptr = reg->evt_rollover_ind; card 970 drivers/net/wireless/marvell/mwifiex/pcie.c card->evtbd_ring_size = sizeof(struct mwifiex_evt_buf_desc) * card 975 drivers/net/wireless/marvell/mwifiex/pcie.c card->evtbd_ring_size); card 976 drivers/net/wireless/marvell/mwifiex/pcie.c card->evtbd_ring_vbase = pci_alloc_consistent(card->dev, card 977 drivers/net/wireless/marvell/mwifiex/pcie.c card->evtbd_ring_size, card 978 drivers/net/wireless/marvell/mwifiex/pcie.c &card->evtbd_ring_pbase); card 979 drivers/net/wireless/marvell/mwifiex/pcie.c if (!card->evtbd_ring_vbase) { card 982 drivers/net/wireless/marvell/mwifiex/pcie.c card->evtbd_ring_size); card 988 drivers/net/wireless/marvell/mwifiex/pcie.c card->evtbd_ring_vbase, (u32)card->evtbd_ring_pbase, card 989 drivers/net/wireless/marvell/mwifiex/pcie.c (u32)((u64)card->evtbd_ring_pbase >> 32), card 990 drivers/net/wireless/marvell/mwifiex/pcie.c card->evtbd_ring_size); card 1000 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 1001 drivers/net/wireless/marvell/mwifiex/pcie.c const struct mwifiex_pcie_card_reg *reg = card->pcie.reg; card 1005 drivers/net/wireless/marvell/mwifiex/pcie.c if (card->evtbd_ring_vbase) card 1006 drivers/net/wireless/marvell/mwifiex/pcie.c pci_free_consistent(card->dev, card->evtbd_ring_size, card 1007 drivers/net/wireless/marvell/mwifiex/pcie.c card->evtbd_ring_vbase, card 1008 drivers/net/wireless/marvell/mwifiex/pcie.c card->evtbd_ring_pbase); card 1009 drivers/net/wireless/marvell/mwifiex/pcie.c card->evtbd_wrptr = 0; card 1010 drivers/net/wireless/marvell/mwifiex/pcie.c card->evtbd_rdptr = 0 | reg->evt_rollover_ind; card 1011 drivers/net/wireless/marvell/mwifiex/pcie.c card->evtbd_ring_size = 0; card 1012 drivers/net/wireless/marvell/mwifiex/pcie.c card->evtbd_ring_vbase = NULL; card 1013 drivers/net/wireless/marvell/mwifiex/pcie.c card->evtbd_ring_pbase = 0; card 1023 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 1040 drivers/net/wireless/marvell/mwifiex/pcie.c card->cmdrsp_buf = skb; card 1050 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card; card 1055 drivers/net/wireless/marvell/mwifiex/pcie.c card = adapter->card; card 1057 drivers/net/wireless/marvell/mwifiex/pcie.c if (card && card->cmdrsp_buf) { card 1058 drivers/net/wireless/marvell/mwifiex/pcie.c mwifiex_unmap_pci_memory(adapter, card->cmdrsp_buf, card 1060 drivers/net/wireless/marvell/mwifiex/pcie.c dev_kfree_skb_any(card->cmdrsp_buf); card 1061 drivers/net/wireless/marvell/mwifiex/pcie.c card->cmdrsp_buf = NULL; card 1064 drivers/net/wireless/marvell/mwifiex/pcie.c if (card && card->cmd_buf) { card 1065 drivers/net/wireless/marvell/mwifiex/pcie.c mwifiex_unmap_pci_memory(adapter, card->cmd_buf, card 1067 drivers/net/wireless/marvell/mwifiex/pcie.c dev_kfree_skb_any(card->cmd_buf); card 1068 drivers/net/wireless/marvell/mwifiex/pcie.c card->cmd_buf = NULL; card 1078 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 1081 drivers/net/wireless/marvell/mwifiex/pcie.c card->sleep_cookie_vbase = pci_alloc_consistent(card->dev, sizeof(u32), card 1082 drivers/net/wireless/marvell/mwifiex/pcie.c &card->sleep_cookie_pbase); card 1083 drivers/net/wireless/marvell/mwifiex/pcie.c if (!card->sleep_cookie_vbase) { card 1090 drivers/net/wireless/marvell/mwifiex/pcie.c put_unaligned(tmp, card->sleep_cookie_vbase); card 1094 drivers/net/wireless/marvell/mwifiex/pcie.c get_unaligned(card->sleep_cookie_vbase)); card 1104 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card; card 1109 drivers/net/wireless/marvell/mwifiex/pcie.c card = adapter->card; card 1111 drivers/net/wireless/marvell/mwifiex/pcie.c if (card && card->sleep_cookie_vbase) { card 1112 drivers/net/wireless/marvell/mwifiex/pcie.c pci_free_consistent(card->dev, sizeof(u32), card 1113 drivers/net/wireless/marvell/mwifiex/pcie.c card->sleep_cookie_vbase, card 1114 drivers/net/wireless/marvell/mwifiex/pcie.c card->sleep_cookie_pbase); card 1115 drivers/net/wireless/marvell/mwifiex/pcie.c card->sleep_cookie_vbase = NULL; card 1127 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 1129 drivers/net/wireless/marvell/mwifiex/pcie.c if (!mwifiex_pcie_txbd_empty(card, card->txbd_rdptr)) { card 1130 drivers/net/wireless/marvell/mwifiex/pcie.c card->txbd_flush = 1; card 1153 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 1154 drivers/net/wireless/marvell/mwifiex/pcie.c const struct mwifiex_pcie_card_reg *reg = card->pcie.reg; card 1168 drivers/net/wireless/marvell/mwifiex/pcie.c card->txbd_rdptr, rdptr); card 1172 drivers/net/wireless/marvell/mwifiex/pcie.c while (((card->txbd_rdptr & reg->tx_mask) != card 1174 drivers/net/wireless/marvell/mwifiex/pcie.c ((card->txbd_rdptr & reg->tx_rollover_ind) != card 1176 drivers/net/wireless/marvell/mwifiex/pcie.c wrdoneidx = (card->txbd_rdptr & reg->tx_mask) >> card 1179 drivers/net/wireless/marvell/mwifiex/pcie.c skb = card->tx_buf_list[wrdoneidx]; card 1190 drivers/net/wireless/marvell/mwifiex/pcie.c if (card->txbd_flush) card 1198 drivers/net/wireless/marvell/mwifiex/pcie.c card->tx_buf_list[wrdoneidx] = NULL; card 1201 drivers/net/wireless/marvell/mwifiex/pcie.c desc2 = card->txbd_ring[wrdoneidx]; card 1204 drivers/net/wireless/marvell/mwifiex/pcie.c desc = card->txbd_ring[wrdoneidx]; card 1207 drivers/net/wireless/marvell/mwifiex/pcie.c switch (card->dev->device) { card 1209 drivers/net/wireless/marvell/mwifiex/pcie.c card->txbd_rdptr++; card 1213 drivers/net/wireless/marvell/mwifiex/pcie.c card->txbd_rdptr += reg->ring_tx_start_ptr; card 1218 drivers/net/wireless/marvell/mwifiex/pcie.c if ((card->txbd_rdptr & reg->tx_mask) == num_tx_buffs) card 1219 drivers/net/wireless/marvell/mwifiex/pcie.c card->txbd_rdptr = ((card->txbd_rdptr & card 1227 drivers/net/wireless/marvell/mwifiex/pcie.c if (card->txbd_flush) { card 1228 drivers/net/wireless/marvell/mwifiex/pcie.c if (mwifiex_pcie_txbd_empty(card, card->txbd_rdptr)) card 1229 drivers/net/wireless/marvell/mwifiex/pcie.c card->txbd_flush = 0; card 1248 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 1249 drivers/net/wireless/marvell/mwifiex/pcie.c const struct mwifiex_pcie_card_reg *reg = card->pcie.reg; card 1269 drivers/net/wireless/marvell/mwifiex/pcie.c card->txbd_rdptr, card->txbd_wrptr); card 1270 drivers/net/wireless/marvell/mwifiex/pcie.c if (mwifiex_pcie_txbd_not_full(card)) { card 1282 drivers/net/wireless/marvell/mwifiex/pcie.c wrindx = (card->txbd_wrptr & reg->tx_mask) >> reg->tx_start_ptr; card 1284 drivers/net/wireless/marvell/mwifiex/pcie.c card->tx_buf_list[wrindx] = skb; card 1288 drivers/net/wireless/marvell/mwifiex/pcie.c desc2 = card->txbd_ring[wrindx]; card 1296 drivers/net/wireless/marvell/mwifiex/pcie.c desc = card->txbd_ring[wrindx]; card 1303 drivers/net/wireless/marvell/mwifiex/pcie.c switch (card->dev->device) { card 1305 drivers/net/wireless/marvell/mwifiex/pcie.c card->txbd_wrptr++; card 1309 drivers/net/wireless/marvell/mwifiex/pcie.c card->txbd_wrptr += reg->ring_tx_start_ptr; card 1313 drivers/net/wireless/marvell/mwifiex/pcie.c if ((card->txbd_wrptr & reg->tx_mask) == num_tx_buffs) card 1314 drivers/net/wireless/marvell/mwifiex/pcie.c card->txbd_wrptr = ((card->txbd_wrptr & card 1318 drivers/net/wireless/marvell/mwifiex/pcie.c rx_val = card->rxbd_rdptr & reg->rx_wrap_mask; card 1321 drivers/net/wireless/marvell/mwifiex/pcie.c card->txbd_wrptr | rx_val)) { card 1327 drivers/net/wireless/marvell/mwifiex/pcie.c if ((mwifiex_pcie_txbd_not_full(card)) && card 1346 drivers/net/wireless/marvell/mwifiex/pcie.c card->txbd_rdptr, card->txbd_wrptr); card 1362 drivers/net/wireless/marvell/mwifiex/pcie.c card->tx_buf_list[wrindx] = NULL; card 1378 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 1379 drivers/net/wireless/marvell/mwifiex/pcie.c const struct mwifiex_pcie_card_reg *reg = card->pcie.reg; card 1397 drivers/net/wireless/marvell/mwifiex/pcie.c card->rxbd_wrptr = wrptr; card 1400 drivers/net/wireless/marvell/mwifiex/pcie.c (card->rxbd_rdptr & reg->rx_mask)) || card 1402 drivers/net/wireless/marvell/mwifiex/pcie.c (card->rxbd_rdptr & reg->rx_rollover_ind))) { card 1406 drivers/net/wireless/marvell/mwifiex/pcie.c rd_index = card->rxbd_rdptr & reg->rx_mask; card 1407 drivers/net/wireless/marvell/mwifiex/pcie.c skb_data = card->rx_buf_list[rd_index]; card 1416 drivers/net/wireless/marvell/mwifiex/pcie.c card->rx_buf_list[rd_index] = NULL; card 1426 drivers/net/wireless/marvell/mwifiex/pcie.c rx_len, card->rxbd_rdptr, wrptr); card 1432 drivers/net/wireless/marvell/mwifiex/pcie.c card->rxbd_rdptr, wrptr, rx_len); card 1461 drivers/net/wireless/marvell/mwifiex/pcie.c card->rx_buf_list[rd_index] = skb_tmp; card 1464 drivers/net/wireless/marvell/mwifiex/pcie.c desc2 = card->rxbd_ring[rd_index]; card 1471 drivers/net/wireless/marvell/mwifiex/pcie.c desc = card->rxbd_ring[rd_index]; card 1477 drivers/net/wireless/marvell/mwifiex/pcie.c if ((++card->rxbd_rdptr & reg->rx_mask) == card 1479 drivers/net/wireless/marvell/mwifiex/pcie.c card->rxbd_rdptr = ((card->rxbd_rdptr & card 1485 drivers/net/wireless/marvell/mwifiex/pcie.c card->rxbd_rdptr, wrptr); card 1487 drivers/net/wireless/marvell/mwifiex/pcie.c tx_val = card->txbd_wrptr & reg->tx_wrap_mask; card 1490 drivers/net/wireless/marvell/mwifiex/pcie.c card->rxbd_rdptr | tx_val)) { card 1506 drivers/net/wireless/marvell/mwifiex/pcie.c card->rxbd_wrptr = wrptr; card 1520 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 1521 drivers/net/wireless/marvell/mwifiex/pcie.c const struct mwifiex_pcie_card_reg *reg = card->pcie.reg; card 1584 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 1585 drivers/net/wireless/marvell/mwifiex/pcie.c const struct mwifiex_pcie_card_reg *reg = card->pcie.reg; card 1586 drivers/net/wireless/marvell/mwifiex/pcie.c int tx_wrap = card->txbd_wrptr & reg->tx_wrap_mask; card 1589 drivers/net/wireless/marvell/mwifiex/pcie.c if (mwifiex_write_reg(adapter, reg->rx_rdptr, card->rxbd_rdptr | card 1603 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 1604 drivers/net/wireless/marvell/mwifiex/pcie.c const struct mwifiex_pcie_card_reg *reg = card->pcie.reg; card 1617 drivers/net/wireless/marvell/mwifiex/pcie.c if (!card->cmdrsp_buf) { card 1634 drivers/net/wireless/marvell/mwifiex/pcie.c card->cmd_buf = skb; card 1651 drivers/net/wireless/marvell/mwifiex/pcie.c if (card->cmdrsp_buf) { card 1652 drivers/net/wireless/marvell/mwifiex/pcie.c cmdrsp_buf_pa = MWIFIEX_SKB_DMA_ADDR(card->cmdrsp_buf); card 1673 drivers/net/wireless/marvell/mwifiex/pcie.c cmd_buf_pa = MWIFIEX_SKB_DMA_ADDR(card->cmd_buf); card 1693 drivers/net/wireless/marvell/mwifiex/pcie.c card->cmd_buf->len)) { card 1721 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 1722 drivers/net/wireless/marvell/mwifiex/pcie.c const struct mwifiex_pcie_card_reg *reg = card->pcie.reg; card 1723 drivers/net/wireless/marvell/mwifiex/pcie.c struct sk_buff *skb = card->cmdrsp_buf; card 1733 drivers/net/wireless/marvell/mwifiex/pcie.c pci_dma_sync_single_for_cpu(card->dev, card 1739 drivers/net/wireless/marvell/mwifiex/pcie.c if (card->cmd_buf) { card 1740 drivers/net/wireless/marvell/mwifiex/pcie.c mwifiex_unmap_pci_memory(adapter, card->cmd_buf, card 1742 drivers/net/wireless/marvell/mwifiex/pcie.c dev_kfree_skb_any(card->cmd_buf); card 1743 drivers/net/wireless/marvell/mwifiex/pcie.c card->cmd_buf = NULL; card 1752 drivers/net/wireless/marvell/mwifiex/pcie.c pci_dma_sync_single_for_device(card->dev, card 1790 drivers/net/wireless/marvell/mwifiex/pcie.c card->cmdrsp_buf = NULL; card 1818 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 1821 drivers/net/wireless/marvell/mwifiex/pcie.c card->cmdrsp_buf = skb; card 1822 drivers/net/wireless/marvell/mwifiex/pcie.c skb_push(card->cmdrsp_buf, adapter->intf_hdr_len); card 1836 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 1837 drivers/net/wireless/marvell/mwifiex/pcie.c const struct mwifiex_pcie_card_reg *reg = card->pcie.reg; card 1838 drivers/net/wireless/marvell/mwifiex/pcie.c u32 rdptr = card->evtbd_rdptr & MWIFIEX_EVTBD_MASK; card 1867 drivers/net/wireless/marvell/mwifiex/pcie.c card->evtbd_rdptr, wrptr); card 1868 drivers/net/wireless/marvell/mwifiex/pcie.c if (((wrptr & MWIFIEX_EVTBD_MASK) != (card->evtbd_rdptr card 1871 drivers/net/wireless/marvell/mwifiex/pcie.c (card->evtbd_rdptr & reg->evt_rollover_ind))) { card 1878 drivers/net/wireless/marvell/mwifiex/pcie.c skb_cmd = card->evt_buf_list[rdptr]; card 1883 drivers/net/wireless/marvell/mwifiex/pcie.c card->evt_buf_list[rdptr] = NULL; card 1884 drivers/net/wireless/marvell/mwifiex/pcie.c desc = card->evtbd_ring[rdptr]; card 1930 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 1931 drivers/net/wireless/marvell/mwifiex/pcie.c const struct mwifiex_pcie_card_reg *reg = card->pcie.reg; card 1933 drivers/net/wireless/marvell/mwifiex/pcie.c u32 rdptr = card->evtbd_rdptr & MWIFIEX_EVTBD_MASK; card 1954 drivers/net/wireless/marvell/mwifiex/pcie.c if (!card->evt_buf_list[rdptr]) { card 1961 drivers/net/wireless/marvell/mwifiex/pcie.c card->evt_buf_list[rdptr] = skb; card 1962 drivers/net/wireless/marvell/mwifiex/pcie.c desc = card->evtbd_ring[rdptr]; card 1970 drivers/net/wireless/marvell/mwifiex/pcie.c rdptr, card->evt_buf_list[rdptr], skb); card 1973 drivers/net/wireless/marvell/mwifiex/pcie.c if ((++card->evtbd_rdptr & MWIFIEX_EVTBD_MASK) == MWIFIEX_MAX_EVT_BD) { card 1974 drivers/net/wireless/marvell/mwifiex/pcie.c card->evtbd_rdptr = ((card->evtbd_rdptr & card 1981 drivers/net/wireless/marvell/mwifiex/pcie.c card->evtbd_rdptr, wrptr); card 1985 drivers/net/wireless/marvell/mwifiex/pcie.c card->evtbd_rdptr)) { card 2115 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 2116 drivers/net/wireless/marvell/mwifiex/pcie.c const struct mwifiex_pcie_card_reg *reg = card->pcie.reg; card 2214 drivers/net/wireless/marvell/mwifiex/pcie.c tx_blocks = (txlen + card->pcie.blksz_fw_dl - 1) / card 2215 drivers/net/wireless/marvell/mwifiex/pcie.c card->pcie.blksz_fw_dl; card 2222 drivers/net/wireless/marvell/mwifiex/pcie.c skb_trim(skb, tx_blocks * card->pcie.blksz_fw_dl); card 2281 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 2282 drivers/net/wireless/marvell/mwifiex/pcie.c const struct mwifiex_pcie_card_reg *reg = card->pcie.reg; card 2334 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 2335 drivers/net/wireless/marvell/mwifiex/pcie.c const struct mwifiex_pcie_card_reg *reg = card->pcie.reg; card 2358 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 2360 drivers/net/wireless/marvell/mwifiex/pcie.c if (card->msi_enable) { card 2370 drivers/net/wireless/marvell/mwifiex/pcie.c if (card->msix_enable && msg_id >= 0) { card 2422 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card; card 2425 drivers/net/wireless/marvell/mwifiex/pcie.c card = pci_get_drvdata(pdev); card 2427 drivers/net/wireless/marvell/mwifiex/pcie.c if (!card->adapter) { card 2428 drivers/net/wireless/marvell/mwifiex/pcie.c pr_err("info: %s: card=%p adapter=%p\n", __func__, card, card 2429 drivers/net/wireless/marvell/mwifiex/pcie.c card ? card->adapter : NULL); card 2432 drivers/net/wireless/marvell/mwifiex/pcie.c adapter = card->adapter; card 2437 drivers/net/wireless/marvell/mwifiex/pcie.c if (card->msix_enable) card 2466 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 2469 drivers/net/wireless/marvell/mwifiex/pcie.c if (!card->msi_enable) { card 2476 drivers/net/wireless/marvell/mwifiex/pcie.c if (card->msi_enable) { card 2536 drivers/net/wireless/marvell/mwifiex/pcie.c if (!card->msi_enable && !card->msix_enable && card 2580 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 2581 drivers/net/wireless/marvell/mwifiex/pcie.c const struct mwifiex_pcie_card_reg *reg = card->pcie.reg; card 2619 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 2620 drivers/net/wireless/marvell/mwifiex/pcie.c const struct mwifiex_pcie_card_reg *reg = card->pcie.reg; card 2660 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 2661 drivers/net/wireless/marvell/mwifiex/pcie.c const struct mwifiex_pcie_card_reg *creg = card->pcie.reg; card 2669 drivers/net/wireless/marvell/mwifiex/pcie.c if (!card->pcie.can_dump_fw) card 2803 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 2808 drivers/net/wireless/marvell/mwifiex/pcie.c pci_try_reset_function(card->dev); card 2813 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = card 2817 drivers/net/wireless/marvell/mwifiex/pcie.c &card->work_flags)) card 2818 drivers/net/wireless/marvell/mwifiex/pcie.c mwifiex_pcie_device_dump_work(card->adapter); card 2820 drivers/net/wireless/marvell/mwifiex/pcie.c &card->work_flags)) card 2821 drivers/net/wireless/marvell/mwifiex/pcie.c mwifiex_pcie_card_reset_work(card->adapter); card 2827 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 2830 drivers/net/wireless/marvell/mwifiex/pcie.c &card->work_flags)) card 2831 drivers/net/wireless/marvell/mwifiex/pcie.c schedule_work(&card->work); card 2836 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 2838 drivers/net/wireless/marvell/mwifiex/pcie.c if (!test_and_set_bit(MWIFIEX_IFACE_WORK_CARD_RESET, &card->work_flags)) card 2839 drivers/net/wireless/marvell/mwifiex/pcie.c schedule_work(&card->work); card 2844 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 2845 drivers/net/wireless/marvell/mwifiex/pcie.c const struct mwifiex_pcie_card_reg *reg = card->pcie.reg; card 2848 drivers/net/wireless/marvell/mwifiex/pcie.c card->cmdrsp_buf = NULL; card 2880 drivers/net/wireless/marvell/mwifiex/pcie.c card->sleep_cookie_vbase = NULL; card 2899 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 2900 drivers/net/wireless/marvell/mwifiex/pcie.c const struct mwifiex_pcie_card_reg *reg = card->pcie.reg; card 2916 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 2918 drivers/net/wireless/marvell/mwifiex/pcie.c struct pci_dev *pdev = card->dev; card 2920 drivers/net/wireless/marvell/mwifiex/pcie.c pci_set_drvdata(pdev, card); card 2945 drivers/net/wireless/marvell/mwifiex/pcie.c card->pci_mmap = pci_iomap(pdev, 0, 0); card 2946 drivers/net/wireless/marvell/mwifiex/pcie.c if (!card->pci_mmap) { card 2956 drivers/net/wireless/marvell/mwifiex/pcie.c card->pci_mmap1 = pci_iomap(pdev, 2, 0); card 2957 drivers/net/wireless/marvell/mwifiex/pcie.c if (!card->pci_mmap1) { card 2964 drivers/net/wireless/marvell/mwifiex/pcie.c card->pci_mmap, card->pci_mmap1); card 2973 drivers/net/wireless/marvell/mwifiex/pcie.c pci_iounmap(pdev, card->pci_mmap1); card 2977 drivers/net/wireless/marvell/mwifiex/pcie.c pci_iounmap(pdev, card->pci_mmap); card 2992 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 2993 drivers/net/wireless/marvell/mwifiex/pcie.c struct pci_dev *pdev = card->dev; card 2994 drivers/net/wireless/marvell/mwifiex/pcie.c const struct mwifiex_pcie_card_reg *reg = card->pcie.reg; card 2998 drivers/net/wireless/marvell/mwifiex/pcie.c cancel_work_sync(&card->work); card 3011 drivers/net/wireless/marvell/mwifiex/pcie.c pci_iounmap(pdev, card->pci_mmap); card 3012 drivers/net/wireless/marvell/mwifiex/pcie.c pci_iounmap(pdev, card->pci_mmap1); card 3022 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 3023 drivers/net/wireless/marvell/mwifiex/pcie.c struct pci_dev *pdev = card->dev; card 3025 drivers/net/wireless/marvell/mwifiex/pcie.c if (card->pcie.reg->msix_support) { card 3027 drivers/net/wireless/marvell/mwifiex/pcie.c card->msix_entries[i].entry = i; card 3028 drivers/net/wireless/marvell/mwifiex/pcie.c ret = pci_enable_msix_exact(pdev, card->msix_entries, card 3032 drivers/net/wireless/marvell/mwifiex/pcie.c card->msix_ctx[i].dev = pdev; card 3033 drivers/net/wireless/marvell/mwifiex/pcie.c card->msix_ctx[i].msg_id = i; card 3035 drivers/net/wireless/marvell/mwifiex/pcie.c ret = request_irq(card->msix_entries[i].vector, card 3038 drivers/net/wireless/marvell/mwifiex/pcie.c &card->msix_ctx[i]); card 3047 drivers/net/wireless/marvell/mwifiex/pcie.c free_irq(card->msix_entries[j].vector, card 3048 drivers/net/wireless/marvell/mwifiex/pcie.c &card->msix_ctx[i]); card 3052 drivers/net/wireless/marvell/mwifiex/pcie.c card->msix_enable = 1; card 3061 drivers/net/wireless/marvell/mwifiex/pcie.c card->msi_enable = 1; card 3063 drivers/net/wireless/marvell/mwifiex/pcie.c mwifiex_dbg(adapter, INFO, "msi_enable = %d\n", card->msi_enable); card 3065 drivers/net/wireless/marvell/mwifiex/pcie.c card->share_irq_ctx.dev = pdev; card 3066 drivers/net/wireless/marvell/mwifiex/pcie.c card->share_irq_ctx.msg_id = -1; card 3068 drivers/net/wireless/marvell/mwifiex/pcie.c "MRVL_PCIE", &card->share_irq_ctx); card 3086 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 3088 drivers/net/wireless/marvell/mwifiex/pcie.c switch (card->dev->device) { card 3135 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 3138 drivers/net/wireless/marvell/mwifiex/pcie.c card->adapter = adapter; card 3143 drivers/net/wireless/marvell/mwifiex/pcie.c adapter->tx_buf_size = card->pcie.tx_buf_size; card 3144 drivers/net/wireless/marvell/mwifiex/pcie.c adapter->mem_type_mapping_tbl = card->pcie.mem_type_mapping_tbl; card 3145 drivers/net/wireless/marvell/mwifiex/pcie.c adapter->num_mem_types = card->pcie.num_mem_types; card 3146 drivers/net/wireless/marvell/mwifiex/pcie.c adapter->ext_scan = card->pcie.can_ext_scan; card 3160 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 3161 drivers/net/wireless/marvell/mwifiex/pcie.c struct pci_dev *pdev = card->dev; card 3164 drivers/net/wireless/marvell/mwifiex/pcie.c if (card->msix_enable) { card 3166 drivers/net/wireless/marvell/mwifiex/pcie.c synchronize_irq(card->msix_entries[i].vector); card 3169 drivers/net/wireless/marvell/mwifiex/pcie.c free_irq(card->msix_entries[i].vector, card 3170 drivers/net/wireless/marvell/mwifiex/pcie.c &card->msix_ctx[i]); card 3172 drivers/net/wireless/marvell/mwifiex/pcie.c card->msix_enable = 0; card 3177 drivers/net/wireless/marvell/mwifiex/pcie.c free_irq(card->dev->irq, &card->share_irq_ctx); card 3179 drivers/net/wireless/marvell/mwifiex/pcie.c if (card->msi_enable) card 3182 drivers/net/wireless/marvell/mwifiex/pcie.c card->adapter = NULL; card 3191 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 3192 drivers/net/wireless/marvell/mwifiex/pcie.c struct pci_dev *pdev = card->dev; card 3197 drivers/net/wireless/marvell/mwifiex/pcie.c adapter->tx_buf_size = card->pcie.tx_buf_size; card 3207 drivers/net/wireless/marvell/mwifiex/pcie.c struct pcie_service_card *card = adapter->card; card 3208 drivers/net/wireless/marvell/mwifiex/pcie.c const struct mwifiex_pcie_card_reg *reg = card->pcie.reg; card 3209 drivers/net/wireless/marvell/mwifiex/pcie.c struct pci_dev *pdev = card->dev; card 397 drivers/net/wireless/marvell/mwifiex/pcie.h mwifiex_pcie_txbd_empty(struct pcie_service_card *card, u32 rdptr) card 399 drivers/net/wireless/marvell/mwifiex/pcie.h const struct mwifiex_pcie_card_reg *reg = card->pcie.reg; card 401 drivers/net/wireless/marvell/mwifiex/pcie.h switch (card->dev->device) { card 403 drivers/net/wireless/marvell/mwifiex/pcie.h if (((card->txbd_wrptr & reg->tx_mask) == card 405 drivers/net/wireless/marvell/mwifiex/pcie.h ((card->txbd_wrptr & reg->tx_rollover_ind) != card 411 drivers/net/wireless/marvell/mwifiex/pcie.h if (((card->txbd_wrptr & reg->tx_mask) == card 413 drivers/net/wireless/marvell/mwifiex/pcie.h ((card->txbd_wrptr & reg->tx_rollover_ind) == card 423 drivers/net/wireless/marvell/mwifiex/pcie.h mwifiex_pcie_txbd_not_full(struct pcie_service_card *card) card 425 drivers/net/wireless/marvell/mwifiex/pcie.h const struct mwifiex_pcie_card_reg *reg = card->pcie.reg; card 427 drivers/net/wireless/marvell/mwifiex/pcie.h switch (card->dev->device) { card 429 drivers/net/wireless/marvell/mwifiex/pcie.h if (((card->txbd_wrptr & reg->tx_mask) != card 430 drivers/net/wireless/marvell/mwifiex/pcie.h (card->txbd_rdptr & reg->tx_mask)) || card 431 drivers/net/wireless/marvell/mwifiex/pcie.h ((card->txbd_wrptr & reg->tx_rollover_ind) != card 432 drivers/net/wireless/marvell/mwifiex/pcie.h (card->txbd_rdptr & reg->tx_rollover_ind))) card 437 drivers/net/wireless/marvell/mwifiex/pcie.h if (((card->txbd_wrptr & reg->tx_mask) != card 438 drivers/net/wireless/marvell/mwifiex/pcie.h (card->txbd_rdptr & reg->tx_mask)) || card 439 drivers/net/wireless/marvell/mwifiex/pcie.h ((card->txbd_wrptr & reg->tx_rollover_ind) == card 440 drivers/net/wireless/marvell/mwifiex/pcie.h (card->txbd_rdptr & reg->tx_rollover_ind))) card 93 drivers/net/wireless/marvell/mwifiex/sdio.c struct sdio_mmc_card *card = NULL; card 98 drivers/net/wireless/marvell/mwifiex/sdio.c card = devm_kzalloc(&func->dev, sizeof(*card), GFP_KERNEL); card 99 drivers/net/wireless/marvell/mwifiex/sdio.c if (!card) card 102 drivers/net/wireless/marvell/mwifiex/sdio.c init_completion(&card->fw_done); card 104 drivers/net/wireless/marvell/mwifiex/sdio.c card->func = func; card 106 drivers/net/wireless/marvell/mwifiex/sdio.c func->card->quirks |= MMC_QUIRK_BLKSZ_FOR_BYTE_MODE; card 111 drivers/net/wireless/marvell/mwifiex/sdio.c card->firmware = data->firmware; card 112 drivers/net/wireless/marvell/mwifiex/sdio.c card->reg = data->reg; card 113 drivers/net/wireless/marvell/mwifiex/sdio.c card->max_ports = data->max_ports; card 114 drivers/net/wireless/marvell/mwifiex/sdio.c card->mp_agg_pkt_limit = data->mp_agg_pkt_limit; card 115 drivers/net/wireless/marvell/mwifiex/sdio.c card->supports_sdio_new_mode = data->supports_sdio_new_mode; card 116 drivers/net/wireless/marvell/mwifiex/sdio.c card->has_control_mask = data->has_control_mask; card 117 drivers/net/wireless/marvell/mwifiex/sdio.c card->tx_buf_size = data->tx_buf_size; card 118 drivers/net/wireless/marvell/mwifiex/sdio.c card->mp_tx_agg_buf_size = data->mp_tx_agg_buf_size; card 119 drivers/net/wireless/marvell/mwifiex/sdio.c card->mp_rx_agg_buf_size = data->mp_rx_agg_buf_size; card 120 drivers/net/wireless/marvell/mwifiex/sdio.c card->can_dump_fw = data->can_dump_fw; card 121 drivers/net/wireless/marvell/mwifiex/sdio.c card->fw_dump_enh = data->fw_dump_enh; card 122 drivers/net/wireless/marvell/mwifiex/sdio.c card->can_auto_tdls = data->can_auto_tdls; card 123 drivers/net/wireless/marvell/mwifiex/sdio.c card->can_ext_scan = data->can_ext_scan; card 124 drivers/net/wireless/marvell/mwifiex/sdio.c INIT_WORK(&card->work, mwifiex_sdio_work); card 143 drivers/net/wireless/marvell/mwifiex/sdio.c ret = mwifiex_add_card(card, &card->fw_done, &sdio_ops, card 173 drivers/net/wireless/marvell/mwifiex/sdio.c struct sdio_mmc_card *card; card 176 drivers/net/wireless/marvell/mwifiex/sdio.c card = sdio_get_drvdata(func); card 177 drivers/net/wireless/marvell/mwifiex/sdio.c if (!card || !card->adapter) { card 182 drivers/net/wireless/marvell/mwifiex/sdio.c adapter = card->adapter; card 216 drivers/net/wireless/marvell/mwifiex/sdio.c struct sdio_mmc_card *card = adapter->card; card 219 drivers/net/wireless/marvell/mwifiex/sdio.c sdio_claim_host(card->func); card 220 drivers/net/wireless/marvell/mwifiex/sdio.c ret = mwifiex_write_reg_locked(card->func, reg, data); card 221 drivers/net/wireless/marvell/mwifiex/sdio.c sdio_release_host(card->func); card 231 drivers/net/wireless/marvell/mwifiex/sdio.c struct sdio_mmc_card *card = adapter->card; card 235 drivers/net/wireless/marvell/mwifiex/sdio.c sdio_claim_host(card->func); card 236 drivers/net/wireless/marvell/mwifiex/sdio.c val = sdio_readb(card->func, reg, &ret); card 237 drivers/net/wireless/marvell/mwifiex/sdio.c sdio_release_host(card->func); card 252 drivers/net/wireless/marvell/mwifiex/sdio.c struct sdio_mmc_card *card = adapter->card; card 269 drivers/net/wireless/marvell/mwifiex/sdio.c sdio_claim_host(card->func); card 271 drivers/net/wireless/marvell/mwifiex/sdio.c ret = sdio_writesb(card->func, ioport, buffer, blk_cnt * blk_size); card 273 drivers/net/wireless/marvell/mwifiex/sdio.c sdio_release_host(card->func); card 283 drivers/net/wireless/marvell/mwifiex/sdio.c struct sdio_mmc_card *card = adapter->card; card 293 drivers/net/wireless/marvell/mwifiex/sdio.c sdio_claim_host(card->func); card 295 drivers/net/wireless/marvell/mwifiex/sdio.c ret = sdio_readsb(card->func, buffer, ioport, blk_cnt * blk_size); card 298 drivers/net/wireless/marvell/mwifiex/sdio.c sdio_release_host(card->func); card 308 drivers/net/wireless/marvell/mwifiex/sdio.c struct sdio_mmc_card *card = adapter->card; card 309 drivers/net/wireless/marvell/mwifiex/sdio.c const struct mwifiex_sdio_card_reg *reg = card->reg; card 353 drivers/net/wireless/marvell/mwifiex/sdio.c struct sdio_mmc_card *card = adapter->card; card 355 drivers/net/wireless/marvell/mwifiex/sdio.c if (mwifiex_read_reg(adapter, card->reg->status_reg_0, &winner)) card 374 drivers/net/wireless/marvell/mwifiex/sdio.c struct sdio_mmc_card *card; card 380 drivers/net/wireless/marvell/mwifiex/sdio.c card = sdio_get_drvdata(func); card 381 drivers/net/wireless/marvell/mwifiex/sdio.c if (!card) card 384 drivers/net/wireless/marvell/mwifiex/sdio.c wait_for_completion(&card->fw_done); card 386 drivers/net/wireless/marvell/mwifiex/sdio.c adapter = card->adapter; card 418 drivers/net/wireless/marvell/mwifiex/sdio.c struct sdio_mmc_card *card; card 432 drivers/net/wireless/marvell/mwifiex/sdio.c card = sdio_get_drvdata(func); card 433 drivers/net/wireless/marvell/mwifiex/sdio.c if (!card) { card 439 drivers/net/wireless/marvell/mwifiex/sdio.c wait_for_completion(&card->fw_done); card 441 drivers/net/wireless/marvell/mwifiex/sdio.c adapter = card->adapter; card 475 drivers/net/wireless/marvell/mwifiex/sdio.c struct sdio_mmc_card *card; card 477 drivers/net/wireless/marvell/mwifiex/sdio.c card = sdio_get_drvdata(func); card 479 drivers/net/wireless/marvell/mwifiex/sdio.c &card->work_flags)) card 480 drivers/net/wireless/marvell/mwifiex/sdio.c schedule_work(&card->work); card 575 drivers/net/wireless/marvell/mwifiex/sdio.c struct sdio_mmc_card *card = adapter->card; card 578 drivers/net/wireless/marvell/mwifiex/sdio.c sdio_claim_host(card->func); card 580 drivers/net/wireless/marvell/mwifiex/sdio.c sdio_release_host(card->func); card 592 drivers/net/wireless/marvell/mwifiex/sdio.c struct sdio_mmc_card *card = adapter->card; card 597 drivers/net/wireless/marvell/mwifiex/sdio.c if (mwifiex_read_reg(adapter, card->reg->card_cfg_2_1_reg, ®)) card 599 drivers/net/wireless/marvell/mwifiex/sdio.c if (mwifiex_write_reg(adapter, card->reg->card_cfg_2_1_reg, card 604 drivers/net/wireless/marvell/mwifiex/sdio.c if (mwifiex_read_reg(adapter, card->reg->cmd_cfg_0, ®)) card 606 drivers/net/wireless/marvell/mwifiex/sdio.c if (mwifiex_write_reg(adapter, card->reg->cmd_cfg_0, card 613 drivers/net/wireless/marvell/mwifiex/sdio.c if (mwifiex_read_reg(adapter, card->reg->cmd_cfg_1, ®)) card 615 drivers/net/wireless/marvell/mwifiex/sdio.c if (mwifiex_write_reg(adapter, card->reg->cmd_cfg_1, card 632 drivers/net/wireless/marvell/mwifiex/sdio.c struct sdio_mmc_card *card = adapter->card; card 636 drivers/net/wireless/marvell/mwifiex/sdio.c if (card->supports_sdio_new_mode) { card 643 drivers/net/wireless/marvell/mwifiex/sdio.c if (!mwifiex_read_reg(adapter, card->reg->io_port_0_reg, ®)) card 648 drivers/net/wireless/marvell/mwifiex/sdio.c if (!mwifiex_read_reg(adapter, card->reg->io_port_1_reg, ®)) card 653 drivers/net/wireless/marvell/mwifiex/sdio.c if (!mwifiex_read_reg(adapter, card->reg->io_port_2_reg, ®)) card 662 drivers/net/wireless/marvell/mwifiex/sdio.c if (!mwifiex_read_reg(adapter, card->reg->host_int_rsr_reg, ®)) card 663 drivers/net/wireless/marvell/mwifiex/sdio.c mwifiex_write_reg(adapter, card->reg->host_int_rsr_reg, card 664 drivers/net/wireless/marvell/mwifiex/sdio.c reg | card->reg->sdio_int_mask); card 669 drivers/net/wireless/marvell/mwifiex/sdio.c if (!mwifiex_read_reg(adapter, card->reg->card_misc_cfg_reg, ®)) card 670 drivers/net/wireless/marvell/mwifiex/sdio.c mwifiex_write_reg(adapter, card->reg->card_misc_cfg_reg, card 717 drivers/net/wireless/marvell/mwifiex/sdio.c struct sdio_mmc_card *card = adapter->card; card 718 drivers/net/wireless/marvell/mwifiex/sdio.c const struct mwifiex_sdio_card_reg *reg = card->reg; card 719 drivers/net/wireless/marvell/mwifiex/sdio.c u32 rd_bitmap = card->mp_rd_bitmap; card 724 drivers/net/wireless/marvell/mwifiex/sdio.c if (card->supports_sdio_new_mode) { card 732 drivers/net/wireless/marvell/mwifiex/sdio.c if ((card->has_control_mask) && card 733 drivers/net/wireless/marvell/mwifiex/sdio.c (card->mp_rd_bitmap & CTRL_PORT_MASK)) { card 734 drivers/net/wireless/marvell/mwifiex/sdio.c card->mp_rd_bitmap &= (u32) (~CTRL_PORT_MASK); card 738 drivers/net/wireless/marvell/mwifiex/sdio.c *port, card->mp_rd_bitmap); card 742 drivers/net/wireless/marvell/mwifiex/sdio.c if (!(card->mp_rd_bitmap & (1 << card->curr_rd_port))) card 746 drivers/net/wireless/marvell/mwifiex/sdio.c card->mp_rd_bitmap &= (u32)(~(1 << card->curr_rd_port)); card 747 drivers/net/wireless/marvell/mwifiex/sdio.c *port = card->curr_rd_port; card 749 drivers/net/wireless/marvell/mwifiex/sdio.c if (++card->curr_rd_port == card->max_ports) card 750 drivers/net/wireless/marvell/mwifiex/sdio.c card->curr_rd_port = reg->start_rd_port; card 754 drivers/net/wireless/marvell/mwifiex/sdio.c *port, rd_bitmap, card->mp_rd_bitmap); card 768 drivers/net/wireless/marvell/mwifiex/sdio.c struct sdio_mmc_card *card = adapter->card; card 769 drivers/net/wireless/marvell/mwifiex/sdio.c const struct mwifiex_sdio_card_reg *reg = card->reg; card 770 drivers/net/wireless/marvell/mwifiex/sdio.c u32 wr_bitmap = card->mp_wr_bitmap; card 775 drivers/net/wireless/marvell/mwifiex/sdio.c if (!(wr_bitmap & card->mp_data_port_mask)) { card 780 drivers/net/wireless/marvell/mwifiex/sdio.c if (card->mp_wr_bitmap & (1 << card->curr_wr_port)) { card 781 drivers/net/wireless/marvell/mwifiex/sdio.c card->mp_wr_bitmap &= (u32) (~(1 << card->curr_wr_port)); card 782 drivers/net/wireless/marvell/mwifiex/sdio.c *port = card->curr_wr_port; card 783 drivers/net/wireless/marvell/mwifiex/sdio.c if (++card->curr_wr_port == card->mp_end_port) card 784 drivers/net/wireless/marvell/mwifiex/sdio.c card->curr_wr_port = reg->start_wr_port; card 790 drivers/net/wireless/marvell/mwifiex/sdio.c if ((card->has_control_mask) && (*port == CTRL_PORT)) { card 793 drivers/net/wireless/marvell/mwifiex/sdio.c *port, card->curr_wr_port, wr_bitmap, card 794 drivers/net/wireless/marvell/mwifiex/sdio.c card->mp_wr_bitmap); card 800 drivers/net/wireless/marvell/mwifiex/sdio.c *port, wr_bitmap, card->mp_wr_bitmap); card 811 drivers/net/wireless/marvell/mwifiex/sdio.c struct sdio_mmc_card *card = adapter->card; card 816 drivers/net/wireless/marvell/mwifiex/sdio.c if (mwifiex_read_reg(adapter, card->reg->poll_reg, &cs)) card 838 drivers/net/wireless/marvell/mwifiex/sdio.c struct sdio_mmc_card *card = adapter->card; card 839 drivers/net/wireless/marvell/mwifiex/sdio.c struct sdio_func *func = card->func; card 842 drivers/net/wireless/marvell/mwifiex/sdio.c mwifiex_write_reg_locked(func, card->reg->host_int_mask_reg, 0); card 852 drivers/net/wireless/marvell/mwifiex/sdio.c struct sdio_mmc_card *card = adapter->card; card 856 drivers/net/wireless/marvell/mwifiex/sdio.c if (mwifiex_read_data_sync(adapter, card->mp_regs, card 857 drivers/net/wireless/marvell/mwifiex/sdio.c card->reg->max_mp_regs, card 863 drivers/net/wireless/marvell/mwifiex/sdio.c sdio_ireg = card->mp_regs[card->reg->host_int_status_reg]; card 890 drivers/net/wireless/marvell/mwifiex/sdio.c struct sdio_mmc_card *card; card 892 drivers/net/wireless/marvell/mwifiex/sdio.c card = sdio_get_drvdata(func); card 893 drivers/net/wireless/marvell/mwifiex/sdio.c if (!card || !card->adapter) { card 895 drivers/net/wireless/marvell/mwifiex/sdio.c func, card, card ? card->adapter : NULL); card 898 drivers/net/wireless/marvell/mwifiex/sdio.c adapter = card->adapter; card 915 drivers/net/wireless/marvell/mwifiex/sdio.c struct sdio_mmc_card *card = adapter->card; card 916 drivers/net/wireless/marvell/mwifiex/sdio.c struct sdio_func *func = card->func; card 930 drivers/net/wireless/marvell/mwifiex/sdio.c ret = mwifiex_write_reg_locked(func, card->reg->host_int_mask_reg, card 931 drivers/net/wireless/marvell/mwifiex/sdio.c card->reg->host_int_enable); card 991 drivers/net/wireless/marvell/mwifiex/sdio.c struct sdio_mmc_card *card = adapter->card; card 992 drivers/net/wireless/marvell/mwifiex/sdio.c const struct mwifiex_sdio_card_reg *reg = card->reg; card 1018 drivers/net/wireless/marvell/mwifiex/sdio.c sdio_claim_host(card->func); card 1129 drivers/net/wireless/marvell/mwifiex/sdio.c sdio_release_host(card->func); card 1297 drivers/net/wireless/marvell/mwifiex/sdio.c struct sdio_mmc_card *card = adapter->card; card 1307 drivers/net/wireless/marvell/mwifiex/sdio.c if ((card->has_control_mask) && (port == CTRL_PORT)) { card 1317 drivers/net/wireless/marvell/mwifiex/sdio.c if (!card->mpa_rx.enabled) { card 1326 drivers/net/wireless/marvell/mwifiex/sdio.c if ((!card->has_control_mask && (card->mp_rd_bitmap & card 1327 drivers/net/wireless/marvell/mwifiex/sdio.c card->reg->data_port_mask)) || card 1328 drivers/net/wireless/marvell/mwifiex/sdio.c (card->has_control_mask && (card->mp_rd_bitmap & card 1334 drivers/net/wireless/marvell/mwifiex/sdio.c if (MP_RX_AGGR_IN_PROGRESS(card)) { card 1335 drivers/net/wireless/marvell/mwifiex/sdio.c if (MP_RX_AGGR_BUF_HAS_ROOM(card, rx_len)) { card 1352 drivers/net/wireless/marvell/mwifiex/sdio.c if (MP_RX_AGGR_IN_PROGRESS(card)) { card 1354 drivers/net/wireless/marvell/mwifiex/sdio.c if (MP_RX_AGGR_BUF_HAS_ROOM(card, rx_len)) card 1368 drivers/net/wireless/marvell/mwifiex/sdio.c mp_rx_aggr_setup(card, rx_len, port); card 1370 drivers/net/wireless/marvell/mwifiex/sdio.c if (MP_RX_AGGR_PKT_LIMIT_REACHED(card) || card 1371 drivers/net/wireless/marvell/mwifiex/sdio.c mp_rx_aggr_port_limit_reached(card)) { card 1384 drivers/net/wireless/marvell/mwifiex/sdio.c card->mpa_rx.pkt_cnt); card 1386 drivers/net/wireless/marvell/mwifiex/sdio.c if (card->supports_sdio_new_mode) { card 1390 drivers/net/wireless/marvell/mwifiex/sdio.c for (i = 0, port_count = 0; i < card->max_ports; i++) card 1391 drivers/net/wireless/marvell/mwifiex/sdio.c if (card->mpa_rx.ports & BIT(i)) card 1399 drivers/net/wireless/marvell/mwifiex/sdio.c (port_count << 8)) + card->mpa_rx.start_port; card 1402 drivers/net/wireless/marvell/mwifiex/sdio.c (card->mpa_rx.ports << 4)) + card 1403 drivers/net/wireless/marvell/mwifiex/sdio.c card->mpa_rx.start_port; card 1406 drivers/net/wireless/marvell/mwifiex/sdio.c if (card->mpa_rx.pkt_cnt == 1) card 1407 drivers/net/wireless/marvell/mwifiex/sdio.c mport = adapter->ioport + card->mpa_rx.start_port; card 1409 drivers/net/wireless/marvell/mwifiex/sdio.c if (mwifiex_read_data_sync(adapter, card->mpa_rx.buf, card 1410 drivers/net/wireless/marvell/mwifiex/sdio.c card->mpa_rx.buf_len, mport, 1)) card 1413 drivers/net/wireless/marvell/mwifiex/sdio.c curr_ptr = card->mpa_rx.buf; card 1415 drivers/net/wireless/marvell/mwifiex/sdio.c for (pind = 0; pind < card->mpa_rx.pkt_cnt; pind++) { card 1416 drivers/net/wireless/marvell/mwifiex/sdio.c u32 *len_arr = card->mpa_rx.len_arr; card 1458 drivers/net/wireless/marvell/mwifiex/sdio.c MP_RX_AGGR_BUF_RESET(card); card 1472 drivers/net/wireless/marvell/mwifiex/sdio.c card->mpa_rx.buf, rx_len, card 1499 drivers/net/wireless/marvell/mwifiex/sdio.c mp_rx_aggr_setup(card, rx_len, port); card 1504 drivers/net/wireless/marvell/mwifiex/sdio.c if (MP_RX_AGGR_IN_PROGRESS(card)) card 1505 drivers/net/wireless/marvell/mwifiex/sdio.c MP_RX_AGGR_BUF_RESET(card); card 1531 drivers/net/wireless/marvell/mwifiex/sdio.c struct sdio_mmc_card *card = adapter->card; card 1532 drivers/net/wireless/marvell/mwifiex/sdio.c const struct mwifiex_sdio_card_reg *reg = card->reg; card 1561 drivers/net/wireless/marvell/mwifiex/sdio.c rx_len = card->mp_regs[reg->cmd_rd_len_1] << 8; card 1562 drivers/net/wireless/marvell/mwifiex/sdio.c rx_len |= (u16)card->mp_regs[reg->cmd_rd_len_0]; card 1596 drivers/net/wireless/marvell/mwifiex/sdio.c bitmap = (u32) card->mp_regs[reg->wr_bitmap_l]; card 1597 drivers/net/wireless/marvell/mwifiex/sdio.c bitmap |= ((u32) card->mp_regs[reg->wr_bitmap_u]) << 8; card 1598 drivers/net/wireless/marvell/mwifiex/sdio.c if (card->supports_sdio_new_mode) { card 1600 drivers/net/wireless/marvell/mwifiex/sdio.c ((u32) card->mp_regs[reg->wr_bitmap_1l]) << 16; card 1602 drivers/net/wireless/marvell/mwifiex/sdio.c ((u32) card->mp_regs[reg->wr_bitmap_1u]) << 24; card 1604 drivers/net/wireless/marvell/mwifiex/sdio.c card->mp_wr_bitmap = bitmap; card 1608 drivers/net/wireless/marvell/mwifiex/sdio.c card->mp_wr_bitmap); card 1610 drivers/net/wireless/marvell/mwifiex/sdio.c (card->mp_wr_bitmap & card->mp_data_port_mask)) { card 1620 drivers/net/wireless/marvell/mwifiex/sdio.c if (card->has_control_mask && adapter->cmd_sent) { card 1623 drivers/net/wireless/marvell/mwifiex/sdio.c card->mp_wr_bitmap |= card 1624 drivers/net/wireless/marvell/mwifiex/sdio.c (u32) card->mp_regs[reg->wr_bitmap_l] & CTRL_PORT_MASK; card 1625 drivers/net/wireless/marvell/mwifiex/sdio.c if (card->mp_wr_bitmap & CTRL_PORT_MASK) card 1632 drivers/net/wireless/marvell/mwifiex/sdio.c bitmap = (u32) card->mp_regs[reg->rd_bitmap_l]; card 1633 drivers/net/wireless/marvell/mwifiex/sdio.c bitmap |= ((u32) card->mp_regs[reg->rd_bitmap_u]) << 8; card 1634 drivers/net/wireless/marvell/mwifiex/sdio.c if (card->supports_sdio_new_mode) { card 1636 drivers/net/wireless/marvell/mwifiex/sdio.c ((u32) card->mp_regs[reg->rd_bitmap_1l]) << 16; card 1638 drivers/net/wireless/marvell/mwifiex/sdio.c ((u32) card->mp_regs[reg->rd_bitmap_1u]) << 24; card 1640 drivers/net/wireless/marvell/mwifiex/sdio.c card->mp_rd_bitmap = bitmap; card 1643 drivers/net/wireless/marvell/mwifiex/sdio.c card->mp_rd_bitmap); card 1654 drivers/net/wireless/marvell/mwifiex/sdio.c rx_len = ((u16) card->mp_regs[len_reg_u]) << 8; card 1655 drivers/net/wireless/marvell/mwifiex/sdio.c rx_len |= (u16) card->mp_regs[len_reg_l]; card 1663 drivers/net/wireless/marvell/mwifiex/sdio.c (card->mpa_rx.enabled && card 1665 drivers/net/wireless/marvell/mwifiex/sdio.c card->mpa_rx.buf_size))) { card 1730 drivers/net/wireless/marvell/mwifiex/sdio.c struct sdio_mmc_card *card = adapter->card; card 1739 drivers/net/wireless/marvell/mwifiex/sdio.c if (!card->mpa_tx.enabled || card 1740 drivers/net/wireless/marvell/mwifiex/sdio.c (card->has_control_mask && (port == CTRL_PORT)) || card 1741 drivers/net/wireless/marvell/mwifiex/sdio.c (card->supports_sdio_new_mode && (port == CMD_PORT_SLCT))) { card 1756 drivers/net/wireless/marvell/mwifiex/sdio.c if (MP_TX_AGGR_IN_PROGRESS(card)) { card 1757 drivers/net/wireless/marvell/mwifiex/sdio.c if (MP_TX_AGGR_BUF_HAS_ROOM(card, pkt_len)) { card 1760 drivers/net/wireless/marvell/mwifiex/sdio.c if (!(card->mp_wr_bitmap & card 1761 drivers/net/wireless/marvell/mwifiex/sdio.c (1 << card->curr_wr_port)) || card 1763 drivers/net/wireless/marvell/mwifiex/sdio.c card, pkt_len + next_pkt_len)) card 1769 drivers/net/wireless/marvell/mwifiex/sdio.c if (!(card->mp_wr_bitmap & card 1770 drivers/net/wireless/marvell/mwifiex/sdio.c (1 << card->curr_wr_port))) card 1776 drivers/net/wireless/marvell/mwifiex/sdio.c if (MP_TX_AGGR_BUF_HAS_ROOM(card, pkt_len) && card 1777 drivers/net/wireless/marvell/mwifiex/sdio.c (card->mp_wr_bitmap & (1 << card->curr_wr_port))) card 1788 drivers/net/wireless/marvell/mwifiex/sdio.c if (MP_TX_AGGR_IN_PROGRESS(card)) { card 1792 drivers/net/wireless/marvell/mwifiex/sdio.c if (MP_TX_AGGR_BUF_HAS_ROOM(card, pkt_len)) card 1806 drivers/net/wireless/marvell/mwifiex/sdio.c MP_TX_AGGR_BUF_PUT(card, payload, pkt_len, port); card 1808 drivers/net/wireless/marvell/mwifiex/sdio.c if (MP_TX_AGGR_PKT_LIMIT_REACHED(card) || card 1809 drivers/net/wireless/marvell/mwifiex/sdio.c mp_tx_aggr_port_limit_reached(card)) card 1817 drivers/net/wireless/marvell/mwifiex/sdio.c __func__, card->mpa_tx.start_port, card 1818 drivers/net/wireless/marvell/mwifiex/sdio.c card->mpa_tx.ports); card 1819 drivers/net/wireless/marvell/mwifiex/sdio.c if (card->supports_sdio_new_mode) { card 1823 drivers/net/wireless/marvell/mwifiex/sdio.c for (i = 0, port_count = 0; i < card->max_ports; i++) card 1824 drivers/net/wireless/marvell/mwifiex/sdio.c if (card->mpa_tx.ports & BIT(i)) card 1832 drivers/net/wireless/marvell/mwifiex/sdio.c (port_count << 8)) + card->mpa_tx.start_port; card 1835 drivers/net/wireless/marvell/mwifiex/sdio.c (card->mpa_tx.ports << 4)) + card 1836 drivers/net/wireless/marvell/mwifiex/sdio.c card->mpa_tx.start_port; card 1839 drivers/net/wireless/marvell/mwifiex/sdio.c if (card->mpa_tx.pkt_cnt == 1) card 1840 drivers/net/wireless/marvell/mwifiex/sdio.c mport = adapter->ioport + card->mpa_tx.start_port; card 1842 drivers/net/wireless/marvell/mwifiex/sdio.c ret = mwifiex_write_data_to_card(adapter, card->mpa_tx.buf, card 1843 drivers/net/wireless/marvell/mwifiex/sdio.c card->mpa_tx.buf_len, mport); card 1850 drivers/net/wireless/marvell/mwifiex/sdio.c adapter->dbg.last_mp_wr_bitmap[index] = card->mp_wr_bitmap; card 1851 drivers/net/wireless/marvell/mwifiex/sdio.c adapter->dbg.last_mp_wr_len[index] = card->mpa_tx.buf_len; card 1852 drivers/net/wireless/marvell/mwifiex/sdio.c adapter->dbg.last_mp_curr_wr_port[index] = card->curr_wr_port; card 1854 drivers/net/wireless/marvell/mwifiex/sdio.c MP_TX_AGGR_BUF_RESET(card); card 1870 drivers/net/wireless/marvell/mwifiex/sdio.c MP_TX_AGGR_BUF_PUT(card, payload, pkt_len, port); card 1890 drivers/net/wireless/marvell/mwifiex/sdio.c struct sdio_mmc_card *card = adapter->card; card 1929 drivers/net/wireless/marvell/mwifiex/sdio.c if (card->supports_sdio_new_mode) card 1950 drivers/net/wireless/marvell/mwifiex/sdio.c card->curr_wr_port = port; card 1951 drivers/net/wireless/marvell/mwifiex/sdio.c card->mp_wr_bitmap |= (u32)(1 << card->curr_wr_port); card 1955 drivers/net/wireless/marvell/mwifiex/sdio.c if (!(card->mp_wr_bitmap & (1 << card->curr_wr_port))) card 1971 drivers/net/wireless/marvell/mwifiex/sdio.c struct sdio_mmc_card *card = adapter->card; card 1975 drivers/net/wireless/marvell/mwifiex/sdio.c card->mpa_tx.buf = kzalloc(mpa_tx_buf_size, GFP_KERNEL); card 1976 drivers/net/wireless/marvell/mwifiex/sdio.c if (!card->mpa_tx.buf) { card 1981 drivers/net/wireless/marvell/mwifiex/sdio.c card->mpa_tx.buf_size = mpa_tx_buf_size; card 1985 drivers/net/wireless/marvell/mwifiex/sdio.c card->mpa_rx.buf = kzalloc(rx_buf_size, GFP_KERNEL); card 1986 drivers/net/wireless/marvell/mwifiex/sdio.c if (!card->mpa_rx.buf) { card 1991 drivers/net/wireless/marvell/mwifiex/sdio.c card->mpa_rx.buf_size = rx_buf_size; card 1995 drivers/net/wireless/marvell/mwifiex/sdio.c kfree(card->mpa_tx.buf); card 1996 drivers/net/wireless/marvell/mwifiex/sdio.c kfree(card->mpa_rx.buf); card 1997 drivers/net/wireless/marvell/mwifiex/sdio.c card->mpa_tx.buf_size = 0; card 1998 drivers/net/wireless/marvell/mwifiex/sdio.c card->mpa_rx.buf_size = 0; card 2013 drivers/net/wireless/marvell/mwifiex/sdio.c struct sdio_mmc_card *card = adapter->card; card 2015 drivers/net/wireless/marvell/mwifiex/sdio.c if (adapter->card) { card 2016 drivers/net/wireless/marvell/mwifiex/sdio.c card->adapter = NULL; card 2017 drivers/net/wireless/marvell/mwifiex/sdio.c sdio_claim_host(card->func); card 2018 drivers/net/wireless/marvell/mwifiex/sdio.c sdio_disable_func(card->func); card 2019 drivers/net/wireless/marvell/mwifiex/sdio.c sdio_release_host(card->func); card 2031 drivers/net/wireless/marvell/mwifiex/sdio.c struct sdio_mmc_card *card = adapter->card; card 2032 drivers/net/wireless/marvell/mwifiex/sdio.c struct sdio_func *func = card->func; card 2035 drivers/net/wireless/marvell/mwifiex/sdio.c card->adapter = adapter; card 2036 drivers/net/wireless/marvell/mwifiex/sdio.c adapter->tx_buf_size = card->tx_buf_size; card 2041 drivers/net/wireless/marvell/mwifiex/sdio.c ret = sdio_set_block_size(card->func, MWIFIEX_SDIO_BLOCK_SIZE); card 2049 drivers/net/wireless/marvell/mwifiex/sdio.c strcpy(adapter->fw_name, card->firmware); card 2050 drivers/net/wireless/marvell/mwifiex/sdio.c if (card->fw_dump_enh) { card 2075 drivers/net/wireless/marvell/mwifiex/sdio.c struct sdio_mmc_card *card = adapter->card; card 2076 drivers/net/wireless/marvell/mwifiex/sdio.c const struct mwifiex_sdio_card_reg *reg = card->reg; card 2080 drivers/net/wireless/marvell/mwifiex/sdio.c sdio_set_drvdata(card->func, card); card 2087 drivers/net/wireless/marvell/mwifiex/sdio.c mwifiex_read_reg(adapter, card->reg->host_int_status_reg, &sdio_ireg); card 2093 drivers/net/wireless/marvell/mwifiex/sdio.c card->mp_rd_bitmap = 0; card 2094 drivers/net/wireless/marvell/mwifiex/sdio.c card->mp_wr_bitmap = 0; card 2095 drivers/net/wireless/marvell/mwifiex/sdio.c card->curr_rd_port = reg->start_rd_port; card 2096 drivers/net/wireless/marvell/mwifiex/sdio.c card->curr_wr_port = reg->start_wr_port; card 2098 drivers/net/wireless/marvell/mwifiex/sdio.c card->mp_data_port_mask = reg->data_port_mask; card 2100 drivers/net/wireless/marvell/mwifiex/sdio.c card->mpa_tx.buf_len = 0; card 2101 drivers/net/wireless/marvell/mwifiex/sdio.c card->mpa_tx.pkt_cnt = 0; card 2102 drivers/net/wireless/marvell/mwifiex/sdio.c card->mpa_tx.start_port = 0; card 2104 drivers/net/wireless/marvell/mwifiex/sdio.c card->mpa_tx.enabled = 1; card 2105 drivers/net/wireless/marvell/mwifiex/sdio.c card->mpa_tx.pkt_aggr_limit = card->mp_agg_pkt_limit; card 2107 drivers/net/wireless/marvell/mwifiex/sdio.c card->mpa_rx.buf_len = 0; card 2108 drivers/net/wireless/marvell/mwifiex/sdio.c card->mpa_rx.pkt_cnt = 0; card 2109 drivers/net/wireless/marvell/mwifiex/sdio.c card->mpa_rx.start_port = 0; card 2111 drivers/net/wireless/marvell/mwifiex/sdio.c card->mpa_rx.enabled = 1; card 2112 drivers/net/wireless/marvell/mwifiex/sdio.c card->mpa_rx.pkt_aggr_limit = card->mp_agg_pkt_limit; card 2115 drivers/net/wireless/marvell/mwifiex/sdio.c card->mp_regs = kzalloc(reg->max_mp_regs, GFP_KERNEL); card 2116 drivers/net/wireless/marvell/mwifiex/sdio.c if (!card->mp_regs) card 2120 drivers/net/wireless/marvell/mwifiex/sdio.c card->mpa_rx.skb_arr = kcalloc(card->mp_agg_pkt_limit, sizeof(void *), card 2122 drivers/net/wireless/marvell/mwifiex/sdio.c if (!card->mpa_rx.skb_arr) { card 2123 drivers/net/wireless/marvell/mwifiex/sdio.c kfree(card->mp_regs); card 2127 drivers/net/wireless/marvell/mwifiex/sdio.c card->mpa_rx.len_arr = kcalloc(card->mp_agg_pkt_limit, card 2128 drivers/net/wireless/marvell/mwifiex/sdio.c sizeof(*card->mpa_rx.len_arr), card 2130 drivers/net/wireless/marvell/mwifiex/sdio.c if (!card->mpa_rx.len_arr) { card 2131 drivers/net/wireless/marvell/mwifiex/sdio.c kfree(card->mp_regs); card 2132 drivers/net/wireless/marvell/mwifiex/sdio.c kfree(card->mpa_rx.skb_arr); card 2137 drivers/net/wireless/marvell/mwifiex/sdio.c card->mp_tx_agg_buf_size, card 2138 drivers/net/wireless/marvell/mwifiex/sdio.c card->mp_rx_agg_buf_size); card 2141 drivers/net/wireless/marvell/mwifiex/sdio.c if (ret && (card->mp_tx_agg_buf_size == MWIFIEX_MP_AGGR_BUF_SIZE_MAX || card 2142 drivers/net/wireless/marvell/mwifiex/sdio.c card->mp_rx_agg_buf_size == MWIFIEX_MP_AGGR_BUF_SIZE_MAX)) { card 2151 drivers/net/wireless/marvell/mwifiex/sdio.c card->mpa_tx.enabled = 0; card 2152 drivers/net/wireless/marvell/mwifiex/sdio.c card->mpa_rx.enabled = 0; card 2156 drivers/net/wireless/marvell/mwifiex/sdio.c adapter->auto_tdls = card->can_auto_tdls; card 2157 drivers/net/wireless/marvell/mwifiex/sdio.c adapter->ext_scan = card->can_ext_scan; card 2166 drivers/net/wireless/marvell/mwifiex/sdio.c struct sdio_mmc_card *card = adapter->card; card 2168 drivers/net/wireless/marvell/mwifiex/sdio.c MP_TX_AGGR_BUF_RESET(card); card 2169 drivers/net/wireless/marvell/mwifiex/sdio.c MP_RX_AGGR_BUF_RESET(card); card 2182 drivers/net/wireless/marvell/mwifiex/sdio.c struct sdio_mmc_card *card = adapter->card; card 2184 drivers/net/wireless/marvell/mwifiex/sdio.c cancel_work_sync(&card->work); card 2186 drivers/net/wireless/marvell/mwifiex/sdio.c kfree(card->mp_regs); card 2187 drivers/net/wireless/marvell/mwifiex/sdio.c kfree(card->mpa_rx.skb_arr); card 2188 drivers/net/wireless/marvell/mwifiex/sdio.c kfree(card->mpa_rx.len_arr); card 2189 drivers/net/wireless/marvell/mwifiex/sdio.c kfree(card->mpa_tx.buf); card 2190 drivers/net/wireless/marvell/mwifiex/sdio.c kfree(card->mpa_rx.buf); card 2199 drivers/net/wireless/marvell/mwifiex/sdio.c struct sdio_mmc_card *card = adapter->card; card 2200 drivers/net/wireless/marvell/mwifiex/sdio.c const struct mwifiex_sdio_card_reg *reg = card->reg; card 2203 drivers/net/wireless/marvell/mwifiex/sdio.c card->mp_end_port = port; card 2205 drivers/net/wireless/marvell/mwifiex/sdio.c card->mp_data_port_mask = reg->data_port_mask; card 2208 drivers/net/wireless/marvell/mwifiex/sdio.c for (i = 1; i <= card->max_ports - card->mp_end_port; i++) card 2209 drivers/net/wireless/marvell/mwifiex/sdio.c card->mp_data_port_mask &= card 2210 drivers/net/wireless/marvell/mwifiex/sdio.c ~(1 << (card->max_ports - i)); card 2213 drivers/net/wireless/marvell/mwifiex/sdio.c card->curr_wr_port = reg->start_wr_port; card 2217 drivers/net/wireless/marvell/mwifiex/sdio.c port, card->mp_data_port_mask); card 2222 drivers/net/wireless/marvell/mwifiex/sdio.c struct sdio_mmc_card *card = adapter->card; card 2223 drivers/net/wireless/marvell/mwifiex/sdio.c struct sdio_func *func = card->func; card 2228 drivers/net/wireless/marvell/mwifiex/sdio.c clear_bit(MWIFIEX_IFACE_WORK_DEVICE_DUMP, &card->work_flags); card 2229 drivers/net/wireless/marvell/mwifiex/sdio.c clear_bit(MWIFIEX_IFACE_WORK_CARD_RESET, &card->work_flags); card 2233 drivers/net/wireless/marvell/mwifiex/sdio.c ret = mmc_hw_reset(func->card->host); card 2257 drivers/net/wireless/marvell/mwifiex/sdio.c struct sdio_mmc_card *card = adapter->card; card 2261 drivers/net/wireless/marvell/mwifiex/sdio.c sdio_writeb(card->func, card->reg->fw_dump_host_ready, card 2262 drivers/net/wireless/marvell/mwifiex/sdio.c card->reg->fw_dump_ctrl, &ret); card 2268 drivers/net/wireless/marvell/mwifiex/sdio.c ctrl_data = sdio_readb(card->func, card->reg->fw_dump_ctrl, card 2278 drivers/net/wireless/marvell/mwifiex/sdio.c if (ctrl_data != card->reg->fw_dump_host_ready) { card 2281 drivers/net/wireless/marvell/mwifiex/sdio.c sdio_writeb(card->func, card->reg->fw_dump_host_ready, card 2282 drivers/net/wireless/marvell/mwifiex/sdio.c card->reg->fw_dump_ctrl, &ret); card 2290 drivers/net/wireless/marvell/mwifiex/sdio.c if (ctrl_data == card->reg->fw_dump_host_ready) { card 2302 drivers/net/wireless/marvell/mwifiex/sdio.c struct sdio_mmc_card *card = adapter->card; card 2309 drivers/net/wireless/marvell/mwifiex/sdio.c if (!card->can_dump_fw) card 2323 drivers/net/wireless/marvell/mwifiex/sdio.c sdio_claim_host(card->func); card 2331 drivers/net/wireless/marvell/mwifiex/sdio.c reg = card->reg->fw_dump_start; card 2333 drivers/net/wireless/marvell/mwifiex/sdio.c dump_num = sdio_readb(card->func, reg, &ret); card 2348 drivers/net/wireless/marvell/mwifiex/sdio.c reg = card->reg->fw_dump_start; card 2350 drivers/net/wireless/marvell/mwifiex/sdio.c read_reg = sdio_readb(card->func, reg, &ret); card 2362 drivers/net/wireless/marvell/mwifiex/sdio.c card->reg->fw_dump_ctrl, card 2393 drivers/net/wireless/marvell/mwifiex/sdio.c reg_start = card->reg->fw_dump_start; card 2394 drivers/net/wireless/marvell/mwifiex/sdio.c reg_end = card->reg->fw_dump_end; card 2396 drivers/net/wireless/marvell/mwifiex/sdio.c *dbg_ptr = sdio_readb(card->func, reg, &ret); card 2420 drivers/net/wireless/marvell/mwifiex/sdio.c sdio_release_host(card->func); card 2425 drivers/net/wireless/marvell/mwifiex/sdio.c struct sdio_mmc_card *card = adapter->card; card 2433 drivers/net/wireless/marvell/mwifiex/sdio.c if (!card->fw_dump_enh) card 2443 drivers/net/wireless/marvell/mwifiex/sdio.c sdio_claim_host(card->func); card 2451 drivers/net/wireless/marvell/mwifiex/sdio.c reg_start = card->reg->fw_dump_start; card 2452 drivers/net/wireless/marvell/mwifiex/sdio.c reg_end = card->reg->fw_dump_end; card 2455 drivers/net/wireless/marvell/mwifiex/sdio.c start_flag = sdio_readb(card->func, reg, &ret); card 2491 drivers/net/wireless/marvell/mwifiex/sdio.c *dbg_ptr = sdio_readb(card->func, reg, &ret); card 2534 drivers/net/wireless/marvell/mwifiex/sdio.c sdio_release_host(card->func); card 2539 drivers/net/wireless/marvell/mwifiex/sdio.c struct sdio_mmc_card *card = adapter->card; card 2549 drivers/net/wireless/marvell/mwifiex/sdio.c if (card->fw_dump_enh) card 2559 drivers/net/wireless/marvell/mwifiex/sdio.c struct sdio_mmc_card *card = card 2563 drivers/net/wireless/marvell/mwifiex/sdio.c &card->work_flags)) card 2564 drivers/net/wireless/marvell/mwifiex/sdio.c mwifiex_sdio_device_dump_work(card->adapter); card 2566 drivers/net/wireless/marvell/mwifiex/sdio.c &card->work_flags)) card 2567 drivers/net/wireless/marvell/mwifiex/sdio.c mwifiex_sdio_card_reset_work(card->adapter); card 2573 drivers/net/wireless/marvell/mwifiex/sdio.c struct sdio_mmc_card *card = adapter->card; card 2575 drivers/net/wireless/marvell/mwifiex/sdio.c if (!test_and_set_bit(MWIFIEX_IFACE_WORK_CARD_RESET, &card->work_flags)) card 2576 drivers/net/wireless/marvell/mwifiex/sdio.c schedule_work(&card->work); card 2582 drivers/net/wireless/marvell/mwifiex/sdio.c struct sdio_mmc_card *card = adapter->card; card 2585 drivers/net/wireless/marvell/mwifiex/sdio.c &card->work_flags)) card 2586 drivers/net/wireless/marvell/mwifiex/sdio.c schedule_work(&card->work); card 2596 drivers/net/wireless/marvell/mwifiex/sdio.c struct sdio_mmc_card *cardp = adapter->card; card 2687 drivers/net/wireless/marvell/mwifiex/sdio.c struct sdio_mmc_card *card = adapter->card; card 2690 drivers/net/wireless/marvell/mwifiex/sdio.c sdio_claim_host(card->func); card 2691 drivers/net/wireless/marvell/mwifiex/sdio.c sdio_enable_func(card->func); card 2692 drivers/net/wireless/marvell/mwifiex/sdio.c sdio_set_block_size(card->func, MWIFIEX_SDIO_BLOCK_SIZE); card 2693 drivers/net/wireless/marvell/mwifiex/sdio.c sdio_release_host(card->func); card 2698 drivers/net/wireless/marvell/mwifiex/sdio.c adapter->tx_buf_size = card->tx_buf_size; card 2704 drivers/net/wireless/marvell/mwifiex/sdio.c mwifiex_read_reg(adapter, card->reg->host_int_status_reg, &sdio_ireg); card 741 drivers/net/wireless/marvell/mwifiex/sdio.h mp_rx_aggr_port_limit_reached(struct sdio_mmc_card *card) card 745 drivers/net/wireless/marvell/mwifiex/sdio.h if (card->curr_rd_port < card->mpa_rx.start_port) { card 746 drivers/net/wireless/marvell/mwifiex/sdio.h if (card->supports_sdio_new_mode) card 747 drivers/net/wireless/marvell/mwifiex/sdio.h tmp = card->mp_end_port >> 1; card 749 drivers/net/wireless/marvell/mwifiex/sdio.h tmp = card->mp_agg_pkt_limit; card 751 drivers/net/wireless/marvell/mwifiex/sdio.h if (((card->max_ports - card->mpa_rx.start_port) + card 752 drivers/net/wireless/marvell/mwifiex/sdio.h card->curr_rd_port) >= tmp) card 756 drivers/net/wireless/marvell/mwifiex/sdio.h if (!card->supports_sdio_new_mode) card 759 drivers/net/wireless/marvell/mwifiex/sdio.h if ((card->curr_rd_port - card->mpa_rx.start_port) >= card 760 drivers/net/wireless/marvell/mwifiex/sdio.h (card->mp_end_port >> 1)) card 767 drivers/net/wireless/marvell/mwifiex/sdio.h mp_tx_aggr_port_limit_reached(struct sdio_mmc_card *card) card 771 drivers/net/wireless/marvell/mwifiex/sdio.h if (card->curr_wr_port < card->mpa_tx.start_port) { card 772 drivers/net/wireless/marvell/mwifiex/sdio.h if (card->supports_sdio_new_mode) card 773 drivers/net/wireless/marvell/mwifiex/sdio.h tmp = card->mp_end_port >> 1; card 775 drivers/net/wireless/marvell/mwifiex/sdio.h tmp = card->mp_agg_pkt_limit; card 777 drivers/net/wireless/marvell/mwifiex/sdio.h if (((card->max_ports - card->mpa_tx.start_port) + card 778 drivers/net/wireless/marvell/mwifiex/sdio.h card->curr_wr_port) >= tmp) card 782 drivers/net/wireless/marvell/mwifiex/sdio.h if (!card->supports_sdio_new_mode) card 785 drivers/net/wireless/marvell/mwifiex/sdio.h if ((card->curr_wr_port - card->mpa_tx.start_port) >= card 786 drivers/net/wireless/marvell/mwifiex/sdio.h (card->mp_end_port >> 1)) card 793 drivers/net/wireless/marvell/mwifiex/sdio.h static inline void mp_rx_aggr_setup(struct sdio_mmc_card *card, card 796 drivers/net/wireless/marvell/mwifiex/sdio.h card->mpa_rx.buf_len += rx_len; card 798 drivers/net/wireless/marvell/mwifiex/sdio.h if (!card->mpa_rx.pkt_cnt) card 799 drivers/net/wireless/marvell/mwifiex/sdio.h card->mpa_rx.start_port = port; card 801 drivers/net/wireless/marvell/mwifiex/sdio.h if (card->supports_sdio_new_mode) { card 802 drivers/net/wireless/marvell/mwifiex/sdio.h card->mpa_rx.ports |= (1 << port); card 804 drivers/net/wireless/marvell/mwifiex/sdio.h if (card->mpa_rx.start_port <= port) card 805 drivers/net/wireless/marvell/mwifiex/sdio.h card->mpa_rx.ports |= 1 << (card->mpa_rx.pkt_cnt); card 807 drivers/net/wireless/marvell/mwifiex/sdio.h card->mpa_rx.ports |= 1 << (card->mpa_rx.pkt_cnt + 1); card 809 drivers/net/wireless/marvell/mwifiex/sdio.h card->mpa_rx.skb_arr[card->mpa_rx.pkt_cnt] = NULL; card 810 drivers/net/wireless/marvell/mwifiex/sdio.h card->mpa_rx.len_arr[card->mpa_rx.pkt_cnt] = rx_len; card 811 drivers/net/wireless/marvell/mwifiex/sdio.h card->mpa_rx.pkt_cnt++; card 1247 drivers/net/wireless/marvell/mwifiex/sta_cmd.c struct pcie_service_card *card = priv->adapter->card; card 1260 drivers/net/wireless/marvell/mwifiex/sta_cmd.c host_spec->txbd_addr_lo = cpu_to_le32((u32)(card->txbd_ring_pbase)); card 1262 drivers/net/wireless/marvell/mwifiex/sta_cmd.c cpu_to_le32((u32)(((u64)card->txbd_ring_pbase) >> 32)); card 1264 drivers/net/wireless/marvell/mwifiex/sta_cmd.c host_spec->rxbd_addr_lo = cpu_to_le32((u32)(card->rxbd_ring_pbase)); card 1266 drivers/net/wireless/marvell/mwifiex/sta_cmd.c cpu_to_le32((u32)(((u64)card->rxbd_ring_pbase) >> 32)); card 1268 drivers/net/wireless/marvell/mwifiex/sta_cmd.c host_spec->evtbd_addr_lo = cpu_to_le32((u32)(card->evtbd_ring_pbase)); card 1270 drivers/net/wireless/marvell/mwifiex/sta_cmd.c cpu_to_le32((u32)(((u64)card->evtbd_ring_pbase) >> 32)); card 1272 drivers/net/wireless/marvell/mwifiex/sta_cmd.c if (card->sleep_cookie_vbase) { card 1274 drivers/net/wireless/marvell/mwifiex/sta_cmd.c cpu_to_le32((u32)(card->sleep_cookie_pbase)); card 1276 drivers/net/wireless/marvell/mwifiex/sta_cmd.c (card->sleep_cookie_pbase)) >> 32)); card 168 drivers/net/wireless/marvell/mwifiex/usb.c struct usb_card_rec *card; card 172 drivers/net/wireless/marvell/mwifiex/usb.c if (!adapter || !adapter->card) { card 177 drivers/net/wireless/marvell/mwifiex/usb.c card = (struct usb_card_rec *)adapter->card; card 178 drivers/net/wireless/marvell/mwifiex/usb.c if (card->rx_cmd_ep == context->ep) card 179 drivers/net/wireless/marvell/mwifiex/usb.c atomic_dec(&card->rx_cmd_urb_pending); card 181 drivers/net/wireless/marvell/mwifiex/usb.c atomic_dec(&card->rx_data_urb_pending); card 189 drivers/net/wireless/marvell/mwifiex/usb.c if (card->rx_cmd_ep != context->ep) card 210 drivers/net/wireless/marvell/mwifiex/usb.c if (card->rx_cmd_ep == context->ep) card 218 drivers/net/wireless/marvell/mwifiex/usb.c if (card->rx_cmd_ep != context->ep) card 231 drivers/net/wireless/marvell/mwifiex/usb.c if (card->rx_cmd_ep != context->ep) card 238 drivers/net/wireless/marvell/mwifiex/usb.c if (card->rx_cmd_ep == context->ep) card 243 drivers/net/wireless/marvell/mwifiex/usb.c if (card->rx_cmd_ep == context->ep) { card 260 drivers/net/wireless/marvell/mwifiex/usb.c struct usb_card_rec *card = adapter->card; card 267 drivers/net/wireless/marvell/mwifiex/usb.c if (context->ep == card->tx_cmd_ep) { card 270 drivers/net/wireless/marvell/mwifiex/usb.c atomic_dec(&card->tx_cmd_urb_pending); card 278 drivers/net/wireless/marvell/mwifiex/usb.c port = &card->port[i]; card 288 drivers/net/wireless/marvell/mwifiex/usb.c if (card->mc_resync_flag) card 299 drivers/net/wireless/marvell/mwifiex/usb.c struct usb_card_rec *card = (struct usb_card_rec *)adapter->card; card 302 drivers/net/wireless/marvell/mwifiex/usb.c if (card->rx_cmd_ep == ctx->ep) { card 314 drivers/net/wireless/marvell/mwifiex/usb.c if (card->rx_cmd_ep != ctx->ep) { card 323 drivers/net/wireless/marvell/mwifiex/usb.c if (card->rx_cmd_ep == ctx->ep && card 324 drivers/net/wireless/marvell/mwifiex/usb.c card->rx_cmd_ep_type == USB_ENDPOINT_XFER_INT) card 325 drivers/net/wireless/marvell/mwifiex/usb.c usb_fill_int_urb(ctx->urb, card->udev, card 326 drivers/net/wireless/marvell/mwifiex/usb.c usb_rcvintpipe(card->udev, ctx->ep), card 328 drivers/net/wireless/marvell/mwifiex/usb.c (void *)ctx, card->rx_cmd_interval); card 330 drivers/net/wireless/marvell/mwifiex/usb.c usb_fill_bulk_urb(ctx->urb, card->udev, card 331 drivers/net/wireless/marvell/mwifiex/usb.c usb_rcvbulkpipe(card->udev, ctx->ep), card 335 drivers/net/wireless/marvell/mwifiex/usb.c if (card->rx_cmd_ep == ctx->ep) card 336 drivers/net/wireless/marvell/mwifiex/usb.c atomic_inc(&card->rx_cmd_urb_pending); card 338 drivers/net/wireless/marvell/mwifiex/usb.c atomic_inc(&card->rx_data_urb_pending); card 345 drivers/net/wireless/marvell/mwifiex/usb.c if (card->rx_cmd_ep == ctx->ep) card 346 drivers/net/wireless/marvell/mwifiex/usb.c atomic_dec(&card->rx_cmd_urb_pending); card 348 drivers/net/wireless/marvell/mwifiex/usb.c atomic_dec(&card->rx_data_urb_pending); card 356 drivers/net/wireless/marvell/mwifiex/usb.c static void mwifiex_usb_free(struct usb_card_rec *card) card 361 drivers/net/wireless/marvell/mwifiex/usb.c if (atomic_read(&card->rx_cmd_urb_pending) && card->rx_cmd.urb) card 362 drivers/net/wireless/marvell/mwifiex/usb.c usb_kill_urb(card->rx_cmd.urb); card 364 drivers/net/wireless/marvell/mwifiex/usb.c usb_free_urb(card->rx_cmd.urb); card 365 drivers/net/wireless/marvell/mwifiex/usb.c card->rx_cmd.urb = NULL; card 367 drivers/net/wireless/marvell/mwifiex/usb.c if (atomic_read(&card->rx_data_urb_pending)) card 369 drivers/net/wireless/marvell/mwifiex/usb.c if (card->rx_data_list[i].urb) card 370 drivers/net/wireless/marvell/mwifiex/usb.c usb_kill_urb(card->rx_data_list[i].urb); card 373 drivers/net/wireless/marvell/mwifiex/usb.c usb_free_urb(card->rx_data_list[i].urb); card 374 drivers/net/wireless/marvell/mwifiex/usb.c card->rx_data_list[i].urb = NULL; card 378 drivers/net/wireless/marvell/mwifiex/usb.c port = &card->port[i]; card 386 drivers/net/wireless/marvell/mwifiex/usb.c usb_free_urb(card->tx_cmd.urb); card 387 drivers/net/wireless/marvell/mwifiex/usb.c card->tx_cmd.urb = NULL; card 403 drivers/net/wireless/marvell/mwifiex/usb.c struct usb_card_rec *card; card 406 drivers/net/wireless/marvell/mwifiex/usb.c card = devm_kzalloc(&intf->dev, sizeof(*card), GFP_KERNEL); card 407 drivers/net/wireless/marvell/mwifiex/usb.c if (!card) card 410 drivers/net/wireless/marvell/mwifiex/usb.c init_completion(&card->fw_done); card 424 drivers/net/wireless/marvell/mwifiex/usb.c card->usb_boot_state = USB8XXX_FW_DNLD; card 430 drivers/net/wireless/marvell/mwifiex/usb.c card->usb_boot_state = USB8XXX_FW_READY; card 434 drivers/net/wireless/marvell/mwifiex/usb.c card->usb_boot_state = USB8XXX_FW_DNLD; card 438 drivers/net/wireless/marvell/mwifiex/usb.c card->udev = udev; card 439 drivers/net/wireless/marvell/mwifiex/usb.c card->intf = intf; card 453 drivers/net/wireless/marvell/mwifiex/usb.c card->rx_cmd_ep_type = usb_endpoint_type(epd); card 454 drivers/net/wireless/marvell/mwifiex/usb.c card->rx_cmd_interval = epd->bInterval; card 457 drivers/net/wireless/marvell/mwifiex/usb.c epd->bEndpointAddress, card->rx_cmd_ep_type); card 458 drivers/net/wireless/marvell/mwifiex/usb.c card->rx_cmd_ep = usb_endpoint_num(epd); card 459 drivers/net/wireless/marvell/mwifiex/usb.c atomic_set(&card->rx_cmd_urb_pending, 0); card 467 drivers/net/wireless/marvell/mwifiex/usb.c card->rx_data_ep = usb_endpoint_num(epd); card 468 drivers/net/wireless/marvell/mwifiex/usb.c atomic_set(&card->rx_data_urb_pending, 0); card 476 drivers/net/wireless/marvell/mwifiex/usb.c card->port[0].tx_data_ep = usb_endpoint_num(epd); card 477 drivers/net/wireless/marvell/mwifiex/usb.c atomic_set(&card->port[0].tx_data_urb_pending, 0); card 486 drivers/net/wireless/marvell/mwifiex/usb.c card->port[1].tx_data_ep = usb_endpoint_num(epd); card 487 drivers/net/wireless/marvell/mwifiex/usb.c atomic_set(&card->port[1].tx_data_urb_pending, 0); card 493 drivers/net/wireless/marvell/mwifiex/usb.c card->tx_cmd_ep_type = usb_endpoint_type(epd); card 494 drivers/net/wireless/marvell/mwifiex/usb.c card->tx_cmd_interval = epd->bInterval; card 500 drivers/net/wireless/marvell/mwifiex/usb.c epd->bEndpointAddress, card->tx_cmd_ep_type); card 501 drivers/net/wireless/marvell/mwifiex/usb.c card->tx_cmd_ep = usb_endpoint_num(epd); card 502 drivers/net/wireless/marvell/mwifiex/usb.c atomic_set(&card->tx_cmd_urb_pending, 0); card 503 drivers/net/wireless/marvell/mwifiex/usb.c card->bulk_out_maxpktsize = card 508 drivers/net/wireless/marvell/mwifiex/usb.c usb_set_intfdata(intf, card); card 510 drivers/net/wireless/marvell/mwifiex/usb.c ret = mwifiex_add_card(card, &card->fw_done, &usb_ops, card 511 drivers/net/wireless/marvell/mwifiex/usb.c MWIFIEX_USB, &card->udev->dev); card 532 drivers/net/wireless/marvell/mwifiex/usb.c struct usb_card_rec *card = usb_get_intfdata(intf); card 538 drivers/net/wireless/marvell/mwifiex/usb.c wait_for_completion(&card->fw_done); card 540 drivers/net/wireless/marvell/mwifiex/usb.c adapter = card->adapter; card 568 drivers/net/wireless/marvell/mwifiex/usb.c if (atomic_read(&card->rx_cmd_urb_pending) && card->rx_cmd.urb) card 569 drivers/net/wireless/marvell/mwifiex/usb.c usb_kill_urb(card->rx_cmd.urb); card 571 drivers/net/wireless/marvell/mwifiex/usb.c if (atomic_read(&card->rx_data_urb_pending)) card 573 drivers/net/wireless/marvell/mwifiex/usb.c if (card->rx_data_list[i].urb) card 574 drivers/net/wireless/marvell/mwifiex/usb.c usb_kill_urb(card->rx_data_list[i].urb); card 577 drivers/net/wireless/marvell/mwifiex/usb.c port = &card->port[i]; card 584 drivers/net/wireless/marvell/mwifiex/usb.c if (card->tx_cmd.urb) card 585 drivers/net/wireless/marvell/mwifiex/usb.c usb_kill_urb(card->tx_cmd.urb); card 599 drivers/net/wireless/marvell/mwifiex/usb.c struct usb_card_rec *card = usb_get_intfdata(intf); card 603 drivers/net/wireless/marvell/mwifiex/usb.c if (!card->adapter) { card 608 drivers/net/wireless/marvell/mwifiex/usb.c adapter = card->adapter; card 621 drivers/net/wireless/marvell/mwifiex/usb.c if (!atomic_read(&card->rx_data_urb_pending)) card 623 drivers/net/wireless/marvell/mwifiex/usb.c mwifiex_usb_submit_rx_urb(&card->rx_data_list[i], card 626 drivers/net/wireless/marvell/mwifiex/usb.c if (!atomic_read(&card->rx_cmd_urb_pending)) { card 627 drivers/net/wireless/marvell/mwifiex/usb.c card->rx_cmd.skb = dev_alloc_skb(MWIFIEX_RX_CMD_BUF_SIZE); card 628 drivers/net/wireless/marvell/mwifiex/usb.c if (card->rx_cmd.skb) card 629 drivers/net/wireless/marvell/mwifiex/usb.c mwifiex_usb_submit_rx_urb(&card->rx_cmd, card 644 drivers/net/wireless/marvell/mwifiex/usb.c struct usb_card_rec *card = usb_get_intfdata(intf); card 647 drivers/net/wireless/marvell/mwifiex/usb.c wait_for_completion(&card->fw_done); card 649 drivers/net/wireless/marvell/mwifiex/usb.c adapter = card->adapter; card 653 drivers/net/wireless/marvell/mwifiex/usb.c if (card->udev->state != USB_STATE_NOTATTACHED && !adapter->mfg_mode) { card 671 drivers/net/wireless/marvell/mwifiex/usb.c struct usb_card_rec *card = usb_get_intfdata(intf); card 673 drivers/net/wireless/marvell/mwifiex/usb.c mwifiex_fw_dump_event(mwifiex_get_priv(card->adapter, card 693 drivers/net/wireless/marvell/mwifiex/usb.c struct usb_card_rec *card = adapter->card; card 696 drivers/net/wireless/marvell/mwifiex/usb.c if (!(*len % card->bulk_out_maxpktsize)) card 700 drivers/net/wireless/marvell/mwifiex/usb.c ret = usb_bulk_msg(card->udev, usb_sndbulkpipe(card->udev, ep), pbuf, card 716 drivers/net/wireless/marvell/mwifiex/usb.c struct usb_card_rec *card = adapter->card; card 720 drivers/net/wireless/marvell/mwifiex/usb.c ret = usb_bulk_msg(card->udev, usb_rcvbulkpipe(card->udev, ep), pbuf, card 735 drivers/net/wireless/marvell/mwifiex/usb.c struct usb_card_rec *card = adapter->card; card 752 drivers/net/wireless/marvell/mwifiex/usb.c card->port[i].block_status = false; card 772 drivers/net/wireless/marvell/mwifiex/usb.c if (active_port == card->port[i].tx_data_ep) card 773 drivers/net/wireless/marvell/mwifiex/usb.c card->port[i].block_status = false; card 775 drivers/net/wireless/marvell/mwifiex/usb.c card->port[i].block_status = true; card 782 drivers/net/wireless/marvell/mwifiex/usb.c struct usb_card_rec *card = priv->adapter->card; card 786 drivers/net/wireless/marvell/mwifiex/usb.c if (priv->usb_port == card->port[idx].tx_data_ep) card 787 drivers/net/wireless/marvell/mwifiex/usb.c return !card->port[idx].block_status; card 795 drivers/net/wireless/marvell/mwifiex/usb.c struct usb_card_rec *card = adapter->card; card 799 drivers/net/wireless/marvell/mwifiex/usb.c if (!card->port[i].block_status) card 810 drivers/net/wireless/marvell/mwifiex/usb.c struct usb_card_rec *card = adapter->card; card 819 drivers/net/wireless/marvell/mwifiex/usb.c if (ep == card->tx_cmd_ep && card 820 drivers/net/wireless/marvell/mwifiex/usb.c card->tx_cmd_ep_type == USB_ENDPOINT_XFER_INT) card 821 drivers/net/wireless/marvell/mwifiex/usb.c usb_fill_int_urb(tx_urb, card->udev, card 822 drivers/net/wireless/marvell/mwifiex/usb.c usb_sndintpipe(card->udev, ep), skb_send->data, card 824 drivers/net/wireless/marvell/mwifiex/usb.c (void *)context, card->tx_cmd_interval); card 826 drivers/net/wireless/marvell/mwifiex/usb.c usb_fill_bulk_urb(tx_urb, card->udev, card 827 drivers/net/wireless/marvell/mwifiex/usb.c usb_sndbulkpipe(card->udev, ep), card 833 drivers/net/wireless/marvell/mwifiex/usb.c if (ep == card->tx_cmd_ep) card 834 drivers/net/wireless/marvell/mwifiex/usb.c atomic_inc(&card->tx_cmd_urb_pending); card 838 drivers/net/wireless/marvell/mwifiex/usb.c if (ep != card->tx_cmd_ep && card 849 drivers/net/wireless/marvell/mwifiex/usb.c if (ep == card->tx_cmd_ep) { card 850 drivers/net/wireless/marvell/mwifiex/usb.c atomic_dec(&card->tx_cmd_urb_pending); card 1168 drivers/net/wireless/marvell/mwifiex/usb.c struct usb_card_rec *card = adapter->card; card 1186 drivers/net/wireless/marvell/mwifiex/usb.c if (ep == card->tx_cmd_ep) { card 1187 drivers/net/wireless/marvell/mwifiex/usb.c context = &card->tx_cmd; card 1191 drivers/net/wireless/marvell/mwifiex/usb.c if (ep == card->port[idx].tx_data_ep) { card 1192 drivers/net/wireless/marvell/mwifiex/usb.c port = &card->port[idx]; card 1227 drivers/net/wireless/marvell/mwifiex/usb.c struct usb_card_rec *card = (struct usb_card_rec *)adapter->card; card 1231 drivers/net/wireless/marvell/mwifiex/usb.c card->tx_cmd.adapter = adapter; card 1232 drivers/net/wireless/marvell/mwifiex/usb.c card->tx_cmd.ep = card->tx_cmd_ep; card 1234 drivers/net/wireless/marvell/mwifiex/usb.c card->tx_cmd.urb = usb_alloc_urb(0, GFP_KERNEL); card 1235 drivers/net/wireless/marvell/mwifiex/usb.c if (!card->tx_cmd.urb) card 1239 drivers/net/wireless/marvell/mwifiex/usb.c port = &card->port[i]; card 1270 drivers/net/wireless/marvell/mwifiex/usb.c struct usb_card_rec *card = (struct usb_card_rec *)adapter->card; card 1273 drivers/net/wireless/marvell/mwifiex/usb.c card->rx_cmd.adapter = adapter; card 1274 drivers/net/wireless/marvell/mwifiex/usb.c card->rx_cmd.ep = card->rx_cmd_ep; card 1276 drivers/net/wireless/marvell/mwifiex/usb.c card->rx_cmd.urb = usb_alloc_urb(0, GFP_KERNEL); card 1277 drivers/net/wireless/marvell/mwifiex/usb.c if (!card->rx_cmd.urb) card 1280 drivers/net/wireless/marvell/mwifiex/usb.c card->rx_cmd.skb = dev_alloc_skb(MWIFIEX_RX_CMD_BUF_SIZE); card 1281 drivers/net/wireless/marvell/mwifiex/usb.c if (!card->rx_cmd.skb) card 1284 drivers/net/wireless/marvell/mwifiex/usb.c if (mwifiex_usb_submit_rx_urb(&card->rx_cmd, MWIFIEX_RX_CMD_BUF_SIZE)) card 1288 drivers/net/wireless/marvell/mwifiex/usb.c card->rx_data_list[i].adapter = adapter; card 1289 drivers/net/wireless/marvell/mwifiex/usb.c card->rx_data_list[i].ep = card->rx_data_ep; card 1291 drivers/net/wireless/marvell/mwifiex/usb.c card->rx_data_list[i].urb = usb_alloc_urb(0, GFP_KERNEL); card 1292 drivers/net/wireless/marvell/mwifiex/usb.c if (!card->rx_data_list[i].urb) card 1294 drivers/net/wireless/marvell/mwifiex/usb.c if (mwifiex_usb_submit_rx_urb(&card->rx_data_list[i], card 1305 drivers/net/wireless/marvell/mwifiex/usb.c struct usb_card_rec *card = (struct usb_card_rec *)adapter->card; card 1307 drivers/net/wireless/marvell/mwifiex/usb.c card->adapter = adapter; card 1309 drivers/net/wireless/marvell/mwifiex/usb.c switch (le16_to_cpu(card->udev->descriptor.idProduct)) { card 1344 drivers/net/wireless/marvell/mwifiex/usb.c struct usb_card_rec *card = (struct usb_card_rec *)adapter->card; card 1350 drivers/net/wireless/marvell/mwifiex/usb.c port = &card->port[idx]; card 1364 drivers/net/wireless/marvell/mwifiex/usb.c struct usb_card_rec *card = (struct usb_card_rec *)adapter->card; card 1366 drivers/net/wireless/marvell/mwifiex/usb.c mwifiex_usb_free(card); card 1370 drivers/net/wireless/marvell/mwifiex/usb.c card->adapter = NULL; card 1514 drivers/net/wireless/marvell/mwifiex/usb.c struct usb_card_rec *card = (struct usb_card_rec *)adapter->card; card 1516 drivers/net/wireless/marvell/mwifiex/usb.c if (card->usb_boot_state == USB8XXX_FW_DNLD) { card 1522 drivers/net/wireless/marvell/mwifiex/usb.c if (card->usb_boot_state == USB8XXX_FW_DNLD) card 1535 drivers/net/wireless/marvell/mwifiex/usb.c struct usb_card_rec *card = (struct usb_card_rec *)adapter->card; card 1537 drivers/net/wireless/marvell/mwifiex/usb.c skb_push(card->rx_cmd.skb, INTF_HEADER_LEN); card 1538 drivers/net/wireless/marvell/mwifiex/usb.c if ((ep == card->rx_cmd_ep) && card 1539 drivers/net/wireless/marvell/mwifiex/usb.c (!atomic_read(&card->rx_cmd_urb_pending))) card 1540 drivers/net/wireless/marvell/mwifiex/usb.c mwifiex_usb_submit_rx_urb(&card->rx_cmd, card 1568 drivers/net/wireless/marvell/mwifiex/usb.c struct usb_card_rec *card = (struct usb_card_rec *)adapter->card; card 1573 drivers/net/wireless/marvell/mwifiex/usb.c if (card->rx_data_list[i].skb) card 1575 drivers/net/wireless/marvell/mwifiex/usb.c ctx = &card->rx_data_list[i]; card 62 drivers/net/wireless/rsi/rsi_91x_sdio.c static int rsi_cmd52writebyte(struct mmc_card *card, card 75 drivers/net/wireless/rsi/rsi_91x_sdio.c return mmc_wait_for_cmd(card->host, &io_cmd, 0); card 86 drivers/net/wireless/rsi/rsi_91x_sdio.c static int rsi_cmd52readbyte(struct mmc_card *card, card 100 drivers/net/wireless/rsi/rsi_91x_sdio.c err = mmc_wait_for_cmd(card->host, &io_cmd, 0); card 126 drivers/net/wireless/rsi/rsi_91x_sdio.c host = func->card->host; card 171 drivers/net/wireless/rsi/rsi_91x_sdio.c struct mmc_card *card = pfunction->card; card 172 drivers/net/wireless/rsi/rsi_91x_sdio.c struct mmc_host *host = card->host; card 178 drivers/net/wireless/rsi/rsi_91x_sdio.c ret = rsi_cmd52writebyte(pfunction->card, card 238 drivers/net/wireless/rsi/rsi_91x_sdio.c card->ocr = resp; card 242 drivers/net/wireless/rsi/rsi_91x_sdio.c card->ocr, card 287 drivers/net/wireless/rsi/rsi_91x_sdio.c if (card->host->caps & MMC_CAP_SD_HIGHSPEED) { card 289 drivers/net/wireless/rsi/rsi_91x_sdio.c err = rsi_cmd52readbyte(card, SDIO_CCCR_SPEED, &cmd52_resp); card 294 drivers/net/wireless/rsi/rsi_91x_sdio.c err = rsi_cmd52writebyte(card, card 309 drivers/net/wireless/rsi/rsi_91x_sdio.c if (mmc_card_hs(card)) card 312 drivers/net/wireless/rsi/rsi_91x_sdio.c clock = card->cis.max_dtr; card 320 drivers/net/wireless/rsi/rsi_91x_sdio.c if (card->host->caps & MMC_CAP_4_BIT_DATA) { card 322 drivers/net/wireless/rsi/rsi_91x_sdio.c err = rsi_cmd52writebyte(card, card 347 drivers/net/wireless/rsi/rsi_91x_sdio.c struct mmc_host *host = dev->pfunction->card->host; card 1295 drivers/net/wireless/rsi/rsi_91x_sdio.c ret = rsi_cmd52readbyte(pfunc->card, RSI_INT_ENABLE_REGISTER, &data); card 1304 drivers/net/wireless/rsi/rsi_91x_sdio.c ret = rsi_cmd52writebyte(pfunc->card, RSI_INT_ENABLE_REGISTER, data); card 1311 drivers/net/wireless/rsi/rsi_91x_sdio.c ret = rsi_cmd52readbyte(pfunc->card, RSI_INT_ENABLE_REGISTER, &data); card 1333 drivers/net/wireless/rsi/rsi_91x_sdio.c ret = rsi_cmd52readbyte(pfunc->card, RSI_INT_ENABLE_REGISTER, &data); card 1342 drivers/net/wireless/rsi/rsi_91x_sdio.c ret = rsi_cmd52writebyte(pfunc->card, RSI_INT_ENABLE_REGISTER, data); card 1355 drivers/net/wireless/rsi/rsi_91x_sdio.c ret = rsi_cmd52readbyte(pfunc->card, RSI_INT_ENABLE_REGISTER, &data); card 294 drivers/net/wireless/st/cw1200/cw1200_sdio.c func->card->quirks |= MMC_QUIRK_LENIENT_FN0; card 141 drivers/net/wireless/ti/wlcore/sdio.c struct mmc_card *card = func->card; card 143 drivers/net/wireless/ti/wlcore/sdio.c ret = pm_runtime_get_sync(&card->dev); card 145 drivers/net/wireless/ti/wlcore/sdio.c pm_runtime_put_noidle(&card->dev); card 157 drivers/net/wireless/ti/wlcore/sdio.c mmc_hw_reset(card->host); card 168 drivers/net/wireless/ti/wlcore/sdio.c struct mmc_card *card = func->card; card 175 drivers/net/wireless/ti/wlcore/sdio.c pm_runtime_put(&card->dev); card 293 drivers/net/wireless/ti/wlcore/sdio.c func->card->quirks |= MMC_QUIRK_LENIENT_FN0; card 296 drivers/net/wireless/ti/wlcore/sdio.c func->card->quirks |= MMC_QUIRK_BLKSZ_FOR_BYTE_MODE; card 320 drivers/net/wireless/ti/wlcore/sdio.c if (func->card->cccr.sdio_vsn == SDIO_SDIO_REV_3_00) card 50 drivers/parisc/hppb.c struct hppb_card *card = &hppb_card_head; card 52 drivers/parisc/hppb.c while(card->next) { card 53 drivers/parisc/hppb.c card = card->next; card 56 drivers/parisc/hppb.c if(card->hpa) { card 57 drivers/parisc/hppb.c card->next = kzalloc(sizeof(struct hppb_card), GFP_KERNEL); card 58 drivers/parisc/hppb.c if(!card->next) { card 62 drivers/parisc/hppb.c card = card->next; card 65 drivers/parisc/hppb.c card->hpa = dev->hpa.start; card 66 drivers/parisc/hppb.c card->mmio_region.name = "HP-PB Bus"; card 67 drivers/parisc/hppb.c card->mmio_region.flags = IORESOURCE_MEM; card 69 drivers/parisc/hppb.c card->mmio_region.start = gsc_readl(dev->hpa.start + IO_IO_LOW); card 70 drivers/parisc/hppb.c card->mmio_region.end = gsc_readl(dev->hpa.start + IO_IO_HIGH) - 1; card 72 drivers/parisc/hppb.c status = ccio_request_resource(dev, &card->mmio_region); card 76 drivers/parisc/hppb.c &card->mmio_region, card 83 drivers/parport/parport_serial.c int (*preinit_hook) (struct pci_dev *pdev, struct parport_pc_pci *card, card 89 drivers/parport/parport_serial.c struct parport_pc_pci *card, int failed); card 576 drivers/parport/parport_serial.c struct parport_pc_pci *card; card 581 drivers/parport/parport_serial.c card = &priv->par; card 582 drivers/parport/parport_serial.c if (card->preinit_hook && card 583 drivers/parport/parport_serial.c card->preinit_hook (dev, card, PARPORT_IRQ_NONE, PARPORT_DMA_NONE)) card 586 drivers/parport/parport_serial.c for (n = 0; n < card->numports; n++) { card 588 drivers/parport/parport_serial.c int lo = card->addr[n].lo; card 589 drivers/parport/parport_serial.c int hi = card->addr[n].hi; card 596 drivers/parport/parport_serial.c ARRAY_SIZE(priv->port), card->numports); card 628 drivers/parport/parport_serial.c if (card->postinit_hook) card 629 drivers/parport/parport_serial.c card->postinit_hook (dev, card, !success); card 846 drivers/pcmcia/cistpl.c m->card = get_unaligned_le16(tuple->TupleData + 2); card 418 drivers/pcmcia/ds.c p_dev->card_id = manf_id.card; card 7206 drivers/platform/x86/thinkpad_acpi.c struct snd_card *card; card 7611 drivers/platform/x86/thinkpad_acpi.c struct snd_card *card; card 7619 drivers/platform/x86/thinkpad_acpi.c sizeof(struct tpacpi_alsa_data), &card); card 7620 drivers/platform/x86/thinkpad_acpi.c if (rc < 0 || !card) { card 7625 drivers/platform/x86/thinkpad_acpi.c BUG_ON(!card->private_data); card 7626 drivers/platform/x86/thinkpad_acpi.c data = card->private_data; card 7627 drivers/platform/x86/thinkpad_acpi.c data->card = card; card 7629 drivers/platform/x86/thinkpad_acpi.c strlcpy(card->driver, TPACPI_ALSA_DRVNAME, card 7630 drivers/platform/x86/thinkpad_acpi.c sizeof(card->driver)); card 7631 drivers/platform/x86/thinkpad_acpi.c strlcpy(card->shortname, TPACPI_ALSA_SHRTNAME, card 7632 drivers/platform/x86/thinkpad_acpi.c sizeof(card->shortname)); card 7633 drivers/platform/x86/thinkpad_acpi.c snprintf(card->mixername, sizeof(card->mixername), "ThinkPad EC %s", card 7636 drivers/platform/x86/thinkpad_acpi.c snprintf(card->longname, sizeof(card->longname), card 7637 drivers/platform/x86/thinkpad_acpi.c "%s at EC reg 0x%02x, fw %s", card->shortname, TP_EC_AUDIO, card 7653 drivers/platform/x86/thinkpad_acpi.c rc = snd_ctl_add(card, ctl_vol); card 7663 drivers/platform/x86/thinkpad_acpi.c rc = snd_ctl_add(card, ctl_mute); card 7670 drivers/platform/x86/thinkpad_acpi.c rc = snd_card_register(card); card 7676 drivers/platform/x86/thinkpad_acpi.c alsa_card = card; card 7680 drivers/platform/x86/thinkpad_acpi.c snd_card_free(card); card 23 drivers/pnp/base.h int pnp_add_card(struct pnp_card *card); card 24 drivers/pnp/base.h void pnp_remove_card(struct pnp_card *card); card 25 drivers/pnp/base.h int pnp_add_card_device(struct pnp_card *card, struct pnp_dev *dev); card 20 drivers/pnp/card.c struct pnp_card *card) card 25 drivers/pnp/card.c if (compare_pnp_id(card->id, drv_id->id)) { card 36 drivers/pnp/card.c card_for_each_dev(card, dev) { card 62 drivers/pnp/card.c if (!dev->card || !drv) card 71 drivers/pnp/card.c static int card_probe(struct pnp_card *card, struct pnp_card_driver *drv) card 79 drivers/pnp/card.c id = match_card(drv, card); card 86 drivers/pnp/card.c clink->card = card; card 94 drivers/pnp/card.c card_for_each_dev(card, dev) { card 107 drivers/pnp/card.c static struct pnp_id *pnp_add_card_id(struct pnp_card *card, char *id) card 125 drivers/pnp/card.c ptr = card->id; card 131 drivers/pnp/card.c card->id = dev_id; card 136 drivers/pnp/card.c static void pnp_free_card_ids(struct pnp_card *card) card 141 drivers/pnp/card.c id = card->id; card 151 drivers/pnp/card.c struct pnp_card *card = to_pnp_card(dmdev); card 153 drivers/pnp/card.c pnp_free_card_ids(card); card 154 drivers/pnp/card.c kfree(card); card 159 drivers/pnp/card.c struct pnp_card *card; card 162 drivers/pnp/card.c card = kzalloc(sizeof(struct pnp_card), GFP_KERNEL); card 163 drivers/pnp/card.c if (!card) card 166 drivers/pnp/card.c card->protocol = protocol; card 167 drivers/pnp/card.c card->number = id; card 169 drivers/pnp/card.c card->dev.parent = &card->protocol->dev; card 170 drivers/pnp/card.c dev_set_name(&card->dev, "%02x:%02x", card->protocol->number, card->number); card 172 drivers/pnp/card.c card->dev.coherent_dma_mask = DMA_BIT_MASK(24); card 173 drivers/pnp/card.c card->dev.dma_mask = &card->dev.coherent_dma_mask; card 175 drivers/pnp/card.c dev_id = pnp_add_card_id(card, pnpid); card 177 drivers/pnp/card.c kfree(card); card 181 drivers/pnp/card.c return card; card 188 drivers/pnp/card.c struct pnp_card *card = to_pnp_card(dmdev); card 190 drivers/pnp/card.c str += sprintf(str, "%s\n", card->name); card 200 drivers/pnp/card.c struct pnp_card *card = to_pnp_card(dmdev); card 201 drivers/pnp/card.c struct pnp_id *pos = card->id; card 212 drivers/pnp/card.c static int pnp_interface_attach_card(struct pnp_card *card) card 214 drivers/pnp/card.c int rc = device_create_file(&card->dev, &dev_attr_name); card 219 drivers/pnp/card.c rc = device_create_file(&card->dev, &dev_attr_card_id); card 226 drivers/pnp/card.c device_remove_file(&card->dev, &dev_attr_name); card 234 drivers/pnp/card.c int pnp_add_card(struct pnp_card *card) card 239 drivers/pnp/card.c card->dev.bus = NULL; card 240 drivers/pnp/card.c card->dev.release = &pnp_release_card; card 241 drivers/pnp/card.c error = device_register(&card->dev); card 243 drivers/pnp/card.c dev_err(&card->dev, "could not register (err=%d)\n", error); card 244 drivers/pnp/card.c put_device(&card->dev); card 248 drivers/pnp/card.c pnp_interface_attach_card(card); card 250 drivers/pnp/card.c list_add_tail(&card->global_list, &pnp_cards); card 251 drivers/pnp/card.c list_add_tail(&card->protocol_list, &card->protocol->cards); card 257 drivers/pnp/card.c list_for_each(pos, &card->devices) { card 267 drivers/pnp/card.c card_probe(card, drv); card 276 drivers/pnp/card.c void pnp_remove_card(struct pnp_card *card) card 280 drivers/pnp/card.c device_unregister(&card->dev); card 282 drivers/pnp/card.c list_del(&card->global_list); card 283 drivers/pnp/card.c list_del(&card->protocol_list); card 285 drivers/pnp/card.c list_for_each_safe(pos, temp, &card->devices) { card 296 drivers/pnp/card.c int pnp_add_card_device(struct pnp_card *card, struct pnp_dev *dev) card 298 drivers/pnp/card.c dev->dev.parent = &card->dev; card 301 drivers/pnp/card.c dev->protocol->number, card->number, dev->number); card 303 drivers/pnp/card.c dev->card = card; card 304 drivers/pnp/card.c list_add_tail(&dev->card_list, &card->devices); card 316 drivers/pnp/card.c dev->card = NULL; card 334 drivers/pnp/card.c struct pnp_card *card; card 339 drivers/pnp/card.c card = clink->card; card 342 drivers/pnp/card.c pos = card->devices.next; card 344 drivers/pnp/card.c if (from->card != card) card 348 drivers/pnp/card.c while (pos != &card->devices) { card 436 drivers/pnp/card.c struct pnp_card *card = card 438 drivers/pnp/card.c card_probe(card, drv); card 219 drivers/pnp/core.c if (dev->card) card 37 drivers/pnp/isapnp/compat.c struct pnp_card *card = global_to_pnp_card(list); card 39 drivers/pnp/isapnp/compat.c if (compare_pnp_id(card->id, id) || (memcmp(id, any, 7) == 0)) card 40 drivers/pnp/isapnp/compat.c return card; card 46 drivers/pnp/isapnp/compat.c struct pnp_dev *pnp_find_dev(struct pnp_card *card, unsigned short vendor, card 54 drivers/pnp/isapnp/compat.c if (card == NULL) { /* look for a logical device from all cards */ card 72 drivers/pnp/isapnp/compat.c list = card->devices.next; card 75 drivers/pnp/isapnp/compat.c if (from->card != card) /* something is wrong */ card 78 drivers/pnp/isapnp/compat.c while (list != &card->devices) { card 381 drivers/pnp/isapnp/core.c static struct pnp_dev *__init isapnp_parse_device(struct pnp_card *card, card 397 drivers/pnp/isapnp/core.c dev->card = card; card 563 drivers/pnp/isapnp/core.c static int __init isapnp_create_device(struct pnp_card *card, card 573 drivers/pnp/isapnp/core.c if ((dev = isapnp_parse_device(card, size, number++)) == NULL) card 576 drivers/pnp/isapnp/core.c pnp_add_card_device(card, dev); card 587 drivers/pnp/isapnp/core.c isapnp_parse_device(card, size, card 593 drivers/pnp/isapnp/core.c pnp_add_card_device(card, dev); card 687 drivers/pnp/isapnp/core.c "ignored\n", type, card->number); card 699 drivers/pnp/isapnp/core.c static void __init isapnp_parse_resource_map(struct pnp_card *card) card 712 drivers/pnp/isapnp/core.c card->pnpver = tmp[0]; card 713 drivers/pnp/isapnp/core.c card->productver = tmp[1]; card 718 drivers/pnp/isapnp/core.c if (isapnp_create_device(card, size) == 1) card 726 drivers/pnp/isapnp/core.c isapnp_parse_name(card->name, sizeof(card->name), card 740 drivers/pnp/isapnp/core.c dev_err(&card->dev, "unknown tag %#x, ignored\n", card 778 drivers/pnp/isapnp/core.c struct pnp_card *card; card 791 drivers/pnp/isapnp/core.c card = pnp_alloc_card(&isapnp_protocol, csn, id); card 792 drivers/pnp/isapnp/core.c if (!card) card 795 drivers/pnp/isapnp/core.c INIT_LIST_HEAD(&card->devices); card 796 drivers/pnp/isapnp/core.c card->serial = card 800 drivers/pnp/isapnp/core.c isapnp_parse_resource_map(card); card 802 drivers/pnp/isapnp/core.c dev_err(&card->dev, "invalid checksum %#x\n", card 804 drivers/pnp/isapnp/core.c card->checksum = isapnp_checksum_value; card 806 drivers/pnp/isapnp/core.c pnp_add_card(card); card 818 drivers/pnp/isapnp/core.c struct pnp_card *card; card 820 drivers/pnp/isapnp/core.c pnp_for_each_card(card) { card 821 drivers/pnp/isapnp/core.c if (card->protocol == &isapnp_protocol) card 877 drivers/pnp/isapnp/core.c isapnp_cfg_begin(dev->card->number, dev->number); card 914 drivers/pnp/isapnp/core.c isapnp_cfg_begin(dev->card->number, dev->number); card 962 drivers/pnp/isapnp/core.c isapnp_cfg_begin(dev->card->number, dev->number); card 979 drivers/pnp/isapnp/core.c struct pnp_card *card; card 1046 drivers/pnp/isapnp/core.c protocol_for_each_card(&isapnp_protocol, card) { card 1049 drivers/pnp/isapnp/core.c dev_info(&card->dev, "card '%s'\n", card 1050 drivers/pnp/isapnp/core.c card->name[0] ? card->name : "unknown"); card 1053 drivers/pnp/isapnp/core.c card_for_each_dev(card, dev) { card 1054 drivers/pnp/isapnp/core.c dev_info(&card->dev, "device '%s'\n", card 40 drivers/pnp/isapnp/proc.c isapnp_cfg_begin(dev->card->number, dev->number); card 60 drivers/pnp/isapnp/proc.c struct pnp_card *bus = dev->card; card 708 drivers/s390/crypto/ap_bus.c int rc, card, queue, devres, drvres; card 711 drivers/s390/crypto/ap_bus.c card = AP_QID_CARD(to_ap_queue(dev)->qid); card 714 drivers/s390/crypto/ap_bus.c devres = test_bit_inv(card, ap_perms.apm) card 721 drivers/s390/crypto/ap_bus.c card, queue); card 734 drivers/s390/crypto/ap_bus.c int ap_owned_by_def_drv(int card, int queue) card 738 drivers/s390/crypto/ap_bus.c if (card < 0 || card >= AP_DEVICES || queue < 0 || queue >= AP_DOMAINS) card 743 drivers/s390/crypto/ap_bus.c if (test_bit_inv(card, ap_perms.apm) card 756 drivers/s390/crypto/ap_bus.c int card, queue, rc = 0; card 760 drivers/s390/crypto/ap_bus.c for (card = 0; !rc && card < AP_DEVICES; card++) card 761 drivers/s390/crypto/ap_bus.c if (test_bit_inv(card, apm) && card 762 drivers/s390/crypto/ap_bus.c test_bit_inv(card, ap_perms.apm)) card 778 drivers/s390/crypto/ap_bus.c int card, queue, devres, drvres, rc; card 787 drivers/s390/crypto/ap_bus.c card = AP_QID_CARD(to_ap_queue(dev)->qid); card 790 drivers/s390/crypto/ap_bus.c devres = test_bit_inv(card, ap_perms.apm) card 804 drivers/s390/crypto/ap_bus.c &to_ap_queue(dev)->card->queues); card 1518 drivers/s390/crypto/ap_bus.c aq->card = ac; card 173 drivers/s390/crypto/ap_bus.h struct ap_card *card; /* Ptr to assoc. AP card. */ card 253 drivers/s390/crypto/ap_queue.c if (aq->queue_count < aq->card->queue_depth) { card 679 drivers/s390/crypto/ap_queue.c atomic64_inc(&aq->card->total_request_count); card 393 drivers/s390/crypto/pkey_api.c int i, card, dom, rc; card 420 drivers/s390/crypto/pkey_api.c card = apqns[i].card; card 423 drivers/s390/crypto/pkey_api.c rc = cca_genseckey(card, dom, ksize, keybuf); card 426 drivers/s390/crypto/pkey_api.c rc = cca_gencipherkey(card, dom, ksize, kflags, card 440 drivers/s390/crypto/pkey_api.c int i, card, dom, rc; card 467 drivers/s390/crypto/pkey_api.c card = apqns[i].card; card 470 drivers/s390/crypto/pkey_api.c rc = cca_clr2seckey(card, dom, ksize, card 474 drivers/s390/crypto/pkey_api.c rc = cca_clr2cipherkey(card, dom, ksize, kflags, card 521 drivers/s390/crypto/pkey_api.c *cardnr = ((struct pkey_apqn *)_apqns)->card; card 556 drivers/s390/crypto/pkey_api.c *cardnr = ((struct pkey_apqn *)_apqns)->card; card 571 drivers/s390/crypto/pkey_api.c int i, card, dom, rc; card 612 drivers/s390/crypto/pkey_api.c card = apqns[i].card; card 615 drivers/s390/crypto/pkey_api.c rc = cca_sec2protkey(card, dom, key, pkey->protkey, card 618 drivers/s390/crypto/pkey_api.c rc = cca_cipher2protkey(card, dom, key, pkey->protkey, card 559 drivers/s390/crypto/zcrypt_api.c static inline bool zcrypt_check_card(struct ap_perms *perms, int card) card 561 drivers/s390/crypto/zcrypt_api.c return test_bit_inv(card, perms->apm) ? true : false; card 608 drivers/s390/crypto/zcrypt_api.c return atomic64_read(&zc->card->total_request_count) > card 609 drivers/s390/crypto/zcrypt_api.c atomic64_read(&pref_zc->card->total_request_count); card 665 drivers/s390/crypto/zcrypt_api.c if (!zc->online || !(zc->card->functions & 0x18000000)) card 672 drivers/s390/crypto/zcrypt_api.c if (!zcrypt_check_card(perms, zc->card->id)) card 749 drivers/s390/crypto/zcrypt_api.c if (!zc->online || !(zc->card->functions & 0x18000000)) card 756 drivers/s390/crypto/zcrypt_api.c if (!zcrypt_check_card(perms, zc->card->id)) card 835 drivers/s390/crypto/zcrypt_api.c if (!zc->online || !(zc->card->functions & 0x10000000)) card 839 drivers/s390/crypto/zcrypt_api.c xcRB->user_defined != zc->card->id) card 842 drivers/s390/crypto/zcrypt_api.c if (!zcrypt_check_card(perms, zc->card->id)) card 972 drivers/s390/crypto/zcrypt_api.c if (!zc->online || !(zc->card->functions & 0x04000000)) card 976 drivers/s390/crypto/zcrypt_api.c !is_desired_ep11_card(zc->card->id, target_num, targets)) card 979 drivers/s390/crypto/zcrypt_api.c if (!zcrypt_check_card(perms, zc->card->id)) card 1052 drivers/s390/crypto/zcrypt_api.c if (!zc->online || !(zc->card->functions & 0x10000000)) card 1097 drivers/s390/crypto/zcrypt_api.c int card, queue; card 1105 drivers/s390/crypto/zcrypt_api.c card = AP_QID_CARD(zq->queue->qid); card 1106 drivers/s390/crypto/zcrypt_api.c if (card >= MAX_ZDEV_CARDIDS) card 1109 drivers/s390/crypto/zcrypt_api.c stat = &devstatus[card * AP_DOMAINS + queue]; card 1110 drivers/s390/crypto/zcrypt_api.c stat->hwtype = zc->card->ap_dev.device_type; card 1111 drivers/s390/crypto/zcrypt_api.c stat->functions = zc->card->functions >> 26; card 1124 drivers/s390/crypto/zcrypt_api.c int card, queue; card 1132 drivers/s390/crypto/zcrypt_api.c card = AP_QID_CARD(zq->queue->qid); card 1134 drivers/s390/crypto/zcrypt_api.c stat = &devstatus[card * AP_DOMAINS + queue]; card 1135 drivers/s390/crypto/zcrypt_api.c stat->hwtype = zc->card->ap_dev.device_type; card 1136 drivers/s390/crypto/zcrypt_api.c stat->functions = zc->card->functions >> 26; card 1145 drivers/s390/crypto/zcrypt_api.c int zcrypt_device_status_ext(int card, int queue, card 1156 drivers/s390/crypto/zcrypt_api.c if (card == AP_QID_CARD(zq->queue->qid) && card 1158 drivers/s390/crypto/zcrypt_api.c devstat->hwtype = zc->card->ap_dev.device_type; card 1159 drivers/s390/crypto/zcrypt_api.c devstat->functions = zc->card->functions >> 26; card 1177 drivers/s390/crypto/zcrypt_api.c int card; card 1183 drivers/s390/crypto/zcrypt_api.c card = AP_QID_CARD(zq->queue->qid); card 1185 drivers/s390/crypto/zcrypt_api.c || card >= max_adapters) card 1187 drivers/s390/crypto/zcrypt_api.c status[card] = zc->online ? zc->user_space_type : 0x0d; card 1197 drivers/s390/crypto/zcrypt_api.c int card; card 1204 drivers/s390/crypto/zcrypt_api.c card = AP_QID_CARD(zq->queue->qid); card 1206 drivers/s390/crypto/zcrypt_api.c || card >= max_adapters) card 1209 drivers/s390/crypto/zcrypt_api.c qdepth[card] = card 1223 drivers/s390/crypto/zcrypt_api.c int card; card 1231 drivers/s390/crypto/zcrypt_api.c card = AP_QID_CARD(zq->queue->qid); card 1233 drivers/s390/crypto/zcrypt_api.c || card >= max_adapters) card 1238 drivers/s390/crypto/zcrypt_api.c reqcnt[card] = (cnt < UINT_MAX) ? (u32) cnt : UINT_MAX; card 77 drivers/s390/crypto/zcrypt_api.h struct ap_card *card; /* The "real" ap card device. */ card 144 drivers/s390/crypto/zcrypt_api.h int zcrypt_device_status_ext(int card, int queue, card 70 drivers/s390/crypto/zcrypt_card.c id = zc->card->id; card 154 drivers/s390/crypto/zcrypt_card.c rc = sysfs_create_group(&zc->card->ap_dev.device.kobj, card 165 drivers/s390/crypto/zcrypt_card.c ZCRYPT_DBF(DBF_INFO, "card=%02x register online=1\n", zc->card->id); card 179 drivers/s390/crypto/zcrypt_card.c ZCRYPT_DBF(DBF_INFO, "card=%02x unregister\n", zc->card->id); card 184 drivers/s390/crypto/zcrypt_card.c sysfs_remove_group(&zc->card->ap_dev.device.kobj, card 1063 drivers/s390/crypto/zcrypt_ccamisc.c int cca_clr2cipherkey(u16 card, u16 dom, u32 keybitsize, u32 keygenflags, card 1098 drivers/s390/crypto/zcrypt_ccamisc.c rc = _ip_cprb_helper(card, dom, "AES ", "FIRST ", "MIN3PART", card 1106 drivers/s390/crypto/zcrypt_ccamisc.c rc = _ip_cprb_helper(card, dom, "AES ", "ADD-PART", NULL, card 1114 drivers/s390/crypto/zcrypt_ccamisc.c rc = _ip_cprb_helper(card, dom, "AES ", "ADD-PART", NULL, card 1122 drivers/s390/crypto/zcrypt_ccamisc.c rc = _ip_cprb_helper(card, dom, "AES ", "COMPLETE", NULL, card 1539 drivers/s390/crypto/zcrypt_ccamisc.c int cca_get_info(u16 card, u16 dom, struct cca_info *ci, int verify) card 1543 drivers/s390/crypto/zcrypt_ccamisc.c rc = cca_info_cache_fetch(card, dom, ci); card 1545 drivers/s390/crypto/zcrypt_ccamisc.c rc = fetch_cca_info(card, dom, ci); card 1547 drivers/s390/crypto/zcrypt_ccamisc.c cca_info_cache_update(card, dom, ci); card 1562 drivers/s390/crypto/zcrypt_ccamisc.c u16 card, dom; card 1580 drivers/s390/crypto/zcrypt_ccamisc.c card = AP_QID_CARD(device_status[i].qid); card 1585 drivers/s390/crypto/zcrypt_ccamisc.c if (cca_info_cache_fetch(card, dom, &ci) == 0 && card 1592 drivers/s390/crypto/zcrypt_ccamisc.c if (fetch_cca_info(card, dom, &ci) == 0) { card 1593 drivers/s390/crypto/zcrypt_ccamisc.c cca_info_cache_update(card, dom, &ci); card 1603 drivers/s390/crypto/zcrypt_ccamisc.c cca_info_cache_scrub(card, dom); card 1612 drivers/s390/crypto/zcrypt_ccamisc.c card = AP_QID_CARD(device_status[i].qid); card 1615 drivers/s390/crypto/zcrypt_ccamisc.c if (fetch_cca_info(card, dom, &ci) == 0) { card 1616 drivers/s390/crypto/zcrypt_ccamisc.c cca_info_cache_update(card, dom, &ci); card 1630 drivers/s390/crypto/zcrypt_ccamisc.c card = AP_QID_CARD(device_status[oi].qid); card 1636 drivers/s390/crypto/zcrypt_ccamisc.c *pcardnr = card; card 1680 drivers/s390/crypto/zcrypt_ccamisc.c int i, n, card, dom, curmatch, oldmatch, rc = 0; card 1699 drivers/s390/crypto/zcrypt_ccamisc.c card = AP_QID_CARD(device_status[i].qid); card 1708 drivers/s390/crypto/zcrypt_ccamisc.c if (cardnr != 0xFFFF && card != cardnr) card 1714 drivers/s390/crypto/zcrypt_ccamisc.c if (cca_get_info(card, dom, &ci, verify)) card 1736 drivers/s390/crypto/zcrypt_ccamisc.c (*apqns)[n] = (((u16)card) << 16) | ((u16) dom); card 213 drivers/s390/crypto/zcrypt_ccamisc.h int cca_get_info(u16 card, u16 dom, struct cca_info *ci, int verify); card 91 drivers/s390/crypto/zcrypt_cex2a.c zc->card = ac; card 151 drivers/s390/crypto/zcrypt_cex2c.c zc->card = ac; card 198 drivers/s390/crypto/zcrypt_cex4.c zc->card = ac; card 359 drivers/s390/crypto/zcrypt_cex4.c if (ap_test_bit(&aq->card->functions, AP_FUNC_ACCEL)) { card 365 drivers/s390/crypto/zcrypt_cex4.c } else if (ap_test_bit(&aq->card->functions, AP_FUNC_COPRO)) { card 371 drivers/s390/crypto/zcrypt_cex4.c } else if (ap_test_bit(&aq->card->functions, AP_FUNC_EP11)) { card 395 drivers/s390/crypto/zcrypt_cex4.c if (ap_test_bit(&aq->card->functions, AP_FUNC_COPRO)) { card 415 drivers/s390/crypto/zcrypt_cex4.c if (ap_test_bit(&aq->card->functions, AP_FUNC_COPRO)) card 84 drivers/s390/crypto/zcrypt_error.h int card = AP_QID_CARD(zq->queue->qid); card 102 drivers/s390/crypto/zcrypt_error.h card, queue, ehdr->reply_code); card 114 drivers/s390/crypto/zcrypt_error.h card, queue); card 117 drivers/s390/crypto/zcrypt_error.h card, queue, ehdr->reply_code); card 124 drivers/s390/crypto/zcrypt_error.h card, queue); card 135 drivers/s390/crypto/zcrypt_error.h card, queue, apfs, ehdr->reply_code); card 139 drivers/s390/crypto/zcrypt_error.h card, queue, ehdr->reply_code); card 147 drivers/s390/crypto/zcrypt_error.h card, queue); card 150 drivers/s390/crypto/zcrypt_error.h card, queue, ehdr->reply_code); card 155 drivers/s390/crypto/zcrypt_error.h card, queue); card 158 drivers/s390/crypto/zcrypt_error.h card, queue, ehdr->reply_code); card 162 drivers/s390/crypto/zcrypt_queue.c zc = zq->queue->card->private; card 158 drivers/s390/net/lcs.c lcs_free_card(struct lcs_card *card) card 161 drivers/s390/net/lcs.c LCS_DBF_HEX(2, setup, &card, sizeof(void*)); card 162 drivers/s390/net/lcs.c kfree(card); card 171 drivers/s390/net/lcs.c struct lcs_card *card; card 176 drivers/s390/net/lcs.c card = kzalloc(sizeof(struct lcs_card), GFP_KERNEL | GFP_DMA); card 177 drivers/s390/net/lcs.c if (card == NULL) card 179 drivers/s390/net/lcs.c card->lan_type = LCS_FRAME_TYPE_AUTO; card 180 drivers/s390/net/lcs.c card->pkt_seq = 0; card 181 drivers/s390/net/lcs.c card->lancmd_timeout = LCS_LANCMD_TIMEOUT_DEFAULT; card 183 drivers/s390/net/lcs.c rc = lcs_alloc_channel(&card->read); card 186 drivers/s390/net/lcs.c lcs_free_card(card); card 190 drivers/s390/net/lcs.c rc = lcs_alloc_channel(&card->write); card 193 drivers/s390/net/lcs.c lcs_cleanup_channel(&card->read); card 194 drivers/s390/net/lcs.c lcs_free_card(card); card 199 drivers/s390/net/lcs.c INIT_LIST_HEAD(&card->ipm_list); card 201 drivers/s390/net/lcs.c LCS_DBF_HEX(2, setup, &card, sizeof(void*)); card 202 drivers/s390/net/lcs.c return card; card 209 drivers/s390/net/lcs.c lcs_setup_read_ccws(struct lcs_card *card) card 215 drivers/s390/net/lcs.c memset(card->read.ccws, 0, sizeof (struct ccw1) * (LCS_NUM_BUFFS + 1)); card 217 drivers/s390/net/lcs.c card->read.ccws[cnt].cmd_code = LCS_CCW_READ; card 218 drivers/s390/net/lcs.c card->read.ccws[cnt].count = LCS_IOBUFFERSIZE; card 219 drivers/s390/net/lcs.c card->read.ccws[cnt].flags = card 225 drivers/s390/net/lcs.c card->read.ccws[cnt].cda = card 226 drivers/s390/net/lcs.c (__u32) __pa(card->read.iob[cnt].data); card 228 drivers/s390/net/lcs.c card->read.iob[cnt].data)->offset = LCS_ILLEGAL_OFFSET; card 229 drivers/s390/net/lcs.c card->read.iob[cnt].callback = lcs_get_frames_cb; card 230 drivers/s390/net/lcs.c card->read.iob[cnt].state = LCS_BUF_STATE_READY; card 231 drivers/s390/net/lcs.c card->read.iob[cnt].count = LCS_IOBUFFERSIZE; card 233 drivers/s390/net/lcs.c card->read.ccws[0].flags &= ~CCW_FLAG_PCI; card 234 drivers/s390/net/lcs.c card->read.ccws[LCS_NUM_BUFFS - 1].flags &= ~CCW_FLAG_PCI; card 235 drivers/s390/net/lcs.c card->read.ccws[LCS_NUM_BUFFS - 1].flags |= CCW_FLAG_SUSPEND; card 237 drivers/s390/net/lcs.c card->read.ccws[LCS_NUM_BUFFS].cmd_code = LCS_CCW_TRANSFER; card 238 drivers/s390/net/lcs.c card->read.ccws[LCS_NUM_BUFFS].cda = card 239 drivers/s390/net/lcs.c (__u32) __pa(card->read.ccws); card 241 drivers/s390/net/lcs.c card->read.state = LCS_CH_STATE_INIT; card 243 drivers/s390/net/lcs.c card->read.io_idx = 0; card 244 drivers/s390/net/lcs.c card->read.buf_idx = 0; card 248 drivers/s390/net/lcs.c lcs_setup_read(struct lcs_card *card) card 252 drivers/s390/net/lcs.c lcs_setup_read_ccws(card); card 254 drivers/s390/net/lcs.c card->read.irq_tasklet.data = (unsigned long) &card->read; card 255 drivers/s390/net/lcs.c card->read.irq_tasklet.func = lcs_tasklet; card 257 drivers/s390/net/lcs.c init_waitqueue_head(&card->read.wait_q); card 264 drivers/s390/net/lcs.c lcs_setup_write_ccws(struct lcs_card *card) card 270 drivers/s390/net/lcs.c memset(card->write.ccws, 0, sizeof(struct ccw1) * (LCS_NUM_BUFFS + 1)); card 272 drivers/s390/net/lcs.c card->write.ccws[cnt].cmd_code = LCS_CCW_WRITE; card 273 drivers/s390/net/lcs.c card->write.ccws[cnt].count = 0; card 274 drivers/s390/net/lcs.c card->write.ccws[cnt].flags = card 280 drivers/s390/net/lcs.c card->write.ccws[cnt].cda = card 281 drivers/s390/net/lcs.c (__u32) __pa(card->write.iob[cnt].data); card 284 drivers/s390/net/lcs.c card->write.ccws[LCS_NUM_BUFFS].cmd_code = LCS_CCW_TRANSFER; card 285 drivers/s390/net/lcs.c card->write.ccws[LCS_NUM_BUFFS].cda = card 286 drivers/s390/net/lcs.c (__u32) __pa(card->write.ccws); card 288 drivers/s390/net/lcs.c card->read.state = LCS_CH_STATE_INIT; card 290 drivers/s390/net/lcs.c card->write.io_idx = 0; card 291 drivers/s390/net/lcs.c card->write.buf_idx = 0; card 295 drivers/s390/net/lcs.c lcs_setup_write(struct lcs_card *card) card 299 drivers/s390/net/lcs.c lcs_setup_write_ccws(card); card 301 drivers/s390/net/lcs.c card->write.irq_tasklet.data = (unsigned long) &card->write; card 302 drivers/s390/net/lcs.c card->write.irq_tasklet.func = lcs_tasklet; card 304 drivers/s390/net/lcs.c init_waitqueue_head(&card->write.wait_q); card 308 drivers/s390/net/lcs.c lcs_set_allowed_threads(struct lcs_card *card, unsigned long threads) card 312 drivers/s390/net/lcs.c spin_lock_irqsave(&card->mask_lock, flags); card 313 drivers/s390/net/lcs.c card->thread_allowed_mask = threads; card 314 drivers/s390/net/lcs.c spin_unlock_irqrestore(&card->mask_lock, flags); card 315 drivers/s390/net/lcs.c wake_up(&card->wait_q); card 317 drivers/s390/net/lcs.c static int lcs_threads_running(struct lcs_card *card, unsigned long threads) card 322 drivers/s390/net/lcs.c spin_lock_irqsave(&card->mask_lock, flags); card 323 drivers/s390/net/lcs.c rc = (card->thread_running_mask & threads); card 324 drivers/s390/net/lcs.c spin_unlock_irqrestore(&card->mask_lock, flags); card 329 drivers/s390/net/lcs.c lcs_wait_for_threads(struct lcs_card *card, unsigned long threads) card 331 drivers/s390/net/lcs.c return wait_event_interruptible(card->wait_q, card 332 drivers/s390/net/lcs.c lcs_threads_running(card, threads) == 0); card 335 drivers/s390/net/lcs.c static int lcs_set_thread_start_bit(struct lcs_card *card, unsigned long thread) card 339 drivers/s390/net/lcs.c spin_lock_irqsave(&card->mask_lock, flags); card 340 drivers/s390/net/lcs.c if ( !(card->thread_allowed_mask & thread) || card 341 drivers/s390/net/lcs.c (card->thread_start_mask & thread) ) { card 342 drivers/s390/net/lcs.c spin_unlock_irqrestore(&card->mask_lock, flags); card 345 drivers/s390/net/lcs.c card->thread_start_mask |= thread; card 346 drivers/s390/net/lcs.c spin_unlock_irqrestore(&card->mask_lock, flags); card 351 drivers/s390/net/lcs.c lcs_clear_thread_running_bit(struct lcs_card *card, unsigned long thread) card 355 drivers/s390/net/lcs.c spin_lock_irqsave(&card->mask_lock, flags); card 356 drivers/s390/net/lcs.c card->thread_running_mask &= ~thread; card 357 drivers/s390/net/lcs.c spin_unlock_irqrestore(&card->mask_lock, flags); card 358 drivers/s390/net/lcs.c wake_up(&card->wait_q); card 361 drivers/s390/net/lcs.c static int __lcs_do_run_thread(struct lcs_card *card, unsigned long thread) card 366 drivers/s390/net/lcs.c spin_lock_irqsave(&card->mask_lock, flags); card 367 drivers/s390/net/lcs.c if (card->thread_start_mask & thread){ card 368 drivers/s390/net/lcs.c if ((card->thread_allowed_mask & thread) && card 369 drivers/s390/net/lcs.c !(card->thread_running_mask & thread)){ card 371 drivers/s390/net/lcs.c card->thread_start_mask &= ~thread; card 372 drivers/s390/net/lcs.c card->thread_running_mask |= thread; card 376 drivers/s390/net/lcs.c spin_unlock_irqrestore(&card->mask_lock, flags); card 381 drivers/s390/net/lcs.c lcs_do_run_thread(struct lcs_card *card, unsigned long thread) card 384 drivers/s390/net/lcs.c wait_event(card->wait_q, card 385 drivers/s390/net/lcs.c (rc = __lcs_do_run_thread(card, thread)) >= 0); card 390 drivers/s390/net/lcs.c lcs_do_start_thread(struct lcs_card *card, unsigned long thread) card 395 drivers/s390/net/lcs.c spin_lock_irqsave(&card->mask_lock, flags); card 397 drivers/s390/net/lcs.c (u8) card->thread_start_mask, card 398 drivers/s390/net/lcs.c (u8) card->thread_allowed_mask, card 399 drivers/s390/net/lcs.c (u8) card->thread_running_mask); card 400 drivers/s390/net/lcs.c rc = (card->thread_start_mask & thread); card 401 drivers/s390/net/lcs.c spin_unlock_irqrestore(&card->mask_lock, flags); card 409 drivers/s390/net/lcs.c lcs_setup_card(struct lcs_card *card) card 412 drivers/s390/net/lcs.c LCS_DBF_HEX(2, setup, &card, sizeof(void*)); card 414 drivers/s390/net/lcs.c lcs_setup_read(card); card 415 drivers/s390/net/lcs.c lcs_setup_write(card); card 417 drivers/s390/net/lcs.c card->state = DEV_STATE_DOWN; card 418 drivers/s390/net/lcs.c card->tx_buffer = NULL; card 419 drivers/s390/net/lcs.c card->tx_emitted = 0; card 421 drivers/s390/net/lcs.c init_waitqueue_head(&card->wait_q); card 422 drivers/s390/net/lcs.c spin_lock_init(&card->lock); card 423 drivers/s390/net/lcs.c spin_lock_init(&card->ipm_lock); card 424 drivers/s390/net/lcs.c spin_lock_init(&card->mask_lock); card 426 drivers/s390/net/lcs.c INIT_LIST_HEAD(&card->ipm_list); card 428 drivers/s390/net/lcs.c INIT_LIST_HEAD(&card->lancmd_waiters); card 431 drivers/s390/net/lcs.c static void lcs_clear_multicast_list(struct lcs_card *card) card 439 drivers/s390/net/lcs.c spin_lock_irqsave(&card->ipm_lock, flags); card 440 drivers/s390/net/lcs.c while (!list_empty(&card->ipm_list)){ card 441 drivers/s390/net/lcs.c ipm = list_entry(card->ipm_list.next, card 445 drivers/s390/net/lcs.c spin_unlock_irqrestore(&card->ipm_lock, flags); card 446 drivers/s390/net/lcs.c lcs_send_delipm(card, ipm); card 447 drivers/s390/net/lcs.c spin_lock_irqsave(&card->ipm_lock, flags); card 451 drivers/s390/net/lcs.c spin_unlock_irqrestore(&card->ipm_lock, flags); card 458 drivers/s390/net/lcs.c lcs_cleanup_card(struct lcs_card *card) card 462 drivers/s390/net/lcs.c LCS_DBF_HEX(2,setup,&card,sizeof(void*)); card 464 drivers/s390/net/lcs.c if (card->dev != NULL) card 465 drivers/s390/net/lcs.c free_netdev(card->dev); card 467 drivers/s390/net/lcs.c lcs_cleanup_channel(&card->write); card 468 drivers/s390/net/lcs.c lcs_cleanup_channel(&card->read); card 552 drivers/s390/net/lcs.c lcs_start_channels(struct lcs_card *card) card 558 drivers/s390/net/lcs.c rc = lcs_start_channel(&card->read); card 562 drivers/s390/net/lcs.c rc = lcs_start_channel(&card->write); card 564 drivers/s390/net/lcs.c lcs_stop_channel(&card->read); card 572 drivers/s390/net/lcs.c lcs_stop_channels(struct lcs_card *card) card 575 drivers/s390/net/lcs.c lcs_stop_channel(&card->read); card 576 drivers/s390/net/lcs.c lcs_stop_channel(&card->write); card 735 drivers/s390/net/lcs.c lcs_get_lancmd(struct lcs_card *card, int count) card 742 drivers/s390/net/lcs.c wait_event(card->write.wait_q, card 743 drivers/s390/net/lcs.c ((buffer = lcs_get_buffer(&card->write)) != NULL)); card 792 drivers/s390/net/lcs.c lcs_notify_lancmd_waiters(struct lcs_card *card, struct lcs_cmd *cmd) card 798 drivers/s390/net/lcs.c spin_lock(&card->lock); card 799 drivers/s390/net/lcs.c list_for_each_safe(l, n, &card->lancmd_waiters) { card 805 drivers/s390/net/lcs.c reply->callback(card, cmd); card 813 drivers/s390/net/lcs.c spin_unlock(&card->lock); card 827 drivers/s390/net/lcs.c spin_lock_irqsave(&reply->card->lock, flags); card 829 drivers/s390/net/lcs.c &reply->card->lancmd_waiters,list) { card 833 drivers/s390/net/lcs.c spin_unlock_irqrestore(&reply->card->lock, flags); card 841 drivers/s390/net/lcs.c spin_unlock_irqrestore(&reply->card->lock, flags); card 845 drivers/s390/net/lcs.c lcs_send_lancmd(struct lcs_card *card, struct lcs_buffer *buffer, card 856 drivers/s390/net/lcs.c cmd->sequence_no = card->sequence_no++; card 861 drivers/s390/net/lcs.c reply->card = card; card 862 drivers/s390/net/lcs.c spin_lock_irqsave(&card->lock, flags); card 863 drivers/s390/net/lcs.c list_add_tail(&reply->list, &card->lancmd_waiters); card 864 drivers/s390/net/lcs.c spin_unlock_irqrestore(&card->lock, flags); card 867 drivers/s390/net/lcs.c rc = lcs_ready_buffer(&card->write, buffer); card 871 drivers/s390/net/lcs.c mod_timer(&reply->timer, jiffies + HZ * card->lancmd_timeout); card 884 drivers/s390/net/lcs.c lcs_send_startup(struct lcs_card *card, __u8 initiator) card 890 drivers/s390/net/lcs.c buffer = lcs_get_lancmd(card, LCS_STD_CMD_SIZE); card 895 drivers/s390/net/lcs.c return lcs_send_lancmd(card, buffer, NULL); card 902 drivers/s390/net/lcs.c lcs_send_shutdown(struct lcs_card *card) card 908 drivers/s390/net/lcs.c buffer = lcs_get_lancmd(card, LCS_STD_CMD_SIZE); card 912 drivers/s390/net/lcs.c return lcs_send_lancmd(card, buffer, NULL); card 919 drivers/s390/net/lcs.c __lcs_lanstat_cb(struct lcs_card *card, struct lcs_cmd *cmd) card 922 drivers/s390/net/lcs.c memcpy(card->mac, cmd->cmd.lcs_lanstat_cmd.mac_addr, LCS_MAC_LENGTH); card 926 drivers/s390/net/lcs.c lcs_send_lanstat(struct lcs_card *card) card 932 drivers/s390/net/lcs.c buffer = lcs_get_lancmd(card, LCS_STD_CMD_SIZE); card 937 drivers/s390/net/lcs.c cmd->cmd.lcs_std_cmd.lan_type = card->lan_type; card 938 drivers/s390/net/lcs.c cmd->cmd.lcs_std_cmd.portno = card->portno; card 939 drivers/s390/net/lcs.c return lcs_send_lancmd(card, buffer, __lcs_lanstat_cb); card 946 drivers/s390/net/lcs.c lcs_send_stoplan(struct lcs_card *card, __u8 initiator) card 952 drivers/s390/net/lcs.c buffer = lcs_get_lancmd(card, LCS_STD_CMD_SIZE); card 956 drivers/s390/net/lcs.c cmd->cmd.lcs_std_cmd.lan_type = card->lan_type; card 957 drivers/s390/net/lcs.c cmd->cmd.lcs_std_cmd.portno = card->portno; card 958 drivers/s390/net/lcs.c return lcs_send_lancmd(card, buffer, NULL); card 965 drivers/s390/net/lcs.c __lcs_send_startlan_cb(struct lcs_card *card, struct lcs_cmd *cmd) card 968 drivers/s390/net/lcs.c card->lan_type = cmd->cmd.lcs_std_cmd.lan_type; card 969 drivers/s390/net/lcs.c card->portno = cmd->cmd.lcs_std_cmd.portno; card 973 drivers/s390/net/lcs.c lcs_send_startlan(struct lcs_card *card, __u8 initiator) card 979 drivers/s390/net/lcs.c buffer = lcs_get_lancmd(card, LCS_STD_CMD_SIZE); card 983 drivers/s390/net/lcs.c cmd->cmd.lcs_std_cmd.lan_type = card->lan_type; card 984 drivers/s390/net/lcs.c cmd->cmd.lcs_std_cmd.portno = card->portno; card 985 drivers/s390/net/lcs.c return lcs_send_lancmd(card, buffer, __lcs_send_startlan_cb); card 993 drivers/s390/net/lcs.c lcs_send_setipm(struct lcs_card *card,struct lcs_ipm_list *ipm_list) card 999 drivers/s390/net/lcs.c buffer = lcs_get_lancmd(card, LCS_MULTICAST_CMD_SIZE); card 1003 drivers/s390/net/lcs.c cmd->cmd.lcs_qipassist.lan_type = card->lan_type; card 1004 drivers/s390/net/lcs.c cmd->cmd.lcs_qipassist.portno = card->portno; card 1010 drivers/s390/net/lcs.c return lcs_send_lancmd(card, buffer, NULL); card 1017 drivers/s390/net/lcs.c lcs_send_delipm(struct lcs_card *card,struct lcs_ipm_list *ipm_list) card 1023 drivers/s390/net/lcs.c buffer = lcs_get_lancmd(card, LCS_MULTICAST_CMD_SIZE); card 1027 drivers/s390/net/lcs.c cmd->cmd.lcs_qipassist.lan_type = card->lan_type; card 1028 drivers/s390/net/lcs.c cmd->cmd.lcs_qipassist.portno = card->portno; card 1034 drivers/s390/net/lcs.c return lcs_send_lancmd(card, buffer, NULL); card 1041 drivers/s390/net/lcs.c __lcs_check_multicast_cb(struct lcs_card *card, struct lcs_cmd *cmd) card 1044 drivers/s390/net/lcs.c card->ip_assists_supported = card 1046 drivers/s390/net/lcs.c card->ip_assists_enabled = card 1051 drivers/s390/net/lcs.c lcs_check_multicast_support(struct lcs_card *card) card 1059 drivers/s390/net/lcs.c buffer = lcs_get_lancmd(card, LCS_STD_CMD_SIZE); card 1063 drivers/s390/net/lcs.c cmd->cmd.lcs_qipassist.lan_type = card->lan_type; card 1064 drivers/s390/net/lcs.c cmd->cmd.lcs_qipassist.portno = card->portno; card 1067 drivers/s390/net/lcs.c rc = lcs_send_lancmd(card, buffer, __lcs_check_multicast_cb); card 1072 drivers/s390/net/lcs.c if (card->ip_assists_supported & LCS_IPASS_MULTICAST_SUPPORT) card 1081 drivers/s390/net/lcs.c lcs_fix_multicast_list(struct lcs_card *card) card 1090 drivers/s390/net/lcs.c spin_lock_irqsave(&card->ipm_lock, flags); card 1092 drivers/s390/net/lcs.c list_for_each_entry_safe(ipm, tmp, &card->ipm_list, list){ card 1098 drivers/s390/net/lcs.c spin_unlock_irqrestore(&card->ipm_lock, flags); card 1099 drivers/s390/net/lcs.c rc = lcs_send_setipm(card, ipm); card 1100 drivers/s390/net/lcs.c spin_lock_irqsave(&card->ipm_lock, flags); card 1111 drivers/s390/net/lcs.c list_add_tail(&ipm->list, &card->ipm_list); card 1116 drivers/s390/net/lcs.c spin_unlock_irqrestore(&card->ipm_lock, flags); card 1117 drivers/s390/net/lcs.c lcs_send_delipm(card, ipm); card 1118 drivers/s390/net/lcs.c spin_lock_irqsave(&card->ipm_lock, flags); card 1127 drivers/s390/net/lcs.c list_move_tail(&ipm->list, &card->ipm_list); card 1129 drivers/s390/net/lcs.c spin_unlock_irqrestore(&card->ipm_lock, flags); card 1145 drivers/s390/net/lcs.c static void lcs_remove_mc_addresses(struct lcs_card *card, card 1155 drivers/s390/net/lcs.c spin_lock_irqsave(&card->ipm_lock, flags); card 1156 drivers/s390/net/lcs.c list_for_each(l, &card->ipm_list) { card 1160 drivers/s390/net/lcs.c lcs_get_mac_for_ipm(im4->multiaddr, buf, card->dev); card 1169 drivers/s390/net/lcs.c spin_unlock_irqrestore(&card->ipm_lock, flags); card 1172 drivers/s390/net/lcs.c static struct lcs_ipm_list *lcs_check_addr_entry(struct lcs_card *card, card 1181 drivers/s390/net/lcs.c spin_lock_irqsave(&card->ipm_lock, flags); card 1182 drivers/s390/net/lcs.c list_for_each(l, &card->ipm_list) { card 1191 drivers/s390/net/lcs.c spin_unlock_irqrestore(&card->ipm_lock, flags); card 1195 drivers/s390/net/lcs.c static void lcs_set_mc_addresses(struct lcs_card *card, card 1207 drivers/s390/net/lcs.c lcs_get_mac_for_ipm(im4->multiaddr, buf, card->dev); card 1208 drivers/s390/net/lcs.c ipm = lcs_check_addr_entry(card, im4, buf); card 1220 drivers/s390/net/lcs.c spin_lock_irqsave(&card->ipm_lock, flags); card 1222 drivers/s390/net/lcs.c list_add(&ipm->list, &card->ipm_list); card 1223 drivers/s390/net/lcs.c spin_unlock_irqrestore(&card->ipm_lock, flags); card 1230 drivers/s390/net/lcs.c struct lcs_card *card; card 1233 drivers/s390/net/lcs.c card = (struct lcs_card *) data; card 1235 drivers/s390/net/lcs.c if (!lcs_do_run_thread(card, LCS_SET_MC_THREAD)) card 1239 drivers/s390/net/lcs.c in4_dev = in_dev_get(card->dev); card 1243 drivers/s390/net/lcs.c lcs_remove_mc_addresses(card,in4_dev); card 1244 drivers/s390/net/lcs.c lcs_set_mc_addresses(card, in4_dev); card 1248 drivers/s390/net/lcs.c netif_carrier_off(card->dev); card 1249 drivers/s390/net/lcs.c netif_tx_disable(card->dev); card 1250 drivers/s390/net/lcs.c wait_event(card->write.wait_q, card 1251 drivers/s390/net/lcs.c (card->write.state != LCS_CH_STATE_RUNNING)); card 1252 drivers/s390/net/lcs.c lcs_fix_multicast_list(card); card 1253 drivers/s390/net/lcs.c if (card->state == DEV_STATE_UP) { card 1254 drivers/s390/net/lcs.c netif_carrier_on(card->dev); card 1255 drivers/s390/net/lcs.c netif_wake_queue(card->dev); card 1258 drivers/s390/net/lcs.c lcs_clear_thread_running_bit(card, LCS_SET_MC_THREAD); card 1271 drivers/s390/net/lcs.c struct lcs_card *card; card 1274 drivers/s390/net/lcs.c card = (struct lcs_card *) dev->ml_priv; card 1276 drivers/s390/net/lcs.c if (!lcs_set_thread_start_bit(card, LCS_SET_MC_THREAD)) card 1277 drivers/s390/net/lcs.c schedule_work(&card->kernel_thread_starter); card 1351 drivers/s390/net/lcs.c lcs_schedule_recovery(struct lcs_card *card) card 1354 drivers/s390/net/lcs.c if (!lcs_set_thread_start_bit(card, LCS_RECOVERY_THREAD)) card 1355 drivers/s390/net/lcs.c schedule_work(&card->kernel_thread_starter); card 1364 drivers/s390/net/lcs.c struct lcs_card *card; card 1372 drivers/s390/net/lcs.c card = CARD_FROM_DEV(cdev); card 1373 drivers/s390/net/lcs.c if (card->read.ccwdev == cdev) card 1374 drivers/s390/net/lcs.c channel = &card->read; card 1376 drivers/s390/net/lcs.c channel = &card->write; card 1398 drivers/s390/net/lcs.c lcs_schedule_recovery(card); card 1399 drivers/s390/net/lcs.c wake_up(&card->wait_q); card 1483 drivers/s390/net/lcs.c __lcs_emit_txbuffer(struct lcs_card *card) card 1486 drivers/s390/net/lcs.c *(__u16 *)(card->tx_buffer->data + card->tx_buffer->count) = 0; card 1487 drivers/s390/net/lcs.c card->tx_buffer->count += 2; card 1488 drivers/s390/net/lcs.c lcs_ready_buffer(&card->write, card->tx_buffer); card 1489 drivers/s390/net/lcs.c card->tx_buffer = NULL; card 1490 drivers/s390/net/lcs.c card->tx_emitted++; card 1499 drivers/s390/net/lcs.c struct lcs_card *card; card 1504 drivers/s390/net/lcs.c card = container_of(channel, struct lcs_card, write); card 1505 drivers/s390/net/lcs.c if (netif_queue_stopped(card->dev) && netif_carrier_ok(card->dev)) card 1506 drivers/s390/net/lcs.c netif_wake_queue(card->dev); card 1507 drivers/s390/net/lcs.c spin_lock(&card->lock); card 1508 drivers/s390/net/lcs.c card->tx_emitted--; card 1509 drivers/s390/net/lcs.c if (card->tx_emitted <= 0 && card->tx_buffer != NULL) card 1514 drivers/s390/net/lcs.c __lcs_emit_txbuffer(card); card 1515 drivers/s390/net/lcs.c spin_unlock(&card->lock); card 1522 drivers/s390/net/lcs.c __lcs_start_xmit(struct lcs_card *card, struct sk_buff *skb, card 1530 drivers/s390/net/lcs.c card->stats.tx_dropped++; card 1531 drivers/s390/net/lcs.c card->stats.tx_errors++; card 1534 drivers/s390/net/lcs.c if (card->state != DEV_STATE_UP) { card 1536 drivers/s390/net/lcs.c card->stats.tx_dropped++; card 1537 drivers/s390/net/lcs.c card->stats.tx_errors++; card 1538 drivers/s390/net/lcs.c card->stats.tx_carrier_errors++; card 1545 drivers/s390/net/lcs.c netif_stop_queue(card->dev); card 1546 drivers/s390/net/lcs.c spin_lock(&card->lock); card 1547 drivers/s390/net/lcs.c if (card->tx_buffer != NULL && card 1548 drivers/s390/net/lcs.c card->tx_buffer->count + sizeof(struct lcs_header) + card 1551 drivers/s390/net/lcs.c __lcs_emit_txbuffer(card); card 1552 drivers/s390/net/lcs.c if (card->tx_buffer == NULL) { card 1554 drivers/s390/net/lcs.c card->tx_buffer = lcs_get_buffer(&card->write); card 1555 drivers/s390/net/lcs.c if (card->tx_buffer == NULL) { card 1556 drivers/s390/net/lcs.c card->stats.tx_dropped++; card 1560 drivers/s390/net/lcs.c card->tx_buffer->callback = lcs_txbuffer_cb; card 1561 drivers/s390/net/lcs.c card->tx_buffer->count = 0; card 1564 drivers/s390/net/lcs.c (card->tx_buffer->data + card->tx_buffer->count); card 1565 drivers/s390/net/lcs.c card->tx_buffer->count += skb->len + sizeof(struct lcs_header); card 1566 drivers/s390/net/lcs.c header->offset = card->tx_buffer->count; card 1567 drivers/s390/net/lcs.c header->type = card->lan_type; card 1568 drivers/s390/net/lcs.c header->slot = card->portno; card 1570 drivers/s390/net/lcs.c spin_unlock(&card->lock); card 1571 drivers/s390/net/lcs.c card->stats.tx_bytes += skb->len; card 1572 drivers/s390/net/lcs.c card->stats.tx_packets++; card 1574 drivers/s390/net/lcs.c netif_wake_queue(card->dev); card 1575 drivers/s390/net/lcs.c spin_lock(&card->lock); card 1576 drivers/s390/net/lcs.c if (card->tx_emitted <= 0 && card->tx_buffer != NULL) card 1578 drivers/s390/net/lcs.c __lcs_emit_txbuffer(card); card 1580 drivers/s390/net/lcs.c spin_unlock(&card->lock); card 1587 drivers/s390/net/lcs.c struct lcs_card *card; card 1591 drivers/s390/net/lcs.c card = (struct lcs_card *) dev->ml_priv; card 1592 drivers/s390/net/lcs.c rc = __lcs_start_xmit(card, skb, dev); card 1600 drivers/s390/net/lcs.c lcs_startlan_auto(struct lcs_card *card) card 1606 drivers/s390/net/lcs.c card->lan_type = LCS_FRAME_TYPE_ENET; card 1607 drivers/s390/net/lcs.c rc = lcs_send_startlan(card, LCS_INITIATOR_TCPIP); card 1613 drivers/s390/net/lcs.c card->lan_type = LCS_FRAME_TYPE_FDDI; card 1614 drivers/s390/net/lcs.c rc = lcs_send_startlan(card, LCS_INITIATOR_TCPIP); card 1622 drivers/s390/net/lcs.c lcs_startlan(struct lcs_card *card) card 1628 drivers/s390/net/lcs.c if (card->portno != LCS_INVALID_PORT_NO) { card 1629 drivers/s390/net/lcs.c if (card->lan_type == LCS_FRAME_TYPE_AUTO) card 1630 drivers/s390/net/lcs.c rc = lcs_startlan_auto(card); card 1632 drivers/s390/net/lcs.c rc = lcs_send_startlan(card, LCS_INITIATOR_TCPIP); card 1635 drivers/s390/net/lcs.c card->portno = i; card 1636 drivers/s390/net/lcs.c if (card->lan_type != LCS_FRAME_TYPE_AUTO) card 1637 drivers/s390/net/lcs.c rc = lcs_send_startlan(card, card 1641 drivers/s390/net/lcs.c rc = lcs_startlan_auto(card); card 1647 drivers/s390/net/lcs.c return lcs_send_lanstat(card); card 1656 drivers/s390/net/lcs.c lcs_detect(struct lcs_card *card) card 1662 drivers/s390/net/lcs.c if (card->dev) card 1663 drivers/s390/net/lcs.c netif_stop_queue(card->dev); card 1664 drivers/s390/net/lcs.c rc = lcs_stop_channels(card); card 1666 drivers/s390/net/lcs.c rc = lcs_start_channels(card); card 1668 drivers/s390/net/lcs.c rc = lcs_send_startup(card, LCS_INITIATOR_TCPIP); card 1670 drivers/s390/net/lcs.c rc = lcs_startlan(card); card 1674 drivers/s390/net/lcs.c card->state = DEV_STATE_UP; card 1676 drivers/s390/net/lcs.c card->state = DEV_STATE_DOWN; card 1677 drivers/s390/net/lcs.c card->write.state = LCS_CH_STATE_INIT; card 1678 drivers/s390/net/lcs.c card->read.state = LCS_CH_STATE_INIT; card 1687 drivers/s390/net/lcs.c lcs_stopcard(struct lcs_card *card) card 1693 drivers/s390/net/lcs.c if (card->read.state != LCS_CH_STATE_STOPPED && card 1694 drivers/s390/net/lcs.c card->write.state != LCS_CH_STATE_STOPPED && card 1695 drivers/s390/net/lcs.c card->read.state != LCS_CH_STATE_ERROR && card 1696 drivers/s390/net/lcs.c card->write.state != LCS_CH_STATE_ERROR && card 1697 drivers/s390/net/lcs.c card->state == DEV_STATE_UP) { card 1698 drivers/s390/net/lcs.c lcs_clear_multicast_list(card); card 1699 drivers/s390/net/lcs.c rc = lcs_send_stoplan(card,LCS_INITIATOR_TCPIP); card 1700 drivers/s390/net/lcs.c rc = lcs_send_shutdown(card); card 1702 drivers/s390/net/lcs.c rc = lcs_stop_channels(card); card 1703 drivers/s390/net/lcs.c card->state = DEV_STATE_DOWN; card 1714 drivers/s390/net/lcs.c struct lcs_card *card = container_of(work, struct lcs_card, kernel_thread_starter); card 1716 drivers/s390/net/lcs.c if (lcs_do_start_thread(card, LCS_RECOVERY_THREAD)) card 1717 drivers/s390/net/lcs.c kthread_run(lcs_recovery, card, "lcs_recover"); card 1719 drivers/s390/net/lcs.c if (lcs_do_start_thread(card, LCS_SET_MC_THREAD)) card 1720 drivers/s390/net/lcs.c kthread_run(lcs_register_mc_addresses, card, "regipm"); card 1728 drivers/s390/net/lcs.c lcs_get_control(struct lcs_card *card, struct lcs_cmd *cmd) card 1735 drivers/s390/net/lcs.c lcs_schedule_recovery(card); card 1739 drivers/s390/net/lcs.c card->dev->name); card 1740 drivers/s390/net/lcs.c if (card->dev) card 1741 drivers/s390/net/lcs.c netif_carrier_off(card->dev); card 1748 drivers/s390/net/lcs.c lcs_notify_lancmd_waiters(card, cmd); card 1755 drivers/s390/net/lcs.c lcs_get_skb(struct lcs_card *card, char *skb_data, unsigned int skb_len) card 1760 drivers/s390/net/lcs.c if (card->dev == NULL || card 1761 drivers/s390/net/lcs.c card->state != DEV_STATE_UP) card 1767 drivers/s390/net/lcs.c dev_err(&card->dev->dev, card 1769 drivers/s390/net/lcs.c card->dev->name); card 1770 drivers/s390/net/lcs.c card->stats.rx_dropped++; card 1774 drivers/s390/net/lcs.c skb->protocol = card->lan_type_trans(skb, card->dev); card 1775 drivers/s390/net/lcs.c card->stats.rx_bytes += skb_len; card 1776 drivers/s390/net/lcs.c card->stats.rx_packets++; card 1778 drivers/s390/net/lcs.c *((__u32 *)skb->cb) = ++card->pkt_seq; card 1788 drivers/s390/net/lcs.c struct lcs_card *card; card 1798 drivers/s390/net/lcs.c card = container_of(channel, struct lcs_card, read); card 1805 drivers/s390/net/lcs.c card->stats.rx_length_errors++; card 1806 drivers/s390/net/lcs.c card->stats.rx_errors++; card 1812 drivers/s390/net/lcs.c lcs_get_control(card, (struct lcs_cmd *) lcs_hdr); card 1817 drivers/s390/net/lcs.c lcs_get_skb(card, (char *)(lcs_hdr + 1), card 1829 drivers/s390/net/lcs.c lcs_ready_buffer(&card->read, buffer); card 1838 drivers/s390/net/lcs.c struct lcs_card *card; card 1841 drivers/s390/net/lcs.c card = (struct lcs_card *) dev->ml_priv; card 1842 drivers/s390/net/lcs.c return &card->stats; card 1852 drivers/s390/net/lcs.c struct lcs_card *card; card 1856 drivers/s390/net/lcs.c card = (struct lcs_card *) dev->ml_priv; card 1860 drivers/s390/net/lcs.c wait_event(card->write.wait_q, card 1861 drivers/s390/net/lcs.c (card->write.state != LCS_CH_STATE_RUNNING)); card 1862 drivers/s390/net/lcs.c rc = lcs_stopcard(card); card 1864 drivers/s390/net/lcs.c dev_err(&card->dev->dev, card 1876 drivers/s390/net/lcs.c struct lcs_card *card; card 1880 drivers/s390/net/lcs.c card = (struct lcs_card *) dev->ml_priv; card 1882 drivers/s390/net/lcs.c rc = lcs_detect(card); card 1890 drivers/s390/net/lcs.c card->state = DEV_STATE_UP; card 1901 drivers/s390/net/lcs.c struct lcs_card *card; card 1903 drivers/s390/net/lcs.c card = dev_get_drvdata(dev); card 1905 drivers/s390/net/lcs.c if (!card) card 1908 drivers/s390/net/lcs.c return sprintf(buf, "%d\n", card->portno); card 1917 drivers/s390/net/lcs.c struct lcs_card *card; card 1921 drivers/s390/net/lcs.c card = dev_get_drvdata(dev); card 1923 drivers/s390/net/lcs.c if (!card) card 1930 drivers/s390/net/lcs.c card->portno = value; card 1931 drivers/s390/net/lcs.c if (card->dev) card 1932 drivers/s390/net/lcs.c card->dev->dev_port = card->portno; card 1966 drivers/s390/net/lcs.c struct lcs_card *card; card 1968 drivers/s390/net/lcs.c card = dev_get_drvdata(dev); card 1970 drivers/s390/net/lcs.c return card ? sprintf(buf, "%u\n", card->lancmd_timeout) : 0; card 1976 drivers/s390/net/lcs.c struct lcs_card *card; card 1980 drivers/s390/net/lcs.c card = dev_get_drvdata(dev); card 1982 drivers/s390/net/lcs.c if (!card) card 1989 drivers/s390/net/lcs.c card->lancmd_timeout = value; card 2001 drivers/s390/net/lcs.c struct lcs_card *card = dev_get_drvdata(dev); card 2005 drivers/s390/net/lcs.c if (!card) card 2007 drivers/s390/net/lcs.c if (card->state != DEV_STATE_UP) card 2011 drivers/s390/net/lcs.c lcs_schedule_recovery(card); card 2042 drivers/s390/net/lcs.c struct lcs_card *card; card 2048 drivers/s390/net/lcs.c card = lcs_alloc_card(); card 2049 drivers/s390/net/lcs.c if (!card) { card 2054 drivers/s390/net/lcs.c dev_set_drvdata(&ccwgdev->dev, card); card 2057 drivers/s390/net/lcs.c card->gdev = ccwgdev; card 2058 drivers/s390/net/lcs.c INIT_WORK(&card->kernel_thread_starter, lcs_start_kernel_thread); card 2059 drivers/s390/net/lcs.c card->thread_start_mask = 0; card 2060 drivers/s390/net/lcs.c card->thread_allowed_mask = 0; card 2061 drivers/s390/net/lcs.c card->thread_running_mask = 0; card 2070 drivers/s390/net/lcs.c struct lcs_card *card; card 2073 drivers/s390/net/lcs.c card = dev_get_drvdata(&ccwgdev->dev); card 2074 drivers/s390/net/lcs.c if (card->dev->reg_state != NETREG_UNINITIALIZED) card 2076 drivers/s390/net/lcs.c SET_NETDEV_DEV(card->dev, &ccwgdev->dev); card 2077 drivers/s390/net/lcs.c return register_netdev(card->dev); card 2101 drivers/s390/net/lcs.c struct lcs_card *card; card 2106 drivers/s390/net/lcs.c card = dev_get_drvdata(&ccwgdev->dev); card 2107 drivers/s390/net/lcs.c if (!card) card 2111 drivers/s390/net/lcs.c LCS_DBF_HEX(3, setup, &card, sizeof(void*)); card 2112 drivers/s390/net/lcs.c card->read.ccwdev = ccwgdev->cdev[0]; card 2113 drivers/s390/net/lcs.c card->write.ccwdev = ccwgdev->cdev[1]; card 2115 drivers/s390/net/lcs.c recover_state = card->state; card 2116 drivers/s390/net/lcs.c rc = ccw_device_set_online(card->read.ccwdev); card 2119 drivers/s390/net/lcs.c rc = ccw_device_set_online(card->write.ccwdev); card 2125 drivers/s390/net/lcs.c lcs_setup_card(card); card 2126 drivers/s390/net/lcs.c rc = lcs_detect(card); card 2132 drivers/s390/net/lcs.c lcs_stopcard(card); card 2135 drivers/s390/net/lcs.c if (card->dev) { card 2137 drivers/s390/net/lcs.c LCS_DBF_HEX(3, setup, &card, sizeof(void*)); card 2140 drivers/s390/net/lcs.c switch (card->lan_type) { card 2143 drivers/s390/net/lcs.c card->lan_type_trans = eth_type_trans; card 2149 drivers/s390/net/lcs.c card->lan_type_trans = fddi_type_trans; card 2160 drivers/s390/net/lcs.c card->dev = dev; card 2161 drivers/s390/net/lcs.c card->dev->ml_priv = card; card 2162 drivers/s390/net/lcs.c card->dev->netdev_ops = &lcs_netdev_ops; card 2163 drivers/s390/net/lcs.c card->dev->dev_port = card->portno; card 2164 drivers/s390/net/lcs.c memcpy(card->dev->dev_addr, card->mac, LCS_MAC_LENGTH); card 2166 drivers/s390/net/lcs.c if (!lcs_check_multicast_support(card)) card 2167 drivers/s390/net/lcs.c card->dev->netdev_ops = &lcs_mc_netdev_ops; card 2170 drivers/s390/net/lcs.c lcs_set_allowed_threads(card,0xffffffff); card 2172 drivers/s390/net/lcs.c lcs_set_multicast_list(card->dev); card 2173 drivers/s390/net/lcs.c card->dev->flags |= IFF_UP; card 2174 drivers/s390/net/lcs.c netif_carrier_on(card->dev); card 2175 drivers/s390/net/lcs.c netif_wake_queue(card->dev); card 2176 drivers/s390/net/lcs.c card->state = DEV_STATE_UP; card 2178 drivers/s390/net/lcs.c lcs_stopcard(card); card 2185 drivers/s390/net/lcs.c pr_info("LCS device %s %s IPv6 support\n", card->dev->name, card 2186 drivers/s390/net/lcs.c (card->ip_assists_supported & LCS_IPASS_IPV6_SUPPORT) ? card 2189 drivers/s390/net/lcs.c pr_info("LCS device %s %s Multicast support\n", card->dev->name, card 2190 drivers/s390/net/lcs.c (card->ip_assists_supported & LCS_IPASS_MULTICAST_SUPPORT) ? card 2195 drivers/s390/net/lcs.c ccw_device_set_offline(card->write.ccwdev); card 2197 drivers/s390/net/lcs.c ccw_device_set_offline(card->read.ccwdev); card 2208 drivers/s390/net/lcs.c struct lcs_card *card; card 2213 drivers/s390/net/lcs.c card = dev_get_drvdata(&ccwgdev->dev); card 2214 drivers/s390/net/lcs.c if (!card) card 2217 drivers/s390/net/lcs.c lcs_set_allowed_threads(card, 0); card 2218 drivers/s390/net/lcs.c if (lcs_wait_for_threads(card, LCS_SET_MC_THREAD)) card 2221 drivers/s390/net/lcs.c LCS_DBF_HEX(3, setup, &card, sizeof(void*)); card 2222 drivers/s390/net/lcs.c recover_state = card->state; card 2224 drivers/s390/net/lcs.c ret = lcs_stop_device(card->dev); card 2225 drivers/s390/net/lcs.c ret2 = ccw_device_set_offline(card->read.ccwdev); card 2226 drivers/s390/net/lcs.c ret3 = ccw_device_set_offline(card->write.ccwdev); card 2232 drivers/s390/net/lcs.c card->state = DEV_STATE_RECOVER; card 2249 drivers/s390/net/lcs.c struct lcs_card *card; card 2253 drivers/s390/net/lcs.c card = (struct lcs_card *) ptr; card 2256 drivers/s390/net/lcs.c if (!lcs_do_run_thread(card, LCS_RECOVERY_THREAD)) card 2259 drivers/s390/net/lcs.c gdev = card->gdev; card 2266 drivers/s390/net/lcs.c card->dev->name); card 2269 drivers/s390/net/lcs.c card->dev->name); card 2270 drivers/s390/net/lcs.c lcs_clear_thread_running_bit(card, LCS_RECOVERY_THREAD); card 2280 drivers/s390/net/lcs.c struct lcs_card *card; card 2282 drivers/s390/net/lcs.c card = dev_get_drvdata(&ccwgdev->dev); card 2283 drivers/s390/net/lcs.c if (!card) card 2287 drivers/s390/net/lcs.c LCS_DBF_HEX(3, setup, &card, sizeof(void*)); card 2291 drivers/s390/net/lcs.c if (card->dev) card 2292 drivers/s390/net/lcs.c unregister_netdev(card->dev); card 2293 drivers/s390/net/lcs.c lcs_cleanup_card(card); card 2294 drivers/s390/net/lcs.c lcs_free_card(card); card 2299 drivers/s390/net/lcs.c static int lcs_pm_suspend(struct lcs_card *card) card 2301 drivers/s390/net/lcs.c if (card->dev) card 2302 drivers/s390/net/lcs.c netif_device_detach(card->dev); card 2303 drivers/s390/net/lcs.c lcs_set_allowed_threads(card, 0); card 2304 drivers/s390/net/lcs.c lcs_wait_for_threads(card, 0xffffffff); card 2305 drivers/s390/net/lcs.c if (card->state != DEV_STATE_DOWN) card 2306 drivers/s390/net/lcs.c __lcs_shutdown_device(card->gdev, 1); card 2310 drivers/s390/net/lcs.c static int lcs_pm_resume(struct lcs_card *card) card 2314 drivers/s390/net/lcs.c if (card->state == DEV_STATE_RECOVER) card 2315 drivers/s390/net/lcs.c rc = lcs_new_device(card->gdev); card 2316 drivers/s390/net/lcs.c if (card->dev) card 2317 drivers/s390/net/lcs.c netif_device_attach(card->dev); card 2319 drivers/s390/net/lcs.c dev_warn(&card->gdev->dev, "The lcs device driver " card 2337 drivers/s390/net/lcs.c struct lcs_card *card = dev_get_drvdata(&gdev->dev); card 2338 drivers/s390/net/lcs.c return lcs_pm_suspend(card); card 2343 drivers/s390/net/lcs.c struct lcs_card *card = dev_get_drvdata(&gdev->dev); card 2344 drivers/s390/net/lcs.c return lcs_pm_resume(card); card 2349 drivers/s390/net/lcs.c struct lcs_card *card = dev_get_drvdata(&gdev->dev); card 2350 drivers/s390/net/lcs.c return lcs_pm_resume(card); card 279 drivers/s390/net/lcs.h struct lcs_card *card; card 81 drivers/s390/net/qeth_core.h #define QETH_CARD_TEXT(card, level, text) \ card 82 drivers/s390/net/qeth_core.h debug_text_event(card->debug, level, text) card 84 drivers/s390/net/qeth_core.h #define QETH_CARD_HEX(card, level, addr, len) \ card 85 drivers/s390/net/qeth_core.h debug_event(card->debug, level, (void *)(addr), len) card 87 drivers/s390/net/qeth_core.h #define QETH_CARD_MESSAGE(card, text...) \ card 88 drivers/s390/net/qeth_core.h debug_sprintf_event(card->debug, level, text) card 90 drivers/s390/net/qeth_core.h #define QETH_CARD_TEXT_(card, level, text...) \ card 91 drivers/s390/net/qeth_core.h qeth_dbf_longtext(card->debug, level, text) card 113 drivers/s390/net/qeth_core.h #define CARD_RDEV(card) card->read.ccwdev card 114 drivers/s390/net/qeth_core.h #define CARD_WDEV(card) card->write.ccwdev card 115 drivers/s390/net/qeth_core.h #define CARD_DDEV(card) card->data.ccwdev card 116 drivers/s390/net/qeth_core.h #define CARD_BUS_ID(card) dev_name(&card->gdev->dev) card 117 drivers/s390/net/qeth_core.h #define CARD_RDEV_ID(card) dev_name(&card->read.ccwdev->dev) card 118 drivers/s390/net/qeth_core.h #define CARD_WDEV_ID(card) dev_name(&card->write.ccwdev->dev) card 119 drivers/s390/net/qeth_core.h #define CARD_DDEV_ID(card) dev_name(&card->data.ccwdev->dev) card 121 drivers/s390/net/qeth_core.h #define CARD_DEVID(card) (CCW_DEVID(CARD_RDEV(card))) card 238 drivers/s390/net/qeth_core.h #define QETH_MAX_BUFFER_ELEMENTS(card) ((card)->qdio.in_buf_size >> 12) card 239 drivers/s390/net/qeth_core.h #define QETH_IN_BUF_REQUEUE_THRESHOLD(card) \ card 240 drivers/s390/net/qeth_core.h ((card)->qdio.in_buf_pool.buf_count / 2) card 243 drivers/s390/net/qeth_core.h #define QETH_PCI_THRESHOLD_A(card) ((card)->qdio.in_buf_pool.buf_count+1) card 245 drivers/s390/net/qeth_core.h #define QETH_PCI_THRESHOLD_B(card) 0 card 247 drivers/s390/net/qeth_core.h #define QETH_PCI_TIMER_VALUE(card) 3 card 522 drivers/s390/net/qeth_core.h struct qeth_card *card; card 537 drivers/s390/net/qeth_core.h #define qeth_for_each_output_queue(card, q, i) \ card 538 drivers/s390/net/qeth_core.h for (i = 0; i < card->qdio.no_out_queues && \ card 539 drivers/s390/net/qeth_core.h (q = card->qdio.out_qs[i]); i++) card 629 drivers/s390/net/qeth_core.h int (*callback)(struct qeth_card *card, struct qeth_reply *reply, card 644 drivers/s390/net/qeth_core.h void (*finalize)(struct qeth_card *card, struct qeth_cmd_buffer *iob); card 645 drivers/s390/net/qeth_core.h void (*callback)(struct qeth_card *card, struct qeth_cmd_buffer *iob, card 747 drivers/s390/net/qeth_core.h #define IS_LAYER2(card) ((card)->options.layer == QETH_DISCIPLINE_LAYER2) card 748 drivers/s390/net/qeth_core.h #define IS_LAYER3(card) ((card)->options.layer == QETH_DISCIPLINE_LAYER3) card 764 drivers/s390/net/qeth_core.h int (*process_rx_buffer)(struct qeth_card *card, int budget, int *done); card 771 drivers/s390/net/qeth_core.h int (*control_event_handler)(struct qeth_card *card, card 853 drivers/s390/net/qeth_core.h static inline bool qeth_card_hw_is_reachable(struct qeth_card *card) card 855 drivers/s390/net/qeth_core.h return card->state == CARD_STATE_SOFTSETUP; card 867 drivers/s390/net/qeth_core.h #define QETH_CARD_IFNAME(card) (((card)->dev)? (card)->dev->name : "") card 946 drivers/s390/net/qeth_core.h static inline void qeth_rx_csum(struct qeth_card *card, struct sk_buff *skb, card 949 drivers/s390/net/qeth_core.h if ((card->dev->features & NETIF_F_RXCSUM) && card 952 drivers/s390/net/qeth_core.h QETH_CARD_STAT_INC(card, rx_skb_csum); card 966 drivers/s390/net/qeth_core.h static inline void qeth_put_buffer_pool_entry(struct qeth_card *card, card 969 drivers/s390/net/qeth_core.h list_add_tail(&entry->list, &card->qdio.in_buf_pool.entry_list); card 972 drivers/s390/net/qeth_core.h static inline int qeth_is_diagass_supported(struct qeth_card *card, card 975 drivers/s390/net/qeth_core.h return card->info.diagass_support & (__u32)cmd; card 978 drivers/s390/net/qeth_core.h int qeth_send_simple_setassparms_prot(struct qeth_card *card, card 983 drivers/s390/net/qeth_core.h static inline int qeth_send_simple_setassparms(struct qeth_card *card, card 987 drivers/s390/net/qeth_core.h return qeth_send_simple_setassparms_prot(card, ipa_func, cmd_code, card 991 drivers/s390/net/qeth_core.h static inline int qeth_send_simple_setassparms_v6(struct qeth_card *card, card 995 drivers/s390/net/qeth_core.h return qeth_send_simple_setassparms_prot(card, ipa_func, cmd_code, card 999 drivers/s390/net/qeth_core.h int qeth_get_priority_queue(struct qeth_card *card, struct sk_buff *skb); card 1027 drivers/s390/net/qeth_core.h int qeth_core_hardsetup_card(struct qeth_card *card, bool *carrier_ok); card 1036 drivers/s390/net/qeth_core.h struct qeth_cmd_buffer *qeth_ipa_alloc_cmd(struct qeth_card *card, card 1043 drivers/s390/net/qeth_core.h struct qeth_cmd_buffer *qeth_get_setassparms_cmd(struct qeth_card *card, card 1048 drivers/s390/net/qeth_core.h struct qeth_cmd_buffer *qeth_get_diag_cmd(struct qeth_card *card, card 1062 drivers/s390/net/qeth_core.h void qeth_drain_output_queues(struct qeth_card *card); card 1063 drivers/s390/net/qeth_core.h void qeth_setadp_promisc_mode(struct qeth_card *card, bool enable); card 1066 drivers/s390/net/qeth_core.h void qeth_prepare_ipa_cmd(struct qeth_card *card, struct qeth_cmd_buffer *iob, card 1068 drivers/s390/net/qeth_core.h int qeth_query_switch_attributes(struct qeth_card *card, card 1070 drivers/s390/net/qeth_core.h int qeth_query_card_info(struct qeth_card *card, card 1073 drivers/s390/net/qeth_core.h int qeth_do_send_packet(struct qeth_card *card, struct qeth_qdio_out_q *queue, card 1079 drivers/s390/net/qeth_core.h int qeth_set_access_ctrl_online(struct qeth_card *card, int fallback); card 1096 drivers/s390/net/qeth_core.h int qeth_vm_request_mac(struct qeth_card *card); card 1097 drivers/s390/net/qeth_core.h int qeth_xmit(struct qeth_card *card, struct sk_buff *skb, card 65 drivers/s390/net/qeth_core_main.c static void qeth_issue_next_read_cb(struct qeth_card *card, card 70 drivers/s390/net/qeth_core_main.c static void qeth_free_qdio_queues(struct qeth_card *card); card 80 drivers/s390/net/qeth_core_main.c struct qeth_card *card; card 82 drivers/s390/net/qeth_core_main.c card = container_of(work, struct qeth_card, close_dev_work); card 83 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "cldevhdl"); card 84 drivers/s390/net/qeth_core_main.c ccwgroup_set_offline(card->gdev); card 87 drivers/s390/net/qeth_core_main.c static const char *qeth_get_cardname(struct qeth_card *card) card 89 drivers/s390/net/qeth_core_main.c if (IS_VM_NIC(card)) { card 90 drivers/s390/net/qeth_core_main.c switch (card->info.type) { card 103 drivers/s390/net/qeth_core_main.c switch (card->info.type) { card 122 drivers/s390/net/qeth_core_main.c const char *qeth_get_cardname_short(struct qeth_card *card) card 124 drivers/s390/net/qeth_core_main.c if (IS_VM_NIC(card)) { card 125 drivers/s390/net/qeth_core_main.c switch (card->info.type) { card 138 drivers/s390/net/qeth_core_main.c switch (card->info.type) { card 140 drivers/s390/net/qeth_core_main.c switch (card->info.link_type) { card 177 drivers/s390/net/qeth_core_main.c void qeth_set_allowed_threads(struct qeth_card *card, unsigned long threads, card 182 drivers/s390/net/qeth_core_main.c spin_lock_irqsave(&card->thread_mask_lock, flags); card 183 drivers/s390/net/qeth_core_main.c card->thread_allowed_mask = threads; card 185 drivers/s390/net/qeth_core_main.c card->thread_start_mask &= threads; card 186 drivers/s390/net/qeth_core_main.c spin_unlock_irqrestore(&card->thread_mask_lock, flags); card 187 drivers/s390/net/qeth_core_main.c wake_up(&card->wait_q); card 191 drivers/s390/net/qeth_core_main.c int qeth_threads_running(struct qeth_card *card, unsigned long threads) card 196 drivers/s390/net/qeth_core_main.c spin_lock_irqsave(&card->thread_mask_lock, flags); card 197 drivers/s390/net/qeth_core_main.c rc = (card->thread_running_mask & threads); card 198 drivers/s390/net/qeth_core_main.c spin_unlock_irqrestore(&card->thread_mask_lock, flags); card 203 drivers/s390/net/qeth_core_main.c void qeth_clear_working_pool_list(struct qeth_card *card) card 207 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 5, "clwrklst"); card 209 drivers/s390/net/qeth_core_main.c &card->qdio.in_buf_pool.entry_list, list){ card 215 drivers/s390/net/qeth_core_main.c static int qeth_alloc_buffer_pool(struct qeth_card *card) card 221 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 5, "alocpool"); card 222 drivers/s390/net/qeth_core_main.c for (i = 0; i < card->qdio.init_pool.buf_count; ++i) { card 225 drivers/s390/net/qeth_core_main.c qeth_free_buffer_pool(card); card 228 drivers/s390/net/qeth_core_main.c for (j = 0; j < QETH_MAX_BUFFER_ELEMENTS(card); ++j) { card 235 drivers/s390/net/qeth_core_main.c qeth_free_buffer_pool(card); card 241 drivers/s390/net/qeth_core_main.c &card->qdio.init_pool.entry_list); card 246 drivers/s390/net/qeth_core_main.c int qeth_realloc_buffer_pool(struct qeth_card *card, int bufcnt) card 248 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "realcbp"); card 250 drivers/s390/net/qeth_core_main.c if (card->state != CARD_STATE_DOWN) card 254 drivers/s390/net/qeth_core_main.c qeth_clear_working_pool_list(card); card 255 drivers/s390/net/qeth_core_main.c qeth_free_buffer_pool(card); card 256 drivers/s390/net/qeth_core_main.c card->qdio.in_buf_pool.buf_count = bufcnt; card 257 drivers/s390/net/qeth_core_main.c card->qdio.init_pool.buf_count = bufcnt; card 258 drivers/s390/net/qeth_core_main.c return qeth_alloc_buffer_pool(card); card 291 drivers/s390/net/qeth_core_main.c static int qeth_cq_init(struct qeth_card *card) card 295 drivers/s390/net/qeth_core_main.c if (card->options.cq == QETH_CQ_ENABLED) { card 296 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "cqinit"); card 297 drivers/s390/net/qeth_core_main.c qdio_reset_buffers(card->qdio.c_q->qdio_bufs, card 299 drivers/s390/net/qeth_core_main.c card->qdio.c_q->next_buf_to_init = 127; card 300 drivers/s390/net/qeth_core_main.c rc = do_QDIO(CARD_DDEV(card), QDIO_FLAG_SYNC_INPUT, card 301 drivers/s390/net/qeth_core_main.c card->qdio.no_in_queues - 1, 0, card 304 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, "1err%d", rc); card 313 drivers/s390/net/qeth_core_main.c static int qeth_alloc_cq(struct qeth_card *card) card 317 drivers/s390/net/qeth_core_main.c if (card->options.cq == QETH_CQ_ENABLED) { card 321 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "cqon"); card 322 drivers/s390/net/qeth_core_main.c card->qdio.c_q = qeth_alloc_qdio_queue(); card 323 drivers/s390/net/qeth_core_main.c if (!card->qdio.c_q) { card 327 drivers/s390/net/qeth_core_main.c card->qdio.no_in_queues = 2; card 328 drivers/s390/net/qeth_core_main.c card->qdio.out_bufstates = card 329 drivers/s390/net/qeth_core_main.c kcalloc(card->qdio.no_out_queues * card 333 drivers/s390/net/qeth_core_main.c outbuf_states = card->qdio.out_bufstates; card 338 drivers/s390/net/qeth_core_main.c for (i = 0; i < card->qdio.no_out_queues; ++i) { card 339 drivers/s390/net/qeth_core_main.c card->qdio.out_qs[i]->bufstates = outbuf_states; card 343 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "nocq"); card 344 drivers/s390/net/qeth_core_main.c card->qdio.c_q = NULL; card 345 drivers/s390/net/qeth_core_main.c card->qdio.no_in_queues = 1; card 347 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, "iqc%d", card->qdio.no_in_queues); card 352 drivers/s390/net/qeth_core_main.c qeth_free_qdio_queue(card->qdio.c_q); card 353 drivers/s390/net/qeth_core_main.c card->qdio.c_q = NULL; card 355 drivers/s390/net/qeth_core_main.c dev_err(&card->gdev->dev, "Failed to create completion queue\n"); card 359 drivers/s390/net/qeth_core_main.c static void qeth_free_cq(struct qeth_card *card) card 361 drivers/s390/net/qeth_core_main.c if (card->qdio.c_q) { card 362 drivers/s390/net/qeth_core_main.c --card->qdio.no_in_queues; card 363 drivers/s390/net/qeth_core_main.c qeth_free_qdio_queue(card->qdio.c_q); card 364 drivers/s390/net/qeth_core_main.c card->qdio.c_q = NULL; card 366 drivers/s390/net/qeth_core_main.c kfree(card->qdio.out_bufstates); card 367 drivers/s390/net/qeth_core_main.c card->qdio.out_bufstates = NULL; card 398 drivers/s390/net/qeth_core_main.c if (q->card->options.cq != QETH_CQ_ENABLED) card 410 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(f->q->card, 5, "fp"); card 411 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(f->q->card, 5, "%lx", (long) f); card 432 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(q->card, 2, "clprecov"); card 437 drivers/s390/net/qeth_core_main.c static void qeth_qdio_handle_aob(struct qeth_card *card, card 446 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 5, "haob"); card 447 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 5, "%lx", phys_aob_addr); card 449 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 5, "%lx", aob->user1); card 462 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, "aorc%02X", aob->aorc); card 471 drivers/s390/net/qeth_core_main.c i < aob->sb_count && i < QETH_MAX_BUFFER_ELEMENTS(card); card 482 drivers/s390/net/qeth_core_main.c static inline int qeth_is_cq(struct qeth_card *card, unsigned int queue) card 484 drivers/s390/net/qeth_core_main.c return card->options.cq == QETH_CQ_ENABLED && card 485 drivers/s390/net/qeth_core_main.c card->qdio.c_q != NULL && card 487 drivers/s390/net/qeth_core_main.c queue == card->qdio.no_in_queues - 1; card 499 drivers/s390/net/qeth_core_main.c static int __qeth_issue_next_read(struct qeth_card *card) card 501 drivers/s390/net/qeth_core_main.c struct qeth_cmd_buffer *iob = card->read_cmd; card 506 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 5, "issnxrd"); card 516 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 6, "noirqpnd"); card 522 drivers/s390/net/qeth_core_main.c rc, CARD_DEVID(card)); card 525 drivers/s390/net/qeth_core_main.c card->read_or_write_problem = 1; card 526 drivers/s390/net/qeth_core_main.c qeth_schedule_recovery(card); card 527 drivers/s390/net/qeth_core_main.c wake_up(&card->wait_q); card 532 drivers/s390/net/qeth_core_main.c static int qeth_issue_next_read(struct qeth_card *card) card 536 drivers/s390/net/qeth_core_main.c spin_lock_irq(get_ccwdev_lock(CARD_RDEV(card))); card 537 drivers/s390/net/qeth_core_main.c ret = __qeth_issue_next_read(card); card 538 drivers/s390/net/qeth_core_main.c spin_unlock_irq(get_ccwdev_lock(CARD_RDEV(card))); card 543 drivers/s390/net/qeth_core_main.c static void qeth_enqueue_cmd(struct qeth_card *card, card 546 drivers/s390/net/qeth_core_main.c spin_lock_irq(&card->lock); card 547 drivers/s390/net/qeth_core_main.c list_add_tail(&iob->list, &card->cmd_waiter_list); card 548 drivers/s390/net/qeth_core_main.c spin_unlock_irq(&card->lock); card 551 drivers/s390/net/qeth_core_main.c static void qeth_dequeue_cmd(struct qeth_card *card, card 554 drivers/s390/net/qeth_core_main.c spin_lock_irq(&card->lock); card 556 drivers/s390/net/qeth_core_main.c spin_unlock_irq(&card->lock); card 567 drivers/s390/net/qeth_core_main.c struct qeth_card *card) card 575 drivers/s390/net/qeth_core_main.c ipa_name, com, CARD_DEVID(card), rc, card 579 drivers/s390/net/qeth_core_main.c ipa_name, com, CARD_DEVID(card)); card 582 drivers/s390/net/qeth_core_main.c static struct qeth_ipa_cmd *qeth_check_ipa_data(struct qeth_card *card, card 585 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 5, "chkipad"); card 592 drivers/s390/net/qeth_core_main.c qeth_issue_ipa_msg(cmd, cmd->hdr.return_code, card); card 600 drivers/s390/net/qeth_core_main.c dev_err(&card->gdev->dev, card 602 drivers/s390/net/qeth_core_main.c QETH_CARD_IFNAME(card)); card 603 drivers/s390/net/qeth_core_main.c schedule_work(&card->close_dev_work); card 605 drivers/s390/net/qeth_core_main.c dev_warn(&card->gdev->dev, card 607 drivers/s390/net/qeth_core_main.c QETH_CARD_IFNAME(card), card->info.chpid); card 608 drivers/s390/net/qeth_core_main.c qeth_issue_ipa_msg(cmd, cmd->hdr.return_code, card); card 609 drivers/s390/net/qeth_core_main.c netif_carrier_off(card->dev); card 613 drivers/s390/net/qeth_core_main.c dev_info(&card->gdev->dev, card 615 drivers/s390/net/qeth_core_main.c QETH_CARD_IFNAME(card), card->info.chpid); card 616 drivers/s390/net/qeth_core_main.c if (card->info.hwtrap) card 617 drivers/s390/net/qeth_core_main.c card->info.hwtrap = 2; card 618 drivers/s390/net/qeth_core_main.c qeth_schedule_recovery(card); card 623 drivers/s390/net/qeth_core_main.c if (card->discipline->control_event_handler(card, cmd)) card 629 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 3, "irla"); card 632 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 3, "urla"); card 640 drivers/s390/net/qeth_core_main.c void qeth_clear_ipacmd_list(struct qeth_card *card) card 645 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 4, "clipalst"); card 647 drivers/s390/net/qeth_core_main.c spin_lock_irqsave(&card->lock, flags); card 648 drivers/s390/net/qeth_core_main.c list_for_each_entry(iob, &card->cmd_waiter_list, list) card 650 drivers/s390/net/qeth_core_main.c spin_unlock_irqrestore(&card->lock, flags); card 654 drivers/s390/net/qeth_core_main.c static int qeth_check_idx_response(struct qeth_card *card, card 661 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "ckidxres"); card 662 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, " idxterm"); card 663 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, "rc%x", buffer[4]); card 666 drivers/s390/net/qeth_core_main.c dev_err(&card->gdev->dev, card 684 drivers/s390/net/qeth_core_main.c static void qeth_release_buffer_cb(struct qeth_card *card, card 728 drivers/s390/net/qeth_core_main.c static void qeth_issue_next_read_cb(struct qeth_card *card, card 739 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 4, "sndctlcb"); card 740 drivers/s390/net/qeth_core_main.c rc = qeth_check_idx_response(card, iob->data); card 745 drivers/s390/net/qeth_core_main.c qeth_schedule_recovery(card); card 748 drivers/s390/net/qeth_core_main.c qeth_clear_ipacmd_list(card); card 754 drivers/s390/net/qeth_core_main.c cmd = qeth_check_ipa_data(card, cmd); card 757 drivers/s390/net/qeth_core_main.c if (IS_OSN(card) && card->osn_info.assist_cb && card 759 drivers/s390/net/qeth_core_main.c card->osn_info.assist_cb(card->dev, cmd); card 764 drivers/s390/net/qeth_core_main.c if (card->state != CARD_STATE_DOWN) card 769 drivers/s390/net/qeth_core_main.c spin_lock_irqsave(&card->lock, flags); card 770 drivers/s390/net/qeth_core_main.c list_for_each_entry(tmp, &card->cmd_waiter_list, list) { card 779 drivers/s390/net/qeth_core_main.c spin_unlock_irqrestore(&card->lock, flags); card 795 drivers/s390/net/qeth_core_main.c rc = reply->callback(card, reply, cmd ? (unsigned long)cmd : card 804 drivers/s390/net/qeth_core_main.c memcpy(&card->seqno.pdu_hdr_ack, card 808 drivers/s390/net/qeth_core_main.c __qeth_issue_next_read(card); card 811 drivers/s390/net/qeth_core_main.c static int qeth_set_thread_start_bit(struct qeth_card *card, card 816 drivers/s390/net/qeth_core_main.c spin_lock_irqsave(&card->thread_mask_lock, flags); card 817 drivers/s390/net/qeth_core_main.c if (!(card->thread_allowed_mask & thread) || card 818 drivers/s390/net/qeth_core_main.c (card->thread_start_mask & thread)) { card 819 drivers/s390/net/qeth_core_main.c spin_unlock_irqrestore(&card->thread_mask_lock, flags); card 822 drivers/s390/net/qeth_core_main.c card->thread_start_mask |= thread; card 823 drivers/s390/net/qeth_core_main.c spin_unlock_irqrestore(&card->thread_mask_lock, flags); card 827 drivers/s390/net/qeth_core_main.c void qeth_clear_thread_start_bit(struct qeth_card *card, unsigned long thread) card 831 drivers/s390/net/qeth_core_main.c spin_lock_irqsave(&card->thread_mask_lock, flags); card 832 drivers/s390/net/qeth_core_main.c card->thread_start_mask &= ~thread; card 833 drivers/s390/net/qeth_core_main.c spin_unlock_irqrestore(&card->thread_mask_lock, flags); card 834 drivers/s390/net/qeth_core_main.c wake_up(&card->wait_q); card 838 drivers/s390/net/qeth_core_main.c void qeth_clear_thread_running_bit(struct qeth_card *card, unsigned long thread) card 842 drivers/s390/net/qeth_core_main.c spin_lock_irqsave(&card->thread_mask_lock, flags); card 843 drivers/s390/net/qeth_core_main.c card->thread_running_mask &= ~thread; card 844 drivers/s390/net/qeth_core_main.c spin_unlock_irqrestore(&card->thread_mask_lock, flags); card 845 drivers/s390/net/qeth_core_main.c wake_up_all(&card->wait_q); card 849 drivers/s390/net/qeth_core_main.c static int __qeth_do_run_thread(struct qeth_card *card, unsigned long thread) card 854 drivers/s390/net/qeth_core_main.c spin_lock_irqsave(&card->thread_mask_lock, flags); card 855 drivers/s390/net/qeth_core_main.c if (card->thread_start_mask & thread) { card 856 drivers/s390/net/qeth_core_main.c if ((card->thread_allowed_mask & thread) && card 857 drivers/s390/net/qeth_core_main.c !(card->thread_running_mask & thread)) { card 859 drivers/s390/net/qeth_core_main.c card->thread_start_mask &= ~thread; card 860 drivers/s390/net/qeth_core_main.c card->thread_running_mask |= thread; card 864 drivers/s390/net/qeth_core_main.c spin_unlock_irqrestore(&card->thread_mask_lock, flags); card 868 drivers/s390/net/qeth_core_main.c int qeth_do_run_thread(struct qeth_card *card, unsigned long thread) card 872 drivers/s390/net/qeth_core_main.c wait_event(card->wait_q, card 873 drivers/s390/net/qeth_core_main.c (rc = __qeth_do_run_thread(card, thread)) >= 0); card 878 drivers/s390/net/qeth_core_main.c void qeth_schedule_recovery(struct qeth_card *card) card 880 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "startrec"); card 881 drivers/s390/net/qeth_core_main.c if (qeth_set_thread_start_bit(card, QETH_RECOVER_THREAD) == 0) card 882 drivers/s390/net/qeth_core_main.c schedule_work(&card->kernel_thread_starter); card 886 drivers/s390/net/qeth_core_main.c static int qeth_get_problem(struct qeth_card *card, struct ccw_device *cdev, card 899 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "CGENCHK"); card 912 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "REVIND"); card 917 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "CMDREJi"); card 921 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "AFFE"); card 925 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "ZEROSEN"); card 928 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "DGENCHK"); card 934 drivers/s390/net/qeth_core_main.c static int qeth_check_irb_error(struct qeth_card *card, struct ccw_device *cdev, card 944 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "ckirberr"); card 945 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, " rc%d", -EIO); card 950 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "ckirberr"); card 951 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, " rc%d", -ETIMEDOUT); card 956 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "ckirberr"); card 957 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, " rc???"); card 970 drivers/s390/net/qeth_core_main.c struct qeth_card *card; card 974 drivers/s390/net/qeth_core_main.c card = dev_get_drvdata(&gdev->dev); card 975 drivers/s390/net/qeth_core_main.c if (!card) card 978 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 5, "irq"); card 980 drivers/s390/net/qeth_core_main.c if (card->read.ccwdev == cdev) { card 981 drivers/s390/net/qeth_core_main.c channel = &card->read; card 982 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 5, "read"); card 983 drivers/s390/net/qeth_core_main.c } else if (card->write.ccwdev == cdev) { card 984 drivers/s390/net/qeth_core_main.c channel = &card->write; card 985 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 5, "write"); card 987 drivers/s390/net/qeth_core_main.c channel = &card->data; card 988 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 5, "data"); card 992 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 5, "irqunsol"); card 994 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 5, "irqunexp"); card 1007 drivers/s390/net/qeth_core_main.c rc = qeth_check_irb_error(card, cdev, irb); card 1013 drivers/s390/net/qeth_core_main.c wake_up(&card->wait_q); card 1050 drivers/s390/net/qeth_core_main.c rc = qeth_get_problem(card, cdev, irb); card 1052 drivers/s390/net/qeth_core_main.c card->read_or_write_problem = 1; card 1055 drivers/s390/net/qeth_core_main.c qeth_clear_ipacmd_list(card); card 1056 drivers/s390/net/qeth_core_main.c qeth_schedule_recovery(card); card 1068 drivers/s390/net/qeth_core_main.c iob->callback(card, iob, card 1073 drivers/s390/net/qeth_core_main.c wake_up(&card->wait_q); card 1084 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(q->card, 5, "skbn%d", notification); card 1085 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(q->card, 5, "%lx", (long) skb); card 1175 drivers/s390/net/qeth_core_main.c void qeth_drain_output_queues(struct qeth_card *card) card 1179 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "clearqdbf"); card 1181 drivers/s390/net/qeth_core_main.c for (i = 0; i < card->qdio.no_out_queues; ++i) { card 1182 drivers/s390/net/qeth_core_main.c if (card->qdio.out_qs[i]) card 1183 drivers/s390/net/qeth_core_main.c qeth_drain_output_queue(card->qdio.out_qs[i], false); card 1188 drivers/s390/net/qeth_core_main.c static void qeth_free_buffer_pool(struct qeth_card *card) card 1193 drivers/s390/net/qeth_core_main.c &card->qdio.init_pool.entry_list, init_list){ card 1194 drivers/s390/net/qeth_core_main.c for (i = 0; i < QETH_MAX_BUFFER_ELEMENTS(card); ++i) card 1226 drivers/s390/net/qeth_core_main.c static int qeth_osa_set_output_queues(struct qeth_card *card, bool single) card 1228 drivers/s390/net/qeth_core_main.c unsigned int count = single ? 1 : card->dev->num_tx_queues; card 1232 drivers/s390/net/qeth_core_main.c rc = netif_set_real_num_tx_queues(card->dev, count); card 1238 drivers/s390/net/qeth_core_main.c if (card->qdio.no_out_queues == count) card 1241 drivers/s390/net/qeth_core_main.c if (atomic_read(&card->qdio.state) != QETH_QDIO_UNINITIALIZED) card 1242 drivers/s390/net/qeth_core_main.c qeth_free_qdio_queues(card); card 1245 drivers/s390/net/qeth_core_main.c dev_info(&card->gdev->dev, "Priority Queueing not supported\n"); card 1247 drivers/s390/net/qeth_core_main.c card->qdio.no_out_queues = count; card 1251 drivers/s390/net/qeth_core_main.c static int qeth_update_from_chp_desc(struct qeth_card *card) card 1257 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "chp_desc"); card 1259 drivers/s390/net/qeth_core_main.c ccwdev = card->data.ccwdev; card 1264 drivers/s390/net/qeth_core_main.c card->info.func_level = 0x4100 + chp_dsc->desc; card 1266 drivers/s390/net/qeth_core_main.c if (IS_OSD(card) || IS_OSX(card)) card 1268 drivers/s390/net/qeth_core_main.c rc = qeth_osa_set_output_queues(card, chp_dsc->chpp & 0x02); card 1271 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, "nr:%x", card->qdio.no_out_queues); card 1272 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, "lvl:%02x", card->info.func_level); card 1276 drivers/s390/net/qeth_core_main.c static void qeth_init_qdio_info(struct qeth_card *card) card 1278 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 4, "intqdinf"); card 1279 drivers/s390/net/qeth_core_main.c atomic_set(&card->qdio.state, QETH_QDIO_UNINITIALIZED); card 1280 drivers/s390/net/qeth_core_main.c card->qdio.do_prio_queueing = QETH_PRIOQ_DEFAULT; card 1281 drivers/s390/net/qeth_core_main.c card->qdio.default_out_queue = QETH_DEFAULT_QUEUE; card 1284 drivers/s390/net/qeth_core_main.c card->qdio.no_in_queues = 1; card 1285 drivers/s390/net/qeth_core_main.c card->qdio.in_buf_size = QETH_IN_BUF_SIZE_DEFAULT; card 1286 drivers/s390/net/qeth_core_main.c if (IS_IQD(card)) card 1287 drivers/s390/net/qeth_core_main.c card->qdio.init_pool.buf_count = QETH_IN_BUF_COUNT_HSDEFAULT; card 1289 drivers/s390/net/qeth_core_main.c card->qdio.init_pool.buf_count = QETH_IN_BUF_COUNT_DEFAULT; card 1290 drivers/s390/net/qeth_core_main.c card->qdio.in_buf_pool.buf_count = card->qdio.init_pool.buf_count; card 1291 drivers/s390/net/qeth_core_main.c INIT_LIST_HEAD(&card->qdio.in_buf_pool.entry_list); card 1292 drivers/s390/net/qeth_core_main.c INIT_LIST_HEAD(&card->qdio.init_pool.entry_list); card 1295 drivers/s390/net/qeth_core_main.c static void qeth_set_initial_options(struct qeth_card *card) card 1297 drivers/s390/net/qeth_core_main.c card->options.route4.type = NO_ROUTER; card 1298 drivers/s390/net/qeth_core_main.c card->options.route6.type = NO_ROUTER; card 1299 drivers/s390/net/qeth_core_main.c card->options.rx_sg_cb = QETH_RX_SG_CB; card 1300 drivers/s390/net/qeth_core_main.c card->options.isolation = ISOLATION_MODE_NONE; card 1301 drivers/s390/net/qeth_core_main.c card->options.cq = QETH_CQ_DISABLED; card 1302 drivers/s390/net/qeth_core_main.c card->options.layer = QETH_DISCIPLINE_UNDETERMINED; card 1305 drivers/s390/net/qeth_core_main.c static int qeth_do_start_thread(struct qeth_card *card, unsigned long thread) card 1310 drivers/s390/net/qeth_core_main.c spin_lock_irqsave(&card->thread_mask_lock, flags); card 1311 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 4, " %02x%02x%02x", card 1312 drivers/s390/net/qeth_core_main.c (u8) card->thread_start_mask, card 1313 drivers/s390/net/qeth_core_main.c (u8) card->thread_allowed_mask, card 1314 drivers/s390/net/qeth_core_main.c (u8) card->thread_running_mask); card 1315 drivers/s390/net/qeth_core_main.c rc = (card->thread_start_mask & thread); card 1316 drivers/s390/net/qeth_core_main.c spin_unlock_irqrestore(&card->thread_mask_lock, flags); card 1323 drivers/s390/net/qeth_core_main.c struct qeth_card *card = container_of(work, struct qeth_card, card 1325 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card , 2, "strthrd"); card 1327 drivers/s390/net/qeth_core_main.c if (card->read.state != CH_STATE_UP && card 1328 drivers/s390/net/qeth_core_main.c card->write.state != CH_STATE_UP) card 1330 drivers/s390/net/qeth_core_main.c if (qeth_do_start_thread(card, QETH_RECOVER_THREAD)) { card 1331 drivers/s390/net/qeth_core_main.c ts = kthread_run(card->discipline->recover, (void *)card, card 1334 drivers/s390/net/qeth_core_main.c qeth_clear_thread_start_bit(card, QETH_RECOVER_THREAD); card 1335 drivers/s390/net/qeth_core_main.c qeth_clear_thread_running_bit(card, card 1342 drivers/s390/net/qeth_core_main.c static void qeth_setup_card(struct qeth_card *card) card 1344 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "setupcrd"); card 1346 drivers/s390/net/qeth_core_main.c card->info.type = CARD_RDEV(card)->id.driver_info; card 1347 drivers/s390/net/qeth_core_main.c card->state = CARD_STATE_DOWN; card 1348 drivers/s390/net/qeth_core_main.c spin_lock_init(&card->lock); card 1349 drivers/s390/net/qeth_core_main.c spin_lock_init(&card->thread_mask_lock); card 1350 drivers/s390/net/qeth_core_main.c mutex_init(&card->conf_mutex); card 1351 drivers/s390/net/qeth_core_main.c mutex_init(&card->discipline_mutex); card 1352 drivers/s390/net/qeth_core_main.c INIT_WORK(&card->kernel_thread_starter, qeth_start_kernel_thread); card 1353 drivers/s390/net/qeth_core_main.c INIT_LIST_HEAD(&card->cmd_waiter_list); card 1354 drivers/s390/net/qeth_core_main.c init_waitqueue_head(&card->wait_q); card 1355 drivers/s390/net/qeth_core_main.c qeth_set_initial_options(card); card 1357 drivers/s390/net/qeth_core_main.c INIT_LIST_HEAD(&card->ipato.entries); card 1358 drivers/s390/net/qeth_core_main.c qeth_init_qdio_info(card); card 1359 drivers/s390/net/qeth_core_main.c INIT_DELAYED_WORK(&card->buffer_reclaim_work, qeth_buffer_reclaim_work); card 1360 drivers/s390/net/qeth_core_main.c INIT_WORK(&card->close_dev_work, qeth_close_dev_handler); card 1365 drivers/s390/net/qeth_core_main.c struct qeth_card *card = container_of(slr, struct qeth_card, card 1367 drivers/s390/net/qeth_core_main.c if (card->info.mcl_level[0]) card 1369 drivers/s390/net/qeth_core_main.c CARD_BUS_ID(card), card->info.mcl_level); card 1374 drivers/s390/net/qeth_core_main.c struct qeth_card *card; card 1377 drivers/s390/net/qeth_core_main.c card = kzalloc(sizeof(*card), GFP_KERNEL); card 1378 drivers/s390/net/qeth_core_main.c if (!card) card 1380 drivers/s390/net/qeth_core_main.c QETH_DBF_HEX(SETUP, 2, &card, sizeof(void *)); card 1382 drivers/s390/net/qeth_core_main.c card->gdev = gdev; card 1383 drivers/s390/net/qeth_core_main.c dev_set_drvdata(&gdev->dev, card); card 1384 drivers/s390/net/qeth_core_main.c CARD_RDEV(card) = gdev->cdev[0]; card 1385 drivers/s390/net/qeth_core_main.c CARD_WDEV(card) = gdev->cdev[1]; card 1386 drivers/s390/net/qeth_core_main.c CARD_DDEV(card) = gdev->cdev[2]; card 1388 drivers/s390/net/qeth_core_main.c card->event_wq = alloc_ordered_workqueue("%s_event", 0, card 1390 drivers/s390/net/qeth_core_main.c if (!card->event_wq) card 1393 drivers/s390/net/qeth_core_main.c card->read_cmd = qeth_alloc_cmd(&card->read, QETH_BUFSIZE, 1, 0); card 1394 drivers/s390/net/qeth_core_main.c if (!card->read_cmd) card 1397 drivers/s390/net/qeth_core_main.c qeth_setup_channel(&card->read); card 1398 drivers/s390/net/qeth_core_main.c qeth_setup_channel(&card->write); card 1399 drivers/s390/net/qeth_core_main.c qeth_setup_channel(&card->data); card 1400 drivers/s390/net/qeth_core_main.c card->qeth_service_level.seq_print = qeth_core_sl_print; card 1401 drivers/s390/net/qeth_core_main.c register_service_level(&card->qeth_service_level); card 1402 drivers/s390/net/qeth_core_main.c return card; card 1405 drivers/s390/net/qeth_core_main.c destroy_workqueue(card->event_wq); card 1408 drivers/s390/net/qeth_core_main.c kfree(card); card 1413 drivers/s390/net/qeth_core_main.c static int qeth_clear_channel(struct qeth_card *card, card 1418 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 3, "clearch"); card 1425 drivers/s390/net/qeth_core_main.c rc = wait_event_interruptible_timeout(card->wait_q, card 1435 drivers/s390/net/qeth_core_main.c static int qeth_halt_channel(struct qeth_card *card, card 1440 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 3, "haltch"); card 1447 drivers/s390/net/qeth_core_main.c rc = wait_event_interruptible_timeout(card->wait_q, card 1475 drivers/s390/net/qeth_core_main.c static int qeth_halt_channels(struct qeth_card *card) card 1479 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 3, "haltchs"); card 1480 drivers/s390/net/qeth_core_main.c rc1 = qeth_halt_channel(card, &card->read); card 1481 drivers/s390/net/qeth_core_main.c rc2 = qeth_halt_channel(card, &card->write); card 1482 drivers/s390/net/qeth_core_main.c rc3 = qeth_halt_channel(card, &card->data); card 1490 drivers/s390/net/qeth_core_main.c static int qeth_clear_channels(struct qeth_card *card) card 1494 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 3, "clearchs"); card 1495 drivers/s390/net/qeth_core_main.c rc1 = qeth_clear_channel(card, &card->read); card 1496 drivers/s390/net/qeth_core_main.c rc2 = qeth_clear_channel(card, &card->write); card 1497 drivers/s390/net/qeth_core_main.c rc3 = qeth_clear_channel(card, &card->data); card 1505 drivers/s390/net/qeth_core_main.c static int qeth_clear_halt_card(struct qeth_card *card, int halt) card 1509 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 3, "clhacrd"); card 1512 drivers/s390/net/qeth_core_main.c rc = qeth_halt_channels(card); card 1515 drivers/s390/net/qeth_core_main.c return qeth_clear_channels(card); card 1518 drivers/s390/net/qeth_core_main.c int qeth_qdio_clear_card(struct qeth_card *card, int use_halt) card 1522 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 3, "qdioclr"); card 1523 drivers/s390/net/qeth_core_main.c switch (atomic_cmpxchg(&card->qdio.state, QETH_QDIO_ESTABLISHED, card 1526 drivers/s390/net/qeth_core_main.c if (IS_IQD(card)) card 1527 drivers/s390/net/qeth_core_main.c rc = qdio_shutdown(CARD_DDEV(card), card 1530 drivers/s390/net/qeth_core_main.c rc = qdio_shutdown(CARD_DDEV(card), card 1533 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 3, "1err%d", rc); card 1534 drivers/s390/net/qeth_core_main.c atomic_set(&card->qdio.state, QETH_QDIO_ALLOCATED); card 1541 drivers/s390/net/qeth_core_main.c rc = qeth_clear_halt_card(card, use_halt); card 1543 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 3, "2err%d", rc); card 1544 drivers/s390/net/qeth_core_main.c card->state = CARD_STATE_DOWN; card 1549 drivers/s390/net/qeth_core_main.c static enum qeth_discipline_id qeth_vm_detect_layer(struct qeth_card *card) card 1558 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "vmlayer"); card 1571 drivers/s390/net/qeth_core_main.c ccw_device_get_id(CARD_RDEV(card), &id); card 1601 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, "err%x", rc); card 1606 drivers/s390/net/qeth_core_main.c static enum qeth_discipline_id qeth_enforce_discipline(struct qeth_card *card) card 1610 drivers/s390/net/qeth_core_main.c if (IS_OSM(card) || IS_OSN(card)) card 1612 drivers/s390/net/qeth_core_main.c else if (IS_VM_NIC(card)) card 1613 drivers/s390/net/qeth_core_main.c disc = IS_IQD(card) ? QETH_DISCIPLINE_LAYER3 : card 1614 drivers/s390/net/qeth_core_main.c qeth_vm_detect_layer(card); card 1618 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 3, "force l2"); card 1621 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 3, "force l3"); card 1624 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 3, "force no"); card 1630 drivers/s390/net/qeth_core_main.c static void qeth_set_blkt_defaults(struct qeth_card *card) card 1632 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "cfgblkt"); card 1634 drivers/s390/net/qeth_core_main.c if (card->info.use_v1_blkt) { card 1635 drivers/s390/net/qeth_core_main.c card->info.blkt.time_total = 0; card 1636 drivers/s390/net/qeth_core_main.c card->info.blkt.inter_packet = 0; card 1637 drivers/s390/net/qeth_core_main.c card->info.blkt.inter_packet_jumbo = 0; card 1639 drivers/s390/net/qeth_core_main.c card->info.blkt.time_total = 250; card 1640 drivers/s390/net/qeth_core_main.c card->info.blkt.inter_packet = 5; card 1641 drivers/s390/net/qeth_core_main.c card->info.blkt.inter_packet_jumbo = 15; card 1645 drivers/s390/net/qeth_core_main.c static void qeth_init_tokens(struct qeth_card *card) card 1647 drivers/s390/net/qeth_core_main.c card->token.issuer_rm_w = 0x00010103UL; card 1648 drivers/s390/net/qeth_core_main.c card->token.cm_filter_w = 0x00010108UL; card 1649 drivers/s390/net/qeth_core_main.c card->token.cm_connection_w = 0x0001010aUL; card 1650 drivers/s390/net/qeth_core_main.c card->token.ulp_filter_w = 0x0001010bUL; card 1651 drivers/s390/net/qeth_core_main.c card->token.ulp_connection_w = 0x0001010dUL; card 1654 drivers/s390/net/qeth_core_main.c static void qeth_init_func_level(struct qeth_card *card) card 1656 drivers/s390/net/qeth_core_main.c switch (card->info.type) { card 1658 drivers/s390/net/qeth_core_main.c card->info.func_level = QETH_IDX_FUNC_LEVEL_IQD; card 1662 drivers/s390/net/qeth_core_main.c card->info.func_level = QETH_IDX_FUNC_LEVEL_OSD; card 1669 drivers/s390/net/qeth_core_main.c static void qeth_idx_finalize_cmd(struct qeth_card *card, card 1672 drivers/s390/net/qeth_core_main.c memcpy(QETH_TRANSPORT_HEADER_SEQ_NO(iob->data), &card->seqno.trans_hdr, card 1674 drivers/s390/net/qeth_core_main.c if (iob->channel == &card->write) card 1675 drivers/s390/net/qeth_core_main.c card->seqno.trans_hdr++; card 1687 drivers/s390/net/qeth_core_main.c static void qeth_mpc_finalize_cmd(struct qeth_card *card, card 1690 drivers/s390/net/qeth_core_main.c qeth_idx_finalize_cmd(card, iob); card 1693 drivers/s390/net/qeth_core_main.c &card->seqno.pdu_hdr, QETH_SEQ_NO_LENGTH); card 1694 drivers/s390/net/qeth_core_main.c card->seqno.pdu_hdr++; card 1696 drivers/s390/net/qeth_core_main.c &card->seqno.pdu_hdr_ack, QETH_SEQ_NO_LENGTH); card 1701 drivers/s390/net/qeth_core_main.c static struct qeth_cmd_buffer *qeth_mpc_alloc_cmd(struct qeth_card *card, card 1707 drivers/s390/net/qeth_core_main.c iob = qeth_alloc_cmd(&card->write, data_length, 1, QETH_TIMEOUT); card 1740 drivers/s390/net/qeth_core_main.c static int qeth_send_control_data(struct qeth_card *card, card 1752 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "sendctl"); card 1757 drivers/s390/net/qeth_core_main.c timeout = wait_event_interruptible_timeout(card->wait_q, card 1766 drivers/s390/net/qeth_core_main.c iob->finalize(card, iob); card 1769 drivers/s390/net/qeth_core_main.c qeth_enqueue_cmd(card, iob); card 1774 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 6, "noirqpnd"); card 1783 drivers/s390/net/qeth_core_main.c CARD_DEVID(card), rc); card 1784 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, " err%d", rc); card 1785 drivers/s390/net/qeth_core_main.c qeth_dequeue_cmd(card, iob); card 1788 drivers/s390/net/qeth_core_main.c wake_up(&card->wait_q); card 1797 drivers/s390/net/qeth_core_main.c qeth_dequeue_cmd(card, iob); card 1822 drivers/s390/net/qeth_core_main.c static void qeth_read_conf_data_cb(struct qeth_card *card, card 1830 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "cfgunit"); card 1837 drivers/s390/net/qeth_core_main.c card->info.is_vm_nic = nd->nd1.plant[0] == _ascebc['V'] && card 1840 drivers/s390/net/qeth_core_main.c card->info.chpid = tag[0]; card 1841 drivers/s390/net/qeth_core_main.c card->info.unit_addr2 = tag[1]; card 1844 drivers/s390/net/qeth_core_main.c card->info.cula = tag[1]; card 1846 drivers/s390/net/qeth_core_main.c card->info.use_v1_blkt = nd->nd3.model[0] == 0xF0 && card 1856 drivers/s390/net/qeth_core_main.c static int qeth_read_conf_data(struct qeth_card *card) card 1858 drivers/s390/net/qeth_core_main.c struct qeth_channel *channel = &card->data; card 1877 drivers/s390/net/qeth_core_main.c return qeth_send_control_data(card, iob, NULL, NULL); card 1880 drivers/s390/net/qeth_core_main.c static int qeth_idx_check_activate_response(struct qeth_card *card, card 1886 drivers/s390/net/qeth_core_main.c rc = qeth_check_idx_response(card, iob->data); card 1894 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, "idxneg%c", card 1914 drivers/s390/net/qeth_core_main.c static void qeth_idx_activate_read_channel_cb(struct qeth_card *card, card 1922 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "idxrdcb"); card 1924 drivers/s390/net/qeth_core_main.c rc = qeth_idx_check_activate_response(card, channel, iob); card 1929 drivers/s390/net/qeth_core_main.c if (peer_level != qeth_peer_func_level(card->info.func_level)) { card 1932 drivers/s390/net/qeth_core_main.c card->info.func_level, peer_level); card 1937 drivers/s390/net/qeth_core_main.c memcpy(&card->token.issuer_rm_r, card 1940 drivers/s390/net/qeth_core_main.c memcpy(&card->info.mcl_level[0], card 1948 drivers/s390/net/qeth_core_main.c static void qeth_idx_activate_write_channel_cb(struct qeth_card *card, card 1956 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "idxwrcb"); card 1958 drivers/s390/net/qeth_core_main.c rc = qeth_idx_check_activate_response(card, channel, iob); card 1964 drivers/s390/net/qeth_core_main.c qeth_peer_func_level(card->info.func_level)) { card 1967 drivers/s390/net/qeth_core_main.c card->info.func_level, peer_level); card 1976 drivers/s390/net/qeth_core_main.c static void qeth_idx_setup_activate_cmd(struct qeth_card *card, card 1979 drivers/s390/net/qeth_core_main.c u16 addr = (card->info.cula << 8) + card->info.unit_addr2; card 1980 drivers/s390/net/qeth_core_main.c u8 port = ((u8)card->dev->dev_port) | 0x80; card 1987 drivers/s390/net/qeth_core_main.c ccw_device_get_id(CARD_DDEV(card), &dev_id); card 1992 drivers/s390/net/qeth_core_main.c &card->token.issuer_rm_w, QETH_MPC_TOKEN_LENGTH); card 1994 drivers/s390/net/qeth_core_main.c &card->info.func_level, 2); card 1999 drivers/s390/net/qeth_core_main.c static int qeth_idx_activate_read_channel(struct qeth_card *card) card 2001 drivers/s390/net/qeth_core_main.c struct qeth_channel *channel = &card->read; card 2005 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "idxread"); card 2012 drivers/s390/net/qeth_core_main.c qeth_idx_setup_activate_cmd(card, iob); card 2015 drivers/s390/net/qeth_core_main.c rc = qeth_send_control_data(card, iob, NULL, NULL); card 2023 drivers/s390/net/qeth_core_main.c static int qeth_idx_activate_write_channel(struct qeth_card *card) card 2025 drivers/s390/net/qeth_core_main.c struct qeth_channel *channel = &card->write; card 2029 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "idxwrite"); card 2036 drivers/s390/net/qeth_core_main.c qeth_idx_setup_activate_cmd(card, iob); card 2039 drivers/s390/net/qeth_core_main.c rc = qeth_send_control_data(card, iob, NULL, NULL); card 2047 drivers/s390/net/qeth_core_main.c static int qeth_cm_enable_cb(struct qeth_card *card, struct qeth_reply *reply, card 2052 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "cmenblcb"); card 2055 drivers/s390/net/qeth_core_main.c memcpy(&card->token.cm_filter_r, card 2061 drivers/s390/net/qeth_core_main.c static int qeth_cm_enable(struct qeth_card *card) card 2065 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "cmenable"); card 2067 drivers/s390/net/qeth_core_main.c iob = qeth_mpc_alloc_cmd(card, CM_ENABLE, CM_ENABLE_SIZE); card 2072 drivers/s390/net/qeth_core_main.c &card->token.issuer_rm_r, QETH_MPC_TOKEN_LENGTH); card 2074 drivers/s390/net/qeth_core_main.c &card->token.cm_filter_w, QETH_MPC_TOKEN_LENGTH); card 2076 drivers/s390/net/qeth_core_main.c return qeth_send_control_data(card, iob, qeth_cm_enable_cb, NULL); card 2079 drivers/s390/net/qeth_core_main.c static int qeth_cm_setup_cb(struct qeth_card *card, struct qeth_reply *reply, card 2084 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "cmsetpcb"); card 2087 drivers/s390/net/qeth_core_main.c memcpy(&card->token.cm_connection_r, card 2093 drivers/s390/net/qeth_core_main.c static int qeth_cm_setup(struct qeth_card *card) card 2097 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "cmsetup"); card 2099 drivers/s390/net/qeth_core_main.c iob = qeth_mpc_alloc_cmd(card, CM_SETUP, CM_SETUP_SIZE); card 2104 drivers/s390/net/qeth_core_main.c &card->token.issuer_rm_r, QETH_MPC_TOKEN_LENGTH); card 2106 drivers/s390/net/qeth_core_main.c &card->token.cm_connection_w, QETH_MPC_TOKEN_LENGTH); card 2108 drivers/s390/net/qeth_core_main.c &card->token.cm_filter_r, QETH_MPC_TOKEN_LENGTH); card 2109 drivers/s390/net/qeth_core_main.c return qeth_send_control_data(card, iob, qeth_cm_setup_cb, NULL); card 2112 drivers/s390/net/qeth_core_main.c static int qeth_update_max_mtu(struct qeth_card *card, unsigned int max_mtu) card 2114 drivers/s390/net/qeth_core_main.c struct net_device *dev = card->dev; card 2119 drivers/s390/net/qeth_core_main.c if (IS_IQD(card)) card 2126 drivers/s390/net/qeth_core_main.c if (IS_IQD(card)) { card 2131 drivers/s390/net/qeth_core_main.c card->qdio.in_buf_size = max_mtu + 2 * PAGE_SIZE; card 2133 drivers/s390/net/qeth_core_main.c qeth_free_qdio_queues(card); card 2138 drivers/s390/net/qeth_core_main.c else if (IS_LAYER2(card)) card 2166 drivers/s390/net/qeth_core_main.c static int qeth_ulp_enable_cb(struct qeth_card *card, struct qeth_reply *reply, card 2174 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "ulpenacb"); card 2177 drivers/s390/net/qeth_core_main.c memcpy(&card->token.ulp_filter_r, card 2180 drivers/s390/net/qeth_core_main.c if (IS_IQD(card)) { card 2192 drivers/s390/net/qeth_core_main.c card->info.link_type = link_type; card 2194 drivers/s390/net/qeth_core_main.c card->info.link_type = 0; card 2195 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, "link%d", card->info.link_type); card 2199 drivers/s390/net/qeth_core_main.c static u8 qeth_mpc_select_prot_type(struct qeth_card *card) card 2201 drivers/s390/net/qeth_core_main.c if (IS_OSN(card)) card 2203 drivers/s390/net/qeth_core_main.c return IS_LAYER2(card) ? QETH_PROT_LAYER2 : QETH_PROT_TCPIP; card 2206 drivers/s390/net/qeth_core_main.c static int qeth_ulp_enable(struct qeth_card *card) card 2208 drivers/s390/net/qeth_core_main.c u8 prot_type = qeth_mpc_select_prot_type(card); card 2213 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "ulpenabl"); card 2215 drivers/s390/net/qeth_core_main.c iob = qeth_mpc_alloc_cmd(card, ULP_ENABLE, ULP_ENABLE_SIZE); card 2219 drivers/s390/net/qeth_core_main.c *(QETH_ULP_ENABLE_LINKNUM(iob->data)) = (u8) card->dev->dev_port; card 2222 drivers/s390/net/qeth_core_main.c &card->token.cm_connection_r, QETH_MPC_TOKEN_LENGTH); card 2224 drivers/s390/net/qeth_core_main.c &card->token.ulp_filter_w, QETH_MPC_TOKEN_LENGTH); card 2225 drivers/s390/net/qeth_core_main.c rc = qeth_send_control_data(card, iob, qeth_ulp_enable_cb, &max_mtu); card 2228 drivers/s390/net/qeth_core_main.c return qeth_update_max_mtu(card, max_mtu); card 2231 drivers/s390/net/qeth_core_main.c static int qeth_ulp_setup_cb(struct qeth_card *card, struct qeth_reply *reply, card 2236 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "ulpstpcb"); card 2239 drivers/s390/net/qeth_core_main.c memcpy(&card->token.ulp_connection_r, card 2244 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "olmlimit"); card 2245 drivers/s390/net/qeth_core_main.c dev_err(&card->gdev->dev, "A connection could not be " card 2252 drivers/s390/net/qeth_core_main.c static int qeth_ulp_setup(struct qeth_card *card) card 2258 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "ulpsetup"); card 2260 drivers/s390/net/qeth_core_main.c iob = qeth_mpc_alloc_cmd(card, ULP_SETUP, ULP_SETUP_SIZE); card 2265 drivers/s390/net/qeth_core_main.c &card->token.cm_connection_r, QETH_MPC_TOKEN_LENGTH); card 2267 drivers/s390/net/qeth_core_main.c &card->token.ulp_connection_w, QETH_MPC_TOKEN_LENGTH); card 2269 drivers/s390/net/qeth_core_main.c &card->token.ulp_filter_r, QETH_MPC_TOKEN_LENGTH); card 2271 drivers/s390/net/qeth_core_main.c ccw_device_get_id(CARD_DDEV(card), &dev_id); card 2273 drivers/s390/net/qeth_core_main.c temp = (card->info.cula << 8) + card->info.unit_addr2; card 2275 drivers/s390/net/qeth_core_main.c return qeth_send_control_data(card, iob, qeth_ulp_setup_cb, NULL); card 2328 drivers/s390/net/qeth_core_main.c static int qeth_alloc_qdio_queues(struct qeth_card *card) card 2332 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "allcqdbf"); card 2334 drivers/s390/net/qeth_core_main.c if (atomic_cmpxchg(&card->qdio.state, QETH_QDIO_UNINITIALIZED, card 2338 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "inq"); card 2339 drivers/s390/net/qeth_core_main.c card->qdio.in_q = qeth_alloc_qdio_queue(); card 2340 drivers/s390/net/qeth_core_main.c if (!card->qdio.in_q) card 2344 drivers/s390/net/qeth_core_main.c if (qeth_alloc_buffer_pool(card)) card 2348 drivers/s390/net/qeth_core_main.c for (i = 0; i < card->qdio.no_out_queues; ++i) { card 2354 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, "outq %i", i); card 2355 drivers/s390/net/qeth_core_main.c QETH_CARD_HEX(card, 2, &queue, sizeof(void *)); card 2356 drivers/s390/net/qeth_core_main.c card->qdio.out_qs[i] = queue; card 2357 drivers/s390/net/qeth_core_main.c queue->card = card; card 2370 drivers/s390/net/qeth_core_main.c if (qeth_alloc_cq(card)) card 2379 drivers/s390/net/qeth_core_main.c card->qdio.out_qs[i]->bufs[j]); card 2380 drivers/s390/net/qeth_core_main.c card->qdio.out_qs[i]->bufs[j] = NULL; card 2384 drivers/s390/net/qeth_core_main.c qeth_free_output_queue(card->qdio.out_qs[--i]); card 2385 drivers/s390/net/qeth_core_main.c card->qdio.out_qs[i] = NULL; card 2387 drivers/s390/net/qeth_core_main.c qeth_free_buffer_pool(card); card 2389 drivers/s390/net/qeth_core_main.c qeth_free_qdio_queue(card->qdio.in_q); card 2390 drivers/s390/net/qeth_core_main.c card->qdio.in_q = NULL; card 2392 drivers/s390/net/qeth_core_main.c atomic_set(&card->qdio.state, QETH_QDIO_UNINITIALIZED); card 2396 drivers/s390/net/qeth_core_main.c static void qeth_free_qdio_queues(struct qeth_card *card) card 2400 drivers/s390/net/qeth_core_main.c if (atomic_xchg(&card->qdio.state, QETH_QDIO_UNINITIALIZED) == card 2404 drivers/s390/net/qeth_core_main.c qeth_free_cq(card); card 2405 drivers/s390/net/qeth_core_main.c cancel_delayed_work_sync(&card->buffer_reclaim_work); card 2407 drivers/s390/net/qeth_core_main.c if (card->qdio.in_q->bufs[j].rx_skb) card 2408 drivers/s390/net/qeth_core_main.c dev_kfree_skb_any(card->qdio.in_q->bufs[j].rx_skb); card 2410 drivers/s390/net/qeth_core_main.c qeth_free_qdio_queue(card->qdio.in_q); card 2411 drivers/s390/net/qeth_core_main.c card->qdio.in_q = NULL; card 2413 drivers/s390/net/qeth_core_main.c qeth_free_buffer_pool(card); card 2415 drivers/s390/net/qeth_core_main.c for (i = 0; i < card->qdio.no_out_queues; i++) { card 2416 drivers/s390/net/qeth_core_main.c qeth_free_output_queue(card->qdio.out_qs[i]); card 2417 drivers/s390/net/qeth_core_main.c card->qdio.out_qs[i] = NULL; card 2421 drivers/s390/net/qeth_core_main.c static void qeth_create_qib_param_field(struct qeth_card *card, card 2429 drivers/s390/net/qeth_core_main.c *((unsigned int *) (¶m_field[4])) = QETH_PCI_THRESHOLD_A(card); card 2430 drivers/s390/net/qeth_core_main.c *((unsigned int *) (¶m_field[8])) = QETH_PCI_THRESHOLD_B(card); card 2431 drivers/s390/net/qeth_core_main.c *((unsigned int *) (¶m_field[12])) = QETH_PCI_TIMER_VALUE(card); card 2434 drivers/s390/net/qeth_core_main.c static void qeth_create_qib_param_field_blkt(struct qeth_card *card, card 2441 drivers/s390/net/qeth_core_main.c *((unsigned int *) (¶m_field[20])) = card->info.blkt.time_total; card 2442 drivers/s390/net/qeth_core_main.c *((unsigned int *) (¶m_field[24])) = card->info.blkt.inter_packet; card 2444 drivers/s390/net/qeth_core_main.c card->info.blkt.inter_packet_jumbo; card 2447 drivers/s390/net/qeth_core_main.c static int qeth_qdio_activate(struct qeth_card *card) card 2449 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 3, "qdioact"); card 2450 drivers/s390/net/qeth_core_main.c return qdio_activate(CARD_DDEV(card)); card 2453 drivers/s390/net/qeth_core_main.c static int qeth_dm_act(struct qeth_card *card) card 2457 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "dmact"); card 2459 drivers/s390/net/qeth_core_main.c iob = qeth_mpc_alloc_cmd(card, DM_ACT, DM_ACT_SIZE); card 2464 drivers/s390/net/qeth_core_main.c &card->token.cm_connection_r, QETH_MPC_TOKEN_LENGTH); card 2466 drivers/s390/net/qeth_core_main.c &card->token.ulp_connection_r, QETH_MPC_TOKEN_LENGTH); card 2467 drivers/s390/net/qeth_core_main.c return qeth_send_control_data(card, iob, NULL, NULL); card 2470 drivers/s390/net/qeth_core_main.c static int qeth_mpc_initialize(struct qeth_card *card) card 2474 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "mpcinit"); card 2476 drivers/s390/net/qeth_core_main.c rc = qeth_issue_next_read(card); card 2478 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, "1err%d", rc); card 2481 drivers/s390/net/qeth_core_main.c rc = qeth_cm_enable(card); card 2483 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, "2err%d", rc); card 2486 drivers/s390/net/qeth_core_main.c rc = qeth_cm_setup(card); card 2488 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, "3err%d", rc); card 2491 drivers/s390/net/qeth_core_main.c rc = qeth_ulp_enable(card); card 2493 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, "4err%d", rc); card 2496 drivers/s390/net/qeth_core_main.c rc = qeth_ulp_setup(card); card 2498 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, "5err%d", rc); card 2501 drivers/s390/net/qeth_core_main.c rc = qeth_alloc_qdio_queues(card); card 2503 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, "5err%d", rc); card 2506 drivers/s390/net/qeth_core_main.c rc = qeth_qdio_establish(card); card 2508 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, "6err%d", rc); card 2509 drivers/s390/net/qeth_core_main.c qeth_free_qdio_queues(card); card 2512 drivers/s390/net/qeth_core_main.c rc = qeth_qdio_activate(card); card 2514 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, "7err%d", rc); card 2517 drivers/s390/net/qeth_core_main.c rc = qeth_dm_act(card); card 2519 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, "8err%d", rc); card 2526 drivers/s390/net/qeth_core_main.c void qeth_print_status_message(struct qeth_card *card) card 2528 drivers/s390/net/qeth_core_main.c switch (card->info.type) { card 2536 drivers/s390/net/qeth_core_main.c if (!card->info.mcl_level[0]) { card 2537 drivers/s390/net/qeth_core_main.c sprintf(card->info.mcl_level, "%02x%02x", card 2538 drivers/s390/net/qeth_core_main.c card->info.mcl_level[2], card 2539 drivers/s390/net/qeth_core_main.c card->info.mcl_level[3]); card 2544 drivers/s390/net/qeth_core_main.c if (IS_VM_NIC(card) || (card->info.mcl_level[0] & 0x80)) { card 2545 drivers/s390/net/qeth_core_main.c card->info.mcl_level[0] = (char) _ebcasc[(__u8) card 2546 drivers/s390/net/qeth_core_main.c card->info.mcl_level[0]]; card 2547 drivers/s390/net/qeth_core_main.c card->info.mcl_level[1] = (char) _ebcasc[(__u8) card 2548 drivers/s390/net/qeth_core_main.c card->info.mcl_level[1]]; card 2549 drivers/s390/net/qeth_core_main.c card->info.mcl_level[2] = (char) _ebcasc[(__u8) card 2550 drivers/s390/net/qeth_core_main.c card->info.mcl_level[2]]; card 2551 drivers/s390/net/qeth_core_main.c card->info.mcl_level[3] = (char) _ebcasc[(__u8) card 2552 drivers/s390/net/qeth_core_main.c card->info.mcl_level[3]]; card 2553 drivers/s390/net/qeth_core_main.c card->info.mcl_level[QETH_MCL_LENGTH] = 0; card 2557 drivers/s390/net/qeth_core_main.c memset(&card->info.mcl_level[0], 0, QETH_MCL_LENGTH + 1); card 2559 drivers/s390/net/qeth_core_main.c dev_info(&card->gdev->dev, card 2561 drivers/s390/net/qeth_core_main.c qeth_get_cardname(card), card 2562 drivers/s390/net/qeth_core_main.c (card->info.mcl_level[0]) ? " (level: " : "", card 2563 drivers/s390/net/qeth_core_main.c (card->info.mcl_level[0]) ? card->info.mcl_level : "", card 2564 drivers/s390/net/qeth_core_main.c (card->info.mcl_level[0]) ? ")" : "", card 2565 drivers/s390/net/qeth_core_main.c qeth_get_cardname_short(card)); card 2569 drivers/s390/net/qeth_core_main.c static void qeth_initialize_working_pool_list(struct qeth_card *card) card 2573 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 5, "inwrklst"); card 2576 drivers/s390/net/qeth_core_main.c &card->qdio.init_pool.entry_list, init_list) { card 2577 drivers/s390/net/qeth_core_main.c qeth_put_buffer_pool_entry(card, entry); card 2582 drivers/s390/net/qeth_core_main.c struct qeth_card *card) card 2589 drivers/s390/net/qeth_core_main.c if (list_empty(&card->qdio.in_buf_pool.entry_list)) card 2592 drivers/s390/net/qeth_core_main.c list_for_each(plh, &card->qdio.in_buf_pool.entry_list) { card 2595 drivers/s390/net/qeth_core_main.c for (i = 0; i < QETH_MAX_BUFFER_ELEMENTS(card); ++i) { card 2608 drivers/s390/net/qeth_core_main.c entry = list_entry(card->qdio.in_buf_pool.entry_list.next, card 2610 drivers/s390/net/qeth_core_main.c for (i = 0; i < QETH_MAX_BUFFER_ELEMENTS(card); ++i) { card 2618 drivers/s390/net/qeth_core_main.c QETH_CARD_STAT_INC(card, rx_sg_alloc_page); card 2626 drivers/s390/net/qeth_core_main.c static int qeth_init_input_buffer(struct qeth_card *card, card 2632 drivers/s390/net/qeth_core_main.c if ((card->options.cq == QETH_CQ_ENABLED) && (!buf->rx_skb)) { card 2633 drivers/s390/net/qeth_core_main.c buf->rx_skb = netdev_alloc_skb(card->dev, card 2639 drivers/s390/net/qeth_core_main.c pool_entry = qeth_find_free_buffer_pool_entry(card); card 2651 drivers/s390/net/qeth_core_main.c for (i = 0; i < QETH_MAX_BUFFER_ELEMENTS(card); ++i) { card 2654 drivers/s390/net/qeth_core_main.c if (i == QETH_MAX_BUFFER_ELEMENTS(card) - 1) card 2663 drivers/s390/net/qeth_core_main.c int qeth_init_qdio_queues(struct qeth_card *card) card 2668 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "initqdqs"); card 2671 drivers/s390/net/qeth_core_main.c qdio_reset_buffers(card->qdio.in_q->qdio_bufs, QDIO_MAX_BUFFERS_PER_Q); card 2672 drivers/s390/net/qeth_core_main.c memset(&card->rx, 0, sizeof(struct qeth_rx)); card 2674 drivers/s390/net/qeth_core_main.c qeth_initialize_working_pool_list(card); card 2676 drivers/s390/net/qeth_core_main.c for (i = 0; i < card->qdio.in_buf_pool.buf_count - 1; i++) { card 2677 drivers/s390/net/qeth_core_main.c rc = qeth_init_input_buffer(card, &card->qdio.in_q->bufs[i]); card 2682 drivers/s390/net/qeth_core_main.c card->qdio.in_q->next_buf_to_init = card 2683 drivers/s390/net/qeth_core_main.c card->qdio.in_buf_pool.buf_count - 1; card 2684 drivers/s390/net/qeth_core_main.c rc = do_QDIO(CARD_DDEV(card), QDIO_FLAG_SYNC_INPUT, 0, 0, card 2685 drivers/s390/net/qeth_core_main.c card->qdio.in_buf_pool.buf_count - 1); card 2687 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, "1err%d", rc); card 2692 drivers/s390/net/qeth_core_main.c rc = qeth_cq_init(card); card 2698 drivers/s390/net/qeth_core_main.c for (i = 0; i < card->qdio.no_out_queues; ++i) { card 2699 drivers/s390/net/qeth_core_main.c struct qeth_qdio_out_q *queue = card->qdio.out_qs[i]; card 2702 drivers/s390/net/qeth_core_main.c queue->max_elements = QETH_MAX_BUFFER_ELEMENTS(card); card 2710 drivers/s390/net/qeth_core_main.c netdev_tx_reset_queue(netdev_get_tx_queue(card->dev, i)); card 2716 drivers/s390/net/qeth_core_main.c static void qeth_ipa_finalize_cmd(struct qeth_card *card, card 2719 drivers/s390/net/qeth_core_main.c qeth_mpc_finalize_cmd(card, iob); card 2722 drivers/s390/net/qeth_core_main.c __ipa_cmd(iob)->hdr.seqno = card->seqno.ipa++; card 2725 drivers/s390/net/qeth_core_main.c void qeth_prepare_ipa_cmd(struct qeth_card *card, struct qeth_cmd_buffer *iob, card 2728 drivers/s390/net/qeth_core_main.c u8 prot_type = qeth_mpc_select_prot_type(card); card 2741 drivers/s390/net/qeth_core_main.c &card->token.ulp_connection_r, QETH_MPC_TOKEN_LENGTH); card 2746 drivers/s390/net/qeth_core_main.c struct qeth_cmd_buffer *qeth_ipa_alloc_cmd(struct qeth_card *card, card 2751 drivers/s390/net/qeth_core_main.c enum qeth_link_types link_type = card->info.link_type; card 2756 drivers/s390/net/qeth_core_main.c iob = qeth_alloc_cmd(&card->write, IPA_PDU_HEADER_SIZE + data_length, 1, card 2761 drivers/s390/net/qeth_core_main.c qeth_prepare_ipa_cmd(card, iob, data_length); card 2768 drivers/s390/net/qeth_core_main.c hdr->rel_adapter_no = (u8) card->dev->dev_port; card 2769 drivers/s390/net/qeth_core_main.c hdr->prim_version_no = IS_LAYER2(card) ? 2 : 1; card 2776 drivers/s390/net/qeth_core_main.c static int qeth_send_ipa_cmd_cb(struct qeth_card *card, card 2790 drivers/s390/net/qeth_core_main.c int qeth_send_ipa_cmd(struct qeth_card *card, struct qeth_cmd_buffer *iob, card 2797 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 4, "sendipa"); card 2799 drivers/s390/net/qeth_core_main.c if (card->read_or_write_problem) { card 2806 drivers/s390/net/qeth_core_main.c rc = qeth_send_control_data(card, iob, reply_cb, reply_param); card 2808 drivers/s390/net/qeth_core_main.c qeth_clear_ipacmd_list(card); card 2809 drivers/s390/net/qeth_core_main.c qeth_schedule_recovery(card); card 2815 drivers/s390/net/qeth_core_main.c static int qeth_send_startlan_cb(struct qeth_card *card, card 2826 drivers/s390/net/qeth_core_main.c static int qeth_send_startlan(struct qeth_card *card) card 2830 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "strtlan"); card 2832 drivers/s390/net/qeth_core_main.c iob = qeth_ipa_alloc_cmd(card, IPA_CMD_STARTLAN, QETH_PROT_NONE, 0); card 2835 drivers/s390/net/qeth_core_main.c return qeth_send_ipa_cmd(card, iob, qeth_send_startlan_cb, NULL); card 2846 drivers/s390/net/qeth_core_main.c static int qeth_query_setadapterparms_cb(struct qeth_card *card, card 2851 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 3, "quyadpcb"); card 2856 drivers/s390/net/qeth_core_main.c card->info.link_type = card 2858 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, "lnk %d", card->info.link_type); card 2860 drivers/s390/net/qeth_core_main.c card->options.adp.supported_funcs = card 2865 drivers/s390/net/qeth_core_main.c static struct qeth_cmd_buffer *qeth_get_adapter_cmd(struct qeth_card *card, card 2872 drivers/s390/net/qeth_core_main.c iob = qeth_ipa_alloc_cmd(card, IPA_CMD_SETADAPTERPARMS, QETH_PROT_IPV4, card 2887 drivers/s390/net/qeth_core_main.c static int qeth_query_setadapterparms(struct qeth_card *card) card 2892 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 3, "queryadp"); card 2893 drivers/s390/net/qeth_core_main.c iob = qeth_get_adapter_cmd(card, IPA_SETADP_QUERY_COMMANDS_SUPPORTED, card 2897 drivers/s390/net/qeth_core_main.c rc = qeth_send_ipa_cmd(card, iob, qeth_query_setadapterparms_cb, NULL); card 2901 drivers/s390/net/qeth_core_main.c static int qeth_query_ipassists_cb(struct qeth_card *card, card 2906 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "qipasscb"); card 2915 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "ipaunsup"); card 2916 drivers/s390/net/qeth_core_main.c card->options.ipa4.supported_funcs |= IPA_SETADAPTERPARMS; card 2917 drivers/s390/net/qeth_core_main.c card->options.ipa6.supported_funcs |= IPA_SETADAPTERPARMS; card 2921 drivers/s390/net/qeth_core_main.c CARD_DEVID(card), cmd->hdr.return_code); card 2926 drivers/s390/net/qeth_core_main.c card->options.ipa4.supported_funcs = cmd->hdr.ipa_supported; card 2927 drivers/s390/net/qeth_core_main.c card->options.ipa4.enabled_funcs = cmd->hdr.ipa_enabled; card 2929 drivers/s390/net/qeth_core_main.c card->options.ipa6.supported_funcs = cmd->hdr.ipa_supported; card 2930 drivers/s390/net/qeth_core_main.c card->options.ipa6.enabled_funcs = cmd->hdr.ipa_enabled; card 2933 drivers/s390/net/qeth_core_main.c CARD_DEVID(card)); card 2937 drivers/s390/net/qeth_core_main.c static int qeth_query_ipassists(struct qeth_card *card, card 2943 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, "qipassi%i", prot); card 2944 drivers/s390/net/qeth_core_main.c iob = qeth_ipa_alloc_cmd(card, IPA_CMD_QIPASSIST, prot, 0); card 2947 drivers/s390/net/qeth_core_main.c rc = qeth_send_ipa_cmd(card, iob, qeth_query_ipassists_cb, NULL); card 2951 drivers/s390/net/qeth_core_main.c static int qeth_query_switch_attributes_cb(struct qeth_card *card, card 2958 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "qswiatcb"); card 2966 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, "%04x%04x", sw_info->capabilities, card 2971 drivers/s390/net/qeth_core_main.c int qeth_query_switch_attributes(struct qeth_card *card, card 2976 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "qswiattr"); card 2977 drivers/s390/net/qeth_core_main.c if (!qeth_adp_supported(card, IPA_SETADP_QUERY_SWITCH_ATTRIBUTES)) card 2979 drivers/s390/net/qeth_core_main.c if (!netif_carrier_ok(card->dev)) card 2981 drivers/s390/net/qeth_core_main.c iob = qeth_get_adapter_cmd(card, IPA_SETADP_QUERY_SWITCH_ATTRIBUTES, 0); card 2984 drivers/s390/net/qeth_core_main.c return qeth_send_ipa_cmd(card, iob, card 2988 drivers/s390/net/qeth_core_main.c struct qeth_cmd_buffer *qeth_get_diag_cmd(struct qeth_card *card, card 2995 drivers/s390/net/qeth_core_main.c iob = qeth_ipa_alloc_cmd(card, IPA_CMD_SET_DIAG_ASS, QETH_PROT_NONE, card 3007 drivers/s390/net/qeth_core_main.c static int qeth_query_setdiagass_cb(struct qeth_card *card, card 3014 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, "diagq:%x", rc); card 3018 drivers/s390/net/qeth_core_main.c card->info.diagass_support = cmd->data.diagass.ext; card 3022 drivers/s390/net/qeth_core_main.c static int qeth_query_setdiagass(struct qeth_card *card) card 3026 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "qdiagass"); card 3027 drivers/s390/net/qeth_core_main.c iob = qeth_get_diag_cmd(card, QETH_DIAGS_CMD_QUERY, 0); card 3030 drivers/s390/net/qeth_core_main.c return qeth_send_ipa_cmd(card, iob, qeth_query_setdiagass_cb, NULL); card 3033 drivers/s390/net/qeth_core_main.c static void qeth_get_trap_id(struct qeth_card *card, struct qeth_trap_id *tid) card 3041 drivers/s390/net/qeth_core_main.c tid->chpid = card->info.chpid; card 3042 drivers/s390/net/qeth_core_main.c ccw_device_get_id(CARD_RDEV(card), &ccwid); card 3058 drivers/s390/net/qeth_core_main.c static int qeth_hw_trap_cb(struct qeth_card *card, card 3065 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, "trapc:%x", rc); card 3071 drivers/s390/net/qeth_core_main.c int qeth_hw_trap(struct qeth_card *card, enum qeth_diags_trap_action action) card 3076 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "diagtrap"); card 3077 drivers/s390/net/qeth_core_main.c iob = qeth_get_diag_cmd(card, QETH_DIAGS_CMD_TRAP, 64); card 3088 drivers/s390/net/qeth_core_main.c qeth_get_trap_id(card, card 3097 drivers/s390/net/qeth_core_main.c return qeth_send_ipa_cmd(card, iob, qeth_hw_trap_cb, NULL); card 3101 drivers/s390/net/qeth_core_main.c static int qeth_check_qdio_errors(struct qeth_card *card, card 3107 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, dbftext); card 3108 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, " F15=%02X", card 3110 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, " F14=%02X", card 3112 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, " qerr=%X", qdio_error); card 3114 drivers/s390/net/qeth_core_main.c QETH_CARD_STAT_INC(card, rx_dropped); card 3122 drivers/s390/net/qeth_core_main.c static void qeth_queue_input_buffer(struct qeth_card *card, int index) card 3124 drivers/s390/net/qeth_core_main.c struct qeth_qdio_q *queue = card->qdio.in_q; card 3132 drivers/s390/net/qeth_core_main.c card->qdio.in_buf_pool.buf_count - card 3134 drivers/s390/net/qeth_core_main.c card->qdio.in_buf_pool.buf_count - card 3137 drivers/s390/net/qeth_core_main.c if (count >= QETH_IN_BUF_REQUEUE_THRESHOLD(card)) { card 3140 drivers/s390/net/qeth_core_main.c if (qeth_init_input_buffer(card, card 3151 drivers/s390/net/qeth_core_main.c atomic_set(&card->force_alloc_skb, 3); card 3154 drivers/s390/net/qeth_core_main.c atomic_add_unless(&card->force_alloc_skb, -1, 0); card 3159 drivers/s390/net/qeth_core_main.c list_for_each(lh, &card->qdio.in_buf_pool.entry_list) card 3161 drivers/s390/net/qeth_core_main.c if (i == card->qdio.in_buf_pool.buf_count) { card 3162 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "qsarbw"); card 3163 drivers/s390/net/qeth_core_main.c card->reclaim_index = index; card 3165 drivers/s390/net/qeth_core_main.c &card->buffer_reclaim_work, card 3178 drivers/s390/net/qeth_core_main.c rc = do_QDIO(CARD_DDEV(card), QDIO_FLAG_SYNC_INPUT, 0, card 3181 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "qinberr"); card 3190 drivers/s390/net/qeth_core_main.c struct qeth_card *card = container_of(work, struct qeth_card, card 3193 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, "brw:%x", card->reclaim_index); card 3194 drivers/s390/net/qeth_core_main.c qeth_queue_input_buffer(card, card->reclaim_index); card 3197 drivers/s390/net/qeth_core_main.c static void qeth_handle_send_error(struct qeth_card *card, card 3202 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 6, "hdsnderr"); card 3203 drivers/s390/net/qeth_core_main.c qeth_check_qdio_errors(card, buffer->buffer, qdio_err, "qouterr"); card 3211 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 1, "lnkfail"); card 3212 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 1, "%04x %02x", card 3248 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(queue->card, 6, "np->pack"); card 3267 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(queue->card, 6, "pack->np"); card 3279 drivers/s390/net/qeth_core_main.c struct qeth_card *card = queue->card; card 3294 drivers/s390/net/qeth_core_main.c if (IS_IQD(queue->card)) card 3326 drivers/s390/net/qeth_core_main.c rc = do_QDIO(CARD_DDEV(queue->card), qdio_flags, card 3330 drivers/s390/net/qeth_core_main.c if (IS_IQD(card)) card 3337 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(queue->card, 2, "flushbuf"); card 3338 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(queue->card, 2, " q%d", queue->queue_no); card 3339 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(queue->card, 2, " idx%d", index); card 3340 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(queue->card, 2, " c%d", count); card 3341 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(queue->card, 2, " err%d", rc); card 3345 drivers/s390/net/qeth_core_main.c qeth_schedule_recovery(queue->card); card 3397 drivers/s390/net/qeth_core_main.c struct qeth_card *card = (struct qeth_card *)card_ptr; card 3399 drivers/s390/net/qeth_core_main.c if (card->dev->flags & IFF_UP) card 3400 drivers/s390/net/qeth_core_main.c napi_schedule(&card->napi); card 3403 drivers/s390/net/qeth_core_main.c int qeth_configure_cq(struct qeth_card *card, enum qeth_cq cq) card 3407 drivers/s390/net/qeth_core_main.c if (card->options.cq == QETH_CQ_NOTAVAILABLE) { card 3411 drivers/s390/net/qeth_core_main.c if (card->options.cq == cq) { card 3416 drivers/s390/net/qeth_core_main.c qeth_free_qdio_queues(card); card 3417 drivers/s390/net/qeth_core_main.c card->options.cq = cq; card 3426 drivers/s390/net/qeth_core_main.c static void qeth_qdio_cq_handler(struct qeth_card *card, unsigned int qdio_err, card 3430 drivers/s390/net/qeth_core_main.c struct qeth_qdio_q *cq = card->qdio.c_q; card 3434 drivers/s390/net/qeth_core_main.c if (!qeth_is_cq(card, queue)) card 3437 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 5, "qcqhe%d", first_element); card 3438 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 5, "qcqhc%d", count); card 3439 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 5, "qcqherr%d", qdio_err); card 3442 drivers/s390/net/qeth_core_main.c netif_tx_stop_all_queues(card->dev); card 3443 drivers/s390/net/qeth_core_main.c qeth_schedule_recovery(card); card 3457 drivers/s390/net/qeth_core_main.c qeth_qdio_handle_aob(card, phys_aob_addr); card 3462 drivers/s390/net/qeth_core_main.c rc = do_QDIO(CARD_DDEV(card), QDIO_FLAG_SYNC_INPUT, queue, card 3463 drivers/s390/net/qeth_core_main.c card->qdio.c_q->next_buf_to_init, card 3466 drivers/s390/net/qeth_core_main.c dev_warn(&card->gdev->dev, card 3468 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "qcqherr"); card 3470 drivers/s390/net/qeth_core_main.c card->qdio.c_q->next_buf_to_init = (card->qdio.c_q->next_buf_to_init card 3479 drivers/s390/net/qeth_core_main.c struct qeth_card *card = (struct qeth_card *)card_ptr; card 3481 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, "qihq%d", queue); card 3482 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, "qiec%d", qdio_err); card 3484 drivers/s390/net/qeth_core_main.c if (qeth_is_cq(card, queue)) card 3485 drivers/s390/net/qeth_core_main.c qeth_qdio_cq_handler(card, qdio_err, queue, first_elem, count); card 3487 drivers/s390/net/qeth_core_main.c qeth_schedule_recovery(card); card 3495 drivers/s390/net/qeth_core_main.c struct qeth_card *card = (struct qeth_card *) card_ptr; card 3496 drivers/s390/net/qeth_core_main.c struct qeth_qdio_out_q *queue = card->qdio.out_qs[__queue]; card 3498 drivers/s390/net/qeth_core_main.c struct net_device *dev = card->dev; card 3502 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 6, "qdouhdl"); card 3504 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "achkcond"); card 3506 drivers/s390/net/qeth_core_main.c qeth_schedule_recovery(card); card 3513 drivers/s390/net/qeth_core_main.c qeth_handle_send_error(card, buffer, qdio_error); card 3532 drivers/s390/net/qeth_core_main.c int qeth_get_priority_queue(struct qeth_card *card, struct sk_buff *skb) card 3537 drivers/s390/net/qeth_core_main.c switch (card->qdio.do_prio_queueing) { card 3548 drivers/s390/net/qeth_core_main.c return card->qdio.default_out_queue; card 3550 drivers/s390/net/qeth_core_main.c if (card->qdio.do_prio_queueing == QETH_PRIO_Q_ING_PREC) card 3573 drivers/s390/net/qeth_core_main.c return card->qdio.default_out_queue; card 3827 drivers/s390/net/qeth_core_main.c static int __qeth_xmit(struct qeth_card *card, struct qeth_qdio_out_q *queue, card 3839 drivers/s390/net/qeth_core_main.c txq = netdev_get_tx_queue(card->dev, skb_get_queue_mapping(skb)); card 3885 drivers/s390/net/qeth_core_main.c int qeth_do_send_packet(struct qeth_card *card, struct qeth_qdio_out_q *queue, card 3914 drivers/s390/net/qeth_core_main.c txq = netdev_get_tx_queue(card->dev, skb_get_queue_mapping(skb)); card 4017 drivers/s390/net/qeth_core_main.c int qeth_xmit(struct qeth_card *card, struct sk_buff *skb, card 4037 drivers/s390/net/qeth_core_main.c proto_len = (IS_IQD(card) && IS_LAYER2(card)) ? ETH_HLEN : 0; card 4059 drivers/s390/net/qeth_core_main.c if (IS_IQD(card)) { card 4060 drivers/s390/net/qeth_core_main.c rc = __qeth_xmit(card, queue, skb, elements, hdr, data_offset, card 4065 drivers/s390/net/qeth_core_main.c rc = qeth_do_send_packet(card, queue, skb, hdr, data_offset, card 4076 drivers/s390/net/qeth_core_main.c static int qeth_setadp_promisc_mode_cb(struct qeth_card *card, card 4082 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 4, "prmadpcb"); card 4086 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 4, "prmrc%x", cmd->hdr.return_code); card 4089 drivers/s390/net/qeth_core_main.c card->info.promisc_mode = setparms->data.mode; card 4093 drivers/s390/net/qeth_core_main.c void qeth_setadp_promisc_mode(struct qeth_card *card, bool enable) card 4100 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 4, "setprom"); card 4101 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 4, "mode:%x", mode); card 4103 drivers/s390/net/qeth_core_main.c iob = qeth_get_adapter_cmd(card, IPA_SETADP_SET_PROMISC_MODE, card 4109 drivers/s390/net/qeth_core_main.c qeth_send_ipa_cmd(card, iob, qeth_setadp_promisc_mode_cb, NULL); card 4113 drivers/s390/net/qeth_core_main.c static int qeth_setadpparms_change_macaddr_cb(struct qeth_card *card, card 4119 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 4, "chgmaccb"); card 4127 drivers/s390/net/qeth_core_main.c if (IS_LAYER2(card) && IS_OSD(card) && !IS_VM_NIC(card) && card 4131 drivers/s390/net/qeth_core_main.c ether_addr_copy(card->dev->dev_addr, adp_cmd->data.change_addr.addr); card 4135 drivers/s390/net/qeth_core_main.c int qeth_setadpparms_change_macaddr(struct qeth_card *card) card 4141 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 4, "chgmac"); card 4143 drivers/s390/net/qeth_core_main.c iob = qeth_get_adapter_cmd(card, IPA_SETADP_ALTER_MAC_ADDRESS, card 4151 drivers/s390/net/qeth_core_main.c card->dev->dev_addr); card 4152 drivers/s390/net/qeth_core_main.c rc = qeth_send_ipa_cmd(card, iob, qeth_setadpparms_change_macaddr_cb, card 4158 drivers/s390/net/qeth_core_main.c static int qeth_setadpparms_set_access_ctrl_cb(struct qeth_card *card, card 4165 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 4, "setaccb"); card 4171 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, "rc=%d", card 4176 drivers/s390/net/qeth_core_main.c access_ctrl_req->subcmd_code, CARD_DEVID(card), card 4180 drivers/s390/net/qeth_core_main.c if (card->options.isolation == ISOLATION_MODE_NONE) { card 4181 drivers/s390/net/qeth_core_main.c dev_info(&card->gdev->dev, card 4184 drivers/s390/net/qeth_core_main.c dev_info(&card->gdev->dev, card 4190 drivers/s390/net/qeth_core_main.c CARD_DEVID(card)); card 4192 drivers/s390/net/qeth_core_main.c card->options.isolation = card->options.prev_isolation; card 4196 drivers/s390/net/qeth_core_main.c CARD_DEVID(card)); card 4198 drivers/s390/net/qeth_core_main.c card->options.isolation = card->options.prev_isolation; card 4201 drivers/s390/net/qeth_core_main.c dev_err(&card->gdev->dev, "Adapter does not " card 4205 drivers/s390/net/qeth_core_main.c dev_err(&card->gdev->dev, card 4209 drivers/s390/net/qeth_core_main.c card->options.isolation = card->options.prev_isolation; card 4212 drivers/s390/net/qeth_core_main.c dev_err(&card->gdev->dev, card 4215 drivers/s390/net/qeth_core_main.c card->options.isolation = card->options.prev_isolation; card 4218 drivers/s390/net/qeth_core_main.c dev_err(&card->gdev->dev, "The adjacent switch port does not " card 4221 drivers/s390/net/qeth_core_main.c card->options.isolation = card->options.prev_isolation; card 4224 drivers/s390/net/qeth_core_main.c dev_err(&card->gdev->dev, "The reflective relay mode cannot be " card 4227 drivers/s390/net/qeth_core_main.c card->options.isolation = card->options.prev_isolation; card 4230 drivers/s390/net/qeth_core_main.c dev_warn(&card->gdev->dev, "Turning off reflective relay mode " card 4236 drivers/s390/net/qeth_core_main.c card->options.isolation = card->options.prev_isolation; card 4242 drivers/s390/net/qeth_core_main.c static int qeth_setadpparms_set_access_ctrl(struct qeth_card *card, card 4250 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 4, "setacctl"); card 4252 drivers/s390/net/qeth_core_main.c iob = qeth_get_adapter_cmd(card, IPA_SETADP_SET_ACCESS_CONTROL, card 4260 drivers/s390/net/qeth_core_main.c rc = qeth_send_ipa_cmd(card, iob, qeth_setadpparms_set_access_ctrl_cb, card 4262 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, "rc=%d", rc); card 4266 drivers/s390/net/qeth_core_main.c int qeth_set_access_ctrl_online(struct qeth_card *card, int fallback) card 4270 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 4, "setactlo"); card 4272 drivers/s390/net/qeth_core_main.c if ((IS_OSD(card) || IS_OSX(card)) && card 4273 drivers/s390/net/qeth_core_main.c qeth_adp_supported(card, IPA_SETADP_SET_ACCESS_CONTROL)) { card 4274 drivers/s390/net/qeth_core_main.c rc = qeth_setadpparms_set_access_ctrl(card, card 4275 drivers/s390/net/qeth_core_main.c card->options.isolation, fallback); card 4278 drivers/s390/net/qeth_core_main.c rc, CARD_DEVID(card)); card 4281 drivers/s390/net/qeth_core_main.c } else if (card->options.isolation != ISOLATION_MODE_NONE) { card 4282 drivers/s390/net/qeth_core_main.c card->options.isolation = ISOLATION_MODE_NONE; card 4284 drivers/s390/net/qeth_core_main.c dev_err(&card->gdev->dev, "Adapter does not " card 4294 drivers/s390/net/qeth_core_main.c struct qeth_card *card; card 4296 drivers/s390/net/qeth_core_main.c card = dev->ml_priv; card 4297 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 4, "txtimeo"); card 4298 drivers/s390/net/qeth_core_main.c qeth_schedule_recovery(card); card 4304 drivers/s390/net/qeth_core_main.c struct qeth_card *card = dev->ml_priv; card 4310 drivers/s390/net/qeth_core_main.c if ((card->info.link_type != QETH_LINK_TYPE_GBIT_ETH) && card 4311 drivers/s390/net/qeth_core_main.c (card->info.link_type != QETH_LINK_TYPE_OSN) && card 4312 drivers/s390/net/qeth_core_main.c (card->info.link_type != QETH_LINK_TYPE_10GBIT_ETH) && card 4313 drivers/s390/net/qeth_core_main.c (card->info.link_type != QETH_LINK_TYPE_25GBIT_ETH)) card 4345 drivers/s390/net/qeth_core_main.c rc = card->stats.rx_errors; card 4367 drivers/s390/net/qeth_core_main.c static int qeth_snmp_command_cb(struct qeth_card *card, card 4376 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 3, "snpcmdcb"); card 4379 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 4, "scer1%x", cmd->hdr.return_code); card 4385 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 4, "scer2%x", cmd->hdr.return_code); card 4400 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 4, "scer3%i", -ENOSPC); card 4403 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 4, "snore%i", card 4405 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 4, "sseqn%i", card 4417 drivers/s390/net/qeth_core_main.c static int qeth_snmp_command(struct qeth_card *card, char __user *udata) card 4425 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 3, "snmpcmd"); card 4427 drivers/s390/net/qeth_core_main.c if (IS_VM_NIC(card)) card 4430 drivers/s390/net/qeth_core_main.c if ((!qeth_adp_supported(card, IPA_SETADP_SET_SNMP_CONTROL)) && card 4431 drivers/s390/net/qeth_core_main.c IS_LAYER3(card)) card 4443 drivers/s390/net/qeth_core_main.c iob = qeth_get_adapter_cmd(card, IPA_SETADP_SET_SNMP_CONTROL, req_len); card 4460 drivers/s390/net/qeth_core_main.c rc = qeth_send_ipa_cmd(card, iob, qeth_snmp_command_cb, &qinfo); card 4463 drivers/s390/net/qeth_core_main.c CARD_DEVID(card), rc); card 4473 drivers/s390/net/qeth_core_main.c static int qeth_setadpparms_query_oat_cb(struct qeth_card *card, card 4481 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 3, "qoatcb"); card 4502 drivers/s390/net/qeth_core_main.c static int qeth_query_oat_command(struct qeth_card *card, char __user *udata) card 4512 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 3, "qoatcmd"); card 4514 drivers/s390/net/qeth_core_main.c if (!qeth_adp_supported(card, IPA_SETADP_QUERY_OAT)) { card 4533 drivers/s390/net/qeth_core_main.c iob = qeth_get_adapter_cmd(card, IPA_SETADP_QUERY_OAT, card 4543 drivers/s390/net/qeth_core_main.c rc = qeth_send_ipa_cmd(card, iob, qeth_setadpparms_query_oat_cb, card 4570 drivers/s390/net/qeth_core_main.c static int qeth_query_card_info_cb(struct qeth_card *card, card 4577 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "qcrdincb"); card 4588 drivers/s390/net/qeth_core_main.c int qeth_query_card_info(struct qeth_card *card, card 4593 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "qcrdinfo"); card 4594 drivers/s390/net/qeth_core_main.c if (!qeth_adp_supported(card, IPA_SETADP_QUERY_CARD_INFO)) card 4596 drivers/s390/net/qeth_core_main.c iob = qeth_get_adapter_cmd(card, IPA_SETADP_QUERY_CARD_INFO, 0); card 4599 drivers/s390/net/qeth_core_main.c return qeth_send_ipa_cmd(card, iob, qeth_query_card_info_cb, card 4611 drivers/s390/net/qeth_core_main.c int qeth_vm_request_mac(struct qeth_card *card) card 4618 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "vmreqmac"); card 4627 drivers/s390/net/qeth_core_main.c ccw_device_get_id(CARD_DDEV(card), &id); card 4643 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "badresp"); card 4644 drivers/s390/net/qeth_core_main.c QETH_CARD_HEX(card, 2, &request->resp_buf_len, card 4648 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "badmac"); card 4649 drivers/s390/net/qeth_core_main.c QETH_CARD_HEX(card, 2, response->mac, ETH_ALEN); card 4651 drivers/s390/net/qeth_core_main.c ether_addr_copy(card->dev->dev_addr, response->mac); card 4661 drivers/s390/net/qeth_core_main.c static void qeth_determine_capabilities(struct qeth_card *card) card 4663 drivers/s390/net/qeth_core_main.c struct qeth_channel *channel = &card->data; card 4668 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "detcapab"); card 4673 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, "3err%d", rc); card 4678 drivers/s390/net/qeth_core_main.c rc = qeth_read_conf_data(card); card 4681 drivers/s390/net/qeth_core_main.c CARD_DEVID(card), rc); card 4682 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, "5err%d", rc); card 4686 drivers/s390/net/qeth_core_main.c rc = qdio_get_ssqd_desc(ddev, &card->ssqd); card 4688 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, "6err%d", rc); card 4690 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, "qfmt%d", card->ssqd.qfmt); card 4691 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, "ac1:%02x", card->ssqd.qdioac1); card 4692 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, "ac2:%04x", card->ssqd.qdioac2); card 4693 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, "ac3:%04x", card->ssqd.qdioac3); card 4694 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, "icnt%d", card->ssqd.icnt); card 4695 drivers/s390/net/qeth_core_main.c if (!((card->ssqd.qfmt != QDIO_IQDIO_QFMT) || card 4696 drivers/s390/net/qeth_core_main.c ((card->ssqd.qdioac1 & CHSC_AC1_INITIATE_INPUTQ) == 0) || card 4697 drivers/s390/net/qeth_core_main.c ((card->ssqd.qdioac3 & CHSC_AC3_FORMAT2_CQ_AVAILABLE) == 0))) { card 4698 drivers/s390/net/qeth_core_main.c dev_info(&card->gdev->dev, card 4701 drivers/s390/net/qeth_core_main.c card->options.cq = QETH_CQ_NOTAVAILABLE; card 4712 drivers/s390/net/qeth_core_main.c static void qeth_qdio_establish_cq(struct qeth_card *card, card 4720 drivers/s390/net/qeth_core_main.c if (card->options.cq == QETH_CQ_ENABLED) { card 4722 drivers/s390/net/qeth_core_main.c (card->qdio.no_in_queues - 1); card 4726 drivers/s390/net/qeth_core_main.c card->qdio.c_q->bufs[i].buffer; card 4728 drivers/s390/net/qeth_core_main.c queue_start_poll[card->qdio.no_in_queues - 1] = NULL; card 4732 drivers/s390/net/qeth_core_main.c static int qeth_qdio_establish(struct qeth_card *card) card 4742 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "qdioest"); card 4750 drivers/s390/net/qeth_core_main.c qeth_create_qib_param_field(card, qib_param_field); card 4751 drivers/s390/net/qeth_core_main.c qeth_create_qib_param_field_blkt(card, qib_param_field); card 4753 drivers/s390/net/qeth_core_main.c in_sbal_ptrs = kcalloc(card->qdio.no_in_queues * QDIO_MAX_BUFFERS_PER_Q, card 4762 drivers/s390/net/qeth_core_main.c in_sbal_ptrs[i] = card->qdio.in_q->bufs[i].buffer; card 4764 drivers/s390/net/qeth_core_main.c queue_start_poll = kcalloc(card->qdio.no_in_queues, sizeof(void *), card 4770 drivers/s390/net/qeth_core_main.c for (i = 0; i < card->qdio.no_in_queues; ++i) card 4773 drivers/s390/net/qeth_core_main.c qeth_qdio_establish_cq(card, in_sbal_ptrs, queue_start_poll); card 4776 drivers/s390/net/qeth_core_main.c kcalloc(card->qdio.no_out_queues * QDIO_MAX_BUFFERS_PER_Q, card 4784 drivers/s390/net/qeth_core_main.c for (i = 0, k = 0; i < card->qdio.no_out_queues; ++i) card 4787 drivers/s390/net/qeth_core_main.c card->qdio.out_qs[i]->bufs[j]->buffer; card 4790 drivers/s390/net/qeth_core_main.c init_data.cdev = CARD_DDEV(card); card 4791 drivers/s390/net/qeth_core_main.c init_data.q_format = IS_IQD(card) ? QDIO_IQDIO_QFMT : card 4795 drivers/s390/net/qeth_core_main.c init_data.no_input_qs = card->qdio.no_in_queues; card 4796 drivers/s390/net/qeth_core_main.c init_data.no_output_qs = card->qdio.no_out_queues; card 4800 drivers/s390/net/qeth_core_main.c init_data.int_parm = (unsigned long) card; card 4803 drivers/s390/net/qeth_core_main.c init_data.output_sbal_state_array = card->qdio.out_bufstates; card 4804 drivers/s390/net/qeth_core_main.c init_data.scan_threshold = IS_IQD(card) ? 0 : 32; card 4806 drivers/s390/net/qeth_core_main.c if (atomic_cmpxchg(&card->qdio.state, QETH_QDIO_ALLOCATED, card 4810 drivers/s390/net/qeth_core_main.c atomic_set(&card->qdio.state, QETH_QDIO_ALLOCATED); card 4815 drivers/s390/net/qeth_core_main.c atomic_set(&card->qdio.state, QETH_QDIO_ALLOCATED); card 4816 drivers/s390/net/qeth_core_main.c qdio_free(CARD_DDEV(card)); card 4820 drivers/s390/net/qeth_core_main.c switch (card->options.cq) { card 4822 drivers/s390/net/qeth_core_main.c dev_info(&card->gdev->dev, "Completion Queue support enabled"); card 4825 drivers/s390/net/qeth_core_main.c dev_info(&card->gdev->dev, "Completion Queue support disabled"); card 4842 drivers/s390/net/qeth_core_main.c static void qeth_core_free_card(struct qeth_card *card) card 4844 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "freecrd"); card 4845 drivers/s390/net/qeth_core_main.c qeth_clean_channel(&card->read); card 4846 drivers/s390/net/qeth_core_main.c qeth_clean_channel(&card->write); card 4847 drivers/s390/net/qeth_core_main.c qeth_clean_channel(&card->data); card 4848 drivers/s390/net/qeth_core_main.c qeth_put_cmd(card->read_cmd); card 4849 drivers/s390/net/qeth_core_main.c destroy_workqueue(card->event_wq); card 4850 drivers/s390/net/qeth_core_main.c qeth_free_qdio_queues(card); card 4851 drivers/s390/net/qeth_core_main.c unregister_service_level(&card->qeth_service_level); card 4852 drivers/s390/net/qeth_core_main.c dev_set_drvdata(&card->gdev->dev, NULL); card 4853 drivers/s390/net/qeth_core_main.c kfree(card); card 4856 drivers/s390/net/qeth_core_main.c void qeth_trace_features(struct qeth_card *card) card 4858 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "features"); card 4859 drivers/s390/net/qeth_core_main.c QETH_CARD_HEX(card, 2, &card->options.ipa4, sizeof(card->options.ipa4)); card 4860 drivers/s390/net/qeth_core_main.c QETH_CARD_HEX(card, 2, &card->options.ipa6, sizeof(card->options.ipa6)); card 4861 drivers/s390/net/qeth_core_main.c QETH_CARD_HEX(card, 2, &card->options.adp, sizeof(card->options.adp)); card 4862 drivers/s390/net/qeth_core_main.c QETH_CARD_HEX(card, 2, &card->info.diagass_support, card 4863 drivers/s390/net/qeth_core_main.c sizeof(card->info.diagass_support)); card 4892 drivers/s390/net/qeth_core_main.c int qeth_core_hardsetup_card(struct qeth_card *card, bool *carrier_ok) card 4897 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "hrdsetup"); card 4898 drivers/s390/net/qeth_core_main.c atomic_set(&card->force_alloc_skb, 0); card 4899 drivers/s390/net/qeth_core_main.c rc = qeth_update_from_chp_desc(card); card 4905 drivers/s390/net/qeth_core_main.c CARD_DEVID(card)); card 4906 drivers/s390/net/qeth_core_main.c rc = qeth_qdio_clear_card(card, !IS_IQD(card)); card 4907 drivers/s390/net/qeth_core_main.c qeth_stop_channel(&card->data); card 4908 drivers/s390/net/qeth_core_main.c qeth_stop_channel(&card->write); card 4909 drivers/s390/net/qeth_core_main.c qeth_stop_channel(&card->read); card 4910 drivers/s390/net/qeth_core_main.c qdio_free(CARD_DDEV(card)); card 4911 drivers/s390/net/qeth_core_main.c rc = ccw_device_set_online(CARD_RDEV(card)); card 4914 drivers/s390/net/qeth_core_main.c rc = ccw_device_set_online(CARD_WDEV(card)); card 4917 drivers/s390/net/qeth_core_main.c rc = ccw_device_set_online(CARD_DDEV(card)); card 4922 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "break1"); card 4925 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, "1err%d", rc); card 4931 drivers/s390/net/qeth_core_main.c qeth_determine_capabilities(card); card 4932 drivers/s390/net/qeth_core_main.c qeth_init_tokens(card); card 4933 drivers/s390/net/qeth_core_main.c qeth_init_func_level(card); card 4935 drivers/s390/net/qeth_core_main.c rc = qeth_idx_activate_read_channel(card); card 4937 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "break2"); card 4940 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, "3err%d", rc); card 4947 drivers/s390/net/qeth_core_main.c rc = qeth_idx_activate_write_channel(card); card 4949 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "break3"); card 4952 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, "4err%d", rc); card 4958 drivers/s390/net/qeth_core_main.c card->read_or_write_problem = 0; card 4959 drivers/s390/net/qeth_core_main.c rc = qeth_mpc_initialize(card); card 4961 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, "5err%d", rc); card 4965 drivers/s390/net/qeth_core_main.c rc = qeth_send_startlan(card); card 4967 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, "6err%d", rc); card 4969 drivers/s390/net/qeth_core_main.c dev_warn(&card->gdev->dev, "The LAN is offline\n"); card 4978 drivers/s390/net/qeth_core_main.c card->options.ipa4.supported_funcs = 0; card 4979 drivers/s390/net/qeth_core_main.c card->options.ipa6.supported_funcs = 0; card 4980 drivers/s390/net/qeth_core_main.c card->options.adp.supported_funcs = 0; card 4981 drivers/s390/net/qeth_core_main.c card->options.sbp.supported_funcs = 0; card 4982 drivers/s390/net/qeth_core_main.c card->info.diagass_support = 0; card 4983 drivers/s390/net/qeth_core_main.c rc = qeth_query_ipassists(card, QETH_PROT_IPV4); card 4986 drivers/s390/net/qeth_core_main.c if (qeth_is_supported(card, IPA_IPV6)) { card 4987 drivers/s390/net/qeth_core_main.c rc = qeth_query_ipassists(card, QETH_PROT_IPV6); card 4991 drivers/s390/net/qeth_core_main.c if (qeth_is_supported(card, IPA_SETADAPTERPARMS)) { card 4992 drivers/s390/net/qeth_core_main.c rc = qeth_query_setadapterparms(card); card 4994 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, "7err%d", rc); card 4998 drivers/s390/net/qeth_core_main.c if (qeth_adp_supported(card, IPA_SETADP_SET_DIAG_ASSIST)) { card 4999 drivers/s390/net/qeth_core_main.c rc = qeth_query_setdiagass(card); card 5001 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, "8err%d", rc); card 5005 drivers/s390/net/qeth_core_main.c dev_warn(&card->gdev->dev, "The qeth device driver failed to recover " card 5008 drivers/s390/net/qeth_core_main.c CARD_DEVID(card), rc); card 5041 drivers/s390/net/qeth_core_main.c struct sk_buff *qeth_core_get_next_skb(struct qeth_card *card, card 5085 drivers/s390/net/qeth_core_main.c if (((skb_len >= card->options.rx_sg_cb) && card 5086 drivers/s390/net/qeth_core_main.c !IS_OSN(card) && card 5087 drivers/s390/net/qeth_core_main.c (!atomic_read(&card->force_alloc_skb))) || card 5088 drivers/s390/net/qeth_core_main.c (card->options.cq == QETH_CQ_ENABLED)) card 5098 drivers/s390/net/qeth_core_main.c skb = napi_alloc_skb(&card->napi, linear + headroom); card 5118 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 4, "unexeob"); card 5119 drivers/s390/net/qeth_core_main.c QETH_CARD_HEX(card, 2, buffer, sizeof(void *)); card 5121 drivers/s390/net/qeth_core_main.c QETH_CARD_STAT_INC(card, rx_errors); card 5134 drivers/s390/net/qeth_core_main.c QETH_CARD_STAT_INC(card, rx_sg_skbs); card 5135 drivers/s390/net/qeth_core_main.c QETH_CARD_STAT_ADD(card, rx_sg_frags, card 5141 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "noskbmem"); card 5143 drivers/s390/net/qeth_core_main.c QETH_CARD_STAT_INC(card, rx_dropped); card 5150 drivers/s390/net/qeth_core_main.c struct qeth_card *card = container_of(napi, struct qeth_card, napi); card 5157 drivers/s390/net/qeth_core_main.c if (!card->rx.b_count) { card 5158 drivers/s390/net/qeth_core_main.c card->rx.qdio_err = 0; card 5159 drivers/s390/net/qeth_core_main.c card->rx.b_count = qdio_get_next_buffers( card 5160 drivers/s390/net/qeth_core_main.c card->data.ccwdev, 0, &card->rx.b_index, card 5161 drivers/s390/net/qeth_core_main.c &card->rx.qdio_err); card 5162 drivers/s390/net/qeth_core_main.c if (card->rx.b_count <= 0) { card 5163 drivers/s390/net/qeth_core_main.c card->rx.b_count = 0; card 5166 drivers/s390/net/qeth_core_main.c card->rx.b_element = card 5167 drivers/s390/net/qeth_core_main.c &card->qdio.in_q->bufs[card->rx.b_index] card 5169 drivers/s390/net/qeth_core_main.c card->rx.e_offset = 0; card 5172 drivers/s390/net/qeth_core_main.c while (card->rx.b_count) { card 5173 drivers/s390/net/qeth_core_main.c buffer = &card->qdio.in_q->bufs[card->rx.b_index]; card 5174 drivers/s390/net/qeth_core_main.c if (!(card->rx.qdio_err && card 5175 drivers/s390/net/qeth_core_main.c qeth_check_qdio_errors(card, buffer->buffer, card 5176 drivers/s390/net/qeth_core_main.c card->rx.qdio_err, "qinerr"))) card 5178 drivers/s390/net/qeth_core_main.c card->discipline->process_rx_buffer( card 5179 drivers/s390/net/qeth_core_main.c card, new_budget, &done); card 5184 drivers/s390/net/qeth_core_main.c QETH_CARD_STAT_INC(card, rx_bufs); card 5185 drivers/s390/net/qeth_core_main.c qeth_put_buffer_pool_entry(card, card 5187 drivers/s390/net/qeth_core_main.c qeth_queue_input_buffer(card, card->rx.b_index); card 5188 drivers/s390/net/qeth_core_main.c card->rx.b_count--; card 5189 drivers/s390/net/qeth_core_main.c if (card->rx.b_count) { card 5190 drivers/s390/net/qeth_core_main.c card->rx.b_index = card 5191 drivers/s390/net/qeth_core_main.c (card->rx.b_index + 1) % card 5193 drivers/s390/net/qeth_core_main.c card->rx.b_element = card 5194 drivers/s390/net/qeth_core_main.c &card->qdio.in_q card 5195 drivers/s390/net/qeth_core_main.c ->bufs[card->rx.b_index] card 5197 drivers/s390/net/qeth_core_main.c card->rx.e_offset = 0; card 5209 drivers/s390/net/qeth_core_main.c if (qdio_start_irq(card->data.ccwdev, 0)) card 5210 drivers/s390/net/qeth_core_main.c napi_schedule(&card->napi); card 5221 drivers/s390/net/qeth_core_main.c struct qeth_card *card = queue->card; card 5225 drivers/s390/net/qeth_core_main.c WARN_ON_ONCE(card->options.cq != QETH_CQ_ENABLED); card 5232 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 5, "pel%u", bidx); card 5237 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "outofbuf"); card 5238 drivers/s390/net/qeth_core_main.c qeth_schedule_recovery(card); card 5244 drivers/s390/net/qeth_core_main.c if (card->options.cq == QETH_CQ_ENABLED) card 5254 drivers/s390/net/qeth_core_main.c struct qeth_card *card = queue->card; card 5255 drivers/s390/net/qeth_core_main.c struct net_device *dev = card->dev; card 5280 drivers/s390/net/qeth_core_main.c completed = qdio_inspect_queue(CARD_DDEV(card), queue_no, false, card 5297 drivers/s390/net/qeth_core_main.c qeth_handle_send_error(card, buffer, error); card 5324 drivers/s390/net/qeth_core_main.c static int qeth_setassparms_get_caps_cb(struct qeth_card *card, card 5339 drivers/s390/net/qeth_core_main.c int qeth_setassparms_cb(struct qeth_card *card, card 5344 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 4, "defadpcb"); card 5351 drivers/s390/net/qeth_core_main.c card->options.ipa4.enabled_funcs = cmd->hdr.ipa_enabled; card 5353 drivers/s390/net/qeth_core_main.c card->options.ipa6.enabled_funcs = cmd->hdr.ipa_enabled; card 5358 drivers/s390/net/qeth_core_main.c struct qeth_cmd_buffer *qeth_get_setassparms_cmd(struct qeth_card *card, card 5368 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 4, "getasscm"); card 5369 drivers/s390/net/qeth_core_main.c iob = qeth_ipa_alloc_cmd(card, IPA_CMD_SETASSPARMS, prot, card 5386 drivers/s390/net/qeth_core_main.c int qeth_send_simple_setassparms_prot(struct qeth_card *card, card 5394 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 4, "simassp%i", prot); card 5395 drivers/s390/net/qeth_core_main.c iob = qeth_get_setassparms_cmd(card, ipa_func, cmd_code, length, prot); card 5401 drivers/s390/net/qeth_core_main.c return qeth_send_ipa_cmd(card, iob, qeth_setassparms_cb, NULL); card 5460 drivers/s390/net/qeth_core_main.c int qeth_core_load_discipline(struct qeth_card *card, card 5466 drivers/s390/net/qeth_core_main.c card->discipline = try_then_request_module( card 5470 drivers/s390/net/qeth_core_main.c card->discipline = try_then_request_module( card 5478 drivers/s390/net/qeth_core_main.c if (!card->discipline) { card 5479 drivers/s390/net/qeth_core_main.c dev_err(&card->gdev->dev, "There is no kernel module to " card 5484 drivers/s390/net/qeth_core_main.c card->options.layer = discipline; card 5488 drivers/s390/net/qeth_core_main.c void qeth_core_free_discipline(struct qeth_card *card) card 5490 drivers/s390/net/qeth_core_main.c if (IS_LAYER2(card)) card 5494 drivers/s390/net/qeth_core_main.c card->options.layer = QETH_DISCIPLINE_UNDETERMINED; card 5495 drivers/s390/net/qeth_core_main.c card->discipline = NULL; card 5536 drivers/s390/net/qeth_core_main.c static int qeth_add_dbf_entry(struct qeth_card *card, char *name) card 5540 drivers/s390/net/qeth_core_main.c card->debug = debug_register(name, 2, 1, 8); card 5541 drivers/s390/net/qeth_core_main.c if (!card->debug) { card 5545 drivers/s390/net/qeth_core_main.c if (debug_register_view(card->debug, &debug_hex_ascii_view)) card 5551 drivers/s390/net/qeth_core_main.c new_entry->dbf_info = card->debug; card 5559 drivers/s390/net/qeth_core_main.c debug_unregister(card->debug); card 5577 drivers/s390/net/qeth_core_main.c static struct net_device *qeth_alloc_netdev(struct qeth_card *card) card 5581 drivers/s390/net/qeth_core_main.c switch (card->info.type) { card 5599 drivers/s390/net/qeth_core_main.c dev->ml_priv = card; card 5601 drivers/s390/net/qeth_core_main.c dev->min_mtu = IS_OSN(card) ? 64 : 576; card 5605 drivers/s390/net/qeth_core_main.c SET_NETDEV_DEV(dev, &card->gdev->dev); card 5608 drivers/s390/net/qeth_core_main.c if (IS_OSN(card)) { card 5615 drivers/s390/net/qeth_core_main.c if (IS_IQD(card)) { card 5641 drivers/s390/net/qeth_core_main.c struct qeth_card *card; card 5655 drivers/s390/net/qeth_core_main.c card = qeth_alloc_card(gdev); card 5656 drivers/s390/net/qeth_core_main.c if (!card) { card 5664 drivers/s390/net/qeth_core_main.c card->debug = qeth_get_dbf_entry(dbf_name); card 5665 drivers/s390/net/qeth_core_main.c if (!card->debug) { card 5666 drivers/s390/net/qeth_core_main.c rc = qeth_add_dbf_entry(card, dbf_name); card 5671 drivers/s390/net/qeth_core_main.c qeth_setup_card(card); card 5672 drivers/s390/net/qeth_core_main.c card->dev = qeth_alloc_netdev(card); card 5673 drivers/s390/net/qeth_core_main.c if (!card->dev) { card 5678 drivers/s390/net/qeth_core_main.c card->qdio.no_out_queues = card->dev->num_tx_queues; card 5679 drivers/s390/net/qeth_core_main.c rc = qeth_update_from_chp_desc(card); card 5682 drivers/s390/net/qeth_core_main.c qeth_determine_capabilities(card); card 5683 drivers/s390/net/qeth_core_main.c qeth_set_blkt_defaults(card); card 5685 drivers/s390/net/qeth_core_main.c enforced_disc = qeth_enforce_discipline(card); card 5691 drivers/s390/net/qeth_core_main.c card->info.layer_enforced = true; card 5692 drivers/s390/net/qeth_core_main.c rc = qeth_core_load_discipline(card, enforced_disc); card 5696 drivers/s390/net/qeth_core_main.c gdev->dev.type = IS_OSN(card) ? &qeth_osn_devtype : card 5697 drivers/s390/net/qeth_core_main.c card->discipline->devtype; card 5698 drivers/s390/net/qeth_core_main.c rc = card->discipline->setup(card->gdev); card 5707 drivers/s390/net/qeth_core_main.c qeth_core_free_discipline(card); card 5710 drivers/s390/net/qeth_core_main.c free_netdev(card->dev); card 5712 drivers/s390/net/qeth_core_main.c qeth_core_free_card(card); card 5720 drivers/s390/net/qeth_core_main.c struct qeth_card *card = dev_get_drvdata(&gdev->dev); card 5722 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "removedv"); card 5724 drivers/s390/net/qeth_core_main.c if (card->discipline) { card 5725 drivers/s390/net/qeth_core_main.c card->discipline->remove(gdev); card 5726 drivers/s390/net/qeth_core_main.c qeth_core_free_discipline(card); card 5729 drivers/s390/net/qeth_core_main.c free_netdev(card->dev); card 5730 drivers/s390/net/qeth_core_main.c qeth_core_free_card(card); card 5736 drivers/s390/net/qeth_core_main.c struct qeth_card *card = dev_get_drvdata(&gdev->dev); card 5740 drivers/s390/net/qeth_core_main.c if (!card->discipline) { card 5741 drivers/s390/net/qeth_core_main.c def_discipline = IS_IQD(card) ? QETH_DISCIPLINE_LAYER3 : card 5743 drivers/s390/net/qeth_core_main.c rc = qeth_core_load_discipline(card, def_discipline); card 5746 drivers/s390/net/qeth_core_main.c rc = card->discipline->setup(card->gdev); card 5748 drivers/s390/net/qeth_core_main.c qeth_core_free_discipline(card); card 5752 drivers/s390/net/qeth_core_main.c rc = card->discipline->set_online(gdev); card 5759 drivers/s390/net/qeth_core_main.c struct qeth_card *card = dev_get_drvdata(&gdev->dev); card 5760 drivers/s390/net/qeth_core_main.c return card->discipline->set_offline(gdev); card 5765 drivers/s390/net/qeth_core_main.c struct qeth_card *card = dev_get_drvdata(&gdev->dev); card 5766 drivers/s390/net/qeth_core_main.c qeth_set_allowed_threads(card, 0, 1); card 5767 drivers/s390/net/qeth_core_main.c if ((gdev->state == CCWGROUP_ONLINE) && card->info.hwtrap) card 5768 drivers/s390/net/qeth_core_main.c qeth_hw_trap(card, QETH_DIAGS_TRAP_DISARM); card 5769 drivers/s390/net/qeth_core_main.c qeth_qdio_clear_card(card, 0); card 5770 drivers/s390/net/qeth_core_main.c qeth_drain_output_queues(card); card 5771 drivers/s390/net/qeth_core_main.c qdio_free(CARD_DDEV(card)); card 5776 drivers/s390/net/qeth_core_main.c struct qeth_card *card = dev_get_drvdata(&gdev->dev); card 5778 drivers/s390/net/qeth_core_main.c qeth_set_allowed_threads(card, 0, 1); card 5779 drivers/s390/net/qeth_core_main.c wait_event(card->wait_q, qeth_threads_running(card, 0xffffffff) == 0); card 5783 drivers/s390/net/qeth_core_main.c card->discipline->set_offline(gdev); card 5789 drivers/s390/net/qeth_core_main.c struct qeth_card *card = dev_get_drvdata(&gdev->dev); card 5792 drivers/s390/net/qeth_core_main.c rc = card->discipline->set_online(gdev); card 5794 drivers/s390/net/qeth_core_main.c qeth_set_allowed_threads(card, 0xffffffff, 0); card 5796 drivers/s390/net/qeth_core_main.c dev_warn(&card->gdev->dev, "The qeth device driver failed to recover an error on the device\n"); card 5846 drivers/s390/net/qeth_core_main.c struct qeth_card *card; card 5852 drivers/s390/net/qeth_core_main.c card = dev_get_drvdata(&gdev->dev); card 5854 drivers/s390/net/qeth_core_main.c return card; card 5860 drivers/s390/net/qeth_core_main.c struct qeth_card *card = dev->ml_priv; card 5864 drivers/s390/net/qeth_core_main.c if (!card) card 5869 drivers/s390/net/qeth_core_main.c rc = qeth_snmp_command(card, rq->ifr_ifru.ifru_data); card 5872 drivers/s390/net/qeth_core_main.c if ((IS_OSD(card) || IS_OSM(card) || IS_OSX(card)) && card 5873 drivers/s390/net/qeth_core_main.c !IS_VM_NIC(card)) card 5889 drivers/s390/net/qeth_core_main.c rc = qeth_query_oat_command(card, rq->ifr_ifru.ifru_data); card 5892 drivers/s390/net/qeth_core_main.c if (card->discipline->do_ioctl) card 5893 drivers/s390/net/qeth_core_main.c rc = card->discipline->do_ioctl(dev, rq, cmd); card 5898 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 2, "ioce%x", rc); card 5903 drivers/s390/net/qeth_core_main.c static int qeth_start_csum_cb(struct qeth_card *card, struct qeth_reply *reply, card 5916 drivers/s390/net/qeth_core_main.c static int qeth_set_csum_off(struct qeth_card *card, enum qeth_ipa_funcs cstype, card 5919 drivers/s390/net/qeth_core_main.c return qeth_send_simple_setassparms_prot(card, cstype, IPA_CMD_ASS_STOP, card 5923 drivers/s390/net/qeth_core_main.c static int qeth_set_csum_on(struct qeth_card *card, enum qeth_ipa_funcs cstype, card 5933 drivers/s390/net/qeth_core_main.c if (IS_LAYER3(card) && prot == QETH_PROT_IPV4 && card 5937 drivers/s390/net/qeth_core_main.c iob = qeth_get_setassparms_cmd(card, cstype, IPA_CMD_ASS_START, 0, card 5942 drivers/s390/net/qeth_core_main.c rc = qeth_send_ipa_cmd(card, iob, qeth_start_csum_cb, &features); card 5947 drivers/s390/net/qeth_core_main.c qeth_set_csum_off(card, cstype, prot); card 5951 drivers/s390/net/qeth_core_main.c iob = qeth_get_setassparms_cmd(card, cstype, IPA_CMD_ASS_ENABLE, card 5955 drivers/s390/net/qeth_core_main.c qeth_set_csum_off(card, cstype, prot); card 5962 drivers/s390/net/qeth_core_main.c rc = qeth_send_ipa_cmd(card, iob, qeth_setassparms_get_caps_cb, &caps); card 5964 drivers/s390/net/qeth_core_main.c qeth_set_csum_off(card, cstype, prot); card 5970 drivers/s390/net/qeth_core_main.c qeth_set_csum_off(card, cstype, prot); card 5974 drivers/s390/net/qeth_core_main.c dev_info(&card->gdev->dev, "HW Checksumming (%sbound IPv%d) enabled\n", card 5978 drivers/s390/net/qeth_core_main.c dev_warn(&card->gdev->dev, card 5980 drivers/s390/net/qeth_core_main.c QETH_CARD_IFNAME(card)); card 5984 drivers/s390/net/qeth_core_main.c static int qeth_set_ipa_csum(struct qeth_card *card, bool on, int cstype, card 5987 drivers/s390/net/qeth_core_main.c return on ? qeth_set_csum_on(card, cstype, prot) : card 5988 drivers/s390/net/qeth_core_main.c qeth_set_csum_off(card, cstype, prot); card 5991 drivers/s390/net/qeth_core_main.c static int qeth_start_tso_cb(struct qeth_card *card, struct qeth_reply *reply, card 6005 drivers/s390/net/qeth_core_main.c static int qeth_set_tso_off(struct qeth_card *card, card 6008 drivers/s390/net/qeth_core_main.c return qeth_send_simple_setassparms_prot(card, IPA_OUTBOUND_TSO, card 6012 drivers/s390/net/qeth_core_main.c static int qeth_set_tso_on(struct qeth_card *card, card 6020 drivers/s390/net/qeth_core_main.c iob = qeth_get_setassparms_cmd(card, IPA_OUTBOUND_TSO, card 6025 drivers/s390/net/qeth_core_main.c rc = qeth_send_ipa_cmd(card, iob, qeth_start_tso_cb, &tso_data); card 6030 drivers/s390/net/qeth_core_main.c qeth_set_tso_off(card, prot); card 6034 drivers/s390/net/qeth_core_main.c iob = qeth_get_setassparms_cmd(card, IPA_OUTBOUND_TSO, card 6038 drivers/s390/net/qeth_core_main.c qeth_set_tso_off(card, prot); card 6045 drivers/s390/net/qeth_core_main.c rc = qeth_send_ipa_cmd(card, iob, qeth_setassparms_get_caps_cb, &caps); card 6047 drivers/s390/net/qeth_core_main.c qeth_set_tso_off(card, prot); card 6053 drivers/s390/net/qeth_core_main.c qeth_set_tso_off(card, prot); card 6057 drivers/s390/net/qeth_core_main.c dev_info(&card->gdev->dev, "TSOv%u enabled (MSS: %u)\n", prot, card 6062 drivers/s390/net/qeth_core_main.c static int qeth_set_ipa_tso(struct qeth_card *card, bool on, card 6065 drivers/s390/net/qeth_core_main.c return on ? qeth_set_tso_on(card, prot) : qeth_set_tso_off(card, prot); card 6068 drivers/s390/net/qeth_core_main.c static int qeth_set_ipa_rx_csum(struct qeth_card *card, bool on) card 6073 drivers/s390/net/qeth_core_main.c if (qeth_is_supported(card, IPA_INBOUND_CHECKSUM)) card 6074 drivers/s390/net/qeth_core_main.c rc_ipv4 = qeth_set_ipa_csum(card, on, IPA_INBOUND_CHECKSUM, card 6076 drivers/s390/net/qeth_core_main.c if (!qeth_is_supported6(card, IPA_INBOUND_CHECKSUM_V6)) card 6080 drivers/s390/net/qeth_core_main.c rc_ipv6 = qeth_set_ipa_csum(card, on, IPA_INBOUND_CHECKSUM, card 6097 drivers/s390/net/qeth_core_main.c struct qeth_card *card = dev->ml_priv; card 6106 drivers/s390/net/qeth_core_main.c if (IS_LAYER2(card) && IS_VM_NIC(card)) { card 6112 drivers/s390/net/qeth_core_main.c dev_warn(&card->gdev->dev, card 6119 drivers/s390/net/qeth_core_main.c struct qeth_card *card = dev->ml_priv; card 6123 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "setfeat"); card 6124 drivers/s390/net/qeth_core_main.c QETH_CARD_HEX(card, 2, &features, sizeof(features)); card 6127 drivers/s390/net/qeth_core_main.c rc = qeth_set_ipa_csum(card, features & NETIF_F_IP_CSUM, card 6133 drivers/s390/net/qeth_core_main.c rc = qeth_set_ipa_csum(card, features & NETIF_F_IPV6_CSUM, card 6139 drivers/s390/net/qeth_core_main.c rc = qeth_set_ipa_rx_csum(card, features & NETIF_F_RXCSUM); card 6144 drivers/s390/net/qeth_core_main.c rc = qeth_set_ipa_tso(card, features & NETIF_F_TSO, card 6150 drivers/s390/net/qeth_core_main.c rc = qeth_set_ipa_tso(card, features & NETIF_F_TSO6, card 6168 drivers/s390/net/qeth_core_main.c struct qeth_card *card = dev->ml_priv; card 6170 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 2, "fixfeat"); card 6171 drivers/s390/net/qeth_core_main.c if (!qeth_is_supported(card, IPA_OUTBOUND_CHECKSUM)) card 6173 drivers/s390/net/qeth_core_main.c if (!qeth_is_supported6(card, IPA_OUTBOUND_CHECKSUM_V6)) card 6175 drivers/s390/net/qeth_core_main.c if (!qeth_is_supported(card, IPA_INBOUND_CHECKSUM) && card 6176 drivers/s390/net/qeth_core_main.c !qeth_is_supported6(card, IPA_INBOUND_CHECKSUM_V6)) card 6178 drivers/s390/net/qeth_core_main.c if (!qeth_is_supported(card, IPA_OUTBOUND_TSO)) card 6180 drivers/s390/net/qeth_core_main.c if (!qeth_is_supported6(card, IPA_OUTBOUND_TSO)) card 6183 drivers/s390/net/qeth_core_main.c QETH_CARD_HEX(card, 2, &features, sizeof(features)); card 6216 drivers/s390/net/qeth_core_main.c struct qeth_card *card = dev->ml_priv; card 6220 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 5, "getstat"); card 6222 drivers/s390/net/qeth_core_main.c stats->rx_packets = card->stats.rx_packets; card 6223 drivers/s390/net/qeth_core_main.c stats->rx_bytes = card->stats.rx_bytes; card 6224 drivers/s390/net/qeth_core_main.c stats->rx_errors = card->stats.rx_errors; card 6225 drivers/s390/net/qeth_core_main.c stats->rx_dropped = card->stats.rx_dropped; card 6226 drivers/s390/net/qeth_core_main.c stats->multicast = card->stats.rx_multicast; card 6228 drivers/s390/net/qeth_core_main.c for (i = 0; i < card->qdio.no_out_queues; i++) { card 6229 drivers/s390/net/qeth_core_main.c queue = card->qdio.out_qs[i]; card 6250 drivers/s390/net/qeth_core_main.c struct qeth_card *card = dev->ml_priv; card 6252 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 4, "qethopen"); card 6254 drivers/s390/net/qeth_core_main.c if (qdio_stop_irq(CARD_DDEV(card), 0) < 0) card 6257 drivers/s390/net/qeth_core_main.c card->data.state = CH_STATE_UP; card 6260 drivers/s390/net/qeth_core_main.c napi_enable(&card->napi); card 6262 drivers/s390/net/qeth_core_main.c napi_schedule(&card->napi); card 6263 drivers/s390/net/qeth_core_main.c if (IS_IQD(card)) { card 6267 drivers/s390/net/qeth_core_main.c qeth_for_each_output_queue(card, queue, i) { card 6282 drivers/s390/net/qeth_core_main.c struct qeth_card *card = dev->ml_priv; card 6284 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(card, 4, "qethstop"); card 6285 drivers/s390/net/qeth_core_main.c if (IS_IQD(card)) { card 6290 drivers/s390/net/qeth_core_main.c qeth_for_each_output_queue(card, queue, i) { card 6299 drivers/s390/net/qeth_core_main.c qeth_for_each_output_queue(card, queue, i) card 6305 drivers/s390/net/qeth_core_main.c napi_disable(&card->napi); card 63 drivers/s390/net/qeth_core_mpc.h #define IS_IQD(card) ((card)->info.type == QETH_CARD_TYPE_IQD) card 64 drivers/s390/net/qeth_core_mpc.h #define IS_OSD(card) ((card)->info.type == QETH_CARD_TYPE_OSD) card 65 drivers/s390/net/qeth_core_mpc.h #define IS_OSM(card) ((card)->info.type == QETH_CARD_TYPE_OSM) card 66 drivers/s390/net/qeth_core_mpc.h #define IS_OSN(card) ((card)->info.type == QETH_CARD_TYPE_OSN) card 67 drivers/s390/net/qeth_core_mpc.h #define IS_OSX(card) ((card)->info.type == QETH_CARD_TYPE_OSX) card 68 drivers/s390/net/qeth_core_mpc.h #define IS_VM_NIC(card) ((card)->info.is_vm_nic) card 22 drivers/s390/net/qeth_core_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 23 drivers/s390/net/qeth_core_sys.c if (!card) card 26 drivers/s390/net/qeth_core_sys.c switch (card->state) { card 32 drivers/s390/net/qeth_core_sys.c if (card->dev->flags & IFF_UP) card 34 drivers/s390/net/qeth_core_sys.c netif_carrier_ok(card->dev) ? "ONLINE" : card 47 drivers/s390/net/qeth_core_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 48 drivers/s390/net/qeth_core_sys.c if (!card) card 51 drivers/s390/net/qeth_core_sys.c return sprintf(buf, "%02X\n", card->info.chpid); card 59 drivers/s390/net/qeth_core_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 60 drivers/s390/net/qeth_core_sys.c if (!card) card 62 drivers/s390/net/qeth_core_sys.c return sprintf(buf, "%s\n", QETH_CARD_IFNAME(card)); card 70 drivers/s390/net/qeth_core_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 71 drivers/s390/net/qeth_core_sys.c if (!card) card 74 drivers/s390/net/qeth_core_sys.c return sprintf(buf, "%s\n", qeth_get_cardname_short(card)); card 79 drivers/s390/net/qeth_core_sys.c static const char *qeth_get_bufsize_str(struct qeth_card *card) card 81 drivers/s390/net/qeth_core_sys.c if (card->qdio.in_buf_size == 16384) card 83 drivers/s390/net/qeth_core_sys.c else if (card->qdio.in_buf_size == 24576) card 85 drivers/s390/net/qeth_core_sys.c else if (card->qdio.in_buf_size == 32768) card 87 drivers/s390/net/qeth_core_sys.c else if (card->qdio.in_buf_size == 40960) card 96 drivers/s390/net/qeth_core_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 97 drivers/s390/net/qeth_core_sys.c if (!card) card 100 drivers/s390/net/qeth_core_sys.c return sprintf(buf, "%s\n", qeth_get_bufsize_str(card)); card 108 drivers/s390/net/qeth_core_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 109 drivers/s390/net/qeth_core_sys.c if (!card) card 112 drivers/s390/net/qeth_core_sys.c return sprintf(buf, "%i\n", card->dev->dev_port); card 118 drivers/s390/net/qeth_core_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 123 drivers/s390/net/qeth_core_sys.c if (!card) card 126 drivers/s390/net/qeth_core_sys.c mutex_lock(&card->conf_mutex); card 127 drivers/s390/net/qeth_core_sys.c if (card->state != CARD_STATE_DOWN) { card 137 drivers/s390/net/qeth_core_sys.c limit = (card->ssqd.pcnt ? card->ssqd.pcnt - 1 : card->ssqd.pcnt); card 142 drivers/s390/net/qeth_core_sys.c card->dev->dev_port = portno; card 144 drivers/s390/net/qeth_core_sys.c mutex_unlock(&card->conf_mutex); card 159 drivers/s390/net/qeth_core_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 161 drivers/s390/net/qeth_core_sys.c dev_warn_once(&card->gdev->dev, card 172 drivers/s390/net/qeth_core_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 174 drivers/s390/net/qeth_core_sys.c if (!card) card 177 drivers/s390/net/qeth_core_sys.c switch (card->qdio.do_prio_queueing) { card 188 drivers/s390/net/qeth_core_sys.c card->qdio.default_out_queue); card 195 drivers/s390/net/qeth_core_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 198 drivers/s390/net/qeth_core_sys.c if (!card) card 201 drivers/s390/net/qeth_core_sys.c if (IS_IQD(card)) card 204 drivers/s390/net/qeth_core_sys.c mutex_lock(&card->conf_mutex); card 205 drivers/s390/net/qeth_core_sys.c if (card->state != CARD_STATE_DOWN) { card 213 drivers/s390/net/qeth_core_sys.c if (card->qdio.no_out_queues == 1) { card 214 drivers/s390/net/qeth_core_sys.c card->qdio.do_prio_queueing = QETH_PRIOQ_DEFAULT; card 220 drivers/s390/net/qeth_core_sys.c card->qdio.do_prio_queueing = QETH_PRIO_Q_ING_PREC; card 221 drivers/s390/net/qeth_core_sys.c card->qdio.default_out_queue = QETH_DEFAULT_QUEUE; card 223 drivers/s390/net/qeth_core_sys.c card->qdio.do_prio_queueing = QETH_PRIO_Q_ING_SKB; card 224 drivers/s390/net/qeth_core_sys.c card->qdio.default_out_queue = QETH_DEFAULT_QUEUE; card 226 drivers/s390/net/qeth_core_sys.c card->qdio.do_prio_queueing = QETH_PRIO_Q_ING_TOS; card 227 drivers/s390/net/qeth_core_sys.c card->qdio.default_out_queue = QETH_DEFAULT_QUEUE; card 229 drivers/s390/net/qeth_core_sys.c if (IS_LAYER3(card)) { card 233 drivers/s390/net/qeth_core_sys.c card->qdio.do_prio_queueing = QETH_PRIO_Q_ING_VLAN; card 234 drivers/s390/net/qeth_core_sys.c card->qdio.default_out_queue = QETH_DEFAULT_QUEUE; card 236 drivers/s390/net/qeth_core_sys.c card->qdio.do_prio_queueing = QETH_NO_PRIO_QUEUEING; card 237 drivers/s390/net/qeth_core_sys.c card->qdio.default_out_queue = 0; card 239 drivers/s390/net/qeth_core_sys.c card->qdio.do_prio_queueing = QETH_NO_PRIO_QUEUEING; card 240 drivers/s390/net/qeth_core_sys.c card->qdio.default_out_queue = 1; card 242 drivers/s390/net/qeth_core_sys.c card->qdio.do_prio_queueing = QETH_NO_PRIO_QUEUEING; card 243 drivers/s390/net/qeth_core_sys.c card->qdio.default_out_queue = 2; card 245 drivers/s390/net/qeth_core_sys.c card->qdio.do_prio_queueing = QETH_NO_PRIO_QUEUEING; card 246 drivers/s390/net/qeth_core_sys.c card->qdio.default_out_queue = 3; card 248 drivers/s390/net/qeth_core_sys.c card->qdio.do_prio_queueing = QETH_NO_PRIO_QUEUEING; card 249 drivers/s390/net/qeth_core_sys.c card->qdio.default_out_queue = QETH_DEFAULT_QUEUE; card 253 drivers/s390/net/qeth_core_sys.c mutex_unlock(&card->conf_mutex); card 263 drivers/s390/net/qeth_core_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 265 drivers/s390/net/qeth_core_sys.c if (!card) card 268 drivers/s390/net/qeth_core_sys.c return sprintf(buf, "%i\n", card->qdio.in_buf_pool.buf_count); card 274 drivers/s390/net/qeth_core_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 279 drivers/s390/net/qeth_core_sys.c if (!card) card 282 drivers/s390/net/qeth_core_sys.c mutex_lock(&card->conf_mutex); card 283 drivers/s390/net/qeth_core_sys.c if (card->state != CARD_STATE_DOWN) { card 288 drivers/s390/net/qeth_core_sys.c old_cnt = card->qdio.in_buf_pool.buf_count; card 293 drivers/s390/net/qeth_core_sys.c rc = qeth_realloc_buffer_pool(card, cnt); card 296 drivers/s390/net/qeth_core_sys.c mutex_unlock(&card->conf_mutex); card 306 drivers/s390/net/qeth_core_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 310 drivers/s390/net/qeth_core_sys.c if (!card) card 313 drivers/s390/net/qeth_core_sys.c if (!qeth_card_hw_is_reachable(card)) card 318 drivers/s390/net/qeth_core_sys.c qeth_schedule_recovery(card); card 328 drivers/s390/net/qeth_core_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 330 drivers/s390/net/qeth_core_sys.c if (!card) card 339 drivers/s390/net/qeth_core_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 345 drivers/s390/net/qeth_core_sys.c if (!card) card 353 drivers/s390/net/qeth_core_sys.c memset(&card->stats, 0, sizeof(card->stats)); card 354 drivers/s390/net/qeth_core_sys.c for (i = 0; i < card->qdio.no_out_queues; i++) { card 355 drivers/s390/net/qeth_core_sys.c queue = card->qdio.out_qs[i]; card 371 drivers/s390/net/qeth_core_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 373 drivers/s390/net/qeth_core_sys.c if (!card) card 376 drivers/s390/net/qeth_core_sys.c return sprintf(buf, "%i\n", card->options.layer); card 382 drivers/s390/net/qeth_core_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 388 drivers/s390/net/qeth_core_sys.c if (!card) card 391 drivers/s390/net/qeth_core_sys.c mutex_lock(&card->discipline_mutex); card 392 drivers/s390/net/qeth_core_sys.c if (card->state != CARD_STATE_DOWN) { card 410 drivers/s390/net/qeth_core_sys.c if (card->options.layer == newdis) card 412 drivers/s390/net/qeth_core_sys.c if (card->info.layer_enforced) { card 418 drivers/s390/net/qeth_core_sys.c if (card->discipline) { card 420 drivers/s390/net/qeth_core_sys.c ndev = qeth_clone_netdev(card->dev); card 426 drivers/s390/net/qeth_core_sys.c card->discipline->remove(card->gdev); card 427 drivers/s390/net/qeth_core_sys.c qeth_core_free_discipline(card); card 428 drivers/s390/net/qeth_core_sys.c free_netdev(card->dev); card 429 drivers/s390/net/qeth_core_sys.c card->dev = ndev; card 432 drivers/s390/net/qeth_core_sys.c rc = qeth_core_load_discipline(card, newdis); card 436 drivers/s390/net/qeth_core_sys.c rc = card->discipline->setup(card->gdev); card 438 drivers/s390/net/qeth_core_sys.c qeth_core_free_discipline(card); card 440 drivers/s390/net/qeth_core_sys.c mutex_unlock(&card->discipline_mutex); card 454 drivers/s390/net/qeth_core_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 456 drivers/s390/net/qeth_core_sys.c if (!card) card 459 drivers/s390/net/qeth_core_sys.c switch (card->options.isolation) { card 474 drivers/s390/net/qeth_core_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 478 drivers/s390/net/qeth_core_sys.c if (!card) card 481 drivers/s390/net/qeth_core_sys.c mutex_lock(&card->conf_mutex); card 482 drivers/s390/net/qeth_core_sys.c if (!IS_OSD(card) && !IS_OSX(card)) { card 484 drivers/s390/net/qeth_core_sys.c dev_err(&card->gdev->dev, "Adapter does not " card 503 drivers/s390/net/qeth_core_sys.c card->options.prev_isolation = card->options.isolation; card 504 drivers/s390/net/qeth_core_sys.c card->options.isolation = isolation; card 505 drivers/s390/net/qeth_core_sys.c if (qeth_card_hw_is_reachable(card)) { card 506 drivers/s390/net/qeth_core_sys.c int ipa_rc = qeth_set_access_ctrl_online(card, 1); card 511 drivers/s390/net/qeth_core_sys.c mutex_unlock(&card->conf_mutex); card 521 drivers/s390/net/qeth_core_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 525 drivers/s390/net/qeth_core_sys.c if (!card) card 528 drivers/s390/net/qeth_core_sys.c if (!qeth_card_hw_is_reachable(card)) card 531 drivers/s390/net/qeth_core_sys.c rc = qeth_query_switch_attributes(card, &sw_info); card 556 drivers/s390/net/qeth_core_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 558 drivers/s390/net/qeth_core_sys.c if (!card) card 560 drivers/s390/net/qeth_core_sys.c if (card->info.hwtrap) card 569 drivers/s390/net/qeth_core_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 573 drivers/s390/net/qeth_core_sys.c if (!card) card 576 drivers/s390/net/qeth_core_sys.c mutex_lock(&card->conf_mutex); card 577 drivers/s390/net/qeth_core_sys.c if (qeth_card_hw_is_reachable(card)) card 580 drivers/s390/net/qeth_core_sys.c if (sysfs_streq(buf, "arm") && !card->info.hwtrap) { card 582 drivers/s390/net/qeth_core_sys.c if (qeth_is_diagass_supported(card, card 584 drivers/s390/net/qeth_core_sys.c rc = qeth_hw_trap(card, QETH_DIAGS_TRAP_ARM); card 586 drivers/s390/net/qeth_core_sys.c card->info.hwtrap = 1; card 590 drivers/s390/net/qeth_core_sys.c card->info.hwtrap = 1; card 591 drivers/s390/net/qeth_core_sys.c } else if (sysfs_streq(buf, "disarm") && card->info.hwtrap) { card 593 drivers/s390/net/qeth_core_sys.c rc = qeth_hw_trap(card, QETH_DIAGS_TRAP_DISARM); card 595 drivers/s390/net/qeth_core_sys.c card->info.hwtrap = 0; card 597 drivers/s390/net/qeth_core_sys.c card->info.hwtrap = 0; card 598 drivers/s390/net/qeth_core_sys.c } else if (sysfs_streq(buf, "trap") && state && card->info.hwtrap) card 599 drivers/s390/net/qeth_core_sys.c rc = qeth_hw_trap(card, QETH_DIAGS_TRAP_CAPTURE); card 603 drivers/s390/net/qeth_core_sys.c mutex_unlock(&card->conf_mutex); card 610 drivers/s390/net/qeth_core_sys.c static ssize_t qeth_dev_blkt_show(char *buf, struct qeth_card *card, int value) card 613 drivers/s390/net/qeth_core_sys.c if (!card) card 619 drivers/s390/net/qeth_core_sys.c static ssize_t qeth_dev_blkt_store(struct qeth_card *card, card 625 drivers/s390/net/qeth_core_sys.c if (!card) card 628 drivers/s390/net/qeth_core_sys.c mutex_lock(&card->conf_mutex); card 629 drivers/s390/net/qeth_core_sys.c if (card->state != CARD_STATE_DOWN) { card 639 drivers/s390/net/qeth_core_sys.c mutex_unlock(&card->conf_mutex); card 646 drivers/s390/net/qeth_core_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 648 drivers/s390/net/qeth_core_sys.c return qeth_dev_blkt_show(buf, card, card->info.blkt.time_total); card 654 drivers/s390/net/qeth_core_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 656 drivers/s390/net/qeth_core_sys.c return qeth_dev_blkt_store(card, buf, count, card 657 drivers/s390/net/qeth_core_sys.c &card->info.blkt.time_total, 5000); card 668 drivers/s390/net/qeth_core_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 670 drivers/s390/net/qeth_core_sys.c return qeth_dev_blkt_show(buf, card, card->info.blkt.inter_packet); card 676 drivers/s390/net/qeth_core_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 678 drivers/s390/net/qeth_core_sys.c return qeth_dev_blkt_store(card, buf, count, card 679 drivers/s390/net/qeth_core_sys.c &card->info.blkt.inter_packet, 1000); card 688 drivers/s390/net/qeth_core_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 690 drivers/s390/net/qeth_core_sys.c return qeth_dev_blkt_show(buf, card, card 691 drivers/s390/net/qeth_core_sys.c card->info.blkt.inter_packet_jumbo); card 697 drivers/s390/net/qeth_core_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 699 drivers/s390/net/qeth_core_sys.c return qeth_dev_blkt_store(card, buf, count, card 700 drivers/s390/net/qeth_core_sys.c &card->info.blkt.inter_packet_jumbo, 1000); card 85 drivers/s390/net/qeth_ethtool.c struct qeth_card *card = dev->ml_priv; card 90 drivers/s390/net/qeth_ethtool.c card->qdio.no_out_queues * TXQ_STATS_LEN; card 99 drivers/s390/net/qeth_ethtool.c struct qeth_card *card = dev->ml_priv; card 102 drivers/s390/net/qeth_ethtool.c qeth_add_stat_data(&data, &card->stats, card_stats, CARD_STATS_LEN); card 103 drivers/s390/net/qeth_ethtool.c for (i = 0; i < card->qdio.no_out_queues; i++) card 104 drivers/s390/net/qeth_ethtool.c qeth_add_stat_data(&data, &card->qdio.out_qs[i]->stats, card 111 drivers/s390/net/qeth_ethtool.c struct qeth_card *card = dev->ml_priv; card 118 drivers/s390/net/qeth_ethtool.c param->rx_pending = card->qdio.in_buf_pool.buf_count; card 126 drivers/s390/net/qeth_ethtool.c struct qeth_card *card = dev->ml_priv; card 134 drivers/s390/net/qeth_ethtool.c for (i = 0; i < card->qdio.no_out_queues; i++) { card 149 drivers/s390/net/qeth_ethtool.c struct qeth_card *card = dev->ml_priv; card 151 drivers/s390/net/qeth_ethtool.c strlcpy(info->driver, IS_LAYER2(card) ? "qeth_l2" : "qeth_l3", card 154 drivers/s390/net/qeth_ethtool.c strlcpy(info->fw_version, card->info.mcl_level, card 157 drivers/s390/net/qeth_ethtool.c CARD_RDEV_ID(card), CARD_WDEV_ID(card), CARD_DDEV_ID(card)); card 163 drivers/s390/net/qeth_ethtool.c struct qeth_card *card = dev->ml_priv; card 166 drivers/s390/net/qeth_ethtool.c channels->max_tx = card->qdio.no_out_queues; card 265 drivers/s390/net/qeth_ethtool.c struct qeth_card *card = netdev->ml_priv; card 270 drivers/s390/net/qeth_ethtool.c if (IS_IQD(card) || IS_VM_NIC(card)) card 273 drivers/s390/net/qeth_ethtool.c link_type = card->info.link_type; card 310 drivers/s390/net/qeth_ethtool.c rc = qeth_query_card_info(card, &carrier_info); card 16 drivers/s390/net/qeth_l2.h void qeth_l2_setup_bridgeport_attrs(struct qeth_card *card); card 17 drivers/s390/net/qeth_l2.h int qeth_bridgeport_query_ports(struct qeth_card *card, card 20 drivers/s390/net/qeth_l2.h int qeth_bridgeport_setrole(struct qeth_card *card, enum qeth_sbp_roles role); card 21 drivers/s390/net/qeth_l2.h int qeth_bridgeport_an_set(struct qeth_card *card, int enable); card 23 drivers/s390/net/qeth_l2.h int qeth_l2_vnicc_set_state(struct qeth_card *card, u32 vnicc, bool state); card 24 drivers/s390/net/qeth_l2.h int qeth_l2_vnicc_get_state(struct qeth_card *card, u32 vnicc, bool *state); card 25 drivers/s390/net/qeth_l2.h int qeth_l2_vnicc_set_timeout(struct qeth_card *card, u32 timeout); card 26 drivers/s390/net/qeth_l2.h int qeth_l2_vnicc_get_timeout(struct qeth_card *card, u32 *timeout); card 27 drivers/s390/net/qeth_l2.h bool qeth_l2_vnicc_is_in_use(struct qeth_card *card); card 28 drivers/s390/net/qeth_l2_main.c static void qeth_bridgeport_query_support(struct qeth_card *card); card 29 drivers/s390/net/qeth_l2_main.c static void qeth_bridge_state_change(struct qeth_card *card, card 31 drivers/s390/net/qeth_l2_main.c static void qeth_bridge_host_event(struct qeth_card *card, card 33 drivers/s390/net/qeth_l2_main.c static void qeth_l2_vnicc_set_defaults(struct qeth_card *card); card 34 drivers/s390/net/qeth_l2_main.c static void qeth_l2_vnicc_init(struct qeth_card *card); card 35 drivers/s390/net/qeth_l2_main.c static bool qeth_l2_vnicc_recover_timeout(struct qeth_card *card, u32 vnicc, card 38 drivers/s390/net/qeth_l2_main.c static int qeth_l2_setdelmac_makerc(struct qeth_card *card, u16 retcode) card 43 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT_(card, 2, "err%04x", retcode); card 72 drivers/s390/net/qeth_l2_main.c static int qeth_l2_send_setdelmac_cb(struct qeth_card *card, card 78 drivers/s390/net/qeth_l2_main.c return qeth_l2_setdelmac_makerc(card, cmd->hdr.return_code); card 81 drivers/s390/net/qeth_l2_main.c static int qeth_l2_send_setdelmac(struct qeth_card *card, __u8 *mac, card 87 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT(card, 2, "L2sdmac"); card 88 drivers/s390/net/qeth_l2_main.c iob = qeth_ipa_alloc_cmd(card, ipacmd, QETH_PROT_IPV4, card 95 drivers/s390/net/qeth_l2_main.c return qeth_send_ipa_cmd(card, iob, qeth_l2_send_setdelmac_cb, NULL); card 98 drivers/s390/net/qeth_l2_main.c static int qeth_l2_send_setmac(struct qeth_card *card, __u8 *mac) card 102 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT(card, 2, "L2Setmac"); card 103 drivers/s390/net/qeth_l2_main.c rc = qeth_l2_send_setdelmac(card, mac, IPA_CMD_SETVMAC); card 105 drivers/s390/net/qeth_l2_main.c dev_info(&card->gdev->dev, card 110 drivers/s390/net/qeth_l2_main.c dev_warn(&card->gdev->dev, card 114 drivers/s390/net/qeth_l2_main.c dev_warn(&card->gdev->dev, card 122 drivers/s390/net/qeth_l2_main.c static int qeth_l2_write_mac(struct qeth_card *card, u8 *mac) card 128 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT(card, 2, "L2Wmac"); card 129 drivers/s390/net/qeth_l2_main.c rc = qeth_l2_send_setdelmac(card, mac, cmd); card 132 drivers/s390/net/qeth_l2_main.c CARD_DEVID(card)); card 135 drivers/s390/net/qeth_l2_main.c CARD_DEVID(card), rc); card 139 drivers/s390/net/qeth_l2_main.c static int qeth_l2_remove_mac(struct qeth_card *card, u8 *mac) card 145 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT(card, 2, "L2Rmac"); card 146 drivers/s390/net/qeth_l2_main.c rc = qeth_l2_send_setdelmac(card, mac, cmd); card 149 drivers/s390/net/qeth_l2_main.c CARD_DEVID(card), rc); card 153 drivers/s390/net/qeth_l2_main.c static void qeth_l2_drain_rx_mode_cache(struct qeth_card *card) card 159 drivers/s390/net/qeth_l2_main.c hash_for_each_safe(card->mac_htable, i, tmp, mac, hnode) { card 199 drivers/s390/net/qeth_l2_main.c static int qeth_l2_setdelvlan_makerc(struct qeth_card *card, u16 retcode) card 202 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT_(card, 2, "err%04x", retcode); card 220 drivers/s390/net/qeth_l2_main.c static int qeth_l2_send_setdelvlan_cb(struct qeth_card *card, card 226 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT(card, 2, "L2sdvcb"); card 230 drivers/s390/net/qeth_l2_main.c CARD_DEVID(card), cmd->hdr.return_code); card 231 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT_(card, 2, "L2VL%4x", cmd->hdr.command); card 233 drivers/s390/net/qeth_l2_main.c return qeth_l2_setdelvlan_makerc(card, cmd->hdr.return_code); card 236 drivers/s390/net/qeth_l2_main.c static int qeth_l2_send_setdelvlan(struct qeth_card *card, __u16 i, card 242 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT_(card, 4, "L2sdv%x", ipacmd); card 243 drivers/s390/net/qeth_l2_main.c iob = qeth_ipa_alloc_cmd(card, ipacmd, QETH_PROT_IPV4, card 249 drivers/s390/net/qeth_l2_main.c return qeth_send_ipa_cmd(card, iob, qeth_l2_send_setdelvlan_cb, NULL); card 255 drivers/s390/net/qeth_l2_main.c struct qeth_card *card = dev->ml_priv; card 257 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT_(card, 4, "aid:%d", vid); card 261 drivers/s390/net/qeth_l2_main.c return qeth_l2_send_setdelvlan(card, vid, IPA_CMD_SETVLAN); card 267 drivers/s390/net/qeth_l2_main.c struct qeth_card *card = dev->ml_priv; card 269 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT_(card, 4, "kid:%d", vid); card 273 drivers/s390/net/qeth_l2_main.c return qeth_l2_send_setdelvlan(card, vid, IPA_CMD_DELVLAN); card 276 drivers/s390/net/qeth_l2_main.c static void qeth_l2_stop_card(struct qeth_card *card) card 278 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT(card, 2, "stopcard"); card 280 drivers/s390/net/qeth_l2_main.c qeth_set_allowed_threads(card, 0, 1); card 282 drivers/s390/net/qeth_l2_main.c cancel_work_sync(&card->rx_mode_work); card 283 drivers/s390/net/qeth_l2_main.c qeth_l2_drain_rx_mode_cache(card); card 285 drivers/s390/net/qeth_l2_main.c if (card->state == CARD_STATE_SOFTSETUP) { card 286 drivers/s390/net/qeth_l2_main.c qeth_clear_ipacmd_list(card); card 287 drivers/s390/net/qeth_l2_main.c card->state = CARD_STATE_HARDSETUP; card 289 drivers/s390/net/qeth_l2_main.c if (card->state == CARD_STATE_HARDSETUP) { card 290 drivers/s390/net/qeth_l2_main.c qeth_drain_output_queues(card); card 291 drivers/s390/net/qeth_l2_main.c qeth_clear_working_pool_list(card); card 292 drivers/s390/net/qeth_l2_main.c card->state = CARD_STATE_DOWN; card 295 drivers/s390/net/qeth_l2_main.c qeth_qdio_clear_card(card, 0); card 296 drivers/s390/net/qeth_l2_main.c flush_workqueue(card->event_wq); card 297 drivers/s390/net/qeth_l2_main.c card->info.mac_bits &= ~QETH_LAYER2_MAC_REGISTERED; card 298 drivers/s390/net/qeth_l2_main.c card->info.promisc_mode = 0; card 301 drivers/s390/net/qeth_l2_main.c static int qeth_l2_process_inbound_buffer(struct qeth_card *card, card 312 drivers/s390/net/qeth_l2_main.c skb = qeth_core_get_next_skb(card, card 313 drivers/s390/net/qeth_l2_main.c &card->qdio.in_q->bufs[card->rx.b_index], card 314 drivers/s390/net/qeth_l2_main.c &card->rx.b_element, &card->rx.e_offset, &hdr); card 322 drivers/s390/net/qeth_l2_main.c qeth_rx_csum(card, skb, hdr->hdr.l2.flags[1]); card 324 drivers/s390/net/qeth_l2_main.c napi_gro_receive(&card->napi, skb); card 327 drivers/s390/net/qeth_l2_main.c if (IS_OSN(card)) { card 332 drivers/s390/net/qeth_l2_main.c card->osn_info.data_cb(skb); card 338 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT(card, 3, "inbunkno"); card 344 drivers/s390/net/qeth_l2_main.c QETH_CARD_STAT_INC(card, rx_packets); card 345 drivers/s390/net/qeth_l2_main.c QETH_CARD_STAT_ADD(card, rx_bytes, len); card 350 drivers/s390/net/qeth_l2_main.c static int qeth_l2_request_initial_mac(struct qeth_card *card) card 354 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT(card, 2, "l2reqmac"); card 357 drivers/s390/net/qeth_l2_main.c rc = qeth_vm_request_mac(card); card 361 drivers/s390/net/qeth_l2_main.c CARD_DEVID(card), rc); card 362 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT_(card, 2, "err%04x", rc); card 366 drivers/s390/net/qeth_l2_main.c if (!IS_OSN(card)) { card 367 drivers/s390/net/qeth_l2_main.c rc = qeth_setadpparms_change_macaddr(card); card 371 drivers/s390/net/qeth_l2_main.c CARD_DEVID(card), rc); card 372 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT_(card, 2, "1err%04x", rc); card 377 drivers/s390/net/qeth_l2_main.c if (IS_OSM(card) || IS_OSX(card)) card 379 drivers/s390/net/qeth_l2_main.c eth_hw_addr_random(card->dev); card 382 drivers/s390/net/qeth_l2_main.c QETH_CARD_HEX(card, 2, card->dev->dev_addr, card->dev->addr_len); card 386 drivers/s390/net/qeth_l2_main.c static void qeth_l2_register_dev_addr(struct qeth_card *card) card 388 drivers/s390/net/qeth_l2_main.c if (!is_valid_ether_addr(card->dev->dev_addr)) card 389 drivers/s390/net/qeth_l2_main.c qeth_l2_request_initial_mac(card); card 391 drivers/s390/net/qeth_l2_main.c if (!IS_OSN(card) && !qeth_l2_send_setmac(card, card->dev->dev_addr)) card 392 drivers/s390/net/qeth_l2_main.c card->info.mac_bits |= QETH_LAYER2_MAC_REGISTERED; card 397 drivers/s390/net/qeth_l2_main.c struct qeth_card *card = dev->ml_priv; card 399 drivers/s390/net/qeth_l2_main.c if (card->info.mac_bits & QETH_LAYER2_MAC_REGISTERED) card 402 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT(card, 4, "nomacadr"); card 409 drivers/s390/net/qeth_l2_main.c struct qeth_card *card = dev->ml_priv; card 413 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT(card, 3, "setmac"); card 415 drivers/s390/net/qeth_l2_main.c if (IS_OSM(card) || IS_OSX(card)) { card 416 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT(card, 3, "setmcTYP"); card 419 drivers/s390/net/qeth_l2_main.c QETH_CARD_HEX(card, 3, addr->sa_data, ETH_ALEN); card 425 drivers/s390/net/qeth_l2_main.c (card->info.mac_bits & QETH_LAYER2_MAC_REGISTERED)) card 429 drivers/s390/net/qeth_l2_main.c rc = qeth_l2_send_setmac(card, addr->sa_data); card 435 drivers/s390/net/qeth_l2_main.c if (card->info.mac_bits & QETH_LAYER2_MAC_REGISTERED) card 436 drivers/s390/net/qeth_l2_main.c qeth_l2_remove_mac(card, old_addr); card 437 drivers/s390/net/qeth_l2_main.c card->info.mac_bits |= QETH_LAYER2_MAC_REGISTERED; card 441 drivers/s390/net/qeth_l2_main.c static void qeth_l2_promisc_to_bridge(struct qeth_card *card, bool enable) card 446 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT(card, 3, "pmisc2br"); card 449 drivers/s390/net/qeth_l2_main.c if (card->options.sbp.reflect_promisc_primary) card 456 drivers/s390/net/qeth_l2_main.c rc = qeth_bridgeport_setrole(card, role); card 457 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT_(card, 2, "bpm%c%04x", enable ? '+' : '-', rc); card 459 drivers/s390/net/qeth_l2_main.c card->options.sbp.role = role; card 460 drivers/s390/net/qeth_l2_main.c card->info.promisc_mode = enable; card 464 drivers/s390/net/qeth_l2_main.c static void qeth_l2_set_promisc_mode(struct qeth_card *card) card 466 drivers/s390/net/qeth_l2_main.c bool enable = card->dev->flags & IFF_PROMISC; card 468 drivers/s390/net/qeth_l2_main.c if (card->info.promisc_mode == enable) card 471 drivers/s390/net/qeth_l2_main.c if (qeth_adp_supported(card, IPA_SETADP_SET_PROMISC_MODE)) { card 472 drivers/s390/net/qeth_l2_main.c qeth_setadp_promisc_mode(card, enable); card 474 drivers/s390/net/qeth_l2_main.c mutex_lock(&card->sbp_lock); card 475 drivers/s390/net/qeth_l2_main.c if (card->options.sbp.reflect_promisc) card 476 drivers/s390/net/qeth_l2_main.c qeth_l2_promisc_to_bridge(card, enable); card 477 drivers/s390/net/qeth_l2_main.c mutex_unlock(&card->sbp_lock); card 485 drivers/s390/net/qeth_l2_main.c static void qeth_l2_add_mac(struct qeth_card *card, struct netdev_hw_addr *ha) card 490 drivers/s390/net/qeth_l2_main.c hash_for_each_possible(card->mac_htable, mac, hnode, mac_hash) { card 504 drivers/s390/net/qeth_l2_main.c hash_add(card->mac_htable, &mac->hnode, mac_hash); card 509 drivers/s390/net/qeth_l2_main.c struct qeth_card *card = container_of(work, struct qeth_card, card 511 drivers/s390/net/qeth_l2_main.c struct net_device *dev = card->dev; card 518 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT(card, 3, "setmulti"); card 522 drivers/s390/net/qeth_l2_main.c qeth_l2_add_mac(card, ha); card 524 drivers/s390/net/qeth_l2_main.c qeth_l2_add_mac(card, ha); card 527 drivers/s390/net/qeth_l2_main.c hash_for_each_safe(card->mac_htable, i, tmp, mac, hnode) { card 530 drivers/s390/net/qeth_l2_main.c qeth_l2_remove_mac(card, mac->mac_addr); card 535 drivers/s390/net/qeth_l2_main.c rc = qeth_l2_write_mac(card, mac->mac_addr); card 548 drivers/s390/net/qeth_l2_main.c qeth_l2_set_promisc_mode(card); card 551 drivers/s390/net/qeth_l2_main.c static int qeth_l2_xmit_osn(struct qeth_card *card, struct sk_buff *skb, card 580 drivers/s390/net/qeth_l2_main.c rc = qeth_do_send_packet(card, queue, skb, hdr, hd_len, hd_len, card 591 drivers/s390/net/qeth_l2_main.c struct qeth_card *card = dev->ml_priv; card 598 drivers/s390/net/qeth_l2_main.c if (IS_IQD(card)) card 600 drivers/s390/net/qeth_l2_main.c queue = card->qdio.out_qs[txq]; card 602 drivers/s390/net/qeth_l2_main.c if (IS_OSN(card)) card 603 drivers/s390/net/qeth_l2_main.c rc = qeth_l2_xmit_osn(card, skb, queue); card 605 drivers/s390/net/qeth_l2_main.c rc = qeth_xmit(card, skb, queue, qeth_get_ip_version(skb), card 619 drivers/s390/net/qeth_l2_main.c struct qeth_card *card = dev->ml_priv; card 621 drivers/s390/net/qeth_l2_main.c if (IS_IQD(card)) card 625 drivers/s390/net/qeth_l2_main.c return qeth_get_priority_queue(card, skb); card 635 drivers/s390/net/qeth_l2_main.c struct qeth_card *card = dev_get_drvdata(&gdev->dev); card 638 drivers/s390/net/qeth_l2_main.c qeth_l2_vnicc_set_defaults(card); card 639 drivers/s390/net/qeth_l2_main.c mutex_init(&card->sbp_lock); card 647 drivers/s390/net/qeth_l2_main.c hash_init(card->mac_htable); card 648 drivers/s390/net/qeth_l2_main.c INIT_WORK(&card->rx_mode_work, qeth_l2_rx_mode_work); card 654 drivers/s390/net/qeth_l2_main.c struct qeth_card *card = dev_get_drvdata(&cgdev->dev); card 658 drivers/s390/net/qeth_l2_main.c qeth_set_allowed_threads(card, 0, 1); card 659 drivers/s390/net/qeth_l2_main.c wait_event(card->wait_q, qeth_threads_running(card, 0xffffffff) == 0); card 664 drivers/s390/net/qeth_l2_main.c cancel_work_sync(&card->close_dev_work); card 665 drivers/s390/net/qeth_l2_main.c if (qeth_netdev_is_registered(card->dev)) card 666 drivers/s390/net/qeth_l2_main.c unregister_netdev(card->dev); card 671 drivers/s390/net/qeth_l2_main.c struct qeth_card *card = dev->ml_priv; card 673 drivers/s390/net/qeth_l2_main.c schedule_work(&card->rx_mode_work); card 703 drivers/s390/net/qeth_l2_main.c static int qeth_l2_setup_netdev(struct qeth_card *card, bool carrier_ok) card 707 drivers/s390/net/qeth_l2_main.c if (IS_OSN(card)) { card 708 drivers/s390/net/qeth_l2_main.c card->dev->netdev_ops = &qeth_osn_netdev_ops; card 709 drivers/s390/net/qeth_l2_main.c card->dev->flags |= IFF_NOARP; card 713 drivers/s390/net/qeth_l2_main.c card->dev->needed_headroom = sizeof(struct qeth_hdr); card 714 drivers/s390/net/qeth_l2_main.c card->dev->netdev_ops = &qeth_l2_netdev_ops; card 715 drivers/s390/net/qeth_l2_main.c card->dev->priv_flags |= IFF_UNICAST_FLT; card 717 drivers/s390/net/qeth_l2_main.c if (IS_OSM(card)) { card 718 drivers/s390/net/qeth_l2_main.c card->dev->features |= NETIF_F_VLAN_CHALLENGED; card 720 drivers/s390/net/qeth_l2_main.c if (!IS_VM_NIC(card)) card 721 drivers/s390/net/qeth_l2_main.c card->dev->hw_features |= NETIF_F_HW_VLAN_CTAG_FILTER; card 722 drivers/s390/net/qeth_l2_main.c card->dev->features |= NETIF_F_HW_VLAN_CTAG_FILTER; card 725 drivers/s390/net/qeth_l2_main.c if (IS_OSD(card) && !IS_VM_NIC(card)) { card 726 drivers/s390/net/qeth_l2_main.c card->dev->features |= NETIF_F_SG; card 728 drivers/s390/net/qeth_l2_main.c if (qeth_is_supported(card, IPA_OUTBOUND_CHECKSUM)) { card 729 drivers/s390/net/qeth_l2_main.c card->dev->hw_features |= NETIF_F_IP_CSUM; card 730 drivers/s390/net/qeth_l2_main.c card->dev->vlan_features |= NETIF_F_IP_CSUM; card 733 drivers/s390/net/qeth_l2_main.c if (qeth_is_supported6(card, IPA_OUTBOUND_CHECKSUM_V6)) { card 734 drivers/s390/net/qeth_l2_main.c card->dev->hw_features |= NETIF_F_IPV6_CSUM; card 735 drivers/s390/net/qeth_l2_main.c card->dev->vlan_features |= NETIF_F_IPV6_CSUM; card 737 drivers/s390/net/qeth_l2_main.c if (qeth_is_supported(card, IPA_INBOUND_CHECKSUM) || card 738 drivers/s390/net/qeth_l2_main.c qeth_is_supported6(card, IPA_INBOUND_CHECKSUM_V6)) { card 739 drivers/s390/net/qeth_l2_main.c card->dev->hw_features |= NETIF_F_RXCSUM; card 740 drivers/s390/net/qeth_l2_main.c card->dev->vlan_features |= NETIF_F_RXCSUM; card 742 drivers/s390/net/qeth_l2_main.c if (qeth_is_supported(card, IPA_OUTBOUND_TSO)) { card 743 drivers/s390/net/qeth_l2_main.c card->dev->hw_features |= NETIF_F_TSO; card 744 drivers/s390/net/qeth_l2_main.c card->dev->vlan_features |= NETIF_F_TSO; card 746 drivers/s390/net/qeth_l2_main.c if (qeth_is_supported6(card, IPA_OUTBOUND_TSO)) { card 747 drivers/s390/net/qeth_l2_main.c card->dev->hw_features |= NETIF_F_TSO6; card 748 drivers/s390/net/qeth_l2_main.c card->dev->vlan_features |= NETIF_F_TSO6; card 751 drivers/s390/net/qeth_l2_main.c if (card->dev->hw_features & (NETIF_F_TSO | NETIF_F_TSO6)) { card 752 drivers/s390/net/qeth_l2_main.c card->dev->needed_headroom = sizeof(struct qeth_hdr_tso); card 753 drivers/s390/net/qeth_l2_main.c netif_set_gso_max_size(card->dev, card 758 drivers/s390/net/qeth_l2_main.c netif_napi_add(card->dev, &card->napi, qeth_poll, QETH_NAPI_WEIGHT); card 759 drivers/s390/net/qeth_l2_main.c rc = register_netdev(card->dev); card 761 drivers/s390/net/qeth_l2_main.c netif_carrier_on(card->dev); card 764 drivers/s390/net/qeth_l2_main.c card->dev->netdev_ops = NULL; card 768 drivers/s390/net/qeth_l2_main.c static int qeth_l2_start_ipassists(struct qeth_card *card) card 771 drivers/s390/net/qeth_l2_main.c if (qeth_set_access_ctrl_online(card, 0)) card 776 drivers/s390/net/qeth_l2_main.c static void qeth_l2_trace_features(struct qeth_card *card) card 779 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT(card, 2, "featuSBP"); card 780 drivers/s390/net/qeth_l2_main.c QETH_CARD_HEX(card, 2, &card->options.sbp.supported_funcs, card 781 drivers/s390/net/qeth_l2_main.c sizeof(card->options.sbp.supported_funcs)); card 783 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT(card, 2, "feaVNICC"); card 784 drivers/s390/net/qeth_l2_main.c QETH_CARD_HEX(card, 2, &card->options.vnicc.sup_chars, card 785 drivers/s390/net/qeth_l2_main.c sizeof(card->options.vnicc.sup_chars)); card 790 drivers/s390/net/qeth_l2_main.c struct qeth_card *card = dev_get_drvdata(&gdev->dev); card 791 drivers/s390/net/qeth_l2_main.c struct net_device *dev = card->dev; card 795 drivers/s390/net/qeth_l2_main.c mutex_lock(&card->discipline_mutex); card 796 drivers/s390/net/qeth_l2_main.c mutex_lock(&card->conf_mutex); card 797 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT(card, 2, "setonlin"); card 799 drivers/s390/net/qeth_l2_main.c rc = qeth_core_hardsetup_card(card, &carrier_ok); card 801 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT_(card, 2, "2err%04x", rc); card 806 drivers/s390/net/qeth_l2_main.c if (qeth_is_diagass_supported(card, QETH_DIAGS_CMD_TRAP)) { card 807 drivers/s390/net/qeth_l2_main.c if (card->info.hwtrap && card 808 drivers/s390/net/qeth_l2_main.c qeth_hw_trap(card, QETH_DIAGS_TRAP_ARM)) card 809 drivers/s390/net/qeth_l2_main.c card->info.hwtrap = 0; card 811 drivers/s390/net/qeth_l2_main.c card->info.hwtrap = 0; card 813 drivers/s390/net/qeth_l2_main.c mutex_lock(&card->sbp_lock); card 814 drivers/s390/net/qeth_l2_main.c qeth_bridgeport_query_support(card); card 815 drivers/s390/net/qeth_l2_main.c if (card->options.sbp.supported_funcs) card 816 drivers/s390/net/qeth_l2_main.c dev_info(&card->gdev->dev, card 818 drivers/s390/net/qeth_l2_main.c mutex_unlock(&card->sbp_lock); card 820 drivers/s390/net/qeth_l2_main.c qeth_l2_register_dev_addr(card); card 823 drivers/s390/net/qeth_l2_main.c qeth_l2_vnicc_init(card); card 825 drivers/s390/net/qeth_l2_main.c qeth_trace_features(card); card 826 drivers/s390/net/qeth_l2_main.c qeth_l2_trace_features(card); card 828 drivers/s390/net/qeth_l2_main.c qeth_l2_setup_bridgeport_attrs(card); card 830 drivers/s390/net/qeth_l2_main.c card->state = CARD_STATE_HARDSETUP; card 831 drivers/s390/net/qeth_l2_main.c qeth_print_status_message(card); card 834 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT(card, 2, "softsetp"); card 836 drivers/s390/net/qeth_l2_main.c if (IS_OSD(card) || IS_OSX(card)) { card 837 drivers/s390/net/qeth_l2_main.c rc = qeth_l2_start_ipassists(card); card 842 drivers/s390/net/qeth_l2_main.c rc = qeth_init_qdio_queues(card); card 844 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT_(card, 2, "6err%d", rc); card 848 drivers/s390/net/qeth_l2_main.c card->state = CARD_STATE_SOFTSETUP; card 850 drivers/s390/net/qeth_l2_main.c qeth_set_allowed_threads(card, 0xffffffff, 0); card 853 drivers/s390/net/qeth_l2_main.c rc = qeth_l2_setup_netdev(card, carrier_ok); card 866 drivers/s390/net/qeth_l2_main.c if (card->info.open_when_online) { card 867 drivers/s390/net/qeth_l2_main.c card->info.open_when_online = 0; card 874 drivers/s390/net/qeth_l2_main.c mutex_unlock(&card->conf_mutex); card 875 drivers/s390/net/qeth_l2_main.c mutex_unlock(&card->discipline_mutex); card 879 drivers/s390/net/qeth_l2_main.c qeth_l2_stop_card(card); card 880 drivers/s390/net/qeth_l2_main.c qeth_stop_channel(&card->data); card 881 drivers/s390/net/qeth_l2_main.c qeth_stop_channel(&card->write); card 882 drivers/s390/net/qeth_l2_main.c qeth_stop_channel(&card->read); card 883 drivers/s390/net/qeth_l2_main.c qdio_free(CARD_DDEV(card)); card 885 drivers/s390/net/qeth_l2_main.c mutex_unlock(&card->conf_mutex); card 886 drivers/s390/net/qeth_l2_main.c mutex_unlock(&card->discipline_mutex); card 893 drivers/s390/net/qeth_l2_main.c struct qeth_card *card = dev_get_drvdata(&cgdev->dev); card 896 drivers/s390/net/qeth_l2_main.c mutex_lock(&card->discipline_mutex); card 897 drivers/s390/net/qeth_l2_main.c mutex_lock(&card->conf_mutex); card 898 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT(card, 3, "setoffl"); card 900 drivers/s390/net/qeth_l2_main.c if ((!recovery_mode && card->info.hwtrap) || card->info.hwtrap == 2) { card 901 drivers/s390/net/qeth_l2_main.c qeth_hw_trap(card, QETH_DIAGS_TRAP_DISARM); card 902 drivers/s390/net/qeth_l2_main.c card->info.hwtrap = 1; card 906 drivers/s390/net/qeth_l2_main.c card->info.open_when_online = card->dev->flags & IFF_UP; card 907 drivers/s390/net/qeth_l2_main.c dev_close(card->dev); card 908 drivers/s390/net/qeth_l2_main.c netif_device_detach(card->dev); card 909 drivers/s390/net/qeth_l2_main.c netif_carrier_off(card->dev); card 912 drivers/s390/net/qeth_l2_main.c qeth_l2_stop_card(card); card 913 drivers/s390/net/qeth_l2_main.c rc = qeth_stop_channel(&card->data); card 914 drivers/s390/net/qeth_l2_main.c rc2 = qeth_stop_channel(&card->write); card 915 drivers/s390/net/qeth_l2_main.c rc3 = qeth_stop_channel(&card->read); card 919 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT_(card, 2, "1err%d", rc); card 920 drivers/s390/net/qeth_l2_main.c qdio_free(CARD_DDEV(card)); card 924 drivers/s390/net/qeth_l2_main.c mutex_unlock(&card->conf_mutex); card 925 drivers/s390/net/qeth_l2_main.c mutex_unlock(&card->discipline_mutex); card 936 drivers/s390/net/qeth_l2_main.c struct qeth_card *card; card 939 drivers/s390/net/qeth_l2_main.c card = (struct qeth_card *) ptr; card 940 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT(card, 2, "recover1"); card 941 drivers/s390/net/qeth_l2_main.c if (!qeth_do_run_thread(card, QETH_RECOVER_THREAD)) card 943 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT(card, 2, "recover2"); card 944 drivers/s390/net/qeth_l2_main.c dev_warn(&card->gdev->dev, card 946 drivers/s390/net/qeth_l2_main.c __qeth_l2_set_offline(card->gdev, 1); card 947 drivers/s390/net/qeth_l2_main.c rc = qeth_l2_set_online(card->gdev); card 949 drivers/s390/net/qeth_l2_main.c dev_info(&card->gdev->dev, card 952 drivers/s390/net/qeth_l2_main.c ccwgroup_set_offline(card->gdev); card 953 drivers/s390/net/qeth_l2_main.c dev_warn(&card->gdev->dev, "The qeth device driver " card 956 drivers/s390/net/qeth_l2_main.c qeth_clear_thread_start_bit(card, QETH_RECOVER_THREAD); card 957 drivers/s390/net/qeth_l2_main.c qeth_clear_thread_running_bit(card, QETH_RECOVER_THREAD); card 973 drivers/s390/net/qeth_l2_main.c static int qeth_l2_control_event(struct qeth_card *card, card 981 drivers/s390/net/qeth_l2_main.c qeth_bridge_state_change(card, cmd); card 986 drivers/s390/net/qeth_l2_main.c qeth_bridge_host_event(card, cmd); card 1006 drivers/s390/net/qeth_l2_main.c static void qeth_osn_assist_cb(struct qeth_card *card, card 1017 drivers/s390/net/qeth_l2_main.c struct qeth_card *card; card 1023 drivers/s390/net/qeth_l2_main.c card = dev->ml_priv; card 1024 drivers/s390/net/qeth_l2_main.c if (!card) card 1026 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT(card, 2, "osnsdmc"); card 1027 drivers/s390/net/qeth_l2_main.c if (!qeth_card_hw_is_reachable(card)) card 1030 drivers/s390/net/qeth_l2_main.c iob = qeth_alloc_cmd(&card->write, IPA_PDU_HEADER_SIZE + data_len, 1, card 1035 drivers/s390/net/qeth_l2_main.c qeth_prepare_ipa_cmd(card, iob, (u16) data_len); card 1038 drivers/s390/net/qeth_l2_main.c return qeth_send_ipa_cmd(card, iob, NULL, NULL); card 1046 drivers/s390/net/qeth_l2_main.c struct qeth_card *card; card 1052 drivers/s390/net/qeth_l2_main.c card = qeth_get_card_by_busid(bus_id); card 1053 drivers/s390/net/qeth_l2_main.c if (!card || !IS_OSN(card)) card 1055 drivers/s390/net/qeth_l2_main.c *dev = card->dev; card 1057 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT(card, 2, "osnreg"); card 1060 drivers/s390/net/qeth_l2_main.c card->osn_info.assist_cb = assist_cb; card 1061 drivers/s390/net/qeth_l2_main.c card->osn_info.data_cb = data_cb; card 1068 drivers/s390/net/qeth_l2_main.c struct qeth_card *card; card 1072 drivers/s390/net/qeth_l2_main.c card = dev->ml_priv; card 1073 drivers/s390/net/qeth_l2_main.c if (!card) card 1075 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT(card, 2, "osndereg"); card 1076 drivers/s390/net/qeth_l2_main.c card->osn_info.assist_cb = NULL; card 1077 drivers/s390/net/qeth_l2_main.c card->osn_info.data_cb = NULL; card 1101 drivers/s390/net/qeth_l2_main.c static void qeth_bridge_emit_host_event(struct qeth_card *card, card 1146 drivers/s390/net/qeth_l2_main.c kobject_uevent_env(&card->gdev->dev.kobj, KOBJ_CHANGE, env); card 1151 drivers/s390/net/qeth_l2_main.c struct qeth_card *card; card 1173 drivers/s390/net/qeth_l2_main.c mutex_lock(&data->card->sbp_lock); card 1174 drivers/s390/net/qeth_l2_main.c data->card->options.sbp.role = entry->role; card 1175 drivers/s390/net/qeth_l2_main.c mutex_unlock(&data->card->sbp_lock); card 1188 drivers/s390/net/qeth_l2_main.c kobject_uevent_env(&data->card->gdev->dev.kobj, card 1193 drivers/s390/net/qeth_l2_main.c static void qeth_bridge_state_change(struct qeth_card *card, card 1201 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT(card, 2, "brstchng"); card 1203 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT_(card, 2, "BPsz%04x", qports->entry_length); card 1210 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT(card, 2, "BPSalloc"); card 1214 drivers/s390/net/qeth_l2_main.c data->card = card; card 1217 drivers/s390/net/qeth_l2_main.c queue_work(card->event_wq, &data->worker); card 1222 drivers/s390/net/qeth_l2_main.c struct qeth_card *card; card 1233 drivers/s390/net/qeth_l2_main.c dev_info(&data->card->gdev->dev, card 1235 drivers/s390/net/qeth_l2_main.c data->card->dev->name, card 1241 drivers/s390/net/qeth_l2_main.c mutex_lock(&data->card->sbp_lock); card 1242 drivers/s390/net/qeth_l2_main.c data->card->options.sbp.hostnotification = 0; card 1243 drivers/s390/net/qeth_l2_main.c mutex_unlock(&data->card->sbp_lock); card 1244 drivers/s390/net/qeth_l2_main.c qeth_bridge_emit_host_event(data->card, anev_abort, card 1250 drivers/s390/net/qeth_l2_main.c qeth_bridge_emit_host_event(data->card, card 1258 drivers/s390/net/qeth_l2_main.c static void qeth_bridge_host_event(struct qeth_card *card, card 1266 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT(card, 2, "brhostev"); card 1272 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT_(card, 2, "BPHe%04x", card 1282 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT(card, 2, "BPHalloc"); card 1286 drivers/s390/net/qeth_l2_main.c data->card = card; card 1289 drivers/s390/net/qeth_l2_main.c queue_work(card->event_wq, &data->worker); card 1304 drivers/s390/net/qeth_l2_main.c static int qeth_bridgeport_makerc(struct qeth_card *card, card 1316 drivers/s390/net/qeth_l2_main.c if ((IS_IQD(card) && ipa_rc == IPA_RC_SUCCESS) || card 1317 drivers/s390/net/qeth_l2_main.c (!IS_IQD(card) && ipa_rc == sbp_rc)) { card 1329 drivers/s390/net/qeth_l2_main.c dev_err(&card->gdev->dev, card 1335 drivers/s390/net/qeth_l2_main.c dev_err(&card->gdev->dev, card 1343 drivers/s390/net/qeth_l2_main.c dev_err(&card->gdev->dev, card 1348 drivers/s390/net/qeth_l2_main.c dev_err(&card->gdev->dev, card 1358 drivers/s390/net/qeth_l2_main.c dev_err(&card->gdev->dev, card 1364 drivers/s390/net/qeth_l2_main.c dev_err(&card->gdev->dev, card 1370 drivers/s390/net/qeth_l2_main.c dev_err(&card->gdev->dev, card 1376 drivers/s390/net/qeth_l2_main.c dev_err(&card->gdev->dev, card 1396 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT_(card, 2, "SBPi%04x", ipa_rc); card 1397 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT_(card, 2, "SBPc%04x", sbp_rc); card 1402 drivers/s390/net/qeth_l2_main.c static struct qeth_cmd_buffer *qeth_sbp_build_cmd(struct qeth_card *card, card 1406 drivers/s390/net/qeth_l2_main.c enum qeth_ipa_cmds ipa_cmd = IS_IQD(card) ? IPA_CMD_SETBRIDGEPORT_IQD : card 1411 drivers/s390/net/qeth_l2_main.c iob = qeth_ipa_alloc_cmd(card, ipa_cmd, QETH_PROT_NONE, card 1426 drivers/s390/net/qeth_l2_main.c static int qeth_bridgeport_query_support_cb(struct qeth_card *card, card 1433 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT(card, 2, "brqsupcb"); card 1434 drivers/s390/net/qeth_l2_main.c rc = qeth_bridgeport_makerc(card, cmd); card 1450 drivers/s390/net/qeth_l2_main.c static void qeth_bridgeport_query_support(struct qeth_card *card) card 1455 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT(card, 2, "brqsuppo"); card 1456 drivers/s390/net/qeth_l2_main.c iob = qeth_sbp_build_cmd(card, IPA_SBP_QUERY_COMMANDS_SUPPORTED, card 1461 drivers/s390/net/qeth_l2_main.c if (qeth_send_ipa_cmd(card, iob, qeth_bridgeport_query_support_cb, card 1463 drivers/s390/net/qeth_l2_main.c card->options.sbp.role = QETH_SBP_ROLE_NONE; card 1464 drivers/s390/net/qeth_l2_main.c card->options.sbp.supported_funcs = 0; card 1467 drivers/s390/net/qeth_l2_main.c card->options.sbp.supported_funcs = cbctl.data.supported; card 1470 drivers/s390/net/qeth_l2_main.c static int qeth_bridgeport_query_ports_cb(struct qeth_card *card, card 1478 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT(card, 2, "brqprtcb"); card 1479 drivers/s390/net/qeth_l2_main.c rc = qeth_bridgeport_makerc(card, cmd); card 1484 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT_(card, 2, "SBPs%04x", qports->entry_length); card 1507 drivers/s390/net/qeth_l2_main.c int qeth_bridgeport_query_ports(struct qeth_card *card, card 1520 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT(card, 2, "brqports"); card 1521 drivers/s390/net/qeth_l2_main.c if (!(card->options.sbp.supported_funcs & IPA_SBP_QUERY_BRIDGE_PORTS)) card 1523 drivers/s390/net/qeth_l2_main.c iob = qeth_sbp_build_cmd(card, IPA_SBP_QUERY_BRIDGE_PORTS, 0); card 1527 drivers/s390/net/qeth_l2_main.c return qeth_send_ipa_cmd(card, iob, qeth_bridgeport_query_ports_cb, card 1531 drivers/s390/net/qeth_l2_main.c static int qeth_bridgeport_set_cb(struct qeth_card *card, card 1536 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT(card, 2, "brsetrcb"); card 1537 drivers/s390/net/qeth_l2_main.c return qeth_bridgeport_makerc(card, cmd); card 1547 drivers/s390/net/qeth_l2_main.c int qeth_bridgeport_setrole(struct qeth_card *card, enum qeth_sbp_roles role) card 1553 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT(card, 2, "brsetrol"); card 1568 drivers/s390/net/qeth_l2_main.c if (!(card->options.sbp.supported_funcs & setcmd)) card 1570 drivers/s390/net/qeth_l2_main.c iob = qeth_sbp_build_cmd(card, setcmd, cmdlength); card 1574 drivers/s390/net/qeth_l2_main.c return qeth_send_ipa_cmd(card, iob, qeth_bridgeport_set_cb, NULL); card 1583 drivers/s390/net/qeth_l2_main.c static int qeth_anset_makerc(struct qeth_card *card, int pnso_rc, u16 response) card 1596 drivers/s390/net/qeth_l2_main.c dev_err(&card->gdev->dev, card 1609 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT_(card, 2, "SBPp%04x", pnso_rc); card 1610 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT_(card, 2, "SBPr%04x", response); card 1618 drivers/s390/net/qeth_l2_main.c struct qeth_card *card = (struct qeth_card *)priv; card 1631 drivers/s390/net/qeth_l2_main.c qeth_bridge_emit_host_event(card, anev_reg_unreg, code, card 1646 drivers/s390/net/qeth_l2_main.c int qeth_bridgeport_an_set(struct qeth_card *card, int enable) card 1653 drivers/s390/net/qeth_l2_main.c if (!card) card 1655 drivers/s390/net/qeth_l2_main.c if (!card->options.sbp.supported_funcs) card 1657 drivers/s390/net/qeth_l2_main.c ddev = CARD_DDEV(card); card 1661 drivers/s390/net/qeth_l2_main.c qeth_bridge_emit_host_event(card, anev_reset, 0, NULL, NULL); card 1663 drivers/s390/net/qeth_l2_main.c qeth_bridgeport_an_set_cb, card); card 1666 drivers/s390/net/qeth_l2_main.c return qeth_anset_makerc(card, rc, response); card 1669 drivers/s390/net/qeth_l2_main.c static bool qeth_bridgeport_is_in_use(struct qeth_card *card) card 1671 drivers/s390/net/qeth_l2_main.c return (card->options.sbp.role || card->options.sbp.reflect_promisc || card 1672 drivers/s390/net/qeth_l2_main.c card->options.sbp.hostnotification); card 1678 drivers/s390/net/qeth_l2_main.c static int qeth_l2_vnicc_makerc(struct qeth_card *card, u16 ipa_rc) card 1705 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT_(card, 2, "err%04x", ipa_rc); card 1720 drivers/s390/net/qeth_l2_main.c static int qeth_l2_vnicc_request_cb(struct qeth_card *card, card 1730 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT(card, 2, "vniccrcb"); card 1732 drivers/s390/net/qeth_l2_main.c return qeth_l2_vnicc_makerc(card, cmd->hdr.return_code); card 1734 drivers/s390/net/qeth_l2_main.c card->options.vnicc.sup_chars = rep->vnicc_cmds.supported; card 1735 drivers/s390/net/qeth_l2_main.c card->options.vnicc.cur_chars = rep->vnicc_cmds.enabled; card 1745 drivers/s390/net/qeth_l2_main.c static struct qeth_cmd_buffer *qeth_l2_vnicc_build_cmd(struct qeth_card *card, card 1752 drivers/s390/net/qeth_l2_main.c iob = qeth_ipa_alloc_cmd(card, IPA_CMD_VNICC, QETH_PROT_NONE, card 1765 drivers/s390/net/qeth_l2_main.c static int qeth_l2_vnicc_query_chars(struct qeth_card *card) card 1769 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT(card, 2, "vniccqch"); card 1770 drivers/s390/net/qeth_l2_main.c iob = qeth_l2_vnicc_build_cmd(card, IPA_VNICC_QUERY_CHARS, 0); card 1774 drivers/s390/net/qeth_l2_main.c return qeth_send_ipa_cmd(card, iob, qeth_l2_vnicc_request_cb, NULL); card 1778 drivers/s390/net/qeth_l2_main.c static int qeth_l2_vnicc_query_cmds(struct qeth_card *card, u32 vnic_char, card 1784 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT(card, 2, "vniccqcm"); card 1785 drivers/s390/net/qeth_l2_main.c iob = qeth_l2_vnicc_build_cmd(card, IPA_VNICC_QUERY_CMDS, card 1795 drivers/s390/net/qeth_l2_main.c return qeth_send_ipa_cmd(card, iob, qeth_l2_vnicc_request_cb, &cbctl); card 1799 drivers/s390/net/qeth_l2_main.c static int qeth_l2_vnicc_set_char(struct qeth_card *card, u32 vnic_char, card 1804 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT(card, 2, "vniccedc"); card 1805 drivers/s390/net/qeth_l2_main.c iob = qeth_l2_vnicc_build_cmd(card, cmd, VNICC_DATA_SIZEOF(set_char)); card 1811 drivers/s390/net/qeth_l2_main.c return qeth_send_ipa_cmd(card, iob, qeth_l2_vnicc_request_cb, NULL); card 1815 drivers/s390/net/qeth_l2_main.c static int qeth_l2_vnicc_getset_timeout(struct qeth_card *card, u32 vnicc, card 1822 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT(card, 2, "vniccgst"); card 1823 drivers/s390/net/qeth_l2_main.c iob = qeth_l2_vnicc_build_cmd(card, cmd, card 1838 drivers/s390/net/qeth_l2_main.c return qeth_send_ipa_cmd(card, iob, qeth_l2_vnicc_request_cb, &cbctl); card 1842 drivers/s390/net/qeth_l2_main.c int qeth_l2_vnicc_set_state(struct qeth_card *card, u32 vnicc, bool state) card 1847 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT(card, 2, "vniccsch"); card 1850 drivers/s390/net/qeth_l2_main.c if (!(card->options.vnicc.sup_chars & vnicc) || card 1851 drivers/s390/net/qeth_l2_main.c !(card->options.vnicc.set_char_sup & vnicc)) card 1854 drivers/s390/net/qeth_l2_main.c if (qeth_bridgeport_is_in_use(card)) card 1860 drivers/s390/net/qeth_l2_main.c card->options.vnicc.wanted_chars |= vnicc; card 1863 drivers/s390/net/qeth_l2_main.c card->options.vnicc.wanted_chars &= ~vnicc; card 1867 drivers/s390/net/qeth_l2_main.c if (card->options.vnicc.cur_chars == card->options.vnicc.wanted_chars) card 1871 drivers/s390/net/qeth_l2_main.c if (!qeth_card_hw_is_reachable(card)) { card 1873 drivers/s390/net/qeth_l2_main.c card->options.vnicc.cur_chars |= vnicc; card 1875 drivers/s390/net/qeth_l2_main.c card->options.vnicc.cur_chars &= ~vnicc; card 1879 drivers/s390/net/qeth_l2_main.c rc = qeth_l2_vnicc_set_char(card, vnicc, cmd); card 1881 drivers/s390/net/qeth_l2_main.c card->options.vnicc.wanted_chars = card 1882 drivers/s390/net/qeth_l2_main.c card->options.vnicc.cur_chars; card 1886 drivers/s390/net/qeth_l2_main.c card->options.vnicc.rx_bcast_enabled = true; card 1888 drivers/s390/net/qeth_l2_main.c qeth_l2_vnicc_recover_timeout(card, vnicc, card 1889 drivers/s390/net/qeth_l2_main.c &card->options.vnicc.learning_timeout); card 1896 drivers/s390/net/qeth_l2_main.c int qeth_l2_vnicc_get_state(struct qeth_card *card, u32 vnicc, bool *state) card 1900 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT(card, 2, "vniccgch"); card 1903 drivers/s390/net/qeth_l2_main.c if (!(card->options.vnicc.sup_chars & vnicc)) card 1906 drivers/s390/net/qeth_l2_main.c if (qeth_bridgeport_is_in_use(card)) card 1910 drivers/s390/net/qeth_l2_main.c if (qeth_card_hw_is_reachable(card)) card 1911 drivers/s390/net/qeth_l2_main.c rc = qeth_l2_vnicc_query_chars(card); card 1913 drivers/s390/net/qeth_l2_main.c *state = (card->options.vnicc.cur_chars & vnicc) ? true : false; card 1920 drivers/s390/net/qeth_l2_main.c int qeth_l2_vnicc_set_timeout(struct qeth_card *card, u32 timeout) card 1924 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT(card, 2, "vniccsto"); card 1927 drivers/s390/net/qeth_l2_main.c if (!(card->options.vnicc.sup_chars & QETH_VNICC_LEARNING) || card 1928 drivers/s390/net/qeth_l2_main.c !(card->options.vnicc.getset_timeout_sup & QETH_VNICC_LEARNING)) card 1931 drivers/s390/net/qeth_l2_main.c if (qeth_bridgeport_is_in_use(card)) card 1935 drivers/s390/net/qeth_l2_main.c if (card->options.vnicc.learning_timeout == timeout) card 1939 drivers/s390/net/qeth_l2_main.c if (!qeth_card_hw_is_reachable(card)) { card 1940 drivers/s390/net/qeth_l2_main.c card->options.vnicc.learning_timeout = timeout; card 1945 drivers/s390/net/qeth_l2_main.c rc = qeth_l2_vnicc_getset_timeout(card, QETH_VNICC_LEARNING, card 1948 drivers/s390/net/qeth_l2_main.c card->options.vnicc.learning_timeout = timeout; card 1956 drivers/s390/net/qeth_l2_main.c int qeth_l2_vnicc_get_timeout(struct qeth_card *card, u32 *timeout) card 1960 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT(card, 2, "vniccgto"); card 1963 drivers/s390/net/qeth_l2_main.c if (!(card->options.vnicc.sup_chars & QETH_VNICC_LEARNING) || card 1964 drivers/s390/net/qeth_l2_main.c !(card->options.vnicc.getset_timeout_sup & QETH_VNICC_LEARNING)) card 1967 drivers/s390/net/qeth_l2_main.c if (qeth_bridgeport_is_in_use(card)) card 1971 drivers/s390/net/qeth_l2_main.c *timeout = card->options.vnicc.learning_timeout; card 1972 drivers/s390/net/qeth_l2_main.c if (qeth_card_hw_is_reachable(card)) card 1973 drivers/s390/net/qeth_l2_main.c rc = qeth_l2_vnicc_getset_timeout(card, QETH_VNICC_LEARNING, card 1981 drivers/s390/net/qeth_l2_main.c bool qeth_l2_vnicc_is_in_use(struct qeth_card *card) card 1983 drivers/s390/net/qeth_l2_main.c if (!card->options.vnicc.sup_chars) card 1988 drivers/s390/net/qeth_l2_main.c if (card->options.vnicc.cur_chars == QETH_VNICC_DEFAULT) { card 1989 drivers/s390/net/qeth_l2_main.c if (!card->options.vnicc.rx_bcast_enabled || card 1990 drivers/s390/net/qeth_l2_main.c !qeth_card_hw_is_reachable(card)) card 1997 drivers/s390/net/qeth_l2_main.c static bool qeth_l2_vnicc_recover_timeout(struct qeth_card *card, u32 vnicc, card 2000 drivers/s390/net/qeth_l2_main.c if (card->options.vnicc.sup_chars & vnicc && card 2001 drivers/s390/net/qeth_l2_main.c card->options.vnicc.getset_timeout_sup & vnicc && card 2002 drivers/s390/net/qeth_l2_main.c !qeth_l2_vnicc_getset_timeout(card, vnicc, IPA_VNICC_SET_TIMEOUT, card 2010 drivers/s390/net/qeth_l2_main.c static bool qeth_l2_vnicc_recover_char(struct qeth_card *card, u32 vnicc, card 2015 drivers/s390/net/qeth_l2_main.c if (card->options.vnicc.sup_chars & vnicc && card 2016 drivers/s390/net/qeth_l2_main.c card->options.vnicc.set_char_sup & vnicc && card 2017 drivers/s390/net/qeth_l2_main.c !qeth_l2_vnicc_set_char(card, vnicc, cmd)) card 2019 drivers/s390/net/qeth_l2_main.c card->options.vnicc.wanted_chars &= ~vnicc; card 2020 drivers/s390/net/qeth_l2_main.c card->options.vnicc.wanted_chars |= QETH_VNICC_DEFAULT & vnicc; card 2025 drivers/s390/net/qeth_l2_main.c static void qeth_l2_vnicc_init(struct qeth_card *card) card 2027 drivers/s390/net/qeth_l2_main.c u32 *timeout = &card->options.vnicc.learning_timeout; card 2033 drivers/s390/net/qeth_l2_main.c QETH_CARD_TEXT(card, 2, "vniccini"); card 2035 drivers/s390/net/qeth_l2_main.c card->options.vnicc.rx_bcast_enabled = 0; card 2037 drivers/s390/net/qeth_l2_main.c if (qeth_l2_vnicc_query_chars(card)) { card 2038 drivers/s390/net/qeth_l2_main.c if (card->options.vnicc.wanted_chars != QETH_VNICC_DEFAULT || card 2040 drivers/s390/net/qeth_l2_main.c dev_err(&card->gdev->dev, "Configuring the VNIC characteristics failed\n"); card 2042 drivers/s390/net/qeth_l2_main.c card->options.vnicc.sup_chars = 0; card 2043 drivers/s390/net/qeth_l2_main.c card->options.vnicc.cur_chars = 0; card 2044 drivers/s390/net/qeth_l2_main.c card->options.vnicc.wanted_chars = QETH_VNICC_DEFAULT; card 2048 drivers/s390/net/qeth_l2_main.c chars_tmp = card->options.vnicc.sup_chars; card 2049 drivers/s390/net/qeth_l2_main.c chars_len = sizeof(card->options.vnicc.sup_chars) * BITS_PER_BYTE; card 2052 drivers/s390/net/qeth_l2_main.c if (qeth_l2_vnicc_query_cmds(card, vnicc, &sup_cmds)) { card 2058 drivers/s390/net/qeth_l2_main.c card->options.vnicc.getset_timeout_sup |= vnicc; card 2060 drivers/s390/net/qeth_l2_main.c card->options.vnicc.getset_timeout_sup &= ~vnicc; card 2063 drivers/s390/net/qeth_l2_main.c card->options.vnicc.set_char_sup |= vnicc; card 2065 drivers/s390/net/qeth_l2_main.c card->options.vnicc.set_char_sup &= ~vnicc; card 2068 drivers/s390/net/qeth_l2_main.c error |= qeth_l2_vnicc_recover_timeout(card, QETH_VNICC_LEARNING, card 2071 drivers/s390/net/qeth_l2_main.c chars_tmp = card->options.vnicc.wanted_chars ^ card 2072 drivers/s390/net/qeth_l2_main.c card->options.vnicc.cur_chars; card 2073 drivers/s390/net/qeth_l2_main.c chars_len = sizeof(card->options.vnicc.wanted_chars) * BITS_PER_BYTE; card 2076 drivers/s390/net/qeth_l2_main.c enable = card->options.vnicc.wanted_chars & vnicc; card 2077 drivers/s390/net/qeth_l2_main.c error |= qeth_l2_vnicc_recover_char(card, vnicc, enable); card 2080 drivers/s390/net/qeth_l2_main.c dev_err(&card->gdev->dev, "Configuring the VNIC characteristics failed\n"); card 2084 drivers/s390/net/qeth_l2_main.c static void qeth_l2_vnicc_set_defaults(struct qeth_card *card) card 2087 drivers/s390/net/qeth_l2_main.c card->options.vnicc.sup_chars = QETH_VNICC_ALL; card 2088 drivers/s390/net/qeth_l2_main.c card->options.vnicc.cur_chars = QETH_VNICC_DEFAULT; card 2089 drivers/s390/net/qeth_l2_main.c card->options.vnicc.learning_timeout = QETH_VNICC_DEFAULT_TIMEOUT; card 2091 drivers/s390/net/qeth_l2_main.c card->options.vnicc.set_char_sup = QETH_VNICC_ALL; card 2092 drivers/s390/net/qeth_l2_main.c card->options.vnicc.getset_timeout_sup = QETH_VNICC_LEARNING; card 2094 drivers/s390/net/qeth_l2_main.c card->options.vnicc.wanted_chars = QETH_VNICC_DEFAULT; card 16 drivers/s390/net/qeth_l2_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 21 drivers/s390/net/qeth_l2_sys.c if (!card) card 24 drivers/s390/net/qeth_l2_sys.c if (qeth_l2_vnicc_is_in_use(card)) card 27 drivers/s390/net/qeth_l2_sys.c mutex_lock(&card->sbp_lock); card 28 drivers/s390/net/qeth_l2_sys.c if (qeth_card_hw_is_reachable(card) && card 29 drivers/s390/net/qeth_l2_sys.c card->options.sbp.supported_funcs) card 30 drivers/s390/net/qeth_l2_sys.c rc = qeth_bridgeport_query_ports(card, card 31 drivers/s390/net/qeth_l2_sys.c &card->options.sbp.role, &state); card 45 drivers/s390/net/qeth_l2_sys.c switch (card->options.sbp.role) { card 56 drivers/s390/net/qeth_l2_sys.c QETH_CARD_TEXT_(card, 2, "SBP%02x:%02x", card 57 drivers/s390/net/qeth_l2_sys.c card->options.sbp.role, state); card 61 drivers/s390/net/qeth_l2_sys.c mutex_unlock(&card->sbp_lock); card 69 drivers/s390/net/qeth_l2_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 71 drivers/s390/net/qeth_l2_sys.c if (qeth_l2_vnicc_is_in_use(card)) card 80 drivers/s390/net/qeth_l2_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 84 drivers/s390/net/qeth_l2_sys.c if (!card) card 95 drivers/s390/net/qeth_l2_sys.c mutex_lock(&card->conf_mutex); card 96 drivers/s390/net/qeth_l2_sys.c mutex_lock(&card->sbp_lock); card 98 drivers/s390/net/qeth_l2_sys.c if (qeth_l2_vnicc_is_in_use(card)) card 100 drivers/s390/net/qeth_l2_sys.c else if (card->options.sbp.reflect_promisc) card 103 drivers/s390/net/qeth_l2_sys.c else if (qeth_card_hw_is_reachable(card)) { card 104 drivers/s390/net/qeth_l2_sys.c rc = qeth_bridgeport_setrole(card, role); card 106 drivers/s390/net/qeth_l2_sys.c card->options.sbp.role = role; card 108 drivers/s390/net/qeth_l2_sys.c card->options.sbp.role = role; card 110 drivers/s390/net/qeth_l2_sys.c mutex_unlock(&card->sbp_lock); card 111 drivers/s390/net/qeth_l2_sys.c mutex_unlock(&card->conf_mutex); card 122 drivers/s390/net/qeth_l2_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 124 drivers/s390/net/qeth_l2_sys.c if (qeth_l2_vnicc_is_in_use(card)) card 136 drivers/s390/net/qeth_l2_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 139 drivers/s390/net/qeth_l2_sys.c if (!card) card 142 drivers/s390/net/qeth_l2_sys.c if (qeth_l2_vnicc_is_in_use(card)) card 145 drivers/s390/net/qeth_l2_sys.c enabled = card->options.sbp.hostnotification; card 153 drivers/s390/net/qeth_l2_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 157 drivers/s390/net/qeth_l2_sys.c if (!card) card 164 drivers/s390/net/qeth_l2_sys.c mutex_lock(&card->conf_mutex); card 165 drivers/s390/net/qeth_l2_sys.c mutex_lock(&card->sbp_lock); card 167 drivers/s390/net/qeth_l2_sys.c if (qeth_l2_vnicc_is_in_use(card)) card 169 drivers/s390/net/qeth_l2_sys.c else if (qeth_card_hw_is_reachable(card)) { card 170 drivers/s390/net/qeth_l2_sys.c rc = qeth_bridgeport_an_set(card, enable); card 172 drivers/s390/net/qeth_l2_sys.c card->options.sbp.hostnotification = enable; card 174 drivers/s390/net/qeth_l2_sys.c card->options.sbp.hostnotification = enable; card 176 drivers/s390/net/qeth_l2_sys.c mutex_unlock(&card->sbp_lock); card 177 drivers/s390/net/qeth_l2_sys.c mutex_unlock(&card->conf_mutex); card 189 drivers/s390/net/qeth_l2_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 192 drivers/s390/net/qeth_l2_sys.c if (!card) card 195 drivers/s390/net/qeth_l2_sys.c if (qeth_l2_vnicc_is_in_use(card)) card 198 drivers/s390/net/qeth_l2_sys.c if (card->options.sbp.reflect_promisc) { card 199 drivers/s390/net/qeth_l2_sys.c if (card->options.sbp.reflect_promisc_primary) card 212 drivers/s390/net/qeth_l2_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 216 drivers/s390/net/qeth_l2_sys.c if (!card) card 231 drivers/s390/net/qeth_l2_sys.c mutex_lock(&card->conf_mutex); card 232 drivers/s390/net/qeth_l2_sys.c mutex_lock(&card->sbp_lock); card 234 drivers/s390/net/qeth_l2_sys.c if (qeth_l2_vnicc_is_in_use(card)) card 236 drivers/s390/net/qeth_l2_sys.c else if (card->options.sbp.role != QETH_SBP_ROLE_NONE) card 239 drivers/s390/net/qeth_l2_sys.c card->options.sbp.reflect_promisc = enable; card 240 drivers/s390/net/qeth_l2_sys.c card->options.sbp.reflect_promisc_primary = primary; card 244 drivers/s390/net/qeth_l2_sys.c mutex_unlock(&card->sbp_lock); card 245 drivers/s390/net/qeth_l2_sys.c mutex_unlock(&card->conf_mutex); card 272 drivers/s390/net/qeth_l2_sys.c void qeth_l2_setup_bridgeport_attrs(struct qeth_card *card) card 276 drivers/s390/net/qeth_l2_sys.c if (!card) card 278 drivers/s390/net/qeth_l2_sys.c if (!card->options.sbp.supported_funcs) card 281 drivers/s390/net/qeth_l2_sys.c mutex_lock(&card->sbp_lock); card 282 drivers/s390/net/qeth_l2_sys.c if (!card->options.sbp.reflect_promisc && card 283 drivers/s390/net/qeth_l2_sys.c card->options.sbp.role != QETH_SBP_ROLE_NONE) { card 285 drivers/s390/net/qeth_l2_sys.c qeth_bridgeport_setrole(card, card->options.sbp.role); card 287 drivers/s390/net/qeth_l2_sys.c qeth_bridgeport_query_ports(card, card 288 drivers/s390/net/qeth_l2_sys.c &card->options.sbp.role, NULL); card 290 drivers/s390/net/qeth_l2_sys.c if (card->options.sbp.hostnotification) { card 291 drivers/s390/net/qeth_l2_sys.c rc = qeth_bridgeport_an_set(card, 1); card 293 drivers/s390/net/qeth_l2_sys.c card->options.sbp.hostnotification = 0; card 295 drivers/s390/net/qeth_l2_sys.c qeth_bridgeport_an_set(card, 0); card 297 drivers/s390/net/qeth_l2_sys.c mutex_unlock(&card->sbp_lock); card 327 drivers/s390/net/qeth_l2_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 331 drivers/s390/net/qeth_l2_sys.c if (!card) card 334 drivers/s390/net/qeth_l2_sys.c rc = qeth_l2_vnicc_get_timeout(card, &timeout); card 347 drivers/s390/net/qeth_l2_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 351 drivers/s390/net/qeth_l2_sys.c if (!card) card 358 drivers/s390/net/qeth_l2_sys.c mutex_lock(&card->conf_mutex); card 359 drivers/s390/net/qeth_l2_sys.c rc = qeth_l2_vnicc_set_timeout(card, timeout); card 360 drivers/s390/net/qeth_l2_sys.c mutex_unlock(&card->conf_mutex); card 368 drivers/s390/net/qeth_l2_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 373 drivers/s390/net/qeth_l2_sys.c if (!card) card 377 drivers/s390/net/qeth_l2_sys.c rc = qeth_l2_vnicc_get_state(card, vnicc, &state); card 391 drivers/s390/net/qeth_l2_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 396 drivers/s390/net/qeth_l2_sys.c if (!card) card 403 drivers/s390/net/qeth_l2_sys.c mutex_lock(&card->conf_mutex); card 404 drivers/s390/net/qeth_l2_sys.c rc = qeth_l2_vnicc_set_state(card, vnicc, state); card 405 drivers/s390/net/qeth_l2_sys.c mutex_unlock(&card->conf_mutex); card 124 drivers/s390/net/qeth_l3.h int qeth_l3_del_ipato_entry(struct qeth_card *card, card 127 drivers/s390/net/qeth_l3.h void qeth_l3_update_ipato(struct qeth_card *card); card 128 drivers/s390/net/qeth_l3.h int qeth_l3_modify_hsuid(struct qeth_card *card, bool add); card 129 drivers/s390/net/qeth_l3.h int qeth_l3_modify_rxip_vipa(struct qeth_card *card, bool add, const u8 *ip, card 76 drivers/s390/net/qeth_l3_main.c static struct qeth_ipaddr *qeth_l3_find_addr_by_ip(struct qeth_card *card, card 83 drivers/s390/net/qeth_l3_main.c hash_for_each_possible(card->ip_mc_htable, addr, hnode, key) card 87 drivers/s390/net/qeth_l3_main.c hash_for_each_possible(card->ip_htable, addr, hnode, key) card 108 drivers/s390/net/qeth_l3_main.c static bool qeth_l3_is_addr_covered_by_ipato(struct qeth_card *card, card 116 drivers/s390/net/qeth_l3_main.c if (!card->ipato.enabled) card 123 drivers/s390/net/qeth_l3_main.c list_for_each_entry(ipatoe, &card->ipato.entries, entry) { card 139 drivers/s390/net/qeth_l3_main.c if ((addr->proto == QETH_PROT_IPV4) && card->ipato.invert4) card 141 drivers/s390/net/qeth_l3_main.c else if ((addr->proto == QETH_PROT_IPV6) && card->ipato.invert6) card 147 drivers/s390/net/qeth_l3_main.c static int qeth_l3_delete_ip(struct qeth_card *card, card 154 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 2, "delrxip"); card 156 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 2, "delvipa"); card 158 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 2, "delip"); card 161 drivers/s390/net/qeth_l3_main.c QETH_CARD_HEX(card, 4, &tmp_addr->u.a4.addr, 4); card 163 drivers/s390/net/qeth_l3_main.c QETH_CARD_HEX(card, 4, &tmp_addr->u.a6.addr, 8); card 164 drivers/s390/net/qeth_l3_main.c QETH_CARD_HEX(card, 4, ((char *)&tmp_addr->u.a6.addr) + 8, 8); card 167 drivers/s390/net/qeth_l3_main.c addr = qeth_l3_find_addr_by_ip(card, tmp_addr); card 177 drivers/s390/net/qeth_l3_main.c if (qeth_card_hw_is_reachable(card)) card 178 drivers/s390/net/qeth_l3_main.c rc = qeth_l3_deregister_addr_entry(card, addr); card 186 drivers/s390/net/qeth_l3_main.c static int qeth_l3_add_ip(struct qeth_card *card, struct qeth_ipaddr *tmp_addr) card 193 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 2, "addrxip"); card 195 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 2, "addvipa"); card 197 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 2, "addip"); card 200 drivers/s390/net/qeth_l3_main.c QETH_CARD_HEX(card, 4, &tmp_addr->u.a4.addr, 4); card 202 drivers/s390/net/qeth_l3_main.c QETH_CARD_HEX(card, 4, &tmp_addr->u.a6.addr, 8); card 203 drivers/s390/net/qeth_l3_main.c QETH_CARD_HEX(card, 4, ((char *)&tmp_addr->u.a6.addr) + 8, 8); card 206 drivers/s390/net/qeth_l3_main.c addr = qeth_l3_find_addr_by_ip(card, tmp_addr); card 216 drivers/s390/net/qeth_l3_main.c dev_warn(&card->gdev->dev, card 227 drivers/s390/net/qeth_l3_main.c if (qeth_l3_is_addr_covered_by_ipato(card, addr)) { card 228 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 2, "tkovaddr"); card 231 drivers/s390/net/qeth_l3_main.c hash_add(card->ip_htable, &addr->hnode, card 234 drivers/s390/net/qeth_l3_main.c if (!qeth_card_hw_is_reachable(card)) { card 248 drivers/s390/net/qeth_l3_main.c mutex_unlock(&card->ip_lock); card 249 drivers/s390/net/qeth_l3_main.c rc = qeth_l3_register_addr_entry(card, addr); card 250 drivers/s390/net/qeth_l3_main.c mutex_lock(&card->ip_lock); card 253 drivers/s390/net/qeth_l3_main.c rc = qeth_l3_register_addr_entry(card, addr); card 258 drivers/s390/net/qeth_l3_main.c qeth_l3_deregister_addr_entry(card, addr); card 270 drivers/s390/net/qeth_l3_main.c static int qeth_l3_modify_ip(struct qeth_card *card, struct qeth_ipaddr *addr, card 275 drivers/s390/net/qeth_l3_main.c mutex_lock(&card->ip_lock); card 276 drivers/s390/net/qeth_l3_main.c rc = add ? qeth_l3_add_ip(card, addr) : qeth_l3_delete_ip(card, addr); card 277 drivers/s390/net/qeth_l3_main.c mutex_unlock(&card->ip_lock); card 282 drivers/s390/net/qeth_l3_main.c static void qeth_l3_drain_rx_mode_cache(struct qeth_card *card) card 288 drivers/s390/net/qeth_l3_main.c hash_for_each_safe(card->ip_mc_htable, i, tmp, addr, hnode) { card 294 drivers/s390/net/qeth_l3_main.c static void qeth_l3_clear_ip_htable(struct qeth_card *card, int recover) card 300 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 4, "clearip"); card 302 drivers/s390/net/qeth_l3_main.c mutex_lock(&card->ip_lock); card 304 drivers/s390/net/qeth_l3_main.c hash_for_each_safe(card->ip_htable, i, tmp, addr, hnode) { card 313 drivers/s390/net/qeth_l3_main.c mutex_unlock(&card->ip_lock); card 316 drivers/s390/net/qeth_l3_main.c static void qeth_l3_recover_ip(struct qeth_card *card) card 323 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 4, "recovrip"); card 325 drivers/s390/net/qeth_l3_main.c mutex_lock(&card->ip_lock); card 327 drivers/s390/net/qeth_l3_main.c hash_for_each_safe(card->ip_htable, i, tmp, addr, hnode) { card 331 drivers/s390/net/qeth_l3_main.c mutex_unlock(&card->ip_lock); card 332 drivers/s390/net/qeth_l3_main.c rc = qeth_l3_register_addr_entry(card, addr); card 333 drivers/s390/net/qeth_l3_main.c mutex_lock(&card->ip_lock); card 336 drivers/s390/net/qeth_l3_main.c rc = qeth_l3_register_addr_entry(card, addr); card 341 drivers/s390/net/qeth_l3_main.c qeth_l3_delete_ip(card, addr); card 349 drivers/s390/net/qeth_l3_main.c mutex_unlock(&card->ip_lock); card 352 drivers/s390/net/qeth_l3_main.c static int qeth_l3_setdelip_cb(struct qeth_card *card, struct qeth_reply *reply, card 371 drivers/s390/net/qeth_l3_main.c static int qeth_l3_send_setdelmc(struct qeth_card *card, card 377 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 4, "setdelmc"); card 379 drivers/s390/net/qeth_l3_main.c iob = qeth_ipa_alloc_cmd(card, ipacmd, addr->proto, card 391 drivers/s390/net/qeth_l3_main.c return qeth_send_ipa_cmd(card, iob, qeth_l3_setdelip_cb, NULL); card 421 drivers/s390/net/qeth_l3_main.c static int qeth_l3_send_setdelip(struct qeth_card *card, card 430 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 4, "setdelip"); card 432 drivers/s390/net/qeth_l3_main.c iob = qeth_ipa_alloc_cmd(card, ipacmd, addr->proto, card 439 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT_(card, 4, "flags%02X", flags); card 454 drivers/s390/net/qeth_l3_main.c return qeth_send_ipa_cmd(card, iob, qeth_l3_setdelip_cb, NULL); card 457 drivers/s390/net/qeth_l3_main.c static int qeth_l3_send_setrouting(struct qeth_card *card, card 464 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 4, "setroutg"); card 465 drivers/s390/net/qeth_l3_main.c iob = qeth_ipa_alloc_cmd(card, IPA_CMD_SETRTG, prot, card 471 drivers/s390/net/qeth_l3_main.c rc = qeth_send_ipa_cmd(card, iob, NULL, NULL); card 476 drivers/s390/net/qeth_l3_main.c static int qeth_l3_correct_routing_type(struct qeth_card *card, card 479 drivers/s390/net/qeth_l3_main.c if (IS_IQD(card)) { card 496 drivers/s390/net/qeth_l3_main.c if (qeth_is_ipafunc_supported(card, prot, card 508 drivers/s390/net/qeth_l3_main.c int qeth_l3_setrouting_v4(struct qeth_card *card) card 512 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 3, "setrtg4"); card 514 drivers/s390/net/qeth_l3_main.c rc = qeth_l3_correct_routing_type(card, &card->options.route4.type, card 519 drivers/s390/net/qeth_l3_main.c rc = qeth_l3_send_setrouting(card, card->options.route4.type, card 522 drivers/s390/net/qeth_l3_main.c card->options.route4.type = NO_ROUTER; card 524 drivers/s390/net/qeth_l3_main.c rc, CARD_DEVID(card)); card 529 drivers/s390/net/qeth_l3_main.c int qeth_l3_setrouting_v6(struct qeth_card *card) card 533 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 3, "setrtg6"); card 535 drivers/s390/net/qeth_l3_main.c if (!qeth_is_supported(card, IPA_IPV6)) card 537 drivers/s390/net/qeth_l3_main.c rc = qeth_l3_correct_routing_type(card, &card->options.route6.type, card 542 drivers/s390/net/qeth_l3_main.c rc = qeth_l3_send_setrouting(card, card->options.route6.type, card 545 drivers/s390/net/qeth_l3_main.c card->options.route6.type = NO_ROUTER; card 547 drivers/s390/net/qeth_l3_main.c rc, CARD_DEVID(card)); card 561 drivers/s390/net/qeth_l3_main.c void qeth_l3_update_ipato(struct qeth_card *card) card 566 drivers/s390/net/qeth_l3_main.c hash_for_each(card->ip_htable, i, addr, hnode) { card 569 drivers/s390/net/qeth_l3_main.c addr->ipato = qeth_l3_is_addr_covered_by_ipato(card, addr); card 573 drivers/s390/net/qeth_l3_main.c static void qeth_l3_clear_ipato_list(struct qeth_card *card) card 577 drivers/s390/net/qeth_l3_main.c mutex_lock(&card->ip_lock); card 579 drivers/s390/net/qeth_l3_main.c list_for_each_entry_safe(ipatoe, tmp, &card->ipato.entries, entry) { card 584 drivers/s390/net/qeth_l3_main.c qeth_l3_update_ipato(card); card 585 drivers/s390/net/qeth_l3_main.c mutex_unlock(&card->ip_lock); card 588 drivers/s390/net/qeth_l3_main.c int qeth_l3_add_ipato_entry(struct qeth_card *card, card 594 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 2, "addipato"); card 596 drivers/s390/net/qeth_l3_main.c mutex_lock(&card->ip_lock); card 598 drivers/s390/net/qeth_l3_main.c list_for_each_entry(ipatoe, &card->ipato.entries, entry) { card 610 drivers/s390/net/qeth_l3_main.c list_add_tail(&new->entry, &card->ipato.entries); card 611 drivers/s390/net/qeth_l3_main.c qeth_l3_update_ipato(card); card 614 drivers/s390/net/qeth_l3_main.c mutex_unlock(&card->ip_lock); card 619 drivers/s390/net/qeth_l3_main.c int qeth_l3_del_ipato_entry(struct qeth_card *card, card 626 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 2, "delipato"); card 628 drivers/s390/net/qeth_l3_main.c mutex_lock(&card->ip_lock); card 630 drivers/s390/net/qeth_l3_main.c list_for_each_entry_safe(ipatoe, tmp, &card->ipato.entries, entry) { card 637 drivers/s390/net/qeth_l3_main.c qeth_l3_update_ipato(card); card 643 drivers/s390/net/qeth_l3_main.c mutex_unlock(&card->ip_lock); card 647 drivers/s390/net/qeth_l3_main.c int qeth_l3_modify_rxip_vipa(struct qeth_card *card, bool add, const u8 *ip, card 659 drivers/s390/net/qeth_l3_main.c return qeth_l3_modify_ip(card, &addr, add); card 662 drivers/s390/net/qeth_l3_main.c int qeth_l3_modify_hsuid(struct qeth_card *card, bool add) card 671 drivers/s390/net/qeth_l3_main.c addr.u.a6.addr.s6_addr[8+i] = card->options.hsuid[i]; card 673 drivers/s390/net/qeth_l3_main.c return qeth_l3_modify_ip(card, &addr, add); card 676 drivers/s390/net/qeth_l3_main.c static int qeth_l3_register_addr_entry(struct qeth_card *card, card 683 drivers/s390/net/qeth_l3_main.c if (card->options.sniffer) card 687 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 2, "setaddr4"); card 688 drivers/s390/net/qeth_l3_main.c QETH_CARD_HEX(card, 3, &addr->u.a4.addr, sizeof(int)); card 690 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 2, "setaddr6"); card 691 drivers/s390/net/qeth_l3_main.c QETH_CARD_HEX(card, 3, &addr->u.a6.addr, 8); card 692 drivers/s390/net/qeth_l3_main.c QETH_CARD_HEX(card, 3, ((char *)&addr->u.a6.addr) + 8, 8); card 694 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 2, "setaddr?"); card 695 drivers/s390/net/qeth_l3_main.c QETH_CARD_HEX(card, 3, addr, sizeof(struct qeth_ipaddr)); card 699 drivers/s390/net/qeth_l3_main.c rc = qeth_l3_send_setdelmc(card, addr, IPA_CMD_SETIPM); card 701 drivers/s390/net/qeth_l3_main.c rc = qeth_l3_send_setdelip(card, addr, IPA_CMD_SETIP); card 703 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 2, "failed"); card 706 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 2, "FAILED"); card 708 drivers/s390/net/qeth_l3_main.c dev_warn(&card->gdev->dev, card 714 drivers/s390/net/qeth_l3_main.c static int qeth_l3_deregister_addr_entry(struct qeth_card *card, card 719 drivers/s390/net/qeth_l3_main.c if (card->options.sniffer) card 723 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 2, "deladdr4"); card 724 drivers/s390/net/qeth_l3_main.c QETH_CARD_HEX(card, 3, &addr->u.a4.addr, sizeof(int)); card 726 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 2, "deladdr6"); card 727 drivers/s390/net/qeth_l3_main.c QETH_CARD_HEX(card, 3, &addr->u.a6.addr, 8); card 728 drivers/s390/net/qeth_l3_main.c QETH_CARD_HEX(card, 3, ((char *)&addr->u.a6.addr) + 8, 8); card 730 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 2, "deladdr?"); card 731 drivers/s390/net/qeth_l3_main.c QETH_CARD_HEX(card, 3, addr, sizeof(struct qeth_ipaddr)); card 734 drivers/s390/net/qeth_l3_main.c rc = qeth_l3_send_setdelmc(card, addr, IPA_CMD_DELIPM); card 736 drivers/s390/net/qeth_l3_main.c rc = qeth_l3_send_setdelip(card, addr, IPA_CMD_DELIP); card 738 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 2, "failed"); card 743 drivers/s390/net/qeth_l3_main.c static int qeth_l3_setadapter_parms(struct qeth_card *card) card 747 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 2, "setadprm"); card 749 drivers/s390/net/qeth_l3_main.c if (qeth_adp_supported(card, IPA_SETADP_ALTER_MAC_ADDRESS)) { card 750 drivers/s390/net/qeth_l3_main.c rc = qeth_setadpparms_change_macaddr(card); card 752 drivers/s390/net/qeth_l3_main.c dev_warn(&card->gdev->dev, "Reading the adapter MAC" card 759 drivers/s390/net/qeth_l3_main.c static int qeth_l3_start_ipa_arp_processing(struct qeth_card *card) card 763 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 3, "ipaarp"); card 765 drivers/s390/net/qeth_l3_main.c if (!qeth_is_supported(card, IPA_ARP_PROCESSING)) { card 766 drivers/s390/net/qeth_l3_main.c dev_info(&card->gdev->dev, card 768 drivers/s390/net/qeth_l3_main.c QETH_CARD_IFNAME(card)); card 771 drivers/s390/net/qeth_l3_main.c rc = qeth_send_simple_setassparms(card, IPA_ARP_PROCESSING, card 774 drivers/s390/net/qeth_l3_main.c dev_warn(&card->gdev->dev, card 776 drivers/s390/net/qeth_l3_main.c QETH_CARD_IFNAME(card)); card 781 drivers/s390/net/qeth_l3_main.c static int qeth_l3_start_ipa_source_mac(struct qeth_card *card) card 785 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 3, "stsrcmac"); card 787 drivers/s390/net/qeth_l3_main.c if (!qeth_is_supported(card, IPA_SOURCE_MAC)) { card 788 drivers/s390/net/qeth_l3_main.c dev_info(&card->gdev->dev, card 790 drivers/s390/net/qeth_l3_main.c QETH_CARD_IFNAME(card)); card 794 drivers/s390/net/qeth_l3_main.c rc = qeth_send_simple_setassparms(card, IPA_SOURCE_MAC, card 797 drivers/s390/net/qeth_l3_main.c dev_warn(&card->gdev->dev, card 799 drivers/s390/net/qeth_l3_main.c QETH_CARD_IFNAME(card)); card 803 drivers/s390/net/qeth_l3_main.c static int qeth_l3_start_ipa_vlan(struct qeth_card *card) card 807 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 3, "strtvlan"); card 809 drivers/s390/net/qeth_l3_main.c if (!qeth_is_supported(card, IPA_FULL_VLAN)) { card 810 drivers/s390/net/qeth_l3_main.c dev_info(&card->gdev->dev, card 811 drivers/s390/net/qeth_l3_main.c "VLAN not supported on %s\n", QETH_CARD_IFNAME(card)); card 815 drivers/s390/net/qeth_l3_main.c rc = qeth_send_simple_setassparms(card, IPA_VLAN_PRIO, card 818 drivers/s390/net/qeth_l3_main.c dev_warn(&card->gdev->dev, card 820 drivers/s390/net/qeth_l3_main.c QETH_CARD_IFNAME(card)); card 822 drivers/s390/net/qeth_l3_main.c dev_info(&card->gdev->dev, "VLAN enabled\n"); card 827 drivers/s390/net/qeth_l3_main.c static int qeth_l3_start_ipa_multicast(struct qeth_card *card) card 831 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 3, "stmcast"); card 833 drivers/s390/net/qeth_l3_main.c if (!qeth_is_supported(card, IPA_MULTICASTING)) { card 834 drivers/s390/net/qeth_l3_main.c dev_info(&card->gdev->dev, card 836 drivers/s390/net/qeth_l3_main.c QETH_CARD_IFNAME(card)); card 840 drivers/s390/net/qeth_l3_main.c rc = qeth_send_simple_setassparms(card, IPA_MULTICASTING, card 843 drivers/s390/net/qeth_l3_main.c dev_warn(&card->gdev->dev, card 845 drivers/s390/net/qeth_l3_main.c QETH_CARD_IFNAME(card)); card 847 drivers/s390/net/qeth_l3_main.c dev_info(&card->gdev->dev, "Multicast enabled\n"); card 848 drivers/s390/net/qeth_l3_main.c card->dev->flags |= IFF_MULTICAST; card 853 drivers/s390/net/qeth_l3_main.c static int qeth_l3_softsetup_ipv6(struct qeth_card *card) card 858 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 3, "softipv6"); card 860 drivers/s390/net/qeth_l3_main.c if (IS_IQD(card)) card 863 drivers/s390/net/qeth_l3_main.c rc = qeth_send_simple_setassparms(card, IPA_IPV6, IPA_CMD_ASS_START, card 866 drivers/s390/net/qeth_l3_main.c dev_err(&card->gdev->dev, card 868 drivers/s390/net/qeth_l3_main.c QETH_CARD_IFNAME(card)); card 871 drivers/s390/net/qeth_l3_main.c rc = qeth_send_simple_setassparms_v6(card, IPA_IPV6, IPA_CMD_ASS_START, card 874 drivers/s390/net/qeth_l3_main.c dev_err(&card->gdev->dev, card 876 drivers/s390/net/qeth_l3_main.c QETH_CARD_IFNAME(card)); card 879 drivers/s390/net/qeth_l3_main.c rc = qeth_send_simple_setassparms_v6(card, IPA_PASSTHRU, card 882 drivers/s390/net/qeth_l3_main.c dev_warn(&card->gdev->dev, card 884 drivers/s390/net/qeth_l3_main.c QETH_CARD_IFNAME(card)); card 888 drivers/s390/net/qeth_l3_main.c dev_info(&card->gdev->dev, "IPV6 enabled\n"); card 892 drivers/s390/net/qeth_l3_main.c static int qeth_l3_start_ipa_ipv6(struct qeth_card *card) card 894 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 3, "strtipv6"); card 896 drivers/s390/net/qeth_l3_main.c if (!qeth_is_supported(card, IPA_IPV6)) { card 897 drivers/s390/net/qeth_l3_main.c dev_info(&card->gdev->dev, card 898 drivers/s390/net/qeth_l3_main.c "IPv6 not supported on %s\n", QETH_CARD_IFNAME(card)); card 901 drivers/s390/net/qeth_l3_main.c return qeth_l3_softsetup_ipv6(card); card 904 drivers/s390/net/qeth_l3_main.c static int qeth_l3_start_ipa_broadcast(struct qeth_card *card) card 909 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 3, "stbrdcst"); card 910 drivers/s390/net/qeth_l3_main.c card->info.broadcast_capable = 0; card 911 drivers/s390/net/qeth_l3_main.c if (!qeth_is_supported(card, IPA_FILTERING)) { card 912 drivers/s390/net/qeth_l3_main.c dev_info(&card->gdev->dev, card 914 drivers/s390/net/qeth_l3_main.c QETH_CARD_IFNAME(card)); card 918 drivers/s390/net/qeth_l3_main.c rc = qeth_send_simple_setassparms(card, IPA_FILTERING, card 921 drivers/s390/net/qeth_l3_main.c dev_warn(&card->gdev->dev, "Enabling broadcast filtering for " card 922 drivers/s390/net/qeth_l3_main.c "%s failed\n", QETH_CARD_IFNAME(card)); card 926 drivers/s390/net/qeth_l3_main.c rc = qeth_send_simple_setassparms(card, IPA_FILTERING, card 929 drivers/s390/net/qeth_l3_main.c dev_warn(&card->gdev->dev, card 931 drivers/s390/net/qeth_l3_main.c QETH_CARD_IFNAME(card)); card 934 drivers/s390/net/qeth_l3_main.c card->info.broadcast_capable = QETH_BROADCAST_WITH_ECHO; card 935 drivers/s390/net/qeth_l3_main.c dev_info(&card->gdev->dev, "Broadcast enabled\n"); card 936 drivers/s390/net/qeth_l3_main.c rc = qeth_send_simple_setassparms(card, IPA_FILTERING, card 939 drivers/s390/net/qeth_l3_main.c dev_warn(&card->gdev->dev, "Setting up broadcast echo " card 940 drivers/s390/net/qeth_l3_main.c "filtering for %s failed\n", QETH_CARD_IFNAME(card)); card 943 drivers/s390/net/qeth_l3_main.c card->info.broadcast_capable = QETH_BROADCAST_WITHOUT_ECHO; card 945 drivers/s390/net/qeth_l3_main.c if (card->info.broadcast_capable) card 946 drivers/s390/net/qeth_l3_main.c card->dev->flags |= IFF_BROADCAST; card 948 drivers/s390/net/qeth_l3_main.c card->dev->flags &= ~IFF_BROADCAST; card 952 drivers/s390/net/qeth_l3_main.c static int qeth_l3_start_ipassists(struct qeth_card *card) card 954 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 3, "strtipas"); card 956 drivers/s390/net/qeth_l3_main.c if (qeth_set_access_ctrl_online(card, 0)) card 958 drivers/s390/net/qeth_l3_main.c qeth_l3_start_ipa_arp_processing(card); /* go on*/ card 959 drivers/s390/net/qeth_l3_main.c qeth_l3_start_ipa_source_mac(card); /* go on*/ card 960 drivers/s390/net/qeth_l3_main.c qeth_l3_start_ipa_vlan(card); /* go on*/ card 961 drivers/s390/net/qeth_l3_main.c qeth_l3_start_ipa_multicast(card); /* go on*/ card 962 drivers/s390/net/qeth_l3_main.c qeth_l3_start_ipa_ipv6(card); /* go on*/ card 963 drivers/s390/net/qeth_l3_main.c qeth_l3_start_ipa_broadcast(card); /* go on*/ card 967 drivers/s390/net/qeth_l3_main.c static int qeth_l3_iqd_read_initial_mac_cb(struct qeth_card *card, card 975 drivers/s390/net/qeth_l3_main.c ether_addr_copy(card->dev->dev_addr, card 980 drivers/s390/net/qeth_l3_main.c static int qeth_l3_iqd_read_initial_mac(struct qeth_card *card) card 986 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 2, "hsrmac"); card 988 drivers/s390/net/qeth_l3_main.c iob = qeth_ipa_alloc_cmd(card, IPA_CMD_CREATE_ADDR, QETH_PROT_IPV6, card 994 drivers/s390/net/qeth_l3_main.c card->info.unique_id; card 996 drivers/s390/net/qeth_l3_main.c rc = qeth_send_ipa_cmd(card, iob, qeth_l3_iqd_read_initial_mac_cb, card 1001 drivers/s390/net/qeth_l3_main.c static int qeth_l3_get_unique_id_cb(struct qeth_card *card, card 1007 drivers/s390/net/qeth_l3_main.c card->info.unique_id = *((__u16 *) card 1012 drivers/s390/net/qeth_l3_main.c card->info.unique_id = UNIQUE_ID_IF_CREATE_ADDR_FAILED | card 1014 drivers/s390/net/qeth_l3_main.c dev_warn(&card->gdev->dev, "The network adapter failed to generate a unique ID\n"); card 1018 drivers/s390/net/qeth_l3_main.c static int qeth_l3_get_unique_id(struct qeth_card *card) card 1024 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 2, "guniqeid"); card 1026 drivers/s390/net/qeth_l3_main.c if (!qeth_is_supported(card, IPA_IPV6)) { card 1027 drivers/s390/net/qeth_l3_main.c card->info.unique_id = UNIQUE_ID_IF_CREATE_ADDR_FAILED | card 1032 drivers/s390/net/qeth_l3_main.c iob = qeth_ipa_alloc_cmd(card, IPA_CMD_CREATE_ADDR, QETH_PROT_IPV6, card 1038 drivers/s390/net/qeth_l3_main.c card->info.unique_id; card 1040 drivers/s390/net/qeth_l3_main.c rc = qeth_send_ipa_cmd(card, iob, qeth_l3_get_unique_id_cb, NULL); card 1045 drivers/s390/net/qeth_l3_main.c qeth_diags_trace_cb(struct qeth_card *card, struct qeth_reply *reply, card 1051 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 2, "diastrcb"); card 1056 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT_(card, 2, "dxter%x", rc); card 1064 drivers/s390/net/qeth_l3_main.c card->info.promisc_mode = SET_PROMISC_MODE_OFF; card 1065 drivers/s390/net/qeth_l3_main.c dev_info(&card->gdev->dev, "The HiperSockets network " card 1075 drivers/s390/net/qeth_l3_main.c card->info.promisc_mode = SET_PROMISC_MODE_ON; card 1076 drivers/s390/net/qeth_l3_main.c dev_info(&card->gdev->dev, "The HiperSockets network " card 1080 drivers/s390/net/qeth_l3_main.c dev_warn(&card->gdev->dev, "The device is not " card 1085 drivers/s390/net/qeth_l3_main.c dev_warn(&card->gdev->dev, "A HiperSockets " card 1095 drivers/s390/net/qeth_l3_main.c cmd->data.diagass.action, CARD_DEVID(card)); card 1102 drivers/s390/net/qeth_l3_main.c qeth_diags_trace(struct qeth_card *card, enum qeth_diags_trace_cmds diags_cmd) card 1107 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 2, "diagtrac"); card 1109 drivers/s390/net/qeth_l3_main.c iob = qeth_get_diag_cmd(card, QETH_DIAGS_CMD_TRACE, 0); card 1115 drivers/s390/net/qeth_l3_main.c return qeth_send_ipa_cmd(card, iob, qeth_diags_trace_cb, NULL); card 1119 drivers/s390/net/qeth_l3_main.c qeth_l3_add_mc_to_hash(struct qeth_card *card, struct in_device *in4_dev) card 1124 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 4, "addmc"); card 1136 drivers/s390/net/qeth_l3_main.c ipm = qeth_l3_find_addr_by_ip(card, tmp); card 1148 drivers/s390/net/qeth_l3_main.c hash_add(card->ip_mc_htable, card 1157 drivers/s390/net/qeth_l3_main.c static void qeth_l3_add_vlan_mc(struct qeth_card *card) card 1162 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 4, "addmcvl"); card 1164 drivers/s390/net/qeth_l3_main.c if (!qeth_is_supported(card, IPA_FULL_VLAN)) card 1167 drivers/s390/net/qeth_l3_main.c for_each_set_bit(vid, card->active_vlans, VLAN_N_VID) { card 1170 drivers/s390/net/qeth_l3_main.c netdev = __vlan_find_dev_deep_rcu(card->dev, htons(ETH_P_8021Q), card 1178 drivers/s390/net/qeth_l3_main.c qeth_l3_add_mc_to_hash(card, in_dev); card 1182 drivers/s390/net/qeth_l3_main.c static void qeth_l3_add_multicast_ipv4(struct qeth_card *card) card 1186 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 4, "chkmcv4"); card 1189 drivers/s390/net/qeth_l3_main.c in4_dev = __in_dev_get_rcu(card->dev); card 1192 drivers/s390/net/qeth_l3_main.c qeth_l3_add_mc_to_hash(card, in4_dev); card 1193 drivers/s390/net/qeth_l3_main.c qeth_l3_add_vlan_mc(card); card 1198 drivers/s390/net/qeth_l3_main.c static void qeth_l3_add_mc6_to_hash(struct qeth_card *card, card 1205 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 4, "addmc6"); card 1217 drivers/s390/net/qeth_l3_main.c ipm = qeth_l3_find_addr_by_ip(card, tmp); card 1233 drivers/s390/net/qeth_l3_main.c hash_add(card->ip_mc_htable, card 1241 drivers/s390/net/qeth_l3_main.c static void qeth_l3_add_vlan_mc6(struct qeth_card *card) card 1246 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 4, "admc6vl"); card 1248 drivers/s390/net/qeth_l3_main.c if (!qeth_is_supported(card, IPA_FULL_VLAN)) card 1251 drivers/s390/net/qeth_l3_main.c for_each_set_bit(vid, card->active_vlans, VLAN_N_VID) { card 1254 drivers/s390/net/qeth_l3_main.c netdev = __vlan_find_dev_deep_rcu(card->dev, htons(ETH_P_8021Q), card 1263 drivers/s390/net/qeth_l3_main.c qeth_l3_add_mc6_to_hash(card, in_dev); card 1269 drivers/s390/net/qeth_l3_main.c static void qeth_l3_add_multicast_ipv6(struct qeth_card *card) card 1273 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 4, "chkmcv6"); card 1275 drivers/s390/net/qeth_l3_main.c if (!qeth_is_supported(card, IPA_IPV6)) card 1277 drivers/s390/net/qeth_l3_main.c in6_dev = in6_dev_get(card->dev); card 1283 drivers/s390/net/qeth_l3_main.c qeth_l3_add_mc6_to_hash(card, in6_dev); card 1284 drivers/s390/net/qeth_l3_main.c qeth_l3_add_vlan_mc6(card); card 1293 drivers/s390/net/qeth_l3_main.c struct qeth_card *card = dev->ml_priv; card 1295 drivers/s390/net/qeth_l3_main.c set_bit(vid, card->active_vlans); card 1302 drivers/s390/net/qeth_l3_main.c struct qeth_card *card = dev->ml_priv; card 1304 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT_(card, 4, "kid:%d", vid); card 1306 drivers/s390/net/qeth_l3_main.c clear_bit(vid, card->active_vlans); card 1311 drivers/s390/net/qeth_l3_main.c static void qeth_l3_rebuild_skb(struct qeth_card *card, struct sk_buff *skb, card 1317 drivers/s390/net/qeth_l3_main.c if (IS_IQD(card) && iucv->magic == ETH_P_AF_IUCV) { card 1335 drivers/s390/net/qeth_l3_main.c QETH_CARD_STAT_INC(card, rx_multicast); card 1338 drivers/s390/net/qeth_l3_main.c ether_addr_copy(tg_addr, card->dev->broadcast); card 1339 drivers/s390/net/qeth_l3_main.c QETH_CARD_STAT_INC(card, rx_multicast); card 1342 drivers/s390/net/qeth_l3_main.c if (card->options.sniffer) card 1344 drivers/s390/net/qeth_l3_main.c ether_addr_copy(tg_addr, card->dev->dev_addr); card 1348 drivers/s390/net/qeth_l3_main.c card->dev->header_ops->create(skb, card->dev, prot, card 1352 drivers/s390/net/qeth_l3_main.c card->dev->header_ops->create(skb, card->dev, prot, card 1357 drivers/s390/net/qeth_l3_main.c if (!card->options.sniffer && card 1366 drivers/s390/net/qeth_l3_main.c qeth_rx_csum(card, skb, hdr->hdr.l3.ext_flags); card 1369 drivers/s390/net/qeth_l3_main.c static int qeth_l3_process_inbound_buffer(struct qeth_card *card, card 1380 drivers/s390/net/qeth_l3_main.c skb = qeth_core_get_next_skb(card, card 1381 drivers/s390/net/qeth_l3_main.c &card->qdio.in_q->bufs[card->rx.b_index], card 1382 drivers/s390/net/qeth_l3_main.c &card->rx.b_element, &card->rx.e_offset, &hdr); card 1389 drivers/s390/net/qeth_l3_main.c qeth_l3_rebuild_skb(card, skb, hdr); card 1394 drivers/s390/net/qeth_l3_main.c napi_gro_receive(&card->napi, skb); card 1398 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 3, "inbunkno"); card 1404 drivers/s390/net/qeth_l3_main.c QETH_CARD_STAT_INC(card, rx_packets); card 1405 drivers/s390/net/qeth_l3_main.c QETH_CARD_STAT_ADD(card, rx_bytes, len); card 1410 drivers/s390/net/qeth_l3_main.c static void qeth_l3_stop_card(struct qeth_card *card) card 1412 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 2, "stopcard"); card 1414 drivers/s390/net/qeth_l3_main.c qeth_set_allowed_threads(card, 0, 1); card 1416 drivers/s390/net/qeth_l3_main.c cancel_work_sync(&card->rx_mode_work); card 1417 drivers/s390/net/qeth_l3_main.c qeth_l3_drain_rx_mode_cache(card); card 1419 drivers/s390/net/qeth_l3_main.c if (card->options.sniffer && card 1420 drivers/s390/net/qeth_l3_main.c (card->info.promisc_mode == SET_PROMISC_MODE_ON)) card 1421 drivers/s390/net/qeth_l3_main.c qeth_diags_trace(card, QETH_DIAGS_CMD_TRACE_DISABLE); card 1423 drivers/s390/net/qeth_l3_main.c if (card->state == CARD_STATE_SOFTSETUP) { card 1424 drivers/s390/net/qeth_l3_main.c qeth_l3_clear_ip_htable(card, 1); card 1425 drivers/s390/net/qeth_l3_main.c qeth_clear_ipacmd_list(card); card 1426 drivers/s390/net/qeth_l3_main.c card->state = CARD_STATE_HARDSETUP; card 1428 drivers/s390/net/qeth_l3_main.c if (card->state == CARD_STATE_HARDSETUP) { card 1429 drivers/s390/net/qeth_l3_main.c qeth_drain_output_queues(card); card 1430 drivers/s390/net/qeth_l3_main.c qeth_clear_working_pool_list(card); card 1431 drivers/s390/net/qeth_l3_main.c card->state = CARD_STATE_DOWN; card 1434 drivers/s390/net/qeth_l3_main.c qeth_qdio_clear_card(card, 0); card 1435 drivers/s390/net/qeth_l3_main.c flush_workqueue(card->event_wq); card 1436 drivers/s390/net/qeth_l3_main.c card->info.promisc_mode = 0; card 1439 drivers/s390/net/qeth_l3_main.c static void qeth_l3_set_promisc_mode(struct qeth_card *card) card 1441 drivers/s390/net/qeth_l3_main.c bool enable = card->dev->flags & IFF_PROMISC; card 1443 drivers/s390/net/qeth_l3_main.c if (card->info.promisc_mode == enable) card 1446 drivers/s390/net/qeth_l3_main.c if (IS_VM_NIC(card)) { /* Guestlan trace */ card 1447 drivers/s390/net/qeth_l3_main.c if (qeth_adp_supported(card, IPA_SETADP_SET_PROMISC_MODE)) card 1448 drivers/s390/net/qeth_l3_main.c qeth_setadp_promisc_mode(card, enable); card 1449 drivers/s390/net/qeth_l3_main.c } else if (card->options.sniffer && /* HiperSockets trace */ card 1450 drivers/s390/net/qeth_l3_main.c qeth_adp_supported(card, IPA_SETADP_SET_DIAG_ASSIST)) { card 1452 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 3, "+promisc"); card 1453 drivers/s390/net/qeth_l3_main.c qeth_diags_trace(card, QETH_DIAGS_CMD_TRACE_ENABLE); card 1455 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 3, "-promisc"); card 1456 drivers/s390/net/qeth_l3_main.c qeth_diags_trace(card, QETH_DIAGS_CMD_TRACE_DISABLE); card 1463 drivers/s390/net/qeth_l3_main.c struct qeth_card *card = container_of(work, struct qeth_card, card 1469 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 3, "setmulti"); card 1471 drivers/s390/net/qeth_l3_main.c if (!card->options.sniffer) { card 1472 drivers/s390/net/qeth_l3_main.c qeth_l3_add_multicast_ipv4(card); card 1473 drivers/s390/net/qeth_l3_main.c qeth_l3_add_multicast_ipv6(card); card 1475 drivers/s390/net/qeth_l3_main.c hash_for_each_safe(card->ip_mc_htable, i, tmp, addr, hnode) { card 1478 drivers/s390/net/qeth_l3_main.c rc = qeth_l3_deregister_addr_entry(card, addr); card 1485 drivers/s390/net/qeth_l3_main.c rc = qeth_l3_register_addr_entry(card, addr); card 1500 drivers/s390/net/qeth_l3_main.c qeth_l3_set_promisc_mode(card); card 1520 drivers/s390/net/qeth_l3_main.c static int qeth_l3_arp_cmd_cb(struct qeth_card *card, struct qeth_reply *reply, card 1525 drivers/s390/net/qeth_l3_main.c qeth_setassparms_cb(card, reply, data); card 1529 drivers/s390/net/qeth_l3_main.c static int qeth_l3_arp_set_no_entries(struct qeth_card *card, int no_entries) card 1534 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 3, "arpstnoe"); card 1541 drivers/s390/net/qeth_l3_main.c if (IS_VM_NIC(card)) card 1543 drivers/s390/net/qeth_l3_main.c if (!qeth_is_supported(card, IPA_ARP_PROCESSING)) { card 1547 drivers/s390/net/qeth_l3_main.c iob = qeth_get_setassparms_cmd(card, IPA_ARP_PROCESSING, card 1555 drivers/s390/net/qeth_l3_main.c rc = qeth_send_ipa_cmd(card, iob, qeth_l3_arp_cmd_cb, NULL); card 1558 drivers/s390/net/qeth_l3_main.c CARD_DEVID(card), rc); card 1562 drivers/s390/net/qeth_l3_main.c static __u32 get_arp_entry_size(struct qeth_card *card, card 1571 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 4, "arpev4"); card 1580 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 4, "arpev6"); card 1591 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 4, "arpinv"); card 1604 drivers/s390/net/qeth_l3_main.c static int qeth_l3_arp_query_cb(struct qeth_card *card, card 1615 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 3, "arpquecb"); card 1619 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT_(card, 4, "%i", cmd->hdr.prot_version); card 1621 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 4, "arpcberr"); card 1622 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT_(card, 4, "%i", cmd->hdr.return_code); card 1627 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 4, "setaperr"); card 1628 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT_(card, 4, "%i", cmd->hdr.return_code); card 1632 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT_(card, 4, "anoen%i", qdata->no_entries); card 1645 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 4, "pmis"); card 1646 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT_(card, 4, "%i", etype->ip); card 1649 drivers/s390/net/qeth_l3_main.c esize = get_arp_entry_size(card, qdata, etype, card 1651 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT_(card, 5, "esz%i", esize); card 1656 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT_(card, 4, "qaer3%i", -ENOSPC); card 1672 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT_(card, 4, "nove%i", qinfo->no_entries); card 1679 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT_(card, 4, "rc%i", 0); card 1683 drivers/s390/net/qeth_l3_main.c static int qeth_l3_query_arp_cache_info(struct qeth_card *card, card 1691 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT_(card, 3, "qarpipv%i", prot); card 1693 drivers/s390/net/qeth_l3_main.c iob = qeth_get_setassparms_cmd(card, IPA_ARP_PROCESSING, card 1700 drivers/s390/net/qeth_l3_main.c rc = qeth_send_ipa_cmd(card, iob, qeth_l3_arp_query_cb, qinfo); card 1703 drivers/s390/net/qeth_l3_main.c CARD_DEVID(card), rc); card 1707 drivers/s390/net/qeth_l3_main.c static int qeth_l3_arp_query(struct qeth_card *card, char __user *udata) card 1712 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 3, "arpquery"); card 1714 drivers/s390/net/qeth_l3_main.c if (!qeth_is_supported(card,/*IPA_QUERY_ARP_ADDR_INFO*/ card 1716 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 3, "arpqnsup"); card 1731 drivers/s390/net/qeth_l3_main.c rc = qeth_l3_query_arp_cache_info(card, QETH_PROT_IPV4, &qinfo); card 1739 drivers/s390/net/qeth_l3_main.c qeth_l3_query_arp_cache_info(card, QETH_PROT_IPV6, &qinfo); card 1742 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 4, "qactf"); card 1746 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 4, "qacts"); card 1754 drivers/s390/net/qeth_l3_main.c static int qeth_l3_arp_modify_entry(struct qeth_card *card, card 1763 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 3, "arpadd"); card 1765 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 3, "arpdel"); card 1772 drivers/s390/net/qeth_l3_main.c if (IS_VM_NIC(card)) card 1774 drivers/s390/net/qeth_l3_main.c if (!qeth_is_supported(card, IPA_ARP_PROCESSING)) { card 1778 drivers/s390/net/qeth_l3_main.c iob = qeth_get_setassparms_cmd(card, IPA_ARP_PROCESSING, arp_cmd, card 1787 drivers/s390/net/qeth_l3_main.c rc = qeth_send_ipa_cmd(card, iob, qeth_l3_arp_cmd_cb, NULL); card 1790 drivers/s390/net/qeth_l3_main.c arp_cmd, CARD_DEVID(card), rc); card 1794 drivers/s390/net/qeth_l3_main.c static int qeth_l3_arp_flush_cache(struct qeth_card *card) card 1799 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 3, "arpflush"); card 1806 drivers/s390/net/qeth_l3_main.c if (IS_VM_NIC(card) || IS_IQD(card)) card 1808 drivers/s390/net/qeth_l3_main.c if (!qeth_is_supported(card, IPA_ARP_PROCESSING)) { card 1812 drivers/s390/net/qeth_l3_main.c iob = qeth_get_setassparms_cmd(card, IPA_ARP_PROCESSING, card 1818 drivers/s390/net/qeth_l3_main.c rc = qeth_send_ipa_cmd(card, iob, qeth_l3_arp_cmd_cb, NULL); card 1821 drivers/s390/net/qeth_l3_main.c CARD_DEVID(card), rc); card 1827 drivers/s390/net/qeth_l3_main.c struct qeth_card *card = dev->ml_priv; card 1838 drivers/s390/net/qeth_l3_main.c rc = qeth_l3_arp_set_no_entries(card, rq->ifr_ifru.ifru_ivalue); card 1845 drivers/s390/net/qeth_l3_main.c rc = qeth_l3_arp_query(card, rq->ifr_ifru.ifru_data); card 1857 drivers/s390/net/qeth_l3_main.c return qeth_l3_arp_modify_entry(card, &arp_entry, arp_cmd); card 1863 drivers/s390/net/qeth_l3_main.c rc = qeth_l3_arp_flush_cache(card); card 1937 drivers/s390/net/qeth_l3_main.c struct qeth_card *card = queue->card; card 1964 drivers/s390/net/qeth_l3_main.c if (ipv == 4 || IS_IQD(card)) { card 1978 drivers/s390/net/qeth_l3_main.c if (IS_IQD(card) && skb_get_queue_mapping(skb) != QETH_IQD_MCAST_TXQ) card 1999 drivers/s390/net/qeth_l3_main.c if (!IS_IQD(card)) card 2022 drivers/s390/net/qeth_l3_main.c static int qeth_l3_xmit(struct qeth_card *card, struct sk_buff *skb, card 2037 drivers/s390/net/qeth_l3_main.c return qeth_xmit(card, skb, queue, ipv, qeth_l3_fill_header); card 2043 drivers/s390/net/qeth_l3_main.c struct qeth_card *card = dev->ml_priv; card 2051 drivers/s390/net/qeth_l3_main.c if (IS_IQD(card)) { card 2052 drivers/s390/net/qeth_l3_main.c queue = card->qdio.out_qs[qeth_iqd_translate_txq(dev, txq)]; card 2054 drivers/s390/net/qeth_l3_main.c if (card->options.sniffer) card 2056 drivers/s390/net/qeth_l3_main.c if ((card->options.cq != QETH_CQ_ENABLED && !ipv) || card 2057 drivers/s390/net/qeth_l3_main.c (card->options.cq == QETH_CQ_ENABLED && card 2061 drivers/s390/net/qeth_l3_main.c queue = card->qdio.out_qs[txq]; card 2068 drivers/s390/net/qeth_l3_main.c if (ipv == 4 || IS_IQD(card)) card 2069 drivers/s390/net/qeth_l3_main.c rc = qeth_l3_xmit(card, skb, queue, ipv); card 2071 drivers/s390/net/qeth_l3_main.c rc = qeth_xmit(card, skb, queue, ipv, qeth_l3_fill_header); card 2084 drivers/s390/net/qeth_l3_main.c struct qeth_card *card = dev->ml_priv; card 2086 drivers/s390/net/qeth_l3_main.c schedule_work(&card->rx_mode_work); card 2132 drivers/s390/net/qeth_l3_main.c struct qeth_card *card = dev->ml_priv; card 2134 drivers/s390/net/qeth_l3_main.c return qeth_get_priority_queue(card, skb); card 2171 drivers/s390/net/qeth_l3_main.c static int qeth_l3_setup_netdev(struct qeth_card *card, bool carrier_ok) card 2176 drivers/s390/net/qeth_l3_main.c if (IS_OSD(card) || IS_OSX(card)) { card 2177 drivers/s390/net/qeth_l3_main.c if ((card->info.link_type == QETH_LINK_TYPE_LANE_TR) || card 2178 drivers/s390/net/qeth_l3_main.c (card->info.link_type == QETH_LINK_TYPE_HSTR)) { card 2183 drivers/s390/net/qeth_l3_main.c card->dev->netdev_ops = &qeth_l3_osa_netdev_ops; card 2186 drivers/s390/net/qeth_l3_main.c qeth_l3_get_unique_id(card); card 2187 drivers/s390/net/qeth_l3_main.c if (!(card->info.unique_id & UNIQUE_ID_NOT_BY_CARD)) card 2188 drivers/s390/net/qeth_l3_main.c card->dev->dev_id = card->info.unique_id & 0xffff; card 2190 drivers/s390/net/qeth_l3_main.c if (!IS_VM_NIC(card)) { card 2191 drivers/s390/net/qeth_l3_main.c card->dev->features |= NETIF_F_SG; card 2192 drivers/s390/net/qeth_l3_main.c card->dev->hw_features |= NETIF_F_TSO | card 2194 drivers/s390/net/qeth_l3_main.c card->dev->vlan_features |= NETIF_F_TSO | card 2198 drivers/s390/net/qeth_l3_main.c if (qeth_is_supported6(card, IPA_OUTBOUND_CHECKSUM_V6)) { card 2199 drivers/s390/net/qeth_l3_main.c card->dev->hw_features |= NETIF_F_IPV6_CSUM; card 2200 drivers/s390/net/qeth_l3_main.c card->dev->vlan_features |= NETIF_F_IPV6_CSUM; card 2202 drivers/s390/net/qeth_l3_main.c if (qeth_is_supported6(card, IPA_OUTBOUND_TSO)) { card 2203 drivers/s390/net/qeth_l3_main.c card->dev->hw_features |= NETIF_F_TSO6; card 2204 drivers/s390/net/qeth_l3_main.c card->dev->vlan_features |= NETIF_F_TSO6; card 2208 drivers/s390/net/qeth_l3_main.c if (card->dev->hw_features & NETIF_F_TSO6) card 2210 drivers/s390/net/qeth_l3_main.c else if (card->dev->hw_features & NETIF_F_TSO) card 2214 drivers/s390/net/qeth_l3_main.c } else if (IS_IQD(card)) { card 2215 drivers/s390/net/qeth_l3_main.c card->dev->flags |= IFF_NOARP; card 2216 drivers/s390/net/qeth_l3_main.c card->dev->netdev_ops = &qeth_l3_netdev_ops; card 2219 drivers/s390/net/qeth_l3_main.c rc = qeth_l3_iqd_read_initial_mac(card); card 2225 drivers/s390/net/qeth_l3_main.c card->dev->needed_headroom = headroom; card 2226 drivers/s390/net/qeth_l3_main.c card->dev->features |= NETIF_F_HW_VLAN_CTAG_TX | card 2230 drivers/s390/net/qeth_l3_main.c netif_keep_dst(card->dev); card 2231 drivers/s390/net/qeth_l3_main.c if (card->dev->hw_features & (NETIF_F_TSO | NETIF_F_TSO6)) card 2232 drivers/s390/net/qeth_l3_main.c netif_set_gso_max_size(card->dev, card 2233 drivers/s390/net/qeth_l3_main.c PAGE_SIZE * (QETH_MAX_BUFFER_ELEMENTS(card) - 1)); card 2235 drivers/s390/net/qeth_l3_main.c netif_napi_add(card->dev, &card->napi, qeth_poll, QETH_NAPI_WEIGHT); card 2236 drivers/s390/net/qeth_l3_main.c rc = register_netdev(card->dev); card 2238 drivers/s390/net/qeth_l3_main.c netif_carrier_on(card->dev); card 2242 drivers/s390/net/qeth_l3_main.c card->dev->netdev_ops = NULL; card 2253 drivers/s390/net/qeth_l3_main.c struct qeth_card *card = dev_get_drvdata(&gdev->dev); card 2256 drivers/s390/net/qeth_l3_main.c hash_init(card->ip_htable); card 2257 drivers/s390/net/qeth_l3_main.c mutex_init(&card->ip_lock); card 2258 drivers/s390/net/qeth_l3_main.c card->cmd_wq = alloc_ordered_workqueue("%s_cmd", 0, card 2260 drivers/s390/net/qeth_l3_main.c if (!card->cmd_wq) card 2266 drivers/s390/net/qeth_l3_main.c destroy_workqueue(card->cmd_wq); card 2271 drivers/s390/net/qeth_l3_main.c hash_init(card->ip_mc_htable); card 2272 drivers/s390/net/qeth_l3_main.c INIT_WORK(&card->rx_mode_work, qeth_l3_rx_mode_work); card 2278 drivers/s390/net/qeth_l3_main.c struct qeth_card *card = dev_get_drvdata(&cgdev->dev); card 2283 drivers/s390/net/qeth_l3_main.c qeth_set_allowed_threads(card, 0, 1); card 2284 drivers/s390/net/qeth_l3_main.c wait_event(card->wait_q, qeth_threads_running(card, 0xffffffff) == 0); card 2289 drivers/s390/net/qeth_l3_main.c cancel_work_sync(&card->close_dev_work); card 2290 drivers/s390/net/qeth_l3_main.c if (qeth_netdev_is_registered(card->dev)) card 2291 drivers/s390/net/qeth_l3_main.c unregister_netdev(card->dev); card 2293 drivers/s390/net/qeth_l3_main.c flush_workqueue(card->cmd_wq); card 2294 drivers/s390/net/qeth_l3_main.c destroy_workqueue(card->cmd_wq); card 2295 drivers/s390/net/qeth_l3_main.c qeth_l3_clear_ip_htable(card, 0); card 2296 drivers/s390/net/qeth_l3_main.c qeth_l3_clear_ipato_list(card); card 2301 drivers/s390/net/qeth_l3_main.c struct qeth_card *card = dev_get_drvdata(&gdev->dev); card 2302 drivers/s390/net/qeth_l3_main.c struct net_device *dev = card->dev; card 2306 drivers/s390/net/qeth_l3_main.c mutex_lock(&card->discipline_mutex); card 2307 drivers/s390/net/qeth_l3_main.c mutex_lock(&card->conf_mutex); card 2308 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 2, "setonlin"); card 2310 drivers/s390/net/qeth_l3_main.c rc = qeth_core_hardsetup_card(card, &carrier_ok); card 2312 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT_(card, 2, "2err%04x", rc); card 2317 drivers/s390/net/qeth_l3_main.c if (qeth_is_diagass_supported(card, QETH_DIAGS_CMD_TRAP)) { card 2318 drivers/s390/net/qeth_l3_main.c if (card->info.hwtrap && card 2319 drivers/s390/net/qeth_l3_main.c qeth_hw_trap(card, QETH_DIAGS_TRAP_ARM)) card 2320 drivers/s390/net/qeth_l3_main.c card->info.hwtrap = 0; card 2322 drivers/s390/net/qeth_l3_main.c card->info.hwtrap = 0; card 2324 drivers/s390/net/qeth_l3_main.c card->state = CARD_STATE_HARDSETUP; card 2325 drivers/s390/net/qeth_l3_main.c qeth_print_status_message(card); card 2328 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 2, "softsetp"); card 2330 drivers/s390/net/qeth_l3_main.c rc = qeth_l3_setadapter_parms(card); card 2332 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT_(card, 2, "2err%04x", rc); card 2333 drivers/s390/net/qeth_l3_main.c if (!card->options.sniffer) { card 2334 drivers/s390/net/qeth_l3_main.c rc = qeth_l3_start_ipassists(card); card 2336 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT_(card, 2, "3err%d", rc); card 2339 drivers/s390/net/qeth_l3_main.c rc = qeth_l3_setrouting_v4(card); card 2341 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT_(card, 2, "4err%04x", rc); card 2342 drivers/s390/net/qeth_l3_main.c rc = qeth_l3_setrouting_v6(card); card 2344 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT_(card, 2, "5err%04x", rc); card 2347 drivers/s390/net/qeth_l3_main.c rc = qeth_init_qdio_queues(card); card 2349 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT_(card, 2, "6err%d", rc); card 2353 drivers/s390/net/qeth_l3_main.c card->state = CARD_STATE_SOFTSETUP; card 2355 drivers/s390/net/qeth_l3_main.c qeth_set_allowed_threads(card, 0xffffffff, 0); card 2356 drivers/s390/net/qeth_l3_main.c qeth_l3_recover_ip(card); card 2359 drivers/s390/net/qeth_l3_main.c rc = qeth_l3_setup_netdev(card, carrier_ok); card 2372 drivers/s390/net/qeth_l3_main.c if (card->info.open_when_online) { card 2373 drivers/s390/net/qeth_l3_main.c card->info.open_when_online = 0; card 2378 drivers/s390/net/qeth_l3_main.c qeth_trace_features(card); card 2381 drivers/s390/net/qeth_l3_main.c mutex_unlock(&card->conf_mutex); card 2382 drivers/s390/net/qeth_l3_main.c mutex_unlock(&card->discipline_mutex); card 2385 drivers/s390/net/qeth_l3_main.c qeth_l3_stop_card(card); card 2386 drivers/s390/net/qeth_l3_main.c qeth_stop_channel(&card->data); card 2387 drivers/s390/net/qeth_l3_main.c qeth_stop_channel(&card->write); card 2388 drivers/s390/net/qeth_l3_main.c qeth_stop_channel(&card->read); card 2389 drivers/s390/net/qeth_l3_main.c qdio_free(CARD_DDEV(card)); card 2391 drivers/s390/net/qeth_l3_main.c mutex_unlock(&card->conf_mutex); card 2392 drivers/s390/net/qeth_l3_main.c mutex_unlock(&card->discipline_mutex); card 2399 drivers/s390/net/qeth_l3_main.c struct qeth_card *card = dev_get_drvdata(&cgdev->dev); card 2402 drivers/s390/net/qeth_l3_main.c mutex_lock(&card->discipline_mutex); card 2403 drivers/s390/net/qeth_l3_main.c mutex_lock(&card->conf_mutex); card 2404 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 3, "setoffl"); card 2406 drivers/s390/net/qeth_l3_main.c if ((!recovery_mode && card->info.hwtrap) || card->info.hwtrap == 2) { card 2407 drivers/s390/net/qeth_l3_main.c qeth_hw_trap(card, QETH_DIAGS_TRAP_DISARM); card 2408 drivers/s390/net/qeth_l3_main.c card->info.hwtrap = 1; card 2412 drivers/s390/net/qeth_l3_main.c card->info.open_when_online = card->dev->flags & IFF_UP; card 2413 drivers/s390/net/qeth_l3_main.c dev_close(card->dev); card 2414 drivers/s390/net/qeth_l3_main.c netif_device_detach(card->dev); card 2415 drivers/s390/net/qeth_l3_main.c netif_carrier_off(card->dev); card 2418 drivers/s390/net/qeth_l3_main.c qeth_l3_stop_card(card); card 2419 drivers/s390/net/qeth_l3_main.c if (card->options.cq == QETH_CQ_ENABLED) { card 2421 drivers/s390/net/qeth_l3_main.c call_netdevice_notifiers(NETDEV_REBOOT, card->dev); card 2425 drivers/s390/net/qeth_l3_main.c rc = qeth_stop_channel(&card->data); card 2426 drivers/s390/net/qeth_l3_main.c rc2 = qeth_stop_channel(&card->write); card 2427 drivers/s390/net/qeth_l3_main.c rc3 = qeth_stop_channel(&card->read); card 2431 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT_(card, 2, "1err%d", rc); card 2432 drivers/s390/net/qeth_l3_main.c qdio_free(CARD_DDEV(card)); card 2436 drivers/s390/net/qeth_l3_main.c mutex_unlock(&card->conf_mutex); card 2437 drivers/s390/net/qeth_l3_main.c mutex_unlock(&card->discipline_mutex); card 2448 drivers/s390/net/qeth_l3_main.c struct qeth_card *card; card 2451 drivers/s390/net/qeth_l3_main.c card = (struct qeth_card *) ptr; card 2452 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 2, "recover1"); card 2453 drivers/s390/net/qeth_l3_main.c QETH_CARD_HEX(card, 2, &card, sizeof(void *)); card 2454 drivers/s390/net/qeth_l3_main.c if (!qeth_do_run_thread(card, QETH_RECOVER_THREAD)) card 2456 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 2, "recover2"); card 2457 drivers/s390/net/qeth_l3_main.c dev_warn(&card->gdev->dev, card 2459 drivers/s390/net/qeth_l3_main.c __qeth_l3_set_offline(card->gdev, 1); card 2460 drivers/s390/net/qeth_l3_main.c rc = qeth_l3_set_online(card->gdev); card 2462 drivers/s390/net/qeth_l3_main.c dev_info(&card->gdev->dev, card 2465 drivers/s390/net/qeth_l3_main.c ccwgroup_set_offline(card->gdev); card 2466 drivers/s390/net/qeth_l3_main.c dev_warn(&card->gdev->dev, "The qeth device driver " card 2469 drivers/s390/net/qeth_l3_main.c qeth_clear_thread_start_bit(card, QETH_RECOVER_THREAD); card 2470 drivers/s390/net/qeth_l3_main.c qeth_clear_thread_running_bit(card, QETH_RECOVER_THREAD); card 2475 drivers/s390/net/qeth_l3_main.c static int qeth_l3_control_event(struct qeth_card *card, card 2494 drivers/s390/net/qeth_l3_main.c static int qeth_l3_handle_ip_event(struct qeth_card *card, card 2500 drivers/s390/net/qeth_l3_main.c qeth_l3_modify_ip(card, addr, true); card 2503 drivers/s390/net/qeth_l3_main.c qeth_l3_modify_ip(card, addr, false); card 2512 drivers/s390/net/qeth_l3_main.c struct qeth_card *card; card 2522 drivers/s390/net/qeth_l3_main.c qeth_l3_modify_ip(ip_work->card, &ip_work->addr, true); card 2530 drivers/s390/net/qeth_l3_main.c qeth_l3_modify_ip(ip_work->card, &ip_work->addr, false); card 2551 drivers/s390/net/qeth_l3_main.c struct qeth_card *card; card 2556 drivers/s390/net/qeth_l3_main.c card = qeth_l3_get_card_from_dev(dev); card 2557 drivers/s390/net/qeth_l3_main.c if (!card) card 2559 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 3, "ipevent"); card 2565 drivers/s390/net/qeth_l3_main.c return qeth_l3_handle_ip_event(card, &addr, event); card 2579 drivers/s390/net/qeth_l3_main.c struct qeth_card *card; card 2584 drivers/s390/net/qeth_l3_main.c card = qeth_l3_get_card_from_dev(dev); card 2585 drivers/s390/net/qeth_l3_main.c if (!card) card 2587 drivers/s390/net/qeth_l3_main.c QETH_CARD_TEXT(card, 3, "ip6event"); card 2588 drivers/s390/net/qeth_l3_main.c if (!qeth_is_supported(card, IPA_IPV6)) card 2600 drivers/s390/net/qeth_l3_main.c ip_work->card = card; card 2606 drivers/s390/net/qeth_l3_main.c queue_work(card->cmd_wq, &ip_work->work); card 30 drivers/s390/net/qeth_l3_sys.c static ssize_t qeth_l3_dev_route_show(struct qeth_card *card, card 39 drivers/s390/net/qeth_l3_sys.c if (card->info.broadcast_capable == QETH_BROADCAST_WITHOUT_ECHO) card 44 drivers/s390/net/qeth_l3_sys.c if (card->info.broadcast_capable == QETH_BROADCAST_WITHOUT_ECHO) card 49 drivers/s390/net/qeth_l3_sys.c if (card->info.broadcast_capable == QETH_BROADCAST_WITHOUT_ECHO) card 61 drivers/s390/net/qeth_l3_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 63 drivers/s390/net/qeth_l3_sys.c if (!card) card 66 drivers/s390/net/qeth_l3_sys.c return qeth_l3_dev_route_show(card, &card->options.route4, buf); card 69 drivers/s390/net/qeth_l3_sys.c static ssize_t qeth_l3_dev_route_store(struct qeth_card *card, card 76 drivers/s390/net/qeth_l3_sys.c mutex_lock(&card->conf_mutex); card 93 drivers/s390/net/qeth_l3_sys.c if (qeth_card_hw_is_reachable(card) && card 96 drivers/s390/net/qeth_l3_sys.c rc = qeth_l3_setrouting_v4(card); card 98 drivers/s390/net/qeth_l3_sys.c rc = qeth_l3_setrouting_v6(card); card 103 drivers/s390/net/qeth_l3_sys.c mutex_unlock(&card->conf_mutex); card 110 drivers/s390/net/qeth_l3_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 112 drivers/s390/net/qeth_l3_sys.c if (!card) card 115 drivers/s390/net/qeth_l3_sys.c return qeth_l3_dev_route_store(card, &card->options.route4, card 125 drivers/s390/net/qeth_l3_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 127 drivers/s390/net/qeth_l3_sys.c if (!card) card 130 drivers/s390/net/qeth_l3_sys.c return qeth_l3_dev_route_show(card, &card->options.route6, buf); card 136 drivers/s390/net/qeth_l3_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 138 drivers/s390/net/qeth_l3_sys.c if (!card) card 141 drivers/s390/net/qeth_l3_sys.c return qeth_l3_dev_route_store(card, &card->options.route6, card 151 drivers/s390/net/qeth_l3_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 153 drivers/s390/net/qeth_l3_sys.c if (!card) card 156 drivers/s390/net/qeth_l3_sys.c return sprintf(buf, "%i\n", card->options.fake_broadcast? 1:0); card 162 drivers/s390/net/qeth_l3_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 166 drivers/s390/net/qeth_l3_sys.c if (!card) card 169 drivers/s390/net/qeth_l3_sys.c mutex_lock(&card->conf_mutex); card 170 drivers/s390/net/qeth_l3_sys.c if (card->state != CARD_STATE_DOWN) { card 177 drivers/s390/net/qeth_l3_sys.c card->options.fake_broadcast = i; card 181 drivers/s390/net/qeth_l3_sys.c mutex_unlock(&card->conf_mutex); card 191 drivers/s390/net/qeth_l3_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 193 drivers/s390/net/qeth_l3_sys.c if (!card) card 196 drivers/s390/net/qeth_l3_sys.c return sprintf(buf, "%i\n", card->options.sniffer ? 1 : 0); card 202 drivers/s390/net/qeth_l3_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 206 drivers/s390/net/qeth_l3_sys.c if (!card) card 209 drivers/s390/net/qeth_l3_sys.c if (!IS_IQD(card)) card 211 drivers/s390/net/qeth_l3_sys.c if (card->options.cq == QETH_CQ_ENABLED) card 214 drivers/s390/net/qeth_l3_sys.c mutex_lock(&card->conf_mutex); card 215 drivers/s390/net/qeth_l3_sys.c if (card->state != CARD_STATE_DOWN) { card 227 drivers/s390/net/qeth_l3_sys.c card->options.sniffer = i; card 230 drivers/s390/net/qeth_l3_sys.c qdio_get_ssqd_desc(CARD_DDEV(card), &card->ssqd); card 231 drivers/s390/net/qeth_l3_sys.c if (card->ssqd.qdioac2 & QETH_SNIFF_AVAIL) { card 232 drivers/s390/net/qeth_l3_sys.c card->options.sniffer = i; card 233 drivers/s390/net/qeth_l3_sys.c if (card->qdio.init_pool.buf_count != card 235 drivers/s390/net/qeth_l3_sys.c qeth_realloc_buffer_pool(card, card 244 drivers/s390/net/qeth_l3_sys.c mutex_unlock(&card->conf_mutex); card 255 drivers/s390/net/qeth_l3_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 258 drivers/s390/net/qeth_l3_sys.c if (!card) card 261 drivers/s390/net/qeth_l3_sys.c if (!IS_IQD(card)) card 264 drivers/s390/net/qeth_l3_sys.c memcpy(tmp_hsuid, card->options.hsuid, sizeof(tmp_hsuid)); card 272 drivers/s390/net/qeth_l3_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 276 drivers/s390/net/qeth_l3_sys.c if (!card) card 279 drivers/s390/net/qeth_l3_sys.c if (!IS_IQD(card)) card 282 drivers/s390/net/qeth_l3_sys.c mutex_lock(&card->conf_mutex); card 283 drivers/s390/net/qeth_l3_sys.c if (card->state != CARD_STATE_DOWN) { card 288 drivers/s390/net/qeth_l3_sys.c if (card->options.sniffer) { card 293 drivers/s390/net/qeth_l3_sys.c if (card->options.cq == QETH_CQ_NOTAVAILABLE) { card 304 drivers/s390/net/qeth_l3_sys.c if (card->options.hsuid[0]) card 306 drivers/s390/net/qeth_l3_sys.c qeth_l3_modify_hsuid(card, false); card 310 drivers/s390/net/qeth_l3_sys.c card->options.hsuid[0] = '\0'; card 311 drivers/s390/net/qeth_l3_sys.c memcpy(card->dev->perm_addr, card->options.hsuid, 9); card 312 drivers/s390/net/qeth_l3_sys.c qeth_configure_cq(card, QETH_CQ_DISABLED); card 316 drivers/s390/net/qeth_l3_sys.c if (qeth_configure_cq(card, QETH_CQ_ENABLED)) { card 321 drivers/s390/net/qeth_l3_sys.c snprintf(card->options.hsuid, sizeof(card->options.hsuid), card 323 drivers/s390/net/qeth_l3_sys.c ASCEBC(card->options.hsuid, 8); card 324 drivers/s390/net/qeth_l3_sys.c memcpy(card->dev->perm_addr, card->options.hsuid, 9); card 326 drivers/s390/net/qeth_l3_sys.c rc = qeth_l3_modify_hsuid(card, true); card 329 drivers/s390/net/qeth_l3_sys.c mutex_unlock(&card->conf_mutex); card 353 drivers/s390/net/qeth_l3_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 355 drivers/s390/net/qeth_l3_sys.c if (!card) card 358 drivers/s390/net/qeth_l3_sys.c return sprintf(buf, "%i\n", card->ipato.enabled? 1:0); card 364 drivers/s390/net/qeth_l3_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 368 drivers/s390/net/qeth_l3_sys.c if (!card) card 371 drivers/s390/net/qeth_l3_sys.c mutex_lock(&card->conf_mutex); card 372 drivers/s390/net/qeth_l3_sys.c if (card->state != CARD_STATE_DOWN) { card 378 drivers/s390/net/qeth_l3_sys.c enable = !card->ipato.enabled; card 384 drivers/s390/net/qeth_l3_sys.c if (card->ipato.enabled != enable) { card 385 drivers/s390/net/qeth_l3_sys.c card->ipato.enabled = enable; card 386 drivers/s390/net/qeth_l3_sys.c mutex_lock(&card->ip_lock); card 387 drivers/s390/net/qeth_l3_sys.c qeth_l3_update_ipato(card); card 388 drivers/s390/net/qeth_l3_sys.c mutex_unlock(&card->ip_lock); card 391 drivers/s390/net/qeth_l3_sys.c mutex_unlock(&card->conf_mutex); card 402 drivers/s390/net/qeth_l3_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 404 drivers/s390/net/qeth_l3_sys.c if (!card) card 407 drivers/s390/net/qeth_l3_sys.c return sprintf(buf, "%i\n", card->ipato.invert4? 1:0); card 414 drivers/s390/net/qeth_l3_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 418 drivers/s390/net/qeth_l3_sys.c if (!card) card 421 drivers/s390/net/qeth_l3_sys.c mutex_lock(&card->conf_mutex); card 423 drivers/s390/net/qeth_l3_sys.c invert = !card->ipato.invert4; card 429 drivers/s390/net/qeth_l3_sys.c if (card->ipato.invert4 != invert) { card 430 drivers/s390/net/qeth_l3_sys.c card->ipato.invert4 = invert; card 431 drivers/s390/net/qeth_l3_sys.c mutex_lock(&card->ip_lock); card 432 drivers/s390/net/qeth_l3_sys.c qeth_l3_update_ipato(card); card 433 drivers/s390/net/qeth_l3_sys.c mutex_unlock(&card->ip_lock); card 436 drivers/s390/net/qeth_l3_sys.c mutex_unlock(&card->conf_mutex); card 444 drivers/s390/net/qeth_l3_sys.c static ssize_t qeth_l3_dev_ipato_add_show(char *buf, struct qeth_card *card, card 455 drivers/s390/net/qeth_l3_sys.c mutex_lock(&card->ip_lock); card 456 drivers/s390/net/qeth_l3_sys.c list_for_each_entry(ipatoe, &card->ipato.entries, entry) { card 468 drivers/s390/net/qeth_l3_sys.c mutex_unlock(&card->ip_lock); card 477 drivers/s390/net/qeth_l3_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 479 drivers/s390/net/qeth_l3_sys.c if (!card) card 482 drivers/s390/net/qeth_l3_sys.c return qeth_l3_dev_ipato_add_show(buf, card, QETH_PROT_IPV4); card 513 drivers/s390/net/qeth_l3_sys.c struct qeth_card *card, enum qeth_prot_versions proto) card 520 drivers/s390/net/qeth_l3_sys.c mutex_lock(&card->conf_mutex); card 534 drivers/s390/net/qeth_l3_sys.c rc = qeth_l3_add_ipato_entry(card, ipatoe); card 538 drivers/s390/net/qeth_l3_sys.c mutex_unlock(&card->conf_mutex); card 545 drivers/s390/net/qeth_l3_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 547 drivers/s390/net/qeth_l3_sys.c if (!card) card 550 drivers/s390/net/qeth_l3_sys.c return qeth_l3_dev_ipato_add_store(buf, count, card, QETH_PROT_IPV4); card 558 drivers/s390/net/qeth_l3_sys.c struct qeth_card *card, enum qeth_prot_versions proto) card 564 drivers/s390/net/qeth_l3_sys.c mutex_lock(&card->conf_mutex); card 567 drivers/s390/net/qeth_l3_sys.c rc = qeth_l3_del_ipato_entry(card, proto, addr, mask_bits); card 568 drivers/s390/net/qeth_l3_sys.c mutex_unlock(&card->conf_mutex); card 575 drivers/s390/net/qeth_l3_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 577 drivers/s390/net/qeth_l3_sys.c if (!card) card 580 drivers/s390/net/qeth_l3_sys.c return qeth_l3_dev_ipato_del_store(buf, count, card, QETH_PROT_IPV4); card 589 drivers/s390/net/qeth_l3_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 591 drivers/s390/net/qeth_l3_sys.c if (!card) card 594 drivers/s390/net/qeth_l3_sys.c return sprintf(buf, "%i\n", card->ipato.invert6? 1:0); card 600 drivers/s390/net/qeth_l3_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 604 drivers/s390/net/qeth_l3_sys.c if (!card) card 607 drivers/s390/net/qeth_l3_sys.c mutex_lock(&card->conf_mutex); card 609 drivers/s390/net/qeth_l3_sys.c invert = !card->ipato.invert6; card 615 drivers/s390/net/qeth_l3_sys.c if (card->ipato.invert6 != invert) { card 616 drivers/s390/net/qeth_l3_sys.c card->ipato.invert6 = invert; card 617 drivers/s390/net/qeth_l3_sys.c mutex_lock(&card->ip_lock); card 618 drivers/s390/net/qeth_l3_sys.c qeth_l3_update_ipato(card); card 619 drivers/s390/net/qeth_l3_sys.c mutex_unlock(&card->ip_lock); card 622 drivers/s390/net/qeth_l3_sys.c mutex_unlock(&card->conf_mutex); card 634 drivers/s390/net/qeth_l3_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 636 drivers/s390/net/qeth_l3_sys.c if (!card) card 639 drivers/s390/net/qeth_l3_sys.c return qeth_l3_dev_ipato_add_show(buf, card, QETH_PROT_IPV6); card 645 drivers/s390/net/qeth_l3_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 647 drivers/s390/net/qeth_l3_sys.c if (!card) card 650 drivers/s390/net/qeth_l3_sys.c return qeth_l3_dev_ipato_add_store(buf, count, card, QETH_PROT_IPV6); card 660 drivers/s390/net/qeth_l3_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 662 drivers/s390/net/qeth_l3_sys.c if (!card) card 665 drivers/s390/net/qeth_l3_sys.c return qeth_l3_dev_ipato_del_store(buf, count, card, QETH_PROT_IPV6); card 691 drivers/s390/net/qeth_l3_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 698 drivers/s390/net/qeth_l3_sys.c if (!card) card 703 drivers/s390/net/qeth_l3_sys.c mutex_lock(&card->ip_lock); card 704 drivers/s390/net/qeth_l3_sys.c hash_for_each(card->ip_htable, i, ipaddr, hnode) { card 717 drivers/s390/net/qeth_l3_sys.c mutex_unlock(&card->ip_lock); card 741 drivers/s390/net/qeth_l3_sys.c struct qeth_card *card, enum qeth_prot_versions proto) card 746 drivers/s390/net/qeth_l3_sys.c mutex_lock(&card->conf_mutex); card 749 drivers/s390/net/qeth_l3_sys.c rc = qeth_l3_modify_rxip_vipa(card, true, addr, card 751 drivers/s390/net/qeth_l3_sys.c mutex_unlock(&card->conf_mutex); card 758 drivers/s390/net/qeth_l3_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 760 drivers/s390/net/qeth_l3_sys.c if (!card) card 763 drivers/s390/net/qeth_l3_sys.c return qeth_l3_dev_vipa_add_store(buf, count, card, QETH_PROT_IPV4); card 771 drivers/s390/net/qeth_l3_sys.c struct qeth_card *card, enum qeth_prot_versions proto) card 776 drivers/s390/net/qeth_l3_sys.c mutex_lock(&card->conf_mutex); card 779 drivers/s390/net/qeth_l3_sys.c rc = qeth_l3_modify_rxip_vipa(card, false, addr, card 781 drivers/s390/net/qeth_l3_sys.c mutex_unlock(&card->conf_mutex); card 788 drivers/s390/net/qeth_l3_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 790 drivers/s390/net/qeth_l3_sys.c if (!card) card 793 drivers/s390/net/qeth_l3_sys.c return qeth_l3_dev_vipa_del_store(buf, count, card, QETH_PROT_IPV4); card 810 drivers/s390/net/qeth_l3_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 812 drivers/s390/net/qeth_l3_sys.c if (!card) card 815 drivers/s390/net/qeth_l3_sys.c return qeth_l3_dev_vipa_add_store(buf, count, card, QETH_PROT_IPV6); card 825 drivers/s390/net/qeth_l3_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 827 drivers/s390/net/qeth_l3_sys.c if (!card) card 830 drivers/s390/net/qeth_l3_sys.c return qeth_l3_dev_vipa_del_store(buf, count, card, QETH_PROT_IPV6); card 884 drivers/s390/net/qeth_l3_sys.c struct qeth_card *card, enum qeth_prot_versions proto) card 889 drivers/s390/net/qeth_l3_sys.c mutex_lock(&card->conf_mutex); card 892 drivers/s390/net/qeth_l3_sys.c rc = qeth_l3_modify_rxip_vipa(card, true, addr, card 894 drivers/s390/net/qeth_l3_sys.c mutex_unlock(&card->conf_mutex); card 901 drivers/s390/net/qeth_l3_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 903 drivers/s390/net/qeth_l3_sys.c if (!card) card 906 drivers/s390/net/qeth_l3_sys.c return qeth_l3_dev_rxip_add_store(buf, count, card, QETH_PROT_IPV4); card 914 drivers/s390/net/qeth_l3_sys.c struct qeth_card *card, enum qeth_prot_versions proto) card 919 drivers/s390/net/qeth_l3_sys.c mutex_lock(&card->conf_mutex); card 922 drivers/s390/net/qeth_l3_sys.c rc = qeth_l3_modify_rxip_vipa(card, false, addr, card 924 drivers/s390/net/qeth_l3_sys.c mutex_unlock(&card->conf_mutex); card 931 drivers/s390/net/qeth_l3_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 933 drivers/s390/net/qeth_l3_sys.c if (!card) card 936 drivers/s390/net/qeth_l3_sys.c return qeth_l3_dev_rxip_del_store(buf, count, card, QETH_PROT_IPV4); card 953 drivers/s390/net/qeth_l3_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 955 drivers/s390/net/qeth_l3_sys.c if (!card) card 958 drivers/s390/net/qeth_l3_sys.c return qeth_l3_dev_rxip_add_store(buf, count, card, QETH_PROT_IPV6); card 968 drivers/s390/net/qeth_l3_sys.c struct qeth_card *card = dev_get_drvdata(dev); card 970 drivers/s390/net/qeth_l3_sys.c if (!card) card 973 drivers/s390/net/qeth_l3_sys.c return qeth_l3_dev_rxip_del_store(buf, count, card, QETH_PROT_IPV6); card 829 drivers/scsi/FlashPoint.c static void FPT_queueAddSccb(struct sccb *p_SCCB, unsigned char card); card 315 drivers/scsi/arm/acornscsi.c host->card.page_reg = 0x80; card 316 drivers/scsi/arm/acornscsi.c writeb(host->card.page_reg, host->fast + PAGE_REG); card 321 drivers/scsi/arm/acornscsi.c host->card.page_reg = 0; card 322 drivers/scsi/arm/acornscsi.c writeb(host->card.page_reg, host->fast + PAGE_REG); card 369 drivers/scsi/arm/acornscsi.c host->card.page_reg = 0x40; card 370 drivers/scsi/arm/acornscsi.c writeb(host->card.page_reg, host->fast + PAGE_REG); card 912 drivers/scsi/arm/acornscsi.c writeb((page & 0x3f) | host->card.page_reg, host->fast + PAGE_REG); card 931 drivers/scsi/arm/acornscsi.c writeb((page & 0x3f) | host->card.page_reg, host->fast + PAGE_REG); card 934 drivers/scsi/arm/acornscsi.c writeb(host->card.page_reg, host->fast + PAGE_REG); card 957 drivers/scsi/arm/acornscsi.c writeb((page & 0x3f) | host->card.page_reg, host->fast + PAGE_REG); card 976 drivers/scsi/arm/acornscsi.c writeb((page & 0x3f) | host->card.page_reg, host->fast + PAGE_REG); card 979 drivers/scsi/arm/acornscsi.c writeb(host->card.page_reg, host->fast + PAGE_REG); card 344 drivers/scsi/arm/acornscsi.h } card; card 108 drivers/scsi/g_NCR5380.c static int card[] = { -1, -1, -1, -1, -1, -1, -1, -1 }; card 109 drivers/scsi/g_NCR5380.c module_param_array(card, int, NULL, 0); card 110 drivers/scsi/g_NCR5380.c MODULE_PARM_DESC(card, "card type (0=NCR5380, 1=NCR53C400, 2=NCR53C400A, 3=DTC3181E, 4=HP C2502)"); card 712 drivers/scsi/g_NCR5380.c irq[ndev], card[ndev]); card 782 drivers/scsi/g_NCR5380.c if (irq[0] == -1 && base[0] == 0 && card[0] == -1) { card 786 drivers/scsi/g_NCR5380.c card[0] = BOARD_NCR5380; card 788 drivers/scsi/g_NCR5380.c card[0] = BOARD_NCR53C400; card 790 drivers/scsi/g_NCR5380.c card[0] = BOARD_NCR53C400A; card 792 drivers/scsi/g_NCR5380.c card[0] = BOARD_DTC3181E; card 794 drivers/scsi/g_NCR5380.c card[0] = BOARD_HP_C2502; card 291 drivers/scsi/ufs/ufs-mediatek.c struct ufs_dev_desc *card) card 293 drivers/scsi/ufs/ufs-mediatek.c if (card->wmanufacturerid == UFS_VENDOR_SAMSUNG) card 909 drivers/scsi/ufs/ufs-qcom.c struct ufs_dev_desc *card) card 25 drivers/scsi/ufs/ufs_quirks.h struct ufs_dev_desc card; card 33 drivers/scsi/ufs/ufs_quirks.h .card.wmanufacturerid = (_vendor),\ card 34 drivers/scsi/ufs/ufs_quirks.h .card.model = (_model), \ card 6575 drivers/scsi/ufs/ufshcd.c if ((f->card.wmanufacturerid == dev_desc->wmanufacturerid || card 6576 drivers/scsi/ufs/ufshcd.c f->card.wmanufacturerid == UFS_ANY_VENDOR) && card 6578 drivers/scsi/ufs/ufshcd.c STR_PRFX_EQUAL(f->card.model, dev_desc->model)) || card 6579 drivers/scsi/ufs/ufshcd.c !strcmp(f->card.model, UFS_ANY_MODEL))) card 6732 drivers/scsi/ufs/ufshcd.c struct ufs_dev_desc *card) card 6746 drivers/scsi/ufs/ufshcd.c ufshcd_vops_apply_dev_quirks(hba, card); card 6872 drivers/scsi/ufs/ufshcd.c struct ufs_dev_desc card = {0}; card 6901 drivers/scsi/ufs/ufshcd.c ret = ufs_get_device_desc(hba, &card); card 6908 drivers/scsi/ufs/ufshcd.c ufs_fixup_device_setup(hba, &card); card 6909 drivers/scsi/ufs/ufshcd.c ufshcd_tune_unipro_params(hba, &card); card 6910 drivers/scsi/ufs/ufshcd.c ufs_put_device_desc(&card); card 1057 drivers/scsi/ufs/ufshcd.h struct ufs_dev_desc *card) card 1060 drivers/scsi/ufs/ufshcd.h return hba->vops->apply_dev_quirks(hba, card); card 790 drivers/scsi/wd719x.c u8 card = wd719x_readb(wd, WD719X_PCI_GPIO_CONTROL); card 792 drivers/scsi/wd719x.c card |= WD719X_GPIO_ID_BITS; card 793 drivers/scsi/wd719x.c wd719x_writeb(wd, WD719X_PCI_GPIO_CONTROL, card); card 794 drivers/scsi/wd719x.c card = wd719x_readb(wd, WD719X_PCI_GPIO_DATA) & WD719X_GPIO_ID_BITS; card 795 drivers/scsi/wd719x.c switch (card) { card 803 drivers/scsi/wd719x.c dev_warn(&wd->pdev->dev, "unknown card type 0x%x\n", card); card 233 drivers/staging/comedi/drivers/ni_atmio.c if (!isapnp_dev || !isapnp_dev->card) card 82 drivers/staging/fwserial/fwserial.c typedef void (*fwtty_transaction_cb)(struct fw_card *card, int rcode, card 124 drivers/staging/fwserial/fwserial.c static struct fwtty_peer *__fwserial_peer_by_node_id(struct fw_card *card, card 214 drivers/staging/fwserial/fwserial.c static void fwtty_common_callback(struct fw_card *card, int rcode, card 223 drivers/staging/fwserial/fwserial.c txn->callback(card, rcode, payload, len, txn); card 244 drivers/staging/fwserial/fwserial.c fw_send_request(peer->serial->card, &txn->fw_txn, tcode, card 263 drivers/staging/fwserial/fwserial.c fw_send_request(peer->serial->card, &txn->fw_txn, tcode, card 598 drivers/staging/fwserial/fwserial.c static void fwtty_port_handler(struct fw_card *card, card 613 drivers/staging/fwserial/fwserial.c peer = __fwserial_peer_by_node_id(card, generation, source); card 656 drivers/staging/fwserial/fwserial.c fw_send_response(card, request, rcode); card 667 drivers/staging/fwserial/fwserial.c static void fwtty_tx_complete(struct fw_card *card, int rcode, card 1492 drivers/staging/fwserial/fwserial.c dev_name(serial->card->device), card 1493 drivers/staging/fwserial/fwserial.c (unsigned long long)serial->card->guid); card 1656 drivers/staging/fwserial/fwserial.c rcode = fw_run_transaction(peer->serial->card, card 1867 drivers/staging/fwserial/fwserial.c static struct fw_serial *fwserial_lookup(struct fw_card *card) card 1872 drivers/staging/fwserial/fwserial.c if (card == serial->card) card 1885 drivers/staging/fwserial/fwserial.c static struct fw_serial *__fwserial_lookup_rcu(struct fw_card *card) card 1890 drivers/staging/fwserial/fwserial.c if (card == serial->card) card 1909 drivers/staging/fwserial/fwserial.c static struct fwtty_peer *__fwserial_peer_by_node_id(struct fw_card *card, card 1915 drivers/staging/fwserial/fwserial.c serial = __fwserial_lookup_rcu(card); card 1923 drivers/staging/fwserial/fwserial.c fwtty_err(card, "unknown card (guid %016llx)\n", card 1924 drivers/staging/fwserial/fwserial.c (unsigned long long)card->guid); card 1940 drivers/staging/fwserial/fwserial.c static void __dump_peer_list(struct fw_card *card) card 1945 drivers/staging/fwserial/fwserial.c serial = __fwserial_lookup_rcu(card); card 1953 drivers/staging/fwserial/fwserial.c fwtty_dbg(card, "peer(%d:%x) guid: %016llx\n", card 2143 drivers/staging/fwserial/fwserial.c struct fw_card *card = parent->card; card 2155 drivers/staging/fwserial/fwserial.c serial->card = card; card 2208 drivers/staging/fwserial/fwserial.c card->device); card 2226 drivers/staging/fwserial/fwserial.c card->device); card 2251 drivers/staging/fwserial/fwserial.c dev_name(card->device), (unsigned long long)card->guid); card 2324 drivers/staging/fwserial/fwserial.c serial = fwserial_lookup(fw_parent_device(unit)->card); card 2510 drivers/staging/fwserial/fwserial.c if (peer->serial->card->guid > peer->guid) card 2571 drivers/staging/fwserial/fwserial.c if (peer->serial->card->guid > peer->guid) card 2708 drivers/staging/fwserial/fwserial.c static void fwserial_mgmt_handler(struct fw_card *card, card 2721 drivers/staging/fwserial/fwserial.c peer = __fwserial_peer_by_node_id(card, generation, source); card 2723 drivers/staging/fwserial/fwserial.c fwtty_dbg(card, "peer(%d:%x) not found\n", generation, source); card 2724 drivers/staging/fwserial/fwserial.c __dump_peer_list(card); card 2739 drivers/staging/fwserial/fwserial.c fw_send_response(card, request, rcode); card 325 drivers/staging/fwserial/fwserial.h struct fw_card *card; card 797 drivers/staging/greybus/audio_codec.c struct snd_card *card; card 806 drivers/staging/greybus/audio_codec.c card = codec->card->snd_card; card 808 drivers/staging/greybus/audio_codec.c down_write(&card->controls_rwsem); card 814 drivers/staging/greybus/audio_codec.c up_write(&card->controls_rwsem); card 820 drivers/staging/greybus/audio_codec.c up_write(&card->controls_rwsem); card 835 drivers/staging/greybus/audio_codec.c if (codec->card->instantiated) { card 836 drivers/staging/greybus/audio_codec.c snd_soc_dapm_link_component_dai_widgets(codec->card, card 846 drivers/staging/greybus/audio_codec.c snd_device_register(codec->card->snd_card, card 856 drivers/staging/greybus/audio_codec.c if (codec->card->instantiated) card 860 drivers/staging/greybus/audio_codec.c up_write(&card->controls_rwsem); card 930 drivers/staging/greybus/audio_codec.c struct snd_card *card = codec->card->snd_card; card 936 drivers/staging/greybus/audio_codec.c down_write(&card->controls_rwsem); card 956 drivers/staging/greybus/audio_codec.c snd_device_free(codec->card->snd_card, jack->jack); card 983 drivers/staging/greybus/audio_codec.c up_write(&card->controls_rwsem); card 71 drivers/staging/isdn/avm/avmcard.h struct avmcard *card; card 543 drivers/staging/isdn/avm/avmcard.h void b1_free_card(avmcard *card); card 545 drivers/staging/isdn/avm/avmcard.h void b1_getrevision(avmcard *card); card 546 drivers/staging/isdn/avm/avmcard.h int b1_load_t4file(avmcard *card, capiloaddatapart *t4file); card 547 drivers/staging/isdn/avm/avmcard.h int b1_load_config(avmcard *card, capiloaddatapart *config); card 548 drivers/staging/isdn/avm/avmcard.h int b1_loaded(avmcard *card); card 556 drivers/staging/isdn/avm/avmcard.h void b1_parse_version(avmctrl_info *card); card 566 drivers/staging/isdn/avm/avmcard.h int b1pciv4_detect(avmcard *card); card 567 drivers/staging/isdn/avm/avmcard.h int t1pci_detect(avmcard *card); card 568 drivers/staging/isdn/avm/avmcard.h void b1dma_reset(avmcard *card); card 67 drivers/staging/isdn/avm/b1.c avmcard *card; card 71 drivers/staging/isdn/avm/b1.c card = kzalloc(sizeof(*card), GFP_KERNEL); card 72 drivers/staging/isdn/avm/b1.c if (!card) card 77 drivers/staging/isdn/avm/b1.c kfree(card); card 81 drivers/staging/isdn/avm/b1.c card->ctrlinfo = cinfo; card 84 drivers/staging/isdn/avm/b1.c cinfo[i].card = card; card 86 drivers/staging/isdn/avm/b1.c spin_lock_init(&card->lock); card 87 drivers/staging/isdn/avm/b1.c card->nr_controllers = nr_controllers; card 89 drivers/staging/isdn/avm/b1.c return card; card 94 drivers/staging/isdn/avm/b1.c void b1_free_card(avmcard *card) card 96 drivers/staging/isdn/avm/b1.c kfree(card->ctrlinfo); card 97 drivers/staging/isdn/avm/b1.c kfree(card); card 145 drivers/staging/isdn/avm/b1.c void b1_getrevision(avmcard *card) card 147 drivers/staging/isdn/avm/b1.c card->class = inb(card->port + B1_ANALYSE); card 148 drivers/staging/isdn/avm/b1.c card->revision = inb(card->port + B1_REVISION); card 152 drivers/staging/isdn/avm/b1.c int b1_load_t4file(avmcard *card, capiloaddatapart *t4file) card 157 drivers/staging/isdn/avm/b1.c unsigned int base = card->port; card 171 drivers/staging/isdn/avm/b1.c card->name); card 187 drivers/staging/isdn/avm/b1.c card->name); card 194 drivers/staging/isdn/avm/b1.c int b1_load_config(avmcard *card, capiloaddatapart *config) card 198 drivers/staging/isdn/avm/b1.c unsigned int base = card->port; card 245 drivers/staging/isdn/avm/b1.c int b1_loaded(avmcard *card) card 247 drivers/staging/isdn/avm/b1.c unsigned int base = card->port; card 258 drivers/staging/isdn/avm/b1.c card->name); card 268 drivers/staging/isdn/avm/b1.c card->name, ans); card 272 drivers/staging/isdn/avm/b1.c printk(KERN_ERR "%s: b1_loaded: firmware not running\n", card->name); card 281 drivers/staging/isdn/avm/b1.c avmcard *card = cinfo->card; card 282 drivers/staging/isdn/avm/b1.c unsigned int port = card->port; card 288 drivers/staging/isdn/avm/b1.c if ((retval = b1_load_t4file(card, &data->firmware))) { card 291 drivers/staging/isdn/avm/b1.c card->name); card 298 drivers/staging/isdn/avm/b1.c if ((retval = b1_load_config(card, &data->configuration))) { card 301 drivers/staging/isdn/avm/b1.c card->name); card 306 drivers/staging/isdn/avm/b1.c if (!b1_loaded(card)) { card 307 drivers/staging/isdn/avm/b1.c printk(KERN_ERR "%s: failed to load t4file.\n", card->name); card 311 drivers/staging/isdn/avm/b1.c spin_lock_irqsave(&card->lock, flags); card 312 drivers/staging/isdn/avm/b1.c b1_setinterrupt(port, card->irq, card->cardtype); card 317 drivers/staging/isdn/avm/b1.c spin_unlock_irqrestore(&card->lock, flags); card 325 drivers/staging/isdn/avm/b1.c avmcard *card = cinfo->card; card 326 drivers/staging/isdn/avm/b1.c unsigned int port = card->port; card 333 drivers/staging/isdn/avm/b1.c spin_lock_irqsave(&card->lock, flags); card 335 drivers/staging/isdn/avm/b1.c spin_unlock_irqrestore(&card->lock, flags); card 344 drivers/staging/isdn/avm/b1.c avmcard *card = cinfo->card; card 345 drivers/staging/isdn/avm/b1.c unsigned int port = card->port; card 353 drivers/staging/isdn/avm/b1.c spin_lock_irqsave(&card->lock, flags); card 360 drivers/staging/isdn/avm/b1.c spin_unlock_irqrestore(&card->lock, flags); card 366 drivers/staging/isdn/avm/b1.c avmcard *card = cinfo->card; card 367 drivers/staging/isdn/avm/b1.c unsigned int port = card->port; card 370 drivers/staging/isdn/avm/b1.c spin_lock_irqsave(&card->lock, flags); card 374 drivers/staging/isdn/avm/b1.c spin_unlock_irqrestore(&card->lock, flags); card 380 drivers/staging/isdn/avm/b1.c avmcard *card = cinfo->card; card 381 drivers/staging/isdn/avm/b1.c unsigned int port = card->port; card 388 drivers/staging/isdn/avm/b1.c spin_lock_irqsave(&card->lock, flags); card 395 drivers/staging/isdn/avm/b1.c spin_unlock_irqrestore(&card->lock, flags); card 408 drivers/staging/isdn/avm/b1.c spin_unlock_irqrestore(&card->lock, flags); card 419 drivers/staging/isdn/avm/b1.c avmcard *card = cinfo->card; card 460 drivers/staging/isdn/avm/b1.c card->name, ctrl->cnr, cinfo->cardname); card 465 drivers/staging/isdn/avm/b1.c card->name, card 479 drivers/staging/isdn/avm/b1.c card->name, card 492 drivers/staging/isdn/avm/b1.c avmcard *card = devptr; card 493 drivers/staging/isdn/avm/b1.c avmctrl_info *cinfo = &card->ctrlinfo[0]; card 505 drivers/staging/isdn/avm/b1.c spin_lock_irqsave(&card->lock, flags); card 507 drivers/staging/isdn/avm/b1.c if (!b1_rx_full(card->port)) { card 508 drivers/staging/isdn/avm/b1.c spin_unlock_irqrestore(&card->lock, flags); card 512 drivers/staging/isdn/avm/b1.c b1cmd = b1_get_byte(card->port); card 518 drivers/staging/isdn/avm/b1.c ApplId = (unsigned) b1_get_word(card->port); card 519 drivers/staging/isdn/avm/b1.c MsgLen = b1_get_slice(card->port, card->msgbuf); card 520 drivers/staging/isdn/avm/b1.c DataB3Len = b1_get_slice(card->port, card->databuf); card 521 drivers/staging/isdn/avm/b1.c spin_unlock_irqrestore(&card->lock, flags); card 524 drivers/staging/isdn/avm/b1.c memset(card->msgbuf + MsgLen, 0, 30-MsgLen); card 526 drivers/staging/isdn/avm/b1.c CAPIMSG_SETLEN(card->msgbuf, 30); card 530 drivers/staging/isdn/avm/b1.c card->name); card 532 drivers/staging/isdn/avm/b1.c skb_put_data(skb, card->msgbuf, MsgLen); card 533 drivers/staging/isdn/avm/b1.c skb_put_data(skb, card->databuf, DataB3Len); card 540 drivers/staging/isdn/avm/b1.c ApplId = (unsigned) b1_get_word(card->port); card 541 drivers/staging/isdn/avm/b1.c MsgLen = b1_get_slice(card->port, card->msgbuf); card 544 drivers/staging/isdn/avm/b1.c card->name); card 545 drivers/staging/isdn/avm/b1.c spin_unlock_irqrestore(&card->lock, flags); card 547 drivers/staging/isdn/avm/b1.c skb_put_data(skb, card->msgbuf, MsgLen); card 552 drivers/staging/isdn/avm/b1.c spin_unlock_irqrestore(&card->lock, flags); card 559 drivers/staging/isdn/avm/b1.c ApplId = b1_get_word(card->port); card 560 drivers/staging/isdn/avm/b1.c NCCI = b1_get_word(card->port); card 561 drivers/staging/isdn/avm/b1.c WindowSize = b1_get_word(card->port); card 563 drivers/staging/isdn/avm/b1.c spin_unlock_irqrestore(&card->lock, flags); card 568 drivers/staging/isdn/avm/b1.c ApplId = b1_get_word(card->port); card 569 drivers/staging/isdn/avm/b1.c NCCI = b1_get_word(card->port); card 572 drivers/staging/isdn/avm/b1.c spin_unlock_irqrestore(&card->lock, flags); card 577 drivers/staging/isdn/avm/b1.c spin_unlock_irqrestore(&card->lock, flags); card 582 drivers/staging/isdn/avm/b1.c spin_unlock_irqrestore(&card->lock, flags); card 588 drivers/staging/isdn/avm/b1.c cinfo->versionlen = b1_get_slice(card->port, cinfo->versionbuf); card 589 drivers/staging/isdn/avm/b1.c spin_unlock_irqrestore(&card->lock, flags); card 592 drivers/staging/isdn/avm/b1.c card->name, card 599 drivers/staging/isdn/avm/b1.c ApplId = (unsigned) b1_get_word(card->port); card 600 drivers/staging/isdn/avm/b1.c MsgLen = b1_get_slice(card->port, card->msgbuf); card 601 drivers/staging/isdn/avm/b1.c spin_unlock_irqrestore(&card->lock, flags); card 602 drivers/staging/isdn/avm/b1.c card->msgbuf[MsgLen] = 0; card 604 drivers/staging/isdn/avm/b1.c && (card->msgbuf[MsgLen - 1] == '\n' card 605 drivers/staging/isdn/avm/b1.c || card->msgbuf[MsgLen - 1] == '\r')) { card 606 drivers/staging/isdn/avm/b1.c card->msgbuf[MsgLen - 1] = 0; card 610 drivers/staging/isdn/avm/b1.c card->name, ApplId, card->msgbuf); card 614 drivers/staging/isdn/avm/b1.c MsgLen = b1_get_slice(card->port, card->msgbuf); card 615 drivers/staging/isdn/avm/b1.c spin_unlock_irqrestore(&card->lock, flags); card 616 drivers/staging/isdn/avm/b1.c card->msgbuf[MsgLen] = 0; card 618 drivers/staging/isdn/avm/b1.c && (card->msgbuf[MsgLen - 1] == '\n' card 619 drivers/staging/isdn/avm/b1.c || card->msgbuf[MsgLen - 1] == '\r')) { card 620 drivers/staging/isdn/avm/b1.c card->msgbuf[MsgLen - 1] = 0; card 623 drivers/staging/isdn/avm/b1.c printk(KERN_INFO "%s: DEBUG: %s\n", card->name, card->msgbuf); card 627 drivers/staging/isdn/avm/b1.c spin_unlock_irqrestore(&card->lock, flags); card 628 drivers/staging/isdn/avm/b1.c printk(KERN_ERR "%s: card removed ?\n", card->name); card 631 drivers/staging/isdn/avm/b1.c spin_unlock_irqrestore(&card->lock, flags); card 633 drivers/staging/isdn/avm/b1.c card->name, b1cmd); card 644 drivers/staging/isdn/avm/b1.c avmcard *card = cinfo->card; card 648 drivers/staging/isdn/avm/b1.c seq_printf(m, "%-16s %s\n", "name", card->name); card 649 drivers/staging/isdn/avm/b1.c seq_printf(m, "%-16s 0x%x\n", "io", card->port); card 650 drivers/staging/isdn/avm/b1.c seq_printf(m, "%-16s %d\n", "irq", card->irq); card 651 drivers/staging/isdn/avm/b1.c switch (card->cardtype) { card 664 drivers/staging/isdn/avm/b1.c if (card->cardtype == avm_t1isa) card 665 drivers/staging/isdn/avm/b1.c seq_printf(m, "%-16s %d\n", "cardnr", card->cardnr); card 673 drivers/staging/isdn/avm/b1.c if (card->cardtype != avm_m1) { card 687 drivers/staging/isdn/avm/b1.c if (card->cardtype != avm_m1) { card 48 drivers/staging/isdn/avm/b1dma.c static void b1dma_dispatch_tx(avmcard *card); card 86 drivers/staging/isdn/avm/b1dma.c static inline void b1dma_writel(avmcard *card, u32 value, int off) card 88 drivers/staging/isdn/avm/b1dma.c writel(value, card->mbase + off); card 91 drivers/staging/isdn/avm/b1dma.c static inline u32 b1dma_readl(avmcard *card, int off) card 93 drivers/staging/isdn/avm/b1dma.c return readl(card->mbase + off); card 108 drivers/staging/isdn/avm/b1dma.c static int b1dma_tolink(avmcard *card, void *buf, unsigned int len) card 113 drivers/staging/isdn/avm/b1dma.c while (!b1dma_tx_empty(card->port) card 115 drivers/staging/isdn/avm/b1dma.c if (!b1dma_tx_empty(card->port)) card 117 drivers/staging/isdn/avm/b1dma.c t1outp(card->port, 0x01, *s++); card 122 drivers/staging/isdn/avm/b1dma.c static int b1dma_fromlink(avmcard *card, void *buf, unsigned int len) card 127 drivers/staging/isdn/avm/b1dma.c while (!b1dma_rx_full(card->port) card 129 drivers/staging/isdn/avm/b1dma.c if (!b1dma_rx_full(card->port)) card 131 drivers/staging/isdn/avm/b1dma.c *s++ = t1inp(card->port, 0x00); card 136 drivers/staging/isdn/avm/b1dma.c static int WriteReg(avmcard *card, u32 reg, u8 val) card 139 drivers/staging/isdn/avm/b1dma.c if (b1dma_tolink(card, &cmd, 1) == 0 card 140 drivers/staging/isdn/avm/b1dma.c && b1dma_tolink(card, ®, 4) == 0) { card 142 drivers/staging/isdn/avm/b1dma.c return b1dma_tolink(card, &tmp, 4); card 147 drivers/staging/isdn/avm/b1dma.c static u8 ReadReg(avmcard *card, u32 reg) card 150 drivers/staging/isdn/avm/b1dma.c if (b1dma_tolink(card, &cmd, 1) == 0 card 151 drivers/staging/isdn/avm/b1dma.c && b1dma_tolink(card, ®, 4) == 0) { card 153 drivers/staging/isdn/avm/b1dma.c if (b1dma_fromlink(card, &tmp, 4) == 0) card 218 drivers/staging/isdn/avm/b1dma.c void b1dma_reset(avmcard *card) card 220 drivers/staging/isdn/avm/b1dma.c card->csr = 0x0; card 221 drivers/staging/isdn/avm/b1dma.c b1dma_writel(card, card->csr, AMCC_INTCSR); card 222 drivers/staging/isdn/avm/b1dma.c b1dma_writel(card, 0, AMCC_MCSR); card 223 drivers/staging/isdn/avm/b1dma.c b1dma_writel(card, 0, AMCC_RXLEN); card 224 drivers/staging/isdn/avm/b1dma.c b1dma_writel(card, 0, AMCC_TXLEN); card 226 drivers/staging/isdn/avm/b1dma.c t1outp(card->port, 0x10, 0x00); card 227 drivers/staging/isdn/avm/b1dma.c t1outp(card->port, 0x07, 0x00); card 229 drivers/staging/isdn/avm/b1dma.c b1dma_writel(card, 0, AMCC_MCSR); card 231 drivers/staging/isdn/avm/b1dma.c b1dma_writel(card, 0x0f000000, AMCC_MCSR); /* reset all */ card 233 drivers/staging/isdn/avm/b1dma.c b1dma_writel(card, 0, AMCC_MCSR); card 234 drivers/staging/isdn/avm/b1dma.c if (card->cardtype == avm_t1pci) card 242 drivers/staging/isdn/avm/b1dma.c static int b1dma_detect(avmcard *card) card 244 drivers/staging/isdn/avm/b1dma.c b1dma_writel(card, 0, AMCC_MCSR); card 246 drivers/staging/isdn/avm/b1dma.c b1dma_writel(card, 0x0f000000, AMCC_MCSR); /* reset all */ card 248 drivers/staging/isdn/avm/b1dma.c b1dma_writel(card, 0, AMCC_MCSR); card 251 drivers/staging/isdn/avm/b1dma.c b1dma_writel(card, 0, AMCC_RXLEN); card 252 drivers/staging/isdn/avm/b1dma.c b1dma_writel(card, 0, AMCC_TXLEN); card 253 drivers/staging/isdn/avm/b1dma.c card->csr = 0x0; card 254 drivers/staging/isdn/avm/b1dma.c b1dma_writel(card, card->csr, AMCC_INTCSR); card 256 drivers/staging/isdn/avm/b1dma.c if (b1dma_readl(card, AMCC_MCSR) != 0x000000E6) card 259 drivers/staging/isdn/avm/b1dma.c b1dma_writel(card, 0xffffffff, AMCC_RXPTR); card 260 drivers/staging/isdn/avm/b1dma.c b1dma_writel(card, 0xffffffff, AMCC_TXPTR); card 261 drivers/staging/isdn/avm/b1dma.c if (b1dma_readl(card, AMCC_RXPTR) != 0xfffffffc card 262 drivers/staging/isdn/avm/b1dma.c || b1dma_readl(card, AMCC_TXPTR) != 0xfffffffc) card 265 drivers/staging/isdn/avm/b1dma.c b1dma_writel(card, 0x0, AMCC_RXPTR); card 266 drivers/staging/isdn/avm/b1dma.c b1dma_writel(card, 0x0, AMCC_TXPTR); card 267 drivers/staging/isdn/avm/b1dma.c if (b1dma_readl(card, AMCC_RXPTR) != 0x0 card 268 drivers/staging/isdn/avm/b1dma.c || b1dma_readl(card, AMCC_TXPTR) != 0x0) card 271 drivers/staging/isdn/avm/b1dma.c t1outp(card->port, 0x10, 0x00); card 272 drivers/staging/isdn/avm/b1dma.c t1outp(card->port, 0x07, 0x00); card 274 drivers/staging/isdn/avm/b1dma.c t1outp(card->port, 0x02, 0x02); card 275 drivers/staging/isdn/avm/b1dma.c t1outp(card->port, 0x03, 0x02); card 277 drivers/staging/isdn/avm/b1dma.c if ((t1inp(card->port, 0x02) & 0xFE) != 0x02 card 278 drivers/staging/isdn/avm/b1dma.c || t1inp(card->port, 0x3) != 0x03) card 281 drivers/staging/isdn/avm/b1dma.c t1outp(card->port, 0x02, 0x00); card 282 drivers/staging/isdn/avm/b1dma.c t1outp(card->port, 0x03, 0x00); card 284 drivers/staging/isdn/avm/b1dma.c if ((t1inp(card->port, 0x02) & 0xFE) != 0x00 card 285 drivers/staging/isdn/avm/b1dma.c || t1inp(card->port, 0x3) != 0x01) card 291 drivers/staging/isdn/avm/b1dma.c int t1pci_detect(avmcard *card) card 295 drivers/staging/isdn/avm/b1dma.c if ((ret = b1dma_detect(card)) != 0) card 300 drivers/staging/isdn/avm/b1dma.c if (WriteReg(card, 0x80001000, 0x11) != 0 card 301 drivers/staging/isdn/avm/b1dma.c || WriteReg(card, 0x80101000, 0x22) != 0 card 302 drivers/staging/isdn/avm/b1dma.c || WriteReg(card, 0x80201000, 0x33) != 0 card 303 drivers/staging/isdn/avm/b1dma.c || WriteReg(card, 0x80301000, 0x44) != 0) card 306 drivers/staging/isdn/avm/b1dma.c if (ReadReg(card, 0x80001000) != 0x11 card 307 drivers/staging/isdn/avm/b1dma.c || ReadReg(card, 0x80101000) != 0x22 card 308 drivers/staging/isdn/avm/b1dma.c || ReadReg(card, 0x80201000) != 0x33 card 309 drivers/staging/isdn/avm/b1dma.c || ReadReg(card, 0x80301000) != 0x44) card 312 drivers/staging/isdn/avm/b1dma.c if (WriteReg(card, 0x80001000, 0x55) != 0 card 313 drivers/staging/isdn/avm/b1dma.c || WriteReg(card, 0x80101000, 0x66) != 0 card 314 drivers/staging/isdn/avm/b1dma.c || WriteReg(card, 0x80201000, 0x77) != 0 card 315 drivers/staging/isdn/avm/b1dma.c || WriteReg(card, 0x80301000, 0x88) != 0) card 318 drivers/staging/isdn/avm/b1dma.c if (ReadReg(card, 0x80001000) != 0x55 card 319 drivers/staging/isdn/avm/b1dma.c || ReadReg(card, 0x80101000) != 0x66 card 320 drivers/staging/isdn/avm/b1dma.c || ReadReg(card, 0x80201000) != 0x77 card 321 drivers/staging/isdn/avm/b1dma.c || ReadReg(card, 0x80301000) != 0x88) card 327 drivers/staging/isdn/avm/b1dma.c int b1pciv4_detect(avmcard *card) card 331 drivers/staging/isdn/avm/b1dma.c if ((ret = b1dma_detect(card)) != 0) card 335 drivers/staging/isdn/avm/b1dma.c if (WriteReg(card, 0x80A00000, 0x21) != 0) card 337 drivers/staging/isdn/avm/b1dma.c if ((ReadReg(card, 0x80A00000) & 0x01) != 0x01) card 341 drivers/staging/isdn/avm/b1dma.c if (WriteReg(card, 0x80A00000, 0x20) != 0) card 343 drivers/staging/isdn/avm/b1dma.c if ((ReadReg(card, 0x80A00000) & 0x01) != 0x00) card 350 drivers/staging/isdn/avm/b1dma.c static void b1dma_queue_tx(avmcard *card, struct sk_buff *skb) card 354 drivers/staging/isdn/avm/b1dma.c spin_lock_irqsave(&card->lock, flags); card 356 drivers/staging/isdn/avm/b1dma.c skb_queue_tail(&card->dma->send_queue, skb); card 358 drivers/staging/isdn/avm/b1dma.c if (!(card->csr & EN_TX_TC_INT)) { card 359 drivers/staging/isdn/avm/b1dma.c b1dma_dispatch_tx(card); card 360 drivers/staging/isdn/avm/b1dma.c b1dma_writel(card, card->csr, AMCC_INTCSR); card 363 drivers/staging/isdn/avm/b1dma.c spin_unlock_irqrestore(&card->lock, flags); card 368 drivers/staging/isdn/avm/b1dma.c static void b1dma_dispatch_tx(avmcard *card) card 370 drivers/staging/isdn/avm/b1dma.c avmcard_dmainfo *dma = card->dma; card 404 drivers/staging/isdn/avm/b1dma.c printk(KERN_INFO "%s: send ack\n", card->name); card 415 drivers/staging/isdn/avm/b1dma.c b1dma_writel(card, dma->sendbuf.dmaaddr, AMCC_TXPTR); card 416 drivers/staging/isdn/avm/b1dma.c b1dma_writel(card, txlen, AMCC_TXLEN); card 418 drivers/staging/isdn/avm/b1dma.c card->csr |= EN_TX_TC_INT; card 425 drivers/staging/isdn/avm/b1dma.c static void queue_pollack(avmcard *card) card 433 drivers/staging/isdn/avm/b1dma.c card->name); card 442 drivers/staging/isdn/avm/b1dma.c b1dma_queue_tx(card, skb); card 447 drivers/staging/isdn/avm/b1dma.c static void b1dma_handle_rx(avmcard *card) card 449 drivers/staging/isdn/avm/b1dma.c avmctrl_info *cinfo = &card->ctrlinfo[0]; card 450 drivers/staging/isdn/avm/b1dma.c avmcard_dmainfo *dma = card->dma; card 465 drivers/staging/isdn/avm/b1dma.c MsgLen = _get_slice(&p, card->msgbuf); card 466 drivers/staging/isdn/avm/b1dma.c DataB3Len = _get_slice(&p, card->databuf); card 469 drivers/staging/isdn/avm/b1dma.c memset(card->msgbuf + MsgLen, 0, 30 - MsgLen); card 471 drivers/staging/isdn/avm/b1dma.c CAPIMSG_SETLEN(card->msgbuf, 30); card 475 drivers/staging/isdn/avm/b1dma.c card->name); card 477 drivers/staging/isdn/avm/b1dma.c skb_put_data(skb, card->msgbuf, MsgLen); card 478 drivers/staging/isdn/avm/b1dma.c skb_put_data(skb, card->databuf, DataB3Len); card 486 drivers/staging/isdn/avm/b1dma.c MsgLen = _get_slice(&p, card->msgbuf); card 489 drivers/staging/isdn/avm/b1dma.c card->name); card 491 drivers/staging/isdn/avm/b1dma.c skb_put_data(skb, card->msgbuf, MsgLen); card 493 drivers/staging/isdn/avm/b1dma.c spin_lock(&card->lock); card 497 drivers/staging/isdn/avm/b1dma.c spin_unlock(&card->lock); card 508 drivers/staging/isdn/avm/b1dma.c spin_lock(&card->lock); card 510 drivers/staging/isdn/avm/b1dma.c spin_unlock(&card->lock); card 519 drivers/staging/isdn/avm/b1dma.c spin_lock(&card->lock); card 521 drivers/staging/isdn/avm/b1dma.c spin_unlock(&card->lock); card 527 drivers/staging/isdn/avm/b1dma.c printk(KERN_INFO "%s: receive poll\n", card->name); card 530 drivers/staging/isdn/avm/b1dma.c queue_pollack(card); card 543 drivers/staging/isdn/avm/b1dma.c card->name, card 551 drivers/staging/isdn/avm/b1dma.c MsgLen = _get_slice(&p, card->msgbuf); card 552 drivers/staging/isdn/avm/b1dma.c card->msgbuf[MsgLen] = 0; card 554 drivers/staging/isdn/avm/b1dma.c && (card->msgbuf[MsgLen - 1] == '\n' card 555 drivers/staging/isdn/avm/b1dma.c || card->msgbuf[MsgLen - 1] == '\r')) { card 556 drivers/staging/isdn/avm/b1dma.c card->msgbuf[MsgLen - 1] = 0; card 560 drivers/staging/isdn/avm/b1dma.c card->name, ApplId, card->msgbuf); card 564 drivers/staging/isdn/avm/b1dma.c MsgLen = _get_slice(&p, card->msgbuf); card 565 drivers/staging/isdn/avm/b1dma.c card->msgbuf[MsgLen] = 0; card 567 drivers/staging/isdn/avm/b1dma.c && (card->msgbuf[MsgLen - 1] == '\n' card 568 drivers/staging/isdn/avm/b1dma.c || card->msgbuf[MsgLen - 1] == '\r')) { card 569 drivers/staging/isdn/avm/b1dma.c card->msgbuf[MsgLen - 1] = 0; card 572 drivers/staging/isdn/avm/b1dma.c printk(KERN_INFO "%s: DEBUG: %s\n", card->name, card->msgbuf); card 577 drivers/staging/isdn/avm/b1dma.c card->name, b1cmd); card 584 drivers/staging/isdn/avm/b1dma.c static void b1dma_handle_interrupt(avmcard *card) card 589 drivers/staging/isdn/avm/b1dma.c spin_lock(&card->lock); card 591 drivers/staging/isdn/avm/b1dma.c status = b1dma_readl(card, AMCC_INTCSR); card 593 drivers/staging/isdn/avm/b1dma.c spin_unlock(&card->lock); card 597 drivers/staging/isdn/avm/b1dma.c newcsr = card->csr | (status & ALL_INT); card 600 drivers/staging/isdn/avm/b1dma.c b1dma_writel(card, newcsr, AMCC_INTCSR); card 603 drivers/staging/isdn/avm/b1dma.c struct avmcard_dmainfo *dma = card->dma; card 605 drivers/staging/isdn/avm/b1dma.c if (card->dma->recvlen == 0) { card 606 drivers/staging/isdn/avm/b1dma.c rxlen = b1dma_readl(card, AMCC_RXLEN); card 610 drivers/staging/isdn/avm/b1dma.c b1dma_writel(card, dma->recvbuf.dmaaddr + 4, AMCC_RXPTR); card 611 drivers/staging/isdn/avm/b1dma.c b1dma_writel(card, rxlen, AMCC_RXLEN); card 615 drivers/staging/isdn/avm/b1dma.c card->name, rxlen); card 619 drivers/staging/isdn/avm/b1dma.c spin_unlock(&card->lock); card 620 drivers/staging/isdn/avm/b1dma.c b1dma_handle_rx(card); card 622 drivers/staging/isdn/avm/b1dma.c spin_lock(&card->lock); card 623 drivers/staging/isdn/avm/b1dma.c b1dma_writel(card, dma->recvbuf.dmaaddr, AMCC_RXPTR); card 624 drivers/staging/isdn/avm/b1dma.c b1dma_writel(card, 4, AMCC_RXLEN); card 629 drivers/staging/isdn/avm/b1dma.c if (skb_queue_empty(&card->dma->send_queue)) card 630 drivers/staging/isdn/avm/b1dma.c card->csr &= ~EN_TX_TC_INT; card 632 drivers/staging/isdn/avm/b1dma.c b1dma_dispatch_tx(card); card 634 drivers/staging/isdn/avm/b1dma.c b1dma_writel(card, card->csr, AMCC_INTCSR); card 636 drivers/staging/isdn/avm/b1dma.c spin_unlock(&card->lock); card 641 drivers/staging/isdn/avm/b1dma.c avmcard *card = devptr; card 643 drivers/staging/isdn/avm/b1dma.c b1dma_handle_interrupt(card); card 649 drivers/staging/isdn/avm/b1dma.c static int b1dma_loaded(avmcard *card) card 654 drivers/staging/isdn/avm/b1dma.c unsigned int base = card->port; card 662 drivers/staging/isdn/avm/b1dma.c card->name); card 671 drivers/staging/isdn/avm/b1dma.c printk(KERN_ERR "%s: b1dma_loaded: got 0x%x, firmware not running in dword mode\n", card->name, ans); card 675 drivers/staging/isdn/avm/b1dma.c printk(KERN_ERR "%s: b1dma_loaded: firmware not running\n", card->name); card 681 drivers/staging/isdn/avm/b1dma.c static void b1dma_send_init(avmcard *card) card 689 drivers/staging/isdn/avm/b1dma.c card->name); card 698 drivers/staging/isdn/avm/b1dma.c _put_word(&p, card->cardnr - 1); card 701 drivers/staging/isdn/avm/b1dma.c b1dma_queue_tx(card, skb); card 707 drivers/staging/isdn/avm/b1dma.c avmcard *card = cinfo->card; card 710 drivers/staging/isdn/avm/b1dma.c b1dma_reset(card); card 712 drivers/staging/isdn/avm/b1dma.c if ((retval = b1_load_t4file(card, &data->firmware))) { card 713 drivers/staging/isdn/avm/b1dma.c b1dma_reset(card); card 715 drivers/staging/isdn/avm/b1dma.c card->name); card 720 drivers/staging/isdn/avm/b1dma.c if ((retval = b1_load_config(card, &data->configuration))) { card 721 drivers/staging/isdn/avm/b1dma.c b1dma_reset(card); card 723 drivers/staging/isdn/avm/b1dma.c card->name); card 728 drivers/staging/isdn/avm/b1dma.c if (!b1dma_loaded(card)) { card 729 drivers/staging/isdn/avm/b1dma.c b1dma_reset(card); card 730 drivers/staging/isdn/avm/b1dma.c printk(KERN_ERR "%s: failed to load t4file.\n", card->name); card 734 drivers/staging/isdn/avm/b1dma.c card->csr = AVM_FLAG; card 735 drivers/staging/isdn/avm/b1dma.c b1dma_writel(card, card->csr, AMCC_INTCSR); card 736 drivers/staging/isdn/avm/b1dma.c b1dma_writel(card, EN_A2P_TRANSFERS | EN_P2A_TRANSFERS | A2P_HI_PRIORITY | card 739 drivers/staging/isdn/avm/b1dma.c t1outp(card->port, 0x07, 0x30); card 740 drivers/staging/isdn/avm/b1dma.c t1outp(card->port, 0x10, 0xF0); card 742 drivers/staging/isdn/avm/b1dma.c card->dma->recvlen = 0; card 743 drivers/staging/isdn/avm/b1dma.c b1dma_writel(card, card->dma->recvbuf.dmaaddr, AMCC_RXPTR); card 744 drivers/staging/isdn/avm/b1dma.c b1dma_writel(card, 4, AMCC_RXLEN); card 745 drivers/staging/isdn/avm/b1dma.c card->csr |= EN_RX_TC_INT; card 746 drivers/staging/isdn/avm/b1dma.c b1dma_writel(card, card->csr, AMCC_INTCSR); card 748 drivers/staging/isdn/avm/b1dma.c b1dma_send_init(card); card 756 drivers/staging/isdn/avm/b1dma.c avmcard *card = cinfo->card; card 759 drivers/staging/isdn/avm/b1dma.c spin_lock_irqsave(&card->lock, flags); card 760 drivers/staging/isdn/avm/b1dma.c b1dma_reset(card); card 764 drivers/staging/isdn/avm/b1dma.c spin_unlock_irqrestore(&card->lock, flags); card 775 drivers/staging/isdn/avm/b1dma.c avmcard *card = cinfo->card; card 788 drivers/staging/isdn/avm/b1dma.c card->name); card 802 drivers/staging/isdn/avm/b1dma.c b1dma_queue_tx(card, skb); card 810 drivers/staging/isdn/avm/b1dma.c avmcard *card = cinfo->card; card 815 drivers/staging/isdn/avm/b1dma.c spin_lock_irqsave(&card->lock, flags); card 817 drivers/staging/isdn/avm/b1dma.c spin_unlock_irqrestore(&card->lock, flags); card 822 drivers/staging/isdn/avm/b1dma.c card->name); card 833 drivers/staging/isdn/avm/b1dma.c b1dma_queue_tx(card, skb); card 841 drivers/staging/isdn/avm/b1dma.c avmcard *card = cinfo->card; card 846 drivers/staging/isdn/avm/b1dma.c spin_lock_irqsave(&card->lock, flags); card 851 drivers/staging/isdn/avm/b1dma.c spin_unlock_irqrestore(&card->lock, flags); card 854 drivers/staging/isdn/avm/b1dma.c b1dma_queue_tx(card, skb); card 865 drivers/staging/isdn/avm/b1dma.c avmcard *card = cinfo->card; card 871 drivers/staging/isdn/avm/b1dma.c seq_printf(m, "%-16s %s\n", "name", card->name); card 872 drivers/staging/isdn/avm/b1dma.c seq_printf(m, "%-16s 0x%x\n", "io", card->port); card 873 drivers/staging/isdn/avm/b1dma.c seq_printf(m, "%-16s %d\n", "irq", card->irq); card 874 drivers/staging/isdn/avm/b1dma.c seq_printf(m, "%-16s 0x%lx\n", "membase", card->membase); card 875 drivers/staging/isdn/avm/b1dma.c switch (card->cardtype) { card 895 drivers/staging/isdn/avm/b1dma.c if (card->cardtype != avm_m1) { card 909 drivers/staging/isdn/avm/b1dma.c if (card->cardtype != avm_m1) { card 923 drivers/staging/isdn/avm/b1dma.c spin_lock_irqsave(&card->lock, flags); card 925 drivers/staging/isdn/avm/b1dma.c txoff = (dma_addr_t)b1dma_readl(card, AMCC_TXPTR)-card->dma->sendbuf.dmaaddr; card 926 drivers/staging/isdn/avm/b1dma.c txlen = b1dma_readl(card, AMCC_TXLEN); card 928 drivers/staging/isdn/avm/b1dma.c rxoff = (dma_addr_t)b1dma_readl(card, AMCC_RXPTR)-card->dma->recvbuf.dmaaddr; card 929 drivers/staging/isdn/avm/b1dma.c rxlen = b1dma_readl(card, AMCC_RXLEN); card 931 drivers/staging/isdn/avm/b1dma.c csr = b1dma_readl(card, AMCC_INTCSR); card 933 drivers/staging/isdn/avm/b1dma.c spin_unlock_irqrestore(&card->lock, flags); card 935 drivers/staging/isdn/avm/b1dma.c seq_printf(m, "%-16s 0x%lx\n", "csr (cached)", (unsigned long)card->csr); card 43 drivers/staging/isdn/avm/b1isa.c avmcard *card; card 48 drivers/staging/isdn/avm/b1isa.c card = cinfo->card; card 50 drivers/staging/isdn/avm/b1isa.c b1_reset(card->port); card 51 drivers/staging/isdn/avm/b1isa.c b1_reset(card->port); card 54 drivers/staging/isdn/avm/b1isa.c free_irq(card->irq, card); card 55 drivers/staging/isdn/avm/b1isa.c release_region(card->port, AVMB1_PORTLEN); card 56 drivers/staging/isdn/avm/b1isa.c b1_free_card(card); card 66 drivers/staging/isdn/avm/b1isa.c avmcard *card; card 69 drivers/staging/isdn/avm/b1isa.c card = b1_alloc_card(1); card 70 drivers/staging/isdn/avm/b1isa.c if (!card) { card 76 drivers/staging/isdn/avm/b1isa.c cinfo = card->ctrlinfo; card 78 drivers/staging/isdn/avm/b1isa.c card->port = pci_resource_start(pdev, 0); card 79 drivers/staging/isdn/avm/b1isa.c card->irq = pdev->irq; card 80 drivers/staging/isdn/avm/b1isa.c card->cardtype = avm_b1isa; card 81 drivers/staging/isdn/avm/b1isa.c sprintf(card->name, "b1isa-%x", card->port); card 83 drivers/staging/isdn/avm/b1isa.c if (card->port != 0x150 && card->port != 0x250 card 84 drivers/staging/isdn/avm/b1isa.c && card->port != 0x300 && card->port != 0x340) { card 85 drivers/staging/isdn/avm/b1isa.c printk(KERN_WARNING "b1isa: invalid port 0x%x.\n", card->port); card 89 drivers/staging/isdn/avm/b1isa.c if (b1_irq_table[card->irq & 0xf] == 0) { card 90 drivers/staging/isdn/avm/b1isa.c printk(KERN_WARNING "b1isa: irq %d not valid.\n", card->irq); card 94 drivers/staging/isdn/avm/b1isa.c if (!request_region(card->port, AVMB1_PORTLEN, card->name)) { card 96 drivers/staging/isdn/avm/b1isa.c card->port, card->port + AVMB1_PORTLEN); card 100 drivers/staging/isdn/avm/b1isa.c retval = request_irq(card->irq, b1_interrupt, 0, card->name, card); card 102 drivers/staging/isdn/avm/b1isa.c printk(KERN_ERR "b1isa: unable to get IRQ %d.\n", card->irq); card 105 drivers/staging/isdn/avm/b1isa.c b1_reset(card->port); card 106 drivers/staging/isdn/avm/b1isa.c if ((retval = b1_detect(card->port, card->cardtype)) != 0) { card 108 drivers/staging/isdn/avm/b1isa.c card->port, retval); card 112 drivers/staging/isdn/avm/b1isa.c b1_reset(card->port); card 113 drivers/staging/isdn/avm/b1isa.c b1_getrevision(card); card 125 drivers/staging/isdn/avm/b1isa.c strcpy(cinfo->capi_ctrl.name, card->name); card 134 drivers/staging/isdn/avm/b1isa.c card->port, card->irq, card->revision); card 140 drivers/staging/isdn/avm/b1isa.c free_irq(card->irq, card); card 142 drivers/staging/isdn/avm/b1isa.c release_region(card->port, AVMB1_PORTLEN); card 144 drivers/staging/isdn/avm/b1isa.c b1_free_card(card); card 158 drivers/staging/isdn/avm/b1isa.c cinfo->card ? cinfo->card->port : 0x0, card 159 drivers/staging/isdn/avm/b1isa.c cinfo->card ? cinfo->card->irq : 0, card 160 drivers/staging/isdn/avm/b1isa.c cinfo->card ? cinfo->card->revision : 0 card 55 drivers/staging/isdn/avm/b1pci.c cinfo->card ? cinfo->card->port : 0x0, card 56 drivers/staging/isdn/avm/b1pci.c cinfo->card ? cinfo->card->irq : 0, card 57 drivers/staging/isdn/avm/b1pci.c cinfo->card ? cinfo->card->revision : 0 card 66 drivers/staging/isdn/avm/b1pci.c avmcard *card; card 70 drivers/staging/isdn/avm/b1pci.c card = b1_alloc_card(1); card 71 drivers/staging/isdn/avm/b1pci.c if (!card) { card 77 drivers/staging/isdn/avm/b1pci.c cinfo = card->ctrlinfo; card 78 drivers/staging/isdn/avm/b1pci.c sprintf(card->name, "b1pci-%x", p->port); card 79 drivers/staging/isdn/avm/b1pci.c card->port = p->port; card 80 drivers/staging/isdn/avm/b1pci.c card->irq = p->irq; card 81 drivers/staging/isdn/avm/b1pci.c card->cardtype = avm_b1pci; card 83 drivers/staging/isdn/avm/b1pci.c if (!request_region(card->port, AVMB1_PORTLEN, card->name)) { card 85 drivers/staging/isdn/avm/b1pci.c card->port, card->port + AVMB1_PORTLEN); card 89 drivers/staging/isdn/avm/b1pci.c b1_reset(card->port); card 90 drivers/staging/isdn/avm/b1pci.c retval = b1_detect(card->port, card->cardtype); card 93 drivers/staging/isdn/avm/b1pci.c card->port, retval); card 97 drivers/staging/isdn/avm/b1pci.c b1_reset(card->port); card 98 drivers/staging/isdn/avm/b1pci.c b1_getrevision(card); card 100 drivers/staging/isdn/avm/b1pci.c retval = request_irq(card->irq, b1_interrupt, IRQF_SHARED, card->name, card); card 102 drivers/staging/isdn/avm/b1pci.c printk(KERN_ERR "b1pci: unable to get IRQ %d.\n", card->irq); card 116 drivers/staging/isdn/avm/b1pci.c strcpy(cinfo->capi_ctrl.name, card->name); card 125 drivers/staging/isdn/avm/b1pci.c if (card->revision >= 4) { card 127 drivers/staging/isdn/avm/b1pci.c card->port, card->irq, card->revision); card 130 drivers/staging/isdn/avm/b1pci.c card->port, card->irq, card->revision); card 133 drivers/staging/isdn/avm/b1pci.c pci_set_drvdata(pdev, card); card 137 drivers/staging/isdn/avm/b1pci.c free_irq(card->irq, card); card 139 drivers/staging/isdn/avm/b1pci.c release_region(card->port, AVMB1_PORTLEN); card 141 drivers/staging/isdn/avm/b1pci.c b1_free_card(card); card 148 drivers/staging/isdn/avm/b1pci.c avmcard *card = pci_get_drvdata(pdev); card 149 drivers/staging/isdn/avm/b1pci.c avmctrl_info *cinfo = card->ctrlinfo; card 150 drivers/staging/isdn/avm/b1pci.c unsigned int port = card->port; card 156 drivers/staging/isdn/avm/b1pci.c free_irq(card->irq, card); card 157 drivers/staging/isdn/avm/b1pci.c release_region(card->port, AVMB1_PORTLEN); card 158 drivers/staging/isdn/avm/b1pci.c b1_free_card(card); card 173 drivers/staging/isdn/avm/b1pci.c cinfo->card ? cinfo->card->port : 0x0, card 174 drivers/staging/isdn/avm/b1pci.c cinfo->card ? cinfo->card->irq : 0, card 175 drivers/staging/isdn/avm/b1pci.c cinfo->card ? cinfo->card->membase : 0, card 176 drivers/staging/isdn/avm/b1pci.c cinfo->card ? cinfo->card->revision : 0 card 185 drivers/staging/isdn/avm/b1pci.c avmcard *card; card 189 drivers/staging/isdn/avm/b1pci.c card = b1_alloc_card(1); card 190 drivers/staging/isdn/avm/b1pci.c if (!card) { card 196 drivers/staging/isdn/avm/b1pci.c card->dma = avmcard_dma_alloc("b1pci", pdev, 2048 + 128, 2048 + 128); card 197 drivers/staging/isdn/avm/b1pci.c if (!card->dma) { card 203 drivers/staging/isdn/avm/b1pci.c cinfo = card->ctrlinfo; card 204 drivers/staging/isdn/avm/b1pci.c sprintf(card->name, "b1pciv4-%x", p->port); card 205 drivers/staging/isdn/avm/b1pci.c card->port = p->port; card 206 drivers/staging/isdn/avm/b1pci.c card->irq = p->irq; card 207 drivers/staging/isdn/avm/b1pci.c card->membase = p->membase; card 208 drivers/staging/isdn/avm/b1pci.c card->cardtype = avm_b1pci; card 210 drivers/staging/isdn/avm/b1pci.c if (!request_region(card->port, AVMB1_PORTLEN, card->name)) { card 212 drivers/staging/isdn/avm/b1pci.c card->port, card->port + AVMB1_PORTLEN); card 217 drivers/staging/isdn/avm/b1pci.c card->mbase = ioremap(card->membase, 64); card 218 drivers/staging/isdn/avm/b1pci.c if (!card->mbase) { card 220 drivers/staging/isdn/avm/b1pci.c card->membase); card 225 drivers/staging/isdn/avm/b1pci.c b1dma_reset(card); card 227 drivers/staging/isdn/avm/b1pci.c retval = b1pciv4_detect(card); card 230 drivers/staging/isdn/avm/b1pci.c card->port, retval); card 234 drivers/staging/isdn/avm/b1pci.c b1dma_reset(card); card 235 drivers/staging/isdn/avm/b1pci.c b1_getrevision(card); card 237 drivers/staging/isdn/avm/b1pci.c retval = request_irq(card->irq, b1dma_interrupt, IRQF_SHARED, card->name, card); card 240 drivers/staging/isdn/avm/b1pci.c card->irq); card 255 drivers/staging/isdn/avm/b1pci.c strcpy(cinfo->capi_ctrl.name, card->name); card 262 drivers/staging/isdn/avm/b1pci.c card->cardnr = cinfo->capi_ctrl.cnr; card 265 drivers/staging/isdn/avm/b1pci.c card->port, card->irq, card->membase, card->revision); card 267 drivers/staging/isdn/avm/b1pci.c pci_set_drvdata(pdev, card); card 271 drivers/staging/isdn/avm/b1pci.c free_irq(card->irq, card); card 273 drivers/staging/isdn/avm/b1pci.c iounmap(card->mbase); card 275 drivers/staging/isdn/avm/b1pci.c release_region(card->port, AVMB1_PORTLEN); card 277 drivers/staging/isdn/avm/b1pci.c avmcard_dma_free(card->dma); card 279 drivers/staging/isdn/avm/b1pci.c b1_free_card(card); card 287 drivers/staging/isdn/avm/b1pci.c avmcard *card = pci_get_drvdata(pdev); card 288 drivers/staging/isdn/avm/b1pci.c avmctrl_info *cinfo = card->ctrlinfo; card 290 drivers/staging/isdn/avm/b1pci.c b1dma_reset(card); card 293 drivers/staging/isdn/avm/b1pci.c free_irq(card->irq, card); card 294 drivers/staging/isdn/avm/b1pci.c iounmap(card->mbase); card 295 drivers/staging/isdn/avm/b1pci.c release_region(card->port, AVMB1_PORTLEN); card 296 drivers/staging/isdn/avm/b1pci.c avmcard_dma_free(card->dma); card 297 drivers/staging/isdn/avm/b1pci.c b1_free_card(card); card 350 drivers/staging/isdn/avm/b1pci.c avmcard *card = pci_get_drvdata(pdev); card 352 drivers/staging/isdn/avm/b1pci.c if (card->dma) card 43 drivers/staging/isdn/avm/b1pcmcia.c avmcard *card = cinfo->card; card 44 drivers/staging/isdn/avm/b1pcmcia.c unsigned int port = card->port; card 50 drivers/staging/isdn/avm/b1pcmcia.c free_irq(card->irq, card); card 51 drivers/staging/isdn/avm/b1pcmcia.c b1_free_card(card); card 64 drivers/staging/isdn/avm/b1pcmcia.c avmcard *card; card 68 drivers/staging/isdn/avm/b1pcmcia.c card = b1_alloc_card(1); card 69 drivers/staging/isdn/avm/b1pcmcia.c if (!card) { card 74 drivers/staging/isdn/avm/b1pcmcia.c cinfo = card->ctrlinfo; card 77 drivers/staging/isdn/avm/b1pcmcia.c case avm_m1: sprintf(card->name, "m1-%x", port); break; card 78 drivers/staging/isdn/avm/b1pcmcia.c case avm_m2: sprintf(card->name, "m2-%x", port); break; card 79 drivers/staging/isdn/avm/b1pcmcia.c default: sprintf(card->name, "b1pcmcia-%x", port); break; card 81 drivers/staging/isdn/avm/b1pcmcia.c card->port = port; card 82 drivers/staging/isdn/avm/b1pcmcia.c card->irq = irq; card 83 drivers/staging/isdn/avm/b1pcmcia.c card->cardtype = cardtype; card 85 drivers/staging/isdn/avm/b1pcmcia.c retval = request_irq(card->irq, b1_interrupt, IRQF_SHARED, card->name, card); card 88 drivers/staging/isdn/avm/b1pcmcia.c card->irq); card 92 drivers/staging/isdn/avm/b1pcmcia.c b1_reset(card->port); card 93 drivers/staging/isdn/avm/b1pcmcia.c if ((retval = b1_detect(card->port, card->cardtype)) != 0) { card 95 drivers/staging/isdn/avm/b1pcmcia.c card->port, retval); card 99 drivers/staging/isdn/avm/b1pcmcia.c b1_reset(card->port); card 100 drivers/staging/isdn/avm/b1pcmcia.c b1_getrevision(card); card 112 drivers/staging/isdn/avm/b1pcmcia.c strcpy(cinfo->capi_ctrl.name, card->name); card 126 drivers/staging/isdn/avm/b1pcmcia.c cardname, card->port, card->irq, card->revision); card 128 drivers/staging/isdn/avm/b1pcmcia.c list_add(&card->list, &cards); card 132 drivers/staging/isdn/avm/b1pcmcia.c free_irq(card->irq, card); card 134 drivers/staging/isdn/avm/b1pcmcia.c b1_free_card(card); card 150 drivers/staging/isdn/avm/b1pcmcia.c cinfo->card ? cinfo->card->port : 0x0, card 151 drivers/staging/isdn/avm/b1pcmcia.c cinfo->card ? cinfo->card->irq : 0, card 152 drivers/staging/isdn/avm/b1pcmcia.c cinfo->card ? cinfo->card->revision : 0 card 177 drivers/staging/isdn/avm/b1pcmcia.c avmcard *card; card 180 drivers/staging/isdn/avm/b1pcmcia.c card = list_entry(l, avmcard, list); card 181 drivers/staging/isdn/avm/b1pcmcia.c if (card->port == port && card->irq == irq) { card 182 drivers/staging/isdn/avm/b1pcmcia.c b1pcmcia_remove_ctr(&card->ctrlinfo[0].capi_ctrl); card 59 drivers/staging/isdn/avm/c4.c static void c4_dispatch_tx(avmcard *card); card 146 drivers/staging/isdn/avm/c4.c static inline int wait_for_doorbell(avmcard *card, unsigned long t) card 151 drivers/staging/isdn/avm/c4.c while (c4inmeml(card->mbase + DOORBELL) != 0xffffffff) { card 159 drivers/staging/isdn/avm/c4.c static int c4_poke(avmcard *card, unsigned long off, unsigned long value) card 162 drivers/staging/isdn/avm/c4.c if (wait_for_doorbell(card, HZ / 10) < 0) card 165 drivers/staging/isdn/avm/c4.c c4outmeml(card->mbase + MBOX_PEEK_POKE, off); card 166 drivers/staging/isdn/avm/c4.c c4outmeml(card->mbase + DOORBELL, DBELL_ADDR); card 168 drivers/staging/isdn/avm/c4.c if (wait_for_doorbell(card, HZ / 10) < 0) card 171 drivers/staging/isdn/avm/c4.c c4outmeml(card->mbase + MBOX_PEEK_POKE, value); card 172 drivers/staging/isdn/avm/c4.c c4outmeml(card->mbase + DOORBELL, DBELL_DATA | DBELL_ADDR); card 177 drivers/staging/isdn/avm/c4.c static int c4_peek(avmcard *card, unsigned long off, unsigned long *valuep) card 179 drivers/staging/isdn/avm/c4.c if (wait_for_doorbell(card, HZ / 10) < 0) card 182 drivers/staging/isdn/avm/c4.c c4outmeml(card->mbase + MBOX_PEEK_POKE, off); card 183 drivers/staging/isdn/avm/c4.c c4outmeml(card->mbase + DOORBELL, DBELL_RNWR | DBELL_ADDR); card 185 drivers/staging/isdn/avm/c4.c if (wait_for_doorbell(card, HZ / 10) < 0) card 188 drivers/staging/isdn/avm/c4.c *valuep = c4inmeml(card->mbase + MBOX_PEEK_POKE); card 195 drivers/staging/isdn/avm/c4.c static int c4_load_t4file(avmcard *card, capiloaddatapart *t4file) card 211 drivers/staging/isdn/avm/c4.c if (c4_poke(card, loadoff, val)) { card 213 drivers/staging/isdn/avm/c4.c card->name); card 228 drivers/staging/isdn/avm/c4.c if (c4_poke(card, loadoff, val)) { card 230 drivers/staging/isdn/avm/c4.c card->name); card 296 drivers/staging/isdn/avm/c4.c static void c4_reset(avmcard *card) card 300 drivers/staging/isdn/avm/c4.c c4outmeml(card->mbase + DOORBELL, DBELL_RESET_ARM); card 303 drivers/staging/isdn/avm/c4.c while (c4inmeml(card->mbase + DOORBELL) != 0xffffffff) { card 306 drivers/staging/isdn/avm/c4.c c4outmeml(card->mbase + DOORBELL, DBELL_ADDR); card 310 drivers/staging/isdn/avm/c4.c c4_poke(card, DC21285_ARMCSR_BASE + CHAN_1_CONTROL, 0); card 311 drivers/staging/isdn/avm/c4.c c4_poke(card, DC21285_ARMCSR_BASE + CHAN_2_CONTROL, 0); card 316 drivers/staging/isdn/avm/c4.c static int c4_detect(avmcard *card) card 320 drivers/staging/isdn/avm/c4.c c4outmeml(card->mbase + PCI_OUT_INT_MASK, 0x0c); card 321 drivers/staging/isdn/avm/c4.c if (c4inmeml(card->mbase + PCI_OUT_INT_MASK) != 0x0c) card 324 drivers/staging/isdn/avm/c4.c c4outmeml(card->mbase + DOORBELL, DBELL_RESET_ARM); card 327 drivers/staging/isdn/avm/c4.c while (c4inmeml(card->mbase + DOORBELL) != 0xffffffff) { card 330 drivers/staging/isdn/avm/c4.c c4outmeml(card->mbase + DOORBELL, DBELL_ADDR); card 334 drivers/staging/isdn/avm/c4.c c4_poke(card, DC21285_ARMCSR_BASE + CHAN_1_CONTROL, 0); card 335 drivers/staging/isdn/avm/c4.c c4_poke(card, DC21285_ARMCSR_BASE + CHAN_2_CONTROL, 0); card 337 drivers/staging/isdn/avm/c4.c c4outmeml(card->mbase + MAILBOX_0, 0x55aa55aa); card 338 drivers/staging/isdn/avm/c4.c if (c4inmeml(card->mbase + MAILBOX_0) != 0x55aa55aa) return 3; card 340 drivers/staging/isdn/avm/c4.c c4outmeml(card->mbase + MAILBOX_0, 0xaa55aa55); card 341 drivers/staging/isdn/avm/c4.c if (c4inmeml(card->mbase + MAILBOX_0) != 0xaa55aa55) return 4; card 343 drivers/staging/isdn/avm/c4.c if (c4_poke(card, DC21285_ARMCSR_BASE + DBELL_SA_MASK, 0)) return 5; card 344 drivers/staging/isdn/avm/c4.c if (c4_poke(card, DC21285_ARMCSR_BASE + DBELL_PCI_MASK, 0)) return 6; card 345 drivers/staging/isdn/avm/c4.c if (c4_poke(card, DC21285_ARMCSR_BASE + SA_CONTROL, SA_CTL_ALLRIGHT)) card 347 drivers/staging/isdn/avm/c4.c if (c4_poke(card, DC21285_ARMCSR_BASE + XBUS_CYCLE, INIT_XBUS_CYCLE)) card 349 drivers/staging/isdn/avm/c4.c if (c4_poke(card, DC21285_ARMCSR_BASE + XBUS_STROBE, INIT_XBUS_STROBE)) card 351 drivers/staging/isdn/avm/c4.c if (c4_poke(card, DC21285_ARMCSR_BASE + DRAM_TIMING, 0)) return 9; card 355 drivers/staging/isdn/avm/c4.c if (c4_peek(card, DC21285_DRAM_A0MR, &dummy)) return 10; card 356 drivers/staging/isdn/avm/c4.c if (c4_peek(card, DC21285_DRAM_A1MR, &dummy)) return 11; card 357 drivers/staging/isdn/avm/c4.c if (c4_peek(card, DC21285_DRAM_A2MR, &dummy)) return 12; card 358 drivers/staging/isdn/avm/c4.c if (c4_peek(card, DC21285_DRAM_A3MR, &dummy)) return 13; card 360 drivers/staging/isdn/avm/c4.c if (c4_poke(card, DC21285_DRAM_A0MR + CAS_OFFSET, 0)) return 14; card 361 drivers/staging/isdn/avm/c4.c if (c4_poke(card, DC21285_DRAM_A1MR + CAS_OFFSET, 0)) return 15; card 362 drivers/staging/isdn/avm/c4.c if (c4_poke(card, DC21285_DRAM_A2MR + CAS_OFFSET, 0)) return 16; card 363 drivers/staging/isdn/avm/c4.c if (c4_poke(card, DC21285_DRAM_A3MR + CAS_OFFSET, 0)) return 17; card 367 drivers/staging/isdn/avm/c4.c if (c4_poke(card, DC21285_ARMCSR_BASE + DRAM_TIMING, DRAM_TIMING_DEF)) card 370 drivers/staging/isdn/avm/c4.c if (c4_poke(card, DC21285_ARMCSR_BASE + DRAM_ADDR_SIZE_0, DRAM_AD_SZ_DEF0)) card 372 drivers/staging/isdn/avm/c4.c if (c4_poke(card, DC21285_ARMCSR_BASE + DRAM_ADDR_SIZE_1, DRAM_AD_SZ_NULL)) card 374 drivers/staging/isdn/avm/c4.c if (c4_poke(card, DC21285_ARMCSR_BASE + DRAM_ADDR_SIZE_2, DRAM_AD_SZ_NULL)) card 376 drivers/staging/isdn/avm/c4.c if (c4_poke(card, DC21285_ARMCSR_BASE + DRAM_ADDR_SIZE_3, DRAM_AD_SZ_NULL)) card 381 drivers/staging/isdn/avm/c4.c if (c4_poke(card, 0x000000, 0x11111111) card 382 drivers/staging/isdn/avm/c4.c || c4_poke(card, 0x400000, 0x22222222) card 383 drivers/staging/isdn/avm/c4.c || c4_poke(card, 0x800000, 0x33333333) card 384 drivers/staging/isdn/avm/c4.c || c4_poke(card, 0xC00000, 0x44444444)) card 387 drivers/staging/isdn/avm/c4.c if (c4_peek(card, 0x000000, &dummy) || dummy != 0x11111111 card 388 drivers/staging/isdn/avm/c4.c || c4_peek(card, 0x400000, &dummy) || dummy != 0x22222222 card 389 drivers/staging/isdn/avm/c4.c || c4_peek(card, 0x800000, &dummy) || dummy != 0x33333333 card 390 drivers/staging/isdn/avm/c4.c || c4_peek(card, 0xC00000, &dummy) || dummy != 0x44444444) card 393 drivers/staging/isdn/avm/c4.c if (c4_poke(card, 0x000000, 0x55555555) card 394 drivers/staging/isdn/avm/c4.c || c4_poke(card, 0x400000, 0x66666666) card 395 drivers/staging/isdn/avm/c4.c || c4_poke(card, 0x800000, 0x77777777) card 396 drivers/staging/isdn/avm/c4.c || c4_poke(card, 0xC00000, 0x88888888)) card 399 drivers/staging/isdn/avm/c4.c if (c4_peek(card, 0x000000, &dummy) || dummy != 0x55555555 card 400 drivers/staging/isdn/avm/c4.c || c4_peek(card, 0x400000, &dummy) || dummy != 0x66666666 card 401 drivers/staging/isdn/avm/c4.c || c4_peek(card, 0x800000, &dummy) || dummy != 0x77777777 card 402 drivers/staging/isdn/avm/c4.c || c4_peek(card, 0xC00000, &dummy) || dummy != 0x88888888) card 410 drivers/staging/isdn/avm/c4.c static void c4_dispatch_tx(avmcard *card) card 412 drivers/staging/isdn/avm/c4.c avmcard_dmainfo *dma = card->dma; card 420 drivers/staging/isdn/avm/c4.c if (card->csr & DBELL_DOWN_ARM) { /* tx busy */ card 427 drivers/staging/isdn/avm/c4.c printk(KERN_DEBUG "%s: tx underrun\n", card->name); card 451 drivers/staging/isdn/avm/c4.c printk(KERN_DEBUG "%s: tx put msg len=%d\n", card->name, txlen); card 457 drivers/staging/isdn/avm/c4.c printk(KERN_INFO "%s: ack to c4\n", card->name); card 461 drivers/staging/isdn/avm/c4.c card->name, skb->data[2], txlen); card 468 drivers/staging/isdn/avm/c4.c c4outmeml(card->mbase + MBOX_DOWN_ADDR, dma->sendbuf.dmaaddr); card 469 drivers/staging/isdn/avm/c4.c c4outmeml(card->mbase + MBOX_DOWN_LEN, txlen); card 471 drivers/staging/isdn/avm/c4.c card->csr |= DBELL_DOWN_ARM; card 473 drivers/staging/isdn/avm/c4.c c4outmeml(card->mbase + DOORBELL, DBELL_DOWN_ARM); card 480 drivers/staging/isdn/avm/c4.c static void queue_pollack(avmcard *card) card 488 drivers/staging/isdn/avm/c4.c card->name); card 497 drivers/staging/isdn/avm/c4.c skb_queue_tail(&card->dma->send_queue, skb); card 498 drivers/staging/isdn/avm/c4.c c4_dispatch_tx(card); card 503 drivers/staging/isdn/avm/c4.c static void c4_handle_rx(avmcard *card) card 505 drivers/staging/isdn/avm/c4.c avmcard_dmainfo *dma = card->dma; card 516 drivers/staging/isdn/avm/c4.c printk(KERN_DEBUG "%s: rx 0x%x len=%lu\n", card->name, card 524 drivers/staging/isdn/avm/c4.c MsgLen = _get_slice(&p, card->msgbuf); card 525 drivers/staging/isdn/avm/c4.c DataB3Len = _get_slice(&p, card->databuf); card 526 drivers/staging/isdn/avm/c4.c cidx = CAPIMSG_CONTROLLER(card->msgbuf)-card->cardnr; card 527 drivers/staging/isdn/avm/c4.c if (cidx >= card->nlogcontr) cidx = 0; card 528 drivers/staging/isdn/avm/c4.c ctrl = &card->ctrlinfo[cidx].capi_ctrl; card 531 drivers/staging/isdn/avm/c4.c memset(card->msgbuf + MsgLen, 0, 30 - MsgLen); card 533 drivers/staging/isdn/avm/c4.c CAPIMSG_SETLEN(card->msgbuf, 30); card 537 drivers/staging/isdn/avm/c4.c card->name); card 539 drivers/staging/isdn/avm/c4.c skb_put_data(skb, card->msgbuf, MsgLen); card 540 drivers/staging/isdn/avm/c4.c skb_put_data(skb, card->databuf, DataB3Len); card 548 drivers/staging/isdn/avm/c4.c MsgLen = _get_slice(&p, card->msgbuf); card 549 drivers/staging/isdn/avm/c4.c cidx = CAPIMSG_CONTROLLER(card->msgbuf)-card->cardnr; card 550 drivers/staging/isdn/avm/c4.c if (cidx >= card->nlogcontr) cidx = 0; card 551 drivers/staging/isdn/avm/c4.c cinfo = &card->ctrlinfo[cidx]; card 552 drivers/staging/isdn/avm/c4.c ctrl = &card->ctrlinfo[cidx].capi_ctrl; card 556 drivers/staging/isdn/avm/c4.c card->name); card 558 drivers/staging/isdn/avm/c4.c skb_put_data(skb, card->msgbuf, MsgLen); card 573 drivers/staging/isdn/avm/c4.c cidx = (NCCI & 0x7f) - card->cardnr; card 574 drivers/staging/isdn/avm/c4.c if (cidx >= card->nlogcontr) cidx = 0; card 576 drivers/staging/isdn/avm/c4.c capilib_new_ncci(&card->ctrlinfo[cidx].ncci_head, ApplId, NCCI, WindowSize); card 586 drivers/staging/isdn/avm/c4.c cidx = (NCCI & 0x7f) - card->cardnr; card 587 drivers/staging/isdn/avm/c4.c if (cidx >= card->nlogcontr) cidx = 0; card 588 drivers/staging/isdn/avm/c4.c capilib_free_ncci(&card->ctrlinfo[cidx].ncci_head, ApplId, NCCI); card 594 drivers/staging/isdn/avm/c4.c printk(KERN_INFO "%s: poll from c4\n", card->name); card 597 drivers/staging/isdn/avm/c4.c queue_pollack(card); card 598 drivers/staging/isdn/avm/c4.c for (cidx = 0; cidx < card->nr_controllers; cidx++) { card 599 drivers/staging/isdn/avm/c4.c ctrl = &card->ctrlinfo[cidx].capi_ctrl; card 605 drivers/staging/isdn/avm/c4.c for (cidx = 0; cidx < card->nr_controllers; cidx++) { card 606 drivers/staging/isdn/avm/c4.c ctrl = &card->ctrlinfo[cidx].capi_ctrl; card 613 drivers/staging/isdn/avm/c4.c cidx = card->nlogcontr; card 614 drivers/staging/isdn/avm/c4.c if (cidx >= card->nr_controllers) { card 616 drivers/staging/isdn/avm/c4.c card->name, cidx + 1); card 619 drivers/staging/isdn/avm/c4.c card->nlogcontr++; card 620 drivers/staging/isdn/avm/c4.c cinfo = &card->ctrlinfo[cidx]; card 625 drivers/staging/isdn/avm/c4.c card->name, card 633 drivers/staging/isdn/avm/c4.c MsgLen = _get_slice(&p, card->msgbuf); card 634 drivers/staging/isdn/avm/c4.c card->msgbuf[MsgLen] = 0; card 636 drivers/staging/isdn/avm/c4.c && (card->msgbuf[MsgLen - 1] == '\n' card 637 drivers/staging/isdn/avm/c4.c || card->msgbuf[MsgLen - 1] == '\r')) { card 638 drivers/staging/isdn/avm/c4.c card->msgbuf[MsgLen - 1] = 0; card 642 drivers/staging/isdn/avm/c4.c card->name, ApplId, card->msgbuf); card 646 drivers/staging/isdn/avm/c4.c MsgLen = _get_slice(&p, card->msgbuf); card 647 drivers/staging/isdn/avm/c4.c card->msgbuf[MsgLen] = 0; card 649 drivers/staging/isdn/avm/c4.c && (card->msgbuf[MsgLen - 1] == '\n' card 650 drivers/staging/isdn/avm/c4.c || card->msgbuf[MsgLen - 1] == '\r')) { card 651 drivers/staging/isdn/avm/c4.c card->msgbuf[MsgLen - 1] = 0; card 654 drivers/staging/isdn/avm/c4.c printk(KERN_INFO "%s: DEBUG: %s\n", card->name, card->msgbuf); card 659 drivers/staging/isdn/avm/c4.c card->name, b1cmd); card 666 drivers/staging/isdn/avm/c4.c static irqreturn_t c4_handle_interrupt(avmcard *card) card 671 drivers/staging/isdn/avm/c4.c spin_lock_irqsave(&card->lock, flags); card 672 drivers/staging/isdn/avm/c4.c status = c4inmeml(card->mbase + DOORBELL); card 676 drivers/staging/isdn/avm/c4.c c4outmeml(card->mbase + PCI_OUT_INT_MASK, 0x0c); card 677 drivers/staging/isdn/avm/c4.c spin_unlock_irqrestore(&card->lock, flags); card 678 drivers/staging/isdn/avm/c4.c if (card->nlogcontr == 0) card 680 drivers/staging/isdn/avm/c4.c printk(KERN_ERR "%s: unexpected reset\n", card->name); card 681 drivers/staging/isdn/avm/c4.c for (i = 0; i < card->nr_controllers; i++) { card 682 drivers/staging/isdn/avm/c4.c avmctrl_info *cinfo = &card->ctrlinfo[i]; card 684 drivers/staging/isdn/avm/c4.c spin_lock_irqsave(&card->lock, flags); card 686 drivers/staging/isdn/avm/c4.c spin_unlock_irqrestore(&card->lock, flags); card 689 drivers/staging/isdn/avm/c4.c card->nlogcontr = 0; card 695 drivers/staging/isdn/avm/c4.c spin_unlock_irqrestore(&card->lock, flags); card 698 drivers/staging/isdn/avm/c4.c c4outmeml(card->mbase + DOORBELL, status); card 701 drivers/staging/isdn/avm/c4.c card->dma->recvlen = c4inmeml(card->mbase + MBOX_UP_LEN); card 702 drivers/staging/isdn/avm/c4.c c4outmeml(card->mbase + MBOX_UP_LEN, 0); card 703 drivers/staging/isdn/avm/c4.c c4_handle_rx(card); card 704 drivers/staging/isdn/avm/c4.c card->dma->recvlen = 0; card 705 drivers/staging/isdn/avm/c4.c c4outmeml(card->mbase + MBOX_UP_LEN, card->dma->recvbuf.size); card 706 drivers/staging/isdn/avm/c4.c c4outmeml(card->mbase + DOORBELL, DBELL_UP_ARM); card 710 drivers/staging/isdn/avm/c4.c card->csr &= ~DBELL_DOWN_ARM; card 711 drivers/staging/isdn/avm/c4.c c4_dispatch_tx(card); card 712 drivers/staging/isdn/avm/c4.c } else if (card->csr & DBELL_DOWN_HOST) { card 713 drivers/staging/isdn/avm/c4.c if (c4inmeml(card->mbase + MBOX_DOWN_LEN) == 0) { card 714 drivers/staging/isdn/avm/c4.c card->csr &= ~DBELL_DOWN_ARM; card 715 drivers/staging/isdn/avm/c4.c c4_dispatch_tx(card); card 718 drivers/staging/isdn/avm/c4.c spin_unlock_irqrestore(&card->lock, flags); card 724 drivers/staging/isdn/avm/c4.c avmcard *card = devptr; card 726 drivers/staging/isdn/avm/c4.c return c4_handle_interrupt(card); card 731 drivers/staging/isdn/avm/c4.c static void c4_send_init(avmcard *card) card 740 drivers/staging/isdn/avm/c4.c card->name); card 749 drivers/staging/isdn/avm/c4.c _put_word(&p, card->cardnr - 1); card 752 drivers/staging/isdn/avm/c4.c skb_queue_tail(&card->dma->send_queue, skb); card 753 drivers/staging/isdn/avm/c4.c spin_lock_irqsave(&card->lock, flags); card 754 drivers/staging/isdn/avm/c4.c c4_dispatch_tx(card); card 755 drivers/staging/isdn/avm/c4.c spin_unlock_irqrestore(&card->lock, flags); card 758 drivers/staging/isdn/avm/c4.c static int queue_sendconfigword(avmcard *card, u32 val) card 767 drivers/staging/isdn/avm/c4.c card->name); card 777 drivers/staging/isdn/avm/c4.c skb_queue_tail(&card->dma->send_queue, skb); card 778 drivers/staging/isdn/avm/c4.c spin_lock_irqsave(&card->lock, flags); card 779 drivers/staging/isdn/avm/c4.c c4_dispatch_tx(card); card 780 drivers/staging/isdn/avm/c4.c spin_unlock_irqrestore(&card->lock, flags); card 784 drivers/staging/isdn/avm/c4.c static int queue_sendconfig(avmcard *card, char cval[4]) card 793 drivers/staging/isdn/avm/c4.c card->name); card 806 drivers/staging/isdn/avm/c4.c skb_queue_tail(&card->dma->send_queue, skb); card 808 drivers/staging/isdn/avm/c4.c spin_lock_irqsave(&card->lock, flags); card 809 drivers/staging/isdn/avm/c4.c c4_dispatch_tx(card); card 810 drivers/staging/isdn/avm/c4.c spin_unlock_irqrestore(&card->lock, flags); card 814 drivers/staging/isdn/avm/c4.c static int c4_send_config(avmcard *card, capiloaddatapart *config) card 821 drivers/staging/isdn/avm/c4.c if ((retval = queue_sendconfigword(card, 1)) != 0) card 823 drivers/staging/isdn/avm/c4.c if ((retval = queue_sendconfigword(card, config->len)) != 0) card 835 drivers/staging/isdn/avm/c4.c if ((retval = queue_sendconfig(card, val)) != 0) card 848 drivers/staging/isdn/avm/c4.c if ((retval = queue_sendconfig(card, val)) != 0) card 858 drivers/staging/isdn/avm/c4.c avmcard *card = cinfo->card; card 861 drivers/staging/isdn/avm/c4.c if ((retval = c4_load_t4file(card, &data->firmware))) { card 863 drivers/staging/isdn/avm/c4.c card->name); card 864 drivers/staging/isdn/avm/c4.c c4_reset(card); card 868 drivers/staging/isdn/avm/c4.c card->csr = 0; card 869 drivers/staging/isdn/avm/c4.c c4outmeml(card->mbase + MBOX_UP_LEN, 0); card 870 drivers/staging/isdn/avm/c4.c c4outmeml(card->mbase + MBOX_DOWN_LEN, 0); card 871 drivers/staging/isdn/avm/c4.c c4outmeml(card->mbase + DOORBELL, DBELL_INIT); card 873 drivers/staging/isdn/avm/c4.c c4outmeml(card->mbase + DOORBELL, card 876 drivers/staging/isdn/avm/c4.c c4outmeml(card->mbase + PCI_OUT_INT_MASK, 0x08); card 878 drivers/staging/isdn/avm/c4.c card->dma->recvlen = 0; card 879 drivers/staging/isdn/avm/c4.c c4outmeml(card->mbase + MBOX_UP_ADDR, card->dma->recvbuf.dmaaddr); card 880 drivers/staging/isdn/avm/c4.c c4outmeml(card->mbase + MBOX_UP_LEN, card->dma->recvbuf.size); card 881 drivers/staging/isdn/avm/c4.c c4outmeml(card->mbase + DOORBELL, DBELL_UP_ARM); card 884 drivers/staging/isdn/avm/c4.c retval = c4_send_config(card, &data->configuration); card 887 drivers/staging/isdn/avm/c4.c card->name); card 888 drivers/staging/isdn/avm/c4.c c4_reset(card); card 893 drivers/staging/isdn/avm/c4.c c4_send_init(card); card 901 drivers/staging/isdn/avm/c4.c avmcard *card = ((avmctrl_info *)(ctrl->driverdata))->card; card 906 drivers/staging/isdn/avm/c4.c spin_lock_irqsave(&card->lock, flags); card 908 drivers/staging/isdn/avm/c4.c c4_reset(card); card 910 drivers/staging/isdn/avm/c4.c spin_unlock_irqrestore(&card->lock, flags); card 912 drivers/staging/isdn/avm/c4.c for (i = 0; i < card->nr_controllers; i++) { card 913 drivers/staging/isdn/avm/c4.c cinfo = &card->ctrlinfo[i]; card 917 drivers/staging/isdn/avm/c4.c card->nlogcontr = 0; card 922 drivers/staging/isdn/avm/c4.c avmcard *card = pci_get_drvdata(pdev); card 926 drivers/staging/isdn/avm/c4.c if (!card) card 929 drivers/staging/isdn/avm/c4.c c4_reset(card); card 931 drivers/staging/isdn/avm/c4.c for (i = 0; i < card->nr_controllers; i++) { card 932 drivers/staging/isdn/avm/c4.c cinfo = &card->ctrlinfo[i]; card 936 drivers/staging/isdn/avm/c4.c free_irq(card->irq, card); card 937 drivers/staging/isdn/avm/c4.c iounmap(card->mbase); card 938 drivers/staging/isdn/avm/c4.c release_region(card->port, AVMB1_PORTLEN); card 939 drivers/staging/isdn/avm/c4.c avmcard_dma_free(card->dma); card 941 drivers/staging/isdn/avm/c4.c b1_free_card(card); card 952 drivers/staging/isdn/avm/c4.c avmcard *card = cinfo->card; card 959 drivers/staging/isdn/avm/c4.c if (ctrl->cnr == card->cardnr) { card 968 drivers/staging/isdn/avm/c4.c card->name); card 982 drivers/staging/isdn/avm/c4.c skb_queue_tail(&card->dma->send_queue, skb); card 984 drivers/staging/isdn/avm/c4.c spin_lock_irqsave(&card->lock, flags); card 985 drivers/staging/isdn/avm/c4.c c4_dispatch_tx(card); card 986 drivers/staging/isdn/avm/c4.c spin_unlock_irqrestore(&card->lock, flags); card 995 drivers/staging/isdn/avm/c4.c avmcard *card = cinfo->card; card 1000 drivers/staging/isdn/avm/c4.c spin_lock_irqsave(&card->lock, flags); card 1002 drivers/staging/isdn/avm/c4.c spin_unlock_irqrestore(&card->lock, flags); card 1004 drivers/staging/isdn/avm/c4.c if (ctrl->cnr == card->cardnr) { card 1008 drivers/staging/isdn/avm/c4.c card->name); card 1018 drivers/staging/isdn/avm/c4.c skb_queue_tail(&card->dma->send_queue, skb); card 1019 drivers/staging/isdn/avm/c4.c spin_lock_irqsave(&card->lock, flags); card 1020 drivers/staging/isdn/avm/c4.c c4_dispatch_tx(card); card 1021 drivers/staging/isdn/avm/c4.c spin_unlock_irqrestore(&card->lock, flags); card 1031 drivers/staging/isdn/avm/c4.c avmcard *card = cinfo->card; card 1035 drivers/staging/isdn/avm/c4.c spin_lock_irqsave(&card->lock, flags); card 1043 drivers/staging/isdn/avm/c4.c skb_queue_tail(&card->dma->send_queue, skb); card 1044 drivers/staging/isdn/avm/c4.c c4_dispatch_tx(card); card 1046 drivers/staging/isdn/avm/c4.c spin_unlock_irqrestore(&card->lock, flags); card 1061 drivers/staging/isdn/avm/c4.c cinfo->card ? cinfo->card->port : 0x0, card 1062 drivers/staging/isdn/avm/c4.c cinfo->card ? cinfo->card->irq : 0, card 1063 drivers/staging/isdn/avm/c4.c cinfo->card ? cinfo->card->membase : 0 card 1072 drivers/staging/isdn/avm/c4.c avmcard *card = cinfo->card; card 1076 drivers/staging/isdn/avm/c4.c seq_printf(m, "%-16s %s\n", "name", card->name); card 1077 drivers/staging/isdn/avm/c4.c seq_printf(m, "%-16s 0x%x\n", "io", card->port); card 1078 drivers/staging/isdn/avm/c4.c seq_printf(m, "%-16s %d\n", "irq", card->irq); card 1079 drivers/staging/isdn/avm/c4.c seq_printf(m, "%-16s 0x%lx\n", "membase", card->membase); card 1080 drivers/staging/isdn/avm/c4.c switch (card->cardtype) { card 1100 drivers/staging/isdn/avm/c4.c if (card->cardtype != avm_m1) { card 1114 drivers/staging/isdn/avm/c4.c if (card->cardtype != avm_m1) { card 1135 drivers/staging/isdn/avm/c4.c avmcard *card; card 1140 drivers/staging/isdn/avm/c4.c card = b1_alloc_card(nr_controllers); card 1141 drivers/staging/isdn/avm/c4.c if (!card) { card 1146 drivers/staging/isdn/avm/c4.c card->dma = avmcard_dma_alloc("c4", dev, 2048 + 128, 2048 + 128); card 1147 drivers/staging/isdn/avm/c4.c if (!card->dma) { card 1153 drivers/staging/isdn/avm/c4.c sprintf(card->name, "c%d-%x", nr_controllers, p->port); card 1154 drivers/staging/isdn/avm/c4.c card->port = p->port; card 1155 drivers/staging/isdn/avm/c4.c card->irq = p->irq; card 1156 drivers/staging/isdn/avm/c4.c card->membase = p->membase; card 1157 drivers/staging/isdn/avm/c4.c card->cardtype = (nr_controllers == 4) ? avm_c4 : avm_c2; card 1159 drivers/staging/isdn/avm/c4.c if (!request_region(card->port, AVMB1_PORTLEN, card->name)) { card 1161 drivers/staging/isdn/avm/c4.c card->port, card->port + AVMB1_PORTLEN); card 1166 drivers/staging/isdn/avm/c4.c card->mbase = ioremap(card->membase, 128); card 1167 drivers/staging/isdn/avm/c4.c if (card->mbase == NULL) { card 1169 drivers/staging/isdn/avm/c4.c card->membase); card 1174 drivers/staging/isdn/avm/c4.c retval = c4_detect(card); card 1177 drivers/staging/isdn/avm/c4.c card->port, retval); card 1181 drivers/staging/isdn/avm/c4.c c4_reset(card); card 1183 drivers/staging/isdn/avm/c4.c retval = request_irq(card->irq, c4_interrupt, IRQF_SHARED, card->name, card); card 1185 drivers/staging/isdn/avm/c4.c printk(KERN_ERR "c4: unable to get IRQ %d.\n", card->irq); card 1191 drivers/staging/isdn/avm/c4.c cinfo = &card->ctrlinfo[i]; card 1202 drivers/staging/isdn/avm/c4.c strcpy(cinfo->capi_ctrl.name, card->name); card 1208 drivers/staging/isdn/avm/c4.c cinfo = &card->ctrlinfo[i]; card 1214 drivers/staging/isdn/avm/c4.c card->cardnr = cinfo->capi_ctrl.cnr; card 1218 drivers/staging/isdn/avm/c4.c nr_controllers, card->port, card->irq, card 1219 drivers/staging/isdn/avm/c4.c card->membase); card 1220 drivers/staging/isdn/avm/c4.c pci_set_drvdata(dev, card); card 1224 drivers/staging/isdn/avm/c4.c free_irq(card->irq, card); card 1226 drivers/staging/isdn/avm/c4.c iounmap(card->mbase); card 1228 drivers/staging/isdn/avm/c4.c release_region(card->port, AVMB1_PORTLEN); card 1230 drivers/staging/isdn/avm/c4.c avmcard_dma_free(card->dma); card 1232 drivers/staging/isdn/avm/c4.c b1_free_card(card); card 137 drivers/staging/isdn/avm/t1isa.c avmcard *card = devptr; card 138 drivers/staging/isdn/avm/t1isa.c avmctrl_info *cinfo = &card->ctrlinfo[0]; card 150 drivers/staging/isdn/avm/t1isa.c spin_lock_irqsave(&card->lock, flags); card 152 drivers/staging/isdn/avm/t1isa.c while (b1_rx_full(card->port)) { card 154 drivers/staging/isdn/avm/t1isa.c b1cmd = b1_get_byte(card->port); card 160 drivers/staging/isdn/avm/t1isa.c ApplId = (unsigned) b1_get_word(card->port); card 161 drivers/staging/isdn/avm/t1isa.c MsgLen = t1_get_slice(card->port, card->msgbuf); card 162 drivers/staging/isdn/avm/t1isa.c DataB3Len = t1_get_slice(card->port, card->databuf); card 163 drivers/staging/isdn/avm/t1isa.c spin_unlock_irqrestore(&card->lock, flags); card 166 drivers/staging/isdn/avm/t1isa.c memset(card->msgbuf + MsgLen, 0, 30 - MsgLen); card 168 drivers/staging/isdn/avm/t1isa.c CAPIMSG_SETLEN(card->msgbuf, 30); card 172 drivers/staging/isdn/avm/t1isa.c card->name); card 174 drivers/staging/isdn/avm/t1isa.c skb_put_data(skb, card->msgbuf, MsgLen); card 175 drivers/staging/isdn/avm/t1isa.c skb_put_data(skb, card->databuf, DataB3Len); card 182 drivers/staging/isdn/avm/t1isa.c ApplId = (unsigned) b1_get_word(card->port); card 183 drivers/staging/isdn/avm/t1isa.c MsgLen = t1_get_slice(card->port, card->msgbuf); card 185 drivers/staging/isdn/avm/t1isa.c spin_unlock_irqrestore(&card->lock, flags); card 187 drivers/staging/isdn/avm/t1isa.c card->name); card 189 drivers/staging/isdn/avm/t1isa.c skb_put_data(skb, card->msgbuf, MsgLen); card 194 drivers/staging/isdn/avm/t1isa.c spin_unlock_irqrestore(&card->lock, flags); card 201 drivers/staging/isdn/avm/t1isa.c ApplId = b1_get_word(card->port); card 202 drivers/staging/isdn/avm/t1isa.c NCCI = b1_get_word(card->port); card 203 drivers/staging/isdn/avm/t1isa.c WindowSize = b1_get_word(card->port); card 205 drivers/staging/isdn/avm/t1isa.c spin_unlock_irqrestore(&card->lock, flags); card 210 drivers/staging/isdn/avm/t1isa.c ApplId = b1_get_word(card->port); card 211 drivers/staging/isdn/avm/t1isa.c NCCI = b1_get_word(card->port); card 214 drivers/staging/isdn/avm/t1isa.c spin_unlock_irqrestore(&card->lock, flags); card 218 drivers/staging/isdn/avm/t1isa.c b1_put_byte(card->port, SEND_POLLACK); card 219 drivers/staging/isdn/avm/t1isa.c spin_unlock_irqrestore(&card->lock, flags); card 224 drivers/staging/isdn/avm/t1isa.c spin_unlock_irqrestore(&card->lock, flags); card 230 drivers/staging/isdn/avm/t1isa.c cinfo->versionlen = t1_get_slice(card->port, cinfo->versionbuf); card 231 drivers/staging/isdn/avm/t1isa.c spin_unlock_irqrestore(&card->lock, flags); card 234 drivers/staging/isdn/avm/t1isa.c card->name, card 241 drivers/staging/isdn/avm/t1isa.c ApplId = (unsigned) b1_get_word(card->port); card 242 drivers/staging/isdn/avm/t1isa.c MsgLen = t1_get_slice(card->port, card->msgbuf); card 243 drivers/staging/isdn/avm/t1isa.c spin_unlock_irqrestore(&card->lock, flags); card 244 drivers/staging/isdn/avm/t1isa.c card->msgbuf[MsgLen] = 0; card 246 drivers/staging/isdn/avm/t1isa.c && (card->msgbuf[MsgLen - 1] == '\n' card 247 drivers/staging/isdn/avm/t1isa.c || card->msgbuf[MsgLen - 1] == '\r')) { card 248 drivers/staging/isdn/avm/t1isa.c card->msgbuf[MsgLen - 1] = 0; card 252 drivers/staging/isdn/avm/t1isa.c card->name, ApplId, card->msgbuf); card 256 drivers/staging/isdn/avm/t1isa.c MsgLen = t1_get_slice(card->port, card->msgbuf); card 257 drivers/staging/isdn/avm/t1isa.c spin_unlock_irqrestore(&card->lock, flags); card 258 drivers/staging/isdn/avm/t1isa.c card->msgbuf[MsgLen] = 0; card 260 drivers/staging/isdn/avm/t1isa.c && (card->msgbuf[MsgLen - 1] == '\n' card 261 drivers/staging/isdn/avm/t1isa.c || card->msgbuf[MsgLen - 1] == '\r')) { card 262 drivers/staging/isdn/avm/t1isa.c card->msgbuf[MsgLen - 1] = 0; card 265 drivers/staging/isdn/avm/t1isa.c printk(KERN_INFO "%s: DEBUG: %s\n", card->name, card->msgbuf); card 270 drivers/staging/isdn/avm/t1isa.c spin_unlock_irqrestore(&card->lock, flags); card 271 drivers/staging/isdn/avm/t1isa.c printk(KERN_ERR "%s: card reseted ?\n", card->name); card 274 drivers/staging/isdn/avm/t1isa.c spin_unlock_irqrestore(&card->lock, flags); card 276 drivers/staging/isdn/avm/t1isa.c card->name, b1cmd); card 288 drivers/staging/isdn/avm/t1isa.c avmcard *card = cinfo->card; card 289 drivers/staging/isdn/avm/t1isa.c unsigned int port = card->port; card 296 drivers/staging/isdn/avm/t1isa.c if ((retval = b1_load_t4file(card, &data->firmware))) { card 299 drivers/staging/isdn/avm/t1isa.c card->name); card 304 drivers/staging/isdn/avm/t1isa.c if ((retval = b1_load_config(card, &data->configuration))) { card 307 drivers/staging/isdn/avm/t1isa.c card->name); card 312 drivers/staging/isdn/avm/t1isa.c if (!b1_loaded(card)) { card 313 drivers/staging/isdn/avm/t1isa.c printk(KERN_ERR "%s: failed to load t4file.\n", card->name); card 317 drivers/staging/isdn/avm/t1isa.c spin_lock_irqsave(&card->lock, flags); card 318 drivers/staging/isdn/avm/t1isa.c b1_setinterrupt(port, card->irq, card->cardtype); card 323 drivers/staging/isdn/avm/t1isa.c spin_unlock_irqrestore(&card->lock, flags); card 331 drivers/staging/isdn/avm/t1isa.c avmcard *card = cinfo->card; card 332 drivers/staging/isdn/avm/t1isa.c unsigned int port = card->port; card 340 drivers/staging/isdn/avm/t1isa.c spin_lock_irqsave(&card->lock, flags); card 342 drivers/staging/isdn/avm/t1isa.c spin_unlock_irqrestore(&card->lock, flags); card 349 drivers/staging/isdn/avm/t1isa.c avmcard *card; card 354 drivers/staging/isdn/avm/t1isa.c card = cinfo->card; card 356 drivers/staging/isdn/avm/t1isa.c t1_disable_irq(card->port); card 357 drivers/staging/isdn/avm/t1isa.c b1_reset(card->port); card 358 drivers/staging/isdn/avm/t1isa.c b1_reset(card->port); card 359 drivers/staging/isdn/avm/t1isa.c t1_reset(card->port); card 362 drivers/staging/isdn/avm/t1isa.c free_irq(card->irq, card); card 363 drivers/staging/isdn/avm/t1isa.c release_region(card->port, AVMB1_PORTLEN); card 364 drivers/staging/isdn/avm/t1isa.c b1_free_card(card); card 375 drivers/staging/isdn/avm/t1isa.c avmcard *card; card 378 drivers/staging/isdn/avm/t1isa.c card = b1_alloc_card(1); card 379 drivers/staging/isdn/avm/t1isa.c if (!card) { card 385 drivers/staging/isdn/avm/t1isa.c cinfo = card->ctrlinfo; card 386 drivers/staging/isdn/avm/t1isa.c card->port = pci_resource_start(pdev, 0); card 387 drivers/staging/isdn/avm/t1isa.c card->irq = pdev->irq; card 388 drivers/staging/isdn/avm/t1isa.c card->cardtype = avm_t1isa; card 389 drivers/staging/isdn/avm/t1isa.c card->cardnr = cardnr; card 390 drivers/staging/isdn/avm/t1isa.c sprintf(card->name, "t1isa-%x", card->port); card 392 drivers/staging/isdn/avm/t1isa.c if (!(((card->port & 0x7) == 0) && ((card->port & 0x30) != 0x30))) { card 393 drivers/staging/isdn/avm/t1isa.c printk(KERN_WARNING "t1isa: invalid port 0x%x.\n", card->port); card 397 drivers/staging/isdn/avm/t1isa.c if (hema_irq_table[card->irq & 0xf] == 0) { card 398 drivers/staging/isdn/avm/t1isa.c printk(KERN_WARNING "t1isa: irq %d not valid.\n", card->irq); card 402 drivers/staging/isdn/avm/t1isa.c if (!request_region(card->port, AVMB1_PORTLEN, card->name)) { card 404 drivers/staging/isdn/avm/t1isa.c card->port, card->port + AVMB1_PORTLEN); card 408 drivers/staging/isdn/avm/t1isa.c retval = request_irq(card->irq, t1isa_interrupt, 0, card->name, card); card 410 drivers/staging/isdn/avm/t1isa.c printk(KERN_INFO "t1isa: unable to get IRQ %d.\n", card->irq); card 415 drivers/staging/isdn/avm/t1isa.c if ((retval = t1_detectandinit(card->port, card->irq, card->cardnr)) != 0) { card 417 drivers/staging/isdn/avm/t1isa.c card->port, retval); card 421 drivers/staging/isdn/avm/t1isa.c t1_disable_irq(card->port); card 422 drivers/staging/isdn/avm/t1isa.c b1_reset(card->port); card 434 drivers/staging/isdn/avm/t1isa.c strcpy(cinfo->capi_ctrl.name, card->name); card 443 drivers/staging/isdn/avm/t1isa.c card->port, card->irq, card->cardnr); card 449 drivers/staging/isdn/avm/t1isa.c free_irq(card->irq, card); card 451 drivers/staging/isdn/avm/t1isa.c release_region(card->port, AVMB1_PORTLEN); card 453 drivers/staging/isdn/avm/t1isa.c b1_free_card(card); card 461 drivers/staging/isdn/avm/t1isa.c avmcard *card = cinfo->card; card 462 drivers/staging/isdn/avm/t1isa.c unsigned int port = card->port; card 469 drivers/staging/isdn/avm/t1isa.c spin_lock_irqsave(&card->lock, flags); card 476 drivers/staging/isdn/avm/t1isa.c spin_unlock_irqrestore(&card->lock, flags); card 488 drivers/staging/isdn/avm/t1isa.c spin_unlock_irqrestore(&card->lock, flags); card 503 drivers/staging/isdn/avm/t1isa.c cinfo->card ? cinfo->card->port : 0x0, card 504 drivers/staging/isdn/avm/t1isa.c cinfo->card ? cinfo->card->irq : 0, card 505 drivers/staging/isdn/avm/t1isa.c cinfo->card ? cinfo->card->cardnr : 0 card 51 drivers/staging/isdn/avm/t1pci.c avmcard *card; card 55 drivers/staging/isdn/avm/t1pci.c card = b1_alloc_card(1); card 56 drivers/staging/isdn/avm/t1pci.c if (!card) { card 62 drivers/staging/isdn/avm/t1pci.c card->dma = avmcard_dma_alloc("t1pci", pdev, 2048 + 128, 2048 + 128); card 63 drivers/staging/isdn/avm/t1pci.c if (!card->dma) { card 69 drivers/staging/isdn/avm/t1pci.c cinfo = card->ctrlinfo; card 70 drivers/staging/isdn/avm/t1pci.c sprintf(card->name, "t1pci-%x", p->port); card 71 drivers/staging/isdn/avm/t1pci.c card->port = p->port; card 72 drivers/staging/isdn/avm/t1pci.c card->irq = p->irq; card 73 drivers/staging/isdn/avm/t1pci.c card->membase = p->membase; card 74 drivers/staging/isdn/avm/t1pci.c card->cardtype = avm_t1pci; card 76 drivers/staging/isdn/avm/t1pci.c if (!request_region(card->port, AVMB1_PORTLEN, card->name)) { card 78 drivers/staging/isdn/avm/t1pci.c card->port, card->port + AVMB1_PORTLEN); card 83 drivers/staging/isdn/avm/t1pci.c card->mbase = ioremap(card->membase, 64); card 84 drivers/staging/isdn/avm/t1pci.c if (!card->mbase) { card 86 drivers/staging/isdn/avm/t1pci.c card->membase); card 91 drivers/staging/isdn/avm/t1pci.c b1dma_reset(card); card 93 drivers/staging/isdn/avm/t1pci.c retval = t1pci_detect(card); card 97 drivers/staging/isdn/avm/t1pci.c card->port, retval); card 100 drivers/staging/isdn/avm/t1pci.c card->port, retval); card 104 drivers/staging/isdn/avm/t1pci.c b1dma_reset(card); card 106 drivers/staging/isdn/avm/t1pci.c retval = request_irq(card->irq, b1dma_interrupt, IRQF_SHARED, card->name, card); card 108 drivers/staging/isdn/avm/t1pci.c printk(KERN_ERR "t1pci: unable to get IRQ %d.\n", card->irq); card 123 drivers/staging/isdn/avm/t1pci.c strcpy(cinfo->capi_ctrl.name, card->name); card 131 drivers/staging/isdn/avm/t1pci.c card->cardnr = cinfo->capi_ctrl.cnr; card 134 drivers/staging/isdn/avm/t1pci.c card->port, card->irq, card->membase); card 136 drivers/staging/isdn/avm/t1pci.c pci_set_drvdata(pdev, card); card 140 drivers/staging/isdn/avm/t1pci.c free_irq(card->irq, card); card 142 drivers/staging/isdn/avm/t1pci.c iounmap(card->mbase); card 144 drivers/staging/isdn/avm/t1pci.c release_region(card->port, AVMB1_PORTLEN); card 146 drivers/staging/isdn/avm/t1pci.c avmcard_dma_free(card->dma); card 148 drivers/staging/isdn/avm/t1pci.c b1_free_card(card); card 157 drivers/staging/isdn/avm/t1pci.c avmcard *card = pci_get_drvdata(pdev); card 158 drivers/staging/isdn/avm/t1pci.c avmctrl_info *cinfo = card->ctrlinfo; card 160 drivers/staging/isdn/avm/t1pci.c b1dma_reset(card); card 163 drivers/staging/isdn/avm/t1pci.c free_irq(card->irq, card); card 164 drivers/staging/isdn/avm/t1pci.c iounmap(card->mbase); card 165 drivers/staging/isdn/avm/t1pci.c release_region(card->port, AVMB1_PORTLEN); card 166 drivers/staging/isdn/avm/t1pci.c avmcard_dma_free(card->dma); card 167 drivers/staging/isdn/avm/t1pci.c b1_free_card(card); card 181 drivers/staging/isdn/avm/t1pci.c cinfo->card ? cinfo->card->port : 0x0, card 182 drivers/staging/isdn/avm/t1pci.c cinfo->card ? cinfo->card->irq : 0, card 183 drivers/staging/isdn/avm/t1pci.c cinfo->card ? cinfo->card->membase : 0 card 37 drivers/staging/isdn/hysdn/boardergo.c hysdn_card *card = dev_id; /* parameter from irq */ card 42 drivers/staging/isdn/hysdn/boardergo.c if (!card) card 44 drivers/staging/isdn/hysdn/boardergo.c if (!card->irq_enabled) card 47 drivers/staging/isdn/hysdn/boardergo.c spin_lock_irqsave(&card->hysdn_lock, flags); /* no further irqs allowed */ card 49 drivers/staging/isdn/hysdn/boardergo.c if (!(bytein(card->iobase + PCI9050_INTR_REG) & PCI9050_INTR_REG_STAT1)) { card 50 drivers/staging/isdn/hysdn/boardergo.c spin_unlock_irqrestore(&card->hysdn_lock, flags); /* restore old state */ card 54 drivers/staging/isdn/hysdn/boardergo.c dpr = card->dpram; card 60 drivers/staging/isdn/hysdn/boardergo.c if (!card->hw_lock) card 61 drivers/staging/isdn/hysdn/boardergo.c schedule_work(&card->irq_queue); card 62 drivers/staging/isdn/hysdn/boardergo.c spin_unlock_irqrestore(&card->hysdn_lock, flags); card 76 drivers/staging/isdn/hysdn/boardergo.c hysdn_card *card = container_of(ugli_api, hysdn_card, irq_queue); card 81 drivers/staging/isdn/hysdn/boardergo.c if (card->state != CARD_STATE_RUN) card 84 drivers/staging/isdn/hysdn/boardergo.c dpr = card->dpram; /* point to DPRAM */ card 86 drivers/staging/isdn/hysdn/boardergo.c spin_lock_irqsave(&card->hysdn_lock, flags); card 87 drivers/staging/isdn/hysdn/boardergo.c if (card->hw_lock) { card 88 drivers/staging/isdn/hysdn/boardergo.c spin_unlock_irqrestore(&card->hysdn_lock, flags); /* hardware currently unavailable */ card 91 drivers/staging/isdn/hysdn/boardergo.c card->hw_lock = 1; /* we now lock the hardware */ card 99 drivers/staging/isdn/hysdn/boardergo.c if (hysdn_sched_tx(card, dpr->ToHyBuf, &dpr->ToHySize, &dpr->ToHyChannel, card 108 drivers/staging/isdn/hysdn/boardergo.c if (hysdn_sched_rx(card, dpr->ToPcBuf, dpr->ToPcSize, dpr->ToPcChannel)) { card 117 drivers/staging/isdn/hysdn/boardergo.c card->hw_lock = 0; /* free hardware again */ card 120 drivers/staging/isdn/hysdn/boardergo.c spin_unlock_irqrestore(&card->hysdn_lock, flags); card 128 drivers/staging/isdn/hysdn/boardergo.c ergo_stopcard(hysdn_card *card) card 133 drivers/staging/isdn/hysdn/boardergo.c hysdn_net_release(card); /* first release the net device if existing */ card 135 drivers/staging/isdn/hysdn/boardergo.c hycapi_capi_stop(card); card 137 drivers/staging/isdn/hysdn/boardergo.c spin_lock_irqsave(&card->hysdn_lock, flags); card 138 drivers/staging/isdn/hysdn/boardergo.c val = bytein(card->iobase + PCI9050_INTR_REG); /* get actual value */ card 140 drivers/staging/isdn/hysdn/boardergo.c byteout(card->iobase + PCI9050_INTR_REG, val); card 141 drivers/staging/isdn/hysdn/boardergo.c card->irq_enabled = 0; card 142 drivers/staging/isdn/hysdn/boardergo.c byteout(card->iobase + PCI9050_USER_IO, PCI9050_E1_RESET); /* reset E1 processor */ card 143 drivers/staging/isdn/hysdn/boardergo.c card->state = CARD_STATE_UNUSED; card 144 drivers/staging/isdn/hysdn/boardergo.c card->err_log_state = ERRLOG_STATE_OFF; /* currently no log active */ card 146 drivers/staging/isdn/hysdn/boardergo.c spin_unlock_irqrestore(&card->hysdn_lock, flags); card 153 drivers/staging/isdn/hysdn/boardergo.c ergo_set_errlog_state(hysdn_card *card, int on) card 157 drivers/staging/isdn/hysdn/boardergo.c if (card->state != CARD_STATE_RUN) { card 158 drivers/staging/isdn/hysdn/boardergo.c card->err_log_state = ERRLOG_STATE_OFF; /* must be off */ card 161 drivers/staging/isdn/hysdn/boardergo.c spin_lock_irqsave(&card->hysdn_lock, flags); card 163 drivers/staging/isdn/hysdn/boardergo.c if (((card->err_log_state == ERRLOG_STATE_OFF) && !on) || card 164 drivers/staging/isdn/hysdn/boardergo.c ((card->err_log_state == ERRLOG_STATE_ON) && on)) { card 165 drivers/staging/isdn/hysdn/boardergo.c spin_unlock_irqrestore(&card->hysdn_lock, flags); card 169 drivers/staging/isdn/hysdn/boardergo.c card->err_log_state = ERRLOG_STATE_START; /* request start */ card 171 drivers/staging/isdn/hysdn/boardergo.c card->err_log_state = ERRLOG_STATE_STOP; /* request stop */ card 173 drivers/staging/isdn/hysdn/boardergo.c spin_unlock_irqrestore(&card->hysdn_lock, flags); card 174 drivers/staging/isdn/hysdn/boardergo.c schedule_work(&card->irq_queue); card 183 drivers/staging/isdn/hysdn/boardergo.c ergo_testram(hysdn_card *card) card 185 drivers/staging/isdn/hysdn/boardergo.c tErgDpram *dpr = card->dpram; card 214 drivers/staging/isdn/hysdn/boardergo.c ergo_writebootimg(struct HYSDN_CARD *card, unsigned char *buf, card 221 drivers/staging/isdn/hysdn/boardergo.c if (card->debug_flags & LOG_POF_CARD) card 222 drivers/staging/isdn/hysdn/boardergo.c hysdn_addlog(card, "ERGO: write bootldr offs=0x%lx ", offs); card 224 drivers/staging/isdn/hysdn/boardergo.c dst = card->dpram; /* pointer to start of DPRAM */ card 236 drivers/staging/isdn/hysdn/boardergo.c memset(card->dpram, 0, ERG_DPRAM_FILL_SIZE); /* fill the DPRAM still not cleared */ card 237 drivers/staging/isdn/hysdn/boardergo.c dpram = card->dpram; /* get pointer to dpram structure */ card 241 drivers/staging/isdn/hysdn/boardergo.c byteout(card->iobase + PCI9050_USER_IO, PCI9050_E1_RUN); /* start E1 processor */ card 246 drivers/staging/isdn/hysdn/boardergo.c if (((tDpramBootSpooler *) card->dpram)->Len != DPRAM_SPOOLER_DATA_SIZE) { card 247 drivers/staging/isdn/hysdn/boardergo.c if (card->debug_flags & LOG_POF_CARD) card 248 drivers/staging/isdn/hysdn/boardergo.c hysdn_addlog(card, "ERGO: write bootldr no answer"); card 261 drivers/staging/isdn/hysdn/boardergo.c ergo_writebootseq(struct HYSDN_CARD *card, unsigned char *buf, int len) card 263 drivers/staging/isdn/hysdn/boardergo.c tDpramBootSpooler *sp = (tDpramBootSpooler *) card->dpram; card 271 drivers/staging/isdn/hysdn/boardergo.c if (card->debug_flags & LOG_POF_CARD) card 272 drivers/staging/isdn/hysdn/boardergo.c hysdn_addlog(card, "ERGO: write boot seq len=%d ", len); card 289 drivers/staging/isdn/hysdn/boardergo.c if (card->debug_flags & LOG_POF_CARD) card 290 drivers/staging/isdn/hysdn/boardergo.c hysdn_addlog(card, "ERGO: write boot seq timeout"); card 322 drivers/staging/isdn/hysdn/boardergo.c ergo_waitpofready(struct HYSDN_CARD *card) card 324 drivers/staging/isdn/hysdn/boardergo.c tErgDpram *dpr = card->dpram; /* pointer to DPRAM structure */ card 330 drivers/staging/isdn/hysdn/boardergo.c if (card->debug_flags & LOG_POF_CARD) card 331 drivers/staging/isdn/hysdn/boardergo.c hysdn_addlog(card, "ERGO: waiting for pof ready"); card 347 drivers/staging/isdn/hysdn/boardergo.c if (EvalSysrTokData(card, dpr->ToPcBuf + RDY_MAGIC_SIZE, msg_size)) card 350 drivers/staging/isdn/hysdn/boardergo.c if (card->debug_flags & LOG_POF_RECORD) card 351 drivers/staging/isdn/hysdn/boardergo.c hysdn_addlog(card, "ERGO: pof boot success"); card 352 drivers/staging/isdn/hysdn/boardergo.c spin_lock_irqsave(&card->hysdn_lock, flags); card 354 drivers/staging/isdn/hysdn/boardergo.c card->state = CARD_STATE_RUN; /* now card is running */ card 356 drivers/staging/isdn/hysdn/boardergo.c byteout(card->iobase + PCI9050_INTR_REG, card 357 drivers/staging/isdn/hysdn/boardergo.c bytein(card->iobase + PCI9050_INTR_REG) | card 359 drivers/staging/isdn/hysdn/boardergo.c card->irq_enabled = 1; /* we are ready to receive interrupts */ card 365 drivers/staging/isdn/hysdn/boardergo.c spin_unlock_irqrestore(&card->hysdn_lock, flags); card 366 drivers/staging/isdn/hysdn/boardergo.c if ((hynet_enable & (1 << card->myid)) card 367 drivers/staging/isdn/hysdn/boardergo.c && (i = hysdn_net_create(card))) card 369 drivers/staging/isdn/hysdn/boardergo.c ergo_stopcard(card); card 370 drivers/staging/isdn/hysdn/boardergo.c card->state = CARD_STATE_BOOTERR; card 374 drivers/staging/isdn/hysdn/boardergo.c if ((i = hycapi_capi_create(card))) { card 383 drivers/staging/isdn/hysdn/boardergo.c if (card->debug_flags & LOG_POF_CARD) card 384 drivers/staging/isdn/hysdn/boardergo.c hysdn_addlog(card, "ERGO: pof boot ready timeout"); card 396 drivers/staging/isdn/hysdn/boardergo.c ergo_releasehardware(hysdn_card *card) card 398 drivers/staging/isdn/hysdn/boardergo.c ergo_stopcard(card); /* first stop the card if not already done */ card 399 drivers/staging/isdn/hysdn/boardergo.c free_irq(card->irq, card); /* release interrupt */ card 400 drivers/staging/isdn/hysdn/boardergo.c release_region(card->iobase + PCI9050_INTR_REG, 1); /* release all io ports */ card 401 drivers/staging/isdn/hysdn/boardergo.c release_region(card->iobase + PCI9050_USER_IO, 1); card 402 drivers/staging/isdn/hysdn/boardergo.c iounmap(card->dpram); card 403 drivers/staging/isdn/hysdn/boardergo.c card->dpram = NULL; /* release shared mem */ card 413 drivers/staging/isdn/hysdn/boardergo.c ergo_inithardware(hysdn_card *card) card 415 drivers/staging/isdn/hysdn/boardergo.c if (!request_region(card->iobase + PCI9050_INTR_REG, 1, "HYSDN")) card 417 drivers/staging/isdn/hysdn/boardergo.c if (!request_region(card->iobase + PCI9050_USER_IO, 1, "HYSDN")) { card 418 drivers/staging/isdn/hysdn/boardergo.c release_region(card->iobase + PCI9050_INTR_REG, 1); card 421 drivers/staging/isdn/hysdn/boardergo.c card->memend = card->membase + ERG_DPRAM_PAGE_SIZE - 1; card 422 drivers/staging/isdn/hysdn/boardergo.c if (!(card->dpram = ioremap(card->membase, ERG_DPRAM_PAGE_SIZE))) { card 423 drivers/staging/isdn/hysdn/boardergo.c release_region(card->iobase + PCI9050_INTR_REG, 1); card 424 drivers/staging/isdn/hysdn/boardergo.c release_region(card->iobase + PCI9050_USER_IO, 1); card 428 drivers/staging/isdn/hysdn/boardergo.c ergo_stopcard(card); /* disable interrupts */ card 429 drivers/staging/isdn/hysdn/boardergo.c if (request_irq(card->irq, ergo_interrupt, IRQF_SHARED, "HYSDN", card)) { card 430 drivers/staging/isdn/hysdn/boardergo.c ergo_releasehardware(card); /* return the acquired hardware */ card 434 drivers/staging/isdn/hysdn/boardergo.c card->stopcard = ergo_stopcard; card 435 drivers/staging/isdn/hysdn/boardergo.c card->releasehardware = ergo_releasehardware; card 436 drivers/staging/isdn/hysdn/boardergo.c card->testram = ergo_testram; card 437 drivers/staging/isdn/hysdn/boardergo.c card->writebootimg = ergo_writebootimg; card 438 drivers/staging/isdn/hysdn/boardergo.c card->writebootseq = ergo_writebootseq; card 439 drivers/staging/isdn/hysdn/boardergo.c card->waitpofready = ergo_waitpofready; card 440 drivers/staging/isdn/hysdn/boardergo.c card->set_errlog_state = ergo_set_errlog_state; card 441 drivers/staging/isdn/hysdn/boardergo.c INIT_WORK(&card->irq_queue, ergo_irq_bh); card 442 drivers/staging/isdn/hysdn/boardergo.c spin_lock_init(&card->hysdn_lock); card 85 drivers/staging/isdn/hysdn/hycapi.c hysdn_card *card = NULL; card 94 drivers/staging/isdn/hysdn/hycapi.c card = cinfo->card; card 104 drivers/staging/isdn/hysdn/hycapi.c kfree(card->hyctrlinfo); card 107 drivers/staging/isdn/hysdn/hycapi.c card->hyctrlinfo = NULL; card 120 drivers/staging/isdn/hysdn/hycapi.c hysdn_card *card = cinfo->card; card 133 drivers/staging/isdn/hysdn/hycapi.c card->myid); card 138 drivers/staging/isdn/hysdn/hycapi.c schedule_work(&card->irq_queue); card 156 drivers/staging/isdn/hysdn/hycapi.c hysdn_card *card = cinfo->card; card 171 drivers/staging/isdn/hysdn/hycapi.c card->myid); card 228 drivers/staging/isdn/hysdn/hycapi.c hysdn_card *card = cinfo->card; card 244 drivers/staging/isdn/hysdn/hycapi.c MaxLogicalConnections = card->bchans * -MaxLogicalConnections; card 247 drivers/staging/isdn/hysdn/hycapi.c MaxLogicalConnections = card->bchans; card 265 drivers/staging/isdn/hysdn/hycapi.c hysdn_card *card = cinfo->card; card 279 drivers/staging/isdn/hysdn/hycapi.c card->myid); card 323 drivers/staging/isdn/hysdn/hycapi.c int hycapi_capi_release(hysdn_card *card) card 325 drivers/staging/isdn/hysdn/hycapi.c hycapictrl_info *cinfo = card->hyctrlinfo; card 343 drivers/staging/isdn/hysdn/hycapi.c int hycapi_capi_stop(hysdn_card *card) card 345 drivers/staging/isdn/hysdn/hycapi.c hycapictrl_info *cinfo = card->hyctrlinfo; card 442 drivers/staging/isdn/hysdn/hycapi.c hysdn_card *card = cinfo->card; card 446 drivers/staging/isdn/hysdn/hycapi.c seq_printf(m, "%-16s 0x%x\n", "io", card->iobase); card 447 drivers/staging/isdn/hysdn/hycapi.c seq_printf(m, "%-16s %d\n", "irq", card->irq); card 449 drivers/staging/isdn/hysdn/hycapi.c switch (card->brdtype) { card 498 drivers/staging/isdn/hysdn/hycapi.c cinfo->card ? cinfo->card->iobase : 0x0, card 499 drivers/staging/isdn/hysdn/hycapi.c cinfo->card ? cinfo->card->irq : 0, card 515 drivers/staging/isdn/hysdn/hycapi.c hycapi_rx_capipkt(hysdn_card *card, unsigned char *buf, unsigned short len) card 518 drivers/staging/isdn/hysdn/hycapi.c hycapictrl_info *cinfo = card->hyctrlinfo; card 533 drivers/staging/isdn/hysdn/hycapi.c card->myid, len); card 544 drivers/staging/isdn/hysdn/hycapi.c card->myid); card 554 drivers/staging/isdn/hysdn/hycapi.c card->myid); card 573 drivers/staging/isdn/hysdn/hycapi.c "protocol. NCPI ignored.\n", card->myid); card 577 drivers/staging/isdn/hysdn/hycapi.c " current state\n", card->myid); card 580 drivers/staging/isdn/hysdn/hycapi.c printk(KERN_ERR "HYSDN Card%d: invalid PLCI\n", card->myid); card 583 drivers/staging/isdn/hysdn/hycapi.c printk(KERN_ERR "HYSDN Card%d: out of NCCI\n", card->myid); card 587 drivers/staging/isdn/hysdn/hycapi.c card->myid); card 591 drivers/staging/isdn/hysdn/hycapi.c card->myid, info); card 619 drivers/staging/isdn/hysdn/hycapi.c void hycapi_tx_capiack(hysdn_card *card) card 621 drivers/staging/isdn/hysdn/hycapi.c hycapictrl_info *cinfo = card->hyctrlinfo; card 647 drivers/staging/isdn/hysdn/hycapi.c hycapi_tx_capiget(hysdn_card *card) card 649 drivers/staging/isdn/hysdn/hycapi.c hycapictrl_info *cinfo = card->hyctrlinfo; card 694 drivers/staging/isdn/hysdn/hycapi.c static void hycapi_fill_profile(hysdn_card *card) card 698 drivers/staging/isdn/hysdn/hycapi.c cinfo = card->hyctrlinfo; card 706 drivers/staging/isdn/hysdn/hycapi.c ctrl->profile.ncontroller = card->myid; card 707 drivers/staging/isdn/hysdn/hycapi.c ctrl->profile.nbchannel = card->bchans; card 711 drivers/staging/isdn/hysdn/hycapi.c (card->faxchans ? B1_PROT_T30 : 0) | card 714 drivers/staging/isdn/hysdn/hycapi.c (card->faxchans ? B2_PROT_T30 : 0) | card 718 drivers/staging/isdn/hysdn/hycapi.c (card->faxchans ? B3_PROT_T30 : 0) | card 719 drivers/staging/isdn/hysdn/hycapi.c (card->faxchans ? B3_PROT_T30EXT : 0) | card 724 drivers/staging/isdn/hysdn/hycapi.c hycapi_capi_create(hysdn_card *card) card 732 drivers/staging/isdn/hysdn/hycapi.c if ((hycapi_enable & (1 << card->myid)) == 0) { card 735 drivers/staging/isdn/hysdn/hycapi.c if (!card->hyctrlinfo) { card 741 drivers/staging/isdn/hysdn/hycapi.c card->hyctrlinfo = cinfo; card 742 drivers/staging/isdn/hysdn/hycapi.c cinfo->card = card; card 746 drivers/staging/isdn/hysdn/hycapi.c switch (card->brdtype) { card 774 drivers/staging/isdn/hysdn/hycapi.c hycapi_fill_profile(card); card 778 drivers/staging/isdn/hysdn/hycapi.c ctrl = &card->hyctrlinfo->capi_ctrl; card 779 drivers/staging/isdn/hysdn/hycapi.c hycapi_fill_profile(card); card 85 drivers/staging/isdn/hysdn/hysdn_boot.c pof_handle_data(hysdn_card *card, int datlen) card 87 drivers/staging/isdn/hysdn/hysdn_boot.c struct boot_data *boot = card->boot; /* pointer to boot specific data */ card 96 drivers/staging/isdn/hysdn/hysdn_boot.c if (card->debug_flags & LOG_POF_RECORD) card 97 drivers/staging/isdn/hysdn/hysdn_boot.c hysdn_addlog(card, "POF created %s", boot->buf.PofTime.DateTimeText); card 104 drivers/staging/isdn/hysdn/hysdn_boot.c if (card->debug_flags & LOG_POF_RECORD) card 105 drivers/staging/isdn/hysdn/hysdn_boot.c hysdn_addlog(card, "POF got %s len=%d offs=0x%lx", card 133 drivers/staging/isdn/hysdn/hysdn_boot.c card->writebootimg(card, imgp, card 143 drivers/staging/isdn/hysdn/hysdn_boot.c if (card->debug_flags & LOG_POF_RECORD) card 144 drivers/staging/isdn/hysdn/hysdn_boot.c hysdn_addlog(card, "POF got %s len=%d offs=0x%lx", card 148 drivers/staging/isdn/hysdn/hysdn_boot.c if ((boot->last_error = card->writebootseq(card, boot->buf.BootBuf, datlen)) < 0) card 152 drivers/staging/isdn/hysdn/hysdn_boot.c return (card->waitpofready(card)); /* data completely spooled, wait for ready */ card 157 drivers/staging/isdn/hysdn/hysdn_boot.c if (card->debug_flags & LOG_POF_RECORD) card 158 drivers/staging/isdn/hysdn/hysdn_boot.c hysdn_addlog(card, "POF got data(id=0x%lx) len=%d offs=0x%lx", boot->pof_recid, card 176 drivers/staging/isdn/hysdn/hysdn_boot.c pof_write_buffer(hysdn_card *card, int datlen) card 178 drivers/staging/isdn/hysdn/hysdn_boot.c struct boot_data *boot = card->boot; /* pointer to boot specific data */ card 185 drivers/staging/isdn/hysdn/hysdn_boot.c if (card->debug_flags & LOG_POF_WRITE) card 186 drivers/staging/isdn/hysdn/hysdn_boot.c hysdn_addlog(card, "POF write: got %d bytes ", datlen); card 190 drivers/staging/isdn/hysdn/hysdn_boot.c if (card->debug_flags & LOG_POF_WRITE) card 191 drivers/staging/isdn/hysdn/hysdn_boot.c hysdn_addlog(card, "POF write: checking file header"); card 208 drivers/staging/isdn/hysdn/hysdn_boot.c if (card->debug_flags & LOG_POF_WRITE) card 209 drivers/staging/isdn/hysdn/hysdn_boot.c hysdn_addlog(card, "POF write: checking tag header"); card 219 drivers/staging/isdn/hysdn/hysdn_boot.c if (card->debug_flags & LOG_POF_RECORD) card 220 drivers/staging/isdn/hysdn/hysdn_boot.c hysdn_addlog(card, "POF: got record id=0x%lx length=%ld ", card 236 drivers/staging/isdn/hysdn/hysdn_boot.c if (card->debug_flags & LOG_POF_WRITE) card 237 drivers/staging/isdn/hysdn/hysdn_boot.c hysdn_addlog(card, "POF write: getting tag data"); card 243 drivers/staging/isdn/hysdn/hysdn_boot.c if ((boot->last_error = pof_handle_data(card, datlen)) < 0) card 273 drivers/staging/isdn/hysdn/hysdn_boot.c pof_write_open(hysdn_card *card, unsigned char **bufp) card 277 drivers/staging/isdn/hysdn/hysdn_boot.c if (card->boot) { card 278 drivers/staging/isdn/hysdn/hysdn_boot.c if (card->debug_flags & LOG_POF_OPEN) card 279 drivers/staging/isdn/hysdn/hysdn_boot.c hysdn_addlog(card, "POF open: already opened for boot"); card 284 drivers/staging/isdn/hysdn/hysdn_boot.c if (card->debug_flags & LOG_MEM_ERR) card 285 drivers/staging/isdn/hysdn/hysdn_boot.c hysdn_addlog(card, "POF open: unable to allocate mem"); card 288 drivers/staging/isdn/hysdn/hysdn_boot.c card->boot = boot; card 289 drivers/staging/isdn/hysdn/hysdn_boot.c card->state = CARD_STATE_BOOTING; card 291 drivers/staging/isdn/hysdn/hysdn_boot.c card->stopcard(card); /* first stop the card */ card 292 drivers/staging/isdn/hysdn/hysdn_boot.c if (card->testram(card)) { card 293 drivers/staging/isdn/hysdn/hysdn_boot.c if (card->debug_flags & LOG_POF_OPEN) card 294 drivers/staging/isdn/hysdn/hysdn_boot.c hysdn_addlog(card, "POF open: DPRAM test failure"); card 296 drivers/staging/isdn/hysdn/hysdn_boot.c card->state = CARD_STATE_BOOTERR; /* show boot error */ card 303 drivers/staging/isdn/hysdn/hysdn_boot.c if (card->debug_flags & LOG_POF_OPEN) card 304 drivers/staging/isdn/hysdn/hysdn_boot.c hysdn_addlog(card, "POF open: success"); card 315 drivers/staging/isdn/hysdn/hysdn_boot.c pof_write_close(hysdn_card *card) card 317 drivers/staging/isdn/hysdn/hysdn_boot.c struct boot_data *boot = card->boot; /* pointer to boot specific data */ card 322 drivers/staging/isdn/hysdn/hysdn_boot.c card->boot = NULL; /* no boot active */ card 325 drivers/staging/isdn/hysdn/hysdn_boot.c if (card->state == CARD_STATE_RUN) card 326 drivers/staging/isdn/hysdn/hysdn_boot.c card->set_errlog_state(card, 1); /* activate error log */ card 328 drivers/staging/isdn/hysdn/hysdn_boot.c if (card->debug_flags & LOG_POF_OPEN) card 329 drivers/staging/isdn/hysdn/hysdn_boot.c hysdn_addlog(card, "POF close: success"); card 339 drivers/staging/isdn/hysdn/hysdn_boot.c EvalSysrTokData(hysdn_card *card, unsigned char *cp, int len) card 344 drivers/staging/isdn/hysdn/hysdn_boot.c if (card->debug_flags & LOG_POF_RECORD) card 345 drivers/staging/isdn/hysdn/hysdn_boot.c hysdn_addlog(card, "SysReady Token data length %d", len); card 348 drivers/staging/isdn/hysdn/hysdn_boot.c hysdn_addlog(card, "SysReady Token Data to short"); card 358 drivers/staging/isdn/hysdn/hysdn_boot.c hysdn_addlog(card, "SysReady Token Data invalid CRC"); card 368 drivers/staging/isdn/hysdn/hysdn_boot.c hysdn_addlog(card, "token 0x%x invalid length %d", *cp, *(cp + 1)); card 375 drivers/staging/isdn/hysdn/hysdn_boot.c card->bchans = *(cp + 2); card 381 drivers/staging/isdn/hysdn/hysdn_boot.c card->faxchans = *(cp + 2); card 387 drivers/staging/isdn/hysdn/hysdn_boot.c memcpy(card->mac_addr, cp + 2, 6); card 391 drivers/staging/isdn/hysdn/hysdn_boot.c hysdn_addlog(card, "unknown token 0x%02x length %d", *cp, *(cp + 1)); card 398 drivers/staging/isdn/hysdn/hysdn_boot.c hysdn_addlog(card, "no end token found"); card 203 drivers/staging/isdn/hysdn/hysdn_defs.h struct HYSDN_CARD *card; card 242 drivers/staging/isdn/hysdn/hysdn_defs.h extern int ergo_inithardware(hysdn_card *card); /* get hardware -> module init */ card 273 drivers/staging/isdn/hysdn/hysdn_defs.h extern int hycapi_capi_stop(hysdn_card *card); /* suspend */ card 274 drivers/staging/isdn/hysdn/hysdn_defs.h extern void hycapi_rx_capipkt(hysdn_card *card, unsigned char *buf, card 276 drivers/staging/isdn/hysdn/hysdn_defs.h extern void hycapi_tx_capiack(hysdn_card *card); card 277 drivers/staging/isdn/hysdn/hysdn_defs.h extern struct sk_buff *hycapi_tx_capiget(hysdn_card *card); card 62 drivers/staging/isdn/hysdn/hysdn_init.c hysdn_card *card; card 69 drivers/staging/isdn/hysdn/hysdn_init.c if (!(card = kzalloc(sizeof(hysdn_card), GFP_KERNEL))) { card 74 drivers/staging/isdn/hysdn/hysdn_init.c card->myid = cardmax; /* set own id */ card 75 drivers/staging/isdn/hysdn/hysdn_init.c card->bus = akt_pcidev->bus->number; card 76 drivers/staging/isdn/hysdn/hysdn_init.c card->devfn = akt_pcidev->devfn; /* slot + function */ card 77 drivers/staging/isdn/hysdn/hysdn_init.c card->subsysid = akt_pcidev->subsystem_device; card 78 drivers/staging/isdn/hysdn/hysdn_init.c card->irq = akt_pcidev->irq; card 79 drivers/staging/isdn/hysdn/hysdn_init.c card->iobase = pci_resource_start(akt_pcidev, PCI_REG_PLX_IO_BASE); card 80 drivers/staging/isdn/hysdn/hysdn_init.c card->plxbase = pci_resource_start(akt_pcidev, PCI_REG_PLX_MEM_BASE); card 81 drivers/staging/isdn/hysdn/hysdn_init.c card->membase = pci_resource_start(akt_pcidev, PCI_REG_MEMORY_BASE); card 82 drivers/staging/isdn/hysdn/hysdn_init.c card->brdtype = BD_NONE; /* unknown */ card 83 drivers/staging/isdn/hysdn/hysdn_init.c card->debug_flags = DEF_DEB_FLAGS; /* set default debug */ card 84 drivers/staging/isdn/hysdn/hysdn_init.c card->faxchans = 0; /* default no fax channels */ card 85 drivers/staging/isdn/hysdn/hysdn_init.c card->bchans = 2; /* and 2 b-channels */ card 86 drivers/staging/isdn/hysdn/hysdn_init.c card->brdtype = ent->driver_data; card 88 drivers/staging/isdn/hysdn/hysdn_init.c if (ergo_inithardware(card)) { card 89 drivers/staging/isdn/hysdn/hysdn_init.c printk(KERN_WARNING "HYSDN: card at io 0x%04x already in use\n", card->iobase); card 95 drivers/staging/isdn/hysdn/hysdn_init.c card->next = NULL; /*end of chain */ card 97 drivers/staging/isdn/hysdn/hysdn_init.c card_last->next = card; /* pointer to next card */ card 99 drivers/staging/isdn/hysdn/hysdn_init.c card_root = card; card 100 drivers/staging/isdn/hysdn/hysdn_init.c card_last = card; /* new chain end */ card 102 drivers/staging/isdn/hysdn/hysdn_init.c pci_set_drvdata(akt_pcidev, card); card 106 drivers/staging/isdn/hysdn/hysdn_init.c kfree(card); card 114 drivers/staging/isdn/hysdn/hysdn_init.c hysdn_card *card = pci_get_drvdata(akt_pcidev); card 118 drivers/staging/isdn/hysdn/hysdn_init.c if (card->stopcard) card 119 drivers/staging/isdn/hysdn/hysdn_init.c card->stopcard(card); card 122 drivers/staging/isdn/hysdn/hysdn_init.c hycapi_capi_release(card); card 125 drivers/staging/isdn/hysdn/hysdn_init.c if (card->releasehardware) card 126 drivers/staging/isdn/hysdn/hysdn_init.c card->releasehardware(card); /* free all hardware resources */ card 128 drivers/staging/isdn/hysdn/hysdn_init.c if (card == card_root) { card 135 drivers/staging/isdn/hysdn/hysdn_init.c if (tmp->next == card) card 136 drivers/staging/isdn/hysdn/hysdn_init.c tmp->next = card->next; card 142 drivers/staging/isdn/hysdn/hysdn_init.c kfree(card); card 63 drivers/staging/isdn/hysdn/hysdn_net.c hysdn_card *card = dev->ml_priv; card 69 drivers/staging/isdn/hysdn/hysdn_net.c if (!card->mac_addr[0]) { card 82 drivers/staging/isdn/hysdn/hysdn_net.c memcpy(dev->dev_addr, card->mac_addr, ETH_ALEN); card 162 drivers/staging/isdn/hysdn/hysdn_net.c hysdn_tx_netack(hysdn_card *card) card 164 drivers/staging/isdn/hysdn/hysdn_net.c struct net_local *lp = card->netif; card 188 drivers/staging/isdn/hysdn/hysdn_net.c hysdn_rx_netpkt(hysdn_card *card, unsigned char *buf, unsigned short len) card 190 drivers/staging/isdn/hysdn/hysdn_net.c struct net_local *lp = card->netif; card 222 drivers/staging/isdn/hysdn/hysdn_net.c hysdn_tx_netget(hysdn_card *card) card 224 drivers/staging/isdn/hysdn/hysdn_net.c struct net_local *lp = card->netif; card 250 drivers/staging/isdn/hysdn/hysdn_net.c hysdn_net_create(hysdn_card *card) card 256 drivers/staging/isdn/hysdn/hysdn_net.c if (!card) { card 260 drivers/staging/isdn/hysdn/hysdn_net.c hysdn_net_release(card); /* release an existing net device */ card 275 drivers/staging/isdn/hysdn/hysdn_net.c dev->base_addr = card->iobase; /* IO address */ card 276 drivers/staging/isdn/hysdn/hysdn_net.c dev->irq = card->irq; /* irq */ card 284 drivers/staging/isdn/hysdn/hysdn_net.c dev->ml_priv = card; /* remember pointer to own data structure */ card 285 drivers/staging/isdn/hysdn/hysdn_net.c card->netif = dev; /* setup the local pointer */ card 287 drivers/staging/isdn/hysdn/hysdn_net.c if (card->debug_flags & LOG_NET_INIT) card 288 drivers/staging/isdn/hysdn/hysdn_net.c hysdn_addlog(card, "network device created"); card 297 drivers/staging/isdn/hysdn/hysdn_net.c hysdn_net_release(hysdn_card *card) card 299 drivers/staging/isdn/hysdn/hysdn_net.c struct net_device *dev = card->netif; card 304 drivers/staging/isdn/hysdn/hysdn_net.c card->netif = NULL; /* clear out pointer */ card 311 drivers/staging/isdn/hysdn/hysdn_net.c if (card->debug_flags & LOG_NET_INIT) card 312 drivers/staging/isdn/hysdn/hysdn_net.c hysdn_addlog(card, "network device deleted"); card 322 drivers/staging/isdn/hysdn/hysdn_net.c hysdn_net_getname(hysdn_card *card) card 324 drivers/staging/isdn/hysdn/hysdn_net.c struct net_device *dev = card->netif; card 38 drivers/staging/isdn/hysdn/hysdn_procconf.c hysdn_card *card; /* card the device is connected to */ card 58 drivers/staging/isdn/hysdn/hysdn_procconf.c if (cnf->card->debug_flags & LOG_CNF_LINE) card 59 drivers/staging/isdn/hysdn/hysdn_procconf.c hysdn_addlog(cnf->card, "conf line: %s", cp); card 70 drivers/staging/isdn/hysdn/hysdn_procconf.c if (cnf->card->debug_flags & LOG_CNF_MISC) card 71 drivers/staging/isdn/hysdn/hysdn_procconf.c hysdn_addlog(cnf->card, "conf channel invalid %d", i); card 78 drivers/staging/isdn/hysdn/hysdn_procconf.c if (cnf->card->debug_flags & LOG_CNF_DATA) card 79 drivers/staging/isdn/hysdn/hysdn_procconf.c hysdn_addlog(cnf->card, "conf chan=%d %s", cnf->channel, cp); card 80 drivers/staging/isdn/hysdn/hysdn_procconf.c return (hysdn_tx_cfgline(cnf->card, cnf->conf_line + 1, card 112 drivers/staging/isdn/hysdn/hysdn_procconf.c if ((cnf->needed_size = pof_write_open(cnf->card, &cnf->pof_buffer)) <= 0) card 120 drivers/staging/isdn/hysdn/hysdn_procconf.c if (cnf->card->state != CARD_STATE_RUN) card 138 drivers/staging/isdn/hysdn/hysdn_procconf.c cnf->needed_size = pof_write_buffer(cnf->card, cnf->buf_size); /* write data */ card 140 drivers/staging/isdn/hysdn/hysdn_procconf.c cnf->card->state = CARD_STATE_BOOTERR; /* show boot error */ card 149 drivers/staging/isdn/hysdn/hysdn_procconf.c if (cnf->card->state != CARD_STATE_RUN) { card 150 drivers/staging/isdn/hysdn/hysdn_procconf.c if (cnf->card->debug_flags & LOG_CNF_MISC) card 151 drivers/staging/isdn/hysdn/hysdn_procconf.c hysdn_addlog(cnf->card, "cnf write denied -> not booted"); card 190 drivers/staging/isdn/hysdn/hysdn_procconf.c if (cnf->card->debug_flags & LOG_CNF_MISC) card 191 drivers/staging/isdn/hysdn/hysdn_procconf.c hysdn_addlog(cnf->card, "cnf line too long %d chars pos %d", cnf->buf_size, count); card 199 drivers/staging/isdn/hysdn/hysdn_procconf.c if (cnf->card->debug_flags & LOG_CNF_MISC) card 200 drivers/staging/isdn/hysdn/hysdn_procconf.c hysdn_addlog(cnf->card, "cnf line too long"); card 231 drivers/staging/isdn/hysdn/hysdn_procconf.c hysdn_card *card; card 237 drivers/staging/isdn/hysdn/hysdn_procconf.c card = PDE_DATA(ino); card 238 drivers/staging/isdn/hysdn/hysdn_procconf.c if (card->debug_flags & (LOG_PROC_OPEN | LOG_PROC_ALL)) card 239 drivers/staging/isdn/hysdn/hysdn_procconf.c hysdn_addlog(card, "config open for uid=%d gid=%d mode=0x%x", card 250 drivers/staging/isdn/hysdn/hysdn_procconf.c cnf->card = card; card 275 drivers/staging/isdn/hysdn/hysdn_procconf.c card->myid, card 276 drivers/staging/isdn/hysdn/hysdn_procconf.c card->bus, card 277 drivers/staging/isdn/hysdn/hysdn_procconf.c PCI_SLOT(card->devfn), card 278 drivers/staging/isdn/hysdn/hysdn_procconf.c card->brdtype, card 279 drivers/staging/isdn/hysdn/hysdn_procconf.c card->irq, card 280 drivers/staging/isdn/hysdn/hysdn_procconf.c card->iobase, card 281 drivers/staging/isdn/hysdn/hysdn_procconf.c card->membase, card 282 drivers/staging/isdn/hysdn/hysdn_procconf.c card->bchans, card 283 drivers/staging/isdn/hysdn/hysdn_procconf.c card->faxchans, card 284 drivers/staging/isdn/hysdn/hysdn_procconf.c card->state, card 285 drivers/staging/isdn/hysdn/hysdn_procconf.c hysdn_net_getname(card)); card 306 drivers/staging/isdn/hysdn/hysdn_procconf.c hysdn_card *card; card 311 drivers/staging/isdn/hysdn/hysdn_procconf.c card = PDE_DATA(ino); card 312 drivers/staging/isdn/hysdn/hysdn_procconf.c if (card->debug_flags & (LOG_PROC_OPEN | LOG_PROC_ALL)) card 313 drivers/staging/isdn/hysdn/hysdn_procconf.c hysdn_addlog(card, "config close for uid=%d gid=%d mode=0x%x", card 323 drivers/staging/isdn/hysdn/hysdn_procconf.c retval = pof_write_close(cnf->card); /* close the pof write */ card 362 drivers/staging/isdn/hysdn/hysdn_procconf.c hysdn_card *card; card 370 drivers/staging/isdn/hysdn/hysdn_procconf.c card = card_root; /* point to first card */ card 371 drivers/staging/isdn/hysdn/hysdn_procconf.c while (card) { card 373 drivers/staging/isdn/hysdn/hysdn_procconf.c sprintf(conf_name, "%s%d", PROC_CONF_BASENAME, card->myid); card 374 drivers/staging/isdn/hysdn/hysdn_procconf.c if ((card->procconf = (void *) proc_create_data(conf_name, card 378 drivers/staging/isdn/hysdn/hysdn_procconf.c card)) != NULL) { card 379 drivers/staging/isdn/hysdn/hysdn_procconf.c hysdn_proclog_init(card); /* init the log file entry */ card 381 drivers/staging/isdn/hysdn/hysdn_procconf.c card = card->next; /* next entry */ card 395 drivers/staging/isdn/hysdn/hysdn_procconf.c hysdn_card *card; card 398 drivers/staging/isdn/hysdn/hysdn_procconf.c card = card_root; /* start with first card */ card 399 drivers/staging/isdn/hysdn/hysdn_procconf.c while (card) { card 401 drivers/staging/isdn/hysdn/hysdn_procconf.c sprintf(conf_name, "%s%d", PROC_CONF_BASENAME, card->myid); card 402 drivers/staging/isdn/hysdn/hysdn_procconf.c if (card->procconf) card 405 drivers/staging/isdn/hysdn/hysdn_procconf.c hysdn_proclog_release(card); /* init the log file entry */ card 407 drivers/staging/isdn/hysdn/hysdn_procconf.c card = card->next; /* point to next card */ card 27 drivers/staging/isdn/hysdn/hysdn_proclog.c static void put_log_buffer(hysdn_card *card, char *cp); card 56 drivers/staging/isdn/hysdn/hysdn_proclog.c hysdn_card_errlog(hysdn_card *card, tErrLogEntry *logp, int maxsize) card 61 drivers/staging/isdn/hysdn/hysdn_proclog.c put_log_buffer(card, buf); /* output the string */ card 68 drivers/staging/isdn/hysdn/hysdn_proclog.c hysdn_addlog(hysdn_card *card, char *fmt, ...) card 70 drivers/staging/isdn/hysdn/hysdn_proclog.c struct procdata *pd = card->proclog; card 78 drivers/staging/isdn/hysdn/hysdn_proclog.c cp += sprintf(cp, "HYSDN: card %d ", card->myid); card 86 drivers/staging/isdn/hysdn/hysdn_proclog.c if (card->debug_flags & DEB_OUT_SYSLOG) card 89 drivers/staging/isdn/hysdn/hysdn_proclog.c put_log_buffer(card, pd->logtmp); card 100 drivers/staging/isdn/hysdn/hysdn_proclog.c put_log_buffer(hysdn_card *card, char *cp) card 103 drivers/staging/isdn/hysdn/hysdn_proclog.c struct procdata *pd = card->proclog; card 120 drivers/staging/isdn/hysdn/hysdn_proclog.c spin_lock_irqsave(&card->hysdn_lock, flags); card 140 drivers/staging/isdn/hysdn/hysdn_proclog.c spin_unlock_irqrestore(&card->hysdn_lock, flags); card 157 drivers/staging/isdn/hysdn/hysdn_proclog.c hysdn_card *card = file->private_data; card 159 drivers/staging/isdn/hysdn/hysdn_proclog.c rc = kstrtoul_from_user(buf, count, 0, &card->debug_flags); card 162 drivers/staging/isdn/hysdn/hysdn_proclog.c hysdn_addlog(card, "debug set to 0x%lx", card->debug_flags); card 174 drivers/staging/isdn/hysdn/hysdn_proclog.c hysdn_card *card = PDE_DATA(file_inode(file)); card 177 drivers/staging/isdn/hysdn/hysdn_proclog.c struct procdata *pd = card->proclog; card 204 drivers/staging/isdn/hysdn/hysdn_proclog.c hysdn_card *card = PDE_DATA(ino); card 209 drivers/staging/isdn/hysdn/hysdn_proclog.c filep->private_data = card; /* remember our own card */ card 211 drivers/staging/isdn/hysdn/hysdn_proclog.c struct procdata *pd = card->proclog; card 215 drivers/staging/isdn/hysdn/hysdn_proclog.c spin_lock_irqsave(&card->hysdn_lock, flags); card 221 drivers/staging/isdn/hysdn/hysdn_proclog.c spin_unlock_irqrestore(&card->hysdn_lock, flags); card 242 drivers/staging/isdn/hysdn/hysdn_proclog.c hysdn_card *card; card 257 drivers/staging/isdn/hysdn/hysdn_proclog.c card = PDE_DATA(file_inode(filep)); card 258 drivers/staging/isdn/hysdn/hysdn_proclog.c pd = card->proclog; /* pointer to procfs log */ card 288 drivers/staging/isdn/hysdn/hysdn_proclog.c hysdn_card *card = PDE_DATA(file_inode(file)); card 289 drivers/staging/isdn/hysdn/hysdn_proclog.c struct procdata *pd = card->proclog; card 322 drivers/staging/isdn/hysdn/hysdn_proclog.c hysdn_proclog_init(hysdn_card *card) card 329 drivers/staging/isdn/hysdn/hysdn_proclog.c sprintf(pd->log_name, "%s%d", PROC_LOG_BASENAME, card->myid); card 332 drivers/staging/isdn/hysdn/hysdn_proclog.c &log_fops, card); card 336 drivers/staging/isdn/hysdn/hysdn_proclog.c card->proclog = (void *) pd; /* remember procfs structure */ card 347 drivers/staging/isdn/hysdn/hysdn_proclog.c hysdn_proclog_release(hysdn_card *card) card 351 drivers/staging/isdn/hysdn/hysdn_proclog.c if ((pd = (struct procdata *) card->proclog) != NULL) { card 355 drivers/staging/isdn/hysdn/hysdn_proclog.c card->proclog = NULL; card 31 drivers/staging/isdn/hysdn/hysdn_sched.c hysdn_sched_rx(hysdn_card *card, unsigned char *buf, unsigned short len, card 37 drivers/staging/isdn/hysdn/hysdn_sched.c if (hynet_enable & (1 << card->myid)) { card 39 drivers/staging/isdn/hysdn/hysdn_sched.c hysdn_rx_netpkt(card, buf, len); card 44 drivers/staging/isdn/hysdn/hysdn_sched.c hysdn_card_errlog(card, (tErrLogEntry *) buf, len); card 45 drivers/staging/isdn/hysdn/hysdn_sched.c if (card->err_log_state == ERRLOG_STATE_ON) card 46 drivers/staging/isdn/hysdn/hysdn_sched.c card->err_log_state = ERRLOG_STATE_START; /* start new fetch */ card 51 drivers/staging/isdn/hysdn/hysdn_sched.c if (hycapi_enable & (1 << card->myid)) { card 52 drivers/staging/isdn/hysdn/hysdn_sched.c hycapi_rx_capipkt(card, buf, len); card 74 drivers/staging/isdn/hysdn/hysdn_sched.c hysdn_sched_tx(hysdn_card *card, unsigned char *buf, card 80 drivers/staging/isdn/hysdn/hysdn_sched.c if (card->net_tx_busy) { card 81 drivers/staging/isdn/hysdn/hysdn_sched.c card->net_tx_busy = 0; /* reset flag */ card 82 drivers/staging/isdn/hysdn/hysdn_sched.c hysdn_tx_netack(card); /* acknowledge packet send */ card 85 drivers/staging/isdn/hysdn/hysdn_sched.c if (card->async_busy) { card 86 drivers/staging/isdn/hysdn/hysdn_sched.c if (card->async_len <= maxlen) { card 87 drivers/staging/isdn/hysdn/hysdn_sched.c memcpy(buf, card->async_data, card->async_len); card 88 drivers/staging/isdn/hysdn/hysdn_sched.c *len = card->async_len; card 89 drivers/staging/isdn/hysdn/hysdn_sched.c *chan = card->async_channel; card 90 drivers/staging/isdn/hysdn/hysdn_sched.c card->async_busy = 0; /* reset request */ card 93 drivers/staging/isdn/hysdn/hysdn_sched.c card->async_busy = 0; /* in case of length error */ card 95 drivers/staging/isdn/hysdn/hysdn_sched.c if ((card->err_log_state == ERRLOG_STATE_START) && card 100 drivers/staging/isdn/hysdn/hysdn_sched.c card->err_log_state = ERRLOG_STATE_ON; /* new state is on */ card 103 drivers/staging/isdn/hysdn/hysdn_sched.c if ((card->err_log_state == ERRLOG_STATE_STOP) && card 108 drivers/staging/isdn/hysdn/hysdn_sched.c card->err_log_state = ERRLOG_STATE_OFF; /* new state is off */ card 112 drivers/staging/isdn/hysdn/hysdn_sched.c if ((hynet_enable & (1 << card->myid)) && card 113 drivers/staging/isdn/hysdn/hysdn_sched.c (skb = hysdn_tx_netget(card)) != NULL) card 120 drivers/staging/isdn/hysdn/hysdn_sched.c card->net_tx_busy = 1; /* we are busy sending network data */ card 123 drivers/staging/isdn/hysdn/hysdn_sched.c hysdn_tx_netack(card); /* aknowledge packet -> throw away */ card 126 drivers/staging/isdn/hysdn/hysdn_sched.c if (((hycapi_enable & (1 << card->myid))) && card 127 drivers/staging/isdn/hysdn/hysdn_sched.c ((skb = hycapi_tx_capiget(card)) != NULL)) card 133 drivers/staging/isdn/hysdn/hysdn_sched.c hycapi_tx_capiack(card); card 150 drivers/staging/isdn/hysdn/hysdn_sched.c hysdn_tx_cfgline(hysdn_card *card, unsigned char *line, unsigned short chan) card 155 drivers/staging/isdn/hysdn/hysdn_sched.c if (card->debug_flags & LOG_SCHED_ASYN) card 156 drivers/staging/isdn/hysdn/hysdn_sched.c hysdn_addlog(card, "async tx-cfg chan=%d len=%d", chan, strlen(line) + 1); card 158 drivers/staging/isdn/hysdn/hysdn_sched.c while (card->async_busy) { card 160 drivers/staging/isdn/hysdn/hysdn_sched.c if (card->debug_flags & LOG_SCHED_ASYN) card 161 drivers/staging/isdn/hysdn/hysdn_sched.c hysdn_addlog(card, "async tx-cfg delayed"); card 168 drivers/staging/isdn/hysdn/hysdn_sched.c spin_lock_irqsave(&card->hysdn_lock, flags); card 169 drivers/staging/isdn/hysdn/hysdn_sched.c strcpy(card->async_data, line); card 170 drivers/staging/isdn/hysdn/hysdn_sched.c card->async_len = strlen(line) + 1; card 171 drivers/staging/isdn/hysdn/hysdn_sched.c card->async_channel = chan; card 172 drivers/staging/isdn/hysdn/hysdn_sched.c card->async_busy = 1; /* request transfer */ card 175 drivers/staging/isdn/hysdn/hysdn_sched.c schedule_work(&card->irq_queue); card 176 drivers/staging/isdn/hysdn/hysdn_sched.c spin_unlock_irqrestore(&card->hysdn_lock, flags); card 178 drivers/staging/isdn/hysdn/hysdn_sched.c if (card->debug_flags & LOG_SCHED_ASYN) card 179 drivers/staging/isdn/hysdn/hysdn_sched.c hysdn_addlog(card, "async tx-cfg data queued"); card 183 drivers/staging/isdn/hysdn/hysdn_sched.c while (card->async_busy) { card 185 drivers/staging/isdn/hysdn/hysdn_sched.c if (card->debug_flags & LOG_SCHED_ASYN) card 186 drivers/staging/isdn/hysdn/hysdn_sched.c hysdn_addlog(card, "async tx-cfg waiting for tx-ready"); card 193 drivers/staging/isdn/hysdn/hysdn_sched.c if (card->debug_flags & LOG_SCHED_ASYN) card 194 drivers/staging/isdn/hysdn/hysdn_sched.c hysdn_addlog(card, "async tx-cfg data send"); card 543 drivers/staging/ks7010/ks7010_sdio.c struct ks_sdio_card *card; card 547 drivers/staging/ks7010/ks7010_sdio.c card = sdio_get_drvdata(func); card 548 drivers/staging/ks7010/ks7010_sdio.c priv = card->priv; card 750 drivers/staging/ks7010/ks7010_sdio.c static int ks7010_upload_firmware(struct ks_sdio_card *card) card 752 drivers/staging/ks7010/ks7010_sdio.c struct ks_wlan_private *priv = card->priv; card 925 drivers/staging/ks7010/ks7010_sdio.c struct ks_sdio_card *card, card 929 drivers/staging/ks7010/ks7010_sdio.c priv->if_hw = card; card 956 drivers/staging/ks7010/ks7010_sdio.c struct ks_sdio_card *card; card 959 drivers/staging/ks7010/ks7010_sdio.c card = kzalloc(sizeof(*card), GFP_KERNEL); card 960 drivers/staging/ks7010/ks7010_sdio.c if (!card) card 963 drivers/staging/ks7010/ks7010_sdio.c card->func = func; card 971 drivers/staging/ks7010/ks7010_sdio.c dev_dbg(&card->func->dev, "multi_block=%d sdio_set_block_size()=%d %d\n", card 972 drivers/staging/ks7010/ks7010_sdio.c func->card->cccr.multi_block, func->cur_blksize, ret); card 984 drivers/staging/ks7010/ks7010_sdio.c sdio_set_drvdata(func, card); card 986 drivers/staging/ks7010/ks7010_sdio.c dev_dbg(&card->func->dev, "class = 0x%X, vendor = 0x%X, device = 0x%X\n", card 992 drivers/staging/ks7010/ks7010_sdio.c dev_err(&card->func->dev, "Unable to alloc new net device\n"); card 998 drivers/staging/ks7010/ks7010_sdio.c dev_err(&card->func->dev, "Couldn't get name!\n"); card 1004 drivers/staging/ks7010/ks7010_sdio.c card->priv = priv; card 1005 drivers/staging/ks7010/ks7010_sdio.c SET_NETDEV_DEV(netdev, &card->func->dev); card 1007 drivers/staging/ks7010/ks7010_sdio.c ks7010_private_init(priv, card, netdev); card 1009 drivers/staging/ks7010/ks7010_sdio.c ret = ks7010_upload_firmware(card); card 1045 drivers/staging/ks7010/ks7010_sdio.c kfree(card); card 1054 drivers/staging/ks7010/ks7010_sdio.c struct ks_sdio_card *card; card 1057 drivers/staging/ks7010/ks7010_sdio.c card = sdio_get_drvdata(func); card 1068 drivers/staging/ks7010/ks7010_sdio.c write_to_device(card->priv, (u8 *)pp, hif_align_size(sizeof(*pp))); card 1078 drivers/staging/ks7010/ks7010_sdio.c struct ks_sdio_card *card; card 1081 drivers/staging/ks7010/ks7010_sdio.c card = sdio_get_drvdata(func); card 1083 drivers/staging/ks7010/ks7010_sdio.c if (!card) card 1086 drivers/staging/ks7010/ks7010_sdio.c priv = card->priv; card 1113 drivers/staging/ks7010/ks7010_sdio.c card->priv = NULL; card 1121 drivers/staging/ks7010/ks7010_sdio.c kfree(card); card 2375 drivers/staging/media/allegro-dvt/allegro-core.c strscpy(cap->card, "Allegro DVT Video Encoder", sizeof(cap->card)); card 82 drivers/staging/media/hantro/hantro_v4l2.c strscpy(cap->card, vdev->name, sizeof(cap->card)); card 75 drivers/staging/media/imx/imx-media-capture.c strscpy(cap->card, IMX_CAPTURE_NAME, sizeof(cap->card)); card 154 drivers/staging/media/imx/imx-media-csc-scaler.c strscpy(cap->card, "imx-media-csc-scaler", sizeof(cap->card)); card 590 drivers/staging/media/ipu3/ipu3-v4l2.c strscpy(cap->card, IMGU_NAME, sizeof(cap->card)); card 441 drivers/staging/media/meson/vdec/vdec.c strscpy(cap->card, "Amlogic Video Decoder", sizeof(cap->card)); card 534 drivers/staging/media/omap4iss/iss_video.c strscpy(cap->card, video->video.name, sizeof(cap->card)); card 155 drivers/staging/media/sunxi/cedrus/cedrus_video.c strscpy(cap->card, CEDRUS_NAME, sizeof(cap->card)); card 47 drivers/staging/most/sound/sound.c struct snd_card *card; card 63 drivers/staging/most/sound/sound.c struct snd_card *card; card 555 drivers/staging/most/sound/sound.c if (adpt->card) card 556 drivers/staging/most/sound/sound.c snd_card_free(adpt->card); card 617 drivers/staging/most/sound/sound.c sizeof(*channel), &adpt->card); card 620 drivers/staging/most/sound/sound.c snprintf(adpt->card->driver, sizeof(adpt->card->driver), card 622 drivers/staging/most/sound/sound.c snprintf(adpt->card->shortname, sizeof(adpt->card->shortname), card 624 drivers/staging/most/sound/sound.c snprintf(adpt->card->longname, sizeof(adpt->card->longname), card 625 drivers/staging/most/sound/sound.c "%s at %s", adpt->card->shortname, iface->description); card 645 drivers/staging/most/sound/sound.c channel->card = adpt->card; card 657 drivers/staging/most/sound/sound.c ret = snd_pcm_new(adpt->card, device_name, adpt->pcm_dev_idx, card 685 drivers/staging/most/sound/sound.c ret = snd_card_register(adpt->card); card 250 drivers/staging/most/video/video.c strlcpy(cap->card, "MOST", sizeof(cap->card)); card 846 drivers/staging/rts5208/rtsx_card.c int enable_card_clock(struct rtsx_chip *chip, u8 card) card 851 drivers/staging/rts5208/rtsx_card.c if (card & XD_CARD) card 853 drivers/staging/rts5208/rtsx_card.c if (card & SD_CARD) card 855 drivers/staging/rts5208/rtsx_card.c if (card & MS_CARD) card 865 drivers/staging/rts5208/rtsx_card.c int disable_card_clock(struct rtsx_chip *chip, u8 card) card 870 drivers/staging/rts5208/rtsx_card.c if (card & XD_CARD) card 872 drivers/staging/rts5208/rtsx_card.c if (card & SD_CARD) card 874 drivers/staging/rts5208/rtsx_card.c if (card & MS_CARD) card 884 drivers/staging/rts5208/rtsx_card.c int card_power_on(struct rtsx_chip *chip, u8 card) card 889 drivers/staging/rts5208/rtsx_card.c if (CHECK_LUN_MODE(chip, SD_MS_2LUN) && (card == MS_CARD)) { card 918 drivers/staging/rts5208/rtsx_card.c int card_power_off(struct rtsx_chip *chip, u8 card) card 923 drivers/staging/rts5208/rtsx_card.c if (CHECK_LUN_MODE(chip, SD_MS_2LUN) && (card == MS_CARD)) { card 977 drivers/staging/rts5208/rtsx_card.c int card_share_mode(struct rtsx_chip *chip, int card) card 984 drivers/staging/rts5208/rtsx_card.c if (card == SD_CARD) card 986 drivers/staging/rts5208/rtsx_card.c else if (card == MS_CARD) card 988 drivers/staging/rts5208/rtsx_card.c else if (card == XD_CARD) card 995 drivers/staging/rts5208/rtsx_card.c if (card == SD_CARD) card 997 drivers/staging/rts5208/rtsx_card.c else if (card == MS_CARD) card 999 drivers/staging/rts5208/rtsx_card.c else if (card == XD_CARD) card 1015 drivers/staging/rts5208/rtsx_card.c int select_card(struct rtsx_chip *chip, int card) card 1019 drivers/staging/rts5208/rtsx_card.c if (chip->cur_card != card) { card 1022 drivers/staging/rts5208/rtsx_card.c if (card == SD_CARD) card 1024 drivers/staging/rts5208/rtsx_card.c else if (card == MS_CARD) card 1026 drivers/staging/rts5208/rtsx_card.c else if (card == XD_CARD) card 1028 drivers/staging/rts5208/rtsx_card.c else if (card == SPI_CARD) card 1036 drivers/staging/rts5208/rtsx_card.c chip->cur_card = card; card 1038 drivers/staging/rts5208/rtsx_card.c retval = card_share_mode(chip, card); card 1073 drivers/staging/rts5208/rtsx_card.c int detect_card_cd(struct rtsx_chip *chip, int card) card 1077 drivers/staging/rts5208/rtsx_card.c if (card == SD_CARD) { card 1079 drivers/staging/rts5208/rtsx_card.c } else if (card == MS_CARD) { card 1081 drivers/staging/rts5208/rtsx_card.c } else if (card == XD_CARD) { card 1084 drivers/staging/rts5208/rtsx_card.c dev_dbg(rtsx_dev(chip), "Wrong card type: 0x%x\n", card); card 999 drivers/staging/rts5208/rtsx_card.h int enable_card_clock(struct rtsx_chip *chip, u8 card); card 1000 drivers/staging/rts5208/rtsx_card.h int disable_card_clock(struct rtsx_chip *chip, u8 card); card 1009 drivers/staging/rts5208/rtsx_card.h int card_share_mode(struct rtsx_chip *chip, int card); card 1010 drivers/staging/rts5208/rtsx_card.h int select_card(struct rtsx_chip *chip, int card); card 1011 drivers/staging/rts5208/rtsx_card.h int detect_card_cd(struct rtsx_chip *chip, int card); card 1045 drivers/staging/rts5208/rtsx_card.h int card_power_on(struct rtsx_chip *chip, u8 card); card 1046 drivers/staging/rts5208/rtsx_card.h int card_power_off(struct rtsx_chip *chip, u8 card); card 1269 drivers/staging/rts5208/rtsx_chip.c void rtsx_stop_cmd(struct rtsx_chip *chip, int card) card 959 drivers/staging/rts5208/rtsx_chip.h void rtsx_stop_cmd(struct rtsx_chip *chip, int card); card 473 drivers/staging/rts5208/rtsx_scsi.c u8 card = get_lun_card(chip, lun); card 508 drivers/staging/rts5208/rtsx_scsi.c if (!card || (card == MS_CARD)) card 743 drivers/staging/rts5208/rtsx_scsi.c u8 card = get_lun_card(chip, lun); card 757 drivers/staging/rts5208/rtsx_scsi.c if (!card || (card == MS_CARD)) { card 764 drivers/staging/rts5208/rtsx_scsi.c if (card == MS_CARD) { card 973 drivers/staging/rts5208/rtsx_scsi.c u8 card = get_lun_card(chip, lun); card 998 drivers/staging/rts5208/rtsx_scsi.c (!card || (card == MS_CARD))) { card 1543 drivers/staging/rts5208/rtsx_scsi.c u8 card = get_lun_card(chip, lun); card 1587 drivers/staging/rts5208/rtsx_scsi.c if (card == SD_CARD) { card 1623 drivers/staging/rts5208/rtsx_scsi.c } else if (card == MS_CARD) { card 1638 drivers/staging/rts5208/rtsx_scsi.c if (card == SD_CARD) { card 2539 drivers/staging/rts5208/rtsx_scsi.c u8 card, bus_width; card 2546 drivers/staging/rts5208/rtsx_scsi.c card = get_lun_card(chip, lun); card 2547 drivers/staging/rts5208/rtsx_scsi.c if ((card == SD_CARD) || (card == MS_CARD)) { card 225 drivers/staging/rts5208/rtsx_transport.c int rtsx_send_cmd(struct rtsx_chip *chip, u8 card, int timeout) card 233 drivers/staging/rts5208/rtsx_transport.c if (card == SD_CARD) card 235 drivers/staging/rts5208/rtsx_transport.c else if (card == MS_CARD) card 237 drivers/staging/rts5208/rtsx_transport.c else if (card == XD_CARD) card 282 drivers/staging/rts5208/rtsx_transport.c rtsx_stop_cmd(chip, card); card 313 drivers/staging/rts5208/rtsx_transport.c static int rtsx_transfer_sglist_adma_partial(struct rtsx_chip *chip, u8 card, card 339 drivers/staging/rts5208/rtsx_transport.c if (card == SD_CARD) card 341 drivers/staging/rts5208/rtsx_transport.c else if (card == MS_CARD) card 343 drivers/staging/rts5208/rtsx_transport.c else if (card == XD_CARD) card 474 drivers/staging/rts5208/rtsx_transport.c rtsx_stop_cmd(chip, card); card 479 drivers/staging/rts5208/rtsx_transport.c static int rtsx_transfer_sglist_adma(struct rtsx_chip *chip, u8 card, card 502 drivers/staging/rts5208/rtsx_transport.c if (card == SD_CARD) card 504 drivers/staging/rts5208/rtsx_transport.c else if (card == MS_CARD) card 506 drivers/staging/rts5208/rtsx_transport.c else if (card == XD_CARD) card 621 drivers/staging/rts5208/rtsx_transport.c rtsx_stop_cmd(chip, card); card 626 drivers/staging/rts5208/rtsx_transport.c static int rtsx_transfer_buf(struct rtsx_chip *chip, u8 card, void *buf, card 652 drivers/staging/rts5208/rtsx_transport.c if (card == SD_CARD) card 654 drivers/staging/rts5208/rtsx_transport.c else if (card == MS_CARD) card 656 drivers/staging/rts5208/rtsx_transport.c else if (card == XD_CARD) card 705 drivers/staging/rts5208/rtsx_transport.c rtsx_stop_cmd(chip, card); card 710 drivers/staging/rts5208/rtsx_transport.c int rtsx_transfer_data_partial(struct rtsx_chip *chip, u8 card, card 724 drivers/staging/rts5208/rtsx_transport.c err = rtsx_transfer_sglist_adma_partial(chip, card, sg, use_sg, card 728 drivers/staging/rts5208/rtsx_transport.c err = rtsx_transfer_buf(chip, card, card 742 drivers/staging/rts5208/rtsx_transport.c int rtsx_transfer_data(struct rtsx_chip *chip, u8 card, void *buf, size_t len, card 754 drivers/staging/rts5208/rtsx_transport.c err = rtsx_transfer_sglist_adma(chip, card, buf, card 757 drivers/staging/rts5208/rtsx_transport.c err = rtsx_transfer_buf(chip, card, buf, len, dma_dir, timeout); card 37 drivers/staging/rts5208/rtsx_transport.h int rtsx_send_cmd(struct rtsx_chip *chip, u8 card, int timeout); card 48 drivers/staging/rts5208/rtsx_transport.h int rtsx_transfer_data(struct rtsx_chip *chip, u8 card, void *buf, size_t len, card 52 drivers/staging/rts5208/rtsx_transport.h int rtsx_transfer_data_partial(struct rtsx_chip *chip, u8 card, void *buf, card 26 drivers/staging/uwb/whci.c u64 whci_capdata_quirks(struct whci_card *card, u64 capdata) card 29 drivers/staging/uwb/whci.c struct pci_dev *pci_dev = card->pci; card 91 drivers/staging/uwb/whci.c static int whci_add_cap(struct whci_card *card, int n) card 97 drivers/staging/uwb/whci.c umc = umc_device_create(&card->pci->dev, n); card 101 drivers/staging/uwb/whci.c capdata = le_readq(card->uwbbase + UWBCAPDATA(n)); card 105 drivers/staging/uwb/whci.c capdata = whci_capdata_quirks(card, capdata); card 111 drivers/staging/uwb/whci.c umc->resource.start = pci_resource_start(card->pci, bar) card 116 drivers/staging/uwb/whci.c umc->resource.flags = card->pci->resource[bar].flags; card 117 drivers/staging/uwb/whci.c umc->resource.parent = &card->pci->resource[bar]; card 118 drivers/staging/uwb/whci.c umc->irq = card->pci->irq; card 123 drivers/staging/uwb/whci.c card->devs[n] = umc; card 131 drivers/staging/uwb/whci.c static void whci_del_cap(struct whci_card *card, int n) card 133 drivers/staging/uwb/whci.c struct umc_dev *umc = card->devs[n]; card 154 drivers/staging/uwb/whci.c struct whci_card *card; card 175 drivers/staging/uwb/whci.c card = kzalloc(sizeof(struct whci_card) card 178 drivers/staging/uwb/whci.c if (card == NULL) card 180 drivers/staging/uwb/whci.c card->pci = pci; card 181 drivers/staging/uwb/whci.c card->n_caps = n_caps; card 185 drivers/staging/uwb/whci.c UWBCAPDATA_SIZE(card->n_caps), card 189 drivers/staging/uwb/whci.c card->uwbbase = pci_iomap(pci, 0, UWBCAPDATA_SIZE(card->n_caps)); card 190 drivers/staging/uwb/whci.c if (!card->uwbbase) card 194 drivers/staging/uwb/whci.c for (n = 0; n <= card->n_caps; n++) { card 195 drivers/staging/uwb/whci.c err = whci_add_cap(card, n); card 205 drivers/staging/uwb/whci.c pci_set_drvdata(pci, card); card 209 drivers/staging/uwb/whci.c pci_iounmap(pci, card->uwbbase); card 211 drivers/staging/uwb/whci.c release_mem_region(pci_resource_start(pci, 0), UWBCAPDATA_SIZE(card->n_caps)); card 213 drivers/staging/uwb/whci.c kfree(card); card 225 drivers/staging/uwb/whci.c struct whci_card *card = pci_get_drvdata(pci); card 231 drivers/staging/uwb/whci.c for (n = card->n_caps; n >= 0 ; n--) card 232 drivers/staging/uwb/whci.c whci_del_cap(card, n); card 233 drivers/staging/uwb/whci.c pci_iounmap(pci, card->uwbbase); card 234 drivers/staging/uwb/whci.c release_mem_region(pci_resource_start(pci, 0), UWBCAPDATA_SIZE(card->n_caps)); card 235 drivers/staging/uwb/whci.c kfree(card); card 92 drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c dev_err(chip->card->dev, "Failed to set ALSA controls..\n"); card 216 drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c err = snd_ctl_add(chip->card, snd_ctl_new1(&kctls[i], chip)); card 227 drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c strcpy(chip->card->mixername, "Broadcom Mixer"); card 264 drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c strcpy(chip->card->mixername, "Broadcom Mixer"); card 298 drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c strcpy(chip->card->mixername, "Broadcom Mixer"); card 348 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c err = snd_pcm_new(chip->card, name, idx, numchannels, 0, &pcm); card 366 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c chip->card->dev, 128 * 1024, 128 * 1024); card 167 drivers/staging/vc04_services/bcm2835-audio/bcm2835.c struct snd_card *card; card 170 drivers/staging/vc04_services/bcm2835-audio/bcm2835.c err = snd_card_new(dev, -1, NULL, THIS_MODULE, sizeof(*chip), &card); card 176 drivers/staging/vc04_services/bcm2835-audio/bcm2835.c chip = card->private_data; card 177 drivers/staging/vc04_services/bcm2835-audio/bcm2835.c chip->card = card; card 188 drivers/staging/vc04_services/bcm2835-audio/bcm2835.c strcpy(card->driver, audio_driver->driver.name); card 189 drivers/staging/vc04_services/bcm2835-audio/bcm2835.c strcpy(card->shortname, audio_driver->shortname); card 190 drivers/staging/vc04_services/bcm2835-audio/bcm2835.c strcpy(card->longname, audio_driver->longname); card 206 drivers/staging/vc04_services/bcm2835-audio/bcm2835.c err = snd_card_register(card); card 214 drivers/staging/vc04_services/bcm2835-audio/bcm2835.c err = devm_add_action(dev, bcm2835_card_free, card); card 224 drivers/staging/vc04_services/bcm2835-audio/bcm2835.c snd_card_free(card); card 52 drivers/staging/vc04_services/bcm2835-audio/bcm2835.h struct snd_card *card; card 877 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c snprintf((char *)cap->card, sizeof(cap->card), "mmal service %d.%d", card 155 drivers/staging/wilc1000/wilc_sdio.c wilc->rtc_clk = devm_clk_get(&func->card->dev, "rtc_clk"); card 58 drivers/target/sbp/sbp_target.c ret = sbp_run_transaction(req->card, TCODE_READ_QUADLET_REQUEST, card 65 drivers/target/sbp/sbp_target.c ret = sbp_run_transaction(req->card, TCODE_READ_QUADLET_REQUEST, card 227 drivers/target/sbp/sbp_target.c if (sess->card) card 228 drivers/target/sbp/sbp_target.c fw_card_put(sess->card); card 382 drivers/target/sbp/sbp_target.c sess->card = fw_card_get(req->card); card 454 drivers/target/sbp/sbp_target.c ret = sbp_run_transaction(sess->card, TCODE_WRITE_BLOCK_REQUEST, card 533 drivers/target/sbp/sbp_target.c if (login->sess->card) card 534 drivers/target/sbp/sbp_target.c fw_card_put(login->sess->card); card 539 drivers/target/sbp/sbp_target.c login->sess->card = fw_card_get(req->card); card 594 drivers/target/sbp/sbp_target.c if (sess->card) { card 595 drivers/target/sbp/sbp_target.c spin_lock_irq(&sess->card->lock); card 596 drivers/target/sbp/sbp_target.c card_valid = (sess->card->local_node != NULL); card 597 drivers/target/sbp/sbp_target.c spin_unlock_irq(&sess->card->lock); card 600 drivers/target/sbp/sbp_target.c fw_card_put(sess->card); card 601 drivers/target/sbp/sbp_target.c sess->card = NULL; card 605 drivers/target/sbp/sbp_target.c if (!card_valid || (sess->generation != sess->card->generation)) { card 668 drivers/target/sbp/sbp_target.c static int tgt_agent_rw_agent_state(struct fw_card *card, int tcode, void *data, card 694 drivers/target/sbp/sbp_target.c static int tgt_agent_rw_agent_reset(struct fw_card *card, int tcode, void *data, card 710 drivers/target/sbp/sbp_target.c static int tgt_agent_rw_orb_pointer(struct fw_card *card, int tcode, void *data, card 749 drivers/target/sbp/sbp_target.c static int tgt_agent_rw_doorbell(struct fw_card *card, int tcode, void *data, card 779 drivers/target/sbp/sbp_target.c static int tgt_agent_rw_unsolicited_status_enable(struct fw_card *card, card 796 drivers/target/sbp/sbp_target.c static void tgt_agent_rw(struct fw_card *card, struct fw_request *request, card 828 drivers/target/sbp/sbp_target.c rcode = tgt_agent_rw_agent_state(card, tcode, data, agent); card 831 drivers/target/sbp/sbp_target.c rcode = tgt_agent_rw_agent_reset(card, tcode, data, agent); card 834 drivers/target/sbp/sbp_target.c rcode = tgt_agent_rw_orb_pointer(card, tcode, data, agent); card 837 drivers/target/sbp/sbp_target.c rcode = tgt_agent_rw_doorbell(card, tcode, data, agent); card 840 drivers/target/sbp/sbp_target.c rcode = tgt_agent_rw_unsolicited_status_enable(card, tcode, card 847 drivers/target/sbp/sbp_target.c fw_send_response(card, request, rcode); card 911 drivers/target/sbp/sbp_target.c struct fw_card *card, u64 next_orb) card 941 drivers/target/sbp/sbp_target.c req = sbp_mgt_get_req(sess, sess->card, next_orb); card 958 drivers/target/sbp/sbp_target.c ret = sbp_run_transaction(sess->card, TCODE_READ_BLOCK_REQUEST, card 1055 drivers/target/sbp/sbp_target.c static int sbp_run_transaction(struct fw_card *card, int tcode, int destination_id, card 1062 drivers/target/sbp/sbp_target.c ret = fw_run_transaction(card, tcode, destination_id, card 1091 drivers/target/sbp/sbp_target.c struct fw_card *card; card 1095 drivers/target/sbp/sbp_target.c card = fw_card_get(sess->card); card 1101 drivers/target/sbp/sbp_target.c ret = sbp_run_transaction(card, tcode, node_id, generation, speed, card 1104 drivers/target/sbp/sbp_target.c fw_card_put(card); card 1249 drivers/target/sbp/sbp_target.c struct fw_card *card; card 1270 drivers/target/sbp/sbp_target.c card = fw_card_get(sess->card); card 1308 drivers/target/sbp/sbp_target.c rcode = sbp_run_transaction(card, tcode, node_id, card 1321 drivers/target/sbp/sbp_target.c fw_card_put(card); card 1462 drivers/target/sbp/sbp_target.c ret = sbp_run_transaction(req->card, TCODE_READ_BLOCK_REQUEST, card 1563 drivers/target/sbp/sbp_target.c ret = sbp_run_transaction(req->card, TCODE_WRITE_BLOCK_REQUEST, card 1573 drivers/target/sbp/sbp_target.c fw_card_put(req->card); card 1581 drivers/target/sbp/sbp_target.c static void sbp_mgt_agent_rw(struct fw_card *card, card 1616 drivers/target/sbp/sbp_target.c req->card = fw_card_get(card); card 1634 drivers/target/sbp/sbp_target.c fw_send_response(card, request, rcode); card 147 drivers/target/sbp/sbp_target.h struct fw_card *card; card 237 drivers/target/sbp/sbp_target.h struct fw_card *card; card 295 drivers/tty/cyclades.c struct cyclades_card *card = port->card; card 297 drivers/tty/cyclades.c cy_writeb(port->u.cyy.base_addr + (reg << card->bus_index), val); card 302 drivers/tty/cyclades.c struct cyclades_card *card = port->card; card 304 drivers/tty/cyclades.c return readb(port->u.cyy.base_addr + (reg << card->bus_index)); card 307 drivers/tty/cyclades.c static inline bool cy_is_Z(struct cyclades_card *card) card 309 drivers/tty/cyclades.c return card->num_chips == (unsigned int)-1; card 317 drivers/tty/cyclades.c static inline bool cyz_fpga_loaded(struct cyclades_card *card) card 319 drivers/tty/cyclades.c return __cyz_fpga_loaded(card->ctl_addr.p9060); card 322 drivers/tty/cyclades.c static bool cyz_is_loaded(struct cyclades_card *card) card 324 drivers/tty/cyclades.c struct FIRM_ID __iomem *fw_id = card->base_addr + ID_ADDRESS; card 326 drivers/tty/cyclades.c return (card->hw_ver == ZO_V1 || cyz_fpga_loaded(card)) && card 384 drivers/tty/cyclades.c port->card->bus_index); card 823 drivers/tty/cyclades.c struct cyclades_card *card = info->card; card 824 drivers/tty/cyclades.c int channel = info->line - card->first_line; card 921 drivers/tty/cyclades.c struct cyclades_card *cinfo = info->card; card 1008 drivers/tty/cyclades.c struct cyclades_card *cinfo = info->card; card 1151 drivers/tty/cyclades.c "port %ld\n", info->card, channel); card 1161 drivers/tty/cyclades.c "port %ld\n", info->card, channel); card 1201 drivers/tty/cyclades.c struct cyclades_card *card = info->card; card 1203 drivers/tty/cyclades.c __u32 channel = info->line - card->first_line; card 1206 drivers/tty/cyclades.c spin_lock_irqsave(&card->card_lock, flags); card 1207 drivers/tty/cyclades.c retval = cyz_issue_cmd(card, channel, C_CM_INTBACK2, 0L); card 1212 drivers/tty/cyclades.c spin_unlock_irqrestore(&card->card_lock, flags); card 1222 drivers/tty/cyclades.c unsigned int port, card; card 1224 drivers/tty/cyclades.c for (card = 0; card < NR_CARDS; card++) { card 1225 drivers/tty/cyclades.c cinfo = &cy_card[card]; card 1263 drivers/tty/cyclades.c struct cyclades_card *card; card 1269 drivers/tty/cyclades.c card = info->card; card 1270 drivers/tty/cyclades.c channel = info->line - card->first_line; card 1276 drivers/tty/cyclades.c spin_lock_irqsave(&card->card_lock, flags); card 1291 drivers/tty/cyclades.c spin_unlock_irqrestore(&card->card_lock, flags); card 1295 drivers/tty/cyclades.c if (!cy_is_Z(card)) { card 1298 drivers/tty/cyclades.c spin_lock_irqsave(&card->card_lock, flags); card 1314 drivers/tty/cyclades.c if (!cyz_is_loaded(card)) card 1319 drivers/tty/cyclades.c "base_addr %p\n", card, channel, card->base_addr); card 1321 drivers/tty/cyclades.c spin_lock_irqsave(&card->card_lock, flags); card 1343 drivers/tty/cyclades.c retval = cyz_issue_cmd(card, channel, C_CM_IOCTL, 0L); card 1350 drivers/tty/cyclades.c retval = cyz_issue_cmd(card, channel, C_CM_FLUSH_RX, 0L); card 1373 drivers/tty/cyclades.c spin_unlock_irqrestore(&card->card_lock, flags); card 1381 drivers/tty/cyclades.c spin_unlock_irqrestore(&card->card_lock, flags); card 1388 drivers/tty/cyclades.c struct cyclades_card *card = info->card; card 1390 drivers/tty/cyclades.c int channel = info->line - card->first_line; card 1392 drivers/tty/cyclades.c if (!cy_is_Z(card)) { card 1393 drivers/tty/cyclades.c spin_lock_irqsave(&card->card_lock, flags); card 1396 drivers/tty/cyclades.c spin_unlock_irqrestore(&card->card_lock, flags); card 1401 drivers/tty/cyclades.c spin_lock_irqsave(&card->card_lock, flags); card 1402 drivers/tty/cyclades.c retval = cyz_issue_cmd(card, channel, C_CM_INTBACK, 0L); card 1407 drivers/tty/cyclades.c spin_unlock_irqrestore(&card->card_lock, flags); card 1420 drivers/tty/cyclades.c struct cyclades_card *card; card 1426 drivers/tty/cyclades.c card = info->card; card 1427 drivers/tty/cyclades.c if (!cy_is_Z(card)) { card 1428 drivers/tty/cyclades.c spin_lock_irqsave(&card->card_lock, flags); card 1448 drivers/tty/cyclades.c spin_unlock_irqrestore(&card->card_lock, flags); card 1451 drivers/tty/cyclades.c int channel = info->line - card->first_line; card 1453 drivers/tty/cyclades.c "base_addr %p\n", card, channel, card->base_addr); card 1456 drivers/tty/cyclades.c if (!cyz_is_loaded(card)) card 1459 drivers/tty/cyclades.c spin_lock_irqsave(&card->card_lock, flags); card 1474 drivers/tty/cyclades.c spin_unlock_irqrestore(&card->card_lock, flags); card 1512 drivers/tty/cyclades.c if (cy_is_Z(info->card)) { card 1513 drivers/tty/cyclades.c struct cyclades_card *cinfo = info->card; card 1605 drivers/tty/cyclades.c struct cyclades_card *card; card 1645 drivers/tty/cyclades.c card = info->card; card 1646 drivers/tty/cyclades.c if (!cy_is_Z(card)) { card 1662 drivers/tty/cyclades.c struct cyclades_card *card; card 1673 drivers/tty/cyclades.c card = info->card; card 1674 drivers/tty/cyclades.c channel = info->line - card->first_line; card 1676 drivers/tty/cyclades.c spin_lock_irqsave(&card->card_lock, flags); card 1678 drivers/tty/cyclades.c spin_unlock_irqrestore(&card->card_lock, flags); card 1680 drivers/tty/cyclades.c if (cy_is_Z(card)) { /* If it is a Z card, flush the on-board card 1682 drivers/tty/cyclades.c spin_lock_irqsave(&card->card_lock, flags); card 1683 drivers/tty/cyclades.c retval = cyz_issue_cmd(card, channel, C_CM_FLUSH_TX, 0L); card 1688 drivers/tty/cyclades.c spin_unlock_irqrestore(&card->card_lock, flags); card 1698 drivers/tty/cyclades.c struct cyclades_card *card; card 1702 drivers/tty/cyclades.c card = info->card; card 1703 drivers/tty/cyclades.c channel = info->line - card->first_line; card 1704 drivers/tty/cyclades.c spin_lock_irqsave(&card->card_lock, flags); card 1706 drivers/tty/cyclades.c if (!cy_is_Z(card)) { card 1713 drivers/tty/cyclades.c spin_unlock_irqrestore(&card->card_lock, flags); card 1715 drivers/tty/cyclades.c spin_lock_irqsave(&card->card_lock, flags); card 1725 drivers/tty/cyclades.c retval = cyz_issue_cmd(card, channel, C_CM_IOCTLW, 0L); card 1730 drivers/tty/cyclades.c spin_unlock_irqrestore(&card->card_lock, flags); card 1732 drivers/tty/cyclades.c spin_lock_irqsave(&card->card_lock, flags); card 1736 drivers/tty/cyclades.c spin_unlock_irqrestore(&card->card_lock, flags); card 1780 drivers/tty/cyclades.c spin_lock_irqsave(&info->card->card_lock, flags); card 1796 drivers/tty/cyclades.c spin_unlock_irqrestore(&info->card->card_lock, flags); card 1829 drivers/tty/cyclades.c spin_lock_irqsave(&info->card->card_lock, flags); card 1831 drivers/tty/cyclades.c spin_unlock_irqrestore(&info->card->card_lock, flags); card 1840 drivers/tty/cyclades.c spin_unlock_irqrestore(&info->card->card_lock, flags); card 1897 drivers/tty/cyclades.c if (!cy_is_Z(info->card)) { card 1963 drivers/tty/cyclades.c struct cyclades_card *card; card 1976 drivers/tty/cyclades.c card = info->card; card 1977 drivers/tty/cyclades.c channel = info->line - card->first_line; card 1979 drivers/tty/cyclades.c if (!cy_is_Z(card)) { card 2089 drivers/tty/cyclades.c spin_lock_irqsave(&card->card_lock, flags); card 2137 drivers/tty/cyclades.c spin_unlock_irqrestore(&card->card_lock, flags); card 2144 drivers/tty/cyclades.c if (!cyz_is_loaded(card)) card 2227 drivers/tty/cyclades.c retval = cyz_issue_cmd(card, channel, C_CM_IOCTL, 0L); card 2250 drivers/tty/cyclades.c retval = cyz_issue_cmd(card, channel, C_CM_IOCTLM, 0L); card 2264 drivers/tty/cyclades.c struct cyclades_card *cinfo = info->card; card 2270 drivers/tty/cyclades.c ss->port = (info->card - cy_card) * 0x100 + info->line - card 2352 drivers/tty/cyclades.c struct cyclades_card *card = info->card; card 2357 drivers/tty/cyclades.c if (!cy_is_Z(card)) { card 2358 drivers/tty/cyclades.c spin_lock_irqsave(&card->card_lock, flags); card 2360 drivers/tty/cyclades.c spin_unlock_irqrestore(&card->card_lock, flags); card 2372 drivers/tty/cyclades.c struct cyclades_card *card; card 2378 drivers/tty/cyclades.c card = info->card; card 2380 drivers/tty/cyclades.c if (!cy_is_Z(card)) { card 2382 drivers/tty/cyclades.c int channel = info->line - card->first_line; card 2385 drivers/tty/cyclades.c spin_lock_irqsave(&card->card_lock, flags); card 2389 drivers/tty/cyclades.c spin_unlock_irqrestore(&card->card_lock, flags); card 2405 drivers/tty/cyclades.c if (!cyz_is_loaded(card)) { card 2427 drivers/tty/cyclades.c struct cyclades_card *card; card 2433 drivers/tty/cyclades.c card = info->card; card 2434 drivers/tty/cyclades.c if (!cy_is_Z(card)) { card 2435 drivers/tty/cyclades.c spin_lock_irqsave(&card->card_lock, flags); card 2437 drivers/tty/cyclades.c spin_unlock_irqrestore(&card->card_lock, flags); card 2440 drivers/tty/cyclades.c int retval, channel = info->line - card->first_line; card 2443 drivers/tty/cyclades.c if (!cyz_is_loaded(card)) card 2446 drivers/tty/cyclades.c spin_lock_irqsave(&card->card_lock, flags); card 2466 drivers/tty/cyclades.c retval = cyz_issue_cmd(card, channel, C_CM_IOCTLM, 0L); card 2467 drivers/tty/cyclades.c spin_unlock_irqrestore(&card->card_lock, flags); card 2482 drivers/tty/cyclades.c struct cyclades_card *card; card 2489 drivers/tty/cyclades.c card = info->card; card 2491 drivers/tty/cyclades.c spin_lock_irqsave(&card->card_lock, flags); card 2492 drivers/tty/cyclades.c if (!cy_is_Z(card)) { card 2500 drivers/tty/cyclades.c spin_unlock_irqrestore(&card->card_lock, flags); card 2502 drivers/tty/cyclades.c spin_lock_irqsave(&card->card_lock, flags); card 2509 drivers/tty/cyclades.c spin_unlock_irqrestore(&card->card_lock, flags); card 2511 drivers/tty/cyclades.c spin_lock_irqsave(&card->card_lock, flags); card 2517 drivers/tty/cyclades.c retval = cyz_issue_cmd(card, card 2518 drivers/tty/cyclades.c info->line - card->first_line, card 2525 drivers/tty/cyclades.c retval = cyz_issue_cmd(card, card 2526 drivers/tty/cyclades.c info->line - card->first_line, card 2535 drivers/tty/cyclades.c spin_unlock_irqrestore(&card->card_lock, flags); card 2541 drivers/tty/cyclades.c struct cyclades_card *card = info->card; card 2544 drivers/tty/cyclades.c if (!cy_is_Z(card)) { card 2548 drivers/tty/cyclades.c spin_lock_irqsave(&card->card_lock, flags); card 2551 drivers/tty/cyclades.c spin_unlock_irqrestore(&card->card_lock, flags); card 2559 drivers/tty/cyclades.c struct cyclades_card *card = info->card; card 2561 drivers/tty/cyclades.c if (!cy_is_Z(card)) { card 2570 drivers/tty/cyclades.c struct cyclades_card *card = info->card; card 2573 drivers/tty/cyclades.c if (!cy_is_Z(card)) { card 2574 drivers/tty/cyclades.c spin_lock_irqsave(&card->card_lock, flags); card 2576 drivers/tty/cyclades.c spin_unlock_irqrestore(&card->card_lock, flags); card 2584 drivers/tty/cyclades.c struct cyclades_card *card = info->card; card 2586 drivers/tty/cyclades.c if (!cy_is_Z(card)) { card 2600 drivers/tty/cyclades.c spin_lock_irqsave(&info->card->card_lock, flags); card 2602 drivers/tty/cyclades.c spin_unlock_irqrestore(&info->card->card_lock, flags); card 2712 drivers/tty/cyclades.c spin_lock_irqsave(&info->card->card_lock, flags); card 2715 drivers/tty/cyclades.c spin_unlock_irqrestore(&info->card->card_lock, flags); card 2743 drivers/tty/cyclades.c spin_lock_irqsave(&info->card->card_lock, flags); card 2745 drivers/tty/cyclades.c spin_unlock_irqrestore(&info->card->card_lock, flags); card 2799 drivers/tty/cyclades.c struct cyclades_card *card; card 2810 drivers/tty/cyclades.c card = info->card; card 2811 drivers/tty/cyclades.c channel = info->line - card->first_line; card 2813 drivers/tty/cyclades.c if (cy_is_Z(card)) { card 2815 drivers/tty/cyclades.c cyz_issue_cmd(card, channel, C_CM_SENDXOFF, 0L); card 2817 drivers/tty/cyclades.c cyz_issue_cmd(card, channel, C_CM_SENDXON, 0L); card 2828 drivers/tty/cyclades.c struct cyclades_card *card; card 2839 drivers/tty/cyclades.c card = info->card; card 2842 drivers/tty/cyclades.c if (!cy_is_Z(card)) card 2849 drivers/tty/cyclades.c if (!cy_is_Z(card)) { card 2850 drivers/tty/cyclades.c spin_lock_irqsave(&card->card_lock, flags); card 2852 drivers/tty/cyclades.c spin_unlock_irqrestore(&card->card_lock, flags); card 2867 drivers/tty/cyclades.c struct cyclades_card *card; card 2886 drivers/tty/cyclades.c card = info->card; card 2887 drivers/tty/cyclades.c if (!cy_is_Z(card)) { card 2888 drivers/tty/cyclades.c spin_lock_irqsave(&card->card_lock, flags); card 2890 drivers/tty/cyclades.c spin_unlock_irqrestore(&card->card_lock, flags); card 2914 drivers/tty/cyclades.c cinfo = info->card; card 2938 drivers/tty/cyclades.c cinfo = info->card; card 2971 drivers/tty/cyclades.c struct cyclades_card *cinfo = info->card; card 2988 drivers/tty/cyclades.c struct cyclades_card *cinfo = info->card; card 3009 drivers/tty/cyclades.c struct cyclades_card *cinfo = info->card; card 3069 drivers/tty/cyclades.c info->card = cinfo; card 3234 drivers/tty/cyclades.c struct cyclades_card *card; card 3295 drivers/tty/cyclades.c card = &cy_card[j]; card 3296 drivers/tty/cyclades.c if (card->base_addr == NULL) card 3310 drivers/tty/cyclades.c 0, "Cyclom-Y", card)) { card 3319 drivers/tty/cyclades.c card->base_addr = cy_isa_address; card 3320 drivers/tty/cyclades.c card->ctl_addr.p9050 = NULL; card 3321 drivers/tty/cyclades.c card->irq = (int)cy_isa_irq; card 3322 drivers/tty/cyclades.c card->bus_index = 0; card 3323 drivers/tty/cyclades.c card->first_line = cy_next_channel; card 3324 drivers/tty/cyclades.c card->num_chips = cy_isa_nchan / CyPORTS_PER_CHIP; card 3325 drivers/tty/cyclades.c card->nports = cy_isa_nchan; card 3326 drivers/tty/cyclades.c if (cy_init_card(card)) { card 3327 drivers/tty/cyclades.c card->base_addr = NULL; card 3328 drivers/tty/cyclades.c free_irq(cy_isa_irq, card); card 3342 drivers/tty/cyclades.c tty_port_register_device(&card->ports[k].port, card 3643 drivers/tty/cyclades.c struct cyclades_card *card; card 3778 drivers/tty/cyclades.c card = &cy_card[card_no]; card 3779 drivers/tty/cyclades.c if (card->base_addr == NULL) card 3793 drivers/tty/cyclades.c IRQF_SHARED, "Cyclom-Y", card); card 3798 drivers/tty/cyclades.c card->num_chips = nchan / CyPORTS_PER_CHIP; card 3805 drivers/tty/cyclades.c card->hw_ver = mailbox; card 3806 drivers/tty/cyclades.c card->num_chips = (unsigned int)-1; card 3807 drivers/tty/cyclades.c card->board_ctrl = &zfw_ctrl->board_ctrl; card 3812 drivers/tty/cyclades.c IRQF_SHARED, "Cyclades-Z", card); card 3822 drivers/tty/cyclades.c card->base_addr = addr2; card 3823 drivers/tty/cyclades.c card->ctl_addr.p9050 = addr0; card 3824 drivers/tty/cyclades.c card->irq = irq; card 3825 drivers/tty/cyclades.c card->bus_index = 1; card 3826 drivers/tty/cyclades.c card->first_line = cy_next_channel; card 3827 drivers/tty/cyclades.c card->nports = nchan; card 3828 drivers/tty/cyclades.c retval = cy_init_card(card); card 3832 drivers/tty/cyclades.c pci_set_drvdata(pdev, card); card 3859 drivers/tty/cyclades.c tty_port_register_device(&card->ports[j].port, card 3865 drivers/tty/cyclades.c card->base_addr = NULL; card 3866 drivers/tty/cyclades.c free_irq(irq, card); card 4073 drivers/tty/cyclades.c struct cyclades_card *card; card 4090 drivers/tty/cyclades.c card = &cy_card[i]; card 4091 drivers/tty/cyclades.c if (card->base_addr) { card 4093 drivers/tty/cyclades.c cy_writeb(card->base_addr + Cy_ClrIntr, 0); card 4094 drivers/tty/cyclades.c iounmap(card->base_addr); card 4095 drivers/tty/cyclades.c if (card->ctl_addr.p9050) card 4096 drivers/tty/cyclades.c iounmap(card->ctl_addr.p9050); card 4097 drivers/tty/cyclades.c if (card->irq card 4099 drivers/tty/cyclades.c && !cy_is_Z(card) card 4102 drivers/tty/cyclades.c free_irq(card->irq, card); card 4103 drivers/tty/cyclades.c for (e1 = card->first_line; e1 < card->first_line + card 4104 drivers/tty/cyclades.c card->nports; e1++) card 4106 drivers/tty/cyclades.c kfree(card->ports); card 203 drivers/tty/isicom.c struct isi_board *card; card 229 drivers/tty/isicom.c static int lock_card(struct isi_board *card) card 231 drivers/tty/isicom.c unsigned long base = card->base; card 235 drivers/tty/isicom.c spin_lock_irqsave(&card->card_lock, card->flags); card 241 drivers/tty/isicom.c spin_unlock_irqrestore(&card->card_lock, card->flags); card 244 drivers/tty/isicom.c pr_warn("Failed to lock Card (0x%lx)\n", card->base); card 249 drivers/tty/isicom.c static void unlock_card(struct isi_board *card) card 251 drivers/tty/isicom.c spin_unlock_irqrestore(&card->card_lock, card->flags); card 261 drivers/tty/isicom.c struct isi_board *card = port->card; card 262 drivers/tty/isicom.c unsigned long base = card->base; card 268 drivers/tty/isicom.c outw(0x8000 | (channel << card->shift_count) | 0x02, base); card 277 drivers/tty/isicom.c struct isi_board *card = port->card; card 278 drivers/tty/isicom.c unsigned long base = card->base; card 284 drivers/tty/isicom.c outw(0x8000 | (channel << card->shift_count) | 0x02, base); card 293 drivers/tty/isicom.c struct isi_board *card = port->card; card 294 drivers/tty/isicom.c unsigned long base = card->base; card 300 drivers/tty/isicom.c outw(0x8000 | (channel << card->shift_count) | 0x02, base); card 309 drivers/tty/isicom.c struct isi_board *card = port->card; card 310 drivers/tty/isicom.c unsigned long base = card->base; card 316 drivers/tty/isicom.c outw(0x8000 | (channel << card->shift_count) | 0x02, base); card 327 drivers/tty/isicom.c struct isi_board *card = ip->card; card 328 drivers/tty/isicom.c unsigned long base = card->base; card 331 drivers/tty/isicom.c if (!lock_card(card)) card 335 drivers/tty/isicom.c outw(0x8000 | (channel << card->shift_count) | 0x02, base); card 340 drivers/tty/isicom.c outw(0x8000 | (channel << card->shift_count) | 0x02, base); card 345 drivers/tty/isicom.c unlock_card(card); card 351 drivers/tty/isicom.c struct isi_board *card = port->card; card 352 drivers/tty/isicom.c unsigned long base = card->base; card 358 drivers/tty/isicom.c outw(0x8000 | (channel << card->shift_count) | 0x02, base); card 397 drivers/tty/isicom.c short count = (BOARD_COUNT-1), card; card 403 drivers/tty/isicom.c card = (prev_card + 1) & 0x0003; card 405 drivers/tty/isicom.c if (isi_card[card].status & BOARD_ACTIVE) card 407 drivers/tty/isicom.c card = (card + 1) & 0x0003; card 409 drivers/tty/isicom.c if (!(isi_card[card].status & BOARD_ACTIVE)) card 412 drivers/tty/isicom.c prev_card = card; card 414 drivers/tty/isicom.c count = isi_card[card].port_count; card 415 drivers/tty/isicom.c port = isi_card[card].ports; card 416 drivers/tty/isicom.c base = isi_card[card].base; card 418 drivers/tty/isicom.c spin_lock_irqsave(&isi_card[card].card_lock, flags); card 446 drivers/tty/isicom.c outw((port->channel << isi_card[card].shift_count) | txcount, card 497 drivers/tty/isicom.c spin_unlock_irqrestore(&isi_card[card].card_lock, flags); card 509 drivers/tty/isicom.c struct isi_board *card = dev_id; card 517 drivers/tty/isicom.c if (!card || !(card->status & FIRMWARE_LOADED)) card 520 drivers/tty/isicom.c base = card->base; card 526 drivers/tty/isicom.c spin_lock(&card->card_lock); card 537 drivers/tty/isicom.c channel = (header & 0x7800) >> card->shift_count; card 540 drivers/tty/isicom.c if (channel + 1 > card->port_count) { card 544 drivers/tty/isicom.c spin_unlock(&card->card_lock); card 547 drivers/tty/isicom.c port = card->ports + channel; card 550 drivers/tty/isicom.c spin_unlock(&card->card_lock); card 563 drivers/tty/isicom.c spin_unlock(&card->card_lock); card 668 drivers/tty/isicom.c spin_unlock(&card->card_lock); card 677 drivers/tty/isicom.c struct isi_board *card = port->card; card 679 drivers/tty/isicom.c unsigned long base = card->base; card 681 drivers/tty/isicom.c shift_count = card->shift_count; card 773 drivers/tty/isicom.c card->port_status |= (1 << channel); card 774 drivers/tty/isicom.c outw(card->port_status, base + 0x02); card 800 drivers/tty/isicom.c struct isi_board *card = port->card; card 806 drivers/tty/isicom.c spin_lock_irqsave(&card->card_lock, flags); card 807 drivers/tty/isicom.c isicom_setup_board(card); card 812 drivers/tty/isicom.c if (WaitTillCardIsFree(card->base) == 0) { card 813 drivers/tty/isicom.c outw(0x8000 | (port->channel << card->shift_count) | 0x02, card 814 drivers/tty/isicom.c card->base); card 815 drivers/tty/isicom.c outw(((ISICOM_KILLTX | ISICOM_KILLRX) << 8) | 0x06, card->base); card 816 drivers/tty/isicom.c InterruptTheCard(card->base); card 819 drivers/tty/isicom.c spin_unlock_irqrestore(&card->card_lock, flags); card 833 drivers/tty/isicom.c struct isi_board *card; card 838 drivers/tty/isicom.c card = &isi_card[board]; card 840 drivers/tty/isicom.c if (!(card->status & FIRMWARE_LOADED)) card 844 drivers/tty/isicom.c if (line > ((board * 16) + card->port_count - 1)) card 873 drivers/tty/isicom.c struct isi_board *card = port->card; card 875 drivers/tty/isicom.c if (--card->count < 0) { card 877 drivers/tty/isicom.c __func__, card->base, card->count); card 878 drivers/tty/isicom.c card->count = 0; card 881 drivers/tty/isicom.c if (!card->count) card 882 drivers/tty/isicom.c card->status &= BOARD_ACTIVE; card 888 drivers/tty/isicom.c struct isi_board *card = port->card; card 894 drivers/tty/isicom.c spin_lock_irqsave(&card->card_lock, flags); card 896 drivers/tty/isicom.c spin_unlock_irqrestore(&card->card_lock, flags); card 904 drivers/tty/isicom.c struct isi_board *card = ip->card; card 909 drivers/tty/isicom.c spin_lock_irqsave(&card->card_lock, flags); card 910 drivers/tty/isicom.c card->port_status &= ~(1 << ip->channel); card 911 drivers/tty/isicom.c outw(card->port_status, card->base + 0x02); card 913 drivers/tty/isicom.c spin_unlock_irqrestore(&card->card_lock, flags); card 936 drivers/tty/isicom.c struct isi_board *card = port->card; card 943 drivers/tty/isicom.c spin_lock_irqsave(&card->card_lock, flags); card 961 drivers/tty/isicom.c spin_unlock_irqrestore(&card->card_lock, flags); card 969 drivers/tty/isicom.c struct isi_board *card = port->card; card 975 drivers/tty/isicom.c spin_lock_irqsave(&card->card_lock, flags); card 977 drivers/tty/isicom.c spin_unlock_irqrestore(&card->card_lock, flags); card 984 drivers/tty/isicom.c spin_unlock_irqrestore(&card->card_lock, flags); card 1033 drivers/tty/isicom.c struct isi_board *card = port->card; card 1034 drivers/tty/isicom.c unsigned long base = card->base; card 1039 drivers/tty/isicom.c if (!lock_card(card)) card 1042 drivers/tty/isicom.c outw(0x8000 | ((port->channel) << (card->shift_count)) | 0x3, base); card 1047 drivers/tty/isicom.c unlock_card(card); card 1077 drivers/tty/isicom.c spin_lock_irqsave(&port->card->card_lock, flags); card 1087 drivers/tty/isicom.c spin_unlock_irqrestore(&port->card->card_lock, flags); card 1123 drivers/tty/isicom.c spin_lock_irqsave(&port->card->card_lock, flags); card 1125 drivers/tty/isicom.c spin_unlock_irqrestore(&port->card->card_lock, flags); card 1142 drivers/tty/isicom.c ss->port = port->card->base; card 1143 drivers/tty/isicom.c ss->irq = port->card->irq; card 1166 drivers/tty/isicom.c spin_lock_irqsave(&port->card->card_lock, flags); card 1168 drivers/tty/isicom.c spin_unlock_irqrestore(&port->card->card_lock, flags); card 1180 drivers/tty/isicom.c struct isi_board *card = port->card; card 1186 drivers/tty/isicom.c card->port_status &= ~(1 << port->channel); card 1187 drivers/tty/isicom.c outw(card->port_status, card->base + 0x02); card 1194 drivers/tty/isicom.c struct isi_board *card = port->card; card 1200 drivers/tty/isicom.c card->port_status |= (1 << port->channel); card 1201 drivers/tty/isicom.c outw(card->port_status, card->base + 0x02); card 1274 drivers/tty/isicom.c const unsigned int card, unsigned int *signature) card 1281 drivers/tty/isicom.c dev_dbg(&pdev->dev, "ISILoad:Resetting Card%d at 0x%lx\n", card + 1, card 1297 drivers/tty/isicom.c "bad I/O Port Address 0x%lx).\n", card + 1, base); card 1309 drivers/tty/isicom.c card + 1); card 1629 drivers/tty/isicom.c port->card = &isi_card[idx]; card 1428 drivers/tty/moxa.c unsigned int card, port, served = 0; card 1431 drivers/tty/moxa.c for (card = 0; card < MAX_BOARDS; card++) { card 1432 drivers/tty/moxa.c brd = &moxa_boards[card]; card 10 drivers/tty/serial/8250/8250_hub6.c #define HUB6(card, port) \ card 17 drivers/tty/serial/8250/8250_hub6.c .hub6 = (card) << 6 | (port) << 3 | 1, \ card 427 drivers/tty/serial/8250/8250_pnp.c (dev->card && check_name(dev->card->name)))) card 182 drivers/tty/serial/rp2.c struct rp2_card *card; card 258 drivers/tty/serial/rp2.c spin_lock_irqsave(&up->card->card_lock, flags); card 267 drivers/tty/serial/rp2.c spin_unlock_irqrestore(&up->card->card_lock, flags); card 485 drivers/tty/serial/rp2.c static int rp2_asic_interrupt(struct rp2_card *card, unsigned int asic_id) card 487 drivers/tty/serial/rp2.c void __iomem *base = card->bar1 + RP2_ASIC_OFFSET(asic_id); card 493 drivers/tty/serial/rp2.c rp2_ch_interrupt(&card->ports[ch]); card 501 drivers/tty/serial/rp2.c struct rp2_card *card = dev_id; card 504 drivers/tty/serial/rp2.c handled = rp2_asic_interrupt(card, 0); card 505 drivers/tty/serial/rp2.c if (card->n_ports >= PORTS_PER_ASIC) card 506 drivers/tty/serial/rp2.c handled += rp2_asic_interrupt(card, 1); card 598 drivers/tty/serial/rp2.c static void rp2_reset_asic(struct rp2_card *card, unsigned int asic_id) card 600 drivers/tty/serial/rp2.c void __iomem *base = card->bar1 + RP2_ASIC_OFFSET(asic_id); card 618 drivers/tty/serial/rp2.c static void rp2_init_card(struct rp2_card *card) card 620 drivers/tty/serial/rp2.c writel(4, card->bar0 + RP2_FPGA_CTL0); card 621 drivers/tty/serial/rp2.c writel(0, card->bar0 + RP2_FPGA_CTL1); card 623 drivers/tty/serial/rp2.c rp2_reset_asic(card, 0); card 624 drivers/tty/serial/rp2.c if (card->n_ports >= PORTS_PER_ASIC) card 625 drivers/tty/serial/rp2.c rp2_reset_asic(card, 1); card 627 drivers/tty/serial/rp2.c writel(RP2_IRQ_MASK_EN_m, card->bar0 + RP2_IRQ_MASK); card 658 drivers/tty/serial/rp2.c static void rp2_remove_ports(struct rp2_card *card) card 662 drivers/tty/serial/rp2.c for (i = 0; i < card->initialized_ports; i++) card 663 drivers/tty/serial/rp2.c uart_remove_one_port(&rp2_uart_driver, &card->ports[i].port); card 664 drivers/tty/serial/rp2.c card->initialized_ports = 0; card 669 drivers/tty/serial/rp2.c struct rp2_card *card = context; card 674 drivers/tty/serial/rp2.c dev_err(&card->pdev->dev, "cannot find '%s' firmware image\n", card 679 drivers/tty/serial/rp2.c phys_base = pci_resource_start(card->pdev, 1); card 681 drivers/tty/serial/rp2.c for (i = 0; i < card->n_ports; i++) { card 682 drivers/tty/serial/rp2.c struct rp2_uart_port *rp = &card->ports[i]; card 686 drivers/tty/serial/rp2.c rp->asic_base = card->bar1; card 687 drivers/tty/serial/rp2.c rp->base = card->bar1 + RP2_PORT_BASE + j*RP2_PORT_SPACING; card 688 drivers/tty/serial/rp2.c rp->ucode = card->bar1 + RP2_UCODE_BASE + j*RP2_UCODE_SPACING; card 689 drivers/tty/serial/rp2.c rp->card = card; card 693 drivers/tty/serial/rp2.c p->line = card->minor_start + i; card 694 drivers/tty/serial/rp2.c p->dev = &card->pdev->dev; card 701 drivers/tty/serial/rp2.c p->irq = card->pdev->irq; card 715 drivers/tty/serial/rp2.c dev_err(&card->pdev->dev, card 717 drivers/tty/serial/rp2.c rp2_remove_ports(card); card 720 drivers/tty/serial/rp2.c card->initialized_ports++; card 732 drivers/tty/serial/rp2.c dev_warn(&card->pdev->dev, "driver initialization failed\n"); card 734 drivers/tty/serial/rp2.c complete(&card->fw_loaded); card 740 drivers/tty/serial/rp2.c struct rp2_card *card; card 745 drivers/tty/serial/rp2.c card = devm_kzalloc(&pdev->dev, sizeof(*card), GFP_KERNEL); card 746 drivers/tty/serial/rp2.c if (!card) card 748 drivers/tty/serial/rp2.c pci_set_drvdata(pdev, card); card 749 drivers/tty/serial/rp2.c spin_lock_init(&card->card_lock); card 750 drivers/tty/serial/rp2.c init_completion(&card->fw_loaded); card 761 drivers/tty/serial/rp2.c card->bar0 = bars[0]; card 762 drivers/tty/serial/rp2.c card->bar1 = bars[1]; card 763 drivers/tty/serial/rp2.c card->pdev = pdev; card 765 drivers/tty/serial/rp2.c rp2_decode_cap(id, &card->n_ports, &card->smpte); card 766 drivers/tty/serial/rp2.c dev_info(&pdev->dev, "found new card with %d ports\n", card->n_ports); card 768 drivers/tty/serial/rp2.c card->minor_start = rp2_alloc_ports(card->n_ports); card 769 drivers/tty/serial/rp2.c if (card->minor_start < 0) { card 775 drivers/tty/serial/rp2.c rp2_init_card(card); card 777 drivers/tty/serial/rp2.c ports = devm_kcalloc(&pdev->dev, card->n_ports, sizeof(*ports), card 781 drivers/tty/serial/rp2.c card->ports = ports; card 784 drivers/tty/serial/rp2.c IRQF_SHARED, DRV_NAME, card); card 794 drivers/tty/serial/rp2.c GFP_KERNEL, card, rp2_fw_cb); card 804 drivers/tty/serial/rp2.c struct rp2_card *card = pci_get_drvdata(pdev); card 806 drivers/tty/serial/rp2.c wait_for_completion(&card->fw_loaded); card 807 drivers/tty/serial/rp2.c rp2_remove_ports(card); card 83 drivers/usb/gadget/function/f_midi.c struct snd_card *card; card 789 drivers/usb/gadget/function/f_midi.c if (midi->card) { card 790 drivers/usb/gadget/function/f_midi.c snd_card_free(midi->card); card 791 drivers/usb/gadget/function/f_midi.c midi->card = NULL; card 798 drivers/usb/gadget/function/f_midi.c struct snd_card *card; card 806 drivers/usb/gadget/function/f_midi.c THIS_MODULE, 0, &card); card 811 drivers/usb/gadget/function/f_midi.c midi->card = card; card 813 drivers/usb/gadget/function/f_midi.c err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, midi, &ops); card 819 drivers/usb/gadget/function/f_midi.c strcpy(card->driver, f_midi_longname); card 820 drivers/usb/gadget/function/f_midi.c strcpy(card->longname, f_midi_longname); card 821 drivers/usb/gadget/function/f_midi.c strcpy(card->shortname, f_midi_shortname); card 824 drivers/usb/gadget/function/f_midi.c snd_component_add(card, "MIDI"); card 825 drivers/usb/gadget/function/f_midi.c err = snd_rawmidi_new(card, card->longname, 0, card 833 drivers/usb/gadget/function/f_midi.c strcpy(rmidi->name, card->shortname); card 849 drivers/usb/gadget/function/f_midi.c err = snd_card_register(card); card 1273 drivers/usb/gadget/function/f_midi.c struct snd_card *card; card 1280 drivers/usb/gadget/function/f_midi.c card = midi->card; card 1281 drivers/usb/gadget/function/f_midi.c midi->card = NULL; card 1282 drivers/usb/gadget/function/f_midi.c if (card) card 1283 drivers/usb/gadget/function/f_midi.c snd_card_free_when_closed(card); card 275 drivers/usb/gadget/function/f_uac1_legacy.c struct gaudio card; card 296 drivers/usb/gadget/function/f_uac1_legacy.c return container_of(f, struct f_audio, card.func); card 317 drivers/usb/gadget/function/f_uac1_legacy.c u_audio_playback(&audio->card, play_buf->buf, play_buf->actual); card 324 drivers/usb/gadget/function/f_uac1_legacy.c struct usb_composite_dev *cdev = audio->card.func.config->cdev; card 330 drivers/usb/gadget/function/f_uac1_legacy.c opts = container_of(audio->card.func.fi, struct f_uac1_legacy_opts, card 678 drivers/usb/gadget/function/f_uac1_legacy.c struct gaudio *card = &audio->card; card 683 drivers/usb/gadget/function/f_uac1_legacy.c input_terminal_desc.bNrChannels = u_audio_get_playback_channels(card); card 684 drivers/usb/gadget/function/f_uac1_legacy.c as_type_i_desc.bNrChannels = u_audio_get_playback_channels(card); card 687 drivers/usb/gadget/function/f_uac1_legacy.c rate = u_audio_get_playback_rate(card); card 708 drivers/usb/gadget/function/f_uac1_legacy.c audio->card.gadget = c->cdev->gadget; card 711 drivers/usb/gadget/function/f_uac1_legacy.c status = gaudio_setup(&audio->card); card 765 drivers/usb/gadget/function/f_uac1_legacy.c gaudio_cleanup(&audio->card); card 969 drivers/usb/gadget/function/f_uac1_legacy.c gaudio_cleanup(&audio->card); card 992 drivers/usb/gadget/function/f_uac1_legacy.c audio->card.func.name = "g_audio"; card 1001 drivers/usb/gadget/function/f_uac1_legacy.c audio->card.func.bind = f_audio_bind; card 1002 drivers/usb/gadget/function/f_uac1_legacy.c audio->card.func.unbind = f_audio_unbind; card 1003 drivers/usb/gadget/function/f_uac1_legacy.c audio->card.func.set_alt = f_audio_set_alt; card 1004 drivers/usb/gadget/function/f_uac1_legacy.c audio->card.func.get_alt = f_audio_get_alt; card 1005 drivers/usb/gadget/function/f_uac1_legacy.c audio->card.func.setup = f_audio_setup; card 1006 drivers/usb/gadget/function/f_uac1_legacy.c audio->card.func.disable = f_audio_disable; card 1007 drivers/usb/gadget/function/f_uac1_legacy.c audio->card.func.free_func = f_audio_free; card 1013 drivers/usb/gadget/function/f_uac1_legacy.c return &audio->card.func; card 55 drivers/usb/gadget/function/u_audio.c struct snd_card *card; card 182 drivers/usb/gadget/function/u_audio.c dev_err(uac->card->dev, "%d Error!\n", __LINE__); card 361 drivers/usb/gadget/function/u_audio.c dev_err(uac->card->dev, "%s:%d Error!\n", __func__, __LINE__); card 496 drivers/usb/gadget/function/u_audio.c struct snd_card *card; card 561 drivers/usb/gadget/function/u_audio.c -1, NULL, THIS_MODULE, 0, &card); card 565 drivers/usb/gadget/function/u_audio.c uac->card = card; card 571 drivers/usb/gadget/function/u_audio.c err = snd_pcm_new(uac->card, pcm_name, 0, card 583 drivers/usb/gadget/function/u_audio.c strlcpy(card->driver, card_name, sizeof(card->driver)); card 584 drivers/usb/gadget/function/u_audio.c strlcpy(card->shortname, card_name, sizeof(card->shortname)); card 585 drivers/usb/gadget/function/u_audio.c sprintf(card->longname, "%s %i", card_name, card->dev->id); card 590 drivers/usb/gadget/function/u_audio.c err = snd_card_register(card); card 596 drivers/usb/gadget/function/u_audio.c snd_card_free(card); card 611 drivers/usb/gadget/function/u_audio.c struct snd_card *card; card 617 drivers/usb/gadget/function/u_audio.c card = uac->card; card 618 drivers/usb/gadget/function/u_audio.c if (card) card 619 drivers/usb/gadget/function/u_audio.c snd_card_free(card); card 128 drivers/usb/gadget/function/u_uac1_legacy.c ERROR(snd->card, card 142 drivers/usb/gadget/function/u_uac1_legacy.c INFO(snd->card, card 152 drivers/usb/gadget/function/u_uac1_legacy.c size_t u_audio_playback(struct gaudio *card, void *buf, size_t count) card 154 drivers/usb/gadget/function/u_uac1_legacy.c struct gaudio_snd_dev *snd = &card->playback; card 166 drivers/usb/gadget/function/u_uac1_legacy.c ERROR(card, "Preparing sound card failed: %d\n", card 175 drivers/usb/gadget/function/u_uac1_legacy.c ERROR(card, "Playback error: %d\n", (int)result); card 182 drivers/usb/gadget/function/u_uac1_legacy.c int u_audio_get_playback_channels(struct gaudio *card) card 184 drivers/usb/gadget/function/u_uac1_legacy.c return card->playback.channels; card 187 drivers/usb/gadget/function/u_uac1_legacy.c int u_audio_get_playback_rate(struct gaudio *card) card 189 drivers/usb/gadget/function/u_uac1_legacy.c return card->playback.rate; card 196 drivers/usb/gadget/function/u_uac1_legacy.c static int gaudio_open_snd_dev(struct gaudio *card) card 203 drivers/usb/gadget/function/u_uac1_legacy.c opts = container_of(card->func.fi, struct f_uac1_legacy_opts, card 210 drivers/usb/gadget/function/u_uac1_legacy.c snd = &card->control; card 214 drivers/usb/gadget/function/u_uac1_legacy.c ERROR(card, "unable to open sound control device file: %s\n", card 219 drivers/usb/gadget/function/u_uac1_legacy.c snd->card = card; card 222 drivers/usb/gadget/function/u_uac1_legacy.c snd = &card->playback; card 227 drivers/usb/gadget/function/u_uac1_legacy.c ERROR(card, "No such PCM playback device: %s\n", fn_play); card 233 drivers/usb/gadget/function/u_uac1_legacy.c snd->card = card; card 237 drivers/usb/gadget/function/u_uac1_legacy.c snd = &card->capture; card 240 drivers/usb/gadget/function/u_uac1_legacy.c ERROR(card, "No such PCM capture device: %s\n", fn_cap); card 242 drivers/usb/gadget/function/u_uac1_legacy.c snd->card = NULL; card 247 drivers/usb/gadget/function/u_uac1_legacy.c snd->card = card; card 285 drivers/usb/gadget/function/u_uac1_legacy.c int gaudio_setup(struct gaudio *card) card 289 drivers/usb/gadget/function/u_uac1_legacy.c ret = gaudio_open_snd_dev(card); card 291 drivers/usb/gadget/function/u_uac1_legacy.c ERROR(card, "we need at least one control device\n"); card 35 drivers/usb/gadget/function/u_uac1_legacy.h struct gaudio *card; card 72 drivers/usb/gadget/function/u_uac1_legacy.h int gaudio_setup(struct gaudio *card); card 75 drivers/usb/gadget/function/u_uac1_legacy.h size_t u_audio_playback(struct gaudio *card, void *buf, size_t count); card 76 drivers/usb/gadget/function/u_uac1_legacy.h int u_audio_get_playback_channels(struct gaudio *card); card 77 drivers/usb/gadget/function/u_uac1_legacy.h int u_audio_get_playback_rate(struct gaudio *card); card 71 drivers/usb/gadget/function/uvc_v4l2.c strlcpy(cap->card, cdev->gadget->name, sizeof(cap->card)); card 1093 drivers/video/fbdev/matrox/matroxfb_base.c strcpy(r.card, "Matrox"); card 433 include/linux/cper.h u16 card; card 453 include/linux/cper.h u16 card; card 473 include/linux/cper.h u16 card; card 122 include/linux/cyclades.h struct cyclades_card *card; card 139 include/linux/firewire.h static inline struct fw_card *fw_card_get(struct fw_card *card) card 141 include/linux/firewire.h kref_get(&card->kref); card 143 include/linux/firewire.h return card; card 148 include/linux/firewire.h static inline void fw_card_put(struct fw_card *card) card 150 include/linux/firewire.h kref_put(&card->kref, fw_card_release); card 189 include/linux/firewire.h struct fw_card *card; card 267 include/linux/firewire.h struct fw_card *card, int status); card 268 include/linux/firewire.h typedef void (*fw_transaction_callback_t)(struct fw_card *card, int rcode, card 283 include/linux/firewire.h typedef void (*fw_address_callback_t)(struct fw_card *card, card 320 include/linux/firewire.h struct fw_card *card; card 352 include/linux/firewire.h void fw_send_response(struct fw_card *card, card 355 include/linux/firewire.h void fw_send_request(struct fw_card *card, struct fw_transaction *t, card 359 include/linux/firewire.h int fw_cancel_transaction(struct fw_card *card, card 361 include/linux/firewire.h int fw_run_transaction(struct fw_card *card, int tcode, int destination_id, card 371 include/linux/firewire.h void fw_schedule_bus_reset(struct fw_card *card, bool delayed, card 428 include/linux/firewire.h int fw_iso_buffer_init(struct fw_iso_buffer *buffer, struct fw_card *card, card 430 include/linux/firewire.h void fw_iso_buffer_destroy(struct fw_iso_buffer *buffer, struct fw_card *card); card 440 include/linux/firewire.h struct fw_card *card; card 453 include/linux/firewire.h struct fw_iso_context *fw_iso_context_create(struct fw_card *card, card 467 include/linux/firewire.h void fw_iso_resource_manage(struct fw_card *card, int generation, card 81 include/linux/isapnp.h struct pnp_dev *pnp_find_dev(struct pnp_card *card, card 98 include/linux/isapnp.h static inline struct pnp_dev *pnp_find_dev(struct pnp_card *card, card 81 include/linux/isdn/capilli.h void capi_ctr_ready(struct capi_ctr * card); card 82 include/linux/isdn/capilli.h void capi_ctr_down(struct capi_ctr * card); card 83 include/linux/isdn/capilli.h void capi_ctr_suspend_output(struct capi_ctr * card); card 84 include/linux/isdn/capilli.h void capi_ctr_resume_output(struct capi_ctr * card); card 85 include/linux/isdn/capilli.h void capi_ctr_handle_message(struct capi_ctr * card, u16 appl, struct sk_buff *skb); card 259 include/linux/memstick.h int (*check)(struct memstick_dev *card); card 261 include/linux/memstick.h int (*next_request)(struct memstick_dev *card, card 264 include/linux/memstick.h void (*stop)(struct memstick_dev *card); card 266 include/linux/memstick.h void (*start)(struct memstick_dev *card); card 282 include/linux/memstick.h struct memstick_dev *card; card 296 include/linux/memstick.h int (*probe)(struct memstick_dev *card); card 297 include/linux/memstick.h void (*remove)(struct memstick_dev *card); card 298 include/linux/memstick.h int (*suspend)(struct memstick_dev *card, card 300 include/linux/memstick.h int (*resume)(struct memstick_dev *card); card 326 include/linux/memstick.h int memstick_set_rw_addr(struct memstick_dev *card); card 333 include/linux/memstick.h static inline void *memstick_get_drvdata(struct memstick_dev *card) card 335 include/linux/memstick.h return dev_get_drvdata(&card->dev); card 338 include/linux/memstick.h static inline void memstick_set_drvdata(struct memstick_dev *card, void *data) card 340 include/linux/memstick.h dev_set_drvdata(&card->dev, data); card 315 include/linux/mmc/card.h static inline bool mmc_large_sector(struct mmc_card *card) card 317 include/linux/mmc/card.h return card->ext_csd.data_sector_size == 4096; card 320 include/linux/mmc/card.h bool mmc_card_is_blockaddr(struct mmc_card *card); card 178 include/linux/mmc/core.h void mmc_set_data_timeout(struct mmc_data *data, const struct mmc_card *card); card 135 include/linux/mmc/host.h void (*init_card)(struct mmc_host *host, struct mmc_card *card); card 160 include/linux/mmc/host.h int (*select_drive_strength)(struct mmc_card *card, card 170 include/linux/mmc/host.h int (*multi_io_quirk)(struct mmc_card *card, card 176 include/linux/mmc/host.h int (*cqe_enable)(struct mmc_host *host, struct mmc_card *card); card 414 include/linux/mmc/host.h struct mmc_card *card; /* device attached to this host */ card 557 include/linux/mmc/host.h static inline int mmc_card_hs(struct mmc_card *card) card 559 include/linux/mmc/host.h return card->host->ios.timing == MMC_TIMING_SD_HS || card 560 include/linux/mmc/host.h card->host->ios.timing == MMC_TIMING_MMC_HS; card 564 include/linux/mmc/host.h static inline int mmc_card_uhs(struct mmc_card *card) card 566 include/linux/mmc/host.h return card->host->ios.timing >= MMC_TIMING_UHS_SDR12 && card 567 include/linux/mmc/host.h card->host->ios.timing <= MMC_TIMING_UHS_DDR50; card 35 include/linux/mmc/sdio_func.h struct mmc_card *card; /* the card this device belongs to */ card 71 include/linux/platform_data/hsmmc-omap.h void (*init_card)(struct mmc_card *card); card 98 include/linux/platform_data/mmc-omap.h void (*init_card)(struct mmc_card *card); card 223 include/linux/pnp.h #define pnp_for_each_card(card) \ card 224 include/linux/pnp.h list_for_each_entry(card, &pnp_cards, global_list) card 227 include/linux/pnp.h struct pnp_card *card; card 255 include/linux/pnp.h struct pnp_card *card; /* card the device is attached to, none if NULL */ card 278 include/linux/pnp.h #define card_for_each_dev(card, dev) \ card 279 include/linux/pnp.h list_for_each_entry(dev, &(card)->devices, card_list) card 362 include/linux/pnp.h #define isapnp_card_number(dev) ((dev)->card ? (dev)->card->number : -1) card 393 include/linux/pnp.h int (*probe) (struct pnp_card_link *card, card 395 include/linux/pnp.h void (*remove) (struct pnp_card_link *card); card 396 include/linux/pnp.h int (*suspend) (struct pnp_card_link *card, pm_message_t state); card 397 include/linux/pnp.h int (*resume) (struct pnp_card_link *card); card 433 include/linux/pnp.h #define protocol_for_each_card(protocol, card) \ card 434 include/linux/pnp.h list_for_each_entry(card, &(protocol)->cards, protocol_list) card 1072 include/linux/rtsx_pci.h int (*card_power_on)(struct rtsx_pcr *pcr, int card); card 1073 include/linux/rtsx_pci.h int (*card_power_off)(struct rtsx_pcr *pcr, int card); card 1306 include/linux/rtsx_pci.h int rtsx_pci_card_pull_ctl_enable(struct rtsx_pcr *pcr, int card); card 1307 include/linux/rtsx_pci.h int rtsx_pci_card_pull_ctl_disable(struct rtsx_pcr *pcr, int card); card 1310 include/linux/rtsx_pci.h int rtsx_pci_card_power_on(struct rtsx_pcr *pcr, int card); card 1311 include/linux/rtsx_pci.h int rtsx_pci_card_power_off(struct rtsx_pcr *pcr, int card); card 1312 include/linux/rtsx_pci.h int rtsx_pci_card_exclusive_check(struct rtsx_pcr *pcr, int card); card 91 include/linux/rtsx_usb.h extern int rtsx_usb_card_exclusive_check(struct rtsx_ucr *ucr, int card); card 54 include/media/drv-intf/tea575x.h u8 card[32]; card 141 include/pcmcia/cistpl.h u_short card; card 14 include/pcmcia/device_id.h #define PCMCIA_DEVICE_MANF_CARD(manf, card) { \ card 18 include/pcmcia/device_id.h .card_id = (card), } card 86 include/pcmcia/device_id.h #define PCMCIA_DEVICE_MANF_CARD_PROD_ID1(manf, card, v1, vh1) { \ card 91 include/pcmcia/device_id.h .card_id = (card), \ card 95 include/pcmcia/device_id.h #define PCMCIA_DEVICE_MANF_CARD_PROD_ID3(manf, card, v3, vh3) { \ card 100 include/pcmcia/device_id.h .card_id = (card), \ card 107 include/pcmcia/device_id.h #define PCMCIA_MFC_DEVICE_MANF_CARD(mfc, manf, card) { \ card 112 include/pcmcia/device_id.h .card_id = (card), \ card 156 include/pcmcia/device_id.h #define PCMCIA_PFC_DEVICE_MANF_CARD(mfc, manf, card) { \ card 161 include/pcmcia/device_id.h .card_id = (card), \ card 205 include/pcmcia/device_id.h #define PCMCIA_DEVICE_CIS_MANF_CARD(manf, card, _cisfile) { \ card 210 include/pcmcia/device_id.h .card_id = (card), \ card 248 include/pcmcia/device_id.h #define PCMCIA_MFC_DEVICE_CIS_MANF_CARD(mfc, manf, card, _cisfile) { \ card 254 include/pcmcia/device_id.h .card_id = (card), \ card 204 include/sound/ac97_codec.h struct snd_card *card; card 313 include/sound/ac97_codec.h int snd_ac97_bus(struct snd_card *card, int num, struct snd_ac97_bus_ops *ops, card 129 include/sound/ad1816a.h struct snd_card *card; card 157 include/sound/ad1816a.h extern int snd_ad1816a_create(struct snd_card *card, unsigned long port, card 278 include/sound/ak4113.h struct snd_card *card; card 299 include/sound/ak4113.h int snd_ak4113_create(struct snd_card *card, ak4113_read_t *read, card 160 include/sound/ak4114.h struct snd_card *card; card 181 include/sound/ak4114.h int snd_ak4114_create(struct snd_card *card, card 152 include/sound/ak4117.h struct snd_card *card; card 170 include/sound/ak4117.h int snd_ak4117_create(struct snd_card *card, ak4117_read_t *read, ak4117_write_t *write, card 62 include/sound/ak4531_codec.h int snd_ak4531_mixer(struct snd_card *card, struct snd_ak4531 *_ak4531, card 45 include/sound/ak4xxx-adda.h struct snd_card *card; card 140 include/sound/compress_driver.h struct snd_card *card; card 155 include/sound/compress_driver.h int snd_compress_new(struct snd_card *card, int device, card 91 include/sound/control.h struct snd_card *card; card 103 include/sound/control.h typedef int (*snd_kctl_ioctl_func_t) (struct snd_card * card, card 107 include/sound/control.h void snd_ctl_notify(struct snd_card * card, unsigned int mask, struct snd_ctl_elem_id * id); card 111 include/sound/control.h int snd_ctl_add(struct snd_card * card, struct snd_kcontrol * kcontrol); card 112 include/sound/control.h int snd_ctl_remove(struct snd_card * card, struct snd_kcontrol * kcontrol); card 113 include/sound/control.h int snd_ctl_replace(struct snd_card *card, struct snd_kcontrol *kcontrol, bool add_on_replace); card 114 include/sound/control.h int snd_ctl_remove_id(struct snd_card * card, struct snd_ctl_elem_id *id); card 115 include/sound/control.h int snd_ctl_rename_id(struct snd_card * card, struct snd_ctl_elem_id *src_id, struct snd_ctl_elem_id *dst_id); card 116 include/sound/control.h int snd_ctl_activate_id(struct snd_card *card, struct snd_ctl_elem_id *id, card 118 include/sound/control.h struct snd_kcontrol *snd_ctl_find_numid(struct snd_card * card, unsigned int numid); card 119 include/sound/control.h struct snd_kcontrol *snd_ctl_find_id(struct snd_card * card, struct snd_ctl_elem_id *id); card 121 include/sound/control.h int snd_ctl_create(struct snd_card *card); card 133 include/sound/control.h int snd_ctl_get_preferred_subdevice(struct snd_card *card, int type); card 249 include/sound/control.h snd_kctl_jack_new(const char *name, struct snd_card *card); card 250 include/sound/control.h void snd_kctl_jack_report(struct snd_card *card, card 68 include/sound/core.h struct snd_card *card; /* card which holds this device */ card 94 include/sound/core.h void (*private_free) (struct snd_card *card); /* callback for freeing of card 136 include/sound/core.h static inline unsigned int snd_power_get_state(struct snd_card *card) card 138 include/sound/core.h return card->power_state; card 141 include/sound/core.h static inline void snd_power_change_state(struct snd_card *card, unsigned int state) card 143 include/sound/core.h card->power_state = state; card 144 include/sound/core.h wake_up(&card->power_sleep); card 148 include/sound/core.h int snd_power_wait(struct snd_card *card, unsigned int power_state); card 152 include/sound/core.h static inline int snd_power_wait(struct snd_card *card, unsigned int state) { return 0; } card 153 include/sound/core.h #define snd_power_get_state(card) ({ (void)(card); SNDRV_CTL_POWER_D0; }) card 154 include/sound/core.h #define snd_power_change_state(card, state) do { (void)(card); } while (0) card 160 include/sound/core.h int card; /* card number */ card 169 include/sound/core.h static inline struct device *snd_card_get_device_link(struct snd_card *card) card 171 include/sound/core.h return card ? &card->card_dev : NULL; card 180 include/sound/core.h void snd_request_card(int card); card 182 include/sound/core.h void snd_device_initialize(struct device *dev, struct snd_card *card); card 184 include/sound/core.h int snd_register_device(int type, struct snd_card *card, int dev, card 191 include/sound/core.h int snd_register_oss_device(int type, struct snd_card *card, int dev, card 193 include/sound/core.h int snd_unregister_oss_device(int type, struct snd_card *card, int dev); card 214 include/sound/core.h int snd_card_locked(int card); card 219 include/sound/core.h extern int (*snd_mixer_oss_notify_callback)(struct snd_card *card, int cmd); card 226 include/sound/core.h int snd_card_disconnect(struct snd_card *card); card 227 include/sound/core.h void snd_card_disconnect_sync(struct snd_card *card); card 228 include/sound/core.h int snd_card_free(struct snd_card *card); card 229 include/sound/core.h int snd_card_free_when_closed(struct snd_card *card); card 230 include/sound/core.h void snd_card_set_id(struct snd_card *card, const char *id); card 231 include/sound/core.h int snd_card_register(struct snd_card *card); card 233 include/sound/core.h int snd_card_add_dev_attr(struct snd_card *card, card 235 include/sound/core.h int snd_component_add(struct snd_card *card, const char *component); card 236 include/sound/core.h int snd_card_file_add(struct snd_card *card, struct file *file); card 237 include/sound/core.h int snd_card_file_remove(struct snd_card *card, struct file *file); card 239 include/sound/core.h struct snd_card *snd_card_ref(int card); card 248 include/sound/core.h static inline void snd_card_unref(struct snd_card *card) card 250 include/sound/core.h put_device(&card->card_dev); card 253 include/sound/core.h #define snd_card_set_dev(card, devptr) ((card)->dev = (devptr)) card 257 include/sound/core.h int snd_device_new(struct snd_card *card, enum snd_device_type type, card 259 include/sound/core.h int snd_device_register(struct snd_card *card, void *device_data); card 260 include/sound/core.h int snd_device_register_all(struct snd_card *card); card 261 include/sound/core.h void snd_device_disconnect(struct snd_card *card, void *device_data); card 262 include/sound/core.h void snd_device_disconnect_all(struct snd_card *card); card 263 include/sound/core.h void snd_device_free(struct snd_card *card, void *device_data); card 264 include/sound/core.h void snd_device_free_all(struct snd_card *card); card 1724 include/sound/emu10k1.h struct snd_card *card; card 1793 include/sound/emu10k1.h int snd_emu10k1_create(struct snd_card *card, card 67 include/sound/emu8000.h struct snd_card *card; /* The card that this belongs to */ card 88 include/sound/emu8000.h int snd_emu8000_new(struct snd_card *card, int device, long port, int seq_ports, card 79 include/sound/emux_synth.h struct snd_card *card; /* assigned card */ card 219 include/sound/emux_synth.h int snd_emux_register(struct snd_emux *emu, struct snd_card *card, int index, char *name); card 95 include/sound/es1688.h int snd_es1688_create(struct snd_card *card, card 103 include/sound/es1688.h int snd_es1688_pcm(struct snd_card *card, struct snd_es1688 *chip, int device); card 104 include/sound/es1688.h int snd_es1688_mixer(struct snd_card *card, struct snd_es1688 *chip); card 390 include/sound/gus.h struct snd_card *card; card 589 include/sound/gus.h int snd_gus_create(struct snd_card *card, card 43 include/sound/hda_codec.h struct snd_card *card; card 179 include/sound/hda_codec.h struct snd_card *card; card 302 include/sound/hda_codec.h int snd_hda_codec_new(struct hda_bus *bus, struct snd_card *card, card 304 include/sound/hda_codec.h int snd_hda_codec_device_new(struct hda_bus *bus, struct snd_card *card, card 40 include/sound/hwdep.h struct snd_card *card; card 64 include/sound/hwdep.h extern int snd_hwdep_new(struct snd_card *card, char *id, int device, card 39 include/sound/i2c.h struct snd_card *card; /* card which I2C belongs to */ card 62 include/sound/i2c.h int snd_i2c_bus_create(struct snd_card *card, const char *name, card 117 include/sound/info.h struct snd_info_entry *snd_info_create_card_entry(struct snd_card *card, card 124 include/sound/info.h int snd_info_card_create(struct snd_card *card); card 125 include/sound/info.h int snd_info_card_register(struct snd_card *card); card 126 include/sound/info.h int snd_info_card_free(struct snd_card *card); card 127 include/sound/info.h void snd_info_card_disconnect(struct snd_card *card); card 128 include/sound/info.h void snd_info_card_id_change(struct snd_card *card); card 132 include/sound/info.h static inline int snd_card_proc_new(struct snd_card *card, const char *name, card 135 include/sound/info.h *entryp = snd_info_create_card_entry(card, name, card->proc_root); card 147 include/sound/info.h int snd_card_rw_proc_new(struct snd_card *card, const char *name, card 168 include/sound/info.h static inline struct snd_info_entry *snd_info_create_card_entry(struct snd_card *card, const char *name, struct snd_info_entry *parent) { return NULL; } card 171 include/sound/info.h static inline int snd_info_card_create(struct snd_card *card) { return 0; } card 172 include/sound/info.h static inline int snd_info_card_register(struct snd_card *card) { return 0; } card 173 include/sound/info.h static inline int snd_info_card_free(struct snd_card *card) { return 0; } card 174 include/sound/info.h static inline void snd_info_card_disconnect(struct snd_card *card) { } card 175 include/sound/info.h static inline void snd_info_card_id_change(struct snd_card *card) { } card 178 include/sound/info.h static inline int snd_card_proc_new(struct snd_card *card, const char *name, card 183 include/sound/info.h static inline int snd_card_rw_proc_new(struct snd_card *card, const char *name, card 207 include/sound/info.h snd_card_ro_proc_new(struct snd_card *card, const char *name, card 212 include/sound/info.h return snd_card_rw_proc_new(card, name, private_data, read, NULL); card 61 include/sound/jack.h struct snd_card *card; card 76 include/sound/jack.h int snd_jack_new(struct snd_card *card, const char *id, int type, card 87 include/sound/jack.h static inline int snd_jack_new(struct snd_card *card, const char *id, int type, card 14 include/sound/minors.h #define SNDRV_MINOR(card, dev) (((card) << 5) | (dev)) card 64 include/sound/minors.h #define SNDRV_MINOR_OSS(card, dev) (((card) << 4) | (dev)) card 38 include/sound/mixer_oss.h struct snd_card *card; card 57 include/sound/mixer_oss.h struct snd_card *card; card 61 include/sound/mixer_oss.h int snd_mixer_oss_ioctl_card(struct snd_card *card, card 115 include/sound/mpu401.h int snd_mpu401_uart_new(struct snd_card *card, card 302 include/sound/opl3.h struct snd_card *card; /* The card that this belongs to */ card 339 include/sound/opl3.h int snd_opl3_new(struct snd_card *card, unsigned short hardware, card 342 include/sound/opl3.h int snd_opl3_create(struct snd_card *card, card 14 include/sound/opl4.h extern int snd_opl4_create(struct snd_card *card, card 505 include/sound/pcm.h struct snd_card *card; card 532 include/sound/pcm.h int snd_pcm_new(struct snd_card *card, const char *id, int device, card 535 include/sound/pcm.h int snd_pcm_new_internal(struct snd_card *card, const char *id, int device, card 1419 include/sound/pcm.h dev_err((pcm)->card->dev, fmt, ##args) card 1421 include/sound/pcm.h dev_warn((pcm)->card->dev, fmt, ##args) card 1423 include/sound/pcm.h dev_dbg((pcm)->card->dev, fmt, ##args) card 12 include/sound/pt2258.h struct snd_card *card; card 108 include/sound/rawmidi.h struct snd_card *card; card 140 include/sound/rawmidi.h int snd_rawmidi_new(struct snd_card *card, char *id, int device, card 164 include/sound/rawmidi.h int snd_rawmidi_info_select(struct snd_card *card, struct snd_rawmidi_info *info); card 165 include/sound/rawmidi.h int snd_rawmidi_kernel_open(struct snd_card *card, int device, int subdevice, card 82 include/sound/sb.h struct snd_card *card; card 279 include/sound/sb.h int snd_sbdsp_create(struct snd_card *card, card 16 include/sound/seq_device.h struct snd_card *card; /* sound card */ card 62 include/sound/seq_device.h int snd_seq_device_new(struct snd_card *card, int device, const char *id, card 58 include/sound/seq_kernel.h int snd_seq_create_kernel_client(struct snd_card *card, int client_index, card 42 include/sound/seq_virmidi.h struct snd_card *card; /* associated card */ card 67 include/sound/seq_virmidi.h int snd_virmidi_new(struct snd_card *card, int device, struct snd_rawmidi **rrmidi); card 17 include/sound/simple_card.h const char *card; card 14 include/sound/simple_card_utils.h #define asoc_simple_init_hp(card, sjack, prefix) \ card 15 include/sound/simple_card_utils.h asoc_simple_init_jack(card, sjack, 1, prefix) card 16 include/sound/simple_card_utils.h #define asoc_simple_init_mic(card, sjack, prefix) \ card 17 include/sound/simple_card_utils.h asoc_simple_init_jack(card, sjack, 0, prefix) card 81 include/sound/simple_card_utils.h int asoc_simple_parse_card_name(struct snd_soc_card *card, card 117 include/sound/simple_card_utils.h int asoc_simple_clean_reference(struct snd_soc_card *card); card 125 include/sound/simple_card_utils.h int asoc_simple_parse_routing(struct snd_soc_card *card, card 127 include/sound/simple_card_utils.h int asoc_simple_parse_widgets(struct snd_soc_card *card, card 129 include/sound/simple_card_utils.h int asoc_simple_parse_pin_switches(struct snd_soc_card *card, card 132 include/sound/simple_card_utils.h int asoc_simple_init_jack(struct snd_soc_card *card, card 173 include/sound/simple_card_utils.h struct snd_soc_card *card = simple_priv_to_card(priv); card 178 include/sound/simple_card_utils.h if (card->name) card 179 include/sound/simple_card_utils.h dev_dbg(dev, "Card Name: %s\n", card->name); card 181 include/sound/simple_card_utils.h for (i = 0; i < card->num_links; i++) { card 99 include/sound/snd_wavefront.h struct snd_card *card; card 112 include/sound/snd_wavefront.h extern void snd_wavefront_internal_interrupt (snd_wavefront_card_t *card); card 117 include/sound/snd_wavefront.h extern int snd_wavefront_detect (snd_wavefront_card_t *card); card 113 include/sound/soc-component.h struct snd_soc_card *card; card 412 include/sound/soc-dapm.h int snd_soc_dapm_link_dai_widgets(struct snd_soc_card *card); card 413 include/sound/soc-dapm.h void snd_soc_dapm_connect_dai_link_widgets(struct snd_soc_card *card); card 420 include/sound/soc-dapm.h int snd_soc_dapm_new_widgets(struct snd_soc_card *card); card 423 include/sound/soc-dapm.h struct snd_soc_card *card, card 437 include/sound/soc-dapm.h void snd_soc_dapm_shutdown(struct snd_soc_card *card); card 477 include/sound/soc-dapm.h void dapm_mark_endpoints_dirty(struct snd_soc_card *card); card 673 include/sound/soc-dapm.h struct snd_soc_card *card; /* parent card */ card 416 include/sound/soc.h int snd_soc_register_card(struct snd_soc_card *card); card 417 include/sound/soc.h int snd_soc_unregister_card(struct snd_soc_card *card); card 418 include/sound/soc.h int devm_snd_soc_register_card(struct device *dev, struct snd_soc_card *card); card 461 include/sound/soc.h struct snd_pcm_substream *snd_soc_get_dai_substream(struct snd_soc_card *card, card 463 include/sound/soc.h struct snd_soc_pcm_runtime *snd_soc_get_pcm_runtime(struct snd_soc_card *card, card 474 include/sound/soc.h int snd_soc_set_dmi_name(struct snd_soc_card *card, const char *flavour); card 476 include/sound/soc.h static inline int snd_soc_set_dmi_name(struct snd_soc_card *card, card 494 include/sound/soc.h int snd_soc_card_jack_new(struct snd_soc_card *card, const char *id, int type, card 602 include/sound/soc.h int snd_soc_limit_volume(struct snd_soc_card *card, card 699 include/sound/soc.h struct snd_soc_card *card; card 1000 include/sound/soc.h int (*probe)(struct snd_soc_card *card); card 1001 include/sound/soc.h int (*late_probe)(struct snd_soc_card *card); card 1002 include/sound/soc.h int (*remove)(struct snd_soc_card *card); card 1006 include/sound/soc.h int (*suspend_pre)(struct snd_soc_card *card); card 1007 include/sound/soc.h int (*suspend_post)(struct snd_soc_card *card); card 1008 include/sound/soc.h int (*resume_pre)(struct snd_soc_card *card); card 1009 include/sound/soc.h int (*resume_post)(struct snd_soc_card *card); card 1091 include/sound/soc.h #define for_each_card_prelinks(card, i, link) \ card 1093 include/sound/soc.h ((i) < (card)->num_links) && ((link) = &(card)->dai_link[i]); \ card 1095 include/sound/soc.h #define for_each_card_pre_auxs(card, i, aux) \ card 1097 include/sound/soc.h ((i) < (card)->num_aux_devs) && ((aux) = &(card)->aux_dev[i]); \ card 1100 include/sound/soc.h #define for_each_card_links(card, link) \ card 1101 include/sound/soc.h list_for_each_entry(link, &(card)->dai_link_list, list) card 1102 include/sound/soc.h #define for_each_card_links_safe(card, link, _link) \ card 1103 include/sound/soc.h list_for_each_entry_safe(link, _link, &(card)->dai_link_list, list) card 1105 include/sound/soc.h #define for_each_card_rtds(card, rtd) \ card 1106 include/sound/soc.h list_for_each_entry(rtd, &(card)->rtd_list, list) card 1107 include/sound/soc.h #define for_each_card_rtds_safe(card, rtd, _rtd) \ card 1108 include/sound/soc.h list_for_each_entry_safe(rtd, _rtd, &(card)->rtd_list, list) card 1110 include/sound/soc.h #define for_each_card_auxs(card, component) \ card 1111 include/sound/soc.h list_for_each_entry(component, &card->aux_comp_list, card_aux_list) card 1112 include/sound/soc.h #define for_each_card_auxs_safe(card, component, _comp) \ card 1114 include/sound/soc.h &card->aux_comp_list, card_aux_list) card 1116 include/sound/soc.h #define for_each_card_components(card, component) \ card 1117 include/sound/soc.h list_for_each_entry(component, &(card)->component_dev_list, card_list) card 1122 include/sound/soc.h struct snd_soc_card *card; card 1213 include/sound/soc.h static inline void snd_soc_card_set_drvdata(struct snd_soc_card *card, card 1216 include/sound/soc.h card->drvdata = data; card 1219 include/sound/soc.h static inline void *snd_soc_card_get_drvdata(struct snd_soc_card *card) card 1221 include/sound/soc.h return card->drvdata; card 1279 include/sound/soc.h int snd_soc_of_parse_card_name(struct snd_soc_card *card, card 1281 include/sound/soc.h int snd_soc_of_parse_audio_simple_widgets(struct snd_soc_card *card, card 1296 include/sound/soc.h void snd_soc_of_parse_audio_prefix(struct snd_soc_card *card, card 1301 include/sound/soc.h snd_soc_of_parse_node_prefix(card->dev->of_node, card 1305 include/sound/soc.h int snd_soc_of_parse_audio_routing(struct snd_soc_card *card, card 1321 include/sound/soc.h int snd_soc_add_dai_link(struct snd_soc_card *card, card 1323 include/sound/soc.h void snd_soc_remove_dai_link(struct snd_soc_card *card, card 1325 include/sound/soc.h struct snd_soc_dai_link *snd_soc_find_dai_link(struct snd_soc_card *card, card 1338 include/sound/soc.h struct snd_soc_dai *snd_soc_card_get_codec_dai(struct snd_soc_card *card, card 1343 include/sound/soc.h list_for_each_entry(rtd, &card->rtd_list, list) { card 1352 include/sound/soc.h int snd_soc_fixup_dai_links_platform_name(struct snd_soc_card *card, card 1363 include/sound/soc.h for_each_card_prelinks(card, i, dai_link) { card 1364 include/sound/soc.h name = devm_kstrdup(card->dev, platform_name, GFP_KERNEL); card 1387 include/sound/soc.h mutex_lock_nested(&dapm->card->dapm_mutex, SND_SOC_DAPM_CLASS_RUNTIME); card 1392 include/sound/soc.h mutex_unlock(&dapm->card->dapm_mutex); card 13 include/sound/tea6330t.h int snd_tea6330t_update_mixer(struct snd_card *card, struct snd_i2c_bus *bus, card 59 include/sound/timer.h struct snd_card *card; card 115 include/sound/timer.h int snd_timer_new(struct snd_card *card, char *id, struct snd_timer_id *tid, struct snd_timer **rtimer); card 142 include/sound/vx_core.h struct snd_card *card; card 196 include/sound/vx_core.h struct vx_core *snd_vx_create(struct snd_card *card, struct snd_vx_hardware *hw, card 322 include/sound/vx_core.h int snd_vx_suspend(struct vx_core *card); card 323 include/sound/vx_core.h int snd_vx_resume(struct vx_core *card); card 81 include/sound/wss.h struct snd_card *card; card 135 include/sound/wss.h int snd_wss_create(struct snd_card *card, card 148 include/sound/wss.h int snd_cs4236_create(struct snd_card *card, card 21 include/trace/events/asoc.h TP_PROTO(struct snd_soc_card *card, int val), card 23 include/trace/events/asoc.h TP_ARGS(card, val), card 26 include/trace/events/asoc.h __string( name, card->name ) card 31 include/trace/events/asoc.h __assign_str(name, card->name); card 40 include/trace/events/asoc.h TP_PROTO(struct snd_soc_card *card, int val), card 42 include/trace/events/asoc.h TP_ARGS(card, val) card 48 include/trace/events/asoc.h TP_PROTO(struct snd_soc_card *card, int val), card 50 include/trace/events/asoc.h TP_ARGS(card, val) card 56 include/trace/events/asoc.h TP_PROTO(struct snd_soc_card *card), card 58 include/trace/events/asoc.h TP_ARGS(card), card 61 include/trace/events/asoc.h __string( name, card->name ) card 65 include/trace/events/asoc.h __assign_str(name, card->name); card 73 include/trace/events/asoc.h TP_PROTO(struct snd_soc_card *card), card 75 include/trace/events/asoc.h TP_ARGS(card) card 81 include/trace/events/asoc.h TP_PROTO(struct snd_soc_card *card), card 83 include/trace/events/asoc.h TP_ARGS(card) card 133 include/trace/events/asoc.h TP_PROTO(struct snd_soc_card *card), card 135 include/trace/events/asoc.h TP_ARGS(card), card 138 include/trace/events/asoc.h __string( name, card->name ) card 145 include/trace/events/asoc.h __assign_str(name, card->name); card 146 include/trace/events/asoc.h __entry->power_checks = card->dapm_stats.power_checks; card 147 include/trace/events/asoc.h __entry->path_checks = card->dapm_stats.path_checks; card 148 include/trace/events/asoc.h __entry->neighbour_checks = card->dapm_stats.neighbour_checks; card 204 include/uapi/linux/firewire-cdev.h __u32 card; card 493 include/uapi/linux/firewire-cdev.h __u32 card; card 183 include/uapi/linux/media.h __u32 card; card 438 include/uapi/linux/videodev2.h __u8 card[32]; card 361 include/uapi/sound/asequencer.h int card; /* RO: card number[kernel] */ card 121 include/uapi/sound/asound.h int card; /* R: card number */ card 334 include/uapi/sound/asound.h int card; /* R: card number */ card 633 include/uapi/sound/asound.h int card; /* R: card number */ card 702 include/uapi/sound/asound.h int card; card 710 include/uapi/sound/asound.h int card; /* card number */ card 743 include/uapi/sound/asound.h int card; /* card number */ card 828 include/uapi/sound/asound.h int card; /* card number */ card 95 include/uapi/sound/firewire.h unsigned int card; /* same as fw_cdev_get_info.card */ card 307 samples/v4l/v4l2-pci-skeleton.c strlcpy(cap->card, "V4L2 PCI Skeleton", sizeof(cap->card)); card 64 sound/aoa/core/alsa.c struct snd_card *card = aoa_get_card(); card 67 sound/aoa/core/alsa.c if (!card) return -ENOMEM; card 69 sound/aoa/core/alsa.c err = snd_device_new(card, type, device_data, ops); card 74 sound/aoa/core/alsa.c err = snd_device_register(card, device_data); card 80 sound/aoa/core/alsa.c snd_device_free(card, device_data); card 856 sound/aoa/fabrics/layout.c struct snd_card *card = aoa_get_card(); card 881 sound/aoa/fabrics/layout.c snd_ctl_notify(card, SNDRV_CTL_EVENT_MASK_VALUE, &detected->id); card 885 sound/aoa/fabrics/layout.c snd_ctl_notify(card, SNDRV_CTL_EVENT_MASK_VALUE, &c->id); card 888 sound/aoa/fabrics/layout.c snd_ctl_notify(card, SNDRV_CTL_EVENT_MASK_VALUE, &c->id); card 891 sound/aoa/fabrics/layout.c snd_ctl_notify(card, SNDRV_CTL_EVENT_MASK_VALUE, &c->id); card 97 sound/aoa/soundbus/i2sbus/i2sbus.h i2sbus_attach_codec(struct soundbus_dev *dev, struct snd_card *card, card 880 sound/aoa/soundbus/i2sbus/pcm.c i2sbus_attach_codec(struct soundbus_dev *dev, struct snd_card *card, card 964 sound/aoa/soundbus/i2sbus/pcm.c err = snd_pcm_new(card, dev->pcmname, dev->pcmid, 0, 0, card 977 sound/aoa/soundbus/i2sbus/pcm.c if (dev->pcm->card != card) { card 995 sound/aoa/soundbus/i2sbus/pcm.c if (dev->pcm->card != card) { card 1017 sound/aoa/soundbus/i2sbus/pcm.c err = snd_device_register(card, dev->pcm); card 1064 sound/aoa/soundbus/i2sbus/pcm.c snd_device_free(dev->pcm->card, dev->pcm); card 163 sound/aoa/soundbus/soundbus.h int (*attach_codec)(struct soundbus_dev *dev, struct snd_card *card, card 753 sound/arm/aaci.c static int aaci_do_suspend(struct snd_card *card) card 755 sound/arm/aaci.c struct aaci *aaci = card->private_data; card 756 sound/arm/aaci.c snd_power_change_state(card, SNDRV_CTL_POWER_D3cold); card 760 sound/arm/aaci.c static int aaci_do_resume(struct snd_card *card) card 762 sound/arm/aaci.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 768 sound/arm/aaci.c struct snd_card *card = dev_get_drvdata(dev); card 769 sound/arm/aaci.c return card ? aaci_do_suspend(card) : 0; card 774 sound/arm/aaci.c struct snd_card *card = dev_get_drvdata(dev); card 775 sound/arm/aaci.c return card ? aaci_do_resume(card) : 0; card 851 sound/arm/aaci.c ret = snd_ac97_bus(aaci->card, 0, &aaci_bus_ops, aaci, &ac97_bus); card 885 sound/arm/aaci.c static void aaci_free_card(struct snd_card *card) card 887 sound/arm/aaci.c struct aaci *aaci = card->private_data; card 895 sound/arm/aaci.c struct snd_card *card; card 899 sound/arm/aaci.c THIS_MODULE, sizeof(struct aaci), &card); card 903 sound/arm/aaci.c card->private_free = aaci_free_card; card 905 sound/arm/aaci.c strlcpy(card->driver, DRIVER_NAME, sizeof(card->driver)); card 906 sound/arm/aaci.c strlcpy(card->shortname, "ARM AC'97 Interface", sizeof(card->shortname)); card 907 sound/arm/aaci.c snprintf(card->longname, sizeof(card->longname), card 909 sound/arm/aaci.c card->shortname, amba_part(dev), amba_rev(dev), card 912 sound/arm/aaci.c aaci = card->private_data; card 915 sound/arm/aaci.c aaci->card = card; card 930 sound/arm/aaci.c ret = snd_pcm_new(aaci->card, "AACI AC'97", 0, 1, 1, &pcm); card 941 sound/arm/aaci.c aaci->card->dev, card 1055 sound/arm/aaci.c ret = snd_card_register(aaci->card); card 1057 sound/arm/aaci.c dev_info(&dev->dev, "%s\n", aaci->card->longname); card 1059 sound/arm/aaci.c amba_set_drvdata(dev, aaci->card); card 1065 sound/arm/aaci.c snd_card_free(aaci->card); card 1072 sound/arm/aaci.c struct snd_card *card = amba_get_drvdata(dev); card 1074 sound/arm/aaci.c if (card) { card 1075 sound/arm/aaci.c struct aaci *aaci = card->private_data; card 1078 sound/arm/aaci.c snd_card_free(card); card 224 sound/arm/aaci.h struct snd_card *card; card 82 sound/arm/pxa2xx-ac97.c platform_ops = substream->pcm->card->dev->platform_data; card 96 sound/arm/pxa2xx-ac97.c platform_ops = substream->pcm->card->dev->platform_data; card 119 sound/arm/pxa2xx-ac97.c static int pxa2xx_ac97_do_suspend(struct snd_card *card) card 121 sound/arm/pxa2xx-ac97.c pxa2xx_audio_ops_t *platform_ops = card->dev->platform_data; card 123 sound/arm/pxa2xx-ac97.c snd_power_change_state(card, SNDRV_CTL_POWER_D3cold); card 131 sound/arm/pxa2xx-ac97.c static int pxa2xx_ac97_do_resume(struct snd_card *card) card 133 sound/arm/pxa2xx-ac97.c pxa2xx_audio_ops_t *platform_ops = card->dev->platform_data; card 143 sound/arm/pxa2xx-ac97.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 150 sound/arm/pxa2xx-ac97.c struct snd_card *card = dev_get_drvdata(dev); card 153 sound/arm/pxa2xx-ac97.c if (card) card 154 sound/arm/pxa2xx-ac97.c ret = pxa2xx_ac97_do_suspend(card); card 161 sound/arm/pxa2xx-ac97.c struct snd_card *card = dev_get_drvdata(dev); card 164 sound/arm/pxa2xx-ac97.c if (card) card 165 sound/arm/pxa2xx-ac97.c ret = pxa2xx_ac97_do_resume(card); card 186 sound/arm/pxa2xx-ac97.c static int pxa2xx_ac97_pcm_new(struct snd_card *card) card 191 sound/arm/pxa2xx-ac97.c ret = snd_pcm_new(card, "PXA2xx-PCM", 0, 1, 1, &pcm); card 197 sound/arm/pxa2xx-ac97.c ret = dma_coerce_mask_and_coherent(card->dev, DMA_BIT_MASK(32)); card 222 sound/arm/pxa2xx-ac97.c struct snd_card *card; card 235 sound/arm/pxa2xx-ac97.c THIS_MODULE, 0, &card); card 239 sound/arm/pxa2xx-ac97.c strlcpy(card->driver, dev->dev.driver->name, sizeof(card->driver)); card 241 sound/arm/pxa2xx-ac97.c ret = pxa2xx_ac97_pcm_new(card); card 249 sound/arm/pxa2xx-ac97.c ret = snd_ac97_bus(card, 0, &pxa2xx_ac97_ops, NULL, &ac97_bus); card 257 sound/arm/pxa2xx-ac97.c snprintf(card->shortname, sizeof(card->shortname), card 259 sound/arm/pxa2xx-ac97.c snprintf(card->longname, sizeof(card->longname), card 260 sound/arm/pxa2xx-ac97.c "%s (%s)", dev->dev.driver->name, card->mixername); card 264 sound/arm/pxa2xx-ac97.c ret = snd_card_register(card); card 266 sound/arm/pxa2xx-ac97.c platform_set_drvdata(dev, card); card 273 sound/arm/pxa2xx-ac97.c if (card) card 274 sound/arm/pxa2xx-ac97.c snd_card_free(card); card 281 sound/arm/pxa2xx-ac97.c struct snd_card *card = platform_get_drvdata(dev); card 283 sound/arm/pxa2xx-ac97.c if (card) { card 284 sound/arm/pxa2xx-ac97.c snd_card_free(card); card 138 sound/arm/pxa2xx-pcm-lib.c return dma_mmap_wc(substream->pcm->card->dev, vma, runtime->dma_area, card 149 sound/arm/pxa2xx-pcm-lib.c buf->dev.dev = pcm->card->dev; card 151 sound/arm/pxa2xx-pcm-lib.c buf->area = dma_alloc_wc(pcm->card->dev, size, &buf->addr, GFP_KERNEL); card 172 sound/arm/pxa2xx-pcm-lib.c dma_free_wc(pcm->card->dev, buf->bytes, buf->area, buf->addr); card 180 sound/arm/pxa2xx-pcm-lib.c struct snd_card *card = rtd->card->snd_card; card 184 sound/arm/pxa2xx-pcm-lib.c ret = dma_coerce_mask_and_coherent(card->dev, DMA_BIT_MASK(32)); card 41 sound/atmel/ac97c.c struct snd_card *card; card 57 sound/atmel/ac97c.c #define get_chip(card) ((struct atmel_ac97c *)(card)->private_data) card 596 sound/atmel/ac97c.c retval = snd_pcm_new(chip->card, chip->card->shortname, 0, 1, 1, &pcm); card 609 sound/atmel/ac97c.c strcpy(pcm->name, chip->card->shortname); card 717 sound/atmel/ac97c.c struct snd_card *card; card 751 sound/atmel/ac97c.c sizeof(struct atmel_ac97c), &card); card 757 sound/atmel/ac97c.c chip = get_chip(card); card 768 sound/atmel/ac97c.c strcpy(card->driver, "Atmel AC97C"); card 769 sound/atmel/ac97c.c strcpy(card->shortname, "Atmel AC97C"); card 770 sound/atmel/ac97c.c sprintf(card->longname, "Atmel AC97 controller"); card 772 sound/atmel/ac97c.c chip->card = card; card 793 sound/atmel/ac97c.c retval = snd_ac97_bus(card, 0, &ops, chip, &chip->ac97_bus); card 811 sound/atmel/ac97c.c retval = snd_card_register(card); card 817 sound/atmel/ac97c.c platform_set_drvdata(pdev, card); card 829 sound/atmel/ac97c.c snd_card_free(card); card 840 sound/atmel/ac97c.c struct snd_card *card = dev_get_drvdata(pdev); card 841 sound/atmel/ac97c.c struct atmel_ac97c *chip = card->private_data; card 849 sound/atmel/ac97c.c struct snd_card *card = dev_get_drvdata(pdev); card 850 sound/atmel/ac97c.c struct atmel_ac97c *chip = card->private_data; card 864 sound/atmel/ac97c.c struct snd_card *card = platform_get_drvdata(pdev); card 865 sound/atmel/ac97c.c struct atmel_ac97c *chip = get_chip(card); card 876 sound/atmel/ac97c.c snd_card_free(card); card 106 sound/core/compress_offload.c snd_card_unref(compr->card); card 112 sound/core/compress_offload.c snd_card_unref(compr->card); card 125 sound/core/compress_offload.c snd_card_unref(compr->card); card 139 sound/core/compress_offload.c snd_card_unref(compr->card); card 999 sound/core/compress_offload.c compr->card, compr->device, card 1024 sound/core/compress_offload.c snd_iprintf(buffer, "card: %d\n", compr->card->number); card 1038 sound/core/compress_offload.c entry = snd_info_create_card_entry(compr->card, name, card 1039 sound/core/compress_offload.c compr->card->proc_root); card 1045 sound/core/compress_offload.c entry = snd_info_create_card_entry(compr->card, "info", card 1099 sound/core/compress_offload.c int snd_compress_new(struct snd_card *card, int device, card 1109 sound/core/compress_offload.c compr->card = card; card 1115 sound/core/compress_offload.c snd_device_initialize(&compr->dev, card); card 1116 sound/core/compress_offload.c dev_set_name(&compr->dev, "comprC%iD%i", card->number, device); card 1118 sound/core/compress_offload.c ret = snd_device_new(card, SNDRV_DEV_COMPRESS, compr, &ops); card 1130 sound/core/compress_offload.c if (!device->card) card 1134 sound/core/compress_offload.c ret = snd_card_register(device->card); card 1147 sound/core/compress_offload.c return snd_card_free(device->card); card 38 sound/core/control.c struct snd_card *card; card 46 sound/core/control.c card = snd_lookup_minor_data(iminor(inode), SNDRV_DEVICE_TYPE_CONTROL); card 47 sound/core/control.c if (!card) { card 51 sound/core/control.c err = snd_card_file_add(card, file); card 56 sound/core/control.c if (!try_module_get(card->module)) { card 68 sound/core/control.c ctl->card = card; card 73 sound/core/control.c write_lock_irqsave(&card->ctl_files_rwlock, flags); card 74 sound/core/control.c list_add_tail(&ctl->list, &card->ctl_files); card 75 sound/core/control.c write_unlock_irqrestore(&card->ctl_files_rwlock, flags); card 76 sound/core/control.c snd_card_unref(card); card 80 sound/core/control.c module_put(card->module); card 82 sound/core/control.c snd_card_file_remove(card, file); card 84 sound/core/control.c if (card) card 85 sound/core/control.c snd_card_unref(card); card 106 sound/core/control.c struct snd_card *card; card 113 sound/core/control.c card = ctl->card; card 114 sound/core/control.c write_lock_irqsave(&card->ctl_files_rwlock, flags); card 116 sound/core/control.c write_unlock_irqrestore(&card->ctl_files_rwlock, flags); card 117 sound/core/control.c down_write(&card->controls_rwsem); card 118 sound/core/control.c list_for_each_entry(control, &card->controls, list) card 122 sound/core/control.c up_write(&card->controls_rwsem); card 126 sound/core/control.c module_put(card->module); card 127 sound/core/control.c snd_card_file_remove(card, file); card 141 sound/core/control.c void snd_ctl_notify(struct snd_card *card, unsigned int mask, card 148 sound/core/control.c if (snd_BUG_ON(!card || !id)) card 150 sound/core/control.c if (card->shutdown) card 152 sound/core/control.c read_lock(&card->ctl_files_rwlock); card 154 sound/core/control.c card->mixer_oss_change_count++; card 156 sound/core/control.c list_for_each_entry(ctl, &card->ctl_files, list) { card 172 sound/core/control.c dev_err(card->dev, "No memory available to allocate event\n"); card 179 sound/core/control.c read_unlock(&card->ctl_files_rwlock); card 299 sound/core/control.c static bool snd_ctl_remove_numid_conflict(struct snd_card *card, card 305 sound/core/control.c if (card->last_numid >= UINT_MAX - count) card 306 sound/core/control.c card->last_numid = 0; card 308 sound/core/control.c list_for_each_entry(kctl, &card->controls, list) { card 309 sound/core/control.c if (kctl->id.numid < card->last_numid + 1 + count && card 310 sound/core/control.c kctl->id.numid + kctl->count > card->last_numid + 1) { card 311 sound/core/control.c card->last_numid = kctl->id.numid + kctl->count - 1; card 318 sound/core/control.c static int snd_ctl_find_hole(struct snd_card *card, unsigned int count) card 322 sound/core/control.c while (snd_ctl_remove_numid_conflict(card, count)) { card 325 sound/core/control.c dev_err(card->dev, "unable to allocate new control numid\n"); card 337 sound/core/control.c static int __snd_ctl_add_replace(struct snd_card *card, card 351 sound/core/control.c old = snd_ctl_find_id(card, &id); card 357 sound/core/control.c dev_err(card->dev, card 364 sound/core/control.c err = snd_ctl_remove(card, old); card 369 sound/core/control.c if (snd_ctl_find_hole(card, kcontrol->count) < 0) card 372 sound/core/control.c list_add_tail(&kcontrol->list, &card->controls); card 373 sound/core/control.c card->controls_count += kcontrol->count; card 374 sound/core/control.c kcontrol->id.numid = card->last_numid + 1; card 375 sound/core/control.c card->last_numid += kcontrol->count; card 380 sound/core/control.c snd_ctl_notify(card, SNDRV_CTL_EVENT_MASK_ADD, &id); card 385 sound/core/control.c static int snd_ctl_add_replace(struct snd_card *card, card 393 sound/core/control.c if (snd_BUG_ON(!card || !kcontrol->info)) card 396 sound/core/control.c down_write(&card->controls_rwsem); card 397 sound/core/control.c err = __snd_ctl_add_replace(card, kcontrol, mode); card 398 sound/core/control.c up_write(&card->controls_rwsem); card 422 sound/core/control.c int snd_ctl_add(struct snd_card *card, struct snd_kcontrol *kcontrol) card 424 sound/core/control.c return snd_ctl_add_replace(card, kcontrol, CTL_ADD_EXCLUSIVE); card 442 sound/core/control.c int snd_ctl_replace(struct snd_card *card, struct snd_kcontrol *kcontrol, card 445 sound/core/control.c return snd_ctl_add_replace(card, kcontrol, card 461 sound/core/control.c int snd_ctl_remove(struct snd_card *card, struct snd_kcontrol *kcontrol) card 466 sound/core/control.c if (snd_BUG_ON(!card || !kcontrol)) card 469 sound/core/control.c card->controls_count -= kcontrol->count; card 472 sound/core/control.c snd_ctl_notify(card, SNDRV_CTL_EVENT_MASK_REMOVE, &id); card 488 sound/core/control.c int snd_ctl_remove_id(struct snd_card *card, struct snd_ctl_elem_id *id) card 493 sound/core/control.c down_write(&card->controls_rwsem); card 494 sound/core/control.c kctl = snd_ctl_find_id(card, id); card 496 sound/core/control.c up_write(&card->controls_rwsem); card 499 sound/core/control.c ret = snd_ctl_remove(card, kctl); card 500 sound/core/control.c up_write(&card->controls_rwsem); card 518 sound/core/control.c struct snd_card *card = file->card; card 522 sound/core/control.c down_write(&card->controls_rwsem); card 523 sound/core/control.c kctl = snd_ctl_find_id(card, id); card 537 sound/core/control.c ret = snd_ctl_remove(card, kctl); card 540 sound/core/control.c card->user_ctl_count--; card 542 sound/core/control.c up_write(&card->controls_rwsem); card 558 sound/core/control.c int snd_ctl_activate_id(struct snd_card *card, struct snd_ctl_elem_id *id, card 566 sound/core/control.c down_write(&card->controls_rwsem); card 567 sound/core/control.c kctl = snd_ctl_find_id(card, id); card 587 sound/core/control.c up_write(&card->controls_rwsem); card 589 sound/core/control.c snd_ctl_notify(card, SNDRV_CTL_EVENT_MASK_INFO, id); card 605 sound/core/control.c int snd_ctl_rename_id(struct snd_card *card, struct snd_ctl_elem_id *src_id, card 610 sound/core/control.c down_write(&card->controls_rwsem); card 611 sound/core/control.c kctl = snd_ctl_find_id(card, src_id); card 613 sound/core/control.c up_write(&card->controls_rwsem); card 617 sound/core/control.c kctl->id.numid = card->last_numid + 1; card 618 sound/core/control.c card->last_numid += kctl->count; card 619 sound/core/control.c up_write(&card->controls_rwsem); card 637 sound/core/control.c struct snd_kcontrol *snd_ctl_find_numid(struct snd_card *card, unsigned int numid) card 641 sound/core/control.c if (snd_BUG_ON(!card || !numid)) card 643 sound/core/control.c list_for_each_entry(kctl, &card->controls, list) { card 664 sound/core/control.c struct snd_kcontrol *snd_ctl_find_id(struct snd_card *card, card 669 sound/core/control.c if (snd_BUG_ON(!card || !id)) card 672 sound/core/control.c return snd_ctl_find_numid(card, id->numid); card 673 sound/core/control.c list_for_each_entry(kctl, &card->controls, list) { card 692 sound/core/control.c static int snd_ctl_card_info(struct snd_card *card, struct snd_ctl_file * ctl, card 701 sound/core/control.c info->card = card->number; card 702 sound/core/control.c strlcpy(info->id, card->id, sizeof(info->id)); card 703 sound/core/control.c strlcpy(info->driver, card->driver, sizeof(info->driver)); card 704 sound/core/control.c strlcpy(info->name, card->shortname, sizeof(info->name)); card 705 sound/core/control.c strlcpy(info->longname, card->longname, sizeof(info->longname)); card 706 sound/core/control.c strlcpy(info->mixername, card->mixername, sizeof(info->mixername)); card 707 sound/core/control.c strlcpy(info->components, card->components, sizeof(info->components)); card 717 sound/core/control.c static int snd_ctl_elem_list(struct snd_card *card, card 731 sound/core/control.c down_read(&card->controls_rwsem); card 732 sound/core/control.c list.count = card->controls_count; card 735 sound/core/control.c list_for_each_entry(kctl, &card->controls, list) { card 755 sound/core/control.c up_read(&card->controls_rwsem); card 794 sound/core/control.c struct snd_card *card = ctl->card; card 800 sound/core/control.c down_read(&card->controls_rwsem); card 801 sound/core/control.c kctl = snd_ctl_find_id(card, &info->id); card 803 sound/core/control.c up_read(&card->controls_rwsem); card 825 sound/core/control.c up_read(&card->controls_rwsem); card 837 sound/core/control.c result = snd_power_wait(ctl->card, SNDRV_CTL_POWER_D0); card 848 sound/core/control.c static int snd_ctl_elem_read(struct snd_card *card, card 855 sound/core/control.c kctl = snd_ctl_find_id(card, &control->id); card 868 sound/core/control.c static int snd_ctl_elem_read_user(struct snd_card *card, card 878 sound/core/control.c result = snd_power_wait(card, SNDRV_CTL_POWER_D0); card 882 sound/core/control.c down_read(&card->controls_rwsem); card 883 sound/core/control.c result = snd_ctl_elem_read(card, control); card 884 sound/core/control.c up_read(&card->controls_rwsem); card 895 sound/core/control.c static int snd_ctl_elem_write(struct snd_card *card, struct snd_ctl_file *file, card 903 sound/core/control.c kctl = snd_ctl_find_id(card, &control->id); card 921 sound/core/control.c snd_ctl_notify(card, SNDRV_CTL_EVENT_MASK_VALUE, &id); card 931 sound/core/control.c struct snd_card *card; card 938 sound/core/control.c card = file->card; card 939 sound/core/control.c result = snd_power_wait(card, SNDRV_CTL_POWER_D0); card 943 sound/core/control.c down_write(&card->controls_rwsem); card 944 sound/core/control.c result = snd_ctl_elem_write(card, file, control); card 945 sound/core/control.c up_write(&card->controls_rwsem); card 959 sound/core/control.c struct snd_card *card = file->card; card 967 sound/core/control.c down_write(&card->controls_rwsem); card 968 sound/core/control.c kctl = snd_ctl_find_id(card, &id); card 980 sound/core/control.c up_write(&card->controls_rwsem); card 987 sound/core/control.c struct snd_card *card = file->card; card 995 sound/core/control.c down_write(&card->controls_rwsem); card 996 sound/core/control.c kctl = snd_ctl_find_id(card, &id); card 1010 sound/core/control.c up_write(&card->controls_rwsem); card 1016 sound/core/control.c struct snd_card *card; card 1128 sound/core/control.c snd_ctl_notify(ue->card, mask, &id); card 1223 sound/core/control.c struct snd_card *card = file->card; card 1249 sound/core/control.c if (card->user_ctl_count + 1 > MAX_USER_CONTROLS) card 1307 sound/core/control.c ue->card = card; card 1333 sound/core/control.c down_write(&card->controls_rwsem); card 1334 sound/core/control.c err = __snd_ctl_add_replace(card, kctl, CTL_ADD_EXCLUSIVE); card 1349 sound/core/control.c card->user_ctl_count++; card 1352 sound/core/control.c up_write(&card->controls_rwsem); card 1487 sound/core/control.c kctl = snd_ctl_find_numid(file->card, header.numid); card 1513 sound/core/control.c struct snd_card *card; card 1520 sound/core/control.c card = ctl->card; card 1521 sound/core/control.c if (snd_BUG_ON(!card)) card 1527 sound/core/control.c return snd_ctl_card_info(card, ctl, cmd, argp); card 1529 sound/core/control.c return snd_ctl_elem_list(card, argp); card 1533 sound/core/control.c return snd_ctl_elem_read_user(card, argp); card 1549 sound/core/control.c down_read(&ctl->card->controls_rwsem); card 1551 sound/core/control.c up_read(&ctl->card->controls_rwsem); card 1554 sound/core/control.c down_write(&ctl->card->controls_rwsem); card 1556 sound/core/control.c up_write(&ctl->card->controls_rwsem); card 1559 sound/core/control.c down_write(&ctl->card->controls_rwsem); card 1561 sound/core/control.c up_write(&ctl->card->controls_rwsem); card 1567 sound/core/control.c return put_user(card->power_state, ip) ? -EFAULT : 0; card 1574 sound/core/control.c err = p->fioctl(card, ctl, cmd, arg); card 1581 sound/core/control.c dev_dbg(card->dev, "unknown ioctl = 0x%x\n", cmd); card 1593 sound/core/control.c if (snd_BUG_ON(!ctl || !ctl->card)) card 1615 sound/core/control.c if (ctl->card->shutdown) card 1761 sound/core/control.c int snd_ctl_get_preferred_subdevice(struct snd_card *card, int type) card 1766 sound/core/control.c read_lock(&card->ctl_files_rwlock); card 1767 sound/core/control.c list_for_each_entry(kctl, &card->ctl_files, list) { card 1774 sound/core/control.c read_unlock(&card->ctl_files_rwlock); card 1810 sound/core/control.c struct snd_card *card = device->device_data; card 1812 sound/core/control.c return snd_register_device(SNDRV_DEVICE_TYPE_CONTROL, card, -1, card 1813 sound/core/control.c &snd_ctl_f_ops, card, &card->ctl_dev); card 1821 sound/core/control.c struct snd_card *card = device->device_data; card 1824 sound/core/control.c read_lock(&card->ctl_files_rwlock); card 1825 sound/core/control.c list_for_each_entry(ctl, &card->ctl_files, list) { card 1829 sound/core/control.c read_unlock(&card->ctl_files_rwlock); card 1831 sound/core/control.c return snd_unregister_device(&card->ctl_dev); card 1839 sound/core/control.c struct snd_card *card = device->device_data; card 1842 sound/core/control.c down_write(&card->controls_rwsem); card 1843 sound/core/control.c while (!list_empty(&card->controls)) { card 1844 sound/core/control.c control = snd_kcontrol(card->controls.next); card 1845 sound/core/control.c snd_ctl_remove(card, control); card 1847 sound/core/control.c up_write(&card->controls_rwsem); card 1848 sound/core/control.c put_device(&card->ctl_dev); card 1856 sound/core/control.c int snd_ctl_create(struct snd_card *card) card 1865 sound/core/control.c if (snd_BUG_ON(!card)) card 1867 sound/core/control.c if (snd_BUG_ON(card->number < 0 || card->number >= SNDRV_CARDS)) card 1870 sound/core/control.c snd_device_initialize(&card->ctl_dev, card); card 1871 sound/core/control.c dev_set_name(&card->ctl_dev, "controlC%d", card->number); card 1873 sound/core/control.c err = snd_device_new(card, SNDRV_DEV_CONTROL, card, &ops); card 1875 sound/core/control.c put_device(&card->ctl_dev); card 22 sound/core/control_compat.c static int snd_ctl_elem_list_compat(struct snd_card *card, card 38 sound/core/control_compat.c err = snd_ctl_elem_list(card, data); card 101 sound/core/control_compat.c err = snd_power_wait(ctl->card, SNDRV_CTL_POWER_D0); card 173 sound/core/control_compat.c static int get_ctl_type(struct snd_card *card, struct snd_ctl_elem_id *id, card 180 sound/core/control_compat.c down_read(&card->controls_rwsem); card 181 sound/core/control_compat.c kctl = snd_ctl_find_id(card, id); card 183 sound/core/control_compat.c up_read(&card->controls_rwsem); card 188 sound/core/control_compat.c up_read(&card->controls_rwsem); card 193 sound/core/control_compat.c up_read(&card->controls_rwsem); card 218 sound/core/control_compat.c static int copy_ctl_value_from_user(struct snd_card *card, card 235 sound/core/control_compat.c type = get_ctl_type(card, &data->id, &count); card 251 sound/core/control_compat.c dev_err(card->dev, "snd_ioctl32_ctl_elem_value: unknown type %d\n", type); card 288 sound/core/control_compat.c static int ctl_elem_read_user(struct snd_card *card, card 298 sound/core/control_compat.c err = copy_ctl_value_from_user(card, data, userdata, valuep, card 303 sound/core/control_compat.c err = snd_power_wait(card, SNDRV_CTL_POWER_D0); card 306 sound/core/control_compat.c err = snd_ctl_elem_read(card, data); card 319 sound/core/control_compat.c struct snd_card *card = file->card; card 326 sound/core/control_compat.c err = copy_ctl_value_from_user(card, data, userdata, valuep, card 331 sound/core/control_compat.c err = snd_power_wait(card, SNDRV_CTL_POWER_D0); card 334 sound/core/control_compat.c err = snd_ctl_elem_write(card, file, data); card 343 sound/core/control_compat.c static int snd_ctl_elem_read_user_compat(struct snd_card *card, card 346 sound/core/control_compat.c return ctl_elem_read_user(card, data32, &data32->value); card 356 sound/core/control_compat.c static int snd_ctl_elem_read_user_x32(struct snd_card *card, card 359 sound/core/control_compat.c return ctl_elem_read_user(card, data32, &data32->value); card 440 sound/core/control_compat.c if (snd_BUG_ON(!ctl || !ctl->card)) card 457 sound/core/control_compat.c return snd_ctl_elem_list_compat(ctl->card, argp); card 461 sound/core/control_compat.c return snd_ctl_elem_read_user_compat(ctl->card, argp); card 470 sound/core/control_compat.c return snd_ctl_elem_read_user_x32(ctl->card, argp); card 479 sound/core/control_compat.c err = p->fioctl(ctl->card, ctl, cmd, arg); card 30 sound/core/ctljack.c static int get_available_index(struct snd_card *card, const char *name) card 40 sound/core/ctljack.c while (snd_ctl_find_id(card, &sid)) { card 63 sound/core/ctljack.c snd_kctl_jack_new(const char *name, struct snd_card *card) card 72 sound/core/ctljack.c kctl->id.index = get_available_index(card, kctl->id.name); card 77 sound/core/ctljack.c void snd_kctl_jack_report(struct snd_card *card, card 83 sound/core/ctljack.c snd_ctl_notify(card, SNDRV_CTL_EVENT_MASK_VALUE, &kctl->id); card 29 sound/core/device.c int snd_device_new(struct snd_card *card, enum snd_device_type type, card 35 sound/core/device.c if (snd_BUG_ON(!card || !device_data || !ops)) card 41 sound/core/device.c dev->card = card; card 48 sound/core/device.c list_for_each_prev(p, &card->devices) { card 64 sound/core/device.c dev_err(dev->card->dev, "device disconnect failure\n"); card 77 sound/core/device.c dev_err(dev->card->dev, "device free failure\n"); card 82 sound/core/device.c static struct snd_device *look_for_dev(struct snd_card *card, void *device_data) card 86 sound/core/device.c list_for_each_entry(dev, &card->devices, list) card 106 sound/core/device.c void snd_device_disconnect(struct snd_card *card, void *device_data) card 110 sound/core/device.c if (snd_BUG_ON(!card || !device_data)) card 112 sound/core/device.c dev = look_for_dev(card, device_data); card 116 sound/core/device.c dev_dbg(card->dev, "device disconnect %p (from %pS), not found\n", card 130 sound/core/device.c void snd_device_free(struct snd_card *card, void *device_data) card 134 sound/core/device.c if (snd_BUG_ON(!card || !device_data)) card 136 sound/core/device.c dev = look_for_dev(card, device_data); card 140 sound/core/device.c dev_dbg(card->dev, "device free %p (from %pS), not found\n", card 171 sound/core/device.c int snd_device_register(struct snd_card *card, void *device_data) card 175 sound/core/device.c if (snd_BUG_ON(!card || !device_data)) card 177 sound/core/device.c dev = look_for_dev(card, device_data); card 189 sound/core/device.c int snd_device_register_all(struct snd_card *card) card 194 sound/core/device.c if (snd_BUG_ON(!card)) card 196 sound/core/device.c list_for_each_entry(dev, &card->devices, list) { card 208 sound/core/device.c void snd_device_disconnect_all(struct snd_card *card) card 212 sound/core/device.c if (snd_BUG_ON(!card)) card 214 sound/core/device.c list_for_each_entry_reverse(dev, &card->devices, list) card 222 sound/core/device.c void snd_device_free_all(struct snd_card *card) card 226 sound/core/device.c if (snd_BUG_ON(!card)) card 228 sound/core/device.c list_for_each_entry_safe_reverse(dev, next, &card->devices, list) { card 237 sound/core/device.c list_for_each_entry_safe_reverse(dev, next, &card->devices, list) card 32 sound/core/hwdep.c static struct snd_hwdep *snd_hwdep_search(struct snd_card *card, int device) card 37 sound/core/hwdep.c if (hwdep->card == card && hwdep->device == device) card 88 sound/core/hwdep.c if (!try_module_get(hw->card->module)) { card 89 sound/core/hwdep.c snd_card_unref(hw->card); card 119 sound/core/hwdep.c if (hw->card->shutdown) { card 130 sound/core/hwdep.c err = snd_card_file_add(hw->card, file); card 141 sound/core/hwdep.c module_put(hw->card->module); card 142 sound/core/hwdep.c snd_card_unref(hw->card); card 150 sound/core/hwdep.c struct module *mod = hw->card->module; card 160 sound/core/hwdep.c snd_card_file_remove(hw->card, file); card 179 sound/core/hwdep.c info.card = hw->card->number; card 256 sound/core/hwdep.c static int snd_hwdep_control_ioctl(struct snd_card *card, card 277 sound/core/hwdep.c if (snd_hwdep_search(card, device)) card 297 sound/core/hwdep.c hwdep = snd_hwdep_search(card, device); card 351 sound/core/hwdep.c int snd_hwdep_new(struct snd_card *card, char *id, int device, card 362 sound/core/hwdep.c if (snd_BUG_ON(!card)) card 372 sound/core/hwdep.c hwdep->card = card; card 377 sound/core/hwdep.c snd_device_initialize(&hwdep->dev, card); card 379 sound/core/hwdep.c dev_set_name(&hwdep->dev, "hwC%iD%i", card->number, device); card 384 sound/core/hwdep.c err = snd_device_new(card, SNDRV_DEV_HWDEP, hwdep, &ops); card 410 sound/core/hwdep.c struct snd_card *card = hwdep->card; card 414 sound/core/hwdep.c if (snd_hwdep_search(card, hwdep->device)) { card 420 sound/core/hwdep.c hwdep->card, hwdep->device, card 437 sound/core/hwdep.c card, hwdep->device, card 456 sound/core/hwdep.c if (snd_hwdep_search(hwdep->card, hwdep->device) != hwdep) { card 464 sound/core/hwdep.c snd_unregister_oss_device(hwdep->oss_type, hwdep->card, hwdep->device); card 486 sound/core/hwdep.c hwdep->card->number, hwdep->device, hwdep->name); card 495 sound/core/info.c struct snd_card *card = entry->private_data; card 497 sound/core/info.c snd_iprintf(buffer, "%s\n", card->id); card 504 sound/core/info.c int snd_info_card_create(struct snd_card *card) card 509 sound/core/info.c if (snd_BUG_ON(!card)) card 512 sound/core/info.c sprintf(str, "card%i", card->number); card 513 sound/core/info.c entry = create_subdir(card->module, str); card 516 sound/core/info.c card->proc_root = entry; card 518 sound/core/info.c return snd_card_ro_proc_new(card, "id", card, snd_card_id_read); card 526 sound/core/info.c int snd_info_card_register(struct snd_card *card) card 531 sound/core/info.c if (snd_BUG_ON(!card)) card 534 sound/core/info.c err = snd_info_register(card->proc_root); card 538 sound/core/info.c if (!strcmp(card->id, card->proc_root->name)) card 541 sound/core/info.c if (card->proc_root_link) card 543 sound/core/info.c p = proc_symlink(card->id, snd_proc_root->p, card->proc_root->name); card 546 sound/core/info.c card->proc_root_link = p; card 553 sound/core/info.c void snd_info_card_id_change(struct snd_card *card) card 556 sound/core/info.c if (card->proc_root_link) { card 557 sound/core/info.c proc_remove(card->proc_root_link); card 558 sound/core/info.c card->proc_root_link = NULL; card 560 sound/core/info.c if (strcmp(card->id, card->proc_root->name)) card 561 sound/core/info.c card->proc_root_link = proc_symlink(card->id, card 563 sound/core/info.c card->proc_root->name); card 571 sound/core/info.c void snd_info_card_disconnect(struct snd_card *card) card 573 sound/core/info.c if (!card) card 576 sound/core/info.c proc_remove(card->proc_root_link); card 577 sound/core/info.c card->proc_root_link = NULL; card 578 sound/core/info.c if (card->proc_root) card 579 sound/core/info.c snd_info_disconnect(card->proc_root); card 587 sound/core/info.c int snd_info_card_free(struct snd_card *card) card 589 sound/core/info.c if (!card) card 591 sound/core/info.c snd_info_free_entry(card->proc_root); card 592 sound/core/info.c card->proc_root = NULL; card 739 sound/core/info.c struct snd_info_entry *snd_info_create_card_entry(struct snd_card *card, card 744 sound/core/info.c parent = card->proc_root; card 745 sound/core/info.c return snd_info_create_entry(name, parent, card->module); card 873 sound/core/info.c int snd_card_rw_proc_new(struct snd_card *card, const char *name, card 882 sound/core/info.c entry = snd_info_create_card_entry(card, name, card->proc_root); card 83 sound/core/init.c int (*snd_mixer_oss_notify_callback)(struct snd_card *card, int free_flag); card 125 sound/core/init.c void snd_device_initialize(struct device *dev, struct snd_card *card) card 128 sound/core/init.c if (card) card 129 sound/core/init.c dev->parent = &card->card_dev; card 135 sound/core/init.c static int snd_card_do_free(struct snd_card *card); card 164 sound/core/init.c struct snd_card *card; card 173 sound/core/init.c card = kzalloc(sizeof(*card) + extra_size, GFP_KERNEL); card 174 sound/core/init.c if (!card) card 177 sound/core/init.c card->private_data = (char *)card + sizeof(struct snd_card); card 179 sound/core/init.c strlcpy(card->id, xid, sizeof(card->id)); card 197 sound/core/init.c kfree(card); card 204 sound/core/init.c card->dev = parent; card 205 sound/core/init.c card->number = idx; card 206 sound/core/init.c card->module = module; card 207 sound/core/init.c INIT_LIST_HEAD(&card->devices); card 208 sound/core/init.c init_rwsem(&card->controls_rwsem); card 209 sound/core/init.c rwlock_init(&card->ctl_files_rwlock); card 210 sound/core/init.c INIT_LIST_HEAD(&card->controls); card 211 sound/core/init.c INIT_LIST_HEAD(&card->ctl_files); card 212 sound/core/init.c spin_lock_init(&card->files_lock); card 213 sound/core/init.c INIT_LIST_HEAD(&card->files_list); card 215 sound/core/init.c init_waitqueue_head(&card->power_sleep); card 217 sound/core/init.c init_waitqueue_head(&card->remove_sleep); card 219 sound/core/init.c device_initialize(&card->card_dev); card 220 sound/core/init.c card->card_dev.parent = parent; card 221 sound/core/init.c card->card_dev.class = sound_class; card 222 sound/core/init.c card->card_dev.release = release_card_device; card 223 sound/core/init.c card->card_dev.groups = card->dev_groups; card 224 sound/core/init.c card->dev_groups[0] = &card_dev_attr_group; card 225 sound/core/init.c err = kobject_set_name(&card->card_dev.kobj, "card%d", idx); card 229 sound/core/init.c snprintf(card->irq_descr, sizeof(card->irq_descr), "%s:%s", card 230 sound/core/init.c dev_driver_string(card->dev), dev_name(&card->card_dev)); card 234 sound/core/init.c err = snd_ctl_create(card); card 239 sound/core/init.c err = snd_info_card_create(card); card 244 sound/core/init.c *card_ret = card; card 248 sound/core/init.c snd_device_free_all(card); card 250 sound/core/init.c put_device(&card->card_dev); card 264 sound/core/init.c struct snd_card *card; card 267 sound/core/init.c card = snd_cards[idx]; card 268 sound/core/init.c if (card) card 269 sound/core/init.c get_device(&card->card_dev); card 271 sound/core/init.c return card; card 276 sound/core/init.c int snd_card_locked(int card) card 281 sound/core/init.c locked = test_bit(card, snd_cards_lock); card 374 sound/core/init.c int snd_card_disconnect(struct snd_card *card) card 378 sound/core/init.c if (!card) card 381 sound/core/init.c spin_lock(&card->files_lock); card 382 sound/core/init.c if (card->shutdown) { card 383 sound/core/init.c spin_unlock(&card->files_lock); card 386 sound/core/init.c card->shutdown = 1; card 387 sound/core/init.c spin_unlock(&card->files_lock); card 390 sound/core/init.c spin_lock(&card->files_lock); card 391 sound/core/init.c list_for_each_entry(mfile, &card->files_list, list) { card 403 sound/core/init.c spin_unlock(&card->files_lock); card 410 sound/core/init.c snd_mixer_oss_notify_callback(card, SND_MIXER_OSS_NOTIFY_DISCONNECT); card 414 sound/core/init.c snd_device_disconnect_all(card); card 416 sound/core/init.c snd_info_card_disconnect(card); card 417 sound/core/init.c if (card->registered) { card 418 sound/core/init.c device_del(&card->card_dev); card 419 sound/core/init.c card->registered = false; card 424 sound/core/init.c snd_cards[card->number] = NULL; card 425 sound/core/init.c clear_bit(card->number, snd_cards_lock); card 429 sound/core/init.c wake_up(&card->power_sleep); card 444 sound/core/init.c void snd_card_disconnect_sync(struct snd_card *card) card 448 sound/core/init.c err = snd_card_disconnect(card); card 450 sound/core/init.c dev_err(card->dev, card 456 sound/core/init.c spin_lock_irq(&card->files_lock); card 457 sound/core/init.c wait_event_lock_irq(card->remove_sleep, card 458 sound/core/init.c list_empty(&card->files_list), card 459 sound/core/init.c card->files_lock); card 460 sound/core/init.c spin_unlock_irq(&card->files_lock); card 464 sound/core/init.c static int snd_card_do_free(struct snd_card *card) card 468 sound/core/init.c snd_mixer_oss_notify_callback(card, SND_MIXER_OSS_NOTIFY_FREE); card 470 sound/core/init.c snd_device_free_all(card); card 471 sound/core/init.c if (card->private_free) card 472 sound/core/init.c card->private_free(card); card 473 sound/core/init.c if (snd_info_card_free(card) < 0) { card 474 sound/core/init.c dev_warn(card->dev, "unable to free card info\n"); card 477 sound/core/init.c if (card->release_completion) card 478 sound/core/init.c complete(card->release_completion); card 479 sound/core/init.c kfree(card); card 492 sound/core/init.c int snd_card_free_when_closed(struct snd_card *card) card 494 sound/core/init.c int ret = snd_card_disconnect(card); card 497 sound/core/init.c put_device(&card->card_dev); card 515 sound/core/init.c int snd_card_free(struct snd_card *card) card 521 sound/core/init.c card->release_completion = &released; card 522 sound/core/init.c ret = snd_card_free_when_closed(card); card 545 sound/core/init.c static bool card_id_ok(struct snd_card *card, const char *id) card 551 sound/core/init.c if (snd_cards[i] && snd_cards[i] != card && card 559 sound/core/init.c static void copy_valid_id_string(struct snd_card *card, const char *src, card 562 sound/core/init.c char *id = card->id; card 568 sound/core/init.c while (*nid && (size_t)(id - card->id) < sizeof(card->id) - 1) { card 579 sound/core/init.c static void snd_card_set_id_no_lock(struct snd_card *card, const char *src, card 586 sound/core/init.c copy_valid_id_string(card, src, nid); card 587 sound/core/init.c id = card->id; card 604 sound/core/init.c if (card_id_ok(card, id)) card 610 sound/core/init.c if (len + sfxlen >= sizeof(card->id)) card 611 sound/core/init.c spos = id + sizeof(card->id) - sfxlen - 1; card 622 sound/core/init.c dev_err(card->dev, "unable to set card id (%s)\n", id); card 623 sound/core/init.c if (card->proc_root->name) card 624 sound/core/init.c strlcpy(card->id, card->proc_root->name, sizeof(card->id)); card 635 sound/core/init.c void snd_card_set_id(struct snd_card *card, const char *nid) card 638 sound/core/init.c if (card->id[0] != '\0') card 641 sound/core/init.c snd_card_set_id_no_lock(card, nid, nid); card 650 sound/core/init.c struct snd_card *card = container_of(dev, struct snd_card, card_dev); card 651 sound/core/init.c return scnprintf(buf, PAGE_SIZE, "%s\n", card->id); card 658 sound/core/init.c struct snd_card *card = container_of(dev, struct snd_card, card_dev); card 659 sound/core/init.c char buf1[sizeof(card->id)]; card 660 sound/core/init.c size_t copy = count > sizeof(card->id) - 1 ? card 661 sound/core/init.c sizeof(card->id) - 1 : count; card 677 sound/core/init.c strcpy(card->id, buf1); card 678 sound/core/init.c snd_info_card_id_change(card); card 690 sound/core/init.c struct snd_card *card = container_of(dev, struct snd_card, card_dev); card 691 sound/core/init.c return scnprintf(buf, PAGE_SIZE, "%i\n", card->number); card 711 sound/core/init.c int snd_card_add_dev_attr(struct snd_card *card, card 717 sound/core/init.c for (i = 0; i < ARRAY_SIZE(card->dev_groups) - 1; i++) { card 718 sound/core/init.c if (!card->dev_groups[i]) { card 719 sound/core/init.c card->dev_groups[i] = group; card 724 sound/core/init.c dev_err(card->dev, "Too many groups assigned\n"); card 740 sound/core/init.c int snd_card_register(struct snd_card *card) card 744 sound/core/init.c if (snd_BUG_ON(!card)) card 747 sound/core/init.c if (!card->registered) { card 748 sound/core/init.c err = device_add(&card->card_dev); card 751 sound/core/init.c card->registered = true; card 754 sound/core/init.c if ((err = snd_device_register_all(card)) < 0) card 757 sound/core/init.c if (snd_cards[card->number]) { card 760 sound/core/init.c return snd_info_card_register(card); /* register pending info */ card 762 sound/core/init.c if (*card->id) { card 764 sound/core/init.c char tmpid[sizeof(card->id)]; card 765 sound/core/init.c memcpy(tmpid, card->id, sizeof(card->id)); card 766 sound/core/init.c snd_card_set_id_no_lock(card, tmpid, tmpid); card 770 sound/core/init.c src = *card->shortname ? card->shortname : card->longname; card 771 sound/core/init.c snd_card_set_id_no_lock(card, src, card 774 sound/core/init.c snd_cards[card->number] = card; card 776 sound/core/init.c err = snd_info_card_register(card); card 782 sound/core/init.c snd_mixer_oss_notify_callback(card, SND_MIXER_OSS_NOTIFY_REGISTER); card 793 sound/core/init.c struct snd_card *card; card 797 sound/core/init.c if ((card = snd_cards[idx]) != NULL) { card 801 sound/core/init.c card->id, card 802 sound/core/init.c card->driver, card 803 sound/core/init.c card->shortname); card 805 sound/core/init.c card->longname); card 817 sound/core/init.c struct snd_card *card; card 821 sound/core/init.c if ((card = snd_cards[idx]) != NULL) { card 823 sound/core/init.c snd_iprintf(buffer, "%s\n", card->longname); card 839 sound/core/init.c struct snd_card *card; card 843 sound/core/init.c if ((card = snd_cards[idx]) != NULL) card 845 sound/core/init.c idx, card->module->name); card 886 sound/core/init.c int snd_component_add(struct snd_card *card, const char *component) card 891 sound/core/init.c ptr = strstr(card->components, component); card 896 sound/core/init.c if (strlen(card->components) + 1 + len + 1 > sizeof(card->components)) { card 900 sound/core/init.c if (card->components[0] != '\0') card 901 sound/core/init.c strcat(card->components, " "); card 902 sound/core/init.c strcat(card->components, component); card 918 sound/core/init.c int snd_card_file_add(struct snd_card *card, struct file *file) card 928 sound/core/init.c spin_lock(&card->files_lock); card 929 sound/core/init.c if (card->shutdown) { card 930 sound/core/init.c spin_unlock(&card->files_lock); card 934 sound/core/init.c list_add(&mfile->list, &card->files_list); card 935 sound/core/init.c get_device(&card->card_dev); card 936 sound/core/init.c spin_unlock(&card->files_lock); card 954 sound/core/init.c int snd_card_file_remove(struct snd_card *card, struct file *file) card 958 sound/core/init.c spin_lock(&card->files_lock); card 959 sound/core/init.c list_for_each_entry(mfile, &card->files_list, list) { card 971 sound/core/init.c if (list_empty(&card->files_list)) card 972 sound/core/init.c wake_up_all(&card->remove_sleep); card 973 sound/core/init.c spin_unlock(&card->files_lock); card 975 sound/core/init.c dev_err(card->dev, "card file remove problem (%p)\n", file); card 979 sound/core/init.c put_device(&card->card_dev); card 994 sound/core/init.c int snd_power_wait(struct snd_card *card, unsigned int power_state) card 1000 sound/core/init.c if (snd_power_get_state(card) == power_state) card 1003 sound/core/init.c add_wait_queue(&card->power_sleep, &wait); card 1005 sound/core/init.c if (card->shutdown) { card 1009 sound/core/init.c if (snd_power_get_state(card) == power_state) card 1014 sound/core/init.c remove_wait_queue(&card->power_sleep, &wait); card 54 sound/core/jack.c struct snd_card *card = device->card; card 59 sound/core/jack.c snd_ctl_remove(card, jack_kctl->kctl); card 76 sound/core/jack.c struct snd_card *card = device->card; card 80 sound/core/jack.c card->shortname, jack->id); card 89 sound/core/jack.c jack->input_dev->dev.parent = snd_card_get_device_link(card); card 128 sound/core/jack.c static struct snd_jack_kctl * snd_jack_kctl_new(struct snd_card *card, const char *name, unsigned int mask) card 134 sound/core/jack.c kctl = snd_kctl_jack_new(name, card); card 138 sound/core/jack.c err = snd_ctl_add(card, kctl); card 174 sound/core/jack.c jack_kctl = snd_jack_kctl_new(jack->card, name, mask); card 198 sound/core/jack.c int snd_jack_new(struct snd_card *card, const char *id, int type, card 213 sound/core/jack.c jack_kctl = snd_jack_kctl_new(card, id, type); card 247 sound/core/jack.c err = snd_device_new(card, SNDRV_DEV_JACK, jack, &ops); card 251 sound/core/jack.c jack->card = card; card 351 sound/core/jack.c snd_kctl_jack_report(jack->card, jack_kctl->kctl, card 29 sound/core/oss/mixer_oss.c struct snd_card *card; card 37 sound/core/oss/mixer_oss.c card = snd_lookup_oss_minor_data(iminor(inode), card 39 sound/core/oss/mixer_oss.c if (card == NULL) card 41 sound/core/oss/mixer_oss.c if (card->mixer_oss == NULL) { card 42 sound/core/oss/mixer_oss.c snd_card_unref(card); card 45 sound/core/oss/mixer_oss.c err = snd_card_file_add(card, file); card 47 sound/core/oss/mixer_oss.c snd_card_unref(card); card 52 sound/core/oss/mixer_oss.c snd_card_file_remove(card, file); card 53 sound/core/oss/mixer_oss.c snd_card_unref(card); card 56 sound/core/oss/mixer_oss.c fmixer->card = card; card 57 sound/core/oss/mixer_oss.c fmixer->mixer = card->mixer_oss; card 59 sound/core/oss/mixer_oss.c if (!try_module_get(card->module)) { card 61 sound/core/oss/mixer_oss.c snd_card_file_remove(card, file); card 62 sound/core/oss/mixer_oss.c snd_card_unref(card); card 65 sound/core/oss/mixer_oss.c snd_card_unref(card); card 75 sound/core/oss/mixer_oss.c module_put(fmixer->card->module); card 76 sound/core/oss/mixer_oss.c snd_card_file_remove(fmixer->card, file); card 85 sound/core/oss/mixer_oss.c struct snd_card *card = fmixer->card; card 90 sound/core/oss/mixer_oss.c strlcpy(info.id, mixer && mixer->id[0] ? mixer->id : card->driver, sizeof(info.id)); card 91 sound/core/oss/mixer_oss.c strlcpy(info.name, mixer && mixer->name[0] ? mixer->name : card->mixername, sizeof(info.name)); card 92 sound/core/oss/mixer_oss.c info.modify_counter = card->mixer_oss_change_count; card 101 sound/core/oss/mixer_oss.c struct snd_card *card = fmixer->card; card 106 sound/core/oss/mixer_oss.c strlcpy(info.id, mixer && mixer->id[0] ? mixer->id : card->driver, sizeof(info.id)); card 107 sound/core/oss/mixer_oss.c strlcpy(info.name, mixer && mixer->name[0] ? mixer->name : card->mixername, sizeof(info.name)); card 370 sound/core/oss/mixer_oss.c int snd_mixer_oss_ioctl_card(struct snd_card *card, unsigned int cmd, unsigned long arg) card 374 sound/core/oss/mixer_oss.c if (snd_BUG_ON(!card)) card 376 sound/core/oss/mixer_oss.c if (card->mixer_oss == NULL) card 379 sound/core/oss/mixer_oss.c fmixer.card = card; card 380 sound/core/oss/mixer_oss.c fmixer.mixer = card->mixer_oss; card 439 sound/core/oss/mixer_oss.c static void snd_mixer_oss_recsrce_set(struct snd_card *card, int slot) card 441 sound/core/oss/mixer_oss.c struct snd_mixer_oss *mixer = card->mixer_oss; card 446 sound/core/oss/mixer_oss.c static int snd_mixer_oss_recsrce_get(struct snd_card *card, int slot) card 448 sound/core/oss/mixer_oss.c struct snd_mixer_oss *mixer = card->mixer_oss; card 497 sound/core/oss/mixer_oss.c struct snd_card *card = mixer->card; card 504 sound/core/oss/mixer_oss.c return snd_ctl_find_id(card, &id); card 515 sound/core/oss/mixer_oss.c struct snd_card *card = fmixer->card; card 519 sound/core/oss/mixer_oss.c down_read(&card->controls_rwsem); card 520 sound/core/oss/mixer_oss.c if ((kctl = snd_ctl_find_numid(card, numid)) == NULL) { card 521 sound/core/oss/mixer_oss.c up_read(&card->controls_rwsem); card 539 sound/core/oss/mixer_oss.c up_read(&card->controls_rwsem); card 553 sound/core/oss/mixer_oss.c struct snd_card *card = fmixer->card; card 557 sound/core/oss/mixer_oss.c down_read(&card->controls_rwsem); card 558 sound/core/oss/mixer_oss.c if ((kctl = snd_ctl_find_numid(card, numid)) == NULL) { card 559 sound/core/oss/mixer_oss.c up_read(&card->controls_rwsem); card 578 sound/core/oss/mixer_oss.c up_read(&card->controls_rwsem); card 617 sound/core/oss/mixer_oss.c struct snd_card *card = fmixer->card; card 622 sound/core/oss/mixer_oss.c down_read(&card->controls_rwsem); card 623 sound/core/oss/mixer_oss.c if ((kctl = snd_ctl_find_numid(card, numid)) == NULL) { card 624 sound/core/oss/mixer_oss.c up_read(&card->controls_rwsem); card 642 sound/core/oss/mixer_oss.c snd_ctl_notify(card, SNDRV_CTL_EVENT_MASK_VALUE, &kctl->id); card 644 sound/core/oss/mixer_oss.c up_read(&card->controls_rwsem); card 658 sound/core/oss/mixer_oss.c struct snd_card *card = fmixer->card; card 663 sound/core/oss/mixer_oss.c down_read(&card->controls_rwsem); card 664 sound/core/oss/mixer_oss.c if ((kctl = snd_ctl_find_numid(card, numid)) == NULL) { card 665 sound/core/oss/mixer_oss.c up_read(&card->controls_rwsem); card 687 sound/core/oss/mixer_oss.c snd_ctl_notify(card, SNDRV_CTL_EVENT_MASK_VALUE, &kctl->id); card 689 sound/core/oss/mixer_oss.c up_read(&card->controls_rwsem); card 791 sound/core/oss/mixer_oss.c struct snd_card *card = fmixer->card; card 806 sound/core/oss/mixer_oss.c down_read(&card->controls_rwsem); card 832 sound/core/oss/mixer_oss.c up_read(&card->controls_rwsem); card 841 sound/core/oss/mixer_oss.c struct snd_card *card = fmixer->card; card 857 sound/core/oss/mixer_oss.c down_read(&card->controls_rwsem); card 884 sound/core/oss/mixer_oss.c snd_ctl_notify(fmixer->card, SNDRV_CTL_EVENT_MASK_VALUE, &kctl->id); card 887 sound/core/oss/mixer_oss.c up_read(&card->controls_rwsem); card 904 sound/core/oss/mixer_oss.c struct snd_card *card = mixer->card; card 907 sound/core/oss/mixer_oss.c down_read(&card->controls_rwsem); card 910 sound/core/oss/mixer_oss.c up_read(&card->controls_rwsem); card 915 sound/core/oss/mixer_oss.c up_read(&card->controls_rwsem); card 919 sound/core/oss/mixer_oss.c up_read(&card->controls_rwsem); card 924 sound/core/oss/mixer_oss.c up_read(&card->controls_rwsem); card 1036 sound/core/oss/mixer_oss.c down_read(&mixer->card->controls_rwsem); card 1042 sound/core/oss/mixer_oss.c up_read(&mixer->card->controls_rwsem); card 1047 sound/core/oss/mixer_oss.c up_read(&mixer->card->controls_rwsem); card 1063 sound/core/oss/mixer_oss.c up_read(&mixer->card->controls_rwsem); card 1075 sound/core/oss/mixer_oss.c up_read(&mixer->card->controls_rwsem); card 1230 sound/core/oss/mixer_oss.c entry = snd_info_create_card_entry(mixer->card, "oss_mixer", card 1231 sound/core/oss/mixer_oss.c mixer->card->proc_root); card 1315 sound/core/oss/mixer_oss.c struct snd_card *card; card 1320 sound/core/oss/mixer_oss.c card = mixer->card; card 1321 sound/core/oss/mixer_oss.c if (snd_BUG_ON(mixer != card->mixer_oss)) card 1323 sound/core/oss/mixer_oss.c card->mixer_oss = NULL; card 1333 sound/core/oss/mixer_oss.c static int snd_mixer_oss_notify_handler(struct snd_card *card, int cmd) card 1345 sound/core/oss/mixer_oss.c card, 0, card 1346 sound/core/oss/mixer_oss.c &snd_mixer_oss_f_ops, card)) < 0) { card 1347 sound/core/oss/mixer_oss.c dev_err(card->dev, card 1349 sound/core/oss/mixer_oss.c card->number, 0); card 1354 sound/core/oss/mixer_oss.c mixer->card = card; card 1355 sound/core/oss/mixer_oss.c if (*card->mixername) card 1356 sound/core/oss/mixer_oss.c strlcpy(mixer->name, card->mixername, sizeof(mixer->name)); card 1359 sound/core/oss/mixer_oss.c "mixer%i", card->number); card 1362 sound/core/oss/mixer_oss.c card->number, card 1367 sound/core/oss/mixer_oss.c card->mixer_oss = mixer; card 1371 sound/core/oss/mixer_oss.c mixer = card->mixer_oss; card 1376 sound/core/oss/mixer_oss.c snd_oss_info_unregister(SNDRV_OSS_INFO_DEV_MIXERS, mixer->card->number); card 1378 sound/core/oss/mixer_oss.c snd_unregister_oss_device(SNDRV_OSS_DEVICE_TYPE_MIXER, mixer->card, 0); card 1391 sound/core/oss/mixer_oss.c struct snd_card *card; card 1396 sound/core/oss/mixer_oss.c card = snd_card_ref(idx); card 1397 sound/core/oss/mixer_oss.c if (card) { card 1398 sound/core/oss/mixer_oss.c snd_mixer_oss_notify_handler(card, SND_MIXER_OSS_NOTIFY_REGISTER); card 1399 sound/core/oss/mixer_oss.c snd_card_unref(card); card 1407 sound/core/oss/mixer_oss.c struct snd_card *card; card 1412 sound/core/oss/mixer_oss.c card = snd_card_ref(idx); card 1413 sound/core/oss/mixer_oss.c if (card) { card 1414 sound/core/oss/mixer_oss.c snd_mixer_oss_notify_handler(card, SND_MIXER_OSS_NOTIFY_FREE); card 1415 sound/core/oss/mixer_oss.c snd_card_unref(card); card 2463 sound/core/oss/pcm_oss.c err = snd_card_file_add(pcm->card, file); card 2466 sound/core/oss/pcm_oss.c if (!try_module_get(pcm->card->module)) { card 2505 sound/core/oss/pcm_oss.c if (pcm->card->shutdown) { card 2518 sound/core/oss/pcm_oss.c snd_card_unref(pcm->card); card 2522 sound/core/oss/pcm_oss.c module_put(pcm->card->module); card 2524 sound/core/oss/pcm_oss.c snd_card_file_remove(pcm->card, file); card 2527 sound/core/oss/pcm_oss.c snd_card_unref(pcm->card); card 2544 sound/core/oss/pcm_oss.c if (!pcm->card->shutdown) card 2550 sound/core/oss/pcm_oss.c module_put(pcm->card->module); card 2551 sound/core/oss/pcm_oss.c snd_card_file_remove(pcm->card, file); card 2577 sound/core/oss/pcm_oss.c return snd_mixer_oss_ioctl_card(substream->pcm->card, cmd, arg); card 3031 sound/core/oss/pcm_oss.c if ((entry = snd_info_create_card_entry(pcm->card, "oss", pstr->proc_root)) != NULL) { card 3082 sound/core/oss/pcm_oss.c pcm->card, index, &snd_pcm_oss_f_reg, card 3085 sound/core/oss/pcm_oss.c pcm->card->number, pcm->device); card 3092 sound/core/oss/pcm_oss.c if (dsp_map[pcm->card->number] == (int)pcm->device) { card 3102 sound/core/oss/pcm_oss.c pcm->card->number, card 3108 sound/core/oss/pcm_oss.c if (adsp_map[pcm->card->number] == (int)pcm->device) { card 3126 sound/core/oss/pcm_oss.c pcm->card, 0); card 3131 sound/core/oss/pcm_oss.c pcm->card, 1); card 3133 sound/core/oss/pcm_oss.c if (dsp_map[pcm->card->number] == (int)pcm->device) { card 3135 sound/core/oss/pcm_oss.c snd_oss_info_unregister(SNDRV_OSS_INFO_DEV_AUDIO, pcm->card->number); card 38 sound/core/pcm.c static struct snd_pcm *snd_pcm_get(struct snd_card *card, int device) card 43 sound/core/pcm.c if (pcm->card == card && pcm->device == device) card 49 sound/core/pcm.c static int snd_pcm_next(struct snd_card *card, int device) card 54 sound/core/pcm.c if (pcm->card == card && pcm->device > device) card 56 sound/core/pcm.c else if (pcm->card->number > card->number) card 70 sound/core/pcm.c if (pcm->card == newpcm->card && pcm->device == newpcm->device) card 72 sound/core/pcm.c if (pcm->card->number > newpcm->card->number || card 73 sound/core/pcm.c (pcm->card == newpcm->card && card 83 sound/core/pcm.c static int snd_pcm_control_ioctl(struct snd_card *card, card 95 sound/core/pcm.c device = snd_pcm_next(card, device); card 122 sound/core/pcm.c pcm = snd_pcm_get(card, device); card 349 sound/core/pcm.c snd_iprintf(buffer, "card: %d\n", info->card); card 511 sound/core/pcm.c entry = snd_info_create_card_entry(pcm->card, name, card 512 sound/core/pcm.c pcm->card->proc_root); card 517 sound/core/pcm.c entry = snd_info_create_card_entry(pcm->card, "info", pstr->proc_root); card 521 sound/core/pcm.c entry = snd_info_create_card_entry(pcm->card, "xrun_debug", card 547 sound/core/pcm.c entry = snd_info_create_card_entry(substream->pcm->card, name, card 557 sound/core/pcm.c struct snd_card *card; card 560 sound/core/pcm.c card = substream->pcm->card; card 563 sound/core/pcm.c entry = snd_info_create_card_entry(card, name, card 651 sound/core/pcm.c snd_device_initialize(&pstr->dev, pcm->card); card 654 sound/core/pcm.c dev_set_name(&pstr->dev, "pcmC%iD%i%c", pcm->card->number, pcm->device, card 703 sound/core/pcm.c static int _snd_pcm_new(struct snd_card *card, const char *id, int device, card 718 sound/core/pcm.c if (snd_BUG_ON(!card)) card 725 sound/core/pcm.c pcm->card = card; card 743 sound/core/pcm.c err = snd_device_new(card, SNDRV_DEV_PCM, pcm, card 773 sound/core/pcm.c int snd_pcm_new(struct snd_card *card, const char *id, int device, card 776 sound/core/pcm.c return _snd_pcm_new(card, id, device, playback_count, capture_count, card 801 sound/core/pcm.c int snd_pcm_new_internal(struct snd_card *card, const char *id, int device, card 805 sound/core/pcm.c return _snd_pcm_new(card, id, device, playback_count, capture_count, card 813 sound/core/pcm.c snd_ctl_remove(pstr->pcm->card, pstr->chmap_kctl); card 886 sound/core/pcm.c struct snd_card *card; card 900 sound/core/pcm.c card = pcm->card; card 901 sound/core/pcm.c prefer_subdevice = snd_ctl_get_preferred_subdevice(card, SND_CTL_SUBDEV_PCM); card 1067 sound/core/pcm.c err = snd_register_device(devtype, pcm->card, pcm->device, card 1170 sound/core/pcm.c pcm->card->number, pcm->device, pcm->id, pcm->name); card 116 sound/core/pcm_lib.c substream->pcm->card->number, card 492 sound/core/pcm_lib.c runtime->sync.id32[0] = substream->pcm->card->number; card 2456 sound/core/pcm_lib.c err = snd_ctl_add(pcm->card, info->kctl); card 53 sound/core/pcm_memory.c substream->pcm->card->number, substream->pcm->device, card 174 sound/core/pcm_memory.c entry = snd_info_create_card_entry(substream->pcm->card, "prealloc", card 182 sound/core/pcm_memory.c entry = snd_info_create_card_entry(substream->pcm->card, "prealloc_max", card 196 sound/core/pcm_native.c info->card = pcm->card->number; card 1832 sound/core/pcm_native.c struct snd_card *card; card 1840 sound/core/pcm_native.c card = substream->pcm->card; card 1915 sound/core/pcm_native.c if (card->shutdown) { card 1923 sound/core/pcm_native.c dev_dbg(substream->pcm->card->dev, card 1983 sound/core/pcm_native.c snd_card_unref(pcm->card); card 2536 sound/core/pcm_native.c snd_card_unref(pcm->card); card 2550 sound/core/pcm_native.c snd_card_unref(pcm->card); card 2563 sound/core/pcm_native.c err = snd_card_file_add(pcm->card, file); card 2566 sound/core/pcm_native.c if (!try_module_get(pcm->card->module)) { card 2588 sound/core/pcm_native.c if (pcm->card->shutdown) { card 2604 sound/core/pcm_native.c module_put(pcm->card->module); card 2606 sound/core/pcm_native.c snd_card_file_remove(pcm->card, file); card 2627 sound/core/pcm_native.c module_put(pcm->card->module); card 2628 sound/core/pcm_native.c snd_card_file_remove(pcm->card, file); card 2911 sound/core/pcm_native.c res = snd_power_wait(substream->pcm->card, SNDRV_CTL_POWER_D0); card 32 sound/core/pcm_param_trace.h __field(int, card) card 43 sound/core/pcm_param_trace.h __entry->card = substream->pcm->card->number; card 54 sound/core/pcm_param_trace.h __entry->card, card 72 sound/core/pcm_param_trace.h __field(int, card) card 93 sound/core/pcm_param_trace.h __entry->card = substream->pcm->card->number; card 114 sound/core/pcm_param_trace.h __entry->card, card 105 sound/core/pcm_timer.c tid.card = substream->pcm->card->number; card 108 sound/core/pcm_timer.c if (snd_timer_new(substream->pcm->card, "PCM", &tid, &timer) < 0) card 113 sound/core/pcm_timer.c tid.card, tid.device, tid.subdevice); card 115 sound/core/pcm_timer.c if (snd_device_register(timer->card, timer) < 0) { card 116 sound/core/pcm_timer.c snd_device_free(timer->card, timer); card 127 sound/core/pcm_timer.c snd_device_free(substream->pcm->card, substream->timer); card 16 sound/core/pcm_trace.h __field( unsigned int, card ) card 28 sound/core/pcm_trace.h __entry->card = (substream)->pcm->card->number; card 39 sound/core/pcm_trace.h __entry->card, __entry->device, card 54 sound/core/pcm_trace.h __field( unsigned int, card ) card 64 sound/core/pcm_trace.h __entry->card = (substream)->pcm->card->number; card 74 sound/core/pcm_trace.h __entry->card, __entry->device, card 87 sound/core/pcm_trace.h __field( unsigned int, card ) card 94 sound/core/pcm_trace.h __entry->card = (substream)->pcm->card->number; card 101 sound/core/pcm_trace.h __entry->card, __entry->device, card 110 sound/core/pcm_trace.h __field( unsigned int, card ) card 121 sound/core/pcm_trace.h __entry->card = (substream)->pcm->card->number; card 132 sound/core/pcm_trace.h __entry->card, card 53 sound/core/rawmidi.c static struct snd_rawmidi *snd_rawmidi_search(struct snd_card *card, int device) card 58 sound/core/rawmidi.c if (rawmidi->card == card && rawmidi->device == device) card 339 sound/core/rawmidi.c int snd_rawmidi_kernel_open(struct snd_card *card, int device, int subdevice, card 349 sound/core/rawmidi.c rmidi = snd_rawmidi_search(card, device); card 352 sound/core/rawmidi.c else if (!try_module_get(rmidi->card->module)) card 362 sound/core/rawmidi.c module_put(rmidi->card->module); card 370 sound/core/rawmidi.c struct snd_card *card; card 399 sound/core/rawmidi.c if (!try_module_get(rmidi->card->module)) { card 400 sound/core/rawmidi.c snd_card_unref(rmidi->card); card 405 sound/core/rawmidi.c card = rmidi->card; card 406 sound/core/rawmidi.c err = snd_card_file_add(card, file); card 420 sound/core/rawmidi.c subdevice = snd_ctl_get_preferred_subdevice(card, SND_CTL_SUBDEV_RAWMIDI); card 435 sound/core/rawmidi.c if (rmidi->card->shutdown) { card 457 sound/core/rawmidi.c snd_card_unref(rmidi->card); card 461 sound/core/rawmidi.c snd_card_file_remove(card, file); card 464 sound/core/rawmidi.c module_put(rmidi->card->module); card 465 sound/core/rawmidi.c snd_card_unref(rmidi->card); card 531 sound/core/rawmidi.c module_put(rmidi->card->module); card 546 sound/core/rawmidi.c module = rmidi->card->module; card 547 sound/core/rawmidi.c snd_card_file_remove(rmidi->card, file); card 561 sound/core/rawmidi.c info->card = rmidi->card->number; card 589 sound/core/rawmidi.c static int __snd_rawmidi_info_select(struct snd_card *card, card 596 sound/core/rawmidi.c rmidi = snd_rawmidi_search(card, info->device); card 614 sound/core/rawmidi.c int snd_rawmidi_info_select(struct snd_card *card, struct snd_rawmidi_info *info) card 619 sound/core/rawmidi.c ret = __snd_rawmidi_info_select(card, info); card 625 sound/core/rawmidi.c static int snd_rawmidi_info_select_user(struct snd_card *card, card 637 sound/core/rawmidi.c err = snd_rawmidi_info_select(card, &info); card 837 sound/core/rawmidi.c static int snd_rawmidi_control_ioctl(struct snd_card *card, card 856 sound/core/rawmidi.c if (snd_rawmidi_search(card, device)) card 877 sound/core/rawmidi.c return snd_rawmidi_info_select_user(card, argp); card 1040 sound/core/rawmidi.c if (rfile->rmidi->card->shutdown) card 1369 sound/core/rawmidi.c if (rfile->rmidi->card->shutdown) card 1567 sound/core/rawmidi.c int snd_rawmidi_new(struct snd_card *card, char *id, int device, card 1579 sound/core/rawmidi.c if (snd_BUG_ON(!card)) card 1586 sound/core/rawmidi.c rmidi->card = card; card 1596 sound/core/rawmidi.c snd_device_initialize(&rmidi->dev, card); card 1598 sound/core/rawmidi.c dev_set_name(&rmidi->dev, "midiC%iD%i", card->number, device); card 1612 sound/core/rawmidi.c err = snd_device_new(card, SNDRV_DEV_RAWMIDI, rmidi, &ops); card 1684 sound/core/rawmidi.c if (snd_rawmidi_search(rmidi->card, rmidi->device)) card 1693 sound/core/rawmidi.c rmidi->card, rmidi->device, card 1706 sound/core/rawmidi.c if ((int)rmidi->device == midi_map[rmidi->card->number]) { card 1708 sound/core/rawmidi.c rmidi->card, 0, &snd_rawmidi_f_ops, card 1712 sound/core/rawmidi.c rmidi->card->number, 0); card 1716 sound/core/rawmidi.c snd_oss_info_register(SNDRV_OSS_INFO_DEV_MIDI, rmidi->card->number, rmidi->name); card 1720 sound/core/rawmidi.c if ((int)rmidi->device == amidi_map[rmidi->card->number]) { card 1722 sound/core/rawmidi.c rmidi->card, 1, &snd_rawmidi_f_ops, card 1726 sound/core/rawmidi.c rmidi->card->number, 1); card 1733 sound/core/rawmidi.c entry = snd_info_create_card_entry(rmidi->card, name, rmidi->card->proc_root); card 1745 sound/core/rawmidi.c if (snd_seq_device_new(rmidi->card, rmidi->device, SNDRV_SEQ_DEV_ID_MIDISYNTH, 0, &rmidi->seq_dev) >= 0) { card 1748 sound/core/rawmidi.c sprintf(rmidi->seq_dev->name, "MIDI %d-%d", rmidi->card->number, rmidi->device); card 1749 sound/core/rawmidi.c snd_device_register(rmidi->card, rmidi->seq_dev); card 1784 sound/core/rawmidi.c if ((int)rmidi->device == midi_map[rmidi->card->number]) { card 1785 sound/core/rawmidi.c snd_unregister_oss_device(SNDRV_OSS_DEVICE_TYPE_MIDI, rmidi->card, 0); card 1787 sound/core/rawmidi.c snd_oss_info_unregister(SNDRV_OSS_INFO_DEV_MIDI, rmidi->card->number); card 1790 sound/core/rawmidi.c if ((int)rmidi->device == amidi_map[rmidi->card->number]) card 1791 sound/core/rawmidi.c snd_unregister_oss_device(SNDRV_OSS_DEVICE_TYPE_MIDI, rmidi->card, 1); card 142 sound/core/seq/seq_clientmgr.c int card = (clientid - SNDRV_SEQ_GLOBAL_CLIENTS) / card 144 sound/core/seq/seq_clientmgr.c if (card < snd_ecards_limit) { card 145 sound/core/seq/seq_clientmgr.c if (! card_requested[card]) { card 146 sound/core/seq/seq_clientmgr.c card_requested[card] = 1; card 147 sound/core/seq/seq_clientmgr.c snd_request_card(card); card 1241 sound/core/seq/seq_clientmgr.c info->card = cptr->data.kernel.card ? cptr->data.kernel.card->number : -1; card 1243 sound/core/seq/seq_clientmgr.c info->card = -1; card 2181 sound/core/seq/seq_clientmgr.c int snd_seq_create_kernel_client(struct snd_card *card, int client_index, card 2190 sound/core/seq/seq_clientmgr.c if (card && client_index >= SNDRV_SEQ_CLIENTS_PER_CARD) card 2192 sound/core/seq/seq_clientmgr.c if (card == NULL && client_index >= SNDRV_SEQ_GLOBAL_CLIENTS) card 2197 sound/core/seq/seq_clientmgr.c if (card) { card 2199 sound/core/seq/seq_clientmgr.c + card->number * SNDRV_SEQ_CLIENTS_PER_CARD; card 2214 sound/core/seq/seq_clientmgr.c client->data.kernel.card = card; card 30 sound/core/seq/seq_clientmgr.h struct snd_card *card; card 40 sound/core/seq/seq_midi.c struct snd_card *card; card 149 sound/core/seq/seq_midi.c struct snd_card *card, card 155 sound/core/seq/seq_midi.c msynth->card = card; card 170 sound/core/seq/seq_midi.c if ((err = snd_rawmidi_kernel_open(msynth->card, msynth->device, card 212 sound/core/seq/seq_midi.c if ((err = snd_rawmidi_kernel_open(msynth->card, msynth->device, card 269 sound/core/seq/seq_midi.c struct snd_card *card = dev->card; card 273 sound/core/seq/seq_midi.c if (snd_BUG_ON(!card || device < 0 || device >= SNDRV_RAWMIDI_DEVICES)) card 281 sound/core/seq/seq_midi.c if (snd_rawmidi_info_select(card, info) >= 0) card 284 sound/core/seq/seq_midi.c if (snd_rawmidi_info_select(card, info) >= 0) { card 298 sound/core/seq/seq_midi.c client = synths[card->number]; card 309 sound/core/seq/seq_midi.c card, 0, "%s", card->shortname[0] ? card 310 sound/core/seq/seq_midi.c (const char *)card->shortname : "External MIDI"); card 327 sound/core/seq/seq_midi.c if (snd_seq_midisynth_new(ms, card, device, p) < 0) card 342 sound/core/seq/seq_midi.c if (snd_rawmidi_info_select(card, info) >= 0) card 353 sound/core/seq/seq_midi.c sprintf(port->name, "MIDI %d-%d-%u", card->number, device, p); card 355 sound/core/seq/seq_midi.c sprintf(port->name, "MIDI %d-%d", card->number, device); card 389 sound/core/seq/seq_midi.c synths[card->number] = client; card 418 sound/core/seq/seq_midi.c struct snd_card *card = dev->card; card 422 sound/core/seq/seq_midi.c client = synths[card->number]; card 437 sound/core/seq/seq_midi.c synths[card->number] = NULL; card 90 sound/core/seq/seq_timer.c tmr->alsa_id.card = seq_default_timer_card; card 283 sound/core/seq/seq_timer.c tid.card = -1; card 274 sound/core/seq/seq_virmidi.c if (!try_module_get(rdev->card->module)) card 290 sound/core/seq/seq_virmidi.c module_put(rdev->card->module); card 304 sound/core/seq/seq_virmidi.c if (!try_module_get(rdev->card->module)) card 320 sound/core/seq/seq_virmidi.c module_put(rdev->card->module); card 360 sound/core/seq/seq_virmidi.c client = snd_seq_create_kernel_client(rdev->card, rdev->device, card 362 sound/core/seq/seq_virmidi.c rdev->card->number, card 372 sound/core/seq/seq_virmidi.c sprintf(pinfo->name, "VirMIDI %d-%d", rdev->card->number, rdev->device); card 478 sound/core/seq/seq_virmidi.c int snd_virmidi_new(struct snd_card *card, int device, struct snd_rawmidi **rrmidi) card 485 sound/core/seq/seq_virmidi.c if ((err = snd_rawmidi_new(card, "VirMidi", device, card 493 sound/core/seq/seq_virmidi.c snd_device_free(card, rmidi); card 496 sound/core/seq/seq_virmidi.c rdev->card = card; card 191 sound/core/seq_device.c int snd_seq_device_new(struct snd_card *card, int device, const char *id, card 213 sound/core/seq_device.c dev->card = card; card 219 sound/core/seq_device.c dev->dev.parent = &card->card_dev; card 222 sound/core/seq_device.c dev_set_name(&dev->dev, "%s-%d-%d", dev->id, card->number, device); card 225 sound/core/seq_device.c err = snd_device_new(card, SNDRV_DEV_SEQUENCER, dev, &dops); card 54 sound/core/sound.c void snd_request_card(int card) card 56 sound/core/sound.c if (snd_card_locked(card)) card 58 sound/core/sound.c if (card < 0 || card >= cards_limit) card 60 sound/core/sound.c request_module("snd-card-%i", card); card 121 sound/core/sound.c int card = SNDRV_MINOR_CARD(minor); card 122 sound/core/sound.c struct snd_card *ref = snd_card_ref(card); card 124 sound/core/sound.c snd_request_card(card); card 175 sound/core/sound.c static int snd_find_free_minor(int type, struct snd_card *card, int dev) card 198 sound/core/sound.c static int snd_find_free_minor(int type, struct snd_card *card, int dev) card 208 sound/core/sound.c if (snd_BUG_ON(!card)) card 210 sound/core/sound.c minor = SNDRV_MINOR(card->number, type); card 217 sound/core/sound.c if (snd_BUG_ON(!card)) card 219 sound/core/sound.c minor = SNDRV_MINOR(card->number, type + dev); card 246 sound/core/sound.c int snd_register_device(int type, struct snd_card *card, int dev, card 261 sound/core/sound.c preg->card = card ? card->number : -1; card 265 sound/core/sound.c preg->card_ptr = card; card 267 sound/core/sound.c minor = snd_find_free_minor(type, card, dev); card 354 sound/core/sound.c if (mptr->card >= 0) { card 357 sound/core/sound.c minor, mptr->card, mptr->device, card 361 sound/core/sound.c minor, mptr->card, card 45 sound/core/sound_oss.c static int snd_oss_kernel_minor(int type, struct snd_card *card, int dev) card 51 sound/core/sound_oss.c if (snd_BUG_ON(!card || dev < 0 || dev > 1)) card 53 sound/core/sound_oss.c minor = SNDRV_MINOR_OSS(card->number, (dev ? SNDRV_MINOR_OSS_MIXER1 : SNDRV_MINOR_OSS_MIXER)); card 62 sound/core/sound_oss.c if (snd_BUG_ON(!card || dev < 0 || dev > 1)) card 64 sound/core/sound_oss.c minor = SNDRV_MINOR_OSS(card->number, (dev ? SNDRV_MINOR_OSS_PCM1 : SNDRV_MINOR_OSS_PCM)); card 67 sound/core/sound_oss.c if (snd_BUG_ON(!card || dev < 0 || dev > 1)) card 69 sound/core/sound_oss.c minor = SNDRV_MINOR_OSS(card->number, (dev ? SNDRV_MINOR_OSS_MIDI1 : SNDRV_MINOR_OSS_MIDI)); card 72 sound/core/sound_oss.c minor = SNDRV_MINOR_OSS(card->number, SNDRV_MINOR_OSS_DMFM); card 85 sound/core/sound_oss.c int snd_register_oss_device(int type, struct snd_card *card, int dev, card 88 sound/core/sound_oss.c int minor = snd_oss_kernel_minor(type, card, dev); card 94 sound/core/sound_oss.c struct device *carddev = snd_card_get_device_link(card); card 96 sound/core/sound_oss.c if (card && card->number >= SNDRV_MINOR_OSS_DEVICES) card 104 sound/core/sound_oss.c preg->card = card ? card->number : -1; card 108 sound/core/sound_oss.c preg->card_ptr = card; card 148 sound/core/sound_oss.c int snd_unregister_oss_device(int type, struct snd_card *card, int dev) card 150 sound/core/sound_oss.c int minor = snd_oss_kernel_minor(type, card, dev); card 155 sound/core/sound_oss.c if (card && card->number >= SNDRV_MINOR_OSS_DEVICES) card 222 sound/core/sound_oss.c if (mptr->card >= 0) card 224 sound/core/sound_oss.c mptr->card, mptr->device, card 133 sound/core/timer.c (timer->card == NULL || card 134 sound/core/timer.c timer->card->number != tid->card)) card 156 sound/core/timer.c if (tid->card < snd_ecards_limit) card 157 sound/core/timer.c request_module("snd-card-%i", tid->card); card 313 sound/core/timer.c if (timer->card) card 314 sound/core/timer.c get_device(&timer->card->card_dev); card 325 sound/core/timer.c if (timer->card) card 326 sound/core/timer.c card_dev_to_put = &timer->card->card_dev; card 413 sound/core/timer.c if (timer->card) card 414 sound/core/timer.c *card_devp_to_put = &timer->card->card_dev; card 516 sound/core/timer.c if (timer->card && timer->card->shutdown) { card 604 sound/core/timer.c if (timer->card && timer->card->shutdown) card 795 sound/core/timer.c if (timer->card && timer->card->shutdown) { card 822 sound/core/timer.c if (timer->card && timer->card->shutdown) { card 905 sound/core/timer.c int snd_timer_new(struct snd_card *card, char *id, struct snd_timer_id *tid, card 920 sound/core/timer.c if (WARN_ON(!card)) card 929 sound/core/timer.c timer->card = card; card 944 sound/core/timer.c if (card != NULL) { card 945 sound/core/timer.c timer->module = card->module; card 946 sound/core/timer.c err = snd_device_new(card, SNDRV_DEV_TIMER, timer, &ops); card 1006 sound/core/timer.c if (timer1->card && timer->card) { card 1007 sound/core/timer.c if (timer1->card->number > timer->card->number) card 1009 sound/core/timer.c if (timer1->card->number < timer->card->number) card 1051 sound/core/timer.c if (timer->card && timer->card->shutdown) card 1083 sound/core/timer.c tid.card = -1; card 1224 sound/core/timer.c if (timer->card && timer->card->shutdown) card 1232 sound/core/timer.c timer->card->number, timer->tmr_device); card 1235 sound/core/timer.c snd_iprintf(buffer, "P%i-%i-%i: ", timer->card->number, card 1240 sound/core/timer.c timer->card ? timer->card->number : -1, card 1501 sound/core/timer.c id->card = -1; card 1510 sound/core/timer.c id->card = timer->card ? timer->card->number : -1; card 1552 sound/core/timer.c if (id.card < 0) { card 1553 sound/core/timer.c id.card = 0; card 1572 sound/core/timer.c if (timer->card->number > id.card) { card 1576 sound/core/timer.c if (timer->card->number < id.card) card 1625 sound/core/timer.c ginfo->card = t->card ? t->card->number : -1; card 1771 sound/core/timer.c info->card = t->card ? t->card->number : -1; card 26 sound/core/timer_compat.c s32 card; card 61 sound/core/timer_compat.c info.card = t->card ? t->card->number : -1; card 83 sound/drivers/aloop.c struct snd_card *card; card 194 sound/drivers/aloop.c struct snd_card *card; card 220 sound/drivers/aloop.c card = cable->streams[SNDRV_PCM_STREAM_PLAYBACK]->loopback->card; card 222 sound/drivers/aloop.c snd_ctl_notify(card, SNDRV_CTL_EVENT_MASK_VALUE, card 227 sound/drivers/aloop.c snd_ctl_notify(card, SNDRV_CTL_EVENT_MASK_VALUE, card 232 sound/drivers/aloop.c snd_ctl_notify(card, SNDRV_CTL_EVENT_MASK_VALUE, card 242 sound/drivers/aloop.c snd_ctl_notify(dpcm->loopback->card, card 777 sound/drivers/aloop.c err = snd_pcm_new(loopback->card, "Loopback PCM", device, card 1012 sound/drivers/aloop.c struct snd_card *card = loopback->card; card 1018 sound/drivers/aloop.c strcpy(card->mixername, "Loopback Mixer"); card 1054 sound/drivers/aloop.c err = snd_ctl_add(card, kctl); card 1126 sound/drivers/aloop.c return snd_card_ro_proc_new(loopback->card, name, loopback, card 1132 sound/drivers/aloop.c struct snd_card *card; card 1138 sound/drivers/aloop.c sizeof(struct loopback), &card); card 1141 sound/drivers/aloop.c loopback = card->private_data; card 1148 sound/drivers/aloop.c loopback->card = card; card 1162 sound/drivers/aloop.c strcpy(card->driver, "Loopback"); card 1163 sound/drivers/aloop.c strcpy(card->shortname, "Loopback"); card 1164 sound/drivers/aloop.c sprintf(card->longname, "Loopback %i", dev + 1); card 1165 sound/drivers/aloop.c err = snd_card_register(card); card 1167 sound/drivers/aloop.c platform_set_drvdata(devptr, card); card 1171 sound/drivers/aloop.c snd_card_free(card); card 1184 sound/drivers/aloop.c struct snd_card *card = dev_get_drvdata(pdev); card 1186 sound/drivers/aloop.c snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); card 1192 sound/drivers/aloop.c struct snd_card *card = dev_get_drvdata(pdev); card 1194 sound/drivers/aloop.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 119 sound/drivers/dummy.c struct snd_card *card; card 688 sound/drivers/dummy.c err = snd_pcm_new(dummy->card, "Dummy PCM", device, card 855 sound/drivers/dummy.c snd_ctl_notify(dummy->card, SNDRV_CTL_EVENT_MASK_INFO, card 857 sound/drivers/dummy.c snd_ctl_notify(dummy->card, SNDRV_CTL_EVENT_MASK_INFO, card 886 sound/drivers/dummy.c struct snd_card *card = dummy->card; card 892 sound/drivers/dummy.c strcpy(card->mixername, "Dummy Mixer"); card 897 sound/drivers/dummy.c err = snd_ctl_add(card, kcontrol); card 1026 sound/drivers/dummy.c snd_card_rw_proc_new(chip->card, "dummy_pcm", chip, card 1035 sound/drivers/dummy.c struct snd_card *card; card 1042 sound/drivers/dummy.c sizeof(struct snd_dummy), &card); card 1045 sound/drivers/dummy.c dummy = card->private_data; card 1046 sound/drivers/dummy.c dummy->card = card; card 1051 sound/drivers/dummy.c (*mdl)->name, card->number); card 1095 sound/drivers/dummy.c strcpy(card->driver, "Dummy"); card 1096 sound/drivers/dummy.c strcpy(card->shortname, "Dummy"); card 1097 sound/drivers/dummy.c sprintf(card->longname, "Dummy %i", dev + 1); card 1101 sound/drivers/dummy.c err = snd_card_register(card); card 1103 sound/drivers/dummy.c platform_set_drvdata(devptr, card); card 1107 sound/drivers/dummy.c snd_card_free(card); card 1120 sound/drivers/dummy.c struct snd_card *card = dev_get_drvdata(pdev); card 1122 sound/drivers/dummy.c snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); card 1128 sound/drivers/dummy.c struct snd_card *card = dev_get_drvdata(pdev); card 1130 sound/drivers/dummy.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 353 sound/drivers/ml403-ac97cr.c struct snd_card *card; card 1097 sound/drivers/ml403-ac97cr.c snd_ml403_ac97cr_create(struct snd_card *card, struct platform_device *pfdev, card 1114 sound/drivers/ml403-ac97cr.c ml403_ac97cr->card = card; card 1173 sound/drivers/ml403-ac97cr.c err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, ml403_ac97cr, &ops); card 1203 sound/drivers/ml403-ac97cr.c err = snd_ac97_bus(ml403_ac97cr->card, 0, &ops, NULL, &bus); card 1231 sound/drivers/ml403-ac97cr.c err = snd_pcm_new(ml403_ac97cr->card, "ML403AC97CR/1", device, 1, 1, card 1253 sound/drivers/ml403-ac97cr.c struct snd_card *card; card 1264 sound/drivers/ml403-ac97cr.c 0, &card); card 1267 sound/drivers/ml403-ac97cr.c err = snd_ml403_ac97cr_create(card, pfdev, &ml403_ac97cr); card 1270 sound/drivers/ml403-ac97cr.c snd_card_free(card); card 1274 sound/drivers/ml403-ac97cr.c card->private_data = ml403_ac97cr; card 1277 sound/drivers/ml403-ac97cr.c snd_card_free(card); card 1283 sound/drivers/ml403-ac97cr.c snd_card_free(card); card 1287 sound/drivers/ml403-ac97cr.c strcpy(card->driver, SND_ML403_AC97CR_DRIVER); card 1288 sound/drivers/ml403-ac97cr.c strcpy(card->shortname, "ML403 AC97 Controller Reference"); card 1289 sound/drivers/ml403-ac97cr.c sprintf(card->longname, "%s %s at 0x%lx, irq %i & %i, device %i", card 1290 sound/drivers/ml403-ac97cr.c card->shortname, card->driver, card 1294 sound/drivers/ml403-ac97cr.c err = snd_card_register(card); card 1296 sound/drivers/ml403-ac97cr.c snd_card_free(card); card 1299 sound/drivers/ml403-ac97cr.c platform_set_drvdata(pfdev, card); card 55 sound/drivers/mpu401/mpu401.c struct snd_card *card; card 63 sound/drivers/mpu401/mpu401.c 0, &card); card 66 sound/drivers/mpu401/mpu401.c strcpy(card->driver, "MPU-401 UART"); card 67 sound/drivers/mpu401/mpu401.c strcpy(card->shortname, card->driver); card 68 sound/drivers/mpu401/mpu401.c sprintf(card->longname, "%s at %#lx, ", card->shortname, port[dev]); card 70 sound/drivers/mpu401/mpu401.c sprintf(card->longname + strlen(card->longname), "irq %d", irq[dev]); card 72 sound/drivers/mpu401/mpu401.c strcat(card->longname, "polled"); card 75 sound/drivers/mpu401/mpu401.c err = snd_mpu401_uart_new(card, 0, MPU401_HW_MPU401, port[dev], 0, card 82 sound/drivers/mpu401/mpu401.c *rcard = card; card 86 sound/drivers/mpu401/mpu401.c snd_card_free(card); card 94 sound/drivers/mpu401/mpu401.c struct snd_card *card; card 104 sound/drivers/mpu401/mpu401.c err = snd_mpu401_create(&devptr->dev, dev, &card); card 107 sound/drivers/mpu401/mpu401.c if ((err = snd_card_register(card)) < 0) { card 108 sound/drivers/mpu401/mpu401.c snd_card_free(card); card 111 sound/drivers/mpu401/mpu401.c platform_set_drvdata(devptr, card); card 173 sound/drivers/mpu401/mpu401.c struct snd_card *card; card 182 sound/drivers/mpu401/mpu401.c err = snd_mpu401_create(&pnp_dev->dev, dev, &card); card 185 sound/drivers/mpu401/mpu401.c if ((err = snd_card_register(card)) < 0) { card 186 sound/drivers/mpu401/mpu401.c snd_card_free(card); card 189 sound/drivers/mpu401/mpu401.c pnp_set_drvdata(pnp_dev, card); card 199 sound/drivers/mpu401/mpu401.c struct snd_card *card = (struct snd_card *) pnp_get_drvdata(dev); card 201 sound/drivers/mpu401/mpu401.c snd_card_disconnect(card); card 202 sound/drivers/mpu401/mpu401.c snd_card_free_when_closed(card); card 509 sound/drivers/mpu401/mpu401_uart.c int snd_mpu401_uart_new(struct snd_card *card, int device, card 527 sound/drivers/mpu401/mpu401_uart.c if ((err = snd_rawmidi_new(card, "MPU-401U", device, card 578 sound/drivers/mpu401/mpu401_uart.c if (card->shortname[0]) card 580 sound/drivers/mpu401/mpu401_uart.c card->shortname); card 582 sound/drivers/mpu401/mpu401_uart.c sprintf(rmidi->name, "MPU-401 MIDI %d-%d",card->number, device); card 600 sound/drivers/mpu401/mpu401_uart.c snd_device_free(card, rmidi); card 124 sound/drivers/mtpav.c struct snd_card *card; card 632 sound/drivers/mtpav.c if ((rval = snd_rawmidi_new(mcard->card, "MotuMIDI", 0, card 660 sound/drivers/mtpav.c static void snd_mtpav_free(struct snd_card *card) card 662 sound/drivers/mtpav.c struct mtpav *crd = card->private_data; card 678 sound/drivers/mtpav.c struct snd_card *card; card 683 sound/drivers/mtpav.c sizeof(*mtp_card), &card); card 687 sound/drivers/mtpav.c mtp_card = card->private_data; card 689 sound/drivers/mtpav.c mtp_card->card = card; card 696 sound/drivers/mtpav.c card->private_free = snd_mtpav_free; card 708 sound/drivers/mtpav.c strcpy(card->driver, "MTPAV"); card 709 sound/drivers/mtpav.c strcpy(card->shortname, "MTPAV on parallel port"); card 710 sound/drivers/mtpav.c snprintf(card->longname, sizeof(card->longname), card 715 sound/drivers/mtpav.c err = snd_card_register(mtp_card->card); card 719 sound/drivers/mtpav.c platform_set_drvdata(dev, card); card 724 sound/drivers/mtpav.c snd_card_free(card); card 51 sound/drivers/mts64.c struct snd_card *card; card 70 sound/drivers/mts64.c static int snd_mts64_create(struct snd_card *card, card 84 sound/drivers/mts64.c mts->card = card; card 640 sound/drivers/mts64.c static int snd_mts64_ctl_create(struct snd_card *card, card 654 sound/drivers/mts64.c err = snd_ctl_add(card, snd_ctl_new1(control[i], mts)); card 751 sound/drivers/mts64.c static int snd_mts64_rawmidi_create(struct snd_card *card) card 753 sound/drivers/mts64.c struct mts64 *mts = card->private_data; card 759 sound/drivers/mts64.c err = snd_rawmidi_new(card, CARD_NAME, 0, card 804 sound/drivers/mts64.c err = snd_mts64_ctl_create(card, mts); card 889 sound/drivers/mts64.c static void snd_mts64_card_private_free(struct snd_card *card) card 891 sound/drivers/mts64.c struct mts64 *mts = card->private_data; card 907 sound/drivers/mts64.c struct snd_card *card = NULL; card 926 sound/drivers/mts64.c 0, &card); card 931 sound/drivers/mts64.c strcpy(card->driver, DRIVER_NAME); card 932 sound/drivers/mts64.c strcpy(card->shortname, "ESI " CARD_NAME); card 933 sound/drivers/mts64.c sprintf(card->longname, "%s at 0x%lx, irq %i", card 934 sound/drivers/mts64.c card->shortname, p->base, p->irq); card 936 sound/drivers/mts64.c mts64_cb.private = card; /* private */ card 954 sound/drivers/mts64.c if ((err = snd_mts64_create(card, pardev, &mts)) < 0) { card 958 sound/drivers/mts64.c card->private_data = mts; card 959 sound/drivers/mts64.c card->private_free = snd_mts64_card_private_free; card 967 sound/drivers/mts64.c if ((err = snd_mts64_rawmidi_create(card)) < 0) { card 976 sound/drivers/mts64.c platform_set_drvdata(pdev, card); card 979 sound/drivers/mts64.c if ((err = snd_card_register(card)) < 0) { card 992 sound/drivers/mts64.c snd_card_free(card); card 998 sound/drivers/mts64.c struct snd_card *card = platform_get_drvdata(pdev); card 1000 sound/drivers/mts64.c if (card) card 1001 sound/drivers/mts64.c snd_card_free(card); card 243 sound/drivers/opl3/opl3_lib.c tid.card = opl3->card->number; card 246 sound/drivers/opl3/opl3_lib.c if ((err = snd_timer_new(opl3->card, "AdLib timer #1", &tid, &timer)) >= 0) { card 263 sound/drivers/opl3/opl3_lib.c tid.card = opl3->card->number; card 266 sound/drivers/opl3/opl3_lib.c if ((err = snd_timer_new(opl3->card, "AdLib timer #2", &tid, &timer)) >= 0) { card 331 sound/drivers/opl3/opl3_lib.c int snd_opl3_new(struct snd_card *card, card 346 sound/drivers/opl3/opl3_lib.c opl3->card = card; card 351 sound/drivers/opl3/opl3_lib.c if ((err = snd_device_new(card, SNDRV_DEV_CODEC, opl3, &ops)) < 0) { card 388 sound/drivers/opl3/opl3_lib.c int snd_opl3_create(struct snd_card *card, card 399 sound/drivers/opl3/opl3_lib.c if ((err = snd_opl3_new(card, hardware, &opl3)) < 0) card 404 sound/drivers/opl3/opl3_lib.c snd_device_free(card, opl3); card 410 sound/drivers/opl3/opl3_lib.c snd_device_free(card, opl3); card 429 sound/drivers/opl3/opl3_lib.c snd_device_free(card, opl3); card 457 sound/drivers/opl3/opl3_lib.c snd_device_free(opl3->card, opl3->timer1); card 472 sound/drivers/opl3/opl3_lib.c struct snd_card *card = opl3->card; card 480 sound/drivers/opl3/opl3_lib.c if ((err = snd_hwdep_new(card, "OPL2/OPL3", device, &hw)) < 0) { card 481 sound/drivers/opl3/opl3_lib.c snd_device_free(card, opl3); card 515 sound/drivers/opl3/opl3_lib.c if (snd_seq_device_new(card, seq_device, SNDRV_SEQ_DEV_ID_OPL3, card 95 sound/drivers/opl3/opl3_oss.c if (snd_seq_device_new(opl3->card, 0, SNDRV_SEQ_DEV_ID_OSS, card 115 sound/drivers/opl3/opl3_oss.c snd_device_register(opl3->card, dev); card 27 sound/drivers/opl3/opl3_seq.c if (!try_module_get(opl3->card->module)) card 35 sound/drivers/opl3/opl3_seq.c module_put(opl3->card->module); card 225 sound/drivers/opl3/opl3_seq.c snd_seq_create_kernel_client(opl3->card, opl3->seq_dev_num, card 153 sound/drivers/opl4/opl4_lib.c if (snd_seq_device_new(opl4->card, seq_device, SNDRV_SEQ_DEV_ID_OPL4, card 179 sound/drivers/opl4/opl4_lib.c int snd_opl4_create(struct snd_card *card, card 208 sound/drivers/opl4/opl4_lib.c opl4->card = card; card 221 sound/drivers/opl4/opl4_lib.c err = snd_device_new(card, SNDRV_DEV_CODEC, opl4, &ops); card 227 sound/drivers/opl4/opl4_lib.c err = snd_opl3_create(card, fm_port, fm_port + 2, opl4->hardware, 1, &opl3); card 229 sound/drivers/opl4/opl4_lib.c snd_device_free(card, opl4); card 179 sound/drivers/opl4/opl4_local.h struct snd_card *card; card 71 sound/drivers/opl4/opl4_mixer.c struct snd_card *card = opl4->card; card 74 sound/drivers/opl4/opl4_mixer.c strcat(card->mixername, ",OPL4"); card 77 sound/drivers/opl4/opl4_mixer.c err = snd_ctl_add(card, snd_ctl_new1(&snd_opl4_controls[i], opl4)); card 90 sound/drivers/opl4/opl4_proc.c entry = snd_info_create_card_entry(opl4->card, "opl4-mem", opl4->card->proc_root); card 51 sound/drivers/opl4/opl4_seq.c if (!try_module_get(opl4->card->module)) card 58 sound/drivers/opl4/opl4_seq.c module_put(opl4->card->module); card 147 sound/drivers/opl4/opl4_seq.c client = snd_seq_create_kernel_client(opl4->card, opl4->seq_dev_num, card 44 sound/drivers/pcsp/pcsp.c static int snd_pcsp_create(struct snd_card *card) card 83 sound/drivers/pcsp/pcsp.c pcsp_chip.card = card; card 89 sound/drivers/pcsp/pcsp.c err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, &pcsp_chip, &ops); card 98 sound/drivers/pcsp/pcsp.c struct snd_card *card; card 107 sound/drivers/pcsp/pcsp.c err = snd_card_new(dev, index, id, THIS_MODULE, 0, &card); card 111 sound/drivers/pcsp/pcsp.c err = snd_pcsp_create(card); card 124 sound/drivers/pcsp/pcsp.c strcpy(card->driver, "PC-Speaker"); card 125 sound/drivers/pcsp/pcsp.c strcpy(card->shortname, "pcsp"); card 126 sound/drivers/pcsp/pcsp.c sprintf(card->longname, "Internal PC-Speaker at port 0x%x", card 129 sound/drivers/pcsp/pcsp.c err = snd_card_register(card); card 136 sound/drivers/pcsp/pcsp.c snd_card_free(card); card 161 sound/drivers/pcsp/pcsp.c snd_card_free(chip->card); card 54 sound/drivers/pcsp/pcsp.h struct snd_card *card; card 342 sound/drivers/pcsp/pcsp_lib.c err = snd_pcm_new(chip->card, "pcspeaker", 0, 1, 0, &chip->pcm); card 136 sound/drivers/pcsp/pcsp_mixer.c struct snd_card *card = chip->card; card 138 sound/drivers/pcsp/pcsp_mixer.c err = snd_ctl_add(card, snd_ctl_new1(ctls + i, chip)); card 148 sound/drivers/pcsp/pcsp_mixer.c struct snd_card *card = chip->card; card 161 sound/drivers/pcsp/pcsp_mixer.c strcpy(card->mixername, "PC-Speaker"); card 70 sound/drivers/portman2x4.c struct snd_card *card; card 84 sound/drivers/portman2x4.c static int portman_create(struct snd_card *card, card 98 sound/drivers/portman2x4.c pm->card = card; card 549 sound/drivers/portman2x4.c static int snd_portman_rawmidi_create(struct snd_card *card) card 551 sound/drivers/portman2x4.c struct portman *pm = card->private_data; card 556 sound/drivers/portman2x4.c err = snd_rawmidi_new(card, CARD_NAME, 0, card 688 sound/drivers/portman2x4.c static void snd_portman_card_private_free(struct snd_card *card) card 690 sound/drivers/portman2x4.c struct portman *pm = card->private_data; card 706 sound/drivers/portman2x4.c struct snd_card *card = NULL; card 725 sound/drivers/portman2x4.c 0, &card); card 730 sound/drivers/portman2x4.c strcpy(card->driver, DRIVER_NAME); card 731 sound/drivers/portman2x4.c strcpy(card->shortname, CARD_NAME); card 732 sound/drivers/portman2x4.c sprintf(card->longname, "%s at 0x%lx, irq %i", card 733 sound/drivers/portman2x4.c card->shortname, p->base, p->irq); card 735 sound/drivers/portman2x4.c portman_cb.private = card; /* private */ card 753 sound/drivers/portman2x4.c if ((err = portman_create(card, pardev, &pm)) < 0) { card 757 sound/drivers/portman2x4.c card->private_data = pm; card 758 sound/drivers/portman2x4.c card->private_free = snd_portman_card_private_free; card 766 sound/drivers/portman2x4.c if ((err = snd_portman_rawmidi_create(card)) < 0) { card 775 sound/drivers/portman2x4.c platform_set_drvdata(pdev, card); card 778 sound/drivers/portman2x4.c if ((err = snd_card_register(card)) < 0) { card 791 sound/drivers/portman2x4.c snd_card_free(card); card 797 sound/drivers/portman2x4.c struct snd_card *card = platform_get_drvdata(pdev); card 799 sound/drivers/portman2x4.c if (card) card 800 sound/drivers/portman2x4.c snd_card_free(card); card 107 sound/drivers/serial-u16550.c struct snd_card *card; card 771 sound/drivers/serial-u16550.c static int snd_uart16550_create(struct snd_card *card, card 790 sound/drivers/serial-u16550.c uart->card = card; card 822 sound/drivers/serial-u16550.c if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, uart, &ops)) < 0) { card 865 sound/drivers/serial-u16550.c err = snd_rawmidi_new(uart->card, "UART Serial MIDI", device, card 887 sound/drivers/serial-u16550.c struct snd_card *card; card 929 sound/drivers/serial-u16550.c 0, &card); card 933 sound/drivers/serial-u16550.c strcpy(card->driver, "Serial"); card 934 sound/drivers/serial-u16550.c strcpy(card->shortname, "Serial MIDI (UART16550A)"); card 936 sound/drivers/serial-u16550.c if ((err = snd_uart16550_create(card, card 950 sound/drivers/serial-u16550.c sprintf(card->longname, "%s [%s] at %#lx, irq %d", card 951 sound/drivers/serial-u16550.c card->shortname, card 956 sound/drivers/serial-u16550.c if ((err = snd_card_register(card)) < 0) card 959 sound/drivers/serial-u16550.c platform_set_drvdata(devptr, card); card 963 sound/drivers/serial-u16550.c snd_card_free(card); card 65 sound/drivers/virmidi.c struct snd_card *card; card 74 sound/drivers/virmidi.c struct snd_card *card; card 80 sound/drivers/virmidi.c sizeof(struct snd_card_virmidi), &card); card 83 sound/drivers/virmidi.c vmidi = card->private_data; card 84 sound/drivers/virmidi.c vmidi->card = card; card 96 sound/drivers/virmidi.c err = snd_virmidi_new(card, idx, &rmidi); card 105 sound/drivers/virmidi.c strcpy(card->driver, "VirMIDI"); card 106 sound/drivers/virmidi.c strcpy(card->shortname, "VirMIDI"); card 107 sound/drivers/virmidi.c sprintf(card->longname, "Virtual MIDI Card %i", dev + 1); card 109 sound/drivers/virmidi.c err = snd_card_register(card); card 111 sound/drivers/virmidi.c platform_set_drvdata(devptr, card); card 115 sound/drivers/virmidi.c snd_card_free(card); card 597 sound/drivers/vx/vx_core.c snd_iprintf(buffer, "%s\n", chip->card->longname); card 633 sound/drivers/vx/vx_core.c snd_card_ro_proc_new(chip->card, "vx-status", chip, vx_proc_read); card 719 sound/drivers/vx/vx_core.c snd_power_change_state(chip->card, SNDRV_CTL_POWER_D3hot); card 749 sound/drivers/vx/vx_core.c snd_power_change_state(chip->card, SNDRV_CTL_POWER_D0); card 768 sound/drivers/vx/vx_core.c struct vx_core *snd_vx_create(struct snd_card *card, struct snd_vx_hardware *hw, card 774 sound/drivers/vx/vx_core.c if (snd_BUG_ON(!card || !hw || !ops)) card 787 sound/drivers/vx/vx_core.c chip->card = card; card 788 sound/drivers/vx/vx_core.c card->private_data = chip; card 789 sound/drivers/vx/vx_core.c strcpy(card->driver, hw->name); card 790 sound/drivers/vx/vx_core.c sprintf(card->shortname, "Digigram %s", hw->name); card 94 sound/drivers/vx/vx_hwdep.c return snd_card_register(chip->card); card 903 sound/drivers/vx/vx_mixer.c struct snd_card *card = chip->card; card 906 sound/drivers/vx/vx_mixer.c strcpy(card->mixername, card->driver); card 913 sound/drivers/vx/vx_mixer.c if ((err = snd_ctl_add(card, snd_ctl_new1(&temp, chip))) < 0) card 924 sound/drivers/vx/vx_mixer.c if ((err = snd_ctl_add(card, snd_ctl_new1(&temp, chip))) < 0) card 929 sound/drivers/vx/vx_mixer.c if ((err = snd_ctl_add(card, snd_ctl_new1(&temp, chip))) < 0) card 934 sound/drivers/vx/vx_mixer.c if ((err = snd_ctl_add(card, snd_ctl_new1(&temp, chip))) < 0) card 939 sound/drivers/vx/vx_mixer.c if ((err = snd_ctl_add(card, snd_ctl_new1(&temp, chip))) < 0) card 947 sound/drivers/vx/vx_mixer.c if ((err = snd_ctl_add(card, snd_ctl_new1(&temp, chip))) < 0) card 952 sound/drivers/vx/vx_mixer.c if ((err = snd_ctl_add(card, snd_ctl_new1(&vx_control_audio_src, chip))) < 0) card 955 sound/drivers/vx/vx_mixer.c if ((err = snd_ctl_add(card, snd_ctl_new1(&vx_control_clock_mode, chip))) < 0) card 958 sound/drivers/vx/vx_mixer.c if ((err = snd_ctl_add(card, snd_ctl_new1(&vx_control_iec958_mask, chip))) < 0) card 960 sound/drivers/vx/vx_mixer.c if ((err = snd_ctl_add(card, snd_ctl_new1(&vx_control_iec958, chip))) < 0) card 971 sound/drivers/vx/vx_mixer.c if ((err = snd_ctl_add(card, snd_ctl_new1(&temp, chip))) < 0) card 979 sound/drivers/vx/vx_mixer.c if ((err = snd_ctl_add(card, snd_ctl_new1(&temp, chip))) < 0) card 986 sound/drivers/vx/vx_mixer.c if ((err = snd_ctl_add(card, snd_ctl_new1(&temp, chip))) < 0) card 1228 sound/drivers/vx/vx_pcm.c err = snd_pcm_new(chip->card, "VX PCM", i, card 1241 sound/drivers/vx/vx_pcm.c strcpy(pcm->name, chip->card->shortname); card 39 sound/firewire/amdtp-stream-trace.h __entry->dest = fw_parent_device(s->unit)->card->node_id; card 41 sound/firewire/amdtp-stream-trace.h __entry->src = fw_parent_device(s->unit)->card->node_id; card 961 sound/firewire/amdtp-stream.c s->context = fw_iso_context_create(fw_parent_device(s->unit)->card, card 1089 sound/firewire/amdtp-stream.c (fw_parent_device(s->unit)->card->node_id << CIP_SID_SHIFT) & CIP_SID_MASK); card 116 sound/firewire/bebob/bebob.c strcpy(bebob->card->driver, "BeBoB"); card 117 sound/firewire/bebob/bebob.c strcpy(bebob->card->shortname, model); card 118 sound/firewire/bebob/bebob.c strcpy(bebob->card->mixername, model); card 119 sound/firewire/bebob/bebob.c snprintf(bebob->card->longname, sizeof(bebob->card->longname), card 129 sound/firewire/bebob/bebob.c bebob_card_free(struct snd_card *card) card 131 sound/firewire/bebob/bebob.c struct snd_bebob *bebob = card->private_data; card 187 sound/firewire/bebob/bebob.c id[card_index], THIS_MODULE, 0, &bebob->card); card 195 sound/firewire/bebob/bebob.c bebob->card->private_free = bebob_card_free; card 196 sound/firewire/bebob/bebob.c bebob->card->private_data = bebob; card 233 sound/firewire/bebob/bebob.c err = snd_card_register(bebob->card); card 241 sound/firewire/bebob/bebob.c snd_card_free(bebob->card); card 302 sound/firewire/bebob/bebob.c fw_schedule_bus_reset(fw_parent_device(bebob->unit)->card, card 356 sound/firewire/bebob/bebob.c snd_card_free(bebob->card); card 79 sound/firewire/bebob/bebob.h struct snd_card *card; card 81 sound/firewire/bebob/bebob_hwdep.c info.card = dev->card->index; card 186 sound/firewire/bebob/bebob_hwdep.c err = snd_hwdep_new(bebob->card, "BeBoB", 0, &hwdep); card 123 sound/firewire/bebob/bebob_maudio.c rcode = fw_run_transaction(device->card, TCODE_WRITE_BLOCK_REQUEST, card 219 sound/firewire/bebob/bebob_maudio.c snd_ctl_notify(bebob->card, SNDRV_CTL_EVENT_MASK_VALUE, card 263 sound/firewire/bebob/bebob_maudio.c params = devm_kzalloc(&bebob->card->card_dev, card 336 sound/firewire/bebob/bebob_maudio.c snd_ctl_notify(bebob->card, SNDRV_CTL_EVENT_MASK_VALUE, card 596 sound/firewire/bebob/bebob_maudio.c err = snd_ctl_add(bebob->card, kctl); card 601 sound/firewire/bebob/bebob_maudio.c err = snd_ctl_add(bebob->card, kctl); card 607 sound/firewire/bebob/bebob_maudio.c err = snd_ctl_add(bebob->card, kctl); card 612 sound/firewire/bebob/bebob_maudio.c err = snd_ctl_add(bebob->card, kctl); card 89 sound/firewire/bebob/bebob_midi.c bebob->card->shortname, subs->number + 1); card 110 sound/firewire/bebob/bebob_midi.c err = snd_rawmidi_new(bebob->card, bebob->card->driver, 0, card 117 sound/firewire/bebob/bebob_midi.c "%s MIDI", bebob->card->shortname); card 345 sound/firewire/bebob/bebob_pcm.c err = snd_pcm_new(bebob->card, bebob->card->driver, 0, 1, 1, &pcm); card 351 sound/firewire/bebob/bebob_pcm.c "%s PCM", bebob->card->shortname); card 164 sound/firewire/bebob/bebob_proc.c entry = snd_info_create_card_entry(bebob->card, name, root); card 177 sound/firewire/bebob/bebob_proc.c root = snd_info_create_card_entry(bebob->card, "firewire", card 178 sound/firewire/bebob/bebob_proc.c bebob->card->proc_root); card 79 sound/firewire/dice/dice-hwdep.c info.card = dev->card->index; card 179 sound/firewire/dice/dice-hwdep.c err = snd_hwdep_new(dice->card, "DICE", 0, &hwdep); card 92 sound/firewire/dice/dice-midi.c "%s MIDI %d", dice->card->shortname, subs->number + 1); card 125 sound/firewire/dice/dice-midi.c err = snd_rawmidi_new(dice->card, dice->card->driver, 0, card 132 sound/firewire/dice/dice-midi.c "%s MIDI", dice->card->shortname); card 410 sound/firewire/dice/dice-pcm.c err = snd_pcm_new(dice->card, "DICE", i, playback, capture, card 415 sound/firewire/dice/dice-pcm.c strcpy(pcm->name, dice->card->shortname); card 286 sound/firewire/dice/dice-proc.c entry = snd_info_create_card_entry(dice->card, name, root); card 299 sound/firewire/dice/dice-proc.c root = snd_info_create_card_entry(dice->card, "firewire", card 300 sound/firewire/dice/dice-proc.c dice->card->proc_root); card 417 sound/firewire/dice/dice-stream.c if (generation != fw_parent_device(dice->unit)->card->generation) { card 132 sound/firewire/dice/dice-transaction.c static void dice_notification(struct fw_card *card, struct fw_request *request, card 142 sound/firewire/dice/dice-transaction.c fw_send_response(card, request, RCODE_TYPE_ERROR); card 146 sound/firewire/dice/dice-transaction.c fw_send_response(card, request, RCODE_ADDRESS_ERROR); card 156 sound/firewire/dice/dice-transaction.c fw_send_response(card, request, RCODE_COMPLETE); card 179 sound/firewire/dice/dice-transaction.c ((u64)device->card->node_id << OWNER_NODE_SHIFT) | card 227 sound/firewire/dice/dice-transaction.c ((u64)device->card->node_id << OWNER_NODE_SHIFT) | card 94 sound/firewire/dice/dice.c struct snd_card *card = dice->card; card 100 sound/firewire/dice/dice.c strcpy(card->driver, "DICE"); card 102 sound/firewire/dice/dice.c strcpy(card->shortname, "DICE"); card 103 sound/firewire/dice/dice.c BUILD_BUG_ON(NICK_NAME_SIZE < sizeof(card->shortname)); card 105 sound/firewire/dice/dice.c card->shortname, card 106 sound/firewire/dice/dice.c sizeof(card->shortname)); card 109 sound/firewire/dice/dice.c BUILD_BUG_ON(sizeof(card->shortname) % 4 != 0); card 110 sound/firewire/dice/dice.c for (i = 0; i < sizeof(card->shortname); i += 4) card 111 sound/firewire/dice/dice.c swab32s((u32 *)&card->shortname[i]); card 112 sound/firewire/dice/dice.c card->shortname[sizeof(card->shortname) - 1] = '\0'; card 119 sound/firewire/dice/dice.c snprintf(card->longname, sizeof(card->longname), card 124 sound/firewire/dice/dice.c strcpy(card->mixername, "DICE"); card 127 sound/firewire/dice/dice.c static void dice_card_free(struct snd_card *card) card 129 sound/firewire/dice/dice.c struct snd_dice *dice = card->private_data; card 144 sound/firewire/dice/dice.c &dice->card); card 147 sound/firewire/dice/dice.c dice->card->private_free = dice_card_free; card 148 sound/firewire/dice/dice.c dice->card->private_data = dice; card 182 sound/firewire/dice/dice.c err = snd_card_register(dice->card); card 190 sound/firewire/dice/dice.c snd_card_free(dice->card); card 246 sound/firewire/dice/dice.c snd_card_free(dice->card); card 76 sound/firewire/dice/dice.h struct snd_card *card; card 87 sound/firewire/digi00x/digi00x-hwdep.c info.card = dev->card->index; card 187 sound/firewire/digi00x/digi00x-hwdep.c err = snd_hwdep_new(dg00x->card, "Digi00x", 0, &hwdep); card 105 sound/firewire/digi00x/digi00x-midi.c dg00x->card->shortname, card 110 sound/firewire/digi00x/digi00x-midi.c dg00x->card->shortname); card 134 sound/firewire/digi00x/digi00x-midi.c err = snd_rawmidi_new(dg00x->card, dg00x->card->driver, is_console, card 145 sound/firewire/digi00x/digi00x-midi.c dg00x->card->shortname); card 324 sound/firewire/digi00x/digi00x-pcm.c err = snd_pcm_new(dg00x->card, dg00x->card->driver, 0, 1, 1, &pcm); card 330 sound/firewire/digi00x/digi00x-pcm.c "%s PCM", dg00x->card->shortname); card 76 sound/firewire/digi00x/digi00x-proc.c root = snd_info_create_card_entry(dg00x->card, "firewire", card 77 sound/firewire/digi00x/digi00x-proc.c dg00x->card->proc_root); card 83 sound/firewire/digi00x/digi00x-proc.c entry = snd_info_create_card_entry(dg00x->card, "clock", root); card 337 sound/firewire/digi00x/digi00x-stream.c if (generation != fw_parent_device(dg00x->unit)->card->generation) { card 23 sound/firewire/digi00x/digi00x-transaction.c static void handle_message(struct fw_card *card, struct fw_request *request, card 31 sound/firewire/digi00x/digi00x-transaction.c fw_send_response(card, request, RCODE_COMPLETE); card 43 sound/firewire/digi00x/digi00x-transaction.c data[0] = cpu_to_be32((device->card->node_id << 16) | card 32 sound/firewire/digi00x/digi00x.c strcpy(dg00x->card->driver, "Digi00x"); card 33 sound/firewire/digi00x/digi00x.c strcpy(dg00x->card->shortname, model); card 34 sound/firewire/digi00x/digi00x.c strcpy(dg00x->card->mixername, model); card 35 sound/firewire/digi00x/digi00x.c snprintf(dg00x->card->longname, sizeof(dg00x->card->longname), card 43 sound/firewire/digi00x/digi00x.c static void dg00x_card_free(struct snd_card *card) card 45 sound/firewire/digi00x/digi00x.c struct snd_dg00x *dg00x = card->private_data; card 61 sound/firewire/digi00x/digi00x.c &dg00x->card); card 64 sound/firewire/digi00x/digi00x.c dg00x->card->private_free = dg00x_card_free; card 65 sound/firewire/digi00x/digi00x.c dg00x->card->private_data = dg00x; card 93 sound/firewire/digi00x/digi00x.c err = snd_card_register(dg00x->card); card 101 sound/firewire/digi00x/digi00x.c snd_card_free(dg00x->card); card 167 sound/firewire/digi00x/digi00x.c snd_card_free(dg00x->card); card 34 sound/firewire/digi00x/digi00x.h struct snd_card *card; card 340 sound/firewire/fcp.c static void fcp_response(struct fw_card *card, struct fw_request *request, card 354 sound/firewire/fcp.c if (device->card != card || card 79 sound/firewire/fireface/ff-hwdep.c info.card = dev->card->index; card 179 sound/firewire/fireface/ff-hwdep.c err = snd_hwdep_new(ff->card, ff->card->driver, 0, &hwdep); card 183 sound/firewire/fireface/ff-hwdep.c strcpy(hwdep->name, ff->card->driver); card 103 sound/firewire/fireface/ff-midi.c err = snd_rawmidi_new(ff->card, ff->card->driver, 0, card 110 sound/firewire/fireface/ff-midi.c "%s MIDI", ff->card->shortname); card 117 sound/firewire/fireface/ff-midi.c set_midi_substream_names(stream, ff->card->shortname); card 123 sound/firewire/fireface/ff-midi.c set_midi_substream_names(stream, ff->card->shortname); card 368 sound/firewire/fireface/ff-pcm.c err = snd_pcm_new(ff->card, ff->card->driver, 0, 1, 1, &pcm); card 374 sound/firewire/fireface/ff-pcm.c "%s PCM", ff->card->shortname); card 42 sound/firewire/fireface/ff-proc.c entry = snd_info_create_card_entry(ff->card, name, root); card 55 sound/firewire/fireface/ff-proc.c root = snd_info_create_card_entry(ff->card, "firewire", card 56 sound/firewire/fireface/ff-proc.c ff->card->proc_root); card 380 sound/firewire/fireface/ff-protocol-former.c if (generation != fw_parent_device(ff->unit)->card->generation) { card 494 sound/firewire/fireface/ff-protocol-former.c if (generation != fw_parent_device(ff->unit)->card->generation) { card 193 sound/firewire/fireface/ff-protocol-latter.c if (generation != fw_parent_device(ff->unit)->card->generation) { card 35 sound/firewire/fireface/ff-transaction.c static void finish_transmit_midi0_msg(struct fw_card *card, int rcode, card 44 sound/firewire/fireface/ff-transaction.c static void finish_transmit_midi1_msg(struct fw_card *card, int rcode, card 108 sound/firewire/fireface/ff-transaction.c fw_send_request(fw_dev->card, &ff->transactions[port], tcode, card 128 sound/firewire/fireface/ff-transaction.c static void handle_midi_msg(struct fw_card *card, struct fw_request *request, card 136 sound/firewire/fireface/ff-transaction.c fw_send_response(card, request, RCODE_COMPLETE); card 176 sound/firewire/fireface/ff-transaction.c struct fw_card *fw_card = fw_parent_device(ff->unit)->card; card 20 sound/firewire/fireface/ff.c strcpy(ff->card->driver, "Fireface"); card 21 sound/firewire/fireface/ff.c strcpy(ff->card->shortname, ff->spec->name); card 22 sound/firewire/fireface/ff.c strcpy(ff->card->mixername, ff->spec->name); card 23 sound/firewire/fireface/ff.c snprintf(ff->card->longname, sizeof(ff->card->longname), card 29 sound/firewire/fireface/ff.c static void ff_card_free(struct snd_card *card) card 31 sound/firewire/fireface/ff.c struct snd_ff *ff = card->private_data; card 46 sound/firewire/fireface/ff.c &ff->card); card 49 sound/firewire/fireface/ff.c ff->card->private_free = ff_card_free; card 50 sound/firewire/fireface/ff.c ff->card->private_data = ff; card 76 sound/firewire/fireface/ff.c err = snd_card_register(ff->card); card 84 sound/firewire/fireface/ff.c snd_card_free(ff->card); card 140 sound/firewire/fireface/ff.c snd_card_free(ff->card); card 61 sound/firewire/fireface/ff.h struct snd_card *card; card 93 sound/firewire/fireworks/fireworks.c strcpy(efw->card->driver, "Fireworks"); card 94 sound/firewire/fireworks/fireworks.c strcpy(efw->card->shortname, hwinfo->model_name); card 95 sound/firewire/fireworks/fireworks.c strcpy(efw->card->mixername, hwinfo->model_name); card 96 sound/firewire/fireworks/fireworks.c snprintf(efw->card->longname, sizeof(efw->card->longname), card 187 sound/firewire/fireworks/fireworks.c efw_card_free(struct snd_card *card) card 189 sound/firewire/fireworks/fireworks.c struct snd_efw *efw = card->private_data; card 221 sound/firewire/fireworks/fireworks.c id[card_index], THIS_MODULE, 0, &efw->card); card 229 sound/firewire/fireworks/fireworks.c efw->card->private_free = efw_card_free; card 230 sound/firewire/fireworks/fireworks.c efw->card->private_data = efw; card 235 sound/firewire/fireworks/fireworks.c efw->resp_buf = devm_kzalloc(&efw->card->card_dev, card 268 sound/firewire/fireworks/fireworks.c err = snd_card_register(efw->card); card 276 sound/firewire/fireworks/fireworks.c snd_card_free(efw->card); card 337 sound/firewire/fireworks/fireworks.c snd_card_free(efw->card); card 61 sound/firewire/fireworks/fireworks.h struct snd_card *card; card 212 sound/firewire/fireworks/fireworks_hwdep.c info.card = dev->card->index; card 318 sound/firewire/fireworks/fireworks_hwdep.c err = snd_hwdep_new(efw->card, "Fireworks", 0, &hwdep); card 88 sound/firewire/fireworks/fireworks_midi.c "%s MIDI %d", efw->card->shortname, subs->number + 1); card 109 sound/firewire/fireworks/fireworks_midi.c err = snd_rawmidi_new(efw->card, efw->card->driver, 0, card 116 sound/firewire/fireworks/fireworks_midi.c "%s MIDI", efw->card->shortname); card 373 sound/firewire/fireworks/fireworks_pcm.c err = snd_pcm_new(efw->card, efw->card->driver, 0, 1, 1, &pcm); card 378 sound/firewire/fireworks/fireworks_pcm.c snprintf(pcm->name, sizeof(pcm->name), "%s PCM", efw->card->shortname); card 200 sound/firewire/fireworks/fireworks_proc.c entry = snd_info_create_card_entry(efw->card, name, root); card 213 sound/firewire/fireworks/fireworks_proc.c root = snd_info_create_card_entry(efw->card, "firewire", card 214 sound/firewire/fireworks/fireworks_proc.c efw->card->proc_root); card 165 sound/firewire/fireworks/fireworks_transaction.c handle_resp_for_user(struct fw_card *card, int generation, int source, card 179 sound/firewire/fireworks/fireworks_transaction.c if ((device->card != card) || card 197 sound/firewire/fireworks/fireworks_transaction.c handle_resp_for_kernel(struct fw_card *card, int generation, int source, card 207 sound/firewire/fireworks/fireworks_transaction.c if ((device->card != card) || card 226 sound/firewire/fireworks/fireworks_transaction.c efw_response(struct fw_card *card, struct fw_request *request, card 245 sound/firewire/fireworks/fireworks_transaction.c handle_resp_for_kernel(card, generation, source, card 248 sound/firewire/fireworks/fireworks_transaction.c handle_resp_for_user(card, generation, source, card 251 sound/firewire/fireworks/fireworks_transaction.c handle_resp_for_user(card, generation, source, card 255 sound/firewire/fireworks/fireworks_transaction.c fw_send_response(card, request, rcode); card 50 sound/firewire/isight.c struct snd_card *card; card 367 sound/firewire/isight.c isight->context = fw_iso_context_create(isight->device->card, card 461 sound/firewire/isight.c err = snd_pcm_new(isight->card, "iSight", 0, 0, 1, &pcm); card 589 sound/firewire/isight.c err = snd_ctl_add(isight->card, ctl); card 593 sound/firewire/isight.c err = snd_ctl_add(isight->card, snd_ctl_new1(&mute_control, isight)); card 600 sound/firewire/isight.c static void isight_card_free(struct snd_card *card) card 602 sound/firewire/isight.c struct isight *isight = card->private_data; card 623 sound/firewire/isight.c struct snd_card *card; card 628 sound/firewire/isight.c sizeof(*isight), &card); card 632 sound/firewire/isight.c isight = card->private_data; card 633 sound/firewire/isight.c isight->card = card; card 645 sound/firewire/isight.c card->private_free = isight_card_free; card 647 sound/firewire/isight.c strcpy(card->driver, "iSight"); card 648 sound/firewire/isight.c strcpy(card->shortname, "Apple iSight"); card 649 sound/firewire/isight.c snprintf(card->longname, sizeof(card->longname), card 653 sound/firewire/isight.c strcpy(card->mixername, "iSight"); card 663 sound/firewire/isight.c err = snd_card_register(card); card 671 sound/firewire/isight.c snd_card_free(card); card 698 sound/firewire/isight.c snd_card_disconnect(isight->card); card 705 sound/firewire/isight.c snd_card_free(isight->card); card 64 sound/firewire/iso-resources.c static int current_bandwidth_overhead(struct fw_card *card) card 76 sound/firewire/iso-resources.c return card->gap_count < 63 ? card->gap_count * 97 / 10 + 89 : 512; card 79 sound/firewire/iso-resources.c static int wait_isoch_resource_delay_after_bus_reset(struct fw_card *card) card 82 sound/firewire/iso-resources.c s64 delay = (card->reset_jiffies + HZ) - get_jiffies_64(); card 108 sound/firewire/iso-resources.c struct fw_card *card = fw_parent_device(r->unit)->card; card 117 sound/firewire/iso-resources.c spin_lock_irq(&card->lock); card 118 sound/firewire/iso-resources.c r->generation = card->generation; card 119 sound/firewire/iso-resources.c r->bandwidth_overhead = current_bandwidth_overhead(card); card 120 sound/firewire/iso-resources.c spin_unlock_irq(&card->lock); card 122 sound/firewire/iso-resources.c err = wait_isoch_resource_delay_after_bus_reset(card); card 129 sound/firewire/iso-resources.c fw_iso_resource_manage(card, r->generation, r->channels_mask, card 166 sound/firewire/iso-resources.c struct fw_card *card = fw_parent_device(r->unit)->card; card 176 sound/firewire/iso-resources.c spin_lock_irq(&card->lock); card 177 sound/firewire/iso-resources.c r->generation = card->generation; card 178 sound/firewire/iso-resources.c r->bandwidth_overhead = current_bandwidth_overhead(card); card 179 sound/firewire/iso-resources.c spin_unlock_irq(&card->lock); card 183 sound/firewire/iso-resources.c fw_iso_resource_manage(card, r->generation, 1uLL << r->channel, card 213 sound/firewire/iso-resources.c struct fw_card *card; card 219 sound/firewire/iso-resources.c card = fw_parent_device(r->unit)->card; card 225 sound/firewire/iso-resources.c fw_iso_resource_manage(card, r->generation, 1uLL << r->channel, card 46 sound/firewire/lib.c rcode = fw_run_transaction(device->card, tcode, card 90 sound/firewire/lib.c delay = fw_parent_device(unit)->card->reset_jiffies card 33 sound/firewire/motu/amdtp-motu-trace.h __entry->dst = fw_parent_device(s->unit)->card->node_id; card 35 sound/firewire/motu/amdtp-motu-trace.h __entry->src = fw_parent_device(s->unit)->card->node_id; card 62 sound/firewire/motu/amdtp-motu-trace.h __entry->dst = fw_parent_device(s->unit)->card->node_id; card 64 sound/firewire/motu/amdtp-motu-trace.h __entry->src = fw_parent_device(s->unit)->card->node_id; card 86 sound/firewire/motu/motu-hwdep.c info.card = dev->card->index; card 186 sound/firewire/motu/motu-hwdep.c err = snd_hwdep_new(motu->card, motu->card->driver, 0, &hwdep); card 92 sound/firewire/motu/motu-midi.c "%s MIDI %d", motu->card->shortname, subs->number + 1); card 113 sound/firewire/motu/motu-midi.c err = snd_rawmidi_new(motu->card, motu->card->driver, 0, 1, 1, &rmidi); card 118 sound/firewire/motu/motu-midi.c "%s MIDI", motu->card->shortname); card 350 sound/firewire/motu/motu-pcm.c err = snd_pcm_new(motu->card, motu->card->driver, 0, 1, 1, &pcm); card 354 sound/firewire/motu/motu-pcm.c strcpy(pcm->name, motu->card->shortname); card 88 sound/firewire/motu/motu-proc.c entry = snd_info_create_card_entry(motu->card, name, root); card 101 sound/firewire/motu/motu-proc.c root = snd_info_create_card_entry(motu->card, "firewire", card 102 sound/firewire/motu/motu-proc.c motu->card->proc_root); card 219 sound/firewire/motu/motu-stream.c if (generation != fw_parent_device(motu->unit)->card->generation) { card 47 sound/firewire/motu/motu-transaction.c static void handle_message(struct fw_card *card, struct fw_request *request, card 57 sound/firewire/motu/motu-transaction.c fw_send_response(card, request, RCODE_COMPLETE); card 62 sound/firewire/motu/motu-transaction.c fw_send_response(card, request, RCODE_ADDRESS_ERROR); card 70 sound/firewire/motu/motu-transaction.c fw_send_response(card, request, RCODE_COMPLETE); card 85 sound/firewire/motu/motu-transaction.c data = cpu_to_be32((device->card->node_id << 16) | card 44 sound/firewire/motu/motu.c strcpy(motu->card->driver, "FW-MOTU"); card 45 sound/firewire/motu/motu.c strcpy(motu->card->shortname, motu->spec->name); card 46 sound/firewire/motu/motu.c strcpy(motu->card->mixername, motu->spec->name); card 47 sound/firewire/motu/motu.c snprintf(motu->card->longname, sizeof(motu->card->longname), card 54 sound/firewire/motu/motu.c static void motu_card_free(struct snd_card *card) card 56 sound/firewire/motu/motu.c struct snd_motu *motu = card->private_data; card 71 sound/firewire/motu/motu.c &motu->card); card 74 sound/firewire/motu/motu.c motu->card->private_free = motu_card_free; card 75 sound/firewire/motu/motu.c motu->card->private_data = motu; card 106 sound/firewire/motu/motu.c err = snd_card_register(motu->card); card 114 sound/firewire/motu/motu.c snd_card_free(motu->card); card 156 sound/firewire/motu/motu.c snd_card_free(motu->card); card 44 sound/firewire/motu/motu.h struct snd_card *card; card 79 sound/firewire/oxfw/oxfw-hwdep.c info.card = dev->card->index; card 179 sound/firewire/oxfw/oxfw-hwdep.c err = snd_hwdep_new(oxfw->card, oxfw->card->driver, 0, &hwdep); card 182 sound/firewire/oxfw/oxfw-hwdep.c strcpy(hwdep->name, oxfw->card->driver); card 134 sound/firewire/oxfw/oxfw-midi.c oxfw->card->shortname, subs->number + 1); card 158 sound/firewire/oxfw/oxfw-midi.c err = snd_rawmidi_new(oxfw->card, oxfw->card->driver, 0, card 165 sound/firewire/oxfw/oxfw-midi.c "%s MIDI", oxfw->card->shortname); card 420 sound/firewire/oxfw/oxfw-pcm.c err = snd_pcm_new(oxfw->card, oxfw->card->driver, 0, 1, cap, &pcm); card 425 sound/firewire/oxfw/oxfw-pcm.c strcpy(pcm->name, oxfw->card->shortname); card 84 sound/firewire/oxfw/oxfw-proc.c entry = snd_info_create_card_entry(oxfw->card, name, root); card 97 sound/firewire/oxfw/oxfw-proc.c root = snd_info_create_card_entry(oxfw->card, "firewire", card 98 sound/firewire/oxfw/oxfw-proc.c oxfw->card->proc_root); card 94 sound/firewire/oxfw/oxfw-scs1x.c static void handle_hss(struct fw_card *card, struct fw_request *request, card 121 sound/firewire/oxfw/oxfw-scs1x.c fw_send_response(card, request, rcode); card 124 sound/firewire/oxfw/oxfw-scs1x.c static void scs_write_callback(struct fw_card *card, int rcode, card 270 sound/firewire/oxfw/oxfw-scs1x.c fw_send_request(scs->fw_dev->card, &scs->transaction, card 374 sound/firewire/oxfw/oxfw-scs1x.c scs = devm_kzalloc(&oxfw->card->card_dev, sizeof(struct fw_scs1x), card 395 sound/firewire/oxfw/oxfw-scs1x.c err = snd_rawmidi_new(oxfw->card, "SCS.1x", 0, 1, 1, &rmidi); card 402 sound/firewire/oxfw/oxfw-scs1x.c "%s MIDI", oxfw->card->shortname); card 273 sound/firewire/oxfw/oxfw-spkr.c spkr = devm_kzalloc(&oxfw->card->card_dev, sizeof(struct fw_spkr), card 313 sound/firewire/oxfw/oxfw-spkr.c err = snd_ctl_add(oxfw->card, card 593 sound/firewire/oxfw/oxfw-stream.c formats[eid] = devm_kmemdup(&oxfw->card->card_dev, buf, *len, card 612 sound/firewire/oxfw/oxfw-stream.c formats[eid] = devm_kmemdup(&oxfw->card->card_dev, buf, *len, card 675 sound/firewire/oxfw/oxfw-stream.c formats[eid] = devm_kmemdup(&oxfw->card->card_dev, buf, len, card 104 sound/firewire/oxfw/oxfw.c strcpy(oxfw->card->driver, d); card 105 sound/firewire/oxfw/oxfw.c strcpy(oxfw->card->mixername, m); card 106 sound/firewire/oxfw/oxfw.c strcpy(oxfw->card->shortname, m); card 108 sound/firewire/oxfw/oxfw.c snprintf(oxfw->card->longname, sizeof(oxfw->card->longname), card 117 sound/firewire/oxfw/oxfw.c static void oxfw_card_free(struct snd_card *card) card 119 sound/firewire/oxfw/oxfw.c struct snd_oxfw *oxfw = card->private_data; card 191 sound/firewire/oxfw/oxfw.c &oxfw->card); card 194 sound/firewire/oxfw/oxfw.c oxfw->card->private_free = oxfw_card_free; card 195 sound/firewire/oxfw/oxfw.c oxfw->card->private_data = oxfw; card 227 sound/firewire/oxfw/oxfw.c err = snd_card_register(oxfw->card); card 235 sound/firewire/oxfw/oxfw.c snd_card_free(oxfw->card); card 299 sound/firewire/oxfw/oxfw.c snd_card_free(oxfw->card); card 38 sound/firewire/oxfw/oxfw.h struct snd_card *card; card 44 sound/firewire/packets-buffer.c err = fw_iso_buffer_init(&b->iso_buffer, fw_parent_device(unit)->card, card 74 sound/firewire/packets-buffer.c fw_iso_buffer_destroy(&b->iso_buffer, fw_parent_device(unit)->card); card 152 sound/firewire/tascam/tascam-hwdep.c info.card = dev->card->index; card 262 sound/firewire/tascam/tascam-hwdep.c err = snd_hwdep_new(tscm->card, "Tascam", 0, &hwdep); card 90 sound/firewire/tascam/tascam-midi.c err = snd_rawmidi_new(tscm->card, tscm->card->driver, 0, card 98 sound/firewire/tascam/tascam-midi.c "%s MIDI", tscm->card->shortname); card 113 sound/firewire/tascam/tascam-midi.c tscm->card->shortname, subs->number + 1); card 128 sound/firewire/tascam/tascam-midi.c tscm->card->shortname, subs->number + 1); card 256 sound/firewire/tascam/tascam-pcm.c err = snd_pcm_new(tscm->card, tscm->card->driver, 0, 1, 1, &pcm); card 262 sound/firewire/tascam/tascam-pcm.c "%s PCM", tscm->card->shortname); card 59 sound/firewire/tascam/tascam-proc.c entry = snd_info_create_card_entry(tscm->card, name, root); card 72 sound/firewire/tascam/tascam-proc.c root = snd_info_create_card_entry(tscm->card, "firewire", card 73 sound/firewire/tascam/tascam-proc.c tscm->card->proc_root); card 435 sound/firewire/tascam/tascam-stream.c if (generation != fw_parent_device(tscm->unit)->card->generation) { card 145 sound/firewire/tascam/tascam-transaction.c static void async_midi_port_callback(struct fw_card *card, int rcode, card 228 sound/firewire/tascam/tascam-transaction.c fw_send_request(port->parent->card, &port->transaction, card 245 sound/firewire/tascam/tascam-transaction.c static void handle_midi_tx(struct fw_card *card, struct fw_request *request, card 289 sound/firewire/tascam/tascam-transaction.c fw_send_response(card, request, RCODE_COMPLETE); card 340 sound/firewire/tascam/tascam-transaction.c reg = cpu_to_be32((device->card->node_id << 16) | card 79 sound/firewire/tascam/tascam.c strcpy(tscm->card->driver, "FW-TASCAM"); card 80 sound/firewire/tascam/tascam.c strcpy(tscm->card->shortname, model); card 81 sound/firewire/tascam/tascam.c strcpy(tscm->card->mixername, model); card 82 sound/firewire/tascam/tascam.c snprintf(tscm->card->longname, sizeof(tscm->card->longname), card 90 sound/firewire/tascam/tascam.c static void tscm_card_free(struct snd_card *card) card 92 sound/firewire/tascam/tascam.c struct snd_tscm *tscm = card->private_data; card 104 sound/firewire/tascam/tascam.c &tscm->card); card 107 sound/firewire/tascam/tascam.c tscm->card->private_free = tscm_card_free; card 108 sound/firewire/tascam/tascam.c tscm->card->private_data = tscm; card 136 sound/firewire/tascam/tascam.c err = snd_card_register(tscm->card); card 144 sound/firewire/tascam/tascam.c snd_card_free(tscm->card); card 206 sound/firewire/tascam/tascam.c snd_card_free(tscm->card); card 67 sound/firewire/tascam/tascam.h struct snd_card *card; card 532 sound/i2c/cs8427.c err = snd_ctl_add(cs8427->bus->card, kctl); card 560 sound/i2c/cs8427.c snd_ctl_notify(cs8427->bus->card, card 597 sound/i2c/cs8427.c snd_ctl_notify(cs8427->bus->card, card 50 sound/i2c/i2c.c snd_device_free(bus->card, slave); card 65 sound/i2c/i2c.c int snd_i2c_bus_create(struct snd_card *card, const char *name, card 81 sound/i2c/i2c.c bus->card = card; card 88 sound/i2c/i2c.c err = snd_device_new(card, SNDRV_DEV_BUS, bus, &ops); card 56 sound/i2c/other/ak4113.c int snd_ak4113_create(struct snd_card *card, ak4113_read_t *read, card 71 sound/i2c/other/ak4113.c chip->card = card; card 87 sound/i2c/other/ak4113.c err = snd_device_new(card, SNDRV_DEV_CODEC, chip, &ops); card 480 sound/i2c/other/ak4113.c snd_card_ro_proc_new(ak4113->card, "ak4113", ak4113, card 500 sound/i2c/other/ak4113.c err = snd_ctl_add(ak4113->card, kctl); card 558 sound/i2c/other/ak4113.c snd_ctl_notify(ak4113->card, SNDRV_CTL_EVENT_MASK_VALUE, card 561 sound/i2c/other/ak4113.c snd_ctl_notify(ak4113->card, SNDRV_CTL_EVENT_MASK_VALUE, card 564 sound/i2c/other/ak4113.c snd_ctl_notify(ak4113->card, SNDRV_CTL_EVENT_MASK_VALUE, card 567 sound/i2c/other/ak4113.c snd_ctl_notify(ak4113->card, SNDRV_CTL_EVENT_MASK_VALUE, card 572 sound/i2c/other/ak4113.c snd_ctl_notify(ak4113->card, SNDRV_CTL_EVENT_MASK_VALUE, card 576 sound/i2c/other/ak4113.c snd_ctl_notify(ak4113->card, SNDRV_CTL_EVENT_MASK_VALUE, card 579 sound/i2c/other/ak4113.c snd_ctl_notify(ak4113->card, SNDRV_CTL_EVENT_MASK_VALUE, card 583 sound/i2c/other/ak4113.c snd_ctl_notify(ak4113->card, SNDRV_CTL_EVENT_MASK_VALUE, card 586 sound/i2c/other/ak4113.c snd_ctl_notify(ak4113->card, SNDRV_CTL_EVENT_MASK_VALUE, card 589 sound/i2c/other/ak4113.c snd_ctl_notify(ak4113->card, SNDRV_CTL_EVENT_MASK_VALUE, card 66 sound/i2c/other/ak4114.c int snd_ak4114_create(struct snd_card *card, card 82 sound/i2c/other/ak4114.c chip->card = card; card 100 sound/i2c/other/ak4114.c if ((err = snd_device_new(card, SNDRV_DEV_CODEC, chip, &ops)) < 0) card 453 sound/i2c/other/ak4114.c snd_card_ro_proc_new(ak4114->card, "ak4114", ak4114, card 485 sound/i2c/other/ak4114.c err = snd_ctl_add(ak4114->card, kctl); card 506 sound/i2c/other/ak4114.c snd_ctl_notify(ak4114->card, SNDRV_CTL_EVENT_MASK_VALUE, card 509 sound/i2c/other/ak4114.c snd_ctl_notify(ak4114->card, SNDRV_CTL_EVENT_MASK_VALUE, card 512 sound/i2c/other/ak4114.c snd_ctl_notify(ak4114->card, SNDRV_CTL_EVENT_MASK_VALUE, card 515 sound/i2c/other/ak4114.c snd_ctl_notify(ak4114->card, SNDRV_CTL_EVENT_MASK_VALUE, card 520 sound/i2c/other/ak4114.c snd_ctl_notify(ak4114->card, SNDRV_CTL_EVENT_MASK_VALUE, card 524 sound/i2c/other/ak4114.c snd_ctl_notify(ak4114->card, SNDRV_CTL_EVENT_MASK_VALUE, card 527 sound/i2c/other/ak4114.c snd_ctl_notify(ak4114->card, SNDRV_CTL_EVENT_MASK_VALUE, card 531 sound/i2c/other/ak4114.c snd_ctl_notify(ak4114->card, SNDRV_CTL_EVENT_MASK_VALUE, card 534 sound/i2c/other/ak4114.c snd_ctl_notify(ak4114->card, SNDRV_CTL_EVENT_MASK_VALUE, card 537 sound/i2c/other/ak4114.c snd_ctl_notify(ak4114->card, SNDRV_CTL_EVENT_MASK_VALUE, card 540 sound/i2c/other/ak4114.c snd_ctl_notify(ak4114->card, SNDRV_CTL_EVENT_MASK_VALUE, card 61 sound/i2c/other/ak4117.c int snd_ak4117_create(struct snd_card *card, ak4117_read_t *read, ak4117_write_t *write, card 75 sound/i2c/other/ak4117.c chip->card = card; card 89 sound/i2c/other/ak4117.c if ((err = snd_device_new(card, SNDRV_DEV_CODEC, chip, &ops)) < 0) card 425 sound/i2c/other/ak4117.c err = snd_ctl_add(ak4117->card, kctl); card 474 sound/i2c/other/ak4117.c snd_ctl_notify(ak4117->card, SNDRV_CTL_EVENT_MASK_VALUE, &ak4117->kctls[0]->id); card 476 sound/i2c/other/ak4117.c snd_ctl_notify(ak4117->card, SNDRV_CTL_EVENT_MASK_VALUE, &ak4117->kctls[1]->id); card 478 sound/i2c/other/ak4117.c snd_ctl_notify(ak4117->card, SNDRV_CTL_EVENT_MASK_VALUE, &ak4117->kctls[2]->id); card 480 sound/i2c/other/ak4117.c snd_ctl_notify(ak4117->card, SNDRV_CTL_EVENT_MASK_VALUE, &ak4117->kctls[3]->id); card 484 sound/i2c/other/ak4117.c snd_ctl_notify(ak4117->card, SNDRV_CTL_EVENT_MASK_VALUE, &ak4117->kctls[4]->id); card 487 sound/i2c/other/ak4117.c snd_ctl_notify(ak4117->card, SNDRV_CTL_EVENT_MASK_VALUE, &ak4117->kctls[6]->id); card 489 sound/i2c/other/ak4117.c snd_ctl_notify(ak4117->card, SNDRV_CTL_EVENT_MASK_VALUE, &ak4117->kctls[8]->id); card 492 sound/i2c/other/ak4117.c snd_ctl_notify(ak4117->card, SNDRV_CTL_EVENT_MASK_VALUE, &ak4117->kctls[9]->id); card 494 sound/i2c/other/ak4117.c snd_ctl_notify(ak4117->card, SNDRV_CTL_EVENT_MASK_VALUE, &ak4117->kctls[10]->id); card 496 sound/i2c/other/ak4117.c snd_ctl_notify(ak4117->card, SNDRV_CTL_EVENT_MASK_VALUE, &ak4117->kctls[11]->id); card 626 sound/i2c/other/ak4xxx-adda.c err = snd_ctl_add(ak->card, snd_ctl_new1(&knew, ak)); card 704 sound/i2c/other/ak4xxx-adda.c err = snd_ctl_add(ak->card, snd_ctl_new1(&knew, ak)); card 754 sound/i2c/other/ak4xxx-adda.c err = snd_ctl_add(ak->card, snd_ctl_new1(&knew, ak)); card 773 sound/i2c/other/ak4xxx-adda.c err = snd_ctl_add(ak->card, snd_ctl_new1(&knew, ak)); card 794 sound/i2c/other/ak4xxx-adda.c err = snd_ctl_add(ak->card, snd_ctl_new1(&knew, ak)); card 842 sound/i2c/other/ak4xxx-adda.c err = snd_ctl_add(ak->card, snd_ctl_new1(&knew, ak)); card 865 sound/i2c/other/ak4xxx-adda.c return snd_card_ro_proc_new(ak->card, ak->name, ak, proc_regs_read); card 193 sound/i2c/other/pt2258.c err = snd_ctl_add(pt->card, snd_ctl_new1(&knew, pt)); card 205 sound/i2c/other/pt2258.c err = snd_ctl_add(pt->card, snd_ctl_new1(&knew, pt)); card 275 sound/i2c/tea6330t.c int snd_tea6330t_update_mixer(struct snd_card *card, card 333 sound/i2c/tea6330t.c strcat(card->mixername, ",TEA6330T"); card 334 sound/i2c/tea6330t.c if ((err = snd_component_add(card, "TEA6330T")) < 0) card 341 sound/i2c/tea6330t.c if ((err = snd_ctl_add(card, snd_ctl_new1(knew, tea))) < 0) card 85 sound/isa/ad1816a/ad1816a.c static int snd_card_ad1816a_pnp(int dev, struct pnp_card_link *card, card 91 sound/isa/ad1816a/ad1816a.c pdev = pnp_request_card_device(card, id->devs[0].id, NULL); card 107 sound/isa/ad1816a/ad1816a.c pdev = pnp_request_card_device(card, id->devs[1].id, NULL); card 130 sound/isa/ad1816a/ad1816a.c struct snd_card *card; card 134 sound/isa/ad1816a/ad1816a.c error = snd_card_new(&pcard->card->dev, card 136 sound/isa/ad1816a/ad1816a.c sizeof(struct snd_ad1816a), &card); card 139 sound/isa/ad1816a/ad1816a.c chip = card->private_data; card 142 sound/isa/ad1816a/ad1816a.c snd_card_free(card); card 146 sound/isa/ad1816a/ad1816a.c if ((error = snd_ad1816a_create(card, port[dev], card 151 sound/isa/ad1816a/ad1816a.c snd_card_free(card); card 157 sound/isa/ad1816a/ad1816a.c strcpy(card->driver, "AD1816A"); card 158 sound/isa/ad1816a/ad1816a.c strcpy(card->shortname, "ADI SoundPort AD1816A"); card 159 sound/isa/ad1816a/ad1816a.c sprintf(card->longname, "%s, SS at 0x%lx, irq %d, dma %d&%d", card 160 sound/isa/ad1816a/ad1816a.c card->shortname, chip->port, irq[dev], dma1[dev], dma2[dev]); card 163 sound/isa/ad1816a/ad1816a.c snd_card_free(card); card 168 sound/isa/ad1816a/ad1816a.c snd_card_free(card); card 174 sound/isa/ad1816a/ad1816a.c snd_card_free(card); card 179 sound/isa/ad1816a/ad1816a.c if (snd_mpu401_uart_new(card, 0, MPU401_HW_MPU401, card 186 sound/isa/ad1816a/ad1816a.c if (snd_opl3_create(card, card 193 sound/isa/ad1816a/ad1816a.c snd_card_free(card); card 199 sound/isa/ad1816a/ad1816a.c if ((error = snd_card_register(card)) < 0) { card 200 sound/isa/ad1816a/ad1816a.c snd_card_free(card); card 203 sound/isa/ad1816a/ad1816a.c pnp_set_card_drvdata(pcard, card); card 209 sound/isa/ad1816a/ad1816a.c static int snd_ad1816a_pnp_detect(struct pnp_card_link *card, card 218 sound/isa/ad1816a/ad1816a.c res = snd_card_ad1816a_probe(dev, card, id); card 238 sound/isa/ad1816a/ad1816a.c struct snd_card *card = pnp_get_card_drvdata(pcard); card 240 sound/isa/ad1816a/ad1816a.c snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); card 241 sound/isa/ad1816a/ad1816a.c snd_ad1816a_suspend(card->private_data); card 247 sound/isa/ad1816a/ad1816a.c struct snd_card *card = pnp_get_card_drvdata(pcard); card 249 sound/isa/ad1816a/ad1816a.c snd_ad1816a_resume(card->private_data); card 250 sound/isa/ad1816a/ad1816a.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 587 sound/isa/ad1816a/ad1816a_lib.c int snd_ad1816a_create(struct snd_card *card, card 624 sound/isa/ad1816a/ad1816a_lib.c chip->card = card; card 636 sound/isa/ad1816a/ad1816a_lib.c if ((error = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops)) < 0) { card 671 sound/isa/ad1816a/ad1816a_lib.c if ((error = snd_pcm_new(chip->card, "AD1816A", device, 1, 1, &pcm))) card 684 sound/isa/ad1816a/ad1816a_lib.c chip->card->dev, card 699 sound/isa/ad1816a/ad1816a_lib.c tid.card = chip->card->number; card 702 sound/isa/ad1816a/ad1816a_lib.c if ((error = snd_timer_new(chip->card, "AD1816A", &tid, &timer)) < 0) card 952 sound/isa/ad1816a/ad1816a_lib.c struct snd_card *card; card 956 sound/isa/ad1816a/ad1816a_lib.c if (snd_BUG_ON(!chip || !chip->card)) card 959 sound/isa/ad1816a/ad1816a_lib.c card = chip->card; card 961 sound/isa/ad1816a/ad1816a_lib.c strcpy(card->mixername, snd_ad1816a_chip_id(chip)); card 964 sound/isa/ad1816a/ad1816a_lib.c if ((err = snd_ctl_add(card, snd_ctl_new1(&snd_ad1816a_controls[idx], chip))) < 0) card 74 sound/isa/ad1848/ad1848.c struct snd_card *card; card 78 sound/isa/ad1848/ad1848.c error = snd_card_new(dev, index[n], id[n], THIS_MODULE, 0, &card); card 82 sound/isa/ad1848/ad1848.c error = snd_wss_create(card, port[n], -1, irq[n], dma1[n], -1, card 88 sound/isa/ad1848/ad1848.c card->private_data = chip; card 98 sound/isa/ad1848/ad1848.c strlcpy(card->driver, "AD1848", sizeof(card->driver)); card 99 sound/isa/ad1848/ad1848.c strlcpy(card->shortname, chip->pcm->name, sizeof(card->shortname)); card 102 sound/isa/ad1848/ad1848.c snprintf(card->longname, sizeof(card->longname), card 106 sound/isa/ad1848/ad1848.c snprintf(card->longname, sizeof(card->longname), card 110 sound/isa/ad1848/ad1848.c error = snd_card_register(card); card 114 sound/isa/ad1848/ad1848.c dev_set_drvdata(dev, card); card 117 sound/isa/ad1848/ad1848.c out: snd_card_free(card); card 130 sound/isa/ad1848/ad1848.c struct snd_card *card = dev_get_drvdata(dev); card 131 sound/isa/ad1848/ad1848.c struct snd_wss *chip = card->private_data; card 133 sound/isa/ad1848/ad1848.c snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); card 140 sound/isa/ad1848/ad1848.c struct snd_card *card = dev_get_drvdata(dev); card 141 sound/isa/ad1848/ad1848.c struct snd_wss *chip = card->private_data; card 144 sound/isa/ad1848/ad1848.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 46 sound/isa/adlib.c static void snd_adlib_free(struct snd_card *card) card 48 sound/isa/adlib.c release_and_free_resource(card->private_data); card 53 sound/isa/adlib.c struct snd_card *card; card 57 sound/isa/adlib.c error = snd_card_new(dev, index[n], id[n], THIS_MODULE, 0, &card); card 63 sound/isa/adlib.c card->private_data = request_region(port[n], 4, CRD_NAME); card 64 sound/isa/adlib.c if (!card->private_data) { card 69 sound/isa/adlib.c card->private_free = snd_adlib_free; card 71 sound/isa/adlib.c strcpy(card->driver, DEV_NAME); card 72 sound/isa/adlib.c strcpy(card->shortname, CRD_NAME); card 73 sound/isa/adlib.c sprintf(card->longname, CRD_NAME " at %#lx", port[n]); card 75 sound/isa/adlib.c error = snd_opl3_create(card, port[n], port[n] + 2, OPL3_HW_AUTO, 1, &opl3); card 87 sound/isa/adlib.c error = snd_card_register(card); card 93 sound/isa/adlib.c dev_set_drvdata(dev, card); card 96 sound/isa/adlib.c out: snd_card_free(card); card 109 sound/isa/als100.c struct pnp_card_link *card, card 115 sound/isa/als100.c acard->dev = pnp_request_card_device(card, id->devs[0].id, NULL); card 119 sound/isa/als100.c acard->devmpu = pnp_request_card_device(card, id->devs[1].id, acard->dev); card 120 sound/isa/als100.c acard->devopl = pnp_request_card_device(card, id->devs[2].id, acard->dev); card 180 sound/isa/als100.c struct snd_card *card; card 184 sound/isa/als100.c error = snd_card_new(&pcard->card->dev, card 186 sound/isa/als100.c sizeof(struct snd_card_als100), &card); card 189 sound/isa/als100.c acard = card->private_data; card 192 sound/isa/als100.c snd_card_free(card); card 199 sound/isa/als100.c error = snd_sbdsp_create(card, port[dev], irq[dev], card 205 sound/isa/als100.c snd_card_free(card); card 211 sound/isa/als100.c strcpy(card->driver, "DT-019X"); card 212 sound/isa/als100.c strcpy(card->shortname, "Diamond Tech. DT-019X"); card 213 sound/isa/als100.c snprintf(card->longname, sizeof(card->longname), card 217 sound/isa/als100.c strcpy(card->driver, "ALS100"); card 218 sound/isa/als100.c strcpy(card->shortname, "Avance Logic ALS100"); card 219 sound/isa/als100.c snprintf(card->longname, sizeof(card->longname), card 226 sound/isa/als100.c snd_card_free(card); card 231 sound/isa/als100.c snd_card_free(card); card 244 sound/isa/als100.c if (snd_mpu401_uart_new(card, 0, card 253 sound/isa/als100.c if (snd_opl3_create(card, card 260 sound/isa/als100.c snd_card_free(card); card 264 sound/isa/als100.c snd_card_free(card); card 270 sound/isa/als100.c if ((error = snd_card_register(card)) < 0) { card 271 sound/isa/als100.c snd_card_free(card); card 274 sound/isa/als100.c pnp_set_card_drvdata(pcard, card); card 280 sound/isa/als100.c static int snd_als100_pnp_detect(struct pnp_card_link *card, card 289 sound/isa/als100.c res = snd_card_als100_probe(dev, card, id); card 308 sound/isa/als100.c struct snd_card *card = pnp_get_card_drvdata(pcard); card 309 sound/isa/als100.c struct snd_card_als100 *acard = card->private_data; card 312 sound/isa/als100.c snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); card 319 sound/isa/als100.c struct snd_card *card = pnp_get_card_drvdata(pcard); card 320 sound/isa/als100.c struct snd_card_als100 *acard = card->private_data; card 325 sound/isa/als100.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 91 sound/isa/azt2320.c struct pnp_card_link *card, card 97 sound/isa/azt2320.c acard->dev = pnp_request_card_device(card, id->devs[0].id, NULL); card 101 sound/isa/azt2320.c acard->devmpu = pnp_request_card_device(card, id->devs[1].id, NULL); card 170 sound/isa/azt2320.c struct snd_card *card; card 175 sound/isa/azt2320.c error = snd_card_new(&pcard->card->dev, card 177 sound/isa/azt2320.c sizeof(struct snd_card_azt2320), &card); card 180 sound/isa/azt2320.c acard = card->private_data; card 183 sound/isa/azt2320.c snd_card_free(card); card 188 sound/isa/azt2320.c snd_card_free(card); card 192 sound/isa/azt2320.c error = snd_wss_create(card, wss_port[dev], -1, card 197 sound/isa/azt2320.c snd_card_free(card); card 201 sound/isa/azt2320.c strcpy(card->driver, "AZT2320"); card 202 sound/isa/azt2320.c strcpy(card->shortname, "Aztech AZT2320"); card 203 sound/isa/azt2320.c sprintf(card->longname, "%s, WSS at 0x%lx, irq %i, dma %i&%i", card 204 sound/isa/azt2320.c card->shortname, chip->port, irq[dev], dma1[dev], dma2[dev]); card 208 sound/isa/azt2320.c snd_card_free(card); card 213 sound/isa/azt2320.c snd_card_free(card); card 218 sound/isa/azt2320.c snd_card_free(card); card 223 sound/isa/azt2320.c if (snd_mpu401_uart_new(card, 0, MPU401_HW_AZT2320, card 230 sound/isa/azt2320.c if (snd_opl3_create(card, card 237 sound/isa/azt2320.c snd_card_free(card); card 241 sound/isa/azt2320.c snd_card_free(card); card 247 sound/isa/azt2320.c if ((error = snd_card_register(card)) < 0) { card 248 sound/isa/azt2320.c snd_card_free(card); card 251 sound/isa/azt2320.c pnp_set_card_drvdata(pcard, card); card 257 sound/isa/azt2320.c static int snd_azt2320_pnp_detect(struct pnp_card_link *card, card 266 sound/isa/azt2320.c res = snd_card_azt2320_probe(dev, card, id); card 285 sound/isa/azt2320.c struct snd_card *card = pnp_get_card_drvdata(pcard); card 286 sound/isa/azt2320.c struct snd_card_azt2320 *acard = card->private_data; card 289 sound/isa/azt2320.c snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); card 296 sound/isa/azt2320.c struct snd_card *card = pnp_get_card_drvdata(pcard); card 297 sound/isa/azt2320.c struct snd_card_azt2320 *acard = card->private_data; card 301 sound/isa/azt2320.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 77 sound/isa/cmi8328.c struct snd_card *card; card 148 sound/isa/cmi8328.c struct snd_card *card; card 152 sound/isa/cmi8328.c card = chip->card; card 160 sound/isa/cmi8328.c err = snd_ctl_rename_id(card, &id1, &id2); card 168 sound/isa/cmi8328.c err = snd_ctl_rename_id(card, &id1, &id2); card 177 sound/isa/cmi8328.c err = snd_ctl_rename_id(card, &id1, &id2); card 186 sound/isa/cmi8328.c err = snd_ctl_rename_id(card, &id1, &id2); card 220 sound/isa/cmi8328.c struct snd_card *card; card 298 sound/isa/cmi8328.c sizeof(struct snd_cmi8328), &card); card 301 sound/isa/cmi8328.c cmi = card->private_data; card 302 sound/isa/cmi8328.c cmi->card = card; card 306 sound/isa/cmi8328.c err = snd_wss_create(card, port + 4, -1, irq[ndev], dma1[ndev], card 351 sound/isa/cmi8328.c if (snd_mpu401_uart_new(card, 0, card 359 sound/isa/cmi8328.c if (snd_opl3_create(card, 0x388, 0x38a, OPL3_HW_AUTO, 0, &opl3) < 0) card 365 sound/isa/cmi8328.c strcpy(card->driver, "CMI8328"); card 366 sound/isa/cmi8328.c strcpy(card->shortname, "C-Media CMI8328"); card 367 sound/isa/cmi8328.c sprintf(card->longname, "%s at 0x%lx, irq %d, dma %d,%d", card 368 sound/isa/cmi8328.c card->shortname, cmi->wss->port, irq[ndev], dma1[ndev], card 371 sound/isa/cmi8328.c dev_set_drvdata(pdev, card); card 372 sound/isa/cmi8328.c err = snd_card_register(card); card 401 sound/isa/cmi8328.c snd_card_free(card); card 408 sound/isa/cmi8328.c struct snd_card *card = dev_get_drvdata(pdev); card 409 sound/isa/cmi8328.c struct snd_cmi8328 *cmi = card->private_data; card 422 sound/isa/cmi8328.c snd_card_free(card); card 430 sound/isa/cmi8328.c struct snd_card *card = dev_get_drvdata(pdev); card 433 sound/isa/cmi8328.c if (!card) /* ignore absent devices */ card 435 sound/isa/cmi8328.c cmi = card->private_data; card 437 sound/isa/cmi8328.c snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); card 445 sound/isa/cmi8328.c struct snd_card *card = dev_get_drvdata(pdev); card 448 sound/isa/cmi8328.c if (!card) /* ignore absent devices */ card 450 sound/isa/cmi8328.c cmi = card->private_data; card 454 sound/isa/cmi8328.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 155 sound/isa/cmi8330.c struct snd_card *card; card 295 sound/isa/cmi8330.c static int snd_cmi8330_mixer(struct snd_card *card, struct snd_cmi8330 *acard) card 300 sound/isa/cmi8330.c strcpy(card->mixername, (acard->type == CMI8329) ? "CMI8329" : "CMI8330/C3D"); card 303 sound/isa/cmi8330.c err = snd_ctl_add(card, card 319 sound/isa/cmi8330.c struct pnp_card_link *card, card 328 sound/isa/cmi8330.c acard->cap = pnp_request_card_device(card, id->devs[0].id, NULL); card 332 sound/isa/cmi8330.c acard->play = pnp_request_card_device(card, id->devs[1].id, NULL); card 336 sound/isa/cmi8330.c acard->mpu = pnp_request_card_device(card, id->devs[2].id, NULL); card 426 sound/isa/cmi8330.c static int snd_cmi8330_pcm(struct snd_card *card, struct snd_cmi8330 *chip) card 436 sound/isa/cmi8330.c if ((err = snd_pcm_new(card, (chip->type == CMI8329) ? "CMI8329" : "CMI8330", 0, 1, 1, &pcm)) < 0) card 459 sound/isa/cmi8330.c card->dev, card 468 sound/isa/cmi8330.c static int snd_cmi8330_suspend(struct snd_card *card) card 470 sound/isa/cmi8330.c struct snd_cmi8330 *acard = card->private_data; card 472 sound/isa/cmi8330.c snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); card 478 sound/isa/cmi8330.c static int snd_cmi8330_resume(struct snd_card *card) card 480 sound/isa/cmi8330.c struct snd_cmi8330 *acard = card->private_data; card 485 sound/isa/cmi8330.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 505 sound/isa/cmi8330.c struct snd_card *card; card 510 sound/isa/cmi8330.c sizeof(struct snd_cmi8330), &card); card 515 sound/isa/cmi8330.c acard = card->private_data; card 516 sound/isa/cmi8330.c acard->card = card; card 517 sound/isa/cmi8330.c *cardp = card; card 521 sound/isa/cmi8330.c static int snd_cmi8330_probe(struct snd_card *card, int dev) card 527 sound/isa/cmi8330.c acard = card->private_data; card 528 sound/isa/cmi8330.c err = snd_wss_create(card, wssport[dev] + 4, -1, card 541 sound/isa/cmi8330.c if ((err = snd_sbdsp_create(card, sbport[dev], card 560 sound/isa/cmi8330.c if ((err = snd_cmi8330_mixer(card, acard)) < 0) { card 565 sound/isa/cmi8330.c if ((err = snd_cmi8330_pcm(card, acard)) < 0) { card 570 sound/isa/cmi8330.c if (snd_opl3_create(card, card 584 sound/isa/cmi8330.c if (snd_mpu401_uart_new(card, 0, MPU401_HW_MPU401, card 591 sound/isa/cmi8330.c strcpy(card->driver, (acard->type == CMI8329) ? "CMI8329" : "CMI8330/C3D"); card 592 sound/isa/cmi8330.c strcpy(card->shortname, (acard->type == CMI8329) ? "C-Media CMI8329" : "C-Media CMI8330/C3D"); card 593 sound/isa/cmi8330.c sprintf(card->longname, "%s at 0x%lx, irq %d, dma %d", card 594 sound/isa/cmi8330.c card->shortname, card 599 sound/isa/cmi8330.c return snd_card_register(card); card 621 sound/isa/cmi8330.c struct snd_card *card; card 624 sound/isa/cmi8330.c err = snd_cmi8330_card_new(pdev, dev, &card); card 627 sound/isa/cmi8330.c if ((err = snd_cmi8330_probe(card, dev)) < 0) { card 628 sound/isa/cmi8330.c snd_card_free(card); card 631 sound/isa/cmi8330.c dev_set_drvdata(pdev, card); card 676 sound/isa/cmi8330.c struct snd_card *card; card 686 sound/isa/cmi8330.c res = snd_cmi8330_card_new(&pcard->card->dev, dev, &card); card 689 sound/isa/cmi8330.c if ((res = snd_cmi8330_pnp(dev, card->private_data, pcard, pid)) < 0) { card 691 sound/isa/cmi8330.c snd_card_free(card); card 694 sound/isa/cmi8330.c if ((res = snd_cmi8330_probe(card, dev)) < 0) { card 695 sound/isa/cmi8330.c snd_card_free(card); card 698 sound/isa/cmi8330.c pnp_set_card_drvdata(pcard, card); card 79 sound/isa/cs423x/cs4231.c struct snd_card *card; card 83 sound/isa/cs423x/cs4231.c error = snd_card_new(dev, index[n], id[n], THIS_MODULE, 0, &card); card 87 sound/isa/cs423x/cs4231.c error = snd_wss_create(card, port[n], -1, irq[n], dma1[n], dma2[n], card 92 sound/isa/cs423x/cs4231.c card->private_data = chip; card 98 sound/isa/cs423x/cs4231.c strlcpy(card->driver, "CS4231", sizeof(card->driver)); card 99 sound/isa/cs423x/cs4231.c strlcpy(card->shortname, chip->pcm->name, sizeof(card->shortname)); card 102 sound/isa/cs423x/cs4231.c snprintf(card->longname, sizeof(card->longname), card 106 sound/isa/cs423x/cs4231.c snprintf(card->longname, sizeof(card->longname), card 121 sound/isa/cs423x/cs4231.c if (snd_mpu401_uart_new(card, 0, MPU401_HW_CS4232, card 127 sound/isa/cs423x/cs4231.c error = snd_card_register(card); card 131 sound/isa/cs423x/cs4231.c dev_set_drvdata(dev, card); card 134 sound/isa/cs423x/cs4231.c out: snd_card_free(card); card 147 sound/isa/cs423x/cs4231.c struct snd_card *card = dev_get_drvdata(dev); card 148 sound/isa/cs423x/cs4231.c struct snd_wss *chip = card->private_data; card 150 sound/isa/cs423x/cs4231.c snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); card 157 sound/isa/cs423x/cs4231.c struct snd_card *card = dev_get_drvdata(dev); card 158 sound/isa/cs423x/cs4231.c struct snd_wss *chip = card->private_data; card 161 sound/isa/cs423x/cs4231.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 307 sound/isa/cs423x/cs4236.c struct pnp_card_link *card, card 310 sound/isa/cs423x/cs4236.c acard->wss = pnp_request_card_device(card, id->devs[0].id, NULL); card 313 sound/isa/cs423x/cs4236.c acard->ctrl = pnp_request_card_device(card, id->devs[1].id, NULL); card 317 sound/isa/cs423x/cs4236.c acard->mpu = pnp_request_card_device(card, id->devs[2].id, NULL); card 346 sound/isa/cs423x/cs4236.c static void snd_card_cs4236_free(struct snd_card *card) card 348 sound/isa/cs423x/cs4236.c struct snd_card_cs4236 *acard = card->private_data; card 356 sound/isa/cs423x/cs4236.c struct snd_card *card; card 360 sound/isa/cs423x/cs4236.c sizeof(struct snd_card_cs4236), &card); card 363 sound/isa/cs423x/cs4236.c card->private_free = snd_card_cs4236_free; card 364 sound/isa/cs423x/cs4236.c *cardp = card; card 368 sound/isa/cs423x/cs4236.c static int snd_cs423x_probe(struct snd_card *card, int dev) card 375 sound/isa/cs423x/cs4236.c acard = card->private_data; card 382 sound/isa/cs423x/cs4236.c err = snd_cs4236_create(card, port[dev], cport[dev], card 408 sound/isa/cs423x/cs4236.c strlcpy(card->driver, chip->pcm->name, sizeof(card->driver)); card 409 sound/isa/cs423x/cs4236.c strlcpy(card->shortname, chip->pcm->name, sizeof(card->shortname)); card 411 sound/isa/cs423x/cs4236.c snprintf(card->longname, sizeof(card->longname), card 415 sound/isa/cs423x/cs4236.c snprintf(card->longname, sizeof(card->longname), card 425 sound/isa/cs423x/cs4236.c if (snd_opl3_create(card, card 438 sound/isa/cs423x/cs4236.c if (snd_mpu401_uart_new(card, 0, MPU401_HW_CS4232, card 444 sound/isa/cs423x/cs4236.c return snd_card_register(card); card 475 sound/isa/cs423x/cs4236.c struct snd_card *card; card 478 sound/isa/cs423x/cs4236.c err = snd_cs423x_card_new(pdev, dev, &card); card 481 sound/isa/cs423x/cs4236.c if ((err = snd_cs423x_probe(card, dev)) < 0) { card 482 sound/isa/cs423x/cs4236.c snd_card_free(card); card 486 sound/isa/cs423x/cs4236.c dev_set_drvdata(pdev, card); card 498 sound/isa/cs423x/cs4236.c static int snd_cs423x_suspend(struct snd_card *card) card 500 sound/isa/cs423x/cs4236.c struct snd_card_cs4236 *acard = card->private_data; card 501 sound/isa/cs423x/cs4236.c snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); card 506 sound/isa/cs423x/cs4236.c static int snd_cs423x_resume(struct snd_card *card) card 508 sound/isa/cs423x/cs4236.c struct snd_card_cs4236 *acard = card->private_data; card 510 sound/isa/cs423x/cs4236.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 546 sound/isa/cs423x/cs4236.c struct snd_card *card; card 567 sound/isa/cs423x/cs4236.c err = snd_cs423x_card_new(&pdev->dev, dev, &card); card 570 sound/isa/cs423x/cs4236.c err = snd_card_cs423x_pnp(dev, card->private_data, pdev, cdev); card 573 sound/isa/cs423x/cs4236.c snd_card_free(card); card 576 sound/isa/cs423x/cs4236.c if ((err = snd_cs423x_probe(card, dev)) < 0) { card 577 sound/isa/cs423x/cs4236.c snd_card_free(card); card 580 sound/isa/cs423x/cs4236.c pnp_set_drvdata(pdev, card); card 617 sound/isa/cs423x/cs4236.c struct snd_card *card; card 627 sound/isa/cs423x/cs4236.c res = snd_cs423x_card_new(&pcard->card->dev, dev, &card); card 630 sound/isa/cs423x/cs4236.c if ((res = snd_card_cs423x_pnpc(dev, card->private_data, pcard, pid)) < 0) { card 633 sound/isa/cs423x/cs4236.c snd_card_free(card); card 636 sound/isa/cs423x/cs4236.c if ((res = snd_cs423x_probe(card, dev)) < 0) { card 637 sound/isa/cs423x/cs4236.c snd_card_free(card); card 640 sound/isa/cs423x/cs4236.c pnp_set_card_drvdata(pcard, card); card 259 sound/isa/cs423x/cs4236_lib.c int snd_cs4236_create(struct snd_card *card, card 276 sound/isa/cs423x/cs4236_lib.c err = snd_wss_create(card, port, cport, card 301 sound/isa/cs423x/cs4236_lib.c snd_device_free(card, chip); card 311 sound/isa/cs423x/cs4236_lib.c snd_device_free(card, chip); card 1020 sound/isa/cs423x/cs4236_lib.c struct snd_card *card; card 1025 sound/isa/cs423x/cs4236_lib.c if (snd_BUG_ON(!chip || !chip->card)) card 1027 sound/isa/cs423x/cs4236_lib.c card = chip->card; card 1028 sound/isa/cs423x/cs4236_lib.c strcpy(card->mixername, snd_wss_chip_id(chip)); card 1033 sound/isa/cs423x/cs4236_lib.c if ((err = snd_ctl_add(card, snd_ctl_new1(&snd_cs4235_controls[idx], chip))) < 0) card 1038 sound/isa/cs423x/cs4236_lib.c if ((err = snd_ctl_add(card, snd_ctl_new1(&snd_cs4236_controls[idx], chip))) < 0) card 1061 sound/isa/cs423x/cs4236_lib.c if ((err = snd_ctl_add(card, snd_ctl_new1(kcontrol, chip))) < 0) card 1067 sound/isa/cs423x/cs4236_lib.c if ((err = snd_ctl_add(card, snd_ctl_new1(&snd_cs4236_iec958_controls[idx], chip))) < 0) card 83 sound/isa/es1688/es1688.c static int snd_es1688_legacy_create(struct snd_card *card, card 86 sound/isa/es1688/es1688.c struct snd_es1688 *chip = card->private_data; card 109 sound/isa/es1688/es1688.c return snd_es1688_create(card, chip, port[n], mpu_port[n], card 115 sound/isa/es1688/es1688.c error = snd_es1688_create(card, chip, port[n], mpu_port[n], card 122 sound/isa/es1688/es1688.c static int snd_es1688_probe(struct snd_card *card, unsigned int n) card 124 sound/isa/es1688/es1688.c struct snd_es1688 *chip = card->private_data; card 128 sound/isa/es1688/es1688.c error = snd_es1688_pcm(card, chip, 0); card 132 sound/isa/es1688/es1688.c error = snd_es1688_mixer(card, chip); card 136 sound/isa/es1688/es1688.c strlcpy(card->driver, "ES1688", sizeof(card->driver)); card 137 sound/isa/es1688/es1688.c strlcpy(card->shortname, chip->pcm->name, sizeof(card->shortname)); card 138 sound/isa/es1688/es1688.c snprintf(card->longname, sizeof(card->longname), card 146 sound/isa/es1688/es1688.c if (snd_opl3_create(card, fm_port[n], fm_port[n] + 2, card 148 sound/isa/es1688/es1688.c dev_warn(card->dev, card 159 sound/isa/es1688/es1688.c error = snd_mpu401_uart_new(card, 0, MPU401_HW_ES1688, card 166 sound/isa/es1688/es1688.c return snd_card_register(card); card 171 sound/isa/es1688/es1688.c struct snd_card *card; card 175 sound/isa/es1688/es1688.c sizeof(struct snd_es1688), &card); card 179 sound/isa/es1688/es1688.c error = snd_es1688_legacy_create(card, dev, n); card 183 sound/isa/es1688/es1688.c error = snd_es1688_probe(card, n); card 187 sound/isa/es1688/es1688.c dev_set_drvdata(dev, card); card 191 sound/isa/es1688/es1688.c snd_card_free(card); card 217 sound/isa/es1688/es1688.c static int snd_card_es968_pnp(struct snd_card *card, unsigned int n, card 221 sound/isa/es1688/es1688.c struct snd_es1688 *chip = card->private_data; card 238 sound/isa/es1688/es1688.c return snd_es1688_create(card, chip, port[n], mpu_port[n], irq[n], card 245 sound/isa/es1688/es1688.c struct snd_card *card; card 258 sound/isa/es1688/es1688.c error = snd_card_new(&pcard->card->dev, card 260 sound/isa/es1688/es1688.c sizeof(struct snd_es1688), &card); card 264 sound/isa/es1688/es1688.c error = snd_card_es968_pnp(card, dev, pcard, pid); card 266 sound/isa/es1688/es1688.c snd_card_free(card); card 269 sound/isa/es1688/es1688.c error = snd_es1688_probe(card, dev); card 271 sound/isa/es1688/es1688.c snd_card_free(card); card 274 sound/isa/es1688/es1688.c pnp_set_card_drvdata(pcard, card); card 290 sound/isa/es1688/es1688.c struct snd_card *card = pnp_get_card_drvdata(pcard); card 292 sound/isa/es1688/es1688.c snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); card 298 sound/isa/es1688/es1688.c struct snd_card *card = pnp_get_card_drvdata(pcard); card 299 sound/isa/es1688/es1688.c struct snd_es1688 *chip = card->private_data; card 302 sound/isa/es1688/es1688.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 623 sound/isa/es1688/es1688_lib.c int snd_es1688_create(struct snd_card *card, card 685 sound/isa/es1688/es1688_lib.c err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops); card 714 sound/isa/es1688/es1688_lib.c int snd_es1688_pcm(struct snd_card *card, struct snd_es1688 *chip, int device) card 719 sound/isa/es1688/es1688_lib.c err = snd_pcm_new(card, "ESx688", device, 1, 1, &pcm); card 732 sound/isa/es1688/es1688_lib.c card->dev, card 985 sound/isa/es1688/es1688_lib.c int snd_es1688_mixer(struct snd_card *card, struct snd_es1688 *chip) card 991 sound/isa/es1688/es1688_lib.c if (snd_BUG_ON(!chip || !card)) card 994 sound/isa/es1688/es1688_lib.c strcpy(card->mixername, snd_es1688_chip_id(chip)); card 997 sound/isa/es1688/es1688_lib.c if ((err = snd_ctl_add(card, snd_ctl_new1(&snd_es1688_controls[idx], chip))) < 0) card 727 sound/isa/es18xx.c struct snd_card *card = dev_id; card 728 sound/isa/es18xx.c struct snd_es18xx *chip = card->private_data; card 778 sound/isa/es18xx.c snd_ctl_notify(card, SNDRV_CTL_EVENT_MASK_VALUE, card 780 sound/isa/es18xx.c snd_ctl_notify(card, SNDRV_CTL_EVENT_MASK_VALUE, card 784 sound/isa/es18xx.c snd_ctl_notify(card, SNDRV_CTL_EVENT_MASK_VALUE, card 786 sound/isa/es18xx.c snd_ctl_notify(card, SNDRV_CTL_EVENT_MASK_VALUE, card 1676 sound/isa/es18xx.c static int snd_es18xx_pcm(struct snd_card *card, int device) card 1678 sound/isa/es18xx.c struct snd_es18xx *chip = card->private_data; card 1685 sound/isa/es18xx.c err = snd_pcm_new(card, str, device, 2, 1, &pcm); card 1687 sound/isa/es18xx.c err = snd_pcm_new(card, str, device, 1, 1, &pcm); card 1705 sound/isa/es18xx.c card->dev, card 1713 sound/isa/es18xx.c static int snd_es18xx_suspend(struct snd_card *card, pm_message_t state) card 1715 sound/isa/es18xx.c struct snd_es18xx *chip = card->private_data; card 1717 sound/isa/es18xx.c snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); card 1728 sound/isa/es18xx.c static int snd_es18xx_resume(struct snd_card *card) card 1730 sound/isa/es18xx.c struct snd_es18xx *chip = card->private_data; card 1735 sound/isa/es18xx.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 1740 sound/isa/es18xx.c static int snd_es18xx_free(struct snd_card *card) card 1742 sound/isa/es18xx.c struct snd_es18xx *chip = card->private_data; card 1748 sound/isa/es18xx.c free_irq(chip->irq, (void *) card); card 1762 sound/isa/es18xx.c return snd_es18xx_free(device->card); card 1765 sound/isa/es18xx.c static int snd_es18xx_new_device(struct snd_card *card, card 1771 sound/isa/es18xx.c struct snd_es18xx *chip = card->private_data; card 1788 sound/isa/es18xx.c snd_es18xx_free(card); card 1794 sound/isa/es18xx.c (void *) card)) { card 1795 sound/isa/es18xx.c snd_es18xx_free(card); card 1802 sound/isa/es18xx.c snd_es18xx_free(card); card 1809 sound/isa/es18xx.c snd_es18xx_free(card); card 1816 sound/isa/es18xx.c snd_es18xx_free(card); card 1819 sound/isa/es18xx.c err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops); card 1821 sound/isa/es18xx.c snd_es18xx_free(card); card 1827 sound/isa/es18xx.c static int snd_es18xx_mixer(struct snd_card *card) card 1829 sound/isa/es18xx.c struct snd_es18xx *chip = card->private_data; card 1833 sound/isa/es18xx.c strcpy(card->mixername, chip->pcm->name); card 1850 sound/isa/es18xx.c if ((err = snd_ctl_add(card, kctl)) < 0) card 1855 sound/isa/es18xx.c if ((err = snd_ctl_add(card, snd_ctl_new1(&snd_es18xx_pcm2_controls[idx], chip))) < 0) card 1860 sound/isa/es18xx.c if ((err = snd_ctl_add(card, snd_ctl_new1(&snd_es18xx_pcm1_controls[idx], chip))) < 0) card 1867 sound/isa/es18xx.c if ((err = snd_ctl_add(card, snd_ctl_new1(&snd_es18xx_recmix_controls[idx], chip))) < 0) card 1873 sound/isa/es18xx.c if ((err = snd_ctl_add(card, snd_ctl_new1(&snd_es18xx_micpre1_control, chip))) < 0) card 1878 sound/isa/es18xx.c if ((err = snd_ctl_add(card, snd_ctl_new1(&snd_es18xx_micpre2_control, chip))) < 0) card 1884 sound/isa/es18xx.c if ((err = snd_ctl_add(card, snd_ctl_new1(&snd_es18xx_spatializer_controls[idx], chip))) < 0) card 1897 sound/isa/es18xx.c if ((err = snd_ctl_add(card, kctl)) < 0) card 1905 sound/isa/es18xx.c err = snd_ctl_add(card, snd_ctl_new1(&snd_es18xx_opt_speaker, card 1912 sound/isa/es18xx.c err = snd_ctl_add(card, card 1919 sound/isa/es18xx.c err = snd_ctl_add(card, snd_ctl_new1(&snd_es18xx_opt_1878, card 1925 sound/isa/es18xx.c err = snd_ctl_add(card, card 1934 sound/isa/es18xx.c err = snd_ctl_add(card, card 2071 sound/isa/es18xx.c struct pnp_card_link *card, card 2074 sound/isa/es18xx.c chip->dev = pnp_request_card_device(card, id->devs[0].id, NULL); card 2078 sound/isa/es18xx.c chip->devc = pnp_request_card_device(card, id->devs[1].id, NULL); card 2109 sound/isa/es18xx.c static int snd_audiodrive_probe(struct snd_card *card, int dev) card 2111 sound/isa/es18xx.c struct snd_es18xx *chip = card->private_data; card 2115 sound/isa/es18xx.c err = snd_es18xx_new_device(card, card 2121 sound/isa/es18xx.c sprintf(card->driver, "ES%x", chip->version); card 2123 sound/isa/es18xx.c sprintf(card->shortname, "ESS AudioDrive ES%x", chip->version); card 2125 sound/isa/es18xx.c sprintf(card->longname, "%s at 0x%lx, irq %d, dma1 %d, dma2 %d", card 2126 sound/isa/es18xx.c card->shortname, card 2130 sound/isa/es18xx.c sprintf(card->longname, "%s at 0x%lx, irq %d, dma %d", card 2131 sound/isa/es18xx.c card->shortname, card 2135 sound/isa/es18xx.c err = snd_es18xx_pcm(card, 0); card 2139 sound/isa/es18xx.c err = snd_es18xx_mixer(card); card 2144 sound/isa/es18xx.c if (snd_opl3_create(card, fm_port[dev], fm_port[dev] + 2, card 2157 sound/isa/es18xx.c err = snd_mpu401_uart_new(card, 0, MPU401_HW_ES18XX, card 2164 sound/isa/es18xx.c return snd_card_register(card); card 2174 sound/isa/es18xx.c struct snd_card *card; card 2177 sound/isa/es18xx.c err = snd_es18xx_card_new(devptr, dev, &card); card 2180 sound/isa/es18xx.c if ((err = snd_audiodrive_probe(card, dev)) < 0) { card 2181 sound/isa/es18xx.c snd_card_free(card); card 2184 sound/isa/es18xx.c dev_set_drvdata(devptr, card); card 2270 sound/isa/es18xx.c struct snd_card *card; card 2281 sound/isa/es18xx.c err = snd_es18xx_card_new(&pdev->dev, dev, &card); card 2284 sound/isa/es18xx.c if ((err = snd_audiodrive_pnp(dev, card->private_data, pdev)) < 0) { card 2285 sound/isa/es18xx.c snd_card_free(card); card 2288 sound/isa/es18xx.c if ((err = snd_audiodrive_probe(card, dev)) < 0) { card 2289 sound/isa/es18xx.c snd_card_free(card); card 2292 sound/isa/es18xx.c pnp_set_drvdata(pdev, card); card 2328 sound/isa/es18xx.c struct snd_card *card; card 2338 sound/isa/es18xx.c res = snd_es18xx_card_new(&pcard->card->dev, dev, &card); card 2342 sound/isa/es18xx.c if ((res = snd_audiodrive_pnpc(dev, card->private_data, pcard, pid)) < 0) { card 2343 sound/isa/es18xx.c snd_card_free(card); card 2346 sound/isa/es18xx.c if ((res = snd_audiodrive_probe(card, dev)) < 0) { card 2347 sound/isa/es18xx.c snd_card_free(card); card 2351 sound/isa/es18xx.c pnp_set_card_drvdata(pcard, card); card 471 sound/isa/galaxy/galaxy.c static void snd_galaxy_free(struct snd_card *card) card 473 sound/isa/galaxy/galaxy.c struct snd_galaxy *galaxy = card->private_data; card 495 sound/isa/galaxy/galaxy.c struct snd_card *card; card 500 sound/isa/galaxy/galaxy.c sizeof(*galaxy), &card); card 504 sound/isa/galaxy/galaxy.c card->private_free = snd_galaxy_free; card 505 sound/isa/galaxy/galaxy.c galaxy = card->private_data; card 551 sound/isa/galaxy/galaxy.c strcpy(card->driver, DRV_NAME); card 552 sound/isa/galaxy/galaxy.c strcpy(card->shortname, DRV_NAME); card 553 sound/isa/galaxy/galaxy.c sprintf(card->longname, "%s at %#lx/%#lx, irq %d, dma %d/%d", card 554 sound/isa/galaxy/galaxy.c card->shortname, port[n], wss_port[n], irq[n], dma1[n], card 557 sound/isa/galaxy/galaxy.c err = snd_wss_create(card, wss_port[n] + 4, -1, irq[n], dma1[n], card 575 sound/isa/galaxy/galaxy.c err = snd_mpu401_uart_new(card, 0, MPU401_HW_MPU401, card 584 sound/isa/galaxy/galaxy.c err = snd_opl3_create(card, fm_port[n], fm_port[n] + 2, card 599 sound/isa/galaxy/galaxy.c err = snd_card_register(card); card 603 sound/isa/galaxy/galaxy.c dev_set_drvdata(dev, card); card 607 sound/isa/galaxy/galaxy.c snd_card_free(card); card 128 sound/isa/gus/gus_irq.c snd_card_ro_proc_new(gus->card, "gusirq", gus, snd_gus_irq_info_read); card 27 sound/isa/gus/gus_main.c if (!try_module_get(gus->card->module)) card 34 sound/isa/gus/gus_main.c module_put(gus->card->module); card 84 sound/isa/gus/gus_main.c snd_ctl_add(gus->card, card 126 sound/isa/gus/gus_main.c int snd_gus_create(struct snd_card *card, card 156 sound/isa/gus/gus_main.c gus->card = card; card 217 sound/isa/gus/gus_main.c if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, gus, &ops)) < 0) { card 266 sound/isa/gus/gus_main.c struct snd_card *card; card 276 sound/isa/gus/gus_main.c card = gus->card; card 277 sound/isa/gus/gus_main.c if (snd_BUG_ON(!card)) card 307 sound/isa/gus/gus_main.c card->mixer.mix_ctrl_reg |= 0x10; card 357 sound/isa/gus/gus_main.c struct snd_card *card; card 359 sound/isa/gus/gus_main.c card = gus->card; card 366 sound/isa/gus/gus_main.c strcpy(card->driver, "GUS"); card 367 sound/isa/gus/gus_main.c strcpy(card->longname, "Gravis UltraSound Classic (2.4)"); card 373 sound/isa/gus/gus_main.c card->longname[27] = '3'; card 374 sound/isa/gus/gus_main.c card->longname[29] = rev == 5 ? '5' : '7'; card 378 sound/isa/gus/gus_main.c strcpy(card->driver, "GUS MAX"); card 379 sound/isa/gus/gus_main.c strcpy(card->longname, "Gravis UltraSound MAX"); card 382 sound/isa/gus/gus_main.c strcpy(card->driver, "GUS ACE"); card 383 sound/isa/gus/gus_main.c strcpy(card->longname, "Gravis UltraSound Ace"); card 386 sound/isa/gus/gus_main.c strcpy(card->driver, "GUS Extreme"); card 387 sound/isa/gus/gus_main.c strcpy(card->longname, "Gravis UltraSound Extreme"); card 395 sound/isa/gus/gus_main.c strcpy(card->shortname, card->longname); card 248 sound/isa/gus/gus_mem.c snd_card_ro_proc_new(gus->card, "gusmem", gus, snd_gf1_mem_info_read); card 327 sound/isa/gus/gus_mem.c ultra_memory_free_size(card, &card->gf1.mem_alloc), card 328 sound/isa/gus/gus_mem.c ultra_memory_free_block(card, &card->gf1.mem_alloc, 0), card 329 sound/isa/gus/gus_mem.c ultra_memory_free_block(card, &card->gf1.mem_alloc, 1)); card 58 sound/isa/gus/gus_mem_proc.c if (! snd_card_proc_new(gus->card, name, &entry)) { card 76 sound/isa/gus/gus_mem_proc.c if (! snd_card_proc_new(gus->card, name, &entry)) { card 142 sound/isa/gus/gus_mixer.c struct snd_card *card; card 148 sound/isa/gus/gus_mixer.c card = gus->card; card 149 sound/isa/gus/gus_mixer.c if (snd_BUG_ON(!card)) card 153 sound/isa/gus/gus_mixer.c snd_component_add(card, "ICS2101"); card 154 sound/isa/gus/gus_mixer.c if (card->mixername[0] == '\0') { card 155 sound/isa/gus/gus_mixer.c strcpy(card->mixername, gus->ics_flag ? "GF1,ICS2101" : "GF1"); card 158 sound/isa/gus/gus_mixer.c strcat(card->mixername, ",ICS2101"); card 159 sound/isa/gus/gus_mixer.c strcat(card->mixername, ",GF1"); card 165 sound/isa/gus/gus_mixer.c if ((err = snd_ctl_add(card, snd_ctl_new1(&snd_gf1_controls[idx], gus))) < 0) card 170 sound/isa/gus/gus_mixer.c if ((err = snd_ctl_add(card, snd_ctl_new1(&snd_ics_controls[idx], gus))) < 0) card 857 sound/isa/gus/gus_pcm.c struct snd_card *card; card 863 sound/isa/gus/gus_pcm.c card = gus->card; card 865 sound/isa/gus/gus_pcm.c err = snd_pcm_new(card, card 879 sound/isa/gus/gus_pcm.c card->dev, card 889 sound/isa/gus/gus_pcm.c SNDRV_DMA_TYPE_DEV, card->dev, card 903 sound/isa/gus/gus_pcm.c if ((err = snd_ctl_add(card, kctl)) < 0) card 154 sound/isa/gus/gus_timer.c tid.card = gus->card->number; card 158 sound/isa/gus/gus_timer.c if (snd_timer_new(gus->card, "GF1 timer", &tid, &timer) >= 0) { card 168 sound/isa/gus/gus_timer.c if (snd_timer_new(gus->card, "GF1 timer", &tid, &timer) >= 0) { card 181 sound/isa/gus/gus_timer.c snd_device_free(gus->card, gus->gf1.timer1); card 185 sound/isa/gus/gus_timer.c snd_device_free(gus->card, gus->gf1.timer2); card 234 sound/isa/gus/gus_uart.c if ((err = snd_rawmidi_new(gus->card, "GF1", device, 1, 1, &rmidi)) < 0) card 66 sound/isa/gus/gusclassic.c static int snd_gusclassic_create(struct snd_card *card, card 99 sound/isa/gus/gusclassic.c return snd_gus_create(card, port[n], irq[n], dma1[n], dma2[n], card 105 sound/isa/gus/gusclassic.c error = snd_gus_create(card, port[n], irq[n], dma1[n], dma2[n], card 133 sound/isa/gus/gusclassic.c struct snd_card *card; card 137 sound/isa/gus/gusclassic.c error = snd_card_new(dev, index[n], id[n], THIS_MODULE, 0, &card); card 144 sound/isa/gus/gusclassic.c error = snd_gusclassic_create(card, dev, n, &gus); card 179 sound/isa/gus/gusclassic.c sprintf(card->longname + strlen(card->longname), card 184 sound/isa/gus/gusclassic.c sprintf(card->longname + strlen(card->longname), card 187 sound/isa/gus/gusclassic.c error = snd_card_register(card); card 191 sound/isa/gus/gusclassic.c dev_set_drvdata(dev, card); card 194 sound/isa/gus/gusclassic.c out: snd_card_free(card); card 82 sound/isa/gus/gusextreme.c static int snd_gusextreme_es1688_create(struct snd_card *card, card 108 sound/isa/gus/gusextreme.c return snd_es1688_create(card, chip, port[n], mpu_port[n], card 114 sound/isa/gus/gusextreme.c error = snd_es1688_create(card, chip, port[n], mpu_port[n], card 121 sound/isa/gus/gusextreme.c static int snd_gusextreme_gus_card_create(struct snd_card *card, card 142 sound/isa/gus/gusextreme.c return snd_gus_create(card, gf1_port[n], gf1_irq[n], dma1[n], -1, card 196 sound/isa/gus/gusextreme.c static int snd_gusextreme_mixer(struct snd_card *card) card 208 sound/isa/gus/gusextreme.c error = snd_ctl_rename_id(card, &id1, &id2); card 215 sound/isa/gus/gusextreme.c error = snd_ctl_rename_id(card, &id1, &id2); card 224 sound/isa/gus/gusextreme.c struct snd_card *card; card 231 sound/isa/gus/gusextreme.c sizeof(struct snd_es1688), &card); card 235 sound/isa/gus/gusextreme.c es1688 = card->private_data; card 243 sound/isa/gus/gusextreme.c error = snd_gusextreme_es1688_create(card, es1688, dev, n); card 250 sound/isa/gus/gusextreme.c error = snd_gusextreme_gus_card_create(card, dev, n, &gus); card 272 sound/isa/gus/gusextreme.c error = snd_es1688_pcm(card, es1688, 0); card 276 sound/isa/gus/gusextreme.c error = snd_es1688_mixer(card, es1688); card 280 sound/isa/gus/gusextreme.c snd_component_add(card, "ES1688"); card 292 sound/isa/gus/gusextreme.c error = snd_gusextreme_mixer(card); card 296 sound/isa/gus/gusextreme.c if (snd_opl3_create(card, es1688->port, es1688->port + 2, card 306 sound/isa/gus/gusextreme.c error = snd_mpu401_uart_new(card, 0, MPU401_HW_ES1688, card 312 sound/isa/gus/gusextreme.c sprintf(card->longname, "Gravis UltraSound Extreme at 0x%lx, " card 316 sound/isa/gus/gusextreme.c error = snd_card_register(card); card 320 sound/isa/gus/gusextreme.c dev_set_drvdata(dev, card); card 323 sound/isa/gus/gusextreme.c out: snd_card_free(card); card 61 sound/isa/gus/gusmax.c struct snd_card *card; card 112 sound/isa/gus/gusmax.c static void snd_gusmax_init(int dev, struct snd_card *card, card 130 sound/isa/gus/gusmax.c struct snd_card *card = chip->card; card 140 sound/isa/gus/gusmax.c if ((err = snd_ctl_rename_id(card, &id1, &id2)) < 0) card 144 sound/isa/gus/gusmax.c if ((err = snd_ctl_rename_id(card, &id1, &id2)) < 0) card 149 sound/isa/gus/gusmax.c if ((err = snd_ctl_rename_id(card, &id1, &id2)) < 0) card 153 sound/isa/gus/gusmax.c if ((err = snd_ctl_rename_id(card, &id1, &id2)) < 0) card 177 sound/isa/gus/gusmax.c static void snd_gusmax_free(struct snd_card *card) card 179 sound/isa/gus/gusmax.c struct snd_gusmax *maxcard = card->private_data; card 197 sound/isa/gus/gusmax.c struct snd_card *card; card 203 sound/isa/gus/gusmax.c sizeof(struct snd_gusmax), &card); card 206 sound/isa/gus/gusmax.c card->private_free = snd_gusmax_free; card 207 sound/isa/gus/gusmax.c maxcard = card->private_data; card 208 sound/isa/gus/gusmax.c maxcard->card = card; card 237 sound/isa/gus/gusmax.c err = snd_gus_create(card, card 249 sound/isa/gus/gusmax.c err = snd_gus_create(card, card 269 sound/isa/gus/gusmax.c snd_gusmax_init(dev, card, gus); card 286 sound/isa/gus/gusmax.c err = snd_wss_create(card, card 321 sound/isa/gus/gusmax.c sprintf(card->longname + strlen(card->longname), " at 0x%lx, irq %i, dma %i", gus->gf1.port, xirq, xdma1); card 323 sound/isa/gus/gusmax.c sprintf(card->longname + strlen(card->longname), "&%i", xdma2); card 325 sound/isa/gus/gusmax.c err = snd_card_register(card); card 332 sound/isa/gus/gusmax.c dev_set_drvdata(pdev, card); card 336 sound/isa/gus/gusmax.c snd_card_free(card); card 103 sound/isa/gus/interwave.c struct snd_card *card; card 201 sound/isa/gus/interwave.c struct snd_card *card = iwcard->card; card 225 sound/isa/gus/interwave.c sprintf(name, "InterWave-%i", card->number); card 226 sound/isa/gus/interwave.c if ((err = snd_i2c_bus_create(card, name, NULL, &bus)) < 0) card 272 sound/isa/gus/interwave.c strcpy(gus->card->shortname, "AMD InterWave"); card 447 sound/isa/gus/interwave.c gus->card->type = SNDRV_CARD_TYPE_IW_DYNASONIC; card 491 sound/isa/gus/interwave.c struct snd_card *card = chip->card; card 502 sound/isa/gus/interwave.c if ((err = snd_ctl_remove_id(card, &id1)) < 0) card 505 sound/isa/gus/interwave.c if ((err = snd_ctl_remove_id(card, &id1)) < 0) card 510 sound/isa/gus/interwave.c if ((err = snd_ctl_add(card, snd_ctl_new1(&snd_interwave_controls[idx], chip))) < 0) card 519 sound/isa/gus/interwave.c if ((err = snd_ctl_rename_id(card, &id1, &id2)) < 0) card 523 sound/isa/gus/interwave.c if ((err = snd_ctl_rename_id(card, &id1, &id2)) < 0) card 528 sound/isa/gus/interwave.c if ((err = snd_ctl_rename_id(card, &id1, &id2)) < 0) card 532 sound/isa/gus/interwave.c if ((err = snd_ctl_rename_id(card, &id1, &id2)) < 0) card 540 sound/isa/gus/interwave.c struct pnp_card_link *card, card 546 sound/isa/gus/interwave.c iwcard->dev = pnp_request_card_device(card, id->devs[0].id, NULL); card 551 sound/isa/gus/interwave.c iwcard->devtc = pnp_request_card_device(card, id->devs[1].id, NULL); card 594 sound/isa/gus/interwave.c static void snd_interwave_free(struct snd_card *card) card 596 sound/isa/gus/interwave.c struct snd_interwave *iwcard = card->private_data; card 610 sound/isa/gus/interwave.c struct snd_card *card; card 615 sound/isa/gus/interwave.c sizeof(struct snd_interwave), &card); card 618 sound/isa/gus/interwave.c iwcard = card->private_data; card 619 sound/isa/gus/interwave.c iwcard->card = card; card 621 sound/isa/gus/interwave.c card->private_free = snd_interwave_free; card 622 sound/isa/gus/interwave.c *cardp = card; card 626 sound/isa/gus/interwave.c static int snd_interwave_probe(struct snd_card *card, int dev) card 629 sound/isa/gus/interwave.c struct snd_interwave *iwcard = card->private_data; card 642 sound/isa/gus/interwave.c if ((err = snd_gus_create(card, card 671 sound/isa/gus/interwave.c err = snd_wss_create(card, card 716 sound/isa/gus/interwave.c if ((err = snd_ctl_rename_id(card, &id1, &id2)) < 0) card 720 sound/isa/gus/interwave.c if ((err = snd_ctl_rename_id(card, &id1, &id2)) < 0) card 722 sound/isa/gus/interwave.c if ((err = snd_tea6330t_update_mixer(card, i2c_bus, 0, 1)) < 0) card 738 sound/isa/gus/interwave.c strcpy(card->driver, str); card 739 sound/isa/gus/interwave.c strcpy(card->shortname, str); card 740 sound/isa/gus/interwave.c sprintf(card->longname, "%s at 0x%lx, irq %i, dma %d", card 746 sound/isa/gus/interwave.c sprintf(card->longname + strlen(card->longname), "&%d", xdma2); card 748 sound/isa/gus/interwave.c err = snd_card_register(card); card 759 sound/isa/gus/interwave.c struct snd_card *card; card 762 sound/isa/gus/interwave.c err = snd_interwave_card_new(devptr, dev, &card); card 766 sound/isa/gus/interwave.c if ((err = snd_interwave_probe(card, dev)) < 0) { card 767 sound/isa/gus/interwave.c snd_card_free(card); card 770 sound/isa/gus/interwave.c dev_set_drvdata(devptr, card); card 848 sound/isa/gus/interwave.c struct snd_card *card; card 858 sound/isa/gus/interwave.c res = snd_interwave_card_new(&pcard->card->dev, dev, &card); card 862 sound/isa/gus/interwave.c if ((res = snd_interwave_pnp(dev, card->private_data, pcard, pid)) < 0) { card 863 sound/isa/gus/interwave.c snd_card_free(card); card 866 sound/isa/gus/interwave.c if ((res = snd_interwave_probe(card, dev)) < 0) { card 867 sound/isa/gus/interwave.c snd_card_free(card); card 870 sound/isa/gus/interwave.c pnp_set_card_drvdata(pcard, card); card 670 sound/isa/msnd/msnd.c int snd_msnd_pcm(struct snd_card *card, int device) card 672 sound/isa/msnd/msnd.c struct snd_msnd *chip = card->private_data; card 676 sound/isa/msnd/msnd.c err = snd_pcm_new(card, "MSNDPINNACLE", device, 1, 1, &pcm); card 218 sound/isa/msnd/msnd.h struct snd_card *card; card 287 sound/isa/msnd/msnd.h int snd_msnd_pcm(struct snd_card *card, int device); card 289 sound/isa/msnd/msnd.h int snd_msndmidi_new(struct snd_card *card, int device); card 293 sound/isa/msnd/msnd.h int snd_msndmix_new(struct snd_card *card); card 142 sound/isa/msnd/msnd_midi.c int snd_msndmidi_new(struct snd_card *card, int device) card 144 sound/isa/msnd/msnd_midi.c struct snd_msnd *chip = card->private_data; card 149 sound/isa/msnd/msnd_midi.c err = snd_rawmidi_new(card, "MSND-MIDI", device, 1, 1, &rmidi); card 154 sound/isa/msnd/msnd_midi.c snd_device_free(card, rmidi); card 205 sound/isa/msnd/msnd_pinnacle.c static int snd_msnd_probe(struct snd_card *card) card 207 sound/isa/msnd/msnd_pinnacle.c struct snd_msnd *chip = card->private_data; card 226 sound/isa/msnd/msnd_pinnacle.c strcpy(card->shortname, "Classic/Tahiti/Monterey"); card 227 sound/isa/msnd/msnd_pinnacle.c strcpy(card->longname, "Turtle Beach Multisound"); card 230 sound/isa/msnd/msnd_pinnacle.c card->shortname, card 256 sound/isa/msnd/msnd_pinnacle.c strcpy(card->shortname, pin); card 260 sound/isa/msnd/msnd_pinnacle.c strcpy(card->shortname, pin); card 264 sound/isa/msnd/msnd_pinnacle.c strcpy(card->shortname, pin); card 268 sound/isa/msnd/msnd_pinnacle.c strcpy(card->shortname, pin); card 272 sound/isa/msnd/msnd_pinnacle.c strcpy(card->shortname, fiji); card 276 sound/isa/msnd/msnd_pinnacle.c strcpy(card->shortname, fiji); card 280 sound/isa/msnd/msnd_pinnacle.c strcpy(card->shortname, fiji); card 284 sound/isa/msnd/msnd_pinnacle.c strcpy(card->shortname, pinfiji); card 287 sound/isa/msnd/msnd_pinnacle.c strcpy(card->longname, "Turtle Beach Multisound Pinnacle"); card 290 sound/isa/msnd/msnd_pinnacle.c card->shortname, card 370 sound/isa/msnd/msnd_pinnacle.c static int upload_dsp_code(struct snd_card *card) card 372 sound/isa/msnd/msnd_pinnacle.c struct snd_msnd *chip = card->private_data; card 378 sound/isa/msnd/msnd_pinnacle.c err = request_firmware(&init_fw, INITCODEFILE, card->dev); card 383 sound/isa/msnd/msnd_pinnacle.c err = request_firmware(&perm_fw, PERMCODEFILE, card->dev); card 415 sound/isa/msnd/msnd_pinnacle.c static int snd_msnd_initialize(struct snd_card *card) card 417 sound/isa/msnd/msnd_pinnacle.c struct snd_msnd *chip = card->private_data; card 436 sound/isa/msnd/msnd_pinnacle.c err = upload_dsp_code(card); card 456 sound/isa/msnd/msnd_pinnacle.c static int snd_msnd_dsp_full_reset(struct snd_card *card) card 458 sound/isa/msnd/msnd_pinnacle.c struct snd_msnd *chip = card->private_data; card 467 sound/isa/msnd/msnd_pinnacle.c rv = snd_msnd_initialize(card); card 485 sound/isa/msnd/msnd_pinnacle.c snd_msnd_dsp_full_reset(chip->card); card 527 sound/isa/msnd/msnd_pinnacle.c static int snd_msnd_attach(struct snd_card *card) card 529 sound/isa/msnd/msnd_pinnacle.c struct snd_msnd *chip = card->private_data; card 535 sound/isa/msnd/msnd_pinnacle.c err = request_irq(chip->irq, snd_msnd_interrupt, 0, card->shortname, card 541 sound/isa/msnd/msnd_pinnacle.c if (request_region(chip->io, DSP_NUMIO, card->shortname) == NULL) { card 546 sound/isa/msnd/msnd_pinnacle.c if (!request_mem_region(chip->base, BUFFSIZE, card->shortname)) { card 563 sound/isa/msnd/msnd_pinnacle.c err = snd_msnd_dsp_full_reset(card); card 568 sound/isa/msnd/msnd_pinnacle.c err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops); card 572 sound/isa/msnd/msnd_pinnacle.c err = snd_msnd_pcm(card, 0); card 578 sound/isa/msnd/msnd_pinnacle.c err = snd_msndmix_new(card); card 588 sound/isa/msnd/msnd_pinnacle.c err = snd_mpu401_uart_new(card, 0, MPU401_HW_MPU401, card 610 sound/isa/msnd/msnd_pinnacle.c err = snd_card_register(card); card 625 sound/isa/msnd/msnd_pinnacle.c static void snd_msnd_unload(struct snd_card *card) card 627 sound/isa/msnd/msnd_pinnacle.c struct snd_msnd *chip = card->private_data; card 633 sound/isa/msnd/msnd_pinnacle.c snd_card_free(card); card 882 sound/isa/msnd/msnd_pinnacle.c struct snd_card *card; card 895 sound/isa/msnd/msnd_pinnacle.c sizeof(struct snd_msnd), &card); card 899 sound/isa/msnd/msnd_pinnacle.c chip = card->private_data; card 900 sound/isa/msnd/msnd_pinnacle.c chip->card = card; card 939 sound/isa/msnd/msnd_pinnacle.c snd_card_free(card); card 1026 sound/isa/msnd/msnd_pinnacle.c err = snd_msnd_probe(card); card 1029 sound/isa/msnd/msnd_pinnacle.c snd_card_free(card); card 1033 sound/isa/msnd/msnd_pinnacle.c err = snd_msnd_attach(card); card 1036 sound/isa/msnd/msnd_pinnacle.c snd_card_free(card); card 1039 sound/isa/msnd/msnd_pinnacle.c dev_set_drvdata(pdev, card); card 1046 sound/isa/msnd/msnd_pinnacle.c snd_card_free(card); card 1074 sound/isa/msnd/msnd_pinnacle.c struct snd_card *card; card 1110 sound/isa/msnd/msnd_pinnacle.c ret = snd_card_new(&pcard->card->dev, card 1112 sound/isa/msnd/msnd_pinnacle.c sizeof(struct snd_msnd), &card); card 1116 sound/isa/msnd/msnd_pinnacle.c chip = card->private_data; card 1117 sound/isa/msnd/msnd_pinnacle.c chip->card = card; card 1151 sound/isa/msnd/msnd_pinnacle.c ret = snd_msnd_probe(card); card 1157 sound/isa/msnd/msnd_pinnacle.c ret = snd_msnd_attach(card); card 1163 sound/isa/msnd/msnd_pinnacle.c pnp_set_card_drvdata(pcard, card); card 1168 sound/isa/msnd/msnd_pinnacle.c snd_card_free(card); card 295 sound/isa/msnd/msnd_pinnacle_mixer.c int snd_msndmix_new(struct snd_card *card) card 297 sound/isa/msnd/msnd_pinnacle_mixer.c struct snd_msnd *chip = card->private_data; card 304 sound/isa/msnd/msnd_pinnacle_mixer.c strcpy(card->mixername, "MSND Pinnacle Mixer"); card 307 sound/isa/msnd/msnd_pinnacle_mixer.c err = snd_ctl_add(card, card 208 sound/isa/opl3sa2.c static int snd_opl3sa2_detect(struct snd_card *card) card 210 sound/isa/opl3sa2.c struct snd_opl3sa2 *chip = card->private_data; card 245 sound/isa/opl3sa2.c strcat(card->shortname, str); card 286 sound/isa/opl3sa2.c struct snd_card *card = dev_id; card 290 sound/isa/opl3sa2.c if (card == NULL) card 293 sound/isa/opl3sa2.c chip = card->private_data; card 317 sound/isa/opl3sa2.c snd_ctl_notify(card, SNDRV_CTL_EVENT_MASK_VALUE, card 319 sound/isa/opl3sa2.c snd_ctl_notify(card, SNDRV_CTL_EVENT_MASK_VALUE, card 483 sound/isa/opl3sa2.c static int snd_opl3sa2_mixer(struct snd_card *card) card 485 sound/isa/opl3sa2.c struct snd_opl3sa2 *chip = card->private_data; card 497 sound/isa/opl3sa2.c if ((err = snd_ctl_rename_id(card, &id1, &id2)) < 0) { card 503 sound/isa/opl3sa2.c if ((err = snd_ctl_rename_id(card, &id1, &id2)) < 0) { card 510 sound/isa/opl3sa2.c if ((err = snd_ctl_rename_id(card, &id1, &id2)) < 0) { card 516 sound/isa/opl3sa2.c if ((err = snd_ctl_rename_id(card, &id1, &id2)) < 0) { card 522 sound/isa/opl3sa2.c if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_opl3sa2_controls[idx], chip))) < 0) card 531 sound/isa/opl3sa2.c if ((err = snd_ctl_add(card, snd_ctl_new1(&snd_opl3sa2_tone_controls[idx], chip))) < 0) card 539 sound/isa/opl3sa2.c static int snd_opl3sa2_suspend(struct snd_card *card, pm_message_t state) card 541 sound/isa/opl3sa2.c if (card) { card 542 sound/isa/opl3sa2.c struct snd_opl3sa2 *chip = card->private_data; card 544 sound/isa/opl3sa2.c snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); card 553 sound/isa/opl3sa2.c static int snd_opl3sa2_resume(struct snd_card *card) card 558 sound/isa/opl3sa2.c if (!card) card 561 sound/isa/opl3sa2.c chip = card->private_data; card 577 sound/isa/opl3sa2.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 606 sound/isa/opl3sa2.c static void snd_opl3sa2_free(struct snd_card *card) card 608 sound/isa/opl3sa2.c struct snd_opl3sa2 *chip = card->private_data; card 610 sound/isa/opl3sa2.c free_irq(chip->irq, card); card 617 sound/isa/opl3sa2.c struct snd_card *card; card 622 sound/isa/opl3sa2.c sizeof(struct snd_opl3sa2), &card); card 625 sound/isa/opl3sa2.c strcpy(card->driver, "OPL3SA2"); card 626 sound/isa/opl3sa2.c strcpy(card->shortname, "Yamaha OPL3-SA"); card 627 sound/isa/opl3sa2.c chip = card->private_data; card 630 sound/isa/opl3sa2.c card->private_free = snd_opl3sa2_free; card 631 sound/isa/opl3sa2.c *cardp = card; card 635 sound/isa/opl3sa2.c static int snd_opl3sa2_probe(struct snd_card *card, int dev) card 644 sound/isa/opl3sa2.c chip = card->private_data; card 652 sound/isa/opl3sa2.c err = snd_opl3sa2_detect(card); card 656 sound/isa/opl3sa2.c "OPL3-SA2", card); card 662 sound/isa/opl3sa2.c err = snd_wss_create(card, card 677 sound/isa/opl3sa2.c err = snd_opl3sa2_mixer(card); card 684 sound/isa/opl3sa2.c if ((err = snd_opl3_create(card, fm_port[dev], card 694 sound/isa/opl3sa2.c if ((err = snd_mpu401_uart_new(card, 0, MPU401_HW_OPL3SA2, card 700 sound/isa/opl3sa2.c sprintf(card->longname, "%s at 0x%lx, irq %d, dma %d", card 701 sound/isa/opl3sa2.c card->shortname, chip->port, xirq, xdma1); card 703 sound/isa/opl3sa2.c sprintf(card->longname + strlen(card->longname), "&%d", xdma2); card 705 sound/isa/opl3sa2.c return snd_card_register(card); card 714 sound/isa/opl3sa2.c struct snd_card *card; card 725 sound/isa/opl3sa2.c err = snd_opl3sa2_card_new(&pdev->dev, dev, &card); card 728 sound/isa/opl3sa2.c if ((err = snd_opl3sa2_pnp(dev, card->private_data, pdev)) < 0) { card 729 sound/isa/opl3sa2.c snd_card_free(card); card 732 sound/isa/opl3sa2.c if ((err = snd_opl3sa2_probe(card, dev)) < 0) { card 733 sound/isa/opl3sa2.c snd_card_free(card); card 736 sound/isa/opl3sa2.c pnp_set_drvdata(pdev, card); card 774 sound/isa/opl3sa2.c struct snd_card *card; card 789 sound/isa/opl3sa2.c err = snd_opl3sa2_card_new(&pdev->dev, dev, &card); card 792 sound/isa/opl3sa2.c if ((err = snd_opl3sa2_pnp(dev, card->private_data, pdev)) < 0) { card 793 sound/isa/opl3sa2.c snd_card_free(card); card 796 sound/isa/opl3sa2.c if ((err = snd_opl3sa2_probe(card, dev)) < 0) { card 797 sound/isa/opl3sa2.c snd_card_free(card); card 800 sound/isa/opl3sa2.c pnp_set_card_drvdata(pcard, card); card 866 sound/isa/opl3sa2.c struct snd_card *card; card 869 sound/isa/opl3sa2.c err = snd_opl3sa2_card_new(pdev, dev, &card); card 872 sound/isa/opl3sa2.c if ((err = snd_opl3sa2_probe(card, dev)) < 0) { card 873 sound/isa/opl3sa2.c snd_card_free(card); card 876 sound/isa/opl3sa2.c dev_set_drvdata(pdev, card); card 706 sound/isa/opti9xx/miro.c static int snd_miro_mixer(struct snd_card *card, card 712 sound/isa/opti9xx/miro.c if (snd_BUG_ON(!miro || !card)) card 717 sound/isa/opti9xx/miro.c strcpy(card->mixername, "ACI & OPTi924"); card 720 sound/isa/opti9xx/miro.c strcpy(card->mixername, "ACI & OPTi929"); card 728 sound/isa/opti9xx/miro.c if ((err = snd_ctl_add(card, snd_ctl_new1(&snd_miro_controls[idx], miro))) < 0) card 735 sound/isa/opti9xx/miro.c if ((err = snd_ctl_add(card, snd_ctl_new1(&snd_miro_line_control[0], miro))) < 0) card 737 sound/isa/opti9xx/miro.c if ((err = snd_ctl_add(card, snd_ctl_new1(&snd_miro_amp_control[0], miro))) < 0) card 744 sound/isa/opti9xx/miro.c if ((err = snd_ctl_add(card, snd_ctl_new1(&snd_miro_preamp_control[0], miro))) < 0) card 747 sound/isa/opti9xx/miro.c if ((err = snd_ctl_add(card, snd_ctl_new1(&snd_miro_capture_control[0], miro))) < 0) card 753 sound/isa/opti9xx/miro.c if ((err = snd_ctl_add(card, snd_ctl_new1(&snd_miro_radio_control[0], miro))) < 0) card 756 sound/isa/opti9xx/miro.c if ((err = snd_ctl_add(card, snd_ctl_new1(&snd_miro_eq_controls[idx], miro))) < 0) card 987 sound/isa/opti9xx/miro.c static void snd_miro_proc_init(struct snd_card *card, card 990 sound/isa/opti9xx/miro.c snd_card_ro_proc_new(card, "miro", miro, snd_miro_proc_read); card 1177 sound/isa/opti9xx/miro.c static int snd_card_miro_detect(struct snd_card *card, card 1195 sound/isa/opti9xx/miro.c static int snd_card_miro_aci_detect(struct snd_card *card, card 1250 sound/isa/opti9xx/miro.c static void snd_card_miro_free(struct snd_card *card) card 1252 sound/isa/opti9xx/miro.c struct snd_miro *miro = card->private_data; card 1260 sound/isa/opti9xx/miro.c static int snd_miro_probe(struct snd_card *card) card 1263 sound/isa/opti9xx/miro.c struct snd_miro *miro = card->private_data; card 1277 sound/isa/opti9xx/miro.c error = snd_card_miro_aci_detect(card, miro); card 1291 sound/isa/opti9xx/miro.c snd_miro_proc_init(card, miro); card 1297 sound/isa/opti9xx/miro.c error = snd_wss_create(card, miro->wss_base + 4, -1, card 1317 sound/isa/opti9xx/miro.c error = snd_miro_mixer(card, miro); card 1325 sound/isa/opti9xx/miro.c sprintf(card->shortname, card 1329 sound/isa/opti9xx/miro.c sprintf(card->shortname, card 1333 sound/isa/opti9xx/miro.c sprintf(card->shortname, card 1337 sound/isa/opti9xx/miro.c sprintf(card->shortname, card 1344 sound/isa/opti9xx/miro.c sprintf(card->shortname, "unknown Cardinal Technologies"); card 1347 sound/isa/opti9xx/miro.c strcpy(card->driver, "miro"); card 1348 sound/isa/opti9xx/miro.c snprintf(card->longname, sizeof(card->longname), card 1350 sound/isa/opti9xx/miro.c card->shortname, miro->name, codec->pcm->name, card 1356 sound/isa/opti9xx/miro.c error = snd_mpu401_uart_new(card, 0, MPU401_HW_MPU401, card 1367 sound/isa/opti9xx/miro.c if (snd_opl4_create(card, fm_port, fm_port - 8, card 1377 sound/isa/opti9xx/miro.c return snd_card_register(card); card 1403 sound/isa/opti9xx/miro.c struct snd_card *card; card 1406 sound/isa/opti9xx/miro.c sizeof(struct snd_miro), &card); card 1410 sound/isa/opti9xx/miro.c card->private_free = snd_card_miro_free; card 1411 sound/isa/opti9xx/miro.c miro = card->private_data; card 1413 sound/isa/opti9xx/miro.c error = snd_card_miro_detect(card, miro); card 1415 sound/isa/opti9xx/miro.c snd_card_free(card); card 1423 sound/isa/opti9xx/miro.c snd_card_free(card); card 1432 sound/isa/opti9xx/miro.c snd_card_free(card); card 1442 sound/isa/opti9xx/miro.c snd_card_free(card); card 1450 sound/isa/opti9xx/miro.c snd_card_free(card); card 1459 sound/isa/opti9xx/miro.c snd_card_free(card); card 1467 sound/isa/opti9xx/miro.c snd_card_free(card); card 1473 sound/isa/opti9xx/miro.c error = snd_miro_probe(card); card 1475 sound/isa/opti9xx/miro.c snd_card_free(card); card 1479 sound/isa/opti9xx/miro.c dev_set_drvdata(devptr, card); card 1505 sound/isa/opti9xx/miro.c struct pnp_card_link *card, card 1513 sound/isa/opti9xx/miro.c pdev = pnp_request_card_device(card, pid->devs[0].id, NULL); card 1517 sound/isa/opti9xx/miro.c devmpu = pnp_request_card_device(card, pid->devs[1].id, NULL); card 1521 sound/isa/opti9xx/miro.c devmc = pnp_request_card_device(card, pid->devs[2].id, NULL); card 1568 sound/isa/opti9xx/miro.c struct snd_card *card; card 1576 sound/isa/opti9xx/miro.c err = snd_card_new(&pcard->card->dev, index, id, THIS_MODULE, card 1577 sound/isa/opti9xx/miro.c sizeof(struct snd_miro), &card); card 1581 sound/isa/opti9xx/miro.c card->private_free = snd_card_miro_free; card 1582 sound/isa/opti9xx/miro.c miro = card->private_data; card 1586 sound/isa/opti9xx/miro.c snd_card_free(card); card 1593 sound/isa/opti9xx/miro.c snd_card_free(card); card 1600 sound/isa/opti9xx/miro.c snd_card_free(card); card 1604 sound/isa/opti9xx/miro.c err = snd_miro_probe(card); card 1606 sound/isa/opti9xx/miro.c snd_card_free(card); card 1609 sound/isa/opti9xx/miro.c pnp_set_card_drvdata(pcard, card); card 590 sound/isa/opti9xx/opti92x-ad1848.c struct snd_card *card; card 598 sound/isa/opti9xx/opti92x-ad1848.c card = chip->card; card 600 sound/isa/opti9xx/opti92x-ad1848.c strcpy(card->mixername, chip->pcm->name); card 608 sound/isa/opti9xx/opti92x-ad1848.c err = snd_ctl_rename_id(card, &id1, &id2); card 616 sound/isa/opti9xx/opti92x-ad1848.c err = snd_ctl_rename_id(card, &id1, &id2); card 623 sound/isa/opti9xx/opti92x-ad1848.c snd_ctl_remove_id(card, &id1); card 629 sound/isa/opti9xx/opti92x-ad1848.c snd_ctl_remove_id(card, &id1); card 631 sound/isa/opti9xx/opti92x-ad1848.c err = snd_ctl_add(card, card 702 sound/isa/opti9xx/opti92x-ad1848.c static int snd_card_opti9xx_detect(struct snd_card *card, card 728 sound/isa/opti9xx/opti92x-ad1848.c struct pnp_card_link *card, card 738 sound/isa/opti9xx/opti92x-ad1848.c pdev = pnp_request_card_device(card, pid->devs[0].id, NULL); card 755 sound/isa/opti9xx/opti92x-ad1848.c devmc = pnp_request_card_device(card, pid->devs[2].id, NULL); card 780 sound/isa/opti9xx/opti92x-ad1848.c devmpu = pnp_request_card_device(card, pid->devs[1].id, NULL); card 796 sound/isa/opti9xx/opti92x-ad1848.c static void snd_card_opti9xx_free(struct snd_card *card) card 798 sound/isa/opti9xx/opti92x-ad1848.c struct snd_opti9xx *chip = card->private_data; card 812 sound/isa/opti9xx/opti92x-ad1848.c static int snd_opti9xx_probe(struct snd_card *card) card 817 sound/isa/opti9xx/opti92x-ad1848.c struct snd_opti9xx *chip = card->private_data; card 840 sound/isa/opti9xx/opti92x-ad1848.c error = snd_wss_create(card, chip->wss_base + 4, -1, irq, dma1, xdma2, card 875 sound/isa/opti9xx/opti92x-ad1848.c strcpy(card->driver, chip->name); card 876 sound/isa/opti9xx/opti92x-ad1848.c sprintf(card->shortname, "OPTi %s", card->driver); card 878 sound/isa/opti9xx/opti92x-ad1848.c snprintf(card->longname, sizeof(card->longname), card 880 sound/isa/opti9xx/opti92x-ad1848.c card->shortname, codec->pcm->name, card 883 sound/isa/opti9xx/opti92x-ad1848.c snprintf(card->longname, sizeof(card->longname), card 885 sound/isa/opti9xx/opti92x-ad1848.c card->shortname, codec->pcm->name, chip->wss_base + 4, irq, card 892 sound/isa/opti9xx/opti92x-ad1848.c error = snd_mpu401_uart_new(card, 0, MPU401_HW_MPU401, card 909 sound/isa/opti9xx/opti92x-ad1848.c if (snd_opl4_create(card, fm_port, fm_port - 8, card 917 sound/isa/opti9xx/opti92x-ad1848.c if (!opl3 && snd_opl3_create(card, fm_port, fm_port + 2, card 929 sound/isa/opti9xx/opti92x-ad1848.c return snd_card_register(card); card 934 sound/isa/opti9xx/opti92x-ad1848.c struct snd_card *card; card 938 sound/isa/opti9xx/opti92x-ad1848.c sizeof(struct snd_opti9xx), &card); card 941 sound/isa/opti9xx/opti92x-ad1848.c card->private_free = snd_card_opti9xx_free; card 942 sound/isa/opti9xx/opti92x-ad1848.c *cardp = card; card 961 sound/isa/opti9xx/opti92x-ad1848.c struct snd_card *card; card 1008 sound/isa/opti9xx/opti92x-ad1848.c error = snd_opti9xx_card_new(devptr, &card); card 1012 sound/isa/opti9xx/opti92x-ad1848.c if ((error = snd_card_opti9xx_detect(card, card->private_data)) < 0) { card 1013 sound/isa/opti9xx/opti92x-ad1848.c snd_card_free(card); card 1016 sound/isa/opti9xx/opti92x-ad1848.c if ((error = snd_opti9xx_probe(card)) < 0) { card 1017 sound/isa/opti9xx/opti92x-ad1848.c snd_card_free(card); card 1020 sound/isa/opti9xx/opti92x-ad1848.c dev_set_drvdata(devptr, card); card 1032 sound/isa/opti9xx/opti92x-ad1848.c static int snd_opti9xx_suspend(struct snd_card *card) card 1034 sound/isa/opti9xx/opti92x-ad1848.c struct snd_opti9xx *chip = card->private_data; card 1036 sound/isa/opti9xx/opti92x-ad1848.c snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); card 1041 sound/isa/opti9xx/opti92x-ad1848.c static int snd_opti9xx_resume(struct snd_card *card) card 1043 sound/isa/opti9xx/opti92x-ad1848.c struct snd_opti9xx *chip = card->private_data; card 1056 sound/isa/opti9xx/opti92x-ad1848.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 1089 sound/isa/opti9xx/opti92x-ad1848.c struct snd_card *card; card 1097 sound/isa/opti9xx/opti92x-ad1848.c error = snd_opti9xx_card_new(&pcard->card->dev, &card); card 1100 sound/isa/opti9xx/opti92x-ad1848.c chip = card->private_data; card 1114 sound/isa/opti9xx/opti92x-ad1848.c snd_card_free(card); card 1119 sound/isa/opti9xx/opti92x-ad1848.c snd_card_free(card); card 1125 sound/isa/opti9xx/opti92x-ad1848.c snd_card_free(card); card 1128 sound/isa/opti9xx/opti92x-ad1848.c if ((error = snd_opti9xx_probe(card)) < 0) { card 1129 sound/isa/opti9xx/opti92x-ad1848.c snd_card_free(card); card 1132 sound/isa/opti9xx/opti92x-ad1848.c pnp_set_card_drvdata(pcard, card); card 1021 sound/isa/sb/emu8000.c snd_emu8000_create_mixer(struct snd_card *card, struct snd_emu8000 *emu) card 1025 sound/isa/sb/emu8000.c if (snd_BUG_ON(!emu || !card)) card 1032 sound/isa/sb/emu8000.c if ((err = snd_ctl_add(card, emu->controls[i] = snd_ctl_new1(mixer_defs[i], emu))) < 0) card 1039 sound/isa/sb/emu8000.c down_write(&card->controls_rwsem); card 1041 sound/isa/sb/emu8000.c snd_ctl_remove(card, emu->controls[i]); card 1042 sound/isa/sb/emu8000.c up_write(&card->controls_rwsem); card 1072 sound/isa/sb/emu8000.c snd_emu8000_new(struct snd_card *card, int index, long port, int seq_ports, card 1104 sound/isa/sb/emu8000.c hw->card = card; card 1119 sound/isa/sb/emu8000.c if ((err = snd_emu8000_create_mixer(card, hw)) < 0) { card 1124 sound/isa/sb/emu8000.c if ((err = snd_device_new(card, SNDRV_DEV_CODEC, hw, &ops)) < 0) { card 1129 sound/isa/sb/emu8000.c if (snd_seq_device_new(card, index, SNDRV_SEQ_DEV_ID_EMU8000, card 30 sound/isa/sb/emu8000_local.h int snd_emu8000_pcm_new(struct snd_card *card, struct snd_emu8000 *emu, int index); card 681 sound/isa/sb/emu8000_pcm.c int snd_emu8000_pcm_new(struct snd_card *card, struct snd_emu8000 *emu, int index) card 686 sound/isa/sb/emu8000_pcm.c if ((err = snd_pcm_new(card, "Emu8000 PCM", index, 1, 0, &pcm)) < 0) card 693 sound/isa/sb/emu8000_pcm.c snd_device_register(card, pcm); card 64 sound/isa/sb/emu8000_synth.c if (snd_emux_register(emu, dev->card, hw->index, "Emu8000") < 0) { card 73 sound/isa/sb/emu8000_synth.c snd_emu8000_pcm_new(dev->card, hw, 1); card 94 sound/isa/sb/emu8000_synth.c snd_device_free(dev->card, hw->pcm); card 223 sound/isa/sb/jazz16.c struct snd_card *card; card 233 sound/isa/sb/jazz16.c sizeof(struct snd_card_jazz16), &card); card 237 sound/isa/sb/jazz16.c jazz16 = card->private_data; card 275 sound/isa/sb/jazz16.c err = snd_sbdsp_create(card, port[dev], irq[dev], card 294 sound/isa/sb/jazz16.c strcpy(card->driver, "jazz16"); card 295 sound/isa/sb/jazz16.c strcpy(card->shortname, "Media Vision Jazz16"); card 296 sound/isa/sb/jazz16.c sprintf(card->longname, card 307 sound/isa/sb/jazz16.c err = snd_opl3_create(card, chip->port, chip->port + 2, card 321 sound/isa/sb/jazz16.c if (snd_mpu401_uart_new(card, 0, card 330 sound/isa/sb/jazz16.c err = snd_card_register(card); card 334 sound/isa/sb/jazz16.c dev_set_drvdata(devptr, card); card 338 sound/isa/sb/jazz16.c snd_card_free(card); card 344 sound/isa/sb/jazz16.c struct snd_card *card = dev_get_drvdata(devptr); card 346 sound/isa/sb/jazz16.c snd_card_free(card); card 354 sound/isa/sb/jazz16.c struct snd_card *card = dev_get_drvdata(pdev); card 355 sound/isa/sb/jazz16.c struct snd_card_jazz16 *acard = card->private_data; card 358 sound/isa/sb/jazz16.c snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); card 365 sound/isa/sb/jazz16.c struct snd_card *card = dev_get_drvdata(pdev); card 366 sound/isa/sb/jazz16.c struct snd_card_jazz16 *acard = card->private_data; card 371 sound/isa/sb/jazz16.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 239 sound/isa/sb/sb16.c struct pnp_card_link *card, card 245 sound/isa/sb/sb16.c acard->dev = pnp_request_card_device(card, id->devs[0].id, NULL); card 250 sound/isa/sb/sb16.c acard->devwt = pnp_request_card_device(card, id->devs[1].id, acard->dev); card 296 sound/isa/sb/sb16.c static void snd_sb16_free(struct snd_card *card) card 298 sound/isa/sb/sb16.c struct snd_card_sb16 *acard = card->private_data; card 314 sound/isa/sb/sb16.c struct snd_card *card; card 318 sound/isa/sb/sb16.c sizeof(struct snd_card_sb16), &card); card 321 sound/isa/sb/sb16.c card->private_free = snd_sb16_free; card 322 sound/isa/sb/sb16.c *cardp = card; card 326 sound/isa/sb/sb16.c static int snd_sb16_probe(struct snd_card *card, int dev) card 330 sound/isa/sb/sb16.c struct snd_card_sb16 *acard = card->private_data; card 343 sound/isa/sb/sb16.c if ((err = snd_sbdsp_create(card, card 365 sound/isa/sb/sb16.c strcpy(card->driver, card 370 sound/isa/sb/sb16.c strcpy(card->shortname, chip->name); card 371 sound/isa/sb/sb16.c sprintf(card->longname, "%s at 0x%lx, irq %i, dma ", card 376 sound/isa/sb/sb16.c sprintf(card->longname + strlen(card->longname), "%d", xdma8); card 378 sound/isa/sb/sb16.c sprintf(card->longname + strlen(card->longname), "%s%d", card 382 sound/isa/sb/sb16.c if ((err = snd_mpu401_uart_new(card, 0, MPU401_HW_SB, card 396 sound/isa/sb/sb16.c if (snd_opl3_create(card, fm_port[dev], fm_port[dev] + 2, card 430 sound/isa/sb/sb16.c if ((err = snd_emu8000_new(card, 1, awe_port[dev], card 446 sound/isa/sb/sb16.c if ((err = snd_card_register(card)) < 0) card 453 sound/isa/sb/sb16.c static int snd_sb16_suspend(struct snd_card *card, pm_message_t state) card 455 sound/isa/sb/sb16.c struct snd_card_sb16 *acard = card->private_data; card 458 sound/isa/sb/sb16.c snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); card 463 sound/isa/sb/sb16.c static int snd_sb16_resume(struct snd_card *card) card 465 sound/isa/sb/sb16.c struct snd_card_sb16 *acard = card->private_data; card 470 sound/isa/sb/sb16.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 478 sound/isa/sb/sb16.c struct snd_card *card; card 481 sound/isa/sb/sb16.c err = snd_sb16_card_new(pdev, dev, &card); card 485 sound/isa/sb/sb16.c acard = card->private_data; card 495 sound/isa/sb/sb16.c if ((err = snd_sb16_probe(card, dev)) < 0) { card 496 sound/isa/sb/sb16.c snd_card_free(card); card 499 sound/isa/sb/sb16.c dev_set_drvdata(pdev, card); card 594 sound/isa/sb/sb16.c struct snd_card *card; card 600 sound/isa/sb/sb16.c res = snd_sb16_card_new(&pcard->card->dev, dev, &card); card 603 sound/isa/sb/sb16.c if ((res = snd_card_sb16_pnp(dev, card->private_data, pcard, pid)) < 0 || card 604 sound/isa/sb/sb16.c (res = snd_sb16_probe(card, dev)) < 0) { card 605 sound/isa/sb/sb16.c snd_card_free(card); card 608 sound/isa/sb/sb16.c pnp_set_card_drvdata(pcard, card); card 115 sound/isa/sb/sb16_csp.c if ((err = snd_hwdep_new(chip->card, "SB16-CSP", device, &hw)) < 0) card 119 sound/isa/sb/sb16_csp.c snd_device_free(chip->card, hw); card 703 sound/isa/sb/sb16_csp.c p->chip->card->dev); card 1036 sound/isa/sb/sb16_csp.c struct snd_card *card; card 1042 sound/isa/sb/sb16_csp.c card = p->chip->card; card 1048 sound/isa/sb/sb16_csp.c if ((err = snd_ctl_add(card, p->qsound_switch = snd_ctl_new1(&snd_sb_qsound_switch, p))) < 0) card 1050 sound/isa/sb/sb16_csp.c if ((err = snd_ctl_add(card, p->qsound_space = snd_ctl_new1(&snd_sb_qsound_space, p))) < 0) card 1062 sound/isa/sb/sb16_csp.c struct snd_card *card; card 1068 sound/isa/sb/sb16_csp.c card = p->chip->card; card 1070 sound/isa/sb/sb16_csp.c down_write(&card->controls_rwsem); card 1072 sound/isa/sb/sb16_csp.c snd_ctl_remove(card, p->qsound_switch); card 1074 sound/isa/sb/sb16_csp.c snd_ctl_remove(card, p->qsound_space); card 1075 sound/isa/sb/sb16_csp.c up_write(&card->controls_rwsem); card 1117 sound/isa/sb/sb16_csp.c snd_card_ro_proc_new(p->chip->card, name, p, info_read); card 853 sound/isa/sb/sb16_main.c struct snd_card *card = chip->card; card 857 sound/isa/sb/sb16_main.c if ((err = snd_pcm_new(card, "SB16 DSP", device, 1, 1, &pcm)) < 0) card 868 sound/isa/sb/sb16_main.c err = snd_ctl_add(card, snd_ctl_new1( card 877 sound/isa/sb/sb16_main.c card->dev, card 58 sound/isa/sb/sb8.c static void snd_sb8_free(struct snd_card *card) card 60 sound/isa/sb/sb8.c struct snd_sb8 *acard = card->private_data; card 85 sound/isa/sb/sb8.c struct snd_card *card; card 91 sound/isa/sb/sb8.c sizeof(struct snd_sb8), &card); card 94 sound/isa/sb/sb8.c acard = card->private_data; card 95 sound/isa/sb/sb8.c card->private_free = snd_sb8_free; card 105 sound/isa/sb/sb8.c if ((err = snd_sbdsp_create(card, port[dev], irq[dev], card 119 sound/isa/sb/sb8.c err = snd_sbdsp_create(card, possible_ports[i], card 156 sound/isa/sb/sb8.c if ((err = snd_opl3_create(card, chip->port + 8, 0, card 162 sound/isa/sb/sb8.c if ((err = snd_opl3_create(card, chip->port, chip->port + 2, card 177 sound/isa/sb/sb8.c strcpy(card->driver, chip->hardware == SB_HW_PRO ? "SB Pro" : "SB8"); card 178 sound/isa/sb/sb8.c strcpy(card->shortname, chip->name); card 179 sound/isa/sb/sb8.c sprintf(card->longname, "%s at 0x%lx, irq %d, dma %d", card 184 sound/isa/sb/sb8.c if ((err = snd_card_register(card)) < 0) card 187 sound/isa/sb/sb8.c dev_set_drvdata(pdev, card); card 191 sound/isa/sb/sb8.c snd_card_free(card); card 205 sound/isa/sb/sb8.c struct snd_card *card = dev_get_drvdata(dev); card 206 sound/isa/sb/sb8.c struct snd_sb8 *acard = card->private_data; card 209 sound/isa/sb/sb8.c snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); card 216 sound/isa/sb/sb8.c struct snd_card *card = dev_get_drvdata(dev); card 217 sound/isa/sb/sb8.c struct snd_sb8 *acard = card->private_data; card 222 sound/isa/sb/sb8.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 582 sound/isa/sb/sb8_main.c struct snd_card *card = chip->card; card 587 sound/isa/sb/sb8_main.c if ((err = snd_pcm_new(card, "SB8 DSP", device, 1, 1, &pcm)) < 0) card 599 sound/isa/sb/sb8_main.c card->dev, card 254 sound/isa/sb/sb8_midi.c if ((err = snd_rawmidi_new(chip->card, "SB8 MIDI", device, 1, 1, &rmidi)) < 0) card 196 sound/isa/sb/sb_common.c int snd_sbdsp_create(struct snd_card *card, card 267 sound/isa/sb/sb_common.c chip->card = card; card 273 sound/isa/sb/sb_common.c if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops)) < 0) { card 488 sound/isa/sb/sb_mixer.c if ((err = snd_ctl_add(chip->card, ctl)) < 0) card 699 sound/isa/sb/sb_mixer.c struct snd_card *card = chip->card; card 719 sound/isa/sb/sb_mixer.c snd_component_add(card, name); card 720 sound/isa/sb/sb_mixer.c strcpy(card->mixername, name); card 726 sound/isa/sb/sb_mixer.c struct snd_card *card; card 729 sound/isa/sb/sb_mixer.c if (snd_BUG_ON(!chip || !chip->card)) card 732 sound/isa/sb/sb_mixer.c card = chip->card; card 797 sound/isa/sb/sb_mixer.c strcpy(card->mixername, "???"); card 459 sound/isa/sc6000.c struct snd_card *card = chip->card; card 470 sound/isa/sc6000.c err = snd_ctl_rename_id(card, &id1, &id2); card 475 sound/isa/sc6000.c err = snd_ctl_rename_id(card, &id1, &id2); card 481 sound/isa/sc6000.c err = snd_ctl_rename_id(card, &id1, &id2); card 486 sound/isa/sc6000.c err = snd_ctl_rename_id(card, &id1, &id2); card 542 sound/isa/sc6000.c struct snd_card *card; card 550 sound/isa/sc6000.c sizeof(vport), &card); card 554 sound/isa/sc6000.c vport = card->private_data; card 610 sound/isa/sc6000.c err = snd_wss_create(card, mss_port[dev] + 4, -1, xirq, xdma, -1, card 631 sound/isa/sc6000.c if (snd_opl3_create(card, card 645 sound/isa/sc6000.c if (snd_mpu401_uart_new(card, 0, card 653 sound/isa/sc6000.c strcpy(card->driver, DRV_NAME); card 654 sound/isa/sc6000.c strcpy(card->shortname, "SC-6000"); card 655 sound/isa/sc6000.c sprintf(card->longname, "Gallant SC-6000 at 0x%lx, irq %d, dma %d", card 658 sound/isa/sc6000.c err = snd_card_register(card); card 662 sound/isa/sc6000.c dev_set_drvdata(devptr, card); card 671 sound/isa/sc6000.c snd_card_free(card); card 677 sound/isa/sc6000.c struct snd_card *card = dev_get_drvdata(devptr); card 678 sound/isa/sc6000.c char __iomem **vport = card->private_data; card 686 sound/isa/sc6000.c snd_card_free(card); card 162 sound/isa/sscape.c s->chip->card->dev, card 525 sound/isa/sscape.c static int sscape_upload_bootblock(struct snd_card *card) card 527 sound/isa/sscape.c struct soundscape *sscape = get_card_soundscape(card); card 533 sound/isa/sscape.c ret = request_firmware(&init_fw, "scope.cod", card->dev); card 564 sound/isa/sscape.c static int sscape_upload_microcode(struct snd_card *card, int version) card 566 sound/isa/sscape.c struct soundscape *sscape = get_card_soundscape(card); card 573 sound/isa/sscape.c err = request_firmware(&init_fw, name, card->dev); card 606 sound/isa/sscape.c struct snd_card *card = chip->card; card 607 sound/isa/sscape.c register struct soundscape *s = get_card_soundscape(card); card 620 sound/isa/sscape.c struct snd_card *card = chip->card; card 621 sound/isa/sscape.c struct soundscape *s = get_card_soundscape(card); card 808 sound/isa/sscape.c static int create_mpu401(struct snd_card *card, int devnum, card 811 sound/isa/sscape.c struct soundscape *sscape = get_card_soundscape(card); card 815 sound/isa/sscape.c err = snd_mpu401_uart_new(card, devnum, MPU401_HW_MPU401, port, card 836 sound/isa/sscape.c static int create_ad1845(struct snd_card *card, unsigned port, card 839 sound/isa/sscape.c register struct soundscape *sscape = get_card_soundscape(card); card 864 sound/isa/sscape.c err = snd_wss_create(card, port, -1, irq, dma1, dma2, card 906 sound/isa/sscape.c err = snd_ctl_add(card, card 927 sound/isa/sscape.c static int create_sscape(int dev, struct snd_card *card) card 929 sound/isa/sscape.c struct soundscape *sscape = get_card_soundscape(card); card 1057 sound/isa/sscape.c err = create_ad1845(card, wss_port[dev], irq[dev], card 1065 sound/isa/sscape.c strcpy(card->driver, "SoundScape"); card 1066 sound/isa/sscape.c strcpy(card->shortname, name); card 1067 sound/isa/sscape.c snprintf(card->longname, sizeof(card->longname), card 1074 sound/isa/sscape.c err = sscape_upload_bootblock(card); card 1076 sound/isa/sscape.c err = sscape_upload_microcode(card, err); card 1079 sound/isa/sscape.c err = create_mpu401(card, MIDI_DEVNUM, port[dev], card 1118 sound/isa/sscape.c card->private_free = soundscape_free; card 1155 sound/isa/sscape.c struct snd_card *card; card 1160 sound/isa/sscape.c sizeof(struct soundscape), &card); card 1164 sound/isa/sscape.c sscape = get_card_soundscape(card); card 1169 sound/isa/sscape.c ret = create_sscape(dev, card); card 1173 sound/isa/sscape.c ret = snd_card_register(card); card 1178 sound/isa/sscape.c dev_set_drvdata(pdev, card); card 1182 sound/isa/sscape.c snd_card_free(card); card 1218 sound/isa/sscape.c struct snd_card *card; card 1248 sound/isa/sscape.c ret = snd_card_new(&pcard->card->dev, card 1250 sound/isa/sscape.c sizeof(struct soundscape), &card); card 1254 sound/isa/sscape.c sscape = get_card_soundscape(card); card 1279 sound/isa/sscape.c ret = create_sscape(idx, card); card 1283 sound/isa/sscape.c ret = snd_card_register(card); card 1289 sound/isa/sscape.c pnp_set_card_drvdata(pcard, card); card 1294 sound/isa/sscape.c snd_card_free(card); card 89 sound/isa/wavefront/wavefront.c snd_wavefront_pnp (int dev, snd_wavefront_card_t *acard, struct pnp_card_link *card, card 99 sound/isa/wavefront/wavefront.c acard->wss = pnp_request_card_device(card, id->devs[0].id, NULL); card 115 sound/isa/wavefront/wavefront.c acard->mpu = pnp_request_card_device(card, id->devs[2].id, NULL); card 122 sound/isa/wavefront/wavefront.c acard->synth = pnp_request_card_device(card, id->devs[3].id, NULL); card 221 sound/isa/wavefront/wavefront.c static struct snd_hwdep *snd_wavefront_new_synth(struct snd_card *card, card 235 sound/isa/wavefront/wavefront.c if (snd_hwdep_new(card, "WaveFront", hw_dev, &wavefront_synth) < 0) card 246 sound/isa/wavefront/wavefront.c static struct snd_hwdep *snd_wavefront_new_fx(struct snd_card *card, card 259 sound/isa/wavefront/wavefront.c if (snd_hwdep_new (card, "YSS225", hw_dev, &fx_processor) < 0) card 272 sound/isa/wavefront/wavefront.c static struct snd_rawmidi *snd_wavefront_new_midi(struct snd_card *card, card 291 sound/isa/wavefront/wavefront.c if (snd_rawmidi_new (card, "WaveFront MIDI", midi_dev, 1, 1, &rmidi) < 0) card 313 sound/isa/wavefront/wavefront.c snd_wavefront_free(struct snd_card *card) card 315 sound/isa/wavefront/wavefront.c snd_wavefront_card_t *acard = (snd_wavefront_card_t *)card->private_data; card 327 sound/isa/wavefront/wavefront.c struct snd_card *card; card 332 sound/isa/wavefront/wavefront.c sizeof(snd_wavefront_card_t), &card); card 336 sound/isa/wavefront/wavefront.c acard = card->private_data; card 342 sound/isa/wavefront/wavefront.c acard->wavefront.card = card; card 343 sound/isa/wavefront/wavefront.c card->private_free = snd_wavefront_free; card 345 sound/isa/wavefront/wavefront.c *cardp = card; card 350 sound/isa/wavefront/wavefront.c snd_wavefront_probe (struct snd_card *card, int dev) card 352 sound/isa/wavefront/wavefront.c snd_wavefront_card_t *acard = card->private_data; card 362 sound/isa/wavefront/wavefront.c err = snd_wss_create(card, cs4232_pcm_port[dev], -1, card 383 sound/isa/wavefront/wavefront.c err = snd_opl3_create(card, fm_port[dev], fm_port[dev] + 2, card 414 sound/isa/wavefront/wavefront.c wavefront_synth = snd_wavefront_new_synth(card, hw_dev, acard); card 435 sound/isa/wavefront/wavefront.c err = snd_mpu401_uart_new(card, midi_dev, MPU401_HW_CS4232, card 449 sound/isa/wavefront/wavefront.c snd_wavefront_new_midi (card, card 465 sound/isa/wavefront/wavefront.c snd_wavefront_new_midi (card, card 480 sound/isa/wavefront/wavefront.c fx_processor = snd_wavefront_new_fx (card, card 491 sound/isa/wavefront/wavefront.c strcpy(card->driver, "Tropez+"); card 492 sound/isa/wavefront/wavefront.c strcpy(card->shortname, "Turtle Beach Tropez+"); card 495 sound/isa/wavefront/wavefront.c strcpy(card->driver, "WaveFront"); card 496 sound/isa/wavefront/wavefront.c strcpy(card->shortname, "Turtle Beach WaveFront"); card 505 sound/isa/wavefront/wavefront.c sprintf(card->longname, "%s PCM 0x%lx irq %d dma %d", card 506 sound/isa/wavefront/wavefront.c card->driver, card 512 sound/isa/wavefront/wavefront.c sprintf(card->longname + strlen(card->longname), "&%d", dma2[dev]); card 515 sound/isa/wavefront/wavefront.c sprintf (card->longname + strlen (card->longname), card 521 sound/isa/wavefront/wavefront.c sprintf (card->longname + strlen (card->longname), card 526 sound/isa/wavefront/wavefront.c return snd_card_register(card); card 552 sound/isa/wavefront/wavefront.c struct snd_card *card; card 555 sound/isa/wavefront/wavefront.c err = snd_wavefront_card_new(pdev, dev, &card); card 558 sound/isa/wavefront/wavefront.c if ((err = snd_wavefront_probe(card, dev)) < 0) { card 559 sound/isa/wavefront/wavefront.c snd_card_free(card); card 563 sound/isa/wavefront/wavefront.c dev_set_drvdata(pdev, card); card 592 sound/isa/wavefront/wavefront.c struct snd_card *card; card 602 sound/isa/wavefront/wavefront.c res = snd_wavefront_card_new(&pcard->card->dev, dev, &card); card 606 sound/isa/wavefront/wavefront.c if (snd_wavefront_pnp (dev, card->private_data, pcard, pid) < 0) { card 609 sound/isa/wavefront/wavefront.c snd_card_free (card); card 614 sound/isa/wavefront/wavefront.c if ((res = snd_wavefront_probe(card, dev)) < 0) card 617 sound/isa/wavefront/wavefront.c pnp_set_card_drvdata(pcard, card); card 137 sound/isa/wavefront/wavefront_fx.c if (!try_module_get(hw->card->module)) card 147 sound/isa/wavefront/wavefront_fx.c module_put(hw->card->module); card 156 sound/isa/wavefront/wavefront_fx.c struct snd_card *card; card 164 sound/isa/wavefront/wavefront_fx.c card = sdev->card; card 165 sound/isa/wavefront/wavefront_fx.c if (snd_BUG_ON(!card)) card 167 sound/isa/wavefront/wavefront_fx.c if (snd_BUG_ON(!card->private_data)) card 170 sound/isa/wavefront/wavefront_fx.c acard = card->private_data; card 241 sound/isa/wavefront/wavefront_fx.c dev->card->dev); card 93 sound/isa/wavefront/wavefront_midi.c struct snd_card *card; card 99 sound/isa/wavefront/wavefront_midi.c card = substream->rmidi->card; card 101 sound/isa/wavefront/wavefront_midi.c if (card == NULL) card 104 sound/isa/wavefront/wavefront_midi.c if (card->private_data == NULL) card 107 sound/isa/wavefront/wavefront_midi.c acard = card->private_data; card 112 sound/isa/wavefront/wavefront_midi.c static void snd_wavefront_midi_output_write(snd_wavefront_card_t *card) card 114 sound/isa/wavefront/wavefront_midi.c snd_wavefront_midi_t *midi = &card->wavefront.midi; card 352 sound/isa/wavefront/wavefront_midi.c snd_wavefront_card_t *card = midi->timer_card; card 358 sound/isa/wavefront/wavefront_midi.c snd_wavefront_midi_output_write(card); card 397 sound/isa/wavefront/wavefront_midi.c snd_wavefront_midi_output_write((snd_wavefront_card_t *)substream->rmidi->card->private_data); card 401 sound/isa/wavefront/wavefront_midi.c snd_wavefront_midi_interrupt (snd_wavefront_card_t *card) card 411 sound/isa/wavefront/wavefront_midi.c midi = &card->wavefront.midi; card 414 sound/isa/wavefront/wavefront_midi.c snd_wavefront_midi_output_write(card); card 450 sound/isa/wavefront/wavefront_midi.c snd_wavefront_midi_output_write(card); card 454 sound/isa/wavefront/wavefront_midi.c snd_wavefront_midi_enable_virtual (snd_wavefront_card_t *card) card 459 sound/isa/wavefront/wavefront_midi.c spin_lock_irqsave (&card->wavefront.midi.virtual, flags); card 460 sound/isa/wavefront/wavefront_midi.c card->wavefront.midi.isvirtual = 1; card 461 sound/isa/wavefront/wavefront_midi.c card->wavefront.midi.output_mpu = internal_mpu; card 462 sound/isa/wavefront/wavefront_midi.c card->wavefront.midi.input_mpu = internal_mpu; card 463 sound/isa/wavefront/wavefront_midi.c spin_unlock_irqrestore (&card->wavefront.midi.virtual, flags); card 467 sound/isa/wavefront/wavefront_midi.c snd_wavefront_midi_disable_virtual (snd_wavefront_card_t *card) card 472 sound/isa/wavefront/wavefront_midi.c spin_lock_irqsave (&card->wavefront.midi.virtual, flags); card 475 sound/isa/wavefront/wavefront_midi.c card->wavefront.midi.isvirtual = 0; card 476 sound/isa/wavefront/wavefront_midi.c spin_unlock_irqrestore (&card->wavefront.midi.virtual, flags); card 480 sound/isa/wavefront/wavefront_midi.c snd_wavefront_midi_start (snd_wavefront_card_t *card) card 488 sound/isa/wavefront/wavefront_midi.c dev = &card->wavefront; card 550 sound/isa/wavefront/wavefront_midi.c snd_wavefront_midi_enable_virtual (card); card 554 sound/isa/wavefront/wavefront_midi.c snd_wavefront_midi_disable_virtual (card); card 1631 sound/isa/wavefront/wavefront_synth.c if (!try_module_get(hw->card->module)) card 1641 sound/isa/wavefront/wavefront_synth.c module_put(hw->card->module); card 1650 sound/isa/wavefront/wavefront_synth.c struct snd_card *card; card 1657 sound/isa/wavefront/wavefront_synth.c card = (struct snd_card *) hw->card; card 1659 sound/isa/wavefront/wavefront_synth.c if (snd_BUG_ON(!card)) card 1661 sound/isa/wavefront/wavefront_synth.c if (snd_BUG_ON(!card->private_data)) card 1664 sound/isa/wavefront/wavefront_synth.c acard = card->private_data; card 1701 sound/isa/wavefront/wavefront_synth.c snd_wavefront_internal_interrupt (snd_wavefront_card_t *card) card 1703 sound/isa/wavefront/wavefront_synth.c snd_wavefront_t *dev = &card->wavefront; card 1955 sound/isa/wavefront/wavefront_synth.c err = request_firmware(&firmware, path, dev->card->dev); card 2151 sound/isa/wavefront/wavefront_synth.c snd_wavefront_detect (snd_wavefront_card_t *card) card 2155 sound/isa/wavefront/wavefront_synth.c snd_wavefront_t *dev = &card->wavefront; card 1691 sound/isa/wss/wss_lib.c snd_device_free(chip->card, chip->timer); card 1728 sound/isa/wss/wss_lib.c return chip->card->shortname; card 1747 sound/isa/wss/wss_lib.c static int snd_wss_new(struct snd_card *card, card 1764 sound/isa/wss/wss_lib.c chip->card = card; card 1783 sound/isa/wss/wss_lib.c int snd_wss_create(struct snd_card *card, card 1797 sound/isa/wss/wss_lib.c err = snd_wss_new(card, hardware, hwshare, &chip); card 1870 sound/isa/wss/wss_lib.c err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops); card 1914 sound/isa/wss/wss_lib.c err = snd_pcm_new(chip->card, "WSS", device, 1, 1, &pcm); card 1931 sound/isa/wss/wss_lib.c chip->card->dev, card 1954 sound/isa/wss/wss_lib.c tid.card = chip->card->number; card 1957 sound/isa/wss/wss_lib.c if ((err = snd_timer_new(chip->card, "CS4231", &tid, &timer)) < 0) card 1987 sound/isa/wss/wss_lib.c if (snd_BUG_ON(!chip->card)) card 1989 sound/isa/wss/wss_lib.c if (!strcmp(chip->card->driver, "GUS MAX")) card 2229 sound/isa/wss/wss_lib.c struct snd_card *card; card 2237 sound/isa/wss/wss_lib.c card = chip->card; card 2239 sound/isa/wss/wss_lib.c strcpy(card->mixername, chip->pcm->name); card 2249 sound/isa/wss/wss_lib.c err = snd_ctl_add(card, card 12 sound/last.c struct snd_card *card; card 17 sound/last.c card = snd_card_ref(idx); card 18 sound/last.c if (card) { card 19 sound/last.c printk(KERN_INFO " #%i: %s\n", idx, card->longname); card 20 sound/last.c snd_card_unref(card); card 76 sound/mips/hal2.c struct snd_card *card; card 284 sound/mips/hal2.c err = snd_ctl_add(hal2->card, card 289 sound/mips/hal2.c err = snd_ctl_add(hal2->card, card 446 sound/mips/hal2.c struct device *dev = hal2->card->dev; card 481 sound/mips/hal2.c struct device *dev = hal2->card->dev; card 599 sound/mips/hal2.c dma_cache_sync(hal2->card->dev, buf, bytes, DMA_TO_DEVICE); card 687 sound/mips/hal2.c dma_cache_sync(hal2->card->dev, buf, bytes, DMA_FROM_DEVICE); card 731 sound/mips/hal2.c err = snd_pcm_new(hal2->card, "SGI HAL2 Audio", 0, 1, 1, &pcm); card 798 sound/mips/hal2.c static int hal2_create(struct snd_card *card, struct snd_hal2 **rchip) card 808 sound/mips/hal2.c hal2->card = card; card 856 sound/mips/hal2.c err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, hal2, &hal2_ops); card 868 sound/mips/hal2.c struct snd_card *card; card 872 sound/mips/hal2.c err = snd_card_new(&pdev->dev, index, id, THIS_MODULE, 0, &card); card 876 sound/mips/hal2.c err = hal2_create(card, &chip); card 878 sound/mips/hal2.c snd_card_free(card); card 884 sound/mips/hal2.c snd_card_free(card); card 889 sound/mips/hal2.c snd_card_free(card); card 893 sound/mips/hal2.c strcpy(card->driver, "SGI HAL2 Audio"); card 894 sound/mips/hal2.c strcpy(card->shortname, "SGI HAL2 Audio"); card 895 sound/mips/hal2.c sprintf(card->longname, "%s irq %i", card 896 sound/mips/hal2.c card->shortname, card 899 sound/mips/hal2.c err = snd_card_register(card); card 901 sound/mips/hal2.c snd_card_free(card); card 904 sound/mips/hal2.c platform_set_drvdata(pdev, card); card 910 sound/mips/hal2.c struct snd_card *card = platform_get_drvdata(pdev); card 912 sound/mips/hal2.c snd_card_free(card); card 81 sound/mips/sgio2audio.c struct snd_card *card; card 303 sound/mips/sgio2audio.c err = snd_ctl_add(chip->card, card 308 sound/mips/sgio2audio.c err = snd_ctl_add(chip->card, card 313 sound/mips/sgio2audio.c err = snd_ctl_add(chip->card, card 318 sound/mips/sgio2audio.c err = snd_ctl_add(chip->card, card 322 sound/mips/sgio2audio.c err = snd_ctl_add(chip->card, card 327 sound/mips/sgio2audio.c err = snd_ctl_add(chip->card, card 332 sound/mips/sgio2audio.c err = snd_ctl_add(chip->card, card 711 sound/mips/sgio2audio.c err = snd_pcm_new(chip->card, "SGI O2 Audio", 0, 1, 1, &pcm); card 725 sound/mips/sgio2audio.c err = snd_pcm_new(chip->card, "SGI O2 Audio", 1, 1, 0, &pcm); card 794 sound/mips/sgio2audio.c dma_free_coherent(chip->card->dev, MACEISA_RINGBUFFERS_SIZE, card 813 sound/mips/sgio2audio.c static int snd_sgio2audio_create(struct snd_card *card, card 830 sound/mips/sgio2audio.c chip->card = card; card 832 sound/mips/sgio2audio.c chip->ring_base = dma_alloc_coherent(card->dev, card 885 sound/mips/sgio2audio.c err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops); card 896 sound/mips/sgio2audio.c struct snd_card *card; card 900 sound/mips/sgio2audio.c err = snd_card_new(&pdev->dev, index, id, THIS_MODULE, 0, &card); card 904 sound/mips/sgio2audio.c err = snd_sgio2audio_create(card, &chip); card 906 sound/mips/sgio2audio.c snd_card_free(card); card 912 sound/mips/sgio2audio.c snd_card_free(card); card 917 sound/mips/sgio2audio.c snd_card_free(card); card 921 sound/mips/sgio2audio.c strcpy(card->driver, "SGI O2 Audio"); card 922 sound/mips/sgio2audio.c strcpy(card->shortname, "SGI O2 Audio"); card 923 sound/mips/sgio2audio.c sprintf(card->longname, "%s irq %i-%i", card 924 sound/mips/sgio2audio.c card->shortname, card 928 sound/mips/sgio2audio.c err = snd_card_register(card); card 930 sound/mips/sgio2audio.c snd_card_free(card); card 933 sound/mips/sgio2audio.c platform_set_drvdata(pdev, card); card 939 sound/mips/sgio2audio.c struct snd_card *card = platform_get_drvdata(pdev); card 941 sound/mips/sgio2audio.c snd_card_free(card); card 619 sound/parisc/harmony.c err = snd_pcm_new(h->card, "harmony", 0, 1, 1, &pcm); card 846 sound/parisc/harmony.c struct snd_card *card; card 851 sound/parisc/harmony.c card = h->card; card 852 sound/parisc/harmony.c strcpy(card->mixername, "Harmony Gain control interface"); card 855 sound/parisc/harmony.c err = snd_ctl_add(card, card 890 sound/parisc/harmony.c snd_harmony_create(struct snd_card *card, card 907 sound/parisc/harmony.c h->card = card; card 930 sound/parisc/harmony.c if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, card 948 sound/parisc/harmony.c struct snd_card *card; card 951 sound/parisc/harmony.c err = snd_card_new(&padev->dev, index, id, THIS_MODULE, 0, &card); card 955 sound/parisc/harmony.c err = snd_harmony_create(card, padev, &h); card 967 sound/parisc/harmony.c strcpy(card->driver, "harmony"); card 968 sound/parisc/harmony.c strcpy(card->shortname, "Harmony"); card 969 sound/parisc/harmony.c sprintf(card->longname, "%s at 0x%lx, irq %i", card 970 sound/parisc/harmony.c card->shortname, h->hpa, h->irq); card 972 sound/parisc/harmony.c err = snd_card_register(card); card 976 sound/parisc/harmony.c parisc_set_drvdata(padev, card); card 980 sound/parisc/harmony.c snd_card_free(card); card 49 sound/parisc/harmony.h struct snd_card *card; card 204 sound/pci/ac97/ac97_codec.c dev_err((ac97)->bus->card->dev, fmt, ##args) card 206 sound/pci/ac97/ac97_codec.c dev_warn((ac97)->bus->card->dev, fmt, ##args) card 208 sound/pci/ac97/ac97_codec.c dev_dbg((ac97)->bus->card->dev, fmt, ##args) card 1167 sound/pci/ac97/ac97_codec.c static int snd_ac97_cmute_new_stereo(struct snd_card *card, char *name, int reg, card 1200 sound/pci/ac97/ac97_codec.c err = snd_ctl_add(card, kctl); card 1237 sound/pci/ac97/ac97_codec.c static int snd_ac97_cvol_new(struct snd_card *card, char *name, int reg, unsigned int lo_max, card 1262 sound/pci/ac97/ac97_codec.c err = snd_ctl_add(card, kctl); card 1276 sound/pci/ac97/ac97_codec.c static int snd_ac97_cmix_new_stereo(struct snd_card *card, const char *pfx, card 1289 sound/pci/ac97/ac97_codec.c if ((err = snd_ac97_cmute_new_stereo(card, name, reg, card 1297 sound/pci/ac97/ac97_codec.c if ((err = snd_ac97_cvol_new(card, name, reg, lo_max, hi_max, ac97)) < 0) card 1303 sound/pci/ac97/ac97_codec.c #define snd_ac97_cmix_new(card, pfx, reg, acheck, ac97) \ card 1304 sound/pci/ac97/ac97_codec.c snd_ac97_cmix_new_stereo(card, pfx, reg, 0, acheck, ac97) card 1305 sound/pci/ac97/ac97_codec.c #define snd_ac97_cmute_new(card, name, reg, acheck, ac97) \ card 1306 sound/pci/ac97/ac97_codec.c snd_ac97_cmute_new_stereo(card, name, reg, 0, acheck, ac97) card 1312 sound/pci/ac97/ac97_codec.c struct snd_card *card = ac97->bus->card; card 1322 sound/pci/ac97/ac97_codec.c err = snd_ac97_cmute_new(card, "Master Playback Switch", card 1325 sound/pci/ac97/ac97_codec.c err = snd_ac97_cmix_new(card, "Master Playback", card 1336 sound/pci/ac97/ac97_codec.c if ((err = snd_ctl_add(card, snd_ac97_cnew(&snd_ac97_controls_center[0], ac97))) < 0) card 1338 sound/pci/ac97/ac97_codec.c if ((err = snd_ctl_add(card, kctl = snd_ac97_cnew(&snd_ac97_controls_center[1], ac97))) < 0) card 1350 sound/pci/ac97/ac97_codec.c if ((err = snd_ctl_add(card, snd_ac97_cnew(&snd_ac97_controls_lfe[0], ac97))) < 0) card 1352 sound/pci/ac97/ac97_codec.c if ((err = snd_ctl_add(card, kctl = snd_ac97_cnew(&snd_ac97_controls_lfe[1], ac97))) < 0) card 1365 sound/pci/ac97/ac97_codec.c if ((err = snd_ac97_cmix_new_stereo(card, "Surround Playback", card 1373 sound/pci/ac97/ac97_codec.c if ((err = snd_ac97_cmix_new(card, "Headphone Playback", card 1380 sound/pci/ac97/ac97_codec.c if ((err = snd_ac97_cmix_new(card, "Master Mono Playback", card 1389 sound/pci/ac97/ac97_codec.c if ((err = snd_ctl_add(card, kctl = snd_ac97_cnew(&snd_ac97_controls_tone[idx], ac97))) < 0) card 1406 sound/pci/ac97/ac97_codec.c if ((err = snd_ctl_add(card, kctl = snd_ac97_cnew(&snd_ac97_controls_pc_beep[idx], ac97))) < 0) card 1420 sound/pci/ac97/ac97_codec.c if ((err = snd_ac97_cmix_new(card, "Phone Playback", card 1429 sound/pci/ac97/ac97_codec.c if ((err = snd_ac97_cmix_new(card, "Mic Playback", card 1432 sound/pci/ac97/ac97_codec.c if ((err = snd_ctl_add(card, snd_ac97_cnew(&snd_ac97_controls_mic_boost, ac97))) < 0) card 1439 sound/pci/ac97/ac97_codec.c if ((err = snd_ac97_cmix_new(card, "Line Playback", card 1447 sound/pci/ac97/ac97_codec.c if ((err = snd_ac97_cmix_new(card, "CD Playback", card 1456 sound/pci/ac97/ac97_codec.c if ((err = snd_ac97_cmix_new(card, "Video Playback", card 1465 sound/pci/ac97/ac97_codec.c if ((err = snd_ac97_cmix_new(card, "Aux Playback", card 1479 sound/pci/ac97/ac97_codec.c if ((err = snd_ctl_add(card, kctl = snd_ac97_cnew(&snd_ac97_controls_ad18xx_pcm[idx], ac97))) < 0) card 1485 sound/pci/ac97/ac97_codec.c if ((err = snd_ctl_add(card, kctl = snd_ac97_cnew(&snd_ac97_controls_ad18xx_surround[idx], ac97))) < 0) card 1492 sound/pci/ac97/ac97_codec.c if ((err = snd_ctl_add(card, kctl = snd_ac97_cnew(&snd_ac97_controls_ad18xx_center[idx], ac97))) < 0) card 1496 sound/pci/ac97/ac97_codec.c if ((err = snd_ctl_add(card, kctl = snd_ac97_cnew(&snd_ac97_controls_ad18xx_lfe[idx], ac97))) < 0) card 1505 sound/pci/ac97/ac97_codec.c err = snd_ac97_cmute_new(card, card 1509 sound/pci/ac97/ac97_codec.c err = snd_ac97_cmix_new(card, "PCM Playback", card 1518 sound/pci/ac97/ac97_codec.c if ((err = snd_ctl_add(card, snd_ac97_cnew(&snd_ac97_control_capture_src, ac97))) < 0) card 1521 sound/pci/ac97/ac97_codec.c err = snd_ac97_cmute_new(card, "Capture Switch", card 1526 sound/pci/ac97/ac97_codec.c if ((err = snd_ctl_add(card, kctl = snd_ac97_cnew(&snd_ac97_control_capture_vol, ac97))) < 0) card 1535 sound/pci/ac97/ac97_codec.c if ((err = snd_ctl_add(card, kctl = snd_ac97_cnew(&snd_ac97_controls_mic_capture[idx], ac97))) < 0) card 1543 sound/pci/ac97/ac97_codec.c if ((err = snd_ctl_add(card, snd_ac97_cnew(&snd_ac97_controls_general[AC97_GENERAL_PCM_OUT], ac97))) < 0) card 1549 sound/pci/ac97/ac97_codec.c if ((err = snd_ctl_add(card, snd_ac97_cnew(&snd_ac97_controls_general[AC97_GENERAL_STEREO_ENHANCEMENT], ac97))) < 0) card 1555 sound/pci/ac97/ac97_codec.c if ((err = snd_ctl_add(card, snd_ac97_cnew(&snd_ac97_controls_general[AC97_GENERAL_3D], ac97))) < 0) card 1561 sound/pci/ac97/ac97_codec.c if ((err = snd_ctl_add(card, snd_ac97_cnew(&snd_ac97_controls_general[AC97_GENERAL_LOUDNESS], ac97))) < 0) card 1567 sound/pci/ac97/ac97_codec.c if ((err = snd_ctl_add(card, snd_ac97_cnew(&snd_ac97_controls_general[AC97_GENERAL_MONO], ac97))) < 0) card 1573 sound/pci/ac97/ac97_codec.c if ((err = snd_ctl_add(card, snd_ac97_cnew(&snd_ac97_controls_general[AC97_GENERAL_MIC], ac97))) < 0) card 1579 sound/pci/ac97/ac97_codec.c if ((err = snd_ctl_add(card, snd_ac97_cnew(&snd_ac97_controls_general[AC97_GENERAL_LOOPBACK], ac97))) < 0) card 1595 sound/pci/ac97/ac97_codec.c if ((err = snd_ctl_add(card, kctl = snd_ac97_cnew(&snd_ac97_controls_3d[0], ac97))) < 0) card 1599 sound/pci/ac97/ac97_codec.c if ((err = snd_ctl_add(card, kctl = snd_ac97_cnew(&snd_ac97_controls_3d[1], ac97))) < 0) card 1620 sound/pci/ac97/ac97_codec.c if ((err = snd_ctl_add(card, snd_ac97_cnew(&snd_ac97_controls_spdif[idx], ac97))) < 0) card 1645 sound/pci/ac97/ac97_codec.c if ((err = snd_ctl_add(card, kctl)) < 0) card 1652 sound/pci/ac97/ac97_codec.c static int snd_ac97_modem_build(struct snd_card *card, struct snd_ac97 * ac97) card 1668 sound/pci/ac97/ac97_codec.c if ((err = snd_ctl_add(card, snd_ctl_new1(&snd_ac97_controls_modem_switches[idx], ac97))) < 0) card 1897 sound/pci/ac97/ac97_codec.c int snd_ac97_bus(struct snd_card *card, int num, struct snd_ac97_bus_ops *ops, card 1906 sound/pci/ac97/ac97_codec.c if (snd_BUG_ON(!card)) card 1911 sound/pci/ac97/ac97_codec.c bus->card = card; card 1918 sound/pci/ac97/ac97_codec.c if ((err = snd_device_new(card, SNDRV_DEV_BUS, bus, &dev_ops)) < 0) { card 1941 sound/pci/ac97/ac97_codec.c ac97->dev.parent = ac97->bus->card->dev; card 1944 sound/pci/ac97/ac97_codec.c ac97->bus->card->number, ac97->num, card 1997 sound/pci/ac97/ac97_codec.c struct snd_card *card; card 2017 sound/pci/ac97/ac97_codec.c card = bus->card; card 2241 sound/pci/ac97/ac97_codec.c if (card->mixername[0] == '\0') { card 2242 sound/pci/ac97/ac97_codec.c strcpy(card->mixername, name); card 2244 sound/pci/ac97/ac97_codec.c if (strlen(card->mixername) + 1 + strlen(name) + 1 <= sizeof(card->mixername)) { card 2245 sound/pci/ac97/ac97_codec.c strcat(card->mixername, ","); card 2246 sound/pci/ac97/ac97_codec.c strcat(card->mixername, name); card 2250 sound/pci/ac97/ac97_codec.c if ((err = snd_component_add(card, comp)) < 0) { card 2261 sound/pci/ac97/ac97_codec.c if (card->mixername[0] == '\0') { card 2262 sound/pci/ac97/ac97_codec.c strcpy(card->mixername, name); card 2264 sound/pci/ac97/ac97_codec.c if (strlen(card->mixername) + 1 + strlen(name) + 1 <= sizeof(card->mixername)) { card 2265 sound/pci/ac97/ac97_codec.c strcat(card->mixername, ","); card 2266 sound/pci/ac97/ac97_codec.c strcat(card->mixername, name); card 2270 sound/pci/ac97/ac97_codec.c if ((err = snd_component_add(card, comp)) < 0) { card 2274 sound/pci/ac97/ac97_codec.c if (snd_ac97_modem_build(card, ac97) < 0) { card 2282 sound/pci/ac97/ac97_codec.c if ((err = snd_device_new(card, SNDRV_DEV_CODEC, ac97, &ops)) < 0) { card 2604 sound/pci/ac97/ac97_codec.c return snd_ctl_remove_id(ac97->bus->card, &id); card 2613 sound/pci/ac97/ac97_codec.c return snd_ctl_find_id(ac97->bus->card, &sid); card 2740 sound/pci/ac97/ac97_codec.c return snd_ctl_add(ac97->bus->card, snd_ac97_cnew(&snd_ac97_alc_jack_detect, ac97)); card 33 sound/pci/ac97/ac97_patch.c if ((err = snd_ctl_add(ac97->bus->card, snd_ac97_cnew(&controls[idx], ac97))) < 0) card 47 sound/pci/ac97/ac97_patch.c kctl = snd_ctl_find_id(ac97->bus->card, &sid); card 299 sound/pci/ac97/ac97_patch.c err = snd_ctl_add(ac97->bus->card, kctl); card 305 sound/pci/ac97/ac97_patch.c err = snd_ctl_add(ac97->bus->card, card 464 sound/pci/ac97/ac97_patch.c if ((err = snd_ctl_add(ac97->bus->card, snd_ac97_cnew(&wm97xx_snd_ac97_controls[i], ac97))) < 0) card 494 sound/pci/ac97/ac97_patch.c if ((err = snd_ctl_add(ac97->bus->card, snd_ac97_cnew(&wm9704_snd_ac97_controls[i], ac97))) < 0) card 634 sound/pci/ac97/ac97_patch.c if ((err = snd_ctl_add(ac97->bus->card, snd_ac97_cnew(&wm9711_snd_ac97_controls[i], ac97))) < 0) card 801 sound/pci/ac97/ac97_patch.c if ((err = snd_ctl_add(ac97->bus->card, snd_ac97_cnew(&wm13_snd_ac97_controls_3d[i], ac97))) < 0) card 812 sound/pci/ac97/ac97_patch.c if ((err = snd_ctl_add(ac97->bus->card, snd_ac97_cnew(&wm13_snd_ac97_controls[i], ac97))) < 0) card 886 sound/pci/ac97/ac97_patch.c if ((err = snd_ctl_add(ac97->bus->card, kctl = snd_ac97_cnew(&snd_ac97_controls_3d[0], ac97))) < 0) card 899 sound/pci/ac97/ac97_patch.c if ((err = snd_ctl_add(ac97->bus->card, kctl = snd_ac97_cnew(&snd_ac97_controls_3d[0], ac97))) < 0) card 903 sound/pci/ac97/ac97_patch.c if ((err = snd_ctl_add(ac97->bus->card, kctl = snd_ac97_cnew(&snd_ac97_controls_3d[0], ac97))) < 0) card 3400 sound/pci/ac97/ac97_patch.c return snd_ctl_find_id(ac97->bus->card, &id); card 3415 sound/pci/ac97/ac97_patch.c err = snd_ctl_add(ac97->bus->card, kctl); card 3424 sound/pci/ac97/ac97_patch.c dev_dbg(ac97->bus->card->dev, card 3849 sound/pci/ac97/ac97_patch.c if ((err = snd_ctl_add(ac97->bus->card, snd_ctl_new1(&snd_ac97_controls_si3036[idx], ac97))) < 0) card 3916 sound/pci/ac97/ac97_patch.c if ((err = snd_ctl_add(ac97->bus->card, snd_ctl_new1(&snd_ac97_controls_ucb1400[idx], ac97))) < 0) card 592 sound/pci/ac97/ac97_pcm.c dev_err(bus->card->dev, card 608 sound/pci/ac97/ac97_pcm.c dev_err(bus->card->dev, card 614 sound/pci/ac97/ac97_pcm.c dev_dbg(bus->card->dev, card 619 sound/pci/ac97/ac97_pcm.c dev_err(bus->card->dev, card 424 sound/pci/ac97/ac97_proc.c entry = snd_info_create_card_entry(ac97->bus->card, name, card 430 sound/pci/ac97/ac97_proc.c entry = snd_info_create_card_entry(ac97->bus->card, name, card 456 sound/pci/ac97/ac97_proc.c entry = snd_info_create_card_entry(bus->card, name, card 457 sound/pci/ac97/ac97_proc.c bus->card->proc_root); card 75 sound/pci/ad1889.c struct snd_card *card; card 251 sound/pci/ad1889.c dev_err(chip->card->dev, "[%s] Link is not ready.\n", card 255 sound/pci/ad1889.c dev_dbg(chip->card->dev, "[%s] ready after %d ms\n", __func__, 400 - retry); card 392 sound/pci/ad1889.c dev_dbg(chip->card->dev, card 439 sound/pci/ad1889.c dev_dbg(chip->card->dev, card 601 sound/pci/ad1889.c dev_dbg(chip->card->dev, card 618 sound/pci/ad1889.c err = snd_pcm_new(chip->card, chip->card->driver, device, 1, 1, &pcm); card 629 sound/pci/ad1889.c strcpy(pcm->name, chip->card->shortname); card 727 sound/pci/ad1889.c snd_card_ro_proc_new(chip->card, chip->card->driver, card 793 sound/pci/ad1889.c err = snd_ac97_bus(chip->card, 0, &ops, chip, &chip->ac97_bus); card 865 sound/pci/ad1889.c snd_ad1889_create(struct snd_card *card, card 884 sound/pci/ad1889.c dev_err(card->dev, "error setting 32-bit DMA mask.\n"); card 895 sound/pci/ad1889.c chip->card = card; card 896 sound/pci/ad1889.c card->private_data = chip; card 901 sound/pci/ad1889.c if ((err = pci_request_regions(pci, card->driver)) < 0) card 907 sound/pci/ad1889.c dev_err(card->dev, "unable to reserve region.\n"); card 918 sound/pci/ad1889.c dev_err(card->dev, "cannot obtain IRQ %d\n", pci->irq); card 932 sound/pci/ad1889.c if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops)) < 0) { card 954 sound/pci/ad1889.c struct snd_card *card; card 967 sound/pci/ad1889.c 0, &card); card 972 sound/pci/ad1889.c strcpy(card->driver, "AD1889"); card 973 sound/pci/ad1889.c strcpy(card->shortname, "Analog Devices AD1889"); card 976 sound/pci/ad1889.c err = snd_ad1889_create(card, pci, &chip); card 981 sound/pci/ad1889.c sprintf(card->longname, "%s at 0x%lx irq %i", card 982 sound/pci/ad1889.c card->shortname, chip->bar, chip->irq); card 998 sound/pci/ad1889.c err = snd_card_register(card); card 1003 sound/pci/ad1889.c pci_set_drvdata(pci, card); card 1009 sound/pci/ad1889.c snd_card_free(card); card 23 sound/pci/ak4531_codec.c static void snd_ak4531_proc_init(struct snd_card *card, struct snd_ak4531 *ak4531); card 367 sound/pci/ak4531_codec.c int snd_ak4531_mixer(struct snd_card *card, card 378 sound/pci/ak4531_codec.c if (snd_BUG_ON(!card || !_ak4531)) card 387 sound/pci/ak4531_codec.c if ((err = snd_component_add(card, "AK4531")) < 0) { card 391 sound/pci/ak4531_codec.c strcpy(card->mixername, "Asahi Kasei AK4531"); card 401 sound/pci/ak4531_codec.c if ((err = snd_ctl_add(card, snd_ctl_new1(&snd_ak4531_controls[idx], ak4531))) < 0) { card 406 sound/pci/ak4531_codec.c snd_ak4531_proc_init(card, ak4531); card 407 sound/pci/ak4531_codec.c if ((err = snd_device_new(card, SNDRV_DEV_CODEC, ak4531, &ops)) < 0) { card 467 sound/pci/ak4531_codec.c snd_ak4531_proc_init(struct snd_card *card, struct snd_ak4531 *ak4531) card 469 sound/pci/ak4531_codec.c snd_card_ro_proc_new(card, "ak4531", ak4531, snd_ak4531_proc_read); card 226 sound/pci/ali5451/ali5451.c struct snd_card *card; card 298 sound/pci/ali5451/ali5451.c dev_dbg(codec->card->dev, "ali_codec_ready: codec is not ready.\n "); card 319 sound/pci/ali5451/ali5451.c dev_err(codec->card->dev, "ali_stimer_read: stimer is not ready.\n"); card 331 sound/pci/ali5451/ali5451.c dev_err(codec->card->dev, card 363 sound/pci/ali5451/ali5451.c dev_err(codec->card->dev, card 396 sound/pci/ali5451/ali5451.c dev_dbg(codec->card->dev, "codec_write: reg=%xh data=%xh.\n", reg, val); card 412 sound/pci/ali5451/ali5451.c dev_dbg(codec->card->dev, "codec_read reg=%xh.\n", reg); card 507 sound/pci/ali5451/ali5451.c dev_dbg(codec->card->dev, "disable_voice_irq channel=%d\n", channel); card 520 sound/pci/ali5451/ali5451.c dev_err(codec->card->dev, card 528 sound/pci/ali5451/ali5451.c dev_dbg(codec->card->dev, "alloc_pcm_channel no. %d.\n", idx); card 539 sound/pci/ali5451/ali5451.c dev_dbg(codec->card->dev, card 555 sound/pci/ali5451/ali5451.c dev_err(codec->card->dev, card 570 sound/pci/ali5451/ali5451.c dev_err(codec->card->dev, card 579 sound/pci/ali5451/ali5451.c dev_err(codec->card->dev, "ali_find_free_channel: no free channels.\n"); card 587 sound/pci/ali5451/ali5451.c dev_dbg(codec->card->dev, "free_channel_pcm channel=%d\n", channel); card 593 sound/pci/ali5451/ali5451.c dev_err(codec->card->dev, card 607 sound/pci/ali5451/ali5451.c dev_dbg(codec->card->dev, "stop_voice: channel=%d\n", channel); card 648 sound/pci/ali5451/ali5451.c dev_err(codec->card->dev, "ali_detect_spdif_rate: timeout!\n"); card 663 sound/pci/ali5451/ali5451.c dev_err(codec->card->dev, "ali_detect_spdif_rate: timeout!\n"); card 856 sound/pci/ali5451/ali5451.c dev_dbg(codec->card->dev, card 915 sound/pci/ali5451/ali5451.c dev_dbg(codec->card->dev, "alloc_voice: type=%d rec=%d\n", type, rec); card 922 sound/pci/ali5451/ali5451.c dev_err(codec->card->dev, "ali_alloc_voice: err.\n"); card 945 sound/pci/ali5451/ali5451.c dev_dbg(codec->card->dev, "free_voice: channel=%d\n", pvoice->number); card 1128 sound/pci/ali5451/ali5451.c dev_dbg(codec->card->dev, "trigger: what=%xh whati=%xh\n", what, whati); card 1214 sound/pci/ali5451/ali5451.c dev_dbg(codec->card->dev, "playback_prepare ...\n"); card 1241 sound/pci/ali5451/ali5451.c dev_dbg(codec->card->dev, "playback_prepare: eso=%xh count=%xh\n", card 1253 sound/pci/ali5451/ali5451.c dev_dbg(codec->card->dev, "playback_prepare:\n"); card 1254 sound/pci/ali5451/ali5451.c dev_dbg(codec->card->dev, card 1308 sound/pci/ali5451/ali5451.c dev_dbg(codec->card->dev, "ali_prepare...\n"); card 1327 sound/pci/ali5451/ali5451.c dev_warn(codec->card->dev, card 1335 sound/pci/ali5451/ali5451.c dev_warn(codec->card->dev, card 1395 sound/pci/ali5451/ali5451.c dev_dbg(codec->card->dev, "playback pointer returned cso=%xh.\n", cso); card 1658 sound/pci/ali5451/ali5451.c err = snd_pcm_new(codec->card, desc->name, device, card 1661 sound/pci/ali5451/ali5451.c dev_err(codec->card->dev, card 1827 sound/pci/ali5451/ali5451.c err = snd_ac97_bus(codec->card, 0, &ops, codec, &codec->ac97_bus); card 1838 sound/pci/ali5451/ali5451.c dev_err(codec->card->dev, card 1849 sound/pci/ali5451/ali5451.c err = snd_ctl_add(codec->card, card 1861 sound/pci/ali5451/ali5451.c struct snd_card *card = dev_get_drvdata(dev); card 1862 sound/pci/ali5451/ali5451.c struct snd_ali *chip = card->private_data; card 1870 sound/pci/ali5451/ali5451.c snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); card 1904 sound/pci/ali5451/ali5451.c struct snd_card *card = dev_get_drvdata(dev); card 1905 sound/pci/ali5451/ali5451.c struct snd_ali *chip = card->private_data; card 1938 sound/pci/ali5451/ali5451.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 1972 sound/pci/ali5451/ali5451.c dev_dbg(codec->card->dev, "chip initializing ...\n"); card 1975 sound/pci/ali5451/ali5451.c dev_err(codec->card->dev, "ali_chip_init: reset 5451 error.\n"); card 2021 sound/pci/ali5451/ali5451.c dev_dbg(codec->card->dev, "chip initialize succeed.\n"); card 2038 sound/pci/ali5451/ali5451.c snd_card_ro_proc_new(codec->card, "ali5451", codec, snd_ali_proc_read); card 2045 sound/pci/ali5451/ali5451.c dev_dbg(codec->card->dev, "resources allocation ...\n"); card 2053 sound/pci/ali5451/ali5451.c dev_err(codec->card->dev, "Unable to request irq.\n"); card 2057 sound/pci/ali5451/ali5451.c dev_dbg(codec->card->dev, "resources allocated.\n"); card 2067 sound/pci/ali5451/ali5451.c static int snd_ali_create(struct snd_card *card, card 2082 sound/pci/ali5451/ali5451.c dev_dbg(card->dev, "creating ...\n"); card 2091 sound/pci/ali5451/ali5451.c dev_err(card->dev, card 2106 sound/pci/ali5451/ali5451.c codec->card = card; card 2156 sound/pci/ali5451/ali5451.c dev_err(card->dev, "cannot find ALi 1533 chip.\n"); card 2163 sound/pci/ali5451/ali5451.c dev_err(card->dev, "cannot find ALi 7101 chip.\n"); card 2168 sound/pci/ali5451/ali5451.c dev_dbg(card->dev, "snd_device_new is called.\n"); card 2169 sound/pci/ali5451/ali5451.c err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, codec, &ops); card 2181 sound/pci/ali5451/ali5451.c dev_err(card->dev, "ali create: chip init error.\n"); card 2188 sound/pci/ali5451/ali5451.c dev_warn(card->dev, "can't allocate apm buffer\n"); card 2195 sound/pci/ali5451/ali5451.c dev_dbg(card->dev, "created.\n"); card 2202 sound/pci/ali5451/ali5451.c struct snd_card *card; card 2208 sound/pci/ali5451/ali5451.c err = snd_card_new(&pci->dev, index, id, THIS_MODULE, 0, &card); card 2212 sound/pci/ali5451/ali5451.c err = snd_ali_create(card, pci, pcm_channels, spdif, &codec); card 2215 sound/pci/ali5451/ali5451.c card->private_data = codec; card 2229 sound/pci/ali5451/ali5451.c strcpy(card->driver, "ALI5451"); card 2230 sound/pci/ali5451/ali5451.c strcpy(card->shortname, "ALI 5451"); card 2232 sound/pci/ali5451/ali5451.c sprintf(card->longname, "%s at 0x%lx, irq %i", card 2233 sound/pci/ali5451/ali5451.c card->shortname, codec->port, codec->irq); card 2236 sound/pci/ali5451/ali5451.c err = snd_card_register(card); card 2240 sound/pci/ali5451/ali5451.c pci_set_drvdata(pci, card); card 2244 sound/pci/ali5451/ali5451.c snd_card_free(card); card 105 sound/pci/als300.c struct snd_card *card; card 302 sound/pci/als300.c if ((err = snd_ac97_bus(chip->card, 0, &ops, NULL, &bus)) < 0) card 580 sound/pci/als300.c err = snd_pcm_new(chip->card, "ALS300", 0, 1, 1, &pcm); card 632 sound/pci/als300.c static int snd_als300_create(struct snd_card *card, card 650 sound/pci/als300.c dev_err(card->dev, "error setting 28bit DMA mask\n"); card 662 sound/pci/als300.c chip->card = card; card 682 sound/pci/als300.c dev_err(card->dev, "unable to grab IRQ %d\n", pci->irq); card 693 sound/pci/als300.c dev_err(card->dev, "Could not create ac97\n"); card 699 sound/pci/als300.c dev_err(card->dev, "Could not create PCM\n"); card 704 sound/pci/als300.c if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, card 717 sound/pci/als300.c struct snd_card *card = dev_get_drvdata(dev); card 718 sound/pci/als300.c struct snd_als300 *chip = card->private_data; card 720 sound/pci/als300.c snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); card 727 sound/pci/als300.c struct snd_card *card = dev_get_drvdata(dev); card 728 sound/pci/als300.c struct snd_als300 *chip = card->private_data; card 733 sound/pci/als300.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 747 sound/pci/als300.c struct snd_card *card; card 759 sound/pci/als300.c 0, &card); card 766 sound/pci/als300.c if ((err = snd_als300_create(card, pci, chip_type, &chip)) < 0) { card 767 sound/pci/als300.c snd_card_free(card); card 770 sound/pci/als300.c card->private_data = chip; card 772 sound/pci/als300.c strcpy(card->driver, "ALS300"); card 776 sound/pci/als300.c sprintf(card->shortname, "ALS300+ (Rev. %d)", chip->revision); card 778 sound/pci/als300.c sprintf(card->shortname, "ALS300 (Rev. %c)", 'A' + card 780 sound/pci/als300.c sprintf(card->longname, "%s at 0x%lx irq %i", card 781 sound/pci/als300.c card->shortname, chip->port, chip->irq); card 783 sound/pci/als300.c if ((err = snd_card_register(card)) < 0) { card 784 sound/pci/als300.c snd_card_free(card); card 787 sound/pci/als300.c pci_set_drvdata(pci, card); card 688 sound/pci/als4000.c err = snd_pcm_new(chip->card, "ALS4000 DSP", device, 1, 1, &pcm); card 824 sound/pci/als4000.c static void snd_card_als4000_free( struct snd_card *card ) card 826 sound/pci/als4000.c struct snd_card_als4000 *acard = card->private_data; card 840 sound/pci/als4000.c struct snd_card *card; card 879 sound/pci/als4000.c &card); card 886 sound/pci/als4000.c acard = card->private_data; card 889 sound/pci/als4000.c card->private_free = snd_card_als4000_free; card 894 sound/pci/als4000.c if ((err = snd_sbdsp_create(card, card 912 sound/pci/als4000.c strcpy(card->driver, "ALS4000"); card 913 sound/pci/als4000.c strcpy(card->shortname, "Avance Logic ALS4000"); card 914 sound/pci/als4000.c sprintf(card->longname, "%s at 0x%lx, irq %i", card 915 sound/pci/als4000.c card->shortname, chip->alt_port, chip->irq); card 917 sound/pci/als4000.c if ((err = snd_mpu401_uart_new( card, 0, MPU401_HW_ALS4000, card 939 sound/pci/als4000.c if (snd_opl3_create(card, card 954 sound/pci/als4000.c if ((err = snd_card_register(card)) < 0) { card 957 sound/pci/als4000.c pci_set_drvdata(pci, card); card 963 sound/pci/als4000.c snd_card_free(card); card 977 sound/pci/als4000.c struct snd_card *card = dev_get_drvdata(dev); card 978 sound/pci/als4000.c struct snd_card_als4000 *acard = card->private_data; card 981 sound/pci/als4000.c snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); card 989 sound/pci/als4000.c struct snd_card *card = dev_get_drvdata(dev); card 990 sound/pci/als4000.c struct snd_card_als4000 *acard = card->private_data; card 1002 sound/pci/als4000.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 110 sound/pci/asihpi/asihpi.c struct snd_card *card; card 445 sound/pci/asihpi/asihpi.c struct snd_card_asihpi *card = snd_pcm_substream_chip(substream); card 473 sound/pci/asihpi/asihpi.c if (card->can_dma) { card 548 sound/pci/asihpi/asihpi.c struct snd_card_asihpi *card; card 551 sound/pci/asihpi/asihpi.c card = snd_pcm_substream_chip(substream); card 554 sound/pci/asihpi/asihpi.c tasklet_disable(&card->t); card 555 sound/pci/asihpi/asihpi.c card->llmode_streampriv = dpcm; card 556 sound/pci/asihpi/asihpi.c tasklet_enable(&card->t); card 558 sound/pci/asihpi/asihpi.c hpi_handle_error(hpi_adapter_set_property(card->hpi->adapter->index, card 560 sound/pci/asihpi/asihpi.c card->update_interval_frames, 0)); card 565 sound/pci/asihpi/asihpi.c struct snd_card_asihpi *card; card 567 sound/pci/asihpi/asihpi.c card = snd_pcm_substream_chip(substream); card 569 sound/pci/asihpi/asihpi.c hpi_handle_error(hpi_adapter_set_property(card->hpi->adapter->index, card 573 sound/pci/asihpi/asihpi.c card->llmode_streampriv = NULL; card 575 sound/pci/asihpi/asihpi.c tasklet_disable(&card->t); card 576 sound/pci/asihpi/asihpi.c card->llmode_streampriv = NULL; card 577 sound/pci/asihpi/asihpi.c tasklet_enable(&card->t); card 585 sound/pci/asihpi/asihpi.c struct snd_card_asihpi *card = snd_pcm_substream_chip(substream); card 599 sound/pci/asihpi/asihpi.c if (snd_pcm_substream_chip(s) != card) card 624 sound/pci/asihpi/asihpi.c if (card->support_grouping) { card 639 sound/pci/asihpi/asihpi.c card->pcm_start(substream); card 641 sound/pci/asihpi/asihpi.c !card->can_dma) card 647 sound/pci/asihpi/asihpi.c card->pcm_stop(substream); card 649 sound/pci/asihpi/asihpi.c if (snd_pcm_substream_chip(s) != card) card 659 sound/pci/asihpi/asihpi.c if (card->support_grouping) { card 672 sound/pci/asihpi/asihpi.c if (card->support_grouping) card 678 sound/pci/asihpi/asihpi.c card->pcm_start(substream); card 683 sound/pci/asihpi/asihpi.c card->pcm_stop(substream); card 743 sound/pci/asihpi/asihpi.c struct snd_card_asihpi *card = snd_pcm_substream_chip(substream); card 763 sound/pci/asihpi/asihpi.c if (snd_pcm_substream_chip(s) != card) card 778 sound/pci/asihpi/asihpi.c if (!card->can_dma) card 872 sound/pci/asihpi/asihpi.c if (card->can_dma) { /* buffer wrap is handled at lower level */ card 924 sound/pci/asihpi/asihpi.c if (!card->hpi->interrupt_mode && dpcm->respawn_timer) card 1025 sound/pci/asihpi/asihpi.c struct snd_card_asihpi *card = snd_pcm_substream_chip(substream); card 1033 sound/pci/asihpi/asihpi.c err = hpi_outstream_open(card->hpi->adapter->index, card 1054 sound/pci/asihpi/asihpi.c if (!card->hpi->interrupt_mode) { card 1061 sound/pci/asihpi/asihpi.c size_t pbmin = card->update_interval_frames * card 1062 sound/pci/asihpi/asihpi.c card->out_max_chans; card 1071 sound/pci/asihpi/asihpi.c snd_card_asihpi_playback.channels_max = card->out_max_chans; card 1072 sound/pci/asihpi/asihpi.c snd_card_asihpi_playback.channels_min = card->out_min_chans; card 1074 sound/pci/asihpi/asihpi.c snd_card_asihpi_playback_formats(card, dpcm->h_stream); card 1076 sound/pci/asihpi/asihpi.c snd_card_asihpi_pcm_samplerates(card, &snd_card_asihpi_playback); card 1086 sound/pci/asihpi/asihpi.c if (card->support_grouping) { card 1094 sound/pci/asihpi/asihpi.c if (card->can_dma) card 1101 sound/pci/asihpi/asihpi.c card->update_interval_frames); card 1104 sound/pci/asihpi/asihpi.c card->update_interval_frames, UINT_MAX); card 1206 sound/pci/asihpi/asihpi.c struct snd_card_asihpi *card = snd_pcm_substream_chip(substream); card 1216 sound/pci/asihpi/asihpi.c card->hpi->adapter->index, substream->number); card 1219 sound/pci/asihpi/asihpi.c hpi_instream_open(card->hpi->adapter->index, card 1234 sound/pci/asihpi/asihpi.c if (!card->hpi->interrupt_mode) { card 1241 sound/pci/asihpi/asihpi.c size_t pbmin = card->update_interval_frames * card 1242 sound/pci/asihpi/asihpi.c card->out_max_chans; card 1250 sound/pci/asihpi/asihpi.c snd_card_asihpi_capture.channels_max = card->in_max_chans; card 1251 sound/pci/asihpi/asihpi.c snd_card_asihpi_capture.channels_min = card->in_min_chans; card 1253 sound/pci/asihpi/asihpi.c snd_card_asihpi_capture_formats(card, dpcm->h_stream); card 1254 sound/pci/asihpi/asihpi.c snd_card_asihpi_pcm_samplerates(card, &snd_card_asihpi_capture); card 1259 sound/pci/asihpi/asihpi.c if (card->support_grouping) card 1264 sound/pci/asihpi/asihpi.c if (card->can_dma) card 1271 sound/pci/asihpi/asihpi.c card->update_interval_frames); card 1273 sound/pci/asihpi/asihpi.c card->update_interval_frames, UINT_MAX); card 1310 sound/pci/asihpi/asihpi.c err = snd_pcm_new(asihpi->card, "Asihpi PCM", device, card 1409 sound/pci/asihpi/asihpi.c static inline int ctl_add(struct snd_card *card, struct snd_kcontrol_new *ctl, card 1414 sound/pci/asihpi/asihpi.c err = snd_ctl_add(card, snd_ctl_new1(ctl, asihpi)); card 1567 sound/pci/asihpi/asihpi.c struct snd_card *card = asihpi->card; card 1580 sound/pci/asihpi/asihpi.c err = ctl_add(card, &snd_control, asihpi); card 1590 sound/pci/asihpi/asihpi.c err = ctl_add(card, &snd_control, asihpi); card 1663 sound/pci/asihpi/asihpi.c struct snd_card *card = asihpi->card; card 1675 sound/pci/asihpi/asihpi.c return ctl_add(card, &snd_control, asihpi); card 1774 sound/pci/asihpi/asihpi.c struct snd_card *card = asihpi->card; card 1784 sound/pci/asihpi/asihpi.c if (ctl_add(card, &snd_control, asihpi) < 0) card 1793 sound/pci/asihpi/asihpi.c return ctl_add(card, &snd_control, asihpi); card 1812 sound/pci/asihpi/asihpi.c struct snd_card *card = asihpi->card; card 1821 sound/pci/asihpi/asihpi.c return ctl_add(card, &snd_control, asihpi); card 2044 sound/pci/asihpi/asihpi.c struct snd_card *card = asihpi->card; card 2056 sound/pci/asihpi/asihpi.c if (ctl_add(card, &snd_control, asihpi) < 0) card 2065 sound/pci/asihpi/asihpi.c if (ctl_add(card, &snd_control, asihpi) < 0) card 2073 sound/pci/asihpi/asihpi.c return ctl_add(card, &snd_control, asihpi); card 2148 sound/pci/asihpi/asihpi.c struct snd_card *card = asihpi->card; card 2159 sound/pci/asihpi/asihpi.c return ctl_add(card, &snd_control, asihpi); card 2262 sound/pci/asihpi/asihpi.c struct snd_card *card = asihpi->card; card 2271 sound/pci/asihpi/asihpi.c return ctl_add(card, &snd_control, asihpi); card 2341 sound/pci/asihpi/asihpi.c struct snd_card *card = asihpi->card; card 2350 sound/pci/asihpi/asihpi.c return ctl_add(card, &snd_control, asihpi); card 2515 sound/pci/asihpi/asihpi.c struct snd_card *card; card 2526 sound/pci/asihpi/asihpi.c card = asihpi->card; card 2565 sound/pci/asihpi/asihpi.c if (ctl_add(card, &snd_control, asihpi) < 0) card 2577 sound/pci/asihpi/asihpi.c if (ctl_add(card, &snd_control, asihpi) < 0) card 2587 sound/pci/asihpi/asihpi.c return ctl_add(card, &snd_control, asihpi); card 2595 sound/pci/asihpi/asihpi.c struct snd_card *card; card 2603 sound/pci/asihpi/asihpi.c card = asihpi->card; card 2604 sound/pci/asihpi/asihpi.c strcpy(card->mixername, "Asihpi Mixer"); card 2769 sound/pci/asihpi/asihpi.c snd_card_ro_proc_new(asihpi->card, "info", asihpi, card 2812 sound/pci/asihpi/asihpi.c err = snd_hwdep_new(asihpi->card, "HPI", device, &hw); card 2832 sound/pci/asihpi/asihpi.c struct snd_card *card; card 2858 sound/pci/asihpi/asihpi.c THIS_MODULE, sizeof(struct snd_card_asihpi), &card); card 2863 sound/pci/asihpi/asihpi.c &card); card 2867 sound/pci/asihpi/asihpi.c adapter_index, card->number); card 2870 sound/pci/asihpi/asihpi.c asihpi = card->private_data; card 2871 sound/pci/asihpi/asihpi.c asihpi->card = card; card 2874 sound/pci/asihpi/asihpi.c hpi->snd_card = card; card 2965 sound/pci/asihpi/asihpi.c strcpy(card->driver, "ASIHPI"); card 2967 sound/pci/asihpi/asihpi.c sprintf(card->shortname, "AudioScience ASI%4X", card 2969 sound/pci/asihpi/asihpi.c sprintf(card->longname, "%s %i", card 2970 sound/pci/asihpi/asihpi.c card->shortname, adapter_index); card 2971 sound/pci/asihpi/asihpi.c err = snd_card_register(card); card 2978 sound/pci/asihpi/asihpi.c snd_card_free(card); card 248 sound/pci/atiixp.c struct snd_card *card; card 421 sound/pci/atiixp.c dev_warn(chip->card->dev, "codec acquire timeout\n"); card 452 sound/pci/atiixp.c dev_warn(chip->card->dev, "codec read timeout (reg %x)\n", reg); card 512 sound/pci/atiixp.c dev_err(chip->card->dev, "codec reset timeout\n"); card 588 sound/pci/atiixp.c dev_err(chip->card->dev, "no codec detected!\n"); card 664 sound/pci/atiixp.c dev_dbg(chip->card->dev, "invalid DMA pointer read 0x%x (buf=%x)\n", card 676 sound/pci/atiixp.c dev_dbg(chip->card->dev, "XRUN detected (DMA %d)\n", dma->ops->type); card 1276 sound/pci/atiixp.c err = snd_pcm_new(chip->card, "ATI IXP AC97", card 1307 sound/pci/atiixp.c err = snd_pcm_new(chip->card, "ATI IXP IEC958", card 1428 sound/pci/atiixp.c if ((err = snd_ac97_bus(chip->card, 0, &ops, chip, &pbus)) < 0) card 1446 sound/pci/atiixp.c dev_dbg(chip->card->dev, card 1454 sound/pci/atiixp.c dev_err(chip->card->dev, "no codec available\n"); card 1470 sound/pci/atiixp.c struct snd_card *card = dev_get_drvdata(dev); card 1471 sound/pci/atiixp.c struct atiixp *chip = card->private_data; card 1474 sound/pci/atiixp.c snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); card 1484 sound/pci/atiixp.c struct snd_card *card = dev_get_drvdata(dev); card 1485 sound/pci/atiixp.c struct atiixp *chip = card->private_data; card 1505 sound/pci/atiixp.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 1532 sound/pci/atiixp.c snd_card_ro_proc_new(chip->card, "atiixp", chip, snd_atiixp_proc_read); card 1565 sound/pci/atiixp.c static int snd_atiixp_create(struct snd_card *card, card 1586 sound/pci/atiixp.c chip->card = card; card 1597 sound/pci/atiixp.c dev_err(card->dev, "AC'97 space ioremap problem\n"); card 1604 sound/pci/atiixp.c dev_err(card->dev, "unable to grab IRQ %d\n", pci->irq); card 1612 sound/pci/atiixp.c if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops)) < 0) { card 1625 sound/pci/atiixp.c struct snd_card *card; card 1629 sound/pci/atiixp.c err = snd_card_new(&pci->dev, index, id, THIS_MODULE, 0, &card); card 1633 sound/pci/atiixp.c strcpy(card->driver, spdif_aclink ? "ATIIXP" : "ATIIXP-SPDMA"); card 1634 sound/pci/atiixp.c strcpy(card->shortname, "ATI IXP"); card 1635 sound/pci/atiixp.c if ((err = snd_atiixp_create(card, pci, &chip)) < 0) card 1637 sound/pci/atiixp.c card->private_data = chip; card 1654 sound/pci/atiixp.c snprintf(card->longname, sizeof(card->longname), card 1655 sound/pci/atiixp.c "%s rev %x with %s at %#lx, irq %i", card->shortname, card 1660 sound/pci/atiixp.c if ((err = snd_card_register(card)) < 0) card 1663 sound/pci/atiixp.c pci_set_drvdata(pci, card); card 1667 sound/pci/atiixp.c snd_card_free(card); card 222 sound/pci/atiixp_modem.c struct snd_card *card; card 389 sound/pci/atiixp_modem.c dev_warn(chip->card->dev, "codec acquire timeout\n"); card 422 sound/pci/atiixp_modem.c dev_warn(chip->card->dev, "codec read timeout (reg %x)\n", reg); card 488 sound/pci/atiixp_modem.c dev_err(chip->card->dev, "codec reset timeout\n"); card 542 sound/pci/atiixp_modem.c dev_err(chip->card->dev, "no codec detected!\n"); card 613 sound/pci/atiixp_modem.c dev_dbg(chip->card->dev, "invalid DMA pointer read 0x%x (buf=%x)\n", card 626 sound/pci/atiixp_modem.c dev_dbg(chip->card->dev, "XRUN detected (DMA %d)\n", dma->ops->type); card 987 sound/pci/atiixp_modem.c err = snd_pcm_new(chip->card, "ATI IXP MC97", ATI_PCMDEV_ANALOG, 1, 1, &pcm); card 1069 sound/pci/atiixp_modem.c if ((err = snd_ac97_bus(chip->card, 0, &ops, chip, &pbus)) < 0) card 1085 sound/pci/atiixp_modem.c dev_dbg(chip->card->dev, card 1093 sound/pci/atiixp_modem.c dev_err(chip->card->dev, "no codec available\n"); card 1109 sound/pci/atiixp_modem.c struct snd_card *card = dev_get_drvdata(dev); card 1110 sound/pci/atiixp_modem.c struct atiixp_modem *chip = card->private_data; card 1113 sound/pci/atiixp_modem.c snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); card 1123 sound/pci/atiixp_modem.c struct snd_card *card = dev_get_drvdata(dev); card 1124 sound/pci/atiixp_modem.c struct atiixp_modem *chip = card->private_data; card 1133 sound/pci/atiixp_modem.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 1159 sound/pci/atiixp_modem.c snd_card_ro_proc_new(chip->card, "atiixp-modem", chip, card 1193 sound/pci/atiixp_modem.c static int snd_atiixp_create(struct snd_card *card, card 1214 sound/pci/atiixp_modem.c chip->card = card; card 1225 sound/pci/atiixp_modem.c dev_err(card->dev, "AC'97 space ioremap problem\n"); card 1232 sound/pci/atiixp_modem.c dev_err(card->dev, "unable to grab IRQ %d\n", pci->irq); card 1240 sound/pci/atiixp_modem.c if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops)) < 0) { card 1253 sound/pci/atiixp_modem.c struct snd_card *card; card 1257 sound/pci/atiixp_modem.c err = snd_card_new(&pci->dev, index, id, THIS_MODULE, 0, &card); card 1261 sound/pci/atiixp_modem.c strcpy(card->driver, "ATIIXP-MODEM"); card 1262 sound/pci/atiixp_modem.c strcpy(card->shortname, "ATI IXP Modem"); card 1263 sound/pci/atiixp_modem.c if ((err = snd_atiixp_create(card, pci, &chip)) < 0) card 1265 sound/pci/atiixp_modem.c card->private_data = chip; card 1280 sound/pci/atiixp_modem.c sprintf(card->longname, "%s rev %x at 0x%lx, irq %i", card 1281 sound/pci/atiixp_modem.c card->shortname, pci->revision, chip->addr, chip->irq); card 1283 sound/pci/atiixp_modem.c if ((err = snd_card_register(card)) < 0) card 1286 sound/pci/atiixp_modem.c pci_set_drvdata(pci, card); card 1290 sound/pci/atiixp_modem.c snd_card_free(card); card 141 sound/pci/au88x0/au88x0.c snd_vortex_create(struct snd_card *card, struct pci_dev *pci, vortex_t ** rchip) card 156 sound/pci/au88x0/au88x0.c dev_err(card->dev, "error to set DMA mask\n"); card 167 sound/pci/au88x0/au88x0.c chip->card = card; card 174 sound/pci/au88x0/au88x0.c chip->card = card; card 185 sound/pci/au88x0/au88x0.c dev_err(card->dev, "MMIO area remap failed.\n"); card 194 sound/pci/au88x0/au88x0.c dev_err(card->dev, "hw core init failed\n"); card 201 sound/pci/au88x0/au88x0.c dev_err(card->dev, "cannot grab irq\n"); card 210 sound/pci/au88x0/au88x0.c if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops)) < 0) { card 239 sound/pci/au88x0/au88x0.c struct snd_card *card; card 252 sound/pci/au88x0/au88x0.c 0, &card); card 257 sound/pci/au88x0/au88x0.c if ((err = snd_vortex_create(card, pci, &chip)) < 0) { card 258 sound/pci/au88x0/au88x0.c snd_card_free(card); card 264 sound/pci/au88x0/au88x0.c strcpy(card->driver, CARD_NAME_SHORT); card 265 sound/pci/au88x0/au88x0.c sprintf(card->shortname, "Aureal Vortex %s", CARD_NAME_SHORT); card 266 sound/pci/au88x0/au88x0.c sprintf(card->longname, "%s at 0x%lx irq %i", card 267 sound/pci/au88x0/au88x0.c card->shortname, chip->io, chip->irq); card 272 sound/pci/au88x0/au88x0.c snd_card_free(card); card 278 sound/pci/au88x0/au88x0.c snd_card_free(card); card 284 sound/pci/au88x0/au88x0.c snd_card_free(card); card 289 sound/pci/au88x0/au88x0.c snd_card_free(card); card 303 sound/pci/au88x0/au88x0.c snd_card_free(card); card 308 sound/pci/au88x0/au88x0.c snd_card_free(card); card 315 sound/pci/au88x0/au88x0.c if (snd_seq_device_new(card, 1, SNDRV_SEQ_DEV_ID_VORTEX_SYNTH, card 318 sound/pci/au88x0/au88x0.c dev_err(card->dev, "Can't initialize Aureal wavetable synth\n"); card 334 sound/pci/au88x0/au88x0.c snd_card_free(card); card 339 sound/pci/au88x0/au88x0.c snd_card_free(card); card 345 sound/pci/au88x0/au88x0.c dev_alert(card->dev, card 348 sound/pci/au88x0/au88x0.c dev_alert(card->dev, card 350 sound/pci/au88x0/au88x0.c snd_card_free(card); card 357 sound/pci/au88x0/au88x0.c if ((err = snd_card_register(card)) < 0) { card 358 sound/pci/au88x0/au88x0.c snd_card_free(card); card 362 sound/pci/au88x0/au88x0.c pci_set_drvdata(pci, card); card 132 sound/pci/au88x0/au88x0.h struct snd_card *card; card 228 sound/pci/au88x0/au88x0.h static int vortex_core_init(vortex_t * card); card 229 sound/pci/au88x0/au88x0.h static int vortex_core_shutdown(vortex_t * card); card 230 sound/pci/au88x0/au88x0.h static void vortex_enable_int(vortex_t * card); card 271 sound/pci/au88x0/au88x0.h static int vortex_gameport_register(vortex_t * card); card 272 sound/pci/au88x0/au88x0.h static void vortex_gameport_unregister(vortex_t * card); card 480 sound/pci/au88x0/au88x0_a3d.c dev_err(v->card->dev, card 620 sound/pci/au88x0/au88x0_a3d.c dev_warn(v->card->dev, card 627 sound/pci/au88x0/au88x0_a3d.c dev_warn(v->card->dev, card 671 sound/pci/au88x0/au88x0_a3d.c dev_warn(v->card->dev, card 858 sound/pci/au88x0/au88x0_a3d.c if ((err = snd_ctl_add(vortex->card, kcontrol)) < 0) card 869 sound/pci/au88x0/au88x0_a3d.c if ((err = snd_ctl_add(vortex->card, kcontrol)) < 0) card 880 sound/pci/au88x0/au88x0_a3d.c if ((err = snd_ctl_add(vortex->card, kcontrol)) < 0) card 891 sound/pci/au88x0/au88x0_a3d.c if ((err = snd_ctl_add(vortex->card, kcontrol)) < 0) card 276 sound/pci/au88x0/au88x0_core.c dev_err(vortex->card->dev, card 294 sound/pci/au88x0/au88x0_core.c dev_err(vortex->card->dev, "mix ALARM %x\n", eax); card 315 sound/pci/au88x0/au88x0_core.c dev_err(vortex->card->dev, card 483 sound/pci/au88x0/au88x0_core.c dev_err(vortex->card->dev, "Src cvr fail\n"); card 559 sound/pci/au88x0/au88x0_core.c static void vortex_src_setupchannel(vortex_t * card, unsigned char src, card 572 sound/pci/au88x0/au88x0_core.c vortex_src_flushbuffers(card, src); card 600 sound/pci/au88x0/au88x0_core.c vortex_src_cleardrift(card, src); card 601 sound/pci/au88x0/au88x0_core.c vortex_src_set_throttlesource(card, src, thsource); card 616 sound/pci/au88x0/au88x0_core.c hwwrite(card->mmio, VORTEX_SRC_U0 + (src << 2), card 619 sound/pci/au88x0/au88x0_core.c vortex_src_persist_convratio(card, src, cr); card 620 sound/pci/au88x0/au88x0_core.c hwwrite(card->mmio, VORTEX_SRC_U1 + (src << 2), b & 0xffff); card 622 sound/pci/au88x0/au88x0_core.c hwwrite(card->mmio, VORTEX_SRC_U2 + (src << 2), card 675 sound/pci/au88x0/au88x0_core.c dev_err(vortex->card->dev, card 694 sound/pci/au88x0/au88x0_core.c dev_err(vortex->card->dev, "src alarm\n"); card 715 sound/pci/au88x0/au88x0_core.c dev_warn(vortex->card->dev, card 810 sound/pci/au88x0/au88x0_core.c dev_err(vortex->card->dev, card 906 sound/pci/au88x0/au88x0_core.c dev_err(vortex->card->dev, card 1034 sound/pci/au88x0/au88x0_core.c dev_err(vortex->card->dev, "bad adb fifo reset!\n"); card 1045 sound/pci/au88x0/au88x0_core.c dev_err(vortex->card->dev, card 1208 sound/pci/au88x0/au88x0_core.c dev_info(vortex->card->dev, card 1480 sound/pci/au88x0/au88x0_core.c dev_warn(vortex->card->dev, "wt virt = %d, delta = %d\n", card 1665 sound/pci/au88x0/au88x0_core.c dev_err(vortex->card->dev, card 1701 sound/pci/au88x0/au88x0_core.c dev_err(vortex->card->dev, card 2043 sound/pci/au88x0/au88x0_core.c dev_err(vortex->card->dev, card 2171 sound/pci/au88x0/au88x0_core.c dev_err(vortex->card->dev, card 2374 sound/pci/au88x0/au88x0_core.c static void vortex_enable_timer_int(vortex_t * card) card 2376 sound/pci/au88x0/au88x0_core.c hwwrite(card->mmio, VORTEX_IRQ_CTRL, card 2377 sound/pci/au88x0/au88x0_core.c hwread(card->mmio, VORTEX_IRQ_CTRL) | IRQ_TIMER | 0x60); card 2380 sound/pci/au88x0/au88x0_core.c static void vortex_disable_timer_int(vortex_t * card) card 2382 sound/pci/au88x0/au88x0_core.c hwwrite(card->mmio, VORTEX_IRQ_CTRL, card 2383 sound/pci/au88x0/au88x0_core.c hwread(card->mmio, VORTEX_IRQ_CTRL) & ~IRQ_TIMER); card 2387 sound/pci/au88x0/au88x0_core.c static void vortex_enable_int(vortex_t * card) card 2390 sound/pci/au88x0/au88x0_core.c hwwrite(card->mmio, VORTEX_CTRL, card 2391 sound/pci/au88x0/au88x0_core.c hwread(card->mmio, VORTEX_CTRL) | CTRL_IRQ_ENABLE); card 2392 sound/pci/au88x0/au88x0_core.c hwwrite(card->mmio, VORTEX_IRQ_CTRL, card 2393 sound/pci/au88x0/au88x0_core.c (hwread(card->mmio, VORTEX_IRQ_CTRL) & 0xffffefc0) | 0x24); card 2396 sound/pci/au88x0/au88x0_core.c static void vortex_disable_int(vortex_t * card) card 2398 sound/pci/au88x0/au88x0_core.c hwwrite(card->mmio, VORTEX_CTRL, card 2399 sound/pci/au88x0/au88x0_core.c hwread(card->mmio, VORTEX_CTRL) & ~CTRL_IRQ_ENABLE); card 2422 sound/pci/au88x0/au88x0_core.c dev_err(vortex->card->dev, "missing irq source\n"); card 2430 sound/pci/au88x0/au88x0_core.c dev_err(vortex->card->dev, "IRQ fatal error\n"); card 2433 sound/pci/au88x0/au88x0_core.c dev_err(vortex->card->dev, "IRQ parity error\n"); card 2436 sound/pci/au88x0/au88x0_core.c dev_err(vortex->card->dev, "IRQ reg error\n"); card 2439 sound/pci/au88x0/au88x0_core.c dev_err(vortex->card->dev, "IRQ fifo error\n"); card 2442 sound/pci/au88x0/au88x0_core.c dev_err(vortex->card->dev, "IRQ dma error\n"); card 2490 sound/pci/au88x0/au88x0_core.c dev_err(vortex->card->dev, "unknown irq source %x\n", source); card 2540 sound/pci/au88x0/au88x0_core.c vortex_t *card = (vortex_t *) codec->private_data; card 2544 sound/pci/au88x0/au88x0_core.c while (!(hwread(card->mmio, VORTEX_CODEC_CTRL) & 0x100)) { card 2547 sound/pci/au88x0/au88x0_core.c dev_err(card->card->dev, "ac97 codec stuck busy\n"); card 2552 sound/pci/au88x0/au88x0_core.c hwwrite(card->mmio, VORTEX_CODEC_IO, card 2559 sound/pci/au88x0/au88x0_core.c hwread(card->mmio, VORTEX_CODEC_IO); card 2565 sound/pci/au88x0/au88x0_core.c vortex_t *card = (vortex_t *) codec->private_data; card 2570 sound/pci/au88x0/au88x0_core.c while (!(hwread(card->mmio, VORTEX_CODEC_CTRL) & 0x100)) { card 2573 sound/pci/au88x0/au88x0_core.c dev_err(card->card->dev, "ac97 codec stuck busy\n"); card 2580 sound/pci/au88x0/au88x0_core.c hwwrite(card->mmio, VORTEX_CODEC_IO, read_addr); card 2585 sound/pci/au88x0/au88x0_core.c data = hwread(card->mmio, VORTEX_CODEC_IO); card 2587 sound/pci/au88x0/au88x0_core.c dev_err(card->card->dev, card 2685 sound/pci/au88x0/au88x0_core.c dev_info(vortex->card->dev, "init started\n"); card 2730 sound/pci/au88x0/au88x0_core.c dev_info(vortex->card->dev, "init.... done.\n"); card 2739 sound/pci/au88x0/au88x0_core.c dev_info(vortex->card->dev, "shutdown started\n"); card 2761 sound/pci/au88x0/au88x0_core.c dev_info(vortex->card->dev, "shutdown.... done.\n"); card 2795 sound/pci/au88x0/au88x0_core.c dev_err(v->card->dev, card 836 sound/pci/au88x0/au88x0_eq.c dev_err(vortex->card->dev, card 880 sound/pci/au88x0/au88x0_eq.c if ((err = snd_ctl_add(vortex->card, kcontrol)) < 0) card 891 sound/pci/au88x0/au88x0_eq.c if ((err = snd_ctl_add(vortex->card, kcontrol)) < 0) card 898 sound/pci/au88x0/au88x0_eq.c if ((err = snd_ctl_add(vortex->card, kcontrol)) < 0) card 88 sound/pci/au88x0/au88x0_game.c dev_err(vortex->card->dev, card 14 sound/pci/au88x0/au88x0_mixer.c static int remove_ctl(struct snd_card *card, const char *name) card 20 sound/pci/au88x0/au88x0_mixer.c return snd_ctl_remove_id(card, &id); card 33 sound/pci/au88x0/au88x0_mixer.c if ((err = snd_ac97_bus(vortex->card, 0, &ops, NULL, &pbus)) < 0) card 41 sound/pci/au88x0/au88x0_mixer.c remove_ctl(vortex->card, "Master Mono Playback Volume"); card 42 sound/pci/au88x0/au88x0_mixer.c remove_ctl(vortex->card, "Master Mono Playback Switch"); card 62 sound/pci/au88x0/au88x0_mpu401.c dev_err(vortex->card->dev, "midi port doesn't acknowledge!\n"); card 72 sound/pci/au88x0/au88x0_mpu401.c snd_mpu401_uart_new(vortex->card, 0, MPU401_HW_MPU401, 0x330, card 82 sound/pci/au88x0/au88x0_mpu401.c snd_mpu401_uart_new(vortex->card, 0, MPU401_HW_AUREAL, port, card 94 sound/pci/au88x0/au88x0_mpu401.c snprintf(rmidi->name, sizeof(rmidi->name), "%s MIDI %d", CARD_NAME_SHORT , vortex->card->number); card 114 sound/pci/au88x0/au88x0_pcm.c static void vortex_notify_pcm_vol_change(struct snd_card *card, card 121 sound/pci/au88x0/au88x0_pcm.c snd_ctl_notify(card, SNDRV_CTL_EVENT_MASK_VALUE | card 218 sound/pci/au88x0/au88x0_pcm.c dev_err(chip->card->dev, "Vortex: pcm page alloc failed!\n"); card 253 sound/pci/au88x0/au88x0_pcm.c vortex_notify_pcm_vol_change(chip->card, card 288 sound/pci/au88x0/au88x0_pcm.c vortex_notify_pcm_vol_change(chip->card, card 362 sound/pci/au88x0/au88x0_pcm.c dev_info(chip->card->dev, "wt start %d\n", dma); card 375 sound/pci/au88x0/au88x0_pcm.c dev_info(chip->card->dev, "wt stop %d\n", dma); card 621 sound/pci/au88x0/au88x0_pcm.c err = snd_pcm_new(chip->card, vortex_pcm_prettyname[idx], idx, nr, card 672 sound/pci/au88x0/au88x0_pcm.c if ((err = snd_ctl_add(chip->card, kctl)) < 0) card 686 sound/pci/au88x0/au88x0_pcm.c err = snd_ctl_add(chip->card, kctl); card 81 sound/pci/au88x0/au88x0_synth.c dev_dbg(vortex->card->dev, "WT PARM3: %x\n", temp); card 89 sound/pci/au88x0/au88x0_synth.c dev_dbg(vortex->card->dev, "WT GMODE: %x\n", card 98 sound/pci/au88x0/au88x0_synth.c dev_dbg(vortex->card->dev, "WT GMODE 2 : %x\n", card 189 sound/pci/au88x0/au88x0_synth.c dev_warn(vortex->card->dev, card 196 sound/pci/au88x0/au88x0_synth.c dev_err(vortex->card->dev, card 93 sound/pci/aw2/aw2-alsa.c struct snd_card *card; card 103 sound/pci/aw2/aw2-alsa.c static int snd_aw2_create(struct snd_card *card, card 230 sound/pci/aw2/aw2-alsa.c static int snd_aw2_create(struct snd_card *card, card 250 sound/pci/aw2/aw2-alsa.c dev_err(card->dev, "Impossible to set 32bit mask DMA\n"); card 261 sound/pci/aw2/aw2-alsa.c chip->card = card; card 278 sound/pci/aw2/aw2-alsa.c dev_err(card->dev, "unable to remap memory region"); card 290 sound/pci/aw2/aw2-alsa.c dev_err(card->dev, "Cannot grab irq %d\n", pci->irq); card 300 sound/pci/aw2/aw2-alsa.c err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops); card 312 sound/pci/aw2/aw2-alsa.c dev_info(card->dev, card 322 sound/pci/aw2/aw2-alsa.c struct snd_card *card; card 336 sound/pci/aw2/aw2-alsa.c 0, &card); card 341 sound/pci/aw2/aw2-alsa.c err = snd_aw2_create(card, pci, &chip); card 343 sound/pci/aw2/aw2-alsa.c snd_card_free(card); card 352 sound/pci/aw2/aw2-alsa.c strcpy(card->driver, "aw2"); card 353 sound/pci/aw2/aw2-alsa.c strcpy(card->shortname, "Audiowerk2"); card 355 sound/pci/aw2/aw2-alsa.c sprintf(card->longname, "%s with SAA7146 irq %i", card 356 sound/pci/aw2/aw2-alsa.c card->shortname, chip->irq); card 362 sound/pci/aw2/aw2-alsa.c err = snd_card_register(card); card 364 sound/pci/aw2/aw2-alsa.c snd_card_free(card); card 369 sound/pci/aw2/aw2-alsa.c pci_set_drvdata(pci, card); card 386 sound/pci/aw2/aw2-alsa.c dev_dbg(substream->pcm->card->dev, "Playback_open\n"); card 402 sound/pci/aw2/aw2-alsa.c dev_dbg(substream->pcm->card->dev, "Capture_open\n"); card 587 sound/pci/aw2/aw2-alsa.c err = snd_pcm_new(chip->card, "Audiowerk2 analog playback", 0, 1, 0, card 590 sound/pci/aw2/aw2-alsa.c dev_err(chip->card->dev, "snd_pcm_new error (0x%X)\n", err); card 619 sound/pci/aw2/aw2-alsa.c err = snd_pcm_new(chip->card, "Audiowerk2 digital playback", 1, 1, 0, card 623 sound/pci/aw2/aw2-alsa.c dev_err(chip->card->dev, "snd_pcm_new error (0x%X)\n", err); card 651 sound/pci/aw2/aw2-alsa.c err = snd_pcm_new(chip->card, "Audiowerk2 capture", 2, 0, 1, card 655 sound/pci/aw2/aw2-alsa.c dev_err(chip->card->dev, "snd_pcm_new error (0x%X)\n", err); card 685 sound/pci/aw2/aw2-alsa.c err = snd_ctl_add(chip->card, snd_ctl_new1(&aw2_control, chip)); card 687 sound/pci/aw2/aw2-alsa.c dev_err(chip->card->dev, "snd_ctl_add error (0x%X)\n", err); card 282 sound/pci/azt3328.c struct snd_card *card; card 522 sound/pci/azt3328.c dev_warn(chip->card->dev, card 658 sound/pci/azt3328.c dev_dbg(chip->card->dev, "snd_azf3328_mixer_ac97_read reg_ac97 %u\n", card 717 sound/pci/azt3328.c dev_dbg(chip->card->dev, card 779 sound/pci/azt3328.c rc = snd_ac97_bus(chip->card, 0, &ops, NULL, &bus); card 788 sound/pci/azt3328.c dev_err(chip->card->dev, "AC97 init failed, err %d!\n", rc); card 955 sound/pci/azt3328.c dev_dbg(chip->card->dev, card 994 sound/pci/azt3328.c dev_dbg(chip->card->dev, card 1059 sound/pci/azt3328.c dev_dbg(chip->card->dev, card 1092 sound/pci/azt3328.c dev_dbg(chip->card->dev, card 1174 sound/pci/azt3328.c struct snd_card *card; card 1179 sound/pci/azt3328.c if (snd_BUG_ON(!chip || !chip->card)) card 1182 sound/pci/azt3328.c card = chip->card; card 1198 sound/pci/azt3328.c if ((err = snd_ctl_add(chip->card, snd_ctl_new1(sw, chip))) < 0) card 1201 sound/pci/azt3328.c snd_component_add(card, "AZF3328 mixer"); card 1202 sound/pci/azt3328.c strcpy(card->mixername, "AZF3328 mixer"); card 1320 sound/pci/azt3328.c dev_dbg(chip->card->dev, card 1329 sound/pci/azt3328.c dev_dbg(chip->card->dev, "codec_enable %d\n", enable); card 1346 sound/pci/azt3328.c dev_dbg(chip->card->dev, card 1416 sound/pci/azt3328.c dev_dbg(chip->card->dev, card 1477 sound/pci/azt3328.c dev_dbg(chip->card->dev, "START PCM %s\n", codec->name); card 1544 sound/pci/azt3328.c dev_dbg(chip->card->dev, "PCM STARTED %s\n", codec->name); card 1547 sound/pci/azt3328.c dev_dbg(chip->card->dev, "PCM RESUME %s\n", codec->name); card 1559 sound/pci/azt3328.c dev_dbg(chip->card->dev, "PCM STOP %s\n", codec->name); card 1595 sound/pci/azt3328.c dev_dbg(chip->card->dev, "PCM STOPPED %s\n", codec->name); card 1598 sound/pci/azt3328.c dev_dbg(chip->card->dev, "PCM SUSPEND %s\n", codec->name); card 1638 sound/pci/azt3328.c dev_dbg(substream->pcm->card->dev, "%08li %s @ 0x%8lx, frames %8ld\n", card 1702 sound/pci/azt3328.c dev_dbg(chip->card->dev, "gameport irq\n"); card 1714 sound/pci/azt3328.c dev_dbg(chip->card->dev, "gameport_open, mode %d\n", mode); card 1737 sound/pci/azt3328.c dev_dbg(chip->card->dev, "gameport_close\n"); card 1802 sound/pci/azt3328.c dev_dbg(chip->card->dev, "cooked_read: axes %d %d %d %d buttons %d\n", card 1815 sound/pci/azt3328.c dev_err(chip->card->dev, "cannot alloc memory for gameport\n"); card 1859 sound/pci/azt3328.c dev_warn(chip->card->dev, "huh, game port IRQ occurred!?\n"); card 1868 sound/pci/azt3328.c dev_dbg(chip->card->dev, card 1899 sound/pci/azt3328.c dev_dbg(chip->card->dev, "%s period done (#%x), @ %x\n", card 1905 sound/pci/azt3328.c dev_warn(chip->card->dev, "irq handler problem!\n"); card 1927 sound/pci/azt3328.c dev_dbg(chip->card->dev, card 1943 sound/pci/azt3328.c dev_dbg(chip->card->dev, "timer IRQ\n"); card 1959 sound/pci/azt3328.c dev_dbg(chip->card->dev, "MPU401 IRQ\n"); card 2121 sound/pci/azt3328.c err = snd_pcm_new(chip->card, "AZF3328 DSP", AZF_PCMDEV_STD, card 2132 sound/pci/azt3328.c strcpy(pcm->name, chip->card->shortname); card 2141 sound/pci/azt3328.c err = snd_pcm_new(chip->card, "AZF3328 I2S OUT", AZF_PCMDEV_I2S_OUT, card 2150 sound/pci/azt3328.c strcpy(pcm->name, chip->card->shortname); card 2186 sound/pci/azt3328.c dev_dbg(chip->card->dev, "delay was too low (%d)!\n", delay); card 2189 sound/pci/azt3328.c dev_dbg(chip->card->dev, "setting timer countdown value %d\n", delay); card 2245 sound/pci/azt3328.c tid.card = chip->card->number; card 2252 sound/pci/azt3328.c err = snd_timer_new(chip->card, "AZF3328", &tid, &timer); card 2328 sound/pci/azt3328.c dev_dbg(chip->card->dev, card 2334 sound/pci/azt3328.c dev_dbg(chip->card->dev, card 2344 sound/pci/azt3328.c dev_dbg(chip->card->dev, card 2348 sound/pci/azt3328.c dev_dbg(chip->card->dev, card 2353 sound/pci/azt3328.c dev_dbg(chip->card->dev, card 2365 sound/pci/azt3328.c dev_dbg(chip->card->dev, card 2370 sound/pci/azt3328.c dev_dbg(chip->card->dev, card 2376 sound/pci/azt3328.c snd_azf3328_create(struct snd_card *card, card 2402 sound/pci/azt3328.c chip->card = card; card 2409 sound/pci/azt3328.c dev_err(card->dev, card 2446 sound/pci/azt3328.c dev_err(card->dev, "unable to grab IRQ %d\n", pci->irq); card 2456 sound/pci/azt3328.c err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops); card 2503 sound/pci/azt3328.c struct snd_card *card; card 2519 sound/pci/azt3328.c 0, &card); card 2523 sound/pci/azt3328.c strcpy(card->driver, "AZF3328"); card 2524 sound/pci/azt3328.c strcpy(card->shortname, "Aztech AZF3328 (PCI168)"); card 2526 sound/pci/azt3328.c err = snd_azf3328_create(card, pci, pci_id->driver_data, &chip); card 2530 sound/pci/azt3328.c card->private_data = chip; card 2535 sound/pci/azt3328.c card, 0, card 2541 sound/pci/azt3328.c dev_err(card->dev, "no MPU-401 device at 0x%lx?\n", card 2555 sound/pci/azt3328.c if (snd_opl3_create(card, chip->opl3_io, chip->opl3_io+2, card 2557 sound/pci/azt3328.c dev_err(card->dev, "no OPL3 device at 0x%lx-0x%lx?\n", card 2571 sound/pci/azt3328.c sprintf(card->longname, "%s at 0x%lx, irq %i", card 2572 sound/pci/azt3328.c card->shortname, chip->ctrl_io, chip->irq); card 2574 sound/pci/azt3328.c err = snd_card_register(card); card 2579 sound/pci/azt3328.c dev_info(card->dev, card 2581 sound/pci/azt3328.c dev_info(card->dev, card 2583 sound/pci/azt3328.c dev_info(card->dev, card 2585 sound/pci/azt3328.c dev_info(card->dev, card 2592 sound/pci/azt3328.c pci_set_drvdata(pci, card); card 2599 sound/pci/azt3328.c dev_err(card->dev, "something failed, exiting\n"); card 2600 sound/pci/azt3328.c snd_card_free(card); card 2621 sound/pci/azt3328.c dev_dbg(chip->card->dev, "suspend: io 0x%04lx: 0x%08x\n", card 2639 sound/pci/azt3328.c dev_dbg(chip->card->dev, card 2682 sound/pci/azt3328.c struct snd_card *card = dev_get_drvdata(dev); card 2683 sound/pci/azt3328.c struct snd_azf3328 *chip = card->private_data; card 2686 sound/pci/azt3328.c snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); card 2709 sound/pci/azt3328.c struct snd_card *card = dev_get_drvdata(dev); card 2710 sound/pci/azt3328.c const struct snd_azf3328 *chip = card->private_data; card 2724 sound/pci/azt3328.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 178 sound/pci/bt87x.c struct snd_card *card; card 282 sound/pci/bt87x.c dev_err(chip->card->dev, card 286 sound/pci/bt87x.c dev_err(chip->card->dev, card 291 sound/pci/bt87x.c dev_err(chip->card->dev, card 293 sound/pci/bt87x.c dev_err(chip->card->dev, card 295 sound/pci/bt87x.c dev_err(chip->card->dev, card 297 sound/pci/bt87x.c dev_err(chip->card->dev, card 318 sound/pci/bt87x.c dev_warn(chip->card->dev, card 321 sound/pci/bt87x.c dev_err(chip->card->dev, card 697 sound/pci/bt87x.c err = snd_pcm_new(chip->card, name, device, 0, 1, &pcm); card 710 sound/pci/bt87x.c static int snd_bt87x_create(struct snd_card *card, card 731 sound/pci/bt87x.c chip->card = card; card 743 sound/pci/bt87x.c dev_err(card->dev, "cannot remap io memory\n"); card 758 sound/pci/bt87x.c dev_err(card->dev, "cannot grab irq %d\n", pci->irq); card 765 sound/pci/bt87x.c err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops); card 864 sound/pci/bt87x.c struct snd_card *card; card 885 sound/pci/bt87x.c 0, &card); card 889 sound/pci/bt87x.c err = snd_bt87x_create(card, pci, &chip); card 909 sound/pci/bt87x.c err = snd_ctl_add(card, snd_ctl_new1( card 913 sound/pci/bt87x.c err = snd_ctl_add(card, snd_ctl_new1( card 917 sound/pci/bt87x.c err = snd_ctl_add(card, snd_ctl_new1( card 922 sound/pci/bt87x.c dev_info(card->dev, "bt87x%d: Using board %d, %sanalog, %sdigital " card 927 sound/pci/bt87x.c strcpy(card->driver, "Bt87x"); card 928 sound/pci/bt87x.c sprintf(card->shortname, "Brooktree Bt%x", pci->device); card 929 sound/pci/bt87x.c sprintf(card->longname, "%s at %#llx, irq %i", card 930 sound/pci/bt87x.c card->shortname, (unsigned long long)pci_resource_start(pci, 0), card 932 sound/pci/bt87x.c strcpy(card->mixername, "Bt87x"); card 934 sound/pci/bt87x.c err = snd_card_register(card); card 938 sound/pci/bt87x.c pci_set_drvdata(pci, card); card 943 sound/pci/bt87x.c snd_card_free(card); card 665 sound/pci/ca0106/ca0106.h struct snd_card *card; card 406 sound/pci/ca0106/ca0106_main.c dev_err(emu->card->dev, "i2c_write: invalid values.\n"); card 445 sound/pci/ca0106/ca0106_main.c dev_err(emu->card->dev, "Writing to ADC failed!\n"); card 519 sound/pci/ca0106/ca0106_main.c dev_dbg(chip->card->dev, "ca0106: unknown channel_id %d\n", card 760 sound/pci/ca0106/ca0106_main.c dev_dbg(emu->card->dev, card 768 sound/pci/ca0106/ca0106_main.c dev_dbg(emu->card->dev, card 771 sound/pci/ca0106/ca0106_main.c dev_dbg(emu->card->dev, card 867 sound/pci/ca0106/ca0106_main.c dev_dbg(emu->card->dev, card 875 sound/pci/ca0106/ca0106_main.c dev_dbg(emu->card->dev, card 878 sound/pci/ca0106/ca0106_main.c dev_dbg(emu->card->dev, card 1063 sound/pci/ca0106/ca0106_main.c dev_warn(emu->card->dev, "ca0106: unstable DMA pointer!\n"); card 1221 sound/pci/ca0106/ca0106_main.c if ((err = snd_ac97_bus(chip->card, 0, &ops, NULL, &pbus)) < 0) card 1356 sound/pci/ca0106/ca0106_main.c err = snd_pcm_new(emu->card, "ca0106", device, 1, 1, &pcm); card 1643 sound/pci/ca0106/ca0106_main.c static int snd_ca0106_create(int dev, struct snd_card *card, card 1661 sound/pci/ca0106/ca0106_main.c dev_err(card->dev, "error to set 32bit mask DMA\n"); card 1672 sound/pci/ca0106/ca0106_main.c chip->card = card; card 1682 sound/pci/ca0106/ca0106_main.c dev_err(card->dev, "cannot allocate the port\n"); card 1689 sound/pci/ca0106/ca0106_main.c dev_err(card->dev, "cannot grab irq\n"); card 1705 sound/pci/ca0106/ca0106_main.c dev_info(card->dev, "Model %04x Rev %08x Serial %08x\n", card 1707 sound/pci/ca0106/ca0106_main.c strcpy(card->driver, "CA0106"); card 1708 sound/pci/ca0106/ca0106_main.c strcpy(card->shortname, "CA0106"); card 1719 sound/pci/ca0106/ca0106_main.c dev_info(card->dev, "Sound card name=%s, " card 1724 sound/pci/ca0106/ca0106_main.c sprintf(card->longname, "%s at 0x%lx irq %i", card 1729 sound/pci/ca0106/ca0106_main.c err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops); card 1762 sound/pci/ca0106/ca0106_main.c return ((struct snd_ca0106 *)dev_id)->card; card 1825 sound/pci/ca0106/ca0106_main.c struct snd_card *card; card 1837 sound/pci/ca0106/ca0106_main.c 0, &card); card 1841 sound/pci/ca0106/ca0106_main.c err = snd_ca0106_create(dev, card, pci, &chip); card 1844 sound/pci/ca0106/ca0106_main.c card->private_data = chip; card 1862 sound/pci/ca0106/ca0106_main.c dev_dbg(card->dev, "probe for MIDI channel A ..."); card 1866 sound/pci/ca0106/ca0106_main.c dev_dbg(card->dev, " done.\n"); card 1872 sound/pci/ca0106/ca0106_main.c err = snd_card_register(card); card 1876 sound/pci/ca0106/ca0106_main.c pci_set_drvdata(pci, card); card 1881 sound/pci/ca0106/ca0106_main.c snd_card_free(card); card 1893 sound/pci/ca0106/ca0106_main.c struct snd_card *card = dev_get_drvdata(dev); card 1894 sound/pci/ca0106/ca0106_main.c struct snd_ca0106 *chip = card->private_data; card 1896 sound/pci/ca0106/ca0106_main.c snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); card 1907 sound/pci/ca0106/ca0106_main.c struct snd_card *card = dev_get_drvdata(dev); card 1908 sound/pci/ca0106/ca0106_main.c struct snd_ca0106 *chip = card->private_data; card 1921 sound/pci/ca0106/ca0106_main.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 700 sound/pci/ca0106/ca0106_mixer.c static int remove_ctl(struct snd_card *card, const char *name) card 706 sound/pci/ca0106/ca0106_mixer.c return snd_ctl_remove_id(card, &id); card 709 sound/pci/ca0106/ca0106_mixer.c static struct snd_kcontrol *ctl_find(struct snd_card *card, const char *name) card 716 sound/pci/ca0106/ca0106_mixer.c return snd_ctl_find_id(card, &sid); card 719 sound/pci/ca0106/ca0106_mixer.c static int rename_ctl(struct snd_card *card, const char *src, const char *dst) card 721 sound/pci/ca0106/ca0106_mixer.c struct snd_kcontrol *kctl = ctl_find(card, src); card 733 sound/pci/ca0106/ca0106_mixer.c _err = snd_ctl_add(card, snd_ctl_new1(&ctls[i], emu)); \ card 764 sound/pci/ca0106/ca0106_mixer.c static void add_slaves(struct snd_card *card, card 768 sound/pci/ca0106/ca0106_mixer.c struct snd_kcontrol *slave = ctl_find(card, *list); card 777 sound/pci/ca0106/ca0106_mixer.c struct snd_card *card = emu->card; card 819 sound/pci/ca0106/ca0106_mixer.c remove_ctl(card, *c); card 821 sound/pci/ca0106/ca0106_mixer.c rename_ctl(card, c[0], c[1]); card 828 sound/pci/ca0106/ca0106_mixer.c err = snd_ctl_add(card, snd_ctl_new1(&snd_ca0106_capture_mic_line_in, emu)); card 830 sound/pci/ca0106/ca0106_mixer.c err = snd_ctl_add(card, snd_ctl_new1(&snd_ca0106_capture_line_in_side_out, emu)); card 841 sound/pci/ca0106/ca0106_mixer.c err = snd_ctl_add(card, snd_ctl_new1(&ctl, emu)); card 852 sound/pci/ca0106/ca0106_mixer.c err = snd_ctl_add(card, vmaster); card 855 sound/pci/ca0106/ca0106_mixer.c add_slaves(card, vmaster, slave_vols); card 862 sound/pci/ca0106/ca0106_mixer.c err = snd_ctl_add(card, vmaster); card 865 sound/pci/ca0106/ca0106_mixer.c add_slaves(card, vmaster, slave_sws); card 868 sound/pci/ca0106/ca0106_mixer.c strcpy(card->mixername, "CA0106"); card 413 sound/pci/ca0106/ca0106_proc.c snd_card_ro_proc_new(emu->card, "iec958", emu, snd_ca0106_proc_iec958); card 414 sound/pci/ca0106/ca0106_proc.c snd_card_rw_proc_new(emu->card, "ca0106_reg32", emu, card 417 sound/pci/ca0106/ca0106_proc.c snd_card_ro_proc_new(emu->card, "ca0106_reg16", emu, card 419 sound/pci/ca0106/ca0106_proc.c snd_card_ro_proc_new(emu->card, "ca0106_reg8", emu, card 421 sound/pci/ca0106/ca0106_proc.c snd_card_rw_proc_new(emu->card, "ca0106_regs1", emu, card 424 sound/pci/ca0106/ca0106_proc.c snd_card_rw_proc_new(emu->card, "ca0106_i2c", emu, NULL, card 426 sound/pci/ca0106/ca0106_proc.c snd_card_ro_proc_new(emu->card, "ca0106_regs2", emu, card 52 sound/pci/ca0106/ca_midi.h int ca_midi_init(void *card, struct snd_ca_midi *midi, int device, char *name); card 446 sound/pci/cmipci.c struct snd_card *card; card 786 sound/pci/cmipci.c dev_dbg(cm->card->dev, "cannot set dac channels\n"); card 840 sound/pci/cmipci.c dev_dbg(cm->card->dev, "functrl1 = %08x\n", val); card 856 sound/pci/cmipci.c dev_dbg(cm->card->dev, "chformat = %08x\n", val); card 894 sound/pci/cmipci.c dev_dbg(cm->card->dev, "functrl0 = %08x\n", cm->ctrl); card 942 sound/pci/cmipci.c dev_err(cm->card->dev, "invalid PCM pointer: %#x\n", rem); card 1146 sound/pci/cmipci.c snd_ctl_notify(cm->card, event, &ctl->id); card 1182 sound/pci/cmipci.c snd_ctl_notify(cm->card, event, &ctl->id); card 1892 sound/pci/cmipci.c err = snd_pcm_new(cm->card, cm->card->driver, device, 1, 1, &pcm); card 1915 sound/pci/cmipci.c err = snd_pcm_new(cm->card, cm->card->driver, device, 1, 0, &pcm); card 1937 sound/pci/cmipci.c err = snd_pcm_new(cm->card, cm->card->driver, device, 1, 1, &pcm); card 2655 sound/pci/cmipci.c struct snd_card *card; card 2661 sound/pci/cmipci.c if (snd_BUG_ON(!cm || !cm->card)) card 2664 sound/pci/cmipci.c card = cm->card; card 2666 sound/pci/cmipci.c strcpy(card->mixername, "CMedia PCI"); card 2678 sound/pci/cmipci.c if ((err = snd_ctl_add(card, snd_ctl_new1(&snd_cmipci_mixers[idx], cm))) < 0) card 2685 sound/pci/cmipci.c err = snd_ctl_add(cm->card, snd_ctl_new1(sw, cm)); card 2690 sound/pci/cmipci.c err = snd_ctl_add(cm->card, snd_ctl_new1(&snd_cmipci_nomulti_switch, cm)); card 2698 sound/pci/cmipci.c err = snd_ctl_add(cm->card, snd_ctl_new1(sw, cm)); card 2703 sound/pci/cmipci.c if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_cmipci_spdif_default, cm))) < 0) card 2706 sound/pci/cmipci.c if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_cmipci_spdif_mask, cm))) < 0) card 2709 sound/pci/cmipci.c if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_cmipci_spdif_stream, cm))) < 0) card 2716 sound/pci/cmipci.c err = snd_ctl_add(cm->card, snd_ctl_new1(sw, cm)); card 2725 sound/pci/cmipci.c err = snd_ctl_add(cm->card, snd_ctl_new1(sw, cm)); card 2737 sound/pci/cmipci.c err = snd_ctl_add(cm->card, card 2749 sound/pci/cmipci.c ctl = snd_ctl_find_id(cm->card, &elem_id); card 2768 sound/pci/cmipci.c snd_iprintf(buffer, "%s\n", cm->card->longname); card 2782 sound/pci/cmipci.c snd_card_ro_proc_new(cm->card, "cmipci", cm, snd_cmipci_proc_read); card 2871 sound/pci/cmipci.c dev_warn(cm->card->dev, "cannot reserve joystick ports\n"); card 2877 sound/pci/cmipci.c dev_err(cm->card->dev, "cannot allocate memory for gameport\n"); card 2954 sound/pci/cmipci.c err = snd_opl3_create(cm->card, iosynth, iosynth + 2, card 2975 sound/pci/cmipci.c if (snd_opl3_create(cm->card, iosynth, iosynth + 2, card 2977 sound/pci/cmipci.c dev_err(cm->card->dev, card 2984 sound/pci/cmipci.c dev_err(cm->card->dev, "cannot create OPL3 hwdep\n"); card 2995 sound/pci/cmipci.c static int snd_cmipci_create(struct snd_card *card, struct pci_dev *pci, card 3027 sound/pci/cmipci.c cm->card = card; card 3034 sound/pci/cmipci.c if ((err = pci_request_regions(pci, card->driver)) < 0) { card 3043 sound/pci/cmipci.c dev_err(card->dev, "unable to grab IRQ %d\n", pci->irq); card 3064 sound/pci/cmipci.c sprintf(cm->card->driver + strlen(cm->card->driver), card 3067 sound/pci/cmipci.c strcpy(cm->card->driver + strlen(cm->card->driver), "-SWIEC"); card 3139 sound/pci/cmipci.c sprintf(card->shortname, "C-Media CMI%d", val); card 3144 sound/pci/cmipci.c sprintf(card->longname, "%s%s at %#lx, irq %i", card 3145 sound/pci/cmipci.c card->shortname, modelstr, cm->iobase, cm->irq); card 3147 sound/pci/cmipci.c if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, cm, &ops)) < 0) { card 3175 sound/pci/cmipci.c dev_err(cm->card->dev, card 3215 sound/pci/cmipci.c if ((err = snd_mpu401_uart_new(card, 0, MPU401_HW_CMIPCI, card 3221 sound/pci/cmipci.c dev_err(cm->card->dev, card 3252 sound/pci/cmipci.c struct snd_card *card; card 3264 sound/pci/cmipci.c 0, &card); card 3271 sound/pci/cmipci.c strcpy(card->driver, "CMI8738"); card 3275 sound/pci/cmipci.c strcpy(card->driver, "CMI8338"); card 3278 sound/pci/cmipci.c strcpy(card->driver, "CMIPCI"); card 3282 sound/pci/cmipci.c err = snd_cmipci_create(card, pci, dev, &cm); card 3286 sound/pci/cmipci.c card->private_data = cm; card 3288 sound/pci/cmipci.c err = snd_card_register(card); card 3292 sound/pci/cmipci.c pci_set_drvdata(pci, card); card 3297 sound/pci/cmipci.c snd_card_free(card); card 3332 sound/pci/cmipci.c struct snd_card *card = dev_get_drvdata(dev); card 3333 sound/pci/cmipci.c struct cmipci *cm = card->private_data; card 3336 sound/pci/cmipci.c snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); card 3351 sound/pci/cmipci.c struct snd_card *card = dev_get_drvdata(dev); card 3352 sound/pci/cmipci.c struct cmipci *cm = card->private_data; card 3367 sound/pci/cmipci.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 452 sound/pci/cs4281.c struct snd_card *card; card 552 sound/pci/cs4281.c dev_err(chip->card->dev, card 613 sound/pci/cs4281.c dev_err(chip->card->dev, card 633 sound/pci/cs4281.c dev_err(chip->card->dev, card 965 sound/pci/cs4281.c err = snd_pcm_new(chip->card, "CS4281", device, 1, 1, &pcm); card 1081 sound/pci/cs4281.c struct snd_card *card = chip->card; card 1089 sound/pci/cs4281.c if ((err = snd_ac97_bus(card, 0, &ops, chip, &chip->ac97_bus)) < 0) card 1103 sound/pci/cs4281.c if ((err = snd_ctl_add(card, snd_ctl_new1(&snd_cs4281_fm_vol, chip))) < 0) card 1105 sound/pci/cs4281.c if ((err = snd_ctl_add(card, snd_ctl_new1(&snd_cs4281_pcm_vol, chip))) < 0) card 1161 sound/pci/cs4281.c snd_card_ro_proc_new(chip->card, "cs4281", chip, snd_cs4281_proc_read); card 1162 sound/pci/cs4281.c if (! snd_card_proc_new(chip->card, "cs4281_BA0", &entry)) { card 1168 sound/pci/cs4281.c if (! snd_card_proc_new(chip->card, "cs4281_BA1", &entry)) { card 1250 sound/pci/cs4281.c dev_err(chip->card->dev, card 1319 sound/pci/cs4281.c static int snd_cs4281_create(struct snd_card *card, card 1340 sound/pci/cs4281.c chip->card = card; card 1345 sound/pci/cs4281.c dev_err(card->dev, "invalid dual_codec option %d\n", dual_codec); card 1367 sound/pci/cs4281.c dev_err(card->dev, "unable to grab IRQ %d\n", pci->irq); card 1379 sound/pci/cs4281.c if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops)) < 0) { card 1407 sound/pci/cs4281.c dev_err(chip->card->dev, card 1419 sound/pci/cs4281.c dev_err(chip->card->dev, card 1424 sound/pci/cs4281.c dev_err(chip->card->dev, card 1487 sound/pci/cs4281.c dev_err(chip->card->dev, "DLLRDY not seen\n"); card 1513 sound/pci/cs4281.c dev_err(chip->card->dev, card 1526 sound/pci/cs4281.c dev_info(chip->card->dev, card 1557 sound/pci/cs4281.c dev_err(chip->card->dev, "never read ISV3 and ISV4 from AC'97\n"); card 1772 sound/pci/cs4281.c if ((err = snd_rawmidi_new(chip->card, "CS4281", device, 1, 1, &rmidi)) < 0) card 1888 sound/pci/cs4281.c struct snd_card *card; card 1901 sound/pci/cs4281.c 0, &card); card 1905 sound/pci/cs4281.c if ((err = snd_cs4281_create(card, pci, &chip, dual_codec[dev])) < 0) { card 1906 sound/pci/cs4281.c snd_card_free(card); card 1909 sound/pci/cs4281.c card->private_data = chip; card 1912 sound/pci/cs4281.c snd_card_free(card); card 1916 sound/pci/cs4281.c snd_card_free(card); card 1920 sound/pci/cs4281.c snd_card_free(card); card 1923 sound/pci/cs4281.c if ((err = snd_opl3_new(card, OPL3_HW_OPL3_CS4281, &opl3)) < 0) { card 1924 sound/pci/cs4281.c snd_card_free(card); card 1931 sound/pci/cs4281.c snd_card_free(card); card 1935 sound/pci/cs4281.c strcpy(card->driver, "CS4281"); card 1936 sound/pci/cs4281.c strcpy(card->shortname, "Cirrus Logic CS4281"); card 1937 sound/pci/cs4281.c sprintf(card->longname, "%s at 0x%lx, irq %d", card 1938 sound/pci/cs4281.c card->shortname, card 1942 sound/pci/cs4281.c if ((err = snd_card_register(card)) < 0) { card 1943 sound/pci/cs4281.c snd_card_free(card); card 1947 sound/pci/cs4281.c pci_set_drvdata(pci, card); card 1982 sound/pci/cs4281.c struct snd_card *card = dev_get_drvdata(dev); card 1983 sound/pci/cs4281.c struct cs4281 *chip = card->private_data; card 1987 sound/pci/cs4281.c snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); card 2023 sound/pci/cs4281.c struct snd_card *card = dev_get_drvdata(dev); card 2024 sound/pci/cs4281.c struct cs4281 *chip = card->private_data; card 2046 sound/pci/cs4281.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 65 sound/pci/cs46xx/cs46xx.c struct snd_card *card; card 77 sound/pci/cs46xx/cs46xx.c 0, &card); card 80 sound/pci/cs46xx/cs46xx.c if ((err = snd_cs46xx_create(card, pci, card 83 sound/pci/cs46xx/cs46xx.c snd_card_free(card); card 86 sound/pci/cs46xx/cs46xx.c card->private_data = chip; card 89 sound/pci/cs46xx/cs46xx.c snd_card_free(card); card 94 sound/pci/cs46xx/cs46xx.c snd_card_free(card); card 98 sound/pci/cs46xx/cs46xx.c snd_card_free(card); card 103 sound/pci/cs46xx/cs46xx.c snd_card_free(card); card 109 sound/pci/cs46xx/cs46xx.c snd_card_free(card); card 115 sound/pci/cs46xx/cs46xx.c snd_card_free(card); card 119 sound/pci/cs46xx/cs46xx.c snd_card_free(card); card 126 sound/pci/cs46xx/cs46xx.c strcpy(card->driver, "CS46xx"); card 127 sound/pci/cs46xx/cs46xx.c strcpy(card->shortname, "Sound Fusion CS46xx"); card 128 sound/pci/cs46xx/cs46xx.c sprintf(card->longname, "%s at 0x%lx/0x%lx, irq %i", card 129 sound/pci/cs46xx/cs46xx.c card->shortname, card 134 sound/pci/cs46xx/cs46xx.c if ((err = snd_card_register(card)) < 0) { card 135 sound/pci/cs46xx/cs46xx.c snd_card_free(card); card 139 sound/pci/cs46xx/cs46xx.c pci_set_drvdata(pci, card); card 1673 sound/pci/cs46xx/cs46xx.h struct snd_card *card; card 1719 sound/pci/cs46xx/cs46xx.h int snd_cs46xx_create(struct snd_card *card, card 104 sound/pci/cs46xx/cs46xx_lib.c dev_warn(chip->card->dev, "ACCTL_VFRM not set 0x%x\n", tmp); card 156 sound/pci/cs46xx/cs46xx_lib.c dev_err(chip->card->dev, card 176 sound/pci/cs46xx/cs46xx_lib.c dev_err(chip->card->dev, card 188 sound/pci/cs46xx/cs46xx_lib.c dev_dbg(chip->card->dev, card 278 sound/pci/cs46xx/cs46xx_lib.c dev_err(chip->card->dev, card 602 sound/pci/cs46xx/cs46xx_lib.c dev_err(chip->card->dev, card 640 sound/pci/cs46xx/cs46xx_lib.c dev_dbg(chip->card->dev, card 690 sound/pci/cs46xx/cs46xx_lib.c dev_err(chip->card->dev, "SPCR_RUNFR never reset\n"); card 1050 sound/pci/cs46xx/cs46xx_lib.c dev_err(chip->card->dev, card 1064 sound/pci/cs46xx/cs46xx_lib.c dev_err(chip->card->dev, card 1114 sound/pci/cs46xx/cs46xx_lib.c dev_dbg(chip->card->dev, card 1532 sound/pci/cs46xx/cs46xx_lib.c dev_dbg(substream->pcm->card->dev, "open front channel\n"); card 1539 sound/pci/cs46xx/cs46xx_lib.c dev_dbg(substream->pcm->card->dev, "open rear channel\n"); card 1545 sound/pci/cs46xx/cs46xx_lib.c dev_dbg(substream->pcm->card->dev, "open center - LFE channel\n"); card 1553 sound/pci/cs46xx/cs46xx_lib.c dev_dbg(chip->card->dev, "open raw iec958 channel\n"); card 1569 sound/pci/cs46xx/cs46xx_lib.c dev_dbg(chip->card->dev, "close raw iec958 channel\n"); card 1773 sound/pci/cs46xx/cs46xx_lib.c if ((err = snd_pcm_new(chip->card, "CS46xx", device, MAX_PLAYBACK_CHANNELS, 1, &pcm)) < 0) card 1799 sound/pci/cs46xx/cs46xx_lib.c if ((err = snd_pcm_new(chip->card, "CS46xx - Rear", device, MAX_PLAYBACK_CHANNELS, 0, &pcm)) < 0) card 1822 sound/pci/cs46xx/cs46xx_lib.c if ((err = snd_pcm_new(chip->card, "CS46xx - Center LFE", device, MAX_PLAYBACK_CHANNELS, 0, &pcm)) < 0) card 1845 sound/pci/cs46xx/cs46xx_lib.c if ((err = snd_pcm_new(chip->card, "CS46xx - IEC958", device, 1, 0, &pcm)) < 0) card 2394 sound/pci/cs46xx/cs46xx_lib.c dev_dbg(ac97->bus->card->dev, "CODEC1 mode %04x\n", 0x0); card 2397 sound/pci/cs46xx/cs46xx_lib.c dev_dbg(ac97->bus->card->dev, "CODEC2 mode %04x\n", 0x3); card 2429 sound/pci/cs46xx/cs46xx_lib.c dev_err(ac97->bus->card->dev, card 2450 sound/pci/cs46xx/cs46xx_lib.c dev_dbg(chip->card->dev, card 2464 sound/pci/cs46xx/cs46xx_lib.c dev_dbg(chip->card->dev, "codec %d detection timeout\n", codec); card 2470 sound/pci/cs46xx/cs46xx_lib.c struct snd_card *card = chip->card; card 2484 sound/pci/cs46xx/cs46xx_lib.c dev_dbg(chip->card->dev, "detecting primary codec\n"); card 2485 sound/pci/cs46xx/cs46xx_lib.c if ((err = snd_ac97_bus(card, 0, &ops, chip, &chip->ac97_bus)) < 0) card 2494 sound/pci/cs46xx/cs46xx_lib.c dev_dbg(chip->card->dev, "detecting secondary codec\n"); card 2506 sound/pci/cs46xx/cs46xx_lib.c if ((err = snd_ctl_add(card, kctl)) < 0) card 2514 sound/pci/cs46xx/cs46xx_lib.c chip->eapd_switch = snd_ctl_find_id(chip->card, &id); card 2520 sound/pci/cs46xx/cs46xx_lib.c err = snd_ctl_add(card, snd_ctl_new1(&snd_cs46xx_front_dup_ctl, chip)); card 2529 sound/pci/cs46xx/cs46xx_lib.c dev_dbg(chip->card->dev, "calling chip->mixer_init(chip);\n"); card 2693 sound/pci/cs46xx/cs46xx_lib.c if ((err = snd_rawmidi_new(chip->card, "CS46XX", device, 1, 1, &rmidi)) < 0) card 2772 sound/pci/cs46xx/cs46xx_lib.c dev_err(chip->card->dev, card 2828 sound/pci/cs46xx/cs46xx_lib.c static int snd_cs46xx_proc_init(struct snd_card *card, struct snd_cs46xx *chip) card 2835 sound/pci/cs46xx/cs46xx_lib.c if (! snd_card_proc_new(card, region->name, &entry)) { card 2844 sound/pci/cs46xx/cs46xx_lib.c cs46xx_dsp_proc_init(card, chip); card 2857 sound/pci/cs46xx/cs46xx_lib.c #define snd_cs46xx_proc_init(card, chip) card 3110 sound/pci/cs46xx/cs46xx_lib.c dev_err(chip->card->dev, card 3112 sound/pci/cs46xx/cs46xx_lib.c dev_err(chip->card->dev, card 3131 sound/pci/cs46xx/cs46xx_lib.c dev_dbg(chip->card->dev, card 3162 sound/pci/cs46xx/cs46xx_lib.c dev_err(chip->card->dev, card 3170 sound/pci/cs46xx/cs46xx_lib.c dev_err(chip->card->dev, "never read ISV3 & ISV4 from AC'97\n"); card 3171 sound/pci/cs46xx/cs46xx_lib.c dev_err(chip->card->dev, card 3173 sound/pci/cs46xx/cs46xx_lib.c dev_err(chip->card->dev, card 3175 sound/pci/cs46xx/cs46xx_lib.c dev_err(chip->card->dev, card 3245 sound/pci/cs46xx/cs46xx_lib.c dev_err(chip->card->dev, "firmware load error [%s]\n", card 3251 sound/pci/cs46xx/cs46xx_lib.c dev_err(chip->card->dev, "image download error [%s]\n", card 3267 sound/pci/cs46xx/cs46xx_lib.c dev_err(chip->card->dev, "image download error\n"); card 3320 sound/pci/cs46xx/cs46xx_lib.c dev_dbg(chip->card->dev, "cs46xx_setup_eapd_slot()+\n"); card 3338 sound/pci/cs46xx/cs46xx_lib.c dev_err(chip->card->dev, card 3380 sound/pci/cs46xx/cs46xx_lib.c dev_dbg(chip->card->dev, "FIFO is busy\n"); card 3401 sound/pci/cs46xx/cs46xx_lib.c dev_dbg(chip->card->dev, card 3462 sound/pci/cs46xx/cs46xx_lib.c snd_ctl_notify(chip->card, SNDRV_CTL_EVENT_MASK_VALUE, card 3492 sound/pci/cs46xx/cs46xx_lib.c dev_dbg(chip->card->dev, "Hercules amplifier ON\n"); card 3499 sound/pci/cs46xx/cs46xx_lib.c dev_dbg(chip->card->dev, "Hercules amplifier OFF\n"); card 3507 sound/pci/cs46xx/cs46xx_lib.c dev_dbg(chip->card->dev, "initializing Voyetra mixer\n"); card 3519 sound/pci/cs46xx/cs46xx_lib.c struct snd_card *card = chip->card; card 3525 sound/pci/cs46xx/cs46xx_lib.c dev_dbg(chip->card->dev, "initializing Hercules mixer\n"); card 3535 sound/pci/cs46xx/cs46xx_lib.c if ((err = snd_ctl_add(card, kctl)) < 0) { card 3536 sound/pci/cs46xx/cs46xx_lib.c dev_err(card->dev, card 3764 sound/pci/cs46xx/cs46xx_lib.c struct snd_card *card = dev_get_drvdata(dev); card 3765 sound/pci/cs46xx/cs46xx_lib.c struct snd_cs46xx *chip = card->private_data; card 3768 sound/pci/cs46xx/cs46xx_lib.c snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); card 3792 sound/pci/cs46xx/cs46xx_lib.c struct snd_card *card = dev_get_drvdata(dev); card 3793 sound/pci/cs46xx/cs46xx_lib.c struct snd_cs46xx *chip = card->private_data; card 3852 sound/pci/cs46xx/cs46xx_lib.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 3863 sound/pci/cs46xx/cs46xx_lib.c int snd_cs46xx_create(struct snd_card *card, card 3892 sound/pci/cs46xx/cs46xx_lib.c chip->card = card; card 3899 sound/pci/cs46xx/cs46xx_lib.c dev_err(chip->card->dev, card 3937 sound/pci/cs46xx/cs46xx_lib.c dev_dbg(chip->card->dev, "hack for %s enabled\n", card 3951 sound/pci/cs46xx/cs46xx_lib.c dev_info(chip->card->dev, card 3957 sound/pci/cs46xx/cs46xx_lib.c dev_info(chip->card->dev, card 3976 sound/pci/cs46xx/cs46xx_lib.c dev_err(chip->card->dev, card 3984 sound/pci/cs46xx/cs46xx_lib.c dev_err(chip->card->dev, card 3993 sound/pci/cs46xx/cs46xx_lib.c dev_err(chip->card->dev, "unable to grab IRQ %d\n", pci->irq); card 4013 sound/pci/cs46xx/cs46xx_lib.c if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops)) < 0) { card 4018 sound/pci/cs46xx/cs46xx_lib.c snd_cs46xx_proc_init(card, chip); card 84 sound/pci/cs46xx/cs46xx_lib.h int cs46xx_dsp_proc_init (struct snd_card *card, struct snd_cs46xx *chip); card 87 sound/pci/cs46xx/cs46xx_lib.h #define cs46xx_dsp_proc_init(card, chip) card 75 sound/pci/cs46xx/dsp_spos.c dev_dbg(chip->card->dev, card 82 sound/pci/cs46xx/dsp_spos.c dev_dbg(chip->card->dev, card 95 sound/pci/cs46xx/dsp_spos.c dev_dbg(chip->card->dev, card 108 sound/pci/cs46xx/dsp_spos.c dev_dbg(chip->card->dev, card 153 sound/pci/cs46xx/dsp_spos.c dev_err(chip->card->dev, card 174 sound/pci/cs46xx/dsp_spos.c dev_dbg(chip->card->dev, card 192 sound/pci/cs46xx/dsp_spos.c dev_err(chip->card->dev, "dsp_spos: symbol table is full\n"); card 199 sound/pci/cs46xx/dsp_spos.c dev_err(chip->card->dev, card 309 sound/pci/cs46xx/dsp_spos.c dev_dbg(chip->card->dev, card 317 sound/pci/cs46xx/dsp_spos.c dev_dbg(chip->card->dev, card 321 sound/pci/cs46xx/dsp_spos.c dev_err(chip->card->dev, card 334 sound/pci/cs46xx/dsp_spos.c dev_dbg(chip->card->dev, card 342 sound/pci/cs46xx/dsp_spos.c dev_dbg(chip->card->dev, card 347 sound/pci/cs46xx/dsp_spos.c dev_err(chip->card->dev, card 362 sound/pci/cs46xx/dsp_spos.c dev_err(chip->card->dev, card 367 sound/pci/cs46xx/dsp_spos.c dev_dbg(chip->card->dev, card 371 sound/pci/cs46xx/dsp_spos.c dev_dbg(chip->card->dev, "dsp_spos: clearing parameter area\n"); card 381 sound/pci/cs46xx/dsp_spos.c dev_dbg(chip->card->dev, "dsp_spos: clearing sample area\n"); card 391 sound/pci/cs46xx/dsp_spos.c dev_dbg(chip->card->dev, "dsp_spos: clearing code area\n"); card 396 sound/pci/cs46xx/dsp_spos.c dev_dbg(chip->card->dev, card 400 sound/pci/cs46xx/dsp_spos.c dev_err(chip->card->dev, card 413 sound/pci/cs46xx/dsp_spos.c dev_err(chip->card->dev, card 420 sound/pci/cs46xx/dsp_spos.c dev_dbg(chip->card->dev, card 427 sound/pci/cs46xx/dsp_spos.c dev_err(chip->card->dev, card 462 sound/pci/cs46xx/dsp_spos.c dev_err(chip->card->dev, "dsp_spos: symbol <%s> type %02x not found\n", card 781 sound/pci/cs46xx/dsp_spos.c int cs46xx_dsp_proc_init (struct snd_card *card, struct snd_cs46xx *chip) card 787 sound/pci/cs46xx/dsp_spos.c ins->snd_card = card; card 789 sound/pci/cs46xx/dsp_spos.c entry = snd_info_create_card_entry(card, "dsp", card->proc_root); card 797 sound/pci/cs46xx/dsp_spos.c entry = snd_info_create_card_entry(card, "spos_symbols", card 803 sound/pci/cs46xx/dsp_spos.c entry = snd_info_create_card_entry(card, "spos_modules", card 809 sound/pci/cs46xx/dsp_spos.c entry = snd_info_create_card_entry(card, "parameter", card 815 sound/pci/cs46xx/dsp_spos.c entry = snd_info_create_card_entry(card, "sample", card 821 sound/pci/cs46xx/dsp_spos.c entry = snd_info_create_card_entry(card, "task_tree", card 827 sound/pci/cs46xx/dsp_spos.c entry = snd_info_create_card_entry(card, "scb_info", card 875 sound/pci/cs46xx/dsp_spos.c dev_dbg(chip->card->dev, "addr %p, val %08x\n", card 889 sound/pci/cs46xx/dsp_spos.c dev_dbg(chip->card->dev, "addr %p, val %08x\n", card 917 sound/pci/cs46xx/dsp_spos.c dev_err(chip->card->dev, card 949 sound/pci/cs46xx/dsp_spos.c dev_err(chip->card->dev, card 990 sound/pci/cs46xx/dsp_spos.c dev_err(chip->card->dev, "dsp_spos: failed to map SCB\n"); card 1011 sound/pci/cs46xx/dsp_spos.c dev_err(chip->card->dev, "dsp_spos: failed to map TASK\n"); card 1064 sound/pci/cs46xx/dsp_spos.c dev_err(chip->card->dev, card 1071 sound/pci/cs46xx/dsp_spos.c dev_err(chip->card->dev, card 1078 sound/pci/cs46xx/dsp_spos.c dev_err(chip->card->dev, card 1085 sound/pci/cs46xx/dsp_spos.c dev_err(chip->card->dev, card 1092 sound/pci/cs46xx/dsp_spos.c dev_err(chip->card->dev, card 1440 sound/pci/cs46xx/dsp_spos.c dev_err(chip->card->dev, "dsp_spos: failed to setup SCB's in DSP\n"); card 1455 sound/pci/cs46xx/dsp_spos.c dev_err(chip->card->dev, card 1461 sound/pci/cs46xx/dsp_spos.c dev_err(chip->card->dev, card 1468 sound/pci/cs46xx/dsp_spos.c dev_err(chip->card->dev, card 1850 sound/pci/cs46xx/dsp_spos.c dev_err(chip->card->dev, card 221 sound/pci/cs46xx/dsp_spos_scb_lib.c dev_dbg(chip->card->dev, card 285 sound/pci/cs46xx/dsp_spos_scb_lib.c dev_dbg(chip->card->dev, "dsp_spos: creating SCB <%s>\n", name); card 300 sound/pci/cs46xx/dsp_spos_scb_lib.c dev_dbg(chip->card->dev, card 303 sound/pci/cs46xx/dsp_spos_scb_lib.c dev_dbg(chip->card->dev, card 306 sound/pci/cs46xx/dsp_spos_scb_lib.c dev_dbg(chip->card->dev, card 354 sound/pci/cs46xx/dsp_spos_scb_lib.c dev_err(chip->card->dev, card 569 sound/pci/cs46xx/dsp_spos_scb_lib.c dev_err(chip->card->dev, card 600 sound/pci/cs46xx/dsp_spos_scb_lib.c dev_dbg(chip->card->dev, "dsp_spos: setting %s rate to %u\n", card 659 sound/pci/cs46xx/dsp_spos_scb_lib.c dev_err(chip->card->dev, card 1255 sound/pci/cs46xx/dsp_spos_scb_lib.c dev_dbg(chip->card->dev, "IEC958 pass through\n"); card 1289 sound/pci/cs46xx/dsp_spos_scb_lib.c dev_err(chip->card->dev, "dsp_spos: no free PCM channel\n"); card 1295 sound/pci/cs46xx/dsp_spos_scb_lib.c dev_err(chip->card->dev, card 1322 sound/pci/cs46xx/dsp_spos_scb_lib.c dev_dbg(chip->card->dev, card 1335 sound/pci/cs46xx/dsp_spos_scb_lib.c dev_err(chip->card->dev, card 1348 sound/pci/cs46xx/dsp_spos_scb_lib.c dev_dbg(chip->card->dev, "dsp_spos: creating PCM \"%s\" (%d)\n", card 1362 sound/pci/cs46xx/dsp_spos_scb_lib.c dev_err(chip->card->dev, card 1413 sound/pci/cs46xx/dsp_spos_scb_lib.c dev_dbg(chip->card->dev, card 1452 sound/pci/cs46xx/dsp_spos_scb_lib.c dev_dbg(chip->card->dev, card 54 sound/pci/cs5530.c struct snd_card *card; card 96 sound/pci/cs5530.c static int snd_cs5530_create(struct snd_card *card, card 122 sound/pci/cs5530.c chip->card = card; card 154 sound/pci/cs5530.c dev_info(card->dev, "XpressAudio at 0x%lx\n", sb_base); card 156 sound/pci/cs5530.c dev_err(card->dev, "Could not find XpressAudio!\n"); card 162 sound/pci/cs5530.c dev_info(card->dev, "MPU at 0x300\n"); card 164 sound/pci/cs5530.c dev_info(card->dev, "MPU at 0x330\n"); card 176 sound/pci/cs5530.c dev_err(card->dev, "No 16bit DMA enabled\n"); card 188 sound/pci/cs5530.c dev_err(card->dev, "No 8bit DMA enabled\n"); card 202 sound/pci/cs5530.c dev_err(card->dev, "SoundBlaster IRQ not set\n"); card 207 sound/pci/cs5530.c dev_info(card->dev, "IRQ: %d DMA8: %d DMA16: %d\n", irq, dma8, dma16); card 209 sound/pci/cs5530.c err = snd_sbdsp_create(card, sb_base, irq, snd_sb16dsp_interrupt, dma8, card 212 sound/pci/cs5530.c dev_err(card->dev, "Could not create SoundBlaster\n"); card 219 sound/pci/cs5530.c dev_err(card->dev, "Could not create PCM\n"); card 226 sound/pci/cs5530.c dev_err(card->dev, "Could not create Mixer\n"); card 231 sound/pci/cs5530.c err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops); card 245 sound/pci/cs5530.c struct snd_card *card; card 257 sound/pci/cs5530.c 0, &card); card 262 sound/pci/cs5530.c err = snd_cs5530_create(card, pci, &chip); card 264 sound/pci/cs5530.c snd_card_free(card); card 268 sound/pci/cs5530.c strcpy(card->driver, "CS5530"); card 269 sound/pci/cs5530.c strcpy(card->shortname, "CS5530 Audio"); card 270 sound/pci/cs5530.c sprintf(card->longname, "%s at 0x%lx", card->shortname, chip->pci_base); card 272 sound/pci/cs5530.c err = snd_card_register(card); card 274 sound/pci/cs5530.c snd_card_free(card); card 277 sound/pci/cs5530.c pci_set_drvdata(pci, card); card 73 sound/pci/cs5535audio/cs5535audio.c dev_err(cs5535au->card->dev, card 99 sound/pci/cs5535audio/cs5535audio.c dev_err(cs5535au->card->dev, card 137 sound/pci/cs5535audio/cs5535audio.c struct snd_card *card = cs5535au->card; card 146 sound/pci/cs5535audio/cs5535audio.c if ((err = snd_ac97_bus(card, 0, &ops, NULL, &pbus)) < 0) card 156 sound/pci/cs5535audio/cs5535audio.c olpc_prequirks(card, &ac97); card 159 sound/pci/cs5535audio/cs5535audio.c dev_err(card->dev, "mixer failed\n"); card 165 sound/pci/cs5535audio/cs5535audio.c err = olpc_quirks(card, cs5535au->ac97); card 167 sound/pci/cs5535audio/cs5535audio.c dev_err(card->dev, "olpc quirks failed\n"); card 183 sound/pci/cs5535audio/cs5535audio.c dev_err(cs5535au->card->dev, card 228 sound/pci/cs5535audio/cs5535audio.c dev_err(cs5535au->card->dev, card 258 sound/pci/cs5535audio/cs5535audio.c static int snd_cs5535audio_create(struct snd_card *card, card 275 sound/pci/cs5535audio/cs5535audio.c dev_warn(card->dev, "unable to get 32bit dma\n"); card 287 sound/pci/cs5535audio/cs5535audio.c cs5535au->card = card; card 300 sound/pci/cs5535audio/cs5535audio.c dev_err(card->dev, "unable to grab IRQ %d\n", pci->irq); card 308 sound/pci/cs5535audio/cs5535audio.c if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, card 328 sound/pci/cs5535audio/cs5535audio.c struct snd_card *card; card 340 sound/pci/cs5535audio/cs5535audio.c 0, &card); card 344 sound/pci/cs5535audio/cs5535audio.c if ((err = snd_cs5535audio_create(card, pci, &cs5535au)) < 0) card 347 sound/pci/cs5535audio/cs5535audio.c card->private_data = cs5535au; card 355 sound/pci/cs5535audio/cs5535audio.c strcpy(card->driver, DRIVER_NAME); card 357 sound/pci/cs5535audio/cs5535audio.c strcpy(card->shortname, "CS5535 Audio"); card 358 sound/pci/cs5535audio/cs5535audio.c sprintf(card->longname, "%s %s at 0x%lx, irq %i", card 359 sound/pci/cs5535audio/cs5535audio.c card->shortname, card->driver, card 362 sound/pci/cs5535audio/cs5535audio.c if ((err = snd_card_register(card)) < 0) card 365 sound/pci/cs5535audio/cs5535audio.c pci_set_drvdata(pci, card); card 370 sound/pci/cs5535audio/cs5535audio.c snd_card_free(card); card 86 sound/pci/cs5535audio/cs5535audio.h struct snd_card *card; card 101 sound/pci/cs5535audio/cs5535audio.h void olpc_prequirks(struct snd_card *card, card 103 sound/pci/cs5535audio/cs5535audio.h int olpc_quirks(struct snd_card *card, struct snd_ac97 *ac97); card 124 sound/pci/cs5535audio/cs5535audio.h static inline void olpc_prequirks(struct snd_card *card, card 126 sound/pci/cs5535audio/cs5535audio.h static inline int olpc_quirks(struct snd_card *card, struct snd_ac97 *ac97) card 35 sound/pci/cs5535audio/cs5535audio_olpc.c dev_err(ac97->bus->card->dev, card 58 sound/pci/cs5535audio/cs5535audio_olpc.c dev_err(ac97->bus->card->dev, "setting MIC Bias - %d\n", err); card 133 sound/pci/cs5535audio/cs5535audio_olpc.c void olpc_prequirks(struct snd_card *card, card 144 sound/pci/cs5535audio/cs5535audio_olpc.c int olpc_quirks(struct snd_card *card, struct snd_ac97 *ac97) card 153 sound/pci/cs5535audio/cs5535audio_olpc.c dev_err(card->dev, "unable to allocate MIC GPIO\n"); card 162 sound/pci/cs5535audio/cs5535audio_olpc.c snd_ctl_remove_id(card, &elem); card 168 sound/pci/cs5535audio/cs5535audio_olpc.c snd_ctl_remove_id(card, &elem); card 172 sound/pci/cs5535audio/cs5535audio_olpc.c err = snd_ctl_add(card, snd_ctl_new1(&olpc_cs5535audio_ctls[i], card 307 sound/pci/cs5535audio/cs5535audio_pcm.c dev_err(cs5535au->card->dev, "unhandled trigger\n"); card 325 sound/pci/cs5535audio/cs5535audio_pcm.c dev_err(cs5535au->card->dev, "curdma=%x < %x bufaddr.\n", card 331 sound/pci/cs5535audio/cs5535audio_pcm.c dev_err(cs5535au->card->dev, "diff=%x >= %x buf_bytes.\n", card 417 sound/pci/cs5535audio/cs5535audio_pcm.c err = snd_pcm_new(cs5535au->card, "CS5535 Audio", 0, 1, 1, &pcm); card 46 sound/pci/cs5535audio/cs5535audio_pm.c struct snd_card *card = dev_get_drvdata(dev); card 47 sound/pci/cs5535audio/cs5535audio_pm.c struct cs5535audio *cs5535au = card->private_data; card 50 sound/pci/cs5535audio/cs5535audio_pm.c snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); card 64 sound/pci/cs5535audio/cs5535audio_pm.c struct snd_card *card = dev_get_drvdata(dev); card 65 sound/pci/cs5535audio/cs5535audio_pm.c struct cs5535audio *cs5535au = card->private_data; card 82 sound/pci/cs5535audio/cs5535audio_pm.c dev_err(cs5535au->card->dev, "Failure getting AC Link ready\n"); card 95 sound/pci/cs5535audio/cs5535audio_pm.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 257 sound/pci/ctxfi/ctamixer.c dev_err(mgr->card->dev, card 314 sound/pci/ctxfi/ctamixer.c amixer_mgr->card = hw->card; card 412 sound/pci/ctxfi/ctamixer.c dev_err(mgr->card->dev, card 469 sound/pci/ctxfi/ctamixer.c sum_mgr->card = hw->card; card 35 sound/pci/ctxfi/ctamixer.h struct snd_card *card; /* pointer to this card */ card 80 sound/pci/ctxfi/ctamixer.h struct snd_card *card; /* pointer to this card */ card 172 sound/pci/ctxfi/ctatc.c struct snd_card *card) card 186 sound/pci/ctxfi/ctatc.c dev_err(card->dev, "not recognized snd format is %d\n", card 270 sound/pci/ctxfi/ctatc.c atc->card)); card 438 sound/pci/ctxfi/ctatc.c dev_dbg(atc->card->dev, card 743 sound/pci/ctxfi/ctatc.c atc->card)); card 813 sound/pci/ctxfi/ctatc.c atc->card)); card 1284 sound/pci/ctxfi/ctatc.c dev_err(atc->card->dev, card 1297 sound/pci/ctxfi/ctatc.c dev_info(atc->card->dev, "chip %s model %s (%04x:%04x) is found\n", card 1317 sound/pci/ctxfi/ctatc.c dev_err(atc->card->dev, card 1334 sound/pci/ctxfi/ctatc.c dev_err(atc->card->dev, "Failed to create hw obj!!!\n"); card 1337 sound/pci/ctxfi/ctatc.c hw->card = atc->card; card 1354 sound/pci/ctxfi/ctatc.c dev_err(atc->card->dev, card 1402 sound/pci/ctxfi/ctatc.c dev_err(atc->card->dev, card 1550 sound/pci/ctxfi/ctatc.c snd_power_change_state(atc->card, SNDRV_CTL_POWER_D3hot); card 1599 sound/pci/ctxfi/ctatc.c dev_err(atc->card->dev, card 1601 sound/pci/ctxfi/ctatc.c snd_card_disconnect(atc->card); card 1609 sound/pci/ctxfi/ctatc.c snd_power_change_state(atc->card, SNDRV_CTL_POWER_D0); card 1666 sound/pci/ctxfi/ctatc.c int ct_atc_create(struct snd_card *card, struct pci_dev *pci, card 1686 sound/pci/ctxfi/ctatc.c atc->card = card; card 1697 sound/pci/ctxfi/ctatc.c dev_err(card->dev, "ctatc: Card not recognised\n"); card 1713 sound/pci/ctxfi/ctatc.c dev_err(card->dev, "Failed to create mixer obj!!!\n"); card 1731 sound/pci/ctxfi/ctatc.c err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, atc, &ops); card 1740 sound/pci/ctxfi/ctatc.c dev_err(card->dev, "Something wrong!!!\n"); card 75 sound/pci/ctxfi/ctatc.h struct snd_card *card; card 151 sound/pci/ctxfi/ctatc.h int ct_atc_create(struct snd_card *card, struct pci_dev *pci, card 537 sound/pci/ctxfi/ctdaio.c dev_err(mgr->card->dev, card 722 sound/pci/ctxfi/ctdaio.c daio_mgr->card = hw->card; card 98 sound/pci/ctxfi/ctdaio.h struct snd_card *card; /* pointer to this card */ card 184 sound/pci/ctxfi/cthardware.h struct snd_card *card; /* pointer to this card */ card 1261 sound/pci/ctxfi/cthw20k1.c dev_err(hw->card->dev, card 1321 sound/pci/ctxfi/cthw20k1.c dev_alert(hw->card->dev, "PLL initialization failed!!!\n"); card 1345 sound/pci/ctxfi/cthw20k1.c dev_alert(hw->card->dev, "Card Auto-init failed!!!\n"); card 1935 sound/pci/ctxfi/cthw20k1.c dev_err(hw->card->dev, card 1180 sound/pci/ctxfi/cthw20k2.c dev_alert(hw->card->dev, card 1240 sound/pci/ctxfi/cthw20k2.c dev_alert(hw->card->dev, card 1346 sound/pci/ctxfi/cthw20k2.c dev_alert(hw->card->dev, card 1371 sound/pci/ctxfi/cthw20k2.c dev_alert(hw->card->dev, "Card Auto-init failed!!!\n"); card 1842 sound/pci/ctxfi/cthw20k2.c dev_alert(hw->card->dev, "Failure to acquire I2C!!!\n"); card 1885 sound/pci/ctxfi/cthw20k2.c dev_alert(hw->card->dev, card 2059 sound/pci/ctxfi/cthw20k2.c dev_err(hw->card->dev, card 488 sound/pci/ctxfi/ctmixer.c snd_ctl_notify(atc->card, SNDRV_CTL_EVENT_MASK_VALUE, card 493 sound/pci/ctxfi/ctmixer.c snd_ctl_notify(atc->card, SNDRV_CTL_EVENT_MASK_VALUE, card 718 sound/pci/ctxfi/ctmixer.c err = snd_ctl_add(mixer->atc->card, kctl); card 853 sound/pci/ctxfi/ctmixer.c dev_err(mixer->atc->card->dev, card 868 sound/pci/ctxfi/ctmixer.c dev_err(mixer->atc->card->dev, card 1222 sound/pci/ctxfi/ctmixer.c strcpy(atc->card->mixername, device_name); card 217 sound/pci/ctxfi/ctpcm.c dev_err(atc->card->dev, card 326 sound/pci/ctxfi/ctpcm.c dev_err(atc->card->dev, card 435 sound/pci/ctxfi/ctpcm.c err = snd_pcm_new(atc->card, "ctxfi", device, card 438 sound/pci/ctxfi/ctpcm.c dev_err(atc->card->dev, "snd_pcm_new failed!! Err=%d\n", card 161 sound/pci/ctxfi/ctresource.c dev_err(((struct hw *)hw)->card->dev, card 167 sound/pci/ctxfi/ctresource.c dev_err(((struct hw *)hw)->card->dev, card 189 sound/pci/ctxfi/ctresource.c dev_err(((struct hw *)rsc->hw)->card->dev, card 232 sound/pci/ctxfi/ctresource.c dev_err(hw->card->dev, card 239 sound/pci/ctxfi/ctresource.c dev_err(hw->card->dev, card 277 sound/pci/ctxfi/ctresource.c dev_err(((struct hw *)mgr->hw)->card->dev, card 430 sound/pci/ctxfi/ctsrc.c dev_err(mgr->card->dev, card 566 sound/pci/ctxfi/ctsrc.c src_mgr->card = hw->card; card 738 sound/pci/ctxfi/ctsrc.c dev_err(mgr->card->dev, card 857 sound/pci/ctxfi/ctsrc.c srcimp_mgr->card = hw->card; card 85 sound/pci/ctxfi/ctsrc.h struct snd_card *card; /* pointer to this card */ card 124 sound/pci/ctxfi/ctsrc.h struct snd_card *card; /* pointer to this card */ card 420 sound/pci/ctxfi/cttimer.c dev_info(atc->card->dev, "Use xfi-native timer\n"); card 425 sound/pci/ctxfi/cttimer.c dev_info(atc->card->dev, "Use system timer\n"); card 37 sound/pci/ctxfi/ctvmem.c dev_err(atc->card->dev, card 134 sound/pci/ctxfi/ctvmem.c dev_err(atc->card->dev, card 60 sound/pci/ctxfi/xfi.c struct snd_card *card; card 72 sound/pci/ctxfi/xfi.c 0, &card); card 76 sound/pci/ctxfi/xfi.c dev_err(card->dev, card 79 sound/pci/ctxfi/xfi.c dev_err(card->dev, card 84 sound/pci/ctxfi/xfi.c dev_err(card->dev, "Invalid multiple value %u!!!\n", card 86 sound/pci/ctxfi/xfi.c dev_err(card->dev, card 90 sound/pci/ctxfi/xfi.c err = ct_atc_create(card, pci, reference_rate, multiple, card 95 sound/pci/ctxfi/xfi.c card->private_data = atc; card 102 sound/pci/ctxfi/xfi.c strcpy(card->driver, "SB-XFi"); card 103 sound/pci/ctxfi/xfi.c strcpy(card->shortname, "Creative X-Fi"); card 104 sound/pci/ctxfi/xfi.c snprintf(card->longname, sizeof(card->longname), "%s %s %s", card 105 sound/pci/ctxfi/xfi.c card->shortname, atc->chip_name, atc->model_name); card 107 sound/pci/ctxfi/xfi.c err = snd_card_register(card); card 111 sound/pci/ctxfi/xfi.c pci_set_drvdata(pci, card); card 117 sound/pci/ctxfi/xfi.c snd_card_free(card); card 129 sound/pci/ctxfi/xfi.c struct snd_card *card = dev_get_drvdata(dev); card 130 sound/pci/ctxfi/xfi.c struct ct_atc *atc = card->private_data; card 137 sound/pci/ctxfi/xfi.c struct snd_card *card = dev_get_drvdata(dev); card 138 sound/pci/ctxfi/xfi.c struct ct_atc *atc = card->private_data; card 40 sound/pci/echoaudio/darla20_dsp.c dev_err(chip->card->dev, card 40 sound/pci/echoaudio/darla24_dsp.c dev_err(chip->card->dev, card 130 sound/pci/echoaudio/darla24_dsp.c dev_err(chip->card->dev, card 139 sound/pci/echoaudio/darla24_dsp.c dev_dbg(chip->card->dev, card 53 sound/pci/echoaudio/echo3g_dsp.c dev_err(chip->card->dev, card 39 sound/pci/echoaudio/echoaudio.c dev_dbg(chip->card->dev, card 47 sound/pci/echoaudio/echoaudio.c dev_dbg(chip->card->dev, card 52 sound/pci/echoaudio/echoaudio.c dev_err(chip->card->dev, card 67 sound/pci/echoaudio/echoaudio.c dev_dbg(chip->card->dev, "firmware not released (kept in cache)\n"); card 83 sound/pci/echoaudio/echoaudio.c dev_dbg(chip->card->dev, "release_firmware(%d)\n", i); card 279 sound/pci/echoaudio/echoaudio.c dev_dbg(chip->card->dev, "max_channels=%d\n", max_channels); card 329 sound/pci/echoaudio/echoaudio.c dev_err(chip->card->dev, "s-g list allocation failed\n"); card 359 sound/pci/echoaudio/echoaudio.c dev_dbg(chip->card->dev, "pcm_analog_in_open cs=%d oc=%d r=%d\n", card 394 sound/pci/echoaudio/echoaudio.c dev_dbg(chip->card->dev, "pcm_analog_out_open cs=%d oc=%d r=%d\n", card 499 sound/pci/echoaudio/echoaudio.c dev_dbg(chip->card->dev, "pcm_close oc=%d cs=%d rs=%d\n", oc, card 505 sound/pci/echoaudio/echoaudio.c dev_dbg(chip->card->dev, "pcm_close2 oc=%d cs=%d rs=%d\n", oc, card 530 sound/pci/echoaudio/echoaudio.c dev_dbg(chip->card->dev, "hwp_ie free(%d)\n", pipe->index); card 539 sound/pci/echoaudio/echoaudio.c dev_err(chip->card->dev, "allocate_pipes(%d) err=%d\n", card 544 sound/pci/echoaudio/echoaudio.c dev_dbg(chip->card->dev, "allocate_pipes()=%d\n", pipe_index); card 546 sound/pci/echoaudio/echoaudio.c dev_dbg(chip->card->dev, card 553 sound/pci/echoaudio/echoaudio.c dev_err(chip->card->dev, "malloc_pages err=%d\n", err); card 667 sound/pci/echoaudio/echoaudio.c dev_dbg(chip->card->dev, "pcm_hw_free(%d)\n", pipe->index); card 687 sound/pci/echoaudio/echoaudio.c dev_dbg(chip->card->dev, "Prepare rate=%d format=%d channels=%d\n", card 709 sound/pci/echoaudio/echoaudio.c dev_err(chip->card->dev, card 903 sound/pci/echoaudio/echoaudio.c if ((err = snd_pcm_new(chip->card, "PCM", 0, num_pipes_out(chip), card 908 sound/pci/echoaudio/echoaudio.c strcpy(pcm->name, chip->card->shortname); card 916 sound/pci/echoaudio/echoaudio.c if ((err = snd_pcm_new(chip->card, "Digital PCM", 1, 0, card 921 sound/pci/echoaudio/echoaudio.c strcpy(pcm->name, chip->card->shortname); card 935 sound/pci/echoaudio/echoaudio.c if ((err = snd_pcm_new(chip->card, "Analog PCM", 0, card 941 sound/pci/echoaudio/echoaudio.c strcpy(pcm->name, chip->card->shortname); card 949 sound/pci/echoaudio/echoaudio.c if ((err = snd_pcm_new(chip->card, "Digital PCM", 1, card 955 sound/pci/echoaudio/echoaudio.c strcpy(pcm->name, chip->card->shortname); card 1453 sound/pci/echoaudio/echoaudio.c snd_ctl_notify(chip->card, card 1456 sound/pci/echoaudio/echoaudio.c dev_dbg(chip->card->dev, card 1584 sound/pci/echoaudio/echoaudio.c dev_dbg(chip->card->dev, card 1842 sound/pci/echoaudio/echoaudio.c dev_dbg(chip->card->dev, "rawmidi_iread=%d\n", st); card 1888 sound/pci/echoaudio/echoaudio.c static int snd_echo_create(struct snd_card *card, card 1914 sound/pci/echoaudio/echoaudio.c dev_dbg(card->dev, "chip=%p\n", chip); card 1916 sound/pci/echoaudio/echoaudio.c chip->card = card; card 1937 sound/pci/echoaudio/echoaudio.c dev_err(chip->card->dev, "cannot get memory region\n"); card 1944 sound/pci/echoaudio/echoaudio.c dev_err(chip->card->dev, "ioremap failed\n"); card 1951 sound/pci/echoaudio/echoaudio.c dev_err(chip->card->dev, "cannot grab irq\n"); card 1956 sound/pci/echoaudio/echoaudio.c dev_dbg(card->dev, "pci=%p irq=%d subdev=%04x Init hardware...\n", card 1964 sound/pci/echoaudio/echoaudio.c dev_err(chip->card->dev, "cannot allocate the comm page\n"); card 1975 sound/pci/echoaudio/echoaudio.c dev_err(card->dev, "init_hw err=%d\n", err); card 1980 sound/pci/echoaudio/echoaudio.c if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops)) < 0) { card 1996 sound/pci/echoaudio/echoaudio.c struct snd_card *card; card 2010 sound/pci/echoaudio/echoaudio.c 0, &card); card 2015 sound/pci/echoaudio/echoaudio.c if ((err = snd_echo_create(card, pci, &chip)) < 0) { card 2016 sound/pci/echoaudio/echoaudio.c snd_card_free(card); card 2020 sound/pci/echoaudio/echoaudio.c strcpy(card->driver, "Echo_" ECHOCARD_NAME); card 2021 sound/pci/echoaudio/echoaudio.c strcpy(card->shortname, chip->card_name); card 2027 sound/pci/echoaudio/echoaudio.c sprintf(card->longname, "%s rev.%d (DSP%s) at 0x%lx irq %i", card 2028 sound/pci/echoaudio/echoaudio.c card->shortname, pci_id->subdevice & 0x000f, dsp, card 2032 sound/pci/echoaudio/echoaudio.c dev_err(chip->card->dev, "new pcm error %d\n", err); card 2033 sound/pci/echoaudio/echoaudio.c snd_card_free(card); card 2039 sound/pci/echoaudio/echoaudio.c if ((err = snd_echo_midi_create(card, chip)) < 0) { card 2040 sound/pci/echoaudio/echoaudio.c dev_err(chip->card->dev, "new midi error %d\n", err); card 2041 sound/pci/echoaudio/echoaudio.c snd_card_free(card); card 2049 sound/pci/echoaudio/echoaudio.c if ((err = snd_ctl_add(chip->card, snd_ctl_new1(&snd_echo_vmixer, chip))) < 0) card 2052 sound/pci/echoaudio/echoaudio.c err = snd_ctl_add(chip->card, card 2058 sound/pci/echoaudio/echoaudio.c err = snd_ctl_add(chip->card, card 2065 sound/pci/echoaudio/echoaudio.c if ((err = snd_ctl_add(chip->card, snd_ctl_new1(&snd_echo_line_input_gain, chip))) < 0) card 2071 sound/pci/echoaudio/echoaudio.c if ((err = snd_ctl_add(chip->card, snd_ctl_new1(&snd_echo_intput_nominal_level, chip))) < 0) card 2076 sound/pci/echoaudio/echoaudio.c if ((err = snd_ctl_add(chip->card, snd_ctl_new1(&snd_echo_output_nominal_level, chip))) < 0) card 2080 sound/pci/echoaudio/echoaudio.c if ((err = snd_ctl_add(chip->card, snd_ctl_new1(&snd_echo_vumeters_switch, chip))) < 0) card 2083 sound/pci/echoaudio/echoaudio.c if ((err = snd_ctl_add(chip->card, snd_ctl_new1(&snd_echo_vumeters, chip))) < 0) card 2088 sound/pci/echoaudio/echoaudio.c if ((err = snd_ctl_add(chip->card, snd_ctl_new1(&snd_echo_monitor_mixer, chip))) < 0) card 2093 sound/pci/echoaudio/echoaudio.c if ((err = snd_ctl_add(chip->card, snd_ctl_new1(&snd_echo_automute_switch, chip))) < 0) card 2097 sound/pci/echoaudio/echoaudio.c if ((err = snd_ctl_add(chip->card, snd_ctl_new1(&snd_echo_channels_info, chip))) < 0) card 2107 sound/pci/echoaudio/echoaudio.c if ((err = snd_ctl_add(chip->card, snd_ctl_new1(&snd_echo_digital_mode_switch, chip))) < 0) card 2120 sound/pci/echoaudio/echoaudio.c if ((err = snd_ctl_add(chip->card, chip->clock_src_ctl)) < 0) card 2126 sound/pci/echoaudio/echoaudio.c if ((err = snd_ctl_add(chip->card, snd_ctl_new1(&snd_echo_spdif_mode_switch, chip))) < 0) card 2132 sound/pci/echoaudio/echoaudio.c if ((err = snd_ctl_add(chip->card, snd_ctl_new1(&snd_echo_phantom_power_switch, chip))) < 0) card 2136 sound/pci/echoaudio/echoaudio.c err = snd_card_register(card); card 2139 sound/pci/echoaudio/echoaudio.c dev_info(card->dev, "Card registered: %s\n", card->longname); card 2146 sound/pci/echoaudio/echoaudio.c dev_err(card->dev, "new control error %d\n", err); card 2147 sound/pci/echoaudio/echoaudio.c snd_card_free(card); card 2227 sound/pci/echoaudio/echoaudio.c dev_err(chip->card->dev, "cannot grab irq\n"); card 2257 sound/pci/echoaudio/echoaudio.c snd_card_free(chip->card); card 342 sound/pci/echoaudio/echoaudio.h struct snd_card *card; card 448 sound/pci/echoaudio/echoaudio.h static int snd_echo_midi_create(struct snd_card *card, card 54 sound/pci/echoaudio/echoaudio_3g.c dev_dbg(chip->card->dev, "box_status=%x\n", box_status); card 81 sound/pci/echoaudio/echoaudio_3g.c dev_dbg(chip->card->dev, card 95 sound/pci/echoaudio/echoaudio_3g.c dev_dbg(chip->card->dev, "WriteControlReg: not written, no change\n"); card 264 sound/pci/echoaudio/echoaudio_3g.c dev_warn(chip->card->dev, card 319 sound/pci/echoaudio/echoaudio_3g.c dev_dbg(chip->card->dev, card 366 sound/pci/echoaudio/echoaudio_3g.c dev_err(chip->card->dev, card 395 sound/pci/echoaudio/echoaudio_3g.c dev_err(chip->card->dev, card 431 sound/pci/echoaudio/echoaudio_3g.c dev_dbg(chip->card->dev, "set_digital_mode(%d)\n", chip->digital_mode); card 56 sound/pci/echoaudio/echoaudio_dsp.c dev_err(chip->card->dev, "wait_handshake(): Timeout waiting for DSP\n"); card 83 sound/pci/echoaudio/echoaudio_dsp.c dev_err(chip->card->dev, "timeout on send_vector\n"); card 107 sound/pci/echoaudio/echoaudio_dsp.c dev_dbg(chip->card->dev, "write_dsp: Set bad_board to true\n"); card 130 sound/pci/echoaudio/echoaudio_dsp.c dev_err(chip->card->dev, "read_dsp: Set bad_board to true\n"); card 152 sound/pci/echoaudio/echoaudio_dsp.c dev_err(chip->card->dev, card 157 sound/pci/echoaudio/echoaudio_dsp.c dev_dbg(chip->card->dev, card 189 sound/pci/echoaudio/echoaudio_dsp.c dev_warn(chip->card->dev, "Firmware not found !\n"); card 213 sound/pci/echoaudio/echoaudio_dsp.c dev_err(chip->card->dev, "failed on write_dsp\n"); card 244 sound/pci/echoaudio/echoaudio_dsp.c dev_dbg(chip->card->dev, card 252 sound/pci/echoaudio/echoaudio_dsp.c dev_warn(chip->card->dev, "Firmware not found !\n"); card 287 sound/pci/echoaudio/echoaudio_dsp.c dev_err(chip->card->dev, card 293 sound/pci/echoaudio/echoaudio_dsp.c dev_err(chip->card->dev, card 303 sound/pci/echoaudio/echoaudio_dsp.c dev_err(chip->card->dev, card 319 sound/pci/echoaudio/echoaudio_dsp.c dev_err(chip->card->dev, "Resident loader failed to set HF5\n"); card 323 sound/pci/echoaudio/echoaudio_dsp.c dev_dbg(chip->card->dev, "Resident loader successfully installed\n"); card 341 sound/pci/echoaudio/echoaudio_dsp.c dev_warn(chip->card->dev, "DSP is already loaded!\n"); card 348 sound/pci/echoaudio/echoaudio_dsp.c dev_dbg(chip->card->dev, "load_dsp: Set bad_board to true\n"); card 358 sound/pci/echoaudio/echoaudio_dsp.c dev_err(chip->card->dev, card 374 sound/pci/echoaudio/echoaudio_dsp.c dev_err(chip->card->dev, card 412 sound/pci/echoaudio/echoaudio_dsp.c dev_err(chip->card->dev, card 417 sound/pci/echoaudio/echoaudio_dsp.c dev_err(chip->card->dev, card 422 sound/pci/echoaudio/echoaudio_dsp.c dev_err(chip->card->dev, card 430 sound/pci/echoaudio/echoaudio_dsp.c dev_err(chip->card->dev, card 438 sound/pci/echoaudio/echoaudio_dsp.c dev_err(chip->card->dev, card 452 sound/pci/echoaudio/echoaudio_dsp.c dev_err(chip->card->dev, card 458 sound/pci/echoaudio/echoaudio_dsp.c dev_err(chip->card->dev, card 468 sound/pci/echoaudio/echoaudio_dsp.c dev_err(chip->card->dev, card 480 sound/pci/echoaudio/echoaudio_dsp.c dev_err(chip->card->dev, card 850 sound/pci/echoaudio/echoaudio_dsp.c dev_dbg(chip->card->dev, card 881 sound/pci/echoaudio/echoaudio_dsp.c dev_err(chip->card->dev, "start_transport: No pipes to start!\n"); card 907 sound/pci/echoaudio/echoaudio_dsp.c dev_warn(chip->card->dev, "pause_transport: No pipes to stop!\n"); card 933 sound/pci/echoaudio/echoaudio_dsp.c dev_warn(chip->card->dev, "stop_transport: No pipes to stop!\n"); card 977 sound/pci/echoaudio/echoaudio_dsp.c dev_err(chip->card->dev, card 1062 sound/pci/echoaudio/echoaudio_dsp.c dev_dbg(chip->card->dev, card 1071 sound/pci/echoaudio/echoaudio_dsp.c dev_err(chip->card->dev, card 1140 sound/pci/echoaudio/echoaudio_dsp.c dev_err(chip->card->dev, "SGlist: too many fragments\n"); card 49 sound/pci/echoaudio/echoaudio_gml.c dev_err(chip->card->dev, card 74 sound/pci/echoaudio/echoaudio_gml.c dev_dbg(chip->card->dev, "write_control_reg: 0x%x\n", value); card 97 sound/pci/echoaudio/echoaudio_gml.c dev_dbg(chip->card->dev, "set_input_auto_mute %d\n", automute); card 200 sound/pci/echoaudio/echoaudio_gml.c dev_dbg(chip->card->dev, "set_professional_spdif to %s\n", card 44 sound/pci/echoaudio/gina20_dsp.c dev_err(chip->card->dev, card 48 sound/pci/echoaudio/gina24_dsp.c dev_err(chip->card->dev, card 172 sound/pci/echoaudio/gina24_dsp.c dev_warn(chip->card->dev, card 218 sound/pci/echoaudio/gina24_dsp.c dev_err(chip->card->dev, card 227 sound/pci/echoaudio/gina24_dsp.c dev_dbg(chip->card->dev, "set_sample_rate: %d clock %d\n", rate, clock); card 271 sound/pci/echoaudio/gina24_dsp.c dev_err(chip->card->dev, card 301 sound/pci/echoaudio/gina24_dsp.c dev_err(chip->card->dev, card 342 sound/pci/echoaudio/gina24_dsp.c dev_dbg(chip->card->dev, card 45 sound/pci/echoaudio/indigo_dsp.c dev_err(chip->card->dev, card 111 sound/pci/echoaudio/indigo_dsp.c dev_err(chip->card->dev, card 150 sound/pci/echoaudio/indigo_dsp.c dev_dbg(chip->card->dev, card 64 sound/pci/echoaudio/indigo_express_dsp.c dev_dbg(chip->card->dev, card 93 sound/pci/echoaudio/indigo_express_dsp.c dev_dbg(chip->card->dev, card 45 sound/pci/echoaudio/indigodj_dsp.c dev_err(chip->card->dev, card 111 sound/pci/echoaudio/indigodj_dsp.c dev_err(chip->card->dev, card 150 sound/pci/echoaudio/indigodj_dsp.c dev_dbg(chip->card->dev, card 43 sound/pci/echoaudio/indigodjx_dsp.c dev_err(chip->card->dev, card 45 sound/pci/echoaudio/indigoio_dsp.c dev_err(chip->card->dev, card 120 sound/pci/echoaudio/indigoio_dsp.c dev_dbg(chip->card->dev, card 43 sound/pci/echoaudio/indigoiox_dsp.c dev_err(chip->card->dev, card 47 sound/pci/echoaudio/layla20_dsp.c dev_err(chip->card->dev, card 123 sound/pci/echoaudio/layla20_dsp.c dev_err(chip->card->dev, card 167 sound/pci/echoaudio/layla20_dsp.c dev_warn(chip->card->dev, card 177 sound/pci/echoaudio/layla20_dsp.c dev_dbg(chip->card->dev, "set_sample_rate(%d)\n", rate); card 207 sound/pci/echoaudio/layla20_dsp.c dev_err(chip->card->dev, card 236 sound/pci/echoaudio/layla20_dsp.c dev_err(chip->card->dev, "set_output_clock wrong clock\n"); card 47 sound/pci/echoaudio/layla24_dsp.c dev_err(chip->card->dev, card 167 sound/pci/echoaudio/layla24_dsp.c dev_warn(chip->card->dev, card 241 sound/pci/echoaudio/layla24_dsp.c dev_dbg(chip->card->dev, card 284 sound/pci/echoaudio/layla24_dsp.c dev_err(chip->card->dev, card 351 sound/pci/echoaudio/layla24_dsp.c dev_err(chip->card->dev, card 392 sound/pci/echoaudio/layla24_dsp.c dev_dbg(chip->card->dev, "set_digital_mode to %d\n", mode); card 48 sound/pci/echoaudio/mia_dsp.c dev_err(chip->card->dev, card 128 sound/pci/echoaudio/mia_dsp.c dev_err(chip->card->dev, card 156 sound/pci/echoaudio/mia_dsp.c dev_dbg(chip->card->dev, "set_input_clock(%d)\n", clock); card 184 sound/pci/echoaudio/mia_dsp.c dev_dbg(chip->card->dev, card 215 sound/pci/echoaudio/mia_dsp.c dev_dbg(chip->card->dev, "set_professional_spdif %d\n", prof); card 39 sound/pci/echoaudio/midi.c dev_dbg(chip->card->dev, "enable_midi_input(%d)\n", enable); card 77 sound/pci/echoaudio/midi.c dev_dbg(chip->card->dev, "write_midi: %d\n", bytes); card 217 sound/pci/echoaudio/midi.c dev_dbg(chip->card->dev, "Try to send %d bytes...\n", bytes); card 220 sound/pci/echoaudio/midi.c dev_err(chip->card->dev, card 226 sound/pci/echoaudio/midi.c dev_dbg(chip->card->dev, "%d bytes sent\n", sent); card 231 sound/pci/echoaudio/midi.c dev_dbg(chip->card->dev, "Full\n"); card 243 sound/pci/echoaudio/midi.c dev_dbg(chip->card->dev, card 256 sound/pci/echoaudio/midi.c dev_dbg(chip->card->dev, "snd_echo_midi_output_trigger(%d)\n", up); card 269 sound/pci/echoaudio/midi.c dev_dbg(chip->card->dev, "Timer removed\n"); card 306 sound/pci/echoaudio/midi.c static int snd_echo_midi_create(struct snd_card *card, card 311 sound/pci/echoaudio/midi.c if ((err = snd_rawmidi_new(card, card->shortname, 0, 1, 1, card 315 sound/pci/echoaudio/midi.c strcpy(chip->rmidi->name, card->shortname); card 48 sound/pci/echoaudio/mona_dsp.c dev_err(chip->card->dev, card 204 sound/pci/echoaudio/mona_dsp.c dev_dbg(chip->card->dev, card 281 sound/pci/echoaudio/mona_dsp.c dev_err(chip->card->dev, card 290 sound/pci/echoaudio/mona_dsp.c dev_dbg(chip->card->dev, card 346 sound/pci/echoaudio/mona_dsp.c dev_dbg(chip->card->dev, "Set Mona clock to ADAT\n"); card 353 sound/pci/echoaudio/mona_dsp.c dev_err(chip->card->dev, card 382 sound/pci/echoaudio/mona_dsp.c dev_err(chip->card->dev, card 424 sound/pci/echoaudio/mona_dsp.c dev_dbg(chip->card->dev, "set_digital_mode to %d\n", mode); card 90 sound/pci/emu10k1/emu10k1.c struct snd_card *card; card 105 sound/pci/emu10k1/emu10k1.c 0, &card); card 112 sound/pci/emu10k1/emu10k1.c if ((err = snd_emu10k1_create(card, pci, extin[dev], extout[dev], card 117 sound/pci/emu10k1/emu10k1.c card->private_data = emu; card 154 sound/pci/emu10k1/emu10k1.c if (snd_seq_device_new(card, 1, SNDRV_SEQ_DEV_ID_EMU10K1_SYNTH, card 157 sound/pci/emu10k1/emu10k1.c dev_warn(emu->card->dev, card 170 sound/pci/emu10k1/emu10k1.c strlcpy(card->driver, emu->card_capabilities->driver, card 171 sound/pci/emu10k1/emu10k1.c sizeof(card->driver)); card 172 sound/pci/emu10k1/emu10k1.c strlcpy(card->shortname, emu->card_capabilities->name, card 173 sound/pci/emu10k1/emu10k1.c sizeof(card->shortname)); card 174 sound/pci/emu10k1/emu10k1.c snprintf(card->longname, sizeof(card->longname), card 176 sound/pci/emu10k1/emu10k1.c card->shortname, emu->revision, emu->serial, emu->port, emu->irq); card 178 sound/pci/emu10k1/emu10k1.c if ((err = snd_card_register(card)) < 0) card 184 sound/pci/emu10k1/emu10k1.c pci_set_drvdata(pci, card); card 189 sound/pci/emu10k1/emu10k1.c snd_card_free(card); card 202 sound/pci/emu10k1/emu10k1.c struct snd_card *card = dev_get_drvdata(dev); card 203 sound/pci/emu10k1/emu10k1.c struct snd_emu10k1 *emu = card->private_data; card 205 sound/pci/emu10k1/emu10k1.c snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); card 224 sound/pci/emu10k1/emu10k1.c struct snd_card *card = dev_get_drvdata(dev); card 225 sound/pci/emu10k1/emu10k1.c struct snd_emu10k1 *emu = card->private_data; card 237 sound/pci/emu10k1/emu10k1.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 205 sound/pci/emu10k1/emu10k1_main.c dev_info(emu->card->dev, "Audigy2 value: Special config.\n"); card 738 sound/pci/emu10k1/emu10k1_main.c if (emu->card->shutdown) card 749 sound/pci/emu10k1/emu10k1_main.c dev_info(emu->card->dev, card 759 sound/pci/emu10k1/emu10k1_main.c dev_info(emu->card->dev, card 763 sound/pci/emu10k1/emu10k1_main.c dev_info(emu->card->dev, card 767 sound/pci/emu10k1/emu10k1_main.c dev_info(emu->card->dev, card 772 sound/pci/emu10k1/emu10k1_main.c dev_info(emu->card->dev, card 776 sound/pci/emu10k1/emu10k1_main.c dev_info(emu->card->dev, "Audio Dock ver: %u.%u\n", tmp, tmp2); card 784 sound/pci/emu10k1/emu10k1_main.c dev_info(emu->card->dev, "emu1010: Audio Dock detached\n"); card 791 sound/pci/emu10k1/emu10k1_main.c if (!emu->card->shutdown) card 833 sound/pci/emu10k1/emu10k1_main.c dev_info(emu->card->dev, "emu1010: Special config.\n"); card 858 sound/pci/emu10k1/emu10k1_main.c dev_dbg(emu->card->dev, "reg1 = 0x%x\n", reg); card 866 sound/pci/emu10k1/emu10k1_main.c dev_dbg(emu->card->dev, "reg2 = 0x%x\n", reg); card 869 sound/pci/emu10k1/emu10k1_main.c dev_info(emu->card->dev, card 873 sound/pci/emu10k1/emu10k1_main.c dev_info(emu->card->dev, "emu1010: EMU_HANA_ID = 0x%x\n", reg); card 877 sound/pci/emu10k1/emu10k1_main.c dev_info(emu->card->dev, "emu1010: Loading Firmware failed\n"); card 885 sound/pci/emu10k1/emu10k1_main.c dev_info(emu->card->dev, card 891 sound/pci/emu10k1/emu10k1_main.c dev_info(emu->card->dev, "emu1010: Hana Firmware loaded\n"); card 894 sound/pci/emu10k1/emu10k1_main.c dev_info(emu->card->dev, "emu1010: Hana version: %u.%u\n", tmp, tmp2); card 899 sound/pci/emu10k1/emu10k1_main.c dev_info(emu->card->dev, "emu1010: Card options = 0x%x\n", reg); card 901 sound/pci/emu10k1/emu10k1_main.c dev_info(emu->card->dev, "emu1010: Card options = 0x%x\n", reg); card 940 sound/pci/emu10k1/emu10k1_main.c dev_info(emu->card->dev, "emu1010: Card options3 = 0x%x\n", reg); card 1767 sound/pci/emu10k1/emu10k1_main.c if (!iommu_present(emu->card->dev->bus)) card 1770 sound/pci/emu10k1/emu10k1_main.c domain = iommu_get_domain_for_dev(emu->card->dev); card 1774 sound/pci/emu10k1/emu10k1_main.c dev_notice(emu->card->dev, card 1779 sound/pci/emu10k1/emu10k1_main.c int snd_emu10k1_create(struct snd_card *card, card 1810 sound/pci/emu10k1/emu10k1_main.c emu->card = card; card 1830 sound/pci/emu10k1/emu10k1_main.c dev_dbg(card->dev, card 1851 sound/pci/emu10k1/emu10k1_main.c dev_err(card->dev, "emu10k1: Card not recognised\n"); card 1858 sound/pci/emu10k1/emu10k1_main.c dev_dbg(card->dev, "Sound card name = %s\n", c->name); card 1860 sound/pci/emu10k1/emu10k1_main.c dev_dbg(card->dev, "Sound card name = %s, " card 1865 sound/pci/emu10k1/emu10k1_main.c dev_dbg(card->dev, "Sound card name = %s, " card 1870 sound/pci/emu10k1/emu10k1_main.c if (!*card->id && c->id) card 1871 sound/pci/emu10k1/emu10k1_main.c strlcpy(card->id, c->id, sizeof(card->id)); card 1882 sound/pci/emu10k1/emu10k1_main.c dev_err(card->dev, card 1911 sound/pci/emu10k1/emu10k1_main.c dev_dbg(card->dev, "page table address range is %.8lx:%.8lx\n", card 1929 sound/pci/emu10k1/emu10k1_main.c dev_dbg(card->dev, "silent page range is %.8lx:%.8lx\n", card 2035 sound/pci/emu10k1/emu10k1_main.c err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, emu, &ops); card 40 sound/pci/emu10k1/emu10k1_patch.c dev_dbg(emu->card->dev, card 80 sound/pci/emu10k1/emu10k1_patch.c dev_dbg(emu->card->dev, card 55 sound/pci/emu10k1/emu10k1_synth.c if (snd_emux_register(emux, dev->card, arg->index, "Emu10k1") < 0) { card 216 sound/pci/emu10k1/emu10k1x.c struct snd_card *card; card 358 sound/pci/emu10k1/emu10k1x.c dev_info(emu->card->dev, card 730 sound/pci/emu10k1/emu10k1x.c if ((err = snd_ac97_bus(chip->card, 0, &ops, NULL, &pbus)) < 0) card 846 sound/pci/emu10k1/emu10k1x.c if ((err = snd_pcm_new(emu->card, "emu10k1x", device, 1, capture, &pcm)) < 0) card 887 sound/pci/emu10k1/emu10k1x.c static int snd_emu10k1x_create(struct snd_card *card, card 904 sound/pci/emu10k1/emu10k1x.c dev_err(card->dev, "error to set 28bit mask DMA\n"); card 915 sound/pci/emu10k1/emu10k1x.c chip->card = card; card 925 sound/pci/emu10k1/emu10k1x.c dev_err(card->dev, "cannot allocate the port 0x%lx\n", card 933 sound/pci/emu10k1/emu10k1x.c dev_err(card->dev, "cannot grab irq %d\n", pci->irq); card 950 sound/pci/emu10k1/emu10k1x.c dev_info(card->dev, "Model %04x Rev %08x Serial %08x\n", chip->model, card 999 sound/pci/emu10k1/emu10k1x.c if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, card 1054 sound/pci/emu10k1/emu10k1x.c snd_card_rw_proc_new(emu->card, "emu10k1x_regs", emu, card 1177 sound/pci/emu10k1/emu10k1x.c struct snd_card *card = emu->card; card 1181 sound/pci/emu10k1/emu10k1x.c if ((err = snd_ctl_add(card, kctl))) card 1185 sound/pci/emu10k1/emu10k1x.c if ((err = snd_ctl_add(card, kctl))) card 1189 sound/pci/emu10k1/emu10k1x.c if ((err = snd_ctl_add(card, kctl))) card 1227 sound/pci/emu10k1/emu10k1x.c dev_err(emu->card->dev, card 1303 sound/pci/emu10k1/emu10k1x.c dev_err(emu->card->dev, card 1496 sound/pci/emu10k1/emu10k1x.c if ((err = snd_rawmidi_new(emu->card, name, device, 1, 1, &rmidi)) < 0) card 1535 sound/pci/emu10k1/emu10k1x.c struct snd_card *card; card 1547 sound/pci/emu10k1/emu10k1x.c 0, &card); card 1551 sound/pci/emu10k1/emu10k1x.c if ((err = snd_emu10k1x_create(card, pci, &chip)) < 0) { card 1552 sound/pci/emu10k1/emu10k1x.c snd_card_free(card); card 1557 sound/pci/emu10k1/emu10k1x.c snd_card_free(card); card 1561 sound/pci/emu10k1/emu10k1x.c snd_card_free(card); card 1565 sound/pci/emu10k1/emu10k1x.c snd_card_free(card); card 1570 sound/pci/emu10k1/emu10k1x.c snd_card_free(card); card 1575 sound/pci/emu10k1/emu10k1x.c snd_card_free(card); card 1580 sound/pci/emu10k1/emu10k1x.c snd_card_free(card); card 1586 sound/pci/emu10k1/emu10k1x.c strcpy(card->driver, "EMU10K1X"); card 1587 sound/pci/emu10k1/emu10k1x.c strcpy(card->shortname, "Dell Sound Blaster Live!"); card 1588 sound/pci/emu10k1/emu10k1x.c sprintf(card->longname, "%s at 0x%lx irq %i", card 1589 sound/pci/emu10k1/emu10k1x.c card->shortname, chip->port, chip->irq); card 1591 sound/pci/emu10k1/emu10k1x.c if ((err = snd_card_register(card)) < 0) { card 1592 sound/pci/emu10k1/emu10k1x.c snd_card_free(card); card 1596 sound/pci/emu10k1/emu10k1x.c pci_set_drvdata(pci, card); card 743 sound/pci/emu10k1/emufx.c down_read(&emu->card->controls_rwsem); card 744 sound/pci/emu10k1/emufx.c if (snd_ctl_find_id(emu->card, &gctl->id) != NULL) { card 745 sound/pci/emu10k1/emufx.c up_read(&emu->card->controls_rwsem); card 749 sound/pci/emu10k1/emufx.c up_read(&emu->card->controls_rwsem); card 849 sound/pci/emu10k1/emufx.c if ((err = snd_ctl_add(emu->card, kctl = snd_ctl_new1(&knew, emu))) < 0) { card 862 sound/pci/emu10k1/emufx.c snd_ctl_notify(emu->card, SNDRV_CTL_EVENT_MASK_VALUE | card 882 sound/pci/emu10k1/emufx.c struct snd_card *card = emu->card; card 890 sound/pci/emu10k1/emufx.c down_write(&card->controls_rwsem); card 893 sound/pci/emu10k1/emufx.c snd_ctl_remove(card, ctl->kcontrol); card 894 sound/pci/emu10k1/emufx.c up_write(&card->controls_rwsem); card 1565 sound/pci/emu10k1/emufx.c dev_info(emu->card->dev, "EMU outputs on\n"); card 1589 sound/pci/emu10k1/emufx.c dev_info(emu->card->dev, card 1615 sound/pci/emu10k1/emufx.c dev_info(emu->card->dev, "EMU2 inputs on\n"); card 1623 sound/pci/emu10k1/emufx.c dev_info(emu->card->dev, "EMU inputs on\n"); card 2660 sound/pci/emu10k1/emufx.c if ((err = snd_hwdep_new(emu->card, "FX8010", device, &hw)) < 0) card 1747 sound/pci/emu10k1/emumixer.c static int remove_ctl(struct snd_card *card, const char *name) card 1753 sound/pci/emu10k1/emumixer.c return snd_ctl_remove_id(card, &id); card 1756 sound/pci/emu10k1/emumixer.c static struct snd_kcontrol *ctl_find(struct snd_card *card, const char *name) card 1762 sound/pci/emu10k1/emumixer.c return snd_ctl_find_id(card, &sid); card 1765 sound/pci/emu10k1/emumixer.c static int rename_ctl(struct snd_card *card, const char *src, const char *dst) card 1767 sound/pci/emu10k1/emumixer.c struct snd_kcontrol *kctl = ctl_find(card, src); card 1780 sound/pci/emu10k1/emumixer.c struct snd_card *card = emu->card; card 1906 sound/pci/emu10k1/emumixer.c if ((err = snd_ac97_bus(emu->card, 0, &ops, NULL, &pbus)) < 0) card 1917 sound/pci/emu10k1/emumixer.c dev_info(emu->card->dev, card 1919 sound/pci/emu10k1/emumixer.c dev_info(emu->card->dev, card 1921 sound/pci/emu10k1/emumixer.c snd_device_free(emu->card, pbus); card 1946 sound/pci/emu10k1/emumixer.c remove_ctl(card,"Front Playback Volume"); card 1947 sound/pci/emu10k1/emumixer.c remove_ctl(card,"Front Playback Switch"); card 1955 sound/pci/emu10k1/emumixer.c remove_ctl(card, *c); card 1959 sound/pci/emu10k1/emumixer.c remove_ctl(card, *c); card 1963 sound/pci/emu10k1/emumixer.c strcpy(emu->card->mixername, "EMU APS"); card 1965 sound/pci/emu10k1/emumixer.c strcpy(emu->card->mixername, "SB Audigy"); card 1967 sound/pci/emu10k1/emumixer.c strcpy(emu->card->mixername, "Emu10k1"); card 1980 sound/pci/emu10k1/emumixer.c rename_ctl(card, c[0], c[1]); card 1983 sound/pci/emu10k1/emumixer.c remove_ctl(card, "Center Playback Volume"); card 1984 sound/pci/emu10k1/emumixer.c remove_ctl(card, "LFE Playback Volume"); card 1985 sound/pci/emu10k1/emumixer.c remove_ctl(card, "Wave Center Playback Volume"); card 1986 sound/pci/emu10k1/emumixer.c remove_ctl(card, "Wave LFE Playback Volume"); card 1989 sound/pci/emu10k1/emumixer.c rename_ctl(card, "Line2 Capture Volume", "Line1/Mic Capture Volume"); card 1990 sound/pci/emu10k1/emumixer.c rename_ctl(card, "Analog Mix Capture Volume", "Line2 Capture Volume"); card 1991 sound/pci/emu10k1/emumixer.c rename_ctl(card, "Aux2 Capture Volume", "Line3 Capture Volume"); card 1992 sound/pci/emu10k1/emumixer.c rename_ctl(card, "Mic Capture Volume", "Unknown1 Capture Volume"); card 1997 sound/pci/emu10k1/emumixer.c if ((err = snd_ctl_add(card, kctl))) card 2002 sound/pci/emu10k1/emumixer.c if ((err = snd_ctl_add(card, kctl))) card 2007 sound/pci/emu10k1/emumixer.c if ((err = snd_ctl_add(card, kctl))) card 2013 sound/pci/emu10k1/emumixer.c if ((err = snd_ctl_add(card, kctl))) card 2019 sound/pci/emu10k1/emumixer.c if ((err = snd_ctl_add(card, kctl))) card 2025 sound/pci/emu10k1/emumixer.c if ((err = snd_ctl_add(card, kctl))) card 2076 sound/pci/emu10k1/emumixer.c if ((err = snd_ctl_add(card, kctl))) card 2082 sound/pci/emu10k1/emumixer.c if ((err = snd_ctl_add(card, kctl))) card 2091 sound/pci/emu10k1/emumixer.c if ((err = snd_ctl_add(card, kctl))) card 2096 sound/pci/emu10k1/emumixer.c if ((err = snd_ctl_add(card, kctl))) card 2103 sound/pci/emu10k1/emumixer.c if ((err = snd_ctl_add(card, kctl))) card 2116 sound/pci/emu10k1/emumixer.c err = snd_ctl_add(card, card 2123 sound/pci/emu10k1/emumixer.c err = snd_ctl_add(card, card 2130 sound/pci/emu10k1/emumixer.c err = snd_ctl_add(card, card 2136 sound/pci/emu10k1/emumixer.c err = snd_ctl_add(card, card 2141 sound/pci/emu10k1/emumixer.c err = snd_ctl_add(card, card 2145 sound/pci/emu10k1/emumixer.c err = snd_ctl_add(card, card 2149 sound/pci/emu10k1/emumixer.c err = snd_ctl_add(card, card 2159 sound/pci/emu10k1/emumixer.c err = snd_ctl_add(card, card 2166 sound/pci/emu10k1/emumixer.c err = snd_ctl_add(card, card 2173 sound/pci/emu10k1/emumixer.c err = snd_ctl_add(card, card 2179 sound/pci/emu10k1/emumixer.c err = snd_ctl_add(card, card 2184 sound/pci/emu10k1/emumixer.c err = snd_ctl_add(card, card 2188 sound/pci/emu10k1/emumixer.c err = snd_ctl_add(card, card 2192 sound/pci/emu10k1/emumixer.c err = snd_ctl_add(card, card 2201 sound/pci/emu10k1/emumixer.c err = snd_ctl_add(card, snd_ctl_new1(&snd_audigy_i2c_capture_source, emu)); card 2206 sound/pci/emu10k1/emumixer.c err = snd_ctl_add(card, snd_ctl_new1(&snd_audigy_i2c_volume_ctls[i], emu)); card 2213 sound/pci/emu10k1/emumixer.c err = snd_ctl_add(card, snd_ctl_new1(&snd_audigy_capture_boost, card 52 sound/pci/emu10k1/emumpu401.c dev_err(emu->card->dev, card 131 sound/pci/emu10k1/emumpu401.c dev_err(emu->card->dev, card 322 sound/pci/emu10k1/emumpu401.c if ((err = snd_rawmidi_new(emu->card, name, device, 1, 1, &rmidi)) < 0) card 33 sound/pci/emu10k1/emupcm.c dev_dbg(emu->card->dev, card 824 sound/pci/emu10k1/emupcm.c dev_dbg(emu->card->dev, card 1051 sound/pci/emu10k1/emupcm.c snd_ctl_notify(emu->card, SNDRV_CTL_EVENT_MASK_VALUE | card 1402 sound/pci/emu10k1/emupcm.c if ((err = snd_pcm_new(emu->card, "emu10k1", device, 32, 1, &pcm)) < 0) card 1434 sound/pci/emu10k1/emupcm.c if ((err = snd_pcm_new(emu->card, "emu10k1", device, 1, 0, &pcm)) < 0) card 1471 sound/pci/emu10k1/emupcm.c if ((err = snd_pcm_new(emu->card, "emu10k1 mic", device, 0, 1, &pcm)) < 0) card 1812 sound/pci/emu10k1/emupcm.c if ((err = snd_pcm_new(emu->card, "emu10k1 efx", device, 8, 1, &pcm)) < 0) card 1853 sound/pci/emu10k1/emupcm.c err = snd_ctl_add(emu->card, kctl); card 557 sound/pci/emu10k1/emuproc.c snd_card_ro_proc_new(emu->card, "emu1010_regs", card 560 sound/pci/emu10k1/emuproc.c snd_card_rw_proc_new(emu->card, "io_regs", emu, card 563 sound/pci/emu10k1/emuproc.c snd_card_rw_proc_new(emu->card, "ptr_regs00a", emu, card 566 sound/pci/emu10k1/emuproc.c snd_card_rw_proc_new(emu->card, "ptr_regs00b", emu, card 569 sound/pci/emu10k1/emuproc.c snd_card_rw_proc_new(emu->card, "ptr_regs20a", emu, card 572 sound/pci/emu10k1/emuproc.c snd_card_rw_proc_new(emu->card, "ptr_regs20b", emu, card 575 sound/pci/emu10k1/emuproc.c snd_card_rw_proc_new(emu->card, "ptr_regs20c", emu, card 580 sound/pci/emu10k1/emuproc.c snd_card_ro_proc_new(emu->card, "emu10k1", emu, snd_emu10k1_proc_read); card 583 sound/pci/emu10k1/emuproc.c snd_card_ro_proc_new(emu->card, "spdif-in", emu, card 586 sound/pci/emu10k1/emuproc.c snd_card_ro_proc_new(emu->card, "capture-rates", emu, card 589 sound/pci/emu10k1/emuproc.c snd_card_ro_proc_new(emu->card, "voices", emu, card 592 sound/pci/emu10k1/emuproc.c if (! snd_card_proc_new(emu->card, "fx8010_gpr", &entry)) { card 599 sound/pci/emu10k1/emuproc.c if (! snd_card_proc_new(emu->card, "fx8010_tram_data", &entry)) { card 606 sound/pci/emu10k1/emuproc.c if (! snd_card_proc_new(emu->card, "fx8010_tram_addr", &entry)) { card 613 sound/pci/emu10k1/emuproc.c if (! snd_card_proc_new(emu->card, "fx8010_code", &entry)) { card 620 sound/pci/emu10k1/emuproc.c snd_card_ro_proc_new(emu->card, "fx8010_acode", emu, card 185 sound/pci/emu10k1/io.c dev_err(emu->card->dev, "i2c_write: invalid values.\n"); card 213 sound/pci/emu10k1/io.c dev_warn(emu->card->dev, card 225 sound/pci/emu10k1/io.c dev_err(emu->card->dev, "Writing to ADC failed!\n"); card 226 sound/pci/emu10k1/io.c dev_err(emu->card->dev, "status=0x%x, reg=%d, value=%d\n", card 30 sound/pci/emu10k1/irq.c dev_info(emu->card->dev, card 35 sound/pci/emu10k1/irq.c dev_err(emu->card->dev, "interrupt: PCI error\n"); card 153 sound/pci/emu10k1/irq.c dev_err(emu->card->dev, card 173 sound/pci/emu10k1/irq.c dev_err(emu->card->dev, card 196 sound/pci/emu10k1/irq.c dev_info(emu->card->dev, "emu10k1 irq routine failure\n"); card 48 sound/pci/emu10k1/memory.c dev_dbg(emu->card->dev, "mapped page %d to entry %.8x\n", page, card 60 sound/pci/emu10k1/memory.c dev_dbg(emu->card->dev, "mapped silent page %d to entry %.8x\n", card 143 sound/pci/emu10k1/memory.c dev_err(emu->card->dev, "trying to map zero (reserved) page\n"); card 236 sound/pci/emu10k1/memory.c dev_err_ratelimited(emu->card->dev, card 242 sound/pci/emu10k1/memory.c dev_err_ratelimited(emu->card->dev, "page is not aligned\n"); card 333 sound/pci/emu10k1/memory.c dev_err_ratelimited(emu->card->dev, card 554 sound/pci/emu10k1/memory.c dev_err(emu->card->dev, card 189 sound/pci/emu10k1/p16v.c dev_dbg(emu->card->dev, card 192 sound/pci/emu10k1/p16v.c dev_dbg(emu->card->dev, "open:channel_id=%d, chip=%p, channel=%p\n", card 200 sound/pci/emu10k1/p16v.c runtime->sync.id32[0] = substream->pcm->card->number; card 237 sound/pci/emu10k1/p16v.c dev_dbg(emu->card->dev, card 240 sound/pci/emu10k1/p16v.c dev_dbg(emu->card->dev, "open:channel_id=%d, chip=%p, channel=%p\n", card 327 sound/pci/emu10k1/p16v.c dev_dbg(emu->card->dev, card 334 sound/pci/emu10k1/p16v.c dev_dbg(emu->card->dev, card 337 sound/pci/emu10k1/p16v.c dev_dbg(emu->card->dev, card 569 sound/pci/emu10k1/p16v.c dev_warn(emu->card->dev, "buffer capture limited!\n"); card 628 sound/pci/emu10k1/p16v.c if ((err = snd_pcm_new(emu->card, "p16v", device, 1, capture, &pcm)) < 0) card 844 sound/pci/emu10k1/p16v.c struct snd_card *card = emu->card; card 847 sound/pci/emu10k1/p16v.c if ((err = snd_ctl_add(card, snd_ctl_new1(&p16v_mixer_controls[i], card 72 sound/pci/emu10k1/timer.c tid.card = emu->card->number; card 75 sound/pci/emu10k1/timer.c if ((err = snd_timer_new(emu->card, "EMU10K1", &tid, &timer)) >= 0) { card 404 sound/pci/ens1370.c struct snd_card *card; card 514 sound/pci/ens1370.c dev_err(ensoniq->card->dev, "wait src ready timeout 0x%lx [0x%x]\n", card 576 sound/pci/ens1370.c dev_dbg(ensoniq->card->dev, card 587 sound/pci/ens1370.c dev_err(ensoniq->card->dev, "codec write timeout, status = 0x%x\n", card 638 sound/pci/ens1370.c dev_err(ensoniq->card->dev, "codec write timeout at 0x%lx [0x%x]\n", card 695 sound/pci/ens1370.c dev_err(ensoniq->card->dev, card 705 sound/pci/ens1370.c dev_err(ensoniq->card->dev, "codec read timeout at 0x%lx [0x%x]\n", card 1261 sound/pci/ens1370.c err = snd_pcm_new(ensoniq->card, CHIP_NAME "/1", device, 1, 1, &pcm); card 1295 sound/pci/ens1370.c err = snd_pcm_new(ensoniq->card, CHIP_NAME "/2", device, 1, 0, &pcm); card 1615 sound/pci/ens1370.c struct snd_card *card = ensoniq->card; card 1625 sound/pci/ens1370.c if ((err = snd_ac97_bus(card, 0, &ops, NULL, &pbus)) < 0) card 1652 sound/pci/ens1370.c err = snd_ctl_add(card, kctl); card 1661 sound/pci/ens1370.c err = snd_ctl_add(card, snd_ctl_new1(&snd_ens1373_rear, ensoniq)); card 1667 sound/pci/ens1370.c err = snd_ctl_add(card, snd_ctl_new1(&snd_ens1373_line, card 1736 sound/pci/ens1370.c struct snd_card *card = ensoniq->card; card 1753 sound/pci/ens1370.c if ((err = snd_ak4531_mixer(card, &ak4531, &ensoniq->u.es1370.ak4531)) < 0) card 1756 sound/pci/ens1370.c err = snd_ctl_add(card, snd_ctl_new1(&snd_es1370_controls[idx], ensoniq)); card 1780 sound/pci/ens1370.c dev_err(ensoniq->card->dev, card 1808 sound/pci/ens1370.c dev_warn(ensoniq->card->dev, card 1816 sound/pci/ens1370.c dev_warn(ensoniq->card->dev, card 1826 sound/pci/ens1370.c dev_err(ensoniq->card->dev, card 1891 sound/pci/ens1370.c snd_card_ro_proc_new(ensoniq->card, "audiopci", ensoniq, card 2019 sound/pci/ens1370.c struct snd_card *card = dev_get_drvdata(dev); card 2020 sound/pci/ens1370.c struct ensoniq *ensoniq = card->private_data; card 2022 sound/pci/ens1370.c snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); card 2041 sound/pci/ens1370.c struct snd_card *card = dev_get_drvdata(dev); card 2042 sound/pci/ens1370.c struct ensoniq *ensoniq = card->private_data; card 2051 sound/pci/ens1370.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 2061 sound/pci/ens1370.c static int snd_ensoniq_create(struct snd_card *card, card 2081 sound/pci/ens1370.c ensoniq->card = card; card 2092 sound/pci/ens1370.c dev_err(card->dev, "unable to grab IRQ %d\n", pci->irq); card 2100 sound/pci/ens1370.c dev_err(card->dev, "unable to allocate space for phantom area - dma_bug\n"); card 2128 sound/pci/ens1370.c if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, ensoniq, &ops)) < 0) { card 2319 sound/pci/ens1370.c if ((err = snd_rawmidi_new(ensoniq->card, "ES1370/1", device, 1, 1, &rmidi)) < 0) card 2374 sound/pci/ens1370.c struct snd_card *card; card 2386 sound/pci/ens1370.c 0, &card); card 2390 sound/pci/ens1370.c if ((err = snd_ensoniq_create(card, pci, &ensoniq)) < 0) { card 2391 sound/pci/ens1370.c snd_card_free(card); card 2394 sound/pci/ens1370.c card->private_data = ensoniq; card 2398 sound/pci/ens1370.c snd_card_free(card); card 2404 sound/pci/ens1370.c snd_card_free(card); card 2409 sound/pci/ens1370.c snd_card_free(card); card 2413 sound/pci/ens1370.c snd_card_free(card); card 2417 sound/pci/ens1370.c snd_card_free(card); card 2423 sound/pci/ens1370.c strcpy(card->driver, DRIVER_NAME); card 2425 sound/pci/ens1370.c strcpy(card->shortname, "Ensoniq AudioPCI"); card 2426 sound/pci/ens1370.c sprintf(card->longname, "%s %s at 0x%lx, irq %i", card 2427 sound/pci/ens1370.c card->shortname, card 2428 sound/pci/ens1370.c card->driver, card 2432 sound/pci/ens1370.c if ((err = snd_card_register(card)) < 0) { card 2433 sound/pci/ens1370.c snd_card_free(card); card 2437 sound/pci/ens1370.c pci_set_drvdata(pci, card); card 200 sound/pci/es1938.c struct snd_card *card; card 251 sound/pci/es1938.c dev_dbg(chip->card->dev, "Mixer reg %02x set to %02x\n", reg, val); card 265 sound/pci/es1938.c dev_dbg(chip->card->dev, "Mixer reg %02x now is %02x\n", reg, data); card 284 sound/pci/es1938.c dev_dbg(chip->card->dev, card 305 sound/pci/es1938.c dev_err(chip->card->dev, card 319 sound/pci/es1938.c dev_err(chip->card->dev, "get_byte timeout: status 0x02%x\n", v); card 333 sound/pci/es1938.c dev_dbg(chip->card->dev, "Reg %02x set to %02x\n", reg, val); card 348 sound/pci/es1938.c dev_dbg(chip->card->dev, "Reg %02x now is %02x\n", reg, val); card 369 sound/pci/es1938.c dev_dbg(chip->card->dev, "Reg %02x was %02x, set to %02x\n", card 392 sound/pci/es1938.c dev_err(chip->card->dev, "ESS Solo-1 reset failed\n"); card 1025 sound/pci/es1938.c if ((err = snd_pcm_new(chip->card, "es-1938-1946", device, 2, 1, &pcm)) < 0) card 1458 sound/pci/es1938.c struct snd_card *card = dev_get_drvdata(dev); card 1459 sound/pci/es1938.c struct es1938 *chip = card->private_data; card 1462 sound/pci/es1938.c snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); card 1479 sound/pci/es1938.c struct snd_card *card = dev_get_drvdata(dev); card 1480 sound/pci/es1938.c struct es1938 *chip = card->private_data; card 1487 sound/pci/es1938.c snd_card_disconnect(card); card 1501 sound/pci/es1938.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 1518 sound/pci/es1938.c dev_err(chip->card->dev, card 1568 sound/pci/es1938.c static int snd_es1938_create(struct snd_card *card, card 1586 sound/pci/es1938.c dev_err(card->dev, card 1599 sound/pci/es1938.c chip->card = card; card 1614 sound/pci/es1938.c dev_err(card->dev, "unable to grab IRQ %d\n", pci->irq); card 1619 sound/pci/es1938.c dev_dbg(card->dev, card 1627 sound/pci/es1938.c if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops)) < 0) { card 1647 sound/pci/es1938.c dev_dbg(chip->card->dev, card 1654 sound/pci/es1938.c dev_dbg(chip->card->dev, card 1656 sound/pci/es1938.c dev_dbg(chip->card->dev, card 1659 sound/pci/es1938.c dev_dbg(chip->card->dev, card 1662 sound/pci/es1938.c dev_dbg(chip->card->dev, card 1678 sound/pci/es1938.c dev_dbg(chip->card->dev, card 1680 sound/pci/es1938.c dev_dbg(chip->card->dev, card 1683 sound/pci/es1938.c dev_dbg(chip->card->dev, card 1699 sound/pci/es1938.c snd_ctl_notify(chip->card, SNDRV_CTL_EVENT_MASK_VALUE, &chip->hw_switch->id); card 1700 sound/pci/es1938.c snd_ctl_notify(chip->card, SNDRV_CTL_EVENT_MASK_VALUE, &chip->hw_volume->id); card 1702 sound/pci/es1938.c snd_ctl_notify(chip->card, SNDRV_CTL_EVENT_MASK_VALUE, card 1704 sound/pci/es1938.c snd_ctl_notify(chip->card, SNDRV_CTL_EVENT_MASK_VALUE, card 1729 sound/pci/es1938.c struct snd_card *card; card 1733 sound/pci/es1938.c card = chip->card; card 1735 sound/pci/es1938.c strcpy(card->mixername, "ESS Solo-1"); card 1758 sound/pci/es1938.c if ((err = snd_ctl_add(card, kctl)) < 0) card 1769 sound/pci/es1938.c struct snd_card *card; card 1782 sound/pci/es1938.c 0, &card); card 1788 sound/pci/es1938.c snd_card_free(card); card 1792 sound/pci/es1938.c if ((err = snd_es1938_create(card, pci, &chip)) < 0) { card 1793 sound/pci/es1938.c snd_card_free(card); card 1796 sound/pci/es1938.c card->private_data = chip; card 1798 sound/pci/es1938.c strcpy(card->driver, "ES1938"); card 1799 sound/pci/es1938.c strcpy(card->shortname, "ESS ES1938 (Solo-1)"); card 1800 sound/pci/es1938.c sprintf(card->longname, "%s rev %i, irq %i", card 1801 sound/pci/es1938.c card->shortname, card 1806 sound/pci/es1938.c snd_card_free(card); card 1810 sound/pci/es1938.c snd_card_free(card); card 1813 sound/pci/es1938.c if (snd_opl3_create(card, card 1817 sound/pci/es1938.c dev_err(card->dev, "OPL3 not detected at 0x%lx\n", card 1821 sound/pci/es1938.c snd_card_free(card); card 1825 sound/pci/es1938.c snd_card_free(card); card 1829 sound/pci/es1938.c if (snd_mpu401_uart_new(card, 0, MPU401_HW_MPU401, card 1833 sound/pci/es1938.c dev_err(card->dev, "unable to initialize MPU-401\n"); card 1842 sound/pci/es1938.c if ((err = snd_card_register(card)) < 0) { card 1843 sound/pci/es1938.c snd_card_free(card); card 1847 sound/pci/es1938.c pci_set_drvdata(pci, card); card 506 sound/pci/es1968.c struct snd_card *card; card 621 sound/pci/es1968.c dev_dbg(chip->card->dev, "ac97 timeout\n"); card 633 sound/pci/es1968.c dev_dbg(chip->card->dev, "ac97 timeout\n"); card 676 sound/pci/es1968.c dev_dbg(chip->card->dev, "APU register select failed. (Timeout)\n"); card 688 sound/pci/es1968.c dev_dbg(chip->card->dev, "APU register set probably failed (Timeout)!\n"); card 1431 sound/pci/es1968.c dev_err(chip->card->dev, card 1438 sound/pci/es1968.c dev_err(chip->card->dev, "DMA buffer beyond 256MB.\n"); card 1479 sound/pci/es1968.c dev_dbg(chip->card->dev, card 1707 sound/pci/es1968.c dev_err(chip->card->dev, "Hmm, cannot find empty APU pair!?\n"); card 1711 sound/pci/es1968.c dev_warn(chip->card->dev, card 1770 sound/pci/es1968.c dev_err(chip->card->dev, "?? calculation error..\n"); card 1778 sound/pci/es1968.c dev_info(chip->card->dev, "clocking to %d\n", chip->clock); card 1811 sound/pci/es1968.c if ((err = snd_pcm_new(chip->card, "ESS Maestro", device, card 1923 sound/pci/es1968.c snd_ctl_notify(chip->card, SNDRV_CTL_EVENT_MASK_VALUE, card 2019 sound/pci/es1968.c if ((err = snd_ac97_bus(chip->card, 0, &ops, NULL, &pbus)) < 0) card 2033 sound/pci/es1968.c chip->master_switch = snd_ctl_find_id(chip->card, &elem_id); card 2037 sound/pci/es1968.c chip->master_volume = snd_ctl_find_id(chip->card, &elem_id); card 2098 sound/pci/es1968.c dev_info(chip->card->dev, "trying software reset\n"); card 2372 sound/pci/es1968.c struct snd_card *card = dev_get_drvdata(dev); card 2373 sound/pci/es1968.c struct es1968 *chip = card->private_data; card 2380 sound/pci/es1968.c snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); card 2388 sound/pci/es1968.c struct snd_card *card = dev_get_drvdata(dev); card 2389 sound/pci/es1968.c struct es1968 *chip = card->private_data; card 2423 sound/pci/es1968.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 2451 sound/pci/es1968.c dev_err(chip->card->dev, card 2500 sound/pci/es1968.c input_dev->name = chip->card->driver; card 2655 sound/pci/es1968.c static int snd_es1968_create(struct snd_card *card, card 2679 sound/pci/es1968.c dev_err(card->dev, card 2699 sound/pci/es1968.c chip->card = card; card 2714 sound/pci/es1968.c dev_err(card->dev, "unable to grab IRQ %d\n", pci->irq); card 2744 sound/pci/es1968.c dev_info(card->dev, "not attempting power management.\n"); card 2752 sound/pci/es1968.c if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops)) < 0) { card 2774 sound/pci/es1968.c dev_info(card->dev, "detected TEA575x radio type %s\n", card 2776 sound/pci/es1968.c strlcpy(chip->tea.card, get_tea575x_gpio(chip)->name, card 2777 sound/pci/es1968.c sizeof(chip->tea.card)); card 2796 sound/pci/es1968.c struct snd_card *card; card 2809 sound/pci/es1968.c 0, &card); card 2817 sound/pci/es1968.c if ((err = snd_es1968_create(card, pci, card 2825 sound/pci/es1968.c snd_card_free(card); card 2828 sound/pci/es1968.c card->private_data = chip; card 2832 sound/pci/es1968.c strcpy(card->driver, "ES1978"); card 2833 sound/pci/es1968.c strcpy(card->shortname, "ESS ES1978 (Maestro 2E)"); card 2836 sound/pci/es1968.c strcpy(card->driver, "ES1968"); card 2837 sound/pci/es1968.c strcpy(card->shortname, "ESS ES1968 (Maestro 2)"); card 2840 sound/pci/es1968.c strcpy(card->driver, "ESM1"); card 2841 sound/pci/es1968.c strcpy(card->shortname, "ESS Maestro 1"); card 2846 sound/pci/es1968.c snd_card_free(card); card 2851 sound/pci/es1968.c snd_card_free(card); card 2868 sound/pci/es1968.c if ((err = snd_mpu401_uart_new(card, 0, MPU401_HW_MPU401, card 2873 sound/pci/es1968.c dev_warn(card->dev, "skipping MPU-401 MIDI support..\n"); card 2882 sound/pci/es1968.c dev_warn(card->dev, card 2892 sound/pci/es1968.c sprintf(card->longname, "%s at 0x%lx, irq %i", card 2893 sound/pci/es1968.c card->shortname, chip->io_port, chip->irq); card 2895 sound/pci/es1968.c if ((err = snd_card_register(card)) < 0) { card 2896 sound/pci/es1968.c snd_card_free(card); card 2899 sound/pci/es1968.c pci_set_drvdata(pci, card); card 184 sound/pci/fm801.c struct snd_card *card; card 282 sound/pci/fm801.c dev_err(chip->card->dev, "AC'97 interface is busy (1)\n"); card 293 sound/pci/fm801.c dev_err(chip->card->dev, "AC'97 interface #%d is busy (2)\n", card 305 sound/pci/fm801.c dev_err(chip->card->dev, "AC'97 interface is busy (1)\n"); card 313 sound/pci/fm801.c dev_err(chip->card->dev, "AC'97 interface #%d is busy (2)\n", card 319 sound/pci/fm801.c dev_err(chip->card->dev, card 712 sound/pci/fm801.c if ((err = snd_pcm_new(chip->card, "FM801", device, 1, 1, &pcm)) < 0) card 1046 sound/pci/fm801.c if ((err = snd_ac97_bus(chip->card, 0, &ops, chip, &chip->ac97_bus)) < 0) card 1062 sound/pci/fm801.c err = snd_ctl_add(chip->card, card 1069 sound/pci/fm801.c err = snd_ctl_add(chip->card, card 1196 sound/pci/fm801.c static int snd_fm801_create(struct snd_card *card, card 1215 sound/pci/fm801.c chip->card = card; card 1228 sound/pci/fm801.c dev_info(chip->card->dev, card 1239 sound/pci/fm801.c dev_err(card->dev, "unable to grab IRQ %d\n", pci->irq); card 1249 sound/pci/fm801.c if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops)) < 0) { card 1268 sound/pci/fm801.c dev_err(card->dev, "TEA575x radio not found\n"); card 1279 sound/pci/fm801.c dev_info(card->dev, card 1286 sound/pci/fm801.c dev_err(card->dev, "TEA575x radio not found\n"); card 1293 sound/pci/fm801.c strlcpy(chip->tea.card, get_tea575x_gpio(chip)->name, card 1294 sound/pci/fm801.c sizeof(chip->tea.card)); card 1306 sound/pci/fm801.c struct snd_card *card; card 1319 sound/pci/fm801.c 0, &card); card 1322 sound/pci/fm801.c if ((err = snd_fm801_create(card, pci, tea575x_tuner[dev], radio_nr[dev], &chip)) < 0) { card 1323 sound/pci/fm801.c snd_card_free(card); card 1326 sound/pci/fm801.c card->private_data = chip; card 1328 sound/pci/fm801.c strcpy(card->driver, "FM801"); card 1329 sound/pci/fm801.c strcpy(card->shortname, "ForteMedia FM801-"); card 1330 sound/pci/fm801.c strcat(card->shortname, chip->multichannel ? "AU" : "AS"); card 1331 sound/pci/fm801.c sprintf(card->longname, "%s at 0x%lx, irq %i", card 1332 sound/pci/fm801.c card->shortname, chip->port, chip->irq); card 1338 sound/pci/fm801.c snd_card_free(card); card 1342 sound/pci/fm801.c snd_card_free(card); card 1345 sound/pci/fm801.c if ((err = snd_mpu401_uart_new(card, 0, MPU401_HW_FM801, card 1350 sound/pci/fm801.c snd_card_free(card); card 1353 sound/pci/fm801.c if ((err = snd_opl3_create(card, chip->port + FM801_OPL3_BANK0, card 1356 sound/pci/fm801.c snd_card_free(card); card 1360 sound/pci/fm801.c snd_card_free(card); card 1365 sound/pci/fm801.c if ((err = snd_card_register(card)) < 0) { card 1366 sound/pci/fm801.c snd_card_free(card); card 1369 sound/pci/fm801.c pci_set_drvdata(pci, card); card 1389 sound/pci/fm801.c struct snd_card *card = dev_get_drvdata(dev); card 1390 sound/pci/fm801.c struct fm801 *chip = card->private_data; card 1393 sound/pci/fm801.c snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); card 1410 sound/pci/fm801.c struct snd_card *card = dev_get_drvdata(dev); card 1411 sound/pci/fm801.c struct fm801 *chip = card->private_data; card 1432 sound/pci/fm801.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 213 sound/pci/hda/hda_beep.c "card%d/codec#%d/beep0", codec->card->number, codec->addr); card 235 sound/pci/hda/hda_beep.c input_dev->dev.parent = &codec->card->card_dev; card 248 sound/pci/hda/hda_beep.c err = snd_device_new(codec->card, SNDRV_DEV_JACK, beep, &ops); card 270 sound/pci/hda/hda_beep.c snd_device_free(codec->card, codec->beep); card 70 sound/pci/hda/hda_bind.c if (!*codec->card->mixername || card 72 sound/pci/hda/hda_bind.c snprintf(codec->card->mixername, card 73 sound/pci/hda/hda_bind.c sizeof(codec->card->mixername), "%s %s", card 124 sound/pci/hda/hda_bind.c if (!codec->bus->bus_probing && codec->card->registered) { card 125 sound/pci/hda/hda_bind.c err = snd_card_register(codec->card); card 701 sound/pci/hda/hda_codec.c snd_device_free(pcm->codec->card, pcm->pcm); card 748 sound/pci/hda/hda_codec.c snd_device_disconnect(codec->card, pcm->pcm); card 860 sound/pci/hda/hda_codec.c static int snd_hda_codec_device_init(struct hda_bus *bus, struct snd_card *card, card 867 sound/pci/hda/hda_codec.c dev_dbg(card->dev, "%s: entry\n", __func__); card 878 sound/pci/hda/hda_codec.c sprintf(name, "hdaudioC%dD%d", card->number, codec_addr); card 899 sound/pci/hda/hda_codec.c int snd_hda_codec_new(struct hda_bus *bus, struct snd_card *card, card 904 sound/pci/hda/hda_codec.c ret = snd_hda_codec_device_init(bus, card, codec_addr, codecp); card 908 sound/pci/hda/hda_codec.c return snd_hda_codec_device_new(bus, card, codec_addr, *codecp); card 912 sound/pci/hda/hda_codec.c int snd_hda_codec_device_new(struct hda_bus *bus, struct snd_card *card, card 923 sound/pci/hda/hda_codec.c dev_dbg(card->dev, "%s: entry\n", __func__); card 934 sound/pci/hda/hda_codec.c codec->card = card; card 985 sound/pci/hda/hda_codec.c snd_component_add(card, component); card 987 sound/pci/hda/hda_codec.c err = snd_device_new(card, SNDRV_DEV_CODEC, codec, &dev_ops); card 1598 sound/pci/hda/hda_codec.c return snd_ctl_find_id(codec->card, &id); card 1662 sound/pci/hda/hda_codec.c err = snd_ctl_add(codec->card, kctl); card 1715 sound/pci/hda/hda_codec.c snd_ctl_remove(codec->card, items[i].kctl); card 1728 sound/pci/hda/hda_codec.c struct snd_card *card = bus->card; card 1731 sound/pci/hda/hda_codec.c spin_lock(&card->files_lock); card 1732 sound/pci/hda/hda_codec.c if (card->shutdown) card 1734 sound/pci/hda/hda_codec.c card->shutdown = 1; card 1735 sound/pci/hda/hda_codec.c if (!list_empty(&card->ctl_files)) card 1748 sound/pci/hda/hda_codec.c spin_unlock(&card->files_lock); card 1752 sound/pci/hda/hda_codec.c card->shutdown = 0; card 1754 sound/pci/hda/hda_codec.c spin_unlock(&card->files_lock); card 1765 sound/pci/hda/hda_codec.c struct snd_card *card = bus->card; card 1767 sound/pci/hda/hda_codec.c spin_lock(&card->files_lock); card 1768 sound/pci/hda/hda_codec.c card->shutdown = 0; card 1769 sound/pci/hda/hda_codec.c spin_unlock(&card->files_lock); card 3215 sound/pci/hda/hda_codec.c dev_err(bus->card->dev, "Invalid PCM type %d\n", type); card 3236 sound/pci/hda/hda_codec.c dev_warn(bus->card->dev, "Too many %s devices\n", card 3239 sound/pci/hda/hda_codec.c dev_warn(bus->card->dev, card 177 sound/pci/hda/hda_controller.c dev_err(chip->card->dev, card 245 sound/pci/hda/hda_controller.c if (s->pcm->card != substream->pcm->card) card 258 sound/pci/hda/hda_controller.c if (s->pcm->card != substream->pcm->card) card 409 sound/pci/hda/hda_controller.c dev_err(chip->card->dev, "GTSCC capture Timedout!\n"); card 453 sound/pci/hda/hda_controller.c dev_err_ratelimited(chip->card->dev, card 733 sound/pci/hda/hda_controller.c dev_err(chip->card->dev, "PCM %d already exists\n", card 738 sound/pci/hda/hda_controller.c err = snd_pcm_new(chip->card, cpcm->name, pcm_dev, card 747 sound/pci/hda/hda_controller.c snd_device_free(chip->card, pcm); card 771 sound/pci/hda/hda_controller.c chip->card->dev, card 821 sound/pci/hda/hda_controller.c dev_dbg_ratelimited(chip->card->dev, card 837 sound/pci/hda/hda_controller.c dev_dbg(chip->card->dev, card 847 sound/pci/hda/hda_controller.c dev_warn(chip->card->dev, card 855 sound/pci/hda/hda_controller.c dev_warn(chip->card->dev, card 881 sound/pci/hda/hda_controller.c dev_err(chip->card->dev, card 887 sound/pci/hda/hda_controller.c dev_err(chip->card->dev, card 921 sound/pci/hda/hda_controller.c dev_dbg(chip->card->dev, "get_response timeout: IRS=0x%x\n", card 949 sound/pci/hda/hda_controller.c dev_dbg(chip->card->dev, card 1143 sound/pci/hda/hda_controller.c if (!pm_runtime_active(chip->card->dev)) card 1205 sound/pci/hda/hda_controller.c dev_dbg(chip->card->dev, "codec #%d probed OK\n", addr); card 1227 sound/pci/hda/hda_controller.c err = snd_hdac_bus_init(&bus->core, chip->card->dev, &bus_core_ops); card 1231 sound/pci/hda/hda_controller.c bus->card = chip->card; card 1252 sound/pci/hda/hda_controller.c dev_dbg(chip->card->dev, "Enable sync_write for stable communication\n"); card 1278 sound/pci/hda/hda_controller.c dev_warn(chip->card->dev, card 1298 sound/pci/hda/hda_controller.c err = snd_hda_codec_new(&chip->bus, chip->card, c, &codec); card 1307 sound/pci/hda/hda_controller.c dev_err(chip->card->dev, "no codecs initialized\n"); card 99 sound/pci/hda/hda_controller.h struct snd_card *card; card 21 sound/pci/hda/hda_controller_trace.h __field( int, card ) card 27 sound/pci/hda/hda_controller_trace.h __entry->card = (chip)->card->number; card 32 sound/pci/hda/hda_controller_trace.h TP_printk("[%d:%d] cmd=%d", __entry->card, __entry->idx, __entry->cmd) card 42 sound/pci/hda/hda_controller_trace.h __field( int, card ) card 49 sound/pci/hda/hda_controller_trace.h __entry->card = (chip)->card->number; card 55 sound/pci/hda/hda_controller_trace.h TP_printk("[%d:%d] pos=%u, delay=%u", __entry->card, __entry->idx, __entry->pos, __entry->delay) card 101 sound/pci/hda/hda_hwdep.c err = snd_hwdep_new(codec->card, hwname, codec->addr, &hwdep); card 425 sound/pci/hda/hda_intel.c dev_dbg(chip->card->dev, "Clearing TCSEL\n"); card 433 sound/pci/hda/hda_intel.c dev_dbg(chip->card->dev, "Setting ATI snoop: %d\n", card 442 sound/pci/hda/hda_intel.c dev_dbg(chip->card->dev, "Setting Nvidia snoop: %d\n", card 468 sound/pci/hda/hda_intel.c dev_dbg(chip->card->dev, "SCH snoop: %s\n", card 514 sound/pci/hda/hda_intel.c dev_warn(chip->card->dev, "set audio clock frequency to 6MHz"); card 632 sound/pci/hda/hda_intel.c dev_info(chip->card->dev, card 691 sound/pci/hda/hda_intel.c dev_info(chip->card->dev, card 732 sound/pci/hda/hda_intel.c dev_info(chip->card->dev, card 734 sound/pci/hda/hda_intel.c chip->card->number); card 785 sound/pci/hda/hda_intel.c chip->card->irq_descr, chip)) { card 786 sound/pci/hda/hda_intel.c dev_err(chip->card->dev, card 790 sound/pci/hda/hda_intel.c snd_card_disconnect(chip->card); card 964 sound/pci/hda/hda_intel.c static bool azx_is_pm_ready(struct snd_card *card) card 969 sound/pci/hda/hda_intel.c if (!card) card 971 sound/pci/hda/hda_intel.c chip = card->private_data; card 1018 sound/pci/hda/hda_intel.c struct snd_card *card = dev_get_drvdata(dev); card 1022 sound/pci/hda/hda_intel.c if (!azx_is_pm_ready(card)) card 1025 sound/pci/hda/hda_intel.c chip = card->private_data; card 1027 sound/pci/hda/hda_intel.c snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); card 1043 sound/pci/hda/hda_intel.c struct snd_card *card = dev_get_drvdata(dev); card 1046 sound/pci/hda/hda_intel.c if (!azx_is_pm_ready(card)) card 1049 sound/pci/hda/hda_intel.c chip = card->private_data; card 1056 sound/pci/hda/hda_intel.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 1067 sound/pci/hda/hda_intel.c struct snd_card *card = dev_get_drvdata(dev); card 1068 sound/pci/hda/hda_intel.c struct azx *chip = card->private_data; card 1071 sound/pci/hda/hda_intel.c if (!azx_is_pm_ready(card)) card 1081 sound/pci/hda/hda_intel.c struct snd_card *card = dev_get_drvdata(dev); card 1082 sound/pci/hda/hda_intel.c struct azx *chip = card->private_data; card 1085 sound/pci/hda/hda_intel.c if (!azx_is_pm_ready(card)) card 1096 sound/pci/hda/hda_intel.c struct snd_card *card = dev_get_drvdata(dev); card 1099 sound/pci/hda/hda_intel.c if (!azx_is_pm_ready(card)) card 1101 sound/pci/hda/hda_intel.c chip = card->private_data; card 1116 sound/pci/hda/hda_intel.c struct snd_card *card = dev_get_drvdata(dev); card 1119 sound/pci/hda/hda_intel.c if (!azx_is_pm_ready(card)) card 1121 sound/pci/hda/hda_intel.c chip = card->private_data; card 1136 sound/pci/hda/hda_intel.c struct snd_card *card = dev_get_drvdata(dev); card 1140 sound/pci/hda/hda_intel.c if (!card) card 1143 sound/pci/hda/hda_intel.c chip = card->private_data; card 1184 sound/pci/hda/hda_intel.c struct snd_card *card = pci_get_drvdata(pci); card 1185 sound/pci/hda/hda_intel.c struct azx *chip = card->private_data; card 1201 sound/pci/hda/hda_intel.c dev_info(chip->card->dev, card 1204 sound/pci/hda/hda_intel.c dev_err(chip->card->dev, "initialization error\n"); card 1207 sound/pci/hda/hda_intel.c dev_info(chip->card->dev, "%s via vga_switcheroo\n", card 1214 sound/pci/hda/hda_intel.c pm_runtime_suspend(card->dev); card 1215 sound/pci/hda/hda_intel.c pm_runtime_disable(card->dev); card 1222 sound/pci/hda/hda_intel.c dev_warn(chip->card->dev, card 1227 sound/pci/hda/hda_intel.c pm_runtime_enable(card->dev); card 1238 sound/pci/hda/hda_intel.c struct snd_card *card = pci_get_drvdata(pci); card 1239 sound/pci/hda/hda_intel.c struct azx *chip = card->private_data; card 1274 sound/pci/hda/hda_intel.c struct snd_card *card = pci_get_drvdata(pci); card 1275 sound/pci/hda/hda_intel.c struct azx *chip = card->private_data; card 1288 sound/pci/hda/hda_intel.c dev_info(chip->card->dev, card 1489 sound/pci/hda/hda_intel.c dev_info(chip->card->dev, card 1497 sound/pci/hda/hda_intel.c dev_dbg(chip->card->dev, "Using VIACOMBO position fix\n"); card 1501 sound/pci/hda/hda_intel.c dev_dbg(chip->card->dev, "Using FIFO position fix\n"); card 1505 sound/pci/hda/hda_intel.c dev_dbg(chip->card->dev, "Using LPIB position fix\n"); card 1509 sound/pci/hda/hda_intel.c dev_dbg(chip->card->dev, "Using SKL position fix\n"); card 1576 sound/pci/hda/hda_intel.c dev_info(chip->card->dev, card 1587 sound/pci/hda/hda_intel.c dev_info(chip->card->dev, "codec_mask forced to 0x%x\n", card 1620 sound/pci/hda/hda_intel.c dev_info(chip->card->dev, card 1629 sound/pci/hda/hda_intel.c dev_info(chip->card->dev, "Disabling MSI\n"); card 1640 sound/pci/hda/hda_intel.c dev_info(chip->card->dev, "Force to %s mode by module option\n", card 1665 sound/pci/hda/hda_intel.c dev_info(chip->card->dev, "Force to non-snoop mode\n"); card 1703 sound/pci/hda/hda_intel.c static int azx_create(struct snd_card *card, struct pci_dev *pci, card 1729 sound/pci/hda/hda_intel.c chip->card = card; card 1775 sound/pci/hda/hda_intel.c dev_dbg(chip->card->dev, "Enable delay in RIRB handling\n"); card 1779 sound/pci/hda/hda_intel.c err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops); card 1781 sound/pci/hda/hda_intel.c dev_err(card->dev, "Error creating device [card]!\n"); card 1798 sound/pci/hda/hda_intel.c struct snd_card *card = chip->card; card 1822 sound/pci/hda/hda_intel.c dev_err(card->dev, "ioremap error\n"); card 1844 sound/pci/hda/hda_intel.c dev_dbg(card->dev, "Disabling 64bit MSI\n"); card 1855 sound/pci/hda/hda_intel.c dev_dbg(card->dev, "chipset global capabilities = 0x%x\n", gcap); card 1881 sound/pci/hda/hda_intel.c dev_dbg(card->dev, "Disabling 64bit DMA\n"); card 1937 sound/pci/hda/hda_intel.c dev_warn(chip->card->dev, "number of I/O streams is %d, " card 1960 sound/pci/hda/hda_intel.c dev_err(card->dev, "no codecs found!\n"); card 1967 sound/pci/hda/hda_intel.c strcpy(card->driver, "HDA-Intel"); card 1968 sound/pci/hda/hda_intel.c strlcpy(card->shortname, driver_short_names[chip->driver_type], card 1969 sound/pci/hda/hda_intel.c sizeof(card->shortname)); card 1970 sound/pci/hda/hda_intel.c snprintf(card->longname, sizeof(card->longname), card 1972 sound/pci/hda/hda_intel.c card->shortname, bus->addr, bus->irq); card 1981 sound/pci/hda/hda_intel.c struct snd_card *card = context; card 1982 sound/pci/hda/hda_intel.c struct azx *chip = card->private_data; card 1987 sound/pci/hda/hda_intel.c dev_err(card->dev, "Cannot load firmware, continue without patching\n"); card 2062 sound/pci/hda/hda_intel.c struct snd_card *card; card 2081 sound/pci/hda/hda_intel.c 0, &card); card 2087 sound/pci/hda/hda_intel.c err = azx_create(card, pci, dev, pci_id->driver_data, &chip); card 2090 sound/pci/hda/hda_intel.c card->private_data = chip; card 2104 sound/pci/hda/hda_intel.c pci_set_drvdata(pci, card); card 2108 sound/pci/hda/hda_intel.c dev_err(card->dev, "Error registering vga_switcheroo client\n"); card 2113 sound/pci/hda/hda_intel.c dev_info(card->dev, "VGA controller is disabled\n"); card 2114 sound/pci/hda/hda_intel.c dev_info(card->dev, "Delaying initialization\n"); card 2122 sound/pci/hda/hda_intel.c dev_info(card->dev, "Applying patch firmware '%s'\n", card 2125 sound/pci/hda/hda_intel.c &pci->dev, GFP_KERNEL, card, card 2135 sound/pci/hda/hda_intel.c dev_err(card->dev, "Haswell/Broadwell HDMI/DP must build in CONFIG_SND_HDA_I915\n"); card 2147 sound/pci/hda/hda_intel.c snd_card_free(card); card 2206 sound/pci/hda/hda_intel.c dev_info(chip->card->dev, "device %04x:%04x is on the power_save blacklist, forcing power_save to 0\n", card 2242 sound/pci/hda/hda_intel.c dev_err(chip->card->dev, card 2296 sound/pci/hda/hda_intel.c err = snd_card_register(chip->card); card 2328 sound/pci/hda/hda_intel.c struct snd_card *card = pci_get_drvdata(pci); card 2332 sound/pci/hda/hda_intel.c if (card) { card 2334 sound/pci/hda/hda_intel.c chip = card->private_data; card 2351 sound/pci/hda/hda_intel.c snd_card_free(card); card 2357 sound/pci/hda/hda_intel.c struct snd_card *card = pci_get_drvdata(pci); card 2360 sound/pci/hda/hda_intel.c if (!card) card 2362 sound/pci/hda/hda_intel.c chip = card->private_data; card 134 sound/pci/hda/hda_jack.c snd_device_free(codec->card, jack->jack); card 413 sound/pci/hda/hda_jack.c err = snd_jack_new(codec->card, name, type | buttons, card 910 sound/pci/hda/hda_proc.c return snd_card_ro_proc_new(codec->card, name, codec, print_codec_info); card 145 sound/pci/hda/hda_sysfs.c err = snd_card_register(codec->card); card 140 sound/pci/hda/hda_tegra.c struct snd_card *card = dev_get_drvdata(dev); card 146 sound/pci/hda/hda_tegra.c snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); card 153 sound/pci/hda/hda_tegra.c struct snd_card *card = dev_get_drvdata(dev); card 159 sound/pci/hda/hda_tegra.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 166 sound/pci/hda/hda_tegra.c struct snd_card *card = dev_get_drvdata(dev); card 167 sound/pci/hda/hda_tegra.c struct azx *chip = card->private_data; card 183 sound/pci/hda/hda_tegra.c struct snd_card *card = dev_get_drvdata(dev); card 184 sound/pci/hda/hda_tegra.c struct azx *chip = card->private_data; card 281 sound/pci/hda/hda_tegra.c struct snd_card *card = chip->card; card 292 sound/pci/hda/hda_tegra.c err = devm_request_irq(chip->card->dev, irq_id, azx_interrupt, card 295 sound/pci/hda/hda_tegra.c dev_err(chip->card->dev, card 305 sound/pci/hda/hda_tegra.c dev_dbg(card->dev, "chipset global capabilities = 0x%x\n", gcap); card 324 sound/pci/hda/hda_tegra.c dev_err(card->dev, "failed to initialize streams: %d\n", err); card 330 sound/pci/hda/hda_tegra.c dev_err(card->dev, "failed to allocate stream pages: %d\n", card 340 sound/pci/hda/hda_tegra.c dev_err(card->dev, "no codecs found!\n"); card 345 sound/pci/hda/hda_tegra.c strncpy(card->driver, drv_name, sizeof(card->driver)); card 350 sound/pci/hda/hda_tegra.c if (strlen(sname) > sizeof(card->shortname)) card 351 sound/pci/hda/hda_tegra.c dev_info(card->dev, "truncating shortname for card\n"); card 352 sound/pci/hda/hda_tegra.c strncpy(card->shortname, sname, sizeof(card->shortname)); card 355 sound/pci/hda/hda_tegra.c snprintf(card->longname, sizeof(card->longname), card 357 sound/pci/hda/hda_tegra.c card->shortname, bus->addr, bus->irq); card 368 sound/pci/hda/hda_tegra.c static int hda_tegra_create(struct snd_card *card, card 382 sound/pci/hda/hda_tegra.c chip->card = card; card 403 sound/pci/hda/hda_tegra.c err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops); card 405 sound/pci/hda/hda_tegra.c dev_err(card->dev, "Error creating device\n"); card 422 sound/pci/hda/hda_tegra.c struct snd_card *card; card 434 sound/pci/hda/hda_tegra.c THIS_MODULE, 0, &card); card 444 sound/pci/hda/hda_tegra.c err = hda_tegra_create(card, driver_flags, hda); card 447 sound/pci/hda/hda_tegra.c card->private_data = chip; card 449 sound/pci/hda/hda_tegra.c dev_set_drvdata(&pdev->dev, card); card 460 sound/pci/hda/hda_tegra.c snd_card_free(card); card 485 sound/pci/hda/hda_tegra.c err = snd_card_register(chip->card); card 509 sound/pci/hda/hda_tegra.c struct snd_card *card = dev_get_drvdata(&pdev->dev); card 512 sound/pci/hda/hda_tegra.c if (!card) card 514 sound/pci/hda/hda_tegra.c chip = card->private_data; card 7521 sound/pci/hda/patch_ca0132.c codec->card->dev) != 0) card 7528 sound/pci/hda/patch_ca0132.c codec->card->dev) != 0) card 7543 sound/pci/hda/patch_ca0132.c codec->card->dev) != 0) card 511 sound/pci/hda/patch_hdmi.c err = snd_card_proc_new(codec->card, name, &entry); card 1507 sound/pci/hda/patch_hdmi.c snd_ctl_notify(codec->card, card 2139 sound/pci/hda/patch_hdmi.c err = snd_jack_new(codec->card, name, SND_JACK_AVOUT, &jack, card 2346 sound/pci/hda/patch_hdmi.c snd_device_free(codec->card, card 2527 sound/pci/hda/patch_hdmi.c if (snd_power_get_state(codec->card) != SNDRV_CTL_POWER_D0) card 2733 sound/pci/hda/patch_hdmi.c if (snd_power_get_state(codec->card) != SNDRV_CTL_POWER_D0) card 2090 sound/pci/hda/patch_realtek.c strcpy(codec->card->longname, "HDAudio-Gigabyte-ALC1220DualCodecs"); card 5856 sound/pci/hda/patch_realtek.c strcpy(codec->card->longname, "HDAudio-Lenovo-DualCodecs"); card 126 sound/pci/ice1712/ak4xxx.c ak->card = ice->card; card 1864 sound/pci/ice1712/aureon.c err = snd_ctl_add(ice->card, snd_ctl_new1(&aureon_dac_controls[i], ice)); card 1870 sound/pci/ice1712/aureon.c err = snd_ctl_add(ice->card, snd_ctl_new1(&wm_controls[i], ice)); card 1877 sound/pci/ice1712/aureon.c err = snd_ctl_add(ice->card, snd_ctl_new1(&universe_ac97_controls[i], ice)); card 1884 sound/pci/ice1712/aureon.c err = snd_ctl_add(ice->card, snd_ctl_new1(&ac97_controls[i], ice)); card 1896 sound/pci/ice1712/aureon.c dev_info(ice->card->dev, card 1899 sound/pci/ice1712/aureon.c dev_info(ice->card->dev, card 1905 sound/pci/ice1712/aureon.c err = snd_ctl_add(ice->card, (kctl = snd_ctl_new1(&cs8415_controls[i], ice))); card 400 sound/pci/ice1712/delta.c snd_ctl_notify(ice->card, SNDRV_CTL_EVENT_MASK_VALUE, &ice->spdif.stream_ctl->id); card 414 sound/pci/ice1712/delta.c dev_err(ice->card->dev, card 679 sound/pci/ice1712/delta.c if ((err = snd_i2c_bus_create(ice->card, "ICE1712 GPIO 1", NULL, &ice->i2c)) < 0) { card 680 sound/pci/ice1712/delta.c dev_err(ice->card->dev, "unable to create I2C bus\n"); card 776 sound/pci/ice1712/delta.c err = snd_ctl_add(ice->card, snd_ctl_new1(&snd_ice1712_delta1010_wordclock_select, ice)); card 779 sound/pci/ice1712/delta.c err = snd_ctl_add(ice->card, snd_ctl_new1(&snd_ice1712_delta1010_wordclock_status, ice)); card 784 sound/pci/ice1712/delta.c err = snd_ctl_add(ice->card, snd_ctl_new1(&snd_ice1712_deltadio2496_spdif_in_select, ice)); card 790 sound/pci/ice1712/delta.c err = snd_ctl_add(ice->card, snd_ctl_new1(&snd_ice1712_delta1010lt_wordclock_select, ice)); card 793 sound/pci/ice1712/delta.c err = snd_ctl_add(ice->card, snd_ctl_new1(&snd_ice1712_delta1010lt_wordclock_status, ice)); card 817 sound/pci/ice1712/delta.c err = snd_ctl_add(ice->card, snd_ctl_new1(&snd_ice1712_delta_spdif_in_status, ice)); card 152 sound/pci/ice1712/ews.c dev_err(ice->card->dev, card 164 sound/pci/ice1712/ews.c dev_err(ice->card->dev, "fatal error (ews88mt chip select)\n"); card 326 sound/pci/ice1712/ews.c snd_ctl_notify(ice->card, SNDRV_CTL_EVENT_MASK_VALUE, &ice->spdif.stream_ctl->id); card 445 sound/pci/ice1712/ews.c if ((err = snd_i2c_bus_create(ice->card, "ICE1712 GPIO 1", NULL, &ice->i2c)) < 0) { card 446 sound/pci/ice1712/ews.c dev_err(ice->card->dev, "unable to create I2C bus\n"); card 459 sound/pci/ice1712/ews.c dev_err(ice->card->dev, card 817 sound/pci/ice1712/ews.c dev_err(ice->card->dev, "cannot send pca\n"); card 824 sound/pci/ice1712/ews.c dev_err(ice->card->dev, "cannot read pca\n"); card 977 sound/pci/ice1712/ews.c err = snd_ctl_add(ice->card, snd_ctl_new1(&snd_ice1712_ewx2496_controls[idx], ice)); card 986 sound/pci/ice1712/ews.c err = snd_ctl_add(ice->card, snd_ctl_new1(&snd_ice1712_ews88mt_input_sense, ice)); card 989 sound/pci/ice1712/ews.c err = snd_ctl_add(ice->card, snd_ctl_new1(&snd_ice1712_ews88mt_output_sense, ice)); card 995 sound/pci/ice1712/ews.c err = snd_ctl_add(ice->card, snd_ctl_new1(&snd_ice1712_ews88d_controls[idx], ice)); card 1002 sound/pci/ice1712/ews.c err = snd_ctl_add(ice->card, snd_ctl_new1(&snd_ice1712_6fire_controls[idx], ice)); card 383 sound/pci/ice1712/ice1712.c dev_err(ice->card->dev, "CS8427 initialization failed\n"); card 874 sound/pci/ice1712/ice1712.c err = snd_pcm_new(ice->card, "ICE1712 consumer", device, 1, 1, &pcm); card 889 sound/pci/ice1712/ice1712.c dev_warn(ice->card->dev, card 900 sound/pci/ice1712/ice1712.c err = snd_pcm_new(ice->card, "ICE1712 consumer (DS)", device, 6, 0, &pcm); card 1244 sound/pci/ice1712/ice1712.c err = snd_pcm_new(ice->card, "ICE1712 multi", device, 1, 1, &pcm); card 1433 sound/pci/ice1712/ice1712.c struct snd_card *card = ice->card; card 1439 sound/pci/ice1712/ice1712.c err = snd_ctl_add(card, snd_ctl_new1(&snd_ice1712_multi_playback_ctrls[idx], ice)); card 1447 sound/pci/ice1712/ice1712.c err = snd_ctl_add(card, snd_ctl_new1(&tmp, ice)); card 1452 sound/pci/ice1712/ice1712.c err = snd_ctl_add(card, snd_ctl_new1(&snd_ice1712_multi_capture_spdif_switch, ice)); card 1459 sound/pci/ice1712/ice1712.c err = snd_ctl_add(card, snd_ctl_new1(&tmp, ice)); card 1464 sound/pci/ice1712/ice1712.c err = snd_ctl_add(card, snd_ctl_new1(&snd_ice1712_multi_capture_spdif_volume, ice)); card 1505 sound/pci/ice1712/ice1712.c err = snd_ac97_bus(ice->card, bus_num++, &con_ops, NULL, &pbus); card 1513 sound/pci/ice1712/ice1712.c dev_warn(ice->card->dev, card 1516 sound/pci/ice1712/ice1712.c return snd_ctl_add(ice->card, card 1523 sound/pci/ice1712/ice1712.c err = snd_ac97_bus(ice->card, bus_num, &pro_ops, NULL, &pbus); card 1531 sound/pci/ice1712/ice1712.c dev_warn(ice->card->dev, card 1537 sound/pci/ice1712/ice1712.c strcat(ice->card->mixername, "ICE1712 - multitrack"); card 1556 sound/pci/ice1712/ice1712.c snd_iprintf(buffer, "%s\n\n", ice->card->longname); card 1592 sound/pci/ice1712/ice1712.c snd_card_ro_proc_new(ice->card, "ice1712", ice, snd_ice1712_proc_read); card 2290 sound/pci/ice1712/ice1712.c dev_err(ice->card->dev, card 2299 sound/pci/ice1712/ice1712.c dev_info(ice->card->dev, card 2307 sound/pci/ice1712/ice1712.c dev_dbg(ice->card->dev, "using the defined eeprom..\n"); card 2314 sound/pci/ice1712/ice1712.c dev_warn(ice->card->dev, "No matching model found for ID 0x%x\n", card 2322 sound/pci/ice1712/ice1712.c dev_err(ice->card->dev, card 2328 sound/pci/ice1712/ice1712.c dev_err(ice->card->dev, "invalid EEPROM version %i\n", card 2408 sound/pci/ice1712/ice1712.c err = snd_ctl_add(ice->card, kctl = snd_ctl_new1(&snd_ice1712_spdif_default, ice)); card 2412 sound/pci/ice1712/ice1712.c err = snd_ctl_add(ice->card, kctl = snd_ctl_new1(&snd_ice1712_spdif_maskc, ice)); card 2416 sound/pci/ice1712/ice1712.c err = snd_ctl_add(ice->card, kctl = snd_ctl_new1(&snd_ice1712_spdif_maskp, ice)); card 2420 sound/pci/ice1712/ice1712.c err = snd_ctl_add(ice->card, kctl = snd_ctl_new1(&snd_ice1712_spdif_stream, ice)); card 2433 sound/pci/ice1712/ice1712.c err = snd_ctl_add(ice->card, snd_ctl_new1(&snd_ice1712_eeprom, ice)); card 2436 sound/pci/ice1712/ice1712.c err = snd_ctl_add(ice->card, snd_ctl_new1(&snd_ice1712_pro_internal_clock, ice)); card 2439 sound/pci/ice1712/ice1712.c err = snd_ctl_add(ice->card, snd_ctl_new1(&snd_ice1712_pro_internal_clock_default, ice)); card 2443 sound/pci/ice1712/ice1712.c err = snd_ctl_add(ice->card, snd_ctl_new1(&snd_ice1712_pro_rate_locking, ice)); card 2446 sound/pci/ice1712/ice1712.c err = snd_ctl_add(ice->card, snd_ctl_new1(&snd_ice1712_pro_rate_reset, ice)); card 2453 sound/pci/ice1712/ice1712.c err = snd_ctl_add(ice->card, snd_ctl_new1(&tmp, ice)); card 2458 sound/pci/ice1712/ice1712.c err = snd_ctl_add(ice->card, snd_ctl_new1(&snd_ice1712_mixer_pro_spdif_route, ice)); card 2462 sound/pci/ice1712/ice1712.c err = snd_ctl_add(ice->card, snd_ctl_new1(&snd_ice1712_mixer_pro_volume_rate, ice)); card 2465 sound/pci/ice1712/ice1712.c return snd_ctl_add(ice->card, card 2496 sound/pci/ice1712/ice1712.c static int snd_ice1712_create(struct snd_card *card, card 2519 sound/pci/ice1712/ice1712.c dev_err(card->dev, card 2552 sound/pci/ice1712/ice1712.c ice->card = card; card 2562 sound/pci/ice1712/ice1712.c card->private_data = ice; card 2577 sound/pci/ice1712/ice1712.c dev_err(card->dev, "unable to grab IRQ %d\n", pci->irq); card 2593 sound/pci/ice1712/ice1712.c err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, ice, &ops); card 2616 sound/pci/ice1712/ice1712.c struct snd_card *card; card 2629 sound/pci/ice1712/ice1712.c 0, &card); card 2633 sound/pci/ice1712/ice1712.c strcpy(card->driver, "ICE1712"); card 2634 sound/pci/ice1712/ice1712.c strcpy(card->shortname, "ICEnsemble ICE1712"); card 2636 sound/pci/ice1712/ice1712.c err = snd_ice1712_create(card, pci, model[dev], omni[dev], card 2639 sound/pci/ice1712/ice1712.c snd_card_free(card); card 2647 sound/pci/ice1712/ice1712.c strcpy(card->shortname, c->name); card 2649 sound/pci/ice1712/ice1712.c strcpy(card->driver, c->driver); card 2653 sound/pci/ice1712/ice1712.c snd_card_free(card); card 2666 sound/pci/ice1712/ice1712.c snd_card_free(card); card 2673 sound/pci/ice1712/ice1712.c snd_card_free(card); card 2680 sound/pci/ice1712/ice1712.c snd_card_free(card); card 2686 sound/pci/ice1712/ice1712.c snd_card_free(card); card 2693 sound/pci/ice1712/ice1712.c snd_card_free(card); card 2701 sound/pci/ice1712/ice1712.c snd_card_free(card); card 2707 sound/pci/ice1712/ice1712.c err = snd_mpu401_uart_new(card, 0, MPU401_HW_ICE1712, card 2713 sound/pci/ice1712/ice1712.c snd_card_free(card); card 2720 sound/pci/ice1712/ice1712.c "%s %d", c->mpu401_1_name, card->number); card 2724 sound/pci/ice1712/ice1712.c err = snd_mpu401_uart_new(card, 1, MPU401_HW_ICE1712, card 2731 sound/pci/ice1712/ice1712.c snd_card_free(card); card 2739 sound/pci/ice1712/ice1712.c card->number); card 2745 sound/pci/ice1712/ice1712.c sprintf(card->longname, "%s at 0x%lx, irq %i", card 2746 sound/pci/ice1712/ice1712.c card->shortname, ice->port, ice->irq); card 2748 sound/pci/ice1712/ice1712.c err = snd_card_register(card); card 2750 sound/pci/ice1712/ice1712.c snd_card_free(card); card 2753 sound/pci/ice1712/ice1712.c pci_set_drvdata(pci, card); card 2760 sound/pci/ice1712/ice1712.c struct snd_card *card = pci_get_drvdata(pci); card 2761 sound/pci/ice1712/ice1712.c struct snd_ice1712 *ice = card->private_data; card 2765 sound/pci/ice1712/ice1712.c snd_card_free(card); card 2771 sound/pci/ice1712/ice1712.c struct snd_card *card = dev_get_drvdata(dev); card 2772 sound/pci/ice1712/ice1712.c struct snd_ice1712 *ice = card->private_data; card 2777 sound/pci/ice1712/ice1712.c snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); card 2794 sound/pci/ice1712/ice1712.c struct snd_card *card = dev_get_drvdata(dev); card 2795 sound/pci/ice1712/ice1712.c struct snd_ice1712 *ice = card->private_data; card 2807 sound/pci/ice1712/ice1712.c snd_card_disconnect(card); card 2834 sound/pci/ice1712/ice1712.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 297 sound/pci/ice1712/ice1712.h struct snd_card *card; card 135 sound/pci/ice1712/ice1724.c dev_dbg(ice->card->dev, "snd_vt1724_ac97_ready: timeout\n"); card 145 sound/pci/ice1712/ice1724.c dev_dbg(ice->card->dev, "snd_vt1724_ac97_wait_bit: timeout\n"); card 419 sound/pci/ice1712/ice1724.c dev_err(ice->card->dev, card 422 sound/pci/ice1712/ice1724.c dev_err(ice->card->dev, "Disabling MPU_TX\n"); card 811 sound/pci/ice1712/ice1724.c dev_dbg(ice->card->dev, "invalid negative ptr\n"); card 817 sound/pci/ice1712/ice1724.c dev_dbg(ice->card->dev, "invalid ptr %d (size=%d)\n", card 830 sound/pci/ice1712/ice1724.c dev_dbg(ice->card->dev, "invalid ptr %d (size=%d)\n", card 874 sound/pci/ice1712/ice1724.c dev_dbg(ice->card->dev, "invalid ptr %d (size=%d)\n", card 1135 sound/pci/ice1712/ice1724.c err = snd_pcm_new(ice->card, "ICE1724", device, 1, capt, &pcm); card 1331 sound/pci/ice1712/ice1724.c err = snd_pcm_new(ice->card, name, device, play, capt, &pcm); card 1449 sound/pci/ice1712/ice1724.c err = snd_pcm_new(ice->card, "ICE1724 Surrounds", device, play, 0, &pcm); card 1491 sound/pci/ice1712/ice1724.c err = snd_ac97_bus(ice->card, 0, &ops, NULL, &pbus); card 1498 sound/pci/ice1712/ice1724.c dev_warn(ice->card->dev, card 1504 sound/pci/ice1712/ice1724.c strcat(ice->card->mixername, "ICE1724 - multitrack"); card 1525 sound/pci/ice1712/ice1724.c snd_iprintf(buffer, "%s\n\n", ice->card->longname); card 1563 sound/pci/ice1712/ice1724.c snd_card_ro_proc_new(ice->card, "ice1724", ice, snd_vt1724_proc_read); card 2253 sound/pci/ice1712/ice1724.c dev_err(ice->card->dev, "i2c busy timeout\n"); card 2317 sound/pci/ice1712/ice1724.c dev_err(ice->card->dev, card 2327 sound/pci/ice1712/ice1724.c dev_info(ice->card->dev, card 2337 sound/pci/ice1712/ice1724.c dev_dbg(ice->card->dev, "using the defined eeprom..\n"); card 2344 sound/pci/ice1712/ice1724.c dev_warn(ice->card->dev, "No matching model found for ID 0x%x\n", card 2356 sound/pci/ice1712/ice1724.c dev_err(ice->card->dev, "Invalid EEPROM (size = %i)\n", card 2362 sound/pci/ice1712/ice1724.c dev_warn(ice->card->dev, "Invalid EEPROM version %i\n", card 2423 sound/pci/ice1712/ice1724.c err = snd_ctl_add(ice->card, card 2429 sound/pci/ice1712/ice1724.c err = snd_ctl_add(ice->card, snd_ctl_new1(&snd_vt1724_spdif_switch, ice)); card 2433 sound/pci/ice1712/ice1724.c err = snd_ctl_add(ice->card, kctl = snd_ctl_new1(&snd_vt1724_spdif_default, ice)); card 2437 sound/pci/ice1712/ice1724.c err = snd_ctl_add(ice->card, kctl = snd_ctl_new1(&snd_vt1724_spdif_maskc, ice)); card 2441 sound/pci/ice1712/ice1724.c err = snd_ctl_add(ice->card, kctl = snd_ctl_new1(&snd_vt1724_spdif_maskp, ice)); card 2446 sound/pci/ice1712/ice1724.c err = snd_ctl_add(ice->card, kctl = snd_ctl_new1(&snd_vt1724_spdif_stream, ice)); card 2460 sound/pci/ice1712/ice1724.c err = snd_ctl_add(ice->card, snd_ctl_new1(&snd_vt1724_eeprom, ice)); card 2463 sound/pci/ice1712/ice1724.c err = snd_ctl_add(ice->card, snd_ctl_new1(&snd_vt1724_pro_internal_clock, ice)); card 2467 sound/pci/ice1712/ice1724.c err = snd_ctl_add(ice->card, snd_ctl_new1(&snd_vt1724_pro_rate_locking, ice)); card 2470 sound/pci/ice1712/ice1724.c err = snd_ctl_add(ice->card, snd_ctl_new1(&snd_vt1724_pro_rate_reset, ice)); card 2479 sound/pci/ice1712/ice1724.c err = snd_ctl_add(ice->card, snd_ctl_new1(&tmp, ice)); card 2484 sound/pci/ice1712/ice1724.c return snd_ctl_add(ice->card, card 2513 sound/pci/ice1712/ice1724.c static int snd_vt1724_create(struct snd_card *card, card 2547 sound/pci/ice1712/ice1724.c ice->card = card; card 2554 sound/pci/ice1712/ice1724.c card->private_data = ice; card 2567 sound/pci/ice1712/ice1724.c dev_err(card->dev, "unable to grab IRQ %d\n", pci->irq); card 2584 sound/pci/ice1712/ice1724.c err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, ice, &ops); card 2605 sound/pci/ice1712/ice1724.c struct snd_card *card; card 2618 sound/pci/ice1712/ice1724.c 0, &card); card 2622 sound/pci/ice1712/ice1724.c strcpy(card->driver, "ICE1724"); card 2623 sound/pci/ice1712/ice1724.c strcpy(card->shortname, "ICEnsemble ICE1724"); card 2625 sound/pci/ice1712/ice1724.c err = snd_vt1724_create(card, pci, model[dev], &ice); card 2627 sound/pci/ice1712/ice1724.c snd_card_free(card); card 2639 sound/pci/ice1712/ice1724.c strcpy(card->shortname, c->name); card 2641 sound/pci/ice1712/ice1724.c strcpy(card->driver, c->driver); card 2645 sound/pci/ice1712/ice1724.c snd_card_free(card); card 2686 sound/pci/ice1712/ice1724.c snd_card_free(card); card 2692 sound/pci/ice1712/ice1724.c snd_card_free(card); card 2698 sound/pci/ice1712/ice1724.c snd_card_free(card); card 2704 sound/pci/ice1712/ice1724.c snd_card_free(card); card 2710 sound/pci/ice1712/ice1724.c snd_card_free(card); card 2717 sound/pci/ice1712/ice1724.c snd_card_free(card); card 2725 sound/pci/ice1712/ice1724.c snd_card_free(card); card 2734 sound/pci/ice1712/ice1724.c err = snd_rawmidi_new(card, "MIDI", 0, 1, 1, &rmidi); card 2736 sound/pci/ice1712/ice1724.c snd_card_free(card); card 2759 sound/pci/ice1712/ice1724.c sprintf(card->longname, "%s at 0x%lx, irq %i", card 2760 sound/pci/ice1712/ice1724.c card->shortname, ice->port, ice->irq); card 2762 sound/pci/ice1712/ice1724.c err = snd_card_register(card); card 2764 sound/pci/ice1712/ice1724.c snd_card_free(card); card 2767 sound/pci/ice1712/ice1724.c pci_set_drvdata(pci, card); card 2774 sound/pci/ice1712/ice1724.c struct snd_card *card = pci_get_drvdata(pci); card 2775 sound/pci/ice1712/ice1724.c struct snd_ice1712 *ice = card->private_data; card 2779 sound/pci/ice1712/ice1724.c snd_card_free(card); card 2785 sound/pci/ice1712/ice1724.c struct snd_card *card = dev_get_drvdata(dev); card 2786 sound/pci/ice1712/ice1724.c struct snd_ice1712 *ice = card->private_data; card 2791 sound/pci/ice1712/ice1724.c snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); card 2809 sound/pci/ice1712/ice1724.c struct snd_card *card = dev_get_drvdata(dev); card 2810 sound/pci/ice1712/ice1724.c struct snd_ice1712 *ice = card->private_data; card 2818 sound/pci/ice1712/ice1724.c snd_card_disconnect(card); card 2845 sound/pci/ice1712/ice1724.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 411 sound/pci/ice1712/juli.c static struct snd_kcontrol *ctl_find(struct snd_card *card, card 418 sound/pci/ice1712/juli.c return snd_ctl_find_id(card, &sid); card 421 sound/pci/ice1712/juli.c static void add_slaves(struct snd_card *card, card 426 sound/pci/ice1712/juli.c struct snd_kcontrol *slave = ctl_find(card, *list); card 447 sound/pci/ice1712/juli.c err = snd_ctl_add(ice->card, card 457 sound/pci/ice1712/juli.c add_slaves(ice->card, vmaster, slave_vols); card 458 sound/pci/ice1712/juli.c err = snd_ctl_add(ice->card, vmaster); card 590 sound/pci/ice1712/juli.c err = snd_ak4114_create(ice->card, card 615 sound/pci/ice1712/juli.c dev_info(ice->card->dev, "juli@: analog I/O detected\n"); card 522 sound/pci/ice1712/maya44.c err = snd_ctl_add(ice->card, snd_ctl_new1(&maya_controls[i], card 904 sound/pci/ice1712/phase.c err = snd_ctl_add(ice->card, card 912 sound/pci/ice1712/phase.c err = snd_ctl_add(ice->card, card 648 sound/pci/ice1712/pontis.c snd_card_rw_proc_new(ice->card, "wm_codec", ice, wm_proc_regs_read, card 669 sound/pci/ice1712/pontis.c snd_card_ro_proc_new(ice->card, "cs_codec", ice, cs_proc_regs_read); card 679 sound/pci/ice1712/pontis.c err = snd_ctl_add(ice->card, snd_ctl_new1(&pontis_controls[i], ice)); card 612 sound/pci/ice1712/prodigy192.c err = snd_ak4114_create(ice->card, card 640 sound/pci/ice1712/prodigy192.c snd_card_ro_proc_new(ice->card, "stac9460_codec", ice, card 652 sound/pci/ice1712/prodigy192.c err = snd_ctl_add(ice->card, card 660 sound/pci/ice1712/prodigy192.c err = snd_ctl_add(ice->card, card 742 sound/pci/ice1712/prodigy192.c dev_dbg(ice->card->dev, card 745 sound/pci/ice1712/prodigy192.c dev_dbg(ice->card->dev, "AK4114 not found\n"); card 893 sound/pci/ice1712/prodigy_hifi.c snd_card_rw_proc_new(ice->card, "wm_codec", ice, wm_proc_regs_read, card 903 sound/pci/ice1712/prodigy_hifi.c err = snd_ctl_add(ice->card, card 920 sound/pci/ice1712/prodigy_hifi.c err = snd_ctl_add(ice->card, card 194 sound/pci/ice1712/psc724.c kctl = snd_ctl_find_id(ice->card, &elem_id); card 195 sound/pci/ice1712/psc724.c snd_ctl_notify(ice->card, SNDRV_CTL_EVENT_MASK_VALUE, &kctl->id); card 199 sound/pci/ice1712/psc724.c kctl = snd_ctl_find_id(ice->card, &elem_id); card 200 sound/pci/ice1712/psc724.c snd_ctl_notify(ice->card, SNDRV_CTL_EVENT_MASK_VALUE, &kctl->id); card 353 sound/pci/ice1712/psc724.c err = snd_ctl_add(ice->card, ctl); card 398 sound/pci/ice1712/psc724.c spec->wm8776.card = ice->card; card 401 sound/pci/ice1712/psc724.c spec->wm8766.card = ice->card; card 490 sound/pci/ice1712/quartet.c snd_card_ro_proc_new(ice->card, "quartet", ice, proc_regs_read); card 769 sound/pci/ice1712/quartet.c static struct snd_kcontrol *ctl_find(struct snd_card *card, card 776 sound/pci/ice1712/quartet.c return snd_ctl_find_id(card, &sid); card 779 sound/pci/ice1712/quartet.c static void add_slaves(struct snd_card *card, card 783 sound/pci/ice1712/quartet.c struct snd_kcontrol *slave = ctl_find(card, *list); card 798 sound/pci/ice1712/quartet.c err = snd_ctl_add(ice->card, card 809 sound/pci/ice1712/quartet.c add_slaves(ice->card, vmaster, slave_vols); card 810 sound/pci/ice1712/quartet.c err = snd_ctl_add(ice->card, vmaster); card 1036 sound/pci/ice1712/quartet.c err = snd_ak4113_create(ice->card, card 156 sound/pci/ice1712/revo.c err = snd_i2c_bus_create(ice->card, "ICE1724 GPIO6", NULL, &ice->i2c); card 168 sound/pci/ice1712/revo.c pt->card = ice->card; card 478 sound/pci/ice1712/revo.c err = snd_ak4114_create(ice->card, card 620 sound/pci/ice1712/se.c err = snd_ctl_add(ice->card, snd_ctl_new1(&cont, ice)); card 317 sound/pci/ice1712/wm8766.c return snd_ctl_add(wm->card, ctl); card 132 sound/pci/ice1712/wm8766.h struct snd_card *card; card 34 sound/pci/ice1712/wm8776.c struct snd_card *card = wm->card; card 43 sound/pci/ice1712/wm8776.c kctl = snd_ctl_find_id(card, &elem_id); card 52 sound/pci/ice1712/wm8776.c snd_ctl_notify(card, SNDRV_CTL_EVENT_MASK_INFO, &kctl->id); card 590 sound/pci/ice1712/wm8776.c return snd_ctl_add(wm->card, ctl); card 194 sound/pci/ice1712/wm8776.h struct snd_card *card; card 560 sound/pci/ice1712/wtm.c err = snd_ctl_add(ice->card, card 369 sound/pci/intel8x0.c struct snd_card *card; card 525 sound/pci/intel8x0.c dev_err(chip->card->dev, card 541 sound/pci/intel8x0.c dev_err(chip->card->dev, card 557 sound/pci/intel8x0.c dev_err(chip->card->dev, card 568 sound/pci/intel8x0.c dev_err(chip->card->dev, card 604 sound/pci/intel8x0.c dev_warn(chip->card->dev, "AC97 codec ready timeout.\n"); card 616 sound/pci/intel8x0.c dev_warn(chip->card->dev, "ali_codec_semaphore timeout\n"); card 685 sound/pci/intel8x0.c dev_dbg(chip->card->dev, "bdbar[%i] = 0x%x [0x%x]\n", card 697 sound/pci/intel8x0.c dev_dbg(chip->card->dev, card 747 sound/pci/intel8x0.c dev_dbg(chip->card->dev, card 1471 sound/pci/intel8x0.c err = snd_pcm_new(chip->card, name, device, card 1485 sound/pci/intel8x0.c sprintf(pcm->name, "%s - %s", chip->card->shortname, rec->suffix); card 1487 sound/pci/intel8x0.c strcpy(pcm->name, chip->card->shortname); card 2224 sound/pci/intel8x0.c if ((err = snd_ac97_bus(chip->card, 0, ops, chip, &pbus)) < 0) card 2242 sound/pci/intel8x0.c dev_err(chip->card->dev, card 2395 sound/pci/intel8x0.c dev_err(chip->card->dev, "AC'97 warm reset still in progress? [0x%x]\n", card 2437 sound/pci/intel8x0.c dev_err(chip->card->dev, card 2502 sound/pci/intel8x0.c dev_err(chip->card->dev, "AC'97 reset failed.\n"); card 2546 sound/pci/intel8x0.c dev_err(chip->card->dev, "reset of registers failed?\n"); card 2597 sound/pci/intel8x0.c struct snd_card *card = dev_get_drvdata(dev); card 2598 sound/pci/intel8x0.c struct intel8x0 *chip = card->private_data; card 2601 sound/pci/intel8x0.c snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); card 2617 sound/pci/intel8x0.c struct snd_card *card = dev_get_drvdata(dev); card 2618 sound/pci/intel8x0.c struct intel8x0 *chip = card->private_data; card 2626 sound/pci/intel8x0.c snd_card_disconnect(card); card 2659 sound/pci/intel8x0.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 2686 sound/pci/intel8x0.c dev_warn(chip->card->dev, card 2697 sound/pci/intel8x0.c dev_err(chip->card->dev, "cannot set ac97 rate: clock = %d\n", card 2752 sound/pci/intel8x0.c dev_err(chip->card->dev, card 2765 sound/pci/intel8x0.c dev_info(chip->card->dev, card 2768 sound/pci/intel8x0.c dev_err(chip->card->dev, "?? calculation error..\n"); card 2775 sound/pci/intel8x0.c dev_info(chip->card->dev, "measured clock %ld rejected\n", pos); card 2787 sound/pci/intel8x0.c dev_info(chip->card->dev, "clocking to %d\n", chip->ac97_bus->clock); card 2809 sound/pci/intel8x0.c dev_info(chip->card->dev, "white list rate for %04x:%04x is %i\n", card 2851 sound/pci/intel8x0.c snd_card_ro_proc_new(chip->card, "intel8x0", chip, card 2904 sound/pci/intel8x0.c static int snd_intel8x0_create(struct snd_card *card, card 2961 sound/pci/intel8x0.c chip->card = card; card 2983 sound/pci/intel8x0.c if ((err = pci_request_regions(pci, card->shortname)) < 0) { card 3000 sound/pci/intel8x0.c dev_err(card->dev, "AC'97 space ioremap problem\n"); card 3011 sound/pci/intel8x0.c dev_err(card->dev, "Controller space ioremap problem\n"); card 3054 sound/pci/intel8x0.c dev_err(card->dev, "cannot allocate buffer descriptors\n"); card 3105 sound/pci/intel8x0.c dev_err(card->dev, "unable to grab IRQ %d\n", pci->irq); card 3111 sound/pci/intel8x0.c if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops)) < 0) { card 3177 sound/pci/intel8x0.c struct snd_card *card; card 3182 sound/pci/intel8x0.c err = snd_card_new(&pci->dev, index, id, THIS_MODULE, 0, &card); card 3189 sound/pci/intel8x0.c strcpy(card->driver, "ICH"); card 3193 sound/pci/intel8x0.c strcpy(card->driver, "NFORCE"); card 3196 sound/pci/intel8x0.c strcpy(card->driver, "ICH4"); card 3200 sound/pci/intel8x0.c strcpy(card->shortname, "Intel ICH"); card 3203 sound/pci/intel8x0.c strcpy(card->shortname, name->s); card 3218 sound/pci/intel8x0.c if ((err = snd_intel8x0_create(card, pci, pci_id->driver_data, card 3220 sound/pci/intel8x0.c snd_card_free(card); card 3223 sound/pci/intel8x0.c card->private_data = chip; card 3226 sound/pci/intel8x0.c snd_card_free(card); card 3230 sound/pci/intel8x0.c snd_card_free(card); card 3236 sound/pci/intel8x0.c snprintf(card->longname, sizeof(card->longname), card 3237 sound/pci/intel8x0.c "%s with %s at irq %i", card->shortname, card 3249 sound/pci/intel8x0.c if ((err = snd_card_register(card)) < 0) { card 3250 sound/pci/intel8x0.c snd_card_free(card); card 3253 sound/pci/intel8x0.c pci_set_drvdata(pci, card); card 187 sound/pci/intel8x0m.c struct snd_card *card; card 322 sound/pci/intel8x0m.c dev_err(chip->card->dev, card 338 sound/pci/intel8x0m.c dev_err(chip->card->dev, card 354 sound/pci/intel8x0m.c dev_err(chip->card->dev, card 365 sound/pci/intel8x0m.c dev_err(chip->card->dev, card 419 sound/pci/intel8x0m.c dev_dbg(chip->card->dev, card 465 sound/pci/intel8x0m.c dev_dbg(chip->card->dev, card 716 sound/pci/intel8x0m.c err = snd_pcm_new(chip->card, name, device, card 731 sound/pci/intel8x0m.c sprintf(pcm->name, "%s - %s", chip->card->shortname, rec->suffix); card 733 sound/pci/intel8x0m.c strcpy(pcm->name, chip->card->shortname); card 835 sound/pci/intel8x0m.c if ((err = snd_ac97_bus(chip->card, 0, &ops, chip, &pbus)) < 0) card 845 sound/pci/intel8x0m.c dev_err(chip->card->dev, card 897 sound/pci/intel8x0m.c dev_err(chip->card->dev, "AC'97 warm reset still in progress? [0x%x]\n", card 917 sound/pci/intel8x0m.c dev_err(chip->card->dev, card 1011 sound/pci/intel8x0m.c struct snd_card *card = dev_get_drvdata(dev); card 1012 sound/pci/intel8x0m.c struct intel8x0m *chip = card->private_data; card 1014 sound/pci/intel8x0m.c snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); card 1026 sound/pci/intel8x0m.c struct snd_card *card = dev_get_drvdata(dev); card 1027 sound/pci/intel8x0m.c struct intel8x0m *chip = card->private_data; card 1033 sound/pci/intel8x0m.c snd_card_disconnect(card); card 1040 sound/pci/intel8x0m.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 1072 sound/pci/intel8x0m.c snd_card_ro_proc_new(chip->card, "intel8x0m", chip, card 1087 sound/pci/intel8x0m.c static int snd_intel8x0m_create(struct snd_card *card, card 1118 sound/pci/intel8x0m.c chip->card = card; card 1122 sound/pci/intel8x0m.c if ((err = pci_request_regions(pci, card->shortname)) < 0) { card 1139 sound/pci/intel8x0m.c dev_err(card->dev, "AC'97 space ioremap problem\n"); card 1148 sound/pci/intel8x0m.c dev_err(card->dev, "Controller space ioremap problem\n"); card 1206 sound/pci/intel8x0m.c dev_err(card->dev, "unable to grab IRQ %d\n", pci->irq); card 1212 sound/pci/intel8x0m.c if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops)) < 0) { card 1250 sound/pci/intel8x0m.c struct snd_card *card; card 1255 sound/pci/intel8x0m.c err = snd_card_new(&pci->dev, index, id, THIS_MODULE, 0, &card); card 1259 sound/pci/intel8x0m.c strcpy(card->driver, "ICH-MODEM"); card 1260 sound/pci/intel8x0m.c strcpy(card->shortname, "Intel ICH"); card 1263 sound/pci/intel8x0m.c strcpy(card->shortname, name->s); card 1267 sound/pci/intel8x0m.c strcat(card->shortname," Modem"); card 1269 sound/pci/intel8x0m.c if ((err = snd_intel8x0m_create(card, pci, pci_id->driver_data, &chip)) < 0) { card 1270 sound/pci/intel8x0m.c snd_card_free(card); card 1273 sound/pci/intel8x0m.c card->private_data = chip; card 1276 sound/pci/intel8x0m.c snd_card_free(card); card 1280 sound/pci/intel8x0m.c snd_card_free(card); card 1286 sound/pci/intel8x0m.c sprintf(card->longname, "%s at irq %i", card 1287 sound/pci/intel8x0m.c card->shortname, chip->irq); card 1289 sound/pci/intel8x0m.c if ((err = snd_card_register(card)) < 0) { card 1290 sound/pci/intel8x0m.c snd_card_free(card); card 1293 sound/pci/intel8x0m.c pci_set_drvdata(pci, card); card 303 sound/pci/korg1212/korg1212.c struct snd_card *card; card 2055 sound/pci/korg1212/korg1212.c snd_iprintf(buffer, korg1212->card->longname); card 2056 sound/pci/korg1212/korg1212.c snd_iprintf(buffer, " (index #%d)\n", korg1212->card->number + 1); card 2079 sound/pci/korg1212/korg1212.c snd_card_ro_proc_new(korg1212->card, "korg1212", korg1212, card 2146 sound/pci/korg1212/korg1212.c static int snd_korg1212_create(struct snd_card *card, struct pci_dev *pci, card 2170 sound/pci/korg1212/korg1212.c korg1212->card = card; card 2361 sound/pci/korg1212/korg1212.c if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, korg1212, &ops)) < 0) { card 2386 sound/pci/korg1212/korg1212.c if ((err = snd_pcm_new(korg1212->card, "korg1212", 0, 1, 1, &korg1212->pcm)) < 0) card 2400 sound/pci/korg1212/korg1212.c err = snd_ctl_add(korg1212->card, snd_ctl_new1(&snd_korg1212_controls[i], korg1212)); card 2422 sound/pci/korg1212/korg1212.c struct snd_card *card; card 2433 sound/pci/korg1212/korg1212.c 0, &card); card 2437 sound/pci/korg1212/korg1212.c if ((err = snd_korg1212_create(card, pci, &korg1212)) < 0) { card 2438 sound/pci/korg1212/korg1212.c snd_card_free(card); card 2442 sound/pci/korg1212/korg1212.c strcpy(card->driver, "korg1212"); card 2443 sound/pci/korg1212/korg1212.c strcpy(card->shortname, "korg1212"); card 2444 sound/pci/korg1212/korg1212.c sprintf(card->longname, "%s at 0x%lx, irq %d", card->shortname, card 2447 sound/pci/korg1212/korg1212.c K1212_DEBUG_PRINTK("K1212_DEBUG: %s\n", card->longname); card 2449 sound/pci/korg1212/korg1212.c if ((err = snd_card_register(card)) < 0) { card 2450 sound/pci/korg1212/korg1212.c snd_card_free(card); card 2453 sound/pci/korg1212/korg1212.c pci_set_drvdata(pci, card); card 158 sound/pci/lola/lola.c dev_warn(chip->card->dev, "RIRB ERROR: " card 172 sound/pci/lola/lola.c dev_warn(chip->card->dev, "RIRB response error\n"); card 174 sound/pci/lola/lola.c dev_warn(chip->card->dev, "switching to polling mode\n"); card 317 sound/pci/lola/lola.c dev_err(chip->card->dev, "cannot reset controller\n"); card 442 sound/pci/lola/lola.c dev_err(chip->card->dev, "Can't read VENDOR_ID\n"); card 447 sound/pci/lola/lola.c dev_err(chip->card->dev, "Unknown codec vendor 0x%x\n", val); card 453 sound/pci/lola/lola.c dev_err(chip->card->dev, "Can't read FUNCTION_TYPE\n"); card 457 sound/pci/lola/lola.c dev_err(chip->card->dev, "Unknown function type %d\n", val); card 463 sound/pci/lola/lola.c dev_err(chip->card->dev, "Can't read SPECCAPS\n"); card 469 sound/pci/lola/lola.c dev_dbg(chip->card->dev, "speccaps=0x%x, pins in=%d, out=%d\n", card 475 sound/pci/lola/lola.c dev_err(chip->card->dev, "Invalid Lola-spec caps 0x%x\n", val); card 556 sound/pci/lola/lola.c static int lola_create(struct snd_card *card, struct pci_dev *pci, card 580 sound/pci/lola/lola.c chip->card = card; card 596 sound/pci/lola/lola.c dev_warn(chip->card->dev, card 605 sound/pci/lola/lola.c dev_warn(chip->card->dev, card 623 sound/pci/lola/lola.c dev_err(chip->card->dev, "ioremap error\n"); card 636 sound/pci/lola/lola.c dev_err(chip->card->dev, "unable to grab IRQ %d\n", pci->irq); card 647 sound/pci/lola/lola.c dev_dbg(chip->card->dev, "streams in=%d, out=%d, version=0x%x\n", card 656 sound/pci/lola/lola.c dev_err(chip->card->dev, "invalid DEVER = %x\n", dever); card 665 sound/pci/lola/lola.c err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops); card 667 sound/pci/lola/lola.c dev_err(chip->card->dev, "Error creating device [card]!\n"); card 671 sound/pci/lola/lola.c strcpy(card->driver, "Lola"); card 672 sound/pci/lola/lola.c strlcpy(card->shortname, "Digigram Lola", sizeof(card->shortname)); card 673 sound/pci/lola/lola.c snprintf(card->longname, sizeof(card->longname), card 675 sound/pci/lola/lola.c card->shortname, chip->bar[0].addr, chip->irq); card 676 sound/pci/lola/lola.c strcpy(card->mixername, card->shortname); card 693 sound/pci/lola/lola.c struct snd_card *card; card 705 sound/pci/lola/lola.c 0, &card); card 711 sound/pci/lola/lola.c err = lola_create(card, pci, dev, &chip); card 714 sound/pci/lola/lola.c card->private_data = chip; card 730 sound/pci/lola/lola.c err = snd_card_register(card); card 734 sound/pci/lola/lola.c pci_set_drvdata(pci, card); card 738 sound/pci/lola/lola.c snd_card_free(card); card 312 sound/pci/lola/lola.h struct snd_card *card; card 118 sound/pci/lola/lola_clock.c dev_err(chip->card->dev, "Can't read wcaps for 0x%x\n", nid); card 123 sound/pci/lola/lola_clock.c dev_dbg(chip->card->dev, "No valid clock widget\n"); card 129 sound/pci/lola/lola_clock.c dev_dbg(chip->card->dev, "clock_list nid=%x, entries=%d\n", nid, card 132 sound/pci/lola/lola_clock.c dev_err(chip->card->dev, "CLOCK_LIST too big: %d\n", card 148 sound/pci/lola/lola_clock.c dev_err(chip->card->dev, "Can't read CLOCK_LIST\n"); card 213 sound/pci/lola/lola_clock.c dev_warn(chip->card->dev, "error in enable_clock_events %d\n", card 232 sound/pci/lola/lola_clock.c dev_warn(chip->card->dev, "error in set_clock %d\n", res); card 27 sound/pci/lola/lola_mixer.c dev_err(chip->card->dev, "Can't read wcaps for 0x%x\n", nid); card 38 sound/pci/lola/lola_mixer.c dev_err(chip->card->dev, "Invalid wcaps 0x%x for 0x%x\n", val, nid); card 52 sound/pci/lola/lola_mixer.c dev_err(chip->card->dev, "Can't read AMP-caps for 0x%x\n", nid); card 69 sound/pci/lola/lola_mixer.c dev_err(chip->card->dev, "Can't get MAX_LEVEL 0x%x\n", nid); card 108 sound/pci/lola/lola_mixer.c dev_err(chip->card->dev, "Can't read wcaps for 0x%x\n", nid); card 113 sound/pci/lola/lola_mixer.c dev_dbg(chip->card->dev, "No valid mixer widget\n"); card 191 sound/pci/lola/lola_mixer.c dev_err(chip->card->dev, "Invalid mixer widget size\n"); card 202 sound/pci/lola/lola_mixer.c dev_dbg(chip->card->dev, "Mixer src_mask=%x, dest_mask=%x\n", card 225 sound/pci/lola/lola_mixer.c dev_dbg(chip->card->dev, card 399 sound/pci/lola/lola_mixer.c dev_dbg(chip->card->dev, card 590 sound/pci/lola/lola_mixer.c return snd_ctl_add(chip->card, card 652 sound/pci/lola/lola_mixer.c return snd_ctl_add(chip->card, card 732 sound/pci/lola/lola_mixer.c return snd_ctl_add(chip->card, card 822 sound/pci/lola/lola_mixer.c return snd_ctl_add(chip->card, card 93 sound/pci/lola/lola_pcm.c dev_warn(chip->card->dev, "SRST not clear (stream %d)\n", str->dsd); card 108 sound/pci/lola/lola_pcm.c dev_warn(chip->card->dev, "FIFO not ready (stream %d)\n", str->dsd); card 128 sound/pci/lola/lola_pcm.c if (s->pcm->card != substream->pcm->card) card 146 sound/pci/lola/lola_pcm.c dev_warn(chip->card->dev, "FIFO not ready (pending %d)\n", pending - 1); card 159 sound/pci/lola/lola_pcm.c if (s->pcm->card != substream->pcm->card) card 363 sound/pci/lola/lola_pcm.c dev_err(chip->card->dev, "Too many BDL entries: buffer=%d, period=%d\n", card 405 sound/pci/lola/lola_pcm.c dev_err(chip->card->dev, "Cannot set stream format 0x%x\n", card 417 sound/pci/lola/lola_pcm.c dev_err(chip->card->dev, card 536 sound/pci/lola/lola_pcm.c if (s->pcm->card != substream->pcm->card) card 601 sound/pci/lola/lola_pcm.c err = snd_pcm_new(chip->card, "Digigram Lola", 0, card 642 sound/pci/lola/lola_pcm.c dev_err(chip->card->dev, "Can't read wcaps for 0x%x\n", nid); card 648 sound/pci/lola/lola_pcm.c dev_err(chip->card->dev, card 658 sound/pci/lola/lola_pcm.c dev_err(chip->card->dev, card 670 sound/pci/lola/lola_pcm.c dev_err(chip->card->dev, "Can't read FORMATS 0x%x\n", nid); card 677 sound/pci/lola/lola_pcm.c dev_err(chip->card->dev, card 198 sound/pci/lola/lola_proc.c snd_card_ro_proc_new(chip->card, "codec", chip, lola_proc_codec_read); card 199 sound/pci/lola/lola_proc.c snd_card_rw_proc_new(chip->card, "codec_rw", chip, card 202 sound/pci/lola/lola_proc.c snd_card_ro_proc_new(chip->card, "regs", chip, lola_proc_regs_read); card 107 sound/pci/lx6464es/lx6464es.c dev_dbg(chip->card->dev, "allocating pipe for %d channels\n", channels); card 110 sound/pci/lx6464es/lx6464es.c dev_err(chip->card->dev, LXP "allocating pipe failed\n"); card 116 sound/pci/lx6464es/lx6464es.c dev_err(chip->card->dev, "setting granularity to %ld failed\n", card 131 sound/pci/lx6464es/lx6464es.c dev_dbg(chip->card->dev, "setting stream format\n"); card 134 sound/pci/lx6464es/lx6464es.c dev_err(chip->card->dev, "setting stream format failed\n"); card 138 sound/pci/lx6464es/lx6464es.c dev_dbg(chip->card->dev, "starting pipe\n"); card 141 sound/pci/lx6464es/lx6464es.c dev_err(chip->card->dev, "starting pipe failed\n"); card 145 sound/pci/lx6464es/lx6464es.c dev_dbg(chip->card->dev, "waiting for pipe to start\n"); card 148 sound/pci/lx6464es/lx6464es.c dev_err(chip->card->dev, "waiting for pipe failed\n"); card 162 sound/pci/lx6464es/lx6464es.c dev_dbg(chip->card->dev, "pausing pipe\n"); card 165 sound/pci/lx6464es/lx6464es.c dev_err(chip->card->dev, "pausing pipe failed\n"); card 169 sound/pci/lx6464es/lx6464es.c dev_dbg(chip->card->dev, "waiting for pipe to become idle\n"); card 172 sound/pci/lx6464es/lx6464es.c dev_err(chip->card->dev, "waiting for pipe failed\n"); card 176 sound/pci/lx6464es/lx6464es.c dev_dbg(chip->card->dev, "stopping pipe\n"); card 179 sound/pci/lx6464es/lx6464es.c dev_err(chip->card->dev, "stopping pipe failed\n"); card 193 sound/pci/lx6464es/lx6464es.c dev_dbg(chip->card->dev, "releasing pipe\n"); card 196 sound/pci/lx6464es/lx6464es.c dev_err(chip->card->dev, "releasing pipe failed\n"); card 211 sound/pci/lx6464es/lx6464es.c dev_dbg(chip->card->dev, "->lx_pcm_open\n"); card 222 sound/pci/lx6464es/lx6464es.c dev_warn(chip->card->dev, "could not constrain periods\n"); card 233 sound/pci/lx6464es/lx6464es.c dev_warn(chip->card->dev, "could not constrain periods\n"); card 243 sound/pci/lx6464es/lx6464es.c dev_warn(chip->card->dev, card 258 sound/pci/lx6464es/lx6464es.c dev_dbg(chip->card->dev, "<-lx_pcm_open, %d\n", err); card 264 sound/pci/lx6464es/lx6464es.c dev_dbg(substream->pcm->card->dev, "->lx_pcm_close\n"); card 278 sound/pci/lx6464es/lx6464es.c dev_dbg(chip->card->dev, "->lx_pcm_stream_pointer\n"); card 284 sound/pci/lx6464es/lx6464es.c dev_dbg(chip->card->dev, "stream_pointer at %ld\n", pos); card 294 sound/pci/lx6464es/lx6464es.c dev_dbg(chip->card->dev, "->lx_pcm_prepare\n"); card 301 sound/pci/lx6464es/lx6464es.c dev_err(chip->card->dev, "failed to stop hardware. " card 308 sound/pci/lx6464es/lx6464es.c dev_err(chip->card->dev, "failed to close hardware. " card 314 sound/pci/lx6464es/lx6464es.c dev_dbg(chip->card->dev, "opening hardware\n"); card 317 sound/pci/lx6464es/lx6464es.c dev_err(chip->card->dev, "failed to open hardware. " card 324 sound/pci/lx6464es/lx6464es.c dev_err(chip->card->dev, "failed to start hardware. " card 347 sound/pci/lx6464es/lx6464es.c dev_dbg(chip->card->dev, "->lx_pcm_hw_params\n"); card 382 sound/pci/lx6464es/lx6464es.c dev_dbg(chip->card->dev, "->lx_pcm_hw_free\n"); card 388 sound/pci/lx6464es/lx6464es.c dev_err(chip->card->dev, "failed to stop hardware. " card 395 sound/pci/lx6464es/lx6464es.c dev_err(chip->card->dev, "failed to close hardware. " card 439 sound/pci/lx6464es/lx6464es.c dev_dbg(chip->card->dev, "starting: needed %d, freed %d\n", card 446 sound/pci/lx6464es/lx6464es.c dev_dbg(chip->card->dev, "starting: buffer index %x on 0x%lx (%d bytes)\n", card 452 sound/pci/lx6464es/lx6464es.c dev_dbg(chip->card->dev, "starting: needed %d, freed %d\n", needed, freed); card 454 sound/pci/lx6464es/lx6464es.c dev_dbg(chip->card->dev, "starting: starting stream\n"); card 457 sound/pci/lx6464es/lx6464es.c dev_err(chip->card->dev, "couldn't start stream\n"); card 469 sound/pci/lx6464es/lx6464es.c dev_dbg(chip->card->dev, "stopping: stopping stream\n"); card 472 sound/pci/lx6464es/lx6464es.c dev_err(chip->card->dev, "couldn't stop stream\n"); card 531 sound/pci/lx6464es/lx6464es.c dev_dbg(chip->card->dev, "->lx_pcm_trigger\n"); card 538 sound/pci/lx6464es/lx6464es.c dev_dbg(chip->card->dev, "->snd_lx6464es_free\n"); card 567 sound/pci/lx6464es/lx6464es.c dev_dbg(chip->card->dev, "->lx_init_xilinx_reset\n"); card 587 sound/pci/lx6464es/lx6464es.c dev_dbg(chip->card->dev, "xilinx reset done\n"); card 588 sound/pci/lx6464es/lx6464es.c dev_dbg(chip->card->dev, "xilinx took %d loops\n", i); card 608 sound/pci/lx6464es/lx6464es.c dev_dbg(chip->card->dev, "->lx_init_xilinx_test\n"); card 616 sound/pci/lx6464es/lx6464es.c dev_err(chip->card->dev, "Problem: Reg_CSM %x.\n", reg); card 623 sound/pci/lx6464es/lx6464es.c dev_err(chip->card->dev, "Error: Reg_CSM %x.\n", reg); card 628 sound/pci/lx6464es/lx6464es.c dev_dbg(chip->card->dev, "Xilinx/MicroBlaze access test successful\n"); card 645 sound/pci/lx6464es/lx6464es.c dev_dbg(chip->card->dev, "->lx_init_ethersound\n"); card 659 sound/pci/lx6464es/lx6464es.c dev_dbg(chip->card->dev, "ethersound initialized after %dms\n", card 665 sound/pci/lx6464es/lx6464es.c dev_warn(chip->card->dev, card 670 sound/pci/lx6464es/lx6464es.c dev_dbg(chip->card->dev, "ethersound initialized\n"); card 680 sound/pci/lx6464es/lx6464es.c dev_dbg(chip->card->dev, "->lx_init_get_version_features\n"); card 687 sound/pci/lx6464es/lx6464es.c dev_info(chip->card->dev, "DSP version: V%02d.%02d #%d\n", card 702 sound/pci/lx6464es/lx6464es.c dev_dbg(chip->card->dev, "actual clock frequency %d\n", freq); card 704 sound/pci/lx6464es/lx6464es.c dev_err(chip->card->dev, "DSP corrupted \n"); card 716 sound/pci/lx6464es/lx6464es.c dev_dbg(chip->card->dev, "->lx_set_granularity\n"); card 729 sound/pci/lx6464es/lx6464es.c dev_warn(chip->card->dev, "could not set granularity\n"); card 734 sound/pci/lx6464es/lx6464es.c dev_err(chip->card->dev, "snapped blocksize to %d\n", snapped_gran); card 736 sound/pci/lx6464es/lx6464es.c dev_dbg(chip->card->dev, "set blocksize on board %d\n", snapped_gran); card 748 sound/pci/lx6464es/lx6464es.c dev_dbg(chip->card->dev, "->lx_init_dsp\n"); card 750 sound/pci/lx6464es/lx6464es.c dev_dbg(chip->card->dev, "initialize board\n"); card 755 sound/pci/lx6464es/lx6464es.c dev_dbg(chip->card->dev, "testing board\n"); card 760 sound/pci/lx6464es/lx6464es.c dev_dbg(chip->card->dev, "initialize ethersound configuration\n"); card 781 sound/pci/lx6464es/lx6464es.c dev_dbg(chip->card->dev, "mac address ready read after: %dms\n", i); card 782 sound/pci/lx6464es/lx6464es.c dev_info(chip->card->dev, card 834 sound/pci/lx6464es/lx6464es.c err = snd_pcm_new(chip->card, (char *)card_name, 0, card 938 sound/pci/lx6464es/lx6464es.c static int lx_proc_create(struct snd_card *card, struct lx6464es *chip) card 940 sound/pci/lx6464es/lx6464es.c return snd_card_ro_proc_new(card, "levels", chip, lx_proc_levels_read); card 944 sound/pci/lx6464es/lx6464es.c static int snd_lx6464es_create(struct snd_card *card, card 955 sound/pci/lx6464es/lx6464es.c dev_dbg(card->dev, "->snd_lx6464es_create\n"); card 969 sound/pci/lx6464es/lx6464es.c dev_err(card->dev, card 981 sound/pci/lx6464es/lx6464es.c chip->card = card; card 1003 sound/pci/lx6464es/lx6464es.c dev_err(card->dev, "cannot remap PCI memory region\n"); card 1011 sound/pci/lx6464es/lx6464es.c dev_err(card->dev, "unable to grab IRQ %d\n", pci->irq); card 1016 sound/pci/lx6464es/lx6464es.c err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops); card 1022 sound/pci/lx6464es/lx6464es.c dev_err(card->dev, "error during DSP initialization\n"); card 1030 sound/pci/lx6464es/lx6464es.c err = lx_proc_create(card, chip); card 1034 sound/pci/lx6464es/lx6464es.c err = snd_ctl_add(card, snd_ctl_new1(&lx_control_playback_switch, card 1064 sound/pci/lx6464es/lx6464es.c struct snd_card *card; card 1078 sound/pci/lx6464es/lx6464es.c 0, &card); card 1082 sound/pci/lx6464es/lx6464es.c err = snd_lx6464es_create(card, pci, &chip); card 1084 sound/pci/lx6464es/lx6464es.c dev_err(card->dev, "error during snd_lx6464es_create\n"); card 1088 sound/pci/lx6464es/lx6464es.c strcpy(card->driver, "LX6464ES"); card 1089 sound/pci/lx6464es/lx6464es.c sprintf(card->id, "LX6464ES_%02X%02X%02X", card 1092 sound/pci/lx6464es/lx6464es.c sprintf(card->shortname, "LX6464ES %02X.%02X.%02X.%02X.%02X.%02X", card 1096 sound/pci/lx6464es/lx6464es.c sprintf(card->longname, "%s at 0x%lx, 0x%p, irq %i", card 1097 sound/pci/lx6464es/lx6464es.c card->shortname, chip->port_plx, card 1100 sound/pci/lx6464es/lx6464es.c err = snd_card_register(card); card 1104 sound/pci/lx6464es/lx6464es.c dev_dbg(chip->card->dev, "initialization successful\n"); card 1105 sound/pci/lx6464es/lx6464es.c pci_set_drvdata(pci, card); card 1110 sound/pci/lx6464es/lx6464es.c snd_card_free(card); card 52 sound/pci/lx6464es/lx6464es.h struct snd_card *card; card 262 sound/pci/lx6464es/lx_core.c dev_err(chip->card->dev, "PIOSendMessage eReg_CSM %x\n", reg); card 283 sound/pci/lx6464es/lx_core.c dev_warn(chip->card->dev, "TIMEOUT lx_message_send_atomic! " card 295 sound/pci/lx6464es/lx_core.c dev_err(chip->card->dev, "rmh error: %08x\n", reg); card 302 sound/pci/lx6464es/lx_core.c dev_warn(chip->card->dev, "lx_message_send: dsp timeout\n"); card 306 sound/pci/lx6464es/lx_core.c dev_warn(chip->card->dev, "lx_message_send: dsp crashed\n"); card 436 sound/pci/lx6464es/lx_core.c dev_err(chip->card->dev, "could not allocate pipe\n"); card 493 sound/pci/lx6464es/lx_core.c dev_dbg(chip->card->dev, card 498 sound/pci/lx6464es/lx_core.c dev_dbg(chip->card->dev, card 585 sound/pci/lx6464es/lx_core.c dev_err(chip->card->dev, card 610 sound/pci/lx6464es/lx_core.c dev_err(chip->card->dev, "could not query pipe's state\n"); card 678 sound/pci/lx6464es/lx_core.c dev_err(chip->card->dev, "channel count mismatch: %d vs %d", card 775 sound/pci/lx6464es/lx_core.c dev_err(chip->card->dev, card 779 sound/pci/lx6464es/lx_core.c dev_err(chip->card->dev, card 783 sound/pci/lx6464es/lx_core.c dev_err(chip->card->dev, card 851 sound/pci/lx6464es/lx_core.c dev_dbg(chip->card->dev, card 1001 sound/pci/lx6464es/lx_core.c dev_dbg(chip->card->dev, "interrupt: EOBI pending %llx\n", card 1007 sound/pci/lx6464es/lx_core.c dev_dbg(chip->card->dev, "interrupt: EOBO pending %llx\n", card 1039 sound/pci/lx6464es/lx_core.c dev_dbg(chip->card->dev, "->lx_interrupt_request_new_buffer\n"); card 1044 sound/pci/lx6464es/lx_core.c dev_dbg(chip->card->dev, card 1050 sound/pci/lx6464es/lx_core.c dev_dbg(chip->card->dev, card 1067 sound/pci/lx6464es/lx_core.c dev_dbg(chip->card->dev, card 1071 sound/pci/lx6464es/lx_core.c dev_dbg(chip->card->dev, "IRQ_NONE\n"); card 1079 sound/pci/lx6464es/lx_core.c dev_dbg(chip->card->dev, "interrupt: EOBI\n"); card 1082 sound/pci/lx6464es/lx_core.c dev_dbg(chip->card->dev, "interrupt: EOBO\n"); card 1085 sound/pci/lx6464es/lx_core.c dev_dbg(chip->card->dev, "interrupt: URUN\n"); card 1088 sound/pci/lx6464es/lx_core.c dev_dbg(chip->card->dev, "interrupt: ORUN\n"); card 1102 sound/pci/lx6464es/lx_core.c dev_dbg(chip->card->dev, "interrupt requests escmd handling\n"); card 1122 sound/pci/lx6464es/lx_core.c dev_err(chip->card->dev, "error handling async events\n"); card 1127 sound/pci/lx6464es/lx_core.c dev_dbg(chip->card->dev, card 1131 sound/pci/lx6464es/lx_core.c dev_err(chip->card->dev, card 1139 sound/pci/lx6464es/lx_core.c dev_dbg(chip->card->dev, card 1143 sound/pci/lx6464es/lx_core.c dev_err(chip->card->dev, card 1170 sound/pci/lx6464es/lx_core.c dev_dbg(chip->card->dev, "->lx_irq_enable\n"); card 1176 sound/pci/lx6464es/lx_core.c dev_dbg(chip->card->dev, "->lx_irq_disable\n"); card 726 sound/pci/maestro3.c struct snd_card *card; card 1391 sound/pci/maestro3.c dev_err(substream->pcm->card->dev, "oh my, not aligned\n"); card 1585 sound/pci/maestro3.c snd_ctl_notify(chip->card, SNDRV_CTL_EVENT_MASK_VALUE, card 1850 sound/pci/maestro3.c err = snd_pcm_new(chip->card, chip->card->driver, device, card 1860 sound/pci/maestro3.c strcpy(pcm->name, chip->card->driver); card 1888 sound/pci/maestro3.c dev_err(chip->card->dev, "ac97 serial bus busy\n"); card 2020 sound/pci/maestro3.c dev_dbg(chip->card->dev, card 2050 sound/pci/maestro3.c if ((err = snd_ac97_bus(chip->card, 0, &ops, NULL, &pbus)) < 0) card 2067 sound/pci/maestro3.c chip->master_switch = snd_ctl_find_id(chip->card, &elem_id); card 2071 sound/pci/maestro3.c chip->master_volume = snd_ctl_find_id(chip->card, &elem_id); card 2200 sound/pci/maestro3.c dev_err(chip->card->dev, card 2400 sound/pci/maestro3.c struct snd_card *card = dev_get_drvdata(dev); card 2401 sound/pci/maestro3.c struct snd_m3 *chip = card->private_data; card 2409 sound/pci/maestro3.c snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); card 2429 sound/pci/maestro3.c struct snd_card *card = dev_get_drvdata(dev); card 2430 sound/pci/maestro3.c struct snd_m3 *chip = card->private_data; card 2466 sound/pci/maestro3.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 2490 sound/pci/maestro3.c input_dev->name = chip->card->driver; card 2523 sound/pci/maestro3.c snd_m3_create(struct snd_card *card, struct pci_dev *pci, card 2543 sound/pci/maestro3.c dev_err(card->dev, card 2566 sound/pci/maestro3.c chip->card = card; card 2577 sound/pci/maestro3.c dev_info(card->dev, "set amp-gpio for '%s'\n", card 2588 sound/pci/maestro3.c dev_info(card->dev, "enabled irda workaround for '%s'\n", card 2617 sound/pci/maestro3.c err = pci_request_regions(pci, card->driver); card 2637 sound/pci/maestro3.c dev_err(card->dev, "unable to grab IRQ %d\n", pci->irq); card 2649 sound/pci/maestro3.c dev_warn(card->dev, "can't allocate apm buffer\n"); card 2652 sound/pci/maestro3.c err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops); card 2672 sound/pci/maestro3.c dev_warn(card->dev, card 2696 sound/pci/maestro3.c struct snd_card *card; card 2712 sound/pci/maestro3.c 0, &card); card 2719 sound/pci/maestro3.c strcpy(card->driver, "Allegro"); card 2723 sound/pci/maestro3.c strcpy(card->driver, "Canyon3D-2"); card 2726 sound/pci/maestro3.c strcpy(card->driver, "Maestro3"); card 2730 sound/pci/maestro3.c err = snd_m3_create(card, pci, external_amp[dev], amp_gpio[dev], &chip); card 2734 sound/pci/maestro3.c card->private_data = chip; card 2736 sound/pci/maestro3.c sprintf(card->shortname, "ESS %s PCI", card->driver); card 2737 sound/pci/maestro3.c sprintf(card->longname, "%s at 0x%lx, irq %d", card 2738 sound/pci/maestro3.c card->shortname, chip->iobase, chip->irq); card 2740 sound/pci/maestro3.c err = snd_card_register(card); card 2746 sound/pci/maestro3.c err = snd_mpu401_uart_new(chip->card, 0, MPU401_HW_MPU401, card 2751 sound/pci/maestro3.c dev_warn(card->dev, "no MIDI support.\n"); card 2754 sound/pci/maestro3.c pci_set_drvdata(pci, card); card 2759 sound/pci/maestro3.c snd_card_free(card); card 255 sound/pci/mixart/mixart.c dev_dbg(chip->card->dev, card 307 sound/pci/mixart/mixart.c dev_err(chip->card->dev, card 424 sound/pci/mixart/mixart.c dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_TRIGGER_START\n"); card 441 sound/pci/mixart/mixart.c dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_TRIGGER_STOP\n"); card 448 sound/pci/mixart/mixart.c dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_PAUSE_PUSH\n"); card 453 sound/pci/mixart/mixart.c dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_PAUSE_RELEASE\n"); card 485 sound/pci/mixart/mixart.c dev_dbg(chip->card->dev, "snd_mixart_prepare\n"); card 553 sound/pci/mixart/mixart.c dev_err(chip->card->dev, card 558 sound/pci/mixart/mixart.c dev_dbg(chip->card->dev, card 579 sound/pci/mixart/mixart.c dev_err(chip->card->dev, card 642 sound/pci/mixart/mixart.c dev_dbg(chip->card->dev, card 730 sound/pci/mixart/mixart.c dev_dbg(chip->card->dev, card 739 sound/pci/mixart/mixart.c dev_err(chip->card->dev, card 757 sound/pci/mixart/mixart.c dev_err(chip->card->dev, "error starting pipe!\n"); card 812 sound/pci/mixart/mixart.c dev_dbg(chip->card->dev, "snd_mixart_capture_open C%d/P%d/Sub%d\n", card 820 sound/pci/mixart/mixart.c dev_err(chip->card->dev, card 838 sound/pci/mixart/mixart.c dev_err(chip->card->dev, "error starting pipe!\n"); card 878 sound/pci/mixart/mixart.c dev_dbg(chip->card->dev, "snd_mixart_close C%d/P%d/Sub%d\n", card 889 sound/pci/mixart/mixart.c dev_err(chip->card->dev, card 963 sound/pci/mixart/mixart.c if ((err = snd_pcm_new(chip->card, name, MIXART_PCM_ANALOG, card 966 sound/pci/mixart/mixart.c dev_err(chip->card->dev, card 996 sound/pci/mixart/mixart.c if ((err = snd_pcm_new(chip->card, name, MIXART_PCM_DIGITAL, card 999 sound/pci/mixart/mixart.c dev_err(chip->card->dev, card 1034 sound/pci/mixart/mixart.c static int snd_mixart_create(struct mixart_mgr *mgr, struct snd_card *card, int idx) card 1046 sound/pci/mixart/mixart.c chip->card = card; card 1050 sound/pci/mixart/mixart.c if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops)) < 0) { card 1086 sound/pci/mixart/mixart.c snd_card_free(mgr->chip[i]->card); card 1210 sound/pci/mixart/mixart.c snd_card_ro_proc_new(chip->card, "board_info", chip, card 1213 sound/pci/mixart/mixart.c if (! snd_card_proc_new(chip->card, "mixart_BA0", &entry)) { card 1219 sound/pci/mixart/mixart.c if (! snd_card_proc_new(chip->card, "mixart_BA1", &entry)) { card 1315 sound/pci/mixart/mixart.c struct snd_card *card; card 1325 sound/pci/mixart/mixart.c 0, &card); card 1333 sound/pci/mixart/mixart.c strcpy(card->driver, CARD_NAME); card 1334 sound/pci/mixart/mixart.c snprintf(card->shortname, sizeof(card->shortname), card 1336 sound/pci/mixart/mixart.c snprintf(card->longname, sizeof(card->longname), card 1340 sound/pci/mixart/mixart.c if ((err = snd_mixart_create(mgr, card, i)) < 0) { card 1341 sound/pci/mixart/mixart.c snd_card_free(card); card 1351 sound/pci/mixart/mixart.c if ((err = snd_card_register(card)) < 0) { card 153 sound/pci/mixart/mixart.h struct snd_card *card; card 538 sound/pci/mixart/mixart_hwdep.c if ((err = snd_card_register(chip->card)) < 0) card 319 sound/pci/mixart/mixart_mixer.c dev_dbg(chip->card->dev, card 754 sound/pci/mixart/mixart_mixer.c dev_dbg(chip->card->dev, card 799 sound/pci/mixart/mixart_mixer.c dev_dbg(chip->card->dev, card 973 sound/pci/mixart/mixart_mixer.c dev_dbg(chip->card->dev, card 1117 sound/pci/mixart/mixart_mixer.c if ((err = snd_ctl_add(chip->card, snd_ctl_new1(&temp, chip))) < 0) card 1120 sound/pci/mixart/mixart_mixer.c if ((err = snd_ctl_add(chip->card, snd_ctl_new1(&mixart_control_output_switch, chip))) < 0) card 1128 sound/pci/mixart/mixart_mixer.c if ((err = snd_ctl_add(chip->card, snd_ctl_new1(&temp, chip))) < 0) card 1136 sound/pci/mixart/mixart_mixer.c if ((err = snd_ctl_add(chip->card, snd_ctl_new1(&temp, chip))) < 0) card 1142 sound/pci/mixart/mixart_mixer.c if ((err = snd_ctl_add(chip->card, snd_ctl_new1(&temp, chip))) < 0) card 1149 sound/pci/mixart/mixart_mixer.c if ((err = snd_ctl_add(chip->card, snd_ctl_new1(&temp, chip))) < 0) card 1155 sound/pci/mixart/mixart_mixer.c if ((err = snd_ctl_add(chip->card, snd_ctl_new1(&temp, chip))) < 0) card 1161 sound/pci/mixart/mixart_mixer.c if ((err = snd_ctl_add(chip->card, snd_ctl_new1(&temp, chip))) < 0) card 1167 sound/pci/mixart/mixart_mixer.c if ((err = snd_ctl_add(chip->card, snd_ctl_new1(&temp, chip))) < 0) card 1172 sound/pci/mixart/mixart_mixer.c if ((err = snd_ctl_add(chip->card, snd_ctl_new1(&mixart_control_monitor_vol, chip))) < 0) card 1174 sound/pci/mixart/mixart_mixer.c if ((err = snd_ctl_add(chip->card, snd_ctl_new1(&mixart_control_monitor_sw, chip))) < 0) card 195 sound/pci/nm256/nm256.c struct snd_card *card; card 307 sound/pci/nm256/nm256.c dev_err(chip->card->dev, card 356 sound/pci/nm256/nm256.c dev_dbg(chip->card->dev, card 457 sound/pci/nm256/nm256.c dev_err(chip->card->dev, card 949 sound/pci/nm256/nm256.c err = snd_pcm_new(chip->card, chip->card->driver, device, card 1048 sound/pci/nm256/nm256.c dev_dbg(chip->card->dev, "NM256: Got misc interrupt #1\n"); card 1057 sound/pci/nm256/nm256.c dev_dbg(chip->card->dev, "NM256: Got misc interrupt #2\n"); card 1064 sound/pci/nm256/nm256.c dev_dbg(chip->card->dev, card 1114 sound/pci/nm256/nm256.c dev_dbg(chip->card->dev, "NM256: Got misc interrupt #1\n"); card 1122 sound/pci/nm256/nm256.c dev_dbg(chip->card->dev, "NM256: Got misc interrupt #2\n"); card 1129 sound/pci/nm256/nm256.c dev_dbg(chip->card->dev, card 1256 sound/pci/nm256/nm256.c dev_dbg(chip->card->dev, "nm256: ac97 codec not ready..\n"); card 1323 sound/pci/nm256/nm256.c if ((err = snd_ac97_bus(chip->card, 0, &ops, NULL, &pbus)) < 0) card 1336 sound/pci/nm256/nm256.c sprintf(chip->card->mixername, "%s AC97", chip->card->driver); card 1358 sound/pci/nm256/nm256.c dev_err(chip->card->dev, card 1373 sound/pci/nm256/nm256.c dev_err(chip->card->dev, card 1379 sound/pci/nm256/nm256.c dev_info(chip->card->dev, card 1398 sound/pci/nm256/nm256.c struct snd_card *card = dev_get_drvdata(dev); card 1399 sound/pci/nm256/nm256.c struct nm256 *chip = card->private_data; card 1401 sound/pci/nm256/nm256.c snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); card 1409 sound/pci/nm256/nm256.c struct snd_card *card = dev_get_drvdata(dev); card 1410 sound/pci/nm256/nm256.c struct nm256 *chip = card->private_data; card 1430 sound/pci/nm256/nm256.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 1469 sound/pci/nm256/nm256.c snd_nm256_create(struct snd_card *card, struct pci_dev *pci, card 1490 sound/pci/nm256/nm256.c chip->card = card; card 1514 sound/pci/nm256/nm256.c card->driver); card 1516 sound/pci/nm256/nm256.c dev_err(card->dev, "memory region 0x%lx (size 0x%x) busy\n", card 1523 sound/pci/nm256/nm256.c dev_err(card->dev, "unable to map control port %lx\n", card 1529 sound/pci/nm256/nm256.c if (!strcmp(card->driver, "NM256AV")) { card 1534 sound/pci/nm256/nm256.c dev_err(card->dev, card 1536 sound/pci/nm256/nm256.c dev_err(card->dev, card 1538 sound/pci/nm256/nm256.c dev_err(card->dev, card 1540 sound/pci/nm256/nm256.c dev_err(card->dev, card 1580 sound/pci/nm256/nm256.c dev_info(card->dev, "Mapping port 1 from 0x%x - 0x%x\n", card 1585 sound/pci/nm256/nm256.c card->driver); card 1587 sound/pci/nm256/nm256.c dev_err(card->dev, "buffer 0x%lx (size 0x%x) busy\n", card 1595 sound/pci/nm256/nm256.c dev_err(card->dev, "unable to map ring buffer at %lx\n", card 1623 sound/pci/nm256/nm256.c if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops)) < 0) card 1651 sound/pci/nm256/nm256.c struct snd_card *card; card 1674 sound/pci/nm256/nm256.c err = snd_card_new(&pci->dev, index, id, THIS_MODULE, 0, &card); card 1680 sound/pci/nm256/nm256.c strcpy(card->driver, "NM256AV"); card 1683 sound/pci/nm256/nm256.c strcpy(card->driver, "NM256ZX"); card 1686 sound/pci/nm256/nm256.c strcpy(card->driver, "NM256XL+"); card 1690 sound/pci/nm256/nm256.c snd_card_free(card); card 1705 sound/pci/nm256/nm256.c if ((err = snd_nm256_create(card, pci, &chip)) < 0) { card 1706 sound/pci/nm256/nm256.c snd_card_free(card); card 1709 sound/pci/nm256/nm256.c card->private_data = chip; card 1723 sound/pci/nm256/nm256.c snd_card_free(card); card 1727 sound/pci/nm256/nm256.c sprintf(card->shortname, "NeoMagic %s", card->driver); card 1728 sound/pci/nm256/nm256.c sprintf(card->longname, "%s at 0x%lx & 0x%lx, irq %d", card 1729 sound/pci/nm256/nm256.c card->shortname, card 1732 sound/pci/nm256/nm256.c if ((err = snd_card_register(card)) < 0) { card 1733 sound/pci/nm256/nm256.c snd_card_free(card); card 1737 sound/pci/nm256/nm256.c pci_set_drvdata(pci, card); card 210 sound/pci/oxygen/oxygen.c snd_component_add(chip->card, "AK4396"); card 217 sound/pci/oxygen/oxygen.c snd_component_add(chip->card, "AK5385"); card 237 sound/pci/oxygen/oxygen.c snd_component_add(chip->card, "WM8785"); card 284 sound/pci/oxygen/oxygen.c snd_component_add(chip->card, "CS5340"); card 620 sound/pci/oxygen/oxygen.c return snd_ctl_add(chip->card, snd_ctl_new1(&rolloff_control, chip)); card 630 sound/pci/oxygen/oxygen.c err = snd_ctl_add(chip->card, snd_ctl_new1(&hpf_control, chip)); card 643 sound/pci/oxygen/oxygen.c err = snd_ctl_add(chip->card, card 657 sound/pci/oxygen/oxygen.c err = snd_ctl_add(chip->card, card 671 sound/pci/oxygen/oxygen.c err = snd_ctl_add(chip->card, card 123 sound/pci/oxygen/oxygen.h struct snd_card *card; card 138 sound/pci/oxygen/oxygen_io.c dev_err(chip->card->dev, "AC'97 write timeout\n"); card 170 sound/pci/oxygen/oxygen_io.c dev_err(chip->card->dev, "AC'97 read timeout on codec %u\n", codec); card 199 sound/pci/oxygen/oxygen_io.c dev_err(chip->card->dev, "oxygen: SPI wait timeout\n"); card 279 sound/pci/oxygen/oxygen_io.c dev_err(chip->card->dev, "EEPROM write timeout\n"); card 174 sound/pci/oxygen/oxygen_lib.c snd_ctl_notify(chip->card, SNDRV_CTL_EVENT_MASK_VALUE, card 235 sound/pci/oxygen/oxygen_lib.c snd_card_ro_proc_new(chip->card, "oxygen", chip, oxygen_proc_read); card 297 sound/pci/oxygen/oxygen_lib.c dev_info(chip->card->dev, "EEPROM ID restored\n"); card 568 sound/pci/oxygen/oxygen_lib.c static void oxygen_card_free(struct snd_card *card) card 570 sound/pci/oxygen/oxygen_lib.c struct oxygen *chip = card->private_data; card 592 sound/pci/oxygen/oxygen_lib.c struct snd_card *card; card 598 sound/pci/oxygen/oxygen_lib.c sizeof(*chip), &card); card 602 sound/pci/oxygen/oxygen_lib.c chip = card->private_data; card 603 sound/pci/oxygen/oxygen_lib.c chip->card = card; card 619 sound/pci/oxygen/oxygen_lib.c dev_err(card->dev, "cannot reserve PCI resources\n"); card 625 sound/pci/oxygen/oxygen_lib.c dev_err(card->dev, "invalid PCI I/O range\n"); card 651 sound/pci/oxygen/oxygen_lib.c card->private_free = oxygen_card_free; card 660 sound/pci/oxygen/oxygen_lib.c dev_err(card->dev, "cannot grab interrupt %d\n", pci->irq); card 665 sound/pci/oxygen/oxygen_lib.c strcpy(card->driver, chip->model.chip); card 666 sound/pci/oxygen/oxygen_lib.c strcpy(card->shortname, chip->model.shortname); card 667 sound/pci/oxygen/oxygen_lib.c sprintf(card->longname, "%s at %#lx, irq %i", card 669 sound/pci/oxygen/oxygen_lib.c strcpy(card->mixername, chip->model.chip); card 670 sound/pci/oxygen/oxygen_lib.c snd_component_add(card, chip->model.chip); card 687 sound/pci/oxygen/oxygen_lib.c err = snd_mpu401_uart_new(card, 0, MPU401_HW_CMIPCI, card 704 sound/pci/oxygen/oxygen_lib.c err = snd_card_register(card); card 708 sound/pci/oxygen/oxygen_lib.c pci_set_drvdata(pci, card); card 716 sound/pci/oxygen/oxygen_lib.c snd_card_free(card); card 730 sound/pci/oxygen/oxygen_lib.c struct snd_card *card = dev_get_drvdata(dev); card 731 sound/pci/oxygen/oxygen_lib.c struct oxygen *chip = card->private_data; card 734 sound/pci/oxygen/oxygen_lib.c snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); card 781 sound/pci/oxygen/oxygen_lib.c struct snd_card *card = dev_get_drvdata(dev); card 782 sound/pci/oxygen/oxygen_lib.c struct oxygen *chip = card->private_data; card 800 sound/pci/oxygen/oxygen_lib.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 810 sound/pci/oxygen/oxygen_lib.c struct snd_card *card = pci_get_drvdata(pci); card 811 sound/pci/oxygen/oxygen_lib.c struct oxygen *chip = card->private_data; card 537 sound/pci/oxygen/oxygen_mixer.c snd_ctl_notify(chip->card, SNDRV_CTL_EVENT_MASK_VALUE, card 1074 sound/pci/oxygen/oxygen_mixer.c err = snd_ctl_add(chip->card, ctl); card 180 sound/pci/oxygen/oxygen_pcm.c snd_ctl_notify(chip->card, SNDRV_CTL_EVENT_MASK_VALUE | card 229 sound/pci/oxygen/oxygen_pcm.c snd_ctl_notify(chip->card, SNDRV_CTL_EVENT_MASK_VALUE | card 698 sound/pci/oxygen/oxygen_pcm.c err = snd_pcm_new(chip->card, "Multichannel", card 730 sound/pci/oxygen/oxygen_pcm.c err = snd_pcm_new(chip->card, "Digital", 1, outs, ins, &pcm); card 755 sound/pci/oxygen/oxygen_pcm.c err = snd_pcm_new(chip->card, outs ? "AC97" : "Analog2", card 779 sound/pci/oxygen/oxygen_pcm.c err = snd_pcm_new(chip->card, "Analog3", 3, 0, ins, &pcm); card 55 sound/pci/oxygen/se6x.c snd_component_add(chip->card, "PCM1792A"); card 56 sound/pci/oxygen/se6x.c snd_component_add(chip->card, "PCM1804"); card 170 sound/pci/oxygen/xonar_cs43xx.c snd_component_add(chip->card, "CS4398"); card 171 sound/pci/oxygen/xonar_cs43xx.c snd_component_add(chip->card, "CS4362A"); card 172 sound/pci/oxygen/xonar_cs43xx.c snd_component_add(chip->card, "CS5361"); card 357 sound/pci/oxygen/xonar_cs43xx.c err = snd_ctl_add(chip->card, snd_ctl_new1(&front_panel_switch, chip)); card 360 sound/pci/oxygen/xonar_cs43xx.c err = snd_ctl_add(chip->card, snd_ctl_new1(&rolloff_control, chip)); card 145 sound/pci/oxygen/xonar_dg.c snd_component_add(chip->card, "CS4245"); card 433 sound/pci/oxygen/xonar_dg_mixer.c err = snd_ctl_add(chip->card, card 112 sound/pci/oxygen/xonar_hdmi.c dev_dbg(chip->card->dev, "message from HDMI chip received:\n"); card 48 sound/pci/oxygen/xonar_lib.c dev_notice(chip->card->dev, "power restored\n"); card 50 sound/pci/oxygen/xonar_lib.c dev_crit(chip->card->dev, card 352 sound/pci/oxygen/xonar_pcm179x.c snd_component_add(chip->card, "PCM1796"); card 353 sound/pci/oxygen/xonar_pcm179x.c snd_component_add(chip->card, "CS5381"); card 396 sound/pci/oxygen/xonar_pcm179x.c snd_component_add(chip->card, "PCM1796"); card 397 sound/pci/oxygen/xonar_pcm179x.c snd_component_add(chip->card, "CS5381"); card 428 sound/pci/oxygen/xonar_pcm179x.c snd_component_add(chip->card, "PCM1792A"); card 429 sound/pci/oxygen/xonar_pcm179x.c snd_component_add(chip->card, "CS5381"); card 479 sound/pci/oxygen/xonar_pcm179x.c snd_component_add(chip->card, "CS2000"); card 535 sound/pci/oxygen/xonar_pcm179x.c snd_component_add(chip->card, "PCM1796"); card 536 sound/pci/oxygen/xonar_pcm179x.c snd_component_add(chip->card, "CS5381"); card 537 sound/pci/oxygen/xonar_pcm179x.c snd_component_add(chip->card, "CS2000"); card 1062 sound/pci/oxygen/xonar_pcm179x.c err = snd_ctl_add(chip->card, card 1066 sound/pci/oxygen/xonar_pcm179x.c err = snd_ctl_add(chip->card, card 1078 sound/pci/oxygen/xonar_pcm179x.c err = snd_ctl_add(chip->card, snd_ctl_new1(&alt_switch, chip)); card 1091 sound/pci/oxygen/xonar_pcm179x.c err = snd_ctl_add(chip->card, snd_ctl_new1(&hdav_hdmi_control, chip)); card 1106 sound/pci/oxygen/xonar_pcm179x.c err = snd_ctl_add(chip->card, card 1123 sound/pci/oxygen/xonar_pcm179x.c err = snd_ctl_add(chip->card, card 277 sound/pci/oxygen/xonar_wm87x6.c snd_jack_new(chip->card, "Headphone", card 281 sound/pci/oxygen/xonar_wm87x6.c snd_component_add(chip->card, "WM8776"); card 282 sound/pci/oxygen/xonar_wm87x6.c snd_component_add(chip->card, "WM8766"); card 302 sound/pci/oxygen/xonar_wm87x6.c snd_component_add(chip->card, "WM8776"); card 783 sound/pci/oxygen/xonar_wm87x6.c snd_ctl_notify(chip->card, SNDRV_CTL_EVENT_MASK_VALUE, card 881 sound/pci/oxygen/xonar_wm87x6.c snd_ctl_notify(chip->card, SNDRV_CTL_EVENT_MASK_INFO, &ctl->id); card 1167 sound/pci/oxygen/xonar_wm87x6.c err = snd_ctl_add(chip->card, ctl); card 1186 sound/pci/oxygen/xonar_wm87x6.c err = snd_ctl_add(chip->card, ctl); card 1210 sound/pci/oxygen/xonar_wm87x6.c err = snd_ctl_add(chip->card, ctl); card 502 sound/pci/pcxhr/pcxhr.c dev_err(chip->card->dev, card 527 sound/pci/pcxhr/pcxhr.c dev_err(chip->card->dev, card 573 sound/pci/pcxhr/pcxhr.c dev_err(chip->card->dev, card 618 sound/pci/pcxhr/pcxhr.c dev_err(chip->card->dev, card 633 sound/pci/pcxhr/pcxhr.c dev_dbg(chip->card->dev, card 656 sound/pci/pcxhr/pcxhr.c dev_err(chip->card->dev, card 677 sound/pci/pcxhr/pcxhr.c dev_dbg(chip->card->dev, "PIPE_SAMPLE_COUNT = %lx\n", *sample_count); card 833 sound/pci/pcxhr/pcxhr.c dev_dbg(chip->card->dev, "SNDRV_PCM_TRIGGER_START\n"); card 846 sound/pci/pcxhr/pcxhr.c dev_dbg(chip->card->dev, "Only one Substream %c %d\n", card 861 sound/pci/pcxhr/pcxhr.c dev_dbg(chip->card->dev, "SNDRV_PCM_TRIGGER_STOP\n"); card 907 sound/pci/pcxhr/pcxhr.c dev_dbg(chip->card->dev, card 1017 sound/pci/pcxhr/pcxhr.c dev_dbg(chip->card->dev, "pcxhr_open playback chip%d subs%d\n", card 1021 sound/pci/pcxhr/pcxhr.c dev_dbg(chip->card->dev, "pcxhr_open capture chip%d subs%d\n", card 1031 sound/pci/pcxhr/pcxhr.c dev_err(chip->card->dev, "pcxhr_open chip%d subs%d in use\n", card 1097 sound/pci/pcxhr/pcxhr.c dev_dbg(chip->card->dev, "pcxhr_close chip%d subs%d\n", card 1156 sound/pci/pcxhr/pcxhr.c if ((err = snd_pcm_new(chip->card, name, 0, card 1159 sound/pci/pcxhr/pcxhr.c dev_err(chip->card->dev, "cannot create pcm %s\n", name); card 1196 sound/pci/pcxhr/pcxhr.c struct snd_card *card, int idx) card 1208 sound/pci/pcxhr/pcxhr.c chip->card = card; card 1223 sound/pci/pcxhr/pcxhr.c if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops)) < 0) { card 1444 sound/pci/pcxhr/pcxhr.c snd_card_ro_proc_new(chip->card, "info", chip, pcxhr_proc_info); card 1445 sound/pci/pcxhr/pcxhr.c snd_card_ro_proc_new(chip->card, "sync", chip, pcxhr_proc_sync); card 1448 sound/pci/pcxhr/pcxhr.c snd_card_rw_proc_new(chip->card, "gpio", chip, card 1451 sound/pci/pcxhr/pcxhr.c snd_card_ro_proc_new(chip->card, "ltc", chip, pcxhr_proc_ltc); card 1464 sound/pci/pcxhr/pcxhr.c snd_card_free(mgr->chip[i]->card); card 1599 sound/pci/pcxhr/pcxhr.c struct snd_card *card; card 1615 sound/pci/pcxhr/pcxhr.c 0, &card); card 1623 sound/pci/pcxhr/pcxhr.c strcpy(card->driver, DRIVER_NAME); card 1624 sound/pci/pcxhr/pcxhr.c snprintf(card->shortname, sizeof(card->shortname), card 1626 sound/pci/pcxhr/pcxhr.c snprintf(card->longname, sizeof(card->longname), card 1629 sound/pci/pcxhr/pcxhr.c if ((err = pcxhr_create(mgr, card, i)) < 0) { card 1630 sound/pci/pcxhr/pcxhr.c snd_card_free(card); card 1639 sound/pci/pcxhr/pcxhr.c if ((err = snd_card_register(card)) < 0) { card 154 sound/pci/pcxhr/pcxhr.h struct snd_card *card; card 332 sound/pci/pcxhr/pcxhr_hwdep.c if ((err = snd_card_register(chip->card)) < 0) card 536 sound/pci/pcxhr/pcxhr_mix22.c dev_dbg(chip->card->dev, card 637 sound/pci/pcxhr/pcxhr_mix22.c dev_dbg(chip->card->dev, "read iec958 AES %d byte %d = 0x%x\n", card 842 sound/pci/pcxhr/pcxhr_mix22.c err = snd_ctl_add(chip->card, snd_ctl_new1(&hr222_control_mic_level, card 847 sound/pci/pcxhr/pcxhr_mix22.c err = snd_ctl_add(chip->card, snd_ctl_new1(&hr222_control_mic_boost, card 852 sound/pci/pcxhr/pcxhr_mix22.c err = snd_ctl_add(chip->card, snd_ctl_new1(&hr222_phantom_power_switch, card 62 sound/pci/pcxhr/pcxhr_mixer.c dev_dbg(chip->card->dev, card 275 sound/pci/pcxhr/pcxhr_mixer.c dev_dbg(chip->card->dev, "error update_playback_stream_level " card 326 sound/pci/pcxhr/pcxhr_mixer.c dev_dbg(chip->card->dev, card 908 sound/pci/pcxhr/pcxhr_mixer.c dev_dbg(chip->card->dev, "read iec958 AES %d byte %d = 0x%x\n", card 970 sound/pci/pcxhr/pcxhr_mixer.c dev_dbg(chip->card->dev, card 1123 sound/pci/pcxhr/pcxhr_mixer.c err = snd_ctl_add(chip->card, card 1129 sound/pci/pcxhr/pcxhr_mixer.c err = snd_ctl_add(chip->card, card 1139 sound/pci/pcxhr/pcxhr_mixer.c err = snd_ctl_add(chip->card, card 1144 sound/pci/pcxhr/pcxhr_mixer.c err = snd_ctl_add(chip->card, card 1150 sound/pci/pcxhr/pcxhr_mixer.c err = snd_ctl_add(chip->card, card 1156 sound/pci/pcxhr/pcxhr_mixer.c err = snd_ctl_add(chip->card, card 1172 sound/pci/pcxhr/pcxhr_mixer.c err = snd_ctl_add(chip->card, card 1182 sound/pci/pcxhr/pcxhr_mixer.c err = snd_ctl_add(chip->card, card 1188 sound/pci/pcxhr/pcxhr_mixer.c err = snd_ctl_add(chip->card, card 1194 sound/pci/pcxhr/pcxhr_mixer.c err = snd_ctl_add(chip->card, card 1200 sound/pci/pcxhr/pcxhr_mixer.c err = snd_ctl_add(chip->card, card 1215 sound/pci/pcxhr/pcxhr_mixer.c err = snd_ctl_add(chip->card, card 1220 sound/pci/pcxhr/pcxhr_mixer.c err = snd_ctl_add(chip->card, card 1228 sound/pci/pcxhr/pcxhr_mixer.c err = snd_ctl_add(chip->card, card 1235 sound/pci/pcxhr/pcxhr_mixer.c err = snd_ctl_add(chip->card, card 416 sound/pci/riptide/riptide.c struct snd_card *card; card 1142 sound/pci/riptide/riptide.c struct snd_card *card = dev_get_drvdata(dev); card 1143 sound/pci/riptide/riptide.c struct snd_riptide *chip = card->private_data; card 1146 sound/pci/riptide/riptide.c snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); card 1153 sound/pci/riptide/riptide.c struct snd_card *card = dev_get_drvdata(dev); card 1154 sound/pci/riptide/riptide.c struct snd_riptide *chip = card->private_data; card 1158 sound/pci/riptide/riptide.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 1686 sound/pci/riptide/riptide.c snd_pcm_new(chip->card, "RIPTIDE", device, PLAYBACK_SUBSTREAMS, 1, card 1827 sound/pci/riptide/riptide.c snd_riptide_create(struct snd_card *card, struct pci_dev *pci, card 1844 sound/pci/riptide/riptide.c chip->card = card; card 1880 sound/pci/riptide/riptide.c if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops)) < 0) { card 1904 sound/pci/riptide/riptide.c snd_iprintf(buffer, "%s\n\n", chip->card->longname); card 1962 sound/pci/riptide/riptide.c snd_card_ro_proc_new(chip->card, "riptide", chip, card 1980 sound/pci/riptide/riptide.c if ((err = snd_ac97_bus(chip->card, 0, &ops, chip, &pbus)) < 0) card 2050 sound/pci/riptide/riptide.c struct snd_card *card; card 2063 sound/pci/riptide/riptide.c 0, &card); card 2066 sound/pci/riptide/riptide.c err = snd_riptide_create(card, pci, &chip); card 2069 sound/pci/riptide/riptide.c card->private_data = chip; card 2091 sound/pci/riptide/riptide.c err = snd_mpu401_uart_new(card, 0, MPU401_HW_RIPTIDE, card 2104 sound/pci/riptide/riptide.c err = snd_opl3_create(card, val, val + 2, card 2126 sound/pci/riptide/riptide.c strcpy(card->driver, "RIPTIDE"); card 2127 sound/pci/riptide/riptide.c strcpy(card->shortname, "Riptide"); card 2129 sound/pci/riptide/riptide.c snprintf(card->longname, sizeof(card->longname), card 2131 sound/pci/riptide/riptide.c card->shortname, chip->port, chip->irq, chip->mpuaddr, card 2134 sound/pci/riptide/riptide.c snprintf(card->longname, sizeof(card->longname), card 2136 sound/pci/riptide/riptide.c card->shortname, chip->port, chip->irq, chip->mpuaddr, card 2140 sound/pci/riptide/riptide.c err = snd_card_register(card); card 2143 sound/pci/riptide/riptide.c pci_set_drvdata(pci, card); card 2148 sound/pci/riptide/riptide.c snd_card_free(card); card 207 sound/pci/rme32.c struct snd_card *card; card 234 sound/pci/rme32.c static int snd_rme32_create_switches(struct snd_card *card, struct rme32 * rme32); card 887 sound/pci/rme32.c snd_ctl_notify(rme32->card, SNDRV_CTL_EVENT_MASK_VALUE | card 1011 sound/pci/rme32.c snd_ctl_notify(rme32->card, SNDRV_CTL_EVENT_MASK_VALUE | card 1349 sound/pci/rme32.c dev_err(rme32->card->dev, card 1357 sound/pci/rme32.c dev_err(rme32->card->dev, "unable to grab IRQ %d\n", pci->irq); card 1366 sound/pci/rme32.c if ((err = snd_pcm_new(rme32->card, "Digi32 IEC958", 0, 1, 1, &rme32->spdif_pcm)) < 0) { card 1396 sound/pci/rme32.c if ((err = snd_pcm_new(rme32->card, "Digi32 ADAT", 1, card 1443 sound/pci/rme32.c if ((err = snd_rme32_create_switches(rme32->card, rme32)) < 0) { card 1468 sound/pci/rme32.c snd_iprintf(buffer, rme32->card->longname); card 1469 sound/pci/rme32.c snd_iprintf(buffer, " (index #%d)\n", rme32->card->number + 1); card 1557 sound/pci/rme32.c snd_card_ro_proc_new(rme32->card, "rme32", rme32, snd_rme32_proc_read); card 1882 sound/pci/rme32.c static int snd_rme32_create_switches(struct snd_card *card, struct rme32 * rme32) card 1888 sound/pci/rme32.c if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_rme32_controls[idx], rme32))) < 0) card 1901 sound/pci/rme32.c static void snd_rme32_card_free(struct snd_card *card) card 1903 sound/pci/rme32.c snd_rme32_free(card->private_data); card 1911 sound/pci/rme32.c struct snd_card *card; card 1923 sound/pci/rme32.c sizeof(struct rme32), &card); card 1926 sound/pci/rme32.c card->private_free = snd_rme32_card_free; card 1927 sound/pci/rme32.c rme32 = (struct rme32 *) card->private_data; card 1928 sound/pci/rme32.c rme32->card = card; card 1933 sound/pci/rme32.c snd_card_free(card); card 1937 sound/pci/rme32.c strcpy(card->driver, "Digi32"); card 1940 sound/pci/rme32.c strcpy(card->shortname, "RME Digi32"); card 1943 sound/pci/rme32.c strcpy(card->shortname, "RME Digi32/8"); card 1946 sound/pci/rme32.c strcpy(card->shortname, "RME Digi32 PRO"); card 1949 sound/pci/rme32.c sprintf(card->longname, "%s (Rev. %d) at 0x%lx, irq %d", card 1950 sound/pci/rme32.c card->shortname, rme32->rev, rme32->port, rme32->irq); card 1952 sound/pci/rme32.c if ((err = snd_card_register(card)) < 0) { card 1953 sound/pci/rme32.c snd_card_free(card); card 1956 sound/pci/rme32.c pci_set_drvdata(pci, card); card 244 sound/pci/rme96.c struct snd_card *card; card 294 sound/pci/rme96.c snd_rme96_create_switches(struct snd_card *card, card 1211 sound/pci/rme96.c snd_ctl_notify(rme96->card, SNDRV_CTL_EVENT_MASK_VALUE | card 1331 sound/pci/rme96.c snd_ctl_notify(rme96->card, SNDRV_CTL_EVENT_MASK_VALUE | card 1624 sound/pci/rme96.c dev_err(rme96->card->dev, card 1632 sound/pci/rme96.c dev_err(rme96->card->dev, "unable to grab IRQ %d\n", pci->irq); card 1641 sound/pci/rme96.c if ((err = snd_pcm_new(rme96->card, "Digi96 IEC958", 0, card 1659 sound/pci/rme96.c if ((err = snd_pcm_new(rme96->card, "Digi96 ADAT", 1, card 1712 sound/pci/rme96.c if ((err = snd_rme96_create_switches(rme96->card, rme96)) < 0) { card 1734 sound/pci/rme96.c snd_iprintf(buffer, rme96->card->longname); card 1735 sound/pci/rme96.c snd_iprintf(buffer, " (index #%d)\n", rme96->card->number + 1); card 1857 sound/pci/rme96.c snd_card_ro_proc_new(rme96->card, "rme96", rme96, snd_rme96_proc_read); card 2340 sound/pci/rme96.c snd_rme96_create_switches(struct snd_card *card, card 2347 sound/pci/rme96.c if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_rme96_controls[idx], rme96))) < 0) card 2355 sound/pci/rme96.c if ((err = snd_ctl_add(card, snd_ctl_new1(&snd_rme96_controls[idx], rme96))) < 0) card 2370 sound/pci/rme96.c struct snd_card *card = dev_get_drvdata(dev); card 2371 sound/pci/rme96.c struct rme96 *rme96 = card->private_data; card 2373 sound/pci/rme96.c snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); card 2395 sound/pci/rme96.c struct snd_card *card = dev_get_drvdata(dev); card 2396 sound/pci/rme96.c struct rme96 *rme96 = card->private_data; card 2424 sound/pci/rme96.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 2435 sound/pci/rme96.c static void snd_rme96_card_free(struct snd_card *card) card 2437 sound/pci/rme96.c snd_rme96_free(card->private_data); card 2446 sound/pci/rme96.c struct snd_card *card; card 2458 sound/pci/rme96.c sizeof(struct rme96), &card); card 2461 sound/pci/rme96.c card->private_free = snd_rme96_card_free; card 2462 sound/pci/rme96.c rme96 = card->private_data; card 2463 sound/pci/rme96.c rme96->card = card; card 2482 sound/pci/rme96.c strcpy(card->driver, "Digi96"); card 2485 sound/pci/rme96.c strcpy(card->shortname, "RME Digi96"); card 2488 sound/pci/rme96.c strcpy(card->shortname, "RME Digi96/8"); card 2491 sound/pci/rme96.c strcpy(card->shortname, "RME Digi96/8 PRO"); card 2496 sound/pci/rme96.c strcpy(card->shortname, "RME Digi96/8 PAD"); card 2498 sound/pci/rme96.c strcpy(card->shortname, "RME Digi96/8 PST"); card 2502 sound/pci/rme96.c sprintf(card->longname, "%s at 0x%lx, irq %d", card->shortname, card 2504 sound/pci/rme96.c err = snd_card_register(card); card 2508 sound/pci/rme96.c pci_set_drvdata(pci, card); card 2512 sound/pci/rme96.c snd_card_free(card); card 487 sound/pci/rme9652/hdsp.c struct snd_card *card; card 600 sound/pci/rme9652/hdsp.c static int snd_hdsp_create_alsa_devices(struct snd_card *card, struct hdsp *hdsp); card 601 sound/pci/rme9652/hdsp.c static int snd_hdsp_create_pcm(struct snd_card *card, struct hdsp *hdsp); card 665 sound/pci/rme9652/hdsp.c dev_dbg(hdsp->card->dev, card 673 sound/pci/rme9652/hdsp.c dev_err(hdsp->card->dev, "no IO box connected!\n"); card 690 sound/pci/rme9652/hdsp.c dev_dbg(hdsp->card->dev, "iobox found after %ums!\n", card 696 sound/pci/rme9652/hdsp.c dev_info(hdsp->card->dev, "no IO box connected!\n"); card 719 sound/pci/rme9652/hdsp.c dev_info(hdsp->card->dev, "loading firmware\n"); card 725 sound/pci/rme9652/hdsp.c dev_info(hdsp->card->dev, card 736 sound/pci/rme9652/hdsp.c dev_info(hdsp->card->dev, card 753 sound/pci/rme9652/hdsp.c dev_info(hdsp->card->dev, "finished firmware loading\n"); card 757 sound/pci/rme9652/hdsp.c dev_info(hdsp->card->dev, card 790 sound/pci/rme9652/hdsp.c dev_info(hdsp->card->dev, "Digiface found\n"); card 807 sound/pci/rme9652/hdsp.c dev_info(hdsp->card->dev, "RPM found\n"); card 822 sound/pci/rme9652/hdsp.c dev_info(hdsp->card->dev, "Multiface found\n"); card 837 sound/pci/rme9652/hdsp.c dev_err(hdsp->card->dev, "firmware not present.\n"); card 842 sound/pci/rme9652/hdsp.c dev_err(hdsp->card->dev, card 847 sound/pci/rme9652/hdsp.c dev_err(hdsp->card->dev, card 876 sound/pci/rme9652/hdsp.c dev_warn(hdsp->card->dev, card 994 sound/pci/rme9652/hdsp.c dev_warn(hdsp->card->dev, card 1130 sound/pci/rme9652/hdsp.c dev_err(hdsp->card->dev, card 1139 sound/pci/rme9652/hdsp.c dev_info(hdsp->card->dev, card 1142 sound/pci/rme9652/hdsp.c dev_info(hdsp->card->dev, card 1145 sound/pci/rme9652/hdsp.c dev_info(hdsp->card->dev, card 1218 sound/pci/rme9652/hdsp.c dev_warn(hdsp->card->dev, card 1510 sound/pci/rme9652/hdsp.c static int snd_hdsp_create_midi (struct snd_card *card, struct hdsp *hdsp, int id) card 1523 sound/pci/rme9652/hdsp.c snprintf(buf, sizeof(buf), "%s MIDI %d", card->shortname, id + 1); card 1524 sound/pci/rme9652/hdsp.c if (snd_rawmidi_new (card, buf, id, 1, 1, &hdsp->midi[id].rmidi) < 0) card 3262 sound/pci/rme9652/hdsp.c static int snd_hdsp_create_controls(struct snd_card *card, struct hdsp *hdsp) card 3271 sound/pci/rme9652/hdsp.c err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_hdsp_rpm_controls[idx], hdsp)); card 3279 sound/pci/rme9652/hdsp.c if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_hdsp_controls[idx], hdsp))) < 0) card 3288 sound/pci/rme9652/hdsp.c if ((err = snd_ctl_add (card, kctl = snd_ctl_new1(&snd_hdsp_adat_sync_check, hdsp)))) card 3293 sound/pci/rme9652/hdsp.c if ((err = snd_ctl_add (card, kctl = snd_ctl_new1(&snd_hdsp_adat_sync_check, hdsp)))) card 3301 sound/pci/rme9652/hdsp.c if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_hdsp_9632_controls[idx], hdsp))) < 0) card 3308 sound/pci/rme9652/hdsp.c if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_hdsp_96xx_aeb, hdsp))) < 0) card 3335 sound/pci/rme9652/hdsp.c hdsp->card->number + 1); card 3697 sound/pci/rme9652/hdsp.c snd_card_ro_proc_new(hdsp->card, "hdsp", hdsp, snd_hdsp_proc_read); card 3714 sound/pci/rme9652/hdsp.c dev_err(hdsp->card->dev, card 4482 sound/pci/rme9652/hdsp.c snd_ctl_notify(hdsp->card, SNDRV_CTL_EVENT_MASK_VALUE | card 4501 sound/pci/rme9652/hdsp.c snd_ctl_notify(hdsp->card, SNDRV_CTL_EVENT_MASK_VALUE | card 4709 sound/pci/rme9652/hdsp.c dev_err(hdsp->card->dev, card 4821 sound/pci/rme9652/hdsp.c dev_info(hdsp->card->dev, card 4856 sound/pci/rme9652/hdsp.c if ((err = snd_hdsp_create_alsa_devices(hdsp->card, hdsp)) < 0) { card 4857 sound/pci/rme9652/hdsp.c dev_err(hdsp->card->dev, card 4901 sound/pci/rme9652/hdsp.c static int snd_hdsp_create_hwdep(struct snd_card *card, struct hdsp *hdsp) card 4906 sound/pci/rme9652/hdsp.c if ((err = snd_hwdep_new(card, "HDSP hwdep", 0, &hw)) < 0) card 4919 sound/pci/rme9652/hdsp.c static int snd_hdsp_create_pcm(struct snd_card *card, struct hdsp *hdsp) card 4924 sound/pci/rme9652/hdsp.c if ((err = snd_pcm_new(card, hdsp->card_name, 0, 1, 1, &pcm)) < 0) card 4950 sound/pci/rme9652/hdsp.c dev_err(hdsp->card->dev, card 5020 sound/pci/rme9652/hdsp.c static int snd_hdsp_create_alsa_devices(struct snd_card *card, struct hdsp *hdsp) card 5024 sound/pci/rme9652/hdsp.c if ((err = snd_hdsp_create_pcm(card, hdsp)) < 0) { card 5025 sound/pci/rme9652/hdsp.c dev_err(card->dev, card 5031 sound/pci/rme9652/hdsp.c if ((err = snd_hdsp_create_midi(card, hdsp, 0)) < 0) { card 5032 sound/pci/rme9652/hdsp.c dev_err(card->dev, card 5038 sound/pci/rme9652/hdsp.c if ((err = snd_hdsp_create_midi(card, hdsp, 1)) < 0) { card 5039 sound/pci/rme9652/hdsp.c dev_err(card->dev, card 5045 sound/pci/rme9652/hdsp.c if ((err = snd_hdsp_create_controls(card, hdsp)) < 0) { card 5046 sound/pci/rme9652/hdsp.c dev_err(card->dev, card 5060 sound/pci/rme9652/hdsp.c dev_err(card->dev, card 5066 sound/pci/rme9652/hdsp.c strcpy(card->shortname, "Hammerfall DSP"); card 5067 sound/pci/rme9652/hdsp.c sprintf(card->longname, "%s at 0x%lx, irq %d", hdsp->card_name, card 5070 sound/pci/rme9652/hdsp.c if ((err = snd_card_register(card)) < 0) { card 5071 sound/pci/rme9652/hdsp.c dev_err(card->dev, card 5115 sound/pci/rme9652/hdsp.c dev_err(hdsp->card->dev, card 5121 sound/pci/rme9652/hdsp.c dev_err(hdsp->card->dev, card 5126 sound/pci/rme9652/hdsp.c dev_err(hdsp->card->dev, card 5144 sound/pci/rme9652/hdsp.c if ((err = snd_hdsp_create_hwdep(hdsp->card, hdsp)) < 0) { card 5145 sound/pci/rme9652/hdsp.c dev_err(hdsp->card->dev, card 5151 sound/pci/rme9652/hdsp.c if ((err = snd_hdsp_create_alsa_devices(hdsp->card, hdsp)) < 0) { card 5152 sound/pci/rme9652/hdsp.c dev_err(hdsp->card->dev, card 5160 sound/pci/rme9652/hdsp.c static int snd_hdsp_create(struct snd_card *card, card 5186 sound/pci/rme9652/hdsp.c hdsp->card = card; card 5204 sound/pci/rme9652/hdsp.c strcpy(card->driver, "H-DSP"); card 5205 sound/pci/rme9652/hdsp.c strcpy(card->mixername, "Xilinx FPGA"); card 5229 sound/pci/rme9652/hdsp.c dev_err(hdsp->card->dev, "unable to remap region 0x%lx-0x%lx\n", card 5236 sound/pci/rme9652/hdsp.c dev_err(hdsp->card->dev, "unable to use IRQ %d\n", pci->irq); card 5262 sound/pci/rme9652/hdsp.c dev_err(hdsp->card->dev, card 5268 sound/pci/rme9652/hdsp.c dev_info(hdsp->card->dev, card 5270 sound/pci/rme9652/hdsp.c if ((err = snd_hdsp_create_hwdep(card, hdsp)) < 0) card 5274 sound/pci/rme9652/hdsp.c dev_info(hdsp->card->dev, card 5294 sound/pci/rme9652/hdsp.c if ((err = snd_hdsp_create_hwdep(card, hdsp)) < 0) card 5302 sound/pci/rme9652/hdsp.c if ((err = snd_hdsp_create_alsa_devices(card, hdsp)) < 0) card 5333 sound/pci/rme9652/hdsp.c static void snd_hdsp_card_free(struct snd_card *card) card 5335 sound/pci/rme9652/hdsp.c struct hdsp *hdsp = card->private_data; card 5346 sound/pci/rme9652/hdsp.c struct snd_card *card; card 5357 sound/pci/rme9652/hdsp.c sizeof(struct hdsp), &card); card 5361 sound/pci/rme9652/hdsp.c hdsp = card->private_data; card 5362 sound/pci/rme9652/hdsp.c card->private_free = snd_hdsp_card_free; card 5365 sound/pci/rme9652/hdsp.c err = snd_hdsp_create(card, hdsp); card 5369 sound/pci/rme9652/hdsp.c strcpy(card->shortname, "Hammerfall DSP"); card 5370 sound/pci/rme9652/hdsp.c sprintf(card->longname, "%s at 0x%lx, irq %d", hdsp->card_name, card 5372 sound/pci/rme9652/hdsp.c err = snd_card_register(card); card 5375 sound/pci/rme9652/hdsp.c snd_card_free(card); card 5378 sound/pci/rme9652/hdsp.c pci_set_drvdata(pci, card); card 1044 sound/pci/rme9652/hdspm.c struct snd_card *card; /* one card */ card 1085 sound/pci/rme9652/hdspm.c static int snd_hdspm_create_alsa_devices(struct snd_card *card, card 1087 sound/pci/rme9652/hdspm.c static int snd_hdspm_create_pcm(struct snd_card *card, card 1646 sound/pci/rme9652/hdspm.c dev_warn(hdspm->card->dev, card 1658 sound/pci/rme9652/hdspm.c dev_warn(hdspm->card->dev, card 1664 sound/pci/rme9652/hdspm.c dev_warn(hdspm->card->dev, card 1731 sound/pci/rme9652/hdspm.c dev_err(hdspm->card->dev, card 2050 sound/pci/rme9652/hdspm.c static int snd_hdspm_create_midi(struct snd_card *card, card 2114 sound/pci/rme9652/hdspm.c card->shortname); card 2117 sound/pci/rme9652/hdspm.c card->shortname); card 2120 sound/pci/rme9652/hdspm.c card->shortname, id+1); card 2122 sound/pci/rme9652/hdspm.c err = snd_rawmidi_new(card, buf, id, 1, 1, card 2129 sound/pci/rme9652/hdspm.c "%s MIDI %d", card->id, id+1); card 2146 sound/pci/rme9652/hdspm.c card->shortname, id+1); card 2147 sound/pci/rme9652/hdspm.c err = snd_rawmidi_new(card, buf, id, 1, 1, card 2154 sound/pci/rme9652/hdspm.c "%s MTC %d", card->id, id+1); card 4659 sound/pci/rme9652/hdspm.c snd_ctl_notify(hdspm->card, SNDRV_CTL_EVENT_MASK_VALUE | card 4668 sound/pci/rme9652/hdspm.c static int snd_hdspm_create_controls(struct snd_card *card, card 4701 sound/pci/rme9652/hdspm.c err = snd_ctl_add(card, card 4721 sound/pci/rme9652/hdspm.c err = snd_ctl_add(card, kctl); card 4733 sound/pci/rme9652/hdspm.c err = snd_ctl_add(card, card 4875 sound/pci/rme9652/hdspm.c hdspm->card_name, hdspm->card->number + 1, card 5039 sound/pci/rme9652/hdspm.c hdspm->card_name, hdspm->card->number + 1, card 5298 sound/pci/rme9652/hdspm.c snd_card_ro_proc_new(hdspm->card, "hdspm", hdspm, read); card 5299 sound/pci/rme9652/hdspm.c snd_card_ro_proc_new(hdspm->card, "ports.in", hdspm, card 5301 sound/pci/rme9652/hdspm.c snd_card_ro_proc_new(hdspm->card, "ports.out", hdspm, card 5306 sound/pci/rme9652/hdspm.c snd_card_ro_proc_new(hdspm->card, "debug", hdspm, card 5545 sound/pci/rme9652/hdspm.c dev_info(hdspm->card->dev, "err on hdspm_set_rate: %d\n", err); card 5556 sound/pci/rme9652/hdspm.c dev_info(hdspm->card->dev, card 5573 sound/pci/rme9652/hdspm.c dev_info(hdspm->card->dev, card 5593 sound/pci/rme9652/hdspm.c dev_dbg(hdspm->card->dev, card 5610 sound/pci/rme9652/hdspm.c dev_dbg(hdspm->card->dev, card 5645 sound/pci/rme9652/hdspm.c dev_info(hdspm->card->dev, card 5651 sound/pci/rme9652/hdspm.c dev_info(hdspm->card->dev, card 5694 sound/pci/rme9652/hdspm.c dev_info(hdspm->card->dev, card 5702 sound/pci/rme9652/hdspm.c dev_info(hdspm->card->dev, card 5712 sound/pci/rme9652/hdspm.c dev_info(hdspm->card->dev, card 5720 sound/pci/rme9652/hdspm.c dev_info(hdspm->card->dev, card 6374 sound/pci/rme9652/hdspm.c static int snd_hdspm_create_hwdep(struct snd_card *card, card 6380 sound/pci/rme9652/hdspm.c err = snd_hwdep_new(card, "HDSPM hwdep", 0, &hw); card 6412 sound/pci/rme9652/hdspm.c dev_dbg(hdspm->card->dev, " Preallocated %zd Bytes\n", wanted); card 6431 sound/pci/rme9652/hdspm.c static int snd_hdspm_create_pcm(struct snd_card *card, card 6437 sound/pci/rme9652/hdspm.c err = snd_pcm_new(card, hdspm->card_name, 0, 1, 1, &pcm); card 6467 sound/pci/rme9652/hdspm.c static int snd_hdspm_create_alsa_devices(struct snd_card *card, card 6472 sound/pci/rme9652/hdspm.c dev_dbg(card->dev, "Create card...\n"); card 6473 sound/pci/rme9652/hdspm.c err = snd_hdspm_create_pcm(card, hdspm); card 6479 sound/pci/rme9652/hdspm.c err = snd_hdspm_create_midi(card, hdspm, i); card 6486 sound/pci/rme9652/hdspm.c err = snd_hdspm_create_controls(card, hdspm); card 6490 sound/pci/rme9652/hdspm.c err = snd_hdspm_create_hwdep(card, hdspm); card 6494 sound/pci/rme9652/hdspm.c dev_dbg(card->dev, "proc init...\n"); card 6505 sound/pci/rme9652/hdspm.c dev_dbg(card->dev, "Set defaults...\n"); card 6510 sound/pci/rme9652/hdspm.c dev_dbg(card->dev, "Update mixer controls...\n"); card 6513 sound/pci/rme9652/hdspm.c dev_dbg(card->dev, "Initializing complete?\n"); card 6515 sound/pci/rme9652/hdspm.c err = snd_card_register(card); card 6517 sound/pci/rme9652/hdspm.c dev_err(card->dev, "error registering card\n"); card 6521 sound/pci/rme9652/hdspm.c dev_dbg(card->dev, "... yes now\n"); card 6526 sound/pci/rme9652/hdspm.c static int snd_hdspm_create(struct snd_card *card, card 6535 sound/pci/rme9652/hdspm.c hdspm->card = card; card 6542 sound/pci/rme9652/hdspm.c strcpy(card->mixername, "Xilinx FPGA"); card 6543 sound/pci/rme9652/hdspm.c strcpy(card->driver, "HDSPM"); card 6575 sound/pci/rme9652/hdspm.c dev_err(card->dev, card 6595 sound/pci/rme9652/hdspm.c dev_dbg(card->dev, "grabbed memory region 0x%lx-0x%lx\n", card 6600 sound/pci/rme9652/hdspm.c dev_err(card->dev, "unable to remap region 0x%lx-0x%lx\n", card 6604 sound/pci/rme9652/hdspm.c dev_dbg(card->dev, "remapped region (0x%lx) 0x%lx-0x%lx\n", card 6610 sound/pci/rme9652/hdspm.c dev_err(card->dev, "unable to use IRQ %d\n", pci->irq); card 6614 sound/pci/rme9652/hdspm.c dev_dbg(card->dev, "use IRQ %d\n", pci->irq); card 6618 sound/pci/rme9652/hdspm.c dev_dbg(card->dev, "kmalloc Mixer memory of %zd Bytes\n", card 6688 sound/pci/rme9652/hdspm.c dev_info(card->dev, "AEB input board found\n"); card 6695 sound/pci/rme9652/hdspm.c dev_info(card->dev, "AEB output board found\n"); card 6761 sound/pci/rme9652/hdspm.c dev_info(card->dev, "AIO/RayDAT TCO module found\n"); card 6775 sound/pci/rme9652/hdspm.c dev_info(card->dev, "MADI/AES TCO module found\n"); card 6852 sound/pci/rme9652/hdspm.c snprintf(card->id, sizeof(card->id), card 6854 sound/pci/rme9652/hdspm.c snd_card_set_id(card, card->id); card 6858 sound/pci/rme9652/hdspm.c dev_dbg(card->dev, "create alsa devices.\n"); card 6859 sound/pci/rme9652/hdspm.c err = snd_hdspm_create_alsa_devices(card, hdspm); card 6897 sound/pci/rme9652/hdspm.c static void snd_hdspm_card_free(struct snd_card *card) card 6899 sound/pci/rme9652/hdspm.c struct hdspm *hdspm = card->private_data; card 6911 sound/pci/rme9652/hdspm.c struct snd_card *card; card 6922 sound/pci/rme9652/hdspm.c THIS_MODULE, sizeof(*hdspm), &card); card 6926 sound/pci/rme9652/hdspm.c hdspm = card->private_data; card 6927 sound/pci/rme9652/hdspm.c card->private_free = snd_hdspm_card_free; card 6931 sound/pci/rme9652/hdspm.c err = snd_hdspm_create(card, hdspm); card 6936 sound/pci/rme9652/hdspm.c snprintf(card->shortname, sizeof(card->shortname), "%s_%x", card 6938 sound/pci/rme9652/hdspm.c snprintf(card->longname, sizeof(card->longname), card 6943 sound/pci/rme9652/hdspm.c snprintf(card->shortname, sizeof(card->shortname), "%s", card 6945 sound/pci/rme9652/hdspm.c snprintf(card->longname, sizeof(card->longname), card 6950 sound/pci/rme9652/hdspm.c err = snd_card_register(card); card 6954 sound/pci/rme9652/hdspm.c pci_set_drvdata(pci, card); card 6960 sound/pci/rme9652/hdspm.c snd_card_free(card); card 234 sound/pci/rme9652/rme9652.c struct snd_card *card; card 384 sound/pci/rme9652/rme9652.c dev_err(rme9652->card->dev, card 395 sound/pci/rme9652/rme9652.c dev_err(rme9652->card->dev, card 763 sound/pci/rme9652/rme9652.c dev_err(s->card->dev, card 1523 sound/pci/rme9652/rme9652.c static int snd_rme9652_create_controls(struct snd_card *card, struct snd_rme9652 *rme9652) card 1530 sound/pci/rme9652/rme9652.c if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_rme9652_controls[idx], rme9652))) < 0) card 1537 sound/pci/rme9652/rme9652.c if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_rme9652_adat3_check, rme9652))) < 0) card 1541 sound/pci/rme9652/rme9652.c if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_rme9652_adat1_input, rme9652))) < 0) card 1563 sound/pci/rme9652/rme9652.c snd_iprintf(buffer, "%s (Card #%d)\n", rme9652->card_name, rme9652->card->number + 1); card 1726 sound/pci/rme9652/rme9652.c snd_card_ro_proc_new(rme9652->card, "rme9652", rme9652, card 1760 sound/pci/rme9652/rme9652.c dev_err(rme9652->card->dev, card 2318 sound/pci/rme9652/rme9652.c snd_ctl_notify(rme9652->card, SNDRV_CTL_EVENT_MASK_VALUE | card 2335 sound/pci/rme9652/rme9652.c snd_ctl_notify(rme9652->card, SNDRV_CTL_EVENT_MASK_VALUE | card 2416 sound/pci/rme9652/rme9652.c static int snd_rme9652_create_pcm(struct snd_card *card, card 2422 sound/pci/rme9652/rme9652.c if ((err = snd_pcm_new(card, card 2440 sound/pci/rme9652/rme9652.c static int snd_rme9652_create(struct snd_card *card, card 2450 sound/pci/rme9652/rme9652.c rme9652->card = card; card 2476 sound/pci/rme9652/rme9652.c dev_err(card->dev, "unable to remap region 0x%lx-0x%lx\n", card 2483 sound/pci/rme9652/rme9652.c dev_err(card->dev, "unable to request IRQ %d\n", pci->irq); card 2510 sound/pci/rme9652/rme9652.c strcpy(card->driver, "RME9636"); card 2519 sound/pci/rme9652/rme9652.c strcpy(card->driver, "RME9636"); card 2524 sound/pci/rme9652/rme9652.c strcpy(card->driver, "RME9652"); card 2529 sound/pci/rme9652/rme9652.c strcpy(card->driver, "RME9652"); card 2547 sound/pci/rme9652/rme9652.c if ((err = snd_rme9652_create_pcm(card, rme9652)) < 0) { card 2551 sound/pci/rme9652/rme9652.c if ((err = snd_rme9652_create_controls(card, rme9652)) < 0) { card 2573 sound/pci/rme9652/rme9652.c static void snd_rme9652_card_free(struct snd_card *card) card 2575 sound/pci/rme9652/rme9652.c struct snd_rme9652 *rme9652 = (struct snd_rme9652 *) card->private_data; card 2586 sound/pci/rme9652/rme9652.c struct snd_card *card; card 2597 sound/pci/rme9652/rme9652.c sizeof(struct snd_rme9652), &card); card 2602 sound/pci/rme9652/rme9652.c rme9652 = (struct snd_rme9652 *) card->private_data; card 2603 sound/pci/rme9652/rme9652.c card->private_free = snd_rme9652_card_free; card 2606 sound/pci/rme9652/rme9652.c err = snd_rme9652_create(card, rme9652, precise_ptr[dev]); card 2610 sound/pci/rme9652/rme9652.c strcpy(card->shortname, rme9652->card_name); card 2612 sound/pci/rme9652/rme9652.c sprintf(card->longname, "%s at 0x%lx, irq %d", card 2613 sound/pci/rme9652/rme9652.c card->shortname, rme9652->port, rme9652->irq); card 2614 sound/pci/rme9652/rme9652.c err = snd_card_register(card); card 2617 sound/pci/rme9652/rme9652.c snd_card_free(card); card 2620 sound/pci/rme9652/rme9652.c pci_set_drvdata(pci, card); card 108 sound/pci/sis7019.c struct snd_card *card; card 893 sound/pci/sis7019.c rc = snd_pcm_new(sis->card, "SiS7019", 0, 64, 1, &pcm); card 1017 sound/pci/sis7019.c rc = snd_ac97_bus(sis->card, 0, &ops, NULL, &bus); card 1199 sound/pci/sis7019.c struct snd_card *card = dev_get_drvdata(dev); card 1200 sound/pci/sis7019.c struct sis7019 *sis = card->private_data; card 1204 sound/pci/sis7019.c snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); card 1232 sound/pci/sis7019.c struct snd_card *card = dev_get_drvdata(dev); card 1233 sound/pci/sis7019.c struct sis7019 *sis = card->private_data; card 1267 sound/pci/sis7019.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 1271 sound/pci/sis7019.c snd_card_disconnect(card); card 1300 sound/pci/sis7019.c static int sis_chip_create(struct snd_card *card, card 1303 sound/pci/sis7019.c struct sis7019 *sis = card->private_data; card 1324 sound/pci/sis7019.c sis->card = card; card 1374 sound/pci/sis7019.c rc = snd_device_new(card, SNDRV_DEV_LOWLEVEL, sis, &ops); card 1393 sound/pci/sis7019.c struct snd_card *card; card 1413 sound/pci/sis7019.c sizeof(*sis), &card); card 1417 sound/pci/sis7019.c strcpy(card->driver, "SiS7019"); card 1418 sound/pci/sis7019.c strcpy(card->shortname, "SiS7019"); card 1419 sound/pci/sis7019.c rc = sis_chip_create(card, pci); card 1423 sound/pci/sis7019.c sis = card->private_data; card 1433 sound/pci/sis7019.c snprintf(card->longname, sizeof(card->longname), card 1435 sound/pci/sis7019.c card->shortname, snd_ac97_get_short_name(sis->ac97[0]), card 1438 sound/pci/sis7019.c rc = snd_card_register(card); card 1442 sound/pci/sis7019.c pci_set_drvdata(pci, card); card 1446 sound/pci/sis7019.c snd_card_free(card); card 210 sound/pci/sonicvibes.c struct snd_card *card; card 261 sound/pci/sonicvibes.c dev_dbg(sonic->card->dev, "program dmaa: addr = 0x%x, paddr = 0x%x\n", card 277 sound/pci/sonicvibes.c dev_dbg(sonic->card->dev, "program dmac: addr = 0x%x, paddr = 0x%x\n", card 345 sound/pci/sonicvibes.c dev_dbg(sonic->card->dev, card 348 sound/pci/sonicvibes.c dev_dbg(sonic->card->dev, card 351 sound/pci/sonicvibes.c dev_dbg(sonic->card->dev, card 354 sound/pci/sonicvibes.c dev_dbg(sonic->card->dev, card 357 sound/pci/sonicvibes.c dev_dbg(sonic->card->dev, card 360 sound/pci/sonicvibes.c dev_dbg(sonic->card->dev, card 363 sound/pci/sonicvibes.c dev_dbg(sonic->card->dev, card 366 sound/pci/sonicvibes.c dev_dbg(sonic->card->dev, card 369 sound/pci/sonicvibes.c dev_dbg(sonic->card->dev, card 372 sound/pci/sonicvibes.c dev_dbg(sonic->card->dev, card 375 sound/pci/sonicvibes.c dev_dbg(sonic->card->dev, card 378 sound/pci/sonicvibes.c dev_dbg(sonic->card->dev, card 381 sound/pci/sonicvibes.c dev_dbg(sonic->card->dev, card 384 sound/pci/sonicvibes.c dev_dbg(sonic->card->dev, card 387 sound/pci/sonicvibes.c dev_dbg(sonic->card->dev, card 390 sound/pci/sonicvibes.c dev_dbg(sonic->card->dev, card 393 sound/pci/sonicvibes.c dev_dbg(sonic->card->dev, card 396 sound/pci/sonicvibes.c dev_dbg(sonic->card->dev, card 399 sound/pci/sonicvibes.c dev_dbg(sonic->card->dev, card 402 sound/pci/sonicvibes.c dev_dbg(sonic->card->dev, card 405 sound/pci/sonicvibes.c dev_dbg(sonic->card->dev, card 408 sound/pci/sonicvibes.c dev_dbg(sonic->card->dev, card 411 sound/pci/sonicvibes.c dev_dbg(sonic->card->dev, card 414 sound/pci/sonicvibes.c dev_dbg(sonic->card->dev, card 417 sound/pci/sonicvibes.c dev_dbg(sonic->card->dev, card 420 sound/pci/sonicvibes.c dev_dbg(sonic->card->dev, card 423 sound/pci/sonicvibes.c dev_dbg(sonic->card->dev, card 426 sound/pci/sonicvibes.c dev_dbg(sonic->card->dev, card 429 sound/pci/sonicvibes.c dev_dbg(sonic->card->dev, card 432 sound/pci/sonicvibes.c dev_dbg(sonic->card->dev, card 435 sound/pci/sonicvibes.c dev_dbg(sonic->card->dev, card 438 sound/pci/sonicvibes.c dev_dbg(sonic->card->dev, card 441 sound/pci/sonicvibes.c dev_dbg(sonic->card->dev, card 499 sound/pci/sonicvibes.c dev_dbg(sonic->card->dev, card 501 sound/pci/sonicvibes.c dev_dbg(sonic->card->dev, card 614 sound/pci/sonicvibes.c dev_err(sonic->card->dev, card 660 sound/pci/sonicvibes.c snd_ctl_notify(sonic->card, SNDRV_CTL_EVENT_MASK_VALUE, &sonic->master_mute->id); card 661 sound/pci/sonicvibes.c snd_ctl_notify(sonic->card, SNDRV_CTL_EVENT_MASK_VALUE, &sonic->master_volume->id); card 873 sound/pci/sonicvibes.c if ((err = snd_pcm_new(sonic->card, "s3_86c617", device, 1, 1, &pcm)) < 0) card 1103 sound/pci/sonicvibes.c struct snd_card *card; card 1108 sound/pci/sonicvibes.c if (snd_BUG_ON(!sonic || !sonic->card)) card 1110 sound/pci/sonicvibes.c card = sonic->card; card 1111 sound/pci/sonicvibes.c strcpy(card->mixername, "S3 SonicVibes"); card 1114 sound/pci/sonicvibes.c if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_sonicvibes_controls[idx], sonic))) < 0) card 1160 sound/pci/sonicvibes.c snd_card_ro_proc_new(sonic->card, "sonicvibes", sonic, card 1179 sound/pci/sonicvibes.c dev_err(sonic->card->dev, card 1191 sound/pci/sonicvibes.c err = snd_ctl_add(sonic->card, card 1232 sound/pci/sonicvibes.c static int snd_sonicvibes_create(struct snd_card *card, card 1252 sound/pci/sonicvibes.c dev_err(card->dev, card 1264 sound/pci/sonicvibes.c sonic->card = card; card 1282 sound/pci/sonicvibes.c dev_err(card->dev, "unable to grab IRQ %d\n", pci->irq); card 1296 sound/pci/sonicvibes.c dev_info(card->dev, card 1303 sound/pci/sonicvibes.c dev_info(card->dev, card 1312 sound/pci/sonicvibes.c dev_err(card->dev, card 1319 sound/pci/sonicvibes.c dev_err(card->dev, card 1379 sound/pci/sonicvibes.c if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, sonic, &ops)) < 0) { card 1419 sound/pci/sonicvibes.c struct snd_card *card = sonic->card; card 1427 sound/pci/sonicvibes.c if ((err = snd_ctl_add(card, snd_ctl_new1(&snd_sonicvibes_midi_controls[idx], sonic))) < 0) card 1436 sound/pci/sonicvibes.c struct snd_card *card; card 1450 sound/pci/sonicvibes.c 0, &card); card 1456 sound/pci/sonicvibes.c snd_card_free(card); card 1460 sound/pci/sonicvibes.c if ((err = snd_sonicvibes_create(card, pci, card 1464 sound/pci/sonicvibes.c snd_card_free(card); card 1468 sound/pci/sonicvibes.c strcpy(card->driver, "SonicVibes"); card 1469 sound/pci/sonicvibes.c strcpy(card->shortname, "S3 SonicVibes"); card 1470 sound/pci/sonicvibes.c sprintf(card->longname, "%s rev %i at 0x%llx, irq %i", card 1471 sound/pci/sonicvibes.c card->shortname, card 1477 sound/pci/sonicvibes.c snd_card_free(card); card 1481 sound/pci/sonicvibes.c snd_card_free(card); card 1484 sound/pci/sonicvibes.c if ((err = snd_mpu401_uart_new(card, 0, MPU401_HW_SONICVIBES, card 1489 sound/pci/sonicvibes.c snd_card_free(card); card 1493 sound/pci/sonicvibes.c if ((err = snd_opl3_create(card, sonic->synth_port, card 1496 sound/pci/sonicvibes.c snd_card_free(card); card 1500 sound/pci/sonicvibes.c snd_card_free(card); card 1506 sound/pci/sonicvibes.c snd_card_free(card); card 1510 sound/pci/sonicvibes.c if ((err = snd_card_register(card)) < 0) { card 1511 sound/pci/sonicvibes.c snd_card_free(card); card 1515 sound/pci/sonicvibes.c pci_set_drvdata(pci, card); card 65 sound/pci/trident/trident.c struct snd_card *card; card 78 sound/pci/trident/trident.c 0, &card); card 82 sound/pci/trident/trident.c if ((err = snd_trident_create(card, pci, card 87 sound/pci/trident/trident.c snd_card_free(card); card 90 sound/pci/trident/trident.c card->private_data = trident; card 105 sound/pci/trident/trident.c strcpy(card->driver, str); card 107 sound/pci/trident/trident.c strcpy(card->shortname, "SiS "); card 109 sound/pci/trident/trident.c strcpy(card->shortname, "Trident "); card 111 sound/pci/trident/trident.c strcat(card->shortname, str); card 112 sound/pci/trident/trident.c sprintf(card->longname, "%s PCI Audio at 0x%lx, irq %d", card 113 sound/pci/trident/trident.c card->shortname, trident->port, trident->irq); card 116 sound/pci/trident/trident.c snd_card_free(card); card 123 sound/pci/trident/trident.c snd_card_free(card); card 130 sound/pci/trident/trident.c snd_card_free(card); card 135 sound/pci/trident/trident.c (err = snd_mpu401_uart_new(card, 0, MPU401_HW_TRID4DWAVE, card 140 sound/pci/trident/trident.c snd_card_free(card); card 146 sound/pci/trident/trident.c if ((err = snd_card_register(card)) < 0) { card 147 sound/pci/trident/trident.c snd_card_free(card); card 150 sound/pci/trident/trident.c pci_set_drvdata(pci, card); card 378 sound/pci/trident/trident.h struct snd_card *card; card 400 sound/pci/trident/trident.h int snd_trident_create(struct snd_card *card, card 57 sound/pci/trident/trident_main.c dev_dbg(trident->card->dev, "Trident voice %i:\n", voice); card 60 sound/pci/trident/trident_main.c dev_dbg(trident->card->dev, "LBA: 0x%x\n", val); card 62 sound/pci/trident/trident_main.c dev_dbg(trident->card->dev, "GVSel: %i\n", val >> 31); card 63 sound/pci/trident/trident_main.c dev_dbg(trident->card->dev, "Pan: 0x%x\n", (val >> 24) & 0x7f); card 64 sound/pci/trident/trident_main.c dev_dbg(trident->card->dev, "Vol: 0x%x\n", (val >> 16) & 0xff); card 65 sound/pci/trident/trident_main.c dev_dbg(trident->card->dev, "CTRL: 0x%x\n", (val >> 12) & 0x0f); card 66 sound/pci/trident/trident_main.c dev_dbg(trident->card->dev, "EC: 0x%x\n", val & 0x0fff); card 69 sound/pci/trident/trident_main.c dev_dbg(trident->card->dev, "CSO: 0x%x\n", val >> 16); card 70 sound/pci/trident/trident_main.c dev_dbg(trident->card->dev, "Alpha: 0x%x\n", (val >> 4) & 0x0fff); card 71 sound/pci/trident/trident_main.c dev_dbg(trident->card->dev, "FMS: 0x%x\n", val & 0x0f); card 73 sound/pci/trident/trident_main.c dev_dbg(trident->card->dev, "ESO: 0x%x\n", val >> 16); card 74 sound/pci/trident/trident_main.c dev_dbg(trident->card->dev, "Delta: 0x%x\n", val & 0xffff); card 79 sound/pci/trident/trident_main.c dev_dbg(trident->card->dev, "CSO: 0x%x\n", val & 0x00ffffff); card 82 sound/pci/trident/trident_main.c dev_dbg(trident->card->dev, "Delta: 0x%x\n", tmp); card 83 sound/pci/trident/trident_main.c dev_dbg(trident->card->dev, "ESO: 0x%x\n", val & 0x00ffffff); card 85 sound/pci/trident/trident_main.c dev_dbg(trident->card->dev, "Alpha: 0x%x\n", val >> 20); card 86 sound/pci/trident/trident_main.c dev_dbg(trident->card->dev, "FMS: 0x%x\n", (val >> 16) & 0x0f); card 88 sound/pci/trident/trident_main.c dev_dbg(trident->card->dev, "FMC: 0x%x\n", (val >> 14) & 3); card 89 sound/pci/trident/trident_main.c dev_dbg(trident->card->dev, "RVol: 0x%x\n", (val >> 7) & 0x7f); card 90 sound/pci/trident/trident_main.c dev_dbg(trident->card->dev, "CVol: 0x%x\n", val & 0x7f); card 144 sound/pci/trident/trident_main.c dev_err(trident->card->dev, card 486 sound/pci/trident/trident_main.c dev_dbg(trident->card->dev, "written %i channel:\n", voice->number); card 487 sound/pci/trident/trident_main.c dev_dbg(trident->card->dev, " regs[0] = 0x%x/0x%x\n", card 489 sound/pci/trident/trident_main.c dev_dbg(trident->card->dev, " regs[1] = 0x%x/0x%x\n", card 491 sound/pci/trident/trident_main.c dev_dbg(trident->card->dev, " regs[2] = 0x%x/0x%x\n", card 493 sound/pci/trident/trident_main.c dev_dbg(trident->card->dev, " regs[3] = 0x%x/0x%x\n", card 495 sound/pci/trident/trident_main.c dev_dbg(trident->card->dev, " regs[4] = 0x%x/0x%x\n", card 1374 sound/pci/trident/trident_main.c snd_ctl_notify(trident->card, SNDRV_CTL_EVENT_MASK_VALUE, &trident->spdif_pcm_ctl->id); card 1915 sound/pci/trident/trident_main.c snd_ctl_notify(trident->card, SNDRV_CTL_EVENT_MASK_VALUE | card 1954 sound/pci/trident/trident_main.c snd_ctl_notify(trident->card, SNDRV_CTL_EVENT_MASK_VALUE | card 2165 sound/pci/trident/trident_main.c if ((err = snd_pcm_new(trident->card, "trident_dx_nx", device, trident->ChanPCM, 1, &pcm)) < 0) card 2222 sound/pci/trident/trident_main.c if ((err = snd_pcm_new(trident->card, "trident_dx_nx", device, 0, num_chan, &foldback)) < 0) card 2270 sound/pci/trident/trident_main.c if ((err = snd_pcm_new(trident->card, "trident_dx_nx IEC958", device, 1, 0, &spdif)) < 0) card 2878 sound/pci/trident/trident_main.c static void snd_trident_notify_pcm_change1(struct snd_card *card, card 2890 sound/pci/trident/trident_main.c snd_ctl_notify(card, SNDRV_CTL_EVENT_MASK_VALUE | card 2899 sound/pci/trident/trident_main.c snd_trident_notify_pcm_change1(trident->card, trident->ctl_vol, num, activate); card 2900 sound/pci/trident/trident_main.c snd_trident_notify_pcm_change1(trident->card, trident->ctl_pan, num, activate); card 2901 sound/pci/trident/trident_main.c snd_trident_notify_pcm_change1(trident->card, trident->ctl_rvol, num, activate); card 2902 sound/pci/trident/trident_main.c snd_trident_notify_pcm_change1(trident->card, trident->ctl_cvol, num, activate); card 2949 sound/pci/trident/trident_main.c struct snd_card *card = trident->card; card 2962 sound/pci/trident/trident_main.c if ((err = snd_ac97_bus(trident->card, 0, &ops, NULL, &trident->ac97_bus)) < 0) card 2987 sound/pci/trident/trident_main.c dev_err(trident->card->dev, card 2992 sound/pci/trident/trident_main.c err = snd_ac97_modem(trident->card, &_ac97, &mc97); card 2994 sound/pci/trident/trident_main.c dev_err(trident->card->dev, card 3003 sound/pci/trident/trident_main.c if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_trident_vol_wave_control, trident))) < 0) card 3006 sound/pci/trident/trident_main.c if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_trident_vol_music_control, trident))) < 0) card 3022 sound/pci/trident/trident_main.c if ((err = snd_ctl_add(card, trident->ctl_vol))) card 3027 sound/pci/trident/trident_main.c if ((err = snd_ctl_add(card, trident->ctl_pan))) card 3032 sound/pci/trident/trident_main.c if ((err = snd_ctl_add(card, trident->ctl_rvol))) card 3037 sound/pci/trident/trident_main.c if ((err = snd_ctl_add(card, trident->ctl_cvol))) card 3041 sound/pci/trident/trident_main.c if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_trident_ac97_rear_control, trident))) < 0) card 3057 sound/pci/trident/trident_main.c if ((err = snd_ctl_add(card, kctl)) < 0) card 3068 sound/pci/trident/trident_main.c if ((err = snd_ctl_add(card, kctl)) < 0) card 3078 sound/pci/trident/trident_main.c if ((err = snd_ctl_add(card, kctl)) < 0) card 3088 sound/pci/trident/trident_main.c if ((err = snd_ctl_add(card, kctl)) < 0) card 3173 sound/pci/trident/trident_main.c dev_err(chip->card->dev, card 3247 sound/pci/trident/trident_main.c dev_err(trident->card->dev, "AC'97 codec ready error [0x%x]\n", card 3313 sound/pci/trident/trident_main.c snd_card_ro_proc_new(trident->card, s, trident, snd_trident_proc_read); card 3343 sound/pci/trident/trident_main.c dev_err(trident->card->dev, "unable to allocate TLB buffer\n"); card 3358 sound/pci/trident/trident_main.c dev_err(trident->card->dev, "unable to allocate silent page\n"); card 3416 sound/pci/trident/trident_main.c dev_err(trident->card->dev, "AC'97 codec ready error\n"); card 3454 sound/pci/trident/trident_main.c dev_err(trident->card->dev, "AC'97 codec ready error [0x%x]\n", card 3517 sound/pci/trident/trident_main.c int snd_trident_create(struct snd_card *card, card 3540 sound/pci/trident/trident_main.c dev_err(card->dev, card 3552 sound/pci/trident/trident_main.c trident->card = card; card 3579 sound/pci/trident/trident_main.c dev_err(card->dev, "unable to grab IRQ %d\n", pci->irq); card 3617 sound/pci/trident/trident_main.c if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, trident, &ops)) < 0) { card 3897 sound/pci/trident/trident_main.c struct snd_card *card = dev_get_drvdata(dev); card 3898 sound/pci/trident/trident_main.c struct snd_trident *trident = card->private_data; card 3901 sound/pci/trident/trident_main.c snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); card 3909 sound/pci/trident/trident_main.c struct snd_card *card = dev_get_drvdata(dev); card 3910 sound/pci/trident/trident_main.c struct snd_trident *trident = card->private_data; card 3932 sound/pci/trident/trident_main.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 365 sound/pci/via82xx.c struct snd_card *card; card 520 sound/pci/via82xx.c dev_err(chip->card->dev, "codec_ready: codec %i is not ready [0x%x]\n", card 579 sound/pci/via82xx.c dev_err(chip->card->dev, card 785 sound/pci/via82xx.c dev_dbg(chip->card->dev, card 803 sound/pci/via82xx.c dev_dbg(chip->card->dev, card 813 sound/pci/via82xx.c dev_dbg(chip->card->dev, card 885 sound/pci/via82xx.c dev_dbg(chip->card->dev, card 1259 sound/pci/via82xx.c snd_ctl_notify(chip->card, SNDRV_CTL_EVENT_MASK_VALUE | card 1349 sound/pci/via82xx.c snd_ctl_notify(chip->card, SNDRV_CTL_EVENT_MASK_INFO, card 1447 sound/pci/via82xx.c err = snd_pcm_new(chip->card, chip->card->shortname, 0, 4, 1, &pcm); card 1453 sound/pci/via82xx.c strcpy(pcm->name, chip->card->shortname); card 1472 sound/pci/via82xx.c err = snd_pcm_new(chip->card, chip->card->shortname, 1, 1, 1, &pcm); card 1478 sound/pci/via82xx.c strcpy(pcm->name, chip->card->shortname); card 1515 sound/pci/via82xx.c err = snd_pcm_new(chip->card, chip->card->shortname, 0, 1, 1, &pcm); card 1521 sound/pci/via82xx.c strcpy(pcm->name, chip->card->shortname); card 1544 sound/pci/via82xx.c err = snd_pcm_new(chip->card, chip->card->shortname, 1, 1, 0, &pcm); card 1549 sound/pci/via82xx.c strcpy(pcm->name, chip->card->shortname); card 1573 sound/pci/via82xx.c err = snd_pcm_new(chip->card, chip->card->shortname, 0, 1, 1, &pcm); card 1579 sound/pci/via82xx.c strcpy(pcm->name, chip->card->shortname); card 1896 sound/pci/via82xx.c if ((err = snd_ac97_bus(chip->card, 0, &ops, chip, &chip->ac97_bus)) < 0) card 1931 sound/pci/via82xx.c dev_warn(chip->card->dev, "cannot reserve joystick port %#x\n", card 1938 sound/pci/via82xx.c dev_err(chip->card->dev, card 1990 sound/pci/via82xx.c err = snd_ctl_add(chip->card, snd_ctl_new1(&snd_via8233_capture_source, chip)); card 1995 sound/pci/via82xx.c err = snd_ctl_add(chip->card, snd_ctl_new1(&snd_via8233_dxs3_spdif_control, chip)); card 2007 sound/pci/via82xx.c if (! snd_ctl_find_id(chip->card, &sid)) { card 2008 sound/pci/via82xx.c dev_info(chip->card->dev, card 2010 sound/pci/via82xx.c err = snd_ctl_add(chip->card, snd_ctl_new1(&snd_via8233_pcmdxs_volume_control, chip)); card 2024 sound/pci/via82xx.c err = snd_ctl_add(chip->card, kctl); card 2091 sound/pci/via82xx.c if (snd_mpu401_uart_new(chip->card, 0, MPU401_HW_VIA686A, card 2095 sound/pci/via82xx.c dev_warn(chip->card->dev, card 2125 sound/pci/via82xx.c snd_iprintf(buffer, "%s\n\n", chip->card->longname); card 2133 sound/pci/via82xx.c snd_card_ro_proc_new(chip->card, "via82xx", chip, card 2195 sound/pci/via82xx.c dev_err(chip->card->dev, card 2260 sound/pci/via82xx.c struct snd_card *card = dev_get_drvdata(dev); card 2261 sound/pci/via82xx.c struct via82xx *chip = card->private_data; card 2264 sound/pci/via82xx.c snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); card 2282 sound/pci/via82xx.c struct snd_card *card = dev_get_drvdata(dev); card 2283 sound/pci/via82xx.c struct via82xx *chip = card->private_data; card 2304 sound/pci/via82xx.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 2346 sound/pci/via82xx.c static int snd_via82xx_create(struct snd_card *card, card 2373 sound/pci/via82xx.c chip->card = card; card 2382 sound/pci/via82xx.c if ((err = pci_request_regions(pci, card->driver)) < 0) { card 2393 sound/pci/via82xx.c dev_err(card->dev, "unable to grab IRQ %d\n", pci->irq); card 2407 sound/pci/via82xx.c if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops)) < 0) { card 2512 sound/pci/via82xx.c struct snd_card *card; card 2518 sound/pci/via82xx.c err = snd_card_new(&pci->dev, index, id, THIS_MODULE, 0, &card); card 2525 sound/pci/via82xx.c strcpy(card->driver, "VIA686A"); card 2526 sound/pci/via82xx.c sprintf(card->shortname, "VIA 82C686A/B rev%x", pci->revision); card 2531 sound/pci/via82xx.c sprintf(card->shortname, "VIA 823x rev%x", pci->revision); card 2535 sound/pci/via82xx.c strcpy(card->shortname, via823x_cards[i].name); card 2551 sound/pci/via82xx.c strcpy(card->driver, "VIA8233A"); card 2553 sound/pci/via82xx.c strcpy(card->driver, "VIA8237"); /* no slog assignment */ card 2555 sound/pci/via82xx.c strcpy(card->driver, "VIA8233"); card 2558 sound/pci/via82xx.c dev_err(card->dev, "invalid card type %d\n", card_type); card 2563 sound/pci/via82xx.c if ((err = snd_via82xx_create(card, pci, chip_type, pci->revision, card 2566 sound/pci/via82xx.c card->private_data = chip; card 2599 sound/pci/via82xx.c snprintf(card->longname, sizeof(card->longname), card 2600 sound/pci/via82xx.c "%s with %s at %#lx, irq %d", card->shortname, card 2605 sound/pci/via82xx.c if ((err = snd_card_register(card)) < 0) { card 2606 sound/pci/via82xx.c snd_card_free(card); card 2609 sound/pci/via82xx.c pci_set_drvdata(pci, card); card 2613 sound/pci/via82xx.c snd_card_free(card); card 232 sound/pci/via82xx_modem.c struct snd_card *card; card 374 sound/pci/via82xx_modem.c dev_err(chip->card->dev, "codec_ready: codec %i is not ready [0x%x]\n", card 435 sound/pci/via82xx_modem.c dev_err(chip->card->dev, card 565 sound/pci/via82xx_modem.c dev_err(chip->card->dev, card 571 sound/pci/via82xx_modem.c dev_dbg(chip->card->dev, card 578 sound/pci/via82xx_modem.c dev_dbg(chip->card->dev, card 591 sound/pci/via82xx_modem.c dev_dbg(chip->card->dev, card 842 sound/pci/via82xx_modem.c err = snd_pcm_new(chip->card, chip->card->shortname, 0, 1, 1, &pcm); card 849 sound/pci/via82xx_modem.c strcpy(pcm->name, chip->card->shortname); card 889 sound/pci/via82xx_modem.c if ((err = snd_ac97_bus(chip->card, 0, &ops, chip, &chip->ac97_bus)) < 0) card 916 sound/pci/via82xx_modem.c snd_iprintf(buffer, "%s\n\n", chip->card->longname); card 924 sound/pci/via82xx_modem.c snd_card_ro_proc_new(chip->card, "via82xx", chip, card 983 sound/pci/via82xx_modem.c dev_err(chip->card->dev, card 1018 sound/pci/via82xx_modem.c struct snd_card *card = dev_get_drvdata(dev); card 1019 sound/pci/via82xx_modem.c struct via82xx_modem *chip = card->private_data; card 1022 sound/pci/via82xx_modem.c snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); card 1032 sound/pci/via82xx_modem.c struct snd_card *card = dev_get_drvdata(dev); card 1033 sound/pci/via82xx_modem.c struct via82xx_modem *chip = card->private_data; card 1043 sound/pci/via82xx_modem.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 1078 sound/pci/via82xx_modem.c static int snd_via82xx_create(struct snd_card *card, card 1100 sound/pci/via82xx_modem.c chip->card = card; card 1104 sound/pci/via82xx_modem.c if ((err = pci_request_regions(pci, card->driver)) < 0) { card 1112 sound/pci/via82xx_modem.c dev_err(card->dev, "unable to grab IRQ %d\n", pci->irq); card 1126 sound/pci/via82xx_modem.c if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops)) < 0) { card 1144 sound/pci/via82xx_modem.c struct snd_card *card; card 1150 sound/pci/via82xx_modem.c err = snd_card_new(&pci->dev, index, id, THIS_MODULE, 0, &card); card 1157 sound/pci/via82xx_modem.c strcpy(card->driver, "VIA82XX-MODEM"); card 1158 sound/pci/via82xx_modem.c sprintf(card->shortname, "VIA 82XX modem"); card 1161 sound/pci/via82xx_modem.c dev_err(card->dev, "invalid card type %d\n", card_type); card 1166 sound/pci/via82xx_modem.c if ((err = snd_via82xx_create(card, pci, chip_type, pci->revision, card 1169 sound/pci/via82xx_modem.c card->private_data = chip; card 1180 sound/pci/via82xx_modem.c sprintf(card->longname, "%s at 0x%lx, irq %d", card 1181 sound/pci/via82xx_modem.c card->shortname, chip->port, chip->irq); card 1185 sound/pci/via82xx_modem.c if ((err = snd_card_register(card)) < 0) { card 1186 sound/pci/via82xx_modem.c snd_card_free(card); card 1189 sound/pci/via82xx_modem.c pci_set_drvdata(pci, card); card 1193 sound/pci/via82xx_modem.c snd_card_free(card); card 124 sound/pci/vx222/vx222.c static int snd_vx222_create(struct snd_card *card, struct pci_dev *pci, card 142 sound/pci/vx222/vx222.c chip = snd_vx_create(card, hw, vx_ops, card 161 sound/pci/vx222/vx222.c dev_err(card->dev, "unable to grab IRQ %d\n", pci->irq); card 167 sound/pci/vx222/vx222.c if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops)) < 0) { card 181 sound/pci/vx222/vx222.c struct snd_card *card; card 194 sound/pci/vx222/vx222.c 0, &card); card 210 sound/pci/vx222/vx222.c if ((err = snd_vx222_create(card, pci, hw, &vx)) < 0) { card 211 sound/pci/vx222/vx222.c snd_card_free(card); card 214 sound/pci/vx222/vx222.c card->private_data = vx; card 217 sound/pci/vx222/vx222.c sprintf(card->longname, "%s at 0x%lx & 0x%lx, irq %i", card 218 sound/pci/vx222/vx222.c card->shortname, vx->port[0], vx->port[1], vx->core.irq); card 219 sound/pci/vx222/vx222.c dev_dbg(card->dev, "%s at 0x%lx & 0x%lx, irq %i\n", card 220 sound/pci/vx222/vx222.c card->shortname, vx->port[0], vx->port[1], vx->core.irq); card 227 sound/pci/vx222/vx222.c snd_card_free(card); card 231 sound/pci/vx222/vx222.c if ((err = snd_card_register(card)) < 0) { card 232 sound/pci/vx222/vx222.c snd_card_free(card); card 236 sound/pci/vx222/vx222.c pci_set_drvdata(pci, card); card 249 sound/pci/vx222/vx222.c struct snd_card *card = dev_get_drvdata(dev); card 250 sound/pci/vx222/vx222.c struct snd_vx222 *vx = card->private_data; card 257 sound/pci/vx222/vx222.c struct snd_card *card = dev_get_drvdata(dev); card 258 sound/pci/vx222/vx222.c struct snd_vx222 *vx = card->private_data; card 167 sound/pci/vx222/vx222_ops.c dev_dbg(_chip->card->dev, "testing xilinx...\n"); card 177 sound/pci/vx222/vx222_ops.c dev_dbg(_chip->card->dev, "bad!\n"); card 186 sound/pci/vx222/vx222_ops.c dev_dbg(_chip->card->dev, "bad! #2\n"); card 197 sound/pci/vx222/vx222_ops.c dev_dbg(_chip->card->dev, "bad! #3\n"); card 206 sound/pci/vx222/vx222_ops.c dev_dbg(_chip->card->dev, "bad! #4\n"); card 210 sound/pci/vx222/vx222_ops.c dev_dbg(_chip->card->dev, "ok, xilinx fine.\n"); card 392 sound/pci/vx222/vx222_ops.c dev_err(chip->card->dev, card 975 sound/pci/vx222/vx222_ops.c if ((err = snd_ctl_add(_chip->card, snd_ctl_new1(&vx_control_input_level, chip))) < 0) card 977 sound/pci/vx222/vx222_ops.c if ((err = snd_ctl_add(_chip->card, snd_ctl_new1(&vx_control_mic_level, chip))) < 0) card 94 sound/pci/ymfpci/ymfpci.c dev_err(chip->card->dev, card 105 sound/pci/ymfpci/ymfpci.c dev_err(chip->card->dev, card 112 sound/pci/ymfpci/ymfpci.c dev_err(chip->card->dev, card 119 sound/pci/ymfpci/ymfpci.c dev_err(chip->card->dev, card 163 sound/pci/ymfpci/ymfpci.c struct snd_card *card; card 180 sound/pci/ymfpci/ymfpci.c 0, &card); card 253 sound/pci/ymfpci/ymfpci.c if ((err = snd_ymfpci_create(card, pci, card 262 sound/pci/ymfpci/ymfpci.c card->private_data = chip; card 264 sound/pci/ymfpci/ymfpci.c strcpy(card->driver, str); card 265 sound/pci/ymfpci/ymfpci.c sprintf(card->shortname, "Yamaha %s (%s)", model, str); card 266 sound/pci/ymfpci/ymfpci.c sprintf(card->longname, "%s at 0x%lx, irq %i", card 267 sound/pci/ymfpci/ymfpci.c card->shortname, card 296 sound/pci/ymfpci/ymfpci.c if ((err = snd_mpu401_uart_new(card, 0, MPU401_HW_YMFPCI, card 301 sound/pci/ymfpci/ymfpci.c dev_warn(card->dev, card 309 sound/pci/ymfpci/ymfpci.c if ((err = snd_opl3_create(card, card 313 sound/pci/ymfpci/ymfpci.c dev_warn(card->dev, card 319 sound/pci/ymfpci/ymfpci.c dev_err(card->dev, "cannot create opl3 hwdep\n"); card 326 sound/pci/ymfpci/ymfpci.c err = snd_card_register(card); card 330 sound/pci/ymfpci/ymfpci.c pci_set_drvdata(pci, card); card 335 sound/pci/ymfpci/ymfpci.c snd_card_free(card); card 322 sound/pci/ymfpci/ymfpci.h struct snd_card *card; card 359 sound/pci/ymfpci/ymfpci.h int snd_ymfpci_create(struct snd_card *card, card 75 sound/pci/ymfpci/ymfpci_main.c dev_err(chip->card->dev, card 418 sound/pci/ymfpci/ymfpci_main.c snd_ctl_notify(chip->card, SNDRV_CTL_EVENT_MASK_INFO, &kctl->id); card 681 sound/pci/ymfpci/ymfpci_main.c snd_ctl_notify(chip->card, SNDRV_CTL_EVENT_MASK_INFO, &kctl->id); card 982 sound/pci/ymfpci/ymfpci_main.c snd_ctl_notify(chip->card, SNDRV_CTL_EVENT_MASK_VALUE | card 1081 sound/pci/ymfpci/ymfpci_main.c snd_ctl_notify(chip->card, SNDRV_CTL_EVENT_MASK_VALUE | card 1139 sound/pci/ymfpci/ymfpci_main.c if ((err = snd_pcm_new(chip->card, "YMFPCI", device, 32, 1, &pcm)) < 0) card 1174 sound/pci/ymfpci/ymfpci_main.c if ((err = snd_pcm_new(chip->card, "YMFPCI - PCM2", device, 0, 1, &pcm)) < 0) card 1208 sound/pci/ymfpci/ymfpci_main.c if ((err = snd_pcm_new(chip->card, "YMFPCI - IEC958", device, 1, 0, &pcm)) < 0) card 1249 sound/pci/ymfpci/ymfpci_main.c if ((err = snd_pcm_new(chip->card, "YMFPCI - Rear", device, 1, 0, &pcm)) < 0) card 1804 sound/pci/ymfpci/ymfpci_main.c if ((err = snd_ac97_bus(chip->card, 0, &ops, chip, &chip->ac97_bus)) < 0) card 1820 sound/pci/ymfpci/ymfpci_main.c if ((err = snd_ctl_add(chip->card, snd_ctl_new1(&snd_ymfpci_controls[idx], chip))) < 0) card 1825 sound/pci/ymfpci/ymfpci_main.c err = snd_ctl_add(chip->card, kctl); card 1833 sound/pci/ymfpci/ymfpci_main.c if ((err = snd_ctl_add(chip->card, kctl = snd_ctl_new1(&snd_ymfpci_spdif_default, chip))) < 0) card 1836 sound/pci/ymfpci/ymfpci_main.c if ((err = snd_ctl_add(chip->card, kctl = snd_ctl_new1(&snd_ymfpci_spdif_mask, chip))) < 0) card 1839 sound/pci/ymfpci/ymfpci_main.c if ((err = snd_ctl_add(chip->card, kctl = snd_ctl_new1(&snd_ymfpci_spdif_stream, chip))) < 0) card 1846 sound/pci/ymfpci/ymfpci_main.c (err = snd_ctl_add(chip->card, kctl = snd_ctl_new1(&snd_ymfpci_drec_source, chip))) < 0) card 1853 sound/pci/ymfpci/ymfpci_main.c if ((err = snd_ctl_add(chip->card, snd_ctl_new1(&snd_ymfpci_rear_shared, chip))) < 0) card 1866 sound/pci/ymfpci/ymfpci_main.c if ((err = snd_ctl_add(chip->card, kctl)) < 0) card 1944 sound/pci/ymfpci/ymfpci_main.c tid.card = chip->card->number; card 1947 sound/pci/ymfpci/ymfpci_main.c if ((err = snd_timer_new(chip->card, "YMFPCI", &tid, &timer)) >= 0) { card 1972 sound/pci/ymfpci/ymfpci_main.c static int snd_ymfpci_proc_init(struct snd_card *card, struct snd_ymfpci *chip) card 1974 sound/pci/ymfpci/ymfpci_main.c return snd_card_ro_proc_new(card, "ymfpci", chip, snd_ymfpci_proc_read); card 2028 sound/pci/ymfpci/ymfpci_main.c dev_err(chip->card->dev, card 2044 sound/pci/ymfpci/ymfpci_main.c dev_err(chip->card->dev, card 2284 sound/pci/ymfpci/ymfpci_main.c struct snd_card *card = dev_get_drvdata(dev); card 2285 sound/pci/ymfpci/ymfpci_main.c struct snd_ymfpci *chip = card->private_data; card 2288 sound/pci/ymfpci/ymfpci_main.c snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); card 2306 sound/pci/ymfpci/ymfpci_main.c struct snd_card *card = dev_get_drvdata(dev); card 2307 sound/pci/ymfpci/ymfpci_main.c struct snd_ymfpci *chip = card->private_data; card 2332 sound/pci/ymfpci/ymfpci_main.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 2339 sound/pci/ymfpci/ymfpci_main.c int snd_ymfpci_create(struct snd_card *card, card 2366 sound/pci/ymfpci/ymfpci_main.c chip->card = card; card 2377 sound/pci/ymfpci/ymfpci_main.c dev_err(chip->card->dev, card 2385 sound/pci/ymfpci/ymfpci_main.c dev_err(chip->card->dev, "unable to grab IRQ %d\n", pci->irq); card 2399 sound/pci/ymfpci/ymfpci_main.c dev_err(chip->card->dev, "firmware request failed: %d\n", err); card 2424 sound/pci/ymfpci/ymfpci_main.c err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops); card 2428 sound/pci/ymfpci/ymfpci_main.c snd_ymfpci_proc_init(card, chip); card 65 sound/pcmcia/pdaudiocf/pdaudiocf.c pdacf->card = NULL; card 84 sound/pcmcia/pdaudiocf/pdaudiocf.c struct snd_card *card; card 104 sound/pcmcia/pdaudiocf/pdaudiocf.c 0, &card); card 110 sound/pcmcia/pdaudiocf/pdaudiocf.c pdacf = snd_pdacf_create(card); card 112 sound/pcmcia/pdaudiocf/pdaudiocf.c snd_card_free(card); card 116 sound/pcmcia/pdaudiocf/pdaudiocf.c err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, pdacf, &ops); card 119 sound/pcmcia/pdaudiocf/pdaudiocf.c snd_card_free(card); card 124 sound/pcmcia/pdaudiocf/pdaudiocf.c card_list[i] = card; card 153 sound/pcmcia/pdaudiocf/pdaudiocf.c struct snd_card *card = pdacf->card; card 164 sound/pcmcia/pdaudiocf/pdaudiocf.c strcpy(card->driver, "PDAudio-CF"); card 165 sound/pcmcia/pdaudiocf/pdaudiocf.c sprintf(card->shortname, "Core Sound %s", card->driver); card 166 sound/pcmcia/pdaudiocf/pdaudiocf.c sprintf(card->longname, "%s at 0x%x, irq %i", card 167 sound/pcmcia/pdaudiocf/pdaudiocf.c card->shortname, port, irq); card 173 sound/pcmcia/pdaudiocf/pdaudiocf.c if ((err = snd_card_register(card)) < 0) card 192 sound/pcmcia/pdaudiocf/pdaudiocf.c snd_card_disconnect(chip->card); card 193 sound/pcmcia/pdaudiocf/pdaudiocf.c snd_card_free_when_closed(chip->card); card 72 sound/pcmcia/pdaudiocf/pdaudiocf.h struct snd_card *card; card 116 sound/pcmcia/pdaudiocf/pdaudiocf.h struct snd_pdacf *snd_pdacf_create(struct snd_card *card); card 138 sound/pcmcia/pdaudiocf/pdaudiocf_core.c snd_card_ro_proc_new(chip->card, "pdaudiocf", chip, pdacf_proc_read); card 141 sound/pcmcia/pdaudiocf/pdaudiocf_core.c struct snd_pdacf *snd_pdacf_create(struct snd_card *card) card 148 sound/pcmcia/pdaudiocf/pdaudiocf_core.c chip->card = card; card 151 sound/pcmcia/pdaudiocf/pdaudiocf_core.c card->private_data = chip; card 193 sound/pcmcia/pdaudiocf/pdaudiocf_core.c err = snd_ak4117_create(chip->card, pdacf_ak4117_read, pdacf_ak4117_write, pgm, chip, &chip->ak4117); card 251 sound/pcmcia/pdaudiocf/pdaudiocf_core.c snd_power_change_state(chip->card, SNDRV_CTL_POWER_D3hot); card 276 sound/pcmcia/pdaudiocf/pdaudiocf_core.c snd_power_change_state(chip->card, SNDRV_CTL_POWER_D0); card 277 sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c err = snd_pcm_new(chip->card, "PDAudioCF", 0, 0, 1, &pcm); card 286 sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c strcpy(pcm->name, chip->card->shortname); card 127 sound/pcmcia/vx/vxp_mixer.c if ((err = snd_ctl_add(_chip->card, snd_ctl_new1(&vx_control_mic_level, chip))) < 0) card 131 sound/pcmcia/vx/vxp_mixer.c if ((err = snd_ctl_add(_chip->card, snd_ctl_new1(&vx_control_mic_boost, chip))) < 0) card 123 sound/pcmcia/vx/vxpocket.c static int snd_vxpocket_new(struct snd_card *card, int ibl, card 134 sound/pcmcia/vx/vxpocket.c chip = snd_vx_create(card, &vxpocket_hw, &snd_vxpocket_ops, card 139 sound/pcmcia/vx/vxpocket.c err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops); card 177 sound/pcmcia/vx/vxpocket.c struct snd_card *card = chip->card; card 183 sound/pcmcia/vx/vxpocket.c sprintf(card->shortname, "Digigram %s", card->driver); card 184 sound/pcmcia/vx/vxpocket.c sprintf(card->longname, "%s at 0x%x, irq %i", card 185 sound/pcmcia/vx/vxpocket.c card->shortname, port, irq); card 215 sound/pcmcia/vx/vxpocket.c strcpy(chip->card->driver, vxp440_hw.name); card 286 sound/pcmcia/vx/vxpocket.c struct snd_card *card; card 304 sound/pcmcia/vx/vxpocket.c 0, &card); card 310 sound/pcmcia/vx/vxpocket.c err = snd_vxpocket_new(card, ibl[i], p_dev, &vxp); card 312 sound/pcmcia/vx/vxpocket.c snd_card_free(card); card 315 sound/pcmcia/vx/vxpocket.c card->private_data = vxp; card 338 sound/pcmcia/vx/vxpocket.c snd_card_disconnect(chip->card); card 340 sound/pcmcia/vx/vxpocket.c snd_card_free_when_closed(chip->card); card 708 sound/ppc/awacs.c err = snd_ctl_add(chip->card, snd_ctl_new1(&mixers[i], chip)); card 847 sound/ppc/awacs.c snd_ctl_notify(chip->card, SNDRV_CTL_EVENT_MASK_VALUE, card 849 sound/ppc/awacs.c snd_ctl_notify(chip->card, SNDRV_CTL_EVENT_MASK_VALUE, card 851 sound/ppc/awacs.c snd_ctl_notify(chip->card, SNDRV_CTL_EVENT_MASK_VALUE, card 958 sound/ppc/awacs.c strcpy(chip->card->mixername, "PowerMac AWACS"); card 987 sound/ppc/awacs.c err = snd_ctl_add(chip->card, card 995 sound/ppc/awacs.c err = snd_ctl_add(chip->card, card 1018 sound/ppc/awacs.c err = snd_ctl_add(chip->card, chip->master_sw_ctl); card 1036 sound/ppc/awacs.c err = snd_ctl_add(chip->card, chip->master_sw_ctl); card 1041 sound/ppc/awacs.c err = snd_ctl_add(chip->card, chip->speaker_sw_ctl); card 1048 sound/ppc/awacs.c err = snd_ctl_add(chip->card, card 1058 sound/ppc/awacs.c err = snd_ctl_add(chip->card, chip->speaker_sw_ctl); card 1074 sound/ppc/awacs.c err = snd_ctl_add(chip->card, vmaster_sw); card 1085 sound/ppc/awacs.c err = snd_ctl_add(chip->card, vmaster_vol); card 242 sound/ppc/beep.c err = snd_ctl_add(chip->card, beep_ctl); card 254 sound/ppc/beep.c fail2: snd_ctl_remove(chip->card, beep_ctl); card 592 sound/ppc/burgundy.c snd_ctl_notify(chip->card, SNDRV_CTL_EVENT_MASK_VALUE, card 594 sound/ppc/burgundy.c snd_ctl_notify(chip->card, SNDRV_CTL_EVENT_MASK_VALUE, card 596 sound/ppc/burgundy.c snd_ctl_notify(chip->card, SNDRV_CTL_EVENT_MASK_VALUE, card 667 sound/ppc/burgundy.c strcpy(chip->card->mixername, "PowerMac Burgundy"); card 670 sound/ppc/burgundy.c err = snd_ctl_add(chip->card, card 677 sound/ppc/burgundy.c err = snd_ctl_add(chip->card, card 686 sound/ppc/burgundy.c err = snd_ctl_add(chip->card, chip->master_sw_ctl); card 692 sound/ppc/burgundy.c err = snd_ctl_add(chip->card, chip->master_sw_ctl); card 698 sound/ppc/burgundy.c err = snd_ctl_add(chip->card, chip->master_sw_ctl); card 705 sound/ppc/burgundy.c err = snd_ctl_add(chip->card, chip->speaker_sw_ctl); card 257 sound/ppc/daca.c strcpy(chip->card->mixername, "PowerMac DACA"); card 260 sound/ppc/daca.c if ((err = snd_ctl_add(chip->card, snd_ctl_new1(&daca_mixers[i], chip))) < 0) card 701 sound/ppc/pmac.c err = snd_pcm_new(chip->card, chip->card->driver, 0, 1, num_captures, &pcm); card 711 sound/ppc/pmac.c strcpy(pcm->name, chip->card->shortname); card 1150 sound/ppc/pmac.c err = snd_ctl_add(chip->card, snd_ctl_new1(&auto_mute_controls[0], chip)); card 1156 sound/ppc/pmac.c return snd_ctl_add(chip->card, chip->hp_detect_ctl); card 1163 sound/ppc/pmac.c int snd_pmac_new(struct snd_card *card, struct snd_pmac **chip_return) card 1179 sound/ppc/pmac.c chip->card = card; card 1326 sound/ppc/pmac.c if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops)) < 0) card 1352 sound/ppc/pmac.c snd_power_change_state(chip->card, SNDRV_CTL_POWER_D3hot); card 1387 sound/ppc/pmac.c snd_power_change_state(chip->card, SNDRV_CTL_POWER_D0); card 79 sound/ppc/pmac.h struct snd_card *card; card 157 sound/ppc/pmac.h int snd_pmac_new(struct snd_card *card, struct snd_pmac **chip_return); card 43 sound/ppc/powermac.c struct snd_card *card; card 48 sound/ppc/powermac.c err = snd_card_new(&devptr->dev, index, id, THIS_MODULE, 0, &card); card 52 sound/ppc/powermac.c if ((err = snd_pmac_new(card, &chip)) < 0) card 54 sound/ppc/powermac.c card->private_data = chip; card 58 sound/ppc/powermac.c strcpy(card->driver, "PMac Burgundy"); card 59 sound/ppc/powermac.c strcpy(card->shortname, "PowerMac Burgundy"); card 60 sound/ppc/powermac.c sprintf(card->longname, "%s (Dev %d) Sub-frame %d", card 61 sound/ppc/powermac.c card->shortname, chip->device_id, chip->subframe); card 66 sound/ppc/powermac.c strcpy(card->driver, "PMac DACA"); card 67 sound/ppc/powermac.c strcpy(card->shortname, "PowerMac DACA"); card 68 sound/ppc/powermac.c sprintf(card->longname, "%s (Dev %d) Sub-frame %d", card 69 sound/ppc/powermac.c card->shortname, chip->device_id, chip->subframe); card 76 sound/ppc/powermac.c sprintf(card->driver, "PMac %s", name_ext); card 77 sound/ppc/powermac.c sprintf(card->shortname, "PowerMac %s", name_ext); card 78 sound/ppc/powermac.c sprintf(card->longname, "%s (Dev %d) Sub-frame %d", card 79 sound/ppc/powermac.c card->shortname, chip->device_id, chip->subframe); card 86 sound/ppc/powermac.c sprintf(card->driver, "PMac %s", name_ext); card 87 sound/ppc/powermac.c sprintf(card->shortname, "PowerMac %s", name_ext); card 94 sound/ppc/powermac.c sprintf(card->longname, "%s%s Rev %d", card 95 sound/ppc/powermac.c card->shortname, name_ext, chip->revision); card 112 sound/ppc/powermac.c if ((err = snd_card_register(card)) < 0) card 115 sound/ppc/powermac.c platform_set_drvdata(devptr, card); card 119 sound/ppc/powermac.c snd_card_free(card); card 133 sound/ppc/powermac.c struct snd_card *card = dev_get_drvdata(dev); card 134 sound/ppc/powermac.c snd_pmac_suspend(card->private_data); card 140 sound/ppc/powermac.c struct snd_card *card = dev_get_drvdata(dev); card 141 sound/ppc/powermac.c snd_pmac_resume(card->private_data); card 107 sound/ppc/snd_ps3.c static int snd_ps3_verify_dma_stop(struct snd_ps3_card_info *card, card 149 sound/ppc/snd_ps3.c static void snd_ps3_wait_for_dma_stop(struct snd_ps3_card_info *card) card 161 sound/ppc/snd_ps3.c stop_forced = snd_ps3_verify_dma_stop(card, 700, 1); card 178 sound/ppc/snd_ps3.c static void snd_ps3_kick_dma(struct snd_ps3_card_info *card) card 189 sound/ppc/snd_ps3.c static dma_addr_t v_to_bus(struct snd_ps3_card_info *card, void *paddr, int ch) card 191 sound/ppc/snd_ps3.c return card->dma_start_bus_addr[ch] + card 192 sound/ppc/snd_ps3.c (paddr - card->dma_start_vaddr[ch]); card 200 sound/ppc/snd_ps3.c static void snd_ps3_bump_buffer(struct snd_ps3_card_info *card, card 205 sound/ppc/snd_ps3.c card->dma_last_transfer_vaddr[ch] = card 206 sound/ppc/snd_ps3.c card->dma_next_transfer_vaddr[ch]; card 207 sound/ppc/snd_ps3.c card->dma_next_transfer_vaddr[ch] += byte_count; card 208 sound/ppc/snd_ps3.c if ((card->dma_start_vaddr[ch] + (card->dma_buffer_size / 2)) <= card 209 sound/ppc/snd_ps3.c card->dma_next_transfer_vaddr[ch]) { card 210 sound/ppc/snd_ps3.c card->dma_next_transfer_vaddr[ch] = card->dma_start_vaddr[ch]; card 216 sound/ppc/snd_ps3.c static int snd_ps3_program_dma(struct snd_ps3_card_info *card, card 243 sound/ppc/snd_ps3.c snd_ps3_verify_dma_stop(card, 700, 0); card 245 sound/ppc/snd_ps3.c spin_lock_irqsave(&card->dma_lock, irqsave); card 250 sound/ppc/snd_ps3.c dma_addr = card->null_buffer_start_dma_addr; card 253 sound/ppc/snd_ps3.c v_to_bus(card, card 254 sound/ppc/snd_ps3.c card->dma_next_transfer_vaddr[ch], card 275 sound/ppc/snd_ps3.c snd_ps3_bump_buffer(card, ch, card 292 sound/ppc/snd_ps3.c spin_unlock_irqrestore(&card->dma_lock, irqsave); card 305 sound/ppc/snd_ps3.c struct snd_ps3_card_info *card = dev_id; card 307 sound/ppc/snd_ps3.c if (!card->running) { card 324 sound/ppc/snd_ps3.c if (card->silent) { card 326 sound/ppc/snd_ps3.c snd_ps3_program_dma(card, card 330 sound/ppc/snd_ps3.c snd_ps3_kick_dma(card); card 331 sound/ppc/snd_ps3.c card->silent--; card 333 sound/ppc/snd_ps3.c snd_ps3_program_dma(card, card 337 sound/ppc/snd_ps3.c snd_ps3_kick_dma(card); card 338 sound/ppc/snd_ps3.c snd_pcm_period_elapsed(card->substream); card 351 sound/ppc/snd_ps3.c snd_ps3_program_dma(card, card 353 sound/ppc/snd_ps3.c snd_ps3_kick_dma(card); card 354 sound/ppc/snd_ps3.c snd_ps3_program_dma(card, card 356 sound/ppc/snd_ps3.c snd_ps3_kick_dma(card); card 376 sound/ppc/snd_ps3.c static int snd_ps3_change_avsetting(struct snd_ps3_card_info *card) card 381 sound/ppc/snd_ps3.c ret = ps3av_set_audio_mode(card->avs.avs_audio_ch, card 382 sound/ppc/snd_ps3.c card->avs.avs_audio_rate, card 383 sound/ppc/snd_ps3.c card->avs.avs_audio_width, card 384 sound/ppc/snd_ps3.c card->avs.avs_audio_format, card 385 sound/ppc/snd_ps3.c card->avs.avs_audio_source); card 440 sound/ppc/snd_ps3.c struct snd_ps3_card_info *card = snd_pcm_substream_chip(substream); card 444 sound/ppc/snd_ps3.c avs = card->avs; card 451 sound/ppc/snd_ps3.c card->avs.avs_audio_rate, card->avs.avs_audio_width); card 489 sound/ppc/snd_ps3.c if (memcmp(&card->avs, &avs, sizeof(avs))) { card 491 sound/ppc/snd_ps3.c card->avs.avs_audio_rate, card->avs.avs_audio_width); card 493 sound/ppc/snd_ps3.c card->avs = avs; card 494 sound/ppc/snd_ps3.c snd_ps3_change_avsetting(card); card 514 sound/ppc/snd_ps3.c struct snd_ps3_card_info *card = snd_pcm_substream_chip(substream); card 517 sound/ppc/snd_ps3.c card->substream = substream; card 521 sound/ppc/snd_ps3.c card->start_delay = snd_ps3_start_delay; card 579 sound/ppc/snd_ps3.c struct snd_ps3_card_info *card = snd_pcm_substream_chip(substream); card 591 sound/ppc/snd_ps3.c card->silent = snd_ps3_delay_to_bytes(substream, card 592 sound/ppc/snd_ps3.c card->start_delay) / card 597 sound/ppc/snd_ps3.c spin_lock_irqsave(&card->dma_lock, irqsave); card 599 sound/ppc/snd_ps3.c card->dma_buffer_size = runtime->dma_bytes; card 601 sound/ppc/snd_ps3.c card->dma_last_transfer_vaddr[SND_PS3_CH_L] = card 602 sound/ppc/snd_ps3.c card->dma_next_transfer_vaddr[SND_PS3_CH_L] = card 603 sound/ppc/snd_ps3.c card->dma_start_vaddr[SND_PS3_CH_L] = card 605 sound/ppc/snd_ps3.c card->dma_start_bus_addr[SND_PS3_CH_L] = runtime->dma_addr; card 607 sound/ppc/snd_ps3.c card->dma_last_transfer_vaddr[SND_PS3_CH_R] = card 608 sound/ppc/snd_ps3.c card->dma_next_transfer_vaddr[SND_PS3_CH_R] = card 609 sound/ppc/snd_ps3.c card->dma_start_vaddr[SND_PS3_CH_R] = card 611 sound/ppc/snd_ps3.c card->dma_start_bus_addr[SND_PS3_CH_R] = card 615 sound/ppc/snd_ps3.c card->dma_start_vaddr[SND_PS3_CH_L], card 616 sound/ppc/snd_ps3.c card->dma_start_bus_addr[SND_PS3_CH_L]); card 619 sound/ppc/snd_ps3.c spin_unlock_irqrestore(&card->dma_lock, irqsave); card 630 sound/ppc/snd_ps3.c struct snd_ps3_card_info *card = snd_pcm_substream_chip(substream); card 637 sound/ppc/snd_ps3.c spin_lock(&card->dma_lock); card 639 sound/ppc/snd_ps3.c card->running = 1; card 641 sound/ppc/snd_ps3.c spin_unlock(&card->dma_lock); card 643 sound/ppc/snd_ps3.c snd_ps3_program_dma(card, card 645 sound/ppc/snd_ps3.c snd_ps3_kick_dma(card); card 650 sound/ppc/snd_ps3.c snd_ps3_program_dma(card, SND_PS3_DMA_FILLTYPE_SILENT_RUNNING); card 651 sound/ppc/snd_ps3.c snd_ps3_kick_dma(card); card 655 sound/ppc/snd_ps3.c spin_lock(&card->dma_lock); card 657 sound/ppc/snd_ps3.c card->running = 0; card 659 sound/ppc/snd_ps3.c spin_unlock(&card->dma_lock); card 660 sound/ppc/snd_ps3.c snd_ps3_wait_for_dma_stop(card); card 676 sound/ppc/snd_ps3.c struct snd_ps3_card_info *card = snd_pcm_substream_chip(substream); card 680 sound/ppc/snd_ps3.c spin_lock(&card->dma_lock); card 682 sound/ppc/snd_ps3.c bytes = (size_t)(card->dma_last_transfer_vaddr[SND_PS3_CH_L] - card 683 sound/ppc/snd_ps3.c card->dma_start_vaddr[SND_PS3_CH_L]); card 685 sound/ppc/snd_ps3.c spin_unlock(&card->dma_lock); card 866 sound/ppc/snd_ps3.c static void snd_ps3_audio_fixup(struct snd_ps3_card_info *card) card 890 sound/ppc/snd_ps3.c static int snd_ps3_init_avsetting(struct snd_ps3_card_info *card) card 894 sound/ppc/snd_ps3.c card->avs.avs_audio_ch = PS3AV_CMD_AUDIO_NUM_OF_CH_2; card 895 sound/ppc/snd_ps3.c card->avs.avs_audio_rate = PS3AV_CMD_AUDIO_FS_48K; card 896 sound/ppc/snd_ps3.c card->avs.avs_audio_width = PS3AV_CMD_AUDIO_WORD_BITS_16; card 897 sound/ppc/snd_ps3.c card->avs.avs_audio_format = PS3AV_CMD_AUDIO_FORMAT_PCM; card 898 sound/ppc/snd_ps3.c card->avs.avs_audio_source = PS3AV_CMD_AUDIO_SOURCE_SERIAL; card 899 sound/ppc/snd_ps3.c memcpy(card->avs.avs_cs_info, ps3av_mode_cs_info, 8); card 901 sound/ppc/snd_ps3.c ret = snd_ps3_change_avsetting(card); card 903 sound/ppc/snd_ps3.c snd_ps3_audio_fixup(card); card 906 sound/ppc/snd_ps3.c snd_ps3_program_dma(card, SND_PS3_DMA_FILLTYPE_SILENT_FIRSTFILL); card 907 sound/ppc/snd_ps3.c snd_ps3_kick_dma(card); card 974 sound/ppc/snd_ps3.c 0, &the_card.card); card 978 sound/ppc/snd_ps3.c strcpy(the_card.card->driver, "PS3"); card 979 sound/ppc/snd_ps3.c strcpy(the_card.card->shortname, "PS3"); card 980 sound/ppc/snd_ps3.c strcpy(the_card.card->longname, "PS3 sound"); card 984 sound/ppc/snd_ps3.c ret = snd_ctl_add(the_card.card, card 992 sound/ppc/snd_ps3.c ret = snd_pcm_new(the_card.card, card 1038 sound/ppc/snd_ps3.c ret = snd_card_register(the_card.card); card 1043 sound/ppc/snd_ps3.c the_card.card->longname, the_card.start_delay); card 1052 sound/ppc/snd_ps3.c snd_card_free(the_card.card); card 1082 sound/ppc/snd_ps3.c ret = snd_card_free(the_card.card); card 50 sound/ppc/snd_ps3.h struct snd_card *card; card 949 sound/ppc/tumbler.c snd_ctl_notify(chip->card, SNDRV_CTL_EVENT_MASK_VALUE, card 1000 sound/ppc/tumbler.c snd_ctl_notify(chip->card, SNDRV_CTL_EVENT_MASK_VALUE, card 1006 sound/ppc/tumbler.c snd_ctl_notify(chip->card, SNDRV_CTL_EVENT_MASK_VALUE, card 1401 sound/ppc/tumbler.c sprintf(chip->card->mixername, "PowerMac %s", chipname); card 1405 sound/ppc/tumbler.c if ((err = snd_ctl_add(chip->card, snd_ctl_new1(&tumbler_mixers[i], chip))) < 0) card 1410 sound/ppc/tumbler.c if ((err = snd_ctl_add(chip->card, snd_ctl_new1(&snapper_mixers[i], chip))) < 0) card 1415 sound/ppc/tumbler.c if ((err = snd_ctl_add(chip->card, chip->master_sw_ctl)) < 0) card 1418 sound/ppc/tumbler.c if ((err = snd_ctl_add(chip->card, chip->speaker_sw_ctl)) < 0) card 1422 sound/ppc/tumbler.c if ((err = snd_ctl_add(chip->card, chip->lineout_sw_ctl)) < 0) card 1426 sound/ppc/tumbler.c if ((err = snd_ctl_add(chip->card, chip->drc_sw_ctl)) < 0) card 435 sound/sh/aica.c snd_pcm_new(dreamcastcard->card, "AICA PCM", pcm_index, 1, 0, card 551 sound/sh/aica.c (dreamcastcard->card, card 556 sound/sh/aica.c (dreamcastcard->card, card 569 sound/sh/aica.c snd_card_free(dreamcastcard->card); card 582 sound/sh/aica.c THIS_MODULE, 0, &dreamcastcard->card); card 587 sound/sh/aica.c strcpy(dreamcastcard->card->driver, "snd_aica"); card 588 sound/sh/aica.c strcpy(dreamcastcard->card->shortname, SND_AICA_DRIVER); card 589 sound/sh/aica.c strcpy(dreamcastcard->card->longname, card 603 sound/sh/aica.c err = snd_card_register(dreamcastcard->card); card 611 sound/sh/aica.c snd_card_free(dreamcastcard->card); card 60 sound/sh/aica.h struct snd_card *card; card 40 sound/sh/sh_dac_audio.c struct snd_card *card; card 258 sound/sh/sh_dac_audio.c err = snd_pcm_new(chip->card, "SH_DAC PCM", device, 1, 0, &pcm); card 335 sound/sh/sh_dac_audio.c static int snd_sh_dac_create(struct snd_card *card, card 352 sound/sh/sh_dac_audio.c chip->card = card; card 369 sound/sh/sh_dac_audio.c err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops); card 384 sound/sh/sh_dac_audio.c struct snd_card *card; card 387 sound/sh/sh_dac_audio.c err = snd_card_new(&devptr->dev, index, id, THIS_MODULE, 0, &card); card 393 sound/sh/sh_dac_audio.c err = snd_sh_dac_create(card, devptr, &chip); card 401 sound/sh/sh_dac_audio.c strcpy(card->driver, "snd_sh_dac"); card 402 sound/sh/sh_dac_audio.c strcpy(card->shortname, "SuperH DAC audio driver"); card 403 sound/sh/sh_dac_audio.c printk(KERN_INFO "%s %s", card->longname, card->shortname); card 405 sound/sh/sh_dac_audio.c err = snd_card_register(card); card 411 sound/sh/sh_dac_audio.c platform_set_drvdata(devptr, card); card 415 sound/sh/sh_dac_audio.c snd_card_free(card); card 56 sound/soc/amd/acp-da7219-max98357a.c struct snd_soc_card *card = rtd->card; card 79 sound/soc/amd/acp-da7219-max98357a.c ret = snd_soc_card_jack_new(card, "Headset Jack", card 85 sound/soc/amd/acp-da7219-max98357a.c dev_err(card->dev, "HP jack creation failed %d\n", ret); card 145 sound/soc/amd/acp-da7219-max98357a.c struct snd_soc_card *card = rtd->card; card 146 sound/soc/amd/acp-da7219-max98357a.c struct acp_platform_info *machine = snd_soc_card_get_drvdata(card); card 166 sound/soc/amd/acp-da7219-max98357a.c struct snd_soc_card *card = rtd->card; card 167 sound/soc/amd/acp-da7219-max98357a.c struct acp_platform_info *machine = snd_soc_card_get_drvdata(card); card 188 sound/soc/amd/acp-da7219-max98357a.c struct snd_soc_card *card = rtd->card; card 189 sound/soc/amd/acp-da7219-max98357a.c struct acp_platform_info *machine = snd_soc_card_get_drvdata(card); card 209 sound/soc/amd/acp-da7219-max98357a.c struct snd_soc_card *card = rtd->card; card 210 sound/soc/amd/acp-da7219-max98357a.c struct acp_platform_info *machine = snd_soc_card_get_drvdata(card); card 230 sound/soc/amd/acp-da7219-max98357a.c struct snd_soc_card *card = rtd->card; card 231 sound/soc/amd/acp-da7219-max98357a.c struct acp_platform_info *machine = snd_soc_card_get_drvdata(card); card 438 sound/soc/amd/acp-da7219-max98357a.c struct snd_soc_card *card; card 455 sound/soc/amd/acp-da7219-max98357a.c card = &cz_card; card 457 sound/soc/amd/acp-da7219-max98357a.c platform_set_drvdata(pdev, card); card 458 sound/soc/amd/acp-da7219-max98357a.c snd_soc_card_set_drvdata(card, machine); card 849 sound/soc/amd/acp-pcm-dma.c struct snd_soc_card *card = prtd->card; card 850 sound/soc/amd/acp-pcm-dma.c struct acp_platform_info *pinfo = snd_soc_card_get_drvdata(card); card 73 sound/soc/amd/acp-rt5645.c struct snd_soc_card *card; card 77 sound/soc/amd/acp-rt5645.c card = rtd->card; card 79 sound/soc/amd/acp-rt5645.c ret = snd_soc_card_jack_new(card, "Headset Jack", card 85 sound/soc/amd/acp-rt5645.c dev_err(card->dev, "HP jack creation failed %d\n", ret); card 170 sound/soc/amd/acp-rt5645.c struct snd_soc_card *card; card 172 sound/soc/amd/acp-rt5645.c card = &cz_card; card 174 sound/soc/amd/acp-rt5645.c platform_set_drvdata(pdev, card); card 122 sound/soc/atmel/atmel-classd.c struct atmel_classd *dd = snd_soc_card_get_drvdata(rtd->card); card 133 sound/soc/atmel/atmel-classd.c struct atmel_classd *dd = snd_soc_card_get_drvdata(rtd->card); card 163 sound/soc/atmel/atmel-classd.c struct atmel_classd *dd = snd_soc_card_get_drvdata(rtd->card); card 250 sound/soc/atmel/atmel-classd.c struct snd_soc_card *card = snd_soc_component_get_drvdata(component); card 251 sound/soc/atmel/atmel-classd.c struct atmel_classd *dd = snd_soc_card_get_drvdata(card); card 303 sound/soc/atmel/atmel-classd.c struct snd_soc_card *card = snd_soc_component_get_drvdata(component); card 304 sound/soc/atmel/atmel-classd.c struct atmel_classd *dd = snd_soc_card_get_drvdata(card); card 325 sound/soc/atmel/atmel-classd.c struct atmel_classd *dd = snd_soc_card_get_drvdata(rtd->card); card 381 sound/soc/atmel/atmel-classd.c struct atmel_classd *dd = snd_soc_card_get_drvdata(rtd->card); card 424 sound/soc/atmel/atmel-classd.c struct atmel_classd *dd = snd_soc_card_get_drvdata(rtd->card); card 496 sound/soc/atmel/atmel-classd.c struct snd_soc_card *card) card 499 sound/soc/atmel/atmel-classd.c struct atmel_classd *dd = snd_soc_card_get_drvdata(card); card 525 sound/soc/atmel/atmel-classd.c card->dai_link = dai_link; card 526 sound/soc/atmel/atmel-classd.c card->num_links = 1; card 527 sound/soc/atmel/atmel-classd.c card->name = dd->pdata->card_name; card 528 sound/soc/atmel/atmel-classd.c card->dev = dev; card 557 sound/soc/atmel/atmel-classd.c struct snd_soc_card *card; card 631 sound/soc/atmel/atmel-classd.c card = devm_kzalloc(dev, sizeof(*card), GFP_KERNEL); card 632 sound/soc/atmel/atmel-classd.c if (!card) { card 637 sound/soc/atmel/atmel-classd.c snd_soc_card_set_drvdata(card, dd); card 639 sound/soc/atmel/atmel-classd.c ret = atmel_classd_asoc_card_init(dev, card); card 645 sound/soc/atmel/atmel-classd.c ret = devm_snd_soc_register_card(dev, card); card 45 sound/soc/atmel/atmel-pcm-pdc.c buf->dev.dev = pcm->card->dev; card 47 sound/soc/atmel/atmel-pcm-pdc.c buf->area = dma_alloc_coherent(pcm->card->dev, size, card 69 sound/soc/atmel/atmel-pcm-pdc.c struct snd_card *card = rtd->card->snd_card; card 73 sound/soc/atmel/atmel-pcm-pdc.c ret = dma_coerce_mask_and_coherent(card->dev, DMA_BIT_MASK(32)); card 110 sound/soc/atmel/atmel-pcm-pdc.c dma_free_coherent(pcm->card->dev, buf->bytes, card 108 sound/soc/atmel/atmel-pdmic.c struct atmel_pdmic *dd = snd_soc_card_get_drvdata(rtd->card); card 136 sound/soc/atmel/atmel-pdmic.c struct atmel_pdmic *dd = snd_soc_card_get_drvdata(rtd->card); card 149 sound/soc/atmel/atmel-pdmic.c struct atmel_pdmic *dd = snd_soc_card_get_drvdata(rtd->card); card 201 sound/soc/atmel/atmel-pdmic.c struct atmel_pdmic *dd = snd_soc_card_get_drvdata(rtd->card); card 349 sound/soc/atmel/atmel-pdmic.c struct snd_soc_card *card = snd_soc_component_get_drvdata(component); card 350 sound/soc/atmel/atmel-pdmic.c struct atmel_pdmic *dd = snd_soc_card_get_drvdata(card); card 377 sound/soc/atmel/atmel-pdmic.c struct atmel_pdmic *dd = snd_soc_card_get_drvdata(rtd->card); card 507 sound/soc/atmel/atmel-pdmic.c struct snd_soc_card *card) card 510 sound/soc/atmel/atmel-pdmic.c struct atmel_pdmic *dd = snd_soc_card_get_drvdata(card); card 536 sound/soc/atmel/atmel-pdmic.c card->dai_link = dai_link; card 537 sound/soc/atmel/atmel-pdmic.c card->num_links = 1; card 538 sound/soc/atmel/atmel-pdmic.c card->name = dd->pdata->card_name; card 539 sound/soc/atmel/atmel-pdmic.c card->dev = dev; card 599 sound/soc/atmel/atmel-pdmic.c struct snd_soc_card *card; card 698 sound/soc/atmel/atmel-pdmic.c card = devm_kzalloc(dev, sizeof(*card), GFP_KERNEL); card 699 sound/soc/atmel/atmel-pdmic.c if (!card) { card 704 sound/soc/atmel/atmel-pdmic.c snd_soc_card_set_drvdata(card, dd); card 706 sound/soc/atmel/atmel-pdmic.c ret = atmel_pdmic_asoc_card_init(dev, card); card 712 sound/soc/atmel/atmel-pdmic.c ret = devm_snd_soc_register_card(dev, card); card 88 sound/soc/atmel/atmel_wm8904.c struct snd_soc_card *card = &atmel_asoc_wm8904_card; card 97 sound/soc/atmel/atmel_wm8904.c ret = snd_soc_of_parse_card_name(card, "atmel,model"); card 103 sound/soc/atmel/atmel_wm8904.c ret = snd_soc_of_parse_audio_routing(card, "atmel,audio-routing"); card 133 sound/soc/atmel/atmel_wm8904.c struct snd_soc_card *card = &atmel_asoc_wm8904_card; card 137 sound/soc/atmel/atmel_wm8904.c card->dev = &pdev->dev; card 151 sound/soc/atmel/atmel_wm8904.c ret = snd_soc_register_card(card); card 166 sound/soc/atmel/atmel_wm8904.c struct snd_soc_card *card = platform_get_drvdata(pdev); card 172 sound/soc/atmel/atmel_wm8904.c snd_soc_unregister_card(card); card 23 sound/soc/atmel/mikroe-proto.c struct snd_soc_card *card = rtd->card; card 30 sound/soc/atmel/mikroe-proto.c dev_err(card->dev, "Failed to set WM8731 SYSCLK: %d\n", card 51 sound/soc/atmel/sam9g20_wm8731.c static int at91sam9g20ek_set_bias_level(struct snd_soc_card *card, card 113 sound/soc/atmel/sam9g20_wm8731.c snd_soc_dapm_nc_pin(&rtd->card->dapm, "Int Mic"); card 152 sound/soc/atmel/sam9g20_wm8731.c struct snd_soc_card *card = &snd_soc_at91sam9g20ek; card 190 sound/soc/atmel/sam9g20_wm8731.c card->dev = &pdev->dev; card 193 sound/soc/atmel/sam9g20_wm8731.c ret = snd_soc_of_parse_card_name(card, "atmel,model"); card 197 sound/soc/atmel/sam9g20_wm8731.c ret = snd_soc_of_parse_audio_routing(card, card 225 sound/soc/atmel/sam9g20_wm8731.c ret = snd_soc_register_card(card); card 242 sound/soc/atmel/sam9g20_wm8731.c struct snd_soc_card *card = platform_get_drvdata(pdev); card 246 sound/soc/atmel/sam9g20_wm8731.c snd_soc_unregister_card(card); card 77 sound/soc/atmel/sam9x5_wm8731.c struct snd_soc_card *card; card 88 sound/soc/atmel/sam9x5_wm8731.c card = devm_kzalloc(&pdev->dev, sizeof(*card), GFP_KERNEL); card 92 sound/soc/atmel/sam9x5_wm8731.c if (!dai || !card || !priv || !comp) { card 97 sound/soc/atmel/sam9x5_wm8731.c snd_soc_card_set_drvdata(card, priv); card 99 sound/soc/atmel/sam9x5_wm8731.c card->dev = &pdev->dev; card 100 sound/soc/atmel/sam9x5_wm8731.c card->owner = THIS_MODULE; card 101 sound/soc/atmel/sam9x5_wm8731.c card->dai_link = dai; card 102 sound/soc/atmel/sam9x5_wm8731.c card->num_links = 1; card 103 sound/soc/atmel/sam9x5_wm8731.c card->dapm_widgets = sam9x5_dapm_widgets; card 104 sound/soc/atmel/sam9x5_wm8731.c card->num_dapm_widgets = ARRAY_SIZE(sam9x5_dapm_widgets); card 120 sound/soc/atmel/sam9x5_wm8731.c ret = snd_soc_of_parse_card_name(card, "atmel,model"); card 126 sound/soc/atmel/sam9x5_wm8731.c ret = snd_soc_of_parse_audio_routing(card, "atmel,audio-routing"); card 162 sound/soc/atmel/sam9x5_wm8731.c ret = snd_soc_register_card(card); card 180 sound/soc/atmel/sam9x5_wm8731.c struct snd_soc_card *card = platform_get_drvdata(pdev); card 181 sound/soc/atmel/sam9x5_wm8731.c struct sam9x5_drvdata *priv = card->drvdata; card 183 sound/soc/atmel/sam9x5_wm8731.c snd_soc_unregister_card(card); card 64 sound/soc/atmel/tse850-pcm5142.c struct snd_soc_card *card = dapm->card; card 65 sound/soc/atmel/tse850-pcm5142.c struct tse850_priv *tse850 = snd_soc_card_get_drvdata(card); card 76 sound/soc/atmel/tse850-pcm5142.c struct snd_soc_card *card = dapm->card; card 77 sound/soc/atmel/tse850-pcm5142.c struct tse850_priv *tse850 = snd_soc_card_get_drvdata(card); card 94 sound/soc/atmel/tse850-pcm5142.c struct snd_soc_card *card = dapm->card; card 95 sound/soc/atmel/tse850-pcm5142.c struct tse850_priv *tse850 = snd_soc_card_get_drvdata(card); card 106 sound/soc/atmel/tse850-pcm5142.c struct snd_soc_card *card = dapm->card; card 107 sound/soc/atmel/tse850-pcm5142.c struct tse850_priv *tse850 = snd_soc_card_get_drvdata(card); card 124 sound/soc/atmel/tse850-pcm5142.c struct snd_soc_card *card = dapm->card; card 125 sound/soc/atmel/tse850-pcm5142.c struct tse850_priv *tse850 = snd_soc_card_get_drvdata(card); card 136 sound/soc/atmel/tse850-pcm5142.c struct snd_soc_card *card = dapm->card; card 137 sound/soc/atmel/tse850-pcm5142.c struct tse850_priv *tse850 = snd_soc_card_get_drvdata(card); card 158 sound/soc/atmel/tse850-pcm5142.c struct snd_soc_card *card = dapm->card; card 159 sound/soc/atmel/tse850-pcm5142.c struct tse850_priv *tse850 = snd_soc_card_get_drvdata(card); card 191 sound/soc/atmel/tse850-pcm5142.c struct snd_soc_card *card = dapm->card; card 192 sound/soc/atmel/tse850-pcm5142.c struct tse850_priv *tse850 = snd_soc_card_get_drvdata(card); card 356 sound/soc/atmel/tse850-pcm5142.c struct snd_soc_card *card = &tse850_card; card 357 sound/soc/atmel/tse850-pcm5142.c struct device *dev = card->dev = &pdev->dev; card 365 sound/soc/atmel/tse850-pcm5142.c snd_soc_card_set_drvdata(card, tse850); card 410 sound/soc/atmel/tse850-pcm5142.c ret = snd_soc_register_card(card); card 425 sound/soc/atmel/tse850-pcm5142.c struct snd_soc_card *card = platform_get_drvdata(pdev); card 426 sound/soc/atmel/tse850-pcm5142.c struct tse850_priv *tse850 = snd_soc_card_get_drvdata(card); card 428 sound/soc/atmel/tse850-pcm5142.c snd_soc_unregister_card(card); card 42 sound/soc/au1x/db1000.c struct snd_soc_card *card = &db1000_ac97; card 43 sound/soc/au1x/db1000.c card->dev = &pdev->dev; card 44 sound/soc/au1x/db1000.c return devm_snd_soc_register_card(&pdev->dev, card); card 188 sound/soc/au1x/db1200.c struct snd_soc_card *card; card 190 sound/soc/au1x/db1200.c card = db1200_cards[pid->driver_data]; card 191 sound/soc/au1x/db1200.c card->dev = &pdev->dev; card 192 sound/soc/au1x/db1200.c return devm_snd_soc_register_card(&pdev->dev, card); card 318 sound/soc/au1x/dbdma2.c struct snd_card *card = rtd->card->snd_card; card 322 sound/soc/au1x/dbdma2.c card->dev, AU1XPSC_BUFFER_MIN_BYTES, (4096 * 1024) - 1); card 60 sound/soc/au1x/psc-ac97.c struct snd_soc_card *c = x->bus->card->private_data; card 736 sound/soc/bcm/cygnus-pcm.c buf->dev.dev = pcm->card->dev; card 738 sound/soc/bcm/cygnus-pcm.c buf->area = dma_alloc_coherent(pcm->card->dev, size, card 774 sound/soc/bcm/cygnus-pcm.c dma_free_coherent(pcm->card->dev, buf->bytes, card 784 sound/soc/bcm/cygnus-pcm.c dma_free_coherent(pcm->card->dev, buf->bytes, card 793 sound/soc/bcm/cygnus-pcm.c struct snd_card *card = rtd->card->snd_card; card 797 sound/soc/bcm/cygnus-pcm.c if (!card->dev->dma_mask) card 798 sound/soc/bcm/cygnus-pcm.c card->dev->dma_mask = &cygnus_dma_dmamask; card 799 sound/soc/bcm/cygnus-pcm.c if (!card->dev->coherent_dma_mask) card 800 sound/soc/bcm/cygnus-pcm.c card->dev->coherent_dma_mask = DMA_BIT_MASK(32); card 77 sound/soc/cirrus/edb93xx.c struct snd_soc_card *card = &snd_soc_edb93xx; card 84 sound/soc/cirrus/edb93xx.c card->dev = &pdev->dev; card 86 sound/soc/cirrus/edb93xx.c ret = snd_soc_register_card(card); card 98 sound/soc/cirrus/edb93xx.c struct snd_soc_card *card = platform_get_drvdata(pdev); card 100 sound/soc/cirrus/edb93xx.c snd_soc_unregister_card(card); card 43 sound/soc/cirrus/simone.c struct snd_soc_card *card = &snd_soc_simone; card 51 sound/soc/cirrus/simone.c card->dev = &pdev->dev; card 53 sound/soc/cirrus/simone.c ret = snd_soc_register_card(card); card 65 sound/soc/cirrus/simone.c struct snd_soc_card *card = platform_get_drvdata(pdev); card 67 sound/soc/cirrus/simone.c snd_soc_unregister_card(card); card 92 sound/soc/cirrus/snappercl15.c struct snd_soc_card *card = &snd_soc_snappercl15; card 99 sound/soc/cirrus/snappercl15.c card->dev = &pdev->dev; card 101 sound/soc/cirrus/snappercl15.c ret = snd_soc_register_card(card); card 113 sound/soc/cirrus/snappercl15.c struct snd_soc_card *card = platform_get_drvdata(pdev); card 115 sound/soc/cirrus/snappercl15.c snd_soc_unregister_card(card); card 72 sound/soc/codecs/ac97.c ret = snd_ac97_bus(component->card->snd_card, 0, soc_ac97_ops, card 278 sound/soc/codecs/ak4118.c kctl = snd_soc_card_get_kcontrol(component->card, card 283 sound/soc/codecs/ak4118.c snd_ctl_notify(component->card->snd_card, card 2283 sound/soc/codecs/cs43130.c struct snd_soc_card *card = component->card; card 2296 sound/soc/codecs/cs43130.c ret = snd_soc_card_jack_new(card, "Headphone", CS43130_JACK_MASK, card 251 sound/soc/codecs/cx20442.c component->card->pop_time = 0; card 278 sound/soc/codecs/cx20442.c component->card->pop_time = 1; card 385 sound/soc/codecs/cx20442.c component->card->pop_time = 0; card 325 sound/soc/codecs/hdac_hda.c ret = snd_hda_codec_device_new(hcodec->bus, component->card->snd_card, card 344 sound/soc/codecs/hdac_hda.c hcodec->bus->card = dapm->card->snd_card; card 133 sound/soc/codecs/hdac_hdmi.c struct snd_card *card; card 1170 sound/soc/codecs/hdac_hdmi.c snd_soc_dapm_new_widgets(dapm->card); card 1621 sound/soc/codecs/hdac_hdmi.c if (snd_power_get_state(component->card->snd_card) != card 1658 sound/soc/codecs/hdac_hdmi.c static struct snd_pcm *hdac_hdmi_get_pcm_from_id(struct snd_soc_card *card, card 1663 sound/soc/codecs/hdac_hdmi.c for_each_card_rtds(card, rtd) { card 1672 sound/soc/codecs/hdac_hdmi.c static int create_fill_jack_kcontrols(struct snd_soc_card *card, card 1712 sound/soc/codecs/hdac_hdmi.c return snd_soc_add_card_controls(card, kc, i); card 1769 sound/soc/codecs/hdac_hdmi.c ret = snd_soc_dapm_new_widgets(dapm->card); card 1774 sound/soc/codecs/hdac_hdmi.c ret = create_fill_jack_kcontrols(dapm->card, hdev); card 1813 sound/soc/codecs/hdac_hdmi.c snd_pcm = hdac_hdmi_get_pcm_from_id(dai->component->card, device); card 1890 sound/soc/codecs/hdac_hdmi.c hdmi->card = dapm->card->snd_card; card 1901 sound/soc/codecs/hdac_hdmi.c device_link_add(component->card->dev, &hdev->dev, DL_FLAG_RPM_ACTIVE | card 643 sound/soc/codecs/hdmi-codec.c return snd_ctl_add(rtd->card->snd_card, kctl); card 1166 sound/soc/codecs/rt1011.c if (!component->card->instantiated) card 1239 sound/soc/codecs/rt1011.c if (!component->card->instantiated) card 1287 sound/soc/codecs/rt1011.c if (!component->card->instantiated) card 3150 sound/soc/codecs/rt5645.c if (!dapm->card->instantiated) { card 3416 sound/soc/codecs/rt5645.c component->card->long_name = rt5645->pdata.long_name; card 1301 sound/soc/codecs/rt5665.c while (!rt5665->component->card->instantiated) { card 4752 sound/soc/codecs/rt5665.c while (!rt5665->component->card->instantiated) { card 1028 sound/soc/codecs/rt5668.c while (!rt5668->component->card->instantiated) card 1058 sound/soc/codecs/rt5682.c while (!rt5682->component->card->instantiated) card 653 sound/soc/codecs/sigmadsp.c return snd_ctl_add(sigmadsp->component->card->snd_card, kcontrol); card 659 sound/soc/codecs/sigmadsp.c struct snd_card *card = sigmadsp->component->card->snd_card; card 667 sound/soc/codecs/sigmadsp.c down_write(&card->controls_rwsem); card 669 sound/soc/codecs/sigmadsp.c up_write(&card->controls_rwsem); card 679 sound/soc/codecs/sigmadsp.c up_write(&card->controls_rwsem); card 689 sound/soc/codecs/sigmadsp.c snd_ctl_notify(card, SNDRV_CTL_EVENT_MASK_INFO, &id); card 504 sound/soc/codecs/wm8960.c list_for_each_entry(w, &component->card->widgets, list) { card 57 sound/soc/fsl/efika-audio-fabric.c static struct snd_soc_card card = { card 78 sound/soc/fsl/efika-audio-fabric.c platform_set_drvdata(pdev, &card); card 88 sound/soc/fsl/fsl-asoc-card.c struct snd_soc_card card; card 142 sound/soc/fsl/fsl-asoc-card.c struct fsl_asoc_card_priv *priv = snd_soc_card_get_drvdata(rtd->card); card 145 sound/soc/fsl/fsl-asoc-card.c struct device *dev = rtd->card->dev; card 156 sound/soc/fsl/fsl-asoc-card.c if ((priv->card.set_bias_level && card 189 sound/soc/fsl/fsl-asoc-card.c struct fsl_asoc_card_priv *priv = snd_soc_card_get_drvdata(rtd->card); card 247 sound/soc/fsl/fsl-asoc-card.c static int fsl_asoc_card_set_bias_level(struct snd_soc_card *card, card 251 sound/soc/fsl/fsl-asoc-card.c struct fsl_asoc_card_priv *priv = snd_soc_card_get_drvdata(card); card 255 sound/soc/fsl/fsl-asoc-card.c struct device *dev = card->dev; card 259 sound/soc/fsl/fsl-asoc-card.c rtd = snd_soc_get_pcm_runtime(card, card->dai_link[0].name); card 444 sound/soc/fsl/fsl-asoc-card.c static int fsl_asoc_card_late_probe(struct snd_soc_card *card) card 446 sound/soc/fsl/fsl-asoc-card.c struct fsl_asoc_card_priv *priv = snd_soc_card_get_drvdata(card); card 448 sound/soc/fsl/fsl-asoc-card.c &card->rtd_list, struct snd_soc_pcm_runtime, list); card 451 sound/soc/fsl/fsl-asoc-card.c struct device *dev = card->dev; card 544 sound/soc/fsl/fsl-asoc-card.c priv->card.set_bias_level = NULL; card 561 sound/soc/fsl/fsl-asoc-card.c priv->card.set_bias_level = fsl_asoc_card_set_bias_level; card 568 sound/soc/fsl/fsl-asoc-card.c priv->card.set_bias_level = fsl_asoc_card_set_bias_level; card 574 sound/soc/fsl/fsl-asoc-card.c priv->card.set_bias_level = NULL; card 610 sound/soc/fsl/fsl-asoc-card.c priv->card.dev = &pdev->dev; card 611 sound/soc/fsl/fsl-asoc-card.c priv->card.name = priv->name; card 612 sound/soc/fsl/fsl-asoc-card.c priv->card.dai_link = priv->dai_link; card 613 sound/soc/fsl/fsl-asoc-card.c priv->card.dapm_routes = fsl_asoc_card_is_ac97(priv) ? card 615 sound/soc/fsl/fsl-asoc-card.c priv->card.late_probe = fsl_asoc_card_late_probe; card 616 sound/soc/fsl/fsl-asoc-card.c priv->card.num_dapm_routes = ARRAY_SIZE(audio_map); card 617 sound/soc/fsl/fsl-asoc-card.c priv->card.dapm_widgets = fsl_asoc_card_dapm_widgets; card 618 sound/soc/fsl/fsl-asoc-card.c priv->card.num_dapm_widgets = ARRAY_SIZE(fsl_asoc_card_dapm_widgets); card 622 sound/soc/fsl/fsl-asoc-card.c priv->card.num_dapm_routes /= 2; card 627 sound/soc/fsl/fsl-asoc-card.c ret = snd_soc_of_parse_audio_routing(&priv->card, "audio-routing"); card 661 sound/soc/fsl/fsl-asoc-card.c priv->card.num_links = 1; card 673 sound/soc/fsl/fsl-asoc-card.c priv->card.num_links = 3; card 698 sound/soc/fsl/fsl-asoc-card.c snd_soc_card_set_drvdata(&priv->card, priv); card 700 sound/soc/fsl/fsl-asoc-card.c ret = devm_snd_soc_register_card(&pdev->dev, &priv->card); card 334 sound/soc/fsl/fsl_asrc_dma.c struct snd_card *card = rtd->card->snd_card; card 339 sound/soc/fsl/fsl_asrc_dma.c ret = dma_coerce_mask_and_coherent(card->dev, DMA_BIT_MASK(32)); card 341 sound/soc/fsl/fsl_asrc_dma.c dev_err(card->dev, "failed to set DMA mask\n"); card 350 sound/soc/fsl/fsl_asrc_dma.c ret = snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, pcm->card->dev, card 353 sound/soc/fsl/fsl_asrc_dma.c dev_err(card->dev, "failed to allocate DMA buffer\n"); card 285 sound/soc/fsl/fsl_dma.c struct snd_card *card = rtd->card->snd_card; card 289 sound/soc/fsl/fsl_dma.c ret = dma_coerce_mask_and_coherent(card->dev, DMA_BIT_MASK(36)); card 298 sound/soc/fsl/fsl_dma.c ret = snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, card->dev, card 302 sound/soc/fsl/fsl_dma.c dev_err(card->dev, "can't alloc playback dma buffer\n"); card 308 sound/soc/fsl/fsl_dma.c ret = snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, card->dev, card 312 sound/soc/fsl/fsl_dma.c dev_err(card->dev, "can't alloc capture dma buffer\n"); card 24 sound/soc/fsl/imx-audmix.c struct snd_soc_card card; card 48 sound/soc/fsl/imx-audmix.c struct imx_audmix *priv = snd_soc_card_get_drvdata(rtd->card); card 50 sound/soc/fsl/imx-audmix.c struct device *dev = rtd->card->dev; card 77 sound/soc/fsl/imx-audmix.c struct device *dev = rtd->card->dev; card 116 sound/soc/fsl/imx-audmix.c struct device *dev = rtd->card->dev; card 322 sound/soc/fsl/imx-audmix.c priv->card.dai_link = priv->dai; card 323 sound/soc/fsl/imx-audmix.c priv->card.num_links = priv->num_dai; card 324 sound/soc/fsl/imx-audmix.c priv->card.codec_conf = priv->dai_conf; card 325 sound/soc/fsl/imx-audmix.c priv->card.num_configs = priv->num_dai_conf; card 326 sound/soc/fsl/imx-audmix.c priv->card.dapm_routes = priv->dapm_routes; card 327 sound/soc/fsl/imx-audmix.c priv->card.num_dapm_routes = priv->num_dapm_routes; card 328 sound/soc/fsl/imx-audmix.c priv->card.dev = &pdev->dev; card 329 sound/soc/fsl/imx-audmix.c priv->card.owner = THIS_MODULE; card 330 sound/soc/fsl/imx-audmix.c priv->card.name = "imx-audmix"; card 332 sound/soc/fsl/imx-audmix.c platform_set_drvdata(pdev, &priv->card); card 333 sound/soc/fsl/imx-audmix.c snd_soc_card_set_drvdata(&priv->card, priv); card 335 sound/soc/fsl/imx-audmix.c ret = devm_snd_soc_register_card(&pdev->dev, &priv->card); card 23 sound/soc/fsl/imx-es8328.c struct snd_soc_card card; card 43 sound/soc/fsl/imx-es8328.c struct imx_es8328_data *data = container_of(rtd->card, card 44 sound/soc/fsl/imx-es8328.c struct imx_es8328_data, card); card 49 sound/soc/fsl/imx-es8328.c ret = snd_soc_card_jack_new(rtd->card, "Headphone", card 179 sound/soc/fsl/imx-es8328.c data->card.dev = dev; card 180 sound/soc/fsl/imx-es8328.c data->card.dapm_widgets = imx_es8328_dapm_widgets; card 181 sound/soc/fsl/imx-es8328.c data->card.num_dapm_widgets = ARRAY_SIZE(imx_es8328_dapm_widgets); card 182 sound/soc/fsl/imx-es8328.c ret = snd_soc_of_parse_card_name(&data->card, "model"); card 187 sound/soc/fsl/imx-es8328.c ret = snd_soc_of_parse_audio_routing(&data->card, "audio-routing"); card 192 sound/soc/fsl/imx-es8328.c data->card.num_links = 1; card 193 sound/soc/fsl/imx-es8328.c data->card.owner = THIS_MODULE; card 194 sound/soc/fsl/imx-es8328.c data->card.dai_link = &data->dai; card 196 sound/soc/fsl/imx-es8328.c ret = snd_soc_register_card(&data->card); card 214 sound/soc/fsl/imx-es8328.c snd_soc_unregister_card(&data->card); card 215 sound/soc/fsl/imx-pcm-fiq.c ret = dma_mmap_wc(substream->pcm->card->dev, vma, runtime->dma_area, card 243 sound/soc/fsl/imx-pcm-fiq.c buf->dev.dev = pcm->card->dev; card 245 sound/soc/fsl/imx-pcm-fiq.c buf->area = dma_alloc_wc(pcm->card->dev, size, &buf->addr, GFP_KERNEL); card 255 sound/soc/fsl/imx-pcm-fiq.c struct snd_card *card = rtd->card->snd_card; card 259 sound/soc/fsl/imx-pcm-fiq.c ret = dma_coerce_mask_and_coherent(card->dev, DMA_BIT_MASK(32)); card 327 sound/soc/fsl/imx-pcm-fiq.c dma_free_wc(pcm->card->dev, buf->bytes, buf->area, buf->addr); card 20 sound/soc/fsl/imx-sgtl5000.c struct snd_soc_card card; card 29 sound/soc/fsl/imx-sgtl5000.c struct imx_sgtl5000_data *data = snd_soc_card_get_drvdata(rtd->card); card 30 sound/soc/fsl/imx-sgtl5000.c struct device *dev = rtd->card->dev; card 158 sound/soc/fsl/imx-sgtl5000.c data->card.dev = &pdev->dev; card 159 sound/soc/fsl/imx-sgtl5000.c ret = snd_soc_of_parse_card_name(&data->card, "model"); card 162 sound/soc/fsl/imx-sgtl5000.c ret = snd_soc_of_parse_audio_routing(&data->card, "audio-routing"); card 165 sound/soc/fsl/imx-sgtl5000.c data->card.num_links = 1; card 166 sound/soc/fsl/imx-sgtl5000.c data->card.owner = THIS_MODULE; card 167 sound/soc/fsl/imx-sgtl5000.c data->card.dai_link = &data->dai; card 168 sound/soc/fsl/imx-sgtl5000.c data->card.dapm_widgets = imx_sgtl5000_dapm_widgets; card 169 sound/soc/fsl/imx-sgtl5000.c data->card.num_dapm_widgets = ARRAY_SIZE(imx_sgtl5000_dapm_widgets); card 171 sound/soc/fsl/imx-sgtl5000.c platform_set_drvdata(pdev, &data->card); card 172 sound/soc/fsl/imx-sgtl5000.c snd_soc_card_set_drvdata(&data->card, data); card 174 sound/soc/fsl/imx-sgtl5000.c ret = devm_snd_soc_register_card(&pdev->dev, &data->card); card 198 sound/soc/fsl/imx-sgtl5000.c struct snd_soc_card *card = platform_get_drvdata(pdev); card 199 sound/soc/fsl/imx-sgtl5000.c struct imx_sgtl5000_data *data = snd_soc_card_get_drvdata(card); card 11 sound/soc/fsl/imx-spdif.c struct snd_soc_card card; card 63 sound/soc/fsl/imx-spdif.c data->card.dev = &pdev->dev; card 64 sound/soc/fsl/imx-spdif.c data->card.dai_link = &data->dai; card 65 sound/soc/fsl/imx-spdif.c data->card.num_links = 1; card 66 sound/soc/fsl/imx-spdif.c data->card.owner = THIS_MODULE; card 68 sound/soc/fsl/imx-spdif.c ret = snd_soc_of_parse_card_name(&data->card, "model"); card 72 sound/soc/fsl/imx-spdif.c ret = devm_snd_soc_register_card(&pdev->dev, &data->card); card 233 sound/soc/fsl/mpc5200_dma.c dev_err(substream->pcm->card->dev, "invalid buffer size\n"); card 304 sound/soc/fsl/mpc5200_dma.c struct snd_card *card = rtd->card->snd_card; card 312 sound/soc/fsl/mpc5200_dma.c card, dai, pcm); card 314 sound/soc/fsl/mpc5200_dma.c rc = dma_coerce_mask_and_coherent(card->dev, DMA_BIT_MASK(32)); card 319 sound/soc/fsl/mpc5200_dma.c rc = snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, pcm->card->dev, card 326 sound/soc/fsl/mpc5200_dma.c rc = snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, pcm->card->dev, card 339 sound/soc/fsl/mpc5200_dma.c dev_err(card->dev, "Cannot allocate buffer(s)\n"); card 32 sound/soc/fsl/mpc8610_hpcd.c struct snd_soc_card card; card 51 sound/soc/fsl/mpc8610_hpcd.c static int mpc8610_hpcd_machine_probe(struct snd_soc_card *card) card 54 sound/soc/fsl/mpc8610_hpcd.c container_of(card, struct mpc8610_hpcd_data, card); card 59 sound/soc/fsl/mpc8610_hpcd.c dev_err(card->dev, "could not map global utilities\n"); card 103 sound/soc/fsl/mpc8610_hpcd.c container_of(rtd->card, struct mpc8610_hpcd_data, card); card 104 sound/soc/fsl/mpc8610_hpcd.c struct device *dev = rtd->card->dev; card 135 sound/soc/fsl/mpc8610_hpcd.c static int mpc8610_hpcd_machine_remove(struct snd_soc_card *card) card 138 sound/soc/fsl/mpc8610_hpcd.c container_of(card, struct mpc8610_hpcd_data, card); card 143 sound/soc/fsl/mpc8610_hpcd.c dev_err(card->dev, "could not map global utilities\n"); card 359 sound/soc/fsl/mpc8610_hpcd.c machine_data->card.probe = mpc8610_hpcd_machine_probe; card 360 sound/soc/fsl/mpc8610_hpcd.c machine_data->card.remove = mpc8610_hpcd_machine_remove; card 361 sound/soc/fsl/mpc8610_hpcd.c machine_data->card.name = pdev->name; /* The platform driver name */ card 362 sound/soc/fsl/mpc8610_hpcd.c machine_data->card.owner = THIS_MODULE; card 363 sound/soc/fsl/mpc8610_hpcd.c machine_data->card.dev = &pdev->dev; card 364 sound/soc/fsl/mpc8610_hpcd.c machine_data->card.num_links = 2; card 365 sound/soc/fsl/mpc8610_hpcd.c machine_data->card.dai_link = machine_data->dai; card 368 sound/soc/fsl/mpc8610_hpcd.c ret = snd_soc_register_card(&machine_data->card); card 392 sound/soc/fsl/mpc8610_hpcd.c struct snd_soc_card *card = platform_get_drvdata(pdev); card 394 sound/soc/fsl/mpc8610_hpcd.c container_of(card, struct mpc8610_hpcd_data, card); card 396 sound/soc/fsl/mpc8610_hpcd.c snd_soc_unregister_card(card); card 65 sound/soc/fsl/p1022_ds.c struct snd_soc_card card; card 83 sound/soc/fsl/p1022_ds.c static int p1022_ds_machine_probe(struct snd_soc_card *card) card 86 sound/soc/fsl/p1022_ds.c container_of(card, struct machine_data, card); card 91 sound/soc/fsl/p1022_ds.c dev_err(card->dev, "could not map global utilities\n"); card 126 sound/soc/fsl/p1022_ds.c container_of(rtd->card, struct machine_data, card); card 127 sound/soc/fsl/p1022_ds.c struct device *dev = rtd->card->dev; card 157 sound/soc/fsl/p1022_ds.c static int p1022_ds_machine_remove(struct snd_soc_card *card) card 160 sound/soc/fsl/p1022_ds.c container_of(card, struct machine_data, card); card 165 sound/soc/fsl/p1022_ds.c dev_err(card->dev, "could not map global utilities\n"); card 368 sound/soc/fsl/p1022_ds.c mdata->card.probe = p1022_ds_machine_probe; card 369 sound/soc/fsl/p1022_ds.c mdata->card.remove = p1022_ds_machine_remove; card 370 sound/soc/fsl/p1022_ds.c mdata->card.name = pdev->name; /* The platform driver name */ card 371 sound/soc/fsl/p1022_ds.c mdata->card.owner = THIS_MODULE; card 372 sound/soc/fsl/p1022_ds.c mdata->card.dev = &pdev->dev; card 373 sound/soc/fsl/p1022_ds.c mdata->card.num_links = 2; card 374 sound/soc/fsl/p1022_ds.c mdata->card.dai_link = mdata->dai; card 377 sound/soc/fsl/p1022_ds.c ret = snd_soc_register_card(&mdata->card); card 401 sound/soc/fsl/p1022_ds.c struct snd_soc_card *card = platform_get_drvdata(pdev); card 403 sound/soc/fsl/p1022_ds.c container_of(card, struct machine_data, card); card 405 sound/soc/fsl/p1022_ds.c snd_soc_unregister_card(card); card 72 sound/soc/fsl/p1022_rdk.c struct snd_soc_card card; card 89 sound/soc/fsl/p1022_rdk.c static int p1022_rdk_machine_probe(struct snd_soc_card *card) card 92 sound/soc/fsl/p1022_rdk.c container_of(card, struct machine_data, card); card 97 sound/soc/fsl/p1022_rdk.c dev_err(card->dev, "could not map global utilities\n"); card 132 sound/soc/fsl/p1022_rdk.c container_of(rtd->card, struct machine_data, card); card 133 sound/soc/fsl/p1022_rdk.c struct device *dev = rtd->card->dev; card 161 sound/soc/fsl/p1022_rdk.c static int p1022_rdk_machine_remove(struct snd_soc_card *card) card 164 sound/soc/fsl/p1022_rdk.c container_of(card, struct machine_data, card); card 169 sound/soc/fsl/p1022_rdk.c dev_err(card->dev, "could not map global utilities\n"); card 319 sound/soc/fsl/p1022_rdk.c mdata->card.probe = p1022_rdk_machine_probe; card 320 sound/soc/fsl/p1022_rdk.c mdata->card.remove = p1022_rdk_machine_remove; card 321 sound/soc/fsl/p1022_rdk.c mdata->card.name = pdev->name; /* The platform driver name */ card 322 sound/soc/fsl/p1022_rdk.c mdata->card.owner = THIS_MODULE; card 323 sound/soc/fsl/p1022_rdk.c mdata->card.dev = &pdev->dev; card 324 sound/soc/fsl/p1022_rdk.c mdata->card.num_links = 2; card 325 sound/soc/fsl/p1022_rdk.c mdata->card.dai_link = mdata->dai; card 328 sound/soc/fsl/p1022_rdk.c ret = snd_soc_register_card(&mdata->card); card 350 sound/soc/fsl/p1022_rdk.c struct snd_soc_card *card = platform_get_drvdata(pdev); card 352 sound/soc/fsl/p1022_rdk.c container_of(card, struct machine_data, card); card 354 sound/soc/fsl/p1022_rdk.c snd_soc_unregister_card(card); card 22 sound/soc/fsl/pcm030-audio-fabric.c struct snd_soc_card *card; card 60 sound/soc/fsl/pcm030-audio-fabric.c struct snd_soc_card *card = &pcm030_card; card 74 sound/soc/fsl/pcm030-audio-fabric.c card->dev = &op->dev; card 76 sound/soc/fsl/pcm030-audio-fabric.c pdata->card = card; card 84 sound/soc/fsl/pcm030-audio-fabric.c for_each_card_prelinks(card, i, dai_link) card 99 sound/soc/fsl/pcm030-audio-fabric.c ret = snd_soc_register_card(card); card 113 sound/soc/fsl/pcm030-audio-fabric.c ret = snd_soc_unregister_card(pdata->card); card 202 sound/soc/fsl/wm1133-ev1.c snd_soc_card_jack_new(rtd->card, "Headphone", SND_JACK_HEADPHONE, card 207 sound/soc/fsl/wm1133-ev1.c snd_soc_card_jack_new(rtd->card, "Microphone", card 213 sound/soc/fsl/wm1133-ev1.c snd_soc_dapm_force_enable_pin(&rtd->card->dapm, "Mic Bias"); card 32 sound/soc/generic/audio-graph-card.c struct asoc_simple_priv *priv = snd_soc_card_get_drvdata(dapm->card); card 479 sound/soc/generic/audio-graph-card.c struct snd_soc_card *card = simple_priv_to_card(priv); card 483 sound/soc/generic/audio-graph-card.c ret = asoc_simple_parse_widgets(card, NULL); card 487 sound/soc/generic/audio-graph-card.c ret = asoc_simple_parse_routing(card, NULL); card 512 sound/soc/generic/audio-graph-card.c return asoc_simple_parse_card_name(card, NULL); card 610 sound/soc/generic/audio-graph-card.c static int graph_card_probe(struct snd_soc_card *card) card 612 sound/soc/generic/audio-graph-card.c struct asoc_simple_priv *priv = snd_soc_card_get_drvdata(card); card 615 sound/soc/generic/audio-graph-card.c ret = asoc_simple_init_hp(card, &priv->hp_jack, NULL); card 619 sound/soc/generic/audio-graph-card.c ret = asoc_simple_init_mic(card, &priv->mic_jack, NULL); card 630 sound/soc/generic/audio-graph-card.c struct snd_soc_card *card; card 639 sound/soc/generic/audio-graph-card.c card = simple_priv_to_card(priv); card 640 sound/soc/generic/audio-graph-card.c card->owner = THIS_MODULE; card 641 sound/soc/generic/audio-graph-card.c card->dev = dev; card 642 sound/soc/generic/audio-graph-card.c card->dapm_widgets = graph_dapm_widgets; card 643 sound/soc/generic/audio-graph-card.c card->num_dapm_widgets = ARRAY_SIZE(graph_dapm_widgets); card 644 sound/soc/generic/audio-graph-card.c card->probe = graph_card_probe; card 669 sound/soc/generic/audio-graph-card.c snd_soc_card_set_drvdata(card, priv); card 673 sound/soc/generic/audio-graph-card.c ret = devm_snd_soc_register_card(dev, card); card 679 sound/soc/generic/audio-graph-card.c asoc_simple_clean_reference(card); card 686 sound/soc/generic/audio-graph-card.c struct snd_soc_card *card = platform_get_drvdata(pdev); card 688 sound/soc/generic/audio-graph-card.c return asoc_simple_clean_reference(card); card 120 sound/soc/generic/simple-card-utils.c int asoc_simple_parse_card_name(struct snd_soc_card *card, card 129 sound/soc/generic/simple-card-utils.c ret = snd_soc_of_parse_card_name(card, "label"); card 130 sound/soc/generic/simple-card-utils.c if (ret < 0 || !card->name) { card 134 sound/soc/generic/simple-card-utils.c ret = snd_soc_of_parse_card_name(card, prop); card 139 sound/soc/generic/simple-card-utils.c if (!card->name && card->dai_link) card 140 sound/soc/generic/simple-card-utils.c card->name = card->dai_link->name; card 197 sound/soc/generic/simple-card-utils.c struct asoc_simple_priv *priv = snd_soc_card_get_drvdata(rtd->card); card 218 sound/soc/generic/simple-card-utils.c struct asoc_simple_priv *priv = snd_soc_card_get_drvdata(rtd->card); card 254 sound/soc/generic/simple-card-utils.c struct asoc_simple_priv *priv = snd_soc_card_get_drvdata(rtd->card); card 293 sound/soc/generic/simple-card-utils.c struct asoc_simple_priv *priv = snd_soc_card_get_drvdata(rtd->card); card 336 sound/soc/generic/simple-card-utils.c struct asoc_simple_priv *priv = snd_soc_card_get_drvdata(rtd->card); card 386 sound/soc/generic/simple-card-utils.c int asoc_simple_clean_reference(struct snd_soc_card *card) card 391 sound/soc/generic/simple-card-utils.c for_each_card_prelinks(card, i, dai_link) { card 399 sound/soc/generic/simple-card-utils.c int asoc_simple_parse_routing(struct snd_soc_card *card, card 402 sound/soc/generic/simple-card-utils.c struct device_node *node = card->dev->of_node; card 413 sound/soc/generic/simple-card-utils.c return snd_soc_of_parse_audio_routing(card, prop); card 417 sound/soc/generic/simple-card-utils.c int asoc_simple_parse_widgets(struct snd_soc_card *card, card 420 sound/soc/generic/simple-card-utils.c struct device_node *node = card->dev->of_node; card 429 sound/soc/generic/simple-card-utils.c return snd_soc_of_parse_audio_simple_widgets(card, prop); card 436 sound/soc/generic/simple-card-utils.c int asoc_simple_parse_pin_switches(struct snd_soc_card *card, card 442 sound/soc/generic/simple-card-utils.c struct device *dev = card->dev; card 486 sound/soc/generic/simple-card-utils.c card->controls = controls; card 487 sound/soc/generic/simple-card-utils.c card->num_controls = nb_controls; card 493 sound/soc/generic/simple-card-utils.c int asoc_simple_init_jack(struct snd_soc_card *card, card 497 sound/soc/generic/simple-card-utils.c struct device *dev = card->dev; card 536 sound/soc/generic/simple-card-utils.c snd_soc_card_jack_new(card, pin_name, mask, card 551 sound/soc/generic/simple-card-utils.c struct snd_soc_card *card = simple_priv_to_card(priv); card 595 sound/soc/generic/simple-card-utils.c card->dai_link = priv->dai_link; card 596 sound/soc/generic/simple-card-utils.c card->num_links = li->link; card 597 sound/soc/generic/simple-card-utils.c card->codec_conf = cconf; card 598 sound/soc/generic/simple-card-utils.c card->num_configs = li->conf; card 426 sound/soc/generic/simple-card.c struct snd_soc_card *card = simple_priv_to_card(priv); card 436 sound/soc/generic/simple-card.c card->aux_dev = devm_kcalloc(dev, card 437 sound/soc/generic/simple-card.c n, sizeof(*card->aux_dev), GFP_KERNEL); card 438 sound/soc/generic/simple-card.c if (!card->aux_dev) card 445 sound/soc/generic/simple-card.c card->aux_dev[i].dlc.of_node = aux_node; card 448 sound/soc/generic/simple-card.c card->num_aux_devs = n; card 456 sound/soc/generic/simple-card.c struct snd_soc_card *card = simple_priv_to_card(priv); card 463 sound/soc/generic/simple-card.c ret = asoc_simple_parse_widgets(card, PREFIX); card 467 sound/soc/generic/simple-card.c ret = asoc_simple_parse_routing(card, PREFIX); card 471 sound/soc/generic/simple-card.c ret = asoc_simple_parse_pin_switches(card, PREFIX); card 497 sound/soc/generic/simple-card.c ret = asoc_simple_parse_card_name(card, PREFIX); card 598 sound/soc/generic/simple-card.c static int simple_soc_probe(struct snd_soc_card *card) card 600 sound/soc/generic/simple-card.c struct asoc_simple_priv *priv = snd_soc_card_get_drvdata(card); card 603 sound/soc/generic/simple-card.c ret = asoc_simple_init_hp(card, &priv->hp_jack, PREFIX); card 607 sound/soc/generic/simple-card.c ret = asoc_simple_init_mic(card, &priv->mic_jack, PREFIX); card 619 sound/soc/generic/simple-card.c struct snd_soc_card *card; card 628 sound/soc/generic/simple-card.c card = simple_priv_to_card(priv); card 629 sound/soc/generic/simple-card.c card->owner = THIS_MODULE; card 630 sound/soc/generic/simple-card.c card->dev = dev; card 631 sound/soc/generic/simple-card.c card->probe = simple_soc_probe; card 689 sound/soc/generic/simple-card.c card->name = (cinfo->card) ? cinfo->card : cinfo->name; card 700 sound/soc/generic/simple-card.c snd_soc_card_set_drvdata(card, priv); card 704 sound/soc/generic/simple-card.c ret = devm_snd_soc_register_card(dev, card); card 710 sound/soc/generic/simple-card.c asoc_simple_clean_reference(card); card 717 sound/soc/generic/simple-card.c struct snd_soc_card *card = platform_get_drvdata(pdev); card 719 sound/soc/generic/simple-card.c return asoc_simple_clean_reference(card); card 1415 sound/soc/intel/atom/sst-atom-controls.c struct snd_card *card = component->card->snd_card; card 1418 sound/soc/intel/atom/sst-atom-controls.c down_read(&card->controls_rwsem); card 1420 sound/soc/intel/atom/sst-atom-controls.c list_for_each_entry(kctl, &card->controls, list) { card 1453 sound/soc/intel/atom/sst-atom-controls.c up_read(&card->controls_rwsem); card 1458 sound/soc/intel/atom/sst-atom-controls.c up_read(&card->controls_rwsem); card 1471 sound/soc/intel/atom/sst-atom-controls.c list_for_each_entry(w, &component->card->widgets, list) { card 1487 sound/soc/intel/atom/sst-atom-controls.c list_for_each_entry(w, &component->card->widgets, list) { card 1525 sound/soc/intel/atom/sst-atom-controls.c snd_soc_dapm_new_widgets(dapm->card); card 697 sound/soc/intel/atom/sst-mfld-platform-pcm.c drv->soc_card = component->card; card 34 sound/soc/intel/boards/bdw-rt5677.c struct snd_soc_card *card = dapm->card; card 35 sound/soc/intel/boards/bdw-rt5677.c struct bdw_rt5677_priv *bdw_rt5677 = snd_soc_card_get_drvdata(card); card 196 sound/soc/intel/boards/bdw-rt5677.c snd_soc_card_get_drvdata(rtd->card); card 221 sound/soc/intel/boards/bdw-rt5677.c if (!snd_soc_card_jack_new(rtd->card, "Headphone Jack", card 233 sound/soc/intel/boards/bdw-rt5677.c if (!snd_soc_card_jack_new(rtd->card, "Mic Jack", card 298 sound/soc/intel/boards/bdw-rt5677.c static int bdw_rt5677_suspend_pre(struct snd_soc_card *card) card 300 sound/soc/intel/boards/bdw-rt5677.c struct bdw_rt5677_priv *bdw_rt5677 = snd_soc_card_get_drvdata(card); card 310 sound/soc/intel/boards/bdw-rt5677.c static int bdw_rt5677_resume_post(struct snd_soc_card *card) card 312 sound/soc/intel/boards/bdw-rt5677.c struct bdw_rt5677_priv *bdw_rt5677 = snd_soc_card_get_drvdata(card); card 75 sound/soc/intel/boards/broadwell.c ret = snd_soc_card_jack_new(rtd->card, "Headset", card 225 sound/soc/intel/boards/broadwell.c static int broadwell_suspend(struct snd_soc_card *card){ card 228 sound/soc/intel/boards/broadwell.c for_each_card_components(card, component) { card 239 sound/soc/intel/boards/broadwell.c static int broadwell_resume(struct snd_soc_card *card){ card 242 sound/soc/intel/boards/broadwell.c for_each_card_components(card, component) { card 59 sound/soc/intel/boards/bxt_da7219_max98357a.c struct snd_soc_card *card = dapm->card; card 62 sound/soc/intel/boards/bxt_da7219_max98357a.c codec_dai = snd_soc_card_get_codec_dai(card, BXT_DIALOG_CODEC_DAI); card 64 sound/soc/intel/boards/bxt_da7219_max98357a.c dev_err(card->dev, "Codec dai not found; Unable to set/unset codec pll\n"); card 72 sound/soc/intel/boards/bxt_da7219_max98357a.c dev_err(card->dev, "failed to stop PLL: %d\n", ret); card 77 sound/soc/intel/boards/bxt_da7219_max98357a.c dev_err(card->dev, "failed to start PLL: %d\n", ret); card 202 sound/soc/intel/boards/bxt_da7219_max98357a.c ret = snd_soc_card_jack_new(rtd->card, "Headset Jack", card 219 sound/soc/intel/boards/bxt_da7219_max98357a.c snd_soc_dapm_ignore_suspend(&rtd->card->dapm, "SoC DMIC"); card 226 sound/soc/intel/boards/bxt_da7219_max98357a.c struct bxt_card_private *ctx = snd_soc_card_get_drvdata(rtd->card); card 230 sound/soc/intel/boards/bxt_da7219_max98357a.c pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); card 603 sound/soc/intel/boards/bxt_da7219_max98357a.c static int bxt_card_late_probe(struct snd_soc_card *card) card 605 sound/soc/intel/boards/bxt_da7219_max98357a.c struct bxt_card_private *ctx = snd_soc_card_get_drvdata(card); card 612 sound/soc/intel/boards/bxt_da7219_max98357a.c snd_soc_dapm_add_routes(&card->dapm, gemini_map, card 615 sound/soc/intel/boards/bxt_da7219_max98357a.c snd_soc_dapm_add_routes(&card->dapm, broxton_map, card 622 sound/soc/intel/boards/bxt_da7219_max98357a.c err = snd_soc_card_jack_new(card, jack_name, card 640 sound/soc/intel/boards/bxt_da7219_max98357a.c return hdac_hdmi_jack_port_init(component, &card->dapm); card 169 sound/soc/intel/boards/bxt_rt298.c ret = snd_soc_card_jack_new(rtd->card, "Headset", card 179 sound/soc/intel/boards/bxt_rt298.c snd_soc_dapm_ignore_suspend(&rtd->card->dapm, "SoC DMIC"); card 186 sound/soc/intel/boards/bxt_rt298.c struct bxt_rt286_private *ctx = snd_soc_card_get_drvdata(rtd->card); card 190 sound/soc/intel/boards/bxt_rt298.c pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); card 522 sound/soc/intel/boards/bxt_rt298.c static int bxt_card_late_probe(struct snd_soc_card *card) card 524 sound/soc/intel/boards/bxt_rt298.c struct bxt_rt286_private *ctx = snd_soc_card_get_drvdata(card); card 534 sound/soc/intel/boards/bxt_rt298.c err = snd_soc_card_jack_new(card, jack_name, card 552 sound/soc/intel/boards/bxt_rt298.c return hdac_hdmi_jack_port_init(component, &card->dapm); card 589 sound/soc/intel/boards/bxt_rt298.c struct snd_soc_card *card = card 597 sound/soc/intel/boards/bxt_rt298.c if (!strncmp(card->dai_link[i].codecs->name, "i2c-INT343A:00", card 599 sound/soc/intel/boards/bxt_rt298.c if (!strncmp(card->name, "broxton-rt298", card 601 sound/soc/intel/boards/bxt_rt298.c card->dai_link[i].name = "SSP5-Codec"; card 602 sound/soc/intel/boards/bxt_rt298.c card->dai_link[i].cpus->dai_name = "SSP5 Pin"; card 603 sound/soc/intel/boards/bxt_rt298.c } else if (!strncmp(card->name, "geminilake-rt298", card 605 sound/soc/intel/boards/bxt_rt298.c card->dai_link[i].name = "SSP2-Codec"; card 606 sound/soc/intel/boards/bxt_rt298.c card->dai_link[i].cpus->dai_name = "SSP2 Pin"; card 617 sound/soc/intel/boards/bxt_rt298.c card->dev = &pdev->dev; card 618 sound/soc/intel/boards/bxt_rt298.c snd_soc_card_set_drvdata(card, ctx); card 624 sound/soc/intel/boards/bxt_rt298.c ret = snd_soc_fixup_dai_links_platform_name(card, card 629 sound/soc/intel/boards/bxt_rt298.c return devm_snd_soc_register_card(&pdev->dev, card); card 86 sound/soc/intel/boards/byt-max98090.c struct snd_soc_card *card = runtime->card; card 87 sound/soc/intel/boards/byt-max98090.c struct byt_max98090_private *drv = snd_soc_card_get_drvdata(card); card 90 sound/soc/intel/boards/byt-max98090.c card->dapm.idle_bias_off = true; card 96 sound/soc/intel/boards/byt-max98090.c dev_err(card->dev, "Can't set codec clock %d\n", ret); card 101 sound/soc/intel/boards/byt-max98090.c ret = snd_soc_card_jack_new(runtime->card, "Headset", card 107 sound/soc/intel/boards/byt-max98090.c return snd_soc_jack_add_gpiods(card->dev->parent, jack, card 127 sound/soc/intel/boards/byt-rt5640.c struct snd_soc_card *card = runtime->card; card 131 sound/soc/intel/boards/byt-rt5640.c card->dapm.idle_bias_off = true; card 133 sound/soc/intel/boards/byt-rt5640.c ret = snd_soc_add_card_controls(card, byt_rt5640_controls, card 136 sound/soc/intel/boards/byt-rt5640.c dev_err(card->dev, "unable to add card controls\n"); card 155 sound/soc/intel/boards/byt-rt5640.c ret = snd_soc_dapm_add_routes(&card->dapm, custom_map, num_routes); card 165 sound/soc/intel/boards/byt-rt5640.c snd_soc_dapm_ignore_suspend(&card->dapm, "Headphone"); card 166 sound/soc/intel/boards/byt-rt5640.c snd_soc_dapm_ignore_suspend(&card->dapm, "Speaker"); card 206 sound/soc/intel/boards/byt-rt5640.c struct snd_soc_card *card = &byt_rt5640_card; card 208 sound/soc/intel/boards/byt-rt5640.c card->dev = &pdev->dev; card 209 sound/soc/intel/boards/byt-rt5640.c return devm_snd_soc_register_card(&pdev->dev, card); card 72 sound/soc/intel/boards/bytcht_cx2072x.c struct snd_soc_card *card = rtd->card; card 80 sound/soc/intel/boards/bytcht_cx2072x.c card->dapm.idle_bias_off = true; card 90 sound/soc/intel/boards/bytcht_cx2072x.c ret = snd_soc_card_jack_new(card, "Headset", card 226 sound/soc/intel/boards/bytcht_da7213.c struct snd_soc_card *card; card 235 sound/soc/intel/boards/bytcht_da7213.c card = &bytcht_da7213_card; card 236 sound/soc/intel/boards/bytcht_da7213.c card->dev = &pdev->dev; card 258 sound/soc/intel/boards/bytcht_da7213.c ret_val = snd_soc_fixup_dai_links_platform_name(card, platform_name); card 262 sound/soc/intel/boards/bytcht_da7213.c ret_val = devm_snd_soc_register_card(&pdev->dev, card); card 268 sound/soc/intel/boards/bytcht_da7213.c platform_set_drvdata(pdev, card); card 77 sound/soc/intel/boards/bytcht_es8316.c struct snd_soc_card *card = w->dapm->card; card 78 sound/soc/intel/boards/bytcht_es8316.c struct byt_cht_es8316_private *priv = snd_soc_card_get_drvdata(card); card 161 sound/soc/intel/boards/bytcht_es8316.c struct snd_soc_card *card = runtime->card; card 162 sound/soc/intel/boards/bytcht_es8316.c struct byt_cht_es8316_private *priv = snd_soc_card_get_drvdata(card); card 167 sound/soc/intel/boards/bytcht_es8316.c card->dapm.idle_bias_off = true; card 180 sound/soc/intel/boards/bytcht_es8316.c ret = snd_soc_dapm_add_routes(&card->dapm, custom_map, num_routes); card 191 sound/soc/intel/boards/bytcht_es8316.c ret = snd_soc_dapm_add_routes(&card->dapm, custom_map, num_routes); card 209 sound/soc/intel/boards/bytcht_es8316.c dev_err(card->dev, "unable to set MCLK rate\n"); card 213 sound/soc/intel/boards/bytcht_es8316.c dev_err(card->dev, "unable to enable MCLK\n"); card 218 sound/soc/intel/boards/bytcht_es8316.c dev_err(card->dev, "can't set codec clock %d\n", ret); card 222 sound/soc/intel/boards/bytcht_es8316.c ret = snd_soc_card_jack_new(card, "Headset", card 227 sound/soc/intel/boards/bytcht_es8316.c dev_err(card->dev, "jack creation failed %d\n", ret); card 365 sound/soc/intel/boards/bytcht_es8316.c static int byt_cht_es8316_suspend(struct snd_soc_card *card) card 369 sound/soc/intel/boards/bytcht_es8316.c for_each_card_components(card, component) { card 380 sound/soc/intel/boards/bytcht_es8316.c static int byt_cht_es8316_resume(struct snd_soc_card *card) card 382 sound/soc/intel/boards/bytcht_es8316.c struct byt_cht_es8316_private *priv = snd_soc_card_get_drvdata(card); card 385 sound/soc/intel/boards/bytcht_es8316.c for_each_card_components(card, component) { card 595 sound/soc/intel/boards/bytcht_es8316.c struct snd_soc_card *card = platform_get_drvdata(pdev); card 596 sound/soc/intel/boards/bytcht_es8316.c struct byt_cht_es8316_private *priv = snd_soc_card_get_drvdata(card); card 225 sound/soc/intel/boards/bytcr_rt5640.c struct snd_soc_card *card = dapm->card; card 227 sound/soc/intel/boards/bytcr_rt5640.c struct byt_rt5640_private *priv = snd_soc_card_get_drvdata(card); card 230 sound/soc/intel/boards/bytcr_rt5640.c codec_dai = snd_soc_card_get_codec_dai(card, BYT_CODEC_DAI1); card 232 sound/soc/intel/boards/bytcr_rt5640.c codec_dai = snd_soc_card_get_codec_dai(card, BYT_CODEC_DAI2); card 235 sound/soc/intel/boards/bytcr_rt5640.c dev_err(card->dev, card 244 sound/soc/intel/boards/bytcr_rt5640.c dev_err(card->dev, card 266 sound/soc/intel/boards/bytcr_rt5640.c dev_err(card->dev, "can't set codec sysclk: %d\n", ret); card 817 sound/soc/intel/boards/bytcr_rt5640.c struct snd_soc_card *card = runtime->card; card 818 sound/soc/intel/boards/bytcr_rt5640.c struct byt_rt5640_private *priv = snd_soc_card_get_drvdata(card); card 824 sound/soc/intel/boards/bytcr_rt5640.c card->dapm.idle_bias_off = true; card 840 sound/soc/intel/boards/bytcr_rt5640.c ret = snd_soc_add_card_controls(card, byt_rt5640_controls, card 843 sound/soc/intel/boards/bytcr_rt5640.c dev_err(card->dev, "unable to add card controls\n"); card 865 sound/soc/intel/boards/bytcr_rt5640.c ret = snd_soc_dapm_add_routes(&card->dapm, custom_map, num_routes); card 870 sound/soc/intel/boards/bytcr_rt5640.c ret = snd_soc_dapm_add_routes(&card->dapm, card 874 sound/soc/intel/boards/bytcr_rt5640.c ret = snd_soc_dapm_add_routes(&card->dapm, card 878 sound/soc/intel/boards/bytcr_rt5640.c ret = snd_soc_dapm_add_routes(&card->dapm, card 882 sound/soc/intel/boards/bytcr_rt5640.c ret = snd_soc_dapm_add_routes(&card->dapm, card 890 sound/soc/intel/boards/bytcr_rt5640.c ret = snd_soc_dapm_add_routes(&card->dapm, card 894 sound/soc/intel/boards/bytcr_rt5640.c ret = snd_soc_dapm_add_routes(&card->dapm, card 901 sound/soc/intel/boards/bytcr_rt5640.c snd_soc_dapm_ignore_suspend(&card->dapm, "Headphone"); card 902 sound/soc/intel/boards/bytcr_rt5640.c snd_soc_dapm_ignore_suspend(&card->dapm, "Speaker"); card 925 sound/soc/intel/boards/bytcr_rt5640.c dev_err(card->dev, "unable to set MCLK rate\n"); card 931 sound/soc/intel/boards/bytcr_rt5640.c ret = snd_soc_card_jack_new(card, "Headset", card 936 sound/soc/intel/boards/bytcr_rt5640.c dev_err(card->dev, "Jack creation failed %d\n", ret); card 1102 sound/soc/intel/boards/bytcr_rt5640.c static int byt_rt5640_suspend(struct snd_soc_card *card) card 1109 sound/soc/intel/boards/bytcr_rt5640.c for_each_card_components(card, component) { card 1120 sound/soc/intel/boards/bytcr_rt5640.c static int byt_rt5640_resume(struct snd_soc_card *card) card 1122 sound/soc/intel/boards/bytcr_rt5640.c struct byt_rt5640_private *priv = snd_soc_card_get_drvdata(card); card 1128 sound/soc/intel/boards/bytcr_rt5640.c for_each_card_components(card, component) { card 175 sound/soc/intel/boards/bytcr_rt5651.c struct snd_soc_card *card = dapm->card; card 177 sound/soc/intel/boards/bytcr_rt5651.c struct byt_rt5651_private *priv = snd_soc_card_get_drvdata(card); card 180 sound/soc/intel/boards/bytcr_rt5651.c codec_dai = snd_soc_card_get_codec_dai(card, BYT_CODEC_DAI1); card 182 sound/soc/intel/boards/bytcr_rt5651.c codec_dai = snd_soc_card_get_codec_dai(card, BYT_CODEC_DAI2); card 184 sound/soc/intel/boards/bytcr_rt5651.c dev_err(card->dev, card 193 sound/soc/intel/boards/bytcr_rt5651.c dev_err(card->dev, card 214 sound/soc/intel/boards/bytcr_rt5651.c dev_err(card->dev, "can't set codec sysclk: %d\n", ret); card 224 sound/soc/intel/boards/bytcr_rt5651.c struct snd_soc_card *card = w->dapm->card; card 225 sound/soc/intel/boards/bytcr_rt5651.c struct byt_rt5651_private *priv = snd_soc_card_get_drvdata(card); card 542 sound/soc/intel/boards/bytcr_rt5651.c struct snd_soc_card *card = runtime->card; card 544 sound/soc/intel/boards/bytcr_rt5651.c struct byt_rt5651_private *priv = snd_soc_card_get_drvdata(card); card 550 sound/soc/intel/boards/bytcr_rt5651.c card->dapm.idle_bias_off = true; card 574 sound/soc/intel/boards/bytcr_rt5651.c ret = snd_soc_dapm_add_routes(&card->dapm, custom_map, num_routes); card 579 sound/soc/intel/boards/bytcr_rt5651.c ret = snd_soc_dapm_add_routes(&card->dapm, card 583 sound/soc/intel/boards/bytcr_rt5651.c ret = snd_soc_dapm_add_routes(&card->dapm, card 587 sound/soc/intel/boards/bytcr_rt5651.c ret = snd_soc_dapm_add_routes(&card->dapm, card 591 sound/soc/intel/boards/bytcr_rt5651.c ret = snd_soc_dapm_add_routes(&card->dapm, card 598 sound/soc/intel/boards/bytcr_rt5651.c ret = snd_soc_add_card_controls(card, byt_rt5651_controls, card 601 sound/soc/intel/boards/bytcr_rt5651.c dev_err(card->dev, "unable to add card controls\n"); card 604 sound/soc/intel/boards/bytcr_rt5651.c snd_soc_dapm_ignore_suspend(&card->dapm, "Headphone"); card 605 sound/soc/intel/boards/bytcr_rt5651.c snd_soc_dapm_ignore_suspend(&card->dapm, "Speaker"); card 628 sound/soc/intel/boards/bytcr_rt5651.c dev_err(card->dev, "unable to set MCLK rate\n"); card 638 sound/soc/intel/boards/bytcr_rt5651.c ret = snd_soc_card_jack_new(runtime->card, "Headset", card 802 sound/soc/intel/boards/bytcr_rt5651.c static int byt_rt5651_suspend(struct snd_soc_card *card) card 809 sound/soc/intel/boards/bytcr_rt5651.c for_each_card_components(card, component) { card 820 sound/soc/intel/boards/bytcr_rt5651.c static int byt_rt5651_resume(struct snd_soc_card *card) card 822 sound/soc/intel/boards/bytcr_rt5651.c struct byt_rt5651_private *priv = snd_soc_card_get_drvdata(card); card 828 sound/soc/intel/boards/bytcr_rt5651.c for_each_card_components(card, component) { card 46 sound/soc/intel/boards/cht_bsw_max98090_ti.c struct snd_soc_card *card = dapm->card; card 48 sound/soc/intel/boards/cht_bsw_max98090_ti.c struct cht_mc_private *ctx = snd_soc_card_get_drvdata(card); card 55 sound/soc/intel/boards/cht_bsw_max98090_ti.c codec_dai = snd_soc_card_get_codec_dai(card, CHT_CODEC_DAI); card 57 sound/soc/intel/boards/cht_bsw_max98090_ti.c dev_err(card->dev, "Codec dai not found; Unable to set platform clock\n"); card 64 sound/soc/intel/boards/cht_bsw_max98090_ti.c dev_err(card->dev, card 133 sound/soc/intel/boards/cht_bsw_max98090_ti.c struct snd_soc_dapm_context *dapm = &jack->card->dapm; card 190 sound/soc/intel/boards/cht_bsw_max98090_ti.c struct cht_mc_private *ctx = snd_soc_card_get_drvdata(runtime->card); card 204 sound/soc/intel/boards/cht_bsw_max98090_ti.c ret = snd_soc_card_jack_new(runtime->card, "Headset Jack", card 212 sound/soc/intel/boards/cht_bsw_max98090_ti.c ret = snd_soc_jack_add_gpiods(runtime->card->dev->parent, jack, card 292 sound/soc/intel/boards/cht_bsw_max98090_ti.c struct snd_soc_card *card = component->card; card 293 sound/soc/intel/boards/cht_bsw_max98090_ti.c struct cht_mc_private *ctx = snd_soc_card_get_drvdata(card); card 309 sound/soc/intel/boards/cht_bsw_max98090_ti.c ret = snd_soc_card_jack_new(card, "Headset Jack", jack_type, card 312 sound/soc/intel/boards/cht_bsw_max98090_ti.c dev_err(card->dev, "Headset Jack creation failed %d\n", ret); card 607 sound/soc/intel/boards/cht_bsw_max98090_ti.c struct snd_soc_card *card = platform_get_drvdata(pdev); card 608 sound/soc/intel/boards/cht_bsw_max98090_ti.c struct cht_mc_private *ctx = snd_soc_card_get_drvdata(card); card 97 sound/soc/intel/boards/cht_bsw_nau8824.c struct cht_mc_private *ctx = snd_soc_card_get_drvdata(runtime->card); card 118 sound/soc/intel/boards/cht_bsw_nau8824.c ret = snd_soc_card_jack_new(runtime->card, "Headset", jack_type, jack, card 71 sound/soc/intel/boards/cht_bsw_rt5645.c struct snd_soc_card *card = dapm->card; card 73 sound/soc/intel/boards/cht_bsw_rt5645.c struct cht_mc_private *ctx = snd_soc_card_get_drvdata(card); card 76 sound/soc/intel/boards/cht_bsw_rt5645.c codec_dai = snd_soc_card_get_codec_dai(card, CHT_CODEC_DAI1); card 78 sound/soc/intel/boards/cht_bsw_rt5645.c codec_dai = snd_soc_card_get_codec_dai(card, CHT_CODEC_DAI2); card 81 sound/soc/intel/boards/cht_bsw_rt5645.c dev_err(card->dev, "Codec dai not found; Unable to set platform clock\n"); card 88 sound/soc/intel/boards/cht_bsw_rt5645.c dev_err(card->dev, card 101 sound/soc/intel/boards/cht_bsw_rt5645.c dev_err(card->dev, "can't set codec sysclk: %d\n", ret); card 253 sound/soc/intel/boards/cht_bsw_rt5645.c struct snd_soc_card *card = runtime->card; card 254 sound/soc/intel/boards/cht_bsw_rt5645.c struct cht_mc_private *ctx = snd_soc_card_get_drvdata(runtime->card); card 279 sound/soc/intel/boards/cht_bsw_rt5645.c ret = snd_soc_dapm_add_routes(&card->dapm, card 283 sound/soc/intel/boards/cht_bsw_rt5645.c ret = snd_soc_dapm_add_routes(&card->dapm, card 287 sound/soc/intel/boards/cht_bsw_rt5645.c ret = snd_soc_dapm_add_routes(&card->dapm, card 291 sound/soc/intel/boards/cht_bsw_rt5645.c ret = snd_soc_dapm_add_routes(&card->dapm, card 305 sound/soc/intel/boards/cht_bsw_rt5645.c ret = snd_soc_card_jack_new(runtime->card, "Headset", card 528 sound/soc/intel/boards/cht_bsw_rt5645.c struct snd_soc_card *card = snd_soc_cards[0].soc_card; card 551 sound/soc/intel/boards/cht_bsw_rt5645.c card = snd_soc_cards[i].soc_card; card 563 sound/soc/intel/boards/cht_bsw_rt5645.c card->dev = &pdev->dev; card 568 sound/soc/intel/boards/cht_bsw_rt5645.c if (!strcmp(card->dai_link[i].codecs->name, card 570 sound/soc/intel/boards/cht_bsw_rt5645.c card->dai_link[i].codecs->name = drv->codec_name; card 670 sound/soc/intel/boards/cht_bsw_rt5645.c ret_val = snd_soc_fixup_dai_links_platform_name(card, card 687 sound/soc/intel/boards/cht_bsw_rt5645.c snd_soc_card_set_drvdata(card, drv); card 688 sound/soc/intel/boards/cht_bsw_rt5645.c ret_val = devm_snd_soc_register_card(&pdev->dev, card); card 694 sound/soc/intel/boards/cht_bsw_rt5645.c platform_set_drvdata(pdev, card); card 52 sound/soc/intel/boards/cht_bsw_rt5672.c struct snd_soc_card *card = dapm->card; card 54 sound/soc/intel/boards/cht_bsw_rt5672.c struct cht_mc_private *ctx = snd_soc_card_get_drvdata(card); card 57 sound/soc/intel/boards/cht_bsw_rt5672.c codec_dai = snd_soc_card_get_codec_dai(card, CHT_CODEC_DAI); card 59 sound/soc/intel/boards/cht_bsw_rt5672.c dev_err(card->dev, "Codec dai not found; Unable to set platform clock\n"); card 67 sound/soc/intel/boards/cht_bsw_rt5672.c dev_err(card->dev, card 77 sound/soc/intel/boards/cht_bsw_rt5672.c dev_err(card->dev, "can't set codec pll: %d\n", ret); card 85 sound/soc/intel/boards/cht_bsw_rt5672.c dev_err(card->dev, "can't set codec sysclk: %d\n", ret); card 181 sound/soc/intel/boards/cht_bsw_rt5672.c struct cht_mc_private *ctx = snd_soc_card_get_drvdata(runtime->card); card 200 sound/soc/intel/boards/cht_bsw_rt5672.c ret = snd_soc_card_jack_new(runtime->card, "Headset", card 347 sound/soc/intel/boards/cht_bsw_rt5672.c static int cht_suspend_pre(struct snd_soc_card *card) card 350 sound/soc/intel/boards/cht_bsw_rt5672.c struct cht_mc_private *ctx = snd_soc_card_get_drvdata(card); card 352 sound/soc/intel/boards/cht_bsw_rt5672.c for_each_card_components(card, component) { card 364 sound/soc/intel/boards/cht_bsw_rt5672.c static int cht_resume_post(struct snd_soc_card *card) card 367 sound/soc/intel/boards/cht_bsw_rt5672.c struct cht_mc_private *ctx = snd_soc_card_get_drvdata(card); card 369 sound/soc/intel/boards/cht_bsw_rt5672.c for_each_card_components(card, component) { card 136 sound/soc/intel/boards/glk_rt5682_max98357a.c struct glk_card_private *ctx = snd_soc_card_get_drvdata(rtd->card); card 159 sound/soc/intel/boards/glk_rt5682_max98357a.c ret = snd_soc_card_jack_new(rtd->card, "Headset Jack", card 208 sound/soc/intel/boards/glk_rt5682_max98357a.c struct glk_card_private *ctx = snd_soc_card_get_drvdata(rtd->card); card 212 sound/soc/intel/boards/glk_rt5682_max98357a.c pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); card 539 sound/soc/intel/boards/glk_rt5682_max98357a.c static int glk_card_late_probe(struct snd_soc_card *card) card 541 sound/soc/intel/boards/glk_rt5682_max98357a.c struct glk_card_private *ctx = snd_soc_card_get_drvdata(card); card 552 sound/soc/intel/boards/glk_rt5682_max98357a.c err = snd_soc_card_jack_new(card, jack_name, card 570 sound/soc/intel/boards/glk_rt5682_max98357a.c return hdac_hdmi_jack_port_init(component, &card->dapm); card 594 sound/soc/intel/boards/glk_rt5682_max98357a.c struct snd_soc_card *card; card 603 sound/soc/intel/boards/glk_rt5682_max98357a.c card = &glk_audio_card_rt5682_m98357a; card 604 sound/soc/intel/boards/glk_rt5682_max98357a.c card->dev = &pdev->dev; card 605 sound/soc/intel/boards/glk_rt5682_max98357a.c snd_soc_card_set_drvdata(card, ctx); card 611 sound/soc/intel/boards/glk_rt5682_max98357a.c ret = snd_soc_fixup_dai_links_platform_name(card, platform_name); card 615 sound/soc/intel/boards/glk_rt5682_max98357a.c return devm_snd_soc_register_card(&pdev->dev, card); card 57 sound/soc/intel/boards/kbl_da7219_max98357a.c struct snd_soc_card *card = dapm->card; card 61 sound/soc/intel/boards/kbl_da7219_max98357a.c codec_dai = snd_soc_card_get_codec_dai(card, KBL_DIALOG_CODEC_DAI); card 63 sound/soc/intel/boards/kbl_da7219_max98357a.c dev_err(card->dev, "Codec dai not found; Unable to set/unset codec pll\n"); card 71 sound/soc/intel/boards/kbl_da7219_max98357a.c dev_err(card->dev, "failed to stop PLL: %d\n", ret); card 76 sound/soc/intel/boards/kbl_da7219_max98357a.c dev_err(card->dev, "failed to start PLL: %d\n", ret); card 161 sound/soc/intel/boards/kbl_da7219_max98357a.c struct kbl_codec_private *ctx = snd_soc_card_get_drvdata(rtd->card); card 196 sound/soc/intel/boards/kbl_da7219_max98357a.c ret = snd_soc_dapm_ignore_suspend(&rtd->card->dapm, "SoC DMIC"); card 205 sound/soc/intel/boards/kbl_da7219_max98357a.c struct kbl_codec_private *ctx = snd_soc_card_get_drvdata(rtd->card); card 209 sound/soc/intel/boards/kbl_da7219_max98357a.c pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); card 540 sound/soc/intel/boards/kbl_da7219_max98357a.c static int kabylake_card_late_probe(struct snd_soc_card *card) card 542 sound/soc/intel/boards/kbl_da7219_max98357a.c struct kbl_codec_private *ctx = snd_soc_card_get_drvdata(card); card 552 sound/soc/intel/boards/kbl_da7219_max98357a.c err = snd_soc_card_jack_new(card, jack_name, card 571 sound/soc/intel/boards/kbl_da7219_max98357a.c return hdac_hdmi_jack_port_init(component, &card->dapm); card 68 sound/soc/intel/boards/kbl_da7219_max98927.c struct snd_soc_card *card = dapm->card; card 72 sound/soc/intel/boards/kbl_da7219_max98927.c codec_dai = snd_soc_card_get_codec_dai(card, KBL_DIALOG_CODEC_DAI); card 74 sound/soc/intel/boards/kbl_da7219_max98927.c dev_err(card->dev, "Codec dai not found; Unable to set/unset codec pll\n"); card 82 sound/soc/intel/boards/kbl_da7219_max98927.c dev_err(card->dev, "can't set codec sysclk configuration\n"); card 90 sound/soc/intel/boards/kbl_da7219_max98927.c dev_err(card->dev, "failed to stop PLL: %d\n", ret); card 95 sound/soc/intel/boards/kbl_da7219_max98927.c dev_err(card->dev, "failed to start PLL: %d\n", ret); card 297 sound/soc/intel/boards/kbl_da7219_max98927.c if (!strcmp(rtd->card->name, "kblda7219m98373") || card 298 sound/soc/intel/boards/kbl_da7219_max98927.c !strcmp(rtd->card->name, "kblmax98373")) { card 333 sound/soc/intel/boards/kbl_da7219_max98927.c struct kbl_codec_private *ctx = snd_soc_card_get_drvdata(rtd->card); card 336 sound/soc/intel/boards/kbl_da7219_max98927.c struct snd_soc_card *card = rtd->card; card 340 sound/soc/intel/boards/kbl_da7219_max98927.c ret = snd_soc_dapm_add_routes(&card->dapm, card 371 sound/soc/intel/boards/kbl_da7219_max98927.c ret = snd_soc_dapm_ignore_suspend(&rtd->card->dapm, "SoC DMIC"); card 380 sound/soc/intel/boards/kbl_da7219_max98927.c struct kbl_codec_private *ctx = snd_soc_card_get_drvdata(rtd->card); card 384 sound/soc/intel/boards/kbl_da7219_max98927.c pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); card 471 sound/soc/intel/boards/kbl_da7219_max98927.c if (!strcmp(soc_rt->card->name, "kblda7219m98373") || card 472 sound/soc/intel/boards/kbl_da7219_max98927.c !strcmp(soc_rt->card->name, "kblmax98373")) { card 523 sound/soc/intel/boards/kbl_da7219_max98927.c if (!strcmp(soc_rt->card->name, "kblda7219m98373") || card 524 sound/soc/intel/boards/kbl_da7219_max98927.c !strcmp(soc_rt->card->name, "kblmax98373")) { card 968 sound/soc/intel/boards/kbl_da7219_max98927.c static int kabylake_card_late_probe(struct snd_soc_card *card) card 970 sound/soc/intel/boards/kbl_da7219_max98927.c struct kbl_codec_private *ctx = snd_soc_card_get_drvdata(card); card 972 sound/soc/intel/boards/kbl_da7219_max98927.c struct snd_soc_dapm_context *dapm = &card->dapm; card 981 sound/soc/intel/boards/kbl_da7219_max98927.c err = snd_soc_card_jack_new(card, jack_name, card 1000 sound/soc/intel/boards/kbl_da7219_max98927.c err = hdac_hdmi_jack_port_init(component, &card->dapm); card 1007 sound/soc/intel/boards/kbl_da7219_max98927.c dev_err(card->dev, "failed to disable Left Spk: %d\n", err); card 1013 sound/soc/intel/boards/kbl_da7219_max98927.c dev_err(card->dev, "failed to disable Right Spk: %d\n", err); card 96 sound/soc/intel/boards/kbl_rt5660.c struct kbl_codec_private *priv = snd_soc_card_get_drvdata(dapm->card); card 159 sound/soc/intel/boards/kbl_rt5660.c struct kbl_codec_private *ctx = snd_soc_card_get_drvdata(rtd->card); card 176 sound/soc/intel/boards/kbl_rt5660.c ret = snd_soc_card_jack_new(rtd->card, "Lineout Jack", card 190 sound/soc/intel/boards/kbl_rt5660.c ret = snd_soc_card_jack_new(rtd->card, "Mic Jack", card 212 sound/soc/intel/boards/kbl_rt5660.c struct kbl_codec_private *ctx = snd_soc_card_get_drvdata(rtd->card); card 216 sound/soc/intel/boards/kbl_rt5660.c pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); card 462 sound/soc/intel/boards/kbl_rt5660.c static int kabylake_card_late_probe(struct snd_soc_card *card) card 464 sound/soc/intel/boards/kbl_rt5660.c struct kbl_codec_private *ctx = snd_soc_card_get_drvdata(card); card 474 sound/soc/intel/boards/kbl_rt5660.c err = snd_soc_card_jack_new(card, jack_name, card 493 sound/soc/intel/boards/kbl_rt5660.c return hdac_hdmi_jack_port_init(component, &card->dapm); card 73 sound/soc/intel/boards/kbl_rt5663_max98927.c struct snd_soc_card *card = dapm->card; card 74 sound/soc/intel/boards/kbl_rt5663_max98927.c struct kbl_rt5663_private *priv = snd_soc_card_get_drvdata(card); card 87 sound/soc/intel/boards/kbl_rt5663_max98927.c dev_err(card->dev, "Can't set rate for mclk, err: %d\n", card 94 sound/soc/intel/boards/kbl_rt5663_max98927.c dev_err(card->dev, "Can't enable mclk, err: %d\n", ret); card 101 sound/soc/intel/boards/kbl_rt5663_max98927.c dev_err(card->dev, "Can't set rate for sclk, err: %d\n", card 109 sound/soc/intel/boards/kbl_rt5663_max98927.c dev_err(card->dev, "Can't enable sclk, err: %d\n", ret); card 260 sound/soc/intel/boards/kbl_rt5663_max98927.c struct kbl_rt5663_private *ctx = snd_soc_card_get_drvdata(rtd->card); card 296 sound/soc/intel/boards/kbl_rt5663_max98927.c ret = snd_soc_dapm_ignore_suspend(&rtd->card->dapm, "SoC DMIC"); card 307 sound/soc/intel/boards/kbl_rt5663_max98927.c struct kbl_rt5663_private *ctx = snd_soc_card_get_drvdata(rtd->card); card 311 sound/soc/intel/boards/kbl_rt5663_max98927.c pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); card 880 sound/soc/intel/boards/kbl_rt5663_max98927.c static int kabylake_card_late_probe(struct snd_soc_card *card) card 882 sound/soc/intel/boards/kbl_rt5663_max98927.c struct kbl_rt5663_private *ctx = snd_soc_card_get_drvdata(card); card 892 sound/soc/intel/boards/kbl_rt5663_max98927.c err = snd_soc_card_jack_new(card, jack_name, card 910 sound/soc/intel/boards/kbl_rt5663_max98927.c return hdac_hdmi_jack_port_init(component, &card->dapm); card 158 sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c struct kbl_codec_private *ctx = snd_soc_card_get_drvdata(rtd->card); card 183 sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c ret = snd_soc_dapm_ignore_suspend(&rtd->card->dapm, "DMIC"); card 192 sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c struct kbl_codec_private *ctx = snd_soc_card_get_drvdata(rtd->card); card 196 sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); card 594 sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c static int kabylake_card_late_probe(struct snd_soc_card *card) card 596 sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c struct kbl_codec_private *ctx = snd_soc_card_get_drvdata(card); card 606 sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c err = snd_soc_card_jack_new(card, jack_name, card 622 sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c return hdac_hdmi_jack_port_init(component, &card->dapm); card 19 sound/soc/intel/boards/skl_hda_dsp_common.c int skl_hda_hdmi_add_pcm(struct snd_soc_card *card, int device) card 21 sound/soc/intel/boards/skl_hda_dsp_common.c struct skl_hda_private *ctx = snd_soc_card_get_drvdata(card); card 25 sound/soc/intel/boards/skl_hda_dsp_common.c pcm = devm_kzalloc(card->dev, sizeof(*pcm), GFP_KERNEL); card 31 sound/soc/intel/boards/skl_hda_dsp_common.c pcm->codec_dai = snd_soc_card_get_codec_dai(card, dai_name); card 134 sound/soc/intel/boards/skl_hda_dsp_common.c int skl_hda_hdmi_jack_init(struct snd_soc_card *card) card 136 sound/soc/intel/boards/skl_hda_dsp_common.c struct skl_hda_private *ctx = snd_soc_card_get_drvdata(card); card 146 sound/soc/intel/boards/skl_hda_dsp_common.c err = snd_soc_card_jack_new(card, jack_name, card 167 sound/soc/intel/boards/skl_hda_dsp_common.c return hdac_hdmi_jack_port_init(component, &card->dapm); card 35 sound/soc/intel/boards/skl_hda_dsp_common.h int skl_hda_hdmi_jack_init(struct snd_soc_card *card); card 36 sound/soc/intel/boards/skl_hda_dsp_common.h int skl_hda_hdmi_add_pcm(struct snd_soc_card *card, int device); card 64 sound/soc/intel/boards/skl_hda_dsp_generic.c static int skl_hda_card_late_probe(struct snd_soc_card *card) card 66 sound/soc/intel/boards/skl_hda_dsp_generic.c return skl_hda_hdmi_jack_init(card); card 70 sound/soc/intel/boards/skl_hda_dsp_generic.c skl_hda_add_dai_link(struct snd_soc_card *card, struct snd_soc_dai_link *link) card 72 sound/soc/intel/boards/skl_hda_dsp_generic.c struct skl_hda_private *ctx = snd_soc_card_get_drvdata(card); card 75 sound/soc/intel/boards/skl_hda_dsp_generic.c dev_dbg(card->dev, "%s: dai link name - %s\n", __func__, link->name); card 80 sound/soc/intel/boards/skl_hda_dsp_generic.c ret = skl_hda_hdmi_add_pcm(card, ctx->pcm_count); card 113 sound/soc/intel/boards/skl_hda_dsp_generic.c struct snd_soc_card *card = &hda_soc_card; card 139 sound/soc/intel/boards/skl_hda_dsp_generic.c card->dapm_widgets = skl_hda_widgets; card 140 sound/soc/intel/boards/skl_hda_dsp_generic.c card->num_dapm_widgets = ARRAY_SIZE(skl_hda_widgets); card 145 sound/soc/intel/boards/skl_hda_dsp_generic.c card->num_links = num_links; card 146 sound/soc/intel/boards/skl_hda_dsp_generic.c card->num_dapm_routes = num_route; card 148 sound/soc/intel/boards/skl_hda_dsp_generic.c for_each_card_prelinks(card, i, dai_link) card 53 sound/soc/intel/boards/skl_nau88l25_max98357a.c struct snd_soc_card *card = dapm->card; card 57 sound/soc/intel/boards/skl_nau88l25_max98357a.c codec_dai = snd_soc_card_get_codec_dai(card, SKL_NUVOTON_CODEC_DAI); card 59 sound/soc/intel/boards/skl_nau88l25_max98357a.c dev_err(card->dev, "Codec dai not found; Unable to set platform clock\n"); card 67 sound/soc/intel/boards/skl_nau88l25_max98357a.c dev_err(card->dev, "set sysclk err = %d\n", ret); card 74 sound/soc/intel/boards/skl_nau88l25_max98357a.c dev_err(card->dev, "set sysclk err = %d\n", ret); card 177 sound/soc/intel/boards/skl_nau88l25_max98357a.c snd_soc_dapm_ignore_suspend(&rtd->card->dapm, "SoC DMIC"); card 184 sound/soc/intel/boards/skl_nau88l25_max98357a.c struct skl_nau8825_private *ctx = snd_soc_card_get_drvdata(rtd->card); card 188 sound/soc/intel/boards/skl_nau88l25_max98357a.c pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); card 202 sound/soc/intel/boards/skl_nau88l25_max98357a.c struct skl_nau8825_private *ctx = snd_soc_card_get_drvdata(rtd->card); card 206 sound/soc/intel/boards/skl_nau88l25_max98357a.c pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); card 220 sound/soc/intel/boards/skl_nau88l25_max98357a.c struct skl_nau8825_private *ctx = snd_soc_card_get_drvdata(rtd->card); card 224 sound/soc/intel/boards/skl_nau88l25_max98357a.c pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); card 599 sound/soc/intel/boards/skl_nau88l25_max98357a.c static int skylake_card_late_probe(struct snd_soc_card *card) card 601 sound/soc/intel/boards/skl_nau88l25_max98357a.c struct skl_nau8825_private *ctx = snd_soc_card_get_drvdata(card); card 611 sound/soc/intel/boards/skl_nau88l25_max98357a.c err = snd_soc_card_jack_new(card, jack_name, card 630 sound/soc/intel/boards/skl_nau88l25_max98357a.c return hdac_hdmi_jack_port_init(component, &card->dapm); card 63 sound/soc/intel/boards/skl_nau88l25_ssm4567.c struct snd_soc_card *card = dapm->card; card 67 sound/soc/intel/boards/skl_nau88l25_ssm4567.c codec_dai = snd_soc_card_get_codec_dai(card, SKL_NUVOTON_CODEC_DAI); card 69 sound/soc/intel/boards/skl_nau88l25_ssm4567.c dev_err(card->dev, "Codec dai not found\n"); card 77 sound/soc/intel/boards/skl_nau88l25_ssm4567.c dev_err(card->dev, "set sysclk err = %d\n", ret); card 84 sound/soc/intel/boards/skl_nau88l25_ssm4567.c dev_err(card->dev, "set sysclk err = %d\n", ret); card 196 sound/soc/intel/boards/skl_nau88l25_ssm4567.c snd_soc_dapm_ignore_suspend(&rtd->card->dapm, "SoC DMIC"); card 203 sound/soc/intel/boards/skl_nau88l25_ssm4567.c struct skl_nau88125_private *ctx = snd_soc_card_get_drvdata(rtd->card); card 207 sound/soc/intel/boards/skl_nau88l25_ssm4567.c pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); card 221 sound/soc/intel/boards/skl_nau88l25_ssm4567.c struct skl_nau88125_private *ctx = snd_soc_card_get_drvdata(rtd->card); card 225 sound/soc/intel/boards/skl_nau88l25_ssm4567.c pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); card 240 sound/soc/intel/boards/skl_nau88l25_ssm4567.c struct skl_nau88125_private *ctx = snd_soc_card_get_drvdata(rtd->card); card 244 sound/soc/intel/boards/skl_nau88l25_ssm4567.c pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); card 640 sound/soc/intel/boards/skl_nau88l25_ssm4567.c static int skylake_card_late_probe(struct snd_soc_card *card) card 642 sound/soc/intel/boards/skl_nau88l25_ssm4567.c struct skl_nau88125_private *ctx = snd_soc_card_get_drvdata(card); card 652 sound/soc/intel/boards/skl_nau88l25_ssm4567.c err = snd_soc_card_jack_new(card, jack_name, card 671 sound/soc/intel/boards/skl_nau88l25_ssm4567.c return hdac_hdmi_jack_port_init(component, &card->dapm); card 128 sound/soc/intel/boards/skl_rt286.c ret = snd_soc_card_jack_new(rtd->card, "Headset", card 138 sound/soc/intel/boards/skl_rt286.c snd_soc_dapm_ignore_suspend(&rtd->card->dapm, "SoC DMIC"); card 145 sound/soc/intel/boards/skl_rt286.c struct skl_rt286_private *ctx = snd_soc_card_get_drvdata(rtd->card); card 149 sound/soc/intel/boards/skl_rt286.c pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); card 481 sound/soc/intel/boards/skl_rt286.c static int skylake_card_late_probe(struct snd_soc_card *card) card 483 sound/soc/intel/boards/skl_rt286.c struct skl_rt286_private *ctx = snd_soc_card_get_drvdata(card); card 493 sound/soc/intel/boards/skl_rt286.c err = snd_soc_card_jack_new(card, jack_name, card 511 sound/soc/intel/boards/skl_rt286.c return hdac_hdmi_jack_port_init(component, &card->dapm); card 120 sound/soc/intel/boards/sof_rt5682.c struct sof_card_private *ctx = snd_soc_card_get_drvdata(rtd->card); card 124 sound/soc/intel/boards/sof_rt5682.c pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); card 139 sound/soc/intel/boards/sof_rt5682.c struct sof_card_private *ctx = snd_soc_card_get_drvdata(rtd->card); card 177 sound/soc/intel/boards/sof_rt5682.c ret = snd_soc_card_jack_new(rtd->card, "Headset Jack", card 207 sound/soc/intel/boards/sof_rt5682.c struct sof_card_private *ctx = snd_soc_card_get_drvdata(rtd->card); card 268 sound/soc/intel/boards/sof_rt5682.c static int sof_card_late_probe(struct snd_soc_card *card) card 270 sound/soc/intel/boards/sof_rt5682.c struct sof_card_private *ctx = snd_soc_card_get_drvdata(card); card 285 sound/soc/intel/boards/sof_rt5682.c err = snd_soc_card_jack_new(card, jack_name, card 302 sound/soc/intel/boards/sof_rt5682.c return hdac_hdmi_jack_port_init(component, &card->dapm); card 342 sound/soc/intel/boards/sof_rt5682.c struct snd_soc_card *card = rtd->card; card 345 sound/soc/intel/boards/sof_rt5682.c ret = snd_soc_dapm_add_routes(&card->dapm, speaker_map, card 355 sound/soc/intel/boards/sof_rt5682.c struct snd_soc_card *card = rtd->card; card 358 sound/soc/intel/boards/sof_rt5682.c ret = snd_soc_dapm_new_controls(&card->dapm, dmic_widgets, card 361 sound/soc/intel/boards/sof_rt5682.c dev_err(card->dev, "DMic widget addition failed: %d\n", ret); card 366 sound/soc/intel/boards/sof_rt5682.c ret = snd_soc_dapm_add_routes(&card->dapm, dmic_map, card 370 sound/soc/intel/boards/sof_rt5682.c dev_err(card->dev, "DMic map addition failed: %d\n", ret); card 680 sound/soc/intel/boards/sof_rt5682.c struct snd_soc_card *card = platform_get_drvdata(pdev); card 683 sound/soc/intel/boards/sof_rt5682.c for_each_card_components(card, component) { card 1056 sound/soc/intel/haswell/sst-haswell-pcm.c priv_data->soc_card = component->card; card 1134 sound/soc/intel/skylake/skl-pcm.c if (s->pcm->card != substream->pcm->card) card 1147 sound/soc/intel/skylake/skl-pcm.c if (s->pcm->card != substream->pcm->card) card 2861 sound/soc/intel/skylake/skl-topology.c struct snd_soc_card *card; card 2866 sound/soc/intel/skylake/skl-topology.c card = soc_component->card; card 2867 sound/soc/intel/skylake/skl-topology.c if (!card || !card->instantiated) card 2870 sound/soc/intel/skylake/skl-topology.c list_for_each_entry(w, &card->widgets, list) { card 3515 sound/soc/intel/skylake/skl-topology.c list_for_each_entry(w, &component->card->widgets, list) { card 107 sound/soc/kirkwood/armada-370-db.c struct snd_soc_card *card = &a370db; card 109 sound/soc/kirkwood/armada-370-db.c card->dev = &pdev->dev; card 134 sound/soc/kirkwood/armada-370-db.c return devm_snd_soc_register_card(card->dev, card); card 259 sound/soc/kirkwood/kirkwood-dma.c buf->dev.dev = pcm->card->dev; card 260 sound/soc/kirkwood/kirkwood-dma.c buf->area = dma_alloc_coherent(pcm->card->dev, size, card 272 sound/soc/kirkwood/kirkwood-dma.c struct snd_card *card = rtd->card->snd_card; card 276 sound/soc/kirkwood/kirkwood-dma.c ret = dma_coerce_mask_and_coherent(card->dev, DMA_BIT_MASK(32)); card 311 sound/soc/kirkwood/kirkwood-dma.c dma_free_coherent(pcm->card->dev, buf->bytes, card 73 sound/soc/mediatek/common/mtk-afe-platform-driver.c snd_soc_dapm_new_widgets(component->dapm.card); card 38 sound/soc/mediatek/mt2701/mt2701-cs42448.c struct snd_soc_card *card = snd_kcontrol_chip(kcontrol); card 39 sound/soc/mediatek/mt2701/mt2701-cs42448.c struct mt2701_cs42448_private *priv = snd_soc_card_get_drvdata(card); card 48 sound/soc/mediatek/mt2701/mt2701-cs42448.c struct snd_soc_card *card = snd_kcontrol_chip(kcontrol); card 49 sound/soc/mediatek/mt2701/mt2701-cs42448.c struct mt2701_cs42448_private *priv = snd_soc_card_get_drvdata(card); card 72 sound/soc/mediatek/mt2701/mt2701-cs42448.c dev_warn(card->dev, "%s invalid setting\n", __func__); card 115 sound/soc/mediatek/mt2701/mt2701-cs42448.c dev_err(substream->pcm->card->dev, card 329 sound/soc/mediatek/mt2701/mt2701-cs42448.c struct snd_soc_card *card = &mt2701_cs42448_soc_card; card 348 sound/soc/mediatek/mt2701/mt2701-cs42448.c for_each_card_prelinks(card, i, dai_link) { card 354 sound/soc/mediatek/mt2701/mt2701-cs42448.c card->dev = dev; card 363 sound/soc/mediatek/mt2701/mt2701-cs42448.c for_each_card_prelinks(card, i, dai_link) { card 379 sound/soc/mediatek/mt2701/mt2701-cs42448.c ret = snd_soc_of_parse_audio_routing(card, "audio-routing"); card 406 sound/soc/mediatek/mt2701/mt2701-cs42448.c snd_soc_card_set_drvdata(card, priv); card 408 sound/soc/mediatek/mt2701/mt2701-cs42448.c ret = devm_snd_soc_register_card(&pdev->dev, card); card 108 sound/soc/mediatek/mt2701/mt2701-wm8960.c struct snd_soc_card *card = &mt2701_wm8960_card; card 119 sound/soc/mediatek/mt2701/mt2701-wm8960.c for_each_card_prelinks(card, i, dai_link) { card 125 sound/soc/mediatek/mt2701/mt2701-wm8960.c card->dev = &pdev->dev; card 134 sound/soc/mediatek/mt2701/mt2701-wm8960.c for_each_card_prelinks(card, i, dai_link) { card 140 sound/soc/mediatek/mt2701/mt2701-wm8960.c ret = snd_soc_of_parse_audio_routing(card, "audio-routing"); card 146 sound/soc/mediatek/mt2701/mt2701-wm8960.c ret = devm_snd_soc_register_card(&pdev->dev, card); card 196 sound/soc/mediatek/mt6797/mt6797-mt6351.c struct snd_soc_card *card = &mt6797_mt6351_card; card 201 sound/soc/mediatek/mt6797/mt6797-mt6351.c card->dev = &pdev->dev; card 209 sound/soc/mediatek/mt6797/mt6797-mt6351.c for_each_card_prelinks(card, i, dai_link) { card 222 sound/soc/mediatek/mt6797/mt6797-mt6351.c for_each_card_prelinks(card, i, dai_link) { card 228 sound/soc/mediatek/mt6797/mt6797-mt6351.c ret = devm_snd_soc_register_card(&pdev->dev, card); card 69 sound/soc/mediatek/mt8173/mt8173-max98090.c struct snd_soc_card *card = runtime->card; card 73 sound/soc/mediatek/mt8173/mt8173-max98090.c ret = snd_soc_card_jack_new(card, "Headphone", SND_JACK_HEADPHONE, card 78 sound/soc/mediatek/mt8173/mt8173-max98090.c dev_err(card->dev, "Can't create a new Jack %d\n", ret); card 148 sound/soc/mediatek/mt8173/mt8173-max98090.c struct snd_soc_card *card = &mt8173_max98090_card; card 159 sound/soc/mediatek/mt8173/mt8173-max98090.c for_each_card_prelinks(card, i, dai_link) { card 172 sound/soc/mediatek/mt8173/mt8173-max98090.c for_each_card_prelinks(card, i, dai_link) { card 177 sound/soc/mediatek/mt8173/mt8173-max98090.c card->dev = &pdev->dev; card 179 sound/soc/mediatek/mt8173/mt8173-max98090.c ret = devm_snd_soc_register_card(&pdev->dev, card); card 75 sound/soc/mediatek/mt8173/mt8173-rt5650-rt5514.c struct snd_soc_card *card = runtime->card; card 85 sound/soc/mediatek/mt8173/mt8173-rt5650-rt5514.c ret = snd_soc_card_jack_new(card, "Headset Jack", card 91 sound/soc/mediatek/mt8173/mt8173-rt5650-rt5514.c dev_err(card->dev, "Can't new Headset Jack %d\n", ret); card 180 sound/soc/mediatek/mt8173/mt8173-rt5650-rt5514.c struct snd_soc_card *card = &mt8173_rt5650_rt5514_card; card 192 sound/soc/mediatek/mt8173/mt8173-rt5650-rt5514.c for_each_card_prelinks(card, i, dai_link) { card 215 sound/soc/mediatek/mt8173/mt8173-rt5650-rt5514.c card->dev = &pdev->dev; card 217 sound/soc/mediatek/mt8173/mt8173-rt5650-rt5514.c ret = devm_snd_soc_register_card(&pdev->dev, card); card 79 sound/soc/mediatek/mt8173/mt8173-rt5650-rt5676.c struct snd_soc_card *card = runtime->card; card 98 sound/soc/mediatek/mt8173/mt8173-rt5650-rt5676.c ret = snd_soc_card_jack_new(card, "Headset Jack", card 104 sound/soc/mediatek/mt8173/mt8173-rt5650-rt5676.c dev_err(card->dev, "Can't new Headset Jack %d\n", ret); card 236 sound/soc/mediatek/mt8173/mt8173-rt5650-rt5676.c struct snd_soc_card *card = &mt8173_rt5650_rt5676_card; card 248 sound/soc/mediatek/mt8173/mt8173-rt5650-rt5676.c for_each_card_prelinks(card, i, dai_link) { card 282 sound/soc/mediatek/mt8173/mt8173-rt5650-rt5676.c card->dev = &pdev->dev; card 284 sound/soc/mediatek/mt8173/mt8173-rt5650-rt5676.c ret = devm_snd_soc_register_card(&pdev->dev, card); card 105 sound/soc/mediatek/mt8173/mt8173-rt5650.c struct snd_soc_card *card = runtime->card; card 123 sound/soc/mediatek/mt8173/mt8173-rt5650.c dev_warn(card->dev, card 131 sound/soc/mediatek/mt8173/mt8173-rt5650.c ret = snd_soc_card_jack_new(card, "Headset Jack", card 137 sound/soc/mediatek/mt8173/mt8173-rt5650.c dev_err(card->dev, "Can't new Headset Jack %d\n", ret); card 244 sound/soc/mediatek/mt8173/mt8173-rt5650.c struct snd_soc_card *card = &mt8173_rt5650_card; card 258 sound/soc/mediatek/mt8173/mt8173-rt5650.c for_each_card_prelinks(card, i, dai_link) { card 306 sound/soc/mediatek/mt8173/mt8173-rt5650.c card->dev = &pdev->dev; card 308 sound/soc/mediatek/mt8173/mt8173-rt5650.c ret = devm_snd_soc_register_card(&pdev->dev, card); card 409 sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c struct snd_soc_card *card = &mt8183_da7219_max98357_card; card 415 sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c card->dev = &pdev->dev; card 424 sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c for_each_card_prelinks(card, i, dai_link) { card 439 sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c ret = devm_snd_soc_register_card(&pdev->dev, card); card 195 sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c snd_soc_card_get_drvdata(rtd->card); card 204 sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c dev_err(rtd->card->dev, "%s failed to select state %d\n", card 214 sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c snd_soc_card_get_drvdata(rtd->card); card 223 sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c dev_err(rtd->card->dev, "%s failed to select state %d\n", card 405 sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c snd_soc_card_get_drvdata(component->card); card 431 sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c struct snd_soc_card *card = &mt8183_mt6358_ts3a227_max98357_card; card 438 sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c card->dev = &pdev->dev; card 447 sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c for_each_card_prelinks(card, i, dai_link) { card 457 sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c card->aux_dev = &mt8183_mt6358_ts3a227_max98357_headset_dev; card 458 sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c card->num_aux_devs = 1; card 465 sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c snd_soc_card_set_drvdata(card, priv); card 502 sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c return devm_snd_soc_register_card(&pdev->dev, card); card 14 sound/soc/meson/axg-card.c struct snd_soc_card card; card 52 sound/soc/meson/axg-card.c links = krealloc(priv->card.dai_link, card 53 sound/soc/meson/axg-card.c num_links * sizeof(*priv->card.dai_link), card 60 sound/soc/meson/axg-card.c dev_err(priv->card.dev, "failed to allocate links\n"); card 64 sound/soc/meson/axg-card.c priv->card.dai_link = links; card 66 sound/soc/meson/axg-card.c priv->card.num_links = num_links; card 70 sound/soc/meson/axg-card.c static int axg_card_parse_dai(struct snd_soc_card *card, card 85 sound/soc/meson/axg-card.c dev_err(card->dev, "can't parse dai %d\n", ret); card 93 sound/soc/meson/axg-card.c static int axg_card_set_link_name(struct snd_soc_card *card, card 98 sound/soc/meson/axg-card.c char *name = devm_kasprintf(card->dev, GFP_KERNEL, "%s.%s", card 111 sound/soc/meson/axg-card.c struct snd_soc_card *card = &priv->card; card 117 sound/soc/meson/axg-card.c if (card->dai_link) { card 118 sound/soc/meson/axg-card.c for_each_card_prelinks(card, i, link) { card 126 sound/soc/meson/axg-card.c if (card->aux_dev) { card 127 sound/soc/meson/axg-card.c for_each_card_pre_auxs(card, i, aux) card 131 sound/soc/meson/axg-card.c kfree(card->dai_link); card 135 sound/soc/meson/axg-card.c static int axg_card_add_aux_devices(struct snd_soc_card *card) card 137 sound/soc/meson/axg-card.c struct device_node *node = card->dev->of_node; card 147 sound/soc/meson/axg-card.c dev_warn(card->dev, "card has no auxiliary devices\n"); card 150 sound/soc/meson/axg-card.c dev_err(card->dev, "error getting auxiliary devices: %d\n", card 155 sound/soc/meson/axg-card.c aux = devm_kcalloc(card->dev, num, sizeof(*aux), GFP_KERNEL); card 158 sound/soc/meson/axg-card.c card->aux_dev = aux; card 159 sound/soc/meson/axg-card.c card->num_aux_devs = num; card 161 sound/soc/meson/axg-card.c for_each_card_pre_auxs(card, i, aux) { card 175 sound/soc/meson/axg-card.c struct axg_card *priv = snd_soc_card_get_drvdata(rtd->card); card 207 sound/soc/meson/axg-card.c struct axg_card *priv = snd_soc_card_get_drvdata(rtd->card); card 237 sound/soc/meson/axg-card.c struct axg_card *priv = snd_soc_card_get_drvdata(rtd->card); card 253 sound/soc/meson/axg-card.c static int axg_card_add_tdm_loopback(struct snd_soc_card *card, card 256 sound/soc/meson/axg-card.c struct axg_card *priv = snd_soc_card_get_drvdata(card); card 257 sound/soc/meson/axg-card.c struct snd_soc_dai_link *pad = &card->dai_link[*index]; card 263 sound/soc/meson/axg-card.c ret = axg_card_reallocate_links(priv, card->num_links + 1); card 267 sound/soc/meson/axg-card.c lb = &card->dai_link[*index + 1]; card 273 sound/soc/meson/axg-card.c dlc = devm_kzalloc(card->dev, 2 * sizeof(*dlc), GFP_KERNEL); card 333 sound/soc/meson/axg-card.c static int axg_card_parse_cpu_tdm_slots(struct snd_soc_card *card, card 342 sound/soc/meson/axg-card.c be->tx_mask = devm_kcalloc(card->dev, AXG_TDM_NUM_LANES, card 344 sound/soc/meson/axg-card.c be->rx_mask = devm_kcalloc(card->dev, AXG_TDM_NUM_LANES, card 371 sound/soc/meson/axg-card.c dev_err(card->dev, "tdm link has no cpu slots\n"); card 387 sound/soc/meson/axg-card.c dev_err(card->dev, "bad slot number\n"); card 396 sound/soc/meson/axg-card.c static int axg_card_parse_codecs_masks(struct snd_soc_card *card, card 404 sound/soc/meson/axg-card.c codec_mask = devm_kcalloc(card->dev, link->num_codecs, card 423 sound/soc/meson/axg-card.c static int axg_card_parse_tdm(struct snd_soc_card *card, card 427 sound/soc/meson/axg-card.c struct axg_card *priv = snd_soc_card_get_drvdata(card); card 428 sound/soc/meson/axg-card.c struct snd_soc_dai_link *link = &card->dai_link[*index]; card 433 sound/soc/meson/axg-card.c be = devm_kzalloc(card->dev, sizeof(*be), GFP_KERNEL); card 445 sound/soc/meson/axg-card.c ret = axg_card_parse_cpu_tdm_slots(card, link, node, be); card 447 sound/soc/meson/axg-card.c dev_err(card->dev, "error parsing tdm link slots\n"); card 451 sound/soc/meson/axg-card.c ret = axg_card_parse_codecs_masks(card, link, node, be); card 457 sound/soc/meson/axg-card.c ret = axg_card_add_tdm_loopback(card, index); card 465 sound/soc/meson/axg-card.c static int axg_card_set_be_link(struct snd_soc_card *card, card 479 sound/soc/meson/axg-card.c dev_err(card->dev, "be link %s has no codec\n", card 484 sound/soc/meson/axg-card.c codec = devm_kcalloc(card->dev, num_codecs, sizeof(*codec), GFP_KERNEL); card 492 sound/soc/meson/axg-card.c ret = axg_card_parse_dai(card, np, &codec->of_node, card 502 sound/soc/meson/axg-card.c ret = axg_card_set_link_name(card, link, node, "be"); card 504 sound/soc/meson/axg-card.c dev_err(card->dev, "error setting %pOFn link name\n", np); card 509 sound/soc/meson/axg-card.c static int axg_card_set_fe_link(struct snd_soc_card *card, card 516 sound/soc/meson/axg-card.c codec = devm_kzalloc(card->dev, sizeof(*codec), GFP_KERNEL); card 535 sound/soc/meson/axg-card.c return axg_card_set_link_name(card, link, node, "fe"); card 558 sound/soc/meson/axg-card.c static int axg_card_add_link(struct snd_soc_card *card, struct device_node *np, card 561 sound/soc/meson/axg-card.c struct snd_soc_dai_link *dai_link = &card->dai_link[*index]; card 565 sound/soc/meson/axg-card.c cpu = devm_kzalloc(card->dev, sizeof(*cpu), GFP_KERNEL); card 572 sound/soc/meson/axg-card.c ret = axg_card_parse_dai(card, np, &dai_link->cpus->of_node, card 578 sound/soc/meson/axg-card.c ret = axg_card_set_fe_link(card, dai_link, np, true); card 580 sound/soc/meson/axg-card.c ret = axg_card_set_fe_link(card, dai_link, np, false); card 582 sound/soc/meson/axg-card.c ret = axg_card_set_be_link(card, dai_link, np); card 588 sound/soc/meson/axg-card.c ret = axg_card_parse_tdm(card, np, index); card 595 sound/soc/meson/axg-card.c static int axg_card_add_links(struct snd_soc_card *card) card 597 sound/soc/meson/axg-card.c struct axg_card *priv = snd_soc_card_get_drvdata(card); card 598 sound/soc/meson/axg-card.c struct device_node *node = card->dev->of_node; card 604 sound/soc/meson/axg-card.c dev_err(card->dev, "card has no links\n"); card 614 sound/soc/meson/axg-card.c ret = axg_card_add_link(card, np, &i); card 626 sound/soc/meson/axg-card.c static int axg_card_parse_of_optional(struct snd_soc_card *card, card 632 sound/soc/meson/axg-card.c if (!of_property_read_bool(card->dev->of_node, propname)) card 636 sound/soc/meson/axg-card.c return func(card, propname); card 656 sound/soc/meson/axg-card.c snd_soc_card_set_drvdata(&priv->card, priv); card 658 sound/soc/meson/axg-card.c priv->card.owner = THIS_MODULE; card 659 sound/soc/meson/axg-card.c priv->card.dev = dev; card 661 sound/soc/meson/axg-card.c ret = snd_soc_of_parse_card_name(&priv->card, "model"); card 665 sound/soc/meson/axg-card.c ret = axg_card_parse_of_optional(&priv->card, "audio-routing", card 672 sound/soc/meson/axg-card.c ret = axg_card_parse_of_optional(&priv->card, "audio-widgets", card 679 sound/soc/meson/axg-card.c ret = axg_card_add_links(&priv->card); card 683 sound/soc/meson/axg-card.c ret = axg_card_add_aux_devices(&priv->card); card 687 sound/soc/meson/axg-card.c ret = devm_snd_soc_register_card(dev, &priv->card); card 313 sound/soc/meson/axg-fifo.c struct snd_card *card = rtd->card->snd_card; card 317 sound/soc/meson/axg-fifo.c SNDRV_DMA_TYPE_DEV, card->dev, card 111 sound/soc/mxs/mxs-sgtl5000.c struct snd_soc_card *card = &mxs_sgtl5000; card 148 sound/soc/mxs/mxs-sgtl5000.c card->dev = &pdev->dev; card 151 sound/soc/mxs/mxs-sgtl5000.c card->dapm_widgets = mxs_sgtl5000_dapm_widgets; card 152 sound/soc/mxs/mxs-sgtl5000.c card->num_dapm_widgets = ARRAY_SIZE(mxs_sgtl5000_dapm_widgets); card 154 sound/soc/mxs/mxs-sgtl5000.c ret = snd_soc_of_parse_audio_routing(card, "audio-routing"); card 162 sound/soc/mxs/mxs-sgtl5000.c ret = devm_snd_soc_register_card(&pdev->dev, card); card 102 sound/soc/pxa/corgi.c corgi_ext_control(&rtd->card->dapm); card 169 sound/soc/pxa/corgi.c struct snd_soc_card *card = snd_kcontrol_chip(kcontrol); card 175 sound/soc/pxa/corgi.c corgi_ext_control(&card->dapm); card 189 sound/soc/pxa/corgi.c struct snd_soc_card *card = snd_kcontrol_chip(kcontrol); card 195 sound/soc/pxa/corgi.c corgi_ext_control(&card->dapm); card 291 sound/soc/pxa/corgi.c struct snd_soc_card *card = &corgi; card 294 sound/soc/pxa/corgi.c card->dev = &pdev->dev; card 296 sound/soc/pxa/corgi.c ret = devm_snd_soc_register_card(&pdev->dev, card); card 127 sound/soc/pxa/e740_wm9705.c struct snd_soc_card *card = &e740; card 135 sound/soc/pxa/e740_wm9705.c card->dev = &pdev->dev; card 137 sound/soc/pxa/e740_wm9705.c ret = devm_snd_soc_register_card(&pdev->dev, card); card 110 sound/soc/pxa/e750_wm9705.c struct snd_soc_card *card = &e750; card 118 sound/soc/pxa/e750_wm9705.c card->dev = &pdev->dev; card 120 sound/soc/pxa/e750_wm9705.c ret = devm_snd_soc_register_card(&pdev->dev, card); card 110 sound/soc/pxa/e800_wm9712.c struct snd_soc_card *card = &e800; card 118 sound/soc/pxa/e800_wm9712.c card->dev = &pdev->dev; card 120 sound/soc/pxa/e800_wm9712.c ret = devm_snd_soc_register_card(&pdev->dev, card); card 125 sound/soc/pxa/hx4700.c err = snd_soc_card_jack_new(rtd->card, "Headphone Jack", card 74 sound/soc/pxa/imote2.c struct snd_soc_card *card = &imote2; card 77 sound/soc/pxa/imote2.c card->dev = &pdev->dev; card 79 sound/soc/pxa/imote2.c ret = devm_snd_soc_register_card(&pdev->dev, card); card 74 sound/soc/pxa/magician.c magician_ext_control(&rtd->card->dapm); card 171 sound/soc/pxa/magician.c struct snd_soc_card *card = snd_kcontrol_chip(kcontrol); card 177 sound/soc/pxa/magician.c magician_ext_control(&card->dapm); card 191 sound/soc/pxa/magician.c struct snd_soc_card *card = snd_kcontrol_chip(kcontrol); card 197 sound/soc/pxa/magician.c magician_ext_control(&card->dapm); card 71 sound/soc/pxa/mioa701_wm9713.c struct snd_soc_card *card = widget->dapm->card; card 75 sound/soc/pxa/mioa701_wm9713.c rtd = snd_soc_get_pcm_runtime(card, card->dai_link[0].name); card 177 sound/soc/pxa/mmp-pcm.c buf->dev.dev = substream->pcm->card->dev; card 74 sound/soc/pxa/palm27x.c err = snd_soc_card_jack_new(rtd->card, "Headphone Jack", card 74 sound/soc/pxa/poodle.c poodle_ext_control(&rtd->card->dapm); card 143 sound/soc/pxa/poodle.c struct snd_soc_card *card = snd_kcontrol_chip(kcontrol); card 149 sound/soc/pxa/poodle.c poodle_ext_control(&card->dapm); card 163 sound/soc/pxa/poodle.c struct snd_soc_card *card = snd_kcontrol_chip(kcontrol); card 169 sound/soc/pxa/poodle.c poodle_ext_control(&card->dapm); card 254 sound/soc/pxa/poodle.c struct snd_soc_card *card = &poodle; card 265 sound/soc/pxa/poodle.c card->dev = &pdev->dev; card 267 sound/soc/pxa/poodle.c ret = devm_snd_soc_register_card(&pdev->dev, card); card 111 sound/soc/pxa/spitz.c spitz_ext_control(&rtd->card->dapm); card 169 sound/soc/pxa/spitz.c struct snd_soc_card *card = snd_kcontrol_chip(kcontrol); card 175 sound/soc/pxa/spitz.c spitz_ext_control(&card->dapm); card 189 sound/soc/pxa/spitz.c struct snd_soc_card *card = snd_kcontrol_chip(kcontrol); card 195 sound/soc/pxa/spitz.c spitz_ext_control(&card->dapm); card 287 sound/soc/pxa/spitz.c struct snd_soc_card *card = &snd_soc_spitz; card 303 sound/soc/pxa/spitz.c card->dev = &pdev->dev; card 305 sound/soc/pxa/spitz.c ret = devm_snd_soc_register_card(&pdev->dev, card); card 78 sound/soc/pxa/tosa.c tosa_ext_control(&rtd->card->dapm); card 97 sound/soc/pxa/tosa.c struct snd_soc_card *card = snd_kcontrol_chip(kcontrol); card 103 sound/soc/pxa/tosa.c tosa_ext_control(&card->dapm); card 117 sound/soc/pxa/tosa.c struct snd_soc_card *card = snd_kcontrol_chip(kcontrol); card 123 sound/soc/pxa/tosa.c tosa_ext_control(&card->dapm); card 222 sound/soc/pxa/tosa.c struct snd_soc_card *card = ⤩ card 230 sound/soc/pxa/tosa.c card->dev = &pdev->dev; card 232 sound/soc/pxa/tosa.c ret = devm_snd_soc_register_card(&pdev->dev, card); card 67 sound/soc/pxa/ttc-dkb.c snd_soc_card_jack_new(rtd->card, "Headphone Jack", SND_JACK_HEADPHONE | card 70 sound/soc/pxa/ttc-dkb.c snd_soc_card_jack_new(rtd->card, "Microphone Jack", SND_JACK_MICROPHONE, card 114 sound/soc/pxa/ttc-dkb.c struct snd_soc_card *card = &ttc_dkb_card; card 117 sound/soc/pxa/ttc-dkb.c card->dev = &pdev->dev; card 119 sound/soc/pxa/ttc-dkb.c ret = devm_snd_soc_register_card(&pdev->dev, card); card 135 sound/soc/pxa/z2.c ret = snd_soc_card_jack_new(rtd->card, "Headset Jack", SND_JACK_HEADSET, card 162 sound/soc/pxa/zylonite.c static int zylonite_probe(struct snd_soc_card *card) card 169 sound/soc/pxa/zylonite.c dev_err(card->dev, "Unable to obtain CLK_POUT: %ld\n", card 176 sound/soc/pxa/zylonite.c dev_err(card->dev, "Unable to enable CLK_POUT: %d\n", card 182 sound/soc/pxa/zylonite.c dev_dbg(card->dev, "MCLK enabled at %luHz\n", card 189 sound/soc/pxa/zylonite.c static int zylonite_remove(struct snd_soc_card *card) card 199 sound/soc/pxa/zylonite.c static int zylonite_suspend_post(struct snd_soc_card *card) card 207 sound/soc/pxa/zylonite.c static int zylonite_resume_pre(struct snd_soc_card *card) card 214 sound/soc/pxa/zylonite.c dev_err(card->dev, "Unable to enable CLK_POUT: %d\n", card 39 sound/soc/qcom/apq8016_sbc.c struct snd_soc_card *card = rtd->card; card 40 sound/soc/qcom/apq8016_sbc.c struct apq8016_sbc_data *pdata = snd_soc_card_get_drvdata(card); card 63 sound/soc/qcom/apq8016_sbc.c dev_err(card->dev, "unsupported cpu dai configuration\n"); card 71 sound/soc/qcom/apq8016_sbc.c rval = snd_soc_card_jack_new(card, "Headset Jack", card 80 sound/soc/qcom/apq8016_sbc.c dev_err(card->dev, "Unable to add Headphone Jack\n"); card 101 sound/soc/qcom/apq8016_sbc.c dev_warn(card->dev, "Failed to set mclk: %d\n", rval); card 106 sound/soc/qcom/apq8016_sbc.c dev_warn(card->dev, "Failed to set jack: %d\n", rval); card 114 sound/soc/qcom/apq8016_sbc.c static struct apq8016_sbc_data *apq8016_sbc_parse_of(struct snd_soc_card *card) card 116 sound/soc/qcom/apq8016_sbc.c struct device *dev = card->dev; card 123 sound/soc/qcom/apq8016_sbc.c ret = snd_soc_of_parse_card_name(card, "qcom,model"); card 131 sound/soc/qcom/apq8016_sbc.c ret = snd_soc_of_parse_audio_routing(card, card 148 sound/soc/qcom/apq8016_sbc.c card->dai_link = &data->dai_link[0]; card 149 sound/soc/qcom/apq8016_sbc.c card->num_links = num_links; card 175 sound/soc/qcom/apq8016_sbc.c dev_err(card->dev, "error getting cpu phandle\n"); card 182 sound/soc/qcom/apq8016_sbc.c dev_err(card->dev, "error getting cpu dai name\n"); card 189 sound/soc/qcom/apq8016_sbc.c dev_err(card->dev, "error getting codec dai name\n"); card 196 sound/soc/qcom/apq8016_sbc.c dev_err(card->dev, "error getting codec dai_link name\n"); card 229 sound/soc/qcom/apq8016_sbc.c struct snd_soc_card *card; card 233 sound/soc/qcom/apq8016_sbc.c card = devm_kzalloc(dev, sizeof(*card), GFP_KERNEL); card 234 sound/soc/qcom/apq8016_sbc.c if (!card) card 237 sound/soc/qcom/apq8016_sbc.c card->dev = dev; card 238 sound/soc/qcom/apq8016_sbc.c card->dapm_widgets = apq8016_sbc_dapm_widgets; card 239 sound/soc/qcom/apq8016_sbc.c card->num_dapm_widgets = ARRAY_SIZE(apq8016_sbc_dapm_widgets); card 240 sound/soc/qcom/apq8016_sbc.c data = apq8016_sbc_parse_of(card); card 257 sound/soc/qcom/apq8016_sbc.c snd_soc_card_set_drvdata(card, data); card 259 sound/soc/qcom/apq8016_sbc.c return devm_snd_soc_register_card(&pdev->dev, card); card 92 sound/soc/qcom/apq8096.c static void apq8096_add_be_ops(struct snd_soc_card *card) card 97 sound/soc/qcom/apq8096.c for_each_card_prelinks(card, i, link) { card 108 sound/soc/qcom/apq8096.c struct snd_soc_card *card; card 112 sound/soc/qcom/apq8096.c card = kzalloc(sizeof(*card), GFP_KERNEL); card 113 sound/soc/qcom/apq8096.c if (!card) card 116 sound/soc/qcom/apq8096.c card->dev = dev; card 117 sound/soc/qcom/apq8096.c dev_set_drvdata(dev, card); card 118 sound/soc/qcom/apq8096.c ret = qcom_snd_parse_of(card); card 124 sound/soc/qcom/apq8096.c apq8096_add_be_ops(card); card 125 sound/soc/qcom/apq8096.c ret = snd_soc_register_card(card); card 132 sound/soc/qcom/apq8096.c kfree(card->dai_link); card 134 sound/soc/qcom/apq8096.c kfree(card); card 140 sound/soc/qcom/apq8096.c struct snd_soc_card *card = dev_get_drvdata(&pdev->dev); card 142 sound/soc/qcom/apq8096.c snd_soc_unregister_card(card); card 143 sound/soc/qcom/apq8096.c kfree(card->dai_link); card 144 sound/soc/qcom/apq8096.c kfree(card); card 8 sound/soc/qcom/common.c int qcom_snd_parse_of(struct snd_soc_card *card) card 14 sound/soc/qcom/common.c struct device *dev = card->dev; card 20 sound/soc/qcom/common.c ret = snd_soc_of_parse_card_name(card, "model"); card 28 sound/soc/qcom/common.c ret = snd_soc_of_parse_audio_routing(card, card 38 sound/soc/qcom/common.c card->dai_link = kcalloc(num_links, sizeof(*link), GFP_KERNEL); card 39 sound/soc/qcom/common.c if (!card->dai_link) card 42 sound/soc/qcom/common.c card->num_links = num_links; card 43 sound/soc/qcom/common.c link = card->dai_link; card 58 sound/soc/qcom/common.c dev_err(card->dev, "error getting codec dai_link name\n"); card 75 sound/soc/qcom/common.c dev_err(card->dev, "%s: error getting cpu phandle\n", link->name); card 83 sound/soc/qcom/common.c dev_err(card->dev, "%s: error getting cpu dai name\n", link->name); card 92 sound/soc/qcom/common.c dev_err(card->dev, "%s: platform dai not found\n", link->name); card 99 sound/soc/qcom/common.c dev_err(card->dev, "%s: codec dai not found\n", link->name); card 136 sound/soc/qcom/common.c kfree(card->dai_link); card 9 sound/soc/qcom/common.h int qcom_snd_parse_of(struct snd_soc_card *card); card 403 sound/soc/qcom/lpass-platform.c return dma_mmap_coherent(substream->pcm->card->dev, vma, card 31 sound/soc/qcom/sdm845.c struct snd_soc_card *card; card 171 sound/soc/qcom/sdm845.c struct snd_soc_card *card = rtd->card; card 174 sound/soc/qcom/sdm845.c struct sdm845_snd_data *pdata = snd_soc_card_get_drvdata(card); card 179 sound/soc/qcom/sdm845.c rval = snd_soc_card_jack_new(card, "Headset Jack", card 187 sound/soc/qcom/sdm845.c dev_err(card->dev, "Unable to add Headphone Jack\n"); card 210 sound/soc/qcom/sdm845.c dev_warn(card->dev, "Failed to set jack: %d\n", rval); card 227 sound/soc/qcom/sdm845.c struct snd_soc_card *card = rtd->card; card 228 sound/soc/qcom/sdm845.c struct sdm845_snd_data *data = snd_soc_card_get_drvdata(card); card 308 sound/soc/qcom/sdm845.c struct snd_soc_card *card = rtd->card; card 309 sound/soc/qcom/sdm845.c struct sdm845_snd_data *data = snd_soc_card_get_drvdata(card); card 378 sound/soc/qcom/sdm845.c static void sdm845_add_ops(struct snd_soc_card *card) card 383 sound/soc/qcom/sdm845.c for_each_card_prelinks(card, i, link) { card 394 sound/soc/qcom/sdm845.c struct snd_soc_card *card; card 399 sound/soc/qcom/sdm845.c card = kzalloc(sizeof(*card), GFP_KERNEL); card 400 sound/soc/qcom/sdm845.c if (!card) card 410 sound/soc/qcom/sdm845.c card->dapm_widgets = sdm845_snd_widgets; card 411 sound/soc/qcom/sdm845.c card->num_dapm_widgets = ARRAY_SIZE(sdm845_snd_widgets); card 412 sound/soc/qcom/sdm845.c card->dev = dev; card 413 sound/soc/qcom/sdm845.c dev_set_drvdata(dev, card); card 414 sound/soc/qcom/sdm845.c ret = qcom_snd_parse_of(card); card 420 sound/soc/qcom/sdm845.c data->card = card; card 421 sound/soc/qcom/sdm845.c snd_soc_card_set_drvdata(card, data); card 423 sound/soc/qcom/sdm845.c sdm845_add_ops(card); card 424 sound/soc/qcom/sdm845.c ret = snd_soc_register_card(card); card 432 sound/soc/qcom/sdm845.c kfree(card->dai_link); card 436 sound/soc/qcom/sdm845.c kfree(card); card 442 sound/soc/qcom/sdm845.c struct snd_soc_card *card = dev_get_drvdata(&pdev->dev); card 443 sound/soc/qcom/sdm845.c struct sdm845_snd_data *data = snd_soc_card_get_drvdata(card); card 445 sound/soc/qcom/sdm845.c snd_soc_unregister_card(card); card 446 sound/soc/qcom/sdm845.c kfree(card->dai_link); card 448 sound/soc/qcom/sdm845.c kfree(card); card 23 sound/soc/qcom/storm.c struct snd_soc_card *card = soc_runtime->card; card 31 sound/soc/qcom/storm.c dev_err(card->dev, "invalid bit width given: %d\n", bitwidth); card 44 sound/soc/qcom/storm.c dev_err(card->dev, "error setting sysclk to %u: %d\n", card 68 sound/soc/qcom/storm.c static int storm_parse_of(struct snd_soc_card *card) card 70 sound/soc/qcom/storm.c struct snd_soc_dai_link *dai_link = card->dai_link; card 71 sound/soc/qcom/storm.c struct device_node *np = card->dev->of_node; card 75 sound/soc/qcom/storm.c dev_err(card->dev, "error getting cpu phandle\n"); card 82 sound/soc/qcom/storm.c dev_err(card->dev, "error getting codec phandle\n"); card 91 sound/soc/qcom/storm.c struct snd_soc_card *card; card 94 sound/soc/qcom/storm.c card = devm_kzalloc(&pdev->dev, sizeof(*card), GFP_KERNEL); card 95 sound/soc/qcom/storm.c if (!card) card 98 sound/soc/qcom/storm.c card->dev = &pdev->dev; card 100 sound/soc/qcom/storm.c ret = snd_soc_of_parse_card_name(card, "qcom,model"); card 106 sound/soc/qcom/storm.c card->dai_link = &storm_dai_link; card 107 sound/soc/qcom/storm.c card->num_links = 1; card 109 sound/soc/qcom/storm.c ret = storm_parse_of(card); card 115 sound/soc/qcom/storm.c ret = devm_snd_soc_register_card(&pdev->dev, card); card 36 sound/soc/rockchip/rk3288_hdmi_analog.c struct rk_drvdata *machine = snd_soc_card_get_drvdata(w->dapm->card); card 123 sound/soc/rockchip/rk3288_hdmi_analog.c struct rk_drvdata *machine = snd_soc_card_get_drvdata(runtime->card); card 127 sound/soc/rockchip/rk3288_hdmi_analog.c snd_soc_card_jack_new(runtime->card, "Headphone Jack", card 173 sound/soc/rockchip/rk3288_hdmi_analog.c struct snd_soc_card *card = &snd_soc_card_rk; card 183 sound/soc/rockchip/rk3288_hdmi_analog.c card->dev = &pdev->dev; card 199 sound/soc/rockchip/rk3288_hdmi_analog.c dev_err(card->dev, "cannot get hp_en gpio\n"); card 204 sound/soc/rockchip/rk3288_hdmi_analog.c ret = snd_soc_of_parse_card_name(card, "rockchip,model"); card 206 sound/soc/rockchip/rk3288_hdmi_analog.c dev_err(card->dev, "SoC parse card name failed %d\n", ret); card 242 sound/soc/rockchip/rk3288_hdmi_analog.c ret = snd_soc_of_parse_audio_routing(card, "rockchip,routing"); card 249 sound/soc/rockchip/rk3288_hdmi_analog.c snd_soc_card_set_drvdata(card, machine); card 251 sound/soc/rockchip/rk3288_hdmi_analog.c ret = devm_snd_soc_register_card(&pdev->dev, card); card 62 sound/soc/rockchip/rk3399_gru_sound.c dev_err(rtd->card->dev, "%s() error setting sysclk to %u: %d\n", card 84 sound/soc/rockchip/rk3399_gru_sound.c dev_err(rtd->card->dev, "Can't set cpu clock out %d\n", ret); card 91 sound/soc/rockchip/rk3399_gru_sound.c dev_err(rtd->card->dev, "%s() error setting sysclk to %u: %d\n", card 175 sound/soc/rockchip/rk3399_gru_sound.c ret = snd_soc_card_jack_new(rtd->card, "Headset Jack", card 182 sound/soc/rockchip/rk3399_gru_sound.c dev_err(rtd->card->dev, "New Headset Jack failed! (%d)\n", ret); card 211 sound/soc/rockchip/rk3399_gru_sound.c dev_err(rtd->card->dev, "%s() error setting sysclk to %u: %d\n", card 449 sound/soc/rockchip/rk3399_gru_sound.c struct snd_soc_card *card) card 458 sound/soc/rockchip/rk3399_gru_sound.c card->dai_link = devm_kzalloc(dev, sizeof(rockchip_dais), card 460 sound/soc/rockchip/rk3399_gru_sound.c if (!card->dai_link) card 470 sound/soc/rockchip/rk3399_gru_sound.c card->dapm_routes = routes; card 475 sound/soc/rockchip/rk3399_gru_sound.c card->num_dapm_routes = 0; card 476 sound/soc/rockchip/rk3399_gru_sound.c card->num_links = 0; card 508 sound/soc/rockchip/rk3399_gru_sound.c dai = &card->dai_link[card->num_links++]; card 516 sound/soc/rockchip/rk3399_gru_sound.c if (card->num_dapm_routes + rockchip_routes[index].num_routes > card 522 sound/soc/rockchip/rk3399_gru_sound.c memcpy(routes + card->num_dapm_routes, card 525 sound/soc/rockchip/rk3399_gru_sound.c card->num_dapm_routes += rockchip_routes[index].num_routes; card 533 sound/soc/rockchip/rk3399_gru_sound.c struct snd_soc_card *card = &rockchip_sound_card; card 536 sound/soc/rockchip/rk3399_gru_sound.c ret = rockchip_sound_of_parse_dais(&pdev->dev, card); card 551 sound/soc/rockchip/rk3399_gru_sound.c card->dev = &pdev->dev; card 552 sound/soc/rockchip/rk3399_gru_sound.c return devm_snd_soc_register_card(&pdev->dev, card); card 67 sound/soc/rockchip/rockchip_max98090.c struct snd_soc_dapm_context *dapm = &jack->card->dapm; card 219 sound/soc/rockchip/rockchip_max98090.c struct snd_soc_card *card = &snd_soc_card_rk; card 223 sound/soc/rockchip/rockchip_max98090.c card->dev = &pdev->dev; card 251 sound/soc/rockchip/rockchip_max98090.c ret = snd_soc_of_parse_card_name(card, "rockchip,model"); card 258 sound/soc/rockchip/rockchip_max98090.c ret = devm_snd_soc_register_card(&pdev->dev, card); card 102 sound/soc/rockchip/rockchip_rt5645.c struct snd_soc_card *card = runtime->card; card 106 sound/soc/rockchip/rockchip_rt5645.c ret = snd_soc_card_jack_new(card, "Headset Jack", card 112 sound/soc/rockchip/rockchip_rt5645.c dev_err(card->dev, "New Headset Jack failed! (%d)\n", ret); card 158 sound/soc/rockchip/rockchip_rt5645.c struct snd_soc_card *card = &snd_soc_card_rk; card 162 sound/soc/rockchip/rockchip_rt5645.c card->dev = &pdev->dev; card 183 sound/soc/rockchip/rockchip_rt5645.c ret = snd_soc_of_parse_card_name(card, "rockchip,model"); card 190 sound/soc/rockchip/rockchip_rt5645.c ret = devm_snd_soc_register_card(&pdev->dev, card); card 78 sound/soc/samsung/arndale_rt5631.c static void arndale_put_of_nodes(struct snd_soc_card *card) card 83 sound/soc/samsung/arndale_rt5631.c for_each_card_prelinks(card, i, dai_link) { card 93 sound/soc/samsung/arndale_rt5631.c struct snd_soc_card *card = &arndale_rt5631; card 95 sound/soc/samsung/arndale_rt5631.c card->dev = &pdev->dev; card 123 sound/soc/samsung/arndale_rt5631.c ret = devm_snd_soc_register_card(card->dev, card); card 131 sound/soc/samsung/arndale_rt5631.c arndale_put_of_nodes(card); card 137 sound/soc/samsung/arndale_rt5631.c struct snd_soc_card *card = platform_get_drvdata(pdev); card 139 sound/soc/samsung/arndale_rt5631.c arndale_put_of_nodes(card); card 52 sound/soc/samsung/bells.c static int bells_set_bias_level(struct snd_soc_card *card, card 59 sound/soc/samsung/bells.c struct bells_drvdata *bells = card->drvdata; card 62 sound/soc/samsung/bells.c rtd = snd_soc_get_pcm_runtime(card, card->dai_link[DAI_DSP_CODEC].name); card 98 sound/soc/samsung/bells.c static int bells_set_bias_level_post(struct snd_soc_card *card, card 105 sound/soc/samsung/bells.c struct bells_drvdata *bells = card->drvdata; card 108 sound/soc/samsung/bells.c rtd = snd_soc_get_pcm_runtime(card, card->dai_link[DAI_DSP_CODEC].name); card 142 sound/soc/samsung/bells.c static int bells_late_probe(struct snd_soc_card *card) card 144 sound/soc/samsung/bells.c struct bells_drvdata *bells = card->drvdata; card 154 sound/soc/samsung/bells.c rtd = snd_soc_get_pcm_runtime(card, card->dai_link[DAI_AP_DSP].name); card 157 sound/soc/samsung/bells.c rtd = snd_soc_get_pcm_runtime(card, card->dai_link[DAI_DSP_CODEC].name); card 185 sound/soc/samsung/bells.c if (card->num_rtd == DAI_CODEC_CP) card 197 sound/soc/samsung/bells.c rtd = snd_soc_get_pcm_runtime(card, card->dai_link[DAI_CODEC_CP].name); card 206 sound/soc/samsung/bells.c if (card->num_rtd == DAI_CODEC_SUB) card 209 sound/soc/samsung/bells.c rtd = snd_soc_get_pcm_runtime(card, card->dai_link[DAI_CODEC_SUB].name); card 158 sound/soc/samsung/h1940_uda1380.c snd_soc_card_jack_new(rtd->card, "Headphone Jack", SND_JACK_HEADPHONE, card 358 sound/soc/samsung/idma.c buf->dev.dev = pcm->card->dev; card 372 sound/soc/samsung/idma.c struct snd_card *card = rtd->card->snd_card; card 376 sound/soc/samsung/idma.c ret = dma_coerce_mask_and_coherent(card->dev, DMA_BIT_MASK(32)); card 17 sound/soc/samsung/littlemill.c static int littlemill_set_bias_level(struct snd_soc_card *card, card 25 sound/soc/samsung/littlemill.c rtd = snd_soc_get_pcm_runtime(card, card->dai_link[0].name); card 64 sound/soc/samsung/littlemill.c static int littlemill_set_bias_level_post(struct snd_soc_card *card, card 72 sound/soc/samsung/littlemill.c rtd = snd_soc_get_pcm_runtime(card, card->dai_link[0].name); card 178 sound/soc/samsung/littlemill.c struct snd_soc_card *card = w->dapm->card; card 183 sound/soc/samsung/littlemill.c rtd = snd_soc_get_pcm_runtime(card, card->dai_link[1].name); card 258 sound/soc/samsung/littlemill.c static int littlemill_late_probe(struct snd_soc_card *card) card 266 sound/soc/samsung/littlemill.c rtd = snd_soc_get_pcm_runtime(card, card->dai_link[0].name); card 270 sound/soc/samsung/littlemill.c rtd = snd_soc_get_pcm_runtime(card, card->dai_link[1].name); card 283 sound/soc/samsung/littlemill.c ret = snd_soc_card_jack_new(card, "Headset", card 322 sound/soc/samsung/littlemill.c struct snd_soc_card *card = &littlemill; card 325 sound/soc/samsung/littlemill.c card->dev = &pdev->dev; card 327 sound/soc/samsung/littlemill.c ret = devm_snd_soc_register_card(&pdev->dev, card); card 54 sound/soc/samsung/lowland.c ret = snd_soc_card_jack_new(rtd->card, "Headset", SND_JACK_LINEOUT | card 70 sound/soc/samsung/lowland.c snd_soc_dapm_nc_pin(&rtd->card->dapm, "LINEOUT"); card 180 sound/soc/samsung/lowland.c struct snd_soc_card *card = &lowland; card 183 sound/soc/samsung/lowland.c card->dev = &pdev->dev; card 185 sound/soc/samsung/lowland.c ret = devm_snd_soc_register_card(&pdev->dev, card); card 248 sound/soc/samsung/neo1973_wm8753.c struct snd_soc_card *card = rtd->card; card 251 sound/soc/samsung/neo1973_wm8753.c snd_soc_dapm_disable_pin(&card->dapm, "GSM Line Out"); card 252 sound/soc/samsung/neo1973_wm8753.c snd_soc_dapm_disable_pin(&card->dapm, "GSM Line In"); card 253 sound/soc/samsung/neo1973_wm8753.c snd_soc_dapm_disable_pin(&card->dapm, "Headset Mic"); card 254 sound/soc/samsung/neo1973_wm8753.c snd_soc_dapm_disable_pin(&card->dapm, "Handset Mic"); card 255 sound/soc/samsung/neo1973_wm8753.c snd_soc_dapm_disable_pin(&card->dapm, "Stereo Out"); card 256 sound/soc/samsung/neo1973_wm8753.c snd_soc_dapm_disable_pin(&card->dapm, "Handset Spk"); card 259 sound/soc/samsung/neo1973_wm8753.c snd_soc_dapm_ignore_suspend(&card->dapm, "GSM Line Out"); card 260 sound/soc/samsung/neo1973_wm8753.c snd_soc_dapm_ignore_suspend(&card->dapm, "GSM Line In"); card 261 sound/soc/samsung/neo1973_wm8753.c snd_soc_dapm_ignore_suspend(&card->dapm, "Headset Mic"); card 262 sound/soc/samsung/neo1973_wm8753.c snd_soc_dapm_ignore_suspend(&card->dapm, "Handset Mic"); card 263 sound/soc/samsung/neo1973_wm8753.c snd_soc_dapm_ignore_suspend(&card->dapm, "Stereo Out"); card 264 sound/soc/samsung/neo1973_wm8753.c snd_soc_dapm_ignore_suspend(&card->dapm, "Handset Spk"); card 16 sound/soc/samsung/odroid.c struct snd_soc_card card; card 39 sound/soc/samsung/odroid.c struct odroid_priv *priv = snd_soc_card_get_drvdata(rtd->card); card 60 sound/soc/samsung/odroid.c struct odroid_priv *priv = snd_soc_card_get_drvdata(rtd->card); card 119 sound/soc/samsung/odroid.c struct odroid_priv *priv = snd_soc_card_get_drvdata(rtd->card); card 205 sound/soc/samsung/odroid.c struct snd_soc_card *card; card 214 sound/soc/samsung/odroid.c card = &priv->card; card 215 sound/soc/samsung/odroid.c card->dev = dev; card 217 sound/soc/samsung/odroid.c card->owner = THIS_MODULE; card 218 sound/soc/samsung/odroid.c card->fully_routed = true; card 221 sound/soc/samsung/odroid.c snd_soc_card_set_drvdata(card, priv); card 223 sound/soc/samsung/odroid.c ret = snd_soc_of_parse_card_name(card, "model"); card 228 sound/soc/samsung/odroid.c ret = snd_soc_of_parse_audio_simple_widgets(card, card 235 sound/soc/samsung/odroid.c ret = snd_soc_of_parse_audio_routing(card, card 241 sound/soc/samsung/odroid.c card->dai_link = odroid_card_dais; card 242 sound/soc/samsung/odroid.c card->num_links = ARRAY_SIZE(odroid_card_dais); card 246 sound/soc/samsung/odroid.c link = card->dai_link; card 247 sound/soc/samsung/odroid.c codec_link = &card->dai_link[1]; card 257 sound/soc/samsung/odroid.c card->dapm_routes = odroid_dapm_routes; card 258 sound/soc/samsung/odroid.c card->num_dapm_routes = ARRAY_SIZE(odroid_dapm_routes); card 259 sound/soc/samsung/odroid.c card->num_links--; card 296 sound/soc/samsung/odroid.c card->dai_link[0].dpcm_capture = 1; card 297 sound/soc/samsung/odroid.c card->dai_link[1].dpcm_capture = 1; card 312 sound/soc/samsung/odroid.c ret = devm_snd_soc_register_card(dev, card); card 338 sound/soc/samsung/odroid.c snd_soc_of_put_dai_link_codecs(&priv->card.dai_link[1]); card 208 sound/soc/samsung/rx1950_uda1380.c snd_soc_card_jack_new(rtd->card, "Headphone Jack", SND_JACK_HEADPHONE, card 132 sound/soc/samsung/s3c24xx_simtec.c struct snd_soc_card *card = rtd->card; card 137 sound/soc/samsung/s3c24xx_simtec.c snd_soc_add_card_controls(card, amp_unmute_controls, card 143 sound/soc/samsung/s3c24xx_simtec.c snd_soc_add_card_controls(card, amp_gain_controls, card 294 sound/soc/samsung/s3c24xx_simtec.c struct snd_soc_card *card) card 299 sound/soc/samsung/s3c24xx_simtec.c card->dai_link->ops = &simtec_snd_ops; card 300 sound/soc/samsung/s3c24xx_simtec.c card->dai_link->dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | card 330 sound/soc/samsung/s3c24xx_simtec.c platform_set_drvdata(snd_dev, card); card 9 sound/soc/samsung/s3c24xx_simtec.h struct snd_soc_card *card); card 53 sound/soc/samsung/s3c24xx_uda134x.c struct s3c24xx_uda134x *priv = snd_soc_card_get_drvdata(rtd->card); card 105 sound/soc/samsung/s3c24xx_uda134x.c struct s3c24xx_uda134x *priv = snd_soc_card_get_drvdata(rtd->card); card 227 sound/soc/samsung/s3c24xx_uda134x.c struct snd_soc_card *card = &snd_soc_s3c24xx_uda134x; card 237 sound/soc/samsung/s3c24xx_uda134x.c card->dev = &pdev->dev; card 238 sound/soc/samsung/s3c24xx_uda134x.c snd_soc_card_set_drvdata(card, priv); card 240 sound/soc/samsung/s3c24xx_uda134x.c ret = devm_snd_soc_register_card(&pdev->dev, card); card 132 sound/soc/samsung/smartq_wm8987.c struct snd_soc_dapm_context *dapm = &rtd->card->dapm; card 142 sound/soc/samsung/smartq_wm8987.c err = snd_soc_card_jack_new(rtd->card, "Headphone Jack", card 130 sound/soc/samsung/smdk_wm8580.c snd_soc_dapm_disable_pin(&rtd->card->dapm, "MicIn"); card 82 sound/soc/samsung/smdk_wm8994.c struct snd_soc_dapm_context *dapm = &rtd->card->dapm; card 149 sound/soc/samsung/smdk_wm8994.c struct snd_soc_card *card = &smdk; card 153 sound/soc/samsung/smdk_wm8994.c card->dev = &pdev->dev; card 179 sound/soc/samsung/smdk_wm8994.c ret = devm_snd_soc_register_card(&pdev->dev, card); card 34 sound/soc/samsung/snow.c struct snow_priv *priv = snd_soc_card_get_drvdata(rtd->card); card 42 sound/soc/samsung/snow.c dev_err(rtd->card->dev, "Invalid bit-width: %d\n", bitwidth); card 47 sound/soc/samsung/snow.c dev_err(rtd->card->dev, "Unsupported bit-width: %d\n", bitwidth); card 87 sound/soc/samsung/snow.c dev_err(rtd->card->dev, "Unsupported RCLK rate: %lu\n", rclk); card 93 sound/soc/samsung/snow.c dev_err(rtd->card->dev, "I2S bus clock rate set failed\n"); card 104 sound/soc/samsung/snow.c static int snow_late_probe(struct snd_soc_card *card) card 109 sound/soc/samsung/snow.c rtd = snd_soc_get_pcm_runtime(card, card->dai_link[0].name); card 131 sound/soc/samsung/snow.c struct snd_soc_card *card = &snow_snd; card 156 sound/soc/samsung/snow.c card->dai_link = link; card 157 sound/soc/samsung/snow.c card->num_links = 1; card 158 sound/soc/samsung/snow.c card->dev = dev; card 213 sound/soc/samsung/snow.c snd_soc_of_parse_card_name(card, "samsung,model"); card 215 sound/soc/samsung/snow.c snd_soc_card_set_drvdata(card, priv); card 217 sound/soc/samsung/snow.c ret = devm_snd_soc_register_card(dev, card); card 19 sound/soc/samsung/speyside.c static int speyside_set_bias_level(struct snd_soc_card *card, card 27 sound/soc/samsung/speyside.c rtd = snd_soc_get_pcm_runtime(card, card->dai_link[1].name); card 55 sound/soc/samsung/speyside.c static int speyside_set_bias_level_post(struct snd_soc_card *card, card 63 sound/soc/samsung/speyside.c rtd = snd_soc_get_pcm_runtime(card, card->dai_link[1].name); card 71 sound/soc/samsung/speyside.c if (card->dapm.bias_level == SND_SOC_BIAS_STANDBY) { card 93 sound/soc/samsung/speyside.c card->dapm.bias_level = level; card 159 sound/soc/samsung/speyside.c ret = snd_soc_card_jack_new(rtd->card, "Headset", SND_JACK_LINEOUT | card 171 sound/soc/samsung/speyside.c static int speyside_late_probe(struct snd_soc_card *card) card 173 sound/soc/samsung/speyside.c snd_soc_dapm_ignore_suspend(&card->dapm, "Headphone"); card 174 sound/soc/samsung/speyside.c snd_soc_dapm_ignore_suspend(&card->dapm, "Headset Mic"); card 175 sound/soc/samsung/speyside.c snd_soc_dapm_ignore_suspend(&card->dapm, "Main AMIC"); card 176 sound/soc/samsung/speyside.c snd_soc_dapm_ignore_suspend(&card->dapm, "Main DMIC"); card 177 sound/soc/samsung/speyside.c snd_soc_dapm_ignore_suspend(&card->dapm, "Main Speaker"); card 178 sound/soc/samsung/speyside.c snd_soc_dapm_ignore_suspend(&card->dapm, "WM1250 Output"); card 179 sound/soc/samsung/speyside.c snd_soc_dapm_ignore_suspend(&card->dapm, "WM1250 Input"); card 327 sound/soc/samsung/speyside.c struct snd_soc_card *card = &speyside; card 330 sound/soc/samsung/speyside.c card->dev = &pdev->dev; card 332 sound/soc/samsung/speyside.c ret = devm_snd_soc_register_card(&pdev->dev, card); card 34 sound/soc/samsung/tm2_wm5110.c static int tm2_start_sysclk(struct snd_soc_card *card) card 36 sound/soc/samsung/tm2_wm5110.c struct tm2_machine_priv *priv = snd_soc_card_get_drvdata(card); card 70 sound/soc/samsung/tm2_wm5110.c static int tm2_stop_sysclk(struct snd_soc_card *card) card 72 sound/soc/samsung/tm2_wm5110.c struct tm2_machine_priv *priv = snd_soc_card_get_drvdata(card); card 97 sound/soc/samsung/tm2_wm5110.c struct tm2_machine_priv *priv = snd_soc_card_get_drvdata(rtd->card); card 126 sound/soc/samsung/tm2_wm5110.c return tm2_start_sysclk(rtd->card); card 218 sound/soc/samsung/tm2_wm5110.c dev_err(rtd->card->dev, "Invalid bit-width: %d\n", bitwidth); card 230 sound/soc/samsung/tm2_wm5110.c dev_err(rtd->card->dev, "Unsupported bit-width: %d\n", bitwidth); card 240 sound/soc/samsung/tm2_wm5110.c dev_err(rtd->card->dev, "Unsupported sample rate: %d\n", card 264 sound/soc/samsung/tm2_wm5110.c struct snd_soc_card *card = w->dapm->card; card 265 sound/soc/samsung/tm2_wm5110.c struct tm2_machine_priv *priv = snd_soc_card_get_drvdata(card); card 279 sound/soc/samsung/tm2_wm5110.c static int tm2_set_bias_level(struct snd_soc_card *card, card 285 sound/soc/samsung/tm2_wm5110.c rtd = snd_soc_get_pcm_runtime(card, card->dai_link[0].name); card 292 sound/soc/samsung/tm2_wm5110.c if (card->dapm.bias_level == SND_SOC_BIAS_OFF) card 293 sound/soc/samsung/tm2_wm5110.c tm2_start_sysclk(card); card 296 sound/soc/samsung/tm2_wm5110.c tm2_stop_sysclk(card); card 307 sound/soc/samsung/tm2_wm5110.c static int tm2_late_probe(struct snd_soc_card *card) card 309 sound/soc/samsung/tm2_wm5110.c struct tm2_machine_priv *priv = snd_soc_card_get_drvdata(card); card 317 sound/soc/samsung/tm2_wm5110.c rtd = snd_soc_get_pcm_runtime(card, card->dai_link[TM2_DAI_AIF1].name); card 327 sound/soc/samsung/tm2_wm5110.c rtd = snd_soc_get_pcm_runtime(card, card->dai_link[TM2_DAI_AIF2].name); card 502 sound/soc/samsung/tm2_wm5110.c struct snd_soc_card *card = &tm2_card; card 512 sound/soc/samsung/tm2_wm5110.c snd_soc_card_set_drvdata(card, priv); card 513 sound/soc/samsung/tm2_wm5110.c card->dev = dev; card 521 sound/soc/samsung/tm2_wm5110.c ret = snd_soc_of_parse_card_name(card, "model"); card 527 sound/soc/samsung/tm2_wm5110.c ret = snd_soc_of_parse_audio_routing(card, "samsung,audio-routing"); card 533 sound/soc/samsung/tm2_wm5110.c card->aux_dev[0].dlc.of_node = of_parse_phandle(dev->of_node, card 535 sound/soc/samsung/tm2_wm5110.c if (!card->aux_dev[0].dlc.of_node) { card 545 sound/soc/samsung/tm2_wm5110.c card->num_links = ARRAY_SIZE(tm2_dai_links); card 548 sound/soc/samsung/tm2_wm5110.c card->num_links = ARRAY_SIZE(tm2_dai_links) - 1; card 573 sound/soc/samsung/tm2_wm5110.c for_each_card_prelinks(card, i, dai_link) { card 579 sound/soc/samsung/tm2_wm5110.c if (num_codecs > 1 && i == card->num_links - 1) card 589 sound/soc/samsung/tm2_wm5110.c i = card->num_links - 1; card 598 sound/soc/samsung/tm2_wm5110.c ret = snd_soc_get_dai_name(&args, &card->dai_link[i].codecs->dai_name); card 612 sound/soc/samsung/tm2_wm5110.c ret = devm_snd_soc_register_card(dev, card); card 624 sound/soc/samsung/tm2_wm5110.c of_node_put(card->aux_dev[0].dlc.of_node); card 631 sound/soc/samsung/tm2_wm5110.c struct snd_soc_card *card = dev_get_drvdata(dev); card 633 sound/soc/samsung/tm2_wm5110.c return tm2_stop_sysclk(card); card 638 sound/soc/samsung/tm2_wm5110.c struct snd_soc_card *card = dev_get_drvdata(dev); card 640 sound/soc/samsung/tm2_wm5110.c tm2_start_sysclk(card); card 17 sound/soc/samsung/tobermory.c static int tobermory_set_bias_level(struct snd_soc_card *card, card 25 sound/soc/samsung/tobermory.c rtd = snd_soc_get_pcm_runtime(card, card->dai_link[0].name); card 60 sound/soc/samsung/tobermory.c static int tobermory_set_bias_level_post(struct snd_soc_card *card, card 68 sound/soc/samsung/tobermory.c rtd = snd_soc_get_pcm_runtime(card, card->dai_link[0].name); card 176 sound/soc/samsung/tobermory.c static int tobermory_late_probe(struct snd_soc_card *card) card 183 sound/soc/samsung/tobermory.c rtd = snd_soc_get_pcm_runtime(card, card->dai_link[0].name); card 192 sound/soc/samsung/tobermory.c ret = snd_soc_card_jack_new(card, "Headset", SND_JACK_HEADSET | card 226 sound/soc/samsung/tobermory.c struct snd_soc_card *card = &tobermory; card 229 sound/soc/samsung/tobermory.c card->dev = &pdev->dev; card 231 sound/soc/samsung/tobermory.c ret = devm_snd_soc_register_card(&pdev->dev, card); card 1774 sound/soc/sh/fsi.c rtd->card->snd_card->dev, card 1615 sound/soc/sh/rcar/core.c struct snd_card *card = rtd->card->snd_card; card 1632 sound/soc/sh/rcar/core.c list_for_each_entry(kctrl, &card->controls, list) { card 1646 sound/soc/sh/rcar/core.c ret = snd_ctl_add(card, kctrl); card 1655 sound/soc/sh/rcar/core.c cfg->card = card; card 710 sound/soc/sh/rcar/rsnd.h struct snd_card *card; card 129 sound/soc/sh/siu.h to_platform_device(substream->pcm->card->dev); card 175 sound/soc/sh/siu.h int siu_init_port(int port, struct siu_port **port_info, struct snd_card *card); card 99 sound/soc/sh/siu_dai.c dev_dbg(port_info->pcm->card->dev, "%s\n", __func__); card 342 sound/soc/sh/siu_dai.c dev_dbg(port_info->pcm->card->dev, "%s\n", __func__); card 356 sound/soc/sh/siu_dai.c struct device *dev = port_info->pcm->card->dev; card 387 sound/soc/sh/siu_dai.c struct device *dev = port_info->pcm->card->dev; card 450 sound/soc/sh/siu_dai.c int siu_init_port(int port, struct siu_port **port_info, struct snd_card *card) card 452 sound/soc/sh/siu_dai.c struct device *dev = card->dev; card 472 sound/soc/sh/siu_dai.c ret = snd_ctl_add(card, kctrl); card 479 sound/soc/sh/siu_dai.c ret = snd_ctl_add(card, kctrl); card 501 sound/soc/sh/siu_dai.c dev_dbg(substream->pcm->card->dev, "%s: port=%d@%p\n", __func__, card 521 sound/soc/sh/siu_dai.c dev_dbg(substream->pcm->card->dev, "%s: port=%d@%p\n", __func__, card 549 sound/soc/sh/siu_dai.c dev_dbg(substream->pcm->card->dev, card 109 sound/soc/sh/siu_pcm.c struct device *dev = substream->pcm->card->dev; card 157 sound/soc/sh/siu_pcm.c struct device *dev = substream->pcm->card->dev; card 205 sound/soc/sh/siu_pcm.c struct device *dev = substream->pcm->card->dev; card 266 sound/soc/sh/siu_pcm.c struct device *dev = siu_stream->substream->pcm->card->dev; card 288 sound/soc/sh/siu_pcm.c struct device *dev = ss->pcm->card->dev; card 304 sound/soc/sh/siu_pcm.c struct device *dev = ss->pcm->card->dev; card 337 sound/soc/sh/siu_pcm.c struct device *dev = ss->pcm->card->dev; card 373 sound/soc/sh/siu_pcm.c struct device *dev = ss->pcm->card->dev; card 396 sound/soc/sh/siu_pcm.c struct device *dev = ss->pcm->card->dev; card 441 sound/soc/sh/siu_pcm.c struct device *dev = ss->pcm->card->dev; card 482 sound/soc/sh/siu_pcm.c struct device *dev = ss->pcm->card->dev; card 518 sound/soc/sh/siu_pcm.c struct snd_card *card = rtd->card->snd_card; card 521 sound/soc/sh/siu_pcm.c struct platform_device *pdev = to_platform_device(card->dev); card 540 sound/soc/sh/siu_pcm.c ret = siu_init_port(i, port_info, card); card 545 sound/soc/sh/siu_pcm.c SNDRV_DMA_TYPE_DEV, card->dev, card 557 sound/soc/sh/siu_pcm.c dev_info(card->dev, "SuperH SIU driver initialized.\n"); card 563 sound/soc/sh/siu_pcm.c struct platform_device *pdev = to_platform_device(pcm->card->dev); card 571 sound/soc/sh/siu_pcm.c dev_dbg(pcm->card->dev, "%s\n", __func__); card 26 sound/soc/sirf/sirf-audio.c struct snd_soc_card *card = dapm->card; card 27 sound/soc/sirf/sirf-audio.c struct sirf_audio_card *sirf_audio_card = snd_soc_card_get_drvdata(card); card 39 sound/soc/sirf/sirf-audio.c struct snd_soc_card *card = dapm->card; card 40 sound/soc/sirf/sirf-audio.c struct sirf_audio_card *sirf_audio_card = snd_soc_card_get_drvdata(card); card 90 sound/soc/sirf/sirf-audio.c struct snd_soc_card *card = &snd_soc_sirf_audio_card; card 132 sound/soc/sirf/sirf-audio.c card->dev = &pdev->dev; card 133 sound/soc/sirf/sirf-audio.c snd_soc_card_set_drvdata(card, sirf_audio_card); card 135 sound/soc/sirf/sirf-audio.c ret = devm_snd_soc_register_card(&pdev->dev, card); card 189 sound/soc/soc-ac97.c ac97->dev.parent = component->card->dev; card 193 sound/soc/soc-ac97.c component->card->snd_card->number, 0, card 83 sound/soc/soc-compress.c mutex_lock_nested(&rtd->card->pcm_mutex, rtd->card->pcm_subclass); card 111 sound/soc/soc-compress.c mutex_unlock(&rtd->card->pcm_mutex); card 121 sound/soc/soc-compress.c mutex_unlock(&rtd->card->pcm_mutex); card 142 sound/soc/soc-compress.c mutex_lock_nested(&fe->card->mutex, SND_SOC_CARD_CLASS_RUNTIME); card 199 sound/soc/soc-compress.c mutex_unlock(&fe->card->mutex); card 212 sound/soc/soc-compress.c mutex_unlock(&fe->card->mutex); card 227 sound/soc/soc-compress.c mutex_lock_nested(&rtd->card->pcm_mutex, rtd->card->pcm_subclass); card 242 sound/soc/soc-compress.c mutex_unlock(&rtd->card->pcm_mutex); card 252 sound/soc/soc-compress.c mutex_lock_nested(&rtd->card->pcm_mutex, rtd->card->pcm_subclass); card 295 sound/soc/soc-compress.c mutex_unlock(&rtd->card->pcm_mutex); card 306 sound/soc/soc-compress.c mutex_lock_nested(&fe->card->mutex, SND_SOC_CARD_CLASS_RUNTIME); card 344 sound/soc/soc-compress.c mutex_unlock(&fe->card->mutex); card 378 sound/soc/soc-compress.c mutex_lock_nested(&rtd->card->pcm_mutex, rtd->card->pcm_subclass); card 397 sound/soc/soc-compress.c mutex_unlock(&rtd->card->pcm_mutex); card 416 sound/soc/soc-compress.c mutex_lock_nested(&fe->card->mutex, SND_SOC_CARD_CLASS_RUNTIME); card 449 sound/soc/soc-compress.c mutex_unlock(&fe->card->mutex); card 483 sound/soc/soc-compress.c mutex_lock_nested(&rtd->card->pcm_mutex, rtd->card->pcm_subclass); card 517 sound/soc/soc-compress.c mutex_unlock(&rtd->card->pcm_mutex); card 524 sound/soc/soc-compress.c mutex_unlock(&rtd->card->pcm_mutex); card 542 sound/soc/soc-compress.c mutex_lock_nested(&fe->card->mutex, SND_SOC_CARD_CLASS_RUNTIME); card 583 sound/soc/soc-compress.c mutex_unlock(&fe->card->mutex); card 596 sound/soc/soc-compress.c mutex_lock_nested(&rtd->card->pcm_mutex, rtd->card->pcm_subclass); card 616 sound/soc/soc-compress.c mutex_unlock(&rtd->card->pcm_mutex); card 628 sound/soc/soc-compress.c mutex_lock_nested(&rtd->card->pcm_mutex, rtd->card->pcm_subclass); card 641 sound/soc/soc-compress.c mutex_unlock(&rtd->card->pcm_mutex); card 653 sound/soc/soc-compress.c mutex_lock_nested(&rtd->card->pcm_mutex, rtd->card->pcm_subclass); card 667 sound/soc/soc-compress.c mutex_unlock(&rtd->card->pcm_mutex); card 679 sound/soc/soc-compress.c mutex_lock_nested(&rtd->card->pcm_mutex, rtd->card->pcm_subclass); card 700 sound/soc/soc-compress.c mutex_unlock(&rtd->card->pcm_mutex); card 713 sound/soc/soc-compress.c mutex_lock_nested(&rtd->card->pcm_mutex, rtd->card->pcm_subclass); card 729 sound/soc/soc-compress.c mutex_unlock(&rtd->card->pcm_mutex); card 741 sound/soc/soc-compress.c mutex_lock_nested(&rtd->card->pcm_mutex, rtd->card->pcm_subclass); card 754 sound/soc/soc-compress.c mutex_unlock(&rtd->card->pcm_mutex); card 869 sound/soc/soc-compress.c dev_err(rtd->card->dev, card 887 sound/soc/soc-compress.c dev_err(rtd->card->dev, card 898 sound/soc/soc-compress.c compr = devm_kzalloc(rtd->card->dev, sizeof(*compr), GFP_KERNEL); card 902 sound/soc/soc-compress.c compr->ops = devm_kzalloc(rtd->card->dev, sizeof(soc_compr_ops), card 911 sound/soc/soc-compress.c ret = snd_pcm_new_internal(rtd->card->snd_card, new_name, num, card 915 sound/soc/soc-compress.c dev_err(rtd->card->dev, card 947 sound/soc/soc-compress.c ret = snd_compress_new(rtd->card->snd_card, num, direction, card 963 sound/soc/soc-compress.c dev_info(rtd->card->dev, "Compress ASoC: %s <-> %s mapping ok\n", card 152 sound/soc/soc-core.c if (!component->card->debugfs_card_root) card 162 sound/soc/soc-core.c component->card->debugfs_card_root); card 167 sound/soc/soc-core.c component->card->debugfs_card_root); card 214 sound/soc/soc-core.c static void soc_init_card_debugfs(struct snd_soc_card *card) card 216 sound/soc/soc-core.c card->debugfs_card_root = debugfs_create_dir(card->name, card 219 sound/soc/soc-core.c debugfs_create_u32("dapm_pop_time", 0644, card->debugfs_card_root, card 220 sound/soc/soc-core.c &card->pop_time); card 222 sound/soc/soc-core.c snd_soc_dapm_debugfs_init(&card->dapm, card->debugfs_card_root); card 225 sound/soc/soc-core.c static void soc_cleanup_card_debugfs(struct snd_soc_card *card) card 227 sound/soc/soc-core.c debugfs_remove_recursive(card->debugfs_card_root); card 228 sound/soc/soc-core.c card->debugfs_card_root = NULL; card 259 sound/soc/soc-core.c static inline void soc_init_card_debugfs(struct snd_soc_card *card) card 263 sound/soc/soc-core.c static inline void soc_cleanup_card_debugfs(struct snd_soc_card *card) card 341 sound/soc/soc-core.c struct snd_pcm_substream *snd_soc_get_dai_substream(struct snd_soc_card *card, card 346 sound/soc/soc-core.c for_each_card_rtds(card, rtd) { card 351 sound/soc/soc-core.c dev_dbg(card->dev, "ASoC: failed to find dai link %s\n", dai_link); card 359 sound/soc/soc-core.c struct snd_soc_card *card, struct snd_soc_dai_link *dai_link) card 368 sound/soc/soc-core.c rtd->card = card; card 391 sound/soc/soc-core.c static void soc_add_pcm_runtime(struct snd_soc_card *card, card 395 sound/soc/soc-core.c list_add_tail(&rtd->list, &card->rtd_list); card 396 sound/soc/soc-core.c rtd->num = card->num_rtd; card 397 sound/soc/soc-core.c card->num_rtd++; card 400 sound/soc/soc-core.c static void soc_remove_pcm_runtimes(struct snd_soc_card *card) card 404 sound/soc/soc-core.c for_each_card_rtds_safe(card, rtd, _rtd) { card 409 sound/soc/soc-core.c card->num_rtd = 0; card 412 sound/soc/soc-core.c struct snd_soc_pcm_runtime *snd_soc_get_pcm_runtime(struct snd_soc_card *card, card 417 sound/soc/soc-core.c for_each_card_rtds(card, rtd) { card 421 sound/soc/soc-core.c dev_dbg(card->dev, "ASoC: failed to find rtd %s\n", dai_link); card 426 sound/soc/soc-core.c static void snd_soc_flush_all_delayed_work(struct snd_soc_card *card) card 430 sound/soc/soc-core.c for_each_card_rtds(card, rtd) card 438 sound/soc/soc-core.c struct snd_soc_card *card = dev_get_drvdata(dev); card 444 sound/soc/soc-core.c if (!card->instantiated) card 451 sound/soc/soc-core.c snd_power_wait(card->snd_card, SNDRV_CTL_POWER_D0); card 454 sound/soc/soc-core.c snd_power_change_state(card->snd_card, SNDRV_CTL_POWER_D3hot); card 457 sound/soc/soc-core.c for_each_card_rtds(card, rtd) { card 471 sound/soc/soc-core.c for_each_card_rtds(card, rtd) { card 478 sound/soc/soc-core.c if (card->suspend_pre) card 479 sound/soc/soc-core.c card->suspend_pre(card); card 481 sound/soc/soc-core.c for_each_card_rtds(card, rtd) { card 492 sound/soc/soc-core.c snd_soc_flush_all_delayed_work(card); card 494 sound/soc/soc-core.c for_each_card_rtds(card, rtd) { card 509 sound/soc/soc-core.c dapm_mark_endpoints_dirty(card); card 510 sound/soc/soc-core.c snd_soc_dapm_sync(&card->dapm); card 513 sound/soc/soc-core.c for_each_card_components(card, component) { card 552 sound/soc/soc-core.c for_each_card_rtds(card, rtd) { card 565 sound/soc/soc-core.c if (card->suspend_post) card 566 sound/soc/soc-core.c card->suspend_post(card); card 578 sound/soc/soc-core.c struct snd_soc_card *card = card 590 sound/soc/soc-core.c dev_dbg(card->dev, "ASoC: starting resume work\n"); card 593 sound/soc/soc-core.c snd_power_change_state(card->snd_card, SNDRV_CTL_POWER_D2); card 595 sound/soc/soc-core.c if (card->resume_pre) card 596 sound/soc/soc-core.c card->resume_pre(card); card 599 sound/soc/soc-core.c for_each_card_rtds(card, rtd) { card 609 sound/soc/soc-core.c for_each_card_components(card, component) { card 614 sound/soc/soc-core.c for_each_card_rtds(card, rtd) { card 629 sound/soc/soc-core.c for_each_card_rtds(card, rtd) { card 642 sound/soc/soc-core.c for_each_card_rtds(card, rtd) { card 652 sound/soc/soc-core.c if (card->resume_post) card 653 sound/soc/soc-core.c card->resume_post(card); card 655 sound/soc/soc-core.c dev_dbg(card->dev, "ASoC: resume work completed\n"); card 658 sound/soc/soc-core.c dapm_mark_endpoints_dirty(card); card 659 sound/soc/soc-core.c snd_soc_dapm_sync(&card->dapm); card 662 sound/soc/soc-core.c snd_power_change_state(card->snd_card, SNDRV_CTL_POWER_D0); card 668 sound/soc/soc-core.c struct snd_soc_card *card = dev_get_drvdata(dev); card 675 sound/soc/soc-core.c if (!card->instantiated) card 679 sound/soc/soc-core.c for_each_card_rtds(card, rtd) { card 697 sound/soc/soc-core.c for_each_card_rtds(card, rtd) { card 704 sound/soc/soc-core.c soc_resume_deferred(&card->deferred_resume_work); card 707 sound/soc/soc-core.c if (!schedule_work(&card->deferred_resume_work)) card 715 sound/soc/soc-core.c static void soc_resume_init(struct snd_soc_card *card) card 718 sound/soc/soc-core.c INIT_WORK(&card->deferred_resume_work, soc_resume_deferred); card 723 sound/soc/soc-core.c static inline void soc_resume_init(struct snd_soc_card *card) card 836 sound/soc/soc-core.c struct snd_soc_dai_link *snd_soc_find_dai_link(struct snd_soc_card *card, card 844 sound/soc/soc-core.c for_each_card_links(card, link) { card 862 sound/soc/soc-core.c static bool soc_is_dai_link_bound(struct snd_soc_card *card, card 867 sound/soc/soc-core.c for_each_card_rtds(card, rtd) { card 875 sound/soc/soc-core.c static int soc_bind_dai_link(struct snd_soc_card *card, card 886 sound/soc/soc-core.c dev_dbg(card->dev, "ASoC: binding %s\n", dai_link->name); card 888 sound/soc/soc-core.c if (soc_is_dai_link_bound(card, dai_link)) { card 889 sound/soc/soc-core.c dev_dbg(card->dev, "ASoC: dai link %s already bound\n", card 894 sound/soc/soc-core.c rtd = soc_new_pcm_runtime(card, dai_link); card 901 sound/soc/soc-core.c dev_info(card->dev, "ASoC: CPU DAI %s not registered\n", card 912 sound/soc/soc-core.c dev_info(card->dev, "ASoC: CODEC DAI %s not registered\n", card 933 sound/soc/soc-core.c soc_add_pcm_runtime(card, rtd); card 952 sound/soc/soc-core.c static void soc_set_name_prefix(struct snd_soc_card *card, card 957 sound/soc/soc-core.c for (i = 0; i < card->num_configs && card->codec_conf; i++) { card 958 sound/soc/soc-core.c struct snd_soc_codec_conf *map = &card->codec_conf[i]; card 984 sound/soc/soc-core.c component->card = NULL; card 990 sound/soc/soc-core.c if (!component->card) card 998 sound/soc/soc-core.c static int soc_probe_component(struct snd_soc_card *card, card 1009 sound/soc/soc-core.c if (component->card) { card 1010 sound/soc/soc-core.c if (component->card != card) { card 1013 sound/soc/soc-core.c card->name, component->card->name); card 1023 sound/soc/soc-core.c component->card = card; card 1024 sound/soc/soc-core.c soc_set_name_prefix(card, component); card 1028 sound/soc/soc-core.c snd_soc_dapm_init(dapm, card, component); card 1080 sound/soc/soc-core.c if (card->disable_route_checks) { card 1081 sound/soc/soc-core.c dev_info(card->dev, card 1085 sound/soc/soc-core.c dev_err(card->dev, card 1093 sound/soc/soc-core.c list_add(&component->card_list, &card->component_dev_list); card 1140 sound/soc/soc-core.c static void soc_remove_link_dais(struct snd_soc_card *card) card 1148 sound/soc/soc-core.c for_each_card_rtds(card, rtd) { card 1162 sound/soc/soc-core.c static int soc_probe_link_dais(struct snd_soc_card *card) card 1169 sound/soc/soc-core.c for_each_card_rtds(card, rtd) { card 1171 sound/soc/soc-core.c dev_dbg(card->dev, card 1173 sound/soc/soc-core.c card->name, rtd->num, order); card 1191 sound/soc/soc-core.c static void soc_remove_link_components(struct snd_soc_card *card) card 1199 sound/soc/soc-core.c for_each_card_rtds(card, rtd) { card 1212 sound/soc/soc-core.c static int soc_probe_link_components(struct snd_soc_card *card) card 1220 sound/soc/soc-core.c for_each_card_rtds(card, rtd) { card 1227 sound/soc/soc-core.c ret = soc_probe_component(card, component); card 1237 sound/soc/soc-core.c static void soc_remove_dai_links(struct snd_soc_card *card) card 1241 sound/soc/soc-core.c soc_remove_link_dais(card); card 1243 sound/soc/soc-core.c soc_remove_link_components(card); card 1245 sound/soc/soc-core.c for_each_card_links_safe(card, link, _link) { card 1247 sound/soc/soc-core.c dev_warn(card->dev, "Topology forgot to remove link %s?\n", card 1254 sound/soc/soc-core.c static int soc_init_dai_link(struct snd_soc_card *card, card 1266 sound/soc/soc-core.c dev_err(card->dev, "ASoC: Neither/both codec name/of_node are set for %s\n", card 1273 sound/soc/soc-core.c dev_err(card->dev, "ASoC: codec_dai_name not set for %s\n", card 1293 sound/soc/soc-core.c dev_err(card->dev, card 1309 sound/soc/soc-core.c dev_err(card->dev, card 1321 sound/soc/soc-core.c dev_err(card->dev, card 1341 sound/soc/soc-core.c dev_err(card->dev, card 1355 sound/soc/soc-core.c if (!component || !component->card) card 1358 sound/soc/soc-core.c snd_card_disconnect_sync(component->card->snd_card); card 1373 sound/soc/soc-core.c int snd_soc_add_dai_link(struct snd_soc_card *card, card 1378 sound/soc/soc-core.c dev_err(card->dev, "Invalid dai link type %d\n", card 1388 sound/soc/soc-core.c if (dai_link->dobj.type && card->add_dai_link) card 1389 sound/soc/soc-core.c card->add_dai_link(card, dai_link); card 1392 sound/soc/soc-core.c list_add_tail(&dai_link->list, &card->dai_link_list); card 1408 sound/soc/soc-core.c void snd_soc_remove_dai_link(struct snd_soc_card *card, card 1413 sound/soc/soc-core.c dev_err(card->dev, "Invalid dai link type %d\n", card 1423 sound/soc/soc-core.c if (dai_link->dobj.type && card->remove_dai_link) card 1424 sound/soc/soc-core.c card->remove_dai_link(card, dai_link); card 1452 sound/soc/soc-core.c rtd->dev->parent = rtd->card->dev; card 1465 sound/soc/soc-core.c dev_err(rtd->card->dev, card 1494 sound/soc/soc-core.c static int soc_link_init(struct snd_soc_card *card, card 1510 sound/soc/soc-core.c dev_err(card->dev, "ASoC: failed to init %s: %d\n", card 1552 sound/soc/soc-core.c dev_err(card->dev, "ASoC: can't create compress %s\n", card 1560 sound/soc/soc-core.c dev_err(card->dev, "ASoC: can't create pcm %s :%d\n", card 1572 sound/soc/soc-core.c static void soc_unbind_aux_dev(struct snd_soc_card *card) card 1576 sound/soc/soc-core.c for_each_card_auxs_safe(card, component, _component) { card 1582 sound/soc/soc-core.c static int soc_bind_aux_dev(struct snd_soc_card *card) card 1588 sound/soc/soc-core.c for_each_card_pre_auxs(card, i, aux) { card 1596 sound/soc/soc-core.c list_add(&component->card_aux_list, &card->aux_comp_list); card 1601 sound/soc/soc-core.c static int soc_probe_aux_devices(struct snd_soc_card *card) card 1608 sound/soc/soc-core.c for_each_card_auxs(card, comp) { card 1610 sound/soc/soc-core.c ret = soc_probe_component(card, comp); card 1612 sound/soc/soc-core.c dev_err(card->dev, card 1624 sound/soc/soc-core.c static void soc_remove_aux_devices(struct snd_soc_card *card) card 1630 sound/soc/soc-core.c for_each_card_auxs_safe(card, comp, _comp) { card 1773 sound/soc/soc-core.c int snd_soc_set_dmi_name(struct snd_soc_card *card, const char *flavour) card 1776 sound/soc/soc-core.c size_t longname_buf_size = sizeof(card->snd_card->longname); card 1779 sound/soc/soc-core.c if (card->long_name) card 1785 sound/soc/soc-core.c dev_warn(card->dev, "ASoC: no DMI vendor name!\n"); card 1789 sound/soc/soc-core.c snprintf(card->dmi_longname, sizeof(card->snd_card->longname), card 1791 sound/soc/soc-core.c cleanup_dmi_name(card->dmi_longname); card 1795 sound/soc/soc-core.c len = strlen(card->dmi_longname); card 1796 sound/soc/soc-core.c snprintf(card->dmi_longname + len, card 1802 sound/soc/soc-core.c cleanup_dmi_name(card->dmi_longname + len); card 1810 sound/soc/soc-core.c len = strlen(card->dmi_longname); card 1811 sound/soc/soc-core.c snprintf(card->dmi_longname + len, card 1817 sound/soc/soc-core.c cleanup_dmi_name(card->dmi_longname + len); card 1823 sound/soc/soc-core.c len = strlen(card->dmi_longname); card 1824 sound/soc/soc-core.c snprintf(card->dmi_longname + len, card 1830 sound/soc/soc-core.c cleanup_dmi_name(card->dmi_longname + len); card 1833 sound/soc/soc-core.c dev_warn(card->dev, "ASoC: no DMI board/product name!\n"); card 1839 sound/soc/soc-core.c len = strlen(card->dmi_longname); card 1840 sound/soc/soc-core.c snprintf(card->dmi_longname + len, card 1846 sound/soc/soc-core.c cleanup_dmi_name(card->dmi_longname + len); card 1850 sound/soc/soc-core.c card->long_name = card->dmi_longname; card 1857 sound/soc/soc-core.c static void soc_check_tplg_fes(struct snd_soc_card *card) card 1872 sound/soc/soc-core.c card->dev->driver->name)) card 1875 sound/soc/soc-core.c dev_name(card->dev))) card 1879 sound/soc/soc-core.c for_each_card_prelinks(card, i, dai_link) { card 1887 sound/soc/soc-core.c dev_info(card->dev, "info: override FE DAI link %s\n", card 1888 sound/soc/soc-core.c card->dai_link[i].name); card 1892 sound/soc/soc-core.c dev_err(card->dev, "init platform error"); card 1918 sound/soc/soc-core.c if (!card->topology_shortname_created) { card 1921 sound/soc/soc-core.c snprintf(card->topology_shortname, 32, "%s-%s", card 1923 sound/soc/soc-core.c card->name); card 1924 sound/soc/soc-core.c card->topology_shortname_created = true; card 1928 sound/soc/soc-core.c card->name = card->topology_shortname; card 1933 sound/soc/soc-core.c static void soc_cleanup_card_resources(struct snd_soc_card *card) card 1936 sound/soc/soc-core.c if (card->snd_card) { card 1937 sound/soc/soc-core.c snd_card_free(card->snd_card); card 1938 sound/soc/soc-core.c card->snd_card = NULL; card 1942 sound/soc/soc-core.c soc_remove_dai_links(card); card 1943 sound/soc/soc-core.c soc_remove_pcm_runtimes(card); card 1946 sound/soc/soc-core.c soc_remove_aux_devices(card); card 1947 sound/soc/soc-core.c soc_unbind_aux_dev(card); card 1949 sound/soc/soc-core.c snd_soc_dapm_free(&card->dapm); card 1950 sound/soc/soc-core.c soc_cleanup_card_debugfs(card); card 1953 sound/soc/soc-core.c if (card->remove) card 1954 sound/soc/soc-core.c card->remove(card); card 1957 sound/soc/soc-core.c static int snd_soc_instantiate_card(struct snd_soc_card *card) card 1964 sound/soc/soc-core.c for_each_card_prelinks(card, i, dai_link) { card 1965 sound/soc/soc-core.c ret = soc_init_dai_link(card, dai_link); card 1967 sound/soc/soc-core.c dev_err(card->dev, "ASoC: failed to init link %s: %d\n", card 1973 sound/soc/soc-core.c mutex_lock_nested(&card->mutex, SND_SOC_CARD_CLASS_INIT); card 1975 sound/soc/soc-core.c snd_soc_dapm_init(&card->dapm, card, NULL); card 1978 sound/soc/soc-core.c soc_check_tplg_fes(card); card 1981 sound/soc/soc-core.c for_each_card_prelinks(card, i, dai_link) { card 1982 sound/soc/soc-core.c ret = soc_bind_dai_link(card, dai_link); card 1988 sound/soc/soc-core.c ret = soc_bind_aux_dev(card); card 1993 sound/soc/soc-core.c for_each_card_prelinks(card, i, dai_link) { card 1994 sound/soc/soc-core.c ret = snd_soc_add_dai_link(card, dai_link); card 2000 sound/soc/soc-core.c ret = snd_card_new(card->dev, SNDRV_DEFAULT_IDX1, SNDRV_DEFAULT_STR1, card 2001 sound/soc/soc-core.c card->owner, 0, &card->snd_card); card 2003 sound/soc/soc-core.c dev_err(card->dev, card 2005 sound/soc/soc-core.c card->name, ret); card 2009 sound/soc/soc-core.c soc_init_card_debugfs(card); card 2011 sound/soc/soc-core.c soc_resume_init(card); card 2013 sound/soc/soc-core.c ret = snd_soc_dapm_new_controls(&card->dapm, card->dapm_widgets, card 2014 sound/soc/soc-core.c card->num_dapm_widgets); card 2018 sound/soc/soc-core.c ret = snd_soc_dapm_new_controls(&card->dapm, card->of_dapm_widgets, card 2019 sound/soc/soc-core.c card->num_of_dapm_widgets); card 2024 sound/soc/soc-core.c if (card->probe) { card 2025 sound/soc/soc-core.c ret = card->probe(card); card 2031 sound/soc/soc-core.c ret = soc_probe_link_components(card); card 2033 sound/soc/soc-core.c dev_err(card->dev, card 2039 sound/soc/soc-core.c ret = soc_probe_aux_devices(card); card 2047 sound/soc/soc-core.c for_each_card_links(card, dai_link) { card 2048 sound/soc/soc-core.c if (soc_is_dai_link_bound(card, dai_link)) card 2051 sound/soc/soc-core.c ret = soc_init_dai_link(card, dai_link); card 2054 sound/soc/soc-core.c ret = soc_bind_dai_link(card, dai_link); card 2060 sound/soc/soc-core.c ret = soc_probe_link_dais(card); card 2062 sound/soc/soc-core.c dev_err(card->dev, card 2067 sound/soc/soc-core.c for_each_card_rtds(card, rtd) card 2068 sound/soc/soc-core.c soc_link_init(card, rtd); card 2070 sound/soc/soc-core.c snd_soc_dapm_link_dai_widgets(card); card 2071 sound/soc/soc-core.c snd_soc_dapm_connect_dai_link_widgets(card); card 2073 sound/soc/soc-core.c ret = snd_soc_add_card_controls(card, card->controls, card 2074 sound/soc/soc-core.c card->num_controls); card 2078 sound/soc/soc-core.c ret = snd_soc_dapm_add_routes(&card->dapm, card->dapm_routes, card 2079 sound/soc/soc-core.c card->num_dapm_routes); card 2081 sound/soc/soc-core.c if (card->disable_route_checks) { card 2082 sound/soc/soc-core.c dev_info(card->dev, card 2086 sound/soc/soc-core.c dev_err(card->dev, card 2093 sound/soc/soc-core.c ret = snd_soc_dapm_add_routes(&card->dapm, card->of_dapm_routes, card 2094 sound/soc/soc-core.c card->num_of_dapm_routes); card 2099 sound/soc/soc-core.c snd_soc_set_dmi_name(card, NULL); card 2101 sound/soc/soc-core.c snprintf(card->snd_card->shortname, sizeof(card->snd_card->shortname), card 2102 sound/soc/soc-core.c "%s", card->name); card 2103 sound/soc/soc-core.c snprintf(card->snd_card->longname, sizeof(card->snd_card->longname), card 2104 sound/soc/soc-core.c "%s", card->long_name ? card->long_name : card->name); card 2105 sound/soc/soc-core.c snprintf(card->snd_card->driver, sizeof(card->snd_card->driver), card 2106 sound/soc/soc-core.c "%s", card->driver_name ? card->driver_name : card->name); card 2107 sound/soc/soc-core.c for (i = 0; i < ARRAY_SIZE(card->snd_card->driver); i++) { card 2108 sound/soc/soc-core.c switch (card->snd_card->driver[i]) { card 2114 sound/soc/soc-core.c if (!isalnum(card->snd_card->driver[i])) card 2115 sound/soc/soc-core.c card->snd_card->driver[i] = '_'; card 2120 sound/soc/soc-core.c if (card->late_probe) { card 2121 sound/soc/soc-core.c ret = card->late_probe(card); card 2123 sound/soc/soc-core.c dev_err(card->dev, "ASoC: %s late_probe() failed: %d\n", card 2124 sound/soc/soc-core.c card->name, ret); card 2129 sound/soc/soc-core.c snd_soc_dapm_new_widgets(card); card 2131 sound/soc/soc-core.c ret = snd_card_register(card->snd_card); card 2133 sound/soc/soc-core.c dev_err(card->dev, "ASoC: failed to register soundcard %d\n", card 2138 sound/soc/soc-core.c card->instantiated = 1; card 2139 sound/soc/soc-core.c dapm_mark_endpoints_dirty(card); card 2140 sound/soc/soc-core.c snd_soc_dapm_sync(&card->dapm); card 2144 sound/soc/soc-core.c soc_cleanup_card_resources(card); card 2146 sound/soc/soc-core.c mutex_unlock(&card->mutex); card 2155 sound/soc/soc-core.c struct snd_soc_card *card = platform_get_drvdata(pdev); card 2161 sound/soc/soc-core.c if (!card) card 2166 sound/soc/soc-core.c card->name); card 2169 sound/soc/soc-core.c card->dev = &pdev->dev; card 2171 sound/soc/soc-core.c return snd_soc_register_card(card); card 2177 sound/soc/soc-core.c struct snd_soc_card *card = platform_get_drvdata(pdev); card 2179 sound/soc/soc-core.c snd_soc_unregister_card(card); card 2185 sound/soc/soc-core.c struct snd_soc_card *card = dev_get_drvdata(dev); card 2188 sound/soc/soc-core.c if (!card->instantiated) card 2195 sound/soc/soc-core.c snd_soc_flush_all_delayed_work(card); card 2197 sound/soc/soc-core.c snd_soc_dapm_shutdown(card); card 2200 sound/soc/soc-core.c for_each_card_rtds(card, rtd) { card 2278 sound/soc/soc-core.c static int snd_soc_add_controls(struct snd_card *card, struct device *dev, card 2287 sound/soc/soc-core.c err = snd_ctl_add(card, snd_soc_cnew(control, data, card 2302 sound/soc/soc-core.c struct snd_card *card = soc_card->snd_card; card 2308 sound/soc/soc-core.c list_for_each_entry(kctl, &card->controls, list) card 2327 sound/soc/soc-core.c struct snd_card *card = component->card->snd_card; card 2329 sound/soc/soc-core.c return snd_soc_add_controls(card, component->dev, controls, card 2347 sound/soc/soc-core.c struct snd_card *card = soc_card->snd_card; card 2349 sound/soc/soc-core.c return snd_soc_add_controls(card, soc_card->dev, controls, num_controls, card 2367 sound/soc/soc-core.c struct snd_card *card = dai->component->card->snd_card; card 2369 sound/soc/soc-core.c return snd_soc_add_controls(card, dai->dev, controls, num_controls, card 2374 sound/soc/soc-core.c static int snd_soc_bind_card(struct snd_soc_card *card) card 2379 sound/soc/soc-core.c ret = snd_soc_instantiate_card(card); card 2384 sound/soc/soc-core.c for_each_card_rtds(card, rtd) { card 2407 sound/soc/soc-core.c int snd_soc_register_card(struct snd_soc_card *card) card 2409 sound/soc/soc-core.c if (!card->name || !card->dev) card 2412 sound/soc/soc-core.c dev_set_drvdata(card->dev, card); card 2414 sound/soc/soc-core.c INIT_LIST_HEAD(&card->widgets); card 2415 sound/soc/soc-core.c INIT_LIST_HEAD(&card->paths); card 2416 sound/soc/soc-core.c INIT_LIST_HEAD(&card->dapm_list); card 2417 sound/soc/soc-core.c INIT_LIST_HEAD(&card->aux_comp_list); card 2418 sound/soc/soc-core.c INIT_LIST_HEAD(&card->component_dev_list); card 2419 sound/soc/soc-core.c INIT_LIST_HEAD(&card->list); card 2420 sound/soc/soc-core.c INIT_LIST_HEAD(&card->dai_link_list); card 2421 sound/soc/soc-core.c INIT_LIST_HEAD(&card->rtd_list); card 2422 sound/soc/soc-core.c INIT_LIST_HEAD(&card->dapm_dirty); card 2423 sound/soc/soc-core.c INIT_LIST_HEAD(&card->dobj_list); card 2425 sound/soc/soc-core.c card->num_rtd = 0; card 2426 sound/soc/soc-core.c card->instantiated = 0; card 2427 sound/soc/soc-core.c mutex_init(&card->mutex); card 2428 sound/soc/soc-core.c mutex_init(&card->dapm_mutex); card 2429 sound/soc/soc-core.c mutex_init(&card->pcm_mutex); card 2430 sound/soc/soc-core.c spin_lock_init(&card->dpcm_lock); card 2432 sound/soc/soc-core.c return snd_soc_bind_card(card); card 2436 sound/soc/soc-core.c static void snd_soc_unbind_card(struct snd_soc_card *card, bool unregister) card 2438 sound/soc/soc-core.c if (card->instantiated) { card 2439 sound/soc/soc-core.c card->instantiated = false; card 2440 sound/soc/soc-core.c snd_soc_dapm_shutdown(card); card 2441 sound/soc/soc-core.c snd_soc_flush_all_delayed_work(card); card 2444 sound/soc/soc-core.c soc_remove_link_components(card); card 2446 sound/soc/soc-core.c soc_cleanup_card_resources(card); card 2448 sound/soc/soc-core.c list_add(&card->list, &unbind_card_list); card 2451 sound/soc/soc-core.c list_del(&card->list); card 2461 sound/soc/soc-core.c int snd_soc_unregister_card(struct snd_soc_card *card) card 2464 sound/soc/soc-core.c snd_soc_unbind_card(card, true); card 2466 sound/soc/soc-core.c dev_dbg(card->dev, "ASoC: Unregistered card '%s'\n", card->name); card 2777 sound/soc/soc-core.c struct snd_soc_card *card = component->card; card 2779 sound/soc/soc-core.c if (card) card 2780 sound/soc/soc-core.c snd_soc_unbind_card(card, false); card 2822 sound/soc/soc-core.c struct snd_soc_card *card, *c; card 2824 sound/soc/soc-core.c list_for_each_entry_safe(card, c, &unbind_card_list, list) card 2825 sound/soc/soc-core.c if (!snd_soc_bind_card(card)) card 2826 sound/soc/soc-core.c list_del(&card->list); card 2947 sound/soc/soc-core.c int snd_soc_of_parse_card_name(struct snd_soc_card *card, card 2953 sound/soc/soc-core.c if (!card->dev) { card 2958 sound/soc/soc-core.c np = card->dev->of_node; card 2960 sound/soc/soc-core.c ret = of_property_read_string_index(np, propname, 0, &card->name); card 2967 sound/soc/soc-core.c dev_err(card->dev, card 2984 sound/soc/soc-core.c int snd_soc_of_parse_audio_simple_widgets(struct snd_soc_card *card, card 2987 sound/soc/soc-core.c struct device_node *np = card->dev->of_node; card 2994 sound/soc/soc-core.c dev_err(card->dev, card 2999 sound/soc/soc-core.c dev_err(card->dev, card 3006 sound/soc/soc-core.c dev_err(card->dev, "ASoC: Property '%s's length is zero\n", card 3011 sound/soc/soc-core.c widgets = devm_kcalloc(card->dev, num_widgets, sizeof(*widgets), card 3014 sound/soc/soc-core.c dev_err(card->dev, card 3023 sound/soc/soc-core.c dev_err(card->dev, card 3038 sound/soc/soc-core.c dev_err(card->dev, card 3048 sound/soc/soc-core.c dev_err(card->dev, card 3057 sound/soc/soc-core.c card->of_dapm_widgets = widgets; card 3058 sound/soc/soc-core.c card->num_of_dapm_widgets = num_widgets; card 3138 sound/soc/soc-core.c int snd_soc_of_parse_audio_routing(struct snd_soc_card *card, card 3141 sound/soc/soc-core.c struct device_node *np = card->dev->of_node; card 3148 sound/soc/soc-core.c dev_err(card->dev, card 3155 sound/soc/soc-core.c dev_err(card->dev, "ASoC: Property '%s's length is zero\n", card 3160 sound/soc/soc-core.c routes = devm_kcalloc(card->dev, num_routes, sizeof(*routes), card 3163 sound/soc/soc-core.c dev_err(card->dev, card 3172 sound/soc/soc-core.c dev_err(card->dev, card 3180 sound/soc/soc-core.c dev_err(card->dev, card 3187 sound/soc/soc-core.c card->num_of_dapm_routes = num_routes; card 3188 sound/soc/soc-core.c card->of_dapm_routes = routes; card 42 sound/soc/soc-dapm.c #define DAPM_UPDATE_STAT(widget, val) widget->dapm->card->dapm_stats.val++; card 150 sound/soc/soc-dapm.c if (dapm->card && dapm->card->instantiated) card 151 sound/soc/soc-dapm.c lockdep_assert_held(&dapm->card->dapm_mutex); card 193 sound/soc/soc-dapm.c list_add_tail(&w->dirty, &w->dapm->card->dapm_dirty); card 299 sound/soc/soc-dapm.c void dapm_mark_endpoints_dirty(struct snd_soc_card *card) card 303 sound/soc/soc-dapm.c mutex_lock(&card->dapm_mutex); card 305 sound/soc/soc-dapm.c list_for_each_entry(w, &card->widgets, list) { card 315 sound/soc/soc-dapm.c mutex_unlock(&card->dapm_mutex); card 598 sound/soc/soc-dapm.c static void dapm_reset(struct snd_soc_card *card) card 602 sound/soc/soc-dapm.c lockdep_assert_held(&card->dapm_mutex); card 604 sound/soc/soc-dapm.c memset(&card->dapm_stats, 0, sizeof(card->dapm_stats)); card 606 sound/soc/soc-dapm.c list_for_each_entry(w, &card->widgets, list) { card 659 sound/soc/soc-dapm.c wlist = &w->dapm->card->widgets; card 723 sound/soc/soc-dapm.c struct snd_soc_card *card = dapm->card; card 726 sound/soc/soc-dapm.c trace_snd_soc_bias_level_start(card, level); card 728 sound/soc/soc-dapm.c if (card && card->set_bias_level) card 729 sound/soc/soc-dapm.c ret = card->set_bias_level(card, dapm, level); card 733 sound/soc/soc-dapm.c if (!card || dapm != &card->dapm) card 739 sound/soc/soc-dapm.c if (card && card->set_bias_level_post) card 740 sound/soc/soc-dapm.c ret = card->set_bias_level_post(card, dapm, level); card 742 sound/soc/soc-dapm.c trace_snd_soc_bias_level_done(card, level); card 856 sound/soc/soc-dapm.c list_for_each_entry(w, &dapm->card->widgets, list) { card 879 sound/soc/soc-dapm.c struct snd_card *card = dapm->card->snd_card; card 963 sound/soc/soc-dapm.c ret = snd_ctl_add(card, kcontrol); card 1083 sound/soc/soc-dapm.c struct snd_card *card = dapm->card->snd_card; card 1094 sound/soc/soc-dapm.c ret = snd_ctl_add(card, kcontrol); card 1114 sound/soc/soc-dapm.c int level = snd_power_get_state(widget->dapm->card->snd_card); card 1300 sound/soc/soc-dapm.c struct snd_soc_card *card = dai->component->card; card 1306 sound/soc/soc-dapm.c mutex_lock_nested(&card->dapm_mutex, SND_SOC_DAPM_CLASS_RUNTIME); card 1328 sound/soc/soc-dapm.c mutex_unlock(&card->dapm_mutex); card 1520 sound/soc/soc-dapm.c static void dapm_seq_check_event(struct snd_soc_card *card, card 1560 sound/soc/soc-dapm.c pop_dbg(w->dapm->dev, card->pop_time, "pop test : %s %s\n", card 1573 sound/soc/soc-dapm.c static void dapm_seq_run_coalesced(struct snd_soc_card *card, card 1596 sound/soc/soc-dapm.c pop_dbg(dapm->dev, card->pop_time, card 1601 sound/soc/soc-dapm.c dapm_seq_check_event(card, w, SND_SOC_DAPM_PRE_PMU); card 1602 sound/soc/soc-dapm.c dapm_seq_check_event(card, w, SND_SOC_DAPM_PRE_PMD); card 1610 sound/soc/soc-dapm.c pop_dbg(dapm->dev, card->pop_time, card 1612 sound/soc/soc-dapm.c value, mask, reg, card->pop_time); card 1613 sound/soc/soc-dapm.c pop_wait(card->pop_time); card 1618 sound/soc/soc-dapm.c dapm_seq_check_event(card, w, SND_SOC_DAPM_POST_PMU); card 1619 sound/soc/soc-dapm.c dapm_seq_check_event(card, w, SND_SOC_DAPM_POST_PMD); card 1631 sound/soc/soc-dapm.c static void dapm_seq_run(struct snd_soc_card *card, card 1656 sound/soc/soc-dapm.c dapm_seq_run_coalesced(card, &pending); card 1719 sound/soc/soc-dapm.c dapm_seq_run_coalesced(card, &pending); card 1729 sound/soc/soc-dapm.c list_for_each_entry(d, &card->dapm_list, list) { card 1734 sound/soc/soc-dapm.c static void dapm_widget_update(struct snd_soc_card *card) card 1736 sound/soc/soc-dapm.c struct snd_soc_dapm_update *update = card->update; card 1932 sound/soc/soc-dapm.c switch (snd_power_get_state(dapm->card->snd_card)) { card 1952 sound/soc/soc-dapm.c static int dapm_power_widgets(struct snd_soc_card *card, int event) card 1962 sound/soc/soc-dapm.c lockdep_assert_held(&card->dapm_mutex); card 1964 sound/soc/soc-dapm.c trace_snd_soc_dapm_start(card); card 1966 sound/soc/soc-dapm.c list_for_each_entry(d, &card->dapm_list, list) { card 1973 sound/soc/soc-dapm.c dapm_reset(card); card 1981 sound/soc/soc-dapm.c list_for_each_entry(w, &card->dapm_dirty, dirty) { card 1985 sound/soc/soc-dapm.c list_for_each_entry(w, &card->widgets, list) { card 2030 sound/soc/soc-dapm.c list_for_each_entry(d, &card->dapm_list, list) card 2033 sound/soc/soc-dapm.c list_for_each_entry(d, &card->dapm_list, list) card 2037 sound/soc/soc-dapm.c trace_snd_soc_dapm_walk_done(card); card 2040 sound/soc/soc-dapm.c dapm_pre_sequence_async(&card->dapm, 0); card 2042 sound/soc/soc-dapm.c list_for_each_entry(d, &card->dapm_list, list) { card 2043 sound/soc/soc-dapm.c if (d != &card->dapm && d->bias_level != d->target_bias_level) card 2050 sound/soc/soc-dapm.c dapm_seq_check_event(card, w, SND_SOC_DAPM_WILL_PMD); card 2054 sound/soc/soc-dapm.c dapm_seq_check_event(card, w, SND_SOC_DAPM_WILL_PMU); card 2058 sound/soc/soc-dapm.c dapm_seq_run(card, &down_list, event, false); card 2060 sound/soc/soc-dapm.c dapm_widget_update(card); card 2063 sound/soc/soc-dapm.c dapm_seq_run(card, &up_list, event, true); card 2066 sound/soc/soc-dapm.c list_for_each_entry(d, &card->dapm_list, list) { card 2067 sound/soc/soc-dapm.c if (d != &card->dapm && d->bias_level != d->target_bias_level) card 2073 sound/soc/soc-dapm.c dapm_post_sequence_async(&card->dapm, 0); card 2076 sound/soc/soc-dapm.c list_for_each_entry(d, &card->dapm_list, list) { card 2085 sound/soc/soc-dapm.c pop_dbg(card->dev, card->pop_time, card 2086 sound/soc/soc-dapm.c "DAPM sequencing finished, waiting %dms\n", card->pop_time); card 2087 sound/soc/soc-dapm.c pop_wait(card->pop_time); card 2089 sound/soc/soc-dapm.c trace_snd_soc_dapm_done(card); card 2100 sound/soc/soc-dapm.c struct snd_soc_card *card = w->dapm->card; card 2111 sound/soc/soc-dapm.c mutex_lock(&card->dapm_mutex); card 2155 sound/soc/soc-dapm.c mutex_unlock(&card->dapm_mutex); card 2269 sound/soc/soc-dapm.c static int soc_dapm_mux_update_power(struct snd_soc_card *card, card 2276 sound/soc/soc-dapm.c lockdep_assert_held(&card->dapm_mutex); card 2291 sound/soc/soc-dapm.c dapm_power_widgets(card, SND_SOC_DAPM_STREAM_NOP); card 2300 sound/soc/soc-dapm.c struct snd_soc_card *card = dapm->card; card 2303 sound/soc/soc-dapm.c mutex_lock_nested(&card->dapm_mutex, SND_SOC_DAPM_CLASS_RUNTIME); card 2304 sound/soc/soc-dapm.c card->update = update; card 2305 sound/soc/soc-dapm.c ret = soc_dapm_mux_update_power(card, kcontrol, mux, e); card 2306 sound/soc/soc-dapm.c card->update = NULL; card 2307 sound/soc/soc-dapm.c mutex_unlock(&card->dapm_mutex); card 2309 sound/soc/soc-dapm.c soc_dpcm_runtime_update(card); card 2315 sound/soc/soc-dapm.c static int soc_dapm_mixer_update_power(struct snd_soc_card *card, card 2322 sound/soc/soc-dapm.c lockdep_assert_held(&card->dapm_mutex); card 2356 sound/soc/soc-dapm.c dapm_power_widgets(card, SND_SOC_DAPM_STREAM_NOP); card 2365 sound/soc/soc-dapm.c struct snd_soc_card *card = dapm->card; card 2368 sound/soc/soc-dapm.c mutex_lock_nested(&card->dapm_mutex, SND_SOC_DAPM_CLASS_RUNTIME); card 2369 sound/soc/soc-dapm.c card->update = update; card 2370 sound/soc/soc-dapm.c ret = soc_dapm_mixer_update_power(card, kcontrol, connect, -1); card 2371 sound/soc/soc-dapm.c card->update = NULL; card 2372 sound/soc/soc-dapm.c mutex_unlock(&card->dapm_mutex); card 2374 sound/soc/soc-dapm.c soc_dpcm_runtime_update(card); card 2391 sound/soc/soc-dapm.c if (!cmpnt->card) card 2394 sound/soc/soc-dapm.c list_for_each_entry(w, &cmpnt->card->widgets, list) { card 2452 sound/soc/soc-dapm.c mutex_lock(&rtd->card->dapm_mutex); card 2460 sound/soc/soc-dapm.c mutex_unlock(&rtd->card->dapm_mutex); card 2514 sound/soc/soc-dapm.c list_for_each_entry_safe(w, next_w, &dapm->card->widgets, list) { card 2529 sound/soc/soc-dapm.c list_for_each_entry(w, &dapm->card->widgets, list) { card 2586 sound/soc/soc-dapm.c if (!dapm->card || !dapm->card->instantiated) card 2589 sound/soc/soc-dapm.c return dapm_power_widgets(dapm->card, SND_SOC_DAPM_STREAM_NOP); card 2606 sound/soc/soc-dapm.c mutex_lock_nested(&dapm->card->dapm_mutex, SND_SOC_DAPM_CLASS_RUNTIME); card 2608 sound/soc/soc-dapm.c mutex_unlock(&dapm->card->dapm_mutex); card 2680 sound/soc/soc-dapm.c mutex_lock_nested(&rtd->card->dapm_mutex, SND_SOC_DAPM_CLASS_RUNTIME); card 2682 sound/soc/soc-dapm.c mutex_unlock(&rtd->card->dapm_mutex); card 2706 sound/soc/soc-dapm.c if (w->dapm->card->fully_routed) card 2721 sound/soc/soc-dapm.c if (w->dapm->card->fully_routed) card 2876 sound/soc/soc-dapm.c list_add(&path->list, &dapm->card->paths); card 2885 sound/soc/soc-dapm.c if (dapm->card->instantiated && path->connect) card 2931 sound/soc/soc-dapm.c list_for_each_entry(w, &dapm->card->widgets, list) { card 3024 sound/soc/soc-dapm.c list_for_each_entry(p, &dapm->card->paths, list) { card 3073 sound/soc/soc-dapm.c mutex_lock_nested(&dapm->card->dapm_mutex, SND_SOC_DAPM_CLASS_RUNTIME); card 3085 sound/soc/soc-dapm.c mutex_unlock(&dapm->card->dapm_mutex); card 3104 sound/soc/soc-dapm.c mutex_lock_nested(&dapm->card->dapm_mutex, SND_SOC_DAPM_CLASS_RUNTIME); card 3109 sound/soc/soc-dapm.c mutex_unlock(&dapm->card->dapm_mutex); card 3182 sound/soc/soc-dapm.c mutex_lock_nested(&dapm->card->dapm_mutex, SND_SOC_DAPM_CLASS_INIT); card 3189 sound/soc/soc-dapm.c mutex_unlock(&dapm->card->dapm_mutex); card 3203 sound/soc/soc-dapm.c int snd_soc_dapm_new_widgets(struct snd_soc_card *card) card 3208 sound/soc/soc-dapm.c mutex_lock_nested(&card->dapm_mutex, SND_SOC_DAPM_CLASS_INIT); card 3210 sound/soc/soc-dapm.c list_for_each_entry(w, &card->widgets, list) card 3220 sound/soc/soc-dapm.c mutex_unlock(&card->dapm_mutex); card 3262 sound/soc/soc-dapm.c dapm_power_widgets(card, SND_SOC_DAPM_STREAM_NOP); card 3263 sound/soc/soc-dapm.c mutex_unlock(&card->dapm_mutex); card 3281 sound/soc/soc-dapm.c struct snd_soc_card *card = dapm->card; card 3293 sound/soc/soc-dapm.c mutex_lock_nested(&card->dapm_mutex, SND_SOC_DAPM_CLASS_RUNTIME); card 3310 sound/soc/soc-dapm.c mutex_unlock(&card->dapm_mutex); card 3344 sound/soc/soc-dapm.c struct snd_soc_card *card = dapm->card; card 3371 sound/soc/soc-dapm.c mutex_lock_nested(&card->dapm_mutex, SND_SOC_DAPM_CLASS_RUNTIME); card 3404 sound/soc/soc-dapm.c card->update = &update; card 3408 sound/soc/soc-dapm.c ret = soc_dapm_mixer_update_power(card, kcontrol, connect, card 3411 sound/soc/soc-dapm.c card->update = NULL; card 3414 sound/soc/soc-dapm.c mutex_unlock(&card->dapm_mutex); card 3417 sound/soc/soc-dapm.c soc_dpcm_runtime_update(card); card 3436 sound/soc/soc-dapm.c struct snd_soc_card *card = dapm->card; card 3440 sound/soc/soc-dapm.c mutex_lock_nested(&card->dapm_mutex, SND_SOC_DAPM_CLASS_RUNTIME); card 3444 sound/soc/soc-dapm.c mutex_unlock(&card->dapm_mutex); card 3450 sound/soc/soc-dapm.c mutex_unlock(&card->dapm_mutex); card 3477 sound/soc/soc-dapm.c struct snd_soc_card *card = dapm->card; card 3497 sound/soc/soc-dapm.c mutex_lock_nested(&card->dapm_mutex, SND_SOC_DAPM_CLASS_RUNTIME); card 3510 sound/soc/soc-dapm.c card->update = &update; card 3514 sound/soc/soc-dapm.c ret = soc_dapm_mux_update_power(card, kcontrol, item[0], e); card 3516 sound/soc/soc-dapm.c card->update = NULL; card 3519 sound/soc/soc-dapm.c mutex_unlock(&card->dapm_mutex); card 3522 sound/soc/soc-dapm.c soc_dpcm_runtime_update(card); card 3557 sound/soc/soc-dapm.c struct snd_soc_card *card = snd_kcontrol_chip(kcontrol); card 3560 sound/soc/soc-dapm.c mutex_lock_nested(&card->dapm_mutex, SND_SOC_DAPM_CLASS_RUNTIME); card 3563 sound/soc/soc-dapm.c snd_soc_dapm_get_pin_status(&card->dapm, pin); card 3565 sound/soc/soc-dapm.c mutex_unlock(&card->dapm_mutex); card 3580 sound/soc/soc-dapm.c struct snd_soc_card *card = snd_kcontrol_chip(kcontrol); card 3584 sound/soc/soc-dapm.c snd_soc_dapm_enable_pin(&card->dapm, pin); card 3586 sound/soc/soc-dapm.c snd_soc_dapm_disable_pin(&card->dapm, pin); card 3588 sound/soc/soc-dapm.c snd_soc_dapm_sync(&card->dapm); card 3656 sound/soc/soc-dapm.c if (!dapm->card->fully_routed) card 3666 sound/soc/soc-dapm.c if (!dapm->card->fully_routed) card 3721 sound/soc/soc-dapm.c list_add_tail(&w->list, &dapm->card->widgets); card 3757 sound/soc/soc-dapm.c mutex_lock_nested(&dapm->card->dapm_mutex, SND_SOC_DAPM_CLASS_RUNTIME); card 3759 sound/soc/soc-dapm.c mutex_unlock(&dapm->card->dapm_mutex); card 3783 sound/soc/soc-dapm.c mutex_lock_nested(&dapm->card->dapm_mutex, SND_SOC_DAPM_CLASS_INIT); card 3792 sound/soc/soc-dapm.c mutex_unlock(&dapm->card->dapm_mutex); card 4035 sound/soc/soc-dapm.c snd_soc_dapm_free_kcontrol(struct snd_soc_card *card, card 4042 sound/soc/soc-dapm.c devm_kfree(card->dev, (void *)*private_value); card 4048 sound/soc/soc-dapm.c devm_kfree(card->dev, (void *)w_param_text[count]); card 4049 sound/soc/soc-dapm.c devm_kfree(card->dev, w_param_text); card 4053 sound/soc/soc-dapm.c snd_soc_dapm_alloc_kcontrol(struct snd_soc_card *card, card 4073 sound/soc/soc-dapm.c dev_warn(card->dapm.dev, card 4077 sound/soc/soc-dapm.c devm_kasprintf(card->dev, GFP_KERNEL, card 4081 sound/soc/soc-dapm.c w_param_text[count] = devm_kmemdup(card->dev, card 4095 sound/soc/soc-dapm.c (unsigned long) devm_kmemdup(card->dev, card 4099 sound/soc/soc-dapm.c dev_err(card->dev, "ASoC: Failed to create control for %s widget\n", card 4105 sound/soc/soc-dapm.c kcontrol_news = devm_kmemdup(card->dev, &kcontrol_dai_link[0], card 4109 sound/soc/soc-dapm.c dev_err(card->dev, "ASoC: Failed to create control for %s widget\n", card 4116 sound/soc/soc-dapm.c snd_soc_dapm_free_kcontrol(card, private_value, num_params, w_param_text); card 4121 sound/soc/soc-dapm.c snd_soc_dapm_new_dai(struct snd_soc_card *card, card 4133 sound/soc/soc-dapm.c link_name = devm_kasprintf(card->dev, GFP_KERNEL, "%s-%s", card 4149 sound/soc/soc-dapm.c w_param_text = devm_kcalloc(card->dev, card 4159 sound/soc/soc-dapm.c snd_soc_dapm_alloc_kcontrol(card, card 4171 sound/soc/soc-dapm.c dev_dbg(card->dev, "ASoC: adding %s widget\n", link_name); card 4173 sound/soc/soc-dapm.c w = snd_soc_dapm_new_control_unlocked(&card->dapm, &template); card 4184 sound/soc/soc-dapm.c devm_kfree(card->dev, (void *)template.kcontrol_news); card 4185 sound/soc/soc-dapm.c snd_soc_dapm_free_kcontrol(card, &private_value, card 4188 sound/soc/soc-dapm.c devm_kfree(card->dev, link_name); card 4238 sound/soc/soc-dapm.c int snd_soc_dapm_link_dai_widgets(struct snd_soc_card *card) card 4245 sound/soc/soc-dapm.c list_for_each_entry(dai_w, &card->widgets, list) { card 4256 sound/soc/soc-dapm.c dev_dbg(card->dev, "dai widget %s has no DAI\n", card 4264 sound/soc/soc-dapm.c list_for_each_entry(w, &card->widgets, list) { card 4294 sound/soc/soc-dapm.c static void dapm_connect_dai_link_widgets(struct snd_soc_card *card, card 4322 sound/soc/soc-dapm.c playback = snd_soc_dapm_new_dai(card, substream, card 4332 sound/soc/soc-dapm.c snd_soc_dapm_add_path(&card->dapm, playback_cpu, card 4340 sound/soc/soc-dapm.c snd_soc_dapm_add_path(&card->dapm, playback, codec, card 4352 sound/soc/soc-dapm.c capture = snd_soc_dapm_new_dai(card, substream, card 4362 sound/soc/soc-dapm.c snd_soc_dapm_add_path(&card->dapm, capture, card 4370 sound/soc/soc-dapm.c snd_soc_dapm_add_path(&card->dapm, codec, capture, card 4416 sound/soc/soc-dapm.c void snd_soc_dapm_connect_dai_link_widgets(struct snd_soc_card *card) card 4421 sound/soc/soc-dapm.c for_each_card_rtds(card, rtd) { card 4429 sound/soc/soc-dapm.c dapm_connect_dai_link_widgets(card, rtd); card 4443 sound/soc/soc-dapm.c dapm_power_widgets(rtd->card, event); card 4460 sound/soc/soc-dapm.c struct snd_soc_card *card = rtd->card; card 4462 sound/soc/soc-dapm.c mutex_lock_nested(&card->dapm_mutex, SND_SOC_DAPM_CLASS_RUNTIME); card 4464 sound/soc/soc-dapm.c mutex_unlock(&card->dapm_mutex); card 4502 sound/soc/soc-dapm.c mutex_lock_nested(&dapm->card->dapm_mutex, SND_SOC_DAPM_CLASS_RUNTIME); card 4506 sound/soc/soc-dapm.c mutex_unlock(&dapm->card->dapm_mutex); card 4570 sound/soc/soc-dapm.c mutex_lock_nested(&dapm->card->dapm_mutex, SND_SOC_DAPM_CLASS_RUNTIME); card 4574 sound/soc/soc-dapm.c mutex_unlock(&dapm->card->dapm_mutex); card 4614 sound/soc/soc-dapm.c mutex_lock_nested(&dapm->card->dapm_mutex, SND_SOC_DAPM_CLASS_RUNTIME); card 4618 sound/soc/soc-dapm.c mutex_unlock(&dapm->card->dapm_mutex); card 4665 sound/soc/soc-dapm.c mutex_lock_nested(&dapm->card->dapm_mutex, SND_SOC_DAPM_CLASS_RUNTIME); card 4669 sound/soc/soc-dapm.c mutex_unlock(&dapm->card->dapm_mutex); card 4738 sound/soc/soc-dapm.c struct snd_soc_card *card, card 4741 sound/soc/soc-dapm.c dapm->card = card; card 4750 sound/soc/soc-dapm.c dapm->dev = card->dev; card 4754 sound/soc/soc-dapm.c list_add(&dapm->list, &card->dapm_list); card 4760 sound/soc/soc-dapm.c struct snd_soc_card *card = dapm->card; card 4765 sound/soc/soc-dapm.c mutex_lock(&card->dapm_mutex); card 4767 sound/soc/soc-dapm.c list_for_each_entry(w, &dapm->card->widgets, list) { card 4784 sound/soc/soc-dapm.c dapm_seq_run(card, &down_list, 0, false); card 4790 sound/soc/soc-dapm.c mutex_unlock(&card->dapm_mutex); card 4796 sound/soc/soc-dapm.c void snd_soc_dapm_shutdown(struct snd_soc_card *card) card 4800 sound/soc/soc-dapm.c list_for_each_entry(dapm, &card->dapm_list, list) { card 4801 sound/soc/soc-dapm.c if (dapm != &card->dapm) { card 4809 sound/soc/soc-dapm.c soc_dapm_shutdown_dapm(&card->dapm); card 4810 sound/soc/soc-dapm.c if (card->dapm.bias_level == SND_SOC_BIAS_STANDBY) card 4811 sound/soc/soc-dapm.c snd_soc_dapm_set_bias_level(&card->dapm, card 63 sound/soc/soc-devres.c int devm_snd_soc_register_card(struct device *dev, struct snd_soc_card *card) card 72 sound/soc/soc-devres.c ret = snd_soc_register_card(card); card 74 sound/soc/soc-devres.c *ptr = card; card 41 sound/soc/soc-jack.c int snd_soc_card_jack_new(struct snd_soc_card *card, const char *id, int type, card 48 sound/soc/soc-jack.c jack->card = card; card 53 sound/soc/soc-jack.c ret = snd_jack_new(card->snd_card, id, type, &jack->jack, false, false); card 89 sound/soc/soc-jack.c dapm = &jack->card->dapm; card 189 sound/soc/soc-jack.c dev_err(jack->card->dev, "ASoC: No name for pin %d\n", card 194 sound/soc/soc-jack.c dev_err(jack->card->dev, "ASoC: No mask for pin %d" card 275 sound/soc/soc-jack.c struct device *dev = gpio->jack->card->dev; card 365 sound/soc/soc-jack.c dev_err(jack->card->dev, card 389 sound/soc/soc-jack.c dev_err(jack->card->dev, card 419 sound/soc/soc-jack.c dev_err(jack->card->dev, card 439 sound/soc/soc-jack.c devres_add(jack->card->dev, tbl); card 489 sound/soc/soc-jack.c devres_destroy(jack->card->dev, jack_devres_free_gpios, NULL, NULL); card 592 sound/soc/soc-ops.c int snd_soc_limit_volume(struct snd_soc_card *card, card 595 sound/soc/soc-ops.c struct snd_card *snd_card = card->snd_card; card 47 sound/soc/soc-pcm.c lockdep_assert_held(&rtd->card->pcm_mutex); card 83 sound/soc/soc-pcm.c lockdep_assert_held(&rtd->card->pcm_mutex); card 509 sound/soc/soc-pcm.c mutex_lock_nested(&rtd->card->pcm_mutex, rtd->card->pcm_subclass); card 607 sound/soc/soc-pcm.c mutex_unlock(&rtd->card->pcm_mutex); card 626 sound/soc/soc-pcm.c mutex_unlock(&rtd->card->pcm_mutex); card 656 sound/soc/soc-pcm.c mutex_lock_nested(&rtd->card->pcm_mutex, rtd->card->pcm_subclass); card 670 sound/soc/soc-pcm.c mutex_unlock(&rtd->card->pcm_mutex); card 697 sound/soc/soc-pcm.c mutex_lock_nested(&rtd->card->pcm_mutex, rtd->card->pcm_subclass); card 741 sound/soc/soc-pcm.c mutex_unlock(&rtd->card->pcm_mutex); card 774 sound/soc/soc-pcm.c mutex_lock_nested(&rtd->card->pcm_mutex, rtd->card->pcm_subclass); card 779 sound/soc/soc-pcm.c dev_err(rtd->card->dev, "ASoC: machine prepare error:" card 829 sound/soc/soc-pcm.c mutex_unlock(&rtd->card->pcm_mutex); card 879 sound/soc/soc-pcm.c mutex_lock_nested(&rtd->card->pcm_mutex, rtd->card->pcm_subclass); card 888 sound/soc/soc-pcm.c dev_err(rtd->card->dev, "ASoC: machine hw_params" card 967 sound/soc/soc-pcm.c mutex_unlock(&rtd->card->pcm_mutex); card 991 sound/soc/soc-pcm.c mutex_unlock(&rtd->card->pcm_mutex); card 1006 sound/soc/soc-pcm.c mutex_lock_nested(&rtd->card->pcm_mutex, rtd->card->pcm_subclass); card 1048 sound/soc/soc-pcm.c mutex_unlock(&rtd->card->pcm_mutex); card 1169 sound/soc/soc-pcm.c spin_lock_irqsave(&fe->card->dpcm_lock, flags); card 1172 sound/soc/soc-pcm.c spin_unlock_irqrestore(&fe->card->dpcm_lock, flags); card 1244 sound/soc/soc-pcm.c spin_lock_irqsave(&fe->card->dpcm_lock, flags); card 1247 sound/soc/soc-pcm.c spin_unlock_irqrestore(&fe->card->dpcm_lock, flags); card 1253 sound/soc/soc-pcm.c static struct snd_soc_pcm_runtime *dpcm_get_be(struct snd_soc_card *card, card 1260 sound/soc/soc-pcm.c dev_dbg(card->dev, "ASoC: find BE for widget %s\n", widget->name); card 1263 sound/soc/soc-pcm.c for_each_card_rtds(card, be) { card 1268 sound/soc/soc-pcm.c dev_dbg(card->dev, "ASoC: try BE : %s\n", card 1282 sound/soc/soc-pcm.c for_each_card_rtds(card, be) { card 1287 sound/soc/soc-pcm.c dev_dbg(card->dev, "ASoC: try BE %s\n", card 1302 sound/soc/soc-pcm.c dev_err(card->dev, "ASoC: can't get %s BE for %s\n", card 1332 sound/soc/soc-pcm.c struct snd_soc_card *card = widget->dapm->card; card 1338 sound/soc/soc-pcm.c for_each_card_rtds(card, rtd) { card 1351 sound/soc/soc-pcm.c for_each_card_rtds(card, rtd) { card 1432 sound/soc/soc-pcm.c struct snd_soc_card *card = fe->card; card 1454 sound/soc/soc-pcm.c be = dpcm_get_be(card, list->widgets[i], stream); card 1505 sound/soc/soc-pcm.c spin_lock_irqsave(&fe->card->dpcm_lock, flags); card 1509 sound/soc/soc-pcm.c spin_unlock_irqrestore(&fe->card->dpcm_lock, flags); card 2050 sound/soc/soc-pcm.c mutex_lock_nested(&fe->card->mutex, SND_SOC_CARD_CLASS_RUNTIME); card 2068 sound/soc/soc-pcm.c mutex_unlock(&fe->card->mutex); card 2162 sound/soc/soc-pcm.c mutex_lock_nested(&fe->card->mutex, SND_SOC_CARD_CLASS_RUNTIME); card 2187 sound/soc/soc-pcm.c mutex_unlock(&fe->card->mutex); card 2477 sound/soc/soc-pcm.c mutex_lock_nested(&fe->card->mutex, SND_SOC_CARD_CLASS_RUNTIME); card 2509 sound/soc/soc-pcm.c mutex_unlock(&fe->card->mutex); card 2632 sound/soc/soc-pcm.c spin_lock_irqsave(&fe->card->dpcm_lock, flags); card 2638 sound/soc/soc-pcm.c spin_unlock_irqrestore(&fe->card->dpcm_lock, flags); card 2752 sound/soc/soc-pcm.c int soc_dpcm_runtime_update(struct snd_soc_card *card) card 2757 sound/soc/soc-pcm.c mutex_lock_nested(&card->mutex, SND_SOC_CARD_CLASS_RUNTIME); card 2759 sound/soc/soc-pcm.c for_each_card_rtds(card, fe) { card 2766 sound/soc/soc-pcm.c for_each_card_rtds(card, fe) { card 2773 sound/soc/soc-pcm.c mutex_unlock(&card->mutex); card 2812 sound/soc/soc-pcm.c mutex_lock_nested(&fe->card->mutex, SND_SOC_CARD_CLASS_RUNTIME); card 2817 sound/soc/soc-pcm.c mutex_unlock(&fe->card->mutex); card 2839 sound/soc/soc-pcm.c mutex_unlock(&fe->card->mutex); card 2849 sound/soc/soc-pcm.c mutex_lock_nested(&fe->card->mutex, SND_SOC_CARD_CLASS_RUNTIME); card 2859 sound/soc/soc-pcm.c mutex_unlock(&fe->card->mutex); card 2921 sound/soc/soc-pcm.c ret = snd_pcm_new_internal(rtd->card->snd_card, new_name, num, card 2927 sound/soc/soc-pcm.c ret = snd_pcm_new_internal(rtd->card->snd_card, new_name, num, card 2939 sound/soc/soc-pcm.c ret = snd_pcm_new(rtd->card->snd_card, new_name, num, playback, card 2943 sound/soc/soc-pcm.c dev_err(rtd->card->dev, "ASoC: can't create pcm for %s\n", card 2947 sound/soc/soc-pcm.c dev_dbg(rtd->card->dev, "ASoC: registered pcm #%d %s\n",num, new_name); card 3018 sound/soc/soc-pcm.c dev_info(rtd->card->dev, "%s <-> %s mapping ok\n", card 3081 sound/soc/soc-pcm.c spin_lock_irqsave(&fe->card->dpcm_lock, flags); card 3095 sound/soc/soc-pcm.c spin_unlock_irqrestore(&fe->card->dpcm_lock, flags); card 3114 sound/soc/soc-pcm.c spin_lock_irqsave(&fe->card->dpcm_lock, flags); card 3129 sound/soc/soc-pcm.c spin_unlock_irqrestore(&fe->card->dpcm_lock, flags); card 3199 sound/soc/soc-pcm.c spin_lock_irqsave(&fe->card->dpcm_lock, flags); card 3220 sound/soc/soc-pcm.c spin_unlock_irqrestore(&fe->card->dpcm_lock, flags); card 3264 sound/soc/soc-pcm.c if (!rtd->card->debugfs_card_root) card 3268 sound/soc/soc-pcm.c rtd->card->debugfs_card_root); card 335 sound/soc/soc-topology.c static int soc_tplg_add_dcontrol(struct snd_card *card, struct device *dev, card 348 sound/soc/soc-topology.c err = snd_ctl_add(card, *kcontrol); card 364 sound/soc/soc-topology.c return soc_tplg_add_dcontrol(comp->card->snd_card, card 372 sound/soc/soc-topology.c struct snd_card *card = comp->card->snd_card; card 385 sound/soc/soc-topology.c snd_ctl_remove(card, dobj->control.kcontrol); card 395 sound/soc/soc-topology.c struct snd_card *card = comp->card->snd_card; card 404 sound/soc/soc-topology.c snd_ctl_remove(card, dobj->control.kcontrol); card 416 sound/soc/soc-topology.c struct snd_card *card = comp->card->snd_card; card 426 sound/soc/soc-topology.c snd_ctl_remove(card, dobj->control.kcontrol); card 452 sound/soc/soc-topology.c struct snd_card *card = comp->card->snd_card; card 477 sound/soc/soc-topology.c snd_ctl_remove(card, kcontrol); card 500 sound/soc/soc-topology.c snd_ctl_remove(card, kcontrol); card 552 sound/soc/soc-topology.c snd_soc_remove_dai_link(comp->card, link); card 1589 sound/soc/soc-topology.c struct snd_soc_card *card = tplg->comp->card; card 1701 sound/soc/soc-topology.c if (card->instantiated) card 1768 sound/soc/soc-topology.c struct snd_soc_card *card = tplg->comp->card; card 1774 sound/soc/soc-topology.c if (!card || !card->instantiated) { card 1780 sound/soc/soc-topology.c ret = snd_soc_dapm_new_widgets(card); card 1950 sound/soc/soc-topology.c ret = snd_soc_add_dai_link(tplg->comp->card, link); card 2258 sound/soc/soc-topology.c link = snd_soc_find_dai_link(tplg->comp->card, le32_to_cpu(cfg->id), card 2747 sound/soc/soc-topology.c list_for_each_entry_safe(w, next_w, &dapm->card->widgets, list) { card 22 sound/soc/sof/nocodec.c int link_num, struct snd_soc_card *card) card 27 sound/soc/sof/nocodec.c if (!ops || !links || !card) card 59 sound/soc/sof/nocodec.c card->dai_link = links; card 60 sound/soc/sof/nocodec.c card->num_links = link_num; card 97 sound/soc/sof/nocodec.c struct snd_soc_card *card = &sof_nocodec_card; card 99 sound/soc/sof/nocodec.c card->dev = &pdev->dev; card 101 sound/soc/sof/nocodec.c return devm_snd_soc_register_card(&pdev->dev, card); card 1135 sound/soc/sof/topology.c struct snd_soc_card *card = scomp->card; card 1138 sound/soc/sof/topology.c list_for_each_entry(rtd, &card->rtd_list, list) { card 472 sound/soc/sprd/sprd-pcm-dma.c struct snd_card *card = rtd->card->snd_card; card 477 sound/soc/sprd/sprd-pcm-dma.c ret = dma_coerce_mask_and_coherent(card->dev, DMA_BIT_MASK(32)); card 483 sound/soc/sprd/sprd-pcm-dma.c ret = snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, card->dev, card 487 sound/soc/sprd/sprd-pcm-dma.c dev_err(card->dev, card 495 sound/soc/sprd/sprd-pcm-dma.c ret = snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, card->dev, card 499 sound/soc/sprd/sprd-pcm-dma.c dev_err(card->dev, card 1172 sound/soc/stm/stm32_sai_sub.c return snd_ctl_add(rtd->pcm->card, snd_ctl_new1(&knew, sai)); card 290 sound/soc/sunxi/sun4i-codec.c struct sun4i_codec *scodec = snd_soc_card_get_drvdata(rtd->card); card 322 sound/soc/sunxi/sun4i-codec.c struct sun4i_codec *scodec = snd_soc_card_get_drvdata(rtd->card); card 364 sound/soc/sunxi/sun4i-codec.c struct sun4i_codec *scodec = snd_soc_card_get_drvdata(rtd->card); card 577 sound/soc/sunxi/sun4i-codec.c struct sun4i_codec *scodec = snd_soc_card_get_drvdata(rtd->card); card 618 sound/soc/sunxi/sun4i-codec.c struct sun4i_codec *scodec = snd_soc_card_get_drvdata(rtd->card); card 638 sound/soc/sunxi/sun4i-codec.c struct sun4i_codec *scodec = snd_soc_card_get_drvdata(rtd->card); card 1264 sound/soc/sunxi/sun4i-codec.c struct snd_soc_card *card = snd_soc_dai_get_drvdata(dai); card 1265 sound/soc/sunxi/sun4i-codec.c struct sun4i_codec *scodec = snd_soc_card_get_drvdata(card); card 1328 sound/soc/sunxi/sun4i-codec.c struct sun4i_codec *scodec = snd_soc_card_get_drvdata(w->dapm->card); card 1356 sound/soc/sunxi/sun4i-codec.c struct snd_soc_card *card; card 1358 sound/soc/sunxi/sun4i-codec.c card = devm_kzalloc(dev, sizeof(*card), GFP_KERNEL); card 1359 sound/soc/sunxi/sun4i-codec.c if (!card) card 1362 sound/soc/sunxi/sun4i-codec.c card->dai_link = sun4i_codec_create_link(dev, &card->num_links); card 1363 sound/soc/sunxi/sun4i-codec.c if (!card->dai_link) card 1366 sound/soc/sunxi/sun4i-codec.c card->dev = dev; card 1367 sound/soc/sunxi/sun4i-codec.c card->name = "sun4i-codec"; card 1368 sound/soc/sunxi/sun4i-codec.c card->dapm_widgets = sun4i_codec_card_dapm_widgets; card 1369 sound/soc/sunxi/sun4i-codec.c card->num_dapm_widgets = ARRAY_SIZE(sun4i_codec_card_dapm_widgets); card 1370 sound/soc/sunxi/sun4i-codec.c card->dapm_routes = sun4i_codec_card_dapm_routes; card 1371 sound/soc/sunxi/sun4i-codec.c card->num_dapm_routes = ARRAY_SIZE(sun4i_codec_card_dapm_routes); card 1373 sound/soc/sunxi/sun4i-codec.c return card; card 1387 sound/soc/sunxi/sun4i-codec.c struct snd_soc_card *card; card 1390 sound/soc/sunxi/sun4i-codec.c card = devm_kzalloc(dev, sizeof(*card), GFP_KERNEL); card 1391 sound/soc/sunxi/sun4i-codec.c if (!card) card 1394 sound/soc/sunxi/sun4i-codec.c card->dai_link = sun4i_codec_create_link(dev, &card->num_links); card 1395 sound/soc/sunxi/sun4i-codec.c if (!card->dai_link) card 1398 sound/soc/sunxi/sun4i-codec.c card->dev = dev; card 1399 sound/soc/sunxi/sun4i-codec.c card->name = "A31 Audio Codec"; card 1400 sound/soc/sunxi/sun4i-codec.c card->dapm_widgets = sun6i_codec_card_dapm_widgets; card 1401 sound/soc/sunxi/sun4i-codec.c card->num_dapm_widgets = ARRAY_SIZE(sun6i_codec_card_dapm_widgets); card 1402 sound/soc/sunxi/sun4i-codec.c card->fully_routed = true; card 1404 sound/soc/sunxi/sun4i-codec.c ret = snd_soc_of_parse_audio_routing(card, "allwinner,audio-routing"); card 1408 sound/soc/sunxi/sun4i-codec.c return card; card 1432 sound/soc/sunxi/sun4i-codec.c struct snd_soc_card *card; card 1435 sound/soc/sunxi/sun4i-codec.c card = devm_kzalloc(dev, sizeof(*card), GFP_KERNEL); card 1436 sound/soc/sunxi/sun4i-codec.c if (!card) card 1447 sound/soc/sunxi/sun4i-codec.c card->dai_link = sun4i_codec_create_link(dev, &card->num_links); card 1448 sound/soc/sunxi/sun4i-codec.c if (!card->dai_link) card 1451 sound/soc/sunxi/sun4i-codec.c card->dev = dev; card 1452 sound/soc/sunxi/sun4i-codec.c card->name = "A23 Audio Codec"; card 1453 sound/soc/sunxi/sun4i-codec.c card->dapm_widgets = sun6i_codec_card_dapm_widgets; card 1454 sound/soc/sunxi/sun4i-codec.c card->num_dapm_widgets = ARRAY_SIZE(sun6i_codec_card_dapm_widgets); card 1455 sound/soc/sunxi/sun4i-codec.c card->dapm_routes = sun8i_codec_card_routes; card 1456 sound/soc/sunxi/sun4i-codec.c card->num_dapm_routes = ARRAY_SIZE(sun8i_codec_card_routes); card 1457 sound/soc/sunxi/sun4i-codec.c card->aux_dev = &aux_dev; card 1458 sound/soc/sunxi/sun4i-codec.c card->num_aux_devs = 1; card 1459 sound/soc/sunxi/sun4i-codec.c card->fully_routed = true; card 1461 sound/soc/sunxi/sun4i-codec.c ret = snd_soc_of_parse_audio_routing(card, "allwinner,audio-routing"); card 1465 sound/soc/sunxi/sun4i-codec.c return card; card 1470 sound/soc/sunxi/sun4i-codec.c struct snd_soc_card *card; card 1473 sound/soc/sunxi/sun4i-codec.c card = devm_kzalloc(dev, sizeof(*card), GFP_KERNEL); card 1474 sound/soc/sunxi/sun4i-codec.c if (!card) card 1485 sound/soc/sunxi/sun4i-codec.c card->dai_link = sun4i_codec_create_link(dev, &card->num_links); card 1486 sound/soc/sunxi/sun4i-codec.c if (!card->dai_link) card 1489 sound/soc/sunxi/sun4i-codec.c card->dev = dev; card 1490 sound/soc/sunxi/sun4i-codec.c card->name = "H3 Audio Codec"; card 1491 sound/soc/sunxi/sun4i-codec.c card->dapm_widgets = sun6i_codec_card_dapm_widgets; card 1492 sound/soc/sunxi/sun4i-codec.c card->num_dapm_widgets = ARRAY_SIZE(sun6i_codec_card_dapm_widgets); card 1493 sound/soc/sunxi/sun4i-codec.c card->dapm_routes = sun8i_codec_card_routes; card 1494 sound/soc/sunxi/sun4i-codec.c card->num_dapm_routes = ARRAY_SIZE(sun8i_codec_card_routes); card 1495 sound/soc/sunxi/sun4i-codec.c card->aux_dev = &aux_dev; card 1496 sound/soc/sunxi/sun4i-codec.c card->num_aux_devs = 1; card 1497 sound/soc/sunxi/sun4i-codec.c card->fully_routed = true; card 1499 sound/soc/sunxi/sun4i-codec.c ret = snd_soc_of_parse_audio_routing(card, "allwinner,audio-routing"); card 1503 sound/soc/sunxi/sun4i-codec.c return card; card 1508 sound/soc/sunxi/sun4i-codec.c struct snd_soc_card *card; card 1511 sound/soc/sunxi/sun4i-codec.c card = devm_kzalloc(dev, sizeof(*card), GFP_KERNEL); card 1512 sound/soc/sunxi/sun4i-codec.c if (!card) card 1523 sound/soc/sunxi/sun4i-codec.c card->dai_link = sun4i_codec_create_link(dev, &card->num_links); card 1524 sound/soc/sunxi/sun4i-codec.c if (!card->dai_link) card 1527 sound/soc/sunxi/sun4i-codec.c card->dev = dev; card 1528 sound/soc/sunxi/sun4i-codec.c card->name = "V3s Audio Codec"; card 1529 sound/soc/sunxi/sun4i-codec.c card->dapm_widgets = sun6i_codec_card_dapm_widgets; card 1530 sound/soc/sunxi/sun4i-codec.c card->num_dapm_widgets = ARRAY_SIZE(sun6i_codec_card_dapm_widgets); card 1531 sound/soc/sunxi/sun4i-codec.c card->dapm_routes = sun8i_codec_card_routes; card 1532 sound/soc/sunxi/sun4i-codec.c card->num_dapm_routes = ARRAY_SIZE(sun8i_codec_card_routes); card 1533 sound/soc/sunxi/sun4i-codec.c card->aux_dev = &aux_dev; card 1534 sound/soc/sunxi/sun4i-codec.c card->num_aux_devs = 1; card 1535 sound/soc/sunxi/sun4i-codec.c card->fully_routed = true; card 1537 sound/soc/sunxi/sun4i-codec.c ret = snd_soc_of_parse_audio_routing(card, "allwinner,audio-routing"); card 1541 sound/soc/sunxi/sun4i-codec.c return card; card 1694 sound/soc/sunxi/sun4i-codec.c struct snd_soc_card *card; card 1816 sound/soc/sunxi/sun4i-codec.c card = quirks->create_card(&pdev->dev); card 1817 sound/soc/sunxi/sun4i-codec.c if (IS_ERR(card)) { card 1818 sound/soc/sunxi/sun4i-codec.c ret = PTR_ERR(card); card 1823 sound/soc/sunxi/sun4i-codec.c snd_soc_card_set_drvdata(card, scodec); card 1825 sound/soc/sunxi/sun4i-codec.c ret = snd_soc_register_card(card); card 1843 sound/soc/sunxi/sun4i-codec.c struct snd_soc_card *card = platform_get_drvdata(pdev); card 1844 sound/soc/sunxi/sun4i-codec.c struct sun4i_codec *scodec = snd_soc_card_get_drvdata(card); card 1846 sound/soc/sunxi/sun4i-codec.c snd_soc_unregister_card(card); card 41 sound/soc/tegra/tegra_alc5632.c struct snd_soc_card *card = rtd->card; card 42 sound/soc/tegra/tegra_alc5632.c struct tegra_alc5632 *alc5632 = snd_soc_card_get_drvdata(card); card 51 sound/soc/tegra/tegra_alc5632.c dev_err(card->dev, "Can't configure clocks\n"); card 58 sound/soc/tegra/tegra_alc5632.c dev_err(card->dev, "codec_dai clock not set\n"); card 102 sound/soc/tegra/tegra_alc5632.c struct tegra_alc5632 *machine = snd_soc_card_get_drvdata(rtd->card); card 104 sound/soc/tegra/tegra_alc5632.c ret = snd_soc_card_jack_new(rtd->card, "Headset Jack", card 119 sound/soc/tegra/tegra_alc5632.c snd_soc_dapm_force_enable_pin(&rtd->card->dapm, "MICBIAS1"); card 155 sound/soc/tegra/tegra_alc5632.c struct snd_soc_card *card = &snd_soc_tegra_alc5632; card 164 sound/soc/tegra/tegra_alc5632.c card->dev = &pdev->dev; card 165 sound/soc/tegra/tegra_alc5632.c snd_soc_card_set_drvdata(card, alc5632); card 171 sound/soc/tegra/tegra_alc5632.c ret = snd_soc_of_parse_card_name(card, "nvidia,model"); card 175 sound/soc/tegra/tegra_alc5632.c ret = snd_soc_of_parse_audio_routing(card, "nvidia,audio-routing"); card 204 sound/soc/tegra/tegra_alc5632.c ret = snd_soc_register_card(card); card 228 sound/soc/tegra/tegra_alc5632.c struct snd_soc_card *card = platform_get_drvdata(pdev); card 229 sound/soc/tegra/tegra_alc5632.c struct tegra_alc5632 *machine = snd_soc_card_get_drvdata(card); card 231 sound/soc/tegra/tegra_alc5632.c snd_soc_unregister_card(card); card 42 sound/soc/tegra/tegra_max98090.c struct snd_soc_card *card = rtd->card; card 43 sound/soc/tegra/tegra_max98090.c struct tegra_max98090 *machine = snd_soc_card_get_drvdata(card); card 71 sound/soc/tegra/tegra_max98090.c dev_err(card->dev, "Can't configure clocks\n"); card 78 sound/soc/tegra/tegra_max98090.c dev_err(card->dev, "codec_dai clock not set\n"); card 137 sound/soc/tegra/tegra_max98090.c struct tegra_max98090 *machine = snd_soc_card_get_drvdata(rtd->card); card 140 sound/soc/tegra/tegra_max98090.c snd_soc_card_jack_new(rtd->card, "Headphones", card 153 sound/soc/tegra/tegra_max98090.c snd_soc_card_jack_new(rtd->card, "Mic Jack", card 198 sound/soc/tegra/tegra_max98090.c struct snd_soc_card *card = &snd_soc_tegra_max98090; card 207 sound/soc/tegra/tegra_max98090.c card->dev = &pdev->dev; card 208 sound/soc/tegra/tegra_max98090.c snd_soc_card_set_drvdata(card, machine); card 219 sound/soc/tegra/tegra_max98090.c ret = snd_soc_of_parse_card_name(card, "nvidia,model"); card 223 sound/soc/tegra/tegra_max98090.c ret = snd_soc_of_parse_audio_routing(card, "nvidia,audio-routing"); card 251 sound/soc/tegra/tegra_max98090.c ret = snd_soc_register_card(card); card 268 sound/soc/tegra/tegra_max98090.c struct snd_soc_card *card = platform_get_drvdata(pdev); card 269 sound/soc/tegra/tegra_max98090.c struct tegra_max98090 *machine = snd_soc_card_get_drvdata(card); card 271 sound/soc/tegra/tegra_max98090.c snd_soc_unregister_card(card); card 44 sound/soc/tegra/tegra_rt5640.c struct snd_soc_card *card = rtd->card; card 45 sound/soc/tegra/tegra_rt5640.c struct tegra_rt5640 *machine = snd_soc_card_get_drvdata(card); card 54 sound/soc/tegra/tegra_rt5640.c dev_err(card->dev, "Can't configure clocks\n"); card 61 sound/soc/tegra/tegra_rt5640.c dev_err(card->dev, "codec_dai clock not set\n"); card 100 sound/soc/tegra/tegra_rt5640.c struct tegra_rt5640 *machine = snd_soc_card_get_drvdata(rtd->card); card 102 sound/soc/tegra/tegra_rt5640.c snd_soc_card_jack_new(rtd->card, "Headphones", SND_JACK_HEADPHONE, card 148 sound/soc/tegra/tegra_rt5640.c struct snd_soc_card *card = &snd_soc_tegra_rt5640; card 157 sound/soc/tegra/tegra_rt5640.c card->dev = &pdev->dev; card 158 sound/soc/tegra/tegra_rt5640.c snd_soc_card_set_drvdata(card, machine); card 165 sound/soc/tegra/tegra_rt5640.c ret = snd_soc_of_parse_card_name(card, "nvidia,model"); card 169 sound/soc/tegra/tegra_rt5640.c ret = snd_soc_of_parse_audio_routing(card, "nvidia,audio-routing"); card 197 sound/soc/tegra/tegra_rt5640.c ret = snd_soc_register_card(card); card 214 sound/soc/tegra/tegra_rt5640.c struct snd_soc_card *card = platform_get_drvdata(pdev); card 215 sound/soc/tegra/tegra_rt5640.c struct tegra_rt5640 *machine = snd_soc_card_get_drvdata(card); card 217 sound/soc/tegra/tegra_rt5640.c snd_soc_unregister_card(card); card 46 sound/soc/tegra/tegra_rt5677.c struct snd_soc_card *card = rtd->card; card 47 sound/soc/tegra/tegra_rt5677.c struct tegra_rt5677 *machine = snd_soc_card_get_drvdata(card); card 55 sound/soc/tegra/tegra_rt5677.c dev_err(card->dev, "Can't configure clocks\n"); card 62 sound/soc/tegra/tegra_rt5677.c dev_err(card->dev, "codec_dai clock not set\n"); card 73 sound/soc/tegra/tegra_rt5677.c struct snd_soc_card *card = dapm->card; card 74 sound/soc/tegra/tegra_rt5677.c struct tegra_rt5677 *machine = snd_soc_card_get_drvdata(card); card 133 sound/soc/tegra/tegra_rt5677.c struct tegra_rt5677 *machine = snd_soc_card_get_drvdata(rtd->card); card 135 sound/soc/tegra/tegra_rt5677.c snd_soc_card_jack_new(rtd->card, "Headphone Jack", SND_JACK_HEADPHONE, card 146 sound/soc/tegra/tegra_rt5677.c snd_soc_card_jack_new(rtd->card, "Mic Jack", SND_JACK_MICROPHONE, card 156 sound/soc/tegra/tegra_rt5677.c snd_soc_dapm_force_enable_pin(&rtd->card->dapm, "MICBIAS1"); card 191 sound/soc/tegra/tegra_rt5677.c struct snd_soc_card *card = &snd_soc_tegra_rt5677; card 200 sound/soc/tegra/tegra_rt5677.c card->dev = &pdev->dev; card 201 sound/soc/tegra/tegra_rt5677.c snd_soc_card_set_drvdata(card, machine); card 219 sound/soc/tegra/tegra_rt5677.c dev_err(card->dev, "cannot get hp_en gpio\n"); card 233 sound/soc/tegra/tegra_rt5677.c dev_err(card->dev, "cannot get dmic_clk_en gpio\n"); card 238 sound/soc/tegra/tegra_rt5677.c ret = snd_soc_of_parse_card_name(card, "nvidia,model"); card 242 sound/soc/tegra/tegra_rt5677.c ret = snd_soc_of_parse_audio_routing(card, "nvidia,audio-routing"); card 269 sound/soc/tegra/tegra_rt5677.c ret = snd_soc_register_card(card); card 293 sound/soc/tegra/tegra_rt5677.c struct snd_soc_card *card = platform_get_drvdata(pdev); card 294 sound/soc/tegra/tegra_rt5677.c struct tegra_rt5677 *machine = snd_soc_card_get_drvdata(card); card 296 sound/soc/tegra/tegra_rt5677.c snd_soc_unregister_card(card); card 40 sound/soc/tegra/tegra_sgtl5000.c struct snd_soc_card *card = rtd->card; card 41 sound/soc/tegra/tegra_sgtl5000.c struct tegra_sgtl5000 *machine = snd_soc_card_get_drvdata(card); card 60 sound/soc/tegra/tegra_sgtl5000.c dev_err(card->dev, "Can't configure clocks\n"); card 67 sound/soc/tegra/tegra_sgtl5000.c dev_err(card->dev, "codec_dai clock not set\n"); card 111 sound/soc/tegra/tegra_sgtl5000.c struct snd_soc_card *card = &snd_soc_tegra_sgtl5000; card 120 sound/soc/tegra/tegra_sgtl5000.c card->dev = &pdev->dev; card 121 sound/soc/tegra/tegra_sgtl5000.c snd_soc_card_set_drvdata(card, machine); card 123 sound/soc/tegra/tegra_sgtl5000.c ret = snd_soc_of_parse_card_name(card, "nvidia,model"); card 127 sound/soc/tegra/tegra_sgtl5000.c ret = snd_soc_of_parse_audio_routing(card, "nvidia,audio-routing"); card 155 sound/soc/tegra/tegra_sgtl5000.c ret = snd_soc_register_card(card); card 179 sound/soc/tegra/tegra_sgtl5000.c struct snd_soc_card *card = platform_get_drvdata(pdev); card 180 sound/soc/tegra/tegra_sgtl5000.c struct tegra_sgtl5000 *machine = snd_soc_card_get_drvdata(card); card 183 sound/soc/tegra/tegra_sgtl5000.c ret = snd_soc_unregister_card(card); card 44 sound/soc/tegra/tegra_wm8753.c struct snd_soc_card *card = rtd->card; card 45 sound/soc/tegra/tegra_wm8753.c struct tegra_wm8753 *machine = snd_soc_card_get_drvdata(card); card 64 sound/soc/tegra/tegra_wm8753.c dev_err(card->dev, "Can't configure clocks\n"); card 71 sound/soc/tegra/tegra_wm8753.c dev_err(card->dev, "codec_dai clock not set\n"); card 116 sound/soc/tegra/tegra_wm8753.c struct snd_soc_card *card = &snd_soc_tegra_wm8753; card 125 sound/soc/tegra/tegra_wm8753.c card->dev = &pdev->dev; card 126 sound/soc/tegra/tegra_wm8753.c snd_soc_card_set_drvdata(card, machine); card 128 sound/soc/tegra/tegra_wm8753.c ret = snd_soc_of_parse_card_name(card, "nvidia,model"); card 132 sound/soc/tegra/tegra_wm8753.c ret = snd_soc_of_parse_audio_routing(card, "nvidia,audio-routing"); card 160 sound/soc/tegra/tegra_wm8753.c ret = snd_soc_register_card(card); card 177 sound/soc/tegra/tegra_wm8753.c struct snd_soc_card *card = platform_get_drvdata(pdev); card 178 sound/soc/tegra/tegra_wm8753.c struct tegra_wm8753 *machine = snd_soc_card_get_drvdata(card); card 180 sound/soc/tegra/tegra_wm8753.c snd_soc_unregister_card(card); card 49 sound/soc/tegra/tegra_wm8903.c struct snd_soc_card *card = rtd->card; card 50 sound/soc/tegra/tegra_wm8903.c struct tegra_wm8903 *machine = snd_soc_card_get_drvdata(card); card 71 sound/soc/tegra/tegra_wm8903.c dev_err(card->dev, "Can't configure clocks\n"); card 78 sound/soc/tegra/tegra_wm8903.c dev_err(card->dev, "codec_dai clock not set\n"); card 118 sound/soc/tegra/tegra_wm8903.c struct snd_soc_card *card = dapm->card; card 119 sound/soc/tegra/tegra_wm8903.c struct tegra_wm8903 *machine = snd_soc_card_get_drvdata(card); card 134 sound/soc/tegra/tegra_wm8903.c struct snd_soc_card *card = dapm->card; card 135 sound/soc/tegra/tegra_wm8903.c struct tegra_wm8903 *machine = snd_soc_card_get_drvdata(card); card 160 sound/soc/tegra/tegra_wm8903.c struct snd_soc_card *card = rtd->card; card 161 sound/soc/tegra/tegra_wm8903.c struct tegra_wm8903 *machine = snd_soc_card_get_drvdata(card); card 165 sound/soc/tegra/tegra_wm8903.c snd_soc_card_jack_new(rtd->card, "Headphone Jack", card 174 sound/soc/tegra/tegra_wm8903.c snd_soc_card_jack_new(rtd->card, "Mic Jack", SND_JACK_MICROPHONE, card 181 sound/soc/tegra/tegra_wm8903.c snd_soc_dapm_force_enable_pin(&card->dapm, "MICBIAS"); card 186 sound/soc/tegra/tegra_wm8903.c static int tegra_wm8903_remove(struct snd_soc_card *card) card 189 sound/soc/tegra/tegra_wm8903.c snd_soc_get_pcm_runtime(card, card->dai_link[0].name); card 230 sound/soc/tegra/tegra_wm8903.c struct snd_soc_card *card = &snd_soc_tegra_wm8903; card 239 sound/soc/tegra/tegra_wm8903.c card->dev = &pdev->dev; card 240 sound/soc/tegra/tegra_wm8903.c snd_soc_card_set_drvdata(card, machine); card 250 sound/soc/tegra/tegra_wm8903.c dev_err(card->dev, "cannot get spkr_en gpio\n"); card 263 sound/soc/tegra/tegra_wm8903.c dev_err(card->dev, "cannot get hp_mute gpio\n"); card 282 sound/soc/tegra/tegra_wm8903.c dev_err(card->dev, "cannot get int_mic_en gpio\n"); card 297 sound/soc/tegra/tegra_wm8903.c dev_err(card->dev, "cannot get ext_mic_en gpio\n"); card 302 sound/soc/tegra/tegra_wm8903.c ret = snd_soc_of_parse_card_name(card, "nvidia,model"); card 306 sound/soc/tegra/tegra_wm8903.c ret = snd_soc_of_parse_audio_routing(card, "nvidia,audio-routing"); card 334 sound/soc/tegra/tegra_wm8903.c ret = snd_soc_register_card(card); card 351 sound/soc/tegra/tegra_wm8903.c struct snd_soc_card *card = platform_get_drvdata(pdev); card 352 sound/soc/tegra/tegra_wm8903.c struct tegra_wm8903 *machine = snd_soc_card_get_drvdata(card); card 354 sound/soc/tegra/tegra_wm8903.c snd_soc_unregister_card(card); card 40 sound/soc/tegra/tegra_wm9712.c return snd_soc_dapm_force_enable_pin(&rtd->card->dapm, "Mic Bias"); card 69 sound/soc/tegra/tegra_wm9712.c struct snd_soc_card *card = &snd_soc_tegra_wm9712; card 78 sound/soc/tegra/tegra_wm9712.c card->dev = &pdev->dev; card 79 sound/soc/tegra/tegra_wm9712.c snd_soc_card_set_drvdata(card, machine); card 91 sound/soc/tegra/tegra_wm9712.c ret = snd_soc_of_parse_card_name(card, "nvidia,model"); card 95 sound/soc/tegra/tegra_wm9712.c ret = snd_soc_of_parse_audio_routing(card, "nvidia,audio-routing"); card 118 sound/soc/tegra/tegra_wm9712.c ret = snd_soc_register_card(card); card 138 sound/soc/tegra/tegra_wm9712.c struct snd_soc_card *card = platform_get_drvdata(pdev); card 139 sound/soc/tegra/tegra_wm9712.c struct tegra_wm9712 *machine = snd_soc_card_get_drvdata(card); card 141 sound/soc/tegra/tegra_wm9712.c snd_soc_unregister_card(card); card 39 sound/soc/tegra/trimslice.c struct snd_soc_card *card = rtd->card; card 40 sound/soc/tegra/trimslice.c struct tegra_trimslice *trimslice = snd_soc_card_get_drvdata(card); card 49 sound/soc/tegra/trimslice.c dev_err(card->dev, "Can't configure clocks\n"); card 56 sound/soc/tegra/trimslice.c dev_err(card->dev, "codec_dai clock not set\n"); card 111 sound/soc/tegra/trimslice.c struct snd_soc_card *card = &snd_soc_trimslice; card 120 sound/soc/tegra/trimslice.c card->dev = &pdev->dev; card 121 sound/soc/tegra/trimslice.c snd_soc_card_set_drvdata(card, trimslice); card 148 sound/soc/tegra/trimslice.c ret = snd_soc_register_card(card); card 165 sound/soc/tegra/trimslice.c struct snd_soc_card *card = platform_get_drvdata(pdev); card 166 sound/soc/tegra/trimslice.c struct tegra_trimslice *trimslice = snd_soc_card_get_drvdata(card); card 168 sound/soc/tegra/trimslice.c snd_soc_unregister_card(card); card 103 sound/soc/ti/ams-delta.c struct snd_soc_card *card = snd_kcontrol_chip(kcontrol); card 104 sound/soc/ti/ams-delta.c struct snd_soc_dapm_context *dapm = &card->dapm; card 110 sound/soc/ti/ams-delta.c if (!cx20442_codec->card->pop_time) card 176 sound/soc/ti/ams-delta.c struct snd_soc_card *card = snd_kcontrol_chip(kcontrol); card 177 sound/soc/ti/ams-delta.c struct snd_soc_dapm_context *dapm = &card->dapm; card 306 sound/soc/ti/ams-delta.c struct snd_soc_dapm_context *dapm = &component->card->dapm; card 350 sound/soc/ti/ams-delta.c if (!component->card->pop_time) { card 464 sound/soc/ti/ams-delta.c struct snd_soc_card *card = rtd->card; card 465 sound/soc/ti/ams-delta.c struct snd_soc_dapm_context *dapm = &card->dapm; card 474 sound/soc/ti/ams-delta.c ret = snd_soc_card_jack_new(card, "hook_switch", SND_JACK_HEADSET, card 477 sound/soc/ti/ams-delta.c dev_warn(card->dev, card 481 sound/soc/ti/ams-delta.c ret = snd_soc_jack_add_gpiods(card->dev, &ams_delta_hook_switch, card 485 sound/soc/ti/ams-delta.c dev_warn(card->dev, card 490 sound/soc/ti/ams-delta.c gpiod_modem_codec = devm_gpiod_get(card->dev, "modem_codec", card 493 sound/soc/ti/ams-delta.c dev_warn(card->dev, "Failed to obtain modem_codec GPIO\n"); card 508 sound/soc/ti/ams-delta.c dev_warn(card->dev, card 557 sound/soc/ti/ams-delta.c struct snd_soc_card *card = &ams_delta_audio_card; card 560 sound/soc/ti/ams-delta.c card->dev = &pdev->dev; card 562 sound/soc/ti/ams-delta.c handset_mute = devm_gpiod_get(card->dev, "handset_mute", card 567 sound/soc/ti/ams-delta.c handsfree_mute = devm_gpiod_get(card->dev, "handsfree_mute", card 572 sound/soc/ti/ams-delta.c ret = snd_soc_register_card(card); card 575 sound/soc/ti/ams-delta.c card->dev = NULL; card 583 sound/soc/ti/ams-delta.c struct snd_soc_card *card = platform_get_drvdata(pdev); card 589 sound/soc/ti/ams-delta.c snd_soc_unregister_card(card); card 590 sound/soc/ti/ams-delta.c card->dev = NULL; card 32 sound/soc/ti/davinci-evm.c struct snd_soc_card *soc_card = rtd->card; card 45 sound/soc/ti/davinci-evm.c struct snd_soc_card *soc_card = rtd->card; card 59 sound/soc/ti/davinci-evm.c struct snd_soc_card *soc_card = rtd->card; card 116 sound/soc/ti/davinci-evm.c struct snd_soc_card *card = rtd->card; card 117 sound/soc/ti/davinci-evm.c struct device_node *np = card->dev->of_node; card 121 sound/soc/ti/davinci-evm.c snd_soc_dapm_new_controls(&card->dapm, aic3x_dapm_widgets, card 125 sound/soc/ti/davinci-evm.c ret = snd_soc_of_parse_audio_routing(card, "ti,audio-routing"); card 130 sound/soc/ti/davinci-evm.c snd_soc_dapm_add_routes(&card->dapm, audio_map, card 135 sound/soc/ti/davinci-evm.c snd_soc_dapm_nc_pin(&card->dapm, "MONO_LOUT"); card 136 sound/soc/ti/davinci-evm.c snd_soc_dapm_nc_pin(&card->dapm, "HPLCOM"); card 137 sound/soc/ti/davinci-evm.c snd_soc_dapm_nc_pin(&card->dapm, "HPRCOM"); card 91 sound/soc/ti/n810.c n810_ext_control(&rtd->card->dapm); card 131 sound/soc/ti/n810.c struct snd_soc_card *card = snd_kcontrol_chip(kcontrol); card 137 sound/soc/ti/n810.c n810_ext_control(&card->dapm); card 153 sound/soc/ti/n810.c struct snd_soc_card *card = snd_kcontrol_chip(kcontrol); card 159 sound/soc/ti/n810.c n810_ext_control(&card->dapm); card 175 sound/soc/ti/n810.c struct snd_soc_card *card = snd_kcontrol_chip(kcontrol); card 181 sound/soc/ti/n810.c n810_ext_control(&card->dapm); card 37 sound/soc/ti/omap-abe-twl6040.c struct snd_soc_card card; card 50 sound/soc/ti/omap-abe-twl6040.c struct snd_soc_card *card = rtd->card; card 51 sound/soc/ti/omap-abe-twl6040.c struct abe_twl6040 *priv = snd_soc_card_get_drvdata(card); card 170 sound/soc/ti/omap-abe-twl6040.c struct snd_soc_card *card = rtd->card; card 171 sound/soc/ti/omap-abe-twl6040.c struct abe_twl6040 *priv = snd_soc_card_get_drvdata(card); card 185 sound/soc/ti/omap-abe-twl6040.c ret = snd_soc_card_jack_new(rtd->card, "Headset Jack", card 205 sound/soc/ti/omap-abe-twl6040.c struct snd_soc_dapm_context *dapm = &rtd->card->dapm; card 214 sound/soc/ti/omap-abe-twl6040.c struct snd_soc_card *card; card 229 sound/soc/ti/omap-abe-twl6040.c card = &priv->card; card 230 sound/soc/ti/omap-abe-twl6040.c card->dev = &pdev->dev; card 231 sound/soc/ti/omap-abe-twl6040.c card->owner = THIS_MODULE; card 232 sound/soc/ti/omap-abe-twl6040.c card->dapm_widgets = twl6040_dapm_widgets; card 233 sound/soc/ti/omap-abe-twl6040.c card->num_dapm_widgets = ARRAY_SIZE(twl6040_dapm_widgets); card 234 sound/soc/ti/omap-abe-twl6040.c card->dapm_routes = audio_map; card 235 sound/soc/ti/omap-abe-twl6040.c card->num_dapm_routes = ARRAY_SIZE(audio_map); card 237 sound/soc/ti/omap-abe-twl6040.c if (snd_soc_of_parse_card_name(card, "ti,model")) { card 242 sound/soc/ti/omap-abe-twl6040.c ret = snd_soc_of_parse_audio_routing(card, "ti,audio-routing"); card 293 sound/soc/ti/omap-abe-twl6040.c card->fully_routed = 1; card 300 sound/soc/ti/omap-abe-twl6040.c card->dai_link = priv->dai_links; card 301 sound/soc/ti/omap-abe-twl6040.c card->num_links = num_links; card 303 sound/soc/ti/omap-abe-twl6040.c snd_soc_card_set_drvdata(card, priv); card 305 sound/soc/ti/omap-abe-twl6040.c ret = devm_snd_soc_register_card(&pdev->dev, card); card 27 sound/soc/ti/omap-hdmi.c struct snd_soc_card *card; card 45 sound/soc/ti/omap-hdmi.c return snd_soc_card_get_drvdata(rtd->card); card 314 sound/soc/ti/omap-hdmi.c struct snd_soc_card *card; card 352 sound/soc/ti/omap-hdmi.c card = devm_kzalloc(dev, sizeof(*card), GFP_KERNEL); card 353 sound/soc/ti/omap-hdmi.c if (!card) card 356 sound/soc/ti/omap-hdmi.c card->name = devm_kasprintf(dev, GFP_KERNEL, card 358 sound/soc/ti/omap-hdmi.c if (!card->name) card 361 sound/soc/ti/omap-hdmi.c card->owner = THIS_MODULE; card 362 sound/soc/ti/omap-hdmi.c card->dai_link = card 363 sound/soc/ti/omap-hdmi.c devm_kzalloc(dev, sizeof(*(card->dai_link)), GFP_KERNEL); card 364 sound/soc/ti/omap-hdmi.c if (!card->dai_link) card 370 sound/soc/ti/omap-hdmi.c card->dai_link->cpus = &compnent[0]; card 371 sound/soc/ti/omap-hdmi.c card->dai_link->num_cpus = 1; card 372 sound/soc/ti/omap-hdmi.c card->dai_link->codecs = &compnent[1]; card 373 sound/soc/ti/omap-hdmi.c card->dai_link->num_codecs = 1; card 374 sound/soc/ti/omap-hdmi.c card->dai_link->platforms = &compnent[2]; card 375 sound/soc/ti/omap-hdmi.c card->dai_link->num_platforms = 1; card 377 sound/soc/ti/omap-hdmi.c card->dai_link->name = card->name; card 378 sound/soc/ti/omap-hdmi.c card->dai_link->stream_name = card->name; card 379 sound/soc/ti/omap-hdmi.c card->dai_link->cpus->dai_name = dev_name(ad->dssdev); card 380 sound/soc/ti/omap-hdmi.c card->dai_link->platforms->name = dev_name(ad->dssdev); card 381 sound/soc/ti/omap-hdmi.c card->dai_link->codecs->name = "snd-soc-dummy"; card 382 sound/soc/ti/omap-hdmi.c card->dai_link->codecs->dai_name = "snd-soc-dummy-dai"; card 383 sound/soc/ti/omap-hdmi.c card->num_links = 1; card 384 sound/soc/ti/omap-hdmi.c card->dev = dev; card 386 sound/soc/ti/omap-hdmi.c ret = snd_soc_register_card(card); card 392 sound/soc/ti/omap-hdmi.c ad->card = card; card 393 sound/soc/ti/omap-hdmi.c snd_soc_card_set_drvdata(card, ad); card 404 sound/soc/ti/omap-hdmi.c snd_soc_unregister_card(ad->card); card 148 sound/soc/ti/omap-twl4030.c struct snd_soc_card *card = rtd->card; card 149 sound/soc/ti/omap-twl4030.c struct snd_soc_dapm_context *dapm = &card->dapm; card 150 sound/soc/ti/omap-twl4030.c struct omap_tw4030_pdata *pdata = dev_get_platdata(card->dev); card 151 sound/soc/ti/omap-twl4030.c struct omap_twl4030 *priv = snd_soc_card_get_drvdata(card); card 158 sound/soc/ti/omap-twl4030.c ret = snd_soc_card_jack_new(rtd->card, "Headset Jack", card 241 sound/soc/ti/omap-twl4030.c struct snd_soc_card *card = &omap_twl4030_card; card 245 sound/soc/ti/omap-twl4030.c card->dev = &pdev->dev; card 255 sound/soc/ti/omap-twl4030.c if (snd_soc_of_parse_card_name(card, "ti,model")) { card 273 sound/soc/ti/omap-twl4030.c card->num_links = 1; card 288 sound/soc/ti/omap-twl4030.c ret = snd_soc_of_parse_audio_routing(card, card 293 sound/soc/ti/omap-twl4030.c card->fully_routed = 1; card 297 sound/soc/ti/omap-twl4030.c card->name = pdata->card_name; card 304 sound/soc/ti/omap-twl4030.c card->num_links = 1; card 312 sound/soc/ti/omap-twl4030.c snd_soc_card_set_drvdata(card, priv); card 313 sound/soc/ti/omap-twl4030.c ret = devm_snd_soc_register_card(&pdev->dev, card); card 143 sound/soc/ti/omap3pandora.c struct snd_soc_dapm_context *dapm = &rtd->card->dapm; card 162 sound/soc/ti/omap3pandora.c struct snd_soc_dapm_context *dapm = &rtd->card->dapm; card 47 sound/soc/ti/rx51.c struct snd_soc_card *card = dapm->card; card 48 sound/soc/ti/rx51.c struct rx51_audio_pdata *pdata = snd_soc_card_get_drvdata(card); card 94 sound/soc/ti/rx51.c struct snd_soc_card *card = rtd->card; card 97 sound/soc/ti/rx51.c rx51_ext_control(&card->dapm); card 129 sound/soc/ti/rx51.c struct snd_soc_card *card = snd_kcontrol_chip(kcontrol); card 135 sound/soc/ti/rx51.c rx51_ext_control(&card->dapm); card 144 sound/soc/ti/rx51.c struct snd_soc_card *card = dapm->card; card 145 sound/soc/ti/rx51.c struct rx51_audio_pdata *pdata = snd_soc_card_get_drvdata(card); card 164 sound/soc/ti/rx51.c struct snd_soc_card *card = snd_kcontrol_chip(kcontrol); card 170 sound/soc/ti/rx51.c rx51_ext_control(&card->dapm); card 186 sound/soc/ti/rx51.c struct snd_soc_card *card = snd_kcontrol_chip(kcontrol); card 192 sound/soc/ti/rx51.c rx51_ext_control(&card->dapm); card 265 sound/soc/ti/rx51.c struct snd_soc_card *card = rtd->card; card 266 sound/soc/ti/rx51.c struct rx51_audio_pdata *pdata = snd_soc_card_get_drvdata(card); card 269 sound/soc/ti/rx51.c snd_soc_limit_volume(card, "TPA6130A2 Headphone Playback Volume", 42); card 273 sound/soc/ti/rx51.c dev_err(card->dev, "Failed to add MCBSP controls\n"); card 278 sound/soc/ti/rx51.c err = snd_soc_card_jack_new(rtd->card, "AV Jack", card 282 sound/soc/ti/rx51.c dev_err(card->dev, "Failed to add AV Jack\n"); card 288 sound/soc/ti/rx51.c devm_gpiod_put(card->dev, pdata->jack_detection_gpio); card 294 sound/soc/ti/rx51.c dev_err(card->dev, "Failed to add GPIOs\n"); card 364 sound/soc/ti/rx51.c struct snd_soc_card *card = &rx51_sound_card; card 370 sound/soc/ti/rx51.c card->dev = &pdev->dev; card 418 sound/soc/ti/rx51.c snd_soc_card_set_drvdata(card, pdata); card 420 sound/soc/ti/rx51.c pdata->tvout_selection_gpio = devm_gpiod_get(card->dev, card 424 sound/soc/ti/rx51.c dev_err(card->dev, "could not get tvout selection gpio\n"); card 428 sound/soc/ti/rx51.c pdata->jack_detection_gpio = devm_gpiod_get(card->dev, card 432 sound/soc/ti/rx51.c dev_err(card->dev, "could not get jack detection gpio\n"); card 436 sound/soc/ti/rx51.c pdata->eci_sw_gpio = devm_gpiod_get(card->dev, "eci-switch", card 439 sound/soc/ti/rx51.c dev_err(card->dev, "could not get eci switch gpio\n"); card 443 sound/soc/ti/rx51.c pdata->speaker_amp_gpio = devm_gpiod_get(card->dev, card 447 sound/soc/ti/rx51.c dev_err(card->dev, "could not get speaker enable gpio\n"); card 451 sound/soc/ti/rx51.c err = devm_snd_soc_register_card(card->dev, card); card 287 sound/soc/txx9/txx9aclc.c struct snd_card *card = rtd->card->snd_card; card 315 sound/soc/txx9/txx9aclc.c card->dev, 64 * 1024, 4 * 1024 * 1024); card 25 sound/soc/uniphier/aio-compress.c struct device *dev = compr->card->dev; card 58 sound/soc/uniphier/aio-compress.c struct device *dev = compr->card->dev; card 324 sound/soc/uniphier/aio-compress.c struct device *carddev = rtd->compr->card->dev; card 230 sound/soc/uniphier/aio-dma.c struct device *dev = rtd->card->snd_card->dev; card 133 sound/soc/ux500/mop500_ab8500.c struct snd_soc_card *card = snd_kcontrol_chip(kcontrol); card 135 sound/soc/ux500/mop500_ab8500.c snd_soc_card_get_drvdata(card); card 145 sound/soc/ux500/mop500_ab8500.c struct snd_soc_card *card = snd_kcontrol_chip(kcontrol); card 147 sound/soc/ux500/mop500_ab8500.c snd_soc_card_get_drvdata(card); card 196 sound/soc/ux500/mop500_ab8500.c return mop500_ab8500_set_mclk(rtd->card->dev, card 197 sound/soc/ux500/mop500_ab8500.c snd_soc_card_get_drvdata(rtd->card)); card 203 sound/soc/ux500/mop500_ab8500.c struct device *dev = rtd->card->dev; card 220 sound/soc/ux500/mop500_ab8500.c struct device *dev = rtd->card->dev; card 362 sound/soc/ux500/mop500_ab8500.c struct snd_soc_dapm_context *dapm = &rtd->card->dapm; card 363 sound/soc/ux500/mop500_ab8500.c struct device *dev = rtd->card->dev; card 376 sound/soc/ux500/mop500_ab8500.c snd_soc_card_set_drvdata(rtd->card, drvdata); card 403 sound/soc/ux500/mop500_ab8500.c ret = snd_soc_add_card_controls(rtd->card, mop500_ab8500_ctrls, card 432 sound/soc/ux500/mop500_ab8500.c void mop500_ab8500_remove(struct snd_soc_card *card) card 434 sound/soc/ux500/mop500_ab8500.c struct mop500_ab8500_drvdata *drvdata = snd_soc_card_get_drvdata(card); card 443 sound/soc/ux500/mop500_ab8500.c snd_soc_card_set_drvdata(card, drvdata); card 17 sound/soc/ux500/mop500_ab8500.h void mop500_ab8500_remove(struct snd_soc_card *card); card 466 sound/soc/xtensa/xtfpga-i2s.c struct snd_card *card = rtd->card->snd_card; card 470 sound/soc/xtensa/xtfpga-i2s.c card->dev, size, size); card 325 sound/sparc/amd7930.c struct snd_card *card; card 764 sound/sparc/amd7930.c if ((err = snd_pcm_new(amd->card, card 776 sound/sparc/amd7930.c strcpy(pcm->name, amd->card->shortname); card 890 sound/sparc/amd7930.c struct snd_card *card; card 893 sound/sparc/amd7930.c if (snd_BUG_ON(!amd || !amd->card)) card 896 sound/sparc/amd7930.c card = amd->card; card 897 sound/sparc/amd7930.c strcpy(card->mixername, card->shortname); card 900 sound/sparc/amd7930.c if ((err = snd_ctl_add(card, card 937 sound/sparc/amd7930.c static int snd_amd7930_create(struct snd_card *card, card 952 sound/sparc/amd7930.c amd->card = card; card 997 sound/sparc/amd7930.c if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, card 1011 sound/sparc/amd7930.c struct snd_card *card; card 1025 sound/sparc/amd7930.c THIS_MODULE, 0, &card); card 1029 sound/sparc/amd7930.c strcpy(card->driver, "AMD7930"); card 1030 sound/sparc/amd7930.c strcpy(card->shortname, "Sun AMD7930"); card 1031 sound/sparc/amd7930.c sprintf(card->longname, "%s at 0x%02lx:0x%08Lx, irq %d", card 1032 sound/sparc/amd7930.c card->shortname, card 1037 sound/sparc/amd7930.c if ((err = snd_amd7930_create(card, op, card 1047 sound/sparc/amd7930.c if ((err = snd_card_register(card)) < 0) card 1058 sound/sparc/amd7930.c snd_card_free(card); card 1090 sound/sparc/amd7930.c snd_card_free(p->card); card 93 sound/sparc/cs4231.c struct snd_card *card; card 1225 sound/sparc/cs4231.c static int snd_cs4231_pcm(struct snd_card *card) card 1227 sound/sparc/cs4231.c struct snd_cs4231 *chip = card->private_data; card 1231 sound/sparc/cs4231.c err = snd_pcm_new(card, "CS4231", 0, 1, 1, &pcm); card 1254 sound/sparc/cs4231.c static int snd_cs4231_timer(struct snd_card *card) card 1256 sound/sparc/cs4231.c struct snd_cs4231 *chip = card->private_data; card 1264 sound/sparc/cs4231.c tid.card = card->number; card 1267 sound/sparc/cs4231.c err = snd_timer_new(card, "CS4231", &tid, &timer); card 1536 sound/sparc/cs4231.c static int snd_cs4231_mixer(struct snd_card *card) card 1538 sound/sparc/cs4231.c struct snd_cs4231 *chip = card->private_data; card 1544 sound/sparc/cs4231.c strcpy(card->mixername, chip->pcm->name); card 1547 sound/sparc/cs4231.c err = snd_ctl_add(card, card 1560 sound/sparc/cs4231.c struct snd_card *card; card 1575 sound/sparc/cs4231.c sizeof(struct snd_cs4231), &card); card 1579 sound/sparc/cs4231.c strcpy(card->driver, "CS4231"); card 1580 sound/sparc/cs4231.c strcpy(card->shortname, "Sun CS4231"); card 1582 sound/sparc/cs4231.c chip = card->private_data; card 1583 sound/sparc/cs4231.c chip->card = card; card 1585 sound/sparc/cs4231.c *rcard = card; card 1589 sound/sparc/cs4231.c static int cs4231_attach_finish(struct snd_card *card) card 1591 sound/sparc/cs4231.c struct snd_cs4231 *chip = card->private_data; card 1594 sound/sparc/cs4231.c err = snd_cs4231_pcm(card); card 1598 sound/sparc/cs4231.c err = snd_cs4231_mixer(card); card 1602 sound/sparc/cs4231.c err = snd_cs4231_timer(card); card 1606 sound/sparc/cs4231.c err = snd_card_register(card); card 1616 sound/sparc/cs4231.c snd_card_free(card); card 1793 sound/sparc/cs4231.c static int snd_cs4231_sbus_create(struct snd_card *card, card 1797 sound/sparc/cs4231.c struct snd_cs4231 *chip = card->private_data; card 1847 sound/sparc/cs4231.c if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, card 1859 sound/sparc/cs4231.c struct snd_card *card; card 1862 sound/sparc/cs4231.c err = cs4231_attach_begin(op, &card); card 1866 sound/sparc/cs4231.c sprintf(card->longname, "%s at 0x%02lx:0x%016Lx, irq %d", card 1867 sound/sparc/cs4231.c card->shortname, card 1872 sound/sparc/cs4231.c err = snd_cs4231_sbus_create(card, op, dev); card 1874 sound/sparc/cs4231.c snd_card_free(card); card 1878 sound/sparc/cs4231.c return cs4231_attach_finish(card); card 1959 sound/sparc/cs4231.c static int snd_cs4231_ebus_create(struct snd_card *card, card 1963 sound/sparc/cs4231.c struct snd_cs4231 *chip = card->private_data; card 2039 sound/sparc/cs4231.c if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, card 2050 sound/sparc/cs4231.c struct snd_card *card; card 2053 sound/sparc/cs4231.c err = cs4231_attach_begin(op, &card); card 2057 sound/sparc/cs4231.c sprintf(card->longname, "%s at 0x%llx, irq %d", card 2058 sound/sparc/cs4231.c card->shortname, card 2062 sound/sparc/cs4231.c err = snd_cs4231_ebus_create(card, op, dev); card 2064 sound/sparc/cs4231.c snd_card_free(card); card 2068 sound/sparc/cs4231.c return cs4231_attach_finish(card); card 2090 sound/sparc/cs4231.c snd_card_free(chip->card); card 2232 sound/sparc/dbri.c static int snd_dbri_pcm(struct snd_card *card) card 2237 sound/sparc/dbri.c if ((err = snd_pcm_new(card, card 2247 sound/sparc/dbri.c pcm->private_data = card->private_data; card 2249 sound/sparc/dbri.c strcpy(pcm->name, card->shortname); card 2448 sound/sparc/dbri.c static int snd_dbri_mixer(struct snd_card *card) card 2453 sound/sparc/dbri.c if (snd_BUG_ON(!card || !card->private_data)) card 2455 sound/sparc/dbri.c dbri = card->private_data; card 2457 sound/sparc/dbri.c strcpy(card->mixername, card->shortname); card 2460 sound/sparc/dbri.c err = snd_ctl_add(card, card 2512 sound/sparc/dbri.c static void snd_dbri_proc(struct snd_card *card) card 2514 sound/sparc/dbri.c struct snd_dbri *dbri = card->private_data; card 2516 sound/sparc/dbri.c snd_card_ro_proc_new(card, "regs", dbri, dbri_regs_read); card 2518 sound/sparc/dbri.c snd_card_ro_proc_new(card, "debug", dbri, dbri_debug_read); card 2529 sound/sparc/dbri.c static int snd_dbri_create(struct snd_card *card, card 2533 sound/sparc/dbri.c struct snd_dbri *dbri = card->private_data; card 2601 sound/sparc/dbri.c struct snd_card *card; card 2620 sound/sparc/dbri.c sizeof(struct snd_dbri), &card); card 2624 sound/sparc/dbri.c strcpy(card->driver, "DBRI"); card 2625 sound/sparc/dbri.c strcpy(card->shortname, "Sun DBRI"); card 2627 sound/sparc/dbri.c sprintf(card->longname, "%s at 0x%02lx:0x%016Lx, irq %d", card 2628 sound/sparc/dbri.c card->shortname, card 2631 sound/sparc/dbri.c err = snd_dbri_create(card, op, irq, dev); card 2633 sound/sparc/dbri.c snd_card_free(card); card 2637 sound/sparc/dbri.c dbri = card->private_data; card 2638 sound/sparc/dbri.c err = snd_dbri_pcm(card); card 2642 sound/sparc/dbri.c err = snd_dbri_mixer(card); card 2647 sound/sparc/dbri.c snd_dbri_proc(card); card 2648 sound/sparc/dbri.c dev_set_drvdata(&op->dev, card); card 2650 sound/sparc/dbri.c err = snd_card_register(card); card 2663 sound/sparc/dbri.c snd_card_free(card); card 2669 sound/sparc/dbri.c struct snd_card *card = dev_get_drvdata(&op->dev); card 2671 sound/sparc/dbri.c snd_dbri_free(card->private_data); card 2672 sound/sparc/dbri.c snd_card_free(card); card 62 sound/spi/at73c213.c struct snd_card *card; card 81 sound/spi/at73c213.c #define get_chip(card) ((struct snd_at73c213 *)card->private_data) card 338 sound/spi/at73c213.c retval = snd_pcm_new(chip->card, chip->card->shortname, card 714 sound/spi/at73c213.c struct snd_card *card; card 720 sound/spi/at73c213.c card = chip->card; card 722 sound/spi/at73c213.c strcpy(card->mixername, chip->pcm->name); card 725 sound/spi/at73c213.c errval = snd_ctl_add(card, card 737 sound/spi/at73c213.c kctl = snd_ctl_find_numid(card, idx); card 739 sound/spi/at73c213.c snd_ctl_remove(card, kctl); card 882 sound/spi/at73c213.c static int snd_at73c213_dev_init(struct snd_card *card, card 888 sound/spi/at73c213.c struct snd_at73c213 *chip = get_chip(card); card 897 sound/spi/at73c213.c chip->card = card; card 924 sound/spi/at73c213.c retval = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops); card 935 sound/spi/at73c213.c snd_device_free(card, chip); card 947 sound/spi/at73c213.c struct snd_card *card; card 972 sound/spi/at73c213.c sizeof(struct snd_at73c213), &card); card 976 sound/spi/at73c213.c chip = card->private_data; card 988 sound/spi/at73c213.c retval = snd_at73c213_dev_init(card, spi); card 992 sound/spi/at73c213.c strcpy(card->driver, "at73c213"); card 993 sound/spi/at73c213.c strcpy(card->shortname, board->shortname); card 994 sound/spi/at73c213.c sprintf(card->longname, "%s on irq %d", card->shortname, chip->irq); card 996 sound/spi/at73c213.c retval = snd_card_register(card); card 1000 sound/spi/at73c213.c dev_set_drvdata(&spi->dev, card); card 1007 sound/spi/at73c213.c snd_card_free(card); card 1014 sound/spi/at73c213.c struct snd_card *card = dev_get_drvdata(&spi->dev); card 1015 sound/spi/at73c213.c struct snd_at73c213 *chip = card->private_data; card 1076 sound/spi/at73c213.c snd_card_free(card); card 1085 sound/spi/at73c213.c struct snd_card *card = dev_get_drvdata(dev); card 1086 sound/spi/at73c213.c struct snd_at73c213 *chip = card->private_data; card 1097 sound/spi/at73c213.c struct snd_card *card = dev_get_drvdata(dev); card 1098 sound/spi/at73c213.c struct snd_at73c213 *chip = card->private_data; card 77 sound/synth/emux/emux.c int snd_emux_register(struct snd_emux *emu, struct snd_card *card, int index, char *name) card 84 sound/synth/emux/emux.c if (snd_BUG_ON(!card || !name)) card 87 sound/synth/emux/emux.c emu->card = card; card 112 sound/synth/emux/emux.c snd_emux_init_seq(emu, card, index); card 116 sound/synth/emux/emux.c snd_emux_init_virmidi(emu, card); card 118 sound/synth/emux/emux.c snd_emux_proc_init(emu, card, index); card 119 sound/synth/emux/emux_hwdep.c if ((err = snd_hwdep_new(emu->card, SNDRV_EMUX_HWDEP_NAME, emu->hwdep_idx, &hw)) < 0) card 130 sound/synth/emux/emux_hwdep.c if ((err = snd_card_register(emu->card)) < 0) card 144 sound/synth/emux/emux_hwdep.c snd_device_free(emu->card, emu->hwdep); card 58 sound/synth/emux/emux_oss.c if (snd_seq_device_new(emu->card, 1, SNDRV_SEQ_DEV_ID_OSS, card 72 sound/synth/emux/emux_oss.c snd_device_register(emu->card, dev); card 83 sound/synth/emux/emux_oss.c snd_device_free(emu->card, emu->oss_synth); card 92 sound/synth/emux/emux_proc.c void snd_emux_proc_init(struct snd_emux *emu, struct snd_card *card, int device) card 98 sound/synth/emux/emux_proc.c entry = snd_info_create_card_entry(card, name, card->proc_root); card 55 sound/synth/emux/emux_seq.c snd_emux_init_seq(struct snd_emux *emu, struct snd_card *card, int index) card 61 sound/synth/emux/emux_seq.c emu->client = snd_seq_create_kernel_client(card, index, card 263 sound/synth/emux/emux_seq.c if (!try_module_get(emu->card->module)) { card 288 sound/synth/emux/emux_seq.c module_put(emu->card->module); card 352 sound/synth/emux/emux_seq.c int snd_emux_init_virmidi(struct snd_emux *emu, struct snd_card *card) card 367 sound/synth/emux/emux_seq.c if (snd_virmidi_new(card, emu->midi_devidx + i, &rmidi) < 0) card 374 sound/synth/emux/emux_seq.c if (snd_device_register(card, rmidi) < 0) { card 375 sound/synth/emux/emux_seq.c snd_device_free(card, rmidi); card 398 sound/synth/emux/emux_seq.c snd_device_free(emu->card, emu->vmidi[i]); card 18 sound/synth/emux/emux_voice.h int snd_emux_init_seq(struct snd_emux *emu, struct snd_card *card, int index); card 28 sound/synth/emux/emux_voice.h int snd_emux_init_virmidi(struct snd_emux *emu, struct snd_card *card); card 73 sound/synth/emux/emux_voice.h void snd_emux_proc_init(struct snd_emux *emu, struct snd_card *card, int device); card 77 sound/synth/emux/emux_voice.h struct snd_card *card, int device) {} card 57 sound/usb/6fire/chip.c if (chip->card) { card 58 sound/usb/6fire/chip.c snd_card_disconnect(chip->card); card 59 sound/usb/6fire/chip.c snd_card_free_when_closed(chip->card); card 60 sound/usb/6fire/chip.c chip->card = NULL; card 76 sound/usb/6fire/chip.c if (chip->card) card 77 sound/usb/6fire/chip.c snd_card_free(chip->card); card 89 sound/usb/6fire/chip.c struct snd_card *card = NULL; card 124 sound/usb/6fire/chip.c THIS_MODULE, sizeof(struct sfire_chip), &card); card 129 sound/usb/6fire/chip.c strcpy(card->driver, "6FireUSB"); card 130 sound/usb/6fire/chip.c strcpy(card->shortname, "TerraTec DMX6FireUSB"); card 131 sound/usb/6fire/chip.c sprintf(card->longname, "%s at %d:%d", card->shortname, card 134 sound/usb/6fire/chip.c chip = card->private_data; card 139 sound/usb/6fire/chip.c chip->card = card; card 157 sound/usb/6fire/chip.c ret = snd_card_register(card); card 16 sound/usb/6fire/chip.h struct snd_card *card; card 518 sound/usb/6fire/control.c struct snd_card *card, card 530 sound/usb/6fire/control.c ret = snd_ctl_add(card, vmaster); card 539 sound/usb/6fire/control.c ret = snd_ctl_add(card, control); card 580 sound/usb/6fire/control.c ret = usb6fire_control_add_virtual(rt, chip->card, card 587 sound/usb/6fire/control.c ret = usb6fire_control_add_virtual(rt, chip->card, card 597 sound/usb/6fire/control.c ret = snd_ctl_add(chip->card, snd_ctl_new1(&elements[i], rt)); card 178 sound/usb/6fire/midi.c ret = snd_rawmidi_new(chip->card, "6FireUSB", 0, 1, 1, &rt->instance); card 650 sound/usb/6fire/pcm.c ret = snd_pcm_new(chip->card, "DMX6FireUSB", 0, 1, 1, &pcm); card 42 sound/usb/bcd2000/bcd2000.c struct snd_card *card; card 295 sound/usb/bcd2000/bcd2000.c ret = snd_rawmidi_new(bcd2k->card, bcd2k->card->shortname, 0, card 303 sound/usb/bcd2000/bcd2000.c strlcpy(rmidi->name, bcd2k->card->shortname, sizeof(rmidi->name)); card 365 sound/usb/bcd2000/bcd2000.c struct snd_card *card; card 383 sound/usb/bcd2000/bcd2000.c THIS_MODULE, sizeof(*bcd2k), &card); card 389 sound/usb/bcd2000/bcd2000.c bcd2k = card->private_data; card 391 sound/usb/bcd2000/bcd2000.c bcd2k->card = card; card 395 sound/usb/bcd2000/bcd2000.c snd_card_set_dev(card, &interface->dev); card 397 sound/usb/bcd2000/bcd2000.c strncpy(card->driver, "snd-bcd2000", sizeof(card->driver)); card 398 sound/usb/bcd2000/bcd2000.c strncpy(card->shortname, "BCD2000", sizeof(card->shortname)); card 400 sound/usb/bcd2000/bcd2000.c snprintf(bcd2k->card->longname, sizeof(bcd2k->card->longname), card 408 sound/usb/bcd2000/bcd2000.c err = snd_card_register(card); card 421 sound/usb/bcd2000/bcd2000.c snd_card_free(card); card 436 sound/usb/bcd2000/bcd2000.c snd_card_disconnect(bcd2k->card); card 442 sound/usb/bcd2000/bcd2000.c snd_card_free_when_closed(bcd2k->card); card 808 sound/usb/caiaq/audio.c ret = snd_pcm_new(cdev->chip.card, cdev->product_name, 0, card 24 sound/usb/caiaq/control.c struct snd_usb_caiaqdev *cdev = caiaqdev(chip->card); card 70 sound/usb/caiaq/control.c struct snd_usb_caiaqdev *cdev = caiaqdev(chip->card); card 87 sound/usb/caiaq/control.c struct snd_usb_caiaqdev *cdev = caiaqdev(chip->card); card 581 sound/usb/caiaq/control.c ret = snd_ctl_add(cdev->chip.card, kc); card 382 sound/usb/caiaq/device.c ret = snd_card_register(cdev->chip.card); card 385 sound/usb/caiaq/device.c snd_card_free(cdev->chip.card); card 399 sound/usb/caiaq/device.c struct snd_card *card; card 411 sound/usb/caiaq/device.c sizeof(struct snd_usb_caiaqdev), &card); card 415 sound/usb/caiaq/device.c cdev = caiaqdev(card); card 417 sound/usb/caiaq/device.c cdev->chip.card = card; card 422 sound/usb/caiaq/device.c *cardp = card; card 430 sound/usb/caiaq/device.c struct snd_card *card = cdev->chip.card; card 480 sound/usb/caiaq/device.c strlcpy(card->driver, MODNAME, sizeof(card->driver)); card 481 sound/usb/caiaq/device.c strlcpy(card->shortname, cdev->product_name, sizeof(card->shortname)); card 482 sound/usb/caiaq/device.c strlcpy(card->mixername, cdev->product_name, sizeof(card->mixername)); card 488 sound/usb/caiaq/device.c if (*card->id == '\0') { card 489 sound/usb/caiaq/device.c char id[sizeof(card->id)]; card 493 sound/usb/caiaq/device.c for (c = card->shortname, len = 0; card 494 sound/usb/caiaq/device.c *c && len < sizeof(card->id); c++) card 498 sound/usb/caiaq/device.c snd_card_set_id(card, id); card 502 sound/usb/caiaq/device.c snprintf(card->longname, sizeof(card->longname), "%s %s (%s)", card 517 sound/usb/caiaq/device.c struct snd_card *card = NULL; card 520 sound/usb/caiaq/device.c ret = create_card(usb_dev, intf, &card); card 525 sound/usb/caiaq/device.c usb_set_intfdata(intf, card); card 526 sound/usb/caiaq/device.c ret = init_card(caiaqdev(card)); card 529 sound/usb/caiaq/device.c snd_card_free(card); card 538 sound/usb/caiaq/device.c struct snd_card *card = usb_get_intfdata(intf); card 542 sound/usb/caiaq/device.c if (!card) card 545 sound/usb/caiaq/device.c cdev = caiaqdev(card); card 548 sound/usb/caiaq/device.c snd_card_disconnect(card); card 558 sound/usb/caiaq/device.c snd_card_free(card); card 124 sound/usb/caiaq/device.h #define caiaqdev_to_dev(d) (d->chip.card->dev) card 120 sound/usb/caiaq/midi.c ret = snd_rawmidi_new(device->chip.card, device->product_name, 0, card 170 sound/usb/card.c int err = __snd_usbmidi_create(chip->card, iface, card 336 sound/usb/card.c static void snd_usb_audio_free(struct snd_card *card) card 338 sound/usb/card.c struct snd_usb_audio *chip = card->private_data; card 353 sound/usb/card.c struct snd_card *card = chip->card; card 356 sound/usb/card.c strlcpy(card->shortname, quirk->product_name, card 357 sound/usb/card.c sizeof(card->shortname)); card 364 sound/usb/card.c card->shortname, sizeof(card->shortname)) <= 0) { card 366 sound/usb/card.c sprintf(card->shortname, "USB Device %#04x:%#04x", card 371 sound/usb/card.c strim(card->shortname); card 378 sound/usb/card.c struct snd_card *card = chip->card; card 383 sound/usb/card.c strlcpy(card->longname, quirk->profile_name, card 384 sound/usb/card.c sizeof(card->longname)); card 389 sound/usb/card.c len = strlcpy(card->longname, quirk->vendor_name, sizeof(card->longname)); card 394 sound/usb/card.c card->longname, sizeof(card->longname)); card 400 sound/usb/card.c strim(card->longname); card 401 sound/usb/card.c if (*card->longname) card 402 sound/usb/card.c strlcat(card->longname, " ", sizeof(card->longname)); card 405 sound/usb/card.c strlcat(card->longname, card->shortname, sizeof(card->longname)); card 407 sound/usb/card.c len = strlcat(card->longname, " at ", sizeof(card->longname)); card 409 sound/usb/card.c if (len < sizeof(card->longname)) card 410 sound/usb/card.c usb_make_path(dev, card->longname + len, sizeof(card->longname) - len); card 414 sound/usb/card.c strlcat(card->longname, ", low speed", sizeof(card->longname)); card 417 sound/usb/card.c strlcat(card->longname, ", full speed", sizeof(card->longname)); card 420 sound/usb/card.c strlcat(card->longname, ", high speed", sizeof(card->longname)); card 423 sound/usb/card.c strlcat(card->longname, ", super speed", sizeof(card->longname)); card 426 sound/usb/card.c strlcat(card->longname, ", super speed plus", sizeof(card->longname)); card 442 sound/usb/card.c struct snd_card *card; card 463 sound/usb/card.c sizeof(*chip), &card); card 469 sound/usb/card.c chip = card->private_data; card 474 sound/usb/card.c chip->card = card; card 487 sound/usb/card.c card->private_free = snd_usb_audio_free; card 489 sound/usb/card.c strcpy(card->driver, "USB-Audio"); card 492 sound/usb/card.c snd_component_add(card, component); card 663 sound/usb/card.c err = snd_card_register(chip->card); card 686 sound/usb/card.c snd_card_free(chip->card); card 699 sound/usb/card.c struct snd_card *card; card 705 sound/usb/card.c card = chip->card; card 718 sound/usb/card.c snd_card_disconnect(card); card 749 sound/usb/card.c snd_card_free_when_closed(card); card 826 sound/usb/card.c snd_power_change_state(chip->card, SNDRV_CTL_POWER_D3hot); card 870 sound/usb/card.c snd_power_change_state(chip->card, SNDRV_CTL_POWER_D0); card 68 sound/usb/hiface/chip.c struct snd_card *card = NULL; card 77 sound/usb/hiface/chip.c sizeof(*chip), &card); card 83 sound/usb/hiface/chip.c strlcpy(card->driver, DRIVER_NAME, sizeof(card->driver)); card 86 sound/usb/hiface/chip.c strlcpy(card->shortname, quirk->device_name, sizeof(card->shortname)); card 88 sound/usb/hiface/chip.c strlcpy(card->shortname, "M2Tech generic audio", sizeof(card->shortname)); card 90 sound/usb/hiface/chip.c strlcat(card->longname, card->shortname, sizeof(card->longname)); card 91 sound/usb/hiface/chip.c len = strlcat(card->longname, " at ", sizeof(card->longname)); card 92 sound/usb/hiface/chip.c if (len < sizeof(card->longname)) card 93 sound/usb/hiface/chip.c usb_make_path(device, card->longname + len, card 94 sound/usb/hiface/chip.c sizeof(card->longname) - len); card 96 sound/usb/hiface/chip.c chip = card->private_data; card 98 sound/usb/hiface/chip.c chip->card = card; card 141 sound/usb/hiface/chip.c ret = snd_card_register(chip->card); card 153 sound/usb/hiface/chip.c snd_card_free(chip->card); card 162 sound/usb/hiface/chip.c struct snd_card *card; card 168 sound/usb/hiface/chip.c card = chip->card; card 171 sound/usb/hiface/chip.c snd_card_disconnect(card); card 174 sound/usb/hiface/chip.c snd_card_free_when_closed(card); card 23 sound/usb/hiface/chip.h struct snd_card *card; card 606 sound/usb/hiface/pcm.c ret = snd_pcm_new(chip->card, "USB-SPDIF Audio", 0, 1, 0, &pcm); card 484 sound/usb/line6/driver.c static void line6_destruct(struct snd_card *card) card 486 sound/usb/line6/driver.c struct usb_line6 *line6 = card->private_data; card 663 sound/usb/line6/driver.c err = snd_hwdep_new(line6->card, "config", 0, &hwdep); card 728 sound/usb/line6/driver.c struct snd_card *card; card 742 sound/usb/line6/driver.c THIS_MODULE, data_size, &card); card 747 sound/usb/line6/driver.c line6 = card->private_data; card 748 sound/usb/line6/driver.c line6->card = card; card 754 sound/usb/line6/driver.c strcpy(card->id, properties->id); card 755 sound/usb/line6/driver.c strcpy(card->driver, driver_name); card 756 sound/usb/line6/driver.c strcpy(card->shortname, properties->name); card 757 sound/usb/line6/driver.c sprintf(card->longname, "Line 6 %s at USB %s", properties->name, card 759 sound/usb/line6/driver.c card->private_free = line6_destruct; card 828 sound/usb/line6/driver.c snd_card_disconnect(line6->card); card 840 sound/usb/line6/driver.c snd_card_free_when_closed(line6->card); card 854 sound/usb/line6/driver.c snd_power_change_state(line6->card, SNDRV_CTL_POWER_D3hot); card 876 sound/usb/line6/driver.c snd_power_change_state(line6->card, SNDRV_CTL_POWER_D0); card 141 sound/usb/line6/driver.h struct snd_card *card; card 224 sound/usb/line6/midi.c err = snd_rawmidi_new(line6->card, "Line 6 MIDI", 0, 1, 1, rmidi_ret); card 237 sound/usb/line6/pcm.c if (s->pcm->card != substream->pcm->card) card 491 sound/usb/line6/pcm.c err = snd_pcm_new(line6->card, (char *)line6->properties->name, card 584 sound/usb/line6/pcm.c err = snd_ctl_add(line6->card, card 235 sound/usb/line6/pod.c struct snd_card *card = dev_to_snd_card(dev); card 236 sound/usb/line6/pod.c struct usb_line6_pod *pod = card->private_data; card 247 sound/usb/line6/pod.c struct snd_card *card = dev_to_snd_card(dev); card 248 sound/usb/line6/pod.c struct usb_line6_pod *pod = card->private_data; card 260 sound/usb/line6/pod.c struct snd_card *card = dev_to_snd_card(dev); card 261 sound/usb/line6/pod.c struct usb_line6_pod *pod = card->private_data; card 287 sound/usb/line6/pod.c if (snd_card_register(line6->card)) card 375 sound/usb/line6/pod.c err = snd_card_add_dev_attr(line6->card, &pod_dev_attr_group); card 390 sound/usb/line6/pod.c err = snd_ctl_add(line6->card, card 142 sound/usb/line6/podhd.c struct snd_card *card = dev_to_snd_card(dev); card 143 sound/usb/line6/podhd.c struct usb_line6_podhd *pod = card->private_data; card 151 sound/usb/line6/podhd.c struct snd_card *card = dev_to_snd_card(dev); card 152 sound/usb/line6/podhd.c struct usb_line6_podhd *pod = card->private_data; card 235 sound/usb/line6/podhd.c if (snd_card_register(line6->card)) card 286 sound/usb/line6/podhd.c err = snd_card_add_dev_attr(line6->card, &podhd_dev_attr_group); card 303 sound/usb/line6/podhd.c return snd_card_register(line6->card); card 424 sound/usb/line6/toneport.c err = snd_ctl_add(line6->card, card 433 sound/usb/line6/toneport.c snd_ctl_add(line6->card, card 454 sound/usb/line6/toneport.c return snd_card_register(line6->card); card 106 sound/usb/line6/variax.c snd_card_register(variax->line6.card); card 166 sound/usb/media.c struct device *ctl_dev = &chip->card->ctl_dev; card 199 sound/usb/media.c mctl->media_entity.name = chip->card->mixername; card 111 sound/usb/midi.c struct snd_card *card; card 1112 sound/usb/midi.c snd_ctl_notify(umidi->card, card 1129 sound/usb/midi.c snd_ctl_notify(umidi->card, card 1777 sound/usb/midi.c name_format, umidi->card->shortname, number + 1); card 1988 sound/usb/midi.c if (snd_ctl_add(umidi->card, umidi->roland_load_ctl) < 0) card 2243 sound/usb/midi.c err = snd_rawmidi_new(umidi->card, "USB MIDI", card 2248 sound/usb/midi.c strcpy(rmidi->name, umidi->card->shortname); card 2346 sound/usb/midi.c int __snd_usbmidi_create(struct snd_card *card, card 2361 sound/usb/midi.c umidi->card = card; card 43 sound/usb/midi.h int __snd_usbmidi_create(struct snd_card *card, card 49 sound/usb/midi.h static inline int snd_usbmidi_create(struct snd_card *card, card 54 sound/usb/midi.h return __snd_usbmidi_create(card, iface, midi_list, quirk, 0); card 81 sound/usb/misc/ua101.c struct snd_card *card; card 1171 sound/usb/misc/ua101.c static void ua101_card_free(struct snd_card *card) card 1173 sound/usb/misc/ua101.c struct ua101 *ua = card->private_data; card 1201 sound/usb/misc/ua101.c struct snd_card *card; card 1226 sound/usb/misc/ua101.c sizeof(*ua), &card); card 1231 sound/usb/misc/ua101.c card->private_free = ua101_card_free; card 1232 sound/usb/misc/ua101.c ua = card->private_data; card 1234 sound/usb/misc/ua101.c ua->card = card; card 1270 sound/usb/misc/ua101.c strcpy(card->driver, "UA-101"); card 1271 sound/usb/misc/ua101.c strcpy(card->shortname, name); card 1273 sound/usb/misc/ua101.c snprintf(ua->card->longname, sizeof(ua->card->longname), card 1292 sound/usb/misc/ua101.c err = snd_pcm_new(card, name, 0, 1, 1, &ua->pcm); card 1300 sound/usb/misc/ua101.c err = snd_usbmidi_create(card, ua->intf[INTF_MIDI], card 1305 sound/usb/misc/ua101.c err = snd_card_register(card); card 1317 sound/usb/misc/ua101.c snd_card_free(card); card 1336 sound/usb/misc/ua101.c snd_card_disconnect(ua->card); card 1352 sound/usb/misc/ua101.c snd_card_free_when_closed(ua->card); card 585 sound/usb/mixer.c while (snd_ctl_find_id(mixer->chip->card, &kctl->id)) card 587 sound/usb/mixer.c err = snd_ctl_add(mixer->chip->card, kctl); card 1321 sound/usb/mixer.c snd_ctl_notify(cval->head.mixer->chip->card, card 1523 sound/usb/mixer.c struct snd_card *card) card 1534 sound/usb/mixer.c if (strstr(card->shortname, *s)) { card 1659 sound/usb/mixer.c check_no_speaker_on_headset(kctl, mixer->chip->card); card 3220 sound/usb/mixer.c snd_ctl_notify(mixer->chip->card, SNDRV_CTL_EVENT_MASK_VALUE, card 3252 sound/usb/mixer.c snd_iprintf(buffer, "Card: %s\n", chip->card->longname); card 3310 sound/usb/mixer.c snd_ctl_notify(mixer->chip->card, SNDRV_CTL_EVENT_MASK_VALUE, card 3453 sound/usb/mixer.c if (snd_ctl_find_id(mixer->chip->card, &kctl->id)) { card 3458 sound/usb/mixer.c return snd_ctl_add(mixer->chip->card, kctl); card 3470 sound/usb/mixer.c strcpy(chip->card->mixername, "USB Mixer"); card 3521 sound/usb/mixer.c err = snd_device_new(chip->card, SNDRV_DEV_CODEC, mixer, &dev_ops); card 3526 sound/usb/mixer.c snd_card_ro_proc_new(chip->card, "usbmixer", chip, card 254 sound/usb/mixer_quirks.c err = snd_hwdep_new(mixer->chip->card, "SB remote control", 0, &hwdep); card 258 sound/usb/mixer_quirks.c "%s remote control", mixer->chip->card->shortname); card 421 sound/usb/mixer_quirks.c snd_iprintf(buffer, "%s jacks\n\n", mixer->chip->card->shortname); card 2208 sound/usb/mixer_quirks.c snd_card_ro_proc_new(mixer->chip->card, "audigy2nx", card 1178 sound/usb/mixer_scarlett_gen2.c snd_ctl_notify(mixer->chip->card, SNDRV_CTL_EVENT_MASK_INFO, card 1912 sound/usb/mixer_scarlett_gen2.c snd_ctl_notify(mixer->chip->card, SNDRV_CTL_EVENT_MASK_VALUE, card 1918 sound/usb/mixer_scarlett_gen2.c snd_ctl_notify(mixer->chip->card, SNDRV_CTL_EVENT_MASK_VALUE, card 1933 sound/usb/mixer_scarlett_gen2.c snd_ctl_notify(mixer->chip->card, SNDRV_CTL_EVENT_MASK_VALUE, card 51 sound/usb/proc.c snd_card_ro_proc_new(chip->card, "usbbus", chip, card 53 sound/usb/proc.c snd_card_ro_proc_new(chip->card, "usbid", chip, card 141 sound/usb/proc.c snd_iprintf(buffer, "%s : %s\n", stream->chip->card->longname, stream->pcm->name); card 158 sound/usb/proc.c struct snd_card *card = stream->chip->card; card 161 sound/usb/proc.c snd_card_ro_proc_new(card, name, stream, proc_pcm_format_read); card 92 sound/usb/quirks.c return snd_usbmidi_create(chip->card, intf, &chip->midi_list, quirk); card 448 sound/usb/quirks.c return __snd_usbmidi_create(chip->card, iface, card 519 sound/usb/stream.c err = snd_pcm_new(chip->card, "USB Audio", chip->pcm_devs, card 25 sound/usb/usbaudio.h struct snd_card *card; card 41 sound/usb/usx2y/us122l.c static int us122l_create_usbmidi(struct snd_card *card) card 56 sound/usb/usx2y/us122l.c struct usb_device *dev = US122L(card)->dev; card 59 sound/usb/usx2y/us122l.c return snd_usbmidi_create(card, iface, card 60 sound/usb/usx2y/us122l.c &US122L(card)->midi_list, &quirk); card 63 sound/usb/usx2y/us122l.c static int us144_create_usbmidi(struct snd_card *card) card 78 sound/usb/usx2y/us122l.c struct usb_device *dev = US122L(card)->dev; card 81 sound/usb/usx2y/us122l.c return snd_usbmidi_create(card, iface, card 82 sound/usb/usx2y/us122l.c &US122L(card)->midi_list, &quirk); card 408 sound/usb/usx2y/us122l.c snd_power_wait(hw->card, SNDRV_CTL_POWER_D0); card 436 sound/usb/usx2y/us122l.c static int usb_stream_hwdep_new(struct snd_card *card) card 440 sound/usb/usx2y/us122l.c struct usb_device *dev = US122L(card)->dev; card 442 sound/usb/usx2y/us122l.c err = snd_hwdep_new(card, SND_USB_STREAM_ID, 0, &hw); card 447 sound/usb/usx2y/us122l.c hw->private_data = US122L(card); card 461 sound/usb/usx2y/us122l.c static bool us122l_create_card(struct snd_card *card) card 464 sound/usb/usx2y/us122l.c struct us122l *us122l = US122L(card); card 486 sound/usb/usx2y/us122l.c err = us144_create_usbmidi(card); card 488 sound/usb/usx2y/us122l.c err = us122l_create_usbmidi(card); card 493 sound/usb/usx2y/us122l.c err = usb_stream_hwdep_new(card); card 509 sound/usb/usx2y/us122l.c static void snd_us122l_free(struct snd_card *card) card 511 sound/usb/usx2y/us122l.c struct us122l *us122l = US122L(card); card 523 sound/usb/usx2y/us122l.c struct snd_card *card; card 532 sound/usb/usx2y/us122l.c sizeof(struct us122l), &card); card 535 sound/usb/usx2y/us122l.c snd_us122l_card_used[US122L(card)->card_index = dev] = 1; card 536 sound/usb/usx2y/us122l.c card->private_free = snd_us122l_free; card 537 sound/usb/usx2y/us122l.c US122L(card)->dev = device; card 538 sound/usb/usx2y/us122l.c mutex_init(&US122L(card)->mutex); card 539 sound/usb/usx2y/us122l.c init_waitqueue_head(&US122L(card)->sk.sleep); card 540 sound/usb/usx2y/us122l.c US122L(card)->is_us144 = flags & US122L_FLAG_US144; card 541 sound/usb/usx2y/us122l.c INIT_LIST_HEAD(&US122L(card)->midi_list); card 542 sound/usb/usx2y/us122l.c strcpy(card->driver, "USB "NAME_ALLCAPS""); card 543 sound/usb/usx2y/us122l.c sprintf(card->shortname, "TASCAM "NAME_ALLCAPS""); card 544 sound/usb/usx2y/us122l.c sprintf(card->longname, "%s (%x:%x if %d at %03d/%03d)", card 545 sound/usb/usx2y/us122l.c card->shortname, card 549 sound/usb/usx2y/us122l.c US122L(card)->dev->bus->busnum, card 550 sound/usb/usx2y/us122l.c US122L(card)->dev->devnum card 552 sound/usb/usx2y/us122l.c *cardp = card; card 561 sound/usb/usx2y/us122l.c struct snd_card *card; card 564 sound/usb/usx2y/us122l.c err = usx2y_create_card(device, intf, &card, device_id->driver_info); card 568 sound/usb/usx2y/us122l.c if (!us122l_create_card(card)) { card 569 sound/usb/usx2y/us122l.c snd_card_free(card); card 573 sound/usb/usx2y/us122l.c err = snd_card_register(card); card 575 sound/usb/usx2y/us122l.c snd_card_free(card); card 581 sound/usb/usx2y/us122l.c *cardp = card; card 589 sound/usb/usx2y/us122l.c struct snd_card *card; card 603 sound/usb/usx2y/us122l.c err = us122l_usb_probe(usb_get_intf(intf), id, &card); card 609 sound/usb/usx2y/us122l.c usb_set_intfdata(intf, card); card 615 sound/usb/usx2y/us122l.c struct snd_card *card; card 619 sound/usb/usx2y/us122l.c card = usb_get_intfdata(intf); card 620 sound/usb/usx2y/us122l.c if (!card) card 623 sound/usb/usx2y/us122l.c snd_card_disconnect(card); card 625 sound/usb/usx2y/us122l.c us122l = US122L(card); card 642 sound/usb/usx2y/us122l.c snd_card_free(card); card 647 sound/usb/usx2y/us122l.c struct snd_card *card; card 651 sound/usb/usx2y/us122l.c card = usb_get_intfdata(intf); card 652 sound/usb/usx2y/us122l.c if (!card) card 654 sound/usb/usx2y/us122l.c snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); card 656 sound/usb/usx2y/us122l.c us122l = US122L(card); card 672 sound/usb/usx2y/us122l.c struct snd_card *card; card 677 sound/usb/usx2y/us122l.c card = usb_get_intfdata(intf); card 678 sound/usb/usx2y/us122l.c if (!card) card 681 sound/usb/usx2y/us122l.c us122l = US122L(card); card 717 sound/usb/usx2y/us122l.c snd_power_change_state(card, SNDRV_CTL_POWER_D0); card 127 sound/usb/usx2y/usX2Yhwdep.c static int usX2Y_create_usbmidi(struct snd_card *card) card 155 sound/usb/usx2y/usX2Yhwdep.c struct usb_device *dev = usX2Y(card)->dev; card 162 sound/usb/usx2y/usX2Yhwdep.c return snd_usbmidi_create(card, iface, &usX2Y(card)->midi_list, quirk); card 165 sound/usb/usx2y/usX2Yhwdep.c static int usX2Y_create_alsa_devices(struct snd_card *card) card 170 sound/usb/usx2y/usX2Yhwdep.c if ((err = usX2Y_create_usbmidi(card)) < 0) { card 174 sound/usb/usx2y/usX2Yhwdep.c if ((err = usX2Y_audio_create(card)) < 0) card 176 sound/usb/usx2y/usX2Yhwdep.c if ((err = usX2Y_hwdep_pcm_new(card)) < 0) card 178 sound/usb/usx2y/usX2Yhwdep.c if ((err = snd_card_register(card)) < 0) card 219 sound/usb/usx2y/usX2Yhwdep.c err = usX2Y_create_alsa_devices(hw->card); card 222 sound/usb/usx2y/usX2Yhwdep.c snd_card_free(hw->card); card 232 sound/usb/usx2y/usX2Yhwdep.c int usX2Y_hwdep_new(struct snd_card *card, struct usb_device* device) card 237 sound/usb/usx2y/usX2Yhwdep.c if ((err = snd_hwdep_new(card, SND_USX2Y_LOADER_ID, 0, &hw)) < 0) card 241 sound/usb/usx2y/usX2Yhwdep.c hw->private_data = usX2Y(card); card 5 sound/usb/usx2y/usX2Yhwdep.h int usX2Y_hwdep_new(struct snd_card *card, struct usb_device* device); card 157 sound/usb/usx2y/usbusx2y.c static void snd_usX2Y_card_private_free(struct snd_card *card); card 332 sound/usb/usx2y/usbusx2y.c struct snd_card * card; card 341 sound/usb/usx2y/usbusx2y.c sizeof(struct usX2Ydev), &card); card 344 sound/usb/usx2y/usbusx2y.c snd_usX2Y_card_used[usX2Y(card)->card_index = dev] = 1; card 345 sound/usb/usx2y/usbusx2y.c card->private_free = snd_usX2Y_card_private_free; card 346 sound/usb/usx2y/usbusx2y.c usX2Y(card)->dev = device; card 347 sound/usb/usx2y/usbusx2y.c init_waitqueue_head(&usX2Y(card)->prepare_wait_queue); card 348 sound/usb/usx2y/usbusx2y.c mutex_init(&usX2Y(card)->pcm_mutex); card 349 sound/usb/usx2y/usbusx2y.c INIT_LIST_HEAD(&usX2Y(card)->midi_list); card 350 sound/usb/usx2y/usbusx2y.c strcpy(card->driver, "USB "NAME_ALLCAPS""); card 351 sound/usb/usx2y/usbusx2y.c sprintf(card->shortname, "TASCAM "NAME_ALLCAPS""); card 352 sound/usb/usx2y/usbusx2y.c sprintf(card->longname, "%s (%x:%x if %d at %03d/%03d)", card 353 sound/usb/usx2y/usbusx2y.c card->shortname, card 357 sound/usb/usx2y/usbusx2y.c usX2Y(card)->dev->bus->busnum, usX2Y(card)->dev->devnum card 359 sound/usb/usx2y/usbusx2y.c *cardp = card; card 370 sound/usb/usx2y/usbusx2y.c struct snd_card * card; card 379 sound/usb/usx2y/usbusx2y.c err = usX2Y_create_card(device, intf, &card); card 382 sound/usb/usx2y/usbusx2y.c if ((err = usX2Y_hwdep_new(card, device)) < 0 || card 383 sound/usb/usx2y/usbusx2y.c (err = snd_card_register(card)) < 0) { card 384 sound/usb/usx2y/usbusx2y.c snd_card_free(card); card 387 sound/usb/usx2y/usbusx2y.c *cardp = card; card 396 sound/usb/usx2y/usbusx2y.c struct snd_card *card; card 399 sound/usb/usx2y/usbusx2y.c err = usX2Y_usb_probe(interface_to_usbdev(intf), intf, id, &card); card 402 sound/usb/usx2y/usbusx2y.c dev_set_drvdata(&intf->dev, card); card 420 sound/usb/usx2y/usbusx2y.c static void snd_usX2Y_card_private_free(struct snd_card *card) card 422 sound/usb/usx2y/usbusx2y.c kfree(usX2Y(card)->In04Buf); card 423 sound/usb/usx2y/usbusx2y.c usb_free_urb(usX2Y(card)->In04urb); card 424 sound/usb/usx2y/usbusx2y.c if (usX2Y(card)->us428ctls_sharedmem) card 425 sound/usb/usx2y/usbusx2y.c free_pages_exact(usX2Y(card)->us428ctls_sharedmem, card 426 sound/usb/usx2y/usbusx2y.c sizeof(*usX2Y(card)->us428ctls_sharedmem)); card 427 sound/usb/usx2y/usbusx2y.c if (usX2Y(card)->card_index >= 0 && usX2Y(card)->card_index < SNDRV_CARDS) card 428 sound/usb/usx2y/usbusx2y.c snd_usX2Y_card_used[usX2Y(card)->card_index] = 0; card 437 sound/usb/usx2y/usbusx2y.c struct snd_card *card = ptr; card 438 sound/usb/usx2y/usbusx2y.c struct usX2Ydev *usX2Y = usX2Y(card); card 443 sound/usb/usx2y/usbusx2y.c snd_card_disconnect(card); card 450 sound/usb/usx2y/usbusx2y.c snd_card_free(card); card 82 sound/usb/usx2y/usbusx2y.h int usX2Y_audio_create(struct snd_card *card); card 741 sound/usb/usx2y/usbusx2yaudio.c struct snd_card *card = substream->pstr->pcm->card; card 742 sound/usb/usx2y/usbusx2yaudio.c struct usX2Ydev *dev = usX2Y(card); card 745 sound/usb/usx2y/usbusx2yaudio.c mutex_lock(&usX2Y(card)->pcm_mutex); card 778 sound/usb/usx2y/usbusx2yaudio.c mutex_unlock(&usX2Y(card)->pcm_mutex); card 934 sound/usb/usx2y/usbusx2yaudio.c static int usX2Y_audio_stream_new(struct snd_card *card, int playback_endpoint, int capture_endpoint) card 939 sound/usb/usx2y/usbusx2yaudio.c usX2Y(card)->subs + 2 * usX2Y(card)->pcm_devs; card 947 sound/usb/usx2y/usbusx2yaudio.c usX2Y_substream[i]->usX2Y = usX2Y(card); card 954 sound/usb/usx2y/usbusx2yaudio.c err = snd_pcm_new(card, NAME_ALLCAPS" Audio", usX2Y(card)->pcm_devs, card 970 sound/usb/usx2y/usbusx2yaudio.c sprintf(pcm->name, NAME_ALLCAPS" Audio #%d", usX2Y(card)->pcm_devs); card 983 sound/usb/usx2y/usbusx2yaudio.c usX2Y(card)->pcm_devs++; card 991 sound/usb/usx2y/usbusx2yaudio.c int usX2Y_audio_create(struct snd_card *card) card 995 sound/usb/usx2y/usbusx2yaudio.c INIT_LIST_HEAD(&usX2Y(card)->pcm_list); card 997 sound/usb/usx2y/usbusx2yaudio.c if (0 > (err = usX2Y_audio_stream_new(card, 0xA, 0x8))) card 999 sound/usb/usx2y/usbusx2yaudio.c if (le16_to_cpu(usX2Y(card)->dev->descriptor.idProduct) == USB_ID_US428) card 1000 sound/usb/usx2y/usbusx2yaudio.c if (0 > (err = usX2Y_audio_stream_new(card, 0, 0xA))) card 1002 sound/usb/usx2y/usbusx2yaudio.c if (le16_to_cpu(usX2Y(card)->dev->descriptor.idProduct) != USB_ID_US122) card 1003 sound/usb/usx2y/usbusx2yaudio.c err = usX2Y_rate_set(usX2Y(card), 44100); // Lets us428 recognize output-volume settings, disturbs us122. card 593 sound/usb/usx2y/usx2yhwdeppcm.c static int usX2Y_pcms_busy_check(struct snd_card *card) card 595 sound/usb/usx2y/usx2yhwdeppcm.c struct usX2Ydev *dev = usX2Y(card); card 609 sound/usb/usx2y/usx2yhwdeppcm.c struct snd_card *card = hw->card; card 612 sound/usb/usx2y/usx2yhwdeppcm.c mutex_lock(&usX2Y(card)->pcm_mutex); card 613 sound/usb/usx2y/usx2yhwdeppcm.c err = usX2Y_pcms_busy_check(card); card 615 sound/usb/usx2y/usx2yhwdeppcm.c usX2Y(card)->chip_status |= USX2Y_STAT_CHIP_MMAP_PCM_URBS; card 616 sound/usb/usx2y/usx2yhwdeppcm.c mutex_unlock(&usX2Y(card)->pcm_mutex); card 623 sound/usb/usx2y/usx2yhwdeppcm.c struct snd_card *card = hw->card; card 626 sound/usb/usx2y/usx2yhwdeppcm.c mutex_lock(&usX2Y(card)->pcm_mutex); card 627 sound/usb/usx2y/usx2yhwdeppcm.c err = usX2Y_pcms_busy_check(card); card 629 sound/usb/usx2y/usx2yhwdeppcm.c usX2Y(hw->card)->chip_status &= ~USX2Y_STAT_CHIP_MMAP_PCM_URBS; card 630 sound/usb/usx2y/usx2yhwdeppcm.c mutex_unlock(&usX2Y(card)->pcm_mutex); card 697 sound/usb/usx2y/usx2yhwdeppcm.c int usX2Y_hwdep_pcm_new(struct snd_card *card) card 702 sound/usb/usx2y/usx2yhwdeppcm.c struct usb_device *dev = usX2Y(card)->dev; card 706 sound/usb/usx2y/usx2yhwdeppcm.c if ((err = snd_hwdep_new(card, SND_USX2Y_USBPCM_ID, 1, &hw)) < 0) card 710 sound/usb/usx2y/usx2yhwdeppcm.c hw->private_data = usX2Y(card); card 718 sound/usb/usx2y/usx2yhwdeppcm.c err = snd_pcm_new(card, NAME_ALLCAPS" hwdep Audio", 2, 1, 1, &pcm); card 725 sound/usb/usx2y/usx2yhwdeppcm.c pcm->private_data = usX2Y(card)->subs; card 743 sound/usb/usx2y/usx2yhwdeppcm.c int usX2Y_hwdep_pcm_new(struct snd_card *card) card 23 sound/usb/usx2y/usx2yhwdeppcm.h int usX2Y_hwdep_pcm_new(struct snd_card *card); card 1630 sound/x86/intel_hdmi_audio.c err = snd_jack_new(ctx->card_ctx->card, hdmi_str, card 1647 sound/x86/intel_hdmi_audio.c snd_power_change_state(card_ctx->card, SNDRV_CTL_POWER_D3hot); card 1658 sound/x86/intel_hdmi_audio.c snd_power_change_state(card_ctx->card, SNDRV_CTL_POWER_D0); card 1664 sound/x86/intel_hdmi_audio.c static void hdmi_lpe_audio_free(struct snd_card *card) card 1666 sound/x86/intel_hdmi_audio.c struct snd_intelhad_card *card_ctx = card->private_data; card 1694 sound/x86/intel_hdmi_audio.c struct snd_card *card; card 1724 sound/x86/intel_hdmi_audio.c THIS_MODULE, sizeof(*card_ctx), &card); card 1728 sound/x86/intel_hdmi_audio.c card_ctx = card->private_data; card 1730 sound/x86/intel_hdmi_audio.c card_ctx->card = card; card 1731 sound/x86/intel_hdmi_audio.c strcpy(card->driver, INTEL_HAD); card 1732 sound/x86/intel_hdmi_audio.c strcpy(card->shortname, "Intel HDMI/DP LPE Audio"); card 1733 sound/x86/intel_hdmi_audio.c strcpy(card->longname, "Intel HDMI/DP LPE Audio"); card 1737 sound/x86/intel_hdmi_audio.c card->private_free = hdmi_lpe_audio_free; card 1791 sound/x86/intel_hdmi_audio.c ret = snd_pcm_new(card, INTEL_HAD, port, MAX_PB_STREAMS, card 1799 sound/x86/intel_hdmi_audio.c strlcpy(pcm->name, card->shortname, strlen(card->shortname)); card 1808 sound/x86/intel_hdmi_audio.c card->dev, card 1823 sound/x86/intel_hdmi_audio.c ret = snd_ctl_add(card, kctl); card 1838 sound/x86/intel_hdmi_audio.c ret = snd_card_register(card); card 1859 sound/x86/intel_hdmi_audio.c snd_card_free(card); card 1872 sound/x86/intel_hdmi_audio.c snd_card_free(card_ctx->card); card 135 sound/x86/intel_hdmi_audio.h struct snd_card *card; card 61 sound/xen/xen_snd_front_alsa.c struct snd_card *card; card 739 sound/xen/xen_snd_front_alsa.c devm_kcalloc(&card_info->card->card_dev, card 749 sound/xen/xen_snd_front_alsa.c devm_kcalloc(&card_info->card->card_dev, card 776 sound/xen/xen_snd_front_alsa.c ret = snd_pcm_new(card_info->card, instance_cfg->name, card 807 sound/xen/xen_snd_front_alsa.c struct snd_card *card; card 813 sound/xen/xen_snd_front_alsa.c sizeof(struct xen_snd_front_card_info), &card); card 817 sound/xen/xen_snd_front_alsa.c card_info = card->private_data; card 820 sound/xen/xen_snd_front_alsa.c card_info->card = card; card 840 sound/xen/xen_snd_front_alsa.c strncpy(card->driver, XENSND_DRIVER_NAME, sizeof(card->driver)); card 841 sound/xen/xen_snd_front_alsa.c strncpy(card->shortname, cfg->name_short, sizeof(card->shortname)); card 842 sound/xen/xen_snd_front_alsa.c strncpy(card->longname, cfg->name_long, sizeof(card->longname)); card 844 sound/xen/xen_snd_front_alsa.c ret = snd_card_register(card); card 851 sound/xen/xen_snd_front_alsa.c snd_card_free(card); card 858 sound/xen/xen_snd_front_alsa.c struct snd_card *card; card 864 sound/xen/xen_snd_front_alsa.c card = card_info->card; card 865 sound/xen/xen_snd_front_alsa.c if (!card) card 869 sound/xen/xen_snd_front_alsa.c card->number); card 870 sound/xen/xen_snd_front_alsa.c snd_card_free(card); card 873 sound/xen/xen_snd_front_alsa.c card_info->card = NULL; card 121 tools/include/uapi/sound/asound.h int card; /* R: card number */ card 334 tools/include/uapi/sound/asound.h int card; /* R: card number */ card 633 tools/include/uapi/sound/asound.h int card; /* R: card number */ card 702 tools/include/uapi/sound/asound.h int card; card 710 tools/include/uapi/sound/asound.h int card; /* card number */ card 743 tools/include/uapi/sound/asound.h int card; /* card number */ card 828 tools/include/uapi/sound/asound.h int card; /* card number */