Lines Matching refs:header
243 const struct ps3_sys_manager_header *header, const void *payload) in ps3_sys_manager_write() argument
247 BUG_ON(header->version != 1); in ps3_sys_manager_write()
248 BUG_ON(header->size != 16); in ps3_sys_manager_write()
249 BUG_ON(header->payload_size != 8 && header->payload_size != 16); in ps3_sys_manager_write()
250 BUG_ON(header->service_id > 8); in ps3_sys_manager_write()
252 result = ps3_vuart_write(dev, header, in ps3_sys_manager_write()
256 result = ps3_vuart_write(dev, payload, header->payload_size); in ps3_sys_manager_write()
269 struct ps3_sys_manager_header header; in ps3_sys_manager_send_attr() local
280 memset(&header, 0, sizeof(header)); in ps3_sys_manager_send_attr()
281 header.version = 1; in ps3_sys_manager_send_attr()
282 header.size = 16; in ps3_sys_manager_send_attr()
283 header.payload_size = 16; in ps3_sys_manager_send_attr()
284 header.service_id = PS3_SM_SERVICE_ID_SET_ATTR; in ps3_sys_manager_send_attr()
290 return ps3_sys_manager_write(dev, &header, &payload); in ps3_sys_manager_send_attr()
303 struct ps3_sys_manager_header header; in ps3_sys_manager_send_next_op() local
317 memset(&header, 0, sizeof(header)); in ps3_sys_manager_send_next_op()
318 header.version = 1; in ps3_sys_manager_send_next_op()
319 header.size = 16; in ps3_sys_manager_send_next_op()
320 header.payload_size = 16; in ps3_sys_manager_send_next_op()
321 header.service_id = PS3_SM_SERVICE_ID_SET_NEXT_OP; in ps3_sys_manager_send_next_op()
329 return ps3_sys_manager_write(dev, &header, &payload); in ps3_sys_manager_send_next_op()
347 struct ps3_sys_manager_header header; in ps3_sys_manager_send_request_shutdown() local
359 memset(&header, 0, sizeof(header)); in ps3_sys_manager_send_request_shutdown()
360 header.version = 1; in ps3_sys_manager_send_request_shutdown()
361 header.size = 16; in ps3_sys_manager_send_request_shutdown()
362 header.payload_size = 16; in ps3_sys_manager_send_request_shutdown()
363 header.service_id = PS3_SM_SERVICE_ID_REQUEST; in ps3_sys_manager_send_request_shutdown()
370 return ps3_sys_manager_write(dev, &header, &payload); in ps3_sys_manager_send_request_shutdown()
384 struct ps3_sys_manager_header header; in ps3_sys_manager_send_response() local
397 memset(&header, 0, sizeof(header)); in ps3_sys_manager_send_response()
398 header.version = 1; in ps3_sys_manager_send_response()
399 header.size = 16; in ps3_sys_manager_send_response()
400 header.payload_size = 16; in ps3_sys_manager_send_response()
401 header.service_id = PS3_SM_SERVICE_ID_RESPONSE; in ps3_sys_manager_send_response()
407 return ps3_sys_manager_write(dev, &header, &payload); in ps3_sys_manager_send_response()
541 struct ps3_sys_manager_header header; in ps3_sys_manager_handle_msg() local
543 result = ps3_vuart_read(dev, &header, in ps3_sys_manager_handle_msg()
549 if (header.version != 1) { in ps3_sys_manager_handle_msg()
551 __func__, __LINE__, header.version); in ps3_sys_manager_handle_msg()
552 dump_sm_header(&header); in ps3_sys_manager_handle_msg()
556 BUILD_BUG_ON(sizeof(header) != 16); in ps3_sys_manager_handle_msg()
558 if (header.size != 16 || (header.payload_size != 8 in ps3_sys_manager_handle_msg()
559 && header.payload_size != 16)) { in ps3_sys_manager_handle_msg()
560 dump_sm_header(&header); in ps3_sys_manager_handle_msg()
564 switch (header.service_id) { in ps3_sys_manager_handle_msg()
574 dump_sm_header(&header); in ps3_sys_manager_handle_msg()
578 __func__, __LINE__, header.service_id); in ps3_sys_manager_handle_msg()
587 ps3_vuart_clear_rx_bytes(dev, header.payload_size); in ps3_sys_manager_handle_msg()