Home
last modified time | relevance | path

Searched refs:heads (Results 1 - 25 of 245) sorted by relevance

12345678910

/kernel/liteos_a/fs/jffs2/src/
H A Djffs2_hash.c35 int Jffs2HashInit(LosMux *lock, LOS_DL_LIST *heads) in Jffs2HashInit() argument
39 LOS_ListInit(&heads[i]); in Jffs2HashInit()
63 void Jffs2HashDump(LosMux *lock, LOS_DL_LIST *heads) in Jffs2HashDump() argument
68 LIST_HEAD *nhead = &heads[i]; in Jffs2HashDump()
79 static LOS_DL_LIST *Jffs2HashBucket(LOS_DL_LIST *heads, const uint32_t ino) in Jffs2HashBucket() argument
81 LOS_DL_LIST *head = &(heads[ino & JFFS2_NODE_HASH_MASK]); in Jffs2HashBucket()
85 int Jffs2HashGet(LosMux *lock, LOS_DL_LIST *heads, const void *sb, const uint32_t ino, struct jffs2_inode **ppNode) in Jffs2HashGet() argument
91 LOS_DL_LIST *list = Jffs2HashBucket(heads, ino); in Jffs2HashGet()
114 int Jffs2HashInsert(LosMux *lock, LOS_DL_LIST *heads, struct jffs2_inode *node, const uint32_t ino) in Jffs2HashInsert() argument
117 LOS_ListHeadInsert(Jffs2HashBucket(heads, in in Jffs2HashInsert()
[all...]
/kernel/liteos_a/fs/jffs2/include/
H A Djffs2_hash.h45 int Jffs2HashInit(LosMux *lock, LOS_DL_LIST *heads);
47 void Jffs2HashDump(LosMux *lock, LOS_DL_LIST *heads);
48 int Jffs2HashGet(LosMux *lock, LOS_DL_LIST *heads, const void *sb, const uint32_t ino, struct jffs2_inode **ppNode);
50 int Jffs2HashInsert(LosMux *lock, LOS_DL_LIST *heads, struct jffs2_inode *node, const uint32_t ino);
/kernel/linux/linux-5.10/drivers/mtd/
H A Dssfdc.c22 unsigned char heads; member
317 ssfdc->heads = 16; in ssfdcr_add_mtd()
319 get_chs(mtd->size, NULL, &ssfdc->heads, &ssfdc->sectors); in ssfdcr_add_mtd()
321 ((long)ssfdc->sectors * (long)ssfdc->heads)); in ssfdcr_add_mtd()
324 ssfdc->cylinders, ssfdc->heads , ssfdc->sectors, in ssfdcr_add_mtd()
325 (long)ssfdc->cylinders * (long)ssfdc->heads * in ssfdcr_add_mtd()
328 ssfdc->mbd.size = (long)ssfdc->heads * (long)ssfdc->cylinders * in ssfdcr_add_mtd()
411 ssfdc->cylinders, ssfdc->heads, ssfdc->sectors); in ssfdcr_getgeo()
413 geo->heads = ssfdc->heads; in ssfdcr_getgeo()
[all...]
H A Dnftlcore.c68 nftl->heads = 16; in nftl_add_mtd()
70 temp = nftl->cylinders * nftl->heads; in nftl_add_mtd()
75 nftl->heads = nftl->mbd.size / temp; in nftl_add_mtd()
78 nftl->heads++; in nftl_add_mtd()
79 temp = nftl->heads * nftl->sectors; in nftl_add_mtd()
84 if (nftl->mbd.size != nftl->heads * nftl->cylinders * nftl->sectors) { in nftl_add_mtd()
87 mbd.size == heads * cylinders * sectors in nftl_add_mtd()
93 nftl->cylinders, nftl->heads , nftl->sectors, in nftl_add_mtd()
94 (long)nftl->cylinders * (long)nftl->heads * in nftl_add_mtd()
771 geo->heads in nftl_getgeo()
[all...]
H A Dinftlcore.c75 inftl->heads = 16; in inftl_add_mtd()
77 temp = inftl->cylinders * inftl->heads; in inftl_add_mtd()
82 inftl->heads = inftl->mbd.size / temp; in inftl_add_mtd()
85 inftl->heads++; in inftl_add_mtd()
86 temp = inftl->heads * inftl->sectors; in inftl_add_mtd()
91 if (inftl->mbd.size != inftl->heads * inftl->cylinders * inftl->sectors) { in inftl_add_mtd()
94 mbd.size == heads * cylinders * sectors in inftl_add_mtd()
100 inftl->cylinders, inftl->heads , inftl->sectors, in inftl_add_mtd()
101 (long)inftl->cylinders * (long)inftl->heads * in inftl_add_mtd()
920 geo->heads in inftl_getgeo()
[all...]
/kernel/linux/linux-6.6/drivers/mtd/
H A Dssfdc.c22 unsigned char heads; member
317 ssfdc->heads = 16; in ssfdcr_add_mtd()
319 get_chs(mtd->size, NULL, &ssfdc->heads, &ssfdc->sectors); in ssfdcr_add_mtd()
321 ((long)ssfdc->sectors * (long)ssfdc->heads)); in ssfdcr_add_mtd()
324 ssfdc->cylinders, ssfdc->heads , ssfdc->sectors, in ssfdcr_add_mtd()
325 (long)ssfdc->cylinders * (long)ssfdc->heads * in ssfdcr_add_mtd()
328 ssfdc->mbd.size = (long)ssfdc->heads * (long)ssfdc->cylinders * in ssfdcr_add_mtd()
411 ssfdc->cylinders, ssfdc->heads, ssfdc->sectors); in ssfdcr_getgeo()
413 geo->heads = ssfdc->heads; in ssfdcr_getgeo()
[all...]
H A Dnftlcore.c68 nftl->heads = 16; in nftl_add_mtd()
70 temp = nftl->cylinders * nftl->heads; in nftl_add_mtd()
75 nftl->heads = nftl->mbd.size / temp; in nftl_add_mtd()
78 nftl->heads++; in nftl_add_mtd()
79 temp = nftl->heads * nftl->sectors; in nftl_add_mtd()
84 if (nftl->mbd.size != nftl->heads * nftl->cylinders * nftl->sectors) { in nftl_add_mtd()
87 mbd.size == heads * cylinders * sectors in nftl_add_mtd()
93 nftl->cylinders, nftl->heads , nftl->sectors, in nftl_add_mtd()
94 (long)nftl->cylinders * (long)nftl->heads * in nftl_add_mtd()
770 geo->heads in nftl_getgeo()
[all...]
H A Dinftlcore.c75 inftl->heads = 16; in inftl_add_mtd()
77 temp = inftl->cylinders * inftl->heads; in inftl_add_mtd()
82 inftl->heads = inftl->mbd.size / temp; in inftl_add_mtd()
85 inftl->heads++; in inftl_add_mtd()
86 temp = inftl->heads * inftl->sectors; in inftl_add_mtd()
91 if (inftl->mbd.size != inftl->heads * inftl->cylinders * inftl->sectors) { in inftl_add_mtd()
94 mbd.size == heads * cylinders * sectors in inftl_add_mtd()
100 inftl->cylinders, inftl->heads , inftl->sectors, in inftl_add_mtd()
101 (long)inftl->cylinders * (long)inftl->heads * in inftl_add_mtd()
920 geo->heads in inftl_getgeo()
[all...]
/kernel/linux/linux-5.10/drivers/scsi/
H A Dscsicam.c51 * scsi_partsize - Parse cylinders/heads/sectors from PC partition table
168 * number of heads and maximizes the number of cylinders. This
169 * will support rather large disks before the number of heads
180 unsigned long heads, sectors, cylinders, temp; in setsize() local
185 temp = cylinders * sectors; /* Compute divisor for heads */ in setsize()
186 heads = capacity / temp; /* Compute value for number of heads */ in setsize()
188 heads++; /* Else, increment number of heads */ in setsize()
189 temp = cylinders * heads; /* Comput in setsize()
[all...]
/kernel/linux/linux-6.6/drivers/scsi/
H A Dscsicam.c50 * scsi_partsize - Parse cylinders/heads/sectors from PC partition table
167 * number of heads and maximizes the number of cylinders. This
168 * will support rather large disks before the number of heads
179 unsigned long heads, sectors, cylinders, temp; in setsize() local
184 temp = cylinders * sectors; /* Compute divisor for heads */ in setsize()
185 heads = capacity / temp; /* Compute value for number of heads */ in setsize()
187 heads++; /* Else, increment number of heads */ in setsize()
188 temp = cylinders * heads; /* Comput in setsize()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/engine/disp/
H A Dhead.c35 list_for_each_entry(head, &disp->heads, head) { in nvkm_head_find()
64 list_add_tail(&head->head, &disp->heads); in nvkm_head_new_()
/kernel/linux/linux-6.6/net/xdp/
H A Dxsk_buff_pool.c41 kvfree(pool->heads); in xp_destroy()
68 pool->heads = kvcalloc(umem->chunks, sizeof(*pool->heads), GFP_KERNEL); in xp_create_and_assign_umem()
69 if (!pool->heads) in xp_create_and_assign_umem()
99 xskb = &pool->heads[i]; in xp_create_and_assign_umem()
122 pool->heads[i].xdp.rxq = rxq; in xp_set_rxq_info()
401 struct xdp_buff_xsk *xskb = &pool->heads[i]; in xp_init_dma_info()
520 xskb = &pool->heads[xp_aligned_extract_idx(pool, addr)]; in __xp_alloc()
587 xskb = &pool->heads[xp_aligned_extract_idx(pool, addr)]; in xp_alloc_new_from_fq()
/kernel/linux/linux-5.10/tools/perf/scripts/python/
H A Dcompaction-times.py109 heads = {} variable in chead
121 head = cls.heads[pid]
126 head = cls.heads[pid] = chead(comm, pid, filtered)
133 head = cls.heads[pid]
142 head = cls.heads[pid]
152 for i in cls.heads:
153 yield cls.heads[i]
/kernel/linux/linux-6.6/tools/perf/scripts/python/
H A Dcompaction-times.py109 heads = {} variable in chead
121 head = cls.heads[pid]
126 head = cls.heads[pid] = chead(comm, pid, filtered)
133 head = cls.heads[pid]
142 head = cls.heads[pid]
152 for i in cls.heads:
153 yield cls.heads[i]
/kernel/linux/linux-5.10/drivers/block/paride/
H A Dpd.c44 a logical geometry with 64 heads and 32 sectors
228 int heads; /* physical geometry */ member
351 h = (block /= disk->sectors) % disk->heads; in pd_ide_command()
352 c0 = (block /= disk->heads) % 256; in pd_ide_command()
638 pd_send_command(disk, disk->sectors, 0, disk->heads - 1, 0, 0, in pd_init_dev_parms()
721 disk->heads = le16_to_cpu(*(__le16 *) (pd_scratch + 6)); in pd_identify()
726 disk->capacity = disk->sectors * disk->heads * disk->cylinders; in pd_identify()
742 disk->cylinders, disk->heads, disk->sectors, in pd_identify()
811 geo->heads = PD_LOG_HEADS; in pd_getgeo()
813 geo->cylinders = disk->capacity / (geo->heads * ge in pd_getgeo()
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/bus/
H A Dhwsq.c139 u32 heads, x, y, px = 0; in nvkm_hwsq_wait_vblank() local
142 heads = nvkm_rd32(device, 0x610050); in nvkm_hwsq_wait_vblank()
145 if (heads & (2 << (i << 3))) { in nvkm_hwsq_wait_vblank()
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/subdev/bus/
H A Dhwsq.c139 u32 heads, x, y, px = 0; in nvkm_hwsq_wait_vblank() local
142 heads = nvkm_rd32(device, 0x610050); in nvkm_hwsq_wait_vblank()
145 if (heads & (2 << (i << 3))) { in nvkm_hwsq_wait_vblank()
/kernel/linux/linux-5.10/net/xdp/
H A Dxsk_buff_pool.c40 kvfree(pool->heads); in xp_destroy()
56 pool->heads = kvcalloc(umem->chunks, sizeof(*pool->heads), GFP_KERNEL); in xp_create_and_assign_umem()
57 if (!pool->heads) in xp_create_and_assign_umem()
81 xskb = &pool->heads[i]; in xp_create_and_assign_umem()
99 pool->heads[i].xdp.rxq = rxq; in xp_set_rxq_info()
/kernel/linux/linux-5.10/drivers/gpu/drm/qxl/
H A Dqxl_display.c56 heads, count), GFP_KERNEL); in qxl_alloc_client_monitors_config()
106 &qdev->rom->client_monitors_config.heads[i]; in qxl_display_copy_rom_client_monitors_config()
108 &qdev->client_monitors_config->heads[i]; in qxl_display_copy_rom_client_monitors_config()
154 head = &qdev->client_monitors_config->heads[output->index]; in qxl_update_offset_props()
261 head = &qdev->client_monitors_config->heads[h]; in qxl_add_monitors_config_modes()
298 struct qxl_head *head = &qdev->monitors_config->heads[i]; in qxl_send_monitors_config()
355 if (head.width == qdev->monitors_config->heads[i].width && in qxl_crtc_update_monitors_config()
356 head.height == qdev->monitors_config->heads[i].height && in qxl_crtc_update_monitors_config()
357 head.x == qdev->monitors_config->heads[i].x && in qxl_crtc_update_monitors_config()
358 head.y == qdev->monitors_config->heads[ in qxl_crtc_update_monitors_config()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/qxl/
H A Dqxl_display.c60 heads, count), GFP_KERNEL); in qxl_alloc_client_monitors_config()
110 &qdev->rom->client_monitors_config.heads[i]; in qxl_display_copy_rom_client_monitors_config()
112 &qdev->client_monitors_config->heads[i]; in qxl_display_copy_rom_client_monitors_config()
158 head = &qdev->client_monitors_config->heads[output->index]; in qxl_update_offset_props()
265 head = &qdev->client_monitors_config->heads[h]; in qxl_add_monitors_config_modes()
302 struct qxl_head *head = &qdev->monitors_config->heads[i]; in qxl_send_monitors_config()
359 if (head.width == qdev->monitors_config->heads[i].width && in qxl_crtc_update_monitors_config()
360 head.height == qdev->monitors_config->heads[i].height && in qxl_crtc_update_monitors_config()
361 head.x == qdev->monitors_config->heads[i].x && in qxl_crtc_update_monitors_config()
362 head.y == qdev->monitors_config->heads[ in qxl_crtc_update_monitors_config()
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/
H A Dmemx.c129 u32 heads, x, y, px = 0; in nvkm_memx_wait_vblank() local
133 heads = nvkm_rd32(device, 0x610050); in nvkm_memx_wait_vblank()
136 if (heads & (2 << (i << 3))) { in nvkm_memx_wait_vblank()
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/
H A Dmemx.c129 u32 heads, x, y, px = 0; in nvkm_memx_wait_vblank() local
133 heads = nvkm_rd32(device, 0x610050); in nvkm_memx_wait_vblank()
136 if (heads & (2 << (i << 3))) { in nvkm_memx_wait_vblank()
/kernel/linux/linux-6.6/drivers/vhost/
H A Dnet.c116 * For RX, number of batched heads
368 if (vq->heads[i].len == VHOST_DMA_FAILED_LEN) in vhost_zerocopy_signal_used()
370 if (VHOST_DMA_IS_DONE(vq->heads[i].len)) { in vhost_zerocopy_signal_used()
371 vq->heads[i].len = VHOST_DMA_CLEAR_LEN; in vhost_zerocopy_signal_used()
379 &vq->heads[nvq->done_idx], add); in vhost_zerocopy_signal_used()
396 vq->heads[ubuf->desc].len = success ? in vhost_zerocopy_callback()
458 vhost_add_used_and_signal_n(dev, vq, vq->heads, nvq->done_idx); in vhost_net_signal_used()
851 vq->heads[nvq->done_idx].id = cpu_to_vhost32(vq, head); in handle_tx_copy()
852 vq->heads[nvq->done_idx].len = 0; in handle_tx_copy()
910 vq->heads[nv in handle_tx_zerocopy()
1046 get_rx_bufs(struct vhost_virtqueue *vq, struct vring_used_elem *heads, int datalen, unsigned *iovcount, struct vhost_log *log, unsigned *log_num, unsigned int quota) get_rx_bufs() argument
[all...]
/kernel/linux/linux-5.10/block/partitions/
H A Dacorn.c200 (dr->heads + (dr->lowsector & 0x40 ? 1 : 0)) * in adfspart_check_CUMANA()
252 unsigned long start_sect, nr_sects, sectscyl, heads; in adfspart_check_ADFS() local
269 heads = dr->heads + ((dr->lowsector >> 6) & 1); in adfspart_check_ADFS()
270 sectscyl = dr->secspertrack * heads; in adfspart_check_ADFS()
/kernel/linux/linux-5.10/drivers/ide/
H A Dide-floppy.c324 u8 heads, sectors; in ide_floppy_get_flexible_disk_page() local
346 heads = buf[8 + 4]; in ide_floppy_get_flexible_disk_page()
349 capacity = cyls * heads * sectors * sector_size; in ide_floppy_get_flexible_disk_page()
354 drive->name, capacity / 1024, cyls, heads, in ide_floppy_get_flexible_disk_page()
359 drive->bios_head = heads; in ide_floppy_get_flexible_disk_page()

Completed in 23 milliseconds

12345678910