Home
last modified time | relevance | path

Searched defs:port_num (Results 1 – 25 of 174) sorted by relevance

1234567

/linux/drivers/infiniband/core/
H A Dsysfs.c72 u32 port_num; member
132 u32 *port_num) in ib_port_sysfs_get_ibdev_kobj() argument
170 hw_stat_port_show(struct ib_device * ibdev,u32 port_num,struct ib_port_attribute * attr,char * buf) hw_stat_port_show() argument
182 hw_stat_port_store(struct ib_device * ibdev,u32 port_num,struct ib_port_attribute * attr,const char * buf,size_t count) hw_stat_port_store() argument
213 state_show(struct ib_device * ibdev,u32 port_num,struct ib_port_attribute * unused,char * buf) state_show() argument
239 lid_show(struct ib_device * ibdev,u32 port_num,struct ib_port_attribute * unused,char * buf) lid_show() argument
252 lid_mask_count_show(struct ib_device * ibdev,u32 port_num,struct ib_port_attribute * unused,char * buf) lid_mask_count_show() argument
265 sm_lid_show(struct ib_device * ibdev,u32 port_num,struct ib_port_attribute * unused,char * buf) sm_lid_show() argument
278 sm_sl_show(struct ib_device * ibdev,u32 port_num,struct ib_port_attribute * unused,char * buf) sm_sl_show() argument
291 cap_mask_show(struct ib_device * ibdev,u32 port_num,struct ib_port_attribute * unused,char * buf) cap_mask_show() argument
304 rate_show(struct ib_device * ibdev,u32 port_num,struct ib_port_attribute * unused,char * buf) rate_show() argument
383 phys_state_show(struct ib_device * ibdev,u32 port_num,struct ib_port_attribute * unused,char * buf) phys_state_show() argument
398 link_layer_show(struct ib_device * ibdev,u32 port_num,struct ib_port_attribute * unused,char * buf) link_layer_show() argument
462 _show_port_gid_attr(struct ib_device * ibdev,u32 port_num,struct ib_port_attribute * attr,char * buf,ssize_t (* print)(const struct ib_gid_attr * gid_attr,char * buf)) _show_port_gid_attr() argument
481 show_port_gid(struct ib_device * ibdev,u32 port_num,struct ib_port_attribute * attr,char * buf) show_port_gid() argument
510 show_port_gid_attr_ndev(struct ib_device * ibdev,u32 port_num,struct ib_port_attribute * attr,char * buf) show_port_gid_attr_ndev() argument
518 show_port_gid_attr_gid_type(struct ib_device * ibdev,u32 port_num,struct ib_port_attribute * attr,char * buf) show_port_gid_attr_gid_type() argument
525 show_port_pkey(struct ib_device * ibdev,u32 port_num,struct ib_port_attribute * attr,char * buf) show_port_pkey() argument
558 get_perf_mad(struct ib_device * dev,int port_num,__be16 attr,void * data,int offset,size_t size) get_perf_mad() argument
602 show_pma_counter(struct ib_device * ibdev,u32 port_num,struct ib_port_attribute * attr,char * buf) show_pma_counter() argument
795 get_counter_table(struct ib_device * dev,int port_num) get_counter_table() argument
815 update_hw_stats(struct ib_device * dev,struct rdma_hw_stats * stats,u32 port_num,int index) update_hw_stats() argument
830 print_hw_stat(struct ib_device * dev,int port_num,struct rdma_hw_stats * stats,int index,char * buf) print_hw_stat() argument
840 show_hw_stats(struct ib_device * ibdev,struct rdma_hw_stats * stats,unsigned int index,unsigned int port_num,char * buf) show_hw_stats() argument
857 show_stats_lifespan(struct ib_device * ibdev,struct rdma_hw_stats * stats,unsigned int index,unsigned int port_num,char * buf) show_stats_lifespan() argument
871 set_stats_lifespan(struct ib_device * ibdev,struct rdma_hw_stats * stats,unsigned int index,unsigned int port_num,const char * buf,size_t count) set_stats_lifespan() argument
1091 ib_get_hw_stats_port(struct ib_device * ibdev,u32 port_num) ib_get_hw_stats_port() argument
1102 alloc_port_table_group(const char * name,struct attribute_group * group,struct port_table_attribute * attrs,size_t num,ssize_t (* show)(struct ib_device * ibdev,u32 port_num,struct ib_port_attribute *,char * buf)) alloc_port_table_group() argument
1202 setup_port(struct ib_core_device * coredev,int port_num,const struct ib_port_attr * attr) setup_port() argument
1428 u32 port_num; ib_setup_port_attrs() local
1470 ib_port_register_client_groups(struct ib_device * ibdev,u32 port_num,const struct attribute_group ** groups) ib_port_register_client_groups() argument
1478 ib_port_unregister_client_groups(struct ib_device * ibdev,u32 port_num,const struct attribute_group ** groups) ib_port_unregister_client_groups() argument
[all...]
H A Dsmi.c44 static enum smi_action __smi_handle_dr_smp_send(bool is_switch, u32 port_num, in __smi_handle_dr_smp_send()
130 bool is_switch, u32 port_num) in smi_handle_dr_smp_send()
142 bool is_switch, u32 port_num) in opa_smi_handle_dr_smp_send()
155 static enum smi_action __smi_handle_dr_smp_recv(bool is_switch, u32 port_num, in __smi_handle_dr_smp_recv()
241 u32 port_num, int phys_port_cnt) in smi_handle_dr_smp_recv()
257 u32 port_num, int phys_port_cnt) in opa_smi_handle_dr_smp_recv()
H A Drw.c29 static inline bool rdma_rw_can_use_mr(struct ib_device *dev, u32 port_num) in rdma_rw_can_use_mr()
46 static inline bool rdma_rw_io_needs_mr(struct ib_device *dev, u32 port_num, in rdma_rw_io_needs_mr()
91 static int rdma_rw_init_one_mr(struct ib_qp *qp, u32 port_num, in rdma_rw_init_one_mr()
125 u32 port_num, struct scatterlist *sg, u32 sg_cnt, u32 offset, in rdma_rw_init_mr_wrs()
292 int rdma_rw_ctx_init(struct rdma_rw_ctx *ctx, struct ib_qp *qp, u32 port_num, in rdma_rw_ctx_init()
365 u32 port_num, struct scatterlist *sg, u32 sg_cnt, in rdma_rw_ctx_signature_init()
498 u32 port_num, struct ib_cqe *cqe, struct ib_send_wr *chain_wr) in rdma_rw_ctx_wrs()
555 int rdma_rw_ctx_post(struct rdma_rw_ctx *ctx, struct ib_qp *qp, u32 port_num, in rdma_rw_ctx_post()
575 u32 port_num, struct scatterlist *sg, u32 sg_cnt, in rdma_rw_ctx_destroy()
614 u32 port_num, struct scatterlist *sg, u32 sg_cnt, in rdma_rw_ctx_destroy_signature()
[all …]
H A Dagent.c57 __ib_get_agent_port(const struct ib_device *device, int port_num) in __ib_get_agent_port()
79 ib_get_agent_port(const struct ib_device *device, int port_num) in ib_get_agent_port()
92 int port_num, int qpn, size_t resp_mad_len, bool opa) in agent_send_response()
159 int ib_agent_port_open(struct ib_device *device, int port_num) in ib_agent_port_open()
211 int ib_agent_port_close(struct ib_device *device, int port_num) in ib_agent_port_close()
H A Dmad.c116 __ib_get_mad_port(struct ib_device *device, u32 port_num) in __ib_get_mad_port() argument
132 ib_get_mad_port(struct ib_device *device, u32 port_num) in ib_get_mad_port() argument
219 u32 port_num, in ib_register_mad_agent() argument
546 build_smp_wc(struct ib_qp * qp,struct ib_cqe * cqe,u16 slid,u16 pkey_index,u32 port_num,struct ib_wc * wc) build_smp_wc() argument
605 u32 port_num; handle_outgoing_dr_smp() local
1678 u32 port_num = mad_agent_priv->agent.port_num; rcv_has_same_gid() local
1859 handle_ib_smi(const struct ib_mad_port_private * port_priv,const struct ib_mad_qp_info * qp_info,const struct ib_wc * wc,u32 port_num,struct ib_mad_private * recv,struct ib_mad_private * response) handle_ib_smi() argument
1946 handle_opa_smi(struct ib_mad_port_private * port_priv,struct ib_mad_qp_info * qp_info,struct ib_wc * wc,u32 port_num,struct ib_mad_private * recv,struct ib_mad_private * response) handle_opa_smi() argument
2002 handle_smi(struct ib_mad_port_private * port_priv,struct ib_mad_qp_info * qp_info,struct ib_wc * wc,u32 port_num,struct ib_mad_private * recv,struct ib_mad_private * response,bool opa) handle_smi() argument
2026 u32 port_num; ib_mad_recv_done() local
2937 ib_mad_port_open(struct ib_device * device,u32 port_num) ib_mad_port_open() argument
3040 ib_mad_port_close(struct ib_device * device,u32 port_num) ib_mad_port_close() argument
[all...]
H A Dsecurity.c196 u32 port_num, in check_pkey_qps()
248 u32 port_num = pp->port_num; in port_pkey_list_insert() local
541 u32 port_num, in ib_security_cache_change()
652 u32 port_num, in ib_security_pkey_access()
H A Duverbs_std_types_device.c141 struct ib_device *ib_dev, u8 port_num) in copy_port_attr_to_resp() argument
184 u8 port_num; in UVERBS_HANDLER() local
377 u32 port_num; in UVERBS_HANDLER() local
[all...]
H A Dsa_query.c98 u32 port_num; member
1173 static u8 get_src_path_mask(struct ib_device *device, u32 port_num) in get_src_path_mask()
1192 static int init_ah_attr_grh_fields(struct ib_device *device, u32 port_num, in init_ah_attr_grh_fields()
1230 int ib_init_ah_attr_from_path(struct ib_device *device, u32 port_num, in ib_init_ah_attr_from_path()
1395 u32 port_num) in ib_sa_opa_pathrecord_support()
1430 struct ib_device *device, u32 port_num) in opa_pr_query_possible()
1517 struct ib_device *device, u32 port_num, in ib_sa_path_rec_get()
1643 struct ib_device *device, u32 port_num, in ib_sa_mcmember_rec_query()
1734 struct ib_device *device, u32 port_num, in ib_sa_guid_info_rec_query()
2122 u32 port_num = event->element.port_num - sa_dev->start_port; in ib_sa_event() local
/linux/drivers/infiniband/hw/mthca/
H A Dmthca_mad.c50 static int mthca_update_rate(struct mthca_dev *dev, u8 port_num) in mthca_update_rate()
76 u8 port_num, u16 lid, u8 sl) in update_sm_ah()
108 u8 port_num, in smp_snoop()
165 u32 port_num, in forward_trap()
199 int mthca_process_mad(struct ib_device *ibdev, int mad_flags, u32 port_num, in mthca_process_mad()
/linux/drivers/infiniband/hw/mlx5/
H A Dcounters.c212 get_counters(struct mlx5_ib_dev * dev,u32 port_num) get_counters() argument
231 mlx5_ib_get_counters_id(struct mlx5_ib_dev * dev,u32 port_num) mlx5_ib_get_counters_id() argument
269 mlx5_ib_alloc_hw_port_stats(struct ib_device * ibdev,u32 port_num) mlx5_ib_alloc_hw_port_stats() argument
332 mlx5_ib_query_q_counters_vport(struct mlx5_ib_dev * dev,u32 port_num,const struct mlx5_ib_counters * cnts,struct rdma_hw_stats * stats) mlx5_ib_query_q_counters_vport() argument
370 do_get_hw_stats(struct ib_device * ibdev,struct rdma_hw_stats * stats,u32 port_num,int index) do_get_hw_stats() argument
432 do_get_op_stat(struct ib_device * ibdev,struct rdma_hw_stats * stats,u32 port_num,int index) do_get_op_stat() argument
463 do_get_op_stats(struct ib_device * ibdev,struct rdma_hw_stats * stats,u32 port_num) do_get_op_stats() argument
484 mlx5_ib_get_hw_stats(struct ib_device * ibdev,struct rdma_hw_stats * stats,u32 port_num,int index) mlx5_ib_get_hw_stats() argument
589 mlx5_ib_fill_counters(struct mlx5_ib_dev * dev,struct rdma_stat_desc * descs,size_t * offsets,u32 port_num) mlx5_ib_fill_counters() argument
688 __mlx5_ib_alloc_counters(struct mlx5_ib_dev * dev,struct mlx5_ib_counters * cnts,u32 port_num) __mlx5_ib_alloc_counters() argument
[all...]
H A Dcong.c292 static int mlx5_ib_get_cc_params(struct mlx5_ib_dev *dev, u32 port_num, in mlx5_ib_get_cc_params()
329 static int mlx5_ib_set_cc_params(struct mlx5_ib_dev *dev, u32 port_num, in mlx5_ib_set_cc_params()
422 void mlx5_ib_cleanup_cong_debugfs(struct mlx5_ib_dev *dev, u32 port_num) in mlx5_ib_cleanup_cong_debugfs()
434 void mlx5_ib_init_cong_debugfs(struct mlx5_ib_dev *dev, u32 port_num) in mlx5_ib_init_cong_debugfs()
H A Dstd_types.c115 static int fill_multiport_info(struct mlx5_ib_dev *dev, u32 port_num, in fill_multiport_info()
132 static int fill_switchdev_info(struct mlx5_ib_dev *dev, u32 port_num, in fill_switchdev_info()
179 u32 port_num; in UVERBS_HANDLER() local
H A Dmain.c107 mlx5_ib_port_link_layer(struct ib_device * device,u32 port_num) mlx5_ib_port_link_layer() argument
116 get_port_state(struct ib_device * ibdev,u32 port_num,enum ib_port_state * state) get_port_state() argument
132 mlx5_get_rep_roce(struct mlx5_ib_dev * dev,struct net_device * ndev,struct net_device * upper,u32 * port_num) mlx5_get_rep_roce() argument
206 u32 port_num = roce->native_port_num; mlx5_netdev_event() local
352 mlx5_ib_put_native_port_mdev(struct mlx5_ib_dev * ibdev,u32 port_num) mlx5_ib_put_native_port_mdev() argument
516 mlx5_query_port_roce(struct ib_device * device,u32 port_num,struct ib_port_attr * props) mlx5_query_port_roce() argument
613 set_roce_addr(struct mlx5_ib_dev * dev,u32 port_num,unsigned int index,const union ib_gid * gid,const struct ib_gid_attr * attr) set_roce_addr() argument
1610 set_port_caps_atomic(struct mlx5_ib_dev * dev,u32 port_num,u32 mask,u32 value) set_port_caps_atomic() argument
3147 mlx5_port_immutable(struct ib_device * ibdev,u32 port_num,struct ib_port_immutable * immutable) mlx5_port_immutable() argument
3178 mlx5_port_rep_immutable(struct ib_device * ibdev,u32 port_num,struct ib_port_immutable * immutable) mlx5_port_rep_immutable() argument
3356 mlx5_mdev_netdev_track(struct mlx5_ib_dev * dev,u32 port_num) mlx5_mdev_netdev_track() argument
3365 mlx5_mdev_netdev_untrack(struct mlx5_ib_dev * dev,u32 port_num) mlx5_mdev_netdev_untrack() argument
3403 mlx5_ib_rn_get_params(struct ib_device * device,u32 port_num,enum rdma_netdev_t type,struct rdma_netdev_alloc_params * params) mlx5_ib_rn_get_params() argument
3455 u32 port_num = mlx5_core_native_port_num(mpi->mdev) - 1; mlx5_ib_unbind_slave_port() local
3520 u32 port_num = mlx5_core_native_port_num(mpi->mdev) - 1; mlx5_ib_bind_slave_port() local
3602 u32 port_num = mlx5_core_native_port_num(dev->mdev) - 1; mlx5_ib_init_multiport_master() local
3671 u32 port_num = mlx5_core_native_port_num(dev->mdev) - 1; mlx5_ib_cleanup_multiport_master() local
4300 u32 port_num = 0; mlx5_ib_roce_init() local
4330 u32 port_num; mlx5_ib_roce_cleanup() local
[all...]
/linux/drivers/infiniband/sw/rdmavt/
H A Dvt.c119 static int rvt_query_port(struct ib_device *ibdev, u32 port_num, in rvt_query_port()
151 static int rvt_modify_port(struct ib_device *ibdev, u32 port_num, in rvt_modify_port()
187 static int rvt_query_pkey(struct ib_device *ibdev, u32 port_num, u16 index, in rvt_query_pkey()
217 static int rvt_query_gid(struct ib_device *ibdev, u32 port_num, in rvt_query_gid()
259 static int rvt_get_port_immutable(struct ib_device *ibdev, u32 port_num, in rvt_get_port_immutable()
/linux/drivers/usb/gadget/function/
H A Du_serial.c113 u8 port_num; member
606 int port_num = tty->index; in gs_open() local
1104 ssize_t gserial_set_console(unsigned char port_num, const char *page, size_t count) in gserial_set_console()
1133 ssize_t gserial_get_console(unsigned char port_num, char *page) in gserial_get_console()
1175 gs_port_alloc(unsigned port_num, struct usb_cdc_line_coding *coding) in gs_port_alloc()
1233 void gserial_free_line(unsigned char port_num) in gserial_free_line()
1258 int port_num; in gserial_alloc_line_no_console() local
1330 int gserial_connect(struct gserial *gser, u8 port_num) in gserial_connect()
/linux/drivers/infiniband/hw/mlx4/
H A Dmad.c189 static void update_sm_ah(struct mlx4_ib_dev *dev, u32 port_num, u16 lid, u8 sl) in update_sm_ah()
220 static void smp_snoop(struct ib_device *ibdev, u32 port_num, in smp_snoop()
333 static void __propagate_pkey_ev(struct mlx4_ib_dev *dev, int port_num, in __propagate_pkey_ev()
383 static void forward_trap(struct mlx4_ib_dev *dev, u32 port_num, in forward_trap()
822 static int ib_process_mad(struct ib_device *ibdev, int mad_flags, u32 port_num, in ib_process_mad()
937 u32 port_num, const struct ib_wc *in_wc, in iboe_process_mad()
984 int mlx4_ib_process_mad(struct ib_device *ibdev, int mad_flags, u32 port_num, in mlx4_ib_process_mad()
1078 static void handle_lid_change_event(struct mlx4_ib_dev *dev, u32 port_num) in handle_lid_change_event()
1087 static void handle_client_rereg_event(struct mlx4_ib_dev *dev, u32 port_num) in handle_client_rereg_event()
1119 static void propagate_pkey_ev(struct mlx4_ib_dev *dev, int port_num, in propagate_pkey_ev()
[all …]
H A Dsysfs.c202 int add_sysfs_port_mcg_attr(struct mlx4_ib_dev *device, int port_num, in add_sysfs_port_mcg_attr()
215 void del_sysfs_port_mcg_attr(struct mlx4_ib_dev *device, int port_num, in del_sysfs_port_mcg_attr()
223 static int add_port_entries(struct mlx4_ib_dev *device, int port_num) in add_port_entries()
374 u8 port_num; member
625 static int add_port(struct mlx4_ib_dev *dev, int port_num, int slave) in add_port()
/linux/drivers/platform/chrome/
H A Dcros_typec_vdm.c20 void cros_typec_handle_vdm_attention(struct cros_typec_data *typec, int port_num) in cros_typec_handle_vdm_attention()
59 void cros_typec_handle_vdm_response(struct cros_typec_data *typec, int port_num) in cros_typec_handle_vdm_response()
/linux/drivers/net/dsa/realtek/
H A Drtl8366rb-leds.c29 u8 port_num = led->port_num; in rb8366rb_get_port_led() local
48 u8 port_num = led->port_num; in rb8366rb_set_port_led() local
/linux/drivers/infiniband/hw/usnic/
H A Dusnic_transport.c85 u16 usnic_transport_rsrv_port(enum usnic_transport_type type, u16 port_num) in usnic_transport_rsrv_port()
118 void usnic_transport_unrsrv_port(enum usnic_transport_type type, u16 port_num) in usnic_transport_unrsrv_port()
/linux/net/core/
H A Dutils.c301 static int inet4_pton(const char *src, u16 port_num, in inet4_pton()
320 static int inet6_pton(struct net *net, const char *src, u16 port_num, in inet6_pton()
372 u16 port_num; in inet_pton_with_scope() local
/linux/drivers/infiniband/hw/qedr/
H A Dmain.c56 static void qedr_ib_dispatch_event(struct qedr_dev *dev, u32 port_num, in qedr_ib_dispatch_event()
69 u32 port_num) in qedr_link_layer()
84 static int qedr_roce_port_immutable(struct ib_device *ibdev, u32 port_num, in qedr_roce_port_immutable()
103 static int qedr_iw_port_immutable(struct ib_device *ibdev, u32 port_num, in qedr_iw_port_immutable()
/linux/drivers/s390/net/
H A Dctcm_mpc.c290 static struct net_device *ctcmpc_get_dev(int port_num) in ctcmpc_get_dev()
329 int ctc_mpc_alloc_channel(int port_num, void (*callback)(int, int)) in ctc_mpc_alloc_channel() argument
399 void ctc_mpc_establish_connectivity(int port_num, in ctc_mpc_establish_connectivity() argument
519 void ctc_mpc_dealloc_ch(int port_num) in ctc_mpc_dealloc_ch()
553 void ctc_mpc_flow_control(int port_num, int flowc) in ctc_mpc_flow_control()
/linux/drivers/infiniband/hw/hns/
H A Dhns_roce_main.c221 static int hns_roce_query_port(struct ib_device *ib_dev, u32 port_num, in hns_roce_query_port()
272 u32 port_num) in hns_roce_get_link_layer()
511 static int hns_roce_port_immutable(struct ib_device *ib_dev, u32 port_num, in hns_roce_port_immutable()
578 struct ib_device *device, u32 port_num) in hns_roce_alloc_hw_port_stats()
/linux/drivers/net/ethernet/hisilicon/hns/
H A Dhns_dsaf_mac.c192 int hns_mac_get_inner_port_num(struct hns_mac_cb *mac_cb, u8 vmid, u8 *port_num) in hns_mac_get_inner_port_num()
355 u32 port_num, char *addr, bool enable) in hns_mac_set_multi()
386 u8 port_num; in hns_mac_clr_multicast() local
414 u32 port_num, u16 vlan_id, bool enable) in hns_mac_port_config_bc_en()
451 u8 port_num; in hns_mac_vm_config_bc_en() local

1234567