/Linux-v5.4/sound/usb/line6/ |
D | midibuf.c | 37 static int midibuf_is_empty(struct midi_buffer *this) in midibuf_is_empty() argument 39 return (this->pos_read == this->pos_write) && !this->full; in midibuf_is_empty() 42 static int midibuf_is_full(struct midi_buffer *this) in midibuf_is_full() argument 44 return this->full; in midibuf_is_full() 47 void line6_midibuf_reset(struct midi_buffer *this) in line6_midibuf_reset() argument 49 this->pos_read = this->pos_write = this->full = 0; in line6_midibuf_reset() 50 this->command_prev = -1; in line6_midibuf_reset() 53 int line6_midibuf_init(struct midi_buffer *this, int size, int split) in line6_midibuf_init() argument 55 this->buf = kmalloc(size, GFP_KERNEL); in line6_midibuf_init() 57 if (this->buf == NULL) in line6_midibuf_init() [all …]
|
/Linux-v5.4/drivers/net/wireless/ |
D | wl3501_cs.c | 188 static inline void wl3501_switch_page(struct wl3501_card *this, u8 page) in wl3501_switch_page() argument 190 wl3501_outb(page, this->base_addr + WL3501_NIC_BSS); in wl3501_switch_page() 199 static int wl3501_get_flash_mac_addr(struct wl3501_card *this) in wl3501_get_flash_mac_addr() argument 201 int base_addr = this->base_addr; in wl3501_get_flash_mac_addr() 210 this->mac_addr[0] = inb(base_addr + WL3501_NIC_IODPA); in wl3501_get_flash_mac_addr() 212 this->mac_addr[1] = inb(base_addr + WL3501_NIC_IODPA); in wl3501_get_flash_mac_addr() 214 this->mac_addr[2] = inb(base_addr + WL3501_NIC_IODPA); in wl3501_get_flash_mac_addr() 216 this->mac_addr[3] = inb(base_addr + WL3501_NIC_IODPA); in wl3501_get_flash_mac_addr() 218 this->mac_addr[4] = inb(base_addr + WL3501_NIC_IODPA); in wl3501_get_flash_mac_addr() 220 this->mac_addr[5] = inb(base_addr + WL3501_NIC_IODPA); in wl3501_get_flash_mac_addr() [all …]
|
/Linux-v5.4/drivers/mtd/nand/onenand/ |
D | onenand_base.c | 224 static int onenand_block_address(struct onenand_chip *this, int block) in onenand_block_address() argument 227 if (block & this->density_mask) in onenand_block_address() 228 return ONENAND_DDP_CHIP1 | (block ^ this->density_mask); in onenand_block_address() 241 static int onenand_bufferram_address(struct onenand_chip *this, int block) in onenand_bufferram_address() argument 244 if (block & this->density_mask) in onenand_bufferram_address() 301 static unsigned flexonenand_block(struct onenand_chip *this, loff_t addr) in flexonenand_block() argument 305 if (ONENAND_IS_DDP(this) && addr >= this->diesize[0]) { in flexonenand_block() 307 addr -= this->diesize[0]; in flexonenand_block() 310 boundary = this->boundary[die]; in flexonenand_block() 312 blk = addr >> (this->erase_shift - 1); in flexonenand_block() [all …]
|
D | onenand_bbt.c | 58 struct onenand_chip *this = mtd->priv; in create_bbt() local 59 struct bbm_info *bbm = this->bbm; in create_bbt() 79 numblocks = this->chipsize >> (bbm->bbt_erase_shift - 1); in create_bbt() 95 from + j * this->writesize + bd->offs, &ops); in create_bbt() 102 scanlen, this->writesize, bd)) { in create_bbt() 112 if (FLEXONENAND(this)) { in create_bbt() 133 struct onenand_chip *this = mtd->priv; in onenand_memory_bbt() local 135 return create_bbt(mtd, this->page_buf, bd, -1); in onenand_memory_bbt() 146 struct onenand_chip *this = mtd->priv; in onenand_isbad_bbt() local 147 struct bbm_info *bbm = this->bbm; in onenand_isbad_bbt() [all …]
|
D | samsung.c | 218 struct onenand_chip *this = onenand->mtd->priv; in s3c_onenand_readw() local 220 int reg = addr - this->base; in s3c_onenand_readw() 268 struct onenand_chip *this = onenand->mtd->priv; in s3c_onenand_writew() local 270 unsigned int reg = addr - this->base; in s3c_onenand_writew() 379 struct onenand_chip *this = mtd->priv; in s3c_onenand_command() local 386 fba = (int) (addr >> this->erase_shift); in s3c_onenand_command() 387 fpa = (int) (addr >> this->page_shift); in s3c_onenand_command() 388 fpa &= this->page_mask; in s3c_onenand_command() 398 ONENAND_SET_NEXT_BUFFERRAM(this); in s3c_onenand_command() 403 index = ONENAND_CURRENT_BUFFERRAM(this); in s3c_onenand_command() [all …]
|
/Linux-v5.4/drivers/mtd/nand/raw/gpmi-nand/ |
D | gpmi-nand.c | 119 static int __gpmi_enable_clk(struct gpmi_nand_data *this, bool v) in __gpmi_enable_clk() argument 126 clk = this->resources.clock[i]; in __gpmi_enable_clk() 142 clk_disable_unprepare(this->resources.clock[i - 1]); in __gpmi_enable_clk() 146 static int gpmi_init(struct gpmi_nand_data *this) in gpmi_init() argument 148 struct resources *r = &this->resources; in gpmi_init() 159 ret = gpmi_reset_block(r->bch_regs, GPMI_IS_MXS(this)); in gpmi_init() 188 static void gpmi_dump_info(struct gpmi_nand_data *this) in gpmi_dump_info() argument 190 struct resources *r = &this->resources; in gpmi_dump_info() 191 struct bch_geometry *geo = &this->bch_geometry; in gpmi_dump_info() 195 dev_err(this->dev, "Show GPMI registers :\n"); in gpmi_dump_info() [all …]
|
/Linux-v5.4/drivers/mtd/nand/raw/ |
D | nand_bbt.c | 166 static int read_bbt(struct nand_chip *this, uint8_t *buf, int page, int num, in read_bbt() argument 169 struct mtd_info *mtd = nand_to_mtd(this); in read_bbt() 180 from = ((loff_t)page) << this->page_shift; in read_bbt() 183 len = min(totlen, (size_t)(1 << this->bbt_erase_shift)); in read_bbt() 219 this->bbt_erase_shift); in read_bbt() 220 bbt_mark_entry(this, offs + act, in read_bbt() 231 this->bbt_erase_shift); in read_bbt() 234 bbt_mark_entry(this, offs + act, in read_bbt() 237 bbt_mark_entry(this, offs + act, in read_bbt() 259 static int read_abs_bbt(struct nand_chip *this, uint8_t *buf, in read_abs_bbt() argument [all …]
|
D | cs553x_nand.c | 92 static void cs553x_read_buf(struct nand_chip *this, u_char *buf, int len) in cs553x_read_buf() argument 95 memcpy_fromio(buf, this->legacy.IO_ADDR_R, 0x800); in cs553x_read_buf() 99 memcpy_fromio(buf, this->legacy.IO_ADDR_R, len); in cs553x_read_buf() 102 static void cs553x_write_buf(struct nand_chip *this, const u_char *buf, int len) in cs553x_write_buf() argument 105 memcpy_toio(this->legacy.IO_ADDR_R, buf, 0x800); in cs553x_write_buf() 109 memcpy_toio(this->legacy.IO_ADDR_R, buf, len); in cs553x_write_buf() 112 static unsigned char cs553x_read_byte(struct nand_chip *this) in cs553x_read_byte() argument 114 return readb(this->legacy.IO_ADDR_R); in cs553x_read_byte() 117 static void cs553x_write_byte(struct nand_chip *this, u_char byte) in cs553x_write_byte() argument 121 while (i && readb(this->legacy.IO_ADDR_R + MM_NAND_STS) & CS_NAND_CTLR_BUSY) { in cs553x_write_byte() [all …]
|
D | au1550nd.c | 32 static u_char au_read_byte(struct nand_chip *this) in au_read_byte() argument 34 u_char ret = readb(this->legacy.IO_ADDR_R); in au_read_byte() 46 static void au_write_byte(struct nand_chip *this, u_char byte) in au_write_byte() argument 48 writeb(byte, this->legacy.IO_ADDR_W); in au_write_byte() 58 static u_char au_read_byte16(struct nand_chip *this) in au_read_byte16() argument 60 u_char ret = (u_char) cpu_to_le16(readw(this->legacy.IO_ADDR_R)); in au_read_byte16() 72 static void au_write_byte16(struct nand_chip *this, u_char byte) in au_write_byte16() argument 74 writew(le16_to_cpu((u16) byte), this->legacy.IO_ADDR_W); in au_write_byte16() 86 static void au_write_buf(struct nand_chip *this, const u_char *buf, int len) in au_write_buf() argument 91 writeb(buf[i], this->legacy.IO_ADDR_W); in au_write_buf() [all …]
|
D | cmx270_nand.c | 48 static u_char cmx270_read_byte(struct nand_chip *this) in cmx270_read_byte() argument 50 return (readl(this->legacy.IO_ADDR_R) >> 16); in cmx270_read_byte() 53 static void cmx270_write_buf(struct nand_chip *this, const u_char *buf, in cmx270_write_buf() argument 59 writel((*buf++ << 16), this->legacy.IO_ADDR_W); in cmx270_write_buf() 62 static void cmx270_read_buf(struct nand_chip *this, u_char *buf, int len) in cmx270_read_buf() argument 67 *buf++ = readl(this->legacy.IO_ADDR_R) >> 16; in cmx270_read_buf() 85 static void cmx270_hwcontrol(struct nand_chip *this, int dat, in cmx270_hwcontrol() argument 88 unsigned int nandaddr = (unsigned int)this->legacy.IO_ADDR_W; in cmx270_hwcontrol() 108 this->legacy.IO_ADDR_W = (void __iomem*)nandaddr; in cmx270_hwcontrol() 110 writel((dat << 16), this->legacy.IO_ADDR_W); in cmx270_hwcontrol() [all …]
|
D | diskonchip.c | 87 static void doc200x_hwcontrol(struct nand_chip *this, int cmd, 89 static void doc200x_select_chip(struct nand_chip *this, int chip); 294 static void doc2000_write_byte(struct nand_chip *this, u_char datum) in doc2000_write_byte() argument 296 struct doc_priv *doc = nand_get_controller_data(this); in doc2000_write_byte() 305 static u_char doc2000_read_byte(struct nand_chip *this) in doc2000_read_byte() argument 307 struct doc_priv *doc = nand_get_controller_data(this); in doc2000_read_byte() 319 static void doc2000_writebuf(struct nand_chip *this, const u_char *buf, in doc2000_writebuf() argument 322 struct doc_priv *doc = nand_get_controller_data(this); in doc2000_writebuf() 336 static void doc2000_readbuf(struct nand_chip *this, u_char *buf, int len) in doc2000_readbuf() argument 338 struct doc_priv *doc = nand_get_controller_data(this); in doc2000_readbuf() [all …]
|
D | sharpsl.c | 104 struct nand_chip *this; in sharpsl_nand_probe() local 137 this = (struct nand_chip *)(&sharpsl->chip); in sharpsl_nand_probe() 140 mtd = nand_to_mtd(this); in sharpsl_nand_probe() 152 this->legacy.IO_ADDR_R = sharpsl->io + FLASHIO; in sharpsl_nand_probe() 153 this->legacy.IO_ADDR_W = sharpsl->io + FLASHIO; in sharpsl_nand_probe() 155 this->legacy.cmd_ctrl = sharpsl_nand_hwcontrol; in sharpsl_nand_probe() 156 this->legacy.dev_ready = sharpsl_nand_dev_ready; in sharpsl_nand_probe() 158 this->legacy.chip_delay = 15; in sharpsl_nand_probe() 160 this->ecc.mode = NAND_ECC_HW; in sharpsl_nand_probe() 161 this->ecc.size = 256; in sharpsl_nand_probe() [all …]
|
/Linux-v5.4/drivers/s390/net/ |
D | fsm.c | 21 fsm_instance *this; in init_fsm() local 25 this = kzalloc(sizeof(fsm_instance), order); in init_fsm() 26 if (this == NULL) { in init_fsm() 31 strlcpy(this->name, name, sizeof(this->name)); in init_fsm() 32 init_waitqueue_head(&this->wait_q); in init_fsm() 38 kfree_fsm(this); in init_fsm() 45 this->f = f; in init_fsm() 51 kfree_fsm(this); in init_fsm() 63 kfree_fsm(this); in init_fsm() 69 return this; in init_fsm() [all …]
|
/Linux-v5.4/fs/jffs2/ |
D | nodelist.c | 24 struct jffs2_node_frag *this); 102 struct jffs2_node_frag *this) in jffs2_obsolete_node_frag() argument 104 if (this->node) { in jffs2_obsolete_node_frag() 105 this->node->frags--; in jffs2_obsolete_node_frag() 106 if (!this->node->frags) { in jffs2_obsolete_node_frag() 109 ref_offset(this->node->raw), this->node->ofs, this->node->ofs+this->node->size); in jffs2_obsolete_node_frag() 110 jffs2_mark_node_obsolete(c, this->node->raw); in jffs2_obsolete_node_frag() 111 jffs2_free_full_dnode(this->node); in jffs2_obsolete_node_frag() 114 …ref_offset(this->node->raw), this->node->ofs, this->node->ofs+this->node->size, this->node->frags); in jffs2_obsolete_node_frag() 115 mark_ref_normal(this->node->raw); in jffs2_obsolete_node_frag() [all …]
|
D | compr.c | 34 static int jffs2_is_best_compression(struct jffs2_compressor *this, in jffs2_is_best_compression() argument 43 if ((this->compr == JFFS2_COMPR_LZO) && (bestsize > size)) in jffs2_is_best_compression() 47 if ((this->compr == JFFS2_COMPR_LZO) && (bestsize > (size * FAVOUR_LZO_PERCENT / 100))) in jffs2_is_best_compression() 77 struct jffs2_compressor *this; in jffs2_selected_compress() local 90 list_for_each_entry(this, &jffs2_compressor_list, list) { in jffs2_selected_compress() 92 if (!this->compress || this->disabled) in jffs2_selected_compress() 96 if (compr && (compr != this->compr)) in jffs2_selected_compress() 103 this->usecount++; in jffs2_selected_compress() 108 err = this->compress(data_in, output_buf, datalen, cdatalen); in jffs2_selected_compress() 111 this->usecount--; in jffs2_selected_compress() [all …]
|
D | readinode.c | 223 struct jffs2_tmp_dnode_info *this, *ptn; in jffs2_add_tn_to_tree() local 250 this = jffs2_lookup_tn(&rii->tn_root, tn->fn->ofs); in jffs2_add_tn_to_tree() 251 if (this) { in jffs2_add_tn_to_tree() 254 while (this->overlapped) { in jffs2_add_tn_to_tree() 255 ptn = tn_prev(this); in jffs2_add_tn_to_tree() 261 this->overlapped = 0; in jffs2_add_tn_to_tree() 264 this = ptn; in jffs2_add_tn_to_tree() 266 …dbg_readinode("'this' found %#04x-%#04x (%s)\n", this->fn->ofs, this->fn->ofs + this->fn->size, th… in jffs2_add_tn_to_tree() 269 while (this) { in jffs2_add_tn_to_tree() 270 if (this->fn->ofs > fn_end) in jffs2_add_tn_to_tree() [all …]
|
/Linux-v5.4/include/linux/mtd/ |
D | onenand.h | 153 #define ONENAND_CURRENT_BUFFERRAM(this) (this->bufferram_index) argument 154 #define ONENAND_NEXT_BUFFERRAM(this) (this->bufferram_index ^ 1) argument 155 #define ONENAND_SET_NEXT_BUFFERRAM(this) (this->bufferram_index ^= 1) argument 156 #define ONENAND_SET_PREV_BUFFERRAM(this) (this->bufferram_index ^= 1) argument 157 #define ONENAND_SET_BUFFERRAM0(this) (this->bufferram_index = 0) argument 158 #define ONENAND_SET_BUFFERRAM1(this) (this->bufferram_index = 1) argument 160 #define FLEXONENAND(this) \ argument 161 (this->device_id & DEVICE_IS_FLEXONENAND) 162 #define ONENAND_GET_SYS_CFG1(this) \ argument 163 (this->read_word(this->base + ONENAND_REG_SYS_CFG1)) [all …]
|
/Linux-v5.4/drivers/gpu/drm/nouveau/nvkm/core/ |
D | mm.c | 50 struct nvkm_mm_node *this = *pthis; in nvkm_mm_free() local 52 if (this) { in nvkm_mm_free() 53 struct nvkm_mm_node *prev = node(this, prev); in nvkm_mm_free() 54 struct nvkm_mm_node *next = node(this, next); in nvkm_mm_free() 57 prev->length += this->length; in nvkm_mm_free() 58 list_del(&this->nl_entry); in nvkm_mm_free() 59 kfree(this); this = prev; in nvkm_mm_free() 63 next->offset = this->offset; in nvkm_mm_free() 64 next->length += this->length; in nvkm_mm_free() 65 if (this->type == NVKM_MM_TYPE_NONE) in nvkm_mm_free() [all …]
|
/Linux-v5.4/net/caif/ |
D | cffrml.c | 37 struct cffrml *this = kzalloc(sizeof(struct cffrml), GFP_ATOMIC); in cffrml_create() local 38 if (!this) in cffrml_create() 40 this->pcpu_refcnt = alloc_percpu(int); in cffrml_create() 41 if (this->pcpu_refcnt == NULL) { in cffrml_create() 42 kfree(this); in cffrml_create() 48 this->layer.receive = cffrml_receive; in cffrml_create() 49 this->layer.transmit = cffrml_transmit; in cffrml_create() 50 this->layer.ctrlcmd = cffrml_ctrlcmd; in cffrml_create() 51 snprintf(this->layer.name, CAIF_LAYER_NAME_SZ, "frm%d", phyid); in cffrml_create() 52 this->dofcs = use_fcs; in cffrml_create() [all …]
|
D | caif_usb.c | 87 struct cfusbl *this = kmalloc(sizeof(struct cfusbl), GFP_ATOMIC); in cfusbl_create() local 89 if (!this) in cfusbl_create() 94 memset(&this->layer, 0, sizeof(this->layer)); in cfusbl_create() 95 this->layer.receive = cfusbl_receive; in cfusbl_create() 96 this->layer.transmit = cfusbl_transmit; in cfusbl_create() 97 this->layer.ctrlcmd = cfusbl_ctrlcmd; in cfusbl_create() 98 snprintf(this->layer.name, CAIF_LAYER_NAME_SZ, "usb%d", phyid); in cfusbl_create() 99 this->layer.id = phyid; in cfusbl_create() 107 ether_addr_copy(&this->tx_eth_hdr[ETH_ALEN], braddr); in cfusbl_create() 108 ether_addr_copy(&this->tx_eth_hdr[ETH_ALEN], ethaddr); in cfusbl_create() [all …]
|
/Linux-v5.4/net/atm/ |
D | addr.c | 51 struct atm_dev_addr *this, *p; in atm_reset_addr() local 59 list_for_each_entry_safe(this, p, head, entry) { in atm_reset_addr() 60 list_del(&this->entry); in atm_reset_addr() 61 kfree(this); in atm_reset_addr() 72 struct atm_dev_addr *this; in atm_add_addr() local 84 list_for_each_entry(this, head, entry) { in atm_add_addr() 85 if (identical(&this->addr, addr)) { in atm_add_addr() 90 this = kmalloc(sizeof(struct atm_dev_addr), GFP_ATOMIC); in atm_add_addr() 91 if (!this) { in atm_add_addr() 95 this->addr = *addr; in atm_add_addr() [all …]
|
/Linux-v5.4/drivers/staging/most/Documentation/ABI/ |
D | configfs-most.txt | 18 buffer_size configure the buffer size for this channel 20 subbuffer_size configure the sub-buffer size for this channel 24 num_buffers configure number of buffers used for this 28 this channel 30 direction configure whether this link will be an input 33 dbr_size configure DBR data buffer size (this is used 39 transmitted via USB (this is used for USB 48 create_link write '1' to this attribute to trigger the 53 destroy_link write '1' to this attribute to destroy an 62 buffer_size configure the buffer size for this channel [all …]
|
/Linux-v5.4/lib/zlib_inflate/ |
D | inftrees.c | 39 code this; /* table entry for duplication */ in zlib_inflate_table() local 104 this.op = (unsigned char)64; /* invalid code marker */ in zlib_inflate_table() 105 this.bits = (unsigned char)1; in zlib_inflate_table() 106 this.val = (unsigned short)0; in zlib_inflate_table() 107 *(*table)++ = this; /* make a table to force an error */ in zlib_inflate_table() 108 *(*table)++ = this; in zlib_inflate_table() 204 this.bits = (unsigned char)(len - drop); in zlib_inflate_table() 206 this.op = (unsigned char)0; in zlib_inflate_table() 207 this.val = work[sym]; in zlib_inflate_table() 210 this.op = (unsigned char)(extra[work[sym]]); in zlib_inflate_table() [all …]
|
/Linux-v5.4/drivers/staging/greybus/ |
D | Kconfig | 8 Select this option if you have a device that follows the 11 To compile this code as a module, chose M here: the module 17 Select this option if you have a device that follows the 20 To compile this code as a module, chose M here: the module 27 Select this option if you have a device that follows the 30 To compile this code as a module, chose M here: the module 37 Select this option if you have a device that follows the 40 To compile this code as a module, chose M here: the module 47 Select this option if you have a device that follows the 50 To compile this code as a module, chose M here: the module [all …]
|
/Linux-v5.4/drivers/block/drbd/ |
D | drbd_interval.c | 12 struct drbd_interval *this = rb_entry(node, struct drbd_interval, rb); in interval_end() local 13 return this->end; in interval_end() 25 drbd_insert_interval(struct rb_root *root, struct drbd_interval *this) in drbd_insert_interval() argument 28 sector_t this_end = this->sector + (this->size >> 9); in drbd_insert_interval() 30 BUG_ON(!IS_ALIGNED(this->size, 512)); in drbd_insert_interval() 39 if (this->sector < here->sector) in drbd_insert_interval() 41 else if (this->sector > here->sector) in drbd_insert_interval() 43 else if (this < here) in drbd_insert_interval() 45 else if (this > here) in drbd_insert_interval() 51 this->end = this_end; in drbd_insert_interval() [all …]
|