Home
last modified time | relevance | path

Searched full:card (Results 1 – 25 of 3312) sorted by relevance

12345678910>>...133

/linux-6.12.1/drivers/isdn/hardware/mISDN/
Dnetjet.c93 _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()
124 nj_disable_hwirq(struct tiger_hw *card) in nj_disable_hwirq() argument
126 outb(0, card->base + NJ_IRQMASK0); in nj_disable_hwirq()
127 outb(0, card->base + NJ_IRQMASK1); in nj_disable_hwirq()
[all …]
Dw6692.c58 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()
110 MODULE_PARM_DESC(led, "W6692 LED support bitmask (one bit per card)");
112 MODULE_PARM_DESC(pots, "W6692 POTS support bitmask (one bit per card)");
[all …]
/linux-6.12.1/sound/soc/
Dsoc-card.c3 // soc-card.c
15 static inline int _soc_card_ret(struct snd_soc_card *card, in _soc_card_ret() argument
24 dev_err(card->dev, in _soc_card_ret()
26 func, card->name, ret); in _soc_card_ret()
42 static int jack_new(struct snd_soc_card *card, const char *id, int type, in jack_new() argument
46 jack->card = card; in jack_new()
51 return snd_jack_new(card->snd_card, id, type, &jack->jack, initial_kctl, false); in jack_new()
56 * @card: ASoC card
69 int snd_soc_card_jack_new(struct snd_soc_card *card, const char *id, int type, in snd_soc_card_jack_new() argument
72 return soc_card_ret(card, jack_new(card, id, type, jack, true)); in snd_soc_card_jack_new()
[all …]
/linux-6.12.1/drivers/mmc/core/
Dmmc.c19 #include <linux/mmc/card.h>
23 #include "card.h"
57 static int mmc_decode_cid(struct mmc_card *card) in mmc_decode_cid() argument
59 u32 *resp = card->raw_cid; in mmc_decode_cid()
62 * Add the raw card ID (cid) data to the entropy pool. It doesn't in mmc_decode_cid()
65 add_device_randomness(&card->raw_cid, sizeof(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()
[all …]
Dsdio.c13 #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 …]
Dsd.c20 #include <linux/mmc/card.h>
25 #include "card.h"
63 struct mmc_card *card; member
70 void mmc_decode_cid(struct mmc_card *card) in mmc_decode_cid() argument
72 u32 *resp = card->raw_cid; in mmc_decode_cid()
75 * Add the raw card ID (cid) data to the entropy pool. It doesn't in mmc_decode_cid()
78 add_device_randomness(&card->raw_cid, sizeof(card->raw_cid)); in mmc_decode_cid()
84 card->cid.manfid = unstuff_bits(resp, 120, 8); in mmc_decode_cid()
85 card->cid.oemid = unstuff_bits(resp, 104, 16); in mmc_decode_cid()
86 card->cid.prod_name[0] = unstuff_bits(resp, 96, 8); in mmc_decode_cid()
[all …]
Dbus.c8 * 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 const 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-6.12.1/drivers/atm/
Dnicstar.c26 * 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 …]
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 …]
/linux-6.12.1/sound/core/
Dinit.c85 int (*snd_mixer_oss_notify_callback)(struct snd_card *card, int free_flag);
123 * @card: card to assign, optional
127 int snd_device_alloc(struct device **dev_p, struct snd_card *card) in snd_device_alloc() argument
136 if (card) in snd_device_alloc()
137 dev->parent = &card->card_dev; in snd_device_alloc()
145 static int snd_card_init(struct snd_card *card, struct device *parent,
148 static int snd_card_do_free(struct snd_card *card);
159 * @idx: card index (address) [0 ... (SNDRV_CARDS-1)]
160 * @xid: card identification (ASCII string)
163 * @card_ret: the pointer to store the created card instance
[all …]
/linux-6.12.1/drivers/s390/net/
Dqeth_l2_main.c31 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 …]
Dqeth_l3_main.c55 static struct qeth_ipaddr *qeth_l3_find_addr_by_ip(struct qeth_card *card, in qeth_l3_find_addr_by_ip() argument
62 hash_for_each_possible(card->rx_mode_addrs, addr, hnode, key) in qeth_l3_find_addr_by_ip()
66 hash_for_each_possible(card->ip_htable, addr, hnode, key) in qeth_l3_find_addr_by_ip()
87 static bool qeth_l3_is_addr_covered_by_ipato(struct qeth_card *card, in qeth_l3_is_addr_covered_by_ipato() argument
95 if (!card->ipato.enabled) in qeth_l3_is_addr_covered_by_ipato()
102 list_for_each_entry(ipatoe, &card->ipato.entries, entry) { in qeth_l3_is_addr_covered_by_ipato()
113 if ((addr->proto == QETH_PROT_IPV4) && card->ipato.invert4) in qeth_l3_is_addr_covered_by_ipato()
115 else if ((addr->proto == QETH_PROT_IPV6) && card->ipato.invert6) in qeth_l3_is_addr_covered_by_ipato()
121 static int qeth_l3_delete_ip(struct qeth_card *card, in qeth_l3_delete_ip() argument
128 QETH_CARD_TEXT(card, 2, "delrxip"); in qeth_l3_delete_ip()
[all …]
Dqeth_core_main.c68 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 …]
Dlcs.c150 * LCS free memory for card and channels.
153 lcs_free_card(struct lcs_card *card) in lcs_free_card() argument
156 LCS_DBF_HEX(2, setup, &card, sizeof(void*)); in lcs_free_card()
157 kfree(card); in lcs_free_card()
161 * LCS alloc memory for card and channels
166 struct lcs_card *card; in lcs_alloc_card() local
171 card = kzalloc(sizeof(struct lcs_card), GFP_KERNEL | GFP_DMA); in lcs_alloc_card()
172 if (card == NULL) in lcs_alloc_card()
174 card->lan_type = LCS_FRAME_TYPE_AUTO; in lcs_alloc_card()
175 card->pkt_seq = 0; in lcs_alloc_card()
[all …]
Dqeth_core_sys.c22 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) ? in qeth_dev_state_show()
43 struct qeth_card *card = dev_get_drvdata(dev); in qeth_dev_chpid_show() local
45 return sysfs_emit(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 sysfs_emit(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 sysfs_emit(buf, "%s\n", qeth_get_cardname_short(card)); in qeth_dev_card_type_show()
[all …]
/linux-6.12.1/drivers/net/can/softing/
Dsofting_main.c31 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 …]
Dsofting_fw.c17 * 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-6.12.1/drivers/net/ethernet/toshiba/
Dps3_gelic_net.c49 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 …]
Dspider_net.c72 * 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-6.12.1/drivers/media/pci/bt8xx/
Ddvb-bt8xx.c45 struct dvb_bt8xx_card *card = dev_get_drvdata(&bt->adapter->dev); in dvb_bt8xx_work() local
47 dprintk("%d\n", card->bt->finished_block); in dvb_bt8xx_work()
49 while (card->bt->last_block != card->bt->finished_block) { in dvb_bt8xx_work()
50 (card->bt->TS_Size ? dvb_dmx_swfilter_204 : dvb_dmx_swfilter) in dvb_bt8xx_work()
51 (&card->demux, in dvb_bt8xx_work()
52 &card->bt->buf_cpu[card->bt->last_block * in dvb_bt8xx_work()
53 card->bt->block_bytes], in dvb_bt8xx_work()
54 card->bt->block_bytes); in dvb_bt8xx_work()
55 card->bt->last_block = (card->bt->last_block + 1) % in dvb_bt8xx_work()
56 card->bt->block_count; in dvb_bt8xx_work()
[all …]
/linux-6.12.1/drivers/net/wan/
Dfarsync.c42 /* 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-6.12.1/drivers/net/wireless/marvell/mwifiex/
Dpcie.c199 struct pcie_service_card *card = adapter->card; in mwifiex_map_pci_memory() local
202 mapping.addr = dma_map_single(&card->dev->dev, skb->data, size, flags); in mwifiex_map_pci_memory()
203 if (dma_mapping_error(&card->dev->dev, mapping.addr)) { in mwifiex_map_pci_memory()
215 struct pcie_service_card *card = adapter->card; in mwifiex_unmap_pci_memory() local
219 dma_unmap_single(&card->dev->dev, mapping.addr, mapping.len, flags); in mwifiex_unmap_pci_memory()
223 * This function writes data into PCIE card register.
228 struct pcie_service_card *card = adapter->card; in mwifiex_write_reg() local
230 iowrite32(data, card->pci_mmap1 + reg); in mwifiex_write_reg()
241 /* This function reads data from PCIE card register.
245 struct pcie_service_card *card = adapter->card; in mwifiex_read_reg() local
[all …]
/linux-6.12.1/drivers/net/wireless/marvell/libertas/
Dif_spi.c46 /* 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
81 list_for_each_entry_safe(packet, tmp, &card->cmd_packet_list, list) { in free_if_spi_card()
85 list_for_each_entry_safe(packet, tmp, &card->data_packet_list, list) { in free_if_spi_card()
89 kfree(card); in free_if_spi_card()
126 static void spu_transaction_init(struct if_spi_card *card) in spu_transaction_init() argument
128 if (!time_after(jiffies, card->prev_xfer_time + 1)) { in spu_transaction_init()
137 static void spu_transaction_finish(struct if_spi_card *card) in spu_transaction_finish() argument
139 card->prev_xfer_time = jiffies; in spu_transaction_finish()
[all …]
/linux-6.12.1/drivers/firewire/
Dcore-card.c29 void func(const struct fw_card *card, const char *fmt, ...) \
38 dev_name(card->device), &vaf); \
91 static void generate_config_rom(struct fw_card *card, __be32 *config_rom) in generate_config_rom() argument
109 BIB_LINK_SPEED(card->link_speed) | in generate_config_rom()
110 BIB_GENERATION(card->config_rom_generation++ % 14 + 2) | in generate_config_rom()
112 BIB_MAX_RECEIVE(card->max_receive) | in generate_config_rom()
114 config_rom[3] = cpu_to_be32(card->guid >> 32); in generate_config_rom()
115 config_rom[4] = cpu_to_be32(card->guid); in generate_config_rom()
153 struct fw_card *card; in update_config_roms() local
155 list_for_each_entry (card, &card_list, link) { in update_config_roms()
[all …]
/linux-6.12.1/drivers/pnp/
Dcard.c3 * 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 …]

12345678910>>...133