Lines Matching refs:partition
89 * There are two VIRTUAL partitions (the memory partition and the
90 * registers partition), which are mapped to two different areas of the
93 * memory partition comes before the register partition, but the opposite is
124 struct wl1251_partition_set *partition;
126 partition = kmalloc(sizeof(*partition), GFP_KERNEL);
127 if (!partition) {
128 wl1251_error("can not allocate partition buffer");
141 " address range. Truncating partition[0].");
151 /* Guarantee that the memory partition doesn't overlap the
152 * registers partition */
153 wl1251_debug(DEBUG_SPI, "End of partition[0] is "
154 "overlapping partition[1]. Adjusted.");
162 /* Guarantee that the register partition doesn't overlap the
163 * memory partition */
164 wl1251_debug(DEBUG_SPI, "End of partition[1] is"
165 " overlapping partition[0]. Adjusted.");
173 partition->mem.start = mem_start;
174 partition->mem.size = mem_size;
175 partition->reg.start = reg_start;
176 partition->reg.size = reg_size;
184 wl->if_ops->write(wl, HW_ACCESS_PART0_SIZE_ADDR, partition,
185 sizeof(*partition));
187 kfree(partition);