Home
last modified time | relevance | path

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

12345678910>>...109

/linux/drivers/mmc/core/
H A Dmmc.c20 #include <linux/mmc/card.h>
24 #include "card.h"
65 static int mmc_decode_cid(struct mmc_card *card) in mmc_decode_cid() argument
67 u32 *resp = card->raw_cid; in mmc_decode_cid()
70 * Add the raw card ID (cid) data to the entropy pool. It doesn't in mmc_decode_cid()
73 add_device_randomness(&card->raw_cid, sizeof(card->raw_cid)); in mmc_decode_cid()
79 switch (card->csd.mmca_vsn) { in mmc_decode_cid()
82 card->cid.manfid = unstuff_bits(resp, 104, 24); in mmc_decode_cid()
83 card->cid.prod_name[0] = unstuff_bits(resp, 96, 8); in mmc_decode_cid()
84 card->cid.prod_name[1] = unstuff_bits(resp, 88, 8); in mmc_decode_cid()
[all …]
H A Dbus.c8 * MMC card bus driver model
20 #include <linux/mmc/card.h>
25 #include "card.h"
35 struct mmc_card *card = mmc_dev_to_card(dev); in type_show() local
37 switch (card->type) { in type_show()
61 const struct mmc_card *card = mmc_dev_to_card(dev); in mmc_bus_uevent() local
66 switch (card->type) { in mmc_bus_uevent()
89 if (mmc_card_sdio(card) || mmc_card_sd_combo(card)) { in mmc_bus_uevent()
91 card->cis.vendor, card->cis.device); in mmc_bus_uevent()
96 card->major_rev, card->minor_rev); in mmc_bus_uevent()
[all …]
/linux/sound/core/
H A 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 identificatio
175 struct snd_card *card; snd_card_new() local
231 struct snd_card *card; snd_devm_card_new() local
265 struct snd_card *card; snd_card_free_on_error() local
276 snd_card_init(struct snd_card * card,struct device * parent,int idx,const char * xid,struct module * module,size_t extra_size) snd_card_init() argument
386 struct snd_card *card; snd_card_ref() local
397 snd_card_locked(int card) snd_card_locked() argument
491 snd_card_disconnect(struct snd_card * card) snd_card_disconnect() argument
569 snd_card_disconnect_sync(struct snd_card * card) snd_card_disconnect_sync() argument
580 snd_card_do_free(struct snd_card * card) snd_card_do_free() argument
612 snd_card_free_when_closed(struct snd_card * card) snd_card_free_when_closed() argument
636 snd_card_free(struct snd_card * card) snd_card_free() argument
677 card_id_ok(struct snd_card * card,const char * id) card_id_ok() argument
691 copy_valid_id_string(struct snd_card * card,const char * src,const char * nid) copy_valid_id_string() argument
711 snd_card_set_id_no_lock(struct snd_card * card,const char * src,const char * nid) snd_card_set_id_no_lock() argument
765 snd_card_set_id(struct snd_card * card,const char * nid) snd_card_set_id() argument
778 struct snd_card *card = container_of(dev, struct snd_card, card_dev); id_show() local
785 struct snd_card *card = container_of(dev, struct snd_card, card_dev); id_store() local
813 struct snd_card *card = container_of(dev, struct snd_card, card_dev); number_show() local
836 snd_card_add_dev_attr(struct snd_card * card,const struct attribute_group * group) snd_card_add_dev_attr() argument
870 snd_card_register(struct snd_card * card) snd_card_register() argument
934 struct snd_card *card; snd_card_info_read() local
958 struct snd_card *card; snd_card_info_read_oss() local
980 struct snd_card *card; snd_card_module_info_read() local
1027 snd_component_add(struct snd_card * card,const char * component) snd_component_add() argument
1059 snd_card_file_add(struct snd_card * card,struct file * file) snd_card_file_add() argument
1093 snd_card_file_remove(struct snd_card * card,struct file * file) snd_card_file_remove() argument
1138 snd_power_ref_and_wait(struct snd_card * card) snd_power_ref_and_wait() argument
1159 snd_power_wait(struct snd_card * card) snd_power_wait() argument
[all...]
/linux/drivers/s390/net/
H A Dqeth_l2_main.c32 static int qeth_l2_setdelmac_makerc(struct qeth_card *card, u16 retcode) in qeth_l2_setdelmac_makerc() argument
37 QETH_CARD_TEXT_(card, 2, "err%04x", retcode); in qeth_l2_setdelmac_makerc()
66 static int qeth_l2_send_setdelmac_cb(struct qeth_card *card, in qeth_l2_send_setdelmac_cb() argument
72 return qeth_l2_setdelmac_makerc(card, cmd->hdr.return_code); in qeth_l2_send_setdelmac_cb()
75 static int qeth_l2_send_setdelmac(struct qeth_card *card, const __u8 *mac, in qeth_l2_send_setdelmac() argument
81 QETH_CARD_TEXT(card, 2, "L2sdmac"); in qeth_l2_send_setdelmac()
82 iob = qeth_ipa_alloc_cmd(card, ipacmd, QETH_PROT_IPV4, in qeth_l2_send_setdelmac()
89 return qeth_send_ipa_cmd(card, iob, qeth_l2_send_setdelmac_cb, NULL); in qeth_l2_send_setdelmac()
92 static int qeth_l2_send_setmac(struct qeth_card *card, const __u8 *mac) in qeth_l2_send_setmac() argument
96 QETH_CARD_TEXT(card, 2, "L2Setmac"); in qeth_l2_send_setmac()
[all …]
H A Dqeth_core_main.c67 static void qeth_issue_next_read_cb(struct qeth_card *card,
71 static void qeth_free_qdio_queues(struct qeth_card *card);
73 static const char *qeth_get_cardname(struct qeth_card *card) in qeth_get_cardname() argument
75 if (IS_VM_NIC(card)) { in qeth_get_cardname()
76 switch (card->info.type) { in qeth_get_cardname()
89 switch (card->info.type) { in qeth_get_cardname()
106 const char *qeth_get_cardname_short(struct qeth_card *card) in qeth_get_cardname_short() argument
108 if (IS_VM_NIC(card)) { in qeth_get_cardname_short()
109 switch (card->info.type) { in qeth_get_cardname_short()
122 switch (card->info.type) { in qeth_get_cardname_short()
[all …]
H A 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 …]
H A Dqeth_l3_sys.c30 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 return qeth_l3_dev_route_show(card, &card->options.route4, buf); in qeth_l3_dev_route4_show()
66 static ssize_t qeth_l3_dev_route_store(struct qeth_card *card, in qeth_l3_dev_route_store() argument
73 mutex_lock(&card->conf_mutex); in qeth_l3_dev_route_store()
90 if (qeth_card_hw_is_reachable(card) && in qeth_l3_dev_route_store()
93 rc = qeth_l3_setrouting_v4(card); in qeth_l3_dev_route_store()
[all …]
/linux/drivers/net/can/softing/
H A 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 …]
H A 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/drivers/net/wan/
H A 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 …]
H A Dhd64572.c11 * Packet buffer descriptor rings - starting from card->rambase:
17 * Packet data buffers - starting from card->rambase + buff_offset:
48 #define sca_in(reg, card) readb((card)->scabase + (reg)) argument
49 #define sca_out(value, reg, card) writeb(value, (card)->scabase + (reg)) argument
50 #define sca_inw(reg, card) readw((card)->scabase + (reg)) argument
51 #define sca_outw(value, reg, card) writew(value, (card)->scabase + (reg)) argument
52 #define sca_inl(reg, card) readl((card)->scabase + (reg)) argument
53 #define sca_outl(value, reg, card) writel(value, (card)->scabase + (reg)) argument
65 sca_outl(sca_inl(IER0, port->card) | in enable_intr()
66 (port->chan ? 0x08002200 : 0x00080022), IER0, port->card); in enable_intr()
[all …]
H A Dpc300too.c3 * Cyclades PC300 synchronous serial card driver for Linux
55 enum { PC300_RSV = 1, PC300_X21, PC300_TE }; /* card types */
75 struct card_s *card; member
104 #define get_port(card, port) ((port) < (card)->n_ports ? \ argument
105 (&(card)->ports[port]) : (NULL))
111 card_t *card = port->card; in pc300_set_iface() local
112 u32 __iomem *init_ctrl = &card->plxbase->init_ctrl; in pc300_set_iface()
118 port->card); in pc300_set_iface()
143 sca_out(rxs, msci + RXS, card); in pc300_set_iface()
144 sca_out(txs, msci + TXS, card); in pc300_set_iface()
[all …]
H A Dhd64570.c55 static inline int sca_intr_status(card_t *card) in sca_intr_status() argument
58 u8 isr0 = sca_in(ISR0, card); in sca_intr_status()
59 u8 isr1 = sca_in(ISR1, card); in sca_intr_status()
75 if (sca_in(DSR_TX(0), card) & DSR_EOM) in sca_intr_status()
78 if (sca_in(DSR_TX(1), card) & DSR_EOM) in sca_intr_status()
148 card_t *card = port_to_card(port); in sca_init_port() local
156 openwin(card, 0); in sca_init_port()
161 u16 buffs = transmit ? card->tx_ring_buffers in sca_init_port()
162 : card->rx_ring_buffers; in sca_init_port()
177 DSR_RX(phy_node(port)), card); in sca_init_port()
[all …]
H A Dn2.c3 * SDL Inc. RISCom/N2 synchronous serial card driver for Linux
91 struct card_s *card; member
123 #define sca_reg(reg, card) (0x8000 | (card)->io | \ argument
125 #define sca_in(reg, card) inb(sca_reg(reg, card)) argument
126 #define sca_out(value, reg, card) outb(value, sca_reg(reg, card)) argument
127 #define sca_inw(reg, card) inw(sca_reg(reg, card)) argument
128 #define sca_outw(value, reg, card) outw(value, sca_reg(reg, card)) argument
130 #define port_to_card(port) ((port)->card)
133 #define winsize(card) (USE_WINDOWSIZE) argument
134 #define winbase(card) ((card)->winbase) argument
[all …]
/linux/drivers/media/pci/bt8xx/
H A 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/drivers/net/wireless/marvell/libertas/
H A 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 …]
H A Dif_sdio.c33 #include <linux/mmc/card.h>
51 * the card from the slot. The driver handles these 2 cases
55 * If the card is removed, there is no need to send this command.
58 * scenarios. This flag is initialized as FALSE in case the card
131 static void if_sdio_finish_power_on(struct if_sdio_card *card);
132 static int if_sdio_power_off(struct if_sdio_card *card);
144 static u16 if_sdio_read_scratch(struct if_sdio_card *card, int *err) in if_sdio_read_scratch() argument
149 scratch = sdio_readb(card->func, card->scratch_reg, &ret); in if_sdio_read_scratch()
151 scratch |= sdio_readb(card->func, card->scratch_reg + 1, in if_sdio_read_scratch()
163 static u8 if_sdio_read_rx_unit(struct if_sdio_card *card) in if_sdio_read_rx_unit() argument
[all …]
/linux/drivers/atm/
H A Dsolos-pci.c3 * Driver for the Solos PCI ADSL2+ card, designed to support Linux by
67 #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()
[all …]
/linux/drivers/net/ethernet/dec/tulip/
H A Dxircom_cb.c47 /* IO registers on the card, offsets */
113 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);
[all …]
/linux/drivers/memstick/core/
H A Dmemstick.c28 static int memstick_dev_match(struct memstick_dev *card, in memstick_dev_match() argument
32 if ((id->type == card->id.type) in memstick_dev_match()
33 && (id->category == card->id.category) in memstick_dev_match()
34 && (id->class == card->id.class)) in memstick_dev_match()
43 struct memstick_dev *card = container_of(dev, struct memstick_dev, in memstick_bus_match() local
51 if (memstick_dev_match(card, ids)) in memstick_bus_match()
61 const struct memstick_dev *card = container_of_const(dev, struct memstick_dev, in memstick_uevent() local
64 if (add_uevent_var(env, "MEMSTICK_TYPE=%02X", card->id.type)) in memstick_uevent()
67 if (add_uevent_var(env, "MEMSTICK_CATEGORY=%02X", card->id.category)) in memstick_uevent()
70 if (add_uevent_var(env, "MEMSTICK_CLASS=%02X", card->id.class)) in memstick_uevent()
[all …]
/linux/drivers/pnp/
H A 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 …]
/linux/drivers/net/wireless/marvell/mwifiex/
H A Dsdio.c528 * The device node is saved in card->plt_of_node.
546 * the card structure, enables SDIO function number and initiates the
554 struct sdio_mmc_card *card = NULL; in mwifiex_sdio_probe() local
559 card = devm_kzalloc(&func->dev, sizeof(*card), GFP_KERNEL); in mwifiex_sdio_probe()
560 if (!card) in mwifiex_sdio_probe()
563 init_completion(&card->fw_done); in mwifiex_sdio_probe()
565 card->func = func; in mwifiex_sdio_probe()
567 func->card->quirks |= MMC_QUIRK_BLKSZ_FOR_BYTE_MODE; in mwifiex_sdio_probe()
572 card->firmware = data->firmware; in mwifiex_sdio_probe()
573 card->firmware_sdiouart = data->firmware_sdiouart; in mwifiex_sdio_probe()
[all …]
/linux/drivers/zorro/
H A Dzorro.ids35 0900 A2060 [ArcNet Card]
43 5a00 A2065 [Ethernet Card]
44 6000 Romulator Card
45 6100 A3000 Test Fixture [Miscellaneous Expansion Card]
47 7000 A2065 [Ethernet Card]
60 f500 A2410 HiRes [Graphics Card]
62 0100 Live! 2000 [Video Card]
74 4100 8-Star [Miscellaneous Expansion Card]
77 6000 Delta [Miscellaneous Expansion Card]
81 c100 MBX 1200/1200z [Miscellaneous Expansion Card]
[all …]
/linux/drivers/net/can/sja1000/
H A Dpeak_pcmcia.c3 * CAN driver for PEAK-System PCAN-PC Card
135 /* PCAN-PC Card private structure */
154 static void pcan_set_leds(struct pcan_pccard *card, u8 mask, u8 state);
159 static void pcan_start_led_timer(struct pcan_pccard *card) in pcan_start_led_timer() argument
161 if (!timer_pending(&card->led_timer)) in pcan_start_led_timer()
162 mod_timer(&card->led_timer, jiffies + HZ); in pcan_start_led_timer()
168 static void pcan_stop_led_timer(struct pcan_pccard *card) in pcan_stop_led_timer() argument
170 timer_delete_sync(&card->led_timer); in pcan_stop_led_timer()
186 struct pcan_pccard *card = priv->priv; in pcan_write_canreg() local
187 int c = (priv->reg_base - card->ioport_addr) / PCC_CHAN_SIZE; in pcan_write_canreg()
[all …]
/linux/include/sound/
H A Dsoc-card.h3 * soc-card.h
16 static inline void snd_soc_card_mutex_lock_root(struct snd_soc_card *card) in snd_soc_card_mutex_lock_root() argument
18 mutex_lock_nested(&card->mutex, SND_SOC_CARD_CLASS_ROOT); in snd_soc_card_mutex_lock_root()
21 static inline void snd_soc_card_mutex_lock(struct snd_soc_card *card) in snd_soc_card_mutex_lock() argument
23 mutex_lock_nested(&card->mutex, SND_SOC_CARD_CLASS_RUNTIME); in snd_soc_card_mutex_lock()
26 static inline void snd_soc_card_mutex_unlock(struct snd_soc_card *card) in snd_soc_card_mutex_unlock() argument
28 mutex_unlock(&card->mutex); in snd_soc_card_mutex_unlock()
33 int snd_soc_card_jack_new(struct snd_soc_card *card, const char *id, int type,
35 int snd_soc_card_jack_new_pins(struct snd_soc_card *card, const char *id,
40 int snd_soc_card_suspend_pre(struct snd_soc_card *card);
[all …]

12345678910>>...109