/drivers/net/ethernet/netronome/nfp/ |
D | nfp_app.h | 95 int (*init)(struct nfp_app *app); 96 void (*clean)(struct nfp_app *app); 98 const char *(*extra_cap)(struct nfp_app *app, struct nfp_net *nn); 100 int (*vnic_alloc)(struct nfp_app *app, struct nfp_net *nn, 102 void (*vnic_free)(struct nfp_app *app, struct nfp_net *nn); 103 int (*vnic_init)(struct nfp_app *app, struct nfp_net *nn); 104 void (*vnic_clean)(struct nfp_app *app, struct nfp_net *nn); 106 int (*repr_open)(struct nfp_app *app, struct nfp_repr *repr); 107 int (*repr_stop)(struct nfp_app *app, struct nfp_repr *repr); 109 int (*start)(struct nfp_app *app); [all …]
|
D | nfp_net_sriov.c | 48 nfp_net_sriov_check(struct nfp_app *app, int vf, u16 cap, const char *msg) in nfp_net_sriov_check() argument 52 if (!app || !app->pf->vfcfg_tbl2) in nfp_net_sriov_check() 55 cap_vf = readw(app->pf->vfcfg_tbl2 + NFP_NET_VF_CFG_MB_CAP); in nfp_net_sriov_check() 57 nfp_warn(app->pf->cpp, "ndo_set_vf_%s not supported\n", msg); in nfp_net_sriov_check() 61 if (vf < 0 || vf >= app->pf->num_vfs) { in nfp_net_sriov_check() 62 nfp_warn(app->pf->cpp, "invalid VF id %d\n", vf); in nfp_net_sriov_check() 70 nfp_net_sriov_update(struct nfp_app *app, int vf, u16 update, const char *msg) in nfp_net_sriov_update() argument 76 writeb(vf, app->pf->vfcfg_tbl2 + NFP_NET_VF_CFG_MB_VF_NUM); in nfp_net_sriov_update() 77 writew(update, app->pf->vfcfg_tbl2 + NFP_NET_VF_CFG_MB_UPD); in nfp_net_sriov_update() 79 nn = list_first_entry(&app->pf->vnics, struct nfp_net, vnic_list); in nfp_net_sriov_update() [all …]
|
D | nfp_app.c | 57 return nn->app; in nfp_app_from_netdev() 63 return repr->app; in nfp_app_from_netdev() 71 const char *nfp_app_mip_name(struct nfp_app *app) in nfp_app_mip_name() argument 73 if (!app || !app->pf->mip) in nfp_app_mip_name() 75 return nfp_mip_name(app->pf->mip); in nfp_app_mip_name() 79 nfp_app_ctrl_msg_alloc(struct nfp_app *app, unsigned int size, gfp_t priority) in nfp_app_ctrl_msg_alloc() argument 83 if (nfp_app_ctrl_has_meta(app)) in nfp_app_ctrl_msg_alloc() 90 if (nfp_app_ctrl_has_meta(app)) in nfp_app_ctrl_msg_alloc() 97 nfp_app_reprs_set(struct nfp_app *app, enum nfp_repr_type type, in nfp_app_reprs_set() argument 102 old = rcu_dereference_protected(app->reprs[type], in nfp_app_reprs_set() [all …]
|
D | nfp_app_nic.c | 42 nfp_app_nic_vnic_init_phy_port(struct nfp_pf *pf, struct nfp_app *app, in nfp_app_nic_vnic_init_phy_port() argument 50 nn->port = nfp_port_alloc(app, NFP_PORT_PHYS_PORT, nn->dp.netdev); in nfp_app_nic_vnic_init_phy_port() 54 err = nfp_port_init_phy_port(pf, app, nn->port, id); in nfp_app_nic_vnic_init_phy_port() 63 int nfp_app_nic_vnic_alloc(struct nfp_app *app, struct nfp_net *nn, in nfp_app_nic_vnic_alloc() argument 68 err = nfp_app_nic_vnic_init_phy_port(app->pf, app, nn, id); in nfp_app_nic_vnic_alloc() 72 nfp_net_get_mac_addr(app->pf, nn->port); in nfp_app_nic_vnic_alloc()
|
D | nfp_net_main.c | 148 nfp_app_vnic_free(pf->app, nn); in nfp_net_pf_free_vnic() 183 nn->app = pf->app; in nfp_net_pf_alloc_vnic() 193 err = nfp_app_vnic_alloc(pf->app, nn, id); in nfp_net_pf_alloc_vnic() 224 err = nfp_devlink_port_register(pf->app, nn->port); in nfp_net_pf_init_vnic() 232 err = nfp_app_vnic_init(pf->app, nn); in nfp_net_pf_init_vnic() 286 nfp_app_vnic_clean(pf->app, nn); in nfp_net_pf_clean_vnic() 372 pf->app = nfp_app_alloc(pf, nfp_net_pf_get_app_id(pf)); in nfp_net_pf_app_init() 373 if (IS_ERR(pf->app)) in nfp_net_pf_app_init() 374 return PTR_ERR(pf->app); in nfp_net_pf_app_init() 376 err = nfp_app_init(pf->app); in nfp_net_pf_app_init() [all …]
|
D | nfp_port.c | 76 attr->u.ppid.id_len = nfp_cpp_serial(port->app->cpp, &serial); in nfp_port_attr_get() 100 return nfp_app_setup_tc(port->app, netdev, type, type_data); in nfp_port_setup_tc() 204 err = nfp_eth_set_configured(port->app->cpp, eth_port->index, configed); in nfp_port_configure() 208 int nfp_port_init_phy_port(struct nfp_pf *pf, struct nfp_app *app, in nfp_port_init_phy_port() argument 213 nfp_err(app->cpp, in nfp_port_init_phy_port() 219 nfp_warn(app->cpp, in nfp_port_init_phy_port() 236 nfp_port_alloc(struct nfp_app *app, enum nfp_port_type type, in nfp_port_alloc() argument 247 port->app = app; in nfp_port_alloc() 249 list_add_tail(&port->port_list, &app->pf->ports); in nfp_port_alloc()
|
D | nfp_net_repr.c | 211 err = nfp_app_repr_stop(repr->app, repr); in nfp_repr_stop() 228 err = nfp_app_repr_open(repr->app, repr); in nfp_repr_open() 278 int nfp_repr_init(struct nfp_app *app, struct net_device *netdev, in nfp_repr_init() argument 301 if (nfp_app_has_tc(app)) { in nfp_repr_init() 323 struct net_device *nfp_repr_alloc(struct nfp_app *app) in nfp_repr_alloc() argument 334 repr->app = app; in nfp_repr_alloc() 349 nfp_info(repr->app->cpp, "Destroying Representor(%s)\n", in nfp_repr_clean_and_free() 367 nfp_reprs_clean_and_free_by_type(struct nfp_app *app, in nfp_reprs_clean_and_free_by_type() argument 372 reprs = nfp_app_reprs_set(app, type, NULL); in nfp_reprs_clean_and_free_by_type()
|
D | nfp_net_repr.h | 83 struct nfp_app *app; member 117 int nfp_repr_init(struct nfp_app *app, struct net_device *netdev, 120 struct net_device *nfp_repr_alloc(struct nfp_app *app); 124 nfp_reprs_clean_and_free_by_type(struct nfp_app *app,
|
D | nfp_net_ethtool.c | 186 static void nfp_net_get_nspinfo(struct nfp_app *app, char *version) in nfp_net_get_nspinfo() argument 190 if (!app) in nfp_net_get_nspinfo() 193 nsp = nfp_nsp_open(app->cpp); in nfp_net_get_nspinfo() 205 nfp_get_drvinfo(struct nfp_app *app, struct pci_dev *pdev, in nfp_get_drvinfo() argument 213 nfp_net_get_nspinfo(app, nsp_version); in nfp_get_drvinfo() 216 nfp_app_mip_name(app), nfp_app_name(app)); in nfp_get_drvinfo() 231 nfp_get_drvinfo(nn->app, nn->pdev, vnic_version, drvinfo); in nfp_net_get_drvinfo() 237 struct nfp_app *app; in nfp_app_get_drvinfo() local 239 app = nfp_app_from_netdev(netdev); in nfp_app_get_drvinfo() 240 if (!app) in nfp_app_get_drvinfo() [all …]
|
/drivers/net/ethernet/netronome/nfp/flower/ |
D | main.c | 54 static const char *nfp_flower_extra_cap(struct nfp_app *app, struct nfp_net *nn) in nfp_flower_extra_cap() argument 59 static enum devlink_eswitch_mode eswitch_mode_get(struct nfp_app *app) in eswitch_mode_get() argument 65 nfp_flower_repr_get_type_and_port(struct nfp_app *app, u32 port_id, u8 *port) in nfp_flower_repr_get_type_and_port() argument 86 nfp_flower_repr_get(struct nfp_app *app, u32 port_id) in nfp_flower_repr_get() argument 92 repr_type = nfp_flower_repr_get_type_and_port(app, port_id, &port); in nfp_flower_repr_get() 96 reprs = rcu_dereference(app->reprs[repr_type]); in nfp_flower_repr_get() 107 nfp_flower_repr_netdev_open(struct nfp_app *app, struct nfp_repr *repr) in nfp_flower_repr_netdev_open() argument 122 nfp_flower_repr_netdev_stop(struct nfp_app *app, struct nfp_repr *repr) in nfp_flower_repr_netdev_stop() argument 130 static void nfp_flower_sriov_disable(struct nfp_app *app) in nfp_flower_sriov_disable() argument 132 struct nfp_flower_priv *priv = app->priv; in nfp_flower_sriov_disable() [all …]
|
D | metadata.c | 51 static int nfp_release_stats_entry(struct nfp_app *app, u32 stats_context_id) in nfp_release_stats_entry() argument 53 struct nfp_flower_priv *priv = app->priv; in nfp_release_stats_entry() 70 static int nfp_get_stats_entry(struct nfp_app *app, u32 *stats_context_id) in nfp_get_stats_entry() argument 72 struct nfp_flower_priv *priv = app->priv; in nfp_get_stats_entry() 102 nfp_flower_search_fl_table(struct nfp_app *app, unsigned long tc_flower_cookie) in nfp_flower_search_fl_table() argument 104 struct nfp_flower_priv *priv = app->priv; in nfp_flower_search_fl_table() 116 nfp_flower_update_stats(struct nfp_app *app, struct nfp_fl_stats_frame *stats) in nfp_flower_update_stats() argument 124 nfp_flow = nfp_flower_search_fl_table(app, flower_cookie); in nfp_flower_update_stats() 141 void nfp_flower_rx_flow_stats(struct nfp_app *app, struct sk_buff *skb) in nfp_flower_rx_flow_stats() argument 152 nfp_flower_update_stats(app, stats_frame + i); in nfp_flower_rx_flow_stats() [all …]
|
D | cmsg.c | 46 #define nfp_flower_cmsg_warn(app, fmt, args...) \ argument 49 nfp_warn((app)->cpp, fmt, ## args); \ 59 nfp_flower_cmsg_alloc(struct nfp_app *app, unsigned int size, in nfp_flower_cmsg_alloc() argument 67 skb = nfp_app_ctrl_msg_alloc(app, size, GFP_KERNEL); in nfp_flower_cmsg_alloc() 81 nfp_flower_cmsg_mac_repr_start(struct nfp_app *app, unsigned int num_ports) in nfp_flower_cmsg_mac_repr_start() argument 88 skb = nfp_flower_cmsg_alloc(app, size, NFP_FLOWER_CMSG_TYPE_MAC_REPR); in nfp_flower_cmsg_mac_repr_start() 118 skb = nfp_flower_cmsg_alloc(repr->app, sizeof(*msg), in nfp_flower_cmsg_portmod() 129 nfp_ctrl_tx(repr->app->ctrl, skb); in nfp_flower_cmsg_portmod() 135 nfp_flower_cmsg_portmod_rx(struct nfp_app *app, struct sk_buff *skb) in nfp_flower_cmsg_portmod_rx() argument 146 netdev = nfp_app_repr_get(app, be32_to_cpu(msg->portnum)); in nfp_flower_cmsg_portmod_rx() [all …]
|
D | main.h | 86 struct nfp_app *app; member 140 int nfp_flower_metadata_init(struct nfp_app *app); 141 void nfp_flower_metadata_cleanup(struct nfp_app *app); 143 int nfp_flower_setup_tc(struct nfp_app *app, struct net_device *netdev, 152 int nfp_compile_flow_metadata(struct nfp_app *app, 155 int nfp_modify_flow_metadata(struct nfp_app *app, 159 nfp_flower_search_fl_table(struct nfp_app *app, unsigned long tc_flower_cookie); 161 nfp_flower_remove_fl_table(struct nfp_app *app, unsigned long tc_flower_cookie); 163 void nfp_flower_rx_flow_stats(struct nfp_app *app, struct sk_buff *skb);
|
D | offload.c | 80 skb = nfp_flower_cmsg_alloc(priv->app, tot_len, mtype); in nfp_flower_xmit_flow() 98 nfp_ctrl_tx(priv->app->ctrl, skb); in nfp_flower_xmit_flow() 280 nfp_flower_add_offload(struct nfp_app *app, struct net_device *netdev, in nfp_flower_add_offload() argument 283 struct nfp_flower_priv *priv = app->priv; in nfp_flower_add_offload() 310 err = nfp_compile_flow_metadata(app, flow, flow_pay); in nfp_flower_add_offload() 350 nfp_flower_del_offload(struct nfp_app *app, struct net_device *netdev, in nfp_flower_del_offload() argument 356 nfp_flow = nfp_flower_search_fl_table(app, flow->cookie); in nfp_flower_del_offload() 360 err = nfp_modify_flow_metadata(app, nfp_flow); in nfp_flower_del_offload() 389 nfp_flower_get_stats(struct nfp_app *app, struct tc_cls_flower_offload *flow) in nfp_flower_get_stats() argument 393 nfp_flow = nfp_flower_search_fl_table(app, flow->cookie); in nfp_flower_get_stats() [all …]
|
/drivers/net/ethernet/intel/i40e/ |
D | i40e_dcb_nl.c | 189 prio = dcbxcfg->app[i].priority; in i40e_dcbnl_set_all() 194 sapp.selector = dcbxcfg->app[i].selector; in i40e_dcbnl_set_all() 195 sapp.protocol = dcbxcfg->app[i].protocolid; in i40e_dcbnl_set_all() 214 struct i40e_dcb_app_priority_table *app) in i40e_dcbnl_vsi_del_app() argument 222 sapp.selector = app->selector; in i40e_dcbnl_vsi_del_app() 223 sapp.protocol = app->protocolid; in i40e_dcbnl_vsi_del_app() 224 sapp.priority = app->priority; in i40e_dcbnl_vsi_del_app() 236 struct i40e_dcb_app_priority_table *app) in i40e_dcbnl_del_app() argument 242 err = i40e_dcbnl_vsi_del_app(pf->vsi[v], app); in i40e_dcbnl_del_app() 244 pf->vsi[v]->seid, err, app->selector, in i40e_dcbnl_del_app() [all …]
|
D | i40e_dcb.c | 241 dcbcfg->app[i].priority = (u8)((buf[offset] & in i40e_parse_ieee_app_tlv() 244 dcbcfg->app[i].selector = (u8)((buf[offset] & in i40e_parse_ieee_app_tlv() 247 dcbcfg->app[i].protocolid = (buf[offset + 1] << 0x8) | in i40e_parse_ieee_app_tlv() 382 struct i40e_cee_app_prio *app; in i40e_parse_cee_app_tlv() local 389 dcbcfg->numapps = length / sizeof(*app); in i40e_parse_cee_app_tlv() 399 app = (struct i40e_cee_app_prio *)(tlv->tlvinfo + offset); in i40e_parse_cee_app_tlv() 401 if (app->prio_map & BIT(up)) in i40e_parse_cee_app_tlv() 404 dcbcfg->app[i].priority = up; in i40e_parse_cee_app_tlv() 407 selector = (app->upper_oui_sel & I40E_CEE_APP_SELECTOR_MASK); in i40e_parse_cee_app_tlv() 410 dcbcfg->app[i].selector = I40E_APP_SEL_ETHTYPE; in i40e_parse_cee_app_tlv() [all …]
|
/drivers/net/ethernet/netronome/nfp/bpf/ |
D | main.c | 52 nfp_bpf_xdp_offload(struct nfp_app *app, struct nfp_net *nn, in nfp_bpf_xdp_offload() argument 76 nfp_bpf_xdp_offload(app, nn, NULL); in nfp_bpf_xdp_offload() 81 static const char *nfp_bpf_extra_cap(struct nfp_app *app, struct nfp_net *nn) in nfp_bpf_extra_cap() argument 87 nfp_bpf_vnic_alloc(struct nfp_app *app, struct nfp_net *nn, unsigned int id) in nfp_bpf_vnic_alloc() argument 94 nfp_warn(app->cpp, in nfp_bpf_vnic_alloc() 96 nn->port = nfp_port_alloc(app, NFP_PORT_INVALID, nn->dp.netdev); in nfp_bpf_vnic_alloc() 109 ret = nfp_app_nic_vnic_alloc(app, nn, id); in nfp_bpf_vnic_alloc() 116 static void nfp_bpf_vnic_free(struct nfp_app *app, struct nfp_net *nn) in nfp_bpf_vnic_free() argument 119 nfp_bpf_xdp_offload(app, nn, NULL); in nfp_bpf_vnic_free() 123 static int nfp_bpf_setup_tc(struct nfp_app *app, struct net_device *netdev, in nfp_bpf_setup_tc() argument [all …]
|
/drivers/net/ethernet/chelsio/cxgb4/ |
D | cxgb4_dcb.c | 77 struct dcb_app app; in cxgb4_dcb_cleanup_apps() local 81 app.priority = 0; in cxgb4_dcb_cleanup_apps() 88 app.protocol = dcb->app_priority[i].protocolid; in cxgb4_dcb_cleanup_apps() 91 app.priority = dcb->app_priority[i].user_prio_map; in cxgb4_dcb_cleanup_apps() 92 app.selector = dcb->app_priority[i].sel_field + 1; in cxgb4_dcb_cleanup_apps() 93 err = dcb_ieee_delapp(dev, &app); in cxgb4_dcb_cleanup_apps() 95 app.selector = !!(dcb->app_priority[i].sel_field); in cxgb4_dcb_cleanup_apps() 96 err = dcb_setapp(dev, &app); in cxgb4_dcb_cleanup_apps() 102 dcb_ver_array[dcb->dcb_version], app.selector, in cxgb4_dcb_cleanup_apps() 103 app.protocol, -err); in cxgb4_dcb_cleanup_apps() [all …]
|
/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_dcb_nl.c | 59 struct dcb_app app = { in ixgbe_copy_dcb_cfg() local 63 u8 up = dcb_getapp(adapter->netdev, &app); in ixgbe_copy_dcb_cfg() 394 struct dcb_app app = { in ixgbe_dcbnl_set_all() local 398 u8 up = dcb_getapp(netdev, &app); in ixgbe_dcbnl_set_all() 501 struct dcb_app app = { in ixgbe_dcbnl_getapp() local 509 return dcb_getapp(netdev, &app); in ixgbe_dcbnl_getapp() 643 struct dcb_app *app) in ixgbe_dcbnl_ieee_setapp() argument 651 err = dcb_ieee_setapp(dev, app); in ixgbe_dcbnl_ieee_setapp() 656 if (app->selector == IEEE_8021QAZ_APP_SEL_ETHERTYPE && in ixgbe_dcbnl_ieee_setapp() 657 app->protocol == ETH_P_FCOE) { in ixgbe_dcbnl_ieee_setapp() [all …]
|
/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_dcb.c | 265 static int bnxt_hwrm_set_dcbx_app(struct bnxt *bp, struct dcb_app *app, in bnxt_hwrm_set_dcbx_app() argument 305 if (fw_app->protocol_id == cpu_to_be16(app->protocol) && in bnxt_hwrm_set_dcbx_app() 306 fw_app->protocol_selector == app->selector && in bnxt_hwrm_set_dcbx_app() 307 fw_app->priority == app->priority) { in bnxt_hwrm_set_dcbx_app() 317 fw_app->protocol_id = cpu_to_be16(app->protocol); in bnxt_hwrm_set_dcbx_app() 318 fw_app->protocol_selector = app->selector; in bnxt_hwrm_set_dcbx_app() 319 fw_app->priority = app->priority; in bnxt_hwrm_set_dcbx_app() 522 static int bnxt_dcbnl_ieee_setapp(struct net_device *dev, struct dcb_app *app) in bnxt_dcbnl_ieee_setapp() argument 531 rc = dcb_ieee_setapp(dev, app); in bnxt_dcbnl_ieee_setapp() 535 if ((app->selector == IEEE_8021QAZ_APP_SEL_ETHERTYPE && in bnxt_dcbnl_ieee_setapp() [all …]
|
/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_dcb.c | 89 u32 app[QLC_DCB_MAX_APP]; member 103 __le32 app[QLC_DCB_MAX_APP]; member 158 struct qlcnic_dcb_app app[QLC_DCB_MAX_APP]; member 480 rsp.app[i] = le32_to_cpu(prsp_le->app[i]); in qlcnic_82xx_dcb_query_cee_param() 612 each->app[i] = cmd.rsp.arg[i + k]; in qlcnic_83xx_dcb_query_cee_param() 715 struct qlcnic_dcb_app *app; in qlcnic_dcb_fill_cee_app_params() local 721 app = &type->app[i]; in qlcnic_dcb_fill_cee_app_params() 722 app->valid = true; in qlcnic_dcb_fill_cee_app_params() 725 app->selector = QLC_DCB_GET_SELECTOR_APP(each->app[i]) - 1; in qlcnic_dcb_fill_cee_app_params() 726 new_app.selector = app->selector; in qlcnic_dcb_fill_cee_app_params() [all …]
|
/drivers/net/ethernet/netronome/nfp/nic/ |
D | main.c | 39 static int nfp_nic_init(struct nfp_app *app) in nfp_nic_init() argument 41 struct nfp_pf *pf = app->pf; in nfp_nic_init() 52 static int nfp_nic_sriov_enable(struct nfp_app *app, int num_vfs) in nfp_nic_sriov_enable() argument 57 static void nfp_nic_sriov_disable(struct nfp_app *app) in nfp_nic_sriov_disable() argument
|
/drivers/net/can/softing/ |
D | softing_cs.c | 48 .app = {0x0010, 0x0d0000, fw_dir "cancard.bin",}, 60 .app = {0x0010, 0x0d0000, fw_dir "cancard.bin",}, 72 .app = {0x0010, 0x0d0000, fw_dir "cansja.bin",}, 84 .app = {0x0010, 0x0d0000, fw_dir "cancrd2.bin",}, 96 .app = {0x0010, 0x0d0000, fw_dir "cancard.bin",}, 108 .app = {0x0010, 0x0d0000, fw_dir "cansja.bin",}, 120 .app = {0x0010, 0x0d0000, fw_dir "cancrd2.bin",}, 132 .app = {0x0010, 0x0d0000, fw_dir "cancard.bin",}, 144 .app = {0x0010, 0x0d0000, fw_dir "cancrd2.bin",},
|
/drivers/media/pci/zoran/ |
D | zr36050.c | 467 zr36050_write(ptr, ZR050_APP_IDX + 1, 0xe0 + ptr->app.appn); in zr36050_init() 469 zr36050_write(ptr, ZR050_APP_IDX + 3, ptr->app.len + 2); in zr36050_init() 471 ptr->app.data) + 4; in zr36050_init() 529 ((ptr->app.len > 0) ? ZR050_ME_APP : 0) | in zr36050_init() 711 struct jpeg_app_marker *app = data; in zr36050_control() local 716 *app = ptr->app; in zr36050_control() 721 struct jpeg_app_marker *app = data; in zr36050_control() local 726 ptr->app = *app; in zr36050_control() 839 ptr->app.appn = 0; in zr36050_setup() 840 ptr->app.len = 0; in zr36050_setup()
|
/drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ |
D | acr_r352.h | 38 hsf_load_header_app_off(const struct hsf_load_header *hdr, u32 app) in hsf_load_header_app_off() argument 40 return hdr->apps[app]; in hsf_load_header_app_off() 44 hsf_load_header_app_size(const struct hsf_load_header *hdr, u32 app) in hsf_load_header_app_size() argument 46 return hdr->apps[hdr->num_apps + app]; in hsf_load_header_app_size()
|