-/* $OpenBSD: mfii.c,v 1.20 2015/01/05 23:18:36 dlg Exp $ */
+/* $OpenBSD: mfii.c,v 1.21 2015/01/07 04:46:18 dlg Exp $ */
/*
* Copyright (c) 2012 David Gwynne <dlg@openbsd.org>
sc->sc_link.adapter_buswidth = sc->sc_info.mci_max_lds;
sc->sc_link.pool = &sc->sc_iopool;
- bzero(&saa, sizeof(saa));
+ memset(&saa, 0, sizeof(saa));
saa.saa_sc_link = &sc->sc_link;
config_found(&sc->sc_dev, &saa, scsiprint);
link->openings = sc->sc_max_cmds - 1;
link->pool = &sc->sc_iopool;
- bzero(&saa, sizeof(saa));
+ memset(&saa, 0, sizeof(saa));
saa.saa_sc_link = link;
sc->sc_pd->pd_scsibus = (struct scsibus_softc *)
return (1);
iiq = MFII_DMA_KVA(m);
- bzero(iiq, sizeof(*iiq));
+ memset(iiq, 0, sizeof(*iiq));
iiq->function = MPII_FUNCTION_IOC_INIT;
iiq->whoinit = MPII_WHOINIT_HOST_DRIVER;
space--;
ccb->ccb_sgl_len = (dmap->dm_nsegs - space) * sizeof(*nsge);
- bzero(ccb->ccb_sgl, ccb->ccb_sgl_len);
+ memset(ccb->ccb_sgl, 0, ccb->ccb_sgl_len);
ce = nsge + space;
ce->sg_addr = htole64(ccb->ccb_sgl_dva);
ccb->ccb_len = 0;
ccb->ccb_sgl_len = 0;
- bzero(&ccb->ccb_req, sizeof(ccb->ccb_req));
- bzero(ccb->ccb_request, MFII_REQUEST_SIZE);
+ memset(&ccb->ccb_req, 0, sizeof(ccb->ccb_req));
+ memset(ccb->ccb_request, 0, MFII_REQUEST_SIZE);
}
void