tag | line | file | source code |
lo | 452 | drivers/block/ide-cd.c | int lo, hi; |
lo | 457 | drivers/block/ide-cd.c | lo = 0; |
lo | 461 | drivers/block/ide-cd.c | while (hi > lo) { |
lo | 462 | drivers/block/ide-cd.c | int mid = (lo + hi) / 2; |
lo | 470 | drivers/block/ide-cd.c | lo = mid+1; |
lo | 46 | drivers/block/loop.c | static int transfer_none(struct loop_device *lo, int cmd, char *raw_buf, |
lo | 56 | drivers/block/loop.c | static int transfer_xor(struct loop_device *lo, int cmd, char *raw_buf, |
lo | 69 | drivers/block/loop.c | key = lo->lo_encrypt_key; |
lo | 70 | drivers/block/loop.c | keysize = lo->lo_encrypt_key_size; |
lo | 77 | drivers/block/loop.c | static int transfer_des(struct loop_device *lo, int cmd, char *raw_buf, |
lo | 85 | drivers/block/loop.c | x0 = lo->lo_des_init[0]; |
lo | 86 | drivers/block/loop.c | x1 = lo->lo_des_init[1]; |
lo | 92 | drivers/block/loop.c | loop_buf,lo->lo_des_key,DES_ENCRYPT); |
lo | 100 | drivers/block/loop.c | raw_buf,lo->lo_des_key,DES_DECRYPT); |
lo | 129 | drivers/block/loop.c | static void figure_loop_size(struct loop_device *lo) |
lo | 133 | drivers/block/loop.c | if (S_ISREG(lo->lo_inode->i_mode)) |
lo | 134 | drivers/block/loop.c | size = (lo->lo_inode->i_size - lo->lo_offset) / 1024; |
lo | 136 | drivers/block/loop.c | if (blk_size[MAJOR(lo->lo_device)]) |
lo | 137 | drivers/block/loop.c | size = ((blk_size[MAJOR(lo->lo_device)] |
lo | 138 | drivers/block/loop.c | [MINOR(lo->lo_device)]) - |
lo | 139 | drivers/block/loop.c | (lo->lo_offset/1024)); |
lo | 143 | drivers/block/loop.c | loop_sizes[lo->lo_number] = size; |
lo | 150 | drivers/block/loop.c | struct loop_device *lo; |
lo | 157 | drivers/block/loop.c | lo = &loop_dev[MINOR(CURRENT->rq_dev)]; |
lo | 158 | drivers/block/loop.c | if (!lo->lo_inode || !lo->transfer) |
lo | 162 | drivers/block/loop.c | if (blksize_size[MAJOR(lo->lo_device)]) { |
lo | 163 | drivers/block/loop.c | blksize = blksize_size[MAJOR(lo->lo_device)][MINOR(lo->lo_device)]; |
lo | 177 | drivers/block/loop.c | block += lo->lo_offset / blksize; |
lo | 178 | drivers/block/loop.c | offset += lo->lo_offset % blksize; |
lo | 185 | drivers/block/loop.c | if (lo->lo_flags & LO_FLAGS_READ_ONLY) |
lo | 193 | drivers/block/loop.c | if (lo->lo_flags & LO_FLAGS_DO_BMAP) { |
lo | 194 | drivers/block/loop.c | real_block = bmap(lo->lo_inode, block); |
lo | 200 | drivers/block/loop.c | bh = getblk(lo->lo_device, real_block, blksize); |
lo | 203 | drivers/block/loop.c | kdevname(lo->lo_device), |
lo | 220 | drivers/block/loop.c | if ((lo->transfer)(lo, CURRENT->cmd, bh->b_data + offset, |
lo | 241 | drivers/block/loop.c | static int loop_set_fd(struct loop_device *lo, kdev_t dev, unsigned int arg) |
lo | 248 | drivers/block/loop.c | if (lo->lo_inode) |
lo | 259 | drivers/block/loop.c | lo->lo_device = inode->i_rdev; |
lo | 260 | drivers/block/loop.c | lo->lo_flags = 0; |
lo | 262 | drivers/block/loop.c | lo->lo_device = inode->i_dev; |
lo | 263 | drivers/block/loop.c | lo->lo_flags = LO_FLAGS_DO_BMAP; |
lo | 267 | drivers/block/loop.c | if (IS_RDONLY (inode) || is_read_only(lo->lo_device)) { |
lo | 268 | drivers/block/loop.c | lo->lo_flags |= LO_FLAGS_READ_ONLY; |
lo | 275 | drivers/block/loop.c | lo->lo_inode = inode; |
lo | 276 | drivers/block/loop.c | lo->lo_inode->i_count++; |
lo | 277 | drivers/block/loop.c | lo->transfer = NULL; |
lo | 278 | drivers/block/loop.c | figure_loop_size(lo); |
lo | 283 | drivers/block/loop.c | static int loop_clr_fd(struct loop_device *lo, kdev_t dev) |
lo | 285 | drivers/block/loop.c | if (!lo->lo_inode) |
lo | 287 | drivers/block/loop.c | if (lo->lo_refcnt > 1) /* we needed one fd for the ioctl */ |
lo | 289 | drivers/block/loop.c | if (S_ISBLK(lo->lo_inode->i_mode)) |
lo | 290 | drivers/block/loop.c | blkdev_release (lo->lo_inode); |
lo | 291 | drivers/block/loop.c | iput(lo->lo_inode); |
lo | 292 | drivers/block/loop.c | lo->lo_device = 0; |
lo | 293 | drivers/block/loop.c | lo->lo_inode = NULL; |
lo | 294 | drivers/block/loop.c | lo->lo_encrypt_type = 0; |
lo | 295 | drivers/block/loop.c | lo->lo_offset = 0; |
lo | 296 | drivers/block/loop.c | lo->lo_encrypt_key_size = 0; |
lo | 297 | drivers/block/loop.c | memset(lo->lo_encrypt_key, 0, LO_KEY_SIZE); |
lo | 298 | drivers/block/loop.c | memset(lo->lo_name, 0, LO_NAME_SIZE); |
lo | 299 | drivers/block/loop.c | loop_sizes[lo->lo_number] = 0; |
lo | 305 | drivers/block/loop.c | static int loop_set_status(struct loop_device *lo, struct loop_info *arg) |
lo | 309 | drivers/block/loop.c | if (!lo->lo_inode) |
lo | 327 | drivers/block/loop.c | des_set_key((des_cblock *) lo->lo_encrypt_key, |
lo | 328 | drivers/block/loop.c | lo->lo_des_key); |
lo | 329 | drivers/block/loop.c | memcpy(lo->lo_des_init,info.lo_init,8); |
lo | 335 | drivers/block/loop.c | lo->lo_offset = info.lo_offset; |
lo | 336 | drivers/block/loop.c | strncpy(lo->lo_name, info.lo_name, LO_NAME_SIZE); |
lo | 337 | drivers/block/loop.c | lo->lo_encrypt_type = info.lo_encrypt_type; |
lo | 338 | drivers/block/loop.c | lo->transfer = xfer_funcs[lo->lo_encrypt_type]; |
lo | 339 | drivers/block/loop.c | lo->lo_encrypt_key_size = info.lo_encrypt_key_size; |
lo | 341 | drivers/block/loop.c | memcpy(lo->lo_encrypt_key, info.lo_encrypt_key, |
lo | 343 | drivers/block/loop.c | figure_loop_size(lo); |
lo | 347 | drivers/block/loop.c | static int loop_get_status(struct loop_device *lo, struct loop_info *arg) |
lo | 351 | drivers/block/loop.c | if (!lo->lo_inode) |
lo | 356 | drivers/block/loop.c | info.lo_number = lo->lo_number; |
lo | 357 | drivers/block/loop.c | info.lo_device = kdev_t_to_nr(lo->lo_inode->i_dev); |
lo | 358 | drivers/block/loop.c | info.lo_inode = lo->lo_inode->i_ino; |
lo | 359 | drivers/block/loop.c | info.lo_rdevice = kdev_t_to_nr(lo->lo_device); |
lo | 360 | drivers/block/loop.c | info.lo_offset = lo->lo_offset; |
lo | 361 | drivers/block/loop.c | info.lo_flags = lo->lo_flags; |
lo | 362 | drivers/block/loop.c | strncpy(info.lo_name, lo->lo_name, LO_NAME_SIZE); |
lo | 363 | drivers/block/loop.c | info.lo_encrypt_type = lo->lo_encrypt_type; |
lo | 364 | drivers/block/loop.c | if (lo->lo_encrypt_key_size && suser()) { |
lo | 365 | drivers/block/loop.c | info.lo_encrypt_key_size = lo->lo_encrypt_key_size; |
lo | 366 | drivers/block/loop.c | memcpy(info.lo_encrypt_key, lo->lo_encrypt_key, |
lo | 367 | drivers/block/loop.c | lo->lo_encrypt_key_size); |
lo | 376 | drivers/block/loop.c | struct loop_device *lo; |
lo | 388 | drivers/block/loop.c | lo = &loop_dev[dev]; |
lo | 391 | drivers/block/loop.c | return loop_set_fd(lo, inode->i_rdev, arg); |
lo | 393 | drivers/block/loop.c | return loop_clr_fd(lo, inode->i_rdev); |
lo | 395 | drivers/block/loop.c | return loop_set_status(lo, (struct loop_info *) arg); |
lo | 397 | drivers/block/loop.c | return loop_get_status(lo, (struct loop_info *) arg); |
lo | 399 | drivers/block/loop.c | if (!lo->lo_inode) |
lo | 405 | drivers/block/loop.c | put_fs_long(loop_sizes[lo->lo_number] << 1, (long *) arg); |
lo | 415 | drivers/block/loop.c | struct loop_device *lo; |
lo | 427 | drivers/block/loop.c | lo = &loop_dev[dev]; |
lo | 428 | drivers/block/loop.c | lo->lo_refcnt++; |
lo | 435 | drivers/block/loop.c | struct loop_device *lo; |
lo | 448 | drivers/block/loop.c | lo = &loop_dev[dev]; |
lo | 449 | drivers/block/loop.c | if (lo->lo_refcnt <= 0) |
lo | 450 | drivers/block/loop.c | printk("lo_release: refcount(%d) <= 0\n", lo->lo_refcnt); |
lo | 452 | drivers/block/loop.c | lo->lo_refcnt--; |
lo | 262 | drivers/char/console.c | int comstat, hi, lo; |
lo | 276 | drivers/char/console.c | lo = serial_echo_inb(UART_DLL); |
lo | 537 | drivers/char/ftape/ftape-rw.c | int lo = (location.track - 1) * segments_per_track; |
lo | 540 | drivers/char/ftape/ftape-rw.c | return (id >= lo && id < hi); |
lo | 320 | drivers/net/de600.c | byte lo; |
lo | 323 | drivers/net/de600.c | lo = ((unsigned char)inb(STATUS_PORT)) >> 4; |
lo | 325 | drivers/net/de600.c | return ((unsigned char)inb(STATUS_PORT) & (unsigned char)0xf0) | lo; |
lo | 556 | drivers/scsi/advansys.c | #define MAKEWORD(lo, hi) ((WORD) (((WORD) lo) | ((WORD) hi << 8))) |
lo | 560 | drivers/scsi/advansys.c | #define MAKELONG(lo, hi) ((DWORD) (((DWORD) lo) | ((DWORD) hi << 16))) |
lo | 325 | drivers/sound/gus_wave.c | unsigned char hi, lo; |
lo | 332 | drivers/sound/gus_wave.c | lo = inb (u_DataLo); |
lo | 337 | drivers/sound/gus_wave.c | return ((hi << 8) & 0xff00) | lo; |
lo | 160 | include/asm-mips/gdb-stub.h | long lo; |
lo | 39 | include/asm-mips/ptrace.h | long lo; |
lo | 89 | include/asm-mips/stackframe.h | lw k1,%lo(kernelsp)(k1); \ |
lo | 42 | include/asm-sparc/head.h | or %l7, %lo(C_LABEL(sys_call_table)), %l7; \ |
lo | 51 | include/asm-sparc/head.h | or %l7, %lo(C_LABEL(sunos_sys_table)), %l7; |
lo | 56 | include/asm-sparc/head.h | or %l7, %lo(C_LABEL(sys_call_table)), %l7; \ |
lo | 63 | include/asm-sparc/head.h | or %l7, %lo(C_LABEL(sys_call_table)), %l7; \ |
lo | 45 | include/asm-sparc/openprom.h | void (*v2_dev_seek)(int d, int hi, int lo); |
lo | 121 | include/asm-sparc/winmacro.h | or %dest_reg, %lo(C_LABEL(current_set)), %dest_reg; \ |
lo | 126 | include/asm-sparc/winmacro.h | ld [%dest_reg + %lo(C_LABEL(current_set))], %dest_reg; |