Lines Matching defs:ip
79 struct flash_info_params ip;
82 error = ioctl(fd, FLASH_GET_INFO, &ip);
97 ep.ep_len = ip.ip_flash_size;
121 struct flash_info_params ip;
123 error = ioctl(fd, FLASH_GET_INFO, &ip);
130 switch (ip.ip_flash_type) {
138 printf("unknown (%d)", ip.ip_flash_type);
144 (intmax_t)ip.ip_flash_size / 1024 / 1024,
145 (intmax_t)ip.ip_flash_size / ip.ip_page_size,
146 (intmax_t)ip.ip_page_size);
148 if (ip.ip_flash_type == FLASH_TYPE_NAND) {
150 (intmax_t)ip.ip_erase_size / 1024,
151 (intmax_t)ip.ip_erase_size / ip.ip_page_size);
154 struct flash_info_params ip;
159 error = ioctl(fd, FLASH_GET_INFO, &ip);
168 while (addr < ip.ip_flash_size) {
182 addr += ip.ip_erase_size;