Lines Matching defs:info

90     hermon_flash_ioctl_t *info);
92 hermon_flash_ioctl_t *info);
94 hermon_flash_ioctl_t *info);
158 * so we only need this check if there's no hardware info available
433 if (strlen(encap->info.mlx_id))
435 "%s %X (%s)\n"), encap->info.mlx_pn,
436 encap->hwrev, encap->info.mlx_id);
439 encap->info.mlx_pn, encap->hwrev);
441 if (strlen(encap->info.mlx_psid))
443 encap->info.mlx_psid);
884 manuf->info.mlx_pn = NULL;
885 manuf->info.mlx_psid = NULL;
886 manuf->info.mlx_id = NULL;
915 manuf->info.mlx_pn = calloc(1, manuf->pn_len);
916 if (manuf->info.mlx_pn == NULL) {
921 (void) memcpy(manuf->info.mlx_pn, init_ioctl.af_hwpn,
923 manuf->info.mlx_pn[manuf->pn_len] = 0;
926 manuf->info.mlx_pn, manuf->pn_len);
929 manuf->info.mlx_psid = calloc(1, MLX_PSID_SZ);
930 if (manuf->info.mlx_psid == NULL) {
937 if ((manuf->info.mlx_id = calloc(1, MLX_STR_ID_SZ)) == NULL) {
961 (void) memcpy(manuf->info.mlx_psid,
963 manuf->info.mlx_psid[MLX_PSID_SZ - 1] = 0;
966 manuf->info.mlx_psid);
968 (void) strlcpy(manuf->info.mlx_id,
973 manuf->info.mlx_id);
987 sprintf(thisdev->ident->pid, "No additional hardware info "
992 strlen(manuf->info.mlx_psid) + 1)) != NULL) {
994 manuf->info.mlx_psid,
995 strlen(manuf->info.mlx_psid) + 1);
1110 if (handle->info.mlx_id != NULL)
1111 free(handle->info.mlx_id);
1113 if (handle->info.mlx_psid != NULL)
1114 free(handle->info.mlx_psid);
1135 cnx_read_ioctl(ib_cnx_encap_ident_t *hdl, hermon_flash_ioctl_t *info)
1141 "af_sector_num(0x%x)\n", hdl->fd, info->af_type,
1142 info->af_addr, info->af_sector_num);
1146 ret = ioctl(hdl->fd, HERMON_IOCTL_FLASH_READ, info);
1155 cnx_write_ioctl(ib_cnx_encap_ident_t *hdl, hermon_flash_ioctl_t *info)
1162 hdl->fd, info->af_type, info->af_addr, info->af_sector_num,
1163 info->af_byte);
1166 ret = ioctl(hdl->fd, HERMON_IOCTL_FLASH_WRITE, info);
1175 cnx_erase_sector_ioctl(ib_cnx_encap_ident_t *hdl, hermon_flash_ioctl_t *info)
1181 "af_sector_num(0x%x)\n", hdl->fd, info->af_type,
1182 info->af_sector_num);
1185 ret = ioctl(hdl->fd, HERMON_IOCTL_FLASH_ERASE, info);
1621 /* Get the image info pointer */
1627 logmsg(MSG_WARN, gettext("hermon: Failed to read image info "
1633 /* Get the image info size, a negative offset from the image info ptr */
1639 logmsg(MSG_WARN, gettext("hermon: Failed to read image info "
1661 "image info (0x%x)\n"), i);
1670 /* Parse the image info section */
1716 "info section size (%d bytes)"), tag_num, tag_id,