| /utopia/UTPA2-700.0.x/modules/usb/drv/usb_ecos/usbhost/ |
| H A D | drvConfig.c | 194 endpoint->extra = (unsigned char *) kmalloc(len, GFP_KERNEL); in usb_parse_endpoint() 250 …interface->altsetting = (struct usb_host_interface *) kmalloc(sizeof(*interface->altsetting) * int… in usb_parse_interface() 291 … ptr = (struct usb_host_interface *) kmalloc(sizeof(*ptr) * interface->max_altsetting, GFP_KERNEL); in usb_parse_interface() 342 ifp->extra = (unsigned char*) kmalloc(len, GFP_KERNEL); in usb_parse_interface() 369 kmalloc(ifp->desc.bNumEndpoints * in usb_parse_interface() 434 … config->interface[i] = (struct usb_interface *) kmalloc(sizeof(struct usb_interface), GFP_KERNEL); in usb_parse_configuration() 492 config->extra = (unsigned char*) kmalloc(len, GFP_KERNEL); in usb_parse_configuration() 568 kmalloc(dev->descriptor.bNumConfigurations * in usb_get_configuration() 577 dev->rawdescriptors = (char **)kmalloc(sizeof(char *) * in usb_get_configuration() 584 buffer = (unsigned char*) kmalloc(8, GFP_KERNEL); in usb_get_configuration() [all …]
|
| H A D | drvUsbcommon.h | 108 #define kmalloc(size, flag) pfnAllocCachedMem(size) macro 113 #define Usb_AllocateNonCachedMemory(x) kmalloc(x, 0) 115 #define Usb_AllocateCachedMemory(x) kmalloc(x, 0)
|
| H A D | drvHub.c | 1312 if ((clear = kmalloc (sizeof *clear, SLAB_ATOMIC)) == 0) { in usb_hub_tt_clear_buffer() 1765 hub->status = kmalloc(sizeof(*hub->status), GFP_KERNEL); in hub_configure() 1772 hub->descriptor = kmalloc(sizeof(*hub->descriptor), GFP_KERNEL); in hub_configure() 3251 hub = (struct usb_hub*) kmalloc(sizeof(*hub), GFP_KERNEL); in hub_probe() 7945 descriptor = (struct usb_device_descriptor*) kmalloc(sizeof *descriptor, GFP_NOIO); in usb_physical_reset_device()
|
| H A D | drvSCSI.c | 958 lpu8TempBuf = kmalloc(u32BlockSize, GFP_KERNEL); 1003 lpu8TempBuf = kmalloc(u32BlockSize, GFP_KERNEL); 1213 lpu8TempBuf = kmalloc(u32BlockSize, GFP_KERNEL); 1261 lpu8TempBuf = kmalloc(u32BlockSize, GFP_KERNEL);
|
| H A D | drvEHCI_MEM.cxx | 97 kmalloc (sizeof (struct ehci_hcd), GFP_KERNEL); in ehci_hcd_alloc() 358 ehci->pshadow = (union ehci_shadow *) kmalloc (ehci->periodic_size * sizeof (void *), flags); in ehci_mem_init()
|
| H A D | drvPCIMEM.c | 156 if (!(retval = (struct pci_pool*) kmalloc (sizeof (*retval), SLAB_KERNEL))) in pci_pool_create() 211 page = (struct pci_page *) kmalloc (mapsize + sizeof(struct pci_page), mem_flags); in pool_alloc_page()
|
| H A D | drvMsg.c | 250 …struct usb_ctrlrequest *dr = (struct usb_ctrlrequest*) kmalloc(sizeof(struct usb_ctrlrequest), GFP… in usb_control_msg() 547 tbuf = (unsigned char*) kmalloc(256, GFP_KERNEL); in usb_string()
|
| H A D | drvMassStor.c | 913 …us->Mass_stor_device=(struct LUN_Device*)kmalloc(sizeof(struct LUN_Device)*(us->max_lun+1), GFP_KE… in usb_stor_acquire_resources() 1081 us = (struct us_data *) kmalloc(sizeof(*us), GFP_KERNEL); in storage_probe()
|
| /utopia/UTPA2-700.0.x/projects/build/scripts/coccinelle/api/alloc/ |
| H A D | kzalloc-simple.cocci | 2 /// Use kzalloc rather than kmalloc followed by memset with 0 14 // Keywords: kmalloc, kzalloc 15 // Version min: < 2.6.12 kmalloc 35 * x = (T)kmalloc(E1,E2); 50 - x = (T)kmalloc(E1,E2); 67 x = (T)kmalloc@p(E1,E2); 85 msg="WARNING: kzalloc should be used for %s, instead of kmalloc/memset" % (x)
|
| H A D | drop_kmalloc_cast.cocci | 2 /// Casting (void *) value returned by kmalloc is useless 10 // Keywords: kmalloc, kzalloc, kcalloc 11 // Version min: < 2.6.12 kmalloc 30 \(kmalloc\|kzalloc\|kcalloc\)(...) 41 \(kmalloc\|kzalloc\|kcalloc\)(...) 52 (T@p *)\(kmalloc\|kzalloc\|kcalloc\)(...)
|
| /utopia/UTPA2-700.0.x/modules/usb/drv/usb_ecos/newhost/ |
| H A D | drvConfig.c | 222 kmalloc(sizeof(*pIntf->altsetting) * pIntf->max_altsetting, GFP_KERNEL); in ms_usb_parse_interface() 246 kmalloc(sizeof(*pInft_tmp) * pIntf->max_altsetting, GFP_KERNEL); in ms_usb_parse_interface() 292 kmalloc(sizeof(struct usb_host_endpoint) * in ms_usb_parse_interface() 359 …pConfig->interface[i] = (struct usb_interface *) kmalloc(sizeof(struct usb_interface), GFP_KERNEL); in ms_usb_parse_config() 463 kmalloc(dev->descriptor.bNumConfigurations * in ms_usb_get_config() 475 dev->pRawDescriptors = (char **)kmalloc(sizeof(char *) * in ms_usb_get_config() 484 pBuf = (unsigned char*) kmalloc(8, GFP_KERNEL); in ms_usb_get_config() 504 pBuf_tmp = (unsigned char*) kmalloc(len, GFP_KERNEL); in ms_usb_get_config()
|
| H A D | drvMSC.c | 916 lpu8TempBuf = kmalloc(u32BlockSize, GFP_KERNEL); 961 lpu8TempBuf = kmalloc(u32BlockSize, GFP_KERNEL); 1174 lpu8TempBuf = kmalloc(u32BlockSize, GFP_KERNEL); 1220 lpu8TempBuf = kmalloc(u32BlockSize, GFP_KERNEL);
|
| H A D | drvPCIMEM.c | 124 if (!(pPool = (struct ms_mem_pool*) kmalloc (sizeof (*pPool), SLAB_KERNEL))) in ms_mem_pool_create() 148 pPage = (struct ms_mem_page *) kmalloc (mapsize + sizeof(struct ms_mem_page), iFlags); in pool_alloc_page()
|
| H A D | drvHub.c | 538 pHub = (struct usb_hub*) kmalloc(sizeof(*pHub), GFP_KERNEL); in ms_hub_probe() 1140 d_desc = (struct usb_device_descriptor*) kmalloc(sizeof *d_desc, GFP_NOIO); in ms_usb_physical_reset_device() 1473 if ((ms_clear = kmalloc (sizeof *ms_clear, GFP_ATOMIC)) == 0) in ms_usb_hub_tt_clear_buffer()
|
| H A D | drvMsg.c | 272 …struct usb_ctrlrequest *dr = (struct usb_ctrlrequest*) kmalloc(sizeof(struct usb_ctrlrequest), GFP… in ms_usb_control_cmd() 708 pTmp_buf = (unsigned char*) kmalloc(256, GFP_KERNEL); in ms_usb_string()
|
| H A D | drvUSB.c | 138 if (!(pCbuf = (char*) kmalloc(256, GFP_KERNEL))) 401 pUdev = (struct usb_device*) kmalloc(sizeof(*pUdev), GFP_KERNEL); in ms_usb_alloc_dev()
|
| H A D | drvMassStor.c | 467 …ms_us->msc_device=(struct LUN_Device*)kmalloc(sizeof(struct LUN_Device)*(ms_us->max_lun+1), GFP_KE… in ms_usb_acquire_resources() 538 ms_us = (struct ms_usdata *) kmalloc(sizeof(*ms_us), GFP_KERNEL); in ms_usb_msc_probe()
|
| /utopia/UTPA2-700.0.x/projects/build/scripts/coccinelle/null/ |
| H A D | kmerr.cocci | 1 /// This semantic patch looks for kmalloc etc that are not followed by a 4 /// in determining what the error handling code for the call to kmalloc etc 37 *x@p1 = \(kmalloc\|kzalloc\|kcalloc\)(...); 53 x@p1 = \(kmalloc\|kzalloc\|kcalloc\)(...);
|
| H A D | eno.cocci | 17 x = \(kmalloc\|kzalloc\|kcalloc\|kmem_cache_alloc\|kmem_cache_zalloc\|kmem_cache_alloc_node\|kmallo…
|
| /utopia/UTPA2-700.0.x/modules/hwi2c/utopia_adaption/hwi2c/ |
| H A D | HWI2C_adp.c | 179 tmp.pRegAddr = kmalloc(sizeof(MS_U8)*tmp_compat.uAddrCnt,GFP_KERNEL); in HWI2C_adp_Ioctl() 180 tmp.pData = kmalloc(sizeof(MS_U8)*tmp_compat.uSize,GFP_KERNEL); in HWI2C_adp_Ioctl() 222 tmpr.pRegAddr = kmalloc(sizeof(MS_U8)*tmpr_compat.uAddrCnt,GFP_KERNEL); in HWI2C_adp_Ioctl() 223 tmpr.pData = kmalloc(sizeof(MS_U8)*tmpr_compat.uSize,GFP_KERNEL); in HWI2C_adp_Ioctl()
|
| /utopia/UTPA2-700.0.x/projects/build/scripts/coccinelle/api/ |
| H A D | memdup.cocci | 19 to = \(kmalloc@p\|kzalloc@p\)(strlen(from) + 1,flag); 29 to = \(kmalloc@p\|kzalloc@p\)(x,flag); 37 - to = \(kmalloc@p\|kzalloc@p\)(size,flag);
|
| H A D | kstrdup.cocci | 19 - to = kmalloc(strlen(from) + 1,flag); 34 - to = \(kmalloc\|kzalloc\)(x,flag);
|
| H A D | memdup_user.cocci | 20 - to = \(kmalloc@p\|kzalloc@p\)(size,flag);
|
| /utopia/UTPA2-700.0.x/mxlib/include/ |
| H A D | drvUsbcommon.h | 107 #define kmalloc(size, flag) pfnAllocCachedMem(size) macro 112 #define Usb_AllocateNonCachedMemory(x) kmalloc(x, 0) 114 #define Usb_AllocateCachedMemory(x) kmalloc(x, 0)
|
| /utopia/UTPA2-700.0.x/projects/tmplib/include/ |
| H A D | drvUsbcommon.h | 107 #define kmalloc(size, flag) pfnAllocCachedMem(size) macro 112 #define Usb_AllocateNonCachedMemory(x) kmalloc(x, 0) 114 #define Usb_AllocateCachedMemory(x) kmalloc(x, 0)
|