Home
last modified time | relevance | path

Searched refs:reg_encode (Results 1 – 4 of 4) sorted by relevance

/linux/drivers/net/ipa/
H A Dipa_endpoint.c664 val |= reg_encode(reg, CS_METADATA_HDR_OFFSET, off); in ipa_endpoint_init_cfg()
677 val |= reg_encode(reg, CS_OFFLOAD_EN, enabled); in ipa_endpoint_init_cfg()
694 val = reg_encode(reg, NAT_EN, IPA_NAT_TYPE_BYPASS); in ipa_endpoint_init_nat()
728 val = reg_encode(reg, HDR_LEN, header_size & field_max); in ipa_header_size_encode()
737 val |= reg_encode(reg, HDR_LEN_MSB, header_size); in ipa_header_size_encode()
750 val = reg_encode(reg, HDR_OFST_METADATA, offset); in ipa_metadata_offset_encode()
759 val |= reg_encode(reg, HDR_OFST_METADATA_MSB, offset); in ipa_metadata_offset_encode()
815 val |= reg_encode(reg, HDR_OFST_PKT_SIZE, off); in ipa_endpoint_init_hdr()
859 val |= reg_encode(reg, HDR_PAD_TO_ALIGNMENT, pad_align); in ipa_endpoint_init_hdr_ext()
873 val |= reg_encode(reg, HDR_OFST_PKT_SIZE_MSB, off); in ipa_endpoint_init_hdr_ext()
[all …]
H A Dipa_resource.c78 val = reg_encode(reg, X_MIN_LIM, xlimits->min); in ipa_resource_config_common()
79 val |= reg_encode(reg, X_MAX_LIM, xlimits->max); in ipa_resource_config_common()
81 val |= reg_encode(reg, Y_MIN_LIM, ylimits->min); in ipa_resource_config_common()
82 val |= reg_encode(reg, Y_MAX_LIM, ylimits->max); in ipa_resource_config_common()
H A Dgsi.c185 val = reg_encode(reg, CHTYPE_PROTOCOL, type); in ch_c_cntxt_0_type_encode()
191 return val | reg_encode(reg, CHTYPE_PROTOCOL_MSB, type); in ch_c_cntxt_0_type_encode()
421 val = reg_encode(reg, EV_CHID, evt_ring_id); in gsi_evt_ring_command()
422 val |= reg_encode(reg, EV_OPCODE, opcode); in gsi_evt_ring_command()
538 val = reg_encode(reg, CH_CHID, channel_id); in gsi_channel_command()
539 val |= reg_encode(reg, CH_OPCODE, opcode); in gsi_channel_command()
725 val = reg_encode(reg, EV_CHTYPE, GSI_CHANNEL_TYPE_GPI); in gsi_evt_ring_program()
728 val |= reg_encode(reg, EV_ELEMENT_SIZE, GSI_RING_ELEMENT_SIZE); in gsi_evt_ring_program()
732 val = reg_encode(reg, R_LENGTH, ring->count * GSI_RING_ELEMENT_SIZE); in gsi_evt_ring_program()
749 val = reg_encode(reg, EV_MODT, GSI_EVT_RING_INT_MODT); in gsi_evt_ring_program()
[all …]
H A Dreg.h102 static inline u32 reg_encode(const struct reg *reg, u32 field_id, u32 val) in reg_encode() function