| /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-4.19/fs/nfsd/ |
| D | nfs4idmap.c | 62 struct ent { struct 78 struct ent *new = container_of(cnew, struct ent, h); in ent_init() argument 79 struct ent *itm = container_of(citm, struct ent, h); in ent_init() 91 struct ent *map = container_of(ref, struct ent, h.ref); in ent_put() 98 struct ent *e = kmalloc(sizeof(*e), GFP_KERNEL); in ent_alloc() 110 idtoname_hash(struct ent *ent) in idtoname_hash() argument 114 hash = hash_str(ent->authname, ENT_HASHBITS); in idtoname_hash() 115 hash = hash_long(hash ^ ent->id, ENT_HASHBITS); in idtoname_hash() 118 if (ent->type == IDMAP_TYPE_GROUP) in idtoname_hash() 128 struct ent *ent = container_of(ch, struct ent, h); in idtoname_request() local [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-4.19/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-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-4.19/drivers/scsi/qla2xxx/ |
| D | qla_tmpl.c | 218 qla27xx_skip_entry(struct qla27xx_fwdt_entry *ent, void *buf) in qla27xx_skip_entry() argument 221 ent->hdr.driver_flags |= DRIVER_FLAG_SKIP_ENTRY; in qla27xx_skip_entry() 226 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t0() argument 230 qla27xx_skip_entry(ent, buf); in qla27xx_fwdt_entry_t0() 237 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t255() argument 241 qla27xx_skip_entry(ent, buf); in qla27xx_fwdt_entry_t255() 249 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t256() argument 255 qla27xx_read_window(reg, ent->t256.base_addr, ent->t256.pci_offset, in qla27xx_fwdt_entry_t256() 256 ent->t256.reg_count, ent->t256.reg_width, buf, len); in qla27xx_fwdt_entry_t256() 263 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t257() argument [all …]
|
| /kernel/linux/linux-4.19/drivers/net/ethernet/mellanox/mlx5/core/ |
| D | cmd.c | 78 struct mlx5_cmd_work_ent *ent; in alloc_cmd() local 80 ent = kzalloc(sizeof(*ent), alloc_flags); in alloc_cmd() 81 if (!ent) in alloc_cmd() 84 ent->in = in; in alloc_cmd() 85 ent->out = out; in alloc_cmd() 86 ent->uout = uout; in alloc_cmd() 87 ent->uout_size = uout_size; in alloc_cmd() 88 ent->callback = cbk; in alloc_cmd() 89 ent->context = context; in alloc_cmd() 90 ent->cmd = cmd; in alloc_cmd() [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-4.19/fs/ocfs2/ |
| D | filecheck.c | 217 ocfs2_filecheck_erase_entries(struct ocfs2_filecheck_sysfs_entry *ent, 220 ocfs2_filecheck_adjust_max(struct ocfs2_filecheck_sysfs_entry *ent, in ocfs2_filecheck_adjust_max() argument 228 spin_lock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_adjust_max() 229 if (len < (ent->fs_fcheck->fc_size - ent->fs_fcheck->fc_done)) { in ocfs2_filecheck_adjust_max() 233 len, ent->fs_fcheck->fc_size - ent->fs_fcheck->fc_done); in ocfs2_filecheck_adjust_max() 236 if (len < ent->fs_fcheck->fc_size) in ocfs2_filecheck_adjust_max() 237 BUG_ON(!ocfs2_filecheck_erase_entries(ent, in ocfs2_filecheck_adjust_max() 238 ent->fs_fcheck->fc_size - len)); in ocfs2_filecheck_adjust_max() 240 ent->fs_fcheck->fc_max = len; in ocfs2_filecheck_adjust_max() 243 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-4.19/drivers/infiniband/hw/mlx5/ |
| D | mr.c | 76 if (order < cache->ent[0].order) in order2idx() 79 return order - cache->ent[0].order; in order2idx() 122 struct mlx5_cache_ent *ent = &cache->ent[c]; in reg_mr_callback() local 128 spin_lock_irqsave(&ent->lock, flags); in reg_mr_callback() 129 ent->pending--; in reg_mr_callback() 130 spin_unlock_irqrestore(&ent->lock, flags); in reg_mr_callback() 147 spin_lock_irqsave(&ent->lock, flags); in reg_mr_callback() 148 list_add_tail(&mr->list, &ent->head); in reg_mr_callback() 149 ent->cur++; in reg_mr_callback() 150 ent->size++; in reg_mr_callback() [all …]
|
| /kernel/linux/linux-4.19/arch/powerpc/platforms/powernv/ |
| D | memtrace.c | 45 struct memtrace_entry *ent = filp->private_data; in memtrace_read() local 47 return simple_read_from_buffer(ubuf, count, ppos, ent->mem, ent->size); in memtrace_read() 180 struct memtrace_entry *ent = &memtrace_array[i]; in memtrace_init_debugfs() local 182 ent->mem = ioremap(ent->start, ent->size); in memtrace_init_debugfs() 184 if (!ent->mem) { in memtrace_init_debugfs() 186 ent->start); in memtrace_init_debugfs() 191 snprintf(ent->name, 16, "%08x", ent->nid); in memtrace_init_debugfs() 192 dir = debugfs_create_dir(ent->name, memtrace_debugfs_dir); in memtrace_init_debugfs() 195 ent->nid); in memtrace_init_debugfs() 199 ent->dir = dir; in memtrace_init_debugfs() [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-4.19/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 …]
|
| /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-4.19/drivers/scsi/ |
| D | esp_scsi.c | 189 "ent[%d] %s val[%02x] sreg[%02x] seqreg[%02x] " in esp_dump_cmd_log() 388 static dma_addr_t esp_cur_dma_addr(struct esp_cmd_entry *ent, in esp_cur_dma_addr() argument 393 if (ent->flags & ESP_CMD_FLAG_AUTOSENSE) { in esp_cur_dma_addr() 394 return ent->sense_dma + in esp_cur_dma_addr() 395 (ent->sense_ptr - cmd->sense_buffer); in esp_cur_dma_addr() 403 static unsigned int esp_cur_dma_len(struct esp_cmd_entry *ent, in esp_cur_dma_len() argument 408 if (ent->flags & ESP_CMD_FLAG_AUTOSENSE) { in esp_cur_dma_len() 410 (ent->sense_ptr - cmd->sense_buffer); in esp_cur_dma_len() 415 static void esp_advance_dma(struct esp *esp, struct esp_cmd_entry *ent, in esp_advance_dma() argument 420 if (ent->flags & ESP_CMD_FLAG_AUTOSENSE) { in esp_advance_dma() [all …]
|
| /kernel/linux/linux-4.19/drivers/infiniband/hw/mlx4/ |
| D | cm.c | 170 struct id_map_entry *ent = container_of(delay, struct id_map_entry, timeout); in id_map_ent_timeout() local 172 struct mlx4_ib_dev *dev = ent->dev; in id_map_ent_timeout() 175 int pv_id = (int) ent->pv_cm_id; in id_map_ent_timeout() 181 found_ent = id_map_find_by_sl_id(&dev->ib_dev, ent->slave_id, ent->sl_cm_id); in id_map_ent_timeout() 182 if (found_ent && found_ent == ent) in id_map_ent_timeout() 187 list_del(&ent->list); in id_map_ent_timeout() 189 kfree(ent); in id_map_ent_timeout() 196 struct id_map_entry *ent, *found_ent; in id_map_find_del() local 199 ent = (struct id_map_entry *)idr_find(&sriov->pv_id_table, pv_cm_id); in id_map_find_del() 200 if (!ent) in id_map_find_del() [all …]
|
| /kernel/linux/linux-4.19/fs/proc/ |
| D | generic.c | 379 struct proc_dir_entry *ent = NULL; in __proc_create() local 408 ent = kmem_cache_zalloc(proc_dir_entry_cache, GFP_KERNEL); in __proc_create() 409 if (!ent) in __proc_create() 413 ent->name = ent->inline_name; in __proc_create() 415 ent->name = kmalloc(qstr.len + 1, GFP_KERNEL); in __proc_create() 416 if (!ent->name) { in __proc_create() 417 pde_free(ent); in __proc_create() 422 memcpy(ent->name, fn, qstr.len + 1); in __proc_create() 423 ent->namelen = qstr.len; in __proc_create() 424 ent->mode = mode; in __proc_create() [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-4.19/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-4.19/Documentation/media/uapi/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-5.10/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-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 …]
|