Searched refs:count (Results 101 - 125 of 2420) sorted by relevance

1234567891011>>

/drivers/net/phy/
H A Dspi_ks8995.c110 unsigned offset, size_t count)
126 t[1].len = count;
136 return err ? err : count;
141 unsigned offset, size_t count)
157 t[1].len = count;
167 return err ? err : count;
210 struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count)
221 if ((off + count) > KS8995_REGS_SIZE)
222 count = KS8995_REGS_SIZE - off;
224 if (unlikely(!count))
109 ks8995_read(struct ks8995_switch *ks, char *buf, unsigned offset, size_t count) argument
140 ks8995_write(struct ks8995_switch *ks, char *buf, unsigned offset, size_t count) argument
209 ks8995_registers_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument
231 ks8995_registers_write(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument
[all...]
/drivers/acpi/acpica/
H A Dnspredef.c68 * 3) For returned package objects, the count of package elements is
83 union acpi_operand_object **elements, u32 count);
155 * Check that the parameter count for this method matches the ASL
285 * DESCRIPTION: Check that the declared (in ASL/AML) parameter count for a
310 * Check the parameter count for non-predefined methods/objects.
332 * Validate the user-supplied parameter count.
343 "Parameter count mismatch - "
351 * Check that the ASL-defined parameter count is what is expected for
352 * this predefined name (parameter count as defined by the ACPI
358 "Parameter count mismatc
433 u32 count; local
701 acpi_ns_check_package_list(struct acpi_predefined_data *data, const union acpi_predefined_info *package, union acpi_operand_object **elements, u32 count) argument
[all...]
/drivers/s390/char/
H A Dsclp_vt220.c314 const unsigned char *msg, int count, int convertlf)
322 if (count > sclp_vt220_space_left(request))
323 count = sclp_vt220_space_left(request);
324 if (count <= 0)
333 (from < count) && (to < sclp_vt220_space_left(request));
352 memcpy(buffer, (const void *) msg, count);
353 sccb->header.length += count;
354 sccb->evbuf.length += count;
355 return count;
383 __sclp_vt220_write(const unsigned char *buf, int count, in argument
313 sclp_vt220_add_msg(struct sclp_vt220_request *request, const unsigned char *msg, int count, int convertlf) argument
448 sclp_vt220_write(struct tty_struct *tty, const unsigned char *buf, int count) argument
464 unsigned int count; local
556 int count; local
577 int count; local
772 sclp_vt220_con_write(struct console *con, const char *buf, unsigned int count) argument
[all...]
/drivers/char/
H A Dnwbutton.c28 static int button_press_count; /* The count of button presses */
56 int button_add_callback (void (*callback) (void), int count) argument
68 button_callback_list [lp].count = count;
93 button_callback_list [lp].count = 0;
104 * list of callback functions, and call any of them whose count argument
105 * matches the current count of button presses. It starts at the beginning
114 if ((button_callback_list [lp].count) == bpcount) {
169 size_t count, loff_t *ppos)
168 button_read(struct file *filp, char __user *buffer, size_t count, loff_t *ppos) argument
H A Dps3flash.c130 size_t count, loff_t *pos)
141 __func__, __LINE__, count, *pos, userbuf, kernelbuf);
144 if (*pos >= size || !count)
147 if (*pos + count > size) {
149 "%s:%u Truncating count from %zu to %llu\n", __func__,
150 __LINE__, count, size - *pos);
151 count = size - *pos;
157 remaining = count;
191 return count;
199 const void *kernelbuf, size_t count, loff_
129 ps3flash_read(char __user *userbuf, void *kernelbuf, size_t count, loff_t *pos) argument
198 ps3flash_write(const char __user *userbuf, const void *kernelbuf, size_t count, loff_t *pos) argument
273 ps3flash_user_read(struct file *file, char __user *buf, size_t count, loff_t *pos) argument
279 ps3flash_user_write(struct file *file, const char __user *buf, size_t count, loff_t *pos) argument
285 ps3flash_kernel_read(void *buf, size_t count, loff_t pos) argument
290 ps3flash_kernel_write(const void *buf, size_t count, loff_t pos) argument
[all...]
H A Dnwflash.c47 static int write_block(unsigned long p, const char __user *buf, int count);
131 "buffer=%p, count=0x%zx.\n", *ppos, buf, size);
148 unsigned int count = size; local
154 printk("flash_write: offset=0x%lX, buffer=0x%p, count=0x%X.\n",
155 p, buf, count);
164 * check for out of range pos or count
167 return count ? -ENXIO : 0;
169 if (count > gbFlashSize - p)
170 count = gbFlashSize - p;
172 if (!access_ok(VERIFY_READ, buf, count))
440 write_block(unsigned long p, const char __user *buf, int count) argument
[all...]
H A Dgeneric_nvram.c57 size_t count, loff_t *ppos)
62 if (!access_ok(VERIFY_WRITE, buf, count))
66 for (i = *ppos; count > 0 && i < nvram_len; ++i, ++p, --count)
74 size_t count, loff_t *ppos)
80 if (!access_ok(VERIFY_READ, buf, count))
84 for (i = *ppos; count > 0 && i < nvram_len; ++i, ++p, --count) {
56 read_nvram(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
73 write_nvram(struct file *file, const char __user *buf, size_t count, loff_t *ppos) argument
H A Ddsp56k.c60 #define handshake(count, maxio, timeout, ENABLE, f) \
63 while (count > 0) { \
64 m = min_t(unsigned long, count, maxio); \
72 count -= m; \
181 static ssize_t dsp56k_read(struct file *file, char __user *buf, size_t count, argument
195 if (!count) return 0;
201 handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_RECEIVE,
209 count /= 2;
211 handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_RECEIVE,
217 count /
244 dsp56k_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) argument
[all...]
/drivers/input/misc/
H A Dixp4xx-beeper.c32 static void ixp4xx_spkr_control(unsigned int pin, unsigned int count) argument
38 if (count) {
42 *IXP4XX_OSRT2 = (count & ~IXP4XX_OST_RELOAD_MASK) | IXP4XX_OST_ENABLE;
56 unsigned int count = 0; local
72 count = (IXP4XX_TIMER_FREQ / (value * 4)) - 1;
74 ixp4xx_spkr_control(pin, count);
H A Dkeychord.c38 kc->count * sizeof(kc->keycodes[0])))
70 if (keychord->count != kdev->key_down)
73 for (i = 0; i < keychord->count; i++) {
192 size_t count, loff_t *ppos)
199 if (count < sizeof(id))
201 count = sizeof(id);
217 if (copy_to_user(buffer, &id, count))
220 return count;
227 size_t count, loff_t *ppos)
235 if (count < sizeo
191 keychord_read(struct file *file, char __user *buffer, size_t count, loff_t *ppos) argument
226 keychord_write(struct file *file, const char __user *buffer, size_t count, loff_t *ppos) argument
[all...]
H A Dsparcspkr.c41 static u32 bbc_count_to_reg(struct bbc_beep_info *info, unsigned int count) argument
46 if (!count)
49 if (count <= clock_freq >> 20)
52 if (count >= clock_freq >> 12)
58 if (count <= clock_freq >> i)
69 unsigned int count = 0; local
82 count = 1193182 / value;
84 count = bbc_count_to_reg(info, count);
88 if (count) {
107 unsigned int count = 0; local
[all...]
/drivers/misc/
H A Dhmc6352.c42 static int compass_store(struct device *dev, const char *buf, size_t count, argument
58 return count;
62 struct device_attribute *attr, const char *buf, size_t count)
64 return compass_store(dev, buf, count, "EC");
68 struct device_attribute *attr, const char *buf, size_t count)
70 return compass_store(dev, buf, count, "SW");
61 compass_calibration_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
67 compass_power_mode_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
/drivers/bluetooth/
H A Dhci_vhci.c112 const char __user *buf, size_t count)
116 if (count > HCI_MAX_FRAME_SIZE)
119 skb = bt_skb_alloc(count, GFP_KERNEL);
123 if (copy_from_user(skb_put(skb, count), buf, count)) {
134 return count;
138 struct sk_buff *skb, char __user *buf, int count)
143 len = min_t(unsigned int, skb->len, count);
170 char __user *buf, size_t count, loff_t *pos)
176 while (count) {
111 vhci_get_user(struct vhci_data *data, const char __user *buf, size_t count) argument
137 vhci_put_user(struct vhci_data *data, struct sk_buff *skb, char __user *buf, int count) argument
169 vhci_read(struct file *file, char __user *buf, size_t count, loff_t *pos) argument
201 vhci_write(struct file *file, const char __user *buf, size_t count, loff_t *pos) argument
[all...]
/drivers/infiniband/hw/amso1100/
H A Dc2_mm.c55 u32 count; /* amt in this PBL MSG. */ local
91 count = min(pbe_count, pbl_depth);
92 wr->addrs_length = cpu_to_be32(count);
99 if (count == pbl_depth) {
124 for (i = 0; i < count; i++) {
138 if (count <= pbe_count) {
143 pbl_depth -= count;
144 pbl_index += count;
183 int i, pbe_count, count; local
235 count
[all...]
/drivers/net/ethernet/8390/
H A Dhydra.c64 static void hydra_block_input(struct net_device *dev, int count,
66 static void hydra_block_output(struct net_device *dev, int count,
217 static void hydra_block_input(struct net_device *dev, int count, argument
224 if (count&1)
225 count++;
227 if (xfer_start+count > mem_base + (NESM_STOP_PG<<8)) {
231 count -= semi_count;
232 z_memcpy_fromio(skb->data+semi_count, mem_base, count);
234 z_memcpy_fromio(skb->data, xfer_start,count);
238 static void hydra_block_output(struct net_device *dev, int count, argument
[all...]
/drivers/mfd/
H A Daat2870-core.c233 ssize_t count = 0; local
236 count += sprintf(buf, "aat2870 registers\n");
238 count += sprintf(buf + count, "0x%02x: ", addr);
239 if (count >= PAGE_SIZE - 1)
244 count += snprintf(buf + count, PAGE_SIZE - count,
247 count += snprintf(buf + count, PAGE_SIZ
272 aat2870_reg_read_file(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument
292 aat2870_reg_write_file(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument
[all...]
/drivers/infiniband/hw/qib/
H A Dqib_fs.c105 size_t count, loff_t *ppos)
107 return simple_read_from_buffer(buf, count, ppos, &qib_stats,
132 size_t count, loff_t *ppos)
134 return simple_read_from_buffer(buf, count, ppos, qib_statnames,
145 size_t count, loff_t *ppos)
152 return simple_read_from_buffer(buf, count, ppos, counters, avail);
157 size_t count, loff_t *ppos)
164 return simple_read_from_buffer(buf, count, ppos, names, avail);
179 size_t count, loff_t *ppos)
186 return simple_read_from_buffer(buf, count, ppo
104 driver_stats_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
131 driver_names_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
144 dev_counters_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
156 dev_names_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
178 portnames_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
190 portcntrs_1_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
202 portcntrs_2_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
222 qsfp_1_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
243 qsfp_2_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
269 flash_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
320 flash_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) argument
[all...]
/drivers/power/
H A Dds2780_battery.c65 char *buf, int addr, size_t count, int io)
68 return w1_ds2780_io_nolock(dev_info->w1_dev, buf, addr, count, io);
70 return w1_ds2780_io(dev_info->w1_dev, buf, addr, count, io);
95 u8 *val, int addr, size_t count)
97 return ds2780_battery_io(dev_info, val, addr, count, 0);
101 int addr, size_t count)
103 return ds2780_battery_io(dev_info, val, addr, count, 1);
476 size_t count)
506 return count;
529 size_t count)
64 ds2780_battery_io(struct ds2780_device_info *dev_info, char *buf, int addr, size_t count, int io) argument
94 ds2780_read_block(struct ds2780_device_info *dev_info, u8 *val, int addr, size_t count) argument
100 ds2780_write(struct ds2780_device_info *dev_info, u8 *val, int addr, size_t count) argument
473 ds2780_set_pmod_enabled(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
526 ds2780_set_sense_resistor_value(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
563 ds2780_set_rsgain_setting(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
607 ds2780_set_pio_pin(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
634 ds2780_read_param_eeprom_bin(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument
651 ds2780_write_param_eeprom_bin(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument
687 ds2780_read_user_eeprom_bin(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument
704 ds2780_write_user_eeprom_bin(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument
[all...]
/drivers/misc/altera-stapl/
H A Daltera-jtag.c131 u32 count, u32 start_index,
138 if (count > js->dr_pre) {
140 js->dr_pre_data = (u8 *)alt_malloc((count + 7) >> 3);
144 js->dr_pre = count;
146 js->dr_pre = count;
149 for (i = 0; i < count; ++i) {
169 int altera_set_ir_pre(struct altera_jtag *js, u32 count, u32 start_index, argument
176 if (count > js->ir_pre) {
178 js->ir_pre_data = (u8 *)alt_malloc((count + 7) >> 3);
182 js->ir_pre = count;
130 altera_set_dr_pre(struct altera_jtag *js, u32 count, u32 start_index, u8 *preamble_data) argument
207 altera_set_dr_post(struct altera_jtag *js, u32 count, u32 start_index, u8 *postamble_data) argument
247 altera_set_ir_post(struct altera_jtag *js, u32 count, u32 start_index, u8 *postamble_data) argument
304 int count = 0; local
357 s32 count; local
448 alt_jtag_drscan(struct altera_state *astate, int start_state, int count, u8 *tdi, u8 *tdo) argument
509 alt_jtag_irscan(struct altera_state *astate, int start_state, int count, u8 *tdi, u8 *tdo) argument
597 altera_irscan(struct altera_state *astate, u32 count, u8 *tdi_data, u32 start_index) argument
694 altera_swap_ir(struct altera_state *astate, u32 count, u8 *in_data, u32 in_index, u8 *out_data, u32 out_index) argument
800 altera_drscan(struct altera_state *astate, u32 count, u8 *tdi_data, u32 start_index) argument
892 altera_swap_dr(struct altera_state *astate, u32 count, u8 *in_data, u32 in_index, u8 *out_data, u32 out_index) argument
[all...]
/drivers/media/rc/
H A Drc-core-priv.h49 unsigned count; member in struct:ir_raw_event_ctrl::nec_dec
57 unsigned count; member in struct:ir_raw_event_ctrl::rc5_dec
65 unsigned count; member in struct:ir_raw_event_ctrl::rc6_dec
71 unsigned count; member in struct:ir_raw_event_ctrl::sony_dec
77 unsigned count; member in struct:ir_raw_event_ctrl::jvc_dec
84 unsigned count; member in struct:ir_raw_event_ctrl::rc5_sz_dec
89 unsigned count; member in struct:ir_raw_event_ctrl::sanyo_dec
100 unsigned count; member in struct:ir_raw_event_ctrl::mce_kbd_dec
/drivers/media/video/ivtv/
H A Divtv-fileops.h26 ssize_t ivtv_v4l2_read(struct file *filp, char __user *buf, size_t count,
28 ssize_t ivtv_v4l2_write(struct file *filp, const char __user *buf, size_t count,
/drivers/scsi/
H A Dnsp32_io.h231 unsigned long count)
233 insl(base + reg, buf, count);
238 unsigned long count)
240 nsp32_multi_read4(base, FIFO_DATA_LOW, buf, count);
246 unsigned long count)
248 outsl(base + reg, buf, count);
253 unsigned long count)
255 nsp32_multi_write4(base, FIFO_DATA_LOW, buf, count);
228 nsp32_multi_read4(unsigned int base, unsigned int reg, void *buf, unsigned long count) argument
236 nsp32_fifo_read(unsigned int base, void *buf, unsigned long count) argument
243 nsp32_multi_write4(unsigned int base, unsigned int reg, void *buf, unsigned long count) argument
251 nsp32_fifo_write(unsigned int base, void *buf, unsigned long count) argument
/drivers/staging/rts5139/
H A Drts51x_fop.h49 ssize_t rts51x_read(struct file *filp, char __user *buf, size_t count,
51 ssize_t rts51x_write(struct file *filp, const char __user * buf, size_t count,
/drivers/usb/serial/
H A Daircable.c90 int count; local
93 count = kfifo_out_locked(&port->write_fifo, buf + HCI_HEADER_LENGTH,
97 put_unaligned_le16(count, &buf[2]);
99 return count + HCI_HEADER_LENGTH;
151 int count; local
161 count = 0;
164 count += aircable_process_packet(tty, port, has_headers,
168 if (count)
/drivers/w1/slaves/
H A Dw1_ds2760.h51 size_t count);
53 size_t count);

Completed in 4973 milliseconds

1234567891011>>