Home
last modified time | relevance | path

Searched refs:member (Results 1 – 25 of 106) sorted by relevance

12345

/drivers/net/ethernet/huawei/hinic/
Dhinic_hw_wqe.h24 #define HINIC_CMDQ_CTRL_SET(val, member) \ argument
25 (((u32)(val) & HINIC_CMDQ_CTRL_##member##_MASK) \
26 << HINIC_CMDQ_CTRL_##member##_SHIFT)
28 #define HINIC_CMDQ_CTRL_GET(val, member) \ argument
29 (((val) >> HINIC_CMDQ_CTRL_##member##_SHIFT) \
30 & HINIC_CMDQ_CTRL_##member##_MASK)
48 #define HINIC_CMDQ_WQE_HEADER_SET(val, member) \ argument
49 (((u32)(val) & HINIC_CMDQ_WQE_HEADER_##member##_MASK) \
50 << HINIC_CMDQ_WQE_HEADER_##member##_SHIFT)
52 #define HINIC_CMDQ_WQE_HEADER_GET(val, member) \ argument
[all …]
Dhinic_hw_if.h29 #define HINIC_DMA_ATTR_SET(val, member) \ argument
30 (((u32)(val) & HINIC_DMA_ATTR_##member##_MASK) << \
31 HINIC_DMA_ATTR_##member##_SHIFT)
33 #define HINIC_DMA_ATTR_CLEAR(val, member) \ argument
34 ((val) & (~(HINIC_DMA_ATTR_##member##_MASK \
35 << HINIC_DMA_ATTR_##member##_SHIFT)))
50 #define HINIC_FA0_GET(val, member) \ argument
51 (((val) >> HINIC_FA0_##member##_SHIFT) & HINIC_FA0_##member##_MASK)
70 #define HINIC_FA1_GET(val, member) \ argument
71 (((val) >> HINIC_FA1_##member##_SHIFT) & HINIC_FA1_##member##_MASK)
[all …]
Dhinic_hw_api_cmd.h19 #define HINIC_API_CMD_PI_SET(val, member) \ argument
20 (((u32)(val) & HINIC_API_CMD_PI_##member##_MASK) << \
21 HINIC_API_CMD_PI_##member##_SHIFT)
23 #define HINIC_API_CMD_PI_CLEAR(val, member) \ argument
24 ((val) & (~(HINIC_API_CMD_PI_##member##_MASK \
25 << HINIC_API_CMD_PI_##member##_SHIFT)))
31 #define HINIC_API_CMD_CHAIN_REQ_SET(val, member) \ argument
32 (((u32)(val) & HINIC_API_CMD_CHAIN_REQ_##member##_MASK) << \
33 HINIC_API_CMD_CHAIN_REQ_##member##_SHIFT)
35 #define HINIC_API_CMD_CHAIN_REQ_GET(val, member) \ argument
[all …]
Dhinic_hw_cmdq.h30 #define HINIC_CMDQ_CTXT_PAGE_INFO_SET(val, member) \ argument
31 (((u64)(val) & HINIC_CMDQ_CTXT_##member##_MASK) \
32 << HINIC_CMDQ_CTXT_##member##_SHIFT)
34 #define HINIC_CMDQ_CTXT_PAGE_INFO_GET(val, member) \ argument
35 (((u64)(val) >> HINIC_CMDQ_CTXT_##member##_SHIFT) \
36 & HINIC_CMDQ_CTXT_##member##_MASK)
38 #define HINIC_CMDQ_CTXT_PAGE_INFO_CLEAR(val, member) \ argument
39 ((val) & (~((u64)HINIC_CMDQ_CTXT_##member##_MASK \
40 << HINIC_CMDQ_CTXT_##member##_SHIFT)))
48 #define HINIC_CMDQ_CTXT_BLOCK_INFO_SET(val, member) \ argument
[all …]
Dhinic_hw_eqs.h29 #define HINIC_AEQ_CTRL_0_SET(val, member) \ argument
30 (((u32)(val) & HINIC_AEQ_CTRL_0_##member##_MASK) << \
31 HINIC_AEQ_CTRL_0_##member##_SHIFT)
33 #define HINIC_AEQ_CTRL_0_CLEAR(val, member) \ argument
34 ((val) & (~(HINIC_AEQ_CTRL_0_##member##_MASK \
35 << HINIC_AEQ_CTRL_0_##member##_SHIFT)))
45 #define HINIC_AEQ_CTRL_1_SET(val, member) \ argument
46 (((u32)(val) & HINIC_AEQ_CTRL_1_##member##_MASK) << \
47 HINIC_AEQ_CTRL_1_##member##_SHIFT)
49 #define HINIC_AEQ_CTRL_1_CLEAR(val, member) \ argument
[all …]
Dhinic_hw_qp_ctxt.h20 #define HINIC_SQ_CTXT_CEQ_ATTR_SET(val, member) \ argument
21 (((u32)(val) & HINIC_SQ_CTXT_CEQ_ATTR_##member##_MASK) \
22 << HINIC_SQ_CTXT_CEQ_ATTR_##member##_SHIFT)
30 #define HINIC_SQ_CTXT_CI_SET(val, member) \ argument
31 (((u32)(val) & HINIC_SQ_CTXT_CI_##member##_MASK) \
32 << HINIC_SQ_CTXT_CI_##member##_SHIFT)
40 #define HINIC_SQ_CTXT_WQ_PAGE_SET(val, member) \ argument
41 (((u32)(val) & HINIC_SQ_CTXT_WQ_PAGE_##member##_MASK) \
42 << HINIC_SQ_CTXT_WQ_PAGE_##member##_SHIFT)
58 #define HINIC_SQ_CTXT_PREF_SET(val, member) \ argument
[all …]
Dhinic_hw_mgmt.h46 #define HINIC_MSG_HEADER_SET(val, member) \ argument
47 ((u64)((val) & HINIC_MSG_HEADER_##member##_MASK) << \
48 HINIC_MSG_HEADER_##member##_SHIFT)
50 #define HINIC_MSG_HEADER_GET(val, member) \ argument
51 (((val) >> HINIC_MSG_HEADER_##member##_SHIFT) & \
52 HINIC_MSG_HEADER_##member##_MASK)
/drivers/isdn/mISDN/
Ddsp_cmx.c151 struct dsp_conf_member *member; in dsp_cmx_debug() local
168 list_for_each_entry(member, &conf->mlist, list) { in dsp_cmx_debug()
173 member->dsp->name, member->dsp->pcm_slot_tx, in dsp_cmx_debug()
174 member->dsp->pcm_bank_tx, member->dsp->pcm_slot_rx, in dsp_cmx_debug()
175 member->dsp->pcm_bank_rx, member->dsp->hfc_conf, in dsp_cmx_debug()
176 member->dsp->tx_data, member->dsp->rx_is_off, in dsp_cmx_debug()
177 (member->dsp == dsp) ? " *this*" : ""); in dsp_cmx_debug()
211 struct dsp_conf_member *member; in dsp_cmx_add_conf_member() local
217 if (dsp->member) { in dsp_cmx_add_conf_member()
229 member = kzalloc(sizeof(struct dsp_conf_member), GFP_ATOMIC); in dsp_cmx_add_conf_member()
[all …]
/drivers/infiniband/core/
Dmulticast.c200 static void deref_member(struct mcast_member *member) in deref_member() argument
202 if (refcount_dec_and_test(&member->refcount)) in deref_member()
203 complete(&member->comp); in deref_member()
206 static void queue_join(struct mcast_member *member) in queue_join() argument
208 struct mcast_group *group = member->group; in queue_join()
212 list_add_tail(&member->list, &group->pending_list); in queue_join()
330 static int send_join(struct mcast_group *group, struct mcast_member *member) in send_join() argument
335 group->last_join = member; in send_join()
338 &member->multicast.rec, in send_join()
339 member->multicast.comp_mask, in send_join()
[all …]
/drivers/gpu/drm/
Ddrm_prime.c99 struct drm_prime_member *member; in drm_prime_add_buf_handle() local
102 member = kmalloc(sizeof(*member), GFP_KERNEL); in drm_prime_add_buf_handle()
103 if (!member) in drm_prime_add_buf_handle()
107 member->dma_buf = dma_buf; in drm_prime_add_buf_handle()
108 member->handle = handle; in drm_prime_add_buf_handle()
122 rb_link_node(&member->dmabuf_rb, rb, p); in drm_prime_add_buf_handle()
123 rb_insert_color(&member->dmabuf_rb, &prime_fpriv->dmabufs); in drm_prime_add_buf_handle()
137 rb_link_node(&member->handle_rb, rb, p); in drm_prime_add_buf_handle()
138 rb_insert_color(&member->handle_rb, &prime_fpriv->handles); in drm_prime_add_buf_handle()
150 struct drm_prime_member *member; in drm_prime_lookup_buf_by_handle() local
[all …]
/drivers/net/dsa/realtek/
Drtl8366-core.c76 if (vlanmc->vid == 0 && vlanmc->member == 0) { in rtl8366_obtain_mc()
86 vlanmc->member = vlan4k.member; in rtl8366_obtain_mc()
117 vlanmc->member = vlan4k.member; in rtl8366_obtain_mc()
136 int rtl8366_set_vlan(struct realtek_priv *priv, int vid, u32 member, in rtl8366_set_vlan() argument
149 vid, member, untag); in rtl8366_set_vlan()
156 vlan4k.member |= member; in rtl8366_set_vlan()
165 vid, vlan4k.member, vlan4k.untag); in rtl8366_set_vlan()
174 vlanmc.member |= member; in rtl8366_set_vlan()
186 vid, vlanmc.member, vlanmc.untag); in rtl8366_set_vlan()
282 vlanmc.member = 0; in rtl8366_reset_vlan()
[all …]
Drealtek.h37 u16 member; member
45 u16 member; member
130 int rtl8366_set_vlan(struct realtek_priv *priv, int vid, u32 member,
/drivers/clk/sprd/
Dpll.c18 #define pindex(pll, member) \ argument
19 (pll->factors[member].shift / (8 * sizeof(pll->regs_num)))
21 #define pshift(pll, member) \ argument
22 (pll->factors[member].shift % (8 * sizeof(pll->regs_num)))
24 #define pwidth(pll, member) \ argument
25 pll->factors[member].width
27 #define pmask(pll, member) \ argument
28 ((pwidth(pll, member)) ? \
29 GENMASK(pwidth(pll, member) + pshift(pll, member) - 1, \
30 pshift(pll, member)) : 0)
[all …]
/drivers/md/bcache/
Dutil.h445 #define container_of_or_null(ptr, type, member) \ argument
448 _ptr ? container_of(_ptr, type, member) : NULL; \
451 #define RB_INSERT(root, new, member, cmp) \ argument
460 this = container_of(*n, typeof(*(new)), member); \
469 rb_link_node(&(new)->member, parent, n); \
470 rb_insert_color(&(new)->member, root); \
476 #define RB_SEARCH(root, search, member, cmp) \ argument
483 this = container_of(n, typeof(search), member); \
496 #define RB_GREATER(root, search, member, cmp) \ argument
503 this = container_of(n, typeof(search), member); \
[all …]
/drivers/gpu/drm/radeon/
Dmkregtable.c28 #define container_of(ptr, type, member) ({ \ argument
29 const typeof(((type *)0)->member)*__mptr = (ptr); \
30 (type *)((char *)__mptr - offsetof(type, member)); })
92 #define list_entry(ptr, type, member) \ argument
93 container_of(ptr, type, member)
101 #define list_for_each_entry(pos, head, member) \ argument
102 for (pos = list_entry((head)->next, typeof(*pos), member); \
103 &pos->member != (head); \
104 pos = list_entry(pos->member.next, typeof(*pos), member))
/drivers/scsi/lpfc/
Dlpfc_scsi.h28 #define list_remove_head(list, entry, type, member) \ argument
32 entry = list_entry((list)->next, type, member); \
33 list_del_init(&entry->member); \
37 #define list_get_first(list, type, member) \ argument
39 list_entry((list)->next, type, member)
/drivers/cpufreq/
Dpcc-cpufreq.c394 union acpi_object *out_obj, *member; in pcc_cpufreq_evaluate() local
424 member = &out_obj->package.elements[0]; in pcc_cpufreq_evaluate()
425 if (member->type != ACPI_TYPE_BUFFER) { in pcc_cpufreq_evaluate()
430 mem_resource = (struct pcc_memory_resource *)member->buffer.pointer; in pcc_cpufreq_evaluate()
480 member = &out_obj->package.elements[1]; in pcc_cpufreq_evaluate()
481 if (member->type != ACPI_TYPE_BUFFER) { in pcc_cpufreq_evaluate()
486 reg_resource = (struct pcc_register_resource *)member->buffer.pointer; in pcc_cpufreq_evaluate()
499 member = &out_obj->package.elements[2]; in pcc_cpufreq_evaluate()
500 if (member->type != ACPI_TYPE_INTEGER) { in pcc_cpufreq_evaluate()
505 doorbell_preserve = member->integer.value; in pcc_cpufreq_evaluate()
[all …]
/drivers/net/dsa/mv88e6xxx/
Dglobal1_vtu.c152 u8 *member, u8 *state) in mv88e6185_g1_vtu_data_read() argument
167 if (member) in mv88e6185_g1_vtu_data_read()
168 member[i] = (regs[i / 4] >> member_offset) & 0x3; in mv88e6185_g1_vtu_data_read()
178 u8 *member, u8 *state) in mv88e6185_g1_vtu_data_write() argument
188 if (member) in mv88e6185_g1_vtu_data_write()
189 regs[i / 4] |= (member[i] & 0x3) << member_offset; in mv88e6185_g1_vtu_data_write()
300 err = mv88e6185_g1_vtu_data_read(chip, entry->member, entry->state); in mv88e6185_g1_vtu_getnext()
330 err = mv88e6185_g1_vtu_data_read(chip, entry->member, NULL); in mv88e6352_g1_vtu_getnext()
357 err = mv88e6390_g1_vtu_data_read(chip, entry->member); in mv88e6390_g1_vtu_getnext()
388 err = mv88e6185_g1_vtu_data_write(chip, entry->member, entry->state); in mv88e6185_g1_vtu_loadpurge()
[all …]
/drivers/gpu/drm/msm/
Dmsm_ringbuffer.h13 #define rbmemptr(ring, member) \ argument
14 ((ring)->memptrs_iova + offsetof(struct msm_rbmemptrs, member))
16 #define rbmemptr_stats(ring, index, member) \ argument
19 offsetof(struct msm_gpu_submit_stats, member))
/drivers/infiniband/ulp/opa_vnic/
Dopa_vnic_internal.h280 #define vnic_hash_for_each_safe(name, bkt, tmp, obj, member) \ argument
283 hlist_for_each_entry_safe(obj, tmp, &name[bkt], member)
285 #define vnic_hash_for_each_possible(name, obj, member, key) \ argument
287 &name[hash_min(key, ilog2(OPA_VNIC_MAC_TBL_SIZE))], member)
289 #define vnic_hash_for_each(name, bkt, obj, member) \ argument
292 hlist_for_each_entry(obj, &name[bkt], member)
/drivers/net/can/cc770/
Dcc770.h140 #define cc770_read_reg(priv, member) \ argument
141 priv->read_reg(priv, offsetof(struct cc770_regs, member))
143 #define cc770_write_reg(priv, member, value) \ argument
144 priv->write_reg(priv, offsetof(struct cc770_regs, member), value)
/drivers/net/dsa/microchip/
Dksz8795.c560 u8 *member, u8 *valid) in ksz8_from_vlan() argument
569 *member = (vlan & masks[VLAN_TABLE_MEMBERSHIP]) >> in ksz8_from_vlan()
574 static void ksz8_to_vlan(struct ksz_device *dev, u8 fid, u8 member, u8 valid, in ksz8_to_vlan() argument
584 *vlan |= (u16)member << shifts[VLAN_TABLE_MEMBERSHIP_S]; in ksz8_to_vlan()
936 void ksz8_cfg_port_member(struct ksz_device *dev, int port, u8 member) in ksz8_cfg_port_member() argument
942 data |= (member & dev->port_mask); in ksz8_cfg_port_member()
1138 u8 fid, member, valid; in ksz8_port_vlan_add() local
1162 &fid, &member, &valid); in ksz8_port_vlan_add()
1163 if (valid && (member & BIT(port))) in ksz8_port_vlan_add()
1172 ksz8_from_vlan(dev, data, &fid, &member, &valid); in ksz8_port_vlan_add()
[all …]
/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_pgt.c186 bool member) in mlxsw_sp_pgt_smid2_port_set() argument
188 mlxsw_reg_smid2_port_set(smid2_pl, local_port, member); in mlxsw_sp_pgt_smid2_port_set()
195 u16 local_port, bool member) in mlxsw_sp_pgt_entry_port_write() argument
208 mlxsw_sp_pgt_smid2_port_set(smid2_pl, local_port, member); in mlxsw_sp_pgt_entry_port_write()
311 u16 smpe, u16 local_port, bool member) in mlxsw_sp_pgt_entry_port_set() argument
313 if (member) in mlxsw_sp_pgt_entry_port_set()
/drivers/pci/hotplug/
DTODO27 * Several functions access the pci_slot member in struct hotplug_slot even
29 example. Either the pci_slot member should no longer be declared private
48 * Several functions access the pci_slot member in struct hotplug_slot even
50 example. Either the pci_slot member should no longer be declared private
/drivers/gpu/drm/amd/pm/powerplay/inc/
Dpp_debug.h58 #define GET_FLEXIBLE_ARRAY_MEMBER_ADDR(type, member, ptr, n) \ argument
59 (type *)((char *)&(ptr)->member + (sizeof(type) * (n)))

12345