/drivers/tty/ |
H A D | n_tracesink.h | 34 void n_tracesink_datadrain(u8 *buf, int count);
|
H A D | tty_ldsem.c | 11 * 1) Upper half of semaphore count is a wait count (differs from rwsem 79 return atomic_long_add_return(delta, (atomic_long_t *)&sem->count); 83 * ldsem_cmpxchg() updates @*old with the last-known sem->count value. 84 * Returns 1 if count was successfully changed; @*old will have @new value. 85 * Returns 0 if count was not changed; @*old will have most recent sem->count 89 long tmp = atomic_long_cmpxchg(&sem->count, *old, new); 112 sem->count = LDSEM_UNLOCKED; 123 long adjust, count; local 154 long count = ldsem_atomic_update(LDSEM_ACTIVE_BIAS, sem); local 200 down_read_failed(struct ld_semaphore *sem, long count, long timeout) argument 268 down_write_failed(struct ld_semaphore *sem, long count, long timeout) argument 324 long count; local 343 long count; local 374 long count = sem->count; local 400 long count = sem->count; local 417 long count; local 431 long count; local [all...] |
/drivers/media/usb/em28xx/ |
H A D | em28xx-v4l.h | 18 int em28xx_start_analog_streaming(struct vb2_queue *vq, unsigned int count);
|
/drivers/scsi/pcmcia/ |
H A D | nsp_io.h | 70 unsigned long count) 72 insb(BaseAddr + Register, buf, count); 77 unsigned long count) 79 /*nsp_dbg(NSP_DEBUG_DATA_IO, "buf=0x%p, count=0x%lx", buf, count);*/ 80 nsp_multi_read_1(base, FIFODATA, buf, count); 89 unsigned long count) 91 insw(BaseAddr + Register, buf, count); 96 unsigned long count) 98 //nsp_dbg(NSP_DEBUG_DATA_IO, "buf=0x%p, count 67 nsp_multi_read_1(unsigned int BaseAddr, unsigned int Register, void *buf, unsigned long count) argument 75 nsp_fifo8_read(unsigned int base, void *buf, unsigned long count) argument 86 nsp_multi_read_2(unsigned int BaseAddr, unsigned int Register, void *buf, unsigned long count) argument 94 nsp_fifo16_read(unsigned int base, void *buf, unsigned long count) argument 105 nsp_multi_read_4(unsigned int BaseAddr, unsigned int Register, void *buf, unsigned long count) argument 113 nsp_fifo32_read(unsigned int base, void *buf, unsigned long count) argument 124 nsp_multi_write_1(unsigned int BaseAddr, unsigned int Register, void *buf, unsigned long count) argument 132 nsp_fifo8_write(unsigned int base, void *buf, unsigned long count) argument 142 nsp_multi_write_2(unsigned int BaseAddr, unsigned int Register, void *buf, unsigned long count) argument 150 nsp_fifo16_write(unsigned int base, void *buf, unsigned long count) argument 160 nsp_multi_write_4(unsigned int BaseAddr, unsigned int Register, void *buf, unsigned long count) argument 168 nsp_fifo32_write(unsigned int base, void *buf, unsigned long count) argument 219 nsp_mmio_multi_read_4(unsigned long base, unsigned int Register, void *buf, unsigned long count) argument 237 nsp_mmio_fifo32_read(unsigned int base, void *buf, unsigned long count) argument 245 nsp_mmio_multi_write_4(unsigned long base, unsigned int Register, void *buf, unsigned long count) argument 263 nsp_mmio_fifo32_write(unsigned int base, void *buf, unsigned long count) argument [all...] |
/drivers/video/fbdev/core/ |
H A D | fb_sys_fops.c | 16 ssize_t fb_sys_read(struct fb_info *info, char __user *buf, size_t count, argument 35 if (count >= total_size) 36 count = total_size; 38 if (count + p > total_size) 39 count = total_size - p; 46 if (copy_to_user(buf, src, count)) 50 *ppos += count; 52 return (err) ? err : count; 57 size_t count, loff_t *ppos) 75 if (count > total_siz 56 fb_sys_write(struct fb_info *info, const char __user *buf, size_t count, loff_t *ppos) argument [all...] |
/drivers/char/ |
H A D | nwbutton.h | 22 int count; member in struct:button_callback 30 int button_add_callback (void (*callback) (void), int count); 36 extern int button_add_callback (void (*callback) (void), int count);
|
/drivers/net/wireless/b43legacy/ |
H A D | sysfs.c | 38 static int get_integer(const char *buf, size_t count) argument 43 if (count == 0) 45 count = min_t(size_t, count, 10); 46 memcpy(tmp, buf, count); 52 static int get_boolean(const char *buf, size_t count) argument 54 if (count != 0) { 59 if (count >= 4 && memcmp(buf, "true", 4) == 0) 61 if (count >= 5 && memcmp(buf, "false", 5) == 0) 63 if (count > 80 ssize_t count = 0; local 109 b43legacy_attr_interfmode_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 162 ssize_t count; local 181 b43legacy_attr_preamble_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument [all...] |
/drivers/staging/rtl8188eu/include/ |
H A D | rtw_debug.h | 121 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/pci/hotplug/ |
H A D | ibmphp_pci.c | 361 int count; local 374 for (count = 0; address[count]; count++) { /* for 6 BARs */ 381 PCI_BASE_ADDRESS_0 + 4 * count, &tmp); 384 PCI_BASE_ADDRESS_0 + 4 * count, 0xFFFFFFFD); 387 PCI_BASE_ADDRESS_0 + 4 * count, 0xFFFFFFFF); 389 pci_bus_write_config_dword (ibmphp_pci_bus, devfn, address[count], 0xFFFFFFFF); 390 pci_bus_read_config_dword (ibmphp_pci_bus, devfn, address[count], &bar[count]); 568 int count; local 1080 int count, len[6]; local 1226 int count; local 1334 int count; local 1564 int count; local [all...] |
/drivers/infiniband/hw/qib/ |
H A D | qib_pio_copy.c | 39 * @count: number of 32-bit quantities to copy 45 void qib_pio_copy(void __iomem *to, const void *from, size_t count) argument 50 const u64 *end = src + (count >> 1); 54 if (count & 1) 59 const u32 *end = src + count;
|
/drivers/media/pci/ttpci/ |
H A D | av7110_ipack.c | 19 p->count = 0; 55 if (p->count < 10) 58 p->buf[4] = (u8)(((p->count - 6) & 0xff00) >> 8); 59 p->buf[5] = (u8)((p->count - 6) & 0x00ff); 67 if (ac3_off < p->count) 69 p->count - ac3_off, &ai, 0); 71 nframes = (p->count - off - 3 - ac3_off) / 76 ac3_off += nframes * ai.framesize - p->count; 80 p->func(p->buf, p->count, p->data); 85 p->count 122 write_ipack(struct ipack *p, const u8 *data, int count) argument 145 av7110_ipack_instant_repack(const u8 *buf, int count, struct ipack *p) argument [all...] |
/drivers/video/fbdev/ |
H A D | atafb_utils.h | 48 static inline void *fb_memclear_small(void *s, size_t count) argument 50 if (!count) 59 : "=a" (s), "=d" (count) 60 : "d" (0), "0" ((char *)s + count), "1" (count)); 68 : "=a" (s), "=d" (count) 69 : "d" (0), "0" (s), "1" (count) 77 static inline void *fb_memclear(void *s, size_t count) argument 79 if (!count) 82 if (count < 1 117 fb_memset255(void *s, size_t count) argument 144 fb_memmove(void *d, const void *s, size_t count) argument [all...] |
/drivers/media/tuners/ |
H A D | tuner-types.c | 73 .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 [all...] |
/drivers/oprofile/ |
H A D | oprofile_files.c | 31 size_t count, loff_t *offset) 34 buf, count, offset); 39 size_t count, loff_t *offset) 47 retval = oprofilefs_ulong_from_user(&val, buf, count); 55 return count; 68 static ssize_t depth_read(struct file *file, char __user *buf, size_t count, loff_t *offset) argument 70 return oprofilefs_ulong_to_user(oprofile_backtrace_depth, buf, count, 75 static ssize_t depth_write(struct file *file, char const __user *buf, size_t count, loff_t *offset) argument 86 retval = oprofilefs_ulong_from_user(&val, buf, count); 94 return count; 30 timeout_read(struct file *file, char __user *buf, size_t count, loff_t *offset) argument 38 timeout_write(struct file *file, char const __user *buf, size_t count, loff_t *offset) argument 105 pointer_size_read(struct file *file, char __user *buf, size_t count, loff_t *offset) argument 117 cpu_type_read(struct file *file, char __user *buf, size_t count, loff_t *offset) argument 129 enable_read(struct file *file, char __user *buf, size_t count, loff_t *offset) argument 135 enable_write(struct file *file, char const __user *buf, size_t count, loff_t *offset) argument 166 dump_write(struct file *file, char const __user *buf, size_t count, loff_t *offset) argument [all...] |
/drivers/tty/hvc/ |
H A D | hvc_dcc.c | 24 static int hvc_dcc_put_chars(uint32_t vt, const char *buf, int count) argument 28 for (i = 0; i < count; i++) { 35 return count; 38 static int hvc_dcc_get_chars(uint32_t vt, char *buf, int count) argument 42 for (i = 0; i < count; ++i)
|
/drivers/acpi/ |
H A D | custom_method.c | 23 size_t count, loff_t *ppos) 34 if (count <= sizeof(struct acpi_table_header)) 49 (*ppos + count > max_size) || 50 (*ppos + count < count) || 51 (count > uncopied_bytes)) 54 if (copy_from_user(buf + (*ppos), user_buf, count)) { 60 uncopied_bytes -= count; 61 *ppos += count; 72 return count; 22 cm_write(struct file *file, const char __user * user_buf, size_t count, loff_t *ppos) argument [all...] |
/drivers/gpu/host1x/hw/ |
H A D | host1x01_hardware.h | 95 static inline u32 host1x_opcode_incr(unsigned offset, unsigned count) argument 97 return (1 << 28) | (offset << 16) | count; 100 static inline u32 host1x_opcode_nonincr(unsigned offset, unsigned count) argument 102 return (2 << 28) | (offset << 16) | count; 126 static inline u32 host1x_opcode_gather(unsigned count) argument 128 return (6 << 28) | count; 131 static inline u32 host1x_opcode_gather_nonincr(unsigned offset, unsigned count) argument 133 return (6 << 28) | (offset << 16) | BIT(15) | count; 136 static inline u32 host1x_opcode_gather_incr(unsigned offset, unsigned count) argument 138 return (6 << 28) | (offset << 16) | BIT(15) | BIT(14) | count; [all...] |
H A D | host1x02_hardware.h | 94 static inline u32 host1x_opcode_incr(unsigned offset, unsigned count) argument 96 return (1 << 28) | (offset << 16) | count; 99 static inline u32 host1x_opcode_nonincr(unsigned offset, unsigned count) argument 101 return (2 << 28) | (offset << 16) | count; 125 static inline u32 host1x_opcode_gather(unsigned count) argument 127 return (6 << 28) | count; 130 static inline u32 host1x_opcode_gather_nonincr(unsigned offset, unsigned count) argument 132 return (6 << 28) | (offset << 16) | BIT(15) | count; 135 static inline u32 host1x_opcode_gather_incr(unsigned offset, unsigned count) argument 137 return (6 << 28) | (offset << 16) | BIT(15) | BIT(14) | count; [all...] |
H A D | host1x04_hardware.h | 94 static inline u32 host1x_opcode_incr(unsigned offset, unsigned count) argument 96 return (1 << 28) | (offset << 16) | count; 99 static inline u32 host1x_opcode_nonincr(unsigned offset, unsigned count) argument 101 return (2 << 28) | (offset << 16) | count; 125 static inline u32 host1x_opcode_gather(unsigned count) argument 127 return (6 << 28) | count; 130 static inline u32 host1x_opcode_gather_nonincr(unsigned offset, unsigned count) argument 132 return (6 << 28) | (offset << 16) | BIT(15) | count; 135 static inline u32 host1x_opcode_gather_incr(unsigned offset, unsigned count) argument 137 return (6 << 28) | (offset << 16) | BIT(15) | BIT(14) | count; [all...] |
/drivers/misc/mic/host/ |
H A D | mic_sysfs.c | 135 const char *buf, size_t count) 146 count = rc; 166 count = -EINVAL; 168 return count; 203 const char *buf, size_t count) 213 mdev->cmdline = kmalloc(count + 1, GFP_KERNEL); 215 count = -ENOMEM; 219 strncpy(mdev->cmdline, buf, count); 221 if (mdev->cmdline[count - 1] == '\n') 222 mdev->cmdline[count 134 state_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 202 cmdline_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 248 firmware_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 293 ramdisk_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 339 bootmode_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 384 log_buf_addr_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 418 log_buf_len_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument [all...] |
/drivers/acpi/acpica/ |
H A D | nsprepkg.c | 56 union acpi_operand_object **elements, u32 count); 75 * DESCRIPTION: Check a returned package object for the correct count and 89 u32 count; local 101 return_object->package.count)); 110 /* Extract package count and elements array */ 113 count = return_object->package.count; 119 if (!count) { 140 * The package count is fixed and there are no subpackages 147 if (count < expected_coun 400 acpi_ns_check_package_list(struct acpi_evaluate_info *info, const union acpi_predefined_info *package, union acpi_operand_object **elements, u32 count) argument [all...] |
/drivers/staging/rtl8188eu/core/ |
H A D | rtw_debug.c | 26 off_t offset, int count, 31 len += snprintf(page + len, count - len, "%s\n", DRIVERVERSION); 38 off_t offset, int count, 46 unsigned long count, void *data) 53 if (count < 3) { 63 return count; 80 return count; 87 off_t offset, int count, 102 len += snprintf(page + len, count - len, "usb_read8(0x%x)=0x%x\n", proc_get_read_addr, usb_read8(padapter, proc_get_read_addr)); 105 len += snprintf(page + len, count 25 proc_get_drv_version(char *page, char **start, off_t offset, int count, int *eof, void *data) argument 37 proc_get_write_reg(char *page, char **start, off_t offset, int count, int *eof, void *data) argument 45 proc_set_write_reg(struct file *file, const char __user *buffer, unsigned long count, void *data) argument 86 proc_get_read_reg(char *page, char **start, off_t offset, int count, int *eof, void *data) argument 119 proc_set_read_reg(struct file *file, const char __user *buffer, unsigned long count, void *data) argument 146 proc_get_fwstate(char *page, char **start, off_t offset, int count, int *eof, void *data) argument 162 proc_get_sec_info(char *page, char **start, off_t offset, int count, int *eof, void *data) argument 180 proc_get_mlmext_state(char *page, char **start, off_t offset, int count, int *eof, void *data) argument 197 proc_get_qos_option(char *page, char **start, off_t offset, int count, int *eof, void *data) argument 213 proc_get_ht_option(char *page, char **start, off_t offset, int count, int *eof, void *data) argument 227 proc_get_rf_info(char *page, char **start, off_t offset, int count, int *eof, void *data) argument 242 proc_get_ap_info(char *page, char **start, off_t offset, int count, int *eof, void *data) argument 283 proc_get_adapter_state(char *page, char **start, off_t offset, int count, int *eof, void *data) argument 298 proc_get_trx_info(char *page, char **start, off_t offset, int count, int *eof, void *data) argument 316 proc_get_mac_reg_dump1(char *page, char **start, off_t offset, int count, int *eof, void *data) argument 339 proc_get_mac_reg_dump2(char *page, char **start, off_t offset, int count, int *eof, void *data) argument 362 proc_get_mac_reg_dump3(char *page, char **start, off_t offset, int count, int *eof, void *data) argument 385 proc_get_bb_reg_dump1(char *page, char **start, off_t offset, int count, int *eof, void *data) argument 406 proc_get_bb_reg_dump2(char *page, char **start, off_t offset, int count, int *eof, void *data) argument 427 proc_get_bb_reg_dump3(char *page, char **start, off_t offset, int count, int *eof, void *data) argument 448 proc_get_rf_reg_dump1(char *page, char **start, off_t offset, int count, int *eof, void *data) argument 473 proc_get_rf_reg_dump2(char *page, char **start, off_t offset, int count, int *eof, void *data) argument 498 proc_get_rf_reg_dump3(char *page, char **start, off_t offset, int count, int *eof, void *data) argument 525 proc_get_rf_reg_dump4(char *page, char **start, off_t offset, int count, int *eof, void *data) argument 552 proc_get_rx_signal(char *page, char **start, off_t offset, int count, int *eof, void *data) argument 577 proc_set_rx_signal(struct file *file, const char __user *buffer, unsigned long count, void *data) argument 609 proc_get_ht_enable(char *page, char **start, off_t offset, int count, int *eof, void *data) argument 627 proc_set_ht_enable(struct file *file, const char __user *buffer, unsigned long count, void *data) argument 649 proc_get_cbw40_enable(char *page, char **start, off_t offset, int count, int *eof, void *data) argument 669 proc_set_cbw40_enable(struct file *file, const char __user *buffer, unsigned long count, void *data) argument 690 proc_get_ampdu_enable(char *page, char **start, off_t offset, int count, int *eof, void *data) argument 710 proc_set_ampdu_enable(struct file *file, const char __user *buffer, unsigned long count, void *data) argument 731 proc_get_two_path_rssi(char *page, char **start, off_t offset, int count, int *eof, void *data) argument 751 proc_get_rx_stbc(char *page, char **start, off_t offset, int count, int *eof, void *data) argument 771 proc_set_rx_stbc(struct file *file, const char __user *buffer, unsigned long count, void *data) argument 792 proc_get_rssi_disp(char *page, char **start, off_t offset, int count, int *eof, void *data) argument 800 proc_set_rssi_disp(struct file *file, const char __user *buffer, unsigned long count, void *data) argument 834 proc_get_all_sta_info(char *page, char **start, off_t offset, int count, int *eof, void *data) argument 891 proc_get_best_channel(char *page, char **start, off_t offset, int count, int *eof, void *data) argument [all...] |
/drivers/net/wireless/b43/ |
H A D | sysfs.c | 36 static int get_integer(const char *buf, size_t count) argument 41 if (count == 0) 43 count = min_t(size_t, count, 10); 44 memcpy(tmp, buf, count); 55 ssize_t count = 0; local 69 count = 74 count = 79 count = 89 return count; 92 b43_attr_interfmode_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument [all...] |
/drivers/remoteproc/ |
H A D | remoteproc_debugfs.c | 48 size_t count, loff_t *ppos) 53 return simple_read_from_buffer(userbuf, count, ppos, trace->va, len); 76 size_t count, loff_t *ppos) 88 return simple_read_from_buffer(userbuf, count, ppos, buf, i); 99 size_t count, loff_t *ppos) 108 return simple_read_from_buffer(userbuf, count, ppos, buf, i); 119 size_t count, loff_t *ppos) 124 return simple_read_from_buffer(userbuf, count, ppos, buf, strlen(buf)); 153 size_t count, loff_t *ppos) 159 if (count > sizeo 47 rproc_trace_read(struct file *filp, char __user *userbuf, size_t count, loff_t *ppos) argument 75 rproc_state_read(struct file *filp, char __user *userbuf, size_t count, loff_t *ppos) argument 98 rproc_name_read(struct file *filp, char __user *userbuf, size_t count, loff_t *ppos) argument 118 rproc_recovery_read(struct file *filp, char __user *userbuf, size_t count, loff_t *ppos) argument 152 rproc_recovery_write(struct file *filp, const char __user *user_buf, size_t count, loff_t *ppos) argument [all...] |
/drivers/gpu/drm/ |
H A D | drm_flip_work.c | 60 atomic_add(pending, &work->count); 69 uint32_t count = atomic_read(&work->count); local 72 atomic_sub(count, &work->count); 74 while(count--) 97 atomic_set(&work->count, 0);
|