/drivers/nvmem/ |
D | sunxi_sid.c | 62 static u8 sunxi_sid_read_byte(const struct sunxi_sid *sid, in sunxi_sid_read_byte() argument 67 sid_key = ioread32be(sid->base + round_down(offset, 4)); in sunxi_sid_read_byte() 76 struct sunxi_sid *sid = context; in sunxi_sid_read() local 80 offset += sid->value_offset; in sunxi_sid_read() 83 *buf++ = sunxi_sid_read_byte(sid, offset++); in sunxi_sid_read() 88 static int sun8i_sid_register_readout(const struct sunxi_sid *sid, in sun8i_sid_register_readout() argument 98 writel(reg_val, sid->base + SUN8I_SID_PRCTL); in sun8i_sid_register_readout() 100 ret = readl_poll_timeout(sid->base + SUN8I_SID_PRCTL, reg_val, in sun8i_sid_register_readout() 105 writel(0, sid->base + SUN8I_SID_PRCTL); in sun8i_sid_register_readout() 114 struct sunxi_sid *sid; in sunxi_sid_probe() local [all …]
|
/drivers/staging/media/atomisp/pci/atomisp2/css2400/runtime/isys/src/ |
D | isys_stream2mmio_rmgr.c | 55 stream2mmio_sid_ID_t *sid) in ia_css_isys_stream2mmio_sid_rmgr_acquire() argument 63 assert(sid != NULL); in ia_css_isys_stream2mmio_sid_rmgr_acquire() 65 if ((stream2mmio < N_STREAM2MMIO_ID) && (sid != NULL)) { in ia_css_isys_stream2mmio_sid_rmgr_acquire() 73 *sid = i; in ia_css_isys_stream2mmio_sid_rmgr_acquire() 86 stream2mmio_sid_ID_t *sid) in ia_css_isys_stream2mmio_sid_rmgr_release() argument 92 assert(sid != NULL); in ia_css_isys_stream2mmio_sid_rmgr_release() 94 if ((stream2mmio < N_STREAM2MMIO_ID) && (sid != NULL)) { in ia_css_isys_stream2mmio_sid_rmgr_release() 97 if ((*sid < max_sid) && (cur_rsrc->num_active > 0)) { in ia_css_isys_stream2mmio_sid_rmgr_release() 98 if (bitop_getbit(cur_rsrc->active_table, *sid) == 1) { in ia_css_isys_stream2mmio_sid_rmgr_release() 99 bitop_clearbit(cur_rsrc->active_table, *sid); in ia_css_isys_stream2mmio_sid_rmgr_release()
|
/drivers/firewire/ |
D | core-topology.c | 53 static u32 *count_ports(u32 *sid, int *total_port_count, int *child_port_count) in count_ports() argument 62 q = *sid; in count_ports() 80 return sid + 1; in count_ports() 83 sid++; in count_ports() 84 q = *sid; in count_ports() 102 static int get_port_type(u32 *sid, int port_index) in get_port_type() argument 108 return (sid[index] >> shift) & 0x03; in get_port_type() 111 static struct fw_node *fw_node_create(u32 sid, int port_count, int color) in fw_node_create() argument 121 node->node_id = LOCAL_BUS | SELF_ID_PHY_ID(sid); in fw_node_create() 122 node->link_on = SELF_ID_LINK_ON(sid); in fw_node_create() [all …]
|
/drivers/net/ppp/ |
D | pppoe.c | 120 static inline bool stage_session(__be16 sid) in stage_session() argument 122 return sid != 0; in stage_session() 134 return a->sid == b->sid && ether_addr_equal(a->remote, b->remote); in cmp_2_addr() 137 static inline int cmp_addr(struct pppoe_addr *a, __be16 sid, char *addr) in cmp_addr() argument 139 return a->sid == sid && ether_addr_equal(a->remote, addr); in cmp_addr() 146 static int hash_item(__be16 sid, unsigned char *addr) in hash_item() argument 154 hash ^= (__force __u32)sid >> i; in hash_item() 166 static struct pppox_sock *__get_item(struct pppoe_net *pn, __be16 sid, in __get_item() argument 169 int hash = hash_item(sid, addr); in __get_item() 174 if (cmp_addr(&ret->pppoe_pa, sid, addr) && in __get_item() [all …]
|
/drivers/spmi/ |
D | spmi-pmic-arb.c | 196 int (*offset)(struct spmi_pmic_arb *pmic_arb, u8 sid, u16 addr, 198 u32 (*fmt_cmd)(u8 opc, u8 sid, u16 addr, u8 bc); 199 int (*non_data_cmd)(struct spmi_controller *ctrl, u8 opc, u8 sid); 251 void __iomem *base, u8 sid, u16 addr, in pmic_arb_wait_for_done() argument 260 rc = pmic_arb->ver_ops->offset(pmic_arb, sid, addr, ch_type); in pmic_arb_wait_for_done() 300 pmic_arb_non_data_cmd_v1(struct spmi_controller *ctrl, u8 opc, u8 sid) in pmic_arb_non_data_cmd_v1() argument 308 rc = pmic_arb->ver_ops->offset(pmic_arb, sid, 0, PMIC_ARB_CHANNEL_RW); in pmic_arb_non_data_cmd_v1() 313 cmd = ((opc | 0x40) << 27) | ((sid & 0xf) << 20); in pmic_arb_non_data_cmd_v1() 317 rc = pmic_arb_wait_for_done(ctrl, pmic_arb->wr_base, sid, 0, in pmic_arb_non_data_cmd_v1() 325 pmic_arb_non_data_cmd_v2(struct spmi_controller *ctrl, u8 opc, u8 sid) in pmic_arb_non_data_cmd_v2() argument [all …]
|
D | spmi.c | 100 spmi_cmd(struct spmi_controller *ctrl, u8 opcode, u8 sid) in spmi_cmd() argument 107 ret = ctrl->cmd(ctrl, opcode, sid); in spmi_cmd() 108 trace_spmi_cmd(opcode, sid, ret); in spmi_cmd() 113 u8 sid, u16 addr, u8 *buf, size_t len) in spmi_read_cmd() argument 120 trace_spmi_read_begin(opcode, sid, addr); in spmi_read_cmd() 121 ret = ctrl->read_cmd(ctrl, opcode, sid, addr, buf, len); in spmi_read_cmd() 122 trace_spmi_read_end(opcode, sid, addr, ret, len, buf); in spmi_read_cmd() 127 u8 sid, u16 addr, const u8 *buf, size_t len) in spmi_write_cmd() argument 134 trace_spmi_write_begin(opcode, sid, addr, len, buf); in spmi_write_cmd() 135 ret = ctrl->write_cmd(ctrl, opcode, sid, addr, buf, len); in spmi_write_cmd() [all …]
|
/drivers/gpu/drm/vmwgfx/device_include/ |
D | svga3d_cmd.h | 303 uint32 sid; member 329 uint32 sid; member 357 uint32 sid; member 415 uint32 sid; member 795 uint32 sid; member 1099 uint32 sid; member 1110 uint32 sid; member 1118 uint32 sid; member 1162 uint32 sid; member 1175 uint32 sid; member [all …]
|
D | svga3d_dx.h | 214 SVGA3dSurfaceId sid; member 318 SVGA3dSurfaceId sid; member 337 SVGA3dSurfaceId sid; member 531 SVGA3dSurfaceId sid; member 671 uint32 sid; member 691 SVGA3dSurfaceId sid; member 705 SVGA3dSurfaceId sid; member 718 SVGA3dSurfaceId sid; member 807 SVGA3dSurfaceId sid; member 821 SVGA3dSurfaceId sid; member [all …]
|
/drivers/media/usb/pvrusb2/ |
D | pvrusb2-cs53l32a.c | 61 unsigned int sid = hdw->hdw_desc->signal_routing_scheme; in pvr2_cs53l32a_subdev_update() local 65 sp = (sid < ARRAY_SIZE(routing_schemes)) ? in pvr2_cs53l32a_subdev_update() 66 routing_schemes[sid] : NULL; in pvr2_cs53l32a_subdev_update() 72 sid, hdw->input_val); in pvr2_cs53l32a_subdev_update()
|
D | pvrusb2-audio.c | 60 unsigned int sid = hdw->hdw_desc->signal_routing_scheme; in pvr2_msp3400_subdev_update() local 64 sp = (sid < ARRAY_SIZE(routing_schemes)) ? in pvr2_msp3400_subdev_update() 65 routing_schemes[sid] : NULL; in pvr2_msp3400_subdev_update() 74 sid, hdw->input_val); in pvr2_msp3400_subdev_update()
|
D | pvrusb2-video-v4l.c | 78 unsigned int sid = hdw->hdw_desc->signal_routing_scheme; in pvr2_saa7115_subdev_update() local 84 sp = (sid < ARRAY_SIZE(routing_schemes)) ? in pvr2_saa7115_subdev_update() 85 routing_schemes[sid] : NULL; in pvr2_saa7115_subdev_update() 91 sid, hdw->input_val); in pvr2_saa7115_subdev_update()
|
D | pvrusb2-cx2584x-v4l.c | 128 unsigned int sid = hdw->hdw_desc->signal_routing_scheme; in pvr2_cx25840_subdev_update() local 130 sp = (sid < ARRAY_SIZE(routing_schemes)) ? in pvr2_cx25840_subdev_update() 131 routing_schemes[sid] : NULL; in pvr2_cx25840_subdev_update() 137 sid, hdw->input_val); in pvr2_cx25840_subdev_update()
|
/drivers/net/can/usb/ |
D | mcba_usb.c | 102 __be16 sid; member 327 u16 sid; in mcba_usb_start_xmit() local 346 sid = MCBA_SIDL_EXID_MASK; in mcba_usb_start_xmit() 348 sid |= (cf->can_id & 0x1ffc0000) >> 13; in mcba_usb_start_xmit() 350 sid |= (cf->can_id & 0x30000) >> 16; in mcba_usb_start_xmit() 351 put_unaligned_be16(sid, &usb_msg.sid); in mcba_usb_start_xmit() 360 &usb_msg.sid); in mcba_usb_start_xmit() 435 u16 sid; in mcba_usb_process_can() local 441 sid = get_unaligned_be16(&msg->sid); in mcba_usb_process_can() 443 if (sid & MCBA_SIDL_EXID_MASK) { in mcba_usb_process_can() [all …]
|
/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_so.c | 102 uint32 sid; member 184 cmd->body.sid = view->srf->id; in vmw_view_create() 549 BUILD_BUG_ON(offsetof(struct vmw_view_define, sid) != in vmw_so_build_asserts() 550 offsetof(SVGA3dCmdDXDefineShaderResourceView, sid)); in vmw_so_build_asserts() 551 BUILD_BUG_ON(offsetof(struct vmw_view_define, sid) != in vmw_so_build_asserts() 552 offsetof(SVGA3dCmdDXDefineRenderTargetView, sid)); in vmw_so_build_asserts() 553 BUILD_BUG_ON(offsetof(struct vmw_view_define, sid) != in vmw_so_build_asserts() 554 offsetof(SVGA3dCmdDXDefineDepthStencilView, sid)); in vmw_so_build_asserts()
|
D | vmwgfx_surface.c | 203 cmd->body.sid = id; in vmw_surface_destroy_encode() 226 cmd->body.sid = srf->res.id; in vmw_surface_define_encode() 277 body->host.sid = srf->res.id; in vmw_surface_dma_encode() 679 return ttm_ref_object_base_unref(tfile, arg->sid, TTM_REF_USAGE); in vmw_surface_destroy_ioctl() 866 rep->sid = user_srf->prime.base.hash.key; in vmw_surface_define_ioctl() 983 ret = vmw_surface_handle_reference(dev_priv, file_priv, req->sid, in vmw_surface_reference_ioctl() 1071 cmd2->body.sid = srf->res.id; in vmw_gb_surface_create() 1084 cmd->body.sid = srf->res.id; in vmw_gb_surface_create() 1135 cmd1->body.sid = res->id; in vmw_gb_surface_bind() 1141 cmd2->body.sid = res->id; in vmw_gb_surface_bind() [all …]
|
/drivers/scsi/lpfc/ |
D | lpfc_nvmet.c | 175 uint32_t size, oxid, sid, rc; in lpfc_nvmet_ctxbuf_post() local 207 sid = sli4_sid_from_fc_hdr(fc_hdr); in lpfc_nvmet_ctxbuf_post() 216 ctxp->sid = sid; in lpfc_nvmet_ctxbuf_post() 266 lpfc_nvmet_unsol_fcp_issue_abort(phba, ctxp, sid, oxid); in lpfc_nvmet_ctxbuf_post() 623 ctxp->sid, ctxp->oxid); in lpfc_nvmet_xmt_ls_rsp() 666 lpfc_nvmet_unsol_ls_issue_abort(phba, ctxp, ctxp->sid, ctxp->oxid); in lpfc_nvmet_xmt_ls_rsp() 805 lpfc_nvmet_unsol_fcp_issue_abort(phba, ctxp, ctxp->sid, in lpfc_nvmet_xmt_fcp_abort() 808 lpfc_nvmet_sol_fcp_issue_abort(phba, ctxp, ctxp->sid, in lpfc_nvmet_xmt_fcp_abort() 1258 ndlp = lpfc_findnode_did(phba->pport, ctxp->sid); in lpfc_sli4_nvmet_xri_aborted() 1381 uint32_t size, oxid, sid, rc; in lpfc_nvmet_unsol_ls_buffer() local [all …]
|
/drivers/iommu/ |
D | arm-smmu-v3.c | 470 u32 sid; member 478 u32 sid; member 500 u32 sid; member 839 cmd[0] |= (u64)ent->prefetch.sid << CMDQ_PREFETCH_0_SID_SHIFT; in arm_smmu_cmdq_build_cmd() 844 cmd[0] |= (u64)ent->cfgi.sid << CMDQ_CFGI_0_SID_SHIFT; in arm_smmu_cmdq_build_cmd() 870 cmd[0] |= (u64)ent->pri.sid << CMDQ_PRI_0_SID_SHIFT; in arm_smmu_cmdq_build_cmd() 1027 static void arm_smmu_sync_ste_for_sid(struct arm_smmu_device *smmu, u32 sid) in arm_smmu_sync_ste_for_sid() argument 1032 .sid = sid, in arm_smmu_sync_ste_for_sid() 1042 static void arm_smmu_write_strtab_ent(struct arm_smmu_device *smmu, u32 sid, in arm_smmu_write_strtab_ent() argument 1066 .sid = sid, in arm_smmu_write_strtab_ent() [all …]
|
D | intel_irq_remapping.c | 286 unsigned int sq, unsigned int sid) in set_irte_sid() argument 292 irte->sid = sid; in set_irte_sid() 298 u16 sid = 0; in set_ioapic_sid() local 306 sid = (ir_ioapic[i].bus << 8) | ir_ioapic[i].devfn; in set_ioapic_sid() 312 if (sid == 0) { in set_ioapic_sid() 317 set_irte_sid(irte, SVT_VERIFY_SID_SQ, SQ_ALL_16, sid); in set_ioapic_sid() 325 u16 sid = 0; in set_hpet_sid() local 333 sid = (ir_hpet[i].bus << 8) | ir_hpet[i].devfn; in set_hpet_sid() 339 if (sid == 0) { in set_hpet_sid() 349 set_irte_sid(irte, SVT_VERIFY_SID_SQ, SQ_13_IGNORE_3, sid); in set_hpet_sid() [all …]
|
/drivers/scsi/qedf/ |
D | qedf_els.c | 24 uint32_t did, sid; in qedf_initiate_els() local 102 sid = fcport->sid; in qedf_initiate_els() 104 __fc_fill_fc_hdr(fc_hdr, FC_RCTL_ELS_REQ, did, sid, in qedf_initiate_els() 208 uint32_t sid; in qedf_send_rrq() local 232 sid = fcport->sid; in qedf_send_rrq() 251 hton24(rrq.rrq_s_id, sid); in qedf_send_rrq() 535 u32 sid, r_a_tov; in qedf_send_srr() local 561 sid = fcport->sid; in qedf_send_srr() 896 uint32_t sid; in qedf_send_rec() local 923 sid = fcport->sid; in qedf_send_rec() [all …]
|
/drivers/scsi/libfc/ |
D | fc_exch.c | 669 if (ep->sid) { in fc_exch_abort_locked() 676 fc_fill_fc_hdr(fp, FC_RCTL_BA_ABTS, ep->did, ep->sid, in fc_exch_abort_locked() 1016 ep->sid = ntoh24(fh->fh_d_id); in fc_exch_resp() 1219 ep->sid = resp_id; in fc_exch_set_addr() 1222 ep->sid = orig_id; in fc_exch_set_addr() 1273 fc_fill_fc_hdr(fp, rctl, ep->did, ep->sid, fh_type, f_ctl, 0); in fc_seq_send_last() 1600 if (ep->sid != 0 && ep->sid != ntoh24(fh->fh_d_id)) { in fc_exch_recv_seq_resp() 1932 u32 sid, u32 did) in fc_exch_pool_reset() argument 1941 (sid == 0 || sid == ep->sid) && in fc_exch_pool_reset() 1975 void fc_exch_mgr_reset(struct fc_lport *lport, u32 sid, u32 did) in fc_exch_mgr_reset() argument [all …]
|
/drivers/net/dsa/mv88e6xxx/ |
D | global1_vtu.c | 54 entry->sid = val & MV88E6352_G1_VTU_SID_MASK; in mv88e6xxx_g1_vtu_sid_read() 62 u16 val = entry->sid & MV88E6352_G1_VTU_SID_MASK; in mv88e6xxx_g1_vtu_sid_write() 266 stu.sid = vtu->sid - 1; in mv88e6xxx_g1_vtu_stu_get() 272 if (stu.sid != vtu->sid || !stu.valid) in mv88e6xxx_g1_vtu_stu_get()
|
/drivers/scsi/bnx2fc/ |
D | bnx2fc_els.c | 67 u32 sid = 0; in bnx2fc_send_rrq() local 76 sid = tgt->sid; in bnx2fc_send_rrq() 93 hton24(rrq.rrq_s_id, sid); in bnx2fc_send_rrq() 588 u32 sid = tgt->sid; in bnx2fc_send_rec() local 606 hton24(rec.rec_s_id, sid); in bnx2fc_send_rec() 686 u32 did, sid; in bnx2fc_initiate_els() local 757 sid = tgt->sid; in bnx2fc_initiate_els() 760 __fc_fill_fc_hdr(fc_hdr, FC_RCTL_ELS4_REQ, did, sid, in bnx2fc_initiate_els() 764 __fc_fill_fc_hdr(fc_hdr, FC_RCTL_ELS_REQ, did, sid, in bnx2fc_initiate_els()
|
/drivers/mfd/ |
D | twl-core.c | 158 unsigned char sid; /* Slave ID */ member 426 int sid; in twl_get_regmap() local 438 sid = twl_priv->twl_map[mod_no].sid; in twl_get_regmap() 439 twl = &twl_priv->twl_modules[sid]; in twl_get_regmap() 614 int status, sid; in add_numbered_child() local 620 sid = twl_priv->twl_map[mod_no].sid; in add_numbered_child() 621 twl = &twl_priv->twl_modules[sid]; in add_numbered_child()
|
/drivers/net/ |
D | rionet.c | 230 static void rionet_dbell_event(struct rio_mport *mport, void *dev_id, u16 sid, u16 tid, in rionet_dbell_event() argument 240 DRV_NAME, sid, tid, info); in rionet_dbell_event() 242 if (!nets[netid].active[sid]) { in rionet_dbell_event() 245 if (peer->rdev->destid == sid) { in rionet_dbell_event() 246 nets[netid].active[sid] = peer->rdev; in rionet_dbell_event() 252 rio_mport_send_doorbell(mport, sid, in rionet_dbell_event() 257 if (nets[netid].active[sid]) { in rionet_dbell_event() 258 nets[netid].active[sid] = NULL; in rionet_dbell_event()
|
/drivers/scsi/ |
D | scsi_transport_iscsi.c | 1617 return sess->sid; in iscsi_conn_get_sid() 1623 static struct iscsi_cls_session *iscsi_session_lookup(uint32_t sid) in iscsi_session_lookup() argument 1630 if (sess->sid == sid) { in iscsi_session_lookup() 1642 static struct iscsi_cls_conn *iscsi_conn_lookup(uint32_t sid, uint32_t cid) in iscsi_conn_lookup() argument 1649 if ((conn->cid == cid) && (iscsi_conn_get_sid(conn) == sid)) { in iscsi_conn_lookup() 2072 session->sid = atomic_add_return(1, &iscsi_session_nr); in iscsi_add_session() 2087 dev_set_name(&session->dev, "session%u", session->sid); in iscsi_add_session() 2255 dev_set_name(&conn->dev, "connection%d:%u", session->sid, cid); in iscsi_create_conn() 2364 ev->r.recv_req.sid = iscsi_conn_get_sid(conn); in iscsi_recv_pdu() 2433 ev->r.connerror.sid = iscsi_conn_get_sid(conn); in iscsi_conn_error_event() [all …]
|