/freebsd/contrib/ntp/sntp/libopts/ |
H A D | text_mmap.c | 85 load_text_file(tmap_info_t * mapinfo, char const * pzFile) in load_text_file() argument 88 mapinfo->txt_data = AGALOC(mapinfo->txt_size+1, "file text"); in load_text_file() 89 if (mapinfo->txt_data == NULL) { in load_text_file() 90 mapinfo->txt_errno = ENOMEM; in load_text_file() 95 size_t sz = mapinfo->txt_size; in load_text_file() 96 char * pz = mapinfo->txt_data; in load_text_file() 99 ssize_t rdct = read(mapinfo->txt_fd, pz, sz); in load_text_file() 101 mapinfo->txt_errno = errno; in load_text_file() 103 free(mapinfo->txt_data); in load_text_file() 114 mapinfo->txt_errno = 0; in load_text_file() [all …]
|
H A D | proto.h | 522 load_text_file(tmap_info_t * mapinfo, char const * pzFile); 525 validate_mmap(char const * fname, int prot, int flags, tmap_info_t * mapinfo);
|
/freebsd/usr.bin/tail/ |
H A D | extern.h | 45 struct mapinfo { struct 72 int mapprint(struct mapinfo *, off_t, off_t); argument 73 int maparound(struct mapinfo *, off_t);
|
H A D | misc.c | 71 mapprint(struct mapinfo *mip, off_t startoff, off_t len) in mapprint() 97 maparound(struct mapinfo *mip, off_t offset) in maparound()
|
H A D | reverse.c | 107 struct mapinfo map; in r_reg()
|
H A D | forward.c | 192 struct mapinfo map; in rlines()
|
/freebsd/sys/cam/ |
H A D | cam_periph.c | 805 cam_periph_mapmem(union ccb *ccb, struct cam_periph_map_info *mapinfo, in cam_periph_mapmem() argument 813 bzero(mapinfo, sizeof(*mapinfo)); in cam_periph_mapmem() 933 mapinfo->orig[i] = *data_ptrs[i]; in cam_periph_mapmem() 946 if (copyin(mapinfo->orig[i], *data_ptrs[i], in cam_periph_mapmem() 949 *data_ptrs[i] = mapinfo->orig[i]; in cam_periph_mapmem() 960 mapinfo->bp[i] = uma_zalloc(pbuf_zone, M_WAITOK); in cam_periph_mapmem() 963 mapinfo->bp[i]->b_iocmd = (dirs[i] == CAM_DIR_OUT) ? in cam_periph_mapmem() 967 if (vmapbuf(mapinfo->bp[i], *data_ptrs[i], lengths[i], 1) < 0) { in cam_periph_mapmem() 968 uma_zfree(pbuf_zone, mapinfo->bp[i]); in cam_periph_mapmem() 973 *data_ptrs[i] = mapinfo->bp[i]->b_data; in cam_periph_mapmem() [all …]
|
H A D | cam_periph.h | 181 struct cam_periph_map_info *mapinfo, 184 struct cam_periph_map_info *mapinfo);
|
H A D | cam_xpt.c | 518 struct cam_periph_map_info mapinfo; in xptdoioctl() local 545 bzero(&mapinfo, sizeof(mapinfo)); in xptdoioctl() 551 error = cam_periph_mapmem(inccb, &mapinfo, maxphys); in xptdoioctl() 566 error = cam_periph_unmapmem(inccb, &mapinfo); in xptdoioctl()
|
/freebsd/sys/cam/scsi/ |
H A D | scsi_target.c | 56 struct cam_periph_map_info mapinfo; member 710 struct cam_periph_map_info *mapinfo; in targsendccb() local 715 mapinfo = &descr->mapinfo; in targsendccb() 716 mapinfo->num_bufs_used = 0; in targsendccb() 729 error = cam_periph_mapmem(ccb, mapinfo, softc->maxio); in targsendccb() 737 mapinfo->num_bufs_used = 0; in targsendccb() 921 if (descr->mapinfo.num_bufs_used != 0) { in targreturnccb() 924 error1 = cam_periph_unmapmem(ccb, &descr->mapinfo); in targreturnccb() 1001 descr->mapinfo.num_bufs_used = 0; in targgetdescr()
|
H A D | scsi_sg.c | 884 struct cam_periph_map_info mapinfo; in sgsendccb() local 888 bzero(&mapinfo, sizeof(mapinfo)); in sgsendccb() 898 error = cam_periph_mapmem(ccb, &mapinfo, softc->maxio); in sgsendccb() 910 error1 = cam_periph_unmapmem(ccb, &mapinfo); in sgsendccb()
|
H A D | scsi_pass.c | 107 struct cam_periph_map_info mapinfo; member 1960 io_req->mapinfo.num_bufs_used = 0; in passdoioctl() 2174 struct cam_periph_map_info mapinfo; in passsendccb() local 2204 bzero(&mapinfo, sizeof(mapinfo)); in passsendccb() 2212 error = cam_periph_mapmem(ccb, &mapinfo, softc->maxio); in passsendccb() 2223 mapinfo.num_bufs_used = 0; in passsendccb() 2239 error = cam_periph_unmapmem(ccb, &mapinfo); in passsendccb()
|
/freebsd/sys/cam/nvme/ |
H A D | nvme_da.c | 401 struct cam_periph_map_info mapinfo; in ndaioctl() local 424 memset(&mapinfo, 0, sizeof(mapinfo)); in ndaioctl() 425 error = cam_periph_mapmem(ccb, &mapinfo, maxmap); in ndaioctl() 440 error = cam_periph_unmapmem(ccb, &mapinfo); in ndaioctl()
|
/freebsd/contrib/llvm-project/lld/COFF/ |
H A D | Options.td | 316 def map_info : P<"mapinfo", "Include the specified information in a map file">;
|