/linux/tools/perf/util/intel-pt-decoder/ |
H A D | intel-pt-pkt-decoder.c | 74 struct intel_pt_pkt *packet) in intel_pt_get_long_tnt() argument 90 packet->type = INTEL_PT_TNT; in intel_pt_get_long_tnt() 91 packet->count = count; in intel_pt_get_long_tnt() 92 packet->payload = payload << 1; in intel_pt_get_long_tnt() 97 struct intel_pt_pkt *packet) in intel_pt_get_pip() argument 104 packet->type = INTEL_PT_PIP; in intel_pt_get_pip() 106 packet->payload = payload; in intel_pt_get_pip() 111 static int intel_pt_get_tracestop(struct intel_pt_pkt *packet) in intel_pt_get_tracestop() argument 113 packet->type = INTEL_PT_TRACESTOP; in intel_pt_get_tracestop() 118 struct intel_pt_pkt *packet) in intel_pt_get_cbr() argument 128 intel_pt_get_vmcs(const unsigned char * buf,size_t len,struct intel_pt_pkt * packet) intel_pt_get_vmcs() argument 140 intel_pt_get_ovf(struct intel_pt_pkt * packet) intel_pt_get_ovf() argument 147 intel_pt_get_psb(const unsigned char * buf,size_t len,struct intel_pt_pkt * packet) intel_pt_get_psb() argument 163 intel_pt_get_psbend(struct intel_pt_pkt * packet) intel_pt_get_psbend() argument 170 intel_pt_get_tma(const unsigned char * buf,size_t len,struct intel_pt_pkt * packet) intel_pt_get_tma() argument 181 intel_pt_get_pad(struct intel_pt_pkt * packet) intel_pt_get_pad() argument 188 intel_pt_get_mnt(const unsigned char * buf,size_t len,struct intel_pt_pkt * packet) intel_pt_get_mnt() argument 198 intel_pt_get_3byte(const unsigned char * buf,size_t len,struct intel_pt_pkt * packet) intel_pt_get_3byte() argument 212 intel_pt_get_ptwrite(const unsigned char * buf,size_t len,struct intel_pt_pkt * packet) intel_pt_get_ptwrite() argument 234 intel_pt_get_exstop(struct intel_pt_pkt * packet) intel_pt_get_exstop() argument 240 intel_pt_get_exstop_ip(struct intel_pt_pkt * packet) intel_pt_get_exstop_ip() argument 247 intel_pt_get_mwait(const unsigned char * buf,size_t len,struct intel_pt_pkt * packet) intel_pt_get_mwait() argument 257 intel_pt_get_pwre(const unsigned char * buf,size_t len,struct intel_pt_pkt * packet) intel_pt_get_pwre() argument 267 intel_pt_get_pwrx(const unsigned char * buf,size_t len,struct intel_pt_pkt * packet) intel_pt_get_pwrx() argument 277 intel_pt_get_bbp(const unsigned char * buf,size_t len,struct intel_pt_pkt * packet) intel_pt_get_bbp() argument 288 intel_pt_get_bip_4(const unsigned char * buf,size_t len,struct intel_pt_pkt * packet) intel_pt_get_bip_4() argument 299 intel_pt_get_bip_8(const unsigned char * buf,size_t len,struct intel_pt_pkt * packet) intel_pt_get_bip_8() argument 309 intel_pt_get_bep(size_t len,struct intel_pt_pkt * packet) intel_pt_get_bep() argument 317 intel_pt_get_bep_ip(size_t len,struct intel_pt_pkt * packet) intel_pt_get_bep_ip() argument 326 intel_pt_get_cfe(const unsigned char * buf,size_t len,struct intel_pt_pkt * packet) intel_pt_get_cfe() argument 337 intel_pt_get_evd(const unsigned char * buf,size_t len,struct intel_pt_pkt * packet) intel_pt_get_evd() argument 349 intel_pt_get_ext(const unsigned char * buf,size_t len,struct intel_pt_pkt * packet) intel_pt_get_ext() argument 404 intel_pt_get_short_tnt(unsigned int byte,struct intel_pt_pkt * packet) intel_pt_get_short_tnt() argument 422 intel_pt_get_cyc(unsigned int byte,const unsigned char * buf,size_t len,struct intel_pt_pkt * packet) intel_pt_get_cyc() argument 445 intel_pt_get_ip(enum intel_pt_pkt_type type,unsigned int byte,const unsigned char * buf,size_t len,struct intel_pt_pkt * packet) intel_pt_get_ip() argument 490 intel_pt_get_mode(const unsigned char * buf,size_t len,struct intel_pt_pkt * packet) intel_pt_get_mode() argument 527 intel_pt_get_tsc(const unsigned char * buf,size_t len,struct intel_pt_pkt * packet) intel_pt_get_tsc() argument 537 intel_pt_get_mtc(const unsigned char * buf,size_t len,struct intel_pt_pkt * packet) intel_pt_get_mtc() argument 547 intel_pt_do_get_packet(const unsigned char * buf,size_t len,struct intel_pt_pkt * packet,enum intel_pt_pkt_ctx ctx) intel_pt_do_get_packet() argument 612 intel_pt_upd_pkt_ctx(const struct intel_pt_pkt * packet,enum intel_pt_pkt_ctx * ctx) intel_pt_upd_pkt_ctx() argument 665 intel_pt_get_packet(const unsigned char * buf,size_t len,struct intel_pt_pkt * packet,enum intel_pt_pkt_ctx * ctx) intel_pt_get_packet() argument 678 intel_pt_pkt_desc(const struct intel_pt_pkt * packet,char * buf,size_t buf_len) intel_pt_pkt_desc() argument [all...] |
/linux/drivers/gpu/drm/amd/amdkfd/ |
H A D | kfd_packet_manager_vi.c | 46 struct pm4_mes_map_process *packet; in pm_map_process_vi() local 48 packet = (struct pm4_mes_map_process *)buffer; in pm_map_process_vi() 52 packet->header.u32All = pm_build_pm4_header(IT_MAP_PROCESS, in pm_map_process_vi() 54 packet->bitfields2.diq_enable = (qpd->is_debug) ? 1 : 0; in pm_map_process_vi() 55 packet->bitfields2.process_quantum = 10; in pm_map_process_vi() 56 packet->bitfields2.pasid = pdd->pasid; in pm_map_process_vi() 57 packet->bitfields3.page_table_base = qpd->page_table_base; in pm_map_process_vi() 58 packet->bitfields10.gds_size = qpd->gds_size; in pm_map_process_vi() 59 packet->bitfields10.num_gws = qpd->num_gws; in pm_map_process_vi() 60 packet in pm_map_process_vi() 79 struct pm4_mes_runlist *packet; pm_runlist_vi() local 118 struct pm4_mes_set_resources *packet; pm_set_resources_vi() local 146 struct pm4_mes_map_queues *packet; pm_map_queues_vi() local 205 struct pm4_mes_unmap_queues *packet; pm_unmap_queues_vi() local 250 struct pm4_mes_query_status *packet; pm_query_status_vi() local 274 struct pm4_mec_release_mem *packet; pm_release_mem_vi() local [all...] |
H A D | kfd_packet_manager_v9.c | 35 struct pm4_mes_map_process *packet; in pm_map_process_v9() local 42 packet = (struct pm4_mes_map_process *)buffer; in pm_map_process_v9() 44 packet->header.u32All = pm_build_pm4_header(IT_MAP_PROCESS, in pm_map_process_v9() 47 packet->bitfields2.exec_cleaner_shader = 1; in pm_map_process_v9() 48 packet->bitfields2.diq_enable = (qpd->is_debug) ? 1 : 0; in pm_map_process_v9() 49 packet->bitfields2.process_quantum = 10; in pm_map_process_v9() 50 packet->bitfields2.pasid = pdd->pasid; in pm_map_process_v9() 51 packet->bitfields14.gds_size = qpd->gds_size & 0x3F; in pm_map_process_v9() 52 packet->bitfields14.gds_size_hi = (qpd->gds_size >> 6) & 0xF; in pm_map_process_v9() 53 packet in pm_map_process_v9() 92 struct pm4_mes_map_process_aldebaran *packet; pm_map_process_aldebaran() local 151 struct pm4_mes_runlist *packet; pm_runlist_v9() local 194 struct pm4_mes_set_resources *packet; pm_set_resources_v9() local 230 struct pm4_mes_map_queues *packet; pm_map_queues_v9() local 328 struct pm4_mec_write_data_mmio *packet; pm_config_dequeue_wait_counts_v9() local 398 struct pm4_mes_unmap_queues *packet; pm_unmap_queues_v9() local 448 struct pm4_mes_query_status *packet; pm_query_status_v9() local [all...] |
/linux/net/sctp/ |
H A D | output.c | 45 static enum sctp_xmit __sctp_packet_append_chunk(struct sctp_packet *packet, 47 static enum sctp_xmit sctp_packet_can_append_data(struct sctp_packet *packet, 49 static void sctp_packet_append_data(struct sctp_packet *packet, 51 static enum sctp_xmit sctp_packet_will_fit(struct sctp_packet *packet, 55 static void sctp_packet_reset(struct sctp_packet *packet) in sctp_packet_reset() argument 60 packet->size = packet->overhead; in sctp_packet_reset() 62 packet->has_cookie_echo = 0; in sctp_packet_reset() 63 packet->has_sack = 0; in sctp_packet_reset() 64 packet in sctp_packet_reset() 73 sctp_packet_config(struct sctp_packet * packet,__u32 vtag,int ecn_capable) sctp_packet_config() argument 144 sctp_packet_init(struct sctp_packet * packet,struct sctp_transport * transport,__u16 sport,__u16 dport) sctp_packet_init() argument 161 sctp_packet_free(struct sctp_packet * packet) sctp_packet_free() argument 180 sctp_packet_transmit_chunk(struct sctp_packet * packet,struct sctp_chunk * chunk,int one_packet,gfp_t gfp) sctp_packet_transmit_chunk() argument 328 __sctp_packet_append_chunk(struct sctp_packet * packet,struct sctp_chunk * chunk) __sctp_packet_append_chunk() argument 383 sctp_packet_append_chunk(struct sctp_packet * packet,struct sctp_chunk * chunk) sctp_packet_append_chunk() argument 436 sctp_packet_pack(struct sctp_packet * packet,struct sk_buff * head,int gso,gfp_t gfp) sctp_packet_pack() argument 569 sctp_packet_transmit(struct sctp_packet * packet,gfp_t gfp) sctp_packet_transmit() argument 672 sctp_packet_can_append_data(struct sctp_packet * packet,struct sctp_chunk * chunk) sctp_packet_can_append_data() argument 756 sctp_packet_append_data(struct sctp_packet * packet,struct sctp_chunk * chunk) sctp_packet_append_data() argument 781 sctp_packet_will_fit(struct sctp_packet * packet,struct sctp_chunk * chunk,u16 chunk_len) sctp_packet_will_fit() argument [all...] |
/linux/drivers/net/wireless/ath/ath6kl/ |
H A D | htc_mbox.c | 359 static void ath6kl_htc_tx_prep_pkt(struct htc_packet *packet, u8 flags, in ath6kl_htc_tx_prep_pkt() argument 364 packet->buf -= HTC_HDR_LENGTH; in ath6kl_htc_tx_prep_pkt() 365 hdr = (struct htc_frame_hdr *)packet->buf; in ath6kl_htc_tx_prep_pkt() 367 put_unaligned_le16(packet->act_len, &hdr->payld_len); in ath6kl_htc_tx_prep_pkt() 369 hdr->eid = packet->endpoint; in ath6kl_htc_tx_prep_pkt() 385 struct htc_packet *packet = NULL; in htc_get_control_buf() local 397 packet = list_first_entry(buf_list, struct htc_packet, list); in htc_get_control_buf() 398 list_del(&packet->list); in htc_get_control_buf() 402 packet->buf = packet in htc_get_control_buf() 409 htc_tx_comp_update(struct htc_target * target,struct htc_endpoint * endpoint,struct htc_packet * packet) htc_tx_comp_update() argument 451 htc_tx_comp_handler(struct htc_target * target,struct htc_packet * packet) htc_tx_comp_handler() argument 470 struct htc_packet *packet; htc_async_tx_scat_complete() local 507 ath6kl_htc_tx_issue(struct htc_target * target,struct htc_packet * packet) ath6kl_htc_tx_issue() argument 604 struct htc_packet *packet; ath6kl_htc_tx_pkts_get() local 684 struct htc_packet *packet; ath6kl_htc_tx_setup_scat_list() local 761 struct htc_packet *packet; ath6kl_htc_tx_bundle() local 861 struct htc_packet *packet; ath6kl_htc_tx_from_queue() local 1121 ath6kl_htc_mbox_tx(struct htc_target * target,struct htc_packet * packet) ath6kl_htc_mbox_tx() argument 1152 struct htc_packet *packet, *tmp_pkt; ath6kl_htc_mbox_flush_txep() local 1268 htc_add_rxbuf(struct htc_target * target,struct htc_packet * packet) htc_add_rxbuf() argument 1278 htc_reclaim_rxbuf(struct htc_target * target,struct htc_packet * packet,struct htc_endpoint * ep) htc_reclaim_rxbuf() argument 1292 reclaim_rx_ctrl_buf(struct htc_target * target,struct htc_packet * packet) reclaim_rx_ctrl_buf() argument 1300 ath6kl_htc_rx_packet(struct htc_target * target,struct htc_packet * packet,u32 rx_len) ath6kl_htc_rx_packet() argument 1337 ath6kl_htc_rx_set_indicate(u32 lk_ahd,struct htc_endpoint * endpoint,struct htc_packet * packet) ath6kl_htc_rx_set_indicate() argument 1369 struct htc_packet *packet; ath6kl_htc_rx_setup() local 1474 struct htc_packet *packet, *tmp_pkt; ath6kl_htc_rx_alloc() local 1803 ath6kl_htc_rx_process_hdr(struct htc_target * target,struct htc_packet * packet,u32 * next_lkahds,int * n_lkahds) ath6kl_htc_rx_process_hdr() argument 1900 ath6kl_htc_rx_complete(struct htc_endpoint * endpoint,struct htc_packet * packet) ath6kl_htc_rx_complete() argument 1915 struct htc_packet *packet; ath6kl_htc_rx_bundle() local 2007 struct htc_packet *packet, *tmp_pkt; ath6kl_htc_rx_process_packets() local 2060 struct htc_packet *packet, *tmp_pkt; ath6kl_htc_rx_fetch() local 2261 struct htc_packet *packet = NULL; htc_wait_for_ctrl_msg() local 2341 struct htc_packet *packet, *tmp_pkt; ath6kl_htc_mbox_add_rxbuf_multiple() local 2381 struct htc_packet *packet, *tmp_pkt; ath6kl_htc_mbox_flush_rx_buf() local 2655 struct htc_packet *packet = NULL; ath6kl_htc_mbox_wait_target() local 2740 struct htc_packet *packet; ath6kl_htc_mbox_start() local 2783 struct htc_packet *packet; ath6kl_htc_reset() local 2889 struct htc_packet *packet, *tmp_packet; ath6kl_htc_mbox_cleanup() local [all...] |
H A D | htc_pipe.c | 25 struct htc_packet *packet); 29 static inline void restore_tx_packet(struct htc_packet *packet) in restore_tx_packet() argument 31 if (packet->info.tx.flags & HTC_FLAGS_TX_FIXUP_NETBUF) { in restore_tx_packet() 32 skb_pull(packet->skb, sizeof(struct htc_frame_hdr)); in restore_tx_packet() 33 packet->info.tx.flags &= ~HTC_FLAGS_TX_FIXUP_NETBUF; in restore_tx_packet() 40 struct htc_packet *packet; in do_send_completion() local 65 packet = list_first_entry(queue_to_indicate, in do_send_completion() 68 list_del(&packet->list); in do_send_completion() 70 "%s: calling ep %d send complete callback on packet 0x%p\n", in do_send_completion() 71 __func__, ep->eid, packet); in do_send_completion() 78 send_packet_completion(struct htc_target * target,struct htc_packet * packet) send_packet_completion() argument 98 struct htc_packet *packet; get_htc_packet_credit_based() local 177 struct htc_packet *packet; get_htc_packet() local 211 struct htc_packet *packet; htc_issue_packets() local 304 struct htc_packet *packet, *tmp_pkt; htc_try_send() local 500 destroy_htc_txctrl_packet(struct htc_packet * packet) destroy_htc_txctrl_packet() argument 510 struct htc_packet *packet = NULL; build_htc_txctrl_packet() local 529 htc_free_txctrl_packet(struct htc_target * target,struct htc_packet * packet) htc_free_txctrl_packet() argument 540 htc_txctrl_complete(struct htc_target * target,struct htc_packet * packet) htc_txctrl_complete() argument 693 struct htc_packet *packet; htc_flush_tx_endpoint() local 716 struct htc_packet *packet, *tmp_pkt, *found_packet = NULL; htc_lookup_tx_packet() local 746 struct htc_packet *packet; ath6kl_htc_pipe_tx_complete() local 783 struct htc_packet *packet, *tmp_pkt; htc_send_packets_multiple() local 814 struct htc_packet *packet; alloc_htc_packet_container() local 832 free_htc_packet_container(struct htc_target * target,struct htc_packet * packet) free_htc_packet_container() argument 911 struct htc_packet *packet; do_recv_completion() local 931 recv_packet_completion(struct htc_target * target,struct htc_endpoint * ep,struct htc_packet * packet) recv_packet_completion() argument 948 struct htc_packet *packet; ath6kl_htc_pipe_rx_complete() local 1098 struct htc_packet *packet; htc_flush_rx_queue() local 1160 htc_rxctrl_complete(struct htc_target * context,struct htc_packet * packet) htc_rxctrl_complete() argument 1222 struct htc_packet *packet = NULL; ath6kl_htc_pipe_conn_service() local 1409 struct htc_packet *packet; ath6kl_htc_pipe_create() local 1462 struct htc_packet *packet; ath6kl_htc_pipe_cleanup() local 1481 struct htc_packet *packet; ath6kl_htc_pipe_start() local 1539 ath6kl_htc_pipe_tx(struct htc_target * target,struct htc_packet * packet) ath6kl_htc_pipe_tx() argument 1624 struct htc_packet *packet, *tmp_pkt, *first; ath6kl_htc_pipe_add_rxbuf_multiple() local 1673 struct htc_packet *packet, *tmp_pkt; ath6kl_htc_pipe_flush_rx_buf() local [all...] |
/linux/drivers/platform/surface/aggregator/ |
H A D | ssh_packet_layer.c | 3 * SSH packet transport layer. 53 * The code below employs two main data structures: The packet queue, 57 * Shared ownership of a packet is controlled via reference counting. Inside 58 * the transport system are a total of five packet owners: 60 * - the packet queue, 66 * Normal operation is as follows: The initial reference of the packet is 67 * obtained by submitting the packet and queuing it. The receiver thread takes 69 * but takes over the reference (removing it from the queue). If the packet is 71 * sets-up the timeout and adds the packet to the pending set before starting 74 * by the transmitter thread is dropped. If the packet i 329 __ssh_ptl_should_drop_ack_packet(struct ssh_packet * packet) __ssh_ptl_should_drop_ack_packet() argument 341 __ssh_ptl_should_drop_nak_packet(struct ssh_packet * packet) __ssh_ptl_should_drop_nak_packet() argument 353 __ssh_ptl_should_drop_dsq_packet(struct ssh_packet * packet) __ssh_ptl_should_drop_dsq_packet() argument 366 ssh_ptl_should_drop_packet(struct ssh_packet * packet) ssh_ptl_should_drop_packet() argument 387 ssh_ptl_write_buf(struct ssh_ptl * ptl,struct ssh_packet * packet,const unsigned char * buf,size_t count) ssh_ptl_write_buf() argument 405 ssh_ptl_tx_inject_invalid_data(struct ssh_packet * packet) ssh_ptl_tx_inject_invalid_data() argument 481 ssh_ptl_should_drop_packet(struct ssh_packet * packet) ssh_ptl_should_drop_packet() argument 487 ssh_ptl_write_buf(struct ssh_ptl * ptl,struct ssh_packet * packet,const unsigned char * buf,size_t count) ssh_ptl_write_buf() argument 494 ssh_ptl_tx_inject_invalid_data(struct ssh_packet * packet) ssh_ptl_tx_inject_invalid_data() argument 529 ssh_packet_get(struct ssh_packet * packet) ssh_packet_get() argument 547 ssh_packet_put(struct ssh_packet * packet) ssh_packet_put() argument 554 ssh_packet_get_seq(struct ssh_packet * packet) ssh_packet_get_seq() argument 572 ssh_packet_init(struct ssh_packet * packet,unsigned long type,u8 priority,const struct ssh_packet_ops * ops) ssh_packet_init() argument 634 ssh_ctrl_packet_alloc(struct ssh_packet ** packet,struct ssam_span * buffer,gfp_t flags) ssh_ctrl_packet_alloc() argument 739 __ssh_ptl_queue_push(struct ssh_packet * packet) __ssh_ptl_queue_push() argument 763 ssh_ptl_queue_push(struct ssh_packet * packet) ssh_ptl_queue_push() argument 774 ssh_ptl_queue_remove(struct ssh_packet * packet) ssh_ptl_queue_remove() argument 831 ssh_ptl_pending_remove(struct ssh_packet * packet) ssh_ptl_pending_remove() argument 883 ssh_ptl_tx_can_process(struct ssh_packet * packet) ssh_ptl_tx_can_process() argument 904 struct ssh_packet *packet = ERR_PTR(-ENOENT); ssh_ptl_tx_pop() local 973 ssh_ptl_tx_compl_success(struct ssh_packet * packet) ssh_ptl_tx_compl_success() argument 998 ssh_ptl_tx_compl_error(struct ssh_packet * packet,int status) ssh_ptl_tx_compl_error() argument 1051 ssh_ptl_tx_packet(struct ssh_ptl * ptl,struct ssh_packet * packet) ssh_ptl_tx_packet() argument 1104 struct ssh_packet *packet; ssh_ptl_tx_threadfn() local 1195 struct ssh_packet *packet = ERR_PTR(-ENOENT); ssh_ptl_ack_pop() local 1237 ssh_ptl_wait_until_transmitted(struct ssh_packet * packet) ssh_ptl_wait_until_transmitted() argument 1363 __ssh_ptl_resubmit(struct ssh_packet * packet) __ssh_ptl_resubmit() argument 1651 struct ssh_packet *packet; ssh_ptl_send_ack() local 1675 struct ssh_packet *packet; ssh_ptl_send_nak() local [all...] |
/linux/drivers/media/test-drivers/vivid/ |
H A D | vivid-vbi-gen.c | 172 static void vivid_vbi_gen_set_time_of_day(u8 *packet) in vivid_vbi_gen_set_time_of_day() argument 178 packet[0] = calc_parity(0x07); in vivid_vbi_gen_set_time_of_day() 179 packet[1] = calc_parity(0x01); in vivid_vbi_gen_set_time_of_day() 180 packet[2] = calc_parity(0x40 | tm.tm_min); in vivid_vbi_gen_set_time_of_day() 181 packet[3] = calc_parity(0x40 | tm.tm_hour); in vivid_vbi_gen_set_time_of_day() 182 packet[4] = calc_parity(0x40 | tm.tm_mday); in vivid_vbi_gen_set_time_of_day() 185 packet[4] = calc_parity(0x60 | tm.tm_mday); in vivid_vbi_gen_set_time_of_day() 186 packet[5] = calc_parity(0x40 | (1 + tm.tm_mon)); in vivid_vbi_gen_set_time_of_day() 187 packet[6] = calc_parity(0x40 | (1 + tm.tm_wday)); in vivid_vbi_gen_set_time_of_day() 188 packet[ in vivid_vbi_gen_set_time_of_day() 211 vivid_vbi_gen_teletext(u8 * packet,unsigned line,unsigned frame) vivid_vbi_gen_teletext() argument [all...] |
/linux/drivers/usb/misc/sisusbvga/ |
H A D | sisusbvga.c | 513 struct sisusb_packet *packet) in sisusb_send_packet() argument 520 packet->data = 0; in sisusb_send_packet() 528 SISUSB_CORRECT_ENDIANNESS_PACKET(packet); in sisusb_send_packet() 530 /* 1. send the packet */ in sisusb_send_packet() 532 (char *)packet, NULL, 0, &bytes_transferred, 0, 0); in sisusb_send_packet() 536 /* 2. if packet len == 6, it means we read, so wait for 32bit in sisusb_send_packet() 537 * return value and write it to packet->data in sisusb_send_packet() 542 packet->data = le32_to_cpu(tmp); in sisusb_send_packet() 549 struct sisusb_packet *packet, unsigned int tflags) in sisusb_send_bridge_packet() argument 556 packet in sisusb_send_bridge_packet() 599 struct sisusb_packet packet; sisusb_write_memio_byte() local 610 struct sisusb_packet packet; sisusb_write_memio_word() local 647 struct sisusb_packet packet; sisusb_write_memio_24bit() local 688 struct sisusb_packet packet; sisusb_write_memio_long() local 744 struct sisusb_packet packet; sisusb_write_mem_bulk() local 956 struct sisusb_packet packet; sisusb_read_memio_byte() local 970 struct sisusb_packet packet; sisusb_read_memio_word() local 1009 struct sisusb_packet packet; sisusb_read_memio_24bit() local 1050 struct sisusb_packet packet; sisusb_read_memio_long() local 1276 struct sisusb_packet packet; sisusb_write_pci_config() local 1287 struct sisusb_packet packet; sisusb_read_pci_config() local 2069 struct sisusb_packet packet; sisusb_do_init_gfxdevice() local [all...] |
/linux/drivers/tty/hvc/ |
H A D | hvsi.c | 68 /* inbuf is for packet reassembly. leave a little room for leftovers. */ 75 atomic_t seqno; /* HVSI packet sequence number */ 145 static inline int len_packet(const uint8_t *packet) in len_packet() argument 147 return (int)((struct hvsi_header *)packet)->len; in len_packet() 150 static inline int is_header(const uint8_t *packet) in is_header() argument 152 struct hvsi_header *header = (struct hvsi_header *)packet; in is_header() 156 static inline int got_packet(const struct hvsi_struct *hp, uint8_t *packet) in got_packet() argument 158 if (hp->inbuf_end < packet + sizeof(struct hvsi_header)) in got_packet() 159 return 0; /* don't even have the packet header */ in got_packet() 161 if (hp->inbuf_end < (packet in got_packet() 181 dbg_dump_packet(packet) global() argument 184 dbg_dump_packet(packet) global() argument 206 dump_packet(uint8_t * packet) dump_packet() argument 225 hvsi_recv_control(struct hvsi_struct * hp,uint8_t * packet,struct tty_struct * tty,struct hvsi_struct ** to_handshake) hvsi_recv_control() argument 254 hvsi_recv_response(struct hvsi_struct * hp,uint8_t * packet) hvsi_recv_response() argument 305 hvsi_recv_query(struct hvsi_struct * hp,uint8_t * packet) hvsi_recv_query() argument 350 hvsi_recv_data(struct hvsi_struct * hp,const uint8_t * packet) hvsi_recv_data() argument 391 uint8_t *packet = hp->inbuf; hvsi_load_chunk() local [all...] |
/linux/drivers/input/mouse/ |
H A D | elantech.c | 262 * Dump a complete mouse movement packet to the syslog 266 psmouse_printk(KERN_DEBUG, psmouse, "PS/2 packet [%*ph]\n", in elantech_packet_dump() 267 psmouse->pktsize, psmouse->packet); in elantech_packet_dump() 324 unsigned char *packet = psmouse->packet; in elantech_report_absolute_v1() local 332 fingers = ((packet[1] & 0x80) >> 7) + in elantech_report_absolute_v1() 333 ((packet[1] & 0x30) >> 4); in elantech_report_absolute_v1() 339 fingers = (packet[0] & 0xc0) >> 6; in elantech_report_absolute_v1() 348 elantech_debug("discarding packet\n"); in elantech_report_absolute_v1() 361 ((packet[ in elantech_report_absolute_v1() 412 unsigned char *packet = psmouse->packet; elantech_report_absolute_v2() local 509 unsigned char *packet = psmouse->packet; elantech_report_trackpoint() local 563 unsigned char *packet = psmouse->packet; elantech_report_absolute_v3() local 641 unsigned char *packet = psmouse->packet; elantech_input_sync_v4() local 656 unsigned char *packet = psmouse->packet; process_packet_status_v4() local 676 unsigned char *packet = psmouse->packet; process_packet_head_v4() local 706 unsigned char *packet = psmouse->packet; process_packet_motion_v4() local 769 unsigned char *packet = psmouse->packet; elantech_packet_check_v1() local 799 unsigned char *packet = psmouse->packet; elantech_debounce_check_v2() local 807 unsigned char *packet = psmouse->packet; elantech_packet_check_v2() local 842 unsigned char *packet = psmouse->packet; elantech_packet_check_v3() local 877 unsigned char *packet = psmouse->packet; elantech_packet_check_v4() local [all...] |
H A D | lifebook.c | 8 * TouchScreen detection, absolute mode setting and packet layout is taken from 137 u8 *packet = psmouse->packet; in lifebook_process_byte() local 138 bool relative_packet = packet[0] & 0x08; in lifebook_process_byte() 146 return (packet[0] & 0xf8) == 0x00 ? in lifebook_process_byte() 151 return ((packet[2] & 0x30) << 2) == (packet[2] & 0xc0) ? in lifebook_process_byte() 154 return (packet[3] & 0xf8) == 0xc0 ? in lifebook_process_byte() 157 return (packet[4] & 0xc0) == (packet[ in lifebook_process_byte() [all...] |
H A D | touchkit_ps2.c | 36 #define TOUCHKIT_GET_TOUCHED(packet) (((packet)[0]) & 0x01) argument 37 #define TOUCHKIT_GET_X(packet) (((packet)[1] << 7) | (packet)[2]) argument 38 #define TOUCHKIT_GET_Y(packet) (((packet)[3] << 7) | (packet)[4]) argument 42 unsigned char *packet = psmouse->packet; in touchkit_ps2_process_byte() local [all...] |
H A D | focaltech.c | 71 * following absolute position packet for the finger where the 150 unsigned char *packet) in focaltech_process_touch_packet() argument 154 unsigned char fingers = packet[1]; in focaltech_process_touch_packet() 157 state->pressed = (packet[0] >> 4) & 1; in focaltech_process_touch_packet() 174 unsigned char *packet) in focaltech_process_abs_packet() argument 180 finger = (packet[1] >> 4) - 1; in focaltech_process_abs_packet() 182 psmouse_err(psmouse, "Invalid finger in abs packet: %d\n", in focaltech_process_abs_packet() 187 state->pressed = (packet[0] >> 4) & 1; in focaltech_process_abs_packet() 189 state->fingers[finger].x = ((packet[1] & 0xf) << 8) | packet[ in focaltech_process_abs_packet() 196 focaltech_process_rel_packet(struct psmouse * psmouse,unsigned char * packet) focaltech_process_rel_packet() argument 228 unsigned char *packet = psmouse->packet; focaltech_process_packet() local [all...] |
H A D | logips2pp.c | 38 * Process a PS2++ or PS2T++ packet. 44 u8 *packet = psmouse->packet; in ps2pp_process_byte() local 50 * Full packet accumulated, process it in ps2pp_process_byte() 53 if ((packet[0] & 0x48) == 0x48 && (packet[1] & 0x02) == 0x02) { in ps2pp_process_byte() 55 /* Logitech extended packet */ in ps2pp_process_byte() 56 switch ((packet[1] >> 4) | (packet[0] & 0x30)) { in ps2pp_process_byte() 61 packet[ in ps2pp_process_byte() [all...] |
H A D | sentelic.c | 27 #define GET_ABS_X(packet) ((packet[1] << 2) | ((packet[3] >> 2) & 0x03)) argument 28 #define GET_ABS_Y(packet) ((packet[2] << 2) | (packet[3] & 0x03)) argument 407 /* reconfigure horizontal scrolling packet output */ in fsp_onpad_hscr() 636 static void fsp_packet_debug(struct psmouse *psmouse, unsigned char packet[]) in fsp_packet_debug() argument 644 /* Interpret & dump the packet data. */ in fsp_packet_debug() 645 switch (packet[ in fsp_packet_debug() 677 fsp_packet_debug(struct psmouse * psmouse,unsigned char packet[]) fsp_packet_debug() argument 697 unsigned char *packet = psmouse->packet; fsp_process_byte() local [all...] |
/linux/drivers/tty/ipwireless/ |
H A D | hardware.c | 127 /* Number of bytes in NL packet header (cannot do 131 /* Number of bytes in NL packet header (cannot do 155 /* Network packet header of the first packet (a special case) */ 157 /* Network packet header of the following packets (if any) */ 159 /* Complete network packet (header + data) */ 239 /* Flag if hw is ready to send next packet */ 305 /* Count of packet fragments, starting at 0 */ 308 /* Called after packet is sent and before is freed */ 459 static void do_send_packet(struct ipw_hardware *hw, struct ipw_tx_packet *packet) in do_send_packet() argument 556 pool_allocate(struct ipw_hardware * hw,struct ipw_rx_packet * packet,int minimum_free_space) pool_allocate() argument 609 pool_free(struct ipw_hardware * hw,struct ipw_rx_packet * packet) pool_free() argument 626 struct ipw_rx_packet *packet = NULL; queue_received_packet() local 711 struct ipw_rx_packet *packet = ipw_receive_data_work() local 812 handle_received_packet(struct ipw_hardware * hw,const union nl_packet * packet,unsigned short len) handle_received_packet() argument 963 struct ipw_tx_packet *packet = NULL; send_pending_packet() local 1238 send_packet(struct ipw_hardware * hw,int priority,struct ipw_tx_packet * packet) send_packet() argument 1255 struct ipw_tx_packet *packet = kzalloc( alloc_data_packet() local 1280 struct ipw_control_packet *packet = kzalloc(header_size, GFP_ATOMIC); alloc_ctrl_packet() local 1299 struct ipw_tx_packet *packet; ipwireless_send_packet() local 1317 struct ipw_control_packet *packet; set_control_line() local 1570 struct ipw_setup_reboot_msg_ack *packet; handle_received_SETUP_packet() local [all...] |
/linux/tools/perf/arch/x86/tests/ |
H A D | intel-pt-test.c | 20 * @ctx: packet context to decode 21 * @packet: expected packet 22 * @new_ctx: expected new packet context 23 * @ctx_unchanged: the packet context must not change 29 struct intel_pt_pkt packet; member 189 static int dump_packet(const struct intel_pt_pkt *packet, const u8 *bytes, int len) in dump_packet() argument 199 ret = intel_pt_pkt_desc(packet, desc, INTEL_PT_PKT_DESC_MAX); in dump_packet() 213 dump_packet(&d->packet, d->bytes, d->len); in decoding_failed() 216 static int fail(const struct test_data *d, struct intel_pt_pkt *packet, in argument 245 test_ctx_unchanged(const struct test_data * d,struct intel_pt_pkt * packet,enum intel_pt_pkt_ctx ctx) test_ctx_unchanged() argument 263 struct intel_pt_pkt packet; test_one() local [all...] |
/linux/drivers/net/wireless/broadcom/b43legacy/ |
H A D | pio.c | 43 const u8 *packet, in tx_get_next_word() argument 54 source = packet; in tx_get_next_word() 65 const u8 *packet, in tx_data() argument 72 data = tx_get_next_word(txhdr, packet, in tx_data() 80 data = tx_get_next_word(txhdr, packet, in tx_data() 85 tx_octet(queue, packet[octets - in tx_data() 104 struct b43legacy_pio_txpacket *packet) in generate_cookie() argument 111 * for the packet index (in the cache). in generate_cookie() 128 packetindex = pio_txpacket_getindex(packet); in generate_cookie() 138 struct b43legacy_pio_txpacket **packet) in parse_cookie() argument 174 pio_tx_write_fragment(struct b43legacy_pioqueue * queue,struct sk_buff * skb,struct b43legacy_pio_txpacket * packet,size_t txhdr_size) pio_tx_write_fragment() argument 202 free_txpacket(struct b43legacy_pio_txpacket * packet,int irq_context) free_txpacket() argument 217 pio_tx_packet(struct b43legacy_pio_txpacket * packet) pio_tx_packet() argument 272 struct b43legacy_pio_txpacket *packet, *tmp_packet; tx_tasklet() local 301 struct b43legacy_pio_txpacket *packet; setup_txqueues() local 369 struct b43legacy_pio_txpacket *packet, *tmp_packet; cancel_transfers() local 456 struct b43legacy_pio_txpacket *packet; b43legacy_pio_tx() local 478 struct b43legacy_pio_txpacket *packet; b43legacy_pio_handle_txstatus() local [all...] |
/linux/drivers/input/joystick/ |
H A D | fsia6b.c | 57 struct ibus_packet packet; member 70 fsia6b->packet.ibuf = (data << 8) | ((fsia6b->packet.ibuf >> 8) & 0xFF); in fsia6b_serio_irq() 72 switch (fsia6b->packet.state) { in fsia6b_serio_irq() 74 if (fsia6b->packet.ibuf == 0x4020) in fsia6b_serio_irq() 75 fsia6b->packet.state = COLLECT; in fsia6b_serio_irq() 79 fsia6b->packet.state = PROCESS; in fsia6b_serio_irq() 83 fsia6b->packet.channel[fsia6b->packet.offset] = in fsia6b_serio_irq() 84 fsia6b->packet in fsia6b_serio_irq() [all...] |
H A D | xpad.c | 97 /* Send power-off packet to xpad360w after holding the mode button for this many 647 * This packet is required for all Xbox One pads with 2015 655 * This packet is required for Xbox One S (0x045e:0x02ea) 665 * This packet is required to get additional input data 674 * This packet is required for the Titanfall 2 Xbox One pads 684 * This packet is sent by default on Windows, and is required for some pads to 692 * This packet is required for most (all?) of the PDP pads to start 701 * A specific rumble packet is required for some PowerA pads to start 710 * A rumble packet with zero FF intensity will immediately 724 * packet i 1309 struct xpad_output_packet *pkt, *packet = NULL; xpad_prepare_next_out_packet() local 1466 struct xpad_output_packet *packet = xpad_inquiry_pad_presence() local 1523 struct xpad_output_packet *packet = xpadone_ack_mode_report() local 1546 struct xpad_output_packet *packet = &xpad->out_packets[XPAD_OUT_FF_IDX]; xpad_play_effect() local 1676 struct xpad_output_packet *packet = xpad_send_led_command() local 1835 struct xpad_output_packet *packet = xpad360w_poweroff_controller() local [all...] |
/linux/tools/testing/selftests/net/tcp_ao/ |
H A D | icmps-accept.c | 192 } packet = {}; in icmp_interfere4() local 199 packet_len = sizeof(packet); in icmp_interfere4() 200 set_ip4hdr(&packet.iph, packet_len, IPPROTO_ICMP, src, dst); in icmp_interfere4() 202 packet.icmph.type = type; in icmp_interfere4() 203 packet.icmph.code = code; in icmp_interfere4() 205 randomize_buffer(&packet.icmph.un.frag.mtu, in icmp_interfere4() 206 sizeof(packet.icmph.un.frag.mtu)); in icmp_interfere4() 209 packet_len = sizeof(packet.iphe) + sizeof(packet.tcph); in icmp_interfere4() 210 set_ip4hdr(&packet in icmp_interfere4() 307 } packet = {}; icmp6_interfere() local [all...] |
H A D | icmps-discard.c | 192 } packet = {}; in icmp_interfere4() local 199 packet_len = sizeof(packet); in icmp_interfere4() 200 set_ip4hdr(&packet.iph, packet_len, IPPROTO_ICMP, src, dst); in icmp_interfere4() 202 packet.icmph.type = type; in icmp_interfere4() 203 packet.icmph.code = code; in icmp_interfere4() 205 randomize_buffer(&packet.icmph.un.frag.mtu, in icmp_interfere4() 206 sizeof(packet.icmph.un.frag.mtu)); in icmp_interfere4() 209 packet_len = sizeof(packet.iphe) + sizeof(packet.tcph); in icmp_interfere4() 210 set_ip4hdr(&packet in icmp_interfere4() 307 } packet = {}; icmp6_interfere() local [all...] |
/linux/drivers/gpio/ |
H A D | gpio-ljca.c | 80 struct ljca_gpio_packet *packet = in ljca_gpio_config() local 85 packet->num = 1; in ljca_gpio_config() 86 packet->item[0].index = gpio_id; in ljca_gpio_config() 87 packet->item[0].value = config | ljca_gpio->connect_mode[gpio_id]; in ljca_gpio_config() 89 ret = ljca_transfer(ljca_gpio->ljca, LJCA_GPIO_CONFIG, (u8 *)packet, in ljca_gpio_config() 90 struct_size(packet, item, packet->num), NULL, 0); in ljca_gpio_config() 100 struct ljca_gpio_packet *packet = in ljca_gpio_read() local 105 packet->num = 1; in ljca_gpio_read() 106 packet in ljca_gpio_read() 124 struct ljca_gpio_packet *packet = ljca_gpio_write() local 252 struct ljca_gpio_packet *packet = ljca_enable_irq() local 287 const struct ljca_gpio_packet *packet = evt_data; ljca_gpio_event_cb() local [all...] |
/linux/drivers/media/platform/qcom/iris/ |
H A D | iris_hfi_gen1_command.c | 42 struct hfi_sys_get_property_pkt packet; in iris_hfi_gen1_sys_image_version() local 44 packet.hdr.size = sizeof(packet); in iris_hfi_gen1_sys_image_version() 45 packet.hdr.pkt_type = HFI_CMD_SYS_GET_PROPERTY; in iris_hfi_gen1_sys_image_version() 46 packet.num_properties = 1; in iris_hfi_gen1_sys_image_version() 47 packet.data = HFI_PROPERTY_SYS_IMAGE_VERSION; in iris_hfi_gen1_sys_image_version() 49 return iris_hfi_queue_cmd_write_locked(core, &packet, packet.hdr.size); in iris_hfi_gen1_sys_image_version() 90 struct hfi_session_open_pkt packet; in iris_hfi_gen1_session_open() local 109 packet in iris_hfi_gen1_session_open() 125 iris_hfi_gen1_packet_session_cmd(struct iris_inst * inst,struct hfi_session_pkt * packet,u32 ptype) iris_hfi_gen1_packet_session_cmd() argument 135 struct hfi_session_pkt packet; iris_hfi_gen1_session_close() local 145 struct hfi_session_pkt packet; iris_hfi_gen1_session_start() local 235 struct hfi_session_pkt packet; iris_hfi_gen1_session_continue() local 411 iris_hfi_gen1_packet_session_set_property(struct hfi_session_set_property_pkt * packet,struct iris_inst * inst,u32 ptype,void * pdata) iris_hfi_gen1_packet_session_set_property() argument [all...] |