Lines Matching refs:oc
67 struct ore_components oc; member
160 static void copy_single_comp(struct ore_components *oc, unsigned c, in copy_single_comp() argument
163 struct ore_comp *ocomp = &oc->comps[c]; in copy_single_comp()
191 numdevs * sizeof(lseg->oc.ods[0]) + in __alloc_objio_seg()
192 numdevs * sizeof(*lseg->oc.comps); in __alloc_objio_seg()
201 lseg->oc.numdevs = numdevs; in __alloc_objio_seg()
202 lseg->oc.single_comp = EC_MULTPLE_COMPS; in __alloc_objio_seg()
203 lseg->oc.ods = (void *)(lseg + 1); in __alloc_objio_seg()
204 lseg->oc.comps = (void *)(lseg->oc.ods + numdevs); in __alloc_objio_seg()
243 objio_seg->oc.first_dev = layout.olo_comps_index; in objio_alloc_lseg()
249 copy_single_comp(&objio_seg->oc, cur_comp, &src_comp); in objio_alloc_lseg()
260 objio_seg->oc.ods[cur_comp++] = &ode->od; in objio_alloc_lseg()
281 for (i = 0; i < objio_seg->oc.numdevs; i++) { in objio_free_lseg()
282 struct ore_dev *od = objio_seg->oc.ods[i]; in objio_free_lseg()
304 struct pnfs_osd_ioerr ioerrs[objio_seg->oc.numdevs]; in objio_alloc_io_state()
311 objlayout_init_ioerrs(&aos->objios.oir, objio_seg->oc.numdevs, in objio_alloc_io_state()
314 ret = ore_get_rw_state(&objio_seg->layout, &objio_seg->oc, is_reading, in objio_alloc_io_state()
383 pooid.oid_partition_id = ios->oc->comps[comp].obj.partition; in __on_dev_error()
384 pooid.oid_object_id = ios->oc->comps[comp].obj.id; in __on_dev_error()