Home
last modified time | relevance | path

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

12345678910>>...78

/linux-6.1.9/sound/soc/
Dsoc-card.c12 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()
72 int snd_soc_card_jack_new(struct snd_soc_card *card, const char *id, int type, in snd_soc_card_jack_new() argument
75 return soc_card_ret(card, jack_new(card, id, type, jack, true)); in snd_soc_card_jack_new()
[all …]
/linux-6.1.9/drivers/mmc/core/
Dmmc.c71 static int mmc_decode_cid(struct mmc_card *card) in mmc_decode_cid() argument
73 u32 *resp = card->raw_cid; 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()
91 card->cid.prod_name[2] = UNSTUFF_BITS(resp, 80, 8); in mmc_decode_cid()
92 card->cid.prod_name[3] = UNSTUFF_BITS(resp, 72, 8); in mmc_decode_cid()
93 card->cid.prod_name[4] = UNSTUFF_BITS(resp, 64, 8); in mmc_decode_cid()
[all …]
Dsd.c76 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()
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()
100 card->cid.prod_name[1] = UNSTUFF_BITS(resp, 88, 8); in mmc_decode_cid()
101 card->cid.prod_name[2] = UNSTUFF_BITS(resp, 80, 8); in mmc_decode_cid()
102 card->cid.prod_name[3] = UNSTUFF_BITS(resp, 72, 8); in mmc_decode_cid()
[all …]
Dsdio.c31 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]) \
46 return sysfs_emit(buf, "%s\n", card->info[num - 1]); \
78 if (mmc_card_nonstd_func_interface(func->card)) { in sdio_read_fbr()
[all …]
Dbus.c34 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()
99 for (i = 0; i < card->num_info; i++) { in mmc_bus_uevent()
100 retval = add_uevent_var(env, "SDIO_INFO%u=%s", i+1, card->info[i]); in mmc_bus_uevent()
110 if (mmc_card_sdio(card)) in mmc_bus_uevent()
[all …]
/linux-6.1.9/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.c105 #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,
136 static void process_tsq(ns_dev * card);
137 static void drain_scq(ns_dev * card, scq_info * scq, int pos);
[all …]
Dsolos-pci.c67 #define RX_BUF(card, nr) ((card->buffers) + (nr)*(card->buffer_size)*2) argument
68 #define TX_BUF(card, nr) ((card->buffers) + (nr)*(card->buffer_size)*2 + (card->buffer_size)) argument
69 #define FLASH_BUF ((card->buffers) + 4*(card->buffer_size)*2)
162 static void fpga_queue(struct solos_card *card, int port, struct sk_buff *skb,
169 static int send_command(struct solos_card *card, int dev, const char *buf, size_t size);
185 struct solos_card *card = atmdev->dev_data; in solos_param_show() local
195 dev_warn(&card->dev->dev, "Failed to allocate sk_buff in solos_param_show()\n"); in solos_param_show()
214 spin_lock_irq(&card->param_queue_lock); in solos_param_show()
215 list_add(&prm.list, &card->param_queue); in solos_param_show()
216 spin_unlock_irq(&card->param_queue_lock); in solos_param_show()
[all …]
/linux-6.1.9/sound/core/
Dinit.c85 int (*snd_mixer_oss_notify_callback)(struct snd_card *card, int free_flag);
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);
167 struct snd_card *card; in snd_card_new() local
176 card = kzalloc(sizeof(*card) + extra_size, GFP_KERNEL); in snd_card_new()
177 if (!card) in snd_card_new()
180 err = snd_card_init(card, parent, idx, xid, module, extra_size); in snd_card_new()
[all …]
/linux-6.1.9/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()
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 …]
Dw6692.c80 _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()
114 ReadW6692(struct w6692_hw *card, u8 offset) in ReadW6692() argument
116 return inb(card->addr + offset); in ReadW6692()
120 WriteW6692(struct w6692_hw *card, u8 offset, u8 value) in WriteW6692() argument
[all …]
/linux-6.1.9/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.c79 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()
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()
142 struct spider_net_card *card = netdev_priv(netdev); in spider_net_read_phy() local
146 spider_net_write_reg(card, SPIDER_NET_GPCROPCMD, readvalue); in spider_net_read_phy()
153 readvalue = spider_net_read_reg(card, SPIDER_NET_GPCROPCMD); in spider_net_read_phy()
166 spider_net_setup_aneg(struct spider_net_card *card) in spider_net_setup_aneg() argument
[all …]
/linux-6.1.9/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 …]
Dlcs.c158 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 …]
Dqeth_l3_main.c54 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 …]
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 …]
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) ? "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-6.1.9/drivers/media/pci/bt8xx/
Ddvb-bt8xx.c45 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-6.1.9/drivers/net/can/softing/
Dsofting_fw.c19 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()
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()
49 dev_alert(&card->pdev->dev, "firmware %s failed (%i)\n", msg, ret); in _softing_fct_cmd()
53 static int softing_fct_cmd(struct softing *card, int16_t cmd, const char *msg) in softing_fct_cmd() argument
57 ret = _softing_fct_cmd(card, cmd, 0, msg); in softing_fct_cmd()
[all …]
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 …]
/linux-6.1.9/drivers/firewire/
Dcore-card.c28 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-6.1.9/drivers/net/wireless/marvell/libertas/
Dif_sdio.c130 static void if_sdio_finish_power_on(struct if_sdio_card *card);
131 static int if_sdio_power_off(struct if_sdio_card *card);
143 static u16 if_sdio_read_scratch(struct if_sdio_card *card, int *err) in if_sdio_read_scratch() argument
148 scratch = sdio_readb(card->func, card->scratch_reg, &ret); in if_sdio_read_scratch()
150 scratch |= sdio_readb(card->func, card->scratch_reg + 1, in if_sdio_read_scratch()
162 static u8 if_sdio_read_rx_unit(struct if_sdio_card *card) in if_sdio_read_rx_unit() argument
167 rx_unit = sdio_readb(card->func, IF_SDIO_RX_UNIT, &ret); in if_sdio_read_rx_unit()
175 static u16 if_sdio_read_rx_len(struct if_sdio_card *card, int *err) in if_sdio_read_rx_len() argument
180 switch (card->model) { in if_sdio_read_rx_len()
183 rx_len = if_sdio_read_scratch(card, &ret); in if_sdio_read_rx_len()
[all …]
/linux-6.1.9/drivers/net/ethernet/dec/tulip/
Dxircom_cb.c113 static void xircom_up(struct xircom_private *card);
118 static void investigate_read_descriptor(struct net_device *dev,struct xircom_private *card, int des…
119 static void investigate_write_descriptor(struct net_device *dev, struct xircom_private *card, int d…
120 static void read_mac_address(struct xircom_private *card);
121 static void transceiver_voodoo(struct xircom_private *card);
122 static void initialize_card(struct xircom_private *card);
123 static void trigger_transmit(struct xircom_private *card);
124 static void trigger_receive(struct xircom_private *card);
125 static void setup_descriptors(struct xircom_private *card);
126 static void remove_descriptors(struct xircom_private *card);
[all …]
/linux-6.1.9/drivers/net/wan/
Dfarsync.c426 struct fst_card_info *card; /* Card we're associated with */ member
562 static void do_bottom_half_tx(struct fst_card_info *card);
563 static void do_bottom_half_rx(struct fst_card_info *card);
664 fst_cpureset(struct fst_card_info *card) in fst_cpureset() argument
669 if (card->family == FST_FAMILY_TXU) { in fst_cpureset()
671 (card->device, PCI_INTERRUPT_LINE, &interrupt_line_register)) { in fst_cpureset()
678 outw(0x440f, card->pci_conf + CNTRL_9054 + 2); in fst_cpureset()
679 outw(0x040f, card->pci_conf + CNTRL_9054 + 2); in fst_cpureset()
683 outw(0x240f, card->pci_conf + CNTRL_9054 + 2); in fst_cpureset()
687 outw(0x040f, card->pci_conf + CNTRL_9054 + 2); in fst_cpureset()
[all …]

12345678910>>...78