Lines Matching defs:ofs

147  * @param ofs points to the offset within the pbuf chain
151 err_t snmp_asn1_enc_type(struct pbuf *p, u16_t ofs, u8_t type)
160 if (ofs < plen) {
162 msg_ptr += ofs - base;
168 /* p == NULL, ofs >= plen */
176 * @param ofs points to the offset within the pbuf chain
180 err_t snmp_asn1_enc_length(struct pbuf * p, u16_t ofs, u16_t length)
189 if (ofs < plen) {
191 msg_ptr += ofs - base;
198 ofs += 1;
199 if (ofs >= plen) {
220 ofs += 1;
221 if (ofs >= plen) {
246 /* p == NULL, ofs >= plen */
254 * @param ofs points to the offset within the pbuf chain
262 snmp_asn1_enc_u32t(struct pbuf * p, u16_t ofs, u8_t octets_needed, u32_t value)
271 if (ofs < plen) {
273 msg_ptr += ofs - base;
279 ofs += 1;
280 if (ofs >= plen) {
296 ofs += 1;
297 if (ofs >= plen) {
316 /* p == NULL, ofs >= plen */
324 * @param ofs points to the offset within the pbuf chain
332 snmp_asn1_enc_s32t(struct pbuf * p, u16_t ofs, u8_t octets_needed, s32_t value)
341 if (ofs < plen) {
343 msg_ptr += ofs - base;
348 ofs += 1;
349 if (ofs >= plen) {
368 /* p == NULL, ofs >= plen */
376 * @param ofs points to the offset within the pbuf chain
382 snmp_asn1_enc_oid(struct pbuf * p, u16_t ofs, u8_t ident_len, s32_t * ident)
391 if (ofs < plen) {
393 msg_ptr += ofs - base;
403 ofs += 1;
404 if (ofs >= plen) {
438 ofs += 1;
439 if (ofs >= plen) {
456 ofs += 1;
457 if (ofs >= plen) {
477 /* p == NULL, ofs >= plen */
485 * @param ofs points to the offset within the pbuf chain
490 err_t snmp_asn1_enc_raw(struct pbuf * p, u16_t ofs, u8_t raw_len, u8_t * raw)
499 if (ofs < plen) {
501 msg_ptr += ofs - base;
508 ofs += 1;
509 if (ofs >= plen) {
530 /* p == NULL, ofs >= plen */