Lines Matching refs:size
108 get_alarm_fru_data(int offset, int size, void *buffer, format_t *format)
117 bzero(buffer, size);
121 datap[2] = size; /* count */
138 (void) memcpy(buffer, &(res_pkt.data[8]), size);
146 get_fru_data(int offset, int size, void *buffer, format_t *format)
175 req_pkt.data[3] = size;
189 if (SC_MSG_LEN(&res_pkt) != size) {
192 (void) memcpy(buffer, res_pkt.data, size);
200 datap[3] = size; /* bytes to read */
220 /* check the size */
221 if (res_pkt.data[8] != size) {
225 (void) memcpy(buffer, &(res_pkt.data[9]), size);
572 write_alarm_fru_data(const void *buffer, size_t size,
582 datap = (uint8_t *)malloc(sizeof (uint8_t) * (size + 5));
592 (void) memcpy((void *)&(datap[5]), buffer, size);
596 FRUACCESS_MSG_ID, (5 + size), datap, DEFAULT_SEQN,
613 write_fru_data(const void *buffer, size_t size,
636 SC_MSG_LEN(&req_pkt) = 4 + size;
642 req_pkt.data[3] = size;
648 (void) memcpy((void *)&(req_pkt.data[4]), buffer, size);
658 datap = (uint8_t *)malloc(sizeof (uint8_t) * (size + 4));
665 datap[3] = size; /* nbytes */
671 (void) memcpy((void *)&(datap[4]), buffer, size);
674 FRUACCESS_MSG_ID, (4 + size), datap, DEFAULT_SEQN,
698 pwrite_new(int fd, const void *buffer, size_t size,
706 size_t bytes_to_write = size;
742 return (size);
751 pread_new(int fd, void *buffer, size_t size,
759 size_t bytes_to_read = size;
797 return (size);
940 uint8_t size = 0;
944 SMC_GET_GEOGRAPHICAL_ADDRESS, DEFAULT_SEQN, size);