Home
last modified time | relevance | path

Searched refs:port_idx (Results 1 – 25 of 26) sorted by relevance

12

/Linux-v4.19/drivers/usb/wusbcore/
Drh.c85 static int wusbhc_rh_port_reset(struct wusbhc *wusbhc, u8 port_idx) in wusbhc_rh_port_reset() argument
88 struct wusb_port *port = wusb_port_by_idx(wusbhc, port_idx); in wusbhc_rh_port_reset()
233 u8 selector, u8 port_idx) in wusbhc_rh_set_port_feat() argument
237 if (port_idx > wusbhc->ports_max) in wusbhc_rh_set_port_feat()
252 wusb_port_by_idx(wusbhc, port_idx)->status |= USB_PORT_STAT_POWER; in wusbhc_rh_set_port_feat()
256 return wusbhc_rh_port_reset(wusbhc, port_idx); in wusbhc_rh_set_port_feat()
260 port_idx, feature, selector); in wusbhc_rh_set_port_feat()
264 port_idx, feature, selector); in wusbhc_rh_set_port_feat()
277 u8 selector, u8 port_idx) in wusbhc_rh_clear_port_feat() argument
282 if (port_idx > wusbhc->ports_max) in wusbhc_rh_clear_port_feat()
[all …]
Ddevconnect.c150 const char *pr_cdid, u8 port_idx) in wusbhc_cack_add() argument
169 wusb_dev->port_idx = port_idx; in wusbhc_cack_add()
185 dev_addr = (port_idx + 2) | WUSB_DEV_ADDR_UNAUTH; in wusbhc_cack_add()
188 "port %u\n", dev_addr, port_idx); in wusbhc_cack_add()
354 dev_dbg(wusbhc->dev, "disconnecting device from port %d\n", wusb_dev->port_idx); in __wusbhc_dev_disconnect()
566 wusb_dev->port_idx)); in wusbhc_handle_dn_disconnect()
639 void __wusbhc_dev_disable(struct wusbhc *wusbhc, u8 port_idx) in __wusbhc_dev_disable() argument
646 wusb_dev = wusb_port_by_idx(wusbhc, port_idx)->wusb_dev; in __wusbhc_dev_disable()
650 port_idx); in __wusbhc_dev_disable()
653 __wusbhc_dev_disconnect(wusbhc, wusb_port_by_idx(wusbhc, port_idx)); in __wusbhc_dev_disable()
[all …]
Dsecurity.c77 tkid = &wusb_port_by_idx(wusbhc, wusb_dev->port_idx)->ptk_tkid; in wusbhc_next_tkid()
481 result = wusbhc->set_ptk(wusbhc, wusb_dev->port_idx, tkid, in wusb_dev_4way_handshake()
530 int port_idx; in wusbhc_gtk_rekey_work() local
544 for (port_idx = 0; port_idx < wusbhc->ports_max; port_idx++) { in wusbhc_gtk_rekey_work()
545 wusb_dev = wusbhc->port[port_idx].wusb_dev; in wusbhc_gtk_rekey_work()
561 __func__, wusb_dev->port_idx); in wusbhc_gtk_rekey_work()
566 __func__, wusb_dev->port_idx); in wusbhc_gtk_rekey_work()
Ddev-sysfs.c24 u8 port_idx; in wusb_disconnect_store() local
36 port_idx = wusb_port_no_to_idx(usb_dev->portnum); in wusb_disconnect_store()
37 __wusbhc_dev_disable(wusbhc, port_idx); in wusb_disconnect_store()
Dwusbhc.h87 u8 port_idx; member
272 int (*set_ptk)(struct wusbhc *wusbhc, u8 port_idx,
441 u8 port_idx) in wusb_port_by_idx() argument
443 return &wusbhc->port[port_idx]; in wusb_port_by_idx()
/Linux-v4.19/drivers/input/joystick/
Dturbografx.c161 int i, j, port_idx; in tgfx_attach() local
165 for (port_idx = 0; port_idx < TGFX_MAX_PORTS; port_idx++) { in tgfx_attach()
166 if (tgfx_cfg[port_idx].nargs == 0 || in tgfx_attach()
167 tgfx_cfg[port_idx].args[0] < 0) in tgfx_attach()
169 if (tgfx_cfg[port_idx].args[0] == pp->number) in tgfx_attach()
173 if (port_idx == TGFX_MAX_PORTS) { in tgfx_attach()
177 n_buttons = tgfx_cfg[port_idx].args + 1; in tgfx_attach()
178 n_devs = tgfx_cfg[port_idx].nargs - 1; in tgfx_attach()
184 port_idx); in tgfx_attach()
250 tgfx_base[port_idx] = tgfx; in tgfx_attach()
Ddb9.c564 int i, j, port_idx; in db9_attach() local
568 for (port_idx = 0; port_idx < DB9_MAX_PORTS; port_idx++) { in db9_attach()
569 if (db9_cfg[port_idx].nargs == 0 || in db9_attach()
570 db9_cfg[port_idx].args[DB9_ARG_PARPORT] < 0) in db9_attach()
573 if (db9_cfg[port_idx].args[DB9_ARG_PARPORT] == pp->number) in db9_attach()
577 if (port_idx == DB9_MAX_PORTS) { in db9_attach()
582 mode = db9_cfg[port_idx].args[DB9_ARG_MODE]; in db9_attach()
599 pd = parport_register_dev_model(pp, "db9", &db9_parport_cb, port_idx); in db9_attach()
652 db9_base[port_idx] = db9; in db9_attach()
Dgamecon.c937 int i, port_idx; in gc_attach() local
942 for (port_idx = 0; port_idx < GC_MAX_PORTS; port_idx++) { in gc_attach()
943 if (gc_cfg[port_idx].nargs == 0 || gc_cfg[port_idx].args[0] < 0) in gc_attach()
946 if (gc_cfg[port_idx].args[0] == pp->number) in gc_attach()
950 if (port_idx == GC_MAX_PORTS) { in gc_attach()
954 pads = gc_cfg[port_idx].args + 1; in gc_attach()
955 n_pads = gc_cfg[port_idx].nargs - 1; in gc_attach()
961 port_idx); in gc_attach()
993 gc_base[port_idx] = gc; in gc_attach()
/Linux-v4.19/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_rcb.h141 struct rcb_common_cb *rcb_common, u32 port_idx);
143 struct rcb_common_cb *rcb_common, u32 port_idx);
145 struct rcb_common_cb *rcb_common, u32 port_idx);
147 struct rcb_common_cb *rcb_common, u32 port_idx, u32 timeout);
149 struct rcb_common_cb *rcb_common, u32 port_idx, u32 coalesced_frames);
151 struct rcb_common_cb *rcb_common, u32 port_idx, u32 coalesced_frames);
Dhns_dsaf_rcb.c301 u32 port_idx, u32 desc_cnt) in hns_rcb_set_port_desc_cnt() argument
303 dsaf_write_dev(rcb_common, RCB_CFG_BD_NUM_REG + port_idx * 4, in hns_rcb_set_port_desc_cnt()
308 struct rcb_common_cb *rcb_common, u32 port_idx, u32 timeout) in hns_rcb_set_port_timeout() argument
316 RCB_PORT_INT_GAPTIME_REG + port_idx * 4, in hns_rcb_set_port_timeout()
320 RCB_PORT_INT_GAPTIME_REG + port_idx * 4, in hns_rcb_set_port_timeout()
324 RCB_PORT_CFG_OVERTIME_REG + port_idx * 4, in hns_rcb_set_port_timeout()
328 RCB_PORT_CFG_OVERTIME_REG + port_idx * 4, in hns_rcb_set_port_timeout()
563 struct rcb_common_cb *rcb_common, u32 port_idx) in hns_rcb_get_rx_coalesced_frames() argument
565 return dsaf_read_dev(rcb_common, RCB_CFG_PKTLINE_REG + port_idx * 4); in hns_rcb_get_rx_coalesced_frames()
576 struct rcb_common_cb *rcb_common, u32 port_idx) in hns_rcb_get_tx_coalesced_frames() argument
[all …]
/Linux-v4.19/sound/soc/qcom/qdsp6/
Dq6adm.c91 static struct q6copp *q6adm_find_copp(struct q6adm *adm, int port_idx, in q6adm_find_copp() argument
100 if ((port_idx == c->afe_port) && (copp_idx == c->copp_idx)) { in q6adm_find_copp()
129 int port_idx, copp_idx; in q6adm_callback() local
138 port_idx = ((hdr->token) >> 16) & 0xFF; in q6adm_callback()
139 if (port_idx < 0 || port_idx >= AFE_MAX_PORTS) { in q6adm_callback()
141 port_idx, hdr->token); in q6adm_callback()
159 copp = q6adm_find_copp(adm, port_idx, copp_idx); in q6adm_callback()
186 copp = q6adm_find_copp(adm, port_idx, copp_idx); in q6adm_callback()
213 static struct q6copp *q6adm_alloc_copp(struct q6adm *adm, int port_idx) in q6adm_alloc_copp() argument
218 idx = find_first_zero_bit(&adm->copp_bitmap[port_idx], in q6adm_alloc_copp()
[all …]
/Linux-v4.19/drivers/usb/host/whci/
Dwusb.c95 int idx = wusb_dev->port_idx; in whc_dev_info_set()
160 int whc_set_ptk(struct wusbhc *wusbhc, u8 port_idx, u32 tkid, in whc_set_ptk() argument
164 struct di_buf_entry *di = &whc->di_buf[port_idx]; in whc_set_ptk()
170 ret = whc_set_key(whc, port_idx, tkid, ptk, key_size, false); in whc_set_ptk()
175 di->addr_sec_info |= WHC_DI_SECURE | WHC_DI_KEY_IDX(port_idx); in whc_set_ptk()
179 ret = whc_update_di(whc, port_idx); in whc_set_ptk()
Dwhcd.h147 int whc_set_ptk(struct wusbhc *wusbhc, u8 port_idx, u32 tkid,
/Linux-v4.19/net/smc/
Dsmc_ib.c240 u8 port_idx; in smc_ib_port_event_work() local
242 for_each_set_bit(port_idx, &smcibdev->port_event_mask, SMC_MAX_PORTS) { in smc_ib_port_event_work()
243 smc_ib_remember_port_attr(smcibdev, port_idx + 1); in smc_ib_port_event_work()
244 clear_bit(port_idx, &smcibdev->port_event_mask); in smc_ib_port_event_work()
245 if (!smc_ib_port_active(smcibdev, port_idx + 1)) in smc_ib_port_event_work()
246 smc_port_terminate(smcibdev, port_idx + 1); in smc_ib_port_event_work()
255 u8 port_idx; in smc_ib_global_event_handler() local
263 port_idx = ibevent->element.port_num - 1; in smc_ib_global_event_handler()
264 set_bit(port_idx, &smcibdev->port_event_mask); in smc_ib_global_event_handler()
294 u8 port_idx; in smc_ib_qp_event_handler() local
[all …]
/Linux-v4.19/drivers/gpu/drm/i915/gvt/
Dedid.c445 int port_idx, in intel_gvt_i2c_handle_aux_ch_write() argument
492 i2c_edid->port = port_idx; in intel_gvt_i2c_handle_aux_ch_write()
495 port_idx) && in intel_gvt_i2c_handle_aux_ch_write()
496 intel_vgpu_port_is_dp(vgpu, port_idx)) in intel_gvt_i2c_handle_aux_ch_write()
Dedid.h146 int port_idx,
/Linux-v4.19/drivers/usb/host/
Dhwa-hc.c437 0, wusb_dev->port_idx << 8 | iface_no, in __hwahc_op_dev_info_set()
451 static int __hwahc_dev_set_key(struct wusbhc *wusbhc, u8 port_idx, u32 tkid, in __hwahc_dev_set_key() argument
478 port_idx << 8 | iface_no, in __hwahc_dev_set_key()
492 static int __hwahc_op_set_ptk(struct wusbhc *wusbhc, u8 port_idx, u32 tkid, in __hwahc_op_set_ptk() argument
506 result = __hwahc_dev_set_key(wusbhc, port_idx, tkid, in __hwahc_op_set_ptk()
520 encryption_value, port_idx << 8 | iface_no, in __hwahc_op_set_ptk()
524 "port index %u to %s (value %d): %d\n", port_idx, in __hwahc_op_set_ptk()
/Linux-v4.19/include/rdma/
Drdma_vt.h342 void (*notify_create_mad_agent)(struct rvt_dev_info *rdi, int port_idx);
345 void (*notify_free_mad_agent)(struct rvt_dev_info *rdi, int port_idx);
/Linux-v4.19/drivers/infiniband/hw/qib/
Dqib_verbs.h251 void qib_notify_create_mad_agent(struct rvt_dev_info *rdi, int port_idx);
252 void qib_notify_free_mad_agent(struct rvt_dev_info *rdi, int port_idx);
Dqib_mad.c2473 void qib_notify_create_mad_agent(struct rvt_dev_info *rdi, int port_idx) in qib_notify_create_mad_agent() argument
2480 dd->pport[port_idx].cong_stats.counter = 0; in qib_notify_create_mad_agent()
2481 timer_setup(&dd->pport[port_idx].cong_stats.timer, in qib_notify_create_mad_agent()
2483 dd->pport[port_idx].cong_stats.timer.expires = 0; in qib_notify_create_mad_agent()
2484 add_timer(&dd->pport[port_idx].cong_stats.timer); in qib_notify_create_mad_agent()
2487 void qib_notify_free_mad_agent(struct rvt_dev_info *rdi, int port_idx) in qib_notify_free_mad_agent() argument
2493 if (dd->pport[port_idx].cong_stats.timer.function) in qib_notify_free_mad_agent()
2494 del_timer_sync(&dd->pport[port_idx].cong_stats.timer); in qib_notify_free_mad_agent()
2496 if (dd->pport[port_idx].ibport_data.smi_ah) in qib_notify_free_mad_agent()
2497 rdma_destroy_ah(&dd->pport[port_idx].ibport_data.smi_ah->ibah); in qib_notify_free_mad_agent()
/Linux-v4.19/drivers/scsi/
Dg_NCR5380.c230 int port_idx = -1; in generic_NCR5380_init_one() local
289 port_idx = i; in generic_NCR5380_init_one()
417 magic_configure(port_idx, board_irq, magic); in generic_NCR5380_init_one()
/Linux-v4.19/drivers/staging/fsl-dpaa2/ethsw/
Dethsw.c1357 static int ethsw_probe_port(struct ethsw_core *ethsw, u16 port_idx) in ethsw_probe_port() argument
1374 port_priv->idx = port_idx; in ethsw_probe_port()
1396 ethsw->ports[port_idx] = port_priv; in ethsw_probe_port()
1398 return ethsw_port_init(port_priv, port_idx); in ethsw_probe_port()
/Linux-v4.19/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4.h1294 static inline void t4_set_hw_addr(struct adapter *adapter, int port_idx, in t4_set_hw_addr() argument
1297 ether_addr_copy(adapter->port[port_idx]->dev_addr, hw_addr); in t4_set_hw_addr()
1298 ether_addr_copy(adapter->port[port_idx]->perm_addr, hw_addr); in t4_set_hw_addr()
/Linux-v4.19/drivers/rapidio/devices/
Drio_mport_cdev.c1361 u32 port_idx = md->mport->index; in maint_port_idx_get() local
1363 rmcd_debug(MPORT, "port_index=%d", port_idx); in maint_port_idx_get()
1365 if (copy_to_user(arg, &port_idx, sizeof(port_idx))) in maint_port_idx_get()
/Linux-v4.19/drivers/net/ethernet/chelsio/cxgb3/
Dt3_cpl.h552 __u8 port_idx:1; member
556 __u8 port_idx:1; member

12