Home
last modified time | relevance | path

Searched refs:count (Results 1 – 25 of 2760) sorted by relevance

12345678910>>...111

/drivers/media/tuners/
Dtuner-types.c73 .count = ARRAY_SIZE(tuner_temic_pal_ranges),
89 .count = ARRAY_SIZE(tuner_philips_pal_i_ranges),
105 .count = ARRAY_SIZE(tuner_philips_ntsc_ranges),
122 .count = ARRAY_SIZE(tuner_philips_secam_ranges),
139 .count = ARRAY_SIZE(tuner_philips_pal_ranges),
156 .count = ARRAY_SIZE(tuner_temic_ntsc_ranges),
172 .count = ARRAY_SIZE(tuner_temic_pal_i_ranges),
188 .count = ARRAY_SIZE(tuner_temic_4036fy5_ntsc_ranges),
204 .count = ARRAY_SIZE(tuner_alps_tsb_1_ranges),
215 .count = ARRAY_SIZE(tuner_alps_tsb_1_ranges),
[all …]
/drivers/pci/hotplug/
Dibmphp_pci.c361 int count; in configure_device() local
374 for (count = 0; address[count]; count++) { /* for 6 BARs */ in configure_device()
389 pci_bus_write_config_dword (ibmphp_pci_bus, devfn, address[count], 0xFFFFFFFF); in configure_device()
390 pci_bus_read_config_dword (ibmphp_pci_bus, devfn, address[count], &bar[count]); in configure_device()
392 if (!bar[count]) /* This BAR is not implemented */ in configure_device()
395 debug ("Device %x BAR %d wants %x\n", func->device, count, bar[count]); in configure_device()
397 if (bar[count] & PCI_BASE_ADDRESS_SPACE_IO) { in configure_device()
401 len[count] = bar[count] & 0xFFFFFFFC; in configure_device()
402 len[count] = ~len[count] + 1; in configure_device()
404 debug ("len[count] in IO %x, count %d\n", len[count], count); in configure_device()
[all …]
/drivers/platform/chrome/
Dcros_ec_sysfs.c44 int count = 0; in show_ec_reboot() local
46 count += scnprintf(buf + count, PAGE_SIZE - count, in show_ec_reboot()
48 count += scnprintf(buf + count, PAGE_SIZE - count, in show_ec_reboot()
50 return count; in show_ec_reboot()
55 const char *buf, size_t count) in store_ec_reboot() argument
111 count = -EINVAL; in store_ec_reboot()
121 count = ret; in store_ec_reboot()
126 count = -EINVAL; in store_ec_reboot()
130 return count; in store_ec_reboot()
142 int count = 0; in show_ec_version() local
[all …]
/drivers/staging/rtl8188eu/core/
Drtw_debug.c26 off_t offset, int count, in proc_get_drv_version() argument
31 len += snprintf(page + len, count - len, "%s\n", DRIVERVERSION); in proc_get_drv_version()
38 off_t offset, int count, in proc_get_write_reg() argument
46 unsigned long count, void *data) in proc_set_write_reg() argument
53 if (count < 3) { in proc_set_write_reg()
63 return count; in proc_set_write_reg()
80 return count; in proc_set_write_reg()
87 off_t offset, int count, in proc_get_read_reg() argument
102 …len += snprintf(page + len, count - len, "usb_read8(0x%x)=0x%x\n", proc_get_read_addr, usb_read8(p… in proc_get_read_reg()
105 …len += snprintf(page + len, count - len, "usb_read16(0x%x)=0x%x\n", proc_get_read_addr, usb_read16… in proc_get_read_reg()
[all …]
/drivers/gpu/drm/msm/mdp/mdp5/
Dmdp5_cfg.c28 .count = 1,
43 .count = 5,
48 .count = 3,
57 .count = 3,
65 .count = 2,
72 .count = 5,
77 .count = 3,
81 .count = 3,
99 .count = 1,
114 .count = 5,
[all …]
/drivers/media/pci/ttpci/
Dav7110_ipack.c19 p->count = 0; in av7110_ipack_reset()
55 if (p->count < 10) in send_ipack()
58 p->buf[4] = (u8)(((p->count - 6) & 0xff00) >> 8); in send_ipack()
59 p->buf[5] = (u8)((p->count - 6) & 0x00ff); in send_ipack()
67 if (ac3_off < p->count) in send_ipack()
69 p->count - ac3_off, &ai, 0); in send_ipack()
71 nframes = (p->count - off - 3 - ac3_off) / in send_ipack()
76 ac3_off += nframes * ai.framesize - p->count; in send_ipack()
80 p->func(p->buf, p->count, p->data); in send_ipack()
85 p->count = 9; in send_ipack()
[all …]
/drivers/scsi/pcmcia/
Dnsp_io.h70 unsigned long count) in nsp_multi_read_1() argument
72 insb(BaseAddr + Register, buf, count); in nsp_multi_read_1()
77 unsigned long count) in nsp_fifo8_read() argument
80 nsp_multi_read_1(base, FIFODATA, buf, count); in nsp_fifo8_read()
89 unsigned long count) in nsp_multi_read_2() argument
91 insw(BaseAddr + Register, buf, count); in nsp_multi_read_2()
96 unsigned long count) in nsp_fifo16_read() argument
99 nsp_multi_read_2(base, FIFODATA, buf, count); in nsp_fifo16_read()
108 unsigned long count) in nsp_multi_read_4() argument
110 insl(BaseAddr + Register, buf, count); in nsp_multi_read_4()
[all …]
/drivers/video/fbdev/
Datafb_utils.h48 static inline void *fb_memclear_small(void *s, size_t count) in fb_memclear_small() argument
50 if (!count) in fb_memclear_small()
59 : "=a" (s), "=d" (count) in fb_memclear_small()
60 : "d" (0), "0" ((char *)s + count), "1" (count)); in fb_memclear_small()
68 : "=a" (s), "=d" (count) in fb_memclear_small()
69 : "d" (0), "0" (s), "1" (count) in fb_memclear_small()
77 static inline void *fb_memclear(void *s, size_t count) in fb_memclear() argument
79 if (!count) in fb_memclear()
82 if (count < 16) { in fb_memclear()
89 : "=a" (s), "=d" (count) in fb_memclear()
[all …]
/drivers/staging/rtl8188eu/include/
Drtw_debug.h121 off_t offset, int count,
125 off_t offset, int count,
129 unsigned long count, void *data);
131 off_t offset, int count,
135 unsigned long count, void *data);
138 off_t offset, int count,
141 off_t offset, int count,
144 off_t offset, int count,
148 off_t offset, int count,
151 off_t offset, int count,
[all …]
/drivers/tty/
Dtty_ldsem.c79 return atomic_long_add_return(delta, (atomic_long_t *)&sem->count); in ldsem_atomic_update()
89 long tmp = atomic_long_cmpxchg(&sem->count, *old, new); in ldsem_cmpxchg()
112 sem->count = LDSEM_UNLOCKED; in __init_ldsem()
123 long adjust, count; in __ldsem_wake_readers() local
130 count = ldsem_atomic_update(adjust, sem); in __ldsem_wake_readers()
132 if (count > 0) in __ldsem_wake_readers()
134 if (ldsem_cmpxchg(&count, count - adjust, sem)) in __ldsem_wake_readers()
153 long count = ldsem_atomic_update(LDSEM_ACTIVE_BIAS, sem); in writer_trylock() local
155 if ((count & LDSEM_ACTIVE_MASK) == LDSEM_ACTIVE_BIAS) in writer_trylock()
157 if (ldsem_cmpxchg(&count, count - LDSEM_ACTIVE_BIAS, sem)) in writer_trylock()
[all …]
/drivers/net/wireless/b43legacy/
Dsysfs.c38 static int get_integer(const char *buf, size_t count) in get_integer() argument
43 if (count == 0) in get_integer()
45 count = min_t(size_t, count, 10); in get_integer()
46 memcpy(tmp, buf, count); in get_integer()
52 static int get_boolean(const char *buf, size_t count) in get_boolean() argument
54 if (count != 0) { in get_boolean()
59 if (count >= 4 && memcmp(buf, "true", 4) == 0) in get_boolean()
61 if (count >= 5 && memcmp(buf, "false", 5) == 0) in get_boolean()
63 if (count >= 3 && memcmp(buf, "yes", 3) == 0) in get_boolean()
65 if (count >= 2 && memcmp(buf, "no", 2) == 0) in get_boolean()
[all …]
/drivers/gpu/drm/savage/
Dsavage_state.c117 if(start <= reg && start+count > reg) \
120 if(start <= reg && start+count > reg) { \
129 unsigned int start, unsigned int count, in savage_verify_state_s3d() argument
133 start + count - 1 > SAVAGE_DESTTEXRWWATERMARK_S3D) { in savage_verify_state_s3d()
135 start, start + count - 1); in savage_verify_state_s3d()
146 start + count > SAVAGE_TEXPALADDR_S3D) { in savage_verify_state_s3d()
159 unsigned int start, unsigned int count, in savage_verify_state_s4() argument
165 start + count - 1 > SAVAGE_TEXBLENDCOLOR_S4) { in savage_verify_state_s4()
167 start, start + count - 1); in savage_verify_state_s4()
178 start + count > SAVAGE_TEXPALADDR_S4) { in savage_verify_state_s4()
[all …]
/drivers/media/usb/pvrusb2/
Dpvrusb2-debugifc.c33 unsigned int count) in debugifc_count_whitespace() argument
38 for (scnt = 0; scnt < count; scnt++) { in debugifc_count_whitespace()
50 unsigned int count) in debugifc_count_nonwhitespace() argument
55 for (scnt = 0; scnt < count; scnt++) { in debugifc_count_nonwhitespace()
65 static unsigned int debugifc_isolate_word(const char *buf,unsigned int count, in debugifc_isolate_word() argument
76 scnt = debugifc_count_whitespace(buf,count); in debugifc_isolate_word()
77 consume_cnt += scnt; count -= scnt; buf += scnt; in debugifc_isolate_word()
78 if (!count) goto done; in debugifc_isolate_word()
80 scnt = debugifc_count_nonwhitespace(buf,count); in debugifc_isolate_word()
84 consume_cnt += scnt; count -= scnt; buf += scnt; in debugifc_isolate_word()
[all …]
/drivers/staging/dgnc/
Ddgnc_sysfs.c52 const char *buf, size_t count) in dgnc_driver_pollrate_store() argument
66 return count; in dgnc_driver_pollrate_store()
110 int count = 0; in dgnc_vpd_show() local
115 count += sprintf(buf + count, in dgnc_vpd_show()
119 count += sprintf(buf + count, "\n%04X ", i * 2); in dgnc_vpd_show()
120 count += sprintf(buf + count, "%02X ", bd->vpd[i]); in dgnc_vpd_show()
122 count += sprintf(buf + count, "\n"); in dgnc_vpd_show()
124 return count; in dgnc_vpd_show()
132 int count = 0; in dgnc_serial_number_show() local
137 count += sprintf(buf + count, "<UNKNOWN>\n"); in dgnc_serial_number_show()
[all …]
/drivers/acpi/acpica/
Dnsprepkg.c56 union acpi_operand_object **elements, u32 count);
89 u32 count; in acpi_ns_check_package() local
101 return_object->package.count)); in acpi_ns_check_package()
113 count = return_object->package.count; in acpi_ns_check_package()
119 if (!count) { in acpi_ns_check_package()
147 if (count < expected_count) { in acpi_ns_check_package()
149 } else if (count > expected_count) { in acpi_ns_check_package()
153 info->full_pathname, count, in acpi_ns_check_package()
175 for (i = 0; i < count; i++) { in acpi_ns_check_package()
194 expected_count = package->ret_info3.count; in acpi_ns_check_package()
[all …]
/drivers/misc/mic/cosm/
Dcosm_sysfs.c104 const char *buf, size_t count) in state_store() argument
128 count = rc; in state_store()
129 return count; in state_store()
161 const char *buf, size_t count) in heartbeat_enable_store() argument
179 ret = count; in heartbeat_enable_store()
204 const char *buf, size_t count) in cmdline_store() argument
214 cdev->cmdline = kmalloc(count + 1, GFP_KERNEL); in cmdline_store()
216 count = -ENOMEM; in cmdline_store()
220 strncpy(cdev->cmdline, buf, count); in cmdline_store()
222 if (cdev->cmdline[count - 1] == '\n') in cmdline_store()
[all …]
/drivers/net/ethernet/8390/
Dmac8390.c137 static void sane_block_input(struct net_device *dev, int count,
139 static void sane_block_output(struct net_device *dev, int count,
144 int from, int count);
146 const void *from, int count);
151 static void dayna_block_input(struct net_device *dev, int count,
153 static void dayna_block_output(struct net_device *dev, int count,
162 static void slow_sane_block_input(struct net_device *dev, int count,
164 static void slow_sane_block_output(struct net_device *dev, int count,
166 static void word_memcpy_tocard(unsigned long tp, const void *fp, int count);
167 static void word_memcpy_fromcard(void *tp, unsigned long fp, int count);
[all …]
/drivers/isdn/hisax/
Dhscx_irq.c53 hscx_empty_fifo(struct BCState *bcs, int count) in hscx_empty_fifo() argument
61 if (bcs->hw.hscx.rcvidx + count > HSCX_BUFMAX) { in hscx_empty_fifo()
69 bcs->hw.hscx.rcvidx += count; in hscx_empty_fifo()
70 READHSCXFIFO(cs, bcs->hw.hscx.hscx, ptr, count); in hscx_empty_fifo()
76 bcs->hw.hscx.hscx ? 'B' : 'A', count); in hscx_empty_fifo()
77 QuickHex(t, ptr, count); in hscx_empty_fifo()
86 int more, count; in hscx_fill_fifo() local
101 count = fifo_size; in hscx_fill_fifo()
103 count = bcs->tx_skb->len; in hscx_fill_fifo()
107 skb_pull(bcs->tx_skb, count); in hscx_fill_fifo()
[all …]
Djade_irq.c43 jade_empty_fifo(struct BCState *bcs, int count) in jade_empty_fifo() argument
51 if (bcs->hw.hscx.rcvidx + count > HSCX_BUFMAX) { in jade_empty_fifo()
59 bcs->hw.hscx.rcvidx += count; in jade_empty_fifo()
60 READJADEFIFO(cs, bcs->hw.hscx.hscx, ptr, count); in jade_empty_fifo()
66 bcs->hw.hscx.hscx ? 'B' : 'A', count); in jade_empty_fifo()
67 QuickHex(t, ptr, count); in jade_empty_fifo()
76 int more, count; in jade_fill_fifo() local
91 count = fifo_size; in jade_fill_fifo()
93 count = bcs->tx_skb->len; in jade_fill_fifo()
97 skb_pull(bcs->tx_skb, count); in jade_fill_fifo()
[all …]
/drivers/s390/char/
Dsclp_tty.c76 if (tty->count > 1) in sclp_tty_close()
95 int count; in sclp_tty_write_room() local
98 count = 0; in sclp_tty_write_room()
100 count = sclp_buffer_space(sclp_ttybuf) / sizeof(struct msg_buf); in sclp_tty_write_room()
102 count += NR_EMPTY_MSG_PER_SCCB; in sclp_tty_write_room()
104 return count; in sclp_tty_write_room()
135 int count; in __sclp_ttybuf_emit() local
140 count = sclp_tty_buffer_count++; in __sclp_ttybuf_emit()
142 if (count) in __sclp_ttybuf_emit()
172 static int sclp_tty_write_string(const unsigned char *str, int count, int may_fail) in sclp_tty_write_string() argument
[all …]
/drivers/w1/slaves/
Dw1_ds28e04.c67 static inline size_t w1_f1C_fix_count(loff_t off, size_t count, size_t size) in w1_f1C_fix_count() argument
72 if ((off + count) > size) in w1_f1C_fix_count()
75 return count; in w1_f1C_fix_count()
123 loff_t off, size_t count) in eeprom_read() argument
129 count = w1_f1C_fix_count(off, count, W1_EEPROM_SIZE); in eeprom_read()
130 if (count == 0) in eeprom_read()
137 max_page = (off + count - 1) >> W1_PAGE_BITS; in eeprom_read()
140 count = -EIO; in eeprom_read()
144 memcpy(buf, &data->memory[off], count); in eeprom_read()
146 count = w1_f1C_read(sl, off, count, buf); in eeprom_read()
[all …]
/drivers/char/
Dmem.c50 static inline int valid_phys_addr_range(phys_addr_t addr, size_t count) in valid_phys_addr_range() argument
52 return addr + count <= __pa(high_memory); in valid_phys_addr_range()
110 size_t count, loff_t *ppos) in read_mem() argument
119 if (!valid_phys_addr_range(p, count)) in read_mem()
125 sz = size_inside_page(p, count); in read_mem()
131 count -= sz; in read_mem()
137 while (count > 0) { in read_mem()
141 sz = size_inside_page(p, count); in read_mem()
169 count -= sz; in read_mem()
180 size_t count, loff_t *ppos) in write_mem() argument
[all …]
/drivers/misc/eeprom/
Dat24.c165 unsigned offset, size_t count) in at24_eeprom_read() argument
193 if (count > io_limit) in at24_eeprom_read()
194 count = io_limit; in at24_eeprom_read()
198 if (count > I2C_SMBUS_BLOCK_MAX) in at24_eeprom_read()
199 count = I2C_SMBUS_BLOCK_MAX; in at24_eeprom_read()
220 msg[1].len = count; in at24_eeprom_read()
233 count, buf); in at24_eeprom_read()
237 status = count; in at24_eeprom_read()
240 count, offset, status, jiffies); in at24_eeprom_read()
242 if (status == count) in at24_eeprom_read()
[all …]
/drivers/oprofile/
Doprofile_files.c31 size_t count, loff_t *offset) in timeout_read() argument
34 buf, count, offset); in timeout_read()
39 size_t count, loff_t *offset) in timeout_write() argument
47 retval = oprofilefs_ulong_from_user(&val, buf, count); in timeout_write()
55 return count; in timeout_write()
68 static ssize_t depth_read(struct file *file, char __user *buf, size_t count, loff_t *offset) in depth_read() argument
70 return oprofilefs_ulong_to_user(oprofile_backtrace_depth, buf, count, in depth_read()
75 static ssize_t depth_write(struct file *file, char const __user *buf, size_t count, loff_t *offset) in depth_write() argument
86 retval = oprofilefs_ulong_from_user(&val, buf, count); in depth_write()
94 return count; in depth_write()
[all …]
/drivers/video/fbdev/core/
Dfb_sys_fops.c16 ssize_t fb_sys_read(struct fb_info *info, char __user *buf, size_t count, in fb_sys_read() argument
35 if (count >= total_size) in fb_sys_read()
36 count = total_size; in fb_sys_read()
38 if (count + p > total_size) in fb_sys_read()
39 count = total_size - p; in fb_sys_read()
46 if (copy_to_user(buf, src, count)) in fb_sys_read()
50 *ppos += count; in fb_sys_read()
52 return (err) ? err : count; in fb_sys_read()
57 size_t count, loff_t *ppos) in fb_sys_write() argument
75 if (count > total_size) { in fb_sys_write()
[all …]

12345678910>>...111