/drivers/misc/cxl/ |
D | debugfs.c | 36 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/ |
D | nubus.c | 227 struct nubus_dir *dir) in nubus_get_root_dir() argument 229 dir->ptr = dir->base = board->directory; in nubus_get_root_dir() 230 dir->done = 0; in nubus_get_root_dir() 231 dir->mask = board->lanes; in nubus_get_root_dir() 237 int nubus_get_func_dir(const struct nubus_rsrc *fres, struct nubus_dir *dir) in nubus_get_func_dir() argument 239 dir->ptr = dir->base = fres->directory; in nubus_get_func_dir() 240 dir->done = 0; in nubus_get_func_dir() 241 dir->mask = fres->board->lanes; in nubus_get_func_dir() 247 struct nubus_dir *dir) in nubus_get_board_dir() argument 251 dir->ptr = dir->base = board->directory; in nubus_get_board_dir() [all …]
|
/drivers/thunderbolt/ |
D | property.c | 100 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/dma/dw-edma/ |
D | dw-edma-v0-core.c | 39 #define SET_RW_32(dw, dir, name, value) \ argument 41 if ((dir) == EDMA_DIR_WRITE) \ 47 #define GET_RW_32(dw, dir, name) \ argument 48 ((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 \ 86 #define SET_RW_COMPAT(dw, dir, name, value) \ argument 88 if ((dir) == EDMA_DIR_WRITE) \ [all …]
|
D | dw-hdma-v0-debugfs.c | 35 #define CTX_REGISTER(dw, name, dir, ch) \ argument 36 {#name, REGS_CH_ADDR(dw, name, dir, ch)} 79 static void dw_hdma_debugfs_regs_ch(struct dw_edma *dw, enum dw_edma_dir dir, in dw_hdma_debugfs_regs_ch() argument 83 CTX_REGISTER(dw, ch_en, dir, ch), in dw_hdma_debugfs_regs_ch() 84 CTX_REGISTER(dw, doorbell, dir, ch), in dw_hdma_debugfs_regs_ch() 85 CTX_REGISTER(dw, prefetch, dir, ch), in dw_hdma_debugfs_regs_ch() 86 CTX_REGISTER(dw, handshake, dir, ch), in dw_hdma_debugfs_regs_ch() 87 CTX_REGISTER(dw, llp.lsb, dir, ch), in dw_hdma_debugfs_regs_ch() 88 CTX_REGISTER(dw, llp.msb, dir, ch), in dw_hdma_debugfs_regs_ch() 89 CTX_REGISTER(dw, cycle_sync, dir, ch), in dw_hdma_debugfs_regs_ch() [all …]
|
D | dw-hdma-v0-core.c | 32 __dw_ch_regs(struct dw_edma *dw, enum dw_edma_dir dir, u16 ch) in __dw_ch_regs() argument 34 if (dir == EDMA_DIR_WRITE) in __dw_ch_regs() 40 #define SET_CH_32(dw, dir, ch, name, value) \ argument 41 writel(value, &(__dw_ch_regs(dw, dir, ch)->name)) 43 #define GET_CH_32(dw, dir, ch, name) \ argument 44 readl(&(__dw_ch_regs(dw, dir, ch)->name)) 66 static u16 dw_hdma_v0_core_ch_count(struct dw_edma *dw, enum dw_edma_dir dir) in dw_hdma_v0_core_ch_count() argument 82 GET_CH_32(dw, chan->id, chan->dir, ch_stat)); in dw_hdma_v0_core_ch_status() 96 SET_CH_32(dw, chan->dir, chan->id, int_clear, HDMA_V0_STOP_INT_MASK); in dw_hdma_v0_core_clear_done_int() 103 SET_CH_32(dw, chan->dir, chan->id, int_clear, HDMA_V0_ABORT_INT_MASK); in dw_hdma_v0_core_clear_abort_int() [all …]
|
/drivers/soundwire/ |
D | sysfs_slave_dpn.c | 16 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/ |
D | swiotlb-xen.c | 196 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 …]
|
/drivers/gpio/ |
D | gpio-en7523.c | 25 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/ |
D | rtrs-srv-stats.c | 42 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()
|
D | rtrs-clt-stats.c | 92 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/ |
D | ehea_qmr.c | 541 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/ |
D | mcs.h | 160 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 …]
|
D | mcs.c | 133 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/accel/qaic/ |
D | mhi_controller.c | 30 .dir = DMA_TO_DEVICE, 46 .dir = DMA_FROM_DEVICE, 62 .dir = DMA_TO_DEVICE, 78 .dir = DMA_FROM_DEVICE, 94 .dir = DMA_TO_DEVICE, 110 .dir = DMA_FROM_DEVICE, 126 .dir = DMA_TO_DEVICE, 142 .dir = DMA_FROM_DEVICE, 158 .dir = DMA_TO_DEVICE, 174 .dir = DMA_FROM_DEVICE, [all …]
|
/drivers/iio/cdc/ |
D | ad7150.c | 89 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/ |
D | debugfs.c | 98 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/ |
D | mt76x02_debugfs.c | 134 struct dentry *dir; in mt76x02_init_debugfs() local 136 dir = mt76_register_debugfs(&dev->mt76); in mt76x02_init_debugfs() 137 if (!dir) in mt76x02_init_debugfs() 140 debugfs_create_devm_seqfile(dev->mt76.dev, "xmit-queues", dir, in mt76x02_init_debugfs() 142 debugfs_create_u8("temperature", 0400, dir, &dev->cal.temp); in mt76x02_init_debugfs() 143 debugfs_create_bool("tpc", 0600, dir, &dev->enable_tpc); in mt76x02_init_debugfs() 145 debugfs_create_file("edcca", 0600, dir, dev, &fops_edcca); in mt76x02_init_debugfs() 146 debugfs_create_file("ampdu_stat", 0400, dir, dev, &mt76x02_ampdu_stat_fops); in mt76x02_init_debugfs() 147 debugfs_create_file("dfs_stats", 0400, dir, dev, &mt76x02_dfs_stat_fops); in mt76x02_init_debugfs() 148 debugfs_create_devm_seqfile(dev->mt76.dev, "txpower", dir, in mt76x02_init_debugfs() [all …]
|
D | debugfs.c | 109 struct dentry *dir; in mt76_register_debugfs_fops() local 111 dir = debugfs_create_dir("mt76", phy->hw->wiphy->debugfsdir); in mt76_register_debugfs_fops() 112 if (!dir) in mt76_register_debugfs_fops() 115 debugfs_create_u8("led_pin", 0600, dir, &phy->leds.pin); in mt76_register_debugfs_fops() 116 debugfs_create_u32("regidx", 0600, dir, &dev->debugfs_reg); in mt76_register_debugfs_fops() 117 debugfs_create_file_unsafe("regval", 0600, dir, dev, fops); in mt76_register_debugfs_fops() 118 debugfs_create_file_unsafe("napi_threaded", 0600, dir, dev, in mt76_register_debugfs_fops() 120 debugfs_create_blob("eeprom", 0400, dir, &dev->eeprom); in mt76_register_debugfs_fops() 122 debugfs_create_blob("otp", 0400, dir, &dev->otp); in mt76_register_debugfs_fops() 123 debugfs_create_devm_seqfile(dev->dev, "rx-queues", dir, in mt76_register_debugfs_fops() [all …]
|
/drivers/net/wireless/mediatek/mt76/mt7615/ |
D | debugfs.c | 550 struct dentry *dir; in mt7615_init_debugfs() local 552 dir = mt76_register_debugfs_fops(&dev->mphy, &fops_regval); in mt7615_init_debugfs() 553 if (!dir) in mt7615_init_debugfs() 557 debugfs_create_devm_seqfile(dev->mt76.dev, "xmit-queues", dir, in mt7615_init_debugfs() 560 debugfs_create_devm_seqfile(dev->mt76.dev, "xmit-queues", dir, in mt7615_init_debugfs() 562 debugfs_create_devm_seqfile(dev->mt76.dev, "acq", dir, in mt7615_init_debugfs() 564 debugfs_create_file("ampdu_stat", 0400, dir, dev, &mt7615_ampdu_stat_fops); in mt7615_init_debugfs() 565 debugfs_create_file("scs", 0600, dir, dev, &fops_scs); in mt7615_init_debugfs() 566 debugfs_create_file("dbdc", 0600, dir, dev, &fops_dbdc); in mt7615_init_debugfs() 567 debugfs_create_file("fw_debug", 0600, dir, dev, &fops_fw_debug); in mt7615_init_debugfs() [all …]
|
/drivers/net/thunderbolt/ |
D | trace.h | 27 enum dma_data_direction dir), 28 TP_ARGS(index, page, phys, dir), 33 __field(enum dma_data_direction, dir) 39 __entry->dir = dir; 43 __print_symbolic(__entry->dir, DMA_DATA_DIRECTION_NAMES)) 48 enum dma_data_direction dir), 49 TP_ARGS(index, page, phys, dir) 54 enum dma_data_direction dir), 55 TP_ARGS(index, page, phys, dir) 60 enum dma_data_direction dir), [all …]
|
/drivers/tty/vt/ |
D | consolemap.c | 203 #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/ |
D | libsrp.c | 162 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/wireless/mediatek/mt76/mt7921/ |
D | debugfs.c | 266 struct dentry *dir; in mt7921_init_debugfs() local 268 dir = mt76_register_debugfs_fops(&dev->mphy, &fops_regval); in mt7921_init_debugfs() 269 if (!dir) in mt7921_init_debugfs() 274 dir, mt792x_queues_read); in mt7921_init_debugfs() 277 dir, mt76_queues_read); in mt7921_init_debugfs() 279 debugfs_create_devm_seqfile(dev->mt76.dev, "acq", dir, in mt7921_init_debugfs() 281 debugfs_create_devm_seqfile(dev->mt76.dev, "txpower_sku", dir, in mt7921_init_debugfs() 283 debugfs_create_file("tx_stats", 0400, dir, dev, &mt792x_tx_stats_fops); in mt7921_init_debugfs() 284 debugfs_create_file("fw_debug", 0600, dir, dev, &fops_fw_debug); in mt7921_init_debugfs() 285 debugfs_create_file("runtime-pm", 0600, dir, dev, &fops_pm); in mt7921_init_debugfs() [all …]
|
/drivers/net/ethernet/freescale/fs_enet/ |
D | mii-bitbang.c | 32 u32 __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 …]
|