Lines Matching refs:ul_adb

707 				struct mux_adb *ul_adb, u32 type)  in ipc_mux_ul_skb_alloc()  argument
710 struct sk_buff *skb = skb_dequeue(&ul_adb->free_list); in ipc_mux_ul_skb_alloc()
725 ul_adb->dest_skb = skb; in ipc_mux_ul_skb_alloc()
726 ul_adb->buf = skb->data; in ipc_mux_ul_skb_alloc()
727 ul_adb->size = IPC_MEM_MAX_ADB_BUF_SIZE; in ipc_mux_ul_skb_alloc()
730 ul_adb->if_cnt = 0; in ipc_mux_ul_skb_alloc()
731 ul_adb->payload_size = 0; in ipc_mux_ul_skb_alloc()
732 ul_adb->dg_cnt_total = 0; in ipc_mux_ul_skb_alloc()
735 ul_adb->adbh = (struct mux_adbh *)ul_adb->buf; in ipc_mux_ul_skb_alloc()
736 memset(ul_adb->adbh, 0, sizeof(struct mux_adbh)); in ipc_mux_ul_skb_alloc()
737 ul_adb->adbh->signature = cpu_to_le32(IOSM_AGGR_MUX_SIG_ADBH); in ipc_mux_ul_skb_alloc()
738 ul_adb->adbh->block_length = in ipc_mux_ul_skb_alloc()
740 next_tb_id = (unsigned int *)&ul_adb->adbh->first_table_index; in ipc_mux_ul_skb_alloc()
741 ul_adb->next_table_index = next_tb_id; in ipc_mux_ul_skb_alloc()
744 memset(ul_adb->dg, 0, sizeof(ul_adb->dg)); in ipc_mux_ul_skb_alloc()
748 ul_adb->dg_count[if_id] = 0; in ipc_mux_ul_skb_alloc()
749 ul_adb->qlt_updated[if_id] = 0; in ipc_mux_ul_skb_alloc()
755 ul_adb->dest_skb = skb; in ipc_mux_ul_skb_alloc()
756 ul_adb->buf = skb->data; in ipc_mux_ul_skb_alloc()
757 ul_adb->size = IPC_MEM_MAX_DL_MUX_LITE_BUF_SIZE; in ipc_mux_ul_skb_alloc()
759 ul_adb->if_cnt = 0; in ipc_mux_ul_skb_alloc()
760 ul_adb->payload_size = 0; in ipc_mux_ul_skb_alloc()
761 ul_adb->dg_cnt_total = 0; in ipc_mux_ul_skb_alloc()
763 ul_adb->adgh = (struct mux_adgh *)skb->data; in ipc_mux_ul_skb_alloc()
764 memset(ul_adb->adgh, 0, sizeof(struct mux_adgh)); in ipc_mux_ul_skb_alloc()
778 ul_adb->qlth_skb = skb; in ipc_mux_ul_skb_alloc()
779 memset((ul_adb->qlth_skb)->data, 0, qlt_size); in ipc_mux_ul_skb_alloc()
789 struct mux_adb *ul_adb = &ipc_mux->ul_adb; in ipc_mux_ul_adgh_finish() local
794 if (!ul_adb->dest_skb) { in ipc_mux_ul_adgh_finish()
799 adgh_len = le16_to_cpu(ul_adb->adgh->length); in ipc_mux_ul_adgh_finish()
800 skb_put(ul_adb->dest_skb, adgh_len); in ipc_mux_ul_adgh_finish()
801 skb_queue_tail(&ipc_mux->channel->ul_list, ul_adb->dest_skb); in ipc_mux_ul_adgh_finish()
802 ul_adb->dest_skb = NULL; in ipc_mux_ul_adgh_finish()
807 session = &ipc_mux->session[ul_adb->adgh->if_id]; in ipc_mux_ul_adgh_finish()
819 adgh_len, ul_adb->adgh->if_id, ul_adb->payload_size, in ipc_mux_ul_adgh_finish()
824 struct mux_adb *ul_adb, int *out_offset) in ipc_mux_ul_encode_adth() argument
837 if (ul_adb->dg_count[i] > 0) { in ipc_mux_ul_encode_adth()
839 ul_adb->dg_count[i] * sizeof(*dg); in ipc_mux_ul_encode_adth()
841 *ul_adb->next_table_index = offset; in ipc_mux_ul_encode_adth()
842 adth = (struct mux_adth *)&ul_adb->buf[offset]; in ipc_mux_ul_encode_adth()
844 ul_adb->next_table_index = next_tb_id; in ipc_mux_ul_encode_adth()
850 memcpy(adth->dg, ul_adb->dg[i], adth_dg_size); in ipc_mux_ul_encode_adth()
851 ul_adb->if_cnt++; in ipc_mux_ul_encode_adth()
854 if (ul_adb->qlt_updated[i]) { in ipc_mux_ul_encode_adth()
855 *ul_adb->next_table_index = offset; in ipc_mux_ul_encode_adth()
856 p_adb_qlt = (struct mux_qlth *)&ul_adb->buf[offset]; in ipc_mux_ul_encode_adth()
857 ul_adb->next_table_index = in ipc_mux_ul_encode_adth()
859 memcpy(p_adb_qlt, ul_adb->pp_qlt[i], qlt_size); in ipc_mux_ul_encode_adth()
873 struct mux_adb *ul_adb; in ipc_mux_ul_adb_finish() local
877 ul_adb = &ipc_mux->ul_adb; in ipc_mux_ul_adb_finish()
878 if (!ul_adb->dest_skb) in ipc_mux_ul_adb_finish()
881 offset = *ul_adb->next_table_index; in ipc_mux_ul_adb_finish()
882 ipc_mux_ul_encode_adth(ipc_mux, ul_adb, &offset); in ipc_mux_ul_adb_finish()
883 ul_adb->adbh->block_length = cpu_to_le32(offset); in ipc_mux_ul_adb_finish()
885 if (le32_to_cpu(ul_adb->adbh->block_length) > ul_adb->size) { in ipc_mux_ul_adb_finish()
886 ul_adb->dest_skb = NULL; in ipc_mux_ul_adb_finish()
890 *ul_adb->next_table_index = 0; in ipc_mux_ul_adb_finish()
891 ul_adb->adbh->sequence_nr = cpu_to_le16(ipc_mux->adb_tx_sequence_nr++); in ipc_mux_ul_adb_finish()
892 skb_put(ul_adb->dest_skb, le32_to_cpu(ul_adb->adbh->block_length)); in ipc_mux_ul_adb_finish()
895 __skb_queue_tail(&ipc_mux->channel->ul_list, ul_adb->dest_skb); in ipc_mux_ul_adb_finish()
898 ul_adb->dest_skb = NULL; in ipc_mux_ul_adb_finish()
906 ipc_mux->acc_adb_size += le32_to_cpu(ul_adb->adbh->block_length); in ipc_mux_ul_adb_finish()
907 ipc_mux->acc_payload_size += ul_adb->payload_size; in ipc_mux_ul_adb_finish()
908 ipc_mux->ul_data_pend_bytes += ul_adb->payload_size; in ipc_mux_ul_adb_finish()
974 if (ipc_mux_ul_skb_alloc(ipc_mux, &ipc_mux->ul_adb, in ipc_mux_lite_send_qlt()
982 qlt = (struct ipc_mem_lite_gen_tbl *)(ipc_mux->ul_adb.qlth_skb) in ipc_mux_lite_send_qlt()
995 ipc_mux->ul_adb.qlth_skb); in ipc_mux_lite_send_qlt()
998 ipc_mux->ul_adb.qlth_skb = NULL; in ipc_mux_lite_send_qlt()
1390 &ipc_mux->ul_adb, in ipc_mux_ul_data_encode()
1395 &ipc_mux->ul_adb, in ipc_mux_ul_data_encode()
1477 skb_queue_tail((&ipc_mux->ul_adb.free_list), skb); in ipc_mux_ul_encoded_process()