summaryrefslogtreecommitdiffstats
path: root/firmware/dsp56k
diff options
context:
space:
mode:
authorTakashi Iwai2008-08-08 17:11:45 +0200
committerJaroslav Kysela2008-08-13 11:46:36 +0200
commit622207dc31895b4e82c39100db8635d885c795e2 (patch)
treecbfd03ebe9caa2564924c76f2ca28bc348a68c87 /firmware/dsp56k
parentALSA: Kill snd_assert() in sound/core/* (diff)
downloadkernel-qcow2-linux-622207dc31895b4e82c39100db8635d885c795e2.tar.gz
kernel-qcow2-linux-622207dc31895b4e82c39100db8635d885c795e2.tar.xz
kernel-qcow2-linux-622207dc31895b4e82c39100db8635d885c795e2.zip
ALSA: Kill snd_assert() in sound/isa/*
Kill snd_assert() in sound/isa/*, either removed or replaced with if () with snd_BUG_ON(). Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'firmware/dsp56k')
0 files changed, 0 insertions, 0 deletions
/hpfs/hpfs_fn.h?h=kernel-qcow2-linux-4.18.x-centos&id=637b424bf8747e50bab6648ab919632d6efd6c28'>^
1da177e4c3f4










1da177e4c3f4











1da177e4c3f4


1da177e4c3f4











0b69760be696 ^
1da177e4c3f4












0b69760be696 ^

1da177e4c3f4





0b69760be696 ^

1da177e4c3f4



0b69760be696 ^
1da177e4c3f4



0b69760be696 ^
1da177e4c3f4

d0969d1949cc ^




1da177e4c3f4

d0969d1949cc ^
1da177e4c3f4



d0969d1949cc ^
1da177e4c3f4



d0969d1949cc ^
1da177e4c3f4























52576da3545e ^
1da177e4c3f4


0b69760be696 ^
1da177e4c3f4
0b69760be696 ^
1da177e4c3f4






7d23ce36e3f5 ^
1da177e4c3f4



7d23ce36e3f5 ^
1da177e4c3f4








7e7742ee005c ^
1da177e4c3f4





1da177e4c3f4








43d344d7722f ^
1da177e4c3f4



4b6f5d20b04d ^
1da177e4c3f4




7e7742ee005c ^


7d23ce36e3f5 ^
1da177e4c3f4



7e7742ee005c ^


1da177e4c3f4







7e7742ee005c ^

1da177e4c3f4


02c24a82187d ^
4b6f5d20b04d ^
92e1d5be91a0 ^
f5e54d6e53a2 ^
1da177e4c3f4






ca30bc99527a ^
1da177e4c3f4
ea544009206b ^
1da177e4c3f4


52576da3545e ^

7e7742ee005c ^
1da177e4c3f4








7e7742ee005c ^





1da177e4c3f4


92e1d5be91a0 ^
f5e54d6e53a2 ^
1da177e4c3f4












b9075fa968a0 ^

1da177e4c3f4

















9a311b96c306 ^



7dd29d8d865e ^

9a311b96c306 ^
7dd29d8d865e ^

9a311b96c306 ^


7dd29d8d865e ^

9a311b96c306 ^



7dd29d8d865e ^







9a311b96c306 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360










                                                                 
                        

                              
                       
                          





































                                                                             



                                                                       




                               
                                                              










                                                                            











                                                                                


                         











                                                                           
                                                                                   












                                                                      

                                                                                                                                                                                   





                                                                     

                                                                                                                                                    



                                                                      
                                                                                                                           



                                                                          
                                                                                                                                                           

 




                                                          

                                                                               
                                                                                             



                                                         
                                                                                   



                                                         
                                                                                   























                                                                            
                                                                   


                                                             
                                                                                 
                               
                                                                                       






                                                               
                                                                    



                                                              
                                                                                                      








                                                                                                                     
                                                                                      





                                                                     








                                                                                        
                                                             



                                                                                
                                                 




                                            


                                                                        
                                          



                                                                                                          


                                                                              







                                                                                                                   

                                                              


            
                                                        
                                                  
                                                    
                                                       






                                             
                                                  
                                           
                                      


           

                                                                                           
                                                                








                                                                                            





                                                                                              


             
                                                   
                                                               












                                                                    

                                                         

















                                                                         



           

                                                           
  

                                                          


                                                   

                                              



                                                     







                                                          
 
/*
 *  linux/fs/hpfs/hpfs_fn.h
 *
 *  Mikulas Patocka (mikulas@artax.karlin.mff.cuni.cz), 1998-1999
 *
 *  function headers
 */

//#define DBG
//#define DEBUG_LOCKS

#include <linux/mutex.h>
#include <linux/pagemap.h>
#include <linux/buffer_head.h>
#include <linux/slab.h>
#include <asm/unaligned.h>

