/linux-4.1.27/arch/sh/mm/ |
H A D | flush-sh4.c | 15 reg_size_t aligned_start, v, cnt, end; sh4__flush_wback_region() local 21 cnt = (end - v) / L1_CACHE_BYTES; sh4__flush_wback_region() 23 while (cnt >= 8) { sh4__flush_wback_region() 32 cnt -= 8; sh4__flush_wback_region() 35 while (cnt) { sh4__flush_wback_region() 37 cnt--; sh4__flush_wback_region() 49 reg_size_t aligned_start, v, cnt, end; sh4__flush_purge_region() local 55 cnt = (end - v) / L1_CACHE_BYTES; sh4__flush_purge_region() 57 while (cnt >= 8) { sh4__flush_purge_region() 66 cnt -= 8; sh4__flush_purge_region() 68 while (cnt) { sh4__flush_purge_region() 70 cnt--; sh4__flush_purge_region() 79 reg_size_t aligned_start, v, cnt, end; sh4__flush_invalidate_region() local 85 cnt = (end - v) / L1_CACHE_BYTES; sh4__flush_invalidate_region() 87 while (cnt >= 8) { sh4__flush_invalidate_region() 96 cnt -= 8; sh4__flush_invalidate_region() 99 while (cnt) { sh4__flush_invalidate_region() 101 cnt--; sh4__flush_invalidate_region()
|
/linux-4.1.27/include/linux/ |
H A D | bottom_half.h | 8 extern void __local_bh_disable_ip(unsigned long ip, unsigned int cnt); 10 static __always_inline void __local_bh_disable_ip(unsigned long ip, unsigned int cnt) __local_bh_disable_ip() argument 12 preempt_count_add(cnt); __local_bh_disable_ip() 23 extern void __local_bh_enable_ip(unsigned long ip, unsigned int cnt);
|
H A D | eventfd.h | 39 ssize_t eventfd_ctx_read(struct eventfd_ctx *ctx, int no_wait, __u64 *cnt); 41 __u64 *cnt); 70 __u64 *cnt) eventfd_ctx_read() 76 wait_queue_t *wait, __u64 *cnt) eventfd_ctx_remove_wait_queue() 69 eventfd_ctx_read(struct eventfd_ctx *ctx, int no_wait, __u64 *cnt) eventfd_ctx_read() argument 75 eventfd_ctx_remove_wait_queue(struct eventfd_ctx *ctx, wait_queue_t *wait, __u64 *cnt) eventfd_ctx_remove_wait_queue() argument
|
/linux-4.1.27/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/ |
H A D | timing.h | 6 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz); 8 u8 *ver, u8 *hdr, u8 *cnt, u8 *len); 10 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_ramcfg *);
|
H A D | M0205.h | 8 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz); 10 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz, 18 u8 *ver, u8 *hdr, u8 *cnt, u8 *len); 20 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_M0205E *);
|
H A D | dp.h | 12 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, 15 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, 27 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_dpcfg *); 30 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_dpcfg *);
|
H A D | rammap.h | 6 u8 *cnt, u8 *len, u8 *snr, u8 *ssz); 9 u8 *ver, u8 *hdr, u8 *cnt, u8 *len); 11 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_ramcfg *); 13 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_ramcfg *);
|
H A D | xpio.h | 15 u8 *ver, u8 *hdr, u8 *cnt, u8 *len); 17 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_xpio *);
|
H A D | perf.h | 4 u8 *cnt, u8 *len, u8 *snr, u8 *ssz); 19 u8 *ver, u8 *hdr, u8 *cnt, u8 *len); 21 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_perfE *); 32 u8 *ver, u8 *hdr, u8 cnt, u8 len); 34 u8 *ver, u8 *hdr, u8 cnt, u8 len, struct nvbios_perfS *);
|
H A D | disp.h | 4 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *sub); 21 u8 *ver, u8 *hdr, u8 *cnt, u8 *len); 23 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_outp *); 25 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_outp *); 33 u8 *ver, u8 *hdr, u8 *cnt, u8 *len); 35 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_ocfg *); 37 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_ocfg *);
|
H A D | M0209.h | 4 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz); 16 u8 *ver, u8 *hdr, u8 *cnt, u8 *len); 18 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_M0209E *);
|
H A D | vmap.h | 6 u16 nvbios_vmap_table(struct nvkm_bios *, u8 *ver, u8 *hdr, u8 *cnt, u8 *len); 7 u16 nvbios_vmap_parse(struct nvkm_bios *, u8 *ver, u8 *hdr, u8 *cnt, u8 *len,
|
H A D | volt.h | 11 u16 nvbios_volt_table(struct nvkm_bios *, u8 *ver, u8 *hdr, u8 *cnt, u8 *len); 12 u16 nvbios_volt_parse(struct nvkm_bios *, u8 *ver, u8 *hdr, u8 *cnt, u8 *len,
|
H A D | M0203.h | 9 u32 nvbios_M0203Te(struct nvkm_bios *, u8 *ver, u8 *hdr, u8 *cnt, u8 *len); 10 u32 nvbios_M0203Tp(struct nvkm_bios *, u8 *ver, u8 *hdr, u8 *cnt, u8 *len,
|
H A D | pmu.h | 6 u32 nvbios_pmuTe(struct nvkm_bios *, u8 *ver, u8 *hdr, u8 *cnt, u8 *len); 7 u32 nvbios_pmuTp(struct nvkm_bios *, u8 *ver, u8 *hdr, u8 *cnt, u8 *len,
|
H A D | conn.h | 27 u32 nvbios_connTe(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len); 28 u32 nvbios_connTp(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len,
|
H A D | P0260.h | 4 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *xnr, u8 *xsz);
|
H A D | i2c.h | 22 u16 dcb_i2c_table(struct nvkm_bios *, u8 *ver, u8 *hdr, u8 *cnt, u8 *len);
|
H A D | cstep.h | 4 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *xnr, u8 *xsz);
|
H A D | gpio.h | 40 u16 dcb_gpio_table(struct nvkm_bios *, u8 *ver, u8 *hdr, u8 *cnt, u8 *len);
|
/linux-4.1.27/samples/trace_events/ |
H A D | trace-events-sample.c | 21 static void simple_thread_func(int cnt) simple_thread_func() argument 24 int len = cnt % 5; simple_thread_func() 35 trace_foo_bar("hello", cnt, array, random_strings[len], simple_thread_func() 38 trace_foo_with_template_simple("HELLO", cnt); simple_thread_func() 40 trace_foo_bar_with_cond("Some times print", cnt); simple_thread_func() 42 trace_foo_with_template_cond("prints other times", cnt); simple_thread_func() 44 trace_foo_with_template_print("I have to be different", cnt); simple_thread_func() 49 int cnt = 0; simple_thread() local 52 simple_thread_func(cnt++); simple_thread() 60 static void simple_thread_func_fn(int cnt) simple_thread_func_fn() argument 66 trace_foo_bar_with_fn("Look at me", cnt); simple_thread_func_fn() 67 trace_foo_with_template_fn("Look at me too", cnt); simple_thread_func_fn() 72 int cnt = 0; simple_thread_fn() local 75 simple_thread_func_fn(cnt++); simple_thread_fn()
|
/linux-4.1.27/arch/ia64/lib/ |
H A D | memset.S | 25 #define cnt in2 define 67 cmp.eq p_scr, p0 = cnt, r0 82 cmp.gt p_scr, p0 = 16, cnt // is it a minimalistic task? 91 (p_y) add cnt = -8, cnt // 98 (p_yy) add cnt = -4, cnt // 106 (p_y) add cnt = -2, cnt // 116 cmp.gt p_scr, p0 = tmp, cnt // is it a minimalistic task? 118 (p_yy) add cnt = -1, cnt // 124 shr.u linecnt = cnt, LSIZE_SH 130 and tmp = -(LINE_SIZE), cnt // compute end of range 132 and cnt = (LINE_SIZE-1), cnt // remainder 192 cmp.le p_scr, p0 = 8, cnt // just a few bytes left ? 200 and tmp = -(LINE_SIZE), cnt // compute end of range 202 and cnt = (LINE_SIZE-1), cnt // remainder 246 cmp.gt p_scr, p0 = 8, cnt // just a few bytes left ? 253 shr.u loopcnt = cnt, 5 // loopcnt = cnt / 32 261 and cnt = 0x1f, cnt // compute the remaining cnt 276 cmp.gt p_scr, p0 = 8, cnt // just a few bytes left ? 282 cmp.le p_y, p_n = 16, cnt 283 add cnt = -8, cnt // subtract 287 (p_y) cmp.le.unc p_yy, p_nn = 16, cnt 288 (p_y) add cnt = -8, cnt // subtract 292 (p_yy) add cnt = -8, cnt // subtract 297 cmp.eq p_scr, p0 = cnt, r0 298 tbit.nz.unc p_y, p0 = cnt, 2 // should we terminate with a st4 ? 303 tbit.nz.unc p_yy, p0 = cnt, 1 // should we terminate with a st2 ? 307 tbit.nz.unc p_y, p0 = cnt, 0 // should we terminate with a st1 ? 324 (p_n) cmp.le p_yy, p_nn = 4, cnt 325 (p_y) cmp.le p_yy, p_nn = 5, cnt 330 (p_y) add cnt = -1, cnt 333 (p_yy) cmp.le.unc p_y, p0 = 8, cnt 334 add ptr3 = ptr1, cnt // prepare last store 339 (p_yy) add cnt = -4, cnt 342 (p_y) cmp.le.unc p_yy, p0 = 8, cnt 344 tbit.nz p_scr, p0 = cnt, 1 // will there be a st2 at the end ? 348 (p_y) add cnt = -4, cnt 353 tbit.nz p_y, p0 = cnt, 0 // will there be a st1 at the end ? 355 (p_yy) add cnt = -4, cnt
|
H A D | memcpy.S | 28 # define cnt r16 67 shr.u cnt=in2,3 // number of 8-byte words to copy 71 adds cnt=-1,cnt // br.ctop is repeat/until 77 mov ar.lc=cnt 119 adds cnt=-1,in2 // br.ctop is repeat/until 123 mov ar.lc=cnt 203 mov cnt=r0 208 (p3) adds cnt=1,cnt 212 (p4) adds cnt=2,cnt 215 (p5) adds cnt=4,cnt 221 1:{ add src=cnt,src // make src point to remainder of source buffer 222 sub cnt=in2,cnt // cnt = number of bytes left to copy 230 shr.u t2=cnt,3 // t2 = number of 8-byte words left to copy 231 shl cnt=cnt,3 // move bits 0-2 to 3-5 242 mov pr=cnt,0x38 // set (p5,p4,p3) to # of bytes last-word bytes to copy
|
H A D | memcpy_mck.S | 35 #define cnt r9 define 114 shr.u cnt=in2,7 // this much cache line 116 cmp.lt p6,p0=2*PREFETCH_DIST,cnt 117 cmp.lt p7,p8=1,cnt 121 add cnt=-1,cnt 125 (p7) mov ar.lc=cnt // prefetch count 141 add cnt=-1,r29 // ctop iteration adjustment 147 mov ar.lc=cnt // loop setup 202 shr.u cnt=in2,7 // number of lines 208 add cnt = -(2*PREFETCH_DIST) - 1, cnt 216 mov ar.lc = cnt 300 add cnt=-1,r21 306 (p7) mov ar.lc = cnt 319 add cnt=-1,r22 // ctop iteration adjustment 335 mov ar.lc=cnt
|
/linux-4.1.27/drivers/staging/rtl8188eu/hal/ |
H A D | hal_com.c | 31 uint cnt = 0; dump_chip_info() local 35 cnt += sprintf((buf+cnt), "Chip Version Info: %s_", dump_chip_info() 39 cnt += sprintf((buf+cnt), "Chip Version Info: CHIP_8192D_"); dump_chip_info() 41 cnt += sprintf((buf+cnt), "Chip Version Info: CHIP_8723A_"); dump_chip_info() 43 cnt += sprintf((buf+cnt), "Chip Version Info: CHIP_8188E_"); dump_chip_info() 46 cnt += sprintf((buf+cnt), "%s_", IS_NORMAL_CHIP(chip_vers) ? dump_chip_info() 48 cnt += sprintf((buf+cnt), "%s_", IS_CHIP_VENDOR_TSMC(chip_vers) ? dump_chip_info() 51 cnt += sprintf((buf+cnt), "A_CUT_"); dump_chip_info() 53 cnt += sprintf((buf+cnt), "B_CUT_"); dump_chip_info() 55 cnt += sprintf((buf+cnt), "C_CUT_"); dump_chip_info() 57 cnt += sprintf((buf+cnt), "D_CUT_"); dump_chip_info() 59 cnt += sprintf((buf+cnt), "E_CUT_"); dump_chip_info() 61 cnt += sprintf((buf+cnt), "UNKNOWN_CUT(%d)_", dump_chip_info() 65 cnt += sprintf((buf+cnt), "1T1R_"); dump_chip_info() 67 cnt += sprintf((buf+cnt), "1T2R_"); dump_chip_info() 69 cnt += sprintf((buf+cnt), "2T2R_"); dump_chip_info() 71 cnt += sprintf((buf+cnt), "UNKNOWN_RFTYPE(%d)_", dump_chip_info() 74 cnt += sprintf((buf+cnt), "RomVer(%d)\n", chip_vers.ROMVer); dump_chip_info()
|
/linux-4.1.27/arch/m68k/sun3/ |
H A D | sun3ints.c | 54 unsigned int cnt; sun3_int7() local 56 cnt = kstat_irqs_cpu(irq, 0); sun3_int7() 57 if (!(cnt % 2000)) sun3_int7() 58 sun3_leds(led_pattern[cnt % 16000 / 2000]); sun3_int7() 64 unsigned int cnt; sun3_int5() local 76 cnt = kstat_irqs_cpu(irq, 0); sun3_int5() 77 if (!(cnt % 20)) sun3_int5() 78 sun3_leds(led_pattern[cnt % 160 / 20]); sun3_int5()
|
/linux-4.1.27/tools/perf/util/ |
H A D | help.c | 16 ALLOC_GROW(cmds->names, cmds->cnt + 1, cmds->alloc); add_cmdname() 17 cmds->names[cmds->cnt++] = ent; add_cmdname() 24 for (i = 0; i < cmds->cnt; ++i) clean_cmdnames() 27 cmds->cnt = 0; clean_cmdnames() 42 if (!cmds->cnt) uniq() 45 for (i = j = 1; i < cmds->cnt; i++) uniq() 49 cmds->cnt = j; uniq() 58 while (ci < cmds->cnt && ei < excludes->cnt) { exclude_cmds() 68 while (ci < cmds->cnt) exclude_cmds() 71 cmds->cnt = cj; exclude_cmds() 87 rows = (cmds->cnt + cols - 1) / cols; pretty_print_string_list() 96 if (n >= cmds->cnt) pretty_print_string_list() 98 if (j == cols-1 || n + rows >= cmds->cnt) pretty_print_string_list() 166 qsort(main_cmds->names, main_cmds->cnt, load_command_list() 186 qsort(other_cmds->names, other_cmds->cnt, load_command_list() 198 for (i = 0; i < main_cmds->cnt; i++) list_commands() 201 for (i = 0; i < other_cmds->cnt; i++) list_commands() 205 if (main_cmds->cnt) { list_commands() 215 if (other_cmds->cnt) { list_commands() 229 for (i = 0; i < c->cnt; i++) is_in_cmdlist() 262 ALLOC_GROW(cmds->names, cmds->cnt + old->cnt, cmds->alloc); add_cmd_list() 264 for (i = 0; i < old->cnt; i++) add_cmd_list() 265 cmds->names[cmds->cnt++] = old->names[i]; add_cmd_list() 267 old->cnt = 0; add_cmd_list() 285 qsort(main_cmds.names, main_cmds.cnt, help_unknown_cmd() 289 if (main_cmds.cnt) { help_unknown_cmd() 291 for (i = 0; i < main_cmds.cnt; ++i) help_unknown_cmd() 295 qsort(main_cmds.names, main_cmds.cnt, help_unknown_cmd() 300 while (n < main_cmds.cnt && best_similarity == main_cmds.names[n]->len) help_unknown_cmd() 323 if (main_cmds.cnt && best_similarity < 6) { help_unknown_cmd()
|
H A D | thread-stack.c | 87 * @cnt: number of entries in the stack 98 size_t cnt; member in struct:thread_stack 153 if (ts->cnt == ts->sz) { thread_stack__push() 157 ts->cnt = 0; thread_stack__push() 161 ts->stack[ts->cnt++].ret_addr = ret_addr; thread_stack__push() 179 for (i = ts->cnt; i; ) { thread_stack__pop() 181 ts->cnt = i; thread_stack__pop() 189 if (!ts->cnt) thread_stack__in_kernel() 192 return ts->stack[ts->cnt - 1].cp->in_kernel; thread_stack__in_kernel() 228 ts->cnt = 0; thread_stack__flush() 232 while (ts->cnt) { thread_stack__flush() 233 err = thread_stack__call_return(thread, ts, --ts->cnt, thread_stack__flush() 237 ts->cnt = 0; thread_stack__flush() 322 chain->nr = min(sz, thread->ts->cnt + 1); thread_stack__sample() 327 chain->ips[i] = thread->ts->stack[thread->ts->cnt - i].ret_addr; thread_stack__sample() 468 if (ts->cnt == ts->sz) { thread_stack__push_cp() 474 tse = &ts->stack[ts->cnt++]; thread_stack__push_cp() 491 if (!ts->cnt) thread_stack__pop_cp() 494 if (ts->cnt == 1) { thread_stack__pop_cp() 498 return thread_stack__call_return(thread, ts, --ts->cnt, thread_stack__pop_cp() 502 if (ts->stack[ts->cnt - 1].ret_addr == ret_addr) { thread_stack__pop_cp() 503 return thread_stack__call_return(thread, ts, --ts->cnt, thread_stack__pop_cp() 506 size_t i = ts->cnt - 1; thread_stack__pop_cp() 512 while (ts->cnt > i) { thread_stack__pop_cp() 514 --ts->cnt, thread_stack__pop_cp() 520 return thread_stack__call_return(thread, ts, --ts->cnt, thread_stack__pop_cp() 571 err = thread_stack__call_return(thread, ts, --ts->cnt, thread_stack__no_call_return() 579 if (!ts->cnt) { thread_stack__no_call_return() 591 err = thread_stack__call_return(thread, ts, --ts->cnt, thread_stack__no_call_return() 599 if (ts->cnt) thread_stack__no_call_return() 600 parent = ts->stack[ts->cnt - 1].cp; thread_stack__no_call_return() 626 if (!ts->cnt) thread_stack__trace_begin() 630 tse = &ts->stack[ts->cnt - 1]; thread_stack__trace_begin() 632 err = thread_stack__call_return(thread, ts, --ts->cnt, thread_stack__trace_begin() 649 if (!ts->cnt || (ts->cnt == 1 && ts->stack[0].ref == ref)) thread_stack__trace_end() 652 cp = call_path__findnew(cpr, ts->stack[ts->cnt - 1].cp, NULL, 0, thread_stack__trace_end() 699 if (!ts->cnt) { thread_stack__process() 721 cp = call_path__findnew(cpr, ts->stack[ts->cnt - 1].cp, thread_stack__process()
|
H A D | strbuf.c | 116 ssize_t cnt; strbuf_read() local 118 cnt = read(fd, sb->buf + sb->len, sb->alloc - sb->len - 1); strbuf_read() 119 if (cnt < 0) { strbuf_read() 126 if (!cnt) strbuf_read() 128 sb->len += cnt; strbuf_read()
|
H A D | help.h | 6 size_t cnt; member in struct:cmdnames
|
/linux-4.1.27/drivers/misc/ |
H A D | tifm_7xx1.c | 44 unsigned int irq_status, cnt; tifm_7xx1_isr() local 56 for (cnt = 0; cnt < fm->num_sockets; cnt++) { tifm_7xx1_isr() 57 sock = fm->sockets[cnt]; tifm_7xx1_isr() 59 if ((irq_status >> cnt) & TIFM_IRQ_FIFOMASK(1)) tifm_7xx1_isr() 61 if ((irq_status >> cnt) & TIFM_IRQ_CARDMASK(1)) tifm_7xx1_isr() 85 int cnt; tifm_7xx1_toggle_sock_power() local 89 for (cnt = 16; cnt <= 256; cnt <<= 1) { tifm_7xx1_toggle_sock_power() 94 msleep(cnt); tifm_7xx1_toggle_sock_power() 113 for (cnt = 16; cnt <= 256; cnt <<= 1) { tifm_7xx1_toggle_sock_power() 118 msleep(cnt); tifm_7xx1_toggle_sock_power() 147 unsigned int socket_change_set, cnt; tifm_7xx1_switch_media() local 161 for (cnt = 0; cnt < fm->num_sockets; cnt++) { tifm_7xx1_switch_media() 162 if (!(socket_change_set & (1 << cnt))) tifm_7xx1_switch_media() 164 sock = fm->sockets[cnt]; tifm_7xx1_switch_media() 168 dev_name(&fm->dev), fm->id, cnt); tifm_7xx1_switch_media() 169 fm->sockets[cnt] = NULL; tifm_7xx1_switch_media() 181 tifm_7xx1_sock_addr(fm->addr, cnt)); tifm_7xx1_switch_media() 184 sock = tifm_alloc_device(fm, cnt, media_id); tifm_7xx1_switch_media() 186 sock->addr = tifm_7xx1_sock_addr(fm->addr, cnt); tifm_7xx1_switch_media() 190 if (!fm->sockets[cnt]) { tifm_7xx1_switch_media() 191 fm->sockets[cnt] = sock; tifm_7xx1_switch_media() 219 int cnt; tifm_7xx1_suspend() local 223 for (cnt = 0; cnt < fm->num_sockets; cnt++) { tifm_7xx1_suspend() 224 if (fm->sockets[cnt]) tifm_7xx1_suspend() 225 tifm_7xx1_sock_power_off(fm->sockets[cnt]->addr); tifm_7xx1_suspend() 397 int cnt; tifm_7xx1_remove() local 407 for (cnt = 0; cnt < fm->num_sockets; cnt++) tifm_7xx1_remove() 408 tifm_7xx1_sock_power_off(tifm_7xx1_sock_addr(fm->addr, cnt)); tifm_7xx1_remove()
|
/linux-4.1.27/arch/mips/kernel/ |
H A D | cevt-r4k.c | 21 unsigned int cnt; mips_next_event() local 24 cnt = read_c0_count(); mips_next_event() 25 cnt += delta; mips_next_event() 26 write_c0_compare(cnt); mips_next_event() 27 res = ((int)(read_c0_count() - cnt) >= 0) ? -ETIME : 0; mips_next_event() 124 unsigned int cnt; c0_compare_int_usable() local 134 cnt = read_c0_count(); c0_compare_int_usable() 135 write_c0_compare(cnt); c0_compare_int_usable() 137 while (read_c0_count() < (cnt + COMPARE_INT_SEEN_TICKS)) c0_compare_int_usable() 145 cnt = read_c0_count(); c0_compare_int_usable() 146 cnt += delta; c0_compare_int_usable() 147 write_c0_compare(cnt); c0_compare_int_usable() 149 if ((int)(read_c0_count() - cnt) < 0) c0_compare_int_usable() 154 while ((int)(read_c0_count() - cnt) <= 0) c0_compare_int_usable() 157 while (read_c0_count() < (cnt + COMPARE_INT_SEEN_TICKS)) c0_compare_int_usable() 162 cnt = read_c0_count(); c0_compare_int_usable() 163 write_c0_compare(cnt); c0_compare_int_usable() 165 while (read_c0_count() < (cnt + COMPARE_INT_SEEN_TICKS)) c0_compare_int_usable()
|
/linux-4.1.27/arch/microblaze/kernel/ |
H A D | heartbeat.c | 22 static unsigned int cnt, period, dist; microblaze_heartbeat() local 25 if (cnt == 0 || cnt == dist) microblaze_heartbeat() 27 else if (cnt == 7 || cnt == dist + 7) microblaze_heartbeat() 30 if (++cnt > period) { microblaze_heartbeat() 31 cnt = 0; microblaze_heartbeat()
|
/linux-4.1.27/drivers/staging/iio/adc/ |
H A D | ad7280a.c | 144 int cnt, i; ad7280_crc8_build_table() local 146 for (cnt = 0; cnt < 256; cnt++) { ad7280_crc8_build_table() 147 crc = cnt; ad7280_crc8_build_table() 154 crc_tab[cnt] = crc; ad7280_crc8_build_table() 302 static int ad7280_read_all_channels(struct ad7280_state *st, unsigned cnt, ad7280_read_all_channels() argument 323 for (i = 0; i < cnt; i++) { ad7280_read_all_channels() 487 int dev, ch, cnt; ad7280_channel_init() local 494 for (dev = 0, cnt = 0; dev <= st->slave_num; dev++) ad7280_channel_init() 496 cnt++) { ad7280_channel_init() 498 st->channels[cnt].type = IIO_VOLTAGE; ad7280_channel_init() 499 st->channels[cnt].differential = 1; ad7280_channel_init() 500 st->channels[cnt].channel = (dev * 6) + ch; ad7280_channel_init() 501 st->channels[cnt].channel2 = ad7280_channel_init() 502 st->channels[cnt].channel + 1; ad7280_channel_init() 504 st->channels[cnt].type = IIO_TEMP; ad7280_channel_init() 505 st->channels[cnt].channel = (dev * 6) + ch - 6; ad7280_channel_init() 507 st->channels[cnt].indexed = 1; ad7280_channel_init() 508 st->channels[cnt].info_mask_separate = ad7280_channel_init() 510 st->channels[cnt].info_mask_shared_by_type = ad7280_channel_init() 512 st->channels[cnt].address = ad7280_channel_init() 514 st->channels[cnt].scan_index = cnt; ad7280_channel_init() 515 st->channels[cnt].scan_type.sign = 'u'; ad7280_channel_init() 516 st->channels[cnt].scan_type.realbits = 12; ad7280_channel_init() 517 st->channels[cnt].scan_type.storagebits = 32; ad7280_channel_init() 518 st->channels[cnt].scan_type.shift = 0; ad7280_channel_init() 521 st->channels[cnt].type = IIO_VOLTAGE; ad7280_channel_init() 522 st->channels[cnt].differential = 1; ad7280_channel_init() 523 st->channels[cnt].channel = 0; ad7280_channel_init() 524 st->channels[cnt].channel2 = dev * 6; ad7280_channel_init() 525 st->channels[cnt].address = AD7280A_ALL_CELLS; ad7280_channel_init() 526 st->channels[cnt].indexed = 1; ad7280_channel_init() 527 st->channels[cnt].info_mask_separate = BIT(IIO_CHAN_INFO_RAW); ad7280_channel_init() 528 st->channels[cnt].info_mask_shared_by_type = BIT(IIO_CHAN_INFO_SCALE); ad7280_channel_init() 529 st->channels[cnt].scan_index = cnt; ad7280_channel_init() 530 st->channels[cnt].scan_type.sign = 'u'; ad7280_channel_init() 531 st->channels[cnt].scan_type.realbits = 32; ad7280_channel_init() 532 st->channels[cnt].scan_type.storagebits = 32; ad7280_channel_init() 533 st->channels[cnt].scan_type.shift = 0; ad7280_channel_init() 534 cnt++; ad7280_channel_init() 535 st->channels[cnt].type = IIO_TIMESTAMP; ad7280_channel_init() 536 st->channels[cnt].channel = -1; ad7280_channel_init() 537 st->channels[cnt].scan_index = cnt; ad7280_channel_init() 538 st->channels[cnt].scan_type.sign = 's'; ad7280_channel_init() 539 st->channels[cnt].scan_type.realbits = 64; ad7280_channel_init() 540 st->channels[cnt].scan_type.storagebits = 64; ad7280_channel_init() 541 st->channels[cnt].scan_type.shift = 0; ad7280_channel_init() 543 return cnt + 1; ad7280_channel_init() 548 int dev, ch, cnt; ad7280_attr_init() local 556 for (dev = 0, cnt = 0; dev <= st->slave_num; dev++) ad7280_attr_init() 558 ch++, cnt++) { ad7280_attr_init() 559 st->iio_attr[cnt].address = ad7280_attr_init() 561 st->iio_attr[cnt].dev_attr.attr.mode = ad7280_attr_init() 563 st->iio_attr[cnt].dev_attr.show = ad7280_attr_init() 565 st->iio_attr[cnt].dev_attr.store = ad7280_attr_init() 567 st->iio_attr[cnt].dev_attr.attr.name = ad7280_attr_init() 572 ad7280_attributes[cnt] = ad7280_attr_init() 573 &st->iio_attr[cnt].dev_attr.attr; ad7280_attr_init() 574 cnt++; ad7280_attr_init() 575 st->iio_attr[cnt].address = ad7280_attr_init() 578 st->iio_attr[cnt].dev_attr.attr.mode = ad7280_attr_init() 580 st->iio_attr[cnt].dev_attr.show = ad7280_attr_init() 582 st->iio_attr[cnt].dev_attr.store = ad7280_attr_init() 584 st->iio_attr[cnt].dev_attr.attr.name = ad7280_attr_init() 588 ad7280_attributes[cnt] = ad7280_attr_init() 589 &st->iio_attr[cnt].dev_attr.attr; ad7280_attr_init() 592 ad7280_attributes[cnt] = NULL; ad7280_attr_init()
|
/linux-4.1.27/drivers/infiniband/hw/usnic/ |
H A D | usnic_ib_qp_grp.h | 76 {.type = USNIC_VNIC_RES_TYPE_EOL, .cnt = 0,}, 81 {.type = USNIC_VNIC_RES_TYPE_WQ, .cnt = 1,}, 82 {.type = USNIC_VNIC_RES_TYPE_RQ, .cnt = 1,}, 83 {.type = USNIC_VNIC_RES_TYPE_CQ, .cnt = 1,}, 84 {.type = USNIC_VNIC_RES_TYPE_EOL, .cnt = 0,}, 89 {.type = USNIC_VNIC_RES_TYPE_WQ, .cnt = 1,}, 90 {.type = USNIC_VNIC_RES_TYPE_RQ, .cnt = 1,}, 91 {.type = USNIC_VNIC_RES_TYPE_CQ, .cnt = 1,}, 92 {.type = USNIC_VNIC_RES_TYPE_EOL, .cnt = 0,},
|
H A D | usnic_vnic.c | 105 for (j = 0; j < chunk->cnt; j++) { usnic_vnic_dump() 125 u16 cnt) usnic_vnic_res_spec_update() 131 spec->resources[i].cnt = cnt; usnic_vnic_res_spec_update() 152 if (min_spec->resources[i].cnt > usnic_vnic_res_spec_satisfied() 153 res_spec->resources[i].cnt) usnic_vnic_res_spec_satisfied() 174 res_cnt = res_spec->resources[i].cnt; usnic_vnic_spec_dump() 193 res_cnt = res_spec->resources[i].cnt; usnic_vnic_check_room() 208 return vnic->chunks[type].cnt; usnic_vnic_res_cnt() 219 int cnt, void *owner) usnic_vnic_get_resources() 225 if (usnic_vnic_res_free_cnt(vnic, type) < cnt || cnt < 1 || !owner) usnic_vnic_get_resources() 235 ret->res = kzalloc(sizeof(*(ret->res))*cnt, GFP_ATOMIC); usnic_vnic_get_resources() 245 for (i = 0; i < src->cnt && ret->cnt < cnt; i++) { usnic_vnic_get_resources() 250 ret->res[ret->cnt++] = res; usnic_vnic_get_resources() 257 WARN_ON(ret->cnt != cnt); usnic_vnic_get_resources() 270 while ((i = --chunk->cnt) >= 0) { usnic_vnic_put_resources() 291 int cnt, err, i; usnic_vnic_alloc_res_chunk() local 294 cnt = vnic_dev_get_res_count(vnic->vdev, _to_vnic_res_type(type)); usnic_vnic_alloc_res_chunk() 295 if (cnt < 1) usnic_vnic_alloc_res_chunk() 298 chunk->cnt = chunk->free_cnt = cnt; usnic_vnic_alloc_res_chunk() 299 chunk->res = kzalloc(sizeof(*(chunk->res))*cnt, GFP_KERNEL); usnic_vnic_alloc_res_chunk() 303 for (i = 0; i < cnt; i++) { usnic_vnic_alloc_res_chunk() 329 for (i = 0; i < chunk->cnt; i++) usnic_vnic_free_res_chunk() 123 usnic_vnic_res_spec_update(struct usnic_vnic_res_spec *spec, enum usnic_vnic_res_type trgt_type, u16 cnt) usnic_vnic_res_spec_update() argument 218 usnic_vnic_get_resources(struct usnic_vnic *vnic, enum usnic_vnic_res_type type, int cnt, void *owner) usnic_vnic_get_resources() argument
|
H A D | usnic_vnic.h | 55 int cnt; member in struct:usnic_vnic_res_chunk 63 uint16_t cnt; member in struct:usnic_vnic_res_desc 79 u16 cnt); 93 int cnt,
|
/linux-4.1.27/drivers/media/usb/pvrusb2/ |
H A D | pvrusb2-ctrl.c | 312 unsigned int uc,cnt; gen_bitmask_string() local 323 cnt = scnprintf(ptr,len,"%s%s%s", gen_bitmask_string() 328 ptr += cnt; len -= cnt; uc += cnt; gen_bitmask_string() 337 cnt = scnprintf(ptr,len,"%s0x%lx", gen_bitmask_string() 340 ptr += cnt; len -= cnt; uc += cnt; gen_bitmask_string() 343 cnt = scnprintf(ptr,len,"%s+0x%lx", gen_bitmask_string() 346 ptr += cnt; len -= cnt; uc += cnt; gen_bitmask_string() 349 cnt = scnprintf(ptr,len,"%s+0x%lx", gen_bitmask_string() 352 ptr += cnt; len -= cnt; uc += cnt; gen_bitmask_string() 435 unsigned int cnt; parse_tlist() local 441 cnt = 0; parse_tlist() 442 while ((cnt < len) && parse_tlist() 443 ((ptr[cnt] <= 32) || parse_tlist() 444 (ptr[cnt] >= 127))) cnt++; parse_tlist() 445 ptr += cnt; parse_tlist() 446 len -= cnt; parse_tlist() 453 cnt = 0; parse_tlist() 454 while (cnt < len) { parse_tlist() 455 if (ptr[cnt] <= 32) break; parse_tlist() 456 if (ptr[cnt] >= 127) break; parse_tlist() 457 cnt++; parse_tlist() 459 if (!cnt) break; parse_tlist() 460 if (parse_mtoken(ptr,cnt,&kv,names,valid_bits)) { parse_tlist() 464 ptr += cnt; parse_tlist() 465 len -= cnt; parse_tlist() 495 unsigned int cnt; pvr2_ctrl_sym_to_value() local 500 cnt = 0; pvr2_ctrl_sym_to_value() 501 while ((cnt < len) && ((ptr[cnt] <= 32) || (ptr[cnt] >= 127))) cnt++; pvr2_ctrl_sym_to_value() 502 len -= cnt; ptr += cnt; pvr2_ctrl_sym_to_value() 503 cnt = 0; pvr2_ctrl_sym_to_value() 504 while ((cnt < len) && ((ptr[len-(cnt+1)] <= 32) || pvr2_ctrl_sym_to_value() 505 (ptr[len-(cnt+1)] >= 127))) cnt++; pvr2_ctrl_sym_to_value() 506 len -= cnt; pvr2_ctrl_sym_to_value()
|
H A D | pvrusb2-std.c | 141 unsigned int cnt; pvr2_std_str_to_id() local 147 cnt = 0; pvr2_std_str_to_id() 148 while ((cnt < bufSize) && (bufPtr[cnt] != '-')) cnt++; pvr2_std_str_to_id() 149 if (cnt >= bufSize) return 0; // No more characters pvr2_std_str_to_id() 151 bufPtr,cnt); pvr2_std_str_to_id() 153 cnt++; pvr2_std_str_to_id() 154 bufPtr += cnt; pvr2_std_str_to_id() 155 bufSize -= cnt; pvr2_std_str_to_id() 160 cnt = 0; pvr2_std_str_to_id() 161 while (cnt < bufSize) { pvr2_std_str_to_id() 162 ch = bufPtr[cnt]; pvr2_std_str_to_id() 168 cnt++; pvr2_std_str_to_id() 171 bufPtr,cnt); pvr2_std_str_to_id() 176 if (cnt < bufSize) cnt++; pvr2_std_str_to_id() 177 bufPtr += cnt; pvr2_std_str_to_id() 178 bufSize -= cnt; pvr2_std_str_to_id()
|
H A D | pvrusb2-io.c | 132 unsigned int *cnt; pvr2_buffer_remove() local 138 cnt = &sp->i_count; pvr2_buffer_remove() 143 cnt = &sp->q_count; pvr2_buffer_remove() 148 cnt = &sp->r_count; pvr2_buffer_remove() 156 (*cnt)--; pvr2_buffer_remove() 160 " bufferPool %8s dec cap=%07d cnt=%02d", pvr2_buffer_remove() 161 pvr2_buffer_state_decode(bp->state),*bcnt,*cnt); pvr2_buffer_remove() 202 " bufferPool %8s inc cap=%07d cnt=%02d", pvr2_buffer_set_ready() 228 " bufferPool %8s inc cap=%07d cnt=%02d", pvr2_buffer_set_idle() 253 " bufferPool %8s inc cap=%07d cnt=%02d", pvr2_buffer_set_queued() 300 static int pvr2_stream_buffer_count(struct pvr2_stream *sp,unsigned int cnt) pvr2_stream_buffer_count() argument 306 if (cnt == sp->buffer_total_count) return 0; pvr2_stream_buffer_count() 313 cnt-sp->buffer_total_count); pvr2_stream_buffer_count() 315 scnt = cnt & ~0x1f; pvr2_stream_buffer_count() 316 if (cnt > scnt) scnt += 0x20; pvr2_stream_buffer_count() 318 if (cnt > sp->buffer_total_count) { pvr2_stream_buffer_count() 331 while (sp->buffer_total_count < cnt) { pvr2_stream_buffer_count() 345 while (sp->buffer_total_count > cnt) { pvr2_stream_buffer_count() 372 unsigned int cnt; pvr2_stream_achieve_buffer_count() local 385 cnt = 0; pvr2_stream_achieve_buffer_count() 386 while ((sp->buffer_total_count - cnt) > sp->buffer_target_count) { pvr2_stream_achieve_buffer_count() 387 bp = sp->buffers[sp->buffer_total_count - (cnt + 1)]; pvr2_stream_achieve_buffer_count() 389 cnt++; pvr2_stream_achieve_buffer_count() 391 if (cnt) { pvr2_stream_achieve_buffer_count() 392 pvr2_stream_buffer_count(sp,sp->buffer_total_count - cnt); pvr2_stream_achieve_buffer_count() 445 "/*---TRACE_FLOW---*/ bufferComplete %p stat=%d cnt=%d", buffer_complete() 553 int pvr2_stream_set_buffer_count(struct pvr2_stream *sp,unsigned int cnt) pvr2_stream_set_buffer_count() argument 556 if (sp->buffer_target_count == cnt) return 0; pvr2_stream_set_buffer_count() 558 sp->buffer_target_count = cnt; pvr2_stream_set_buffer_count() 643 int pvr2_buffer_set_buffer(struct pvr2_buffer *bp,void *ptr,unsigned int cnt) pvr2_buffer_set_buffer() argument 657 bp->max_count = cnt; pvr2_buffer_set_buffer() 661 " %8s cap cap=%07d cnt=%02d", pvr2_buffer_set_buffer()
|
H A D | pvrusb2-video-v4l.c | 43 unsigned int cnt; member in struct:routing_scheme 58 .cnt = ARRAY_SIZE(routing_scheme0), 70 .cnt = ARRAY_SIZE(routing_scheme1), 92 (hdw->input_val >= sp->cnt)) { pvr2_saa7115_subdev_update()
|
H A D | pvrusb2-devattr.c | 66 .client_table.cnt = ARRAY_SIZE(pvr2_cli_29xxx), 68 .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_29xxx), 100 .client_table.cnt = ARRAY_SIZE(pvr2_cli_24xxx), 102 .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_24xxx), 130 .client_table.cnt = ARRAY_SIZE(pvr2_cli_gotview_2), 151 .client_table.cnt = ARRAY_SIZE(pvr2_cli_gotview_2), 174 .client_table.cnt = ARRAY_SIZE(pvr2_cli_av400), 229 .client_table.cnt = ARRAY_SIZE(pvr2_cli_onair_creator), 289 .client_table.cnt = ARRAY_SIZE(pvr2_cli_onair_usb2), 383 .client_table.cnt = ARRAY_SIZE(pvr2_cli_73xxx), 385 .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_73xxx), 490 .client_table.cnt = ARRAY_SIZE(pvr2_cli_73xxx), 492 .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_75xxx), 513 .client_table.cnt = ARRAY_SIZE(pvr2_cli_73xxx), 515 .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_75xxx),
|
H A D | pvrusb2-cx2584x-v4l.c | 48 unsigned int cnt; member in struct:routing_scheme 72 .cnt = ARRAY_SIZE(routing_scheme0), 99 .cnt = ARRAY_SIZE(routing_schemegv), 116 .cnt = ARRAY_SIZE(routing_schemeav400), 138 (hdw->input_val >= sp->cnt)) { pvr2_cx25840_subdev_update()
|
H A D | pvrusb2-audio.c | 32 unsigned int cnt; member in struct:routing_scheme 53 .cnt = ARRAY_SIZE(routing_scheme0), 73 (hdw->input_val < sp->cnt)) { pvr2_msp3400_subdev_update()
|
H A D | pvrusb2-cs53l32a.c | 40 unsigned int cnt; member in struct:routing_scheme 53 .cnt = ARRAY_SIZE(routing_scheme1), 73 (hdw->input_val >= sp->cnt)) { pvr2_cs53l32a_subdev_update()
|
H A D | pvrusb2-sysfs.c | 156 unsigned int cnt = 0; show_def() local 161 buf, PAGE_SIZE - 1, &cnt); show_def() 163 cip->chptr, cip->ctl_id, cnt, buf, val); show_def() 164 buf[cnt] = '\n'; show_def() 165 return cnt + 1; show_def() 175 unsigned int cnt = 0; show_val_norm() local 180 buf, PAGE_SIZE - 1, &cnt); show_val_norm() 182 cip->chptr, cip->ctl_id, cnt, buf, val); show_val_norm() 183 buf[cnt] = '\n'; show_val_norm() 184 return cnt+1; show_val_norm() 194 unsigned int cnt = 0; show_val_custom() local 199 buf, PAGE_SIZE - 1, &cnt); show_val_custom() 201 cip->chptr, cip->ctl_id, cnt, buf, val); show_val_custom() 202 buf[cnt] = '\n'; show_val_custom() 203 return cnt+1; show_val_custom() 305 unsigned int cnt,acnt; pvr2_sysfs_add_control() local 404 cnt = scnprintf(cip->name,sizeof(cip->name)-1,"ctl_%s", pvr2_sysfs_add_control() 406 cip->name[cnt] = 0; pvr2_sysfs_add_control() 483 unsigned int idx,cnt; pvr2_sysfs_add_controls() local 484 cnt = pvr2_hdw_get_ctrl_count(sfp->channel.hdw); pvr2_sysfs_add_controls() 485 for (idx = 0; idx < cnt; idx++) { pvr2_sysfs_add_controls()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
H A D | disp.c | 30 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *sub) nvbios_disp_table() 45 *cnt = nv_ro08(bios, data + 0x03); nvbios_disp_table() 61 u8 hdr, cnt; nvbios_disp_entry() local 62 u16 data = nvbios_disp_table(bios, ver, &hdr, &cnt, len, sub); nvbios_disp_entry() 63 if (data && idx < cnt) nvbios_disp_entry() 83 u8 *ver, u8 *hdr, u8 *cnt, u8 *len) nvbios_outp_entry() 88 *cnt = nv_ro08(bios, info.data + 0x05); nvbios_outp_entry() 97 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_outp *info) nvbios_outp_parse() 99 u16 data = nvbios_outp_entry(bios, idx, ver, hdr, cnt, len); nvbios_outp_parse() 117 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_outp *info) nvbios_outp_match() 120 while ((data = nvbios_outp_parse(bios, idx++, ver, hdr, cnt, len, info)) || *ver) { nvbios_outp_match() 131 u8 *ver, u8 *hdr, u8 *cnt, u8 *len) nvbios_ocfg_entry() 133 if (idx < *cnt) nvbios_ocfg_entry() 140 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_ocfg *info) nvbios_ocfg_parse() 142 u16 data = nvbios_ocfg_entry(bios, outp, idx, ver, hdr, cnt, len); nvbios_ocfg_parse() 153 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_ocfg *info) nvbios_ocfg_match() 156 while ((data = nvbios_ocfg_parse(bios, outp, idx++, ver, hdr, cnt, len, info))) { nvbios_ocfg_match() 29 nvbios_disp_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *sub) nvbios_disp_table() argument 82 nvbios_outp_entry(struct nvkm_bios *bios, u8 idx, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) nvbios_outp_entry() argument 96 nvbios_outp_parse(struct nvkm_bios *bios, u8 idx, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_outp *info) nvbios_outp_parse() argument 116 nvbios_outp_match(struct nvkm_bios *bios, u16 type, u16 mask, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_outp *info) nvbios_outp_match() argument 130 nvbios_ocfg_entry(struct nvkm_bios *bios, u16 outp, u8 idx, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) nvbios_ocfg_entry() argument 139 nvbios_ocfg_parse(struct nvkm_bios *bios, u16 outp, u8 idx, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_ocfg *info) nvbios_ocfg_parse() argument 152 nvbios_ocfg_match(struct nvkm_bios *bios, u16 outp, u16 type, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_ocfg *info) nvbios_ocfg_match() argument
|
H A D | boost.c | 30 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz) nvbios_boostTe() 44 *cnt = nv_ro08(bios, boost + 5); nvbios_boostTe() 60 u8 *ver, u8 *hdr, u8 *cnt, u8 *len) nvbios_boostEe() 63 u16 data = nvbios_boostTe(bios, ver, hdr, cnt, len, &snr, &ssz); nvbios_boostEe() 64 if (data && idx < *cnt) { nvbios_boostEe() 67 *cnt = snr; nvbios_boostEe() 76 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_boostE *info) nvbios_boostEp() 78 u16 data = nvbios_boostEe(bios, idx, ver, hdr, cnt, len); nvbios_boostEp() 90 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_boostE *info) nvbios_boostEm() 93 while ((data = nvbios_boostEp(bios, idx++, ver, hdr, cnt, len, info))) { nvbios_boostEm() 102 u16 data, u8 *ver, u8 *hdr, u8 cnt, u8 len) nvbios_boostSe() 104 if (data && idx < cnt) { nvbios_boostSe() 114 u16 data, u8 *ver, u8 *hdr, u8 cnt, u8 len, nvbios_boostSp() 117 data = nvbios_boostSe(bios, idx, data, ver, hdr, cnt, len); nvbios_boostSp() 29 nvbios_boostTe(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz) nvbios_boostTe() argument 59 nvbios_boostEe(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) nvbios_boostEe() argument 75 nvbios_boostEp(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_boostE *info) nvbios_boostEp() argument 89 nvbios_boostEm(struct nvkm_bios *bios, u8 pstate, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_boostE *info) nvbios_boostEm() argument 101 nvbios_boostSe(struct nvkm_bios *bios, int idx, u16 data, u8 *ver, u8 *hdr, u8 cnt, u8 len) nvbios_boostSe() argument 113 nvbios_boostSp(struct nvkm_bios *bios, int idx, u16 data, u8 *ver, u8 *hdr, u8 cnt, u8 len, struct nvbios_boostS *info) nvbios_boostSp() argument
|
H A D | dp.c | 29 nvbios_dp_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) nvbios_dp_table() argument 45 *cnt = nv_ro08(bios, data + 0x03); nvbios_dp_table() 59 u8 *ver, u8 *hdr, u8 *cnt, u8 *len) nvbios_dpout_entry() 61 u16 data = nvbios_dp_table(bios, ver, hdr, cnt, len); nvbios_dpout_entry() 62 if (data && idx < *cnt) { nvbios_dpout_entry() 69 *cnt = nv_ro08(bios, outp + 0x04); nvbios_dpout_entry() 74 *cnt = 0; nvbios_dpout_entry() 88 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, nvbios_dpout_parse() 91 u16 data = nvbios_dpout_entry(bios, idx, ver, hdr, cnt, len); nvbios_dpout_parse() 130 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, nvbios_dpout_match() 134 while ((data = nvbios_dpout_parse(bios, idx++, ver, hdr, cnt, len, info)) || *ver) { nvbios_dpout_match() 145 u8 *ver, u8 *hdr, u8 *cnt, u8 *len) nvbios_dpcfg_entry() 148 outp = nvbios_dp_table(bios, ver, hdr, cnt, len); nvbios_dpcfg_entry() 149 *hdr = *hdr + (*len * * cnt); nvbios_dpcfg_entry() 151 *cnt = nv_ro08(bios, outp + 0x07); nvbios_dpcfg_entry() 154 if (idx < *cnt) nvbios_dpcfg_entry() 162 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, nvbios_dpcfg_parse() 165 u16 data = nvbios_dpcfg_entry(bios, outp, idx, ver, hdr, cnt, len); nvbios_dpcfg_parse() 192 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, nvbios_dpcfg_match() 207 ver, hdr, cnt, len))) { nvbios_dpcfg_match() 214 return nvbios_dpcfg_parse(bios, outp, idx, ver, hdr, cnt, len, info); nvbios_dpcfg_match() 58 nvbios_dpout_entry(struct nvkm_bios *bios, u8 idx, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) nvbios_dpout_entry() argument 87 nvbios_dpout_parse(struct nvkm_bios *bios, u8 idx, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_dpout *info) nvbios_dpout_parse() argument 129 nvbios_dpout_match(struct nvkm_bios *bios, u16 type, u16 mask, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_dpout *info) nvbios_dpout_match() argument 144 nvbios_dpcfg_entry(struct nvkm_bios *bios, u16 outp, u8 idx, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) nvbios_dpcfg_entry() argument 161 nvbios_dpcfg_parse(struct nvkm_bios *bios, u16 outp, u8 idx, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_dpcfg *info) nvbios_dpcfg_parse() argument 191 nvbios_dpcfg_match(struct nvkm_bios *bios, u16 outp, u8 pc, u8 vs, u8 pe, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_dpcfg *info) nvbios_dpcfg_match() argument
|
H A D | M0205.c | 30 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz) nvbios_M0205Te() 46 *cnt = nv_ro08(bios, data + 0x05); nvbios_M0205Te() 59 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz, nvbios_M0205Tp() 62 u32 data = nvbios_M0205Te(bios, ver, hdr, cnt, len, snr, ssz); nvbios_M0205Tp() 76 u8 *ver, u8 *hdr, u8 *cnt, u8 *len) nvbios_M0205Ee() 79 u32 data = nvbios_M0205Te(bios, ver, hdr, cnt, len, &snr, &ssz); nvbios_M0205Ee() 80 if (data && idx < *cnt) { nvbios_M0205Ee() 83 *cnt = snr; nvbios_M0205Ee() 92 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, nvbios_M0205Ep() 95 u32 data = nvbios_M0205Ee(bios, idx, ver, hdr, cnt, len); nvbios_M0205Ep() 111 u8 cnt, len; nvbios_M0205Se() local 112 u32 data = nvbios_M0205Ee(bios, ent, ver, hdr, &cnt, &len); nvbios_M0205Se() 113 if (data && idx < cnt) { nvbios_M0205Se() 29 nvbios_M0205Te(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz) nvbios_M0205Te() argument 58 nvbios_M0205Tp(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz, struct nvbios_M0205T *info) nvbios_M0205Tp() argument 75 nvbios_M0205Ee(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) nvbios_M0205Ee() argument 91 nvbios_M0205Ep(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_M0205E *info) nvbios_M0205Ep() argument
|
H A D | M0209.c | 30 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz) nvbios_M0209Te() 46 *cnt = nv_ro08(bios, data + 0x04); nvbios_M0209Te() 59 u8 *ver, u8 *hdr, u8 *cnt, u8 *len) nvbios_M0209Ee() 62 u32 data = nvbios_M0209Te(bios, ver, hdr, cnt, len, &snr, &ssz); nvbios_M0209Ee() 63 if (data && idx < *cnt) { nvbios_M0209Ee() 66 *cnt = snr; nvbios_M0209Ee() 75 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_M0209E *info) nvbios_M0209Ep() 77 u32 data = nvbios_M0209Ee(bios, idx, ver, hdr, cnt, len); nvbios_M0209Ep() 98 u8 cnt, len; nvbios_M0209Se() local 99 u32 data = nvbios_M0209Ee(bios, ent, ver, hdr, &cnt, &len); nvbios_M0209Se() 100 if (data && idx < cnt) { nvbios_M0209Se() 113 u8 cnt, len; nvbios_M0209Sp() local 114 u32 data = nvbios_M0209Ep(bios, ent, ver, hdr, &cnt, &len, &M0209E); nvbios_M0209Sp() 29 nvbios_M0209Te(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz) nvbios_M0209Te() argument 58 nvbios_M0209Ee(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) nvbios_M0209Ee() argument 74 nvbios_M0209Ep(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_M0209E *info) nvbios_M0209Ep() argument
|
H A D | xpio.c | 29 dcb_xpiod_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) dcb_xpiod_table() argument 31 u16 data = dcb_gpio_table(bios, ver, hdr, cnt, len); dcb_xpiod_table() 37 *cnt = nv_ro08(bios, data + 0x02); dcb_xpiod_table() 47 u8 *ver, u8 *hdr, u8 *cnt, u8 *len) dcb_xpio_table() 49 u16 data = dcb_xpiod_table(bios, ver, hdr, cnt, len); dcb_xpio_table() 50 if (data && idx < *cnt) { dcb_xpio_table() 55 *cnt = nv_ro08(bios, data + 0x02); dcb_xpio_table() 65 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_xpio *info) dcb_xpio_parse() 67 u16 data = dcb_xpio_table(bios, idx, ver, hdr, cnt, len); dcb_xpio_parse() 46 dcb_xpio_table(struct nvkm_bios *bios, u8 idx, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) dcb_xpio_table() argument 64 dcb_xpio_parse(struct nvkm_bios *bios, u8 idx, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_xpio *info) dcb_xpio_parse() argument
|
H A D | P0260.c | 30 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *xnr, u8 *xsz) nvbios_P0260Te() 43 *cnt = nv_ro08(bios, data + 2); nvbios_P0260Te() 60 u8 hdr, cnt, xnr, xsz; nvbios_P0260Ee() local 61 u32 data = nvbios_P0260Te(bios, ver, &hdr, &cnt, len, &xnr, &xsz); nvbios_P0260Ee() 62 if (data && idx < cnt) nvbios_P0260Ee() 86 u8 hdr, cnt, len, xnr; nvbios_P0260Xe() local 87 u32 data = nvbios_P0260Te(bios, ver, &hdr, &cnt, &len, &xnr, xsz); nvbios_P0260Xe() 89 return data + hdr + (cnt * len) + (idx * *xsz); nvbios_P0260Xe() 29 nvbios_P0260Te(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *xnr, u8 *xsz) nvbios_P0260Te() argument
|
H A D | conn.c | 29 nvbios_connTe(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) nvbios_connTe() argument 31 u32 dcb = dcb_table(bios, ver, hdr, cnt, len); nvbios_connTe() 37 *cnt = nv_ro08(bios, data + 2); nvbios_connTe() 46 nvbios_connTp(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, nvbios_connTp() argument 49 u32 data = nvbios_connTe(bios, ver, hdr, cnt, len); nvbios_connTp() 64 u8 hdr, cnt; nvbios_connEe() local 65 u32 data = nvbios_connTe(bios, ver, &hdr, &cnt, len); nvbios_connEe() 66 if (data && idx < cnt) nvbios_connEe()
|
H A D | perf.c | 32 u8 *cnt, u8 *len, u8 *snr, u8 *ssz) nvbios_perf_table() 44 *cnt = nv_ro08(bios, perf + 5); nvbios_perf_table() 51 *cnt = nv_ro08(bios, perf + 2); nvbios_perf_table() 67 *cnt = nv_ro08(bios, perf + 2); nvbios_perf_table() 81 u8 *ver, u8 *hdr, u8 *cnt, u8 *len) nvbios_perf_entry() 84 u16 perf = nvbios_perf_table(bios, ver, hdr, cnt, len, &snr, &ssz); nvbios_perf_entry() 85 if (perf && idx < *cnt) { nvbios_perf_entry() 88 *cnt = snr; nvbios_perf_entry() 97 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_perfE *info) nvbios_perfEp() 99 u16 perf = nvbios_perf_entry(bios, idx, ver, hdr, cnt, len); nvbios_perfEp() 159 u8 *ver, u8 *hdr, u8 cnt, u8 len) nvbios_perfSe() 162 if (idx < cnt) { nvbios_perfSe() 171 u8 *ver, u8 *hdr, u8 cnt, u8 len, nvbios_perfSp() 174 u32 data = nvbios_perfSe(bios, perfE, idx, ver, hdr, cnt, len); nvbios_perfSp() 190 u8 ver, hdr, cnt, len, snr, ssz; nvbios_perf_fan_parse() local 191 u16 perf = nvbios_perf_table(bios, &ver, &hdr, &cnt, &len, &snr, &ssz); nvbios_perf_fan_parse() 31 nvbios_perf_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz) nvbios_perf_table() argument 80 nvbios_perf_entry(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) nvbios_perf_entry() argument 96 nvbios_perfEp(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_perfE *info) nvbios_perfEp() argument 158 nvbios_perfSe(struct nvkm_bios *bios, u32 perfE, int idx, u8 *ver, u8 *hdr, u8 cnt, u8 len) nvbios_perfSe() argument 170 nvbios_perfSp(struct nvkm_bios *bios, u32 perfE, int idx, u8 *ver, u8 *hdr, u8 cnt, u8 len, struct nvbios_perfS *info) nvbios_perfSp() argument
|
H A D | fan.c | 29 nvbios_fan_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) nvbios_fan_table() argument 44 *cnt = nv_ro08(bios, fan + 3); nvbios_fan_table() 57 u8 *cnt, u8 *len) nvbios_fan_entry() 59 u16 data = nvbios_fan_table(bios, ver, hdr, cnt, len); nvbios_fan_entry() 60 if (data && idx < *cnt) nvbios_fan_entry() 68 u8 ver, hdr, cnt, len; nvbios_fan_parse() local 70 u16 data = nvbios_fan_entry(bios, 0, &ver, &hdr, &cnt, &len); nvbios_fan_parse() 56 nvbios_fan_entry(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) nvbios_fan_entry() argument
|
H A D | vmap.c | 29 nvbios_vmap_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) nvbios_vmap_table() argument 43 *cnt = nv_ro08(bios, vmap + 3); nvbios_vmap_table() 57 nvbios_vmap_parse(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, nvbios_vmap_parse() argument 60 u16 vmap = nvbios_vmap_table(bios, ver, hdr, cnt, len); nvbios_vmap_parse() 73 u8 hdr, cnt; nvbios_vmap_entry() local 74 u16 vmap = nvbios_vmap_table(bios, ver, &hdr, &cnt, len); nvbios_vmap_entry() 75 if (vmap && idx < cnt) { nvbios_vmap_entry()
|
H A D | gpio.c | 30 dcb_gpio_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) dcb_gpio_table() argument 33 u16 dcb = dcb_table(bios, ver, hdr, cnt, len); dcb_gpio_table() 45 *cnt = nv_ro08(bios, data + 0x02); dcb_gpio_table() 50 *cnt = nv_ro08(bios, data + 0x02); dcb_gpio_table() 63 u8 hdr, cnt, xver; /* use gpio version for xpio entry parsing */ dcb_gpio_entry() local 67 gpio = dcb_gpio_table(bios, ver, &hdr, &cnt, len); dcb_gpio_entry() 69 gpio = dcb_xpio_table(bios, idx, &xver, &hdr, &cnt, len); dcb_gpio_entry() 71 if (gpio && ent < cnt) dcb_gpio_entry() 122 u8 hdr, cnt, i = 0; dcb_gpio_match() local 132 if ((data = dcb_table(bios, ver, &hdr, &cnt, len))) { dcb_gpio_match()
|
H A D | M0203.c | 29 nvbios_M0203Te(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) nvbios_M0203Te() argument 43 *cnt = nv_ro08(bios, data + 0x03); nvbios_M0203Te() 55 nvbios_M0203Tp(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, nvbios_M0203Tp() argument 58 u32 data = nvbios_M0203Te(bios, ver, hdr, cnt, len); nvbios_M0203Tp() 74 u8 cnt, len; nvbios_M0203Ee() local 75 u32 data = nvbios_M0203Te(bios, ver, hdr, &cnt, &len); nvbios_M0203Ee() 76 if (data && idx < cnt) { nvbios_M0203Ee() 107 u8 cnt, len, idx = 0xff; nvbios_M0203Em() local 110 if (!nvbios_M0203Tp(bios, ver, hdr, &cnt, &len, &M0203T)) { nvbios_M0203Em()
|
H A D | timing.c | 30 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz) nvbios_timingTe() 47 *cnt = nv_ro08(bios, timing + 2); nvbios_timingTe() 54 *cnt = nv_ro08(bios, timing + 5); nvbios_timingTe() 70 u8 *ver, u8 *hdr, u8 *cnt, u8 *len) nvbios_timingEe() 73 u16 timing = nvbios_timingTe(bios, ver, hdr, cnt, len, &snr, &ssz); nvbios_timingEe() 74 if (timing && idx < *cnt) { nvbios_timingEe() 77 *cnt = snr; nvbios_timingEe() 86 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_ramcfg *p) nvbios_timingEp() 88 u16 data = nvbios_timingEe(bios, idx, ver, hdr, cnt, len), temp; nvbios_timingEp() 29 nvbios_timingTe(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz) nvbios_timingTe() argument 69 nvbios_timingEe(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) nvbios_timingEe() argument 85 nvbios_timingEp(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_ramcfg *p) nvbios_timingEp() argument
|
H A D | volt.c | 29 nvbios_volt_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) nvbios_volt_table() argument 46 *cnt = nv_ro08(bios, volt + 2); nvbios_volt_table() 51 *cnt = nv_ro08(bios, volt + 2); nvbios_volt_table() 58 *cnt = nv_ro08(bios, volt + 3); nvbios_volt_table() 69 nvbios_volt_parse(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, nvbios_volt_parse() argument 72 u16 volt = nvbios_volt_table(bios, ver, hdr, cnt, len); nvbios_volt_parse() 106 u8 hdr, cnt; nvbios_volt_entry() local 107 u16 volt = nvbios_volt_table(bios, ver, &hdr, &cnt, len); nvbios_volt_entry() 108 if (volt && idx < cnt) { nvbios_volt_entry()
|
H A D | cstep.c | 30 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *xnr, u8 *xsz) nvbios_cstepTe() 44 *cnt = nv_ro08(bios, cstep + 3); nvbios_cstepTe() 61 u8 cnt, len, xnr, xsz; nvbios_cstepEe() local 62 u16 data = nvbios_cstepTe(bios, ver, hdr, &cnt, &len, &xnr, &xsz); nvbios_cstepEe() 63 if (data && idx < cnt) { nvbios_cstepEe() 99 u8 cnt, len, xnr, xsz; nvbios_cstepXe() local 100 u16 data = nvbios_cstepTe(bios, ver, hdr, &cnt, &len, &xnr, &xsz); nvbios_cstepXe() 102 data = data + *hdr + (cnt * len) + (idx * xsz); nvbios_cstepXe() 29 nvbios_cstepTe(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *xnr, u8 *xsz) nvbios_cstepTe() argument
|
H A D | extdev.c | 29 extdev_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *len, u8 *cnt) extdev_table() argument 44 *cnt = nv_ro08(bios, extdev + 2); extdev_table() 52 u8 hdr, cnt; nvbios_extdev_entry() local 53 u16 extdev = extdev_table(bios, ver, &hdr, len, &cnt); nvbios_extdev_entry() 54 if (extdev && idx < cnt) nvbios_extdev_entry()
|
H A D | i2c.c | 29 dcb_i2c_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) dcb_i2c_table() argument 32 u16 dcb = dcb_table(bios, ver, hdr, cnt, len); dcb_i2c_table() 48 *cnt = nv_ro08(bios, i2c + 2); dcb_i2c_table() 53 *cnt = 16; dcb_i2c_table() 63 u8 hdr, cnt; dcb_i2c_entry() local 64 u16 i2c = dcb_i2c_table(bios, ver, &hdr, &cnt, len); dcb_i2c_entry() 65 if (i2c && idx < cnt) dcb_i2c_entry()
|
H A D | pmu.c | 45 nvbios_pmuTe(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) nvbios_pmuTe() argument 57 *cnt = nv_ro08(bios, data + 0x03); nvbios_pmuTe() 65 nvbios_pmuTp(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, nvbios_pmuTp() argument 68 u32 data = nvbios_pmuTe(bios, ver, hdr, cnt, len); nvbios_pmuTp() 80 u8 cnt, len; nvbios_pmuEe() local 81 u32 data = nvbios_pmuTe(bios, ver, hdr, &cnt, &len); nvbios_pmuEe() 82 if (data && idx < cnt) { nvbios_pmuEe()
|
H A D | rammap.c | 30 u8 *cnt, u8 *len, u8 *snr, u8 *ssz) nvbios_rammapTe() 45 *cnt = nv_ro08(bios, rammap + 5); nvbios_rammapTe() 61 u8 *ver, u8 *hdr, u8 *cnt, u8 *len) nvbios_rammapEe() 64 u16 rammap = nvbios_rammapTe(bios, ver, hdr, cnt, len, &snr, &ssz); nvbios_rammapEe() 65 if (rammap && idx < *cnt) { nvbios_rammapEe() 68 *cnt = snr; nvbios_rammapEe() 77 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_ramcfg *p) nvbios_rammapEp() 79 u32 data = nvbios_rammapEe(bios, idx, ver, hdr, cnt, len), temp; nvbios_rammapEp() 119 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_ramcfg *info) nvbios_rammapEm() 123 while ((data = nvbios_rammapEp(bios, idx++, ver, hdr, cnt, len, info))) { nvbios_rammapEm() 29 nvbios_rammapTe(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz) nvbios_rammapTe() argument 60 nvbios_rammapEe(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) nvbios_rammapEe() argument 76 nvbios_rammapEp(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_ramcfg *p) nvbios_rammapEp() argument 118 nvbios_rammapEm(struct nvkm_bios *bios, u16 mhz, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_ramcfg *info) nvbios_rammapEm() argument
|
H A D | pll.c | 82 pll_limits_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) pll_limits_table() argument 92 *cnt = nv_ro08(bios, data + 3); pll_limits_table() 102 *cnt = 1; pll_limits_table() 142 u8 hdr, cnt; pll_map_reg() local 145 data = pll_limits_table(bios, ver, &hdr, &cnt, len); pll_map_reg() 148 while (cnt--) { pll_map_reg() 163 while (cnt--) { pll_map_reg() 184 u8 hdr, cnt; pll_map_type() local 187 data = pll_limits_table(bios, ver, &hdr, &cnt, len); pll_map_type() 190 while (cnt--) { pll_map_type() 205 while (cnt--) { pll_map_type()
|
H A D | therm.c | 31 therm_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *len, u8 *cnt) therm_table() argument 54 *cnt = nv_ro08(bios, therm + 3); therm_table() 61 u8 hdr, cnt; nvbios_therm_entry() local 62 u16 therm = therm_table(bios, ver, &hdr, len, &cnt); nvbios_therm_entry() 63 if (therm && idx < cnt) nvbios_therm_entry()
|
H A D | dcb.c | 30 dcb_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) dcb_table() argument 51 *cnt = nv_ro08(bios, dcb + 2); dcb_table() 60 *cnt = (i2c - dcb) / 8; dcb_table() 69 *cnt = (i2c - dcb) / 10; dcb_table() 102 u8 hdr, cnt; dcb_outp() local 103 u16 dcb = dcb_table(bios, ver, &hdr, &cnt, len); dcb_outp() 104 if (dcb && idx < cnt) dcb_outp()
|
/linux-4.1.27/drivers/pci/ |
H A D | proc.c | 31 unsigned int cnt, size; proc_bus_pci_read() local 52 cnt = nbytes; proc_bus_pci_read() 54 if (!access_ok(VERIFY_WRITE, buf, cnt)) proc_bus_pci_read() 59 if ((pos & 1) && cnt) { proc_bus_pci_read() 65 cnt--; proc_bus_pci_read() 68 if ((pos & 3) && cnt > 2) { proc_bus_pci_read() 74 cnt -= 2; proc_bus_pci_read() 77 while (cnt >= 4) { proc_bus_pci_read() 83 cnt -= 4; proc_bus_pci_read() 86 if (cnt >= 2) { proc_bus_pci_read() 92 cnt -= 2; proc_bus_pci_read() 95 if (cnt) { proc_bus_pci_read() 101 cnt--; proc_bus_pci_read() 117 int cnt; proc_bus_pci_write() local 125 cnt = nbytes; proc_bus_pci_write() 127 if (!access_ok(VERIFY_READ, buf, cnt)) proc_bus_pci_write() 132 if ((pos & 1) && cnt) { proc_bus_pci_write() 138 cnt--; proc_bus_pci_write() 141 if ((pos & 3) && cnt > 2) { proc_bus_pci_write() 147 cnt -= 2; proc_bus_pci_write() 150 while (cnt >= 4) { proc_bus_pci_write() 156 cnt -= 4; proc_bus_pci_write() 159 if (cnt >= 2) { proc_bus_pci_write() 165 cnt -= 2; proc_bus_pci_write() 168 if (cnt) { proc_bus_pci_write() 174 cnt--; proc_bus_pci_write()
|
/linux-4.1.27/arch/mips/fw/arc/ |
H A D | promlib.c | 25 ULONG cnt; prom_putchar() local 29 ArcWrite(1, &it, 1, &cnt); prom_putchar() 35 ULONG cnt; prom_getchar() local 39 ArcRead(0, &c, 1, &cnt); prom_getchar()
|
H A D | init.c | 49 ArcRead(0, &c, 1, &cnt); prom_init()
|
/linux-4.1.27/drivers/usb/mon/ |
H A D | mon_text.c | 96 int cnt, limit; member in struct:mon_text_ptr 392 ptr.cnt = 0; mon_text_read_t() 398 ptr.cnt += snprintf(ptr.pbuf + ptr.cnt, ptr.limit - ptr.cnt, mon_text_read_t() 402 if (copy_to_user(buf, rp->printf_buf, ptr.cnt)) mon_text_read_t() 403 ptr.cnt = -EFAULT; mon_text_read_t() 406 return ptr.cnt; mon_text_read_t() 419 ptr.cnt = 0; mon_text_read_u() 434 ptr.cnt += snprintf(ptr.pbuf + ptr.cnt, ptr.limit - ptr.cnt, mon_text_read_u() 438 if (copy_to_user(buf, rp->printf_buf, ptr.cnt)) mon_text_read_u() 439 ptr.cnt = -EFAULT; mon_text_read_u() 442 return ptr.cnt; mon_text_read_u() 488 p->cnt += snprintf(p->pbuf + p->cnt, p->limit - p->cnt, mon_text_read_head_t() 506 p->cnt += snprintf(p->pbuf + p->cnt, p->limit - p->cnt, mon_text_read_head_u() 517 p->cnt += snprintf(p->pbuf + p->cnt, p->limit - p->cnt, mon_text_read_statset() 525 p->cnt += snprintf(p->pbuf + p->cnt, p->limit - p->cnt, mon_text_read_statset() 528 p->cnt += snprintf(p->pbuf + p->cnt, p->limit - p->cnt, mon_text_read_statset() 536 p->cnt += snprintf(p->pbuf + p->cnt, p->limit - p->cnt, mon_text_read_intstat() 544 p->cnt += snprintf(p->pbuf + p->cnt, p->limit - p->cnt, mon_text_read_isostat() 547 p->cnt += snprintf(p->pbuf + p->cnt, p->limit - p->cnt, mon_text_read_isostat() 560 p->cnt += snprintf(p->pbuf + p->cnt, p->limit - p->cnt, mon_text_read_isodesc() 569 p->cnt += snprintf(p->pbuf + p->cnt, p->limit - p->cnt, mon_text_read_isodesc() 582 p->cnt += snprintf(p->pbuf + p->cnt, p->limit - p->cnt, mon_text_read_data() 588 p->cnt += snprintf(p->pbuf + p->cnt, mon_text_read_data() 589 p->limit - p->cnt, mon_text_read_data() 592 p->cnt += snprintf(p->pbuf + p->cnt, mon_text_read_data() 593 p->limit - p->cnt, mon_text_read_data() 596 p->cnt += snprintf(p->pbuf + p->cnt, p->limit - p->cnt, mon_text_read_data() 599 p->cnt += snprintf(p->pbuf + p->cnt, p->limit - p->cnt, mon_text_read_data() 603 p->cnt += snprintf(p->pbuf + p->cnt, p->limit - p->cnt, "\n"); mon_text_read_data()
|
/linux-4.1.27/fs/quota/ |
H A D | dquot.c | 363 int ret, err, cnt; mark_all_dquot_dirty() local 366 for (cnt = 0; cnt < MAXQUOTAS; cnt++) { mark_all_dquot_dirty() 367 if (dquot[cnt]) mark_all_dquot_dirty() 369 ret = mark_dquot_dirty(dquot[cnt]); mark_all_dquot_dirty() 378 unsigned int cnt; dqput_all() local 380 for (cnt = 0; cnt < MAXQUOTAS; cnt++) dqput_all() 381 dqput(dquot[cnt]); dqput_all() 610 int cnt; dquot_writeback_dquots() local 614 for (cnt = 0; cnt < MAXQUOTAS; cnt++) { dquot_writeback_dquots() 615 if (type != -1 && cnt != type) dquot_writeback_dquots() 617 if (!sb_has_quota_active(sb, cnt)) dquot_writeback_dquots() 620 dirty = &dqopt->info[cnt].dqi_dirty_list; dquot_writeback_dquots() 644 for (cnt = 0; cnt < MAXQUOTAS; cnt++) dquot_writeback_dquots() 645 if ((cnt == type || type == -1) && sb_has_quota_active(sb, cnt) dquot_writeback_dquots() 646 && info_dirty(&dqopt->info[cnt])) dquot_writeback_dquots() 647 sb->dq_op->write_info(sb, cnt); dquot_writeback_dquots() 659 int cnt; dquot_quota_sync() local 680 for (cnt = 0; cnt < MAXQUOTAS; cnt++) { dquot_quota_sync() 681 if (type != -1 && cnt != type) dquot_quota_sync() 683 if (!sb_has_quota_active(sb, cnt)) dquot_quota_sync() 685 mutex_lock(&dqopt->files[cnt]->i_mutex); dquot_quota_sync() 686 truncate_inode_pages(&dqopt->files[cnt]->i_data, 0); dquot_quota_sync() 687 mutex_unlock(&dqopt->files[cnt]->i_mutex); dquot_quota_sync() 904 int cnt; dqinit_needed() local 912 for (cnt = 0; cnt < MAXQUOTAS; cnt++) dqinit_needed() 913 if (!dquots[cnt]) dqinit_needed() 1395 int cnt, init_needed = 0; __dquot_initialize() local 1406 for (cnt = 0; cnt < MAXQUOTAS; cnt++) { __dquot_initialize() 1411 if (type != -1 && cnt != type) __dquot_initialize() 1418 if (dquots[cnt]) __dquot_initialize() 1421 if (!sb_has_quota_active(sb, cnt)) __dquot_initialize() 1426 switch (cnt) { __dquot_initialize() 1440 got[cnt] = dqget(sb, qid); __dquot_initialize() 1450 for (cnt = 0; cnt < MAXQUOTAS; cnt++) { __dquot_initialize() 1451 if (type != -1 && cnt != type) __dquot_initialize() 1454 if (!sb_has_quota_active(sb, cnt)) __dquot_initialize() 1457 if (!got[cnt]) __dquot_initialize() 1459 if (!dquots[cnt]) { __dquot_initialize() 1460 dquots[cnt] = got[cnt]; __dquot_initialize() 1461 got[cnt] = NULL; __dquot_initialize() 1468 dquot_resv_space(dquots[cnt], rsv); __dquot_initialize() 1493 int cnt; __dquot_drop() local 1498 for (cnt = 0; cnt < MAXQUOTAS; cnt++) { __dquot_drop() 1499 put[cnt] = dquots[cnt]; __dquot_drop() 1500 dquots[cnt] = NULL; __dquot_drop() 1509 int cnt; dquot_drop() local 1522 for (cnt = 0; cnt < MAXQUOTAS; cnt++) { dquot_drop() 1523 if (dquots[cnt]) dquot_drop() 1527 if (cnt < MAXQUOTAS) dquot_drop() 1622 int cnt, ret = 0, index; __dquot_alloc_space() local 1632 for (cnt = 0; cnt < MAXQUOTAS; cnt++) __dquot_alloc_space() 1633 warn[cnt].w_type = QUOTA_NL_NOWARN; __dquot_alloc_space() 1638 for (cnt = 0; cnt < MAXQUOTAS; cnt++) { __dquot_alloc_space() 1639 if (!dquots[cnt]) __dquot_alloc_space() 1641 ret = check_bdq(dquots[cnt], number, __dquot_alloc_space() 1642 !(flags & DQUOT_SPACE_WARN), &warn[cnt]); __dquot_alloc_space() 1648 for (cnt = 0; cnt < MAXQUOTAS; cnt++) { __dquot_alloc_space() 1649 if (!dquots[cnt]) __dquot_alloc_space() 1652 dquot_resv_space(dquots[cnt], number); __dquot_alloc_space() 1654 dquot_incr_space(dquots[cnt], number); __dquot_alloc_space() 1675 int cnt, ret = 0, index; dquot_alloc_inode() local 1681 for (cnt = 0; cnt < MAXQUOTAS; cnt++) dquot_alloc_inode() 1682 warn[cnt].w_type = QUOTA_NL_NOWARN; dquot_alloc_inode() 1687 for (cnt = 0; cnt < MAXQUOTAS; cnt++) { dquot_alloc_inode() 1688 if (!dquots[cnt]) dquot_alloc_inode() 1690 ret = check_idq(dquots[cnt], 1, &warn[cnt]); dquot_alloc_inode() 1695 for (cnt = 0; cnt < MAXQUOTAS; cnt++) { dquot_alloc_inode() 1696 if (!dquots[cnt]) dquot_alloc_inode() 1698 dquot_incr_inodes(dquots[cnt], 1); dquot_alloc_inode() 1717 int cnt, index; dquot_claim_space_nodirty() local 1728 for (cnt = 0; cnt < MAXQUOTAS; cnt++) { dquot_claim_space_nodirty() 1729 if (dquots[cnt]) dquot_claim_space_nodirty() 1730 dquot_claim_reserved_space(dquots[cnt], number); dquot_claim_space_nodirty() 1747 int cnt, index; dquot_reclaim_space_nodirty() local 1758 for (cnt = 0; cnt < MAXQUOTAS; cnt++) { dquot_reclaim_space_nodirty() 1759 if (dquots[cnt]) dquot_reclaim_space_nodirty() 1760 dquot_reclaim_reserved_space(dquots[cnt], number); dquot_reclaim_space_nodirty() 1776 unsigned int cnt; __dquot_free_space() local 1789 for (cnt = 0; cnt < MAXQUOTAS; cnt++) { __dquot_free_space() 1792 warn[cnt].w_type = QUOTA_NL_NOWARN; __dquot_free_space() 1793 if (!dquots[cnt]) __dquot_free_space() 1795 wtype = info_bdq_free(dquots[cnt], number); __dquot_free_space() 1797 prepare_warning(&warn[cnt], dquots[cnt], wtype); __dquot_free_space() 1799 dquot_free_reserved_space(dquots[cnt], number); __dquot_free_space() 1801 dquot_decr_space(dquots[cnt], number); __dquot_free_space() 1820 unsigned int cnt; dquot_free_inode() local 1831 for (cnt = 0; cnt < MAXQUOTAS; cnt++) { dquot_free_inode() 1834 warn[cnt].w_type = QUOTA_NL_NOWARN; dquot_free_inode() 1835 if (!dquots[cnt]) dquot_free_inode() 1837 wtype = info_idq_free(dquots[cnt], 1); dquot_free_inode() 1839 prepare_warning(&warn[cnt], dquots[cnt], wtype); dquot_free_inode() 1840 dquot_decr_inodes(dquots[cnt], 1); dquot_free_inode() 1866 int cnt, ret = 0; __dquot_transfer() local 1875 for (cnt = 0; cnt < MAXQUOTAS; cnt++) { __dquot_transfer() 1876 warn_to[cnt].w_type = QUOTA_NL_NOWARN; __dquot_transfer() 1877 warn_from_inodes[cnt].w_type = QUOTA_NL_NOWARN; __dquot_transfer() 1878 warn_from_space[cnt].w_type = QUOTA_NL_NOWARN; __dquot_transfer() 1890 for (cnt = 0; cnt < MAXQUOTAS; cnt++) { __dquot_transfer() 1894 if (!transfer_to[cnt]) __dquot_transfer() 1897 if (!sb_has_quota_active(inode->i_sb, cnt)) __dquot_transfer() 1899 is_valid[cnt] = 1; __dquot_transfer() 1900 transfer_from[cnt] = i_dquot(inode)[cnt]; __dquot_transfer() 1901 ret = check_idq(transfer_to[cnt], 1, &warn_to[cnt]); __dquot_transfer() 1904 ret = check_bdq(transfer_to[cnt], space, 0, &warn_to[cnt]); __dquot_transfer() 1912 for (cnt = 0; cnt < MAXQUOTAS; cnt++) { __dquot_transfer() 1913 if (!is_valid[cnt]) __dquot_transfer() 1916 if (transfer_from[cnt]) { __dquot_transfer() 1918 wtype = info_idq_free(transfer_from[cnt], 1); __dquot_transfer() 1920 prepare_warning(&warn_from_inodes[cnt], __dquot_transfer() 1921 transfer_from[cnt], wtype); __dquot_transfer() 1922 wtype = info_bdq_free(transfer_from[cnt], space); __dquot_transfer() 1924 prepare_warning(&warn_from_space[cnt], __dquot_transfer() 1925 transfer_from[cnt], wtype); __dquot_transfer() 1926 dquot_decr_inodes(transfer_from[cnt], 1); __dquot_transfer() 1927 dquot_decr_space(transfer_from[cnt], cur_space); __dquot_transfer() 1928 dquot_free_reserved_space(transfer_from[cnt], __dquot_transfer() 1932 dquot_incr_inodes(transfer_to[cnt], 1); __dquot_transfer() 1933 dquot_incr_space(transfer_to[cnt], cur_space); __dquot_transfer() 1934 dquot_resv_space(transfer_to[cnt], rsv_space); __dquot_transfer() 1936 i_dquot(inode)[cnt] = transfer_to[cnt]; __dquot_transfer() 1946 for (cnt = 0; cnt < MAXQUOTAS; cnt++) __dquot_transfer() 1947 if (is_valid[cnt]) __dquot_transfer() 1948 transfer_to[cnt] = transfer_from[cnt]; __dquot_transfer() 2028 int cnt, ret = 0; dquot_disable() local 2051 for (cnt = 0; cnt < MAXQUOTAS; cnt++) { dquot_disable() 2052 toputinode[cnt] = NULL; dquot_disable() 2053 if (type != -1 && cnt != type) dquot_disable() 2055 if (!sb_has_quota_loaded(sb, cnt)) dquot_disable() 2061 dquot_state_flag(DQUOT_SUSPENDED, cnt); dquot_disable() 2065 dqopt->flags &= ~dquot_state_flag(flags, cnt); dquot_disable() 2067 if (!sb_has_quota_loaded(sb, cnt) && dquot_disable() 2068 sb_has_quota_suspended(sb, cnt)) { dquot_disable() 2070 DQUOT_SUSPENDED, cnt); dquot_disable() 2072 iput(dqopt->files[cnt]); dquot_disable() 2073 dqopt->files[cnt] = NULL; dquot_disable() 2080 if (sb_has_quota_loaded(sb, cnt) && !(flags & DQUOT_SUSPENDED)) dquot_disable() 2084 drop_dquot_ref(sb, cnt); dquot_disable() 2085 invalidate_dquots(sb, cnt); dquot_disable() 2090 if (info_dirty(&dqopt->info[cnt])) dquot_disable() 2091 sb->dq_op->write_info(sb, cnt); dquot_disable() 2092 if (dqopt->ops[cnt]->free_file_info) dquot_disable() 2093 dqopt->ops[cnt]->free_file_info(sb, cnt); dquot_disable() 2094 put_quota_format(dqopt->info[cnt].dqi_format); dquot_disable() 2096 toputinode[cnt] = dqopt->files[cnt]; dquot_disable() 2097 if (!sb_has_quota_loaded(sb, cnt)) dquot_disable() 2098 dqopt->files[cnt] = NULL; dquot_disable() 2099 dqopt->info[cnt].dqi_flags = 0; dquot_disable() 2100 dqopt->info[cnt].dqi_igrace = 0; dquot_disable() 2101 dqopt->info[cnt].dqi_bgrace = 0; dquot_disable() 2102 dqopt->ops[cnt] = NULL; dquot_disable() 2120 for (cnt = 0; cnt < MAXQUOTAS; cnt++) dquot_disable() 2121 if (toputinode[cnt]) { dquot_disable() 2125 if (!sb_has_quota_loaded(sb, cnt)) { dquot_disable() 2126 mutex_lock(&toputinode[cnt]->i_mutex); dquot_disable() 2127 toputinode[cnt]->i_flags &= ~(S_IMMUTABLE | dquot_disable() 2129 truncate_inode_pages(&toputinode[cnt]->i_data, dquot_disable() 2131 mutex_unlock(&toputinode[cnt]->i_mutex); dquot_disable() 2132 mark_inode_dirty_sync(toputinode[cnt]); dquot_disable() 2139 for (cnt = 0; cnt < MAXQUOTAS; cnt++) dquot_disable() 2140 if (toputinode[cnt]) { dquot_disable() 2149 iput(toputinode[cnt]); dquot_disable() 2150 else if (!toputinode[cnt]->i_nlink) dquot_disable() 2288 int ret = 0, cnt; dquot_resume() local 2291 for (cnt = 0; cnt < MAXQUOTAS; cnt++) { dquot_resume() 2292 if (type != -1 && cnt != type) dquot_resume() 2296 if (!sb_has_quota_suspended(sb, cnt)) { dquot_resume() 2300 inode = dqopt->files[cnt]; dquot_resume() 2301 dqopt->files[cnt] = NULL; dquot_resume() 2305 cnt); dquot_resume() 2306 dqopt->flags &= ~dquot_state_flag(DQUOT_STATE_FLAGS, cnt); dquot_resume() 2310 flags = dquot_generic_flag(flags, cnt); dquot_resume() 2311 ret = vfs_load_quota_inode(inode, cnt, dquot_resume() 2312 dqopt->info[cnt].dqi_fmt_id, flags); dquot_resume()
|
/linux-4.1.27/drivers/uwb/i1480/dfu/ |
H A D | phy.c | 105 unsigned cnt; i1480_mpi_read() local 115 for (cnt = 0; cnt < size; cnt++) { i1480_mpi_read() 116 cmd->data[cnt].page = (srcaddr + cnt) >> 8; i1480_mpi_read() 117 cmd->data[cnt].offset = (srcaddr + cnt) & 0xff; i1480_mpi_read() 130 for (cnt = 0; cnt < size; cnt++) { i1480_mpi_read() 131 if (reply->data[cnt].page != (srcaddr + cnt) >> 8) i1480_mpi_read() 133 "index %u: expected 0x%02x, got 0x%02x\n", cnt, i1480_mpi_read() 134 (srcaddr + cnt) >> 8, reply->data[cnt].page); i1480_mpi_read() 135 if (reply->data[cnt].offset != ((srcaddr + cnt) & 0x00ff)) i1480_mpi_read() 137 "index %u: expected 0x%02x, got 0x%02x\n", cnt, i1480_mpi_read() 138 (srcaddr + cnt) & 0x00ff, i1480_mpi_read() 139 reply->data[cnt].offset); i1480_mpi_read() 140 data[cnt] = reply->data[cnt].value; i1480_mpi_read()
|
H A D | mac.c | 170 u32 src_itr = 0, cnt; i1480_fw_cmp() local 185 for (cnt = 0; cnt < result; cnt++) i1480_fw_cmp() 186 if (bin[src_itr + cnt] != buf[cnt]) { i1480_fw_cmp() 188 "src_itr %u cnt %u [0x%02x " i1480_fw_cmp() 189 "vs 0x%02x]\n", src_itr, cnt, i1480_fw_cmp() 190 bin[src_itr + cnt], buf[cnt]); i1480_fw_cmp() 191 result = src_itr + cnt + 1; i1480_fw_cmp() 420 int cnt = 0; i1480_fw_is_running_q() local 424 for (cnt = 0; cnt < 10; cnt++) { i1480_fw_is_running_q()
|
/linux-4.1.27/drivers/tty/hvc/ |
H A D | hvc_beat.c | 42 static int hvc_beat_get_chars(uint32_t vtermno, char *buf, int cnt) hvc_beat_get_chars() argument 51 if (qlen > cnt) { hvc_beat_get_chars() 52 memcpy(buf, q, cnt); hvc_beat_get_chars() 53 qlen -= cnt; hvc_beat_get_chars() 54 memmove(q + cnt, q, qlen); hvc_beat_get_chars() 55 return cnt; hvc_beat_get_chars() 56 } else { /* qlen <= cnt */ hvc_beat_get_chars() 73 static int hvc_beat_put_chars(uint32_t vtermno, const char *buf, int cnt) hvc_beat_put_chars() argument 78 for (rest = cnt; rest > 0; rest -= nlen) { hvc_beat_put_chars() 84 return cnt; hvc_beat_put_chars()
|
/linux-4.1.27/drivers/staging/rtl8712/ |
H A D | ieee80211.c | 373 uint cnt; r8712_get_sec_ie() local 376 cnt = (_TIMESTAMP_ + _BEACON_ITERVAL_ + _CAPABILITY_); r8712_get_sec_ie() 377 while (cnt < in_len) { r8712_get_sec_ie() 378 authmode = in_ie[cnt]; r8712_get_sec_ie() 380 (!memcmp(&in_ie[cnt + 2], &wpa_oui[0], 4))) { r8712_get_sec_ie() 381 memcpy(wpa_ie, &in_ie[cnt], in_ie[cnt + 1] + 2); r8712_get_sec_ie() 382 *wpa_len = in_ie[cnt+1]+2; r8712_get_sec_ie() 383 cnt += in_ie[cnt + 1] + 2; /*get next */ r8712_get_sec_ie() 386 memcpy(rsn_ie, &in_ie[cnt], r8712_get_sec_ie() 387 in_ie[cnt + 1] + 2); r8712_get_sec_ie() 388 *rsn_len = in_ie[cnt+1] + 2; r8712_get_sec_ie() 389 cnt += in_ie[cnt+1] + 2; /*get next*/ r8712_get_sec_ie() 391 cnt += in_ie[cnt+1] + 2; /*get next*/ r8712_get_sec_ie() 400 uint cnt; r8712_get_wps_ie() local 403 cnt = 12; r8712_get_wps_ie() 405 while (cnt < in_len) { r8712_get_wps_ie() 406 eid = in_ie[cnt]; r8712_get_wps_ie() 408 (!memcmp(&in_ie[cnt+2], wps_oui, 4))) { r8712_get_wps_ie() 409 memcpy(wps_ie, &in_ie[cnt], in_ie[cnt+1]+2); r8712_get_wps_ie() 410 *wps_ielen = in_ie[cnt+1]+2; r8712_get_wps_ie() 411 cnt += in_ie[cnt+1]+2; r8712_get_wps_ie() 415 cnt += in_ie[cnt+1]+2; /* goto next */ r8712_get_wps_ie()
|
H A D | rtl8712_io.c | 98 void r8712_read_mem(struct _adapter *adapter, u32 addr, u32 cnt, u8 *pmem) r8712_read_mem() argument 103 void (*_read_mem)(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, r8712_read_mem() 109 _read_mem(pintfhdl, addr, cnt, pmem); r8712_read_mem() 112 void r8712_write_mem(struct _adapter *adapter, u32 addr, u32 cnt, u8 *pmem) r8712_write_mem() argument 116 void (*_write_mem)(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, r8712_write_mem() 120 _write_mem(pintfhdl, addr, cnt, pmem); r8712_write_mem() 123 void r8712_read_port(struct _adapter *adapter, u32 addr, u32 cnt, u8 *pmem) r8712_read_port() argument 128 u32 (*_read_port)(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, r8712_read_port() 134 _read_port(pintfhdl, addr, cnt, pmem); r8712_read_port() 137 void r8712_write_port(struct _adapter *adapter, u32 addr, u32 cnt, u8 *pmem) r8712_write_port() argument 142 u32 (*_write_port)(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, r8712_write_port() 145 _write_port(pintfhdl, addr, cnt, pmem); r8712_write_port()
|
H A D | rtl871x_io.h | 84 u32 addr, u32 cnt, u8 *pbuf); 86 u32 addr, u32 cnt, u8 *pbuf); 91 u32 addr, u32 cnt, u8 *pbuf, 94 u32 addr, u32 cnt, u8 *pbuf); 102 void (*_read_mem)(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, 104 void (*_write_mem)(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, 107 u32 (*_read_port)(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, 109 u32 (*_write_port)(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, 246 void r8712_read_mem(struct _adapter *adapter, u32 addr, u32 cnt, u8 *pmem); 247 void r8712_read_port(struct _adapter *adapter, u32 addr, u32 cnt, u8 *pmem); 251 void r8712_write_mem(struct _adapter *adapter, u32 addr, u32 cnt, u8 *pmem); 252 void r8712_write_port(struct _adapter *adapter, u32 addr, u32 cnt, u8 *pmem);
|
H A D | usb_ops.h | 34 u32 cnt, u8 *wmem); 36 u32 cnt, u8 *wmem); 38 u32 cnt, u8 *rmem);
|
/linux-4.1.27/fs/ntfs/ |
H A D | bitmap.c | 50 s64 cnt = count; __ntfs_bitmap_set_bits_in_run() local 61 (unsigned long long)cnt, (unsigned int)value, __ntfs_bitmap_set_bits_in_run() 64 BUG_ON(cnt < 0); __ntfs_bitmap_set_bits_in_run() 68 * bits, i.e. @start_bit and @start_bit + @cnt - 1, respectively. __ntfs_bitmap_set_bits_in_run() 71 end_index = (start_bit + cnt - 1) >> (3 + PAGE_CACHE_SHIFT); __ntfs_bitmap_set_bits_in_run() 93 while ((bit & 7) && cnt) { __ntfs_bitmap_set_bits_in_run() 94 cnt--; __ntfs_bitmap_set_bits_in_run() 101 if (!cnt) __ntfs_bitmap_set_bits_in_run() 109 * to @cnt. __ntfs_bitmap_set_bits_in_run() 111 len = min_t(s64, cnt >> 3, PAGE_CACHE_SIZE - pos); __ntfs_bitmap_set_bits_in_run() 113 cnt -= len << 3; __ntfs_bitmap_set_bits_in_run() 116 if (cnt < 8) __ntfs_bitmap_set_bits_in_run() 121 BUG_ON(cnt <= 0); __ntfs_bitmap_set_bits_in_run() 133 * page up to @cnt. __ntfs_bitmap_set_bits_in_run() 135 len = min_t(s64, cnt >> 3, PAGE_CACHE_SIZE); __ntfs_bitmap_set_bits_in_run() 137 cnt -= len << 3; __ntfs_bitmap_set_bits_in_run() 144 if (cnt) { __ntfs_bitmap_set_bits_in_run() 147 BUG_ON(cnt > 7); __ntfs_bitmap_set_bits_in_run() 149 bit = cnt; __ntfs_bitmap_set_bits_in_run() 169 * - @count - @cnt is the number of bits that have been modified __ntfs_bitmap_set_bits_in_run() 173 if (count != cnt) __ntfs_bitmap_set_bits_in_run() 174 pos = __ntfs_bitmap_set_bits_in_run(vi, start_bit, count - cnt, __ntfs_bitmap_set_bits_in_run()
|
/linux-4.1.27/arch/m68k/kernel/ |
H A D | time.c | 52 static unsigned cnt = 0, period = 0, dist = 0; timer_interrupt() local 54 if (cnt == 0 || cnt == dist) timer_interrupt() 56 else if (cnt == 7 || cnt == dist+7) timer_interrupt() 59 if (++cnt > period) { timer_interrupt() 60 cnt = 0; timer_interrupt()
|
H A D | ints.c | 85 * @cnt: number of active user vector interrupts 91 void __init m68k_setup_user_interrupt(unsigned int vec, unsigned int cnt) m68k_setup_user_interrupt() argument 95 BUG_ON(IRQ_USER + cnt > NR_IRQS); m68k_setup_user_interrupt() 97 for (i = 0; i < cnt; i++) m68k_setup_user_interrupt() 108 * @cnt: number of irqs to be managed by the controller 117 unsigned int cnt) m68k_setup_irq_controller() 121 for (i = 0; i < cnt; i++) { m68k_setup_irq_controller() 115 m68k_setup_irq_controller(struct irq_chip *chip, irq_flow_handler_t handle, unsigned int irq, unsigned int cnt) m68k_setup_irq_controller() argument
|
/linux-4.1.27/net/ipv4/ |
H A D | tcp_bic.c | 50 u32 cnt; /* increase cwnd by 1 after ACKs */ member in struct:bictcp 62 ca->cnt = 0; bictcp_reset() 98 ca->cnt = cwnd; bictcp_update() 109 ca->cnt = cwnd / max_increment; bictcp_update() 112 ca->cnt = (cwnd * smooth_part) / BICTCP_B; bictcp_update() 115 ca->cnt = cwnd / dist; bictcp_update() 120 ca->cnt = (cwnd * smooth_part) / BICTCP_B; bictcp_update() 123 ca->cnt = (cwnd * (BICTCP_B-1)) bictcp_update() 127 ca->cnt = cwnd / max_increment; bictcp_update() 132 if (ca->cnt > 20) /* increase cwnd 5% per RTT */ bictcp_update() 133 ca->cnt = 20; bictcp_update() 136 ca->cnt = (ca->cnt << ACK_RATIO_SHIFT) / ca->delayed_ack; bictcp_update() 137 if (ca->cnt == 0) /* cannot be zero */ bictcp_update() 138 ca->cnt = 1; bictcp_update() 153 tcp_cong_avoid_ai(tp, ca->cnt, 1); bictcp_cong_avoid() 200 static void bictcp_acked(struct sock *sk, u32 cnt, s32 rtt) bictcp_acked() argument 207 cnt -= ca->delayed_ack >> ACK_RATIO_SHIFT; bictcp_acked() 208 ca->delayed_ack += cnt; bictcp_acked()
|
H A D | tcp_probe.c | 205 size_t cnt = 0; tcpprobe_read() local 210 while (cnt < len) { tcpprobe_read() 229 if (cnt + width < len) tcpprobe_read() 236 if (cnt + width >= len) tcpprobe_read() 239 if (copy_to_user(buf + cnt, tbuf, width)) tcpprobe_read() 241 cnt += width; tcpprobe_read() 244 return cnt == 0 ? error : cnt; tcpprobe_read()
|
H A D | tcp_cubic.c | 84 u32 cnt; /* increase cwnd by 1 after ACKs */ member in struct:bictcp 107 ca->cnt = 0; bictcp_reset() 237 /* The CUBIC function can update ca->cnt at most once per jiffy. bictcp_update() 239 * which will force a recalculation of ca->cnt. bictcp_update() 299 ca->cnt = cwnd / (bic_target - cwnd); bictcp_update() 301 ca->cnt = 100 * cwnd; /* very small increment*/ bictcp_update() 308 if (ca->last_max_cwnd == 0 && ca->cnt > 20) bictcp_update() 309 ca->cnt = 20; /* increase cwnd 5% per RTT */ bictcp_update() 325 if (ca->cnt > max_cnt) bictcp_update() 326 ca->cnt = max_cnt; bictcp_update() 333 ca->cnt = max(ca->cnt, 2U); bictcp_update() 352 tcp_cong_avoid_ai(tp, ca->cnt, acked); bictcp_cong_avoid() 440 static void bictcp_acked(struct sock *sk, u32 cnt, s32 rtt_us) bictcp_acked() argument
|
/linux-4.1.27/drivers/memstick/host/ |
H A D | jmb38x_ms.c | 641 int cnt; jmb38x_ms_reset() local 648 for (cnt = 0; cnt < 20; ++cnt) { jmb38x_ms_reset() 663 for (cnt = 0; cnt < 20; ++cnt) { jmb38x_ms_reset() 808 int cnt; jmb38x_ms_suspend() local 810 for (cnt = 0; cnt < jm->host_cnt; ++cnt) { jmb38x_ms_suspend() 811 if (!jm->hosts[cnt]) jmb38x_ms_suspend() 813 memstick_suspend_host(jm->hosts[cnt]); jmb38x_ms_suspend() 856 int cnt, rc = 0; jmb38x_ms_count_slots() local 858 for (cnt = 0; cnt < PCI_ROM_RESOURCE; ++cnt) { jmb38x_ms_count_slots() 859 if (!(IORESOURCE_MEM & pci_resource_flags(pdev, cnt))) jmb38x_ms_count_slots() 862 if (256 != pci_resource_len(pdev, cnt)) jmb38x_ms_count_slots() 870 static struct memstick_host *jmb38x_ms_alloc_host(struct jmb38x_ms *jm, int cnt) jmb38x_ms_alloc_host() argument 882 host->addr = ioremap(pci_resource_start(jm->pdev, cnt), jmb38x_ms_alloc_host() 883 pci_resource_len(jm->pdev, cnt)); jmb38x_ms_alloc_host() 888 host->id = cnt; jmb38x_ms_alloc_host() 926 int rc, cnt; jmb38x_ms_probe() local 946 cnt = jmb38x_ms_count_slots(pdev); jmb38x_ms_probe() 947 if (!cnt) { jmb38x_ms_probe() 954 + cnt * sizeof(struct memstick_host *), GFP_KERNEL); jmb38x_ms_probe() 961 jm->host_cnt = cnt; jmb38x_ms_probe() 964 for (cnt = 0; cnt < jm->host_cnt; ++cnt) { jmb38x_ms_probe() 965 jm->hosts[cnt] = jmb38x_ms_alloc_host(jm, cnt); jmb38x_ms_probe() 966 if (!jm->hosts[cnt]) jmb38x_ms_probe() 969 rc = memstick_add_host(jm->hosts[cnt]); jmb38x_ms_probe() 972 jmb38x_ms_free_host(jm->hosts[cnt]); jmb38x_ms_probe() 973 jm->hosts[cnt] = NULL; jmb38x_ms_probe() 978 if (cnt) jmb38x_ms_probe() 997 int cnt; jmb38x_ms_remove() local 1000 for (cnt = 0; cnt < jm->host_cnt; ++cnt) { jmb38x_ms_remove() 1001 if (!jm->hosts[cnt]) jmb38x_ms_remove() 1004 host = memstick_priv(jm->hosts[cnt]); jmb38x_ms_remove() 1006 jm->hosts[cnt]->request = jmb38x_ms_dummy_submit; jmb38x_ms_remove() 1015 jmb38x_ms_complete_cmd(jm->hosts[cnt], 1); jmb38x_ms_remove() 1019 memstick_remove_host(jm->hosts[cnt]); jmb38x_ms_remove() 1022 jmb38x_ms_free_host(jm->hosts[cnt]); jmb38x_ms_remove()
|
/linux-4.1.27/drivers/staging/rts5208/ |
H A D | general.c | 27 int i, cnt = 0; bit1cnt_long() local 31 cnt++; bit1cnt_long() 34 return cnt; bit1cnt_long()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/ |
H A D | nouveau_sysfs.c | 52 size_t cnt = PAGE_SIZE; nouveau_sysfs_pstate_get() local 75 snappendf(buf, cnt, "%02x:", attr.state); nouveau_sysfs_pstate_get() 77 snappendf(buf, cnt, "%s:", info.pwrsrc == 0 ? "DC" : nouveau_sysfs_pstate_get() 90 snappendf(buf, cnt, " %s %d", attr.name, attr.min); nouveau_sysfs_pstate_get() 92 snappendf(buf, cnt, "-%d", attr.max); nouveau_sysfs_pstate_get() 93 snappendf(buf, cnt, " %s", attr.unit); nouveau_sysfs_pstate_get() 98 snappendf(buf, cnt, " AC"); nouveau_sysfs_pstate_get() 100 snappendf(buf, cnt, " DC"); nouveau_sysfs_pstate_get() 102 snappendf(buf, cnt, " *"); nouveau_sysfs_pstate_get() 105 snappendf(buf, cnt, " AC"); nouveau_sysfs_pstate_get() 107 snappendf(buf, cnt, " DC"); nouveau_sysfs_pstate_get() 110 snappendf(buf, cnt, "\n"); nouveau_sysfs_pstate_get()
|
H A D | nouveau_dma.c | 113 uint32_t cnt = 0, prev_get = 0; nv50_dma_push_wait() local 119 cnt = 0; nv50_dma_push_wait() 122 if ((++cnt & 0xff) == 0) { nv50_dma_push_wait() 124 if (cnt > 100000) nv50_dma_push_wait() 140 int ret, cnt = 0; nv50_dma_wait() local 147 int get = READ_GET(chan, &prev_get, &cnt); nv50_dma_wait() 162 get = READ_GET(chan, &prev_get, &cnt); nv50_dma_wait() 183 int cnt = 0, get; nouveau_dma_wait() local 189 get = READ_GET(chan, &prev_get, &cnt); nouveau_dma_wait() 235 get = READ_GET(chan, &prev_get, &cnt); nouveau_dma_wait()
|
/linux-4.1.27/arch/mn10300/lib/ |
H A D | delay.c | 41 unsigned long start, stop, cnt; __udelay() local 48 cnt = start - TMTSCBC; __udelay() 49 } while (cnt < stop); __udelay()
|
/linux-4.1.27/drivers/scsi/qla2xxx/ |
H A D | qla_dbg.c | 119 uint32_t cnt, stat, timer, dwords, idx; qla27xx_dump_mpi_ram() local 132 for (cnt = 0; cnt < ram_dwords && rval == QLA_SUCCESS; qla27xx_dump_mpi_ram() 133 cnt += dwords, addr += dwords) { qla27xx_dump_mpi_ram() 134 if (cnt + dwords > ram_dwords) qla27xx_dump_mpi_ram() 135 dwords = ram_dwords - cnt; qla27xx_dump_mpi_ram() 183 ram[cnt + idx] = IS_QLA27XX(ha) ? qla27xx_dump_mpi_ram() 190 *nxt = rval == QLA_SUCCESS ? &ram[cnt] : NULL; qla27xx_dump_mpi_ram() 199 uint32_t cnt, stat, timer, dwords, idx; qla24xx_dump_ram() local 212 for (cnt = 0; cnt < ram_dwords && rval == QLA_SUCCESS; qla24xx_dump_ram() 213 cnt += dwords, addr += dwords) { qla24xx_dump_ram() 214 if (cnt + dwords > ram_dwords) qla24xx_dump_ram() 215 dwords = ram_dwords - cnt; qla24xx_dump_ram() 260 ram[cnt + idx] = IS_QLA27XX(ha) ? qla24xx_dump_ram() 267 *nxt = rval == QLA_SUCCESS ? &ram[cnt]: NULL; qla24xx_dump_ram() 322 uint32_t cnt; qla24xx_soft_reset() local 332 for (cnt = 0; cnt < 30000; cnt++) { qla24xx_soft_reset() 348 for (cnt = 0; cnt < 30000; cnt++) { qla24xx_soft_reset() 361 for (cnt = 10000; RD_REG_WORD(®->mailbox0) != 0 && qla24xx_soft_reset() 362 rval == QLA_SUCCESS; cnt--) { qla24xx_soft_reset() 363 if (cnt) qla24xx_soft_reset() 379 uint32_t cnt, stat, timer, words, idx; qla2xxx_dump_ram() local 392 for (cnt = 0; cnt < ram_words && rval == QLA_SUCCESS; qla2xxx_dump_ram() 393 cnt += words, addr += words) { qla2xxx_dump_ram() 394 if (cnt + words > ram_words) qla2xxx_dump_ram() 395 words = ram_words - cnt; qla2xxx_dump_ram() 448 ram[cnt + idx] = swab16(dump[idx]); qla2xxx_dump_ram() 454 *nxt = rval == QLA_SUCCESS ? &ram[cnt]: NULL; qla2xxx_dump_ram() 481 uint32_t cnt; qla25xx_copy_fce() local 497 for (cnt = 0; cnt < 8; cnt++) qla25xx_copy_fce() 498 *iter_reg++ = htonl(ha->fce_mb[cnt]); qla25xx_copy_fce() 627 uint32_t cnt, que_idx; qla25xx_copy_mq() local 643 for (cnt = 0; cnt < que_cnt; cnt++) { qla25xx_copy_mq() 644 reg = ISP_QUE_REG(ha, cnt); qla25xx_copy_mq() 645 que_idx = cnt * 4; qla25xx_copy_mq() 687 uint32_t cnt; qla2300_fw_dump() local 723 for (cnt = 30000; qla2300_fw_dump() 725 rval == QLA_SUCCESS; cnt--) { qla2300_fw_dump() 726 if (cnt) qla2300_fw_dump() 738 for (cnt = 0; cnt < sizeof(fw->pbiu_reg) / 2; cnt++) qla2300_fw_dump() 739 fw->pbiu_reg[cnt] = htons(RD_REG_WORD(dmp_reg++)); qla2300_fw_dump() 742 for (cnt = 0; cnt < sizeof(fw->risc_host_reg) / 2; cnt++) qla2300_fw_dump() 743 fw->risc_host_reg[cnt] = htons(RD_REG_WORD(dmp_reg++)); qla2300_fw_dump() 746 for (cnt = 0; cnt < sizeof(fw->mailbox_reg) / 2; cnt++) qla2300_fw_dump() 747 fw->mailbox_reg[cnt] = htons(RD_REG_WORD(dmp_reg++)); qla2300_fw_dump() 757 for (cnt = 0; cnt < sizeof(fw->risc_hdw_reg) / 2; cnt++) qla2300_fw_dump() 758 fw->risc_hdw_reg[cnt] = htons(RD_REG_WORD(dmp_reg++)); qla2300_fw_dump() 795 for (cnt = 0; cnt < 30000; cnt++) { qla2300_fw_dump() 805 for (cnt = 30000; RD_MAILBOX_REG(ha, reg, 0) != 0 && qla2300_fw_dump() 806 rval == QLA_SUCCESS; cnt--) { qla2300_fw_dump() 807 if (cnt) qla2300_fw_dump() 848 uint32_t cnt, timer; qla2100_fw_dump() local 886 for (cnt = 30000; (RD_REG_WORD(®->hccr) & HCCR_RISC_PAUSE) == 0 && qla2100_fw_dump() 887 rval == QLA_SUCCESS; cnt--) { qla2100_fw_dump() 888 if (cnt) qla2100_fw_dump() 895 for (cnt = 0; cnt < sizeof(fw->pbiu_reg) / 2; cnt++) qla2100_fw_dump() 896 fw->pbiu_reg[cnt] = htons(RD_REG_WORD(dmp_reg++)); qla2100_fw_dump() 899 for (cnt = 0; cnt < ha->mbx_count; cnt++) { qla2100_fw_dump() 900 if (cnt == 8) qla2100_fw_dump() 903 fw->mailbox_reg[cnt] = htons(RD_REG_WORD(dmp_reg++)); qla2100_fw_dump() 907 for (cnt = 0; cnt < sizeof(fw->dma_reg) / 2; cnt++) qla2100_fw_dump() 908 fw->dma_reg[cnt] = htons(RD_REG_WORD(dmp_reg++)); qla2100_fw_dump() 912 for (cnt = 0; cnt < sizeof(fw->risc_hdw_reg) / 2; cnt++) qla2100_fw_dump() 913 fw->risc_hdw_reg[cnt] = htons(RD_REG_WORD(dmp_reg++)); qla2100_fw_dump() 952 for (cnt = 30000; RD_MAILBOX_REG(ha, reg, 0) != 0 && qla2100_fw_dump() 953 rval == QLA_SUCCESS; cnt--) { qla2100_fw_dump() 954 if (cnt) qla2100_fw_dump() 965 for (cnt = 30000; qla2100_fw_dump() 967 rval == QLA_SUCCESS; cnt--) { qla2100_fw_dump() 968 if (cnt) qla2100_fw_dump() 992 for (cnt = 0; cnt < sizeof(fw->risc_ram) / 2 && rval == QLA_SUCCESS; qla2100_fw_dump() 993 cnt++, risc_address++) { qla2100_fw_dump() 1021 fw->risc_ram[cnt] = htons(mb2); qla2100_fw_dump() 1028 qla2xxx_copy_queues(ha, &fw->risc_ram[cnt]); qla2100_fw_dump() 1041 uint32_t cnt; qla24xx_fw_dump() local 1092 for (cnt = 0; cnt < sizeof(fw->host_reg) / 4; cnt++) qla24xx_fw_dump() 1093 fw->host_reg[cnt] = htonl(RD_REG_DWORD(dmp_reg++)); qla24xx_fw_dump() 1125 for (cnt = 0; cnt < sizeof(fw->mailbox_reg) / 2; cnt++) qla24xx_fw_dump() 1126 fw->mailbox_reg[cnt] = htons(RD_REG_WORD(mbx_reg++)); qla24xx_fw_dump() 1164 for (cnt = 0; cnt < 7; cnt++) qla24xx_fw_dump() 1170 for (cnt = 0; cnt < 7; cnt++) qla24xx_fw_dump() 1176 for (cnt = 0; cnt < 7; cnt++) qla24xx_fw_dump() 1296 uint32_t cnt; qla25xx_fw_dump() local 1362 for (cnt = 0; cnt < sizeof(fw->host_reg) / 4; cnt++) qla25xx_fw_dump() 1363 fw->host_reg[cnt] = htonl(RD_REG_DWORD(dmp_reg++)); qla25xx_fw_dump() 1411 for (cnt = 0; cnt < sizeof(fw->mailbox_reg) / 2; cnt++) qla25xx_fw_dump() 1412 fw->mailbox_reg[cnt] = htons(RD_REG_WORD(mbx_reg++)); qla25xx_fw_dump() 1475 for (cnt = 0; cnt < 7; cnt++) qla25xx_fw_dump() 1481 for (cnt = 0; cnt < 7; cnt++) qla25xx_fw_dump() 1487 for (cnt = 0; cnt < 7; cnt++) qla25xx_fw_dump() 1615 uint32_t cnt; qla81xx_fw_dump() local 1680 for (cnt = 0; cnt < sizeof(fw->host_reg) / 4; cnt++) qla81xx_fw_dump() 1681 fw->host_reg[cnt] = htonl(RD_REG_DWORD(dmp_reg++)); qla81xx_fw_dump() 1729 for (cnt = 0; cnt < sizeof(fw->mailbox_reg) / 2; cnt++) qla81xx_fw_dump() 1730 fw->mailbox_reg[cnt] = htons(RD_REG_WORD(mbx_reg++)); qla81xx_fw_dump() 1793 for (cnt = 0; cnt < 7; cnt++) qla81xx_fw_dump() 1799 for (cnt = 0; cnt < 7; cnt++) qla81xx_fw_dump() 1805 for (cnt = 0; cnt < 7; cnt++) qla81xx_fw_dump() 1936 uint32_t cnt, reg_data; qla83xx_fw_dump() local 2020 for (cnt = 0; cnt < sizeof(fw->host_reg) / 4; cnt++) qla83xx_fw_dump() 2021 fw->host_reg[cnt] = htonl(RD_REG_DWORD(dmp_reg++)); qla83xx_fw_dump() 2069 for (cnt = 0; cnt < sizeof(fw->mailbox_reg) / 2; cnt++) qla83xx_fw_dump() 2070 fw->mailbox_reg[cnt] = htons(RD_REG_WORD(mbx_reg++)); qla83xx_fw_dump() 2165 for (cnt = 0; cnt < 7; cnt++) qla83xx_fw_dump() 2171 for (cnt = 0; cnt < 7; cnt++) qla83xx_fw_dump() 2177 for (cnt = 0; cnt < 7; cnt++) qla83xx_fw_dump() 2393 for (cnt = 30000; cnt && (RD_REG_WORD(®->mailbox0)); cnt--) qla83xx_fw_dump() 2396 if (!cnt) { qla83xx_fw_dump() 2673 uint32_t cnt; ql_dump_buffer() local 2685 for (cnt = 0; cnt < size;) { ql_dump_buffer() 2688 cnt++; ql_dump_buffer() 2689 if (!(cnt % 16)) ql_dump_buffer() 2694 if (cnt % 16) ql_dump_buffer()
|
H A D | qla_dfs.c | 19 uint32_t cnt; qla2x00_dfs_fce_show() local 36 for (cnt = 0; cnt < fce_calc_size(ha->fce_bufs) / 4; cnt++) { qla2x00_dfs_fce_show() 37 if (cnt % 8 == 0) qla2x00_dfs_fce_show() 39 (unsigned long long)((cnt * 4) + fce_start)); qla2x00_dfs_fce_show()
|
H A D | qla_mid.c | 596 int cnt, ret = 0; qla25xx_delete_queues() local 602 for (cnt = 1; cnt < ha->max_req_queues; cnt++) { qla25xx_delete_queues() 603 req = ha->req_q_map[cnt]; qla25xx_delete_queues() 604 if (req && test_bit(cnt, ha->req_qid_map)) { qla25xx_delete_queues() 616 for (cnt = 1; cnt < ha->max_rsp_queues; cnt++) { qla25xx_delete_queues() 617 rsp = ha->rsp_q_map[cnt]; qla25xx_delete_queues() 618 if (rsp && test_bit(cnt, ha->rsp_qid_map)) { qla25xx_delete_queues() 640 uint32_t cnt; qla25xx_create_req_que() local 699 for (cnt = 1; cnt < req->num_outstanding_cmds; cnt++) qla25xx_create_req_que() 700 req->outstanding_cmds[cnt] = NULL; qla25xx_create_req_que() 705 req->cnt = req->length; qla25xx_create_req_que() 715 "cnt=%d id=%d max_q_depth=%d.\n", qla25xx_create_req_que() 717 req->cnt, req->id, req->max_q_depth); qla25xx_create_req_que() 720 "cnt=%d id=%d max_q_depth=%d.\n", qla25xx_create_req_que() 721 req->ring_ptr, req->ring_index, req->cnt, qla25xx_create_req_que()
|
H A D | qla_iocb.c | 321 uint16_t cnt; qla2x00_start_scsi() local 377 if (req->cnt < (req_cnt + 2)) { qla2x00_start_scsi() 378 cnt = RD_REG_WORD_RELAXED(ISP_REQ_Q_OUT(ha, reg)); qla2x00_start_scsi() 379 if (req->ring_index < cnt) qla2x00_start_scsi() 380 req->cnt = cnt - req->ring_index; qla2x00_start_scsi() 382 req->cnt = req->length - qla2x00_start_scsi() 383 (req->ring_index - cnt); qla2x00_start_scsi() 385 if (req->cnt < (req_cnt + 2)) qla2x00_start_scsi() 394 req->cnt -= req_cnt; qla2x00_start_scsi() 1451 uint16_t cnt; qla24xx_start_scsi() local 1503 if (req->cnt < (req_cnt + 2)) { qla24xx_start_scsi() 1504 cnt = IS_SHADOW_REG_CAPABLE(ha) ? *req->out_ptr : qla24xx_start_scsi() 1506 if (req->ring_index < cnt) qla24xx_start_scsi() 1507 req->cnt = cnt - req->ring_index; qla24xx_start_scsi() 1509 req->cnt = req->length - qla24xx_start_scsi() 1510 (req->ring_index - cnt); qla24xx_start_scsi() 1511 if (req->cnt < (req_cnt + 2)) qla24xx_start_scsi() 1520 req->cnt -= req_cnt; qla24xx_start_scsi() 1602 uint16_t cnt; qla24xx_dif_start_scsi() local 1707 if (req->cnt < (req_cnt + 2)) { qla24xx_dif_start_scsi() 1708 cnt = IS_SHADOW_REG_CAPABLE(ha) ? *req->out_ptr : qla24xx_dif_start_scsi() 1710 if (req->ring_index < cnt) qla24xx_dif_start_scsi() 1711 req->cnt = cnt - req->ring_index; qla24xx_dif_start_scsi() 1713 req->cnt = req->length - qla24xx_dif_start_scsi() 1714 (req->ring_index - cnt); qla24xx_dif_start_scsi() 1715 if (req->cnt < (req_cnt + 2)) qla24xx_dif_start_scsi() 1726 req->cnt -= req_cnt; qla24xx_dif_start_scsi() 1783 req->cnt += req_cnt; qla24xx_dif_start_scsi() 1825 uint16_t cnt, req_cnt; qla2x00_alloc_iocbs() local 1860 if (req->cnt < req_cnt + 2) { qla2x00_alloc_iocbs() 1862 cnt = RD_REG_DWORD(®->isp25mq.req_q_out); qla2x00_alloc_iocbs() 1864 cnt = RD_REG_DWORD(®->isp82.req_q_out); qla2x00_alloc_iocbs() 1866 cnt = RD_REG_DWORD(®->isp24.req_q_out); qla2x00_alloc_iocbs() 1868 cnt = RD_REG_DWORD(®->ispfx00.req_q_out); qla2x00_alloc_iocbs() 1870 cnt = qla2x00_debounce_register( qla2x00_alloc_iocbs() 1873 if (req->ring_index < cnt) qla2x00_alloc_iocbs() 1874 req->cnt = cnt - req->ring_index; qla2x00_alloc_iocbs() 1876 req->cnt = req->length - qla2x00_alloc_iocbs() 1877 (req->ring_index - cnt); qla2x00_alloc_iocbs() 1879 if (req->cnt < req_cnt + 2) qla2x00_alloc_iocbs() 1883 req->cnt -= req_cnt; qla2x00_alloc_iocbs() 2249 uint16_t cnt; qla82xx_start_scsi() local 2356 if (req->cnt < (req_cnt + 2)) { qla82xx_start_scsi() 2357 cnt = (uint16_t)RD_REG_DWORD_RELAXED( qla82xx_start_scsi() 2359 if (req->ring_index < cnt) qla82xx_start_scsi() 2360 req->cnt = cnt - req->ring_index; qla82xx_start_scsi() 2362 req->cnt = req->length - qla82xx_start_scsi() 2363 (req->ring_index - cnt); qla82xx_start_scsi() 2364 if (req->cnt < (req_cnt + 2)) qla82xx_start_scsi() 2467 if (req->cnt < (req_cnt + 2)) { qla82xx_start_scsi() 2468 cnt = (uint16_t)RD_REG_DWORD_RELAXED( qla82xx_start_scsi() 2470 if (req->ring_index < cnt) qla82xx_start_scsi() 2471 req->cnt = cnt - req->ring_index; qla82xx_start_scsi() 2473 req->cnt = req->length - qla82xx_start_scsi() 2474 (req->ring_index - cnt); qla82xx_start_scsi() 2476 if (req->cnt < (req_cnt + 2)) qla82xx_start_scsi() 2525 req->cnt -= req_cnt; qla82xx_start_scsi() 2776 uint16_t cnt; qla2x00_start_bidir() local 2818 if (req->cnt < req_cnt + 2) { qla2x00_start_bidir() 2819 cnt = IS_SHADOW_REG_CAPABLE(ha) ? *req->out_ptr : qla2x00_start_bidir() 2821 if (req->ring_index < cnt) qla2x00_start_bidir() 2822 req->cnt = cnt - req->ring_index; qla2x00_start_bidir() 2824 req->cnt = req->length - qla2x00_start_bidir() 2825 (req->ring_index - cnt); qla2x00_start_bidir() 2827 if (req->cnt < req_cnt + 2) { qla2x00_start_bidir() 2852 req->cnt -= req_cnt; qla2x00_start_bidir()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/ |
H A D | nv44.c | 40 dma_addr_t *list, u32 pte, u32 cnt) nv44_vm_fill() 50 while (cnt--) { nv44_vm_fill() 86 struct nvkm_mem *mem, u32 pte, u32 cnt, dma_addr_t *list) nv44_vm_map_sg() 94 u32 part = (cnt > max) ? max : cnt; nv44_vm_map_sg() 98 cnt -= part; nv44_vm_map_sg() 101 while (cnt >= 4) { nv44_vm_map_sg() 108 cnt -= 4; nv44_vm_map_sg() 111 if (cnt) nv44_vm_map_sg() 112 nv44_vm_fill(pgt, priv->null, list, pte, cnt); nv44_vm_map_sg() 116 nv44_vm_unmap(struct nvkm_gpuobj *pgt, u32 pte, u32 cnt) nv44_vm_unmap() argument 122 u32 part = (cnt > max) ? max : cnt; nv44_vm_unmap() 125 cnt -= part; nv44_vm_unmap() 128 while (cnt >= 4) { nv44_vm_unmap() 133 cnt -= 4; nv44_vm_unmap() 136 if (cnt) nv44_vm_unmap() 137 nv44_vm_fill(pgt, priv->null, NULL, pte, cnt); nv44_vm_unmap() 39 nv44_vm_fill(struct nvkm_gpuobj *pgt, dma_addr_t null, dma_addr_t *list, u32 pte, u32 cnt) nv44_vm_fill() argument 85 nv44_vm_map_sg(struct nvkm_vma *vma, struct nvkm_gpuobj *pgt, struct nvkm_mem *mem, u32 pte, u32 cnt, dma_addr_t *list) nv44_vm_map_sg() argument
|
H A D | nv04.c | 38 struct nvkm_mem *mem, u32 pte, u32 cnt, dma_addr_t *list) nv04_vm_map_sg() 41 while (cnt) { nv04_vm_map_sg() 44 while (cnt && page--) { nv04_vm_map_sg() 48 cnt -= 1; nv04_vm_map_sg() 54 nv04_vm_unmap(struct nvkm_gpuobj *pgt, u32 pte, u32 cnt) nv04_vm_unmap() argument 57 while (cnt--) { nv04_vm_unmap() 37 nv04_vm_map_sg(struct nvkm_vma *vma, struct nvkm_gpuobj *pgt, struct nvkm_mem *mem, u32 pte, u32 cnt, dma_addr_t *list) nv04_vm_map_sg() argument
|
H A D | nv41.c | 40 struct nvkm_mem *mem, u32 pte, u32 cnt, dma_addr_t *list) nv41_vm_map_sg() 43 while (cnt) { nv41_vm_map_sg() 46 while (cnt && page--) { nv41_vm_map_sg() 50 cnt -= 1; nv41_vm_map_sg() 56 nv41_vm_unmap(struct nvkm_gpuobj *pgt, u32 pte, u32 cnt) nv41_vm_unmap() argument 59 while (cnt--) { nv41_vm_unmap() 39 nv41_vm_map_sg(struct nvkm_vma *vma, struct nvkm_gpuobj *pgt, struct nvkm_mem *mem, u32 pte, u32 cnt, dma_addr_t *list) nv41_vm_map_sg() argument
|
H A D | nv50.c | 79 struct nvkm_mem *mem, u32 pte, u32 cnt, u64 phys, u64 delta) nv50_vm_map() 94 cnt <<= 3; nv50_vm_map() 96 while (cnt) { nv50_vm_map() 102 if (cnt >= block && !(pte & (block - 1))) nv50_vm_map() 108 cnt -= block; nv50_vm_map() 126 struct nvkm_mem *mem, u32 pte, u32 cnt, dma_addr_t *list) nv50_vm_map_sg() 130 while (cnt--) { nv50_vm_map_sg() 139 nv50_vm_unmap(struct nvkm_gpuobj *pgt, u32 pte, u32 cnt) nv50_vm_unmap() argument 142 while (cnt--) { nv50_vm_unmap() 78 nv50_vm_map(struct nvkm_vma *vma, struct nvkm_gpuobj *pgt, struct nvkm_mem *mem, u32 pte, u32 cnt, u64 phys, u64 delta) nv50_vm_map() argument 125 nv50_vm_map_sg(struct nvkm_vma *vma, struct nvkm_gpuobj *pgt, struct nvkm_mem *mem, u32 pte, u32 cnt, dma_addr_t *list) nv50_vm_map_sg() argument
|
H A D | gf100.c | 107 struct nvkm_mem *mem, u32 pte, u32 cnt, u64 phys, u64 delta) gf100_vm_map() 119 ltc->tags_clear(ltc, tag, cnt); gf100_vm_map() 122 while (cnt--) { gf100_vm_map() 132 struct nvkm_mem *mem, u32 pte, u32 cnt, dma_addr_t *list) gf100_vm_map_sg() 139 while (cnt--) { gf100_vm_map_sg() 148 gf100_vm_unmap(struct nvkm_gpuobj *pgt, u32 pte, u32 cnt) gf100_vm_unmap() argument 151 while (cnt--) { gf100_vm_unmap() 106 gf100_vm_map(struct nvkm_vma *vma, struct nvkm_gpuobj *pgt, struct nvkm_mem *mem, u32 pte, u32 cnt, u64 phys, u64 delta) gf100_vm_map() argument 131 gf100_vm_map_sg(struct nvkm_vma *vma, struct nvkm_gpuobj *pgt, struct nvkm_mem *mem, u32 pte, u32 cnt, dma_addr_t *list) gf100_vm_map_sg() argument
|
/linux-4.1.27/arch/x86/include/asm/ |
H A D | xor.h | 111 " dec %[cnt] ;\n" xor_sse_2() 113 : [cnt] "+r" (lines), xor_sse_2() 145 " dec %[cnt] ;\n" xor_sse_2_pf64() 147 : [cnt] "+r" (lines), xor_sse_2_pf64() 204 " dec %[cnt] ;\n" xor_sse_3() 206 : [cnt] "+r" (lines), xor_sse_3() 241 " dec %[cnt] ;\n" xor_sse_3_pf64() 243 : [cnt] "+r" (lines), xor_sse_3_pf64() 307 " dec %[cnt] ;\n" xor_sse_4() 309 : [cnt] "+r" (lines), [p1] "+r" (p1), xor_sse_4() 346 " dec %[cnt] ;\n" xor_sse_4_pf64() 348 : [cnt] "+r" (lines), [p1] "+r" (p1), xor_sse_4_pf64() 419 " dec %[cnt] ;\n" xor_sse_5() 421 : [cnt] "+r" (lines), [p1] "+r" (p1), [p2] "+r" (p2), xor_sse_5() 460 " dec %[cnt] ;\n" xor_sse_5_pf64() 462 : [cnt] "+r" (lines), [p1] "+r" (p1), [p2] "+r" (p2), xor_sse_5_pf64()
|
/linux-4.1.27/arch/score/include/asm/ |
H A D | user.h | 10 unsigned long sr0; /* cnt */
|
/linux-4.1.27/kernel/irq/ |
H A D | irqdesc.c | 196 static int alloc_descs(unsigned int start, unsigned int cnt, int node, alloc_descs() argument 202 for (i = 0; i < cnt; i++) { alloc_descs() 217 bitmap_clear(allocated_irqs, start, cnt); alloc_descs() 306 static inline int alloc_descs(unsigned int start, unsigned int cnt, int node, alloc_descs() argument 311 for (i = 0; i < cnt; i++) { alloc_descs() 402 * @cnt: Number of consecutive irqs to free 404 void irq_free_descs(unsigned int from, unsigned int cnt) irq_free_descs() argument 408 if (from >= nr_irqs || (from + cnt) > nr_irqs) irq_free_descs() 411 for (i = 0; i < cnt; i++) irq_free_descs() 415 bitmap_clear(allocated_irqs, from, cnt); irq_free_descs() 424 * @cnt: Number of consecutive irqs to allocate. 431 __irq_alloc_descs(int irq, unsigned int from, unsigned int cnt, int node, __irq_alloc_descs() argument 436 if (!cnt) __irq_alloc_descs() 455 from, cnt, 0); __irq_alloc_descs() 460 if (start + cnt > nr_irqs) { __irq_alloc_descs() 461 ret = irq_expand_nr_irqs(start + cnt); __irq_alloc_descs() 466 bitmap_set(allocated_irqs, start, cnt); __irq_alloc_descs() 468 return alloc_descs(start, cnt, node, owner); __irq_alloc_descs() 479 * @cnt: number of interrupts to allocate 484 unsigned int irq_alloc_hwirqs(int cnt, int node) irq_alloc_hwirqs() argument 486 int i, irq = __irq_alloc_descs(-1, 0, cnt, node, NULL); irq_alloc_hwirqs() 491 for (i = irq; cnt > 0; i++, cnt--) { irq_alloc_hwirqs() 503 irq_free_descs(irq, cnt); irq_alloc_hwirqs() 511 * @cnt: number of interrupts to free 514 void irq_free_hwirqs(unsigned int from, int cnt) irq_free_hwirqs() argument 518 for (i = from, j = cnt; j > 0; i++, j--) { irq_free_hwirqs() 522 irq_free_descs(from, cnt); irq_free_hwirqs()
|
/linux-4.1.27/tools/perf/tests/ |
H A D | dwarf-unwind.c | 38 unsigned long *cnt = (unsigned long *) arg; unwind_entry() local 51 if (*cnt >= MAX_STACK) { unwind_entry() 63 return strcmp((const char *) symbol, funcs[(*cnt)++]); unwind_entry() 70 unsigned long cnt = 0; unwind_thread() local 80 err = unwind__get_entries(unwind_entry, &cnt, thread, unwind_thread() 84 else if (cnt != MAX_STACK) { unwind_thread() 86 cnt, MAX_STACK); unwind_thread()
|
/linux-4.1.27/arch/mips/cavium-octeon/ |
H A D | csrc-octeon.c | 84 asm("dmultu\t%[cnt],%[f]\n\t" octeon_init_cvmcount() 85 "mfhi\t%[cnt]" octeon_init_cvmcount() 86 : [cnt] "+r" (ipd_clk_count) octeon_init_cvmcount() 115 u64 cnt = read_c0_cvmcount(); sched_clock() local 118 "dmultu\t%[cnt],%[mult]\n\t" sched_clock() 127 : [cnt] "r" (cnt), [mult] "r" (mult), [shift] "r" (shift) sched_clock() 195 asm("dmultu\t%[cnt],%[f]\n\t" octeon_io_clk_delay() 196 "mfhi\t%[cnt]" octeon_io_clk_delay() 197 : [cnt] "+r" (end) octeon_io_clk_delay()
|
/linux-4.1.27/fs/hfs/ |
H A D | bfind.c | 161 int hfs_brec_goto(struct hfs_find_data *fd, int cnt) hfs_brec_goto() argument 171 if (cnt < 0) { hfs_brec_goto() 172 cnt = -cnt; hfs_brec_goto() 173 while (cnt > fd->record) { hfs_brec_goto() 174 cnt -= fd->record + 1; hfs_brec_goto() 189 fd->record -= cnt; hfs_brec_goto() 191 while (cnt >= bnode->num_recs - fd->record) { hfs_brec_goto() 192 cnt -= bnode->num_recs - fd->record; hfs_brec_goto() 207 fd->record += cnt; hfs_brec_goto()
|
/linux-4.1.27/net/netfilter/ipvs/ |
H A D | ip_vs_est.c | 74 conns = s->cnt.conns; for_each_possible_cpu() 75 inpkts = s->cnt.inpkts; for_each_possible_cpu() 76 outpkts = s->cnt.outpkts; for_each_possible_cpu() 77 inbytes = s->cnt.inbytes; for_each_possible_cpu() 78 outbytes = s->cnt.outbytes; for_each_possible_cpu() 89 sum->conns = s->cnt.conns; for_each_possible_cpu() 90 sum->inpkts = s->cnt.inpkts; for_each_possible_cpu() 91 sum->outpkts = s->cnt.outpkts; for_each_possible_cpu() 92 sum->inbytes = s->cnt.inbytes; for_each_possible_cpu() 93 sum->outbytes = s->cnt.outbytes; for_each_possible_cpu()
|
/linux-4.1.27/drivers/pnp/isapnp/ |
H A D | proc.c | 40 int cnt, size = 256; isapnp_proc_bus_read() local 48 cnt = nbytes; isapnp_proc_bus_read() 50 if (!access_ok(VERIFY_WRITE, buf, cnt)) isapnp_proc_bus_read() 54 for (; pos < 256 && cnt > 0; pos++, buf++, cnt--) { isapnp_proc_bus_read()
|
/linux-4.1.27/arch/m68k/amiga/ |
H A D | pcmcia.c | 44 int cnt, pos, len; pcmcia_copy_tuple() local 55 for (cnt = 0; cnt < len; cnt++) { pcmcia_copy_tuple() 56 *dest++ = gayle_attribute[pos+(cnt<<1)]; pcmcia_copy_tuple()
|
/linux-4.1.27/drivers/ptp/ |
H A D | ptp_sysfs.c | 77 int cnt, enable; extts_enable_store() local 80 cnt = sscanf(buf, "%u %d", &req.extts.index, &enable); extts_enable_store() 81 if (cnt != 2) extts_enable_store() 103 int cnt = 0; extts_fifo_show() local 121 cnt = snprintf(page, PAGE_SIZE, "%u %lld %u\n", extts_fifo_show() 125 return cnt; extts_fifo_show() 135 int cnt, enable, err = -EINVAL; period_store() local 137 cnt = sscanf(buf, "%u %lld %u %lld %u", &req.perout.index, period_store() 140 if (cnt != 5) period_store() 162 int cnt, enable; pps_enable_store() local 168 cnt = sscanf(buf, "%d", &enable); pps_enable_store() 169 if (cnt != 1) pps_enable_store() 218 int cnt, err, index; ptp_pin_store() local 220 cnt = sscanf(buf, "%u %u", &func, &chan); ptp_pin_store() 221 if (cnt != 2) ptp_pin_store()
|
H A D | ptp_chardev.c | 271 uint rdflags, char __user *buf, size_t cnt) ptp_read() 280 if (cnt % sizeof(struct ptp_extts_event) != 0) ptp_read() 283 if (cnt > EXTTS_BUFSIZE) ptp_read() 284 cnt = EXTTS_BUFSIZE; ptp_read() 286 cnt = cnt / sizeof(struct ptp_extts_event); ptp_read() 312 if (cnt > qcnt) ptp_read() 313 cnt = qcnt; ptp_read() 315 for (i = 0; i < cnt; i++) { ptp_read() 322 cnt = cnt * sizeof(struct ptp_extts_event); ptp_read() 326 result = cnt; ptp_read() 327 if (copy_to_user(buf, event, cnt)) ptp_read() 270 ptp_read(struct posix_clock *pc, uint rdflags, char __user *buf, size_t cnt) ptp_read() argument
|
H A D | ptp_private.h | 68 int cnt = q->tail - q->head; queue_cnt() local 69 return cnt < 0 ? PTP_MAX_TIMESTAMPS + cnt : cnt; queue_cnt() 86 uint flags, char __user *buf, size_t cnt);
|
/linux-4.1.27/drivers/video/fbdev/core/ |
H A D | fbcvt.c | 217 int cnt = 255, offset = 0, read = 0; fb_cvt_print_name() local 227 read = snprintf(buf+offset, cnt, "fbcvt: %dx%d@%d: CVT Name - ", fb_cvt_print_name() 230 cnt -= read; fb_cvt_print_name() 233 snprintf(buf+offset, cnt, "Not a CVT standard - %d.%03d Mega " fb_cvt_print_name() 237 read = snprintf(buf+offset, cnt, "%d", pixcount); fb_cvt_print_name() 238 cnt -= read; fb_cvt_print_name() 242 read = snprintf(buf+offset, cnt, ".%03dM", pixcount_mod); fb_cvt_print_name() 243 cnt -= read; fb_cvt_print_name() 247 read = snprintf(buf+offset, cnt, "3"); fb_cvt_print_name() 249 read = snprintf(buf+offset, cnt, "4"); fb_cvt_print_name() 251 read = snprintf(buf+offset, cnt, "9"); fb_cvt_print_name() 253 read = snprintf(buf+offset, cnt, "A"); fb_cvt_print_name() 256 cnt -= read; fb_cvt_print_name() 260 read = snprintf(buf+offset, cnt, "-R"); fb_cvt_print_name() 261 cnt -= read; fb_cvt_print_name()
|
/linux-4.1.27/drivers/mmc/host/ |
H A D | sdhci-msm.c | 164 int i, cnt, phase_0_raw_index = 0, phase_15_raw_index = 0; msm_find_most_appropriate_phase() local 174 for (cnt = 0; cnt < total_phases; cnt++) { msm_find_most_appropriate_phase() 175 ranges[row_index][col_index] = phase_table[cnt]; msm_find_most_appropriate_phase() 179 if ((cnt + 1) == total_phases) { msm_find_most_appropriate_phase() 182 } else if ((phase_table[cnt] + 1) != phase_table[cnt + 1]) { msm_find_most_appropriate_phase() 196 for (cnt = 1; cnt <= row_index; cnt++) { msm_find_most_appropriate_phase() 197 if (phases_per_row[cnt]) { msm_find_most_appropriate_phase() 198 for (i = 0; i < phases_per_row[cnt]; i++) { msm_find_most_appropriate_phase() 199 if (ranges[cnt][i] == 15) { msm_find_most_appropriate_phase() 201 phase_15_raw_index = cnt; msm_find_most_appropriate_phase() 226 for (cnt = 0; cnt < phases_0; cnt++) { msm_find_most_appropriate_phase() 228 ranges[phase_0_raw_index][cnt]; msm_find_most_appropriate_phase() 237 for (cnt = 0; cnt <= row_index; cnt++) { msm_find_most_appropriate_phase() 238 if (phases_per_row[cnt] > curr_max) { msm_find_most_appropriate_phase() 239 curr_max = phases_per_row[cnt]; msm_find_most_appropriate_phase() 240 selected_row_index = cnt; msm_find_most_appropriate_phase()
|
H A D | dw_mmc.c | 1760 static void dw_mci_set_part_bytes(struct dw_mci *host, void *buf, int cnt) dw_mci_set_part_bytes() argument 1762 memcpy((void *)&host->part_buf, buf, cnt); dw_mci_set_part_bytes() 1763 host->part_buf_count = cnt; dw_mci_set_part_bytes() 1767 static int dw_mci_push_part_bytes(struct dw_mci *host, void *buf, int cnt) dw_mci_push_part_bytes() argument 1769 cnt = min(cnt, (1 << host->data_shift) - host->part_buf_count); dw_mci_push_part_bytes() 1770 memcpy((void *)&host->part_buf + host->part_buf_count, buf, cnt); dw_mci_push_part_bytes() 1771 host->part_buf_count += cnt; dw_mci_push_part_bytes() 1772 return cnt; dw_mci_push_part_bytes() 1776 static int dw_mci_pull_part_bytes(struct dw_mci *host, void *buf, int cnt) dw_mci_pull_part_bytes() argument 1778 cnt = min(cnt, (int)host->part_buf_count); dw_mci_pull_part_bytes() 1779 if (cnt) { dw_mci_pull_part_bytes() 1781 cnt); dw_mci_pull_part_bytes() local 1782 host->part_buf_count -= cnt; dw_mci_pull_part_bytes() 1783 host->part_buf_start += cnt; dw_mci_pull_part_bytes() 1785 return cnt; dw_mci_pull_part_bytes() 1789 static void dw_mci_pull_final_bytes(struct dw_mci *host, void *buf, int cnt) dw_mci_pull_final_bytes() argument 1791 memcpy(buf, &host->part_buf, cnt); dw_mci_pull_final_bytes() 1792 host->part_buf_start = cnt; dw_mci_pull_final_bytes() 1793 host->part_buf_count = (1 << host->data_shift) - cnt; dw_mci_pull_final_bytes() 1796 static void dw_mci_push_data16(struct dw_mci *host, void *buf, int cnt) dw_mci_push_data16() argument 1799 int init_cnt = cnt; dw_mci_push_data16() 1803 int len = dw_mci_push_part_bytes(host, buf, cnt); dw_mci_push_data16() 1805 cnt -= len; dw_mci_push_data16() 1813 while (cnt >= 2) { dw_mci_push_data16() 1815 int len = min(cnt & -2, (int)sizeof(aligned_buf)); dw_mci_push_data16() 1821 cnt -= len; dw_mci_push_data16() 1830 for (; cnt >= 2; cnt -= 2) dw_mci_push_data16() 1835 if (cnt) { dw_mci_push_data16() 1836 dw_mci_set_part_bytes(host, buf, cnt); dw_mci_push_data16() 1844 static void dw_mci_pull_data16(struct dw_mci *host, void *buf, int cnt) dw_mci_pull_data16() argument 1848 while (cnt >= 2) { dw_mci_pull_data16() 1851 int len = min(cnt & -2, (int)sizeof(aligned_buf)); dw_mci_pull_data16() 1859 cnt -= len; dw_mci_pull_data16() 1865 for (; cnt >= 2; cnt -= 2) dw_mci_pull_data16() 1869 if (cnt) { dw_mci_pull_data16() 1871 dw_mci_pull_final_bytes(host, buf, cnt); dw_mci_pull_data16() 1875 static void dw_mci_push_data32(struct dw_mci *host, void *buf, int cnt) dw_mci_push_data32() argument 1878 int init_cnt = cnt; dw_mci_push_data32() 1882 int len = dw_mci_push_part_bytes(host, buf, cnt); dw_mci_push_data32() 1884 cnt -= len; dw_mci_push_data32() 1892 while (cnt >= 4) { dw_mci_push_data32() 1894 int len = min(cnt & -4, (int)sizeof(aligned_buf)); dw_mci_push_data32() 1900 cnt -= len; dw_mci_push_data32() 1909 for (; cnt >= 4; cnt -= 4) dw_mci_push_data32() 1914 if (cnt) { dw_mci_push_data32() 1915 dw_mci_set_part_bytes(host, buf, cnt); dw_mci_push_data32() 1923 static void dw_mci_pull_data32(struct dw_mci *host, void *buf, int cnt) dw_mci_pull_data32() argument 1927 while (cnt >= 4) { dw_mci_pull_data32() 1930 int len = min(cnt & -4, (int)sizeof(aligned_buf)); dw_mci_pull_data32() 1938 cnt -= len; dw_mci_pull_data32() 1944 for (; cnt >= 4; cnt -= 4) dw_mci_pull_data32() 1948 if (cnt) { dw_mci_pull_data32() 1950 dw_mci_pull_final_bytes(host, buf, cnt); dw_mci_pull_data32() 1954 static void dw_mci_push_data64(struct dw_mci *host, void *buf, int cnt) dw_mci_push_data64() argument 1957 int init_cnt = cnt; dw_mci_push_data64() 1961 int len = dw_mci_push_part_bytes(host, buf, cnt); dw_mci_push_data64() 1963 cnt -= len; dw_mci_push_data64() 1972 while (cnt >= 8) { dw_mci_push_data64() 1974 int len = min(cnt & -8, (int)sizeof(aligned_buf)); dw_mci_push_data64() 1980 cnt -= len; dw_mci_push_data64() 1989 for (; cnt >= 8; cnt -= 8) dw_mci_push_data64() 1994 if (cnt) { dw_mci_push_data64() 1995 dw_mci_set_part_bytes(host, buf, cnt); dw_mci_push_data64() 2003 static void dw_mci_pull_data64(struct dw_mci *host, void *buf, int cnt) dw_mci_pull_data64() argument 2007 while (cnt >= 8) { dw_mci_pull_data64() 2010 int len = min(cnt & -8, (int)sizeof(aligned_buf)); dw_mci_pull_data64() 2019 cnt -= len; dw_mci_pull_data64() 2025 for (; cnt >= 8; cnt -= 8) dw_mci_pull_data64() 2029 if (cnt) { dw_mci_pull_data64() 2031 dw_mci_pull_final_bytes(host, buf, cnt); dw_mci_pull_data64() 2035 static void dw_mci_pull_data(struct dw_mci *host, void *buf, int cnt) dw_mci_pull_data() argument 2040 len = dw_mci_pull_part_bytes(host, buf, cnt); dw_mci_pull_data() 2041 if (unlikely(len == cnt)) dw_mci_pull_data() 2044 cnt -= len; dw_mci_pull_data() 2047 host->pull_data(host, buf, cnt); dw_mci_pull_data()
|
/linux-4.1.27/drivers/media/pci/cx23885/ |
H A D | cx23885-i2c.c | 83 int retval, cnt; i2c_sendbytes() local 127 for (cnt = 1; cnt < msg->len; cnt++) { i2c_sendbytes() 129 wdata = msg->buf[cnt]; i2c_sendbytes() 132 if (cnt < msg->len - 1) i2c_sendbytes() 144 dprintk(1, " %02x", msg->buf[cnt]); i2c_sendbytes() 163 u32 ctrl, cnt; i2c_readbytes() local 191 for (cnt = 0; cnt < msg->len; cnt++) { i2c_readbytes() 195 if (cnt < msg->len - 1) i2c_readbytes() 203 msg->buf[cnt] = cx_read(bus->reg_rdata) & 0xff; i2c_readbytes() 205 dprintk(1, " %02x", msg->buf[cnt]); i2c_readbytes()
|
/linux-4.1.27/drivers/media/pci/cx25821/ |
H A D | cx25821-i2c.c | 86 int retval, cnt; i2c_sendbytes() local 136 for (cnt = 1; cnt < msg->len; cnt++) { i2c_sendbytes() 138 wdata = msg->buf[cnt]; i2c_sendbytes() 141 if (cnt < msg->len - 1) i2c_sendbytes() 158 dprintk(1, " %02x", msg->buf[cnt]); i2c_sendbytes() 179 u32 ctrl, cnt; i2c_readbytes() local 205 for (cnt = 0; cnt < msg->len; cnt++) { i2c_readbytes() 209 if (cnt < msg->len - 1) i2c_readbytes() 220 msg->buf[cnt] = cx_read(bus->reg_rdata) & 0xff; i2c_readbytes() 223 dprintk(1, " %02x", msg->buf[cnt]); i2c_readbytes()
|
/linux-4.1.27/drivers/net/wireless/iwlegacy/ |
H A D | debug.c | 239 int cnt; il_dbgfs_tx_stats_read() local 247 for (cnt = 0; cnt < MANAGEMENT_MAX; cnt++) { il_dbgfs_tx_stats_read() 250 il_get_mgmt_string(cnt), il->tx_stats.mgmt[cnt]); il_dbgfs_tx_stats_read() 253 for (cnt = 0; cnt < CONTROL_MAX; cnt++) { il_dbgfs_tx_stats_read() 256 il_get_ctrl_string(cnt), il->tx_stats.ctrl[cnt]); il_dbgfs_tx_stats_read() 299 int cnt; il_dbgfs_rx_stats_read() local 308 for (cnt = 0; cnt < MANAGEMENT_MAX; cnt++) { il_dbgfs_rx_stats_read() 311 il_get_mgmt_string(cnt), il->rx_stats.mgmt[cnt]); il_dbgfs_rx_stats_read() 314 for (cnt = 0; cnt < CONTROL_MAX; cnt++) { il_dbgfs_rx_stats_read() 317 il_get_ctrl_string(cnt), il->rx_stats.ctrl[cnt]); il_dbgfs_rx_stats_read() 678 int cnt = 0; il_dbgfs_interrupt_read() local 728 for (cnt = 0; cnt < IL_CN_MAX; cnt++) { il_dbgfs_interrupt_read() 729 if (il->isr_stats.handlers[cnt] > 0) il_dbgfs_interrupt_read() 733 il_get_cmd_string(cnt), il_dbgfs_interrupt_read() 734 il->isr_stats.handlers[cnt]); il_dbgfs_interrupt_read() 856 int cnt; il_dbgfs_tx_queue_read() local 869 for (cnt = 0; cnt < il->hw_params.max_txq_num; cnt++) { il_dbgfs_tx_queue_read() 870 txq = &il->txq[cnt]; il_dbgfs_tx_queue_read() 875 " swq_id=%#.2x (ac %d/hwq %d)\n", cnt, il_dbgfs_tx_queue_read() 877 !!test_bit(cnt, il->queue_stopped), il_dbgfs_tx_queue_read() 880 if (cnt >= 4) il_dbgfs_tx_queue_read() 886 atomic_read(&il->queue_stop_count[cnt])); il_dbgfs_tx_queue_read() 956 int cnt = 0; il_dbgfs_sensitivity_read() local 1007 for (cnt = 0; cnt < 10; cnt++) { il_dbgfs_sensitivity_read() 1010 data->nrg_value[cnt]); il_dbgfs_sensitivity_read() 1014 for (cnt = 0; cnt < NRG_NUM_PREV_STAT_L; cnt++) { il_dbgfs_sensitivity_read() 1017 data->nrg_silence_rssi[cnt]); il_dbgfs_sensitivity_read() 1055 int cnt = 0; il_dbgfs_chain_noise_read() local 1094 for (cnt = 0; cnt < NUM_RX_CHAINS; cnt++) { il_dbgfs_chain_noise_read() 1097 data->disconn_array[cnt]); il_dbgfs_chain_noise_read() 1101 for (cnt = 0; cnt < NUM_RX_CHAINS; cnt++) { il_dbgfs_chain_noise_read() 1104 data->delta_gain_code[cnt]); il_dbgfs_chain_noise_read()
|
/linux-4.1.27/arch/m68k/math-emu/ |
H A D | multi_arith.h | 22 static inline void fp_denormalize(struct fp_ext *reg, unsigned int cnt) fp_denormalize() argument 24 reg->exp += cnt; fp_denormalize() 26 switch (cnt) { fp_denormalize() 28 reg->lowmant = reg->mant.m32[1] << (8 - cnt); fp_denormalize() 29 reg->mant.m32[1] = (reg->mant.m32[1] >> cnt) | fp_denormalize() 30 (reg->mant.m32[0] << (32 - cnt)); fp_denormalize() 31 reg->mant.m32[0] = reg->mant.m32[0] >> cnt; fp_denormalize() 34 reg->lowmant = reg->mant.m32[1] >> (cnt - 8); fp_denormalize() 35 if (reg->mant.m32[1] << (40 - cnt)) fp_denormalize() 37 reg->mant.m32[1] = (reg->mant.m32[1] >> cnt) | fp_denormalize() 38 (reg->mant.m32[0] << (32 - cnt)); fp_denormalize() 39 reg->mant.m32[0] = reg->mant.m32[0] >> cnt; fp_denormalize() 43 : "m" (reg->mant.m32[0]), "d" (64 - cnt)); fp_denormalize() 44 if (reg->mant.m32[1] << (40 - cnt)) fp_denormalize() 46 reg->mant.m32[1] = reg->mant.m32[0] >> (cnt - 32); fp_denormalize() 50 reg->lowmant = reg->mant.m32[0] >> (cnt - 40); fp_denormalize() 51 if ((reg->mant.m32[0] << (72 - cnt)) || reg->mant.m32[1]) fp_denormalize() 53 reg->mant.m32[1] = reg->mant.m32[0] >> (cnt - 32); fp_denormalize()
|
/linux-4.1.27/fs/ |
H A D | eventfd.c | 137 static void eventfd_ctx_do_read(struct eventfd_ctx *ctx, __u64 *cnt) eventfd_ctx_do_read() argument 139 *cnt = (ctx->flags & EFD_SEMAPHORE) ? 1 : ctx->count; eventfd_ctx_do_read() 140 ctx->count -= *cnt; eventfd_ctx_do_read() 147 * @cnt: [out] Pointer to the 64-bit counter value. 157 __u64 *cnt) eventfd_ctx_remove_wait_queue() 162 eventfd_ctx_do_read(ctx, cnt); eventfd_ctx_remove_wait_queue() 164 if (*cnt != 0 && waitqueue_active(&ctx->wqh)) eventfd_ctx_remove_wait_queue() 168 return *cnt != 0 ? 0 : -EAGAIN; eventfd_ctx_remove_wait_queue() 176 * @cnt: [out] Pointer to the 64-bit counter value. 186 ssize_t eventfd_ctx_read(struct eventfd_ctx *ctx, int no_wait, __u64 *cnt) eventfd_ctx_read() argument 192 *cnt = 0; eventfd_ctx_read() 216 eventfd_ctx_do_read(ctx, cnt); eventfd_ctx_read() 231 __u64 cnt; eventfd_read() local 233 if (count < sizeof(cnt)) eventfd_read() 235 res = eventfd_ctx_read(ctx, file->f_flags & O_NONBLOCK, &cnt); eventfd_read() 239 return put_user(cnt, (__u64 __user *) buf) ? -EFAULT : sizeof(cnt); eventfd_read() 156 eventfd_ctx_remove_wait_queue(struct eventfd_ctx *ctx, wait_queue_t *wait, __u64 *cnt) eventfd_ctx_remove_wait_queue() argument
|
/linux-4.1.27/arch/c6x/include/asm/ |
H A D | delay.h | 33 uint32_t cnt, endcnt; _c6x_tickdelay() local 43 : "=b"(cnt), "+a"(x), "=b"(endcnt) : : "B0"); _c6x_tickdelay()
|
/linux-4.1.27/arch/alpha/math-emu/ |
H A D | qrnnd.S | 40 #define cnt $2 define 49 ldiq cnt,16 84 subq cnt,1,cnt 85 bgt cnt,$loop1 134 subq cnt,1,cnt 135 bgt cnt,$loop2
|
/linux-4.1.27/drivers/scsi/csiostor/ |
H A D | csio_isr.c | 358 int cnt = hw->num_sqsets + k; csio_add_msix_desc() local 372 for (i = k; i < cnt; i++, entryp++) { csio_add_msix_desc() 466 int cnt = hw->num_sqsets + CSIO_EXTRA_VECS; csio_disable_msix() local 469 for (i = 0; i < cnt; i++) { csio_disable_msix() 479 csio_reduce_sqsets(struct csio_hw *hw, int cnt) csio_reduce_sqsets() argument 484 while (cnt < hw->num_sqsets) { csio_reduce_sqsets() 490 if (hw->num_sqsets <= cnt) csio_reduce_sqsets() 502 int i, j, k, n, min, cnt; csio_enable_msix() local 509 cnt = hw->num_sqsets + extra; csio_enable_msix() 513 cnt = min_t(uint8_t, hw->cfg_niq, cnt); csio_enable_msix() 515 entries = kzalloc(sizeof(struct msix_entry) * cnt, GFP_KERNEL); csio_enable_msix() 519 for (i = 0; i < cnt; i++) csio_enable_msix() 522 csio_dbg(hw, "FW supp #niq:%d, trying %d msix's\n", hw->cfg_niq, cnt); csio_enable_msix() 524 cnt = pci_enable_msix_range(hw->pdev, entries, min, cnt); csio_enable_msix() 525 if (cnt < 0) { csio_enable_msix() 527 return cnt; csio_enable_msix() 530 if (cnt < (hw->num_sqsets + extra)) { csio_enable_msix() 531 csio_dbg(hw, "Reducing sqsets to %d\n", cnt - extra); csio_enable_msix() 532 csio_reduce_sqsets(hw, cnt - extra); csio_enable_msix() 536 for (i = 0; i < cnt; i++) { csio_enable_msix()
|
/linux-4.1.27/drivers/media/pci/bt8xx/ |
H A D | bttv-i2c.c | 142 int retval,cnt; bttv_i2c_sendbytes() local 162 for (cnt = 1; cnt < msg->len; cnt++ ) { bttv_i2c_sendbytes() 164 xmit = (msg->buf[cnt] << 24) | I2C_HW | BT878_I2C_NOSTART; bttv_i2c_sendbytes() 165 if (cnt < msg->len-1 || !last) bttv_i2c_sendbytes() 174 pr_cont(" %02x", msg->buf[cnt]); bttv_i2c_sendbytes() 192 u32 cnt; bttv_i2c_readbytes() local 195 for (cnt = 0; cnt < msg->len; cnt++) { bttv_i2c_readbytes() 197 if (cnt < msg->len-1) bttv_i2c_readbytes() 199 if (cnt < msg->len-1 || !last) bttv_i2c_readbytes() 201 if (cnt) bttv_i2c_readbytes() 215 msg->buf[cnt] = ((u32)btread(BT848_I2C) >> 8) & 0xff; bttv_i2c_readbytes() 217 pr_cont(" =%02x", msg->buf[cnt]); bttv_i2c_readbytes()
|
/linux-4.1.27/kernel/trace/ |
H A D | trace_kdb.c | 25 int cnt = 0, cpu; ftrace_dump_buf() local 64 if (!cnt) 66 cnt++; 79 if (!cnt)
|
H A D | trace.c | 917 size_t cnt, loff_t *ppos) trace_get_user() 931 cnt--; trace_get_user() 939 while (cnt && isspace(ch)) { trace_get_user() 944 cnt--; trace_get_user() 958 while (cnt && !isspace(ch)) { trace_get_user() 969 cnt--; trace_get_user() 992 static ssize_t trace_seq_to_buffer(struct trace_seq *s, void *buf, size_t cnt) trace_seq_to_buffer() argument 1000 if (cnt > len) trace_seq_to_buffer() 1001 cnt = len; trace_seq_to_buffer() 1002 memcpy(buf, s->buffer + s->seq.readpos, cnt); trace_seq_to_buffer() 1004 s->seq.readpos += cnt; trace_seq_to_buffer() 1005 return cnt; trace_seq_to_buffer() 3607 size_t cnt, loff_t *ppos) tracing_trace_options_write() 3614 if (cnt >= sizeof(buf)) tracing_trace_options_write() 3617 if (copy_from_user(&buf, ubuf, cnt)) tracing_trace_options_write() 3620 buf[cnt] = 0; tracing_trace_options_write() 3626 *ppos += cnt; tracing_trace_options_write() 3628 return cnt; tracing_trace_options_write() 3788 size_t cnt, loff_t *ppos) tracing_readme_read() 3790 return simple_read_from_buffer(ubuf, cnt, ppos, tracing_readme_read() 3878 size_t cnt, loff_t *ppos) tracing_saved_cmdlines_size_read() 3887 return simple_read_from_buffer(ubuf, cnt, ppos, buf, r); tracing_saved_cmdlines_size_read() 3921 size_t cnt, loff_t *ppos) tracing_saved_cmdlines_size_write() 3926 ret = kstrtoul_from_user(ubuf, cnt, 10, &val); tracing_saved_cmdlines_size_write() 3938 *ppos += cnt; tracing_saved_cmdlines_size_write() 3940 return cnt; tracing_saved_cmdlines_size_write() 4127 size_t cnt, loff_t *ppos) tracing_set_trace_read() 4137 return simple_read_from_buffer(ubuf, cnt, ppos, buf, r); tracing_set_trace_read() 4431 size_t cnt, loff_t *ppos) tracing_set_trace_write() 4439 ret = cnt; tracing_set_trace_write() 4441 if (cnt > MAX_TRACER_SIZE) tracing_set_trace_write() 4442 cnt = MAX_TRACER_SIZE; tracing_set_trace_write() 4444 if (copy_from_user(&buf, ubuf, cnt)) tracing_set_trace_write() 4447 buf[cnt] = 0; tracing_set_trace_write() 4450 for (i = cnt - 1; i > 0 && isspace(buf[i]); i--) tracing_set_trace_write() 4464 size_t cnt, loff_t *ppos) tracing_nsecs_read() 4473 return simple_read_from_buffer(ubuf, cnt, ppos, buf, r); tracing_nsecs_read() 4478 size_t cnt, loff_t *ppos) tracing_nsecs_write() 4483 ret = kstrtoul_from_user(ubuf, cnt, 10, &val); tracing_nsecs_write() 4489 return cnt; tracing_nsecs_write() 4494 size_t cnt, loff_t *ppos) tracing_thresh_read() 4496 return tracing_nsecs_read(&tracing_thresh, ubuf, cnt, ppos); tracing_thresh_read() 4501 size_t cnt, loff_t *ppos) tracing_thresh_write() 4507 ret = tracing_nsecs_write(&tracing_thresh, ubuf, cnt, ppos); tracing_thresh_write() 4517 ret = cnt; tracing_thresh_write() 4526 size_t cnt, loff_t *ppos) tracing_max_lat_read() 4528 return tracing_nsecs_read(filp->private_data, ubuf, cnt, ppos); tracing_max_lat_read() 4533 size_t cnt, loff_t *ppos) tracing_max_lat_write() 4535 return tracing_nsecs_write(filp->private_data, ubuf, cnt, ppos); tracing_max_lat_write() 4692 size_t cnt, loff_t *ppos) tracing_read_pipe() 4698 sret = trace_seq_to_user(&iter->seq, ubuf, cnt); tracing_read_pipe() 4711 sret = iter->trace->read(iter, filp, ubuf, cnt, ppos); tracing_read_pipe() 4727 if (cnt >= PAGE_SIZE) tracing_read_pipe() 4728 cnt = PAGE_SIZE - 1; tracing_read_pipe() 4752 if (trace_seq_used(&iter->seq) >= cnt) tracing_read_pipe() 4767 sret = trace_seq_to_user(&iter->seq, ubuf, cnt); tracing_read_pipe() 4934 size_t cnt, loff_t *ppos) tracing_entries_read() 4976 ret = simple_read_from_buffer(ubuf, cnt, ppos, buf, r); 4982 size_t cnt, loff_t *ppos) tracing_entries_write() 4989 ret = kstrtoul_from_user(ubuf, cnt, 10, &val); tracing_entries_write() 5003 *ppos += cnt; tracing_entries_write() 5005 return cnt; tracing_entries_write() 5010 size_t cnt, loff_t *ppos) tracing_total_entries_read() 5029 return simple_read_from_buffer(ubuf, cnt, ppos, buf, r); 5034 size_t cnt, loff_t *ppos) tracing_free_buffer_write() 5041 *ppos += cnt; tracing_free_buffer_write() 5043 return cnt; tracing_free_buffer_write() 5064 size_t cnt, loff_t *fpos) tracing_mark_write() 5088 if (cnt > TRACE_BUF_SIZE) tracing_mark_write() 5089 cnt = TRACE_BUF_SIZE; tracing_mark_write() 5108 if ((addr & PAGE_MASK) != ((addr + cnt) & PAGE_MASK)) tracing_mark_write() 5126 size = sizeof(*entry) + cnt + 2; /* possible \n added */ tracing_mark_write() 5142 memcpy(&entry->buf[len], map_page[1], cnt - len); tracing_mark_write() 5144 memcpy(&entry->buf, map_page[0] + offset, cnt); tracing_mark_write() 5146 if (entry->buf[cnt - 1] != '\n') { tracing_mark_write() 5147 entry->buf[cnt] = '\n'; tracing_mark_write() 5148 entry->buf[cnt + 1] = '\0'; tracing_mark_write() 5150 entry->buf[cnt] = '\0'; tracing_mark_write() 5154 written = cnt; tracing_mark_write() 5217 size_t cnt, loff_t *fpos) tracing_clock_write() 5225 if (cnt >= sizeof(buf)) tracing_clock_write() 5228 if (copy_from_user(&buf, ubuf, cnt)) tracing_clock_write() 5231 buf[cnt] = 0; tracing_clock_write() 5239 *fpos += cnt; tracing_clock_write() 5241 return cnt; tracing_clock_write() 5310 tracing_snapshot_write(struct file *filp, const char __user *ubuf, size_t cnt, tracing_snapshot_write() argument 5323 ret = kstrtoul_from_user(ubuf, cnt, 10, &val); tracing_snapshot_write() 5375 *ppos += cnt; tracing_snapshot_write() 5376 ret = cnt; tracing_snapshot_write() 5839 unsigned long cnt; tracing_stats_read() local 5849 cnt = ring_buffer_entries_cpu(trace_buf->buffer, cpu); tracing_stats_read() 5850 trace_seq_printf(s, "entries: %ld\n", cnt); tracing_stats_read() 5852 cnt = ring_buffer_overrun_cpu(trace_buf->buffer, cpu); tracing_stats_read() 5853 trace_seq_printf(s, "overrun: %ld\n", cnt); tracing_stats_read() 5855 cnt = ring_buffer_commit_overrun_cpu(trace_buf->buffer, cpu); tracing_stats_read() 5856 trace_seq_printf(s, "commit overrun: %ld\n", cnt); tracing_stats_read() 5858 cnt = ring_buffer_bytes_cpu(trace_buf->buffer, cpu); tracing_stats_read() 5859 trace_seq_printf(s, "bytes: %ld\n", cnt); tracing_stats_read() 5880 cnt = ring_buffer_dropped_events_cpu(trace_buf->buffer, cpu); tracing_stats_read() 5881 trace_seq_printf(s, "dropped events: %ld\n", cnt); tracing_stats_read() 5883 cnt = ring_buffer_read_events_cpu(trace_buf->buffer, cpu); tracing_stats_read() 5884 trace_seq_printf(s, "read events: %ld\n", cnt); tracing_stats_read() 5910 size_t cnt, loff_t *ppos) tracing_read_dyn_info() 5925 r = simple_read_from_buffer(ubuf, cnt, ppos, buf, r); tracing_read_dyn_info() 6145 trace_options_read(struct file *filp, char __user *ubuf, size_t cnt, trace_options_read() argument 6156 return simple_read_from_buffer(ubuf, cnt, ppos, buf, 2); trace_options_read() 6160 trace_options_write(struct file *filp, const char __user *ubuf, size_t cnt, trace_options_write() argument 6167 ret = kstrtoul_from_user(ubuf, cnt, 10, &val); trace_options_write() 6183 *ppos += cnt; trace_options_write() 6185 return cnt; trace_options_write() 6197 trace_options_core_read(struct file *filp, char __user *ubuf, size_t cnt, trace_options_core_read() argument 6208 return simple_read_from_buffer(ubuf, cnt, ppos, buf, 2); trace_options_core_read() 6212 trace_options_core_write(struct file *filp, const char __user *ubuf, size_t cnt, trace_options_core_write() argument 6220 ret = kstrtoul_from_user(ubuf, cnt, 10, &val); trace_options_core_write() 6234 *ppos += cnt; trace_options_core_write() 6236 return cnt; trace_options_core_write() 6309 int cnt; create_trace_option_files() local 6321 for (cnt = 0; opts[cnt].name; cnt++) create_trace_option_files() 6324 topts = kcalloc(cnt + 1, sizeof(*topts), GFP_KERNEL); create_trace_option_files() 6328 for (cnt = 0; opts[cnt].name; cnt++) create_trace_option_files() 6329 create_trace_option_file(tr, &topts[cnt], flags, create_trace_option_files() 6330 &opts[cnt]); create_trace_option_files() 6338 int cnt; destroy_trace_option_files() local 6343 for (cnt = 0; topts[cnt].opt; cnt++) destroy_trace_option_files() 6344 tracefs_remove(topts[cnt].entry); destroy_trace_option_files() 6378 size_t cnt, loff_t *ppos) rb_simple_read() 6387 return simple_read_from_buffer(ubuf, cnt, ppos, buf, r); rb_simple_read() 6392 size_t cnt, loff_t *ppos) rb_simple_write() 6399 ret = kstrtoul_from_user(ubuf, cnt, 10, &val); rb_simple_write() 6419 return cnt; rb_simple_write() 6971 int cnt = 0, cpu; ftrace_dump() local 7034 if (!cnt) 7037 cnt++; 7058 if (!cnt) 916 trace_get_user(struct trace_parser *parser, const char __user *ubuf, size_t cnt, loff_t *ppos) trace_get_user() argument 3606 tracing_trace_options_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) tracing_trace_options_write() argument 3787 tracing_readme_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) tracing_readme_read() argument 3877 tracing_saved_cmdlines_size_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) tracing_saved_cmdlines_size_read() argument 3920 tracing_saved_cmdlines_size_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) tracing_saved_cmdlines_size_write() argument 4126 tracing_set_trace_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) tracing_set_trace_read() argument 4430 tracing_set_trace_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) tracing_set_trace_write() argument 4463 tracing_nsecs_read(unsigned long *ptr, char __user *ubuf, size_t cnt, loff_t *ppos) tracing_nsecs_read() argument 4477 tracing_nsecs_write(unsigned long *ptr, const char __user *ubuf, size_t cnt, loff_t *ppos) tracing_nsecs_write() argument 4493 tracing_thresh_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) tracing_thresh_read() argument 4500 tracing_thresh_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) tracing_thresh_write() argument 4525 tracing_max_lat_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) tracing_max_lat_read() argument 4532 tracing_max_lat_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) tracing_max_lat_write() argument 4691 tracing_read_pipe(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) tracing_read_pipe() argument 4933 tracing_entries_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) tracing_entries_read() argument 4981 tracing_entries_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) tracing_entries_write() argument 5009 tracing_total_entries_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) tracing_total_entries_read() argument 5033 tracing_free_buffer_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) tracing_free_buffer_write() argument 5063 tracing_mark_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *fpos) tracing_mark_write() argument 5216 tracing_clock_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *fpos) tracing_clock_write() argument 5909 tracing_read_dyn_info(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) tracing_read_dyn_info() argument 6377 rb_simple_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) rb_simple_read() argument 6391 rb_simple_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) rb_simple_write() argument
|
/linux-4.1.27/drivers/net/ethernet/8390/ |
H A D | apne.c | 392 int cnt; apne_get_8390_hdr() local 415 for(cnt = 0; cnt < (sizeof(struct e8390_pkt_hdr)>>1); cnt++) apne_get_8390_hdr() 419 for(cnt = 0; cnt < sizeof(struct e8390_pkt_hdr); cnt++) apne_get_8390_hdr() 441 int cnt; apne_block_input() local 460 for (cnt = 0; cnt < (count>>1); cnt++) apne_block_input() 467 for (cnt = 0; cnt < count; cnt++) apne_block_input() 483 int cnt; apne_block_output() local 513 for (cnt = 0; cnt < count>>1; cnt++) apne_block_output() 517 for (cnt = 0; cnt < count; cnt++) apne_block_output()
|
H A D | zorro8390.c | 117 int cnt; zorro8390_get_8390_hdr() local 140 for (cnt = 0; cnt < sizeof(struct e8390_pkt_hdr) >> 1; cnt++) zorro8390_get_8390_hdr() 162 int cnt; zorro8390_block_input() local 181 for (cnt = 0; cnt < count >> 1; cnt++) zorro8390_block_input() 197 int cnt; zorro8390_block_output() local 228 for (cnt = 0; cnt < count >> 1; cnt++) zorro8390_block_output()
|
/linux-4.1.27/drivers/staging/rtl8188eu/core/ |
H A D | rtw_ieee80211.c | 256 uint cnt; rtw_get_ie_ex() local 266 cnt = 0; rtw_get_ie_ex() 268 while (cnt < in_len) { rtw_get_ie_ex() 269 if (eid == in_ie[cnt] && (!oui || !memcmp(&in_ie[cnt+2], oui, oui_len))) { rtw_get_ie_ex() 270 target_ie = &in_ie[cnt]; rtw_get_ie_ex() 273 memcpy(ie, &in_ie[cnt], in_ie[cnt+1]+2); rtw_get_ie_ex() 276 *ielen = in_ie[cnt+1]+2; rtw_get_ie_ex() 280 cnt += in_ie[cnt+1]+2; /* goto next */ rtw_get_ie_ex() 660 uint cnt; rtw_get_sec_ie() local 665 cnt = _TIMESTAMP_ + _BEACON_ITERVAL_ + _CAPABILITY_; rtw_get_sec_ie() 669 while (cnt < in_len) { rtw_get_sec_ie() 670 authmode = in_ie[cnt]; rtw_get_sec_ie() 672 if ((authmode == _WPA_IE_ID_) && (!memcmp(&in_ie[cnt+2], &wpa_oui[0], 4))) { rtw_get_sec_ie() 674 ("\n rtw_get_wpa_ie: sec_idx =%d in_ie[cnt+1]+2 =%d\n", rtw_get_sec_ie() 675 sec_idx, in_ie[cnt+1]+2)); rtw_get_sec_ie() 678 memcpy(wpa_ie, &in_ie[cnt], in_ie[cnt+1]+2); rtw_get_sec_ie() 680 for (i = 0; i < (in_ie[cnt+1]+2); i += 8) { rtw_get_sec_ie() 688 *wpa_len = in_ie[cnt+1]+2; rtw_get_sec_ie() 689 cnt += in_ie[cnt+1]+2; /* get next */ rtw_get_sec_ie() 693 ("\n get_rsn_ie: sec_idx =%d in_ie[cnt+1]+2 =%d\n", rtw_get_sec_ie() 694 sec_idx, in_ie[cnt+1]+2)); rtw_get_sec_ie() 697 memcpy(rsn_ie, &in_ie[cnt], in_ie[cnt+1]+2); rtw_get_sec_ie() 699 for (i = 0; i < (in_ie[cnt+1]+2); i += 8) { rtw_get_sec_ie() 707 *rsn_len = in_ie[cnt+1]+2; rtw_get_sec_ie() 708 cnt += in_ie[cnt+1]+2; /* get next */ rtw_get_sec_ie() 710 cnt += in_ie[cnt+1]+2; /* get next */ rtw_get_sec_ie() 747 uint cnt; rtw_get_wps_ie() local 757 cnt = 0; rtw_get_wps_ie() 759 while (cnt < in_len) { rtw_get_wps_ie() 760 eid = in_ie[cnt]; rtw_get_wps_ie() 762 if ((eid == _WPA_IE_ID_) && (!memcmp(&in_ie[cnt+2], wps_oui, 4))) { rtw_get_wps_ie() 763 wpsie_ptr = &in_ie[cnt]; rtw_get_wps_ie() 766 memcpy(wps_ie, &in_ie[cnt], in_ie[cnt+1]+2); rtw_get_wps_ie() 769 *wps_ielen = in_ie[cnt+1]+2; rtw_get_wps_ie() 771 cnt += in_ie[cnt+1]+2; rtw_get_wps_ie() 775 cnt += in_ie[cnt+1]+2; /* goto next */ rtw_get_wps_ie()
|
/linux-4.1.27/drivers/clocksource/ |
H A D | mips-gic-timer.c | 26 u64 cnt; gic_next_event() local 29 cnt = gic_read_count(); gic_next_event() 30 cnt += (u64)delta; gic_next_event() 31 gic_write_cpu_compare(cnt, cpumask_first(evt->cpumask)); gic_next_event() 32 res = ((int)(gic_read_count() - cnt) >= 0) ? -ETIME : 0; gic_next_event()
|
/linux-4.1.27/lib/ |
H A D | seq_buf.c | 285 * @cnt: The amount to copy 289 * and writes up to @cnt characters or till it reaches the end of 301 int seq_buf_to_user(struct seq_buf *s, char __user *ubuf, int cnt) seq_buf_to_user() argument 306 if (!cnt) seq_buf_to_user() 313 if (cnt > len) seq_buf_to_user() 314 cnt = len; seq_buf_to_user() 315 ret = copy_to_user(ubuf, s->buffer + s->readpos, cnt); seq_buf_to_user() 316 if (ret == cnt) seq_buf_to_user() 319 cnt -= ret; seq_buf_to_user() 321 s->readpos += cnt; seq_buf_to_user() 322 return cnt; seq_buf_to_user()
|
H A D | test_rhashtable.c | 82 unsigned int cnt, rcu_cnt, i, total = 0; test_bucket_stats() local 89 rcu_cnt = cnt = 0; test_bucket_stats() 95 cnt++; rht_for_each_entry_rcu() 104 if (rcu_cnt != cnt) 106 cnt, rcu_cnt); 110 i, tbl->buckets[i], cnt);
|
/linux-4.1.27/drivers/block/aoe/ |
H A D | aoechr.c | 162 aoechr_write(struct file *filp, const char __user *buf, size_t cnt, loff_t *offp) aoechr_write() argument 174 ret = interfaces(buf, cnt); aoechr_write() 177 ret = revalidate(buf, cnt); aoechr_write() 180 ret = aoedev_flush(buf, cnt); aoechr_write() 184 ret = cnt; aoechr_write() 213 aoechr_read(struct file *filp, char __user *buf, size_t cnt, loff_t *off) aoechr_read() argument 250 if (em->len > cnt) { aoechr_read()
|
/linux-4.1.27/tools/testing/selftests/ipc/ |
H A D | msgque.c | 83 int cnt = 0, ret; check_and_destroy_queue() local 95 if (ret != msgque->messages[cnt].msize) { check_and_destroy_queue() 97 msgque->messages[cnt].msize); check_and_destroy_queue() 101 if (message.mtype != msgque->messages[cnt].mtype) { check_and_destroy_queue() 106 if (memcmp(message.mtext, msgque->messages[cnt].mtext, ret)) { check_and_destroy_queue() 111 cnt++; check_and_destroy_queue() 114 if (cnt != msgque->qnum) { check_and_destroy_queue()
|
/linux-4.1.27/drivers/gpu/drm/msm/mdp/mdp5/ |
H A D | mdp5_smp.c | 117 int i, ret, avail, cur_nblks, cnt = smp->blk_cnt; smp_request_block() local 131 avail = cnt - bitmap_weight(smp->state, cnt); smp_request_block() 139 cur_nblks = bitmap_weight(ps->pending, cnt); smp_request_block() 143 int blk = find_first_zero_bit(smp->state, cnt); smp_request_block() 150 int blk = find_first_bit(ps->pending, cnt); smp_request_block() 237 int cnt = smp->blk_cnt; update_smp_state() local 240 for_each_set_bit(blk, *assigned, cnt) { update_smp_state() 269 int cnt = smp->blk_cnt; mdp5_smp_configure() local 277 bitmap_or(assigned, ps->inuse, ps->pending, cnt); mdp5_smp_configure() 285 int cnt = smp->blk_cnt; mdp5_smp_commit() local 298 if (bitmap_andnot(released, ps->inuse, ps->pending, cnt)) { mdp5_smp_commit() 303 bitmap_andnot(smp->state, smp->state, released, cnt); mdp5_smp_commit() 309 bitmap_copy(ps->inuse, ps->pending, cnt); mdp5_smp_commit()
|
/linux-4.1.27/drivers/isdn/hisax/ |
H A D | netjet.c | 67 static void fill_mem(struct BCState *bcs, u_int *pos, u_int cnt, int chan, u_char fill) fill_mem() argument 78 for (i = 0; i < cnt; i++) { fill_mem() 398 static void read_raw(struct BCState *bcs, u_int *buf, int cnt) { read_raw() argument 419 for (i = 0; i < cnt; i++) { read_raw() 577 int cnt = NETJET_DMA_RXSIZE / 2; read_tiger() local 596 p = cs->bcs[0].hw.tiger.rec + cnt - 1; read_tiger() 598 read_raw(cs->bcs, p, cnt); read_tiger() 601 read_raw(cs->bcs + 1, p, cnt); read_tiger() 605 static void write_raw(struct BCState *bcs, u_int *buf, int cnt); 610 register int cnt; netjet_fill_dma() local 639 cnt = p - sp; netjet_fill_dma() 640 if (cnt < 0) { netjet_fill_dma() 644 cnt++; netjet_fill_dma() 648 cnt++; netjet_fill_dma() 651 write_raw(bcs, p, bcs->hw.tiger.free - cnt); netjet_fill_dma() 655 cnt = bcs->hw.tiger.s_end - p; netjet_fill_dma() 656 if (cnt < 2) { netjet_fill_dma() 658 cnt = NETJET_DMA_TXSIZE / 2 - 2; netjet_fill_dma() 662 if (cnt <= (NETJET_DMA_TXSIZE / 2)) netjet_fill_dma() 663 cnt += NETJET_DMA_TXSIZE / 2; netjet_fill_dma() 664 cnt--; netjet_fill_dma() 665 cnt--; netjet_fill_dma() 667 write_raw(bcs, p, cnt); netjet_fill_dma() 674 static void write_raw(struct BCState *bcs, u_int *buf, int cnt) { write_raw() argument 678 if (cnt <= 0) write_raw() 681 if (bcs->hw.tiger.sendcnt > cnt) { write_raw() 682 s_cnt = cnt; write_raw() 683 bcs->hw.tiger.sendcnt -= cnt; write_raw() 703 buf, p, s_cnt, cnt, write_raw() 725 bcs->hw.tiger.free = cnt - s_cnt; write_raw() 736 if (s_cnt < cnt) { write_raw() 737 for (i = s_cnt; i < cnt; i++) { write_raw() 744 cnt - s_cnt); write_raw() 752 fill_mem(bcs, buf, cnt, bcs->channel, 0xff); write_raw() 753 bcs->hw.tiger.free += cnt; write_raw() 758 fill_mem(bcs, buf, cnt, bcs->channel, 0xff); write_raw() 765 u_int *p, cnt = NETJET_DMA_TXSIZE / 2; write_tiger() local 784 p = cs->bcs[0].hw.tiger.send + cnt - 1; write_tiger() 786 write_raw(cs->bcs, p, cnt); write_tiger() 788 write_raw(cs->bcs + 1, p, cnt); write_tiger()
|
H A D | ix1_micro.c | 118 #define READHSCXFIFO(cs, nr, ptr, cnt) readfifo(cs->hw.ix1.hscx_ale, \ 119 cs->hw.ix1.hscx, (nr ? 0x40 : 0), ptr, cnt) 121 #define WRITEHSCXFIFO(cs, nr, ptr, cnt) writefifo(cs->hw.ix1.hscx_ale, \ 122 cs->hw.ix1.hscx, (nr ? 0x40 : 0), ptr, cnt) 174 int cnt; ix1_reset() local 177 cnt = 3 * (HZ / 10) + 1; ix1_reset() 178 while (cnt--) { ix1_reset()
|
/linux-4.1.27/drivers/rtc/ |
H A D | rtc-rs5c313.c | 217 int cnt; rs5c313_rtc_read_time() local 219 cnt = 0; rs5c313_rtc_read_time() 232 if (cnt++ > 100) { rs5c313_rtc_read_time() 277 int cnt; rs5c313_rtc_set_time() local 279 cnt = 0; rs5c313_rtc_set_time() 293 if (cnt++ > 100) { rs5c313_rtc_set_time() 335 int cnt; rs5c313_check_xstp_bit() local 345 for (cnt = 0; cnt < 100; cnt++) { rs5c313_check_xstp_bit()
|
H A D | rtc-msm6242.c | 104 int cnt = 5; msm6242_lock() local 108 while ((msm6242_read(priv, MSM6242_CD) & MSM6242_CD_BUSY) && cnt) { msm6242_lock() 112 cnt--; msm6242_lock() 115 if (!cnt) msm6242_lock()
|
/linux-4.1.27/arch/sh/kernel/ |
H A D | io_trapped.c | 221 static unsigned long from_device(void *dst, const void *src, unsigned long cnt) from_device() argument 227 pr_debug("trapped io read 0x%08lx (%ld)\n", src_addr, cnt); from_device() 233 return cnt; from_device() 236 max_t(unsigned long, cnt, from_device() 238 (unsigned long)dst, cnt); from_device() 244 static unsigned long to_device(void *dst, const void *src, unsigned long cnt) to_device() argument 250 pr_debug("trapped io write 0x%08lx (%ld)\n", dst_addr, cnt); to_device() 256 return cnt; to_device() 258 tmp = copy_word((unsigned long)src, cnt, to_device() 259 dst_addr, max_t(unsigned long, cnt, to_device()
|
/linux-4.1.27/drivers/uio/ |
H A D | uio_pruss.c | 96 int cnt; pruss_cleanup() local 99 for (cnt = 0; cnt < MAX_PRUSS_EVT; cnt++, p++) { pruss_cleanup() 123 int ret = -ENODEV, cnt = 0, len; pruss_probe() local 187 for (cnt = 0, p = gdev->info; cnt < MAX_PRUSS_EVT; cnt++, p++) { pruss_probe() 200 p->name = kasprintf(GFP_KERNEL, "pruss_evt%d", cnt); pruss_probe() 204 p->irq = gdev->hostirq_start + cnt; pruss_probe()
|
/linux-4.1.27/fs/hfsplus/ |
H A D | bfind.c | 230 int hfs_brec_goto(struct hfs_find_data *fd, int cnt) hfs_brec_goto() argument 240 if (cnt < 0) { hfs_brec_goto() 241 cnt = -cnt; hfs_brec_goto() 242 while (cnt > fd->record) { hfs_brec_goto() 243 cnt -= fd->record + 1; hfs_brec_goto() 258 fd->record -= cnt; hfs_brec_goto() 260 while (cnt >= bnode->num_recs - fd->record) { hfs_brec_goto() 261 cnt -= bnode->num_recs - fd->record; hfs_brec_goto() 276 fd->record += cnt; hfs_brec_goto()
|
/linux-4.1.27/drivers/video/console/ |
H A D | bitblit.c | 78 const u16 *s, u32 attr, u32 cnt, bit_putcs_aligned() 86 while (cnt--) { bit_putcs_aligned() 110 u32 attr, u32 cnt, u32 d_pitch, bit_putcs_unaligned() 121 while (cnt--) { bit_putcs_unaligned() 153 u32 mod = vc->vc_font.width % 8, cnt, pitch, size; bit_putcs() local 172 cnt = maxcnt; bit_putcs() 174 cnt = count; bit_putcs() 176 image.width = vc->vc_font.width * cnt; bit_putcs() 185 bit_putcs_aligned(vc, info, s, attribute, cnt, pitch, bit_putcs() 188 bit_putcs_unaligned(vc, info, s, attribute, cnt, bit_putcs() 192 image.dx += cnt * vc->vc_font.width; bit_putcs() 193 count -= cnt; bit_putcs() 194 s += cnt; bit_putcs() 77 bit_putcs_aligned(struct vc_data *vc, struct fb_info *info, const u16 *s, u32 attr, u32 cnt, u32 d_pitch, u32 s_pitch, u32 cellsize, struct fb_image *image, u8 *buf, u8 *dst) bit_putcs_aligned() argument 108 bit_putcs_unaligned(struct vc_data *vc, struct fb_info *info, const u16 *s, u32 attr, u32 cnt, u32 d_pitch, u32 s_pitch, u32 cellsize, struct fb_image *image, u8 *buf, u8 *dst) bit_putcs_unaligned() argument
|
H A D | fbcon_ud.c | 86 const u16 *s, u32 attr, u32 cnt, ud_putcs_aligned() 95 while (cnt--) { ud_putcs_aligned() 118 u32 attr, u32 cnt, u32 d_pitch, ud_putcs_unaligned() 130 while (cnt--) { ud_putcs_unaligned() 162 u32 mod = vc->vc_font.width % 8, cnt, pitch, size; ud_putcs() local 188 cnt = maxcnt; ud_putcs() 190 cnt = count; ud_putcs() 192 image.width = vc->vc_font.width * cnt; ud_putcs() 201 ud_putcs_aligned(vc, info, s, attribute, cnt, pitch, ud_putcs() 204 ud_putcs_unaligned(vc, info, s, attribute, cnt, pitch, ud_putcs() 209 count -= cnt; ud_putcs() 210 s -= cnt; ud_putcs() 211 xx += cnt; ud_putcs() 85 ud_putcs_aligned(struct vc_data *vc, struct fb_info *info, const u16 *s, u32 attr, u32 cnt, u32 d_pitch, u32 s_pitch, u32 cellsize, struct fb_image *image, u8 *buf, u8 *dst) ud_putcs_aligned() argument 116 ud_putcs_unaligned(struct vc_data *vc, struct fb_info *info, const u16 *s, u32 attr, u32 cnt, u32 d_pitch, u32 s_pitch, u32 cellsize, struct fb_image *image, u8 *buf, u8 *dst) ud_putcs_unaligned() argument
|
H A D | fbcon_ccw.c | 99 const u16 *s, u32 attr, u32 cnt, ccw_putcs_aligned() 108 while (cnt--) { ccw_putcs_aligned() 140 u32 cnt, pitch, size; ccw_putcs() local 165 cnt = maxcnt; ccw_putcs() 167 cnt = count; ccw_putcs() 169 image.height = vc->vc_font.width * cnt; ccw_putcs() 176 ccw_putcs_aligned(vc, info, s, attribute, cnt, pitch, ccw_putcs() 179 count -= cnt; ccw_putcs() 180 s -= cnt; ccw_putcs() 98 ccw_putcs_aligned(struct vc_data *vc, struct fb_info *info, const u16 *s, u32 attr, u32 cnt, u32 d_pitch, u32 s_pitch, u32 cellsize, struct fb_image *image, u8 *buf, u8 *dst) ccw_putcs_aligned() argument
|
H A D | fbcon_cw.c | 84 const u16 *s, u32 attr, u32 cnt, cw_putcs_aligned() 93 while (cnt--) { cw_putcs_aligned() 125 u32 cnt, pitch, size; cw_putcs() local 148 cnt = maxcnt; cw_putcs() 150 cnt = count; cw_putcs() 152 image.height = vc->vc_font.width * cnt; cw_putcs() 159 cw_putcs_aligned(vc, info, s, attribute, cnt, pitch, cw_putcs() 162 count -= cnt; cw_putcs() 163 s += cnt; cw_putcs() 83 cw_putcs_aligned(struct vc_data *vc, struct fb_info *info, const u16 *s, u32 attr, u32 cnt, u32 d_pitch, u32 s_pitch, u32 cellsize, struct fb_image *image, u8 *buf, u8 *dst) cw_putcs_aligned() argument
|
/linux-4.1.27/drivers/misc/mei/ |
H A D | debugfs.c | 28 size_t cnt, loff_t *ppos) mei_dbgfs_read_meclients() 77 ret = simple_read_from_buffer(ubuf, cnt, ppos, buf, pos); mei_dbgfs_read_meclients() 89 size_t cnt, loff_t *ppos) mei_dbgfs_read_active() 125 ret = simple_read_from_buffer(ubuf, cnt, ppos, buf, pos); mei_dbgfs_read_active() 137 size_t cnt, loff_t *ppos) mei_dbgfs_read_devstate() 155 ret = simple_read_from_buffer(ubuf, cnt, ppos, buf, pos); mei_dbgfs_read_devstate() 27 mei_dbgfs_read_meclients(struct file *fp, char __user *ubuf, size_t cnt, loff_t *ppos) mei_dbgfs_read_meclients() argument 88 mei_dbgfs_read_active(struct file *fp, char __user *ubuf, size_t cnt, loff_t *ppos) mei_dbgfs_read_active() argument 136 mei_dbgfs_read_devstate(struct file *fp, char __user *ubuf, size_t cnt, loff_t *ppos) mei_dbgfs_read_devstate() argument
|
/linux-4.1.27/arch/mips/alchemy/devboards/ |
H A D | platform.c | 95 int cnt, i, ret; db1x_register_pcmcia_socket() local 99 cnt = 5; db1x_register_pcmcia_socket() 101 cnt++; db1x_register_pcmcia_socket() 103 cnt++; db1x_register_pcmcia_socket() 105 sr = kzalloc(sizeof(struct resource) * cnt, GFP_KERNEL); db1x_register_pcmcia_socket() 152 pd->num_resources = cnt; db1x_register_pcmcia_socket()
|
/linux-4.1.27/sound/soc/sh/ |
H A D | siu_dai.c | 262 int cnt; siu_dai_spbstart() local 269 for (cnt = 0; cnt < PRAM0_SIZE; cnt++, add++, ptr++) siu_dai_spbstart() 274 for (cnt = 0; cnt < PRAM1_SIZE; cnt++, add++, ptr++) siu_dai_spbstart() 279 for (cnt = 0; cnt < XRAM0_SIZE + XRAM1_SIZE + XRAM2_SIZE; cnt++, add++) siu_dai_spbstart() 284 for (cnt = 0; cnt < YRAM_DEF_SIZE; cnt++, add++) siu_dai_spbstart() 285 siu_write32(add, ydef[cnt]); siu_dai_spbstart() 289 for (cnt = 0; cnt < YRAM_FIR_SIZE; cnt++, add++) siu_dai_spbstart() 290 siu_write32(add, fw->yram_fir_coeff[cnt]); siu_dai_spbstart() 294 for (cnt = 0; cnt < YRAM_IIR_SIZE; cnt++, add++) siu_dai_spbstart() 306 cnt = 0x10000; siu_dai_spbstart() 307 while (--cnt && siu_read32(base + SIU_SBCTL) != 0x80000000) siu_dai_spbstart() 310 if (!cnt) siu_dai_spbstart()
|
/linux-4.1.27/drivers/net/hamradio/ |
H A D | baycom_epp.c | 261 static inline int check_crc_ccitt(const unsigned char *buf, int cnt) check_crc_ccitt() argument 263 return (crc_ccitt(0xffff, buf, cnt) & 0xffff) == 0xf0b8; check_crc_ccitt() 268 static inline int calc_crc_ccitt(const unsigned char *buf, int cnt) calc_crc_ccitt() argument 270 return (crc_ccitt(0xffff, buf, cnt) ^ 0xffff) & 0xffff; calc_crc_ccitt() 431 static int transmit(struct baycom_state *bc, int cnt, unsigned char stat) transmit() argument 461 while (cnt > 0) { transmit() 464 i = min_t(int, cnt, bc->hdlctx.flags); transmit() 465 cnt -= i; transmit() 487 i = min_t(int, cnt, bc->hdlctx.bufcnt); transmit() 489 cnt -= i; transmit() 501 i = min_t(int, cnt, bc->hdlctx.flags); transmit() 503 cnt -= i; transmit() 518 i = min_t(int, cnt, bc->hdlctx.calibrate); transmit() 519 cnt -= i; transmit() 561 static int receive(struct net_device *dev, int cnt) receive() argument 575 while (cnt > 0) { receive() 576 cnt2 = (cnt > sizeof(tmp)) ? sizeof(tmp) : cnt; receive() 577 cnt -= cnt2; receive() 655 int cnt, cnt2; epp_bh() local 676 cnt = tmp[0] | (tmp[1] << 8); epp_bh() 677 cnt &= 0x7fff; epp_bh() 693 if (receive(dev, cnt)) epp_bh() 702 cnt = 2048 - 256; epp_bh() 706 cnt = 2048 - 1793; epp_bh() 710 cnt = 0; epp_bh() 714 cnt = 2048 - 1025; epp_bh() 717 if (transmit(bc, cnt, stat)) epp_bh() 724 cnt = 1025; epp_bh() 728 cnt = 1793; epp_bh() 732 cnt = 256; epp_bh() 735 if (receive(dev, cnt)) epp_bh() 740 cnt = 0; epp_bh() 742 cnt = 256; epp_bh() 744 cnt = 128; epp_bh() 745 while (cnt > 0 && stat & EPP_NREF) { epp_bh() 748 cnt--; epp_bh()
|
/linux-4.1.27/arch/x86/boot/ |
H A D | tty.c | 121 int cnt = 30; getchar_timeout() local 126 while (cnt) { getchar_timeout() 132 cnt--; getchar_timeout()
|
/linux-4.1.27/drivers/gpu/drm/msm/edp/ |
H A D | edp_phy.c | 26 int cnt = 100; msm_edp_phy_ready() local 28 while (--cnt) { msm_edp_phy_ready() 36 if (cnt == 0) { msm_edp_phy_ready()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/include/nvkm/subdev/ |
H A D | mmu.h | 55 struct nvkm_mem *, u32 pte, u32 cnt, 58 struct nvkm_mem *, u32 pte, u32 cnt, dma_addr_t *); 59 void (*unmap)(struct nvkm_gpuobj *pgt, u32 pte, u32 cnt);
|
/linux-4.1.27/samples/bpf/ |
H A D | tracex3_user.c | 80 __u64 cnt[SLOTS]; print_hist() local 87 cnt[key] = value; print_hist() 94 int c = num_colors * cnt[key] / (max_cnt + 1); print_hist()
|
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8723be/ |
H A D | hw.c | 1762 u32 path, addr = EEPROM_TX_PWR_INX, group, cnt = 0; _rtl8723be_read_power_value_fromprom() local 1779 for (cnt = 0; cnt < MAX_TX_COUNT; cnt++) { _rtl8723be_read_power_value_fromprom() 1780 if (cnt == 0) { _rtl8723be_read_power_value_fromprom() 1784 pw2g->bw20_diff[path][cnt] = 0xFE; _rtl8723be_read_power_value_fromprom() 1785 pw2g->bw40_diff[path][cnt] = 0xFE; _rtl8723be_read_power_value_fromprom() 1786 pw2g->cck_diff[path][cnt] = 0xFE; _rtl8723be_read_power_value_fromprom() 1787 pw2g->ofdm_diff[path][cnt] = 0xFE; _rtl8723be_read_power_value_fromprom() 1807 for (cnt = 0; cnt < MAX_TX_COUNT; cnt++) { _rtl8723be_read_power_value_fromprom() 1808 if (cnt == 0) { _rtl8723be_read_power_value_fromprom() 1809 pw2g->bw40_diff[path][cnt] = 0; _rtl8723be_read_power_value_fromprom() 1811 pw2g->bw20_diff[path][cnt] = 0x02; _rtl8723be_read_power_value_fromprom() 1813 pw2g->bw20_diff[path][cnt] = _rtl8723be_read_power_value_fromprom() 1816 if (pw2g->bw20_diff[path][cnt] & BIT(3)) _rtl8723be_read_power_value_fromprom() 1817 pw2g->bw20_diff[path][cnt] |= _rtl8723be_read_power_value_fromprom() 1822 pw2g->ofdm_diff[path][cnt] = 0x04; _rtl8723be_read_power_value_fromprom() 1824 pw2g->ofdm_diff[path][cnt] = _rtl8723be_read_power_value_fromprom() 1827 if (pw2g->ofdm_diff[path][cnt] & BIT(3)) _rtl8723be_read_power_value_fromprom() 1828 pw2g->ofdm_diff[path][cnt] |= _rtl8723be_read_power_value_fromprom() 1831 pw2g->cck_diff[path][cnt] = 0; _rtl8723be_read_power_value_fromprom() 1835 pw2g->bw40_diff[path][cnt] = 0xFE; _rtl8723be_read_power_value_fromprom() 1837 pw2g->bw40_diff[path][cnt] = _rtl8723be_read_power_value_fromprom() 1839 if (pw2g->bw40_diff[path][cnt] & BIT(3)) _rtl8723be_read_power_value_fromprom() 1840 pw2g->bw40_diff[path][cnt] |= _rtl8723be_read_power_value_fromprom() 1845 pw2g->bw20_diff[path][cnt] = 0xFE; _rtl8723be_read_power_value_fromprom() 1847 pw2g->bw20_diff[path][cnt] = _rtl8723be_read_power_value_fromprom() 1849 if (pw2g->bw20_diff[path][cnt] & BIT(3)) _rtl8723be_read_power_value_fromprom() 1850 pw2g->bw20_diff[path][cnt] |= _rtl8723be_read_power_value_fromprom() 1856 pw2g->ofdm_diff[path][cnt] = 0xFE; _rtl8723be_read_power_value_fromprom() 1858 pw2g->ofdm_diff[path][cnt] = _rtl8723be_read_power_value_fromprom() 1860 if (pw2g->ofdm_diff[path][cnt] & BIT(3)) _rtl8723be_read_power_value_fromprom() 1861 pw2g->ofdm_diff[path][cnt] |= _rtl8723be_read_power_value_fromprom() 1866 pw2g->cck_diff[path][cnt] = 0xFE; _rtl8723be_read_power_value_fromprom() 1868 pw2g->cck_diff[path][cnt] = _rtl8723be_read_power_value_fromprom() 1870 if (pw2g->cck_diff[path][cnt] & BIT(3)) _rtl8723be_read_power_value_fromprom() 1871 pw2g->cck_diff[path][cnt] |= _rtl8723be_read_power_value_fromprom() 1885 for (cnt = 0; cnt < MAX_TX_COUNT; cnt++) { _rtl8723be_read_power_value_fromprom() 1886 if (cnt == 0) { _rtl8723be_read_power_value_fromprom() 1887 pw5g->bw40_diff[path][cnt] = 0; _rtl8723be_read_power_value_fromprom() 1890 pw5g->bw20_diff[path][cnt] = 0; _rtl8723be_read_power_value_fromprom() 1894 if (pw5g->bw20_diff[path][cnt] & BIT(3)) _rtl8723be_read_power_value_fromprom() 1895 pw5g->bw20_diff[path][cnt] |= _rtl8723be_read_power_value_fromprom() 1900 pw5g->ofdm_diff[path][cnt] = 0x04; _rtl8723be_read_power_value_fromprom() 1904 if (pw5g->ofdm_diff[path][cnt] & BIT(3)) _rtl8723be_read_power_value_fromprom() 1905 pw5g->ofdm_diff[path][cnt] |= _rtl8723be_read_power_value_fromprom() 1911 pw5g->bw40_diff[path][cnt] = 0xFE; _rtl8723be_read_power_value_fromprom() 1913 pw5g->bw40_diff[path][cnt] = _rtl8723be_read_power_value_fromprom() 1915 if (pw5g->bw40_diff[path][cnt] & BIT(3)) _rtl8723be_read_power_value_fromprom() 1916 pw5g->bw40_diff[path][cnt] |= 0xF0; _rtl8723be_read_power_value_fromprom() 1920 pw5g->bw20_diff[path][cnt] = 0xFE; _rtl8723be_read_power_value_fromprom() 1922 pw5g->bw20_diff[path][cnt] = _rtl8723be_read_power_value_fromprom() 1924 if (pw5g->bw20_diff[path][cnt] & BIT(3)) _rtl8723be_read_power_value_fromprom() 1925 pw5g->bw20_diff[path][cnt] |= 0xF0; _rtl8723be_read_power_value_fromprom() 1946 for (cnt = 1; cnt < MAX_TX_COUNT; cnt++) { _rtl8723be_read_power_value_fromprom() 1947 if (pw5g->ofdm_diff[path][cnt] == 0xFF) _rtl8723be_read_power_value_fromprom() 1948 pw5g->ofdm_diff[path][cnt] = 0xFE; _rtl8723be_read_power_value_fromprom() 1949 else if (pw5g->ofdm_diff[path][cnt] & BIT(3)) _rtl8723be_read_power_value_fromprom() 1950 pw5g->ofdm_diff[path][cnt] |= 0xF0; _rtl8723be_read_power_value_fromprom()
|
/linux-4.1.27/drivers/memstick/core/ |
H A D | mspro_block.c | 298 ssize_t cnt, rc = 0; mspro_block_attr_show_default() local 300 for (cnt = 0; cnt < s_attr->size; cnt++) { mspro_block_attr_show_default() 301 if (cnt && !(cnt % 16)) { mspro_block_attr_show_default() 307 ((unsigned char *)s_attr->data)[cnt]); mspro_block_attr_show_default() 746 int chunk, cnt; mspro_block_complete_req() local 761 for (cnt = 0; cnt < msb->current_seg; cnt++) { mspro_block_complete_req() 762 t_len += msb->req_sg[cnt].length mspro_block_complete_req() 985 int cnt, rc, attr_count; mspro_block_read_attributes() local 1043 for (cnt = 0; cnt < attr_count; ++cnt) { mspro_block_read_attributes() 1050 msb->attr_group.attrs[cnt] = &s_attr->dev_attr.attr; mspro_block_read_attributes() 1051 addr = be32_to_cpu(attr->entries[cnt].address); mspro_block_read_attributes() 1052 s_attr->size = be32_to_cpu(attr->entries[cnt].size); mspro_block_read_attributes() 1054 "size %zx\n", cnt, attr->entries[cnt].id, addr, mspro_block_read_attributes() 1056 s_attr->id = attr->entries[cnt].id; mspro_block_read_attributes() 1059 mspro_block_attr_name(attr->entries[cnt].id)); mspro_block_read_attributes() 1062 "attr_x%02x", attr->entries[cnt].id); mspro_block_read_attributes() 1274 int cnt; mspro_block_data_clear() local 1278 for (cnt = 0; msb->attr_group.attrs[cnt]; ++cnt) { mspro_block_data_clear() 1280 .attrs[cnt]); mspro_block_data_clear() 1386 unsigned char cnt; mspro_block_resume() local 1400 for (cnt = 0; new_msb->attr_group.attrs[cnt] mspro_block_resume() 1401 && msb->attr_group.attrs[cnt]; ++cnt) { mspro_block_resume() 1402 s_attr = mspro_from_sysfs_attr(new_msb->attr_group.attrs[cnt]); mspro_block_resume() 1403 r_attr = mspro_from_sysfs_attr(msb->attr_group.attrs[cnt]); mspro_block_resume()
|
/linux-4.1.27/drivers/scsi/fnic/ |
H A D | vnic_wq_copy.h | 71 unsigned int cnt; vnic_wq_copy_desc_process() local 74 cnt = (index - wq->to_clean_index) + 1; vnic_wq_copy_desc_process() 76 cnt = wq->ring.desc_count - wq->to_clean_index + index + 1; vnic_wq_copy_desc_process() 79 wq->ring.desc_avail += cnt; vnic_wq_copy_desc_process()
|
H A D | fnic_debugfs.c | 133 * @cnt: The number of bytes to read. 141 * copy up to @cnt of data to @ubuf from @buf. 148 size_t cnt, loff_t *ppos) fnic_trace_ctrl_read() 164 return simple_read_from_buffer(ubuf, cnt, ppos, buf, len); fnic_trace_ctrl_read() 173 * @cnt: The number of bytes to write. 186 size_t cnt, loff_t *ppos) fnic_trace_ctrl_write() 194 if (cnt >= sizeof(buf)) fnic_trace_ctrl_write() 197 if (copy_from_user(&buf, ubuf, cnt)) fnic_trace_ctrl_write() 200 buf[cnt] = 0; fnic_trace_ctrl_write() 217 return cnt; fnic_trace_ctrl_write() 551 * @cnt: The number of bytes to read. 557 * copy up to @cnt of data to @ubuf from @buf. 564 size_t cnt, loff_t *ppos) fnic_reset_stats_read() 573 return simple_read_from_buffer(ubuf, cnt, ppos, buf, len); fnic_reset_stats_read() 580 * @cnt: The number of bytes to write. 592 size_t cnt, loff_t *ppos) fnic_reset_stats_write() 603 if (cnt >= sizeof(buf)) fnic_reset_stats_write() 606 if (copy_from_user(&buf, ubuf, cnt)) fnic_reset_stats_write() 609 buf[cnt] = 0; fnic_reset_stats_write() 637 return cnt; fnic_reset_stats_write() 146 fnic_trace_ctrl_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) fnic_trace_ctrl_read() argument 184 fnic_trace_ctrl_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) fnic_trace_ctrl_write() argument 562 fnic_reset_stats_read(struct file *file, char __user *ubuf, size_t cnt, loff_t *ppos) fnic_reset_stats_read() argument 590 fnic_reset_stats_write(struct file *file, const char __user *ubuf, size_t cnt, loff_t *ppos) fnic_reset_stats_write() argument
|
/linux-4.1.27/arch/xtensa/include/asm/ |
H A D | cacheflush.h | 228 u32 cnt; flush_dcache_unaligned() local 230 cnt = (size + ((XCHAL_DCACHE_LINESIZE - 1) & addr) flush_dcache_unaligned() 232 while (cnt--) { flush_dcache_unaligned() 242 int cnt; invalidate_dcache_unaligned() local 245 cnt = (size + ((XCHAL_DCACHE_LINESIZE - 1) & addr) invalidate_dcache_unaligned() 247 while (cnt-- > 0) { invalidate_dcache_unaligned() 260 u32 cnt; flush_invalidate_dcache_unaligned() local 262 cnt = (size + ((XCHAL_DCACHE_LINESIZE - 1) & addr) flush_invalidate_dcache_unaligned() 264 while (cnt--) { flush_invalidate_dcache_unaligned()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/ |
H A D | aux.c | 76 u8 cnt = (remaining > 16) ? 16 : remaining; aux_xfer() local 87 ret = port->func->aux(port, true, cmd, msg->addr, ptr, cnt); aux_xfer() 93 ptr += cnt; aux_xfer() 94 remaining -= cnt; aux_xfer()
|
/linux-4.1.27/drivers/block/ |
H A D | amiflop.c | 456 int cnt; fd_seek() local 477 cnt = unit[drive].track/2 - track/2; fd_seek() 482 if (cnt < 0) { fd_seek() 483 cnt = - cnt; fd_seek() 490 if (cnt == 0) { fd_seek() 502 } while (--cnt != 0); fd_seek() 798 int cnt, to_cnt = 0; encode_block() local 802 for (cnt = 0; cnt < len / 4; cnt++) { encode_block() 803 data = src[cnt] >> 1; encode_block() 808 for (cnt = 0; cnt < len / 4; cnt++) { encode_block() 809 data = src[cnt]; encode_block() 814 static unsigned long *putsec(int disk, unsigned long *raw, int cnt) putsec() argument 826 hdr.sect = cnt; putsec() 827 hdr.ord = unit[disk].dtype->sects * unit[disk].type->sect_mult - cnt; putsec() 832 hdr.datachk = checksum((ulong *)(unit[disk].trackbuf+cnt*512), 512); putsec() 842 encode_block(raw, (ulong *)(unit[disk].trackbuf+cnt*512), 512); putsec() 850 unsigned int cnt; amiga_write() local 855 for (cnt = 0; cnt < 415 * unit[disk].type->sect_mult; cnt++) amiga_write() 859 for (cnt = 0; cnt < unit[disk].dtype->sects * unit[disk].type->sect_mult; cnt++) amiga_write() 860 ptr = putsec (disk, ptr, cnt); amiga_write() 1154 static unsigned long *ms_putsec(int drive, unsigned long *raw, int cnt) ms_putsec() argument 1173 hdr.sec=cnt+1; ms_putsec() 1190 (unsigned char *)unit[drive].trackbuf+cnt*512,512); ms_putsec() 1194 crc[0]=dos_data_crc(unit[drive].trackbuf+cnt*512); ms_putsec() 1207 int cnt; dos_write() local 1213 for (cnt=0;cnt<425;cnt++) dos_write() 1218 for(cnt=0;cnt<473;cnt++) dos_write() 1222 for (cnt=0;cnt<20;cnt++) dos_write() 1224 for (cnt=0;cnt<6;cnt++) dos_write() 1228 for (cnt=0;cnt<20;cnt++) dos_write() 1232 for(cnt = 0; cnt < unit[disk].dtype->sects * unit[disk].type->sect_mult; cnt++) dos_write() 1233 ptr=ms_putsec(disk,ptr,cnt); dos_write() 1343 int cnt = FD_MAX_UNITS; set_next_request() local 1351 for(cnt = FD_MAX_UNITS; cnt > 0; cnt--) { set_next_request() 1376 unsigned int cnt, block, track, sector; redo_fd_request() local 1395 for (cnt = 0, err = 0; cnt < blk_rq_cur_sectors(rq); cnt++) { redo_fd_request() 1398 blk_rq_pos(rq), cnt, redo_fd_request() 1401 block = blk_rq_pos(rq) + cnt; redo_fd_request() 1409 data = bio_data(rq->bio) + 512 * cnt; redo_fd_request()
|
/linux-4.1.27/fs/nfs/filelayout/ |
H A D | filelayoutdev.c | 67 u32 cnt, num; nfs4_fl_alloc_deviceid_node() local 92 cnt = be32_to_cpup(p); nfs4_fl_alloc_deviceid_node() 93 dprintk("%s stripe count %d\n", __func__, cnt); nfs4_fl_alloc_deviceid_node() 94 if (cnt > NFS4_PNFS_MAX_STRIPE_CNT) { nfs4_fl_alloc_deviceid_node() 97 cnt, NFS4_PNFS_MAX_STRIPE_CNT); nfs4_fl_alloc_deviceid_node() 102 stripe_indices = kcalloc(cnt, sizeof(u8), gfp_flags); nfs4_fl_alloc_deviceid_node() 106 p = xdr_inline_decode(&stream, cnt << 2); nfs4_fl_alloc_deviceid_node() 112 for (i = 0; i < cnt; i++) { nfs4_fl_alloc_deviceid_node() 145 dsaddr->stripe_count = cnt; nfs4_fl_alloc_deviceid_node()
|
/linux-4.1.27/arch/mn10300/unit-asb2364/include/unit/ |
H A D | timex.h | 51 static inline void reload_jiffies_counter(u32 cnt) reload_jiffies_counter() argument 55 TMTBR = cnt; reload_jiffies_counter() 83 static inline void reload_jiffies_counter1(u32 cnt) reload_jiffies_counter1() argument 87 TM45BR = cnt; reload_jiffies_counter1()
|
/linux-4.1.27/drivers/usb/host/ |
H A D | fhci-sched.c | 710 u16 cnt = 0; fhci_queue_urb() local 779 td = fhci_td_fill(fhci, urb, urb_priv, ed, cnt, fhci_queue_urb() 782 cnt ? USB_TD_TOGGLE_CARRY : fhci_queue_urb() 787 cnt++; fhci_queue_urb() 790 td = fhci_td_fill(fhci, urb, urb_priv, ed, cnt, fhci_queue_urb() 792 cnt ? USB_TD_TOGGLE_CARRY : toggle, fhci_queue_urb() 794 cnt++; fhci_queue_urb() 797 cnt < urb_priv->num_of_tds) { fhci_queue_urb() 798 td = fhci_td_fill(fhci, urb, urb_priv, ed, cnt, fhci_queue_urb() 802 cnt++; fhci_queue_urb() 807 td = fhci_td_fill(fhci, urb, urb_priv, ed, cnt++, fhci_queue_urb() 817 td = fhci_td_fill(fhci, urb, urb_priv, ed, cnt++, FHCI_TA_SETUP, fhci_queue_urb() 822 td = fhci_td_fill(fhci, urb, urb_priv, ed, cnt++, fhci_queue_urb() 831 td = fhci_td_fill(fhci, urb, urb_priv, ed, cnt++, fhci_queue_urb() 836 td = fhci_td_fill(fhci, urb, urb_priv, ed, cnt++, fhci_queue_urb() 843 for (cnt = 0; cnt < urb->number_of_packets; cnt++) { fhci_queue_urb() 851 frame += cnt * urb->interval; fhci_queue_urb() 853 td = fhci_td_fill(fhci, urb, urb_priv, ed, cnt, fhci_queue_urb() 857 data + urb->iso_frame_desc[cnt].offset, fhci_queue_urb() 858 urb->iso_frame_desc[cnt].length, fhci_queue_urb()
|
/linux-4.1.27/drivers/net/wan/ |
H A D | n2.c | 305 int cnt; n2_destroy_card() local 307 for (cnt = 0; cnt < 2; cnt++) n2_destroy_card() 308 if (card->ports[cnt].card) { n2_destroy_card() 309 struct net_device *dev = port_to_dev(&card->ports[cnt]); n2_destroy_card() 342 u8 cnt, pcr; n2_run() local 451 for (cnt = 0; cnt < 2; cnt++) { n2_run() 452 port_t *port = &card->ports[cnt]; n2_run() 456 if ((cnt == 0 && !valid0) || (cnt == 1 && !valid1)) n2_run() 459 port->phy_node = cnt; n2_run() 462 if ((cnt == 1) && valid0) n2_run()
|
/linux-4.1.27/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_debugfs.c | 769 * @cnt: number of arguments that the user supplied 776 static void i40e_dbg_dump_desc(int cnt, int vsi_seid, int ring_id, int desc_n, i40e_dbg_dump_desc() argument 807 if (cnt == 2) { i40e_dbg_dump_desc() 833 } else if (cnt == 3) { i40e_dbg_dump_desc() 988 int cnt; i40e_dbg_command_write() local 1014 cnt = sscanf(&cmd_buf[7], "%i", &vsi_seid); i40e_dbg_command_write() 1015 if (cnt == 0) { i40e_dbg_command_write() 1056 cnt = sscanf(&cmd_buf[9], "%i %i", &uplink_seid, &vsi_seid); i40e_dbg_command_write() 1057 if (cnt != 2) { i40e_dbg_command_write() 1059 "add relay: bad command string, cnt=%d\n", i40e_dbg_command_write() 1060 cnt); i40e_dbg_command_write() 1096 cnt = sscanf(&cmd_buf[9], "%i", &veb_seid); i40e_dbg_command_write() 1097 if (cnt != 1) { i40e_dbg_command_write() 1099 "del relay: bad command string, cnt=%d\n", i40e_dbg_command_write() 1100 cnt); i40e_dbg_command_write() 1127 cnt = sscanf(&cmd_buf[11], i40e_dbg_command_write() 1132 if (cnt == 7) { i40e_dbg_command_write() 1134 } else if (cnt != 8) { i40e_dbg_command_write() 1136 "add macaddr: bad command string, cnt=%d\n", i40e_dbg_command_write() 1137 cnt); i40e_dbg_command_write() 1164 cnt = sscanf(&cmd_buf[11], i40e_dbg_command_write() 1169 if (cnt == 7) { i40e_dbg_command_write() 1171 } else if (cnt != 8) { i40e_dbg_command_write() 1173 "del macaddr: bad command string, cnt=%d\n", i40e_dbg_command_write() 1174 cnt); i40e_dbg_command_write() 1201 cnt = sscanf(&cmd_buf[8], "%i %u", &vsi_seid, &v); i40e_dbg_command_write() 1202 if (cnt != 2) { i40e_dbg_command_write() 1204 "add pvid: bad command string, cnt=%d\n", cnt); i40e_dbg_command_write() 1228 cnt = sscanf(&cmd_buf[8], "%i", &vsi_seid); i40e_dbg_command_write() 1229 if (cnt != 1) { i40e_dbg_command_write() 1231 "del pvid: bad command string, cnt=%d\n", i40e_dbg_command_write() 1232 cnt); i40e_dbg_command_write() 1251 cnt = sscanf(&cmd_buf[8], "%i", &vsi_seid); i40e_dbg_command_write() 1252 if (cnt > 0) i40e_dbg_command_write() 1257 cnt = sscanf(&cmd_buf[8], "%i", &vsi_seid); i40e_dbg_command_write() 1258 if (cnt > 0) i40e_dbg_command_write() 1265 cnt = sscanf(&cmd_buf[12], "%i %i %i", i40e_dbg_command_write() 1267 i40e_dbg_dump_desc(cnt, vsi_seid, ring_id, i40e_dbg_command_write() 1271 cnt = sscanf(&cmd_buf[12], "%i %i %i", i40e_dbg_command_write() 1273 i40e_dbg_dump_desc(cnt, vsi_seid, ring_id, i40e_dbg_command_write() 1409 cnt = sscanf(&cmd_buf[18], "%i %i %i", i40e_dbg_command_write() 1411 if (cnt != 3) { i40e_dbg_command_write() 1457 cnt = sscanf(&cmd_buf[10], "%i", &level); i40e_dbg_command_write() 1458 if (cnt) { i40e_dbg_command_write() 1491 cnt = sscanf(&cmd_buf[4], "%i", &address); i40e_dbg_command_write() 1492 if (cnt != 1) { i40e_dbg_command_write() 1510 cnt = sscanf(&cmd_buf[5], "%i %i", &address, &value); i40e_dbg_command_write() 1511 if (cnt != 2) { i40e_dbg_command_write() 1528 cnt = sscanf(&cmd_buf[15], "%i", &vsi_seid); i40e_dbg_command_write() 1529 if (cnt == 0) { i40e_dbg_command_write() 1534 } else if (cnt == 1) { i40e_dbg_command_write() 1566 cnt = sscanf(&cmd_buf[11], i40e_dbg_command_write() 1575 if (cnt != 10) { i40e_dbg_command_write() 1577 "send aq_cmd: bad command string, cnt=%d\n", i40e_dbg_command_write() 1578 cnt); i40e_dbg_command_write() 1614 cnt = sscanf(&cmd_buf[20], i40e_dbg_command_write() 1624 if (cnt != 11) { i40e_dbg_command_write() 1626 "send indirect aq_cmd: bad command string, cnt=%d\n", i40e_dbg_command_write() 1627 cnt); i40e_dbg_command_write() 1703 cnt = sscanf(&cmd_buf[13], i40e_dbg_command_write() 1710 if (cnt != 10) { i40e_dbg_command_write() 1712 "program fd_filter: bad command string, cnt=%d\n", i40e_dbg_command_write() 1713 cnt); i40e_dbg_command_write() 1752 } else if (strncmp(cmd_buf, "fd current cnt", 14) == 0) { i40e_dbg_command_write() 1887 cnt = sscanf(&cmd_buf[8], "%hx %x %hx", i40e_dbg_command_write() 1889 if (cnt == 0) { i40e_dbg_command_write() 1893 } else if (cnt == 1) { i40e_dbg_command_write() 1896 } else if (cnt == 2) { i40e_dbg_command_write() 1898 } else if (cnt > 3) { i40e_dbg_command_write() 1900 "nvm read: bad command string, cnt=%d\n", cnt); i40e_dbg_command_write() 1974 dev_info(&pf->pdev->dev, " fd current cnt"); i40e_dbg_command_write() 2060 int i, cnt; i40e_dbg_netdev_ops_write() local 2084 cnt = sscanf(&i40e_dbg_netdev_ops_buf[11], "%i", &vsi_seid); i40e_dbg_netdev_ops_write() 2085 if (cnt != 1) { i40e_dbg_netdev_ops_write() 2108 cnt = sscanf(&i40e_dbg_netdev_ops_buf[11], "%i %i", i40e_dbg_netdev_ops_write() 2110 if (cnt != 2) { i40e_dbg_netdev_ops_write() 2131 cnt = sscanf(&i40e_dbg_netdev_ops_buf[11], "%i", &vsi_seid); i40e_dbg_netdev_ops_write() 2132 if (cnt != 1) { i40e_dbg_netdev_ops_write() 2152 cnt = sscanf(&i40e_dbg_netdev_ops_buf[4], "%i", &vsi_seid); i40e_dbg_netdev_ops_write() 2153 if (cnt != 1) { i40e_dbg_netdev_ops_write()
|
H A D | i40e_hmc.h | 45 u32 cnt; /* count of objects driver actually wants to create */ member in struct:i40e_hmc_obj_info 171 * @cnt: number of objects we're trying to create 178 #define I40E_FIND_SD_INDEX_LIMIT(hmc_info, type, index, cnt, sd_idx, sd_limit)\ 183 fpm_limit = fpm_addr + (hmc_info)->hmc_obj[(type)].size * (cnt);\ 195 * @cnt: number of objects we're trying to create 202 #define I40E_FIND_PD_INDEX_LIMIT(hmc_info, type, idx, cnt, pd_index, pd_limit)\ 207 fpm_limit = fpm_adr + (hmc_info)->hmc_obj[(type)].size * (cnt); \
|
H A D | i40e_lan_hmc.c | 122 full_obj->cnt = 0; i40e_init_lan_hmc() 129 obj->cnt = txq_num; i40e_init_lan_hmc() 144 full_obj->cnt += obj->cnt; i40e_init_lan_hmc() 149 obj->cnt = rxq_num; i40e_init_lan_hmc() 151 (hw->hmc.hmc_obj[I40E_HMC_LAN_TX].cnt * i40e_init_lan_hmc() 167 full_obj->cnt += obj->cnt; i40e_init_lan_hmc() 172 obj->cnt = fcoe_cntx_num; i40e_init_lan_hmc() 174 (hw->hmc.hmc_obj[I40E_HMC_LAN_RX].cnt * i40e_init_lan_hmc() 190 full_obj->cnt += obj->cnt; i40e_init_lan_hmc() 195 obj->cnt = fcoe_filt_num; i40e_init_lan_hmc() 197 (hw->hmc.hmc_obj[I40E_HMC_FCOE_CTX].cnt * i40e_init_lan_hmc() 213 full_obj->cnt += obj->cnt; i40e_init_lan_hmc() 329 if (info->start_idx >= info->hmc_info->hmc_obj[info->rsrc_type].cnt) { i40e_create_lan_hmc_object() 336 info->hmc_info->hmc_obj[info->rsrc_type].cnt) { i40e_create_lan_hmc_object() 512 wr32(hw, I40E_GLHMC_LANTXCNT(hmc_fn_id), obj->cnt); i40e_configure_lan_hmc() 518 wr32(hw, I40E_GLHMC_LANRXCNT(hmc_fn_id), obj->cnt); i40e_configure_lan_hmc() 524 wr32(hw, I40E_GLHMC_FCOEDDPCNT(hmc_fn_id), obj->cnt); i40e_configure_lan_hmc() 530 wr32(hw, I40E_GLHMC_FCOEFCNT(hmc_fn_id), obj->cnt); i40e_configure_lan_hmc() 582 if (info->start_idx >= info->hmc_info->hmc_obj[info->rsrc_type].cnt) { i40e_delete_lan_hmc_object() 590 info->hmc_info->hmc_obj[info->rsrc_type].cnt) { i40e_delete_lan_hmc_object() 1032 if (obj_idx >= hmc_info->hmc_obj[rsrc_type].cnt) { i40e_hmc_get_object_va()
|
/linux-4.1.27/drivers/staging/rtl8723au/include/ |
H A D | usb_ops_linux.h | 24 int rtl8723au_read_port(struct rtw_adapter *adapter, u32 cnt, 27 int rtl8723au_write_port(struct rtw_adapter *padapter, u32 addr, u32 cnt,
|
/linux-4.1.27/drivers/gpu/drm/msm/ |
H A D | msm_mmu.h | 24 int (*attach)(struct msm_mmu *mmu, const char **names, int cnt); 25 void (*detach)(struct msm_mmu *mmu, const char **names, int cnt);
|
/linux-4.1.27/drivers/usb/storage/ |
H A D | protocol.c | 138 unsigned int cnt = 0; usb_stor_access_xfer_buf() local 152 return cnt; usb_stor_access_xfer_buf() 154 while (sg_miter_next(&miter) && cnt < buflen) { usb_stor_access_xfer_buf() 156 buflen - cnt); usb_stor_access_xfer_buf() 159 memcpy(buffer + cnt, miter.addr, len); usb_stor_access_xfer_buf() 161 memcpy(miter.addr, buffer + cnt, len); usb_stor_access_xfer_buf() 170 cnt += len; usb_stor_access_xfer_buf() 174 return cnt; usb_stor_access_xfer_buf()
|
/linux-4.1.27/arch/mips/include/asm/octeon/ |
H A D | cvmx-stxx-defs.h | 76 uint64_t cnt:32; member in struct:cvmx_stxx_bckprs_cnt::cvmx_stxx_bckprs_cnt_s 78 uint64_t cnt:32; 327 uint64_t cnt:32; member in struct:cvmx_stxx_stat_bytes_hi::cvmx_stxx_stat_bytes_hi_s 329 uint64_t cnt:32; 344 uint64_t cnt:32; member in struct:cvmx_stxx_stat_bytes_lo::cvmx_stxx_stat_bytes_lo_s 346 uint64_t cnt:32; 380 uint64_t cnt:32; member in struct:cvmx_stxx_stat_pkt_xmt::cvmx_stxx_stat_pkt_xmt_s 382 uint64_t cnt:32;
|
/linux-4.1.27/arch/mips/sgi-ip22/ |
H A D | ip22-mc.c | 51 int i, j, found, cnt = 0; probe_memory() local 61 bank[cnt].size = get_bank_size(tmp); probe_memory() 62 bank[cnt].addr = get_bank_addr(tmp); probe_memory() 64 i, bank[cnt].size / 1024 / 1024, bank[cnt].addr); probe_memory() 65 cnt++; probe_memory() 73 for (i = 1; i < cnt; i++) probe_memory() 86 for (i = 0; i < cnt; i++) { probe_memory()
|
/linux-4.1.27/arch/c6x/kernel/ |
H A D | c6x_ksyms.c | 53 extern void __c6xabi_strasgi(int *dst, const int *src, unsigned cnt); 62 extern void __c6xabi_strasgi_64plus(int *dst, const int *src, unsigned cnt);
|
/linux-4.1.27/arch/cris/include/arch-v32/mach-a3/mach/hwregs/ |
H A D | timer_defs.h | 123 unsigned int cnt : 8; member in struct:__anon1210 130 unsigned int cnt : 8; member in struct:__anon1211 169 unsigned int cnt : 8; member in struct:__anon1215 179 unsigned int cnt : 8; member in struct:__anon1216 189 unsigned int cnt : 1; member in struct:__anon1217 200 unsigned int cnt : 1; member in struct:__anon1218 211 unsigned int cnt : 1; member in struct:__anon1219 221 unsigned int cnt : 1; member in struct:__anon1220
|
/linux-4.1.27/arch/cris/include/arch-v32/mach-fs/mach/hwregs/ |
H A D | timer_defs.h | 126 unsigned int cnt : 8; member in struct:__anon1358 133 unsigned int cnt : 8; member in struct:__anon1359 172 unsigned int cnt : 8; member in struct:__anon1363 182 unsigned int cnt : 8; member in struct:__anon1364 192 unsigned int cnt : 1; member in struct:__anon1365 203 unsigned int cnt : 1; member in struct:__anon1366 214 unsigned int cnt : 1; member in struct:__anon1367 224 unsigned int cnt : 1; member in struct:__anon1368
|
/linux-4.1.27/sound/oss/ |
H A D | pas2_pcm.c | 245 unsigned long flags, cnt; pas_audio_output_block() local 247 cnt = count; pas_audio_output_block() 249 cnt >>= 1; pas_audio_output_block() 253 cnt == pcm_count) pas_audio_output_block() 290 int cnt; pas_audio_start_input() local 292 cnt = count; pas_audio_start_input() 294 cnt >>= 1; pas_audio_start_input() 298 cnt == pcm_count) pas_audio_start_input()
|
/linux-4.1.27/drivers/net/fddi/skfp/ |
H A D | hwt.c | 65 u_short cnt ; hwt_start() local 73 cnt = (u_short)time ; hwt_start() 78 if (!cnt) hwt_start() 79 cnt++ ; hwt_start() 81 outpd(ADDR(B2_TI_INI), (u_long) cnt * 200) ; /* Load timer value. */ hwt_start()
|
/linux-4.1.27/arch/mips/loongson/loongson-3/ |
H A D | hpet.c | 135 unsigned int cnt; hpet_next_event() local 138 cnt = hpet_read(HPET_COUNTER); hpet_next_event() 139 cnt += delta; hpet_next_event() 140 hpet_write(HPET_T0_CMP, cnt); hpet_next_event() 142 res = ((int)(hpet_read(HPET_COUNTER) - cnt) > 0) ? -ETIME : 0; hpet_next_event()
|
/linux-4.1.27/arch/mips/sgi-ip27/ |
H A D | ip27-timer.c | 58 unsigned long cnt; rt_next_event() local 60 cnt = LOCAL_HUB_L(PI_RT_COUNT); rt_next_event() 61 cnt += delta; rt_next_event() 62 LOCAL_HUB_S(PI_RT_COMPARE_A + PI_COUNT_OFFSET * slice, cnt); rt_next_event() 64 return LOCAL_HUB_L(PI_RT_COUNT) >= cnt ? -ETIME : 0; rt_next_event()
|
/linux-4.1.27/drivers/spi/ |
H A D | spi-sun6i.c | 70 #define SUN6I_BURST_CNT(cnt) ((cnt) & 0xffffff) 73 #define SUN6I_XMIT_CNT(cnt) ((cnt) & 0xffffff) 76 #define SUN6I_BURST_CTL_CNT_STC(cnt) ((cnt) & 0xffffff) 107 u32 reg, cnt; sun6i_spi_drain_fifo() local 113 cnt = reg >> SUN6I_FIFO_STA_RF_CNT_BITS; sun6i_spi_drain_fifo() 115 if (len > cnt) sun6i_spi_drain_fifo() 116 len = cnt; sun6i_spi_drain_fifo()
|
/linux-4.1.27/fs/ubifs/ |
H A D | tnc_commit.c | 333 * @cnt: number of znodes to commit 335 * This function returns the number of empty LEBs needed to commit @cnt znodes 339 static int get_leb_cnt(struct ubifs_info *c, int cnt) get_leb_cnt() argument 344 cnt -= (c->leb_size - c->ihead_offs) / c->max_idx_node_sz; get_leb_cnt() 345 if (cnt < 0) get_leb_cnt() 346 cnt = 0; get_leb_cnt() 348 return DIV_ROUND_UP(cnt, d); get_leb_cnt() 354 * @cnt: number of dirty znodes to commit. 361 static int layout_in_gaps(struct ubifs_info *c, int cnt) layout_in_gaps() argument 365 dbg_gc("%d znodes to write", cnt); layout_in_gaps() 395 cnt -= written; layout_in_gaps() 396 leb_needed_cnt = get_leb_cnt(c, cnt); layout_in_gaps() 397 dbg_gc("%d znodes remaining, need %d LEBs, have %d", cnt, layout_in_gaps() 543 * @cnt: number of znodes to commit 552 static int layout_commit(struct ubifs_info *c, int no_space, int cnt) layout_commit() argument 557 err = layout_in_gaps(c, cnt); layout_commit() 629 int cnt = 0; get_znodes_to_commit() local 637 cnt += 1; get_znodes_to_commit() 649 cnt += 1; get_znodes_to_commit() 651 dbg_cmt("committing %d znodes", cnt); get_znodes_to_commit() 652 ubifs_assert(cnt == atomic_long_read(&c->dirty_zn_cnt)); get_znodes_to_commit() 653 return cnt; get_znodes_to_commit() 659 * @cnt: number of znodes to commit 665 static int alloc_idx_lebs(struct ubifs_info *c, int cnt) alloc_idx_lebs() argument 671 leb_cnt = get_leb_cnt(c, cnt); alloc_idx_lebs() 742 int err = 0, cnt; ubifs_tnc_start_commit() local 748 cnt = get_znodes_to_commit(c); ubifs_tnc_start_commit() 749 if (cnt != 0) { ubifs_tnc_start_commit() 752 err = alloc_idx_lebs(c, cnt); ubifs_tnc_start_commit() 757 err = layout_commit(c, no_space, cnt); ubifs_tnc_start_commit()
|
/linux-4.1.27/drivers/gpu/drm/ast/ |
H A D | ast_post.c | 626 u32 gold_sadj[2], dllmin[16], dllmax[16], dlli, data, cnt, mask, passcnt, retry = 0; finetuneDQI_L() local 629 for (cnt = 0; cnt < 16; cnt++) { finetuneDQI_L() 630 dllmin[cnt] = 0xff; finetuneDQI_L() 631 dllmax[cnt] = 0x0; finetuneDQI_L() 640 for (cnt = 0; cnt < 16; cnt++) { finetuneDQI_L() 642 if (dllmin[cnt] > dlli) { finetuneDQI_L() 643 dllmin[cnt] = dlli; finetuneDQI_L() 645 if (dllmax[cnt] < dlli) { finetuneDQI_L() 646 dllmax[cnt] = dlli; finetuneDQI_L() 658 for (cnt = 0; cnt < 16; cnt++) { finetuneDQI_L() 659 if ((dllmax[cnt] > dllmin[cnt]) && ((dllmax[cnt] - dllmin[cnt]) >= CBR_THRESHOLD2)) { finetuneDQI_L() 660 gold_sadj[0] += dllmin[cnt]; finetuneDQI_L() 675 for (cnt = 0; cnt < 8; cnt++) { finetuneDQI_L() 677 if ((dllmax[cnt] > dllmin[cnt]) && ((dllmax[cnt] - dllmin[cnt]) >= CBR_THRESHOLD2)) { finetuneDQI_L() 678 dlli = dllmin[cnt]; finetuneDQI_L() 697 for (cnt = 8; cnt < 16; cnt++) { finetuneDQI_L() 699 if ((dllmax[cnt] > dllmin[cnt]) && ((dllmax[cnt] - dllmin[cnt]) >= CBR_THRESHOLD2)) { finetuneDQI_L() 700 dlli = dllmin[cnt]; finetuneDQI_L()
|
/linux-4.1.27/drivers/net/ethernet/intel/i40evf/ |
H A D | i40e_hmc.h | 45 u32 cnt; /* count of objects driver actually wants to create */ member in struct:i40e_hmc_obj_info 171 * @cnt: number of objects we're trying to create 178 #define I40E_FIND_SD_INDEX_LIMIT(hmc_info, type, index, cnt, sd_idx, sd_limit)\ 183 fpm_limit = fpm_addr + (hmc_info)->hmc_obj[(type)].size * (cnt);\ 195 * @cnt: number of objects we're trying to create 202 #define I40E_FIND_PD_INDEX_LIMIT(hmc_info, type, idx, cnt, pd_index, pd_limit)\ 207 fpm_limit = fpm_adr + (hmc_info)->hmc_obj[(type)].size * (cnt); \
|
/linux-4.1.27/drivers/firmware/efi/ |
H A D | efi-pstore.c | 52 int cnt; efi_pstore_read_func() local 63 cb_data->type, &part, &cnt, &time, &data_type) == 5) { efi_pstore_read_func() 64 *cb_data->id = generic_id(time, part, cnt); efi_pstore_read_func() 65 *cb_data->count = cnt; efi_pstore_read_func() 73 cb_data->type, &part, &cnt, &time) == 4) { efi_pstore_read_func() 74 *cb_data->id = generic_id(time, part, cnt); efi_pstore_read_func() 75 *cb_data->count = cnt; efi_pstore_read_func()
|
/linux-4.1.27/drivers/block/rsxx/ |
H A D | dma.c | 34 u32 cnt; member in struct:rsxx_dma::__anon3633 130 if (dma->sub_page.cnt) get_dma_size() 131 return dma->sub_page.cnt << 9; get_dma_size() 261 int cnt = 0; rsxx_cleanup_dma_queue() local 269 cnt++; list_for_each_entry_safe() 272 return cnt; 360 int cnt; dma_engine_stalled() local 384 cnt = rsxx_cleanup_dma_queue(ctrl, &ctrl->queue, COMPLETE_DMA); dma_engine_stalled() 387 cnt += rsxx_dma_cancel(ctrl); dma_engine_stalled() 389 if (cnt) dma_engine_stalled() 392 cnt, ctrl->id); dma_engine_stalled() 456 dma->pg_off, dma->sub_page.cnt << 9, dir); rsxx_issue_dmas() 469 ((dma->sub_page.cnt & 0x7) << 4) | rsxx_issue_dmas() 554 "(laddr x%x tag %d st: x%x cnt: x%04x) from idx %d.\n", rsxx_dma_done() 630 dma->sub_page.cnt = 0; rsxx_queue_discard() 663 dma->sub_page.cnt = (dma_len >> 9); rsxx_queue_dma() 670 "Queuing[%c] laddr %x off %d cnt %d page %p pg_off %d\n", rsxx_queue_dma() 672 dma->sub_page.cnt, dma->page, dma->pg_off); rsxx_queue_dma() 799 dev_crit(&dev->dev, "Failed reading status cnt x%x\n", rsxx_hw_buffers_init() 808 dev_crit(&dev->dev, "Failed reading cmd cnt x%x\n", rsxx_hw_buffers_init() 982 int cnt = 0; rsxx_dma_cancel() local 991 cnt++; rsxx_dma_cancel() 995 return cnt; rsxx_dma_cancel() 1039 int cnt; rsxx_eeh_save_issued_dmas() local 1050 cnt = 0; rsxx_eeh_save_issued_dmas() 1073 cnt++; rsxx_eeh_save_issued_dmas() 1079 atomic_sub(cnt, &card->ctrl[i].stats.hw_q_depth); rsxx_eeh_save_issued_dmas() 1080 card->ctrl[i].stats.sw_q_depth += cnt; rsxx_eeh_save_issued_dmas()
|
/linux-4.1.27/fs/nilfs2/ |
H A D | direct.c | 70 int ret, cnt; nilfs_direct_lookup_contig() local 87 for (cnt = 1; cnt < maxblocks && nilfs_direct_lookup_contig() 88 (ptr2 = nilfs_direct_get_ptr(direct, key + cnt)) != nilfs_direct_lookup_contig() 90 cnt++) { nilfs_direct_lookup_contig() 97 if (ptr2 != ptr + cnt) nilfs_direct_lookup_contig() 101 return cnt; nilfs_direct_lookup_contig()
|
/linux-4.1.27/drivers/scsi/ufs/ |
H A D | ufshcd-pltfrm.c | 59 int cnt; ufshcd_parse_clock_info() local 74 cnt = of_property_count_strings(np, "clock-names"); ufshcd_parse_clock_info() 75 if (!cnt || (cnt == -EINVAL)) { ufshcd_parse_clock_info() 78 } else if (cnt < 0) { ufshcd_parse_clock_info() 80 __func__, cnt); ufshcd_parse_clock_info() 81 ret = cnt; ufshcd_parse_clock_info() 84 if (cnt <= 0) ufshcd_parse_clock_info() 96 if (sz != 2 * cnt) { ufshcd_parse_clock_info()
|
/linux-4.1.27/scripts/kconfig/ |
H A D | conf.c | 267 int cnt, def; conf_choice() local 271 cnt = def = 0; conf_choice() 280 cnt++; conf_choice() 282 def = cnt; conf_choice() 286 printf(" %d. %s", cnt, _(menu_get_prompt(child))); conf_choice() 294 if (cnt == 1) { conf_choice() 298 printf("[1-%d", cnt); conf_choice() 306 cnt = def; conf_choice() 307 printf("%d\n", cnt); conf_choice() 321 cnt = def; conf_choice() 323 cnt = atoi(line); conf_choice() 335 if (!--cnt) conf_choice()
|
/linux-4.1.27/mm/ |
H A D | memblock.c | 36 .memory.cnt = 1, /* empty dummy entry */ 40 .reserved.cnt = 1, /* empty dummy entry */ 45 .physmem.cnt = 1, /* empty dummy entry */ 93 for (i = 0; i < type->cnt; i++) { memblock_overlaps_region() 100 return (i < type->cnt) ? i : -1; memblock_overlaps_region() 263 (type->cnt - (r + 1)) * sizeof(type->regions[r])); memblock_remove_region() 264 type->cnt--; memblock_remove_region() 267 if (type->cnt == 0) { memblock_remove_region() 269 type->cnt = 1; memblock_remove_region() 432 /* cnt never goes below 1 */ memblock_merge_regions() 433 while (i < type->cnt - 1) { memblock_merge_regions() 448 memmove(next, next + 1, (type->cnt - (i + 2)) * sizeof(*next)); memblock_merge_regions() 449 type->cnt--; memblock_merge_regions() 472 BUG_ON(type->cnt >= type->max); memblock_insert_region() 473 memmove(rgn + 1, rgn, (type->cnt - idx) * sizeof(*rgn)); memblock_insert_region() 478 type->cnt++; memblock_insert_region() 512 WARN_ON(type->cnt != 1 || type->total_size); memblock_add_range() 529 for (i = 0; i < type->cnt; i++) { memblock_add_range() 566 while (type->cnt + nr_new > type->max) memblock_add_range() 632 while (type->cnt + 2 > type->max) memblock_isolate_range() 636 for (i = 0; i < type->cnt; i++) { memblock_isolate_range() 819 for (; idx_a < type_a->cnt; idx_a++) { __next_mem_range() 847 for (; idx_b < type_b->cnt + 1; idx_b++) { __next_mem_range() 854 r_end = idx_b < type_b->cnt ? __next_mem_range() 919 idx_a = type_a->cnt - 1; __next_mem_range_rev() 920 idx_b = type_b->cnt; __next_mem_range_rev() 958 r_end = idx_b < type_b->cnt ? __next_mem_range_rev() 999 while (++*idx < type->cnt) { __next_mem_pfn_range() 1007 if (*idx >= type->cnt) { __next_mem_pfn_range() 1358 int idx = memblock.memory.cnt - 1; memblock_end_of_DRAM() 1389 unsigned int left = 0, right = type->cnt; memblock_search() 1511 pr_info(" %s.cnt = 0x%lx\n", name, type->cnt); memblock_dump() 1513 for (i = 0; i < type->cnt; i++) { memblock_dump() 1562 for (i = 0; i < type->cnt; i++) { memblock_debug_show()
|
/linux-4.1.27/drivers/input/misc/ |
H A D | uinput.c | 313 unsigned int cnt; uinput_validate_absbits() local 323 for (cnt = 0; cnt < ABS_CNT; cnt++) { uinput_validate_absbits() 325 if (!test_bit(cnt, dev->absbit)) uinput_validate_absbits() 328 min = input_abs_get_min(dev, cnt); uinput_validate_absbits() 329 max = input_abs_get_max(dev, cnt); uinput_validate_absbits() 334 UINPUT_NAME, cnt, uinput_validate_absbits() 335 input_abs_get_min(dev, cnt), uinput_validate_absbits() 336 input_abs_get_max(dev, cnt)); uinput_validate_absbits() 340 if (input_abs_get_flat(dev, cnt) > uinput_validate_absbits() 341 input_abs_get_max(dev, cnt) - input_abs_get_min(dev, cnt)) { uinput_validate_absbits() 345 UINPUT_NAME, cnt, uinput_validate_absbits() 346 input_abs_get_flat(dev, cnt), uinput_validate_absbits() 347 input_abs_get_min(dev, cnt), uinput_validate_absbits() 348 input_abs_get_max(dev, cnt)); uinput_validate_absbits()
|
/linux-4.1.27/drivers/mtd/nand/ |
H A D | sunxi_nand.c | 421 int cnt; sunxi_nfc_read_buf() local 426 cnt = min(len - offs, NFC_SRAM_SIZE); sunxi_nfc_read_buf() 432 writel(cnt, nfc->regs + NFC_REG_CNT); sunxi_nfc_read_buf() 442 cnt); sunxi_nfc_read_buf() 443 offs += cnt; sunxi_nfc_read_buf() 454 int cnt; sunxi_nfc_write_buf() local 459 cnt = min(len - offs, NFC_SRAM_SIZE); sunxi_nfc_write_buf() 465 writel(cnt, nfc->regs + NFC_REG_CNT); sunxi_nfc_write_buf() 466 memcpy_toio(nfc->regs + NFC_RAM0_BASE, buf + offs, cnt); sunxi_nfc_write_buf() 475 offs += cnt; sunxi_nfc_write_buf() 536 int cnt; sunxi_nfc_hw_ecc_read_page() local 591 cnt = ecc->layout->oobfree[ecc->steps].length; sunxi_nfc_hw_ecc_read_page() 592 if (cnt > 0) { sunxi_nfc_hw_ecc_read_page() 597 chip->read_buf(mtd, chip->oob_poi + offset, cnt); sunxi_nfc_hw_ecc_read_page() 621 int cnt; sunxi_nfc_hw_ecc_write_page() local 658 cnt = ecc->layout->oobfree[i].length; sunxi_nfc_hw_ecc_write_page() 659 if (cnt > 0) { sunxi_nfc_hw_ecc_write_page() 664 chip->write_buf(mtd, chip->oob_poi + offset, cnt); sunxi_nfc_hw_ecc_write_page() 688 int cnt; sunxi_nfc_hw_syndrome_ecc_read_page() local 731 cnt = mtd->oobsize - (oob - chip->oob_poi); sunxi_nfc_hw_syndrome_ecc_read_page() 732 if (cnt > 0) { sunxi_nfc_hw_syndrome_ecc_read_page() 734 chip->read_buf(mtd, oob, cnt); sunxi_nfc_hw_syndrome_ecc_read_page() 755 int cnt; sunxi_nfc_hw_syndrome_ecc_write_page() local 787 cnt = mtd->oobsize - (oob - chip->oob_poi); sunxi_nfc_hw_syndrome_ecc_write_page() 788 if (cnt > 0) { sunxi_nfc_hw_syndrome_ecc_write_page() 790 chip->write_buf(mtd, oob, cnt); sunxi_nfc_hw_syndrome_ecc_write_page()
|
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/ |
H A D | mlx4_en.h | 176 #define INC_PERF_COUNTER(cnt) (++(cnt)) 177 #define ADD_PERF_COUNTER(cnt, add) ((cnt) += (add)) 178 #define AVG_PERF_COUNTER(cnt, sample) \ 179 ((cnt) = ((cnt) * (AVG_SIZE - 1) + (sample) * AVG_FACTOR) / AVG_SIZE) 180 #define GET_PERF_COUNTER(cnt) (cnt) 181 #define GET_AVG_PERF_COUNTER(cnt) ((cnt) / AVG_FACTOR) 185 #define INC_PERF_COUNTER(cnt) do {} while (0) 186 #define ADD_PERF_COUNTER(cnt, add) do {} while (0) 187 #define AVG_PERF_COUNTER(cnt, sample) do {} while (0) 188 #define GET_PERF_COUNTER(cnt) (0) 189 #define GET_AVG_PERF_COUNTER(cnt) (0)
|
/linux-4.1.27/drivers/scsi/qla4xxx/ |
H A D | ql4_dbg.c | 15 uint32_t cnt; qla4xxx_dump_buffer() local 22 for (cnt = 0; cnt < size; c++) { qla4xxx_dump_buffer() 24 if (!(++cnt % 16)) qla4xxx_dump_buffer()
|
/linux-4.1.27/drivers/gpu/drm/exynos/ |
H A D | exynos_drm_fb.h | 30 unsigned int cnt);
|
/linux-4.1.27/fs/xfs/ |
H A D | xfs_fsops.h | 24 extern int xfs_fs_counts(xfs_mount_t *mp, xfs_fsop_counts_t *cnt);
|
/linux-4.1.27/include/uapi/linux/ |
H A D | map_to_7segment.h | 51 * static ssize_t store_map(struct device *dev, const char *buf, size_t cnt) { 52 * if(cnt != sizeof(map_seg7)) 54 * memcpy(&map_seg7, buf, cnt); 55 * return cnt;
|
/linux-4.1.27/arch/arm64/kernel/vdso/ |
H A D | gettimeofday.S | 39 .macro seqcnt_read, cnt 41 ldr \cnt, [vdso_data, #VDSO_TB_SEQ_COUNT] 44 .macro seqcnt_check, cnt, fail 45 cmp \cnt, seqcnt
|
/linux-4.1.27/net/dccp/ |
H A D | probe.c | 120 int error = 0, cnt = 0; dccpprobe_read() local 138 cnt = kfifo_out_locked(&dccpw.fifo, tbuf, len, &dccpw.lock); dccpprobe_read() 139 error = copy_to_user(buf, tbuf, cnt) ? -EFAULT : 0; dccpprobe_read() 144 return error ? error : cnt; dccpprobe_read()
|