Lines Matching refs:size
243 if (entry->bp && entry->size) {
244 kmem_free(entry->bp, entry->size);
256 emlxs_event(emlxs_port_t *port, emlxs_event_t *evt, void *bp, uint32_t size)
283 entry->size = size;
324 "%s[%d]: bp=%p size=%d cnt=%d", entry->evt->label,
325 entry->id, bp, size, eventq->count);
339 if (entry->bp && entry->size) {
340 kmem_free(entry->bp, entry->size);
393 emlxs_log_rscn_event(emlxs_port_t *port, uint8_t *payload, uint32_t size)
403 if (size > MAX_RSCN_PAYLOAD) {
404 size = MAX_RSCN_PAYLOAD;
407 size += sizeof (uint32_t);
410 if (!(bp = (uint8_t *)kmem_alloc(size, KM_NOSLEEP))) {
424 bcopy(payload, (char *)ptr, (size - sizeof (uint32_t)));
426 emlxs_event(port, &emlxs_rscn_event, bp, size);
434 emlxs_log_vportrscn_event(emlxs_port_t *port, uint8_t *payload, uint32_t size)
444 if (size > MAX_RSCN_PAYLOAD) {
445 size = MAX_RSCN_PAYLOAD;
448 size += sizeof (NAME_TYPE);
451 if (!(bp = (uint8_t *)kmem_alloc(size, KM_NOSLEEP))) {
467 bcopy(payload, ptr, (size - sizeof (NAME_TYPE)));
469 emlxs_event(port, &emlxs_vportrscn_event, bp, size);
477 emlxs_log_ct_event(emlxs_port_t *port, uint8_t *payload, uint32_t size,
488 if (size > MAX_CT_PAYLOAD) {
489 size = MAX_CT_PAYLOAD;
492 size += sizeof (uint32_t);
495 if (!(bp = (uint8_t *)kmem_alloc(size, KM_NOSLEEP))) {
509 bcopy(payload, (char *)ptr, (size - sizeof (uint32_t)));
511 emlxs_event(port, &emlxs_ct_event, bp, size);
550 uint32_t size;
557 size = sizeof (dfc_linkinfo_t) + sizeof (uint32_t);
560 if (!(bp = (uint8_t *)kmem_alloc(size, KM_NOSLEEP))) {
654 emlxs_event(port, &emlxs_link_event, bp, size);
662 emlxs_log_dump_event(emlxs_port_t *port, uint8_t *buffer, uint32_t size)
676 if (buffer && size) {
678 if (!(bp = (uint8_t *)kmem_alloc(size, KM_NOSLEEP))) {
686 bcopy(buffer, bp, size);
689 size = 0;
692 emlxs_event(port, &emlxs_dump_event, bp, size);
704 uint32_t size;
715 size = 2 * sizeof (uint32_t);
717 if (!(bp = (uint32_t *)kmem_alloc(size, KM_NOSLEEP))) {
727 emlxs_event(port, &emlxs_temp_event, bp, size);
740 uint32_t size;
752 size = sizeof (menlo_init_rsp_t);
754 if (!(bp = (uint8_t *)kmem_alloc(size, KM_NOSLEEP))) {
761 bcopy((uint8_t *)init_rsp, bp, size);
763 emlxs_event(port, &emlxs_fcoe_event, bp, size);
774 uint32_t size;
780 /* ASYNC_STATUS_CN response size */
781 size = 64;
783 if (!(bp = (uint8_t *)kmem_alloc(size, KM_NOSLEEP))) {
790 bcopy((uint8_t *)iocb, bp, size);
792 emlxs_event(port, &emlxs_async_event, bp, size);
973 uint32_t size = 0;
976 if (dfc_event->dataout && dfc_event->size) {
977 size = dfc_event->size;
979 dfc_event->size = 0;
1033 if (!size) {
1066 if (entry->bp && entry->size) {
1067 if (entry->size < size) {
1068 size = entry->size;
1071 if (ddi_copyout((void *)entry->bp, dfc_event->dataout, size,
1081 dfc_event->size = size;
1116 uint32_t size;
1123 size = sizeof (struct sd_plogi_rcv_v0);
1125 if (!(bp = (struct sd_plogi_rcv_v0 *)kmem_alloc(size, KM_NOSLEEP))) {
1142 emlxs_event(port, &emlxs_sd_els_event, bp, size);
1153 uint32_t size;
1160 size = sizeof (struct sd_prlo_rcv_v0);
1162 if (!(bp = (struct sd_prlo_rcv_v0 *)kmem_alloc(size,
1179 emlxs_event(port, &emlxs_sd_els_event, bp, size);
1191 uint32_t size;
1198 size = sizeof (struct sd_lsrjt_rcv_v0);
1200 if (!(bp = (struct sd_lsrjt_rcv_v0 *)kmem_alloc(size,
1220 emlxs_event(port, &emlxs_sd_els_event, bp, size);
1231 uint32_t size;
1238 size = sizeof (struct sd_pbsy_rcv_v0);
1240 if (!(bp = (struct sd_pbsy_rcv_v0 *)kmem_alloc(size,
1262 emlxs_event(port, &emlxs_sd_fabric_event, bp, size);
1274 uint32_t size;
1281 size = sizeof (struct sd_fcprdchkerr_v0);
1283 if (!(bp = (struct sd_fcprdchkerr_v0 *)kmem_alloc(size,
1303 emlxs_event(port, &emlxs_sd_fabric_event, bp, size);
1315 uint32_t size;
1322 size = sizeof (struct sd_scsi_generic_v0);
1324 if (!(bp = (struct sd_scsi_generic_v0 *)kmem_alloc(size,
1342 emlxs_event(port, &emlxs_sd_scsi_event, bp, size);
1355 uint32_t size;
1362 size = sizeof (struct sd_scsi_checkcond_v0);
1364 if (!(bp = (struct sd_scsi_checkcond_v0 *)kmem_alloc(size,
1386 emlxs_event(port, &emlxs_sd_scsi_event, bp, size);
1403 uint32_t size = 0;
1406 if (dfc_event->dataout && dfc_event->size) {
1407 size = dfc_event->size;
1409 dfc_event->size = 0;
1460 if (!size) {
1494 if (entry->bp && entry->size) {
1495 if (entry->size < size) {
1496 size = entry->size;
1500 size, dfc_event->mode) != 0) {
1509 dfc_event->size = size;