• Home
  • Raw
  • Download

Lines Matching refs:spec

338   XMSspec spec;  in read_xms_store()  local
345 spec.length = byte_count & (~ 1L); in read_xms_store()
346 spec.src_handle = info->handle.xms_handle; in read_xms_store()
347 spec.src.offset = file_offset; in read_xms_store()
348 spec.dst_handle = 0; in read_xms_store()
349 spec.dst.ptr = buffer_address; in read_xms_store()
351 ctx.ds_si = (void far *) & spec; in read_xms_store()
371 XMSspec spec; in write_xms_store() local
378 spec.length = byte_count & (~ 1L); in write_xms_store()
379 spec.src_handle = 0; in write_xms_store()
380 spec.src.ptr = buffer_address; in write_xms_store()
381 spec.dst_handle = info->handle.xms_handle; in write_xms_store()
382 spec.dst.offset = file_offset; in write_xms_store()
384 ctx.ds_si = (void far *) & spec; in write_xms_store()
472 #define FIELD_AT(spec,offset,type) (*((type *) &(spec.bytes[offset]))) argument
473 #define SRC_TYPE(spec) FIELD_AT(spec,4,char) argument
474 #define SRC_HANDLE(spec) FIELD_AT(spec,5,EMSH) argument
475 #define SRC_OFFSET(spec) FIELD_AT(spec,7,unsigned short) argument
476 #define SRC_PAGE(spec) FIELD_AT(spec,9,unsigned short) argument
477 #define SRC_PTR(spec) FIELD_AT(spec,7,EMSPTR) argument
478 #define DST_TYPE(spec) FIELD_AT(spec,11,char) argument
479 #define DST_HANDLE(spec) FIELD_AT(spec,12,EMSH) argument
480 #define DST_OFFSET(spec) FIELD_AT(spec,14,unsigned short) argument
481 #define DST_PAGE(spec) FIELD_AT(spec,16,unsigned short) argument
482 #define DST_PTR(spec) FIELD_AT(spec,14,EMSPTR) argument
496 EMSspec spec; in read_ems_store() local
498 spec.length = byte_count; in read_ems_store()
499 SRC_TYPE(spec) = 1; in read_ems_store()
500 SRC_HANDLE(spec) = info->handle.ems_handle; in read_ems_store()
501 SRC_PAGE(spec) = (unsigned short) (file_offset / EMSPAGESIZE); in read_ems_store()
502 SRC_OFFSET(spec) = (unsigned short) (file_offset % EMSPAGESIZE); in read_ems_store()
503 DST_TYPE(spec) = 0; in read_ems_store()
504 DST_HANDLE(spec) = 0; in read_ems_store()
505 DST_PTR(spec) = buffer_address; in read_ems_store()
507 ctx.ds_si = (void far *) & spec; in read_ems_store()
521 EMSspec spec; in write_ems_store() local
523 spec.length = byte_count; in write_ems_store()
524 SRC_TYPE(spec) = 0; in write_ems_store()
525 SRC_HANDLE(spec) = 0; in write_ems_store()
526 SRC_PTR(spec) = buffer_address; in write_ems_store()
527 DST_TYPE(spec) = 1; in write_ems_store()
528 DST_HANDLE(spec) = info->handle.ems_handle; in write_ems_store()
529 DST_PAGE(spec) = (unsigned short) (file_offset / EMSPAGESIZE); in write_ems_store()
530 DST_OFFSET(spec) = (unsigned short) (file_offset % EMSPAGESIZE); in write_ems_store()
532 ctx.ds_si = (void far *) & spec; in write_ems_store()