Searched refs:odi (Results 1 - 9 of 9) sorted by relevance

/linux-4.4.14/drivers/scsi/osd/
H A Dosd_uld.c88 struct osd_dev_info odi; member in struct:osd_uld_device
108 return sprintf(buf, "%s\n", ould->odi.osdname); osdname_show()
118 memcpy(buf, ould->odi.systemid, ould->odi.systemid_len); systemid_show()
119 return ould->odi.systemid_len; systemid_show()
278 const struct osd_dev_info *odi = find_data; _match_odi() local
280 if (_the_same_or_null(oud->odi.systemid, oud->odi.systemid_len, _match_odi()
281 odi->systemid, odi->systemid_len) && _match_odi()
282 _the_same_or_null(oud->odi.osdname, oud->odi.osdname_len, _match_odi()
283 odi->osdname, odi->osdname_len)) { _match_odi()
285 odi->systemid_len, odi->osdname_len); _match_odi()
294 * if @odi->systemid_len and/or @odi->osdname_len are zero, they act as a don't
297 struct osd_dev *osduld_info_lookup(const struct osd_dev_info *odi) osduld_info_lookup() argument
299 struct device *dev = class_find_device(&osd_uld_class, NULL, odi, _match_odi); osduld_info_lookup()
349 return &odh->oud->odi; osduld_device_info()
353 bool osduld_device_same(struct osd_dev *od, const struct osd_dev_info *odi) osduld_device_same() argument
359 return (oud->odi.systemid_len == odi->systemid_len) && osduld_device_same()
360 _the_same_or_null(oud->odi.systemid, oud->odi.systemid_len, osduld_device_same()
361 odi->systemid, odi->systemid_len) && osduld_device_same()
362 (oud->odi.osdname_len == odi->osdname_len) && osduld_device_same()
363 _the_same_or_null(oud->odi.osdname, oud->odi.osdname_len, osduld_device_same()
364 odi->osdname, odi->osdname_len); osduld_device_same()
388 if (osd_auto_detect_ver(&oud->od, caps, &oud->odi)) __detect_osd()
400 kfree(oud->odi.osdname); __remove()
H A Dosd_initiator.c80 void *caps, struct osd_dev_info *odi) _osd_get_print_system_info()
144 odi->osdname_len = get_attrs[a].len; _osd_get_print_system_info()
146 odi->osdname = kzalloc(odi->osdname_len + 1, GFP_KERNEL); _osd_get_print_system_info()
147 if (!odi->osdname) { _osd_get_print_system_info()
151 if (odi->osdname_len) _osd_get_print_system_info()
152 memcpy(odi->osdname, get_attrs[a].val_ptr, odi->osdname_len); _osd_get_print_system_info()
153 OSD_INFO("OSD_NAME [%s]\n", odi->osdname); _osd_get_print_system_info()
187 if (unlikely(len > sizeof(odi->systemid))) { _osd_get_print_system_info()
190 len = sizeof(odi->systemid); _osd_get_print_system_info()
192 odi->systemid_len = len; _osd_get_print_system_info()
193 memcpy(odi->systemid, get_attrs[a].val_ptr, len); _osd_get_print_system_info()
202 void *caps, struct osd_dev_info *odi) osd_auto_detect_ver()
207 ret = _osd_get_print_system_info(od, caps, odi); osd_auto_detect_ver()
211 ret = _osd_get_print_system_info(od, caps, odi); osd_auto_detect_ver()
79 _osd_get_print_system_info(struct osd_dev *od, void *caps, struct osd_dev_info *odi) _osd_get_print_system_info() argument
201 osd_auto_detect_ver(struct osd_dev *od, void *caps, struct osd_dev_info *odi) osd_auto_detect_ver() argument
/linux-4.4.14/arch/arm/mach-omap2/
H A Did.h20 void omap_get_die_id(struct omap_die_id *odi);
H A Did.c123 void omap_get_die_id(struct omap_die_id *odi) omap_get_die_id() argument
126 odi->id_0 = read_tap_reg(OMAP_TAP_DIE_ID_44XX_0); omap_get_die_id()
127 odi->id_1 = read_tap_reg(OMAP_TAP_DIE_ID_44XX_1); omap_get_die_id()
128 odi->id_2 = read_tap_reg(OMAP_TAP_DIE_ID_44XX_2); omap_get_die_id()
129 odi->id_3 = read_tap_reg(OMAP_TAP_DIE_ID_44XX_3); omap_get_die_id()
133 odi->id_0 = read_tap_reg(OMAP_TAP_DIE_ID_0); omap_get_die_id()
134 odi->id_1 = read_tap_reg(OMAP_TAP_DIE_ID_1); omap_get_die_id()
135 odi->id_2 = read_tap_reg(OMAP_TAP_DIE_ID_2); omap_get_die_id()
136 odi->id_3 = read_tap_reg(OMAP_TAP_DIE_ID_3); omap_get_die_id()
141 struct omap_die_id odi; omap_feed_randpool() local
144 omap_get_die_id(&odi); omap_feed_randpool()
145 add_device_randomness(&odi, sizeof(odi)); omap_feed_randpool()
156 struct omap_die_id odi; omap2xxx_check_revision() local
163 omap_get_die_id(&odi); omap2xxx_check_revision()
167 pr_debug("OMAP_TAP_DIE_ID_0: 0x%08x\n", odi.id_0); omap2xxx_check_revision()
169 odi.id_1, (odi.id_1 >> 28) & 0xf); omap2xxx_check_revision()
170 pr_debug("OMAP_TAP_DIE_ID_2: 0x%08x\n", odi.id_2); omap2xxx_check_revision()
171 pr_debug("OMAP_TAP_DIE_ID_3: 0x%08x\n", odi.id_3); omap2xxx_check_revision()
/linux-4.4.14/fs/exofs/
H A Dsys.c62 const struct osd_dev_info *odi = osduld_device_info(odev); osdname_show() local
64 return snprintf(buf, odi->osdname_len + 1, "%s", odi->osdname); osdname_show()
70 const struct osd_dev_info *odi = osduld_device_info(odev); systemid_show() local
72 memcpy(buf, odi->systemid, odi->systemid_len); systemid_show()
73 return odi->systemid_len; systemid_show()
H A Dsuper.c417 const struct osd_dev_info *odi = osduld_device_info(od); _exofs_print_device() local
420 msg, dev_path ?: "", odi->osdname, _LLU(pid)); _exofs_print_device()
519 /* @odi is valid only as long as @fscb_dev is valid */ exofs_devs_2_odi()
521 struct osd_dev_info *odi) exofs_devs_2_odi()
523 odi->systemid_len = le32_to_cpu(dt_dev->systemid_len); exofs_devs_2_odi()
524 if (likely(odi->systemid_len)) exofs_devs_2_odi()
525 memcpy(odi->systemid, dt_dev->systemid, OSD_SYSTEMID_LEN); exofs_devs_2_odi()
527 odi->osdname_len = le32_to_cpu(dt_dev->osdname_len); exofs_devs_2_odi()
528 odi->osdname = dt_dev->osdname; exofs_devs_2_odi()
538 if (unlikely(odi->osdname_len >= sizeof(dt_dev->osdname))) exofs_devs_2_odi()
539 odi->osdname_len = sizeof(dt_dev->osdname) - 1; exofs_devs_2_odi()
540 dt_dev->osdname[odi->osdname_len] = 0; exofs_devs_2_odi()
543 return !(odi->systemid_len || odi->osdname_len); exofs_devs_2_odi()
635 struct osd_dev_info odi; exofs_read_lookup_dev_table() local
638 if (exofs_devs_2_odi(&dt->dt_dev_table[i], &odi)) { exofs_read_lookup_dev_table()
645 i, odi.osdname); exofs_read_lookup_dev_table()
654 if (fscb_od && osduld_device_same(fscb_od, &odi)) { exofs_read_lookup_dev_table()
662 od = osduld_info_lookup(&odi); exofs_read_lookup_dev_table()
666 "osd_name-%s =>%d\n", odi.osdname, ret); exofs_read_lookup_dev_table()
681 odi.osdname); exofs_read_lookup_dev_table()
722 struct osd_dev_info odi = {.systemid_len = 0}; exofs_fill_super() local
724 odi.osdname_len = strlen(opts->dev_name); exofs_fill_super()
725 odi.osdname = (u8 *)opts->dev_name; exofs_fill_super()
726 od = osduld_info_lookup(&odi); exofs_fill_super()
520 exofs_devs_2_odi(struct exofs_dt_device_info *dt_dev, struct osd_dev_info *odi) exofs_devs_2_odi() argument
/linux-4.4.14/fs/nfs/objlayout/
H A Dobjio_osd.c94 struct osd_dev_info odi; objio_alloc_deviceid_node() local
106 odi.systemid_len = deviceaddr->oda_systemid.len; objio_alloc_deviceid_node()
107 if (odi.systemid_len > sizeof(odi.systemid)) { objio_alloc_deviceid_node()
108 dprintk("%s: odi.systemid_len > sizeof(systemid=%zd)\n", objio_alloc_deviceid_node()
109 __func__, sizeof(odi.systemid)); objio_alloc_deviceid_node()
112 } else if (odi.systemid_len) objio_alloc_deviceid_node()
113 memcpy(odi.systemid, deviceaddr->oda_systemid.data, objio_alloc_deviceid_node()
114 odi.systemid_len); objio_alloc_deviceid_node()
115 odi.osdname_len = deviceaddr->oda_osdname.len; objio_alloc_deviceid_node()
116 odi.osdname = (u8 *)deviceaddr->oda_osdname.data; objio_alloc_deviceid_node()
118 if (!odi.osdname_len && !odi.systemid_len) { objio_alloc_deviceid_node()
119 dprintk("%s: !odi.osdname_len && !odi.systemid_len\n", objio_alloc_deviceid_node()
126 od = osduld_info_lookup(&odi); objio_alloc_deviceid_node()
/linux-4.4.14/include/scsi/
H A Dosd_initiator.h70 struct osd_dev *osduld_info_lookup(const struct osd_dev_info *odi);
74 bool osduld_device_same(struct osd_dev *od, const struct osd_dev_info *odi);
90 * @odi: Retrieved information uniquely identifying the osd target lun
91 * Note: odi->osdname must be kfreed by caller.
101 void *caps, struct osd_dev_info *odi);
/linux-4.4.14/fs/btrfs/
H A Dsend.c2819 struct orphan_dir_info *entry, *odi; add_orphan_dir_info() local
2821 odi = kmalloc(sizeof(*odi), GFP_NOFS); add_orphan_dir_info()
2822 if (!odi) add_orphan_dir_info()
2824 odi->ino = dir_ino; add_orphan_dir_info()
2825 odi->gen = 0; add_orphan_dir_info()
2835 kfree(odi); add_orphan_dir_info()
2840 rb_link_node(&odi->node, parent, p); add_orphan_dir_info()
2841 rb_insert_color(&odi->node, &sctx->orphan_dirs); add_orphan_dir_info()
2842 return odi; add_orphan_dir_info()
2865 struct orphan_dir_info *odi = get_orphan_dir_info(sctx, dir_ino); is_waiting_for_rm() local
2867 return odi != NULL; is_waiting_for_rm()
2871 struct orphan_dir_info *odi) free_orphan_dir_info()
2873 if (!odi) free_orphan_dir_info()
2875 rb_erase(&odi->node, &sctx->orphan_dirs); free_orphan_dir_info()
2876 kfree(odi); free_orphan_dir_info()
2935 struct orphan_dir_info *odi; can_rmdir() local
2937 odi = add_orphan_dir_info(sctx, dir); can_rmdir()
2938 if (IS_ERR(odi)) { can_rmdir()
2939 ret = PTR_ERR(odi); can_rmdir()
2942 odi->gen = dir_gen; can_rmdir()
3169 struct orphan_dir_info *odi; apply_dir_move() local
3171 odi = get_orphan_dir_info(sctx, rmdir_ino); apply_dir_move()
3172 if (!odi) { apply_dir_move()
3176 ret = can_rmdir(sctx, rmdir_ino, odi->gen, sctx->cur_ino + 1); apply_dir_move()
3187 ret = get_cur_path(sctx, rmdir_ino, odi->gen, name); apply_dir_move()
3193 free_orphan_dir_info(sctx, odi); apply_dir_move()
6187 struct orphan_dir_info *odi; btrfs_ioctl_send() local
6190 odi = rb_entry(n, struct orphan_dir_info, node); btrfs_ioctl_send()
6191 free_orphan_dir_info(sctx, odi); btrfs_ioctl_send()
2870 free_orphan_dir_info(struct send_ctx *sctx, struct orphan_dir_info *odi) free_orphan_dir_info() argument

Completed in 279 milliseconds