Home
last modified time | relevance | path

Searched refs:card (Results 1 – 25 of 680) sorted by relevance

12345678910>>...28

/drivers/isdn/isdnloop/
Disdnloop.c37 isdnloop_free_queue(isdnloop_card *card, int channel) in isdnloop_free_queue() argument
39 struct sk_buff_head *queue = &card->bqueue[channel]; in isdnloop_free_queue()
42 card->sndcount[channel] = 0; in isdnloop_free_queue()
54 isdnloop_bchan_send(isdnloop_card *card, int ch) in isdnloop_bchan_send() argument
56 isdnloop_card *rcard = card->rcard[ch]; in isdnloop_bchan_send()
57 int rch = card->rch[ch], len, ack; in isdnloop_bchan_send()
61 while (card->sndcount[ch]) { in isdnloop_bchan_send()
62 skb = skb_dequeue(&card->bqueue[ch]); in isdnloop_bchan_send()
65 card->sndcount[ch] -= len; in isdnloop_bchan_send()
67 cmd.driver = card->myid; in isdnloop_bchan_send()
[all …]
/drivers/block/rsxx/
Dcore.c67 struct rsxx_cardinfo *card = m->private; in rsxx_attr_pci_regs_show() local
70 ioread32(card->regmap + HWID)); in rsxx_attr_pci_regs_show()
72 ioread32(card->regmap + SCRATCH)); in rsxx_attr_pci_regs_show()
74 ioread32(card->regmap + IER)); in rsxx_attr_pci_regs_show()
76 ioread32(card->regmap + IPR)); in rsxx_attr_pci_regs_show()
78 ioread32(card->regmap + CREG_CMD)); in rsxx_attr_pci_regs_show()
80 ioread32(card->regmap + CREG_ADD)); in rsxx_attr_pci_regs_show()
82 ioread32(card->regmap + CREG_CNT)); in rsxx_attr_pci_regs_show()
84 ioread32(card->regmap + CREG_STAT)); in rsxx_attr_pci_regs_show()
86 ioread32(card->regmap + CREG_DATA0)); in rsxx_attr_pci_regs_show()
[all …]
Dcregs.c32 typedef void (*creg_cmd_cb)(struct rsxx_cardinfo *card,
61 static int copy_to_creg_data(struct rsxx_cardinfo *card, in copy_to_creg_data() argument
69 if (unlikely(card->eeh_state)) in copy_to_creg_data()
78 iowrite32be(data[i], card->regmap + CREG_DATA(i)); in copy_to_creg_data()
80 iowrite32(data[i], card->regmap + CREG_DATA(i)); in copy_to_creg_data()
87 static int copy_from_creg_data(struct rsxx_cardinfo *card, in copy_from_creg_data() argument
95 if (unlikely(card->eeh_state)) in copy_from_creg_data()
104 data[i] = ioread32be(card->regmap + CREG_DATA(i)); in copy_from_creg_data()
106 data[i] = ioread32(card->regmap + CREG_DATA(i)); in copy_from_creg_data()
112 static void creg_issue_cmd(struct rsxx_cardinfo *card, struct creg_cmd *cmd) in creg_issue_cmd() argument
[all …]
Ddev.c73 struct rsxx_cardinfo *card = bdev->bd_disk->private_data; in rsxx_blkdev_ioctl() local
77 return rsxx_reg_access(card, (void __user *)arg, 1); in rsxx_blkdev_ioctl()
79 return rsxx_reg_access(card, (void __user *)arg, 0); in rsxx_blkdev_ioctl()
87 struct rsxx_cardinfo *card = bdev->bd_disk->private_data; in rsxx_getgeo() local
88 u64 blocks = card->size8 >> 9; in rsxx_getgeo()
94 if (card->size8) { in rsxx_getgeo()
113 static void disk_stats_start(struct rsxx_cardinfo *card, struct bio *bio) in disk_stats_start() argument
116 &card->gendisk->part0); in disk_stats_start()
119 static void disk_stats_complete(struct rsxx_cardinfo *card, in disk_stats_complete() argument
123 generic_end_io_acct(bio_data_dir(bio), &card->gendisk->part0, in disk_stats_complete()
[all …]
/drivers/atm/
Dnicstar.c104 #define CMD_BUSY(card) (readl((card)->membase + STAT) & NS_STAT_CMDBZ) argument
119 static u32 ns_read_sram(ns_dev * card, u32 sram_address);
120 static void ns_write_sram(ns_dev * card, u32 sram_address, u32 * value,
123 static void ns_init_card_error(ns_dev * card, int error);
124 static scq_info *get_scq(ns_dev *card, int size, u32 scd);
125 static void free_scq(ns_dev *card, scq_info * scq, struct atm_vcc *vcc);
130 static void fill_tst(ns_dev * card, int n, vc_map * vc);
132 static int push_scqe(ns_dev * card, vc_map * vc, scq_info * scq, ns_scqe * tbd,
134 static void process_tsq(ns_dev * card);
135 static void drain_scq(ns_dev * card, scq_info * scq, int pos);
[all …]
Didt77252.c161 waitfor_idle(struct idt77252_dev *card) in waitfor_idle() argument
171 read_sram(struct idt77252_dev *card, unsigned long addr) in read_sram() argument
176 spin_lock_irqsave(&card->cmd_lock, flags); in read_sram()
178 waitfor_idle(card); in read_sram()
180 spin_unlock_irqrestore(&card->cmd_lock, flags); in read_sram()
185 write_sram(struct idt77252_dev *card, unsigned long addr, u32 value) in write_sram() argument
190 (((addr > card->tst[0] + card->tst_size - 2) && in write_sram()
191 (addr < card->tst[0] + card->tst_size)) || in write_sram()
192 ((addr > card->tst[1] + card->tst_size - 2) && in write_sram()
193 (addr < card->tst[1] + card->tst_size)))) { in write_sram()
[all …]
/drivers/mmc/core/
Dmmc.c78 static int mmc_decode_cid(struct mmc_card *card) in mmc_decode_cid() argument
80 u32 *resp = card->raw_cid; in mmc_decode_cid()
86 switch (card->csd.mmca_vsn) { in mmc_decode_cid()
89 card->cid.manfid = UNSTUFF_BITS(resp, 104, 24); in mmc_decode_cid()
90 card->cid.prod_name[0] = UNSTUFF_BITS(resp, 96, 8); in mmc_decode_cid()
91 card->cid.prod_name[1] = UNSTUFF_BITS(resp, 88, 8); in mmc_decode_cid()
92 card->cid.prod_name[2] = UNSTUFF_BITS(resp, 80, 8); in mmc_decode_cid()
93 card->cid.prod_name[3] = UNSTUFF_BITS(resp, 72, 8); in mmc_decode_cid()
94 card->cid.prod_name[4] = UNSTUFF_BITS(resp, 64, 8); in mmc_decode_cid()
95 card->cid.prod_name[5] = UNSTUFF_BITS(resp, 56, 8); in mmc_decode_cid()
[all …]
Dsd.c73 void mmc_decode_cid(struct mmc_card *card) in mmc_decode_cid() argument
75 u32 *resp = card->raw_cid; in mmc_decode_cid()
81 card->cid.manfid = UNSTUFF_BITS(resp, 120, 8); in mmc_decode_cid()
82 card->cid.oemid = UNSTUFF_BITS(resp, 104, 16); in mmc_decode_cid()
83 card->cid.prod_name[0] = UNSTUFF_BITS(resp, 96, 8); in mmc_decode_cid()
84 card->cid.prod_name[1] = UNSTUFF_BITS(resp, 88, 8); in mmc_decode_cid()
85 card->cid.prod_name[2] = UNSTUFF_BITS(resp, 80, 8); in mmc_decode_cid()
86 card->cid.prod_name[3] = UNSTUFF_BITS(resp, 72, 8); in mmc_decode_cid()
87 card->cid.prod_name[4] = UNSTUFF_BITS(resp, 64, 8); in mmc_decode_cid()
88 card->cid.hwrev = UNSTUFF_BITS(resp, 60, 4); in mmc_decode_cid()
[all …]
Dsdio.c42 if (mmc_card_nonstd_func_interface(func->card)) { in sdio_read_fbr()
47 ret = mmc_io_rw_direct(func->card, 0, 0, in sdio_read_fbr()
55 ret = mmc_io_rw_direct(func->card, 0, 0, in sdio_read_fbr()
67 static int sdio_init_func(struct mmc_card *card, unsigned int fn) in sdio_init_func() argument
74 func = sdio_alloc_func(card); in sdio_init_func()
80 if (!(card->quirks & MMC_QUIRK_NONSTD_SDIO)) { in sdio_init_func()
89 func->vendor = func->card->cis.vendor; in sdio_init_func()
90 func->device = func->card->cis.device; in sdio_init_func()
91 func->max_blksize = func->card->cis.blksize; in sdio_init_func()
94 card->sdio_func[fn - 1] = func; in sdio_init_func()
[all …]
/drivers/s390/net/
Dqeth_l2_main.c35 static void qeth_bridgeport_query_support(struct qeth_card *card);
36 static void qeth_bridge_state_change(struct qeth_card *card,
38 static void qeth_bridge_host_event(struct qeth_card *card,
43 struct qeth_card *card = dev->ml_priv; in qeth_l2_do_ioctl() local
47 if (!card) in qeth_l2_do_ioctl()
50 if (!qeth_card_hw_is_reachable(card)) in qeth_l2_do_ioctl()
53 if (card->info.type == QETH_CARD_TYPE_OSN) in qeth_l2_do_ioctl()
58 rc = qeth_snmp_command(card, rq->ifr_ifru.ifru_data); in qeth_l2_do_ioctl()
61 if ((card->info.type == QETH_CARD_TYPE_OSD || in qeth_l2_do_ioctl()
62 card->info.type == QETH_CARD_TYPE_OSM || in qeth_l2_do_ioctl()
[all …]
Dqeth_l3_main.c157 static struct qeth_ipaddr *qeth_l3_find_addr_by_ip(struct qeth_card *card, in qeth_l3_find_addr_by_ip() argument
164 hash_for_each_possible(card->ip_mc_htable, addr, hnode, key) in qeth_l3_find_addr_by_ip()
168 hash_for_each_possible(card->ip_htable, addr, hnode, key) in qeth_l3_find_addr_by_ip()
189 static bool qeth_l3_is_addr_covered_by_ipato(struct qeth_card *card, in qeth_l3_is_addr_covered_by_ipato() argument
197 if (!card->ipato.enabled) in qeth_l3_is_addr_covered_by_ipato()
204 list_for_each_entry(ipatoe, &card->ipato.entries, entry) { in qeth_l3_is_addr_covered_by_ipato()
220 if ((addr->proto == QETH_PROT_IPV4) && card->ipato.invert4) in qeth_l3_is_addr_covered_by_ipato()
222 else if ((addr->proto == QETH_PROT_IPV6) && card->ipato.invert6) in qeth_l3_is_addr_covered_by_ipato()
228 int qeth_l3_delete_ip(struct qeth_card *card, struct qeth_ipaddr *tmp_addr) in qeth_l3_delete_ip() argument
233 QETH_CARD_TEXT(card, 4, "delip"); in qeth_l3_delete_ip()
[all …]
Dlcs.c171 lcs_free_card(struct lcs_card *card) in lcs_free_card() argument
174 LCS_DBF_HEX(2, setup, &card, sizeof(void*)); in lcs_free_card()
175 kfree(card); in lcs_free_card()
184 struct lcs_card *card; in lcs_alloc_card() local
189 card = kzalloc(sizeof(struct lcs_card), GFP_KERNEL | GFP_DMA); in lcs_alloc_card()
190 if (card == NULL) in lcs_alloc_card()
192 card->lan_type = LCS_FRAME_TYPE_AUTO; in lcs_alloc_card()
193 card->pkt_seq = 0; in lcs_alloc_card()
194 card->lancmd_timeout = LCS_LANCMD_TIMEOUT_DEFAULT; in lcs_alloc_card()
196 rc = lcs_alloc_channel(&card->read); in lcs_alloc_card()
[all …]
Dqeth_core_main.c81 int qeth_card_hw_is_reachable(struct qeth_card *card) in qeth_card_hw_is_reachable() argument
83 return (card->state == CARD_STATE_SOFTSETUP) || in qeth_card_hw_is_reachable()
84 (card->state == CARD_STATE_UP); in qeth_card_hw_is_reachable()
90 struct qeth_card *card; in qeth_close_dev_handler() local
92 card = container_of(work, struct qeth_card, close_dev_work); in qeth_close_dev_handler()
93 QETH_CARD_TEXT(card, 2, "cldevhdl"); in qeth_close_dev_handler()
95 dev_close(card->dev); in qeth_close_dev_handler()
97 ccwgroup_set_offline(card->gdev); in qeth_close_dev_handler()
100 void qeth_close_dev(struct qeth_card *card) in qeth_close_dev() argument
102 QETH_CARD_TEXT(card, 2, "cldevsubm"); in qeth_close_dev()
[all …]
/drivers/staging/i4l/icn/
Dicn.c57 icn_free_queue(icn_card *card, int channel) in icn_free_queue() argument
59 struct sk_buff_head *queue = &card->spqueue[channel]; in icn_free_queue()
63 card->xlen[channel] = 0; in icn_free_queue()
64 card->sndcount[channel] = 0; in icn_free_queue()
65 skb = card->xskb[channel]; in icn_free_queue()
67 card->xskb[channel] = NULL; in icn_free_queue()
96 icn_disable_ram(icn_card *card) in icn_disable_ram() argument
105 icn_enable_ram(icn_card *card) in icn_enable_ram() argument
116 icn_map_channel(icn_card *card, int channel) in icn_map_channel() argument
121 if ((channel == dev.channel) && (card == dev.mcard)) in icn_map_channel()
[all …]
/drivers/isdn/hardware/mISDN/
Dnetjet.c106 _set_debug(struct tiger_hw *card) in _set_debug() argument
108 card->isac.dch.debug = debug; in _set_debug()
109 card->bc[0].bch.debug = debug; in _set_debug()
110 card->bc[1].bch.debug = debug; in _set_debug()
117 struct tiger_hw *card; in set_debug() local
122 list_for_each_entry(card, &Cards, list) in set_debug()
123 _set_debug(card); in set_debug()
136 nj_disable_hwirq(struct tiger_hw *card) in nj_disable_hwirq() argument
138 outb(0, card->base + NJ_IRQMASK0); in nj_disable_hwirq()
139 outb(0, card->base + NJ_IRQMASK1); in nj_disable_hwirq()
[all …]
Dw6692.c96 _set_debug(struct w6692_hw *card) in _set_debug() argument
98 card->dch.debug = debug; in _set_debug()
99 card->bc[0].bch.debug = debug; in _set_debug()
100 card->bc[1].bch.debug = debug; in _set_debug()
107 struct w6692_hw *card; in set_debug() local
112 list_for_each_entry(card, &Cards, list) in set_debug()
113 _set_debug(card); in set_debug()
130 ReadW6692(struct w6692_hw *card, u8 offset) in ReadW6692() argument
132 return inb(card->addr + offset); in ReadW6692()
136 WriteW6692(struct w6692_hw *card, u8 offset, u8 value) in WriteW6692() argument
[all …]
/drivers/isdn/hysdn/
Dboardergo.c37 hysdn_card *card = dev_id; /* parameter from irq */ in ergo_interrupt() local
42 if (!card) in ergo_interrupt()
44 if (!card->irq_enabled) in ergo_interrupt()
47 spin_lock_irqsave(&card->hysdn_lock, flags); /* no further irqs allowed */ in ergo_interrupt()
49 if (!(bytein(card->iobase + PCI9050_INTR_REG) & PCI9050_INTR_REG_STAT1)) { in ergo_interrupt()
50 spin_unlock_irqrestore(&card->hysdn_lock, flags); /* restore old state */ in ergo_interrupt()
54 dpr = card->dpram; in ergo_interrupt()
60 if (!card->hw_lock) in ergo_interrupt()
61 schedule_work(&card->irq_queue); in ergo_interrupt()
62 spin_unlock_irqrestore(&card->hysdn_lock, flags); in ergo_interrupt()
[all …]
/drivers/block/
Dumem.c148 static void check_batteries(struct cardinfo *card);
150 static int get_userbit(struct cardinfo *card, int bit) in get_userbit() argument
154 led = readb(card->csr_remap + MEMCTRLCMD_LEDCTRL); in get_userbit()
158 static int set_userbit(struct cardinfo *card, int bit, unsigned char state) in set_userbit() argument
162 led = readb(card->csr_remap + MEMCTRLCMD_LEDCTRL); in set_userbit()
167 writeb(led, card->csr_remap + MEMCTRLCMD_LEDCTRL); in set_userbit()
175 static void set_led(struct cardinfo *card, int shift, unsigned char state) in set_led() argument
179 led = readb(card->csr_remap + MEMCTRLCMD_LEDCTRL); in set_led()
186 writeb(led, card->csr_remap + MEMCTRLCMD_LEDCTRL); in set_led()
191 static void dump_regs(struct cardinfo *card) in dump_regs() argument
[all …]
/drivers/net/ethernet/toshiba/
Dps3_gelic_net.c62 int gelic_card_set_irq_mask(struct gelic_card *card, u64 mask) in gelic_card_set_irq_mask() argument
66 status = lv1_net_set_interrupt_mask(bus_id(card), dev_id(card), in gelic_card_set_irq_mask()
69 dev_info(ctodev(card), in gelic_card_set_irq_mask()
74 static void gelic_card_rx_irq_on(struct gelic_card *card) in gelic_card_rx_irq_on() argument
76 card->irq_mask |= GELIC_CARD_RXINT; in gelic_card_rx_irq_on()
77 gelic_card_set_irq_mask(card, card->irq_mask); in gelic_card_rx_irq_on()
79 static void gelic_card_rx_irq_off(struct gelic_card *card) in gelic_card_rx_irq_off() argument
81 card->irq_mask &= ~GELIC_CARD_RXINT; in gelic_card_rx_irq_off()
82 gelic_card_set_irq_mask(card, card->irq_mask); in gelic_card_rx_irq_off()
85 static void gelic_card_get_ether_port_status(struct gelic_card *card, in gelic_card_get_ether_port_status() argument
[all …]
Dspider_net.c91 spider_net_read_reg(struct spider_net_card *card, u32 reg) in spider_net_read_reg() argument
97 return in_be32(card->regs + reg); in spider_net_read_reg()
107 spider_net_write_reg(struct spider_net_card *card, u32 reg, u32 value) in spider_net_write_reg() argument
113 out_be32(card->regs + reg, value); in spider_net_write_reg()
131 struct spider_net_card *card = netdev_priv(netdev); in spider_net_write_phy() local
137 spider_net_write_reg(card, SPIDER_NET_GPCWOPCMD, writevalue); in spider_net_write_phy()
154 struct spider_net_card *card = netdev_priv(netdev); in spider_net_read_phy() local
158 spider_net_write_reg(card, SPIDER_NET_GPCROPCMD, readvalue); in spider_net_read_phy()
164 readvalue = spider_net_read_reg(card, SPIDER_NET_GPCROPCMD); in spider_net_read_phy()
177 spider_net_setup_aneg(struct spider_net_card *card) in spider_net_setup_aneg() argument
[all …]
/drivers/isdn/hardware/avm/
Dc4.c59 static void c4_dispatch_tx(avmcard *card);
146 static inline int wait_for_doorbell(avmcard *card, unsigned long t) in wait_for_doorbell() argument
151 while (c4inmeml(card->mbase + DOORBELL) != 0xffffffff) { in wait_for_doorbell()
159 static int c4_poke(avmcard *card, unsigned long off, unsigned long value) in c4_poke() argument
162 if (wait_for_doorbell(card, HZ / 10) < 0) in c4_poke()
165 c4outmeml(card->mbase + MBOX_PEEK_POKE, off); in c4_poke()
166 c4outmeml(card->mbase + DOORBELL, DBELL_ADDR); in c4_poke()
168 if (wait_for_doorbell(card, HZ / 10) < 0) in c4_poke()
171 c4outmeml(card->mbase + MBOX_PEEK_POKE, value); in c4_poke()
172 c4outmeml(card->mbase + DOORBELL, DBELL_DATA | DBELL_ADDR); in c4_poke()
[all …]
Db1dma.c48 static void b1dma_dispatch_tx(avmcard *card);
86 static inline void b1dma_writel(avmcard *card, u32 value, int off) in b1dma_writel() argument
88 writel(value, card->mbase + off); in b1dma_writel()
91 static inline u32 b1dma_readl(avmcard *card, int off) in b1dma_readl() argument
93 return readl(card->mbase + off); in b1dma_readl()
108 static int b1dma_tolink(avmcard *card, void *buf, unsigned int len) in b1dma_tolink() argument
113 while (!b1dma_tx_empty(card->port) in b1dma_tolink()
115 if (!b1dma_tx_empty(card->port)) in b1dma_tolink()
117 t1outp(card->port, 0x01, *s++); in b1dma_tolink()
122 static int b1dma_fromlink(avmcard *card, void *buf, unsigned int len) in b1dma_fromlink() argument
[all …]
/drivers/staging/i4l/act2000/
Dact2000_isa.c67 act2000_card *card = dev_id; in act2000_isa_interrupt() local
75 act2000_isa_receive(card); in act2000_isa_interrupt()
84 printk(KERN_DEBUG "act2000: ?IRQ %d %02x\n", card->irq, istatus); in act2000_isa_interrupt()
89 act2000_isa_select_irq(act2000_card *card) in act2000_isa_select_irq() argument
94 switch (card->irq) { in act2000_isa_select_irq()
121 act2000_isa_enable_irq(act2000_card *card) in act2000_isa_enable_irq() argument
123 act2000_isa_select_irq(card); in act2000_isa_enable_irq()
133 act2000_isa_config_irq(act2000_card *card, short irq) in act2000_isa_config_irq() argument
137 if (card->flags & ACT2000_FLAGS_IVALID) in act2000_isa_config_irq()
138 free_irq(card->irq, card); in act2000_isa_config_irq()
[all …]
Dmodule.c51 find_channel(act2000_card *card, int channel) in find_channel() argument
54 return &(card->bch[channel]); in find_channel()
63 act2000_clear_msn(act2000_card *card) in act2000_clear_msn() argument
65 struct msn_entry *p = card->msn_list; in act2000_clear_msn()
69 spin_lock_irqsave(&card->lock, flags); in act2000_clear_msn()
70 card->msn_list = NULL; in act2000_clear_msn()
71 spin_unlock_irqrestore(&card->lock, flags); in act2000_clear_msn()
85 act2000_find_msn(act2000_card *card, char *msn, int ia5) in act2000_find_msn() argument
87 struct msn_entry *p = card->msn_list; in act2000_find_msn()
108 act2000_find_eaz(act2000_card *card, char eaz) in act2000_find_eaz() argument
[all …]
/drivers/staging/vme/devices/
Dvme_pio2_core.c46 static int pio2_get_led(struct pio2_card *card) in pio2_get_led() argument
49 return card->led; in pio2_get_led()
52 static int pio2_set_led(struct pio2_card *card, int state) in pio2_set_led() argument
57 reg = card->irq_level; in pio2_set_led()
66 retval = vme_master_write(card->window, &reg, 1, PIO2_REGS_CTRL); in pio2_set_led()
70 card->led = state ? 1 : 0; in pio2_set_led()
79 struct pio2_card *card = ptr; in pio2_int() local
85 dev_warn(&card->vdev->dev, "Spurious Interrupt\n"); in pio2_int()
92 retval = vme_master_read(card->window, &reg, 1, in pio2_int()
95 dev_err(&card->vdev->dev, in pio2_int()
[all …]

12345678910>>...28