Home
last modified time | relevance | path

Searched refs:this (Results 1 – 25 of 2871) sorted by relevance

12345678910>>...115

/Linux-v4.19/sound/usb/line6/
Dmidibuf.c41 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 …]
/Linux-v4.19/drivers/net/wireless/
Dwl3501_cs.c187 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 …]
/Linux-v4.19/drivers/mtd/nand/onenand/
Donenand_base.c227 static int onenand_block_address(struct onenand_chip *this, int block) in onenand_block_address() argument
230 if (block & this->density_mask) in onenand_block_address()
231 return ONENAND_DDP_CHIP1 | (block ^ this->density_mask); in onenand_block_address()
244 static int onenand_bufferram_address(struct onenand_chip *this, int block) in onenand_bufferram_address() argument
247 if (block & this->density_mask) in onenand_bufferram_address()
304 static unsigned flexonenand_block(struct onenand_chip *this, loff_t addr) in flexonenand_block() argument
308 if (ONENAND_IS_DDP(this) && addr >= this->diesize[0]) { in flexonenand_block()
310 addr -= this->diesize[0]; in flexonenand_block()
313 boundary = this->boundary[die]; in flexonenand_block()
315 blk = addr >> (this->erase_shift - 1); in flexonenand_block()
[all …]
Donenand_bbt.c58 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 …]
Dsamsung.c221 struct onenand_chip *this = onenand->mtd->priv; in s3c_onenand_readw() local
223 int reg = addr - this->base; in s3c_onenand_readw()
271 struct onenand_chip *this = onenand->mtd->priv; in s3c_onenand_writew() local
273 unsigned int reg = addr - this->base; in s3c_onenand_writew()
382 struct onenand_chip *this = mtd->priv; in s3c_onenand_command() local
389 fba = (int) (addr >> this->erase_shift); in s3c_onenand_command()
390 fpa = (int) (addr >> this->page_shift); in s3c_onenand_command()
391 fpa &= this->page_mask; in s3c_onenand_command()
401 ONENAND_SET_NEXT_BUFFERRAM(this); in s3c_onenand_command()
406 index = ONENAND_CURRENT_BUFFERRAM(this); in s3c_onenand_command()
[all …]
/Linux-v4.19/drivers/mtd/nand/raw/gpmi-nand/
Dgpmi-nand.c41 struct gpmi_nand_data *this = nand_get_controller_data(chip); in gpmi_ooblayout_ecc() local
42 struct bch_geometry *geo = &this->bch_geometry; in gpmi_ooblayout_ecc()
57 struct gpmi_nand_data *this = nand_get_controller_data(chip); in gpmi_ooblayout_free() local
58 struct bch_geometry *geo = &this->bch_geometry; in gpmi_ooblayout_free()
131 struct gpmi_nand_data *this = cookie; in bch_irq() local
133 gpmi_clear_bch(this); in bch_irq()
134 complete(&this->bch_done); in bch_irq()
156 static inline int get_ecc_strength(struct gpmi_nand_data *this) in get_ecc_strength() argument
158 struct bch_geometry *geo = &this->bch_geometry; in get_ecc_strength()
159 struct mtd_info *mtd = nand_to_mtd(&this->nand); in get_ecc_strength()
[all …]
Dgpmi-lib.c107 static int __gpmi_enable_clk(struct gpmi_nand_data *this, bool v) in __gpmi_enable_clk() argument
114 clk = this->resources.clock[i]; in __gpmi_enable_clk()
130 clk_disable_unprepare(this->resources.clock[i - 1]); in __gpmi_enable_clk()
134 int gpmi_enable_clk(struct gpmi_nand_data *this) in gpmi_enable_clk() argument
136 return __gpmi_enable_clk(this, true); in gpmi_enable_clk()
139 int gpmi_disable_clk(struct gpmi_nand_data *this) in gpmi_disable_clk() argument
141 return __gpmi_enable_clk(this, false); in gpmi_disable_clk()
144 int gpmi_init(struct gpmi_nand_data *this) in gpmi_init() argument
146 struct resources *r = &this->resources; in gpmi_init()
149 ret = gpmi_enable_clk(this); in gpmi_init()
[all …]
/Linux-v4.19/drivers/isdn/hardware/eicon/
Ddi.c81 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 …]
/Linux-v4.19/drivers/s390/net/
Dfsm.c21 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-v4.19/fs/jffs2/
Dnodelist.c24 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 …]
Dcompr.c34 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 …]
Dreadinode.c223 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-v4.19/include/linux/mtd/
Donenand.h155 #define ONENAND_CURRENT_BUFFERRAM(this) (this->bufferram_index) argument
156 #define ONENAND_NEXT_BUFFERRAM(this) (this->bufferram_index ^ 1) argument
157 #define ONENAND_SET_NEXT_BUFFERRAM(this) (this->bufferram_index ^= 1) argument
158 #define ONENAND_SET_PREV_BUFFERRAM(this) (this->bufferram_index ^= 1) argument
159 #define ONENAND_SET_BUFFERRAM0(this) (this->bufferram_index = 0) argument
160 #define ONENAND_SET_BUFFERRAM1(this) (this->bufferram_index = 1) argument
162 #define FLEXONENAND(this) \ argument
163 (this->device_id & DEVICE_IS_FLEXONENAND)
164 #define ONENAND_GET_SYS_CFG1(this) \ argument
165 (this->read_word(this->base + ONENAND_REG_SYS_CFG1))
[all …]
/Linux-v4.19/drivers/mtd/nand/raw/
Dcs553x_nand.c98 struct nand_chip *this = mtd_to_nand(mtd); in cs553x_read_buf() local
101 memcpy_fromio(buf, this->IO_ADDR_R, 0x800); in cs553x_read_buf()
105 memcpy_fromio(buf, this->IO_ADDR_R, len); in cs553x_read_buf()
110 struct nand_chip *this = mtd_to_nand(mtd); in cs553x_write_buf() local
113 memcpy_toio(this->IO_ADDR_R, buf, 0x800); in cs553x_write_buf()
117 memcpy_toio(this->IO_ADDR_R, buf, len); in cs553x_write_buf()
122 struct nand_chip *this = mtd_to_nand(mtd); in cs553x_read_byte() local
123 return readb(this->IO_ADDR_R); in cs553x_read_byte()
128 struct nand_chip *this = mtd_to_nand(mtd); in cs553x_write_byte() local
131 while (i && readb(this->IO_ADDR_R + MM_NAND_STS) & CS_NAND_CTLR_BUSY) { in cs553x_write_byte()
[all …]
Dnand_bbt.c175 struct nand_chip *this = mtd_to_nand(mtd); in read_bbt() local
185 from = ((loff_t)page) << this->page_shift; in read_bbt()
188 len = min(totlen, (size_t)(1 << this->bbt_erase_shift)); in read_bbt()
224 this->bbt_erase_shift); in read_bbt()
225 bbt_mark_entry(this, offs + act, in read_bbt()
236 this->bbt_erase_shift); in read_bbt()
239 bbt_mark_entry(this, offs + act, in read_bbt()
242 bbt_mark_entry(this, offs + act, in read_bbt()
266 struct nand_chip *this = mtd_to_nand(mtd); in read_abs_bbt() local
271 for (i = 0; i < this->numchips; i++) { in read_abs_bbt()
[all …]
Dau1550nd.c38 struct nand_chip *this = mtd_to_nand(mtd); in au_read_byte() local
39 u_char ret = readb(this->IO_ADDR_R); in au_read_byte()
53 struct nand_chip *this = mtd_to_nand(mtd); in au_write_byte() local
54 writeb(byte, this->IO_ADDR_W); in au_write_byte()
66 struct nand_chip *this = mtd_to_nand(mtd); in au_read_byte16() local
67 u_char ret = (u_char) cpu_to_le16(readw(this->IO_ADDR_R)); in au_read_byte16()
81 struct nand_chip *this = mtd_to_nand(mtd); in au_write_byte16() local
82 writew(le16_to_cpu((u16) byte), this->IO_ADDR_W); in au_write_byte16()
94 struct nand_chip *this = mtd_to_nand(mtd); in au_read_word() local
95 u16 ret = readw(this->IO_ADDR_R); in au_read_word()
[all …]
Dcmx270_nand.c54 struct nand_chip *this = mtd_to_nand(mtd); in cmx270_read_byte() local
56 return (readl(this->IO_ADDR_R) >> 16); in cmx270_read_byte()
62 struct nand_chip *this = mtd_to_nand(mtd); in cmx270_write_buf() local
65 writel((*buf++ << 16), this->IO_ADDR_W); in cmx270_write_buf()
71 struct nand_chip *this = mtd_to_nand(mtd); in cmx270_read_buf() local
74 *buf++ = readl(this->IO_ADDR_R) >> 16; in cmx270_read_buf()
95 struct nand_chip *this = mtd_to_nand(mtd); in cmx270_hwcontrol() local
96 unsigned int nandaddr = (unsigned int)this->IO_ADDR_W; in cmx270_hwcontrol()
116 this->IO_ADDR_W = (void __iomem*)nandaddr; in cmx270_hwcontrol()
118 writel((dat << 16), this->IO_ADDR_W); in cmx270_hwcontrol()
[all …]
Ddiskonchip.c295 struct nand_chip *this = mtd_to_nand(mtd); in doc2000_write_byte() local
296 struct doc_priv *doc = nand_get_controller_data(this); in doc2000_write_byte()
307 struct nand_chip *this = mtd_to_nand(mtd); in doc2000_read_byte() local
308 struct doc_priv *doc = nand_get_controller_data(this); in doc2000_read_byte()
322 struct nand_chip *this = mtd_to_nand(mtd); in doc2000_writebuf() local
323 struct doc_priv *doc = nand_get_controller_data(this); in doc2000_writebuf()
339 struct nand_chip *this = mtd_to_nand(mtd); in doc2000_readbuf() local
340 struct doc_priv *doc = nand_get_controller_data(this); in doc2000_readbuf()
354 struct nand_chip *this = mtd_to_nand(mtd); in doc2000_readbuf_dword() local
355 struct doc_priv *doc = nand_get_controller_data(this); in doc2000_readbuf_dword()
[all …]
Dams-delta.c68 struct nand_chip *this = mtd_to_nand(mtd); in ams_delta_write_byte() local
69 void __iomem *io_base = (void __iomem *)nand_get_controller_data(this); in ams_delta_write_byte()
72 writew(byte, this->IO_ADDR_W); in ams_delta_write_byte()
81 struct nand_chip *this = mtd_to_nand(mtd); in ams_delta_read_byte() local
82 void __iomem *io_base = (void __iomem *)nand_get_controller_data(this); in ams_delta_read_byte()
87 res = readw(this->IO_ADDR_R); in ams_delta_read_byte()
178 struct nand_chip *this; in ams_delta_init() local
187 this = kzalloc(sizeof(struct nand_chip), GFP_KERNEL); in ams_delta_init()
188 if (!this) { in ams_delta_init()
194 ams_delta_mtd = nand_to_mtd(this); in ams_delta_init()
[all …]
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/core/
Dmm.c50 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-v4.19/net/caif/
Dcffrml.c37 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 …]
Dcaif_usb.c88 struct cfusbl *this = kmalloc(sizeof(struct cfusbl), GFP_ATOMIC); in cfusbl_create() local
90 if (!this) in cfusbl_create()
95 memset(&this->layer, 0, sizeof(this->layer)); in cfusbl_create()
96 this->layer.receive = cfusbl_receive; in cfusbl_create()
97 this->layer.transmit = cfusbl_transmit; in cfusbl_create()
98 this->layer.ctrlcmd = cfusbl_ctrlcmd; in cfusbl_create()
99 snprintf(this->layer.name, CAIF_LAYER_NAME_SZ, "usb%d", phyid); in cfusbl_create()
100 this->layer.id = phyid; in cfusbl_create()
108 ether_addr_copy(&this->tx_eth_hdr[ETH_ALEN], braddr); in cfusbl_create()
109 ether_addr_copy(&this->tx_eth_hdr[ETH_ALEN], ethaddr); in cfusbl_create()
[all …]
/Linux-v4.19/net/atm/
Daddr.c51 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-v4.19/lib/zlib_inflate/
Dinftrees.c39 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-v4.19/drivers/staging/greybus/
DKconfig14 To compile this code as a module, chose M here: the module
23 Select this option if you have a Toshiba ES3 USB device that
27 To compile this code as a module, chose M here: the module
34 Select this option if you have a device that follows the
37 To compile this code as a module, chose M here: the module
43 Select this option if you have a device that follows the
46 To compile this code as a module, chose M here: the module
53 Select this option if you have a device that follows the
56 To compile this code as a module, chose M here: the module
63 Select this option if you have a device that follows the
[all …]

12345678910>>...115