Searched defs:part (Results 1 - 25 of 44) sorted by relevance

12

/drivers/acpi/acpica/
H A Dutmath.c68 struct uint64_struct part; member in union:uint64_overlay
112 ACPI_DIV_64_BY_32(0, dividend_ovl.part.hi, divisor,
113 quotient.part.hi, remainder32);
114 ACPI_DIV_64_BY_32(remainder32, dividend_ovl.part.lo, divisor,
115 quotient.part.lo, remainder32);
169 if (divisor.part.hi == 0) {
174 remainder.part.hi = 0;
180 ACPI_DIV_64_BY_32(0, dividend.part.hi, divisor.part.lo,
181 quotient.part
[all...]
/drivers/char/
H A Dgeneric_nvram.c100 int part, offset; local
104 if (copy_from_user(&part, (void __user*)arg, sizeof(part)) != 0)
106 if (part < pmac_nvram_OF || part > pmac_nvram_NR)
108 offset = pmac_get_partition(part);
/drivers/gpu/drm/nouveau/
H A Dnvc0_vram.c114 int ret, part; local
123 for (part = 0; part < parts; part++) {
124 if (!(pmask & (1 << part))) {
125 u32 psize = nv_rd32(dev, 0x11020c + (part * 0x1000));
132 NV_DEBUG(dev, "%d: mem_amount 0x%08x\n", part, psize);
H A Dnouveau_sgdma.c222 u32 part = (cnt > max) ? max : cnt; local
223 nv44_sgdma_fill(pgt, list, pte, part);
224 pte += (part << 2);
225 list += part;
226 cnt -= part;
258 u32 part = (cnt > max) ? max : cnt; local
259 nv44_sgdma_fill(pgt, NULL, pte, part);
260 pte += (part << 2);
261 cnt -= part;
/drivers/isdn/hisax/
H A Dhscx.c261 inithscxisac(struct IsdnCardState *cs, int part) argument
263 if (part & 1) {
269 if (part & 2) {
H A Dipacx.c885 // Work to do depends on bit mask in part
888 init_ipacx(struct IsdnCardState *cs, int part) argument
890 if (part & 1) { // initialise chip
892 // printk(KERN_INFO "init_ipacx(%x)\n", part);
899 if (part & 2) { // reenable all interrupts and start chip
H A Dw6692.c899 static void initW6692(struct IsdnCardState *cs, int part) argument
901 if (part & 1) {
920 if (part & 2) {
/drivers/macintosh/
H A Dnvram.c84 int part, offset; local
85 if (copy_from_user(&part, (void __user*)arg, sizeof(part)) != 0)
87 if (part < pmac_nvram_OF || part > pmac_nvram_NR)
89 offset = pmac_get_partition(part);
H A Dsmu.c1020 const struct smu_sdbp_header *part; local
1037 part = of_get_property(smu->of_node, pname, size);
1038 if (part == NULL) {
1040 part = smu_create_sdb_partition(id);
1041 if (part != NULL && size)
1042 *size = part->len << 2;
1045 return part;
1128 const struct smu_sdbp_header *part; local
1129 part = __smu_get_sdb_partition(hdr.cmd, NULL, 1);
1130 if (part
[all...]
/drivers/mtd/
H A Dofpart.c104 } *part; local
114 part = of_get_property(dp, "partitions", &plen);
115 if (!part)
121 nr_parts = plen / sizeof(part[0]);
130 (*pparts)[i].offset = be32_to_cpu(part->offset);
131 (*pparts)[i].size = be32_to_cpu(part->len) & ~1;
133 if (be32_to_cpu(part->len) & 1)
146 part++;
H A Dcmdlinepart.c322 struct cmdline_mtd_partition *part; local
329 for(part = partitions; part; part = part->next)
331 if ((!mtd_id) || (!strcmp(part->mtd_id, mtd_id)))
333 for(i = 0, offset = 0; i < part->num_parts; i++)
335 if (part->parts[i].offset == OFFSET_CONTINUOUS)
336 part->parts[i].offset = offset;
338 offset = part
[all...]
H A Drfd_ftl.c92 static int build_block_map(struct partition *part, int block_no) argument
94 struct block *block = &part->blocks[block_no];
97 block->offset = part->block_size * block_no;
99 if (le16_to_cpu(part->header_cache[0]) != RFD_MAGIC) {
106 for (i=0; i<part->data_sectors_per_block; i++) {
109 entry = le16_to_cpu(part->header_cache[HEADER_MAP_OFFSET + i]);
122 if (entry >= part->sector_count) {
126 part->mbd.mtd->name, block_no, i, entry);
130 if (part->sector_map[entry] != -1) {
133 part
150 scan_header(struct partition *part) argument
243 struct partition *part = (struct partition*)dev; local
271 struct partition *part; local
326 erase_block(struct partition *part, int block) argument
357 move_block_contents(struct partition *part, int block_no, u_long *old_sector) argument
445 reclaim_block(struct partition *part, u_long *old_sector) argument
517 find_free_block(struct partition *part) argument
541 find_writable_block(struct partition *part, u_long *old_sector) argument
583 mark_sector_deleted(struct partition *part, u_long old_addr) argument
621 find_free_sector(const struct partition *part, const struct block *block) argument
642 struct partition *part = (struct partition*)dev; local
710 struct partition *part = (struct partition*)dev; local
751 struct partition *part = (struct partition*)dev; local
762 struct partition *part; local
807 struct partition *part = (struct partition*)dev; local
[all...]
H A Dftl.c158 static int scan_header(partition_t *part) argument
164 part->header.FormattedSize = 0;
165 max_offset = (0x100000<part->mbd.mtd->size)?0x100000:part->mbd.mtd->size;
169 offset += part->mbd.mtd->erasesize ? : 0x2000) {
171 err = mtd_read(part->mbd.mtd, offset, sizeof(header), &ret,
190 if ((1 << header.EraseUnitSize) != part->mbd.mtd->erasesize) {
192 1 << header.EraseUnitSize,part->mbd.mtd->erasesize);
195 part->header = header;
199 static int build_maps(partition_t *part) argument
334 erase_xfer(partition_t *part, uint16_t xfernum) argument
377 partition_t *part; local
406 prepare_xfer(partition_t *part, int i) argument
464 copy_erase_unit(partition_t *part, uint16_t srcunit, uint16_t xferunit) argument
608 reclaim_block(partition_t *part) argument
715 dump_lists(partition_t *part) argument
727 find_free(partition_t *part) argument
788 ftl_read(partition_t *part, caddr_t buffer, u_long sector, u_long nblocks) argument
834 set_bam_entry(partition_t *part, uint32_t log_addr, uint32_t virt_addr) argument
902 ftl_write(partition_t *part, caddr_t buffer, u_long sector, u_long nblocks) argument
984 partition_t *part = (void *)dev; local
1012 partition_t *part = (void *)dev; local
1034 ftl_freepart(partition_t *part) argument
[all...]
H A Dmtdpart.c63 struct mtd_part *part = PART(mtd); local
67 stats = part->master->ecc_stats;
68 res = part->master->_read(part->master, from + part->offset, len,
72 mtd->ecc_stats.corrected += part->master->ecc_stats.corrected - stats.corrected;
74 mtd->ecc_stats.failed += part->master->ecc_stats.failed - stats.failed;
82 struct mtd_part *part = PART(mtd); local
84 return part->master->_point(part
90 struct mtd_part *part = PART(mtd); local
100 struct mtd_part *part = PART(mtd); local
110 struct mtd_part *part = PART(mtd); local
148 struct mtd_part *part = PART(mtd); local
156 struct mtd_part *part = PART(mtd); local
163 struct mtd_part *part = PART(mtd); local
171 struct mtd_part *part = PART(mtd); local
178 struct mtd_part *part = PART(mtd); local
186 struct mtd_part *part = PART(mtd); local
194 struct mtd_part *part = PART(mtd); local
206 struct mtd_part *part = PART(mtd); local
214 struct mtd_part *part = PART(mtd); local
221 struct mtd_part *part = PART(mtd); local
228 struct mtd_part *part = PART(mtd); local
244 struct mtd_part *part = PART(instr->mtd); local
257 struct mtd_part *part = PART(mtd); local
263 struct mtd_part *part = PART(mtd); local
269 struct mtd_part *part = PART(mtd); local
275 struct mtd_part *part = PART(mtd); local
281 struct mtd_part *part = PART(mtd); local
287 struct mtd_part *part = PART(mtd); local
293 struct mtd_part *part = PART(mtd); local
300 struct mtd_part *part = PART(mtd); local
342 allocate_partition(struct mtd_info *master, const struct mtd_partition *part, int partno, uint64_t cur_offset) argument
537 struct mtd_partition part; local
747 struct mtd_part *part; local
[all...]
/drivers/misc/sgi-xp/
H A Dxpc_channel.c12 * This is the part of XPC that manages the channels and
82 struct xpc_partition *part = &xpc_partitions[ch->partid]; local
101 if (part->act_state == XPC_P_AS_DEACTIVATING) {
157 atomic_dec(&part->nchannels_active);
168 if (part->act_state != XPC_P_AS_DEACTIVATING) {
170 spin_lock(&part->chctl_lock);
171 part->chctl.flags[ch->number] |=
173 spin_unlock(&part->chctl_lock);
183 xpc_process_openclose_chctl_flags(struct xpc_partition *part, int ch_number, argument
188 &part
546 xpc_process_sent_chctl_flags(struct xpc_partition *part) argument
617 xpc_partition_going_down(struct xpc_partition *part, enum xp_retval reason) argument
658 struct xpc_partition *part; local
714 struct xpc_partition *part; local
875 struct xpc_partition *part = &xpc_partitions[partid]; local
926 struct xpc_partition *part = &xpc_partitions[partid]; local
1000 struct xpc_partition *part = &xpc_partitions[partid]; local
[all...]
H A Dxpc_partition.c12 * This is the part of XPC that detects the presence/absence of
270 xpc_partition_disengaged(struct xpc_partition *part) argument
272 short partid = XPC_PARTID(part);
276 if (part->disengage_timeout) {
278 if (time_is_after_jiffies(part->disengage_timeout)) {
294 part->disengage_timeout = 0;
298 del_singleshot_timer_sync(&part->disengage_timer);
300 DBUG_ON(part->act_state != XPC_P_AS_DEACTIVATING &&
301 part->act_state != XPC_P_AS_INACTIVE);
302 if (part
314 xpc_mark_partition_active(struct xpc_partition *part) argument
338 xpc_deactivate_partition(const int line, struct xpc_partition *part, enum xp_retval reason) argument
386 xpc_mark_partition_inactive(struct xpc_partition *part) argument
528 struct xpc_partition *part; local
[all...]
H A Dxpc_main.c15 * partition This part detects the presence/absence of other
19 * channel This part manages the channels and sends/receives
63 .init_name = "", /* set to "part" at xpc_init() time */
173 struct xpc_partition *part = (struct xpc_partition *)data; local
175 DBUG_ON(time_is_after_jiffies(part->disengage_timeout));
177 (void)xpc_partition_disengaged(part);
179 DBUG_ON(part->disengage_timeout != 0);
180 DBUG_ON(xpc_arch_ops.partition_engaged(XPC_PARTID(part)));
223 struct xpc_partition *part; local
235 part
343 xpc_channel_mgr(struct xpc_partition *part) argument
404 xpc_setup_ch_structures(struct xpc_partition *part) argument
495 xpc_teardown_ch_structures(struct xpc_partition *part) argument
537 struct xpc_partition *part = &xpc_partitions[partid]; local
587 xpc_activate_partition(struct xpc_partition *part) argument
651 xpc_kthread_waitmsgs(struct xpc_partition *part, struct xpc_channel *ch) argument
688 struct xpc_partition *part = &xpc_partitions[partid]; local
780 struct xpc_partition *part = &xpc_partitions[ch->partid]; local
854 struct xpc_partition *part; local
903 struct xpc_partition *part; local
955 struct xpc_partition *part; local
1089 struct xpc_partition *part; local
[all...]
/drivers/block/
H A Dz2ram.c335 static struct kobject *z2_find(dev_t dev, int *part, void *data) argument
337 *part = 0;
H A Dbrd.c542 static struct kobject *brd_probe(dev_t dev, int *part, void *data) argument
552 *part = 0;
/drivers/net/ethernet/sfc/
H A Dmtd.c57 struct efx_mtd_partition part[0]; member in struct:efx_mtd
60 #define efx_for_each_partition(part, efx_mtd) \
61 for ((part) = &(efx_mtd)->part[0]; \
62 (part) != &(efx_mtd)->part[(efx_mtd)->n_parts]; \
63 (part)++)
74 efx_spi_slow_wait(struct efx_mtd_partition *part, bool uninterruptible) argument
76 struct efx_mtd *efx_mtd = part->mtd.priv;
96 pr_err("%s: timed out waiting for %s\n", part
136 efx_spi_erase(struct efx_mtd_partition *part, loff_t start, size_t len) argument
204 struct efx_mtd_partition *part = to_efx_mtd_partition(mtd); local
214 efx_mtd_remove_partition(struct efx_mtd_partition *part) argument
229 struct efx_mtd_partition *part; local
239 struct efx_mtd_partition *part; local
254 struct efx_mtd_partition *part; local
320 struct efx_mtd_partition *part = to_efx_mtd_partition(mtd); local
338 struct efx_mtd_partition *part = to_efx_mtd_partition(mtd); local
355 struct efx_mtd_partition *part = to_efx_mtd_partition(mtd); local
373 struct efx_mtd_partition *part = to_efx_mtd_partition(mtd); local
463 struct efx_mtd_partition *part = to_efx_mtd_partition(mtd); local
487 struct efx_mtd_partition *part = to_efx_mtd_partition(mtd); local
519 struct efx_mtd_partition *part = to_efx_mtd_partition(mtd); local
550 struct efx_mtd_partition *part = to_efx_mtd_partition(mtd); local
595 struct efx_mtd_partition *part = &efx_mtd->part[part_id]; local
629 struct efx_mtd_partition *part; local
[all...]
/drivers/block/aoe/
H A Daoecmd.c725 struct hd_struct *part; local
729 part = disk_map_sector_rcu(disk, sector);
731 part_stat_inc(cpu, part, ios[rw]);
732 part_stat_add(cpu, part, ticks[rw], duration);
733 part_stat_add(cpu, part, sectors[rw], n_sect);
734 part_stat_add(cpu, part, io_ticks, duration);
/drivers/ide/
H A Dide-probe.c882 static struct kobject *ata_probe(dev_t dev, int *part, void *data) argument
885 int unit = *part >> PARTN_BITS;
903 static struct kobject *exact_match(dev_t dev, int *part, void *data) argument
906 *part &= (1 << PARTN_BITS) - 1;
/drivers/sn/
H A Dioc3.c280 unsigned char data[64],part[32]; local
288 /* assemble the part # */
292 part[j++] = data[i+11];
295 part[j++] = data[i+32];
296 part[j] = 0;
298 if(!strncmp(part, "060-0035-", 9))
300 if(!strncmp(part, "060-0038-", 9))
302 strcpy(idd->nic_part, part);
600 printk(KERN_INFO "IOC3 part: [%s], serial: [%s] => class %s\n",
/drivers/acpi/apei/
H A Derst.c938 u64 *id, unsigned int part,
1058 u64 *id, unsigned int part,
1057 erst_writer(enum pstore_type_id type, enum kmsg_dump_reason reason, u64 *id, unsigned int part, size_t size, struct pstore_info *psi) argument
/drivers/firmware/
H A Defivars.c98 * space in each part of the structure,
657 unsigned int part, size; local
666 if (sscanf(name, "dump-type%u-%u-%lu", type, &part, &time) == 3) {
667 *id = part;
690 unsigned int part, size_t size, struct pstore_info *psi)
700 sprintf(stub_name, "dump-type%u-%u-", type, part);
752 *id = part;
783 unsigned int part, size_t size, struct pstore_info *psi)
688 efi_pstore_write(enum pstore_type_id type, enum kmsg_dump_reason reason, u64 *id, unsigned int part, size_t size, struct pstore_info *psi) argument
781 efi_pstore_write(enum pstore_type_id type, enum kmsg_dump_reason reason, u64 *id, unsigned int part, size_t size, struct pstore_info *psi) argument

Completed in 1461 milliseconds

12