| /kernel/linux/linux-5.10/fs/nfsd/ |
| D | nfs4idmap.c | 62 struct ent { struct 79 struct ent *new = container_of(cnew, struct ent, h); in ent_init() argument 80 struct ent *itm = container_of(citm, struct ent, h); in ent_init() 92 struct ent *map = container_of(ref, struct ent, h.ref); in ent_put() 99 struct ent *e = kmalloc(sizeof(*e), GFP_KERNEL); in ent_alloc() 111 idtoname_hash(struct ent *ent) in idtoname_hash() argument 115 hash = hash_str(ent->authname, ENT_HASHBITS); in idtoname_hash() 116 hash = hash_long(hash ^ ent->id, ENT_HASHBITS); in idtoname_hash() 119 if (ent->type == IDMAP_TYPE_GROUP) in idtoname_hash() 135 struct ent *ent = container_of(ch, struct ent, h); in idtoname_request() local [all …]
|
| /kernel/linux/linux-6.6/fs/nfsd/ |
| D | nfs4idmap.c | 63 struct ent { struct 80 struct ent *new = container_of(cnew, struct ent, h); in ent_init() argument 81 struct ent *itm = container_of(citm, struct ent, h); in ent_init() 93 struct ent *map = container_of(ref, struct ent, h.ref); in ent_put() 100 struct ent *e = kmalloc(sizeof(*e), GFP_KERNEL); in ent_alloc() 112 idtoname_hash(struct ent *ent) in idtoname_hash() argument 116 hash = hash_str(ent->authname, ENT_HASHBITS); in idtoname_hash() 117 hash = hash_long(hash ^ ent->id, ENT_HASHBITS); in idtoname_hash() 120 if (ent->type == IDMAP_TYPE_GROUP) in idtoname_hash() 136 struct ent *ent = container_of(ch, struct ent, h); in idtoname_request() local [all …]
|
| /kernel/linux/linux-6.6/drivers/scsi/qla2xxx/ |
| D | qla_tmpl.c | 123 qla27xx_skip_entry(struct qla27xx_fwdt_entry *ent, void *buf) in qla27xx_skip_entry() argument 126 ent->hdr.driver_flags |= DRIVER_FLAG_SKIP_ENTRY; in qla27xx_skip_entry() 130 qla27xx_next_entry(struct qla27xx_fwdt_entry *ent) in qla27xx_next_entry() argument 132 return (void *)ent + le32_to_cpu(ent->hdr.size); in qla27xx_next_entry() 137 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t0() argument 141 qla27xx_skip_entry(ent, buf); in qla27xx_fwdt_entry_t0() 143 return qla27xx_next_entry(ent); in qla27xx_fwdt_entry_t0() 148 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t255() argument 152 qla27xx_skip_entry(ent, buf); in qla27xx_fwdt_entry_t255() 160 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t256() argument [all …]
|
| /kernel/linux/linux-5.10/drivers/scsi/qla2xxx/ |
| D | qla_tmpl.c | 123 qla27xx_skip_entry(struct qla27xx_fwdt_entry *ent, void *buf) in qla27xx_skip_entry() argument 126 ent->hdr.driver_flags |= DRIVER_FLAG_SKIP_ENTRY; in qla27xx_skip_entry() 130 qla27xx_next_entry(struct qla27xx_fwdt_entry *ent) in qla27xx_next_entry() argument 132 return (void *)ent + le32_to_cpu(ent->hdr.size); in qla27xx_next_entry() 137 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t0() argument 141 qla27xx_skip_entry(ent, buf); in qla27xx_fwdt_entry_t0() 143 return qla27xx_next_entry(ent); in qla27xx_fwdt_entry_t0() 148 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t255() argument 152 qla27xx_skip_entry(ent, buf); in qla27xx_fwdt_entry_t255() 160 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t256() argument [all …]
|
| /kernel/linux/linux-6.6/drivers/nubus/ |
| D | nubus.c | 249 struct nubus_dirent ent; in nubus_get_board_dir() local 257 if (nubus_readdir(dir, &ent) == -1) in nubus_get_board_dir() 259 if (nubus_get_subdir(&ent, dir) == -1) in nubus_get_board_dir() 265 int nubus_get_subdir(const struct nubus_dirent *ent, in nubus_get_subdir() argument 268 dir->ptr = dir->base = nubus_dirptr(ent); in nubus_get_subdir() 270 dir->mask = ent->mask; in nubus_get_subdir() 275 int nubus_readdir(struct nubus_dir *nd, struct nubus_dirent *ent) in nubus_readdir() argument 283 ent->base = nd->ptr; in nubus_readdir() 296 ent->type = resid >> 24; in nubus_readdir() 298 ent->data = resid & 0xffffff; in nubus_readdir() [all …]
|
| /kernel/linux/linux-5.10/drivers/nubus/ |
| D | nubus.c | 242 struct nubus_dirent ent; in nubus_get_board_dir() local 250 if (nubus_readdir(dir, &ent) == -1) in nubus_get_board_dir() 252 if (nubus_get_subdir(&ent, dir) == -1) in nubus_get_board_dir() 258 int nubus_get_subdir(const struct nubus_dirent *ent, in nubus_get_subdir() argument 261 dir->ptr = dir->base = nubus_dirptr(ent); in nubus_get_subdir() 263 dir->mask = ent->mask; in nubus_get_subdir() 268 int nubus_readdir(struct nubus_dir *nd, struct nubus_dirent *ent) in nubus_readdir() argument 276 ent->base = nd->ptr; in nubus_readdir() 289 ent->type = resid >> 24; in nubus_readdir() 291 ent->data = resid & 0xffffff; in nubus_readdir() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/ |
| D | cmd.c | 119 struct mlx5_cmd_work_ent *ent; in cmd_alloc_ent() local 121 ent = kzalloc(sizeof(*ent), alloc_flags); in cmd_alloc_ent() 122 if (!ent) in cmd_alloc_ent() 125 ent->idx = -EINVAL; in cmd_alloc_ent() 126 ent->in = in; in cmd_alloc_ent() 127 ent->out = out; in cmd_alloc_ent() 128 ent->uout = uout; in cmd_alloc_ent() 129 ent->uout_size = uout_size; in cmd_alloc_ent() 130 ent->callback = cbk; in cmd_alloc_ent() 131 ent->context = context; in cmd_alloc_ent() [all …]
|
| /kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/ |
| D | mr.c | 112 static void queue_adjust_cache_locked(struct mlx5_cache_ent *ent); 138 struct mlx5_cache_ent *ent = mr->cache_ent; in create_mkey_callback() local 144 spin_lock_irqsave(&ent->lock, flags); in create_mkey_callback() 145 ent->pending--; in create_mkey_callback() 147 spin_unlock_irqrestore(&ent->lock, flags); in create_mkey_callback() 158 spin_lock_irqsave(&ent->lock, flags); in create_mkey_callback() 159 list_add_tail(&mr->list, &ent->head); in create_mkey_callback() 160 ent->available_mrs++; in create_mkey_callback() 161 ent->total_mrs++; in create_mkey_callback() 163 queue_adjust_cache_locked(ent); in create_mkey_callback() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
| D | cmd.c | 78 struct mlx5_cmd_work_ent *ent; in cmd_alloc_ent() local 80 ent = kzalloc(sizeof(*ent), alloc_flags); in cmd_alloc_ent() 81 if (!ent) in cmd_alloc_ent() 84 ent->idx = -EINVAL; in cmd_alloc_ent() 85 ent->in = in; in cmd_alloc_ent() 86 ent->out = out; in cmd_alloc_ent() 87 ent->uout = uout; in cmd_alloc_ent() 88 ent->uout_size = uout_size; in cmd_alloc_ent() 89 ent->callback = cbk; in cmd_alloc_ent() 90 ent->context = context; in cmd_alloc_ent() [all …]
|
| /kernel/linux/linux-6.6/drivers/infiniband/hw/mlx5/ |
| D | mr.c | 112 struct mlx5_ib_dev *dev = async_create->ent->dev; in mlx5_ib_create_mkey_cb() 125 static void queue_adjust_cache_locked(struct mlx5_cache_ent *ent); 147 static int push_mkey_locked(struct mlx5_cache_ent *ent, bool limit_pendings, in push_mkey_locked() argument 150 XA_STATE(xas, &ent->mkeys, 0); in push_mkey_locked() 154 (ent->reserved - ent->stored) > MAX_PENDING_REG_MR) in push_mkey_locked() 163 xas_set(&xas, ent->reserved); in push_mkey_locked() 166 if (to_store && ent->stored == ent->reserved) in push_mkey_locked() 171 ent->reserved++; in push_mkey_locked() 173 if (ent->stored != ent->reserved) in push_mkey_locked() 174 __xa_store(&ent->mkeys, in push_mkey_locked() [all …]
|
| /kernel/linux/linux-6.6/fs/ocfs2/ |
| D | filecheck.c | 208 ocfs2_filecheck_erase_entries(struct ocfs2_filecheck_sysfs_entry *ent, 211 ocfs2_filecheck_adjust_max(struct ocfs2_filecheck_sysfs_entry *ent, in ocfs2_filecheck_adjust_max() argument 219 spin_lock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_adjust_max() 220 if (len < (ent->fs_fcheck->fc_size - ent->fs_fcheck->fc_done)) { in ocfs2_filecheck_adjust_max() 224 len, ent->fs_fcheck->fc_size - ent->fs_fcheck->fc_done); in ocfs2_filecheck_adjust_max() 227 if (len < ent->fs_fcheck->fc_size) in ocfs2_filecheck_adjust_max() 228 BUG_ON(!ocfs2_filecheck_erase_entries(ent, in ocfs2_filecheck_adjust_max() 229 ent->fs_fcheck->fc_size - len)); in ocfs2_filecheck_adjust_max() 231 ent->fs_fcheck->fc_max = len; in ocfs2_filecheck_adjust_max() 234 spin_unlock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_adjust_max() [all …]
|
| /kernel/linux/linux-5.10/fs/ocfs2/ |
| D | filecheck.c | 209 ocfs2_filecheck_erase_entries(struct ocfs2_filecheck_sysfs_entry *ent, 212 ocfs2_filecheck_adjust_max(struct ocfs2_filecheck_sysfs_entry *ent, in ocfs2_filecheck_adjust_max() argument 220 spin_lock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_adjust_max() 221 if (len < (ent->fs_fcheck->fc_size - ent->fs_fcheck->fc_done)) { in ocfs2_filecheck_adjust_max() 225 len, ent->fs_fcheck->fc_size - ent->fs_fcheck->fc_done); in ocfs2_filecheck_adjust_max() 228 if (len < ent->fs_fcheck->fc_size) in ocfs2_filecheck_adjust_max() 229 BUG_ON(!ocfs2_filecheck_erase_entries(ent, in ocfs2_filecheck_adjust_max() 230 ent->fs_fcheck->fc_size - len)); in ocfs2_filecheck_adjust_max() 232 ent->fs_fcheck->fc_max = len; in ocfs2_filecheck_adjust_max() 235 spin_unlock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_adjust_max() [all …]
|
| /kernel/linux/linux-6.6/lib/ |
| D | error-inject.c | 26 struct ei_entry *ent; in within_error_injection_list() local 30 list_for_each_entry(ent, &error_injection_list, list) { in within_error_injection_list() 31 if (addr >= ent->start_addr && addr < ent->end_addr) { in within_error_injection_list() 42 struct ei_entry *ent; in get_injectable_error_type() local 46 list_for_each_entry(ent, &error_injection_list, list) { in get_injectable_error_type() 47 if (addr >= ent->start_addr && addr < ent->end_addr) { in get_injectable_error_type() 48 ei_type = ent->etype; in get_injectable_error_type() 69 struct ei_entry *ent; in populate_error_injection_list() local 83 ent = kmalloc(sizeof(*ent), GFP_KERNEL); in populate_error_injection_list() 84 if (!ent) in populate_error_injection_list() [all …]
|
| /kernel/linux/linux-5.10/lib/ |
| D | error-inject.c | 25 struct ei_entry *ent; in within_error_injection_list() local 29 list_for_each_entry(ent, &error_injection_list, list) { in within_error_injection_list() 30 if (addr >= ent->start_addr && addr < ent->end_addr) { in within_error_injection_list() 41 struct ei_entry *ent; in get_injectable_error_type() local 43 list_for_each_entry(ent, &error_injection_list, list) { in get_injectable_error_type() 44 if (addr >= ent->start_addr && addr < ent->end_addr) in get_injectable_error_type() 45 return ent->etype; in get_injectable_error_type() 62 struct ei_entry *ent; in populate_error_injection_list() local 76 ent = kmalloc(sizeof(*ent), GFP_KERNEL); in populate_error_injection_list() 77 if (!ent) in populate_error_injection_list() [all …]
|
| /kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/ |
| D | memtrace.c | 43 struct memtrace_entry *ent = filp->private_data; in memtrace_read() local 45 return simple_read_from_buffer(ubuf, count, ppos, ent->mem, ent->size); in memtrace_read() 200 struct memtrace_entry *ent = &memtrace_array[i]; in memtrace_init_debugfs() local 202 ent->mem = ioremap(ent->start, ent->size); in memtrace_init_debugfs() 204 if (!ent->mem) { in memtrace_init_debugfs() 206 ent->start); in memtrace_init_debugfs() 211 snprintf(ent->name, 16, "%08x", ent->nid); in memtrace_init_debugfs() 212 dir = debugfs_create_dir(ent->name, memtrace_debugfs_dir); in memtrace_init_debugfs() 214 ent->dir = dir; in memtrace_init_debugfs() 215 debugfs_create_file("trace", 0400, dir, ent, &memtrace_fops); in memtrace_init_debugfs() [all …]
|
| D | opal-xscom.c | 90 struct scom_debug_entry *ent = filp->private_data; in scom_debug_read() local 103 rc = opal_scom_read(ent->chip, reg_base, reg, &val); in scom_debug_read() 121 struct scom_debug_entry *ent = filp->private_data; in scom_debug_write() local 136 rc = opal_scom_write(ent->chip, reg_base, reg, val); in scom_debug_write() 158 struct scom_debug_entry *ent; in scom_debug_init_one() local 161 ent = kzalloc(sizeof(*ent), GFP_KERNEL); in scom_debug_init_one() 162 if (!ent) in scom_debug_init_one() 165 ent->chip = chip; in scom_debug_init_one() 166 snprintf(ent->name, 16, "%08x", chip); in scom_debug_init_one() 167 ent->path.data = (void *)kasprintf(GFP_KERNEL, "%pOF", dn); in scom_debug_init_one() [all …]
|
| /kernel/linux/linux-5.10/drivers/scsi/ |
| D | esp_scsi.c | 190 "ent[%d] %s val[%02x] sreg[%02x] seqreg[%02x] " in esp_dump_cmd_log() 404 static dma_addr_t esp_cur_dma_addr(struct esp_cmd_entry *ent, in esp_cur_dma_addr() argument 409 if (ent->flags & ESP_CMD_FLAG_AUTOSENSE) { in esp_cur_dma_addr() 410 return ent->sense_dma + in esp_cur_dma_addr() 411 (ent->sense_ptr - cmd->sense_buffer); in esp_cur_dma_addr() 419 static unsigned int esp_cur_dma_len(struct esp_cmd_entry *ent, in esp_cur_dma_len() argument 424 if (ent->flags & ESP_CMD_FLAG_AUTOSENSE) { in esp_cur_dma_len() 426 (ent->sense_ptr - cmd->sense_buffer); in esp_cur_dma_len() 431 static void esp_advance_dma(struct esp *esp, struct esp_cmd_entry *ent, in esp_advance_dma() argument 436 if (ent->flags & ESP_CMD_FLAG_AUTOSENSE) { in esp_advance_dma() [all …]
|
| /kernel/linux/linux-6.6/drivers/scsi/ |
| D | esp_scsi.c | 190 "ent[%d] %s val[%02x] sreg[%02x] seqreg[%02x] " in esp_dump_cmd_log() 404 static dma_addr_t esp_cur_dma_addr(struct esp_cmd_entry *ent, in esp_cur_dma_addr() argument 409 if (ent->flags & ESP_CMD_FLAG_AUTOSENSE) { in esp_cur_dma_addr() 410 return ent->sense_dma + in esp_cur_dma_addr() 411 (ent->sense_ptr - cmd->sense_buffer); in esp_cur_dma_addr() 419 static unsigned int esp_cur_dma_len(struct esp_cmd_entry *ent, in esp_cur_dma_len() argument 424 if (ent->flags & ESP_CMD_FLAG_AUTOSENSE) { in esp_cur_dma_len() 426 (ent->sense_ptr - cmd->sense_buffer); in esp_cur_dma_len() 431 static void esp_advance_dma(struct esp *esp, struct esp_cmd_entry *ent, in esp_advance_dma() argument 436 if (ent->flags & ESP_CMD_FLAG_AUTOSENSE) { in esp_advance_dma() [all …]
|
| /kernel/linux/linux-6.6/arch/powerpc/platforms/powernv/ |
| D | memtrace.c | 43 struct memtrace_entry *ent = filp->private_data; in memtrace_read() local 45 return simple_read_from_buffer(ubuf, count, ppos, ent->mem, ent->size); in memtrace_read() 50 struct memtrace_entry *ent = filp->private_data; in memtrace_mmap() local 51 unsigned long ent_nrpages = ent->size >> PAGE_SHIFT; in memtrace_mmap() 63 return remap_pfn_range(vma, vma->vm_start, PHYS_PFN(ent->start) + vma->vm_pgoff, in memtrace_mmap() 194 struct memtrace_entry *ent = &memtrace_array[i]; in memtrace_init_debugfs() local 196 ent->mem = ioremap(ent->start, ent->size); in memtrace_init_debugfs() 198 if (!ent->mem) { in memtrace_init_debugfs() 200 ent->start); in memtrace_init_debugfs() 205 snprintf(ent->name, 16, "%08x", ent->nid); in memtrace_init_debugfs() [all …]
|
| D | opal-xscom.c | 90 struct scom_debug_entry *ent = filp->private_data; in scom_debug_read() local 103 rc = opal_scom_read(ent->chip, reg_base, reg, &val); in scom_debug_read() 121 struct scom_debug_entry *ent = filp->private_data; in scom_debug_write() local 136 rc = opal_scom_write(ent->chip, reg_base, reg, val); in scom_debug_write() 158 struct scom_debug_entry *ent; in scom_debug_init_one() local 161 ent = kzalloc(sizeof(*ent), GFP_KERNEL); in scom_debug_init_one() 162 if (!ent) in scom_debug_init_one() 165 ent->chip = chip; in scom_debug_init_one() 166 snprintf(ent->name, 16, "%08x", chip); in scom_debug_init_one() 167 ent->path.data = (void *)kasprintf(GFP_KERNEL, "%pOF", dn); in scom_debug_init_one() [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
| D | i2c.c | 75 u16 ent = dcb_i2c_entry(bios, idx, &ver, &len); in dcb_i2c_parse() local 76 if (ent) { in dcb_i2c_parse() 78 u32 ent_value = nvbios_rd32(bios, ent); in dcb_i2c_parse() 88 info->type = nvbios_rd08(bios, ent + 0x03); in dcb_i2c_parse() 90 info->type = nvbios_rd08(bios, ent + 0x03) & 0x07; in dcb_i2c_parse() 102 info->drive = nvbios_rd08(bios, ent + 0); in dcb_i2c_parse() 103 info->sense = nvbios_rd08(bios, ent + 1); in dcb_i2c_parse() 106 info->drive = nvbios_rd08(bios, ent + 1); in dcb_i2c_parse() 109 info->drive = nvbios_rd08(bios, ent + 0) & 0x0f; in dcb_i2c_parse() 110 if (nvbios_rd08(bios, ent + 1) & 0x01) in dcb_i2c_parse() [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
| D | i2c.c | 75 u16 ent = dcb_i2c_entry(bios, idx, &ver, &len); in dcb_i2c_parse() local 76 if (ent) { in dcb_i2c_parse() 78 u32 ent_value = nvbios_rd32(bios, ent); in dcb_i2c_parse() 88 info->type = nvbios_rd08(bios, ent + 0x03); in dcb_i2c_parse() 90 info->type = nvbios_rd08(bios, ent + 0x03) & 0x07; in dcb_i2c_parse() 102 info->drive = nvbios_rd08(bios, ent + 0); in dcb_i2c_parse() 103 info->sense = nvbios_rd08(bios, ent + 1); in dcb_i2c_parse() 106 info->drive = nvbios_rd08(bios, ent + 1); in dcb_i2c_parse() 109 info->drive = nvbios_rd08(bios, ent + 0) & 0x0f; in dcb_i2c_parse() 110 if (nvbios_rd08(bios, ent + 1) & 0x01) in dcb_i2c_parse() [all …]
|
| /kernel/linux/linux-6.6/Documentation/userspace-api/media/mediactl/ |
| D | media-types.rst | 11 .. _MEDIA-ENT-F-UNKNOWN: 12 .. _MEDIA-ENT-F-V4L2-SUBDEV-UNKNOWN: 13 .. _MEDIA-ENT-F-IO-V4L: 14 .. _MEDIA-ENT-F-IO-VBI: 15 .. _MEDIA-ENT-F-IO-SWRADIO: 16 .. _MEDIA-ENT-F-IO-DTV: 17 .. _MEDIA-ENT-F-DTV-DEMOD: 18 .. _MEDIA-ENT-F-TS-DEMUX: 19 .. _MEDIA-ENT-F-DTV-CA: 20 .. _MEDIA-ENT-F-DTV-NET-DECAP: [all …]
|
| /kernel/linux/linux-6.6/fs/proc/ |
| D | generic.c | 396 struct proc_dir_entry *ent = NULL; in __proc_create() local 425 ent = kmem_cache_zalloc(proc_dir_entry_cache, GFP_KERNEL); in __proc_create() 426 if (!ent) in __proc_create() 430 ent->name = ent->inline_name; in __proc_create() 432 ent->name = kmalloc(qstr.len + 1, GFP_KERNEL); in __proc_create() 433 if (!ent->name) { in __proc_create() 434 pde_free(ent); in __proc_create() 439 memcpy(ent->name, fn, qstr.len + 1); in __proc_create() 440 ent->namelen = qstr.len; in __proc_create() 441 ent->mode = mode; in __proc_create() [all …]
|
| /kernel/linux/linux-5.10/fs/proc/ |
| D | generic.c | 402 struct proc_dir_entry *ent = NULL; in __proc_create() local 431 ent = kmem_cache_zalloc(proc_dir_entry_cache, GFP_KERNEL); in __proc_create() 432 if (!ent) in __proc_create() 436 ent->name = ent->inline_name; in __proc_create() 438 ent->name = kmalloc(qstr.len + 1, GFP_KERNEL); in __proc_create() 439 if (!ent->name) { in __proc_create() 440 pde_free(ent); in __proc_create() 445 memcpy(ent->name, fn, qstr.len + 1); in __proc_create() 446 ent->namelen = qstr.len; in __proc_create() 447 ent->mode = mode; in __proc_create() [all …]
|