/Linux-v6.1/drivers/isdn/hardware/mISDN/ |
D | netjet.c | 93 _set_debug(struct tiger_hw *card) in _set_debug() argument 95 card->isac.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 tiger_hw *card; in set_debug() local 109 list_for_each_entry(card, &Cards, list) in set_debug() 110 _set_debug(card); in set_debug() 123 nj_disable_hwirq(struct tiger_hw *card) in nj_disable_hwirq() argument 125 outb(0, card->base + NJ_IRQMASK0); in nj_disable_hwirq() 126 outb(0, card->base + NJ_IRQMASK1); in nj_disable_hwirq() [all …]
|
D | w6692.c | 58 u32 fmask; /* feature mask - bit set per card nr */ 80 _set_debug(struct w6692_hw *card) in _set_debug() argument 82 card->dch.debug = debug; in _set_debug() 83 card->bc[0].bch.debug = debug; in _set_debug() 84 card->bc[1].bch.debug = debug; in _set_debug() 91 struct w6692_hw *card; in set_debug() local 96 list_for_each_entry(card, &Cards, list) in set_debug() 97 _set_debug(card); in set_debug() 109 MODULE_PARM_DESC(led, "W6692 LED support bitmask (one bit per card)"); 111 MODULE_PARM_DESC(pots, "W6692 POTS support bitmask (one bit per card)"); [all …]
|
/Linux-v6.1/sound/soc/ |
D | soc-card.c | 3 // soc-card.c 12 static inline int _soc_card_ret(struct snd_soc_card *card, in _soc_card_ret() argument 21 dev_err(card->dev, in _soc_card_ret() 23 func, card->name, ret); in _soc_card_ret() 32 struct snd_card *card = soc_card->snd_card; in snd_soc_card_get_kcontrol() local 38 list_for_each_entry(kctl, &card->controls, list) in snd_soc_card_get_kcontrol() 45 static int jack_new(struct snd_soc_card *card, const char *id, int type, in jack_new() argument 49 jack->card = card; in jack_new() 54 return snd_jack_new(card->snd_card, id, type, &jack->jack, initial_kctl, false); in jack_new() 59 * @card: ASoC card [all …]
|
/Linux-v6.1/drivers/mmc/core/ |
D | sdio.c | 13 #include <linux/mmc/card.h> 20 #include "card.h" 31 MMC_DEV_ATTR(vendor, "0x%04x\n", card->cis.vendor); 32 MMC_DEV_ATTR(device, "0x%04x\n", card->cis.device); 33 MMC_DEV_ATTR(revision, "%u.%u\n", card->major_rev, card->minor_rev); 34 MMC_DEV_ATTR(ocr, "0x%08x\n", card->ocr); 35 MMC_DEV_ATTR(rca, "0x%04x\n", card->rca); 40 struct mmc_card *card = mmc_dev_to_card(dev); \ 42 if (num > card->num_info) \ 44 if (!card->info[num - 1][0]) \ [all …]
|
D | mmc.c | 19 #include <linux/mmc/card.h> 23 #include "card.h" 71 static int mmc_decode_cid(struct mmc_card *card) in mmc_decode_cid() argument 73 u32 *resp = card->raw_cid; in mmc_decode_cid() 76 * Add the raw card ID (cid) data to the entropy pool. It doesn't in mmc_decode_cid() 79 add_device_randomness(&card->raw_cid, sizeof(card->raw_cid)); in mmc_decode_cid() 85 switch (card->csd.mmca_vsn) { in mmc_decode_cid() 88 card->cid.manfid = UNSTUFF_BITS(resp, 104, 24); in mmc_decode_cid() 89 card->cid.prod_name[0] = UNSTUFF_BITS(resp, 96, 8); in mmc_decode_cid() 90 card->cid.prod_name[1] = UNSTUFF_BITS(resp, 88, 8); in mmc_decode_cid() [all …]
|
D | sd.c | 20 #include <linux/mmc/card.h> 25 #include "card.h" 76 struct mmc_card *card; member 83 void mmc_decode_cid(struct mmc_card *card) in mmc_decode_cid() argument 85 u32 *resp = card->raw_cid; in mmc_decode_cid() 88 * Add the raw card ID (cid) data to the entropy pool. It doesn't in mmc_decode_cid() 91 add_device_randomness(&card->raw_cid, sizeof(card->raw_cid)); in mmc_decode_cid() 97 card->cid.manfid = UNSTUFF_BITS(resp, 120, 8); in mmc_decode_cid() 98 card->cid.oemid = UNSTUFF_BITS(resp, 104, 16); in mmc_decode_cid() 99 card->cid.prod_name[0] = UNSTUFF_BITS(resp, 96, 8); in mmc_decode_cid() [all …]
|
D | bus.c | 8 * MMC card bus driver model 20 #include <linux/mmc/card.h> 24 #include "card.h" 34 struct mmc_card *card = mmc_dev_to_card(dev); in type_show() local 36 switch (card->type) { in type_show() 60 struct mmc_card *card = mmc_dev_to_card(dev); in mmc_bus_uevent() local 65 switch (card->type) { in mmc_bus_uevent() 88 if (mmc_card_sdio(card) || mmc_card_sd_combo(card)) { in mmc_bus_uevent() 90 card->cis.vendor, card->cis.device); in mmc_bus_uevent() 95 card->major_rev, card->minor_rev); in mmc_bus_uevent() [all …]
|
/Linux-v6.1/drivers/atm/ |
D | nicstar.c | 26 * 1 - Per card interrupt spinlock (to protect structures and such) 28 * 3 - Per card resource spinlock (to access registers, etc.) 105 #define CMD_BUSY(card) (readl((card)->membase + STAT) & NS_STAT_CMDBZ) argument 120 static u32 ns_read_sram(ns_dev * card, u32 sram_address); 121 static void ns_write_sram(ns_dev * card, u32 sram_address, u32 * value, 124 static void ns_init_card_error(ns_dev * card, int error); 125 static scq_info *get_scq(ns_dev *card, int size, u32 scd); 126 static void free_scq(ns_dev *card, scq_info * scq, struct atm_vcc *vcc); 131 static void fill_tst(ns_dev * card, int n, vc_map * vc); 134 static int push_scqe(ns_dev * card, vc_map * vc, scq_info * scq, ns_scqe * tbd, [all …]
|
D | idt77252.c | 161 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 …]
|
/Linux-v6.1/sound/core/ |
D | init.c | 85 int (*snd_mixer_oss_notify_callback)(struct snd_card *card, int free_flag); 125 * @card: card to assign, optional 127 void snd_device_initialize(struct device *dev, struct snd_card *card) in snd_device_initialize() argument 130 if (card) in snd_device_initialize() 131 dev->parent = &card->card_dev; in snd_device_initialize() 137 static int snd_card_init(struct snd_card *card, struct device *parent, 140 static int snd_card_do_free(struct snd_card *card); 151 * @idx: card index (address) [0 ... (SNDRV_CARDS-1)] 152 * @xid: card identification (ASCII string) 155 * @card_ret: the pointer to store the created card instance [all …]
|
/Linux-v6.1/drivers/s390/net/ |
D | qeth_l2_main.c | 31 static int qeth_l2_setdelmac_makerc(struct qeth_card *card, u16 retcode) in qeth_l2_setdelmac_makerc() argument 36 QETH_CARD_TEXT_(card, 2, "err%04x", retcode); in qeth_l2_setdelmac_makerc() 65 static int qeth_l2_send_setdelmac_cb(struct qeth_card *card, in qeth_l2_send_setdelmac_cb() argument 71 return qeth_l2_setdelmac_makerc(card, cmd->hdr.return_code); in qeth_l2_send_setdelmac_cb() 74 static int qeth_l2_send_setdelmac(struct qeth_card *card, const __u8 *mac, in qeth_l2_send_setdelmac() argument 80 QETH_CARD_TEXT(card, 2, "L2sdmac"); in qeth_l2_send_setdelmac() 81 iob = qeth_ipa_alloc_cmd(card, ipacmd, QETH_PROT_IPV4, in qeth_l2_send_setdelmac() 88 return qeth_send_ipa_cmd(card, iob, qeth_l2_send_setdelmac_cb, NULL); in qeth_l2_send_setdelmac() 91 static int qeth_l2_send_setmac(struct qeth_card *card, const __u8 *mac) in qeth_l2_send_setmac() argument 95 QETH_CARD_TEXT(card, 2, "L2Setmac"); in qeth_l2_send_setmac() [all …]
|
D | qeth_l3_main.c | 54 static struct qeth_ipaddr *qeth_l3_find_addr_by_ip(struct qeth_card *card, in qeth_l3_find_addr_by_ip() argument 61 hash_for_each_possible(card->rx_mode_addrs, addr, hnode, key) in qeth_l3_find_addr_by_ip() 65 hash_for_each_possible(card->ip_htable, addr, hnode, key) in qeth_l3_find_addr_by_ip() 86 static bool qeth_l3_is_addr_covered_by_ipato(struct qeth_card *card, in qeth_l3_is_addr_covered_by_ipato() argument 94 if (!card->ipato.enabled) in qeth_l3_is_addr_covered_by_ipato() 101 list_for_each_entry(ipatoe, &card->ipato.entries, entry) { in qeth_l3_is_addr_covered_by_ipato() 112 if ((addr->proto == QETH_PROT_IPV4) && card->ipato.invert4) in qeth_l3_is_addr_covered_by_ipato() 114 else if ((addr->proto == QETH_PROT_IPV6) && card->ipato.invert6) in qeth_l3_is_addr_covered_by_ipato() 120 static int qeth_l3_delete_ip(struct qeth_card *card, in qeth_l3_delete_ip() argument 127 QETH_CARD_TEXT(card, 2, "delrxip"); in qeth_l3_delete_ip() [all …]
|
D | qeth_core_main.c | 68 static void qeth_issue_next_read_cb(struct qeth_card *card, 72 static void qeth_free_qdio_queues(struct qeth_card *card); 74 static const char *qeth_get_cardname(struct qeth_card *card) in qeth_get_cardname() argument 76 if (IS_VM_NIC(card)) { in qeth_get_cardname() 77 switch (card->info.type) { in qeth_get_cardname() 90 switch (card->info.type) { in qeth_get_cardname() 107 const char *qeth_get_cardname_short(struct qeth_card *card) in qeth_get_cardname_short() argument 109 if (IS_VM_NIC(card)) { in qeth_get_cardname_short() 110 switch (card->info.type) { in qeth_get_cardname_short() 123 switch (card->info.type) { in qeth_get_cardname_short() [all …]
|
D | lcs.c | 155 * LCS free memory for card and channels. 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() 166 * LCS alloc memory for card and channels 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() [all …]
|
D | qeth_core_sys.c | 22 struct qeth_card *card = dev_get_drvdata(dev); in qeth_dev_state_show() local 24 switch (card->state) { in qeth_dev_state_show() 28 if (card->dev->flags & IFF_UP) in qeth_dev_state_show() 30 netif_carrier_ok(card->dev) ? "ONLINE" : in qeth_dev_state_show() 43 struct qeth_card *card = dev_get_drvdata(dev); in qeth_dev_chpid_show() local 45 return sprintf(buf, "%02X\n", card->info.chpid); in qeth_dev_chpid_show() 53 struct qeth_card *card = dev_get_drvdata(dev); in qeth_dev_if_name_show() local 55 return sprintf(buf, "%s\n", netdev_name(card->dev)); in qeth_dev_if_name_show() 63 struct qeth_card *card = dev_get_drvdata(dev); in qeth_dev_card_type_show() local 65 return sprintf(buf, "%s\n", qeth_get_cardname_short(card)); in qeth_dev_card_type_show() [all …]
|
/Linux-v6.1/drivers/net/can/softing/ |
D | softing_main.c | 31 static inline void softing_set_reset_dpram(struct softing *card) in softing_set_reset_dpram() argument 33 if (card->pdat->generation >= 2) { in softing_set_reset_dpram() 34 spin_lock_bh(&card->spin); in softing_set_reset_dpram() 35 iowrite8(ioread8(&card->dpram[DPRAM_V2_RESET]) & ~1, in softing_set_reset_dpram() 36 &card->dpram[DPRAM_V2_RESET]); in softing_set_reset_dpram() 37 spin_unlock_bh(&card->spin); in softing_set_reset_dpram() 41 static inline void softing_clr_reset_dpram(struct softing *card) in softing_clr_reset_dpram() argument 43 if (card->pdat->generation >= 2) { in softing_clr_reset_dpram() 44 spin_lock_bh(&card->spin); in softing_clr_reset_dpram() 45 iowrite8(ioread8(&card->dpram[DPRAM_V2_RESET]) | 1, in softing_clr_reset_dpram() [all …]
|
D | softing_fw.c | 17 * Make sure that card->dpram[DPRAM_FCT_HOST] is preset 19 static int _softing_fct_cmd(struct softing *card, int16_t cmd, uint16_t vector, in _softing_fct_cmd() argument 25 iowrite16(cmd, &card->dpram[DPRAM_FCT_PARAM]); in _softing_fct_cmd() 26 iowrite8(vector >> 8, &card->dpram[DPRAM_FCT_HOST + 1]); in _softing_fct_cmd() 27 iowrite8(vector, &card->dpram[DPRAM_FCT_HOST]); in _softing_fct_cmd() 28 /* be sure to flush this to the card */ in _softing_fct_cmd() 31 /* wait for card */ in _softing_fct_cmd() 34 ret = ioread8(&card->dpram[DPRAM_FCT_HOST]) + in _softing_fct_cmd() 35 (ioread8(&card->dpram[DPRAM_FCT_HOST + 1]) << 8); in _softing_fct_cmd() 40 return ioread16(&card->dpram[DPRAM_FCT_RESULT]); in _softing_fct_cmd() [all …]
|
/Linux-v6.1/drivers/net/ethernet/toshiba/ |
D | ps3_gelic_net.c | 49 int gelic_card_set_irq_mask(struct gelic_card *card, u64 mask) in gelic_card_set_irq_mask() argument 53 status = lv1_net_set_interrupt_mask(bus_id(card), dev_id(card), in gelic_card_set_irq_mask() 56 dev_info(ctodev(card), in gelic_card_set_irq_mask() 61 static void gelic_card_rx_irq_on(struct gelic_card *card) in gelic_card_rx_irq_on() argument 63 card->irq_mask |= GELIC_CARD_RXINT; in gelic_card_rx_irq_on() 64 gelic_card_set_irq_mask(card, card->irq_mask); in gelic_card_rx_irq_on() 66 static void gelic_card_rx_irq_off(struct gelic_card *card) in gelic_card_rx_irq_off() argument 68 card->irq_mask &= ~GELIC_CARD_RXINT; in gelic_card_rx_irq_off() 69 gelic_card_set_irq_mask(card, card->irq_mask); in gelic_card_rx_irq_off() 72 static void gelic_card_get_ether_port_status(struct gelic_card *card, in gelic_card_get_ether_port_status() argument [all …]
|
D | spider_net.c | 72 * spider_net_read_reg - reads an SMMIO register of a card 73 * @card: device structure 79 spider_net_read_reg(struct spider_net_card *card, u32 reg) in spider_net_read_reg() argument 85 return in_be32(card->regs + reg); in spider_net_read_reg() 89 * spider_net_write_reg - writes to an SMMIO register of a card 90 * @card: device structure 95 spider_net_write_reg(struct spider_net_card *card, u32 reg, u32 value) in spider_net_write_reg() argument 101 out_be32(card->regs + reg, value); in spider_net_write_reg() 119 struct spider_net_card *card = netdev_priv(netdev); in spider_net_write_phy() local 125 spider_net_write_reg(card, SPIDER_NET_GPCWOPCMD, writevalue); in spider_net_write_phy() [all …]
|
/Linux-v6.1/drivers/media/pci/bt8xx/ |
D | dvb-bt8xx.c | 45 struct dvb_bt8xx_card *card = dev_get_drvdata(&bt->adapter->dev); in dvb_bt8xx_task() local 47 dprintk("%d\n", card->bt->finished_block); in dvb_bt8xx_task() 49 while (card->bt->last_block != card->bt->finished_block) { in dvb_bt8xx_task() 50 (card->bt->TS_Size ? dvb_dmx_swfilter_204 : dvb_dmx_swfilter) in dvb_bt8xx_task() 51 (&card->demux, in dvb_bt8xx_task() 52 &card->bt->buf_cpu[card->bt->last_block * in dvb_bt8xx_task() 53 card->bt->block_bytes], in dvb_bt8xx_task() 54 card->bt->block_bytes); in dvb_bt8xx_task() 55 card->bt->last_block = (card->bt->last_block + 1) % in dvb_bt8xx_task() 56 card->bt->block_count; in dvb_bt8xx_task() [all …]
|
/Linux-v6.1/drivers/net/wan/ |
D | farsync.c | 42 /* Number of ports (per card) and cards supported 53 * of frames on the way down to the card 54 * so that we can keep the card busy 88 /* Card shared memory layout 105 #define FST_MEMSIZE 0x100000 /* Size of card memory (1Mb) */ 177 /* Interrupts from the card are caused by various events which are presented 318 /* Number of times the card thinks the host has 426 struct fst_card_info *card; /* Card we're associated with */ member 427 int index; /* Port index on the card */ 443 /* Per card information [all …]
|
/Linux-v6.1/drivers/net/wireless/marvell/mwifiex/ |
D | pcie.c | 197 struct pcie_service_card *card = adapter->card; in mwifiex_map_pci_memory() local 200 mapping.addr = dma_map_single(&card->dev->dev, skb->data, size, flags); in mwifiex_map_pci_memory() 201 if (dma_mapping_error(&card->dev->dev, mapping.addr)) { in mwifiex_map_pci_memory() 213 struct pcie_service_card *card = adapter->card; in mwifiex_unmap_pci_memory() local 217 dma_unmap_single(&card->dev->dev, mapping.addr, mapping.len, flags); in mwifiex_unmap_pci_memory() 221 * This function writes data into PCIE card register. 225 struct pcie_service_card *card = adapter->card; in mwifiex_write_reg() local 227 iowrite32(data, card->pci_mmap1 + reg); in mwifiex_write_reg() 232 /* This function reads data from PCIE card register. 236 struct pcie_service_card *card = adapter->card; in mwifiex_read_reg() local [all …]
|
/Linux-v6.1/drivers/net/wireless/marvell/libertas/ |
D | if_spi.c | 46 /* The card ID and card revision, as reported by the hardware. */ 73 /* True is card suspended */ 77 static void free_if_spi_card(struct if_spi_card *card) in free_if_spi_card() argument 82 list_for_each_safe(cursor, next, &card->cmd_packet_list) { in free_if_spi_card() 87 list_for_each_safe(cursor, next, &card->data_packet_list) { in free_if_spi_card() 92 kfree(card); in free_if_spi_card() 129 static void spu_transaction_init(struct if_spi_card *card) in spu_transaction_init() argument 131 if (!time_after(jiffies, card->prev_xfer_time + 1)) { in spu_transaction_init() 140 static void spu_transaction_finish(struct if_spi_card *card) in spu_transaction_finish() argument 142 card->prev_xfer_time = jiffies; in spu_transaction_finish() [all …]
|
/Linux-v6.1/drivers/firewire/ |
D | core-card.c | 28 void func(const struct fw_card *card, const char *fmt, ...) \ 37 dev_name(card->device), &vaf); \ 90 static void generate_config_rom(struct fw_card *card, __be32 *config_rom) in generate_config_rom() argument 108 BIB_LINK_SPEED(card->link_speed) | in generate_config_rom() 109 BIB_GENERATION(card->config_rom_generation++ % 14 + 2) | in generate_config_rom() 111 BIB_MAX_RECEIVE(card->max_receive) | in generate_config_rom() 113 config_rom[3] = cpu_to_be32(card->guid >> 32); in generate_config_rom() 114 config_rom[4] = cpu_to_be32(card->guid); in generate_config_rom() 152 struct fw_card *card; in update_config_roms() local 154 list_for_each_entry (card, &card_list, link) { in update_config_roms() [all …]
|
/Linux-v6.1/drivers/pnp/ |
D | card.c | 3 * card.c - contains functions for managing groups of PnP devices 20 struct pnp_card *card) in match_card() argument 25 if (compare_pnp_id(card->id, drv_id->id)) { in match_card() 36 card_for_each_dev(card, dev) { in match_card() 62 if (!dev->card || !drv) in card_remove_first() 71 static int card_probe(struct pnp_card *card, struct pnp_card_driver *drv) in card_probe() argument 79 id = match_card(drv, card); in card_probe() 86 clink->card = card; in card_probe() 94 card_for_each_dev(card, dev) { in card_probe() 103 * pnp_add_card_id - adds an EISA id to the specified card [all …]
|