/* Return the number of bytes not written. Return 0 on success.  */
static void asd_write_ocm_seg(struct asd_ha_struct *asd_ha, void *buffer, u32 offs, int size)
/* Return the number of bytes not written. Return 0 on success.  */
static void asd_write_ocm_seg(struct asd_ha_struct *asd_ha, void *buffer, u32 offs, int size)
{
	u8 *p = buffer;
	if (unlikely(asd_ha->iospace))
		asd_write_reg_string(asd_ha, buffer, offs+OCM_BASE_ADDR, size);
	else {
		for ( ; size > 0; size--, offs++, p++)
			asd_write_ocm_byte(asd_ha, offs, *p);
	}
	return;
}