Lines Matching refs:value
58 u32 value = (VCAP_CORE_UPDATE_CTRL_UPDATE_CMD(cmd) | in vcap_cmd() local
66 value |= VCAP_CORE_UPDATE_CTRL_UPDATE_ENTRY_DIS; in vcap_cmd()
69 value |= VCAP_CORE_UPDATE_CTRL_UPDATE_ACTION_DIS; in vcap_cmd()
72 value |= VCAP_CORE_UPDATE_CTRL_UPDATE_CNT_DIS; in vcap_cmd()
74 ocelot_target_write(ocelot, vcap->target, value, VCAP_CORE_UPDATE_CTRL); in vcap_cmd()
76 read_poll_timeout(vcap_read_update_ctrl, value, in vcap_cmd()
77 (value & VCAP_CORE_UPDATE_CTRL_UPDATE_SHOT) == 0, in vcap_cmd()
219 static void vcap_data_set(u32 *data, u32 offset, u32 len, u32 value) in vcap_data_set() argument
226 if (value & (1 << i)) in vcap_data_set()
236 u32 i, v, m, value = 0; in vcap_data_get() local
242 value |= (1 << i); in vcap_data_get()
244 return value; in vcap_data_get()
248 u32 value, u32 mask) in vcap_key_field_set() argument
250 vcap_data_set(data->entry, offset + data->key_offset, width, value); in vcap_key_field_set()
255 int field, u32 value, u32 mask) in vcap_key_set() argument
260 vcap_key_field_set(data, offset, length, value, mask); in vcap_key_set()
269 u32 i, j, n = 0, value = 0, mask = 0; in vcap_key_bytes_set() local
281 value += (val[j] << n); in vcap_key_bytes_set()
286 vcap_key_field_set(data, offset, n, value, mask); in vcap_key_bytes_set()
288 value = 0; in vcap_key_bytes_set()
303 vcap_key_field_set(data, offset, length, port->value, port->mask); in vcap_key_l4_port_set()
310 u32 value = (val == OCELOT_VCAP_BIT_1 ? 1 : 0); in vcap_key_bit_set() local
317 vcap_key_field_set(data, offset, length, value, msk); in vcap_key_bit_set()
321 struct vcap_data *data, int field, u32 value) in vcap_action_set() argument
327 value); in vcap_action_set()
383 tag->vid.value, tag->vid.mask); in is2_entry_set()
385 tag->pcp.value[0], tag->pcp.mask[0]); in is2_entry_set()
394 etype->dmac.value, etype->dmac.mask); in is2_entry_set()
396 etype->smac.value, etype->smac.mask); in is2_entry_set()
398 etype->etype.value, etype->etype.mask); in is2_entry_set()
408 etype->data.value, etype->data.mask); in is2_entry_set()
416 llc->dmac.value, llc->dmac.mask); in is2_entry_set()
418 llc->smac.value, llc->smac.mask); in is2_entry_set()
420 payload.value[i] = llc->llc.value[i]; in is2_entry_set()
424 payload.value, payload.mask); in is2_entry_set()
432 snap->dmac.value, snap->dmac.mask); in is2_entry_set()
434 snap->smac.value, snap->smac.mask); in is2_entry_set()
436 filter->key.snap.snap.value, in is2_entry_set()
445 arp->smac.value, arp->smac.mask); in is2_entry_set()
474 arp->dip.value.addr, arp->dip.mask.addr); in is2_entry_set()
477 arp->sip.value.addr, arp->sip.mask.addr); in is2_entry_set()
524 val = ipv6->sip.value[i + 8]; in is2_entry_set()
527 dip.value.addr[i] = val; in is2_entry_set()
530 sip.value.addr[i - 4] = val; in is2_entry_set()
557 ds.value, ds.mask); in is2_entry_set()
559 dip.value.addr, dip.mask.addr); in is2_entry_set()
561 sip.value.addr, sip.mask.addr); in is2_entry_set()
564 val = proto.value[0]; in is2_entry_set()
607 payload.value[i] = ip_data->value[i]; in is2_entry_set()
613 proto.value, proto.mask); in is2_entry_set()
616 payload.value, payload.mask); in is2_entry_set()
699 tag->vid.value, tag->vid.mask); in is1_entry_set()
701 tag->pcp.value[0], tag->pcp.mask[0]); in is1_entry_set()
709 etype->smac.value, etype->smac.mask); in is1_entry_set()
711 etype->etype.value, etype->etype.mask); in is1_entry_set()
730 sip.value.addr, sip.mask.addr); in is1_entry_set()
732 val = proto.value[0]; in is1_entry_set()
756 etype.value[0] = proto.value[0]; in is1_entry_set()
760 etype.value, etype.mask); in is1_entry_set()
830 vcap_key_set(vcap, &data, VCAP_ES0_IGR_PORT, filter->ingress_port.value, in es0_entry_set()
832 vcap_key_set(vcap, &data, VCAP_ES0_EGR_PORT, filter->egress_port.value, in es0_entry_set()
837 tag->vid.value, tag->vid.mask); in es0_entry_set()
839 tag->pcp.value[0], tag->pcp.mask[0]); in es0_entry_set()
963 m = ocelot_mirror_get(ocelot, filter->egress_port.value, in ocelot_vcap_filter_add_aux_resources()
1107 proto = ntohs(*(__be16 *)filter->key.etype.etype.value); in ocelot_vcap_is_problematic_mac_etype()