Home
last modified time | relevance | path

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

12345678910>>...27

/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 if ((skb = skb_dequeue(&card->bqueue[ch]))) { in isdnloop_bchan_send()
64 card->sndcount[ch] -= len; in isdnloop_bchan_send()
66 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
115 struct hd_struct *part0 = &card->gendisk->part0; in disk_stats_start()
127 static void disk_stats_complete(struct rsxx_cardinfo *card, in disk_stats_complete() argument
131 struct hd_struct *part0 = &card->gendisk->part0; in disk_stats_complete()
[all …]
/drivers/mmc/core/
Dmmc.c63 static int mmc_decode_cid(struct mmc_card *card) in mmc_decode_cid() argument
65 u32 *resp = card->raw_cid; in mmc_decode_cid()
71 switch (card->csd.mmca_vsn) { in mmc_decode_cid()
74 card->cid.manfid = UNSTUFF_BITS(resp, 104, 24); in mmc_decode_cid()
75 card->cid.prod_name[0] = UNSTUFF_BITS(resp, 96, 8); in mmc_decode_cid()
76 card->cid.prod_name[1] = UNSTUFF_BITS(resp, 88, 8); in mmc_decode_cid()
77 card->cid.prod_name[2] = UNSTUFF_BITS(resp, 80, 8); in mmc_decode_cid()
78 card->cid.prod_name[3] = UNSTUFF_BITS(resp, 72, 8); in mmc_decode_cid()
79 card->cid.prod_name[4] = UNSTUFF_BITS(resp, 64, 8); in mmc_decode_cid()
80 card->cid.prod_name[5] = UNSTUFF_BITS(resp, 56, 8); in mmc_decode_cid()
[all …]
Dsdio.c41 if (mmc_card_nonstd_func_interface(func->card)) { in sdio_read_fbr()
46 ret = mmc_io_rw_direct(func->card, 0, 0, in sdio_read_fbr()
54 ret = mmc_io_rw_direct(func->card, 0, 0, in sdio_read_fbr()
66 static int sdio_init_func(struct mmc_card *card, unsigned int fn) in sdio_init_func() argument
73 func = sdio_alloc_func(card); in sdio_init_func()
79 if (!(card->quirks & MMC_QUIRK_NONSTD_SDIO)) { in sdio_init_func()
88 func->vendor = func->card->cis.vendor; in sdio_init_func()
89 func->device = func->card->cis.device; in sdio_init_func()
90 func->max_blksize = func->card->cis.blksize; in sdio_init_func()
93 card->sdio_func[fn - 1] = func; in sdio_init_func()
[all …]
/drivers/atm/
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 …]
Dnicstar.c107 #define CMD_BUSY(card) (readl((card)->membase + STAT) & NS_STAT_CMDBZ) argument
122 static u32 ns_read_sram(ns_dev * card, u32 sram_address);
123 static void ns_write_sram(ns_dev * card, u32 sram_address, u32 * value,
126 static void ns_init_card_error(ns_dev * card, int error);
127 static scq_info *get_scq(ns_dev *card, int size, u32 scd);
128 static void free_scq(ns_dev *card, scq_info * scq, struct atm_vcc *vcc);
133 static void fill_tst(ns_dev * card, int n, vc_map * vc);
135 static int push_scqe(ns_dev * card, vc_map * vc, scq_info * scq, ns_scqe * tbd,
137 static void process_tsq(ns_dev * card);
138 static void drain_scq(ns_dev * card, scq_info * scq, int pos);
[all …]
/drivers/s390/net/
Dqeth_l2_main.c36 static void qeth_bridgeport_query_support(struct qeth_card *card);
37 static void qeth_bridge_state_change(struct qeth_card *card,
39 static void qeth_bridge_host_event(struct qeth_card *card,
44 struct qeth_card *card = dev->ml_priv; in qeth_l2_do_ioctl() local
48 if (!card) in qeth_l2_do_ioctl()
51 if ((card->state != CARD_STATE_UP) && in qeth_l2_do_ioctl()
52 (card->state != CARD_STATE_SOFTSETUP)) in qeth_l2_do_ioctl()
55 if (card->info.type == QETH_CARD_TYPE_OSN) in qeth_l2_do_ioctl()
60 rc = qeth_snmp_command(card, rq->ifr_ifru.ifru_data); in qeth_l2_do_ioctl()
63 if ((card->info.type == QETH_CARD_TYPE_OSD || in qeth_l2_do_ioctl()
[all …]
Dqeth_l3_main.c170 int qeth_l3_is_addr_covered_by_ipato(struct qeth_card *card, in qeth_l3_is_addr_covered_by_ipato() argument
178 if (!card->ipato.enabled) in qeth_l3_is_addr_covered_by_ipato()
183 list_for_each_entry(ipatoe, &card->ipato.entries, entry) { in qeth_l3_is_addr_covered_by_ipato()
199 if ((addr->proto == QETH_PROT_IPV4) && card->ipato.invert4) in qeth_l3_is_addr_covered_by_ipato()
201 else if ((addr->proto == QETH_PROT_IPV6) && card->ipato.invert6) in qeth_l3_is_addr_covered_by_ipato()
212 static int __qeth_l3_insert_ip_todo(struct qeth_card *card, in __qeth_l3_insert_ip_todo() argument
218 if (card->options.sniffer) in __qeth_l3_insert_ip_todo()
220 list_for_each_entry_safe(tmp, t, card->ip_tbd_list, entry) { in __qeth_l3_insert_ip_todo()
256 list_add(&addr->entry, card->ip_tbd_list); in __qeth_l3_insert_ip_todo()
261 qeth_l3_is_addr_covered_by_ipato(card, addr)) { in __qeth_l3_insert_ip_todo()
[all …]
Dqeth_core_main.c76 int qeth_card_hw_is_reachable(struct qeth_card *card) in qeth_card_hw_is_reachable() argument
78 return (card->state == CARD_STATE_SOFTSETUP) || in qeth_card_hw_is_reachable()
79 (card->state == CARD_STATE_UP); in qeth_card_hw_is_reachable()
85 struct qeth_card *card; in qeth_close_dev_handler() local
87 card = container_of(work, struct qeth_card, close_dev_work); in qeth_close_dev_handler()
88 QETH_CARD_TEXT(card, 2, "cldevhdl"); in qeth_close_dev_handler()
90 dev_close(card->dev); in qeth_close_dev_handler()
92 ccwgroup_set_offline(card->gdev); in qeth_close_dev_handler()
95 void qeth_close_dev(struct qeth_card *card) in qeth_close_dev() argument
97 QETH_CARD_TEXT(card, 2, "cldevsubm"); in qeth_close_dev()
[all …]
Dlcs.c173 lcs_free_card(struct lcs_card *card) in lcs_free_card() argument
176 LCS_DBF_HEX(2, setup, &card, sizeof(void*)); in lcs_free_card()
177 kfree(card); in lcs_free_card()
186 struct lcs_card *card; in lcs_alloc_card() local
191 card = kzalloc(sizeof(struct lcs_card), GFP_KERNEL | GFP_DMA); in lcs_alloc_card()
192 if (card == NULL) in lcs_alloc_card()
194 card->lan_type = LCS_FRAME_TYPE_AUTO; in lcs_alloc_card()
195 card->pkt_seq = 0; in lcs_alloc_card()
196 card->lancmd_timeout = LCS_LANCMD_TIMEOUT_DEFAULT; in lcs_alloc_card()
198 rc = lcs_alloc_channel(&card->read); in lcs_alloc_card()
[all …]
Dqeth_core_sys.c21 struct qeth_card *card = dev_get_drvdata(dev); in qeth_dev_state_show() local
22 if (!card) in qeth_dev_state_show()
25 switch (card->state) { in qeth_dev_state_show()
33 if (card->lan_online) in qeth_dev_state_show()
49 struct qeth_card *card = dev_get_drvdata(dev); in qeth_dev_chpid_show() local
50 if (!card) in qeth_dev_chpid_show()
53 return sprintf(buf, "%02X\n", card->info.chpid); in qeth_dev_chpid_show()
61 struct qeth_card *card = dev_get_drvdata(dev); in qeth_dev_if_name_show() local
62 if (!card) in qeth_dev_if_name_show()
64 return sprintf(buf, "%s\n", QETH_CARD_IFNAME(card)); in qeth_dev_if_name_show()
[all …]
/drivers/isdn/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 if ((skb = card->xskb[channel])) { in icn_free_queue()
66 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/isdn/sc/
Dcommand.c25 static int dial(int card, unsigned long channel, setup_parm setup);
26 static int hangup(int card, unsigned long channel);
27 static int answer(int card, unsigned long channel);
28 static int clreaz(int card, unsigned long channel);
29 static int seteaz(int card, unsigned long channel, char *);
30 static int setl2(int card, unsigned long arg);
31 static int setl3(int card, unsigned long arg);
32 static int acceptb(int card, unsigned long channel);
85 int card; in command() local
87 card = get_card_from_id(cmd->driver); in command()
[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.c92 spider_net_read_reg(struct spider_net_card *card, u32 reg) in spider_net_read_reg() argument
98 return in_be32(card->regs + reg); in spider_net_read_reg()
108 spider_net_write_reg(struct spider_net_card *card, u32 reg, u32 value) in spider_net_write_reg() argument
114 out_be32(card->regs + reg, value); in spider_net_write_reg()
132 struct spider_net_card *card = netdev_priv(netdev); in spider_net_write_phy() local
138 spider_net_write_reg(card, SPIDER_NET_GPCWOPCMD, writevalue); in spider_net_write_phy()
155 struct spider_net_card *card = netdev_priv(netdev); in spider_net_read_phy() local
159 spider_net_write_reg(card, SPIDER_NET_GPCROPCMD, readvalue); in spider_net_read_phy()
165 readvalue = spider_net_read_reg(card, SPIDER_NET_GPCROPCMD); in spider_net_read_phy()
178 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/isdn/act2000/
Dact2000_isa.c66 act2000_card *card = dev_id; in act2000_isa_interrupt() local
74 act2000_isa_receive(card); in act2000_isa_interrupt()
83 printk(KERN_DEBUG "act2000: ?IRQ %d %02x\n", card->irq, istatus); in act2000_isa_interrupt()
88 act2000_isa_select_irq(act2000_card *card) in act2000_isa_select_irq() argument
93 switch (card->irq) { in act2000_isa_select_irq()
120 act2000_isa_enable_irq(act2000_card *card) in act2000_isa_enable_irq() argument
122 act2000_isa_select_irq(card); in act2000_isa_enable_irq()
132 act2000_isa_config_irq(act2000_card *card, short irq) in act2000_isa_config_irq() argument
136 if (card->flags & ACT2000_FLAGS_IVALID) { in act2000_isa_config_irq()
137 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 …]

12345678910>>...27