Lines Matching refs:header
231 const struct ps3_sys_manager_header *header, const void *payload) in ps3_sys_manager_write() argument
235 BUG_ON(header->version != 1); in ps3_sys_manager_write()
236 BUG_ON(header->size != 16); in ps3_sys_manager_write()
237 BUG_ON(header->payload_size != 8 && header->payload_size != 16); in ps3_sys_manager_write()
238 BUG_ON(header->service_id > 8); in ps3_sys_manager_write()
240 result = ps3_vuart_write(dev, header, in ps3_sys_manager_write()
244 result = ps3_vuart_write(dev, payload, header->payload_size); in ps3_sys_manager_write()
257 struct ps3_sys_manager_header header; in ps3_sys_manager_send_attr() local
268 memset(&header, 0, sizeof(header)); in ps3_sys_manager_send_attr()
269 header.version = 1; in ps3_sys_manager_send_attr()
270 header.size = 16; in ps3_sys_manager_send_attr()
271 header.payload_size = 16; in ps3_sys_manager_send_attr()
272 header.service_id = PS3_SM_SERVICE_ID_SET_ATTR; in ps3_sys_manager_send_attr()
278 return ps3_sys_manager_write(dev, &header, &payload); in ps3_sys_manager_send_attr()
291 struct ps3_sys_manager_header header; in ps3_sys_manager_send_next_op() local
305 memset(&header, 0, sizeof(header)); in ps3_sys_manager_send_next_op()
306 header.version = 1; in ps3_sys_manager_send_next_op()
307 header.size = 16; in ps3_sys_manager_send_next_op()
308 header.payload_size = 16; in ps3_sys_manager_send_next_op()
309 header.service_id = PS3_SM_SERVICE_ID_SET_NEXT_OP; in ps3_sys_manager_send_next_op()
317 return ps3_sys_manager_write(dev, &header, &payload); in ps3_sys_manager_send_next_op()
335 struct ps3_sys_manager_header header; in ps3_sys_manager_send_request_shutdown() local
347 memset(&header, 0, sizeof(header)); in ps3_sys_manager_send_request_shutdown()
348 header.version = 1; in ps3_sys_manager_send_request_shutdown()
349 header.size = 16; in ps3_sys_manager_send_request_shutdown()
350 header.payload_size = 16; in ps3_sys_manager_send_request_shutdown()
351 header.service_id = PS3_SM_SERVICE_ID_REQUEST; in ps3_sys_manager_send_request_shutdown()
358 return ps3_sys_manager_write(dev, &header, &payload); in ps3_sys_manager_send_request_shutdown()
372 struct ps3_sys_manager_header header; in ps3_sys_manager_send_response() local
385 memset(&header, 0, sizeof(header)); in ps3_sys_manager_send_response()
386 header.version = 1; in ps3_sys_manager_send_response()
387 header.size = 16; in ps3_sys_manager_send_response()
388 header.payload_size = 16; in ps3_sys_manager_send_response()
389 header.service_id = PS3_SM_SERVICE_ID_RESPONSE; in ps3_sys_manager_send_response()
395 return ps3_sys_manager_write(dev, &header, &payload); in ps3_sys_manager_send_response()
529 struct ps3_sys_manager_header header; in ps3_sys_manager_handle_msg() local
531 result = ps3_vuart_read(dev, &header, in ps3_sys_manager_handle_msg()
537 if (header.version != 1) { in ps3_sys_manager_handle_msg()
539 __func__, __LINE__, header.version); in ps3_sys_manager_handle_msg()
540 dump_sm_header(&header); in ps3_sys_manager_handle_msg()
544 BUILD_BUG_ON(sizeof(header) != 16); in ps3_sys_manager_handle_msg()
546 if (header.size != 16 || (header.payload_size != 8 in ps3_sys_manager_handle_msg()
547 && header.payload_size != 16)) { in ps3_sys_manager_handle_msg()
548 dump_sm_header(&header); in ps3_sys_manager_handle_msg()
552 switch (header.service_id) { in ps3_sys_manager_handle_msg()
562 dump_sm_header(&header); in ps3_sys_manager_handle_msg()
566 __func__, __LINE__, header.service_id); in ps3_sys_manager_handle_msg()
575 ps3_vuart_clear_rx_bytes(dev, header.payload_size); in ps3_sys_manager_handle_msg()