Home
last modified time | relevance | path

Searched refs:namelen (Results 1 – 18 of 18) sorted by relevance

/drivers/xen/xenfs/
Dxensyms.c19 uint32_t namelen; member
29 memset(xs->name, 0, xs->namelen); in xensyms_next_sym()
30 symdata->namelen = xs->namelen; in xensyms_next_sym()
42 if (unlikely(symdata->namelen > xs->namelen)) { in xensyms_next_sym()
45 xs->namelen = symdata->namelen; in xensyms_next_sym()
46 xs->name = kzalloc(xs->namelen, GFP_KERNEL); in xensyms_next_sym()
125 xs->namelen = XEN_KSYM_NAME_LEN + 1; in xensyms_open()
126 xs->name = kzalloc(xs->namelen, GFP_KERNEL); in xensyms_open()
133 xs->op.u.symdata.namelen = xs->namelen; in xensyms_open()
/drivers/char/xillybus/
Dxillybus_class.c57 size_t namelen; in xillybus_init_chrdev() local
112 namelen = strnlen(idt, len); in xillybus_init_chrdev()
114 if (namelen == len) { in xillybus_init_chrdev()
123 len -= namelen + 1; in xillybus_init_chrdev()
124 idt += namelen + 1; in xillybus_init_chrdev()
/drivers/gpu/drm/
Ddrm_print.c356 int namelen = 0; in drm_print_regset32() local
360 namelen = max(namelen, (int)strlen(regset->regs[i].name)); in drm_print_regset32()
364 namelen, regset->regs[i].name, in drm_print_regset32()
/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dfwil.c302 u32 namelen; in brcmf_create_bsscfg() local
310 namelen = strlen(name) + 1; /* length of iovar name + null */ in brcmf_create_bsscfg()
311 iolen = prefixlen + namelen + sizeof(bsscfgidx_le) + datalen; in brcmf_create_bsscfg()
325 memcpy(p, name, namelen); in brcmf_create_bsscfg()
326 p += namelen; in brcmf_create_bsscfg()
/drivers/mtd/parsers/
Dredboot.c84 int namelen = 0; in parse_redboot_partitions() local
207 namelen += strlen(buf[i].name) + 1; in parse_redboot_partitions()
242 parts = kzalloc(sizeof(*parts) * nrparts + nulllen + namelen, GFP_KERNEL); in parse_redboot_partitions()
/drivers/gpu/drm/nouveau/include/nvif/
Dif0021.h8 __u8 namelen; member
Dif0020.h8 __u8 namelen; member
/drivers/video/fbdev/core/
Dmodedb.c650 unsigned int namelen = strlen(name); in fb_find_mode() local
658 for (i = namelen-1; i >= 0; i--) { in fb_find_mode()
661 namelen = i; in fb_find_mode()
673 namelen = i; in fb_find_mode()
782 if ((name_matches(db[i], name, namelen) || in fb_find_mode()
/drivers/misc/
Dfastrpc.c1244 u32 namelen; in fastrpc_init_create_static_process() member
1258 if (init.namelen > INIT_FILE_NAMELEN_MAX) { in fastrpc_init_create_static_process()
1263 name = kzalloc(init.namelen, GFP_KERNEL); in fastrpc_init_create_static_process()
1269 if (copy_from_user(name, (void __user *)(uintptr_t)init.name, init.namelen)) { in fastrpc_init_create_static_process()
1298 inbuf.namelen = init.namelen; in fastrpc_init_create_static_process()
1307 args[1].length = inbuf.namelen; in fastrpc_init_create_static_process()
1368 u32 namelen; in fastrpc_init_create_process() member
1400 inbuf.namelen = strlen(current->comm) + 1; in fastrpc_init_create_process()
1426 args[1].length = inbuf.namelen; in fastrpc_init_create_process()
/drivers/gpu/drm/nouveau/nvkm/engine/fifo/
Ducgrp.c94 if (args->v0.namelen != argc) in nvkm_ucgrp_new()
Duchan.c337 if (args->v0.namelen != argc) in nvkm_uchan_new()
/drivers/md/
Dmd-cluster.c187 int ret, namelen; in lockres_init() local
198 namelen = strlen(name); in lockres_init()
199 res->name = kzalloc(namelen + 1, GFP_KERNEL); in lockres_init()
204 strscpy(res->name, name, namelen + 1); in lockres_init()
Dmd.c4751 size_t namelen = len-9; in metadata_store() local
4752 if (namelen >= sizeof(mddev->metadata_type)) in metadata_store()
4753 namelen = sizeof(mddev->metadata_type)-1; in metadata_store()
4754 strncpy(mddev->metadata_type, buf+9, namelen); in metadata_store()
4755 mddev->metadata_type[namelen] = 0; in metadata_store()
4756 if (namelen && mddev->metadata_type[namelen-1] == '\n') in metadata_store()
4757 mddev->metadata_type[--namelen] = 0; in metadata_store()
Draid5.c2429 size_t namelen = sizeof(conf->cache_name[0]); in grow_stripes() local
2433 snprintf(conf->cache_name[0], namelen, in grow_stripes()
2436 snprintf(conf->cache_name[0], namelen, in grow_stripes()
2438 snprintf(conf->cache_name[1], namelen, "%.27s-alt", conf->cache_name[0]); in grow_stripes()
/drivers/net/ethernet/chelsio/cxgb4vf/
Dcxgb4vf_main.c351 int namelen = sizeof(adapter->msix_info[0].desc) - 1; in name_msix_vecs() local
357 snprintf(adapter->msix_info[MSIX_FW].desc, namelen, in name_msix_vecs()
359 adapter->msix_info[MSIX_FW].desc[namelen] = 0; in name_msix_vecs()
370 snprintf(adapter->msix_info[msi].desc, namelen, in name_msix_vecs()
372 adapter->msix_info[msi].desc[namelen] = 0; in name_msix_vecs()
/drivers/video/fbdev/
Dpxafb.c1856 unsigned int namelen = strlen(name); in parse_opt_mode() local
1861 for (i = namelen-1; i >= 0; i--) { in parse_opt_mode()
1864 namelen = i; in parse_opt_mode()
/drivers/gpu/drm/nouveau/
Dnouveau_chan.c308 args.chan.namelen = sizeof(args.name); in nouveau_channel_ctor()
/drivers/gpu/drm/display/
Ddrm_dp_mst_topology.c4803 int namelen) in fetch_monitor_name() argument
4808 drm_edid_get_monitor_name(mst_edid, name, namelen); in fetch_monitor_name()