/linux-4.1.27/drivers/scsi/ |
H A D | scsi_logging.c | 81 size_t off = 0; sdev_format_header() local 84 off += scnprintf(logbuf + off, logbuf_len - off, sdev_format_header() 87 if (WARN_ON(off >= logbuf_len)) sdev_format_header() 88 return off; sdev_format_header() 91 off += scnprintf(logbuf + off, logbuf_len - off, sdev_format_header() 93 return off; sdev_format_header() 101 size_t off = 0, logbuf_len; sdev_prefix_printk() local 111 off += scnprintf(logbuf + off, logbuf_len - off, sdev_prefix_printk() 113 if (!WARN_ON(off >= logbuf_len)) { sdev_prefix_printk() 115 off += vscnprintf(logbuf + off, logbuf_len - off, fmt, args); sdev_prefix_printk() 128 size_t off = 0, logbuf_len; scmd_printk() local 136 off = sdev_format_header(logbuf, logbuf_len, scmd_name(scmd), scmd_printk() 138 if (off < logbuf_len) { scmd_printk() 140 off += vscnprintf(logbuf + off, logbuf_len - off, fmt, args); scmd_printk() 153 size_t off; scsi_format_opcode_name() local 160 off = scnprintf(buffer, buf_len, scsi_format_opcode_name() 163 return off; scsi_format_opcode_name() 171 off = scnprintf(buffer, buf_len, "%s", cdb_name); scsi_format_opcode_name() 173 off = scnprintf(buffer, buf_len, "opcode=0x%x", cdb0); scsi_format_opcode_name() 174 if (WARN_ON(off >= buf_len)) scsi_format_opcode_name() 175 return off; scsi_format_opcode_name() 177 off += scnprintf(buffer + off, buf_len - off, scsi_format_opcode_name() 180 off += scnprintf(buffer + off, buf_len - off, scsi_format_opcode_name() 185 off = scnprintf(buffer, buf_len, "%s", sa_name); scsi_format_opcode_name() 187 off = scnprintf(buffer, buf_len, "%s, sa=0x%x", scsi_format_opcode_name() 190 off = scnprintf(buffer, buf_len, scsi_format_opcode_name() 193 WARN_ON(off >= buf_len); scsi_format_opcode_name() 194 return off; scsi_format_opcode_name() 201 size_t off; __scsi_format_command() local 203 off = scsi_format_opcode_name(logbuf, logbuf_len, cdb); __scsi_format_command() 204 if (off >= logbuf_len) __scsi_format_command() 205 return off; __scsi_format_command() 211 if (off > logbuf_len - 3) __scsi_format_command() 213 off += scnprintf(logbuf + off, logbuf_len - off, __scsi_format_command() 216 return off; __scsi_format_command() 224 size_t off, logbuf_len; scsi_print_command() local 233 off = sdev_format_header(logbuf, logbuf_len, scsi_print_command() 235 if (off >= logbuf_len) scsi_print_command() 237 off += scnprintf(logbuf + off, logbuf_len - off, "CDB: "); scsi_print_command() 238 if (WARN_ON(off >= logbuf_len)) scsi_print_command() 241 off += scsi_format_opcode_name(logbuf + off, logbuf_len - off, scsi_print_command() 243 if (off >= logbuf_len) scsi_print_command() 249 off += scnprintf(logbuf + off, logbuf_len - off, "\n"); scsi_print_command() 258 off = sdev_format_header(logbuf, logbuf_len, scsi_print_command() 261 if (!WARN_ON(off > logbuf_len - 58)) { scsi_print_command() 262 off += scnprintf(logbuf + off, logbuf_len - off, scsi_print_command() 265 16, 1, logbuf + off, scsi_print_command() 266 logbuf_len - off, false); scsi_print_command() 274 if (!WARN_ON(off > logbuf_len - 49)) { scsi_print_command() 275 off += scnprintf(logbuf + off, logbuf_len - off, " "); scsi_print_command() 277 logbuf + off, logbuf_len - off, scsi_print_command() 290 size_t off = 0; scsi_format_extd_sense() local 296 off = scnprintf(buffer, buf_len, "Add. Sense: %s", scsi_format_extd_sense() 299 off += scnprintf(buffer + off, buf_len - off, scsi_format_extd_sense() 303 off = scnprintf(buffer, buf_len, "<<vendor>>"); scsi_format_extd_sense() 304 off += scnprintf(buffer + off, buf_len - off, scsi_format_extd_sense() 307 off += scnprintf(buffer + off, buf_len - off, scsi_format_extd_sense() 309 off += scnprintf(buffer + off, buf_len - off, scsi_format_extd_sense() 312 return off; scsi_format_extd_sense() 320 size_t off; scsi_format_sense_hdr() local 322 off = scnprintf(buffer, buf_len, "Sense Key : "); scsi_format_sense_hdr() 325 off += scnprintf(buffer + off, buf_len - off, scsi_format_sense_hdr() 328 off += scnprintf(buffer + off, buf_len - off, scsi_format_sense_hdr() 330 off += scnprintf(buffer + off, buf_len - off, scsi_format_sense_hdr() 334 off += scnprintf(buffer + off, buf_len - off, "[descriptor] "); scsi_format_sense_hdr() 335 return off; scsi_format_sense_hdr() 352 size_t off; scsi_log_dump_sense() local 354 off = sdev_format_header(logbuf, logbuf_len, scsi_log_dump_sense() 357 logbuf + off, logbuf_len - off, scsi_log_dump_sense() 369 size_t off, logbuf_len; scsi_log_print_sense_hdr() local 374 off = sdev_format_header(logbuf, logbuf_len, name, tag); scsi_log_print_sense_hdr() 375 off += scsi_format_sense_hdr(logbuf + off, logbuf_len - off, sshdr); scsi_log_print_sense_hdr() 382 off = sdev_format_header(logbuf, logbuf_len, name, tag); scsi_log_print_sense_hdr() 383 off += scsi_format_extd_sense(logbuf + off, logbuf_len - off, scsi_log_print_sense_hdr() 432 size_t off, logbuf_len; scsi_print_result() local 441 off = sdev_format_header(logbuf, logbuf_len, scsi_print_result() 444 if (off >= logbuf_len) scsi_print_result() 448 off += scnprintf(logbuf + off, logbuf_len - off, scsi_print_result() 450 if (WARN_ON(off >= logbuf_len)) scsi_print_result() 454 off += scnprintf(logbuf + off, logbuf_len - off, scsi_print_result() 457 off += scnprintf(logbuf + off, logbuf_len - off, scsi_print_result() 459 if (WARN_ON(off >= logbuf_len)) scsi_print_result() 462 off += scnprintf(logbuf + off, logbuf_len - off, "Result: "); scsi_print_result() 463 if (WARN_ON(off >= logbuf_len)) scsi_print_result() 467 off += scnprintf(logbuf + off, logbuf_len - off, scsi_print_result() 470 off += scnprintf(logbuf + off, logbuf_len - off, scsi_print_result() 472 if (WARN_ON(off >= logbuf_len)) scsi_print_result() 476 off += scnprintf(logbuf + off, logbuf_len - off, scsi_print_result() 479 off += scnprintf(logbuf + off, logbuf_len - off, scsi_print_result()
|
/linux-4.1.27/arch/ia64/kernel/ |
H A D | entry.h | 27 #define PT_REGS_SAVES(off) \ 29 .fframe IA64_PT_REGS_SIZE+16+(off); \ 30 .spillsp rp, PT(CR_IIP)+16+(off); \ 31 .spillsp ar.pfs, PT(CR_IFS)+16+(off); \ 32 .spillsp ar.unat, PT(AR_UNAT)+16+(off); \ 33 .spillsp ar.fpsr, PT(AR_FPSR)+16+(off); \ 34 .spillsp pr, PT(PR)+16+(off); 36 #define PT_REGS_UNWIND_INFO(off) \ 38 PT_REGS_SAVES(off); \ 41 #define SWITCH_STACK_SAVES(off) \ 42 .savesp ar.unat,SW(CALLER_UNAT)+16+(off); \ 43 .savesp ar.fpsr,SW(AR_FPSR)+16+(off); \ 44 .spillsp f2,SW(F2)+16+(off); .spillsp f3,SW(F3)+16+(off); \ 45 .spillsp f4,SW(F4)+16+(off); .spillsp f5,SW(F5)+16+(off); \ 46 .spillsp f16,SW(F16)+16+(off); .spillsp f17,SW(F17)+16+(off); \ 47 .spillsp f18,SW(F18)+16+(off); .spillsp f19,SW(F19)+16+(off); \ 48 .spillsp f20,SW(F20)+16+(off); .spillsp f21,SW(F21)+16+(off); \ 49 .spillsp f22,SW(F22)+16+(off); .spillsp f23,SW(F23)+16+(off); \ 50 .spillsp f24,SW(F24)+16+(off); .spillsp f25,SW(F25)+16+(off); \ 51 .spillsp f26,SW(F26)+16+(off); .spillsp f27,SW(F27)+16+(off); \ 52 .spillsp f28,SW(F28)+16+(off); .spillsp f29,SW(F29)+16+(off); \ 53 .spillsp f30,SW(F30)+16+(off); .spillsp f31,SW(F31)+16+(off); \ 54 .spillsp r4,SW(R4)+16+(off); .spillsp r5,SW(R5)+16+(off); \ 55 .spillsp r6,SW(R6)+16+(off); .spillsp r7,SW(R7)+16+(off); \ 56 .spillsp b0,SW(B0)+16+(off); .spillsp b1,SW(B1)+16+(off); \ 57 .spillsp b2,SW(B2)+16+(off); .spillsp b3,SW(B3)+16+(off); \ 58 .spillsp b4,SW(B4)+16+(off); .spillsp b5,SW(B5)+16+(off); \ 59 .spillsp ar.pfs,SW(AR_PFS)+16+(off); .spillsp ar.lc,SW(AR_LC)+16+(off); \ 60 .spillsp @priunat,SW(AR_UNAT)+16+(off); \ 61 .spillsp ar.rnat,SW(AR_RNAT)+16+(off); \ 62 .spillsp ar.bspstore,SW(AR_BSPSTORE)+16+(off); \ 63 .spillsp pr,SW(PR)+16+(off)
|
/linux-4.1.27/tools/testing/selftests/memory-hotplug/ |
H A D | Makefile | 5 TEST_PROGS := mem-on-off-test.sh 6 override RUN_TESTS := ./mem-on-off-test.sh -r 2 || echo "selftests: memory-hotplug [FAIL]" 10 @/bin/bash ./mem-on-off-test.sh || echo "memory-hotplug selftests: [FAIL]"
|
/linux-4.1.27/tools/testing/selftests/cpu-hotplug/ |
H A D | Makefile | 3 TEST_PROGS := cpu-on-off-test.sh 8 @/bin/bash ./cpu-on-off-test.sh -a || echo "cpu-hotplug selftests: [FAIL]"
|
/linux-4.1.27/arch/mips/mm/ |
H A D | page.c | 106 pg_addiu(u32 **buf, unsigned int reg1, unsigned int reg2, unsigned int off) pg_addiu() argument 109 if (off > 0x7fff) { pg_addiu() 110 uasm_i_lui(buf, T9, uasm_rel_hi(off)); pg_addiu() 111 uasm_i_addiu(buf, T9, T9, uasm_rel_lo(off)); pg_addiu() 113 uasm_i_addiu(buf, T9, ZERO, off); pg_addiu() 116 if (off > 0x7fff) { pg_addiu() 117 uasm_i_lui(buf, T9, uasm_rel_hi(off)); pg_addiu() 118 uasm_i_addiu(buf, T9, T9, uasm_rel_lo(off)); pg_addiu() 121 UASM_i_ADDIU(buf, reg1, reg2, off); pg_addiu() 225 static void build_clear_store(u32 **buf, int off) build_clear_store() argument 228 uasm_i_sd(buf, ZERO, off, A0); build_clear_store() 230 uasm_i_sw(buf, ZERO, off, A0); build_clear_store() 234 static inline void build_clear_pref(u32 **buf, int off) build_clear_pref() argument 236 if (off & cache_line_mask()) build_clear_pref() 240 _uasm_i_pref(buf, pref_dst_mode, pref_bias_clear_store + off, build_clear_pref() 244 uasm_i_cache(buf, Create_Dirty_Excl_SD, off, A0); build_clear_pref() 256 uasm_i_cache(buf, Create_Dirty_Excl_D, off, A0); build_clear_pref() 268 int off; build_clear_page() local 292 off = PAGE_SIZE - pref_bias_clear_store; build_clear_page() 293 if (off > 0xffff || !pref_bias_clear_store) build_clear_page() 294 pg_addiu(&buf, A2, A0, off); build_clear_page() 296 uasm_i_ori(&buf, A2, A0, off); build_clear_page() 301 off = cache_line_size ? min(8, pref_bias_clear_store / cache_line_size) build_clear_page() 303 while (off) { build_clear_page() 304 build_clear_pref(&buf, -off); build_clear_page() 305 off -= cache_line_size; build_clear_page() 309 build_clear_pref(&buf, off); build_clear_page() 310 build_clear_store(&buf, off); build_clear_page() 311 off += clear_word_size; build_clear_page() 312 } while (off < half_clear_loop_size); build_clear_page() 313 pg_addiu(&buf, A0, A0, 2 * off); build_clear_page() 314 off = -off; build_clear_page() 316 build_clear_pref(&buf, off); build_clear_page() 317 if (off == -clear_word_size) build_clear_page() 319 build_clear_store(&buf, off); build_clear_page() 320 off += clear_word_size; build_clear_page() 321 } while (off < 0); build_clear_page() 326 off = 0; build_clear_page() 328 build_clear_store(&buf, off); build_clear_page() 329 off += clear_word_size; build_clear_page() 330 } while (off < half_clear_loop_size); build_clear_page() 331 pg_addiu(&buf, A0, A0, 2 * off); build_clear_page() 332 off = -off; build_clear_page() 334 if (off == -clear_word_size) build_clear_page() 337 build_clear_store(&buf, off); build_clear_page() 338 off += clear_word_size; build_clear_page() 339 } while (off < 0); build_clear_page() 359 static void build_copy_load(u32 **buf, int reg, int off) build_copy_load() argument 362 uasm_i_ld(buf, reg, off, A1); build_copy_load() 364 uasm_i_lw(buf, reg, off, A1); build_copy_load() 368 static void build_copy_store(u32 **buf, int reg, int off) build_copy_store() argument 371 uasm_i_sd(buf, reg, off, A0); build_copy_store() 373 uasm_i_sw(buf, reg, off, A0); build_copy_store() 377 static inline void build_copy_load_pref(u32 **buf, int off) build_copy_load_pref() argument 379 if (off & cache_line_mask()) build_copy_load_pref() 383 _uasm_i_pref(buf, pref_src_mode, pref_bias_copy_load + off, A1); build_copy_load_pref() 386 static inline void build_copy_store_pref(u32 **buf, int off) build_copy_store_pref() argument 388 if (off & cache_line_mask()) build_copy_store_pref() 392 _uasm_i_pref(buf, pref_dst_mode, pref_bias_copy_store + off, build_copy_store_pref() 396 uasm_i_cache(buf, Create_Dirty_Excl_SD, off, A0); build_copy_store_pref() 408 uasm_i_cache(buf, Create_Dirty_Excl_D, off, A0); build_copy_store_pref() 415 int off; build_copy_page() local 443 off = PAGE_SIZE - pref_bias_copy_load; build_copy_page() 444 if (off > 0xffff || !pref_bias_copy_load) build_copy_page() 445 pg_addiu(&buf, A2, A0, off); build_copy_page() 447 uasm_i_ori(&buf, A2, A0, off); build_copy_page() 452 off = cache_line_size ? min(8, pref_bias_copy_load / cache_line_size) * build_copy_page() 454 while (off) { build_copy_page() 455 build_copy_load_pref(&buf, -off); build_copy_page() 456 off -= cache_line_size; build_copy_page() 458 off = cache_line_size ? min(8, pref_bias_copy_store / cache_line_size) * build_copy_page() 460 while (off) { build_copy_page() 461 build_copy_store_pref(&buf, -off); build_copy_page() 462 off -= cache_line_size; build_copy_page() 466 build_copy_load_pref(&buf, off); build_copy_page() 467 build_copy_load(&buf, T0, off); build_copy_page() 468 build_copy_load_pref(&buf, off + copy_word_size); build_copy_page() 469 build_copy_load(&buf, T1, off + copy_word_size); build_copy_page() 470 build_copy_load_pref(&buf, off + 2 * copy_word_size); build_copy_page() 471 build_copy_load(&buf, T2, off + 2 * copy_word_size); build_copy_page() 472 build_copy_load_pref(&buf, off + 3 * copy_word_size); build_copy_page() 473 build_copy_load(&buf, T3, off + 3 * copy_word_size); build_copy_page() 474 build_copy_store_pref(&buf, off); build_copy_page() 475 build_copy_store(&buf, T0, off); build_copy_page() 476 build_copy_store_pref(&buf, off + copy_word_size); build_copy_page() 477 build_copy_store(&buf, T1, off + copy_word_size); build_copy_page() 478 build_copy_store_pref(&buf, off + 2 * copy_word_size); build_copy_page() 479 build_copy_store(&buf, T2, off + 2 * copy_word_size); build_copy_page() 480 build_copy_store_pref(&buf, off + 3 * copy_word_size); build_copy_page() 481 build_copy_store(&buf, T3, off + 3 * copy_word_size); build_copy_page() 482 off += 4 * copy_word_size; build_copy_page() 483 } while (off < half_copy_loop_size); build_copy_page() 484 pg_addiu(&buf, A1, A1, 2 * off); build_copy_page() 485 pg_addiu(&buf, A0, A0, 2 * off); build_copy_page() 486 off = -off; build_copy_page() 488 build_copy_load_pref(&buf, off); build_copy_page() 489 build_copy_load(&buf, T0, off); build_copy_page() 490 build_copy_load_pref(&buf, off + copy_word_size); build_copy_page() 491 build_copy_load(&buf, T1, off + copy_word_size); build_copy_page() 492 build_copy_load_pref(&buf, off + 2 * copy_word_size); build_copy_page() 493 build_copy_load(&buf, T2, off + 2 * copy_word_size); build_copy_page() 494 build_copy_load_pref(&buf, off + 3 * copy_word_size); build_copy_page() 495 build_copy_load(&buf, T3, off + 3 * copy_word_size); build_copy_page() 496 build_copy_store_pref(&buf, off); build_copy_page() 497 build_copy_store(&buf, T0, off); build_copy_page() 498 build_copy_store_pref(&buf, off + copy_word_size); build_copy_page() 499 build_copy_store(&buf, T1, off + copy_word_size); build_copy_page() 500 build_copy_store_pref(&buf, off + 2 * copy_word_size); build_copy_page() 501 build_copy_store(&buf, T2, off + 2 * copy_word_size); build_copy_page() 502 build_copy_store_pref(&buf, off + 3 * copy_word_size); build_copy_page() 503 if (off == -(4 * copy_word_size)) build_copy_page() 505 build_copy_store(&buf, T3, off + 3 * copy_word_size); build_copy_page() 506 off += 4 * copy_word_size; build_copy_page() 507 } while (off < 0); build_copy_page() 513 off = 0; build_copy_page() 515 build_copy_load(&buf, T0, off); build_copy_page() 516 build_copy_load(&buf, T1, off + copy_word_size); build_copy_page() 517 build_copy_load(&buf, T2, off + 2 * copy_word_size); build_copy_page() 518 build_copy_load(&buf, T3, off + 3 * copy_word_size); build_copy_page() 519 build_copy_store_pref(&buf, off); build_copy_page() 520 build_copy_store(&buf, T0, off); build_copy_page() 521 build_copy_store_pref(&buf, off + copy_word_size); build_copy_page() 522 build_copy_store(&buf, T1, off + copy_word_size); build_copy_page() 523 build_copy_store_pref(&buf, off + 2 * copy_word_size); build_copy_page() 524 build_copy_store(&buf, T2, off + 2 * copy_word_size); build_copy_page() 525 build_copy_store_pref(&buf, off + 3 * copy_word_size); build_copy_page() 526 build_copy_store(&buf, T3, off + 3 * copy_word_size); build_copy_page() 527 off += 4 * copy_word_size; build_copy_page() 528 } while (off < half_copy_loop_size); build_copy_page() 529 pg_addiu(&buf, A1, A1, 2 * off); build_copy_page() 530 pg_addiu(&buf, A0, A0, 2 * off); build_copy_page() 531 off = -off; build_copy_page() 533 build_copy_load(&buf, T0, off); build_copy_page() 534 build_copy_load(&buf, T1, off + copy_word_size); build_copy_page() 535 build_copy_load(&buf, T2, off + 2 * copy_word_size); build_copy_page() 536 build_copy_load(&buf, T3, off + 3 * copy_word_size); build_copy_page() 537 build_copy_store_pref(&buf, off); build_copy_page() 538 build_copy_store(&buf, T0, off); build_copy_page() 539 build_copy_store_pref(&buf, off + copy_word_size); build_copy_page() 540 build_copy_store(&buf, T1, off + copy_word_size); build_copy_page() 541 build_copy_store_pref(&buf, off + 2 * copy_word_size); build_copy_page() 542 build_copy_store(&buf, T2, off + 2 * copy_word_size); build_copy_page() 543 build_copy_store_pref(&buf, off + 3 * copy_word_size); build_copy_page() 544 if (off == -(4 * copy_word_size)) build_copy_page() 547 build_copy_store(&buf, T3, off + 3 * copy_word_size); build_copy_page() 548 off += 4 * copy_word_size; build_copy_page() 549 } while (off < 0); build_copy_page() 555 off = 0; build_copy_page() 557 build_copy_load(&buf, T0, off); build_copy_page() 558 build_copy_load(&buf, T1, off + copy_word_size); build_copy_page() 559 build_copy_load(&buf, T2, off + 2 * copy_word_size); build_copy_page() 560 build_copy_load(&buf, T3, off + 3 * copy_word_size); build_copy_page() 561 build_copy_store(&buf, T0, off); build_copy_page() 562 build_copy_store(&buf, T1, off + copy_word_size); build_copy_page() 563 build_copy_store(&buf, T2, off + 2 * copy_word_size); build_copy_page() 564 build_copy_store(&buf, T3, off + 3 * copy_word_size); build_copy_page() 565 off += 4 * copy_word_size; build_copy_page() 566 } while (off < half_copy_loop_size); build_copy_page() 567 pg_addiu(&buf, A1, A1, 2 * off); build_copy_page() 568 pg_addiu(&buf, A0, A0, 2 * off); build_copy_page() 569 off = -off; build_copy_page() 571 build_copy_load(&buf, T0, off); build_copy_page() 572 build_copy_load(&buf, T1, off + copy_word_size); build_copy_page() 573 build_copy_load(&buf, T2, off + 2 * copy_word_size); build_copy_page() 574 build_copy_load(&buf, T3, off + 3 * copy_word_size); build_copy_page() 575 build_copy_store(&buf, T0, off); build_copy_page() 576 build_copy_store(&buf, T1, off + copy_word_size); build_copy_page() 577 build_copy_store(&buf, T2, off + 2 * copy_word_size); build_copy_page() 578 if (off == -(4 * copy_word_size)) build_copy_page() 581 build_copy_store(&buf, T3, off + 3 * copy_word_size); build_copy_page() 582 off += 4 * copy_word_size; build_copy_page() 583 } while (off < 0); build_copy_page()
|
/linux-4.1.27/arch/sparc/kernel/ |
H A D | jump_label.c | 20 s32 off = (s32)entry->target - (s32)entry->code; arch_jump_label_transform() local 23 /* ba,pt %xcc, . + (off << 2) */ arch_jump_label_transform() 24 val = 0x10680000 | ((u32) off >> 2); arch_jump_label_transform() 26 /* ba . + (off << 2) */ arch_jump_label_transform() 27 val = 0x10800000 | ((u32) off >> 2); arch_jump_label_transform()
|
H A D | led.c | 19 unsigned char on, off; led_toggle() local 23 off = AUXIO_LED; led_toggle() 26 off = 0; led_toggle() 29 set_auxio(on, off); led_toggle() 55 seq_puts(m, "off\n"); led_proc_show()
|
H A D | reboot.c | 14 /* sysctl - toggle power-off restriction for serial console
|
/linux-4.1.27/drivers/rapidio/ |
H A D | rio-sysfs.c | 126 char *buf, loff_t off, size_t count) rio_read_config() 131 loff_t init_off = off; rio_read_config() 138 if (off >= size) rio_read_config() 140 if (off + count > size) { rio_read_config() 141 size -= off; rio_read_config() 147 if ((off & 1) && size) { rio_read_config() 149 rio_read_config_8(dev, off, &val); rio_read_config() 150 data[off - init_off] = val; rio_read_config() 151 off++; rio_read_config() 155 if ((off & 3) && size > 2) { rio_read_config() 157 rio_read_config_16(dev, off, &val); rio_read_config() 158 data[off - init_off] = (val >> 8) & 0xff; rio_read_config() 159 data[off - init_off + 1] = val & 0xff; rio_read_config() 160 off += 2; rio_read_config() 166 rio_read_config_32(dev, off, &val); rio_read_config() 167 data[off - init_off] = (val >> 24) & 0xff; rio_read_config() 168 data[off - init_off + 1] = (val >> 16) & 0xff; rio_read_config() 169 data[off - init_off + 2] = (val >> 8) & 0xff; rio_read_config() 170 data[off - init_off + 3] = val & 0xff; rio_read_config() 171 off += 4; rio_read_config() 177 rio_read_config_16(dev, off, &val); rio_read_config() 178 data[off - init_off] = (val >> 8) & 0xff; rio_read_config() 179 data[off - init_off + 1] = val & 0xff; rio_read_config() 180 off += 2; rio_read_config() 186 rio_read_config_8(dev, off, &val); rio_read_config() 187 data[off - init_off] = val; rio_read_config() 188 off++; rio_read_config() 198 char *buf, loff_t off, size_t count) rio_write_config() 203 loff_t init_off = off; rio_write_config() 206 if (off >= RIO_MAINT_SPACE_SZ) rio_write_config() 208 if (off + count > RIO_MAINT_SPACE_SZ) { rio_write_config() 209 size = RIO_MAINT_SPACE_SZ - off; rio_write_config() 213 if ((off & 1) && size) { rio_write_config() 214 rio_write_config_8(dev, off, data[off - init_off]); rio_write_config() 215 off++; rio_write_config() 219 if ((off & 3) && (size > 2)) { rio_write_config() 220 u16 val = data[off - init_off + 1]; rio_write_config() 221 val |= (u16) data[off - init_off] << 8; rio_write_config() 222 rio_write_config_16(dev, off, val); rio_write_config() 223 off += 2; rio_write_config() 228 u32 val = data[off - init_off + 3]; rio_write_config() 229 val |= (u32) data[off - init_off + 2] << 8; rio_write_config() 230 val |= (u32) data[off - init_off + 1] << 16; rio_write_config() 231 val |= (u32) data[off - init_off] << 24; rio_write_config() 232 rio_write_config_32(dev, off, val); rio_write_config() 233 off += 4; rio_write_config() 238 u16 val = data[off - init_off + 1]; rio_write_config() 239 val |= (u16) data[off - init_off] << 8; rio_write_config() 240 rio_write_config_16(dev, off, val); rio_write_config() 241 off += 2; rio_write_config() 246 rio_write_config_8(dev, off, data[off - init_off]); rio_write_config() 247 off++; rio_write_config() 124 rio_read_config(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) rio_read_config() argument 196 rio_write_config(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) rio_write_config() argument
|
/linux-4.1.27/arch/powerpc/boot/ |
H A D | addnote.c | 68 #define GET_16BE(off) ((buf[off] << 8) + (buf[(off)+1])) 69 #define GET_32BE(off) ((GET_16BE(off) << 16U) + GET_16BE((off)+2U)) 70 #define GET_64BE(off) ((((unsigned long long)GET_32BE(off)) << 32ULL) + \ 71 ((unsigned long long)GET_32BE((off)+4ULL))) 72 #define PUT_16BE(off, v)(buf[off] = ((v) >> 8) & 0xff, \ 73 buf[(off) + 1] = (v) & 0xff) 74 #define PUT_32BE(off, v)(PUT_16BE((off), (v) >> 16L), PUT_16BE((off) + 2, (v))) 75 #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \ 76 PUT_32BE((off) + 4, (v)))) 78 #define GET_16LE(off) ((buf[off]) + (buf[(off)+1] << 8)) 79 #define GET_32LE(off) (GET_16LE(off) + (GET_16LE((off)+2U) << 16U)) 80 #define GET_64LE(off) ((unsigned long long)GET_32LE(off) + \ 81 (((unsigned long long)GET_32LE((off)+4ULL)) << 32ULL)) 82 #define PUT_16LE(off, v) (buf[off] = (v) & 0xff, \ 83 buf[(off) + 1] = ((v) >> 8) & 0xff) 84 #define PUT_32LE(off, v) (PUT_16LE((off), (v)), PUT_16LE((off) + 2, (v) >> 16L)) 85 #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) >> 32L)) 87 #define GET_16(off) (e_data == ELFDATA2MSB ? GET_16BE(off) : GET_16LE(off)) 88 #define GET_32(off) (e_data == ELFDATA2MSB ? GET_32BE(off) : GET_32LE(off)) 89 #define GET_64(off) (e_data == ELFDATA2MSB ? GET_64BE(off) : GET_64LE(off)) 90 #define PUT_16(off, v) (e_data == ELFDATA2MSB ? PUT_16BE(off, v) : \ 91 PUT_16LE(off, v)) 92 #define PUT_32(off, v) (e_data == ELFDATA2MSB ? PUT_32BE(off, v) : \ 93 PUT_32LE(off, v)) 94 #define PUT_64(off, v) (e_data == ELFDATA2MSB ? PUT_64BE(off, v) : \ 95 PUT_64LE(off, v))
|
H A D | virtex405-head.S | 13 * Invalidate the data cache if the data cache is turned off. 15 * or reset but does turn off the data cache. We cannot assume
|
/linux-4.1.27/include/uapi/linux/tc_ematch/ |
H A D | tc_em_nbyte.h | 8 __u16 off; member in struct:tcf_em_nbyte
|
H A D | tc_em_cmp.h | 10 __u16 off; member in struct:tcf_em_cmp
|
/linux-4.1.27/arch/sh/kernel/cpu/ |
H A D | adc.c | 14 int off; adc_single() local 19 off = (channel & 0x03) << 2; adc_single() 32 return (((__raw_readb(ADDRAH + off) << 8) | adc_single() 33 __raw_readb(ADDRAL + off)) >> 6); adc_single()
|
/linux-4.1.27/arch/arm/mach-clps711x/include/mach/ |
H A D | hardware.h | 30 #define clps_readb(off) readb(CLPS711X_VIRT_BASE + (off)) 31 #define clps_readw(off) readw(CLPS711X_VIRT_BASE + (off)) 32 #define clps_readl(off) readl(CLPS711X_VIRT_BASE + (off)) 33 #define clps_writeb(val,off) writeb(val, CLPS711X_VIRT_BASE + (off)) 34 #define clps_writew(val,off) writew(val, CLPS711X_VIRT_BASE + (off)) 35 #define clps_writel(val,off) writel(val, CLPS711X_VIRT_BASE + (off))
|
/linux-4.1.27/drivers/pci/ |
H A D | vpd.c | 11 int pci_vpd_find_tag(const u8 *buf, unsigned int off, unsigned int len, u8 rdt) pci_vpd_find_tag() argument 15 for (i = off; i < len; ) { pci_vpd_find_tag() 46 int pci_vpd_find_info_keyword(const u8 *buf, unsigned int off, pci_vpd_find_info_keyword() argument 51 for (i = off; i + PCI_VPD_INFO_FLD_HDR_SIZE <= off + len;) { pci_vpd_find_info_keyword()
|
H A D | syscall.c | 17 unsigned long, off, unsigned long, len, void __user *, buf) SYSCALL_DEFINE5() 36 cfg_ret = pci_user_read_config_byte(dev, off, &byte); SYSCALL_DEFINE5() 39 cfg_ret = pci_user_read_config_word(dev, off, &word); SYSCALL_DEFINE5() 42 cfg_ret = pci_user_read_config_dword(dev, off, &dword); SYSCALL_DEFINE5() 87 unsigned long, off, unsigned long, len, void __user *, buf) SYSCALL_DEFINE5() 107 err = pci_user_write_config_byte(dev, off, byte); SYSCALL_DEFINE5() 116 err = pci_user_write_config_word(dev, off, word); SYSCALL_DEFINE5() 125 err = pci_user_write_config_dword(dev, off, dword); SYSCALL_DEFINE5()
|
H A D | pci-sysfs.c | 628 loff_t off, size_t count) pci_read_config() 633 loff_t init_off = off; pci_read_config() 642 if (off > size) pci_read_config() 644 if (off + count > size) { pci_read_config() 645 size -= off; pci_read_config() 653 if ((off & 1) && size) { pci_read_config() 655 pci_user_read_config_byte(dev, off, &val); pci_read_config() 656 data[off - init_off] = val; pci_read_config() 657 off++; pci_read_config() 661 if ((off & 3) && size > 2) { pci_read_config() 663 pci_user_read_config_word(dev, off, &val); pci_read_config() 664 data[off - init_off] = val & 0xff; pci_read_config() 665 data[off - init_off + 1] = (val >> 8) & 0xff; pci_read_config() 666 off += 2; pci_read_config() 672 pci_user_read_config_dword(dev, off, &val); pci_read_config() 673 data[off - init_off] = val & 0xff; pci_read_config() 674 data[off - init_off + 1] = (val >> 8) & 0xff; pci_read_config() 675 data[off - init_off + 2] = (val >> 16) & 0xff; pci_read_config() 676 data[off - init_off + 3] = (val >> 24) & 0xff; pci_read_config() 677 off += 4; pci_read_config() 683 pci_user_read_config_word(dev, off, &val); pci_read_config() 684 data[off - init_off] = val & 0xff; pci_read_config() 685 data[off - init_off + 1] = (val >> 8) & 0xff; pci_read_config() 686 off += 2; pci_read_config() 692 pci_user_read_config_byte(dev, off, &val); pci_read_config() 693 data[off - init_off] = val; pci_read_config() 694 off++; pci_read_config() 705 loff_t off, size_t count) pci_write_config() 710 loff_t init_off = off; pci_write_config() 713 if (off > dev->cfg_size) pci_write_config() 715 if (off + count > dev->cfg_size) { pci_write_config() 716 size = dev->cfg_size - off; pci_write_config() 722 if ((off & 1) && size) { pci_write_config() 723 pci_user_write_config_byte(dev, off, data[off - init_off]); pci_write_config() 724 off++; pci_write_config() 728 if ((off & 3) && size > 2) { pci_write_config() 729 u16 val = data[off - init_off]; pci_write_config() 730 val |= (u16) data[off - init_off + 1] << 8; pci_write_config() 731 pci_user_write_config_word(dev, off, val); pci_write_config() 732 off += 2; pci_write_config() 737 u32 val = data[off - init_off]; pci_write_config() 738 val |= (u32) data[off - init_off + 1] << 8; pci_write_config() 739 val |= (u32) data[off - init_off + 2] << 16; pci_write_config() 740 val |= (u32) data[off - init_off + 3] << 24; pci_write_config() 741 pci_user_write_config_dword(dev, off, val); pci_write_config() 742 off += 4; pci_write_config() 747 u16 val = data[off - init_off]; pci_write_config() 748 val |= (u16) data[off - init_off + 1] << 8; pci_write_config() 749 pci_user_write_config_word(dev, off, val); pci_write_config() 750 off += 2; pci_write_config() 755 pci_user_write_config_byte(dev, off, data[off - init_off]); pci_write_config() 756 off++; pci_write_config() 767 loff_t off, size_t count) read_vpd_attr() 772 if (off > bin_attr->size) read_vpd_attr() 774 else if (count > bin_attr->size - off) read_vpd_attr() 775 count = bin_attr->size - off; read_vpd_attr() 777 return pci_read_vpd(dev, off, count, buf); read_vpd_attr() 782 loff_t off, size_t count) write_vpd_attr() 787 if (off > bin_attr->size) write_vpd_attr() 789 else if (count > bin_attr->size - off) write_vpd_attr() 790 count = bin_attr->size - off; write_vpd_attr() 792 return pci_write_vpd(dev, off, count, buf); write_vpd_attr() 802 * @off: offset into legacy I/O port space 810 loff_t off, size_t count) pci_read_legacy_io() 819 return pci_legacy_read(bus, off, (u32 *)buf, count); pci_read_legacy_io() 828 * @off: offset into legacy I/O port space 836 loff_t off, size_t count) pci_write_legacy_io() 845 return pci_legacy_write(bus, off, *(u32 *)buf, count); pci_write_legacy_io() 1052 loff_t off, size_t count, bool write) pci_resource_io() 1057 unsigned long port = off; pci_resource_io() 1099 loff_t off, size_t count) pci_read_resource_io() 1101 return pci_resource_io(filp, kobj, attr, buf, off, count, false); pci_read_resource_io() 1106 loff_t off, size_t count) pci_write_resource_io() 1108 return pci_resource_io(filp, kobj, attr, buf, off, count, true); pci_write_resource_io() 1216 * @off: file offset pci_remove_resource_files() 1223 loff_t off, size_t count) pci_write_rom() 1227 if ((off == 0) && (*buf == '0') && (count == 2)) pci_write_rom() 1241 * @off: file offset 1244 * Put @count bytes starting at @off into @buf from the ROM in the PCI 1249 loff_t off, size_t count) pci_read_rom() 1262 if (off >= size) pci_read_rom() 1265 if (off + count > size) pci_read_rom() 1266 count = size - off; pci_read_rom() 1268 memcpy_fromio(buf, rom + off, count); pci_read_rom() 626 pci_read_config(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) pci_read_config() argument 703 pci_write_config(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) pci_write_config() argument 765 read_vpd_attr(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) read_vpd_attr() argument 780 write_vpd_attr(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) write_vpd_attr() argument 808 pci_read_legacy_io(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) pci_read_legacy_io() argument 834 pci_write_legacy_io(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) pci_write_legacy_io() argument 1050 pci_resource_io(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count, bool write) pci_resource_io() argument 1097 pci_read_resource_io(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) pci_read_resource_io() argument 1104 pci_write_resource_io(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) pci_write_resource_io() argument 1221 pci_write_rom(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) pci_write_rom() argument 1247 pci_read_rom(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) pci_read_rom() argument
|
/linux-4.1.27/drivers/acpi/ |
H A D | ec_sys.c | 32 size_t count, loff_t *off) acpi_ec_read_io() 38 loff_t init_off = *off; acpi_ec_read_io() 41 if (*off >= size) acpi_ec_read_io() 43 if (*off + count >= size) { acpi_ec_read_io() 44 size -= *off; acpi_ec_read_io() 51 err = ec_read(*off, &byte_read); acpi_ec_read_io() 54 if (put_user(byte_read, buf + *off - init_off)) { acpi_ec_read_io() 55 if (*off - init_off) acpi_ec_read_io() 56 return *off - init_off; /* partial read */ acpi_ec_read_io() 59 *off += 1; acpi_ec_read_io() 66 size_t count, loff_t *off) acpi_ec_write_io() 73 loff_t init_off = *off; acpi_ec_write_io() 76 if (*off >= EC_SPACE_SIZE) acpi_ec_write_io() 78 if (*off + count >= EC_SPACE_SIZE) { acpi_ec_write_io() 79 size = EC_SPACE_SIZE - *off; acpi_ec_write_io() 85 if (get_user(byte_write, buf + *off - init_off)) { acpi_ec_write_io() 86 if (*off - init_off) acpi_ec_write_io() 87 return *off - init_off; /* partial write */ acpi_ec_write_io() 90 err = ec_write(*off, byte_write); acpi_ec_write_io() 94 *off += 1; acpi_ec_write_io() 31 acpi_ec_read_io(struct file *f, char __user *buf, size_t count, loff_t *off) acpi_ec_read_io() argument 65 acpi_ec_write_io(struct file *f, const char __user *buf, size_t count, loff_t *off) acpi_ec_write_io() argument
|
/linux-4.1.27/arch/powerpc/platforms/powernv/ |
H A D | opal-nvram.c | 32 int off; opal_nvram_read() local 36 off = *index; opal_nvram_read() 37 if ((off + count) > nvram_size) opal_nvram_read() 38 count = nvram_size - off; opal_nvram_read() 39 rc = opal_read_nvram(__pa(buf), count, off); opal_nvram_read() 49 int off; opal_nvram_write() local 53 off = *index; opal_nvram_write() 54 if ((off + count) > nvram_size) opal_nvram_write() 55 count = nvram_size - off; opal_nvram_write() 58 rc = opal_write_nvram(__pa(buf), count, off); opal_nvram_write()
|
/linux-4.1.27/drivers/isdn/hardware/mISDN/ |
H A D | iohelper.h | 39 static u8 Read##name##_IO(void *p, u8 off) { \ 41 return inb(hw->ap.port + off); \ 43 static void Write##name##_IO(void *p, u8 off, u8 val) { \ 45 outb(val, hw->ap.port + off); \ 47 static void ReadFiFo##name##_IO(void *p, u8 off, u8 *dp, int size) { \ 49 insb(hw->ap.port + off, dp, size); \ 51 static void WriteFiFo##name##_IO(void *p, u8 off, u8 *dp, int size) { \ 53 outsb(hw->ap.port + off, dp, size); \ 57 static u8 Read##name##_IND(void *p, u8 off) { \ 59 outb(off, hw->ap.ale); \ 62 static void Write##name##_IND(void *p, u8 off, u8 val) { \ 64 outb(off, hw->ap.ale); \ 67 static void ReadFiFo##name##_IND(void *p, u8 off, u8 *dp, int size) { \ 69 outb(off, hw->ap.ale); \ 72 static void WriteFiFo##name##_IND(void *p, u8 off, u8 *dp, int size) { \ 74 outb(off, hw->ap.ale); \ 79 static u8 Read##name##_MIO(void *p, u8 off) { \ 81 return readb(((typ *)hw->adr) + off); \ 83 static void Write##name##_MIO(void *p, u8 off, u8 val) { \ 85 writeb(val, ((typ *)hw->adr) + off); \ 87 static void ReadFiFo##name##_MIO(void *p, u8 off, u8 *dp, int size) { \ 90 *dp++ = readb(((typ *)hw->adr) + off); \ 92 static void WriteFiFo##name##_MIO(void *p, u8 off, u8 *dp, int size) { \ 95 writeb(*dp++, ((typ *)hw->adr) + off); \
|
/linux-4.1.27/net/ceph/ |
H A D | pagevec.c | 98 loff_t off, size_t len) ceph_copy_user_to_page_vector() 101 int po = off & ~PAGE_CACHE_MASK; ceph_copy_user_to_page_vector() 124 loff_t off, size_t len) ceph_copy_to_page_vector() 127 size_t po = off & ~PAGE_CACHE_MASK; ceph_copy_to_page_vector() 147 loff_t off, size_t len) ceph_copy_from_page_vector() 150 size_t po = off & ~PAGE_CACHE_MASK; ceph_copy_from_page_vector() 172 void ceph_zero_page_vector_range(int off, int len, struct page **pages) ceph_zero_page_vector_range() argument 174 int i = off >> PAGE_CACHE_SHIFT; ceph_zero_page_vector_range() 176 off &= ~PAGE_CACHE_MASK; ceph_zero_page_vector_range() 178 dout("zero_page_vector_page %u~%u\n", off, len); ceph_zero_page_vector_range() 181 if (off) { ceph_zero_page_vector_range() 182 int end = min((int)PAGE_CACHE_SIZE, off + len); ceph_zero_page_vector_range() 184 (int)off); ceph_zero_page_vector_range() 185 zero_user_segment(pages[i], off, end); ceph_zero_page_vector_range() 186 len -= (end - off); ceph_zero_page_vector_range() 96 ceph_copy_user_to_page_vector(struct page **pages, const void __user *data, loff_t off, size_t len) ceph_copy_user_to_page_vector() argument 122 ceph_copy_to_page_vector(struct page **pages, const void *data, loff_t off, size_t len) ceph_copy_to_page_vector() argument 145 ceph_copy_from_page_vector(struct page **pages, void *data, loff_t off, size_t len) ceph_copy_from_page_vector() argument
|
/linux-4.1.27/arch/powerpc/include/asm/ |
H A D | fb.h | 9 unsigned long off) fb_pgprotect() 11 vma->vm_page_prot = phys_mem_access_prot(file, off >> PAGE_SHIFT, fb_pgprotect() 8 fb_pgprotect(struct file *file, struct vm_area_struct *vma, unsigned long off) fb_pgprotect() argument
|
/linux-4.1.27/Documentation/prctl/ |
H A D | Makefile | 2 hostprogs-$(CONFIG_X86) := disable-tsc-ctxt-sw-stress-test disable-tsc-on-off-stress-test disable-tsc-test 7 HOSTCFLAGS_disable-tsc-on-off-stress-test.o += -I$(objtree)/usr/include
|
/linux-4.1.27/drivers/gpio/ |
H A D | gpio-adp5520.c | 25 static int adp5520_gpio_get_value(struct gpio_chip *chip, unsigned off) adp5520_gpio_get_value() argument 37 if (test_bit(off, &dev->output)) adp5520_gpio_get_value() 42 return !!(reg_val & dev->lut[off]); adp5520_gpio_get_value() 46 unsigned off, int val) adp5520_gpio_set_value() 52 adp5520_set_bits(dev->master, ADP5520_GPIO_OUT, dev->lut[off]); adp5520_gpio_set_value() 54 adp5520_clr_bits(dev->master, ADP5520_GPIO_OUT, dev->lut[off]); adp5520_gpio_set_value() 57 static int adp5520_gpio_direction_input(struct gpio_chip *chip, unsigned off) adp5520_gpio_direction_input() argument 62 clear_bit(off, &dev->output); adp5520_gpio_direction_input() 65 dev->lut[off]); adp5520_gpio_direction_input() 69 unsigned off, int val) adp5520_gpio_direction_output() 75 set_bit(off, &dev->output); adp5520_gpio_direction_output() 79 dev->lut[off]); adp5520_gpio_direction_output() 82 dev->lut[off]); adp5520_gpio_direction_output() 85 dev->lut[off]); adp5520_gpio_direction_output() 45 adp5520_gpio_set_value(struct gpio_chip *chip, unsigned off, int val) adp5520_gpio_set_value() argument 68 adp5520_gpio_direction_output(struct gpio_chip *chip, unsigned off, int val) adp5520_gpio_direction_output() argument
|
H A D | gpio-ucb1400.c | 15 static int ucb1400_gpio_dir_in(struct gpio_chip *gc, unsigned off) ucb1400_gpio_dir_in() argument 19 ucb1400_gpio_set_direction(gpio->ac97, off, 0); ucb1400_gpio_dir_in() 23 static int ucb1400_gpio_dir_out(struct gpio_chip *gc, unsigned off, int val) ucb1400_gpio_dir_out() argument 27 ucb1400_gpio_set_direction(gpio->ac97, off, 1); ucb1400_gpio_dir_out() 28 ucb1400_gpio_set_value(gpio->ac97, off, val); ucb1400_gpio_dir_out() 32 static int ucb1400_gpio_get(struct gpio_chip *gc, unsigned off) ucb1400_gpio_get() argument 36 return ucb1400_gpio_get_value(gpio->ac97, off); ucb1400_gpio_get() 39 static void ucb1400_gpio_set(struct gpio_chip *gc, unsigned off, int val) ucb1400_gpio_set() argument 43 ucb1400_gpio_set_value(gpio->ac97, off, val); ucb1400_gpio_set()
|
H A D | gpio-pca953x.c | 107 int off) pca953x_read_single() 111 int offset = off / BANK_SZ; pca953x_read_single() 126 int off) pca953x_write_single() 130 int offset = off / BANK_SZ; pca953x_write_single() 206 static int pca953x_gpio_direction_input(struct gpio_chip *gc, unsigned off) pca953x_gpio_direction_input() argument 213 reg_val = chip->reg_direction[off / BANK_SZ] | (1u << (off % BANK_SZ)); pca953x_gpio_direction_input() 223 ret = pca953x_write_single(chip, offset, reg_val, off); pca953x_gpio_direction_input() 227 chip->reg_direction[off / BANK_SZ] = reg_val; pca953x_gpio_direction_input() 235 unsigned off, int val) pca953x_gpio_direction_output() 244 reg_val = chip->reg_output[off / BANK_SZ] pca953x_gpio_direction_output() 245 | (1u << (off % BANK_SZ)); pca953x_gpio_direction_output() 247 reg_val = chip->reg_output[off / BANK_SZ] pca953x_gpio_direction_output() 248 & ~(1u << (off % BANK_SZ)); pca953x_gpio_direction_output() 258 ret = pca953x_write_single(chip, offset, reg_val, off); pca953x_gpio_direction_output() 262 chip->reg_output[off / BANK_SZ] = reg_val; pca953x_gpio_direction_output() 265 reg_val = chip->reg_direction[off / BANK_SZ] & ~(1u << (off % BANK_SZ)); pca953x_gpio_direction_output() 274 ret = pca953x_write_single(chip, offset, reg_val, off); pca953x_gpio_direction_output() 278 chip->reg_direction[off / BANK_SZ] = reg_val; pca953x_gpio_direction_output() 285 static int pca953x_gpio_get_value(struct gpio_chip *gc, unsigned off) pca953x_gpio_get_value() argument 300 ret = pca953x_read_single(chip, offset, ®_val, off); pca953x_gpio_get_value() 310 return (reg_val & (1u << (off % BANK_SZ))) ? 1 : 0; pca953x_gpio_get_value() 313 static void pca953x_gpio_set_value(struct gpio_chip *gc, unsigned off, int val) pca953x_gpio_set_value() argument 321 reg_val = chip->reg_output[off / BANK_SZ] pca953x_gpio_set_value() 322 | (1u << (off % BANK_SZ)); pca953x_gpio_set_value() 324 reg_val = chip->reg_output[off / BANK_SZ] pca953x_gpio_set_value() 325 & ~(1u << (off % BANK_SZ)); pca953x_gpio_set_value() 335 ret = pca953x_write_single(chip, offset, reg_val, off); pca953x_gpio_set_value() 339 chip->reg_output[off / BANK_SZ] = reg_val; pca953x_gpio_set_value() 106 pca953x_read_single(struct pca953x_chip *chip, int reg, u32 *val, int off) pca953x_read_single() argument 125 pca953x_write_single(struct pca953x_chip *chip, int reg, u32 val, int off) pca953x_write_single() argument 234 pca953x_gpio_direction_output(struct gpio_chip *gc, unsigned off, int val) pca953x_gpio_direction_output() argument
|
H A D | gpio-adp5588.c | 66 static int adp5588_gpio_get_value(struct gpio_chip *chip, unsigned off) adp5588_gpio_get_value() argument 70 unsigned bank = ADP5588_BANK(off); adp5588_gpio_get_value() 71 unsigned bit = ADP5588_BIT(off); adp5588_gpio_get_value() 87 unsigned off, int val) adp5588_gpio_set_value() 93 bank = ADP5588_BANK(off); adp5588_gpio_set_value() 94 bit = ADP5588_BIT(off); adp5588_gpio_set_value() 107 static int adp5588_gpio_direction_input(struct gpio_chip *chip, unsigned off) adp5588_gpio_direction_input() argument 114 bank = ADP5588_BANK(off); adp5588_gpio_direction_input() 117 dev->dir[bank] &= ~ADP5588_BIT(off); adp5588_gpio_direction_input() 125 unsigned off, int val) adp5588_gpio_direction_output() 132 bank = ADP5588_BANK(off); adp5588_gpio_direction_output() 133 bit = ADP5588_BIT(off); adp5588_gpio_direction_output() 153 static int adp5588_gpio_to_irq(struct gpio_chip *chip, unsigned off) adp5588_gpio_to_irq() argument 157 return dev->irq_base + off; adp5588_gpio_to_irq() 86 adp5588_gpio_set_value(struct gpio_chip *chip, unsigned off, int val) adp5588_gpio_set_value() argument 124 adp5588_gpio_direction_output(struct gpio_chip *chip, unsigned off, int val) adp5588_gpio_direction_output() argument
|
H A D | gpio-samsung.c | 44 unsigned int off, samsung_gpio_pull_t pull) samsung_gpio_setpull_updown() 47 int shift = off * 2; samsung_gpio_setpull_updown() 59 unsigned int off) samsung_gpio_getpull_updown() 62 int shift = off * 2; samsung_gpio_getpull_updown() 72 unsigned int off, samsung_gpio_pull_t pull) s3c2443_gpio_setpull() 85 return samsung_gpio_setpull_updown(chip, off, pull); s3c2443_gpio_setpull() 89 unsigned int off) s3c2443_gpio_getpull() 93 pull = samsung_gpio_getpull_updown(chip, off); s3c2443_gpio_getpull() 112 unsigned int off, samsung_gpio_pull_t pull, s3c24xx_gpio_setpull_1() 119 pup &= ~(1 << off); s3c24xx_gpio_setpull_1() 121 pup |= (1 << off); s3c24xx_gpio_setpull_1() 130 unsigned int off, s3c24xx_gpio_getpull_1() 136 pup &= (1 << off); s3c24xx_gpio_getpull_1() 141 unsigned int off) s3c24xx_gpio_getpull_1up() 143 return s3c24xx_gpio_getpull_1(chip, off, S3C_GPIO_PULL_UP); s3c24xx_gpio_getpull_1up() 147 unsigned int off, samsung_gpio_pull_t pull) s3c24xx_gpio_setpull_1up() 149 return s3c24xx_gpio_setpull_1(chip, off, pull, S3C_GPIO_PULL_UP); s3c24xx_gpio_setpull_1up() 153 unsigned int off) s3c24xx_gpio_getpull_1down() 155 return s3c24xx_gpio_getpull_1(chip, off, S3C_GPIO_PULL_DOWN); s3c24xx_gpio_getpull_1down() 159 unsigned int off, samsung_gpio_pull_t pull) s3c24xx_gpio_setpull_1down() 161 return s3c24xx_gpio_setpull_1(chip, off, pull, S3C_GPIO_PULL_DOWN); s3c24xx_gpio_setpull_1down() 167 * @off: The offset for the GPIO being configured. 179 unsigned int off, unsigned int cfg) samsung_gpio_setcfg_2bit() 182 unsigned int shift = off * 2; samsung_gpio_setcfg_2bit() 204 * @off: The offset for the GPIO being configured. 212 unsigned int off) samsung_gpio_getcfg_2bit() 217 con >>= off * 2; samsung_gpio_getcfg_2bit() 227 * @off: The offset for the GPIO being configured. 242 unsigned int off, unsigned int cfg) samsung_gpio_setcfg_4bit() 245 unsigned int shift = (off & 7) * 4; samsung_gpio_setcfg_4bit() 248 if (off < 8 && chip->chip.ngpio > 8) samsung_gpio_setcfg_4bit() 267 * @off: The offset for the GPIO being configured. 277 unsigned int off) samsung_gpio_getcfg_4bit() 280 unsigned int shift = (off & 7) * 4; samsung_gpio_getcfg_4bit() 283 if (off < 8 && chip->chip.ngpio > 8) samsung_gpio_getcfg_4bit() 298 * @off: The offset for the GPIO being configured. 307 unsigned int off, unsigned int cfg) s3c24xx_gpio_setcfg_abank() 310 unsigned int shift = off; s3c24xx_gpio_setcfg_abank() 335 * @off: The offset for the GPIO being configured. 345 unsigned int off) s3c24xx_gpio_getcfg_abank() 350 con >>= off; s3c24xx_gpio_getcfg_abank() local 43 samsung_gpio_setpull_updown(struct samsung_gpio_chip *chip, unsigned int off, samsung_gpio_pull_t pull) samsung_gpio_setpull_updown() argument 58 samsung_gpio_getpull_updown(struct samsung_gpio_chip *chip, unsigned int off) samsung_gpio_getpull_updown() argument 71 s3c2443_gpio_setpull(struct samsung_gpio_chip *chip, unsigned int off, samsung_gpio_pull_t pull) s3c2443_gpio_setpull() argument 88 s3c2443_gpio_getpull(struct samsung_gpio_chip *chip, unsigned int off) s3c2443_gpio_getpull() argument 111 s3c24xx_gpio_setpull_1(struct samsung_gpio_chip *chip, unsigned int off, samsung_gpio_pull_t pull, samsung_gpio_pull_t updown) s3c24xx_gpio_setpull_1() argument 129 s3c24xx_gpio_getpull_1(struct samsung_gpio_chip *chip, unsigned int off, samsung_gpio_pull_t updown) s3c24xx_gpio_getpull_1() argument 140 s3c24xx_gpio_getpull_1up(struct samsung_gpio_chip *chip, unsigned int off) s3c24xx_gpio_getpull_1up() argument 146 s3c24xx_gpio_setpull_1up(struct samsung_gpio_chip *chip, unsigned int off, samsung_gpio_pull_t pull) s3c24xx_gpio_setpull_1up() argument 152 s3c24xx_gpio_getpull_1down(struct samsung_gpio_chip *chip, unsigned int off) s3c24xx_gpio_getpull_1down() argument 158 s3c24xx_gpio_setpull_1down(struct samsung_gpio_chip *chip, unsigned int off, samsung_gpio_pull_t pull) s3c24xx_gpio_setpull_1down() argument 178 samsung_gpio_setcfg_2bit(struct samsung_gpio_chip *chip, unsigned int off, unsigned int cfg) samsung_gpio_setcfg_2bit() argument 211 samsung_gpio_getcfg_2bit(struct samsung_gpio_chip *chip, unsigned int off) samsung_gpio_getcfg_2bit() argument 241 samsung_gpio_setcfg_4bit(struct samsung_gpio_chip *chip, unsigned int off, unsigned int cfg) samsung_gpio_setcfg_4bit() argument 276 samsung_gpio_getcfg_4bit(struct samsung_gpio_chip *chip, unsigned int off) samsung_gpio_getcfg_4bit() argument 306 s3c24xx_gpio_setcfg_abank(struct samsung_gpio_chip *chip, unsigned int off, unsigned int cfg) s3c24xx_gpio_setcfg_abank() argument 344 s3c24xx_gpio_getcfg_abank(struct samsung_gpio_chip *chip, unsigned int off) s3c24xx_gpio_getcfg_abank() argument
|
H A D | gpio-max732x.c | 197 static inline int is_group_a(struct max732x_chip *chip, unsigned off) is_group_a() argument 199 return (1u << off) & chip->mask_group_a; is_group_a() 202 static int max732x_gpio_get_value(struct gpio_chip *gc, unsigned off) max732x_gpio_get_value() argument 208 ret = max732x_readb(chip, is_group_a(chip, off), ®_val); max732x_gpio_get_value() 212 return reg_val & (1u << (off & 0x7)); max732x_gpio_get_value() 215 static void max732x_gpio_set_mask(struct gpio_chip *gc, unsigned off, int mask, max732x_gpio_set_mask() argument 224 reg_out = (off > 7) ? chip->reg_out[1] : chip->reg_out[0]; max732x_gpio_set_mask() 227 ret = max732x_writeb(chip, is_group_a(chip, off), reg_out); max732x_gpio_set_mask() 232 if (off > 7) max732x_gpio_set_mask() 240 static void max732x_gpio_set_value(struct gpio_chip *gc, unsigned off, int val) max732x_gpio_set_value() argument 242 unsigned base = off & ~0x7; max732x_gpio_set_value() 243 uint8_t mask = 1u << (off & 0x7); max732x_gpio_set_value() 245 max732x_gpio_set_mask(gc, base, mask, val << (off & 0x7)); max732x_gpio_set_value() 260 static int max732x_gpio_direction_input(struct gpio_chip *gc, unsigned off) max732x_gpio_direction_input() argument 263 unsigned int mask = 1u << off; max732x_gpio_direction_input() 267 chip->client->name, off); max732x_gpio_direction_input() 276 max732x_gpio_set_value(gc, off, 1); max732x_gpio_direction_input() 282 unsigned off, int val) max732x_gpio_direction_output() 285 unsigned int mask = 1u << off; max732x_gpio_direction_output() 289 chip->client->name, off); max732x_gpio_direction_output() 293 max732x_gpio_set_value(gc, off, val); max732x_gpio_direction_output() 404 uint16_t off = d->hwirq; max732x_irq_set_type() local 405 uint16_t mask = 1 << off; max732x_irq_set_type() 409 chip->client->name, off); max732x_irq_set_type() 281 max732x_gpio_direction_output(struct gpio_chip *gc, unsigned off, int val) max732x_gpio_direction_output() argument
|
/linux-4.1.27/drivers/vfio/pci/ |
H A D | vfio_pci_rdwr.c | 31 loff_t off, size_t count, size_t x_start, do_io_rw() 39 if (off < x_start) do_io_rw() 40 fillable = min(count, (size_t)(x_start - off)); do_io_rw() 41 else if (off >= x_end) do_io_rw() 46 if (fillable >= 4 && !(off % 4)) { do_io_rw() 53 iowrite32(le32_to_cpu(val), io + off); do_io_rw() 55 val = cpu_to_le32(ioread32(io + off)); do_io_rw() 62 } else if (fillable >= 2 && !(off % 2)) { do_io_rw() 69 iowrite16(le16_to_cpu(val), io + off); do_io_rw() 71 val = cpu_to_le16(ioread16(io + off)); do_io_rw() 85 iowrite8(val, io + off); do_io_rw() 87 val = ioread8(io + off); do_io_rw() 96 filled = min(count, (size_t)(x_end - off)); do_io_rw() 109 off += filled; do_io_rw() 184 loff_t off, pos = *ppos & VFIO_PCI_OFFSET_MASK; vfio_pci_vga_rw() local 197 off = pos - 0xa0000; vfio_pci_vga_rw() 204 off = pos - 0x3b0; vfio_pci_vga_rw() 211 off = pos - 0x3c0; vfio_pci_vga_rw() 228 done = do_io_rw(iomem, buf, off, count, 0, 0, iswrite); vfio_pci_vga_rw() 30 do_io_rw(void __iomem *io, char __user *buf, loff_t off, size_t count, size_t x_start, size_t x_end, bool iswrite) do_io_rw() argument
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/ |
H A D | fbmem.h | 62 fbmem_peek(struct io_mapping *fb, u32 off) fbmem_peek() argument 64 u8 __iomem *p = io_mapping_map_atomic_wc(fb, off & PAGE_MASK); fbmem_peek() 65 u32 val = ioread32(p + (off & ~PAGE_MASK)); fbmem_peek() 71 fbmem_poke(struct io_mapping *fb, u32 off, u32 val) fbmem_poke() argument 73 u8 __iomem *p = io_mapping_map_atomic_wc(fb, off & PAGE_MASK); fbmem_poke() 74 iowrite32(val, p + (off & ~PAGE_MASK)); fbmem_poke() 80 fbmem_readback(struct io_mapping *fb, u32 off, u32 val) fbmem_readback() argument 82 fbmem_poke(fb, off, val); fbmem_readback() 83 return val == fbmem_peek(fb, off); fbmem_readback()
|
H A D | nv20.c | 38 uint32_t amount, off; nv20_devinit_meminit() local 54 for (off = amount; off > 0x2000000; off -= 0x2000000) nv20_devinit_meminit() 55 fbmem_poke(fb, off - 4, off); nv20_devinit_meminit()
|
/linux-4.1.27/include/soc/tegra/ |
H A D | pm.h | 14 TEGRA_SUSPEND_LP2, /* CPU voltage off */ 15 TEGRA_SUSPEND_LP1, /* CPU voltage off, DRAM self-refresh */ 16 TEGRA_SUSPEND_LP0, /* CPU + core voltage off, DRAM self-refresh */
|
/linux-4.1.27/fs/hfs/ |
H A D | bnode.c | 18 int off, int len) hfs_bnode_read() 22 off += node->page_offset; hfs_bnode_read() 25 memcpy(buf, kmap(page) + off, len); hfs_bnode_read() 29 u16 hfs_bnode_read_u16(struct hfs_bnode *node, int off) hfs_bnode_read_u16() argument 33 hfs_bnode_read(node, &data, off, 2); hfs_bnode_read_u16() 37 u8 hfs_bnode_read_u8(struct hfs_bnode *node, int off) hfs_bnode_read_u8() argument 41 hfs_bnode_read(node, &data, off, 1); hfs_bnode_read_u8() 45 void hfs_bnode_read_key(struct hfs_bnode *node, void *key, int off) hfs_bnode_read_key() argument 53 key_len = hfs_bnode_read_u8(node, off) + 1; hfs_bnode_read_key() 57 hfs_bnode_read(node, key, off, key_len); hfs_bnode_read_key() 60 void hfs_bnode_write(struct hfs_bnode *node, void *buf, int off, int len) hfs_bnode_write() argument 64 off += node->page_offset; hfs_bnode_write() 67 memcpy(kmap(page) + off, buf, len); hfs_bnode_write() 72 void hfs_bnode_write_u16(struct hfs_bnode *node, int off, u16 data) hfs_bnode_write_u16() argument 76 hfs_bnode_write(node, &v, off, 2); hfs_bnode_write_u16() 79 void hfs_bnode_write_u8(struct hfs_bnode *node, int off, u8 data) hfs_bnode_write_u8() argument 82 hfs_bnode_write(node, &data, off, 1); hfs_bnode_write_u8() 85 void hfs_bnode_clear(struct hfs_bnode *node, int off, int len) hfs_bnode_clear() argument 89 off += node->page_offset; hfs_bnode_clear() 92 memset(kmap(page) + off, 0, len); hfs_bnode_clear() 139 int i, off, key_off; hfs_bnode_dump() local 147 off = node->tree->node_size - 2; hfs_bnode_dump() 148 for (i = be16_to_cpu(desc.num_recs); i >= 0; off -= 2, i--) { hfs_bnode_dump() 149 key_off = hfs_bnode_read_u16(node, off); hfs_bnode_dump() 244 loff_t off; __hfs_bnode_create() local 280 off = (loff_t)cnid * tree->node_size; __hfs_bnode_create() 281 block = off >> PAGE_CACHE_SHIFT; __hfs_bnode_create() 282 node->page_offset = off & ~PAGE_CACHE_MASK; __hfs_bnode_create() 319 int i, rec_off, off, next_off; hfs_bnode_find() local 368 off = hfs_bnode_read_u16(node, rec_off); hfs_bnode_find() 369 if (off != sizeof(struct hfs_bnode_desc)) hfs_bnode_find() 371 for (i = 1; i <= node->num_recs; off = next_off, i++) { hfs_bnode_find() 374 if (next_off <= off || hfs_bnode_find() 378 entry_size = next_off - off; hfs_bnode_find() 382 key_size = hfs_bnode_read_u8(node, off) + 1; hfs_bnode_find() 17 hfs_bnode_read(struct hfs_bnode *node, void *buf, int off, int len) hfs_bnode_read() argument
|
H A D | btree.c | 227 unsigned off; hfs_bmap_alloc() local 257 off = off16; hfs_bmap_alloc() 259 off += node->page_offset; hfs_bmap_alloc() 260 pagep = node->page + (off >> PAGE_CACHE_SHIFT); hfs_bmap_alloc() 262 off &= ~PAGE_CACHE_MASK; hfs_bmap_alloc() 267 byte = data[off]; hfs_bmap_alloc() 272 data[off] |= m; hfs_bmap_alloc() 282 if (++off >= PAGE_CACHE_SIZE) { hfs_bmap_alloc() 285 off = 0; hfs_bmap_alloc() 303 off = off16; hfs_bmap_alloc() 304 off += node->page_offset; hfs_bmap_alloc() 305 pagep = node->page + (off >> PAGE_CACHE_SHIFT); hfs_bmap_alloc() 307 off &= ~PAGE_CACHE_MASK; hfs_bmap_alloc() 315 u16 off, len; hfs_bmap_free() local 325 len = hfs_brec_lenoff(node, 2, &off); hfs_bmap_free() 348 len = hfs_brec_lenoff(node, 0, &off); hfs_bmap_free() 350 off += node->page_offset + nidx / 8; hfs_bmap_free() 351 page = node->page[off >> PAGE_CACHE_SHIFT]; hfs_bmap_free() 353 off &= ~PAGE_CACHE_MASK; hfs_bmap_free() 355 byte = data[off]; hfs_bmap_free() 363 data[off] = byte & ~m; hfs_bmap_free()
|
H A D | bfind.c | 45 u16 off, len, keylen; __hfs_brec_find() local 55 len = hfs_brec_lenoff(bnode, rec, &off); __hfs_brec_find() 61 hfs_bnode_read(bnode, fd->key, off, keylen); __hfs_brec_find() 74 len = hfs_brec_lenoff(bnode, e, &off); __hfs_brec_find() 80 hfs_bnode_read(bnode, fd->key, off, keylen); __hfs_brec_find() 84 fd->keyoffset = off; __hfs_brec_find() 86 fd->entryoffset = off + keylen; __hfs_brec_find() 166 u16 off, len, keylen; hfs_brec_goto() local 210 len = hfs_brec_lenoff(bnode, fd->record, &off); hfs_brec_goto() 216 fd->keyoffset = off; hfs_brec_goto() 218 fd->entryoffset = off + keylen; hfs_brec_goto() 220 hfs_bnode_read(bnode, fd->key, off, keylen); hfs_brec_goto()
|
/linux-4.1.27/drivers/net/wireless/b43/ |
H A D | ppr.c | 83 u8 maxpwr, off; b43_ppr_load_max_from_sprom() local 129 off = ((sprom->cck2gpo >> (i * 4)) & 0xf) * 2; b43_ppr_load_max_from_sprom() 130 rates->cck[i] = maxpwr - off; b43_ppr_load_max_from_sprom() 136 off = ((sprom_ofdm_po >> (i * 4)) & 0xf) * 2; b43_ppr_load_max_from_sprom() 137 rates->ofdm[i] = maxpwr - off; b43_ppr_load_max_from_sprom() 152 off = ((sprom_mcs_po[0] >> (i * 4)) & 0xf) * 2; b43_ppr_load_max_from_sprom() 153 rates->mcs_20_cdd[i] = maxpwr - off; b43_ppr_load_max_from_sprom() 158 off = ((sprom_mcs_po[1] >> (i * 4)) & 0xf) * 2; b43_ppr_load_max_from_sprom() 159 rates->mcs_20_cdd[4 + i] = maxpwr - off; b43_ppr_load_max_from_sprom() 176 off = ((sprom_mcs_po[0] >> (i * 4)) & 0xf) * 2; b43_ppr_load_max_from_sprom() 177 rates->mcs_20_stbc[i] = maxpwr - off; b43_ppr_load_max_from_sprom() 182 off = ((sprom_mcs_po[1] >> (i * 4)) & 0xf) * 2; b43_ppr_load_max_from_sprom() 183 rates->mcs_20_stbc[4 + i] = maxpwr - off; b43_ppr_load_max_from_sprom() 190 off = ((sprom_mcs_po[2] >> (i * 4)) & 0xf) * 2; b43_ppr_load_max_from_sprom() 191 rates->mcs_20_sdm[i] = maxpwr - off; b43_ppr_load_max_from_sprom() 194 off = ((sprom_mcs_po[3] >> (i * 4)) & 0xf) * 2; b43_ppr_load_max_from_sprom() 195 rates->mcs_20_sdm[4 + i] = maxpwr - off; b43_ppr_load_max_from_sprom()
|
/linux-4.1.27/arch/mips/include/asm/ |
H A D | mips-cpc.h | 75 #define BUILD_CPC_R_(name, off) \ 78 return (u32 *)(mips_cpc_base + (off)); \ 83 return __raw_readl(mips_cpc_base + (off)); \ 86 #define BUILD_CPC__W(name, off) \ 89 __raw_writel(value, mips_cpc_base + (off)); \ 92 #define BUILD_CPC_RW(name, off) \ 93 BUILD_CPC_R_(name, off) \ 94 BUILD_CPC__W(name, off) 96 #define BUILD_CPC_Cx_R_(name, off) \ 97 BUILD_CPC_R_(cl_##name, MIPS_CPC_CLCB_OFS + (off)) \ 98 BUILD_CPC_R_(co_##name, MIPS_CPC_COCB_OFS + (off)) 100 #define BUILD_CPC_Cx__W(name, off) \ 101 BUILD_CPC__W(cl_##name, MIPS_CPC_CLCB_OFS + (off)) \ 102 BUILD_CPC__W(co_##name, MIPS_CPC_COCB_OFS + (off)) 104 #define BUILD_CPC_Cx_RW(name, off) \ 105 BUILD_CPC_Cx_R_(name, off) \ 106 BUILD_CPC_Cx__W(name, off)
|
H A D | uasm.h | 202 # define UASM_i_LL(buf, rs, rt, off) uasm_i_lld(buf, rs, rt, off) 203 # define UASM_i_LW(buf, rs, rt, off) uasm_i_ld(buf, rs, rt, off) 208 # define UASM_i_SC(buf, rs, rt, off) uasm_i_scd(buf, rs, rt, off) 214 # define UASM_i_SW(buf, rs, rt, off) uasm_i_sd(buf, rs, rt, off) 218 # define UASM_i_LL(buf, rs, rt, off) uasm_i_ll(buf, rs, rt, off) 219 # define UASM_i_LW(buf, rs, rt, off) uasm_i_lw(buf, rs, rt, off) 224 # define UASM_i_SC(buf, rs, rt, off) uasm_i_sc(buf, rs, rt, off) 230 # define UASM_i_SW(buf, rs, rt, off) uasm_i_sw(buf, rs, rt, off) 233 #define uasm_i_b(buf, off) uasm_i_beq(buf, 0, 0, off) 234 #define uasm_i_beqz(buf, rs, off) uasm_i_beq(buf, rs, 0, off) 235 #define uasm_i_beqzl(buf, rs, off) uasm_i_beql(buf, rs, 0, off) 236 #define uasm_i_bnez(buf, rs, off) uasm_i_bne(buf, rs, 0, off) 237 #define uasm_i_bnezl(buf, rs, off) uasm_i_bnel(buf, rs, 0, off) 282 void uasm_move_relocs(struct uasm_reloc *rel, u32 *first, u32 *end, long off); 283 void uasm_move_labels(struct uasm_label *lab, u32 *first, u32 *end, long off);
|
H A D | fb.h | 9 unsigned long off) fb_pgprotect() 8 fb_pgprotect(struct file *file, struct vm_area_struct *vma, unsigned long off) fb_pgprotect() argument
|
H A D | mips-cm.h | 91 #define BUILD_CM_R_(name, off) \ 94 return (u32 __iomem *)(mips_cm_base + (off)); \ 102 #define BUILD_CM__W(name, off) \ 108 #define BUILD_CM_RW(name, off) \ 109 BUILD_CM_R_(name, off) \ 110 BUILD_CM__W(name, off) 112 #define BUILD_CM_Cx_R_(name, off) \ 113 BUILD_CM_R_(cl_##name, MIPS_CM_CLCB_OFS + (off)) \ 114 BUILD_CM_R_(co_##name, MIPS_CM_COCB_OFS + (off)) 116 #define BUILD_CM_Cx__W(name, off) \ 117 BUILD_CM__W(cl_##name, MIPS_CM_CLCB_OFS + (off)) \ 118 BUILD_CM__W(co_##name, MIPS_CM_COCB_OFS + (off)) 120 #define BUILD_CM_Cx_RW(name, off) \ 121 BUILD_CM_Cx_R_(name, off) \ 122 BUILD_CM_Cx__W(name, off)
|
/linux-4.1.27/drivers/w1/slaves/ |
H A D | w1_ds2408.c | 76 struct bin_attribute *bin_attr, char *buf, loff_t off, state_read() 80 "Reading %s kobj: %p, off: %0#10x, count: %zu, buff addr: %p", state_read() 81 bin_attr->attr.name, kobj, (unsigned int)off, count, buf); state_read() 82 if (count != 1 || off != 0) state_read() 89 loff_t off, size_t count) output_read() 92 "Reading %s kobj: %p, off: %0#10x, count: %zu, buff addr: %p", output_read() 93 bin_attr->attr.name, kobj, (unsigned int)off, count, buf); output_read() 94 if (count != 1 || off != 0) output_read() 102 loff_t off, size_t count) activity_read() 105 "Reading %s kobj: %p, off: %0#10x, count: %zu, buff addr: %p", activity_read() 106 bin_attr->attr.name, kobj, (unsigned int)off, count, buf); activity_read() 107 if (count != 1 || off != 0) activity_read() 115 loff_t off, size_t count) cond_search_mask_read() 118 "Reading %s kobj: %p, off: %0#10x, count: %zu, buff addr: %p", cond_search_mask_read() 119 bin_attr->attr.name, kobj, (unsigned int)off, count, buf); cond_search_mask_read() 120 if (count != 1 || off != 0) cond_search_mask_read() 129 char *buf, loff_t off, size_t count) cond_search_polarity_read() 131 if (count != 1 || off != 0) cond_search_polarity_read() 139 loff_t off, size_t count) status_control_read() 141 if (count != 1 || off != 0) status_control_read() 149 loff_t off, size_t count) output_write() 156 if (count != 1 || off != 0) output_write() 220 loff_t off, size_t count) activity_write() 225 if (count != 1 || off != 0) activity_write() 250 loff_t off, size_t count) status_control_write() 256 if (count != 1 || off != 0) status_control_write() 75 state_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) state_read() argument 87 output_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) output_read() argument 100 activity_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) activity_read() argument 113 cond_search_mask_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) cond_search_mask_read() argument 126 cond_search_polarity_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) cond_search_polarity_read() argument 137 status_control_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) status_control_read() argument 147 output_write(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) output_write() argument 218 activity_write(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) activity_write() argument 248 status_control_write(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) status_control_write() argument
|
H A D | w1_ds2433.c | 56 static inline size_t w1_f23_fix_count(loff_t off, size_t count, size_t size) w1_f23_fix_count() argument 58 if (off > size) w1_f23_fix_count() 61 if ((off + count) > size) w1_f23_fix_count() 62 return (size - off); w1_f23_fix_count() 72 int off = block * W1_PAGE_SIZE; w1_f23_refresh_block() local 83 wrbuf[1] = off & 0xff; w1_f23_refresh_block() 84 wrbuf[2] = off >> 8; w1_f23_refresh_block() 86 w1_read_block(sl->master, &data->memory[off], W1_PAGE_SIZE); w1_f23_refresh_block() 89 if (crc16(CRC16_INIT, &data->memory[off], W1_PAGE_SIZE) == CRC16_VALID) w1_f23_refresh_block() 98 loff_t off, size_t count) eeprom_read() 108 if ((count = w1_f23_fix_count(off, count, W1_EEPROM_SIZE)) == 0) eeprom_read() 115 min_page = (off >> W1_PAGE_BITS); eeprom_read() 116 max_page = (off + count - 1) >> W1_PAGE_BITS; eeprom_read() 123 memcpy(buf, &data->memory[off], count); eeprom_read() 134 wrbuf[1] = off & 0xff; eeprom_read() 135 wrbuf[2] = off >> 8; eeprom_read() 212 loff_t off, size_t count) eeprom_write() 217 if ((count = w1_f23_fix_count(off, count, W1_EEPROM_SIZE)) == 0) eeprom_write() 222 if ((off & W1_PAGE_MASK) || (count & W1_PAGE_MASK)) { eeprom_write() 223 dev_err(&sl->dev, "invalid offset/count off=%d cnt=%zd\n", eeprom_write() 224 (int)off, count); eeprom_write() 231 dev_err(&sl->dev, "bad CRC at offset %d\n", (int)off); eeprom_write() 242 addr = off + idx; eeprom_write() 96 eeprom_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) eeprom_read() argument 210 eeprom_write(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) eeprom_write() argument
|
H A D | w1_ds28e04.c | 67 static inline size_t w1_f1C_fix_count(loff_t off, size_t count, size_t size) w1_f1C_fix_count() argument 69 if (off > size) w1_f1C_fix_count() 72 if ((off + count) > size) w1_f1C_fix_count() 73 return size - off; w1_f1C_fix_count() 82 int off = block * W1_PAGE_SIZE; w1_f1C_refresh_block() local 93 wrbuf[1] = off & 0xff; w1_f1C_refresh_block() 94 wrbuf[2] = off >> 8; w1_f1C_refresh_block() 96 w1_read_block(sl->master, &data->memory[off], W1_PAGE_SIZE); w1_f1C_refresh_block() 99 if (crc16(CRC16_INIT, &data->memory[off], W1_PAGE_SIZE) == CRC16_VALID) w1_f1C_refresh_block() 123 loff_t off, size_t count) eeprom_read() 129 count = w1_f1C_fix_count(off, count, W1_EEPROM_SIZE); eeprom_read() 136 min_page = (off >> W1_PAGE_BITS); eeprom_read() 137 max_page = (off + count - 1) >> W1_PAGE_BITS; eeprom_read() 144 memcpy(buf, &data->memory[off], count); eeprom_read() 146 count = w1_f1C_read(sl, off, count, buf); eeprom_read() 231 loff_t off, size_t count) eeprom_write() 237 count = w1_f1C_fix_count(off, count, W1_EEPROM_SIZE); eeprom_write() 243 if ((off & W1_PAGE_MASK) || (count & W1_PAGE_MASK)) { eeprom_write() 244 dev_err(&sl->dev, "invalid offset/count off=%d cnt=%zd\n", eeprom_write() 245 (int)off, count); eeprom_write() 254 (int)off); eeprom_write() 265 addr = off + idx; eeprom_write() 286 struct bin_attribute *bin_attr, char *buf, loff_t off, pio_read() 294 if (off != 0 || count != 1 || buf == NULL) pio_read() 305 struct bin_attribute *bin_attr, char *buf, loff_t off, pio_write() 314 if (off != 0 || count != 1 || buf == NULL) pio_write() 121 eeprom_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) eeprom_read() argument 229 eeprom_write(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) eeprom_write() argument 285 pio_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) pio_read() argument 304 pio_write(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) pio_write() argument
|
H A D | w1_ds2431.c | 48 static inline size_t w1_f2d_fix_count(loff_t off, size_t count, size_t size) w1_f2d_fix_count() argument 50 if (off > size) w1_f2d_fix_count() 53 if ((off + count) > size) w1_f2d_fix_count() 54 return size - off; w1_f2d_fix_count() 66 static int w1_f2d_readblock(struct w1_slave *sl, int off, int count, char *buf) w1_f2d_readblock() argument 74 wrbuf[1] = off & 0xff; w1_f2d_readblock() 75 wrbuf[2] = off >> 8; w1_f2d_readblock() 101 loff_t off, size_t count) eeprom_read() 106 count = w1_f2d_fix_count(off, count, W1_F2D_EEPROM_SIZE); eeprom_read() 121 if (w1_f2d_readblock(sl, off, block_read, buf) < 0) eeprom_read() 126 off += W1_F2D_READ_MAXLEN; eeprom_read() 207 loff_t off, size_t count) eeprom_write() 213 count = w1_f2d_fix_count(off, count, W1_F2D_EEPROM_SIZE); eeprom_write() 220 addr = off; eeprom_write() 99 eeprom_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) eeprom_read() argument 205 eeprom_write(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) eeprom_write() argument
|
H A D | w1_ds2413.c | 34 struct bin_attribute *bin_attr, char *buf, loff_t off, state_read() 39 "Reading %s kobj: %p, off: %0#10x, count: %zu, buff addr: %p", state_read() 40 bin_attr->attr.name, kobj, (unsigned int)off, count, buf); state_read() 42 if (off != 0) state_read() 72 loff_t off, size_t count) output_write() 78 if (count != 1 || off != 0) output_write() 33 state_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) state_read() argument 70 output_write(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) output_write() argument
|
H A D | w1_ds2406.c | 34 char *buf, loff_t off, size_t count) w1_f12_read_state() 42 if (off != 0) w1_f12_read_state() 71 char *buf, loff_t off, size_t count) w1_f12_write_output() 79 if (count != 1 || off != 0) w1_f12_write_output() 31 w1_f12_read_state( struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) w1_f12_read_state() argument 68 w1_f12_write_output( struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) w1_f12_write_output() argument
|
/linux-4.1.27/arch/parisc/include/asm/ |
H A D | fb.h | 9 unsigned long off) fb_pgprotect() 8 fb_pgprotect(struct file *file, struct vm_area_struct *vma, unsigned long off) fb_pgprotect() argument
|
/linux-4.1.27/arch/alpha/include/asm/ |
H A D | fb.h | 5 /* Caching is off in the I/O space quadrant by design. */
|
H A D | gct.h | 51 #define GCT_NODE_PTR(off) ((gct6_node *)((char *)hwrpb + \ 53 (gct6_handle)(off))) \
|
/linux-4.1.27/samples/bpf/ |
H A D | libbpf.h | 28 .off = 0, \ 36 .off = 0, \ 46 .off = 0, \ 54 .off = 0, \ 64 .off = 0, \ 74 .off = 0, \ 86 .off = 0, \ 92 .off = 0, \ 111 .off = 0, \ 121 .off = OFF, \ 131 .off = OFF, \ 141 .off = OFF, \ 151 .off = OFF, \ 161 .off = OFF, \ 171 .off = OFF, \ 181 .off = 0, \
|
H A D | bpf_helpers.h | 30 unsigned long long off) asm("llvm.bpf.load.byte"); 32 unsigned long long off) asm("llvm.bpf.load.half"); 34 unsigned long long off) asm("llvm.bpf.load.word"); 46 static int (*bpf_skb_store_bytes)(void *ctx, int off, void *from, int len, int flags) = 48 static int (*bpf_l3_csum_replace)(void *ctx, int off, int from, int to, int flags) = 50 static int (*bpf_l4_csum_replace)(void *ctx, int off, int from, int to, int flags) =
|
/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/ |
H A D | debug.c | 60 int block_debug_setup(void *addr, int len, __u64 off, __u64 id) block_debug_setup() argument 64 put_unaligned_le64(off, addr); block_debug_setup() 67 put_unaligned_le64(off, addr); block_debug_setup() 74 int block_debug_check(char *who, void *addr, int end, __u64 off, __u64 id) block_debug_check() argument 81 ne_off = le64_to_cpu (off); block_debug_check() 84 CDEBUG(D_ERROR, "%s: id %#llx offset %llu off: %#llx != %#llx\n", block_debug_check() 85 who, id, off, *(__u64 *)addr, ne_off); block_debug_check() 90 who, id, off, *(__u64 *)(addr + LPDS), id); block_debug_check() 96 CDEBUG(D_ERROR, "%s: id %#llx offset %llu end off: %#llx != %#llx\n", block_debug_check() 97 who, id, off, *(__u64 *)addr, ne_off); block_debug_check() 102 who, id, off, *(__u64 *)(addr + LPDS), id); block_debug_check()
|
/linux-4.1.27/arch/mips/pistachio/ |
H A D | irq.c | 21 pr_info("EIC is %s\n", cpu_has_veic ? "on" : "off"); arch_init_irq() 22 pr_info("VINT is %s\n", cpu_has_vint ? "on" : "off"); arch_init_irq()
|
/linux-4.1.27/arch/m68k/include/asm/ |
H A D | blinken.h | 22 static __inline__ void blinken_leds(int on, int off) blinken_leds() argument 27 hp300_ledstate &= ~off; blinken_leds()
|
H A D | fb.h | 12 unsigned long off) fb_pgprotect() 18 unsigned long off) fb_pgprotect() 11 fb_pgprotect(struct file *file, struct vm_area_struct *vma, unsigned long off) fb_pgprotect() argument 17 fb_pgprotect(struct file *file, struct vm_area_struct *vma, unsigned long off) fb_pgprotect() argument
|
H A D | pgtable_no.h | 36 #define __swp_entry(typ,off) ((swp_entry_t) { ((typ) | ((off) << 7)) })
|
/linux-4.1.27/arch/arm/plat-samsung/include/plat/ |
H A D | gpio-cfg-helpers.h | 28 unsigned int off, unsigned int config) samsung_gpio_do_setcfg() 30 return (chip->config->set_config)(chip, off, config); samsung_gpio_do_setcfg() 34 unsigned int off) samsung_gpio_do_getcfg() 36 return (chip->config->get_config)(chip, off); samsung_gpio_do_getcfg() 40 unsigned int off, samsung_gpio_pull_t pull) samsung_gpio_do_setpull() 42 return (chip->config->set_pull)(chip, off, pull); samsung_gpio_do_setpull() 46 unsigned int off) samsung_gpio_do_getpull() 48 return chip->config->get_pull(chip, off); samsung_gpio_do_getpull() 62 * @off: The offset for the GPIO being configured. 69 unsigned int off, samsung_gpio_pull_t pull); 74 * @off: The offset for the GPIO being configured 81 unsigned int off, samsung_gpio_pull_t pull); 88 * @off: The offset for the GPIO being configured. 99 unsigned int off, samsung_gpio_pull_t pull); 106 * @off: The offset to the pin to get the configuration of. 112 unsigned int off); 117 * @off: The offset to the pin to get the configuration of. 123 unsigned int off); 128 * @off: The offset to the pin to get the configuration of. 134 unsigned int off); 139 * @off: The offset for the GPIO being configured. 150 unsigned int off, samsung_gpio_pull_t pull); 155 * @off: The offset to the pin to get the configuration of. 161 unsigned int off); 27 samsung_gpio_do_setcfg(struct samsung_gpio_chip *chip, unsigned int off, unsigned int config) samsung_gpio_do_setcfg() argument 33 samsung_gpio_do_getcfg(struct samsung_gpio_chip *chip, unsigned int off) samsung_gpio_do_getcfg() argument 39 samsung_gpio_do_setpull(struct samsung_gpio_chip *chip, unsigned int off, samsung_gpio_pull_t pull) samsung_gpio_do_setpull() argument 45 samsung_gpio_do_getpull(struct samsung_gpio_chip *chip, unsigned int off) samsung_gpio_do_getpull() argument
|
/linux-4.1.27/fs/hfsplus/ |
H A D | bnode.c | 21 void hfs_bnode_read(struct hfs_bnode *node, void *buf, int off, int len) hfs_bnode_read() argument 26 off += node->page_offset; hfs_bnode_read() 27 pagep = node->page + (off >> PAGE_CACHE_SHIFT); hfs_bnode_read() 28 off &= ~PAGE_CACHE_MASK; hfs_bnode_read() 30 l = min_t(int, len, PAGE_CACHE_SIZE - off); hfs_bnode_read() 31 memcpy(buf, kmap(*pagep) + off, l); hfs_bnode_read() 42 u16 hfs_bnode_read_u16(struct hfs_bnode *node, int off) hfs_bnode_read_u16() argument 46 hfs_bnode_read(node, &data, off, 2); hfs_bnode_read_u16() 50 u8 hfs_bnode_read_u8(struct hfs_bnode *node, int off) hfs_bnode_read_u8() argument 54 hfs_bnode_read(node, &data, off, 1); hfs_bnode_read_u8() 58 void hfs_bnode_read_key(struct hfs_bnode *node, void *key, int off) hfs_bnode_read_key() argument 67 key_len = hfs_bnode_read_u16(node, off) + 2; hfs_bnode_read_key() 71 hfs_bnode_read(node, key, off, key_len); hfs_bnode_read_key() 74 void hfs_bnode_write(struct hfs_bnode *node, void *buf, int off, int len) hfs_bnode_write() argument 79 off += node->page_offset; hfs_bnode_write() 80 pagep = node->page + (off >> PAGE_CACHE_SHIFT); hfs_bnode_write() 81 off &= ~PAGE_CACHE_MASK; hfs_bnode_write() 83 l = min_t(int, len, PAGE_CACHE_SIZE - off); hfs_bnode_write() 84 memcpy(kmap(*pagep) + off, buf, l); hfs_bnode_write() 97 void hfs_bnode_write_u16(struct hfs_bnode *node, int off, u16 data) hfs_bnode_write_u16() argument 101 hfs_bnode_write(node, &v, off, 2); hfs_bnode_write_u16() 104 void hfs_bnode_clear(struct hfs_bnode *node, int off, int len) hfs_bnode_clear() argument 109 off += node->page_offset; hfs_bnode_clear() 110 pagep = node->page + (off >> PAGE_CACHE_SHIFT); hfs_bnode_clear() 111 off &= ~PAGE_CACHE_MASK; hfs_bnode_clear() 113 l = min_t(int, len, PAGE_CACHE_SIZE - off); hfs_bnode_clear() 114 memset(kmap(*pagep) + off, 0, l); hfs_bnode_clear() 303 int i, off, key_off; hfs_bnode_dump() local 311 off = node->tree->node_size - 2; hfs_bnode_dump() 312 for (i = be16_to_cpu(desc.num_recs); i >= 0; off -= 2, i--) { hfs_bnode_dump() 313 key_off = hfs_bnode_read_u16(node, off); hfs_bnode_dump() 408 loff_t off; __hfs_bnode_create() local 446 off = (loff_t)cnid << tree->node_size_shift; __hfs_bnode_create() 447 block = off >> PAGE_CACHE_SHIFT; __hfs_bnode_create() 448 node->page_offset = off & ~PAGE_CACHE_MASK; __hfs_bnode_create() 485 int i, rec_off, off, next_off; hfs_bnode_find() local 536 off = hfs_bnode_read_u16(node, rec_off); hfs_bnode_find() 537 if (off != sizeof(struct hfs_bnode_desc)) hfs_bnode_find() 539 for (i = 1; i <= node->num_recs; off = next_off, i++) { hfs_bnode_find() 542 if (next_off <= off || hfs_bnode_find() 546 entry_size = next_off - off; hfs_bnode_find() 550 key_size = hfs_bnode_read_u16(node, off) + 2; hfs_bnode_find()
|
H A D | btree.c | 349 unsigned off; hfs_bmap_alloc() local 380 off = off16; hfs_bmap_alloc() 382 off += node->page_offset; hfs_bmap_alloc() 383 pagep = node->page + (off >> PAGE_CACHE_SHIFT); hfs_bmap_alloc() 385 off &= ~PAGE_CACHE_MASK; hfs_bmap_alloc() 390 byte = data[off]; hfs_bmap_alloc() 395 data[off] |= m; hfs_bmap_alloc() 406 if (++off >= PAGE_CACHE_SIZE) { hfs_bmap_alloc() 409 off = 0; hfs_bmap_alloc() 427 off = off16; hfs_bmap_alloc() 428 off += node->page_offset; hfs_bmap_alloc() 429 pagep = node->page + (off >> PAGE_CACHE_SHIFT); hfs_bmap_alloc() 431 off &= ~PAGE_CACHE_MASK; hfs_bmap_alloc() 439 u16 off, len; hfs_bmap_free() local 450 len = hfs_brec_lenoff(node, 2, &off); hfs_bmap_free() 475 len = hfs_brec_lenoff(node, 0, &off); hfs_bmap_free() 477 off += node->page_offset + nidx / 8; hfs_bmap_free() 478 page = node->page[off >> PAGE_CACHE_SHIFT]; hfs_bmap_free() 480 off &= ~PAGE_CACHE_MASK; hfs_bmap_free() 482 byte = data[off]; hfs_bmap_free() 491 data[off] = byte & ~m; hfs_bmap_free()
|
H A D | bfind.c | 116 u16 off, len, keylen; __hfs_brec_find() local 127 len = hfs_brec_lenoff(bnode, rec, &off); __hfs_brec_find() 133 hfs_bnode_read(bnode, fd->key, off, keylen); __hfs_brec_find() 141 len = hfs_brec_lenoff(bnode, e, &off); __hfs_brec_find() 147 hfs_bnode_read(bnode, fd->key, off, keylen); __hfs_brec_find() 152 fd->keyoffset = off; __hfs_brec_find() 154 fd->entryoffset = off + keylen; __hfs_brec_find() 235 u16 off, len, keylen; hfs_brec_goto() local 279 len = hfs_brec_lenoff(bnode, fd->record, &off); hfs_brec_goto() 285 fd->keyoffset = off; hfs_brec_goto() 287 fd->entryoffset = off + keylen; hfs_brec_goto() 289 hfs_bnode_read(bnode, fd->key, off, keylen); hfs_brec_goto()
|
H A D | unicode.c | 277 int off; decompose_unichar() local 279 off = hfsplus_decompose_table[(uc >> 12) & 0xf]; decompose_unichar() 280 if (off == 0 || off == 0xffff) decompose_unichar() 283 off = hfsplus_decompose_table[off + ((uc >> 8) & 0xf)]; decompose_unichar() 284 if (!off) decompose_unichar() 287 off = hfsplus_decompose_table[off + ((uc >> 4) & 0xf)]; decompose_unichar() 288 if (!off) decompose_unichar() 291 off = hfsplus_decompose_table[off + (uc & 0xf)]; decompose_unichar() 292 *size = off & 3; decompose_unichar() 295 return hfsplus_decompose_table + (off / 4); decompose_unichar()
|
/linux-4.1.27/arch/unicore32/mm/ |
H A D | proc-macros.S | 88 * va2pa va, pa, tbl, msk, off, err 93 * tbl, msk, off: temp registers, will be destroyed 97 .macro va2pa, va, pa, tbl, msk, off, err=990f 99 mov \off, \va >> #22 @ off <- index of 1st page table 103 ldw \pa, [\pa+], \off << #2 @ pa <- the content of pt 106 and \off, \pa, #3 @ off <- the last 2 bits 107 add \tbl, \tbl, \off << #3 @ cmove table pointer 112 mov \off, \va << #10 114 mov \off, \off >> \tbl 115 mov \off, \off >> #2 @ off <- index of 2nd pt
|
/linux-4.1.27/net/netfilter/ |
H A D | nf_nat_proto_common.c | 46 u_int16_t off; nf_nat_l4proto_unique_tuple() local 78 off = l3proto->secure_port(tuple, maniptype == NF_NAT_MANIP_SRC nf_nat_l4proto_unique_tuple() 82 off = prandom_u32(); nf_nat_l4proto_unique_tuple() 84 off = *rover; nf_nat_l4proto_unique_tuple() 87 for (i = 0; ; ++off) { nf_nat_l4proto_unique_tuple() 88 *portptr = htons(min + off % range_size); nf_nat_l4proto_unique_tuple() 92 *rover = off; nf_nat_l4proto_unique_tuple()
|
H A D | nf_conntrack_seqadj.c | 10 s32 off) nf_ct_seqadj_init() 16 if (off == 0) nf_ct_seqadj_init() 23 this_way->offset_before = off; nf_ct_seqadj_init() 24 this_way->offset_after = off; nf_ct_seqadj_init() 30 __be32 seq, s32 off) nf_ct_seqadj_set() 36 if (off == 0) nf_ct_seqadj_set() 52 this_way->offset_after += off; nf_ct_seqadj_set() 61 s32 off) nf_ct_tcp_seqadj_set() 69 nf_ct_seqadj_set(ct, ctinfo, th->seq, off); nf_ct_tcp_seqadj_set() 9 nf_ct_seqadj_init(struct nf_conn *ct, enum ip_conntrack_info ctinfo, s32 off) nf_ct_seqadj_init() argument 29 nf_ct_seqadj_set(struct nf_conn *ct, enum ip_conntrack_info ctinfo, __be32 seq, s32 off) nf_ct_seqadj_set() argument 59 nf_ct_tcp_seqadj_set(struct sk_buff *skb, struct nf_conn *ct, enum ip_conntrack_info ctinfo, s32 off) nf_ct_tcp_seqadj_set() argument
|
H A D | nf_conntrack_amanda.c | 93 unsigned int dataoff, start, stop, off, i; amanda_help() local 128 off = skb_find_text(skb, start, stop, search[i].ts); amanda_help() 129 if (off == UINT_MAX) amanda_help() 131 off += start + search[i].len; amanda_help() 133 len = min_t(unsigned int, sizeof(pbuf) - 1, stop - off); amanda_help() 134 if (skb_copy_bits(skb, off, pbuf, len)) amanda_help() 158 off - dataoff, len, exp); amanda_help()
|
/linux-4.1.27/arch/arm/include/asm/ |
H A D | percpu.h | 24 static inline void set_my_cpu_offset(unsigned long off) set_my_cpu_offset() argument 27 asm volatile("mcr p15, 0, %0, c13, c0, 4" : : "r" (off) : "memory"); set_my_cpu_offset() 32 unsigned long off; __my_cpu_offset() local 39 asm("mrc p15, 0, %0, c13, c0, 4" : "=r" (off) __my_cpu_offset() 42 return off; __my_cpu_offset()
|
H A D | fb.h | 9 unsigned long off) fb_pgprotect() 8 fb_pgprotect(struct file *file, struct vm_area_struct *vma, unsigned long off) fb_pgprotect() argument
|
/linux-4.1.27/sound/pcmcia/pdaudiocf/ |
H A D | pdaudiocf_irq.c | 208 static void pdacf_transfer(struct snd_pdacf *chip, unsigned int size, unsigned int off) pdacf_transfer() argument 216 pdacf_transfer_mono24le((char *)chip->pcm_area + (off * 3), xor, size, rdp_port); pdacf_transfer() 218 pdacf_transfer_stereo24le((char *)chip->pcm_area + (off * 6), xor, size, rdp_port); pdacf_transfer() 222 pdacf_transfer_mono24be((char *)chip->pcm_area + (off * 3), xor, size, rdp_port); pdacf_transfer() 224 pdacf_transfer_stereo24be((char *)chip->pcm_area + (off * 6), xor, size, rdp_port); pdacf_transfer() 232 pdacf_transfer_mono16((u16 *)chip->pcm_area + off, xor, size, rdp_port); pdacf_transfer() 234 pdacf_transfer_mono32((u32 *)chip->pcm_area + off, xor, size, rdp_port); pdacf_transfer() 238 pdacf_transfer_stereo16((u16 *)chip->pcm_area + (off * 2), xor, size, rdp_port); pdacf_transfer() 240 pdacf_transfer_stereo32((u32 *)chip->pcm_area + (off * 2), xor, size, rdp_port); pdacf_transfer() 246 pdacf_transfer_mono16sw((u16 *)chip->pcm_area + off, xor, size, rdp_port); pdacf_transfer() 248 pdacf_transfer_mono32sw((u32 *)chip->pcm_area + off, xor, size, rdp_port); pdacf_transfer() 252 pdacf_transfer_stereo16sw((u16 *)chip->pcm_area + (off * 2), xor, size, rdp_port); pdacf_transfer() 254 pdacf_transfer_stereo32sw((u32 *)chip->pcm_area + (off * 2), xor, size, rdp_port); pdacf_transfer() 263 int size, off, cont, rdp, wdp; pdacf_threaded_irq() local 302 off = chip->pcm_hwptr + chip->pcm_tdone; pdacf_threaded_irq() 303 off %= chip->pcm_size; pdacf_threaded_irq() 306 cont = chip->pcm_size - off; pdacf_threaded_irq() 309 pdacf_transfer(chip, cont, off); pdacf_threaded_irq() 310 off += cont; pdacf_threaded_irq() 311 off %= chip->pcm_size; pdacf_threaded_irq()
|
/linux-4.1.27/arch/x86/mm/ |
H A D | setup_nx.c | 11 * noexec = on|off 16 * off Disable 24 } else if (!strncmp(str, "off", 3)) { noexec_setup()
|
/linux-4.1.27/include/net/netfilter/ |
H A D | nf_conntrack_seqadj.h | 34 s32 off); 36 __be32 seq, s32 off); 38 enum ip_conntrack_info ctinfo, s32 off);
|
/linux-4.1.27/lib/ |
H A D | kfifo.c | 103 unsigned int len, unsigned int off) kfifo_copy_in() 109 off &= fifo->mask; kfifo_copy_in() 111 off *= esize; kfifo_copy_in() 115 l = min(len, size - off); kfifo_copy_in() 117 memcpy(fifo->data + off, src, l); kfifo_copy_in() 142 unsigned int len, unsigned int off) kfifo_copy_out() 148 off &= fifo->mask; kfifo_copy_out() 150 off *= esize; kfifo_copy_out() 154 l = min(len, size - off); kfifo_copy_out() 156 memcpy(dst, fifo->data + off, l); kfifo_copy_out() 189 const void __user *from, unsigned int len, unsigned int off, kfifo_copy_from_user() 197 off &= fifo->mask; kfifo_copy_from_user() 199 off *= esize; kfifo_copy_from_user() 203 l = min(len, size - off); kfifo_copy_from_user() 205 ret = copy_from_user(fifo->data + off, from, l); kfifo_copy_from_user() 250 unsigned int len, unsigned int off, unsigned int *copied) kfifo_copy_to_user() 257 off &= fifo->mask; kfifo_copy_to_user() 259 off *= esize; kfifo_copy_to_user() 263 l = min(len, size - off); kfifo_copy_to_user() 265 ret = copy_to_user(to, fifo->data + off, l); kfifo_copy_to_user() 313 unsigned int off; setup_sgl_buf() local 324 off = offset_in_page(buf); setup_sgl_buf() 327 while (len >= l + PAGE_SIZE - off) { setup_sgl_buf() 334 sg_set_page(sgl, page, l - off, off); setup_sgl_buf() 339 len -= l - off; setup_sgl_buf() 340 l = off = 0; setup_sgl_buf() 343 sg_set_page(sgl, page, len, off); setup_sgl_buf() 348 int nents, unsigned int len, unsigned int off) setup_sgl() 355 off &= fifo->mask; setup_sgl() 357 off *= esize; setup_sgl() 361 l = min(len, size - off); setup_sgl() 363 n = setup_sgl_buf(sgl, fifo->data + off, nents, l); setup_sgl() 102 kfifo_copy_in(struct __kfifo *fifo, const void *src, unsigned int len, unsigned int off) kfifo_copy_in() argument 141 kfifo_copy_out(struct __kfifo *fifo, void *dst, unsigned int len, unsigned int off) kfifo_copy_out() argument 188 kfifo_copy_from_user(struct __kfifo *fifo, const void __user *from, unsigned int len, unsigned int off, unsigned int *copied) kfifo_copy_from_user() argument 249 kfifo_copy_to_user(struct __kfifo *fifo, void __user *to, unsigned int len, unsigned int off, unsigned int *copied) kfifo_copy_to_user() argument 347 setup_sgl(struct __kfifo *fifo, struct scatterlist *sgl, int nents, unsigned int len, unsigned int off) setup_sgl() argument
|
H A D | debug_locks.c | 18 * We want to turn all lock-debugging facilities on/off at once, 36 * Generic 'turn off all lock debugging' function:
|
/linux-4.1.27/drivers/hid/ |
H A D | hid-roccat-common.h | 44 char *buf, loff_t off, size_t count, 47 void const *buf, loff_t off, size_t count, 53 loff_t off, size_t count) \ 55 return roccat_common2_sysfs_write(fp, kobj, buf, off, count, \ 62 loff_t off, size_t count) \ 64 return roccat_common2_sysfs_read(fp, kobj, buf, off, count, \
|
H A D | hid-roccat-lua.c | 30 char *buf, loff_t off, size_t count, lua_sysfs_read() 38 if (off >= real_size) lua_sysfs_read() 41 if (off != 0 || count != real_size) lua_sysfs_read() 52 void const *buf, loff_t off, size_t count, lua_sysfs_write() 60 if (off != 0 || count != real_size) lua_sysfs_write() 73 char *buf, loff_t off, size_t count) \ 75 return lua_sysfs_write(fp, kobj, buf, off, count, \ 82 char *buf, loff_t off, size_t count) \ 84 return lua_sysfs_read(fp, kobj, buf, off, count, \ 29 lua_sysfs_read(struct file *fp, struct kobject *kobj, char *buf, loff_t off, size_t count, size_t real_size, uint command) lua_sysfs_read() argument 51 lua_sysfs_write(struct file *fp, struct kobject *kobj, void const *buf, loff_t off, size_t count, size_t real_size, uint command) lua_sysfs_write() argument
|
H A D | hid-roccat-common.c | 134 char *buf, loff_t off, size_t count, roccat_common2_sysfs_read() 143 if (off >= real_size) roccat_common2_sysfs_read() 146 if (off != 0 || count != real_size) roccat_common2_sysfs_read() 158 void const *buf, loff_t off, size_t count, roccat_common2_sysfs_write() 167 if (off != 0 || count != real_size) roccat_common2_sysfs_write() 133 roccat_common2_sysfs_read(struct file *fp, struct kobject *kobj, char *buf, loff_t off, size_t count, size_t real_size, uint command) roccat_common2_sysfs_read() argument 157 roccat_common2_sysfs_write(struct file *fp, struct kobject *kobj, void const *buf, loff_t off, size_t count, size_t real_size, uint command) roccat_common2_sysfs_write() argument
|
H A D | hid-picolcd_debugfs.c | 83 size_t s, loff_t *off) picolcd_debug_eeprom_read() 92 if (*off > 0x0ff) picolcd_debug_eeprom_read() 96 raw_data[0] = *off & 0xff; picolcd_debug_eeprom_read() 97 raw_data[1] = (*off >> 8) & 0xff; picolcd_debug_eeprom_read() 99 if (*off + raw_data[2] > 0xff) picolcd_debug_eeprom_read() 100 raw_data[2] = 0x100 - *off; picolcd_debug_eeprom_read() 114 *off += ret; picolcd_debug_eeprom_read() 122 size_t s, loff_t *off) picolcd_debug_eeprom_write() 131 if (*off > 0x0ff) picolcd_debug_eeprom_write() 135 raw_data[0] = *off & 0xff; picolcd_debug_eeprom_write() 136 raw_data[1] = (*off >> 8) & 0xff; picolcd_debug_eeprom_write() 138 if (*off + raw_data[2] > 0xff) picolcd_debug_eeprom_write() 139 raw_data[2] = 0x100 - *off; picolcd_debug_eeprom_write() 152 *off += raw_data[2]; picolcd_debug_eeprom_write() 179 static int _picolcd_flash_setaddr(struct picolcd_data *data, u8 *buf, long off) _picolcd_flash_setaddr() argument 181 buf[0] = off & 0xff; _picolcd_flash_setaddr() 182 buf[1] = (off >> 8) & 0xff; _picolcd_flash_setaddr() 184 buf[2] = (off >> 16) & 0xff; _picolcd_flash_setaddr() 190 char __user *u, size_t s, loff_t *off) _picolcd_flash_read() 199 len_off = _picolcd_flash_setaddr(data, raw_data, *off); _picolcd_flash_read() 212 *off += raw_data[len_off]; _picolcd_flash_read() 226 size_t s, loff_t *off) picolcd_debug_flash_read() 232 if (*off > 0x05fff) picolcd_debug_flash_read() 234 if (*off + s > 0x05fff) picolcd_debug_flash_read() 235 s = 0x06000 - *off; picolcd_debug_flash_read() 238 return _picolcd_flash_read(data, REPORT_BL_READ_MEMORY, u, s, off); picolcd_debug_flash_read() 240 return _picolcd_flash_read(data, REPORT_READ_MEMORY, u, s, off); picolcd_debug_flash_read() 245 loff_t *off) _picolcd_flash_erase64() 252 if (*off & 0x3f) _picolcd_flash_erase64() 255 len_off = _picolcd_flash_setaddr(data, raw_data, *off); _picolcd_flash_erase64() 272 const char __user *u, size_t s, loff_t *off) _picolcd_flash_write() 281 len_off = _picolcd_flash_setaddr(data, raw_data, *off); _picolcd_flash_write() 295 *off += raw_data[len_off]; _picolcd_flash_write() 309 size_t s, loff_t *off) picolcd_debug_flash_write() 317 if (*off > 0x5fff) picolcd_debug_flash_write() 321 if (*off & 0x3f) picolcd_debug_flash_write() 333 err = _picolcd_flash_erase64(data, report_erase, off); picolcd_debug_flash_write() 336 err = _picolcd_flash_write(data, report_write, u, 64, off); picolcd_debug_flash_write() 340 *off += err; picolcd_debug_flash_write() 82 picolcd_debug_eeprom_read(struct file *f, char __user *u, size_t s, loff_t *off) picolcd_debug_eeprom_read() argument 121 picolcd_debug_eeprom_write(struct file *f, const char __user *u, size_t s, loff_t *off) picolcd_debug_eeprom_write() argument 189 _picolcd_flash_read(struct picolcd_data *data, int report_id, char __user *u, size_t s, loff_t *off) _picolcd_flash_read() argument 225 picolcd_debug_flash_read(struct file *f, char __user *u, size_t s, loff_t *off) picolcd_debug_flash_read() argument 244 _picolcd_flash_erase64(struct picolcd_data *data, int report_id, loff_t *off) _picolcd_flash_erase64() argument 271 _picolcd_flash_write(struct picolcd_data *data, int report_id, const char __user *u, size_t s, loff_t *off) _picolcd_flash_write() argument 308 picolcd_debug_flash_write(struct file *f, const char __user *u, size_t s, loff_t *off) picolcd_debug_flash_write() argument
|
H A D | hid-wiimote-debug.c | 27 loff_t *off) wiidebug_eeprom_read() 38 if (*off > 0xffffff) wiidebug_eeprom_read() 50 wiimote_cmd_set(wdata, WIIPROTO_REQ_RMEM, *off & 0xffff); wiidebug_eeprom_read() 51 wiiproto_req_reeprom(wdata, *off, s); wiidebug_eeprom_read() 72 *off += size; wiidebug_eeprom_read() 128 size_t s, loff_t *off) wiidebug_drm_write() 26 wiidebug_eeprom_read(struct file *f, char __user *u, size_t s, loff_t *off) wiidebug_eeprom_read() argument 127 wiidebug_drm_write(struct file *f, const char __user *u, size_t s, loff_t *off) wiidebug_drm_write() argument
|
/linux-4.1.27/drivers/net/dsa/ |
H A D | bcm_sf2.h | 90 static inline u32 name##_readl(struct bcm_sf2_priv *priv, u32 off) \ 92 return __raw_readl(priv->name + off); \ 95 u32 val, u32 off) \ 97 __raw_writel(val, priv->name + off); \ 106 static inline u64 name##_readq(struct bcm_sf2_priv *priv, u32 off) \ 110 dir = __raw_readl(priv->name + off); \ 116 u32 off) \ 120 __raw_writel(lower_32_bits(val), priv->name + off); \
|
/linux-4.1.27/arch/sparc/include/uapi/asm/ |
H A D | jsflash.h | 24 __u64 off; /* 0x20000000 is included */ member in struct:jsflash_ident_arg 35 __u64 off; member in struct:jsflash_program_arg
|
/linux-4.1.27/include/linux/ |
H A D | filter.h | 55 .off = 0, \ 63 .off = 0, \ 73 .off = 0, \ 81 .off = 0, \ 91 .off = 0, \ 101 .off = 0, \ 109 .off = 0, \ 119 .off = 0, \ 127 .off = 0, \ 139 .off = 0, \ 145 .off = 0, \ 159 .off = 0, \ 167 .off = 0, \ 177 .off = 0, \ 187 .off = 0, \ 197 .off = OFF, \ 207 .off = OFF, \ 217 .off = OFF, \ 227 .off = OFF, \ 237 .off = OFF, \ 247 .off = 0, \ 257 .off = OFF, \ 267 .off = 0, \
|
H A D | compiler-intel.h | 24 #define RELOC_HIDE(ptr, off) \ 27 (typeof(ptr)) (__ptr + (off)); })
|
H A D | lcd.h | 41 power on, flat panel power off, 4: full off), see FB_BLANK_XXX */ 44 * Enable or disable power to the LCD(0: on; 4: off, see FB_BLANK_XXX) 53 /* Enable or disable power to the LCD (0: on; 4: off, see FB_BLANK_XXX) */ 85 /* on or off to lcd panel. if 'enable' is 0 then 86 lcd power off and 1, lcd power on. */ 98 /* stable time needing to become lcd power off. */
|
/linux-4.1.27/drivers/media/pci/ttpci/ |
H A D | av7110_ipack.c | 46 int off; send_ipack() local 61 off = 9 + p->buf[8]; send_ipack() 62 streamid = p->buf[off]; send_ipack() 64 ai.off = 0; send_ipack() 65 ac3_off = ((p->buf[off + 2] << 8)| send_ipack() 66 p->buf[off + 3]); send_ipack() 68 f = dvb_filter_get_ac3info(p->buf + off + 3 + ac3_off, send_ipack() 71 nframes = (p->count - off - 3 - ac3_off) / send_ipack() 73 p->buf[off + 2] = (ac3_off >> 8) & 0xff; send_ipack() 74 p->buf[off + 3] = (ac3_off) & 0xff; send_ipack() 75 p->buf[off + 1] = nframes; send_ipack()
|
/linux-4.1.27/arch/s390/net/ |
H A D | bpf_jit_comp.c | 226 #define EMIT6_PCREL(op1, op2, b1, b2, i, off, mask) \ 229 int rel = (addrs[i + off + 1] - (addrs[i + 1] - 6)) / 2;\ 289 u32 off = 72 + (rs - 6) * 8; save_regs() local 292 /* stg %rs,off(%r15) */ save_regs() 293 _EMIT6(0xe300f000 | rs << 20 | off, 0x0024); save_regs() 295 /* stmg %rs,%re,off(%r15) */ save_regs() 296 _EMIT6_DISP(0xeb00f000 | rs << 20 | re << 16, 0x0024, off); save_regs() 304 u32 off = 72 + (rs - 6) * 8; restore_regs() local 307 off += STK_OFF; restore_regs() 310 /* lg %rs,off(%r15) */ restore_regs() 311 _EMIT6(0xe300f000 | rs << 20 | off, 0x0004); restore_regs() 313 /* lmg %rs,%re,off(%r15) */ restore_regs() 314 _EMIT6_DISP(0xeb00f000 | rs << 20 | re << 16, 0x0004, off); restore_regs() 462 s16 off = insn->off; bpf_jit_insn() local 847 case BPF_STX | BPF_MEM | BPF_B: /* *(u8 *)(dst + off) = src_reg */ bpf_jit_insn() 848 /* stcy %src,off(%dst) */ bpf_jit_insn() 849 EMIT6_DISP_LH(0xe3000000, 0x0072, src_reg, dst_reg, REG_0, off); bpf_jit_insn() 852 case BPF_STX | BPF_MEM | BPF_H: /* (u16 *)(dst + off) = src */ bpf_jit_insn() 853 /* sthy %src,off(%dst) */ bpf_jit_insn() 854 EMIT6_DISP_LH(0xe3000000, 0x0070, src_reg, dst_reg, REG_0, off); bpf_jit_insn() 857 case BPF_STX | BPF_MEM | BPF_W: /* *(u32 *)(dst + off) = src */ bpf_jit_insn() 858 /* sty %src,off(%dst) */ bpf_jit_insn() 859 EMIT6_DISP_LH(0xe3000000, 0x0050, src_reg, dst_reg, REG_0, off); bpf_jit_insn() 862 case BPF_STX | BPF_MEM | BPF_DW: /* (u64 *)(dst + off) = src */ bpf_jit_insn() 863 /* stg %src,off(%dst) */ bpf_jit_insn() 864 EMIT6_DISP_LH(0xe3000000, 0x0024, src_reg, dst_reg, REG_0, off); bpf_jit_insn() 867 case BPF_ST | BPF_MEM | BPF_B: /* *(u8 *)(dst + off) = imm */ bpf_jit_insn() 870 /* stcy %w0,off(dst) */ bpf_jit_insn() 871 EMIT6_DISP_LH(0xe3000000, 0x0072, REG_W0, dst_reg, REG_0, off); bpf_jit_insn() 874 case BPF_ST | BPF_MEM | BPF_H: /* (u16 *)(dst + off) = imm */ bpf_jit_insn() 877 /* sthy %w0,off(dst) */ bpf_jit_insn() 878 EMIT6_DISP_LH(0xe3000000, 0x0070, REG_W0, dst_reg, REG_0, off); bpf_jit_insn() 881 case BPF_ST | BPF_MEM | BPF_W: /* *(u32 *)(dst + off) = imm */ bpf_jit_insn() 884 /* sty %w0,off(%dst) */ bpf_jit_insn() 885 EMIT6_DISP_LH(0xe3000000, 0x0050, REG_W0, dst_reg, REG_0, off); bpf_jit_insn() 888 case BPF_ST | BPF_MEM | BPF_DW: /* *(u64 *)(dst + off) = imm */ bpf_jit_insn() 891 /* stg %w0,off(%dst) */ bpf_jit_insn() 892 EMIT6_DISP_LH(0xe3000000, 0x0024, REG_W0, dst_reg, REG_0, off); bpf_jit_insn() 898 case BPF_STX | BPF_XADD | BPF_W: /* *(u32 *)(dst + off) += src */ bpf_jit_insn() 899 /* laal %w0,%src,off(%dst) */ bpf_jit_insn() 901 dst_reg, off); bpf_jit_insn() 904 case BPF_STX | BPF_XADD | BPF_DW: /* *(u64 *)(dst + off) += src */ bpf_jit_insn() 905 /* laalg %w0,%src,off(%dst) */ bpf_jit_insn() 907 dst_reg, off); bpf_jit_insn() 913 case BPF_LDX | BPF_MEM | BPF_B: /* dst = *(u8 *)(ul) (src + off) */ bpf_jit_insn() 914 /* llgc %dst,0(off,%src) */ bpf_jit_insn() 915 EMIT6_DISP_LH(0xe3000000, 0x0090, dst_reg, src_reg, REG_0, off); bpf_jit_insn() 918 case BPF_LDX | BPF_MEM | BPF_H: /* dst = *(u16 *)(ul) (src + off) */ bpf_jit_insn() 919 /* llgh %dst,0(off,%src) */ bpf_jit_insn() 920 EMIT6_DISP_LH(0xe3000000, 0x0091, dst_reg, src_reg, REG_0, off); bpf_jit_insn() 923 case BPF_LDX | BPF_MEM | BPF_W: /* dst = *(u32 *)(ul) (src + off) */ bpf_jit_insn() 924 /* llgf %dst,off(%src) */ bpf_jit_insn() 926 EMIT6_DISP_LH(0xe3000000, 0x0016, dst_reg, src_reg, REG_0, off); bpf_jit_insn() 928 case BPF_LDX | BPF_MEM | BPF_DW: /* dst = *(u64 *)(ul) (src + off) */ bpf_jit_insn() 929 /* lg %dst,0(off,%src) */ bpf_jit_insn() 931 EMIT6_DISP_LH(0xe3000000, 0x0004, dst_reg, src_reg, REG_0, off); bpf_jit_insn() 1036 /* cgrj %dst,%w1,mask,off */ bpf_jit_insn() 1037 EMIT6_PCREL(0xec000000, 0x0064, dst_reg, REG_W1, i, off, mask); bpf_jit_insn() 1042 /* clgrj %dst,%w1,mask,off */ bpf_jit_insn() 1043 EMIT6_PCREL(0xec000000, 0x0065, dst_reg, REG_W1, i, off, mask); bpf_jit_insn() 1046 /* cgrj %dst,%src,mask,off */ bpf_jit_insn() 1047 EMIT6_PCREL(0xec000000, 0x0064, dst_reg, src_reg, i, off, mask); bpf_jit_insn() 1050 /* clgrj %dst,%src,mask,off */ bpf_jit_insn() 1051 EMIT6_PCREL(0xec000000, 0x0065, dst_reg, src_reg, i, off, mask); bpf_jit_insn() 1055 jmp_off = addrs[i + off + 1] - (addrs[i + 1] - 4); bpf_jit_insn()
|
/linux-4.1.27/drivers/net/ethernet/qlogic/qlcnic/ |
H A D | qlcnic_hw.c | 20 #define CRB_BLK(off) ((off >> 20) & 0x3f) 21 #define CRB_SUBBLK(off) ((off >> 16) & 0xf) 23 #define CRB_HI(off) ((crb_hub_agt[CRB_BLK(off)] << 20) | ((off) & 0xf0000)) 33 u64 off; member in struct:qlcnic_ms_reg_ctrl 1126 /* Returns < 0 if off is not valid, 1127 * 1 if window access is needed. 'off' is set to offset from 1129 * 0 if no window access is needed. 'off' is set to 2M addr 1130 * In: 'off' is offset from base in 128M pci map 1133 ulong off, void __iomem **addr) qlcnic_pci_get_crb_addr_2M() 1137 if ((off >= QLCNIC_CRB_MAX) || (off < QLCNIC_PCI_CRBSPACE)) qlcnic_pci_get_crb_addr_2M() 1140 off -= QLCNIC_PCI_CRBSPACE; qlcnic_pci_get_crb_addr_2M() 1145 m = &crb_128M_2M_map[CRB_BLK(off)].sub_block[CRB_SUBBLK(off)]; qlcnic_pci_get_crb_addr_2M() 1147 if (m->valid && (m->start_128M <= off) && (m->end_128M > off)) { qlcnic_pci_get_crb_addr_2M() 1149 (off - m->start_128M); qlcnic_pci_get_crb_addr_2M() 1156 *addr = ahw->pci_base0 + CRB_INDIRECT_2M + (off & MASK(16)); qlcnic_pci_get_crb_addr_2M() 1161 * In: 'off' is offset from CRB space in 128M pci map 1162 * Out: 'off' is 2M pci map addr 1166 qlcnic_pci_set_crbwindow_2M(struct qlcnic_adapter *adapter, ulong off) qlcnic_pci_set_crbwindow_2M() argument 1171 off -= QLCNIC_PCI_CRBSPACE; qlcnic_pci_set_crbwindow_2M() 1173 window = CRB_HI(off); qlcnic_pci_set_crbwindow_2M() 1175 dev_err(&adapter->pdev->dev, "Invalid offset 0x%lx\n", off); qlcnic_pci_set_crbwindow_2M() 1183 "failed to set CRB window to %d off 0x%lx\n", qlcnic_pci_set_crbwindow_2M() 1184 window, off); qlcnic_pci_set_crbwindow_2M() 1190 int qlcnic_82xx_hw_write_wx_2M(struct qlcnic_adapter *adapter, ulong off, qlcnic_82xx_hw_write_wx_2M() argument 1197 rv = qlcnic_pci_get_crb_addr_2M(adapter->ahw, off, &addr); qlcnic_82xx_hw_write_wx_2M() 1208 rv = qlcnic_pci_set_crbwindow_2M(adapter, off); qlcnic_82xx_hw_write_wx_2M() 1217 "%s: invalid offset: 0x%016lx\n", __func__, off); qlcnic_82xx_hw_write_wx_2M() 1222 int qlcnic_82xx_hw_read_wx_2M(struct qlcnic_adapter *adapter, ulong off, qlcnic_82xx_hw_read_wx_2M() argument 1230 rv = qlcnic_pci_get_crb_addr_2M(adapter->ahw, off, &addr); qlcnic_82xx_hw_read_wx_2M() 1239 if (!qlcnic_pci_set_crbwindow_2M(adapter, off)) qlcnic_82xx_hw_read_wx_2M() 1247 "%s: invalid offset: 0x%016lx\n", __func__, off); qlcnic_82xx_hw_read_wx_2M() 1263 u32 window, u64 off, u64 *data, int op) qlcnic_pci_mem_access_direct() 1273 start = QLCNIC_PCI_OCM0_2M + off; qlcnic_pci_mem_access_direct() 1291 qlcnic_pci_camqm_read_2M(struct qlcnic_adapter *adapter, u64 off, u64 *data) qlcnic_pci_camqm_read_2M() argument 1294 QLCNIC_PCI_CAMQM_2M_BASE + (off - QLCNIC_PCI_CAMQM); qlcnic_pci_camqm_read_2M() 1302 qlcnic_pci_camqm_write_2M(struct qlcnic_adapter *adapter, u64 off, u64 data) qlcnic_pci_camqm_write_2M() argument 1305 QLCNIC_PCI_CAMQM_2M_BASE + (off - QLCNIC_PCI_CAMQM); qlcnic_pci_camqm_write_2M() 1315 static void qlcnic_set_ms_controls(struct qlcnic_adapter *adapter, u64 off, qlcnic_set_ms_controls() argument 1321 if (off & 0xf) { qlcnic_set_ms_controls() 1341 ms->ocm_window = OCM_WIN_P3P(off); qlcnic_set_ms_controls() 1342 ms->off = GET_MEM_OFFS_2M(off); qlcnic_set_ms_controls() 1345 int qlcnic_pci_mem_write_2M(struct qlcnic_adapter *adapter, u64 off, u64 data) qlcnic_pci_mem_write_2M() argument 1352 if (off & 7) qlcnic_pci_mem_write_2M() 1356 if (!(ADDR_IN_RANGE(off, QLCNIC_ADDR_QDR_NET, qlcnic_pci_mem_write_2M() 1358 ADDR_IN_RANGE(off, QLCNIC_ADDR_DDR_NET, qlcnic_pci_mem_write_2M() 1362 qlcnic_set_ms_controls(adapter, off, &ms); qlcnic_pci_mem_write_2M() 1364 if (ADDR_IN_RANGE(off, QLCNIC_ADDR_OCM0, QLCNIC_ADDR_OCM0_MAX)) qlcnic_pci_mem_write_2M() 1366 ms.off, &data, 1); qlcnic_pci_mem_write_2M() 1368 off8 = off & ~0xf; qlcnic_pci_mem_write_2M() 1419 int qlcnic_pci_mem_read_2M(struct qlcnic_adapter *adapter, u64 off, u64 *data) qlcnic_pci_mem_read_2M() argument 1427 if (off & 7) qlcnic_pci_mem_read_2M() 1429 if (!(ADDR_IN_RANGE(off, QLCNIC_ADDR_QDR_NET, qlcnic_pci_mem_read_2M() 1431 ADDR_IN_RANGE(off, QLCNIC_ADDR_DDR_NET, qlcnic_pci_mem_read_2M() 1436 qlcnic_set_ms_controls(adapter, off, &ms); qlcnic_pci_mem_read_2M() 1438 if (ADDR_IN_RANGE(off, QLCNIC_ADDR_OCM0, QLCNIC_ADDR_OCM0_MAX)) qlcnic_pci_mem_read_2M() 1440 ms.off, data, 0); qlcnic_pci_mem_read_2M() 1444 off8 = off & ~0xf; qlcnic_pci_mem_read_2M() 1132 qlcnic_pci_get_crb_addr_2M(struct qlcnic_hardware_context *ahw, ulong off, void __iomem **addr) qlcnic_pci_get_crb_addr_2M() argument 1262 qlcnic_pci_mem_access_direct(struct qlcnic_adapter *adapter, u32 window, u64 off, u64 *data, int op) qlcnic_pci_mem_access_direct() argument
|
/linux-4.1.27/drivers/hwtracing/coresight/ |
H A D | coresight-priv.h | 56 extern int etm_readl_cp14(u32 off, unsigned int *val); 57 extern int etm_writel_cp14(u32 off, u32 val); 59 static inline int etm_readl_cp14(u32 off, unsigned int *val) { return 0; } etm_writel_cp14() argument 60 static inline int etm_writel_cp14(u32 off, u32 val) { return 0; } argument
|
/linux-4.1.27/drivers/misc/ |
H A D | ds1682.c | 27 * has been write protected. This driver does not support turning off write 29 * turn it off again, so I have left the feature out of this driver to avoid 143 char *buf, loff_t off, size_t count) ds1682_eeprom_read() 148 dev_dbg(&client->dev, "ds1682_eeprom_read(p=%p, off=%lli, c=%zi)\n", ds1682_eeprom_read() 149 buf, off, count); ds1682_eeprom_read() 151 if (off >= DS1682_EEPROM_SIZE) ds1682_eeprom_read() 154 if (off + count > DS1682_EEPROM_SIZE) ds1682_eeprom_read() 155 count = DS1682_EEPROM_SIZE - off; ds1682_eeprom_read() 157 rc = i2c_smbus_read_i2c_block_data(client, DS1682_REG_EEPROM + off, ds1682_eeprom_read() 167 char *buf, loff_t off, size_t count) ds1682_eeprom_write() 171 dev_dbg(&client->dev, "ds1682_eeprom_write(p=%p, off=%lli, c=%zi)\n", ds1682_eeprom_write() 172 buf, off, count); ds1682_eeprom_write() 174 if (off >= DS1682_EEPROM_SIZE) ds1682_eeprom_write() 177 if (off + count > DS1682_EEPROM_SIZE) ds1682_eeprom_write() 178 count = DS1682_EEPROM_SIZE - off; ds1682_eeprom_write() 181 if (i2c_smbus_write_i2c_block_data(client, DS1682_REG_EEPROM + off, ds1682_eeprom_write() 141 ds1682_eeprom_read(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) ds1682_eeprom_read() argument 165 ds1682_eeprom_write(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) ds1682_eeprom_write() argument
|
/linux-4.1.27/drivers/misc/eeprom/ |
H A D | eeprom_93xx46.c | 39 char *buf, loff_t off, size_t count) eeprom_93xx46_bin_read() 51 if (unlikely(off >= edev->bin.size)) eeprom_93xx46_bin_read() 53 if ((off + count) > edev->bin.size) eeprom_93xx46_bin_read() 54 count = edev->bin.size - off; eeprom_93xx46_bin_read() 61 cmd_addr |= off & 0x7f; eeprom_93xx46_bin_read() 64 cmd_addr |= off & 0x3f; eeprom_93xx46_bin_read() 94 count, (int)off, ret); eeprom_93xx46_bin_read() 151 const char *buf, unsigned off) eeprom_93xx46_write_word() 161 cmd_addr |= off & 0x7f; eeprom_93xx46_write_word() 165 cmd_addr |= off & 0x3f; eeprom_93xx46_write_word() 194 char *buf, loff_t off, size_t count) eeprom_93xx46_bin_write() 203 if (unlikely(off >= edev->bin.size)) eeprom_93xx46_bin_write() 205 if ((off + count) > edev->bin.size) eeprom_93xx46_bin_write() 206 count = edev->bin.size - off; eeprom_93xx46_bin_write() 227 ret = eeprom_93xx46_write_word(edev, &buf[i], off + i); eeprom_93xx46_bin_write() 230 (int)off + i, ret); eeprom_93xx46_bin_write() 37 eeprom_93xx46_bin_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) eeprom_93xx46_bin_read() argument 150 eeprom_93xx46_write_word(struct eeprom_93xx46_dev *edev, const char *buf, unsigned off) eeprom_93xx46_write_word() argument 192 eeprom_93xx46_bin_write(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) eeprom_93xx46_bin_write() argument
|
H A D | eeprom.c | 85 char *buf, loff_t off, size_t count) eeprom_read() 91 if (off > EEPROM_SIZE) eeprom_read() 93 if (off + count > EEPROM_SIZE) eeprom_read() 94 count = EEPROM_SIZE - off; eeprom_read() 97 for (slice = off >> 5; slice <= (off + count - 1) >> 5; slice++) eeprom_read() 108 if ((off + i <= 0x1f) || eeprom_read() 109 (off + i >= 0xc0 && off + i <= 0xdf)) eeprom_read() 112 buf[i] = data->data[off + i]; eeprom_read() 115 memcpy(buf, &data->data[off], count); eeprom_read() 83 eeprom_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) eeprom_read() argument
|
H A D | max6875.c | 111 char *buf, loff_t off, size_t count) max6875_read() 117 if (off > USER_EEPROM_SIZE) max6875_read() 120 if (off + count > USER_EEPROM_SIZE) max6875_read() 121 count = USER_EEPROM_SIZE - off; max6875_read() 124 max_slice = (off + count - 1) >> SLICE_BITS; max6875_read() 125 for (slice = (off >> SLICE_BITS); slice <= max_slice; slice++) max6875_read() 128 memcpy(buf, &data->data[off], count); max6875_read() 109 max6875_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) max6875_read() argument
|
/linux-4.1.27/drivers/sbus/char/ |
H A D | bbc_i2c.h | 80 extern int bbc_i2c_writeb(struct bbc_i2c_client *, unsigned char val, int off); 81 extern int bbc_i2c_readb(struct bbc_i2c_client *, unsigned char *byte, int off); 82 extern int bbc_i2c_write_buf(struct bbc_i2c_client *, char *buf, int len, int off); 83 extern int bbc_i2c_read_buf(struct bbc_i2c_client *, char *buf, int len, int off);
|
/linux-4.1.27/drivers/infiniband/hw/ipath/ |
H A D | ipath_keys.c | 127 size_t off; ipath_lkey_ok() local 156 off = sge->addr - mr->user_base; ipath_lkey_ok() 158 off + sge->length > mr->length || ipath_lkey_ok() 164 off += mr->offset; ipath_lkey_ok() 167 while (off >= mr->map[m]->segs[n].length) { ipath_lkey_ok() 168 off -= mr->map[m]->segs[n].length; ipath_lkey_ok() 176 isge->vaddr = mr->map[m]->segs[n].vaddr + off; ipath_lkey_ok() 177 isge->length = mr->map[m]->segs[n].length - off; ipath_lkey_ok() 207 size_t off; ipath_rkey_ok() local 239 off = vaddr - mr->iova; ipath_rkey_ok() 240 if (unlikely(vaddr < mr->iova || off + len > mr->length || ipath_rkey_ok() 246 off += mr->offset; ipath_rkey_ok() 249 while (off >= mr->map[m]->segs[n].length) { ipath_rkey_ok() 250 off -= mr->map[m]->segs[n].length; ipath_rkey_ok() 258 sge->vaddr = mr->map[m]->segs[n].vaddr + off; ipath_rkey_ok() 259 sge->length = mr->map[m]->segs[n].length - off; ipath_rkey_ok()
|
H A D | ipath_diag.c | 60 size_t count, loff_t *off); 62 size_t count, loff_t *off); 75 size_t count, loff_t *off); 322 * @off: unused by this code 326 size_t count, loff_t *off) ipath_diagpkt_write() 489 size_t count, loff_t *off) ipath_diag_read() 499 else if ((count % 4) || (*off % 4)) ipath_diag_read() 502 else if (ipath_diag_inuse < 1 && (*off || count != 8)) ipath_diag_read() 504 else if ((count % 8) || (*off % 8)) ipath_diag_read() 506 ret = ipath_read_umem32(dd, data, kreg_base + *off, count); ipath_diag_read() 508 ret = ipath_read_umem64(dd, data, kreg_base + *off, count); ipath_diag_read() 511 *off += count; ipath_diag_read() 521 size_t count, loff_t *off) ipath_diag_write() 531 else if ((count % 4) || (*off % 4)) ipath_diag_write() 534 else if ((ipath_diag_inuse == -1 && (*off || count != 8)) || ipath_diag_write() 535 ipath_diag_inuse == -2) /* read qw off 0, write qw off 0 */ ipath_diag_write() 537 else if ((count % 8) || (*off % 8)) ipath_diag_write() 539 ret = ipath_write_umem32(dd, kreg_base + *off, data, count); ipath_diag_write() 541 ret = ipath_write_umem64(dd, kreg_base + *off, data, count); ipath_diag_write() 544 *off += count; ipath_diag_write() 324 ipath_diagpkt_write(struct file *fp, const char __user *data, size_t count, loff_t *off) ipath_diagpkt_write() argument 488 ipath_diag_read(struct file *fp, char __user *data, size_t count, loff_t *off) ipath_diag_read() argument 520 ipath_diag_write(struct file *fp, const char __user *data, size_t count, loff_t *off) ipath_diag_write() argument
|
/linux-4.1.27/arch/sparc/include/asm/ |
H A D | tsunami.h | 19 * SW: Enable Software Table Walks 0=off 1=on 26 * PE: Parity Enable 0=off 1=on 28 * IE: Instruction cache Enable 0=off 1=on 29 * DE: Data cache Enable 0=off 1=on
|
H A D | auxio_64.h | 31 * L - System LED on front panel (0=off, 1=on) 47 * F - Power Off (1=power off) 61 * LED - System LED on front panel (0=off, 1=on) 70 * CPO - Courtesy Power Off (1=off) 71 * SPO - System Power Off (1=off)
|
H A D | ecc.h | 26 * SBUS: Enable MBus Arbiter on the SBus 0=off 1=on 27 * MOD3: Enable MBus Arbiter on MBus module 3 0=off 1=on 28 * MOD2: Enable MBus Arbiter on MBus module 2 0=off 1=on 29 * MOD1: Enable MBus Arbiter on MBus module 1 0=off 1=on 44 * ECHECK: Enable ECC checking. 0=off 1=on 45 * EINT: Enable Interrupts for correctable errors. 0=off 1=on
|
H A D | fb.h | 10 unsigned long off) fb_pgprotect() 9 fb_pgprotect(struct file *file, struct vm_area_struct *vma, unsigned long off) fb_pgprotect() argument
|
/linux-4.1.27/arch/x86/include/asm/ |
H A D | fb.h | 9 unsigned long off) fb_pgprotect() 8 fb_pgprotect(struct file *file, struct vm_area_struct *vma, unsigned long off) fb_pgprotect() argument
|
H A D | kbdleds.h | 6 * This seems a good reason to start with NumLock off. That's why on X86 we
|
/linux-4.1.27/include/uapi/linux/netfilter/ |
H A D | xt_LED.h | 9 __u32 delay; /* Delay until LED is switched off after trigger */
|
/linux-4.1.27/include/uapi/linux/tc_act/ |
H A D | tc_pedit.h | 20 __u32 off; /*offset */ member in struct:tc_pedit_key
|
/linux-4.1.27/arch/sh/include/asm/ |
H A D | fb.h | 9 unsigned long off) fb_pgprotect() 8 fb_pgprotect(struct file *file, struct vm_area_struct *vma, unsigned long off) fb_pgprotect() argument
|
H A D | syscalls.h | 8 int fd, unsigned long off);
|
/linux-4.1.27/arch/avr32/include/asm/ |
H A D | fb.h | 9 unsigned long off) fb_pgprotect() 8 fb_pgprotect(struct file *file, struct vm_area_struct *vma, unsigned long off) fb_pgprotect() argument
|
/linux-4.1.27/arch/ia64/include/asm/ |
H A D | fb.h | 10 unsigned long off) fb_pgprotect() 9 fb_pgprotect(struct file *file, struct vm_area_struct *vma, unsigned long off) fb_pgprotect() argument
|
/linux-4.1.27/arch/m32r/include/asm/ |
H A D | fb.h | 9 unsigned long off) fb_pgprotect() 8 fb_pgprotect(struct file *file, struct vm_area_struct *vma, unsigned long off) fb_pgprotect() argument
|
/linux-4.1.27/arch/arm/mach-orion5x/ |
H A D | tsx09-common.h | 5 * QNAP TS-x09 Boards power-off function
|
H A D | tsx09-common.c | 23 * QNAP TS-x09 specific power off method via UART1-attached PIC 33 pr_info("%s: triggering power-off...\n", __func__); qnap_tsx09_power_off() 44 /* send the power-off command 'A' to PIC */ qnap_tsx09_power_off()
|
/linux-4.1.27/arch/arm/include/asm/hardware/ |
H A D | ioc.h | 22 #define ioc_readb(off) __raw_readb(IOC_BASE + (off)) 23 #define ioc_writeb(val,off) __raw_writeb(val, IOC_BASE + (off))
|
H A D | iomd.h | 23 #define iomd_readb(off) __raw_readb(IOMD_BASE + (off)) 24 #define iomd_readl(off) __raw_readl(IOMD_BASE + (off)) 25 #define iomd_writeb(val,off) __raw_writeb(val, IOMD_BASE + (off)) 26 #define iomd_writel(val,off) __raw_writel(val, IOMD_BASE + (off))
|
/linux-4.1.27/include/linux/input/ |
H A D | navpoint.h | 11 int gpio; /* GPIO for power on/off */
|
/linux-4.1.27/drivers/target/ |
H A D | target_core_fabric_lib.c | 160 u32 off = 8; fc_get_pr_transport_id() local 178 ret = hex2bin(&buf[off++], &ptr[i], 1); fc_get_pr_transport_id() 229 u32 off = 4, padding = 0; iscsi_get_pr_transport_id() local 248 len = sprintf(&buf[off], "%s", se_nacl->initiatorname); iscsi_get_pr_transport_id() 281 buf[off+len] = 0x2c; off++; /* ASCII Character: "," */ iscsi_get_pr_transport_id() 282 buf[off+len] = 0x69; off++; /* ASCII Character: "i" */ iscsi_get_pr_transport_id() 283 buf[off+len] = 0x2c; off++; /* ASCII Character: "," */ iscsi_get_pr_transport_id() 284 buf[off+len] = 0x30; off++; /* ASCII Character: "0" */ iscsi_get_pr_transport_id() 285 buf[off+len] = 0x78; off++; /* ASCII Character: "x" */ iscsi_get_pr_transport_id() 287 buf[off+len] = pr_reg->pr_reg_isid[0]; off++; iscsi_get_pr_transport_id() 288 buf[off+len] = pr_reg->pr_reg_isid[1]; off++; iscsi_get_pr_transport_id() 289 buf[off+len] = pr_reg->pr_reg_isid[2]; off++; iscsi_get_pr_transport_id() 290 buf[off+len] = pr_reg->pr_reg_isid[3]; off++; iscsi_get_pr_transport_id() 291 buf[off+len] = pr_reg->pr_reg_isid[4]; off++; iscsi_get_pr_transport_id() 292 buf[off+len] = pr_reg->pr_reg_isid[5]; off++; iscsi_get_pr_transport_id() 293 buf[off+len] = '\0'; off++; iscsi_get_pr_transport_id()
|
H A D | target_core_spc.c | 191 u32 unit_serial_len, off = 0; spc_emulate_evpd_83() local 194 off = 4; spc_emulate_evpd_83() 208 buf[off++] = 0x1; spc_emulate_evpd_83() 211 buf[off] = 0x00; spc_emulate_evpd_83() 214 buf[off++] |= 0x3; spc_emulate_evpd_83() 215 off++; spc_emulate_evpd_83() 218 buf[off++] = 0x10; spc_emulate_evpd_83() 223 buf[off++] = (0x6 << 4); spc_emulate_evpd_83() 228 buf[off++] = 0x01; spc_emulate_evpd_83() 229 buf[off++] = 0x40; spc_emulate_evpd_83() 230 buf[off] = (0x5 << 4); spc_emulate_evpd_83() 237 spc_parse_naa_6h_vendor_specific(dev, &buf[off]); spc_emulate_evpd_83() 240 off = (len + 4); spc_emulate_evpd_83() 256 id_len += sprintf(&buf[off+12], "%s:%s", prod, spc_emulate_evpd_83() 259 buf[off] = 0x2; /* ASCII */ spc_emulate_evpd_83() 260 buf[off+1] = 0x1; /* T10 Vendor ID */ spc_emulate_evpd_83() 261 buf[off+2] = 0x0; spc_emulate_evpd_83() 262 memcpy(&buf[off+4], "LIO-ORG", 8); spc_emulate_evpd_83() 266 buf[off+3] = id_len; spc_emulate_evpd_83() 269 off += (id_len + 4); spc_emulate_evpd_83() 289 buf[off] = spc_emulate_evpd_83() 291 buf[off++] |= 0x1; /* CODE SET == Binary */ spc_emulate_evpd_83() 292 buf[off] = 0x80; /* Set PIV=1 */ spc_emulate_evpd_83() 294 buf[off] |= 0x10; spc_emulate_evpd_83() 296 buf[off++] |= 0x4; spc_emulate_evpd_83() 297 off++; /* Skip over Reserved */ spc_emulate_evpd_83() 298 buf[off++] = 4; /* DESIGNATOR LENGTH */ spc_emulate_evpd_83() 301 off += 2; spc_emulate_evpd_83() 302 buf[off++] = ((port->sep_rtpi >> 8) & 0xff); spc_emulate_evpd_83() 303 buf[off++] = (port->sep_rtpi & 0xff); spc_emulate_evpd_83() 325 buf[off] = spc_emulate_evpd_83() 327 buf[off++] |= 0x1; /* CODE SET == Binary */ spc_emulate_evpd_83() 328 buf[off] = 0x80; /* Set PIV=1 */ spc_emulate_evpd_83() 330 buf[off] |= 0x10; spc_emulate_evpd_83() 332 buf[off++] |= 0x5; spc_emulate_evpd_83() 333 off++; /* Skip over Reserved */ spc_emulate_evpd_83() 334 buf[off++] = 4; /* DESIGNATOR LENGTH */ spc_emulate_evpd_83() 335 off += 2; /* Skip over Reserved Field */ spc_emulate_evpd_83() 336 buf[off++] = ((tg_pt_gp_id >> 8) & 0xff); spc_emulate_evpd_83() 337 buf[off++] = (tg_pt_gp_id & 0xff); spc_emulate_evpd_83() 357 buf[off++] |= 0x1; /* CODE SET == Binary */ spc_emulate_evpd_83() 359 buf[off++] |= 0x6; spc_emulate_evpd_83() 360 off++; /* Skip over Reserved */ spc_emulate_evpd_83() 361 buf[off++] = 4; /* DESIGNATOR LENGTH */ spc_emulate_evpd_83() 362 off += 2; /* Skip over Reserved Field */ spc_emulate_evpd_83() 363 buf[off++] = ((lu_gp_id >> 8) & 0xff); spc_emulate_evpd_83() 364 buf[off++] = (lu_gp_id & 0xff); spc_emulate_evpd_83() 374 buf[off] = spc_emulate_evpd_83() 376 buf[off++] |= 0x3; /* CODE SET == UTF-8 */ spc_emulate_evpd_83() 377 buf[off] = 0x80; /* Set PIV=1 */ spc_emulate_evpd_83() 379 buf[off] |= 0x10; spc_emulate_evpd_83() 381 buf[off++] |= 0x8; spc_emulate_evpd_83() 382 off += 2; /* Skip over Reserved and length */ spc_emulate_evpd_83() 390 scsi_name_len = sprintf(&buf[off], "%s,t,0x%04x", spc_emulate_evpd_83() 407 buf[off-1] = scsi_name_len; spc_emulate_evpd_83() 408 off += scsi_name_len; spc_emulate_evpd_83() 415 buf[off] = spc_emulate_evpd_83() 417 buf[off++] |= 0x3; /* CODE SET == UTF-8 */ spc_emulate_evpd_83() 418 buf[off] = 0x80; /* Set PIV=1 */ spc_emulate_evpd_83() 420 buf[off] |= 0x20; spc_emulate_evpd_83() 422 buf[off++] |= 0x8; spc_emulate_evpd_83() 423 off += 2; /* Skip over Reserved and length */ spc_emulate_evpd_83() 430 scsi_target_len = sprintf(&buf[off], "%s", spc_emulate_evpd_83() 447 buf[off-1] = scsi_target_len; spc_emulate_evpd_83() 448 off += scsi_target_len; spc_emulate_evpd_83() 1100 int off = ten ? 8 : 4; spc_emulate_modeselect() local 1114 if (cmd->data_length < off + 2) spc_emulate_modeselect() 1126 page = buf[off] & 0x3f; spc_emulate_modeselect() 1127 subpage = buf[off] & 0x40 ? buf[off + 1] : 0; spc_emulate_modeselect() 1141 if (cmd->data_length < off + length) { spc_emulate_modeselect() 1146 if (memcmp(buf + off, tbuf, length)) spc_emulate_modeselect()
|
/linux-4.1.27/arch/unicore32/kernel/ |
H A D | ptrace.c | 20 * this routine will get a word off of the processes privileged stack. 63 static int ptrace_read_user(struct task_struct *tsk, unsigned long off, ptrace_read_user() argument 69 if (off < sizeof(struct pt_regs)) ptrace_read_user() 70 tmp = get_user_reg(tsk, off >> 2); ptrace_read_user() 78 static int ptrace_write_user(struct task_struct *tsk, unsigned long off, ptrace_write_user() argument 81 if (off >= sizeof(struct pt_regs)) ptrace_write_user() 84 return put_user_reg(tsk, off >> 2, val); ptrace_write_user()
|
/linux-4.1.27/arch/m32r/kernel/ |
H A D | ptrace.c | 36 * This routine will get a word off of the process kernel stack. 68 * Read the word at offset "off" into the "struct user". We 71 static int ptrace_read_user(struct task_struct *tsk, unsigned long off, ptrace_read_user() argument 79 if ((off & 3) || off > sizeof(struct user) - 3) ptrace_read_user() 82 off >>= 2; ptrace_read_user() 83 switch (off) { ptrace_read_user() 107 off = PT_BBPC; ptrace_read_user() 110 if (off < (sizeof(struct pt_regs) >> 2)) ptrace_read_user() 111 tmp = get_stack_long(tsk, off); ptrace_read_user() 113 else if (off >= (long)(&dummy->fpu >> 2) && ptrace_read_user() 114 off < (long)(&dummy->u_fpvalid >> 2)) { ptrace_read_user() 116 if (off == (long)(&dummy->fpu.fpscr >> 2)) ptrace_read_user() 122 [off - (long)&dummy->fpu]; ptrace_read_user() 123 } else if (off == (long)(&dummy->u_fpvalid >> 2)) ptrace_read_user() 133 static int ptrace_write_user(struct task_struct *tsk, unsigned long off, ptrace_write_user() argument 141 if ((off & 3) || off > sizeof(struct user) - 3) ptrace_write_user() 144 off >>= 2; ptrace_write_user() 145 switch (off) { ptrace_write_user() 162 off = PT_BPC; ptrace_write_user() 166 if (off < (sizeof(struct pt_regs) >> 2)) ptrace_write_user() 167 ret = put_stack_long(tsk, off, data); ptrace_write_user() 169 else if (off >= (long)(&dummy->fpu >> 2) && ptrace_write_user() 170 off < (long)(&dummy->u_fpvalid >> 2)) { ptrace_write_user() 173 [off - (long)&dummy->fpu] = data; ptrace_write_user() 175 } else if (off == (long)(&dummy->u_fpvalid >> 2)) { ptrace_write_user() 513 "stb r1, @r0 ; cache off \n\t" invalidate_cache()
|
/linux-4.1.27/arch/mips/alchemy/common/ |
H A D | gpiolib.c | 120 static int alchemy_gpic_get(struct gpio_chip *chip, unsigned int off) alchemy_gpic_get() argument 122 return au1300_gpio_get_value(off + AU1300_GPIO_BASE); alchemy_gpic_get() 125 static void alchemy_gpic_set(struct gpio_chip *chip, unsigned int off, int v) alchemy_gpic_set() argument 127 au1300_gpio_set_value(off + AU1300_GPIO_BASE, v); alchemy_gpic_set() 130 static int alchemy_gpic_dir_input(struct gpio_chip *chip, unsigned int off) alchemy_gpic_dir_input() argument 132 return au1300_gpio_direction_input(off + AU1300_GPIO_BASE); alchemy_gpic_dir_input() 135 static int alchemy_gpic_dir_output(struct gpio_chip *chip, unsigned int off, alchemy_gpic_dir_output() argument 138 return au1300_gpio_direction_output(off + AU1300_GPIO_BASE, v); alchemy_gpic_dir_output() 141 static int alchemy_gpic_gpio_to_irq(struct gpio_chip *chip, unsigned int off) alchemy_gpic_gpio_to_irq() argument 143 return au1300_gpio_to_irq(off + AU1300_GPIO_BASE); alchemy_gpic_gpio_to_irq()
|
/linux-4.1.27/drivers/infiniband/hw/qib/ |
H A D | qib_keys.c | 160 size_t off; qib_lkey_ok() local 192 off = sge->addr - mr->user_base; qib_lkey_ok() 194 off + sge->length > mr->length || qib_lkey_ok() 201 off += mr->offset; qib_lkey_ok() 210 entries_spanned_by_off = off >> mr->page_shift; qib_lkey_ok() 211 off -= (entries_spanned_by_off << mr->page_shift); qib_lkey_ok() 217 while (off >= mr->map[m]->segs[n].length) { qib_lkey_ok() 218 off -= mr->map[m]->segs[n].length; qib_lkey_ok() 227 isge->vaddr = mr->map[m]->segs[n].vaddr + off; qib_lkey_ok() 228 isge->length = mr->map[m]->segs[n].length - off; qib_lkey_ok() 258 size_t off; qib_rkey_ok() local 292 off = vaddr - mr->iova; qib_rkey_ok() 293 if (unlikely(vaddr < mr->iova || off + len > mr->length || qib_rkey_ok() 300 off += mr->offset; qib_rkey_ok() 309 entries_spanned_by_off = off >> mr->page_shift; qib_rkey_ok() 310 off -= (entries_spanned_by_off << mr->page_shift); qib_rkey_ok() 316 while (off >= mr->map[m]->segs[n].length) { qib_rkey_ok() 317 off -= mr->map[m]->segs[n].length; qib_rkey_ok() 326 sge->vaddr = mr->map[m]->segs[n].vaddr + off; qib_rkey_ok() 327 sge->length = mr->map[m]->segs[n].length - off; qib_rkey_ok()
|
/linux-4.1.27/arch/arm/mach-ebsa110/ |
H A D | io.c | 350 u32 off; outsb() local 353 off = port << 2; outsb() 355 off = (port & ~1) << 1; outsb() 360 __raw_writesb((void __iomem *)ISAIO_BASE + off, from, len); outsb() 365 u32 off; insb() local 368 off = port << 2; insb() 370 off = (port & ~1) << 1; insb() 375 __raw_readsb((void __iomem *)ISAIO_BASE + off, from, len); insb() 383 u32 off; outsw() local 386 off = port << 2; outsw() 388 off = (port & ~1) << 1; outsw() 393 __raw_writesw((void __iomem *)ISAIO_BASE + off, from, len); outsw() 398 u32 off; insw() local 401 off = port << 2; insw() 403 off = (port & ~1) << 1; insw() 408 __raw_readsw((void __iomem *)ISAIO_BASE + off, from, len); insw() 420 u32 off = port << 1; outsl() local 425 __raw_writesw((void __iomem *)ISAIO_BASE + off, from, len << 1); outsl() 430 u32 off = port << 1; insl() local 435 __raw_readsw((void __iomem *)ISAIO_BASE + off, from, len << 1); insl()
|
/linux-4.1.27/include/linux/isdn/ |
H A D | capiutil.h | 19 #define CAPIMSG_U8(m, off) (m[off]) 20 #define CAPIMSG_U16(m, off) (m[off]|(m[(off)+1]<<8)) 21 #define CAPIMSG_U32(m, off) (m[off]|(m[(off)+1]<<8)|(m[(off)+2]<<16)|(m[(off)+3]<<24)) 33 static inline void capimsg_setu8(void *m, int off, __u8 val) capimsg_setu8() argument 35 ((__u8 *)m)[off] = val; capimsg_setu8() 38 static inline void capimsg_setu16(void *m, int off, __u16 val) capimsg_setu16() argument 40 ((__u8 *)m)[off] = val & 0xff; capimsg_setu16() 41 ((__u8 *)m)[off+1] = (val >> 8) & 0xff; capimsg_setu16() 44 static inline void capimsg_setu32(void *m, int off, __u32 val) capimsg_setu32() argument 46 ((__u8 *)m)[off] = val & 0xff; capimsg_setu32() 47 ((__u8 *)m)[off+1] = (val >> 8) & 0xff; capimsg_setu32() 48 ((__u8 *)m)[off+2] = (val >> 16) & 0xff; capimsg_setu32() 49 ((__u8 *)m)[off+3] = (val >> 24) & 0xff; capimsg_setu32()
|
/linux-4.1.27/drivers/net/ethernet/qlogic/netxen/ |
H A D | netxen_nic_hw.c | 37 #define CRB_BLK(off) ((off >> 20) & 0x3f) 38 #define CRB_SUBBLK(off) ((off >> 16) & 0xf) 40 #define CRB_HI(off) ((crb_hub_agt[CRB_BLK(off)] << 20) | ((off) & 0xf0000)) 62 #define PCI_OFFSET_FIRST_RANGE(adapter, off) \ 63 ((adapter)->ahw.pci_base0 + (off)) 64 #define PCI_OFFSET_SECOND_RANGE(adapter, off) \ 65 ((adapter)->ahw.pci_base1 + (off) - SECOND_PAGE_GROUP_START) 66 #define PCI_OFFSET_THIRD_RANGE(adapter, off) \ 67 ((adapter)->ahw.pci_base2 + (off) - THIRD_PAGE_GROUP_START) 70 unsigned long off) pci_base_offset() 72 if (ADDR_IN_RANGE(off, FIRST_PAGE_GROUP_START, FIRST_PAGE_GROUP_END)) pci_base_offset() 73 return PCI_OFFSET_FIRST_RANGE(adapter, off); pci_base_offset() 75 if (ADDR_IN_RANGE(off, SECOND_PAGE_GROUP_START, SECOND_PAGE_GROUP_END)) pci_base_offset() 76 return PCI_OFFSET_SECOND_RANGE(adapter, off); pci_base_offset() 78 if (ADDR_IN_RANGE(off, THIRD_PAGE_GROUP_START, THIRD_PAGE_GROUP_END)) pci_base_offset() 79 return PCI_OFFSET_THIRD_RANGE(adapter, off); pci_base_offset() 1118 * Returns < 0 if off is not valid, 1119 * 1 if window access is needed. 'off' is set to offset from 1121 * 0 if no window access is needed. 'off' is set to 2M addr 1122 * In: 'off' is offset from base in 128M pci map 1126 ulong off, void __iomem **addr) netxen_nic_pci_get_crb_addr_2M() 1131 if ((off >= NETXEN_CRB_MAX) || (off < NETXEN_PCI_CRBSPACE)) netxen_nic_pci_get_crb_addr_2M() 1134 off -= NETXEN_PCI_CRBSPACE; netxen_nic_pci_get_crb_addr_2M() 1139 m = &crb_128M_2M_map[CRB_BLK(off)].sub_block[CRB_SUBBLK(off)]; netxen_nic_pci_get_crb_addr_2M() 1141 if (m->valid && (m->start_128M <= off) && (m->end_128M > off)) { netxen_nic_pci_get_crb_addr_2M() 1143 (off - m->start_128M); netxen_nic_pci_get_crb_addr_2M() 1151 (off & MASK(16)); netxen_nic_pci_get_crb_addr_2M() 1156 * In: 'off' is offset from CRB space in 128M pci map 1157 * Out: 'off' is 2M pci map addr 1161 netxen_nic_pci_set_crbwindow_2M(struct netxen_adapter *adapter, ulong off) netxen_nic_pci_set_crbwindow_2M() argument 1166 off -= NETXEN_PCI_CRBSPACE; netxen_nic_pci_set_crbwindow_2M() 1168 window = CRB_HI(off); netxen_nic_pci_set_crbwindow_2M() 1174 "failed to set CRB window to %d off 0x%lx\n", netxen_nic_pci_set_crbwindow_2M() 1175 window, off); netxen_nic_pci_set_crbwindow_2M() 1183 ulong off = win_off; netxen_nic_map_indirect_address_128M() local 1188 off = NETXEN_CRB_NORMAL(win_off); netxen_nic_map_indirect_address_128M() 1190 addr = pci_base_offset(adapter, off); netxen_nic_map_indirect_address_128M() 1195 off -= NETXEN_PCI_CRBSPACE; netxen_nic_map_indirect_address_128M() 1198 *mem_ptr = ioremap(mem_base + (off & PAGE_MASK), PAGE_SIZE); netxen_nic_map_indirect_address_128M() 1200 addr = *mem_ptr + (off & (PAGE_SIZE - 1)); netxen_nic_map_indirect_address_128M() 1206 netxen_nic_hw_write_wx_128M(struct netxen_adapter *adapter, ulong off, u32 data) netxen_nic_hw_write_wx_128M() argument 1211 addr = netxen_nic_map_indirect_address_128M(adapter, off, &mem_ptr); netxen_nic_hw_write_wx_128M() 1215 if (ADDR_IN_WINDOW1(off)) { /* Window 1 */ netxen_nic_hw_write_wx_128M() 1233 netxen_nic_hw_read_wx_128M(struct netxen_adapter *adapter, ulong off) netxen_nic_hw_read_wx_128M() argument 1239 addr = netxen_nic_map_indirect_address_128M(adapter, off, &mem_ptr); netxen_nic_hw_read_wx_128M() 1243 if (ADDR_IN_WINDOW1(off)) { /* Window 1 */ netxen_nic_hw_read_wx_128M() 1261 netxen_nic_hw_write_wx_2M(struct netxen_adapter *adapter, ulong off, u32 data) netxen_nic_hw_write_wx_2M() argument 1267 rv = netxen_nic_pci_get_crb_addr_2M(adapter, off, &addr); netxen_nic_hw_write_wx_2M() 1278 netxen_nic_pci_set_crbwindow_2M(adapter, off); netxen_nic_hw_write_wx_2M() 1286 "%s: invalid offset: 0x%016lx\n", __func__, off); netxen_nic_hw_write_wx_2M() 1292 netxen_nic_hw_read_wx_2M(struct netxen_adapter *adapter, ulong off) netxen_nic_hw_read_wx_2M() argument 1299 rv = netxen_nic_pci_get_crb_addr_2M(adapter, off, &addr); netxen_nic_hw_read_wx_2M() 1308 netxen_nic_pci_set_crbwindow_2M(adapter, off); netxen_nic_hw_read_wx_2M() 1316 "%s: invalid offset: 0x%016lx\n", __func__, off); netxen_nic_hw_read_wx_2M() 1407 netxen_nic_pci_mem_access_direct(struct netxen_adapter *adapter, u64 off, netxen_nic_pci_mem_access_direct() argument 1417 ret = adapter->pci_set_window(adapter, off, &start); netxen_nic_pci_mem_access_direct() 1453 netxen_pci_camqm_read_2M(struct netxen_adapter *adapter, u64 off, u64 *data) netxen_pci_camqm_read_2M() argument 1456 NETXEN_PCI_CAMQM_2M_BASE + (off - NETXEN_PCI_CAMQM); netxen_pci_camqm_read_2M() 1464 netxen_pci_camqm_write_2M(struct netxen_adapter *adapter, u64 off, u64 data) netxen_pci_camqm_write_2M() argument 1467 NETXEN_PCI_CAMQM_2M_BASE + (off - NETXEN_PCI_CAMQM); netxen_pci_camqm_write_2M() 1478 u64 off, u64 data) netxen_nic_pci_mem_write_128M() 1485 if (off & 7) netxen_nic_pci_mem_write_128M() 1489 if (ADDR_IN_RANGE(off, NETXEN_ADDR_QDR_NET, netxen_nic_pci_mem_write_128M() 1496 off_lo = off & SIU_TEST_AGT_ADDR_MASK; netxen_nic_pci_mem_write_128M() 1497 off_hi = SIU_TEST_AGT_UPPER_ADDR(off); netxen_nic_pci_mem_write_128M() 1501 if (ADDR_IN_RANGE(off, NETXEN_ADDR_DDR_NET, NETXEN_ADDR_DDR_NET_MAX)) { netxen_nic_pci_mem_write_128M() 1507 off_lo = off & MIU_TEST_AGT_ADDR_MASK; netxen_nic_pci_mem_write_128M() 1512 if (ADDR_IN_RANGE(off, NETXEN_ADDR_OCM0, NETXEN_ADDR_OCM0_MAX) || netxen_nic_pci_mem_write_128M() 1513 ADDR_IN_RANGE(off, NETXEN_ADDR_OCM1, NETXEN_ADDR_OCM1_MAX)) { netxen_nic_pci_mem_write_128M() 1516 off, &data, 1); netxen_nic_pci_mem_write_128M() 1555 u64 off, u64 *data) netxen_nic_pci_mem_read_128M() 1563 if (off & 7) netxen_nic_pci_mem_read_128M() 1567 if (ADDR_IN_RANGE(off, NETXEN_ADDR_QDR_NET, netxen_nic_pci_mem_read_128M() 1574 off_lo = off & SIU_TEST_AGT_ADDR_MASK; netxen_nic_pci_mem_read_128M() 1575 off_hi = SIU_TEST_AGT_UPPER_ADDR(off); netxen_nic_pci_mem_read_128M() 1579 if (ADDR_IN_RANGE(off, NETXEN_ADDR_DDR_NET, NETXEN_ADDR_DDR_NET_MAX)) { netxen_nic_pci_mem_read_128M() 1585 off_lo = off & MIU_TEST_AGT_ADDR_MASK; netxen_nic_pci_mem_read_128M() 1590 if (ADDR_IN_RANGE(off, NETXEN_ADDR_OCM0, NETXEN_ADDR_OCM0_MAX) || netxen_nic_pci_mem_read_128M() 1591 ADDR_IN_RANGE(off, NETXEN_ADDR_OCM1, NETXEN_ADDR_OCM1_MAX)) { netxen_nic_pci_mem_read_128M() 1594 off, data, 0); netxen_nic_pci_mem_read_128M() 1637 u64 off, u64 data) netxen_nic_pci_mem_write_2M() 1644 if (off & 7) netxen_nic_pci_mem_write_2M() 1648 if (ADDR_IN_RANGE(off, NETXEN_ADDR_QDR_NET, netxen_nic_pci_mem_write_2M() 1655 if (ADDR_IN_RANGE(off, NETXEN_ADDR_DDR_NET, NETXEN_ADDR_DDR_NET_MAX)) { netxen_nic_pci_mem_write_2M() 1661 if (ADDR_IN_RANGE(off, NETXEN_ADDR_OCM0, NETXEN_ADDR_OCM0_MAX)) netxen_nic_pci_mem_write_2M() 1662 return netxen_nic_pci_mem_access_direct(adapter, off, &data, 1); netxen_nic_pci_mem_write_2M() 1667 off8 = off & 0xfffffff8; netxen_nic_pci_mem_write_2M() 1704 u64 off, u64 *data) netxen_nic_pci_mem_read_2M() 1712 if (off & 7) netxen_nic_pci_mem_read_2M() 1716 if (ADDR_IN_RANGE(off, NETXEN_ADDR_QDR_NET, netxen_nic_pci_mem_read_2M() 1723 if (ADDR_IN_RANGE(off, NETXEN_ADDR_DDR_NET, NETXEN_ADDR_DDR_NET_MAX)) { netxen_nic_pci_mem_read_2M() 1729 if (ADDR_IN_RANGE(off, NETXEN_ADDR_OCM0, NETXEN_ADDR_OCM0_MAX)) { netxen_nic_pci_mem_read_2M() 1731 off, data, 0); netxen_nic_pci_mem_read_2M() 1737 off8 = off & 0xfffffff8; netxen_nic_pci_mem_read_2M() 69 pci_base_offset(struct netxen_adapter *adapter, unsigned long off) pci_base_offset() argument 1125 netxen_nic_pci_get_crb_addr_2M(struct netxen_adapter *adapter, ulong off, void __iomem **addr) netxen_nic_pci_get_crb_addr_2M() argument 1477 netxen_nic_pci_mem_write_128M(struct netxen_adapter *adapter, u64 off, u64 data) netxen_nic_pci_mem_write_128M() argument 1554 netxen_nic_pci_mem_read_128M(struct netxen_adapter *adapter, u64 off, u64 *data) netxen_nic_pci_mem_read_128M() argument 1636 netxen_nic_pci_mem_write_2M(struct netxen_adapter *adapter, u64 off, u64 data) netxen_nic_pci_mem_write_2M() argument 1703 netxen_nic_pci_mem_read_2M(struct netxen_adapter *adapter, u64 off, u64 *data) netxen_nic_pci_mem_read_2M() argument
|
/linux-4.1.27/drivers/memstick/host/ |
H A D | jmb38x_ms.c | 160 unsigned int off = 0; jmb38x_ms_read_data() local 163 buf[off++] = host->io_word[0] & 0xff; jmb38x_ms_read_data() 170 return off; jmb38x_ms_read_data() 175 *(unsigned int *)(buf + off) = __raw_readl(host->addr + DATA); jmb38x_ms_read_data() 177 off += 4; jmb38x_ms_read_data() 184 buf[off++] = host->io_word[0] & 0xff; jmb38x_ms_read_data() 192 return off; jmb38x_ms_read_data() 199 unsigned int off = 0; jmb38x_ms_read_reg_data() local 202 buf[off++] = host->io_word[0] & 0xff; jmb38x_ms_read_reg_data() 209 return off; jmb38x_ms_read_reg_data() 212 buf[off++] = host->io_word[1] & 0xff; jmb38x_ms_read_reg_data() 218 return off; jmb38x_ms_read_reg_data() 225 unsigned int off = 0; jmb38x_ms_write_data() local 229 host->io_word[0] |= buf[off++] << (host->io_pos * 8); jmb38x_ms_write_data() 241 return off; jmb38x_ms_write_data() 245 return off; jmb38x_ms_write_data() 251 __raw_writel(*(unsigned int *)(buf + off), jmb38x_ms_write_data() 254 off += 4; jmb38x_ms_write_data() 259 host->io_word[0] |= buf[off + 2] << 16; jmb38x_ms_write_data() 262 host->io_word[0] |= buf[off + 1] << 8; jmb38x_ms_write_data() 265 host->io_word[0] |= buf[off]; jmb38x_ms_write_data() 269 off += host->io_pos; jmb38x_ms_write_data() 271 return off; jmb38x_ms_write_data() 278 unsigned int off = 0; jmb38x_ms_write_reg_data() local 282 host->io_word[0] |= buf[off++] << (host->io_pos * 8); jmb38x_ms_write_reg_data() 288 return off; jmb38x_ms_write_reg_data() 292 host->io_word[1] |= buf[off++] << (host->io_pos * 8); jmb38x_ms_write_reg_data() 297 return off; jmb38x_ms_write_reg_data() 303 unsigned int off; jmb38x_ms_transfer_data() local 311 off = host->req->sg.offset + host->block_pos; jmb38x_ms_transfer_data() 314 off = 0; jmb38x_ms_transfer_data() 322 off >> PAGE_SHIFT); jmb38x_ms_transfer_data() 323 p_off = offset_in_page(off); jmb38x_ms_transfer_data() 352 off += t_size; jmb38x_ms_transfer_data() 716 dev_dbg(&host->chip->pdev->dev, "power off\n"); jmb38x_ms_set_param() 1011 dev_dbg(&jm->pdev->dev, "interrupts off\n"); jmb38x_ms_remove()
|
H A D | tifm_ms.c | 90 unsigned int off = 0; tifm_ms_read_data() local 93 buf[off++] = host->io_word & 0xff; tifm_ms_read_data() 100 return off; tifm_ms_read_data() 105 *(unsigned int *)(buf + off) = __raw_readl(sock->addr tifm_ms_read_data() 108 off += 4; tifm_ms_read_data() 115 buf[off++] = host->io_word & 0xff; tifm_ms_read_data() 123 return off; tifm_ms_read_data() 130 unsigned int off = 0; tifm_ms_write_data() local 134 host->io_word |= buf[off++] << (host->io_pos * 8); tifm_ms_write_data() 148 return off; tifm_ms_write_data() 152 return off; tifm_ms_write_data() 159 __raw_writel(*(unsigned int *)(buf + off), tifm_ms_write_data() 162 off += 4; tifm_ms_write_data() 167 host->io_word |= buf[off + 2] << 16; tifm_ms_write_data() 170 host->io_word |= buf[off + 1] << 8; tifm_ms_write_data() 173 host->io_word |= buf[off]; tifm_ms_write_data() 177 off += host->io_pos; tifm_ms_write_data() 179 return off; tifm_ms_write_data() 186 unsigned int off; tifm_ms_transfer_data() local 194 off = host->req->sg.offset + host->block_pos; tifm_ms_transfer_data() 197 off = 0; tifm_ms_transfer_data() 207 off >> PAGE_SHIFT); tifm_ms_transfer_data() 208 p_off = offset_in_page(off); tifm_ms_transfer_data() 232 off += t_size; tifm_ms_transfer_data()
|
/linux-4.1.27/drivers/vfio/platform/ |
H A D | vfio_platform_common.c | 266 loff_t off) vfio_platform_read_mmio() 281 if (count >= 4 && !(off % 4)) { vfio_platform_read_mmio() 284 val = ioread32(reg.ioaddr + off); vfio_platform_read_mmio() 289 } else if (count >= 2 && !(off % 2)) { vfio_platform_read_mmio() 292 val = ioread16(reg.ioaddr + off); vfio_platform_read_mmio() 300 val = ioread8(reg.ioaddr + off); vfio_platform_read_mmio() 310 off += filled; vfio_platform_read_mmio() 324 loff_t off = *ppos & VFIO_PLATFORM_OFFSET_MASK; vfio_platform_read() local 334 buf, count, off); vfio_platform_read() 343 loff_t off) vfio_platform_write_mmio() 358 if (count >= 4 && !(off % 4)) { vfio_platform_write_mmio() 363 iowrite32(val, reg.ioaddr + off); vfio_platform_write_mmio() 366 } else if (count >= 2 && !(off % 2)) { vfio_platform_write_mmio() 371 iowrite16(val, reg.ioaddr + off); vfio_platform_write_mmio() 379 iowrite8(val, reg.ioaddr + off); vfio_platform_write_mmio() 386 off += filled; vfio_platform_write_mmio() 400 loff_t off = *ppos & VFIO_PLATFORM_OFFSET_MASK; vfio_platform_write() local 410 buf, count, off); vfio_platform_write() 264 vfio_platform_read_mmio(struct vfio_platform_region reg, char __user *buf, size_t count, loff_t off) vfio_platform_read_mmio() argument 341 vfio_platform_write_mmio(struct vfio_platform_region reg, const char __user *buf, size_t count, loff_t off) vfio_platform_write_mmio() argument
|
/linux-4.1.27/drivers/power/reset/ |
H A D | qnap-poweroff.c | 2 * QNAP Turbo NAS Board power off. Can also be used on Synology devices. 44 { .compatible = "qnap,power-off", 47 { .compatible = "synology,power-off", 62 pr_err("%s: triggering power-off...\n", __func__); qnap_power_off() 73 /* send the power-off command to PIC */ qnap_power_off() 139 MODULE_DESCRIPTION("QNAP Power off driver");
|
H A D | as3722-poweroff.c | 2 * Power off driver for ams AS3722 device. 84 .name = "as3722-power-off", 92 MODULE_DESCRIPTION("Power off driver for ams AS3722 PMIC Device"); 93 MODULE_ALIAS("platform:as3722-power-off");
|
/linux-4.1.27/include/net/ |
H A D | udplite.h | 102 const int off = skb_transport_offset(skb); udplite_csum_outgoing() local 103 const int len = skb->len - off; udplite_csum_outgoing() 105 csum = skb_checksum(skb, off, (cscov > len)? len : cscov, csum); udplite_csum_outgoing() 117 const int off = skb_transport_offset(skb); udplite_csum() local 118 int len = skb->len - off; udplite_csum() 127 return skb_checksum(skb, off, len, 0); udplite_csum()
|
/linux-4.1.27/drivers/mtd/ |
H A D | afs.c | 71 u_int off, u_int mask) afs_read_footer() 74 u_int ptr = off + mtd->erasesize - sizeof(fs); afs_read_footer() 122 if (*img_start > off) afs_read_footer() 169 u_int mask, off, idx, sz; parse_afs_partitions() local 174 * This is the address mask; we use this to mask off out of parse_afs_partitions() 184 for (idx = off = sz = 0; off < mtd->size; off += mtd->erasesize) { parse_afs_partitions() 188 ret = afs_read_footer(mtd, &img_ptr, &iis_ptr, off, mask); parse_afs_partitions() 217 for (idx = off = 0; off < mtd->size; off += mtd->erasesize) { parse_afs_partitions() 222 ret = afs_read_footer(mtd, &img_ptr, &iis_ptr, off, mask); parse_afs_partitions() 70 afs_read_footer(struct mtd_info *mtd, u_int *img_start, u_int *iis_start, u_int off, u_int mask) afs_read_footer() argument
|
/linux-4.1.27/drivers/base/power/ |
H A D | domain_governor.c | 95 * default_power_down_ok - Default generic PM domain power off governor routine. 131 * the state of all devices in it and the power off/power on operations default_power_down_ok() 144 * Check if subdomains can be off for enough time. default_power_down_ok() 146 * All subdomains have been powered off already at this point. default_power_down_ok() 156 * Check if the subdomain is allowed to be off long enough for default_power_down_ok() 157 * the current domain to turn off and on (that's how much time default_power_down_ok() 168 * Check if the devices in the domain can be off enough time. default_power_down_ok() 178 * Check if the device is allowed to be off long enough for the default_power_down_ok() 179 * domain to turn off and on (that's how much time it will default_power_down_ok() 207 * If the computed minimum device off time is negative, there are no default_power_down_ok() 209 * "off" state. default_power_down_ok() 215 * The difference between the computed minimum subdomain or device off default_power_down_ok() 217 * theoretical time this domain can spend in the "off" state. default_power_down_ok()
|
/linux-4.1.27/drivers/power/ |
H A D | power_supply_sysfs.c | 73 const ptrdiff_t off = attr - power_supply_attrs; power_supply_show_property() local 76 if (off == POWER_SUPPLY_PROP_TYPE) { power_supply_show_property() 79 ret = power_supply_get_property(psy, off, &value); power_supply_show_property() 92 if (off == POWER_SUPPLY_PROP_STATUS) power_supply_show_property() 94 else if (off == POWER_SUPPLY_PROP_CHARGE_TYPE) power_supply_show_property() 96 else if (off == POWER_SUPPLY_PROP_HEALTH) power_supply_show_property() 98 else if (off == POWER_SUPPLY_PROP_TECHNOLOGY) power_supply_show_property() 100 else if (off == POWER_SUPPLY_PROP_CAPACITY_LEVEL) power_supply_show_property() 102 else if (off == POWER_SUPPLY_PROP_TYPE) power_supply_show_property() 104 else if (off == POWER_SUPPLY_PROP_SCOPE) power_supply_show_property() 106 else if (off >= POWER_SUPPLY_PROP_MODEL_NAME) power_supply_show_property() 117 const ptrdiff_t off = attr - power_supply_attrs; power_supply_store_property() local 128 ret = psy->desc->set_property(psy, off, &value); power_supply_store_property()
|
/linux-4.1.27/drivers/leds/ |
H A D | leds-asic3.c | 20 * Hence we turn the LEDs on/off via the TimeBase register. 25 * This driver supports hardware blinking with an on+off 65 u32 off; blink_set() local 74 off = MS_TO_CLK(500); blink_set() 77 off = MS_TO_CLK(*delay_off); blink_set() 78 if ((on + off) > MAX_CLK) blink_set() 83 asic3_write_register(asic, (base + ASIC3_LED_PeriodTime), (on + off)); blink_set() 89 *delay_off = CLK_TO_MS(off); blink_set()
|
/linux-4.1.27/drivers/net/wireless/iwlwifi/dvm/ |
H A D | led.c | 68 /* Set led register off */ iwlagn_led_enable() 78 * Need to compensate on the led on/off time per HW according to the deviation 118 unsigned long off) iwl_led_cmd() 129 if (priv->blink_on == on && priv->blink_off == off) iwl_led_cmd() 132 if (off == 0) { iwl_led_cmd() 141 led_cmd.off = iwl_blink_compensation(priv, off, iwl_led_cmd() 147 priv->blink_off = off; iwl_led_cmd() 116 iwl_led_cmd(struct iwl_priv *priv, unsigned long on, unsigned long off) iwl_led_cmd() argument
|
/linux-4.1.27/drivers/rtc/ |
H A D | rtc-bq4802.c | 29 static u8 bq4802_read_io(struct bq4802 *p, int off) bq4802_read_io() argument 31 return inb(p->ioport + off); bq4802_read_io() 34 static void bq4802_write_io(struct bq4802 *p, int off, u8 val) bq4802_write_io() argument 36 outb(val, p->ioport + off); bq4802_write_io() 39 static u8 bq4802_read_mem(struct bq4802 *p, int off) bq4802_read_mem() argument 41 return readb(p->regs + off); bq4802_read_mem() 44 static void bq4802_write_mem(struct bq4802 *p, int off, u8 val) bq4802_write_mem() argument 46 writeb(val, p->regs + off); bq4802_write_mem()
|
/linux-4.1.27/drivers/staging/sm750fb/ |
H A D | ddk750_power.h | 13 #define setDAC(off) \ 18 off)); \
|
H A D | ddk750_display.c | 21 /* Turn on/off the Panel display control */ setDisplayControl() 58 /* When turning off, there is no rule on the programming setDisplayControl() 59 * sequence since whenever the clock is off, then it does not setDisplayControl() 113 /* When turning off, there is no rule on the programming setDisplayControl() 114 * sequence since whenever the clock is off, then it does not setDisplayControl() 138 /* Do not wait when the Primary PLL is off or display control is already off. waitNextVerticalSync() 171 /* Do not wait when the Primary PLL is off or display control is already off. waitNextVerticalSync() 247 /*se blank off */ ddk750_setLogicalDispOut()
|
/linux-4.1.27/drivers/input/misc/ |
H A D | mma8450.c | 61 static int mma8450_read(struct mma8450 *m, unsigned off) mma8450_read() argument 66 ret = i2c_smbus_read_byte_data(c, off); mma8450_read() 70 off, ret); mma8450_read() 75 static int mma8450_write(struct mma8450 *m, unsigned off, u8 v) mma8450_write() argument 80 error = i2c_smbus_write_byte_data(c, off, v); mma8450_write() 84 off, error); mma8450_write() 91 static int mma8450_read_block(struct mma8450 *m, unsigned off, mma8450_read_block() argument 97 err = i2c_smbus_read_i2c_block_data(c, off, size, buf); mma8450_read_block()
|
/linux-4.1.27/arch/mips/bcm47xx/ |
H A D | prom.c | 59 unsigned long off; prom_init_mem() local 76 off = CPHYSADDR((unsigned long)prom_init); prom_init_mem() 82 /* Loop condition may be not enough, off may be over 1 MiB */ prom_init_mem() 83 if (off + mem >= max) { prom_init_mem() 139 unsigned long off = (unsigned long)prom_init; bcm47xx_prom_highmem_init() local 163 off = EXTVBASE + __pa(off); bcm47xx_prom_highmem_init() 165 if (!memcmp(prom_init, (void *)(off + extmem), 16)) bcm47xx_prom_highmem_init()
|
H A D | nvram.c | 59 u32 off; nvram_find_and_copy() local 69 off = FLASH_MIN; nvram_find_and_copy() 70 while (off <= lim) { nvram_find_and_copy() 72 size = find_nvram_size(iobase + off); nvram_find_and_copy() 74 header = (struct nvram_header *)(iobase + off - size); nvram_find_and_copy() 77 off <<= 1; nvram_find_and_copy()
|
/linux-4.1.27/arch/mips/cobalt/ |
H A D | reset.c | 27 led_trigger_register_simple("power-off", &power_off_led_trigger); ledtrig_power_off_init() 35 * turn on power off LED on RaQ cobalt_machine_halt()
|
/linux-4.1.27/arch/powerpc/sysdev/ |
H A D | scom.c | 111 loff_t off = *ppos; scom_debug_read() local 117 if (off < 0 || (off & 7) || (count & 7)) scom_debug_read() 119 reg = off >> 3; scom_debug_read() 148 loff_t off = *ppos; scom_debug_write() local 154 if (off < 0 || (off & 7) || (count & 7)) scom_debug_write() 156 reg = off >> 3; scom_debug_write()
|
H A D | mv64x60_pci.c | 30 loff_t off, size_t count) mv64x60_hs_reg_read() 35 if (off > 0) mv64x60_hs_reg_read() 51 loff_t off, size_t count) mv64x60_hs_reg_write() 56 if (off > 0) mv64x60_hs_reg_write() 28 mv64x60_hs_reg_read(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) mv64x60_hs_reg_read() argument 49 mv64x60_hs_reg_write(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) mv64x60_hs_reg_write() argument
|
/linux-4.1.27/arch/sh/include/mach-common/mach/ |
H A D | hp6xx.h | 33 /* HP Palmtop 620lx/660lx speaker on/off */ 49 /* HP Jornada 680/690 speaker on/off */
|
/linux-4.1.27/arch/arm/mach-mvebu/ |
H A D | netxbig.c | 67 * 0 | min (off) 73 * 0 | fix off 76 * 3 | blink blue on=1 sec and blue off=1 sec 77 * 4 | blink red on=1 sec and red off=1 sec 80 * 7 | blink blue on=0.5 sec and blue off=2.5 sec 84 * 0 | fix off 87 * 3 | blink blue on=1 sec and blue off=1 sec 88 * 4 | blink red on=1 sec and red off=1 sec
|
/linux-4.1.27/fs/btrfs/ |
H A D | struct-funcs.c | 54 unsigned long off, \ 58 unsigned long offset = part_offset + off; \ 72 res = get_unaligned_le##bits(p + off); \ 84 res = get_unaligned_le##bits(p + off); \ 93 void *ptr, unsigned long off, u##bits val, \ 97 unsigned long offset = part_offset + off; \ 110 put_unaligned_le##bits(val, p + off); \ 123 put_unaligned_le##bits(val, p + off); \
|
/linux-4.1.27/drivers/xen/xenfs/ |
H A D | xenstored.c | 12 size_t size, loff_t *off) xsd_read() 15 return simple_read_from_buffer(buf, size, off, str, strlen(str)); xsd_read() 11 xsd_read(struct file *file, char __user *buf, size_t size, loff_t *off) xsd_read() argument
|
/linux-4.1.27/drivers/staging/unisys/visorchannel/ |
H A D | visorchannel.h | 40 ulong off, uuid_le guid); 47 ulong off, uuid_le guid); 71 struct seq_file *seq, u32 off); 73 int off, int len, struct seq_file *seq);
|
/linux-4.1.27/drivers/usb/gadget/ |
H A D | u_os_desc.h | 63 static inline u8 *usb_ext_prop_data_len_ptr(u8 *buf, size_t off) usb_ext_prop_data_len_ptr() argument 66 USB_EXT_PROP_DW_PROPERTY_DATA_LENGTH + off); usb_ext_prop_data_len_ptr() 69 static inline u8 *usb_ext_prop_data_ptr(u8 *buf, size_t off) usb_ext_prop_data_ptr() argument 71 return __usb_ext_prop_ptr(buf, USB_EXT_PROP_B_PROPERTY_DATA + off); usb_ext_prop_data_ptr()
|
/linux-4.1.27/include/linux/platform_data/ |
H A D | leds-s3c24xx.h | 17 #define S3C24XX_LEDF_TRISTATE (1<<1) /* tristate to turn off */
|
H A D | mmc-omap.h | 68 /* Try to sleep or power off when possible */ 71 /* If using power_saving and the MMC power is not to go off */ 74 /* eMMC does not handle power off when not in sleep state */ 77 /* Regulator off remapped to sleep */
|
/linux-4.1.27/include/linux/regulator/ |
H A D | db8500-prcmu.h | 41 * interrupts turned off.
|
/linux-4.1.27/include/uapi/linux/ |
H A D | hpet.h | 17 #define HPET_IE_OFF _IO('h', 0x02) /* interrupt off */
|
/linux-4.1.27/arch/ia64/sn/kernel/ |
H A D | idle.c | 16 * Turn the activity LED off. snidle()
|
/linux-4.1.27/arch/m32r/mm/ |
H A D | cache.c | 19 #define MCCR_ICM (1UL << 1) /* I-cache mode [0:off,1:on] */ 20 #define MCCR_DCM (1UL << 0) /* D-cache mode [0:off,1:on] */ 34 #define MCCR_ICM (1UL << 0) /* I-cache mode [0:off,1:on] */ 35 #define MCCR_DCM (1UL << 1) /* D-cache mode [0:off,1:on] */
|
/linux-4.1.27/arch/arm/mach-omap2/ |
H A D | vc44xx_data.c | 92 * Voltage levels for different operating modes: on, sleep, retention and off 103 .off = OMAP4_OFF_VOLTAGE_UV, 110 .off = OMAP4_OFF_VOLTAGE_UV, 117 .off = OMAP4_OFF_VOLTAGE_UV,
|
H A D | vc3xxx_data.c | 77 * Voltage levels for different operating modes: on, sleep, retention and off 88 .off = OMAP3_OFF_VOLTAGE_UV, 95 .off = OMAP3_OFF_VOLTAGE_UV,
|
/linux-4.1.27/fs/cifs/ |
H A D | cifs_dfs_ref.c | 81 /* trim off any trailing delimiters */ cifs_build_devname() 149 int off, noff; cifs_compose_mount_options() local 185 off = 0; cifs_compose_mount_options() 189 off += 5; cifs_compose_mount_options() 193 tkn_e = strchr(sb_mountdata + off, sep); cifs_compose_mount_options() 195 noff = strlen(sb_mountdata + off); cifs_compose_mount_options() 197 noff = tkn_e - (sb_mountdata + off) + 1; cifs_compose_mount_options() 199 if (strncasecmp(sb_mountdata + off, "unc=", 4) == 0) { cifs_compose_mount_options() 200 off += noff; cifs_compose_mount_options() 203 if (strncasecmp(sb_mountdata + off, "ip=", 3) == 0) { cifs_compose_mount_options() 204 off += noff; cifs_compose_mount_options() 207 if (strncasecmp(sb_mountdata + off, "prefixpath=", 11) == 0) { cifs_compose_mount_options() 208 off += noff; cifs_compose_mount_options() 211 strncat(mountdata, sb_mountdata + off, noff); cifs_compose_mount_options() 212 off += noff; cifs_compose_mount_options() 214 strcat(mountdata, sb_mountdata + off); cifs_compose_mount_options()
|
/linux-4.1.27/kernel/bpf/ |
H A D | verifier.c | 119 * When type PTR_TO_MAP_VALUE_OR_NULL passes through 'if (reg != 0) goto +off' 340 insn->off, insn->src_reg); print_bpf_insn() 345 insn->dst_reg, insn->off, print_bpf_insn() 358 insn->off, insn->imm); print_bpf_insn() 367 insn->src_reg, insn->off); print_bpf_insn() 393 insn->code, insn->off); print_bpf_insn() 400 insn->src_reg, insn->off); print_bpf_insn() 405 insn->imm, insn->off); print_bpf_insn() 536 static int check_stack_write(struct verifier_state *state, int off, int size, check_stack_write() argument 540 /* caller checked that off % size == 0 and -MAX_BPF_STACK <= off < 0, check_stack_write() 541 * so it's aligned access and [off, off + size) are within stack limits check_stack_write() 556 state->spilled_regs[(MAX_BPF_STACK + off) / BPF_REG_SIZE] = check_stack_write() 560 state->stack_slot_type[MAX_BPF_STACK + off + i] = STACK_SPILL; check_stack_write() 563 state->spilled_regs[(MAX_BPF_STACK + off) / BPF_REG_SIZE] = check_stack_write() 567 state->stack_slot_type[MAX_BPF_STACK + off + i] = STACK_MISC; check_stack_write() 572 static int check_stack_read(struct verifier_state *state, int off, int size, check_stack_read() argument 578 slot_type = &state->stack_slot_type[MAX_BPF_STACK + off]; check_stack_read() 595 state->spilled_regs[(MAX_BPF_STACK + off) / BPF_REG_SIZE]; check_stack_read() 600 verbose("invalid read from stack off %d+%d size %d\n", check_stack_read() 601 off, i, size); check_stack_read() 613 static int check_map_access(struct verifier_env *env, u32 regno, int off, check_map_access() argument 618 if (off < 0 || off + size > map->value_size) { check_map_access() 619 verbose("invalid access to map value, value_size=%d off=%d size=%d\n", check_map_access() 620 map->value_size, off, size); check_map_access() 627 static int check_ctx_access(struct verifier_env *env, int off, int size, check_ctx_access() argument 631 env->prog->aux->ops->is_valid_access(off, size, t)) check_ctx_access() 634 verbose("invalid bpf_context access off=%d size=%d\n", off, size); check_ctx_access() 638 /* check whether memory at (regno + off) is accessible for t = (read | write) 644 static int check_mem_access(struct verifier_env *env, u32 regno, int off, check_mem_access() argument 655 if (off % size != 0) { check_mem_access() 656 verbose("misaligned access off %d size %d\n", off, size); check_mem_access() 661 err = check_map_access(env, regno, off, size); check_mem_access() 666 err = check_ctx_access(env, off, size, t); check_mem_access() 671 if (off >= 0 || off < -MAX_BPF_STACK) { check_mem_access() 672 verbose("invalid stack off=%d size=%d\n", off, size); check_mem_access() 676 err = check_stack_write(state, off, size, value_regno); check_mem_access() 678 err = check_stack_read(state, off, size, value_regno); check_mem_access() 709 err = check_mem_access(env, insn->dst_reg, insn->off, check_xadd() 715 return check_mem_access(env, insn->dst_reg, insn->off, check_xadd() 728 int off, i; check_stack_boundary() local 733 off = regs[regno].imm; check_stack_boundary() 734 if (off >= 0 || off < -MAX_BPF_STACK || off + access_size > 0 || check_stack_boundary() 736 verbose("invalid stack type R%d off=%d access_size=%d\n", check_stack_boundary() 737 regno, off, access_size); check_stack_boundary() 742 if (state->stack_slot_type[MAX_BPF_STACK + off + i] != STACK_MISC) { check_stack_boundary() 743 verbose("invalid indirect read from stack off %d+%d size %d\n", check_stack_boundary() 744 off, i, access_size); check_stack_boundary() 923 insn->off != 0 || insn->imm != 0) { check_alu_op() 928 if (insn->src_reg != BPF_REG_0 || insn->off != 0 || check_alu_op() 948 if (insn->imm != 0 || insn->off != 0) { check_alu_op() 958 if (insn->src_reg != BPF_REG_0 || insn->off != 0) { check_alu_op() 996 if (insn->imm != 0 || insn->off != 0) { check_alu_op() 1005 if (insn->src_reg != BPF_REG_0 || insn->off != 0) { check_alu_op() 1093 /* if (imm == imm) goto pc+off; check_cond_jmp_op() 1096 *insn_idx += insn->off; check_cond_jmp_op() 1099 /* if (imm != imm) goto pc+off; check_cond_jmp_op() 1107 other_branch = push_stack(env, *insn_idx + insn->off + 1, *insn_idx); check_cond_jmp_op() 1169 if (insn->off != 0) { check_ld_imm() 1229 if (insn->dst_reg != BPF_REG_0 || insn->off != 0 || check_ld_abs() 1401 ret = push_insn(t, t + insns[t].off + 1, check_cfg() 1420 ret = push_insn(t, t + insns[t].off + 1, BRANCH, env); check_cfg() 1652 /* check that memory (src_reg + off) is readable, do_check() 1655 err = check_mem_access(env, insn->src_reg, insn->off, do_check() 1668 * dst_reg = *(u32 *)(src_reg + off) do_check() 1677 * dst_reg = *(u32*) (src_reg + off) do_check() 1710 /* check that memory (dst_reg + off) is writeable */ do_check() 1711 err = check_mem_access(env, insn->dst_reg, insn->off, do_check() 1728 /* check that memory (dst_reg + off) is writeable */ do_check() 1729 err = check_mem_access(env, insn->dst_reg, insn->off, do_check() 1740 insn->off != 0 || do_check() 1760 insn_idx += insn->off + 1; do_check() 1847 insn[1].off != 0) { replace_map_fd_with_map_ptr() 1945 if (i < pos && i + insn->off + 1 > pos) adjust_branches() 1946 insn->off += delta; adjust_branches() 1947 else if (i > pos + delta && i + insn->off + 1 <= pos + delta) adjust_branches() 1948 insn->off -= delta; adjust_branches() 1979 insn->off, insn_buf); convert_ctx_accesses() 2106 /* program is valid, convert *(u32*)(ctx + off) accesses */ bpf_check()
|
H A D | core.c | 290 int off; __bpf_prog_run() local 436 insn += insn->off; __bpf_prog_run() 440 insn += insn->off; __bpf_prog_run() 446 insn += insn->off; __bpf_prog_run() 452 insn += insn->off; __bpf_prog_run() 458 insn += insn->off; __bpf_prog_run() 464 insn += insn->off; __bpf_prog_run() 470 insn += insn->off; __bpf_prog_run() 476 insn += insn->off; __bpf_prog_run() 482 insn += insn->off; __bpf_prog_run() 488 insn += insn->off; __bpf_prog_run() 494 insn += insn->off; __bpf_prog_run() 500 insn += insn->off; __bpf_prog_run() 506 insn += insn->off; __bpf_prog_run() 512 insn += insn->off; __bpf_prog_run() 518 insn += insn->off; __bpf_prog_run() 528 *(SIZE *)(unsigned long) (DST + insn->off) = SRC; \ __bpf_prog_run() 531 *(SIZE *)(unsigned long) (DST + insn->off) = IMM; \ __bpf_prog_run() 534 DST = *(SIZE *)(unsigned long) (SRC + insn->off); \ __bpf_prog_run() 544 (DST + insn->off)); __bpf_prog_run() 548 (DST + insn->off)); __bpf_prog_run() 551 off = IMM; __bpf_prog_run() 575 ptr = bpf_load_pointer((struct sk_buff *) (unsigned long) CTX, off, 4, &tmp); __bpf_prog_run() 583 off = IMM; __bpf_prog_run() 585 ptr = bpf_load_pointer((struct sk_buff *) (unsigned long) CTX, off, 2, &tmp); __bpf_prog_run() 593 off = IMM; __bpf_prog_run() 595 ptr = bpf_load_pointer((struct sk_buff *) (unsigned long) CTX, off, 1, &tmp); __bpf_prog_run() 603 off = IMM + SRC; __bpf_prog_run() 606 off = IMM + SRC; __bpf_prog_run() 609 off = IMM + SRC; __bpf_prog_run()
|
/linux-4.1.27/drivers/net/ethernet/brocade/bna/ |
H A D | cna_fwimg.c | 74 bfa_cb_image_get_chunk(enum bfi_asic_gen asic_gen, u32 off) bfa_cb_image_get_chunk() argument 78 return (bfi_image_ct_cna + off); bfa_cb_image_get_chunk() 80 return (bfi_image_ct2_cna + off); bfa_cb_image_get_chunk()
|
/linux-4.1.27/arch/x86/kernel/ |
H A D | pci-swiotlb.c | 77 * if 4GB or more detected (and iommu=off not set) return 1 82 /* don't initialize swiotlb if iommu=off (no_iommu=1) */ pci_swiotlb_detect_4gb() 104 /* An IOMMU turned us off. */ pci_swiotlb_late_init()
|
H A D | i8253.c | 34 * - when local APIC timer is active (PIT is switched off) init_pit_clocksource()
|
/linux-4.1.27/arch/arm64/kernel/ |
H A D | sys.c | 31 unsigned long fd, off_t off) sys_mmap() 33 if (offset_in_page(off) != 0) sys_mmap() 36 return sys_mmap_pgoff(addr, len, prot, flags, fd, off >> PAGE_SHIFT); sys_mmap() 29 sys_mmap(unsigned long addr, unsigned long len, unsigned long prot, unsigned long flags, unsigned long fd, off_t off) sys_mmap() argument
|
/linux-4.1.27/arch/arm64/kvm/ |
H A D | guest.c | 55 * off the index in the "array". get_core_reg() 60 u32 off; get_core_reg() local 63 off = core_reg_offset_from_id(reg->id); get_core_reg() 64 if (off >= nr_regs || get_core_reg() 65 (off + (KVM_REG_SIZE(reg->id) / sizeof(__u32))) >= nr_regs) get_core_reg() 68 if (copy_to_user(uaddr, ((u32 *)regs) + off, KVM_REG_SIZE(reg->id))) get_core_reg() 81 u64 off; set_core_reg() local 85 off = core_reg_offset_from_id(reg->id); set_core_reg() 86 if (off >= nr_regs || set_core_reg() 87 (off + (KVM_REG_SIZE(reg->id) / sizeof(__u32))) >= nr_regs) set_core_reg() 98 if (off == KVM_REG_ARM_CORE_REG(regs.pstate)) { set_core_reg() 117 memcpy((u32 *)regs + off, valp, KVM_REG_SIZE(reg->id)); set_core_reg()
|
/linux-4.1.27/arch/arm/mach-imx/ |
H A D | cpuidle-imx6sx.c | 71 .desc = "Clock off", 73 /* WAIT + ARM power off */ 84 .desc = "ARM power off",
|
H A D | cpuidle-imx5.c | 28 .desc = "CPU state retained,powered off",
|
/linux-4.1.27/arch/sparc/lib/ |
H A D | checksum_32.S | 191 #define CSUMCOPY_BIGCHUNK_ALIGNED(src, dst, sum, off, t0, t1, t2, t3, t4, t5, t6, t7) \ 192 ldd [src + off + 0x00], t0; \ 193 ldd [src + off + 0x08], t2; \ 195 ldd [src + off + 0x10], t4; \ 197 ldd [src + off + 0x18], t6; \ 199 std t0, [dst + off + 0x00]; \ 201 std t2, [dst + off + 0x08]; \ 203 std t4, [dst + off + 0x10]; \ 205 std t6, [dst + off + 0x18]; \ 213 #define CSUMCOPY_BIGCHUNK(src, dst, sum, off, t0, t1, t2, t3, t4, t5, t6, t7) \ 214 ldd [src + off + 0x00], t0; \ 215 ldd [src + off + 0x08], t2; \ 216 ldd [src + off + 0x10], t4; \ 217 ldd [src + off + 0x18], t6; \ 218 st t0, [dst + off + 0x00]; \ 220 st t1, [dst + off + 0x04]; \ 222 st t2, [dst + off + 0x08]; \ 224 st t3, [dst + off + 0x0c]; \ 226 st t4, [dst + off + 0x10]; \ 228 st t5, [dst + off + 0x14]; \ 230 st t6, [dst + off + 0x18]; \ 232 st t7, [dst + off + 0x1c]; \ 236 #define CSUMCOPY_LASTCHUNK(src, dst, sum, off, t0, t1, t2, t3) \ 237 ldd [src - off - 0x08], t0; \ 238 ldd [src - off - 0x00], t2; \ 240 st t0, [dst - off - 0x08]; \ 242 st t1, [dst - off - 0x04]; \ 244 st t2, [dst - off - 0x00]; \ 246 st t3, [dst - off + 0x04]; 396 b ccmerge ! finish it off, above
|
/linux-4.1.27/arch/s390/kernel/ |
H A D | head64.S | 56 .quad 0 # cr9: tracing off 57 .quad 0 # cr10: tracing off 58 .quad 0 # cr11: tracing off 59 .quad 0 # cr12: tracing off 61 .quad 0xc0000000 # cr14: machine check handling off
|
/linux-4.1.27/arch/arm/mach-sa1100/include/mach/ |
H A D | assabet.h | 40 #define ASSABET_BCR_CF_PWR (1<<0) /* Compact Flash Power (1 = 3.3v, 0 = off) */ 48 #define ASSABET_BCR_CF_BUS_OFF (1<<7) /* Compact Flash bus (0 = on, 1 = off (float)) */ 54 #define ASSABET_BCR_LED_RED (1<<13) /* D9 (0 = on, 1 = off) */ 55 #define ASSABET_BCR_LED_GREEN (1<<14) /* D8 (0 = on, 1 = off) */ 64 #define ASSABET_BCR_SPK_OFF (1<<23) /* 1 = Speaker amplifier power off */
|
/linux-4.1.27/kernel/ |
H A D | kallsyms.c | 91 static unsigned int kallsyms_expand_symbol(unsigned int off, kallsyms_expand_symbol() argument 98 data = &kallsyms_names[off]; kallsyms_expand_symbol() 106 off += len + 1; kallsyms_expand_symbol() 135 return off; kallsyms_expand_symbol() 142 static char kallsyms_get_symbol_type(unsigned int off) kallsyms_get_symbol_type() argument 148 return kallsyms_token_table[kallsyms_token_index[kallsyms_names[off + 1]]]; kallsyms_get_symbol_type() 184 unsigned int off; kallsyms_lookup_name() local 186 for (i = 0, off = 0; i < kallsyms_num_syms; i++) { kallsyms_lookup_name() 187 off = kallsyms_expand_symbol(off, namebuf, ARRAY_SIZE(namebuf)); kallsyms_lookup_name() 202 unsigned int off; kallsyms_on_each_symbol() local 205 for (i = 0, off = 0; i < kallsyms_num_syms; i++) { kallsyms_on_each_symbol() 206 off = kallsyms_expand_symbol(off, namebuf, ARRAY_SIZE(namebuf)); kallsyms_on_each_symbol() 470 unsigned off = iter->nameoff; get_ksymbol_core() local 475 iter->type = kallsyms_get_symbol_type(off); get_ksymbol_core() 477 off = kallsyms_expand_symbol(off, iter->name, ARRAY_SIZE(iter->name)); get_ksymbol_core() 479 return off - iter->nameoff; get_ksymbol_core() 564 * s_start from where we left off, so we avoid doing kallsyms_open()
|
/linux-4.1.27/fs/freevxfs/ |
H A D | vxfs_bmap.c | 136 int64_t off; vxfs_bmap_indir() local 145 off = (typ->vt_hdr & VXFS_TYPED_OFFSETMASK); vxfs_bmap_indir() 147 if (block < off) { vxfs_bmap_indir() 155 typ->vt_size, block - off); vxfs_bmap_indir() 160 if ((block - off) >= typ->vt_size) vxfs_bmap_indir() 162 pblock = (typ->vt_block + block - off); vxfs_bmap_indir() 209 int64_t off = (typ->vt_hdr & VXFS_TYPED_OFFSETMASK); vxfs_bmap_typed() local 214 if (iblock < off) vxfs_bmap_typed() 219 typ->vt_size, iblock - off); vxfs_bmap_typed() 224 if ((iblock - off) < typ->vt_size) vxfs_bmap_typed() 225 return (typ->vt_block + iblock - off); vxfs_bmap_typed()
|
/linux-4.1.27/arch/mips/loongson/lemote-2f/ |
H A D | ec_kb3310b.h | 138 /* LCD backlight control: off/restore */ 152 /* Test led mode, all led on/off */ 156 /* Camera on/off */ 176 EVENT_CAMERA, /* Camera on/off */ 179 EVENT_BLACK_SCREEN, /* Turn on/off backlight */ 180 EVENT_AUDIO_MUTE, /* Mute on/off */ 184 EVENT_WLAN, /* Wlan on/off */
|
/linux-4.1.27/drivers/media/usb/go7007/ |
H A D | go7007-fw.c | 378 int size = 0, i, off = 0, chunk; gen_mjpeghdr_to_package() local 393 if (space - off < 32) { gen_mjpeghdr_to_package() 394 off = -1; gen_mjpeghdr_to_package() 398 code[off + 1] = __cpu_to_le16(0x8000 | mem); gen_mjpeghdr_to_package() 407 code[off] = __cpu_to_le16(0x4000 | chunk); gen_mjpeghdr_to_package() 408 code[off + 31] = __cpu_to_le16(addr++); gen_mjpeghdr_to_package() 411 code[off] = __cpu_to_le16(0x1000 | 28); gen_mjpeghdr_to_package() 412 code[off + 31] = 0; gen_mjpeghdr_to_package() 416 memcpy(&code[off + 2], buf + i, chunk * 2); gen_mjpeghdr_to_package() 417 off += 32; gen_mjpeghdr_to_package() 421 return off; gen_mjpeghdr_to_package() 645 int i, off = 0, chunk; gen_mpeg1hdr_to_package() local 682 if (space - off < 32) { gen_mpeg1hdr_to_package() 683 off = -1; gen_mpeg1hdr_to_package() 687 code[off + 1] = __cpu_to_le16(0x8000 | mem); gen_mpeg1hdr_to_package() 696 code[off] = __cpu_to_le16(0x4000 | chunk); gen_mpeg1hdr_to_package() 697 code[off + 31] = __cpu_to_le16(addr); gen_mpeg1hdr_to_package() 703 code[off] = __cpu_to_le16(0x1000 | 28); gen_mpeg1hdr_to_package() 704 code[off + 31] = 0; gen_mpeg1hdr_to_package() 708 memcpy(&code[off + 2], buf + i, chunk * 2); gen_mpeg1hdr_to_package() 709 off += 32; gen_mpeg1hdr_to_package() 713 return off; gen_mpeg1hdr_to_package() 831 int i, off = 0, chunk; gen_mpeg4hdr_to_package() local 850 if (space - off < 32) { gen_mpeg4hdr_to_package() 851 off = -1; gen_mpeg4hdr_to_package() 855 code[off + 1] = __cpu_to_le16(0x8000 | mem); gen_mpeg4hdr_to_package() 864 code[off] = __cpu_to_le16(0x4000 | chunk); gen_mpeg4hdr_to_package() 865 code[off + 31] = __cpu_to_le16(addr); gen_mpeg4hdr_to_package() 871 code[off] = __cpu_to_le16(0x1000 | 28); gen_mpeg4hdr_to_package() 872 code[off + 31] = 0; gen_mpeg4hdr_to_package() 876 memcpy(&code[off + 2], buf + i, chunk * 2); gen_mpeg4hdr_to_package() 877 off += 32; gen_mpeg4hdr_to_package() 893 if (space - off < 32) { gen_mpeg4hdr_to_package() 894 off = -1; gen_mpeg4hdr_to_package() 898 code[off + 1] = __cpu_to_le16(0x8000 | mem); gen_mpeg4hdr_to_package() 907 code[off] = __cpu_to_le16(0x4000 | chunk); gen_mpeg4hdr_to_package() 908 code[off + 31] = __cpu_to_le16(addr); gen_mpeg4hdr_to_package() 914 code[off] = __cpu_to_le16(0x1000 | 28); gen_mpeg4hdr_to_package() 915 code[off + 31] = 0; gen_mpeg4hdr_to_package() 919 memcpy(&code[off + 2], buf + i, chunk * 2); gen_mpeg4hdr_to_package() 920 off += 32; gen_mpeg4hdr_to_package() 924 return off; gen_mpeg4hdr_to_package()
|
/linux-4.1.27/drivers/net/phy/ |
H A D | spi_ks8995.c | 215 struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) ks8995_registers_read() 223 if (unlikely(off > ks8995->regs_attr.size)) ks8995_registers_read() 226 if ((off + count) > ks8995->regs_attr.size) ks8995_registers_read() 227 count = ks8995->regs_attr.size - off; ks8995_registers_read() 232 return ks8995_read(ks8995, buf, off, count); ks8995_registers_read() 237 struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) ks8995_registers_write() 245 if (unlikely(off >= ks8995->regs_attr.size)) ks8995_registers_write() 248 if ((off + count) > ks8995->regs_attr.size) ks8995_registers_write() 249 count = ks8995->regs_attr.size - off; ks8995_registers_write() 254 return ks8995_write(ks8995, buf, off, count); ks8995_registers_write() 214 ks8995_registers_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) ks8995_registers_read() argument 236 ks8995_registers_write(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) ks8995_registers_write() argument
|
/linux-4.1.27/drivers/net/ethernet/broadcom/ |
H A D | cnic_if.h | 336 #define CNIC_WR(dev, off, val) writel(val, dev->regview + off) 337 #define CNIC_WR16(dev, off, val) writew(val, dev->regview + off) 338 #define CNIC_WR8(dev, off, val) writeb(val, dev->regview + off) 339 #define CNIC_RD(dev, off) readl(dev->regview + off) 340 #define CNIC_RD16(dev, off) readw(dev->regview + off)
|
/linux-4.1.27/drivers/usb/serial/ |
H A D | whiteheat.h | 28 #define WHITEHEAT_SET_RTS 4 /* turn RTS on or off */ 29 #define WHITEHEAT_SET_DTR 5 /* turn DTR on or off */ 30 #define WHITEHEAT_SET_BREAK 6 /* turn BREAK on or off */ 82 off otherwise */ 83 #define WHITEHEAT_HFLOW_DTR 0x02 /* DTR is off/on when RX 85 #define WHITEHEAT_HFLOW_CTS 0x08 /* when received CTS off/on 87 #define WHITEHEAT_HFLOW_DSR 0x10 /* when received DSR off/on 89 #define WHITEHEAT_HFLOW_RTS 0x80 /* RTS is off/on when RX 103 __u8 lloop; /* 0/1 turns local loopback mode off/on */ 121 __u8 state; /* 0/1 turns signal off/on */
|
/linux-4.1.27/drivers/net/wireless/hostap/ |
H A D | hostap_proc.c | 271 size_t off; prism2_pda_proc_read() local 276 off = *_pos; prism2_pda_proc_read() 277 if (count > PRISM2_PDA_SIZE - off) prism2_pda_proc_read() 278 count = PRISM2_PDA_SIZE - off; prism2_pda_proc_read() 279 if (copy_to_user(buf, local->pda + off, count) != 0) prism2_pda_proc_read() 303 static int prism2_io_debug_proc_read(char *page, char **start, off_t off, prism2_io_debug_proc_read() argument 310 if (off + count > PRISM2_IO_DEBUG_SIZE * 4) { prism2_io_debug_proc_read() 312 if (off >= PRISM2_IO_DEBUG_SIZE * 4) prism2_io_debug_proc_read() 314 count = PRISM2_IO_DEBUG_SIZE * 4 - off; prism2_io_debug_proc_read() 321 if (off < start_bytes) { prism2_io_debug_proc_read() 322 copy = start_bytes - off; prism2_io_debug_proc_read() 325 memcpy(page, ((u8 *) &local->io_debug[head]) + off, copy); prism2_io_debug_proc_read() 330 memcpy(page, ((u8 *) local->io_debug) + (off - start_bytes), prism2_io_debug_proc_read()
|
/linux-4.1.27/drivers/net/wireless/orinoco/ |
H A D | hermes.h | 421 #define hermes_read_reg(hw, off) \ 422 (ioread16((hw)->iobase + ((off) << (hw)->reg_spacing))) 423 #define hermes_write_reg(hw, off, val) \ 424 (iowrite16((val), (hw)->iobase + ((off) << (hw)->reg_spacing))) 469 static inline void hermes_read_words(struct hermes *hw, int off, hermes_read_words() argument 472 off = off << hw->reg_spacing; hermes_read_words() 473 ioread16_rep(hw->iobase + off, buf, count); hermes_read_words() 476 static inline void hermes_write_bytes(struct hermes *hw, int off, hermes_write_bytes() argument 479 off = off << hw->reg_spacing; hermes_write_bytes() 480 iowrite16_rep(hw->iobase + off, buf, count >> 1); hermes_write_bytes() 482 iowrite8(buf[count - 1], hw->iobase + off); hermes_write_bytes() 485 static inline void hermes_clear_words(struct hermes *hw, int off, hermes_clear_words() argument 490 off = off << hw->reg_spacing; hermes_clear_words() 493 iowrite16(0, hw->iobase + off); hermes_clear_words()
|
/linux-4.1.27/arch/arm/common/ |
H A D | dmabounce.c | 318 dev_dbg(dev, "%s(page=%p,off=%#lx,size=%zx,dir=%x)\n", dmabounce_map_page() 367 unsigned long off; __dmabounce_sync_for_cpu() local 376 off = addr - buf->safe_dma_addr; __dmabounce_sync_for_cpu() 380 dev_dbg(dev, "%s: unsafe buffer %p (dma=%#x off=%#lx) mapped to %p (dma=%#x)\n", __dmabounce_sync_for_cpu() 381 __func__, buf->ptr, virt_to_dma(dev, buf->ptr), off, __dmabounce_sync_for_cpu() 388 __func__, buf->safe + off, buf->ptr + off, sz); __dmabounce_sync_for_cpu() 389 memcpy(buf->ptr + off, buf->safe + off, sz); __dmabounce_sync_for_cpu() 407 unsigned long off; __dmabounce_sync_for_device() local 416 off = addr - buf->safe_dma_addr; __dmabounce_sync_for_device() 420 dev_dbg(dev, "%s: unsafe buffer %p (dma=%#x off=%#lx) mapped to %p (dma=%#x)\n", __dmabounce_sync_for_device() 421 __func__, buf->ptr, virt_to_dma(dev, buf->ptr), off, __dmabounce_sync_for_device() 428 __func__,buf->ptr + off, buf->safe + off, sz); __dmabounce_sync_for_device() 429 memcpy(buf->safe + off, buf->ptr + off, sz); __dmabounce_sync_for_device()
|
/linux-4.1.27/drivers/i2c/ |
H A D | i2c-slave-eeprom.c | 78 struct bin_attribute *attr, char *buf, loff_t off, size_t count) i2c_slave_eeprom_bin_read() 83 if (off + count > attr->size) i2c_slave_eeprom_bin_read() 89 memcpy(buf, &eeprom->buffer[off], count); i2c_slave_eeprom_bin_read() 96 struct bin_attribute *attr, char *buf, loff_t off, size_t count) i2c_slave_eeprom_bin_write() 101 if (off + count > attr->size) i2c_slave_eeprom_bin_write() 107 memcpy(&eeprom->buffer[off], buf, count); i2c_slave_eeprom_bin_write() 77 i2c_slave_eeprom_bin_read(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) i2c_slave_eeprom_bin_read() argument 95 i2c_slave_eeprom_bin_write(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) i2c_slave_eeprom_bin_write() argument
|
/linux-4.1.27/net/sched/ |
H A D | act_pedit.c | 112 unsigned int off; tcf_pedit() local 117 off = skb_network_offset(skb); tcf_pedit() 128 int offset = tkey->off; tcf_pedit() 133 d = skb_header_pointer(skb, off + tkey->at, 1, tcf_pedit() 152 ptr = skb_header_pointer(skb, off + offset, 4, &_data); tcf_pedit() 158 skb_store_bits(skb, off + offset, ptr, 4); tcf_pedit()
|
/linux-4.1.27/drivers/isdn/hisax/ |
H A D | teles0.c | 31 readisac(void __iomem *adr, u_char off) readisac() argument 33 return readb(adr + ((off & 1) ? 0x2ff : 0x100) + off); readisac() 37 writeisac(void __iomem *adr, u_char off, u_char data) writeisac() argument 39 writeb(data, adr + ((off & 1) ? 0x2ff : 0x100) + off); mb(); writeisac() 44 readhscx(void __iomem *adr, int hscx, u_char off) readhscx() argument 47 ((off & 1) ? 0x1ff : 0) + off); readhscx() 51 writehscx(void __iomem *adr, int hscx, u_char off, u_char data) writehscx() argument 54 ((off & 1) ? 0x1ff : 0) + off); mb(); writehscx()
|
/linux-4.1.27/drivers/staging/iio/accel/ |
H A D | adis16220_core.c | 99 loff_t off, adis16220_capture_buffer_read() 125 if ((off >= ADIS16220_CAPTURE_SIZE) || (count & 1) || (off & 1)) adis16220_capture_buffer_read() 128 if (off + count > ADIS16220_CAPTURE_SIZE) adis16220_capture_buffer_read() 129 count = ADIS16220_CAPTURE_SIZE - off; adis16220_capture_buffer_read() 134 off > 1); adis16220_capture_buffer_read() 162 loff_t off, adis16220_accel_bin_read() 168 off, count, adis16220_accel_bin_read() 183 char *buf, loff_t off, adis16220_adc1_bin_read() 189 off, count, adis16220_adc1_bin_read() 204 char *buf, loff_t off, adis16220_adc2_bin_read() 210 off, count, adis16220_adc2_bin_read() 97 adis16220_capture_buffer_read(struct iio_dev *indio_dev, char *buf, loff_t off, size_t count, int addr) adis16220_capture_buffer_read() argument 159 adis16220_accel_bin_read(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) adis16220_accel_bin_read() argument 181 adis16220_adc1_bin_read(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) adis16220_adc1_bin_read() argument 202 adis16220_adc2_bin_read(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) adis16220_adc2_bin_read() argument
|
/linux-4.1.27/arch/sh/kernel/ |
H A D | sys_sh.c | 33 int fd, unsigned long off) old_mmap() 35 if (off & ~PAGE_MASK) old_mmap() 37 return sys_mmap_pgoff(addr, len, prot, flags, fd, off>>PAGE_SHIFT); old_mmap() 31 old_mmap(unsigned long addr, unsigned long len, unsigned long prot, unsigned long flags, int fd, unsigned long off) old_mmap() argument
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/bus/ |
H A D | hwsq.h | 96 u32 mask, off = 0; hwsq_wr32() local 103 nvkm_hwsq_wr32(ram->hwsq, reg->addr+off, reg->data); hwsq_wr32() 105 off += reg->stride; hwsq_wr32()
|
/linux-4.1.27/arch/blackfin/lib/ |
H A D | ins.S | 63 * To solve this, interrupts are turned off before reads occur to I/O space. 65 * - turns interrupts off every read (higher overhead, but lower latency) 66 * - turns interrupts off every loop (low overhead, but longer latency)
|
/linux-4.1.27/arch/arc/mm/ |
H A D | ioremap.c | 46 unsigned long off, end; ioremap_prot() local 62 off = paddr & ~PAGE_MASK; ioremap_prot() 79 return (void __iomem *)(off + (char __iomem *)vaddr); ioremap_prot()
|
/linux-4.1.27/drivers/iio/pressure/ |
H A D | ms5611_core.c | 74 s64 off, sens, dt; ms5611_read_temp_and_pressure() local 85 off = ((s64)st->prom[2] << 16) + ((st->prom[4] * dt) >> 7); ms5611_read_temp_and_pressure() 104 off -= off2; ms5611_read_temp_and_pressure() 109 *pressure = (((p * sens) >> 21) - off) >> 15; ms5611_read_temp_and_pressure()
|
/linux-4.1.27/drivers/net/fddi/skfp/ |
H A D | Makefile | 14 # switched off below), but I did not fix this, because the Hardware
|
/linux-4.1.27/drivers/staging/xgifb/ |
H A D | vb_struct.h | 111 unsigned char PSC_S3; /* Duration between CPL off and signal off */ 112 unsigned char PSC_S4; /* Duration signal off and Vdd off */
|
/linux-4.1.27/drivers/net/wireless/ath/ |
H A D | main.c | 34 u32 off; ath_rxbuf_alloc() local 51 off = ((unsigned long) skb->data) % common->cachelsz; ath_rxbuf_alloc() 52 if (off != 0) ath_rxbuf_alloc() 53 skb_reserve(skb, common->cachelsz - off); ath_rxbuf_alloc()
|
/linux-4.1.27/arch/metag/kernel/ |
H A D | tbiunexp.S | 12 XOR TXMASKI,D1Re0,D1Re0 ! Turn off BGNDHALT handling!
|
/linux-4.1.27/drivers/video/backlight/ |
H A D | jornada720_bl.c | 60 /* If backlight is off then really turn it off */ jornada_bl_update_status() 64 dev_info(&bd->dev, "brightness off timeout\n"); jornada_bl_update_status() 65 /* turn off backlight */ jornada_bl_update_status()
|
/linux-4.1.27/drivers/video/fbdev/mb862xx/ |
H A D | mb862xxfb.h | 111 #define inreg(type, off) \ 112 gdc_read((par->type + (off))) 114 #define outreg(type, off, val) \ 115 gdc_write((val), (par->type + (off)))
|
/linux-4.1.27/include/uapi/linux/usb/ |
H A D | functionfs.h | 89 * | off | name | type | description | 109 * | off | name | type | description | 123 * | off | name | type | description | 132 * | off | name | type | description | 142 * | off | name | type | description | 154 * | off | name | type | description | 166 * | off | name | type | description | 186 * | off | name | type | description | 197 * | off | name | type | description |
|
/linux-4.1.27/include/video/ |
H A D | gbe.h | 25 volatile uint32_t vt_vsync; /* vsync on/off */ 26 volatile uint32_t vt_hsync; /* hsync on/off */ 27 volatile uint32_t vt_vblank; /* vblank on/off */ 28 volatile uint32_t vt_hblank; /* hblank on/off */ 33 volatile uint32_t fp_hdrv; /* flat panel hdrv on/off */ 34 volatile uint32_t fp_vdrv; /* flat panel vdrv on/off */ 35 volatile uint32_t fp_de; /* flat panel de on/off */ 36 volatile uint32_t vt_hpixen; /* intrnl horiz pixel on/off */ 37 volatile uint32_t vt_vpixen; /* intrnl vert pixel on/off */
|
/linux-4.1.27/arch/mips/mti-sead3/ |
H A D | sead3-int.c | 36 (current_cpu_data.options & MIPS_CPU_VEIC) ? "on" : "off"); arch_init_irq()
|
/linux-4.1.27/arch/blackfin/mach-bf561/ |
H A D | hotplug.c | 23 * turn off the data cache. This causes the CoreB failed to boot. platform_cpu_die()
|
/linux-4.1.27/arch/arm/net/ |
H A D | bpf_jit_32.h | 155 #define ARM_LDR_I(rt, rn, off) (ARM_INST_LDR_I | (rt) << 12 | (rn) << 16 \ 156 | (off)) 157 #define ARM_LDRB_I(rt, rn, off) (ARM_INST_LDRB_I | (rt) << 12 | (rn) << 16 \ 158 | (off)) 161 #define ARM_LDRH_I(rt, rn, off) (ARM_INST_LDRH_I | (rt) << 12 | (rn) << 16 \ 162 | (((off) & 0xf0) << 4) | ((off) & 0xf)) 199 #define ARM_STR_I(rt, rn, off) (ARM_INST_STR_I | (rt) << 12 | (rn) << 16 \ 200 | (off))
|
/linux-4.1.27/arch/arm/kvm/ |
H A D | guest.c | 53 u64 off; get_core_reg() local 59 off = core_reg_offset_from_id(reg->id); get_core_reg() 60 if (off >= sizeof(*regs) / KVM_REG_SIZE(reg->id)) get_core_reg() 63 return put_user(((u32 *)regs)[off], uaddr); get_core_reg() 70 u64 off, val; set_core_reg() local 76 off = core_reg_offset_from_id(reg->id); set_core_reg() 77 if (off >= sizeof(*regs) / KVM_REG_SIZE(reg->id)) set_core_reg() 83 if (off == KVM_REG_ARM_CORE_REG(usr_regs.ARM_cpsr)) { set_core_reg() 98 ((u32 *)regs)[off] = val; set_core_reg()
|