Lines Matching refs:num_fields
45 int num_fields; in mmio_mux_probe() local
56 num_fields = dev_read_size(dev, "mux-reg-masks"); in mmio_mux_probe()
57 if (num_fields < 0) in mmio_mux_probe()
60 num_fields /= sizeof(u32); in mmio_mux_probe()
61 if (num_fields == 0 || num_fields % 2) in mmio_mux_probe()
63 num_fields = num_fields / 2; in mmio_mux_probe()
65 ret = mux_alloc_controllers(dev, num_fields); in mmio_mux_probe()
69 fields = devm_kmalloc(dev, num_fields * sizeof(*fields), __GFP_ZERO); in mmio_mux_probe()
74 mux_reg_masks = devm_kmalloc(dev, num_fields * 2 * sizeof(u32), in mmio_mux_probe()
80 num_fields * 2); in mmio_mux_probe()
84 idle_states = devm_kmalloc(dev, num_fields * sizeof(u32), __GFP_ZERO); in mmio_mux_probe()
88 ret = dev_read_u32_array(dev, "idle-states", idle_states, num_fields); in mmio_mux_probe()
95 for (i = 0; i < num_fields; i++) { in mmio_mux_probe()