Searched refs:cnt (Results 1 - 25 of 469) sorted by relevance

1234567891011>>

/drivers/staging/rts_pstor/
H A Dgeneral.c27 int i, cnt = 0; local
30 cnt++;
33 return cnt;
/drivers/uwb/i1480/dfu/
H A Dphy.c105 unsigned cnt; local
115 for (cnt = 0; cnt < size; cnt++) {
116 cmd->data[cnt].page = (srcaddr + cnt) >> 8;
117 cmd->data[cnt].offset = (srcaddr + cnt) & 0xff;
130 for (cnt = 0; cnt < siz
[all...]
/drivers/tty/hvc/
H A Dhvc_beat.c42 static int hvc_beat_get_chars(uint32_t vtermno, char *buf, int cnt) argument
51 if (qlen > cnt) {
52 memcpy(buf, q, cnt);
53 qlen -= cnt;
54 memmove(q + cnt, q, qlen);
55 return cnt;
56 } else { /* qlen <= cnt */
73 static int hvc_beat_put_chars(uint32_t vtermno, const char *buf, int cnt) argument
78 for (rest = cnt; rest > 0; rest -= nlen) {
84 return cnt;
[all...]
/drivers/misc/
H A Dtifm_7xx1.c44 unsigned int irq_status, cnt; local
56 for (cnt = 0; cnt < fm->num_sockets; cnt++) {
57 sock = fm->sockets[cnt];
59 if ((irq_status >> cnt) & TIFM_IRQ_FIFOMASK(1))
61 if ((irq_status >> cnt) & TIFM_IRQ_CARDMASK(1))
85 int cnt; local
89 for (cnt = 16; cnt <
147 unsigned int socket_change_set, cnt; local
219 int cnt; local
395 int cnt; local
[all...]
/drivers/ptp/
H A Dptp_chardev.c108 uint rdflags, char __user *buf, size_t cnt)
116 if (cnt % sizeof(struct ptp_extts_event) != 0)
119 if (cnt > sizeof(event))
120 cnt = sizeof(event);
122 cnt = cnt / sizeof(struct ptp_extts_event);
142 if (cnt > qcnt)
143 cnt = qcnt;
145 for (i = 0; i < cnt; i++) {
152 cnt
107 ptp_read(struct posix_clock *pc, uint rdflags, char __user *buf, size_t cnt) argument
[all...]
H A Dptp_private.h63 int cnt = q->tail - q->head; local
64 return cnt < 0 ? PTP_MAX_TIMESTAMPS + cnt : cnt;
77 uint flags, char __user *buf, size_t cnt);
H A Dptp_sysfs.c67 int cnt, enable; local
70 cnt = sscanf(buf, "%u %d", &req.extts.index, &enable);
71 if (cnt != 2)
93 int cnt = 0; local
111 cnt = snprintf(page, PAGE_SIZE, "%u %lld %u\n",
115 return cnt;
125 int cnt, enable, err = -EINVAL; local
127 cnt = sscanf(buf, "%u %lld %u %lld %u", &req.perout.index,
130 if (cnt != 5)
152 int cnt, enabl local
[all...]
/drivers/gpu/drm/nouveau/
H A Dnouveau_vm.h71 struct nouveau_mem *, u32 pte, u32 cnt,
74 struct nouveau_mem *, u32 pte, u32 cnt, dma_addr_t *);
75 void (*unmap)(struct nouveau_gpuobj *pgt, u32 pte, u32 cnt);
98 struct nouveau_mem *, u32 pte, u32 cnt, u64 phys, u64 delta);
100 struct nouveau_mem *, u32 pte, u32 cnt, dma_addr_t *);
101 void nv50_vm_unmap(struct nouveau_gpuobj *, u32 pte, u32 cnt);
109 struct nouveau_mem *, u32 pte, u32 cnt, u64 phys, u64 delta);
111 struct nouveau_mem *, u32 pte, u32 cnt, dma_addr_t *);
112 void nvc0_vm_unmap(struct nouveau_gpuobj *, u32 pte, u32 cnt);
H A Dnv50_vm.c74 struct nouveau_mem *mem, u32 pte, u32 cnt, u64 phys, u64 delta)
90 cnt <<= 3;
92 while (cnt) {
98 if (cnt >= block && !(pte & (block - 1)))
104 cnt -= block;
122 struct nouveau_mem *mem, u32 pte, u32 cnt, dma_addr_t *list)
126 while (cnt--) {
135 nv50_vm_unmap(struct nouveau_gpuobj *pgt, u32 pte, u32 cnt) argument
138 while (cnt--) {
73 nv50_vm_map(struct nouveau_vma *vma, struct nouveau_gpuobj *pgt, struct nouveau_mem *mem, u32 pte, u32 cnt, u64 phys, u64 delta) argument
121 nv50_vm_map_sg(struct nouveau_vma *vma, struct nouveau_gpuobj *pgt, struct nouveau_mem *mem, u32 pte, u32 cnt, dma_addr_t *list) argument
H A Dnouveau_sgdma.c106 u32 cnt = ttm->num_pages; local
110 while (cnt--) {
126 u32 cnt = ttm->num_pages; local
128 while (cnt--) {
158 nv44_sgdma_fill(struct nouveau_gpuobj *pgt, dma_addr_t *list, u32 base, u32 cnt) argument
171 while (cnt--) {
215 u32 cnt = ttm->num_pages; local
222 u32 part = (cnt > max) ? max : cnt;
226 cnt
254 u32 cnt = ttm->num_pages; local
[all...]
/drivers/usb/storage/
H A Dprotocol.c138 unsigned int cnt; local
158 cnt = 0;
159 while (cnt < buflen && sg) {
165 if (sglen > buflen - cnt) {
168 sglen = buflen - cnt;
186 memcpy(ptr + poff, buffer + cnt, plen);
188 memcpy(buffer + cnt, ptr + poff, plen);
194 cnt += plen;
201 return cnt;
/drivers/media/video/pvrusb2/
H A Dpvrusb2-cs53l32a.c40 unsigned int cnt; member in struct:routing_scheme
53 .cnt = ARRAY_SIZE(routing_scheme1),
73 (hdw->input_val >= sp->cnt)) {
H A Dpvrusb2-ctrl.c312 unsigned int uc,cnt; local
323 cnt = scnprintf(ptr,len,"%s%s%s",
328 ptr += cnt; len -= cnt; uc += cnt;
337 cnt = scnprintf(ptr,len,"%s0x%lx",
340 ptr += cnt; len -= cnt; uc += cnt;
343 cnt
435 unsigned int cnt; local
495 unsigned int cnt; local
[all...]
H A Dpvrusb2-ioread.h35 int pvr2_ioread_read(struct pvr2_ioread *,void __user *buf,unsigned int cnt);
H A Dpvrusb2-video-v4l.c43 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)) {
H A Dpvrusb2-std.c141 unsigned int cnt; local
147 cnt = 0;
148 while ((cnt < bufSize) && (bufPtr[cnt] != '-')) cnt++;
149 if (cnt >= bufSize) return 0; // No more characters
151 bufPtr,cnt);
153 cnt++;
154 bufPtr += cnt;
155 bufSize -= cnt;
[all...]
H A Dpvrusb2-devattr.h60 unsigned char cnt; member in struct:pvr2_device_client_table
66 unsigned int cnt; member in struct:pvr2_string_table
H A Dpvrusb2-audio.c32 unsigned int cnt; member in struct:routing_scheme
53 .cnt = ARRAY_SIZE(routing_scheme0),
73 (hdw->input_val < sp->cnt)) {
/drivers/staging/rtl8712/
H A Dusb_ops.h34 u32 cnt, u8 *wmem);
36 u32 cnt, u8 *wmem);
38 u32 cnt, u8 *rmem);
H A Dieee80211.c375 uint cnt; local
378 cnt = (_TIMESTAMP_ + _BEACON_ITERVAL_ + _CAPABILITY_);
380 while (cnt < in_len) {
381 authmode = in_ie[cnt];
383 (!memcmp(&in_ie[cnt + 2], &wpa_oui[0], 4))) {
384 memcpy(wpa_ie, &in_ie[cnt], in_ie[cnt + 1] + 2);
385 *wpa_len = in_ie[cnt+1]+2;
386 cnt += in_ie[cnt
403 uint cnt; local
[all...]
/drivers/staging/iio/adc/
H A Dad7280a.c142 int cnt, i; local
144 for (cnt = 0; cnt < 256; cnt++) {
145 crc = cnt;
152 crc_tab[cnt] = crc;
304 static int ad7280_read_all_channels(struct ad7280_state *st, unsigned cnt, argument
325 for (i = 0; i < cnt; i++) {
489 int dev, ch, cnt; local
496 for (dev = 0, cnt
547 int dev, ch, cnt; local
[all...]
/drivers/usb/mon/
H A Dmon_text.c96 int cnt, limit; member in struct:mon_text_ptr
392 ptr.cnt = 0;
398 ptr.cnt += snprintf(ptr.pbuf + ptr.cnt, ptr.limit - ptr.cnt,
402 if (copy_to_user(buf, rp->printf_buf, ptr.cnt))
403 ptr.cnt = -EFAULT;
406 return ptr.cnt;
419 ptr.cnt = 0;
434 ptr.cnt
[all...]
/drivers/pci/
H A Dproc.c53 unsigned int cnt, size; local
74 cnt = nbytes;
76 if (!access_ok(VERIFY_WRITE, buf, cnt))
79 if ((pos & 1) && cnt) {
85 cnt--;
88 if ((pos & 3) && cnt > 2) {
94 cnt -= 2;
97 while (cnt >= 4) {
103 cnt -= 4;
106 if (cnt >
136 int cnt; local
[all...]
/drivers/media/video/bt8xx/
H A Dbttv-i2c.c142 int retval,cnt; local
162 for (cnt = 1; cnt < msg->len; cnt++ ) {
164 xmit = (msg->buf[cnt] << 24) | I2C_HW | BT878_I2C_NOSTART;
165 if (cnt < msg->len-1 || !last)
174 pr_cont(" %02x", msg->buf[cnt]);
192 u32 cnt; local
195 for (cnt = 0; cnt < ms
[all...]
/drivers/memstick/host/
H A Djmb38x_ms.c641 int cnt; local
648 for (cnt = 0; cnt < 20; ++cnt) {
663 for (cnt = 0; cnt < 20; ++cnt) {
808 int cnt; local
810 for (cnt = 0; cnt < j
856 int cnt, rc = 0; local
870 jmb38x_ms_alloc_host(struct jmb38x_ms *jm, int cnt) argument
926 int rc, cnt; local
997 int cnt; local
[all...]

Completed in 492 milliseconds

1234567891011>>