/linux-4.4.14/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.4.14/include/linux/ |
H A D | bottom_half.h | 7 extern void __local_bh_disable_ip(unsigned long ip, unsigned int cnt); 9 static __always_inline void __local_bh_disable_ip(unsigned long ip, unsigned int cnt) __local_bh_disable_ip() argument 11 preempt_count_add(cnt); __local_bh_disable_ip() 22 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.4.14/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 | 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 | rammap.h | 6 u8 *cnt, u8 *len, u8 *snr, u8 *ssz); 9 u8 *ver, u8 *hdr, u8 *cnt, u8 *len); 13 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_ramcfg *); 15 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_ramcfg *);
|
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 | 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 | volt.h | 24 u16 nvbios_volt_table(struct nvkm_bios *, u8 *ver, u8 *hdr, u8 *cnt, u8 *len); 25 u16 nvbios_volt_parse(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 | pmu.h | 6 u32 nvbios_pmuTe(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 | 41 u16 dcb_gpio_table(struct nvkm_bios *, u8 *ver, u8 *hdr, u8 *cnt, u8 *len);
|
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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() 330 chain->nr = min(sz, thread->ts->cnt + 1); thread_stack__sample() 335 chain->ips[i] = thread->ts->stack[thread->ts->cnt - i].ret_addr; thread_stack__sample() 476 if (ts->cnt == ts->sz) { thread_stack__push_cp() 482 tse = &ts->stack[ts->cnt++]; thread_stack__push_cp() 499 if (!ts->cnt) thread_stack__pop_cp() 502 if (ts->cnt == 1) { thread_stack__pop_cp() 506 return thread_stack__call_return(thread, ts, --ts->cnt, thread_stack__pop_cp() 510 if (ts->stack[ts->cnt - 1].ret_addr == ret_addr) { thread_stack__pop_cp() 511 return thread_stack__call_return(thread, ts, --ts->cnt, thread_stack__pop_cp() 514 size_t i = ts->cnt - 1; thread_stack__pop_cp() 520 while (ts->cnt > i) { thread_stack__pop_cp() 522 --ts->cnt, thread_stack__pop_cp() 528 return thread_stack__call_return(thread, ts, --ts->cnt, thread_stack__pop_cp() 579 err = thread_stack__call_return(thread, ts, --ts->cnt, thread_stack__no_call_return() 587 if (!ts->cnt) { thread_stack__no_call_return() 599 err = thread_stack__call_return(thread, ts, --ts->cnt, thread_stack__no_call_return() 607 if (ts->cnt) thread_stack__no_call_return() 608 parent = ts->stack[ts->cnt - 1].cp; thread_stack__no_call_return() 634 if (!ts->cnt) thread_stack__trace_begin() 638 tse = &ts->stack[ts->cnt - 1]; thread_stack__trace_begin() 640 err = thread_stack__call_return(thread, ts, --ts->cnt, thread_stack__trace_begin() 657 if (!ts->cnt || (ts->cnt == 1 && ts->stack[0].ref == ref)) thread_stack__trace_end() 660 cp = call_path__findnew(cpr, ts->stack[ts->cnt - 1].cp, NULL, 0, thread_stack__trace_end() 707 if (!ts->cnt) { thread_stack__process() 729 cp = call_path__findnew(cpr, ts->stack[ts->cnt - 1].cp, thread_stack__process()
|
H A D | strbuf.c | 124 ssize_t cnt; strbuf_read() local 126 cnt = read(fd, sb->buf + sb->len, sb->alloc - sb->len - 1); strbuf_read() 127 if (cnt < 0) { strbuf_read() 134 if (!cnt) strbuf_read() 136 sb->len += cnt; strbuf_read()
|
H A D | help.h | 6 size_t cnt; member in struct:cmdnames
|
/linux-4.4.14/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.4.14/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() 118 unsigned int cnt; c0_compare_int_usable() local 128 cnt = read_c0_count(); c0_compare_int_usable() 129 write_c0_compare(cnt); c0_compare_int_usable() 131 while (read_c0_count() < (cnt + COMPARE_INT_SEEN_TICKS)) c0_compare_int_usable() 139 cnt = read_c0_count(); c0_compare_int_usable() 140 cnt += delta; c0_compare_int_usable() 141 write_c0_compare(cnt); c0_compare_int_usable() 143 if ((int)(read_c0_count() - cnt) < 0) c0_compare_int_usable() 148 while ((int)(read_c0_count() - cnt) <= 0) c0_compare_int_usable() 151 while (read_c0_count() < (cnt + COMPARE_INT_SEEN_TICKS)) c0_compare_int_usable() 156 cnt = read_c0_count(); c0_compare_int_usable() 157 write_c0_compare(cnt); c0_compare_int_usable() 159 while (read_c0_count() < (cnt + COMPARE_INT_SEEN_TICKS)) c0_compare_int_usable()
|
/linux-4.4.14/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.4.14/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 ch++, 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() 589 ad7280_attributes[cnt] = ad7280_attr_init() 590 &st->iio_attr[cnt].dev_attr.attr; ad7280_attr_init() 593 ad7280_attributes[cnt] = NULL; ad7280_attr_init()
|
/linux-4.4.14/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() 555 int pvr2_stream_set_buffer_count(struct pvr2_stream *sp,unsigned int cnt) pvr2_stream_set_buffer_count() argument 558 if (sp->buffer_target_count == cnt) return 0; pvr2_stream_set_buffer_count() 561 sp->buffer_target_count = cnt; pvr2_stream_set_buffer_count() 651 int pvr2_buffer_set_buffer(struct pvr2_buffer *bp,void *ptr,unsigned int cnt) pvr2_buffer_set_buffer() argument 666 bp->max_count = cnt; pvr2_buffer_set_buffer() 670 " %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.4.14/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 = nvbios_rd08(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 = nvbios_rd08(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 = nvbios_rd08(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 = nvbios_rd08(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 = nvbios_rd08(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 = nvbios_rd08(bios, outp + 0x07) * nvbios_dpcfg_entry() 155 if (idx < *cnt) nvbios_dpcfg_entry() 163 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, nvbios_dpcfg_parse() 166 u16 data = nvbios_dpcfg_entry(bios, outp, idx, ver, hdr, cnt, len); nvbios_dpcfg_parse() 193 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, nvbios_dpcfg_match() 206 ver, hdr, cnt, len))) { nvbios_dpcfg_match() 213 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 162 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 192 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 = nvbios_rd08(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 = nvbios_rd08(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 = nvbios_rd08(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 = nvbios_rd08(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 = nvbios_rd08(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 = nvbios_rd08(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 | 30 u8 *cnt, u8 *len, u8 *snr, u8 *ssz) nvbios_perf_table() 42 *cnt = nvbios_rd08(bios, perf + 5); nvbios_perf_table() 49 *cnt = nvbios_rd08(bios, perf + 2); nvbios_perf_table() 65 *cnt = nvbios_rd08(bios, perf + 2); nvbios_perf_table() 79 u8 *ver, u8 *hdr, u8 *cnt, u8 *len) nvbios_perf_entry() 82 u16 perf = nvbios_perf_table(bios, ver, hdr, cnt, len, &snr, &ssz); nvbios_perf_entry() 83 if (perf && idx < *cnt) { nvbios_perf_entry() 86 *cnt = snr; nvbios_perf_entry() 95 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_perfE *info) nvbios_perfEp() 97 u16 perf = nvbios_perf_entry(bios, idx, ver, hdr, cnt, len); nvbios_perfEp() 157 u8 *ver, u8 *hdr, u8 cnt, u8 len) nvbios_perfSe() 160 if (idx < cnt) { nvbios_perfSe() 169 u8 *ver, u8 *hdr, u8 cnt, u8 len, nvbios_perfSp() 172 u32 data = nvbios_perfSe(bios, perfE, idx, ver, hdr, cnt, len); nvbios_perfSp() 188 u8 ver, hdr, cnt, len, snr, ssz; nvbios_perf_fan_parse() local 189 u16 perf = nvbios_perf_table(bios, &ver, &hdr, &cnt, &len, &snr, &ssz); nvbios_perf_fan_parse() 29 nvbios_perf_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz) nvbios_perf_table() argument 78 nvbios_perf_entry(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) nvbios_perf_entry() argument 94 nvbios_perfEp(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_perfE *info) nvbios_perfEp() argument 156 nvbios_perfSe(struct nvkm_bios *bios, u32 perfE, int idx, u8 *ver, u8 *hdr, u8 cnt, u8 len) nvbios_perfSe() argument 168 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 = nvbios_rd08(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 = nvbios_rd08(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 = nvbios_rd08(bios, data + 0x02); dcb_gpio_table() 50 *cnt = nvbios_rd08(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 = nvbios_rd08(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() 108 u8 cnt, len, idx = 0xff; nvbios_M0203Em() local 111 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 = nvbios_rd08(bios, timing + 2); nvbios_timingTe() 54 *cnt = nvbios_rd08(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 = nvbios_rd08(bios, volt + 2); nvbios_volt_table() 51 *cnt = nvbios_rd08(bios, volt + 2); nvbios_volt_table() 58 *cnt = nvbios_rd08(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() 119 u8 hdr, cnt; nvbios_volt_entry() local 120 u16 volt = nvbios_volt_table(bios, ver, &hdr, &cnt, len); nvbios_volt_entry() 121 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 = nvbios_rd08(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 = nvbios_rd08(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 = nvbios_rd08(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 | pll.c | 81 pll_limits_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) pll_limits_table() argument 91 *cnt = nvbios_rd08(bios, data + 3); pll_limits_table() 101 *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 | pmu.c | 45 nvbios_pmuTe(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) nvbios_pmuTe() argument 57 *cnt = nvbios_rd08(bios, data + 0x03); nvbios_pmuTe() 67 u8 cnt, len; nvbios_pmuEe() local 68 u32 data = nvbios_pmuTe(bios, ver, hdr, &cnt, &len); nvbios_pmuEe() 69 if (data && idx < cnt) { nvbios_pmuEe()
|
H A D | therm.c | 29 therm_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *len, u8 *cnt) therm_table() argument 52 *cnt = nvbios_rd08(bios, therm + 3); therm_table() 59 u8 hdr, cnt; nvbios_therm_entry() local 60 u16 therm = therm_table(bios, ver, &hdr, len, &cnt); nvbios_therm_entry() 61 if (therm && idx < cnt) nvbios_therm_entry()
|
H A D | rammap.c | 30 u8 *cnt, u8 *len, u8 *snr, u8 *ssz) nvbios_rammapTe() 45 *cnt = nvbios_rd08(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() 92 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_ramcfg *p) nvbios_rammapEp() 94 u32 data = nvbios_rammapEe(bios, idx, ver, hdr, cnt, len), temp; nvbios_rammapEp() 134 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_ramcfg *info) nvbios_rammapEm() 138 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 91 nvbios_rammapEp(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_ramcfg *p) nvbios_rammapEp() argument 133 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 | dcb.c | 28 dcb_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) dcb_table() argument 50 *cnt = nvbios_rd08(bios, dcb + 2); dcb_table() 59 *cnt = (i2c - dcb) / 8; dcb_table() 68 *cnt = (i2c - dcb) / 10; dcb_table() 101 u8 hdr, cnt; dcb_outp() local 102 u16 dcb = dcb_table(bios, ver, &hdr, &cnt, len); dcb_outp() 103 if (dcb && idx < cnt) dcb_outp()
|
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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() 909 int cnt; dqinit_needed() local 917 for (cnt = 0; cnt < MAXQUOTAS; cnt++) dqinit_needed() 918 if (!dquots[cnt]) dqinit_needed() 1400 int cnt, init_needed = 0; __dquot_initialize() local 1412 for (cnt = 0; cnt < MAXQUOTAS; cnt++) { __dquot_initialize() 1418 if (type != -1 && cnt != type) __dquot_initialize() 1425 if (dquots[cnt]) __dquot_initialize() 1428 if (!sb_has_quota_active(sb, cnt)) __dquot_initialize() 1433 switch (cnt) { __dquot_initialize() 1456 got[cnt] = dquot; __dquot_initialize() 1466 for (cnt = 0; cnt < MAXQUOTAS; cnt++) { __dquot_initialize() 1467 if (type != -1 && cnt != type) __dquot_initialize() 1470 if (!sb_has_quota_active(sb, cnt)) __dquot_initialize() 1473 if (!got[cnt]) __dquot_initialize() 1475 if (!dquots[cnt]) { __dquot_initialize() 1476 dquots[cnt] = got[cnt]; __dquot_initialize() 1477 got[cnt] = NULL; __dquot_initialize() 1484 dquot_resv_space(dquots[cnt], rsv); __dquot_initialize() 1512 int cnt; __dquot_drop() local 1517 for (cnt = 0; cnt < MAXQUOTAS; cnt++) { __dquot_drop() 1518 put[cnt] = dquots[cnt]; __dquot_drop() 1519 dquots[cnt] = NULL; __dquot_drop() 1528 int cnt; dquot_drop() local 1541 for (cnt = 0; cnt < MAXQUOTAS; cnt++) { dquot_drop() 1542 if (dquots[cnt]) dquot_drop() 1546 if (cnt < MAXQUOTAS) dquot_drop() 1641 int cnt, ret = 0, index; __dquot_alloc_space() local 1651 for (cnt = 0; cnt < MAXQUOTAS; cnt++) __dquot_alloc_space() 1652 warn[cnt].w_type = QUOTA_NL_NOWARN; __dquot_alloc_space() 1657 for (cnt = 0; cnt < MAXQUOTAS; cnt++) { __dquot_alloc_space() 1658 if (!dquots[cnt]) __dquot_alloc_space() 1660 ret = check_bdq(dquots[cnt], number, __dquot_alloc_space() 1661 !(flags & DQUOT_SPACE_WARN), &warn[cnt]); __dquot_alloc_space() 1667 for (cnt = 0; cnt < MAXQUOTAS; cnt++) { __dquot_alloc_space() 1668 if (!dquots[cnt]) __dquot_alloc_space() 1671 dquot_resv_space(dquots[cnt], number); __dquot_alloc_space() 1673 dquot_incr_space(dquots[cnt], number); __dquot_alloc_space() 1694 int cnt, ret = 0, index; dquot_alloc_inode() local 1700 for (cnt = 0; cnt < MAXQUOTAS; cnt++) dquot_alloc_inode() 1701 warn[cnt].w_type = QUOTA_NL_NOWARN; dquot_alloc_inode() 1706 for (cnt = 0; cnt < MAXQUOTAS; cnt++) { dquot_alloc_inode() 1707 if (!dquots[cnt]) dquot_alloc_inode() 1709 ret = check_idq(dquots[cnt], 1, &warn[cnt]); dquot_alloc_inode() 1714 for (cnt = 0; cnt < MAXQUOTAS; cnt++) { dquot_alloc_inode() 1715 if (!dquots[cnt]) dquot_alloc_inode() 1717 dquot_incr_inodes(dquots[cnt], 1); dquot_alloc_inode() 1736 int cnt, index; dquot_claim_space_nodirty() local 1747 for (cnt = 0; cnt < MAXQUOTAS; cnt++) { dquot_claim_space_nodirty() 1748 if (dquots[cnt]) dquot_claim_space_nodirty() 1749 dquot_claim_reserved_space(dquots[cnt], number); dquot_claim_space_nodirty() 1766 int cnt, index; dquot_reclaim_space_nodirty() local 1777 for (cnt = 0; cnt < MAXQUOTAS; cnt++) { dquot_reclaim_space_nodirty() 1778 if (dquots[cnt]) dquot_reclaim_space_nodirty() 1779 dquot_reclaim_reserved_space(dquots[cnt], number); dquot_reclaim_space_nodirty() 1795 unsigned int cnt; __dquot_free_space() local 1808 for (cnt = 0; cnt < MAXQUOTAS; cnt++) { __dquot_free_space() 1811 warn[cnt].w_type = QUOTA_NL_NOWARN; __dquot_free_space() 1812 if (!dquots[cnt]) __dquot_free_space() 1814 wtype = info_bdq_free(dquots[cnt], number); __dquot_free_space() 1816 prepare_warning(&warn[cnt], dquots[cnt], wtype); __dquot_free_space() 1818 dquot_free_reserved_space(dquots[cnt], number); __dquot_free_space() 1820 dquot_decr_space(dquots[cnt], number); __dquot_free_space() 1839 unsigned int cnt; dquot_free_inode() local 1850 for (cnt = 0; cnt < MAXQUOTAS; cnt++) { dquot_free_inode() 1853 warn[cnt].w_type = QUOTA_NL_NOWARN; dquot_free_inode() 1854 if (!dquots[cnt]) dquot_free_inode() 1856 wtype = info_idq_free(dquots[cnt], 1); dquot_free_inode() 1858 prepare_warning(&warn[cnt], dquots[cnt], wtype); dquot_free_inode() 1859 dquot_decr_inodes(dquots[cnt], 1); dquot_free_inode() 1885 int cnt, ret = 0; __dquot_transfer() local 1894 for (cnt = 0; cnt < MAXQUOTAS; cnt++) { __dquot_transfer() 1895 warn_to[cnt].w_type = QUOTA_NL_NOWARN; __dquot_transfer() 1896 warn_from_inodes[cnt].w_type = QUOTA_NL_NOWARN; __dquot_transfer() 1897 warn_from_space[cnt].w_type = QUOTA_NL_NOWARN; __dquot_transfer() 1909 for (cnt = 0; cnt < MAXQUOTAS; cnt++) { __dquot_transfer() 1913 if (!transfer_to[cnt]) __dquot_transfer() 1916 if (!sb_has_quota_active(inode->i_sb, cnt)) __dquot_transfer() 1918 is_valid[cnt] = 1; __dquot_transfer() 1919 transfer_from[cnt] = i_dquot(inode)[cnt]; __dquot_transfer() 1920 ret = check_idq(transfer_to[cnt], 1, &warn_to[cnt]); __dquot_transfer() 1923 ret = check_bdq(transfer_to[cnt], space, 0, &warn_to[cnt]); __dquot_transfer() 1931 for (cnt = 0; cnt < MAXQUOTAS; cnt++) { __dquot_transfer() 1932 if (!is_valid[cnt]) __dquot_transfer() 1935 if (transfer_from[cnt]) { __dquot_transfer() 1937 wtype = info_idq_free(transfer_from[cnt], 1); __dquot_transfer() 1939 prepare_warning(&warn_from_inodes[cnt], __dquot_transfer() 1940 transfer_from[cnt], wtype); __dquot_transfer() 1941 wtype = info_bdq_free(transfer_from[cnt], space); __dquot_transfer() 1943 prepare_warning(&warn_from_space[cnt], __dquot_transfer() 1944 transfer_from[cnt], wtype); __dquot_transfer() 1945 dquot_decr_inodes(transfer_from[cnt], 1); __dquot_transfer() 1946 dquot_decr_space(transfer_from[cnt], cur_space); __dquot_transfer() 1947 dquot_free_reserved_space(transfer_from[cnt], __dquot_transfer() 1951 dquot_incr_inodes(transfer_to[cnt], 1); __dquot_transfer() 1952 dquot_incr_space(transfer_to[cnt], cur_space); __dquot_transfer() 1953 dquot_resv_space(transfer_to[cnt], rsv_space); __dquot_transfer() 1955 i_dquot(inode)[cnt] = transfer_to[cnt]; __dquot_transfer() 1965 for (cnt = 0; cnt < MAXQUOTAS; cnt++) __dquot_transfer() 1966 if (is_valid[cnt]) __dquot_transfer() 1967 transfer_to[cnt] = transfer_from[cnt]; __dquot_transfer() 2066 int cnt, ret = 0; dquot_disable() local 2089 for (cnt = 0; cnt < MAXQUOTAS; cnt++) { dquot_disable() 2090 toputinode[cnt] = NULL; dquot_disable() 2091 if (type != -1 && cnt != type) dquot_disable() 2093 if (!sb_has_quota_loaded(sb, cnt)) dquot_disable() 2099 dquot_state_flag(DQUOT_SUSPENDED, cnt); dquot_disable() 2103 dqopt->flags &= ~dquot_state_flag(flags, cnt); dquot_disable() 2105 if (!sb_has_quota_loaded(sb, cnt) && dquot_disable() 2106 sb_has_quota_suspended(sb, cnt)) { dquot_disable() 2108 DQUOT_SUSPENDED, cnt); dquot_disable() 2110 iput(dqopt->files[cnt]); dquot_disable() 2111 dqopt->files[cnt] = NULL; dquot_disable() 2118 if (sb_has_quota_loaded(sb, cnt) && !(flags & DQUOT_SUSPENDED)) dquot_disable() 2122 drop_dquot_ref(sb, cnt); dquot_disable() 2123 invalidate_dquots(sb, cnt); dquot_disable() 2128 if (info_dirty(&dqopt->info[cnt])) dquot_disable() 2129 sb->dq_op->write_info(sb, cnt); dquot_disable() 2130 if (dqopt->ops[cnt]->free_file_info) dquot_disable() 2131 dqopt->ops[cnt]->free_file_info(sb, cnt); dquot_disable() 2132 put_quota_format(dqopt->info[cnt].dqi_format); dquot_disable() 2134 toputinode[cnt] = dqopt->files[cnt]; dquot_disable() 2135 if (!sb_has_quota_loaded(sb, cnt)) dquot_disable() 2136 dqopt->files[cnt] = NULL; dquot_disable() 2137 dqopt->info[cnt].dqi_flags = 0; dquot_disable() 2138 dqopt->info[cnt].dqi_igrace = 0; dquot_disable() 2139 dqopt->info[cnt].dqi_bgrace = 0; dquot_disable() 2140 dqopt->ops[cnt] = NULL; dquot_disable() 2158 for (cnt = 0; cnt < MAXQUOTAS; cnt++) dquot_disable() 2159 if (toputinode[cnt]) { dquot_disable() 2163 if (!sb_has_quota_loaded(sb, cnt)) { dquot_disable() 2164 mutex_lock(&toputinode[cnt]->i_mutex); dquot_disable() 2165 toputinode[cnt]->i_flags &= ~(S_IMMUTABLE | dquot_disable() 2167 truncate_inode_pages(&toputinode[cnt]->i_data, dquot_disable() 2169 mutex_unlock(&toputinode[cnt]->i_mutex); dquot_disable() 2170 mark_inode_dirty_sync(toputinode[cnt]); dquot_disable() 2177 for (cnt = 0; cnt < MAXQUOTAS; cnt++) dquot_disable() 2178 if (toputinode[cnt]) { dquot_disable() 2187 iput(toputinode[cnt]); dquot_disable() 2188 else if (!toputinode[cnt]->i_nlink) dquot_disable() 2326 int ret = 0, cnt; dquot_resume() local 2329 for (cnt = 0; cnt < MAXQUOTAS; cnt++) { dquot_resume() 2330 if (type != -1 && cnt != type) dquot_resume() 2334 if (!sb_has_quota_suspended(sb, cnt)) { dquot_resume() 2338 inode = dqopt->files[cnt]; dquot_resume() 2339 dqopt->files[cnt] = NULL; dquot_resume() 2343 cnt); dquot_resume() 2344 dqopt->flags &= ~dquot_state_flag(DQUOT_STATE_FLAGS, cnt); dquot_resume() 2348 flags = dquot_generic_flag(flags, cnt); dquot_resume() 2349 ret = vfs_load_quota_inode(inode, cnt, dquot_resume() 2350 dqopt->info[cnt].dqi_fmt_id, flags); dquot_resume()
|
/linux-4.4.14/drivers/staging/rtl8188eu/hal/ |
H A D | hal_com.c | 31 uint cnt = 0; dump_chip_info() local 34 cnt += sprintf((buf+cnt), "Chip Version Info: CHIP_8188E_"); dump_chip_info() 35 cnt += sprintf((buf+cnt), "%s_", IS_NORMAL_CHIP(chip_vers) ? dump_chip_info() 37 cnt += sprintf((buf+cnt), "%s_", IS_CHIP_VENDOR_TSMC(chip_vers) ? dump_chip_info() 40 cnt += sprintf((buf+cnt), "A_CUT_"); dump_chip_info() 42 cnt += sprintf((buf+cnt), "B_CUT_"); dump_chip_info() 44 cnt += sprintf((buf+cnt), "C_CUT_"); dump_chip_info() 46 cnt += sprintf((buf+cnt), "D_CUT_"); dump_chip_info() 48 cnt += sprintf((buf+cnt), "E_CUT_"); dump_chip_info() 50 cnt += sprintf((buf+cnt), "UNKNOWN_CUT(%d)_", dump_chip_info() 52 cnt += sprintf((buf+cnt), "1T1R_"); dump_chip_info() 53 cnt += sprintf((buf+cnt), "RomVer(0)\n"); dump_chip_info()
|
/linux-4.4.14/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.4.14/drivers/staging/rtl8712/ |
H A D | ieee80211.c | 376 uint cnt; r8712_get_sec_ie() local 379 cnt = (_TIMESTAMP_ + _BEACON_ITERVAL_ + _CAPABILITY_); r8712_get_sec_ie() 380 while (cnt < in_len) { r8712_get_sec_ie() 381 authmode = in_ie[cnt]; r8712_get_sec_ie() 383 (!memcmp(&in_ie[cnt + 2], &wpa_oui[0], 4))) { r8712_get_sec_ie() 384 memcpy(wpa_ie, &in_ie[cnt], in_ie[cnt + 1] + 2); r8712_get_sec_ie() 385 *wpa_len = in_ie[cnt + 1] + 2; r8712_get_sec_ie() 386 cnt += in_ie[cnt + 1] + 2; /*get next */ r8712_get_sec_ie() 389 memcpy(rsn_ie, &in_ie[cnt], r8712_get_sec_ie() 390 in_ie[cnt + 1] + 2); r8712_get_sec_ie() 391 *rsn_len = in_ie[cnt + 1] + 2; r8712_get_sec_ie() 392 cnt += in_ie[cnt + 1] + 2; /*get next*/ r8712_get_sec_ie() 394 cnt += in_ie[cnt + 1] + 2; /*get next*/ r8712_get_sec_ie() 404 uint cnt; r8712_get_wps_ie() local 407 cnt = 12; r8712_get_wps_ie() 409 while (cnt < in_len) { r8712_get_wps_ie() 410 eid = in_ie[cnt]; r8712_get_wps_ie() 412 (!memcmp(&in_ie[cnt + 2], wps_oui, 4))) { r8712_get_wps_ie() 413 memcpy(wps_ie, &in_ie[cnt], in_ie[cnt + 1] + 2); r8712_get_wps_ie() 414 *wps_ielen = in_ie[cnt + 1] + 2; r8712_get_wps_ie() 415 cnt += in_ie[cnt + 1] + 2; r8712_get_wps_ie() 419 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() 108 _read_mem(pintfhdl, addr, cnt, pmem); r8712_read_mem() 111 void r8712_write_mem(struct _adapter *adapter, u32 addr, u32 cnt, u8 *pmem) r8712_write_mem() argument 115 void (*_write_mem)(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, r8712_write_mem() 119 _write_mem(pintfhdl, addr, cnt, pmem); r8712_write_mem() 122 void r8712_read_port(struct _adapter *adapter, u32 addr, u32 cnt, u8 *pmem) r8712_read_port() argument 127 u32 (*_read_port)(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, r8712_read_port() 132 _read_port(pintfhdl, addr, cnt, pmem); r8712_read_port() 135 void r8712_write_port(struct _adapter *adapter, u32 addr, u32 cnt, u8 *pmem) r8712_write_port() argument 140 u32 (*_write_port)(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, r8712_write_port() 143 _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, 238 void r8712_read_mem(struct _adapter *adapter, u32 addr, u32 cnt, u8 *pmem); 239 void r8712_read_port(struct _adapter *adapter, u32 addr, u32 cnt, u8 *pmem); 243 void r8712_write_mem(struct _adapter *adapter, u32 addr, u32 cnt, u8 *pmem); 244 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.4.14/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.4.14/drivers/infiniband/hw/usnic/ |
H A D | usnic_vnic.c | 120 for (j = 0; j < chunk->cnt; j++) { usnic_vnic_dump() 140 u16 cnt) usnic_vnic_res_spec_update() 146 spec->resources[i].cnt = cnt; usnic_vnic_res_spec_update() 167 if (min_spec->resources[i].cnt > usnic_vnic_res_spec_satisfied() 168 res_spec->resources[i].cnt) usnic_vnic_res_spec_satisfied() 189 res_cnt = res_spec->resources[i].cnt; usnic_vnic_spec_dump() 208 res_cnt = res_spec->resources[i].cnt; usnic_vnic_check_room() 223 return vnic->chunks[type].cnt; usnic_vnic_res_cnt() 234 int cnt, void *owner) usnic_vnic_get_resources() 240 if (usnic_vnic_res_free_cnt(vnic, type) < cnt || cnt < 1 || !owner) usnic_vnic_get_resources() 250 ret->res = kzalloc(sizeof(*(ret->res))*cnt, GFP_ATOMIC); usnic_vnic_get_resources() 260 for (i = 0; i < src->cnt && ret->cnt < cnt; i++) { usnic_vnic_get_resources() 265 ret->res[ret->cnt++] = res; usnic_vnic_get_resources() 272 WARN_ON(ret->cnt != cnt); usnic_vnic_get_resources() 285 while ((i = --chunk->cnt) >= 0) { usnic_vnic_put_resources() 306 int cnt, err, i; usnic_vnic_alloc_res_chunk() local 309 cnt = vnic_dev_get_res_count(vnic->vdev, _to_vnic_res_type(type)); usnic_vnic_alloc_res_chunk() 310 if (cnt < 1) usnic_vnic_alloc_res_chunk() 313 chunk->cnt = chunk->free_cnt = cnt; usnic_vnic_alloc_res_chunk() 314 chunk->res = kzalloc(sizeof(*(chunk->res))*cnt, GFP_KERNEL); usnic_vnic_alloc_res_chunk() 318 for (i = 0; i < cnt; i++) { usnic_vnic_alloc_res_chunk() 344 for (i = 0; i < chunk->cnt; i++) usnic_vnic_free_res_chunk() 138 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 233 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_ib_qp_grp.h | 91 {.type = USNIC_VNIC_RES_TYPE_EOL, .cnt = 0,}, 96 {.type = USNIC_VNIC_RES_TYPE_WQ, .cnt = 1,}, 97 {.type = USNIC_VNIC_RES_TYPE_RQ, .cnt = 1,}, 98 {.type = USNIC_VNIC_RES_TYPE_CQ, .cnt = 1,}, 99 {.type = USNIC_VNIC_RES_TYPE_EOL, .cnt = 0,}, 104 {.type = USNIC_VNIC_RES_TYPE_WQ, .cnt = 1,}, 105 {.type = USNIC_VNIC_RES_TYPE_RQ, .cnt = 1,}, 106 {.type = USNIC_VNIC_RES_TYPE_CQ, .cnt = 1,}, 107 {.type = USNIC_VNIC_RES_TYPE_EOL, .cnt = 0,},
|
H A D | usnic_vnic.h | 70 int cnt; member in struct:usnic_vnic_res_chunk 78 uint16_t cnt; member in struct:usnic_vnic_res_desc 94 u16 cnt); 108 int cnt,
|
/linux-4.4.14/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.4.14/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.4.14/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.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/ |
H A D | priv.h | 28 struct nvkm_mem *, u32 pte, u32 cnt, 31 struct nvkm_mem *, u32 pte, u32 cnt, dma_addr_t *); 33 u32 pte, u32 cnt);
|
H A D | nv44.c | 39 dma_addr_t *list, u32 pte, u32 cnt) nv44_vm_fill() 49 while (cnt--) { nv44_vm_fill() 85 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, mmu->null, list, pte, cnt); nv44_vm_map_sg() 117 nv44_vm_unmap(struct nvkm_vma *vma, struct nvkm_memory *pgt, u32 pte, u32 cnt) nv44_vm_unmap() argument 124 u32 part = (cnt > max) ? max : cnt; nv44_vm_unmap() 127 cnt -= part; nv44_vm_unmap() 130 while (cnt >= 4) { nv44_vm_unmap() 135 cnt -= 4; nv44_vm_unmap() 138 if (cnt) nv44_vm_unmap() 139 nv44_vm_fill(pgt, mmu->null, NULL, pte, cnt); nv44_vm_unmap() 38 nv44_vm_fill(struct nvkm_memory *pgt, dma_addr_t null, dma_addr_t *list, u32 pte, u32 cnt) nv44_vm_fill() argument 84 nv44_vm_map_sg(struct nvkm_vma *vma, struct nvkm_memory *pgt, struct nvkm_mem *mem, u32 pte, u32 cnt, dma_addr_t *list) nv44_vm_map_sg() argument
|
H A D | nv04.c | 37 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() 55 nv04_vm_unmap(struct nvkm_vma *vma, struct nvkm_memory *pgt, u32 pte, u32 cnt) nv04_vm_unmap() argument 59 while (cnt--) { nv04_vm_unmap() 36 nv04_vm_map_sg(struct nvkm_vma *vma, struct nvkm_memory *pgt, struct nvkm_mem *mem, u32 pte, u32 cnt, dma_addr_t *list) nv04_vm_map_sg() argument
|
H A D | nv41.c | 39 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() 57 nv41_vm_unmap(struct nvkm_vma *vma, struct nvkm_memory *pgt, u32 pte, u32 cnt) nv41_vm_unmap() argument 61 while (cnt--) { nv41_vm_unmap() 38 nv41_vm_map_sg(struct nvkm_vma *vma, struct nvkm_memory *pgt, struct nvkm_mem *mem, u32 pte, u32 cnt, dma_addr_t *list) nv41_vm_map_sg() argument
|
H A D | nv50.c | 78 struct nvkm_mem *mem, u32 pte, u32 cnt, u64 phys, u64 delta) nv50_vm_map() 94 cnt <<= 3; nv50_vm_map() 97 while (cnt) { nv50_vm_map() 103 if (cnt >= block && !(pte & (block - 1))) nv50_vm_map() 109 cnt -= block; nv50_vm_map() 128 struct nvkm_mem *mem, u32 pte, u32 cnt, dma_addr_t *list) nv50_vm_map_sg() 133 while (cnt--) { nv50_vm_map_sg() 143 nv50_vm_unmap(struct nvkm_vma *vma, struct nvkm_memory *pgt, u32 pte, u32 cnt) nv50_vm_unmap() argument 147 while (cnt--) { nv50_vm_unmap() 77 nv50_vm_map(struct nvkm_vma *vma, struct nvkm_memory *pgt, struct nvkm_mem *mem, u32 pte, u32 cnt, u64 phys, u64 delta) nv50_vm_map() argument 127 nv50_vm_map_sg(struct nvkm_vma *vma, struct nvkm_memory *pgt, struct nvkm_mem *mem, u32 pte, u32 cnt, dma_addr_t *list) nv50_vm_map_sg() argument
|
H A D | gf100.c | 104 struct nvkm_mem *mem, u32 pte, u32 cnt, u64 phys, u64 delta) gf100_vm_map() 116 nvkm_ltc_tags_clear(ltc, tag, cnt); gf100_vm_map() 120 while (cnt--) { gf100_vm_map() 131 struct nvkm_mem *mem, u32 pte, u32 cnt, dma_addr_t *list) gf100_vm_map_sg() 139 while (cnt--) { gf100_vm_map_sg() 149 gf100_vm_unmap(struct nvkm_vma *vma, struct nvkm_memory *pgt, u32 pte, u32 cnt) gf100_vm_unmap() argument 153 while (cnt--) { gf100_vm_unmap() 103 gf100_vm_map(struct nvkm_vma *vma, struct nvkm_memory *pgt, struct nvkm_mem *mem, u32 pte, u32 cnt, u64 phys, u64 delta) gf100_vm_map() argument 130 gf100_vm_map_sg(struct nvkm_vma *vma, struct nvkm_memory *pgt, struct nvkm_mem *mem, u32 pte, u32 cnt, dma_addr_t *list) gf100_vm_map_sg() argument
|
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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 725 for (cnt = 30000; qla2300_fw_dump() 727 rval == QLA_SUCCESS; cnt--) { qla2300_fw_dump() 728 if (cnt) qla2300_fw_dump() 740 for (cnt = 0; cnt < sizeof(fw->pbiu_reg) / 2; cnt++) qla2300_fw_dump() 741 fw->pbiu_reg[cnt] = htons(RD_REG_WORD(dmp_reg++)); qla2300_fw_dump() 744 for (cnt = 0; cnt < sizeof(fw->risc_host_reg) / 2; cnt++) qla2300_fw_dump() 745 fw->risc_host_reg[cnt] = htons(RD_REG_WORD(dmp_reg++)); qla2300_fw_dump() 748 for (cnt = 0; cnt < sizeof(fw->mailbox_reg) / 2; cnt++) qla2300_fw_dump() 749 fw->mailbox_reg[cnt] = htons(RD_REG_WORD(dmp_reg++)); qla2300_fw_dump() 759 for (cnt = 0; cnt < sizeof(fw->risc_hdw_reg) / 2; cnt++) qla2300_fw_dump() 760 fw->risc_hdw_reg[cnt] = htons(RD_REG_WORD(dmp_reg++)); qla2300_fw_dump() 797 for (cnt = 0; cnt < 30000; cnt++) { qla2300_fw_dump() 807 for (cnt = 30000; RD_MAILBOX_REG(ha, reg, 0) != 0 && qla2300_fw_dump() 808 rval == QLA_SUCCESS; cnt--) { qla2300_fw_dump() 809 if (cnt) qla2300_fw_dump() 854 uint32_t cnt, timer; qla2100_fw_dump() local 894 for (cnt = 30000; (RD_REG_WORD(®->hccr) & HCCR_RISC_PAUSE) == 0 && qla2100_fw_dump() 895 rval == QLA_SUCCESS; cnt--) { qla2100_fw_dump() 896 if (cnt) qla2100_fw_dump() 903 for (cnt = 0; cnt < sizeof(fw->pbiu_reg) / 2; cnt++) qla2100_fw_dump() 904 fw->pbiu_reg[cnt] = htons(RD_REG_WORD(dmp_reg++)); qla2100_fw_dump() 907 for (cnt = 0; cnt < ha->mbx_count; cnt++) { qla2100_fw_dump() 908 if (cnt == 8) qla2100_fw_dump() 911 fw->mailbox_reg[cnt] = htons(RD_REG_WORD(dmp_reg++)); qla2100_fw_dump() 915 for (cnt = 0; cnt < sizeof(fw->dma_reg) / 2; cnt++) qla2100_fw_dump() 916 fw->dma_reg[cnt] = htons(RD_REG_WORD(dmp_reg++)); qla2100_fw_dump() 920 for (cnt = 0; cnt < sizeof(fw->risc_hdw_reg) / 2; cnt++) qla2100_fw_dump() 921 fw->risc_hdw_reg[cnt] = htons(RD_REG_WORD(dmp_reg++)); qla2100_fw_dump() 960 for (cnt = 30000; RD_MAILBOX_REG(ha, reg, 0) != 0 && qla2100_fw_dump() 961 rval == QLA_SUCCESS; cnt--) { qla2100_fw_dump() 962 if (cnt) qla2100_fw_dump() 973 for (cnt = 30000; qla2100_fw_dump() 975 rval == QLA_SUCCESS; cnt--) { qla2100_fw_dump() 976 if (cnt) qla2100_fw_dump() 1000 for (cnt = 0; cnt < sizeof(fw->risc_ram) / 2 && rval == QLA_SUCCESS; qla2100_fw_dump() 1001 cnt++, risc_address++) { qla2100_fw_dump() 1029 fw->risc_ram[cnt] = htons(mb2); qla2100_fw_dump() 1036 qla2xxx_copy_queues(ha, &fw->risc_ram[cnt]); qla2100_fw_dump() 1053 uint32_t cnt; qla24xx_fw_dump() local 1103 for (cnt = 0; cnt < sizeof(fw->host_reg) / 4; cnt++) qla24xx_fw_dump() 1104 fw->host_reg[cnt] = htonl(RD_REG_DWORD(dmp_reg++)); qla24xx_fw_dump() 1136 for (cnt = 0; cnt < sizeof(fw->mailbox_reg) / 2; cnt++) qla24xx_fw_dump() 1137 fw->mailbox_reg[cnt] = htons(RD_REG_WORD(mbx_reg++)); qla24xx_fw_dump() 1175 for (cnt = 0; cnt < 7; cnt++) qla24xx_fw_dump() 1181 for (cnt = 0; cnt < 7; cnt++) qla24xx_fw_dump() 1187 for (cnt = 0; cnt < 7; cnt++) qla24xx_fw_dump() 1311 uint32_t cnt; qla25xx_fw_dump() local 1376 for (cnt = 0; cnt < sizeof(fw->host_reg) / 4; cnt++) qla25xx_fw_dump() 1377 fw->host_reg[cnt] = htonl(RD_REG_DWORD(dmp_reg++)); qla25xx_fw_dump() 1425 for (cnt = 0; cnt < sizeof(fw->mailbox_reg) / 2; cnt++) qla25xx_fw_dump() 1426 fw->mailbox_reg[cnt] = htons(RD_REG_WORD(mbx_reg++)); qla25xx_fw_dump() 1489 for (cnt = 0; cnt < 7; cnt++) qla25xx_fw_dump() 1495 for (cnt = 0; cnt < 7; cnt++) qla25xx_fw_dump() 1501 for (cnt = 0; cnt < 7; cnt++) qla25xx_fw_dump() 1633 uint32_t cnt; qla81xx_fw_dump() local 1697 for (cnt = 0; cnt < sizeof(fw->host_reg) / 4; cnt++) qla81xx_fw_dump() 1698 fw->host_reg[cnt] = htonl(RD_REG_DWORD(dmp_reg++)); qla81xx_fw_dump() 1746 for (cnt = 0; cnt < sizeof(fw->mailbox_reg) / 2; cnt++) qla81xx_fw_dump() 1747 fw->mailbox_reg[cnt] = htons(RD_REG_WORD(mbx_reg++)); qla81xx_fw_dump() 1810 for (cnt = 0; cnt < 7; cnt++) qla81xx_fw_dump() 1816 for (cnt = 0; cnt < 7; cnt++) qla81xx_fw_dump() 1822 for (cnt = 0; cnt < 7; cnt++) qla81xx_fw_dump() 1957 uint32_t cnt; qla83xx_fw_dump() local 2040 for (cnt = 0; cnt < sizeof(fw->host_reg) / 4; cnt++) qla83xx_fw_dump() 2041 fw->host_reg[cnt] = htonl(RD_REG_DWORD(dmp_reg++)); qla83xx_fw_dump() 2089 for (cnt = 0; cnt < sizeof(fw->mailbox_reg) / 2; cnt++) qla83xx_fw_dump() 2090 fw->mailbox_reg[cnt] = htons(RD_REG_WORD(mbx_reg++)); qla83xx_fw_dump() 2185 for (cnt = 0; cnt < 7; cnt++) qla83xx_fw_dump() 2191 for (cnt = 0; cnt < 7; cnt++) qla83xx_fw_dump() 2197 for (cnt = 0; cnt < 7; cnt++) qla83xx_fw_dump() 2413 for (cnt = 30000; cnt && (RD_REG_WORD(®->mailbox0)); cnt--) qla83xx_fw_dump() 2416 if (!cnt) { qla83xx_fw_dump() 2697 uint32_t cnt; ql_dump_buffer() local 2709 for (cnt = 0; cnt < size;) { ql_dump_buffer() 2712 cnt++; ql_dump_buffer() 2713 if (!(cnt % 16)) ql_dump_buffer() 2718 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 | 595 int cnt, ret = 0; qla25xx_delete_queues() local 601 for (cnt = 1; cnt < ha->max_req_queues; cnt++) { qla25xx_delete_queues() 602 req = ha->req_q_map[cnt]; qla25xx_delete_queues() 603 if (req && test_bit(cnt, ha->req_qid_map)) { qla25xx_delete_queues() 615 for (cnt = 1; cnt < ha->max_rsp_queues; cnt++) { qla25xx_delete_queues() 616 rsp = ha->rsp_q_map[cnt]; qla25xx_delete_queues() 617 if (rsp && test_bit(cnt, ha->rsp_qid_map)) { qla25xx_delete_queues() 639 uint32_t cnt; qla25xx_create_req_que() local 698 for (cnt = 1; cnt < req->num_outstanding_cmds; cnt++) qla25xx_create_req_que() 699 req->outstanding_cmds[cnt] = NULL; qla25xx_create_req_que() 704 req->cnt = req->length; qla25xx_create_req_que() 714 "cnt=%d id=%d max_q_depth=%d.\n", qla25xx_create_req_que() 716 req->cnt, req->id, req->max_q_depth); qla25xx_create_req_que() 719 "cnt=%d id=%d max_q_depth=%d.\n", qla25xx_create_req_que() 720 req->ring_ptr, req->ring_index, req->cnt, qla25xx_create_req_que()
|
H A D | qla_iocb.c | 319 uint16_t cnt; qla2x00_start_scsi() local 374 if (req->cnt < (req_cnt + 2)) { qla2x00_start_scsi() 375 cnt = RD_REG_WORD_RELAXED(ISP_REQ_Q_OUT(ha, reg)); qla2x00_start_scsi() 376 if (req->ring_index < cnt) qla2x00_start_scsi() 377 req->cnt = cnt - req->ring_index; qla2x00_start_scsi() 379 req->cnt = req->length - qla2x00_start_scsi() 380 (req->ring_index - cnt); qla2x00_start_scsi() 382 if (req->cnt < (req_cnt + 2)) qla2x00_start_scsi() 391 req->cnt -= req_cnt; qla2x00_start_scsi() 1429 uint16_t cnt; qla24xx_start_scsi() local 1479 if (req->cnt < (req_cnt + 2)) { qla24xx_start_scsi() 1480 cnt = IS_SHADOW_REG_CAPABLE(ha) ? *req->out_ptr : qla24xx_start_scsi() 1482 if (req->ring_index < cnt) qla24xx_start_scsi() 1483 req->cnt = cnt - req->ring_index; qla24xx_start_scsi() 1485 req->cnt = req->length - qla24xx_start_scsi() 1486 (req->ring_index - cnt); qla24xx_start_scsi() 1487 if (req->cnt < (req_cnt + 2)) qla24xx_start_scsi() 1496 req->cnt -= req_cnt; qla24xx_start_scsi() 1578 uint16_t cnt; qla24xx_dif_start_scsi() local 1683 if (req->cnt < (req_cnt + 2)) { qla24xx_dif_start_scsi() 1684 cnt = IS_SHADOW_REG_CAPABLE(ha) ? *req->out_ptr : qla24xx_dif_start_scsi() 1686 if (req->ring_index < cnt) qla24xx_dif_start_scsi() 1687 req->cnt = cnt - req->ring_index; qla24xx_dif_start_scsi() 1689 req->cnt = req->length - qla24xx_dif_start_scsi() 1690 (req->ring_index - cnt); qla24xx_dif_start_scsi() 1691 if (req->cnt < (req_cnt + 2)) qla24xx_dif_start_scsi() 1702 req->cnt -= req_cnt; qla24xx_dif_start_scsi() 1759 req->cnt += req_cnt; qla24xx_dif_start_scsi() 1801 uint16_t cnt, req_cnt; qla2x00_alloc_iocbs() local 1836 if (req->cnt < req_cnt + 2) { qla2x00_alloc_iocbs() 1838 cnt = RD_REG_DWORD(®->isp25mq.req_q_out); qla2x00_alloc_iocbs() 1840 cnt = RD_REG_DWORD(®->isp82.req_q_out); qla2x00_alloc_iocbs() 1842 cnt = RD_REG_DWORD(®->isp24.req_q_out); qla2x00_alloc_iocbs() 1844 cnt = RD_REG_DWORD(®->ispfx00.req_q_out); qla2x00_alloc_iocbs() 1846 cnt = qla2x00_debounce_register( qla2x00_alloc_iocbs() 1849 if (req->ring_index < cnt) qla2x00_alloc_iocbs() 1850 req->cnt = cnt - req->ring_index; qla2x00_alloc_iocbs() 1852 req->cnt = req->length - qla2x00_alloc_iocbs() 1853 (req->ring_index - cnt); qla2x00_alloc_iocbs() 1855 if (req->cnt < req_cnt + 2) qla2x00_alloc_iocbs() 1859 req->cnt -= req_cnt; qla2x00_alloc_iocbs() 2221 uint16_t cnt; qla82xx_start_scsi() local 2327 if (req->cnt < (req_cnt + 2)) { qla82xx_start_scsi() 2328 cnt = (uint16_t)RD_REG_DWORD_RELAXED( qla82xx_start_scsi() 2330 if (req->ring_index < cnt) qla82xx_start_scsi() 2331 req->cnt = cnt - req->ring_index; qla82xx_start_scsi() 2333 req->cnt = req->length - qla82xx_start_scsi() 2334 (req->ring_index - cnt); qla82xx_start_scsi() 2335 if (req->cnt < (req_cnt + 2)) qla82xx_start_scsi() 2438 if (req->cnt < (req_cnt + 2)) { qla82xx_start_scsi() 2439 cnt = (uint16_t)RD_REG_DWORD_RELAXED( qla82xx_start_scsi() 2441 if (req->ring_index < cnt) qla82xx_start_scsi() 2442 req->cnt = cnt - req->ring_index; qla82xx_start_scsi() 2444 req->cnt = req->length - qla82xx_start_scsi() 2445 (req->ring_index - cnt); qla82xx_start_scsi() 2447 if (req->cnt < (req_cnt + 2)) qla82xx_start_scsi() 2496 req->cnt -= req_cnt; qla82xx_start_scsi() 2742 uint16_t cnt; qla2x00_start_bidir() local 2784 if (req->cnt < req_cnt + 2) { qla2x00_start_bidir() 2785 cnt = IS_SHADOW_REG_CAPABLE(ha) ? *req->out_ptr : qla2x00_start_bidir() 2787 if (req->ring_index < cnt) qla2x00_start_bidir() 2788 req->cnt = cnt - req->ring_index; qla2x00_start_bidir() 2790 req->cnt = req->length - qla2x00_start_bidir() 2791 (req->ring_index - cnt); qla2x00_start_bidir() 2793 if (req->cnt < req_cnt + 2) { qla2x00_start_bidir() 2818 req->cnt -= req_cnt; qla2x00_start_bidir()
|
/linux-4.4.14/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.4.14/arch/score/include/asm/ |
H A D | user.h | 10 unsigned long sr0; /* cnt */
|
/linux-4.4.14/kernel/irq/ |
H A D | irqdesc.c | 195 static int alloc_descs(unsigned int start, unsigned int cnt, int node, alloc_descs() argument 201 for (i = 0; i < cnt; i++) { alloc_descs() 216 bitmap_clear(allocated_irqs, start, cnt); alloc_descs() 305 static inline int alloc_descs(unsigned int start, unsigned int cnt, int node, alloc_descs() argument 310 for (i = 0; i < cnt; i++) { alloc_descs() 401 * @cnt: Number of consecutive irqs to free 403 void irq_free_descs(unsigned int from, unsigned int cnt) irq_free_descs() argument 407 if (from >= nr_irqs || (from + cnt) > nr_irqs) irq_free_descs() 410 for (i = 0; i < cnt; i++) irq_free_descs() 414 bitmap_clear(allocated_irqs, from, cnt); irq_free_descs() 423 * @cnt: Number of consecutive irqs to allocate. 430 __irq_alloc_descs(int irq, unsigned int from, unsigned int cnt, int node, __irq_alloc_descs() argument 435 if (!cnt) __irq_alloc_descs() 454 from, cnt, 0); __irq_alloc_descs() 459 if (start + cnt > nr_irqs) { __irq_alloc_descs() 460 ret = irq_expand_nr_irqs(start + cnt); __irq_alloc_descs() 465 bitmap_set(allocated_irqs, start, cnt); __irq_alloc_descs() 467 return alloc_descs(start, cnt, node, owner); __irq_alloc_descs() 478 * @cnt: number of interrupts to allocate 483 unsigned int irq_alloc_hwirqs(int cnt, int node) irq_alloc_hwirqs() argument 485 int i, irq = __irq_alloc_descs(-1, 0, cnt, node, NULL); irq_alloc_hwirqs() 490 for (i = irq; cnt > 0; i++, cnt--) { irq_alloc_hwirqs() 502 irq_free_descs(irq, cnt); irq_alloc_hwirqs() 510 * @cnt: number of interrupts to free 513 void irq_free_hwirqs(unsigned int from, int cnt) irq_free_hwirqs() argument 517 for (i = from, j = cnt; j > 0; i++, j--) { irq_free_hwirqs() 521 irq_free_descs(from, cnt); irq_free_hwirqs()
|
/linux-4.4.14/include/trace/events/ |
H A D | nilfs2.h | 101 unsigned long cnt), 103 TP_ARGS(sufile, segnum, cnt), 108 __field(unsigned long, cnt) 114 __entry->cnt = cnt; 117 TP_printk("sufile = %p segnum = %llu cnt = %lu", 120 __entry->cnt)
|
/linux-4.4.14/tools/perf/tests/ |
H A D | dwarf-unwind.c | 42 unsigned long *cnt = (unsigned long *) arg; unwind_entry() local 55 if (*cnt >= MAX_STACK) { unwind_entry() 67 return strcmp((const char *) symbol, funcs[(*cnt)++]); unwind_entry() 74 unsigned long cnt = 0; unwind_thread() local 84 err = unwind__get_entries(unwind_entry, &cnt, thread, unwind_thread() 88 else if (cnt != MAX_STACK) { unwind_thread() 90 cnt, MAX_STACK); unwind_thread()
|
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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 | 1912 static void dw_mci_set_part_bytes(struct dw_mci *host, void *buf, int cnt) dw_mci_set_part_bytes() argument 1914 memcpy((void *)&host->part_buf, buf, cnt); dw_mci_set_part_bytes() 1915 host->part_buf_count = cnt; dw_mci_set_part_bytes() 1919 static int dw_mci_push_part_bytes(struct dw_mci *host, void *buf, int cnt) dw_mci_push_part_bytes() argument 1921 cnt = min(cnt, (1 << host->data_shift) - host->part_buf_count); dw_mci_push_part_bytes() 1922 memcpy((void *)&host->part_buf + host->part_buf_count, buf, cnt); dw_mci_push_part_bytes() 1923 host->part_buf_count += cnt; dw_mci_push_part_bytes() 1924 return cnt; dw_mci_push_part_bytes() 1928 static int dw_mci_pull_part_bytes(struct dw_mci *host, void *buf, int cnt) dw_mci_pull_part_bytes() argument 1930 cnt = min_t(int, cnt, host->part_buf_count); dw_mci_pull_part_bytes() 1931 if (cnt) { dw_mci_pull_part_bytes() 1933 cnt); dw_mci_pull_part_bytes() local 1934 host->part_buf_count -= cnt; dw_mci_pull_part_bytes() 1935 host->part_buf_start += cnt; dw_mci_pull_part_bytes() 1937 return cnt; dw_mci_pull_part_bytes() 1941 static void dw_mci_pull_final_bytes(struct dw_mci *host, void *buf, int cnt) dw_mci_pull_final_bytes() argument 1943 memcpy(buf, &host->part_buf, cnt); dw_mci_pull_final_bytes() 1944 host->part_buf_start = cnt; dw_mci_pull_final_bytes() 1945 host->part_buf_count = (1 << host->data_shift) - cnt; dw_mci_pull_final_bytes() 1948 static void dw_mci_push_data16(struct dw_mci *host, void *buf, int cnt) dw_mci_push_data16() argument 1951 int init_cnt = cnt; dw_mci_push_data16() 1955 int len = dw_mci_push_part_bytes(host, buf, cnt); dw_mci_push_data16() 1958 cnt -= len; dw_mci_push_data16() 1966 while (cnt >= 2) { dw_mci_push_data16() 1968 int len = min(cnt & -2, (int)sizeof(aligned_buf)); dw_mci_push_data16() 1974 cnt -= len; dw_mci_push_data16() 1984 for (; cnt >= 2; cnt -= 2) dw_mci_push_data16() 1989 if (cnt) { dw_mci_push_data16() 1990 dw_mci_set_part_bytes(host, buf, cnt); dw_mci_push_data16() 1998 static void dw_mci_pull_data16(struct dw_mci *host, void *buf, int cnt) dw_mci_pull_data16() argument 2002 while (cnt >= 2) { dw_mci_pull_data16() 2005 int len = min(cnt & -2, (int)sizeof(aligned_buf)); dw_mci_pull_data16() 2014 cnt -= len; dw_mci_pull_data16() 2021 for (; cnt >= 2; cnt -= 2) dw_mci_pull_data16() 2025 if (cnt) { dw_mci_pull_data16() 2027 dw_mci_pull_final_bytes(host, buf, cnt); dw_mci_pull_data16() 2031 static void dw_mci_push_data32(struct dw_mci *host, void *buf, int cnt) dw_mci_push_data32() argument 2034 int init_cnt = cnt; dw_mci_push_data32() 2038 int len = dw_mci_push_part_bytes(host, buf, cnt); dw_mci_push_data32() 2041 cnt -= len; dw_mci_push_data32() 2049 while (cnt >= 4) { dw_mci_push_data32() 2051 int len = min(cnt & -4, (int)sizeof(aligned_buf)); dw_mci_push_data32() 2057 cnt -= len; dw_mci_push_data32() 2067 for (; cnt >= 4; cnt -= 4) dw_mci_push_data32() 2072 if (cnt) { dw_mci_push_data32() 2073 dw_mci_set_part_bytes(host, buf, cnt); dw_mci_push_data32() 2081 static void dw_mci_pull_data32(struct dw_mci *host, void *buf, int cnt) dw_mci_pull_data32() argument 2085 while (cnt >= 4) { dw_mci_pull_data32() 2088 int len = min(cnt & -4, (int)sizeof(aligned_buf)); dw_mci_pull_data32() 2097 cnt -= len; dw_mci_pull_data32() 2104 for (; cnt >= 4; cnt -= 4) dw_mci_pull_data32() 2108 if (cnt) { dw_mci_pull_data32() 2110 dw_mci_pull_final_bytes(host, buf, cnt); dw_mci_pull_data32() 2114 static void dw_mci_push_data64(struct dw_mci *host, void *buf, int cnt) dw_mci_push_data64() argument 2117 int init_cnt = cnt; dw_mci_push_data64() 2121 int len = dw_mci_push_part_bytes(host, buf, cnt); dw_mci_push_data64() 2124 cnt -= len; dw_mci_push_data64() 2133 while (cnt >= 8) { dw_mci_push_data64() 2135 int len = min(cnt & -8, (int)sizeof(aligned_buf)); dw_mci_push_data64() 2141 cnt -= len; dw_mci_push_data64() 2151 for (; cnt >= 8; cnt -= 8) dw_mci_push_data64() 2156 if (cnt) { dw_mci_push_data64() 2157 dw_mci_set_part_bytes(host, buf, cnt); dw_mci_push_data64() 2165 static void dw_mci_pull_data64(struct dw_mci *host, void *buf, int cnt) dw_mci_pull_data64() argument 2169 while (cnt >= 8) { dw_mci_pull_data64() 2172 int len = min(cnt & -8, (int)sizeof(aligned_buf)); dw_mci_pull_data64() 2182 cnt -= len; dw_mci_pull_data64() 2189 for (; cnt >= 8; cnt -= 8) dw_mci_pull_data64() 2193 if (cnt) { dw_mci_pull_data64() 2195 dw_mci_pull_final_bytes(host, buf, cnt); dw_mci_pull_data64() 2199 static void dw_mci_pull_data(struct dw_mci *host, void *buf, int cnt) dw_mci_pull_data() argument 2204 len = dw_mci_pull_part_bytes(host, buf, cnt); dw_mci_pull_data() 2205 if (unlikely(len == cnt)) dw_mci_pull_data() 2208 cnt -= len; dw_mci_pull_data() 2211 host->pull_data(host, buf, cnt); dw_mci_pull_data()
|
/linux-4.4.14/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.4.14/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.4.14/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() 674 int cnt = 0; il_dbgfs_interrupt_read() local 724 for (cnt = 0; cnt < IL_CN_MAX; cnt++) { il_dbgfs_interrupt_read() 725 if (il->isr_stats.handlers[cnt] > 0) il_dbgfs_interrupt_read() 729 il_get_cmd_string(cnt), il_dbgfs_interrupt_read() 730 il->isr_stats.handlers[cnt]); il_dbgfs_interrupt_read() 852 int cnt; il_dbgfs_tx_queue_read() local 865 for (cnt = 0; cnt < il->hw_params.max_txq_num; cnt++) { il_dbgfs_tx_queue_read() 866 txq = &il->txq[cnt]; il_dbgfs_tx_queue_read() 871 " swq_id=%#.2x (ac %d/hwq %d)\n", cnt, il_dbgfs_tx_queue_read() 873 !!test_bit(cnt, il->queue_stopped), il_dbgfs_tx_queue_read() 876 if (cnt >= 4) il_dbgfs_tx_queue_read() 882 atomic_read(&il->queue_stop_count[cnt])); il_dbgfs_tx_queue_read() 952 int cnt = 0; il_dbgfs_sensitivity_read() local 1003 for (cnt = 0; cnt < 10; cnt++) { il_dbgfs_sensitivity_read() 1006 data->nrg_value[cnt]); il_dbgfs_sensitivity_read() 1010 for (cnt = 0; cnt < NRG_NUM_PREV_STAT_L; cnt++) { il_dbgfs_sensitivity_read() 1013 data->nrg_silence_rssi[cnt]); il_dbgfs_sensitivity_read() 1051 int cnt = 0; il_dbgfs_chain_noise_read() local 1090 for (cnt = 0; cnt < NUM_RX_CHAINS; cnt++) { il_dbgfs_chain_noise_read() 1093 data->disconn_array[cnt]); il_dbgfs_chain_noise_read() 1097 for (cnt = 0; cnt < NUM_RX_CHAINS; cnt++) { il_dbgfs_chain_noise_read() 1100 data->delta_gain_code[cnt]); il_dbgfs_chain_noise_read()
|
/linux-4.4.14/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.4.14/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.4.14/drivers/gpu/drm/msm/mdp/mdp5/ |
H A D | mdp5_smp.c | 143 int i, ret, avail, cur_nblks, cnt = smp->blk_cnt; smp_request_block() local 156 avail = cnt - bitmap_weight(smp->state, cnt); smp_request_block() 164 cur_nblks = bitmap_weight(ps->pending, cnt); smp_request_block() 168 int blk = find_first_zero_bit(smp->state, cnt); smp_request_block() 175 int blk = find_first_bit(ps->pending, cnt); smp_request_block() 275 int cnt = smp->blk_cnt; mdp5_smp_release() local 285 bitmap_or(assigned, ps->inuse, ps->configured, cnt); mdp5_smp_release() 289 bitmap_andnot(smp->state, smp->state, ps->pending, cnt); mdp5_smp_release() 290 bitmap_andnot(smp->state, smp->state, assigned, cnt); mdp5_smp_release() 293 bitmap_zero(ps->pending, cnt); mdp5_smp_release() 294 bitmap_zero(ps->configured, cnt); mdp5_smp_release() 295 bitmap_zero(ps->inuse, cnt); mdp5_smp_release() 307 int cnt = smp->blk_cnt; update_smp_state() local 310 for_each_set_bit(blk, *assigned, cnt) { update_smp_state() 339 int cnt = smp->blk_cnt; mdp5_smp_configure() local 351 if (!bitmap_equal(ps->inuse, ps->configured, cnt)) mdp5_smp_configure() 354 bitmap_copy(ps->configured, ps->pending, cnt); mdp5_smp_configure() 355 bitmap_or(assigned, ps->inuse, ps->configured, cnt); mdp5_smp_configure() 363 int cnt = smp->blk_cnt; mdp5_smp_commit() local 376 if (bitmap_andnot(released, ps->inuse, ps->configured, cnt)) { mdp5_smp_commit() 381 bitmap_andnot(smp->state, smp->state, released, cnt); mdp5_smp_commit() 387 bitmap_copy(ps->inuse, ps->configured, cnt); mdp5_smp_commit()
|
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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.4.14/kernel/trace/ |
H A D | trace_kdb.c | 26 int cnt = 0, cpu; ftrace_dump_buf() local 66 if (!cnt) 68 cnt++; 81 if (!cnt)
|
H A D | trace.c | 931 size_t cnt, loff_t *ppos) trace_get_user() 945 cnt--; trace_get_user() 953 while (cnt && isspace(ch)) { trace_get_user() 958 cnt--; trace_get_user() 972 while (cnt && !isspace(ch)) { trace_get_user() 983 cnt--; trace_get_user() 1006 static ssize_t trace_seq_to_buffer(struct trace_seq *s, void *buf, size_t cnt) trace_seq_to_buffer() argument 1014 if (cnt > len) trace_seq_to_buffer() 1015 cnt = len; trace_seq_to_buffer() 1016 memcpy(buf, s->buffer + s->seq.readpos, cnt); trace_seq_to_buffer() 1018 s->seq.readpos += cnt; trace_seq_to_buffer() 1019 return cnt; trace_seq_to_buffer() 3645 size_t cnt, loff_t *ppos) tracing_trace_options_write() 3652 if (cnt >= sizeof(buf)) tracing_trace_options_write() 3655 if (copy_from_user(&buf, ubuf, cnt)) tracing_trace_options_write() 3658 buf[cnt] = 0; tracing_trace_options_write() 3664 *ppos += cnt; tracing_trace_options_write() 3666 return cnt; tracing_trace_options_write() 3826 size_t cnt, loff_t *ppos) tracing_readme_read() 3828 return simple_read_from_buffer(ubuf, cnt, ppos, tracing_readme_read() 3916 size_t cnt, loff_t *ppos) tracing_saved_cmdlines_size_read() 3925 return simple_read_from_buffer(ubuf, cnt, ppos, buf, r); tracing_saved_cmdlines_size_read() 3959 size_t cnt, loff_t *ppos) tracing_saved_cmdlines_size_write() 3964 ret = kstrtoul_from_user(ubuf, cnt, 10, &val); tracing_saved_cmdlines_size_write() 3976 *ppos += cnt; tracing_saved_cmdlines_size_write() 3978 return cnt; tracing_saved_cmdlines_size_write() 4165 size_t cnt, loff_t *ppos) tracing_set_trace_read() 4175 return simple_read_from_buffer(ubuf, cnt, ppos, buf, r); tracing_set_trace_read() 4458 size_t cnt, loff_t *ppos) tracing_set_trace_write() 4466 ret = cnt; tracing_set_trace_write() 4468 if (cnt > MAX_TRACER_SIZE) tracing_set_trace_write() 4469 cnt = MAX_TRACER_SIZE; tracing_set_trace_write() 4471 if (copy_from_user(&buf, ubuf, cnt)) tracing_set_trace_write() 4474 buf[cnt] = 0; tracing_set_trace_write() 4477 for (i = cnt - 1; i > 0 && isspace(buf[i]); i--) tracing_set_trace_write() 4491 size_t cnt, loff_t *ppos) tracing_nsecs_read() 4500 return simple_read_from_buffer(ubuf, cnt, ppos, buf, r); tracing_nsecs_read() 4505 size_t cnt, loff_t *ppos) tracing_nsecs_write() 4510 ret = kstrtoul_from_user(ubuf, cnt, 10, &val); tracing_nsecs_write() 4516 return cnt; tracing_nsecs_write() 4521 size_t cnt, loff_t *ppos) tracing_thresh_read() 4523 return tracing_nsecs_read(&tracing_thresh, ubuf, cnt, ppos); tracing_thresh_read() 4528 size_t cnt, loff_t *ppos) tracing_thresh_write() 4534 ret = tracing_nsecs_write(&tracing_thresh, ubuf, cnt, ppos); tracing_thresh_write() 4544 ret = cnt; tracing_thresh_write() 4555 size_t cnt, loff_t *ppos) tracing_max_lat_read() 4557 return tracing_nsecs_read(filp->private_data, ubuf, cnt, ppos); tracing_max_lat_read() 4562 size_t cnt, loff_t *ppos) tracing_max_lat_write() 4564 return tracing_nsecs_write(filp->private_data, ubuf, cnt, ppos); tracing_max_lat_write() 4725 size_t cnt, loff_t *ppos) tracing_read_pipe() 4731 sret = trace_seq_to_user(&iter->seq, ubuf, cnt); tracing_read_pipe() 4744 sret = iter->trace->read(iter, filp, ubuf, cnt, ppos); tracing_read_pipe() 4760 if (cnt >= PAGE_SIZE) tracing_read_pipe() 4761 cnt = PAGE_SIZE - 1; tracing_read_pipe() 4785 if (trace_seq_used(&iter->seq) >= cnt) tracing_read_pipe() 4800 sret = trace_seq_to_user(&iter->seq, ubuf, cnt); tracing_read_pipe() 4967 size_t cnt, loff_t *ppos) tracing_entries_read() 5009 ret = simple_read_from_buffer(ubuf, cnt, ppos, buf, r); 5015 size_t cnt, loff_t *ppos) tracing_entries_write() 5022 ret = kstrtoul_from_user(ubuf, cnt, 10, &val); tracing_entries_write() 5036 *ppos += cnt; tracing_entries_write() 5038 return cnt; tracing_entries_write() 5043 size_t cnt, loff_t *ppos) tracing_total_entries_read() 5062 return simple_read_from_buffer(ubuf, cnt, ppos, buf, r); 5067 size_t cnt, loff_t *ppos) tracing_free_buffer_write() 5074 *ppos += cnt; tracing_free_buffer_write() 5076 return cnt; tracing_free_buffer_write() 5097 size_t cnt, loff_t *fpos) tracing_mark_write() 5121 if (cnt > TRACE_BUF_SIZE) tracing_mark_write() 5122 cnt = TRACE_BUF_SIZE; tracing_mark_write() 5141 if ((addr & PAGE_MASK) != ((addr + cnt) & PAGE_MASK)) tracing_mark_write() 5159 size = sizeof(*entry) + cnt + 2; /* possible \n added */ tracing_mark_write() 5175 memcpy(&entry->buf[len], map_page[1], cnt - len); tracing_mark_write() 5177 memcpy(&entry->buf, map_page[0] + offset, cnt); tracing_mark_write() 5179 if (entry->buf[cnt - 1] != '\n') { tracing_mark_write() 5180 entry->buf[cnt] = '\n'; tracing_mark_write() 5181 entry->buf[cnt + 1] = '\0'; tracing_mark_write() 5183 entry->buf[cnt] = '\0'; tracing_mark_write() 5187 written = cnt; tracing_mark_write() 5250 size_t cnt, loff_t *fpos) tracing_clock_write() 5258 if (cnt >= sizeof(buf)) tracing_clock_write() 5261 if (copy_from_user(&buf, ubuf, cnt)) tracing_clock_write() 5264 buf[cnt] = 0; tracing_clock_write() 5272 *fpos += cnt; tracing_clock_write() 5274 return cnt; tracing_clock_write() 5343 tracing_snapshot_write(struct file *filp, const char __user *ubuf, size_t cnt, tracing_snapshot_write() argument 5356 ret = kstrtoul_from_user(ubuf, cnt, 10, &val); tracing_snapshot_write() 5408 *ppos += cnt; tracing_snapshot_write() 5409 ret = cnt; tracing_snapshot_write() 5874 unsigned long cnt; tracing_stats_read() local 5884 cnt = ring_buffer_entries_cpu(trace_buf->buffer, cpu); tracing_stats_read() 5885 trace_seq_printf(s, "entries: %ld\n", cnt); tracing_stats_read() 5887 cnt = ring_buffer_overrun_cpu(trace_buf->buffer, cpu); tracing_stats_read() 5888 trace_seq_printf(s, "overrun: %ld\n", cnt); tracing_stats_read() 5890 cnt = ring_buffer_commit_overrun_cpu(trace_buf->buffer, cpu); tracing_stats_read() 5891 trace_seq_printf(s, "commit overrun: %ld\n", cnt); tracing_stats_read() 5893 cnt = ring_buffer_bytes_cpu(trace_buf->buffer, cpu); tracing_stats_read() 5894 trace_seq_printf(s, "bytes: %ld\n", cnt); tracing_stats_read() 5915 cnt = ring_buffer_dropped_events_cpu(trace_buf->buffer, cpu); tracing_stats_read() 5916 trace_seq_printf(s, "dropped events: %ld\n", cnt); tracing_stats_read() 5918 cnt = ring_buffer_read_events_cpu(trace_buf->buffer, cpu); tracing_stats_read() 5919 trace_seq_printf(s, "read events: %ld\n", cnt); tracing_stats_read() 5945 size_t cnt, loff_t *ppos) tracing_read_dyn_info() 5960 r = simple_read_from_buffer(ubuf, cnt, ppos, buf, r); tracing_read_dyn_info() 6173 trace_options_read(struct file *filp, char __user *ubuf, size_t cnt, trace_options_read() argument 6184 return simple_read_from_buffer(ubuf, cnt, ppos, buf, 2); trace_options_read() 6188 trace_options_write(struct file *filp, const char __user *ubuf, size_t cnt, trace_options_write() argument 6195 ret = kstrtoul_from_user(ubuf, cnt, 10, &val); trace_options_write() 6211 *ppos += cnt; trace_options_write() 6213 return cnt; trace_options_write() 6258 trace_options_core_read(struct file *filp, char __user *ubuf, size_t cnt, trace_options_core_read() argument 6273 return simple_read_from_buffer(ubuf, cnt, ppos, buf, 2); trace_options_core_read() 6277 trace_options_core_write(struct file *filp, const char __user *ubuf, size_t cnt, trace_options_core_write() argument 6288 ret = kstrtoul_from_user(ubuf, cnt, 10, &val); trace_options_core_write() 6302 *ppos += cnt; trace_options_core_write() 6304 return cnt; trace_options_core_write() 6378 int cnt; create_trace_option_files() local 6407 for (cnt = 0; opts[cnt].name; cnt++) create_trace_option_files() 6410 topts = kcalloc(cnt + 1, sizeof(*topts), GFP_KERNEL); create_trace_option_files() 6426 for (cnt = 0; opts[cnt].name; cnt++) { create_trace_option_files() 6427 create_trace_option_file(tr, &topts[cnt], flags, create_trace_option_files() 6428 &opts[cnt]); create_trace_option_files() 6429 WARN_ONCE(topts[cnt].entry == NULL, create_trace_option_files() 6431 opts[cnt].name); create_trace_option_files() 6469 size_t cnt, loff_t *ppos) rb_simple_read() 6478 return simple_read_from_buffer(ubuf, cnt, ppos, buf, r); rb_simple_read() 6483 size_t cnt, loff_t *ppos) rb_simple_write() 6490 ret = kstrtoul_from_user(ubuf, cnt, 10, &val); rb_simple_write() 6510 return cnt; rb_simple_write() 7097 int cnt = 0, cpu; ftrace_dump() local 7160 if (!cnt) 7163 cnt++; 7184 if (!cnt) 930 trace_get_user(struct trace_parser *parser, const char __user *ubuf, size_t cnt, loff_t *ppos) trace_get_user() argument 3644 tracing_trace_options_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) tracing_trace_options_write() argument 3825 tracing_readme_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) tracing_readme_read() argument 3915 tracing_saved_cmdlines_size_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) tracing_saved_cmdlines_size_read() argument 3958 tracing_saved_cmdlines_size_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) tracing_saved_cmdlines_size_write() argument 4164 tracing_set_trace_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) tracing_set_trace_read() argument 4457 tracing_set_trace_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) tracing_set_trace_write() argument 4490 tracing_nsecs_read(unsigned long *ptr, char __user *ubuf, size_t cnt, loff_t *ppos) tracing_nsecs_read() argument 4504 tracing_nsecs_write(unsigned long *ptr, const char __user *ubuf, size_t cnt, loff_t *ppos) tracing_nsecs_write() argument 4520 tracing_thresh_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) tracing_thresh_read() argument 4527 tracing_thresh_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) tracing_thresh_write() argument 4554 tracing_max_lat_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) tracing_max_lat_read() argument 4561 tracing_max_lat_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) tracing_max_lat_write() argument 4724 tracing_read_pipe(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) tracing_read_pipe() argument 4966 tracing_entries_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) tracing_entries_read() argument 5014 tracing_entries_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) tracing_entries_write() argument 5042 tracing_total_entries_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) tracing_total_entries_read() argument 5066 tracing_free_buffer_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) tracing_free_buffer_write() argument 5096 tracing_mark_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *fpos) tracing_mark_write() argument 5249 tracing_clock_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *fpos) tracing_clock_write() argument 5944 tracing_read_dyn_info(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) tracing_read_dyn_info() argument 6468 rb_simple_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) rb_simple_read() argument 6482 rb_simple_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) rb_simple_write() argument
|
/linux-4.4.14/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.4.14/drivers/staging/rtl8188eu/core/ |
H A D | rtw_ieee80211.c | 258 uint cnt; rtw_get_ie_ex() local 268 cnt = 0; rtw_get_ie_ex() 270 while (cnt < in_len) { rtw_get_ie_ex() 271 if (eid == in_ie[cnt] && (!oui || !memcmp(&in_ie[cnt+2], oui, oui_len))) { rtw_get_ie_ex() 272 target_ie = &in_ie[cnt]; rtw_get_ie_ex() 275 memcpy(ie, &in_ie[cnt], in_ie[cnt+1]+2); rtw_get_ie_ex() 278 *ielen = in_ie[cnt+1]+2; rtw_get_ie_ex() 282 cnt += in_ie[cnt+1]+2; /* goto next */ rtw_get_ie_ex() 662 uint cnt; rtw_get_sec_ie() local 667 cnt = _TIMESTAMP_ + _BEACON_ITERVAL_ + _CAPABILITY_; rtw_get_sec_ie() 671 while (cnt < in_len) { rtw_get_sec_ie() 672 authmode = in_ie[cnt]; rtw_get_sec_ie() 674 if ((authmode == _WPA_IE_ID_) && (!memcmp(&in_ie[cnt+2], &wpa_oui[0], 4))) { rtw_get_sec_ie() 676 ("\n rtw_get_wpa_ie: sec_idx =%d in_ie[cnt+1]+2 =%d\n", rtw_get_sec_ie() 677 sec_idx, in_ie[cnt+1]+2)); rtw_get_sec_ie() 680 memcpy(wpa_ie, &in_ie[cnt], in_ie[cnt+1]+2); rtw_get_sec_ie() 682 for (i = 0; i < (in_ie[cnt+1]+2); i += 8) { rtw_get_sec_ie() 690 *wpa_len = in_ie[cnt+1]+2; rtw_get_sec_ie() 691 cnt += in_ie[cnt+1]+2; /* get next */ rtw_get_sec_ie() 695 ("\n get_rsn_ie: sec_idx =%d in_ie[cnt+1]+2 =%d\n", rtw_get_sec_ie() 696 sec_idx, in_ie[cnt+1]+2)); rtw_get_sec_ie() 699 memcpy(rsn_ie, &in_ie[cnt], in_ie[cnt+1]+2); rtw_get_sec_ie() 701 for (i = 0; i < (in_ie[cnt+1]+2); i += 8) { rtw_get_sec_ie() 709 *rsn_len = in_ie[cnt+1]+2; rtw_get_sec_ie() 710 cnt += in_ie[cnt+1]+2; /* get next */ rtw_get_sec_ie() 712 cnt += in_ie[cnt+1]+2; /* get next */ rtw_get_sec_ie() 749 uint cnt; rtw_get_wps_ie() local 759 cnt = 0; rtw_get_wps_ie() 761 while (cnt < in_len) { rtw_get_wps_ie() 762 eid = in_ie[cnt]; rtw_get_wps_ie() 764 if ((eid == _WPA_IE_ID_) && (!memcmp(&in_ie[cnt+2], wps_oui, 4))) { rtw_get_wps_ie() 765 wpsie_ptr = &in_ie[cnt]; rtw_get_wps_ie() 768 memcpy(wps_ie, &in_ie[cnt], in_ie[cnt+1]+2); rtw_get_wps_ie() 771 *wps_ielen = in_ie[cnt+1]+2; rtw_get_wps_ie() 773 cnt += in_ie[cnt+1]+2; rtw_get_wps_ie() 777 cnt += in_ie[cnt+1]+2; /* goto next */ rtw_get_wps_ie()
|
/linux-4.4.14/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()
|
/linux-4.4.14/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.4.14/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.4.14/drivers/uio/ |
H A D | uio_pruss.c | 97 int cnt; pruss_cleanup() local 100 for (cnt = 0; cnt < MAX_PRUSS_EVT; cnt++, p++) { pruss_cleanup() 124 int ret = -ENODEV, cnt = 0, len; pruss_probe() local 188 for (cnt = 0, p = gdev->info; cnt < MAX_PRUSS_EVT; cnt++, p++) { pruss_probe() 201 p->name = kasprintf(GFP_KERNEL, "pruss_evt%d", cnt); pruss_probe() 205 p->irq = gdev->hostirq_start + cnt; pruss_probe()
|
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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() 168 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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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()
|
H A D | trace_output_user.c | 132 static __u64 cnt; print_bpf_output() local 144 cnt++; print_bpf_output() 146 if (cnt == MAX_CNT) { print_bpf_output()
|
/linux-4.4.14/drivers/net/wireless/realtek/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.4.14/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 | 134 * @cnt: The number of bytes to read. 142 * copy up to @cnt of data to @ubuf from @buf. 149 size_t cnt, loff_t *ppos) fnic_trace_ctrl_read() 165 return simple_read_from_buffer(ubuf, cnt, ppos, buf, len); fnic_trace_ctrl_read() 174 * @cnt: The number of bytes to write. 187 size_t cnt, loff_t *ppos) fnic_trace_ctrl_write() 195 if (cnt >= sizeof(buf)) fnic_trace_ctrl_write() 198 if (copy_from_user(&buf, ubuf, cnt)) fnic_trace_ctrl_write() 201 buf[cnt] = 0; fnic_trace_ctrl_write() 218 return cnt; fnic_trace_ctrl_write() 552 * @cnt: The number of bytes to read. 558 * copy up to @cnt of data to @ubuf from @buf. 565 size_t cnt, loff_t *ppos) fnic_reset_stats_read() 574 return simple_read_from_buffer(ubuf, cnt, ppos, buf, len); fnic_reset_stats_read() 581 * @cnt: The number of bytes to write. 593 size_t cnt, loff_t *ppos) fnic_reset_stats_write() 604 if (cnt >= sizeof(buf)) fnic_reset_stats_write() 607 if (copy_from_user(&buf, ubuf, cnt)) fnic_reset_stats_write() 610 buf[cnt] = 0; fnic_reset_stats_write() 638 return cnt; fnic_reset_stats_write() 147 fnic_trace_ctrl_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) fnic_trace_ctrl_read() argument 185 fnic_trace_ctrl_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) fnic_trace_ctrl_write() argument 563 fnic_reset_stats_read(struct file *file, char __user *ubuf, size_t cnt, loff_t *ppos) fnic_reset_stats_read() argument 591 fnic_reset_stats_write(struct file *file, const char __user *ubuf, size_t cnt, loff_t *ppos) fnic_reset_stats_write() argument
|
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_debugfs.c | 773 * @cnt: number of arguments that the user supplied 780 static void i40e_dbg_dump_desc(int cnt, int vsi_seid, int ring_id, int desc_n, i40e_dbg_dump_desc() argument 811 if (cnt == 2) { i40e_dbg_dump_desc() 837 } else if (cnt == 3) { i40e_dbg_dump_desc() 974 int cnt; i40e_dbg_command_write() local 1000 cnt = sscanf(&cmd_buf[7], "%i", &vsi_seid); i40e_dbg_command_write() 1001 if (cnt == 0) { i40e_dbg_command_write() 1027 cnt = sscanf(&cmd_buf[7], "%i", &vsi_seid); i40e_dbg_command_write() 1028 if (cnt != 1) { i40e_dbg_command_write() 1030 "del vsi: bad command string, cnt=%d\n", i40e_dbg_command_write() 1031 cnt); i40e_dbg_command_write() 1048 cnt = sscanf(&cmd_buf[9], "%i %i", &uplink_seid, &vsi_seid); i40e_dbg_command_write() 1049 if (cnt != 2) { i40e_dbg_command_write() 1051 "add relay: bad command string, cnt=%d\n", i40e_dbg_command_write() 1052 cnt); i40e_dbg_command_write() 1088 cnt = sscanf(&cmd_buf[9], "%i", &veb_seid); i40e_dbg_command_write() 1089 if (cnt != 1) { i40e_dbg_command_write() 1091 "del relay: bad command string, cnt=%d\n", i40e_dbg_command_write() 1092 cnt); i40e_dbg_command_write() 1119 cnt = sscanf(&cmd_buf[11], i40e_dbg_command_write() 1124 if (cnt == 7) { i40e_dbg_command_write() 1126 } else if (cnt != 8) { i40e_dbg_command_write() 1128 "add macaddr: bad command string, cnt=%d\n", i40e_dbg_command_write() 1129 cnt); i40e_dbg_command_write() 1158 cnt = sscanf(&cmd_buf[11], i40e_dbg_command_write() 1163 if (cnt == 7) { i40e_dbg_command_write() 1165 } else if (cnt != 8) { i40e_dbg_command_write() 1167 "del macaddr: bad command string, cnt=%d\n", i40e_dbg_command_write() 1168 cnt); i40e_dbg_command_write() 1197 cnt = sscanf(&cmd_buf[8], "%i %u", &vsi_seid, &v); i40e_dbg_command_write() 1198 if (cnt != 2) { i40e_dbg_command_write() 1200 "add pvid: bad command string, cnt=%d\n", cnt); i40e_dbg_command_write() 1224 cnt = sscanf(&cmd_buf[8], "%i", &vsi_seid); i40e_dbg_command_write() 1225 if (cnt != 1) { i40e_dbg_command_write() 1227 "del pvid: bad command string, cnt=%d\n", i40e_dbg_command_write() 1228 cnt); i40e_dbg_command_write() 1247 cnt = sscanf(&cmd_buf[8], "%i", &vsi_seid); i40e_dbg_command_write() 1248 if (cnt > 0) i40e_dbg_command_write() 1253 cnt = sscanf(&cmd_buf[8], "%i", &vsi_seid); i40e_dbg_command_write() 1254 if (cnt > 0) i40e_dbg_command_write() 1261 cnt = sscanf(&cmd_buf[12], "%i %i %i", i40e_dbg_command_write() 1263 i40e_dbg_dump_desc(cnt, vsi_seid, ring_id, i40e_dbg_command_write() 1267 cnt = sscanf(&cmd_buf[12], "%i %i %i", i40e_dbg_command_write() 1269 i40e_dbg_dump_desc(cnt, vsi_seid, ring_id, i40e_dbg_command_write() 1405 cnt = sscanf(&cmd_buf[18], "%i %i %i", i40e_dbg_command_write() 1407 if (cnt != 3) { i40e_dbg_command_write() 1453 cnt = sscanf(&cmd_buf[10], "%i", &level); i40e_dbg_command_write() 1454 if (cnt) { i40e_dbg_command_write() 1488 cnt = sscanf(&cmd_buf[4], "%i", &address); i40e_dbg_command_write() 1489 if (cnt != 1) { i40e_dbg_command_write() 1508 cnt = sscanf(&cmd_buf[5], "%i %i", &address, &value); i40e_dbg_command_write() 1509 if (cnt != 2) { i40e_dbg_command_write() 1526 cnt = sscanf(&cmd_buf[15], "%i", &vsi_seid); i40e_dbg_command_write() 1527 if (cnt == 0) { i40e_dbg_command_write() 1533 } else if (cnt == 1) { i40e_dbg_command_write() 1565 cnt = sscanf(&cmd_buf[11], i40e_dbg_command_write() 1574 if (cnt != 10) { i40e_dbg_command_write() 1576 "send aq_cmd: bad command string, cnt=%d\n", i40e_dbg_command_write() 1577 cnt); i40e_dbg_command_write() 1613 cnt = sscanf(&cmd_buf[20], i40e_dbg_command_write() 1623 if (cnt != 11) { i40e_dbg_command_write() 1625 "send indirect aq_cmd: bad command string, cnt=%d\n", i40e_dbg_command_write() 1626 cnt); i40e_dbg_command_write() 1702 cnt = sscanf(&cmd_buf[13], i40e_dbg_command_write() 1709 if (cnt != 10) { i40e_dbg_command_write() 1711 "program fd_filter: bad command string, cnt=%d\n", i40e_dbg_command_write() 1712 cnt); i40e_dbg_command_write() 1728 cnt = sscanf(&asc_packet[j], "%2hhx ", &raw_packet[i]); i40e_dbg_command_write() 1729 if (!cnt) i40e_dbg_command_write() 1748 } else if (strncmp(cmd_buf, "fd current cnt", 14) == 0) { i40e_dbg_command_write() 1889 cnt = sscanf(&cmd_buf[8], "%hx %x %hx", i40e_dbg_command_write() 1891 if (cnt == 0) { i40e_dbg_command_write() 1895 } else if (cnt == 1) { i40e_dbg_command_write() 1898 } else if (cnt == 2) { i40e_dbg_command_write() 1900 } else if (cnt > 3) { i40e_dbg_command_write() 1902 "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() 2109 cnt = sscanf(&i40e_dbg_netdev_ops_buf[11], "%i %i", i40e_dbg_netdev_ops_write() 2111 if (cnt != 2) { i40e_dbg_netdev_ops_write() 2132 cnt = sscanf(&i40e_dbg_netdev_ops_buf[11], "%i", &vsi_seid); i40e_dbg_netdev_ops_write() 2133 if (cnt != 1) { i40e_dbg_netdev_ops_write() 2153 cnt = sscanf(&i40e_dbg_netdev_ops_buf[4], "%i", &vsi_seid); i40e_dbg_netdev_ops_write() 2154 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 172 * @cnt: number of objects we're trying to create 179 #define I40E_FIND_SD_INDEX_LIMIT(hmc_info, type, index, cnt, sd_idx, sd_limit)\ 184 fpm_limit = fpm_addr + (hmc_info)->hmc_obj[(type)].size * (cnt);\ 196 * @cnt: number of objects we're trying to create 203 #define I40E_FIND_PD_INDEX_LIMIT(hmc_info, type, idx, cnt, pd_index, pd_limit)\ 208 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() 511 wr32(hw, I40E_GLHMC_LANTXCNT(hmc_fn_id), obj->cnt); i40e_configure_lan_hmc() 517 wr32(hw, I40E_GLHMC_LANRXCNT(hmc_fn_id), obj->cnt); i40e_configure_lan_hmc() 523 wr32(hw, I40E_GLHMC_FCOEDDPCNT(hmc_fn_id), obj->cnt); i40e_configure_lan_hmc() 529 wr32(hw, I40E_GLHMC_FCOEFCNT(hmc_fn_id), obj->cnt); i40e_configure_lan_hmc() 581 if (info->start_idx >= info->hmc_info->hmc_obj[info->rsrc_type].cnt) { i40e_delete_lan_hmc_object() 589 info->hmc_info->hmc_obj[info->rsrc_type].cnt) { i40e_delete_lan_hmc_object() 1031 if (obj_idx >= hmc_info->hmc_obj[rsrc_type].cnt) { i40e_hmc_get_object_va()
|
/linux-4.4.14/drivers/staging/rdma/hfi1/ |
H A D | qsfp.c | 71 int ret, cnt; __i2c_write() local 82 cnt = 0; __i2c_write() 83 while (cnt < len) { __i2c_write() 84 int wlen = len - cnt; __i2c_write() 87 buff + cnt, wlen); __i2c_write() 93 cnt += wlen; __i2c_write() 99 return cnt; __i2c_write() 124 int ret, cnt, pass = 0; __i2c_read() local 138 cnt = 0; __i2c_read() 139 while (cnt < len) { __i2c_read() 140 int rlen = len - cnt; __i2c_read() 143 buff + cnt, rlen); __i2c_read() 145 if (ret && cnt == 0 && ++pass < I2C_MAX_RETRY) __i2c_read() 153 cnt += rlen; __i2c_read() 156 ret = cnt; __i2c_read()
|
/linux-4.4.14/drivers/net/wireless/mediatek/mt7601u/ |
H A D | mcu.c | 216 int cnt, i, ret; mt7601u_write_reg_pairs() local 221 cnt = min(max_vals_per_cmd, n); mt7601u_write_reg_pairs() 223 skb = alloc_skb(cnt * 8 + MT_DMA_HDR_LEN + 4, GFP_KERNEL); mt7601u_write_reg_pairs() 228 for (i = 0; i < cnt; i++) { mt7601u_write_reg_pairs() 233 ret = mt7601u_mcu_msg_send(dev, skb, CMD_RANDOM_WRITE, cnt == n); mt7601u_write_reg_pairs() 237 return mt7601u_write_reg_pairs(dev, base, data + cnt, n - cnt); mt7601u_write_reg_pairs() 245 int cnt, i, ret; mt7601u_burst_write_regs() local 250 cnt = min(max_regs_per_cmd, n); mt7601u_burst_write_regs() 252 skb = alloc_skb(cnt * 4 + MT_DMA_HDR_LEN + 4, GFP_KERNEL); mt7601u_burst_write_regs() 258 for (i = 0; i < cnt; i++) mt7601u_burst_write_regs() 261 ret = mt7601u_mcu_msg_send(dev, skb, CMD_BURST_WRITE, cnt == n); mt7601u_burst_write_regs() 265 return mt7601u_burst_write_regs(dev, offset + cnt * 4, mt7601u_burst_write_regs() 266 data + cnt, n - cnt); mt7601u_burst_write_regs()
|
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/arch/cris/include/arch-v32/mach-a3/mach/hwregs/ |
H A D | timer_defs.h | 123 unsigned int cnt : 8; member in struct:__anon1202 130 unsigned int cnt : 8; member in struct:__anon1203 169 unsigned int cnt : 8; member in struct:__anon1207 179 unsigned int cnt : 8; member in struct:__anon1208 189 unsigned int cnt : 1; member in struct:__anon1209 200 unsigned int cnt : 1; member in struct:__anon1210 211 unsigned int cnt : 1; member in struct:__anon1211 221 unsigned int cnt : 1; member in struct:__anon1212
|
/linux-4.4.14/arch/cris/include/arch-v32/mach-fs/mach/hwregs/ |
H A D | timer_defs.h | 126 unsigned int cnt : 8; member in struct:__anon1350 133 unsigned int cnt : 8; member in struct:__anon1351 172 unsigned int cnt : 8; member in struct:__anon1355 182 unsigned int cnt : 8; member in struct:__anon1356 192 unsigned int cnt : 1; member in struct:__anon1357 203 unsigned int cnt : 1; member in struct:__anon1358 214 unsigned int cnt : 1; member in struct:__anon1359 224 unsigned int cnt : 1; member in struct:__anon1360
|
/linux-4.4.14/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.4.14/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.4.14/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.4.14/arch/mips/loongson64/loongson-3/ |
H A D | hpet.c | 160 unsigned int cnt; hpet_next_event() local 163 cnt = hpet_read(HPET_COUNTER); hpet_next_event() 164 cnt += delta; hpet_next_event() 165 hpet_write(HPET_T0_CMP, cnt); hpet_next_event() 167 res = (int)(cnt - hpet_read(HPET_COUNTER)); hpet_next_event()
|
/linux-4.4.14/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.4.14/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.4.14/arch/x86/ras/ |
H A D | mce_amd_inj.c | 126 size_t cnt, loff_t *ppos) flags_read() 133 return simple_read_from_buffer(ubuf, cnt, ppos, buf, n); flags_read() 137 size_t cnt, loff_t *ppos) flags_write() 142 if (cnt > MAX_FLAG_OPT_SIZE) flags_write() 145 if (copy_from_user(&buf, ubuf, cnt)) flags_write() 148 buf[cnt - 1] = 0; flags_write() 159 *ppos += cnt; flags_write() 161 return cnt; flags_write() 386 size_t cnt, loff_t *ppos) inj_readme_read() 388 return simple_read_from_buffer(ubuf, cnt, ppos, inj_readme_read() 125 flags_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) flags_read() argument 136 flags_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) flags_write() argument 385 inj_readme_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) inj_readme_read() argument
|
/linux-4.4.14/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.4.14/drivers/i2c/busses/ |
H A D | i2c-brcmstb.c | 326 int cnt, byte, rc; brcmstb_i2c_xfer_bsc_data() local 356 for (cnt = 0; cnt < len; cnt += 4) { brcmstb_i2c_xfer_bsc_data() 361 if ((cnt + byte) < len) brcmstb_i2c_xfer_bsc_data() 362 word |= buf[cnt + byte] << 24; brcmstb_i2c_xfer_bsc_data() 364 bsc_writel(dev, word, data_in[cnt >> 2]); brcmstb_i2c_xfer_bsc_data() 377 for (cnt = 0; cnt < len; cnt += 4) { brcmstb_i2c_xfer_bsc_data() 378 u32 data = bsc_readl(dev, data_out[cnt >> 2]); brcmstb_i2c_xfer_bsc_data() 381 (byte + cnt) < len; byte++) { brcmstb_i2c_xfer_bsc_data() 382 buf[cnt + byte] = data & 0xff; brcmstb_i2c_xfer_bsc_data()
|
/linux-4.4.14/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.4.14/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 172 * @cnt: number of objects we're trying to create 179 #define I40E_FIND_SD_INDEX_LIMIT(hmc_info, type, index, cnt, sd_idx, sd_limit)\ 184 fpm_limit = fpm_addr + (hmc_info)->hmc_obj[(type)].size * (cnt);\ 196 * @cnt: number of objects we're trying to create 203 #define I40E_FIND_PD_INDEX_LIMIT(hmc_info, type, idx, cnt, pd_index, pd_limit)\ 208 fpm_limit = fpm_adr + (hmc_info)->hmc_obj[(type)].size * (cnt); \
|
/linux-4.4.14/drivers/block/rsxx/ |
H A D | dma.c | 34 u32 cnt; member in struct:rsxx_dma::__anon3661 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.4.14/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.4.14/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.4.14/drivers/scsi/ufs/ |
H A D | ufshcd-pltfrm.c | 46 int cnt; ufshcd_parse_clock_info() local 61 cnt = of_property_count_strings(np, "clock-names"); ufshcd_parse_clock_info() 62 if (!cnt || (cnt == -EINVAL)) { ufshcd_parse_clock_info() 65 } else if (cnt < 0) { ufshcd_parse_clock_info() 67 __func__, cnt); ufshcd_parse_clock_info() 68 ret = cnt; ufshcd_parse_clock_info() 71 if (cnt <= 0) ufshcd_parse_clock_info() 83 if (sz != 2 * cnt) { ufshcd_parse_clock_info()
|
/linux-4.4.14/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.4.14/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.4.14/drivers/iio/temperature/ |
H A D | tsys01.c | 119 u8 cnt; tsys01_crc_valid() local 122 for (cnt = 0; cnt < TSYS01_PROM_WORDS_NB; cnt++) tsys01_crc_valid()
|
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/ |
H A D | aux.c | 43 u8 cnt = (remaining > 16) ? 16 : remaining; nvkm_i2c_aux_i2c_xfer() local 54 ret = aux->func->xfer(aux, true, cmd, msg->addr, ptr, cnt); nvkm_i2c_aux_i2c_xfer() 60 ptr += cnt; nvkm_i2c_aux_i2c_xfer() 61 remaining -= cnt; nvkm_i2c_aux_i2c_xfer()
|
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/ |
H A D | mlx4_en.h | 177 #define INC_PERF_COUNTER(cnt) (++(cnt)) 178 #define ADD_PERF_COUNTER(cnt, add) ((cnt) += (add)) 179 #define AVG_PERF_COUNTER(cnt, sample) \ 180 ((cnt) = ((cnt) * (AVG_SIZE - 1) + (sample) * AVG_FACTOR) / AVG_SIZE) 181 #define GET_PERF_COUNTER(cnt) (cnt) 182 #define GET_AVG_PERF_COUNTER(cnt) ((cnt) / AVG_FACTOR) 186 #define INC_PERF_COUNTER(cnt) do {} while (0) 187 #define ADD_PERF_COUNTER(cnt, add) do {} while (0) 188 #define AVG_PERF_COUNTER(cnt, sample) do {} while (0) 189 #define GET_PERF_COUNTER(cnt) (0) 190 #define GET_AVG_PERF_COUNTER(cnt) (0)
|
/linux-4.4.14/net/dccp/ |
H A D | probe.c | 121 int error = 0, cnt = 0; dccpprobe_read() local 139 cnt = kfifo_out_locked(&dccpw.fifo, tbuf, len, &dccpw.lock); dccpprobe_read() 140 error = copy_to_user(buf, tbuf, cnt) ? -EFAULT : 0; dccpprobe_read() 145 return error ? error : cnt; dccpprobe_read()
|
/linux-4.4.14/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.4.14/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.4.14/include/linux/mmc/ |
H A D | sh_mmcif.h | 113 int cnt; sh_mmcif_boot_cmd_poll() local 115 for (cnt = 0; cnt < 1000000; cnt++) { sh_mmcif_boot_cmd_poll()
|