/kernel/linux/linux-5.10/drivers/block/rsxx/ |
D | core.c | 52 struct rsxx_cardinfo *card = m->private; in rsxx_attr_pci_regs_show() local 55 ioread32(card->regmap + HWID)); in rsxx_attr_pci_regs_show() 57 ioread32(card->regmap + SCRATCH)); in rsxx_attr_pci_regs_show() 59 ioread32(card->regmap + IER)); in rsxx_attr_pci_regs_show() 61 ioread32(card->regmap + IPR)); in rsxx_attr_pci_regs_show() 63 ioread32(card->regmap + CREG_CMD)); in rsxx_attr_pci_regs_show() 65 ioread32(card->regmap + CREG_ADD)); in rsxx_attr_pci_regs_show() 67 ioread32(card->regmap + CREG_CNT)); in rsxx_attr_pci_regs_show() 69 ioread32(card->regmap + CREG_STAT)); in rsxx_attr_pci_regs_show() 71 ioread32(card->regmap + CREG_DATA0)); in rsxx_attr_pci_regs_show() [all …]
|
D | cregs.c | 18 typedef void (*creg_cmd_cb)(struct rsxx_cardinfo *card, 47 static int copy_to_creg_data(struct rsxx_cardinfo *card, in copy_to_creg_data() argument 55 if (unlikely(card->eeh_state)) in copy_to_creg_data() 64 iowrite32be(data[i], card->regmap + CREG_DATA(i)); in copy_to_creg_data() 66 iowrite32(data[i], card->regmap + CREG_DATA(i)); in copy_to_creg_data() 73 static int copy_from_creg_data(struct rsxx_cardinfo *card, in copy_from_creg_data() argument 81 if (unlikely(card->eeh_state)) in copy_from_creg_data() 90 data[i] = ioread32be(card->regmap + CREG_DATA(i)); in copy_from_creg_data() 92 data[i] = ioread32(card->regmap + CREG_DATA(i)); in copy_from_creg_data() 98 static void creg_issue_cmd(struct rsxx_cardinfo *card, struct creg_cmd *cmd) in creg_issue_cmd() argument [all …]
|
D | dev.c | 61 struct rsxx_cardinfo *card = bdev->bd_disk->private_data; in rsxx_blkdev_ioctl() local 65 return rsxx_reg_access(card, (void __user *)arg, 1); in rsxx_blkdev_ioctl() 67 return rsxx_reg_access(card, (void __user *)arg, 0); in rsxx_blkdev_ioctl() 75 struct rsxx_cardinfo *card = bdev->bd_disk->private_data; in rsxx_getgeo() local 76 u64 blocks = card->size8 >> 9; in rsxx_getgeo() 82 if (card->size8) { in rsxx_getgeo() 102 static void bio_dma_done_cb(struct rsxx_cardinfo *card, in bio_dma_done_cb() argument 112 if (!card->eeh_state && card->gendisk) in bio_dma_done_cb() 125 struct rsxx_cardinfo *card = bio->bi_disk->private_data; in rsxx_submit_bio() local 133 if (!card) in rsxx_submit_bio() [all …]
|
/kernel/linux/linux-5.10/sound/soc/ |
D | 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() 60 int snd_soc_card_jack_new(struct snd_soc_card *card, const char *id, int type, in snd_soc_card_jack_new() argument 67 jack->card = card; in snd_soc_card_jack_new() 72 ret = snd_jack_new(card->snd_card, id, type, &jack->jack, false, false); in snd_soc_card_jack_new() 79 return soc_card_ret(card, ret); in snd_soc_card_jack_new() 83 int snd_soc_card_suspend_pre(struct snd_soc_card *card) in snd_soc_card_suspend_pre() argument [all …]
|
/kernel/linux/linux-5.10/drivers/mmc/core/ |
D | mmc.c | 68 static int mmc_decode_cid(struct mmc_card *card) in mmc_decode_cid() argument 70 u32 *resp = card->raw_cid; in mmc_decode_cid() 76 switch (card->csd.mmca_vsn) { in mmc_decode_cid() 79 card->cid.manfid = UNSTUFF_BITS(resp, 104, 24); in mmc_decode_cid() 80 card->cid.prod_name[0] = UNSTUFF_BITS(resp, 96, 8); in mmc_decode_cid() 81 card->cid.prod_name[1] = UNSTUFF_BITS(resp, 88, 8); in mmc_decode_cid() 82 card->cid.prod_name[2] = UNSTUFF_BITS(resp, 80, 8); in mmc_decode_cid() 83 card->cid.prod_name[3] = UNSTUFF_BITS(resp, 72, 8); in mmc_decode_cid() 84 card->cid.prod_name[4] = UNSTUFF_BITS(resp, 64, 8); in mmc_decode_cid() 85 card->cid.prod_name[5] = UNSTUFF_BITS(resp, 56, 8); in mmc_decode_cid() [all …]
|
D | sdio.c | 30 MMC_DEV_ATTR(vendor, "0x%04x\n", card->cis.vendor); 31 MMC_DEV_ATTR(device, "0x%04x\n", card->cis.device); 32 MMC_DEV_ATTR(revision, "%u.%u\n", card->major_rev, card->minor_rev); 33 MMC_DEV_ATTR(ocr, "0x%08x\n", card->ocr); 34 MMC_DEV_ATTR(rca, "0x%04x\n", card->rca); 39 struct mmc_card *card = mmc_dev_to_card(dev); \ 41 if (num > card->num_info) \ 43 if (!card->info[num-1][0]) \ 45 return sprintf(buf, "%s\n", card->info[num-1]); \ 77 if (mmc_card_nonstd_func_interface(func->card)) { in sdio_read_fbr() [all …]
|
D | sd.c | 72 void mmc_decode_cid(struct mmc_card *card) in mmc_decode_cid() argument 74 u32 *resp = card->raw_cid; in mmc_decode_cid() 80 card->cid.manfid = UNSTUFF_BITS(resp, 120, 8); in mmc_decode_cid() 81 card->cid.oemid = UNSTUFF_BITS(resp, 104, 16); in mmc_decode_cid() 82 card->cid.prod_name[0] = UNSTUFF_BITS(resp, 96, 8); in mmc_decode_cid() 83 card->cid.prod_name[1] = UNSTUFF_BITS(resp, 88, 8); in mmc_decode_cid() 84 card->cid.prod_name[2] = UNSTUFF_BITS(resp, 80, 8); in mmc_decode_cid() 85 card->cid.prod_name[3] = UNSTUFF_BITS(resp, 72, 8); in mmc_decode_cid() 86 card->cid.prod_name[4] = UNSTUFF_BITS(resp, 64, 8); in mmc_decode_cid() 87 card->cid.hwrev = UNSTUFF_BITS(resp, 60, 4); in mmc_decode_cid() [all …]
|
/kernel/linux/linux-5.10/drivers/atm/ |
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 …]
|
D | nicstar.c | 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); 133 static int push_scqe(ns_dev * card, vc_map * vc, scq_info * scq, ns_scqe * tbd, 135 static void process_tsq(ns_dev * card); 136 static void drain_scq(ns_dev * card, scq_info * scq, int pos); [all …]
|
/kernel/linux/linux-5.10/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 | 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() 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 …]
|
/kernel/linux/linux-5.10/drivers/block/ |
D | umem.c | 145 static void check_batteries(struct cardinfo *card); 147 static int get_userbit(struct cardinfo *card, int bit) in get_userbit() argument 151 led = readb(card->csr_remap + MEMCTRLCMD_LEDCTRL); in get_userbit() 155 static int set_userbit(struct cardinfo *card, int bit, unsigned char state) in set_userbit() argument 159 led = readb(card->csr_remap + MEMCTRLCMD_LEDCTRL); in set_userbit() 164 writeb(led, card->csr_remap + MEMCTRLCMD_LEDCTRL); in set_userbit() 172 static void set_led(struct cardinfo *card, int shift, unsigned char state) in set_led() argument 176 led = readb(card->csr_remap + MEMCTRLCMD_LEDCTRL); in set_led() 183 writeb(led, card->csr_remap + MEMCTRLCMD_LEDCTRL); in set_led() 188 static void dump_regs(struct cardinfo *card) in dump_regs() argument [all …]
|
/kernel/linux/linux-5.10/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, __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, __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() 115 if ((addr->proto == QETH_PROT_IPV4) && card->ipato.invert4) in qeth_l3_is_addr_covered_by_ipato() 117 else if ((addr->proto == QETH_PROT_IPV6) && card->ipato.invert6) in qeth_l3_is_addr_covered_by_ipato() 123 static int qeth_l3_delete_ip(struct qeth_card *card, in qeth_l3_delete_ip() argument 130 QETH_CARD_TEXT(card, 2, "delrxip"); in qeth_l3_delete_ip() [all …]
|
D | lcs.c | 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() 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 …]
|
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); 79 struct qeth_card *card; in qeth_close_dev_handler() local 81 card = container_of(work, struct qeth_card, close_dev_work); in qeth_close_dev_handler() 82 QETH_CARD_TEXT(card, 2, "cldevhdl"); in qeth_close_dev_handler() 83 ccwgroup_set_offline(card->gdev); in qeth_close_dev_handler() 86 static const char *qeth_get_cardname(struct qeth_card *card) in qeth_get_cardname() argument 88 if (IS_VM_NIC(card)) { in qeth_get_cardname() 89 switch (card->info.type) { in qeth_get_cardname() 102 switch (card->info.type) { in qeth_get_cardname() [all …]
|
/kernel/linux/linux-5.10/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 | 78 spider_net_read_reg(struct spider_net_card *card, u32 reg) in spider_net_read_reg() argument 84 return in_be32(card->regs + reg); in spider_net_read_reg() 94 spider_net_write_reg(struct spider_net_card *card, u32 reg, u32 value) in spider_net_write_reg() argument 100 out_be32(card->regs + reg, value); in spider_net_write_reg() 118 struct spider_net_card *card = netdev_priv(netdev); in spider_net_write_phy() local 124 spider_net_write_reg(card, SPIDER_NET_GPCWOPCMD, writevalue); in spider_net_write_phy() 141 struct spider_net_card *card = netdev_priv(netdev); in spider_net_read_phy() local 145 spider_net_write_reg(card, SPIDER_NET_GPCROPCMD, readvalue); in spider_net_read_phy() 151 readvalue = spider_net_read_reg(card, SPIDER_NET_GPCROPCMD); in spider_net_read_phy() 164 spider_net_setup_aneg(struct spider_net_card *card) in spider_net_setup_aneg() argument [all …]
|
/kernel/linux/linux-5.10/sound/core/ |
D | init.c | 84 int (*snd_mixer_oss_notify_callback)(struct snd_card *card, int free_flag); 126 void snd_device_initialize(struct device *dev, struct snd_card *card) in snd_device_initialize() argument 129 if (card) in snd_device_initialize() 130 dev->parent = &card->card_dev; in snd_device_initialize() 136 static int snd_card_do_free(struct snd_card *card); 165 struct snd_card *card; in snd_card_new() local 174 card = kzalloc(sizeof(*card) + extra_size, GFP_KERNEL); in snd_card_new() 175 if (!card) in snd_card_new() 178 card->private_data = (char *)card + sizeof(struct snd_card); in snd_card_new() 180 strlcpy(card->id, xid, sizeof(card->id)); in snd_card_new() [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/drivers/net/can/softing/ |
D | softing_fw.c | 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() 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 …]
|
D | softing_main.c | 30 static inline void softing_set_reset_dpram(struct softing *card) in softing_set_reset_dpram() argument 32 if (card->pdat->generation >= 2) { in softing_set_reset_dpram() 33 spin_lock_bh(&card->spin); in softing_set_reset_dpram() 34 iowrite8(ioread8(&card->dpram[DPRAM_V2_RESET]) & ~1, in softing_set_reset_dpram() 35 &card->dpram[DPRAM_V2_RESET]); in softing_set_reset_dpram() 36 spin_unlock_bh(&card->spin); in softing_set_reset_dpram() 40 static inline void softing_clr_reset_dpram(struct softing *card) in softing_clr_reset_dpram() argument 42 if (card->pdat->generation >= 2) { in softing_clr_reset_dpram() 43 spin_lock_bh(&card->spin); in softing_clr_reset_dpram() 44 iowrite8(ioread8(&card->dpram[DPRAM_V2_RESET]) | 1, in softing_clr_reset_dpram() [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/drivers/net/wireless/marvell/libertas/ |
D | if_sdio.c | 130 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 …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/dec/tulip/ |
D | xircom_cb.c | 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); 126 static void remove_descriptors(struct xircom_private *card); [all …]
|