/drivers/staging/line6/ |
D | midibuf.c | 41 static int midibuf_is_empty(struct midi_buffer *this) in midibuf_is_empty() argument 43 return (this->pos_read == this->pos_write) && !this->full; in midibuf_is_empty() 46 static int midibuf_is_full(struct midi_buffer *this) in midibuf_is_full() argument 48 return this->full; in midibuf_is_full() 51 void line6_midibuf_reset(struct midi_buffer *this) in line6_midibuf_reset() argument 53 this->pos_read = this->pos_write = this->full = 0; in line6_midibuf_reset() 54 this->command_prev = -1; in line6_midibuf_reset() 57 int line6_midibuf_init(struct midi_buffer *this, int size, int split) in line6_midibuf_init() argument 59 this->buf = kmalloc(size, GFP_KERNEL); in line6_midibuf_init() 61 if (this->buf == NULL) in line6_midibuf_init() [all …]
|
/drivers/net/wireless/ |
D | wl3501_cs.c | 187 static inline void wl3501_switch_page(struct wl3501_card *this, u8 page) in wl3501_switch_page() argument 189 wl3501_outb(page, this->base_addr + WL3501_NIC_BSS); in wl3501_switch_page() 198 static int wl3501_get_flash_mac_addr(struct wl3501_card *this) in wl3501_get_flash_mac_addr() argument 200 int base_addr = this->base_addr; in wl3501_get_flash_mac_addr() 209 this->mac_addr[0] = inb(base_addr + WL3501_NIC_IODPA); in wl3501_get_flash_mac_addr() 211 this->mac_addr[1] = inb(base_addr + WL3501_NIC_IODPA); in wl3501_get_flash_mac_addr() 213 this->mac_addr[2] = inb(base_addr + WL3501_NIC_IODPA); in wl3501_get_flash_mac_addr() 215 this->mac_addr[3] = inb(base_addr + WL3501_NIC_IODPA); in wl3501_get_flash_mac_addr() 217 this->mac_addr[4] = inb(base_addr + WL3501_NIC_IODPA); in wl3501_get_flash_mac_addr() 219 this->mac_addr[5] = inb(base_addr + WL3501_NIC_IODPA); in wl3501_get_flash_mac_addr() [all …]
|
/drivers/mtd/nand/gpmi-nand/ |
D | gpmi-nand.c | 82 struct gpmi_nand_data *this = cookie; in bch_irq() local 84 gpmi_clear_bch(this); in bch_irq() 85 complete(&this->bch_done); in bch_irq() 107 static inline int get_ecc_strength(struct gpmi_nand_data *this) in get_ecc_strength() argument 109 struct bch_geometry *geo = &this->bch_geometry; in get_ecc_strength() 110 struct mtd_info *mtd = &this->mtd; in get_ecc_strength() 120 static inline bool gpmi_check_ecc(struct gpmi_nand_data *this) in gpmi_check_ecc() argument 122 struct bch_geometry *geo = &this->bch_geometry; in gpmi_check_ecc() 125 if (GPMI_IS_MX23(this) || GPMI_IS_MX28(this)) { in gpmi_check_ecc() 130 return geo->ecc_strength <= this->devdata->bch_max_ecc_strength; in gpmi_check_ecc() [all …]
|
D | gpmi-lib.c | 127 static int __gpmi_enable_clk(struct gpmi_nand_data *this, bool v) in __gpmi_enable_clk() argument 134 clk = this->resources.clock[i]; in __gpmi_enable_clk() 150 clk_disable_unprepare(this->resources.clock[i - 1]); in __gpmi_enable_clk() 157 int gpmi_init(struct gpmi_nand_data *this) in gpmi_init() argument 159 struct resources *r = &this->resources; in gpmi_init() 162 ret = gpmi_enable_clk(this); in gpmi_init() 173 ret = gpmi_reset_block(r->bch_regs, GPMI_IS_MX23(this)); in gpmi_init() 197 gpmi_disable_clk(this); in gpmi_init() 204 void gpmi_dump_info(struct gpmi_nand_data *this) in gpmi_dump_info() argument 206 struct resources *r = &this->resources; in gpmi_dump_info() [all …]
|
/drivers/mtd/onenand/ |
D | onenand_base.c | 196 static int onenand_block_address(struct onenand_chip *this, int block) in onenand_block_address() argument 199 if (block & this->density_mask) in onenand_block_address() 200 return ONENAND_DDP_CHIP1 | (block ^ this->density_mask); in onenand_block_address() 213 static int onenand_bufferram_address(struct onenand_chip *this, int block) in onenand_bufferram_address() argument 216 if (block & this->density_mask) in onenand_bufferram_address() 273 static unsigned flexonenand_block(struct onenand_chip *this, loff_t addr) in flexonenand_block() argument 277 if (ONENAND_IS_DDP(this) && addr >= this->diesize[0]) { in flexonenand_block() 279 addr -= this->diesize[0]; in flexonenand_block() 282 boundary = this->boundary[die]; in flexonenand_block() 284 blk = addr >> (this->erase_shift - 1); in flexonenand_block() [all …]
|
D | onenand_bbt.c | 59 struct onenand_chip *this = mtd->priv; in create_bbt() local 60 struct bbm_info *bbm = this->bbm; in create_bbt() 80 numblocks = this->chipsize >> (bbm->bbt_erase_shift - 1); in create_bbt() 96 from + j * this->writesize + bd->offs, &ops); in create_bbt() 103 scanlen, this->writesize, bd)) { in create_bbt() 113 if (FLEXONENAND(this)) { in create_bbt() 134 struct onenand_chip *this = mtd->priv; in onenand_memory_bbt() local 136 return create_bbt(mtd, this->page_buf, bd, -1); in onenand_memory_bbt() 147 struct onenand_chip *this = mtd->priv; in onenand_isbad_bbt() local 148 struct bbm_info *bbm = this->bbm; in onenand_isbad_bbt() [all …]
|
D | samsung.c | 226 struct onenand_chip *this = onenand->mtd->priv; in s3c_onenand_readw() local 228 int reg = addr - this->base; in s3c_onenand_readw() 276 struct onenand_chip *this = onenand->mtd->priv; in s3c_onenand_writew() local 278 unsigned int reg = addr - this->base; in s3c_onenand_writew() 387 struct onenand_chip *this = mtd->priv; in s3c_onenand_command() local 394 fba = (int) (addr >> this->erase_shift); in s3c_onenand_command() 395 fpa = (int) (addr >> this->page_shift); in s3c_onenand_command() 396 fpa &= this->page_mask; in s3c_onenand_command() 406 ONENAND_SET_NEXT_BUFFERRAM(this); in s3c_onenand_command() 411 index = ONENAND_CURRENT_BUFFERRAM(this); in s3c_onenand_command() [all …]
|
/drivers/isdn/hardware/eicon/ |
D | di.c | 81 ENTITY *this = NULL; in pr_out() local 108 this = entity_ptr(a, e_no); in pr_out() 110 if (!this) in pr_out() 119 DBG_TRC((">A%d Id=0x%x Req=0x%x", ((ISDN_ADAPTER *)a->io)->ANum, this->Id, this->Req)) in pr_out() 122 dbug(dprintf("out:Req=%x,Id=%x,Ch=%x", this->Req, this->Id, this->ReqCh)); in pr_out() 127 if (!(a->tx_stream[this->Id] && in pr_out() 128 this->Req == N_DATA)) { in pr_out() 133 i = this->XCurrent; in pr_out() 134 X = PTR_X(a, this); in pr_out() 135 while (i < this->XNum && length < 270) { in pr_out() [all …]
|
/drivers/s390/net/ |
D | fsm.c | 20 fsm_instance *this; in init_fsm() local 24 this = kzalloc(sizeof(fsm_instance), order); in init_fsm() 25 if (this == NULL) { in init_fsm() 30 strlcpy(this->name, name, sizeof(this->name)); in init_fsm() 31 init_waitqueue_head(&this->wait_q); in init_fsm() 37 kfree_fsm(this); in init_fsm() 44 this->f = f; in init_fsm() 50 kfree_fsm(this); in init_fsm() 62 kfree_fsm(this); in init_fsm() 68 return this; in init_fsm() [all …]
|
/drivers/mtd/nand/ |
D | nand_bbt.c | 178 struct nand_chip *this = mtd->priv; in read_bbt() local 188 from = ((loff_t)page) << this->page_shift; in read_bbt() 191 len = min(totlen, (size_t)(1 << this->bbt_erase_shift)); in read_bbt() 227 this->bbt_erase_shift); in read_bbt() 228 bbt_mark_entry(this, offs + act, in read_bbt() 239 this->bbt_erase_shift); in read_bbt() 242 bbt_mark_entry(this, offs + act, in read_bbt() 245 bbt_mark_entry(this, offs + act, in read_bbt() 269 struct nand_chip *this = mtd->priv; in read_abs_bbt() local 274 for (i = 0; i < this->numchips; i++) { in read_abs_bbt() [all …]
|
D | cs553x_nand.c | 100 struct nand_chip *this = mtd->priv; in cs553x_read_buf() local 103 memcpy_fromio(buf, this->IO_ADDR_R, 0x800); in cs553x_read_buf() 107 memcpy_fromio(buf, this->IO_ADDR_R, len); in cs553x_read_buf() 112 struct nand_chip *this = mtd->priv; in cs553x_write_buf() local 115 memcpy_toio(this->IO_ADDR_R, buf, 0x800); in cs553x_write_buf() 119 memcpy_toio(this->IO_ADDR_R, buf, len); in cs553x_write_buf() 124 struct nand_chip *this = mtd->priv; in cs553x_read_byte() local 125 return readb(this->IO_ADDR_R); in cs553x_read_byte() 130 struct nand_chip *this = mtd->priv; in cs553x_write_byte() local 133 while (i && readb(this->IO_ADDR_R + MM_NAND_STS) & CS_NAND_CTLR_BUSY) { in cs553x_write_byte() [all …]
|
D | au1550nd.c | 42 struct nand_chip *this = mtd->priv; in au_read_byte() local 43 u_char ret = readb(this->IO_ADDR_R); in au_read_byte() 57 struct nand_chip *this = mtd->priv; in au_write_byte() local 58 writeb(byte, this->IO_ADDR_W); in au_write_byte() 70 struct nand_chip *this = mtd->priv; in au_read_byte16() local 71 u_char ret = (u_char) cpu_to_le16(readw(this->IO_ADDR_R)); in au_read_byte16() 85 struct nand_chip *this = mtd->priv; in au_write_byte16() local 86 writew(le16_to_cpu((u16) byte), this->IO_ADDR_W); in au_write_byte16() 98 struct nand_chip *this = mtd->priv; in au_read_word() local 99 u16 ret = readw(this->IO_ADDR_R); in au_read_word() [all …]
|
D | diskonchip.c | 299 struct nand_chip *this = mtd->priv; in doc2000_write_byte() local 300 struct doc_priv *doc = this->priv; in doc2000_write_byte() 311 struct nand_chip *this = mtd->priv; in doc2000_read_byte() local 312 struct doc_priv *doc = this->priv; in doc2000_read_byte() 326 struct nand_chip *this = mtd->priv; in doc2000_writebuf() local 327 struct doc_priv *doc = this->priv; in doc2000_writebuf() 343 struct nand_chip *this = mtd->priv; in doc2000_readbuf() local 344 struct doc_priv *doc = this->priv; in doc2000_readbuf() 358 struct nand_chip *this = mtd->priv; in doc2000_readbuf_dword() local 359 struct doc_priv *doc = this->priv; in doc2000_readbuf_dword() [all …]
|
D | cmx270_nand.c | 56 struct nand_chip *this = mtd->priv; in cmx270_read_byte() local 58 return (readl(this->IO_ADDR_R) >> 16); in cmx270_read_byte() 64 struct nand_chip *this = mtd->priv; in cmx270_write_buf() local 67 writel((*buf++ << 16), this->IO_ADDR_W); in cmx270_write_buf() 73 struct nand_chip *this = mtd->priv; in cmx270_read_buf() local 76 *buf++ = readl(this->IO_ADDR_R) >> 16; in cmx270_read_buf() 97 struct nand_chip* this = mtd->priv; in cmx270_hwcontrol() local 98 unsigned int nandaddr = (unsigned int)this->IO_ADDR_W; in cmx270_hwcontrol() 118 this->IO_ADDR_W = (void __iomem*)nandaddr; in cmx270_hwcontrol() 120 writel((dat << 16), this->IO_ADDR_W); in cmx270_hwcontrol() [all …]
|
D | ams-delta.c | 67 struct nand_chip *this = mtd->priv; in ams_delta_write_byte() local 68 void __iomem *io_base = this->priv; in ams_delta_write_byte() 71 writew(byte, this->IO_ADDR_W); in ams_delta_write_byte() 80 struct nand_chip *this = mtd->priv; in ams_delta_read_byte() local 81 void __iomem *io_base = this->priv; in ams_delta_read_byte() 86 res = readw(this->IO_ADDR_R); in ams_delta_read_byte() 177 struct nand_chip *this; in ams_delta_init() local 197 this = (struct nand_chip *) (&ams_delta_mtd[1]); in ams_delta_init() 201 memset(this, 0, sizeof(struct nand_chip)); in ams_delta_init() 204 ams_delta_mtd->priv = this; in ams_delta_init() [all …]
|
D | sharpsl.c | 111 struct nand_chip *this; in sharpsl_nand_probe() local 143 this = (struct nand_chip *)(&sharpsl->chip); in sharpsl_nand_probe() 146 sharpsl->mtd.priv = this; in sharpsl_nand_probe() 157 this->IO_ADDR_R = sharpsl->io + FLASHIO; in sharpsl_nand_probe() 158 this->IO_ADDR_W = sharpsl->io + FLASHIO; in sharpsl_nand_probe() 160 this->cmd_ctrl = sharpsl_nand_hwcontrol; in sharpsl_nand_probe() 161 this->dev_ready = sharpsl_nand_dev_ready; in sharpsl_nand_probe() 163 this->chip_delay = 15; in sharpsl_nand_probe() 165 this->ecc.mode = NAND_ECC_HW; in sharpsl_nand_probe() 166 this->ecc.size = 256; in sharpsl_nand_probe() [all …]
|
/drivers/gpu/drm/nouveau/core/core/ |
D | mm.c | 52 struct nouveau_mm_node *this = *pthis; in nouveau_mm_free() local 54 if (this) { in nouveau_mm_free() 55 struct nouveau_mm_node *prev = node(this, prev); in nouveau_mm_free() 56 struct nouveau_mm_node *next = node(this, next); in nouveau_mm_free() 59 prev->length += this->length; in nouveau_mm_free() 60 list_del(&this->nl_entry); in nouveau_mm_free() 61 kfree(this); this = prev; in nouveau_mm_free() 65 next->offset = this->offset; in nouveau_mm_free() 66 next->length += this->length; in nouveau_mm_free() 67 if (this->type == NVKM_MM_TYPE_NONE) in nouveau_mm_free() [all …]
|
/drivers/block/drbd/ |
D | drbd_interval.c | 11 struct drbd_interval *this = rb_entry(node, struct drbd_interval, rb); in interval_end() local 12 return this->end; in interval_end() 47 drbd_insert_interval(struct rb_root *root, struct drbd_interval *this) in drbd_insert_interval() argument 50 sector_t this_end = this->sector + (this->size >> 9); in drbd_insert_interval() 52 BUG_ON(!IS_ALIGNED(this->size, 512)); in drbd_insert_interval() 61 if (this->sector < here->sector) in drbd_insert_interval() 63 else if (this->sector > here->sector) in drbd_insert_interval() 65 else if (this < here) in drbd_insert_interval() 67 else if (this > here) in drbd_insert_interval() 73 this->end = this_end; in drbd_insert_interval() [all …]
|
/drivers/media/dvb-frontends/ |
D | Kconfig | 13 to support this demodulator based frontends 21 demodulator. Say Y when you want to support this tuner. 43 Say Y when you want to support this frontend. 55 Say Y when you want to support this frontend. 64 Say Y when you want to support this tuner. 73 Say Y when you want to support this frontend. 83 A DVB-S tuner module. Say Y when you want to support this frontend. 90 A DVB-S tuner module. Say Y when you want to support this frontend. 97 A DVB-S tuner module. Say Y when you want to support this frontend. 104 A DVB-S tuner module. Say Y when you want to support this frontend. [all …]
|
/drivers/media/radio/ |
D | Kconfig | 37 Choose Y here if you have this FM radio chip. 41 this API and pointers to "v4l2" programs may be found at 44 To compile this driver as a module, choose M here: the 51 Say Y here if you want to connect this type of radio to your 56 To compile this driver as a module, choose M here: the 63 Say Y here if you want to connect this type of radio to your 68 To compile this driver as a module, choose M here: the 76 Choose Y here if you have this radio card. This card may also be 81 this API and pointers to "v4l" programs may be found at 84 To compile this driver as a module, choose M here: the [all …]
|
/drivers/staging/comedi/ |
D | Kconfig | 39 Note that the answer to this question won't directly affect the 54 To compile this driver as a module, choose M here: the module will be 65 To compile this driver as a module, choose M here: the module will be 76 To compile this driver as a module, choose M here: the module will be 84 To compile this driver as a module, choose M here: the module will be 93 To compile this driver as a module, choose M here: the module will be 103 Note that the answer to this question won't directly affect the 114 To compile this driver as a module, choose M here: the module will be 135 To compile this driver as a module, choose M here: the module will be 143 To compile this driver as a module, choose M here: the module will be [all …]
|
/drivers/char/xillybus/ |
D | xillybus_of.c | 83 struct xilly_mapping *this; in xilly_map_single_of() local 86 this = kzalloc(sizeof(*this), GFP_KERNEL); in xilly_map_single_of() 87 if (!this) in xilly_map_single_of() 93 kfree(this); in xilly_map_single_of() 97 this->device = ep->dev; in xilly_map_single_of() 98 this->dma_addr = addr; in xilly_map_single_of() 99 this->size = size; in xilly_map_single_of() 100 this->direction = direction; in xilly_map_single_of() 104 rc = devm_add_action(ep->dev, xilly_of_unmap, this); in xilly_map_single_of() 108 kfree(this); in xilly_map_single_of()
|
D | xillybus_pcie.c | 100 struct xilly_mapping *this; in xilly_map_single_pci() local 103 this = kzalloc(sizeof(*this), GFP_KERNEL); in xilly_map_single_pci() 104 if (!this) in xilly_map_single_pci() 112 kfree(this); in xilly_map_single_pci() 116 this->device = ep->pdev; in xilly_map_single_pci() 117 this->dma_addr = addr; in xilly_map_single_pci() 118 this->size = size; in xilly_map_single_pci() 119 this->direction = pci_direction; in xilly_map_single_pci() 123 rc = devm_add_action(ep->dev, xilly_pci_unmap, this); in xilly_map_single_pci() 126 kfree(this); in xilly_map_single_pci()
|
/drivers/media/usb/gspca/ |
D | Kconfig | 12 "Video For Linux" to use this driver. 14 To compile this driver as modules, choose M here: the 30 To compile this driver as a module, choose M here: the 39 To compile this driver as a module, choose M here: the 48 applications to understand the videoformat generated by this driver. 50 To compile this driver as a module, choose M here: the 60 To compile this driver as a module, choose M here: the 69 To compile this driver as a module, choose M here: the 78 To compile this driver as a module, choose M here: the 85 Say Y here if you want support for cameras based on this Jeilin chip. [all …]
|
/drivers/input/touchscreen/ |
D | Kconfig | 27 To compile this driver as a module, choose M here: the 42 (and on ads7846/tsc2046/ad7873, temperature) sensors of this chip. 46 To compile this driver as a module, choose M here: the 59 To compile this driver as a module, choose M here: the 70 To compile this driver as a module, choose M here: the 79 To compile this driver as a module, choose M here: the 90 To compile this driver as a module, choose M here: the 102 To compile this driver as a module, choose M here: the 115 To compile this driver as a module, choose M here: the 128 To compile this driver as a module, choose M here: the [all …]
|