Home
last modified time | relevance | path

Searched refs:ioctl_info (Results 1 – 3 of 3) sorted by relevance

/titanic_41/usr/src/cmd/fwflash/plugins/transport/common/
H A Dhermon.c474 hermon_flash_ioctl_t ioctl_info; in cnx_read_image() local
507 ioctl_info.af_type = HERMON_FLASH_READ_QUADLET; in cnx_read_image()
510 ioctl_info.af_addr = phys_addr; in cnx_read_image()
512 ret = cnx_read_ioctl(handle, &ioctl_info); in cnx_read_image()
519 handle->fw[i / 4] = htonl(ioctl_info.af_quadlet); in cnx_read_image()
660 hermon_flash_ioctl_t ioctl_info; in cnx_write_image() local
687 ioctl_info.af_type = HERMON_FLASH_ERASE_SECTOR; in cnx_write_image()
689 ioctl_info.af_sector_num = in cnx_write_image()
691 if (cnx_erase_sector_ioctl(handle, &ioctl_info) != 0) { in cnx_write_image()
693 "erase sector 0x%x\n"), ioctl_info.af_sector_num); in cnx_write_image()
[all …]
/titanic_41/usr/src/uts/common/io/ib/adapters/hermon/
H A Dhermon_ioctl.c244 hermon_flash_ioctl_t ioctl_info; in hermon_ioctl_flash_read() local
268 ioctl_info.af_type = info32.af_type; in hermon_ioctl_flash_read()
269 ioctl_info.af_sector = (caddr_t)(uintptr_t)info32.af_sector; in hermon_ioctl_flash_read()
270 ioctl_info.af_sector_num = info32.af_sector_num; in hermon_ioctl_flash_read()
271 ioctl_info.af_addr = info32.af_addr; in hermon_ioctl_flash_read()
274 if (ddi_copyin((void *)arg, &ioctl_info, sizeof (hermon_flash_ioctl_t), in hermon_ioctl_flash_read()
283 switch (ioctl_info.af_type) { in hermon_ioctl_flash_read()
286 if (ioctl_info.af_sector_num >= in hermon_ioctl_flash_read()
295 ioctl_info.af_sector_num)) != 0) { in hermon_ioctl_flash_read()
302 &ioctl_info.af_sector[0], 1 << state->hs_fw_log_sector_sz, in hermon_ioctl_flash_read()
[all …]
/titanic_41/usr/src/uts/common/io/ib/adapters/tavor/
H A Dtavor_ioctl.c229 tavor_flash_ioctl_t ioctl_info; in tavor_ioctl_flash_read() local
260 ioctl_info.tf_type = info32.tf_type; in tavor_ioctl_flash_read()
261 ioctl_info.tf_sector = (caddr_t)(uintptr_t)info32.tf_sector; in tavor_ioctl_flash_read()
262 ioctl_info.tf_sector_num = info32.tf_sector_num; in tavor_ioctl_flash_read()
263 ioctl_info.tf_addr = info32.tf_addr; in tavor_ioctl_flash_read()
266 if (ddi_copyin((void *)arg, &ioctl_info, sizeof (tavor_flash_ioctl_t), in tavor_ioctl_flash_read()
278 switch (ioctl_info.tf_type) { in tavor_ioctl_flash_read()
281 if (ioctl_info.tf_sector_num >= in tavor_ioctl_flash_read()
292 tavor_flash_read_sector(state, ioctl_info.tf_sector_num); in tavor_ioctl_flash_read()
296 &ioctl_info.tf_sector[0], 1 << state->ts_fw_log_sector_sz, in tavor_ioctl_flash_read()
[all …]