Home
last modified time | relevance | path

Searched refs:cnt (Results 1 – 25 of 676) sorted by relevance

12345678910>>...28

/drivers/staging/iio/adc/
Dad7280a.c144 int cnt, i; in ad7280_crc8_build_table() local
146 for (cnt = 0; cnt < 256; cnt++) { in ad7280_crc8_build_table()
147 crc = cnt; in ad7280_crc8_build_table()
154 crc_tab[cnt] = crc; in ad7280_crc8_build_table()
302 static int ad7280_read_all_channels(struct ad7280_state *st, unsigned int cnt, in ad7280_read_all_channels() argument
323 for (i = 0; i < cnt; i++) { in ad7280_read_all_channels()
487 int dev, ch, cnt; in ad7280_channel_init() local
494 for (dev = 0, cnt = 0; dev <= st->slave_num; dev++) in ad7280_channel_init()
496 ch++, cnt++) { in ad7280_channel_init()
498 st->channels[cnt].type = IIO_VOLTAGE; in ad7280_channel_init()
[all …]
/drivers/uwb/i1480/dfu/
Dphy.c105 unsigned cnt; in i1480_mpi_read() local
115 for (cnt = 0; cnt < size; cnt++) { in i1480_mpi_read()
116 cmd->data[cnt].page = (srcaddr + cnt) >> 8; in i1480_mpi_read()
117 cmd->data[cnt].offset = (srcaddr + cnt) & 0xff; in i1480_mpi_read()
130 for (cnt = 0; cnt < size; cnt++) { in i1480_mpi_read()
131 if (reply->data[cnt].page != (srcaddr + cnt) >> 8) in i1480_mpi_read()
133 "index %u: expected 0x%02x, got 0x%02x\n", cnt, in i1480_mpi_read()
134 (srcaddr + cnt) >> 8, reply->data[cnt].page); in i1480_mpi_read()
135 if (reply->data[cnt].offset != ((srcaddr + cnt) & 0x00ff)) in i1480_mpi_read()
137 "index %u: expected 0x%02x, got 0x%02x\n", cnt, in i1480_mpi_read()
[all …]
/drivers/misc/
Dtifm_7xx1.c44 unsigned int irq_status, cnt; in tifm_7xx1_isr() local
56 for (cnt = 0; cnt < fm->num_sockets; cnt++) { in tifm_7xx1_isr()
57 sock = fm->sockets[cnt]; in tifm_7xx1_isr()
59 if ((irq_status >> cnt) & TIFM_IRQ_FIFOMASK(1)) in tifm_7xx1_isr()
61 if ((irq_status >> cnt) & TIFM_IRQ_CARDMASK(1)) in tifm_7xx1_isr()
85 int cnt; in tifm_7xx1_toggle_sock_power() local
89 for (cnt = 16; cnt <= 256; cnt <<= 1) { in tifm_7xx1_toggle_sock_power()
94 msleep(cnt); in tifm_7xx1_toggle_sock_power()
113 for (cnt = 16; cnt <= 256; cnt <<= 1) { in tifm_7xx1_toggle_sock_power()
118 msleep(cnt); in tifm_7xx1_toggle_sock_power()
[all …]
/drivers/media/usb/pvrusb2/
Dpvrusb2-ctrl.c312 unsigned int uc,cnt; in gen_bitmask_string() local
323 cnt = scnprintf(ptr,len,"%s%s%s", in gen_bitmask_string()
328 ptr += cnt; len -= cnt; uc += cnt; in gen_bitmask_string()
337 cnt = scnprintf(ptr,len,"%s0x%lx", in gen_bitmask_string()
340 ptr += cnt; len -= cnt; uc += cnt; in gen_bitmask_string()
343 cnt = scnprintf(ptr,len,"%s+0x%lx", in gen_bitmask_string()
346 ptr += cnt; len -= cnt; uc += cnt; in gen_bitmask_string()
349 cnt = scnprintf(ptr,len,"%s+0x%lx", in gen_bitmask_string()
352 ptr += cnt; len -= cnt; uc += cnt; in gen_bitmask_string()
435 unsigned int cnt; in parse_tlist() local
[all …]
Dpvrusb2-std.c141 unsigned int cnt; in pvr2_std_str_to_id() local
147 cnt = 0; in pvr2_std_str_to_id()
148 while ((cnt < bufSize) && (bufPtr[cnt] != '-')) cnt++; in pvr2_std_str_to_id()
149 if (cnt >= bufSize) return 0; // No more characters in pvr2_std_str_to_id()
151 bufPtr,cnt); in pvr2_std_str_to_id()
153 cnt++; in pvr2_std_str_to_id()
154 bufPtr += cnt; in pvr2_std_str_to_id()
155 bufSize -= cnt; in pvr2_std_str_to_id()
160 cnt = 0; in pvr2_std_str_to_id()
161 while (cnt < bufSize) { in pvr2_std_str_to_id()
[all …]
Dpvrusb2-io.c132 unsigned int *cnt; in pvr2_buffer_remove() local
138 cnt = &sp->i_count; in pvr2_buffer_remove()
143 cnt = &sp->q_count; in pvr2_buffer_remove()
148 cnt = &sp->r_count; in pvr2_buffer_remove()
156 (*cnt)--; in pvr2_buffer_remove()
161 pvr2_buffer_state_decode(bp->state),*bcnt,*cnt); in pvr2_buffer_remove()
300 static int pvr2_stream_buffer_count(struct pvr2_stream *sp,unsigned int cnt) in pvr2_stream_buffer_count() argument
306 if (cnt == sp->buffer_total_count) return 0; in pvr2_stream_buffer_count()
313 cnt-sp->buffer_total_count); in pvr2_stream_buffer_count()
315 scnt = cnt & ~0x1f; in pvr2_stream_buffer_count()
[all …]
/drivers/usb/mon/
Dmon_text.c99 int cnt, limit; member
409 ptr.cnt = 0; in mon_text_read_t()
415 ptr.cnt += snprintf(ptr.pbuf + ptr.cnt, ptr.limit - ptr.cnt, in mon_text_read_t()
419 rp->printf_togo = ptr.cnt; in mon_text_read_t()
448 ptr.cnt = 0; in mon_text_read_u()
463 ptr.cnt += snprintf(ptr.pbuf + ptr.cnt, ptr.limit - ptr.cnt, in mon_text_read_u()
467 rp->printf_togo = ptr.cnt; in mon_text_read_u()
521 p->cnt += snprintf(p->pbuf + p->cnt, p->limit - p->cnt, in mon_text_read_head_t()
539 p->cnt += snprintf(p->pbuf + p->cnt, p->limit - p->cnt, in mon_text_read_head_u()
550 p->cnt += snprintf(p->pbuf + p->cnt, p->limit - p->cnt, in mon_text_read_statset()
[all …]
/drivers/staging/rtl8188eu/hal/
Dhal_com.c26 uint cnt = 0; in dump_chip_info() local
29 cnt += sprintf((buf+cnt), "Chip Version Info: CHIP_8188E_"); in dump_chip_info()
30 cnt += sprintf((buf+cnt), "%s_", chip_vers.ChipType == NORMAL_CHIP ? in dump_chip_info()
32 cnt += sprintf((buf+cnt), "%s_", chip_vers.VendorType == CHIP_VENDOR_TSMC ? in dump_chip_info()
35 cnt += sprintf((buf+cnt), "A_CUT_"); in dump_chip_info()
37 cnt += sprintf((buf+cnt), "B_CUT_"); in dump_chip_info()
39 cnt += sprintf((buf+cnt), "C_CUT_"); in dump_chip_info()
41 cnt += sprintf((buf+cnt), "D_CUT_"); in dump_chip_info()
43 cnt += sprintf((buf+cnt), "E_CUT_"); in dump_chip_info()
45 cnt += sprintf((buf+cnt), "UNKNOWN_CUT(%d)_", in dump_chip_info()
[all …]
/drivers/staging/rtl8712/
Dieee80211.c371 uint cnt; in r8712_get_sec_ie() local
374 cnt = _TIMESTAMP_ + _BEACON_ITERVAL_ + _CAPABILITY_; in r8712_get_sec_ie()
375 while (cnt < in_len) { in r8712_get_sec_ie()
376 authmode = in_ie[cnt]; in r8712_get_sec_ie()
378 (!memcmp(&in_ie[cnt + 2], &wpa_oui[0], 4))) { in r8712_get_sec_ie()
379 memcpy(wpa_ie, &in_ie[cnt], in_ie[cnt + 1] + 2); in r8712_get_sec_ie()
380 *wpa_len = in_ie[cnt + 1] + 2; in r8712_get_sec_ie()
381 cnt += in_ie[cnt + 1] + 2; /*get next */ in r8712_get_sec_ie()
384 memcpy(rsn_ie, &in_ie[cnt], in r8712_get_sec_ie()
385 in_ie[cnt + 1] + 2); in r8712_get_sec_ie()
[all …]
/drivers/scsi/qla2xxx/
Dqla_dbg.c114 uint32_t cnt, stat, timer, dwords, idx; in qla27xx_dump_mpi_ram() local
127 for (cnt = 0; cnt < ram_dwords && rval == QLA_SUCCESS; in qla27xx_dump_mpi_ram()
128 cnt += dwords, addr += dwords) { in qla27xx_dump_mpi_ram()
129 if (cnt + dwords > ram_dwords) in qla27xx_dump_mpi_ram()
130 dwords = ram_dwords - cnt; in qla27xx_dump_mpi_ram()
178 ram[cnt + idx] = IS_QLA27XX(ha) ? in qla27xx_dump_mpi_ram()
185 *nxt = rval == QLA_SUCCESS ? &ram[cnt] : NULL; in qla27xx_dump_mpi_ram()
194 uint32_t cnt, stat, timer, dwords, idx; in qla24xx_dump_ram() local
207 for (cnt = 0; cnt < ram_dwords && rval == QLA_SUCCESS; in qla24xx_dump_ram()
208 cnt += dwords, addr += dwords) { in qla24xx_dump_ram()
[all …]
/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
Ddp.c29 nvbios_dp_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) in nvbios_dp_table() argument
46 *cnt = nvbios_rd08(bios, data + 0x03); in nvbios_dp_table()
60 u8 *ver, u8 *hdr, u8 *cnt, u8 *len) in nvbios_dpout_entry() argument
62 u16 data = nvbios_dp_table(bios, ver, hdr, cnt, len); in nvbios_dpout_entry()
63 if (data && idx < *cnt) { in nvbios_dpout_entry()
70 *cnt = nvbios_rd08(bios, outp + 0x04); in nvbios_dpout_entry()
76 *cnt = 0; in nvbios_dpout_entry()
90 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, in nvbios_dpout_parse() argument
93 u16 data = nvbios_dpout_entry(bios, idx, ver, hdr, cnt, len); in nvbios_dpout_parse()
133 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, in nvbios_dpout_match() argument
[all …]
Dboost.c30 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz) in nvbios_boostTe() argument
44 *cnt = nvbios_rd08(bios, boost + 5); in nvbios_boostTe()
60 u8 *ver, u8 *hdr, u8 *cnt, u8 *len) in nvbios_boostEe() argument
63 u16 data = nvbios_boostTe(bios, ver, hdr, cnt, len, &snr, &ssz); in nvbios_boostEe()
64 if (data && idx < *cnt) { in nvbios_boostEe()
67 *cnt = snr; in nvbios_boostEe()
76 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_boostE *info) in nvbios_boostEp() argument
78 u16 data = nvbios_boostEe(bios, idx, ver, hdr, cnt, len); in nvbios_boostEp()
90 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_boostE *info) in nvbios_boostEm() argument
93 while ((data = nvbios_boostEp(bios, idx++, ver, hdr, cnt, len, info))) { in nvbios_boostEm()
[all …]
Ddisp.c30 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *sub) in nvbios_disp_table() argument
45 *cnt = nvbios_rd08(bios, data + 0x03); in nvbios_disp_table()
61 u8 hdr, cnt; in nvbios_disp_entry() local
62 u16 data = nvbios_disp_table(bios, ver, &hdr, &cnt, len, sub); in nvbios_disp_entry()
63 if (data && idx < cnt) in nvbios_disp_entry()
83 u8 *ver, u8 *hdr, u8 *cnt, u8 *len) in nvbios_outp_entry() argument
88 *cnt = nvbios_rd08(bios, info.data + 0x05); in nvbios_outp_entry()
97 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_outp *info) in nvbios_outp_parse() argument
99 u16 data = nvbios_outp_entry(bios, idx, ver, hdr, cnt, len); in nvbios_outp_parse()
117 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_outp *info) in nvbios_outp_match() argument
[all …]
DM0205.c30 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz) in nvbios_M0205Te() argument
46 *cnt = nvbios_rd08(bios, data + 0x05); in nvbios_M0205Te()
59 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz, in nvbios_M0205Tp() argument
62 u32 data = nvbios_M0205Te(bios, ver, hdr, cnt, len, snr, ssz); in nvbios_M0205Tp()
76 u8 *ver, u8 *hdr, u8 *cnt, u8 *len) in nvbios_M0205Ee() argument
79 u32 data = nvbios_M0205Te(bios, ver, hdr, cnt, len, &snr, &ssz); in nvbios_M0205Ee()
80 if (data && idx < *cnt) { in nvbios_M0205Ee()
83 *cnt = snr; in nvbios_M0205Ee()
92 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, in nvbios_M0205Ep() argument
95 u32 data = nvbios_M0205Ee(bios, idx, ver, hdr, cnt, len); in nvbios_M0205Ep()
[all …]
DM0209.c30 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz) in nvbios_M0209Te() argument
46 *cnt = nvbios_rd08(bios, data + 0x04); in nvbios_M0209Te()
59 u8 *ver, u8 *hdr, u8 *cnt, u8 *len) in nvbios_M0209Ee() argument
62 u32 data = nvbios_M0209Te(bios, ver, hdr, cnt, len, &snr, &ssz); in nvbios_M0209Ee()
63 if (data && idx < *cnt) { in nvbios_M0209Ee()
66 *cnt = snr; in nvbios_M0209Ee()
75 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_M0209E *info) in nvbios_M0209Ep() argument
77 u32 data = nvbios_M0209Ee(bios, idx, ver, hdr, cnt, len); in nvbios_M0209Ep()
98 u8 cnt, len; in nvbios_M0209Se() local
99 u32 data = nvbios_M0209Ee(bios, ent, ver, hdr, &cnt, &len); in nvbios_M0209Se()
[all …]
Dperf.c31 u8 *cnt, u8 *len, u8 *snr, u8 *ssz) in nvbios_perf_table() argument
43 *cnt = nvbios_rd08(bios, perf + 5); in nvbios_perf_table()
50 *cnt = nvbios_rd08(bios, perf + 2); in nvbios_perf_table()
66 *cnt = nvbios_rd08(bios, perf + 2); in nvbios_perf_table()
80 u8 *ver, u8 *hdr, u8 *cnt, u8 *len) in nvbios_perf_entry() argument
83 u16 perf = nvbios_perf_table(bios, ver, hdr, cnt, len, &snr, &ssz); in nvbios_perf_entry()
84 if (perf && idx < *cnt) { in nvbios_perf_entry()
87 *cnt = snr; in nvbios_perf_entry()
96 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_perfE *info) in nvbios_perfEp() argument
98 u16 perf = nvbios_perf_entry(bios, idx, ver, hdr, cnt, len); in nvbios_perfEp()
[all …]
Dxpio.c29 dcb_xpiod_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) in dcb_xpiod_table() argument
31 u16 data = dcb_gpio_table(bios, ver, hdr, cnt, len); in dcb_xpiod_table()
37 *cnt = nvbios_rd08(bios, data + 0x02); in dcb_xpiod_table()
47 u8 *ver, u8 *hdr, u8 *cnt, u8 *len) in dcb_xpio_table() argument
49 u16 data = dcb_xpiod_table(bios, ver, hdr, cnt, len); in dcb_xpio_table()
50 if (data && idx < *cnt) { in dcb_xpio_table()
55 *cnt = nvbios_rd08(bios, data + 0x02); in dcb_xpio_table()
65 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_xpio *info) in dcb_xpio_parse() argument
67 u16 data = dcb_xpio_table(bios, idx, ver, hdr, cnt, len); in dcb_xpio_parse()
/drivers/gpu/drm/msm/mdp/mdp5/
Dmdp5_smp.c143 int i, ret, avail, cur_nblks, cnt = smp->blk_cnt; in smp_request_block() local
156 avail = cnt - bitmap_weight(smp->state, cnt); in smp_request_block()
164 cur_nblks = bitmap_weight(ps->pending, cnt); in smp_request_block()
168 int blk = find_first_zero_bit(smp->state, cnt); in smp_request_block()
175 int blk = find_first_bit(ps->pending, cnt); in smp_request_block()
275 int cnt = smp->blk_cnt; in mdp5_smp_release() local
285 bitmap_or(assigned, ps->inuse, ps->configured, cnt); in mdp5_smp_release()
289 bitmap_andnot(smp->state, smp->state, ps->pending, cnt); in mdp5_smp_release()
290 bitmap_andnot(smp->state, smp->state, assigned, cnt); in mdp5_smp_release()
293 bitmap_zero(ps->pending, cnt); in mdp5_smp_release()
[all …]
/drivers/infiniband/hw/usnic/
Dusnic_vnic.c120 for (j = 0; j < chunk->cnt; j++) { in usnic_vnic_dump()
140 u16 cnt) in usnic_vnic_res_spec_update() argument
146 spec->resources[i].cnt = cnt; in usnic_vnic_res_spec_update()
167 if (min_spec->resources[i].cnt > in usnic_vnic_res_spec_satisfied()
168 res_spec->resources[i].cnt) in usnic_vnic_res_spec_satisfied()
189 res_cnt = res_spec->resources[i].cnt; in usnic_vnic_spec_dump()
208 res_cnt = res_spec->resources[i].cnt; in usnic_vnic_check_room()
223 return vnic->chunks[type].cnt; in usnic_vnic_res_cnt()
234 int cnt, void *owner) in usnic_vnic_get_resources() argument
240 if (usnic_vnic_res_free_cnt(vnic, type) < cnt || cnt < 0 || !owner) in usnic_vnic_get_resources()
[all …]
Dusnic_ib_qp_grp.h91 {.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,},
/drivers/pci/
Dproc.c31 unsigned int cnt, size; in proc_bus_pci_read() local
52 cnt = nbytes; in proc_bus_pci_read()
54 if (!access_ok(VERIFY_WRITE, buf, cnt)) in proc_bus_pci_read()
59 if ((pos & 1) && cnt) { in proc_bus_pci_read()
65 cnt--; in proc_bus_pci_read()
68 if ((pos & 3) && cnt > 2) { in proc_bus_pci_read()
74 cnt -= 2; in proc_bus_pci_read()
77 while (cnt >= 4) { in proc_bus_pci_read()
83 cnt -= 4; in proc_bus_pci_read()
86 if (cnt >= 2) { in proc_bus_pci_read()
[all …]
/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/
Dnv44.c39 dma_addr_t *list, u32 pte, u32 cnt) in nv44_vm_fill() argument
49 while (cnt--) { in nv44_vm_fill()
85 struct nvkm_mem *mem, u32 pte, u32 cnt, dma_addr_t *list) in nv44_vm_map_sg() argument
94 u32 part = (cnt > max) ? max : cnt; in nv44_vm_map_sg()
98 cnt -= part; in nv44_vm_map_sg()
101 while (cnt >= 4) { in nv44_vm_map_sg()
108 cnt -= 4; in nv44_vm_map_sg()
111 if (cnt) in nv44_vm_map_sg()
112 nv44_vm_fill(pgt, mmu->null, list, pte, cnt); in nv44_vm_map_sg()
117 nv44_vm_unmap(struct nvkm_vma *vma, struct nvkm_memory *pgt, u32 pte, u32 cnt) in nv44_vm_unmap() argument
[all …]
/drivers/memstick/host/
Djmb38x_ms.c641 int cnt; in jmb38x_ms_reset() local
648 for (cnt = 0; cnt < 20; ++cnt) { in jmb38x_ms_reset()
663 for (cnt = 0; cnt < 20; ++cnt) { in jmb38x_ms_reset()
808 int cnt; in jmb38x_ms_suspend() local
810 for (cnt = 0; cnt < jm->host_cnt; ++cnt) { in jmb38x_ms_suspend()
811 if (!jm->hosts[cnt]) in jmb38x_ms_suspend()
813 memstick_suspend_host(jm->hosts[cnt]); in jmb38x_ms_suspend()
856 int cnt, rc = 0; in jmb38x_ms_count_slots() local
858 for (cnt = 0; cnt < PCI_ROM_RESOURCE; ++cnt) { in jmb38x_ms_count_slots()
859 if (!(IORESOURCE_MEM & pci_resource_flags(pdev, cnt))) in jmb38x_ms_count_slots()
[all …]
/drivers/block/
Damiflop.c456 int cnt; in fd_seek() local
477 cnt = unit[drive].track/2 - track/2; in fd_seek()
482 if (cnt < 0) { in fd_seek()
483 cnt = - cnt; in fd_seek()
490 if (cnt == 0) { in fd_seek()
502 } while (--cnt != 0); in fd_seek()
798 int cnt, to_cnt = 0; in encode_block() local
802 for (cnt = 0; cnt < len / 4; cnt++) { in encode_block()
803 data = src[cnt] >> 1; in encode_block()
808 for (cnt = 0; cnt < len / 4; cnt++) { in encode_block()
[all …]
/drivers/net/ethernet/8390/
Dapne.c392 int cnt; in apne_get_8390_hdr() local
415 for(cnt = 0; cnt < (sizeof(struct e8390_pkt_hdr)>>1); cnt++) in apne_get_8390_hdr()
419 for(cnt = 0; cnt < sizeof(struct e8390_pkt_hdr); cnt++) in apne_get_8390_hdr()
441 int cnt; in apne_block_input() local
460 for (cnt = 0; cnt < (count>>1); cnt++) in apne_block_input()
467 for (cnt = 0; cnt < count; cnt++) in apne_block_input()
483 int cnt; in apne_block_output() local
513 for (cnt = 0; cnt < count>>1; cnt++) in apne_block_output()
517 for (cnt = 0; cnt < count; cnt++) in apne_block_output()

12345678910>>...28