Home
last modified time | relevance | path

Searched refs:lenp (Results 1 – 16 of 16) sorted by relevance

/drivers/parport/
Dprocfs.c36 void __user *result, size_t *lenp, loff_t *ppos) in do_active_device() argument
47 *lenp = 0; in do_active_device()
61 if (len > *lenp) in do_active_device()
62 len = *lenp; in do_active_device()
64 *lenp = len; in do_active_device()
73 void __user *result, size_t *lenp, loff_t *ppos) in do_autoprobe() argument
84 *lenp = 0; in do_autoprobe()
103 if (len > *lenp) in do_autoprobe()
104 len = *lenp; in do_autoprobe()
106 *lenp = len; in do_autoprobe()
[all …]
/drivers/staging/lustre/lnet/lnet/
Drouter_proc.c125 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_lnet_stats() argument
127 return lprocfs_call_handler(table->data, write, ppos, buffer, lenp, in proc_lnet_stats()
132 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_lnet_routes() argument
149 if (!*lenp) in proc_lnet_routes()
237 if (len > *lenp) { /* linux-supplied buffer is too small */ in proc_lnet_routes()
251 *lenp = len; in proc_lnet_routes()
257 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_lnet_routers() argument
272 if (!*lenp) in proc_lnet_routers()
374 if (len > *lenp) { /* linux-supplied buffer is too small */ in proc_lnet_routers()
388 *lenp = len; in proc_lnet_routers()
[all …]
/drivers/staging/lustre/lnet/libcfs/
Dmodule.c164 void __user *buffer, size_t *lenp, in lprocfs_call_handler() argument
168 int rc = handler(data, write, *ppos, buffer, *lenp); in lprocfs_call_handler()
174 *ppos += *lenp; in lprocfs_call_handler()
176 *lenp = rc; in lprocfs_call_handler()
225 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_dobitmasks() argument
227 return lprocfs_call_handler(table->data, write, ppos, buffer, lenp, in proc_dobitmasks()
241 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_dump_kernel() argument
243 return lprocfs_call_handler(table->data, write, ppos, buffer, lenp, in proc_dump_kernel()
264 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_daemon_file() argument
266 return lprocfs_call_handler(table->data, write, ppos, buffer, lenp, in proc_daemon_file()
[all …]
/drivers/cpufreq/
Dpmac32-cpufreq.c480 int lenp, rc; in pmac_cpufreq_init_MacRISC3() local
483 freqs = of_get_property(cpunode, "bus-frequencies", &lenp); in pmac_cpufreq_init_MacRISC3()
484 lenp /= sizeof(u32); in pmac_cpufreq_init_MacRISC3()
485 if (freqs == NULL || lenp != 2) { in pmac_cpufreq_init_MacRISC3()
/drivers/macintosh/
Dmac_hid.c185 void __user *buffer, size_t *lenp, in mac_hid_toggle_emumouse() argument
196 rc = proc_dointvec(table, write, buffer, lenp, ppos); in mac_hid_toggle_emumouse()
/drivers/of/
Dbase.c223 const char *name, int *lenp) in __of_find_property() argument
232 if (lenp) in __of_find_property()
233 *lenp = pp->length; in __of_find_property()
243 int *lenp) in of_find_property() argument
249 pp = __of_find_property(np, name, lenp); in of_find_property()
300 const char *name, int *lenp) in __of_get_property() argument
302 struct property *pp = __of_find_property(np, name, lenp); in __of_get_property()
312 int *lenp) in of_get_property() argument
314 struct property *pp = of_find_property(np, name, lenp); in of_get_property()
Dof_private.h69 const char *name, int *lenp);
/drivers/tty/
Dmoxa.c749 unsigned int a, lenp, lencnt; in moxa_load_fw() local
801 lenp = 0; /* bios */ in moxa_load_fw()
805 ret = moxa_load_bios(brd, ptr, lens[lenp]); in moxa_load_fw()
810 ptr += lens[lenp] + lens[lenp + 1]; in moxa_load_fw()
811 lenp += 2; /* comm */ in moxa_load_fw()
814 ret = moxa_load_320b(brd, ptr, lens[lenp]); in moxa_load_fw()
818 ptr += lens[lenp] + lens[lenp + 1]; in moxa_load_fw()
819 lenp += 2; in moxa_load_fw()
822 ret = moxa_load_code(brd, ptr, lens[lenp]); in moxa_load_fw()
/drivers/crypto/nx/
Dnx.c375 unsigned int bytes_so_far, i, lenp; in nx_of_update_msc() local
378 lenp = p->length; in nx_of_update_msc()
386 while ((bytes_so_far + sizeof(struct max_sync_cop)) <= lenp) { in nx_of_update_msc()
392 ((bytes_so_far + sizeof(struct msc_triplet)) <= lenp) && in nx_of_update_msc()
/drivers/staging/lustre/include/linux/libcfs/
Dlibcfs.h141 void __user *buffer, size_t *lenp,
/drivers/char/
Drandom.c1942 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_do_uuid() argument
1965 return proc_dostring(&fake_table, write, buffer, lenp, ppos); in proc_do_uuid()
1972 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_do_entropy() argument
1982 return proc_dointvec(&fake_table, write, buffer, lenp, ppos); in proc_do_entropy()
/drivers/net/ethernet/freescale/fman/
Dfman_port.c1629 int err = 0, lenp; in fman_port_probe() local
1670 if (of_find_property(port_node, "fsl,fman-10g-port", &lenp)) in fman_port_probe()
1683 if (of_find_property(port_node, "fsl,fman-10g-port", &lenp)) in fman_port_probe()
/drivers/cdrom/
Dcdrom.c3481 void __user *buffer, size_t *lenp, loff_t *ppos) in cdrom_sysctl_info() argument
3487 if (!*lenp || (*ppos && !write)) { in cdrom_sysctl_info()
3488 *lenp = 0; in cdrom_sysctl_info()
3557 return proc_dostring(ctl, write, buffer, lenp, ppos); in cdrom_sysctl_info()
3594 void __user *buffer, size_t *lenp, loff_t *ppos) in cdrom_sysctl_handler() argument
3598 ret = proc_dointvec(ctl, write, buffer, lenp, ppos); in cdrom_sysctl_handler()
/drivers/net/ethernet/ti/
Dcpsw.c2376 int lenp; in cpsw_probe_dt() local
2385 parp = of_get_property(slave_node, "phy_id", &lenp); in cpsw_probe_dt()
2406 if (lenp != (sizeof(__be32) * 2)) { in cpsw_probe_dt()
/drivers/block/
Drbd.c5617 static inline char *dup_token(const char **buf, size_t *lenp) in dup_token() argument
5629 if (lenp) in dup_token()
5630 *lenp = len; in dup_token()
/drivers/infiniband/hw/hfi1/
Dchip.c5145 static int append_str(char *buf, char **curp, int *lenp, const char *s) in append_str() argument
5148 int len = *lenp; in append_str()
5175 *lenp = len; in append_str()