Home
last modified time | relevance | path

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

12345678910>>...69

/linux/drivers/atm/
H A 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 …]
H A 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 …]
H A 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/sound/core/
H A Dinit.c85 int (*snd_mixer_oss_notify_callback)(struct snd_card *card, int free_flag);
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);
175 struct snd_card *card; in snd_card_new() local
184 card = kzalloc(sizeof(*card) + extra_size, GFP_KERNEL); in snd_card_new()
185 if (!card) in snd_card_new()
188 err = snd_card_init(card, parent, idx, xid, module, extra_size); in snd_card_new()
[all …]
/linux/drivers/isdn/hardware/mISDN/
H A 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 …]
H A 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()
115 ReadW6692(struct w6692_hw *card, u8 offset) in ReadW6692() argument
117 return inb(card->addr + offset); in ReadW6692()
121 WriteW6692(struct w6692_hw *card, u8 offset, u8 value) in WriteW6692() argument
[all …]
/linux/drivers/firewire/
H A Dcore-card.c29 void func(const struct fw_card *card, const char *fmt, ...) \
38 dev_name(card->device), &vaf); \
89 static void generate_config_rom(struct fw_card *card, __be32 *config_rom) in generate_config_rom() argument
107 BIB_LINK_SPEED(card->link_speed) | in generate_config_rom()
108 BIB_GENERATION(card->config_rom_generation++ % 14 + 2) | in generate_config_rom()
110 BIB_MAX_RECEIVE(card->max_receive) | in generate_config_rom()
112 config_rom[3] = cpu_to_be32(card->guid >> 32); in generate_config_rom()
113 config_rom[4] = cpu_to_be32(card->guid); in generate_config_rom()
151 struct fw_card *card; in update_config_roms() local
153 list_for_each_entry (card, &card_list, link) { in update_config_roms()
[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/can/softing/
H A 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 …]
/linux/drivers/net/ethernet/dec/tulip/
H A 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/drivers/net/wan/
H A 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 …]
H A Dhd64572.c48 #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()
71 sca_outl(sca_inl(IER0, port->card) & in disable_intr()
72 (port->chan ? 0x00FF00FF : 0xFF00FF00), IER0, port->card); in disable_intr()
[all …]
H A Dpc300too.c75 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()
147 if (port->card->type == PC300_RSV) { in pc300_set_iface()
149 writel(card->init_ctrl_value | in pc300_set_iface()
[all …]
H A Dn2.c91 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
135 #define get_port(card, port) ((card)->ports[port].valid ? \ argument
[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 Dc101.c80 #define sca_in(reg, card) readb((card)->win0base + C101_SCA + (reg)) argument
81 #define sca_out(value, reg, card) writeb(value, (card)->win0base + C101_SCA + (reg)) argument
82 #define sca_inw(reg, card) readw((card)->win0base + C101_SCA + (reg)) argument
85 #define sca_outw(value, reg, card) do { \ argument
86 writeb(value & 0xFF, (card)->win0base + C101_SCA + (reg)); \
87 writeb((value >> 8) & 0xFF, (card)->win0base + C101_SCA + (reg + 1));\
93 #define winsize(card) (C101_WINDOW_SIZE) argument
94 #define win0base(card) ((card)->win0base) argument
95 #define winbase(card) ((card)->win0base + 0x2000) argument
96 #define get_port(card, port) (card) argument
[all …]
H A Dpci200syn.c63 struct card_s *card; member
88 #define get_port(card, port) (&(card)->ports[port]) argument
89 #define sca_flush(card) (sca_in(IER0, card)) argument
112 card_t *card = port->card; in pci200_set_iface() local
118 port->card); in pci200_set_iface()
143 sca_out(rxs, msci + RXS, card); in pci200_set_iface()
144 sca_out(txs, msci + TXS, card); in pci200_set_iface()
158 sca_flush(port->card); in pci200_open()
165 sca_flush(dev_to_port(dev)->card); in pci200_close()
219 sca_flush(port->card); in pci200_ioctl()
[all …]
/linux/drivers/net/wireless/marvell/mwifiex/
H A Dsdio.c554 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()
574 card->reg = data->reg; in mwifiex_sdio_probe()
575 card->max_ports = data->max_ports; in mwifiex_sdio_probe()
[all …]
/linux/include/sound/
H A Dsoc-card.h16 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);
41 int snd_soc_card_suspend_post(struct snd_soc_card *card);
[all …]
/linux/sound/soc/
H A Dsoc-core.c136 if (!component->card->debugfs_card_root) in soc_init_component_debugfs()
146 component->card->debugfs_card_root); in soc_init_component_debugfs()
151 component->card->debugfs_card_root); in soc_init_component_debugfs()
198 static void soc_init_card_debugfs(struct snd_soc_card *card) in soc_init_card_debugfs() argument
200 card->debugfs_card_root = debugfs_create_dir(card->name, in soc_init_card_debugfs()
203 debugfs_create_u32("dapm_pop_time", 0644, card->debugfs_card_root, in soc_init_card_debugfs()
204 &card->pop_time); in soc_init_card_debugfs()
206 snd_soc_dapm_debugfs_init(snd_soc_card_to_dapm(card), card in soc_init_card_debugfs()
209 soc_cleanup_card_debugfs(struct snd_soc_card * card) soc_cleanup_card_debugfs() argument
235 soc_init_card_debugfs(struct snd_soc_card * card) soc_init_card_debugfs() argument
236 soc_cleanup_card_debugfs(struct snd_soc_card * card) soc_cleanup_card_debugfs() argument
408 snd_soc_get_pcm_runtime(struct snd_soc_card * card,struct snd_soc_dai_link * dai_link) snd_soc_get_pcm_runtime() argument
500 soc_new_pcm_runtime(struct snd_soc_card * card,struct snd_soc_dai_link * dai_link) soc_new_pcm_runtime() argument
584 snd_soc_fill_dummy_dai(struct snd_soc_card * card) snd_soc_fill_dummy_dai() argument
606 snd_soc_flush_all_delayed_work(struct snd_soc_card * card) snd_soc_flush_all_delayed_work() argument
615 soc_playback_digital_mute(struct snd_soc_card * card,int mute) soc_playback_digital_mute() argument
634 soc_dapm_suspend_resume(struct snd_soc_card * card,int event) soc_dapm_suspend_resume() argument
652 struct snd_soc_card *card = dev_get_drvdata(dev); snd_soc_suspend() local
754 struct snd_soc_card *card = soc_resume_deferred() local
796 struct snd_soc_card *card = dev_get_drvdata(dev); snd_soc_resume() local
816 soc_resume_init(struct snd_soc_card * card) soc_resume_init() argument
824 soc_resume_init(struct snd_soc_card * card) soc_resume_init() argument
946 soc_dai_link_sanity_check(struct snd_soc_card * card,struct snd_soc_dai_link * link) soc_dai_link_sanity_check() argument
1077 snd_soc_compensate_channel_connection_map(struct snd_soc_card * card,struct snd_soc_dai_link * dai_link) snd_soc_compensate_channel_connection_map() argument
1144 snd_soc_remove_pcm_runtime(struct snd_soc_card * card,struct snd_soc_pcm_runtime * rtd) snd_soc_remove_pcm_runtime() argument
1172 snd_soc_add_pcm_runtime(struct snd_soc_card * card,struct snd_soc_dai_link * dai_link) snd_soc_add_pcm_runtime() argument
1266 snd_soc_add_pcm_runtimes(struct snd_soc_card * card,struct snd_soc_dai_link * dai_link,int num_dai_link) snd_soc_add_pcm_runtimes() argument
1509 soc_init_pcm_runtime(struct snd_soc_card * card,struct snd_soc_pcm_runtime * rtd) soc_init_pcm_runtime() argument
1554 soc_set_name_prefix(struct snd_soc_card * card,struct snd_soc_component * component) soc_set_name_prefix() argument
1599 soc_probe_component(struct snd_soc_card * card,struct snd_soc_component * component) soc_probe_component() argument
1692 soc_remove_link_dais(struct snd_soc_card * card) soc_remove_link_dais() argument
1705 soc_probe_link_dais(struct snd_soc_card * card) soc_probe_link_dais() argument
1722 soc_remove_link_components(struct snd_soc_card * card) soc_remove_link_components() argument
1740 soc_probe_link_components(struct snd_soc_card * card) soc_probe_link_components() argument
1762 soc_unbind_aux_dev(struct snd_soc_card * card) soc_unbind_aux_dev() argument
1773 soc_bind_aux_dev(struct snd_soc_card * card) soc_bind_aux_dev() argument
1793 soc_probe_aux_devices(struct snd_soc_card * card) soc_probe_aux_devices() argument
1813 soc_remove_aux_devices(struct snd_soc_card * card) soc_remove_aux_devices() argument
1882 append_dmi_string(struct snd_soc_card * card,const char * str) append_dmi_string() argument
1926 snd_soc_set_dmi_name(struct snd_soc_card * card) snd_soc_set_dmi_name() argument
1976 snd_soc_set_dmi_name(struct snd_soc_card * card) snd_soc_set_dmi_name() argument
1982 soc_check_tplg_fes(struct snd_soc_card * card) soc_check_tplg_fes() argument
2064 soc_setup_card_name(card,name,name1,name2) global() argument
2066 __soc_setup_card_name(struct snd_soc_card * card,char * name,int len,const char * name1,const char * name2) __soc_setup_card_name() argument
2109 soc_cleanup_card_resources(struct snd_soc_card * card) soc_cleanup_card_resources() argument
2145 snd_soc_unbind_card(struct snd_soc_card * card) snd_soc_unbind_card() argument
2155 snd_soc_bind_card(struct snd_soc_card * card) snd_soc_bind_card() argument
2318 devm_snd_soc_bind_card(struct device * dev,struct snd_soc_card * card) devm_snd_soc_bind_card() argument
2338 snd_soc_rebind_card(struct snd_soc_card * card) snd_soc_rebind_card() argument
2358 struct snd_soc_card *card = platform_get_drvdata(pdev); soc_probe() local
2379 struct snd_soc_card *card = dev_get_drvdata(dev); snd_soc_poweroff() local
2463 snd_soc_add_controls(struct snd_card * card,struct device * dev,const struct snd_kcontrol_new * controls,int num_controls,const char * prefix,void * data) snd_soc_add_controls() argument
2495 struct snd_card *card = component->card->snd_card; snd_soc_add_component_controls() local
2515 struct snd_card *card = soc_card->snd_card; snd_soc_add_card_controls() local
2535 struct snd_card *card = dai->component->card->snd_card; snd_soc_add_dai_controls() local
2548 snd_soc_register_card(struct snd_soc_card * card) snd_soc_register_card() argument
2596 snd_soc_unregister_card(struct snd_soc_card * card) snd_soc_unregister_card() argument
2820 struct snd_soc_card *card = component->card; snd_soc_del_component_unlocked() local
2869 struct snd_soc_card *card, *c; snd_soc_add_component() local
2961 snd_soc_of_parse_card_name(struct snd_soc_card * card,const char * propname) snd_soc_of_parse_card_name() argument
2998 snd_soc_of_parse_audio_simple_widgets(struct snd_soc_card * card,const char * propname) snd_soc_of_parse_audio_simple_widgets() argument
3078 snd_soc_of_parse_pin_switches(struct snd_soc_card * card,const char * prop) snd_soc_of_parse_pin_switches() argument
3204 snd_soc_of_parse_audio_routing(struct snd_soc_card * card,const char * propname) snd_soc_of_parse_audio_routing() argument
3255 snd_soc_of_parse_aux_devs(struct snd_soc_card * card,const char * propname) snd_soc_of_parse_aux_devs() argument
[all...]
/linux/drivers/net/can/sja1000/
H A Dems_pci.c128 static u8 ems_pci_v1_readb(struct ems_pci_card *card, unsigned int port) in ems_pci_v1_readb() argument
130 return readb(card->base_addr + (port * 4)); in ems_pci_v1_readb()
146 struct ems_pci_card *card = priv->priv; in ems_pci_v1_post_irq() local
150 card->conf_addr + PITA2_ICR); in ems_pci_v1_post_irq()
166 struct ems_pci_card *card = priv->priv; in ems_pci_v2_post_irq() local
168 writel(PLX_ICSR_ENA_CLR, card->conf_addr + PLX_ICSR); in ems_pci_v2_post_irq()
184 struct ems_pci_card *card = priv->priv; in ems_pci_v3_post_irq() local
186 writel(ASIX_LINTSR_INT0AC, card->conf_addr + ASIX_LINTSR); in ems_pci_v3_post_irq()
212 struct ems_pci_card *card = pci_get_drvdata(pdev); in ems_pci_del_card() local
216 for (i = 0; i < card->channels; i++) { in ems_pci_del_card()
[all …]
/linux/drivers/s390/net/
H A Dqeth_l2_sys.c16 struct qeth_card *card = dev_get_drvdata(dev); in qeth_bridge_port_role_state_show() local
21 if (!qeth_bridgeport_allowed(card)) in qeth_bridge_port_role_state_show()
24 mutex_lock(&card->sbp_lock); in qeth_bridge_port_role_state_show()
25 if (qeth_card_hw_is_reachable(card) && in qeth_bridge_port_role_state_show()
26 card->options.sbp.supported_funcs) in qeth_bridge_port_role_state_show()
27 rc = qeth_bridgeport_query_ports(card, in qeth_bridge_port_role_state_show()
28 &card->options.sbp.role, &state); in qeth_bridge_port_role_state_show()
42 switch (card->options.sbp.role) { in qeth_bridge_port_role_state_show()
53 QETH_CARD_TEXT_(card, 2, "SBP%02x:%02x", in qeth_bridge_port_role_state_show()
54 card->options.sbp.role, state); in qeth_bridge_port_role_state_show()
[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/mtd/maps/
H A Dvmu-flash.c61 struct memcard *card; in ofs_to_block() local
67 card = maple_get_drvdata(mdev); in ofs_to_block()
69 if (src_ofs >= card->parts[partition].numblocks * card->blocklen) in ofs_to_block()
72 num = src_ofs / card->blocklen; in ofs_to_block()
73 if (num > card->parts[partition].numblocks) in ofs_to_block()
81 vblock->ofs = src_ofs % card->blocklen; in ofs_to_block()
92 struct memcard *card; in vmu_blockread() local
95 card = maple_get_drvdata(mdev); in vmu_blockread()
98 if (unlikely(!card->blockread)) in vmu_blockread()
101 memcpy(card->blockread, mq->recvbuf->buf + 12, in vmu_blockread()
[all …]
/linux/sound/soc/sdw_utils/
H A Dsoc_sdw_cs42l43.c58 struct asoc_sdw_mc_private *ctx = snd_soc_card_get_drvdata(rtd->card); in asoc_sdw_cs42l43_hs_rtd_init()
60 struct snd_soc_card *card = rtd->card; in asoc_sdw_cs42l43_hs_rtd_init() local
61 struct snd_soc_dapm_context *dapm = snd_soc_card_to_dapm(card); in asoc_sdw_cs42l43_hs_rtd_init()
64 card->components = devm_kasprintf(card->dev, GFP_KERNEL, "%s hs:cs42l43", in asoc_sdw_cs42l43_hs_rtd_init()
65 card->components); in asoc_sdw_cs42l43_hs_rtd_init()
66 if (!card->components) in asoc_sdw_cs42l43_hs_rtd_init()
72 dev_err(card->dev, "cs42l43 hs map addition failed: %d\n", ret); in asoc_sdw_cs42l43_hs_rtd_init()
76 ret = snd_soc_card_jack_new_pins(card, "Jack", in asoc_sdw_cs42l43_hs_rtd_init()
84 dev_err(card->dev, "Failed to create jack: %d\n", ret); in asoc_sdw_cs42l43_hs_rtd_init()
95 dev_err(card->dev, "Failed to register jack: %d\n", ret); in asoc_sdw_cs42l43_hs_rtd_init()
[all …]

12345678910>>...69