/linux-4.19.296/drivers/isdn/isdnloop/ |
D | isdnloop.c | 37 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 …]
|
/linux-4.19.296/drivers/isdn/hysdn/ |
D | boardergo.c | 37 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 …]
|
D | hysdn_sched.c | 31 hysdn_sched_rx(hysdn_card *card, unsigned char *buf, unsigned short len, in hysdn_sched_rx() argument 37 if (hynet_enable & (1 << card->myid)) { in hysdn_sched_rx() 39 hysdn_rx_netpkt(card, buf, len); in hysdn_sched_rx() 44 hysdn_card_errlog(card, (tErrLogEntry *) buf, len); in hysdn_sched_rx() 45 if (card->err_log_state == ERRLOG_STATE_ON) in hysdn_sched_rx() 46 card->err_log_state = ERRLOG_STATE_START; /* start new fetch */ in hysdn_sched_rx() 51 if (hycapi_enable & (1 << card->myid)) { in hysdn_sched_rx() 52 hycapi_rx_capipkt(card, buf, len); in hysdn_sched_rx() 74 hysdn_sched_tx(hysdn_card *card, unsigned char *buf, in hysdn_sched_tx() argument 80 if (card->net_tx_busy) { in hysdn_sched_tx() [all …]
|
D | hysdn_boot.c | 85 pof_handle_data(hysdn_card *card, int datlen) in pof_handle_data() argument 87 struct boot_data *boot = card->boot; /* pointer to boot specific data */ in pof_handle_data() 96 if (card->debug_flags & LOG_POF_RECORD) in pof_handle_data() 97 hysdn_addlog(card, "POF created %s", boot->buf.PofTime.DateTimeText); in pof_handle_data() 104 if (card->debug_flags & LOG_POF_RECORD) in pof_handle_data() 105 hysdn_addlog(card, "POF got %s len=%d offs=0x%lx", in pof_handle_data() 133 card->writebootimg(card, imgp, in pof_handle_data() 143 if (card->debug_flags & LOG_POF_RECORD) in pof_handle_data() 144 hysdn_addlog(card, "POF got %s len=%d offs=0x%lx", in pof_handle_data() 148 if ((boot->last_error = card->writebootseq(card, boot->buf.BootBuf, datlen)) < 0) in pof_handle_data() [all …]
|
D | hysdn_init.c | 62 hysdn_card *card; in hysdn_pci_init_one() local 69 if (!(card = kzalloc(sizeof(hysdn_card), GFP_KERNEL))) { in hysdn_pci_init_one() 74 card->myid = cardmax; /* set own id */ in hysdn_pci_init_one() 75 card->bus = akt_pcidev->bus->number; in hysdn_pci_init_one() 76 card->devfn = akt_pcidev->devfn; /* slot + function */ in hysdn_pci_init_one() 77 card->subsysid = akt_pcidev->subsystem_device; in hysdn_pci_init_one() 78 card->irq = akt_pcidev->irq; in hysdn_pci_init_one() 79 card->iobase = pci_resource_start(akt_pcidev, PCI_REG_PLX_IO_BASE); in hysdn_pci_init_one() 80 card->plxbase = pci_resource_start(akt_pcidev, PCI_REG_PLX_MEM_BASE); in hysdn_pci_init_one() 81 card->membase = pci_resource_start(akt_pcidev, PCI_REG_MEMORY_BASE); in hysdn_pci_init_one() [all …]
|
/linux-4.19.296/drivers/isdn/hardware/mISDN/ |
D | netjet.c | 106 _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 …]
|
D | w6692.c | 93 _set_debug(struct w6692_hw *card) in _set_debug() argument 95 card->dch.debug = debug; in _set_debug() 96 card->bc[0].bch.debug = debug; in _set_debug() 97 card->bc[1].bch.debug = debug; in _set_debug() 104 struct w6692_hw *card; in set_debug() local 109 list_for_each_entry(card, &Cards, list) in set_debug() 110 _set_debug(card); in set_debug() 127 ReadW6692(struct w6692_hw *card, u8 offset) in ReadW6692() argument 129 return inb(card->addr + offset); in ReadW6692() 133 WriteW6692(struct w6692_hw *card, u8 offset, u8 value) in WriteW6692() argument [all …]
|
/linux-4.19.296/drivers/s390/net/ |
D | qeth_l2_main.c | 29 static void qeth_bridgeport_query_support(struct qeth_card *card); 30 static void qeth_bridge_state_change(struct qeth_card *card, 32 static void qeth_bridge_host_event(struct qeth_card *card, 34 static void qeth_l2_vnicc_set_defaults(struct qeth_card *card); 35 static void qeth_l2_vnicc_init(struct qeth_card *card); 36 static bool qeth_l2_vnicc_recover_timeout(struct qeth_card *card, u32 vnicc, 41 struct qeth_card *card; in qeth_l2_netdev_by_devno() local 50 list_for_each_entry(card, &qeth_core_card_list.list, list) { in qeth_l2_netdev_by_devno() 51 ccw_device_get_id(CARD_RDEV(card), &read_devid); in qeth_l2_netdev_by_devno() 53 ndev = card->dev; in qeth_l2_netdev_by_devno() [all …]
|
D | qeth_l3_main.c | 79 static struct qeth_ipaddr *qeth_l3_find_addr_by_ip(struct qeth_card *card, in qeth_l3_find_addr_by_ip() argument 86 hash_for_each_possible(card->ip_mc_htable, addr, hnode, key) in qeth_l3_find_addr_by_ip() 90 hash_for_each_possible(card->ip_htable, addr, hnode, key) in qeth_l3_find_addr_by_ip() 111 static bool qeth_l3_is_addr_covered_by_ipato(struct qeth_card *card, in qeth_l3_is_addr_covered_by_ipato() argument 119 if (!card->ipato.enabled) in qeth_l3_is_addr_covered_by_ipato() 126 list_for_each_entry(ipatoe, &card->ipato.entries, entry) { in qeth_l3_is_addr_covered_by_ipato() 142 if ((addr->proto == QETH_PROT_IPV4) && card->ipato.invert4) in qeth_l3_is_addr_covered_by_ipato() 144 else if ((addr->proto == QETH_PROT_IPV6) && card->ipato.invert6) in qeth_l3_is_addr_covered_by_ipato() 150 static int qeth_l3_delete_ip(struct qeth_card *card, in qeth_l3_delete_ip() argument 157 QETH_CARD_TEXT(card, 2, "delrxip"); in qeth_l3_delete_ip() [all …]
|
D | lcs.c | 158 lcs_free_card(struct lcs_card *card) in lcs_free_card() argument 161 LCS_DBF_HEX(2, setup, &card, sizeof(void*)); in lcs_free_card() 162 kfree(card); in lcs_free_card() 171 struct lcs_card *card; in lcs_alloc_card() local 176 card = kzalloc(sizeof(struct lcs_card), GFP_KERNEL | GFP_DMA); in lcs_alloc_card() 177 if (card == NULL) in lcs_alloc_card() 179 card->lan_type = LCS_FRAME_TYPE_AUTO; in lcs_alloc_card() 180 card->pkt_seq = 0; in lcs_alloc_card() 181 card->lancmd_timeout = LCS_LANCMD_TIMEOUT_DEFAULT; in lcs_alloc_card() 183 rc = lcs_alloc_channel(&card->read); in lcs_alloc_card() [all …]
|
D | qeth_core_sys.c | 22 struct qeth_card *card = dev_get_drvdata(dev); in qeth_dev_state_show() local 23 if (!card) in qeth_dev_state_show() 26 switch (card->state) { in qeth_dev_state_show() 34 if (card->lan_online) in qeth_dev_state_show() 50 struct qeth_card *card = dev_get_drvdata(dev); in qeth_dev_chpid_show() local 51 if (!card) in qeth_dev_chpid_show() 54 return sprintf(buf, "%02X\n", card->info.chpid); in qeth_dev_chpid_show() 62 struct qeth_card *card = dev_get_drvdata(dev); in qeth_dev_if_name_show() local 63 if (!card) in qeth_dev_if_name_show() 65 return sprintf(buf, "%s\n", QETH_CARD_IFNAME(card)); in qeth_dev_if_name_show() [all …]
|
D | qeth_core_main.c | 81 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 …]
|
D | qeth_l3_sys.c | 30 static ssize_t qeth_l3_dev_route_show(struct qeth_card *card, in qeth_l3_dev_route_show() argument 39 if (card->info.broadcast_capable == QETH_BROADCAST_WITHOUT_ECHO) in qeth_l3_dev_route_show() 44 if (card->info.broadcast_capable == QETH_BROADCAST_WITHOUT_ECHO) in qeth_l3_dev_route_show() 49 if (card->info.broadcast_capable == QETH_BROADCAST_WITHOUT_ECHO) in qeth_l3_dev_route_show() 61 struct qeth_card *card = dev_get_drvdata(dev); in qeth_l3_dev_route4_show() local 63 if (!card) in qeth_l3_dev_route4_show() 66 return qeth_l3_dev_route_show(card, &card->options.route4, buf); in qeth_l3_dev_route4_show() 69 static ssize_t qeth_l3_dev_route_store(struct qeth_card *card, in qeth_l3_dev_route_store() argument 76 mutex_lock(&card->conf_mutex); in qeth_l3_dev_route_store() 93 if (qeth_card_hw_is_reachable(card) && in qeth_l3_dev_route_store() [all …]
|
D | qeth_l2_sys.c | 16 struct qeth_card *card = dev_get_drvdata(dev); in qeth_bridge_port_role_state_show() local 21 if (!card) in qeth_bridge_port_role_state_show() 24 if (qeth_l2_vnicc_is_in_use(card)) in qeth_bridge_port_role_state_show() 27 if (qeth_card_hw_is_reachable(card) && in qeth_bridge_port_role_state_show() 28 card->options.sbp.supported_funcs) in qeth_bridge_port_role_state_show() 29 rc = qeth_bridgeport_query_ports(card, in qeth_bridge_port_role_state_show() 30 &card->options.sbp.role, &state); in qeth_bridge_port_role_state_show() 44 switch (card->options.sbp.role) { in qeth_bridge_port_role_state_show() 55 QETH_CARD_TEXT_(card, 2, "SBP%02x:%02x", in qeth_bridge_port_role_state_show() 56 card->options.sbp.role, state); in qeth_bridge_port_role_state_show() [all …]
|
/linux-4.19.296/drivers/isdn/hardware/avm/ |
D | b1dma.c | 48 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 …]
|
D | b1pci.c | 55 cinfo->card ? cinfo->card->port : 0x0, in b1pci_procinfo() 56 cinfo->card ? cinfo->card->irq : 0, in b1pci_procinfo() 57 cinfo->card ? cinfo->card->revision : 0 in b1pci_procinfo() 66 avmcard *card; in b1pci_probe() local 70 card = b1_alloc_card(1); in b1pci_probe() 71 if (!card) { in b1pci_probe() 77 cinfo = card->ctrlinfo; in b1pci_probe() 78 sprintf(card->name, "b1pci-%x", p->port); in b1pci_probe() 79 card->port = p->port; in b1pci_probe() 80 card->irq = p->irq; in b1pci_probe() [all …]
|
D | c4.c | 59 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 …]
|
D | t1isa.c | 137 avmcard *card = devptr; in t1isa_interrupt() local 138 avmctrl_info *cinfo = &card->ctrlinfo[0]; in t1isa_interrupt() 150 spin_lock_irqsave(&card->lock, flags); in t1isa_interrupt() 152 while (b1_rx_full(card->port)) { in t1isa_interrupt() 154 b1cmd = b1_get_byte(card->port); in t1isa_interrupt() 160 ApplId = (unsigned) b1_get_word(card->port); in t1isa_interrupt() 161 MsgLen = t1_get_slice(card->port, card->msgbuf); in t1isa_interrupt() 162 DataB3Len = t1_get_slice(card->port, card->databuf); in t1isa_interrupt() 163 spin_unlock_irqrestore(&card->lock, flags); in t1isa_interrupt() 166 memset(card->msgbuf + MsgLen, 0, 30 - MsgLen); in t1isa_interrupt() [all …]
|
D | b1isa.c | 43 avmcard *card; in b1isa_remove() local 48 card = cinfo->card; in b1isa_remove() 50 b1_reset(card->port); in b1isa_remove() 51 b1_reset(card->port); in b1isa_remove() 54 free_irq(card->irq, card); in b1isa_remove() 55 release_region(card->port, AVMB1_PORTLEN); in b1isa_remove() 56 b1_free_card(card); in b1isa_remove() 66 avmcard *card; in b1isa_probe() local 69 card = b1_alloc_card(1); in b1isa_probe() 70 if (!card) { in b1isa_probe() [all …]
|
D | t1pci.c | 51 avmcard *card; in t1pci_add_card() local 55 card = b1_alloc_card(1); in t1pci_add_card() 56 if (!card) { in t1pci_add_card() 62 card->dma = avmcard_dma_alloc("t1pci", pdev, 2048 + 128, 2048 + 128); in t1pci_add_card() 63 if (!card->dma) { in t1pci_add_card() 69 cinfo = card->ctrlinfo; in t1pci_add_card() 70 sprintf(card->name, "t1pci-%x", p->port); in t1pci_add_card() 71 card->port = p->port; in t1pci_add_card() 72 card->irq = p->irq; in t1pci_add_card() 73 card->membase = p->membase; in t1pci_add_card() [all …]
|
D | b1pcmcia.c | 43 avmcard *card = cinfo->card; in b1pcmcia_remove_ctr() local 44 unsigned int port = card->port; in b1pcmcia_remove_ctr() 50 free_irq(card->irq, card); in b1pcmcia_remove_ctr() 51 b1_free_card(card); in b1pcmcia_remove_ctr() 64 avmcard *card; in b1pcmcia_add_card() local 68 card = b1_alloc_card(1); in b1pcmcia_add_card() 69 if (!card) { in b1pcmcia_add_card() 74 cinfo = card->ctrlinfo; in b1pcmcia_add_card() 77 case avm_m1: sprintf(card->name, "m1-%x", port); break; in b1pcmcia_add_card() 78 case avm_m2: sprintf(card->name, "m2-%x", port); break; in b1pcmcia_add_card() [all …]
|
D | b1.c | 67 avmcard *card; in b1_alloc_card() local 71 card = kzalloc(sizeof(*card), GFP_KERNEL); in b1_alloc_card() 72 if (!card) in b1_alloc_card() 77 kfree(card); in b1_alloc_card() 81 card->ctrlinfo = cinfo; in b1_alloc_card() 84 cinfo[i].card = card; in b1_alloc_card() 86 spin_lock_init(&card->lock); in b1_alloc_card() 87 card->nr_controllers = nr_controllers; in b1_alloc_card() 89 return card; in b1_alloc_card() 94 void b1_free_card(avmcard *card) in b1_free_card() argument [all …]
|
/linux-4.19.296/drivers/memstick/core/ |
D | memstick.c | 32 static int memstick_dev_match(struct memstick_dev *card, in memstick_dev_match() argument 36 if ((id->type == card->id.type) in memstick_dev_match() 37 && (id->category == card->id.category) in memstick_dev_match() 38 && (id->class == card->id.class)) in memstick_dev_match() 47 struct memstick_dev *card = container_of(dev, struct memstick_dev, in memstick_bus_match() local 56 if (memstick_dev_match(card, ids)) in memstick_bus_match() 66 struct memstick_dev *card = container_of(dev, struct memstick_dev, in memstick_uevent() local 69 if (add_uevent_var(env, "MEMSTICK_TYPE=%02X", card->id.type)) in memstick_uevent() 72 if (add_uevent_var(env, "MEMSTICK_CATEGORY=%02X", card->id.category)) in memstick_uevent() 75 if (add_uevent_var(env, "MEMSTICK_CLASS=%02X", card->id.class)) in memstick_uevent() [all …]
|
/linux-4.19.296/drivers/bluetooth/ |
D | btmrvl_sdio.c | 64 struct btmrvl_sdio_card *card = priv; in btmrvl_wake_irq_bt() local 65 struct btmrvl_plt_wake_cfg *cfg = card->plt_wake_cfg; in btmrvl_wake_irq_bt() 71 pm_wakeup_event(&card->func->dev, 0); in btmrvl_wake_irq_bt() 83 struct btmrvl_sdio_card *card) in btmrvl_sdio_probe_of() argument 94 card->plt_of_node = dev->of_node; in btmrvl_sdio_probe_of() 96 card->plt_wake_cfg = devm_kzalloc(dev, sizeof(*card->plt_wake_cfg), in btmrvl_sdio_probe_of() 98 cfg = card->plt_wake_cfg; in btmrvl_sdio_probe_of() 99 if (cfg && card->plt_of_node) { in btmrvl_sdio_probe_of() 100 cfg->irq_bt = irq_of_parse_and_map(card->plt_of_node, 0); in btmrvl_sdio_probe_of() 107 0, "bt_wake", card); in btmrvl_sdio_probe_of() [all …]
|
/linux-4.19.296/drivers/isdn/capi/ |
D | capidrv.c | 145 static void handle_dtrace_data(capidrv_contr *card, 333 static capidrv_plci *new_plci(capidrv_contr *card, int chan) in new_plci() argument 346 plcip->next = card->plci_list; in new_plci() 347 card->plci_list = plcip; in new_plci() 348 card->bchans[chan].plcip = plcip; in new_plci() 353 static capidrv_plci *find_plci_by_plci(capidrv_contr *card, u32 plci) in find_plci_by_plci() argument 356 for (p = card->plci_list; p; p = p->next) in find_plci_by_plci() 362 static capidrv_plci *find_plci_by_msgid(capidrv_contr *card, u16 msgid) in find_plci_by_msgid() argument 365 for (p = card->plci_list; p; p = p->next) in find_plci_by_msgid() 371 static capidrv_plci *find_plci_by_ncci(capidrv_contr *card, u32 ncci) in find_plci_by_ncci() argument [all …]
|