Lines Matching defs:pdata
37 slave.m_master >= dw->pdata->nr_masters ||
38 slave.p_master >= dw->pdata->nr_masters ||
39 slave.channels >= BIT(dw->pdata->nr_channels)))
52 struct dw_dma_platform_data *pdata;
67 pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL);
68 if (!pdata)
71 pdata->nr_masters = nr_masters;
72 pdata->nr_channels = nr_channels;
74 of_property_read_u32(np, "chan_allocation_order", &pdata->chan_allocation_order);
75 of_property_read_u32(np, "chan_priority", &pdata->chan_priority);
77 of_property_read_u32(np, "block_size", &pdata->block_size);
82 pdata->data_width[tmp] = BIT(arr[tmp] & 0x07);
86 of_property_read_u32_array(np, "data-width", pdata->data_width, nr_masters);
88 memset32(pdata->multi_block, 1, nr_channels);
89 of_property_read_u32_array(np, "multi-block", pdata->multi_block, nr_channels);
91 memset32(pdata->max_burst, DW_DMA_MAX_BURST, nr_channels);
92 of_property_read_u32_array(np, "snps,max-burst-len", pdata->max_burst, nr_channels);
94 of_property_read_u32(np, "snps,dma-protection-control", &pdata->protctl);
95 if (pdata->protctl > CHAN_PROTCTL_MASK)
98 return pdata;