/openbmc/libmctp/tests/ |
H A D | test_bridge.c | 18 struct mctp_binding binding; member 33 struct mctp_binding_bridge *binding = in mctp_binding_bridge_tx() local 34 container_of(b, struct mctp_binding_bridge, binding); in mctp_binding_bridge_tx() 36 binding->tx_count++; in mctp_binding_bridge_tx() 38 binding->last_pkt_data = *(uint8_t *)mctp_pktbuf_data(pkt); in mctp_binding_bridge_tx() 43 static void mctp_binding_bridge_rx(struct mctp_binding_bridge *binding, in mctp_binding_bridge_rx() argument 50 pkt = mctp_pktbuf_alloc(&binding->binding, sizeof(struct mctp_hdr) + 1); in mctp_binding_bridge_rx() 63 binding->rx_count++; in mctp_binding_bridge_rx() 64 mctp_bus_rx(&binding->binding, pkt); in mctp_binding_bridge_rx() 70 struct mctp_binding_bridge *binding; in mctp_binding_bridge_init() local [all …]
|
H A D | test-utils.c | 18 struct mctp_binding binding; member 33 test->binding.name = "test"; in mctp_binding_test_init() 34 test->binding.version = 1; in mctp_binding_test_init() 35 test->binding.tx = mctp_binding_test_tx; in mctp_binding_test_init() 36 test->binding.pkt_size = MCTP_PACKET_SIZE(MCTP_BTU); in mctp_binding_test_init() 37 test->binding.pkt_header = 0; in mctp_binding_test_init() 38 test->binding.pkt_trailer = 0; in mctp_binding_test_init() 39 test->binding.tx_storage = test->tx_storage; in mctp_binding_test_init() 53 pkt = mctp_pktbuf_alloc(&test->binding, len); in mctp_binding_test_rx_raw() 56 mctp_bus_rx(&test->binding, pkt); in mctp_binding_test_rx_raw() [all …]
|
H A D | test_core.c | 86 static void receive_ptkbuf(struct mctp_binding_test *binding, in receive_ptkbuf() argument 103 mctp_bus_rx((struct mctp_binding *)binding, rx_pkt); in receive_ptkbuf() 107 static void receive_one_fragment(struct mctp_binding_test *binding, in receive_one_fragment() argument 113 receive_ptkbuf(binding, pktbuf, fragment_size); in receive_one_fragment() 116 static void receive_two_fragment_message(struct mctp_binding_test *binding, in receive_two_fragment_message() argument 127 receive_one_fragment(binding, payload, fragment1_size, flags_seq_tag, in receive_two_fragment_message() 132 receive_one_fragment(binding, payload + fragment1_size, fragment2_size, in receive_two_fragment_message() 139 struct mctp_binding_test *binding = NULL; in mctp_core_test_simple_rx() local 147 mctp_test_stack_init(&mctp, &binding, TEST_DEST_EID); in mctp_core_test_simple_rx() 154 receive_two_fragment_message(binding, test_payload, MCTP_BTU, MCTP_BTU, in mctp_core_test_simple_rx() [all …]
|
H A D | test-utils.h | 9 /* test binding implementation */ 11 /* standard binding interface */ 14 void mctp_binding_test_register_bus(struct mctp_binding_test *binding, 17 /* internal test binding interface */ 23 /* create a MCTP stack, and add a test binding, using the specified EID */ 25 struct mctp_binding_test **binding, mctp_eid_t eid);
|
/openbmc/linux/drivers/net/ethernet/sfc/ |
H A D | tc_bindings.c | 26 struct efx_tc_block_binding *binding; in efx_tc_find_binding() local 29 list_for_each_entry(binding, &efx->tc->block_list, list) in efx_tc_find_binding() 30 if (binding->otherdev == otherdev) in efx_tc_find_binding() 31 return binding; in efx_tc_find_binding() 38 struct efx_tc_block_binding *binding = cb_priv; in efx_tc_block_cb() local 43 return efx_tc_flower(binding->efx, binding->otherdev, in efx_tc_block_cb() 44 tcf, binding->efv); in efx_tc_block_cb() 52 struct efx_tc_block_binding *binding = cb_priv; in efx_tc_block_unbind() local 54 list_del(&binding->list); in efx_tc_block_unbind() 55 kfree(binding); in efx_tc_block_unbind() [all …]
|
/openbmc/linux/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_binding.h | 42 * enum vmw_ctx_binding_type - abstract resource to context binding types 63 * struct vmw_ctx_bindinfo - single binding metadata 67 * @ctx: Non-refcounted pointer to the context that owns the binding. NULL 68 * indicates no binding present. 69 * @res: Non-refcounted pointer to the resource the binding points to. This 71 * @bt: Binding type. 72 * @scrubbed: Whether the binding has been scrubbed from the context. 84 * struct vmw_ctx_bindinfo_tex - texture stage binding metadata 87 * @texture_stage: Device data used to reconstruct binding command. 95 * struct vmw_ctx_bindinfo_shader - Shader binding metadata [all …]
|
H A D | vmwgfx_binding.c | 28 * This file implements the vmwgfx context binding manager, 41 * already killed if a resource to which a binding points 47 * to protect all binding manager data. 50 * (surface, shader or even DX query) is conceptually a context binding that 69 * struct vmw_ctx_binding_state - per context binding state 75 * @ds_view: Depth-stencil view binding. 78 * @index_buffer: Index buffer binding. 82 * @dirty: Bitmap tracking per binding-type changes that have not yet 84 * @dirty_vb: Bitmap tracking individual vertex buffer binding changes that 86 * @bind_cmd_buffer: Scratch space used to construct binding commands. [all …]
|
/openbmc/libmctp/utils/ |
H A D | mctp-demux-daemon.c | 48 struct binding { struct 50 int (*init)(struct mctp *mctp, struct binding *binding, mctp_eid_t eid, argument 52 void (*destroy)(struct mctp *mctp, struct binding *binding); argument 53 int (*init_pollfd)(struct binding *binding, struct pollfd *pollfd); argument 54 int (*process)(struct binding *binding); argument 66 struct binding *binding; argument 79 struct capture binding; member 160 struct binding *binding __unused, in binding_null_init() 165 warnx("null binding doesn't accept parameters"); in binding_null_init() 171 static int binding_serial_init(struct mctp *mctp, struct binding *binding, in binding_serial_init() argument [all …]
|
/openbmc/libmctp/ |
H A D | README.md | 5 transport binding specifications. 29 - `binding = mctp_<binding>_init()`: Initialise a hardware binding 30 - `mctp_register_bus(mctp, binding, eid)`: Register the hardware binding with 42 The binding may require you to notify it to receive packets. For example, for 43 the serial binding, the `mctp_serial_read()` function should be invoked when the 50 their messages, then the messages are re-packetised for the outgoing binding. 55 - `b1 = mctp_<binding>_init(); b2 = mctp_<binding>_init()`: Initialise two 62 ## Binding API 65 to/from hardware. A binding defines a hardware specific structure 66 (`struct mctp_binding_<name>`), which wraps the generic binding [all …]
|
H A D | core.c | 38 struct mctp_pktbuf *mctp_pktbuf_alloc(struct mctp_binding *binding, size_t len) in mctp_pktbuf_alloc() argument 41 binding->pkt_size + binding->pkt_header + binding->pkt_trailer; in mctp_pktbuf_alloc() 50 struct mctp_pktbuf *pkt = mctp_pktbuf_init(binding, storage); in mctp_pktbuf_alloc() 65 struct mctp_pktbuf *mctp_pktbuf_init(struct mctp_binding *binding, in mctp_pktbuf_init() argument 69 binding->pkt_size + binding->pkt_header + binding->pkt_trailer; in mctp_pktbuf_init() 72 buf->start = binding->pkt_header; in mctp_pktbuf_init() 335 int mctp_register_bus(struct mctp *mctp, struct mctp_binding *binding, in mctp_register_bus() argument 345 assert(binding->tx_storage); in mctp_register_bus() 349 mctp->busses[0].binding = binding; in mctp_register_bus() 351 binding->bus = &mctp->busses[0]; in mctp_register_bus() [all …]
|
H A D | libmctp.h | 67 * Storage must be sized to fit the binding, 68 * MCTP_PKTBUF_SIZE(binding->pkt_size + binding->pkt_header + binding->pkt_trailer) */ 69 struct mctp_pktbuf *mctp_pktbuf_init(struct mctp_binding *binding, 73 struct mctp_pktbuf *mctp_pktbuf_alloc(struct mctp_binding *binding, size_t len); 101 /* Register a binding to the MCTP core, and creates a bus (populating 102 * binding->bus). 108 int mctp_register_bus(struct mctp *mctp, struct mctp_binding *binding, 111 void mctp_unregister_bus(struct mctp *mctp, struct mctp_binding *binding); 113 int mctp_bus_set_eid(struct mctp_binding *binding, mctp_eid_t eid); 119 * binding are forwarded to the other. [all …]
|
H A D | i2c.c | 22 #define binding_to_i2c(b) container_of(b, struct mctp_binding_i2c, binding) 35 static int mctp_i2c_core_start(struct mctp_binding *binding) in mctp_i2c_core_start() argument 37 mctp_binding_set_tx_enabled(binding, true); in mctp_i2c_core_start() 49 n->last_seen_timestamp = mctp_now(i2c->binding.mctp); in mctp_i2c_neigh_get() 90 entry->last_seen_timestamp = mctp_now(i2c->binding.mctp); in mctp_i2c_neigh_add() 125 mctp_binding_set_tx_enabled(&i2c->binding, false); in mctp_binding_i2c_tx() 156 i2c->binding.name = "i2c"; in mctp_i2c_setup() 157 i2c->binding.version = 1; in mctp_i2c_setup() 158 i2c->binding.pkt_size = MCTP_PACKET_SIZE(I2C_BTU); in mctp_i2c_setup() 159 i2c->binding.pkt_header = sizeof(struct mctp_i2c_hdr); in mctp_i2c_setup() [all …]
|
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/fw/api/ |
H A D | binding.h | 19 * @id_and_color: ID and color of the relevant Binding, 22 * @macs: array of MAC id and colors which belong to the binding, 24 * @phy: PHY id and color which belongs to the binding, 39 * @id_and_color: ID and color of the relevant Binding, 42 * @macs: array of MAC id and colors which belong to the binding 44 * @phy: PHY id and color which belongs to the binding 46 * @lmac_id: the lmac id the binding belongs to 66 * struct iwl_time_quota_data_v1 - configuration of time quota per binding 67 * @id_and_color: ID and color of the relevant Binding, 82 * @quotas: allocations per binding [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_flow.c | 37 struct mlxsw_sp_flow_block_binding *binding; in mlxsw_sp_flow_block_lookup() local 39 list_for_each_entry(binding, &block->binding_list, list) in mlxsw_sp_flow_block_lookup() 40 if (binding->mlxsw_sp_port == mlxsw_sp_port && in mlxsw_sp_flow_block_lookup() 41 binding->ingress == ingress) in mlxsw_sp_flow_block_lookup() 42 return binding; in mlxsw_sp_flow_block_lookup() 58 struct mlxsw_sp_flow_block_binding *binding; in mlxsw_sp_flow_block_bind() local 78 binding = kzalloc(sizeof(*binding), GFP_KERNEL); in mlxsw_sp_flow_block_bind() 79 if (!binding) { in mlxsw_sp_flow_block_bind() 83 binding->mlxsw_sp_port = mlxsw_sp_port; in mlxsw_sp_flow_block_bind() 84 binding->ingress = ingress; in mlxsw_sp_flow_block_bind() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/ |
H A D | submitting-patches.rst | 4 Submitting Devicetree (DT) binding patches 14 be a separate patch. The preferred subject prefix for binding patches is:: 16 "dt-bindings: <binding dir>: ..." 20 docs. Repeating "binding" again should also be avoided. 22 2) DT binding files are written in DT schema format using json-schema 23 vocabulary and YAML file format. The DT binding files must pass validation 31 3) DT binding files should be dual licensed. The preferred license tag is 42 the code implementing the binding. 45 previously documented in the corresponding DT binding text file 73 1) If you aren't comfortable reviewing a given binding, reply to it and ask [all …]
|
H A D | writing-schema.rst | 17 top-level properties. Generally, there is one binding defined per file. The 22 URI typically containing the binding's filename and path. For DT schema, it must 34 A one-line description on the contents of the binding schema. 38 for maintainers of this binding. 42 information about this binding. It should contain things such as what the block 53 include other schemas the binding conforms to. This may be schemas for a 58 binding. The exact schema syntax depends on whether properties are known, 59 common properties (e.g. 'interrupts') or are binding/vendor-specific 76 binding. Note: YAML doesn't allow leading tabs, so spaces must be used instead. 84 binding. Each property contains a set of constraints using json-schema [all …]
|
H A D | ABI.rst | 10 "That still leaves the question of, what does a stable binding look 11 like? Certainly a stable binding means that a newer kernel will not 12 break on an older device tree, but that doesn't mean the binding is 15 then default to the previous behaviour if it is missing. If a binding 21 II. General binding rules 24 binding because it isn't perfect. 30 the old binding. ie. add additional properties, but don't change the
|
/openbmc/linux/drivers/net/ethernet/marvell/prestera/ |
H A D | prestera_flow.c | 118 struct prestera_flow_block_binding *binding; in prestera_flow_block_lookup() local 120 list_for_each_entry(binding, &block->binding_list, list) in prestera_flow_block_lookup() 121 if (binding->port == port) in prestera_flow_block_lookup() 122 return binding; in prestera_flow_block_lookup() 130 struct prestera_flow_block_binding *binding; in prestera_flow_block_bind() local 133 binding = kzalloc(sizeof(*binding), GFP_KERNEL); in prestera_flow_block_bind() 134 if (!binding) in prestera_flow_block_bind() 137 binding->span_id = PRESTERA_SPAN_INVALID_ID; in prestera_flow_block_bind() 138 binding->port = port; in prestera_flow_block_bind() 146 list_add(&binding->list, &block->binding_list); in prestera_flow_block_bind() [all …]
|
H A D | prestera_span.c | 123 int prestera_span_rule_add(struct prestera_flow_block_binding *binding, in prestera_span_rule_add() argument 127 struct prestera_switch *sw = binding->port->sw; in prestera_span_rule_add() 131 if (binding->span_id != PRESTERA_SPAN_INVALID_ID) in prestera_span_rule_add() 139 err = prestera_hw_span_bind(binding->port, span_id, ingress); in prestera_span_rule_add() 145 binding->span_id = span_id; in prestera_span_rule_add() 149 int prestera_span_rule_del(struct prestera_flow_block_binding *binding, in prestera_span_rule_del() argument 154 if (binding->span_id == PRESTERA_SPAN_INVALID_ID) in prestera_span_rule_del() 157 err = prestera_hw_span_unbind(binding->port, ingress); in prestera_span_rule_del() 161 err = prestera_span_put(binding->port->sw, binding->span_id); in prestera_span_rule_del() 165 binding->span_id = PRESTERA_SPAN_INVALID_ID; in prestera_span_rule_del()
|
/openbmc/linux/Documentation/devicetree/bindings/clock/ti/ |
H A D | clockdomain.txt | 1 Binding for Texas Instruments clockdomain. 3 Binding status: Unstable - ABI compatibility may be broken in the future 5 This binding uses the common clock binding[1] in consumer role. 9 enabled/disabled. This binding doesn't define a new clock 10 binding type, it is used to group existing clock nodes under 17 - #clock-cells : from common clock binding; shall be set to 0. 21 - clock-output-names : from common clock binding.
|
H A D | composite.txt | 1 Binding for TI composite clock. 3 Binding status: Unstable - ABI compatibility may be broken in the future 5 This binding uses the common clock binding[1]. It assumes a 16 The binding must provide a list of the component clocks that shall be 28 - #clock-cells : from common clock binding; shall be set to 0. 31 - clock-output-names : from common clock binding.
|
/openbmc/linux/sound/soc/intel/avs/ |
H A D | path.c | 588 static int avs_path_binding_arm(struct avs_dev *adev, struct avs_path_binding *binding) in avs_path_binding_arm() argument 595 t = binding->template; in avs_path_binding_arm() 596 this_mod = avs_path_find_module(binding->owner, in avs_path_binding_arm() 626 binding->sink = this_mod; in avs_path_binding_arm() 627 binding->sink_pin = t->mod_pin; in avs_path_binding_arm() 628 binding->source = target_mod; in avs_path_binding_arm() 629 binding->source_pin = t->target_mod_pin; in avs_path_binding_arm() 631 binding->sink = target_mod; in avs_path_binding_arm() 632 binding->sink_pin = t->target_mod_pin; in avs_path_binding_arm() 633 binding->source = this_mod; in avs_path_binding_arm() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/clock/st/ |
H A D | st,clkgen-pll.txt | 1 Binding for a ST pll clock driver. 3 This binding uses the common clock binding[1]. 4 Base address is located to the parent node. See clock binding[2] 20 - #clock-cells : From common clock binding; shall be set to 1. 22 - clocks : From common clock binding 24 - clock-output-names : From common clock binding.
|
H A D | st,clkgen-mux.txt | 1 Binding for a ST multiplexed clock driver. 3 This binding supports only simple indexed multiplexers, it does not 6 This binding uses the common clock binding[1]. 15 - #clock-cells : from common clock binding; shall be set to 0. 19 - clocks : from common clock binding
|
/openbmc/linux/Documentation/devicetree/bindings/clock/ |
H A D | keystone-pll.txt | 3 Binding for keystone PLLs. The main PLL IP typically has a multiplier, 9 This binding uses the common clock binding[1]. 14 - #clock-cells : from common clock binding; shall be set to 0. 43 - #clock-cells : from common clock binding; shall be set to 0. 51 - clock-output-names : From common clock binding. 65 - #clock-cells : from common clock binding; shall be set to 0. 73 - clock-output-names : From common clock binding.
|