Lines Matching refs:adb
915 struct mux_adb *adb, int *size_needed, in ipc_mux_ul_adb_allocate() argument
921 if (!adb->dest_skb) { in ipc_mux_ul_adb_allocate()
925 status = ipc_mux_ul_skb_alloc(ipc_mux, adb, type); in ipc_mux_ul_adb_allocate()
1064 struct mux_adb *adb, int nr_of_pkts) in ipc_mux_ul_adgh_encode() argument
1094 if (ipc_mux_ul_adb_allocate(ipc_mux, adb, &ipc_mux->size_needed, in ipc_mux_ul_adgh_encode()
1114 if (ipc_mux->size_needed > adb->size) { in ipc_mux_ul_adgh_encode()
1116 ipc_mux->size_needed, adb->size); in ipc_mux_ul_adgh_encode()
1124 memcpy(adb->buf + offset + pad_len, src_skb->data, in ipc_mux_ul_adgh_encode()
1127 adb->adgh->signature = cpu_to_le32(IOSM_AGGR_MUX_SIG_ADGH); in ipc_mux_ul_adgh_encode()
1128 adb->adgh->if_id = session_id; in ipc_mux_ul_adgh_encode()
1129 adb->adgh->length = in ipc_mux_ul_adgh_encode()
1132 adb->adgh->service_class = src_skb->priority; in ipc_mux_ul_adgh_encode()
1133 adb->adgh->next_count = --nr_of_pkts; in ipc_mux_ul_adgh_encode()
1134 adb->dg_cnt_total++; in ipc_mux_ul_adgh_encode()
1135 adb->payload_size += src_skb->len; in ipc_mux_ul_adgh_encode()
1207 struct mux_adb *adb, in mux_ul_dg_update_tbl_index() argument
1210 ipc_mux_ul_adb_update_ql(ipc_mux, adb, session_id, in mux_ul_dg_update_tbl_index()
1213 if (ipc_mux_ul_adb_allocate(ipc_mux, adb, &ipc_mux->size_needed, in mux_ul_dg_update_tbl_index()
1217 ipc_mux->size_needed = le32_to_cpu(adb->adbh->block_length); in mux_ul_dg_update_tbl_index()
1226 static int mux_ul_dg_encode(struct iosm_mux *ipc_mux, struct mux_adb *adb, in mux_ul_dg_encode() argument
1250 if (ipc_mux->size_needed > adb->size || in mux_ul_dg_encode()
1253 *adb->next_table_index = offset; in mux_ul_dg_encode()
1257 qlth_n_ql_size, adb, in mux_ul_dg_encode()
1261 offset = le32_to_cpu(adb->adbh->block_length); in mux_ul_dg_encode()
1263 dg = adb->dg[session_id] + adb->dg_count[session_id]; in mux_ul_dg_encode()
1266 memcpy(adb->buf + offset + head_pad_len, in mux_ul_dg_encode()
1273 adb->dg_cnt_total++; in mux_ul_dg_encode()
1274 adb->payload_size += le16_to_cpu(dg->datagram_length); in mux_ul_dg_encode()
1276 adb->dg_count[session_id]++; in mux_ul_dg_encode()
1294 struct sk_buff_head *ul_list, struct mux_adb *adb, in mux_ul_adb_encode() argument
1319 if (ipc_mux_ul_adb_allocate(ipc_mux, adb, &ipc_mux->size_needed, in mux_ul_adb_encode()
1323 offset = le32_to_cpu(adb->adbh->block_length); in mux_ul_adb_encode()
1329 if (adb->dg_count[session_id] == 0) { in mux_ul_adb_encode()
1334 dg = adb->dg[session_id] + adb->dg_count[session_id]; in mux_ul_adb_encode()
1336 if (mux_ul_dg_encode(ipc_mux, adb, dg, ul_list, src_skb, in mux_ul_adb_encode()
1340 *adb->next_table_index = offset; in mux_ul_adb_encode()
1341 ipc_mux_ul_adb_update_ql(ipc_mux, adb, session_id, in mux_ul_adb_encode()
1343 adb->adbh->block_length = cpu_to_le32(offset); in mux_ul_adb_encode()