Lines Matching refs:adb

913 				    struct mux_adb *adb, int *size_needed,  in ipc_mux_ul_adb_allocate()  argument
919 if (!adb->dest_skb) { in ipc_mux_ul_adb_allocate()
923 status = ipc_mux_ul_skb_alloc(ipc_mux, adb, type); in ipc_mux_ul_adb_allocate()
1062 struct mux_adb *adb, int nr_of_pkts) in ipc_mux_ul_adgh_encode() argument
1092 if (ipc_mux_ul_adb_allocate(ipc_mux, adb, &ipc_mux->size_needed, in ipc_mux_ul_adgh_encode()
1112 if (ipc_mux->size_needed > adb->size) { in ipc_mux_ul_adgh_encode()
1114 ipc_mux->size_needed, adb->size); in ipc_mux_ul_adgh_encode()
1122 memcpy(adb->buf + offset + pad_len, src_skb->data, in ipc_mux_ul_adgh_encode()
1125 adb->adgh->signature = cpu_to_le32(IOSM_AGGR_MUX_SIG_ADGH); in ipc_mux_ul_adgh_encode()
1126 adb->adgh->if_id = session_id; in ipc_mux_ul_adgh_encode()
1127 adb->adgh->length = in ipc_mux_ul_adgh_encode()
1130 adb->adgh->service_class = src_skb->priority; in ipc_mux_ul_adgh_encode()
1131 adb->adgh->next_count = --nr_of_pkts; in ipc_mux_ul_adgh_encode()
1132 adb->dg_cnt_total++; in ipc_mux_ul_adgh_encode()
1133 adb->payload_size += src_skb->len; in ipc_mux_ul_adgh_encode()
1205 struct mux_adb *adb, in mux_ul_dg_update_tbl_index() argument
1208 ipc_mux_ul_adb_update_ql(ipc_mux, adb, session_id, in mux_ul_dg_update_tbl_index()
1211 if (ipc_mux_ul_adb_allocate(ipc_mux, adb, &ipc_mux->size_needed, in mux_ul_dg_update_tbl_index()
1215 ipc_mux->size_needed = le32_to_cpu(adb->adbh->block_length); in mux_ul_dg_update_tbl_index()
1224 static int mux_ul_dg_encode(struct iosm_mux *ipc_mux, struct mux_adb *adb, in mux_ul_dg_encode() argument
1248 if (ipc_mux->size_needed > adb->size || in mux_ul_dg_encode()
1251 *adb->next_table_index = offset; in mux_ul_dg_encode()
1255 qlth_n_ql_size, adb, in mux_ul_dg_encode()
1259 offset = le32_to_cpu(adb->adbh->block_length); in mux_ul_dg_encode()
1261 dg = adb->dg[session_id] + adb->dg_count[session_id]; in mux_ul_dg_encode()
1264 memcpy(adb->buf + offset + head_pad_len, in mux_ul_dg_encode()
1271 adb->dg_cnt_total++; in mux_ul_dg_encode()
1272 adb->payload_size += le16_to_cpu(dg->datagram_length); in mux_ul_dg_encode()
1274 adb->dg_count[session_id]++; in mux_ul_dg_encode()
1292 struct sk_buff_head *ul_list, struct mux_adb *adb, in mux_ul_adb_encode() argument
1317 if (ipc_mux_ul_adb_allocate(ipc_mux, adb, &ipc_mux->size_needed, in mux_ul_adb_encode()
1321 offset = le32_to_cpu(adb->adbh->block_length); in mux_ul_adb_encode()
1327 if (adb->dg_count[session_id] == 0) { in mux_ul_adb_encode()
1332 dg = adb->dg[session_id] + adb->dg_count[session_id]; in mux_ul_adb_encode()
1334 if (mux_ul_dg_encode(ipc_mux, adb, dg, ul_list, src_skb, in mux_ul_adb_encode()
1338 *adb->next_table_index = offset; in mux_ul_adb_encode()
1339 ipc_mux_ul_adb_update_ql(ipc_mux, adb, session_id, in mux_ul_adb_encode()
1341 adb->adbh->block_length = cpu_to_le32(offset); in mux_ul_adb_encode()