Home
last modified time | relevance | path

Searched refs:dir (Results 1 – 25 of 754) sorted by relevance

12345678910>>...31

/drivers/misc/cxl/
Ddebugfs.c36 void cxl_debugfs_add_adapter_regs_psl9(struct cxl *adapter, struct dentry *dir) in cxl_debugfs_add_adapter_regs_psl9() argument
38 debugfs_create_io_x64("fir1", S_IRUSR, dir, _cxl_p1_addr(adapter, CXL_PSL9_FIR1)); in cxl_debugfs_add_adapter_regs_psl9()
39 debugfs_create_io_x64("fir_mask", 0400, dir, in cxl_debugfs_add_adapter_regs_psl9()
41 debugfs_create_io_x64("fir_cntl", S_IRUSR, dir, _cxl_p1_addr(adapter, CXL_PSL9_FIR_CNTL)); in cxl_debugfs_add_adapter_regs_psl9()
42 debugfs_create_io_x64("trace", S_IRUSR | S_IWUSR, dir, _cxl_p1_addr(adapter, CXL_PSL9_TRACECFG)); in cxl_debugfs_add_adapter_regs_psl9()
43 debugfs_create_io_x64("debug", 0600, dir, in cxl_debugfs_add_adapter_regs_psl9()
45 debugfs_create_io_x64("xsl-debug", 0600, dir, in cxl_debugfs_add_adapter_regs_psl9()
49 void cxl_debugfs_add_adapter_regs_psl8(struct cxl *adapter, struct dentry *dir) in cxl_debugfs_add_adapter_regs_psl8() argument
51 debugfs_create_io_x64("fir1", S_IRUSR, dir, _cxl_p1_addr(adapter, CXL_PSL_FIR1)); in cxl_debugfs_add_adapter_regs_psl8()
52 debugfs_create_io_x64("fir2", S_IRUSR, dir, _cxl_p1_addr(adapter, CXL_PSL_FIR2)); in cxl_debugfs_add_adapter_regs_psl8()
[all …]
/drivers/nubus/
Dnubus.c220 struct nubus_dir *dir) in nubus_get_root_dir() argument
222 dir->ptr = dir->base = board->directory; in nubus_get_root_dir()
223 dir->done = 0; in nubus_get_root_dir()
224 dir->mask = board->lanes; in nubus_get_root_dir()
230 int nubus_get_func_dir(const struct nubus_rsrc *fres, struct nubus_dir *dir) in nubus_get_func_dir() argument
232 dir->ptr = dir->base = fres->directory; in nubus_get_func_dir()
233 dir->done = 0; in nubus_get_func_dir()
234 dir->mask = fres->board->lanes; in nubus_get_func_dir()
240 struct nubus_dir *dir) in nubus_get_board_dir() argument
244 dir->ptr = dir->base = board->directory; in nubus_get_board_dir()
[all …]
/drivers/dma/dw-edma/
Ddw-edma-v0-core.c37 #define SET_RW_32(dw, dir, name, value) \ argument
39 if ((dir) == EDMA_DIR_WRITE) \
45 #define GET_RW_32(dw, dir, name) \ argument
46 ((dir) == EDMA_DIR_WRITE \
64 #define SET_RW_64(dw, dir, name, value) \ argument
66 if ((dir) == EDMA_DIR_WRITE) \
72 #define GET_RW_64(dw, dir, name) \ argument
73 ((dir) == EDMA_DIR_WRITE \
88 #define SET_RW_COMPAT(dw, dir, name, value) \ argument
90 if ((dir) == EDMA_DIR_WRITE) \
[all …]
/drivers/thunderbolt/
Dproperty.c100 struct tb_property_dir *dir; in tb_property_parse() local
116 dir = __tb_property_parse_dir(block, block_len, entry->value, in tb_property_parse()
118 if (!dir) { in tb_property_parse()
122 property->value.dir = dir; in tb_property_parse()
167 struct tb_property_dir *dir; in __tb_property_parse_dir() local
169 dir = kzalloc(sizeof(*dir), GFP_KERNEL); in __tb_property_parse_dir()
170 if (!dir) in __tb_property_parse_dir()
177 dir->uuid = kmemdup(&block[dir_offset], sizeof(*dir->uuid), in __tb_property_parse_dir()
179 if (!dir->uuid) { in __tb_property_parse_dir()
180 tb_property_free_dir(dir); in __tb_property_parse_dir()
[all …]
/drivers/soundwire/
Dsysfs_slave_dpn.c16 int dir; member
30 int N, int dir, \
39 dpn_attr->dir = dir; \
55 int dir, \
64 if (dir) { \
92 dpn_attr->N, dpn_attr->dir, \
115 int dir, \
126 if (dir) { \
157 dpn_attr->N, dpn_attr->dir, \
167 static int add_all_attributes(struct device *dev, int N, int dir) in add_all_attributes() argument
[all …]
/drivers/xen/
Dswiotlb-xen.c196 enum dma_data_direction dir, in xen_swiotlb_map_page() argument
202 BUG_ON(dir == DMA_NONE); in xen_swiotlb_map_page()
219 map = swiotlb_tbl_map_single(dev, phys, size, size, 0, dir, attrs); in xen_swiotlb_map_page()
230 swiotlb_tbl_unmap_single(dev, map, size, dir, in xen_swiotlb_map_page()
238 arch_sync_dma_for_device(phys, size, dir); in xen_swiotlb_map_page()
240 xen_dma_sync_for_device(dev, dev_addr, size, dir); in xen_swiotlb_map_page()
254 size_t size, enum dma_data_direction dir, unsigned long attrs) in xen_swiotlb_unmap_page() argument
258 BUG_ON(dir == DMA_NONE); in xen_swiotlb_unmap_page()
262 arch_sync_dma_for_cpu(paddr, size, dir); in xen_swiotlb_unmap_page()
264 xen_dma_sync_for_cpu(hwdev, dev_addr, size, dir); in xen_swiotlb_unmap_page()
[all …]
Dgrant-dma-ops.c146 enum dma_data_direction dir, in xen_grant_dma_alloc_pages() argument
160 enum dma_data_direction dir) in xen_grant_dma_free_pages() argument
167 enum dma_data_direction dir, in xen_grant_dma_map_page() argument
177 if (WARN_ON(dir == DMA_NONE)) in xen_grant_dma_map_page()
193 dir == DMA_TO_DEVICE); in xen_grant_dma_map_page()
202 size_t size, enum dma_data_direction dir, in xen_grant_dma_unmap_page() argument
210 if (WARN_ON(dir == DMA_NONE)) in xen_grant_dma_unmap_page()
234 int nents, enum dma_data_direction dir, in xen_grant_dma_unmap_sg() argument
240 if (WARN_ON(dir == DMA_NONE)) in xen_grant_dma_unmap_sg()
244 xen_grant_dma_unmap_page(dev, s->dma_address, sg_dma_len(s), dir, in xen_grant_dma_unmap_sg()
[all …]
/drivers/gpio/
Dgpio-en7523.c25 void __iomem *dir[2]; member
38 u32 dir = ioread32(ctrl->dir[gpio / 16]); in airoha_dir_set() local
43 dir |= mask; in airoha_dir_set()
46 dir &= ~mask; in airoha_dir_set()
50 iowrite32(dir, ctrl->dir[gpio / 16]); in airoha_dir_set()
74 u32 dir = ioread32(ctrl->dir[gpio / 16]); in airoha_get_dir() local
77 return (dir & mask) ? GPIO_LINE_DIRECTION_OUT : GPIO_LINE_DIRECTION_IN; in airoha_get_dir()
94 ctrl->dir[0] = devm_platform_ioremap_resource(pdev, 1); in airoha_gpio_probe()
95 if (IS_ERR(ctrl->dir[0])) in airoha_gpio_probe()
96 return PTR_ERR(ctrl->dir[0]); in airoha_gpio_probe()
[all …]
/drivers/infiniband/ulp/rtrs/
Drtrs-srv-stats.c42 sum.dir[READ].cnt += r->dir[READ].cnt; in rtrs_srv_stats_rdma_to_str()
43 sum.dir[READ].size_total += r->dir[READ].size_total; in rtrs_srv_stats_rdma_to_str()
44 sum.dir[WRITE].cnt += r->dir[WRITE].cnt; in rtrs_srv_stats_rdma_to_str()
45 sum.dir[WRITE].size_total += r->dir[WRITE].size_total; in rtrs_srv_stats_rdma_to_str()
49 sum.dir[READ].cnt, sum.dir[READ].size_total, in rtrs_srv_stats_rdma_to_str()
50 sum.dir[WRITE].cnt, sum.dir[WRITE].size_total); in rtrs_srv_stats_rdma_to_str()
Drtrs-clt-stats.c92 sum.dir[READ].cnt += r->dir[READ].cnt; in rtrs_clt_stats_rdma_to_str()
93 sum.dir[READ].size_total += r->dir[READ].size_total; in rtrs_clt_stats_rdma_to_str()
94 sum.dir[WRITE].cnt += r->dir[WRITE].cnt; in rtrs_clt_stats_rdma_to_str()
95 sum.dir[WRITE].size_total += r->dir[WRITE].size_total; in rtrs_clt_stats_rdma_to_str()
100 sum.dir[READ].cnt, sum.dir[READ].size_total, in rtrs_clt_stats_rdma_to_str()
101 sum.dir[WRITE].cnt, sum.dir[WRITE].size_total, in rtrs_clt_stats_rdma_to_str()
168 this_cpu_inc(stats->pcpu_stats->rdma.dir[d].cnt); in rtrs_clt_update_rdma_stats()
169 this_cpu_add(stats->pcpu_stats->rdma.dir[d].size_total, size); in rtrs_clt_update_rdma_stats()
172 void rtrs_clt_update_all_stats(struct rtrs_clt_io_req *req, int dir) in rtrs_clt_update_all_stats() argument
180 rtrs_clt_update_rdma_stats(stats, len, dir); in rtrs_clt_update_all_stats()
/drivers/net/ethernet/ibm/ehea/
Dehea_qmr.c541 int dir) in ehea_init_top_bmap() argument
543 if (!ehea_top_bmap->dir[dir]) { in ehea_init_top_bmap()
544 ehea_top_bmap->dir[dir] = in ehea_init_top_bmap()
546 if (!ehea_top_bmap->dir[dir]) in ehea_init_top_bmap()
552 static inline int ehea_init_bmap(struct ehea_bmap *ehea_bmap, int top, int dir) in ehea_init_bmap() argument
560 return ehea_init_top_bmap(ehea_bmap->top[top], dir); in ehea_init_bmap()
572 int top, dir, idx; in ehea_rebuild_busmap() local
581 for (dir = 0; dir < EHEA_MAP_ENTRIES; dir++) { in ehea_rebuild_busmap()
585 if (!ehea_top->dir[dir]) in ehea_rebuild_busmap()
588 ehea_dir = ehea_top->dir[dir]; in ehea_rebuild_busmap()
[all …]
/drivers/net/ethernet/marvell/octeontx2/af/
Dmcs.h160 void (*mcs_flowid_secy_map)(struct mcs *mcs, struct secy_mem_map *map, int dir);
161 void (*mcs_bbe_intr_handler)(struct mcs *mcs, u64 intr, enum mcs_direction dir);
162 void (*mcs_pab_intr_handler)(struct mcs *mcs, u64 intr, enum mcs_direction dir);
184 u8 *sc_id, u8 *sa1_id, u8 *sa2_id, u16 pcifunc, int dir);
185 int mcs_free_all_rsrc(struct mcs *mcs, int dir, u16 pcifunc);
186 void mcs_clear_secy_plcy(struct mcs *mcs, int secy_id, int dir);
187 void mcs_ena_dis_flowid_entry(struct mcs *mcs, int id, int dir, int ena);
189 void mcs_flowid_entry_write(struct mcs *mcs, u64 *data, u64 *mask, int id, int dir);
190 void mcs_secy_plcy_write(struct mcs *mcs, u64 plcy, int id, int dir);
192 void mcs_sa_plcy_write(struct mcs *mcs, u64 *plcy, int sa, int dir);
[all …]
Dmcs.c133 int id, int dir) in mcs_get_flowid_stats() argument
137 if (dir == MCS_RX) in mcs_get_flowid_stats()
146 int id, int dir) in mcs_get_port_stats() argument
150 if (dir == MCS_RX) { in mcs_get_port_stats()
172 void mcs_get_sa_stats(struct mcs *mcs, struct mcs_sa_stats *stats, int id, int dir) in mcs_get_sa_stats() argument
176 if (dir == MCS_RX) { in mcs_get_sa_stats()
201 int id, int dir) in mcs_get_sc_stats() argument
205 if (dir == MCS_RX) { in mcs_get_sc_stats()
252 void mcs_clear_stats(struct mcs *mcs, u8 type, u8 id, int dir) in mcs_clear_stats() argument
261 if (dir == MCS_RX) in mcs_clear_stats()
[all …]
/drivers/iio/cdc/
Dad7150.c89 enum iio_event_direction dir; member
152 enum iio_event_direction dir) in ad7150_read_event_config() argument
170 if (dir == IIO_EV_DIR_RISING) in ad7150_read_event_config()
174 if (dir == IIO_EV_DIR_RISING) in ad7150_read_event_config()
187 enum iio_event_direction dir) in ad7150_write_event_params() argument
190 int rising = (dir == IIO_EV_DIR_RISING); in ad7150_write_event_params()
193 if ((type != chip->type) || (dir != chip->dir)) in ad7150_write_event_params()
235 enum iio_event_direction dir, int state) in ad7150_write_event_config() argument
250 (type == chip->type) && (dir == chip->dir)) { in ad7150_write_event_config()
258 if ((type != chip->type) || (dir != chip->dir)) { in ad7150_write_event_config()
[all …]
/drivers/net/wireless/mediatek/mt76/mt7603/
Ddebugfs.c98 struct dentry *dir; in mt7603_init_debugfs() local
100 dir = mt76_register_debugfs(&dev->mt76); in mt7603_init_debugfs()
101 if (!dir) in mt7603_init_debugfs()
104 debugfs_create_file("ampdu_stat", 0400, dir, dev, in mt7603_init_debugfs()
106 debugfs_create_devm_seqfile(dev->mt76.dev, "xmit-queues", dir, in mt7603_init_debugfs()
108 debugfs_create_file("edcca", 0600, dir, dev, &fops_edcca); in mt7603_init_debugfs()
109 debugfs_create_u32("reset_test", 0600, dir, &dev->reset_test); in mt7603_init_debugfs()
110 debugfs_create_devm_seqfile(dev->mt76.dev, "reset", dir, in mt7603_init_debugfs()
112 debugfs_create_devm_seqfile(dev->mt76.dev, "radio", dir, in mt7603_init_debugfs()
114 debugfs_create_u8("sensitivity_limit", 0600, dir, in mt7603_init_debugfs()
[all …]
/drivers/net/wireless/mediatek/mt76/
Dmt76x02_debugfs.c119 struct dentry *dir; in mt76x02_init_debugfs() local
121 dir = mt76_register_debugfs(&dev->mt76); in mt76x02_init_debugfs()
122 if (!dir) in mt76x02_init_debugfs()
125 debugfs_create_devm_seqfile(dev->mt76.dev, "xmit-queues", dir, in mt76x02_init_debugfs()
127 debugfs_create_u8("temperature", 0400, dir, &dev->cal.temp); in mt76x02_init_debugfs()
128 debugfs_create_bool("tpc", 0600, dir, &dev->enable_tpc); in mt76x02_init_debugfs()
130 debugfs_create_file("edcca", 0600, dir, dev, &fops_edcca); in mt76x02_init_debugfs()
131 debugfs_create_file("ampdu_stat", 0400, dir, dev, &mt76x02_ampdu_stat_fops); in mt76x02_init_debugfs()
132 debugfs_create_file("dfs_stats", 0400, dir, dev, &mt76x02_dfs_stat_fops); in mt76x02_init_debugfs()
133 debugfs_create_devm_seqfile(dev->mt76.dev, "txpower", dir, in mt76x02_init_debugfs()
[all …]
Ddebugfs.c126 struct dentry *dir; in mt76_register_debugfs_fops() local
128 dir = debugfs_create_dir("mt76", phy->hw->wiphy->debugfsdir); in mt76_register_debugfs_fops()
129 if (!dir) in mt76_register_debugfs_fops()
132 debugfs_create_u8("led_pin", 0600, dir, &dev->led_pin); in mt76_register_debugfs_fops()
133 debugfs_create_u32("regidx", 0600, dir, &dev->debugfs_reg); in mt76_register_debugfs_fops()
134 debugfs_create_file_unsafe("regval", 0600, dir, dev, fops); in mt76_register_debugfs_fops()
135 debugfs_create_file_unsafe("napi_threaded", 0600, dir, dev, in mt76_register_debugfs_fops()
137 debugfs_create_blob("eeprom", 0400, dir, &dev->eeprom); in mt76_register_debugfs_fops()
139 debugfs_create_blob("otp", 0400, dir, &dev->otp); in mt76_register_debugfs_fops()
140 debugfs_create_devm_seqfile(dev->dev, "rate_txpower", dir, in mt76_register_debugfs_fops()
[all …]
/drivers/net/wireless/mediatek/mt76/mt7615/
Ddebugfs.c552 struct dentry *dir; in mt7615_init_debugfs() local
554 dir = mt76_register_debugfs_fops(&dev->mphy, &fops_regval); in mt7615_init_debugfs()
555 if (!dir) in mt7615_init_debugfs()
559 debugfs_create_devm_seqfile(dev->mt76.dev, "xmit-queues", dir, in mt7615_init_debugfs()
562 debugfs_create_devm_seqfile(dev->mt76.dev, "xmit-queues", dir, in mt7615_init_debugfs()
564 debugfs_create_devm_seqfile(dev->mt76.dev, "acq", dir, in mt7615_init_debugfs()
566 debugfs_create_file("ampdu_stat", 0400, dir, dev, &mt7615_ampdu_stat_fops); in mt7615_init_debugfs()
567 debugfs_create_file("scs", 0600, dir, dev, &fops_scs); in mt7615_init_debugfs()
568 debugfs_create_file("dbdc", 0600, dir, dev, &fops_dbdc); in mt7615_init_debugfs()
569 debugfs_create_file("fw_debug", 0600, dir, dev, &fops_fw_debug); in mt7615_init_debugfs()
[all …]
/drivers/tty/vt/
Dconsolemap.c203 #define UNI(dir, row, glyph) (FIELD_PREP(UNI_DIR_BITS, (dir)) | \ argument
271 u16 **dir = dict->uni_pgdir[d]; in set_inverse_trans_unicode() local
272 if (!dir) in set_inverse_trans_unicode()
275 u16 *row = dir[r]; in set_inverse_trans_unicode()
434 u16 **dir = dict->uni_pgdir[d]; in con_release_unimap() local
435 if (dir != NULL) { in con_release_unimap()
437 kfree(dir[r]); in con_release_unimap()
438 kfree(dir); in con_release_unimap()
511 u16 **dir, *row; in con_insert_unipair() local
515 dir = p->uni_pgdir[n]; in con_insert_unipair()
[all …]
/drivers/scsi/ibmvscsi_tgt/
Dlibsrp.c162 enum dma_data_direction dir, srp_rdma_t rdma_io, in srp_direct_data() argument
184 err = rdma_io(cmd, sg, nsg, md, 1, dir, len); in srp_direct_data()
194 enum dma_data_direction dir, srp_rdma_t rdma_io, in srp_indirect_data() argument
211 if ((dir == DMA_FROM_DEVICE && nmd == srp_cmd->data_in_desc_cnt) || in srp_indirect_data()
212 (dir == DMA_TO_DEVICE && nmd == srp_cmd->data_out_desc_cnt)) { in srp_indirect_data()
256 err = rdma_io(cmd, sg, nsg, md, nmd, dir, len); in srp_indirect_data()
300 enum dma_data_direction dir; in srp_transfer_data() local
309 dir = srp_cmd_direction(srp_cmd); in srp_transfer_data()
310 if (dir == DMA_FROM_DEVICE) in srp_transfer_data()
313 if (dir == DMA_TO_DEVICE) in srp_transfer_data()
[all …]
/drivers/net/ethernet/freescale/fs_enet/
Dmii-bitbang.c32 __be32 __iomem *dir; member
58 static inline void mdio_dir(struct mdiobb_ctrl *ctrl, int dir) in mdio_dir() argument
62 if (dir) in mdio_dir()
63 bb_set(bitbang->dir, bitbang->mdio_msk); in mdio_dir()
65 bb_clr(bitbang->dir, bitbang->mdio_msk); in mdio_dir()
68 in_be32(bitbang->dir); in mdio_dir()
141 bitbang->dir = ioremap(res.start, resource_size(&res)); in fs_mii_bitbang_init()
142 if (!bitbang->dir) in fs_mii_bitbang_init()
145 bitbang->dat = bitbang->dir + 4; in fs_mii_bitbang_init()
186 iounmap(bitbang->dir); in fs_enet_mdio_probe()
[all …]
/drivers/crypto/
Dixp4xx_crypto.c107 enum dma_data_direction dir; member
340 dma_unmap_single(dev, buf->phys_addr, buf->buf_len, buf->dir); in free_buf_chain()
589 static void reset_sa_dir(struct ix_sa_dir *dir) in reset_sa_dir() argument
591 memset(dir->npe_ctx, 0, NPE_CTX_LEN); in reset_sa_dir()
592 dir->npe_ctx_idx = 0; in reset_sa_dir()
593 dir->npe_mode = 0; in reset_sa_dir()
596 static int init_sa_dir(struct ix_sa_dir *dir) in init_sa_dir() argument
598 dir->npe_ctx = dma_pool_alloc(ctx_pool, GFP_KERNEL, &dir->npe_ctx_phys); in init_sa_dir()
599 if (!dir->npe_ctx) in init_sa_dir()
602 reset_sa_dir(dir); in init_sa_dir()
[all …]
/drivers/infiniband/core/
Drw.c47 enum dma_data_direction dir, int dma_nents) in rdma_rw_io_needs_mr() argument
49 if (dir == DMA_FROM_DEVICE) { in rdma_rw_io_needs_mr()
126 u64 remote_addr, u32 rkey, enum dma_data_direction dir) in rdma_rw_init_mr_wrs() argument
163 if (dir == DMA_TO_DEVICE) { in rdma_rw_init_mr_wrs()
197 u64 remote_addr, u32 rkey, enum dma_data_direction dir) in rdma_rw_init_map_wrs() argument
199 u32 max_sge = dir == DMA_TO_DEVICE ? qp->max_write_sge : in rdma_rw_init_map_wrs()
218 if (dir == DMA_TO_DEVICE) in rdma_rw_init_map_wrs()
253 enum dma_data_direction dir) in rdma_rw_init_single_wr() argument
264 if (dir == DMA_TO_DEVICE) in rdma_rw_init_single_wr()
294 u64 remote_addr, u32 rkey, enum dma_data_direction dir) in rdma_rw_ctx_init() argument
[all …]
/drivers/usb/gadget/udc/
Dpxa27x_udc.h233 #define USB_EP_DEF(addr, bname, dir, type, maxpkt, ctype, cdir) \ argument
236 .desc = { .bEndpointAddress = addr | (dir ? USB_DIR_IN : 0), \
241 #define USB_EP_BULK(addr, bname, dir, cdir) \ argument
242 USB_EP_DEF(addr, bname, dir, BULK, BULK_FIFO_SIZE, \
244 #define USB_EP_ISO(addr, bname, dir, cdir) \ argument
245 USB_EP_DEF(addr, bname, dir, ISOC, ISO_FIFO_SIZE, \
247 #define USB_EP_INT(addr, bname, dir, cdir) \ argument
248 USB_EP_DEF(addr, bname, dir, INT, INT_FIFO_SIZE, \
263 #define PXA_EP_DEF(_idx, _addr, dir, _type, maxpkt, _config, iface, altset) \ argument
268 .dir_in = dir, .addr = _addr, \
[all …]
/drivers/xen/xenbus/
Dxenbus_xs.c388 static char *join(const char *dir, const char *name) in join() argument
393 buffer = kasprintf(GFP_NOIO | __GFP_HIGH, "%s", dir); in join()
395 buffer = kasprintf(GFP_NOIO | __GFP_HIGH, "%s/%s", dir, name); in join()
423 const char *dir, const char *node, unsigned int *num) in xenbus_directory() argument
428 path = join(dir, node); in xenbus_directory()
443 const char *dir, const char *node) in xenbus_exists() argument
448 d = xenbus_directory(t, dir, node, &dir_n); in xenbus_exists()
461 const char *dir, const char *node, unsigned int *len) in xenbus_read() argument
466 path = join(dir, node); in xenbus_read()
480 const char *dir, const char *node, const char *string) in xenbus_write() argument
[all …]

12345678910>>...31