Lines Matching refs:data_sz
327 int data_sz; in mptfc_GetFcDevPage0() local
341 data_sz = sizeof(FCDevicePage0_t) * max_bus * max_targ; in mptfc_GetFcDevPage0()
342 p_p0 = p0_array = kzalloc(data_sz, GFP_KERNEL); in mptfc_GetFcDevPage0()
346 data_sz = sizeof(FCDevicePage0_t *) * max_bus * max_targ; in mptfc_GetFcDevPage0()
347 p_pp0 = pp0_array = kzalloc(data_sz, GFP_KERNEL); in mptfc_GetFcDevPage0()
370 data_sz = hdr.PageLength * 4; in mptfc_GetFcDevPage0()
371 ppage0_alloc = dma_alloc_coherent(&ioc->pcidev->dev, data_sz, in mptfc_GetFcDevPage0()
407 dma_free_coherent(&ioc->pcidev->dev, data_sz, in mptfc_GetFcDevPage0()
775 int data_sz; in mptfc_GetFcPortPage0() local
801 data_sz = hdr.PageLength * 4; in mptfc_GetFcPortPage0()
803 ppage0_alloc = dma_alloc_coherent(&ioc->pcidev->dev, data_sz, in mptfc_GetFcPortPage0()
808 memset((u8 *)ppage0_alloc, 0, data_sz); in mptfc_GetFcPortPage0()
815 copy_sz = min_t(int, sizeof(FCPortPage0_t), data_sz); in mptfc_GetFcPortPage0()
858 dma_free_coherent(&ioc->pcidev->dev, data_sz, ppage0_alloc, in mptfc_GetFcPortPage0()
915 int data_sz; in mptfc_GetFcPortPage1() local
942 data_sz = hdr.PageLength * 4; in mptfc_GetFcPortPage1()
943 if (data_sz < sizeof(FCPortPage1_t)) in mptfc_GetFcPortPage1()
944 data_sz = sizeof(FCPortPage1_t); in mptfc_GetFcPortPage1()
946 page1_alloc = dma_alloc_coherent(&ioc->pcidev->dev, data_sz, in mptfc_GetFcPortPage1()
954 data_sz = ioc->fc_data.fc_port_page1[portnum].pg_sz; in mptfc_GetFcPortPage1()
955 if (hdr.PageLength * 4 > data_sz) { in mptfc_GetFcPortPage1()
957 dma_free_coherent(&ioc->pcidev->dev, data_sz, in mptfc_GetFcPortPage1()
968 ioc->fc_data.fc_port_page1[portnum].pg_sz = data_sz; in mptfc_GetFcPortPage1()
973 dma_free_coherent(&ioc->pcidev->dev, data_sz, page1_alloc, in mptfc_GetFcPortPage1()