#include "hpfs.h"

#define EIOERROR  EIO
#define EFSERROR  EPERM
#define EMEMERROR ENOMEM

#define ANODE_ALLOC_FWD	512
#define FNODE_ALLOC_FWD	0
#define ALLOC_FWD_MIN	16
#define ALLOC_FWD_MAX	128
#define ALLOC_M		1
#define FNODE_RD_AHEAD	16
#define ANODE_RD_AHEAD	16
#define DNODE_RD_AHEAD	4

#define FREE_DNODES_ADD	58
#define FREE_DNODES_DEL	29

#define CHKCOND(x,y) if (!(x)) printk y

#ifdef DBG
#define PRINTK(x) printk x
#else
#undef PRINTK
#define PRINTK(x)
#endif

struct hpfs_inode_info {
	loff_t mmu_private;
	ino_t i_parent_dir;	/* (directories) gives fnode of parent dir */
	unsigned i_dno;		/* (directories) root dnode */
	unsigned i_dpos;	/* (directories) temp for readdir */
	unsigned i_dsubdno;	/* (directories) temp for readdir */
	unsigned i_file_sec;	/* (files) minimalist cache of alloc info */
	unsigned i_disk_sec;	/* (files) minimalist cache of alloc info */
	unsigned i_n_secs;	/* (files) minimalist cache of alloc info */
	unsigned i_ea_size;	/* size of extended attributes */
	unsigned i_ea_mode : 1;	/* file's permission is stored in ea */
	unsigned i_ea_uid : 1;	/* file's uid is stored in ea */
	unsigned i_ea_gid : 1;	/* file's gid is stored in ea */
	unsigned i_dirty : 1;
	loff_t **i_rddir_off;
	struct inode vfs_inode;
};

struct hpfs_sb_info {
	struct mutex hpfs_mutex;	/* global hpfs lock */
	ino_t sb_root;			/* inode number of root dir */
	unsigned sb_fs_size;		/* file system size, sectors */
	unsigned sb_bitmaps;		/* sector number of bitmap list */
	unsigned sb_dirband_start;	/* directory band start sector */
	unsigned sb_dirband_size;	/* directory band size, dnodes */
	unsigned sb_dmap;		/* sector number of dnode bit map */
	unsigned sb_n_free;		/* free blocks for statfs, or -1 */
	unsigned sb_n_free_dnodes;	/* free dnodes for statfs, or -1 */
	uid_t sb_uid;			/* uid from mount options */
	gid_t sb_gid;			/* gid from mount options */
	umode_t sb_mode;		/* mode from mount options */
	unsigned sb_eas : 2;		/* eas: 0-ignore, 1-ro, 2-rw */
	unsigned sb_err : 2;		/* on errs: 0-cont, 1-ro, 2-panic */
	unsigned sb_chk : 2;		/* checks: 0-no, 1-normal, 2-strict */
	unsigned sb_lowercase : 1;	/* downcase filenames hackery */
	unsigned sb_was_error : 1;	/* there was an error, set dirty flag */
	unsigned sb_chkdsk : 2;		/* chkdsk: 0-no, 1-on errs, 2-allways */
	unsigned char *sb_cp_table;	/* code page tables: */
					/* 	128 bytes uppercasing table & */
					/*	128 bytes lowercasing table */
	unsigned *sb_bmp_dir;		/* main bitmap directory */
	unsigned sb_c_bitmap;		/* current bitmap */
	unsigned sb_max_fwd_alloc;	/* max forwad allocation */
	int sb_timeshift;
};

/* Four 512-byte buffers and the 2k block obtained by concatenating them */

struct quad_buffer_head {
	struct buffer_head *bh[4];
	void *data;
};

/* The b-tree down pointer from a dir entry */

static inline dnode_secno de_down_pointer (struct hpfs_dirent *de)
{
  CHKCOND(de->down,("HPFS: de_down_pointer: !de->down\n"));
  return le32_to_cpu(*(dnode_secno *) ((void *) de + le16_to_cpu(de->length) - 4));
}

/* The first dir entry in a dnode */

static inline struct hpfs_dirent *dnode_first_de (struct dnode *dnode)
{
  return (void *) dnode->dirent;
}

/* The end+1 of the dir entries */

static inline struct hpfs_dirent *dnode_end_de (struct dnode *dnode)
{
  CHKCOND(le32_to_cpu(dnode->first_free)>=0x14 && le32_to_cpu(dnode->first_free)<=0xa00,("HPFS: dnode_end_de: dnode->first_free = %x\n",(unsigned)le32_to_cpu(dnode->first_free)));
  return (void *) dnode + le32_to_cpu(dnode->first_free);
}

/* The dir entry after dir entry de */

static inline struct hpfs_dirent *de_next_de (struct hpfs_dirent *de)
{