Lines Matching refs:data_sz

290 	int			 data_sz;  in mptfc_GetFcDevPage0()  local
304 data_sz = sizeof(FCDevicePage0_t) * max_bus * max_targ; in mptfc_GetFcDevPage0()
305 p_p0 = p0_array = kzalloc(data_sz, GFP_KERNEL); in mptfc_GetFcDevPage0()
309 data_sz = sizeof(FCDevicePage0_t *) * max_bus * max_targ; in mptfc_GetFcDevPage0()
310 p_pp0 = pp0_array = kzalloc(data_sz, GFP_KERNEL); in mptfc_GetFcDevPage0()
333 data_sz = hdr.PageLength * 4; in mptfc_GetFcDevPage0()
334 ppage0_alloc = dma_alloc_coherent(&ioc->pcidev->dev, data_sz, in mptfc_GetFcDevPage0()
370 dma_free_coherent(&ioc->pcidev->dev, data_sz, in mptfc_GetFcDevPage0()
738 int data_sz; in mptfc_GetFcPortPage0() local
764 data_sz = hdr.PageLength * 4; in mptfc_GetFcPortPage0()
766 ppage0_alloc = dma_alloc_coherent(&ioc->pcidev->dev, data_sz, in mptfc_GetFcPortPage0()
771 memset((u8 *)ppage0_alloc, 0, data_sz); in mptfc_GetFcPortPage0()
778 copy_sz = min_t(int, sizeof(FCPortPage0_t), data_sz); in mptfc_GetFcPortPage0()
821 dma_free_coherent(&ioc->pcidev->dev, data_sz, ppage0_alloc, in mptfc_GetFcPortPage0()
878 int data_sz; in mptfc_GetFcPortPage1() local
905 data_sz = hdr.PageLength * 4; in mptfc_GetFcPortPage1()
906 if (data_sz < sizeof(FCPortPage1_t)) in mptfc_GetFcPortPage1()
907 data_sz = sizeof(FCPortPage1_t); in mptfc_GetFcPortPage1()
909 page1_alloc = dma_alloc_coherent(&ioc->pcidev->dev, data_sz, in mptfc_GetFcPortPage1()
917 data_sz = ioc->fc_data.fc_port_page1[portnum].pg_sz; in mptfc_GetFcPortPage1()
918 if (hdr.PageLength * 4 > data_sz) { in mptfc_GetFcPortPage1()
920 dma_free_coherent(&ioc->pcidev->dev, data_sz, in mptfc_GetFcPortPage1()
931 ioc->fc_data.fc_port_page1[portnum].pg_sz = data_sz; in mptfc_GetFcPortPage1()
936 dma_free_coherent(&ioc->pcidev->dev, data_sz, page1_alloc, in mptfc_GetFcPortPage1()